From 6842fd799db2ad2f9615c874bdeb6a4a238d6b58 Mon Sep 17 00:00:00 2001 From: cgraha217 Date: Thu, 15 Dec 2022 11:51:46 -0700 Subject: [PATCH 1/4] feat(*): remove esri samples due to license agreement restrictions --- .../public/angular/1.5d56d5f79a1fb802.js | 1 + .../public/angular/1074.4f29026c1e7821a7.js | 1 - .../public/angular/1218.5cf5f1393e23fddd.js | 1 - .../public/angular/125.72695be1e25c54a5.js | 62 - .../public/angular/126.1a496f66391c2c65.js | 1 - .../public/angular/1269.0a1b5e41aab2dcff.js | 1 - .../public/angular/1288.acef9941cf09f3d8.js | 1 - .../public/angular/1299.ad5e8ff1797660c0.js | 1 - .../public/angular/1317.572d2160f81ce163.js | 1 - .../public/angular/1318.81b1f6f153298ee7.js | 1 - .../public/angular/1329.c2e1ccdd4331160d.js | 1 - .../public/angular/1362.053d4ee22c653b5d.js | 1 - .../public/angular/15.26785073b1414895.js | 1 - .../public/angular/1533.fe7a6163f7edb103.js | 1 - .../public/angular/154.0785cbdf6f2c3e87.js | 56 - .../public/angular/1561.eeba4508f794699b.js | 1 - .../public/angular/1563.05f0bd0eb172cafd.js | 1 - .../public/angular/157.88b7fd3a7d3af51a.js | 1 - .../public/angular/1591.56fb0a1f761e41ad.js | 1 - .../public/angular/1799.1e83fbfc51178eb9.js | 1 - .../public/angular/181.fc9b235e63383b82.js | 1 - .../public/angular/1831.30fef6ee2c126946.js | 1 - .../public/angular/1832.b9b5ffbcba52cd5d.js | 1 - .../public/angular/1843.a6a0f65e246c7844.js | 1 - .../public/angular/1913.f72a3333a5aa5a9c.js | 1 - .../public/angular/195.9c9a87b138337815.js | 1 - .../public/angular/1955.4a8c33fc1033586d.js | 1 - .../public/angular/2045.ce6cddf1da72510c.js | 1 - .../public/angular/2125.7b2dd66bad836c2b.js | 1 - .../public/angular/2144.4f19d420a964c7f9.js | 1 - .../public/angular/2226.a41f6e6f3208c778.js | 1 - .../public/angular/2248.055adc6b66a488de.js | 1 - .../public/angular/2305.274c8428c73b70ab.js | 1 - .../public/angular/2337.ee17ec24ac521a16.js | 1 - .../public/angular/2371.66e751671287c863.js | 1 - .../public/angular/2405.72b14d50ecf83fc4.js | 1 - .../public/angular/2435.238d9e3d21011a9b.js | 1 - .../public/angular/2479.765680f3b83845c0.js | 1 - .../public/angular/2480.80f5a409f9e825e4.js | 1 - .../public/angular/2493.6a6a1a171b1585e5.js | 1 - .../public/angular/2504.3209ebd64049059b.js | 1 - .../public/angular/2543.eed26d786a5f9ed7.js | 1 - .../public/angular/2558.449d8b51a8193592.js | 1 - .../public/angular/2620.41d5a7dc7c8eea0f.js | 1 - .../public/angular/2694.61df90b49859bb91.js | 1 - .../public/angular/2701.c2079041210f1c6f.js | 1 - .../public/angular/289.185dcef833da0076.js | 1 - .../public/angular/2903.a832184f5cc40b0b.js | 1 - .../public/angular/2943.f163cbeb2388c572.js | 20 - .../public/angular/2955.9c1a0738cdb069bd.js | 1 - .../public/angular/2958.e9207205a84f16c2.js | 1 - .../public/angular/310.a07342ac1a10367c.js | 1 - .../public/angular/3109.2c0d2cc085ad23ec.js | 1 - .../public/angular/3129.7af7338821a0a261.js | 1 - .../public/angular/3130.bd1986296dc1dcc4.js | 1 - .../public/angular/3207.b41fe2bb093dc349.js | 1 - .../public/angular/3208.092ff5fb721fc0fa.js | 1 - .../public/angular/3250.0729abec3366f925.js | 1 - .../public/angular/3277.d070c09c2bce7e7b.js | 1 - .../public/angular/3279.fcc40df64682935f.js | 1 - .../public/angular/3308.4c6398c97aad946a.js | 1 - .../public/angular/3309.d4a613bcc4da8bdc.js | 1 - .../public/angular/3358.378be12f4c5c5fbb.js | 1 - .../public/angular/3368.dde3c648e976b312.js | 1 - .../public/angular/342.4bb1e703ad3f858f.js | 1 - .../public/angular/3464.04c5090d1fbf08eb.js | 1 - .../public/angular/3478.7391a288ec571482.js | 1 - .../public/angular/3482.34e81e4215e6c0c1.js | 1 - .../public/angular/3542.c1df8945f76acab3.js | 1 - .../public/angular/3678.9ce459b07150af40.js | 1 - .../public/angular/3690.e7c96ee511fe9fe2.js | 1 - .../public/angular/3705.5216a88ad83612f0.js | 1 - .../public/angular/3714.74ec01ee64c0edbc.js | 1 - .../public/angular/375.53ec6e2d18f3745a.js | 1 - .../public/angular/3751.fe0dd4ed481353b3.js | 1 - .../public/angular/3774.b9f4e09d55e16c42.js | 1 - .../public/angular/3807.6d43b36edb1a648b.js | 1 - .../public/angular/3835.3a52e0a3bbc5bb21.js | 1 - .../public/angular/3907.c049cd607ae41791.js | 1 - .../public/angular/3914.41ea51294c64ddc5.js | 1 - .../public/angular/3926.e0edc8e9ca077282.js | 1 - .../public/angular/3959.7403c7f767b7bcad.js | 1 - .../public/angular/3999.eb34a7d4efacec53.js | 1 - .../public/angular/3rdpartylicenses.txt | 337 -- .../public/angular/403.af6f7402bb9644e0.js | 1 - .../public/angular/4048.c556ec6abdb2d0e3.js | 1 - .../public/angular/4056.2195ebc9752a6bce.js | 1 - .../public/angular/4079.cbe88c8caf13065d.js | 1 - .../public/angular/4095.25825e6869d4c6de.js | 1 - .../public/angular/410.ad6ef0e42eca319f.js | 1 - .../public/angular/4135.5aa09c0ece5cdae8.js | 1 - .../public/angular/4165.249828e657f470a9.js | 1 - .../public/angular/4186.2b1d746e766811ee.js | 1 - .../public/angular/4194.d5cf5fcee0013ada.js | 1 - .../public/angular/4198.80da27c8dc569279.js | 1 - .../public/angular/4207.c625ec28e09eb7a6.js | 1 - .../public/angular/4223.4046e218ef3fc449.js | 1 - .../public/angular/4287.4ede0c3a31f5731c.js | 1 - .../public/angular/4341.f4af80ccc50f46d8.js | 1 - .../public/angular/4346.d537db3c049e20fc.js | 1 - .../public/angular/4366.45b3c1eb9124736d.js | 1 - .../public/angular/4367.55b09704ee9a990d.js | 1 - .../public/angular/439.2a5c30cce5266022.js | 1 + .../public/angular/4430.27747cbc44b1b9c0.js | 1 - .../public/angular/4471.94258369ae32ad3b.js | 1 - .../public/angular/4496.f49b27972eaaa7a6.js | 1 - .../public/angular/4516.18c1d8f576a9b700.js | 1 - .../public/angular/4522.399750530df4617f.js | 1 - .../public/angular/4578.f8ed66feee398009.js | 1 - .../public/angular/4609.4b54bc6852b34de6.js | 1 - .../public/angular/465.81d4b3863c09eeab.js | 1 - .../public/angular/4766.2772c877c91b79a4.js | 1 - .../public/angular/4786.83d8cc556eafc008.js | 1 - .../public/angular/4824.df716fbd3fc1aa78.js | 1 - .../public/angular/4828.42e4fd77774f10f0.js | 149 - .../public/angular/487.41913a1ac5ba53a0.js | 1 + .../public/angular/4918.de9136e7e94caac6.js | 1 - .../public/angular/4937.d7da790d12c9ac4c.js | 1 - .../public/angular/4940.5b69fac9ee916717.js | 1 - .../public/angular/4976.64de92743325e09f.js | 1 - .../public/angular/4978.e231ce8108fd716e.js | 1 - .../public/angular/4988.b8590445cf609226.js | 1 - .../public/angular/5010.7148301adff11a11.js | 1 - .../public/angular/5039.f0bc6dd33471bbbe.js | 1 - .../public/angular/5043.4c651922e1136da6.js | 1 - .../public/angular/505.1104291355551810.js | 1 - .../public/angular/5068.89fa6c1eb4e12520.js | 1 - .../public/angular/511.f236fed7bbf85b27.js | 1 + .../public/angular/5147.8e3ae6656b700300.js | 1 - .../public/angular/5171.b27d86c28a2c371f.js | 1 - .../public/angular/5175.bf1f6dab9e0274fe.js | 1 - .../public/angular/5237.3534f29b97eae04b.js | 1 - .../public/angular/5265.8ea66d02a3484fc1.js | 1 - .../public/angular/5302.ff3b116d752fadc2.js | 1 - .../public/angular/5337.d2537bf32f83222b.js | 1 - .../public/angular/5359.4da92fa3d04e70d3.js | 1 - .../public/angular/5362.aa90b34709712395.js | 1 - .../public/angular/5425.4c3f98ac4d397c3b.js | 1 - .../public/angular/5439.b0ed19c673a218c2.js | 1 - .../public/angular/5496.db6bcc08e38c6d12.js | 1 - .../public/angular/5508.bff4656504bccb5b.js | 1 - .../public/angular/5566.352483ad5bf1bae8.js | 1 - .../public/angular/5625.4ca0272d63a5b0b7.js | 1 - .../public/angular/5627.896d0474a7309b2b.js | 1 - .../public/angular/5645.850723eb8d4df31f.js | 1 - .../public/angular/5655.00cd85e6fd0ad5d2.js | 1 - .../public/angular/5690.f5ccd8cec2c8d924.js | 1 - .../public/angular/5795.2241bfa7626df436.js | 1 - .../public/angular/5810.0f6802d70f46c7b4.js | 1 - .../public/angular/587.6e5788ce83441015.js | 1 - .../public/angular/5915.f7350332ed57ddd1.js | 1 - .../public/angular/5964.942b54dbef1b73c7.js | 1 - .../public/angular/5976.f7ba0b56adf1b232.js | 1 - .../public/angular/5978.5d4f595ae16122f8.js | 1 - .../public/angular/5979.99fc2e2f860f0c02.js | 1 - .../public/angular/5994.f824200003ba112d.js | 1 - .../public/angular/6007.777ecafc323ef0cd.js | 1 - .../public/angular/6072.89fba89aca1f9f5f.js | 1 - .../public/angular/6079.2303ba66ba9a3edc.js | 1 - .../public/angular/6212.4c9b2d89bda92aec.js | 33 - .../public/angular/6240.27fd51956a0d92fe.js | 1 - .../public/angular/6259.005f40a32342e36b.js | 1 - .../public/angular/6269.0289357d835558d5.js | 1 - .../public/angular/6306.1f8bea0c77af1d9e.js | 1 - .../public/angular/6329.ed08436c8f9c994f.js | 1 - .../public/angular/6339.23ca905a694c92b3.js | 1 - .../public/angular/6354.0a778c87eb69bea7.js | 1 - .../public/angular/6373.eae9286cd4b665bf.js | 1 - .../public/angular/6402.385dd8f8ca73ce49.js | 1 - .../public/angular/6445.97968aaf26403cfb.js | 1 - .../public/angular/6446.c6f2dfcdd9c34db0.js | 1 - .../public/angular/6455.fc5cbd489ff59276.js | 1 - .../public/angular/6560.aaa6aa3e13f0c6ca.js | 1 - .../public/angular/6625.134e651f39c74515.js | 1 - .../public/angular/6651.572aa065f5dc88db.js | 1 - .../public/angular/6681.d031e0aff49f3125.js | 1 - .../public/angular/6713.ca34466a3c05d53b.js | 1 - .../public/angular/676.34eef6437be03b0c.js | 1 - .../public/angular/6771.0b93bb257a48c583.js | 1 - .../public/angular/6777.bd0fbbde90b8817f.js | 1 - .../public/angular/6810.83b9c6e71fae7d02.js | 1 - .../public/angular/6844.da2aef18a274b49c.js | 1 - .../public/angular/6859.e1a93077459d438a.js | 1 - .../public/angular/6886.09a495eeadba01c5.js | 1 - .../public/angular/6894.665b9d461a205bf5.js | 1 - .../public/angular/6912.0d951f29576ad58f.js | 1 - .../public/angular/700.543c1aa7f67dd6d6.js | 1 - .../public/angular/7001.7d027ec6a46cbb62.js | 1 - .../public/angular/7016.ab23c90ac351dac0.js | 1 - .../public/angular/7028.d9d13641d931a3a1.js | 1 - .../public/angular/71.44c8609a643511aa.js | 1 - .../public/angular/7112.4ae9fce1f60d02e3.js | 1 - .../public/angular/7127.98c86e5803b93d07.js | 1 - .../public/angular/7155.1a02021ace58c972.js | 1 - .../public/angular/725.d0ae6acaea8cff30.js | 1 - .../public/angular/7281.230ad54bb0b2a681.js | 1 - .../public/angular/7298.dcb22dfb9a1fde15.js | 1 - .../public/angular/73.95b1041108544c56.js | 1 - .../public/angular/7300.34f7cefd70a0dc49.js | 1 - .../public/angular/7313.f7e441b00d5253ef.js | 1 - .../public/angular/7396.0cbd8753fc2d0680.js | 1 - .../public/angular/7419.7cbee73d579ff087.js | 1 - .../public/angular/7434.a25d3d2784bd4723.js | 1 - .../public/angular/7511.2c397948696f7730.js | 1 - .../public/angular/7534.343e185b9f08dc97.js | 1 - .../public/angular/7559.c0768dd53d265ddd.js | 1 - .../public/angular/7566.e76b8e604b285679.js | 1 - .../public/angular/7614.5790d0f2f16ee887.js | 1 - .../public/angular/7708.e62569a04e3c4ba1.js | 1 - .../public/angular/7728.e87516bc5f5415e4.js | 1 - .../public/angular/7731.d723b1dd95db0df5.js | 1 - .../public/angular/774.32bc4e47ac5a4b4d.js | 1 + .../public/angular/7755.7cd7b47f0a407461.js | 1 - .../public/angular/7765.63f9361d0c659948.js | 1 - .../public/angular/7777.dbc5fcd10880b595.js | 1 - .../public/angular/7794.8468bd18cf146f7a.js | 1 - .../public/angular/7867.2e57d05d7773339a.js | 1 - .../public/angular/7898.420803f84ef451e4.js | 1 - .../public/angular/8068.2cddd2b2926ac8ff.js | 1 - .../public/angular/8073.1a876075b01a413b.js | 1 - .../public/angular/8110.958310f26ffee749.js | 1 - .../public/angular/8149.d9a8f6e0dae018d1.js | 1 - .../public/angular/8176.5a06a95c121dbd6e.js | 1 - .../public/angular/8178.04fadb05000e0015.js | 1 - .../public/angular/8203.f3d8d13fc9dd04c6.js | 32 - .../public/angular/8271.ba00942e76307f3b.js | 1 - .../public/angular/8287.1315a0b55f9ee378.js | 1 - .../public/angular/8302.1ff22d35a7fdb889.js | 1 - .../public/angular/8325.a51485a3d41a2a79.js | 1 - .../public/angular/8346.19dc97a10e48b3ea.js | 1 - .../public/angular/8351.99e25a25af31bdb7.js | 1 - .../public/angular/8364.0dd29268713e4f9b.js | 1 - .../public/angular/8372.b7278a21a2ac10d1.js | 1 - .../public/angular/8460.aa0e68d3732243f9.js | 1 - .../public/angular/8472.df0c054c8539906c.js | 1 - .../public/angular/8562.de53e094f8bdbb47.js | 1 - .../public/angular/857.520f0098bac34ce2.js | 1 - .../public/angular/8572.11cfb1ef1819db4c.js | 1 - .../public/angular/8586.73ac044c3968ad44.js | 1 - .../public/angular/8594.f1134cd8c68fe4c1.js | 1 - .../public/angular/865.651a9bf2047db45a.js | 1 - .../public/angular/8698.f6b72c4f5263b8b6.js | 1 - .../public/angular/8704.0daf7b1a7d15500a.js | 1 - .../public/angular/8726.ab8ed3e3015f96e1.js | 1 - .../public/angular/8740.5d9d7bf242d6c5ea.js | 1 - .../public/angular/8750.c3fa574c1dbcf1bf.js | 1 - .../public/angular/8762.8fdd6fa7f6877c8a.js | 1 - .../public/angular/8765.d6fd3c34acbe0b90.js | 1 - .../public/angular/8792.8d631cdfffa79c81.js | 1 - .../public/angular/88.62477a3a44b3ef26.js | 1 - .../public/angular/8863.1c84449abf87f6c9.js | 5239 ----------------- .../public/angular/8887.90c0614815279982.js | 1 - .../public/angular/8897.9a4831f70bfd0dff.js | 1 - .../public/angular/8899.9ba42385af5b92cf.js | 1 - .../public/angular/8954.b94cd18cb9cbc90b.js | 1 - .../public/angular/8967.293d477d4cebcdbb.js | 1 - .../public/angular/9058.0a54f45ca9a1b20f.js | 1 - .../public/angular/9080.cd04e6890e6f4009.js | 1 - .../public/angular/9094.0fb9856e503d28a7.js | 33 - .../public/angular/9114.25f9376936337091.js | 1 - .../public/angular/9155.116620c42b94e556.js | 1 - .../public/angular/9185.407e5cfaabc9d5d9.js | 1 - .../public/angular/9202.dc52f7981fc3dbad.js | 1 - .../public/angular/921.17614f2ccc337a73.js | 1 - .../public/angular/9217.791c18c7214b8f96.js | 1 - .../public/angular/926.500bb630b1d29ab8.js | 1 + .../public/angular/9298.5327074c7454d23f.js | 1 - .../public/angular/9303.87970b5d1247c31f.js | 16 - .../public/angular/9325.e3ba317ca6c21c43.js | 1 - .../public/angular/937.28b94d8e6ce5ee61.js | 1 - .../public/angular/9372.e0ef28d07ab46b99.js | 1 - .../public/angular/9410.d24652d4b7b192b4.js | 1 - .../public/angular/945.1007f9e17ae9ad05.js | 1 - .../public/angular/945.a46f4e3460d39909.js | 1 + .../public/angular/945.b4b85a560acec73f.js | 1 - .../public/angular/948.1aa493efcc8769fd.js | 1 - .../public/angular/9487.69ac03b59340f20e.js | 1 - .../public/angular/9507.69bc61dbccdbf347.js | 1 - .../public/angular/9548.573bc7526cfc9fff.js | 1 - .../public/angular/961.4edbc795d81929be.js | 1 - .../public/angular/9628.fad330880682ca9a.js | 1 - .../public/angular/9689.0415d46252d8b23a.js | 1 - .../public/angular/9735.87650b5dea4c3f00.js | 1 - .../public/angular/9759.1108c6a971763b36.js | 33 - .../public/angular/9856.fba4027f5de4a161.js | 1 - .../public/angular/9862.eddf7bd79e0a1724.js | 1 - .../public/angular/9903.c05eb6c2f17af8c7.js | 1 - .../public/angular/9973.42766192c3f6cde9.js | 1 - .../public/angular/9986.c6cbdfd0ce2d33b4.js | 1 - .../public/angular/9991.7e81675a3f59b370.js | 1 - .../public/angular/common.676d91cd4f235d6f.js | 1 - .../porrtal-io-app/public/angular/index.html | 2 +- .../public/angular/main.c9352b651b26bfaf.js | 1 + .../public/angular/main.d5aca661681f4ef3.js | 1 - .../angular/polyfills.5411f381e8254a9c.js | 1 - .../angular/polyfills.b38891187ae5a4eb.js | 1 + .../angular/runtime.43df976f515fbbdf.js | 1 + .../angular/runtime.daa6717c403f30fb.js | 1 - .../angular/runtime.f641f46a36b75b4c.js | 1 - .../angular/scripts.14163a64b07b11bf.js | 1 - .../angular/scripts.a4c04c8e24e92c45.js | 1 + create-a-quick-start-demo.sh | 6 - create-r-quick-start-demo.sh | 6 - .../a-quick-start-demo/src/index.ts | 8 - .../building-scene-with-query.component.html | 1 - .../building-scene-with-query.component.scss | 0 ...uilding-scene-with-query.component.spec.ts | 36 - .../building-scene-with-query.component.ts | 30 - .../digital-elevation-map.component.html | 1 - .../digital-elevation-map.component.scss | 0 .../digital-elevation-map.component.spec.ts | 36 - .../digital-elevation-map.component.ts | 30 - .../earthquake-map.component.html | 1 - .../earthquake-map.component.scss | 0 .../earthquake-map.component.spec.ts | 36 - .../earthquake-map.component.ts | 30 - .../hurricane-map.component.html | 1 - .../hurricane-map.component.scss | 9 - .../hurricane-map.component.spec.ts | 36 - .../hurricane-map/hurricane-map.component.ts | 151 - .../src/lib/viz-nav/viz-nav.component.html | 47 - .../r-quick-start-demo/src/index.ts | 4 - .../building-scene-with-query.module.scss | 7 - .../building-scene-with-query.spec.tsx | 24 - .../building-scene-with-query.tsx | 28 - .../digital-elevation-map.module.scss | 7 - .../digital-elevation-map.spec.tsx | 24 - .../digital-elevation-map.tsx | 28 - .../earthquake-map/earthquake-map.module.scss | 7 - .../earthquake-map/earthquake-map.spec.tsx | 24 - .../earthquake-map/earthquake-map.tsx | 28 - .../hurricane-map/hurricane-map.module.scss | 9 - .../hurricane-map/hurricane-map.spec.tsx | 24 - .../hurricane/hurricane-map/hurricane-map.tsx | 142 - .../src/lib/viz-nav/viz-nav.tsx | 47 - package-lock.json | 3221 ++++------ package.json | 2 - 337 files changed, 1309 insertions(+), 9083 deletions(-) create mode 100644 apps/n/porrtal-io-app/public/angular/1.5d56d5f79a1fb802.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1074.4f29026c1e7821a7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1218.5cf5f1393e23fddd.js delete mode 100644 apps/n/porrtal-io-app/public/angular/125.72695be1e25c54a5.js delete mode 100644 apps/n/porrtal-io-app/public/angular/126.1a496f66391c2c65.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1269.0a1b5e41aab2dcff.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1288.acef9941cf09f3d8.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1299.ad5e8ff1797660c0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1317.572d2160f81ce163.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1318.81b1f6f153298ee7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1329.c2e1ccdd4331160d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1362.053d4ee22c653b5d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/15.26785073b1414895.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1533.fe7a6163f7edb103.js delete mode 100644 apps/n/porrtal-io-app/public/angular/154.0785cbdf6f2c3e87.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1561.eeba4508f794699b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1563.05f0bd0eb172cafd.js delete mode 100644 apps/n/porrtal-io-app/public/angular/157.88b7fd3a7d3af51a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1591.56fb0a1f761e41ad.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1799.1e83fbfc51178eb9.js delete mode 100644 apps/n/porrtal-io-app/public/angular/181.fc9b235e63383b82.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1831.30fef6ee2c126946.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1832.b9b5ffbcba52cd5d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1843.a6a0f65e246c7844.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1913.f72a3333a5aa5a9c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/195.9c9a87b138337815.js delete mode 100644 apps/n/porrtal-io-app/public/angular/1955.4a8c33fc1033586d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2045.ce6cddf1da72510c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2125.7b2dd66bad836c2b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2144.4f19d420a964c7f9.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2226.a41f6e6f3208c778.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2248.055adc6b66a488de.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2305.274c8428c73b70ab.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2337.ee17ec24ac521a16.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2371.66e751671287c863.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2405.72b14d50ecf83fc4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2435.238d9e3d21011a9b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2479.765680f3b83845c0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2480.80f5a409f9e825e4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2493.6a6a1a171b1585e5.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2504.3209ebd64049059b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2543.eed26d786a5f9ed7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2558.449d8b51a8193592.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2620.41d5a7dc7c8eea0f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2694.61df90b49859bb91.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2701.c2079041210f1c6f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/289.185dcef833da0076.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2903.a832184f5cc40b0b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2943.f163cbeb2388c572.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2955.9c1a0738cdb069bd.js delete mode 100644 apps/n/porrtal-io-app/public/angular/2958.e9207205a84f16c2.js delete mode 100644 apps/n/porrtal-io-app/public/angular/310.a07342ac1a10367c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3109.2c0d2cc085ad23ec.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3129.7af7338821a0a261.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3130.bd1986296dc1dcc4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3207.b41fe2bb093dc349.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3208.092ff5fb721fc0fa.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3250.0729abec3366f925.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3277.d070c09c2bce7e7b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3279.fcc40df64682935f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3308.4c6398c97aad946a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3309.d4a613bcc4da8bdc.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3358.378be12f4c5c5fbb.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3368.dde3c648e976b312.js delete mode 100644 apps/n/porrtal-io-app/public/angular/342.4bb1e703ad3f858f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3464.04c5090d1fbf08eb.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3478.7391a288ec571482.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3482.34e81e4215e6c0c1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3542.c1df8945f76acab3.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3678.9ce459b07150af40.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3690.e7c96ee511fe9fe2.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3705.5216a88ad83612f0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3714.74ec01ee64c0edbc.js delete mode 100644 apps/n/porrtal-io-app/public/angular/375.53ec6e2d18f3745a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3751.fe0dd4ed481353b3.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3774.b9f4e09d55e16c42.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3807.6d43b36edb1a648b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3835.3a52e0a3bbc5bb21.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3907.c049cd607ae41791.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3914.41ea51294c64ddc5.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3926.e0edc8e9ca077282.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3959.7403c7f767b7bcad.js delete mode 100644 apps/n/porrtal-io-app/public/angular/3999.eb34a7d4efacec53.js delete mode 100644 apps/n/porrtal-io-app/public/angular/403.af6f7402bb9644e0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4048.c556ec6abdb2d0e3.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4056.2195ebc9752a6bce.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4079.cbe88c8caf13065d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4095.25825e6869d4c6de.js delete mode 100644 apps/n/porrtal-io-app/public/angular/410.ad6ef0e42eca319f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4135.5aa09c0ece5cdae8.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4165.249828e657f470a9.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4186.2b1d746e766811ee.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4194.d5cf5fcee0013ada.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4198.80da27c8dc569279.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4207.c625ec28e09eb7a6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4223.4046e218ef3fc449.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4287.4ede0c3a31f5731c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4341.f4af80ccc50f46d8.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4346.d537db3c049e20fc.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4366.45b3c1eb9124736d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4367.55b09704ee9a990d.js create mode 100644 apps/n/porrtal-io-app/public/angular/439.2a5c30cce5266022.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4430.27747cbc44b1b9c0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4471.94258369ae32ad3b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4496.f49b27972eaaa7a6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4516.18c1d8f576a9b700.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4522.399750530df4617f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4578.f8ed66feee398009.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4609.4b54bc6852b34de6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/465.81d4b3863c09eeab.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4766.2772c877c91b79a4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4786.83d8cc556eafc008.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4824.df716fbd3fc1aa78.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4828.42e4fd77774f10f0.js create mode 100644 apps/n/porrtal-io-app/public/angular/487.41913a1ac5ba53a0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4918.de9136e7e94caac6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4937.d7da790d12c9ac4c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4940.5b69fac9ee916717.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4976.64de92743325e09f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4978.e231ce8108fd716e.js delete mode 100644 apps/n/porrtal-io-app/public/angular/4988.b8590445cf609226.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5010.7148301adff11a11.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5039.f0bc6dd33471bbbe.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5043.4c651922e1136da6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/505.1104291355551810.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5068.89fa6c1eb4e12520.js create mode 100644 apps/n/porrtal-io-app/public/angular/511.f236fed7bbf85b27.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5147.8e3ae6656b700300.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5171.b27d86c28a2c371f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5175.bf1f6dab9e0274fe.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5237.3534f29b97eae04b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5265.8ea66d02a3484fc1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5302.ff3b116d752fadc2.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5337.d2537bf32f83222b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5359.4da92fa3d04e70d3.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5362.aa90b34709712395.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5425.4c3f98ac4d397c3b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5439.b0ed19c673a218c2.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5496.db6bcc08e38c6d12.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5508.bff4656504bccb5b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5566.352483ad5bf1bae8.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5625.4ca0272d63a5b0b7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5627.896d0474a7309b2b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5645.850723eb8d4df31f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5655.00cd85e6fd0ad5d2.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5690.f5ccd8cec2c8d924.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5795.2241bfa7626df436.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5810.0f6802d70f46c7b4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/587.6e5788ce83441015.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5915.f7350332ed57ddd1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5964.942b54dbef1b73c7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5976.f7ba0b56adf1b232.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5978.5d4f595ae16122f8.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5979.99fc2e2f860f0c02.js delete mode 100644 apps/n/porrtal-io-app/public/angular/5994.f824200003ba112d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6007.777ecafc323ef0cd.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6072.89fba89aca1f9f5f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6079.2303ba66ba9a3edc.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6212.4c9b2d89bda92aec.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6240.27fd51956a0d92fe.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6259.005f40a32342e36b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6269.0289357d835558d5.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6306.1f8bea0c77af1d9e.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6329.ed08436c8f9c994f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6339.23ca905a694c92b3.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6354.0a778c87eb69bea7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6373.eae9286cd4b665bf.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6402.385dd8f8ca73ce49.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6445.97968aaf26403cfb.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6446.c6f2dfcdd9c34db0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6455.fc5cbd489ff59276.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6560.aaa6aa3e13f0c6ca.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6625.134e651f39c74515.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6651.572aa065f5dc88db.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6681.d031e0aff49f3125.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6713.ca34466a3c05d53b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/676.34eef6437be03b0c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6771.0b93bb257a48c583.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6777.bd0fbbde90b8817f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6810.83b9c6e71fae7d02.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6844.da2aef18a274b49c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6859.e1a93077459d438a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6886.09a495eeadba01c5.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6894.665b9d461a205bf5.js delete mode 100644 apps/n/porrtal-io-app/public/angular/6912.0d951f29576ad58f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/700.543c1aa7f67dd6d6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7001.7d027ec6a46cbb62.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7016.ab23c90ac351dac0.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7028.d9d13641d931a3a1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/71.44c8609a643511aa.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7112.4ae9fce1f60d02e3.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7127.98c86e5803b93d07.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7155.1a02021ace58c972.js delete mode 100644 apps/n/porrtal-io-app/public/angular/725.d0ae6acaea8cff30.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7281.230ad54bb0b2a681.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7298.dcb22dfb9a1fde15.js delete mode 100644 apps/n/porrtal-io-app/public/angular/73.95b1041108544c56.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7300.34f7cefd70a0dc49.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7313.f7e441b00d5253ef.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7396.0cbd8753fc2d0680.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7419.7cbee73d579ff087.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7434.a25d3d2784bd4723.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7511.2c397948696f7730.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7534.343e185b9f08dc97.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7559.c0768dd53d265ddd.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7566.e76b8e604b285679.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7614.5790d0f2f16ee887.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7708.e62569a04e3c4ba1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7728.e87516bc5f5415e4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7731.d723b1dd95db0df5.js create mode 100644 apps/n/porrtal-io-app/public/angular/774.32bc4e47ac5a4b4d.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7755.7cd7b47f0a407461.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7765.63f9361d0c659948.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7777.dbc5fcd10880b595.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7794.8468bd18cf146f7a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7867.2e57d05d7773339a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/7898.420803f84ef451e4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8068.2cddd2b2926ac8ff.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8073.1a876075b01a413b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8110.958310f26ffee749.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8149.d9a8f6e0dae018d1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8176.5a06a95c121dbd6e.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8178.04fadb05000e0015.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8203.f3d8d13fc9dd04c6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8271.ba00942e76307f3b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8287.1315a0b55f9ee378.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8302.1ff22d35a7fdb889.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8325.a51485a3d41a2a79.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8346.19dc97a10e48b3ea.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8351.99e25a25af31bdb7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8364.0dd29268713e4f9b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8372.b7278a21a2ac10d1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8460.aa0e68d3732243f9.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8472.df0c054c8539906c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8562.de53e094f8bdbb47.js delete mode 100644 apps/n/porrtal-io-app/public/angular/857.520f0098bac34ce2.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8572.11cfb1ef1819db4c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8586.73ac044c3968ad44.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8594.f1134cd8c68fe4c1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/865.651a9bf2047db45a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8698.f6b72c4f5263b8b6.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8704.0daf7b1a7d15500a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8726.ab8ed3e3015f96e1.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8740.5d9d7bf242d6c5ea.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8750.c3fa574c1dbcf1bf.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8762.8fdd6fa7f6877c8a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8765.d6fd3c34acbe0b90.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8792.8d631cdfffa79c81.js delete mode 100644 apps/n/porrtal-io-app/public/angular/88.62477a3a44b3ef26.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8863.1c84449abf87f6c9.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8887.90c0614815279982.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8897.9a4831f70bfd0dff.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8899.9ba42385af5b92cf.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8954.b94cd18cb9cbc90b.js delete mode 100644 apps/n/porrtal-io-app/public/angular/8967.293d477d4cebcdbb.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9058.0a54f45ca9a1b20f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9080.cd04e6890e6f4009.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9094.0fb9856e503d28a7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9114.25f9376936337091.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9155.116620c42b94e556.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9185.407e5cfaabc9d5d9.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9202.dc52f7981fc3dbad.js delete mode 100644 apps/n/porrtal-io-app/public/angular/921.17614f2ccc337a73.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9217.791c18c7214b8f96.js create mode 100644 apps/n/porrtal-io-app/public/angular/926.500bb630b1d29ab8.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9298.5327074c7454d23f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9303.87970b5d1247c31f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9325.e3ba317ca6c21c43.js delete mode 100644 apps/n/porrtal-io-app/public/angular/937.28b94d8e6ce5ee61.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9372.e0ef28d07ab46b99.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9410.d24652d4b7b192b4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/945.1007f9e17ae9ad05.js create mode 100644 apps/n/porrtal-io-app/public/angular/945.a46f4e3460d39909.js delete mode 100644 apps/n/porrtal-io-app/public/angular/945.b4b85a560acec73f.js delete mode 100644 apps/n/porrtal-io-app/public/angular/948.1aa493efcc8769fd.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9487.69ac03b59340f20e.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9507.69bc61dbccdbf347.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9548.573bc7526cfc9fff.js delete mode 100644 apps/n/porrtal-io-app/public/angular/961.4edbc795d81929be.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9628.fad330880682ca9a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9689.0415d46252d8b23a.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9735.87650b5dea4c3f00.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9759.1108c6a971763b36.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9856.fba4027f5de4a161.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9862.eddf7bd79e0a1724.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9903.c05eb6c2f17af8c7.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9973.42766192c3f6cde9.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9986.c6cbdfd0ce2d33b4.js delete mode 100644 apps/n/porrtal-io-app/public/angular/9991.7e81675a3f59b370.js delete mode 100644 apps/n/porrtal-io-app/public/angular/common.676d91cd4f235d6f.js create mode 100644 apps/n/porrtal-io-app/public/angular/main.c9352b651b26bfaf.js delete mode 100644 apps/n/porrtal-io-app/public/angular/main.d5aca661681f4ef3.js delete mode 100644 apps/n/porrtal-io-app/public/angular/polyfills.5411f381e8254a9c.js create mode 100644 apps/n/porrtal-io-app/public/angular/polyfills.b38891187ae5a4eb.js create mode 100644 apps/n/porrtal-io-app/public/angular/runtime.43df976f515fbbdf.js delete mode 100644 apps/n/porrtal-io-app/public/angular/runtime.daa6717c403f30fb.js delete mode 100644 apps/n/porrtal-io-app/public/angular/runtime.f641f46a36b75b4c.js delete mode 100644 apps/n/porrtal-io-app/public/angular/scripts.14163a64b07b11bf.js create mode 100644 apps/n/porrtal-io-app/public/angular/scripts.a4c04c8e24e92c45.js delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/building-scene/building-scene-with-query/building-scene-with-query.component.html delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/building-scene/building-scene-with-query/building-scene-with-query.component.scss delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/building-scene/building-scene-with-query/building-scene-with-query.component.spec.ts delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/building-scene/building-scene-with-query/building-scene-with-query.component.ts delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/digital-elevation/digital-elevation-map/digital-elevation-map.component.html delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/digital-elevation/digital-elevation-map/digital-elevation-map.component.scss delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/digital-elevation/digital-elevation-map/digital-elevation-map.component.spec.ts delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/digital-elevation/digital-elevation-map/digital-elevation-map.component.ts delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/earthquake/earthquake-map/earthquake-map.component.html delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/earthquake/earthquake-map/earthquake-map.component.scss delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/earthquake/earthquake-map/earthquake-map.component.spec.ts delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/earthquake/earthquake-map/earthquake-map.component.ts delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/hurricane/hurricane-map/hurricane-map.component.html delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/hurricane/hurricane-map/hurricane-map.component.scss delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/hurricane/hurricane-map/hurricane-map.component.spec.ts delete mode 100644 libs/porrtal-components/a-quick-start-demo/src/lib/esri/hurricane/hurricane-map/hurricane-map.component.ts delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/building-scene/building-scene-with-query/building-scene-with-query.module.scss delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/building-scene/building-scene-with-query/building-scene-with-query.spec.tsx delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/building-scene/building-scene-with-query/building-scene-with-query.tsx delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/digital-elevation/digital-elevation-map/digital-elevation-map.module.scss delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/digital-elevation/digital-elevation-map/digital-elevation-map.spec.tsx delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/digital-elevation/digital-elevation-map/digital-elevation-map.tsx delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/earthquake/earthquake-map/earthquake-map.module.scss delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/earthquake/earthquake-map/earthquake-map.spec.tsx delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/earthquake/earthquake-map/earthquake-map.tsx delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/hurricane/hurricane-map/hurricane-map.module.scss delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/hurricane/hurricane-map/hurricane-map.spec.tsx delete mode 100644 libs/porrtal-components/r-quick-start-demo/src/lib/esri/hurricane/hurricane-map/hurricane-map.tsx diff --git a/apps/n/porrtal-io-app/public/angular/1.5d56d5f79a1fb802.js b/apps/n/porrtal-io-app/public/angular/1.5d56d5f79a1fb802.js new file mode 100644 index 00000000..ecef3ce8 --- /dev/null +++ b/apps/n/porrtal-io-app/public/angular/1.5d56d5f79a1fb802.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1],{7001:(D,v,a)=>{a.r(v),a.d(v,{AccountBillingHistoryComponent:()=>g,AccountCreateComponent:()=>h,AccountDetailComponent:()=>d,AccountNavComponent:()=>m,AccountSearchComponent:()=>u,DocsNavComponent:()=>p});var i=a(6895),f=a(3286),s=a(7392);const C=[{viewId:"Welcome",displayText:"Welcome !!",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",launchAtStartup:!0,componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/welcome/welcome.md"}},{viewId:"Setup Your Workstation",displayText:"Setup Your Workstation",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/setup-your-workstation/setup-your-workstation.md"}},{viewId:"Create the App",displayText:"Create the App",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-the-app/create-the-app.md"}},{viewId:"Create the Nav Component",displayText:"Create the Nav Componet",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-the-nav-component/create-the-nav-component.md"}},{viewId:"Launch a Component",displayText:"Launch a Component",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/launch-a-component/launch-a-component.md"}},{viewId:"Create an Entity Menu",displayText:"Create an Entity Menu",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-an-entity-menu/create-an-entity-menu.md"}},{viewId:"Create a Search Component",displayText:"Create a Search Component",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-a-search-component/create-a-search-component.md"}},{viewId:"Next Steps",displayText:"Next Steps",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(487).then(a.bind(a,9487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/next-steps/next-steps.md"}}];var t=a(4650);class p{constructor(o){this.shellStateService=o,C.forEach(e=>{this.shellStateService.dispatch({type:"registerView",view:e})}),this.shellStateService.dispatch({type:"launchView",viewId:"Welcome"})}static#t=this.\u0275fac=function(e){return new(e||p)(t.Y36(f.vv))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["porrtal-workspace-docs-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:44,vars:0,consts:[[1,"container"],[1,"title"],[1,"data-container"],[1,"link-button",3,"click"],[2,"margin-left","5px"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2,"Quick Start Docs"),t.qZA(),t.TgZ(3,"div",2)(4,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Welcome"})}),t.TgZ(5,"mat-icon"),t._uU(6,"auto_awesome"),t.qZA(),t.TgZ(7,"span",4),t._uU(8,"Welcome !!"),t.qZA()(),t.TgZ(9,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Setup Your Workstation"})}),t.TgZ(10,"mat-icon"),t._uU(11,"auto_awesome"),t.qZA(),t.TgZ(12,"span",4),t._uU(13,"Setup Your Workstation"),t.qZA()(),t.TgZ(14,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create the App"})}),t.TgZ(15,"mat-icon"),t._uU(16,"auto_awesome"),t.qZA(),t.TgZ(17,"span",4),t._uU(18,"Create the App"),t.qZA()(),t.TgZ(19,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create the Nav Component"})}),t.TgZ(20,"mat-icon"),t._uU(21,"auto_awesome"),t.qZA(),t.TgZ(22,"span",4),t._uU(23,"Create the Nav Component"),t.qZA()(),t.TgZ(24,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Launch a Component"})}),t.TgZ(25,"mat-icon"),t._uU(26,"auto_awesome"),t.qZA(),t.TgZ(27,"span",4),t._uU(28,"Launch a Component"),t.qZA()(),t.TgZ(29,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create an Entity Menu"})}),t.TgZ(30,"mat-icon"),t._uU(31,"auto_awesome"),t.qZA(),t.TgZ(32,"span",4),t._uU(33,"Create an Entity Menu"),t.qZA()(),t.TgZ(34,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create a Search Component"})}),t.TgZ(35,"mat-icon"),t._uU(36,"auto_awesome"),t.qZA(),t.TgZ(37,"span",4),t._uU(38,"Create a Search Component"),t.qZA()(),t.TgZ(39,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Next Steps"})}),t.TgZ(40,"mat-icon"),t._uU(41,"auto_awesome"),t.qZA(),t.TgZ(42,"span",4),t._uU(43,"Next Steps"),t.qZA()()()())},dependencies:[i.ez,s.Ps,s.Hw],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:5px;padding-bottom:4px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#4682b4;text-decoration:underline;cursor:pointer;display:grid;grid-template-columns:auto auto 1fr;align-items:center}"],changeDetection:0})}var T=a(6485);const l=[{accountId:1,name:"Bank of Big Money",orders:[{date:Date.now(),item:"Screen design",amount:1e3},{date:Date.now()+432e6,item:"Screen development",amount:5e3},{date:Date.now()+864e6,item:"Screen testing",amount:3e3}]},{accountId:2,name:"Bill Jones",orders:[{date:Date.now(),item:"Slide development",amount:1e3}]},{accountId:3,name:"Waffles R Us",orders:[{date:Date.now(),item:"Screen design",amount:2e3},{date:Date.now()+432e6,item:"Screen development",amount:8e3},{date:Date.now()+864e6,item:"Screen testing",amount:5e3}]},{accountId:4,name:"Waffle House",orders:[{date:Date.now(),item:"Screen design",amount:500},{date:Date.now()+432e6,item:"Screen development",amount:2e3}]},{accountId:5,name:"Crypto Bank",orders:[{date:Date.now(),item:"Slide work",amount:1e3},{date:Date.now()+432e6,item:"Computer order",amount:15e3},{date:Date.now()+864e6,item:"Programming",amount:21e3}]}],Z=function(c){return{accountId:c}};function w(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"porrtal-entity-menu",7)(2,"span",8)(3,"mat-icon"),t._uU(4,"account_box"),t.qZA(),t.TgZ(5,"span",4),t._uU(6),t.qZA()()(),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"number"),t.qZA(),t.BQk()),2&c){const e=o.$implicit;t.xp6(1),t.Q6J("state",t.VKq(6,Z,e.accountId)),t.xp6(5),t.Oqu(e.name),t.xp6(2),t.hij(" $ ",t.xi3(9,3,e.total,"1.0-0")," ")}}class m{constructor(o){this.shellStateService=o,this.topThreeAccounts=[],this.topThreeAccounts=[...l.map(e=>{const n=e.orders.reduce((r,U)=>r+U.amount,0);return{...e,total:n}}).sort((e,n)=>n.total-e.total).filter((e,n)=>n<3)],console.log("top three accounts",this.topThreeAccounts)}static#t=this.\u0275fac=function(e){return new(e||m)(t.Y36(f.vv))};static#e=this.\u0275cmp=t.Xpm({type:m,selectors:[["porrtal-account-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:11,vars:1,consts:[[1,"container"],[1,"title"],[1,"new-account-container"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto",3,"click"],[2,"margin-left","5px"],[1,"data-container"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2,"Top Three Accounts"),t.qZA(),t.TgZ(3,"div",2)(4,"span",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"AccountCreateComponent"})}),t.TgZ(5,"mat-icon"),t._uU(6,"add_circle"),t.qZA(),t.TgZ(7,"span",4),t._uU(8,"New Account"),t.qZA()()(),t.TgZ(9,"div",5),t.YNc(10,w,10,8,"ng-container",6),t.qZA()()),2&e&&(t.xp6(10),t.Q6J("ngForOf",n.topThreeAccounts))},dependencies:[i.ez,i.sg,i.JJ,s.Ps,s.Hw,T.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.new-account-container[_ngcontent-%COMP%]{margin-top:30px}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;align-items:center;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"]})}var x=a(4004),y=a(5439);function A(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.BQk()),2&c){const e=o.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.item),t.xp6(2),t.Oqu(n.formatAmount(e.amount)),t.xp6(2),t.Oqu(n.Moment(e.date).format("YYYY-DD-MM"))}}const S=function(c){return{accountId:c}};function M(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"porrtal-entity-menu",5)(2,"span",6)(3,"mat-icon"),t._uU(4,"account_box"),t.qZA(),t.TgZ(5,"span",7),t._uU(6),t.qZA()()(),t.TgZ(7,"div",8),t.YNc(8,A,7,3,"ng-container",4),t.qZA(),t.BQk()),2&c){const e=o.$implicit;t.xp6(1),t.Q6J("state",t.VKq(3,S,e.accountId)),t.xp6(5),t.Oqu(e.name),t.xp6(2),t.Q6J("ngForOf",e.orders)}}function N(c,o){if(1&c&&(t.ynx(0),t.YNc(1,M,9,5,"ng-container",4),t.BQk()),2&c){const e=o.ngIf;t.xp6(1),t.Q6J("ngForOf",e)}}class u{constructor(o){this.searchStateService=o,this.Moment=y,this.searchText$=o.select("debouncedSearchText"),this.filteredAccounts$=o.select("debouncedSearchText").pipe((0,x.U)(e=>l.filter(n=>JSON.stringify(n).toLowerCase().indexOf(e.toLowerCase())>=0)))}formatAmount(o){return"$"+o.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}static#t=this.\u0275fac=function(e){return new(e||u)(t.Y36(f.tx))};static#e=this.\u0275cmp=t.Xpm({type:u,selectors:[["porrtal-account-search"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:7,vars:6,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngIf"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"],[2,"margin-left","5px"],[1,"orders-data-container"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2),t.ALo(3,"async"),t.qZA(),t.TgZ(4,"div",2),t.YNc(5,N,2,1,"ng-container",3),t.ALo(6,"async"),t.qZA()()),2&e&&(t.xp6(2),t.hij("Account Search: ",t.lcZ(3,2,n.searchText$),""),t.xp6(3),t.Q6J("ngIf",t.lcZ(6,4,n.filteredAccounts$)))},dependencies:[i.ez,i.sg,i.O5,i.Ov,s.Ps,s.Hw,T.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:5px;padding-bottom:4px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px;margin-top:30px}.orders-data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin:15px 15px 15px 45px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}function I(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.BQk()),2&c){const e=o.$implicit,n=t.oxw();t.xp6(2),t.Oqu(e.item),t.xp6(2),t.hij(" ",e.amountText," "),t.xp6(2),t.Oqu(n.Moment(e.date).format("YYYY-DD-MM"))}}class d{constructor(){this.Moment=y}set viewState(o){if(this._viewState=o,this._viewState?.state&&this._viewState?.state.accountId){const e=this._viewState?.state.accountId;this.account=l.find(n=>n.accountId===e),this.orders=[],this.account&&(this.orders=this.account.orders.map(n=>({...n,amountText:"$"+n.amount.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")})))}}get viewState(){return this._viewState}static#t=this.\u0275fac=function(e){return new(e||d)};static#e=this.\u0275cmp=t.Xpm({type:d,selectors:[["porrtal-account-detail"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:5,vars:3,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2),t.qZA(),t.TgZ(3,"div",2),t.YNc(4,I,7,3,"ng-container",3),t.qZA()()),2&e&&(t.xp6(2),t.AsE(" ",null==n.account?null:n.account.name," (",null==n.account?null:n.account.accountId,") - Account Detail "),t.xp6(2),t.Q6J("ngForOf",n.orders))},dependencies:[i.ez,i.sg],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class g{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(e){return new(e||g)};static#e=this.\u0275cmp=t.Xpm({type:g,selectors:[["porrtal-account-billing-history"]],standalone:!0,features:[t.jDz],decls:2,vars:0,template:function(e,n){1&e&&(t.TgZ(0,"p"),t._uU(1,"account-billing-history works!"),t.qZA())},dependencies:[i.ez],changeDetection:0})}class h{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(e){return new(e||h)};static#e=this.\u0275cmp=t.Xpm({type:h,selectors:[["porrtal-account-create"]],standalone:!0,features:[t.jDz],decls:2,vars:0,template:function(e,n){1&e&&(t.TgZ(0,"p"),t._uU(1,"account-create works!"),t.qZA())},dependencies:[i.ez],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1074.4f29026c1e7821a7.js b/apps/n/porrtal-io-app/public/angular/1074.4f29026c1e7821a7.js deleted file mode 100644 index db0d0b07..00000000 --- a/apps/n/porrtal-io-app/public/angular/1074.4f29026c1e7821a7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1074],{71074:($,G,l)=>{l.r(G),l.d(G,{populateOperationalLayers:()=>M});var o=l(15861),C=l(46160),x=(l(8314),l(10699)),L=l(30164),W=l(55463);function F(e){return p(e,"notes")}function b(e){return p(e,"markup")}function O(e){return p(e,"route")}function p(e,r){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===r}var V=l(7534),B=l(39683);function M(e,r,a){return S.apply(this,arguments)}function S(){return(S=(0,o.Z)(function*(e,r,a){if(!r)return;const y=[];for(const t of r){const n=N(t,a);y.push("GroupLayer"===t.layerType?k(n,t,a):n)}const i=yield(0,x.as)(y);for(const t of i)!t.value||a.filter&&!a.filter(t.value)||e.add(t.value)})).apply(this,arguments)}const U={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},D={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},w={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",DefaultTileLayer:"TileLayer"},R={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},Z={ArcGISFeatureLayer:"FeatureLayer"},E={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"};function N(e,r){return d.apply(this,arguments)}function d(){return(d=(0,o.Z)(function*(e,r){return J(yield K(e,r),e,r)})).apply(this,arguments)}function J(e,r,a){return I.apply(this,arguments)}function I(){return(I=(0,o.Z)(function*(e,r,a){const y=new e;return y.read(r,a.context),"group"===y.type&&v(r)&&(yield H(y,r,a.context)),yield(0,B.y)(y,a.context),y})).apply(this,arguments)}function K(e,r){return T.apply(this,arguments)}function T(){return(T=(0,o.Z)(function*(e,r){const a=r.context,y=P(a);let i=e.layerType||e.type;!i&&r&&r.defaultLayerType&&(i=r.defaultLayerType);const t=y[i];let n=t?L.T[t]:L.T.UnknownLayer;if(A(e)){const m=a?.portal;if(e.itemId){const u=new W.default({id:e.itemId,portal:m});yield u.load();const c=(yield(0,V.selectLayerClassPath)(u)).className||"UnknownLayer";n=L.T[c]}}else"ArcGISFeatureLayer"===i?F(e)||b(e)?n=L.T.MapNotesLayer:O(e)?n=L.T.RouteLayer:v(e)&&(n=L.T.GroupLayer):e.wmtsInfo&&e.wmtsInfo.url&&e.wmtsInfo.layerIdentifier?n=L.T.WMTSLayer:"WFS"===i&&"2.0.0"!==e.wfsInfo.version&&(n=L.T.UnsupportedLayer);return n()})).apply(this,arguments)}function v(e){return"ArcGISFeatureLayer"===e.layerType&&!A(e)&&(e.featureCollection?.layers?.length??0)>1}function A(e){return"Feature Collection"===e.type}function P(e){let r;if("web-scene"===e.origin)switch(e.layerContainerType){case"basemap":r=w;break;case"ground":r=D;break;default:r=U}else switch(e.layerContainerType){case"basemap":r=E;break;case"tables":r=Z;break;default:r=R}return r}function k(e,r,a){return f.apply(this,arguments)}function f(){return(f=(0,o.Z)(function*(e,r,a){const y=new C.Z,i=M(y,Array.isArray(r.layers)?r.layers:[],a),t=yield e;if(yield i,"group"===t.type)return t.layers.addMany(y),t})).apply(this,arguments)}function H(e,r,a){return g.apply(this,arguments)}function g(){return(g=(0,o.Z)(function*(e,r,a){const y=L.T.FeatureLayer,i=yield y(),t=r.featureCollection,n=t.showLegend,m=t.layers.map((u,c)=>{const s=new i;s.read(u,a);const h={...a,ignoreDefaults:!0};return s.read({id:`${e.id}-sublayer-${c}`,visibility:r.visibleLayers?.includes(c)??!0},h),null!=n&&s.read({showLegend:n},h),s});e.layers.addMany(m)})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1218.5cf5f1393e23fddd.js b/apps/n/porrtal-io-app/public/angular/1218.5cf5f1393e23fddd.js deleted file mode 100644 index 2e6dd362..00000000 --- a/apps/n/porrtal-io-app/public/angular/1218.5cf5f1393e23fddd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1218],{11218:(c,d,t)=>{t.r(d),t.d(d,{s:()=>b});var m,p,e,_=t(1719),r={exports:{}};m=r,void 0!==(e=r.exports,Object.defineProperty(e,"__esModule",{value:!0}),p=void(e.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n. \u0161t.",_era_bc:"pr. n. \u0161t.",A:"A",P:"P",AM:"AM",PM:"PM","A.M.":"A.M.","P.M.":"P.M.",January:"Januar",February:"Februar",March:"Marec",April:"April",May:"Maj",June:"Junij",July:"Julij",August:"Avgust",September:"September",October:"Oktober",November:"November",December:"December",Jan:"Jan",Feb:"Feb",Mar:"Mar",Apr:"Apr","May(short)":"Maj",Jun:"Jun",Jul:"Jul",Aug:"Avg",Sep:"Sep",Oct:"Okt",Nov:"Nov",Dec:"Dec",Sunday:"Nedelja",Monday:"Ponedeljek",Tuesday:"Torek",Wednesday:"Sreda",Thursday:"\u010cetrtek",Friday:"Petek",Saturday:"Sobota",Sun:"Ned",Mon:"Pon",Tue:"Tor",Wed:"Sre",Thu:"\u010cet",Fri:"Pet",Sat:"Sob",_dateOrd:function(n){return"."},"Zoom Out":"Oddalji pogled",Play:"Za\u017eeni",Stop:"Ustavi",Legend:"Legenda","Click, tap or press ENTER to toggle":"Klikni, tapni ali pritisni ENTER za preklop",Loading:"Nalagam",Home:"Domov",Chart:"Graf","Serial chart":"Serijski graf","X/Y chart":"X/Y graf","Pie chart":"Tortni graf","Gauge chart":"Stev\u010dni graf","Radar chart":"Radar graf","Sankey diagram":"Sankey diagram","Flow diagram":"Prikaz poteka","Chord diagram":"Kolobarni diagram","TreeMap chart":"Drevesi graf","Sliced chart":"Sliced graf",Series:"Serija","Candlestick Series":"Sve\u010dna serija","OHLC Series":"OHLC serija","Column Series":"Stolpi\u010dasta serija","Line Series":"\u010crtna serija","Pie Slice Series":"Tortna serija","Funnel Series":"Lijak serija","Pyramid Series":"Piramidna serija","X/Y Series":"X/Y serija",Map:"Mapa","Press ENTER to zoom in":"Pritisni ENTER za pribli\u017eevanje","Press ENTER to zoom out":"Pritisni ENTER za oddaljevanje","Use arrow keys to zoom in and out":"Uporabi smerne tiple za pribli\u017eevanje in oddaljevanje","Use plus and minus keys on your keyboard to zoom in and out":"Uporabi plus in minus tipke na tipkovnici za pribli\u017eevanje in oddaljevanje",Export:"Izvozi",Image:"Slika",Data:"Podatki",Print:"Natisni","Click, tap or press ENTER to open":"Klikni, tapni ali pritisni ENTER da odpre\u0161.","Click, tap or press ENTER to print.":"Klikni, tapni ali pritisni ENTER za tiskanje.","Click, tap or press ENTER to export as %1.":"Klikni, tapni ali pritisni ENTER da izvozi\u0161 kot %1.",'To save the image, right-click this link and choose "Save picture as..."':'Da shrani\u0161 sliko, z desnim gumbom mi\u0161ke klikni to povezavo in izberi "Shrani sliko kot..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Da shrani\u0161 sliko, z desnim gumbom mi\u0161ke klikni sli\u010dico na levi in izberi "Shrani sliko kot..."',"(Press ESC to close this message)":"(Pritisni ESC da zapre\u0161 to sporo\u010dilo)","Image Export Complete":"Izvoz slike kon\u010dan","Export operation took longer than expected. Something might have gone wrong.":"Operacija izvoza je trajala dlje kot pri\u010dakovano. Nekaj je \u0161lo narobe.","Saved from":"Shranjeno od",PNG:"PNG",JPG:"JPG",GIF:"GIF",SVG:"SVG",PDF:"PDF",JSON:"JSON",CSV:"CSV",XLSX:"XLSX","Use TAB to select grip buttons or left and right arrows to change selection":"Uporabi TAB za izbiro drsnih gumbov ali levo in desno smerno tipko da spremeni\u0161 izbiro","Use left and right arrows to move selection":"Uporabi levo in desno smerno tipko za premik izbranega","Use left and right arrows to move left selection":"Uporabi levo in desno smerno tipko za premik leve izbire","Use left and right arrows to move right selection":"Uporabi levo in desno smerno tipko za premik desne izbire","Use TAB select grip buttons or up and down arrows to change selection":"Uporabi TAB za izbiro drsnih gumbov ali gor in dol smerno tipko da spremeni\u0161 izbiro","Use up and down arrows to move selection":"Uporabi gor in dol smerne tipke za premik izbire","Use up and down arrows to move lower selection":"Uporabi gor in dol smerne tipke za premik spodnje izbire","Use up and down arrows to move upper selection":"Uporabi gor in dol smerne tipke za premik zgornje izbire","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"Nobenega parserja ni na voljo za datoteko: %1","Error parsing file: %1":"Napaka pri parsanju datoteke: %1","Unable to load file: %1":"Ni mogo\u010de nalo\u017eiti datoteke: %1","Invalid date":"Neveljaven datum"}))&&(m.exports=p);const b=function h(o,e){for(var n=0;ni[a]})}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,_.g)(r.exports)},[r.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/125.72695be1e25c54a5.js b/apps/n/porrtal-io-app/public/angular/125.72695be1e25c54a5.js deleted file mode 100644 index 6dab9775..00000000 --- a/apps/n/porrtal-io-app/public/angular/125.72695be1e25c54a5.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[125],{34013:(Te,ve,h)=>{h.d(ve,{I:()=>R,b:()=>L});var E=h(62208),ee=h(99770),Q=h(13934),K=h(78925),W=h(24255),$=h(10109),te=h(67022),he=h(33726),re=h(2166),z=h(95285),x=h(65787),N=h(17625),j=h(22355),y=h(35387),S=h(44835),I=h(16396);function L(C){const B=new j.kG,{vertex:V,fragment:D}=B;return(0,re.Sv)(V,C),B.include(W.w,C),B.attributes.add(I.T.POSITION,"vec3"),B.attributes.add(I.T.UV0,"vec2"),B.varyings.add("vpos","vec3"),C.hasMultipassTerrain&&B.varyings.add("depth","float"),V.uniforms.add(new z.A("textureCoordinateScaleFactor",b=>(0,E.pC)(b.texture)&&(0,E.pC)(b.texture.descriptor.textureCoordinateScaleFactor)?b.texture.descriptor.textureCoordinateScaleFactor:ee.O)),V.code.add(N.H` - void main(void) { - vpos = position; - ${C.hasMultipassTerrain?"depth = (view * vec4(vpos, 1.0)).z;":""} - vTexCoord = uv0 * textureCoordinateScaleFactor; - gl_Position = transformPosition(proj, view, vpos); - } - `),B.include(K.f5,C),B.include($.l,C),D.uniforms.add([new y.A("tex",b=>b.texture),new x.p("opacity",b=>b.opacity)]),B.varyings.add("vTexCoord","vec2"),C.output===Q.H.Alpha?D.code.add(N.H` - void main() { - discardBySlice(vpos); - ${C.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - - float alpha = texture2D(tex, vTexCoord).a * opacity; - if (alpha < ${N.H.float(te.F)}) { - discard; - } - - gl_FragColor = vec4(alpha); - } - `):(D.include(he.Y),D.code.add(N.H` - void main() { - discardBySlice(vpos); - ${C.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - gl_FragColor = texture2D(tex, vTexCoord) * opacity; - - if (gl_FragColor.a < ${N.H.float(te.F)}) { - discard; - } - - gl_FragColor = highlightSlice(gl_FragColor, vpos); - ${C.transparencyPassType===S.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - } - `)),B}const R=Object.freeze(Object.defineProperty({__proto__:null,build:L},Symbol.toStringTag,{value:"Module"}))},93310:(Te,ve,h)=>{h.d(ve,{S:()=>C,b:()=>I});var E=h(4794),ee=h(81801),Q=h(13934),K=h(78925),W=h(24255),$=h(10109),te=h(67022),he=h(33726),re=h(2166),z=h(97139),x=h(69960),N=h(17625),j=h(22355),y=h(44835),S=h(16396);function I(B){const V=new j.kG,D=B.hasMultipassTerrain&&(B.output===Q.H.Color||B.output===Q.H.Alpha);V.include(W.w,B),V.include(ee.A,B),V.include(K.f5,B);const{vertex:b,fragment:G}=V;return G.include(he.Y),(0,re.Sv)(b,B),G.uniforms.add(new x.N("uColor",k=>k.color)),V.attributes.add(S.T.POSITION,"vec3"),V.varyings.add("vWorldPosition","vec3"),D&&V.varyings.add("depth","float"),B.screenSizeEnabled&&V.attributes.add(S.T.OFFSET,"vec3"),B.shadingEnabled&&((0,re._8)(b),V.attributes.add(S.T.NORMAL,"vec3"),V.varyings.add("vViewNormal","vec3")),b.code.add(N.H` - void main(void) { - vWorldPosition = ${B.screenSizeEnabled?"screenSizeScaling(offset, position)":"position"}; - `),B.shadingEnabled&&b.code.add(N.H`vec3 worldNormal = normal; -vViewNormal = (viewNormal * vec4(worldNormal, 1)).xyz;`),b.code.add(N.H` - ${D?"depth = (view * vec4(vWorldPosition, 1.0)).z;":""} - gl_Position = transformPosition(proj, view, vWorldPosition); - } - `),D&&V.include($.l,B),G.code.add(N.H` - void main() { - discardBySlice(vWorldPosition); - ${D?"terrainDepthTest(gl_FragCoord, depth);":""} - `),B.shadingEnabled?(G.uniforms.add(new z.J("shadingDirection",k=>k.shadingDirection)),G.uniforms.add(new x.N("shadedColor",k=>function L(B,V){const D=1-B[3],b=B[3]+V[3]*D;return 0===b?(R[3]=b,R):(R[0]=(B[0]*B[3]+V[0]*V[3]*D)/b,R[1]=(B[1]*B[3]+V[1]*V[3]*D)/b,R[2]=(B[2]*B[3]+V[2]*V[3]*D)/b,R[3]=V[3],R)}(k.shadingTint,k.color))),G.code.add(N.H`vec3 viewNormalNorm = normalize(vViewNormal); -float shadingFactor = 1.0 - clamp(-dot(viewNormalNorm, shadingDirection), 0.0, 1.0); -vec4 finalColor = mix(uColor, shadedColor, shadingFactor);`)):G.code.add(N.H`vec4 finalColor = uColor;`),G.code.add(N.H` - if (finalColor.a < ${N.H.float(te.b)}) { - discard; - } - ${B.output===Q.H.Alpha?N.H`gl_FragColor = vec4(finalColor.a);`:""} - - ${B.output===Q.H.Color?N.H`gl_FragColor = highlightSlice(finalColor, vWorldPosition); ${B.transparencyPassType===y.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""}`:""} - } - `),V}const R=(0,E.c)(),C=Object.freeze(Object.defineProperty({__proto__:null,build:I},Symbol.toStringTag,{value:"Module"}))},60507:(Te,ve,h)=>{h.d(ve,{BK:()=>V,Jn:()=>te,RL:()=>re,VW:()=>$,W_:()=>R,jG:()=>C,tq:()=>I,vQ:()=>j,zx:()=>y});var E=h(62208),ee=h(29505);function Q(D){return D?C:B}function $(D,b){return function K(D,b){return(0,E.Wi)(b)||!b.mode?Q(D).mode:b.mode}(!!(0,E.pC)(D)&&D.hasZ,b)}function te(D,b){return function W(D,b){return(0,E.pC)(b)?b:Q(D)}(!!(0,E.pC)(D)&&D.hasZ,b)}function re(D){const b=function x(D){return D.layer&&"elevationInfo"in D.layer?D.layer.elevationInfo:null}(D),G=$(D.geometry,b);return{mode:G,offset:(0,E.pC)(b)&&"on-the-ground"!==G?(0,E.Pt)(b.offset,0)*(0,ee.Z7)((0,E.Pt)(b.unit,"meters")):0}}function j(D,b,G,k=null){return S(D,b.x,b.y,b.hasZ?b.z:0,b.spatialReference,G,k)}function y(D,b,G,k,me=null){return S(D,b[0],b[1],b.length>2?b[2]:0,G,k,me)}function S(D,b,G,k,me,Pe,ue=null){if((0,E.Wi)(Pe))return;const oe=(0,E.pC)(ue)?ue.mode:"absolute-height";if("on-the-ground"===oe)return 0;const{absoluteZ:Y}=I(b,G,k,me,D,Pe);return function L(D,b,G,k,me,Pe,ue,oe){const Y=(0,E.pC)(ue)&&(0,E.pC)(ue.offset)?ue.offset:0;switch(oe){case"absolute-height":return D-Y;case"relative-to-ground":return D-((0,E.Pt)(Pe.elevationProvider.getElevation(b,G,k,me,"ground"),0)+Y);case"relative-to-scene":return D-((0,E.Pt)(Pe.elevationProvider.getElevation(b,G,k,me,"scene"),0)+Y)}}(Y,b,G,k,me,D,ue,oe)}function I(D,b,G,k,me,Pe){const ue=(0,E.pC)(Pe.offset)?Pe.offset:0;switch(Pe.mode){case"absolute-height":return{absoluteZ:G+ue,elevation:0};case"on-the-ground":{const oe=(0,E.Pt)(me.elevationProvider.getElevation(D,b,0,k,"ground"),0);return{absoluteZ:oe,elevation:oe}}case"relative-to-ground":{const oe=(0,E.Pt)(me.elevationProvider.getElevation(D,b,G,k,"ground"),0);return{absoluteZ:G+oe+ue,elevation:oe}}case"relative-to-scene":{const oe=(0,E.Pt)(me.elevationProvider.getElevation(D,b,G,k,"scene"),0);return{absoluteZ:G+oe+ue,elevation:oe}}}}function R(D,b){if((0,E.Wi)(b))return!1;const{mode:G}=b;return(0,E.pC)(G)&&("scene"===D&&"relative-to-scene"===G||"ground"===D&&"absolute-height"!==G)}const C={mode:"absolute-height",offset:0},B={mode:"on-the-ground",offset:null};function V(D,b){return D===b||(0,E.pC)(D)&&(0,E.pC)(b)&&D.mode===b.mode&&D.offset===b.offset}},1437:(Te,ve,h)=>{h.d(ve,{p:()=>re});var E=h(17626),ee=h(54024),Q=h(62208),K=h(60330),W=h(77712),he=(h(85931),h(90912),h(76898));const re=z=>{let x=class extends((0,K.v)(z)){constructor(){super(...arguments),this.parent=null,this._userInteractive=!1,this._interactiveViewModelCount=0}get interactive(){return this._interactiveViewModelCount>0||this._userInteractive}set interactive(N){this._userInteractive=N}get updating(){return!1}get visible(){return!(0,Q.pC)(this.parent)||this.parent.visible&&!this.parent.suspended}set visible(N){this._overrideIfSome("visible",N)}forceInteractiveForViewModel(){return this._interactiveViewModelCount++,(0,ee.kB)(()=>this._interactiveViewModelCount--)}};return(0,E._)([(0,W.Cb)({readOnly:!0})],x.prototype,"type",void 0),(0,E._)([(0,W.Cb)({constructOnly:!0})],x.prototype,"analysis",void 0),(0,E._)([(0,W.Cb)({constructOnly:!0})],x.prototype,"parent",void 0),(0,E._)([(0,W.Cb)({constructOnly:!0})],x.prototype,"view",void 0),(0,E._)([(0,W.Cb)({type:Boolean})],x.prototype,"interactive",null),(0,E._)([(0,W.Cb)()],x.prototype,"_userInteractive",void 0),(0,E._)([(0,W.Cb)({readOnly:!0})],x.prototype,"updating",null),(0,E._)([(0,W.Cb)()],x.prototype,"visible",null),(0,E._)([(0,W.Cb)()],x.prototype,"_interactiveViewModelCount",void 0),x=(0,E._)([(0,he.j)("esri.views.3d.analysis.AnalysisView3D")],x),x}},54865:(Te,ve,h)=>{h.d(ve,{G:()=>K,e:()=>W});var E=h(62208),ee=h(55915),Q=h(53929);function K($,te,he,re=!1){const z=(0,ee.fM)($,te);return(0,E.Wi)(z)?null:(z.hasZ&&!re||!(0,E.pC)(he)||(z.z=(0,E.Pt)((0,Q.KO)(he,z),0)),z)}function W($,te,he){he.warnOnce(`Failed to project analysis geometry (id: '${$.id}'), projection from spatial reference (wkid: '${te.wkid}') to view spatial reference is not supported. Projection may be possible after calling projection.load().`)}},45403:(Te,ve,h)=>{h.d(ve,{Z:()=>ye}),h(29132);var ee=h(94573),Q=h(61885),K=h(21286),W=h(62208),$=h(23841),te=h(52323),he=h(30217),re=h(550),z=h(28347),x=h(43703),N=h(67831),j=h(84161),y=h(28093),S=h(55915),I=h(12080),L=h(65401),R=h(13777),C=h(90014),B=h(70562),V=h(26242),D=h(84786),b=h(53929),G=h(26046),k=h(42743),me=h(59856),Pe=h(96867),ue=h(34103),oe=h(33786),Y=h(72642);class ye{constructor(_){this._camera=new me.V,this._elevation={offset:0,override:null},this.collisionType={type:"point"},this.collisionPriority=0,this._renderObjects=[],this.autoScaleRenderObjects=!0,this._available=!0,this._noDisplayCount=0,this._radius=10,this._worldSized=!1,this.focusMultiplier=2,this.touchMultiplier=2.5,this.worldOriented=!1,this._modelTransform=(0,x.c)(),this._worldFrame=null,this._renderLocation=(0,y.c)(),this._renderLocationDirty=!0,this._location=new Y.Z({x:0,y:0,z:0}),this._elevationAlignedLocation=new Y.Z,this._elevationAlignedLocationDirty=!0,this.interactive=!0,this.selectable=!1,this.grabbable=!0,this.cursor=null,this.grabCursor=null,this._grabbing=!1,this.dragging=!1,this._hovering=!1,this._selected=!1,this._state=oe.jg.None,this._focused=!1,this.events=new Q.Z.EventEmitter,this._screenLocation={screenPointArray:(0,$.s1)(),renderScreenPointArray:(0,$.J$)(),pixelSize:0},this._screenLocationDirty=!0,this._applyObjectTransform=null,this._engineResourcesAddedToStage=!1,this._engineResources=null,this._attached=!1,this._engineLayer=null,this._materialIdReferences=null,this._location.spatialReference=_.view.spatialReference;for(const P in _)this[P]=_[P];this.view.state&&this.view.state.camera&&this._camera.copyFrom(this.view.state.camera)}destroy(){this._removeResourcesFromStage(),this._engineResources=null,this.view=null,this._camera=null}get elevationInfo(){return this._elevationInfo}set elevationInfo(_){this._elevationInfo=_,this._elevationAlignedLocationDirty=!0,this._renderLocationDirty=!0,this._updateEngineObject()}get renderObjects(){return this._renderObjects}set renderObjects(_){this._removeResourcesFromStage(),this._engineResources=null,this._renderObjects=_.slice(),this._updateEngineObject()}set available(_){_!==this._available&&(this._available=_,this._updateEngineObject())}get available(){return this._available}disableDisplay(){return this._noDisplayCount++,1===this._noDisplayCount&&this._updateEngineObject(),{remove:(0,te.IH)(()=>{this._noDisplayCount--,0===this._noDisplayCount&&this._updateEngineObject()})}}set radius(_){_!==this._radius&&(this._radius=_,this._updateEngineObject())}get radius(){return this._radius}set worldSized(_){_!==this._worldSized&&(this._worldSized=_,this._updateEngineObject())}get worldSized(){return this._worldSized}get modelTransform(){return this._modelTransform}set modelTransform(_){Z(_)&&(this._screenLocationDirty=!0),(0,z.c)(this._modelTransform,_),this._updateEngineObject()}get renderLocation(){return this._renderLocationDirty&&(this._renderLocationDirty=!1,this.view.renderCoordsHelper.toRenderCoords(this.elevationAlignedLocation,this._renderLocation),this.worldOriented?(this._worldFrame||(this._worldFrame=(0,x.c)()),function X(F,_,P){switch(F.viewingMode){case"local":return(0,z.i)(P),!0;case"global":{const U=(0,I.Iu)(F.renderCoordsHelper.spatialReference);(0,S.PR)(_,0,Ae,0,U.radius),(0,S.yH)((0,K.Vl)(Ae[0]),(0,K.Vl)(Ae[1]),P)}}}(this.view,this._renderLocation,this._worldFrame)):this._worldFrame&&(this._worldFrame=null)),this._renderLocation}set renderLocation(_){this.view.renderCoordsHelper.fromRenderCoords(_,this._location),this.elevationAlignedLocation=this._location}get location(){return this._location}set location(_){(0,D.WG)(_,this._location),this._renderLocationDirty=!0,this._screenLocationDirty=!0,this._elevationAlignedLocationDirty=!0,this._updateEngineObject(),this.events.emit("location-update",{location:this._location})}get elevationAlignedLocation(){return this._elevationAlignedLocationDirty?(this._evaluateElevationAlignment(),this._updateElevationAlignedLocation(),this._elevationAlignedLocation):this._elevationAlignedLocation}set elevationAlignedLocation(_){(0,D.WG)(_,this._location),this._evaluateElevationAlignment(),this._location.z-=this._elevation.offset,this._updateElevationAlignedLocation(),this._updateEngineObject(),this.events.emit("location-update",{location:this._location})}_updateElevationAlignedLocation(){this._elevationAlignedLocation.x=this.location.x,this._elevationAlignedLocation.y=this.location.y;const _=(0,W.pC)(this._elevation.override)?this._elevation.override:this.location.z||0;this._elevationAlignedLocation.z=_+this._elevation.offset,this._elevationAlignedLocation.spatialReference=(0,D.D)(this.location.spatialReference),this._renderLocationDirty=!0,this._screenLocationDirty=!0,this._elevationAlignedLocationDirty=!1}grabbableForEvent(){return!0}get grabbing(){return this._grabbing}set grabbing(_){_!==this._grabbing&&(this._grabbing=_,this._setFocused(this._hovering||this._grabbing),this._updateEngineObject())}get hovering(){return this._hovering}set hovering(_){_!==this._hovering&&(this._hovering=_,this._setFocused(this._hovering||this._grabbing),this._updateEngineObject())}get selected(){return this._selected}set selected(_){_!==this._selected&&(this._selected=_,this._updateEngineObject(),this.events.emit("select-changed",{action:_?"select":"deselect"}))}get state(){return this._state}set state(_){_!==this._state&&(this._state=_,this._updateEngineObject())}updateStateEnabled(_,P){P?this.state|=_:this.state&=~_}_setFocused(_){_!==this._focused&&(this._focused=_,this.events.emit("focus-changed",{action:!0===_?"focus":"unfocus"}))}get focused(){return this._focused}get screenLocation(){return this._ensureScreenLocation(),this._screenLocation}_ensureScreenLocation(){if(!this._screenLocationDirty)return;let _;if(this._screenLocation.pixelSize=this._camera.computeScreenPixelSizeAt(this.renderLocation),this._screenLocationDirty=!1,Z(this._modelTransform)){const P=this._calculateModelTransformOffset(A);_=(0,j.a)(P,P,this.renderLocation)}else _=this.renderLocation;this._camera.projectToRenderScreen(_,this._screenLocation.renderScreenPointArray),this._camera.renderToScreen(this._screenLocation.renderScreenPointArray,this._screenLocation.screenPointArray)}get applyObjectTransform(){return this._applyObjectTransform}set applyObjectTransform(_){this._applyObjectTransform=_,this._screenLocationDirty=!0,this._updateEngineObject()}get attached(){return this._attached}intersectionDistance(_,P){if(!this.available)return null;const U=(0,$.md)(_,se),H=this._getCollisionRadius(P),ie=-1*this.collisionPriority;switch(this.collisionType.type){case"point":if((0,N.k)(this.screenLocation.screenPointArray,U)0;for(const{stateMask:q,objects:ae}of U){if(ie){for(const ge of ae)ge.setVisible(!1);continue}const Ee=!((q&oe.jg.All)!==oe.jg.None)||(this.state&q)==(q&oe.jg.All);if((q&oe.Q9.All)!==oe.Q9.None&&(H&q)!=(q&oe.Q9.All)||!Ee)for(const ge of ae)ge.setVisible(!1);else for(const ge of ae)ge.setVisible(!0),ge.transformation=P}}_ensureEngineResources(){if((0,W.Wi)(this._engineResources)){const _=(0,W.Wg)(this._engineLayer),P=[],U=new Set;this.renderObjects.forEach(({material:ae})=>{U.has(ae)||(P.push(ae),U.add(ae))});const H=(ae,ce)=>{const{geometry:_e,material:pe,transform:Ee}=ce;Array.isArray(_e)?_e.forEach(ge=>ae.addGeometry(ge,pe,Ee)):ae.addGeometry(_e,pe,Ee)},ie=new Map;this._renderObjects.forEach(ae=>{const ce=new Pe.T({castShadow:!1});H(ce,ae);const _e=ae.stateMask||0,pe=ie.get(_e)||[];pe.push(ce),ie.set(_e,pe)});const q=[];ie.forEach((ae,ce)=>q.push({stateMask:ce,objects:ae})),this._engineResources={objectsByState:q,layer:_,materials:P}}return this._addResourcesToStage(),this._engineResources}_addResourcesToStage(){if(this._engineResourcesAddedToStage||(0,W.Wi)(this._engineResources))return;const{objectsByState:_,layer:P,materials:U}=this._engineResources;U.forEach(H=>{const ie=(0,W.Wg)(this._materialIdReferences),q=ie.get(H.id)||0;0===q&&this.view._stage.add(H),ie.set(H.id,q+1)}),_.forEach(({objects:H})=>{P.addMany(H),this.view._stage.addMany(H)}),this._engineResourcesAddedToStage=!0}_removeResourcesFromStage(_=!1){if(!this._engineResourcesAddedToStage||(0,W.Wi)(this._engineResources)||!this.view._stage)return;const{objectsByState:P,layer:U,materials:H}=this._engineResources;P.forEach(({objects:ie})=>{U.removeMany(ie),this.view._stage.removeMany(ie)}),H.forEach(ie=>{const q=(0,W.Wg)(this._materialIdReferences),ae=q.get(ie.id);1===ae?(this.view._stage.remove(ie),q.delete(ie.id)):q.set(ie.id,ae-1)}),_&&this.view._stage.remove(U),this._engineResourcesAddedToStage=!1}_getCollisionRadius(_){return this._getFocusedSize(this.radius,!0)*("touch"===_?this.touchMultiplier:1)}_getFocusedSize(_,P){return _*(P?this.focusMultiplier:1)}_getWorldToScreenObjectScale(){return this._worldSized?1:this.screenLocation.pixelSize}_calculateModelTransformPosition(_){const P=this._getWorldToScreenObjectScale(),U=this._calculateObjectTransform(P,le);return(0,j.s)(_,U[12],U[13],U[14])}_calculateModelTransformOffset(_){const P=this._calculateModelTransformPosition(_);return(0,j.b)(_,P,this.renderLocation)}_calculateObjectTransform(_,P){return(0,z.s)(P,_,0,0,0,0,_,0,0,0,0,_,0,0,0,0,1),this._worldFrame&&(0,z.m)(P,P,this._worldFrame),(0,z.m)(P,P,this._modelTransform),P[12]+=this.renderLocation[0],P[13]+=this.renderLocation[1],P[14]+=this.renderLocation[2],P[15]=1,(0,W.pC)(this._applyObjectTransform)&&this._applyObjectTransform(P),P}get test(){let _=!1;if((0,W.pC)(this._engineResources))for(const P in this._engineResources.objectsByState){const U=this._engineResources.objectsByState[P];for(const H of U.objects)if(H.isVisible){_=!0;break}if(_)break}return{areAnyResourcesVisible:_}}}function Z(F){return 0!==F[12]||0!==F[13]||0!==F[14]}const se=(0,$.s1)(),ne=(0,R.Ue)(),fe=(0,B.Ue)(),J=(0,re.c)(),le=(0,x.c)(),Me=(0,x.c)(),Oe=(0,C.Ue)(),Ae=(0,y.c)(),v=(0,y.c)(),M=(0,y.c)(),g=(0,y.c)(),d=(0,y.c)(),A=(0,y.c)(),T=new Y.Z({x:0,y:0,z:0,spatialReference:null})},19142:(Te,ve,h)=>{h.d(ve,{Aq:()=>ue,Bz:()=>G,EA:()=>B,Gd:()=>Pe,Ju:()=>b,X9:()=>me,aD:()=>k});var E=h(28347),ee=h(84161),Q=h(28093),K=h(4794),W=h(26242),te=(h(84786),h(45403)),re=(h(67225),h(42743)),z=h(52107),x=h(57521),N=h(40723),j=h(16396),y=h(92972),S=h(79967),I=h(49580),L=h(92222),R=h(81040),C=h(33786);function B(Z,X=N.yD.OccludeAndTransparent,se=!0){const ne=(0,K.f)(Z[0],Z[1],Z[2],Z.length>3?Z[3]:1),fe=Z[3]<1;return se?new R.Q({color:ne,transparent:fe,writeDepth:!0,cullFace:re.Vr.Back,renderOccluded:X}):new y.E({color:ne,transparent:fe,writeDepth:!0,cullFace:re.Vr.Back,renderOccluded:X})}const D=Object.freeze({calloutLength:40,calloutWidth:1,discRadius:27,focusMultiplier:1.1,calloutColor:(0,Q.f)(1,.5,0)});function b(Z,X){const se=new te.Z({view:Z,autoScaleRenderObjects:!1,collisionPriority:1,metadata:X.metadata});return G(se,X),se}function G(Z,X){const se=X.material??new S.j({transparent:!0,writeDepth:!1,textureId:X.texture?.id,renderOccluded:N.yD.Opaque}),ne=X.focusMultiplier??D.focusMultiplier,fe=X.calloutLength??D.calloutLength,J=D.discRadius*(X.discScale??1),le=J*ne,Me=A=>{const T=[0,1,2,2,3,0];return new z.Z([[j.T.POSITION,{size:3,data:[fe-A,-A,0,fe+A,-A,0,fe+A,A,0,fe-A,A,0],exclusive:!0}],[j.T.UV0,{size:2,data:[0,0,1,0,1,1,0,1]}]],[[j.T.POSITION,T],[j.T.UV0,T]])},Oe=(0,x.rh)([[0,0,0],[fe-J,0,0]]),Ae=(0,x.rh)([[0,0,0],[fe-le,0,0]]),v=D.calloutColor,M=X.calloutWidth??D.calloutWidth,g=new(M>1?L.U:I.Y)({width:M,color:(0,K.f)(v[0],v[1],v[2],X.calloutOpacity??1),renderOccluded:N.yD.OccludeAndTransparent}),d=X.customStateMask??C.jg.None;Z.collisionType={type:"disc",direction:[0,0,1],offset:[fe,0,0]},Z.focusMultiplier=ne,Z.metadata=X.metadata,Z.radius=J,Z.renderObjects=[{geometry:Me(J),material:se,stateMask:C.Q9.Unfocused|d},{geometry:Oe,material:g,stateMask:C.Q9.Unfocused|d},{geometry:Me(le),material:se,stateMask:C.Q9.Focused|d},{geometry:Ae,material:g,stateMask:C.Q9.Focused|d}]}function k(Z,X,se,ne=C.jg.None){return new te.Z({view:Z,renderObjects:[{geometry:(0,x.PI)(1,32,32),material:B((0,K.f)(X[0],X[1],X[2],se??1)),stateMask:ne}]})}const me=Object.freeze({autoScaleRenderObjects:!1,worldSized:!0});function Pe(Z,X,se,ne){const fe=(0,ee.b)(W.WM.get(),Z,se),J=ue(fe,(0,ee.f)(W.WM.get(),ne,fe),se,W.MP.get());(0,E.a)(J,J);const le=(0,ee.m)(W.WM.get(),X,J);return Math.atan2(le[1],le[0])}function ue(Z,X,se,ne){const fe=(0,ee.n)(W.WM.get(),Z),J=(0,ee.n)(W.WM.get(),X),le=(0,ee.f)(W.WM.get(),fe,J);return ne[0]=fe[0],ne[1]=fe[1],ne[2]=fe[2],ne[3]=0,ne[4]=J[0],ne[5]=J[1],ne[6]=J[2],ne[7]=0,ne[8]=le[0],ne[9]=le[1],ne[10]=le[2],ne[11]=0,ne[12]=se[0],ne[13]=se[1],ne[14]=se[2],ne[15]=1,ne}},87469:(Te,ve,h)=>{h.d(ve,{r:()=>x});var E=h(62208),ee=h(28347),Q=h(43703),K=h(84161),W=h(28093),$=h(67709),te=h(53928),he=h(79020),re=h(40723),z=h(92222);class x extends te._{constructor(y,S){super(y),this._hasExternalMaterial=!1,this._renderOccluded=re.yD.OccludeAndTransparent,this._width=1,this._color=(0,$.f)(1,0,1,1),this._innerWidth=1,this._innerColor=null,this._stipplePattern=null,this._stippleOffColor=null,this._stipplePreferContinuous=!0,this._writeDepthEnabled=!0,this._falloff=0,this._polygonOffset=!1,this._material=S,this._hasExternalMaterial=(0,E.pC)(S),this.applyProps(y)}setGeometryFromRenderSpacePoint(y,S=1e3){const I=[];I.push([[y[0]-S,y[1]+0,y[2]+0],[y[0]+S,y[1]+0,y[2]+0]]),I.push([[y[0]-0,y[1]-S,y[2]+0],[y[0]+0,y[1]+S,y[2]+0]]),I.push([[y[0]-0,y[1]+0,y[2]-S],[y[0]+0,y[1]+0,y[2]+S]]),this.geometry=I}setGeometryFromExtent(y){const S=this.view.spatialReference,I=(0,W.c)(),L=(0,W.c)(),R=100,C=[];(0,K.s)(I,y[0],y[1],R),this.view.renderCoordsHelper.toRenderCoords(I,S,L),C.push([L[0],L[1],L[2]]),(0,K.s)(I,y[2],y[1],R),this.view.renderCoordsHelper.toRenderCoords(I,S,L),C.push([L[0],L[1],L[2]]),(0,K.s)(I,y[2],y[3],R),this.view.renderCoordsHelper.toRenderCoords(I,S,L),C.push([L[0],L[1],L[2]]),(0,K.s)(I,y[0],y[3],R),this.view.renderCoordsHelper.toRenderCoords(I,S,L),C.push([L[0],L[1],L[2]]),(0,K.s)(I,y[0],y[1],R),this.view.renderCoordsHelper.toRenderCoords(I,S,L),C.push([L[0],L[1],L[2]]),(0,K.s)(I,y[0],y[1],R),this.view.renderCoordsHelper.toRenderCoords(I,S,L),C.push([L[0],L[1],L[2]]),this.geometry=[C]}setGeometryFromFrustum(y){const S=[];y.lines.forEach(I=>{S.push([I.origin[0],I.origin[1],I.origin[2]]),S.push([I.endpoint[0],I.endpoint[1],I.endpoint[2]])}),this.geometry=[S]}setGeometryFromBoundedPlane(y){const S=[],I=y.origin,L=y.basis1,R=y.basis2,C=.5,B=(0,W.c)(),V=(0,W.c)(),D=(0,W.c)(),b=(0,W.c)();B[0]=I[0]-L[0]*C-R[0]*C,B[1]=I[1]-L[1]*C-R[1]*C,B[2]=I[2]-L[2]*C-R[2]*C,V[0]=I[0]-L[0]*C+R[0]*C,V[1]=I[1]-L[1]*C+R[1]*C,V[2]=I[2]-L[2]*C+R[2]*C,D[0]=I[0]+L[0]*C+R[0]*C,D[1]=I[1]+L[1]*C+R[1]*C,D[2]=I[2]+L[2]*C+R[2]*C,b[0]=I[0]+L[0]*C-R[0]*C,b[1]=I[1]+L[1]*C-R[1]*C,b[2]=I[2]+L[2]*C-R[2]*C,S.push([B[0],B[1],B[2]]),S.push([V[0],V[1],V[2]]),S.push([D[0],D[1],D[2]]),S.push([b[0],b[1],b[2]]),S.push([B[0],B[1],B[2]]),this.geometry=[S]}setGeometryFromSegment(y){const S=y.endRenderSpace;this.transform=(0,ee.f)(N,S);const{points:I}=y.createRenderGeometry(S,this.view.renderCoordsHelper);this.geometry=[I]}setGeometryFromSegments(y,S=W.Z){this.transform=(0,ee.f)(N,S),this.geometry=y.map(I=>I.createRenderGeometry(S,this.view.renderCoordsHelper).points)}getTransformedGeometry(){return(0,E.Wi)(this._geometry)?null:this._geometry.map(y=>y.map(S=>(0,K.m)((0,W.c)(),S,this.transform)))}get renderOccluded(){return(0,E.pC)(this._material)?this._material.parameters.renderOccluded:this._renderOccluded}set renderOccluded(y){this._renderOccluded=y,(0,E.pC)(this._material)&&this._material.setParameters({renderOccluded:y})}get geometry(){return this._geometry}set geometry(y){this._geometry=y,this.recreateGeometry()}get width(){return(0,E.pC)(this._material)?this._material.parameters.width:this._width}set width(y){this._width=y,(0,E.pC)(this._material)&&this._material.setParameters({width:y})}get color(){return(0,E.pC)(this._material)?this._material.parameters.color:this._color}set color(y){this._color=(0,$.a)(y),(0,E.pC)(this._material)&&this._material.setParameters({color:this._color})}get innerWidth(){return(0,E.pC)(this._material)?this._material.parameters.innerWidth:this._innerWidth}set innerWidth(y){this._innerWidth=y,(0,E.pC)(this._material)&&this._material.setParameters({innerWidth:y})}get innerColor(){return(0,E.pC)(this._material)?this._material.parameters.innerColor:this._innerColor}set innerColor(y){this._innerColor=(0,E.pC)(y)?(0,$.a)(y):y,(0,E.pC)(this._material)&&this._material.setParameters({innerColor:this._innerColor})}get stipplePattern(){return(0,E.pC)(this._material)?this._material.parameters.stipplePattern:this._stipplePattern}set stipplePattern(y){this._stipplePattern=y,(0,E.pC)(this._material)&&this._material.setParameters({stipplePattern:y})}get stippleOffColor(){return(0,E.pC)(this._material)?this._material.parameters.stippleOffColor:this._stippleOffColor}set stippleOffColor(y){this._stippleOffColor=(0,E.pC)(y)?(0,$.a)(y):null,(0,E.pC)(this._material)&&this._material.setParameters({stippleOffColor:this._stippleOffColor})}get stipplePreferContinuous(){return(0,E.pC)(this._material)?this._material.parameters.stipplePreferContinuous:this._stipplePreferContinuous}set stipplePreferContinuous(y){this._stipplePreferContinuous=y,(0,E.pC)(this._material)&&this._material.setParameters({stipplePreferContinuous:y})}get writeDepthEnabled(){return(0,E.pC)(this._material)?this._material.parameters.writeDepth:this._writeDepthEnabled}set writeDepthEnabled(y){this._writeDepthEnabled=y,(0,E.pC)(this._material)&&this._material.setParameters({writeDepth:y})}get falloff(){return(0,E.pC)(this._material)?this._material.parameters.falloff:this._falloff}set falloff(y){this._falloff=y,(0,E.pC)(this._material)&&this._material.setParameters({falloff:y})}get polygonOffset(){return(0,E.pC)(this._material)?this._material.parameters.hasPolygonOffset:this._polygonOffset}set polygonOffset(y){this._polygonOffset=y,(0,E.pC)(this._material)&&this._material.setParameters({hasPolygonOffset:y})}createExternalResources(){this._hasExternalMaterial||(this._material=new z.U({width:this._width,color:this._color,stippleOffColor:this._stippleOffColor,stipplePattern:this._stipplePattern,stipplePreferContinuous:this._stipplePreferContinuous,isClosed:!1,falloff:this._falloff,innerColor:this._innerColor,innerWidth:this._innerWidth,hasPolygonOffset:this._polygonOffset,renderOccluded:this._renderOccluded,writeDepth:this._writeDepthEnabled}))}destroyExternalResources(){this._hasExternalMaterial||(this._material=null)}createGeometries(y){for(const S of(0,he.c0)(this.geometry)){const I=(0,he.YU)(S);y.addGeometry(I,(0,E.Wg)(this._material))}}forEachExternalMaterial(y){this._hasExternalMaterial||y((0,E.Wg)(this._material))}}const N=(0,Q.c)()},53928:(Te,ve,h)=>{h.d(ve,{_:()=>he});var E=h(62208),ee=h(28347),Q=h(43703),K=h(68604),W=h(42743),$=h(96867),te=h(34103);class he extends K.l{constructor(z){super(z.view),this._resources=null,this._transform=(0,Q.c)()}get object(){return(0,E.pC)(this._resources)?this._resources.object:null}get transform(){return this._transform}set transform(z){(0,ee.c)(this._transform,z),(0,E.pC)(this._resources)&&(this._resources.object.transformation=this._transform)}recreate(){this.attached&&this.createResources()}recreateGeometry(){if((0,E.Wi)(this._resources))return;const z=this._resources.object,x=this.view._stage;x.removeMany(z.geometries),z.removeAllGeometries(),this.createGeometries(z),this.visible||z.setVisible(this.visible),x.addMany(z.geometries)}createResources(){this.destroyResources();const z=this.view._stage;if(!z)return;const x=new te.F({isPickable:!1,updatePolicy:W.jq.SYNC});z.add(x);const N=new $.T({castShadow:!1});N.transformation=this._transform,this.createExternalResources(),this.createGeometries(N),z.addMany(N.geometries),this.forEachExternalMaterial(j=>z.add(j)),z.add(N),x.add(N),this.visible||N.setVisible(!1),this._resources={layer:x,object:N}}destroyResources(){const z=this.view._stage;!(0,E.Wi)(this._resources)&&z&&(z.remove(this._resources.object),z.remove(this._resources.layer),this.forEachExternalMaterial(x=>{z.remove(x),x.dispose()}),z.removeMany(this._resources.object.geometries),this._resources.object.dispose(),this.destroyExternalResources(),this._resources=null)}updateVisibility(z){(0,E.Wi)(this._resources)||this._resources.object.setVisible(z)}}},68604:(Te,ve,h)=>{h.d(ve,{l:()=>ee});var E=h(32917);class ee{constructor(K){this._attached=!1,this._resourcesCreated=!1,this._visible=!0,this.view=K,this._handle=(0,E.YP)(()=>this.view.ready,W=>{this._resourcesCreated&&(W?this._createResources():this._destroyResources())})}applyProps(K){let W=!1;for(const $ in K)$ in this?"attached"===$?W=K[$]:this[$]=K[$]:console.error("Cannot set unknown property",$);this.attached=W}destroy(){this.attached=!1,this._handle.remove()}get attached(){return this._attached}set attached(K){K!==this._attached&&this.view._stage&&(this._attached=K,this._attached&&!this._resourcesCreated?this._createResources():!this._attached&&this._resourcesCreated&&this._destroyResources())}get visible(){return this._visible}set visible(K){K!==this._visible&&(this._visible=K,this.attached&&this.updateVisibility(K))}_createResources(){this.createResources(),this._resourcesCreated=!0,this.visible||this.updateVisibility(!1)}_destroyResources(){this.destroyResources(),this._resourcesCreated=!1}}},81801:(Te,ve,h)=>{h.d(ve,{A:()=>K});var E=h(2166),ee=h(65787),Q=h(17625);function K(W,$){if(!$.screenSizeEnabled)return;const te=W.vertex;(0,E.hY)(te,$),te.uniforms.add(new ee.p("perScreenPixelRatio",(he,re)=>re.camera.perScreenPixelRatio)),te.uniforms.add(new ee.p("screenSizeScale",he=>he.screenSizeScale)),te.code.add(Q.H`float computeRenderPixelSizeAt( vec3 pWorld ){ -vec3 viewForward = - vec3(view[0][2], view[1][2], view[2][2]); -float viewDirectionDistance = abs(dot(viewForward, pWorld - cameraPosition)); -return viewDirectionDistance * perScreenPixelRatio; -} -vec3 screenSizeScaling(vec3 position, vec3 anchor){ -return position * screenSizeScale * computeRenderPixelSizeAt(anchor) + anchor; -}`)}},79967:(Te,ve,h)=>{h.d(ve,{j:()=>me});var E=h(13934),ee=h(42743),Q=h(33470),K=h(40723),W=h(88569),$=h(5894),te=h(60909),he=h(57623),re=h(17626),x=(h(17625),h(651)),N=h(91056),j=h(87601),y=h(39114),S=h(12407),I=h(64127),L=h(44835),R=h(41528),C=h(34013),B=h(67969),V=h(2078);class b extends N.A{initializeProgram(Y){return new S.$(Y.rctx,b.shader.get().build(this.configuration),y.i)}_setPipelineState(Y,ye){const Z=this.configuration,X=Y===L.A.NONE,se=Y===L.A.FrontFace;return(0,V.sm)({blending:Z.output!==E.H.Color&&Z.output!==E.H.Alpha||!Z.transparent?null:X?G:(0,W.j7)(Y),culling:(0,V.zp)(Z.cullFace),depthTest:{func:(0,W.Bh)(Y)},depthWrite:X?Z.writeDepth&&V.LZ:(0,W.K5)(Y),colorWrite:V.BK,stencilWrite:Z.hasOccludees?I.s3:null,stencilTest:Z.hasOccludees?ye?I.eD:I.RY:null,polygonOffset:X||se?null:(0,W.je)(Z.enableOffset)})}initializePipeline(){return this._occludeePipelineState=this._setPipelineState(this.configuration.transparencyPassType,!0),this._setPipelineState(this.configuration.transparencyPassType,!1)}getPipelineState(Y,ye){return ye?this._occludeePipelineState:super.getPipelineState(Y,ye)}}b.shader=new x.J(C.I,()=>h.e(8586).then(h.bind(h,18586)));const G=(0,V.if)(B.zi.ONE,B.zi.ONE_MINUS_SRC_ALPHA);class k extends R.W{constructor(){super(...arguments),this.output=E.H.Color,this.cullFace=ee.Vr.None,this.hasSlicePlane=!1,this.transparent=!1,this.enableOffset=!0,this.writeDepth=!0,this.hasOccludees=!1,this.transparencyPassType=L.A.NONE,this.hasMultipassTerrain=!1,this.cullAboveGround=!1}}(0,re._)([(0,j.o)({count:E.H.COUNT})],k.prototype,"output",void 0),(0,re._)([(0,j.o)({count:ee.Vr.COUNT})],k.prototype,"cullFace",void 0),(0,re._)([(0,j.o)()],k.prototype,"hasSlicePlane",void 0),(0,re._)([(0,j.o)()],k.prototype,"transparent",void 0),(0,re._)([(0,j.o)()],k.prototype,"enableOffset",void 0),(0,re._)([(0,j.o)()],k.prototype,"writeDepth",void 0),(0,re._)([(0,j.o)()],k.prototype,"hasOccludees",void 0),(0,re._)([(0,j.o)({count:L.A.COUNT})],k.prototype,"transparencyPassType",void 0),(0,re._)([(0,j.o)()],k.prototype,"hasMultipassTerrain",void 0),(0,re._)([(0,j.o)()],k.prototype,"cullAboveGround",void 0);class me extends K.F5{constructor(Y){super(Y,new ue),this.supportsEdges=!0,this._configuration=new k}getConfiguration(Y,ye){return this._configuration.output=Y,this._configuration.cullFace=this.parameters.cullFace,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.transparent=this.parameters.transparent,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.transparencyPassType=ye.transparencyPassType,this._configuration.enableOffset=ye.camera.relativeElevation{h.d(ve,{Q:()=>Y});var E=h(84161),ee=h(28093),Q=h(4794),K=h(5548),W=h(60479),$=h(19625),te=h(13934),he=h(42743),re=h(60881),z=h(40723),x=h(5894),N=h(2282),j=h(16396),y=h(42037),S=h(57623),I=h(17626),L=h(651),R=h(91056),C=h(87601),B=h(88569),V=h(12407),D=h(44835),b=h(41528),G=h(93310),k=h(67969),me=h(2078);class Pe extends R.A{initializeProgram(J){return new V.$(J.rctx,Pe.shader.get().build(this.configuration),oe)}_setPipelineState(J){const le=this.configuration,Me=J===D.A.NONE,Oe=J===D.A.FrontFace;return(0,me.sm)({blending:le.output!==te.H.Color&&le.output!==te.H.Alpha||!le.transparent?null:Me?B.wu:(0,B.j7)(J),culling:(0,me.zp)(le.cullFace),depthTest:{func:Oe?k.wb.LESS:le.shadingEnabled?k.wb.LEQUAL:k.wb.LESS},depthWrite:Me?le.writeDepth&&me.LZ:(0,B.K5)(J),colorWrite:me.BK,polygonOffset:Me||Oe?null:B.E0})}initializePipeline(){return this._setPipelineState(this.configuration.transparencyPassType)}}Pe.shader=new L.J(G.S,()=>h.e(8271).then(h.bind(h,88271)));class ue extends b.W{constructor(){super(...arguments),this.output=te.H.Color,this.cullFace=he.Vr.None,this.transparencyPassType=D.A.NONE,this.hasSlicePlane=!1,this.transparent=!1,this.writeDepth=!0,this.screenSizeEnabled=!0,this.shadingEnabled=!0,this.hasMultipassTerrain=!1,this.cullAboveGround=!1}}(0,I._)([(0,C.o)({count:te.H.COUNT})],ue.prototype,"output",void 0),(0,I._)([(0,C.o)({count:he.Vr.COUNT})],ue.prototype,"cullFace",void 0),(0,I._)([(0,C.o)({count:D.A.COUNT})],ue.prototype,"transparencyPassType",void 0),(0,I._)([(0,C.o)()],ue.prototype,"hasSlicePlane",void 0),(0,I._)([(0,C.o)()],ue.prototype,"transparent",void 0),(0,I._)([(0,C.o)()],ue.prototype,"writeDepth",void 0),(0,I._)([(0,C.o)()],ue.prototype,"screenSizeEnabled",void 0),(0,I._)([(0,C.o)()],ue.prototype,"shadingEnabled",void 0),(0,I._)([(0,C.o)()],ue.prototype,"hasMultipassTerrain",void 0),(0,I._)([(0,C.o)()],ue.prototype,"cullAboveGround",void 0);const oe=new Map([[j.T.POSITION,0],[j.T.NORMAL,1],[j.T.OFFSET,2]]);class Y extends z.F5{constructor(J){super(J,new Z),this.supportsEdges=!0,this._configuration=new ue,this._vertexAttributeLocations=oe}getConfiguration(J,le){return this._configuration.output=J,this._configuration.cullFace=this.parameters.cullFace,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.transparent=this.parameters.transparent,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.screenSizeEnabled=this.parameters.screenSizeEnabled,this._configuration.shadingEnabled=this.parameters.shadingEnabled,this._configuration.transparencyPassType=le.transparencyPassType,this._configuration.hasMultipassTerrain=le.multipassTerrain.enabled,this._configuration.cullAboveGround=le.multipassTerrain.cullAboveGround,this._configuration}intersect(J,le,Me,Oe,Ae,v,M){if(this.parameters.screenSizeEnabled){const g=J.vertexAttributes.get(j.T.OFFSET),d={applyToVertex:(A,T,F,_)=>{const P=(0,E.s)(se,g.data[3*_+0],g.data[3*_+1],g.data[3*_+2]),U=(0,E.s)(ne,A,T,F);return(0,E.g)(P,P,this.parameters.screenSizeScale*Oe.camera.computeRenderPixelSizeAt(P)),(0,E.a)(U,U,P),[U[0],U[1],U[2]]},applyToAabb:A=>{const T=(0,K.be)(A,se);return(0,K.bA)(A,this.parameters.screenSizeScale*Oe.camera.computeRenderPixelSizeAt(T))}};(0,S.Bw)(J,le,Oe,Ae,v,d,M)}else(0,S.Bw)(J,le,Oe,Ae,v,void 0,M)}requiresSlot(J,le){if(le===te.H.Highlight)return J===x.r.OPAQUE_MATERIAL;if(le===te.H.Color||le===te.H.Alpha||le===te.H.ObjectAndLayerIdColor){let Me=x.r.OPAQUE_MATERIAL;return this.parameters.transparent&&(Me=this.parameters.writeDepth?x.r.TRANSPARENT_MATERIAL:x.r.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL),J===Me||J===x.r.DRAPED_MATERIAL}return!1}createGLMaterial(J){return new ye(J)}createBufferWriter(){return new X(this.parameters.screenSizeEnabled)}}class ye extends re.Z{beginSlot(J){return this.ensureTechnique(Pe,J)}}class Z extends z.Mt{constructor(){super(...arguments),this.color=(0,Q.f)(1,1,1,1),this.shadingTint=(0,Q.f)(0,0,0,.25),this.shadingDirection=(0,E.n)((0,ee.c)(),[.5,-.5,-.5]),this.screenSizeScale=14,this.transparent=!1,this.writeDepth=!0,this.hasSlicePlane=!1,this.cullFace=he.Vr.None,this.screenSizeEnabled=!1,this.shadingEnabled=!0}}class X{constructor(J){this.screenSizeEnabled=J;const le=(0,$.U$)().vec3f(j.T.POSITION).vec3f(j.T.NORMAL);this.screenSizeEnabled&&le.vec3f(j.T.OFFSET),this.vertexBufferLayout=le}allocate(J){return this.vertexBufferLayout.createBuffer(J)}elementCount(J){return J.indices.get(j.T.POSITION).length}write(J,le,Me,Oe,Ae){if((0,y.NK)(Me,this.vertexBufferLayout,J,le,Oe,Ae),this.screenSizeEnabled){if(!Me.vertexAttributes.has(j.T.OFFSET))throw new Error(`${j.T.OFFSET} vertex attribute required for screenSizeEnabled ShadedColorMaterial`);{const v=Me.vertexAttributes.get(j.T.OFFSET),M=Me.indices.get(j.T.OFFSET);(0,N.hu)(3===v.size);const g=Oe.getField(j.T.OFFSET,W.ct);if(!g)throw new Error("unable to acquire view for "+j.T.OFFSET);(0,y.ho)(M,v.data,le,g,Ae)}}}}const se=(0,ee.c)(),ne=(0,ee.c)()},95925:(Te,ve,h)=>{h.d(ve,{Er:()=>$,Lp:()=>te,Yq:()=>z});var E=h(15861),ee=h(59213),Q=h(62208),K=h(10699),W=h(32917);function $(x,N){x.interactive=!0;const{tool:j,view:y}=x;y.activeTool=j;let S=(0,K.fu)(N,()=>{y.activeTool===j&&(y.activeTool=null)});return(0,ee.vr)(function(){var I=(0,E.Z)(function*(L){yield(0,W.N1)(()=>(0,Q.Wi)(j)||!j.active,L),S=(0,Q.hw)(S)});return function(L){return I.apply(this,arguments)}}(),N)}function te(x,N){return(0,W.YP)(()=>x.interactive,()=>function he(x,N){x.interactive?function re(x,N){z(x);const{view:j,analysis:y}=x,S=new N({view:j,analysis:y,analysisViewData:x});x.tool=S,j.tools.add(S)}(x,N):z(x)}(x,N),W.tX)}function z(x){const{view:N,tool:j}=x;(0,Q.Wi)(j)||(N.tools.remove(j),x.tool=null)}},58997:(Te,ve,h)=>{h.d(ve,{f:()=>I});var j,L,E=h(17626),ee=h(32917),Q=h(77712),$=(h(85931),h(90912),h(76898)),te=h(14517),he=h(63290),re=h(62208),z=h(10699),x=h(33786),N=h(46160);(L=j||(j={}))[L.WhenToolEditable=0]="WhenToolEditable",L[L.WhenToolNotEditable=1]="WhenToolNotEditable",L[L.Always=2]="Always";class y{constructor(){this._isToolEditable=!0,this._manipulators=new N.Z,this._resourceContexts={manipulator3D:{}},this._attached=!1}set isToolEditable(R){this._isToolEditable=R}get length(){return this._manipulators.length}add(R,C=j.WhenToolEditable){this.addMany([R],C)}addMany(R,C=j.WhenToolEditable){for(const B of R){const V={manipulator:B,visibilityPredicate:C,attached:!1};this._manipulators.add(V),this._attached&&this._updateManipulatorAttachment(V)}}remove(R){for(let C=0;C{this._detachManipulator(R)}),this._manipulators.removeAll()}attach(){this._manipulators.forEach(R=>{this._updateManipulatorAttachment(R)}),this._attached=!0}detach(){this._manipulators.forEach(R=>{this._detachManipulator(R)}),this._attached=!1}destroy(){this.detach(),this._manipulators.forEach(({manipulator:R})=>{R.destroy&&R.destroy()}),this._manipulators.destroy(),this._resourceContexts=null}on(R,C){return this._manipulators.on(R,B=>{C(B)})}forEach(R){for(const C of this._manipulators.items)R(C)}some(R){return this._manipulators.items.some(R)}toArray(){const R=[];return this.forEach(C=>R.push(C.manipulator)),R}intersect(R,C){let B=null,V=Number.MAX_VALUE;return this._manipulators.forEach(({manipulator:D,attached:b})=>{if(!b||!D.interactive)return;const G=D.intersectionDistance(R,C);(0,re.pC)(G)&&Gthis.analysisViewData.visible,L=>this.visible=L,ee.tX))}deactivate(){this.onDeactivate(),this.created||this.analysis.clear()}resetCreated(){this._set("created",!1)}};(0,E._)([(0,Q.Cb)({constructOnly:!0})],I.prototype,"analysis",void 0),(0,E._)([(0,Q.Cb)()],I.prototype,"analysisViewData",void 0),I=(0,E._)([(0,$.j)("esri.views.interactive.AnalysisToolBase")],I)},30260:(Te,ve,h)=>{h.d(ve,{hM:()=>Oe,Xd:()=>D,di:()=>Z}),h(29132);var ee=h(58817),K=(h(21286),h(62208));function D(v,M){return v.events.on("drag",function V(v,M){let g=null,d=null;return A=>{if("cancel"===A.action)return void((0,K.pC)(d)&&(d.execute({action:"cancel"}),g=null,d=null));const T={action:A.action,screenStart:A.start,screenEnd:A.screenPoint};"start"===A.action&&(0,K.Wi)(g)&&(g=new Oe,d=new Oe,M(v,g,d,A.pointerType,T)),(0,K.pC)(g)&&g.execute(T),"end"===A.action&&(0,K.pC)(g)&&(g=null,d=null)}}(v,M))}function Z(v,M){const g=new Map;for(const d of M)g.set(d,(0,ee.d9)(v[d]));return d=>(g.forEach((A,T)=>{v[T]=A}),d)}h(28093),h(55915),h(84786),h(60507),h(59617),h(65401),h(32442),h(25748),h(72642);class Oe{constructor(){this.execute=()=>{}}next(M,g=new Oe){return(0,K.pC)(M)&&(this.execute=d=>{const A=M(d);(0,K.pC)(A)&&g.execute(A)}),g}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/126.1a496f66391c2c65.js b/apps/n/porrtal-io-app/public/angular/126.1a496f66391c2c65.js deleted file mode 100644 index 41155c7c..00000000 --- a/apps/n/porrtal-io-app/public/angular/126.1a496f66391c2c65.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[126],{50126:(q,T,a)=>{a.d(T,{Z:()=>ye});var C=a(15861),o=a(17626),x=a(26584),u=a(62208),y=a(32917),l=a(77712),b=(a(85931),a(90912),a(76898)),Z=a(84786),E=a(23010),D=a(78448),R=a(19702),V=a(54984),I=a(14517),m=a(10699),L=a(38114),M=a(20477),z=a(88879),H=a(42930),W=a(65234),J=a(36255);class X{constructor(r){this._schedule=r,this._handle=new k(r)}destroy(){this._handle.destroy()}invoke(r,e){return r.buffer&&0!==r.buffer.byteLength?(r.options.sourceSpatialReference&&r.options.sourceSpatialReference instanceof W.Z&&(r.options={...r.options,sourceSpatialReference:r.options.sourceSpatialReference.toJSON()}),this._handle.invoke(r,e).then(i=>this._schedule(()=>{if(i.spatialReference=W.Z.fromJSON(i.spatialReference),i.fields)for(let n=0;n[e.buffer]},r)}}let w=class extends I.Z{constructor(t){super(t)}get queryFeaturesDehydrated(){const t=this.layer.capabilities,r=t&&t.query;if(r&&r.supportsFormatPBF){(0,u.Wi)(this._decoder)&&(this._decoder=new X(this.schedule));const e={sourceSpatialReference:this.layer.spatialReference?.toJSON()??null,applyTransform:!0,maxStringAttributeLength:1024};return(i,s)=>(0,M.runQuery)(this.layer.parsedUrl,i,"pbf",this._createRequestOptions(s)).then(n=>((0,m.k_)(s),(0,u.pC)(this._decoder)?this._decoder.invoke({buffer:n.data,options:e},s.signal):Promise.reject((0,m.zE)())))}return(e,i)=>(0,M.executeQuery)(this.layer.parsedUrl,e,this.layer.spatialReference,this._createRequestOptions(i)).then(s=>(0,L.PA)(s.data))}queryFeatureCount(t,r){return this.layer.queryFeatureCount(t,r)}destroy(){this._decoder=(0,u.SC)(this._decoder)}_createRequestOptions(t){return{...t,query:{...this.layer.customParameters,token:this.layer.apiKey,...t?.query}}}};(0,o._)([(0,l.Cb)({constructOnly:!0})],w.prototype,"layer",void 0),(0,o._)([(0,l.Cb)({constructOnly:!0})],w.prototype,"schedule",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],w.prototype,"queryFeaturesDehydrated",null),w=(0,o._)([(0,b.j)("esri.views.3d.layers.support.featureTileQuery3D.FeatureTileServiceQuery3D")],w);let A=class extends I.Z{constructor(t){super(t)}queryFeaturesDehydrated(t,r){return this.layer.queryFeatures(t,r)}queryFeatureCount(t,r){return this.layer.queryFeatureCount(t,r)}};(0,o._)([(0,l.Cb)({constructOnly:!0})],A.prototype,"layer",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],A.prototype,"queryFeaturesDehydrated",null),A=(0,o._)([(0,b.j)("esri.views.3d.layers.support.featureTileQuery3D.FeatureTileServiceMeshQuery3D")],A);let N=class extends I.Z{constructor(t){super(t)}queryFeaturesDehydrated(t,r){return this.layer.queryFeatures(t,r)}};(0,o._)([(0,l.Cb)({constructOnly:!0})],N.prototype,"layer",void 0),N=(0,o._)([(0,b.j)("esri.views.3d.layers.support.featureTileQuery3D.FeatureTileServiceQuery3D")],N);let S=class extends I.Z{constructor(t){super(t)}queryFeaturesDehydrated(t,r){return this.source.queryFeaturesJSON(t,r).then(L.PA,e=>{if(e&&"query-features-json:unsupported"===e.name)return this.layer.queryFeatures(t,r);throw e})}queryFeatureCount(t,r){return this.layer.queryFeatureCount(t,r)}};(0,o._)([(0,l.Cb)({constructOnly:!0})],S.prototype,"layer",void 0),(0,o._)([(0,l.Cb)({constructOnly:!0})],S.prototype,"source",void 0),S=(0,o._)([(0,b.j)("esri.views.3d.layers.support.featureTileQuery3D.FeatureTileClientQuery3D")],S);class te{constructor(r){this._memoryCache=null,this._capabilities=null;const e=r.layerView.layer;this._layerView=r.layerView,this.objectIdField=e.objectIdField,this.globalIdField="globalIdField"in e?e.globalIdField:null,this._returnZ=r.returnZ,this._returnM=r.returnM;const i=this._layerView.view.resourceController;this.query=function ee(t,r){return"feature"===t.type&&"feature-layer"===t.source.type?(0,u.pC)(t.infoFor3D)?new A({layer:t}):new w({layer:t,schedule:r}):"feature"===t.type&&"memory"===t.source.type||"csv"===t.type||"geojson"===t.type||"oriented-imagery"===t.type||"wfs"===t.type?new S({layer:t,source:t.source}):"ogc-feature"===t.type?new N({layer:t}):null}(e,s=>i.schedule(s)),i&&this._memoryCacheEnabled&&(this._memoryCache=i.memoryController.newCache(e.uid))}get _memoryCacheEnabled(){switch(this._layerView.layer.source.type){case"feature-layer":case"ogc-feature":case"oriented-imagery":return!0;case"csv":case"geojson":case"memory":case"wfs":return!1}}destroy(){this._memoryCache=(0,u.SC)(this._memoryCache),this.query.destroy()}createQuery(){const r=this._layerView.layer.createQuery();return r.outFields=this._layerView.availableFields,r.returnZ=this._returnZ,r.returnM=this._returnM,r.outSpatialReference=this.tilingScheme.spatialReference,r}get memoryCache(){return this._memoryCache}get viewingMode(){return this._layerView.view.state.viewingMode}get tilingScheme(){return this._layerView.view.featureTiles.tilingScheme}get scheduler(){const r=this._layerView.view.resourceController;return r?r.scheduler:null}get geometryType(){return this._layerView.layer.geometryType}get fullExtent(){return this._layerView.layer.fullExtent}get tileMaxRecordCount(){return this._layerView.layer.capabilities.query.tileMaxRecordCount}get maxRecordCount(){return this._layerView.layer.capabilities.query.maxRecordCount}get capabilities(){return(0,u.pC)(this._capabilities)||(this._capabilities=(0,V.A)(this._layerView.layer)),this._capabilities}logFetchError(r,e){r.error("#fetchTile()",this._layerView.layer,e&&e.message?e.message:e)}}var re=a(36967),se=a(41632),Q=a(42743),ie=a(63290),ae=a(13812),oe=a(2319),ne=a(98624),p=a(36630),G=a(59990),K=a(96854),le=a(46679),U=a(10023);const Y="esri.views.layers.FeatureLayerView",B=ie.Z.getLogger(Y),ue=t=>{let r=class extends t{constructor(...e){super(...e),this._updatingRequiredFieldsPromise=null,this.filter=null,this.timeExtent=null,this.layer=null,this.requiredFields=[],this.view=null}initialize(){this.handles.add([(0,y.YP)(()=>{const e=this.layer;return[e?.elevationInfo?.featureExpressionInfo,e&&"displayField"in e?e.displayField:null,e?.timeInfo,e&&"renderer"in e&&e.renderer,e&&"labelingInfo"in e&&e.labelingInfo,e&&"floorInfo"in e&&e.floorInfo,this.filter,this.featureEffect,this.timeExtent]},()=>this._handleRequiredFieldsChange(),y.tX),(0,y.on)(()=>this.view?.floors,"change",()=>this._handleRequiredFieldsChange()),(0,y.on)(()=>{const e=this.layer;return e&&"sublayers"in e&&e.sublayers},"change",()=>this._handleRequiredFieldsChange())])}get availableFields(){const{layer:e,layer:{fieldsIndex:i},requiredFields:s}=this;return(0,p.Q0)(i,"outFields"in e&&e.outFields?[...(0,p.Lk)(i,e.outFields),...s]:s)}get featureEffect(){return this.layer&&"featureEffect"in this.layer?this.layer.featureEffect:null}set featureEffect(e){this._override("featureEffect",e)}get maximumNumberOfFeatures(){return 0}set maximumNumberOfFeatures(e){B.error("#maximumNumberOfFeatures=","Setting maximum number of features is not supported")}get maximumNumberOfFeaturesExceeded(){return!1}highlight(e){throw new Error("missing implementation")}createQuery(){const e={outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference},i=(0,u.pC)(this.filter)?this.filter.createQuery(e):new K.Z(e);if("feature"===this.layer.type){const s=(0,G.c)(this);(0,u.pC)(s)&&(i.where=i.where?`(${i.where}) AND (${s})`:s)}return(0,u.pC)(this.timeExtent)&&(i.timeExtent=(0,u.pC)(i.timeExtent)?i.timeExtent.intersection(this.timeExtent):this.timeExtent.clone()),i}createAggregateQuery(){return new K.Z({outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference})}queryFeatures(e,i){throw new Error("missing implementation")}queryObjectIds(e,i){throw new Error("missing implementation")}queryFeatureCount(e,i){throw new Error("missing implementation")}queryExtent(e,i){throw new Error("missing implementation")}fetchPopupFeatures(e,i){var s=this;return(0,C.Z)(function*(){const n=s.validateFetchPopupFeatures(i);if(n)throw n;return s.fetchClientPopupFeatures(i)})()}_loadArcadeModules(e){if(e.get("expressionInfos.length")||Array.isArray(e.content)&&e.content.some(i=>"expression"===i.type))return(0,le.LC)()}_handleRequiredFieldsChange(){const e=this._updateRequiredFields();this._set("_updatingRequiredFieldsPromise",e),e.then(()=>{this._updatingRequiredFieldsPromise===e&&this._set("_updatingRequiredFieldsPromise",null)})}_updateRequiredFields(){var e=this;return(0,C.Z)(function*(){if(!e.layer||!e.view)return;const i="3d"===e.view.type,{layer:s,layer:{fieldsIndex:n,objectIdField:F}}=e,v="renderer"in s&&s.renderer,d="orderBy"in s&&s.orderBy,h="featureReduction"in s?s.featureReduction:null,c=new Set,j=yield(0,m.as)([v?v.collectRequiredFields(c,n):null,(0,p.Mu)(c,s),i?(0,p.vl)(c,s):null,(0,u.pC)(e.filter)?(0,p.Ll)(c,s,e.filter):null,(0,u.pC)(e.featureEffect)?(0,p.Ll)(c,s,e.featureEffect.filter):null,h?(0,p.ZV)(c,s,h):null,d?(0,p.Qj)(c,s,d):null]);if(s.timeInfo&&e.timeExtent&&(0,p.gd)(c,s.fieldsIndex,[s.timeInfo.startField,s.timeInfo.endField]),"feature"===s.type&&(s.floorInfo&&(0,p.gd)(c,s.fieldsIndex,[s.floorInfo.floorField]),i&&(0,u.pC)(s.infoFor3D)&&(null==s.globalIdField&&B.error("globalIdField missing on 3DObjectFeatureLayer"),(0,p.gd)(c,s.fieldsIndex,[s.globalIdField]))),"subtype-group"===s.type){(0,p.AB)(c,n,s.subtypeField);const P=s.sublayers.map($=>Promise.all([$.renderer?.collectRequiredFields(c,n),(0,p.Mu)(c,$)]));yield(0,m.as)(P)}for(const P of j)P.error&&B.error(P.error);(0,p.AB)(c,n,F),i&&"displayField"in s&&s.displayField&&(0,p.AB)(c,n,s.displayField);const _=Array.from(c).sort();e._set("requiredFields",_)})()}validateFetchPopupFeatures(e){if((0,u.Wi)(e))return null;for(const i of e.clientGraphics){const s=i.layer;if("popupEnabled"in s&&!s.popupEnabled)return new x.Z("featurelayerview:fetchPopupFeatures","Popups are disabled",{layer:s});if(i.isAggregate){const n="featureReduction"in s?s.featureReduction:null;if(!(n&&"popupTemplate"in n&&n.popupEnabled&&n.popupTemplate))return new x.Z("featurelayerview:fetchPopupFeatures","Popups are disabled",{layer:s})}else if("popupTemplate"in s&&!(0,U.V)(s,e))return new x.Z("featurelayerview:fetchPopupFeatures","Layer does not define a popup template",{layer:s})}}fetchClientPopupFeatures(e){var i=this;return(0,C.Z)(function*(){const s=(0,u.pC)(e)?e.clientGraphics:null;if(!s||0===s.length)return[];const n=new Array(s.length),F=new Map,v=yield i.createPopupQuery(e);for(let d=0;dd.layer):[i.layer];for(const d of v){if(!("popupEnabled"in d))continue;const h=(0,U.V)(d,e);if((0,u.Wi)(h))continue;const c=yield i._loadArcadeModules(h),j=c&&c.arcadeUtils.hasGeometryOperations(h);F=!("point"!==i.layer.geometryType&&!j);const _=yield(0,U.e)(i.layer,h);for(const P of _)n.add(P)}if(s.returnGeometry=F,s.returnZ=F,s.returnM=F,s.outFields=Array.from(n),s.outSpatialReference=i.view.spatialReference,"feature"===i.layer.type){const d=(0,G.c)(i);(0,u.pC)(d)&&(s.where=s.where?`(${s.where}) AND (${d})`:d)}return s})()}canResume(){return!(!super.canResume()||(0,u.pC)(this.timeExtent)&&this.timeExtent.isEmpty)}};return(0,o._)([(0,l.Cb)()],r.prototype,"_updatingRequiredFieldsPromise",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],r.prototype,"availableFields",null),(0,o._)([(0,l.Cb)({type:oe.Z})],r.prototype,"featureEffect",null),(0,o._)([(0,l.Cb)({type:ne.Z})],r.prototype,"filter",void 0),(0,o._)([(0,l.Cb)(ae.qG)],r.prototype,"timeExtent",void 0),(0,o._)([(0,l.Cb)()],r.prototype,"layer",void 0),(0,o._)([(0,l.Cb)({type:Number})],r.prototype,"maximumNumberOfFeatures",null),(0,o._)([(0,l.Cb)({readOnly:!0,type:Boolean})],r.prototype,"maximumNumberOfFeaturesExceeded",null),(0,o._)([(0,l.Cb)({readOnly:!0})],r.prototype,"requiredFields",void 0),(0,o._)([(0,l.Cb)()],r.prototype,"suspended",void 0),(0,o._)([(0,l.Cb)()],r.prototype,"view",void 0),r=(0,o._)([(0,b.j)(Y)],r),r};var de=a(45611),ce=a(94421);let g=class extends((0,ce.Z)((0,D.R)(ue((0,R.A)(de.Z))))){constructor(t){super(t),this._controllerTotal=0,this._processorTotal=0,this.suspendResumeExtentMode="data"}initialize(){this.handles.add((0,y.YP)(()=>this._updatingRequiredFieldsPromise,t=>this.updatingHandles.addPromise(t),y.tX))}destroy(){this.updatingHandles.removeAll(),this.handles.removeAll(),this._fetcherContext=(0,u.SC)(this._fetcherContext)}get maximumNumberOfFeatures(){return this.controller?.maximumNumberOfFeatures??this._get("maximumNumberOfFeatures")}set maximumNumberOfFeatures(t){this._set("maximumNumberOfFeatures",t),this.controller&&(this.controller.maximumNumberOfFeatures=t)}get maximumNumberOfFeaturesExceeded(){return!!this.controller&&!(this.suspended||!this.controller.maximumNumberOfFeaturesExceeded)}get updatingProgressValue(){let t=0;if(this.controller?.updating){const e=this.controller.updatingRemaining,i=Math.max(this.controller.updatingTotal,this._controllerTotal);i>0&&(t=(i-e)/i,this._controllerTotal=i)}let r=0;if(this.processor?.updating){const e=this.processor.updatingRemaining,i=Math.max(e,this._processorTotal);i>0&&(r=(i-e)/i,this._processorTotal=i)}return.5*(t+r)}get updatePolicy(){if(!this.controller)return Q.jq.ASYNC;switch(this.controller.mode){case"snapshot":{const t=pe[this.layer.geometryType];return null==t||this.controller.serviceDataCount>t?Q.jq.ASYNC:Q.jq.SYNC}case"tiles":return Q.jq.ASYNC}}get hasZ(){const t=this.layer,r=t.capabilities&&t.capabilities.data;return!(!r||!r.supportsZ)&&("returnZ"in t&&null!=t.returnZ?t.returnZ:r.supportsZ)}get hasM(){const t=this.layer,r=t.capabilities&&t.capabilities.data;return!(!r||!r.supportsM)&&"returnM"in t&&null!=t.returnM&&t.returnM}setVisibility(t,r){this.processor?.setObjectIdVisibility(t,r)}createQuery(){return super.createQuery()}queryFeatures(t,r){const e=()=>super.queryFeatures(t,r);return"mesh"===this.layer.geometryType?this._queryFeaturesMesh(this._ensureQuery(t),e):e()}beforeSetController(t){t.maximumNumberOfFeatures=this.maximumNumberOfFeatures}createController(){this._fetcherContext=new te({layerView:this,returnZ:this.hasZ,returnM:this.hasM});const t=new E.g({layerView:this,context:this._fetcherContext,graphics:new re.g,extent:this.clippingExtent});return this.updatingHandles.add(()=>t.serviceDataExtent,r=>{this.processor&&(this.processor.dataExtent=r)},y.nn),this.handles.add((0,y.YP)(()=>this.suspended,r=>{r?t.suspend():t.resume()},y.tX)),this.updatingHandles.add(()=>this.processor?.displayFeatureLimit,r=>t.displayFeatureLimit=r,y.nn),this.handles.add((0,y.gx)(()=>!this.updating,()=>{this._controllerTotal=0,this._processorTotal=0})),t}doRefresh(t){var r=this;return(0,C.Z)(function*(){t&&!r.suspended&&r.controller&&r.controller.refetch(),r.processor.refreshFilter()})()}getUsedMemory(){return(this.processor?.usedMemory??0)+(this.controller?.memoryForUnusedFeatures??0)}getUnloadedMemory(){const r=this.controller?.expectedFeatureDiff??0,e=this.processor?.loadedFeatures??0;return(this.processor?.unprocessedMemoryEstimate??0)+(0===e||r/e>20?0:r*(this.processor?.usedMemoryPerFeature??0))}ignoresMemoryFactor(){return this.controller?.hasMaximumNumberOfFeaturesOverride}_queryFeaturesMesh(t,r){var e=this;return(0,C.Z)(function*(){yield e._validateQueryFeaturesMesh(t);const i=yield r();if(t&&t.outStatistics||(0,u.Wi)(e.graphics3DProcessor))return i;const s=e.layer.objectIdField,n=e.graphics3DProcessor.graphics3DGraphicsByObjectID,F=[];for(const v of i.features)if(v.geometry){const d=n.get(v.attributes[s]);d&&(v.geometry=(0,Z.kB)(d.graphic.geometry),F.push(v))}else F.push(v);return i.features=F,i})()}_validateQueryFeaturesMesh(t){var r=this;return(0,C.Z)(function*(){if(!t)return;const e=s=>{throw new x.Z("feature-layer-view:unsupported-query",`Queries on Mesh feature collection layers do not support '${s}'`)},i=["quantizationParameters","geometryPrecision","maxAllowableOffset"];for(const s of i)null!=t[s]&&e(s);"returnM"in t&&t.returnM&&e("returnM"),"returnCentroid"in t&&t.returnCentroid&&e("returnCentroid"),(0,u.pC)(t.outSpatialReference)&&!t.outSpatialReference.equals(r.view.spatialReference)&&e("outSpatialReference")})()}get performanceInfo(){const t=this.controller?.displayFeatureLimit,r=(0,u.pC)(t)&&t.averageSymbolComplexity,e=(0,u.pC)(r)?`f:${r.primitivesPerFeature},v:${r.primitivesPerCoordinate}`:"n/a",i={...this._getResourceInfo(),storedFeatures:0,totalVertices:0,partial:this.maximumNumberOfFeaturesExceeded,mode:this.controller?.mode??"n/a",symbolComplexity:e,nodes:this.controller?.tileDescriptors.length??0};if(this.controller&&i.displayedNumberOfFeatures){const s=this.controller.debug;i.storedFeatures=s.storedFeatures,i.totalVertices=s.totalVertices}return i}get test(){return{updatePolicy:this.updatePolicy,controller:this.controller,loadedGraphics:this.controller?.graphics}}};(0,o._)([(0,l.Cb)()],g.prototype,"layer",void 0),(0,o._)([(0,l.Cb)()],g.prototype,"controller",void 0),(0,o._)([(0,l.Cb)()],g.prototype,"_controllerTotal",void 0),(0,o._)([(0,l.Cb)()],g.prototype,"_processorTotal",void 0),(0,o._)([(0,l.Cb)()],g.prototype,"maximumNumberOfFeatures",null),(0,o._)([(0,l.Cb)()],g.prototype,"maximumNumberOfFeaturesExceeded",null),(0,o._)([(0,l.Cb)(se.q)],g.prototype,"updatingProgress",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],g.prototype,"updatingProgressValue",null),(0,o._)([(0,l.Cb)({readOnly:!0})],g.prototype,"updatePolicy",null),(0,o._)([(0,l.Cb)({readOnly:!0})],g.prototype,"hasZ",null),(0,o._)([(0,l.Cb)({readOnly:!0})],g.prototype,"hasM",null),(0,o._)([(0,l.Cb)()],g.prototype,"suspendResumeExtentMode",void 0),g=(0,o._)([(0,b.j)("esri.views.3d.layers.FeatureLayerViewBase3D")],g);const pe={point:5e3,polygon:500,polyline:1e3},ye=g},94421:(q,T,a)=>{a.d(T,{Z:()=>b});var C=a(17626),o=a(63290),x=a(10699),u=a(32917),y=a(77712),O=(a(85931),a(90912),a(76898));const b=Z=>{let E=class extends Z{initialize(){this.handles.add((0,u.on)(()=>this.layer,"refresh",D=>{this.doRefresh(D.dataChanged).catch(R=>{(0,x.D_)(R)||o.Z.getLogger(this.declaredClass).error(R)})}),"RefreshableLayerView")}};return(0,C._)([(0,y.Cb)()],E.prototype,"layer",void 0),E=(0,C._)([(0,O.j)("esri.layers.mixins.RefreshableLayerView")],E),E}},10023:(q,T,a)=>{a.d(T,{V:()=>l,e:()=>u});var C=a(15861),o=a(62208),x=a(36630);function u(f){return y.apply(this,arguments)}function y(){return(y=(0,C.Z)(function*(f,O=f.popupTemplate){if((0,o.Wi)(O))return[];const b=yield O.getRequiredFields(f.fieldsIndex),{lastEditInfoEnabled:Z}=O,{objectIdField:E,typeIdField:D,globalIdField:R,relationships:V}=f;if(b.includes("*"))return["*"];const I=Z?yield(0,x.CH)(f):[],m=(0,x.Q0)(f.fieldsIndex,[...b,...I]);return D&&m.push(D),m&&E&&f.fieldsIndex.has(E)&&!m.includes(E)&&m.push(E),m&&R&&f.fieldsIndex.has(R)&&!m.includes(R)&&m.push(R),V&&V.forEach(L=>{const{keyField:M}=L;m&&M&&f.fieldsIndex.has(M)&&!m.includes(M)&&m.push(M)}),m})).apply(this,arguments)}function l(f,O){return f.popupTemplate?f.popupTemplate:(0,o.pC)(O)&&O.defaultPopupTemplateEnabled&&(0,o.pC)(f.defaultPopupTemplate)?f.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1269.0a1b5e41aab2dcff.js b/apps/n/porrtal-io-app/public/angular/1269.0a1b5e41aab2dcff.js deleted file mode 100644 index c9060e8b..00000000 --- a/apps/n/porrtal-io-app/public/angular/1269.0a1b5e41aab2dcff.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1269],{21269:(U,f,i)=>{i.r(f),i.d(f,{default:()=>x});var l=i(15861),E=i(17626),m=i(62208),L=i(10699),S=(i(63290),i(90912),i(85931),i(26584),i(8314),i(76898)),h=i(84161),c=i(28093),p=i(13777),g=i(97126),y=i(83308),C=i(82274),P=i(17827);function b(t,o,n){const s=(0,g.c)(),e=(0,g.g)(s);return(0,h.z)(e,e,t,.5),(0,h.z)(e,e,o,.5),s[3]=(0,h.i)(e,t),(0,h.a)(e,e,n),s}let v=class{constructor(){this._idToComponent=new Map,this._components=new C.Z(t=>t.bounds),this._edges=new C.Z(t=>t.bounds),this._tmpLineSegment=(0,p.Ue)(),this._tmpP1=(0,c.c)(),this._tmpP2=(0,c.c)(),this._tmpP3=(0,c.c)(),this.remoteClient=null}fetchCandidates(t,o){var n=this;return(0,l.Z)(function*(){yield Promise.resolve(),(0,L.k_)(o),yield n._ensureEdgeLocations(t,o);const s=[];return n._edges.forEachNeighbor(e=>(n._addCandidates(t,e,s),s.length<1e3),t.bounds),{result:{candidates:s}}})()}_ensureEdgeLocations(t,o){var n=this;return(0,l.Z)(function*(){const s=[];if(n._components.forEachNeighbor(d=>{if((0,m.Wi)(d.info)){const{id:r,uid:a}=d;s.push({id:r,uid:a})}return!0},t.bounds),!s.length)return;const e={components:s},u=yield n.remoteClient.invoke("fetchAllEdgeLocations",e,(0,m.Pt)(o,{}));for(const d of u.components)n._setFetchEdgeLocations(d)})()}add(t){var o=this;return(0,l.Z)(function*(){const n=new T(t.id,t.bounds);return o._idToComponent.set(n.id,n),o._components.add([n]),{result:{}}})()}remove(t){var o=this;return(0,l.Z)(function*(){const n=o._idToComponent.get(t.id);if(n){const s=[];o._edges.forEachNeighbor(e=>(e.component===n&&s.push(e),!0),n.bounds),o._edges.remove(s),o._components.remove([n]),o._idToComponent.delete(n.id)}return{result:{}}})()}_setFetchEdgeLocations(t){const o=this._idToComponent.get(t.id);if((0,m.Wi)(o)||t.uid!==o.uid)return;const n=P.n_.createView(t.locations),s=new Array(n.count),e=(0,c.c)(),u=(0,c.c)();for(let a=0;a{class t{constructor(n,s){this.id=n,this.bounds=s,this.info=null,this.uid=++t.uid}}return t.uid=0,t})();class j{constructor(o,n,s){this.component=o,this.index=n,this.bounds=s}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1288.acef9941cf09f3d8.js b/apps/n/porrtal-io-app/public/angular/1288.acef9941cf09f3d8.js deleted file mode 100644 index 7f01af89..00000000 --- a/apps/n/porrtal-io-app/public/angular/1288.acef9941cf09f3d8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1288],{76279:(Ne,xe,O)=>{O.d(xe,{r:()=>ae});var Z=O(14259);function ae(A,E){if(!(this instanceof ae))return new ae(A,E);this._maxEntries=Math.max(4,A||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),E&&("function"==typeof E?this.toBBox=E:this._initFormat(E)),this.clear()}function X(A,E,N){if(!N)return E.indexOf(A);for(var z=0;z=A.minX&&E.maxY>=A.minY}function P(A){return{children:A,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function W(A,E,N,z,H){for(var re,L=[E,N];L.length;)(N=L.pop())-(E=L.pop())<=z||(re=E+Math.ceil((N-E)/z/2)*z,(0,Z.q)(A,re,E,N,H),L.push(E,re,re,N))}ae.prototype={all:function(){return this._all(this.data,[])},search:function(A){var E=this.data,N=[],z=this.toBBox;if(!j(A,E))return N;for(var H,re,L,J,te=[];E;){for(H=0,re=E.children.length;H=0&&re[E].children.length>this._maxEntries;)this._split(re,E),E--;this._adjustParentBBoxes(H,re,E)},_split:function(A,E){var N=A[E],z=N.children.length,H=this._minEntries;this._chooseSplitAxis(N,H,z);var re=this._chooseSplitIndex(N,H,z),L=P(N.children.splice(re,N.children.length-re));L.height=N.height,L.leaf=N.leaf,R(N,this.toBBox),R(L,this.toBBox),E?A[E-1].children.push(L):this._splitRoot(N,L)},_splitRoot:function(A,E){this.data=P([A,E]),this.data.height=A.height+1,this.data.leaf=!1,R(this.data,this.toBBox)},_chooseSplitIndex:function(A,E,N){var z,H,re,L,J,te,ue,he;for(te=ue=1/0,z=E;z<=N-E;z++)L=k(H=q(A,0,z,this.toBBox),re=q(A,z,N,this.toBBox)),J=se(H)+se(re),L=E;H--)re=A.children[H],$(te,A.leaf?L(re):re),ue+=ce(te);return ue},_adjustParentBBoxes:function(A,E,N){for(var z=N;z>=0;z--)$(E[z],A)},_condense:function(A){for(var E,N=A.length-1;N>=0;N--)0===A[N].children.length?N>0?(E=A[N-1].children).splice(E.indexOf(A[N]),1):this.clear():R(A[N],this.toBBox)},_initFormat:function(A){var E=["return a"," - b",";"];this.compareMinX=new Function("a","b",E.join(A[0])),this.compareMinY=new Function("a","b",E.join(A[1])),this.toBBox=new Function("a","return {minX: a"+A[0]+", minY: a"+A[1]+", maxX: a"+A[2]+", maxY: a"+A[3]+"};")}}},7547:(Ne,xe,O)=>{var Z,ae,X,R,q,$,Ie,Y,se,ce,V,k,w,j,P,W,A,E,N,z,H,re,L,J,te,ue,he,Ce,Ge,Te,Et,we,dt,rt,Mt,ct,gt,wt,Dt,He,ft,pt,We,Rt,qe,it,Ut,Bt,kt,nt,at,Je,Lt,_t,jt,ot,Qe,mt,yt,ut,Ot,S;O.d(xe,{$y:()=>re,AH:()=>ae,CS:()=>Ut,DD:()=>Y,Dd:()=>Ge,Em:()=>H,JS:()=>qe,Ky:()=>se,Lh:()=>Bt,Qb:()=>Qe,RL:()=>Z,RS:()=>yt,TF:()=>z,Tx:()=>q,UR:()=>A,UX:()=>ot,bj:()=>it,eZ:()=>Ie,id:()=>te,kP:()=>ct,r4:()=>He,sj:()=>gt,v2:()=>X,zQ:()=>Ce,zV:()=>W}),(S=Z||(Z={}))[S.BUTT=0]="BUTT",S[S.ROUND=1]="ROUND",S[S.SQUARE=2]="SQUARE",S[S.UNKNOWN=4]="UNKNOWN",function(S){S[S.BEVEL=0]="BEVEL",S[S.ROUND=1]="ROUND",S[S.MITER=2]="MITER",S[S.UNKNOWN=4]="UNKNOWN"}(ae||(ae={})),function(S){S[S.SCREEN=0]="SCREEN",S[S.MAP=1]="MAP"}(X||(X={})),function(S){S[S.Tint=0]="Tint",S[S.Ignore=1]="Ignore",S[S.Multiply=99]="Multiply"}(R||(R={})),function(S){S.Both="Both",S.JustBegin="JustBegin",S.JustEnd="JustEnd",S.None="None"}(q||(q={})),function(S){S[S.Mosaic=0]="Mosaic",S[S.Centered=1]="Centered"}($||($={})),function(S){S[S.Normal=0]="Normal",S[S.Superscript=1]="Superscript",S[S.Subscript=2]="Subscript"}(Ie||(Ie={})),function(S){S[S.MSSymbol=0]="MSSymbol",S[S.Unicode=1]="Unicode"}(Y||(Y={})),function(S){S[S.Unspecified=0]="Unspecified",S[S.TrueType=1]="TrueType",S[S.PSOpenType=2]="PSOpenType",S[S.TTOpenType=3]="TTOpenType",S[S.Type1=4]="Type1"}(se||(se={})),function(S){S[S.Display=0]="Display",S[S.Map=1]="Map"}(ce||(ce={})),function(S){S.None="None",S.Loop="Loop",S.Oscillate="Oscillate"}(V||(V={})),function(S){S[S.Z=0]="Z",S[S.X=1]="X",S[S.Y=2]="Y"}(k||(k={})),function(S){S[S.XYZ=0]="XYZ",S[S.ZXY=1]="ZXY",S[S.YXZ=2]="YXZ"}(w||(w={})),function(S){S[S.Rectangle=0]="Rectangle",S[S.RoundedRectangle=1]="RoundedRectangle",S[S.Oval=2]="Oval"}(j||(j={})),function(S){S[S.None=0]="None",S[S.Alpha=1]="Alpha",S[S.Screen=2]="Screen",S[S.Multiply=3]="Multiply",S[S.Add=4]="Add"}(P||(P={})),function(S){S[S.TTB=0]="TTB",S[S.RTL=1]="RTL",S[S.BTT=2]="BTT"}(W||(W={})),function(S){S[S.None=0]="None",S[S.SignPost=1]="SignPost",S[S.FaceNearPlane=2]="FaceNearPlane"}(A||(A={})),function(S){S[S.Float=0]="Float",S[S.String=1]="String",S[S.Boolean=2]="Boolean"}(E||(E={})),function(S){S[S.Intersect=0]="Intersect",S[S.Subtract=1]="Subtract"}(N||(N={})),function(S){S.OpenEnded="OpenEnded",S.Block="Block",S.Crossed="Crossed"}(z||(z={})),function(S){S.FullGeometry="FullGeometry",S.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment",S.ReversedFirstSegment="ReversedFirstSegment",S.PerpendicularToSecondSegment="PerpendicularToSecondSegment",S.SecondSegmentWithTicks="SecondSegmentWithTicks",S.DoublePerpendicular="DoublePerpendicular",S.OppositeToFirstSegment="OppositeToFirstSegment",S.TriplePerpendicular="TriplePerpendicular",S.HalfCircleFirstSegment="HalfCircleFirstSegment",S.HalfCircleSecondSegment="HalfCircleSecondSegment",S.HalfCircleExtended="HalfCircleExtended",S.OpenCircle="OpenCircle",S.CoverageEdgesWithTicks="CoverageEdgesWithTicks",S.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks",S.GapExtentMidline="GapExtentMidline",S.Chevron="Chevron",S.PerpendicularWithArc="PerpendicularWithArc",S.ClosedHalfCircle="ClosedHalfCircle",S.TripleParallelExtended="TripleParallelExtended",S.ParallelWithTicks="ParallelWithTicks",S.Parallel="Parallel",S.PerpendicularToFirstSegment="PerpendicularToFirstSegment",S.ParallelOffset="ParallelOffset",S.OffsetOpposite="OffsetOpposite",S.OffsetSame="OffsetSame",S.CircleWithArc="CircleWithArc",S.DoubleJog="DoubleJog",S.PerpendicularOffset="PerpendicularOffset",S.LineExcludingLastSegment="LineExcludingLastSegment",S.MultivertexArrow="MultivertexArrow",S.CrossedArrow="CrossedArrow",S.ChevronArrow="ChevronArrow",S.ChevronArrowOffset="ChevronArrowOffset",S.PartialFirstSegment="PartialFirstSegment",S.Arch="Arch",S.CurvedParallelTicks="CurvedParallelTicks",S.Arc90Degrees="Arc90Degrees"}(H||(H={})),function(S){S.Mitered="Mitered",S.Bevelled="Bevelled",S.Rounded="Rounded",S.Square="Square",S.TrueBuffer="TrueBuffer"}(re||(re={})),function(S){S.ClosePath="ClosePath",S.ConvexHull="ConvexHull",S.RectangularBox="RectangularBox"}(L||(L={})),function(S){S.BeginningOfLine="BeginningOfLine",S.EndOfLine="EndOfLine"}(J||(J={})),function(S){S.Mitered="Mitered",S.Bevelled="Bevelled",S.Rounded="Rounded",S.Square="Square"}(te||(te={})),function(S){S.Fast="Fast",S.Accurate="Accurate"}(ue||(ue={})),function(S){S.BeginningOfLine="BeginningOfLine",S.EndOfLine="EndOfLine"}(he||(he={})),function(S){S.Sinus="Sinus",S.Square="Square",S.Triangle="Triangle",S.Random="Random"}(Ce||(Ce={})),function(S){S[S.None=0]="None",S[S.Default=1]="Default",S[S.Force=2]="Force"}(Ge||(Ge={})),function(S){S[S.Buffered=0]="Buffered",S[S.Left=1]="Left",S[S.Right=2]="Right",S[S.AlongLine=3]="AlongLine"}(Te||(Te={})),function(S){S[S.Linear=0]="Linear",S[S.Rectangular=1]="Rectangular",S[S.Circular=2]="Circular",S[S.Buffered=3]="Buffered"}(Et||(Et={})),function(S){S[S.Discrete=0]="Discrete",S[S.Continuous=1]="Continuous"}(we||(we={})),function(S){S[S.AcrossLine=0]="AcrossLine",S[S.AloneLine=1]="AloneLine"}(dt||(dt={})),function(S){S[S.Left=0]="Left",S[S.Right=1]="Right",S[S.Center=2]="Center",S[S.Justify=3]="Justify"}(rt||(rt={})),function(S){S[S.Base=0]="Base",S[S.MidPoint=1]="MidPoint",S[S.ThreePoint=2]="ThreePoint",S[S.FourPoint=3]="FourPoint",S[S.Underline=4]="Underline",S[S.CircularCW=5]="CircularCW",S[S.CircularCCW=6]="CircularCCW"}(Mt||(Mt={})),function(S){S.Butt="Butt",S.Round="Round",S.Square="Square"}(ct||(ct={})),function(S){S.NoConstraint="NoConstraint",S.HalfPattern="HalfPattern",S.HalfGap="HalfGap",S.FullPattern="FullPattern",S.FullGap="FullGap",S.Custom="Custom"}(gt||(gt={})),function(S){S[S.None=-1]="None",S[S.Custom=0]="Custom",S[S.Circle=1]="Circle",S[S.OpenArrow=2]="OpenArrow",S[S.ClosedArrow=3]="ClosedArrow",S[S.Diamond=4]="Diamond"}(wt||(wt={})),function(S){S[S.ExtraLeading=0]="ExtraLeading",S[S.Multiple=1]="Multiple",S[S.Exact=2]="Exact"}(Dt||(Dt={})),function(S){S.Bevel="Bevel",S.Round="Round",S.Miter="Miter"}(He||(He={})),function(S){S[S.Default=0]="Default",S[S.String=1]="String",S[S.Numeric=2]="Numeric"}(ft||(ft={})),function(S){S[S.InsidePolygon=0]="InsidePolygon",S[S.PolygonCenter=1]="PolygonCenter",S[S.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"}(pt||(pt={})),function(S){S[S.Tint=0]="Tint",S[S.Replace=1]="Replace",S[S.Multiply=2]="Multiply"}(We||(We={})),function(S){S[S.ClipAtBoundary=0]="ClipAtBoundary",S[S.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary",S[S.DoNotTouchBoundary=2]="DoNotTouchBoundary",S[S.DoNotClip=3]="DoNotClip"}(Rt||(Rt={})),function(S){S.NoConstraint="NoConstraint",S.WithMarkers="WithMarkers",S.WithFullGap="WithFullGap",S.WithHalfGap="WithHalfGap",S.Custom="Custom"}(qe||(qe={})),function(S){S.Fixed="Fixed",S.Random="Random",S.RandomFixedQuantity="RandomFixedQuantity"}(it||(it={})),function(S){S.LineMiddle="LineMiddle",S.LineBeginning="LineBeginning",S.LineEnd="LineEnd",S.SegmentMidpoint="SegmentMidpoint"}(Ut||(Ut={})),function(S){S.OnPolygon="OnPolygon",S.CenterOfMass="CenterOfMass",S.BoundingBoxCenter="BoundingBoxCenter"}(Bt||(Bt={})),function(S){S[S.Low=0]="Low",S[S.Medium=1]="Medium",S[S.High=2]="High"}(kt||(kt={})),function(S){S[S.MarkerCenter=0]="MarkerCenter",S[S.MarkerBounds=1]="MarkerBounds"}(nt||(nt={})),function(S){S[S.None=0]="None",S[S.PropUniform=1]="PropUniform",S[S.PropNonuniform=2]="PropNonuniform",S[S.DifUniform=3]="DifUniform",S[S.DifNonuniform=4]="DifNonuniform"}(at||(at={})),function(S){S.Tube="Tube",S.Strip="Strip",S.Wall="Wall"}(Je||(Je={})),function(S){S[S.Random=0]="Random",S[S.Increasing=1]="Increasing",S[S.Decreasing=2]="Decreasing",S[S.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"}(Lt||(Lt={})),function(S){S[S.Relative=0]="Relative",S[S.Absolute=1]="Absolute"}(_t||(_t={})),function(S){S[S.Normal=0]="Normal",S[S.LowerCase=1]="LowerCase",S[S.Allcaps=2]="Allcaps"}(jt||(jt={})),function(S){S[S.LTR=0]="LTR",S[S.RTL=1]="RTL"}(ot||(ot={})),function(S){S.Draft="Draft",S.Picture="Picture",S.Text="Text"}(Qe||(Qe={})),function(S){S[S.Top=0]="Top",S[S.Center=1]="Center",S[S.Baseline=2]="Baseline",S[S.Bottom=3]="Bottom"}(mt||(mt={})),function(S){S[S.Right=0]="Right",S[S.Upright=1]="Upright"}(yt||(yt={})),function(S){S[S.Small=0]="Small",S[S.Medium=1]="Medium",S[S.Large=2]="Large"}(ut||(ut={})),function(S){S[S.Calm=0]="Calm",S[S.Rippled=1]="Rippled",S[S.Slight=2]="Slight",S[S.Moderate=3]="Moderate"}(Ot||(Ot={}))},99666:(Ne,xe,O)=>{O.d(xe,{KS:()=>se,PX:()=>q,QS:()=>V,_I:()=>Z,jL:()=>Y,nE:()=>ce,vs:()=>Ie,xp:()=>$});const Z=8388607,q=0,$=1,Ie=k=>(8388608&k)>>>23,Y=k=>k&Z,se=k=>Ie(k)===$?254:255;function ce(k){return Ie(k)===$}function V(k,w){return((w?8388608:0)|k)>>>0}},64288:(Ne,xe,O)=>{O.d(xe,{ws:()=>qe,xV:()=>it,UK:()=>ot,$_:()=>we});var Z=O(26584),ae=O(63290),R=(O(21286),O(7547)),$=(O(81295),O(39406)),Ie=O(27899);class Y{constructor(){this.color=[0,0,0,0],this.haloColor=[0,0,0,0],this.haloSize=0,this.size=12,this.angle=0,this.offsetX=0,this.offsetY=0,this.hAnchor=0,this.vAnchor=0}acquire(fe,ye,be,Le,De,Ke,$t,ke,It){this.color=fe,this.haloColor=ye,this.haloSize=be,this.size=Le,this.angle=De,this.offsetX=Ke,this.offsetY=$t,this.hAnchor=ke,this.vAnchor=It}release(){this.color[0]=this.color[1]=this.color[2]=this.color[3]=0,this.haloColor[0]=this.haloColor[1]=this.haloColor[2]=this.haloColor[3]=0,this.haloSize=0,this.size=0,this.angle=0,this.offsetX=0,this.offsetY=0,this.hAnchor=0,this.vAnchor=0}}Y.pool=new Ie.Z(Y);var se=O(67969);O(55086);const V=ae.Z.getLogger("esri.views.2d.engine.webgl.Utils"),k="geometry",W=[{name:k,strideInBytes:12}],A=[{name:k,strideInBytes:36}],E=[{name:k,strideInBytes:24}],N=[{name:k,strideInBytes:12}],z=[{name:k,strideInBytes:40}],H=[{name:k,strideInBytes:36}],re=[{name:k,strideInBytes:36}];function L(B){const fe={};for(const ye of B)fe[ye.name]=ye.strideInBytes;return fe}const J=L([{name:k,strideInBytes:36}]),te=L(W),ue=L(A),he=L(E),Ce=L(N),Ge=L(z),Te=L(H),Et=L(re);function we(B,fe){switch(B){case $.LW.MARKER:return fe===$.mD.HEATMAP?te:J;case $.LW.FILL:switch(fe){case $.mD.DOT_DENSITY:return Ce;case $.mD.SIMPLE:case $.mD.OUTLINE_FILL_SIMPLE:return he;default:return ue}case $.LW.LINE:return Ge;case $.LW.TEXT:return Te;case $.LW.LABEL:return Et}}function qe(B){switch(B){case"butt":return R.RL.BUTT;case"round":return R.RL.ROUND;case"square":return R.RL.SQUARE;default:return V.error(new Z.Z("mapview-invalid-type",`Cap type ${B} is not a valid option. Defaulting to round`)),R.RL.ROUND}}function it(B){switch(B){case"miter":return R.AH.MITER;case"bevel":return R.AH.BEVEL;case"round":return R.AH.ROUND;default:return V.error(new Z.Z("mapview-invalid-type",`Join type ${B} is not a valid option. Defaulting to round`)),R.AH.ROUND}}function ot(B){switch(B){case se.Br.UNSIGNED_BYTE:return Uint8Array;case se.Br.UNSIGNED_SHORT_4_4_4_4:return Uint16Array;case se.Br.FLOAT:return Float32Array;default:return void V.error(new Z.Z("webgl-utils",`Unable to handle type ${B}`))}}},81295:(Ne,xe,O)=>{O.d(xe,{aH:()=>se,t2:()=>Y});var Z=O(5254);function Y(V){if(!V)return 0;const{r:k,g:w,b:j,a:P}=V;return(0,Z.Jz)(k*P,w*P,j*P,255*P)}function se(V){if(!V)return 0;const[k,w,j,P]=V;return(0,Z.Jz)(k*(P/255),w*(P/255),j*(P/255),P)}},39351:(Ne,xe,O)=>{O.d(xe,{AI:()=>X,C1:()=>S,CQ:()=>ze,CU:()=>Lt,Ex:()=>H,I_:()=>$,Ip:()=>mt,Iv:()=>Wt,Iw:()=>re,MI:()=>Ot,SD:()=>Jt,Tz:()=>rs,Uh:()=>Pt,V4:()=>Je,XJ:()=>Qe,_6:()=>is,a:()=>_t,aK:()=>pt,e0:()=>Me,fL:()=>ot,jk:()=>Qt,m4:()=>qe,oK:()=>Nt,pU:()=>ft,ru:()=>q,tQ:()=>nt,uG:()=>it,xl:()=>He,xm:()=>w});const X=1e-30,q=4294967295,$=512,w=29,H=24,re=8,He=1,ft=2,pt=3,qe=2,it=1,nt=1.05,Je=5,Lt=6,_t=1.15,ot=2,Qe=8,mt=500,Ot=10,S=1024,Pt=2,ze=0,rs=1,Nt=4,Me=8,Wt=16,is=4,Jt=1,Qt=4},5254:(Ne,xe,O)=>{O.d(xe,{Au:()=>k,Jz:()=>P,UJ:()=>j});const Z=new Float32Array(1);function k(E){return[255&E,(65280&E)>>>8,(16711680&E)>>>16,(4278190080&E)>>>24]}function j(E,N){return 65535&E|N<<16}function P(E,N,z,H){return 255&E|(255&N)<<8|(255&z)<<16|H<<24}new Uint32Array(Z.buffer)},55746:(Ne,xe,O)=>{O.d(xe,{k:()=>k,p:()=>w});var Z=O(65389),ae=O(61885),R=(O(8314),O(62208)),q=O(76279),$=O(5548),Ie=O(16669),Y=O(52397);function se(j,P){return j<<16|P}function ce(j){return(4294901760&j)>>>16}function V(j){return 65535&j}const k={getObjectId:j=>j.getObjectId(),getAttributes:j=>j.readAttributes(),getAttribute:(j,P)=>j.readAttribute(P),cloneWithGeometry:(j,P)=>j,getGeometry:j=>j.readHydratedGeometry(),getCentroid:(j,P)=>j.readCentroid()};class w extends Ie.J{constructor(P,W,A){super(P,W),this.featureAdapter=k,this.events=new ae.Z,this._featureSetsByInstance=new Map,this._objectIdToDisplayId=new Map,this._spatialIndexInvalid=!0,this._indexSearchCache=new Z.Z(50),this._index=(0,q.r)(9,E=>({minX:this._storage.getXMin(E),minY:this._storage.getYMin(E),maxX:this._storage.getXMax(E),maxY:this._storage.getYMax(E)})),this.mode=A}get storeStatistics(){let P=0,W=0,A=0;return this.forEach(E=>{const N=E.readGeometry();N&&(W+=N.isPoint?1:N.lengths.reduce((z,H)=>z+H,0),A+=N.isPoint?1:N.lengths.length,P+=1)}),{featureCount:P,vertexCount:W,ringCount:A}}hasInstance(P){return this._featureSetsByInstance.has(P)}onTileData(P,W){if((0,R.Wi)(W.addOrUpdate))return W;if(W.addOrUpdate.attachStorage(this._storage),"snapshot"===this.mode){const E=W.addOrUpdate.getCursor();for(;E.next();){const N=E.getDisplayId();this.setComputedAttributes(this._storage,E,N,P.scale)}return W}this._featureSetsByInstance.set(W.addOrUpdate.instance,W.addOrUpdate);const A=W.addOrUpdate.getCursor();for(;A.next();)this._insertFeature(A,P.scale);return this._spatialIndexInvalid=!0,this.events.emit("changed"),W}search(P){this._rebuildIndex();const W=P.id,A=this._indexSearchCache.find(H=>H.tileId===W);if((0,R.pC)(A))return A.readers;const E=new Map,N=this._searchIndex(P.bounds),z=[];for(const H of N){const re=this._storage.getInstanceId(H),L=ce(re),J=V(re);E.has(L)||E.set(L,[]),E.get(L).push(J)}return E.forEach((H,re)=>{const L=this._featureSetsByInstance.get(re);z.push(Y.t.from(L,H))}),this._indexSearchCache.enqueue({tileId:W,readers:z}),z}insert(P){const W=P.getCursor(),A=this._storage;for(;W.next();){const E=se(W.instance,W.getIndex()),N=W.getObjectId(),z=this._objectIdToDisplayId.get(N)??this._storage.createDisplayId();W.setDisplayId(z),A.setInstanceId(z,E),this._objectIdToDisplayId.set(N,z)}this._featureSetsByInstance.set(P.instance,P),this._spatialIndexInvalid=!0}remove(P){const W=this._objectIdToDisplayId.get(P);if(!W)return;const A=this._storage.getInstanceId(W),E=V(A),N=ce(A),z=this._featureSetsByInstance.get(N);this._objectIdToDisplayId.delete(P),this._storage.releaseDisplayId(W),z.removeAtIndex(E),z.isEmpty&&this._featureSetsByInstance.delete(N),this._spatialIndexInvalid=!0}toArray(){const P=new Array;return this.forEach(W=>P.push(W)),P}forEach(P){this._objectIdToDisplayId.forEach(W=>{const A=this._storage.getInstanceId(W),E=this._lookupFeature(A);P(E)})}forEachUnsafe(P){this._objectIdToDisplayId.forEach(W=>{const A=this._storage.getInstanceId(W),E=ce(A),N=V(A),z=this._getFeatureSet(E);z.setIndex(N),P(z)})}forEachInBounds(P,W){const A=this._searchIndex(P);for(const E of A){const N=this.lookupFeatureByDisplayId(E,this._storage);W((0,R.Wg)(N))}}forEachBounds(P,W,A){this._rebuildIndex();const E=[0,0,0,0];for(const N of P){if(!N.readGeometry())continue;const z=N.getDisplayId();E[0]=this._storage.getXMin(z),E[1]=this._storage.getYMin(z),E[2]=this._storage.getXMax(z),E[3]=this._storage.getYMax(z),W((0,$.JR)(A,E))}}sweepFeatures(P,W,A){this._spatialIndexInvalid=!0,this._objectIdToDisplayId.forEach((E,N)=>{P.has(E)||(W.releaseDisplayId(E),A&&A.unsetAttributeData(E),this._objectIdToDisplayId.delete(N))}),this.events.emit("changed")}sweepFeatureSets(P){this._spatialIndexInvalid=!0,this._featureSetsByInstance.forEach((W,A)=>{P.has(A)||this._featureSetsByInstance.delete(A)})}lookupObjectId(P,W){const A=this.lookupFeatureByDisplayId(P,W);return(0,R.Wi)(A)?null:A.getObjectId()}lookupDisplayId(P){return this._objectIdToDisplayId.get(P)}lookupFeatureByDisplayId(P,W){const A=W.getInstanceId(P);return this._lookupFeature(A)}lookupByDisplayIdUnsafe(P){const W=this._storage.getInstanceId(P),A=ce(W),E=V(W),N=this._getFeatureSet(A);return N?(N.setIndex(E),N):null}_insertFeature(P,W){const A=this._storage,E=P.getObjectId(),N=se(P.instance,P.getIndex());A.getInstanceId(P.getDisplayId());let z=this._objectIdToDisplayId.get(E);z||(z=A.createDisplayId(),this._objectIdToDisplayId.set(E,z),this._spatialIndexInvalid=!0),P.setDisplayId(z),A.setInstanceId(z,N),this.setComputedAttributes(A,P,z,W)}_searchIndex(P){return this._rebuildIndex(),this._index.search({minX:P[0],minY:P[1],maxX:P[2],maxY:P[3]})}_rebuildIndex(){if(!this._spatialIndexInvalid)return;const P=[];"snapshot"===this.mode?this._featureSetsByInstance.forEach(W=>{const A=W.getCursor();for(;A.next();){const E=A.getDisplayId();this._storage.setBounds(E,A)&&P.push(E)}}):this._objectIdToDisplayId.forEach(W=>{const A=this._storage.getInstanceId(W);this._storage.setBounds(W,this._lookupFeature(A))&&P.push(W)}),this._index.clear(),this._index.load(P),this._indexSearchCache.clear(),this._spatialIndexInvalid=!1}_lookupFeature(P){const W=ce(P),A=this._getFeatureSet(W);if(!A)return null;const E=A.getCursor(),N=V(P);return E.setIndex(N),E}_getFeatureSet(P){return this._featureSetsByInstance.get(P)}}},11288:(Ne,xe,O)=>{O.r(xe),O.d(xe,{default:()=>Rr});var Z=O(15861),ae=O(17626),X=O(80542),R=O(8314),q=O(32917),$=O(77712),se=(O(85931),O(90912),O(76898)),ce=O(37053),V=O(2584),w=O(62208),j=O(10699),P=O(82054),W=O(58175),A=O(60466),E=O(55746),N=O(38305),z=O(84792),H=O(26584),re=O(63290),L=O(93662),J=O(7848),te=O(89628),ue=O(20477),he=O(66385),Ce=O(25208);class Te extends Ce.s{constructor(a,c,_){super(a,_),this._exceededTransferLimit=!1,this._featureIndex=-1,this._dateFields=new Set,this._geometryType=_?.geometryType,this._features=c}static fromFeatures(a,c){const{objectIdField:_,geometryType:m}=c,x=(0,P.Yn)([],a,m,!1,!1,_);for(let b=0;b!(_.objectId&&c.has(_.objectId)))}append(a){for(const c of a)this._features.push(c)}getSize(){return this._features.length}getCursor(){return this.copy()}getQuantizationTransform(){return this._transform}getAttributeHash(){let a="";for(const c in this._current.attributes)a+=this._current.attributes[c];return a}getIndex(){return this._featureIndex}setIndex(a){this._featureIndex=a}getObjectId(){return this._current.objectId}getDisplayId(){return this._current.displayId}setDisplayId(a){this._current.displayId=a}getGroupId(){return this._current.groupId}setGroupId(a){this._current.groupId=a}copy(){const a=new Te(this.instance,this._features,this.fullSchema());return this.copyInto(a),a}next(){for(;++this._featureIndexc.toLowerCase()).includes(a.toLowerCase())}getFieldNames(){return Object.keys(this._current.attributes)}_readAttribute(a,c){const _=this._current.attributes[a];if(void 0!==_)return null!=_&&c&&this._dateFields.has(a)?new Date(_):_;const m=this.readAttributes(),x=a.toLocaleLowerCase().trim();for(const b in m)if(b.toLocaleLowerCase().trim()===x){const C=this._current.attributes[b];return null!=C&&c&&this._dateFields.has(b)?new Date(C):C}}copyInto(a){super.copyInto(a),a._featureIndex=this._featureIndex,a._transform=this._transform,a._dateFields=this._dateFields}_readAttributes(){return this._current.attributes}}var Et=O(24192),we=O(88071),dt=O(71260);const rt=268435455;class Mt{constructor(){this.fieldMap=new Map,this.fields=[],this.hasFeatures=!1,this.exceededTransferLimit=!1,this.fieldCount=0,this.featureCount=0,this.objectIdFieldIndex=0,this.vertexCount=0,this.offsets={attributes:new Array,geometry:new Array},this.centroid=new Array}hasField(a){return this.fieldMap.has(a)}isDateField(a){return this.fieldMap.get(a)?.isDate??!1}getFieldIndex(a){return this.fieldMap.get(a)?.index}}function ct(v){const _=v.asUnsafe(),m=_.getLength(),x=_.pos()+m,b={name:"",isDate:!1};for(;_.pos()0}class at extends Ce.s{constructor(a,c,_,m){super(a,m),this._hasNext=!1,this._isPoints=!1,this._featureIndex=-1,this._featureOffset=0,this._cache={area:0,unquantGeometry:void 0,geometry:void 0,centroid:void 0,legacyFeature:void 0,optFeature:void 0},this._geometryType=m.geometryType,this._reader=c,this._header=_,this._hasNext=_.hasFeatures,this._isPoints="esriGeometryPoint"===m.geometryType}static fromBuffer(a,c,_=!1){const m=c.geometryType,x=function it(v){try{const c=new Et.Z(new Uint8Array(v),new DataView(v));for(;c.next();){if(2===c.tag())return Ut(c.getMessage());c.skip()}}catch(a){const c=new H.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:a});re.Z.getLogger("esri.view.2d.layers.features.support.FeatureSetReaderPBF").error(c)}return null}(a),b=function wt(v,a,c=!1){const F=v.asUnsafe(),U=F.pos(),D=new Mt;let G=0,Q=0,ne=null,de=null,oe=null,ge=!1;for(;F.next();)switch(F.tag()){case 1:ne=F.getString();break;case 3:de=F.getString();break;case 12:oe=F.processMessage(dt.G$);break;case 9:if(D.exceededTransferLimit=F.getBool(),D.exceededTransferLimit){D.offsets.geometry=c?new Float64Array(8e3):new Int32Array(8e3),D.centroid=c?new Float64Array(16e3):new Int32Array(16e3);for(let pe=0;pea.fieldName)}getSize(){return this._size}getQuantizationTransform(){return this._header.transform}getCursor(){return this.copy()}getIndex(){return this._featureIndex}setIndex(a){this._cache.area=0,this._cache.unquantGeometry=void 0,this._cache.geometry=void 0,this._cache.centroid=void 0,this._cache.legacyFeature=void 0,this._cache.optFeature=void 0,this._featureIndex=a}getAttributeHash(){let a="";return this._header.fields.forEach(({index:c})=>{a+=this._readAttributeAtIndex(c)+"."}),a}getObjectId(){return this._readAttributeAtIndex(this._header.objectIdFieldIndex)}getDisplayId(){return this._header.displayIds[this._featureIndex]}setDisplayId(a){this._header.displayIds[this._featureIndex]=a}getGroupId(){return this._header.groupIds[this._featureIndex]}setGroupId(a){this._header.groupIds[this._featureIndex]=a}readLegacyFeature(){if(void 0===this._cache.legacyFeature){const a=this.readCentroid(),c={attributes:this.readAttributes(),geometry:this._isPoints?this.readLegacyPointGeometry():this.readLegacyGeometry(),centroid:(a&&{x:a.coords[0],y:a.coords[1]})??null};return this._cache.legacyFeature=c,c}return this._cache.legacyFeature}readOptimizedFeature(){if(void 0===this._cache.optFeature){const a=new he.u_(this.readGeometry(),this.readAttributes(),this.readCentroid());return a.objectId=this.getObjectId(),a.displayId=this.getDisplayId(),this._cache.optFeature=a,a}return this._cache.optFeature}getXHydrated(){const a=this._header.centroid[2*this._featureIndex],c=this.getQuantizationTransform();return(0,w.Wi)(c)?a:a*c.scale[0]+c.translate[0]}getYHydrated(){const a=this._header.centroid[2*this._featureIndex+1],c=this.getQuantizationTransform();return(0,w.Wi)(c)?a:c.translate[1]-a*c.scale[1]}getX(){return this._header.centroid[2*this._featureIndex]*this._sx+this._tx}getY(){return this._header.centroid[2*this._featureIndex+1]*this._sy+this._ty}readLegacyPointGeometry(){return{x:this.getX(),y:this.getY()}}readLegacyGeometry(a){const c=this.readGeometry(a);return(0,P.di)(c,this.geometryType,!1,!1)}readLegacyCentroid(){const a=this.readCentroid();if(!a)return null;const[c,_]=a.coords;return{x:c,y:_}}readGeometryArea(){return this._cache.area||this.readGeometry(!0),this._cache.area}readUnquantizedGeometry(a=!1){if(void 0===this._cache.unquantGeometry){const c=this.readGeometry(a);if(!c)return this._cache.unquantGeometry=void 0,null;const _=Rt(c.coords.length).decoded,m=c.clone(_),x=m.coords;let b=0;for(const C of m.lengths){for(let M=1;M{a[c]=this._readAttributeAtIndex(_)}),a}copyInto(a){super.copyInto(a),a._featureIndex=this._featureIndex,a._featureOffset=this._featureOffset,a._hasNext=this._hasNext}_readAttributeAtIndex(a){const _=this._reader;return _.move(this._header.offsets.attributes[this._featureIndex*this._header.fieldCount+a]),function Bt(v){const U=v.getLength(),D=v.pos()+U;for(;v.pos()D.length)for(let ie=0;ie=ie?(G+=-.5*(_e-oe)*(Se+ge),ne>1&&nt(D[U-2],D[U-1],me,pe)?(D[U-2]+=me,D[U-1]+=pe):(D[U++]=me,D[U++]=pe,ne++),oe=_e,ge=Se):(Ae+=me,Ee+=pe),me=Ae,pe=Ee,le++}ne<3||de?U-=2*ne:(G+=-.5*(oe+me-oe)*(ge+pe+ge),nt(D[U-2],D[U-1],me,pe)?(D[U-2]+=me,D[U-1]+=pe,M.push(ne)):(D[U++]=me,D[U++]=pe,M.push(++ne)))}else{let ie=0,le=m.getSInt32(),ne=m.getSInt32();this.hasZ&&m.getSInt32(),this.hasM&&m.getSInt32(),D[U++]=le,D[U++]=ne,ie+=1;for(let de=1;de2&&nt(D[U-2],D[U-1],oe,ge)?(D[U-2]+=oe,D[U-1]+=ge):(D[U++]=oe,D[U++]=ge,ie+=1),le=me,ne=pe}M.push(ie)}break}default:m.skip()}if(this._cache.area=G,!M.length)return null;if(this._tx||this._ty){let ee=0;(0,w.O3)(D);for(const K of M)D[2*ee]+=this._tx,D[2*ee+1]+=this._ty,ee+=K}return new we.Z(M,D)}}class Je{constructor(a){this.service=a}destroy(){}}function Qe(){return(Qe=(0,Z.Z)(function*(v){const a=new L.Z;return yield a.open(v,{}),a})).apply(this,arguments)}class mt extends Je{constructor(a){super(a),this._portsOpen=function ot(v){return Qe.apply(this,arguments)}(a.source).then(c=>this.client=c)}destroy(){this.client.close(),this.client=null}executeQuery(a,c){var _=this;return(0,Z.Z)(function*(){yield _._portsOpen;const m=yield _.client.invoke("queryFeatures",a.toJSON(),c);return Te.fromFeatureSet(m,_.service)})()}}class yt extends Je{executeQuery(a,c){var _=this;return(0,Z.Z)(function*(){const{data:m}=yield(0,ue.executeQueryPBFBuffer)(_.service.source,a,c);return at.fromBuffer(m,_.service,!a.quantizationParameters)})()}}class ut extends Je{executeQuery(a,c){var _=this;return(0,Z.Z)(function*(){const{source:m,capabilities:x,spatialReference:b,objectIdField:C,geometryType:M}=_.service;if((0,w.pC)(a.quantizationParameters)&&!x.query.supportsQuantization){const U=a.clone(),D=(0,J.vY)((0,w.Wg)(U.quantizationParameters));U.quantizationParameters=null;const{data:G}=yield(0,ue.executeQuery)(m,U,b,c),Q=(0,P.h_)(G,C);return(0,P.RZ)(D,Q),Te.fromOptimizedFeatureSet(Q,_.service)}const{data:F}=yield(0,ue.executeQuery)(m,a,_.service.spatialReference,c);return"esriGeometryPoint"===M&&(F.features=F.features?.filter(U=>{if((0,w.pC)(U.geometry)){const D=U.geometry;return Number.isFinite(D.x)&&Number.isFinite(D.y)}return!0})),Te.fromFeatureSet(F,_.service)})()}}class Ot extends Je{executeQuery(a,c){var _=this;return(0,Z.Z)(function*(){const{capabilities:m}=_.service;if(a.quantizationParameters&&!m.query.supportsQuantization){const b=a.clone(),C=(0,J.vY)((0,w.Wg)(b.quantizationParameters));b.quantizationParameters=null;const M=yield(0,te.WW)(_.service.source,a,c);return(0,P.RZ)(C,M),Te.fromOptimizedFeatureSet(M,_.service)}const x=yield(0,te.WW)(_.service.source,a,c);return Te.fromOptimizedFeatureSet(x,_.service)})()}}var S=O(97478),Pt=O(61885),ze=O(84682),rs=O(96854),Nt=O(65389);class Me{constructor(){this.version=0,this.source=!1,this.targets={feature:!1,aggregate:!1},this.storage={filters:!1,data:!1},this.mesh=!1,this.queryFilter=!1,this.why={mesh:[],source:[]}}static create(a){const c=new Me;for(const _ in a){const m=a[_];if("object"==typeof m)for(const x in m)c[_][x]=m[x];c[_]=m}return c}static empty(){return Me.create({})}static all(){return Me.create({source:!0,targets:{feature:!0,aggregate:!0},storage:{filters:!0,data:!0},mesh:!0})}unset(a){this.version=a.version,a.source&&(this.source=!1),a.targets.feature&&(this.targets.feature=!1),a.targets.aggregate&&(this.targets.aggregate=!1),a.storage.filters&&(this.storage.filters=!1),a.storage.data&&(this.storage.data=!1),a.mesh&&(this.mesh=!1),a.queryFilter&&(this.queryFilter=!1)}any(){return this.source||this.mesh||this.storage.filters||this.storage.data||this.targets.feature||this.targets.aggregate||this.queryFilter}describe(){let a=0,c="";if(this.mesh){a+=20,c+="-> (20) Mesh needs update\n";for(const m of this.why.mesh)c+=` + ${m}\n`}if(this.source){a+=10,c+="-> (10) The source needs update\n";for(const m of this.why.source)c+=` + ${m}\n`}this.targets.feature&&(a+=5,c+="-> (5) Feature target parameters changed\n"),this.storage.filters&&(a+=5,c+="-> (5) Feature filter parameters changed\n"),this.targets.aggregate&&(a+=4,c+="-> (4) Aggregate target parameters changed\n"),this.storage.data&&(a+=1,c+="-> (1) Texture storage parameters changed"),console.debug(`Applying ${a<5?"Fastest":a<10?"Fast":a<15?"Moderate":a<20?"Slow":"Very Slow"} update of cost ${a}/45 `),console.debug(c)}toJSON(){return{queryFilter:this.queryFilter,source:this.source,targets:this.targets,storage:this.storage,mesh:this.mesh}}}class Wt{constructor(a,c){this.requests={done:new Array,stream:new Nt.Z(10)},this._edits=null,this._abortController=new AbortController,this._version=0,this._done=!1,this.didSend=!1,this.tile=a,this._version=c}get signal(){return this._abortController.signal}get options(){return{signal:this._abortController.signal}}get empty(){return!this.requests.done.length}get edits(){return this._edits}get done(){return this._done}end(){this._done=!0}clear(){this.requests.done=[]}applyUpdate(a){this.requests.done.forEach(c=>c.message.status.unset(a)),this._version=a.version,(0,w.pC)(this._edits)&&this._edits.status.unset(a)}add(a){a.message.status=a.message.status??Me.empty(),a.message.status.version=this._version,(0,R.Z)("esri-2d-update-debug")&&console.debug(this.tile.id,"DataTileSubscription:add",this._version),a.message.end&&this.requests.done.forEach(c=>{(0,w.pC)(c.message)&&c.message.end&&(c.message.end=!1)}),this.requests.done.push(a)}edit(a,c){const _=a.getQuantizationTransform(),m=a.fullSchema(),x=Array.from(a.features()),b=[...c,...x.map(C=>C.objectId)];this.removeIds(b),this._invalidate(),(0,w.Wi)(this._edits)?this._edits={type:"append",addOrUpdate:Te.fromOptimizedFeatures(x,m,(0,w.Wg)(_)),id:this.tile.id,status:Me.empty(),end:!0}:(this.requests.done.forEach(C=>C.message.end=!1),(0,w.Wg)(this._edits.addOrUpdate).append(a.features()))}*readers(){for(const{message:a}of this.requests.done)(0,w.pC)(a.addOrUpdate)&&(yield a.addOrUpdate);(0,w.pC)(this._edits)&&(0,w.pC)(this._edits.addOrUpdate)&&(yield this._edits.addOrUpdate)}_invalidate(){for(const a of this.requests.done)a.message.status=Me.empty();(0,w.pC)(this._edits)&&(this._edits.status=Me.empty())}removeIds(a){this._invalidate();for(const{message:c}of this.requests.done){const _=c.addOrUpdate;(0,w.pC)(_)&&(_.removeIds(a),_.isEmpty&&(c.addOrUpdate=null))}(0,w.pC)(this._edits)&&(0,w.pC)(this._edits.addOrUpdate)&&this._edits.addOrUpdate.removeIds(a),this.requests.done=this.requests.done.filter(c=>c.message.addOrUpdate||c.message.end)}abort(){this._abortController.abort()}}class Jt{constructor(a){this.events=new Pt.Z,this._resolver=(0,j.hh)(),this._didEdit=!1,this._subscriptions=new Map,this._outSR=a.outSR,this._serviceInfo=a.serviceInfo,this._onTileUpdateMessage=a.onMessage}destroy(){}_onMessage(a){var c=this;return(0,Z.Z)(function*(){const _=c._subscriptions.get(a.id);if(!_)return;const m={...a,remove:a.remove??[],status:a.status??Me.empty()};return(0,j.R8)(c._onTileUpdateMessage(m,_.options))})()}update(a,c){const _=c.fields.length;c.outFields=function is(v,a){const c=new Set;return v&&v.forEach(_=>c.add(_)),a&&a.forEach(_=>c.add(_)),c.has("*")?["*"]:Array.from(c)}(this._schema?.outFields,c.outFields),c.outFields=c.outFields.length>=.75*_?["*"]:c.outFields,c.outFields.sort();const m=(0,ze.Hg)(this._schema,c);if(!m)return;(0,R.Z)("esri-2d-update-debug")&&console.debug("Applying Update - Source:",m);const b={returnCentroid:"esriGeometryPolygon"===this._serviceInfo.geometryType,returnGeometry:!0,timeReferenceUnknownClient:"stream"!==this._serviceInfo.type&&this._serviceInfo.timeReferenceUnknownClient,outFields:c.outFields,outSpatialReference:this._outSR,orderByFields:["orderByFields"in this._serviceInfo&&this._serviceInfo.orderByFields?this._serviceInfo.orderByFields:this._serviceInfo.objectIdField+" ASC"],where:c.definitionExpression||"1=1",gdbVersion:c.gdbVersion,historicMoment:c.historicMoment,timeExtent:S.Z.fromJSON(c.timeExtent)},C=this._schema&&(0,ze.uD)(m,"outFields");this._schema&&(0,ze.V7)(m,["timeExtent","definitionExpression","gdbVersion","historicMoment","customParameters"])&&(a.why.mesh.push("Layer filter and/or custom parameters changed"),a.why.source.push("Layer filter and/or custom parameters changed"),a.mesh=!0,a.source=!0,a.queryFilter=!0),C&&(a.why.source.push("Layer required fields changed"),a.source=!0),(0,ze.Hg)(b,this._queryInfo)&&(this._queryInfo=b),this._schema=c,this._resolver.resolve()}whenInitialized(){return this._resolver.promise}applyUpdate(a){var c=this;return(0,Z.Z)(function*(){if(a.queryFilter||a.source&&c._didEdit)return c.refresh(a.version),void(c._didEdit=!1);c._subscriptions.forEach(_=>_.applyUpdate(a)),yield c.resend()})()}refresh(a,c){for(const _ of this._tiles())this.unsubscribe(_),this.subscribe(_,a)}subscribe(a,c){const _=new Wt(a,c);this._subscriptions.set(a.id,_)}unsubscribe(a){const c=this.get(a.id);(0,w.pC)(c)&&c.abort(),this._subscriptions.delete(a.id)}createQuery(a={}){const c=this._queryInfo.historicMoment?new Date(this._queryInfo.historicMoment):null;return new rs.Z({...this._queryInfo,historicMoment:c,...a})}get(a){return this._subscriptions.has(a)?this._subscriptions.get(a):null}queryLastEditDate(){return(0,Z.Z)(function*(){throw new Error("Service does not support query type")})()}query(a){return(0,Z.Z)(function*(){throw new Error("Service does not support query")})()}*_tiles(){const a=Array.from(this._subscriptions.values());for(const c of a)yield c.tile}edit(a,c){var _=this;return(0,Z.Z)(function*(){const m=Array.from(_._subscriptions.values()),x=m.map(({tile:b})=>b);for(const b of m)b.removeIds(c);if(a.length){const b=x.map(M=>{const F=_.createTileQuery(M);return F.objectIds=a,{tile:M,query:F}}).map(function(){var M=(0,Z.Z)(function*({tile:F,query:U}){return{tile:F,result:yield _.query(U),query:U}});return function(F){return M.apply(this,arguments)}}()),C=(yield(0,j.WW)(b)).map(function(){var M=(0,Z.Z)(function*({tile:F,result:U}){if(!U.hasFeatures&&!c.length&&!a.length)return;const D=_._subscriptions.get(F.key.id);D&&D.edit(U,a)});return function(F){return M.apply(this,arguments)}}());yield(0,j.as)(C)}_._didEdit=!0})()}}var Qt=O(71251);class Kt extends Jt{constructor(a){var c,_;super(a),c=this,this.type="feature",this.mode="on-demand",this._adapter=function jt(v){const{capabilities:a}=v;return function _t(v){return"ogc-source"===v?.type}(v.source)?new Ot(v):function Lt(v){return Array.isArray(v.source)}(v)?new mt(v):a.query.supportsFormatPBF&&(0,R.Z)("featurelayer-pbf")?new yt(v):new ut(v)}(a.serviceInfo),this._queue=new Qt.e({concurrency:8,process:(_=(0,Z.Z)(function*(m){if((0,j.k_)(m),(0,w.pC)(m.tile)){const x=m.tile.key.id,{signal:b}=m,C=(0,R.Z)("esri-tiles-debug")?{tile:x.replace(/\//g,"."),depth:m.depth}:void 0,M=yield c._adapter.executeQuery(m.query,{signal:b,query:{...C,...c._schema.customParameters}});return M.level=m.tile.key.level,M}return c._adapter.executeQuery(m.query,{...m,query:c._schema.customParameters})}),function(x){return _.apply(this,arguments)})}),this._patchQueue=new Qt.e({concurrency:8,process:function(){var _=(0,Z.Z)(function*(m){if((0,j.k_)(m),(0,w.pC)(m.tile)){const x=m.tile.key.id,{signal:b}=m,C=(0,R.Z)("esri-tiles-debug")?{tile:x.replace(/\//g,"."),depth:m.depth}:void 0,M=yield c._adapter.executeQuery(m.query,{signal:b,query:{...C,...c._schema.customParameters}});return M.level=m.tile.key.level,M}return c._adapter.executeQuery(m.query,{...m,query:c._schema.customParameters})});return function(x){return _.apply(this,arguments)}}()})}destroy(){super.destroy(),this._adapter.destroy(),this._queue.destroy(),this._patchQueue.destroy()}get updating(){return!!this._queue.length||Array.from(this._subscriptions.values()).some(a=>!a.done)}get maxRecordCountFactor(){const{query:a}=this._serviceInfo.capabilities;return a.supportsMaxRecordCountFactor?4:null}get maxPageSize(){const{query:a}=this._serviceInfo.capabilities;return(a.maxRecordCount??8e3)*(0,w.Pt)(this.maxRecordCountFactor,1)}get pageSize(){return Math.min(8e3,this.maxPageSize)}enableEvent(a,c){}subscribe(a,c){super.subscribe(a,c);const _=this._subscriptions.get(a.id);this._fetchDataTile(a).catch(m=>{(0,j.D_)(m)||re.Z.getLogger("esri.views.2d.layers.features.sources.BaseFeatureSource").error(new H.Z("mapview-query-error","Encountered error when fetching tile",{tile:a,error:m}))}).then(()=>_.end())}unsubscribe(a){super.unsubscribe(a)}readers(a){return this._subscriptions.get(a).readers()}query(a){var c=this;return(0,Z.Z)(function*(){return c._adapter.executeQuery(a,{query:c._schema.customParameters})})()}queryLastEditDate(){var a=this;return(0,Z.Z)(function*(){const c=a._serviceInfo.source,_={...c.query,f:"json"};return(yield(0,z.default)(c.path,{query:_,responseType:"json"})).data.editingInfo.lastEditDate})()}createTileQuery(a,c={}){const _=this._serviceInfo.geometryType,m=this.createQuery(c);m.quantizationParameters=c.quantizationParameters??a.getQuantizationParameters(),m.resultType="tile",m.geometry=a.extent,this._serviceInfo.capabilities.query.supportsQuantization?"esriGeometryPolyline"===_&&(m.maxAllowableOffset=a.resolution*(0,R.Z)("feature-polyline-generalization-factor")):"esriGeometryPolyline"!==_&&"esriGeometryPolygon"!==_||(m.maxAllowableOffset=a.resolution,"esriGeometryPolyline"===_&&(m.maxAllowableOffset*=(0,R.Z)("feature-polyline-generalization-factor")));const x=this._serviceInfo.capabilities.query;return m.defaultSpatialReferenceEnabled=x.supportsDefaultSpatialReference,m.compactGeometryEnabled=x.supportsCompactGeometry,m}_executePatchQuery(a,c,_,m){var x=this;return(0,Z.Z)(function*(){const b=c.clone();b.outFields=[x._serviceInfo.objectIdField,..._],b.returnCentroid=!1,b.returnGeometry=!1;const C=(0,w.pC)(b.start)?b.start/8e3:0;return x._patchQueue.push({tile:a,query:b,signal:m.signal,depth:C})})()}_resend(a,c){var _=this;return(0,Z.Z)(function*(){const{query:m,message:x}=a,b=(0,w.pC)(m.outFields)?m.outFields:[],C=_._queryInfo.outFields,M=C.filter(F=>!b.includes(F));if((0,w.Wi)(x.addOrUpdate))_._onMessage({...x,type:"append"});else if(M.length)try{const F=_._subscriptions.get(x.id).tile,U=yield _._executePatchQuery(F,m,M,c);(0,j.k_)(c),m.outFields=C,x.addOrUpdate.joinAttributes(U),_._onMessage({...x,end:x.end,type:"append"})}catch{}else _._onMessage({...x,type:"append"})})()}_resendSubscription(a){var c=this;return(0,Z.Z)(function*(){if((0,R.Z)("esri-2d-update-debug")&&console.debug(a.tile.id,"Resend Subscription"),a.empty)return c._onMessage({id:a.tile.id,addOrUpdate:null,end:!1,type:"append"});const _=a.signal;for(const m of a.requests.done)yield c._resend(m,{signal:_});return(0,w.pC)(a.edits)?c._onMessage(a.edits):void 0})()}resend(){var a=this;return(0,Z.Z)(function*(){const c=Array.from(a._subscriptions.values());yield Promise.all(c.map(_=>a._resendSubscription(_)))})()}}const ns=(0,R.Z)("esri-mobile"),fs={maxDrillLevel:ns?1:4,maxRecordCountFactor:ns?1:3};class ps extends Kt{constructor(a){super(a)}_fetchDataTile(a){var c=this;return(0,Z.Z)(function*(){const _=c._serviceInfo.capabilities.query.supportsMaxRecordCountFactor,m=c._subscriptions.get(a.key.id),x=m.signal,b=a.getQuantizationParameters();let C=0;const M=function(){var F=(0,Z.Z)(function*(U,D){const G=c._queryInfo,Q=c.createTileQuery(U,{maxRecordCountFactor:_?fs.maxRecordCountFactor:void 0,returnExceededLimitFeatures:!1,quantizationParameters:b});C++;try{const ee=yield c._queue.push({tile:a,query:Q,signal:x,depth:D});if(C--,(0,j.k_)(x),!ee)return;if(G!==c._queryInfo)return void M(U,D);if(ee.exceededTransferLimit&&Da.push(c)),a}add(a){this._objectIdToFeature.set(a.objectId,a),this._index=null}get(a){return this._objectIdToFeature.has(a)?this._objectIdToFeature.get(a):null}forEach(a){this._objectIdToFeature.forEach(a)}search(a){return this._index||(this._index=function Ke(v,a){const c=(0,as.r)(9,function De(v){return"esriGeometryPoint"===v?a=>(0,w.pC)(a.geometry)?{minX:a.geometry.coords[0],minY:a.geometry.coords[1],maxX:a.geometry.coords[0],maxY:a.geometry.coords[1]}:{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}:a=>{let c=1/0,_=1/0,m=-1/0,x=-1/0;return(0,w.pC)(a.geometry)&&a.geometry.forEachVertex((b,C)=>{c=Math.min(c,b),_=Math.min(_,C),m=Math.max(m,b),x=Math.max(x,C)}),{minX:c,minY:_,maxX:m,maxY:x}}}(a));return c.load(v),c}(this._features,this._geometryType)),function $t(v,a){return v.search({minX:a.bounds[0],minY:a.bounds[1],maxX:a.bounds[2],maxY:a.bounds[3]})}(this._index,a)}removeById(a){const c=this._objectIdToFeature.get(a);return c?(this._objectIdToFeature.delete(a),this._index=null,c):null}update(a,c){this.onUpdate(a,c)}get size(){return this._objectIdToFeature.size}}class It extends Jt{constructor(a){super(a),this.type="geoevent",this._dataReceiveEventEnabled=!1,this._level=0,this._updateInfo={websocket:0,client:0},this._inUpdate=!1;const{outSR:c}=a,{geometryType:_,objectIdField:m,timeInfo:x,purgeOptions:b,source:C,spatialReference:M,serviceFilter:F,maxReconnectionAttempts:U,maxReconnectionInterval:D,updateInterval:G,enableDataReceived:Q,customParameters:ee}=a.serviceInfo,K=new ke(this._onUpdate.bind(this),_),ie=new B.Qo(K,m,x,b),le=(0,fe.createConnection)(C,M,c,_,F,U,D,ee);this._store=K,this._manager=ie,this._connection=le,this._quantize=function Le(v){return"esriGeometryPoint"===v?be:(a,c)=>{const _=a.weakClone(),m=new we.Z,C=(0,P.Nh)(m,a.geometry,!1,!1,v,c,!1,!1);return _.geometry=C,_}}(_),this._dataReceiveEventEnabled=Q,this._handles=[this._connection.on("data-received",ne=>this._onFeature(ne)),(0,q.YP)(()=>le.connectionStatus,ne=>this.events.emit("connectionStatus",ne)),(0,q.YP)(()=>le.errorString,ne=>this.events.emit("errorString",ne))],this._initUpdateInterval=()=>{let ne=performance.now();this._updateIntervalId=setInterval(()=>{const de=performance.now(),oe=de-ne;if(oe>2500){ne=de;const ge=Math.round(this._updateInfo.client/(oe/1e3)),me=Math.round(this._updateInfo.websocket/(oe/1e3));this._updateInfo.client=0,this._updateInfo.websocket=0,this.events.emit("updateRate",{client:ge,websocket:me})}a.canAcceptRequest()&&!this._inUpdate&&this._manager.checkForUpdates()},G)},this._initUpdateInterval()}destroy(){super.destroy(),this._clearUpdateInterval(),this._handles.forEach(a=>a.remove()),this._connection.destroy()}_fetchDataTile(){}pauseStream(){this._clearUpdateInterval()}resumeStream(){this._initUpdateInterval()}enableEvent(a,c){"data-received"===a&&(this._dataReceiveEventEnabled=c)}get updating(){return!1}subscribe(a,c){super.subscribe(a,c);const _=this._subscriptions.get(a.id);this._level=a.level;const m=this._getTileFeatures(a);this._onMessage({type:"append",id:a.key.id,addOrUpdate:m,end:!0}),_.didSend=!0}unsubscribe(a){super.unsubscribe(a)}*readers(a){const c=this._subscriptions.get(a),{tile:_}=c;yield this._getTileFeatures(_);for(const m of c.requests.stream.entries)(0,w.pC)(m)&&(0,w.pC)(m.addOrUpdate)&&(yield m.addOrUpdate)}createTileQuery(a){throw new Error("Service does not support tile queries")}resend(){var a=this;return(0,Z.Z)(function*(){a._subscriptions.forEach(c=>{const{tile:_}=c,m={type:"append",id:_.id,addOrUpdate:a._getTileFeatures(_),end:!0};a._onMessage(m)})})()}_getTileFeatures(a){const c=this._store.search(a).map(_=>this._quantize(_,a.transform));return Te.fromOptimizedFeatures(c,this._serviceInfo,a.transform)}_onFeature(a){this._updateInfo.websocket++;try{this._dataReceiveEventEnabled&&this.events.emit("data-received",a);const c=(0,P.XA)(a,this._serviceInfo.geometryType,!1,!1,this._serviceInfo.objectIdField);this._manager.add(c)}catch{}}_clearUpdateInterval(){clearInterval(this._updateIntervalId),this._updateIntervalId=0}_onUpdate(a,c){var _=this;return(0,Z.Z)(function*(){_._inUpdate=!0;try{(0,w.pC)(a)&&(_._updateInfo.client+=a.length),_._subscriptions.forEach((x,b)=>{x.didSend&&x.tile.level===_._level&&_._onMessage({type:"append",id:b,addOrUpdate:null,clear:!0,end:!1})});const m=[];_._subscriptions.forEach((x,b)=>{if(!x.didSend||x.tile.level!==_._level)return;const M={type:"append",id:b,addOrUpdate:_._getTileFeatures(x.tile),remove:[],end:!1,status:Me.empty()};x.requests.stream.enqueue(M),m.push(_._onMessage(M))}),yield Promise.all(m),_._subscriptions.forEach((x,b)=>{x.didSend&&x.tile.level===_._level&&_._onMessage({type:"append",id:b,addOrUpdate:null,end:!0})})}catch{}_._inUpdate=!1})()}}class es extends Kt{constructor(a){super(a)}_fetchDataTile(a){var c=this;return(0,Z.Z)(function*(){const x=c._subscriptions.get(a.key.id);let b=!1,C=0,M=0;const F=(G,Q)=>{M--,(0,j.k_)(x);const ee=a.id,K=G.reader,ie=G.query;if(!K.exceededTransferLimit){if(b=!0,0!==Q&&!K.hasFeatures){const de={id:ee,addOrUpdate:K,end:0===M,type:"append"};return x.add({message:de,query:ie}),void c._onMessage(de)}const ne={id:ee,addOrUpdate:K,end:0===M,type:"append"};return x.add({message:ne,query:ie}),void c._onMessage(ne)}const le={id:ee,addOrUpdate:K,end:b&&0===M,type:"append"};x.add({message:le,query:ie}),c._onMessage(le)};let U=0,D=0;for(;!b&&D++<20;){let G;for(let Q=0;QK&&F(K,ee)).catch(K=>{b=!0,(0,j.D_)(K)||(re.Z.getLogger("esri.views.2d.layers.features.sources.PagedFeatureSource").error(new H.Z("mapview-query-error","Encountered error when fetching tile",{tile:a,error:K})),c._onMessage({id:a.id,addOrUpdate:null,end:b,type:"append"}))})}yield G,(0,j.k_)(x),U=Math.min(U+2,6)}})()}_fetchDataTilePage(a,c,_){var m=this;return(0,Z.Z)(function*(){(0,j.k_)(_);const x=m._queryInfo,b={start:m.pageSize*c,num:m.pageSize,returnExceededLimitFeatures:!0,quantizationParameters:a.getQuantizationParameters()};(0,w.pC)(m.maxRecordCountFactor)&&(b.maxRecordCountFactor=m.maxRecordCountFactor);const C=m.createTileQuery(a,b);try{const M=_.signal,F=yield m._queue.push({tile:a,query:C,signal:M,depth:c});return(0,j.k_)(_),F?x!==m._queryInfo?m._fetchDataTilePage(a,c,_):{reader:F,query:C}:null}catch(M){return(0,j.H9)(M),null}})()}}var _s=O(4619),ms=O(52397);function ys(v,a,c){const _=v.getXHydrated(),m=v.getYHydrated(),x=a.getColumnForX(_),b=Math.floor(a.normalizeCol(x));return`${c}/${Math.floor(a.getRowForY(m))}/${b}`}function ts(v,a){if((0,w.Wi)(v))return null;const c=a.transform,_=v.getQuantizationTransform();if((0,w.Wi)(_)){const[ie,le]=c.scale,[ne,de]=c.translate;return v.transform(-ne/ie,de/le,1/ie,1/-le)}const[m,x]=_.scale,[b,C]=_.translate,[M,F]=c.scale,[U,D]=c.translate;return v.transform((b-U)/M,(-C+D)/F,m/M,x/F)}class Is extends Kt{constructor(a){super(a),this.mode="snapshot",this._loading=!0,this._controller=new AbortController,this._downloadPromise=null,this._didSendEnd=!1,this._queries=new Array,this._invalidated=!1,this._hasAggregates=!1,this._random=new _s.Z(1e3),this._store=a.store,this._markedIdsBufId=this._store.storage.createBitset()}destroy(){super.destroy(),this._controller.abort()}get loading(){return this._loading}get _signal(){return this._controller.signal}update(a,c){super.update(a,c),null==this._featureCount&&(this._featureCount=c.initialFeatureCount),(0,w.pC)(c.changedFeatureCount)&&(this._featureCount=c.changedFeatureCount),this._hasAggregates=a.targets.aggregate}resend(a=!1){var c=this;return(0,Z.Z)(function*(){if(yield c._downloadPromise,c._invalidated||a){const m=(0,w.s3)(c._featureCount,"Expected featureCount to be defined");return c._invalidated=!1,c._subscriptions.forEach(x=>x.clear()),c._downloadPromise=c._download(m),void(yield c._downloadPromise)}const _=c._queries.map(({query:m,reader:x})=>c._sendPatchQuery(m,x));yield Promise.all(_),c._subscriptions.forEach(m=>{m.requests.done.forEach(x=>c._onMessage(x.message))})})()}refresh(a,c){var _=this;return(0,Z.Z)(function*(){c&&(_._featureCount=c.featureCount),yield _.resend(!0)})()}_sendPatchQuery(a,c){var _=this;return(0,Z.Z)(function*(){const m=(0,w.pC)(a.outFields)?a.outFields:[],x=_._queryInfo.outFields,b=x.filter(U=>!m.includes(U));if(!b.length)return;const C=a.clone(),M=_._signal;C.returnGeometry=!1,C.returnCentroid=!1,C.outFields=b,a.outFields=x;const F=yield _._queue.push({query:C,depth:0,signal:M});(0,j.k_)({signal:M}),c.joinAttributes(F)})()}_fetchDataTile(a){var c=this;return(0,Z.Z)(function*(){if(!c._downloadPromise){const F=(0,w.s3)(c._featureCount,"Expected featureCount to be defined");c._downloadPromise=c._download(F)}const _=c._store.search(a),m=c._subscriptions.get(a.key.id),x=_.length-1;for(let F=0;F=0?_[x]:null,a),M={type:"append",id:a.id,addOrUpdate:b,end:c._didSendEnd,status:Me.empty()};m.add({query:null,message:M}),c._onMessage(M)})()}_download(a){var c=this;return(0,Z.Z)(function*(){try{yield c.whenInitialized();const _=c._store.storage.getBitset(c._markedIdsBufId),m=new Set;_.clear();const x=Math.ceil(a/c.pageSize),b=Array.from({length:x},(C,M)=>M).sort((C,M)=>c._random.getInt()-c._random.getInt()).map(C=>c._downloadPage(C,_,m));yield Promise.all(b),c._store.sweepFeatures(_,c._store.storage),c._store.sweepFeatureSets(m)}catch(_){re.Z.getLogger("esri.views.2d.layers.features.sources.SnapshotFeatureSource").error("mapview-snapshot-source","Encountered and error when downloading feature snapshot",_)}c._sendEnd(),c._loading=!1})()}_downloadPage(a,c,_){var m=this;return(0,Z.Z)(function*(){const x=m.pageSize,b={start:a*x,num:x,cacheHint:!0};(0,w.pC)(m.maxRecordCountFactor)&&(b.maxRecordCountFactor=m.maxRecordCountFactor);const C=m.createQuery(b),M=m._signal,F=yield m._queue.push({query:C,depth:a,signal:M});(0,j.k_)({signal:M}),m._queries.push({query:C,reader:F}),m._store.insert(F),_.add(F.instance);const U=F.getCursor();for(;U.next();)c.set(U.getDisplayId());m._send(F)})()}_send(a){if(!this._subscriptions.size)return;let c=null;const _=new Map,m=new Set,x=new Map;this._subscriptions.forEach(b=>{const C=b.tile;_.set(C.key.id,null),c=C.tileInfoView,m.add(C.level);const{row:M,col:F}=C.key,U=`${C.level}/${M}/${F}`,D=x.get(U)??[];D.push(b),x.set(U,D)});for(const b of m){const C=c.getLODInfoAt(b),M=a.getCursor();for(;M.next();){const F=ys(M,C,b),U=M.getIndex();if(x.has(F))for(const D of x.get(F)){const G=D.tile.id;let Q=_.get(G);(0,w.Wi)(Q)&&(Q=[],_.set(G,Q)),Q.push(U)}}}_.forEach((b,C)=>{if((0,w.pC)(b)){const M=this._subscriptions.get(C),F={type:"append",id:C,addOrUpdate:ts(ms.t.from(a,b),M.tile),end:!1,status:Me.empty()};M.add({query:null,message:F}),this._onMessage(F)}})}_sendEnd(){this._subscriptions.forEach(a=>{const c={type:"append",id:a.tile.id,addOrUpdate:null,end:!0,status:Me.empty()};a.add({query:null,message:c}),this._onMessage(c)}),this._didSendEnd=!0}}var Js=O(21286),Re=O(39351),ve=O(99666),Ks=O(64288);O(81295),O(39406);var Zt=O(67969);const Xt=re.Z.getLogger("esri.views.layers.2d.features.support.AttributeStore"),os=(Xt,()=>null),ss={sharedArrayBuffer:(0,R.Z)("esri-shared-array-buffer"),atomics:(0,R.Z)("esri-atomics")};function ws(v,a){return c=>a(v(c))}class nr{constructor(a,c,_,m){this.size=0,this.texelSize=4;const{pixelType:x,layout:b,textureOnly:C}=m;this.textureOnly=C||!1,this.pixelType=x,this._ctype=c,this.layout=b,this._resetRange(),this._shared=a,this.size=_,C||(this.data=this._initData(x,_,a,c))}get buffer(){return(0,w.yw)(this.data,a=>a.buffer)}unsetComponentAllTexels(a,c){const _=(0,w.Wg)(this.data);for(let m=0;mc)return null;this._resetRange();const m=!(this._shared||"local"===this._ctype),x=this.pixelType,b=this.layout,C=(0,w.Wg)(this.data);return{start:a,end:c,data:m&&C.slice(a*_,(c+1)*_)||null,pixelType:x,layout:b}}_initData(a,c,_,m){const x=_&&"local"!==m?SharedArrayBuffer:ArrayBuffer,b=(0,Ks.UK)(a),C=new b(new x(c*c*4*b.BYTES_PER_ELEMENT));for(let M=0;M{})){this._client=a,this.config=c,this._notifyChange=_,this._attributeComputeMap=new Map,this._blocks=new Array,this._filters=new Array(Re.m4),this._targetType=0,this._abortController=new AbortController,this._hasScaleExpr=!1,this._size=32,this._idsToHighlight=new Set;const m=c.supportsTextureFloat?Zt.Br.FLOAT:Zt.Br.UNSIGNED_BYTE;os(`Creating AttributeStore ${ss.sharedArrayBuffer?"with":"without"} shared memory`),this._blockDescriptors=[{pixelType:Zt.Br.UNSIGNED_BYTE,layout:1},{pixelType:Zt.Br.UNSIGNED_BYTE,layout:15,textureOnly:!0},{pixelType:Zt.Br.UNSIGNED_BYTE,layout:15,textureOnly:!0},{pixelType:m,layout:15},{pixelType:m,layout:15},{pixelType:m,layout:15},{pixelType:m,layout:15}],this._blocks=this._blockDescriptors.map(()=>null)}destroy(){this._abortController.abort()}get hasScaleExpr(){return this._hasScaleExpr}get _signal(){return this._abortController.signal}get hasHighlight(){return this._idsToHighlight.size>0}isUpdating(){return!!this._currUpdate||!!this._nextUpdate}update(a,c){this.config=c;const _=c.schema.processors[0].storage,m=(0,ze.Hg)(this._schema,_);if((a.targets.feature||a.targets.aggregate)&&(a.storage.data=!0),m&&((0,R.Z)("esri-2d-update-debug")&&console.debug("Applying Update - AttributeStore:",m),a.storage.data=!0,this._schema=_,this._attributeComputeMap.clear(),!(0,w.Wi)(_))){switch(_.target){case"feature":this._targetType=ve.PX;break;case"aggregate":this._targetType=ve.xp}if("subtype"===_.type)for(const x in _.mapping){const b=_.mapping[x];if((0,w.pC)(b)&&(0,w.pC)(b.vvMapping))for(const C of b.vvMapping)this._bindAttribute(C)}else{if((0,w.pC)(_.vvMapping))for(const x of _.vvMapping)this._bindAttribute(x);if((0,w.pC)(_.attributeMapping))for(const x of _.attributeMapping)this._bindAttribute(x)}}}onTileData(a,c){if((0,w.Wi)(c.addOrUpdate))return;const _=c.addOrUpdate.getCursor();for(;_.next();){const m=_.getDisplayId();this.setAttributeData(m,_)}}setHighlight(a,c){var _=this;return(0,Z.Z)(function*(){const x=_._getBlock(0),b=c.map(C=>(0,ve.jL)(C));x.lock(),x.unsetComponentAllTexels(0,1),x.setComponent(0,1,b),x.unlock(),_._idsToHighlight.clear();for(const C of a)_._idsToHighlight.add(C);yield _.sendUpdates()})()}updateFilters(a,c,_){var m=this;return(0,Z.Z)(function*(){const{service:x,spatialReference:b}=_,{filters:C}=c,M=C.map((F,U)=>m._updateFilter(F,U,x,b));(yield Promise.all(M)).some(F=>F)&&(a.storage.filters=!0,(0,R.Z)("esri-2d-update-debug")&&console.debug("Applying Update - AttributeStore:","Filters changed"))})()}setData(a,c,_,m){const x=(0,ve.jL)(a);this._ensureSizeForTexel(x),this._getBlock(c).setData(a,_,m)}getData(a,c,_){return this._getBlock(c).getData(a,_)}getHighlightFlag(a){return this._idsToHighlight.has(a)?Re.uG:0}unsetAttributeData(a){const c=(0,ve.jL)(a);this._getBlock(0).setData(c,0,0)}setAttributeData(a,c){const _=(0,ve.jL)(a);if(this._ensureSizeForTexel(_),this._getBlock(0).setData(_,0,this.getFilterFlags(c)),this._targetType!==(0,ve.vs)(a))return;const m=this._attributeComputeMap,x=this.config.supportsTextureFloat?1:2;m.size&&m.forEach((C,M)=>{const F=M*x%4,U=Math.floor(M*x/4),D=this._getBlock(U+Re.aK),G=C(c);if(this.config.supportsTextureFloat)D.setData(_,F,G);else if(G===Re.AI)D.setData(_,F,255),D.setData(_,F+1,255);else{const Q=(0,Js.uZ)(Math.round(G),-32767,32766)+32768,K=(65280&Q)>>8;D.setData(_,F,255&Q),D.setData(_,F+1,K)}})}sendUpdates(){if((0,R.Z)("esri-2d-update-debug")&&console.debug("AttributeStore::sendUpdate"),this._notifyChange(),this._nextUpdate)return this._nextUpdate.promise;if(this._currUpdate)return this._nextUpdate=(0,j.hh)(),this._nextUpdate.promise;const a={blocks:this._blocks.map(c=>(0,w.pC)(c)?c.toMessage():null)};return this._currUpdate=this._createResources().then(()=>{const c=()=>{if(this._currUpdate=null,this._nextUpdate){const m=this._nextUpdate;this._nextUpdate=null,this.sendUpdates().then(()=>m.resolve())}else(0,R.Z)("esri-2d-update-debug")&&console.debug("AttributeStore::sendUpdate::No additional updates queued");this._notifyChange()};(0,R.Z)("esri-2d-update-debug")&&console.debug("AttributeStore::sendUpdate::client.update");const _=this._client.update(a,this._signal).then(c).catch(c);return this._client.render(this._signal),_}).catch(c=>{if((0,j.D_)(c))return this._createResourcesPromise=null,this._createResources();this._notifyChange(),Xt.error(new H.Z("mapview-attribute-store","Encountered an error during client update",c))}),this._currUpdate}_ensureSizeForTexel(a){for(;a>=this._size*this._size;)if(this._expand())return}_bindAttribute(a){let m;if(null!=a.fieldIndex)m=function _(){return a.normalizationField&&Xt.warn("mapview-arcade","Ignoring normalizationField specified with an arcade expression which is not supported."),b=>b.getComputedNumericAtIndex(a.fieldIndex)}();else{if(!a.field)return;m=function c(){return a.normalizationField?b=>{const C=b.readAttribute(a.normalizationField);return C?b.readAttribute(a.field)/C:null}:b=>b.readAttribute(a.field)}()}a.valueRepresentation&&(m=ws(m,b=>function tr(v,a){if(!v||!a)return v;switch(a){case"radius":case"distance":return 2*v;case"diameter":case"width":return v;case"area":return Math.sqrt(v)}return v}(b,a.valueRepresentation))),this._attributeComputeMap.set(a.binding,ws(m,b=>null===b||isNaN(b)||b===1/0||b===-1/0?Re.AI:b))}_createResources(){if((0,w.pC)(this._createResourcesPromise))return this._createResourcesPromise;this._getBlock(Re.xl),this._getBlock(Re.pU),os("Initializing AttributeStore");const a={shared:ss.sharedArrayBuffer&&"local"!==this._client.type,size:this._size,blocks:(0,w.Fd)(this._blocks,_=>({textureOnly:_.textureOnly,buffer:_.buffer,pixelType:_.pixelType}))},c=this._client.initialize(a,this._signal).catch(_=>{(0,j.D_)(_)?this._createResourcesPromise=null:Xt.error(new H.Z("mapview-attribute-store","Encountered an error during client initialization",_))});return this._createResourcesPromise=c,c.then(()=>(0,w.Wi)(this._createResourcesPromise)?this._createResources():void 0),c}_getBlock(a){const c=this._blocks[a];if((0,w.pC)(c))return c;os(`Initializing AttributeBlock at index ${a}`);const x=new nr(ss.sharedArrayBuffer,this._client.type,this._size,this._blockDescriptors[a]);return this._blocks[a]=x,this._createResourcesPromise=null,x}_expand(){if(this._sizec.expand(a)),this._createResourcesPromise=null,this._size=a,0}return Xt.error(new H.Z("mapview-limitations","Maximum number of onscreen features exceeded.")),-1}_updateFilter(a,c,_,m){var x=this;return(0,Z.Z)(function*(){const b=x._filters[c],C=(0,w.pC)(b)&&b.hash;if(!b&&!a||C===JSON.stringify(a))return!1;if((0,w.Wi)(a)){if(!b)return!1;const F=1<G?1:0;m|=Q<<29-(D+5*U),M=(1-Q)*M+Q*G,F=(1-Q)*G+Q*F}for(let D=0;D<5;D++){const G=(b+C)/2,Q=a>G?1:0;x|=Q<<29-(D+5*U),b=(1-Q)*b+Q*G,C=(1-Q)*G+Q*C}}v.geohashX=m,v.geohashY=x}function ds(v,a,c,_,m){m%2&&(m+=1);let x=0,b=0,C=-90,M=90,F=-180,U=180;for(let D=0;DQ?1:0;x|=ee<<29-(G+5*D),F=(1-ee)*F+ee*Q,U=(1-ee)*Q+ee*U}for(let G=0;G<5;G++){const Q=(C+M)/2,ee=c>Q?1:0;b|=ee<<29-(G+5*D),C=(1-ee)*C+ee*Q,M=(1-ee)*Q+ee*M}}v[2*a]=x,v[2*a+1]=b}O(29132),new Float64Array(2),new Float64Array(2);var xt=O(65234),St=O(82959);class Ns{constructor(a=[],c,_=8096){this.onRelease=m=>{},this._nodes=0,this._root=new Ss(this,0,0,0),this._statisticFields=a,this._pool=_?new Nt.Z(8096):null,this._serviceInfo=c}destroy(){this.clear()}_acquire(a,c,_){this._nodes++;let m=null;return(0,w.pC)(this._pool)&&(m=this._pool.dequeue()),(0,w.pC)(m)?m.realloc(a,c,_):m=new Ss(this,a,c,_),m}_release(a){this.onRelease(a),this._nodes--,(0,w.pC)(this._pool)&&this._pool.enqueue(a)}get count(){return this._root.count}get size(){return this._nodes}get poolSize(){return(0,w.R2)(this._pool,0,a=>a.size)}get depth(){let a=0;return this.forEach(c=>a=Math.max(a,c.depth)),a}dropLevels(a){this.forEach(c=>{if(c.depth>=a)for(let _=0;_{if(c.depth>=a)for(let _=0;_this._release(a)),this._root=new Ss(this,0,0,0)}insert(a,c,_=0){const m=Te.fromOptimizedFeatures([a],this._serviceInfo).getCursor();m.next();const x=m.readGeometry();if(!x)return;const[b,C]=x.coords;this.insertCursor(m,a.displayId,b,C,a.geohashX,a.geohashY,c,_)}insertCursor(a,c,_,m,x,b,C,M=0){let F=this._root,U=0,D=0,G=0;for(;null!==F;){if(F.depth>=M&&(F.count+=1,F.xTotal+=_,F.yTotal+=m,F.xGeohashTotal+=x,F.yGeohashTotal+=b,F.referenceId=c,this._updateStatisticsCursor(a,F,1)),U>=C)return void F.add(c);const Q=Math.ceil((U+1)/2),ee=Math.floor((U+1)/2),K=1-U%2,ie=30-(3*Q+2*ee),le=30-(2*Q+3*ee),ne=(x&7*K+3*(1-K)<>ie,de=(b&3*K+7*(1-K)<>le,oe=ne+de*(8*K+4*(1-K));D=D<<3*K+2*(1-K)|ne,G=G<<2*K+3*(1-K)|de,null==F.children[oe]&&(F.children[oe]=this._acquire(D,G,U+1)),U+=1,F=F.children[oe]}}remove(a,c){const _=Te.fromOptimizedFeatures([a],this._serviceInfo).getCursor();_.next();const m=_.readGeometry();if(!m)return;const[x,b]=m.coords;this.removeCursor(_,x,b,a.geohashX,a.geohashY,c)}removeCursor(a,c,_,m,x,b){let C=this._root,M=0;for(;null!==C;){if(C.count-=1,C.xTotal-=c,C.yTotal-=_,C.xGeohashTotal-=m,C.yGeohashTotal-=x,this._updateStatisticsCursor(a,C,-1),M>=b)return void C.remove(a.getDisplayId());const F=Math.ceil((M+1)/2),U=Math.floor((M+1)/2),D=1-M%2,G=30-(3*F+2*U),Q=30-(2*F+3*U),ee=((m&7*D+3*(1-D)<>G)+((x&3*D+7*(1-D)<>Q)*(8*D+4*(1-D)),K=C.children[ee];1===K?.count&&(this._release(K),C.children[ee]=null),M+=1,C=K}}forEach(a){let c=this._root;for(;null!==c;){const _=this._linkChildren(c)||c.next;a(c),c=_}}find(a,c,_){return this._root.find(a,c,_,0,0,0)}findIf(a){let c=null;return this.forEach(_=>{a(_)&&(c=_)}),c}findAllIf(a){const c=[];return this.forEach(_=>{a(_)&&c.push(_)}),c}findSingleOccupancyNode(a,c,_,m,x){let b=this._root;for(;null!==b;){const C=b.depth,M=b.xNode,F=b.yNode,U=1-C%2,D=b.xGeohashTotal/b.count,G=b.yGeohashTotal/b.count;if(1===b.count&&a=x){b=b.next;continue}const Q=Math.ceil((C+1)/2),ee=Math.floor((C+1)/2),K=30-(3*Q+2*ee),ie=30-(2*Q+3*ee),le=~((1<>ie,ge=(_&le)>>K,me=(m&ne)>>ie,pe=M<<3*U+2*(1-U),Ae=F<<2*U+3*(1-U),Ee=pe+8*U+4*(1-U),_e=Ae+4*U+8*(1-U),Se=Math.max(pe,(a&le)>>K),Fe=Math.max(Ae,oe),Ue=Math.min(Ee,ge),Ze=Math.min(_e,me);let je=null,ht=null;for(let Be=Fe;Be<=Ze;Be++)for(let st=Se;st<=Ue;st++){const Oe=b.children[st-pe+(Be-Ae)*(8*U+4*(1-U))];Oe&&(je||(je=Oe,je.next=b.next),ht&&(ht.next=Oe),ht=Oe,Oe.next=b.next)}b=je||b.next}return null}getRegionDisplayIds(a){let c=this._root;const{bounds:_,geohashBounds:m,level:x}=a,[b,C,M,F]=_,U=[];for(;null!==c;){const D=c.depth,G=c.xNode,Q=c.yNode;if(D>=x){const Ve=c.xTotal/c.count,Oe=c.yTotal/c.count;Ve>=b&&Ve<=M&&Oe>=C&&Oe<=F&&c.displayIds.forEach(Tt=>U.push(Tt)),c=c.next;continue}const ee=Math.ceil((D+1)/2),K=Math.floor((D+1)/2),ie=1-D%2,le=30-(3*ee+2*K),ne=30-(2*ee+3*K),de=~((1<>ne,pe=(m.xTR&de)>>le,Ae=(m.yTR&oe)>>ne,Ee=G<<3*ie+2*(1-ie),_e=Q<<2*ie+3*(1-ie),Se=Ee+8*ie+4*(1-ie),Fe=_e+4*ie+8*(1-ie),Ue=Math.max(Ee,(m.xLL&de)>>le),Ze=Math.max(_e,me),je=Math.min(Se,pe),ht=Math.min(Fe,Ae);let Be=null,st=null;for(let Ve=Ze;Ve<=ht;Ve++)for(let Oe=Ue;Oe<=je;Oe++){const lt=c.children[Oe-Ee+(Ve-_e)*(8*ie+4*(1-ie))];lt&&(Be||(Be=lt,Be.next=c.next),st&&(st.next=lt),st=lt,lt.next=c.next)}c=Be||c.next}return U}getRegionStatistics(a){let c=this._root,_=0,m=0,x=0;const b={},{bounds:C,geohashBounds:M,level:F}=a,[U,D,G,Q]=C;let ee=0;for(;null!==c;){const K=c.depth,ie=c.xNode,le=c.yNode;if(K>=F){const Ft=c.xTotal/c.count,At=c.yTotal/c.count;Ft>U&&Ft<=G&&At>D&&At<=Q&&(_+=c.count,m+=c.xTotal,x+=c.yTotal,1===c.count&&(ee=c.referenceId),this._aggregateStatistics(b,c.statistics)),c=c.next;continue}const ne=Math.ceil((K+1)/2),de=Math.floor((K+1)/2),oe=1-K%2,ge=30-(3*ne+2*de),me=30-(2*ne+3*de),pe=~((1<>me,Se=(M.xTR&pe)>>ge,Fe=(M.yTR&Ae)>>me,Ue=ie<<3*oe+2*(1-oe),Ze=le<<2*oe+3*(1-oe),je=Ue+8*oe+4*(1-oe),ht=Ze+4*oe+8*(1-oe),Be=Math.max(Ue,(M.xLL&pe)>>ge),st=Math.max(Ze,_e),Ve=Math.min(je,Se),Oe=Math.min(ht,Fe);let Tt=null,lt=null;for(let Ft=st;Ft<=Oe;Ft++)for(let At=Be;At<=Ve;At++){const Pe=c.children[At-Ue+(Ft-Ze)*(8*oe+4*(1-oe))];if(Pe){if(Ft!==st&&Ft!==Oe&&At!==Be&&At!==Ve){const Vs=Pe.xTotal/Pe.count,Hs=Pe.yTotal/Pe.count;Vs>U&&Vs<=G&&Hs>D&&Hs<=Q&&(_+=Pe.count,m+=Pe.xTotal,x+=Pe.yTotal,1===Pe.count&&(ee=Pe.referenceId),this._aggregateStatistics(b,Pe.statistics));continue}Tt||(Tt=Pe,Tt.next=c.next),lt&&(lt.next=Pe),lt=Pe,Pe.next=c.next}}c=Tt||c.next}return{count:_,attributes:this.normalizeStatistics(b,_),xTotal:m,yTotal:x,referenceId:ee}}getBins(a){const c=[],{geohashBounds:_,level:m}=a;let x=this._root;for(;null!==x;){const b=x.depth,C=x.xNode,M=x.yNode;if(b>=m){c.push(x),x=x.next;continue}const F=Math.ceil((b+1)/2),U=Math.floor((b+1)/2),D=1-b%2,G=30-(3*F+2*U),Q=30-(2*F+3*U),ee=~((1<>Q,ne=(_.xTR&ee)>>G,de=(_.yTR&K)>>Q,oe=C<<3*D+2*(1-D),ge=M<<2*D+3*(1-D),me=oe+8*D+4*(1-D),pe=ge+4*D+8*(1-D),Ae=Math.max(oe,(_.xLL&ee)>>G),Ee=Math.max(ge,le),_e=Math.min(me,ne),Se=Math.min(pe,de);let Fe=null,Ue=null;for(let Ze=Ee;Ze<=Se;Ze++)for(let je=Ae;je<=_e;je++){const Be=x.children[je-oe+(Ze-ge)*(8*D+4*(1-D))];Be&&(Fe||(Fe=Be,Fe.next=x.next),Ue&&(Ue.next=Be),Ue=Be,Be.next=x.next)}x=Fe||x.next}return c}_linkChildren(a){let c=null,_=null;for(let m=0;m<=a.children.length;m++){const x=a.children[m];x&&(c||(c=x,c.next=a.next),_&&(_.next=x),_=x,x.next=a.next)}return c}_updateStatisticsCursor(a,c,_){for(const m of this._statisticFields){const x=m.name,b=m.inField?a.readAttribute(m.inField):a.getComputedNumericAtIndex(m.inFieldIndex);switch(m.statisticType){case"min":if(isNaN(b))break;if(!c.statistics[x]){c.statistics[x]={value:b};break}c.statistics[x].value=Math.min(c.statistics[x].value,b);break;case"max":if(isNaN(b))break;if(!c.statistics[x]){c.statistics[x]={value:b};break}c.statistics[x].value=Math.max(c.statistics[x].value,b);break;case"count":break;case"sum":case"avg":{c.statistics[x]||(c.statistics[x]={value:0,nanCount:0});const C=c.statistics[x].value,M=c.statistics[x].nanCount??0;null==b||isNaN(b)?c.statistics[x].nanCount=M+_:c.statistics[x].value=C+_*b;break}case"avg_angle":{c.statistics[x]||(c.statistics[x]={x:0,y:0,nanCount:0});const C=c.statistics[x].x,M=c.statistics[x].y,F=c.statistics[x].nanCount??0,U=Math.PI/180;null==b||isNaN(b)?c.statistics[x].nanCount=F+_:(c.statistics[x].x=C+_*Math.cos(b*U),c.statistics[x].y=M+_*Math.sin(b*U));break}case"mode":c.statistics[x]||(c.statistics[x]={}),c.statistics[x][b]=(c.statistics[x][b]||0)+_}}}_aggregateStatistics(a,c){for(const _ of this._statisticFields){const m=_.name;switch(_.statisticType){case"min":if(!a[m]){a[m]={value:c[m].value};break}a[m].value=Math.min(a[m].value,c[m].value);break;case"max":if(!a[m]){a[m]={value:c[m].value};break}a[m].value=Math.max(a[m].value,c[m].value);break;case"count":break;case"sum":case"avg":case"avg_angle":case"mode":a[m]||(a[m]={});for(const x in c[m])a[m][x]=(a[m][x]||0)+c[m][x]}}}normalizeStatistics(a,c){const _={};for(const m of this._statisticFields){const x=m.name;switch(m.statisticType){case"min":case"max":{const b=a[x];if(!c||!b)break;_[x]=b.value;break}case"count":if(!c)break;_[x]=c;break;case"sum":{if(!c)break;const{value:b,nanCount:C}=a[x];if(!(c-C))break;_[x]=b;break}case"avg":{if(!c)break;const{value:b,nanCount:C}=a[x];if(!(c-C))break;_[x]=b/(c-C);break}case"avg_angle":{if(!c)break;const{x:b,y:C,nanCount:M}=a[x];if(!(c-M))break;const D=180/Math.PI,G=Math.atan2(C/(c-M),b/(c-M))*D;_[x]=G;break}case"mode":{const b=a[x];let C=0,M=0,F=null;for(const U in b){const D=b[U];D===C?M+=1:D>C&&(C=D,M=1,F=U)}_[x]="null"===F||M>1?null:F;break}}}return _}}class Ss{constructor(a,c,_,m){this.count=0,this.xTotal=0,this.yTotal=0,this.statistics={},this.displayId=0,this.referenceId=0,this.displayIds=new Set,this.next=null,this.depth=0,this.xNode=0,this.yNode=0,this.xGeohashTotal=0,this.yGeohashTotal=0,this._tree=a,this.children=new Array(32);for(let x=0;x>U,ie=(3*F+7*(1-F)<>D;for(let le=3*F+2*(1-F)-1;le>=0;le--){const ne=(m+x)/2,de=K&1<=0;le--){const ne=(c+_)/2,de=ie&1<=_)return this;const C=1-m%2,M=3*C+2*(1-C),F=2*C+3*(1-C),U=30-x-M,D=30-b-F,Q=this.children[((a&7*C+3*(1-C)<>U)+((c&3*C+7*(1-C)<>D)*(8*C+4*(1-C))];return null==Q?null:Q.find(a,c,_,m+1,x+M,b+F)}}var Zs=O(5548),bt=O(94425),zs=O(16669),Gs=O(37118),ks=O(2004);const bs=re.Z.getLogger("esri.view.2d.layers.features.support.BinStore");function Ws(v){return 57.29577951308232*v}class pr extends zs.J{constructor(a,c,_,m){super(a,_),this.type="bin",this.events=new Pt.Z,this.objectIdField="aggregateId",this.featureAdapter=E.k,this._geohashLevel=5,this._geohashBuf=[],this._serviceInfo=m,this.geometryInfo=a.geometryInfo,this._spatialReference=c,this._projectionSupportCheck=(0,St._W)(c,xt.Z.WGS84),this._bitsets.geohash=_.getBitset(_.createBitset()),this._bitsets.inserted=_.getBitset(_.createBitset())}destroy(){this._tree&&this._tree.destroy()}get featureSpatialReference(){return this._spatialReference}get fields(){return this._fields}updateSchema(a,c){var _=()=>super.updateSchema,m=this;return(0,Z.Z)(function*(){const x=m._schema;try{yield _().call(m,a,c),yield m._projectionSupportCheck}catch{}m._fields=m._schema.params.fields;const b=(0,ze.Hg)(x,c);c&&(!(0,w.Wi)(b)||a.source||a.storage.filters)?(((0,ze.uD)(b,"params.fields")||(0,ze.uD)(b,"params")||!m._tree||a.source)&&(m._tree&&m._tree.destroy(),m._tree=new Ns(m._statisticFields,m._serviceInfo),m._tree.onRelease=C=>C.displayId&&m._storage.releaseDisplayId(C.displayId),m._geohashLevel=m._schema.params.fixedBinLevel,m._rebuildTree(),(0,R.Z)("esri-2d-update-debug")&&bs.info("Aggregate mesh needs update due to tree changing")),(0,R.Z)("esri-2d-update-debug")&&bs.info("Aggregate mesh needs update due to tree changing"),a.targets[c.name]=!0,a.mesh=!1):x&&(a.mesh=!0)})()}clear(){this._rebuildTree()}sweepFeatures(a,c){this._bitsets.inserted.forEachSet(_=>{if(!a.has(_)){const m=c.lookupByDisplayIdUnsafe(_);this._remove(m)}})}sweepAggregates(a,c,_){}onTileData(a,c,_,m,x=!0){if(!this._schema||(0,w.Wi)(c.addOrUpdate))return c;this.events.emit("changed");const b=this._getTransforms(a,this._spatialReference);{const M=c.addOrUpdate.getCursor();for(;M.next();)this._update(M,m)}if(c.status.mesh||!x)return c;const C=new Array;this._getBinsForTile(C,a,b,_),c.addOrUpdate=Te.fromOptimizedFeatures(C,{...this._serviceInfo,geometryType:"esriGeometryPolygon"}),c.addOrUpdate.attachStorage(_),c.end=!0,c.isRepush||(c.clear=!0);{const M=c.addOrUpdate.getCursor();for(;M.next();){const F=M.getDisplayId();this._bitsets.computed.unset(F),this.setComputedAttributes(_,M,F,a.scale)}}return c}forEachBin(a){this._tree.forEach(a)}forEach(a){this._tree.forEach(c=>{if(c.depth!==this._geohashLevel)return;const _=this._toFeatureJSON(c),m=Te.fromFeatures([_],{objectIdField:this.objectIdField,globalIdField:null,geometryType:this.geometryInfo.geometryType,fields:this.fields}).getCursor();m.next(),a(m)})}forEachInBounds(a,c){}forEachBounds(a,c,_){const{hasM:m,hasZ:x}=this.geometryInfo;for(const b of a){const C=(0,P.$)([0,0,0,0],b.readGeometry(),x,m);(0,w.Wi)(C)||c((0,Zs.JR)(_,C))}}toArray(){const a=[];return this.forEach(c=>a.push(c)),a}onTileUpdate(a){}getAggregate(a){const c=(0,ve.QS)(a,!0),_=this._tree.findIf(m=>m.displayId===c);return(0,w.yw)(_,m=>this._toFeatureJSON(m))}getAggregates(){return this._tree.findAllIf(a=>a.depth===this._geohashLevel).map(this._toFeatureJSON.bind(this))}getDisplayId(a){const c=this._tree.findIf(_=>_.id===a);return(0,w.yw)(c,_=>_.displayId)}getFeatureDisplayIdsForAggregate(a){const c=this._tree.findIf(_=>_.id===a);return(0,w.R2)(c,[],_=>Array.from(_.displayIds))}getDisplayIdForReferenceId(a){const c=this._tree.findIf(_=>1===_.displayIds.size&&_.displayIds.has(a));return(0,w.yw)(c,_=>_.displayId)}_toFeatureJSON(a){const c=this._spatialReference;return{displayId:a.displayId,attributes:a.getAttributes(),geometry:(0,P.di)(a.getGeometry(c),"esriGeometryPolygon",!1,!1),centroid:null}}_rebuildTree(){this._bitsets.computed.clear(),this._bitsets.inserted.clear(),this._tree&&this._tree.clear()}_remove(a){const c=a.getDisplayId(),_=a.getXHydrated(),m=a.getYHydrated(),x=this._geohashBuf[2*c],b=this._geohashBuf[2*c+1];this._bitsets.inserted.has(c)&&(this._bitsets.inserted.unset(c),this._tree.removeCursor(a,_,m,x,b,this._geohashLevel))}_update(a,c){const _=a.getDisplayId(),m=this._bitsets.inserted,x=c.isVisible(_);if(x===m.has(_))return;if(!x)return void this._remove(a);const b=a.getXHydrated(),C=a.getYHydrated();this._setGeohash(_,b,C)&&(this._tree.insertCursor(a,_,b,C,this._geohashBuf[2*_],this._geohashBuf[2*_+1],this._geohashLevel),m.set(_))}_setGeohash(a,c,_){if(this._bitsets.geohash.has(a))return!0;const m=this._geohashBuf;if(this._spatialReference.isWebMercator){const x=Ws(c/bt.sv.radius),b=x-360*Math.floor((x+180)/360);ds(m,a,Ws(Math.PI/2-2*Math.atan(Math.exp(-_/bt.sv.radius))),b,12)}else{const x=(0,St.iV)({x:c,y:_},this._spatialReference,xt.Z.WGS84);if(!x)return!1;ds(m,a,x.y,x.x,12)}return this._bitsets.geohash.set(a),!0}_getBinsForTile(a,c,_,m){try{const x=this._getGeohashBounds(c),b=this._tree.getBins(x);for(const C of b){C.displayId||(C.displayId=m.createDisplayId(!0));let M=null;const F=C.getGeometry(this._spatialReference,_.tile);F||(M=C.getGeometryCentroid(this._spatialReference,_.tile));const U=new he.u_(F,C.getAttributes(),M);U.objectId=C.id,U.displayId=C.displayId,a.push(U)}}catch{return void bs.error("Unable to get bins for tile",c.key.id)}}_getGeohash(a,c,_){const m={geohashX:0,geohashY:0};return ls(m,c,a,_),m}_getGeohashBounds(a){const c=this._getGeohashLevel(a.key.level),_=[a.extent.xmin,a.extent.ymin,a.extent.xmax,a.extent.ymax],m=Gs.Z.fromExtent(ks.Z.fromBounds(_,this._spatialReference)),x=(0,St.iV)(m,this._spatialReference,xt.Z.WGS84,{densificationStep:64*a.resolution}),b=(0,P.Uy)(new we.Z,x,!1,!1),C=b.coords.filter((K,ie)=>!(ie%2)),M=b.coords.filter((K,ie)=>ie%2),F=Math.min(...C),U=Math.min(...M),D=Math.max(...C),G=Math.max(...M),Q=this._getGeohash(F,U,c),ee=this._getGeohash(D,G,c);return{bounds:_,geohashBounds:{xLL:Q.geohashX,yLL:Q.geohashY,xTR:ee.geohashX,yTR:ee.geohashY},level:c}}_getGeohashLevel(a){return this._schema.params.fixedBinLevel}_getTransforms(a,c){const _={originPosition:"upperLeft",scale:[a.resolution,a.resolution],translate:[a.bounds[0],a.bounds[3]]},m=(0,ce.C5)(c);if(!m)return{tile:_,left:null,right:null};const[x,b]=m.valid;return{tile:_,left:{..._,translate:[b,a.bounds[3]]},right:{..._,translate:[x-b+a.bounds[0],a.bounds[3]]}}}}class Ts extends he.nd{constructor(a,c,_,m,x){super(new we.Z([],[c,_]),m,null,a),this.geohashBoundsInfo=x}get count(){return this.attributes.cluster_count}static create(a,c,_,m,x,b,C,M){const F=new Ts(c,_,m,b,C);return F.displayId=a.createDisplayId(!0),F.referenceId=M,F.tileLevel=x,F}update(a,c,_,m,x,b){return this.geometry.coords[0]=a,this.geometry.coords[1]=c,this.tileLevel=_,this.attributes=m,this.geohashBoundsInfo=x,this.referenceId=null,this.referenceId=b,this}toJSON(){return{attributes:{...this.attributes,aggregateId:this.objectId,referenceId:1===this.attributes.cluster_count?this.referenceId:null},geometry:{x:this.geometry.coords[0],y:this.geometry.coords[1]}}}}function qt(v){return 57.29577951308232*v}class mr extends zs.J{constructor(a,c,_,m){super(a,_),this.type="cluster",this.events=new Pt.Z,this.objectIdField="aggregateId",this.featureAdapter=E.k,this._geohashLevel=0,this._tileLevel=0,this._aggregateValueRanges={},this._aggregateValueRangesChanged=!1,this._geohashBuf=[],this._clusters=new Map,this._tiles=new Map,this._serviceInfo=m,this.geometryInfo=a.geometryInfo,this._spatialReference=c,this._projectionSupportCheck=(0,St._W)(c,xt.Z.WGS84),this._bitsets.geohash=_.getBitset(_.createBitset()),this._bitsets.inserted=_.getBitset(_.createBitset())}destroy(){this._tree.destroy()}get featureSpatialReference(){return this._spatialReference}get fields(){return this._fields}updateSchema(a,c){var _=()=>super.updateSchema,m=this;return(0,Z.Z)(function*(){const x=m._schema;try{yield _().call(m,a,c),yield m._projectionSupportCheck}catch{}m._fields=m._schema.params.fields;const b=(0,ze.Hg)(x,c);c&&(!(0,w.Wi)(b)||a.source||a.storage.filters)?(((0,ze.uD)(b,"params.fields")||!m._tree||a.source)&&(m._tree&&m._tree.destroy(),m._tree=new Ns(m._statisticFields,m._serviceInfo),m._rebuildTree(),(0,R.Z)("esri-2d-update-debug")&&console.debug("Aggregate mesh needs update due to tree changing")),(0,R.Z)("esri-2d-update-debug")&&console.debug("Applying Update - ClusterStore:",b),a.targets[c.name]=!0,a.mesh=!1,m._aggregateValueRanges={}):x&&(a.mesh=!0)})()}clear(){this._rebuildTree()}sweepFeatures(a,c){this._bitsets.inserted.forEachSet(_=>{if(!a.has(_)){const m=c.lookupByDisplayIdUnsafe(_);this._remove(m)}})}sweepAggregates(a,c,_){this._clusters.forEach((m,x)=>{m&&m.tileLevel!==_&&(a.releaseDisplayId(m.displayId),c.unsetAttributeData(m.displayId),this._clusters.delete(x))})}onTileData(a,c,_,m,x=!0){if(!this._schema||(0,w.Wi)(c.addOrUpdate))return c;this.events.emit("changed");const b=this._getTransforms(a,this._spatialReference);{const F=c.addOrUpdate.getCursor();for(;F.next();)this._update(F,m)}if(c.status.mesh||!x)return c;const C=new Array;this._getClustersForTile(C,a,this._schema.params.clusterRadius,_,b),c.addOrUpdate=Te.fromOptimizedFeatures(C,this._serviceInfo),c.addOrUpdate.attachStorage(_),c.clear=!0,c.end=!0;{const F=c.addOrUpdate.getCursor();for(;F.next();){const U=F.getDisplayId();this._bitsets.computed.unset(U),this.setComputedAttributes(_,F,U,a.scale)}}return this._aggregateValueRangesChanged&&c.end&&(this.events.emit("valueRangesChanged",{valueRanges:this._aggregateValueRanges}),this._aggregateValueRangesChanged=!1),c}onTileUpdate({added:a,removed:c}){if(a.length){const m=a[0].level;this._tileLevel=m,this._setGeohashLevel(m)}if(!this._schema)return;const _=this._schema.params.clusterRadius;c.forEach(m=>{this._tiles.delete(m.key.id),this._markTileClustersForDeletion(m,_)})}getAggregate(a){for(const c of this._clusters.values())if((c?.displayId&ve._I)==(a&ve._I))return c.toJSON();return null}getAggregates(){const a=[];for(const c of this._clusters.values())c?.tileLevel===this._tileLevel&&a.push(c.toJSON());return a}getDisplayId(a){const c=this._clusters.get(a);return c?c.displayId:null}getFeatureDisplayIdsForAggregate(a){const c=this._clusters.get(a);return c?this._tree.getRegionDisplayIds(c.geohashBoundsInfo):[]}getDisplayIdForReferenceId(a){for(const c of this._clusters.values())if(c?.referenceId===a)return c.displayId;return null}getAggregateValueRanges(){return this._aggregateValueRanges}forEach(a){this._clusters.forEach(c=>{if(!c)return;const _=c.toJSON(),m=Te.fromFeatures([_],{objectIdField:this.objectIdField,globalIdField:null,geometryType:this.geometryInfo.geometryType,fields:this.fields}).getCursor();m.next(),a(m)})}forEachInBounds(a,c){}forEachBounds(a,c,_){const{hasM:m,hasZ:x}=this.geometryInfo;for(const b of a){const C=(0,P.$)([0,0,0,0],b.readGeometry(),x,m);(0,w.Wi)(C)||c((0,Zs.JR)(_,C))}}toArray(){const a=[];return this.forEach(c=>a.push(c)),a}size(){let a=0;return this.forEach(c=>a++),a}_rebuildTree(){this._bitsets.computed.clear(),this._bitsets.inserted.clear(),this._tree&&this._tree.clear()}_remove(a){const c=a.getDisplayId(),_=a.getXHydrated(),m=a.getYHydrated(),x=this._geohashBuf[2*c],b=this._geohashBuf[2*c+1];this._bitsets.inserted.has(c)&&(this._bitsets.inserted.unset(c),this._tree.removeCursor(a,_,m,x,b,this._geohashLevel))}_update(a,c){const _=a.getDisplayId(),m=this._bitsets.inserted,x=c.isVisible(_);if(x===m.has(_))return;if(!x)return void this._remove(a);const b=a.getXHydrated(),C=a.getYHydrated();this._setGeohash(_,b,C)&&(this._tree.insertCursor(a,_,b,C,this._geohashBuf[2*_],this._geohashBuf[2*_+1],this._geohashLevel),m.set(_))}_setGeohash(a,c,_){if(this._bitsets.geohash.has(a))return!0;const m=this._geohashBuf;if(this._spatialReference.isWebMercator){const x=qt(c/bt.sv.radius),b=x-360*Math.floor((x+180)/360);ds(m,a,qt(Math.PI/2-2*Math.atan(Math.exp(-_/bt.sv.radius))),b,12)}else{const x=(0,St.iV)({x:c,y:_},this._spatialReference,xt.Z.WGS84);if(!x)return!1;ds(m,a,x.y,x.x,12)}return this._bitsets.geohash.set(a),!0}_getClustersForTile(a,c,_,m,x,b=!0){const C=this._schema.params.clusterPixelBuffer,M=2*_,F=Math.ceil(2**c.key.level*Re.I_/M)+1,U=Math.ceil(C/M)+0,D=Math.ceil(Re.I_/M),{row:G,col:Q}=c.key,K=G*Re.I_,ie=Math.floor(Q*Re.I_/M)-U,le=Math.floor(K/M)-U,ne=ie+D+2*U,de=le+D+2*U,oe=c.tileInfoView.getLODInfoAt(c.key.level);for(let ge=ie;ge<=ne;ge++)for(let me=le;me<=de;me++){let pe=ge;oe.wrap&&(pe=ge<0?ge+F:ge%F);const Ae=oe.wrap&&ge<0,Ee=oe.wrap&&ge%F!==ge,_e=this._lookupCluster(m,oe,c.key.level,pe,me,c);if((0,w.pC)(_e)){const Se=(0,w.yw)(x,Fe=>Ae?Fe.left:Ee?Fe.right:Fe.tile);if(b&&(0,w.Wi)(Se)||!_e.count)continue;if((0,w.pC)(Se)&&b){const Fe=_e.geometry.clone();let Ue=_e.attributes;Fe.coords[0]=(0,P.Jd)(Se,Fe.coords[0]),Fe.coords[1]=(0,P.IN)(Se,Fe.coords[1]),1===_e.count&&(0,w.pC)(_e.referenceId)&&(Ue={..._e.attributes,referenceId:_e.referenceId});const Ze=new he.u_(Fe,Ue);Ze.displayId=_e.displayId,a.push(Ze)}}}}_getGeohashLevel(a){return Math.min(Math.ceil(a/2+2),12)}_setGeohashLevel(a){const c=this._getGeohashLevel(a),_=1*(Math.floor(c/1)+1)-1;if(this._geohashLevel!==_)return this._geohashLevel=_,this._rebuildTree(),void this._bitsets.geohash.clear()}_getTransforms(a,c){const _={originPosition:"upperLeft",scale:[a.resolution,a.resolution],translate:[a.bounds[0],a.bounds[3]]},m=(0,ce.C5)(c);if(!m)return{tile:_,left:null,right:null};const[x,b]=m.valid;return{tile:_,left:{..._,translate:[b,a.bounds[3]]},right:{..._,translate:[x-b+a.bounds[0],a.bounds[3]]}}}_getClusterId(a,c,_){return(15&a)<<28|(16383&c)<<14|16383&_}_markForDeletion(a,c,_){const m=this._getClusterId(a,c,_);this._clusters.delete(m)}_getClusterBounds(a,c,_){const m=this._schema.params.clusterRadius,x=2*m;let b=_%2?c*x:c*x-m;const C=_*x;let M=b+x;const U=2**a.level*Re.I_;a.wrap&&b<0&&(b=0),a.wrap&&M>U&&(M=U);const G=C/Re.I_,Q=M/Re.I_,ee=(C-x)/Re.I_;return[a.getXForColumn(b/Re.I_),a.getYForRow(G),a.getXForColumn(Q),a.getYForRow(ee)]}_getGeohash(a,c,_){const m={geohashX:0,geohashY:0};return ls(m,c,a,_),m}_getGeohashBounds(a,c){const _=this._getGeohashLevel(a.key.level);if(this._spatialReference.isWebMercator){const[K,ie,le,ne]=c,de={x:K,y:ie},oe={x:le,y:ne};let ge=0,me=0,pe=0,Ae=0;{const Se=qt(de.x/bt.sv.radius);ge=Se-360*Math.floor((Se+180)/360),me=qt(Math.PI/2-2*Math.atan(Math.exp(-de.y/bt.sv.radius)))}{const Se=qt(oe.x/bt.sv.radius);pe=Se-360*Math.floor((Se+180)/360),Ae=qt(Math.PI/2-2*Math.atan(Math.exp(-oe.y/bt.sv.radius)))}const Ee={geohashX:0,geohashY:0},_e={geohashX:0,geohashY:0};return ls(Ee,me,ge,_),ls(_e,Ae,pe,_),{bounds:[K,ie,le,ne],geohashBounds:{xLL:Ee.geohashX,yLL:Ee.geohashY,xTR:_e.geohashX,yTR:_e.geohashY},level:_}}const m=Gs.Z.fromExtent(ks.Z.fromBounds(c,this._spatialReference)),x=(0,St.iV)(m,this._spatialReference,xt.Z.WGS84,{densificationStep:64*a.resolution});if(!x)return null;const b=(0,P.Uy)(new we.Z,x,!1,!1),C=b.coords.filter((K,ie)=>!(ie%2)),M=b.coords.filter((K,ie)=>ie%2),F=Math.min(...C),U=Math.min(...M),D=Math.max(...C),G=Math.max(...M),Q=this._getGeohash(F,U,_),ee=this._getGeohash(D,G,_);return{bounds:c,geohashBounds:{xLL:Q.geohashX,yLL:Q.geohashY,xTR:ee.geohashX,yTR:ee.geohashY},level:_}}_lookupCluster(a,c,_,m,x,b){const C=this._getClusterId(_,m,x),M=this._clusters.get(C),F=this._getClusterBounds(c,m,x),U=this._getGeohashBounds(b,F);if((0,w.Wi)(U))return null;const D=this._tree.getRegionStatistics(U),{count:G,xTotal:Q,yTotal:ee,referenceId:K}=D,ie=G?Q/G:0,le=G?ee/G:0;if(0===G)return this._clusters.set(C,null),null;const ne={cluster_count:G,...D.attributes},de=(0,w.pC)(M)?M.update(ie,le,_,ne,U,K):Ts.create(a,C,ie,le,_,ne,U,K);if(0===G){const[oe,ge,me,pe]=F;de.geometry.coords[0]=(oe+me)/2,de.geometry.coords[1]=(ge+pe)/2}return this._clusters.set(C,de),this._updateAggregateValueRangeForCluster(de,de.tileLevel),de}_updateAggregateValueRangeForCluster(a,c){const _=this._aggregateValueRanges[c]||{minValue:1/0,maxValue:0},m=_.minValue,x=_.maxValue;_.minValue=Math.min(m,a.count),_.maxValue=Math.max(x,a.count),this._aggregateValueRanges[c]=_,m===_.minValue&&x===_.maxValue||(this._aggregateValueRangesChanged=!0)}_markTileClustersForDeletion(a,c){const _=2*c,m=Math.ceil(Re.I_/_),{row:x,col:b}=a.key,M=x*Re.I_,F=Math.floor(b*Re.I_/_),U=Math.floor(M/_);for(let D=F;Da))for(;v.length<=a;)v.push(c)}class vr{constructor(){this._numerics=[],this._strings=[],this._idGenerator=new yr,this._allocatedSize=256,this._bitsets=[],this._instanceIds=[],this._bounds=[]}createBitset(){const a=this._bitsets.length;return this._bitsets.push(Ir.p.create(this._allocatedSize,ve._I)),a+1}getBitset(a){return this._bitsets[a-1]}_expand(){this._allocatedSize<<=1;for(const a of this._bitsets)a.resize(this._allocatedSize)}_ensureNumeric(a,c){this._numerics[a]||(this._numerics[a]=[]),cs(this._numerics[a],c,0)}_ensureInstanceId(a){cs(this._instanceIds,a,0)}_ensureString(a,c){this._strings[a]||(this._strings[a]=[]),cs(this._strings[a],c,null)}createDisplayId(a=!1){const c=this._idGenerator.createId();return c>this._allocatedSize&&this._expand(),(0,ve.QS)(c,a)}releaseDisplayId(a){for(const c of this._bitsets)c.unset(a);return this._idGenerator.releaseId(a&ve._I)}getComputedNumeric(a,c){return this.getComputedNumericAtIndex(a&ve._I,0)}setComputedNumeric(a,c,_){return this.setComputedNumericAtIndex(a&ve._I,_,0)}getComputedString(a,c){return this.getComputedStringAtIndex(a&ve._I,0)}setComputedString(a,c,_){return this.setComputedStringAtIndex(a&ve._I,0,_)}getComputedNumericAtIndex(a,c){const _=a&ve._I;return this._ensureNumeric(c,_),this._numerics[c][_]}setComputedNumericAtIndex(a,c,_){const m=a&ve._I;this._ensureNumeric(c,m),this._numerics[c][m]=_}getInstanceId(a){const c=a&ve._I;return this._ensureInstanceId(c),this._instanceIds[c]}setInstanceId(a,c){const _=a&ve._I;this._ensureInstanceId(_),this._instanceIds[_]=c}getComputedStringAtIndex(a,c){const _=a&ve._I;return this._ensureString(c,_),this._strings[c][_]}setComputedStringAtIndex(a,c,_){const m=a&ve._I;this._ensureString(c,m),this._strings[c][m]=_}getXMin(a){return this._bounds[4*(a&ve._I)]}getYMin(a){return this._bounds[4*(a&ve._I)+1]}getXMax(a){return this._bounds[4*(a&ve._I)+2]}getYMax(a){return this._bounds[4*(a&ve._I)+3]}setBounds(a,c){const _=c.readHydratedGeometry();if(!_||!_.coords.length)return!1;let m=1/0,x=1/0,b=-1/0,C=-1/0;_.forEachVertex((F,U)=>{m=Math.min(m,F),x=Math.min(x,U),b=Math.max(b,F),C=Math.max(C,U)});const M=a&ve._I;return cs(this._bounds,4*M+4,0),this._bounds[4*M]=m,this._bounds[4*M+1]=x,this._bounds[4*M+2]=b,this._bounds[4*M+3]=C,!0}}function Ct(v){if(!(0,j.D_)(v)&&!function Tr(v){return"worker:port-closed"===v.name}(v))throw v}function Ys(v){return"feature"===v.type&&"snapshot"===v.mode}let Xe=class extends X.r{constructor(){super(...arguments),this._storage=new vr,this._markedIdsBufId=this._storage.createBitset(),this._lastCleanup=performance.now(),this._cleanupNeeded=!1,this._invalidated=!1,this._tileToResolver=new Map,this._didEdit=!1,this._updateVersion=1,this.tileStore=null,this.config=null,this.processor=null,this.remoteClient=null,this.service=null}initialize(){this._initStores(),this._initSource(),this._updateQueue=new Qt.e({concurrency:"geoevent"===this._source.type?1:4,process:(v,a)=>this._onTileMessage(v,{signal:a})}),this.handles.add([this.tileStore.on("update",this.onTileUpdate.bind(this)),(0,q.gx)(()=>!this.updating,()=>this.onIdle())]),this._checkUpdating=setInterval(()=>this.notifyChange("updating"),300)}_initSource(){this._source=function Yt(v,a,c,_,m,x){const b=function qs(v,a,c,_,m,x){switch(v.type){case"snapshot":return{type:"feature",origin:"snapshot",featureCount:(0,w.Pt)(v.featureCount,0),serviceInfo:v,onMessage:_,outSR:a,tileInfoView:c,canAcceptRequest:m,store:x};case"stream":return{type:"geoevent",serviceInfo:v,onMessage:_,outSR:a,canAcceptRequest:m};case"memory":case"on-demand":return{type:"feature",serviceInfo:v,onMessage:_,outSR:a,origin:function b(C){return Array.isArray(C)?"local":"path"in C&&(0,N.M8)(C.path)?"hosted":"unknown"}(v.source),tileInfoView:c,canAcceptRequest:m}}}(v,a,c,_,m,x);switch(b.type){case"feature":switch(b.origin){case"hosted":case"local":return new es(b);case"snapshot":return new Is(b);case"unknown":return new ps(b)}case"geoevent":return new It(b)}}(this.service,this.spatialReference,this.tileStore.tileScheme,(_,m)=>(this._invalidated=!0,this._patchTile(_,m)),()=>this._updateQueue.length<50,this.featureStore),this._proxyEvents()}_proxyEvents(){if("geoevent"===this._source.type){const v=this._source.events;this.handles.add([v.on("connectionStatus",a=>this.remoteClient.invoke("setProperty",{propertyName:"connectionStatus",value:a}).catch(Ct)),v.on("errorString",a=>this.remoteClient.invoke("setProperty",{propertyName:"errorString",value:a}).catch(Ct)),v.on("data-received",a=>this.remoteClient.invoke("emitEvent",{name:"data-received",event:{attributes:a.attributes,centroid:a.centroid,geometry:a.geometry}}).catch(Ct)),v.on("updateRate",a=>this.remoteClient.invoke("emitEvent",{name:"update-rate",event:{...a}}).catch(Ct))])}}_initAttributeStore(v){this.attributeStore||(this.attributeStore=new ar({type:"remote",initialize:(a,c)=>(0,j.R8)(this.remoteClient.invoke("tileRenderer.featuresView.attributeView.initialize",a,{signal:c}).catch(Ct)),update:(a,c)=>(0,j.R8)(this.remoteClient.invoke("tileRenderer.featuresView.attributeView.requestUpdate",a,{signal:c}).catch(Ct)),render:a=>(0,j.R8)(this.remoteClient.invoke("tileRenderer.featuresView.requestRender",void 0,{signal:a}).catch(Ct))},v,()=>this.notifyChange("updating")))}_initStores(){this.featureStore=new E.p({geometryInfo:{geometryType:this.service.geometryType,hasM:!1,hasZ:!1},spatialReference:this.spatialReference,fieldsIndex:this.fieldsIndex,fields:this.service.fields},this._storage,"snapshot"===this.service.type?"snapshot":"on-demand")}_initQueryEngine(v){const a=this;this.featureQueryEngine?.destroy(),this.featureQueryEngine=new W.q({definitionExpression:v.schema.source.definitionExpression,fields:this.service.fields,geometryType:this.service.geometryType,objectIdField:this.service.objectIdField,hasM:!1,hasZ:!1,spatialReference:this.spatialReference.toJSON(),cacheSpatialQueries:!0,featureStore:this.featureStore,aggregateAdapter:{getFeatureObjectIds:c=>(0,w.Wi)(a.aggregateStore)?[]:a.aggregateStore.getFeatureDisplayIdsForAggregate(c).map(_=>a.getObjectId(_))},timeInfo:this.service.timeInfo})}_initAggregateQueryEngine(v,a){if(this.aggregateQueryEngine?.destroy(),(0,w.Wi)(v))return;const c=a.targets.aggregate.params.fields.slice();this.aggregateQueryEngine=new W.q({definitionExpression:null,fields:c,geometryType:v.geometryInfo.geometryType,objectIdField:v.objectIdField,hasM:v.geometryInfo.hasM,hasZ:v.geometryInfo.hasZ,spatialReference:this.spatialReference.toJSON(),cacheSpatialQueries:!1,featureStore:v,aggregateAdapter:{getFeatureObjectIds:_=>[]}})}destroy(){this._updateQueue.destroy(),this._source.destroy(),this.featureQueryEngine?.destroy(),this.aggregateQueryEngine?.destroy(),this.attributeStore?.destroy();for(const v of this.tileStore.tiles)this._source.unsubscribe(v);clearInterval(this._checkUpdating)}get fieldsIndex(){return new A.Z(this.service.fields)}get spatialReference(){return this.tileStore.tileScheme.spatialReference}get updating(){return this.isUpdating()}isUpdating(){const v=this._source.updating,a=!!this._updateQueue.length,c=!this.attributeStore||this.attributeStore.isUpdating(),_=v||a||c;return(0,R.Z)("esri-2d-log-updating")&&console.log(`Updating FeatureController2D: ${_}\n -> updatingSource ${v}\n -> updateQueue ${a}\n -> updatingAttributeStore ${c}\n`),_}enableEvent(v){this._source.enableEvent(v.name,v.value)}pause(){this._updateQueue.pause(),this._updateQueue.clear()}resume(){this._updateQueue.resume()}pauseStream(){"geoevent"===this._source.type&&this._source.pauseStream()}resumeStream(){"geoevent"===this._source.type&&this._source.resumeStream()}_initAggregateStore(v){const a=v.schema.targets?.aggregate?.type;if((0,w.yw)(this.config,_=>_.schema.targets?.aggregate?.type)!==a&&((0,w.pC)(this.aggregateStore)&&(this.handles.remove("valueRangesChanged"),this.aggregateStore.destroy(),this.aggregateStore=null),a)){switch(a){case"cluster":this.aggregateStore=new mr({geometryInfo:{geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1},spatialReference:this.spatialReference,fieldsIndex:this.fieldsIndex,fields:this.service.fields},this.spatialReference,this._storage,this.service),this.handles.add(this.aggregateStore.events.on("valueRangesChanged",m=>{this.remoteClient.invoke("emitEvent",{name:"valueRangesChanged",event:{valueRanges:m.valueRanges}}).catch(Ct)}),"valueRangesChanged");break;case"bin":this.aggregateStore=new pr({geometryInfo:{geometryType:"esriGeometryPolygon",hasM:!1,hasZ:!1},spatialReference:this.spatialReference,fieldsIndex:this.fieldsIndex,fields:this.service.fields},this.spatialReference,this._storage,this.service)}this.aggregateStore.onTileUpdate({added:this.tileStore.tiles,removed:[]})}}update(v,a){var c=this;return(0,Z.Z)(function*(){c._updateVersion++,c._initQueryEngine(a),c._initAttributeStore(a),c.pause(),yield Promise.all([c._source.update(v,a.schema.source),c.featureStore.updateSchema(v,a.schema.targets.feature),c.attributeStore.update(v,a),c.attributeStore.updateFilters(v,a,c)]),c._initAggregateStore(a),(0,w.pC)(c.aggregateStore)&&(yield c.aggregateStore.updateSchema(v,a.schema.targets.aggregate)),c._initAggregateQueryEngine(c.aggregateStore,a.schema),(0,R.Z)("esri-2d-update-debug")&&v.describe(),c._set("config",a)})()}applyUpdate(v){var a=this;return(0,Z.Z)(function*(){v.version=a._updateVersion,(0,R.Z)("esri-2d-update-debug")&&console.debug(`Applying update ${v.version}`),v.mesh&&a.clearTiles(),a._updateQueue.resume(),yield a._source.applyUpdate(v),a.notifyChange("updating"),yield(0,q.N1)(()=>!a.updating),(0,w.pC)(a.aggregateStore)&&(yield(0,j.e4)(10),yield(0,q.N1)(()=>!a.updating))})()}onEdits({edits:v}){var a=this;return(0,Z.Z)(function*(){(0,R.Z)("esri-2d-update-debug")&&console.debug("Applying Edit:",v),a._didEdit=!0;try{const c=v.removed.map(m=>m.objectId&&-1!==m.objectId?m.objectId:a._lookupObjectIdByGlobalId(m.globalId)),_=v.addOrModified.map(({objectId:m})=>m);a.featureStore.invalidate(),yield a._source.edit(_,c),a.clearTiles(),a.notifyChange("updating"),(0,w.pC)(a.aggregateStore)&&a.aggregateStore.clear(),yield a._source.resend(),yield(0,q.N1)(()=>!a.updating)}catch{}})()}refresh(v){var a=this;return(0,Z.Z)(function*(){if(!v.dataChanged){const c=Me.empty();return c.storage.filters=!0,a.applyUpdate(c)}a.featureStore.invalidate(),a.clearTiles(),a._source.refresh(a._updateVersion,v),a._cleanupNeeded=!0,a.notifyChange("updating"),yield(0,q.N1)(()=>!a.updating)})()}clearTiles(){for(const v of this.tileStore.tiles)this.processor.onTileClear(v)}onTileUpdate(v){(0,w.pC)(this.aggregateStore)&&this.aggregateStore.onTileUpdate(v);for(const a of v.added)this._source.subscribe(a,this._updateVersion),this._level=a.level;for(const a of v.removed)this._source.unsubscribe(a),this._cleanupNeeded=!0,this._tileToResolver.has(a.id)&&(this._tileToResolver.get(a.id).resolve(),this._tileToResolver.delete(a.id));this.notifyChange("updating")}onIdle(){var v=this;return(0,Z.Z)(function*(){v._invalidated&&(v._invalidated=!1,((0,w.pC)(v.aggregateStore)||"heatmap"===v.processor.type)&&(yield v._repushCurrentLevelTiles())),v._markAndSweep()})()}querySummaryStatistics({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.featureQueryEngine.executeQueryForSummaryStatistics(v,a)})()}queryAggregateSummaryStatistics({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.aggregateQueryEngine.executeQueryForSummaryStatistics(v,a)})()}queryUniqueValues({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.featureQueryEngine.executeQueryForUniqueValues(v,a)})()}queryAggregateUniqueValues({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.aggregateQueryEngine.executeQueryForUniqueValues(v,a)})()}queryClassBreaks({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.featureQueryEngine.executeQueryForClassBreaks(v,a)})()}queryAggregateClassBreaks({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.aggregateQueryEngine.executeQueryForClassBreaks(v,a)})()}queryHistogram({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.featureQueryEngine.executeQueryForHistogram(v,a)})()}queryAggregateHistogram({query:v,params:a}){var c=this;return(0,Z.Z)(function*(){return c.aggregateQueryEngine.executeQueryForHistogram(v,a)})()}queryExtent(v){return this.featureQueryEngine.executeQueryForExtent(v)}queryAggregates(v){return this.aggregateQueryEngine.executeQuery(v)}queryAggregateCount(v){return this.aggregateQueryEngine.executeQueryForCount(v)}queryAggregateIds(v){return this.aggregateQueryEngine.executeQueryForIds(v)}queryFeatures(v){return this.featureQueryEngine.executeQuery(v)}queryVisibleFeatures(v){var a=this;return(0,Z.Z)(function*(){const c=yield a.featureQueryEngine.executeQuery(v),_=c.objectIdFieldName;return c.features=c.features.filter(m=>{const b=a.getDisplayId(m.attributes[_]);return(0,w.yw)(b,C=>a.attributeStore.isVisible(C))}),c})()}queryFeatureCount(v){return this.featureQueryEngine.executeQueryForCount(v)}queryLatestObservations(v){return this.featureQueryEngine.executeQueryForLatestObservations(v)}queryObjectIds(v){return this.featureQueryEngine.executeQueryForIds(v)}queryStatistics(){var v=this;return(0,Z.Z)(function*(){return v.featureStore.storeStatistics})()}getObjectId(v){return this.featureStore.lookupObjectId(v,this._storage)}getDisplayId(v){if((0,w.pC)(this.aggregateStore)){const a=this.aggregateStore.getDisplayId(v);if((0,w.Wi)(a)){const c=this.featureStore.lookupDisplayId(v);return this.aggregateStore.getDisplayIdForReferenceId(c)}return a}return this.featureStore.lookupDisplayId(v)}getFeatures(v){const a=[],c=[];for(const _ of v){const m=(0,w.pC)(this.aggregateStore)?this.getAggregate(_):null;if((0,w.pC)(m))if((0,w.pC)(m.attributes.referenceId)){const x=this.getFeature(m.attributes.referenceId);(0,w.pC)(x)&&a.push(x)}else c.push(m);else{const x=this.getFeature(_);(0,w.pC)(x)&&a.push(x)}}return{features:a,aggregates:c}}getFeature(v){const a=this.featureStore.lookupFeatureByDisplayId(v,this._storage);if((0,w.Wi)(a))return null;const c=a.readHydratedGeometry(),_=(0,P.di)(c,a.geometryType,a.hasZ,a.hasM);return{attributes:a.readAttributes(),geometry:_}}getAggregate(v){return(0,w.Wi)(this.aggregateStore)?null:this.aggregateStore.getAggregate(v)}getAggregates(){return(0,w.Wi)(this.aggregateStore)?[]:this.aggregateStore.getAggregates()}setHighlight(v){var a=this;return(0,Z.Z)(function*(){const c=(0,w.lV)(v.map(_=>a.getDisplayId(_)));return a.attributeStore.setHighlight(v,c)})()}_lookupObjectIdByGlobalId(v){const a=this.service.globalIdField;if((0,w.Wi)(a))throw new Error("Expected globalIdField to be defined");let c=null;if(this.featureStore.forEach(_=>{v===_.readAttribute(a)&&(c=_.getObjectId())}),(0,w.Wi)(c))throw new Error(`Expected to find a feature with globalId ${v}`);return c}_repushCurrentLevelTiles(){var v=this;return(0,Z.Z)(function*(){const a=v.tileStore.tiles.filter(_=>_.level===v._level);a.map(function(){var _=(0,Z.Z)(function*(m){return v._patchTile({type:"append",id:m.key.id,clear:!0,addOrUpdate:null,end:!1})});return function(m){return _.apply(this,arguments)}}());const c=a.map(function(){var _=(0,Z.Z)(function*(m){return v._patchTile({type:"append",id:m.key.id,addOrUpdate:Te.fromOptimizedFeatures([],v.service),remove:[],end:!0,isRepush:!0,status:Me.empty()})});return function(m){return _.apply(this,arguments)}}());yield Promise.all(c)})()}_maybeForceCleanup(){performance.now()-this._lastCleanup>5e3&&this._markAndSweep()}_patchTile(v,a){const c=this._updateQueue.push(v,a).then(()=>{this.notifyChange("updating")}).catch(_=>{this.notifyChange("updating")});return this.notifyChange("updating"),c}_onTileMessage(v,a){var c=this;return(0,Z.Z)(function*(){if((0,j.k_)(a),(0,R.Z)("esri-2d-update-debug")){const b=(0,w.yw)(v.addOrUpdate,C=>C.hasFeatures);console.debug(v.id,`FeatureController:onTileMessage: [clear:${v.clear}, end:${v.end}, features: ${b}]`)}const _=c.tileStore.get(v.id);if(!_)return;if(v.clear)return c.processor.onTileClear(_);const m=v.status;c._cleanupNeeded=!0;const x=[];for(const b of v.remove){const C=c.featureStore.lookupDisplayId(b);C&&x.push(C)}v.remove=x;try{if((0,w.Wi)(v.addOrUpdate))return void c.processor.onTileMessage(_,{...v,addOrUpdate:null},(0,w.pC)(c.aggregateStore),a).catch(j.H9);if(v.addOrUpdate.setArcadeSpatialReference(c.spatialReference),c.featureStore.hasInstance(v.addOrUpdate.instance)&&m.targets.feature||(m.targets.feature=!0,c.featureStore.onTileData(_,v)),(!m.storage.data||!m.storage.filters)&&(m.storage.data=!0,m.storage.filters=!0,c.attributeStore.onTileData(_,v),"geoevent"===c._source.type||c._didEdit?(yield c.attributeStore.sendUpdates(),(0,j.k_)(a)):c.attributeStore.sendUpdates()),(0,w.pC)(c.aggregateStore)&&!m.targets.aggregate){m.targets.aggregate=!0;const b=Ys(c._source)&&c._source.loading,C=!Ys(c._source)||b||v.end;if(c.aggregateStore.onTileData(_,v,c._storage,c.attributeStore,C),!C)return;m.mesh||(c.attributeStore.onTileData(_,v),yield c.attributeStore.sendUpdates())}if(!m.mesh){m.mesh=!0;const b=(0,w.pC)(c.aggregateStore)&&"cluster"===c.aggregateStore.type;yield c.processor.onTileMessage(_,v,b,a),(0,j.k_)(a)}c._maybeForceCleanup()}catch(b){(0,j.H9)(b)}})()}_mark(v,a,c){const _=(4294901760&this._storage.getInstanceId(v))>>>16;v&&(a.add(_),c.set(v))}_markAndSweep(){if(this._lastCleanup=performance.now(),"feature"===this._source.type&&"snapshot"===this._source.mode||"geoevent"!==this._source.type&&!this._cleanupNeeded)return;this._cleanupNeeded=!1;const v=this._storage.getBitset(this._markedIdsBufId),a=new Set;v.clear();for(const c of this.tileStore.tiles)for(const _ of this._source.readers(c.id)){const m=_.getCursor();for(;m.next();){let x=m.getDisplayId();if(!x){const b=m.getObjectId();x=this.featureStore.lookupDisplayId(b)}this._mark(x,a,v)}}"symbol"===this.processor.type&&this.processor.forEachBufferId(c=>{this._mark(c,a,v)}),this._updateQueue.forEach(c=>{for(const _ of c.remove){const m=this.featureStore.lookupDisplayId(_);this._mark(m,a,v)}}),(0,w.pC)(this.aggregateStore)&&(this.aggregateStore.sweepFeatures(v,this.featureStore),"sweepAggregates"in this.aggregateStore&&this.aggregateStore.sweepAggregates(this._storage,this.attributeStore,this._level)),this.featureStore.sweepFeatures(v,this._storage,this.attributeStore),this.featureStore.sweepFeatureSets(a)}};(0,ae._)([(0,$.Cb)({constructOnly:!0})],Xe.prototype,"tileStore",void 0),(0,ae._)([(0,$.Cb)()],Xe.prototype,"config",void 0),(0,ae._)([(0,$.Cb)({readOnly:!0})],Xe.prototype,"fieldsIndex",null),(0,ae._)([(0,$.Cb)()],Xe.prototype,"processor",void 0),(0,ae._)([(0,$.Cb)({constructOnly:!0})],Xe.prototype,"remoteClient",void 0),(0,ae._)([(0,$.Cb)({constructOnly:!0})],Xe.prototype,"service",void 0),(0,ae._)([(0,$.Cb)()],Xe.prototype,"spatialReference",null),(0,ae._)([(0,$.Cb)()],Xe.prototype,"updating",null),Xe=(0,ae._)([(0,se.j)("esri.views.2d.layers.features.controllers.FeatureController2D")],Xe);const Fr=Xe;var Xs=O(81340),Ar=O(84378),Er=O(58098);const zt={added:[],removed:[]},Fs=new Set,Mr=new Er.Z(0,0,0,0);class wr extends Pt.Z{constructor(a){super(),this._tiles=new Map,this._index=(0,as.r)(9,(0,R.Z)("esri-csp-restrictions")?c=>({minX:c.bounds[0],minY:c.bounds[1],maxX:c.bounds[2],maxY:c.bounds[3]}):[".bounds[0]",".bounds[1]",".bounds[2]",".bounds[3]"]),this.tiles=[],this.tileScheme=a}destroy(){this.clear()}clear(){this.tiles.length=0,this._tiles.clear(),this._index.clear()}has(a){return this._tiles.has(a)}get(a){return this._tiles.get(a)}boundsIntersections(a){return this._index.search({minX:a[0],minY:a[1],maxX:a[2],maxY:a[3]})}updateTiles(a){const c={added:[],removed:[]};for(const _ of a.added)if(!this.has(_)){const m=new Xs.n(this.tileScheme,_);this._tiles.set(_,m),this._index.insert(m),c.added.push(m)}for(const _ of a.removed)if(this.has(_)){const m=this.get(_);this._tiles.delete(_),this._index.remove(m),c.removed.push(m)}this.tiles.length=0,this._tiles.forEach(_=>this.tiles.push(_)),(c.added.length||c.removed.length)&&this.emit("update",c)}setViewState(a){const c=this.tileScheme.getTileCoverage(a,0);if(!c)return;const{spans:_,lodInfo:m}=c,{level:x}=m;if(_.length>0)for(const{row:b,colFrom:C,colTo:M}of _)for(let F=C;F<=M;F++){const U=Mr.set(x,b,m.normalizeCol(F),m.getWorldForColumn(F)).id;if(Fs.add(U),!this.has(U)){const D=new Xs.n(this.tileScheme,U);this._tiles.set(U,D),this._index.insert(D),this.tiles.push(D),zt.added.push(D)}}for(let b=this.tiles.length-1;b>=0;b--){const C=this.tiles[b];Fs.has(C.id)||(this._tiles.delete(C.id),this.tiles.splice(b,1),this._index.remove(C),zt.removed.push(C))}(zt.added.length||zt.removed.length)&&this.emit("update",zt),Ar.Z.pool.release(c),Fs.clear(),zt.added.length=0,zt.removed.length=0}}var Dr=O(9598);let Gt=class extends X.r{constructor(){super(...arguments),this.controller=null,this.processor=null,this.remoteClient=null,this.tileStore=null,this.service=null,this.viewState=null,this._paused=!1,this._pendingTileUpdates=[]}initialize(){this.handles.add((0,q.YP)(()=>this.updating,v=>{this.remoteClient.invoke("setUpdating",v).catch(a=>{})}))}destroy(){this.stop(),this.controller?.destroy(),this.processor?.destroy(),this.controller=this.processor=this.tileStore=this.remoteClient=null}get updating(){return!this.controller||this.controller.updating}stop(){this._paused=!0,Array.isArray(this.service?.source)&&(this.service.source.forEach(v=>v.close()),this.service.source.length=0),this.tileStore?.updateTiles({added:[],removed:this.tileStore.tiles.map(v=>v.id)}),this.tileStore?.destroy(),this.tileStore=null,this._pendingTileUpdates.length=0}startup({service:v,config:a,tileInfo:c,tiles:_}){var m=this;return(0,Z.Z)(function*(){if(m._paused=!0,Array.isArray(m.service?.source)&&(m.service.source.forEach(x=>x.close()),m.service.source.length=0),m.service=v,!m.tileStore||!(0,ce.fS)(m.tileStore.tileScheme.spatialReference,c.spatialReference)){const x=new Dr.Z(V.Z.fromJSON(c));_.added.length=_.removed.length=0,m.tileStore?.updateTiles({added:[],removed:m.tileStore.tiles.map(b=>b.id)}),m.tileStore?.destroy(),m.tileStore=new wr(x),m._pendingTileUpdates.length=0}for(yield m._createProcessorAndController(a),yield m.update({config:a}),m.controller.resume(),m.tileStore.clear(),m.tileStore.updateTiles(_),m._paused=!1;m._pendingTileUpdates.length;)m.tileStore.updateTiles(m._pendingTileUpdates.pop())})()}updateTiles(v){var a=this;return(0,Z.Z)(function*(){a._paused?a._pendingTileUpdates.push(v):a.tileStore.updateTiles(v)})()}update({config:v}){var a=this;return(0,Z.Z)(function*(){const c=Me.empty();return yield Promise.all([a.processor.update(c,v),a.controller.update(c,v)]),c.toJSON()})()}applyUpdate(v){var a=this;return(0,Z.Z)(function*(){return a.controller.applyUpdate(Me.create(v))})()}_createProcessorAndController(v){var a=this;return(0,Z.Z)(function*(){yield Promise.all([a._handleControllerConfig(v),a._handleProcessorConfig(v)]),a.controller.processor=a.processor})()}_handleControllerConfig(v){var a=this;return(0,Z.Z)(function*(){return a._createController(a.service,v)})()}_handleProcessorConfig(v){var a=this;return(0,Z.Z)(function*(){return a._createProcessor(a.service,v)})()}_createController(v,a){var c=this;return(0,Z.Z)(function*(){c.controller&&c.controller.destroy();const{tileStore:_,remoteClient:m}=c,x=new Fr({service:v,tileStore:_,remoteClient:m});return c.controller=x,x})()}_createProcessor(v,a){var c=this;return(0,Z.Z)(function*(){const _=a.schema.processors[0].type,m=(yield function k(v){return"heatmap"===v?Promise.all([O.e(8592),O.e(7434)]).then(O.bind(O,67434)):Promise.all([O.e(3751),O.e(3678),O.e(4522),O.e(8592),O.e(8460)]).then(O.bind(O,28460))}(_)).default,{remoteClient:x,tileStore:b}=c,C=new m({service:v,config:a,tileStore:b,remoteClient:x});return c.processor&&c.processor.destroy(),c.processor=C,C})()}};(0,ae._)([(0,$.Cb)()],Gt.prototype,"controller",void 0),(0,ae._)([(0,$.Cb)()],Gt.prototype,"processor",void 0),(0,ae._)([(0,$.Cb)()],Gt.prototype,"updating",null),(0,ae._)([(0,$.Cb)()],Gt.prototype,"viewState",void 0),Gt=(0,ae._)([(0,se.j)("esri.views.2d.layers.features.Pipeline")],Gt);const Rr=Gt},16669:(Ne,xe,O)=>{O.d(xe,{J:()=>se});var Z=O(15861),ae=O(8314),X=O(62208),R=O(84682),q=O(46679),$=O(63290);const Y=Promise.resolve().then(O.bind(O,22445));class se{constructor(V,k){this._canCacheExpressionValue=!1,this._sourceInfo=V,this._storage=k,this._bitsets={computed:k.getBitset(k.createBitset())}}get storage(){return this._storage}invalidate(){this._bitsets.computed.clear()}updateSchema(V,k){var w=this;return(0,Z.Z)(function*(){const j=(0,R.Hg)(w._schema,k);if(w._schema=k,!k||(0,X.Wi)(j)||!(0,R.uD)(j,"attributes"))return;(0,ae.Z)("esri-2d-update-debug")&&console.debug("Applying Update - Store:",j),w._bitsets.computed.clear(),V.targets[k.name]=!0;const P=k.attributes,W=[],A=[];for(const E in P){const N=P[E];switch(N.type){case"field":break;case"expression":W.push(w._createArcadeComputedField(N));break;case"label-expression":W.push(w._createLabelArcadeComputedField(N));break;case"statistic":A.push(N)}}w._computedFields=yield Promise.all(W),w._canCacheExpressionValue=!w._computedFields.some(E=>"expression"===E.type&&(0,X.pC)(E.expression)&&E.expression.referencesScale()),w._statisticFields=A})()}setComputedAttributes(V,k,w,j){const P=this._bitsets.computed;if(!this._canCacheExpressionValue||!P.has(w)){P.set(w);for(const W of this._computedFields){const A=this._evaluateField(k,W,j);switch(W.resultType){case"numeric":V.setComputedNumericAtIndex(w,W.fieldIndex,A);break;case"string":V.setComputedStringAtIndex(w,W.fieldIndex,A)}}}}_createArcadeComputedField(V){var k=this;return(0,Z.Z)(function*(){const w=k._sourceInfo.spatialReference,j=k._sourceInfo.fieldsIndex;return{...V,expression:yield(0,q.Yi)(V.valueExpression,w,j)}})()}_createLabelArcadeComputedField(V){var k=this;return(0,Z.Z)(function*(){const w=k._sourceInfo.spatialReference,j=k._sourceInfo.fieldsIndex,{createLabelFunction:P}=yield Y,W=yield P(V.label,j,w);return{...V,builder:W}})()}_evaluateField(V,k,w){switch(k.type){case"label-expression":{const j=V.readArcadeFeature();return k.builder.evaluate(j)||""}case"expression":{const{expression:j}=k;return function Ie(ce,V,k){if((0,X.Wi)(ce))return null;const w=V.readArcadeFeature();try{return ce.evaluate({...k,$feature:w})}catch(j){return $.Z.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",j),null}}(j,V,{$view:{scale:w}})}}}}},25208:(Ne,xe,O)=>{O.d(xe,{s:()=>H}),O(29132);var ae=O(8314),X=O(62208),R=O(77044),q=O(82054),$=O(88071),Ie=O(42797),Y=O(91179);let se=0;const ce=(0,ae.Z)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],V=ce[0],k=ce[1],w=ce[2],j=ce[3],P=(0,ae.Z)("featurelayer-simplify-payload-size-factors")??[1,2,4],W=P[0],A=P[1],E=P[2],N=(0,ae.Z)("featurelayer-simplify-mobile-factor")??2,z=(0,ae.Z)("esri-mobile");class H{constructor(L,J){this.type="FeatureSetReader",this.arcadeDeclaredClass="esri.arcade.Feature",this.seen=!1,this.instance=0,this._tx=0,this._ty=0,this._sx=1,this._sy=1,this._deleted=null,this._joined=[],this._objectIdToIndex=null,this._level=0,this.instance=L,this._layerSchema=J}static createInstance(){return se++,se=se>65535?0:se,se}get isEmpty(){return(0,X.pC)(this._deleted)&&this._deleted.countSet()===this.getSize()}set level(L){this._level=L}getAreaSimplificationThreshold(L,J){let te=1;const ue=z?N:1;J>4e6?te=E*ue:J>1e6?te=A*ue:J>5e5?te=W*ue:J>1e5&&(te=ue);let he=0;L>4e3?he=j*te:L>2e3?he=w*te:L>100?he=k:L>15&&(he=V);let Ce=8;return this._level<4?Ce=1:this._level<5?Ce=2:this._level<6&&(Ce=4),he*Ce}createQuantizedExtrudedQuad(L,J){return new $.Z([5],[L-1,J,1,-1,1,1,-1,1,-1,-1])}setArcadeSpatialReference(L){this._arcadeSpatialReference=L}attachStorage(L){this._storage=L}getQuantizationTransform(){throw new Error("Unable to find transform for featureSet")}getStorage(){return this._storage}getComputedNumeric(L){return this.getComputedNumericAtIndex(0)}setComputedNumeric(L,J){return this.setComputedNumericAtIndex(J,0)}getComputedString(L){return this.getComputedStringAtIndex(0)}setComputedString(L,J){return this.setComputedStringAtIndex(0,J)}getComputedNumericAtIndex(L){return this._storage.getComputedNumericAtIndex(this.getDisplayId(),L)}setComputedNumericAtIndex(L,J){this._storage.setComputedNumericAtIndex(this.getDisplayId(),L,J)}getComputedStringAtIndex(L){return this._storage.getComputedStringAtIndex(this.getDisplayId(),L)}setComputedStringAtIndex(L,J){return this._storage.setComputedStringAtIndex(this.getDisplayId(),L,J)}transform(L,J,te,ue){const he=this.copy();return he._tx+=L,he._ty+=J,he._sx*=te,he._sy*=ue,he}readAttribute(L,J=!1){const te=this._readAttribute(L,J);if(void 0!==te)return te;for(const ue of this._joined){ue.setIndex(this.getIndex());const he=ue._readAttribute(L,J);if(void 0!==he)return he}}readAttributes(){const L=this._readAttributes();for(const J of this._joined){J.setIndex(this.getIndex());const te=J._readAttributes();for(const ue of Object.keys(te))L[ue]=te[ue]}return L}joinAttributes(L){this._joined.push(L)}readArcadeFeature(){return this}geometry(){const L=this.readHydratedGeometry(),J=(0,q.di)(L,this.geometryType,this.hasZ,this.hasM),te=(0,Y.im)(J);return te&&(te.spatialReference=this._arcadeSpatialReference),te}field(L){if(this.hasField(L))return this.readAttribute(L,!0);for(const J of this._joined)if(J.setIndex(this.getIndex()),J.hasField(L))return J._readAttribute(L,!0);throw new Error(`Field ${L} does not exist`)}setField(L,J){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.getFieldNames()}castToText(L=!1){if(!L)return JSON.stringify(this.readLegacyFeature());const J=this.readLegacyFeature();if(!J)return JSON.stringify(null);const te={geometry:J.geometry,attributes:{...J.attributes?J.attributes:{}}};for(const ue in te.attributes){const he=te.attributes[ue];he instanceof Date&&(te.attributes[ue]=he.getTime())}return JSON.stringify(te)}gdbVersion(){return null}fullSchema(){return this._layerSchema}castAsJson(L=null){return{attributes:this._readAttributes(),geometry:!0===L?.keepGeometryType?this.geometry():this.geometry().toJSON()}}castAsJsonAsync(L=null,J=null){return Promise.resolve(this.castAsJson(J))}removeIds(L){if((0,X.Wi)(this._objectIdToIndex)){const te=new Map,ue=this.getCursor();for(;ue.next();){const he=(0,X.s3)(ue.getObjectId());te.set(he,ue.getIndex())}this._objectIdToIndex=te}const J=this._objectIdToIndex;for(const te of L)J.has(te)&&this.removeAtIndex(J.get(te))}removeAtIndex(L){(0,X.Wi)(this._deleted)&&(this._deleted=Ie.p.create(this.getSize())),this._deleted.set(L)}readGeometryForDisplay(){return this.readUnquantizedGeometry(!0)}readLegacyGeometryForDisplay(){return this.readLegacyGeometry(!0)}*features(){const L=this.getCursor();for(;L.next();)yield L.readOptimizedFeature()}_getExists(){return(0,X.Wi)(this._deleted)||!this._deleted.has(this.getIndex())}_computeCentroid(){if("esriGeometryPolygon"!==this.geometryType)return null;const L=this.readUnquantizedGeometry();if(!L||L.hasIndeterminateRingOrder)return null;const J=(0,X.Pt)(this.getQuantizationTransform(),null);return(0,R.Y)(new $.Z,L,this.hasM,this.hasZ,J)}copyInto(L){L.seen=this.seen,L._storage=this._storage,L._arcadeSpatialReference=this._arcadeSpatialReference,L._joined=this._joined,L._tx=this._tx,L._ty=this._ty,L._sx=this._sx,L._sy=this._sy,L._deleted=this._deleted,L._objectIdToIndex=this._objectIdToIndex}}},52397:(Ne,xe,O)=>{O.d(xe,{t:()=>ae});var Z=O(25208);class ae extends Z.s{constructor(R,q){super(Z.s.createInstance(),R.fullSchema()),this._currentIndex=-1,this._reader=R,this._indices=q}static from(R,q){return new ae(R.copy(),q)}get hasNext(){return this._currentIndex+1{O.d(xe,{p:()=>Z});class Z{constructor(X,R){this._mask=0,this._buf=X,this._mask=R}static fromBuffer(X,R){return new Z(X,R)}static create(X,R=4294967295){const q=new Uint32Array(Math.ceil(X/32));return new Z(q,R)}_getIndex(X){return Math.floor(X/32)}has(X){const R=this._mask&X;return!!(this._buf[this._getIndex(R)]&1<>>=1,$++}}countSet(){let X=0;return this.forEachSet(R=>{X++}),X}}},81340:(Ne,xe,O)=>{O.d(xe,{n:()=>$});var Z=O(35575),ae=O(2004),X=O(65401),R=O(89621),q=O(58098);class ${constructor(Y,se){this.key=new q.Z(0,0,0,0),this.bounds=(0,X.Ue)(),this.objectIds=new Set,this.key.set(se);const ce=Y.getLODInfoAt(this.key);this.tileInfoView=Y,this.tileInfoView.getTileBounds(this.bounds,this.key,!0),this.resolution=ce.resolution,this.scale=ce.scale,this.level=ce.level}get id(){return this.key.id}get extent(){return ae.Z.fromBounds(this.bounds,this.tileInfoView.tileInfo.spatialReference)}get transform(){return{originPosition:"upperLeft",scale:[this.resolution,this.resolution],translate:[this.bounds[0],this.bounds[3]]}}createChildTiles(){const Y=this.key.getChildKeys(),se=Z.Z.acquire();for(let ce=0;ce{O.d(xe,{e:()=>$});var Z=O(62208),ae=O(10699),X=O(35133),R=O(50618);class q{constructor(Y,se){this.item=Y,this.controller=se,this.promise=null}}class ${constructor(Y){this._deferreds=new Map,this._controllers=new Map,this._processingItems=new Map,this._isPaused=!1,this._schedule=null,this._task=null,this.concurrency=1,Y.concurrency&&(this.concurrency=Y.concurrency),this._queue=new X.Z(Y.peeker),this.process=Y.process;const se=Y.scheduler;Y.priority&&(0,Z.pC)(se)&&(this._task=se.registerTask(Y.priority,this))}destroy(){this.clear(),this._schedule&&(this._schedule.remove(),this._schedule=null),this._task&&(this._task.remove(),this._task=null)}get length(){return this._processingItems.size+this._queue.length}abort(Y){const se=this._controllers.get(Y);se&&se.abort()}clear(){this._queue.clear();const Y=[];this._controllers.forEach(se=>Y.push(se)),this._controllers.clear(),Y.forEach(se=>se.abort()),this._processingItems.clear(),this._cancelNext()}forEach(Y){this._deferreds.forEach((se,ce)=>Y(ce))}get(Y){const se=this._deferreds.get(Y);return se?se.promise:void 0}isOngoing(Y){return this._processingItems.has(Y)}has(Y){return this._deferreds.has(Y)}pause(){this._isPaused||(this._isPaused=!0,this._cancelNext())}push(Y,se){const ce=this.get(Y);if(ce)return ce;const V=new AbortController;let k=null;se&&(k=(0,ae.fu)(se,()=>V.abort()));const j=()=>{P.remove(),(0,Z.pC)(k)&&k.remove(),this._deferreds.delete(Y),this._controllers.delete(Y),this._queue.remove(Y),this._processingItems.delete(Y),this._scheduleNext()},P=(0,ae.$F)(V.signal,()=>{const A=this._processingItems.get(Y);A&&A.controller.abort(),j(),W.reject((0,ae.zE)())}),W=(0,ae.dD)();return this._deferreds.set(Y,W),this._controllers.set(Y,V),W.promise.then(j,j),this._queue.push(Y),this._scheduleNext(),W.promise}last(){return this._queue.last()}peek(){return this._queue.peek()}popLast(){return this._queue.popLast()}reset(){const Y=[];this._processingItems.forEach(se=>Y.push(se)),this._processingItems.clear();for(const se of Y)this._queue.push(se.item),se.controller.abort();this._scheduleNext()}resume(){this._isPaused&&(this._isPaused=!1,this._scheduleNext())}takeAll(){const Y=[];for(;this._queue.length;)Y.push(this._queue.pop());return this.clear(),Y}get running(){return!this._isPaused&&this._queue.length>0&&this._processingItems.size0&&this._processingItems.size{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.sizethis._processResult(V,k),k=>this._processError(V,k))):this._processResult(V,se)}get test(){return{update:Y=>this.runTask(Y)}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1299.ad5e8ff1797660c0.js b/apps/n/porrtal-io-app/public/angular/1299.ad5e8ff1797660c0.js deleted file mode 100644 index e0629aa2..00000000 --- a/apps/n/porrtal-io-app/public/angular/1299.ad5e8ff1797660c0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1299],{1299:(y,s,i)=>{i.r(s),i.d(s,{f:()=>f});var d,h,t,u=i(1719),r={exports:{}};d=r,void 0!==(t=r.exports,Object.defineProperty(t,"__esModule",{value:!0}),h=void(t.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"jKr.",_era_bc:"eKr.",A:"ap.",P:"ip.",AM:"ap.",PM:"ip.","A.M.":"ap.","P.M.":"ip.",January:"tammikuuta",February:"helmikuuta",March:"maaliskuuta",April:"huhtikuuta",May:"toukokuuta",June:"kes\xe4kuuta",July:"hein\xe4kuuta",August:"elokuuta",September:"syyskuuta",October:"lokakuuta",November:"marraskuuta",December:"joulukuuta",Jan:"tammik.",Feb:"helmik.",Mar:"maalisk.",Apr:"huhtik.","May(short)":"toukok.",Jun:"kes\xe4k.",Jul:"hein\xe4k.",Aug:"elok.",Sep:"syysk.",Oct:"lokak.",Nov:"marrask.",Dec:"jouluk.",Sunday:"sunnuntaina",Monday:"maanantaina",Tuesday:"tiistaina",Wednesday:"keskiviikkona",Thursday:"torstaina",Friday:"perjantaina",Saturday:"lauantaina",Sun:"su",Mon:"ma",Tue:"ti",Wed:"ke",Thu:"to",Fri:"pe",Sat:"la",_dateOrd:function(a){var e="th";if(a<11||a>13)switch(a%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Tarkennus",Play:"Toista",Stop:"Lopeta",Legend:"Selite","Click, tap or press ENTER to toggle":"",Loading:"Ladataan",Home:"Aloitussivu",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Tulosta",Image:"kuva",Data:"Data",Print:"Tulosta","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Mist\xe4 %1 mihin %2","From %1":"Mist\xe4 %1","To %1":"Mihin %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(d.exports=h);const f=function c(_,t){for(var a=0;ae[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,u.g)(r.exports)},[r.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1317.572d2160f81ce163.js b/apps/n/porrtal-io-app/public/angular/1317.572d2160f81ce163.js deleted file mode 100644 index 6e55325b..00000000 --- a/apps/n/porrtal-io-app/public/angular/1317.572d2160f81ce163.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1317],{61317:(l,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(28347),_(43703),_(35283),_(69960),_(65787),_(17625),_(63123),_(22355),_(16396);var E=_(45695)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1318.81b1f6f153298ee7.js b/apps/n/porrtal-io-app/public/angular/1318.81b1f6f153298ee7.js deleted file mode 100644 index 86a6f39a..00000000 --- a/apps/n/porrtal-io-app/public/angular/1318.81b1f6f153298ee7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1318],{21318:(l,r,_)=>{_.r(r),_.d(r,{TerrainTileTree3DDebugger:()=>e});var E=_(17626),o=(_(29132),_(62208)),a=_(32917),n=(_(63290),_(90912),_(85931),_(26584),_(8314),_(76898)),D=_(65401),P=_(73187),T=_(37118);let e=class extends P.q{constructor(s){super(s),this.enablePolygons=!1}initialize(){(0,a.YP)(()=>this.enabled,s=>this.view.basemapTerrain.renderPatchBorders=s,a.nn)}getTiles(){const s=(0,o.pC)(this.view.basemapTerrain.spatialReference)?this.view.basemapTerrain.spatialReference:null;return this.view.basemapTerrain.test.getRenderedTiles().map(t=>({...t,geometry:T.Z.fromExtent((0,D.HH)(t.extent,s))}))}};e=(0,E._)([(0,n.j)("esri.views.3d.layers.support.TerrainTileTree3DDebugger")],e)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1329.c2e1ccdd4331160d.js b/apps/n/porrtal-io-app/public/angular/1329.c2e1ccdd4331160d.js deleted file mode 100644 index 78faa168..00000000 --- a/apps/n/porrtal-io-app/public/angular/1329.c2e1ccdd4331160d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1329],{50017:(K,j,T)=>{T.d(j,{Y6:()=>Y});var R,w,G=T(67831),m=T(99770),C=T(84161),A=T(28093),N=T(993),L=T(4794),S=T(72642);(w=R||(R={}))[w.Z=0]="Z",w[w.M=1]="M";class H{constructor(i){this.spatialReference=i}createVector(){return this._tag((0,m.a)())}pointToVector(i){return this._tag((0,m.f)(i.x,i.y))}arrayToVector(i){return this._tag((0,m.f)(i[0],i[1]))}vectorToArray(i){return[i[0],i[1]]}pointToArray(i){return[i.x,i.y]}vectorToPoint(i,d=new S.Z){return d.x=i[0],d.y=i[1],d.z=void 0,d.m=void 0,d.spatialReference=this.spatialReference,d}arrayToPoint(i,d=new S.Z){return d.x=i[0],d.y=i[1],d.z=void 0,d.m=void 0,d.spatialReference=this.spatialReference,d}vectorToDehydratedPoint(i,d={x:void 0,y:void 0,z:void 0,m:void 0,hasZ:void 0,hasM:void 0,spatialReference:void 0,type:"point"}){return d.x=i[0],d.y=i[1],d.z=void 0,d.m=void 0,d.hasZ=!1,d.hasM=!1,d.spatialReference=this.spatialReference,d}lerp(i,d,p,u){return(0,G.l)(u,i,d,p)}addDelta(i,d,p){i[0]+=d,i[1]+=p}distance(i,d){return(0,G.d)(i,d)}getZ(i,d){return d}hasZ(){return!1}getM(i,d){return d}hasM(){return!1}clone(i){return this._tag((0,m.b)(i))}copy(i,d){return(0,G.c)(d,i)}fromXYZ(i){return this._tag((0,m.f)(i[0],i[1]))}toXYZ(i,d=(0,A.c)()){return(0,C.s)(d,i[0],i[1],0)}equals(i,d){return(0,G.o)(i,d)}_tag(i){return i}}class k{constructor(i,d){this._valueType=i,this.spatialReference=d}createVector(){return this._tag((0,A.c)())}pointToVector(i){return this._tag((0,A.f)(i.x,i.y,this._valueType===R.Z?i.z:i.m))}arrayToVector(i){return this._tag((0,A.f)(i[0],i[1],i[2]||0))}vectorToArray(i){return[i[0],i[1],i[2]]}pointToArray(i){return this._valueType===R.Z?[i.x,i.y,i.z]:[i.x,i.y,i.m]}vectorToPoint(i,d=new S.Z){return d.x=i[0],d.y=i[1],d.z=this._valueType===R.Z?i[2]:void 0,d.m=this._valueType===R.M?i[2]:void 0,d.spatialReference=this.spatialReference,d}arrayToPoint(i,d=new S.Z){return d.x=i[0],d.y=i[1],d.z=this._valueType===R.Z?i[2]:void 0,d.m=this._valueType===R.M?i[2]:void 0,d.spatialReference=this.spatialReference,d}vectorToDehydratedPoint(i,d={x:void 0,y:void 0,z:void 0,m:void 0,hasZ:void 0,hasM:void 0,spatialReference:void 0,type:"point"}){const p=this._valueType===R.Z,u=this._valueType===R.M;return d.x=i[0],d.y=i[1],d.z=p?i[2]:void 0,d.m=u?i[2]:void 0,d.hasZ=p,d.hasM=u,d.spatialReference=this.spatialReference,d}lerp(i,d,p,u){return(0,C.h)(u,i,d,p)}addDelta(i,d,p,u){i[0]+=d,i[1]+=p,this._valueType===R.Z&&(i[2]+=u)}distance(i,d){return this._valueType===R.Z?(0,C.i)(i,d):(0,G.d)(i,d)}getZ(i,d){return this._valueType===R.Z?i[2]:d}hasZ(){return this._valueType===R.Z}getM(i,d){return this._valueType===R.M?i[2]:d}hasM(){return this._valueType===R.M}clone(i){return this._tag((0,A.d)(i))}copy(i,d){return(0,C.c)(d,i)}fromXYZ(i,d=0,p=0){return this._tag((0,A.f)(i[0],i[1],this._valueType===R.Z?i.length>2?i[2]:d:p))}toXYZ(i,d=(0,A.c)()){return(0,C.s)(d,i[0],i[1],this._valueType===R.Z?i[2]:0)}equals(i,d){return(0,C.F)(i,d)}_tag(i){return i}}class X{constructor(i){this.spatialReference=i}createVector(){return this._tag((0,L.c)())}pointToVector(i){return this._tag((0,L.f)(i.x,i.y,i.z,i.m))}arrayToVector(i){return this._tag((0,L.f)(i[0],i[1],i[2]||0,i[3]||0))}vectorToArray(i){return[i[0],i[1],i[2],i[3]]}pointToArray(i){return[i.x,i.y,i.z,i.m]}vectorToPoint(i,d=new S.Z){return d.x=i[0],d.y=i[1],d.z=i[2],d.m=i[3],d.spatialReference=this.spatialReference,d}arrayToPoint(i,d=new S.Z){return d.x=i[0],d.y=i[1],d.z=i[2],d.m=i[3],d.spatialReference=this.spatialReference,d}vectorToDehydratedPoint(i,d={x:void 0,y:void 0,z:void 0,m:void 0,hasZ:void 0,hasM:void 0,spatialReference:void 0,type:"point"}){return d.x=i[0],d.y=i[1],d.z=i[2],d.m=i[3],d.hasZ=!0,d.hasM=!0,d.spatialReference=this.spatialReference,d}lerp(i,d,p,u){return(0,N.l)(u,i,d,p)}addDelta(i,d,p,u){i[0]+=d,i[1]+=p,i[2]+=u}distance(i,d){return(0,C.i)(i,d)}getZ(i){return i[2]}hasZ(){return!0}getM(i){return i[3]}hasM(){return!0}clone(i){return this._tag((0,L.b)(i))}copy(i,d){return(0,N.c)(d,i)}fromXYZ(i,d=0,p=0){return this._tag((0,L.f)(i[0],i[1],i.length>2?i[2]:d,p))}toXYZ(i,d=(0,A.c)()){return(0,C.s)(d,i[0],i[1],i[2])}equals(i,d){return(0,N.h)(i,d)}_tag(i){return i}}function Y(w,i,d){return w&&i?new X(d):i?new k(R.M,d):w?new k(R.Z,d):new H(d)}},466:(K,j,T)=>{T.d(j,{wA:()=>w,kS:()=>Y,XE:()=>i,Xz:()=>X});var G=T(85931),m=T(61885),C=T(62208),A=T(37118),N=T(55214),L=T(50017),S=T(37053),R=T(59617);class X{constructor(p){this.component=p,this.leftEdge=null,this.rightEdge=null,this.type="vertex",this.index=null}get pos(){return this._pos}set pos(p){this._pos=p,this.component.unnormalizeVertexPositions()}}class Y{constructor(p,u,v){this.component=p,this.leftVertex=u,this.rightVertex=v,this.type="edge",u.rightEdge=this,v.leftEdge=this}}class w{constructor(p,u){this._spatialReference=p,this._viewingMode=u,this.vertices=[],this.edges=[]}unnormalizeVertexPositions(){this.vertices.length<=1||function H(d,p){if(!p.supported)return;let u=1/0,v=-1/0;const E=p.upperBoundX-p.lowerBoundX;d.forEach(y=>{let g=y.pos[0];for(;gp.upperBoundX;)g-=E;u=Math.min(u,g),v=Math.max(v,g),y.pos[0]=g});const _=v-u;E-_<_&&d.forEach(y=>{y.pos[0]<0&&(y.pos[0]+=E)})}(this.vertices,function k(d,p){const u=(0,S.C5)(d);return p===R.JY.Global&&u?{supported:!0,lowerBoundX:u.valid[0],upperBoundX:u.valid[1]}:{supported:!1,lowerBoundX:null,upperBoundX:null}}(this._spatialReference,this._viewingMode))}updateVertexIndex(p,u){if(0===this.vertices.length)return;const v=this.vertices[0];let E=null,_=p,y=u;do{E=_,E.index=y++,_=E.rightEdge?E.rightEdge.rightVertex:null}while(null!=_&&_!==v);E.leftEdge&&E!==this.vertices[this.vertices.length-1]&&this.swapVertices(this.vertices.indexOf(E),this.vertices.length-1)}getFirstVertex(){return 0===this.vertices.length?null:this.vertices[0]}getLastVertex(){return 0===this.vertices.length?null:this.vertices[this.vertices.length-1]}isClosed(){return this.vertices.length>2&&null!==this.vertices[0].leftEdge}swapVertices(p,u){const v=this.vertices[p];this.vertices[p]=this.vertices[u],this.vertices[u]=v}iterateVertices(p){if(0===this.vertices.length)return;const u=this.vertices[0];let v=u;do{p(v,v.index),v=(0,C.pC)(v.rightEdge)?v.rightEdge.rightVertex:null}while(v!==u&&null!=v)}}class i extends m.Z{constructor(p,u){super(),this.type=p,this.coordinateHelper=u,this._geometry=null,this._dirty=!0,this.components=[]}get geometry(){if(this._dirty){switch(this.type){case"point":this._geometry=this._toPoint();break;case"polyline":this._geometry=this._toPolyline();break;case"polygon":this._geometry=this._toPolygon()}this._dirty=!1}return this._geometry}get spatialReference(){return this.coordinateHelper.spatialReference}notifyChanges(p){this._dirty=!0,this.emit("change",p)}_toPoint(){return 0===this.components.length||0===this.components[0].vertices.length?null:this.coordinateHelper.vectorToPoint(this.components[0].vertices[0].pos)}_toPolyline(){const p=[],u=this.coordinateHelper.vectorToArray;for(const v of this.components){if(v.vertices.length<1)continue;const E=[];let _=v.vertices.find(g=>null==g.leftEdge);const y=_;do{E.push(u(_.pos)),_=_.rightEdge?_.rightEdge.rightVertex:null}while(_&&_!==y);p.push(E)}return new N.Z({paths:p,spatialReference:this.spatialReference,hasZ:this.coordinateHelper.hasZ(),hasM:this.coordinateHelper.hasM()})}_toPolygon(){const p=[],u=this.coordinateHelper.vectorToArray;for(const v of this.components){if(v.vertices.length<1)continue;const E=[],_=v.vertices[0];let y=_;const g=y;do{E.push(u(y.pos)),y=(0,C.pC)(y.rightEdge)?y.rightEdge.rightVertex:null}while(y&&y!==g);v.isClosed()&&E.push(u(_.pos)),p.push(E)}return new A.Z({rings:p,spatialReference:this.spatialReference,hasZ:this.coordinateHelper.hasZ(),hasM:this.coordinateHelper.hasM()})}static fromGeometry(p,u){const v=p.spatialReference,E=(0,L.Y6)(p.hasZ,p.hasM,v),_=new i(p.type,E);switch(p.type){case"polygon":{const y=p.rings;for(let g=0;g2&&(0,G.fS)(M[0],M[M.length-1]),U=I?M.length-1:M.length;for(let Z=0;Z{T.d(j,{c:()=>z});var A,P,S,G=T(61885),m=T(62208),C=T(466);(P=A||(A={}))[P.NEW_STEP=0]="NEW_STEP",P[P.ACCUMULATE_STEPS=1]="ACCUMULATE_STEPS";class N{constructor(e,h,l){this._editGeometry=e,this._component=h,this._pos=l,this._addedVertex=null,this._originalEdge=null,this._left=null,this._right=null}apply(){let e="redo";(0,m.Wi)(this._addedVertex)&&(e="apply",this._addedVertex=new C.Xz(this._component));const h=this._component.getLastVertex();if((0,m.Wi)(h))this._component.vertices.push(this._addedVertex),this._addedVertex.pos=this._pos,this._addedVertex.index=0;else{let l=null;h.rightEdge&&(this._originalEdge=h.rightEdge,l=this._originalEdge.rightVertex,this._component.edges.splice(this._component.edges.indexOf(this._originalEdge),1)),this._component.vertices.push(this._addedVertex),this._addedVertex.pos=this._pos,(0,m.Wi)(this._left)&&(this._left=new C.kS(this._component,h,this._addedVertex)),this._component.edges.push(this._left),h.rightEdge=this._left,(0,m.pC)(this._originalEdge)&&(0,m.pC)(l)&&((0,m.Wi)(this._right)&&(this._right=new C.kS(this._component,this._addedVertex,l)),this._component.edges.push(this._right),l.leftEdge=this._right),this._component.updateVertexIndex(this._addedVertex,h.index+1)}this._editGeometry.notifyChanges({operation:e,addedVertices:[this._addedVertex]})}undo(){(0,m.Wi)(this._addedVertex)||(this._component.vertices.splice(this._component.vertices.indexOf(this._addedVertex),1),(0,m.pC)(this._left)&&(this._component.edges.splice(this._component.edges.indexOf(this._left),1),this._left.leftVertex.rightEdge=null),(0,m.pC)(this._right)&&(this._component.edges.splice(this._component.edges.indexOf(this._right),1),this._right.rightVertex.leftEdge=null),(0,m.pC)(this._originalEdge)&&(this._component.edges.push(this._originalEdge),this._originalEdge.leftVertex.rightEdge=this._originalEdge,this._originalEdge.rightVertex.leftEdge=this._originalEdge),(0,m.pC)(this._left)?this._component.updateVertexIndex(this._left.leftVertex,this._left.leftVertex.index):this._component.updateVertexIndex(this._addedVertex,0),this._editGeometry.notifyChanges({operation:"undo",removedVertices:[this._addedVertex]}))}accumulate(){return!1}}class L{constructor(e,h,l){this._editGeometry=e,this._vertices=h,this.operation=l,this._undone=!1}apply(){this._vertices.forEach(e=>this.operation.apply(e)),this._editGeometry.components.forEach(e=>e.unnormalizeVertexPositions()),this._editGeometry.notifyChanges({operation:this._undone?"redo":"apply",updatedVertices:this._vertices})}undo(){this._vertices.forEach(e=>this.operation.undo(e)),this._editGeometry.notifyChanges({operation:"undo",updatedVertices:this._vertices}),this._undone=!0}canAccumulate(e){if(this._undone||e._vertices.length!==this._vertices.length)return!1;for(let h=0;hthis.operation.accumulate(h,e.operation)),this.operation.accumulateParams(e.operation),this._editGeometry.components.forEach(h=>h.unnormalizeVertexPositions()),this._editGeometry.notifyChanges({operation:"apply",updatedVertices:this._vertices}),!0)}}!function(P){P[P.CUMULATIVE=0]="CUMULATIVE",P[P.REPLACE=1]="REPLACE"}(S||(S={}));class R{constructor(e,h,l=0){this._editGeometry=e,this._vertices=h,this._minNumberOfVertices=l,this.removedVertices=null}apply(){let e="redo";if(null==this.removedVertices){const h=this.removedVertices=[];this._vertices.forEach(l=>{const x=this._removeVertex(l);(0,m.pC)(x)&&h.push(x)}),e="apply"}else this.removedVertices.forEach(h=>{this._removeVertex(h.removedVertex)});this._editGeometry.notifyChanges({operation:e,removedVertices:this._vertices})}undo(){this.removedVertices?.forEach(e=>{this._undoRemoveVertex(e)}),this._editGeometry.notifyChanges({operation:"undo",addedVertices:this._vertices})}accumulate(){return!1}_removeVertex(e){const h=e.component;if(h.vertices.length<=this._minNumberOfVertices)return null;const l={removedVertex:e,createdEdge:null},x=e.leftEdge,V=e.rightEdge;return h.vertices.splice(h.vertices.indexOf(e),1),x&&(h.edges.splice(h.edges.indexOf(x),1),x.leftVertex.rightEdge=null),V&&(h.edges.splice(h.edges.indexOf(V),1),V.rightVertex.leftEdge=null),0===e.index&&V&&this._vertices.length>0&&h.swapVertices(h.vertices.indexOf(V.rightVertex),0),x&&V&&(l.createdEdge=new C.kS(h,x.leftVertex,V.rightVertex),h.edges.push(l.createdEdge)),V&&h.updateVertexIndex(V.rightVertex,V.rightVertex.index-1),l}_undoRemoveVertex(e){const h=e.removedVertex,l=e.removedVertex.component,x=h.leftEdge,V=h.rightEdge;e.createdEdge&&l.edges.splice(l.edges.indexOf(e.createdEdge),1),l.vertices.push(h),x&&(l.edges.push(x),x.leftVertex.rightEdge=x),V&&(l.edges.push(V),V.rightVertex.leftEdge=V),l.updateVertexIndex(h,h.index)}}class H{constructor(e,h,l){this._editGeometry=e,this._edge=h,this._t=l,this.createdVertex=null,this._left=null,this._right=null}apply(){let e="redo";const h=this._edge,l=h.component,x=h.leftVertex,V=h.rightVertex;l.edges.splice(l.edges.indexOf(h),1),(0,m.Wi)(this.createdVertex)&&(e="apply",this.createdVertex=new C.Xz(h.component)),l.vertices.push(this.createdVertex),this.createdVertex.pos=this._editGeometry.coordinateHelper.lerp(h.leftVertex.pos,h.rightVertex.pos,this._t,this._editGeometry.coordinateHelper.createVector()),(0,m.Wi)(this._left)&&(this._left=new C.kS(l,x,this.createdVertex)),this._left.leftVertex.leftEdge?l.edges.push(this._left):l.edges.unshift(this._left),x.rightEdge=this._left,(0,m.Wi)(this._right)&&(this._right=new C.kS(l,this.createdVertex,V)),l.edges.push(this._right),V.leftEdge=this._right,l.updateVertexIndex(this.createdVertex,x.index+1),this._editGeometry.notifyChanges({operation:e,addedVertices:[this.createdVertex]})}undo(){if((0,m.Wi)(this.createdVertex)||(0,m.Wi)(this._left)||(0,m.Wi)(this._right))return null;const e=this._edge,h=e.component,V=this.createdVertex.leftEdge?.leftVertex,B=this.createdVertex.rightEdge?.rightVertex;h.vertices.splice(h.vertices.indexOf(this.createdVertex),1),h.edges.splice(h.edges.indexOf(this._left),1),h.edges.splice(h.edges.indexOf(this._right),1),this._edge.leftVertex.leftEdge?h.edges.push(this._edge):h.edges.unshift(this._edge),V&&(V.rightEdge=e),B&&(B.leftEdge=e),V&&h.updateVertexIndex(V,V.index),this._editGeometry.notifyChanges({operation:"undo",removedVertices:[this.createdVertex]})}accumulate(){return!1}}class k{constructor(e,h,l){this._editGeometry=e,this._vertex=h,this._pos=l}apply(){const e=(0,m.Wi)(this._originalPosition);e&&(this._originalPosition=this._vertex.pos),this._apply(e?"apply":"redo")}undo(){this._vertex.pos=(0,m.Wg)(this._originalPosition),this._editGeometry.notifyChanges({operation:"undo",updatedVertices:[this._vertex]})}accumulate(e){return e instanceof k&&e._vertex===this._vertex&&(this._pos=e._pos,this._apply("apply"),!0)}_apply(e){this._vertex.pos=this._pos,this._editGeometry.components.forEach(h=>h.unnormalizeVertexPositions()),this._editGeometry.notifyChanges({operation:e,updatedVertices:[this._vertex]})}}var X=T(85931);class Y{constructor(e,h){this._editGeometry=e,this._component=h,this._createdEdge=null}apply(){let e="redo";if((0,m.Wi)(this._createdEdge)){e="apply";const h=this._component.getFirstVertex(),l=this._component.getLastVertex();if(this._component.isClosed()||this._component.vertices.length<3||(0,m.Wi)(h)||(0,m.Wi)(l))return;this._createdEdge=new C.kS(this._component,l,h)}this._createdEdge.leftVertex.rightEdge=this._createdEdge,this._createdEdge.rightVertex.leftEdge=this._createdEdge,this._component.edges.push(this._createdEdge),this._editGeometry.notifyChanges({operation:e})}undo(){(0,m.Wi)(this._createdEdge)||((0,X.Od)(this._component.edges,this._createdEdge),this._createdEdge.leftVertex.rightEdge=null,this._createdEdge.rightVertex.leftEdge=null,this._editGeometry.notifyChanges({operation:"undo"}))}accumulate(){return!1}}class w{constructor(e,h,l,x){this._helper=e,this.dx=h,this.dy=l,this.dz=x}_move(e,h,l,x){this._helper.addDelta(e.pos,h,l,x)}apply(e){this._move(e,this.dx,this.dy,this.dz)}undo(e){this._move(e,-this.dx,-this.dy,-this.dz)}canAccumulate(e){return e instanceof w}accumulate(e,h){this._move(e,h.dx,h.dy,h.dz)}accumulateParams(e){this.dx+=e.dx,this.dy+=e.dy,this.dz+=e.dz}}var i=T(21286),d=T(67831),p=T(99770),u=T(84161),v=T(28093),E=T(90014),_=T(34054),y=T(396);class g{constructor(e,h,l,x=0,V=U.IMMEDIATE){this._helper=e,this._planeType=h,this._edge=l,this.distance=x,this._plane=(0,E.Ue)(),this._offsetPlane=(0,E.Ue)(),this._minDistance=-1/0,this._maxDistance=1/0,this._selectedArrow=1,V===U.IMMEDIATE&&this._initialize()}get plane(){return this._plane}get requiresSplitEdgeLeft(){return!this._left.isOriginalDirection}get requiresSplitEdgeRight(){return!this._right.isOriginalDirection}get edgeDirection(){return this._edgeDirection}_initialize(){this._initializeNeighbors(),this._initializePlane(),this._initializeDistanceConstraints()}_initializeNeighbors(){const e=this._toXYZ(this._edge.leftVertex.pos),h=this._toXYZ(this._edge.leftVertex.leftEdge?.leftVertex?.pos),l=this._toXYZ(this._edge.rightVertex.pos),x=this._toXYZ(this._edge.rightVertex.rightEdge?.rightVertex?.pos);this._edgeDirection=(0,u.r)((0,v.c)(),e,l),this._left=this._computeNeighbor(e,h,this._edgeDirection),this._right=this._computeNeighbor(l,x,this._edgeDirection)}_toXYZ(e){return(0,m.pC)(e)?this._helper.toXYZ(e):null}_pointToXYZ(e){return this._toXYZ(this._helper.pointToVector(e))}_computeNeighbor(e,h,l){if((0,m.Wi)(h))return{start:e,end:h,direction:(0,v.f)(-l[1],l[0],0),isOriginalDirection:!0};const x=(0,u.r)((0,v.c)(),e,h),V=!this._passesBisectingAngleThreshold(x,l);return{start:e,end:h,direction:V?this._bisectVectorsPerpendicular(l,x):x,isOriginalDirection:!V}}_passesBisectingAngleThreshold(e,h){const l=Math.abs((0,_.EU)(h,e));return l>=M&&l<=Math.PI-M}_bisectVectorsPerpendicular(e,h){const l=(0,u.e)(e,h)<0?e:(0,u.o)((0,v.c)(),e),x=Math.abs((0,u.e)(l,h));if(!(x1-D))return this._bisectDirection(l,h);const V=(0,u.f)((0,v.c)(),l,[0,0,1]);return(0,u.n)(V,V)}_bisectDirection(e,h){const l=(0,u.a)((0,v.c)(),e,h);return(0,u.n)(l,l)}_initializePlane(){const e=this._computeNormalDirection(this._left),h=this._computeNormalDirection(this._right);(0,u.e)(e,h)<0&&(0,u.o)(h,h),(0,E.Yq)(this._left.start,this._bisectDirection(e,h),this._plane)}_computeNormalDirection(e){const h=(0,u.f)((0,v.c)(),e.direction,this._edgeDirection);(0,u.n)(h,h);const l=(0,u.f)((0,v.c)(),this._edgeDirection,h);return this._planeType===I.XY&&(l[2]=0),(0,u.n)(l,l)}_initializeDistanceConstraints(){(0,m.pC)(this._left.end)&&!this.requiresSplitEdgeLeft&&this._updateDistanceConstraint((0,E.jH)(this._plane,this._left.end)),(0,m.pC)(this._right.end)&&!this.requiresSplitEdgeRight&&this._updateDistanceConstraint((0,E.jH)(this._plane,this._right.end)),this._updateIntersectDistanceConstraint(this._plane)}_updateDistanceConstraint(e){e<=0&&(this._minDistance=Math.max(this._minDistance,e)),e>=0&&(this._maxDistance=Math.min(this._maxDistance,e))}_updateIntersectDistanceConstraint(e){const h=(0,E.mJ)(e),l=this._edgeDirection,x=(0,u.a)((0,v.c)(),this._left.start,this._left.direction),V=(0,u.a)((0,v.c)(),this._right.start,this._right.direction),B=this._pointInBasis2D((0,p.a)(),h,l,this._left.start),b=this._pointInBasis2D((0,p.a)(),h,l,x),Q=this._pointInBasis2D((0,p.a)(),h,l,this._right.start),$=this._pointInBasis2D((0,p.a)(),h,l,V),[J]=(0,y.dU)({start:b,end:B,type:y.SP.LINE},{start:$,end:Q,type:y.SP.LINE});if(!J)return;const F=(0,d.a)((0,p.a)(),B,b);(0,d.f)(F,F);const q=(0,d.a)((0,p.a)(),J,b),ee=(0,d.h)(F,q),te=(0,u.a)((0,v.c)(),x,(0,u.g)((0,v.c)(),this._left.direction,-ee)),ie=(0,E.jH)(e,te);this._updateDistanceConstraint(ie)}_pointInBasis2D(e,h,l,x){return e[0]=(0,_.SR)(h,x),e[1]=(0,_.SR)(l,x),e}_offset(e,h){Number.isFinite(this._minDistance)&&(h=Math.max(this._minDistance,h)),Number.isFinite(this._maxDistance)&&(h=Math.min(this._maxDistance,h)),(0,E.JG)(this._offsetPlane,this._plane),this._offsetPlane[3]-=h;const l=(V,B,b)=>(0,m.pC)(B)&&(0,E.fn)(this._offsetPlane,V,(0,u.a)((0,v.c)(),V,B),b),x=(0,v.c)();(e===this._edge.leftVertex?l(this._left.start,this._left.direction,x):l(this._right.start,this._right.direction,x))&&this._helper.copy(this._helper.fromXYZ(x,void 0,this._helper.getM(e.pos)),e.pos)}selectArrowFromStartPoint(e){this._selectedArrow=(0,E.Ac)(this.plane,this._pointToXYZ(e))?1:-1}get selectedArrow(){return this._selectedArrow}signedDistanceToPoint(e){return(0,E.jH)(this.plane,this._pointToXYZ(e))}apply(e){this._offset(e,this.distance)}undo(e){this._offset(e,0)}canAccumulate(e){return e instanceof g&&this._edge.leftVertex.index===e._edge.leftVertex.index&&this._edge.rightVertex.index===e._edge.rightVertex.index&&this._edge.component===e._edge.component&&this._maybeEqualsVec3(this._left.direction,e._left.direction)&&this._maybeEqualsVec3(this._right.direction,e._right.direction)&&(0,u.F)((0,E.mJ)(this._plane),(0,E.mJ)(e._plane))}accumulate(e,h){this._offset(e,this._plane[3]-h._plane[3]+h.distance)}accumulateParams(e){this.distance=e.distance-e._plane[3]+this._plane[3]}clone(){const e=new g(this._helper,this._planeType,this._edge,this.distance,U.DEFERRED);return(0,E.JG)(e._plane,this._plane),(0,E.JG)(e._offsetPlane,this._offsetPlane),e._maxDistance=this._maxDistance,e._minDistance=this._minDistance,e._left=this._cloneNeighbor(this._left),e._right=this._cloneNeighbor(this._right),e._edgeDirection=(0,u.c)((0,v.c)(),this._edgeDirection),e}_maybeEqualsVec3(e,h){return(0,m.Wi)(e)&&(0,m.Wi)(h)||(0,m.pC)(e)&&(0,m.pC)(h)&&(0,u.F)(e,h)}_cloneNeighbor({start:e,end:h,direction:l,isOriginalDirection:x}){return{start:(0,u.c)((0,v.c)(),e),end:(0,m.pC)(h)?(0,u.c)((0,v.c)(),h):null,direction:(0,u.c)((0,v.c)(),l),isOriginalDirection:x}}}const M=(0,i.Vl)(15),D=.001;var I,U;(function(P){P[P.XYZ=0]="XYZ",P[P.XY=1]="XY"})(I||(I={})),function(P){P[P.IMMEDIATE=0]="IMMEDIATE",P[P.DEFERRED=1]="DEFERRED"}(U||(U={}));class O{constructor(e,h,l=S.CUMULATIVE){this.origin=e,this.angle=h,this._accumulationType=l}_rotate(e,h){(0,d.r)(e.pos,e.pos,this.origin,h)}apply(e){this._rotate(e,this.angle)}undo(e){this._rotate(e,-this.angle)}canAccumulate(e){return e instanceof O&&(0,X.fS)(this.origin,e.origin)}accumulate(e,h){this._rotate(e,h._accumulationType===S.REPLACE?h.angle-this.angle:h.angle)}accumulateParams(e){this.angle=e._accumulationType===S.REPLACE?e.angle:this.angle+e.angle}}class Z{constructor(e,h,l,x,V=S.CUMULATIVE){this.origin=e,this.axis1=h,this.factor1=l,this.factor2=x,this._accumulationType=V,this.axis2=(0,p.f)(h[1],-h[0])}_scale(e,h,l){(0,d.u)(e.pos,e.pos,this.origin,this.axis1,h),(0,d.u)(e.pos,e.pos,this.origin,this.axis2,l)}apply(e){this._scale(e,this.factor1,this.factor2)}undo(e){this._scale(e,1/this.factor1,1/this.factor2)}canAccumulate(e){return e instanceof Z&&(0,X.fS)(this.origin,e.origin)&&(0,X.fS)(this.axis1,e.axis1)}accumulate(e,h){h._accumulationType===S.REPLACE?this._scale(e,h.factor1/this.factor1,h.factor2/this.factor2):this._scale(e,h.factor1,h.factor2)}accumulateParams(e){const h=e._accumulationType===S.REPLACE;this.factor1=h?e.factor1:this.factor1*e.factor1,this.factor2=h?e.factor2:this.factor2*e.factor2}}class W{constructor(){this._operations=[],this._closed=!1}close(){this._closed=!0}apply(){for(const e of this._operations)e.apply()}undo(){for(let e=this._operations.length-1;e>=0;e--)this._operations[e].undo()}accumulate(e){if(this._closed)return!1;const h=this._operations.length?this._operations[this._operations.length-1]:null;return h&&h.accumulate(e)||(this._operations.push(e),e.apply()),!0}}class z extends G.Z{constructor(e){super(),this.data=e,this._undoStack=[],this._redoStack=[],this._listener=this.data.on("change",h=>{h.addedVertices&&this.emit("vertex-add",{type:"vertex-add",vertices:h.addedVertices,operation:h.operation}),h.removedVertices&&this.emit("vertex-remove",{type:"vertex-remove",vertices:h.removedVertices,operation:h.operation}),h.updatedVertices&&this.emit("vertex-update",{type:"vertex-update",vertices:h.updatedVertices,operation:h.operation})})}destroy(){this._listener.remove()}splitEdge(e,h){return this._apply(new H(this.data,e,h))}updateVertices(e,h,l=A.ACCUMULATE_STEPS){return this._apply(new L(this.data,e,h),l)}moveVertices(e,h,l,x,V=A.ACCUMULATE_STEPS){return this.updateVertices(e,new w(this.data.coordinateHelper,h,l,x),V)}scaleVertices(e,h,l,x,V,B=A.ACCUMULATE_STEPS,b=S.CUMULATIVE){return this.updateVertices(e,new Z(h,l,x,V,b),B)}rotateVertices(e,h,l,x=A.ACCUMULATE_STEPS,V=S.CUMULATIVE){return this.updateVertices(e,new O(h,l,V),x)}removeVertices(e){return this._apply(new R(this.data,e,this._minNumVerticesPerType))}appendVertex(e){return 0===this.data.components.length?null:this._apply(new N(this.data,this.data.components[0],e))}setVertexPosition(e,h){return this._apply(new k(this.data,e,h))}offsetEdge(e,h,l,x=A.ACCUMULATE_STEPS){return this.updateVertices([h.leftVertex,h.rightVertex],new g(this.data.coordinateHelper,e,h,l),x)}closeComponent(e){return this.data.components.includes(e)?this._apply(new Y(this.data,e)):null}canRemoveVertex(){return this.data.components[0].vertices.length>this._minNumVerticesPerType}createUndoGroup(){const e=new W;return this._apply(e),{remove:()=>e.close()}}undo(){if(this._undoStack.length>0){const e=this._undoStack.pop();return e.undo(),this._redoStack.push(e),e}return null}redo(){if(this._redoStack.length>0){const e=this._redoStack.pop();return e.apply(),this._undoStack.push(e),e}return null}get canUndo(){return this._undoStack.length>0}get canRedo(){return this._redoStack.length>0}get lastOperation(){return this._undoStack.length>0?this._undoStack[this._undoStack.length-1]:null}get _minNumVerticesPerType(){switch(this.data.type){case"point":return 1;case"polyline":return 2;case"polygon":return 3;default:return 0}}_apply(e,h=A.ACCUMULATE_STEPS){return h!==A.NEW_STEP&&!(0,m.Wi)(this.lastOperation)&&this.lastOperation.accumulate(e)||(e.apply(),this._undoStack.push(e),this._redoStack=[]),e}static fromGeometry(e,h){return new z(C.XE.fromGeometry(e,h))}}},396:(K,j,T)=>{T.d(j,{SP:()=>i,dU:()=>Y,k0:()=>S,xO:()=>H}),T(21286);var i,_,m=T(67831),C=T(99770);function A(_,y){return _[0]*y[1]-_[1]*y[0]}function S(_,y,g,M,D=g){return(0,m.a)(p,M,g),(0,m.a)(v,y,D),function L(_,y,g){const M=(0,m.h)(g,y)/(0,m.v)(g);(0,m.b)(_,g,M)}(E,v,p),(0,m.j)(_,D,E)}function H(_,y,g,M){(0,m.a)(p,y,g);const D=M/(0,m.i)(p);return(0,m.w)(_,g,p,D)}function Y(_,y){const g=_.start,D=y.start,I=y.end,U=(0,m.a)(p,_.end,g),O=(0,m.a)(u,I,D),Z=A(U,O);if(Math.abs(Z)<=d)return[];const W=(0,m.a)(v,g,D),z=A(O,W)/Z,P=A(U,W)/Z;if(z>=0){if(P>=0||y.type===i.LINE)return[(0,m.w)(E,g,U,z)]}else if(_.type===i.LINE&&(P>=0||y.type===i.LINE))return[(0,m.w)(E,g,U,z)];return[]}(_=i||(i={}))[_.RAY=0]="RAY",_[_.LINE=1]="LINE";const d=1e-6,p=(0,C.a)(),u=(0,C.a)(),v=(0,C.a)(),E=(0,C.a)()},66601:(K,j,T)=>{T.d(j,{m:()=>C});var G=T(55915),m=T(12080);function C(A){const N=(0,m.rS)(A),L=N===m.GG?m.wY:N;return(0,G.Up)(A,L)?L:A}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1362.053d4ee22c653b5d.js b/apps/n/porrtal-io-app/public/angular/1362.053d4ee22c653b5d.js deleted file mode 100644 index e1b7e4da..00000000 --- a/apps/n/porrtal-io-app/public/angular/1362.053d4ee22c653b5d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1362],{11362:(a,s,_)=>{_.r(s),_.d(s,{build:()=>r.b}),_(52382),_(13934),_(78925),_(24255),_(23164),_(58173),_(54120),_(62952),_(10109),_(33726),_(2166),_(69960),_(17625),_(22355),_(44835),_(16396);var r=_(89652)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/15.26785073b1414895.js b/apps/n/porrtal-io-app/public/angular/15.26785073b1414895.js deleted file mode 100644 index 8ae5b3a0..00000000 --- a/apps/n/porrtal-io-app/public/angular/15.26785073b1414895.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[15],{80015:(w,E,r)=>{r.r(E),r.d(E,{default:()=>b});var n=r(17626),O=r(88879),D=r(63290),s=r(62208),p=r(32917),a=r(77712),f=(r(85931),r(90912),r(76898)),v=r(10410),P=r(98624),M=r(59990),d=r(96854),y=r(35560),F=r(14341),u=r(52836),A=r(19702),h=r(3493),j=r(2694),g=r(22498),c=r(52565),L=r(94443),R=r(72537),S=r(41941),C=r(42964),U=r(89476),W=r(67966),T=r(40465),x=r(57610),K=r(41632),B=r(78465),Q=r(87091);const I=(0,W.v)();let l=class extends((0,F.N)((0,U.l)((0,T.i)((0,A.A)(B.Z))))){constructor(){super(...arguments),this.type="scene-layer-3d",this.progressiveLoadFactor=1,this._elevationContext="scene",this._isIntegratedMesh=!1,this._supportsLabeling=!0,this._interactiveEditingSessions=new Map,this._queryEngine=null}get i3slayer(){return this.layer}get layerPopupEnabled(){return this.layer.popupEnabled}get filter(){return this._get("filter")}set filter(e){this._set("filter",g.z.checkSupport(e)?e:null)}get viewFilter(){const e=this.filter,t=this.layerFilter;if((0,s.Wi)(e)&&(0,s.Wi)(t))return null;const i=this._get("viewFilter");return(0,s.Wi)(i)?new g.z({layerFilter:t,viewFilter:e,layerFieldsIndex:this.layer.fieldsIndex,loadAsyncModule:_=>this._loadAsyncModule(_),addSqlFilter:(_,o)=>this.addSqlFilter(_,o,this.logError)}):(i.viewFilter=e,i.layerFilter=t,i)}get requiredFields(){return this._fieldsHelper?.requiredFields??[]}get _floorFilterClause(){const e=(0,M.c)(this);return(0,s.pC)(e)?v.WhereClause.create(e,this.layer.fieldsIndex):null}get _excludeObjectIdsSorted(){let e=this.layer.excludeObjectIds.toArray();return(0,y.Rx)()&&this.i3sOverrides.geometryChangedObjectIds.length>0&&(e=e.concat(this.i3sOverrides.geometryChangedObjectIds)),e.length?e.sort((t,i)=>t-i):null}get _objectQualitySettings(){return this.view?.qualitySettings?.sceneService?.object}get lodFactor(){return this._objectQualitySettings?.lodFactor??1}get lodCrossfadeinDuration(){return this._objectQualitySettings.lodCrossfadeinDuration??0}get lodCrossfadeoutDuration(){return this._objectQualitySettings.lodCrossfadeoutDuration??0}get lodCrossfadeUncoveredDuration(){return this._objectQualitySettings.lodCrossfadeUncoveredDuration??0}get updatingProgressValue(){return this._controller?.updatingProgress??0}initialize(){this._fieldsHelper=new x.K({layerView:this}),this.updatingHandles.add(()=>this.layer.rangeInfos,t=>this._rangeInfosChanged(t),p.nn),this.updatingHandles.add(()=>this.layer.renderer,t=>this.updatingHandles.addPromise(this._rendererChange(t)),p.nn);const e=()=>this._filterChange();this.updatingHandles.add(()=>this.parsedDefinitionExpression,e),this.updatingHandles.add(()=>this.filter,e),this.updatingHandles.add(()=>this._floorFilterClause,e),this.updatingHandles.add(()=>this._excludeObjectIdsSorted,e),this.updatingHandles.add(()=>(0,s.pC)(this.viewFilter)?this.viewFilter.sortedObjectIds:null,e),this.updatingHandles.add(()=>(0,s.pC)(this.viewFilter)?this.viewFilter.parsedWhereClause:null,e),this.updatingHandles.add(()=>[(0,s.pC)(this.viewFilter)?this.viewFilter.parsedGeometry:null,(0,s.pC)(this.filter)?this.filter.spatialRelationship:null,(0,s.pC)(this.layer.filter)?this.layer.filter.spatialRelationship:null],()=>this._geometryFilterChange()),this.handles.add(this.layer.on("apply-edits",t=>this.updatingHandles.addPromise(t.result))),this.handles.add(this.layer.on("edits",t=>this._handleEdits(t)))}destroy(){this._fieldsHelper=(0,s.SC)(this._fieldsHelper)}_rangeInfosChanged(e){null!=e&&e.length>0&&D.Z.getLogger(this.declaredClass).warn("Unsupported property: rangeInfos are currently only serialized to and from web scenes but do not affect rendering.")}createQuery(){const e={outFields:["*"],returnGeometry:!1,outSpatialReference:this.view.spatialReference};return(0,s.pC)(this.filter)?this.filter.createQuery(e):new d.Z(e)}queryExtent(e,t){return this._ensureQueryEngine().executeQueryForExtent(this._ensureQuery(e),t?.signal)}queryFeatureCount(e,t){return this._ensureQueryEngine().executeQueryForCount(this._ensureQuery(e),t?.signal)}queryFeatures(e,t){return this._ensureQueryEngine().executeQuery(this._ensureQuery(e),t?.signal).then(i=>{if(!i?.features)return i;const _=this.layer;for(const o of i.features)o.layer=_,o.sourceLayer=_;return i})}queryObjectIds(e,t){return this._ensureQueryEngine().executeQueryForIds(this._ensureQuery(e),t?.signal)}_ensureQueryEngine(){return this._queryEngine||(this._queryEngine=this._createQueryEngine()),this._queryEngine}_createQueryEngine(){const e=(0,j.gz)(this.view.spatialReference,this.view.renderSpatialReference,this._collection);return new L.u({layerView:this,priority:Q.T8.FEATURE_QUERY_ENGINE,spatialIndex:new S.I({featureAdapter:new R.u({objectIdField:this.layer.objectIdField,attributeStorageInfo:this.layer.attributeStorageInfo,getFeatureExtent:e}),toArray:()=>{const t=new Array;return this._forAllFeatures((i,_,o)=>(t.push({id:i,index:_,meta:o}),u.K.CONTINUE),null,u.u.ALL_IN_CLIPPING_AREA),t},forAllFeatures:(t,i)=>this._forAllFeatures((_,o,m)=>t({id:_,index:o,meta:m}),i,u.u.ALL_IN_CLIPPING_AREA),getFeatureExtent:e,sourceSpatialReference:(0,C.tp)(this.layer),viewSpatialReference:this.view.spatialReference})})}highlight(e){const t=this._highlights;if(e instanceof d.Z){const{set:i,handle:_}=t.acquireSet();return this.queryObjectIds(e).then(o=>t.setFeatureIds(i,o)),_}return super.highlight(e)}createInteractiveEditSession(e){return(0,h.sw)(this._attributeEditingContext,e)}_createLayerGraphic(e){const t=new O.Z(null,null,e);return t.layer=this.layer,t.sourceLayer=this.layer,t}canResume(){return super.canResume()&&(!this._controller||this._controller.rootNodeVisible)}getFilters(){const e=super.getFilters(),t=this._excludeObjectIdsSorted;return(0,s.pC)(t)&&e.push(i=>(0,C.Yb)(t,!1,i)),this._floorFilterClause&&this.addSqlFilter(e,this._floorFilterClause,this.logError),this.addSqlFilter(e,this.parsedDefinitionExpression,this.logError),(0,s.pC)(this.viewFilter)&&this.viewFilter.addFilters(e,this.view,this._controller.crsIndex,this._collection),e}isUpdating(){return super.isUpdating()||this.layerFilterUpdating||(0,s.pC)(this.viewFilter)&&this.viewFilter.updating||(0,s.pC)(this.i3sOverrides)&&this.i3sOverrides.updating}_ensureQuery(e){return this._addDefinitionExpressionToQuery((0,s.Wi)(e)?this.createQuery():d.Z.from(e))}get _attributeEditingContext(){return{sessions:this._interactiveEditingSessions,fieldsIndex:this.layer.fieldsIndex,objectIdField:this._getObjectIdField(),forEachNode:e=>this._forAllNodes(t=>(0,s.pC)(t)?e(t.node,t.featureIds):null),attributeStorageInfo:this.i3slayer.attributeStorageInfo,i3sOverrides:this.i3sOverrides,getAttributeData:e=>this.getAttributeData(e),setAttributeData:(e,t)=>this.setAttributeData(e,t),clearMemCache:()=>this.clearMemCache()}}_handleEdits(e){(0,y.Rx)()&&(0,h.ZS)(this._attributeEditingContext,e),(0,h.Z6)(this._attributeEditingContext,e)}get hasGeometryFilter(){const e=this.viewFilter;return(0,s.pC)(e)&&(0,s.pC)(e.parsedGeometry)}computeNodeFiltering(e){const t=this.viewFilter;return(0,s.Wi)(t)||t.isMBSGeometryVisible(e,this.view.spatialReference,this._controller.crsIndex)?c.U_.Unmodified:c.U_.Culled}};(0,n._)([(0,a.Cb)()],l.prototype,"i3slayer",null),(0,n._)([(0,a.Cb)(K.q)],l.prototype,"updatingProgress",void 0),(0,n._)([(0,a.Cb)({type:P.Z})],l.prototype,"filter",null),(0,n._)([(0,a.Cb)({readOnly:!0})],l.prototype,"viewFilter",null),(0,n._)([(0,a.Cb)(I.requiredFields)],l.prototype,"requiredFields",null),(0,n._)([(0,a.Cb)(I.availableFields)],l.prototype,"availableFields",void 0),(0,n._)([(0,a.Cb)()],l.prototype,"_fieldsHelper",void 0),(0,n._)([(0,a.Cb)()],l.prototype,"_floorFilterClause",null),(0,n._)([(0,a.Cb)()],l.prototype,"_excludeObjectIdsSorted",null),(0,n._)([(0,a.Cb)()],l.prototype,"_objectQualitySettings",null),(0,n._)([(0,a.Cb)()],l.prototype,"lodFactor",null),(0,n._)([(0,a.Cb)()],l.prototype,"updatingProgressValue",null),l=(0,n._)([(0,f.j)("esri.views.3d.layers.SceneLayerView3D")],l);const b=l}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1533.fe7a6163f7edb103.js b/apps/n/porrtal-io-app/public/angular/1533.fe7a6163f7edb103.js deleted file mode 100644 index 25a8cd66..00000000 --- a/apps/n/porrtal-io-app/public/angular/1533.fe7a6163f7edb103.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1533],{89890:(Pe,Ae,se)=>{se.d(Ae,{J:()=>he});var ie,xe,Ce,_e={exports:{}};ie=_e,void 0!==(Ce=function(){function ce(U){this.message="JPEG error: "+U}return(ce.prototype=new Error).name="JpegError",ce.constructor=ce,ce}(),xe=function(){if(!self||!self.Uint8ClampedArray)return null;var ce=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),U=4017,z=2276,W=5793,Q=2896;function H(){this.decodeTransform=null,this.colorTransform=-1}function ee(w,C){for(var A,I,y=0,v=[],k=16;k>0&&!w[k-1];)k--;v.push({children:[],index:0});var B,D=v[0];for(A=0;A0;)D=v.pop();for(D.index++,v.push(D);v.length<=A;)v.push(B={children:[],index:0}),D.children[D.index]=B.children,D=B;y++}A+10)return t--,G>>t&1;if(255===(G=w[C++])){var te=w[C++];if(te)throw new Ce("unexpected marker "+(G<<8|te).toString(16))}return t=7,G>>>7}function g(te){for(var le=te;;){if("number"==typeof(le=le[u()]))return le;if("object"!=typeof le)throw new Ce("invalid huffman sequence")}}function p(te){for(var le=0;te>0;)le=le<<1|u(),te--;return le}function S(te){if(1===te)return 1===u()?1:-1;var le=p(te);return le>=1<0)h--;else for(var ye=v,de=k;ye<=de;){var be=g(te.huffmanTableAC),Te=15&be,we=be>>4;if(0!==Te){var ve=ce[ye+=we];te.blockData[le+ve]=S(Te)*(1<>4,0==(ye=15&de))we<15?(h=p(we)+(1<>4;if(0!==we){var Ee=ce[be+=ve];te.blockData[le+Ee]=S(we),be++}else{if(ve<15)break;be+=16}}};var q,$,re,Y,te,ye,ue=0;for($=1===Z?I[0].blocksPerLine*I[0].blocksPerColumn:f*A.mcusPerColumn;ue<$;){var pe=y?Math.min($-ue,y):$;for(F=0;F=65488&&ae<=65495))break;C+=2}return(q=L(w,C))&&q.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+q.invalid),C=q.offset),C-R}function N(w,C,A){var I,y,v,k,B,D,f,O,R,G,t,u,g,p,S,d,s,i=w.quantizationTable,h=w.blockData;if(!i)throw new Ce("missing required Quantization Table.");for(var m=0;m<64;m+=8)R=h[C+m],R*=i[m],0!=((G=h[C+m+1])|(t=h[C+m+2])|(u=h[C+m+3])|(g=h[C+m+4])|(p=h[C+m+5])|(S=h[C+m+6])|(d=h[C+m+7]))?(y=(I=(I=W*R+128>>8)+(y=W*(g*=i[m+4])+128>>8)+1>>1)-y,s=3784*(v=t*=i[m+2])+1567*(k=S*=i[m+6])+128>>8,v=1567*v-3784*k+128>>8,f=(B=(B=Q*((G*=i[m+1])-(d*=i[m+7]))+128>>8)+(f=(p*=i[m+5])<<4)+1>>1)-f,D=(O=(O=Q*(G+d)+128>>8)+(D=(u*=i[m+3])<<4)+1>>1)-D,k=(I=I+(k=s)+1>>1)-k,v=(y=y+v+1>>1)-v,s=B*z+3406*O+2048>>12,B=3406*B-O*z+2048>>12,O=s,s=799*D+f*U+2048>>12,D=D*U-799*f+2048>>12,f=s,A[m]=I+O,A[m+7]=I-O,A[m+1]=y+f,A[m+6]=y-f,A[m+2]=v+D,A[m+5]=v-D,A[m+3]=k+B,A[m+4]=k-B):(A[m]=s=W*R+512>>10,A[m+1]=s,A[m+2]=s,A[m+3]=s,A[m+4]=s,A[m+5]=s,A[m+6]=s,A[m+7]=s);for(var c=0;c<8;++c)R=A[c],0!=((G=A[c+8])|(t=A[c+16])|(u=A[c+24])|(g=A[c+32])|(p=A[c+40])|(S=A[c+48])|(d=A[c+56]))?(y=(I=4112+((I=W*R+2048>>12)+(y=W*g+2048>>12)+1>>1))-y,s=3784*(v=t)+1567*(k=S)+2048>>12,v=1567*v-3784*k+2048>>12,k=s,f=(B=(B=Q*(G-d)+2048>>12)+(f=p)+1>>1)-f,D=(O=(O=Q*(G+d)+2048>>12)+(D=u)+1>>1)-D,s=B*z+3406*O+2048>>12,B=3406*B-O*z+2048>>12,O=s,s=799*D+f*U+2048>>12,D=D*U-799*f+2048>>12,R=(R=(I=I+k+1>>1)+O)<16?0:R>=4080?255:R>>4,G=(G=(y=y+v+1>>1)+(f=s))<16?0:G>=4080?255:G>>4,t=(t=(v=y-v)+D)<16?0:t>=4080?255:t>>4,u=(u=(k=I-k)+B)<16?0:u>=4080?255:u>>4,g=(g=k-B)<16?0:g>=4080?255:g>>4,p=(p=v-D)<16?0:p>=4080?255:p>>4,S=(S=y-f)<16?0:S>=4080?255:S>>4,d=(d=I-O)<16?0:d>=4080?255:d>>4,h[C+c]=R,h[C+c+8]=G,h[C+c+16]=t,h[C+c+24]=u,h[C+c+32]=g,h[C+c+40]=p,h[C+c+48]=S,h[C+c+56]=d):(s=(s=W*R+8192>>14)<-2040?0:s>=2024?255:s+2056>>4,h[C+c]=s,h[C+c+8]=s,h[C+c+16]=s,h[C+c+24]=s,h[C+c+32]=s,h[C+c+40]=s,h[C+c+48]=s,h[C+c+56]=s)}function x(w,C){for(var A=C.blocksPerLine,I=C.blocksPerColumn,y=new Int16Array(64),v=0;v=y)return null;var k=I(C);if(k>=65472&&k<=65534)return{invalid:null,marker:k,offset:C};for(var B=I(v);!(B>=65472&&B<=65534);){if(++v>=y)return null;B=I(v)}return{invalid:k.toString(16),marker:B,offset:v}}return H.prototype={parse:function(w){function C(){var te=w[k]<<8|w[k+1];return k+=2,te}function A(){var te=C(),le=k+te-2,ye=L(w,le,k);ye&&ye.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+ye.invalid),le=ye.offset);var de=w.subarray(k,le);return k+=de.length,de}function I(te){for(var le=Math.ceil(te.samplesPerLine/8/te.maxH),ye=Math.ceil(te.scanLines/8/te.maxV),de=0;de>4==0)for(u=0;u<64;u++)s[ce[u]]=w[k++];else{if(d>>4!=1)throw new Ce("DQT - invalid table spec");for(u=0;u<64;u++)s[ce[u]]=C()}f[15&d]=s}break;case 65472:case 65473:case 65474:if(y)throw new Ce("Only single frame JPEGs supported");C(),(y={}).extended=65473===G,y.progressive=65474===G,y.precision=w[k++],y.scanLines=C(),y.samplesPerLine=C(),y.components=[],y.componentIds={};var i,h=w[k++],m=0,c=0;for(t=0;t>4,T=15&w[k+1];m>4==0?R:O)[15&_]=ee(F,V)}break;case 65501:C(),v=C();break;case 65498:C();var j,J=w[k++],Z=[];for(t=0;t>4],j.huffmanTableAC=O[15&$],Z.push(j)}var re=w[k++],Y=w[k++],ue=w[k++],pe=K(w,k,y,Z,v,re,Y,ue>>4,15&ue);k+=pe;break;case 65535:255!==w[k]&&k--;break;default:if(255===w[k-3]&&w[k-2]>=192&&w[k-2]<=254){k-=3;break}throw new Ce("unknown marker "+G.toString(16))}G=C()}for(this.width=y.samplesPerLine,this.height=y.scanLines,this.jfif=B,this.eof=k,this.adobe=D,this.components=[],t=0;t>8)+h[O+1];return d},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(w){for(var C,A,I,y=0,v=w.length;y4)throw new Ce("Unsupported color mode");var I=this._getLinearizedBlockData(w,C);if(1===this.numComponents&&A){for(var y=I.length,v=new Uint8ClampedArray(3*y),k=0,B=0;B{se.d(Ae,{Z:()=>he});var ie,ge,xe,_e={exports:{}};ge=_e,ie=function(){function Ce(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return Ce.prototype={ensureBuffer:function(ce){var U=this.buffer,fe=U?U.byteLength:0;if(ceme&&(fe=me)}else{for(;!this.eof;)this.readBlock();fe=this.bufferLength}return this.pos=fe,this.buffer.subarray(U,fe)},lookChar:function(){for(var ce=this.pos;this.bufferLength<=ce;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var ce=this.pos;this.bufferLength<=ce;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(ce,U,fe){for(var me=ce+U;this.bufferLength<=me&&!this.eof;)this.readBlock();return new Stream(this.buffer,ce,U,fe)},skip:function(ce){ce||(ce=1),this.pos+=ce},reset:function(){this.pos=0}},Ce}(),void 0!==(xe=function(){if(!self||!self.Uint32Array)return null;var Ce=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ce=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),U=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),fe=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],me=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function z(ne){throw new Error(ne)}function oe(ne){var W=0,Q=ne[W++],H=ne[W++];-1!=Q&&-1!=H||z("Invalid header in flate stream"),8!=(15&Q)&&z("Unknown compression method in flate stream"),((Q<<8)+H)%31!=0&&z("Bad FCHECK in flate stream"),32&H&&z("FDICT bit set in flate stream"),this.bytes=ne,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,ie.call(this)}return(oe.prototype=Object.create(ie.prototype)).getBits=function(ne){for(var W,Q=this.codeSize,H=this.codeBuf,ee=this.bytes,X=this.bytesPos;Q>ne,this.codeSize=Q-=ne,this.bytesPos=X,W},oe.prototype.getCode=function(ne){for(var W=ne[0],Q=ne[1],H=this.codeSize,ee=this.codeBuf,X=this.bytes,K=this.bytesPos;H>16,w=65535&x;return(0==H||H>L,this.codeSize=H-L,this.bytesPos=K,w},oe.prototype.generateHuffmanTable=function(ne){for(var W=ne.length,Q=0,H=0;HQ&&(Q=ne[H]);for(var ee=1<>=1;for(H=w;H0;)i[x++]=c}var W=this.getBits(3);if(1&W&&(this.eof=!0),0!=(W>>=1)){var Q,H;if(1==W)Q=fe,H=me;else if(2==W){for(var ee=this.getBits(5)+257,X=this.getBits(5)+1,K=this.getBits(4)+4,N=Array(Ce.length),x=0;x=y&&(y=(p=this.ensureBuffer(v+1)).length),p[v++]=k;else{if(256==k)return void(this.bufferLength=v);var B=(k=ce[k-=257])>>16;B>0&&(B=this.getBits(B)),w=(65535&k)+B,k=this.getCode(H),(B=(k=U[k])>>16)>0&&(B=this.getBits(B));var D=(65535&k)+B;v+w>=y&&(y=(p=this.ensureBuffer(v+w)).length);for(var f=0;f{se.d(Ae,{Z:()=>ne});var z,ie=se(17626),ge=se(26584),xe=se(86810),_e=se(58817),he=se(63290),Ce=se(62208),ce=se(77712),U=se(66656),fe=se(76898);class me{constructor(Q=null,H=null,ee=null){this.minValue=Q,this.maxValue=H,this.noDataValue=ee}}let oe=z=class extends xe.wq{constructor(W){super(W),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.statistics=null}static createEmptyBand(W,Q){return new(z.getPixelArrayConstructor(W))(Q)}static getPixelArrayConstructor(W){let Q;switch(W){case"u1":case"u2":case"u4":case"u8":Q=Uint8Array;break;case"u16":Q=Uint16Array;break;case"u32":Q=Uint32Array;break;case"s8":Q=Int8Array;break;case"s16":Q=Int16Array;break;case"s32":Q=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":Q=Float32Array;break;case"f64":Q=Float64Array}return Q}castPixelType(W){if(!W)return"f32";let Q=W.toLowerCase();return["u1","u2","u4"].includes(Q)?Q="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(Q)||(Q="f32"),Q}getPlaneCount(){return this.pixels?.length}addData(W){if(!W.pixels||W.pixels.length!==this.width*this.height)throw new ge.Z("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(W.pixels),this.statistics.push(W.statistics??new me)}getAsRGBA(){const W=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(W);break;default:this._fillFrom8Bit(W)}return new Uint8ClampedArray(W)}getAsRGBAFloat(){const W=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(W),W}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(H=>this._calculateBandStatistics(H,this.mask));const W=this.mask;let Q=0;if((0,Ce.pC)(W))for(let H=0;Hee?ee:LN>=Q.length),K=ee===W.length&&!W.some((N,x)=>N!==x);return X||K?this:new z({pixelType:this.pixelType,width:this.width,height:this.height,mask:this.mask,validPixelCount:this.validPixelCount,maskIsAlpha:this.maskIsAlpha,pixels:W.map(N=>Q[N]),statistics:H&&W.map(N=>H[N])})}clone(){const W=new z({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount});let Q;(0,Ce.pC)(this.mask)&&(W.mask=this.mask instanceof Uint8Array?new Uint8Array(this.mask):this.mask.slice(0));const H=z.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){W.pixels=[];const ee=!!this.pixels[0].slice;for(Q=0;Q=3?(K=ee[1],N=ee[2]):2===ee.length&&(K=ee[1]);const L=new Uint32Array(W),w=this.width*this.height;if(X.length===w)if((0,Ce.pC)(Q)&&Q.length===w)if(H)for(x=0;x0){for(const k of ee)null!=k.minValue&&(N=Math.min(N,k.minValue)),null!=k.maxValue&&null!=k.minValue&&(x=Math.max(x,k.maxValue-k.minValue));K=255/x}else{let k=255;"s8"===X?(N=-128,k=127):"u16"===X?k=65535:"s16"===X?(N=-32768,k=32767):"u32"===X?k=4294967295:"s32"===X?(N=-2147483648,k=2147483647):"f32"===X?(N=-34e38,k=34e38):"f64"===X&&(N=-Number.MAX_VALUE,k=Number.MAX_VALUE),K=255/(k-N)}const L=new Uint32Array(W),w=this.width*this.height;let C,A,I,y,v;if(C=A=I=Q[0],C.length!==w)return he.Z.getLogger(this.declaredClass).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(Q.length>=2)if(A=Q[1],Q.length>=3&&(I=Q[2]),(0,Ce.pC)(H)&&H.length===w)for(y=0;y=3?(X=Q[1],K=Q[2]):2===Q.length&&(X=Q[1]);const x=this.width*this.height;if(ee.length!==x)return he.Z.getLogger(this.declaredClass).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let L=0;if((0,Ce.pC)(H)&&H.length===x)for(N=0;Nee?N:ee);else for(K=0;Kee?N:ee;return new me(H,ee)}};(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"width",void 0),(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"height",void 0),(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"pixelType",void 0),(0,ie._)([(0,U.p)("pixelType")],oe.prototype,"castPixelType",null),(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"validPixelCount",void 0),(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"mask",void 0),(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"maskIsAlpha",void 0),(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"pixels",void 0),(0,ie._)([(0,ce.Cb)({json:{write:!0}})],oe.prototype,"statistics",void 0),oe=z=(0,ie._)([(0,fe.j)("esri.layers.support.PixelBlock")],oe);const ne=oe},79645:(Pe,Ae,se)=>{se.d(Ae,{Z:()=>ne});var z,ie=se(17626),ge=se(86810),xe=se(58817),_e=se(62208),he=se(77712),ce=(se(90912),se(76898)),U=se(2004),fe=se(65234),me=se(27497);let oe=z=class extends ge.wq{constructor(W){super(W),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get dataType(){const W=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===W?"standard-time":W}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(W){W&&this._set("nativeExtent",W)}get nativePixelSize(){if((0,_e.Wi)(this.transform)||!this.transform.affectsPixelSize)return this.pixelSize;const W=this.nativeExtent;return{x:W.width/this.width,y:W.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}clone(){return new z({attributeTable:(0,xe.d9)(this.attributeTable),bandCount:this.bandCount,colormap:(0,xe.d9)(this.colormap),extent:(0,xe.d9)(this.extent),nativePixelSize:(0,xe.d9)(this.nativePixelSize),format:this.format,height:this.height,width:this.width,histograms:(0,xe.d9)(this.histograms),keyProperties:(0,xe.d9)(this.keyProperties),multidimensionalInfo:(0,xe.d9)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,xe.d9)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,xe.d9)(this.spatialReference),statistics:(0,xe.d9)(this.statistics),storageInfo:(0,xe.d9)(this.storageInfo),transform:(0,xe.d9)(this.transform)})}};(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"attributeTable",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"bandCount",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"colormap",void 0),(0,ie._)([(0,he.Cb)({type:String,readOnly:!0})],oe.prototype,"dataType",null),(0,ie._)([(0,he.Cb)({type:U.Z,json:{write:!0}})],oe.prototype,"extent",void 0),(0,ie._)([(0,he.Cb)({type:U.Z,json:{write:!0}})],oe.prototype,"nativeExtent",null),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"nativePixelSize",null),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"format",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"height",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"width",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"hasMultidimensionalTranspose",null),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"histograms",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"keyProperties",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"multidimensionalInfo",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"noDataValue",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"pixelSize",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"pixelType",void 0),(0,ie._)([(0,he.Cb)()],oe.prototype,"isPseudoSpatialReference",void 0),(0,ie._)([(0,he.Cb)({type:fe.Z,json:{write:!0}})],oe.prototype,"spatialReference",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"statistics",void 0),(0,ie._)([(0,he.Cb)({type:me.Z,json:{write:!0}})],oe.prototype,"storageInfo",void 0),(0,ie._)([(0,he.Cb)({json:{write:!0}})],oe.prototype,"transform",void 0),oe=z=(0,ie._)([(0,ce.j)("esri.layers.support.RasterInfo")],oe);const ne=oe},27497:(Pe,Ae,se)=>{se.d(Ae,{Z:()=>me});var U,ie=se(17626),ge=se(86810),xe=se(58817),_e=se(77712),Ce=(se(90912),se(76898)),ce=se(72642);let fe=U=class extends ge.wq{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}clone(){return new U({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,xe.d9)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,xe.d9)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,xe.d9)(this.tileInfo),transposeInfo:(0,xe.d9)(this.transposeInfo),blockBoundary:(0,xe.d9)(this.blockBoundary)})}};(0,ie._)([(0,_e.Cb)({type:Number,json:{write:!0}})],fe.prototype,"blockWidth",void 0),(0,ie._)([(0,_e.Cb)({type:Number,json:{write:!0}})],fe.prototype,"blockHeight",void 0),(0,ie._)([(0,_e.Cb)({type:String,json:{write:!0}})],fe.prototype,"compression",void 0),(0,ie._)([(0,_e.Cb)({type:ce.Z,json:{write:!0}})],fe.prototype,"origin",void 0),(0,ie._)([(0,_e.Cb)({type:Number,json:{write:!0}})],fe.prototype,"firstPyramidLevel",void 0),(0,ie._)([(0,_e.Cb)({type:Number,json:{write:!0}})],fe.prototype,"maximumPyramidLevel",void 0),(0,ie._)([(0,_e.Cb)({json:{write:!0}})],fe.prototype,"pyramidResolutions",void 0),(0,ie._)([(0,_e.Cb)({type:Number,json:{write:!0}})],fe.prototype,"pyramidScalingFactor",void 0),(0,ie._)([(0,_e.Cb)({type:Number,json:{write:!0}})],fe.prototype,"pyramidBlockWidth",void 0),(0,ie._)([(0,_e.Cb)({type:Number,json:{write:!0}})],fe.prototype,"pyramidBlockHeight",void 0),(0,ie._)([(0,_e.Cb)({type:Boolean,json:{write:!0}})],fe.prototype,"isVirtualTileInfo",void 0),(0,ie._)([(0,_e.Cb)({json:{write:!0}})],fe.prototype,"tileInfo",void 0),(0,ie._)([(0,_e.Cb)()],fe.prototype,"transposeInfo",void 0),(0,ie._)([(0,_e.Cb)()],fe.prototype,"blockBoundary",void 0),fe=U=(0,ie._)([(0,Ce.j)("esri.layers.support.RasterStorageInfo")],fe);const me=fe},15365:(Pe,Ae,se)=>{function ie(ge,xe){let _e=0,he="",Ce=0,ce=0;const U=ge.length;for(;_e>4,Ce<8?Ce=1:15===Ce?(Ce=4,ce=(7&ce)<<18|(63&ge[_e++])<<12|(63&ge[_e++])<<6|63&ge[_e++]):14===Ce?(Ce=3,ce=(15&ce)<<12|(63&ge[_e++])<<6|63&ge[_e++]):(Ce=2,ce=(31&ce)<<6|63&ge[_e++]),(0!==ce||xe)&&(he+=String.fromCharCode(ce));return he}se.d(Ae,{f:()=>ie})},68786:(Pe,Ae,se)=>{se.d(Ae,{Jx:()=>oe,zD:()=>he});var ie=se(54346);const ge=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,128]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34027999387901484e22,34027999387901484e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let xe=null,_e=null;function he(){return xe||(xe=se.e(2045).then(se.bind(se,72045)).then(W=>W.l).then(({default:W})=>W({locateFile:Q=>(0,ie.V)(`esri/layers/support/rasterFormats/${Q}`)})).then(W=>{(function me(W){const{_malloc:Q,_free:H,_lerc_getBlobInfo:ee,_lerc_getDataRanges:X,_lerc_decode_4D:K,asm:N}=W;let x;const L=Object.values(N).find(C=>C&&"buffer"in C&&C.buffer===W.HEAPU8.buffer),w=C=>{const A=C.map(k=>function U(W){return 16+(W>>3<<3)}(k)),I=A.reduce((k,B)=>k+B),y=Q(I);x=new Uint8Array(L.buffer);let v=A[0];A[0]=y;for(let k=1;k{const y=new Uint8Array(48),v=new Uint8Array(24),[k,B,D]=w([C.length,y.length,v.length]);x.set(C,k),x.set(y,B),x.set(v,D);let f=ee(k,C.length,B,D,12,3);if(f)throw H(k),`lerc-getBlobInfo: error code is ${f}`;x=new Uint8Array(L.buffer),fe(x,B,y),fe(x,D,v);const O=new Uint32Array(y.buffer),R=new Float64Array(v.buffer),[G,t,,u,g,p,S,d,s,i,h]=O,m={version:G,depthCount:i,width:u,height:g,validPixelCount:S,bandCount:p,blobSize:d,maskCount:s,dataType:t,minValue:R[0],maxValue:R[1],maxZerror:R[2],statistics:[],bandCountWithNoData:h};if(h)return m;if(1===i&&1===p)return H(k),m.statistics.push({minValue:R[0],maxValue:R[1]}),m;const c=i*p*8,b=new Uint8Array(c),T=new Uint8Array(c);let E=k,M=0,_=0,F=!1;if(x.byteLength1){const Z=P.slice(J*i,(J+1)*i),q=V.slice(J*i,(J+1)*i),$=Math.min.apply(null,Z),re=Math.max.apply(null,q);j.push({minValue:$,maxValue:re,depthStats:{minValues:Z,maxValues:q}})}else j.push({minValue:P[J],maxValue:V[J]});return H(E),F||H(M),m},ce.decode=(C,A)=>{const{maskCount:I,depthCount:y,bandCount:v,width:k,height:B,dataType:D,bandCountWithNoData:f}=A,O=ge[D],R=k*B,G=new Uint8Array(R*v),u=new Uint8Array(R*y*v*O.size),g=new Uint8Array(v),p=new Uint8Array(8*v),[S,d,s,i,h]=w([C.length,G.length,u.length,g.length,p.length]);x.set(C,S),x.set(G,d),x.set(u,s),x.set(g,i),x.set(p,h);const m=K(S,C.length,I,d,y,k,B,v,D,s,i,h);if(m)throw H(S),`lerc-decode: error code is ${m}`;x=new Uint8Array(L.buffer),fe(x,s,u),fe(x,d,G);let c=null;if(f){fe(x,i,g),fe(x,h,p),c=[];const b=new Float64Array(p.buffer);for(let T=0;T1){R.set(D[0]);for(let p=1;p0&&null!=G&&v.range[0]<=G&&v.range[1]>=G)for(let p=0;p1?D:null,{pixelType:g}=v;return{width:x,height:L,bandCount:w,pixelType:g,depthCount:C,statistics:y,pixels:B,mask:R,bandMasks:u}}},94194:(Pe,Ae,se)=>{function ge(){const Ce=[];for(let ce=0;ce<=257;ce++)Ce[ce]=[ce];return Ce}function xe(Ce,ce){for(let U=0;Uhe});const _e=new Set;function he(Ce,ce,U,fe=!0){const me=function ie(Ce,ce,U,fe=!0){if(ce%4!=0||U%4!=0){const me=new ArrayBuffer(4*Math.ceil(U/4)),z=new Uint8Array(me),oe=new Uint8Array(Ce,ce,U);if(fe)for(let ne=0;ne=z)ne-=z,X=ee>>>32-z,ee<<=z;else{X=ee>>>32-ne,ee=me[H++];const w=z-ne;ne=32-w,X=(X<>>ne),ee<<=w}if(257===X)break;if(256===X){z=9,oe=ge(),W=oe.length,Q=[];continue}const L=oe[X];if(null==L){if(X>oe.length)throw"data integrity issue: code does not exist on code page";Q.push(Q[0]),oe[W++]=Q.slice(),xe(x,Q)}else xe(x,L),Q.push(L[0]),Q.length>1&&(oe[W++]=Q.slice()),Q=L.slice();if(_e.has(W)&&z++,0===ne&&(ee=me[H++],ne=32),H>K||H===K&&ne<=N)break}return new Uint8Array(x)}_e.add(511),_e.add(1023),_e.add(2047),_e.add(4095),_e.add(8191)},8614:(Pe,Ae,se)=>{se.d(Ae,{J:()=>p,y:()=>g});var ie=se(15861),ge=se(26584),xe=se(62208),_e=se(25688),he=se(10699),Ce=se(34022);class ce{constructor(s){this._canvas=null,this._ctx=null,s&&(this._canvas=s.canvas,this._ctx=s.ctx||s.canvas&&s.canvas.getContext("2d"))}decode(s,i,h){if(!s||s.byteLength<10)throw new ge.Z("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:m=0,height:c=0,format:b}=i;const{applyJpegMask:T}=i;if(T&&(!m||!c))throw new ge.Z("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");return new Promise((E,M)=>{let _=null;"jpg"===b&&T&&(_=ce._getMask(s,{width:m,height:c}));const F=new Blob([new Uint8Array(s)],{type:"image/"+b=="jpg"?"jpeg":b}),P=URL.createObjectURL(F),V=new Image;let j;V.src=P,V.onload=()=>{if(URL.revokeObjectURL(P),(0,he.Hc)(h))return void M((0,he.zE)());m=V.width,c=V.height,this._canvas&&this._ctx?(this._canvas.width===m&&this._canvas.height===c||(this._canvas.width=m,this._canvas.height=c),this._ctx.clearRect(0,0,m,c)):(this._canvas=document.createElement("canvas"),this._canvas.width=m,this._canvas.height=c,this._ctx=this._canvas.getContext("2d")),this._ctx.drawImage(V,0,0);const J=this._ctx.getImageData(0,0,m,c);let Z;if(j=J.data,i.renderOnCanvas){if(_)for(Z=0;Z<_.length;Z++)j[4*Z+3]=_[Z]?255:0;return this._ctx.putImageData(J,0,0),void E(null)}const q=m*c,$=new Uint8Array(q),re=new Uint8Array(q),Y=new Uint8Array(q);if(_)for(Z=0;Z{URL.revokeObjectURL(P),M("cannot load image")}})}static _getMask(s,i){let h=null;try{const m=new Uint8Array(s),c=Math.ceil(m.length/2);let b=0;const T=m.length-2;for(b=c;b=0;F--)h[M++]=E[_]>>F&1}}catch{}return h}}var U=se(89890);class fe{static decode(s,i=!1){const h=new Uint8Array(s),m=new U.J;m.parse(h);const{width:c,height:b,numComponents:T,eof:E}=m,M=m.getData(c,b,!0),_=c*b;let F,P=null,V=0,j=0,J=0;if(!i&&E=0;J--)P[q++]=Z[V]>>J&1}catch{}if(1===T&&M.length===c*b)F=[M,M,M];else{for(F=[],V=0;V<3;V++)F.push(new Uint8Array(_));for(J=0,j=0;j<_;j++)for(V=0;V<3;V++)F[V][j]=M[J++]}return{width:c,height:b,pixels:F,mask:P}}}var me=se(68786),z=se(94194);const oe=(d,s)=>Math.floor(d.byteLength/(s.width*s.height*ne(s.pixelType))),ne=d=>{let s=1;switch(d){case Uint8Array:case Int8Array:s=1;break;case Uint16Array:case Int16Array:s=2;break;case Uint32Array:case Int32Array:case Float32Array:s=4;break;case Float64Array:s=8}return s};class Q{static decode(s,i){const h=i.pixelType,m=[],c=i.width*i.height,b=oe(s,i),{bandIds:T,format:E}=i,M=T&&T.length||oe(s,i),_=s.byteLength-s.byteLength%(c*ne(h)),F=new h(s,0,c*b);let P,V,j,J,Z=null;if("bip"===E)for(P=0;P{if(8*d.byteLength=0;T--)h[m++]=c>>T&1;for(T=7;m>T&1,T--;return h})(s.slice(_),c)),{pixels:m,mask:Z}}}var H=se(93122),ee=se(44853),X=function(d){var m,c,b;function T(E){var M,F,P,V,j,J,Z,q,$,re,Y,ue;for(this.data=E,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},V=null;;){switch(M=this.readUInt32(),Z=function(){var pe,ae;for(ae=[],pe=0;pe<4;++pe)ae.push(String.fromCharCode(this.data[this.pos++]));return ae}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(M);break;case"fcTL":V&&this.animation.frames.push(V),this.pos+=4,V={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},P=this.readUInt16(),F=this.readUInt16()||100,V.delay=1e3*P/F,V.disposeOp=this.data[this.pos++],V.blendOp=this.data[this.pos++],V.data=[];break;case"IDAT":case"fdAT":for("fdAT"===Z&&(this.pos+=4,M-=4),E=V?.data||this.imgData,re=0;0<=M?reM;0<=M?++re:--re)E.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(M),(q=255-this.transparency.indexed.length)>0)for(Y=0;0<=q?Yq;0<=q?++Y:--Y)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(M)[0];break;case 2:this.transparency.rgb=this.read(M)}break;case"tEXt":j=($=this.read(M)).indexOf(0),J=String.fromCharCode.apply(String,$.slice(0,j)),this.text[J]=String.fromCharCode.apply(String,$.slice(j+1));break;case"IEND":return V&&this.animation.frames.push(V),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(ue=this.colorType)||6===ue,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=M}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return T.load=function(E,M,_){var F;return"function"==typeof M&&(_=M),(F=new XMLHttpRequest).open("GET",E,!0),F.responseType="arraybuffer",F.onload=function(){var P;return P=new T(new Uint8Array(F.response||F.mozResponseArrayBuffer)),"function"==typeof M?.getContext&&P.render(M),"function"==typeof _?_(P):void 0},F.send(null)},T.prototype.read=function(E){var M,_;for(_=[],M=0;0<=E?ME;0<=E?++M:--M)_.push(this.data[this.pos++]);return _},T.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},T.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},T.prototype.decodePixels=function(E){var M,_,F,P,V,j,J,Z,$,re,Y,ue,pe,ae,te,le,ye,de,be,Te,we,ve;if(null==E&&(E=this.imgData),0===E.length)return new Uint8Array(0);for(E=(E=new Ce.Z(E)).getBytes(),te=(Y=this.pixelBitlength/8)*this.width,ue=new Uint8Array(te*this.height),j=E.length,ae=0,pe=0,_=0;pe1&&_/Pk(i,h,d);break;case"tiff":s=L;break;case"deflate":s=y;break;case"lzw":s=v;break;case"error":s=()=>{throw new ge.Z("rasterCodec:decode","input data contains error")};break;default:s=()=>{throw new ge.Z("rasterCodec:decode","unsupported raster format")}}return s}function u(d,s=1){if(!d)return;const{pixels:i,width:h,height:m,mask:c}=d;if(!i||0===i.length)return;const b=i.length,T=h-1,E=m-1,M=[];let _,F,P,V,j,J,Z=null;const q=_e.Z.getPixelArrayConstructor(d.pixelType);if(0===s){for(_=0;_{se.d(Ae,{Dq:()=>k,FI:()=>B,If:()=>D,Jx:()=>d,Uw:()=>p,cK:()=>t,vr:()=>u});var ie=se(15861),ge=se(62208),xe=se(15365),_e=se(89890),he=se(68786),Ce=se(94194),ce=se(635),U=se(44853),fe=se(34022);const me=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],z=4294967296,oe=new Set([1,5,6,7,8,34712,34887]);function ne(i,h){let m="unknown";return 3===i?m=64===h?"f64":"f32":1===i?1===h?m="u1":2===h?m="u2":4===h?m="u4":h<=8?m="u8":h<=16?m="u16":h<=32&&(m="u32"):2===i&&(h<=8?m="s8":h<=16?m="s16":h<=32&&(m="s32")),m}function W(i){let h=null;switch(i?i.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":h=Uint8Array;break;case"u16":h=Uint16Array;break;case"u32":h=Uint32Array;break;case"s8":h=Int8Array;break;case"s16":h=Int16Array;break;case"s32":h=Int32Array;break;case"f64":h=Float64Array;break;default:h=Float32Array}return h}function Q(i,h){return{x:h[0]*i.x+h[1]*i.y+h[2],y:h[3]*i.x+h[4]*i.y+h[5]}}function H(i,h){return i.get(h)?.values}function ee(i,h){return i.get(h)?.values}function X(i,h){return i.get(h)?.values?.[0]}function K(i,h){return i.get(h)?.values?.[0]}function N(i,h,m,c=0,b=ce.Z.TIFF_TAGS,T=4){const E=8===T,M=E?O(new DataView(i,m,8),0,h):new DataView(i,m,2).getUint16(0,h),_=4+2*T,F=E?8:2,P=F+M*_;if(m+P>i.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:P};const V=m+P+4<=i.byteLength?G(new DataView(i,m+P,8===T?8:4),0,h,8===T):null,j=m+F,J=new Map;let Z,q,$,re,Y,ue=0,pe=0;for(let ae=0;ae(0,he.Jx)(i,{inputOffset:h}).pixels[0];function L(i,h,m,c,b){return w.apply(this,arguments)}function w(){return(w=(0,ie.Z)(function*(i,h,m,c,b){const T=U.f===h,E=K(m,"BITSPERSAMPLE"),M=ne(K(m,"SAMPLEFORMAT")??1,E),_=K(m,"COMPRESSION")??1,F=W(M);let P,V,j,J,Z,q,$;if(34887===_)return yield(0,he.zD)(),x(i,c);if(1===_)$=i.slice(c,c+b),j=new Uint8Array($);else if(8===_||32946===_)j=new Uint8Array(i,c,b),Z=new fe.Z(j),q=Z.getBytes(),$=new ArrayBuffer(q.length),j=new Uint8Array($),j.set(q);else if(6===_){j=new Uint8Array(i,c,b);const re=new _e.J;re.parse(j);const Y=re.getData(re.width,re.height,!0);$=new ArrayBuffer(Y.length),j=new Uint8Array($),j.set(Y)}else if(7===_){const re=m.get("JPEGTABLES").values,Y=re.length-2;j=new Uint8Array(Y+b-2);for(let te=0;te1){const Se=Math.round(c.length/V);for(re=0;re{const c=U.f===h.littleEndian,b=ee(m,"STRIPOFFSETS");if(void 0===b)return null;const{width:T,height:E,pixelType:M}=B([m]),_=h.planes,F=T*E,P=K(m,"BITSPERSAMPLE"),V=W(M),j=new V(F*_),J=ee(m,"STRIPBYTECOUNTS"),Z=K(m,"ROWSPERSTRIP"),q=K(m,"COMPRESSION")??1;let $,re,Y,ue,pe,ae,te,le,ye,de,be,Te=Z;if(P%8==0)for($=0;$E?E-$*Z:Z,"u8"===M||"s8"===M||c){if(8===q||32946===q)te=new Uint8Array(i,b[$],J[$]),de=new fe.Z(te),be=de.getBytes(),ae=new ArrayBuffer(be.length),te=new Uint8Array(ae),te.set(be),te.length!==Te*T*_*P/8&&console.log("strip byte counts is different than expected");else if(6===q){te=new Uint8Array(i,b[$],J[$]);const ve=new _e.J;ve.parse(te);const Ee=ve.getData(ve.width,ve.height,!0);ae=new ArrayBuffer(Ee.length),te=new Uint8Array(ae),te.set(Ee)}else 5===q?(te=(0,Ce.J)(i,b[$],J[$],h.littleEndian),ae=te.buffer):(J[$]!==Te*T*_*P/8&&console.log("strip byte counts is different than expected"),ae=i.slice(b[$],b[$]+J[$]));ue=new V(ae)}else{switch(6===q||8===q||32946===q?(te=new Uint8Array(i,b[$],J[$]),de=new fe.Z(te),te=de.getBytes(),ae=new ArrayBuffer(te.length),le=new Uint8Array(ae),te.length!==Te*T*_*P/8&&console.log("strip byte counts is different than expected")):(J[$]!==Te*T*_*P/8&&console.log("strip byte counts is different than expected"),ae=new ArrayBuffer(J[$]),te=new Uint8Array(i,b[$],J[$]),le=new Uint8Array(ae)),M){case"u16":case"s16":for(Y=0;Y{if(!(i&&i.length>0&&h&&m))return null;let c,b,T;const E=i[0].length,M=i.length,_=new Uint8Array(E);for(let F=0;FT?0:1;else for(let P=0;PT?0:1);return _};function k(i,h,m,c=0,b=!1,T=4){if(m.values)return!0;const E=m.type,M=m.valueCount;let _=m.valueOffset,F=[];const P=me[E],V=8*P,j=M*P,J=M*me[E]*8;let Z,q;const $=8===T?64:32,re=m.valueOffsets;if(J>$&&j>(b?i.byteLength:i?i.byteLength-_+c:0))return m.offlineOffsetSize=[_,j],m.values=null,!1;if(J<=$){if(!h)if($<=32)_>>>=32-J;else{const Y=re?.length?re[0]:_>>>0,ue=re?.length?re[1]:Math.round((_-Y)/z);J<=32?(_=Y>>>32-J,re[0]=_):(_=Y*2**(32-J)+(ue>>>32-J),re[0]=Y,re[1]=ue>>>32-J)}if(1===M&&V===$)F=[_];else if(64===$){const Y=re?.length?re[0]:_>>>0,ue=re?.length?re[1]:Math.round((_-Y)/z);let pe=Y,ae=32;for(q=1;q<=M;q++){const te=32-V*q%32;if(ae>>32-ae;pe=ue,F.push(le+(ue<<32-ae>>>32-ae)*2**(V-ae)),ae-=32-(V-ae)}else F.push(pe<>>32-V),ae-=V;0===ae&&(ae=32,pe=ue)}}else for(q=1;q<=M;q++)F.push(_<<32-V*q>>>32-V)}else{_-=c,b&&(_=0);for(let Y=_;Y<_+j;Y+=P){switch(E){case 1:case 2:case 7:Z=new DataView(i,Y,1).getUint8(0);break;case 3:Z=new DataView(i,Y,2).getUint16(0,h);break;case 4:case 13:Z=new DataView(i,Y,4).getUint32(0,h);break;case 5:Z=new DataView(i,Y,4).getUint32(0,h)/new DataView(i,Y+4,4).getUint32(0,h);break;case 6:Z=new DataView(i,Y,1).getInt8(0);break;case 8:Z=new DataView(i,Y,2).getInt16(0,h);break;case 9:Z=new DataView(i,Y,4).getInt32(0,h);break;case 10:Z=new DataView(i,Y,4).getInt32(0,h)/new DataView(i,Y+4,4).getInt32(0,h);break;case 11:Z=new DataView(i,Y,4).getFloat32(0,h);break;case 12:Z=new DataView(i,Y,8).getFloat64(0,h);break;case 16:case 18:Z=O(new DataView(i,Y,8),0,h);break;case 17:Z=R(new DataView(i,Y,8),0,h);break;default:Z=null}F.push(Z)}}if(2===E){let Y="";const ue=F;for(F=[],q=0;qparseFloat(Me)),j.some(Me=>isNaN(Me))&&(j=null));const J=K(h,"COMPRESSION")??1;let Z;switch(J){case 1:Z="NONE";break;case 2:case 3:case 4:case 32771:Z="CCITT";break;case 5:Z="LZW";break;case 6:case 7:Z="JPEG";break;case 32773:Z="PACKBITS";break;case 8:case 32946:Z="DEFLATE";break;case 34712:Z="JPEG2000";break;case 34887:Z="LERC";break;default:Z=String(J)}let q=!0,$="";oe.has(J)||(q=!1,$+="unsupported tag compression "+J),_>3&&(q=!1,$+="unsupported tag sampleFormat "+_),E%8!=0&&(q=!1,$+="unsupported tag bitsPerSample "+E);const re=X(h,"GEOASCIIPARAMS");let Y;if(re){const Me=re.split("|").find(Oe=>Oe.includes("ESRI PE String = ")),ke=Me?Me.replace("ESRI PE String = ",""):"";Y=ke.startsWith("COMPD_CS")||ke.startsWith("PROJCS")||ke.startsWith("GEOGCS")?{wkid:null,wkt:ke}:null}const ue=ee(h,"GEOTIEPOINTS"),pe=ee(h,"GEOPIXELSCALE"),ae=ee(h,"GEOTRANSMATRIX"),te=h.has("GEOKEYDIRECTORY")?h.get("GEOKEYDIRECTORY").data:null;let le,ye,de=!1;if(te){de=2===K(te,"GTRasterTypeGeoKey");const Me=K(te,"GTModelTypeGeoKey");if(2===Me){const ke=K(te,"GeographicTypeGeoKey");ke>=1024&&ke<=32766&&(Y={wkid:ke})}else if(1===Me){const ke=K(te,"ProjectedCSTypeGeoKey");ke>=1024&&ke<=32766&&(Y={wkid:ke})}}if(pe&&ue&&ue.length>=6?(le=[pe[0],0,ue[3]-ue[0]*pe[0],0,-Math.abs(pe[1]),ue[4]-ue[1]*pe[1]],de&&(le[2]-=.5*le[0]+.5*le[1],le[5]-=.5*le[3]+.5*le[4])):ae&&16===ae.length&&(le=de?[ae[0],ae[1],ae[3]-.5*ae[0],ae[4],ae[5],ae[7]-.5*ae[5]]:[ae[0],ae[1],ae[3],ae[4],ae[5],ae[7]]),le){const Me=[{x:0,y:T},{x:0,y:0},{x:b,y:T},{x:b,y:0}];let ke,Oe=Number.POSITIVE_INFINITY,Ue=Number.POSITIVE_INFINITY,Re=Number.NEGATIVE_INFINITY,Le=Number.NEGATIVE_INFINITY;for(let Be=0;BeOe?Oe:ke.x,Re=ke.xUe?Ue:ke.y,Le=ke.y1===X(Me,"NEWSUBFILETYPE"));let Te,we,ve,Ee,Se;if(be.length>0){ve=Math.round(Math.log(b/K(be[0],"IMAGEWIDTH"))/Math.LN2);const Me=be[be.length-1];Ee=Math.round(Math.log(b/K(Me,"IMAGEWIDTH"))/Math.LN2),Te=K(Me,"TILEWIDTH"),we=K(Me,"TILELENGTH")}Te=null!=Ee&&Ee>0?Te||m:null,we=null!=Ee&&Ee>0?we||c:null,m&&(Se=[{maxCol:Math.ceil(b/m)-1,maxRow:Math.ceil(T/c)-1,minRow:0,minCol:0}],be.forEach(Me=>{Se.push({maxCol:Math.ceil(K(Me,"IMAGEWIDTH")/K(Me,"TILEWIDTH"))-1,maxRow:Math.ceil(K(Me,"IMAGELENGTH")/K(Me,"TILELENGTH"))-1,minRow:0,minCol:0})}));const De=(i=>{if(!i)return null;const h=i.match(//gi);if(!h||0===h.length)return null;const m=new Map;let c,b,T,E,M;for(let re=0;re")),E=c.indexOf("sample="),E>-1&&(M=c.slice(E+8,c.indexOf('"',E+8))),E=c.indexOf("name="),E>-1&&(b=c.slice(E+6,c.indexOf('"',E+6))),b&&(T=c.slice(c.indexOf(">")+1,c.indexOf("")).trim(),null!=M?m.has(b)?m.get(b)[M]=T:m.set(b,[T]):m.set(b,T)),M=null;const _=m.get("STATISTICS_MINIMUM"),F=m.get("STATISTICS_MAXIMUM"),P=m.get("STATISTICS_MEAN"),V=m.get("STATISTICS_STDDEV");let j=null;if(_&&F){j=[];for(let re=0;re<_.length;re++)j.push({min:parseFloat(_[re]),max:parseFloat(F[re]),avg:P&&parseFloat(P[re]),stddev:V&&parseFloat(V[re])})}const J=m.get("BandName"),Z=m.get("WavelengthMin"),q=m.get("WavelengthMax");let $=null;if(J){$=[];for(let re=0;re0);return{...B(T),littleEndian:h,isBigTiff:m,ifds:T}}function O(i,h,m){const c=i.getUint32(h,m),b=i.getUint32(h+4,m);return m?b*z+c:c*z+b}function R(i,h,m){let c=m?i.getInt32(h,m):i.getUint32(h,m),b=m?i.getUint32(h+4,m):i.getInt32(h+4,m);const T=(m?c:b)>=0?1:-1;return m?c*=T:b*=T,T*(m?b*z+c:c*z+b)}function G(i,h,m,c){return c?O(i,h,m):i.getUint32(h,m)}function t(i){const h=new DataView(i,0,16),m=h.getUint16(0,!1);let c=null;if(18761===m)c=!0;else{if(19789!==m)throw"unexpected endianess byte";c=!1}const b=h.getUint16(2,c);if(42!==b&&43!==b)throw"unexpected tiff identifier";let T=4;const E=43===b;if(E){const M=h.getUint16(T,c);if(T+=2,8!==M||0!==h.getUint16(T,c))throw"unsupported bigtiff version";T+=2}return{littleEndian:c,isBigTiff:E,firstIFDPos:G(h,T,c,E)}}function u(i,h,m,c=0,b=ce.Z.TIFF_TAGS,T=4){const E=N(i,h,m,c,b,T);let M;const _=E.ifd;if(_){if(ce.Z.ifdTags.forEach((F,P)=>{_.has(P)&&(M=_.get(P),M.data=N(i,h,M.valueOffset-c,c,F).ifd)}),_.has("GEOKEYDIRECTORY")){M=_.get("GEOKEYDIRECTORY");const F=M.values;if(F&&F.length>4){const P=F[0]+"."+F[1]+"."+F[2];M.data=N(i,h,M.valueOffset+6-c,c,ce.Z.GEO_KEYS,2).ifd,M.data&&M.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[P]})}}if(_.has("XMP")){M=_.get("XMP");const F=M.values;"number"==typeof F[0]&&7===M.type&&(M.values=[(0,xe.f)(new Uint8Array(F))])}}return E}function g(i){const{width:h,height:m,tileHeight:c,tileWidth:b}=i,T=i.planes,E=b?b*c:h*m,M=K(i.ifds[0],"BITSPERSAMPLE");let _="";return E*T>2**30/(M>8?M/8:1)&&(_=b?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),_}function p(i,h){return S.apply(this,arguments)}function S(){return(S=(0,ie.Z)(function*(i,h){const{headerInfo:m,ifd:c,offsets:b,sizes:T}=h,E=[];for(let de=0;dede.min):null,te=pe?pe.map(de=>de.max):null;let le,ye=null;if(null!=ue)if(ye=new Uint8Array(Z),Math.abs(ue)>1e24)for(le=0;le1e24)for(M=0;M<_.width*_.height;M++)_.mask[M]=Math.abs((_.pixels[0][M]-P)/P)<1e-6?0:1;else for(M=0;M<_.width*_.height;M++)_.mask[M]=_.pixels[0][M]===P?0:1;_.noDataValue=P}return _})).apply(this,arguments)}},635:(Pe,Ae,se)=>{se.d(Ae,{Z:()=>ce});const ie=(()=>{const U=[];return U[254]="NEWSUBFILETYPE",U[255]="SUBFILETYPE",U[256]="IMAGEWIDTH",U[257]="IMAGELENGTH",U[258]="BITSPERSAMPLE",U[259]="COMPRESSION",U[262]="PHOTOMETRICINTERPRETATION",U[263]="THRESHHOLDING",U[264]="CELLWIDTH",U[265]="CELLLENGTH",U[266]="FILLORDER",U[269]="DOCUMENTNAME",U[270]="IMAGEDESCRIPTION",U[271]="MAKE",U[272]="MODEL",U[273]="STRIPOFFSETS",U[274]="ORIENTATION",U[277]="SAMPLESPERPIXEL",U[278]="ROWSPERSTRIP",U[279]="STRIPBYTECOUNTS",U[280]="MINSAMPLEVALUE",U[281]="MAXSAMPLEVALUE",U[282]="XRESOLUTION",U[283]="YRESOLUTION",U[284]="PLANARCONFIGURATION",U[285]="PAGENAME",U[286]="XPOSITION",U[287]="YPOSITION",U[288]="FREEOFFSETS",U[289]="FREEBYTECOUNTS",U[290]="GRAYRESPONSEUNIT",U[291]="GRAYRESPONSECURVE",U[292]="T4OPTIONS",U[293]="T6OPTIONS",U[296]="RESOLUTIONUNIT",U[297]="PAGENUMBER",U[300]="COLORRESPONSEUNIT",U[301]="TRANSFERFUNCTION",U[305]="SOFTWARE",U[306]="DATETIME",U[315]="ARTIST",U[316]="HOSTCOMPUTER",U[317]="PREDICTOR",U[318]="WHITEPOINT",U[319]="PRIMARYCHROMATICITIES",U[320]="COLORMAP",U[321]="HALFTONEHINTS",U[322]="TILEWIDTH",U[323]="TILELENGTH",U[324]="TILEOFFSETS",U[325]="TILEBYTECOUNTS",U[326]="BADFAXLINES",U[327]="CLEANFAXDATA",U[328]="CONSECUTIVEBADFAXLINES",U[330]="SUBIFD",U[332]="INKSET",U[333]="INKNAMES",U[334]="NUMBEROFINKS",U[336]="DOTRANGE",U[337]="TARGETPRINTER",U[338]="EXTRASAMPLES",U[339]="SAMPLEFORMAT",U[340]="SMINSAMPLEVALUE",U[341]="SMAXSAMPLEVALUE",U[342]="TRANSFERRANGE",U[347]="JPEGTABLES",U[512]="JPEGPROC",U[513]="JPEGIFOFFSET",U[514]="JPEGIFBYTECOUNT",U[515]="JPEGRESTARTINTERVAL",U[517]="JPEGLOSSLESSPREDICTORS",U[518]="JPEGPOINTTRANSFORM",U[519]="JPEGQTABLES",U[520]="JPEGDCTABLES",U[521]="JPEGACTABLES",U[529]="YCBCRCOEFFICIENTS",U[530]="YCBCRSUBSAMPLING",U[531]="YCBCRPOSITIONING",U[532]="REFERENCEBLACKWHITE",U[700]="XMP",U[33550]="GEOPIXELSCALE",U[33922]="GEOTIEPOINTS",U[33432]="COPYRIGHT",U[42112]="GDAL_METADATA",U[42113]="GDAL_NODATA",U[50844]="RPCCOEFFICIENT",U[34264]="GEOTRANSMATRIX",U[34735]="GEOKEYDIRECTORY",U[34736]="GEODOUBLEPARAMS",U[34737]="GEOASCIIPARAMS",U[34665]="EXIFIFD",U[34853]="GPSIFD",U[40965]="INTEROPERABILITYIFD",U})(),ge=(()=>{const U=ie.slice();return U[36864]="ExifVersion",U[40960]="FlashpixVersion",U[40961]="ColorSpace",U[42240]="Gamma",U[37121]="ComponentsConfiguration",U[37122]="CompressedBitsPerPixel",U[40962]="PixelXDimension",U[40963]="PixelYDimension",U[37500]="MakerNote",U[37510]="UserComment",U[40964]="RelatedSoundFile",U[36867]="DateTimeOriginal",U[36868]="DateTimeDigitized",U[36880]="OffsetTime",U[36881]="OffsetTimeOriginal",U[36882]="OffsetTimeDigitized",U[37520]="SubSecTime",U[37521]="SubSecTimeOriginal",U[37522]="SubSecTimeDigitized",U[37888]="Temperature",U[37889]="Humidity",U[37890]="Pressure",U[37891]="WaterDepth",U[37892]="Acceleration",U[37893]="CameraElevationAngle",U[42016]="ImageUniqueID",U[42032]="CameraOwnerName",U[42033]="BodySerialNumber",U[42034]="LensSpecification",U[42035]="LensMake",U[42036]="LensModel",U[42037]="LensSerialNumber",U[33434]="ExposureTime",U[33437]="FNumber",U[34850]="ExposureProgram",U[34852]="SpectralSensitivity",U[34855]="PhotographicSensitivity",U[34856]="OECF",U[34864]="SensitivityType",U[34865]="StandardOutputSensitivity",U[34866]="RecommendedExposureIndex",U[34867]="ISOSpeed",U[34868]="ISOSpeedLatitudeyyy",U[34869]="ISOSpeedLatitudezzz",U[37377]="ShutterSpeedValue",U[37378]="ApertureValue",U[37379]="BrightnessValue",U[37380]="ExposureBiasValue",U[37381]="MaxApertureValue",U[37382]="SubjectDistance",U[37383]="MeteringMode",U[37384]="LightSource",U[37385]="Flash",U[37386]="FocalLength",U[37396]="SubjectArea",U[41483]="FlashEnergy",U[41484]="SpatialFrequencyResponse",U[41486]="FocalPlaneXResolution",U[41487]="FocalPlaneYResolution",U[41488]="FocalPlaneResolutionUnit",U[41492]="SubjectLocation",U[41493]="ExposureIndex",U[41495]="SensingMethod",U[41728]="FileSource",U[41729]="SceneType",U[41730]="CFAPattern",U[41985]="CustomRendered",U[41986]="ExposureMode",U[41987]="WhiteBalance",U[41988]="DigitalZoomRatio",U[41989]="FocalLengthIn35mmFilm",U[41990]="SceneCaptureType",U[41991]="GainControl",U[41992]="Contrast",U[41993]="Saturation",U[41994]="Sharpness",U[41995]="DeviceSettingDescription",U[41996]="SubjectDistanceRange",U})(),_e=(()=>{const U=[];return U[1024]="GTModelTypeGeoKey",U[1025]="GTRasterTypeGeoKey",U[1026]="GTCitationGeoKey",U[2048]="GeographicTypeGeoKey",U[2049]="GeogCitationGeoKey",U[2050]="GeogGeodeticDatumGeoKey",U[2051]="GeogPrimeMeridianGeoKey",U[2052]="GeogLinearUnitsGeoKey",U[2053]="GeogLinearUnitSizeGeoKey",U[2054]="GeogAngularUnitsGeoKey",U[2055]="GeogAngularUnitSizeGeoKey",U[2056]="GeogEllipsoidGeoKey",U[2057]="GeogSemiMajorAxisGeoKey",U[2058]="GeogSemiMinorAxisGeoKey",U[2059]="GeogInvFlatteningGeoKey",U[2061]="GeogPrimeMeridianLongGeoKey",U[2060]="GeogAzimuthUnitsGeoKey",U[3072]="ProjectedCSTypeGeoKey",U[3073]="PCSCitationGeoKey",U[3074]="ProjectionGeoKey",U[3075]="ProjCoordTransGeoKey",U[3076]="ProjLinearUnitsGeoKey",U[3077]="ProjLinearUnitSizeGeoKey",U[3078]="ProjStdParallel1GeoKey",U[3079]="ProjStdParallel2GeoKey",U[3080]="ProjNatOriginLongGeoKey",U[3081]="ProjNatOriginLatGeoKey",U[3082]="ProjFalseEastingGeoKey",U[3083]="ProjFalseNorthingGeoKey",U[3084]="ProjFalseOriginLongGeoKey",U[3085]="ProjFalseOriginLatGeoKey",U[3086]="ProjFalseOriginEastingGeoKey",U[3087]="ProjFalseOriginNorthingGeoKey",U[3088]="ProjCenterLongGeoKey",U[3090]="ProjCenterEastingGeoKey",U[3091]="ProjCenterNorthingGeoKey",U[3092]="ProjScaleAtNatOriginGeoKey",U[3093]="ProjScaleAtCenterGeoKey",U[3094]="ProjAzimuthAngleGeoKey",U[3095]="ProjStraightVertPoleLongGeoKey",U[4096]="VerticalCSTypeGeoKey",U[4097]="VerticalCitationGeoKey",U[4098]="VerticalDatumGeoKey",U[4099]="VerticalUnitsGeoKey",U})(),Ce=new Map;Ce.set("EXIFIFD",ge),Ce.set("GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]);const ce={TIFF_TAGS:ie,ifdTags:Ce,GEO_KEYS:_e,getTagName:(U,fe)=>{let me=(fe||ie)[U];return void 0===me&&(me="unknown"+String(U)),me}}},44853:(Pe,Ae,se)=>{se.d(Ae,{f:()=>ie});const ie=(()=>{const ge=new ArrayBuffer(4),xe=new Uint8Array(ge);return new Uint32Array(ge)[0]=1,1===xe[0]})()},79751:(Pe,Ae,se)=>{se.d(Ae,{CD:()=>_e,DX:()=>xe,Gd:()=>ce,Pz:()=>U,Qh:()=>R,SJ:()=>fe,Uk:()=>G,Vl:()=>f,XV:()=>me,a2:()=>ne,nA:()=>K,nk:()=>he,oB:()=>X,pW:()=>A,qF:()=>Ce,sS:()=>ee,us:()=>w,zp:()=>oe});var xe,_e,t,ie=se(62208),ge=se(25688);function he(t){return(0,ie.pC)(t)&&"esri.layers.support.PixelBlock"===t.declaredClass&&t.pixels&&t.pixels.length>0}function Ce(t,u){if(!u?.length||!he(t))return t;const g=t.pixels.length;return u&&u.some(p=>p>=g)||1===g&&1===u.length&&0===u[0]?t:g!==u.length||u.some((p,S)=>p!==S)?new ge.Z({pixelType:t.pixelType,width:t.width,height:t.height,mask:t.mask,validPixelCount:t.validPixelCount,maskIsAlpha:t.maskIsAlpha,pixels:u.map(p=>t.pixels[p]),statistics:t.statistics&&u.map(p=>t.statistics[p])}):t}function ce(t){if(!t?.length||t.some(c=>!he(c)))return null;if(1===t.length)return(0,ie.pC)(t[0])?t[0].clone():null;const u=t,{width:g,height:p,pixelType:S}=u[0];if(u.some(c=>c.width!==g||c.height!==p))return null;const d=u.map(({mask:c})=>c).filter(c=>null!=c);let s=null;d.length&&(s=new Uint8Array(g*p),s.set(d[0]),d.length>1&&H(d.slice(1),s));const i=[];u.forEach(({pixels:c})=>i.push(...c));const h=u.map(({statistics:c})=>c).filter(c=>c?.length),m=[];return h.forEach(c=>m.push(...c)),new ge.Z({pixelType:S,width:g,height:p,mask:s,pixels:i,statistics:m.length?m:null})}function U(t){if(!t)return;const u=t.colormap;if(!u||0===u.length)return;const g=u.sort((b,T)=>b[0]-T[0]);let p=0;g[0][0]<0&&(p=g[0][0]);const S=Math.max(256,g[g.length-1][0]-p+1),d=new Uint8Array(4*S),s=[];let i,h=0,m=0;const c=5===g[0].length;if(S>65536)return g.forEach(b=>{s[b[0]-p]=c?b.slice(1):b.slice(1).concat([255])}),{indexed2DColormap:s,offset:p,alphaSpecified:c};if(t.fillUnspecified)for(i=g[m],h=i[0]-p;hP?S[c]=0:(T[c]=s[F],E[c]=s[F+1],M[c]=s[F+2],S[c]=s[F+3]));else{for(S=new Uint8Array(d),c=0;cP?S[c]=0:(T[c]=s[F],E[c]=s[F+1],M[c]=s[F+2],S[c]=s[F+3]);g.mask=S}}else if(i)if((0,ie.pC)(S))for(c=0;cd));const i=[],h=u.outputPixelType||"u8";for(let c=0;c1;){if(m===c.value){_=!0;break}m>c.value?b=M:T=M,M=Math.floor((b+T)/2),c=u[Math.floor(M)]}_||(m===u[b].value?(c=u[b],_=!0):m===u[T].value?(c=u[T],_=!0):mu[b].value&&(m=0;V--)if(P>=S[2*V]&&P<=S[2*V+1]){c[F]=d[V];break}}}let E=b;if(i?.length){E=new Uint8Array(g*p),b&&E.set(b);for(let M=0;M=i[V]&&P<=i[V+1]){c[F]=0,E[F]=0;break}}}}return new ge.Z({width:g,height:p,pixelType:s,pixels:[c],mask:E})}function W(t,u,g,p){const S=null!=g&&g.length>=2?new Set(g):null,d=1===g?.length?g[0]:null,s=!!u?.length;for(let i=0;i=u[c]&&h<=u[c+1]){m=!0;break}m||(p[i]=0)}p[i]&&(h===d||S?.has(h))&&(p[i]=0)}}function Q(t,u){const g=t[0].length;for(let p=0;p_?M=d.rightPadding:P>=_&&(E=d.leftMargin-d.rightPadding,M=0)}if(T.xmax-=M,"number"!=typeof u)for(let _=T.ymin;_(0,ie.pC)(E));if((0,ie.Wi)(p))return null;const S=t.some(E=>!(0,ie.pC)(E)||!!E.mask),{width:d,height:s}=u,i=S?new Uint8Array(d*s):null,{blockWidths:h}=g,m=[],c=p.getPlaneCount(),b=ge.Z.getPixelArrayConstructor(p.pixelType);if(S)for(let E=0,M=0;Ehe($));if((0,ie.Wi)(i))return null;const h=S?S.width:u.width,m=S?S.height:u.height,c=i.width,b=i.height,T=u.width/c,E=u.height/b,M={offset:p||{x:0,y:0},mosaic:S||u,block:{width:c,height:b}},_=i.pixelType,F=ge.Z.getPixelArrayConstructor(_),P=i.pixels.length,V=[];let j,J,Z;for(let $=0;$(0,ie.Wi)($)||(0,ie.pC)($.mask)&&$.mask.length>0)){Z=new Uint8Array(h*m);for(let $=0;$p||h>S||0===d&&0===s&&i===p&&h===S)return t;t.mask||(t.mask=new Uint8Array(p*S));const m=t.mask;for(let c=0;c=h||T=i?0:1}return t.updateStatistics(),t}function y(t){if(0===t.size)return 0;let u=0,g=-1,p=0;const S=t.keys();let d=S.next();for(;!d.done;)p=t.get(d.value),p>u&&(g=d.value,u=p),d=S.next();return g}function v(t,u,g){if(0===g)return;const p=t.get(u);1===p?t.delete(u):t.set(u,p-1)}function k(t,u,g){0!==g&&t.set(u,t.has(u)?t.get(u)+1:1)}function B(t,u,g){let{x:p,y:S}=u;const{width:d,height:s}=g;if(0===p&&0===S&&s===t.height&&d===t.width)return t;const{width:i,height:h}=t,m=Math.max(0,S),c=Math.max(0,p),b=Math.min(p+d,i),T=Math.min(S+s,h);if(b<0||T<0||!he(t))return null;p=Math.max(0,-p),S=Math.max(0,-S);const{pixels:E}=t,M=d*s,_=E.length,F=[];for(let J=0;J<_;J++){const Z=E[J],q=ge.Z.createEmptyBand(t.pixelType,M);for(let $=m;${const ae=Y instanceof Float32Array||Y instanceof Float64Array?0:.5;for(let te=0;te{se.d(Ae,{AV:()=>W,Hv:()=>oe,Oh:()=>ne,ZF:()=>me,dy:()=>H,hE:()=>U,oc:()=>ce});var ie=se(62208),ge=se(25688),xe=se(65468);const _e={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34e38,34e38],f64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ce=[.299,.587,.114];function ce(ee,X=256){X=Math.min(X,256);const{size:K,counts:N}=ee,x=new Uint8Array(K),L=N.reduce((y,v)=>y+v/X,0);let w=0,C=0,A=0,I=L;for(let y=0;y=C,f=[];if(D)for(A=0;A1?N[A]>2?6.5+(N[A]-2)**2.5:6.5+100*(2-N[A])**4:1;let O;const R=[];let G,t,u;if(D)for(A=0;A1&&(t-=(1/B)**(O*f[A])),u[I]=GX[A]?Math.floor(t*B*O**(1/N[A]))+L:G>=K[A]?w:L;R[A]=u}else for(A=0;A=K[A]?w:Math.floor((G-X[A])/k[A]*B)+L;R[A]=u}if(null!=ee.contrastOffset){const g=function fe(ee,X){const K=Math.min(Math.max(ee,-100),100),N=Math.min(Math.max(X??0,-100),100),x=255;let w=0,C=0;const A=new Uint8Array(256);for(w=0;w<256;w++)K>0&&K<100?C=(200*w-25500+510*N)/(2*(100-K))+128:K<=0&&K>-100?C=(200*w-25500+510*N)*(100+K)/2e4+128:100===K?(C=200*w-25500+256*(100-K)+510*N,C=C>0?x:0):-100===K&&(C=128),A[w]=C>x?x:C<0?0:C;return A}(ee.contrastOffset,ee.brightnessOffset);for(A=0;A=255)return 1;let X=0;150!==ee&&(X=ee<=150?45*Math.cos(.01047*ee):17*Math.sin(.021*ee));const N=ee+X,x=Math.log(ee/255),L=Math.log(N/255);if(0===L)return 1;const w=x/L;return isNaN(w)?1:Math.min(9.9,Math.max(.01,w))}function oe(ee){if((0,ie.Wi)(ee)||!ee.pixels?.length)return null;ee.statistics||ee.updateStatistics();const{pixels:X,mask:K,pixelType:N,statistics:x}=ee,L=ee.width*ee.height,w=X.length;let C,A,I,y,v;const k=[],B=[];let D,f,O,R,G,t,u,g,p,S;const d=256;for(y=0;y[d.minValue,d.maxValue,0,0]);else{const d=oe(K);w=(0,ie.pC)(d)?d.statistics:null,C=(0,ie.pC)(d)?d.histograms:null}else w=ee.statistics?.length>0?ee.statistics:(0,ie.Wg)(L.statistics),C=ee.histograms||(0,ie.Wg)(L.histograms);"percentClip"!==A&&"histogramEqualization"!==A||C?.length||(A="minMax");const I=w?.length||C?.length||L.bandCount,y=[],v=[];let k,B,D,f,O,R,G,t,u,g,p,S;switch(w&&!Array.isArray(w[0])&&(w=w.map(d=>[d.min,d.max,d.avg,d.stddev])),A){case"none":{const d=_e[L.pixelType]||_e.f32;for(t=0;tw[t][1]&&(v[t]=w[t][1]);break;case"histogramEqualization":for((0,ie.O3)(C),t=0;t=20&&(f[0]=f[1]=f[2]=f[f.length-1]=f[f.length-2]=0),D=0,B=(k.max-k.min)/k.size,G=-.5===k.min&&1===B?.5:0,u=0;uR){y[t]=k.min+B*(u+G);break}for(R=(1-(ee.maxPercent||0)/100)*D,u=k.size-2;u>=0;u--)if(O[u]ce(d)))):(p=ee.max||255,g=ee.min||0),function Q(ee,X){if(null==X||0===X.length)return ee;const K=Math.max.apply(null,X),{minCutOff:N,maxCutOff:x,outMin:L,outMax:w,histogramLut:C}=ee;return N.length===X.length||N.length<=K?ee:{minCutOff:X.map(A=>N[A]),maxCutOff:X.map(A=>x[A]),histogramLut:C?X.map(A=>C[A]):null,outMin:L,outMax:w}}({minCutOff:y,maxCutOff:v,outMax:p,outMin:g,histogramLut:S},N)}function H(ee,X){if((0,ie.Wi)(ee)||!ee.pixels?.length)return ee;const{mask:K,width:N,height:x,pixels:L}=ee,{minCutOff:w,maxCutOff:C,gamma:A}=X,I=X.outMin||0,y=X.outMax||255,v=N*x,k=X.outputPixelType||"u8",B=ee.pixels.map(()=>ge.Z.createEmptyBand(k,v)),D=B.length;let f,O,R,G,t;const u=y-I,g=[];for(f=0;f=D,S=[];if(p)for(f=0;f1?A[f]>2?6.5+(A[f]-2)**2.5:6.5+100*(2-A[f])**4:1;if(p)if(null!=K){for(O=0;O1&&(G-=(1/u)**(t*S[f])),B[f][O]=Rw[f]?Math.floor(G*u*t**(1/A[f]))+I:R>=C[f]?y:I}else for(O=0;O1&&(G-=(1/u)**(t*S[f])),B[f][O]=Rw[f]?Math.floor(G*u*t**(1/A[f]))+I:R>=C[f]?y:I;else if(null!=K){for(O=0;Ow[f]?Math.floor((R-w[f])/g[f]*u)+I:R>=C[f]?y:I}else for(O=0;Ow[f]?Math.floor((R-w[f])/g[f]*u)+I:R>=C[f]?y:I;const d=new ge.Z({width:N,height:x,mask:K,pixels:B,pixelType:k});return d.updateStatistics(),d}},67845:(Pe,Ae,se)=>{se.d(Ae,{M_:()=>U,TK:()=>_e,Ub:()=>Ce,vC:()=>he,yg:()=>ce});var ie=se(62208),ge=se(25688),xe=se(79751);function _e(fe){let{altitude:me,azimuth:z}=fe;const{hillshadeType:oe,pixelSizePower:ne=1,pixelSizeFactor:W=1,scalingType:Q,isGCS:H,resolution:ee}=fe,X="multi-directional"===oe?2*fe.zFactor:fe.zFactor,{x:K,y:N}=ee;let x=X/(8*K),L=X/(8*N);if(H&&X>.001&&(x/=111e3,L/=111e3),"adjusted"===Q)if(H){const u=111e3*K,g=111e3*N;x=(X+u**ne*W)/(8*u),L=(X+g**ne*W)/(8*g)}else x=(X+K**ne*W)/(8*K),L=(X+N**ne*W)/(8*N);let w=(90-me)*Math.PI/180,C=Math.cos(w),A=(360-z+90)*Math.PI/180,I=Math.sin(w)*Math.cos(A),y=Math.sin(w)*Math.sin(A);const v=[315,270,225,360,180,0],k=[60,60,60,60,60,90],B=new Float32Array([3,5,3,2,1,4]),D=B.reduce((u,g)=>u+g),f=B.map(u=>u/D),O="multi-directional"===oe?v.length:1,R=new Float32Array(6),G=new Float32Array(6),t=new Float32Array(6);if("multi-directional"===oe)for(let u=0;uw?w:A],v=Q[C],k=v*y,B=k*(1-Math.abs(I%2-1)),D=v-k;switch(Math.floor(I)){case 0:N[C]=k+D,x[C]=B+D,L[C]=D;break;case 1:N[C]=B+D,x[C]=k+D,L[C]=D;break;case 2:N[C]=D,x[C]=k+D,L[C]=B+D;break;case 3:N[C]=D,x[C]=B+D,L[C]=k+D;break;case 4:N[C]=B+D,x[C]=D,L[C]=k+D;break;case 5:case 6:N[C]=k+D,x[C]=D,L[C]=B+D}}fe.pixels=[N,x,L],fe.updateStatistics()}function ce(fe,me){if(!(0,xe.nk)(fe))return fe;const z=me.zFactor,oe=me.pixelSizePower??1,ne=me.pixelSizeFactor??1,W=me.slopeType,Q=me.isGCS,{width:H,height:ee,mask:X}=fe,K=fe.pixels[0],N=new Uint8Array(H*ee);let x=1;if((0,ie.pC)(X)){for(let u=0;u360&&(t%=360)),H[D+f]=t}}for(let B=0;B{se.d(Ae,{KC:()=>W,NL:()=>U,QI:()=>Q,Tg:()=>z,Yx:()=>fe,xQ:()=>ne});var ie=se(2076),ge=se(62208),xe=se(25688),_e=se(79751);const he=new Map;he.set("meter-per-second",1),he.set("kilometer-per-hour",.277778),he.set("knots",.514444),he.set("feet-per-second",.3048),he.set("mile-per-hour",.44704);const Ce=180/Math.PI,U=new ie.X({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function fe(f,O){return he.get(f)/he.get(O)||1}function me(f){return(450-f)%360}function z(f,O="geographic"){const[R,G]=f,t=Math.sqrt(R*R+G*G);let u=Math.atan2(G,R)*Ce;return u=(360+u)%360,"geographic"===O&&(u=me(u)),[t,u]}function oe(f,O="geographic"){let R=f[1];"geographic"===O&&(R=me(R)),R%=360;const G=f[0];return[G*Math.cos(R/Ce),G*Math.sin(R/Ce)]}function ne(f,O,R,G="geographic"){if(!(0,_e.nk)(f)||(0,ge.Wi)(R))return f;const t="vector-magdir"===O?f.clone():(0,ge.Wg)(W(f,O)),u=t.pixels[1];for(let g=0;g{se.d(Ae,{Z:()=>N});var ie=se(17626),ge=se(78260),xe=se(86810),_e=se(63290),he=se(62208),Ce=se(77712),fe=(se(85931),se(90912),se(76898)),me=se(79645),z=se(79751),oe=se(17057),ne=se(67845),W=se(70208);let X=class extends xe.wq{constructor(x){super(x)}bind(){const{rendererJSON:x}=this;if(!x)return{success:!1};let L;switch(this.lookup={rendererJSON:{}},x.type){case"uniqueValue":L=this._updateUVRenderer(x);break;case"rasterColormap":L=this._updateColormapRenderer(x);break;case"rasterStretch":L=this._updateStretchRenderer(x);break;case"classBreaks":L=this._updateClassBreaksRenderer(x);break;case"rasterShadedRelief":L=this._updateShadedReliefRenderer(x);break;case"vectorField":L=this._updateVectorFieldRenderer();break;case"flowRenderer":L=this._updateFlowRenderer()}return L}symbolize(x){let L=x&&x.pixelBlock;if(!K(L))return L;if(x.simpleStretchParams&&"rasterStretch"===this.rendererJSON.type)return this.simpleStretch(L,x.simpleStretchParams);try{let w;switch(L.pixels.length>3&&(L=(0,z.qF)(L,[0,1,2])),this.rendererJSON.type){case"uniqueValue":case"rasterColormap":w=this._symbolizeColormap(L);break;case"classBreaks":w=this._symbolizeClassBreaks(L);break;case"rasterStretch":w=this._symbolizeStretch(L,x.bandIds);break;case"rasterShadedRelief":{const C=x.extent;w=this._symbolizeShadedRelief(L,{isGCS:C.spatialReference.isGeographic,resolution:{x:(C.xmax-C.xmin)/L.width,y:(C.ymax-C.ymin)/L.height}});break}}return w}catch(w){return _e.Z.getLogger(this.declaredClass).error("symbolize",w.message),L}}simpleStretch(x,L){if(!K(x))return x;try{return x.pixels.length>3&&(x=(0,z.qF)(x,[0,1,2])),(0,oe.dy)(x,L)}catch(w){return _e.Z.getLogger(this.declaredClass).error("symbolize",w.message),x}}generateWebGLParameters(x){if(["uniqueValue","rasterColormap","classBreaks"].includes(this.rendererJSON.type)){const{indexedColormap:y,offset:v}=this.lookup.colormapLut||{};return{colormap:y,colormapOffset:v,type:"lut"}}const{pixelBlock:L,isGCS:w,resolution:C,bandIds:A}=x,{rendererJSON:I}=this;return"rasterStretch"===I.type?this._generateStretchWebGLParams(L,I,A):"rasterShadedRelief"===I.type?this._generateShadedReliefWebGLParams(I,w,C):"vectorField"===I.type?this._generateVectorFieldWebGLParams(I):null}_isLUTChanged(x){if(!this.lookup||!this.lookup.rendererJSON)return!0;if("colorRamp"in this.rendererJSON){const L=this.rendererJSON.colorRamp;return x?JSON.stringify(L)!==JSON.stringify(this.lookup.rendererJSON.colorRamp):JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON)}return JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON)}_symbolizeColormap(x){return this._isLUTChanged()&&!this.bind().success?x:(0,z.SJ)(x,this.lookup.colormapLut)}_symbolizeClassBreaks(x){const{canUseIndexedLUT:L}=this._analyzeClassBreaks(this.rendererJSON);return this._isLUTChanged()&&!this.bind().success?x:L?(0,z.SJ)(x,this.lookup.colormapLut):(0,z.zp)(x,this.lookup.remapLut??[])}_symbolizeStretch(x,L){const{rasterInfo:w}=this,{pixelType:C,bandCount:A}=w,I=this.rendererJSON,y=["u8","u16","s8","s16"].includes(C);let v,k;const{dra:B}=I,{gamma:D}=this.lookup;if("histogramEqualization"===I.stretchType){const f=B?null:this.lookup?.histogramLut,O=(0,oe.AV)(I,{rasterInfo:w,pixelBlock:x,bandIds:L,returnHistogramLut:!f}),R=(0,oe.dy)(x,{...O,gamma:D});k=(0,z.XV)(R,{lut:B?O.histogramLut:f,offset:0})}else if(y){if(B){const f=(0,oe.AV)(I,{rasterInfo:w,pixelBlock:x,bandIds:L});v=(0,oe.hE)({pixelType:C,...f,gamma:D})}else if(this._isLUTChanged()){if(!this.bind().success)return x;v=this.lookup?this.lookup.stretchLut:null}else v=this.lookup?this.lookup.stretchLut:null;if(!v)return x;A>1&&L?.length===(0,he.Wg)(x)?.pixels.length&&v?.lut.length===A&&(v={lut:L.map(f=>v.lut[f]),offset:v.offset}),k=(0,z.XV)(x,v)}else{const f=(0,oe.AV)(I,{rasterInfo:w,pixelBlock:x,bandIds:L});k=(0,oe.dy)(x,{...f,gamma:D})}if(I.colorRamp){if(this._isLUTChanged(!0)&&!this.bind().success)return x;k=(0,z.SJ)(k,this.lookup?.colormapLut)}return k}_symbolizeShadedRelief(x,L){const w=this.rendererJSON,C={...w,...L},A=(0,ne.vC)(x,C);if(!w.colorRamp)return A;let I;if(this._isLUTChanged(!0)){if(!this.bind().success)return A;I=this.lookup?this.lookup.hsvMap:null}else I=this.lookup?this.lookup.hsvMap:null;if(!I)return A;const y=(0,he.Wg)(this.rasterInfo.statistics)?.[0]??{min:0,max:8e3};return(0,ne.Ub)(A,x,I,y),A}_isVectorFieldData(){const{bandCount:x,dataType:L}=this.rasterInfo;return 2===x&&("vector-magdir"===L||"vector-uv"===L)}_updateVectorFieldRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; VectorFieldRenderer only supports "vector-magdir" and "vector-uv".`}}_updateFlowRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; FlowRenderer only supports "vector-magdir" and "vector-uv".`}}_updateUVRenderer(x){const{bandCount:L,attributeTable:w,pixelType:C}=this.rasterInfo,A=x.field1;if(!A)return{success:!1,error:"Unsupported renderer; missing UniqueValueRenderer.field."};const I=x.defaultSymbol,y=1===L&&["u8","s8"].includes(C);if(!function Q(x,L){const{attributeTable:w,bandCount:C}=x;return!((0,he.Wi)(w)||C>1||L&&null==w.fields.find(A=>A.name.toLowerCase()===L.toLowerCase()))}(this.rasterInfo,A)&&!y)return{success:!1,error:"Unsupported data; UniqueValueRenderer is only supported on single band data with a valid raster attribute table."};const v=[];if((0,he.pC)(w)){const B=w.fields.find(D=>"value"===D.name.toLowerCase());if(!B)return{success:!1,error:"Unsupported data; the data's raster attribute table does not have a value field."};w.features.forEach(D=>{const f=x.uniqueValueInfos?.find(R=>String(R.value)===String(D.attributes[A])),O=f?.symbol?.color;O?v.push([D.attributes[B.name]].concat(O)):I&&v.push([D.attributes[B.name]].concat(I.color))})}else{if("value"!==A.toLowerCase())return{success:!1,error:'Unsupported renderer; UniqueValueRenderer.field must be "Value" when raster attribute table is not availalbe.'};x.uniqueValueInfos?.forEach(B=>{const D=B?.symbol?.color;D?v.push([parseInt(""+B.value,10)].concat(D)):I&&v.push([parseInt(""+B.value,10)].concat(I?.color))})}if(0===v.length)return{success:!1,error:"Invalid UniqueValueRenderer. Cannot find matching records in the raster attribute table."};const k=(0,z.Pz)({colormap:v});return this.lookup={rendererJSON:x,colormapLut:k},this.canRenderInWebGL=!0,{success:!0}}_updateColormapRenderer(x){if(!function ee(x){const{bandCount:L,colormap:w}=x;return(0,he.pC)(w)&&w.length>0&&1===L}(this.rasterInfo))return{success:!1,error:"Unsupported data; the data source does not have a colormap."};const L=x.colormapInfos.map(C=>[C.value].concat(C.color)).sort((C,A)=>C[0]-A[0]);if(!L||0===L.length)return{success:!1,error:"Unsupported renderer; ColormapRenderer must have meaningful colormapInfos."};const w=(0,z.Pz)({colormap:L});return this.lookup={rendererJSON:x,colormapLut:w},this.canRenderInWebGL=!0,{success:!0}}_updateShadedReliefRenderer(x){if(!function H(x){const{bandCount:L,dataType:w,pixelType:C}=x;return"elevation"===w||"generic"===w&&1===L&&("s16"===C||"f32"===C||"f64"===C)}(this.rasterInfo))return{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; ShadedReliefRenderer only supports "elevation", or single band float/s16 data.`};if(x.colorRamp){const L=(0,W.Jw)(x.colorRamp,256,!0),w=(0,z.Pz)({colormap:L}),C=[],A=w.indexedColormap;for(let I=0;I"value"===y.name.toLowerCase()):null,A=(0,he.pC)(L)?L.fields.find(y=>y.name.toLowerCase()===x.field.toLowerCase()):null,I=null!=C&&null!==A;return{canUseIndexedLUT:["u8","u16","s8","s16"].includes(w)||I,tableValueField:C,tableBreakField:A}}_updateClassBreaksRenderer(x){const{attributeTable:L}=this.rasterInfo,{canUseIndexedLUT:w,tableValueField:C,tableBreakField:A}=this._analyzeClassBreaks(x),I=x.classBreakInfos;if(!I?.length)return{success:!1,error:"Unsupported renderer; missing or invalid ClassBreaksRenderer.classBreakInfos."};const y=I.sort((f,O)=>f.classMaxValue-O.classMaxValue),v=y[y.length-1];let k=x.minValue;if(!w){const f=[];for(let O=0;OS>g);p&&B.push([u].concat(p.symbol.color))}}else{k=Math.floor(x.minValue);for(let f=0;f0&&null!=x[0].min&&null!=x[0].max}_updateStretchRenderer(x){let{stretchType:L,dra:w}=x;if(!("none"===L||x.statistics?.length||this._isValidRasterStatistics(this.rasterInfo.statistics)||w))return{success:!1,error:"Unsupported renderer; StretchRenderer.statistics is required when dynamic range adjustment is not used."};const C=(0,he.Wg)(x.histograms||this.rasterInfo.histograms);!this._isHistogramRequired(x.stretchType)||C?.length||w||(L="minMax");const{computeGamma:A,useGamma:I,colorRamp:y}=x;let{gamma:v}=x;if(I&&A&&!v?.length){const D=x.statistics?.length?x.statistics:(0,he.Wg)(this.rasterInfo.statistics);v=(0,oe.ZF)(this.rasterInfo.pixelType,D)}const k=this.rasterInfo.pixelType,B=!w&&["u8","u16","s8","s16"].includes(k);if("histogramEqualization"===L){const D=C.map(f=>(0,oe.oc)(f));this.lookup={rendererJSON:x,histogramLut:D}}else if(B){const D=(0,oe.AV)(x,{rasterInfo:this.rasterInfo}),f=(0,oe.hE)({pixelType:k,...D,gamma:I?v:null});this.lookup={rendererJSON:x,stretchLut:f}}if(y){const D=(0,W.Jw)(y,256,!0);this.lookup||(this.lookup={rendererJSON:x}),this.lookup.colormapLut=(0,z.Pz)({colormap:D}),this.lookup.rendererJSON=x}return this.lookup.gamma=I&&v?.length?v:null,this.canRenderInWebGL=!0,{success:!0}}_generateStretchWebGLParams(x,L,w){let C=null,A=null;const I=this.lookup&&this.lookup.colormapLut;L.colorRamp&&I&&(C=I.indexedColormap,A=I.offset),"histogramEqualization"===L.stretchType&&(L={...L,stretchType:"minMax"});const{gamma:y}=this.lookup,v=!!(L.useGamma&&y&&y.some(p=>1!==p)),{minCutOff:k,maxCutOff:B,outMin:D,outMax:f}=(0,oe.AV)(L,{rasterInfo:this.rasterInfo,pixelBlock:x,bandIds:w});let O=0;(0,he.pC)(x)&&(O=x.getPlaneCount(),2===O&&((x=x.clone()).statistics=[x.statistics[0]],x.pixels=[x.pixels[0]]));const R=Math.min(3,w?.length||O||this.rasterInfo.bandCount),G=new Float32Array(R),t=C||v?1:255;let u;for(u=0;u1?y[u]>2?6.5+(y[u]-2)**2.5:6.5+100*(2-y[u])**4:1;return{bandCount:R,outMin:D/t,outMax:f/t,minCutOff:k,maxCutOff:B,factor:G,useGamma:v,gamma:v?y:[1,1,1],gammaCorrection:v?g:[1,1,1],colormap:C,colormapOffset:A,stretchType:L.stretchType,type:"stretch"}}_generateShadedReliefWebGLParams(x,L=!1,w={x:0,y:0}){let C=null,A=null;const I=this.lookup&&this.lookup.colormapLut;x.colorRamp&&I&&(C=I.indexedColormap,A=I.offset);const y={...x,isGCS:L,resolution:w},v=(0,ne.TK)(y),k=(0,he.Wg)(this.rasterInfo.statistics)?.[0];return{...v,minValue:k?.min??0,maxValue:k?.max??8e3,hillshadeType:"traditional"===x.hillshadeType?0:1,type:"hillshade",colormap:C,colormapOffset:A}}_generateVectorFieldWebGLParams(x){const{style:L,inputUnit:w,outputUnit:C,visualVariables:A,symbolTileSize:I,flowRepresentation:y}=x;let v;const k=this.rasterInfo.statistics?.[0].min??0,B=this.rasterInfo.statistics?.[0].max??50,D=A?.find(g=>"sizeInfo"===g.type)??{type:"sizeInfo",field:"Magnitude",maxDataValue:B,maxSize:.8*I,minDataValue:k,minSize:.2*I},f=D.minDataValue??k,O=D.maxDataValue??B,R=(0,he.pC)(D.maxSize)&&(0,he.pC)(D.minSize)?[D.minSize/I,D.maxSize/I]:[.2,.8];"wind_speed"===L&&(R[0]=R[1]=(R[0]+R[1])/2);const G=(0,he.pC)(f)&&(0,he.pC)(O)?[f,O]:null;if("classified_arrow"===L)if((0,he.pC)(f)&&(0,he.pC)(O)&&(0,he.pC)(D)){v=[];const g=(D.maxDataValue-D.minDataValue)/5;for(let p=0;p<6;p++)v.push(D.minDataValue+g*p)}else v=[0,1e-6,3.5,7,10.5,14];const t="flow_to"===y==("ocean_current_kn"===L||"ocean_current_m"===L)?0:Math.PI,u=A?.find(g=>"rotationInfo"===g.type);return{breakValues:v,dataRange:G,inputUnit:w,outputUnit:C,symbolTileSize:I,symbolPercentRange:R,style:L||"single_arrow",rotation:t,rotationType:this.rasterInfo.storageInfo?.tileInfo&&"vector-uv"===this.rasterInfo.dataType?"geographic":u?.rotationType||x.rotationType,type:"vectorField"}}};function K(x){return(0,z.nk)(x)&&0!==x.validPixelCount}(0,ie._)([(0,Ce.Cb)({json:{write:!0}})],X.prototype,"rendererJSON",void 0),(0,ie._)([(0,Ce.Cb)({type:me.Z,json:{write:!0}})],X.prototype,"rasterInfo",void 0),(0,ie._)([(0,Ce.Cb)({json:{write:!0}})],X.prototype,"lookup",void 0),(0,ie._)([(0,Ce.Cb)()],X.prototype,"canRenderInWebGL",void 0),X=(0,ie._)([(0,fe.j)("esri.renderers.support.RasterSymbolizer")],X);const N=X},70208:(Pe,Ae,se)=>{se.d(Ae,{Jw:()=>Q,Ms:()=>xe,Uh:()=>ce,XL:()=>W,io:()=>K,pM:()=>H});var ie=se(91558),ge=se(78260);const xe=[{id:"aspect_predefined",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"blackToWhite_predefined",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blueBright_predefined",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blueLightToDark_predefined",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blueGreenBright_predefined",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blueGreenLightToDark_predefined",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brownLightToDark_predefined",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brownToBlueGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brownToBlueGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficientBias_predefined",fromColor:[214,214,255],toColor:[0,57,148]},{id:"coldToHotDiverging_predefined",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"conditionNumber_predefined",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyanToPurple_predefined",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyanLightToBlueDark_predefined",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance_predefined",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1_predefined",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2_predefined",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors_predefined",fromColor:[255,235,214],toColor:[196,10,10]},{id:"grayLightToDark_predefined",fromColor:[219,219,219],toColor:[69,69,69]},{id:"greenBright_predefined",fromColor:[204,255,204],toColor:[14,204,14]},{id:"greenLightToDark_predefined",fromColor:[220,245,233],toColor:[34,102,51]},{id:"greenToBlue_predefined",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orangeBright_predefined",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orangeLightToDark_predefined",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partialSpectrum_predefined",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partialSpectrum1Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partialSpectrum2Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pinkToYellowGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pinkToYellowGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation_predefined",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction_predefined",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purpleBright_predefined",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purpleToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purpleToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purpleBlueBright_predefined",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purpleBlueLightToDark_predefined",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purpleRedBright_predefined",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purpleRedLightToDark_predefined",fromColor:[250,215,246],toColor:[143,17,57]},{id:"redBright_predefined",fromColor:[255,204,204],toColor:[219,0,0]},{id:"redLightToDark_predefined",fromColor:[255,224,224],toColor:[143,10,10]},{id:"redToBlueDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"redToBlueDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"redToGreen_predefined",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"redToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"redToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope_predefined",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrumFullBright_predefined",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrumFullDark_predefined",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrumFullLight_predefined",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface_predefined",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature_predefined",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"whiteToBlack_predefined",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellowToDarkRed_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellowToGreenToDarkBlue_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellowToRed_predefined",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellowGreenBright_predefined",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellowGreenLightToDark_predefined",fromColor:[215,240,175],toColor:[96,107,45]}],_e={aspect_predefined:"Aspect",blackToWhite_predefined:"Black to White",blueBright_predefined:"Blue Bright",blueLightToDark_predefined:"Blue Light to Dark",blueGreenBright_predefined:"Blue-Green Bright",blueGreenLightToDark_predefined:"Blue-Green Light to Dark",brownLightToDark_predefined:"Brown Light to Dark",brownToBlueGreenDivergingBright_predefined:"Brown to Blue Green Diverging, Bright",brownToBlueGreenDivergingDark_predefined:"Brown to Blue Green Diverging, Dark",coefficientBias_predefined:"Coefficient Bias",coldToHotDiverging_predefined:"Cold to Hot Diverging",conditionNumber_predefined:"Condition Number",cyanToPurple_predefined:"Cyan to Purple",cyanLightToBlueDark_predefined:"Cyan-Light to Blue-Dark",distance_predefined:"Distance",elevation1_predefined:"Elevation #1",elevation2_predefined:"Elevation #2",errors_predefined:"Errors",grayLightToDark_predefined:"Gray Light to Dark",greenBright_predefined:"Green Bright",greenLightToDark_predefined:"Green Light to Dark",greenToBlue_predefined:"Green to Blue",orangeBright_predefined:"Orange Bright",orangeLightToDark_predefined:"Orange Light to Dark",partialSpectrum_predefined:"Partial Spectrum",partialSpectrum1Diverging_predefined:"Partial Spectrum 1 Diverging",partialSpectrum2Diverging_predefined:"Partial Spectrum 2 Diverging",pinkToYellowGreenDivergingBright_predefined:"Pink to YellowGreen Diverging, Bright",pinkToYellowGreenDivergingDark_predefined:"Pink to YellowGreen Diverging, Dark",precipitation_predefined:"Precipitation",prediction_predefined:"Prediction",purpleBright_predefined:"Purple Bright",purpleToGreenDivergingBright_predefined:"Purple to Green Diverging, Bright",purpleToGreenDivergingDark_predefined:"Purple to Green Diverging, Dark",purpleBlueBright_predefined:"Purple-Blue Bright",purpleBlueLightToDark_predefined:"Purple-Blue Light to Dark",purpleRedBright_predefined:"Purple-Red Bright",purpleRedLightToDark_predefined:"Purple-Red Light to Dark",redBright_predefined:"Red Bright",redLightToDark_predefined:"Red Light to Dark",redToBlueDivergingBright_predefined:"Red to Blue Diverging, Bright",redToBlueDivergingDark_predefined:"Red to Blue Diverging, Dark",redToGreen_predefined:"Red to Green",redToGreenDivergingBright_predefined:"Red to Green Diverging, Bright",redToGreenDivergingDark_predefined:"Red to Green Diverging, Dark",slope_predefined:"Slope",spectrumFullBright_predefined:"Spectrum-Full Bright",spectrumFullDark_predefined:"Spectrum-Full Dark",spectrumFullLight_predefined:"Spectrum-Full Light",surface_predefined:"Surface",temperature_predefined:"Temperature",whiteToBlack_predefined:"White to Black",yellowToDarkRed_predefined:"Yellow to Dark Red",yellowToGreenToDarkBlue_predefined:"Yellow to Green to Dark Blue",yellowToRed_predefined:"Yellow to Red",yellowGreenBright_predefined:"Yellow-Green Bright",yellowGreenLightToDark_predefined:"Yellow-Green Light to Dark"};function he(N,x){if(!N||!x||N.length!==x.length)return!1;for(let L=0;Lx[L]+2||N[L]{if(he(N.fromColor.toRgb(),C.fromColor)&&he(N.toColor.toRgb(),C.toColor))return w=C.id,!0}):"multipart"===N.type&&L.some(C=>{const A=N.colorRamps,I=C.colorRamps;if(A&&I&&A.length===I.length&&!I.some((y,v)=>{if(!he(A[v].fromColor.toRgb(),new ie.Z(y.fromColor).toRgb())||!he(A[v].toColor.toRgb(),new ie.Z(y.toColor).toRgb()))return!0})){if(w)return!0;w=C.id}}),w}(N);return x?_e[x]:null}function U(N){const x=(N=N||{}).numColors||256,L=N.distanceOffset||0,w=null!=N.isCustomInterval?N.isCustomInterval:null!==N.distanceInterval&&N.distanceInterval!==1/(x-1),C=N.distanceInterval||1/(x-1);return{...N,numColors:x,distanceOffset:L,interpolateAlpha:!!N.interpolateAlpha,distanceInterval:C,isCustomInterval:w,weights:N.weights}}function oe(N,x){let{fromColor:L,toColor:w}=N;3===L.length&&(L=L.concat([255])),3===w.length&&(w=w.concat([255]));const C=N.algorithm||"esriCIELabAlgorithm",{numColors:A,distanceOffset:I,isCustomInterval:y,interpolateAlpha:v}=U(x);if(1===A&&0===I)return[L];if(2===A&&0===I&&!y)return[L,w];const k={r:L[0],g:L[1],b:L[2]},B={r:w[0],g:w[1],b:w[2]},D="esriCIELabAlgorithm"===C?function me(N,x,L){const{numColors:w,distanceOffset:C,distanceInterval:A,isCustomInterval:I}=U(L);let{l:y,a:v,b:k}=N;const B=(x.l-y)*A,D=(x.a-v)*A,f=(x.b-k)*A,O=[];if(C){const R=C/A;y+=R*B,v+=R*D,k+=R*f}for(let R=0;RB?f*A:-f*A);const R=(x.s-N.s)*A,G=(x.v-N.v)*A;let{s:t,v:u}=N,g=k;if(C){const S=C/A;g=(g+S*D+O)%O,t+=S*R,u+=S*G}const p=[];for(let S=0;SO+R);C=C.map(O=>O/f)}else{C=[];for(let f=0;f{C.unshift(A),L||C.pop()}),w}function H(N){const x=ce(N);if(N){if("algorithmic"===N.type)return{...ee(N),Name:x};if(N.colorRamps){const L=N.colorRamps.map(ee);return{type:"MultiPartColorRamp",NumColorRamps:L.length,ArrayOfColorRamp:L,Name:x}}}}function ee(N){if(N)return{Algorithm:N.toJSON()?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:X(N.fromColor),ToColor:X(N.toColor)}}function X(N){const x=(0,ge._Y)(N);return{type:"HsvColor",Hue:x.h,Saturation:x.s,Value:x.v,AlphaValue:255}}function K(N){const x=N.reverse().map(L=>{const w=L.toString(16);return w.length<2?"0"+w:w});return 4294967295&Number.parseInt(x.join(""),16)}},65468:(Pe,Ae,se)=>{se.d(Ae,{J:()=>xe,v:()=>ge});const ge=new(se(2076).X)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"}),xe={0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}},37084:(Pe,Ae,se)=>{se.d(Ae,{GE:()=>oe});var ie=se(15861),xe=(se(29132),se(8314)),_e=se(63290),Ce=(se(21286),se(10699)),ce=se(4619);se(37053),se(2004);const me=_e.Z.getLogger("esri.views.2d.engine.flow.dataUtils");function oe(I,y,v,k){return ne.apply(this,arguments)}function ne(){return(ne=(0,ie.Z)(function*(I,y,v,k){const B=performance.now(),D=W(y,v),f=performance.now(),O=H(y,D,v.width,v.height),R=performance.now(),G=X(O,!0),t=performance.now(),u="Streamlines"===I?K(G,10):N(G),g=performance.now();return(0,xe.Z)("esri-2d-profiler")&&(me.info("I.1","_createFlowFieldFromData (ms)",Math.round(f-B)),me.info("I.2","_getStreamlines (ms)",Math.round(R-f)),me.info("I.3","createAnimatedLinesData (ms)",Math.round(t-R)),me.info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(g-t)),me.info("I.5","createFlowMesh (ms)",Math.round(g-B)),me.info("I.6","Mesh size (bytes)",u.vertexData.buffer.byteLength+u.indexData.buffer.byteLength)),yield Promise.resolve(),(0,Ce.k_)(k),u})).apply(this,arguments)}function W(I,y){const v=function ee(I,y,v,k){if(0===k)return I;const B=Math.round(3*k),D=new Array(2*B+1);let f=0;for(let G=-B;G<=B;G++){const t=Math.exp(-G*G/(k*k));D[G+B]=t,f+=t}for(let G=-B;G<=B;G++)D[G+B]/=f;const O=new Float32Array(I.length);for(let G=0;G=y)continue;const S=D[p+B];u+=S*I[2*(G*y+(t+p))+0],g+=S*I[2*(G*y+(t+p))+1]}O[2*(G*y+t)+0]=u,O[2*(G*y+t)+1]=g}const R=new Float32Array(I.length);for(let G=0;G=v)continue;const S=D[p+B];u+=S*O[2*((t+p)*y+G)+0],g+=S*O[2*((t+p)*y+G)+1]}R[2*(t*y+G)+0]=u,R[2*(t*y+G)+1]=g}return R}(y.data,y.width,y.height,I.smoothing);return I.interpolate?(k,B)=>{const D=Math.floor(k),f=Math.floor(B);if(D<0||D>=y.width)return[0,0];if(f<0||f>=y.height)return[0,0];const O=k-D,R=B-f,u=D{const D=Math.round(k),f=Math.round(B);return D<0||D>=y.width||f<0||f>=y.height?[0,0]:[v[2*(f*y.width+D)+0],v[2*(f*y.width+D)+1]]}}function Q(I,y,v,k,B,D,f,O,R){const G=[];let t=v,u=k,g=0,[p,S]=y(t,u);p*=I.velocityScale,S*=I.velocityScale;const d=Math.sqrt(p*p+S*S);let s,i;G.push({x:t,y:u,t:g,speed:d});for(let h=0;hI.maxTurnAngle)return G;if(I.collisions){const M=Math.round(t*R),_=Math.round(u*R);if(M<0||M>f-1||_<0||_>O-1)return G;const F=D[_*f+M];if(-1!==F&&F!==B)return G;D[_*f+M]=B}G.push({x:t,y:u,t:g,speed:b}),s=T,i=E}return G}function H(I,y,v,k){const B=[],D=new ce.Z,f=1/Math.max(I.lineCollisionWidth,1),O=Math.round(v*f),R=Math.round(k*f),G=new Int32Array(O*R);for(let u=0;uu.sort-g.sort);for(const{x:u,y:g}of t)if(D.getFloat()R+G.length,0),B=new Float32Array(4*k),D=new Array(I.length);let f=0,O=0;for(const R of I){const G=f;for(const t of R)B[4*f+0]=t.x,B[4*f+1]=t.y,B[4*f+2]=t.t,B[4*f+3]=t.speed,f++;D[O++]={startVertex:G,numberOfVertices:R.length,totalTime:R[R.length-1].t,timeSeed:y?v.getFloat():0}}return{lineVertices:B,lineDescriptors:D}}function K(I,y){const{lineVertices:k,lineDescriptors:B}=I;let D=0,f=0;for(const p of B)D+=2*p.numberOfVertices,f+=6*(p.numberOfVertices-1);const O=new Float32Array(9*D),R=new Uint32Array(f);let G=0,t=0;function g(p,S,d,s,i,h,m,c){const b=9*G;let T=0;O[b+T++]=p,O[b+T++]=S,O[b+T++]=1,O[b+T++]=d,O[b+T++]=h,O[b+T++]=m,O[b+T++]=s/2,O[b+T++]=i/2,O[b+T++]=c,G++,O[b+T++]=p,O[b+T++]=S,O[b+T++]=-1,O[b+T++]=d,O[b+T++]=h,O[b+T++]=m,O[b+T++]=-s/2,O[b+T++]=-i/2,O[b+T++]=c,G++}for(const p of B){const{totalTime:S,timeSeed:d}=p;let s=null,i=null,h=null,m=null,c=null,b=null;for(let T=0;T0){P=E-s,V=M-i;const Z=Math.sqrt(P*P+V*V);if(P/=Z,V/=Z,T>1){let q=P+c,$=V+b;const re=Math.sqrt(q*q+$*$);q/=re,$/=re;const Y=Math.min(1/(q*P+$*V),y);q*=Y,$*=Y,j=-$,J=q}else j=-V,J=P;null!==j&&null!==J&&(g(s,i,h,j,J,S,d,F),R[t++]=G-2,R[t++]=G,R[t++]=G-1,R[t++]=G,R[t++]=G+1,R[t++]=G-1)}s=E,i=M,h=_,c=P,b=V,m=F}g(s,i,h,-b,c,S,d,m)}return{vertexData:O,indexData:R}}function N(I){const{lineVertices:B,lineDescriptors:D}=I;let f=0,O=0;for(const Z of D){const q=Z.numberOfVertices-1;f+=4*q*2,O+=6*q*2}const R=new Float32Array(16*f),G=new Uint32Array(O);let t,u,g,p,S,d,s,i,h,m,c,b,T,E,M=0,_=0;function V(Z,q){let $=h+c,re=m+b;const Y=Math.sqrt($*$+re*re);$/=Y,re/=Y;const ue=h*$+m*re;$/=ue,re/=ue;let pe=c+T,ae=b+E;const te=Math.sqrt(pe*pe+ae*ae);pe/=te,ae/=te;const le=c*pe+b*ae;pe/=le,ae/=le,function P(Z,q,$,re,Y,ue,pe,ae,te,le,ye,de,be,Te){const we=16*M;let ve=0;for(const Ee of[1,2])for(const Se of[1,2,3,4])R[we+ve++]=Z,R[we+ve++]=q,R[we+ve++]=$,R[we+ve++]=re,R[we+ve++]=pe,R[we+ve++]=ae,R[we+ve++]=te,R[we+ve++]=le,R[we+ve++]=Ee,R[we+ve++]=Se,R[we+ve++]=be,R[we+ve++]=Te,R[we+ve++]=Y/2,R[we+ve++]=ue/2,R[we+ve++]=ye/2,R[we+ve++]=de/2,M++}(t,u,g,p,-re,$,S,d,s,i,-ae,pe,Z,q),function F(){G[_++]=M-8,G[_++]=M-7,G[_++]=M-6,G[_++]=M-7,G[_++]=M-5,G[_++]=M-6,G[_++]=M-4,G[_++]=M-3,G[_++]=M-2,G[_++]=M-3,G[_++]=M-1,G[_++]=M-2}()}function j(Z,q,$,re,Y,ue){if(h=c,m=b,c=T,b=E,null==h&&null==m&&(h=c,m=b),null!=S&&null!=d){T=Z-S,E=q-d;const pe=Math.sqrt(T*T+E*E);T/=pe,E/=pe}null!=h&&null!=m&&V(Y,ue),t=S,u=d,g=s,p=i,S=Z,d=q,s=$,i=re}function J(Z,q){h=c,m=b,c=T,b=E,null==h&&null==m&&(h=c,m=b),null!=h&&null!=m&&V(Z,q)}for(const Z of D){t=null,u=null,g=null,p=null,S=null,d=null,s=null,i=null,h=null,m=null,c=null,b=null,T=null,E=null;const{totalTime:q,timeSeed:$}=Z;for(let re=0;re{r.d(Z,{P:()=>ye,a:()=>Pe,b:()=>be,c:()=>Ie,g:()=>he});var g=r(21286),c=r(28347),j=r(43703),K=r(67831),F=r(99770),u=r(84161),b=r(28093),v=r(5548),M=r(52382),w=r(13934),H=r(78925),E=r(62952),P=r(19278),C=r(32181),S=r(95285),h=r(77739),A=r(17625),k=r(47205),z=r(63123),ve=r(22355),re=r(16396);class ye extends A.K{constructor(){super(...arguments),this.clipBox=(0,v.Ue)(v.bd),this.useFixedSizes=!1,this.useRealWorldSymbolSizes=!1,this.scaleFactor=1,this.minSizePx=0,this.size=0,this.sizePx=0}get fixedSize(){return this.drawScreenSpace?this.sizePx:this.size}get screenMinSize(){return this.useFixedSizes?0:this.minSizePx}get drawScreenSpace(){return this.useFixedSizes&&!this.useRealWorldSymbolSizes}}class Pe extends H.UT{constructor(L,oe,ie){super(L),this.origin=L,this.isLeaf=oe,this.splatSize=ie}}function Ie(U){const L=new ve.kG,oe=U.output===w.H.Color,ie=U.output===w.H.Depth,Ce=U.output===w.H.Highlight,{vertex:$,fragment:xe}=L;return L.extensions.add("GL_OES_standard_derivatives"),L.include(H.f5,U),L.attributes.add(re.T.POSITION,"vec3"),L.attributes.add(re.T.COLOR,"vec3"),$.uniforms.add([new k.K("modelView",(O,x)=>(0,c.m)(Me,x.camera.viewMatrix,(0,c.f)(Me,O.origin))),new z.g("proj",(O,x)=>x.camera.projectionMatrix),new C.q("screenMinMaxSize",(O,x,W)=>(0,K.s)(Se,W.useFixedSizes?0:W.minSizePx*x.camera.pixelRatio,he(O.isLeaf)*x.camera.pixelRatio))]),$.uniforms.add(U.useFixedSizes?new S.A("pointScale",(O,x)=>(0,K.s)(Se,O.fixedSize*x.camera.pixelRatio,x.camera.fullHeight)):new C.q("pointScale",(O,x,W)=>(0,K.s)(Se,O.splatSize*W.scaleFactor*x.camera.pixelRatio,x.camera.fullHeight/x.camera.pixelRatio))),U.clippingEnabled?$.uniforms.add([new h.B("clipMin",(O,x,W)=>(0,u.s)(Oe,W.clipBox[0]-O.origin[0],W.clipBox[1]-O.origin[1],W.clipBox[2]-O.origin[2])),new h.B("clipMax",(O,x,W)=>(0,u.s)(Oe,W.clipBox[3]-O.origin[0],W.clipBox[4]-O.origin[1],W.clipBox[5]-O.origin[2]))]):($.constants.add("clipMin","vec3",[-g._3,-g._3,-g._3]),$.constants.add("clipMax","vec3",[g._3,g._3,g._3])),ie?((0,M.Zu)(L),(0,M.bA)(L),L.varyings.add("depth","float")):U.output!==w.H.Highlight&&L.varyings.add("vColor","vec3"),$.code.add(A.H` - void main(void) { - // Move clipped points outside of clipspace - if (position.x < clipMin.x || position.y < clipMin.y || position.z < clipMin.z || - position.x > clipMax.x || position.y > clipMax.y || position.z > clipMax.z) { - gl_Position = vec4(0.0,0.0,0.0,2.0); - gl_PointSize = 0.0; - return; - } - - if (rejectBySlice(position)) { - gl_Position = vec4(0.0,0.0,0.0,2.0); - gl_PointSize = 0.0; - return; - } - - // Position in camera space - vec4 camera = modelView * vec4(position, 1.0); - - float pointSize = pointScale.x; - vec4 position = proj * camera; - ${U.drawScreenSize?A.H` - float clampedScreenSize = pointSize;`:A.H` - float pointRadius = 0.5 * pointSize; - vec4 cameraOffset = camera + vec4(0.0, pointRadius, 0.0, 0.0); - vec4 positionOffset = proj * cameraOffset; - float radius = abs(positionOffset.y - position.y); - float viewHeight = pointScale.y; - // screen diameter = (2 * r / w) * (h / 2) - float screenPointSize = (radius / position.w) * viewHeight; - float clampedScreenSize = clamp(screenPointSize, screenMinMaxSize.x, screenMinMaxSize.y); - // Shift towards camera, to move rendered point out of terrain i.e. to - // the camera-facing end of the virtual point when considering it as a - // 3D sphere. - camera.xyz -= normalize(camera.xyz) * pointRadius * clampedScreenSize / screenPointSize; - position = proj * camera;`} - - gl_PointSize = clampedScreenSize; - gl_Position = position; - - ${ie?A.H`depth = calculateLinearDepth(nearFar, camera.z);`:""} - ${oe?A.H`vColor = color;`:""} - } - `),xe.include(P.n,U),Ce&&L.include(E.bA,U),xe.code.add(A.H` - void main(void) { - vec2 vOffset = gl_PointCoord - vec2(0.5, 0.5); - float r2 = dot(vOffset, vOffset); - - if (r2 > 0.25) { - discard; - } - ${ie?A.H`gl_FragColor = float2rgba(depth);`:""} - ${Ce?A.H`outputHighlight();`:""} - ${oe?A.H`gl_FragColor = vec4(vColor, 1.0);`:""} - } - `),L}function he(U){return U?256:64}const Me=(0,j.c)(),Oe=(0,b.c)(),Se=(0,F.a)(),be=Object.freeze(Object.defineProperty({__proto__:null,PointRendererPassParameters:ye,PointRendererDrawParameters:Pe,build:Ie,getMaxPointSizeScreenspace:he},Symbol.toStringTag,{value:"Module"}))},19702:(me,Z,r)=>{r.d(Z,{A:()=>H});var g=r(15861),c=r(17626),j=r(54024),K=r(10699),F=r(32917),u=r(77712),M=(r(85931),r(90912),r(76898)),w=r(36947);const H=E=>{let P=class extends E{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(C){super.postscript(C),(0,w.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var C=this;return(0,g.Z)(function*(){const S=new AbortController,h=S.signal;C.handles.add((0,j.kB)(()=>S.abort())),yield(0,F.N1)(()=>C.view.defaultsFromMap?.heightModelInfoReady,h),(0,K.k_)(h);const A=(0,w.Wt)(C.layer,C.view.heightModelInfo,C.supportsHeightUnitConversion);if(A)throw A})()}canResume(){const C=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!C||!C.minScale||!C.maxScale||C.minScale>=C.maxScale)}getSuspendInfo(){const C=super.getSuspendInfo(),S=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return S&&S.minScale&&S.maxScale&&S.minScale{r.r(Z),r.d(Z,{default:()=>jt});var g=r(15861),c=r(17626),j=r(59213),K=r(46160),F=r(63290),u=r(62208),b=r(10699),v=r(32917),M=r(23841),w=r(55713),H=r(16730),E=r(77712),S=(r(85931),r(90912),r(76898)),h=r(84161),A=r(14658),k=r(55915),z=r(5548),ve=r(65401),re=r(90014),ye=r(38114),Pe=r(86219),he=(r(8314),r(26036)),be=(r(50028),r(90336),r(68155),r(36630)),U=r(41291),L=r(29505),oe=r(19702),ie=r(42930);class Ce extends ie.q{constructor(e){super("PointCloudWorker","transform",{transform:i=>this._getTransferList(i)},e)}_getTransferList(e){const i=[e.geometryBuffer];if((0,u.pC)(e.primaryAttributeData)&&e.primaryAttributeData.buffer&&i.push(e.primaryAttributeData.buffer),(0,u.pC)(e.modulationAttributeData)&&e.modulationAttributeData.buffer&&i.push(e.modulationAttributeData.buffer),(0,u.pC)(e.filterAttributesData))for(const s of e.filterAttributesData)(0,u.pC)(s)&&s.buffer&&i.push(s.buffer);for(const s of e.userAttributesData)s.buffer&&i.push(s.buffer);return i}}var $=r(42964);const O=[!1],x=[null],W=[!1],X=[null];function Ve(t,e,i){let s=t;for(;s>0;){const n=e.indexOf(s);if(n>=0)return n;s=i.getParentId(s)}return e.indexOf(s)}function ot(t,e,i){const s=[e.remove[0]],n=[];for(;1===s.length;){const o=s.pop();n.length=0;for(let a=0;a1?t.push({remove:[s[o]],load:n[o]}):s[o]=n[o][0]}var Y=r(93394);class at{constructor(e,i,s){this._pages=[],this.pageSize=0,this._nodeSR=null,this._renderSR=null,this._nodeSR=e,this._renderSR=i,this.pageSize=s}addPage(e,i,s=0){for(;this._pages.lengthfunction lt(t,e,i){const s=t.index;if(!s.hasNodes(0,1))return;const n=t.queue;n.length=0,n.push(0);const o=t.masks;for(o.length=0,o.push(0);n.length>0;){const a=n.pop();let l=o.pop();const d=s.getNode(a),p=s.getRenderObb(a);let f=!0;if(null!=e.clippingBox){const y=1<0?f=!1:m<0&&(l|=I)}}if(i.predicate(a,d,f)){const y=d.firstChild,I=d.childCount;let m=!1;const R=Q(y,s.pageSize),V=Q(y+I-1,s.pageSize);for(let D=R;D<=V;D++)if(!s.hasPage(D)){i.pageMiss(a,D),m=!0;break}if(!m)for(let D=0;D({filterJSON:i.toJSON(),attributeInfo:ue(t.attributeStorageInfo,i.field)})):[]}function Qe(t){const e=t&&t.pointSizeAlgorithm;return e&&"fixed-size"===e.type?e:null}function Ge(t,e){for(const i of t)if(i.name===e&&null!=i.attributeValues&&"UInt8"===i.attributeValues.valueType&&3===i.attributeValues.valuesPerElement)return{name:e,storageInfo:i,useElevation:!1};return null}function ue(t,e){for(const i of t)if(i.name===e){const s="embedded-elevation"===i.encoding;return{name:e,storageInfo:s?null:i,useElevation:s}}return"elevation"===e.toLowerCase()?{name:e,storageInfo:null,useElevation:!0}:null}var Ae=r(14471),pt=r(88879);let ce=class extends pt.Z{constructor(t){super(t)}};(0,c._)([(0,E.Cb)({constructOnly:!0,clonable:"reference"})],ce.prototype,"pointCloudMetadata",void 0),ce=(0,c._)([(0,S.j)("esri.views.3d.layers.i3s.PointGraphic")],ce);var gt=r(77029),pe=r(28093),_t=r(993),ft=r(70562),mt=r(54024),vt=r(42743),yt=r(7167);class Pt{constructor(e){this._context=e,this._highlights=new Set}get hasHighlights(){return this._highlights.size>0}destroy(){this._highlights=null}add(e){const i=new St(e);return this._highlights.add(i),this._enableSet(i),(0,mt.kB)(()=>this._removeSet(i))}_removeSet(e){this._disableSet(e),this._highlights.delete(e)}_enableSet(e){e.enabled||(e.enabled=!0,this._context.forEachNode(i=>this._enableSetForNode(e,i)))}_enableSetForNode(e,i){if(!e.enabled)return;const s=e.ids.get(i.id);s&&s.forEach(n=>this._context.addHighlight(i,n,e.id))}_disableSet(e){e.enabled&&(e.enabled=!1,this._context.forEachNode(i=>this._disableSetForNode(e,i)))}_disableSetForNode(e,i){e.enabled||this._context.removeHighlight(i,e.id)}nodeAdded(e){this._highlights.forEach(i=>this._enableSetForNode(i,e))}nodeRemoved(e){this._highlights.forEach(i=>this._disableSetForNode(i,e))}removeAll(){this._highlights.forEach(e=>this._disableSet(e))}}class St{constructor(e){this.id=new yt.O(vt.V_.Highlight),this.ids=new Map,this.enabled=!1;for(const i of e)(0,u.pC)(i)&&this._add(i.nodeId,i.pointId)}_add(e,i){const s=this.ids.get(e);s?s.add(i):this.ids.set(e,new Set([i]))}}var G=r(13934),Ze=r(39114),bt=r(62483),ge=r(67857),Ct=r(15197),$e=r(16396),Ee=r(1956),xt=r(651),Et=r(91056),Rt=r(12407),Je=r(64127),q=r(67969),De=r(2078);class Re extends Et.A{constructor(e,i,s){super(e,i,s)}initializeProgram(e){return new Rt.$(e.rctx,Re.shader.get().build(this.configuration),Ze.i)}initializePipeline(){return(0,De.sm)({depthTest:{func:q.wb.LESS},depthWrite:De.LZ,colorWrite:De.BK,stencilWrite:this.configuration.hasOccludees?Je.s3:null,stencilTest:this.configuration.hasOccludees?Je.RY:null})}}Re.shader=new xt.J(Ee.b,()=>r.e(9298).then(r.bind(r,99298)));var se=r(87601),It=r(41528);class ee extends It.W{constructor(){super(...arguments),this.output=G.H.Color,this.hasSlicePlane=!1,this.drawScreenSize=!1,this.useFixedSizes=!1,this.hasOccludees=!1,this.clippingEnabled=!1}}(0,c._)([(0,se.o)({count:G.H.COUNT})],ee.prototype,"output",void 0),(0,c._)([(0,se.o)()],ee.prototype,"hasSlicePlane",void 0),(0,c._)([(0,se.o)()],ee.prototype,"drawScreenSize",void 0),(0,c._)([(0,se.o)()],ee.prototype,"useFixedSizes",void 0),(0,c._)([(0,se.o)()],ee.prototype,"hasOccludees",void 0),(0,c._)([(0,se.o)()],ee.prototype,"clippingEnabled",void 0),(0,c._)([(0,se.o)({constValue:!0})],ee.prototype,"hasSliceInVertexProgram",void 0);var Xe=r(83994),Ye=r(40852);const Mt={positions:[new Ye.G($e.T.POSITION,3,q.g.FLOAT,0,12)],colors:[new Ye.G($e.T.COLOR,3,q.g.UNSIGNED_BYTE,0,3,!0)]};class Ot{constructor(e){this._params=e,this.type=ge.q7.PCL,this.isGround=!1,this._passParameters=new Ee.P,this._highlights=new Pt({forEachNode:i=>this.forEachNode(i),addHighlight:(i,s,n)=>this._addHighlight(i,s,n),removeHighlight:(i,s)=>this._removeHighlight(i,s)}),this.canRender=!0,this.layerUid="",this._slicePlaneEnabled=!1,this._techniqueConfig=new ee,this._nodes=new gt.Z}get needsHighlight(){return this._highlights.hasHighlights}initializeRenderContext(e){this._context=e,this._techniqueRep=this._context.shaderTechniqueRepository,e.requestRender()}uninitializeRenderContext(){}intersect(e,i,s,n){const o=(0,pe.c)(),a=(0,pe.c)(),l=(0,pe.c)(),d=(0,pe.c)(),p=(0,re.Ue)(),f=e.camera.perScreenPixelRatio/2,y=e.camera.near;(0,h.b)(a,n,s);const I=1/(0,h.l)(a);(0,h.g)(a,a,I),(0,h.o)(l,a),(0,_t.s)(p,a[0],a[1],a[2],-(0,h.e)(a,s));const m=new Ue,R=new Ue,V=new Array,D=(0,z.Ue)(),le=(0,z.Ue)(this._passParameters.clipBox);(0,z.cv)(le,-s[0],-s[1],-s[2],le),this._nodes.forAll(_=>{const T=_.splatSize*this._passParameters.scaleFactor;let B=(0,Y.JH)(_.obb,p),te=(0,Y.n3)(_.obb,p);if(B-=ze(T,B+y,this._passParameters,f,_.isLeaf),te-=ze(T,te+y,this._passParameters,f,_.isLeaf),te<0||null!=m.dist&&null!=R.dist&&m.distte*I)return;const we=Ne(T,te+y,this._passParameters,f,_.isLeaf);if(!(0,Y.fn)(_.obb,s,a,we))return;const Zt=we*we;(0,Y.mr)(_.obb,D),(0,z.cv)(D,-s[0],-s[1],-s[2],D);const $t=!(0,z.r3)(le,D);(0,h.b)(d,_.origin,s);const Jt=_.coordinates.length/3;for(let ne=0;neZt)continue;let Be=fe+y;const Fe=ze(T,Be,this._passParameters,f,_.isLeaf);if(fe-Fe<0)continue;Be-=Fe;const st=Ne(T,Be,this._passParameters,f,_.isLeaf);if(it>st*st)continue;const de=(fe-Fe)*I,He=J=>(J.point=Nt(_,ne,J.point),J.dist=de,J.normal=l,J.node=_,J.pointId=ne,J.layerUid=this.layerUid,J);if((null==m.dist||deR.dist)&&(null==i||i(s,n,de))&&He(R),e.options.store===ge.eC.ALL&&(null==i||i(s,n,de))){const J=new Ue;V.push(He(J))}}});const Te=_=>{const{layerUid:T,node:B,pointId:te}=_;return{point:_.point,layerUid:T,graphicUid:te,createGraphic:()=>this._params.createGraphic(B,te,_.point)}},_e=(_,T)=>{const B=Te(T);_.set(this.type,B,T.dist,T.normal)};if(qe(m)){const _=e.results.min;(null==_.dist||m.dist<_.dist)&&_e(_,m)}if(qe(R)&&e.options.store!==ge.eC.MIN){const _=e.results.max;(null==_.dist||R.dist>_.dist)&&_e(_,R)}if(e.options.store===ge.eC.ALL){const _=(0,ft.zk)(s,n);for(const T of V){const B=(0,bt.LP)(_);_e(B,T),e.results.all.push(B)}}}prepareTechnique(e){return 0===this._nodes.length||e.output!==G.H.Color&&e.output!==G.H.Depth&&e.output!==G.H.Highlight?null:(this._nodes.forAll(i=>{null==i.vao&&this._initNode(e,i)}),this._techniqueConfig.drawScreenSize=this._passParameters.drawScreenSpace,this._techniqueConfig.useFixedSizes=this._passParameters.useFixedSizes,this._techniqueConfig.hasSlicePlane=this._slicePlaneEnabled,this._techniqueConfig.hasOccludees=e.bindParameters.hasOccludees,this._techniqueConfig.clippingEnabled=this._clippingEnabled,this._techniqueConfig.output=e.output===G.H.Depth?G.H.Depth:e.output===G.H.Highlight?G.H.Highlight:G.H.Color,this._techniqueRep.releaseAndAcquire(Re,this._techniqueConfig,this._technique))}render(e,i){const s=e.rctx,n=s.bindTechnique(i,this._passParameters,e.bindParameters),o=e.output===G.H.Highlight;this._nodes.forAll(a=>{0===a.coordinates.length||o&&!a.highlights||(n.bindDraw(a,e.bindParameters,this._passParameters),s.bindVAO(a.vao),o?this._renderHighlightFragments(s,a):s.drawArrays(q.MX.POINTS,0,a.coordinates.length/3))})}_renderHighlightFragments(e,i){const s=i.highlights;if((0,u.Wi)(s))return;let n=(0,u.Wg)(s[0].component),o=n+1;for(let l=1;l0&&e.drawArrays(q.MX.POINTS,n,p),n=d}o=d+1}const a=o-n;a>0&&e.drawArrays(q.MX.POINTS,n,a)}set useFixedSizes(e){this._passParameters.useFixedSizes!==e&&(this._passParameters.useFixedSizes=e,this._requestRender())}get useFixedSizes(){return this._passParameters.useFixedSizes}set scaleFactor(e){this._passParameters.scaleFactor!==e&&(this._passParameters.scaleFactor=e,this._requestRender())}get scaleFactor(){return this._passParameters.scaleFactor}set minSizePx(e){this._passParameters.minSizePx!==e&&(this._passParameters.minSizePx=e,this._requestRender())}get minSizePx(){return this._passParameters.minSizePx}set useRealWorldSymbolSizes(e){this._passParameters.useRealWorldSymbolSizes!==e&&(this._passParameters.useRealWorldSymbolSizes=e,this._requestRender())}get useRealWorldSymbolSizes(){return this._passParameters.useRealWorldSymbolSizes}set size(e){this._passParameters.size!==e&&(this._passParameters.size=e,this._requestRender())}get size(){return this._passParameters.size}set sizePx(e){this._passParameters.sizePx!==e&&(this._passParameters.sizePx=e,this._requestRender())}get sizePx(){return this._passParameters.sizePx}set clippingBox(e){(0,z.t8)(this._passParameters.clipBox,e||z.bd)}get _clippingEnabled(){return!(0,z.fS)(this._passParameters.clipBox,z.bd,(e,i)=>e===i)}get slicePlaneEnabled(){return this._slicePlaneEnabled}set slicePlaneEnabled(e){this._slicePlaneEnabled!==e&&(this._slicePlaneEnabled=e,this._requestRender())}addNode(e){this._nodes.push(e),this._highlights.nodeAdded(e),this._requestRender()}removeNode(e){let i=null;return this._nodes.filterInPlace(s=>s.id!==e||(i=s,s.vao=(0,u.M2)(s.vao),this._highlights.nodeRemoved(s),!1)),this._requestRender(),i}forEachNode(e){this._nodes.forAll(e)}removeAll(){this._nodes.forAll(e=>e.vao=(0,u.M2)(e.vao)),this._highlights.removeAll(),this._nodes.clear(),this._requestRender()}highlight(e){return this._highlights.add(e)}_addHighlight(e,i,s){e.highlights=function zt(t,e,i){(0,u.Wi)(t)&&(t=[]);const s={component:e,id:i};t.push(s);const n=ke(s);let o=t.length-1;for(;o>0&&ns.id!==e);return 0===i.length?null:i}(e.highlights,i),this._requestRender()}_initNode(e,i){const s=e.rctx;i.vao=new Ct.U(s,Ze.i,Mt,{positions:Xe.f.createVertex(s,q.l1.STATIC_DRAW,i.coordinates),colors:Xe.f.createVertex(s,q.l1.STATIC_DRAW,i.rgb)})}_requestRender(){this._context&&this._context.requestRender()}}class At extends Ee.a{constructor(e,i,s,n,o,a,l,d,p=null,f=null){super(s,o,i),this.id=e,this.obb=n,this.coordinates=a,this.rgb=l,this.attributes=d,this.pointIdFilterMap=p,this.highlights=f}}function Ne(t,e,i,s,n){if(i.drawScreenSpace)return i.fixedSize*e*s;const o=(0,Ee.g)(n)*e*s;return i.useFixedSizes?Math.min(i.fixedSize/2,o):i.screenMinSize>0?Math.min(Math.max(i.screenMinSize*e*s,t/2),o):Math.min(t/2,o)}function ze(t,e,i,s,n){return i.drawScreenSpace?0:Ne(t,e,i,s,n)}function Nt(t,e,i){return(0,u.Wi)(i)&&(i=(0,pe.c)()),i[0]=t.origin[0]+t.coordinates[3*e],i[1]=t.origin[1]+t.coordinates[3*e+1],i[2]=t.origin[2]+t.coordinates[3*e+2],i}function ke(t){return(0,u.pC)(t.component)?t.component:-1}class Ue{constructor(){this.node=null,this.pointId=null,this.point=null,this.dist=null,this.normal=null,this.layerUid=""}}function qe(t){return(0,u.pC)(t.dist)&&(0,u.pC)(t.point)&&(0,u.pC)(t.pointId)&&(0,u.pC)(t.node)}var Lt=r(40465),Wt=r(55745),et=r(39135),Tt=r(41632),wt=r(5894),Bt=r(45611),Le=r(93579),Ft=r(87091);const Vt=(0,re.Ue)();let N=class extends((0,Lt.i)((0,oe.A)(Bt.Z))){constructor(){super(...arguments),this.type="point-cloud-3d",this.maximumPointCount=4e6,this.slicePlaneEnabled=!1,this._renderer=null,this._rendererAdded=!1,this._renderedNodes=new Set,this._nodeScales=new Map,this._updateViewNeeded=!0,this._lodFactor=1,this._maxLoggedBoxWarnings=5,this._pageMultiplier=1,this._nodeLoadEpoch=0,this._indexQueue=[],this._workQueue=new Array,this._idleQueue=new U.b,this._indexPagesLoading=new Map,this._loadingNodes=new Map,this._recalcWork=!0,this._layerIsVisible=!1,this._codedDomainPopulationPromise=null,this._codedDomainPopulationAbortController=null,this._totalWork=0,this._index=null,this._loadingInitNodePage=!1,this._nodeIdArray=[]}get baseUrl(){return this.layer.parsedUrl.path}get pointScale(){const t=function ut(t){const e=t&&t.pointSizeAlgorithm;return e&&"splat"===e.type?e:null}(this.layer&&this.layer.renderer);return t&&null!=t.scaleFactor?t.scaleFactor:1}get useRealWorldSymbolSizes(){const t=Qe(this.layer&&this.layer.renderer);return!(!t||null==t.useRealWorldSymbolSizes)&&t.useRealWorldSymbolSizes}get pointSize(){const t=Qe(this.layer&&this.layer.renderer);return t&&null!=t.size?t.size:0}get inverseDensity(){return this.layer&&this.layer.renderer?96/this.layer.renderer.pointsPerInch:5}get availableFields(){const t=je(this.layer),e=new Set;t.primaryAttribute&&e.add(t.primaryAttribute.name),t.modulationAttribute&&e.add(t.primaryAttribute.name);const i=Ke(this.layer);if(i)for(const s of i)e.add(s.attributeInfo.name);if(this.layer.outFields)for(const s of(0,be.Lk)(this.layer.fieldsIndex,this.layer.outFields))e.add(s);return Array.from(e)}get _clippingBox(){if(!this.view||!this.view.clippingArea)return null;const t=(0,z.Ue)();return(0,Wt.O)(this.view.clippingArea,t,this.view.renderSpatialReference)?t:null}get _elevationOffset(){const t=this.layer&&this.layer.elevationInfo;if(t&&"absolute-height"===t.mode){const e=(0,H._R)(this.layer.spatialReference),i=(0,L.Z7)(t.unit);return(0,u.Pt)(t.offset,0)*i/e}return 0}initialize(){const t=this.view.resourceController;this._worker=new Ce(s=>t.schedule(s)),this.addResolvingPromise(this._worker.promise),this._tmpPoint=(0,ye.Tx)(0,0,0,this.layer.spatialReference),(0,$.zW)(this.layer),(0,$.yS)(this.layer,this.view),this._indexRequester=t.createStreamDataRequester(et.Bh.I3S_INDEX),this._dataRequester=t.createStreamDataRequester(et.Bh.I3S_DATA),this._initRenderer();const e=this._initNodePages(),i=this.view.resourceController.memoryController;this._memCache=i.newCache(this.layer.uid),this.updatingHandles.add(()=>this._clippingBox,()=>this._setUpdateViewNeeded(),v.nn),this.updatingHandles.add(()=>this._elevationOffset,()=>this._elevationOffsetChanged(),v.nn),this.updatingHandles.add(()=>this.layer.renderer,()=>this._rendererChanged(),v.nn),this.updatingHandles.add(()=>this.layer.filters,()=>this._reload(),v.nn),this.updatingHandles.add(()=>this.layer.outFields,()=>this._reload(),v.nn),this.updatingHandles.add(()=>this.layer.effectiveScaleRange,()=>this._setUpdateViewNeeded()),this.updatingHandles.add(()=>this.view.state.contentCamera,()=>this._setUpdateViewNeeded()),this.handles.add([this.view.basemapTerrain.on("scale-change",s=>this._scaleUpdateHandler(s)),(0,v.YP)(()=>i.memoryFactor,()=>this._setUpdateViewNeeded(),v.Z_)]),this.addResolvingPromise(e),this.when(()=>{this.handles.add([t.scheduler.registerTask(Ft.T8.POINT_CLOUD_LAYER,this),t.scheduler.registerIdleStateCallbacks(()=>this._idleBegin(),()=>this._idleEnd()),this.updatingHandles.add(()=>this.suspended,s=>{s?this._clearNodeState():this._setUpdateViewNeeded()},v.nn)])},()=>{this.updatingHandles.removeAll(),this.handles.removeAll()})}_setUpdateViewNeeded(){this._updateViewNeeded=!0,this._updateLoading()}destroy(){this.cancelLoading(),this._worker&&(this._worker.destroy(),this._worker=null),this._destroyRenderer(),this._memCache.destroy(),this._memCache=null,this._codedDomainPopulationAbortController&&(this._codedDomainPopulationAbortController.abort(),this._codedDomainPopulationAbortController=null),this._codedDomainPopulationPromise=null}_initRenderer(){this._renderer=new Ot({createGraphic:(t,e,i)=>this._createGraphic(t,e,i)}),this._renderer.layerUid=this.layer.uid,this.updatingHandles.add(()=>this._clippingBox,t=>this._renderer.clippingBox=t,v.nn),this.updatingHandles.add(()=>this.suspended,t=>this._setPointsVisible(!t),v.nn),this.updatingHandles.add(()=>this.pointScale,t=>this._renderer.scaleFactor=t,v.nn),this._renderer.minSizePx=Math.sqrt(2),this.updatingHandles.add(()=>this.useRealWorldSymbolSizes,t=>this._renderer.useRealWorldSymbolSizes=t,v.nn),this.updatingHandles.add(()=>this.pointSize,t=>{const e=(0,M.F2)(t);this._renderer.size=t,this._renderer.sizePx=e},v.nn),this.updatingHandles.add(()=>this.slicePlaneEnabled,t=>this._renderer.slicePlaneEnabled=t,v.nn),this.updatingHandles.add(()=>this.inverseDensity,()=>this._setUpdateViewNeeded(),v.nn),this.updatingHandles.add(()=>this.maximumPointCount,()=>this._setUpdateViewNeeded(),v.nn),this.updatingHandles.add(()=>this.view.qualitySettings.sceneService.pointCloud.lodFactor,t=>{this._lodFactor=t,this._setUpdateViewNeeded()},v.nn)}_destroyRenderer(){this._renderer.removeAll(),this._setPointsVisible(!1)}_createGraphic(t,e,i){const s=(0,u.pC)(t.pointIdFilterMap)?t.pointIdFilterMap[e]:e,n=this.view.computeMapPointFromVec3d(i),o=this._createGraphicAttributes(t,s);return new ce({pointCloudMetadata:{nodeId:t.id,pointIndexInNode:e,attributePointIndexInNode:s,epoch:this._nodeLoadEpoch},geometry:n,attributes:o,layer:this.layer,sourceLayer:this.layer})}_createGraphicAttributes(t,e){const i={};for(const s of t.attributes)this._encodeGraphicAttribute(s.attributeInfo,s.values,e,i);return i}_encodeGraphicAttribute(t,e,i,s){const n=t.storageInfo&&t.storageInfo.attributeValues,o=n?n.valuesPerElement:1;if(1===o)s[t.name]=e[i];else if("UInt8"===n.valueType&&o<=4){let a=0;const l=i*o;for(let d=l;d{if(!this._renderedNodes.has(s))return void this._nodeScales.delete(s);const n=this._index.getNode(s);(0,ve.BD)(tt,n.obb.center)&&this._nodeScales.set(s,t.scale)}),this._setUpdateViewNeeded()):this._nodeScales.clear()}_displayNodes(t){this._workQueue=function xe(t,e,i){for(let n=0;n=0&&(W[n]=!0,null!=x[o]?x[o].push(e[n]):x[o]=[e[n]])}for(let n=0;n=0&&(O[n]=!0,null!=X[o]?X[o].push(t[n]):X[o]=[t[n]])}const s=[];for(let n=0;n1||X[n][0]!==e[n])&&s.push({load:[e[n]],remove:X[n]});for(let n=0;n1||x[n][0]!==t[n])&&s.push({load:x[n],remove:[t[n]]});return s}([...this._renderedNodes],t,this._index),function nt(t,e,i){t.sort((s,n)=>{if(0===s.load.length&&0===n.load.length)return 0;if(0===s.load.length)return-1;if(0===n.load.length)return 1;if(0===s.remove.length&&0===n.remove.length){const o=i.getRenderCenter(s.load[0]),a=i.getRenderCenter(n.load[0]);return(0,h.e)(o,e)-(0,h.e)(a,e)}if(0===s.remove.length)return-1;if(0===n.remove.length)return 1;if(1===s.load.length&&1===n.load.length){const o=i.getRenderCenter(s.load[0]),a=i.getRenderCenter(n.load[0]);return(0,h.e)(o,e)-(0,h.e)(a,e)}if(1===s.load.length)return-1;if(1===n.load.length)return 1;{const o=i.getRenderCenter(s.remove[0]),a=i.getRenderCenter(n.remove[0]);return(0,h.e)(o,e)-(0,h.e)(a,e)}})}(this._workQueue,this.view.state.contentCamera.viewForward,this._index),function rt(t,e,i){for(let s=0;se&&1===n.remove.length&&ot(t,n,i)}}(this._workQueue,8,this._index),this._updateQueues(),this._totalWork=this._computeWork(),this._updateLoading(),this._layerIsVisible=t.length>0||this._loadingInitNodePage,this.notifyChange("suspended")}cancelLoading(){this._cancelNodeLoading(),this._cancelIndexLoading()}_cancelNodeLoading(){const t=new Array;this._loadingNodes.forEach(({abortController:e})=>t.push(e)),this._loadingNodes.clear();for(const e of t)e.abort();this._workQueue=[],this._idleQueue.cancelAll(),this._totalWork=this._computeWork(),this._updateLoading()}_updateQueues(){const t=new Set;this._workQueue.forEach(s=>s.load.forEach(n=>t.add(n)));const e=new Array,i=new Map;this._loadingNodes.forEach((s,n)=>{t.has(n)?i.set(n,s):e.push(s)}),this._loadingNodes=i;for(const{abortController:s}of e)s.abort();this._workQueue=this._workQueue.filter(s=>{for(const n of s.load)if(this._loadingNodes.has(n))return this._recalcWork=!0,!1;return!0}),this._totalWork=this._computeWork(),this._updateLoading()}_cancelIndexLoading(){this._indexQueue=[],this._indexPagesLoading.forEach(({abortController:t})=>t.abort()),this._indexPagesLoading.clear(),this._totalWork=this._computeWork(),this._updateLoading()}_clearNodeState(){this._nodeLoadEpoch++,this._renderedNodes.forEach(t=>this._removeFromRenderer(t)),this._cancelNodeLoading()}_idleBegin(){this._setUpdateViewNeeded()}_idleEnd(){this._setUpdateViewNeeded()}get running(){return this.suspended?this._updateViewNeeded:this._updateViewNeeded||this._indexQueue.length>0||this._workQueue.length>0||this._idleQueue.running}runTask(t){if(this.suspended){if(this._updateViewNeeded){this._updateViewNeeded=!1;const e=this._isRootNodeVisible();e!==this._layerIsVisible&&(this._layerIsVisible=e,this.notifyChange("suspended")),this._updateLoading()}}else{for(t.run(()=>this._updateWorkQueues());this._indexQueue.length>0&&t.run(()=>this._processIndexQueue()););this._processWorkQueue(t),this._idleQueue.runTask(t)}}_processIndexQueue(){const t=this._indexQueue.shift(),e=this._loadNodePage(t);return this._indexPagesLoading.set(t,e),e.promise.then(i=>{this._index.addPage(t,i,this._elevationOffset),this._setUpdateViewNeeded()}).then(()=>{this._indexPagesLoading.delete(t)},()=>{this._indexPagesLoading.delete(t)}),!0}_processWorkQueue(t){for(;!t.done;){const e=this._scheduleWorkEntry();if((0,u.Wi)(e))return;this._processWorkEntry(e),t.madeProgress()}}_scheduleWorkEntry(){let t=this._workQueue.length;for(;t--;){const e=this._workQueue.shift();if(!e.remove.find(i=>!this._renderedNodes.has(i)))return e;this._workQueue.push(e)}return null}_processWorkEntry(t){if(0!==t.load.length)Promise.all(t.load.map(e=>{const i=new AbortController,s=this._memCache.pop(e.toString());return(0,u.pC)(s)?this._loadingNodes.set(e,{abortController:i,promise:Promise.resolve(s)}):this._loadingNodes.has(e)||this._loadingNodes.set(e,{abortController:i,promise:this._loadNode(e,i.signal)}),this._loadingNodes.get(e).promise})).then(e=>{for(let i=0;i{}).then(()=>{for(const e of t.load)this._loadingNodes.delete(e);this._updateLoading(),this._recalcWork&&!this._idleQueue.running&&0===this._indexQueue.length&&0===this._loadingNodes.size&&(this._recalcWork=!1,this._setUpdateViewNeeded())}),this._updateLoading();else for(const e of t.remove)this._removeFromRenderer(e)}_populateClassCodeCodedDomain(t,e){var i=this;return(0,g.Z)(function*(){const s="CLASS_CODE",n=i.layer.fieldsIndex.get(s);if(!n||n.domain||!t.includes(n.name))return;const o=yield(0,j.q6)(i.layer.queryCachedStatistics(s,{signal:e}));if(!1===o.ok)return;const a=o.value,l=a&&a.labels&&a.labels.labels;l&&Array.isArray(l)&&(n.domain=new he.Z({name:"CLASS_CODE",codedValues:l.map(d=>new Pe.u({code:d.value,name:d.label}))}))})()}prepareFetchPopupFeatures(t){var e=this;return(0,g.Z)(function*(){return e._codedDomainPopulationPromise||(e._codedDomainPopulationAbortController=new AbortController,e._codedDomainPopulationPromise=e._populateClassCodeCodedDomain(t,e._codedDomainPopulationAbortController.signal).then(()=>{e._codedDomainPopulationAbortController=null})),e._codedDomainPopulationPromise})()}whenGraphicAttributes(t,e){var i=this;return(0,g.Z)(function*(){const s=i._splitGraphicsPerNode(t),n=i.layer.attributeStorageInfo,o=e.map(d=>ue(n,d)),a=function(){var d=(0,g.Z)(function*(p,f){const y=i._index.getNode(f);yield(0,j.Ed)(o,function(){var I=(0,g.Z)(function*(m){const R=m.useElevation?yield i._loadElevationAttributeFromGeometry(y.resourceId):yield i._loadAndParseAttribute(y,m);if(R)for(const V of p)i._isValidPointGraphic(V)&&i._encodeGraphicAttribute(m,R,V.pointCloudMetadata.attributePointIndexInNode,V.attributes)});return function(m){return I.apply(this,arguments)}}())});return function(f,y){return d.apply(this,arguments)}}(),l=[];return s.forEach((d,p)=>{l.push(a(d,p))}),yield(0,b.as)(l),t})()}_isValidPointGraphic(t){return t instanceof ce&&t.pointCloudMetadata&&t.pointCloudMetadata.epoch===this._nodeLoadEpoch}_splitGraphicsPerNode(t){const e=new Map;for(const i of t){if(!this._isValidPointGraphic(i))continue;const s=i.pointCloudMetadata,n=e.get(s.nodeId);n?n.push(i):e.set(s.nodeId,[i])}return e}_loadAndParseAttribute(t,e){var i=this;return(0,g.Z)(function*(){const s=yield i._loadAttribute(t.resourceId,e,null);return(0,u.pC)(s)?(0,Ae.dH)({attributeInfo:e,buffer:s},null,t.vertexCount):null})()}_loadElevationAttributeFromGeometry(t){var e=this;return(0,g.Z)(function*(){const s=(0,Ae.Ym)(e.layer.store.defaultGeometrySchema,yield e._loadGeometry(t,null));return(0,Ae.et)(s,s.length/3)})()}highlight(t){if(!t)return{remove(){}};const e=K.Z.isCollection(t)?t.toArray():Array.isArray(t)?t:[t];return this._renderer.highlight(e.map(i=>this._graphicToPointDefinition(i)))}_graphicToPointDefinition(t){if(!this._isValidPointGraphic(t))return null;const{nodeId:e,pointIndexInNode:i}=t.pointCloudMetadata;return null!=e&&null!=i?{nodeId:e,pointId:i}:null}_computeWork(){let t=0;for(const e of this._workQueue)t+=e.load.length+e.remove.length;return t+=this._loadingNodes.size,t+=(this._indexQueue.length+this._indexPagesLoading.size)*this._index.pageSize,t+=this._loadingInitNodePage?100:0,t+=this._updateViewNeeded?100:0,t}get updatingProgressValue(){if(this.suspended)return this._updateViewNeeded?0:1;const t=this._computeWork();return 1-Math.min(this._totalWork,t)/this._totalWork}_updateLoading(){this.notifyChange("updating"),this.notifyChange("updatingProgressValue")}canResume(){return super.canResume()&&this._layerIsVisible}isUpdating(){return this.suspended?this._updateViewNeeded:this._computeWork()>0}_initNodePages(){const t=this.layer.store.index;return this._index=new at(this.layer.spatialReference,this.view.renderCoordsHelper.spatialReference,t.nodesPerPage||t.nodePerIndexBlock),this._cancelIndexLoading(),this._traverseVisible=this._index.createVisibilityTraverse(),this._loadingInitNodePage=!0,this._layerIsVisible=!0,this.notifyChange("suspended"),this._updateLoading(),this._pageMultiplier=null!=t.nodesPerPage?1:t.nodePerIndexBlock,this._loadNodePage(0).promise.then(i=>{this._index.addPage(0,i,this._elevationOffset),this._loadingInitNodePage=!1,this._setUpdateViewNeeded()})}_loadNodePage(t){const e=new AbortController;return{promise:this._requestNodePage(`${this.baseUrl}/nodepages/${t*this._pageMultiplier}`,e.signal).then(s=>s.nodes.map((n,o)=>({resourceId:null!=n.resourceId?n.resourceId:t*this._index.pageSize+o,obb:n.obb,firstChild:n.firstChild,childCount:n.childCount,vertexCount:null!=n.vertexCount?n.vertexCount:n.pointCount,lodThreshold:null!=n.lodThreshold?n.lodThreshold:n.effectiveArea}))),abortController:e}}_updateWorkQueues(){if(!this._updateViewNeeded)return!1;let t=this.inverseDensity/this._lodFactor*this._getLodMemoryFactor();const e=this.maximumPointCount*this._lodFactor*this._getLodMemoryFactor();let i=this._computeNodesForMinimumDensity(t),s=this._computePointCount(i),n=Math.sqrt(s/(.75*e));for(;s>e;)t*=n,i=this._computeNodesForMinimumDensity(t),s=this._computePointCount(i),n=Math.sqrt(2);return this._displayNodes(i),this._updateViewNeeded=!1,this._updateLoading(),!0}_computePointCount(t){let e=0;for(let i=0;i(t=s,!1),pageMiss:()=>{}}),t}_computeNodesForMinimumDensity(t){const e=this.view.state.contentCamera,i=e.frustum,s=this._clippingBox,n=e.viewForward,o=(0,h.e)(n,e.eye),a=(0,re.Oy)(n,-o,Vt),l=e.perScreenPixelRatio/2,d=t*t,p=this._nodeIdArray;p.length=0;const{minScale:f,maxScale:y}=(0,Le.lu)(this.layer),I=0===f&&0===y?m=>p.push(m):m=>{const R=this._getScale(m);(0,Le.rs)(R,f,y)&&p.push(m)};return this._traverseVisible({frustum:i,clippingBox:s},{predicate:(m,R,V)=>{if(!V)return!1;if(0===R.childCount)return I(m),!1;const D=this._index.getRenderObb(m);return!(this._computeAveragePixelArea(D,R.lodThreshold,R.vertexCount,a,l)<=d&&(I(m),1))},pageMiss:(m,R)=>{I(m),this._indexQueue.includes(R)||this._indexQueue.push(R)}}),p}_getScale(t){let e=this._nodeScales.get(t);if(null==e){const i=this._index.getNode(t).obb.center;this._tmpPoint.x=i[0],this._tmpPoint.y=i[1],this._tmpPoint.z=i[2],e=this.view.basemapTerrain.getScale(this._tmpPoint),this._nodeScales.set(t,e)}return e}_computeAveragePixelArea(t,e,i,s,n){const a=Math.max(1e-7,(0,Y.JH)(t,s));return e/(a*a)/(4*n*n)/i}_loadNode(t,e){try{return this._loadNodeAsync(t,e)}catch(i){throw(0,b.D_)(i)||F.Z.getLogger(this.declaredClass).error(i),i}}_loadAdditionalUserAttributes(t,e,i){var s=this;return(0,g.Z)(function*(){const n=s.layer.outFields;if(!n)return[];const o=(0,be.Lk)(s.layer.fieldsIndex,n),a=new Set(t.map(f=>(0,u.pC)(f)?f.name:null)),l=s.layer.attributeStorageInfo,d=[];for(const f of o){if(a.has(f))continue;const y=ue(l,f);y&&d.push(e(y))}const p=yield(0,b.WW)(d);return(0,b.k_)(i),(0,u.e8)(p,f=>f)})()}_loadNodeAsync(t,e){var i=this;return(0,g.Z)(function*(){const s=i._index.getNode(t),n=je(i.layer),o=Ke(i.layer),a=s.resourceId,l=function(){var d=(0,g.Z)(function*(p){if((0,u.Wi)(p))return null;if(p.useElevation)return{attributeInfo:p,buffer:null};const f=yield i._loadAttribute(a,p,e);return(0,u.pC)(f)?{attributeInfo:p,buffer:f}:null});return function(f){return d.apply(this,arguments)}}();return i._idleQueue.push((0,g.Z)(function*(){const d=i._loadGeometry(a,e),{primaryAttribute:p,modulationAttribute:f}=n,y=l(p),I=l(f),m=o.map(B=>B.attributeInfo),R=m.map(B=>l(B)),V=i._loadAdditionalUserAttributes([p,f,...m],l,e),[D,le,Te,_e,_]=yield Promise.all([d,y,I,Promise.all(R),V]);(0,b.k_)(e);const T={geometryBuffer:D,primaryAttributeData:le,modulationAttributeData:Te,filterAttributesData:_e,userAttributesData:_,schema:i.layer.store.defaultGeometrySchema,rendererInfo:n,filterInfo:o,obb:i._index.getRenderObb(t),elevationOffset:i._elevationOffset,inSR:i.layer.spatialReference.toJSON(),outSR:i.view.renderCoordsHelper.spatialReference.toJSON()};return i._worker.invoke(T,e)}),e)})()}_loadGeometry(t,e){var i=this;return(0,g.Z)(function*(){return i._requestData(`${i.baseUrl}/nodes/${t}/geometries/0`,e)})()}_loadAttribute(t,e,i){var s=this;return(0,g.Z)(function*(){return(0,u.Wi)(e)||!e.storageInfo?null:s._requestData(`${s.baseUrl}/nodes/${t}/attributes/${e.storageInfo.key}`,i)})()}_requestNodePage(t,e){return this._indexRequester.request(t,"json",{query:{f:"json",token:this.layer.apiKey},signal:e})}_requestData(t,e){return this._dataRequester.request(t,"binary",{query:{token:this.layer.apiKey},signal:e})}_removeFromRenderer(t){if(this._renderedNodes.has(t)){const e=this._renderer.removeNode(t);this._renderedNodes.delete(t),this._nodeScales.delete(t),this._memCache.put(e.id.toString(),e,function Kt(t){return 5*t.coordinates.length+128}(e))}}_addToRenderer(t){this._renderedNodes.has(t.id)||(this._renderedNodes.add(t.id),this._renderer.addNode(t))}_setupRendererData(t,e){const i=this._index.getNode(t),s=Math.sqrt(i.lodThreshold/i.vertexCount),n=this._index.getRenderObb(t);if(function Dt(t){return t.hasOwnProperty("splatSize")}(e))return e.splatSize=s,e.obb=n,(0,h.c)(e.origin,e.obb.center),e;const o=.01*Math.max(n.halfSize[0],n.halfSize[1],n.halfSize[2]);if(e.obb.halfSize[0]>n.halfSize[0]+o||e.obb.halfSize[1]>n.halfSize[1]+o||e.obb.halfSize[2]>n.halfSize[2]+o){if(this._maxLoggedBoxWarnings>0){const a=l=>`[${l.halfSize[0]}, ${l.halfSize[1]}, ${l.halfSize[2]}]`;F.Z.getLogger(this.declaredClass).warn(`Node ${t} reported bounding box too small. got ${a(n)} but points cover ${a(e.obb)}`),0==--this._maxLoggedBoxWarnings&&F.Z.getLogger(this.declaredClass).warn(" Too many bounding box errors, stopping reporting for this layer.")}this._index.setRenderObb(t,e.obb)}return new At(t,s,(0,A.b)(n.center),n,0===i.childCount,e.points,e.rgb,e.attributes,e.pointIdFilterMap)}getUsedMemory(){let t=0;return this._renderer.forEachNode(e=>{t+=We,t+=(0,w.Xw)(e.coordinates);for(const i of e.attributes){const s=i.values;(0,w.eP)(s.buffer)&&(t+=(0,w.Xw)(s))}}),t}getUnloadedMemory(){const t=this._renderedNodes.size;if(t<4)return 0;const e=[...this._renderedNodes].reduce((s,n)=>s+this._index.getNode(n).vertexCount);let i=this._loadingNodes.size;for(let s=0;st+this._index.getNode(e).vertexCount,0),maximumNumberOfFeatures:this.maximumPointCount,totalNumberOfFeatures:-1,core:null,"Loading Nodes":this._loadingNodes.size,"Index Queue":this._indexQueue.length,"Work Queue":this._workQueue.length,"Idle Queue":this._idleQueue.length}}get test(){return{index:this._index,visibleNodes:this._renderedNodes}}};(0,c._)([(0,E.Cb)()],N.prototype,"layer",void 0),(0,c._)([(0,E.Cb)()],N.prototype,"baseUrl",null),(0,c._)([(0,E.Cb)()],N.prototype,"pointScale",null),(0,c._)([(0,E.Cb)()],N.prototype,"useRealWorldSymbolSizes",null),(0,c._)([(0,E.Cb)()],N.prototype,"pointSize",null),(0,c._)([(0,E.Cb)()],N.prototype,"inverseDensity",null),(0,c._)([(0,E.Cb)()],N.prototype,"maximumPointCount",void 0),(0,c._)([(0,E.Cb)({readOnly:!0})],N.prototype,"availableFields",null),(0,c._)([(0,E.Cb)({readOnly:!0})],N.prototype,"_clippingBox",null),(0,c._)([(0,E.Cb)({readOnly:!0})],N.prototype,"_elevationOffset",null),(0,c._)([(0,E.Cb)({type:Boolean})],N.prototype,"slicePlaneEnabled",void 0),(0,c._)([(0,E.Cb)()],N.prototype,"updating",void 0),(0,c._)([(0,E.Cb)(Tt.q)],N.prototype,"updatingProgress",void 0),(0,c._)([(0,E.Cb)({readOnly:!0})],N.prototype,"updatingProgressValue",null),N=(0,c._)([(0,S.j)("esri.views.3d.layers.PointCloudLayerView3D")],N);const jt=N,tt=(0,ve.Ue)(),We=160},45611:(me,Z,r)=>{r.d(Z,{Z:()=>C});var g=r(17626),c=r(14517),j=r(61885),K=r(80542),F=r(61996),u=r(63290),b=r(62208),v=r(60330),M=r(77712),E=(r(85931),r(90912),r(76898));let P=class extends((0,K.p)((0,F.IG)((0,v.v)(j.Z.EventedMixin(c.Z))))){constructor(S){super(S),this.layer=null,this.parent=null}initialize(){this.when().catch(S=>{if("layerview:create-error"!==S.name){const h=this.layer&&this.layer.id||"no id",A=this.layer&&this.layer.title||"no title";u.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${A}', id: '${h}')`,S)}})}get fullOpacity(){return(0,b.Pt)(this.get("layer.opacity"),1)*(0,b.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(S){this._overrideIfSome("visible",S)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const S=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(S.viewNotReady=!0),this.layer&&this.layer.loaded||(S.layerNotLoaded=!0),this.visible||(S.layerInvisible=!0),S}isUpdating(){return!1}};(0,g._)([(0,M.Cb)()],P.prototype,"fullOpacity",null),(0,g._)([(0,M.Cb)()],P.prototype,"layer",void 0),(0,g._)([(0,M.Cb)()],P.prototype,"parent",void 0),(0,g._)([(0,M.Cb)({readOnly:!0})],P.prototype,"suspended",null),(0,g._)([(0,M.Cb)({readOnly:!0})],P.prototype,"suspendInfo",null),(0,g._)([(0,M.Cb)({readOnly:!0})],P.prototype,"legendEnabled",null),(0,g._)([(0,M.Cb)({type:Boolean,readOnly:!0})],P.prototype,"updating",null),(0,g._)([(0,M.Cb)({readOnly:!0})],P.prototype,"updatingProgress",null),(0,g._)([(0,M.Cb)()],P.prototype,"visible",null),(0,g._)([(0,M.Cb)()],P.prototype,"view",void 0),P=(0,g._)([(0,E.j)("esri.views.layers.LayerView")],P);const C=P},10023:(me,Z,r)=>{r.d(Z,{V:()=>u,e:()=>K});var g=r(15861),c=r(62208),j=r(36630);function K(b){return F.apply(this,arguments)}function F(){return(F=(0,g.Z)(function*(b,v=b.popupTemplate){if((0,c.Wi)(v))return[];const M=yield v.getRequiredFields(b.fieldsIndex),{lastEditInfoEnabled:w}=v,{objectIdField:H,typeIdField:E,globalIdField:P,relationships:C}=b;if(M.includes("*"))return["*"];const S=w?yield(0,j.CH)(b):[],h=(0,j.Q0)(b.fieldsIndex,[...M,...S]);return E&&h.push(E),h&&H&&b.fieldsIndex.has(H)&&!h.includes(H)&&h.push(H),h&&P&&b.fieldsIndex.has(P)&&!h.includes(P)&&h.push(P),C&&C.forEach(A=>{const{keyField:k}=A;h&&k&&b.fieldsIndex.has(k)&&!h.includes(k)&&h.push(k)}),h})).apply(this,arguments)}function u(b,v){return b.popupTemplate?b.popupTemplate:(0,c.pC)(v)&&v.defaultPopupTemplateEnabled&&(0,c.pC)(b.defaultPopupTemplate)?b.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1561.eeba4508f794699b.js b/apps/n/porrtal-io-app/public/angular/1561.eeba4508f794699b.js deleted file mode 100644 index 7cc7f8b9..00000000 --- a/apps/n/porrtal-io-app/public/angular/1561.eeba4508f794699b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1561],{14259:(K,j,i)=>{i.d(j,{q:()=>A});var p,W,L={exports:{}};p=L,void 0!==(W=function(){function T(o,_,u,a,c){for(;a>u;){if(a-u>600){var d=a-u+1,E=_-u+1,g=Math.log(d),v=.5*Math.exp(2*g/3),h=.5*Math.sqrt(g*v*(d-v)/d)*(E-d/2<0?-1:1);T(o,_,Math.max(u,Math.floor(_-E*v/d+h)),Math.min(a,Math.floor(_+(d-E)*v/d+h)),c)}var y=o[_],D=u,s=a;for(R(o,u,_),c(o[a],y)>0&&R(o,u,a);D0;)s--}0===c(o[u],y)?R(o,u,s):R(o,++s,a),s<=_&&(u=s+1),_<=s&&(a=s-1)}}function R(o,_,u){var a=o[_];o[_]=o[u],o[u]=a}function P(o,_){return o<_?-1:o>_?1:0}return function I(o,_,u,a,c){T(o,_,u||0,a||o.length-1,c||P)}}())&&(p.exports=W);const A=L.exports},77044:(K,j,i)=>{i.d(j,{Y:()=>W});var p=i(62208);function m(o,_){return o?_?4:3:_?3:2}function W(o,_,u,a,c){if((0,p.Wi)(_)||!_.lengths.length)return null;const d="upperLeft"===c?.originPosition?-1:1;o.lengths.length&&(o.lengths.length=0),o.coords.length&&(o.coords.length=0);const E=o.coords,g=[],v=u?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:h,coords:y}=_,D=m(u,a);let s=0;for(const r of h){const l=L(v,y,s,r,u,a,d);l&&g.push(l),s+=r*D}if(g.sort((r,l)=>{let f=d*r[2]-d*l[2];return 0===f&&u&&(f=r[4]-l[4]),f}),g.length){let r=6*g[0][2];E[0]=g[0][0]/r,E[1]=g[0][1]/r,u&&(r=6*g[0][4],E[2]=0!==r?g[0][3]/r:0),(E[0]v[1]||E[1]v[3]||u&&(E[2]v[5]))&&(E.length=0)}if(!E.length){const r=_.lengths[0]?function A(o,_,u,a,c){const d=m(a,c);let E=_,g=_+d,v=0,h=0,y=0,D=0;for(let s=0,r=u-1;s0?a?[h/v,y/v,D/v]:[h/v,y/v]:u>0?a?[o[_],o[_+1],o[_+2]]:[o[_],o[_+1]]:null}(y,0,h[0],u,a):null;if(!r)return null;E[0]=r[0],E[1]=r[1],u&&r.length>2&&(E[2]=r[2])}return o}function L(o,_,u,a,c,d,E=1){const g=m(c,d);let v=u,h=u+g,y=0,D=0,s=0,r=0,l=0;for(let O=0,b=a-1;Oo[1]&&(o[1]=M),Co[3]&&(o[3]=C),c&&(Uo[5]&&(o[5]=U))}if(r*E>0&&(r*=-1),l*E>0&&(l*=-1),!r)return null;const f=[y,D,.5*r];return c&&(f[3]=s,f[4]=.5*l),f}function I(o,_,u,a){const c=u-o,d=a-_;return Math.sqrt(c*c+d*d)}function T(o,_,u,a,c,d){const E=a-o,g=c-_,v=d-u;return Math.sqrt(E*E+g*g+v*v)}function R(o,_,u,a){return[o+.5*(u-o),_+.5*(a-_)]}function P(o,_,u,a,c,d){return[o+.5*(a-o),_+.5*(c-_),u+.5*(d-u)]}},60507:(K,j,i)=>{i.d(j,{BK:()=>D,Jn:()=>T,RL:()=>P,VW:()=>I,W_:()=>v,jG:()=>h,tq:()=>E,vQ:()=>a,zx:()=>c});var p=i(62208),m=i(29505);function W(s){return s?h:y}function I(s,r){return function L(s,r){return(0,p.Wi)(r)||!r.mode?W(s).mode:r.mode}(!!(0,p.pC)(s)&&s.hasZ,r)}function T(s,r){return function A(s,r){return(0,p.pC)(r)?r:W(s)}(!!(0,p.pC)(s)&&s.hasZ,r)}function P(s){const r=function _(s){return s.layer&&"elevationInfo"in s.layer?s.layer.elevationInfo:null}(s),l=I(s.geometry,r);return{mode:l,offset:(0,p.pC)(r)&&"on-the-ground"!==l?(0,p.Pt)(r.offset,0)*(0,m.Z7)((0,p.Pt)(r.unit,"meters")):0}}function a(s,r,l,f=null){return d(s,r.x,r.y,r.hasZ?r.z:0,r.spatialReference,l,f)}function c(s,r,l,f,O=null){return d(s,r[0],r[1],r.length>2?r[2]:0,l,f,O)}function d(s,r,l,f,O,b,M=null){if((0,p.Wi)(b))return;const C=(0,p.pC)(M)?M.mode:"absolute-height";if("on-the-ground"===C)return 0;const{absoluteZ:U}=E(r,l,f,O,s,b);return function g(s,r,l,f,O,b,M,C){const U=(0,p.pC)(M)&&(0,p.pC)(M.offset)?M.offset:0;switch(C){case"absolute-height":return s-U;case"relative-to-ground":return s-((0,p.Pt)(b.elevationProvider.getElevation(r,l,f,O,"ground"),0)+U);case"relative-to-scene":return s-((0,p.Pt)(b.elevationProvider.getElevation(r,l,f,O,"scene"),0)+U)}}(U,r,l,f,O,s,M,C)}function E(s,r,l,f,O,b){const M=(0,p.pC)(b.offset)?b.offset:0;switch(b.mode){case"absolute-height":return{absoluteZ:l+M,elevation:0};case"on-the-ground":{const C=(0,p.Pt)(O.elevationProvider.getElevation(s,r,0,f,"ground"),0);return{absoluteZ:C,elevation:C}}case"relative-to-ground":{const C=(0,p.Pt)(O.elevationProvider.getElevation(s,r,l,f,"ground"),0);return{absoluteZ:l+C+M,elevation:C}}case"relative-to-scene":{const C=(0,p.Pt)(O.elevationProvider.getElevation(s,r,l,f,"scene"),0);return{absoluteZ:l+C+M,elevation:C}}}}function v(s,r){if((0,p.Wi)(r))return!1;const{mode:l}=r;return(0,p.pC)(l)&&("scene"===s&&"relative-to-scene"===l||"ground"===s&&"absolute-height"!==l)}const h={mode:"absolute-height",offset:0},y={mode:"on-the-ground",offset:null};function D(s,r){return s===r||(0,p.pC)(s)&&(0,p.pC)(r)&&s.mode===r.mode&&s.offset===r.offset}},62359:(K,j,i)=>{i.r(j),i.d(j,{default:()=>v});var p=i(15861),m=i(17626),W=i(26584),L=i(62208),A=i(32917),I=i(77712),P=(i(85931),i(90912),i(76898)),o=i(19702),_=i(13191),u=i(32400),a=i(46348),c=i(89765),d=i(42743),E=i(45611);let g=class extends((0,o.A)(E.Z)){constructor(){super(...arguments),this.type="graphics-3d",this.symbologySnappingSupported=!0,this.slicePlaneEnabled=!1,this.fullExtentInLocalViewSpatialReference=null}initialize(){this._set("processor",new u.D({owner:this,scaleVisibilityEnabled:!0,frustumVisibilityEnabled:!0})),this.addResolvingPromise(this.processor.initializePromise),this.handles.add(this.layer.on("graphic-update",h=>this.processor.graphicsCore.graphicUpdateHandler(h))),this.addResolvingPromise((0,c.E)(this).then(h=>this.fullExtentInLocalViewSpatialReference=h)),this.layer.internal?this.notifyChange("updating"):this.handles.add((0,A.gx)(()=>this.view?.basemapTerrain?.ready,()=>()=>this.notifyChange("updating"),{once:!0}))}destroy(){this.handles.removeAll(),this.updatingHandles.removeAll(),this._set("processor",(0,L.SC)(this.processor))}get loadedGraphics(){return this.layer.graphics}get legendEnabled(){return this.canResume()&&!this.processor?.frustumVisibilitySuspended}getSuspendInfo(){const h=super.getSuspendInfo();return h.outsideScaleRange=this.processor?.scaleVisibilitySuspended??!1,h.outsideOfView=this.processor?.frustumVisibilitySuspended??!1,h}fetchPopupFeatures(h,y){return(0,p.Z)(function*(){return(0,L.pC)(y)?y.clientGraphics:null})()}getHit(h){return this.processor.getHit(h)}whenGraphicBounds(h,y){return this.processor.whenGraphicBounds(h,y)}computeAttachmentOrigin(h,y){return this.processor?.computeAttachmentOrigin(h,y)}getSymbolLayerSize(h,y){return this.processor.getSymbolLayerSize(h,y)}queryGraphics(){return Promise.resolve(this.loadedGraphics)}maskOccludee(h){return this.processor.maskOccludee(h)}highlight(h){return this.processor.highlight(h)}elevationAlignPointsInFeatures(h,y){var D=this;return(0,p.Z)(function*(){const{processor:s}=D;if((0,L.Wi)(s))throw new W.Z("graphicslayerview3d:missing-processor","A Graphics3D processor is needed to resolve graphics elevation.");return(0,_.W)(D.view,D.layer,r=>"number"==typeof r?s.graphics3DGraphics.get(r):null,h,y)})()}queryForSymbologySnapping(h,y){var D=this;return(0,p.Z)(function*(){return(0,a.c)(D.processor,h,y)})()}get updatePolicy(){return this.processor?.graphicsCore.effectiveUpdatePolicy||d.jq.SYNC}canResume(){return super.canResume()&&!this.processor?.scaleVisibilitySuspended}isUpdating(){return!(!this.processor?.updating&&(this.layer.internal||this.view?.basemapTerrain?.ready))}get performanceInfo(){return{displayedNumberOfFeatures:this.loadedGraphics.length,maximumNumberOfFeatures:-1,totalNumberOfFeatures:-1,nodes:0,core:null,updating:this.updating,elevationUpdating:this.processor?.elevationAlignment.updating??!1,visibilityFrustum:!this.processor?.frustumVisibilitySuspended}}getUsedMemory(){return this.processor?.graphicsCore?.usedMemory??0}getUnloadedMemory(){return this.processor?.graphicsCore?.unprocessedMemoryEstimate}ignoresMemoryFactor(){return!0}};(0,m._)([(0,I.Cb)()],g.prototype,"loadedGraphics",null),(0,m._)([(0,I.Cb)({readOnly:!0})],g.prototype,"legendEnabled",null),(0,m._)([(0,I.Cb)()],g.prototype,"layer",void 0),(0,m._)([(0,I.Cb)({readOnly:!0})],g.prototype,"processor",void 0),(0,m._)([(0,I.Cb)({type:Boolean})],g.prototype,"slicePlaneEnabled",void 0),g=(0,m._)([(0,P.j)("esri.views.3d.layers.GraphicsLayerView3D")],g);const v=g},19702:(K,j,i)=>{i.d(j,{A:()=>_});var p=i(15861),m=i(17626),W=i(54024),L=i(10699),A=i(32917),I=i(77712),P=(i(85931),i(90912),i(76898)),o=i(36947);const _=u=>{let a=class extends u{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(c){super.postscript(c),(0,o.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var c=this;return(0,p.Z)(function*(){const d=new AbortController,E=d.signal;c.handles.add((0,W.kB)(()=>d.abort())),yield(0,A.N1)(()=>c.view.defaultsFromMap?.heightModelInfoReady,E),(0,L.k_)(E);const g=(0,o.Wt)(c.layer,c.view.heightModelInfo,c.supportsHeightUnitConversion);if(g)throw g})()}canResume(){const c=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!c||!c.minScale||!c.maxScale||c.minScale>=c.maxScale)}getSuspendInfo(){const c=super.getSuspendInfo(),d=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return d&&d.minScale&&d.maxScale&&d.minScale{i.d(j,{W:()=>_});var p=i(15861),W=(i(29132),i(62208)),L=i(10699),A=i(38114),I=i(60507),T=i(81468),R=i(79112),P=i(74746),o=i(65234);function _(E,g,v,h,y){return u.apply(this,arguments)}function u(){return(u=(0,p.Z)(function*(E,g,v,h,y){const{elevationProvider:D,renderCoordsHelper:s,spatialReference:r}=E,{elevationInfo:l}=g,f=(0,P.WI)(l,!0),O=yield(0,P.kr)(f,r,y);(0,L.k_)(y);const b=[],M=new Set,C=new Set;for(const{objectId:U,points:B}of h){const N=v(U);if((0,W.Wi)(N)){for(const S of B)b.push(S[2]);M.add(U)}else{N.isDraped&&C.add(U),a.setFromElevationInfo((0,I.Jn)(N.graphic.geometry,l)),a.updateFeatureExpressionInfoContext(O,N.graphic,g),c.spatialReference=E.spatialReference;for(const{x:S,y:G,z:V}of B)c.x=S,c.y=G,c.z=V??0,(0,T.qZ)(c,D,a,s,d),b.push(d.z)}}return{elevations:b,drapedObjectIds:C,failedObjectIds:M}})).apply(this,arguments)}const a=new R.o,c=(0,A.Tx)(0,0,0,o.Z.WGS84),d=new T.Lm},46348:(K,j,i)=>{i.d(j,{c:()=>A});var p=i(15861),m=i(62208),W=i(10699),L=i(46679);function A(R,P,o){return I.apply(this,arguments)}function I(){return I=(0,p.Z)(function*(R,P,o){if((0,m.Wi)(R)||0===P.candidates.length)return T;const _=R.graphics3DGraphicsByObjectID??R.graphics3DGraphics,u=[],a=[],{renderer:c}=R,d=(0,m.pC)(c)&&"arcadeRequired"in c&&c.arcadeRequired?(0,L.LC)():null,E=function(){var s=(0,p.Z)(function*(r,{graphic:l,graphics3DSymbol:f}){const O=yield d,b=yield R.getRenderingInfoAsync(l,c,O,{signal:o});return(0,m.Wi)(b)?[]:f.queryForSnapping(r,v,b,o)});return function(l,f){return s.apply(this,arguments)}}(),{candidates:g,spatialReference:v}=P;for(let s=0;s{i.d(j,{E:()=>L});var p=i(62208),m=i(46367),W=i(35082);function L(A){const I=A.view.spatialReference,T=A.layer.fullExtent,R=(0,p.pC)(T)&&T.spatialReference;if((0,p.Wi)(T)||!R)return Promise.resolve(null);if(R.equals(I))return Promise.resolve(T.clone());const P=(0,m.iV)(T,I);return(0,p.pC)(P)?Promise.resolve(P):A.view.state.isLocal?(0,W.projectGeometry)(T,I,A.layer.portalItem).then(o=>!A.destroyed&&o?o:void 0).catch(()=>null):Promise.resolve(null)}},45611:(K,j,i)=>{i.d(j,{Z:()=>c});var p=i(17626),m=i(14517),W=i(61885),L=i(80542),A=i(61996),I=i(63290),T=i(62208),R=i(60330),P=i(77712),u=(i(85931),i(90912),i(76898));let a=class extends((0,L.p)((0,A.IG)((0,R.v)(W.Z.EventedMixin(m.Z))))){constructor(d){super(d),this.layer=null,this.parent=null}initialize(){this.when().catch(d=>{if("layerview:create-error"!==d.name){const E=this.layer&&this.layer.id||"no id",g=this.layer&&this.layer.title||"no title";I.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${g}', id: '${E}')`,d)}})}get fullOpacity(){return(0,T.Pt)(this.get("layer.opacity"),1)*(0,T.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(d){this._overrideIfSome("visible",d)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const d=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(d.viewNotReady=!0),this.layer&&this.layer.loaded||(d.layerNotLoaded=!0),this.visible||(d.layerInvisible=!0),d}isUpdating(){return!1}};(0,p._)([(0,P.Cb)()],a.prototype,"fullOpacity",null),(0,p._)([(0,P.Cb)()],a.prototype,"layer",void 0),(0,p._)([(0,P.Cb)()],a.prototype,"parent",void 0),(0,p._)([(0,P.Cb)({readOnly:!0})],a.prototype,"suspended",null),(0,p._)([(0,P.Cb)({readOnly:!0})],a.prototype,"suspendInfo",null),(0,p._)([(0,P.Cb)({readOnly:!0})],a.prototype,"legendEnabled",null),(0,p._)([(0,P.Cb)({type:Boolean,readOnly:!0})],a.prototype,"updating",null),(0,p._)([(0,P.Cb)({readOnly:!0})],a.prototype,"updatingProgress",null),(0,p._)([(0,P.Cb)()],a.prototype,"visible",null),(0,p._)([(0,P.Cb)()],a.prototype,"view",void 0),a=(0,p._)([(0,u.j)("esri.views.layers.LayerView")],a);const c=a}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1563.05f0bd0eb172cafd.js b/apps/n/porrtal-io-app/public/angular/1563.05f0bd0eb172cafd.js deleted file mode 100644 index cd23a627..00000000 --- a/apps/n/porrtal-io-app/public/angular/1563.05f0bd0eb172cafd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1563],{81563:(P,d,r)=>{r.r(d),r.d(d,{default:()=>g});var c=r(15861),l=r(2975),p=r(7184),f=r(25558),a=r(17827);class g{extract(e){return(0,c.Z)(function*(){const t=u(e),s=(0,a.Kl)(t),i=[t.data.buffer];return{result:h(s,i),transferList:i}})()}extractComponentsEdgeLocations(e){return(0,c.Z)(function*(){const t=u(e),s=(0,a.kY)(t.data,t.skipDeduplicate,t.indices,t.indicesLength),i=(0,f.n)(s,I,_),o=[];return{result:(0,l.HL)(i.regular.instancesData,o),transferList:o}})()}extractEdgeLocations(e){return(0,c.Z)(function*(){const t=u(e),s=(0,a.kY)(t.data,t.skipDeduplicate,t.indices,t.indicesLength),i=(0,f.n)(s,E,_),o=[];return{result:(0,l.HL)(i.regular.instancesData,o),transferList:o}})()}}function u(n){return{data:p.tf.createView(n.dataBuffer),indices:"Uint32Array"===n.indicesType?new Uint32Array(n.indices):"Uint16Array"===n.indicesType?new Uint16Array(n.indices):n.indices,indicesLength:n.indicesLength,writerSettings:n.writerSettings,skipDeduplicate:n.skipDeduplicate}}function h(n,e){return e.push(n.regular.lodInfo.lengths.buffer),e.push(n.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:(0,l.HL)(n.regular.instancesData,e),lodInfo:{lengths:n.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:(0,l.HL)(n.silhouette.instancesData,e),lodInfo:{lengths:n.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:n.averageEdgeLength}}const E=new class L{allocate(e){return a.Yr.createBuffer(e)}trim(e,t){return e.slice(0,t)}write(e,t,s){e.position0.setVec(t,s.position0),e.position1.setVec(t,s.position1)}},I=new class D{allocate(e){return a.n_.createBuffer(e)}trim(e,t){return e.slice(0,t)}write(e,t,s){e.position0.setVec(t,s.position0),e.position1.setVec(t,s.position1),e.componentIndex.set(t,s.componentIndex)}},_={allocate:()=>null,write:()=>{},trim:()=>null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/157.88b7fd3a7d3af51a.js b/apps/n/porrtal-io-app/public/angular/157.88b7fd3a7d3af51a.js deleted file mode 100644 index d745c745..00000000 --- a/apps/n/porrtal-io-app/public/angular/157.88b7fd3a7d3af51a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[157,587],{52489:(G,P,s)=>{s.d(P,{D:()=>u});var c=s(22558);function u(_){_&&_.writtenProperties&&_.writtenProperties.forEach(({target:y,propName:x,newOrigin:O})=>{(0,c.l)(y)&&O&&y.originOf(x)!==O&&y.updateOrigin(x,O)})}},22558:(G,P,s)=>{function c(u){return u&&"getAtOrigin"in u&&"originOf"in u}s.d(P,{l:()=>c})},10157:(G,P,s)=>{s.d(P,{xp:()=>J,Vt:()=>te});var c=s(15861),u=s(17626),_=s(84792),y=s(26584),O=(s(8314),s(63290)),R=s(62208),U=s(10699),g=s(21726),m=s(77712),E=(s(85931),s(90912),s(68653)),N=s(76898),A=s(99433),b=s(52489),w=s(2004),C=s(79334),B=s(65234),j=s(38305),a=s(13812),p=s(60595),h=s(84687),f=s(55463),T=s(59213),V=s(35948),M=s(10587);function K(l,i,r){return D.apply(this,arguments)}function D(){return(D=(0,c.Z)(function*(l,i,r){if(!i||!i.resources)return;const e=i.portalItem===l.portalItem?new Set(l.paths):new Set;l.paths.length=0,l.portalItem=i.portalItem;const t=new Set(i.resources.toKeep.map(d=>d.resource.path)),o=new Set,n=[];t.forEach(d=>{e.delete(d),l.paths.push(d)});for(const d of i.resources.toUpdate)if(e.delete(d.resource.path),t.has(d.resource.path)||o.has(d.resource.path)){const{resource:Q,content:ne,finish:oe,error:se}=d,ee=(0,M.getSiblingOfSameTypeI)(Q,(0,V.D)());l.paths.push(ee.path),n.push(S({resource:ee,content:ne,compress:d.compress,finish:oe,error:se},r))}else l.paths.push(d.resource.path),n.push(X(d,r)),o.add(d.resource.path);for(const d of i.resources.toAdd)n.push(S(d,r)),l.paths.push(d.resource.path);if(e.forEach(d=>{const Q=i.portalItem.resourceFromPath(d);n.push(Q.portalItem.removeResource(Q).catch(()=>{}))}),0===n.length)return;const v=yield(0,U.as)(n);(0,U.k_)(r);const I=v.filter(d=>"error"in d).map(d=>d.error);if(I.length>0)throw new y.Z("save:resources","Failed to save one or more resources",{errors:I})})).apply(this,arguments)}function S(l,i){return W.apply(this,arguments)}function W(){return(W=(0,c.Z)(function*(l,i){const r={...(0,R.pC)(i)?i:{},compress:l.compress},e=yield(0,T.q6)(l.resource.portalItem.addResource(l.resource,l.content,r));if(!0!==e.ok)throw l.error&&l.error(e.error),e.error;l.finish&&l.finish(l.resource)})).apply(this,arguments)}function X(l,i){return z.apply(this,arguments)}function z(){return(z=(0,c.Z)(function*(l,i){const r=yield(0,T.q6)(l.resource.update(l.content,i));if(!0!==r.ok)throw l.error(r.error),r.error;l.finish(l.resource)})).apply(this,arguments)}const k="esri.layers.mixins.SceneService",F=O.Z.getLogger(k),te=l=>{let i=class extends l{constructor(){var r;super(...arguments),r=this,this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.indexInfo=null,this._debouncedSaveOperations=(0,U.Ds)(function(){var e=(0,c.Z)(function*(t,o,n){switch(t){case J.SAVE:return r._save(o);case J.SAVE_AS:return r._saveAs(n,o)}});return function(t,o,n){return e.apply(this,arguments)}}())}readSpatialReference(r,e){return this._readSpatialReference(e)}_readSpatialReference(r){if(null!=r.spatialReference)return B.Z.fromJSON(r.spatialReference);{const e=r.store,t=e.indexCRS||e.geographicCRS,o=t&&parseInt(t.substring(t.lastIndexOf("/")+1,t.length),10);return null!=o?new B.Z(o):null}}readFullExtent(r,e,t){if(null!=r&&"object"==typeof r){const v=null==r.spatialReference?{...r,spatialReference:this._readSpatialReference(e)}:r;return w.Z.fromJSON(v,t)}const o=e.store,n=this._readSpatialReference(e);return null==n||null==o||null==o.extent||!Array.isArray(o.extent)||o.extent.some(v=>v=2&&(e.major=parseInt(t[0],10),e.minor=parseInt(t[1],10)),e}readVersion(r,e){const t=e.store,o=null!=t.version?t.version.toString():"";return this.parseVersionString(o)}readTitlePortalItem(r){return"item-title"!==this.sublayerTitleMode?void 0:r}readTitleService(r,e){const t=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return(0,j.a7)(this.url,e.name);let o=e.name;if(!o&&this.url){const n=(0,j.Qc)(this.url);(0,R.pC)(n)&&(o=n.title)}return"item-title-and-service-name"===this.sublayerTitleMode&&t&&(o=t+" - "+o),(0,j.ld)(o)}set url(r){const e=(0,j.XG)({layer:this,url:r,nonStandardUrlAllowed:!1,logger:F});this._set("url",e.url),null!=e.layerId&&this._set("layerId",e.layerId)}writeUrl(r,e,t,o){(0,j.wH)(this,r,"layers",e,o)}get parsedUrl(){const r=this._get("url"),e=(0,g.mN)(r);return null!=this.layerId&&(e.path=`${e.path}/layers/${this.layerId}`),e}_fetchIndexAndUpdateExtent(r,e){var t=this;return(0,c.Z)(function*(){t.indexInfo=(0,p.T)(t.parsedUrl.path,t.rootNode,r,t.apiKey,F,e),null==t.fullExtent||t.fullExtent.hasZ||t._updateExtent(yield t.indexInfo)})()}_updateExtent(r){if("page"===r?.type){const t=r.rootPage?.nodes?.[r.rootIndex%r.pageSize];if(null==t||null==t.obb||null==t.obb.center||null==t.obb.halfSize)throw new y.Z("sceneservice:invalid-node-page","Invalid node page.");if(t.obb.center[0]0)return t.data.layers[0].id})()}_fetchServiceLayer(r){var e=this;return(0,c.Z)(function*(){const t=yield(0,_.default)(e.parsedUrl?.path??"",{query:{f:"json",token:e.apiKey},responseType:"json",signal:r});t.ssl&&(e.url=e.url.replace(/^http:/i,"https:"));let o=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(o=!0),o)return e._fetchVoxelServiceLayer();const n=t.data;e.read(n,{origin:"service",url:e.parsedUrl}),e.validateLayer(n)})()}_fetchVoxelServiceLayer(r){var e=this;return(0,c.Z)(function*(){const t=(yield(0,_.default)(e.parsedUrl?.path+"/layer",{query:{f:"json",token:e.apiKey},responseType:"json",signal:r})).data;e.read(t,{origin:"service",url:e.parsedUrl}),e.validateLayer(t)})()}_ensureLoadBeforeSave(){var r=this;return(0,c.Z)(function*(){yield r.load(),"beforeSave"in r&&"function"==typeof r.beforeSave&&(yield r.beforeSave())})()}validateLayer(r){}_updateTypeKeywords(r,e,t){r.typeKeywords||(r.typeKeywords=[]);const o=e.getTypeKeywords();for(const n of o)r.typeKeywords.push(n);r.typeKeywords&&(r.typeKeywords=r.typeKeywords.filter((n,v,I)=>I.indexOf(n)===v),t===$.newItem&&(r.typeKeywords=r.typeKeywords.filter(n=>"Hosted Service"!==n)))}_saveAs(r,e){var t=this;return(0,c.Z)(function*(){const o={...q,...e};let n=f.default.from(r);n||(F.error("_saveAs(): requires a portal item parameter"),yield Promise.reject(new y.Z("sceneservice:portal-item-required","_saveAs() requires a portal item to save to"))),n.id&&(n=n.clone(),n.id=null);const v=n.portal||h.Z.getDefault();yield t._ensureLoadBeforeSave(),n.type=H,n.portal=v;const I={origin:"portal-item",url:null,messages:[],portal:v,portalItem:n,writtenProperties:[],blockedRelativeUrls:[],resources:{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}},d={layers:[t.write({},I)]};return yield Promise.all(I.resources?.pendingOperations??[]),yield t._validateAgainstJSONSchema(d,I,o),n.url=t.url,n.title||(n.title=t.title),t._updateTypeKeywords(n,o,$.newItem),yield v._signIn(),yield v.user?.addItem({item:n,folder:o&&o.folder,data:d}),yield K(t.resourceReferences,I,null),t.portalItem=n,(0,b.D)(I),I.portalItem=n,n})()}_save(r){var e=this;return(0,c.Z)(function*(){const t={...q,...r};if(!e.portalItem)throw F.error("_save(): requires the .portalItem property to be set"),new y.Z("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(e.portalItem.type!==H)throw F.error("_save(): Non-matching portal item type. Got "+e.portalItem.type+", expected "+H),new y.Z("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${H}"`);yield e._ensureLoadBeforeSave();const o={origin:"portal-item",url:e.portalItem.itemUrl&&(0,g.mN)(e.portalItem.itemUrl),messages:[],portal:e.portalItem.portal||h.Z.getDefault(),portalItem:e.portalItem,writtenProperties:[],blockedRelativeUrls:[],resources:{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}},n={layers:[e.write({},o)]};return yield Promise.all(o.resources?.pendingOperations??[]),yield e._validateAgainstJSONSchema(n,o,t),e.portalItem.url=e.url,e.portalItem.title||(e.portalItem.title=e.title),e._updateTypeKeywords(e.portalItem,t,$.existingItem),yield e.portalItem.update({data:n}),yield K(e.resourceReferences,o,null),(0,b.D)(o),e.portalItem})()}_validateAgainstJSONSchema(r,e,t){return(0,c.Z)(function*(){let o=e.messages?.filter(n=>"error"===n.type).map(n=>new y.Z(n.name,n.message,n.details))??[];if(t&&t.validationOptions?.ignoreUnsupported&&(o=o.filter(n=>"layer:unsupported"!==n.name&&"symbol:unsupported"!==n.name&&"symbol-layer:unsupported"!==n.name&&"property:unsupported"!==n.name&&"url:unsupported"!==n.name&&"scenemodification:unsupported"!==n.name)),t.validationOptions?.enabled||re){const n=(yield s.e(5496).then(s.bind(s,15496))).validate(r,t.portalItemLayerType);if(n.length>0){const v=`Layer item did not validate:\n${n.join("\n")}`;if(F.error(`_validateAgainstJSONSchema(): ${v}`),"throw"===t.validationOptions?.failPolicy){const I=n.map(d=>new y.Z("sceneservice:schema-validation",d)).concat(o);throw new y.Z("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{combined:I})}}}if(o.length>0)throw new y.Z("sceneservice:save","Failed to save SceneService due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:o})})()}};return(0,u._)([(0,m.Cb)(a.id)],i.prototype,"id",void 0),(0,u._)([(0,m.Cb)({type:B.Z})],i.prototype,"spatialReference",void 0),(0,u._)([(0,E.r)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],i.prototype,"readSpatialReference",null),(0,u._)([(0,m.Cb)({type:w.Z})],i.prototype,"fullExtent",void 0),(0,u._)([(0,E.r)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],i.prototype,"readFullExtent",null),(0,u._)([(0,m.Cb)({readOnly:!0,type:C.Z})],i.prototype,"heightModelInfo",void 0),(0,u._)([(0,m.Cb)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],i.prototype,"minScale",void 0),(0,u._)([(0,m.Cb)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],i.prototype,"maxScale",void 0),(0,u._)([(0,m.Cb)({readOnly:!0})],i.prototype,"version",void 0),(0,u._)([(0,E.r)("version",["store.version"])],i.prototype,"readVersion",null),(0,u._)([(0,m.Cb)({type:String,json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,u._)([(0,m.Cb)({type:String,json:{read:!1}})],i.prototype,"sublayerTitleMode",void 0),(0,u._)([(0,m.Cb)({type:String})],i.prototype,"title",void 0),(0,u._)([(0,E.r)("portal-item","title")],i.prototype,"readTitlePortalItem",null),(0,u._)([(0,E.r)("service","title",["name"])],i.prototype,"readTitleService",null),(0,u._)([(0,m.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],i.prototype,"layerId",void 0),(0,u._)([(0,m.Cb)(a.HQ)],i.prototype,"url",null),(0,u._)([(0,A.c)("url")],i.prototype,"writeUrl",null),(0,u._)([(0,m.Cb)()],i.prototype,"parsedUrl",null),(0,u._)([(0,m.Cb)({readOnly:!0})],i.prototype,"store",void 0),(0,u._)([(0,m.Cb)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],i.prototype,"rootNode",void 0),i=(0,u._)([(0,N.j)(k)],i),i},Y=-1e38,re=!1;var $,l;(l=$||($={}))[l.existingItem=0]="existingItem",l[l.newItem=1]="newItem";const H="Scene Service",q={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}};var J;!function(l){l[l.SAVE=0]="SAVE",l[l.SAVE_AS=1]="SAVE_AS"}(J||(J={}))},60595:(G,P,s)=>{s.d(P,{T:()=>x});var c=s(15861),u=s(84792),_=s(26584),y=s(62208);function x(R,U,g,m,Z,L){return O.apply(this,arguments)}function O(){return(O=(0,c.Z)(function*(R,U,g,m,Z,L){let E=null;if((0,y.pC)(g)){const b=`${R}/nodepages/`,w=b+Math.floor(g.rootIndex/g.nodesPerPage);try{return{type:"page",rootPage:(yield(0,u.default)(w,{query:{f:"json",token:m},responseType:"json",signal:L})).data,rootIndex:g.rootIndex,pageSize:g.nodesPerPage,lodMetric:g.lodSelectionMetricType,urlPrefix:b}}catch(C){(0,y.pC)(Z)&&Z.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",w,C),E=C}}if(!U)return null;const N=`${R}/nodes/`,A=N+(U&&U.split("/").pop());try{return{type:"node",rootNode:(yield(0,u.default)(A,{query:{f:"json",token:m},responseType:"json",signal:L})).data,urlPrefix:N}}catch(b){throw new _.Z("sceneservice:root-node-missing","Root node missing.",{pageError:E,nodeError:b,url:A})}})).apply(this,arguments)}},10587:(G,P,s)=>{s.r(P),s.d(P,{addOrUpdateResource:()=>U,contentToBlob:()=>w,fetchResources:()=>O,getSiblingOfSameType:()=>B,getSiblingOfSameTypeI:()=>j,removeAllResources:()=>L,removeResource:()=>m,splitPrefixFileNameAndExtension:()=>A});var c=s(15861),u=s(84792),_=s(26584),y=s(62208),x=s(21726);function O(a){return R.apply(this,arguments)}function R(){return(R=(0,c.Z)(function*(a,p={},h){yield a.load(h);const f=(0,x.v_)(a.itemUrl,"resources"),{start:T=1,num:V=10,sortOrder:M="asc",sortField:K="created"}=p,D={query:{start:T,num:V,sortOrder:M,sortField:K,token:a.apiKey},signal:(0,y.U2)(h,"signal")},S=yield a.portal._request(f,D);return{total:S.total,nextStart:S.nextStart,resources:S.resources.map(({created:W,size:X,resource:z})=>({created:new Date(W),size:X,resource:a.resourceFromPath(z)}))}})).apply(this,arguments)}function U(a,p,h,f){return g.apply(this,arguments)}function g(){return(g=(0,c.Z)(function*(a,p,h,f){if(!a.hasPath())throw new _.Z(`portal-item-resource-${p}:invalid-path`,"Resource does not have a valid path");const T=a.portalItem;yield T.load(f);const V=(0,x.v_)(T.userItemUrl,"add"===p?"addResources":"updateResources"),[M,K]=N(a.path),D=yield w(h),S=new FormData;return M&&"."!==M&&S.append("resourcesPrefix",M),(0,y.pC)(f)&&f.compress&&S.append("compress","true"),S.append("fileName",K),S.append("file",D,K),S.append("f","json"),(0,y.pC)(f)&&f.access&&S.append("access",f.access),yield T.portal._request(V,{method:"post",body:S,signal:(0,y.U2)(f,"signal")}),a})).apply(this,arguments)}function m(a,p,h){return Z.apply(this,arguments)}function Z(){return(Z=(0,c.Z)(function*(a,p,h){if(!p.hasPath())throw new _.Z("portal-item-resources-remove:invalid-path","Resource does not have a valid path");yield a.load(h);const f=(0,x.v_)(a.userItemUrl,"removeResources");yield a.portal._request(f,{method:"post",query:{resource:p.path},signal:(0,y.U2)(h,"signal")}),p.portalItem=null})).apply(this,arguments)}function L(a,p){return E.apply(this,arguments)}function E(){return(E=(0,c.Z)(function*(a,p){yield a.load(p);const h=(0,x.v_)(a.userItemUrl,"removeResources");return a.portal._request(h,{method:"post",query:{deleteAll:!0},signal:(0,y.U2)(p,"signal")})})).apply(this,arguments)}function N(a){const p=a.lastIndexOf("/");return-1===p?[".",a]:[a.slice(0,p),a.slice(p+1)]}function A(a){const[p,h]=function b(a){const p=(0,x.Ml)(a);return(0,y.Wi)(p)?[a,""]:[a.slice(0,a.length-p.length-1),`.${p}`]}(a),[f,T]=N(p);return[f,T,h]}function w(a){return C.apply(this,arguments)}function C(){return(C=(0,c.Z)(function*(a){return a instanceof Blob?a:(yield(0,u.default)(a.url,{responseType:"blob"})).data})).apply(this,arguments)}function B(a,p){if(!a.hasPath())return null;const[h,,f]=A(a.path);return a.portalItem.resourceFromPath((0,x.v_)(h,p+f))}function j(a,p){if(!a.hasPath())return null;const[h,,f]=A(a.path);return a.portalItem.resourceFromPath((0,x.v_)(h,p+f))}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1591.56fb0a1f761e41ad.js b/apps/n/porrtal-io-app/public/angular/1591.56fb0a1f761e41ad.js deleted file mode 100644 index af4b7f36..00000000 --- a/apps/n/porrtal-io-app/public/angular/1591.56fb0a1f761e41ad.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1591],{71591:(d,n,o)=>{o.r(n),o.d(n,{default:()=>u});var l=o(17626),r=(o(29132),o(77712)),_=(o(85931),o(90912),o(76898)),i=o(72642),p=o(28678),e=o(72258),a=o(2584),v=o(55463),s=o(65234),c=o(2004);let t=class extends p.default{constructor(...y){super(...y),this.portalItem=null,this.isReference=null,this.tileInfo=new a.Z({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new i.Z({x:-20037508.342787,y:20037508.342787,spatialReference:s.Z.WebMercator}),spatialReference:s.Z.WebMercator,lods:[new e.Z({level:0,scale:591657527.591555,resolution:156543.033928}),new e.Z({level:1,scale:295828763.795777,resolution:78271.5169639999}),new e.Z({level:2,scale:147914381.897889,resolution:39135.7584820001}),new e.Z({level:3,scale:73957190.948944,resolution:19567.8792409999}),new e.Z({level:4,scale:36978595.474472,resolution:9783.93962049996}),new e.Z({level:5,scale:18489297.737236,resolution:4891.96981024998}),new e.Z({level:6,scale:9244648.868618,resolution:2445.98490512499}),new e.Z({level:7,scale:4622324.434309,resolution:1222.99245256249}),new e.Z({level:8,scale:2311162.217155,resolution:611.49622628138}),new e.Z({level:9,scale:1155581.108577,resolution:305.748113140558}),new e.Z({level:10,scale:577790.554289,resolution:152.874056570411}),new e.Z({level:11,scale:288895.277144,resolution:76.4370282850732}),new e.Z({level:12,scale:144447.638572,resolution:38.2185141425366}),new e.Z({level:13,scale:72223.819286,resolution:19.1092570712683}),new e.Z({level:14,scale:36111.909643,resolution:9.55462853563415}),new e.Z({level:15,scale:18055.954822,resolution:4.77731426794937}),new e.Z({level:16,scale:9027.977411,resolution:2.38865713397468}),new e.Z({level:17,scale:4513.988705,resolution:1.19432856685505}),new e.Z({level:18,scale:2256.994353,resolution:.597164283559817}),new e.Z({level:19,scale:1128.497176,resolution:.298582141647617})]}),this.subDomains=["a","b","c"],this.fullExtent=new c.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,s.Z.WebMercator),this.urlTemplate="https://{subDomain}.tile.openstreetmap.org/{level}/{col}/{row}.png",this.operationalLayerType="OpenStreetMap",this.type="open-street-map",this.copyright="Map data © OpenStreetMap contributors, CC-BY-SA"}get refreshInterval(){return 0}};(0,l._)([(0,r.Cb)({type:v.default,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"portalItem",void 0),(0,l._)([(0,r.Cb)({type:Boolean,json:{read:!1,write:!1}})],t.prototype,"isReference",void 0),(0,l._)([(0,r.Cb)({type:Number,readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"refreshInterval",null),(0,l._)([(0,r.Cb)({type:a.Z,json:{write:!1}})],t.prototype,"tileInfo",void 0),(0,l._)([(0,r.Cb)({type:["show","hide"]})],t.prototype,"listMode",void 0),(0,l._)([(0,r.Cb)({readOnly:!0,json:{read:!1,write:!1}})],t.prototype,"subDomains",void 0),(0,l._)([(0,r.Cb)({readOnly:!0,json:{read:!1,write:!1},nonNullable:!0})],t.prototype,"fullExtent",void 0),(0,l._)([(0,r.Cb)({readOnly:!0,json:{read:!1,write:!1}})],t.prototype,"urlTemplate",void 0),(0,l._)([(0,r.Cb)({type:["OpenStreetMap"]})],t.prototype,"operationalLayerType",void 0),(0,l._)([(0,r.Cb)({json:{read:!1}})],t.prototype,"type",void 0),(0,l._)([(0,r.Cb)({json:{read:!1,write:!1}})],t.prototype,"copyright",void 0),(0,l._)([(0,r.Cb)({json:{read:!1,write:!1}})],t.prototype,"wmtsInfo",void 0),t=(0,l._)([(0,_.j)("esri.layers.OpenStreetMapLayer")],t);const u=t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1799.1e83fbfc51178eb9.js b/apps/n/porrtal-io-app/public/angular/1799.1e83fbfc51178eb9.js deleted file mode 100644 index 84cbc1d0..00000000 --- a/apps/n/porrtal-io-app/public/angular/1799.1e83fbfc51178eb9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1799],{31799:(ut,k,O)=>{O.r(k),O.d(k,{scopeCss:()=>pt});const g="-shadowcsshost",b="-shadowcssslotted",y="-shadowcsscontext",R=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",j=new RegExp("("+g+R,"gim"),v=new RegExp("("+y+R,"gim"),N=new RegExp("("+b+R,"gim"),f=g+"-no-combinator",x=/-shadowcsshost-no-combinator([^\s]*)/,M=[/::shadow/g,/::content/g],m=/-shadowcsshost/gim,I=/:host/gim,K=/::slotted/gim,U=/:host-context/gim,Y=/\/\*\s*[\s\S]*?\*\//g,G=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,F=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,J=/([{}])/g,Q=/(^.*?[^\\])??((:+)(.*)|$)/,S="%BLOCK%",$=(t,e)=>{const o=Z(t);let s=0;return o.escapedString.replace(F,(...c)=>{const n=c[2];let a="",r=c[4],l="";r&&r.startsWith("{"+S)&&(a=o.blocks[s++],r=r.substring(S.length+1),l="{");const p=e({selector:n,content:a});return`${c[1]}${p.selector}${c[3]}${l}${p.content}${r}`})},Z=t=>{const e=t.split(J),o=[],s=[];let c=0,n=[];for(let r=0;r0?n.push(l):(n.length>0&&(s.push(n.join("")),o.push(S),n=[]),o.push(l)),"{"===l&&c++}return n.length>0&&(s.push(n.join("")),o.push(S)),{escapedString:o.join(""),blocks:s}},B=(t,e,o)=>t.replace(e,(...s)=>{if(s[2]){const c=s[2].split(","),n=[];for(let a=0;at+e.replace(g,"")+o,tt=(t,e,o)=>e.indexOf(g)>-1?E(t,e,o):t+e+o+", "+e+" "+t+o,W=(t,e)=>t.replace(Q,(o,s="",c,n="",a="")=>s+e+n+a),w=(t,e,o,s,c)=>$(t,n=>{let a=n.selector,r=n.content;return"@"!==n.selector[0]?a=((t,e,o,s)=>t.split(",").map(c=>s&&c.indexOf("."+s)>-1?c.trim():((t,e)=>!(t=>(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(e).test(t))(c,e)?((t,e,o)=>{const c="."+(e=e.replace(/\[is=([^\]]*)\]/g,(_,...h)=>h[0])),n=_=>{let h=_.trim();if(!h)return"";if(_.indexOf(f)>-1)h=((t,e,o)=>{if(m.lastIndex=0,m.test(t)){const s=`.${o}`;return t.replace(x,(c,n)=>W(n,s)).replace(m,s+" ")}return e+" "+t})(_,e,o);else{const C=_.replace(m,"");C.length>0&&(h=W(C,c))}return h},a=(t=>{const e=[];let o=0;return{content:(t=t.replace(/(\[[^\]]*\])/g,(n,a)=>{const r=`__ph-${o}__`;return e.push(a),o++,r})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(n,a,r)=>{const l=`__ph-${o}__`;return e.push(r),o++,a+l}),placeholders:e}})(t);let i,r="",l=0;const p=/( |>|\+|~(?!=))\s*/g;let u=!((t=a.content).indexOf(f)>-1);for(;null!==(i=p.exec(t));){const _=i[1],h=t.slice(l,i.index).trim();u=u||h.indexOf(f)>-1,r+=`${u?n(h):h} ${_} `,l=p.lastIndex}const H=t.substring(l);return u=u||H.indexOf(f)>-1,r+=u?n(H):H,((t,e)=>e.replace(/__ph-(\d+)__/g,(o,s)=>t[+s]))(a.placeholders,r)})(c,e,o).trim():c.trim()).join(", "))(n.selector,e,o,s):(n.selector.startsWith("@media")||n.selector.startsWith("@supports")||n.selector.startsWith("@page")||n.selector.startsWith("@document"))&&(r=w(n.content,e,o,s)),{selector:a.replace(/\s{2,}/g," ").trim(),content:r}}),pt=(t,e,o)=>{const s=e+"-h",c=e+"-s",n=(t=>t.match(G)||[])(t);t=(t=>t.replace(Y,""))(t);const a=[];if(o){const l=i=>{const p=`/*!@___${a.length}___*/`;return a.push({placeholder:p,comment:`/*!@${i.selector}*/`}),i.selector=p+i.selector,i};t=$(t,i=>"@"!==i.selector[0]?l(i):((i.selector.startsWith("@media")||i.selector.startsWith("@supports")||i.selector.startsWith("@page")||i.selector.startsWith("@document"))&&(i.content=$(i.content,l)),i))}const r=((t,e,o,s,c)=>{const n=((t,e)=>{const o="."+e+" > ",s=[];return t=t.replace(N,(...c)=>{if(c[2]){const n=c[2].trim(),r=o+n+c[3];let l="";for(let d=c[4]-1;d>=0;d--){const u=c[5][d];if("}"===u||","===u)break;l=u+l}const i=l+r,p=`${l.trimRight()}${r.trim()}`;return i.trim()!==p.trim()&&s.push({orgSelector:i,updatedSelector:`${p}, ${i}`}),r}return f+c[3]}),{selectors:s,cssText:t}})(t=(t=>B(t,v,tt))(t=(t=>B(t,j,E))(t=(t=>t.replace(U,y).replace(I,g).replace(K,b))(t))),s);return t=(t=>M.reduce((e,o)=>e.replace(o," "),t))(t=n.cssText),e&&(t=w(t,e,o,s)),{cssText:(t=(t=t.replace(/-shadowcsshost-no-combinator/g,`.${o}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:n.selectors}})(t,e,s,c);return t=[r.cssText,...n].join("\n"),o&&a.forEach(({placeholder:l,comment:i})=>{t=t.replace(l,i)}),r.slottedSelectors.forEach(l=>{t=t.replace(l.orgSelector,l.updatedSelector)}),t}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/181.fc9b235e63383b82.js b/apps/n/porrtal-io-app/public/angular/181.fc9b235e63383b82.js deleted file mode 100644 index 030f4b3f..00000000 --- a/apps/n/porrtal-io-app/public/angular/181.fc9b235e63383b82.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[181],{10181:(w,A,g)=>{g.r(A),g.d(A,{noiseTexture:()=>t});const t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAqf0lEQVR42gTBB5ydB2EY8G/v8b7v7Xnv9mmcdFp3WpasZUuWFzZgDJgkhgwoSdM2JbTNjzZA06ZNgaRJWtKSEgjDGNuA8UYeWpZkbZ10uj3efu977317j/7/4De/8ef9vCow2VUGGHzRhuQ+t08GvhZb+jy85wOu/68JzwtQSCZedpsvC8SL6NJNNwZoHMaZiMoCrjrPATpGJFxvRCYMKqTCBsyVw8h5B6ROArU3+8HOGLe3Ay+UABow3D4wEcfOakDbjh2h594mikMNcI62ISNzIius0bfeN+QHrv+L7M53FHq1XC29breFgmCjwPHQ/fo88OIg9kvDdQPhB93G8yk6DtRYFT64fR/jQn0NIcIgYHylyFjVHPBboCB7HQ5sXuoZqQCHqKUjtvKNpvxkivqlZe514DOA/Keethib6OkOw204MMTjY3HX8VIGFeITgBEApGRFY3hyKyPeRWK/NNa2huJeLKzBJAimiY7ZQbAh0HwPEP9jxHhs6he37z8+KWqdeD7TCttNwgHftJpfzCq/iOJbKrxap2Ymet8zwVEoNReE7T4aI6t2mBuO4Meyh3vHAeK2+KvLzWHEgSCJpgR5EvP7QPFLyeDWWrqc1iVz6LwPI7GEpOEExCwzVZwtKtDGyzRW5tGyz5WA7HLtfrOIHp9T9kXQB1z7E10eYMytTs5QOuci8E+YIk9W/roj5nxvjVVLaM+30x/09CPGIdQlfsOe/WqxoS9Sf5bVv+drIqyP6uNrQMxFGDPSt1PurVE/UcuV9ci35bmCPTiIjsuZZjZCePj01iMbKBYa7UyVIDI+MDMSAV7sw6CSjKEG0IqwXhEkVtFwFJQ9D3q9q2RE8xEzuxvCN0Bq0pAFH7IMZEW3/zQU6rQ8Dw1bqPE2XCxtht8B/Hsg/yzu3CUcGdb6PW6QCVRs7bYKDwDQfYefmmJO2O/d4LyOzns2kA3kt7Bxrn1ZZ4hlYFs+uYpAnNDyDI36VE+6wLadkEwTwQIdYovCIM8SEVS24D+ktuqjWIT4yWFEN/zEfsqIWkFfKQsW8DNVyLEDKWwZ6ew8x5ojpAmh7DbTuiCGFcW/DXl5hO7Y/BztDCbwqtMaxcanBq59oBYuVIAM2o2twXHduUpDjChd7xinXHoB5OKsvd/jlrN+SnHoir0dn1hWWSbrDzj0Nd6x3PUb1LYyVIpv9AHW9sPW+aEhU8peULyaAG12TddDnq0zVg5S+vfnVLQBwjt3PcU9k0feDfAkCjohqkfBRgeVfcx1xYcTzRYoNbVPbCQ/mmC66x3pMpN7IPDeT7a2+TYYDYj41QNoEoGVQhPLlIPb8k2yMZlM2gNIiEu4nfIZFKeDW08qY9ds2wLoLWIt2yJuYrXnWhNbytRVs1sHIw6qhoE/sYJsJArzFLNdUzxalSOyF3oIBU2ttqZFumoEj6XoZVOHKWSJDoGe+WGZmObQuA4f+uap/u15hOEW1LveusgkSWNvivQRRg7bAQWcd+wUcmN/DTkr6XeHmX/pVnYkebSt/RBNP8PhsXnqFhfUu/ozIH++g98KYa+EnqoRZtFucB/WVPy5MoJEyH+RgSeFoTuDS3Rjpi7Iog/+N2aD7N9oJkprVsWpNOqZ5JsMfDKSID//tUCyQrANUm4Q/czDP1mKVTo2lrM6uuJh9RV3pMc1ylB/5zpYs3EWgR87+hDYZY06VIzFYd+HxTY9FyARG0RytMQAJujsU3Pz/qPlwVVI99+KBosYv4qQOzQP4WWCfPVd5eSjvPMmAkY0LFL9lX5vMfDKgtMADu3pCrNLctVht8XYBr6KRvBkWte8jafxscvmLE7tITB4IxDf4GJ/7YdtklZdgOO6z62Bj4ADitP0UfcQAiwSnoEgw44j+mCCpjb7zL2IcBSOYLS5ArdRgU/EJrsgnLhuAgv6ylO+fTYJZMPiFVUt4bafDNpq8gW2/+Wc1LSVejMjel0a5Yg2kUT1DzSmbB3aGVsieORVfXAq7vYkeQUZKUHxZlufMOFKsneeaJYoxjH4j6q2BObSoPx+o2RkzKti/lyb2uC7h60bB4z9maJ4tnFpvw/fQ8zfJ3IAAiSE6G2X40l/PFI+xGgcAjM+/31BL8p1KGRn8kFaztzEFxsAfOxjR910VTxaqsh6/z5RGNebzyWtoossscYHUPKL91d9BhtQTclREMGf6PoMnmDJ6orHxKl7RZO9DwAIBqRCqlbTHs8hf0fa/1ZcPuxk/I42xYnbafCqgGGatSnGPUaE/1azHhdzw/rok76dX+vslH00lkxaRKfW/wwn3mJTQOH5bu/vzgMJNnTuAvJMFL3p9f90ttxSrfnxNusCI0spKhX0O7XBAHcouivCT56YhuFE+A4vrQr7VfSfeXbsbpt4rbhpwuNPNBagcd8A6DO4PgSzeDQ6lGlIevQ2yGyG3fn49mPgnTNJZqVuLwC8E3FFyBozgL47rtOWlrXOd1s/dRPjgYmLAzl2dWFOGk+bW+PStap2Xm/ERvzJdDYd4fd16N3x3ooL/FzJ8PEPT4H4WRk5ygiRK97yrjHU5p/69gdFfUdLiDlYG0NeFYyjRmZNdLM6mDPgwceejmpR8ek2Pm02WQ3ZqW5nCDTpL9931LtJdladOI0oZjCwoGICD1xZV4cYZxIgzhjekCf9wh4+jDU5IjvsdEm/12T6e0aJ5YqnS7ROWkWBX3FAnboqd7c6kAcAxZwBS3bSAZcH0F6pV/7AkfvSEzW3fzrp1VvQjkL3wetuK7N/CV692ve/zNVq5KYktPLl/CMDhNzFjT6ZOIK3RgxqBaLxgL8Aoc+F8MeP7gFuRpXbCDtlAbL10NvMh/tsocPBVQx9SFIIiN0CNzcipYWwz5GmjGWiarABr7U30U+uUNtF9/saPWDaKnox3JOtzsKvq1INHtwgug+a9C8U+XIiPGGIWaCNg7RE1WFxot+t3g22M6JFGzGOpSzmpS+ODP4Q6RwuwVKDW0f8olQHYv4Iwf51NAr0mmJoXL1TpxX/Jwq9m3b+wiCKtLfiNrWV4I/5xBkDPvnpZ+Q8EN/Czdf1bA+T5A6JpRxP74kwUm8y12j7Jd+fsDMtag5nJvLUigJjbnooZikOBpxD6T+Nk7Ln0kFZlhujYcHz/L1UK05AHRt+gErP4E4f5gKsX+O8TCsbUG1hHj2+vX3Ng7bL0R3a5KytLaPmeay0xND+gBfUj9Phq/2xfYKS87H3ta1Qso4H9Ca6X0hoMdy/IXM7QuhIVg9ZbI2oBRhk6xpX8qoHNrL9POGnrNERY9igV1x61qKLAvFcGoiRcch1N+k7LK/5D0D3eIobCG4s2iADwB67+vJqtk0Tc1TMkgQLKKRG4Bl48I3u2FQq/lO3XbK9g21Br2Wrcyobb2DqyLVhQbWbiwX3JdQGgLjIbjStUiveYGF6IpjdMZj6eyO1pSwXCSByV38TzEY2/VEpeAXdtABk0qq9aZB+cGf+ukGgq26f4iAJfso+9b38L3dfnIImHIwH4TRyf4e78yxS+Uxq6TugN4xw5XDxOoluqXYDJhgyxre24BJr10njnXjpWcTtWbdv4aXNbXQq03s36vFSR1oz9oxk321YuwoQdbNCsfy3tHAmMcnpdcCnnvFu3ffTYs/Ph90bPfqToDdPLPaNcCKivoo0Rwkqbsk1bPVbJpYxGIKUfXH4pK6H8fghaPY13icA4JO+NLuCpoYlHDM9EB75+kNH/n6o9zE+TRnBkkL8xiqWY+Q9ZzaAg4+fLzZjhNfw3w/gUQRFiPz+fPeS0b8aFIJGPC+rr24QY6gIO9YVpEO6A2aaeyYdXRMVVLdKluURo78cBmBt9EtRzeNaKwWKt2E84X3D5pkIp/iAp5BlCgOpbCJAGniU3QBwNA46JmID4zirCmjDcPth6PehZa+zDdAvOqltgXj53q4T5ealBjQn4yoLHxl7ENmhUxeNvsVRYwtikoW6UeUxgr9EMFvwiR9UeuVRYKur4GLqMtLds4H9c7GxNSJGLKubjwZ8TGOXLmgCr4e5uEw7XWCj+lNk1wMUOZOC/mXXfhLtvOu24Kyd7Rq3dEnkuAFo8DA4pyLpJ0zioo44oRxXdESQO1rq81ulq3WDJXbt3ADVNIjWg2a/R+JYnI2PeepVLB6LPzi5eMUa2/jvGWrYA0pIsd2Ax6mPHbLgJuQbN3uQNGGu19WDg/3b6lAnBRn9N3KlQsrLj5LkBOCnwk7P3pLX1ljdnh8cnPPerTvbJmSkWHISCPCTNYii/Dg4JrjaCNS+3DAPRwm9DyJkalkLQz4YsGNLFveiCyw6cE4MzvjUgRAl0jAQclYHdAaYaFVABepI4sP/oeepxPi9oGlSi3tpWIX0FzAOuE71y02MAmdQrbkGPmClGtJGKw+fOHi4cTrPd5qF/4KGkWmwqPqRP9fyB03ZL2FMBtc/W3/43eT17zGJUY+tBegRFjLJktlYf8TKpkmzJai8GvczudWw+UeEPcTZGuLLoFGDpv5YDH7ZFo4P1jmZ3TCjEotNcBqm155Pjm3NzFEKWKF7KcVY72eG4IF507vbNnbj9CwxsimhPW5KBT/cwpfvy/YzvJdcA+6n/B0d85Em9Jpj0SJ6LewBcL7Fw//+NzPSGw1uSqy9jfTmcJuyMzyA57DcJ7BZOkbPIcUXsDPjoMXY/keYYLd0Rax9ZOgJqJzTsb8onXqy1r3kKf8mbdIKVceTSXiiGi4/HR7Pt5tt27+BzW2VM1tj6lqIToB4087XR9bgOfSFKyGf5eeM2J0YhpmrH9/Uu2+28qDSL1av08BUz/i2dTounIci36M4SXJfQvpHifh6TOnD1lTMejVlfZUXf66md5FwdmEaOG1150HxOMK+gQNbgOZs0N1/lb7CJLdA8ILbK7RYCYPhDrXAb+xLMG4f8mFkDpBeyS5+tXLxfxPxJxjk++79i5TfpbnAivqN+HcMfaKsuVEQwkWRTQ6/a5BboYuIP2CsCo3BHucNjYkXfHt7YLxqKU/w4c/bdMrAM0RpawTOtWVdL3+l+Mr9a6KGHjzCdL+Pcs82YJuhXDZ2rh2NZcStekK3eqM4bjnwp/7yMa1OFl1OV3t6QPCo35w0tr2V7Copy7J1Es2x8Vv/HFIPufBxivtOv7nfIH2UelqlYzTdYMRhlOaizWtwONQqix3wIN5egwKRjEqW/h7rM7j0/YG2BRMfQkYeQJUQeo9nCmVps09F9focPDhOOXQUQMjU5dVeslBdgwfdev4kpssy+ovCLglTwJ6SUOXLRMTn3S0pz10x5bTC15u11cl30Nk9Jrzr0xP8nKHV48h0J54cVJqaeI9qlm1gjOB1k0QhXwFP2ObcgC+t0r1ti6P/KzA/SXo/IN0SMFjq9ZuIrLr9A1akw429QOUM5B5UEmUvRmTAe60bM1yWrYMPpCFXI/q4RWB0CWq9rGRvUP6uaKQ/IG34bkpJkt3ViM6N0IEnJx4orp2D+v9I4duJatlZ7BHsJdqYiWJ5E3tNwoeEVCoY2xmtrCoYT1IXAPjUwBP+UKQvs1zFNa06XEMiWsMnUtTlALgZWDlM1hWo28GbMfiUPvgdt/o7pfRflcM/cqANpekRiR1c1GDZum7sabObAKJGAiHtLqegHQC9DUL/UQuHsMQHtHGasfv6lruN/s+g4LNBZ8IJFEA+CQPYmvAjW3wuu8Em2BOLwXwZlFGfMPA9gYvg7ivh8mmQV+jMZCwMKS/nJW8SwW8HazdipRdLct7AJkj40MeOWg3QPwIrXSSc0ovjYScZv/py9VCo137HQyowz7J1BdefseFZXLWQTNmHRNUYHKOArrc1Ld3Tuhw9+iusRlGgUILvkENzEP00tfai71AkRVocwA0+urjxvsVO2au4HpYHBLzTXC5UGH9S7qA+0j8DO6I9fVCSn0La27FII/Qbem53DIga6BQMqMD2zzG2vQobkLxi4skm+av45lv9+w+7UIYVvifAu/74qdQWePGbEC300M0D1rtJrtekESHiIQhLqFk1c20F3oyQ/1MLh3NF2TCvWlpMoB11+RF/m885P9EFQfa2INC4bf0oSDykNB1c7ThJKog6qH/NiRykcxtxc2BiNWPBGQs03Gqy95X23pK3XS3Id6JoO1j/fb+rDEHXOWYCdF5p3D/MD/9Mrf9+0tmM5+43b29zk5/TG88Wc7/BuItg64CzAGDFRsPDYMwC4GPHTsRewpMoEvw7U5wNabW1NhdM5YstTBJvmeCl7EufAXYGheRUrgK3lAcnaBjUtvX7A1YCYrVzG4BI+Fs3u211IAOjITr3qxz1iQhYAzxcC97nqQcC/gNJ/ksGu21JMSvl4BgZhY+tDS2kbAZC/0+j2RmMSIBqxviUr8mBMw5m0irMJ0A6wqp4q7OS54rtv3SYfwE31V4hYBefEWo9yP7E3S6Ry/zAdvd68APdrcHzIBj1kQVNtfTmSN4Y1lvHcX/BxRMGVgizNziT1a+NL4f1ZGrBBLkAbTppStCqqHPLZhyPiDx3SKmtw205TO2WxMEQqkULr7vCn91BzmndvbHWFAu8GiSrgAZyZNMScbS5iAArlhrh5G4HedwL/wH2E6v+bbD1O455A4uBvlNoAUNKwqPsjk9+loTuhkiXwuigelze5UHCb/AJNKw2cc+G4CfE/Z0ZwVsDXSAOfr9R/gpL/ghGMJOL8BA2mOuKNInxFF6AW/7uErMW8sNkEBOBtXXXEbm30CCTJbxe6EOIbec+RTjqvdUflOP7AfgnkC8nhSIm3neEOmts61kCO/o2RP02eqWjJjzYn3A/WgFSoyAwj64gKr0H3nFCK7pZt2FDmwwcSqB3YBMgY3HXWDAoBqr9PHSGIeh/l/QZXZpL2wpO7AylAwZ87Pce3z6xUVvn4SNt0I8zpte4alIJpNWn8cjfSE4UKTvooupk8qPXRvFrmj6smvX17qSIX9baO7HYIjg6IqOvJIEg3tVQ9qyR25F2fx7JpzrMHwCdjgkYRexElPxR1RDICwMQssAVuoCZADE5CJ9ZJS8LV/rUdEFDlFhrI1yQ+/EEZmII9DDLO54bQvrj5cmbQPfa7cH/UOQXdKzucZ2IOklamgTnaRQuwQ/+x1PS39leFqUqIMbQ9x6YH8xs9TiGTviU6lvwehYNuM1i85I+gNg8DiEuTIIk2iOce93t0LQ0udyF6JpSw2dw9G1nJVmKfxT36xJryH6PzgQR9qRD1Mm5e37Mygzm/LbTyeGse9tUbxKBlqB2FtLmQgRT0XuwlEeSNxcWvzw98AE28vXwWr2FlIrAWsXu9Qf2Q3c/wgIo6RZJ5GQlejmceYZfebOaO8nDj/iTnf8s2C9IEEsxD0K57+JXP2Utf9NInQAnGuzKs458w4LXRbgQ9GaWxz4G11+LwAVYeMNM7iHu6gv4qVhtn2OYKeKRJRdJHF61unu1ms8j/2aR7OYTz6aWX1mXRDFnB7aepsLG4BHvkkwVYqa/DYsRNiB3CDPZ2q5Kr5L8oC6j5ULS3/jzu6tf88tQ1tTXmBhfdwgUwXDbbt33gD8woaq7sVQiLnSMXLTtZzY89fkny98x1N8pSu8ETpNAIhg/T8GIQvlae9NA9hx0Nc/krzNurU+PlTodk7+HO9MBugPzcYk8hFtQfN/X7klPxXMLqKf25wcIYKZhb/Htf+L1Uc18kw5jZOGML5c98ZDc5yHfzmVjvWqAh2URb7rTpwH7Z5Z+n7SJeCIdOVzgdwzy80P8Hd9okBHiZ/rd9S+Vrvw4zFlirKiTK6TcVpw1zP5HqVhBXt6RhPfu3IsNMMHfNPSZVSonE3UuRpsMiGM3OJSv93QnDntYsYtdGVuljAmJA47Bndeazv44WQHWORbVjGCIspejDdhnQEoI5OYlcXg5yt52/BHhWJF2Rgxn5H7RStg/JEAf9XnV5j1UAfm2Iy+qgJmEmxTPRFm9jxx0wK5FwlHNEHBPdTZ53Mfs/p00dG2Ren4MbqsBCHPX40CcaD98IfZyAX/LGkYN+CRygtyrER/0WGlb84sVrjlknK7HuCRx0us3BOkONLiBYUCABPNb+cChaP1nBEzlW6DhhQp4wS7EaP8jKzkYuZbKviVem6ZHQsCk7QpfziL22v/or/9J1/1wUns39AYhbg+CwWbwRuSzsQTe07J0eMfvMWHVtaiDsBwCaUJapcqMVu/+bgG9YOOvJ0rvKPZQBrhYhc4Z5hMKxupj1xvFyWmg1W5N56lDJHzoDx/cuAshRzC4RgMiLb4Q2pN8r9bnJc+XUvwe3YZ5fcMVHyusfcuXdpv27i51WA0lbuZsfK3s5de9lWW9zXCCmTWIWhI18QtJZ9RNj1RbAC/ACLbCUo/Cit3JZCjjtKR+f5zdBJtOH2uWGr47tDtauNpKbom3Vu6n4oxtJhFDmzaT2pc62ZPu0gKZ4cnId/Bp195CRRtJRKMX3+4KNbD9NDEARUw+Dj82NV0k8VggVL8EZM8rwKmwWWb4ZiA9mmtNR/6rbulcqybAyYcAajMrvmsCHZJlu0CItUtWhsU38uDA04ET8wqzujLFgSgRRzt+kXEaAKwDm59pL/0Y4byu6kKl7cTK+UR9vb7pvG1tF02qxaRg1uiHnx+g7wOFJdw86CMbIvQEdeeHfeLxFBSPJn5VXZvyXLVsJVZjFpf/G5N9TGEn4xIAIx1aZlnqNx48+fxpszhYt1rUyHKHyqS/reuRCO8KEKE/+p90d4cP7dOZGBZrAe4Q2Cr6VoWFGp7KU8jzB6QbTf++mX28Qt7b0RpHxG638hMdZDlOSXXCsLeIhHkEgDBnDc48xzage9HPIxbGocP0yslbVL0Ed92bnx3d/O9vKImgbfPx20LzQCP7f6r+b/H2tmDTlvc+6g0PHKeaeAe5lUU2I63NVlYI5Hba+5RBXfNRT+s/tQ4/PTEt6013TMhfYY1q4O1CPEUaPZSt/QOqj9rMG3KYH1yhRG/UXcb6yZcW8U+k+wPZPCgBlgpNu8Kf+VLERKyNT9vbszywFAMfMpx9lkOsgwtg4j67egVCDgb+ZEV+Y3qxbUuniUxWX3sxPzIPegZS/ka7kue5Y0IwTZu5WqyB9RSCfE3Uwk57704/vV7o8av3lyOVAoQ+jppahwoMNvpxOGpVqrkEMMvAXy4/1nLZ7CXbF+Kq4DobenxfVH8/pClZz8kcJjJSt/V/IWS/l38JjraIQDwVzDZtH9eDrv81QfiKDZ1jLt12E1ftzmRWhx30rpGsWMCynxugBxI8c3BRcxANJ0r34OFhMkV49Gt40u53T1vkZujkMataE3APzs1g0F8IXsmQDntQsdKFNf6iGH8VLQGmiW3JPBuidQduZTq7OqgW5JykjNnmiYjhbLj8+P7cqCWZYZRrkQTaRDf45QL5RUW9XKQDYn5MF6gY8ryV/nXW3qQrGXcQEKwbvgo4z6HJe/l20BOgwI4GgQJQVMNVFiLM3ZsX3olzj1B2we3+Guo/EO8csQZWY33MdXWPW08uYR5nM+10sH+4/+NzncE/GNbn6voapCiKV4hwCWxfwQ78q7g/B6aP81fbEJ+wCzml/1fZcKYdX5lgUa+LB/huzhEU6bsC/HuPnLhb8Wg6ni/HtV9Ygzwe4IyOGaVdivTDbEOW8wcpQLHx/7eC3Zi8sy8oXu5DhE+kw1u06LV7AqFiBTzxumkfMOCJAaDW1i2H8GXwYpRK1uBaofc2xGWoiG1SfQOZZd0xdeJz8d58GK/YijySB0J9Q+cPTWd/fav6mWhmSO8Q1NbxYhNAcb578XuSsC1uvGTGXkoqnwE2LrPE4WXsNmR+dr37NhPqTXwkhI99/qiruLWDhPRfke3BzfdO0Ym4QFzArH8aMPeu75kh1CseVwnsv8eZgrp91VD2VNU2J07EI+ZuhsZro1D0FpfMsrN9T7l9p9GKTy9r7nBy5t7G3PJk57ic3KRV0fbnLkfXYjF0cMEtFJzX6tUctEsk76FuiYm6EKzekXpHANhG2gts8KgF2qDT9Ady9p3FJLXcvD25D//CQrhEA4ctzFtu/O1u7KgeZ1Lgehq0AnjThaOUIIg7oyTm6DQFQGxYkfvTSD5z57MAe02y8MhnHbc3kWCVWgQS5KFidDa1hijkDgK9HylNiIkH7XUrO8mGx+CxPLJ6RBdr/s20MPBsaIkt9iU5tym3LEP0dJx732kMJwDPoVwVGRLds0r/XgQ5tHsywG8kAgXM0DB7PeFzbWyWa93IoiNSjCBLB+zoOu2+108JuNch6SnYLid74PzEj7llBoIHpx7hDqyxHrF/GasXOcNsJUiWOCPPptVgZcrbrM+/gYSTsRQGWXfwbi+2QpryYDX91ZRFe+c74jbKkPWQeYJdeasX+669/9kssmTPRZwQeXKLpE1E+wMyRDnkcUh+wZGLtPCR7U1wokVAtb7GMvgxlM9qyhlaafSIiZSV2vD+PkAeQIjhlvNRwBAevJgfJOo8qbpPQ2lV3ymUV1TQolwR8JBjKHETgw/91SRAJYKWvUwY46fq3dmcPUTKvlFYHq4cWmVrkV/zqAmy8WLPDahcp4/cpPwdQXMEimgoAXgeHsB/4wcD4WgpYL2kvse//ZIdm06Q86YrrHN/K2SfRJ33m8q3c8ZOC98HW3tg6JanGyYpF7dQgLGiKVfQ9BSfnsWrmyqiJkSrmImzcgVGKVKYrTVWN7tf6d09g6JtyFuSLqhgFsKE9Fy0wFs608u58BMfHhXUar/Ce5muvzisF6JoXe2fcbJTln4mpowiRCwa1bKE6YQTUT9l2z2PjQjcg7OFOC2z8RtLwKey7nwpOL7UIOmIcqMA0iv93CeLhhdhHK4m+WVcKc6sqRqPbXLI16EKsbTpOrc4BMRmvPYq2zwSQVf6zmEllfa8DyVodxwKuwDoOxBniJSY0GaSTDsOqaQq/TpWPIHx64a5xoLT7VUtdG8H8OA3t0HiED0CijKwqttKb740UfZbUfUqGDsNpefiSl7rr/f83Q50h3RzmP+FgiNLqYstIw1HsxCxO+NEcqIwD1RLyafv9PRS1ILpg6J3x9QLGncu4++SB34Fv9pKDJ2lVkflsOoIdszZhLGgK6yT3sT6qIAYAGSBuEik+gu6XOLEgRo4G9MPE8n3jPXHO7aczYZ1+58G+f9MLf5MHd1ldxDeLWLZJoN9pgofnfxs6YhJmWY95DHASjIJ7z4lgpx/SPVFkL0J+49CDoRHdmCHKHKzSLUtPev6OAMuUMQEEHouvSjVNk/k3u7co8aJ+6ADVeEupccQgcHC7UHvmhdNBOLdkMUixyPyK5y5ExMa1LU8oJ3sOnIx+RekN9rAOLaHYPY+Mg+Y7XM8dkgU5p0NAOF36Npi5F2nrS0C9fUadVLAZStsYtK4z94LmF/r8P5vHAT/Fou9Tm8cbjNGvPSpfGe9jhgGmhEpo965JlCczvY8rexaSSe7OVjwZnN2Ob0XkI0+vIwpbCs8lTFWA3WPBZ+j2YdrQXUIbCB4f3E+ES1oGFtWgKXRWKbVP8KnH6tCcoS3ie6H7TTq8e/HEl2l9buU/IptFZByo+5URfMLrQ3UGn29p2sMOyh5u9PYYuA+tOC9Dtsn0O61GrW8Vd1aH6ESfgC5Jg/P8EeGoNSrO1RuOKZ6QOKuKyDdGpj3XS1dR40xjXig7TSGmF9BUEK49IG27ZCocDx5yYHgIKBh8yjbftWO9QPkIibON4Mkgr6TQvea8SNccZVMwuqhXXh1GcPOknL/us4J3nxgC/7gSJD6ZPnuEYD5h5xabgNFEADolRV4z8cp5UeJB0vLK0bCTjKuGoBUQPwToZ9JDn5+w5NxIp4QtgLQBtgfDq1Oc+biHviY+Jm56YXtd9rtk2tlOP76Fb93EUwCcuET2W7HdYPAfxuz11rhA9bgJiSxErg86pGuTrrkL8nelqi1o1VcikcTFPFpXBsQkF9hrfTG5MedxuuME2ltj2r/X8zXK+ZOiW1l5EdKm0wYA6zzCzH/b+cGOyASKNKByGzhU+dk/DSiX2v6GbD0sUznKsJdgSIpDB5vsOUmpSXMKxhQJdBh2zQB9Uga2d7mF1i5Z8Pb/mg0GVkuNZFeFdf6/sQsRJ50cShX0xvFi14EdTAyK5xklct0uG9dU9Ly1BB7e4OdFA2kzjJ4+m4cGSTZsV7nWyCf6oBZWxqinVt+YsTvf6sQA1rUNjuKCtq0KP8EGoOrnXterJwiZH5WDOMJ9wiaTF4E1V6uuU/1KwyzJ+H1nMWLaG9MzrZDB0QJOUnUSxKEth9LU1tb7gYILPvJutypcbbUg/cb8KOPnEjRaCOkwJVQYECuiICK6u6V6FnMA4Qdf4LKiO9CPrEHjf0QCB60rN/YDmrSfSJweSDouFYaper4DVl9KMj8Qq4nhIkrzSCV1VtB8Pv6oXTxphryWz16RTVKqPbbKq9zbQasDtcKWRE9WvP3FNcsICp2kRWQCpSzS+z4+Er1rJgNglbTAWRqrATd8ElRNLkfMfFJWHPwNMPW7vUSOpc9im7UGfizlYOdvT787XWsxMF36s1xPyQov0uMDNuh7HVeyHWziyzKJnJFH1zyJG7twS5yiydQvr+9XtYK/mjNWUEdhgM3TJsWQEK3aaE+HqwUhLE1b65h42a1E3HMqoXuC4BzlnNuEIgryVdgYucd4NsTHd+tf+jBWV+6h6kT2CgOBmdI7gEfBrIYkOCO9tZGY+K770tcEjoG+l/rLT2tDByN06xhRUokM4Ltw8U/fNh/ydTjO4JddSFJ0n6Z9SMiz3lreKURYDM2Z+Szp9+zXvKr6SE29NRrJAGbmRjkSxi3sOErHFrB10tJ2uuT+/tem+j2qexl1P1B2DlgxMa8kS4WHKFWv0vqTQxY7YqnQN8jE+lmv3woeUknMmJciOh8HaLQ2A4uHN+oXYqBkyrckpNz2iLo5vZD/nuEEs/JWzZsCcp2U8YtsPcGQNdIOqvcZRD40+RjBs4WmDr7pU77XhyaIrC93dqsR+qa8BHQOWj4Bu7/Ha59bpCbhRoXY5nTHcgXGvNW2VGXpouirMtJDL3cggbY4AV6rYdtSbnCb2FR0Z3oEVYPa38SZH/o+79XTKl48AVc9BeBWAJbggJXJboVa3PUkSLquk/t1LtVD19MizUfx5LVJ+bJeSq5krVfq1glKB5TIifOV/Do4YI96WDkPPZoWbriIDEdfqy828yhXsnn3/Q6xwJvxVRu4ckHYGnN8zaBRAdlIQwaphWujvdJ4yQCnsPlge7wXDKQuPB5N5wTIyBk/4aw/x/R8SmxQAIM6p4hOxgaYEqGMRpnHcImrDOAMzoXe5VuTKeSPwTmd9FAoKsDOcbGwJsRslfufhCPDSOeWxn4MGty5kg1UIKiP9KtE0xsFPeMLKY0a93YsRVF6su0Tt99uEIYYhogYODAIeFhKqEoyScLyLpjtsnsKTisrwea2HklEPbCjoHgxYi/aPGvA4ZvW8U1dmnMPBgKzwPWT0KUDrRhLPZrT5vB4pMbfon/pNjubIqSAql2YwbQQ66PYVPKvacgMpbKeSS7HSboMBqsLqOFLRlY6bT9QfjaHB7bGfcHQrij1HeGzjphnmbYO359jhvWcLnotM4nsaKU84N3l6nyqRVAQ2K1lrzE659W4Y8ff/hhirkxkgauyvgHNf5Azu8xxk+geLrsjEjx7wK9Z5DodQgqFhp5dO0L4xmvV4M0Y0SFL0OEAVJhhZCKKOnUEM+8TXV/ijaeWGRfwFcNXeQQ4Y7jPytH+ZKzujr6KtApadQaVPlBtAUtg9thT+0kGoo/CvMwOHLTWLuQAvZKzCXc2eFg388gR0yblNUY5JXJ0oFq8N6Et7LKFG367qbWxTUnt3vgemDfAeCT3iMX9+ixihTYoJQGQduFd2K61cIwIDy42PwyyfBAlB69X7pGJWNsTubeIzIBLt1b4a6OQB8ptWFIGIquvVlHu0wqhWx6QJPCQW+8z2h0mDaBT+D9Wddq+oAV60yhIgprTSh7klj8n15U6kkIEZluuJjvLpLZU1QoduLnoIodg37XTJlN/Y0gfKIMzYFZ03d5Wt7iluXVifzY6pDCEoLJ9wOz5Hy6CR/+zuPZFZd4t60NpSxXp6rd3nWq2NfD+YRwSdCNRPK6Lu8LkjZpvlgn+wl0xjLLDD1ixtN0kEMsMAhr8NFsCh6wXAOvrUOc0oEDDrlq9fZH0o8qXnYcv+cXGJweDpW6T2+Lt5q9nFKfv5/JnuxsfcdFm4RMa+wwv/5WLaaPCuv93AxVUQE4R4hKhMQ0H+TkXrcoWciBXUUSWJatVI4SzzvRkzb5PRI+wBz2lOju72rUh1j7mdyWptDkPB/q48dgfBzSCRDyLK/iwy+4+Ndx/I5XmXXV5dlkcnObFaHFJvI5aKgJzGYQ6qpcZ4zooB37BkE9QnAQ5rfxPDVE0hJ2oN6rBryoUXU3OiuuHV/IygkyxwkqeK+YUcsBo5CdWKXw1IC1oZd3U4uKEx93sE1J80d0cKwYmHeqt4jBHVC3p84ObsRrrlbAlJtJcKYXRdj/HwATFUYLcKM1oAAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1831.30fef6ee2c126946.js b/apps/n/porrtal-io-app/public/angular/1831.30fef6ee2c126946.js deleted file mode 100644 index ade0c7a5..00000000 --- a/apps/n/porrtal-io-app/public/angular/1831.30fef6ee2c126946.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1831],{91831:(z,f,n)=>{n.r(f),n.d(f,{clearBoundingBoxCache:()=>b,computeIconLayerResourceSize:()=>c,computeLayerResourceSize:()=>j,computeLayerSize:()=>B,computeObjectLayerResourceSize:()=>_});var s=n(15861),P=n(84792),i=n(26584),O=n(78498),u=n(62208),h=n(5548),d=n(43652);let a=E();function E(){return new O.Z(50)}function b(){a=E()}function j(e,r){if("icon"===e.type)return c(e,r);if("object"===e.type)return _(e,r);throw new i.Z("symbol3d:unsupported-symbol-layer","computeLayerSize only works with symbol layers of type Icon and Object")}function B(e,r){return l.apply(this,arguments)}function l(){return(l=(0,s.Z)(function*(e,r){if("icon"===e.type)return D(e,r);if("object"===e.type)return M(e,r);throw new i.Z("symbol3d:unsupported-symbol-layer","computeLayerSize only works with symbol layers of type Icon and Object")})).apply(this,arguments)}function c(e,r){return y.apply(this,arguments)}function y(){return(y=(0,s.Z)(function*(e,r){if(e.resource?.href)return L(e.resource.href).then(t=>[t.width,t.height]);if(e.resource?.primitive)return(0,u.pC)(r)?[r,r]:[256,256];throw new i.Z("symbol3d:invalid-symbol-layer","symbol layers of type Icon must have either an href or a primitive resource")})).apply(this,arguments)}function D(e,r){return c(e,r).then(t=>{if(null==e.size)return t;const o=t[0]/t[1];return o>1?[e.size,e.size/o]:[e.size*o,e.size]})}function L(e){return(0,P.default)(e,{responseType:"image"}).then(r=>r.data)}function _(e,r){return function C(e,r){return m.apply(this,arguments)}(e,r).then(t=>(0,h.dp)(t))}function M(e,r){return p.apply(this,arguments)}function p(){return(p=(0,s.Z)(function*(e,r){const t=yield _(e,r);return(0,d.$K)(t,e)})).apply(this,arguments)}function m(){return(m=(0,s.Z)(function*(e,r){if(!e.isPrimitive){const o=(0,u.s3)(e.resource?.href),v=a.get(o);if(void 0!==v)return v;const x=yield Promise.resolve().then(n.bind(n,34062)),g=yield x.fetch(o,{disableTextures:!0});return a.put(o,g.referenceBoundingBox),g.referenceBoundingBox}let t=null;if(e.resource&&e.resource.primitive&&(t=(0,h.Ue)((0,d.Uz)(e.resource.primitive)),(0,u.pC)(r)))for(let o=0;o{n.d(k,{Q:()=>M});var G=n(85931),h=n(62208),B=n(77029),X=n(14259);class M{constructor(l=9,p){this._compareMinX=u,this._compareMinY=D,this._toBBox=d=>d,this._maxEntries=Math.max(4,l||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),p&&("function"==typeof p?this._toBBox=p:this._initFormat(p)),this.clear()}destroy(){this.clear(),L.prune(),W.prune(),g.prune(),a.prune()}all(l){this._all(this._data,l)}search(l,p){let d=this._data;const _=this._toBBox;if(f(l,d))for(L.clear();d;){for(let m=0,v=d.children.length;m0;){if(d||(d=(0,h.j0)(g.pop()),_=g.data[g.length-1],m=a.pop()??0,v=!0),d.leaf&&(p=(0,G.cq)(d.children,l,d.children.length,d.indexHint),-1!==p))return d.children.splice(p,1),g.push(d),this._condense(g),this;v||d.leaf||!V(d,S)?_?(m++,d=_.children[m],v=!1):d=null:(g.push(d),a.push(m),m=0,_=d,d=d.children[0])}return this}toJSON(){return this._data}fromJSON(l){return this._data=l,this}_all(l,p){let d=l;for(W.clear();d;){if(!0===d.leaf)for(const _ of d.children)p(_);else W.pushArray(d.children);d=W.pop()??null}}_build(l,p,d,_){const m=d-p+1;let v=this._maxEntries;if(m<=v){const F=new T(l.slice(p,d+1));return R(F,this._toBBox),F}_||(_=Math.ceil(Math.log(m)/Math.log(v)),v=Math.ceil(m/v**(_-1)));const S=new re([]);S.height=_;const O=Math.ceil(m/v),K=O*Math.ceil(Math.sqrt(v));x(l,p,d,K,this._compareMinX);for(let F=p;F<=d;F+=K){const $=Math.min(F+K-1,d);x(l,F,$,O,this._compareMinY);for(let J=F;J<=$;J+=O){const ge=Math.min(J+O-1,$);S.children.push(this._build(l,J,ge,_-1))}}return R(S,this._toBBox),S}_chooseSubtree(l,p,d,_){for(;_.push(p),!0!==p.leaf&&_.length-1!==d;){let m,v=1/0,S=1/0;for(let O=0,K=p.children.length;O=0&&g.data[p].children.length>this._maxEntries;)this._split(g,p),p--;this._adjustParentBBoxes(m,g,p)}_split(l,p){const d=l.data[p],_=d.children.length,m=this._minEntries;this._chooseSplitAxis(d,m,_);const v=this._chooseSplitIndex(d,m,_);if(!v)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const S=d.children.splice(v,d.children.length-v),O=d.leaf?new T(S):new re(S);O.height=d.height,R(d,this._toBBox),R(O,this._toBBox),p?l.data[p-1].children.push(O):this._splitRoot(d,O)}_splitRoot(l,p){this._data=new re([l,p]),this._data.height=l.height+1,R(this._data,this._toBBox)}_chooseSplitIndex(l,p,d){let _,m,v;_=m=1/0;for(let S=p;S<=d-p;S++){const O=C(l,0,S,this._toBBox),K=C(l,S,d,this._toBBox),F=w(O,K),$=A(O)+A(K);F<_?(_=F,v=S,m=$=p;K--){const F=l.children[K];c(S,l.leaf?m(F):F),O+=Y(S)}return O}_adjustParentBBoxes(l,p,d){for(let _=d;_>=0;_--)c(p.data[_],l)}_condense(l){for(let p=l.length-1;p>=0;p--){const d=l.data[p];if(0===d.children.length)if(p>0){const _=l.data[p-1],m=_.children;m.splice((0,G.cq)(m,d,m.length,_.indexHint),1)}else this.clear();else R(d,this._toBBox)}}_initFormat(l){const p=["return a"," - b",";"];this._compareMinX=new Function("a","b",p.join(l[0])),this._compareMinY=new Function("a","b",p.join(l[1])),this._toBBox=new Function("a","return {minX: a"+l[0]+", minY: a"+l[1]+", maxX: a"+l[2]+", maxY: a"+l[3]+"};")}}function R(o,l){C(o,0,o.children.length,l,o)}function C(o,l,p,d,_){_||(_=new T([])),_.minX=1/0,_.minY=1/0,_.maxX=-1/0,_.maxY=-1/0;for(let m,v=l;v=o.minX&&l.maxY>=o.minY}function x(o,l,p,d,_){const m=[l,p];for(;m.length;){const v=(0,h.j0)(m.pop()),S=(0,h.j0)(m.pop());if(v-S<=d)continue;const O=S+Math.ceil((v-S)/d/2)*d;(0,X.q)(o,O,S,v,_),m.push(S,O,O,v)}}const L=new B.Z,W=new B.Z,g=new B.Z,a=new B.Z({deallocator:void 0});class j{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class Z extends j{constructor(){super(...arguments),this.height=1,this.indexHint=new G.SO}}class T extends Z{constructor(l){super(),this.children=l,this.leaf=!0}}class re extends Z{constructor(l){super(),this.children=l,this.leaf=!1}}},92794:(de,k,n)=>{n.d(k,{n:()=>M});var G=n(62208),h=n(77044),B=n(66385),X=n(88071);const M={getObjectId:R=>R.objectId,getAttributes:R=>R.attributes,getAttribute:(R,C)=>R.attributes[C],cloneWithGeometry:(R,C)=>new B.u_(C,R.attributes,null,R.objectId),getGeometry:R=>R.geometry,getCentroid:(R,C)=>((0,G.Wi)(R.centroid)&&(R.centroid=(0,h.Y)(new X.Z,R.geometry,C.hasZ,C.hasM)),R.centroid)}},51541:(de,k,n)=>{n.d(k,{D:()=>M});var G=n(77029),h=n(65401),B=n(87091);class M{constructor(){this._extents=new G.Z({allocator:C=>C||(0,h.Ue)()}),this._tmpExtent=(0,h.Ue)(),this._dirty=!1}get empty(){return 0===this._extents.length}get size(){return this._extents.length}clear(){this._extents.clear()}add(C){this._contains(C)||(this._removeContained(C),(0,h.JG)(this._extents.pushNew(),C),this._dirty=!0)}pop(){return this._dirty&&this._mergeTight(),this._extents.pop()}merge(C){return this._mergeTight(C),C.hasProgressed}_mergeTight(C=B.G5){const c=this._extents,u=new Set;let D=0;for(;D!==c.length;){c.sort((A,Y)=>A[0]-Y[0]),D=c.length,u.clear();for(let A=0;A=Y[2])break;u.add(w)}u.forEach(H=>{if(Y===H)return;if(H[2]<=Y[0])return void u.delete(H);const w=(0,h.SO)(Y),V=(0,h.SO)(H),f=this._tmpExtent;(0,h.jn)(Y,H,f);const x=w+V;((0,h.SO)(f)-x)/x<.05&&((0,h.JG)(Y,f),u.delete(H),c.remove(H),C.madeProgress())}),u.add(Y)}}}this._dirty=!1}_contains(C){return this._extents.some(c=>(0,h.r3)(c,C))}_removeContained(C){this._extents.filterInPlace(c=>!(0,h.r3)(C,c))}get test(){const C=this;return{containsPoint:c=>C._extents.some(u=>(0,h.BD)(u,c))}}}},1191:(de,k,n)=>{n.d(k,{w:()=>E});var G=n(15861),h=n(17626),A=(n(29132),n(4832),n(49067),n(96794),n(69747),n(40425),n(69357),n(40342),n(73640)),w=(n(33474),n(20383),n(14517)),V=n(8314),f=n(26584),x=n(72392),L=n(54024),W=n(63290),g=n(88159),a=n(62208),j=n(77029),Z=n(10699),T=n(32917),re=n(50618),o=n(77712),l=n(85931),d=(n(90912),n(76898)),_=n(84682),m=n(84161),v=n(28093),S=n(55915),O=n(5548),K=n(65401),F=n(37053),$=n(44917),J=n(38114),ge=n(84786),xe=n(50134),Me=n(46679),je=n(9260),Te=n(9436),Be=n(36687),We=n(69852),Ve=n(89673),Fe=n(2252),_e=n(8080),Ge=n(24837);const ze=We.Z.fromSimpleMarkerSymbol(_e.xA),Ye=Te.Z.fromSimpleLineSymbol(_e.CJ),Ze=Ve.Z.fromSimpleFillSymbol(_e.z3),He=new Be.Z({symbolLayers:[new je.Z({material:{color:Ge.SQ},edges:new Fe.Z({size:"1px",color:Ge.X1})})]});function Ne(e){if((0,a.Wi)(e))return null;switch(e.type){case"mesh":return He;case"point":case"multipoint":return ze;case"polyline":return Ye;case"polygon":case"extent":return Ze}return null}var De=n(70137),Ke=n(39912),ie=n(79721),ue=n(74746),Ie=n(61885),Xe=n(66385),Je=n(88071),pe=n(92794);let se=class extends w.Z{constructor(e){super(e),this.events=new Ie.Z,this.hasZ=null,this.hasM=null,this.objectIdField=null,this.viewSpatialReference=null,this.featureAdapter={getAttribute:(t,i)=>"graphic"in t?t.graphic.attributes[i]:pe.n.getAttribute(t,i),getAttributes:t=>"graphic"in t?t.graphic.attributes:pe.n.getAttributes(t),getObjectId:t=>"graphic"in t?(0,J.MS)(t.graphic,this.objectIdField):pe.n.getObjectId(t),getGeometry:t=>"graphic"in t?t.getAsOptimizedGeometry(this.hasZ,this.hasM):pe.n.getGeometry(t),getCentroid:(t,i)=>{if("graphic"in t){let s=null;(0,a.pC)(t.centroid)?s=t.centroid:"point"===t.graphic.geometry.type&&(0,S.nF)(t.graphic.geometry,Oe,this.viewSpatialReference)&&(s=Oe);const r=new Array(2+(i.hasZ?1:0)+(i.hasM?1:0));return(0,a.Wi)(s)?(r[0]=0,r[1]=0,r[2]=0,r[3]=0):(r[0]=s.x,r[1]=s.y,i.hasZ&&(r[2]=s.hasZ?s.z:0),i.hasM&&(r[i.hasZ?3:2]=s.hasM?s.m:0)),new Je.Z([],r)}return pe.n.getCentroid(t,i)},cloneWithGeometry:(t,i)=>"graphic"in t?new Xe.u_(i,this.featureAdapter.getAttributes(t),null,this.featureAdapter.getObjectId(t)):pe.n.cloneWithGeometry(t,i)}}forEachInBounds(e,t){this.getSpatialIndex().forEachInBounds(e,t)}forEachBounds(e,t,i){const s=this.getSpatialIndex();for(const r of e){const y=this.featureAdapter.getObjectId(r);(0,a.pC)(s.getBounds(y,i))&&t(i)}}};(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"getSpatialIndex",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"toArray",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"forEach",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"hasZ",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"hasM",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"objectIdField",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"viewSpatialReference",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],se.prototype,"featureSpatialReference",void 0),se=(0,h._)([(0,d.j)("esri.views.3d.layers.graphics.Graphics3DFeatureStore")],se);const Oe={type:"point",x:0,y:0,hasZ:!1,hasM:!1,spatialReference:null};var Qe=n(23641);class $e{constructor(t){this.schedule=t,this.sharedResources=null,this.streamDataRequester=null,this.elevationProvider=null,this.renderer=null,this.stage=null,this.clippingExtent=null,this.renderCoordsHelper=null,this.overlaySR=null,this.layer=null,this.drapeSourceRenderer=null,this.graphicsCoreOwner=null,this.localOriginFactory=null,this.featureExpressionInfoContext=null,this.screenSizePerspectiveEnabled=!0,this.slicePlaneEnabled=!1,this.physicalBasedRenderingEnabled=!1,this.skipHighSymbolLods=!1,this.isAsync=!1}}var ke=n(59213),qe=n(18170),Pe=n(21439);class et extends Pe.Z{constructor(t,i,s){super(t,i,s),this._calloutSymbolLayer=null,this.symbol.hasVisibleCallout()&&(this._calloutSymbolLayer=(0,qe.S)(this.symbol,i))}doLoad(t){var i=()=>super.doLoad,s=this;return(0,G.Z)(function*(){const r=s._calloutSymbolLayer?(0,ke.q6)(s._calloutSymbolLayer.load()):null;try{yield i().call(s,t),(0,Z.k_)(t)}catch(y){throw s._calloutSymbolLayer?.abortLoad(),y}r&&(yield r)})()}destroy(){super.destroy(),this._calloutSymbolLayer=(0,a.SC)(this._calloutSymbolLayer)}createGraphics3DGraphic(t,i){const s=super.createGraphics3DGraphic(t,i);if((0,a.pC)(this._calloutSymbolLayer)&&(0,a.pC)(s)){const r=this._createCalloutGraphic(t);(0,a.pC)(r)&&s.addAuxiliaryGraphic(r)}return s}globalPropertyChanged(t,i){return!!super.globalPropertyChanged(t,i)&&(!this._calloutSymbolLayer||this._calloutSymbolLayer.globalPropertyChanged(t,i,s=>this._getCalloutGraphicLayer(s)))}updateGeometry(t,i){const s=super.updateGeometry(t,i);if(s&&this._calloutSymbolLayer){const r=this._getCalloutGraphicLayer(t);if(r)return this._calloutSymbolLayer.updateGeometry(r,i)}return s}_createCalloutGraphic(t){const i=t.renderingInfo;return t.renderingInfo={renderer:i.renderer,symbol:i.symbol,translation:[0,0,0],centerOffset:[0,0,0,0],screenOffset:[0,0],centerOffsetUnits:"world",elevationOffset:0,materialCollection:null},this._calloutSymbolLayer.createGraphics3DGraphic(t)}_getCalloutGraphicLayer(t){for(const i of t._auxiliaryGraphics)if(i.graphics3DSymbolLayer===this._calloutSymbolLayer)return i}}var it=n(13939);class st{constructor(t){this._graphicsCore=t,this._idToState=new Map,this._states=new Set;const i=t.owner.layer&&t.owner.layer.objectIdField;i?(this._getGraphicId=s=>(0,J.MS)(s,i),this._getGraphics3DGraphicById=s=>this._graphicsCore.getGraphics3DGraphicByObjectId(s)):(this._getGraphicId=s=>s.uid,this._getGraphics3DGraphicById=s=>this._graphicsCore.getGraphics3DGraphicById(s))}destroy(){this._idToState.clear(),this._states.forEach((t,i)=>this.remove(i))}add(t){const i={remove:()=>this.remove(t)};if(this._states.has(t))return i;const s=this._getGraphicId(t.graphic),r=this._getGraphics3DGraphicById(s);return this._states.has(t)||this._states.add(t),this._ensureStateList(s).push(t),t.displaying=!!(0,a.pC)(r)&&r.isVisible(),t.isDraped=!!(0,a.pC)(r)&&r.isDraped,t.tracking=!0,(0,a.pC)(r)&&t.emit("changed",{}),i}remove(t){if(this._states.has(t)){if(this._idToState.size){const i=this._getGraphicId(t.graphic),s=this._idToState.get(i);s&&((0,l.Od)(s,t),0===s.length&&this._idToState.delete(i))}this._states.delete(t),t.tracking=!1,t.displaying=!1}}addGraphic(t){this._forEachState(t,i=>{i.displaying=t.isVisible(),i.isDraped=t.isDraped,i.emit("changed",{})})}removeGraphic(t){this._forEachState(t,i=>{i.displaying=!1,i.isDraped=!1})}updateGraphicGeometry(t){this._forEachState(t,i=>{i.emit("changed",{})})}updateGraphicVisibility(t){this._forEachState(t,i=>{i.displaying=t.isVisible()})}allGraphicsDeleted(){this._states.forEach(t=>{t.displaying=!1})}_ensureStateList(t){const i=this._idToState.get(t);if(i)return i;const s=new Array;return this._idToState.set(t,s),s}_forEachState(t,i){if(0===this._states.size||0===this._idToState.size)return;const s=this._getGraphicId(t.graphic);this._idToState.get(s)?.forEach(i)}}var rt=n(67225),be=n(64538),at=n(87930),nt=n(36592);let le=class extends w.Z{constructor(e){super(e),this._index=new nt.Q(9,(0,V.Z)("esri-csp-restrictions")?t=>({minX:t.extent[0],minY:t.extent[1],maxX:t.extent[2],maxY:t.extent[3]}):[".extent[0]",".extent[1]",".extent[2]",".extent[3]"]),this._missing=new Set,this._boundsByFeature=new Map,this.spatialReference=null,this.hasZ=null,this.hasM=null,this.objectIdField=null,this.updating=!1}setup(e){this._addMany(e)}destroy(){this._missing.clear(),this._index.destroy(),this._index=null,this._boundsByFeature.clear(),this._boundsByFeature=null}update(){this._missing.size>0&&(this._addMany(Array.from(this._missing.values())),this.updating=!1,this._missing.clear())}get updatingRemaining(){return this._missing.size}queryGraphicUIDsInExtent(e,t,i){!(0,a.Wi)(t)&&t.equals(this.spatialReference)&&(ae.minX=e[0],ae.minY=e[1],ae.maxX=e[2],ae.maxY=e[3],this.update(),this._index.search(ae,s=>i(s.graphic.uid)))}add(e){this._missing.add(e),this.updating=!0}remove(e){if(this._missing.delete(e))return void(this.updating=this._missing.size>0);this._index.remove(e);const t=(0,J.MS)(e.graphic,this._get("objectIdField"));null!=t&&this._boundsByFeature.delete(t)}_addMany(e){if(0===e.length)return;const t=this._get("objectIdField");for(const i of e){i.computeExtent(this.spatialReference);const s=(0,J.MS)(i.graphic,t);null!=s&&this._boundsByFeature.set(s,i.extent)}this._index.load(e)}clear(){this._index.clear(),this._missing.clear(),this._boundsByFeature.clear(),this.updating=!1}forEachInBounds(e,t){ae.minX=e[0],ae.minY=e[1],ae.maxX=e[2],ae.maxY=e[3],this.update(),this._index.search(ae,i=>{t(i)})}getBounds(e,t){this.update();const i=this._boundsByFeature.get(e);return i?(0,O.JR)(t,i):null}};(0,h._)([(0,o.Cb)({constructOnly:!0})],le.prototype,"spatialReference",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],le.prototype,"hasZ",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],le.prototype,"hasM",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],le.prototype,"objectIdField",void 0),(0,h._)([(0,o.Cb)()],le.prototype,"updating",void 0),(0,h._)([(0,o.Cb)({readOnly:!0})],le.prototype,"updatingRemaining",null),le=(0,h._)([(0,d.j)("esri.views.3d.layers.graphics.SpatialIndex2D")],le);const ae={minX:0,minY:0,maxX:0,maxY:0};var Re=n(97161),ot=n(16730),lt=n(29505),ht=n(62483),dt=n(67857);let ce=class extends(Ie.Z.EventedMixin(w.Z)){constructor(e){super(e),this._elevationOffset=0,this._layerHandes=new x.Z}get spatialReference(){return this.view?.spatialReference}initialize(){this._renderCoordsHelper=this.view.renderCoordsHelper,this._intersectLayers=[this.stageLayer],this._intersector=(0,ht.Z8)(this.view.state.viewingMode),this._intersector.options.store=dt.eC.MIN;const e=this._computeLayerExtent(this.spatialReference,this.stageLayer);this._zmin=e[2],this._zmax=e[5];const t=this.stageLayer.events;this._layerHandes.add([t.on("layerObjectAdded",i=>this._objectChanged(i.object)),t.on("layerObjectRemoved",i=>this._objectChanged(i.object)),t.on("objectGeometryAdded",i=>this._objectChanged(i.object)),t.on("objectGeometryRemoved",i=>this._objectChanged(i.object)),t.on("vertexAttrsUpdated",i=>this._objectChanged(i.object)),t.on("objectTransformation",i=>this._objectChanged(i))])}dispose(){this._layerHandes.destroy()}elevationInfoChanged(){const e=null!=this.layer?this.layer.elevationInfo:null;if(null!=e&&"on-the-ground"!==e.mode){const t=(0,ot._R)(this.layer.spatialReference),i=(0,lt.Z7)(e.unit);this._elevationOffset=(0,a.Pt)(e.offset,0)*i/t}else this._elevationOffset=0}getElevation(e,t,i,s){if(q[0]=e,q[1]=t,q[2]=i,!this._renderCoordsHelper.toRenderCoords(q,s,q))return W.Z.getLogger(this.declaredClass).error("could not project point for elevation alignment"),null;const r=this._elevationOffset,y=this._zmin+r;return this._renderCoordsHelper.setAltitude(we,this._zmax+r,q),this._renderCoordsHelper.setAltitude(Ae,y,q),this._intersector.reset(we,Ae,null),this._intersector.intersect(this._intersectLayers,null,1,null,P=>P.metadata&&P.metadata.isElevationSource),this._intersector.results.min.getIntersectionPoint(q)?this._renderCoordsHelper.getAltitude(q):null}_objectChanged(e){const t=this.spatialReference;if(!e.metadata?.isElevationSource||(0,a.Wi)(t))return;(0,O.cS)(he);const{lastValidElevationBB:i}=e.metadata;i.isEmpty()||this._expandExtent(t,i.min,i.max,he);const{min:s,max:r}=e.boundingVolumeWorldSpace;this._expandExtent(t,s,r,he),(0,O.y8)(he,fe),this._zmin=Math.min(this._zmin,he[2]),this._zmax=Math.max(this._zmax,he[5]),ve.extent=fe,ve.spatialReference=t,this.emit("elevation-change",ve),(0,m.c)(i.min,s),(0,m.c)(i.max,r)}_computeLayerExtent(e,t){return(0,O.cS)(he),(0,a.pC)(e)&&t.objects.forAll(i=>this._expandExtent(e,i.boundingVolumeWorldSpace.min,i.boundingVolumeWorldSpace.max,he)),he}_expandExtent(e,t,i,s){for(let r=0;r<8;++r)q[0]=1&r?t[0]:i[0],q[1]=2&r?t[1]:i[1],q[2]=4&r?t[2]:i[2],this._renderCoordsHelper.fromRenderCoords(q,q,e),(0,O.pp)(s,q);return s}};(0,h._)([(0,o.Cb)({constructOnly:!0})],ce.prototype,"layer",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],ce.prototype,"stageLayer",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],ce.prototype,"view",void 0),(0,h._)([(0,o.Cb)()],ce.prototype,"spatialReference",null),ce=(0,h._)([(0,d.j)("esri.views.3d.layers.support.StageLayerElevationProvider")],ce);const he=(0,O.cS)(),fe=(0,K.cS)(),ve={spatialReference:null,extent:fe,context:"scene"},q=(0,v.c)(),we=(0,v.c)(),Ae=(0,v.c)();var Ce,pt=n(55745),yt=n(63416),te=n(42743),gt=n(57851),ut=n(34103),me=n(87091),mt=n(2004),_t=n(72642),Le=n(22490),bt=n(35540),ft=n(12874);const Se=(0,v.c)(),vt=(0,O.Ue)(),Ue="esri.views.3d.layers.graphics.Graphics3DCore",ee=W.Z.getLogger(Ue);let E=Ce=class extends w.Z{constructor(e){super(e),this._propertiesPool=new yt.L({computedExtent:mt.Z},this),this.computedExtent=null,this.currentRenderer=null,this.rendererHasGeometryOperations=!1,this._graphicStateTracking=null,this.symbolCreationContext=new $e((t,i)=>this._frameTask.schedule(t,i)),this.graphics3DGraphics=new Map,this.stageLayer=null,this.stage=null,this._graphicsDrapedUids=new Set,this._graphicsBySymbol=new Map,this._symbolConversionCache=new Map,this._symbols=new Map,this._graphicsWithoutSymbol=new Map,this._graphicsWaitingForSymbol=new Map,this._graphicsUpdateId=0,this._handles=new x.Z,this._frameTask=me.sq,this._suspendSymbolCleanup=!1,this._viewSpatialReference=null,this._arcadeOnDemand=null,this._rendererChangeAbortController=null,this._elevationInfoChangeAbortController=null,this._initializeAbortController=null,this._scaleVisibility=null,this._filterVisibility=null,this._spatialIndex=null,this.extentPadding=0,this._updatingPendingLoadedGraphicsChange=null,this._featureStore=null,this._deconflictor=null,this._labeler=null,this._objectStates=null,this._viewElevationProvider=null,this._stageLayerElevationProvider=null,this._sharedSymbolResourcesOwnerHandle=null,this._whenGraphics3DGraphicRequests={},this._pendingUpdates=new Map,this._numberOfGraphics=0,this._numberOfGraphicsProvidingElevation=0,this._pendingAdds=0,this._pendingRemoves=0,this._loadingSymbols=0,this._pendingUpdatesPool=new j.Z({allocator:t=>t||new Ct,deallocator:t=>(t.clear(),t)}),this._symbolWarningLogged=!1,this._geometryWarningLogged=!1,this._objectIdInvisibleSet=new Set,this._whenSymbolRemoved=new j.Z,this.preferredUpdatePolicy=te.jq.SYNC,this.forcedUpdatePolicy=null,this.elevationFeatureExpressionEnabled=!0,this.owner=null,this.layer=null,this.graphicSymbolSupported=!0,this.getRenderingInfoWithoutRenderer=!1,this.setUidToIdOnAdd=!0,this.hasZ=null,this.hasM=null,this._usedMemory=0,this._visible=void 0,this._startCreateGraphics=!1}get spatialIndex(){return this._spatialIndex||(this._spatialIndex=new le({objectIdField:this.owner.layer?.objectIdField,spatialReference:this._viewSpatialReference,hasZ:this.hasZ,hasM:this.hasM}),this._spatialIndex.setup(Array.from(this.graphics3DGraphics.values()))),this._spatialIndex.update(),this._spatialIndex}get numberOfGraphics(){return this._numberOfGraphics}get effectiveUpdatePolicy(){return(0,a.pC)(this.currentRenderer)&&"dictionary"===this.currentRenderer.type?te.jq.ASYNC:(0,a.Pt)(this.forcedUpdatePolicy,this.preferredUpdatePolicy)}get featureStore(){return this._featureStore}get initializePromise(){return this._initializePromise}get scaleVisibility(){return this._scaleVisibility}get elevationAlignment(){return this._elevationAlignment}get objectStates(){return this._objectStates}get filterVisibility(){return this._filterVisibility}get updating(){return!!(this._graphicsWaitingForSymbol.size>0||this.running||this._elevationAlignment?.updating||(0,a.pC)(this._scaleVisibility)&&this._scaleVisibility.updating||(0,a.pC)(this._filterVisibility)&&this._filterVisibility.updating||this._rendererChangeAbortController||this._elevationInfoChangeAbortController||this._updatingPendingLoadedGraphicsChange||this._frameTask.updating||this._loadingSymbols>0)}get running(){return this._pendingUpdates.size>0||!!this._spatialIndex?.updating}get suspendedOrOutsideOfView(){return this.owner.suspended||this.owner.suspendInfo?.outsideOfView}get updatingRemaining(){return this.updating?this._pendingUpdates.size+.1*(this._spatialIndex?.updatingRemaining||0)+.1*(this._elevationAlignment?.updatingRemaining||0):0}get displayFeatureLimit(){const e=this.owner&&this.owner.view&&this.owner.view.qualitySettings,t=e?e.graphics3D.minTotalNumberOfFeatures:0,i=e?e.graphics3D.maxTotalNumberOfFeatures:0,s=e?e.graphics3D.maxTotalNumberOfPrimitives:0,r=this.averageSymbolComplexity,y=Math.max(1,(0,a.pC)(r)?r.primitivesPerFeature:1),b=(0,a.pC)(r)&&r.drawCallsPerFeature>0?i/r.drawCallsPerFeature*.3:i,I=Math.ceil(s/y),P=Math.max(t,Math.min(i,I,b)),U=this._get("displayFeatureLimit");return U&&U.minimumTotalNumberOfFeatures===t&&U.maximumTotalNumberOfFeatures===i&&U.maximumTotalNumberOfPrimitives===s&&U.averageSymbolComplexity===r&&U.maximumNumberOfFeatures===P?U:{minimumTotalNumberOfFeatures:t,maximumTotalNumberOfFeatures:i,maximumTotalNumberOfPrimitives:s,averageSymbolComplexity:r,maximumNumberOfFeatures:P}}get averageSymbolComplexity(){const e=(0,Re.bz)(this._symbolComplexities),t=this._get("averageSymbolComplexity");return 0===e.numComplexities||(0,a.pC)(t)&&(e.estimated&&(t.primitivesPerFeature>=e.primitivesPerFeature||t.primitivesPerCoordinate>=e.primitivesPerCoordinate||t.drawCallsPerFeature>=e.drawCallsPerFeature)||t.primitivesPerFeature===e.primitivesPerFeature&&t.primitivesPerCoordinate===e.primitivesPerCoordinate&&t.drawCallsPerFeature===e.drawCallsPerFeature)?t:e}get usedMemory(){const e=(0,a.pC)(this.averageSymbolComplexity)&&this.labelsEnabled?this.averageSymbolComplexity.memory.bytesPerFeatureLabel*this._numberOfGraphics:0,t=this._getSymbolComplexitiesUsed().reduce((i,s)=>i+s.memory.resourceBytes,0);return this._usedMemory+e+t}get usedMemoryPerGraphic(){return this._usedMemory&&this._numberOfGraphics?(this._pendingAdds+this._pendingRemoves)/this._numberOfGraphics>20?0:this._usedMemory/this._numberOfGraphics:(0,a.pC)(this.averageSymbolComplexity)?this.averageSymbolComplexity.memory.bytesPerFeature+(this.labelsEnabled?this.averageSymbolComplexity.memory.bytesPerFeatureLabel:0):0}get unprocessedMemoryEstimate(){return Math.max(0,(this._pendingAdds-this._pendingRemoves)*this.usedMemoryPerGraphic)}get _symbolComplexities(){return this.currentRenderer?this._getSymbolComplexitiesUsedOrRenderer(this.currentRenderer):this._getSymbolComplexitiesUsed()}_getConvertedSymbol(e){if("web-style"===e.type)return e.clone();const t=this._symbolConversionCache.get(e.id);if((0,a.pC)(t))return t;const i=(0,De.q)(e,{geometryType:this.layer?.geometryType,retainId:!0,hasLabelingContext:this._hasLabelingContext(e)}),s=i.symbol||null;return(0,a.Wi)(s)&&i.error&&ee.error(i.error.message),this._symbolConversionCache.set(e.id,s),s}_getSymbolComplexitiesUsedOrRenderer(e){if((0,a.Wi)(e))return[];const t=e.getSymbols(),i="backgroundFillSymbol"in e&&e.backgroundFillSymbol;if(!(i||t&&t.length))return[];const s=[],r=this._getSymbolComplexityUsedOrRenderer(i);(0,a.pC)(r)&&s.push(r);for(const y of t){const b=this._getSymbolComplexityUsedOrRenderer(y);(0,a.pC)(b)&&s.push(b)}return s}_getSymbolComplexityUsedOrRenderer(e){if((0,a.Wi)(e))return null;const t=this._symbols.get(e.id);if((0,a.pC)(t))return t.complexity;const i=this._getConvertedSymbol(e);return(0,a.pC)(i)?(0,Re.V9)(i):null}_getSymbolComplexitiesUsed(){const e=[];return this._symbols.forEach(t=>{(0,a.pC)(t)&&e.push(t.complexity)}),e}get _objectIdField(){return this.layer.objectIdField}initialize(){this._viewSpatialReference=this.owner.view.spatialReference,this._featureStore=new se({objectIdField:this.owner.layer&&this.owner.layer.objectIdField,hasZ:this.hasZ,hasM:this.hasM,viewSpatialReference:this._viewSpatialReference,featureSpatialReference:this.owner.featureSpatialReference,getSpatialIndex:()=>this.spatialIndex,forEach:i=>this.graphics3DGraphics.forEach(i),toArray:()=>Array.from(this.graphics3DGraphics.values())});const e=(i,s,r)=>this.spatialIndex.queryGraphicUIDsInExtent(i,s,r),{componentFactories:t}=this;if((0,a.pC)(t.elevationAlignment)){const i=t.elevationAlignment(this,e);this._elevationAlignment=i}if((0,a.pC)(t.scaleVisibility)){const i=t.scaleVisibility(this,e);this._scaleVisibility=i}if((0,a.pC)(t.filterVisibility)){const i=t.filterVisibility({featureStore:this._featureStore,getFeatureCount:()=>this.graphics3DGraphics.size,updateFeatureVisibilities:s=>this.modifyGraphics3DGraphicVisibilities(r=>r.setVisibilityFlag(ie.P.FILTER,s((0,J.MS)(r.graphic,this._objectIdField)),ie.E.GRAPHIC)),setAllFeaturesVisibility:s=>this.modifyGraphics3DGraphicVisibilities(r=>r.setVisibilityFlag(ie.P.FILTER,s,ie.E.GRAPHIC)),clearFeaturesVisibility:()=>this.modifyGraphics3DGraphicVisibilities(s=>s.clearVisibilityFlag(ie.P.FILTER))});this._filterVisibility=i}if((0,a.pC)(t.deconflictor)){const i=t.deconflictor(this);this._deconflictor=i}if((0,a.pC)(t.labeler)&&(0,a.pC)(this._scaleVisibility)){const i=t.labeler(this,this._scaleVisibility);this._labeler=i}if((0,a.pC)(t.objectStates)){const i=t.objectStates(this);this._objectStates=i}this._initializeAbortController=new AbortController,this._initializePromise=this._initializeAsync()}_initializeAsync(){var e=this;return(0,G.Z)(function*(){const t=e._initializeAbortController.signal,i=e.owner.view;e._viewElevationProvider=new Ke.Y(e._viewSpatialReference,i),e._initializeStage(i,e.layer.uid),e.symbolCreationContext.sharedResources=i.sharedSymbolResources,e._sharedSymbolResourcesOwnerHandle=i.sharedSymbolResources.addGraphicsOwner(e.owner),(0,a.pC)(e.currentRenderer)&&(e.symbolCreationContext.renderer=e.currentRenderer),e.symbolCreationContext.stage=e.stage,e.symbolCreationContext.streamDataRequester=i.sharedSymbolResources.streamDataRequester,e.symbolCreationContext.renderCoordsHelper=i.renderCoordsHelper,e.symbolCreationContext.layer=e.layer,e.symbolCreationContext.graphicsCoreOwner=e.owner,e.symbolCreationContext.localOriginFactory=new gt.C(i.renderSpatialReference),e.symbolCreationContext.elevationProvider=i.elevationProvider,e.symbolCreationContext.notifyGraphicGeometryChanged=r=>e.notifyGraphicGeometryChanged(r),e.symbolCreationContext.notifyGraphicVisibilityChanged=r=>e.notifyGraphicVisibilityChanged(r);const s=(0,ue.WI)(e.layer.elevationInfo,e.elevationFeatureExpressionEnabled);if(e.symbolCreationContext.featureExpressionInfoContext=yield(0,ue.kr)(s,e._viewSpatialReference,t,ee),(0,Z.k_)(t),e.symbolCreationContext.screenSizePerspectiveEnabled=i.screenSizePerspectiveEnabled&&e.layer.screenSizePerspectiveEnabled,e.symbolCreationContext.slicePlaneEnabled=!!e.owner.slicePlaneEnabled,e.symbolCreationContext.physicalBasedRenderingEnabled=!!e.owner.view.qualitySettings?.physicallyBasedRenderingEnabled,e.symbolCreationContext.skipHighSymbolLods=!!e.owner.view.qualitySettings?.graphics3D?.skipHighSymbolLods,"drapeSourceType"in e.owner){const{owner:r}=e;e.symbolCreationContext.drapeSourceRenderer=i.basemapTerrain.overlayManager.registerGeometryDrapeSource(r),e._handles.add((0,L.kB)(()=>i.basemapTerrain.overlayManager.unregisterDrapeSource(r)))}e._handles.add([(0,T.YP)(()=>e.suspendedOrOutsideOfView,()=>e._frameTask.reschedule(()=>e._updateLayerVisibility())),(0,T.YP)(()=>[e.layer?.screenSizePerspectiveEnabled,e.owner.view.screenSizePerspectiveEnabled],()=>{const r=i.screenSizePerspectiveEnabled&&e.layer.screenSizePerspectiveEnabled;r!==e.symbolCreationContext.screenSizePerspectiveEnabled&&(e.symbolCreationContext.screenSizePerspectiveEnabled=r,e._labeler?.reset(),e.recreateAllGraphicsAndSymbols())}),(0,T.YP)(()=>e.owner.slicePlaneEnabled,r=>e._slicePlaneEnabledChange(!!r)),(0,T.YP)(()=>e.owner.view.state?.pixelRatio,()=>e._pixelRatioChange()),(0,T.YP)(()=>!!e.owner.view.qualitySettings?.physicallyBasedRenderingEnabled,r=>e._physicalBasedRenderingChange(r)),(0,T.YP)(()=>!!e.owner.view.qualitySettings?.graphics3D?.skipHighSymbolLods,r=>e._skipHighSymbolLoDsChange(r)),(0,T.gx)(()=>i.basemapTerrain?.tilingScheme,r=>{!r.spatialReference.equals(e.symbolCreationContext.overlaySR)&&(0,a.pC)(i.basemapTerrain.spatialReference)&&(e.symbolCreationContext.overlaySR=i.basemapTerrain.spatialReference),e._handles.has("loaded-graphics")?e.recreateAllGraphics():e._handles.add([(0,T.on)(()=>e.owner?.loadedGraphics,"change",b=>{e._graphicsCollectionChanged(b),e._signalUpdatingDuringAsyncLoadedGraphicsChange()},{onListenerAdd:()=>{e.recreateAllGraphics(),e._signalUpdatingDuringAsyncLoadedGraphicsChange()}})],"loaded-graphics")},{initial:!0}),(0,T.YP)(()=>e.effectiveUpdatePolicy,r=>{(0,a.pC)(e.stageLayer)&&(e.stageLayer.updatePolicy=r),e.symbolCreationContext.isAsync=e.effectiveUpdatePolicy===te.jq.ASYNC,r===te.jq.SYNC&&e.runTask(me.G5)},T.tX)]),e._frameTask=i.resourceController.scheduler.registerTask(me.T8.GRAPHICS_CORE,e),e.layer&&"featureReduction"in e.layer&&e._handles.add((0,T.YP)(()=>e.layer.featureReduction,()=>e._deconflictor.featureReductionChange())),e.notifyChange("averageSymbolComplexity"),e.rendererChange(e.owner.renderer).catch(()=>{}),e._initializeAbortController=null})()}_abortInitialize(){this._initializeAbortController&&(this._initializeAbortController.abort(),this._initializeAbortController=null)}destroy(){this._abortInitialize(),this._abortRendererChange(),this._abortElevationInfoChange(),this.owner.view.deconflictor.removeGraphicsOwner(this),this.owner.view.labeler.removeGraphicsOwner(this),this._elevationAlignment=(0,a.SC)(this._elevationAlignment),this._scaleVisibility=(0,a.SC)(this._scaleVisibility),this._filterVisibility=(0,a.SC)(this._filterVisibility),this._deconflictor=null,this._labeler=null,this._objectStates=(0,a.SC)(this._objectStates),this.clear(),this._featureStore=(0,a.SC)(this._featureStore),this._updatingPendingLoadedGraphicsChange=(0,a.hw)(this._updatingPendingLoadedGraphicsChange),this._graphicStateTracking=(0,a.SC)(this._graphicStateTracking),this.stage&&(this.stage.remove(this.stageLayer),this.stageLayer=null,this.stage=null),this._handles=(0,a.SC)(this._handles),this._frameTask.remove(),this._frameTask=me.sq,this._viewSpatialReference=null,this._set("owner",null);for(const e in this._whenGraphics3DGraphicRequests)this._whenGraphics3DGraphicRequests[e].reject(new f.Z("graphic:layer-destroyed","Layer has been destroyed"));this._whenGraphics3DGraphicRequests=null,this._sharedSymbolResourcesOwnerHandle=(0,a.hw)(this._sharedSymbolResourcesOwnerHandle),this._propertiesPool=(0,a.SC)(this._propertiesPool),this._pendingUpdatesPool=null,this._symbolConversionCache.clear(),this._objectIdInvisibleSet.clear(),this._spatialIndex=(0,a.SC)(this._spatialIndex)}clear(){this._objectStates?.allGraphicsDeleted(),(0,a.pC)(this._graphicStateTracking)&&this._graphicStateTracking.allGraphicsDeleted(),this.graphics3DGraphics.forEach(e=>e.destroy()),this._spatialIndex?.clear(),this.graphics3DGraphics.clear(),this._numberOfGraphics=0,this._usedMemory=0,this._updateLayerVisibility(),this._symbols.forEach(a.SC),this._symbols.clear(),this._graphicsBySymbol.clear(),this._graphicsWithoutSymbol.clear(),this._graphicsWaitingForSymbol.clear(),this._pendingUpdates.clear(),this._pendingUpdatesPool.clear(),this._pendingAdds=0,this._pendingRemoves=0,this.notifyChange("updating"),this.notifyChange("running"),this.notifyChange("updatingRemaining"),this._featureStore.events.emit("changed")}_initializeStage(e,t){this.stage=e._stage,this.stageLayer=new ut.F({isPickable:!this.suspendedOrOutsideOfView,updatePolicy:this.effectiveUpdatePolicy},t),this.stage.add(this.stageLayer);const i=this.stageLayer.events;i.on("objectTransformation",s=>this.notifyGraphicGeometryChanged(s.metadata.graphicUid)),i.on("visibilityChanged",s=>this.notifyGraphicVisibilityChanged(s.metadata.graphicUid)),i.on("objectGeometryAdded",s=>this.notifyGraphicGeometryChanged(s.object.metadata.graphicUid)),i.on("objectGeometryRemoved",s=>this.notifyGraphicGeometryChanged(s.object.metadata.graphicUid)),i.on("vertexAttrsUpdated",s=>this.notifyGraphicGeometryChanged(s.object.metadata.graphicUid))}notifyGraphicGeometryChanged(e){if((0,a.Wi)(this._graphicStateTracking)||(0,a.Wi)(e))return;const t=this.graphics3DGraphics.get(e);t&&this._graphicStateTracking.updateGraphicGeometry(t)}notifyGraphicVisibilityChanged(e){if((0,a.Wi)(this._graphicStateTracking)||(0,a.Wi)(e))return;const t=this.graphics3DGraphics.get(e);t&&this._graphicStateTracking.updateGraphicVisibility(t)}_updateLayerVisibility(){const i=!(this.suspendedOrOutsideOfView||this._numberOfGraphics>this.displayFeatureLimit.maximumNumberOfFeatures*St);i!==this._visible&&(this._visible=i,i?(this.stageLayer.isPickable=!0,this.updateAllGraphicsVisibility()):(this.stageLayer.isPickable=!1,this._hideAllGraphics()),this._updateStageLayerVisibility())}_updateStageLayerVisibility(){this.stageLayer.isVisible=this._visible&&(null==this.layer.opacity||this.layer.opacity>0)}getGraphics3DGraphicById(e){return this.graphics3DGraphics.get(e)}getGraphics3DGraphicByObjectId(e){return this.owner.layer?.objectIdField?this._findGraphics3DGraphicByObjectId(e):null}_getGraphicObjectID(e,t=this.owner.layer&&this.owner.layer.objectIdField){return(0,J.MS)(e,t)}get graphics3DGraphicsByObjectID(){const e=this.owner.layer&&this.owner.layer.objectIdField;if(!e)return null;const t=new Map;return this.graphics3DGraphics.forEach(i=>{if(!i)return;const r=this._getGraphicObjectID(i.graphic,e);(0,a.pC)(r)&&t.set(r,i)}),t}get labelsEnabled(){return!(!this._labeler||!this._labeler.layerLabelsEnabled())}updateLabelingInfo(e){var t=this;return(0,G.Z)(function*(){const i=t._deconflictor&&t._deconflictor.labelingInfoChange(e),s=t._labeler&&t._labeler.labelingInfoChange(e);yield(0,Z.as)([i,s])})()}updateVisibilityInfo(){this._deconflictor&&this._deconflictor.labelingInfoChange(),this._labeler&&this._labeler.visibilityInfoChange()}get symbolUpdateType(){if(this._pendingUpdates.size>0)return"unknown";let e=0,t=0;return(0,g.oE)(this._symbols,(i,s)=>{if((0,a.pC)(i)){const r=i.getFastUpdateStatus();if(r.loading>0)return!0;this._graphicsBySymbol.has(s)&&(t+=r.fast,e+=r.slow)}return!1})?"unknown":t>=0&&0===e?"fast":e>=0&&0===t?"slow":"mixed"}runTask(e){this._frameTask.processQueue(e),this._applyPendingUpdates(e),this.notifyChange("running"),this.running||this.notifyChange("updating"),this.notifyChange("updatingRemaining")}setObjectIdVisibility(e,t){t?this._objectIdInvisibleSet.delete(e):this._objectIdInvisibleSet.add(e);const i=this._findGraphics3DGraphicByObjectId(e);(0,a.pC)(i)&&this._updateUserVisibility(i)}_findGraphics3DGraphicByObjectId(e){return(0,g.fQ)(this.graphics3DGraphics,t=>this._getGraphicObjectID(t.graphic)===e)}_updateUserVisibility(e){if((0,a.Wi)(e))return!1;const t=e.graphic,i=this._getGraphicObjectID(t),s=t.visible&&!this.owner.suspended&&((0,a.Wi)(i)||!this._objectIdInvisibleSet.has(i));return e.setVisibilityFlag(ie.P.USER_SETTING,s,ie.E.GRAPHIC)}_whenGraphics3DGraphic(e){const t=this.graphics3DGraphics.get(e.uid);if(t)return Promise.resolve(t);const i=this._whenGraphics3DGraphicRequests[e.uid];if(i)return i.promise;const s=(0,Z.dD)();return this._whenGraphics3DGraphicRequests[e.uid]=s,s.promise}_boundsForGraphics3DGraphic(e,t){var i=this;return(0,G.Z)(function*(){const s=i._viewSpatialReference,r=i.owner.view.renderSpatialReference,y=i.owner.view.basemapTerrain.spatialReference,P=i._viewElevationProvider?{service:i._viewElevationProvider,useViewElevation:(0,a.pC)(t)&&t.useViewElevation,minDemResolution:(0,a.pC)(t)&&t.minDemResolution,minDemResolutionForPoints:i.owner.view.resolution}:null,U=yield e.getProjectedBoundingBox((z,oe,Ee)=>(0,S.CM)(z,r,oe,z,s,oe,Ee),(z,oe,Ee)=>(0,S.CM)(z,y,oe,z,s,oe,Ee),P,(0,a.U2)(t,"signal"));if(!U)return null;const Q=U.boundingBox;if(U.requiresDrapedElevation){const z=i.symbolCreationContext.elevationProvider;if(z){(0,O.be)(Q,Se);const oe=(0,a.Pt)(z.getElevation(Se[0],Se[1],0,s,"ground"),0);Q[2]=Math.min(Q[2],oe),Q[5]=Math.max(Q[5],oe)}}return{boundingBox:Q,screenSpaceObjects:U.screenSpaceObjects}})()}whenGraphicBounds(e,t){var i=this;return(0,G.Z)(function*(){yield(0,T.N1)(()=>i.owner?.loadedGraphics);const s=i.owner.layer&&i.owner.layer.objectIdField,r=i.owner.loadedGraphics.find(b=>b===e||s&&b.attributes&&e.attributes&&b.attributes[s]===e.attributes[s]);if(!r)throw new f.Z("internal:graphic-not-part-of-view","Graphic is not part of this view");const y=yield i._whenGraphics3DGraphic(r);return i._boundsForGraphics3DGraphic(y,t)})()}computeAttachmentOrigin(e,t){const i=this.graphics3DGraphics.get(e.uid);if(!i)return null;const s=i.computeAttachmentOrigin();if(0===s.render.num&&0===s.draped.num)return null;(0,m.s)(ne,0,0,0);let r=0;if(s.render.num>0){if(!(0,S.SH)(s.render.origin,this.symbolCreationContext.renderCoordsHelper.spatialReference,ye,t))return null;(0,m.a)(ne,ne,ye),r++}if(s.draped.num>0){const[y,b]=s.draped.origin,I=(0,a.Pt)(this._viewElevationProvider.getElevation(y,b,"ground"),0);if((0,m.s)(ye,y,b,I),!(0,S.SH)(ye,this._viewElevationProvider.spatialReference,ye,t))return null;(0,m.a)(ne,ne,ye),r++}return r>1&&(0,m.g)(ne,ne,1/r),new _t.Z({x:ne[0],y:ne[1],z:ne[2],spatialReference:t})}getSymbolLayerSize(e,t){const i=this._symbols.get(e.id);if((0,a.Wi)(i))throw new f.Z("internal:symbol-not-part-of-view","Symbol is not part of this view");const s=e.symbolLayers.indexOf(t);if(-1===s)throw new f.Z("internal:missing-symbol-layer","Symbol layer is not in symbol");const r=i.getSymbolLayerSize(s);if(null==r)throw new f.Z("internal:missing-size","Symbol layer has no valid size");return r}_graphicsCollectionChanged(e){this._startCreateGraphics&&(this.add(e.added),this.remove(e.removed))}graphicUpdateHandler(e){const t=e.graphic.uid,i=this.graphics3DGraphics.get(t);if(!(0,a.Wi)(i)||!(0,a.Wi)(this._graphicsWithoutSymbol.get(t)))switch(e.property){case"visible":this._graphicUpdateVisibleHandler(i);break;case"geometry":this._graphicUpdateGeometryHandler(i,e);break;case"symbol":this._graphicUpdateSymbolHandler(i,e);break;case"attributes":break;case"transform":this._graphicUpdateTransformHandler(i,e)}}_graphicUpdateGeometryHandler(e,t){const i=t.graphic.geometry;if((0,a.Wi)(i))return void this._recreateGraphic(t.graphic);if((0,a.Wi)(e)){const r=t.graphic.symbol&&t.graphic.symbol.id;if(r){const y=this._symbols.get(r);if((0,a.pC)(y)&&y.loadStatus===at.P.LOADING)return}return void this._recreateGraphic(t.graphic)}const s=e.graphics3DSymbol;!(0,a.Wi)(t.newValue)&&s.updateGeometry(e,t.newValue)||this._recreateGraphic(e.graphic),this._expandComputedExtent(i)}_graphicUpdateSymbolHandler(e,t){const i=t.graphic,s=(0,a.pC)(e)?e.graphics3DSymbol:(0,a.pC)(t.oldValue)?this._symbols.get(t.oldValue.id):null;if((0,a.Wi)(s)||(0,a.Wi)(t.newValue))return void this._recreateGraphic(i);const r=s.symbol,y=this._getConvertedSymbol(t.newValue);if((0,a.pC)(y)&&(y.type!==r.type||"web-style"===y.type)||"web-style"===r.type)return void this._recreateGraphic(i);const b=this._graphicsBySymbol.get(r.id);if(b&&1!==b.size)return void this._recreateGraphic(i);const I=(0,_.Hg)(r,y);if((0,a.Wi)(I))return void this._updateSymbolMapping(r.id,y);const P={diff:I,graphics3DGraphicPatches:[],symbolStatePatches:[]};if(s.prepareSymbolPatch(P),!(0,_.xb)(P.diff))return void this._recreateGraphic(i);const U=this._getRenderingInfo(i);if((0,a.Wi)(U))return void this._recreateGraphic(i);const Q=s.extentPadding;for(const z of P.symbolStatePatches)z();if(Q!==s.extentPadding&&this._recomputeExtentPadding(),(0,a.pC)(e))for(const z of P.graphics3DGraphicPatches)z(e,U);this._updateSymbolMapping(r.id,y)}_graphicUpdateVisibleHandler(e){this._updateUserVisibility(e)&&(this._labeler&&this.owner.view.labeler.setDirty(),this.owner.view.deconflictor.setDirty())}_graphicUpdateTransformHandler(e,t){}recreateGraphics(e){this._suspendSymbolCleanup=!0,this.remove(e),this.add(e),this._suspendSymbolCleanup=!1,this.effectiveUpdatePolicy===te.jq.SYNC&&this._cleanupSymbols()}_recreateGraphic(e){this.recreateGraphics([e])}_beginGraphicUpdate(e){const t=this._graphicsUpdateId;return this._graphicsUpdateId++,this._graphicsWaitingForSymbol.set(e.uid,t),1===this._graphicsWaitingForSymbol.size&&this.notifyChange("updating"),t}_endGraphicUpdate(e){e&&(this._graphicsWaitingForSymbol.delete(e.uid),0===this._graphicsWaitingForSymbol.size&&(this._cleanupSymbols(),this.notifyChange("updating")))}_recomputeExtentPadding(){let e=0;this._symbols.forEach(t=>{(0,a.pC)(t)&&(e=Math.max(e,t.extentPadding))}),this._set("extentPadding",e)}_expandComputedExtent(e){const t=vt,i=e.spatialReference;(0,J.FS)(e,t);const s=this._viewSpatialReference,r=Ce.tmpVec;if((0,F.fS)(i,s)||(0,S.Rg)(t[0],t[1],0,i,r,s)&&(t[0]=r[0],t[1]=r[1],(0,S.Rg)(t[3],t[4],0,i,r,s),t[3]=r[0],t[4]=r[1]),!(isFinite(t[0])&&isFinite(t[3])&&isFinite(t[1])&&isFinite(t[4])))return;const y=this.computedExtent;let b=null;const I=isFinite(t[2])&&isFinite(t[5]),P=I&&(!y||null==y.zmin||t[2]y.zmax);y?(t[0]y.xmax||t[4]>y.ymax||P||U)&&(b=this._propertiesPool.get("computedExtent"),b.xmin=Math.min(t[0],y.xmin),b.ymin=Math.min(t[1],y.ymin),b.xmax=Math.max(t[3],y.xmax),b.ymax=Math.max(t[4],y.ymax),b.spatialReference=s):(b=this._propertiesPool.get("computedExtent"),b.xmin=t[0],b.ymin=t[1],b.xmax=t[3],b.ymax=t[4],b.spatialReference=s),b&&(P&&(b.zmin=t[2]),U&&(b.zmax=t[5]),this._set("computedExtent",b))}_abortElevationInfoChange(){this._elevationInfoChangeAbortController&&(this._elevationInfoChangeAbortController.abort(),this._elevationInfoChangeAbortController=null)}elevationInfoChange(){var e=this;return(0,G.Z)(function*(){e._abortElevationInfoChange();const t=new AbortController;e._elevationInfoChangeAbortController=t;const i=(0,ue.WI)(e.layer.elevationInfo,e.elevationFeatureExpressionEnabled);e.symbolCreationContext.featureExpressionInfoContext=yield(0,ue.kr)(i,e._viewSpatialReference,t.signal,ee),(0,Z.k_)(t.signal),e._elevationInfoChangeAbortController=null,e._labeler?.elevationInfoChange(),e.forEachGraphics3DSymbol((s,r,y)=>{s.globalPropertyChanged("elevationInfo",r)?r.forEach(b=>{const I=b.graphic,P=b.labelGraphics;for(const U of P)U.graphics3DSymbolLayer.updateGraphicElevationContext(I,U)}):e._recreateSymbol(y)}),e.updateStageLayerElevationProvider(),e._elevationAlignment?.elevationInfoChange()})()}updateStageLayerElevationProvider(){this._stageLayerElevationProvider?(this.layer.elevationInfo&&"relative-to-scene"===this.layer.elevationInfo.mode||0===this._numberOfGraphicsProvidingElevation)&&(this.owner.view.elevationProvider.unregister(this._stageLayerElevationProvider),this._stageLayerElevationProvider.dispose(),this._stageLayerElevationProvider=null):(!this.layer.elevationInfo||this.layer.elevationInfo&&"relative-to-scene"!==this.layer.elevationInfo.mode)&&this._numberOfGraphicsProvidingElevation>0&&(this._stageLayerElevationProvider=new ce({layer:this.layer,stageLayer:this.stageLayer,view:this.owner.view}),this.owner.view.elevationProvider.register("scene",this._stageLayerElevationProvider))}_clearSymbolsAndGraphics(){this.clear(),(0,a.pC)(this._filterVisibility)&&this._filterVisibility.clear(),this._labeler?.reset(),this._deconflictor?.clear(),this._elevationAlignment?.clear(),this.stageLayer?.invalidateSpatialQueryAccelerator(),this._stageLayerElevationProvider&&(this.owner.view.elevationProvider.unregister(this._stageLayerElevationProvider),this._stageLayerElevationProvider.dispose(),this._stageLayerElevationProvider=null)}startCreateGraphics(){this._startCreateGraphics=!0,this.recreateAllGraphics()}recreateAllGraphics(){this._recreateAllGraphics(!1)}recreateAllGraphicsAndSymbols(){this._recreateAllGraphics(!0)}_recreateAllGraphics(e=!1){if(!this._startCreateGraphics)return;const{loadedGraphics:t,view:i}=this.owner,s=i.basemapTerrain.tilingScheme&&t&&t.length?t.toArray():null;!e&&s||this._clearSymbolsAndGraphics(),this.symbolCreationContext.screenSizePerspectiveEnabled=this.owner.view.screenSizePerspectiveEnabled&&this.layer.screenSizePerspectiveEnabled,this.symbolCreationContext.slicePlaneEnabled=!!this.owner.slicePlaneEnabled,this._set("computedExtent",null),s&&(e?this.add(s):this.recreateGraphics(s))}_recreateSymbol(e){const t=this._graphicsBySymbol.get(e),i=[];t&&(t.forEach((r,y)=>{const b=r.usedMemory;this._conditionalRemove(r,y),this._spatialIndex?.remove(r),i.push(r.graphic),r.destroy(),this._removeGraphics3DGraphic(y,b),this._updateLayerVisibility(),this._featureStore.events.emit("changed")}),this._graphicsBySymbol.set(e,new Map));const s=this._symbols.get(e);(0,a.SC)(s),this._symbols.delete(e),this.add(i)}_recreateGraphicsForSymbol(e){const t=this._graphicsBySymbol.get(e);if(t){const i=[];t.forEach(s=>i.push(s.graphic)),this.recreateGraphics(i)}}_conditionalRemove(e,t){this._graphicsDrapedUids.delete(t),this._objectStates?.removeGraphic(e),this._labeler?.removeGraphic(e),this._deconflictor?.removeGraphic(e),(0,a.pC)(this._graphicStateTracking)&&this._graphicStateTracking.removeGraphic(e)}add(e){e&&0!==e.length&&(this.owner.view.basemapTerrain&&this.owner.view.basemapTerrain.tilingScheme?(this._updatePolicyForGraphics(e)===te.jq.ASYNC?this._addDelayed(e):this._addImmediate(e),this.notifyChange("updating")):ee.error("#add()","Cannot add graphics before terrain surface has been initialized"))}_updatePolicyForGraphics(e){if(this.effectiveUpdatePolicy===te.jq.SYNC&&("mesh"===this.layer.geometryType||null==this.layer.geometryType))for(const t of e)if((0,a.pC)(t.geometry)&&"mesh"===t.geometry.type&&!t.geometry.loaded)return te.jq.ASYNC;return this.effectiveUpdatePolicy}_addImmediate(e){this._geometryWarningLogged=!1,this._symbolWarningLogged=!1;for(const t of e)this._addGraphic(t,this._getRenderingInfo(t,ee),te.jq.SYNC);this._cleanupSymbols(),this._labeler&&(this.owner.view.labeler.setDirty(),this._cleanupSymbols()),this.owner.view.deconflictor.setDirty()}_addDelayed(e){for(const t of e){const i=t.uid;let s=this._pendingUpdates.get(i);s?s.add?s.state!==N.NEW&&s.abortController.abort():this._pendingAdds++:(s=this._pendingUpdatesPool.pushNew(),this._pendingAdds++,this._pendingUpdates.set(i,s)),s.add=t}this.notifyChange("running"),this.notifyChange("updatingRemaining")}remove(e){this.effectiveUpdatePolicy===te.jq.ASYNC?this._removeDelayed(e):this._removeImmediate(e),this.notifyChange("updating")}_removeImmediate(e){for(const t of e)this._removeGraphic(t);this._cleanupSymbols(),this._labeler&&this.owner.view.labeler.setDirty(),this.owner.view.deconflictor.setDirty()}_removeDelayed(e){for(const t of e){const i=t.uid,s=this._pendingUpdates.get(i);if(s)s.add&&(s.remove?s.add=null:this._pendingUpdates.delete(i),s.state===N.LOADING&&s.abortController.abort(),this._pendingAdds--);else{const r=this._pendingUpdatesPool.pushNew();r.remove=t,this._pendingUpdates.set(i,r),this._pendingRemoves++}}0===this._pendingUpdates.size&&this._finishPendingUpdates(),this.notifyChange("running"),this.notifyChange("updatingRemaining")}_finishPendingUpdates(){this._pendingUpdatesPool.clear(),this._cleanupSymbols(),(this._pendingAdds||this._pendingRemoves)&&ee.warn("pendingAdds/Removes in inconsistent state!"),this._pendingAdds=0,this._pendingRemoves=0}_applyPendingUpdates(e){if(this._geometryWarningLogged=!1,this._symbolWarningLogged=!1,0===this._pendingUpdates.size&&this._spatialIndex?.updating)this._spatialIndex.update();else{for(const[t,i]of this._pendingUpdates){if(e.done)break;i.add&&i.state===N.NEW&&this._processPendingUpdateNew(i);let s=this.effectiveUpdatePolicy;if(!i.remove||i.add&&i.state!==N.READY||(this._pendingRemoves--,e.madeProgress(),this._removeGraphic(i.remove),i.remove=null,s=te.jq.SYNC),i.add)switch(i.state){case N.READY:this._addGraphic(i.add,i.renderingInfo,s),i.add=null,this._pendingAdds--,e.madeProgress();break;case N.REJECTED:i.add=null,this._pendingAdds--}null==i.remove&&null==i.add&&this._pendingUpdates.delete(t)}0===this._pendingUpdates.size&&(this._finishPendingUpdates(),this.notifyChange("running"))}}_processPendingUpdateNew(e){if(!e.add)return void(e.state=N.READY);const t=e.add.geometry;(0,a.pC)(t)&&"mesh"===t.type&&!t.loaded?this._processPendingUpdateNewMesh(e,t):this._processPendingUpdateNewRenderingInfo(e)}_processPendingUpdateNewMesh(e,t){var i=this;return(0,G.Z)(function*(){e.state=N.LOADING,e.abortController=new AbortController;const s=e.abortController.signal;try{yield t.load({signal:s})}catch(r){return i._processPendingUpdateNewError(e,r)}e.abortController=null,i._processPendingUpdateNewRenderingInfo(e)})()}_processPendingUpdateNewError(e,t){e.abortController=null,e.state=(0,Z.D_)(t)?N.NEW:N.REJECTED}_processPendingUpdateNewRenderingInfo(e){var t=this;return(0,G.Z)(function*(){if((0,a.Wi)(t.layer.renderer)||"dictionary"!==t.layer.renderer.type)return e.renderingInfo=t._getRenderingInfo(e.add,ee),void(e.state=N.READY);e.state=N.LOADING,e.abortController=new AbortController;let i=null;try{i=yield t._getRenderingInfoAsync(e.add,{signal:e.abortController.signal})}catch(s){return e.abortController=null,void(e.state=(0,Z.D_)(s)?N.NEW:N.REJECTED)}(0,a.Wi)(i)||(0,a.Wi)(i.symbol)?(ee&&!t._symbolWarningLogged&&(t._symbolWarningLogged=!0,ee.warn(`Graphic in layer ${t.layer.id} has no symbol and will not render`)),e.renderingInfo=null):e.renderingInfo=i,e.state=N.READY})()}_addGraphic(e,t,i){if(this._graphicsWithoutSymbol.set(e.uid,e),(0,a.Wi)(t)||(0,a.Wi)(t.symbol)||!(0,J.S6)(e))return;(0,V.Z)("enable-feature:objectAndLayerId-rendering")&&this.setUidToIdOnAdd&&this.stage.renderView._objectAndLayerIdRenderHelper.setUidToObjectAndLayerId(e.objectId,e.uid,this.layer.id,this.layer.uid,this.layer.popupEnabled);const r=this.getOrCreateGraphics3DSymbol(t.symbol,t.renderer);if((0,a.Wi)(r))return;this._expandComputedExtent(e.geometry);const y=this._beginGraphicUpdate(e),b=new Qe.Z(e,t,this.layer);let I=!1;const P=z=>{z===r.symbol.id&&(I=!0)};this._whenSymbolRemoved.push(P);const U=()=>{if(--this._loadingSymbols,!this.destroyed){if(this._whenSymbolRemoved.removeUnordered(P),this._graphicsWaitingForSymbol.get(e.uid)!==y||I||r.destroyed||this.graphicSymbolSupported&&e.symbol&&e.symbol.id!==r.symbol.id)--r.referenced,this._cleanupSymbols();else{const z=this._createGraphics3DGraphic(r,b);this._spatialIndex&&(0,a.pC)(z)&&this._spatialIndex.add(z),--r.referenced,this._endGraphicUpdate(e)}this._featureStore.events.emit("changed"),this._labeler&&this.owner.view.labeler.setDirty()}},Q=z=>{--this._loadingSymbols,this.destroyed||(this._whenSymbolRemoved.removeUnordered(P),I||((0,Z.D_)(z)?this.add([e]):r.destroyed||this._endGraphicUpdate(e)))};++this._loadingSymbols,i===te.jq.ASYNC?r.load(()=>this._frameTask.schedule(U),z=>this._frameTask.schedule(()=>Q(z))):r.load(U,Q)}_removeGraphic(e){const t=e.uid,i=this.graphics3DGraphics.get(t);if(i){i.graphics3DSymbol.onRemoveGraphic(i);const s=i.usedMemory,r=i.isElevationSource;this._conditionalRemove(i,t),this._spatialIndex?.remove(i),this._graphicsBySymbol.get(i.graphics3DSymbol.symbol.id).delete(t),this._graphicsWithoutSymbol.delete(t),this._removeGraphics3DGraphic(t,s,r),i.destroy(),this._featureStore.events.emit("changed")}else this._graphicsWithoutSymbol.delete(t),this._graphicsWaitingForSymbol.delete(t),0===this._graphicsWaitingForSymbol.size&&(this._cleanupSymbols(),this.notifyChange("updating"))}_hasLabelingContext(e){if(e instanceof Le.Z||e instanceof bt.Z){const t=this.symbolCreationContext.layer;return!!t.labelingInfo&&t.labelingInfo.some(i=>i.symbol===e)}return!1}_hasValidSymbolCreationContext(e){return!(e instanceof Le.Z&&!this._hasLabelingContext(e)&&(ee.error("LabelSymbol3D is only valid as part of a LabelClass. Using LabelSymbol3D as a renderer symbol is not supported."),1))}_getRenderingInfo(e,t){const i=e.geometry;if((0,a.Wi)(i))return t&&!this._geometryWarningLogged&&(this._geometryWarningLogged=!0,t.warn(`Graphic in layer ${this.layer.id} has no geometry and will not render`)),null;if(!(0,S.Up)(i.spatialReference,this._viewSpatialReference))return t&&!this._geometryWarningLogged&&(this._geometryWarningLogged=!0,t.warn(`Graphic in layer ${this.layer.id} has incompatible spatial reference and will not render`)),null;if(!this.graphicSymbolSupported&&(0,a.pC)(e.symbol))return t&&!this._symbolWarningLogged&&(this._symbolWarningLogged=!0,t.warn(`Graphic in layer ${this.layer.id} is not allowed to have a symbol, use a renderer instead`)),null;const s=this.rendererHasGeometryOperations?(0,ge.mW)(e,this.layer):e;let r;return r=this.owner.getRenderingInfo&&(this.getRenderingInfoWithoutRenderer||(0,a.pC)(this.currentRenderer))?this.owner.getRenderingInfo(s,this.currentRenderer,this._arcadeOnDemand):{symbol:s.symbol||Ne(s.geometry)},(0,a.Wi)(r)||(0,a.Wi)(r.symbol)?(t&&!this._symbolWarningLogged&&(this._symbolWarningLogged=!0,t.warn(`Graphic in layer ${this.layer.id} has no symbol and will not render`)),null):r}_getRenderingInfoAsync(e,t){if((0,a.Wi)(e.geometry))return ee&&!this._geometryWarningLogged&&(this._geometryWarningLogged=!0,ee.warn(`Graphic in layer ${this.layer.id} has no geometry and will not render`)),null;if(!this.graphicSymbolSupported&&(0,a.pC)(e.symbol))return ee&&!this._symbolWarningLogged&&(this._symbolWarningLogged=!0,ee.warn(`Graphic in layer ${this.layer.id} is not allowed to have a symbol, use a renderer instead`)),null;const s=this.rendererHasGeometryOperations?(0,ge.mW)(e,this.layer):e;return this.owner.getRenderingInfoAsync(s,this.currentRenderer,this._arcadeOnDemand,t)}_createGraphics3DSymbol(e,t){if(!this._hasValidSymbolCreationContext(e))return null;const i=this._getConvertedSymbol(e);if(!i)return null;let s;if((0,a.pC)(t)&&"backgroundFillSymbol"in t&&t.backgroundFillSymbol){const y=(0,De.q)(t.backgroundFillSymbol,{ignoreDrivers:!0});(0,a.pC)(y.symbol)&&"web-style"!==y.symbol.type&&"cim"!==y.symbol.type&&(s=y.symbol.symbolLayers)}const r=function tt(e,t,i){let s;return s="point-3d"===e.type?et:Pe.Z,new s(e,t,i)}(i,this.symbolCreationContext,s);return r.load(()=>{const y=r.extentPadding;y>this.extentPadding&&this._set("extentPadding",y),this.notifyChange("averageSymbolComplexity")},()=>{}),r}getOrCreateGraphics3DSymbol(e,t){let i=this._symbols.get(e.id);return void 0===i&&(i=e instanceof ft.Z?new it.Z(e,s=>this._frameTask.schedule(s),s=>this._createGraphics3DSymbol(s,t)):this._createGraphics3DSymbol(e,t),this._symbols.set(e.id,i)),(0,a.pC)(i)&&++i.referenced,i}trackGraphicState(e){return(0,a.Wi)(this._graphicStateTracking)&&(this._graphicStateTracking=new st(this)),this._graphicStateTracking.add(e)}_addGraphics3DGraphic(e){this._usedMemory+=e.usedMemory,this.graphics3DGraphics.set(e.graphic.uid,e),this._numberOfGraphics++,e.isElevationSource&&(this._numberOfGraphicsProvidingElevation++,this.updateStageLayerElevationProvider()),this._updateLayerVisibility()}_removeGraphics3DGraphic(e,t,i=!1){this._usedMemory-=t,this.graphics3DGraphics.delete(e),this._numberOfGraphics--,i&&(this._numberOfGraphicsProvidingElevation--,this.updateStageLayerElevationProvider()),this._updateLayerVisibility()}_createGraphics3DGraphic(e,t){const i=t.graphic;if(this._graphicsWithoutSymbol.delete(i.uid),!this._symbols.has(e.symbol.id))return this.add([i]),null;if(this.graphics3DGraphics.has(i.uid))return null;const s=e.createGraphics3DGraphic(t);if((0,a.Wi)(s))return null;this._addGraphics3DGraphic(s);const r=e.symbol.id;if(this._graphicsBySymbol.has(r)||this._graphicsBySymbol.set(r,new Map),this._graphicsBySymbol.get(r).set(i.uid,s),s.isDraped&&this._graphicsDrapedUids.add(i.uid),s.centroid=null,(0,a.pC)(i.geometry)&&"point"!==i.geometry.type&&(s.centroid=(0,rt.zE)(i.geometry,this._viewSpatialReference)),this._updateUserVisibility(s),(0,a.pC)(this._scaleVisibility)&&this._scaleVisibility.updateVisibility(s),(0,a.pC)(this._filterVisibility)){const{defaultVisibility:b}=this._filterVisibility;s.setVisibilityFlag(ie.P.FILTER,b,ie.E.GRAPHIC),b||this._filterVisibility.reapply()}this._deconflictor?.addGraphic(s),this._labeler?.addGraphic(s),this._objectStates?.addGraphic(s),this._deconflictor&&this.owner.view.deconflictor.setInitialIconVisibilityFlag(this,s),s.initialize(this.stage,this.stageLayer,this.owner),(0,a.pC)(this._graphicStateTracking)&&this._graphicStateTracking.addGraphic(s);const y=this._whenGraphics3DGraphicRequests[i.uid];return y&&(delete this._whenGraphics3DGraphicRequests[i.uid],y.resolve(s)),s}_abortRendererChange(){this._rendererChangeAbortController&&(this._rendererChangeAbortController.abort(),this._rendererChangeAbortController=null)}rendererChange(e){var t=this;return(0,G.Z)(function*(){if(t._abortRendererChange(),e!==t.currentRenderer)if(t._validateRenderer(e),(0,a.Wi)(e)&&t._currentRendererChange(null,!1),(0,xe.e)(e))if((0,a.pC)(e)&&e.arcadeRequired){const i=new AbortController;t._rendererChangeAbortController=i;const{arcadeUtils:s}=yield t._ensureArcade();(0,Z.k_)(i);const r=s.hasGeometryOperations(e);r&&(yield s.enableGeometryOperations(),(0,Z.k_)(i)),t.effectiveUpdatePolicy===te.jq.ASYNC?yield t._frameTask.schedule(()=>t._currentRendererChange(e,r),i.signal):t._currentRendererChange(e,r),t._rendererChangeAbortController=null}else if(t.effectiveUpdatePolicy===te.jq.ASYNC){const i=new AbortController;t._rendererChangeAbortController=i,yield t._frameTask.schedule(()=>t._currentRendererChange(e,!1),i.signal),t._rendererChangeAbortController=null}else t._currentRendererChange(e,!1);else t._currentRendererChange(e,!1)})()}_ensureArcade(){var e=this;return(0,G.Z)(function*(){return(0,a.Wi)(e._arcadeOnDemand)&&(e._arcadeOnDemand=yield(0,Me.LC)()),e._arcadeOnDemand})()}_currentRendererChange(e,t){this.currentRenderer=e,this.rendererHasGeometryOperations=t,this.symbolCreationContext.arcade=(0,a.Wg)(this._arcadeOnDemand);const i=this.symbolCreationContext.renderer;if(e===i)return;if(this._symbolConversionCache.clear(),(0,a.Wi)(e))return this.symbolCreationContext.renderer=null,void this.recreateAllGraphicsAndSymbols();const s=(0,_.Hg)(i,e);this._updateUnchangedSymbolMappings(s,e,i),this.symbolCreationContext.renderer=e,(0,a.Wi)(s)||("complete"===s.type?this.recreateAllGraphicsAndSymbols():"partial"===s.type&&(this._applyRendererDiff(s,e,i)?this._volatileGraphicsUpdated():this.recreateAllGraphicsAndSymbols()),this.notifyChange("averageSymbolComplexity"))}_diffHasSymbolChange(e){for(const t in e.diff)switch(t){case"visualVariables":case"defaultSymbol":case"uniqueValueInfos":break;case"uniqueValueGroups":case"authoringInfo":case"fieldDelimiter":delete e.diff[t];break;default:return!0}return!1}_applySymbolSetDiff(e,t,i){e=e||[],t=t||[];const s=[];for(const r of t){const y=this._graphicsBySymbol.get(r.id);y&&y.forEach((b,I)=>{const P=b.graphic,U=this.layer instanceof $.Z?this.layer:null,Q=(0,a.Wg)(this._arcadeOnDemand);if(r===i.defaultSymbol&&i.getSymbol((0,ge.mW)(P,U),{arcade:Q})===i.defaultSymbol)return;const z=b.usedMemory;e.length||i.defaultSymbol?s.push(P):this._graphicsWithoutSymbol.set(I,P);const oe=this.graphics3DGraphics.get(I);this._conditionalRemove(oe,I),b.destroy(),y.delete(I),this._removeGraphics3DGraphic(I,z),this._updateLayerVisibility()}),this._whenSymbolRemoved.forAll(b=>b(r.id))}(e.length||s.length)&&(this._graphicsWithoutSymbol.forEach(r=>s.push(r)),this._graphicsWithoutSymbol.clear(),this.add(s)),this._cleanupSymbols(),this._labeler&&this.owner.view.labeler.setDirty(),this.owner.view.deconflictor.setDirty()}_applyUniqueValueRendererDiff(e,t,i){const s=e.diff.defaultSymbol,r=e.diff.uniqueValueInfos;if(s||r){const y=r?r.added.map(I=>I.symbol):[],b=r?r.removed.map(I=>I.symbol):[];if(r)for(let I=0;I(0,a.pC)(P)?P.id:null,r=e&&e.diff,y=r&&r.defaultSymbol,b=r&&r.uniqueValueInfos;let I;if(b)I=b.unchanged.map(P=>({oldId:s(P.oldValue.symbol),newId:s(P.newValue.symbol)}));else{I=[];for(const P of i.uniqueValueInfos){const U=s(P.symbol),Q=t.uniqueValueInfos.find(z=>z.value===P.value);Q&&U!==s(Q.symbol)&&I.push({oldId:U,newId:s(Q.symbol)})}}return!y&&i.defaultSymbol&&I.push({oldId:s(i.defaultSymbol),newId:s(t.defaultSymbol)}),I}_updateSymbolMapping(e,t){const i=(0,a.pC)(t)&&t?"string"==typeof t?t:t.id:null;if(!e||e===i)return;const s=this._graphicsBySymbol.get(e);this._graphicsBySymbol.delete(e),void 0!==s&&this._graphicsBySymbol.set(i,s);const r=this._symbols.get(e);if(void 0!==r&&(this._symbols.delete(e),this._symbols.set(i,r),(0,a.pC)(r))){const y="string"==typeof t?null:t;(0,a.pC)(y)?r.symbol=y:r.symbol.id=i}}_updateUnchangedSymbolMappings(e,t,i){const s=this._calculateUnchangedSymbolMapping(e,t,i);for(const{oldId:r,newId:y}of s)this._updateSymbolMapping(r,y)}_applyRendererDiff(e,t,i){if(this._diffHasSymbolChange(e))return!1;if(t instanceof A.Z&&i instanceof A.Z&&this._applyUniqueValueRendererDiff(e,t,i)&&0===Object.keys(e.diff).length)return!0;for(const[s]of this._graphicsBySymbol){const r=this._symbols.get(s);if((0,a.pC)(r))switch(r.applyRendererDiff(e,t)){case be.W.Recreate_Symbol:this._recreateSymbol(s);break;case be.W.Recreate_Graphics:this._recreateGraphicsForSymbol(s)}}return!0}opacityChange(){this.forEachGraphics3DSymbol((e,t)=>e.globalPropertyChanged("opacity",t)),this._updateStageLayerVisibility()}_slicePlaneEnabledChange(e){e!==this.symbolCreationContext.slicePlaneEnabled&&(this.symbolCreationContext.slicePlaneEnabled=e,this.stageLayer.isSliceable=e,this.forEachGraphics3DSymbol((t,i)=>t.globalPropertyChanged("slicePlaneEnabled",i)),this._deconflictor&&this._deconflictor.slicePlaneEnabledChange(),this._labeler&&this._labeler.slicePlaneEnabledChange())}_physicalBasedRenderingChange(e){this.symbolCreationContext.physicalBasedRenderingEnabled=e,this.forEachGraphics3DSymbol((t,i,s)=>{t.globalPropertyChanged("physicalBasedRenderingEnabled",i)||this._recreateSymbol(s)})}_skipHighSymbolLoDsChange(e){this.symbolCreationContext.skipHighSymbolLods=e,this.forEachGraphics3DSymbol((t,i,s)=>this._recreateSymbol(s))}_pixelRatioChange(){this.forEachGraphics3DSymbol((e,t,i)=>{e.globalPropertyChanged("pixelRatio",t)||this._recreateSymbol(i)})}_signalUpdatingDuringAsyncLoadedGraphicsChange(){this._updatingPendingLoadedGraphicsChange&&this._updatingPendingLoadedGraphicsChange.remove(),this._updatingPendingLoadedGraphicsChange=(0,re.Os)(()=>{this._updatingPendingLoadedGraphicsChange=null})}setClippingExtent(e,t){const i=this.symbolCreationContext.clippingExtent,s=(0,K.Ue)();return this.symbolCreationContext.clippingExtent=(0,pt.G)(e,s,t)?(0,O.JR)((0,O.Ue)(),s):null,!(0,O.fS)(this.symbolCreationContext.clippingExtent,i)}modifyGraphics3DGraphicVisibilities(e){let t=!1;this.graphics3DGraphics.forEach(i=>{e(i)&&(t=!0)}),t&&(this.owner.view.labeler?.setDirty(),this.owner.view.deconflictor.setDirty())}forEachGraphics3DSymbol(e){for(const[t,i]of this._symbols){if((0,a.Wi)(i))return;e(i,this._graphicsBySymbol.get(t)||Et,t)}}updateAllGraphicsVisibility(){(0,a.pC)(this._filterVisibility)&&this._filterVisibility.reapply(),this.modifyGraphics3DGraphicVisibilities(e=>{const t=this._updateUserVisibility(e),i=(0,a.pC)(this._scaleVisibility)&&this._scaleVisibility.updateVisibility(e);return t||i})}_hideAllGraphics(){this.modifyGraphics3DGraphicVisibilities(e=>e.setVisibilityFlag(ie.P.USER_SETTING,!1,ie.E.GRAPHIC))}_validateRenderer(e){const t=(0,xe.s)(e,{geometryType:this.layer?.geometryType});t&&ee.warn(`Renderer for layer '${this.layer.title?`${this.layer.title}, `:""}, id:${this.layer.id}' is not supported in a SceneView`,t.message)}_volatileGraphicsUpdated(){this._labeler?.reset(),this.stageLayer.shaderTransformationChanged(),this.notifyChange("updating")}_cleanupSymbols(){if(this._graphicsWaitingForSymbol.size>0||this._suspendSymbolCleanup)return;let e=!1;this._symbols.forEach((t,i)=>{if((0,a.Wi)(t)||t.referenced>0)return;const s=this._graphicsBySymbol.get(i);s&&0!==s.size||(this._graphicsBySymbol.delete(i),this._symbols.delete(i),(0,a.SC)(t),e=!0)}),e&&(this._recomputeExtentPadding(),this.notifyChange("averageSymbolComplexity"))}get test(){return{snapshotInternals:()=>({graphics:[...this.graphics3DGraphics.keys()].sort(),symbols:[...this._symbols.keys()].sort(),graphicsBySymbol:[...this._graphicsBySymbol.keys()].sort().map(e=>({symbolId:e,graphics:[...this._graphicsBySymbol.get(e).keys()].sort()})),graphicsWithoutSymbol:[...this._graphicsWithoutSymbol.keys()].sort(),graphicsDrapedUids:[...this._graphicsDrapedUids].sort(),pendingUpdates:this._pendingUpdates}),symbols:this._symbols,filterVisibility:this._filterVisibility,numPending:this._pendingUpdates.size,forceUpdatePolicy:e=>{this.forcedUpdatePolicy=e}}}get performanceInfo(){return{visible:this.graphics3DGraphics.size,missing:this._graphicsWithoutSymbol.size,pending:this._pendingUpdates.size}}};var N,e;E.tmpVec=(0,v.c)(),(0,h._)([(0,o.Cb)({readOnly:!0})],E.prototype,"computedExtent",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"currentRenderer",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"rendererHasGeometryOperations",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_frameTask",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_rendererChangeAbortController",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_elevationInfoChangeAbortController",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_initializeAbortController",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_elevationAlignment",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_scaleVisibility",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_filterVisibility",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_initializePromise",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_spatialIndex",void 0),(0,h._)([(0,o.Cb)({readOnly:!0})],E.prototype,"extentPadding",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_updatingPendingLoadedGraphicsChange",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_featureStore",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_deconflictor",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_labeler",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_objectStates",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_loadingSymbols",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"preferredUpdatePolicy",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"forcedUpdatePolicy",void 0),(0,h._)([(0,o.Cb)({readOnly:!0})],E.prototype,"effectiveUpdatePolicy",null),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"elevationFeatureExpressionEnabled",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"owner",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"layer",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"graphicSymbolSupported",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"getRenderingInfoWithoutRenderer",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"componentFactories",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"setUidToIdOnAdd",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"featureStore",null),(0,h._)([(0,o.Cb)()],E.prototype,"initializePromise",null),(0,h._)([(0,o.Cb)()],E.prototype,"scaleVisibility",null),(0,h._)([(0,o.Cb)()],E.prototype,"elevationAlignment",null),(0,h._)([(0,o.Cb)()],E.prototype,"objectStates",null),(0,h._)([(0,o.Cb)()],E.prototype,"filterVisibility",null),(0,h._)([(0,o.Cb)({readOnly:!0})],E.prototype,"updating",null),(0,h._)([(0,o.Cb)({readOnly:!0})],E.prototype,"running",null),(0,h._)([(0,o.Cb)({readOnly:!0})],E.prototype,"suspendedOrOutsideOfView",null),(0,h._)([(0,o.Cb)({readOnly:!0,dependsOn:[]})],E.prototype,"updatingRemaining",null),(0,h._)([(0,o.Cb)({readOnly:!0,dependsOn:["owner.view.qualitySettings.graphics3D.maxTotalNumberOfPrimitives","owner.view.qualitySettings.graphics3D.maxTotalNumberOfFeatures","averageSymbolComplexity"]})],E.prototype,"displayFeatureLimit",null),(0,h._)([(0,o.Cb)({readOnly:!0,dependsOn:[]})],E.prototype,"averageSymbolComplexity",null),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"hasZ",void 0),(0,h._)([(0,o.Cb)({constructOnly:!0})],E.prototype,"hasM",void 0),(0,h._)([(0,o.Cb)()],E.prototype,"_objectIdField",null),E=Ce=(0,h._)([(0,d.j)(Ue)],E),(e=N||(N={}))[e.NEW=0]="NEW",e[e.LOADING=1]="LOADING",e[e.READY=2]="READY",e[e.REJECTED=3]="REJECTED";class Ct{constructor(){this.add=null,this.renderingInfo=null,this.state=N.NEW,this.remove=null}clear(){this.add=null,this.renderingInfo=null,this.state=N.NEW,this.abortController=null,this.remove=null}}const St=10,ne=(0,v.c)(),ye=(0,v.c)(),Et=new Map},94991:(de,k,n)=>{n.d(k,{Z:()=>V});var G=n(17626),h=n(14517),B=n(61885),X=n(72392),M=n(62208),R=n(32917),C=n(77712),D=(n(85931),n(90912),n(76898)),A=n(51541),Y=n(42743),H=n(87091);let w=class extends h.Z{constructor(f){super(f),this._dirtyExtents=new A.D,this._globalDirty=!1,this._averageExtentUpdateSize=0,this._dirtyGraphicsSet=new Set,this._handles=new X.Z,this._updateElevation=!1,this.graphicsCoreOwner=null,this.graphicsCore=null,this.events=new B.Z}initialize(){const x=this.graphicsCoreOwner.view.resourceController.scheduler;this._handles.add([this.elevationProvider.on("elevation-change",L=>this._elevationChanged(L)),(0,R.YP)(()=>this.graphicsCoreOwner.suspended,()=>this._suspendedChange()),x.registerTask(H.T8.ELEVATION_ALIGNMENT,this)])}destroy(){this._dirtyGraphicsSet.clear(),this._handles.destroy(),this._handles=null,this.graphicsCoreOwner=null,this.graphicsCore=null,this.queryGraphicUIDsInExtent=null,this.elevationProvider=null}clear(){this._dirtyGraphicsSet.clear(),this.notifyChange("updating")}_suspendedChange(){!0===this.graphicsCoreOwner.suspended?this._updateElevation=!1:!1===this.graphicsCoreOwner.suspended&&this._updateElevation&&(this._globalDirty=!0,this.notifyChange("updating"))}elevationInfoChange(){this._globalDirty=!0,this.notifyChange("updating")}get updating(){return this.running}get running(){return this._dirtyGraphicsSet.size>0||this._dirtyExtents&&!this._dirtyExtents.empty||this._globalDirty}get updatingRemaining(){return this._dirtyGraphicsSet.size+this._dirtyExtents.size*this._averageExtentUpdateSize}runTask(f){for(this._globalDirty&&(this._markAllGraphicsElevationDirty(),this._globalDirty=!1,f.madeProgress()),f.run(()=>this._dirtyExtents.merge(f));this.running&&!f.done;)this._updateDirtyGraphics(f),this._updateDirtyExtents(f);this.graphicsCoreOwner.view.deconflictor.setDirty(),this.notifyChange("updating")}_updateDirtyGraphics(f){const x=this.graphicsCoreOwner.view.renderCoordsHelper,L=this.graphicsCore.effectiveUpdatePolicy===Y.jq.ASYNC;for(const W of this._dirtyGraphicsSet.keys()){const g=this.graphicsCore.getGraphics3DGraphicById(W);if(this._dirtyGraphicsSet.delete(W),(0,M.pC)(g)&&(g.alignWithElevation(this.elevationProvider,x,L),f.madeProgress()),f.done)return}}_updateDirtyExtents(f){for(;!this._dirtyExtents.empty&&!f.done;){const x=this._dirtyExtents.pop(),L=this.elevationProvider.spatialReference;this.events.emit("invalidate-elevation",{extent:x,spatialReference:L});const W=this._dirtyGraphicsSet.size;this.queryGraphicUIDsInExtent(x,L,g=>{const a=this.graphicsCore.getGraphics3DGraphicById(g);(0,M.pC)(a)&&a.needsElevationUpdates()&&this._dirtyGraphicsSet.add(g)}),this._averageExtentUpdateSize=.1*(this._dirtyGraphicsSet.size-W)+.9*this._averageExtentUpdateSize,f.madeProgress()}}_markAllGraphicsElevationDirty(){this._dirtyExtents.clear(),this._dirtyGraphicsSet.clear(),this.graphicsCore.graphics3DGraphics.forEach((f,x)=>this._dirtyGraphicsSet.add(x))}_elevationChanged(f){if("scene"===f.context&&(!this.graphicsCore.layer.elevationInfo||"relative-to-scene"!==this.graphicsCore.layer.elevationInfo.mode))return;const{extent:x,spatialReference:L}=f;if(this.graphicsCoreOwner.suspended){if(!this._updateElevation){const W=this.graphicsCore.computedExtent;W&&x[2]>W.xmin&&x[0]W.ymin&&x[1]{n.d(k,{Z:()=>V});var G=n(17626),h=n(14517),B=n(72392),X=n(62208),M=n(32917),R=n(77712),u=(n(85931),n(90912),n(76898)),D=n(12080),A=n(37810),Y=n(87091);let w=class extends h.Z{constructor(f){super(f),this.suspended=!1,this._extent=null,this._extentIntersectionDirty=!0,this._isVisibleBelowSurfaceInternal=!1,this._handles=new B.Z,this.graphicsCoreOwner=null,this.updating=!0}initialize(){const{graphicsCoreOwner:f}=this;this._extentIntersection=new A.q({renderCoordsHelper:f.view.renderCoordsHelper});const x=f.view,L=x.basemapTerrain,W=x.resourceController.scheduler;this._handles.add([x.on("resize",()=>this._viewChange()),(0,M.YP)(()=>x.state.camera,()=>this._viewChange(),M.Z_),W.registerTask(Y.T8.FRUSTUM_VISIBILITY,this),(0,M.YP)(()=>L.visibleElevationBounds,()=>this._elevationBoundsChange())]),"local"===x.viewingMode?this._isVisibleBelowSurface=!0:this._handles.add([(0,M.YP)(()=>[L.baseOpacity,L.wireframe,x.map?.ground?.navigationConstraint?.type],()=>this._updateIsVisibleBelowSurface(),M.nn)])}destroy(){this._set("graphicsCoreOwner",null),this._extent=null,this._extentIntersection=null,this._handles=(0,X.SC)(this._handles)}_setDirty(){this.updating||this._set("updating",!0)}setExtent(f){this._extent=f,this._extentIntersectionDirty=!0,this._setDirty()}_viewChange(){this._setDirty()}_elevationBoundsChange(){this._setDirty(),this._extentIntersectionDirty=!0}set _isVisibleBelowSurface(f){this._isVisibleBelowSurfaceInternal=f,this._setDirty(),this._extentIntersectionDirty=!0}_updateIsVisibleBelowSurface(){const f=this.graphicsCoreOwner.view;this._isVisibleBelowSurface="local"===f.viewingMode||!f.basemapTerrain.opaque||f.map.ground&&f.map.ground.navigationConstraint&&"none"===f.map.ground.navigationConstraint.type}_updateExtentIntersection(){if(!this._extentIntersectionDirty)return;this._extentIntersectionDirty=!1;const f=this.graphicsCoreOwner.view;let x;if(this._isVisibleBelowSurfaceInternal)x=-.3*(0,D.Iu)(f.spatialReference).radius;else{const{min:L,max:W}=f.basemapTerrain.visibleElevationBounds;x=L-Math.max(1,(W-L)*(1.2-1))}this._extentIntersection.update(this._extent,f.spatialReference,x)}get running(){return this.updating}runTask(){if(this._set("updating",!1),!this._extent)return void this._set("suspended",!1);this._updateExtentIntersection();const f=this.graphicsCoreOwner.view.frustum,x=(0,D.Iu)(this.graphicsCoreOwner.view.spatialReference).radius;this._set("suspended",!this._extentIntersection.isVisibleInFrustum(f,x))}};(0,G._)([(0,R.Cb)({readOnly:!0})],w.prototype,"suspended",void 0),(0,G._)([(0,R.Cb)({constructOnly:!0})],w.prototype,"graphicsCoreOwner",void 0),(0,G._)([(0,R.Cb)({readOnly:!0})],w.prototype,"updating",void 0),w=(0,G._)([(0,u.j)("esri.views.3d.layers.graphics.Graphics3DFrustumVisibility")],w);const V=w},14752:(de,k,n)=>{n.d(k,{d:()=>R});var B,C,G=n(54024),h=n(42743);(C=B||(B={}))[C.Object=0]="Object",C[C.RenderGeometry=1]="RenderGeometry",C[C.External=2]="External",C[C.COUNT=3]="COUNT";class X{constructor(){this._items=[]}addObject(c,u){this._items.push({type:B.Object,objectStateId:u,object:c})}addRenderGeometry(c,u,D){this._items.push({type:B.RenderGeometry,objectStateId:u,renderGeometry:c,owner:D})}addExternal(c,u){this._items.push({type:B.External,objectStateId:u,remove:c})}remove(c){for(let u=this._items.length-1;u>=0;--u){const D=this._items[u];D.objectStateId===c&&(this._removeObjectStateItem(D),this._items.splice(u,1))}}removeObject(c){for(let u=this._items.length-1;u>=0;--u){const D=this._items[u];D.type===B.Object&&D.object===c&&(this._removeObjectStateItem(D),this._items.splice(u,1))}}removeRenderGeometry(c){for(let u=this._items.length-1;u>=0;--u){const D=this._items[u];D.type===B.RenderGeometry&&D.renderGeometry===c&&(this._removeObjectStateItem(D),this._items.splice(u,1))}}removeAll(){this._items.forEach(c=>{this._removeObjectStateItem(c)}),this._items=[]}_removeObjectStateItem(c){switch(c.type){case B.Object:c.objectStateId.channel===h.V_.Highlight?c.object.removeHighlight(c.objectStateId):c.objectStateId.channel===h.V_.MaskOccludee&&c.object.removeOcclude(c.objectStateId);break;case B.RenderGeometry:c.owner.removeRenderGeometryObjectState(c.renderGeometry,c.objectStateId);break;case B.External:c.remove(c.objectStateId)}}}class M{constructor(c,u){this.stateType=c,this.objectIdField=u,this.objectStateSet=new X,this.ids=new Set,this.paused=!1}hasGraphic(c){return this.ids.has(this.objectIdField?c.graphic.attributes[this.objectIdField]:c.graphic.uid)}}class R{constructor(c){this._graphicsCore=c,this._stateSets=new Array}destroy(){this._stateSets&&this._stateSets.forEach(c=>c.objectStateSet.removeAll()),this._stateSets=null}acquireSet(c,u){const D=new M(c,u);this._stateSets.push(D);const A=(0,G.kB)(()=>this.releaseSet(D));return{set:D,handle:A}}releaseSet(c){c.objectStateSet.removeAll();const u=this._stateSets?this._stateSets.indexOf(c):-1;-1!==u&&this._stateSets.splice(u,1)}_addObjectStateSet(c,u){c.addObjectStateSet(u.stateType,u.objectStateSet)}_removeObjectStateSet(c,u){c.removeObjectState(u.objectStateSet)}setUid(c,u){c.ids.add(u);const D=this._graphicsCore.graphics3DGraphics.get(u);D&&this._addObjectStateSet(D,c)}setUids(c,u){u.forEach(D=>this.setUid(c,D))}setObjectIds(c,u){u.forEach(D=>c.ids.add(D)),this._initializeSet(c)}addGraphic(c){this._stateSets.forEach(u=>{!u.paused&&u.hasGraphic(c)&&this._addObjectStateSet(c,u)})}removeGraphic(c){this._stateSets.forEach(u=>{u.hasGraphic(c)&&this._removeObjectStateSet(c,u)})}allGraphicsDeleted(){this._stateSets&&this._stateSets.forEach(c=>c.objectStateSet.removeAll())}_initializeSet(c){const u=this._graphicsCore.graphics3DGraphics;c.objectIdField?u.forEach(D=>{D&&c.hasGraphic(D)&&this._addObjectStateSet(D,c)}):c.ids.forEach(D=>{const A=u.get(D);A&&this._addObjectStateSet(A,c)})}get test(){return{states:this._stateSets}}}},67873:(de,k,n)=>{n.d(k,{Z:()=>W});var G=n(17626),h=n(80542),B=n(63290),X=n(62208),M=n(77712),c=(n(85931),n(90912),n(76898)),u=n(55915),D=n(65401),A=n(79721),Y=n(93579),H=n(87091);const w=B.Z.getLogger("esri.views.3d.layers.graphics.Graphics3DScaleVisibility");let V=class extends h.r{constructor(g){super(g),this._scaleRangeActive=!1,this._layerScaleRangeVisibilityQuery=!1,this._extent=null,this.graphicsCoreOwner=null,this.layer=null,this.queryGraphicUIDsInExtent=null,this.graphicsCore=null,this.basemapTerrain=null,this.layerScaleEnabled=!0,this.suspended=!1,this._dirty=!0}initialize(){this.updateScaleRangeActive(),this.handles.add(this.graphicsCoreOwner.view.resourceController.scheduler.registerTask(H.T8.SCALE_VISIBILITY,this)),this.updatingHandles.add(()=>this.layer.effectiveScaleRange,()=>this.layerMinMaxScaleChangeHandler())}destroy(){this.updatingHandles.removeAll(),this.handles.removeAll(),this._dirty=!1,this._extent=null,this.graphicsCoreOwner=null,this.layer=null,this.queryGraphicUIDsInExtent=null,this.graphicsCore=null,this.basemapTerrain=null}get updating(){return this._dirty||this.updatingHandles.updating}_setDirty(){this._dirty=!0}setExtent(g){const a=this.graphicsCoreOwner.view.spatialReference,j=this.graphicsCoreOwner.view.basemapTerrain.spatialReference;if(a===j)this._extent=g;else{const Z=(0,D.Ue)();this._extent=(0,u.dH)(g,a,Z,j)?Z:null}this._setDirty()}scaleRangeActive(){return this._scaleRangeActive}updateScaleRangeActive(){const g=this.layer,a=g.effectiveScaleRange;let j=this.layerScaleEnabled&&f(a.minScale,a.maxScale);g.labelingInfo&&!j&&(j=g.labelingInfo.some(T=>T&&f(T.minScale,T.maxScale)));const Z=this._scaleRangeActive!==j;return this._scaleRangeActive=j,j&&!this.handles.has(x)&&this.basemapTerrain?(this.handles.add(this.basemapTerrain.on("scale-change",T=>this._scaleUpdateHandler(T)),x),this.layerScaleEnabled&&this.handles.add(this.basemapTerrain.on("tiles-visibility-changed",()=>this._setDirty()),x)):!j&&this.handles.has(x)&&this.handles.remove(x),Z}get running(){return!(!this.graphicsCoreOwner.view.basemapTerrain||!this.updating)}runTask(){const g=this.graphicsCoreOwner.view.basemapTerrain;if(this._extent&&g&&g.ready&&this._scaleRangeActive&&this.layerScaleEnabled){if(!this._layerScaleRangeVisibilityQuery){this._layerScaleRangeVisibilityQuery=!0;const a=this.layer.effectiveScaleRange;g.queryVisibleScaleRange(this._extent,a.minScale,a.maxScale,j=>this._finishUpdate(j))}}else this._finishUpdate(!0)}_finishUpdate(g){this._layerScaleRangeVisibilityQuery=!1,this._set("suspended",!g),this._dirty=!1}_visibleAtLayerScale(g){const a=this.layer.effectiveScaleRange;return!this.layerScaleEnabled||(0,Y.rs)(g,a.minScale||0,a.maxScale||0)}_visibleAtLabelScale(g,a){return(0,Y.rs)(g,a.minScale||0,a.maxScale||0)}_graphicScale(g){let a;return(0,X.pC)(g.centroid)?a=g.centroid:(0,X.pC)(g.graphic.geometry)&&"point"===g.graphic.geometry.type&&(a=g.graphic.geometry),a?this.graphicsCoreOwner.view.basemapTerrain?this.graphicsCoreOwner.view.basemapTerrain.getScale(a):1:null}_graphicVisible(g){if(!this.layerScaleEnabled)return!0;const a=this._graphicScale(g);return this._visibleAtLayerScale(a)}updateVisibility(g){if(this._scaleRangeActive){const a=this._graphicVisible(g);return g.setVisibilityFlag(A.P.SCALE_RANGE,a,A.E.GRAPHIC)}return!1}updateGraphicLabelScaleVisibility(g){if(!this._scaleRangeActive||!g.labelGraphics||0===g.labelGraphics.length)return!1;const a=this._graphicScale(g),j=this._updateLabelScaleVisibility(g,a);return j&&(this.graphicsCoreOwner.view.deconflictor.setDirty(),this.graphicsCoreOwner.view.labeler.setDirty()),j}_updateLabelScaleVisibility(g,a){if(!g.labelGraphics||0===g.labelGraphics.length)return!1;const j=g.labelGraphics[0]._labelClass;if(j&&null!=j.minScale&&null!=j.maxScale){const Z=this._visibleAtLabelScale(a,j);if(g.setVisibilityFlag(A.P.SCALE_RANGE,Z,A.E.LABEL))return!0}return!1}_scaleUpdateHandler(g){if(this._setDirty(),this.graphicsCoreOwner.suspended)return;const a=g.extent,j=g.scale,Z=this._visibleAtLayerScale(j);let T=!1;const re=this.graphicsCoreOwner.view.spatialReference,o=g.spatialReference;if((0,X.Wi)(o))return void w.error("scaleUpdate: Internal error, no SpatialReference given for tiles");const l=!o.equals(re);!l||(0,u.dH)(a,o,L,re)?(this.queryGraphicUIDsInExtent(l?L:a,re,d=>{const _=this.graphicsCore.getGraphics3DGraphicById(d);if((0,X.Wi)(_))return;const m=_.centroid;(0,X.pC)(m)&&(a[0]>m.x||a[1]>m.y||a[2]g.clearVisibilityFlag(A.P.SCALE_RANGE)):this._scaleRangeActive&&this.graphicsCore.updateAllGraphicsVisibility(),this._setDirty()}};function f(g,a){return g>0||a>0}(0,G._)([(0,M.Cb)()],V.prototype,"graphicsCoreOwner",void 0),(0,G._)([(0,M.Cb)()],V.prototype,"layer",void 0),(0,G._)([(0,M.Cb)()],V.prototype,"queryGraphicUIDsInExtent",void 0),(0,G._)([(0,M.Cb)()],V.prototype,"graphicsCore",void 0),(0,G._)([(0,M.Cb)()],V.prototype,"basemapTerrain",void 0),(0,G._)([(0,M.Cb)({constructOnly:!0})],V.prototype,"layerScaleEnabled",void 0),(0,G._)([(0,M.Cb)({readOnly:!0})],V.prototype,"suspended",void 0),(0,G._)([(0,M.Cb)({readOnly:!0})],V.prototype,"updating",null),(0,G._)([(0,M.Cb)()],V.prototype,"_dirty",void 0),V=(0,G._)([(0,c.j)("esri.views.3d.layers.graphics.Graphics3DScaleVisibility")],V);const x="terrain-events",L=(0,D.Ue)(),W=V}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1843.a6a0f65e246c7844.js b/apps/n/porrtal-io-app/public/angular/1843.a6a0f65e246c7844.js deleted file mode 100644 index dbf035fc..00000000 --- a/apps/n/porrtal-io-app/public/angular/1843.a6a0f65e246c7844.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1843,5994],{15994:(p,r,a)=>{a.d(r,{N:()=>u});const u={convertToGEGeometry:function m(i,t){return null==t?null:i.convertJSONToGeometry(t)},exportPoint:function x(i,t,e){const n=new c(i.getPointX(t),i.getPointY(t),e),s=i.hasZ(t),o=i.hasM(t);return s&&(n.z=i.getPointZ(t)),o&&(n.m=i.getPointM(t)),n},exportPolygon:function M(i,t,e){return new l(i.exportPaths(t),e,i.hasZ(t),i.hasM(t))},exportPolyline:function _(i,t,e){return new v(i.exportPaths(t),e,i.hasZ(t),i.hasM(t))},exportMultipoint:function f(i,t,e){return new d(i.exportPoints(t),e,i.hasZ(t),i.hasM(t))},exportExtent:function Z(i,t,e){const n=i.hasZ(t),s=i.hasM(t),o=new g(i.getXMin(t),i.getYMin(t),i.getXMax(t),i.getYMax(t),e);if(n){const h=i.getZExtent(t);o.zmin=h.vmin,o.zmax=h.vmax}if(s){const h=i.getMExtent(t);o.mmin=h.vmin,o.mmax=h.vmax}return o}};class c{constructor(t,e,n){this.x=t,this.y=e,this.spatialReference=n,this.z=void 0,this.m=void 0}}class l{constructor(t,e,n,s){this.rings=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,n&&(this.hasZ=n),s&&(this.hasM=s)}}class v{constructor(t,e,n,s){this.paths=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,n&&(this.hasZ=n),s&&(this.hasM=s)}}class d{constructor(t,e,n,s){this.points=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,n&&(this.hasZ=n),s&&(this.hasM=s)}}class g{constructor(t,e,n,s,o){this.xmin=t,this.ymin=e,this.xmax=n,this.ymax=s,this.spatialReference=o,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},77692:(p,r,a)=>{a.r(r),a.d(r,{executeGEOperation:()=>m});var u=a(7006);function m(c){return(0,u.g[c.operation])(...c.parameters)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/1913.f72a3333a5aa5a9c.js b/apps/n/porrtal-io-app/public/angular/1913.f72a3333a5aa5a9c.js deleted file mode 100644 index 6b975415..00000000 --- a/apps/n/porrtal-io-app/public/angular/1913.f72a3333a5aa5a9c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[1913],{25982:(ue,q,a)=>{a.d(q,{Z:()=>z});var W,I=a(17626),N=a(86810),A=a(58817),K=a(77712),F=a(90912),Q=a(76898);let T=W=class extends N.wq{constructor(S){super(S),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new W({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,A.d9)(this.values),isSlice:this.isSlice})}};(0,I._)([(0,K.Cb)({type:String,json:{write:!0}})],T.prototype,"variableName",void 0),(0,I._)([(0,K.Cb)({type:String,json:{write:!0}})],T.prototype,"dimensionName",void 0),(0,I._)([(0,K.Cb)({type:F.V5.array(F.V5.oneOf([F.V5.native(Number),F.V5.array(F.V5.native(Number))])),json:{write:!0}})],T.prototype,"values",void 0),(0,I._)([(0,K.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"isSlice",void 0),T=W=(0,I._)([(0,Q.j)("esri.layers.support.DimensionalDefinition")],T);const z=T},11354:(ue,q,a)=>{a.d(q,{Z:()=>D});var B,I=a(17626),A=(a(29132),a(86810)),K=a(77712),W=(a(85931),a(90912),a(76898)),T=a(2004),z=a(37118),S=a(91179),L=a(25982);const J={base:a(21674).Z,key:"type",typeMap:{extent:T.Z,polygon:z.Z}};let E=B=class extends A.wq{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const s=new Map;e.forEach(i=>{if(!i.dimensionName)return;let g,n;if(Array.isArray(i.values[0])){const _=i.values;g=_[0][0],n=_[i.values.length-1][1]}else{const _=i.values;g=_[0],n=_[i.values.length-1]}if(s.has(i.dimensionName)){const _=s.get(i.dimensionName);_[0]=Math.min(g,_[0]),_[1]=Math.max(n,_[1])}else s.set(i.dimensionName,[g,n])});const M=[];for(const i of s)M.push({name:i[0],extent:i[1]});return M}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const s=new Set;return e.forEach(M=>{M.variableName&&s.add(M.variableName)}),[...s]}clone(){const e=this.subsetDefinitions?.map(M=>M.clone()),s=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new B({areaOfInterest:s,subsetDefinitions:e})}};(0,I._)([(0,K.Cb)({types:J,json:{read:S.im,write:!0}})],E.prototype,"areaOfInterest",void 0),(0,I._)([(0,K.Cb)({readOnly:!0})],E.prototype,"dimensions",null),(0,I._)([(0,K.Cb)({readOnly:!0})],E.prototype,"variables",null),(0,I._)([(0,K.Cb)({type:[L.Z],json:{write:!0}})],E.prototype,"subsetDefinitions",void 0),E=B=(0,I._)([(0,W.j)("esri.layers.support.MultidimensionalSubset")],E);const D=E},40495:(ue,q,a)=>{a.d(q,{Z:()=>M});var S,I=a(17626),N=a(86810),A=a(58817),K=a(77712),Q=(a(90912),a(55342)),W=a(68653),T=a(76898),z=a(99433);const L=new Set(["raster","raster2","dem","fillraster"]),V=new Set(["rasters"]),B=i=>i&&i.rasterFunction?s.fromJSON(i):i,J=i=>i&&i instanceof s?i.toJSON():i,E=i=>i?.functionName&&!i.declaredClass,D=i=>E(i)?new s(i):i;let s=S=class extends N.wq{constructor(i){super(i),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.rasterFunctionDefinition=null}set functionArguments(i){if(i){const g=Object.keys(i);if(g.some(n=>L.has(n.toLowerCase())&&E(i[n]))||g.some(n=>V.has(n.toLowerCase())&&Array.isArray(i[n])&&i[n].some(_=>E(_)))){i=(0,A.d9)(i);for(const n of g)L.has(n.toLowerCase())?i[n]=D(i[n]):V.has(n.toLowerCase())&&Array.isArray(i[n])&&(i[n]=i[n].map(_=>D(_)))}}this._set("functionArguments",i)}readFunctionArguments(i){return(i=>{if(null==i)return null;i=(0,A.d9)(i);const g={};for(const n of Object.keys(i))g[n]=L.has(n.toLowerCase())?B(i[n]):V.has(n.toLowerCase())&&Array.isArray(i[n])?i[n].map(B):i[n];return g})(i)}writeFunctionArguments(i,g,n){const _={};for(const j of Object.keys(i))_[j]=L.has(j.toLowerCase())?J(i[j]):V.has(j.toLowerCase())&&Array.isArray(i[j])?i[j].map(J):J(i[j]);g[n]=_}readFunctionName(i,g){const n=g.rasterFunctionInfos;return g.name||(n&&n.length&&"None"!==n[0].name?n[0].name:g.rasterFunctionDefinition?g.rasterFunctionDefinition.name:g.rasterFunction)}clone(){return new S({functionName:this.functionName,functionArguments:(0,A.d9)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,A.d9)(this.rasterFunctionDefinition)})}};(0,I._)([(0,K.Cb)({json:{type:Object,name:"rasterFunctionArguments"}})],s.prototype,"functionArguments",null),(0,I._)([(0,W.r)("functionArguments")],s.prototype,"readFunctionArguments",null),(0,I._)([(0,z.c)("functionArguments")],s.prototype,"writeFunctionArguments",null),(0,I._)([(0,K.Cb)({json:{type:String,write:{target:"rasterFunction"}}})],s.prototype,"functionName",void 0),(0,I._)([(0,W.r)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],s.prototype,"readFunctionName",null),(0,I._)([(0,Q.J)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,K.Cb)({json:{default:"unknown"}})],s.prototype,"outputPixelType",void 0),(0,I._)([(0,K.Cb)({type:String,json:{read:!0,write:!0}})],s.prototype,"variableName",void 0),(0,I._)([(0,K.Cb)({type:Object,json:{name:"rasterFunctionDefinition"}})],s.prototype,"rasterFunctionDefinition",void 0),s=S=(0,I._)([(0,T.j)("esri.layers.support.RasterFunction")],s);const M=s},9548:(ue,q,a)=>{a.d(q,{Z:()=>Q});var I=a(15861),N=a(26584),A=a(62208),K=a(59289),F=a(25688);class Q{constructor(){this._workerThread=null,this._destroyed=!1}initialize(){var T=this;return(0,I.Z)(function*(){const z=yield(0,K.bA)("RasterWorker");T._destroyed?z.close():T._workerThread=z})()}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}convertVectorFieldData(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");const L=yield S._workerThread.invoke("convertVectorFieldData",{pixelBlock:T.pixelBlock.toJSON(),type:T.dataType},z);return L?new F.Z(L):null})()}decode(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");const L=yield S._workerThread.invoke("decode",T,z);return L?new F.Z(L):null})()}symbolize(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");const L={extent:T.extent&&T.extent.toJSON(),pixelBlock:(0,A.pC)(T.pixelBlock)&&T.pixelBlock.toJSON(),simpleStretchParams:T.simpleStretchParams,bandIds:T.bandIds},V=yield S._workerThread.invoke("symbolize",L,z);return V?new F.Z(V):null})()}updateSymbolizer(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");const L=T?.rendererJSON?.histograms;yield Promise.all(S._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:T.toJSON(),histograms:L},z))})()}updateRasterFunction(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");yield Promise.all(S._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:T.toJSON()},z))})()}process(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");const L=yield S._workerThread.invoke("process",{extent:T.extent?.toJSON(),primaryPixelBlocks:T.primaryPixelBlocks.map(V=>(0,A.pC)(V)?V.toJSON():null),primaryRasterIds:T.primaryRasterIds},z);return L?new F.Z(L):null})()}stretch(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");if(!T?.pixelBlock)return null;const L={srcPixelBlock:T.pixelBlock.toJSON(),stretchParams:T.stretchParams},V=yield S._workerThread.invoke("stretch",L,z);return V?new F.Z(V):null})()}split(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");if(!T?.pixelBlock)return null;const L={srcPixelBlock:T.pixelBlock.toJSON(),tileSize:T.tileSize,maximumPyramidLevel:T.maximumPyramidLevel},V=yield S._workerThread.invoke("split",L,z);return V&&V.forEach((B,J)=>{V.set(J,B?F.Z.fromJSON(B):null)}),V})()}estimateStatisticsHistograms(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");if(!T?.pixelBlock)return null;const L={srcPixelBlock:T.pixelBlock.toJSON()};return yield S._workerThread.invoke("estimateStatisticsHistograms",L,z)})()}mosaicAndTransform(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");if(!T?.srcPixelBlocks?.length)return{pixelBlock:null};const L={...T,srcPixelBlocks:T.srcPixelBlocks.map(B=>(0,A.pC)(B)?B.toJSON():null)},V=yield S._workerThread.invoke("mosaicAndTransform",L,z);return{pixelBlock:V.pixelBlock?new F.Z(V.pixelBlock):null,localNorthDirections:V.localNorthDirections}})()}createFlowMesh(T,z){var S=this;return(0,I.Z)(function*(){if(!S._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");const L={buffer:T.flowData.data.buffer,maskBuffer:T.flowData.mask.buffer,width:T.flowData.width,height:T.flowData.height},{meshType:V,simulationSettings:B}=T,J=yield S._workerThread.invoke("createFlowMesh",{meshType:V,flowData:L,simulationSettings:B},{...z,transferList:[L.buffer,L.maskBuffer]});return{vertexData:new Float32Array(J.vertexBuffer),indexData:new Uint32Array(J.indexBuffer)}})()}getProjectionOffsetGrid(T,z){if(!this._workerThread)throw new N.Z("raster-jobhandler:no-connection","no available worker connection");const S=(0,A.pC)(T.datumTransformation)?T.datumTransformation.steps.map(B=>({wkid:B.wkid,wkt:B.wkt,isInverse:B.isInverse})):null,L=(0,A.pC)(T.rasterTransform)?T.rasterTransform.toJSON():null,V={projectedExtent:T.projectedExtent.toJSON(),srcBufferExtent:T.srcBufferExtent.toJSON(),pixelSize:T.pixelSize,hasWrapAround:T.hasWrapAround,spacing:T.spacing,datumTransformationSteps:S,rasterTransform:L,isAdaptive:T.isAdaptive,includeGCSGrid:T.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",V,z)}}},79781:(ue,q,a)=>{a.d(q,{MO:()=>K,Tj:()=>L,Ur:()=>F,WU:()=>V,gk:()=>D,jj:()=>B,nb:()=>S});var I=a(62208),N=a(25982);function A(e,s,M){const i=s.shift();0===M.length&&M.push({sliceId:-1,multidimensionalDefinition:[]});const g=M.length;for(let n=0;n{M.push({sliceId:-1,multidimensionalDefinition:[..._,{variableName:e,dimensionName:i.name,values:[j]}]})})}s.length&&A(e,s,M)}function K(e,s){const M=[];let i=0;return(s?e.variables.filter(g=>g.name.toLowerCase()===s.toLowerCase()):[...e.variables].sort((g,n)=>g.name>n.name?1:-1)).forEach(g=>{const n=[],_=[...g.dimensions].sort((j,H)=>j.name>H.name?-1:1);A(g.name,_,n),n.forEach(j=>{M.push({...j,sliceId:i++})})}),M}function F(e,s,M){let i=e;if(s&&(s=[...s].sort((g,n)=>g.dimensionName{n.length&&(i=i.filter(j=>{const H=j.multidimensionalDefinition.find(U=>U.dimensionName===g);if(null==H)return!1;const P=H.values[0];return"number"==typeof P?"number"==typeof n[0]?n.includes(P):n.some(U=>U[0]<=P&&U[1]>=P):n.some("number"==typeof n[0]?U=>P[0]<=U&&P[1]>=U:_?U=>U[0]===P[0]&&U[0]===P[1]:U=>U[0]>=P[0]&&U[0]<=P[1]||U[1]>=P[0]&&U[1]<=P[1]||U[0]P[1])}))}),i.length&&M&&(0,I.pC)(M.start)&&(0,I.pC)(M.end)){const g=M.start.getTime(),n=M.end.getTime(),_=i[0].multidimensionalDefinition.findIndex(j=>"StdTime"===j.dimensionName);_>-1&&(i=i.filter(j=>{const H=j.multidimensionalDefinition[_].values[0];return g<=H&&n>=H}))}return i.map(g=>g.sliceId)}function Q(e,s){return Array.isArray(e)?s[0]===s[1]?e[0]===s[0]||e[1]===s[0]:e[0]>=s[0]&&e[0]<=s[1]&&e[1]>=s[0]&&e[1]<=s[1]:e>=s[0]&&e<=s[1]}function W(e,s){return e[0]<=s[0]&&e[1]>=s[0]||e[0]<=s[1]&&e[1]>=s[1]||e[0]>=s[0]&&e[1]<=s[1]}function T(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function z(e,s,M){if(!s?.subsetDefinitions?.length)return e;let i;if(M){const{variables:_}=s;if(_.length&&!_.includes(M))return null;const j=s.subsetDefinitions.find(H=>H.dimensionName===e.name&&H.variableName===M);if(!j?.values?.length)return e;i=T(j.values)}else i=s.dimensions.find(({name:_})=>_===e.name)?.extent;const g=i;if(!g||!g?.length)return e;const n=e.values.filter(_=>Q(_,g));return{...e,extent:[...g],values:n}}function S(e,s,M){if(!s?.subsetDefinitions?.length)return!1;const{variables:i}=s;if(i.length&&e.some(({variableName:g})=>g&&!i.includes(g)))return!0;for(let g=0;g(""===n.variableName||j.variableName===n.variableName)&&j.dimensionName===n.dimensionName);if(_?.values.length){const j=T(_.values);if(n.isSlice||2!==n.values.length||Array.isArray(n.values[0])||n.values[0]===n.values[1]||!M){if(n.values.some(H=>!Q(H,j)))return!0}else if(!W(n.values,j))return!0}}return!1}function L(e,s={}){const{multidimensionalInfo:M,keyProperties:i}=e;if((0,I.Wi)(M))return null;const g=s.variableName||i?.DefaultVariable;let{variables:n}=M;const{multidimensionalSubset:_}=s;_?.variables?.length&&(n=n.filter(({name:b})=>_.variables.includes(b)));const j=g?n.find(({name:b})=>b===g)??n[0]:n[0];if(!j)return null;const H=[],{dimensions:P,name:U}=j;if(0===P.length)return[new N.Z({variableName:U,dimensionName:"",values:[],isSlice:!0})];for(let b=0;b{if(null==s.values)return!0;const M=s.values.length;return 0===M||M>1||!s.isSlice&&Array.isArray(s.values[0])})}function B(e,s){if((0,I.Wi)(s)||(0,I.Wi)(e))return null;let M=s.variables.map(i=>({...i}));return e?.variables?.length&&(M=M.filter(({name:i})=>e.variables.includes(i)),M.forEach(i=>{i.dimensions=i.dimensions.map(g=>z(g,e,i.name))})),M}function J(e,s){const{values:M}=s;if(M?.length)return Array.isArray(M[0])!==Array.isArray(e)?-1:Array.isArray(M[0])?M.findIndex(j=>j[0]===e[0]&&j[1]===e[1]):M.indexOf(e);const{extent:i}=s;if(Array.isArray(e)||ei[1])return-1;const g=s.interval||1;if("ISO8601"!==s.unit)return Math.round((e-i[0])/g);const n=i[0];let _=-1;switch(s.intervalUnit?.toLowerCase()||"seconds"){case"seconds":_=Math.round((e-n)/1e3/g);break;case"minutes":_=Math.round((e-n)/6e4/g);break;case"hours":_=Math.round((e-n)/36e5/g);break;case"days":_=Math.round((e-n)/864e5/g);break;case"months":{const j=new Date(e).getUTCFullYear()-new Date(n).getUTCFullYear(),H=new Date(n).getUTCMonth(),P=new Date(e).getUTCMonth();_=0===j?P-H:P+11-H+12*(j-1)}break;case"years":_=Math.round((new Date(e).getUTCFullYear()-new Date(n).getUTCFullYear())/g);break;case"decades":_=Math.round((new Date(e).getUTCFullYear()-new Date(n).getUTCFullYear())/10/g)}return _}function E(e){let s=e.values?.length;if(s)return s;const{extent:M,unit:i}=e,g=e.interval||1,n=M?M[1]-M[0]:0;if("ISO8601"!==i)return Math.round(n/g);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":s=Math.round(n/1e3/g);break;case"minutes":s=Math.round(n/6e4/g);break;case"hours":s=Math.round(n/36e5/g);break;case"days":s=Math.round(n/864e5/g);break;case"months":{const _=new Date(M[1]).getUTCFullYear()-new Date(M[0]).getUTCFullYear(),j=new Date(M[1][0]).getUTCMonth(),H=new Date(M[1][1]).getUTCMonth();s=0===_?H-j+1:H+11-j+12*(_-1)+1}break;case"years":s=Math.round((new Date(M[1]).getUTCFullYear()-new Date(M[0]).getUTCFullYear())/g);break;case"decades":s=Math.round((new Date(M[1]).getUTCFullYear()-new Date(M[0]).getUTCFullYear())/10/g);break;default:s=0}return s}function D(e,s){let M=0;const i=e[0].variableName,g=[...s.variables].sort((n,_)=>n.name>_.name?1:-1);for(let n=0;nU.name>b.name?-1:1);if(_.name!==i){M+=j.map(U=>E(U)).reduce((U,b)=>U*b);continue}const H=j.map(U=>E(U)),P=j.length;for(let U=0;UZ.dimensionName===j[U].name);if(null==b)return null;const w=J(b.values[0],j[U]);if(-1===w)return null;H.shift(),M+=U===P-1?w:w*H.reduce((Z,X)=>Z*X)}break}return M}},2939:(ue,q,a)=>{a.d(q,{c:()=>N,k:()=>A});var I=a(2076);const N=(0,I.w)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),A=(0,I.w)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"})},90885:(ue,q,a)=>{a.d(q,{FK:()=>S,dr:()=>z,ij:()=>B});var I=a(14889),N=a(4832),A=a(12492),K=a(76511),F=a(15177),Q=a(65539),W=a(73640),T=a(53785);const z={key:"type",base:null,typeMap:{"unique-value":W.Z,"class-breaks":N.Z,"raster-colormap":K.Z,"raster-stretch":Q.Z,"vector-field":T.Z,"raster-shaded-relief":F.Z,flow:A.Z}},S={...z,typeMap:{...z.typeMap}};delete S.typeMap["vector-field"],delete S.typeMap.flow;const L={uniqueValue:W.Z,classBreaks:N.Z,rasterStretch:Q.Z,rasterColormap:K.Z,vectorField:T.Z,rasterShadedRelief:F.Z,flowRenderer:A.Z};function B(E,D){if(!E)return null;if("classBreaks"===E.type&&E.classificationMethod){const s=E.authoringInfo||{classificationMethod:""};s.classificationMethod=E.classificationMethod,E.authoringInfo=s}"vectorField"===E.type&&E.visualVariables&&!Array.isArray(E.visualVariables)&&(E.visualVariables=[E.visualVariables]);const e=function V(E){return E&&L[E.type]||null}(E);if(e){const s=new e;return s.read(E,D),s}return D&&D.messages&&E&&D.messages.push(new I.Z("renderer:unsupported","Renderers of type '"+(E.type||"unknown")+"' are not supported",{definition:E,context:D})),null}},12492:(ue,q,a)=>{a.d(q,{Z:()=>s});var E,I=a(15861),N=a(17626),A=a(91558),K=a(2076),F=a(86810),Q=a(23841),W=a(77712),S=(a(85931),a(90912),a(55342)),L=a(76898),V=a(2432),B=a(15312),J=a(10914);const D=new K.X({flow_from:"flow-from",flow_to:"flow-to"});let e=E=class extends((0,V.W)(F.wq)){constructor(M){super(M),this.density=.8,this.color=new A.Z([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}clone(){const{density:M,maxPathLength:i,trailWidth:g,flowSpeed:n,trailLength:_,smoothing:j,flowRepresentation:H,trailCap:P,background:U}=this,b=this.color.clone(),w=(this.visualVariables||[]).map(se=>se.clone()),Z=this.authoringInfo?.clone(),X=this.legendOptions?.clone();return new E({density:M,color:b,maxPathLength:i,trailWidth:g,flowSpeed:n,trailLength:_,trailCap:P,background:U,smoothing:j,flowRepresentation:H,visualVariables:w,authoringInfo:Z,legendOptions:X})}getSymbol(M,i){}getSymbolAsync(M,i){return(0,I.Z)(function*(){})()}getSymbols(){return[]}};(0,N._)([(0,W.Cb)({type:Number,json:{write:!0}})],e.prototype,"density",void 0),(0,N._)([(0,W.Cb)({type:A.Z,json:{write:{allowNull:!0}}})],e.prototype,"color",void 0),(0,N._)([(0,W.Cb)({type:Number,cast:Q.t_,json:{write:!0}})],e.prototype,"maxPathLength",void 0),(0,N._)([(0,W.Cb)({type:Number,cast:Q.t_,json:{write:!0}})],e.prototype,"trailWidth",void 0),(0,N._)([(0,W.Cb)({type:Number,json:{write:!0}})],e.prototype,"flowSpeed",void 0),(0,N._)([(0,W.Cb)({type:Number,json:{write:!0}})],e.prototype,"trailLength",void 0),(0,N._)([(0,W.Cb)({type:Number,cast:Q.t_,json:{write:!1}})],e.prototype,"smoothing",void 0),(0,N._)([(0,W.Cb)({type:D.apiValues,json:{type:D.jsonValues,read:{reader:D.read},write:{writer:D.write}}})],e.prototype,"flowRepresentation",void 0),(0,N._)([(0,S.J)({flowRenderer:"flow"})],e.prototype,"type",void 0),(0,N._)([(0,W.Cb)({type:B.Z,json:{write:!0}})],e.prototype,"authoringInfo",void 0),(0,N._)([(0,W.Cb)({type:J.I,json:{write:!0}})],e.prototype,"legendOptions",void 0),(0,N._)([(0,W.Cb)({type:String,json:{write:!0}})],e.prototype,"trailCap",void 0),(0,N._)([(0,W.Cb)({type:String,json:{write:!0}})],e.prototype,"background",void 0),e=E=(0,N._)([(0,L.j)("esri.renderers.FlowRenderer")],e);const s=e},76511:(ue,q,a)=>{a.d(q,{Z:()=>J});var I=a(17626),N=a(86810),A=a(77712),F=(a(85931),a(90912)),Q=a(55342),W=a(76898),T=a(91558);let z=class extends N.wq{constructor(){super(...arguments),this.value=null,this.label=null,this.color=null}};(0,I._)([(0,A.Cb)({type:Number,json:{write:!0}})],z.prototype,"value",void 0),(0,I._)([(0,A.Cb)({type:String,json:{write:!0}})],z.prototype,"label",void 0),(0,I._)([(0,A.Cb)({type:T.Z,json:{type:[F.z8],write:!0}})],z.prototype,"color",void 0),z=(0,I._)([(0,W.j)("esri.renderers.support.ColormapInfo")],z);const S=z;var V,L=a(70208);let B=V=class extends N.wq{constructor(E){super(E),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(E,D){if(!E)return null;const e=5===E[0].length,s=[...E].sort(M=>M[0][0]-M[1][0]).map(M=>S.fromJSON({value:M[0],color:e?M.slice(1,5):M.slice(1,4).concat([255]),label:D?D[M[0]]??"":M[0]}));return new V({colormapInfos:s})}static createFromColorramp(E){const D=(0,L.Jw)(E,256);return V.createFromColormap(D)}clone(){return new V({colormapInfos:this.colormapInfos.map(E=>E.toJSON())})}extractColormap(){return this.colormapInfos.map(({value:E,color:D})=>[E,D.r,D.g,D.b,D.a>1?D.a:255*D.a&255]).sort((E,D)=>E[0]-D[0])}};(0,I._)([(0,A.Cb)({type:[S],json:{write:!0}})],B.prototype,"colormapInfos",void 0),(0,I._)([(0,Q.J)({rasterColormap:"raster-colormap"})],B.prototype,"type",void 0),B=V=(0,I._)([(0,W.j)("esri.renderers.RasterColormapRenderer")],B);const J=B},15177:(ue,q,a)=>{a.d(q,{Z:()=>V});var S,I=a(17626),N=a(86810),A=a(58817),K=a(77712),Q=(a(90912),a(55342)),W=a(68653),T=a(76898),z=a(79023);let L=S=class extends N.wq{constructor(B){super(B),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(B){return(0,z.i)(B)}clone(){return new S({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,A.d9)(this.colorRamp)})}};(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],L.prototype,"altitude",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],L.prototype,"azimuth",void 0),(0,I._)([(0,K.Cb)({types:z.V,json:{write:!0}})],L.prototype,"colorRamp",void 0),(0,I._)([(0,W.r)("colorRamp")],L.prototype,"readColorRamp",null),(0,I._)([(0,K.Cb)({type:["traditional","multi-directional"],json:{write:!0}})],L.prototype,"hillshadeType",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],L.prototype,"pixelSizePower",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],L.prototype,"pixelSizeFactor",void 0),(0,I._)([(0,K.Cb)({type:["none","adjusted"],json:{write:!0}})],L.prototype,"scalingType",void 0),(0,I._)([(0,Q.J)({rasterShadedRelief:"raster-shaded-relief"})],L.prototype,"type",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],L.prototype,"zFactor",void 0),L=S=(0,I._)([(0,T.j)("esri.renderers.RasterShadedReliefRenderer")],L);const V=L},65539:(ue,q,a)=>{a.d(q,{Z:()=>J});var V,I=a(17626),N=a(86810),A=a(58817),K=a(77712),Q=(a(90912),a(55342)),W=a(68653),T=a(76898),z=a(99433),S=a(65468),L=a(79023);let B=V=class extends N.wq{constructor(E){super(E),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.statistics=[],this.histograms=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(E){if(E)return(0,L.i)(E)}writeStatistics(E,D,e){E?.length&&(Array.isArray(E[0])||(E=E.map(s=>[s.min,s.max,s.avg,s.stddev])),D[e]=E)}readStretchType(E,D){let e=D.stretchType;return"number"==typeof e&&(e=S.J[e]),S.v.read(e)}clone(){return new V({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,A.d9)(this.statistics),gamma:(0,A.d9)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,A.d9)(this.colorRamp),histograms:(0,A.d9)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,I._)([(0,K.Cb)({types:L.V,json:{write:!0}})],B.prototype,"colorRamp",void 0),(0,I._)([(0,W.r)("colorRamp")],B.prototype,"readColorRamp",null),(0,I._)([(0,K.Cb)({type:Boolean,json:{write:!0}})],B.prototype,"computeGamma",void 0),(0,I._)([(0,K.Cb)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],B.prototype,"dynamicRangeAdjustment",void 0),(0,I._)([(0,K.Cb)({type:[Number],json:{write:!0}})],B.prototype,"gamma",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],B.prototype,"maxPercent",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],B.prototype,"minPercent",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],B.prototype,"numberOfStandardDeviations",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],B.prototype,"outputMax",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],B.prototype,"outputMin",void 0),(0,I._)([(0,K.Cb)({type:Number,json:{write:!0}})],B.prototype,"sigmoidStrengthLevel",void 0),(0,I._)([(0,K.Cb)({json:{type:[[Number]],write:!0}})],B.prototype,"statistics",void 0),(0,I._)([(0,K.Cb)()],B.prototype,"histograms",void 0),(0,I._)([(0,z.c)("statistics")],B.prototype,"writeStatistics",null),(0,I._)([(0,K.Cb)({type:Boolean,json:{write:!0}})],B.prototype,"useGamma",void 0),(0,I._)([(0,K.Cb)({type:S.v.apiValues,json:{type:S.v.jsonValues,write:S.v.write}})],B.prototype,"stretchType",void 0),(0,I._)([(0,W.r)("stretchType",["stretchType"])],B.prototype,"readStretchType",null),(0,I._)([(0,Q.J)({rasterStretch:"raster-stretch"})],B.prototype,"type",void 0),B=V=(0,I._)([(0,T.j)("esri.renderers.RasterStretchRenderer")],B);const J=B},53785:(ue,q,a)=>{a.d(q,{Z:()=>Ee});var w,I=a(15861),N=a(17626),A=a(91558),F=(a(29132),a(88879)),W=(a(20383),a(2076)),T=a(86810),z=a(58817),S=a(62208),L=a(77712),B=(a(90912),a(55342)),J=a(68653),E=a(76898),D=a(93555),e=a(30994),s=a(4832),M=a(2432),i=a(74400),g=a(13398),n=a(88115),_=a(81808),j=a(52068),H=a(57213),P=a(86606),U=a(72642),b=a(13546);const Z=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),X=new W.X({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),se=new W.X({flow_from:"flow-from",flow_to:"flow-to"});let re=w=class extends((0,M.W)(T.wq)){constructor(x){super(x),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(x,R){return Z.has(x)?e.NL.fromJSON(x):null}readOutputUnit(x,R){return Z.has(x)?e.NL.fromJSON(x):null}get styleRenderer(){const R=this.attributeField,Y=this._createStyleRenderer(this.style);return Y.field=R,Y}get sizeVariables(){const x=[];if(this.visualVariables)for(const R of this.visualVariables)"size"===R.type&&x.push(R);if(0===x.length){const R=new n.Z({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(R):this._set("visualVariables",[R]),x.push(R)}return x}get rotationVariables(){const x=[];if(this.visualVariables)for(const R of this.visualVariables)"rotation"===R.type&&x.push(R);if(0===x.length){const R=new g.Z({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(R):this._set("visualVariables",[R]),x.push(R)}return x}clone(){return new w({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,z.d9)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}getGraphicsFromPixelData(x,R=!1,Y=[]){var ee=this;return(0,I.Z)(function*(){const te=new Array,oe=(0,e.Yx)(ee.inputUnit,ee.outputUnit),ae=R?(0,e.KC)(x.pixelBlock,"vector-uv",ee.rotationVariables[0]?.rotationType||ee.rotationType,oe):(0,e.QI)(x.pixelBlock,"vector-magdir",oe);if((0,S.Wi)(ae))return te;const ce=x.extent,Ze=(0,S.pC)(ae.mask)&&ae.mask.length>0;let fe=0;const Be=(ce.xmax-ce.xmin)/ae.width,Ae=(ce.ymax-ce.ymin)/ae.height;for(let Ce=0;CeTe.intersects(De));if((!Ze||ae.mask[fe])&&!Ue){const Ne=new F.Z({geometry:{type:"point",x:De.x,y:De.y,spatialReference:ce.spatialReference},attributes:{Magnitude:ae.pixels[0][fe],Direction:ae.pixels[1][fe]}});Ne.symbol=ee._getVisualVariablesAppliedSymbol(Ne),te.push(Ne)}}return te})()}getSymbol(x,R){}getSymbolAsync(x,R){return(0,I.Z)(function*(){})()}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(x){return new H.Z({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new j.Z({width:0}),size:20,color:x||new A.Z([0,92,230])})}_getVisualVariablesAppliedSymbol(x){if(!x)return;const R=this.styleRenderer?.getSymbol(x)?.clone(),Y=this.sizeVariables,ee=this.rotationVariables;return Y&&Y.length&&this.sizeVariables.forEach(te=>(0,P.e3)(R,(0,_.getAllSizes)([te],x))),ee&&ee.length&&(x.attributes.Direction=x.attributes.Direction+("flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180),this.rotationVariables.forEach(oe=>(0,P.BR)(R,(0,_.getRotationAngle)(oe,x),oe.axis))),R}_createStyleRenderer(x){let R={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(x){case"single-arrow":R=this._createSingleArrowRenderer();break;case"beaufort-kn":R=this._createBeaufortKnotsRenderer();break;case"beaufort-m":R=this._createBeaufortMeterRenderer();break;case"beaufort-ft":R=this._createBeaufortFeetRenderer();break;case"beaufort-mi":R=this._createBeaufortMilesRenderer();break;case"beaufort-km":R=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":R=this._createCurrentMeterRenderer();break;case"ocean-current-kn":R=this._createCurrentKnotsRenderer();break;case"simple-scalar":R=this._createSimpleScalarRenderer();break;case"wind-barb":R=this._createWindBarbsRenderer();break;case"classified-arrow":R=this._createClassifiedArrowRenderer()}return new s.Z(R)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new A.Z([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new A.Z([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const x=this._getDefaultSymbol(new A.Z([214,47,39]));let R=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return R=R.map(te=>3.28084*te),{defaultSymbol:x,classBreakInfos:this._getClassBreaks(R,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const x=this._getDefaultSymbol(new A.Z([214,47,39]));let R=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return R=R.map(te=>2.23694*te),{defaultSymbol:x,classBreakInfos:this._getClassBreaks(R,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const x=this._getDefaultSymbol(new A.Z([214,47,39]));let R=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return R=R.map(te=>3.6*te),{defaultSymbol:x,classBreakInfos:this._getClassBreaks(R,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new A.Z([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new A.Z([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const x=this._getDefaultSymbol(new A.Z([56,168,0]));let R=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const ee=this.sizeVariables[0].minDataValue,te=this.sizeVariables[0].maxDataValue;if(ee&&te){const oe=(te-ee)/5;R=Array.from(Array(6).keys()).map(Me=>ee+oe*Me)}}return{defaultSymbol:x,classBreakInfos:this._getClassBreaks(R,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:b.Z.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const x=Array.from(Array(31).keys()).map(te=>5*te),R=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],Y=b.Z.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),ee=x.map((te,oe)=>{let Me;if(oe!==x.length-1)if(0===oe)Me={minValue:te,maxValue:x[oe+1],symbol:Y};else{const ae=b.Z.fromJSON({type:"esriPMS",imageData:R[oe].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});Me={minValue:te,maxValue:x[oe+1],symbol:ae}}return new i.Z(Me)});return{defaultSymbol:Y,classBreakInfos:ee}}_getClassBreaks(x,R){return R.map((Y,ee)=>new i.Z({minValue:x[ee],maxValue:x[ee+1],symbol:this._getDefaultSymbol(new A.Z(Y))}))}};(0,N._)([(0,L.Cb)({type:String,json:{write:!0}})],re.prototype,"attributeField",void 0),(0,N._)([(0,L.Cb)({type:se.apiValues,json:{type:se.jsonValues,read:{reader:se.read},write:{writer:se.write}}})],re.prototype,"flowRepresentation",void 0),(0,N._)([(0,L.Cb)({type:["geographic","arithmetic"],json:{write:!0}})],re.prototype,"rotationType",void 0),(0,N._)([(0,L.Cb)({type:X.apiValues,json:{type:X.jsonValues,read:{reader:X.read},write:{writer:X.write}}})],re.prototype,"style",void 0),(0,N._)([(0,L.Cb)({json:{write:!0}})],re.prototype,"symbolTileSize",void 0),(0,N._)([(0,L.Cb)({type:e.NL.apiValues,json:{type:e.NL.jsonValues,write:{writer:e.NL.write}}})],re.prototype,"inputUnit",void 0),(0,N._)([(0,J.r)("inputUnit")],re.prototype,"readInputUnit",null),(0,N._)([(0,L.Cb)({type:e.NL.apiValues,json:{type:e.NL.jsonValues,read:{reader:e.NL.read},write:{writer:e.NL.write}}})],re.prototype,"outputUnit",void 0),(0,N._)([(0,J.r)("outputUnit")],re.prototype,"readOutputUnit",null),(0,N._)([(0,B.J)({vectorField:"vector-field"})],re.prototype,"type",void 0),(0,N._)([(0,L.Cb)({type:s.Z})],re.prototype,"styleRenderer",null),(0,N._)([(0,L.Cb)({type:n.Z})],re.prototype,"sizeVariables",null),(0,N._)([(0,L.Cb)({type:g.Z})],re.prototype,"rotationVariables",null),re=w=(0,N._)([(0,E.j)("esri.renderers.VectorFieldRenderer")],re);const Ee=re},8341:(ue,q,a)=>{a.d(q,{In:()=>U,Ob:()=>H,U0:()=>P,YD:()=>Z,ol:()=>Te});var I=a(91558),A=(a(90885),a(62208)),F=(a(16730),a(36255)),Q=a(79645),T=(a(12492),a(15312)),S=(a(74400),a(70208)),L=a(87266),J=(a(79767),a(19556),a(49739)),E=a(65539),D=a(73640),e=a(76511),i=(a(15177),a(4832),a(53785));const n=J.Z.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),_=J.Z.fromJSON(S.Ms[0]),j=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function H(c,h){const{attributeTable:f,colormap:y}=c;if(Ae(c)){const O=function De(c){if(!Ae(c))return null;let h;if((0,A.pC)(c.statistics)&&c.statistics.length&&("vector-magdir"===c.dataType||"vector-uv"===c.dataType)){const{minMagnitude:O,maxMagnitude:k}=function xe(c,h){let f,y;if("vector-magdir"===c)f=h[0].min,y=h[0].max;else{const k=h[0].max,G=h[1].min,$=h[1].max;f=0,y=Math.max(Math.abs(h[0].min),Math.abs(G),Math.abs(k),Math.abs($))}return{minMagnitude:f,maxMagnitude:y}}(c.dataType,c.statistics);h=[{type:"size",field:"Magnitude",minSize:10,maxSize:40,minDataValue:O,maxDataValue:k}]}const f=(0,A.pC)(c.multidimensionalInfo)?we.get(c.multidimensionalInfo.variables[0].unit):null,y=new i.Z({visualVariables:h,inputUnit:f,rotationType:"geographic"});return y.visualVariables=[...y.sizeVariables,...y.rotationVariables],y}(c);if((0,A.pC)(O))return O}if((0,A.pC)(y)){const O=function oe(c){if(!te(c))return null;let h;const{attributeTable:f,colormap:y}=c;if((0,A.pC)(f)){const O=Y(f,"value"),k=x(f,null,!0);"string"===k.type&&(h={},f.features.forEach(G=>{const $=G.attributes;h[$[O.name]]=k?$[k.name]:$[O.name]}))}return e.Z.createFromColormap((0,A.Wg)(y),h)}(c);if((0,A.pC)(O))return O}if((0,A.pC)(f)){const O=function Ee(c,h,f,y){if(!ee(c,h))return null;const{attributeTable:O,statistics:k}=c,G=x(O,h),$=Y(O,"red"),me=Y(O,"green"),pe=Y(O,"blue"),de=new T.Z,le=[],ye=new Set,ve=!!($&&me&&pe);if((0,A.pC)(O))O.features.forEach(ne=>{const _e=ne.attributes[G.name];if(!ye.has(ne.attributes[G.name])&&null!=_e){ye.add(_e);const be=!ve||"single"!==$.type&&"double"!==$.type||"single"!==me.type&&"double"!==me.type||"single"!==pe.type&&"double"!==pe.type||O.features.some(ie=>ie.attributes[$.name]>1||ie.attributes[me.name]>1||ie.attributes[pe.name]>1)?1:255;le.push(new L.Z({value:ne.attributes[G.name],label:ne.attributes[G.name]+"",symbol:{type:"simple-fill",style:"solid",outline:null,color:new I.Z(ve?[ne.attributes[$.name]*be,ne.attributes[me.name]*be,ne.attributes[pe.name]*be,1]:[0,0,0,0])}}))}});else if(k?.[0])for(let ne=k[0].min;ne<=k[0].max;ne++)le.push(new L.Z({value:ne,label:ne.toString(),symbol:{type:"simple-fill",style:"solid",outline:null,color:new I.Z([0,0,0,0])}}));if(le.sort((ne,_e)=>ne.value&&"string"==typeof ne.value.valueOf()?0:ne.value>_e.value?1:-1),!ve){const ne=(0,S.Jw)(_,le.length);le.forEach((_e,ge)=>_e.symbol.color=new I.Z(ne[ge].slice(1,4))),de.colorRamp=_}if(f||y){const ne=f||(0,S.Jw)(y,le.length).map(_e=>_e.slice(1));le.forEach((_e,ge)=>_e.symbol.color=new I.Z(ne[ge])),de.colorRamp=y}return new D.Z({field:G.name,uniqueValueInfos:le,authoringInfo:de})}(c);if((0,A.pC)(O))return O}return function b(c,h){c=function w(c,h){if(null==h)return c;let f=(0,A.Wg)(c.statistics),y=(0,A.Wg)(c.histograms);const{multidimensionalInfo:O}=c;if(h&&(0,A.pC)(O)){const k=O.variables.find(G=>G.name===h);if(k){const{statistics:G,histograms:$}=k;G?.length&&(f=G),$?.length&&(y=$)}}return Q.Z.fromJSON({...c.toJSON(),statistics:f,histograms:y})}(c,h?.variableName);const{bandCount:f}=c;let{bandIds:y,stretchType:O}=h||{};y?.some(le=>le>=f)&&(y=null);let k=(0,A.Wg)(c.statistics),G=(0,A.Wg)(c.histograms);f>1?(y=y?.length?y:Z(c),k=null==k?null:y?.map(le=>k[le]),G=null==G?null:y?.map(le=>G[le])):y=[0],null==O&&(O=function re(c){let h="percent-clip";const{pixelType:f,dataType:y,histograms:O,statistics:k}=c;return"u8"!==f||"processed"!==y&&(0,A.pC)(O)&&(0,A.pC)(k)?"u8"===f||"elevation"===y||j.has(y)?h="min-max":(0,A.pC)(O)?h="percent-clip":(0,A.pC)(k)&&(h="min-max"):h="none",h}(c));let $=!1;switch(O){case"none":$=!1;break;case"percent-clip":$=!G?.length;break;default:$=!k?.length}const{dataType:me}=c,pe=1===y?.length&&j.has(me)?n:null,de=new E.Z({stretchType:O,dynamicRangeAdjustment:$,colorRamp:pe,outputMin:0,outputMax:255,gamma:1===y?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===O?de.maxPercent=de.minPercent=.25:"standard-deviation"===O&&(de.numberOfStandardDeviations=2),$||!(0,A.pC)(c.multidimensionalInfo)&&!h?.includeStatisticsInStretch||("percent-clip"===O?de.histograms=G:"min-max"!==O&&"standard-deviation"!==O||(de.statistics=k)),de}(c,h)}function P(c,h=!1){const f=["raster-stretch"];return te(c)&&f.push("raster-colormap"),ee(c)&&f.push("unique-value"),function ce(c,h=!1){const{attributeTable:f,bandCount:y}=c;return 1===y&&(!h||(0,A.pC)(f)||(0,A.pC)(c.histograms))}(c,h)&&f.push("class-breaks"),function Me(c){const{bandCount:h,dataType:f,pixelType:y}=c;return"elevation"===f||"generic"===f&&1===h&&("s16"===y||"s32"===y||"f32"===y||"f64"===y)}(c)&&f.push("raster-shaded-relief"),Ae(c)&&f.push("vector-field"),function Ce(c){const{dataType:h}=c;return"vector-uv"===h||"vector-magdir"===h}(c)&&f.push("flow"),f}function U(c,h,f){const y=["nearest","bilinear","cubic","majority"].find(O=>O===f?.toLowerCase());return"Map"===h?y??"bilinear":"standard-time"===c.dataType?y??"nearest":"thematic"===c.dataType||c.attributeTable||c.colormap?"nearest"===y||"majority"===y?y:"nearest":y??"bilinear"}function Z(c){const h=c.bandCount;if(1===h)return null;if(2===h)return[0];const f=c.keyProperties&&c.keyProperties.BandProperties;let y;if(f&&f.length===h){const{red:O,green:k,blue:G,nir:$}=function se(c){const h={};for(let f=0;f=410&&k<=480&&G>=480&&G<=540?h.blue=f:null==h.green&&k>=490&&k<=560&&G>=560&&G<=610?h.green=f:null==h.red&&k>=595&&k<=670&&G>=660&&G<=730?h.red=f:null==h.nir&&k>=700&&k<=860&&G>=800&&G<=950&&(h.nir=f)}}return h}(f);null!=O&&null!=k&&null!=G?y=[O,k,G]:null!=$&&null!=O&&null!=k&&(y=[$,O,k])}return!y&&h>=3&&(y=[0,1,2]),y}function x(c,h,f){let y;return(0,A.pC)(c)?(y=h?c.fields.find(O=>h.toLowerCase()===O.name.toLowerCase()):function R(c){let h;for(let f=0;f"string"===O.type)),y||(y=Y(c,"value")))):y=new F.Z({name:"value"}),y}function Y(c,h){return(0,A.Wi)(c)?null:c.fields.find(f=>f.name.toLowerCase()===h)}function ee(c,h){const{attributeTable:f,bandCount:y}=c;return!(!(0,A.Wi)(f)||!function Be(c){return["u8","s8"].includes(c.pixelType)&&null!=c.statistics?.[0]?.min&&null!=c.statistics[0]?.max&&1===c.bandCount}(c))||!((0,A.Wi)(f)||y>1||h&&null==f.fields.find(O=>O.name.toLowerCase()===h.toLowerCase()))}function te(c){const{bandCount:h,colormap:f}=c;return(0,A.pC)(f)&&f.length>0&&1===h}function Ae(c){const{dataType:h}=c;return"vector-uv"===h||"vector-magdir"===h}const we=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function Ue(c){return{color:c.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function Te(c){if("uniqueValue"===c.type){const h=c.uniqueValueInfos;return h?.[0].symbol?.symbolLayers?.length&&(c.uniqueValueInfos=h?.map(y=>({value:y.value,label:y.label,symbol:y.symbol?Ue(y.symbol):null}))),c}if("classBreaks"===c.type){const h=c.classBreakInfos;return h[0].symbol?.symbolLayers?.length&&(c.classBreakInfos=h.map(f=>({classMinValue:f.classMinValue,classMaxValue:f.classMaxValue,label:f.label,symbol:f.symbol?Ue(f.symbol):null}))),c}return c}},99208:(ue,q,a)=>{a.d(q,{N:()=>V,g:()=>L});var I=a(15861),N=a(84792),A=a(2004),K=a(72642),F=a(65234),Q=a(79645),W=a(2618),T=a(17253);function z(B,J,E){return S.apply(this,arguments)}function S(){return(S=(0,I.Z)(function*(B,J,E){const D=(0,W.en)(B),{renderingRule:e,sourceJSON:s}=J||{},M=e?JSON.stringify(e.rasterFunctionDefinition||e):null,i=(0,W.cv)({...D.query,renderingRule:M,f:"json"}),g=(0,W.lA)(i,E);B=D.path;const n=s||(yield(0,N.default)(B,g).then(ae=>ae.data)),_=n.hasRasterAttributeTable?(0,N.default)(`${B}/rasterAttributeTable`,g):null,j=n.hasColormap?(0,N.default)(`${B}/colormap`,g):null,H=n.hasHistograms?(0,N.default)(`${B}/histograms`,g):null,P=n.currentVersion>=10.3?(0,N.default)(`${B}/keyProperties`,g):null,U=n.hasMultidimensions?(0,N.default)(`${B}/multidimensionalInfo`,g):null,b=yield Promise.allSettled([_,j,H,P,U]);let w=null;if(n.minValues&&n.minValues.length===n.bandCount){w=[];for(let ae=0;ae{ae.statistics?.length&&ae.statistics.forEach(ce=>{ce.avg=ce.mean,ce.stddev=ce.standardDeviation})});const{defaultVariable:te,serviceDataType:oe}=n;te&&te!==Y.DefaultVariable&&(Y.DefaultVariable=te),oe&&oe.includes("esriImageServiceDataTypeVector")&&!oe.includes(Y.DataType)&&(Y.DataType=oe.replace("esriImageServiceDataType",""));let Me=n.noDataValue;return n.noDataValues?.length&&n.noDataValues.some(ae=>ae!==Me)&&(Me=n.noDataValues),new Q.Z({width:X,height:se,bandCount:n.bandCount,extent:A.Z.fromJSON(n.extent),spatialReference:re,pixelSize:new K.Z({x:n.pixelSizeX,y:n.pixelSizeY,spatialReference:re}),pixelType:n.pixelType.toLowerCase(),statistics:w,attributeTable:Ee,colormap:x,histograms:R,keyProperties:Y,noDataValue:Me,multidimensionalInfo:ee})})).apply(this,arguments)}function L(B,J,E){return z(B,{sourceJSON:J},E)}function V(B,J,E){return z(B,{renderingRule:J},E)}},79767:(ue,q,a)=>{a.d(q,{Z:()=>D});var I=a(17626),N=a(2076),A=a(77712),Q=(a(85931),a(90912),a(76898)),W=a(86810),T=a(79023),z=a(10012);const S=new N.X({classBreaksDef:"class-breaks-definition",uniqueValueDef:"unique-value-definition"});let L=class extends W.wq{constructor(){super(...arguments),this.baseSymbol=null,this.colorRamp=null,this.type=null}};(0,I._)([(0,A.Cb)({type:z.Z,json:{write:!0}})],L.prototype,"baseSymbol",void 0),(0,I._)([(0,A.Cb)({types:T.V,json:{read:{reader:T.i},write:!0}})],L.prototype,"colorRamp",void 0),(0,I._)([(0,A.Cb)({json:{read:S.read,write:S.write}})],L.prototype,"type",void 0),L=(0,I._)([(0,Q.j)("esri.rest.support.ClassificationDefinition")],L);const V=L,B=new N.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),J=new N.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let E=class extends V{constructor(){super(...arguments),this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null,this.type="class-breaks-definition"}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,I._)([(0,A.Cb)({json:{write:!0}})],E.prototype,"breakCount",void 0),(0,I._)([(0,A.Cb)({json:{write:!0}})],E.prototype,"classificationField",void 0),(0,I._)([(0,A.Cb)({type:String,json:{read:B.read,write:B.write}})],E.prototype,"classificationMethod",void 0),(0,I._)([(0,A.Cb)({json:{write:!0}})],E.prototype,"normalizationField",void 0),(0,I._)([(0,A.Cb)({json:{read:J.read,write:J.write}})],E.prototype,"normalizationType",void 0),(0,I._)([(0,A.Cb)({value:null,json:{write:!0}})],E.prototype,"standardDeviationInterval",null),(0,I._)([(0,A.Cb)({value:null,json:{write:!0}})],E.prototype,"definedInterval",null),(0,I._)([(0,A.Cb)()],E.prototype,"type",void 0),E=(0,I._)([(0,Q.j)("esri.rest.support.ClassBreaksDefinition")],E);const D=E},19556:(ue,q,a)=>{a.d(q,{k:()=>F});const N=a(63290).Z.getLogger("esri.rest.support.generateRendererUtils");function A(D,e){return Number(D.toFixed(e))}function F(D){const{normalizationTotal:e}=D;return{classBreaks:Q(D),normalizationTotal:e}}function Q(D){const e=D.definition,{classificationMethod:s,breakCount:M,normalizationType:i,definedInterval:g}=e,n=[];let _=D.values;if(0===_.length)return[];_=_.sort((P,U)=>P-U);const j=_[0],H=_[_.length-1];if("equal-interval"===s)if(_.length>=M){const P=(H-j)/M;let U=j;for(let b=1;b{n.push({minValue:P,maxValue:P,label:W(P,P,i)})});else if("natural-breaks"===s){const P=function T(D){const e=[],s=[];let M=Number.MIN_VALUE,i=1,g=-1;for(let n=0;nM&&(s=M);for(let n=0;n0;b--)for(;s[b]!==s[b-1]+1;){s[b]=s[b]-1;const w=E(b-1,s,M,i);j=w.sbMean,n=w.sbSdcm;const Z=E(b,s,M,i);if(H=Z.sbMean,_=Z.sbSdcm,!(n+_Z){const X=A(P.uniqueValues[b[Z]],6);n.push({minValue:w,maxValue:X,label:W(w,X,i)}),w=X}n.push({minValue:w,maxValue:H,label:W(w,H,i)})}else if("quantile"===s)if(_.length>=M&&j!==H){let P=j,U=Math.ceil(_.length/M),b=0;for(let w=1;w_.length&&(Z=_.length-1),Z<0&&(Z=0),n.push({minValue:P,maxValue:_[Z],label:W(P,_[Z],i)}),P=_[Z],b+=U,U=Math.ceil((_.length-b)/(M-w))}n.push({minValue:P,maxValue:H,label:W(P,H,i)})}else{let P=-1;for(let U=0;U<_.length;U++){const b=_[U];b!==P&&(P=b,n.push({minValue:P,maxValue:b,label:W(P,b,i)}),P=b)}}else if("standard-deviation"===s){const P=function B(D){let e=0;for(let s=0;s=1?1:g>=.5?.5:.25,g}(j,H,M,P,U)*U;let w=0,Z=j;for(let se=M;se>=1;se--){const re=A(P-(se-.5)*b,6);n.push({minValue:Z,maxValue:re,label:W(Z,re,i)}),Z=re,w++}let X=A(P+.5*b,6);n.push({minValue:Z,maxValue:X,label:W(Z,X,i)}),Z=X,w++;for(let se=1;se<=M;se++)X=w===2*M?H:A(P+(se+.5)*b,6),n.push({minValue:Z,maxValue:X,label:W(Z,X,i)}),Z=X,w++}}else if("defined-interval"===s){if(!g)return n;const P=_[0],U=_[_.length-1],b=Math.ceil((U-P)/g);let w=P;for(let Z=1;Z0&&Z!==D[w+1]&&Math.abs(P-j[w])>Math.abs(P-j[w-1]))D[w]=Z;else if(wMath.abs(P-j[w+1])){D[w+1]=Z-1;break}U=_,_=0,g=[],n=[];for(let w=0;wU){for(let w=0;w{C.r(Be),C.d(Be,{default:()=>yt});var le=C(15861),me=C(10699),Y=C(919),He=C(62208),A=C(86575);function Ke(c){return!(c<11904)&&(c>=12704&&c<=12735||c>=12544&&c<=12591||c>=65072&&c<=65103||c>=63744&&c<=64255||c>=13056&&c<=13311||c>=11904&&c<=12031||c>=12736&&c<=12783||c>=12288&&c<=12351||c>=13312&&c<=19903||c>=19968&&c<=40959||c>=12800&&c<=13055||c>=65280&&c<=65519||c>=12352&&c<=12447||c>=12272&&c<=12287||c>=12032&&c<=12255||c>=12784&&c<=12799||c>=12448&&c<=12543||c>=65040&&c<=65055||c>=42128&&c<=42191||c>=40960&&c<=42127)}function We(c){switch(c){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function be(c){switch(c){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var we=C(84439);const Z=24;class De{constructor(e,t,n,i,r,a,o){this._glyphItems=e,this._maxWidth=t,this._lineHeight=n,this._letterSpacing=i,this._hAnchor=r,this._vAnchor=a,this._justify=o}getShaping(e,t,n){const i=this._letterSpacing,r=this._lineHeight,a=this._justify,o=this._maxWidth,l=[];let u=0,f=0;const d=e.length;for(let p=0;p=12704&&c<=12735||c>=12544&&c<=12591||c>=65072&&c<=65103&&!(c>=65097&&c<=65103)||c>=63744&&c<=64255||c>=13056&&c<=13311||c>=11904&&c<=12031||c>=12736&&c<=12783||c>=12288&&c<=12351&&!(c>=12296&&c<=12305||c>=12308&&c<=12319||12336===c)||c>=13312&&c<=19903||c>=19968&&c<=40959||c>=12800&&c<=13055||c>=12592&&c<=12687||c>=43360&&c<=43391||c>=55216&&c<=55295||c>=4352&&c<=4607||c>=44032&&c<=55215||c>=12352&&c<=12447||c>=12272&&c<=12287||c>=12688&&c<=12703||c>=12032&&c<=12255||c>=12784&&c<=12799||c>=12448&&c<=12543&&12540!==c||c>=65280&&c<=65519&&!(65288===c||65289===c||65293===c||c>=65306&&c<=65310||65339===c||65341===c||65343===c||c>=65371&&c<=65503||65507===c||c>=65512&&c<=65519)||c>=65104&&c<=65135&&!(c>=65112&&c<=65118||c>=65123&&c<=65126)||c>=5120&&c<=5759||c>=6320&&c<=6399||c>=65040&&c<=65055||c>=19904&&c<=19967||c>=40960&&c<=42127||c>=42128&&c<=42191));let I;for(const P of this._glyphItems)if(I=P[M],I)break;l.push({codePoint:M,x:u,y:f,vertical:B,glyphMosaicItem:I}),I&&(u+=I.metrics.advance+i)}var c;let h=u;o>0&&(h=u/Math.max(1,Math.ceil(u/o)));const y=e.includes("\u200b"),g=[];for(let p=0;pB&&be(l[I].codePoint);)l[I].glyphMosaicItem=null,--I;if(B<=I){const P=l[B].x;for(let b=B;b<=I;b++)l[b].x-=P,l[b].y=f;let L=l[I].x;l[I].glyphMosaicItem&&(L+=l[I].glyphMosaicItem.metrics.advance),T=Math.max(L,T),a&&this._applyJustification(l,B,I)}_=M,f+=x}if(l.length>0){const p=m.length-1,M=(a-this._hAnchor)*T;let B=(-this._vAnchor*(p+1)+.5)*r;t&&p&&(B+=p*r);for(const I of l)I.x+=M,I.y+=B}return l.filter(p=>p.glyphMosaicItem)}static getTextBox(e,t){if(!e.length)return null;let n=1/0,i=1/0,r=0,a=0;for(const o of e){const u=o.x,f=o.y-17,d=u+o.glyphMosaicItem.metrics.advance,h=f+t;n=Math.min(n,u),r=Math.max(r,d),i=Math.min(i,f),a=Math.max(a,h)}return{x:n,y:i,width:r-n,height:a-i}}static getBox(e){if(!e.length)return null;let t=1/0,n=1/0,i=0,r=0;for(const a of e){const{height:o,left:l,top:u,width:f}=a.glyphMosaicItem.metrics,d=a.x,h=a.y-(o-Math.abs(u)),y=d+f+l,g=h+o;t=Math.min(t,d),i=Math.max(i,y),n=Math.min(n,h),r=Math.max(r,g)}return{x:t,y:n,width:i-t,height:r-n}}static addDecoration(e,t){const n=e.length;if(0===n)return;let r=e[0].x+e[0].glyphMosaicItem.metrics.left,a=e[0].y;for(let l=1;l=0&&o,y=i.allowOverlap&&i.ignorePlacement?null:[],g=[],T=!h;let x=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,p=x,M=_;const B=(h||o)&&l,I=i.size/Z;let P=!1;for(const w of t)if(w.vertical){P=!0;break}let L,b=0,D=0;if(!h&&P){const w=De.getTextBox(t,i.lineHeight*Z);switch(i.anchor){case V.nR.LEFT:b=w.height/2,D=-w.width/2;break;case V.nR.RIGHT:b=-w.height/2,D=w.width/2;break;case V.nR.TOP:b=w.height/2,D=w.width/2;break;case V.nR.BOTTOM:b=-w.height/2,D=-w.width/2;break;case V.nR.TOP_LEFT:b=w.height;break;case V.nR.BOTTOM_LEFT:D=-w.width;break;case V.nR.TOP_RIGHT:D=w.width;break;case V.nR.BOTTOM_RIGHT:b=-w.height}}b+=i.offset[0]*Z,D+=i.offset[1]*Z;for(const w of t){const S=w.glyphMosaicItem;if(!S||S.rect.isEmpty)continue;const k=S.rect,R=S.metrics,U=S.page;if(y&&T){if(void 0!==L&&L!==w.y){let F,N,W,j;P?(F=-M+b,N=x+D,W=M-p,j=_-x):(F=x+b,N=p+D,W=_-x,j=M-p),y.push({xTile:e.x,yTile:e.y,dxPixels:F*I-u,dyPixels:N*I-u,hard:!i.optional,partIndex:1,width:W*I+2*u,height:j*I+2*u,angle:a,minLod:q,maxLod:A.B1}),x=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,p=x,M=_}L=w.y}const ee=[];if(h){const N=(w.x+R.left-4+.5*S.metrics.width)*I*8;if(f=this._placeGlyph(e,f,N,n,e.segment,1,w.vertical,U,ee),l&&(f=this._placeGlyph(e,f,N,n,e.segment,-1,w.vertical,U,ee)),f>=2)break}else ee.push(new ce(r,d,d,U,!1)),o&&l&&ee.push(new ce(r,d+A.JJ,d+A.JJ,U,!1));const H=w.x+R.left,X=w.y-17-R.top,te=H+R.width,Te=X+R.height;let z,K,fe,de,se,ye,Ne,Ge;!h&&P?w.vertical?(z=new E.E(-((X+Te)/2+R.width/2)-4+b,(H+te)/2-R.height/2-4+D),K=new E.E(z.x+k.width,z.y+k.height),fe=new E.E(z.x,K.y),de=new E.E(K.x,z.y)):(z=new E.E(4-X+b,H-4+D),K=new E.E(z.x-k.height,z.y+k.width),fe=new E.E(K.x,z.y),de=new E.E(z.x,K.y)):(z=new E.E(H-4+b,X-4+D),K=new E.E(z.x+k.width,z.y+k.height),fe=new E.E(z.x,K.y),de=new E.E(K.x,z.y));for(const F of ee){let N,W,j,Q;F.alternateVerticalGlyph?(se||(se=new E.E((H+te)/2+b-R.height/2-4,(X+Te)/2+D+R.width/2+4),ye=new E.E(se.x+k.height,se.y-k.width),Ne=new E.E(ye.x,se.y),Ge=new E.E(se.x,ye.y)),N=se,W=Ne,j=Ge,Q=ye):(N=z,W=fe,j=de,Q=K);const xe=X,Pe=Te,ge=F.glyphAngle+a;if(0!==ge){const $=Math.cos(ge),pe=Math.sin(ge);N=N.clone(),W=W.clone(),j=j.clone(),Q=Q.clone(),N.rotate($,pe),Q.rotate($,pe),W.rotate($,pe),j.rotate($,pe)}let ae=0,oe=256;h&&P?w.vertical?F.alternateVerticalGlyph?(ae=32,oe=96):(ae=224,oe=32):(ae=224,oe=96):(ae=192,oe=64),g.push(new ve(N,j,W,Q,k,F.labelAngle,ae,oe,F.anchor,F.minzoom,F.maxzoom,F.page)),!y||B&&!this._legible(F.labelAngle)||(T?(H_&&(_=te),Pe>M&&(M=Pe)):F.minzoom<2&&y.push({xTile:e.x,yTile:e.y,dxPixels:(H+b)*I-u,dyPixels:(xe+b)*I-u,hard:!i.optional,partIndex:1,width:(te-H)*I+2*u,height:(Pe-xe)*I+2*u,angle:ge,minLod:F.minzoom,maxLod:F.maxzoom}))}}if(f>=2)return null;if(y&&T){let w,S,k,R;P?(w=-M+b,S=x+D,k=M-p,R=_-x):(w=x+b,S=p+D,k=_-x,R=M-p),y.push({xTile:e.x,yTile:e.y,dxPixels:w*I-u,dyPixels:S*I-u,hard:!i.optional,partIndex:1,width:k*I+2*u,height:R*I+2*u,angle:a,minLod:q,maxLod:A.B1})}const v=new Ae(g);return y&&y.length>0&&(v.textColliders=y),v}_legible(e){const t=(0,A.Or)(e);return t<65||t>=193}_placeGlyph(e,t,n,i,r,a,o,l,u){let f=a;const d=f<0?(0,A.DQ)(e.angle+A.JJ,A._U):e.angle;let h=0;n<0&&(f*=-1,n*=-1,h=A.JJ),f>0&&++r;let y=new E.E(e.x,e.y),g=i[r],m=A.B1;if(i.length<=r)return m;for(;;){const T=g.x-y.x,x=g.y-y.y,_=Math.sqrt(T*T+x*x),p=Math.max(n/_,t),I=(0,A.DQ)(Math.atan2(x/_,T/_)+h,A._U);if(u.push(new ce(y,d,I,l,!1,p,m)),o&&u.push(new ce(y,d,I,l,!0,p,m)),p<=t)return p;y=g.clone();do{if(i.length<=(r+=f)||r<0)return p;g=i[r]}while(y.isEqual(g));let P=g.x-y.x,L=g.y-y.y;const b=Math.sqrt(P*P+L*L);P*=_/b,L*=_/b,y.x-=P,y.y-=L,m=p}}}var ie,c,Ye=C(24192),ke=C(58774);(c=ie||(ie={}))[c.moveTo=1]="moveTo",c[c.lineTo=2]="lineTo",c[c.close=7]="close";class Je{constructor(e,t){this.values={},this._geometry=void 0,this._pbfGeometry=null;const n=t.keys,i=t.values,r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:this.id=r.getUInt64();break;case 2:{const a=r.getMessage().asUnsafe(),o=this.values;for(;!a.empty();){const l=a.getUInt32(),u=a.getUInt32();o[n[l]]=i[u]}a.release();break}case 3:this.type=r.getUInt32();break;case 4:this._pbfGeometry=r.getMessage();break;default:r.skip()}}getGeometry(e){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const t=this._pbfGeometry.asUnsafe();let n,i;this._pbfGeometry=null,e?e.reset(this.type):n=[];let r,a=ie.moveTo,o=0,l=0,u=0;for(;!t.empty();){if(0===o){const f=t.getUInt32();a=7&f,o=f>>3}switch(o--,a){case ie.moveTo:l+=t.getSInt32(),u+=t.getSInt32(),e?e.moveTo(l,u):n&&(i&&n.push(i),i=[],i.push(new E.E(l,u)));break;case ie.lineTo:l+=t.getSInt32(),u+=t.getSInt32(),e?e.lineTo(l,u):i&&i.push(new E.E(l,u));break;case ie.close:e?e.close():i&&!i[0].equals(l,u)&&i.push(i[0].clone());break;default:throw t.release(),new Error("Invalid path operation")}}return e?r=e.result():n&&(i&&n.push(i),r=n),t.release(),this._geometry=r,r}}var O=C(36243);class ne extends O.Z{constructor(){super(12)}add(e,t,n){const i=this.array;i.push(e),i.push(t),i.push(n)}}class Ie{constructor(e){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=e.clone();const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:this.name=t.getString();break;case 3:this.keys.push(t.getString());break;case 4:this.values.push(t.processMessage(Ie._parseValue));break;case 5:this.extent=t.getUInt32();break;default:t.skip()}}getData(){return this._pbfLayer}static _parseValue(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getInt64();case 5:return e.getUInt64();case 6:return e.getSInt64();case 7:return e.getBool();default:e.skip()}return null}}class Xe extends O.Z{constructor(e){super(e)}add(e,t,n,i,r,a,o,l,u,f,d,h){const y=this.array;let g=O.Z.i1616to32(e,t);y.push(g);const m=31;g=O.Z.i8888to32(Math.round(m*n),Math.round(m*i),Math.round(m*r),Math.round(m*a)),y.push(g),g=O.Z.i8888to32(Math.round(m*o),Math.round(m*l),Math.round(m*u),Math.round(m*f)),y.push(g),g=O.Z.i1616to32(d,0),y.push(g),h&&y.push(...h)}}class Qe extends O.Z{constructor(e){super(e)}add(e,t,n){const i=this.array;i.push(O.Z.i1616to32(e,t)),n&&i.push(...n)}}class $e extends O.Z{constructor(e){super(e)}add(e,t,n,i,r,a,o){const l=this.array,u=this.index;let f=O.Z.i1616to32(e,t);return l.push(f),f=O.Z.i8888to32(Math.round(15*n),Math.round(15*i),r,a),l.push(f),o&&l.push(...o),u}}class Re extends O.Z{constructor(e){super(e)}add(e,t,n,i,r,a,o,l,u,f,d,h){const y=this.array;let g=O.Z.i1616to32(e,t);y.push(g),g=O.Z.i1616to32(Math.round(8*n),Math.round(8*i)),y.push(g),g=O.Z.i8888to32(r/4,a/4,l,u),y.push(g),g=O.Z.i8888to32(0,(0,A.Or)(o),10*f,Math.min(10*d,255)),y.push(g),h&&y.push(...h)}}class qe extends O.Z{constructor(e){super(e)}add(e,t,n,i,r){const a=this.array,o=O.Z.i1616to32(2*e+n,2*t+i);a.push(o),r&&a.push(...r)}}class ue{constructor(e,t,n){this.layerExtent=4096,this._features=[],this.layer=e,this.zoom=t,this._spriteInfo=n,this._filter=e.getFeatureFilter()}pushFeature(e){this._filter&&!this._filter.filter(e,this.zoom)||this._features.push(e)}hasFeatures(){return this._features.length>0}getResources(e,t,n){}}class et extends ue{constructor(e,t,n,i,r){super(e,t,n),this.type=Y.al.CIRCLE,this._circleVertexBuffer=i,this._circleIndexBuffer=r}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(e){const t=this._circleVertexBuffer,n=this._circleIndexBuffer;this._circleIndexStart=3*n.index,this._circleIndexCount=0;const i=this.layer,r=this.zoom;e&&e.setExtent(this.layerExtent);for(const a of this._features){const o=a.getGeometry(e);if(!o)continue;const l=i.circleMaterial.encodeAttributes(a,r,i);for(const u of o)if(u)for(const f of u){const d=t.index;t.add(f.x,f.y,0,0,l),t.add(f.x,f.y,0,1,l),t.add(f.x,f.y,1,0,l),t.add(f.x,f.y,1,1,l),n.add(d+0,d+1,d+2),n.add(d+1,d+2,d+3),this._circleIndexCount+=6}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this._circleVertexBuffer.array.length,e+=this._circleIndexBuffer.array.length;const t=new Uint32Array(e),n=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let r=0;rM.page-B.page);for(const{ddFillAttributes:M,ddOutlineAttributes:B,page:I,geometry:P}of y)this._processFeature(P,f,t.outlineUsesFillColor,M,B,h,I)}}else for(const y of d){const g=a?i.encodeAttributes(y,n,t):null,m=f&&o?r.encodeAttributes(y,n,t):null,T=y.getGeometry(e);this._processFeature(T,f,t.outlineUsesFillColor,g,m,h)}}serialize(){let e=10;e+=this.layerUIDs.length,e+=this._fillVertexBuffer.array.length,e+=this._fillIndexBuffer.array.length,e+=this._outlineVertexBuffer.array.length,e+=this._outlineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),n=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let o=0;o0)for(const[o,[l,u]]of r)t[i++]=o,t[i++]=l,t[i++]=u;t[i++]=this._fillVertexBuffer.array.length;for(let o=0;o32?(void 0!==d&&this._processFill(e,d,i,a,o),d=[h]):y<-32&&void 0!==d&&d.push(h)}void 0!==d&&this._processFill(e,d,i,a,o)}_processOutline(e,t){const n=this._outlineVertexBuffer,i=this._outlineIndexBuffer,r=i.index;let a,o,l;const u=new E.E(0,0),f=new E.E(0,0),d=new E.E(0,0);let h=-1,y=-1,g=-1,m=-1,T=-1,x=!1,p=e.length;if(p<2)return;const M=e[0];let B=e[p-1];for(;p&&B.isEqual(M);)--p,B=e[p-1];if(!(p-0<2)){for(let I=0;I8&&(D=8),L>=0?(g=n.add(o.x,o.y,u.x,u.y,0,1,t),-1===m&&(m=g),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g),y=n.add(o.x,o.y,D*-d.x,D*-d.y,0,-1,t),-1===T&&(T=y),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g),h=y,y=g,g=n.add(o.x,o.y,d.x,d.y,0,1,t),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g),y=n.add(o.x,o.y,f.x,f.y,0,1,t),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g)):(g=n.add(o.x,o.y,D*d.x,D*d.y,0,1,t),-1===m&&(m=g),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g),y=n.add(o.x,o.y,-u.x,-u.y,0,-1,t),-1===T&&(T=y),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g),h=y,y=g,g=n.add(o.x,o.y,-d.x,-d.y,0,-1,t),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g),h=n.add(o.x,o.y,-f.x,-f.y,0,-1,t),h>=0&&y>=0&&g>=0&&!P&&i.add(h,y,g))}h>=0&&y>=0&&m>=0&&!x&&i.add(h,y,m),h>=0&&m>=0&&T>=0&&!x&&i.add(h,T,m),this._outlineIndexCount+=3*(i.index-r)}}_processFill(e,t,n,i,r){let a;t.length>1&&(a=[]);let o=0;for(const d of t)0!==o&&a.push(o),o+=e[d].length;const l=2*o,u=Se.Z.acquire();for(const d of t){const h=e[d],y=h.length;for(let g=0;g0){const d=t.map(g=>e[g].length),{buffer:h,vertexCount:y}=(0,ke.b)(u,d);if(y>0){const g=this._fillVertexBuffer.index;for(let m=0;m0){const h=this._fillVertexBuffer.index;let y=0;for(;y=4160:e.y===t.y&&(e.y<=-64||e.y>=4160)}static _area(e){let t=0;const n=e.length-1;for(let i=0;iw.page-S.page),r.textured=!0;for(const{ddAttributes:w,page:S,cap:k,join:R,miterLimit:U,roundLimit:ee,halfWidth:H,offset:X,geometry:te}of v)r.capType=k,r.joinType=R,r.miterLimit=U,r.roundLimit=ee,r.halfWidth=H,r.offset=X,this._processFeature(te,w,S)}else{if(l){const v=l.getValue(n),w=this._spriteInfo[v];if(!w||!w.rect)return}r.textured=!(!l&&!u),r.capType=g,r.joinType=_,r.miterLimit=M,r.roundLimit=I,r.halfWidth=.5*L,r.offset=D;for(const v of i){const w=a?o.encodeAttributes(v,n,t):null;y&&(r.capType=y.getValue(n,v)),x&&(r.joinType=x.getValue(n,v)),p&&(r.miterLimit=p.getValue(n,v)),B&&(r.roundLimit=B.getValue(n,v)),P&&(r.halfWidth=.5*P.getValue(n,v)),b&&(r.offset=b.getValue(n,v));const S=v.getGeometry(e);this._processFeature(S,w)}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this.tessellationProperties._lineVertexBuffer.array.length,e+=this.tessellationProperties._lineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),n=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let o=0;o0)for(const[o,[l,u]]of r)t[i++]=o,t[i++]=l,t[i++]=u;t[i++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let o=0;o(e,t,n,i,r,a,o,l,u,f,d)=>(c._lineVertexBuffer.add(e,t,o,l,n,i,r,a,u,f,d,c._ddValues),c._lineVertexBuffer.index-1),rt=c=>(e,t,n)=>{c._lineIndexBuffer.add(e,t,n)};var at=C(6879),Fe=C(77275),Oe=C(13295);function ot(c,e){return c.iconMosaicItem&&e.iconMosaicItem?c.iconMosaicItem.page===e.iconMosaicItem.page?0:c.iconMosaicItem.page-e.iconMosaicItem.page:c.iconMosaicItem&&!e.iconMosaicItem?1:!c.iconMosaicItem&&e.iconMosaicItem?-1:0}class G extends ue{constructor(e,t,n,i,r,a,o,l){super(e,t,l.getSpriteItems()),this.type=Y.al.SYMBOL,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._iconVertexBuffer=n,this._iconIndexBuffer=i,this._textVertexBuffer=r,this._textIndexBuffer=a,this._placementEngine=o,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}getResources(e,t,n){const i=this.layer,r=this.zoom;e&&e.setExtent(this.layerExtent);const a=i.getLayoutProperty("icon-image"),o=i.getLayoutProperty("text-field");let l=i.getLayoutProperty("text-transform"),u=i.getLayoutProperty("text-font");const f=[];let d,h,y,g;a&&!a.isDataDriven&&(d=a.getValue(r)),o&&!o.isDataDriven&&(h=o.getValue(r)),l&&l.isDataDriven||(y=i.getLayoutValue("text-transform",r),l=null),u&&u.isDataDriven||(g=i.getLayoutValue("text-font",r),u=null);for(const m of this._features){const T=m.getGeometry(e);if(!T||0===T.length)continue;let x,_;a&&(x=a.isDataDriven?a.getValue(r,m):this._replaceKeys(d,m.values),x&&t(x));let p=!1;if(o&&(_=o.isDataDriven?o.getValue(r,m):this._replaceKeys(h,m.values),_)){switch(_=_.replace(/\\n/g,"\n"),l&&(y=l.getValue(r,m)),y){case V._5.LOWERCASE:_=_.toLowerCase();break;case V._5.UPPERCASE:_=_.toUpperCase()}if(G._bidiEngine.hasBidiChar(_)){let P;P="rtl"===G._bidiEngine.checkContextual(_)?"IDNNN":"ICNNN",_=G._bidiEngine.bidiTransform(_,P,"VLYSN"),p=!0}const I=_.length;if(I>0){u&&(g=u.getValue(r,m));for(const P of g){let L=n[P];L||(L=n[P]=new Set);for(let b=0;bd.getGlyphItems(k));if(p=new De(S,v,w,D,P,L,b).getShaping(B,x.rtl,I),p&&p.length>0){let k=1e30,R=-1e30;for(const U of p)k=Math.min(k,U.x),R=Math.max(R,U.x);M=(R-k+48)*g*8}}for(let I of x.geometry){const P=[];if(i===V.R.LINE){if(p&&p.length>0&&f&&f.size){const L=8*f.size*(2+Math.min(2,4*Math.abs(f.offset[1])));I=G._smoothVertices(I,L)}G._pushAnchors(P,I,a,M)}else i===V.R.LINE_CENTER?G._pushCenterAnchor(P,I):x.feature.type===E.V.Polygon?G._pushCentroid(P,I):P.push(new he(I[0].x,I[0].y));for(const L of P){if(L.x<0||L.x>4096||L.y<0||L.y>4096||r&&M>0&&f.rotationAlignment===V.aF.MAP&&!G._honorsTextMaxAngle(I,L,M,m,T))continue;const b={shaping:p,line:I,iconMosaicItem:_,anchor:L,symbolFeature:x,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};y.push(b),this._processFeature(b,u,f)}}}y.sort(ot),this._addPlacedGlyphs(),this._symbolInstances=y}serialize(){let e=11;e+=this.layerUIDs.length,e+=3*this.markerPageMap.size,e+=3*this.glyphsPageMap.size,e+=G._symbolsSerializationLength(this._symbolInstances),e+=this._iconVertexBuffer.array.length,e+=this._iconIndexBuffer.array.length,e+=this._textVertexBuffer.array.length,e+=this._textIndexBuffer.array.length;const t=new Uint32Array(e),n=new Int32Array(t.buffer),i=new Float32Array(t.buffer);let r=0;t[r++]=this.type,t[r++]=this.layerUIDs.length;for(let a=0;ai in t?t[i]:"")}_processFeature(e,t,n){const{line:i,iconMosaicItem:r,shaping:a,anchor:o}=e,l=this.zoom,u=this.layer,f=!!r;let d=!0;f&&(d=t.optional||!r);const h=a&&a.length>0;let y,g,m=!0;if(h&&(m=n.optional),f&&(y=this._placementEngine.getIconPlacement(o,r,t)),(y||d)&&(h&&(g=this._placementEngine.getTextPlacement(o,a,i,n)),g||m)){if(y&&g||(m||d?m||g?d||y||(g=null):y=null:(y=null,g=null)),g){const T=u.hasDataDrivenText?u.textMaterial.encodeAttributes(e.symbolFeature.feature,l,u):null;if(this._storePlacedGlyphs(e,g.shapes,l,n.rotationAlignment,T),g.textColliders){e.textColliders=g.textColliders;for(const x of g.textColliders){x.minLod=Math.max(l+(0,A.k3)(x.minLod),0),x.maxLod=Math.min(l+(0,A.k3)(x.maxLod),25);const _=x.angle;if(_){const p=Math.cos(_),M=Math.sin(_),B=x.dxPixels*p-x.dyPixels*M,I=x.dxPixels*M+x.dyPixels*p,P=(x.dxPixels+x.width)*p-x.dyPixels*M,L=(x.dxPixels+x.width)*M+x.dyPixels*p,b=x.dxPixels*p-(x.dyPixels+x.height)*M,D=x.dxPixels*M+(x.dyPixels+x.height)*p,v=(x.dxPixels+x.width)*p-(x.dyPixels+x.height)*M,w=(x.dxPixels+x.width)*M+(x.dyPixels+x.height)*p,S=Math.min(B,P,b,v),k=Math.max(B,P,b,v),R=Math.min(I,L,D,w),U=Math.max(I,L,D,w);x.dxPixels=S,x.dyPixels=R,x.width=k-S,x.height=U-R}}}}if(y){const T=u.hasDataDrivenIcon?u.iconMaterial.encodeAttributes(e.symbolFeature.feature,l,u):null;if(this._addPlacedIcons(e,y.shapes,l,r.page,t.rotationAlignment===V.aF.VIEWPORT,T),y.iconColliders){e.iconColliders=y.iconColliders;for(const x of y.iconColliders){x.minLod=Math.max(l+(0,A.k3)(x.minLod),0),x.maxLod=Math.min(l+(0,A.k3)(x.maxLod),25);const _=x.angle;if(_){const p=Math.cos(_),M=Math.sin(_),B=x.dxPixels*p-x.dyPixels*M,I=x.dxPixels*M+x.dyPixels*p,P=(x.dxPixels+x.width)*p-x.dyPixels*M,L=(x.dxPixels+x.width)*M+x.dyPixels*p,b=x.dxPixels*p-(x.dyPixels+x.height)*M,D=x.dxPixels*M+(x.dyPixels+x.height)*p,v=(x.dxPixels+x.width)*p-(x.dyPixels+x.height)*M,w=(x.dxPixels+x.width)*M+(x.dyPixels+x.height)*p,S=Math.min(B,P,b,v),k=Math.max(B,P,b,v),R=Math.min(I,L,D,w),U=Math.max(I,L,D,w);x.dxPixels=S,x.dyPixels=R,x.width=k-S,x.height=U-R}}}}}}_addPlacedIcons(e,t,n,i,r,a){const o=Math.max(n-1,0),l=this._iconVertexBuffer,u=this._iconIndexBuffer,f=this._markerMap;for(const d of t){const h=r?0:Math.max(n+(0,A.k3)(d.minzoom),o),y=r?25:Math.min(n+(0,A.k3)(d.maxzoom),25);if(y<=h)continue;const g=d.tl,m=d.tr,T=d.bl,x=d.br,_=d.mosaicRect,p=d.labelAngle,M=d.minAngle,B=d.maxAngle,I=d.anchor,P=l.index,L=_.x,b=_.y,D=L+_.width,v=b+_.height,w=l.index;l.add(I.x,I.y,g.x,g.y,L,b,p,M,B,h,y,a),l.add(I.x,I.y,m.x,m.y,D,b,p,M,B,h,y,a),l.add(I.x,I.y,T.x,T.y,L,v,p,M,B,h,y,a),l.add(I.x,I.y,x.x,x.y,D,v,p,M,B,h,y,a),e.iconVertexRanges.length>0&&e.iconVertexRanges[0][0]+e.iconVertexRanges[0][1]===w?e.iconVertexRanges[0][1]+=4:e.iconVertexRanges.push([w,4]),u.add(P+0,P+1,P+2),u.add(P+1,P+2,P+3),f.has(i)?f.get(i)[1]+=6:f.set(i,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const e=this._textVertexBuffer,t=this._textIndexBuffer,n=this._glyphMap;for(const[i,r]of this._glyphBufferDataStorage)for(const a of r){const o=e.index,l=a.symbolInstance,u=a.ddAttributes,f=e.index;e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.tl[0],a.tl[1],a.xmin,a.ymin,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,u),e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.tr[0],a.tr[1],a.xmax,a.ymin,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,u),e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.bl[0],a.bl[1],a.xmin,a.ymax,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,u),e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.br[0],a.br[1],a.xmax,a.ymax,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,u),l.textVertexRanges.length>0&&l.textVertexRanges[0][0]+l.textVertexRanges[0][1]===f?l.textVertexRanges[0][1]+=4:l.textVertexRanges.push([f,4]),t.add(o+0,o+1,o+2),t.add(o+1,o+2,o+3),n.has(i)?n.get(i)[1]+=6:n.set(i,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(e,t,n,i,r){const a=Math.max(n-1,0),o=i===V.aF.VIEWPORT;let l,u,f,d,h,y,g,m,T,x,_;for(const p of t)l=o?0:Math.max(n+(0,A.k3)(p.minzoom),a),u=o?25:Math.min(n+(0,A.k3)(p.maxzoom),25),!(u<=l)&&(f=p.tl,d=p.tr,h=p.bl,y=p.br,g=p.labelAngle,m=p.minAngle,T=p.maxAngle,x=p.anchor,_=p.mosaicRect,this._glyphBufferDataStorage.has(p.page)||this._glyphBufferDataStorage.set(p.page,[]),this._glyphBufferDataStorage.get(p.page).push({glyphAnchor:[x.x,x.y],tl:[f.x,f.y],tr:[d.x,d.y],bl:[h.x,h.y],br:[y.x,y.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:g,minAngle:m,maxAngle:T,minLod:l,maxLod:u,placementLod:a,symbolInstance:e,ddAttributes:r}))}static _pushAnchors(e,t,n,i){n+=i;let r=0;const a=t.length-1;for(let h=0;h-o;){if(--u,u<0)return!1;a-=E.E.distance(e[u],l),l=e[u]}a+=E.E.distance(e[u],e[u+1]);const f=[];let d=0;const h=e.length;for(;ar;)d-=f.shift().deviation;if(Math.abs(d)>i)return!1;a+=E.E.distance(g,T),u=m}return!0}static _smoothVertices(e,t){if(t<=0)return e;let n=e.length;if(n<3)return e;const i=[];let r=0,a=0;i.push(0);for(let m=1;m0&&(r+=T,i.push(r),a++,a!==m&&(e[a]=e[m]))}if(n=a+1,n<3)return e;t=Math.min(t,.2*r);const o=e[0].x,l=e[0].y,u=e[n-1].x,f=e[n-1].y,d=E.E.sub(e[0],e[1]);d.normalize(),e[0].x+=t*d.x,e[0].y+=t*d.y,d.assignSub(e[n-1],e[n-2]),d.normalize(),e[n-1].x+=t*d.x,e[n-1].y+=t*d.y,i[0]-=t,i[n-1]+=t;const h=[];h.push(new E.E(o,l));const y=1e-6,g=.5*t;for(let m=1;m=0;p--){const M=g+i[p+1]-i[m];if(M<0)break;const B=i[p+1]-i[p],I=i[m]-i[p]4096&&(d=4096),d<0&&(d=0),h>4096&&(h=4096),h<0&&(h=0);for(let y=1;y4096&&(g=4096),g<0&&(g=0),m>4096&&(m=4096),m<0&&(m=0),T>4096&&(T=4096),T<0&&(T=0),x>4096&&(x=4096),x<0&&(x=0);const _=(g-d)*(x-h)-(T-d)*(m-h);l+=_*(d+g+T),u+=_*(h+m+x),f+=_}l/=3*f,u/=3*f,isNaN(l)||isNaN(u)||e.push(new he(l,u))}}G._bidiEngine=new at.Z;var J,ze=C(47018);!function(c){c[c.INITIALIZED=0]="INITIALIZED",c[c.NO_DATA=1]="NO_DATA",c[c.READY=2]="READY",c[c.MODIFIED=3]="MODIFIED",c[c.INVALID=4]="INVALID"}(J||(J={}));class ut{constructor(e,t,n,i,r){if(this._pbfTiles={},this._tileClippers={},this._client=n,this._tile=t,r){this._styleLayerUIDs=new Set;for(const f of r)this._styleLayerUIDs.add(f)}this._styleRepository=i,this._layers=this._styleRepository.layers;const[a,o,l]=t.tileKey.split("/").map(parseFloat);this._level=a;const u=8+Math.max(5*(this._level-14),0);for(const f of Object.keys(e)){const d=e[f];if(this._pbfTiles[f]=new Ye.Z(new Uint8Array(d.protobuff),new DataView(d.protobuff)),d.refKey){const[h]=d.refKey.split("/").map(parseFloat),y=a-h;if(y>0){const g=(1<{o.has(d)||(a.push({name:d,repeat:h}),o.add(d))},u={};for(const d of r)d.getResources(d.tileClipper,l,u);if(t._tile.status===J.INVALID)return[];const f=t._fetchResources(a,u,e);return Promise.all([...f,n]).then(()=>t._processFeatures(i.returnedBuckets))})()}_initialize(e){return{signal:e&&e.signal,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(e){const{sourceNameToTileData:t,layers:n,zoom:i,sourceNameToTileClipper:r,sourceNameToUniqueSourceLayerBuckets:a,sourceNameToUniqueSourceLayers:o,returnedBuckets:l,layerIdToBucket:u,referencerUIDToReferencedId:f}=e;for(let d=n.length-1;d>=0;d--){const h=n[d];if(!this._canParseStyleLayer(h.uid)||h.minzoom&&i=h.maxzoom||h.type===V.fR.BACKGROUND||!t[h.source]||!r[h.source])continue;const g=r[h.source],m=h.sourceLayer,T=t[h.source][m];if(T){let x=o[h.source];if(x||(x=o[h.source]=new Set),x.add(h.sourceLayer),h.refLayerId)f.set(h.uid,h.refLayerId);else{const _=this._createBucket(h);if(_){_.layerUIDs=[h.uid],_.layerExtent=T.extent,_.tileClipper=g;let p=a[h.source];p||(p=a[h.source]={});let M=p[m];M||(M=p[m]=[]),M.push(_),l.push(_),u[h.id]=_}}}}}_linkReferences(e){const{layerIdToBucket:t,referencerUIDToReferencedId:n}=e;n.forEach((i,r)=>{t[i]&&t[i].layerUIDs.push(r)})}_filterFeatures(e){const{signal:t,sourceNameToTileData:n,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:r}=e,a=10*this._level,o=10*(this._level+1),l=[],u=[];for(const f of Object.keys(r))r[f].forEach(d=>{l.push(d),u.push(f)});for(let f=0;f=o)continue;const M=_._maxzoom;if(M&&M<=a)continue}for(const p of g)p.pushFeature(x)}}}_fetchResources(e,t,n){const i=[],r=this._tile.getWorkerTileHandler();let a,o;e.length>0&&(a=r.fetchSprites(e,this._client,n),i.push(a));for(const l in t){const u=t[l];u.size>0&&(o=r.fetchGlyphs(this._tile.tileKey,l,u,this._client,n),i.push(o))}return i}_processFeatures(e){const t=e.filter(n=>n.hasFeatures()||this._canParseStyleLayer(n.layer.uid));for(const n of t)n.processFeatures(n.tileClipper);return t}_parseTileData(e){const t={};for(const n of Object.keys(e)){const i=e[n],r={};for(;i.next();)switch(i.tag()){case 3:{const a=i.getMessage(),o=new Ie(a);a.release(),r[o.name]=o;break}default:i.skip()}t[n]=r}return t}_createBucket(e){switch(e.type){case V.fR.BACKGROUND:return null;case V.fR.FILL:return this._createFillBucket(e);case V.fR.LINE:return this._createLineBucket(e);case V.fR.CIRCLE:return this._createCircleBucket(e);case V.fR.SYMBOL:return this._createSymbolBucket(e)}}_createFillBucket(e){return new Me(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new Qe(e.fillMaterial.getStride()),new ne,new $e(e.outlineMaterial.getStride()),new ne)}_createLineBucket(e){return new it(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new Xe(e.lineMaterial.getStride()),new ne)}_createCircleBucket(e){return new et(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new qe(e.circleMaterial.getStride()),new ne)}_createSymbolBucket(e){const t=this._tile;return new G(e,this._level,new Re(e.iconMaterial.getStride()),new ne,new Re(e.textMaterial.getStride()),new ne,t.placementEngine,t.getWorkerTileHandler())}}class ft{constructor(e,t,n,i){this.status=J.INITIALIZED,this.placementEngine=new je,this.tileKey=e,this.refKeys=t,this._workerTileHandler=n,this._styleRepository=i}release(){this.tileKey="",this.refKeys=null,this.status=J.INITIALIZED,this._workerTileHandler=null}parse(e,t){var n=this;return(0,le.Z)(function*(){const i=t&&t.signal;if((0,He.pC)(i)){const d=()=>{i.removeEventListener("abort",d),n.status=J.INVALID};i.addEventListener("abort",d)}let r;const a={bucketsWithData:[],emptyBuckets:null};try{r=yield n._parse(e,t)}catch(d){if((0,me.D_)(d))throw d;return{result:a,transferList:[]}}n.status=J.READY;const o=a.bucketsWithData,l=[];for(const d of r)if(d.hasFeatures()){const h=d.serialize();o.push(h)}else l.push(d.layer.uid);const u=[...o];let f=null;return l.length>0&&(f=Uint32Array.from(l),u.push(f.buffer)),a.emptyBuckets=f,{result:a,transferList:u}})()}setObsolete(){this.status=J.INVALID}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}_parse(e,t){var n=this;return(0,le.Z)(function*(){const i=e.sourceName2DataAndRefKey;return 0===Object.keys(i).length?[]:(n.status=J.MODIFIED,new ut(i,n,t.client,n._styleRepository,e.styleLayerUIDs).parse(t))})()}}var dt=C(78364);class yt{constructor(){this._spriteInfo={},this._glyphInfo={}}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers}createTileAndParse(e,t){var n=this;return(0,le.Z)(function*(){const{key:i}=e,r={};for(const o of Object.keys(e.sourceName2DataAndRefKey))r[o]=e.sourceName2DataAndRefKey[o].refKey;const a=new ft(i,r,n,n._styleRepository);try{return yield a.parse(e,t)}catch(o){if(a.setObsolete(),a.release(),!(0,me.D_)(o))throw o;return null}})()}updateStyle(e){if(!e||0===e.length||!this._styleRepository)return;const t=this._styleRepository;for(const n of e){const r=n.data;switch(n.type){case Y.Fr.PAINTER_CHANGED:t.setPaintProperties(r.layer,r.paint);break;case Y.Fr.LAYOUT_CHANGED:t.setLayoutProperties(r.layer,r.layout);break;case Y.Fr.LAYER_REMOVED:t.deleteStyleLayer(r.layer);break;case Y.Fr.LAYER_CHANGED:t.setStyleLayer(r.layer,r.index);break;case Y.Fr.SPRITES_CHANGED:this._spriteInfo={}}}}setStyle(e){this._styleRepository=new dt.Z(e),this._spriteInfo={},this._glyphInfo={}}fetchSprites(e,t,n){const i=[],r=this._spriteInfo;for(const a of e)void 0===r[a.name]&&i.push(a);return 0===i.length?Promise.resolve():t.invoke("getSprites",i,{signal:n&&n.signal}).then(a=>{for(const o in a)r[o]=a[o]})}getSpriteItems(){return this._spriteInfo}fetchGlyphs(e,t,n,i,r){const a=[];let o=this._glyphInfo[t];return o?n.forEach(l=>{o[l]||a.push(l)}):(o=this._glyphInfo[t]=[],n.forEach(l=>a.push(l))),0===a.length?Promise.resolve():i.invoke("getGlyphs",{tileID:e,font:t,codePoints:a},r).then(l=>{for(let u=0;u{r.r(M),r.d(M,{default:()=>Ne});var a=r(17626),L=(r(63290),r(90912)),T=(r(85931),r(26584)),J=r(8314),v=r(76898),R=r(69759),I=r(15861),Z=(r(20383),r(88159)),j=r(62208),w=r(10699),A=r(32917),$=r(16730),o=r(77712),D=r(2004),S=r(83137),oe=r(13812),ae=r(14772),H=r(59990),k=r(22264),le=r(84792),ue=r(93555),Q=r(2618),pe=r(95737),q=r(91179),ye=r(13410);const _=l=>l.spatialReference.wkid||JSON.stringify(l.spatialReference);function de(l,n){const{dpi:s,gdbVersion:t,geometry:e,geometryPrecision:u,height:h,layerOption:p,mapExtent:m,maxAllowableOffset:i,returnFieldName:d,returnGeometry:y,returnUnformattedValues:f,returnZ:P,spatialReference:c,timeExtent:E,tolerance:x,width:b}=l.toJSON(),{dynamicLayers:F,layerDefs:N,layerIds:G}=function he(l){const{mapExtent:n,floors:s,width:t,sublayers:e,layerIds:u,layerOption:h,gdbVersion:p}=l,m=e?.find(c=>null!=c.layer)?.layer?.serviceSublayers,i="popup"===h,d={},y=(0,S.yZ)({extent:n,width:t,spatialReference:n?.spatialReference}),f=[],P=c=>{if(c.visible&&(0===y||(0===c.minScale||y<=c.minScale)&&(0===c.maxScale||y>=c.maxScale)))if(c.sublayers)c.sublayers.forEach(P);else{if(!1===u?.includes(c.id)||i&&(!c.popupTemplate||!c.popupEnabled))return;f.unshift(c)}};if(e?.forEach(P),e&&!f.length)d.layerIds=[];else{const c=(0,ye.FN)(f,m,p),E=f.map(x=>{const b=(0,H.f)(s,x);return x.toExportImageJSON(b)});if(c)d.dynamicLayers=JSON.stringify(E);else{if(e){let b=f.map(({id:F})=>F);u&&(b=b.filter(F=>u.includes(F))),d.layerIds=b}else u?.length&&(d.layerIds=u);const x=function fe(l,n){const s=!!l?.length,t=n.filter(e=>null!=e.definitionExpression||s&&null!=e.floorInfo);return t.length?t.map(e=>{const u=(0,H.f)(l,e),h=(0,pe._)(u,e.definitionExpression);return{id:e.id,definitionExpression:h}}):null}(s,f);if((0,j.pC)(x)&&x.length){const b={};for(const F of x)F.definitionExpression&&(b[F.id]=F.definitionExpression);Object.keys(b).length&&(d.layerDefs=JSON.stringify(b))}}}return d}(l),ie=n&&(0,j.pC)(n.geometry)?n.geometry:null,C={geometryPrecision:u,maxAllowableOffset:i,returnFieldName:d,returnGeometry:y,returnUnformattedValues:f,returnZ:P,tolerance:x},U=ie&&ie.toJSON()||e;if(C.imageDisplay=`${b},${h},${s}`,t&&(C.gdbVersion=t),U&&(delete U.spatialReference,C.geometry=JSON.stringify(U),C.geometryType=(0,q.Ji)(U)),c?C.sr=c.wkid||JSON.stringify(c):U&&U.spatialReference?C.sr=_(U):m&&m.spatialReference&&(C.sr=_(m)),C.time=E?[E.start,E.end].join(","):null,m){const{xmin:Ue,ymin:Te,xmax:Ze,ymax:Ge}=m;C.mapExtent=`${Ue},${Te},${Ze},${Ge}`}return N&&(C.layerDefs=N),F&&!N&&(C.dynamicLayers=F),C.layers="popup"===p?"visible":p,G&&!F&&(C.layers+=`:${G.join(",")}`),C}var B,me=r(29132),ce=r(97478),ee=r(86810),ge=r(65234);let g=B=class extends ee.wq{constructor(l){super(l),this.dpi=96,this.floors=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=null,this.height=400,this.layerIds=null,this.layerOption="top",this.mapExtent=null,this.maxAllowableOffset=null,this.returnFieldName=!0,this.returnGeometry=!1,this.returnM=!1,this.returnUnformattedValues=!0,this.returnZ=!1,this.spatialReference=null,this.sublayers=null,this.timeExtent=null,this.tolerance=null,this.width=400}static from(l){return(0,L.TJ)(B,l)}};(0,a._)([(0,o.Cb)({type:Number,json:{write:!0}})],g.prototype,"dpi",void 0),(0,a._)([(0,o.Cb)()],g.prototype,"floors",void 0),(0,a._)([(0,o.Cb)({type:String,json:{write:!0}})],g.prototype,"gdbVersion",void 0),(0,a._)([(0,o.Cb)({types:me.qM,json:{read:q.im,write:!0}})],g.prototype,"geometry",void 0),(0,a._)([(0,o.Cb)({type:Number,json:{write:!0}})],g.prototype,"geometryPrecision",void 0),(0,a._)([(0,o.Cb)({type:Number,json:{write:!0}})],g.prototype,"height",void 0),(0,a._)([(0,o.Cb)({type:[Number],json:{write:!0}})],g.prototype,"layerIds",void 0),(0,a._)([(0,o.Cb)({type:["top","visible","all","popup"],json:{write:!0}})],g.prototype,"layerOption",void 0),(0,a._)([(0,o.Cb)({type:D.Z,json:{write:!0}})],g.prototype,"mapExtent",void 0),(0,a._)([(0,o.Cb)({type:Number,json:{write:!0}})],g.prototype,"maxAllowableOffset",void 0),(0,a._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"returnFieldName",void 0),(0,a._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"returnGeometry",void 0),(0,a._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"returnM",void 0),(0,a._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"returnUnformattedValues",void 0),(0,a._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"returnZ",void 0),(0,a._)([(0,o.Cb)({type:ge.Z,json:{write:!0}})],g.prototype,"spatialReference",void 0),(0,a._)([(0,o.Cb)()],g.prototype,"sublayers",void 0),(0,a._)([(0,o.Cb)({type:ce.Z,json:{write:!0}})],g.prototype,"timeExtent",void 0),(0,a._)([(0,o.Cb)({type:Number,json:{write:!0}})],g.prototype,"tolerance",void 0),(0,a._)([(0,o.Cb)({type:Number,json:{write:!0}})],g.prototype,"width",void 0),g=B=(0,a._)([(0,v.j)("esri.rest.support.IdentifyParameters")],g);const te=g;var re=r(88879),ve=r(68653),xe=r(99433),be=r(71774);let O=class extends ee.wq{constructor(l){super(l),this.displayFieldName=null,this.feature=null,this.layerId=null,this.layerName=null}readFeature(l,n){return re.Z.fromJSON({attributes:{...n.attributes},geometry:{...n.geometry}})}writeFeature(l,n){if(!l)return;const{attributes:s,geometry:t}=l;s&&(n.attributes={...s}),(0,j.pC)(t)&&(n.geometry=t.toJSON(),n.geometryType=be.P$.toJSON(t.type))}};(0,a._)([(0,o.Cb)({type:String,json:{write:!0}})],O.prototype,"displayFieldName",void 0),(0,a._)([(0,o.Cb)({type:re.Z})],O.prototype,"feature",void 0),(0,a._)([(0,ve.r)("feature",["attributes","geometry"])],O.prototype,"readFeature",null),(0,a._)([(0,xe.c)("feature")],O.prototype,"writeFeature",null),(0,a._)([(0,o.Cb)({type:Number,json:{write:!0}})],O.prototype,"layerId",void 0),(0,a._)([(0,o.Cb)({type:String,json:{write:!0}})],O.prototype,"layerName",void 0),O=(0,a._)([(0,v.j)("esri.rest.support.IdentifyResult")],O);const Ie=O;function z(){return(z=(0,I.Z)(function*(l,n,s){const t=(n=Ce(n)).geometry?[n.geometry]:[],e=(0,Q.en)(l);return e.path+="/identify",(0,ue.aX)(t).then(u=>{const h=de(n,{geometry:u&&u[0]}),p=(0,Q.cv)({...e.query,f:"json",...h}),m=(0,Q.lA)(p,s);return(0,le.default)(e.path,m).then(Ee).then(i=>Fe(i,n.sublayers))})})).apply(this,arguments)}function Ee(l){const n=l.data;return n.results=n.results||[],n.exceededTransferLimit=Boolean(n.exceededTransferLimit),n.results=n.results.map(s=>Ie.fromJSON(s)),n}function Ce(l){return te.from(l)}function Fe(l,n){if(!n?.length)return l;const s=new Map;n.forEach(function t(e){s.set(e.id,e),e.sublayers&&e.sublayers.forEach(t)});for(const e of l.results)e.feature.sourceLayer=s.get(e.layerId);return l}var je=r(46679),Oe=r(51815),se=r(10023),Re=r(57213);let W=null;const we=l=>{let n=class extends l{constructor(){var s;super(...arguments),s=this,this._featuresResolutions=new WeakMap,this.highlightGraphics=new Oe.J,this.updateHighlightedFeatures=(0,w.Ds)(function(){var t=(0,I.Z)(function*(e){s.destroyed||s.updatingHandles.addPromise(s._updateHighlightedFeaturesGeometries(e).catch(()=>{}))});return function(e){return t.apply(this,arguments)}}())}initialize(){this.exportImageParameters=new ae.R({layer:this.layer}),this.handles.add([(0,A.on)(()=>this.highlightGraphics,"change",s=>{this.updatingHandles.addPromise(this._updateHighlightedFeaturesSymbols(s.added).catch(()=>{})),this.updateHighlightedFeatures(this._highlightGeometriesResolution)})])}destroy(){this.exportImageParameters.destroy(),this.exportImageParameters=null}get exportImageVersion(){return this.exportImageParameters?.commitProperty("version"),this.commitProperty("timeExtent"),(this._get("exportImageVersion")||0)+1}fetchPopupFeatures(s,t){var e=this;return(0,I.Z)(function*(){const{layer:u}=e;if(!s)throw new T.Z("mapimagelayer:fetchPopupFeatures","Nothing to fetch without area",{layer:u});const h=e.layer.capabilities?.operations?.supportsQuery??!0;if(!((e.layer.capabilities?.operations?.supportsIdentify??1)&&e.layer.version>=10.5||h))throw new T.Z("mapimagelayer:fetchPopupFeatures-not-supported","query operation is disabled for this service",{layer:u});return h?e._fetchPopupFeaturesUsingQueries(s,t):e._fetchPopupFeaturesUsingIdentify(s,t)})()}canResume(){return!!super.canResume()&&!this.timeExtent?.isEmpty}_updateHighlightedFeaturesSymbols(s){var t=this;return(0,I.Z)(function*(){for(const e of s){const u="renderer"in e.sourceLayer&&e.sourceLayer.renderer;"geometryType"in e.sourceLayer&&"point"===e.sourceLayer.geometryType&&u&&"getSymbolAsync"in u&&u.getSymbolAsync(e).then(function(){var h=(0,I.Z)(function*(p){let m="width"in p&&"height"in p&&null!=p.width&&null!=p.height?Math.max(p.width,p.height):"size"in p?p.size:null;const i="visualVariables"in u&&u.visualVariables?.find(d=>"size"===d.type);i&&(W||(W=(yield Promise.resolve().then(r.bind(r,81808))).getSize),m=W(i,e,{view:t.view.type,scale:t.view.scale,shape:"simple-marker"===p.type?p.style:null})),t.highlightGraphics.includes(e)&&(e.symbol=new Re.Z({style:"square",size:m,xoffset:"xoffset"in p?p.xoffset:0,yoffset:"yoffset"in p?p.yoffset:0}),e.visible=!0,t.highlightGraphicUpdated(e,"symbol"))});return function(p){return h.apply(this,arguments)}}())}})()}_updateHighlightedFeaturesGeometries(s){var t=this;return(0,I.Z)(function*(){t._highlightGeometriesResolution=s;const e=t.highlightGraphics;if(!e.length||!t.layer.capabilities.operations.supportsQuery)return;const u=t._getTargetResolution(s),h=new Map;for(const i of e)(!t._featuresResolutions.has(i)||t._featuresResolutions.get(i)>u)&&(0,Z.s1)(h,i.sourceLayer,()=>new Map).set(i.getObjectId(),i);const p=Array.from(h,([i,d])=>{const y=i.createQuery();return y.objectIds=[...d.keys()],y.outFields=[i.objectIdField],y.returnGeometry=!0,y.maxAllowableOffset=u,y.outSpatialReference=t.view.spatialReference,i.queryFeatures(y)}),m=yield Promise.all(p);if(!t.destroyed)for(const{features:i}of m)for(const d of i){const f=h.get(d.sourceLayer).get(d.getObjectId());f&&t.highlightGraphics.includes(f)&&(f.geometry=d.geometry,t.highlightGraphicUpdated(f,"geometry"),t._featuresResolutions.set(f,u))}})()}_getTargetResolution(s){const t=s*(0,$.c9)(this.view.spatialReference),e=t/16;return e<=10?0:s/t*e}_fetchPopupFeaturesUsingIdentify(s,t){var e=this;return(0,I.Z)(function*(){const u=yield e._createIdentifyParameters(s,t);if((0,j.Wi)(u))return[];const{results:h}=yield function Pe(l,n,s){return z.apply(this,arguments)}(e.layer.parsedUrl,u);return h.map(p=>p.feature)})()}_createIdentifyParameters(s,t){var e=this;return(0,I.Z)(function*(){const{floors:u,spatialReference:h,scale:p}=e.view,m=(0,j.pC)(t)?t.event:null,i=yield e._collectPopupProviders(e.layer.sublayers,p,t);if(!i.length)return null;yield Promise.all(i.map(({sublayer:E})=>E.load().catch(()=>{})));const d=Math.min((0,J.Z)("mapimagelayer-popup-identify-max-tolerance"),e.layer.allSublayers.reduce((E,x)=>x.renderer?(0,k.k)({renderer:x.renderer,event:m}):E,2)),y=e.createFetchPopupFeaturesQueryGeometry(s,d),f=(0,S.dp)(p,h),P=Math.round(y.width/f),c=new D.Z({xmin:y.center.x-f*P,ymin:y.center.y-f*P,xmax:y.center.x+f*P,ymax:y.center.y+f*P,spatialReference:y.spatialReference});return new te({floors:u,gdbVersion:e.layer.gdbVersion,geometry:s,height:P,layerOption:"popup",mapExtent:c,returnGeometry:!0,spatialReference:h,sublayers:e.layer.sublayers,timeExtent:e.timeExtent,tolerance:d,width:P})})()}_fetchPopupFeaturesUsingQueries(s,t){var e=this;return(0,I.Z)(function*(){const u=yield e._collectPopupProviders(e.layer.sublayers,e.view.scale,t),h=(0,j.pC)(t)?t.event:null,p=u.map(function(){var m=(0,I.Z)(function*({sublayer:i,popupTemplate:d}){yield i.load().catch(()=>{});const y=i.createQuery(),f=(0,k.k)({renderer:i.renderer,event:h}),P=e.createFetchPopupFeaturesQueryGeometry(s,f);if(y.geometry=P,y.outFields=yield(0,se.e)(i,d),y.timeExtent=e.timeExtent,"floors"in e.view){const N=e.view?.floors?.clone(),G=(0,H.f)(N,i);(0,j.pC)(G)&&(y.where=y.where?`(${y.where}) AND (${G})`:G)}const c=e._getTargetResolution(P.width/f),E=yield e._loadArcadeModules(d),x="point"===i.geometryType||E&&E.arcadeUtils.hasGeometryOperations(d);x||(y.maxAllowableOffset=c);const{features:b}=yield i.queryFeatures(y),F=x?0:c;for(const N of b)e._featuresResolutions.set(N,F);return b});return function(i){return m.apply(this,arguments)}}());return(yield(0,w.as)(p)).reverse().reduce((m,i)=>i.value?[...m,...i.value]:m,[]).filter(m=>null!=m)})()}_collectPopupProviders(s,t,e){return(0,I.Z)(function*(){const u=[],h=function(){var m=(0,I.Z)(function*(i){if(i.visible&&(0===i.minScale||t<=i.minScale)&&(0===i.maxScale||t>=i.maxScale))if(i.sublayers)i.sublayers.forEach(h);else if(i.popupEnabled){const f=(0,se.V)(i,{...e,defaultPopupTemplateEnabled:!1});(0,j.pC)(f)&&u.unshift({sublayer:i,popupTemplate:f})}});return function(d){return m.apply(this,arguments)}}(),p=s.toArray().reverse().map(h);return yield Promise.all(p),u})()}_loadArcadeModules(s){if(s.expressionInfos?.length||Array.isArray(s.content)&&s.content.some(t=>"expression"===t.type))return(0,je.LC)()}};return(0,a._)([(0,o.Cb)()],n.prototype,"highlightGraphics",void 0),(0,a._)([(0,o.Cb)()],n.prototype,"exportImageParameters",void 0),(0,a._)([(0,o.Cb)({readOnly:!0})],n.prototype,"exportImageVersion",null),(0,a._)([(0,o.Cb)()],n.prototype,"layer",void 0),(0,a._)([(0,o.Cb)()],n.prototype,"suspended",void 0),(0,a._)([(0,o.Cb)(oe.qG)],n.prototype,"timeExtent",void 0),n=(0,a._)([(0,v.j)("esri.views.layers.MapImageLayerView")],n),n};var Se=r(94672);let K=class extends(we(R.Z)){constructor(){super(...arguments),this.type="map-image-3d"}initialize(){this.updatingHandles.add(()=>this.exportImageVersion,()=>this.updatingHandles.addPromise(this.refreshDebounced()))}createFetchPopupFeaturesQueryGeometry(l,n){return(0,Se.K)(l,n,this.view)}highlight(l){return{remove:()=>{}}}highlightGraphicUpdated(l,n){}getFetchOptions(){return{timeExtent:this.timeExtent}}};K=(0,a._)([(0,v.j)("esri.views.3d.layers.MapImageLayerView3D")],K);const Ne=K},10023:(ne,M,r)=>{r.d(M,{V:()=>J,e:()=>X});var a=r(15861),V=r(62208),L=r(36630);function X(v){return T.apply(this,arguments)}function T(){return(T=(0,a.Z)(function*(v,R=v.popupTemplate){if((0,V.Wi)(R))return[];const I=yield R.getRequiredFields(v.fieldsIndex),{lastEditInfoEnabled:Y}=R,{objectIdField:Z,typeIdField:j,globalIdField:w,relationships:A}=v;if(I.includes("*"))return["*"];const $=Y?yield(0,L.CH)(v):[],o=(0,L.Q0)(v.fieldsIndex,[...I,...$]);return j&&o.push(j),o&&Z&&v.fieldsIndex.has(Z)&&!o.includes(Z)&&o.push(Z),o&&w&&v.fieldsIndex.has(w)&&!o.includes(w)&&o.push(w),A&&A.forEach(D=>{const{keyField:S}=D;o&&S&&v.fieldsIndex.has(S)&&!o.includes(S)&&o.push(S)}),o})).apply(this,arguments)}function J(v,R){return v.popupTemplate?v.popupTemplate:(0,V.pC)(R)&&R.defaultPopupTemplateEnabled&&(0,V.pC)(v.defaultPopupTemplate)?v.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2045.ce6cddf1da72510c.js b/apps/n/porrtal-io-app/public/angular/2045.ce6cddf1da72510c.js deleted file mode 100644 index 473e01b2..00000000 --- a/apps/n/porrtal-io-app/public/angular/2045.ce6cddf1da72510c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2045],{72045:(Mn,C,U)=>{U.r(C),U.d(C,{l:()=>an});var g,T={exports:{}};g=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,typeof __filename<"u"&&(g=g||__filename),T.exports=function(e){var w,m;(e=void 0!==(e=e||{})?e:{}).ready=new Promise(function(n,t){w=n,m=t});var p,f,h,D,P,H,B=Object.assign({},e),z="object"==typeof window,b="function"==typeof importScripts,L="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,c="";L?(c=b?require("path").dirname(c)+"/":__dirname+"/",H=()=>{P||(D=require("fs"),P=require("path"))},p=function(n,t){return H(),n=P.normalize(n),D.readFileSync(n,t?void 0:"utf8")},h=n=>{var t=p(n,!0);return t.buffer||(t=new Uint8Array(t)),t},f=(n,t,r)=>{H(),n=P.normalize(n),D.readFile(n,function(o,s){o?r(o):t(s.buffer)})},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(n){if(!(n instanceof Hn))throw n}),process.on("unhandledRejection",function(n){throw n}),e.inspect=function(){return"[Emscripten Module object]"}):(z||b)&&(b?c=self.location.href:typeof document<"u"&&document.currentScript&&(c=document.currentScript.src),g&&(c=g),c=0!==c.indexOf("blob:")?c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1):"",p=n=>{var t=new XMLHttpRequest;return t.open("GET",n,!1),t.send(null),t.responseText},b&&(h=n=>{var t=new XMLHttpRequest;return t.open("GET",n,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),f=(n,t,r)=>{var o=new XMLHttpRequest;o.open("GET",n,!0),o.responseType="arraybuffer",o.onload=()=>{200==o.status||0==o.status&&o.response?t(o.response):r()},o.onerror=r,o.send(null)}),e.print||console.log.bind(console);var v,M,A=e.printErr||console.warn.bind(console);Object.assign(e,B),B=null,e.wasmBinary&&(v=e.wasmBinary),"object"!=typeof WebAssembly&&x("no native wasm support detected");var G,R,E,y,d,X,N=!1,Y=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function O(n,t){return n?function fn(n,t,r){for(var o=t+r,s=t;n[s]&&!(s>=o);)++s;if(s-t>16&&n.buffer&&Y)return Y.decode(n.subarray(t,s));for(var u="";t>10,56320|1023&un)}}else u+=String.fromCharCode((31&i)<<6|l)}else u+=String.fromCharCode(i)}return u}(E,n,t):""}function J(n){G=n,e.HEAP8=R=new Int8Array(n),e.HEAP16=new Int16Array(n),e.HEAP32=y=new Int32Array(n),e.HEAPU8=E=new Uint8Array(n),e.HEAPU16=new Uint16Array(n),e.HEAPU32=d=new Uint32Array(n),e.HEAPF32=new Float32Array(n),e.HEAPF64=new Float64Array(n)}var a,K=[],Q=[],V=[],_=0,S=null;function x(n){e.onAbort&&e.onAbort(n),A(n="Aborted("+n+")"),N=!0,n+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(n);throw m(t),t}function Z(n){return n.startsWith("data:application/octet-stream;base64,")}function $(n){return n.startsWith("file://")}function nn(n){try{if(n==a&&v)return new Uint8Array(v);if(h)return h(n);throw"both async and sync fetching of the wasm failed"}catch(t){x(t)}}function W(n){for(;n.length>0;){var t=n.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?en(r)():en(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(e)}}Z(a="lerc-wasm.wasm")||(a=function cn(n){return e.locateFile?e.locateFile(n,c):c+n}(a));var I=[];function en(n){var t=I[n];return t||(n>=I.length&&(I.length=n+1),I[n]=t=X.get(n)),t}function Sn(n){this.excPtr=n,this.ptr=n-24,this.set_type=function(t){d[this.ptr+4>>2]=t},this.get_type=function(){return d[this.ptr+4>>2]},this.set_destructor=function(t){d[this.ptr+8>>2]=t},this.get_destructor=function(){return d[this.ptr+8>>2]},this.set_refcount=function(t){y[this.ptr>>2]=t},this.set_caught=function(t){R[this.ptr+12>>0]=t=t?1:0},this.get_caught=function(){return 0!=R[this.ptr+12>>0]},this.set_rethrown=function(t){R[this.ptr+13>>0]=t=t?1:0},this.get_rethrown=function(){return 0!=R[this.ptr+13>>0]},this.init=function(t,r){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(r),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){y[this.ptr>>2]=y[this.ptr>>2]+1},this.release_ref=function(){var t=y[this.ptr>>2];return y[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){d[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return d[this.ptr+16>>2]},this.get_exception_ptr=function(){if(rn(this.get_type()))return d[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}function jn(n){try{return M.grow(n-G.byteLength+65535>>>16),J(M.buffer),1}catch{}}var Dn={a:function An(n,t,r,o){x("Assertion failed: "+O(n)+", at: "+[t?O(t):"unknown filename",r,o?O(o):"unknown function"])},c:function Rn(n){return tn(n+24)+24},b:function xn(n,t,r){throw new Sn(n).init(t,r),n},d:function Pn(){x("")},f:function En(n,t,r){E.copyWithin(n,t,t+r)},e:function Tn(n){var i,t=E.length,r=2147483648;if((n>>>=0)>r)return!1;for(var s=1;s<=4;s*=2){var u=t*(1+.2/s);if(u=Math.min(u,n+100663296),jn(Math.min(r,(i=Math.max(n,u))+(65536-i%65536)%65536)))return!0}return!1}};(function vn(){var n={a:Dn};function t(u,i){e.asm=u.exports,J((M=e.asm.g).buffer),X=e.asm.m,function mn(n){Q.unshift(n)}(e.asm.h),function gn(n){if(_--,e.monitorRunDependencies&&e.monitorRunDependencies(_),0==_&&S){var t=S;S=null,t()}}()}function r(u){t(u.instance)}function o(u){return function bn(){if(!v&&(z||b)){if("function"==typeof fetch&&!$(a))return fetch(a,{credentials:"same-origin"}).then(function(n){if(!n.ok)throw"failed to load wasm binary file at '"+a+"'";return n.arrayBuffer()}).catch(function(){return nn(a)});if(f)return new Promise(function(n,t){f(a,function(r){n(new Uint8Array(r))},t)})}return Promise.resolve().then(function(){return nn(a)})}().then(function(i){return WebAssembly.instantiate(i,n)}).then(function(i){return i}).then(u,function(i){A("failed to asynchronously prepare wasm: "+i),x(i)})}if(function yn(n){_++,e.monitorRunDependencies&&e.monitorRunDependencies(_)}(),e.instantiateWasm)try{return e.instantiateWasm(n,t)}catch(u){return A("Module.instantiateWasm callback failed with error: "+u),!1}(function s(){return v||"function"!=typeof WebAssembly.instantiateStreaming||Z(a)||$(a)||L||"function"!=typeof fetch?o(r):fetch(a,{credentials:"same-origin"}).then(function(u){return WebAssembly.instantiateStreaming(u,n).then(r,function(i){return A("wasm streaming compile failed: "+i),A("falling back to ArrayBuffer instantiation"),o(r)})})})().catch(m)})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.h).apply(null,arguments)},e._lerc_getBlobInfo=function(){return(e._lerc_getBlobInfo=e.asm.i).apply(null,arguments)},e._lerc_getDataRanges=function(){return(e._lerc_getDataRanges=e.asm.j).apply(null,arguments)},e._lerc_decode=function(){return(e._lerc_decode=e.asm.k).apply(null,arguments)},e._lerc_decode_4D=function(){return(e._lerc_decode_4D=e.asm.l).apply(null,arguments)};var tn=e._malloc=function(){return(tn=e._malloc=e.asm.n).apply(null,arguments)};e._free=function(){return(e._free=e.asm.o).apply(null,arguments)};var j,rn=e.___cxa_is_pointer_type=function(){return(rn=e.___cxa_is_pointer_type=e.asm.p).apply(null,arguments)};function Hn(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n}function k(n){function t(){j||(j=!0,e.calledRun=!0,N||(function ln(){W(Q)}(),w(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function hn(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)n=e.postRun.shift(),V.unshift(n);var n;W(V)}()))}_>0||(function pn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)n=e.preRun.shift(),K.unshift(n);var n;W(K)}(),_>0||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),t()},1)):t()))}if(S=function n(){j||k(),j||(S=n)},e.run=k,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return k(),e.ready};const an=function sn(e,w){for(var m=0;mp[f]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:T.exports},[T.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2125.7b2dd66bad836c2b.js b/apps/n/porrtal-io-app/public/angular/2125.7b2dd66bad836c2b.js deleted file mode 100644 index 850131ad..00000000 --- a/apps/n/porrtal-io-app/public/angular/2125.7b2dd66bad836c2b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2125],{42125:(y,d,n)=>{n.r(d),n.d(d,{d:()=>f});var u,h,a,i=n(1719),t={exports:{}};u=t,void 0!==(a=t.exports,Object.defineProperty(a,"__esModule",{value:!0}),h=void(a.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"e.Kr.",_era_bc:"f.Kr.",A:"a",P:"p",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"januar",February:"februar",March:"marts",April:"april",May:"maj",June:"juni",July:"juli",August:"august",September:"september",October:"oktober",November:"november",December:"december",Jan:"jan.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"maj",Jun:"jun.",Jul:"jul.",Aug:"aug.",Sep:"sep.",Oct:"okt.",Nov:"nov.",Dec:"dec.",Sunday:"s\xf8ndag",Monday:"mandag",Tuesday:"tirsdag",Wednesday:"onsdag",Thursday:"torsdag",Friday:"fredag",Saturday:"l\xf8rdag",Sun:"s\xf8n.",Mon:"man.",Tue:"tir.",Wed:"ons.",Thu:"tor.",Fri:"fre.",Sat:"l\xf8r.",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Zoom",Play:"Afspil",Stop:"Stop",Legend:"Signaturforklaring","Click, tap or press ENTER to toggle":"",Loading:"Indl\xe6ser",Home:"Hjem",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Udskriv",Image:"Billede",Data:"Data",Print:"Udskriv","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Fra %1 til %2","From %1":"Fra %1","To %1":"Til %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(_,a){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,i.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2144.4f19d420a964c7f9.js b/apps/n/porrtal-io-app/public/angular/2144.4f19d420a964c7f9.js deleted file mode 100644 index 83e1c6ce..00000000 --- a/apps/n/porrtal-io-app/public/angular/2144.4f19d420a964c7f9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2144,6446],{66607:(le,Z,l)=>{l.d(Z,{Z:()=>ut});var D=l(17626),E=l(14517),y=l(72392),b=l(8314),w=l(63290),a=l(62208),O=l(77029),W=l(60330),m=l(10699),R=l(32917),g=l(77712),Q=l(85931),re=(l(90912),l(76898)),q=l(55915),ne=l(65401),te=l(38114),ae=l(41291),he=l(59617),ue=l(87091);class ce{constructor(e){this.referenceCount=0,this.callbacks=[],this.runIndex=0,this.handle=e.registerTask(ue.T8.I3S_CONTROLLER,this)}destroy(){this.handle=(0,a.hw)(this.handle)}get running(){for(const e of this.callbacks)if(e.needsUpdate())return!0;return!1}runTask(e){this._sort();const t=this.callbacks,s={numIndexLoading:0,numNodesLoading:0};for(let r=0;r0;s--){const r=e[s-1];let n=s;for(;n{null!=t&&(t.remove(e),t.callbacks.length>0||(oe.delete(i),t.destroy()),t=null)}}}var L=l(84161),me=l(4794),u=l(52565),f=l(42964),V=l(93394);class c{constructor(e,t,s,r,n){this.childOffset=e,this.childCount=t,this.visibilityCache=s,this.ref=r,this.node=n,this.useAsHole=0,this.filterImpact=u.U_.NotChecked}}class h{constructor(e,t,s,r,n,d,o,p,M,j,v,I,$,x){this._streamDataController=s,this._viewportQueries=r,this._logger=n,this.holeFilling=d,this._isLoaded=o,this._isReloading=p,this._isSelected=M,this._enable=j,this._needsUpdate=v,this._canRequest=I,this._computeVisibilityObb=$,this._computeNodeFiltering=x,this._dirty=!0,this._nodePages=[],this._nodeCount=0,this._nodesPerPage=0,this._rootIndex=0,this._lodMetric=u.w5.None,this._lodConversion=z=>z,this._urlPrefix="",this._loading=new Set,this._failedNodes=new Set,this._failedPages=new Set,this._indexMissing=1,this._maxUnloadedPrio=Number.NEGATIVE_INFINITY,this._maxProcessingPrio=Number.POSITIVE_INFINITY,this._nodeTraversalState=new Map,this._version=F(0),this._visibilityCacheVersion=F(0),this._maxLevel=1,this._featureEstimate={estimate:0,leavesReached:!1},this._unloadedMemoryEstimate=0,this._missing=new O.Z({deallocator:null}),this._prefetch=new O.Z({deallocator:null}),this._updates=new N(this._missing),this._imModificationUncategorized=new O.Z({deallocator:null}),this.ignoreServiceObb=!1,this.progressiveLoadPenalty=0,this._pageQueue=[],this.needNodeElevationRange=!1,this.layerHasModifications=!1,this._layerHasFilter=!1,this._logLayer=e,e.serviceUpdateTimeStamp&&e.serviceUpdateTimeStamp.lastUpdate&&(this._lastUpdate=`${e.serviceUpdateTimeStamp.lastUpdate}`),this._maxLodLevel=this._viewportQueries?this._viewportQueries.maxLodLevel:1,this._init(t)}_init(e){if("page"===e.type){switch(this._urlPrefix=e.urlPrefix,this._nodesPerPage=e.pageSize,this._rootIndex=e.rootIndex,e.lodMetric){case"maxScreenThreshold":this._lodMetric=u.w5.MaxScreenThreshold;break;case"maxScreenThresholdSQ":this._lodMetric=u.w5.MaxScreenThreshold,this._lodConversion=ge}this._addPage(G(this._rootIndex,this._nodesPerPage),e.rootPage),this._updateParentsAndLevel()}else if("node"===e.type){this._urlPrefix=e.urlPrefix,this._nodePages.push({nodes:[],children:[],parents:[]}),this._makeRefNode(new u.$i(e.rootNode.id,null),-1);const t=this._validateNode(e.rootNode.id,e.rootNode);t&&this._addNode(t,0)}}_loadPage(e){this._loading.add(e),this._streamDataController.request(this._urlPrefix+e,"json").then(s=>{this._pageQueue.push({pageIndex:e,page:s})}).catch(s=>{this._loading.delete(e),(0,m.D_)(s)||(this._failedPages.add(e),this._logger.error("#loadPage()",this._logLayer,`Error when loading page ${e}`,s))})}_addQueuedPages(e){for(;this._pageQueue.length>0&&!e.done;){const{pageIndex:t,page:s}=this._pageQueue.shift();this._addPage(t,s),this._loading.delete(t),e.madeProgress()}this._updateParentsAndLevel()}_addPage(e,t){for(let d=this._nodePages.length;d{const p=s.length,M=d.children?d.children.length:0;r.push(-1);for(let H=0;H{const d=this._getPage(s);if((0,a.pC)(d)){const o=S(s,this._nodesPerPage);d.parents[o]=r;const p=d.nodes[o].node;(0,a.pC)(p)&&(p.level=n,e.push(s))}};for(t(this._rootIndex,-1,0);e.length;){const s=e.pop(),r=this.getNode(s);if((0,a.pC)(r))for(let n=0;n{((0,a.pC)(s.node)&&s.node.id===e||(0,a.pC)(s.ref)&&s.ref.id===e)&&(t=r)}),t}getNodeById(e){const t=this.getIndexById(e);return t>=0?this.getNode(t):null}getChildIndex(e,t){const s=this._getPage(e);if((0,a.Wi)(s))return-1;const r=s.nodes[S(e,this._nodesPerPage)];return s.children[r.childOffset+t]}getParentIndex(e){const t=this._getPage(e);return(0,a.pC)(t)?t.parents[S(e,this._nodesPerPage)]:-1}getParent(e){return(e=this.getParentIndex(e))>=0?this.getNode(e):null}isLeaf(e){const t=this._getNodeInternal(e);return(0,a.pC)(t)&&0===t.childCount}get rootNode(){return this.getNode(this._rootIndex)}get size(){return this._nodeCount}removeAllGeometryObbs(){this._forAllNodes(e=>{(0,a.pC)(e.node)&&(e.node.geometryObb=null)})}invalidateVisibilityCache(){this._visibilityCacheVersion=F(this._visibilityCacheVersion)}invalidateNodeVisibilityCache(e){const t=this._getNodeInternal(e);(0,a.pC)(t)&&this.invalidateNodeVisibilityCacheInternal(t)}invalidateNodeVisibilityCacheInternal(e){e.visibilityCache=P(this._visibilityCacheVersion)}invalidateBoundingVolumeCache(e){const t=this._getNodeInternal(e);(0,a.pC)(t)&&(C(t),this.invalidateNodeVisibilityCacheInternal(t))}updateElevationChanged(e){const t=this._getNodeInternal(e);if((0,a.Wi)(t))return;if(!this.needNodeElevationRange)return void this.invalidateBoundingVolumeCache(e);const s=(0,a.pC)(t.node)?t.node:t.ref;if((0,a.Wi)(s))return;const r=s.elevationRange;(0,a.Wi)(r)||(r.valid=!1)}invalidateGeometryVisibility(e){const t=this._getNodeInternal(e);(0,a.pC)(t)&&(0,a.pC)(t.node)&&(t.node.geometryObb=null,(0,f.WD)(t.node.renderMbs),(0,f.VL)(t.node.serviceObbInRenderSR))}invalidateVisibilityObbs(){(0,a.Wi)(this.rootNode)||this.traverse(this.rootNode,e=>(e.visibilityObb=this._computeVisibilityObb(e),e.geometryObb=null,!0))}_updateElevationRange(e){const t=this._getNodeInternal(e);if((0,a.Wi)(t))return null;const s=(0,a.pC)(t.node)?t.node:t.ref;if((0,a.Wi)(s))return null;const r=s.elevationRange;if((0,a.pC)(r)&&r.valid)return r;const n=new u.rw;let d=!1;for(let o=0;o{(0,a.pC)(t)&&(t.imModificationImpact=u.O4.NotChecked,t.visibilityObb=this._computeVisibilityObb(t),t.hasModifications&&this.invalidateGeometryVisibility(t.index))}),this.invalidateVisibilityCache()}layerFilterChanged(e){this._layerHasFilter=e,this._forAllNodes(t=>{if((0,a.pC)(t)){t.filterImpact=u.U_.NotChecked;const s=t.node;(0,a.pC)(s)&&this.invalidateNodeVisibilityCache(s.index)}}),this.invalidateVisibilityCache()}update(e,t,s){if(!this._dirty)return;this._pageQueue.length>0&&this._addQueuedPages(t),this._maxUnloadedPrio=Number.NEGATIVE_INFINITY,this._maxProcessingPrio=Number.NEGATIVE_INFINITY,this._missing.clear(),this._prefetch.clear(),this._updates.reset(e),_.clear();let r=!0;const n=new X,d=new X,o=this._imModificationUncategorized;o.clear();const p=new Set;this.traverseVisible((v,I,$)=>{if((0,a.Wi)(I)){let T=this._entryPriority(v);T===1/0&&(T=this._entryPriority($));const H=G(v,this._nodesPerPage);return _.set(H,Math.max(T,_.get(H)||0)),this._loading.has(H)||this._failedPages.has(H)||this._missing.push(H),void(this._maxProcessingPrio=Math.max(this._maxProcessingPrio,T))}const x=I.node;if(this._updateNodeFeatureEstimate(x,d),(0,a.Wi)(x)){const T=this._entryPriority(v);return this._loading.has(v)||this._failedNodes.has(v)||(this._missing.push(v),_.set(v,T)),void(this._maxProcessingPrio=Math.max(this._maxProcessingPrio,T))}const z=(0,a.Wg)(this._getPage(v));if(0===this._missing.length&&0===this._nodesPerPage)for(let T=0;T0&&this._isSelected(x)&&(r=!1));if(p.add(x.id),this._isLoaded(v)){if(n.known+=x.memory,++n.knownNodes,this._isSelected(x)?I.childCount>0&&(r=!1):(n.unremoved+=x.memory,r=!1),this._needsUpdate(x)){const T=this._entryPriority(v);_.set(v,T),this._maxProcessingPrio=Math.max(this._maxProcessingPrio,T),this._updates.update.push(v)}return}if(x.memory&&(n.known+=x.memory,++n.knownNodes),!this._isSelected(x))return void(this._isReloading(v)&&this._updates.remove.push(v));if(I.childCount>0&&(r=!1),x.memory?(n.missing+=x.memory,n.known+=x.memory,++n.knownNodes):++n.missingNodes,e.includes(x.index))return this._maxProcessingPrio=Math.max(this._maxProcessingPrio,this._entryPriority(v)),void(this._updates.cancel=this._updates.cancel.filter(T=>T!==x.index));if(!t.done&&this._enable(x))return void t.madeProgress();const J=this._entryPriority(v);_.set(v,J),this._maxProcessingPrio=Math.max(this._maxProcessingPrio,J),this._updates.add.push(v),this.layerHasModifications&&s&&(0,a.pC)(x)&&x.imModificationImpact===u.O4.NotChecked&&o.push(v)});const j=this._updates.add;j.length>0&&this.layerHasModifications&&(o.length>0&&s(o),j.filterInPlace(v=>{const I=this._getNodeInternal(v),$=(0,a.Wi)(I)||(0,a.Wi)(I.node)||I.node.imModificationImpact!==u.O4.Culled;return $||this.invalidateNodeVisibilityCache(v),$})),this._unloadedMemoryEstimate=n.missing-n.unremoved,n.knownNodes>3&&n.missingNodes>0&&(this._unloadedMemoryEstimate+=n.known/n.knownNodes*n.missingNodes),this._unloadedMemoryEstimate=.8*Math.max(0,this._unloadedMemoryEstimate),this._featureEstimate.estimate=this._computeFeatureEstimate(d),this._featureEstimate.leavesReached=r,this._missing.sort((v,I)=>v-I),this._missing.filterInPlace((v,I)=>I<1||this._missing.data[I-1]!==v),this._missing.sort((v,I)=>_.get(v)-_.get(I)),this._missing.length>0&&(this._maxUnloadedPrio=_.get(this._missing.back()),this._prefetch.clear()),this._updates.add.filterInPlace(v=>_.get(v)>=this._maxUnloadedPrio).sort((v,I)=>_.get(v)-_.get(I)),this._updates.update.sort((v,I)=>_.get(v)-_.get(I)),this._indexMissing=this._loading.size+this._missing.length,this._dirty=this._indexMissing>0,_.clear()}checkFeatureTarget(e,t){const s=this._viewportQueries.updateScreenSpaceErrorBias(t);let r=t,n=t,d=s,o=10;for(;o--;){const p=new X;if(this._updateFeatureEstimate(r,p),this._computeFeatureEstimate(p)<=e){if(r>=t||p.missingNodes>0||0===o)break;d=r,r=.5*(r+n)}else n=r,r=.5*(r+d)}return this._version=F(this._version),this._viewportQueries.updateScreenSpaceErrorBias(s),Math.min(t,r)}_updateFeatureEstimate(e,t){this._version=F(this._version),this._viewportQueries.updateScreenSpaceErrorBias(e),this.traverseVisible((s,r)=>this._updateNodeFeatureEstimate((0,a.pC)(r)&&r.node,t))}_updateNodeFeatureEstimate(e,t){if(!((0,a.Wi)(e)||e.failed||(0,a.Wi)(e.numFeatures)))return this._isLoaded(e.index)?(t.known+=e.numFeatures,++t.knownNodes,void(this._isSelected(e)||(t.unremoved+=e.numFeatures))):void(this._isSelected(e)&&((0,a.pC)(e.numFeatures)?(t.missing+=e.numFeatures,t.known+=e.numFeatures,++t.knownNodes):++t.missingNodes))}_computeFeatureEstimate(e){let t=e.known-e.unremoved;return e.knownNodes>3&&e.missingNodes>0&&(t+=e.known/e.knownNodes*e.missingNodes),Math.max(0,t)}load(){return this._load(this._missing)}prefetch(){return this._prefetch.sort((e,t)=>_.get(e)-_.get(t)),this._load(this._prefetch)}_load(e){if(0===e.length||!this._canRequest())return!1;for(;e.length>0&&this._canRequest();)0===this._nodesPerPage?this._loadNode(e.pop()):this._loadPage(e.pop());return!0}get isLoading(){return this._indexMissing>0}get isPrefetching(){return this._prefetch.length>0}get indexLoading(){return this._loading.size}get indexMissing(){return this._indexMissing}get unloadedMemoryEstimate(){return this._unloadedMemoryEstimate}get updates(){return this._updates}get featureEstimate(){return this._featureEstimate}get maxPriority(){return Math.max(this._maxProcessingPrio,this._maxUnloadedPrio)}nodeTraversalState(e){if((0,a.Wi)(e))return null;let t=this._nodeTraversalState.get(e.index);if(t&&U(t.version,this._version))return t;const s=this._viewportQueries.getLodLevel(e),r=this._viewportQueries.hasLOD(e);let n=!0;if(r){const d=this.getParentIndex(e.index);if(d>=0){const o=this._nodeTraversalState.get(d);n=o&&s>o.lodLevel}else n=s>0}else n=0===e.childCount;return t?(t.lodLevel=s,t.isChosen=n,t.version=A(!0,this._version),t):(t=new u.oQ(r,n,s,A(!0,this._version)),this._nodeTraversalState.set(e.index,t),t)}_loadNode(e){this._loading.add(e);const t=(0,a.Wg)(this._getNodeInternal(e)).ref;if((0,a.Wi)(t))return void this._failedNodes.add(e);const s=t.id,r=this._urlPrefix+s,n=()=>{this._loading.delete(e),0===this._missing.length&&0===this._loading.size&&this.requestUpdate()};this._streamDataController.request(r,"json").then(d=>{n();const o=this._validateNode(s,d);if(null==o)return;o.obb&&this.invalidateNodeVisibilityCache(e);const p=this._addNode(o,e);this.nodeTraversalState(p)},d=>{n(),(0,m.D_)(d)||(this._logger.error("#loadNode()",this._logLayer,"Error loading node: "+r),this._failedNodes.add(e))})}_validateNode(e,t){if(null==t||"object"!=typeof t||t.id!==e)return this._logger.error("#validateNode()",this._logLayer,`Invalid node. Wrong type or wrong id "${e}"`),null;if(!Array.isArray(t.mbs))return this._logger.error("#validateNode()",this._logLayer,`Invalid bounding volume on node ${e}.`),null;t.sharedResource&&"./shared"!==t.sharedResource.href&&"./shared/"!==t.sharedResource.href&&this._logger.warn("#validateNode()",this._logLayer,`Invalid shared resource href on node "${e}"`),null==t.geometryData||Array.isArray(t.geometryData)&&1===t.geometryData.length&&"./geometries/0"===t.geometryData[0].href||this._logger.warn("#validateNode()",this._logLayer,`Invalid geometry data on node "${e}"`),null==t.attributeData||Array.isArray(t.attributeData)&&!t.attributeData.some((o,p)=>o.href!==`./attributes/f_${p}/0`)||this._logger.warn("#validateNode()",this._logLayer,`Invalid attribute data on node "${e}"`),t.featureData&&t.featureData.length>1&&this._logger.warn("#validateNode()",this._logLayer,`Node ${e} has ${t.featureData.length} bundles. Only the first bundle will be loaded.`);const s=t.hasOwnProperty("obb")&&!this.ignoreServiceObb?t.obb:null,r=t.featureData&&1===t.featureData.length&&t.featureData[0].featureRange?t.featureData[0].featureRange[1]-t.featureData[0].featureRange[0]+1:null,d=Array.isArray(t.children)?t.children.map(o=>{if(null==o)return null;const p=v=>this._logger.error("#validateNode()",this._logLayer,`Invalid node reference on node ${e}: ${v}`);if("number"==typeof o.id)p(`id ${o.id} is a number instead of a string.`);else if("string"!=typeof o.id||!Array.isArray(o.mbs))return p("Missing or invalid id."),null;if(!Array.isArray(o.mbs))return p(`Invalid bounding volume on reference ${o.id}.`),null;o.href&&o.href!=="../"+o.id&&this._logger.error("#validateNode()",this._logLayer,`Invalid node href on node "${e}"`);const M=o.hasOwnProperty("obb")&&!this.ignoreServiceObb?o.obb:null,j=new u.$i(`${o.id}`,o.mbs);return j.serviceObb=M,j.visibilityObb=this._computeVisibilityObb(j),j}).filter(o=>null!=o):null;return{id:e,mbs:t.mbs,obb:s,children:d,resources:{hasFeatureData:t.featureData&&t.featureData.length>0,hasSharedResource:null!=t.sharedResource,attributes:t.attributeData?e:null,texture:t.textureData&&t.textureData.length>0?e:null,geometry:null!=t.geometryData?e:null},version:"string"==typeof t.version?t.version:null,lodSelection:Array.isArray(t.lodSelection)?t.lodSelection:null,numFeatures:r}}resetFailedNodes(){this._failedNodes.clear(),this._failedPages.clear(),this._forAllNodes(e=>{(0,a.pC)(e.node)&&(e.node.failed=!1)})}_entryPriority(e){const t=this._getNodeInternal(e),s=this.getParentIndex(e);if((0,a.Wi)(t)||s<0&&null==t.node)return s<0?1/0:this._entryPriority(s);let r=0;if(t.node&&s>=0){const o=this._nodeTraversalState.get(s);null!=o&&(r=o.lodLevel)}let n=this.progressiveLoadPenalty;for(let o=e;o>=0;o=this.getParentIndex(o))if(this._isLoaded(o)){n=0;break}const d=(0,a.pC)(t.ref)?this._viewportQueries.distToPOI(t.ref):(0,a.pC)(t.node)?this._viewportQueries.distToPOI(t.node):0;return-d-r*(d+this.progressiveLoadPenalty)+n}traverseVisible(e){const t=this._getNodeInternal(this._rootIndex);(0,a.Wi)(t)?e(this._rootIndex,null,null):this._traverseVisible(this._rootIndex,-1,t,e)}_traverseVisible(e,t,s,r){if(s.node&&0===s.childCount)return void(this.isGeometryVisible(e)&&r(e,s,t));if(!this.isNodeVisible(e)||(r(e,s,t),null==s.node))return;const n=this.nodeTraversalState(s.node);if(n.nodeHasLOD&&n.lodLevel===this._maxLodLevel)return;const d=(0,a.Wg)(this._getPage(e));for(let o=0;o{let r=this._isLoaded(s.index)||this._isReloading(s.index)?1:0;return this.traverseChildren(s,n=>(r+=t(n),!1)),s.childrenLoaded!==r&&e.push(s.index),r};return t(this.rootNode),e.length&&this._logger.error("childrenLoaded invariant broken at following nodes: "+e.join(",")),e.length>0}updateStats(e){if(this._updates.add.length>0&&(e.nodes+=" + "+this._updates.add.length),(this._indexMissing||this._prefetch.length>0)&&(e.index+=" + "+this._indexMissing||0),e.prio=this._maxProcessingPrio,this._featureEstimate.estimate){const t=this._featureEstimate.estimate-e.features;t>0?e.features+=" + "+t:t<0&&(e.features+=" - "+-t)}}updateElevationInfo(e,t){this.needNodeElevationRange=t&&e&&("relative-to-ground"===e.mode||"on-the-ground"===e.mode),this._viewportQueries.updateElevationInfo(e),this.invalidateAllElevationRanges()}invalidateAllElevationRanges(){this._forAllNodes(e=>{C(e),(0,a.pC)(e.node)&&(e.node.elevationRange=null),(0,a.pC)(e.ref)&&(e.ref.elevationRange=null)})}_forAllNodes(e){for(let t=0;tthis._addNode(e,t)}}}const _=new Map;class N{constructor(e){this.missing=e,this.update=new O.Z({deallocator:null}),this.add=new O.Z({deallocator:null}),this.remove=new O.Z({deallocator:null}),this.cancel=[]}reset(e){this.add.clear(),this.update.clear(),this.cancel=e}}function C(i){(0,a.pC)(i.node)&&((0,f.WD)(i.node.renderMbs),(0,f.VL)(i.node.serviceObbInRenderSR)),(0,a.pC)(i.ref)&&((0,f.WD)(i.ref.renderMbs),(0,f.VL)(i.ref.serviceObbInRenderSR))}function P(i){return(0,f.HV)(i,-2)}function F(i){return(0,f.HV)(i,2)}function A(i,e){return e+(i?1:0)}function U(i,e){return(-2&i)===e}function B(i){return 1==(1&i)}function G(i,e){return 0===e?0:i/e|0}function S(i,e){return 0===e?i:i%e}const k=[["maxScreenThreshold",u.w5.MaxScreenThreshold],["screenSpaceRelative",u.w5.ScreenSpaceRelative],["removedFeatureDiameter",u.w5.RemovedFeatureDiameter],["distanceRangeFromDefaultCamera",u.w5.DistanceRangeFromDefaultCamera]];class X{constructor(){this.known=0,this.knownNodes=0,this.missing=0,this.missingNodes=0,this.unremoved=0}}function ge(i){return Math.sqrt(i*(4/Math.PI))}var _e=l(73683);class ke{constructor(e){this._layerView=e,this._lodGlobalDirty=!1}startNodeLoading(e,t,s,r){this._maxLodLevel=r.maxLodLevel,this._index=s,this._isNodeInScaleBounds=e,this._removeNodes=t}shouldLoadNode(e){if((0,a.Wi)(e))return!1;const t=this._index.nodeTraversalState(e);return!!this._isChosenMaxLOD(t)||!!t.isChosen&&this._childrenRequireLoading(e)}setLodGlobalDirty(){this._lodGlobalDirty=!0}get requiresLODGlobalHandling(){return null!=this._index&&!0===this._lodGlobalDirty}lodGlobalHandling(e){if(!this.requiresLODGlobalHandling)return!1;this._lodGlobalDirty=!1;const s=Math.max(0,Math.floor(10*(this._layerView.view.resourceController.memoryController.usedMemory-1)));de.clear(),this._lodGlobalHandling(this._index.rootNode,s,!1,this._layerView.nodeCrossfadingEnabled);const r=de.length;this._removeNodes(de,e);const n=de.length0&&this._removeChildrenRecursive(e),!0;const v=o.isNodeLoaded(n);if(r&&v&&M){const T=!s&&this.hasNoVisibleChildren(e);o.fadeNode(n,_e.B.FadeIn,!T)}const I=v&&(!o.isNodeFullyFadedIn||o.isNodeFullyFadedIn(n));if(v&&(o.updateNodeState(n,M?u.FE.Leaf:u.FE.Hole),M))return I&&this._removeChildrenRecursive(e),I;const $=e.childCount>0;let x=$;if($)for(let T=0;T((this._layerView.isNodeLoaded(t.index)||this._layerView.isNodeReloading(t.index))&&de.push(t.index),t.childrenLoaded>0))}hasNoVisibleChildren(e){let t=!0;return this._index.traverseChildren(e,s=>!(!t||!this._index.isNodeVisible(s.index))&&(this._layerView.isNodeLoaded(s.index)?(t=!1,!1):s.childrenLoaded>0)),t}_childrenRequireLoading(e){let t=!1,s=!0;return this._index.traverseChildren(e,r=>{if(!s||!this._index.isNodeVisible(r.index))return!1;const n=this._index.nodeTraversalState(r);return this._isChosenMaxLOD(n)&&this._index.isGeometryVisible(r.index)&&(t=!0),this._layerView.isNodeLoaded(r.index)?(s=!1,!1):r.childrenLoaded>0}),s&&t}_isChosenMaxLOD(e){return e.isChosen&&(!e.nodeHasLOD||e.lodLevel===this._maxLodLevel)}}const de=new O.Z({deallocator:null});var ze=l(15861),pe=l(59213),Ze=l(58817),Ae=l(21726),De=l(81937),Fe=l(92852),Ne=l(42767);class Ce{constructor(e,t,s,r,n,d){if(this._streamDataController=t,this._logger=s,this._defaultGeometrySchema=r,this._requiredAttributes=n,this._options=d,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){const o=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(p=>(0,Ne.R0)(o,p))}}_load(e,t,s){return this._streamDataController.request(e,t,s)}_loadAttribute(e,t,s){return this._load(`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`,"binary",s).then(n=>(0,Fe.qM)(t,n))}loadAttributes(e,t,s){return(0,m.as)(t.map(r=>this._loadAttribute(e,r.attributeStorageInfo,s))).then(r=>{const n={};for(let d=0;d=0?i[e.resources.geometryDefinition].geometryBuffers:null;if(null==s)return t;for(let r=0;r=0?s._materialAndTextures[e.resources.materialDefinition]:null!=M?(0,Ne.Pg)(M):null,v=j&&j.material,I=j&&j.textures,$=`${e.id}`,x=!o&&s._options.loadFeatureData,z=x?yield s._loadFeatureData($,t):null,J=x?function Xe(i){for(const e of i.featureData){const t=e.geometries;if(null!=t)for(const s of t)return{featureIds:[e.id],featureDataPosition:e.position,geometries:[s]}}return null}(z):function Ye(i){return{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:i}}],featureDataPosition:[0,0,0]}}(v),T=(0,a.Wi)(J)&&function Je(i){const e=new Array;for(const t of i.featureData)null!=t.position&&e.push({featureIds:[t.id],featureDataPosition:t.position,geometries:null});return e}(z),H=null!=I&&I.length>0?(0,pe.q6)(s.loadTextures(e,I,t)):null;let se=null,we=null;if(p){se=(0,pe.w6)(yield p);const ct=function qe(i,e){if(!i||!e||!e.materialDefinitions)return i;const t=Object.keys(e.materialDefinitions)[0];return!e.materialDefinitions[t].params.vertexRegions&&i.vertexAttributes.region&&delete(i=(0,Ze.d9)(i)).vertexAttributes.region,i}(s._defaultGeometrySchema,M);we=(0,Fe.Es)(n,ct)}const Qe=H?(0,pe.w6)(yield H):null,$e=r?(0,pe.w6)(yield r):{},Ke=$e?{attributeData:$e,loadedAttributes:s._requiredAttributes}:null;if((0,a.pC)(J))return{geometryData:J,attributeDataInfo:Ke,geometryBuffer:se,geometryDescriptor:we,requiredTextures:I,textureData:Qe};if((0,a.pC)(T))return{pointData:T,attributeDataInfo:Ke,geometryBuffer:se,geometryDescriptor:we,requiredTextures:I,textureData:Qe};throw new Error})()}static _addAbsoluteHrefTexture(e,t){const s=e.textureDefinitions;if(null!=s)for(const r of Object.keys(s))for(const n of s[r].images)n.hrefConcat=Array.isArray(n.href)?n.href.map(d=>(0,Ae.hF)(d,t)):(0,Ae.hF)(n.href,t)}static _fixTextureEncodings(e){const t=e.textureDefinitions;if(null!=t)for(const s in t){const r=t[s];if(Array.isArray(r.encoding))for(let n=0;n(Ce._fixTextureEncodings(r),Ce._addAbsoluteHrefTexture(r,s),r))}_loadTexture(e,t,s,r,n,d){let o=!1;return n===De.j.DDS_S3TC||n===De.j.KTX2||n===De.j.Basis?this._load(e,"binary",d).then(p=>({id:t,usage:s,data:p,encoding:n,downsampled:o})):this._load(e,"image",d).then(p=>{let M=p;if(r&&p.width*p.height>=4096){const I=Math.ceil(p.width/2),$=Math.ceil(p.height/2),x=document.createElement("canvas");x.width=I,x.height=$,x.getContext("2d").drawImage(p,0,0,I,$),M=x,o=!0}return{id:t,usage:s,data:M,encoding:n,downsampled:o}})}loadTextures(e,t,s){const r=this._options.uncompressedTextureDownsamplingEnabled,n=this._options.textureUsageMask;return Promise.all(t.map(d=>{if(0==(d.usage&n))return null;const o=(0,Ne.nn)(d.encodings,this._options.textureEncodings);return null==o?(this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject()):this._loadTexture(`${this._layerUrl}/nodes/${e.resources.texture||e.id}/textures/${o.name}`,d.id,d.usage,r,o.encoding,s)}))}_loadFeatureData(e,t){return this._load(`${this._layerUrl}/nodes/${e}/features/0`,"json",t)}_loadGeometry(e,t,s){return this._load(`${this._layerUrl}/nodes/${e}/geometries/${t}`,"binary",s)}}class Te{constructor(e,t){this._requester=e,this._apiKey=t,this._activeRequests=new Set}get busy(){return this._requester.busy}request(e,t,s){const r=new AbortController,n=(0,m.$F)(s,()=>r.abort()),o=this._requester.request(e,t,{signal:r.signal,query:{token:this._apiKey}}),p={response:o,abortController:r,abortHandle:n};return this._activeRequests.add(p),(0,m.Bx)(o,()=>{p.abortController=null,p.abortHandle?.remove(),p.abortHandle=null,this._activeRequests.delete(p)}),o}cancelAll(){this._activeRequests.forEach(e=>{e.abortController?.abort(),e.abortController=null,e.abortHandle?.remove()}),this._activeRequests.clear()}}var be=l(28093),tt=l(993),Re=l(12080),Pe=l(8834),it=l(37053),st=l(97126),Ve=l(81468),rt=l(79112),Ue=l(74746);class nt{constructor(e,t,s,r,n,d,o,p,M={}){this._indexSR=e,this._renderCoordsHelper=t,this._clippingArea=n,this._elevationProvider=d,this._viewingMode=o,this._options=M,this._frustum=(0,Pe.Ue)(),this._useFrustumCulling=!1,this._poi=(0,be.c)(),this.minDistance=1/0,this.maxDistance=0,this.maxLodLevel=2,this._tmpObb=(0,V.Ue)(),this._tmp1=(0,be.c)(),this._tmp2=(0,be.c)(),this._tmp3=(0,be.c)(),this._tmp0=(0,be.c)(),this._screenspaceErrorBias=M.screenspaceErrorBias||1,this._progressiveLoadFactor=M.progressiveLoadFactor||1,this.updateCamera(s,r),this.engineSR=this._renderCoordsHelper.spatialReference,this.updateElevationInfo(p),this._tmpPoint=(0,te.Tx)(0,0,0,e),this._isECEFOBBInLocalMode=this._indexSR.isWGS84&&(this.engineSR.isWebMercator||(0,it.QM)(this.engineSR)),this._indexSREllipsoidRadius=(0,Re.Iu)(this._indexSR).radius}updateElevationInfo(e){null!=e?(this._elevationContext=rt.o.fromElevationInfo(e),this._elevationContext.updateFeatureExpressionInfoContext((0,Ue.bw)((0,Ue.WI)(e,!1)))):this._elevationContext=null}updateCamera(e,t){this._useFrustumCulling=t,t&&(0,Pe.q_)(e.viewMatrix,e.projectionMatrix,this._frustum),this._screenSizeFactor=1/(e.perScreenPixelRatio/2),this._camPos=e.eye,this.minDistance=1/0,this.maxDistance=0}setPointOfInterest(e){this._poi=e}updateScreenSpaceErrorBias(e){const t=this._screenspaceErrorBias;return this._screenspaceErrorBias=e,t}updateClippingArea(e){this._clippingArea=e}getElevationRange(e){if((0,a.Wi)(this._elevationContext))return null;const t=e.mbs[0],s=e.mbs[1],r=e.mbs[2],d="relative-to-scene"===this._elevationContext.mode?"scene":"ground";if(this._elevationProvider.getSphereElevationBounds)return this._elevationProvider.getSphereElevationBounds(t,s,r,e.mbs[3],this._indexSR,d);const o=this._elevationProvider.getElevation(t,s,r,this._indexSR,d);return(0,a.pC)(o)?{min:o,max:o}:null}getRenderMbs(e){const t=e.renderMbs;return(0,f.c$)(t)||((0,tt.c)(t,e.mbs),this._elevationContext&&t[3]<1e5&&(this._tmpPoint.x=t[0],this._tmpPoint.y=t[1],this._tmpPoint.z=t[2],t[2]=(0,Ve.w7)(this._tmpPoint,this._elevationProvider,this._elevationContext,this._renderCoordsHelper)),(0,q.st)(t,this._indexSR,t,this.engineSR)),t}getVisibilityObb(e){if((0,a.pC)(e.visibilityObb))return e.visibilityObb;const t=e.serviceObb,s=.01*this._indexSREllipsoidRadius;return(0,a.Wi)(t)||!(0,f.vH)(t)||this._isECEFOBBInLocalMode&&t.halfSize.some(r=>r>s)?null:(e.serviceObbInRenderSR=this._computeRenderObb(t,e.serviceObbInRenderSR,e.mbs[3],e.elevationRange),e.serviceObbInRenderSR)}_computeRenderObb(e,t,s,r){if((0,a.Wi)(t))t=(0,V.Ue)();else if((0,f.vH)(t))return t;let n=0,d=0;if(this._elevationContext&&(0,a.pC)(r)&&Number.isFinite(r.min))switch(this._elevationContext.mode){case"relative-to-ground":n=this._elevationContext.geometryZWithOffset(e.center[2],this._renderCoordsHelper)+r.min-e.center[2],d=r.max-r.min;break;case"on-the-ground":n=r.min-e.center[2],d=r.max-r.min}else this._elevationContext&&s<1e5&&(this._tmpPoint.x=e.center[0],this._tmpPoint.y=e.center[1],this._tmpPoint.z=e.center[2],n=(0,Ve.w7)(this._tmpPoint,this._elevationProvider,this._elevationContext,this._renderCoordsHelper)-e.center[2]);return d>0?((0,f.jv)(e,this._indexSR,this._tmpObb,this.engineSR,n),(0,f.gI)(this._tmpObb,0,d,this._viewingMode,t)):(0,f.jv)(e,this._indexSR,t,this.engineSR,n),t}isNodeVisible(e){const t=this.getRenderMbs(e);if(!this._isMBSinClippingArea(t))return!1;if(!this._useFrustumCulling)return!0;const s=this.getVisibilityObb(e);return(0,a.pC)(s)?(0,V.pn)(s,this._frustum):(0,Pe.hr)(this._frustum,(0,st.w)(t))}isGeometryVisible(e){if(!this._useFrustumCulling)return!0;const t=e.geometryObb;return(0,a.pC)(t)?(0,V.pn)(t,this._frustum):this.isNodeVisible(e)}_isMBSinClippingArea(e){return!!(0,a.Wi)(this._clippingArea)||(0,f.cr)(this._clippingArea,e)!==f.pD.OUTSIDE}_screenSpaceDiameterMbs(e,t){const s=this.getRenderMbs(e),r=Math.sqrt((0,L.d)(s,this._camPos)),n=r-s[3];return this._updateMinMaxDistance(r),n<0?.5*Number.MAX_VALUE:t/n*this._screenSizeFactor}calcCameraDistance(e){return this.calcCameraDistanceToCenter(e)-this.getRenderMbs(e)[3]}calcCameraDistanceToCenter(e){const t=this.getRenderMbs(e),s=(0,L.i)(t,this._camPos);return this._updateMinMaxDistance(s),s}calcAngleDependentLoD(e){const t=this.getRenderMbs(e),s=t[3],r=(Math.abs(t[0]*(t[0]-this._camPos[0])+t[1]*(t[1]-this._camPos[1])+t[2]*(t[2]-this._camPos[2]))/(0,L.l)(t)+s)/(0,L.i)(t,this._camPos);return Math.min(1,r)}hasLOD(e){return e.lodMetric!==u.w5.None}_getDistancePlanarMode(e,t){const s=e[0]-t[0],r=e[1]-t[1],n=e[2]-t[2],d=s*s+r*r,o=t[3];if(d<=o*o)return Math.abs(n);const p=Math.sqrt(d)-o;return Math.sqrt(n*n+p*p)}_getDistanceGlobeMode(e,t){const s=(0,L.l)(t),r=(0,L.l)(e)-s;(0,L.g)(this._tmp0,e,(0,L.e)(e,t)/(0,L.p)(e));const n=(0,L.d)(t,this._tmp0),d=t[3];if(n<=d*d)return Math.abs(r);{const o=(0,L.g)(this._tmp0,t,1/s),j=(0,L.g)(this._tmp1,o,s-d*d/2/s),v=e,I=(0,L.b)(this._tmp2,v,j),$=(0,L.b)(this._tmp2,I,(0,L.g)(this._tmp3,o,(0,L.e)(o,I))),x=(0,L.a)(this._tmp2,j,(0,L.g)(this._tmp2,$,d/(0,L.l)($)));let z=(0,L.i)(v,x);if(r>=2e5){const J=(0,L.b)(this._tmp1,v,x);let T=(0,L.e)(J,o)/(0,L.l)(J);T<.08&&(T=1e-4),z/=T}return z}}_getDistance(e,t){return this.engineSR===(0,Re.rS)(this.engineSR)?this._getDistanceGlobeMode(e,t):this._getDistancePlanarMode(e,t)}_updateMinMaxDistance(e){e>0?(this.minDistance=Math.min(this.minDistance,e),this.maxDistance=Math.max(this.maxDistance,e)):(this.minDistance=0,this.maxDistance=Math.max(this.maxDistance,-e))}getLodLevel(e){if(e.lodMetric===u.w5.None)return 0;if(0===e.childCount)return this.maxLodLevel;if(this._useFrustumCulling&&this._progressiveLoadFactor<1){const s=this._screenspaceErrorBias;return this.evaluateLODmetric(e,this._progressiveLoadFactor*this._screenspaceErrorBias)?this.evaluateLODmetric(e,s)?2:1:0}return this.evaluateLODmetric(e,this._screenspaceErrorBias)?this.maxLodLevel:0}evaluateLODmetric(e,t){switch(e.lodMetric){case u.w5.ScreenSpaceRelative:{const s=this.getRenderMbs(e),r=this._getDistance(this._camPos,s),n=2*r/this._screenSizeFactor;return this._updateMinMaxDistance(r+s[3]),e.maxError*t<=n}case u.w5.MaxScreenThreshold:{let s=this._screenSpaceDiameterMbs(e,e.mbs[3]*t);return this._options.angleDependentLoD&&(s*=this.calcAngleDependentLoD(e)),se.maxError*t}return!1}distToPOI(e){const t=this.getRenderMbs(e);return(0,L.i)(t,this._poi)-t[3]}distCameraToPOI(){return(0,L.i)(this._camPos,this._poi)}}var at=l(55745),Ie=l(39135),Le=l(93579);const Be="esri.layers.graphics.controllers.I3SOnDemandController",fe=w.Z.getLogger(Be),Oe=1e-4;let K=class extends((0,W.v)(E.Z)){constructor(i){super(i),this.screenSizeFactor=0,this.featureTarget=5e4,this.fixedFeatureTarget=!1,this.updating=!0,this.updatingProgress=1,this.leavesReached=!1,this.scaleVisibilityEnabled=!0,this._featureLOD=1,this._stableFeatureLOD=!1,this._isIdle=!1,this._cameraDirty=!0,this._invisibleDirty=!1,this._newLoadingNodes=new O.Z({deallocator:null}),this._loadedNodeScales=new Map,this._modificationsNodeFilteringArray=new O.Z,this._downloadingCount=0,this._loadingNodes=new Map,this._updatingNodes=new Map,this._progressMaxNumNodes=1,this._requiredAttributes=new Array,this._requiredAttributesDirty=!0,this._updatesDisabled=!1,this.disableIDBCache=!1,this._disableMemCache=!1,this._restartNodeLoading=!1,this._fields=null,this._attributeStorageInfo=null,this._handles=new y.Z,this._idleQueue=new ae.b,this._elevationUpdateNodes=new O.Z({deallocator:null}),this._errorCount=0}get isMeshPyramid(){return"mesh-pyramids"===this.layer.profile||"MeshPyramid"===this.layer.store.lodType}get isGraphics3D(){return"points"===this.layer.profile}get useMaximumNumberOfFeatures(){return!this.isMeshPyramid&&((0,a.Wi)(this.layer.priority)||"High"===this.layer.priority)}get indexStreamController(){const i=this.layerView.view.resourceController.createStreamDataRequester(Ie.Bh.I3S_INDEX);return new Te(i,this.layer.apiKey)}get dataStreamController(){const i=this.layerView.view.resourceController.createStreamDataRequester(Ie.Bh.I3S_DATA);return new Te(i,this.layer.apiKey)}get crsVertex(){return(0,f.T2)(this.layer)}get crsIndex(){return(0,f.tp)(this.layer)}get layer(){return this.layerView.i3slayer}get rootNodeVisible(){if((0,a.pC)(this._index)){const i=this._index.rootNode;if((0,a.pC)(i))return this._updateViewData(),this._index.isNodeVisible(i.index)}return!0}get index(){return this._index}initialize(){const{layerView:i,layer:e}=this;this._disableMemCache=!i.loadCachedGPUData||!i.addCachedGPUData,this._lodHandling=new ke(i),this._defaultGeometrySchema=e.store.defaultGeometrySchema,this.disableIDBCache=(0,b.Z)("disable-feature:idb-cache"),"fields"in e&&(this._fields=e.fields,this._attributeStorageInfo=e.attributeStorageInfo),this.addResolvingPromise(Promise.all([e.indexInfo,e.when(),i.when()]).then(([t])=>{if(this.destroyed||!i||i.destroyed)return;const{view:s}=i,{resourceController:r}=s;this._setClippingArea(s.clippingArea),this.addHandles([(0,R.YP)(()=>s?.pointsOfInterest?.focus?.renderLocation,n=>this._pointOfInterestChanged(n),R.nn),(0,R.YP)(()=>r.memoryController.memoryFactor,()=>this._setCameraDirty(),R.Z_),(0,R.YP)(()=>i.suspended,n=>{const d=n?()=>this._updateViewData():()=>this._updateIdleState(!0),o=n?()=>{}:()=>this._updateIdleState(!1);!n&&(0,a.pC)(this._index)&&this._index.invalidateAllElevationRanges(),this._idleStateCallbacks?(n&&this.cancelNodeLoading(),this.restartNodeLoading(),this._idleStateCallbacks.idleBegin=d,this._idleStateCallbacks.idleEnd=o):this._idleStateCallbacks=r.scheduler.registerIdleStateCallbacks(d,o)},R.nn),ye(i.view.resourceController.scheduler,{update:(n,d)=>this._frame(n,d),needsUpdate:()=>this.updating}),(0,R.YP)(()=>i.uncompressedTextureDownsamplingEnabled,()=>this.restartNodeLoading()),(0,R.YP)(()=>[this.featureTarget,this.fixedFeatureTarget],()=>{this._setCameraDirty(),this._stableFeatureLOD=!1}),(0,R.YP)(()=>s.state?.contentCamera,()=>this._setCameraDirty()),(0,R.YP)(()=>e.elevationInfo,n=>this._elevationInfoChanged(n)),(0,R.YP)(()=>e.effectiveScaleRange,()=>this._scaleBoundsChanged()),(0,R.YP)(()=>i.lodFactor,()=>this._setCameraDirty()),(0,R.YP)(()=>i.availableFields,()=>this._requiredFieldsChange()),(0,R.YP)(()=>i.holeFilling,n=>(0,a.pC)(this._index)&&(this._index.holeFilling=n))]),this._updateScaleHandles(),this._viewportQueries=new nt(this.crsIndex,s.renderCoordsHelper,s.state.contentCamera,!s.state.fixedContentCamera||this.isGraphics3D,this._clippingArea,this.isMeshPyramid?s.basemapTerrain:s.elevationProvider,(0,he.wg)(s.viewingMode),this.layer.elevationInfo,{progressiveLoadFactor:this._getProgressiveLoadFactor(),screenspaceErrorBias:this._lod,angleDependentLoD:this._lod<.5}),this._index=new h(e,t,this.indexStreamController,this._viewportQueries,fe,i.holeFilling,n=>i.isNodeLoaded(n),n=>i.isNodeReloading(n),n=>this._shouldLoadNode(n),n=>this._enableFromGPUCache(n,u.FE.Leaf),n=>this._needsUpdate(n),()=>!this.indexStreamController.busy,n=>i.computeVisibilityObb?i.computeVisibilityObb(n):null,i?.computeNodeFiltering?n=>i.computeNodeFiltering(n):void 0),this._index.updateElevationInfo(this.layer.elevationInfo,this.isMeshPyramid),this._index.imModificationsChanged(!!i.hasModifications),this._startNodeLoading()})),this._tmpPoint=(0,te.Tx)(0,0,0,this.crsIndex)}updateNodeModificationStatus(i){const e=this._index,t=this.layerView;(0,a.pC)(e)&&t?.updateNodeModificationStatus&&(this._modificationsNodeFilteringArray.clear(),i.forAll(s=>{const r=e.getNode(s);(0,a.pC)(r)&&this._modificationsNodeFilteringArray.push(r)}),t.updateNodeModificationStatus(this._modificationsNodeFilteringArray),this._invisibleDirty=!0)}destroy(){this.cancelNodeLoading(),this._idleStateCallbacks&&(this._isIdle=!1,this._idleStateCallbacks.remove(),this._idleStateCallbacks=null),this._handles.destroy(),this._nodeLoader=null,ie.prune(),(0,a.pC)(Me)&&(Me.hide(),Me=null)}_getRequiredAttributes(){if(null==this._attributeStorageInfo||!this._fields||!this.layerView.availableFields)return[];const i=this._attributeStorageInfo,e=this._fields,t=this.layer.objectIdField;return this.layerView.availableFields.map(s=>{const r=Ee(i,s),n=Ee(e,s);return r>=0&&n>=0?{index:r,name:e[n].name,field:e[n],attributeStorageInfo:i[r]}:null}).filter(s=>null!=s&&s.name!==t)}_requiredFieldsChange(){const i=this._getRequiredAttributes();Se(this._requiredAttributes,i)||(this._requiredAttributes=i,this._requiredAttributesDirty=!1,this.restartNodeLoading())}requestUpdate(){this._requiredAttributesDirty=!0,this.restartNodeLoading()}_setClippingArea(i){const e=(0,ne.Ue)();this._clippingArea=(0,at.G)(i,e,this.layerView.view.renderSpatialReference)?e:null}_pointOfInterestChanged(i){(0,a.pC)(this._viewportQueries)&&(this._viewportQueries.setPointOfInterest(i),(0,a.pC)(this._index)&&(this._index.progressiveLoadPenalty=He.distancePenalty*this._viewportQueries.distCameraToPOI(),this._index.requestUpdate()))}updateClippingArea(i){this._setClippingArea(i),(0,a.pC)(this._viewportQueries)&&(0,a.pC)(this._index)&&(this._viewportQueries.updateClippingArea(this._clippingArea),this._index.invalidateVisibilityCache()),this._setCameraDirty()}_setCameraDirty(){this._cameraDirty=!0,this._lodHandling.setLodGlobalDirty(),this._evaluateUpdating()}updateElevationChanged(i,e){const t=this._index;if((0,a.Wi)(t)||(0,a.Wi)(t.rootNode)||(0,a.Wi)(e))return null;this.crsIndex.equals(e)||((0,q.dH)(i,e,xe,this.crsIndex),i=xe);const s=this._elevationUpdateNodes;return s.clear(),(0,f.tS)(i,t.rootNode,t,r=>s.push(r.index)),s.length&&(s.forAll(r=>t.updateElevationChanged(r)),this._setCameraDirty()),s}getParentIndex(i){return(0,a.pC)(this._index)&&this._index.getParentIndex(i)}removeAllGeometryObbs(){(0,a.pC)(this._index)&&this._index.removeAllGeometryObbs()}getRenderMbs(i){return(0,a.pC)(this._viewportQueries)?this._viewportQueries.getRenderMbs(i):null}_elevationInfoChanged(i){(0,a.Wi)(this._index)||(this._index.updateElevationInfo(i,this.isMeshPyramid),this._setCameraDirty())}_updateScaleHandles(){const i="scale-bounds";this._handles.remove(i),this._areScaleBoundsActive&&this._handles.add(this.layerView.view.basemapTerrain.on("scale-change",e=>this._scaleUpdateHandler(e)),i)}_scaleBoundsChanged(){this._areScaleBoundsActive||this._loadedNodeScales.clear(),this._updateScaleHandles(),this._setCameraDirty()}_scaleUpdateHandler(i){this._updateScaleInBoundingRect(i.extent,i.spatialReference),this._setCameraDirty()}_updateScaleInBoundingRect(i,e){const t=this._index;(0,a.Wi)(t)||!(0,a.Wi)(t.rootNode)&&(0,q.dH)(i,e,xe,this.crsIndex)&&this._loadedNodeScales.forEach((r,n)=>{const d=t.getNode(n);(0,a.pC)(d)&&(0,ne.hr)(xe,d.mbs)&&this._loadedNodeScales.set(n,this._computeScale(d))})}restartNodeLoading(){this._restartNodeLoading=!0,this.cancelNodeLoading(),this._evaluateUpdating()}schedule(i,e){return this._idleQueue.push(i,e)}reschedule(i,e){return this._idleQueue.unshift(i,e)}get _isIntegratedMesh(){return"integrated-mesh"===this.layer.type}get _areScaleBoundsActive(){const{minScale:i,maxScale:e}=(0,Le.lu)(this.layer);return this.scaleVisibilityEnabled&&(i>0||e>0)}get unloadedMemoryEstimate(){return(0,a.Wi)(this._index)||this.layerView.suspended?0:this._index.unloadedMemoryEstimate*this._lodDropFactor}get indexDepth(){return(0,a.pC)(this._index)?this._index.maxLevel:0}set disableMemCache(i){this.layerView.loadCachedGPUData&&this.layerView.addCachedGPUData||(this._disableMemCache=!0),this._disableMemCache=i}_frame(i,e){return this.layerView.suspended?(this._updateViewData(),this._evaluateUpdating(),-1/0):!this.layerView.visible||(0,a.Wi)(this._index)?-1/0:(this._processWithErrorLogging(i,e),this._index.maxPriority)}_processWithErrorLogging(i,e){try{this._process(i,e)}catch(t){this._errorCount<50?fe.error("Error during processing: "+t):50===this._errorCount&&fe.error("Too many errors for this layer. Further errors will not be displayed."),this._errorCount++}}_process(i,e){this._restartNodeLoading&&this._startNodeLoading(),null==this._nodeLoader||(0,a.Wi)(this._index)||(this._updateViewData(),this._invisibleDirty&&this._removeInvisibleNodes(i)&&(this._invisibleDirty=!1),this._isIntegratedMesh&&(i.enabled=!1),i.run(()=>this._processIndex(i)),this._updateFeatureLOD(),i.run(()=>this._processCache(i)),this._isIntegratedMesh&&(i.enabled=!0),i.run(()=>this._processNodes(i,e)),this._idleQueue.runTask(i),i.run(()=>this._prefetchIndex()),e.numIndexLoading+=this._index.indexLoading,e.numNodesLoading+=this._downloadingCount,i.run(()=>this._lodHandling.lodGlobalHandling(i)),this._evaluateUpdating())}_processIndex(i){if((0,a.Wi)(this._index))return!1;if(this._index.dirty){this._newLoadingNodes.clear(),this._index.update(Array.from(this._loadingNodes.keys()),i,t=>this.updateNodeModificationStatus(t)),this._disableMemCache||(this._newLoadingNodes.pushArray(this._index.updates.add.data,this._index.updates.add.length),this._newLoadingNodes.pushArray(this._index.updates.missing.data,this._index.updates.missing.length));const e=this._index.featureEstimate.leavesReached;this._index.isLoading||e===this._get("leavesReached")||this._set("leavesReached",e)}return this._index.load()}_prefetchIndex(){return!((0,a.Wi)(this._index)||this._loadingNodes.size>0||this._index.updates.add.length>0)&&this._index.prefetch()}_updateFeatureLOD(){if(!this.useMaximumNumberOfFeatures||(0,a.Wi)(this._index)||(0,a.Wi)(this._viewportQueries))return;const i=!this._index.isLoading,e=this.featureTarget*this._baseLOD,t=this._index.featureEstimate;if(t.estimate=t.estimate||e/2,this._index.indexMissing>500){if(this._featureLOD<=Oe)return;this._featureLOD/=1.5,this._stableFeatureLOD=!1}else if(i&&t.estimate=1e4||this._stableFeatureLOD)return;const s=Math.min(10,Math.max(e/t.estimate,1.001));this._featureLOD*=s;const r=this._lod,n=this._index.checkFeatureTarget(e,r);n!==r&&(this._featureLOD=n/this._baseLOD,this._stableFeatureLOD=!0)}else{if(!(t.estimate>1.2*e||i&&t.estimate>e)||this._featureLOD<=Oe)return;this._featureLOD/=1+.25*(t.estimate/e-1),this._stableFeatureLOD=!1}this._featureLOD=Math.min(1e4,Math.max(Oe,this._featureLOD)),this._viewportQueries.updateScreenSpaceErrorBias(this._lod),this._index.requestUpdate()}_processCache(i){const e=this._index;if((0,a.Wi)(e))return!1;for(;this._newLoadingNodes.length>0&&!i.done;){const t=this._newLoadingNodes.pop();for(let s=e.getParent(t);(0,a.pC)(s)&&!this.layerView.isNodeLoaded(s.index)&&this._isNodeInScaleBounds(s);s=e.getParent(s.index))if(this._enableFromGPUCache(s,u.FE.Hole)){i.madeProgress();break}}return i.hasProgressed}_processNodes(i,e){if((0,a.Wi)(this._index))return!1;let t=(this._isIdle?100:2)-this._loadingNodes.size;const s=this._index.updates;for(s.cancel.forEach(this._cancelNode,this),s.cancel=[];s.remove.length>0&&!i.done;)this.layerView.removeNode(s.remove.pop()),i.madeProgress();for(;s.update.length>0&&!i.done;){const r=this._index.getNode(s.update.pop());(0,a.pC)(r)&&(this._updateLoadedNode(r),i.madeProgress())}for(;s.add.length>0&&!i.done&&t>0;){--t;const r=this._index.getNode(s.add.back());if((0,a.Wi)(r)||r.cacheState!==u.Hw.Cached&&!this._hasNodeLoadToken(e))break;s.add.pop(),this._loadNode(r),i.madeProgress()}return i.hasProgressed}_cancelAllNodes(){this._loadingNodes.forEach(i=>i.abort()),this._loadingNodes.clear(),this._updatingNodes.forEach(i=>i.abort()),this._updatingNodes.clear()}_cancelNode(i){const e=this._loadingNodes.get(i);e&&(e.abort(),this._loadingNodes.delete(i))}_hasNodeLoadToken(i){return!(!this._isIdle&&i.numNodesLoading+this._loadingNodes.size>=2)&&this._downloadingCount0||this._updatingNodes.size>0||this._restartNodeLoading||this._cameraDirty||this._idleQueue.running||this._lodHandling&&this._lodHandling.requiresLODGlobalHandling||(0,a.pC)(this._index)&&this._index.isPrefetching),0===t&&(this._progressMaxNumNodes=1),this._progressMaxNumNodes=Math.max(t,this._progressMaxNumNodes),e=1-t/this._progressMaxNumNodes}this.updating=i,this.updatingProgress=e}_updateViewData(){if(!this._cameraDirty||(0,a.Wi)(this._index)||(0,a.Wi)(this._viewportQueries))return;const i=this.layerView.view,{contentCamera:e,fixedContentCamera:t}=i.state;this.screenSizeFactor=1/(e.perScreenPixelRatio/2),this._viewportQueries.updateCamera(e,!t||this.isGraphics3D),this._viewportQueries.setPointOfInterest(i.pointsOfInterest.focus.renderLocation),this._viewportQueries.updateScreenSpaceErrorBias(this._lod),this._index.invalidateVisibilityCache(),this._index.progressiveLoadPenalty=He.distancePenalty*this._viewportQueries.distCameraToPOI(),this._index.requestUpdate(),this._stableFeatureLOD=!1,this._invisibleDirty=!0,this._cameraDirty=!1,this.notifyChange("rootNodeVisible")}_getProgressiveLoadFactor(){return this.layerView.view.resourceController.memoryController.memoryFactor<1?1:this.layerView.progressiveLoadFactor}get _lod(){return this._featureLOD*this._baseLOD}get _baseLOD(){const i=this.layerView.lodFactor;return this.fixedFeatureTarget?1:(i>0?i:1)*this.layerView.view.resourceController.memoryController.memoryFactor}get _lodDropFactor(){if(this.fixedFeatureTarget)return 1;const i=this.layerView.view.resourceController.memoryController;return(Math.min(i.memoryFactor,.5)-i.minQuality)/(.5-i.minQuality)}isGeometryVisible(i){return(0,a.pC)(this._index)&&this._index.isGeometryVisible(i.index)}updateVisibility(i){(0,a.pC)(this._index)&&this._index.invalidateNodeVisibilityCache(i)}invalidateGeometryVisibility(i){(0,a.pC)(this._index)&&this._index.invalidateGeometryVisibility(i)}invalidateVisibilityObbs(){(0,a.pC)(this._index)&&this._index.invalidateVisibilityObbs()}modificationsChanged(){(0,a.pC)(this._index)&&this._index.imModificationsChanged(!!this.layerView.hasModifications),this._invisibleDirty=!0}_shouldLoadNode(i){return!(!this._lodHandling.shouldLoadNode(i)||this._shouldDropNode(i))&&!((0,a.Wi)(this._index)||!this._index.isGeometryVisible(i.index))&&this._isNodeInScaleBounds(i)}_shouldDropNode(i){if((0,a.Wi)(this._viewportQueries))return!1;const e=this._lodDropFactor;return!(e>=1||!this._lodHandling.hasNoVisibleChildren(i))&&Math.abs(this._viewportQueries.calcCameraDistanceToCenter(i))-this._viewportQueries.minDistance>(this._viewportQueries.maxDistance-this._viewportQueries.minDistance)*e}_startNodeLoading(){this._restartNodeLoading=!1;const i=this._index;this._updatesDisabled||(0,a.Wi)(i)||(0,a.Wi)(this._viewportQueries)||(this._updateViewData(),this._requiredAttributesDirty&&(this._requiredAttributes=this._getRequiredAttributes(),this._requiredAttributesDirty=!1),this._nodeLoader=new Ce(this.layer,this.dataStreamController,fe,this._defaultGeometrySchema,this._requiredAttributes,{textureEncodings:this.layerView.supportedTextureEncodings,uncompressedTextureDownsamplingEnabled:this.layerView.uncompressedTextureDownsamplingEnabled,textureUsageMask:this.layerView.rendererTextureUsage,loadFeatureData:this.useMaximumNumberOfFeatures}),i.requestUpdate(),this._lodHandling.startNodeLoading(t=>this._isNodeInScaleBounds(t),(t,s)=>this._removeNodes(t,s,ve.fadeout),i,{maxLodLevel:this._viewportQueries.maxLodLevel}),this._evaluateUpdating())}isNodeLoading(){return null!=this._nodeLoader&&null!=this._index}cancelNodeLoading(){this.isNodeLoading()&&(this.indexStreamController.cancelAll(),this.dataStreamController.cancelAll(),this._idleQueue.cancelAll(),this._cancelAllNodes(),this._nodeLoader=null,this._evaluateUpdating())}_removeInvisibleNodes(i){const e=this._index;if((0,a.Wi)(e)||(0,a.Wi)(this._viewportQueries))return!1;ie.clear(),this.layerView.getLoadedNodeIndices(ie);const t=0===this._viewportQueries.maxDistance,s=t?()=>!1:r=>this._shouldDropNode(r);return ie.filterInPlace(r=>{const n=e.getNode(r);return(0,a.Wi)(n)||!e.isGeometryVisible(r)||s(n)||!this._isNodeInScaleBounds(n)}),ie.length>0&&this._lodHandling.setLodGlobalDirty(),this._removeNodes(ie,i,ve.pop),!(t&&this._lodDropFactor<1||0!==ie.length&&(ie.clear(),1))}markNodeToRemove(i){ie.push(i)}removeMarkedNodes(){this._removeNodes(ie,ue.G5,ve.pop)}_removeNodes(i,e,t){const s=i.length;if(0!==s&&!e.done){for((0,a.pC)(this._index)&&this._index.requestUpdate();i.length>0&&!e.done;){const r=i.pop(),n=this._index;t===ve.fadeout&&this.layerView.nodeFadeoutEnabled&&(0,a.pC)(n)&&n.isGeometryVisible(r)?this.layerView.fadeNode(r,_e.B.FadeOut,!0):this.layerView.removeNode(r),e.madeProgress()}if(this._loadedNodeScales.size>0)for(let r=i.length;rthis.schedule(()=>this.layerView.updateAttributes(i.index,{loadedAttributes:this._requiredAttributes,attributeData:t},e.signal),e.signal)).catch(t=>{if(!(0,m.D_)(t))return this.layerView.updateAttributes(i.index,{loadedAttributes:this._requiredAttributes,attributeData:{}},e.signal)}).catch(()=>{}).then(()=>{this._updatingNodes.delete(i.index),this._evaluateUpdating()}),this._evaluateUpdating()}_loadNode(i){if(this._loadingNodes.has(i.index))return void fe.error("already loading node "+i.index);const e=new AbortController;this._loadingNodes.set(i.index,e),this._evaluateUpdating(),this._loadAndAddNode(i,e.signal).then(t=>{t&&(0,a.pC)(this._index)&&this._loadingNodes.get(i.index)===e&&(this._loadingNodes.delete(i.index),this._index.requestUpdate())}).catch(t=>{if(!(0,m.D_)(t))throw t}).finally(()=>{this._loadingNodes.get(i.index)===e&&this._loadingNodes.delete(i.index),this._evaluateUpdating()})}_loadAndAddNode(i,e){return i.cacheState===u.Hw.Uncached?this._loadUncached(i,e).then(()=>!1):this._loadCached(i,e).then(t=>!t&&(i.cacheState=u.Hw.Uncached,!0)).catch(t=>!(0,m.D_)(t)&&(i.cacheState=u.Hw.Uncached,!0))}_enableFromGPUCache(i,e){if(this._disableMemCache||(0,a.Wi)(this._index))return!1;if(e===u.FE.Hole&&!this._index.useNodeAsHole(i.index))return!0;const t=this._loadCachedGPUData(i);return!!t&&(this.layerView.addCachedGPUData(i,t,e),this._nodeAdded(),!0)}_loadCachedGPUData(i){const e=this.layerView.loadCachedGPUData(i);return(0,a.pC)(e)&&(0,a.pC)(e.attributeInfo)&&Se(e.attributeInfo.loadedAttributes,this._requiredAttributes)?e:(this.layerView.deleteCachedGPUData(e),null)}_nodeAdded(){(0,a.pC)(this._index)&&this._index.requestUpdate(),this._lodHandling.setLodGlobalDirty(),this._evaluateUpdating()}updateLoadStatus(i,e){const t=this._index;(0,a.pC)(t)&&t.updateChildrenLoaded(i,e?1:-1)}_loadCached(i,e){if(this._enableFromGPUCache(i,u.FE.Leaf))return Promise.resolve(!0);const t=this.layerView;return!this.disableIDBCache&&t.loadCachedNodeData&&t.addCachedNodeData?this.schedule(()=>t.loadCachedNodeData(i,e,(s,r)=>this._nodeLoader.loadTextures(i,s,r)),e).then(s=>{if((0,a.Wi)(s))return!1;const r=this._requiredAttributes;return this.reschedule(()=>this._nodeLoader.loadAttributes(i,r,e),e).then(n=>this.reschedule(()=>t.addCachedNodeData(i,s,{loadedAttributes:r,attributeData:n},e),e)).then(()=>(this._nodeAdded(),!0))}):Promise.resolve(!1)}_loadUncached(i,e){return this._downloadingCount++,this._nodeLoader.loadNodeData(i,e).catch(t=>{throw this._downloadingCount--,t}).then(t=>(this._downloadingCount--,this.schedule(()=>this.layerView.addNode(i,t,e),e))).then(()=>{this._nodeAdded(),i.cacheState=u.Hw.Cached}).catch(t=>{if(!(0,m.D_)(t))throw fe.error("#loadNodeData()",this.layer,`Failed to load node '${i.id}'`,t),i.failed=!0,(0,a.pC)(this._index)&&this._index.requestUpdate(),t})}_updateIdleState(i){i!==this._isIdle&&(this._isIdle=i,this._evaluateUpdating(),i&&this._index&&(0,a.pC)(this._index)&&this._index.resetFailedNodes())}_getScale(i){if(this._loadedNodeScales.has(i.index))return this._loadedNodeScales.get(i.index);const e=this._computeScale(i);return this.layerView.isNodeLoaded(i.index)&&this._loadedNodeScales.set(i.index,e),e}_computeScale(i){return this._tmpPoint.x=i.mbs[0],this._tmpPoint.y=i.mbs[1],this._tmpPoint.z=i.mbs[2],this.layerView.view.basemapTerrain.getSphereScale(this._tmpPoint,i.mbs[3])}_isNodeInScaleBounds(i){if(!this._areScaleBoundsActive)return!0;const e=this._getScale(i),{minScale:t,maxScale:s}=(0,Le.lu)(this.layer);return(0,Le.rs)(e,t,s)}updateStats(i){i.index=(0,a.pC)(this._index)?this._index.size:0,this.isGraphics3D&&(i.detail=this._featureLOD,i.target=this.featureTarget*this._baseLOD),(0,a.pC)(this._index)&&this._index.updateStats(i)}get test(){const i=this;return{index:this._index,set disableUpdates(e){i._updatesDisabled=e,e?i.cancelNodeLoading():i.requestUpdate()},set disableIDBCache(e){i.disableIDBCache=e},set ignoreServiceObb(e){(0,a.pC)(i._index)&&(i._index.ignoreServiceObb=e)},shouldLoadNode:e=>i._shouldLoadNode(e)}}notifyLODUpdate(){this._lodHandling.setLodGlobalDirty(),this._evaluateUpdating(),(0,a.pC)(this._index)&&this._index.requestUpdate()}geometryFilterChanged(i){const e=this._index;(0,a.pC)(e)&&e.layerFilterChanged(i),this._setCameraDirty()}};(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"isMeshPyramid",null),(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"isGraphics3D",null),(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"useMaximumNumberOfFeatures",null),(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"indexStreamController",null),(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"dataStreamController",null),(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"crsVertex",null),(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"crsIndex",null),(0,D._)([(0,g.Cb)()],K.prototype,"screenSizeFactor",void 0),(0,D._)([(0,g.Cb)()],K.prototype,"featureTarget",void 0),(0,D._)([(0,g.Cb)()],K.prototype,"fixedFeatureTarget",void 0),(0,D._)([(0,g.Cb)()],K.prototype,"layerView",void 0),(0,D._)([(0,g.Cb)()],K.prototype,"layer",null),(0,D._)([(0,g.Cb)({})],K.prototype,"updating",void 0),(0,D._)([(0,g.Cb)({})],K.prototype,"updatingProgress",void 0),(0,D._)([(0,g.Cb)({readOnly:!0})],K.prototype,"leavesReached",void 0),(0,D._)([(0,g.Cb)({constructOnly:!0})],K.prototype,"scaleVisibilityEnabled",void 0),(0,D._)([(0,g.Cb)({readOnly:!0,dependsOn:[]})],K.prototype,"rootNodeVisible",null),K=(0,D._)([(0,re.j)(Be)],K);const ie=new O.Z({deallocator:null});let Me;function Se(i,e){return(0,a.pC)(i)&&i.length===e.length&&i.every(t=>Ee(e,t.name)>=0)}function Ee(i,e){const t=e.toLowerCase();for(let s=0;s{l.r(Z),l.d(Z,{default:()=>Q});var D=l(17626),E=l(26584),y=l(62208),b=l(77712),O=(l(85931),l(90912),l(76898)),W=l(55915),m=l(35560),R=l(50126);let g=class extends R.Z{constructor(){super(...arguments),this.type="feature-3d",this.direct3DObjectFeatureLayerDisplayEnabled=(0,m.hq)()}initialize(){"capabilities"in this.layer&&this.layer.capabilities.operations.supportsQuery||this.addResolvingPromise(Promise.reject(new E.Z("featurelayerview:query-not-supported","layer view requires a layer with query capability",{layer:this.layer}))),(0,y.pC)(this.layer.infoFor3D)&&(this.direct3DObjectFeatureLayerDisplayEnabled?this._set("suspendResumeExtentMode","computed"):this.addResolvingPromise(Promise.reject(new E.Z("featurelayerview3d:unsupported-geometry-type",`Unsupported geometry type ${this.layer.geometryType}`)))),"mesh"!==this.layer.geometryType||(0,W.Up)(this.layer.spatialReference,this.view.spatialReference)||this.addResolvingPromise(Promise.reject(new E.Z("layerview:spatial-reference-incompatible","The spatial references of the feature layer is incompatible with the spatial reference of the view")))}get featureSpatialReference(){return this.view.featureTiles?.tilingScheme?.spatialReference}};(0,D._)([(0,b.Cb)({constructOnly:!0})],g.prototype,"direct3DObjectFeatureLayerDisplayEnabled",void 0),(0,D._)([(0,b.Cb)()],g.prototype,"layer",void 0),g=(0,D._)([(0,O.j)("esri.views.3d.layers.FeatureLayerView3D")],g);const Q=g},42767:(le,Z,l)=>{l.d(Z,{K0:()=>oe,Pg:()=>ne,R0:()=>Q,RE:()=>ce,cU:()=>ae,dY:()=>te,nn:()=>ye});var D=l(8314),E=l(21286),y=l(62208),b=l(81937),w=l(52051),a=l(92724),O=l(67022),W=l(22799),m=l(42743),R=l(81695),g=l(67969);function Q(u,f){const V=new Map,c=(S,k)=>{if((0,y.Wi)(S))return-1;if(V.has(S.id)){const X=V.get(S.id);return X.usage|=k,X.id}const Y=V.size;return V.set(S.id,{id:Y,usage:k}),Y},h=f.pbrMetallicRoughness,_=h&&h.baseColorFactor,N=f.emissiveFactor,C=null==f.normalTexture&&null==f.emissiveTexture&&null==f.occlusionTexture&&(!h||null==h.metallicRoughnessTexture&&1===h.roughnessFactor&&(1===h.metallicFactor||0===h.metallicFactor)),P=C?a.Fw[0]:h?h.metallicFactor:1,F=C?a.Fw[1]:h?h.roughnessFactor:1,U={baseColorFactor:_?[_[0],_[1],_[2],_[3]]:[1,1,1,1],baseColorTextureId:c(h&&h.baseColorTexture,"mask"===f.alphaMode?b.v.Color|b.v.AlphaMask:b.v.Color),metallicRoughnessTextureId:c(h&&h.metallicRoughnessTexture,b.v.MetallicRoughness),metallicFactor:P,roughnessFactor:F},B={alphaMode:f.alphaMode,alphaCutoff:f.alphaCutoff,doubleSided:f.doubleSided,cullFace:"none"===f.cullFace?m.Vr.None:"back"===f.cullFace?m.Vr.Back:"front"===f.cullFace?m.Vr.Front:void 0,normalTextureId:c(f.normalTexture,b.v.Normal),emissiveTextureId:c(f.emissiveTexture,b.v.Emissive),occlusionTextureId:c(f.occlusionTexture,b.v.Occlusion),emissiveFactor:N?[N[0],N[1],N[2]]:[0,0,0],metallicRoughness:U,wrapTextures:!1,hasParametersFromSource:C},G=[];return V.forEach(({usage:S},k)=>{const Y=(0,y.pC)(u)&&u[k]&&u[k].formats,X=Y?ee(Y.map(({name:ge,format:_e})=>({name:ge,encoding:re[_e]}))):[];G.push({id:k,usage:S,encodings:X})}),{material:B,textures:G}}function ee(u){return u.sort((f,V)=>f.encoding-V.encoding)}const re={ktx2:b.j.KTX2,basis:b.j.Basis,dds:b.j.DDS_S3TC,png:b.j.PNG,jpg:b.j.JPG,"ktx-etc2":b.j.KTX_ETC2},q={[R.x.KTX2_ENCODING]:b.j.Basis,[R.x.BASIS_ENCODING]:b.j.Basis,[R.x.DDS_ENCODING]:b.j.DDS_S3TC,"image/png":b.j.PNG,"image/jpg":b.j.JPG,"image/jpeg":b.j.JPG,"image/ktx":b.j.KTX_ETC2};function ne(u){const f=u&&u.materialDefinitions?Object.keys(u.materialDefinitions)[0]:null,V=u&&u.textureDefinitions?Object.keys(u.textureDefinitions)[0]:null,c=f&&u.materialDefinitions[f],h=V&&u.textureDefinitions[V],_=te();if(null!=c){const C=c.params;C.diffuse&&(_.metallicRoughness.baseColorFactor=[C.diffuse[0],C.diffuse[1],C.diffuse[2],1]),null!=C.doubleSided&&(_.doubleSided=C.doubleSided,_.cullFace=C.doubleSided?m.Vr.None:m.Vr.Back),"none"!==C.cullFace&&"front"!==C.cullFace&&"back"!==C.cullFace||(_.cullFace="none"===C.cullFace?m.Vr.None:"back"===C.cullFace?m.Vr.Back:m.Vr.Front),C.transparency&&(_.metallicRoughness.baseColorFactor[3]=(0,E.uZ)(1-C.transparency,0,1)),(C.useVertexColorAlpha||_.metallicRoughness.baseColorFactor[3]<1)&&(_.alphaMode="blend")}const N=[];if(null!=h){!h.wrap||"repeat"!==h.wrap[0]&&"repeat"!==h.wrap[1]||(_.wrapTextures=!0);let P=b.v.Color;"rgba"===h.channels&&(_.alphaMode="blend",P|=b.v.AlphaMask);const A=h.images[h.images.length-1],U=G=>G&&G.split("/").pop(),B=Array.isArray(h.encoding)?ee(h.encoding.map((G,S)=>({name:U(A.href[S]),encoding:q[G]||0}))):[{name:U(A.href),encoding:q[h.encoding]||0}];N.push({id:0,usage:P,encodings:B}),_.metallicRoughness.baseColorTextureId=0}return{material:_,textures:N}}const te=()=>({alphaMode:"opaque",alphaCutoff:O.F,doubleSided:!0,cullFace:m.Vr.None,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0});function ae(u,f,V,c){if((0,y.Wi)(u)||null==u.data)return null;const h=u.data,_=!(h instanceof HTMLImageElement)||(0,E.wt)(h.width)&&(0,E.wt)(h.height),C=V&&!c.capabilities.shaderTextureLOD?1:c.renderingContext.parameters.maxMaxAnisotropy,P=_&&!u.downsampled&&C>1,F=V||!f.wrapTextures?he:ue,A=function me(u){switch(u){case b.j.KTX2:return R.x.KTX2_ENCODING;case b.j.Basis:return R.x.BASIS_ENCODING;case b.j.DDS_S3TC:return R.x.DDS_ENCODING;case b.j.PNG:return"image/png";case b.j.JPG:return"image/jpeg";case b.j.KTX_ETC2:return"image/ktx";default:return""}}(u.encoding);return new R.x(h,{mipmap:P,maxAnisotropy:C,encoding:A,wrap:F,components:u.usage&b.v.Color?"opaque"===f.alphaMode?3:4:3,noUnpackFlip:!0})}const he={s:g.e8.CLAMP_TO_EDGE,t:g.e8.CLAMP_TO_EDGE},ue={s:g.e8.REPEAT,t:g.e8.REPEAT};function ce(u,f,V,c,h,_){const N=_.rendererTextureUsage,C=Y=>function L(u,f,V){if((0,y.Wi)(u)||V===b.v.None)return null;for(let c=0;c0!=(V.encoding&f))}},52565:(le,Z,l)=>{l.d(Z,{$i:()=>E,FE:()=>W,Hw:()=>a,NB:()=>m,O4:()=>w,U_:()=>b,oQ:()=>R,rw:()=>y,w5:()=>O});var b,w,a,O,W,g,D=l(97126);class E{constructor(Q,ee){this.id=Q,this.mbs=ee,this.renderMbs=(0,D.f)(0,0,0,-1),this.elevationRange=null}}class y{constructor(){this.min=1/0,this.max=-1/0,this.valid=!1}}(g=b||(b={}))[g.Unmodified=0]="Unmodified",g[g.Culled=1]="Culled",g[g.NotChecked=2]="NotChecked",function(g){g[g.Unmodified=0]="Unmodified",g[g.PotentiallyModified=1]="PotentiallyModified",g[g.Culled=2]="Culled",g[g.Unknown=3]="Unknown",g[g.NotChecked=4]="NotChecked"}(w||(w={}));class m extends E{constructor(Q,ee,re,q,ne,te,ae,he,ue,ce){super(Q,re),this.index=ee,this.childCount=q,this.level=ne,this.resources=te,this.version=ae,this.lodMetric=he,this.maxError=ue,this.numFeatures=ce,this.failed=!1,this.cacheState=a.Unknown,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=w.NotChecked}}(function(g){g[g.Unknown=0]="Unknown",g[g.Uncached=1]="Uncached",g[g.Cached=2]="Cached"})(a||(a={})),function(g){g[g.None=0]="None",g[g.MaxScreenThreshold=1]="MaxScreenThreshold",g[g.ScreenSpaceRelative=2]="ScreenSpaceRelative",g[g.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",g[g.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(O||(O={})),function(g){g[g.Hole=0]="Hole",g[g.Leaf=1]="Leaf"}(W||(W={}));class R{constructor(Q,ee,re,q){this.nodeHasLOD=Q,this.isChosen=ee,this.lodLevel=re,this.version=q}}},86152:(le,Z,l)=>{l.d(Z,{v:()=>L});var D=l(15861),E=l(17626),y=l(84792),b=l(14517),w=l(85931),a=l(59213),O=l(27306),W=l(63290),m=l(62208),R=l(10699),g=l(32917),Q=l(77712),re=(l(90912),l(76898)),q=l(15348),ne=l(96854);function te(c,h,_){return ae.apply(this,arguments)}function ae(){return(ae=(0,D.Z)(function*(c,h,_){h=h.clone(),c.capabilities.query.supportsMaxRecordCountFactor&&(h.maxRecordCountFactor=ce(c));const N=he(c),C=c.capabilities.query.supportsPagination;h.start=0,h.num=N;let P=null;for(;;){const F=yield c.source.queryFeaturesJSON(h,_);if((0,m.Wi)(P)?P=F:P.features=P.features.concat(F.features),P.exceededTransferLimit=F.exceededTransferLimit,!C||!F.exceededTransferLimit)break;h.start+=N}return P})).apply(this,arguments)}function he(c){return ce(c)*function ue(c){return c.capabilities.query.maxRecordCount||2e3}(c)}function ce(c){return c.capabilities.query.supportsMaxRecordCountFactor?ne.Z.MAX_MAX_RECORD_COUNT_FACTOR:1}var oe=l(35560),ye=l(16446);let L=class extends b.Z{constructor(c){super(c),this._warnMaximumChangedObjectsExceeded=!1,this._pendingFetchAbortController=new AbortController,this._interactiveEditingSessions=null,this._maximumNumberOfEditOVerrides=V,this._original3DOFLDefinitionExpression=null,this._associatedLayerView=null,this._changedObjectIds=new Set}initialize(){this._memCache=this.memoryController.newCache(`${this.layer.uid}-attribute-overrides`),this._pendingFetchChangedObjectIds=this._fetchChangedObjectIds(this._pendingFetchAbortController.signal),this._pendingFetchChangedObjectIds.then(()=>this._pendingFetchAbortController=null),(0,oe.Rx)()&&(0,m.pC)(this._associatedLayer)&&(0,m.pC)(this._associatedLayer.infoFor3D)&&this._associatedLayer.load().then(c=>{this.destroyed||(this._original3DOFLDefinitionExpression=c.definitionExpression,this.addHandles((0,g.YP)(()=>this._definitionExpression,h=>c.definitionExpression=h,g.nn)),this._associatedLayerView=new ye.default({layer:this._associatedLayer,view:this.view}))})}destroy(){(0,oe.Rx)()&&(0,m.pC)(this._associatedLayer)&&(0,m.pC)(this._associatedLayer.infoFor3D)&&(0,m.pC)(this._associatedLayerView)&&(this._associatedLayer.definitionExpression=(0,m.Wg)(this._original3DOFLDefinitionExpression)),this._set("layer",null),this._memCache.destroy(),this._memCache=null,this._pendingFetchAbortController&&(this._pendingFetchAbortController.abort(),this._pendingFetchAbortController=null),this._pendingFetchChangedObjectIds=null}get geometryChangedObjectIds(){return[...this._changedObjectIds]}get _associatedLayer(){return this.layer.associatedLayer}get _definitionExpression(){const c=this.geometryChangedObjectIds;return 0===c.length?"1 = 0":`OBJECTID IN (${c.join(",")})`}get updating(){return!!((0,oe.Rx)()&&(0,m.pC)(this._associatedLayer)&&(0,m.pC)(this._associatedLayer.infoFor3D))&&(!(0,m.pC)(this._associatedLayerView)||(0,m.pC)(this._associatedLayerView)&&this._associatedLayerView.updating)}createInteractiveEditSession(c){this._changedObjectIds.add(c),this.notifyChange("_changedObjectIds"),(0,m.Wi)(this._interactiveEditingSessions)&&(this._interactiveEditingSessions=[]);const h=this._interactiveEditingSessions,_=new me(c,{rollback:()=>{(0,w.Od)(h,_),0===h.length&&(this._interactiveEditingSessions=null)},commit:N=>{for(const[C,P]of N)this.updateAttributeValue(c,C,P)}});return h.unshift(_),_}apply(c,h,_){var N=this;return(0,D.Z)(function*(){if((0,m.Wi)(h))return;const{loadedAttributes:C,attributeData:P}=h;if((0,m.Wi)(C)||0===C.length||(0,m.Wi)(P)||(yield(0,R.Hl)(N._pendingFetchChangedObjectIds,_),0===N._changedObjectIds.size))return;const F={loadedAttributes:C,attributeData:P},A=N._getOverridesFromCache(c,F,N._changedObjectIds),{objectIds:U,fieldNames:B}=A,G=yield N._queryOverridesFromAssociatedLayer(U,B,_);(0,m.Wi)(G)||N._processOverridesFromAssociatedLayer(c,G,B,F)})()}updateGeometry(c){this._changedObjectIds.add(c),this.notifyChange("_changedObjectIds")}updateAttributeValue(c,h,_){this._changedObjectIds.add(c),this._cacheAttributeValue(c,h,_),this.notifyChange("_changedObjectIds")}_cacheAttributeValue(c,h,_){this._memCache.put(this._getAttributeCacheKey(c,h),_,this._memCacheAttributeValueSize(_))}_getOverridesFromCache(c,{loadedAttributes:h,attributeData:_},N){const C=new Set,P=new Array;for(const A of h)P[A.index]=_[A.name];const F=new Set;for(let A=0;AU-B),N._warnMaximumChangedObjectsExceeded&&(N._warnMaximumChangedObjectsExceeded=!1,N._logMaximumObjectsExceededWarning());const C=N.layer.associatedLayer;if((0,m.Wi)(C))return null;const P=C.createQuery();P.where="1=1",P.returnGeometry=!1,P.outFields=[C.objectIdField,...h],P.cacheHint=!0,P.objectIds=c;const F=he(C),A=c.length>F?(0,w.vr)(c,F).map(U=>{const B=P.clone();return B.objectIds=U,(0,a.mt)(te(C,B,{signal:_}))}):[(0,a.mt)(te(C,P,{signal:_}))];return(yield Promise.all(A)).reduce((U,B)=>U.concat(B.ok?B.value.features:[]),[])})()}_logMaximumObjectsExceededWarning(){let c=`The number of edited objects that are not yet cached in the scene service exceeds the maximum limit. Attribute changes will only be available for the first ${(0,q.uf)(this._maximumNumberOfEditOVerrides)} objects. Please consider re-caching the scene service`;const h=this.layer.portalItem;c+=h&&h.loaded?` (${h.portal.url}/home/item.html?id=${h.id}#settings)`:` (${this.layer.parsedUrl.path})`,W.Z.getLogger("esri.views.3d.layers.i3s.I3SOverrides").warn("#queryOverrides()",this.layer.title,`${c}.`)}_processOverridesFromAssociatedLayer(c,h,_,{loadedAttributes:N,attributeData:C}){const P=this.layer.associatedLayer;if((0,m.Wi)(P))return;const F=P.objectIdField,A=_.map(S=>C[S]),U=new Map(N.map(S=>[S.name,S.index])),B=_.map(S=>U.get(S)),G=new Map(Array.from(c,(S,k)=>[S,k]));for(const S of h){const k=S.attributes[F];for(let Y=0;Y<_.length;Y++){const X=B[Y],ge=G.get(k),_e=S.attributes[_[Y]];A[Y][ge]=_e,this._cacheAttributeValue(k,X,_e)}}}_memCacheAttributeValueSize(c){return"string"==typeof c?(0,O.hH)(c):(0,O.G3)()}_fetchChangedObjectIds(c){var h=this;return(0,D.Z)(function*(){const _=h.layer;if(yield _.load({signal:c}),h._changedObjectIds.clear(),(0,m.Wi)(_.associatedLayer)||!_.associatedLayer.capabilities?.operations?.supportsChangeTracking)return;const N=h._getFetchChangedObjectIdsServerGen();if((0,m.Wi)(N))return null;const C=_.associatedLayer.layerId,P=(0,m.pC)(_.associatedLayer.infoFor3D),F=yield(0,a.q6)((0,y.default)(`${_.associatedLayer.url}/extractChanges`,{method:"post",query:{f:"json",returnIdsOnly:!0,layers:`[${C}]`,returnUpdates:!0,returnDeletes:P,returnInserts:P,layerServerGens:JSON.stringify([{id:C,serverGen:N}])},timeout:f,signal:c}));if(F.ok&&F.value.data?.edits&&1===F.value.data.edits.length){const A=F.value.data.edits[0],U=(0,m.U2)(A,"objectIds","adds"),B=(0,m.U2)(A,"objectIds","updates"),G=(0,m.U2)(A,"objectIds","deletes");let S=[];(0,m.pC)(U)&&(S=S.concat(U)),(0,m.pC)(B)&&(S=S.concat(B)),(0,m.pC)(G)&&(S=S.concat(G));const k=Math.min(h._maximumNumberOfEditOVerrides,S.length);kX-ge);for(let X=0;X{var D,E,y;l.d(Z,{j:()=>D,v:()=>E}),(y=D||(D={}))[y.KTX2=1]="KTX2",y[y.Basis=2]="Basis",y[y.DDS_S3TC=4]="DDS_S3TC",y[y.PNG=8]="PNG",y[y.JPG=16]="JPG",y[y.KTX_ETC2=32]="KTX_ETC2",function(y){y[y.None=0]="None",y[y.Color=1]="Color",y[y.MetallicRoughness=2]="MetallicRoughness",y[y.Normal=4]="Normal",y[y.Occlusion=8]="Occlusion",y[y.Emissive=16]="Emissive",y[y.AlphaMask=32]="AlphaMask",y[y.ColorTextures=19]="ColorTextures",y[y.GeometryTextures=36]="GeometryTextures",y[y.GeometryTexturesPBR=44]="GeometryTexturesPBR",y[y.AllTextures=37]="AllTextures",y[y.AllTexturesPBR=63]="AllTexturesPBR"}(E||(E={}))},73683:(le,Z,l)=>{var D,E;l.d(Z,{B:()=>D}),(E=D||(D={}))[E.FadeIn=0]="FadeIn",E[E.FadeOut=1]="FadeOut"},44554:(le,Z,l)=>{l.d(Z,{f:()=>y});var D=l(61885),E=l(88159);class y extends D.Z{constructor(){super(...arguments),this._map=new Map}clear(){if(this._map.size>0){const w=this.toArray();this._map.clear(),this.emit("change",{added:[],removed:w})}}get length(){return this._map.size}get(w){return this._map.get(w)}addMany(w){if(0===w.length)return;const a=new Set;for(let W=0;W0?w.filter(W=>!a.has(W.objectId)):w;O.length>0&&this.emit("change",{added:O,removed:[]})}removeMany(w){const a=[];for(const O of w){const W=O.objectId,m=this._map.get(W);null!=m&&--m.refCount<=0&&(this._map.delete(W),a.push(O))}a.length>0&&this.emit("change",{added:[],removed:a})}removeManyByObjectId(w){const a=[];for(const O of w){const W=this._map.get(O);null!=W&&--W.refCount<=0&&(this._map.delete(O),a.push(W))}a.length>0&&this.emit("change",{added:[],removed:a})}toArray(){return[...this._map.values()]}find(w){let a;return(0,E.oE)(this._map,O=>!!w(O)&&(a=O,!0)),a}forEach(w){this._map.forEach(a=>w(a))}}},52051:(le,Z,l)=>{l.d(Z,{T:()=>y});var D=l(62208),E=l(10699);class y{constructor(w,a){this._textureRep=w,this._disposed=!1;const O=this._textureRep.acquire(a);(0,E.y8)(O)?(O.then(W=>{this._disposed?(0,D.RY)(W):this._textureRef=W}),this.loadPromise=O):this._textureRef=O}dispose(){this._textureRef=(0,D.RY)(this._textureRef),this._disposed=!0}get glTexture(){return(0,D.pC)(this._textureRef)?this._textureRef.glTexture:null}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2226.a41f6e6f3208c778.js b/apps/n/porrtal-io-app/public/angular/2226.a41f6e6f3208c778.js deleted file mode 100644 index 986bf473..00000000 --- a/apps/n/porrtal-io-app/public/angular/2226.a41f6e6f3208c778.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2226],{52573:(i,n,t)=>{t.r(n),t.d(n,{CalciteAction:()=>o,defineCustomElement:()=>_});var e=t(48346);const o=e.A,_=e.d},23504:(i,n,t)=>{t.d(n,{g:()=>o});const o=()=>function e(_){return _.map(s=>{let a="";for(let u=0;u{t.r(T),t.d(T,{default:()=>A});var m,C=t(15861),r=t(17626),c=t(84792),g=t(26584),B=t(2076),v=t(62208),j=t(99959),l=t(77712),S=(t(85931),t(90912),t(76898)),h=t(65234),R=t(2004),U=t(65401),x=t(44917),Z=t(552),L=t(30346),I=t(99555),b=t(2584);const u=new(t(68511).f)("0/0/0",0,0,0,void 0);let p=m=class extends((0,Z.h)((0,I.M)((0,L.Q)(x.Z)))){constructor(){super(...arguments),this.tileInfo=b.Z.create({spatialReference:h.Z.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new R.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.Z.WebMercator),this.spatialReference=h.Z.WebMercator}getTileBounds(e,o,a,n){const i=n||(0,U.Ue)();return u.level=e,u.row=o,u.col=a,u.extent=i,this.tileInfo.updateTileInfo(u),u.extent=void 0,i}fetchTile(e,o,a,n={}){const{signal:i}=n,d=this.getTileUrl(e,o,a),y={responseType:"image",signal:i,query:{...this.refreshParameters}};return(0,c.default)(d??"",y).then(M=>M.data)}fetchImageBitmapTile(e,o,a,n={}){var i=this;return(0,C.Z)(function*(){const{signal:d}=n;if(i.fetchTile!==m.prototype.fetchTile)return createImageBitmap(yield i.fetchTile(e,o,a,n));const y=i.getTileUrl(e,o,a),M={responseType:"blob",signal:d,query:{...i.refreshParameters}},{data:K}=yield(0,c.default)(y??"",M);return createImageBitmap(K)})()}getTileUrl(){throw new g.Z("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,r._)([(0,l.Cb)({type:b.Z})],p.prototype,"tileInfo",void 0),(0,r._)([(0,l.Cb)({type:["show","hide"]})],p.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,value:"base-tile"})],p.prototype,"type",void 0),(0,r._)([(0,l.Cb)({nonNullable:!0})],p.prototype,"fullExtent",void 0),(0,r._)([(0,l.Cb)()],p.prototype,"spatialReference",void 0),p=m=(0,r._)([(0,S.j)("esri.layers.BaseTileLayer")],p);const w=p;var O=t(49286);const f=new B.X({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});let s=class extends((0,Z.h)((0,O.q)((0,j.R)(w)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new b.Z({size:[256,256],dpi:96,origin:{x:-20037508.342787,y:20037508.342787,spatialReference:h.Z.WebMercator},spatialReference:h.Z.WebMercator,lods:[{level:1,resolution:78271.5169639999,scale:295828763.795777},{level:2,resolution:39135.7584820001,scale:147914381.897889},{level:3,resolution:19567.8792409999,scale:73957190.948944},{level:4,resolution:9783.93962049996,scale:36978595.474472},{level:5,resolution:4891.96981024998,scale:18489297.737236},{level:6,resolution:2445.98490512499,scale:9244648.868618},{level:7,resolution:1222.99245256249,scale:4622324.434309},{level:8,resolution:611.49622628138,scale:2311162.217155},{level:9,resolution:305.748113140558,scale:1155581.108577},{level:10,resolution:152.874056570411,scale:577790.554289},{level:11,resolution:76.4370282850732,scale:288895.277144},{level:12,resolution:38.2185141425366,scale:144447.638572},{level:13,resolution:19.1092570712683,scale:72223.819286},{level:14,resolution:9.55462853563415,scale:36111.909643},{level:15,resolution:4.77731426794937,scale:18055.954822},{level:16,resolution:2.38865713397468,scale:9027.977411},{level:17,resolution:1.19432856685505,scale:4513.988705},{level:18,resolution:.597164283559817,scale:2256.994353},{level:19,resolution:.298582141647617,scale:1128.497176},{level:20,resolution:.1492910708238085,scale:564.248588}]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return(0,v.pC)(this.bingMetadata)?this.bingMetadata.copyright:null}get operationalLayerType(){return f.toJSON(this.style)}get bingLogo(){return(0,v.pC)(this.bingMetadata)?this.bingMetadata.brandLogoUri:null}load(e){return this.addResolvingPromise(this.key?this._getMetadata():this.portalUrl?this._getPortalBingKey().then(()=>this._getMetadata()):Promise.reject(new g.Z("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,o,a){if(!this.loaded||(0,v.Wi)(this.bingMetadata))return null;const n=this.bingMetadata.resourceSets[0].resources[0],i=n.imageUrlSubdomains[o%n.imageUrlSubdomains.length],d=this._getQuadKey(e,o,a);return n.imageUrl.replace("{subdomain}",i).replace("{quadkey}",d)}fetchAttributionData(){var e=this;return(0,C.Z)(function*(){return e.load().then(()=>(0,v.Wi)(e.bingMetadata)?null:{contributors:e.bingMetadata.resourceSets[0].resources[0].imageryProviders.map(o=>({attribution:o.attribution,coverageAreas:o.coverageAreas.map(a=>({zoomMin:a.zoomMin,zoomMax:a.zoomMax,score:1,bbox:[a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]]}))}))})})()}_getMetadata(){return(0,c.default)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${{road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style]}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then(o=>{const a=o.data;if(200!==a.statusCode)throw new g.Z("bingmapslayer:getmetadata",a.statusDescription);if(this.bingMetadata=a,0===this.bingMetadata.resourceSets.length)throw new g.Z("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new g.Z("bingmapslayer:getmetadata","no bing resources")}).catch(o=>{throw new g.Z("bingmapslayer:getmetadata",o.message)})}_getPortalBingKey(){return(0,c.default)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then(e=>{if(!e.data.bingKey)throw new g.Z("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey}).catch(e=>{throw new g.Z("bingmapslayer:getportalbingkey",e.message)})}_getQuadKey(e,o,a){let n="";for(let i=e;i>0;i--){let d=0;const y=1<{h.d(A,{Q:()=>O});var p=h(85931),R=h(62208),v=h(77029),P=h(14259);class O{constructor(e=9,t){this._compareMinX=D,this._compareMinY=d,this._toBBox=s=>s,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),l.prune(),f.prune(),a.prune(),L.prune()}all(e){this._all(this._data,e)}search(e,t){let s=this._data;const i=this._toBBox;if(U(e,s))for(l.clear();s;){for(let o=0,_=s.children.length;o<_;o++){const u=s.children[o],y=s.leaf?i(u):u;U(e,y)&&(s.leaf?t(u):C(e,y)?this._all(u,t):l.push(u))}s=l.pop()}}collides(e){let t=this._data;const s=this._toBBox;if(!U(e,t))return!1;for(l.clear();t;){for(let i=0,o=t.children.length;i0;){if(s||(s=(0,R.j0)(a.pop()),i=a.data[a.length-1],o=L.pop()??0,_=!0),s.leaf&&(t=(0,p.cq)(s.children,e,s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),a.push(s),this._condense(a),this;_||s.leaf||!C(s,u)?i?(o++,s=i.children[o],_=!1):s=null:(a.push(s),L.push(o),o=0,i=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let s=e;for(f.clear();s;){if(!0===s.leaf)for(const i of s.children)t(i);else f.pushArray(s.children);s=f.pop()??null}}_build(e,t,s,i){const o=s-t+1;let _=this._maxEntries;if(o<=_){const E=new S(e.slice(t,s+1));return m(E,this._toBBox),E}i||(i=Math.ceil(Math.log(o)/Math.log(_)),_=Math.ceil(o/_**(i-1)));const u=new M([]);u.height=i;const y=Math.ceil(o/_),x=y*Math.ceil(Math.sqrt(_));W(e,t,s,x,this._compareMinX);for(let E=t;E<=s;E+=x){const j=Math.min(E+x-1,s);W(e,E,j,y,this._compareMinY);for(let Y=E;Y<=j;Y+=y){const Z=Math.min(Y+y-1,j);u.children.push(this._build(e,Y,Z,i-1))}}return m(u,this._toBBox),u}_chooseSubtree(e,t,s,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==s;){let o,_=1/0,u=1/0;for(let y=0,x=t.children.length;y=0&&a.data[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(o,a,t)}_split(e,t){const s=e.data[t],i=s.children.length,o=this._minEntries;this._chooseSplitAxis(s,o,i);const _=this._chooseSplitIndex(s,o,i);if(!_)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const u=s.children.splice(_,s.children.length-_),y=s.leaf?new S(u):new M(u);y.height=s.height,m(s,this._toBBox),m(y,this._toBBox),t?e.data[t-1].children.push(y):this._splitRoot(s,y)}_splitRoot(e,t){this._data=new M([e,t]),this._data.height=e.height+1,m(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let i,o,_;i=o=1/0;for(let u=t;u<=s-t;u++){const y=B(e,0,u,this._toBBox),x=B(e,u,s,this._toBBox),E=I(y,x),j=g(y)+g(x);E=t;x--){const E=e.children[x];T(u,e.leaf?o(E):E),y+=r(u)}return y}_adjustParentBBoxes(e,t,s){for(let i=s;i>=0;i--)T(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const i=e.data[t-1],o=i.children;o.splice((0,p.cq)(o,s,o.length,i.indexHint),1)}else this.clear();else m(s,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function m(n,e){B(n,0,n.children.length,e,n)}function B(n,e,t,s,i){i||(i=new S([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,_=e;_=n.minX&&e.maxY>=n.minY}function W(n,e,t,s,i){const o=[e,t];for(;o.length;){const _=(0,R.j0)(o.pop()),u=(0,R.j0)(o.pop());if(_-u<=s)continue;const y=u+Math.ceil((_-u)/s/2)*s;(0,P.q)(n,y,u,_,i),o.push(u,y,y,_)}}const l=new v.Z,f=new v.Z,a=new v.Z,L=new v.Z({deallocator:void 0});class X{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class b extends X{constructor(){super(...arguments),this.height=1,this.indexHint=new p.SO}}class S extends b{constructor(e){super(),this.children=e,this.leaf=!0}}class M extends b{constructor(e){super(),this.children=e,this.leaf=!1}}},61256:(F,A,h)=>{h.d(A,{H:()=>T});var p=h(8314),R=h(36592),v=h(65401);const O={minX:0,minY:0,maxX:0,maxY:0};class T{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new R.Q(9,(0,p.Z)("esri-csp-restrictions")?d=>({minX:d[0],minY:d[1],maxX:d[2],maxY:d[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const d=new Array(this._idByBounds.size);let g=0;this._idByBounds.forEach((r,c)=>{d[g++]=c}),this._indexInvalid=!1,this._index.clear(),this._index.load(d)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(d=>this._idByBounds.has(d))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const d=(0,v.cS)();for(const g of this._boundsById.values())g&&(d[0]=Math.min(g[0],d[0]),d[1]=Math.min(g[1],d[1]),d[2]=Math.max(g[2],d[2]),d[3]=Math.max(g[3],d[3]));return d}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(d){const g=this._boundsById.get(d);this._boundsById.delete(d),g&&(this._idByBounds.delete(g),this._indexInvalid||this._index.remove(g))}forEachInBounds(d,g){this._loadIndex(),function B(D,d,g){(function m(D){O.minX=D[0],O.minY=D[1],O.maxX=D[2],O.maxY=D[3]})(d),D.search(O,g)}(this._index,d,r=>g(this._idByBounds.get(r)))}get(d){return this._boundsById.get(d)}has(d){return this._boundsById.has(d)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(d,g){if(!this._indexInvalid){const r=this._boundsById.get(d);r&&(this._index.remove(r),this._idByBounds.delete(r))}this._boundsById.set(d,g),g&&(this._idByBounds.set(g,d),this._indexInvalid||(this._boundsToLoad.push(g),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},3579:(F,A,h)=>{h.d(A,{Z:()=>d});var p=h(26584),R=h(61885),v=h(63290),P=h(62208),O=h(5548),m=h(65401),B=h(82054),T=h(61256),D=h(92794);class d{constructor(r){this.geometryInfo=r,this._boundsStore=new T.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new R.Z,this.featureAdapter=D.n}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let r=0;return this._featuresById.forEach(c=>{(0,P.pC)(c.geometry)&&c.geometry.coords&&(r+=c.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:r/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(r){this._add(r),this._emitChanged()}addMany(r){for(const c of r)this._add(c);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(r){const c=this._featuresById.get(r);return c?(this._remove(c),this._emitChanged(),c):null}removeManyById(r){this._boundsStore.invalidateIndex();for(const c of r){const I=this._featuresById.get(c);I&&this._remove(I)}this._emitChanged()}forEachBounds(r,c,I){for(const C of r){const U=this._boundsStore.get(C.objectId);U&&c((0,O.JR)(I,U))}}getFeature(r){return this._featuresById.get(r)}has(r){return this._featuresById.has(r)}toArray(){return Array.from(this._featuresById.values())}forEach(r){this._featuresById.forEach(c=>r(c))}forEachInBounds(r,c){this._boundsStore.forEachInBounds(r,I=>{c(this._featuresById.get(I))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let r=!1;this._featuresById.forEach((c,I)=>{this._markedIds.has(I)||(r=!0,this._remove(c))}),this._markedIds.clear(),r&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(r){if(!r)return;const c=r.objectId;if(null==c)return void v.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new p.Z("featurestore:invalid-feature","feature id is missing",{feature:r}));const I=this._featuresById.get(c);let C;if(this._markedIds.add(c),I?(r.displayId=I.displayId,C=this._boundsStore.get(c),this._boundsStore.delete(c)):(0,P.pC)(this.onFeatureAdd)&&this.onFeatureAdd(r),(0,P.Wi)(r.geometry)||!r.geometry.coords||!r.geometry.coords.length)return this._boundsStore.set(c,null),void this._featuresById.set(c,r);C=(0,B.$)((0,P.pC)(C)?C:(0,m.Ue)(),r.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,P.pC)(C)&&this._boundsStore.set(c,C),this._featuresById.set(c,r)}_remove(r){return(0,P.pC)(this.onFeatureRemove)&&this.onFeatureRemove(r),this._markedIds.delete(r.objectId),this._boundsStore.delete(r.objectId),this._featuresById.delete(r.objectId),r}}},92794:(F,A,h)=>{h.d(A,{n:()=>O});var p=h(62208),R=h(77044),v=h(66385),P=h(88071);const O={getObjectId:m=>m.objectId,getAttributes:m=>m.attributes,getAttribute:(m,B)=>m.attributes[B],cloneWithGeometry:(m,B)=>new v.u_(B,m.attributes,null,m.objectId),getGeometry:m=>m.geometry,getCentroid:(m,B)=>((0,p.Wi)(m.centroid)&&(m.centroid=(0,R.Y)(new P.Z,m.geometry,B.hasZ,B.hasM)),m.centroid)}},62305:(F,A,h)=>{h.r(A),h.d(A,{default:()=>U});var p=h(15861),R=h(59213),v=h(26584),P=h(63290),O=h(62208),m=h(10699),B=h(37053),T=h(82054),D=h(3579),d=h(82959),g=h(58175),r=h(58775),c=h(35775),I=h(83774),C=h(60466);class U{constructor(){var l=this;this._queryEngine=null,this._customParameters=null,this._snapshotFeatures=function(){var f=(0,p.Z)(function*(a){const{objectIdField:L}=l._queryEngine,X=yield(0,I.Bm)(l._getFeatureUrl??"",l._featureType.typeName,l._getFeatureOutputFormat,{customParameters:l._customParameters,dateFields:l._queryEngine.fieldsIndex.dateFields.map(M=>M.name),signal:a});yield(0,r.O3)(X),(0,m.k_)(a);const b=(0,r.lG)(X,{geometryType:l._queryEngine.geometryType,hasZ:!1,objectIdField:L});if(!(0,B.fS)(l._queryEngine.spatialReference,B.Zn))for(const M of b)(0,O.pC)(M.geometry)&&(M.geometry=(0,T.GH)((0,d.iV)((0,T.di)(M.geometry,l._queryEngine.geometryType,!1,!1),B.Zn,l._queryEngine.spatialReference)));let S=1;for(const M of b){const n={};(0,c.O0)(l._fieldsIndex,n,M.attributes,!0),M.attributes=n,null==M.attributes[L]&&(M.objectId=M.attributes[L]=S++)}return b});return function(a){return f.apply(this,arguments)}}()}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}load(l,f){var a=this;return(0,p.Z)(function*(){const{getFeatureUrl:L,getFeatureOutputFormat:X,spatialReference:b,fields:S,geometryType:M,featureType:n,objectIdField:e,customParameters:t}=l;a._featureType=n,a._customParameters=t,a._getFeatureUrl=L,a._getFeatureOutputFormat=X,a._fieldsIndex=new C.Z(S),yield a._checkProjection(b),(0,m.k_)(f),a._queryEngine=new g.q({fields:S,geometryType:M,hasM:!1,hasZ:!1,objectIdField:e,spatialReference:b,timeInfo:null,featureStore:new D.Z({geometryType:M,hasM:!1,hasZ:!1})});const s=yield a._snapshotFeatures((0,O.Wg)(f.signal));return a._queryEngine.featureStore.addMany(s),{extent:a._queryEngine.fullExtent}})()}applyEdits(){return(0,p.Z)(function*(){throw new v.Z("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")})()}queryFeatures(l={},f={}){var a=this;return(0,p.Z)(function*(){return yield a._waitSnapshotComplete(),a._queryEngine.executeQuery(l,f.signal)})()}queryFeatureCount(l={},f={}){var a=this;return(0,p.Z)(function*(){return yield a._waitSnapshotComplete(),a._queryEngine.executeQueryForCount(l,f.signal)})()}queryObjectIds(l={},f={}){var a=this;return(0,p.Z)(function*(){return yield a._waitSnapshotComplete(),a._queryEngine.executeQueryForIds(l,f.signal)})()}queryExtent(l={},f={}){var a=this;return(0,p.Z)(function*(){return yield a._waitSnapshotComplete(),a._queryEngine.executeQueryForExtent(l,f.signal)})()}querySnapping(l,f={}){var a=this;return(0,p.Z)(function*(){return yield a._waitSnapshotComplete(),a._queryEngine.executeQueryForSnapping(l,f.signal)})()}refresh(l){var f=this;return(0,p.Z)(function*(){return f._customParameters=l,f._snapshotTask?.abort(),f._snapshotTask=(0,R.vr)(f._snapshotFeatures),f._snapshotTask.promise.then(a=>{f._queryEngine.featureStore.clear(),a&&f._queryEngine.featureStore.addMany(a)},a=>{f._queryEngine.featureStore.clear(),(0,m.D_)(a)||P.Z.getLogger("esri.layers.WFSLayer").error(new v.Z("wfs-layer:getfeature-error","An error occurred during the GetFeature request",{error:a}))}),yield f._waitSnapshotComplete(),{extent:f._queryEngine.fullExtent}})()}_waitSnapshotComplete(){var l=this;return(0,p.Z)(function*(){if(l._snapshotTask&&!l._snapshotTask.finished){try{yield l._snapshotTask.promise}catch{}return l._waitSnapshotComplete()}})()}_checkProjection(l){return(0,p.Z)(function*(){try{yield(0,d._W)(B.Zn,l)}catch{throw new v.Z("unsupported-projection","Projection not supported",{spatialReference:l})}})()}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2337.ee17ec24ac521a16.js b/apps/n/porrtal-io-app/public/angular/2337.ee17ec24ac521a16.js deleted file mode 100644 index 0547c84e..00000000 --- a/apps/n/porrtal-io-app/public/angular/2337.ee17ec24ac521a16.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2337],{52337:(a,s,_)=>{_.r(s),_.d(s,{HighlightBlurDrawParameters:()=>E.H,build:()=>E.b}),_(99770),_(32181),_(17625),_(22355),_(5864),_(35387),_(16396);var E=_(47482)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2371.66e751671287c863.js b/apps/n/porrtal-io-app/public/angular/2371.66e751671287c863.js deleted file mode 100644 index c23bdd8c..00000000 --- a/apps/n/porrtal-io-app/public/angular/2371.66e751671287c863.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2371],{32371:(y,s,_)=>{_.r(s),_.d(s,{c:()=>f});var m,h,o,n=_(1719),a={exports:{}};m=a,void 0!==(o=a.exports,Object.defineProperty(o,"__esModule",{value:!0}),h=void(o.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"dC",_era_bc:"aC",A:"a. m.",P:"p. m.",AM:"a. m.",PM:"p. m.","A.M.":"a. m.","P.M.":"p. m.",January:"de gener",February:"de febrer",March:"de mar\xe7",April:"d\u2019abril",May:"de maig",June:"de juny",July:"de juliol",August:"d\u2019agost",September:"de setembre",October:"d\u2019octubre",November:"de novembre",December:"de desembre",Jan:"de gen.",Feb:"de febr.",Mar:"de mar\xe7",Apr:"d\u2019abr.","May(short)":"de maig",Jun:"de juny",Jul:"de jul.",Aug:"d\u2019ag.",Sep:"de set.",Oct:"d\u2019oct.",Nov:"de nov.",Dec:"de des.",Sunday:"diumenge",Monday:"dilluns",Tuesday:"dimarts",Wednesday:"dimecres",Thursday:"dijous",Friday:"divendres",Saturday:"dissabte",Sun:"dg.",Mon:"dl.",Tue:"dt.",Wed:"dc.",Thu:"dj.",Fri:"dv.",Sat:"ds.",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Zoom",Play:"Reprodueix",Stop:"Parada",Legend:"Llegenda","Click, tap or press ENTER to toggle":"",Loading:"S'est\xe0 carregant",Home:"Inici",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Imprimeix",Image:"Imatge",Data:"Dades",Print:"Imprimeix","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"De %1 a %2","From %1":"De %1","To %1":"A %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(m.exports=h);const f=function c(t,o){for(var r=0;re[d]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,n.g)(a.exports)},[a.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2405.72b14d50ecf83fc4.js b/apps/n/porrtal-io-app/public/angular/2405.72b14d50ecf83fc4.js deleted file mode 100644 index 152890d1..00000000 --- a/apps/n/porrtal-io-app/public/angular/2405.72b14d50ecf83fc4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2405],{52405:(kn,Le,_e)=>{_e.r(Le),_e.d(Le,{b:()=>jr});var K,Pe=_e(1719),Ae={exports:{}};K=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,typeof __filename<"u"&&(K=K||__filename),Ae.exports=function(k){var Y,H,n=void 0!==(k=k||{})?k:{};n.ready=new Promise(function(e,r){Y=e,H=r});var C,le,I,We,Ge,E={};for(C in n)n.hasOwnProperty(C)&&(E[C]=n[C]);le="object"==typeof window,I="function"==typeof importScripts,We="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,Ge=!le&&!We&&!I;var ce,Z,Ee,Se,T="";We?(T=I?require("path").dirname(T)+"/":__dirname+"/",ce=function(e,r){return Ee||(Ee=require("fs")),Se||(Se=require("path")),e=Se.normalize(e),Ee.readFileSync(e,r?null:"utf8")},Z=function(e){var r=ce(e,!0);return r.buffer||(r=new Uint8Array(r)),Oe(r.buffer),r},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof On))throw e}),process.on("unhandledRejection",L),n.inspect=function(){return"[Emscripten Module object]"}):Ge?(typeof read<"u"&&(ce=function(e){return read(e)}),Z=function(e){var r;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(Oe("object"==typeof(r=read(e,"binary"))),r)},typeof scriptArgs<"u"&&scriptArgs,typeof print<"u"&&(typeof console>"u"&&(console={}),console.log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(le||I)&&(I?T=self.location.href:document.currentScript&&(T=document.currentScript.src),K&&(T=K),T=0!==T.indexOf("blob:")?T.substr(0,T.lastIndexOf("/")+1):"",ce=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},I&&(Z=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var Q,ee,Fr=n.print||console.log.bind(console),z=n.printErr||console.warn.bind(console);for(C in E)E.hasOwnProperty(C)&&(n[C]=E[C]);E=null,n.wasmBinary&&(Q=n.wasmBinary),"object"!=typeof WebAssembly&&L("no native wasm support detected");var Rr=new WebAssembly.Table({initial:157,maximum:157,element:"anyfunc"}),Xe=!1;function Oe(e,r){e||L("Assertion failed: "+r)}var Je=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Ke(e,r,t){for(var i=r+t,o=r;e[o]&&!(o>=i);)++o;if(o-r>16&&e.subarray&&Je)return Je.decode(e.subarray(r,o));for(var a="";r>10,56320|1023&c)}}else a+=String.fromCharCode((31&s)<<6|u)}else a+=String.fromCharCode(s)}return a}function Ye(e,r){return e?Ke(b,e,r):""}var B,fe,b,U,re,g,P,Qe,er,Ze=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function Ur(e,r){for(var t=e,i=t>>1,o=i+r/2;!(i>=o)&&re[i];)++i;if((t=i<<1)-e>32&&Ze)return Ze.decode(b.subarray(e,t));for(var a=0,s="";;){var u=U[e+2*a>>1];if(0==u||a==r/2)return s;++a,s+=String.fromCharCode(u)}}function Mr(e,r,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var i=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a>1]=s,r+=2}return U[r>>1]=0,r-i}function Vr(e){return 2*e.length}function Hr(e,r){for(var t=0,i="";!(t>=r/4);){var o=g[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;i+=String.fromCharCode(55296|a>>10,56320|1023&a)}else i+=String.fromCharCode(o)}return i}function zr(e,r,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var i=r,o=i+t-4,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),g[r>>2]=s,(r+=4)+4>o)break}return g[r>>2]=0,r-i}function Br(e){for(var r=0,t=0;t=55296&&i<=57343&&++t,r+=4}return r}function Lr(e,r){return e%r>0&&(e+=r-e%r),e}function tr(e){B=e,n.HEAP8=fe=new Int8Array(e),n.HEAP16=U=new Int16Array(e),n.HEAP32=g=new Int32Array(e),n.HEAPU8=b=new Uint8Array(e),n.HEAPU16=re=new Uint16Array(e),n.HEAPU32=P=new Uint32Array(e),n.HEAPF32=Qe=new Float32Array(e),n.HEAPF64=er=new Float64Array(e)}var nr=n.INITIAL_MEMORY||16777216;function pe(e){for(;e.length>0;){var r=e.shift();if("function"!=typeof r){var t=r.func;"number"==typeof t?void 0===r.arg?n.dynCall_v(t):n.dynCall_vi(t,r.arg):t(void 0===r.arg?null:r.arg)}else r(n)}}(ee=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:nr/65536,maximum:32768}))&&(B=ee.buffer),nr=B.byteLength,tr(B),g[80624]=5565536;var ir=[],or=[],Gr=[],ar=[],et=Math.ceil,rt=Math.floor,M=0,te=null;function L(e){n.onAbort&&n.onAbort(e),z(e+=""),Xe=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var r=new WebAssembly.RuntimeError(e);throw H(r),r}function ur(e,r){return String.prototype.startsWith?e.startsWith(r):0===e.indexOf(r)}function sr(e){return ur(e,"data:application/octet-stream;base64,")}function lr(e){return ur(e,"file://")}n.preloadedImages={},n.preloadedAudios={};var A="basis_transcoder.wasm";function cr(){try{if(Q)return new Uint8Array(Q);if(Z)return Z(A);throw"both async and sync fetching of the wasm failed"}catch(e){L(e)}}sr(A)||(A=function kr(e){return n.locateFile?n.locateFile(e,T):T+e}(A)),or.push({func:function(){Pr()}});var de={};function ye(e){for(;e.length;){var r=e.pop();e.pop()(r)}}function ne(e){return this.fromWireType(P[e>>2])}var N={},V={},me={};function fr(e){if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?"_"+e:e}function je(e,r){return e=fr(e),function(){return r.apply(this,arguments)}}function ke(e,r){var t=je(r,function(i){this.name=r,this.message=i;var o=new Error(i).stack;void 0!==o&&(this.stack=this.toString()+"\n"+o.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var pr=void 0;function he(e){throw new pr(e)}function F(e,r,t){function i(u){var l=t(u);l.length!==e.length&&he("Mismatched type converter count");for(var c=0;c"u"?(ie=function(r){return r},e):(Re=new FinalizationGroup(function(r){for(var t=r.next();!t.done;t=r.next()){var i=t.value;i.ptr?mr(i):console.warn("object already deleted: "+i.ptr)}}),yr=function(r){Re.unregister(r.$$)},(ie=function(r){return Re.register(r,r.$$,r.$$),r})(e))}function ht(){if(this.$$.ptr||Fe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=ie(Object.create(Object.getPrototypeOf(this),{$$:{value:yt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function vt(){this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&p("Object already scheduled for deletion"),yr(this),mr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function gt(){return!this.$$.ptr}var oe=void 0,ae=[];function xe(){for(;ae.length;){var e=ae.pop();e.$$.deleteScheduled=!1,e.delete()}}function bt(){return this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&p("Object already scheduled for deletion"),ae.push(this),1===ae.length&&oe&&oe(xe),this.$$.deleteScheduled=!0,this}function R(){}var hr={};function vr(e,r,t){if(void 0===e[r].overloadTable){var i=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||p("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[r].overloadTable+")!"),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[i.argCount]=i}}function De(e,r,t){n.hasOwnProperty(e)?((void 0===t||void 0!==n[e].overloadTable&&void 0!==n[e].overloadTable[t])&&p("Cannot register public name '"+e+"' twice"),vr(n,e,e),n.hasOwnProperty(t)&&p("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),n[e].overloadTable[t]=r):(n[e]=r,void 0!==t&&(n[e].numArguments=t))}function Ct(e,r,t,i,o,a,s,u){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=i,this.baseClass=o,this.getActualType=a,this.upcast=s,this.downcast=u,this.pureVirtualFunctions=[]}function Ie(e,r,t){for(;r!==t;)r.upcast||p("Expected null or instance of "+t.name+", got an instance of "+r.name),e=r.upcast(e),r=r.baseClass;return e}function wt(e,r){return null===r?(this.isReference&&p("null is not a valid "+this.name),0):(r.$$||p('Cannot pass "'+G(r)+'" as a '+this.name),r.$$.ptr||p("Cannot pass deleted object as a pointer of type "+this.name),Ie(r.$$.ptr,r.$$.ptrType.registeredClass,this.registeredClass))}function Tt(e,r){var t;if(null===r)return this.isReference&&p("null is not a valid "+this.name),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;if(r.$$||p('Cannot pass "'+G(r)+'" as a '+this.name),r.$$.ptr||p("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&r.$$.ptrType.isConst&&p("Cannot convert argument of type "+(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name)+" to parameter type "+this.name),t=Ie(r.$$.ptr,r.$$.ptrType.registeredClass,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&p("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:p("Cannot convert argument of type "+(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,O(function(){o.delete()})),null!==e&&e.push(this.rawDestructor,t)}break;default:p("Unsupporting sharing policy")}return t}function _t(e,r){return null===r?(this.isReference&&p("null is not a valid "+this.name),0):(r.$$||p('Cannot pass "'+G(r)+'" as a '+this.name),r.$$.ptr||p("Cannot pass deleted object as a pointer of type "+this.name),r.$$.ptrType.isConst&&p("Cannot convert argument of type "+r.$$.ptrType.name+" to parameter type "+this.name),Ie(r.$$.ptr,r.$$.ptrType.registeredClass,this.registeredClass))}function Pt(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function At(e){this.rawDestructor&&this.rawDestructor(e)}function Wt(e){null!==e&&e.delete()}function gr(e,r,t){if(r===t)return e;if(void 0===t.baseClass)return null;var i=gr(e,r,t.baseClass);return null===i?null:t.downcast(i)}function Et(){return Object.keys(ue).length}function St(){var e=[];for(var r in ue)ue.hasOwnProperty(r)&&e.push(ue[r]);return e}function Ot(e){oe=e,ae.length&&oe&&oe(xe)}var ue={};function ge(e,r){return r.ptrType&&r.ptr||he("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&he("Both smartPtrType and smartPtr must be specified"),r.count={value:1},ie(Object.create(e,{$$:{value:r}}))}function Rt(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=function Ft(e,r){return r=function kt(e,r){for(void 0===r&&p("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r}(e,r),ue[r]}(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var i=t.clone();return this.destructor(e),i}function o(){return ge(this.registeredClass.instancePrototype,this.isSmartPointer?{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}:{ptrType:this,ptr:e})}var a,s=this.registeredClass.getActualType(r),u=hr[s];if(!u)return o.call(this);var l=gr(r,this.registeredClass,(a=this.isConst?u.constPointerType:u.pointerType).registeredClass);return null===l?o.call(this):ge(a.registeredClass.instancePrototype,this.isSmartPointer?{ptrType:a,ptr:l,smartPtrType:this,smartPtr:e}:{ptrType:a,ptr:l})}function S(e,r,t,i,o,a,s,u,l,c,f){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=i,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=u,this.rawConstructor=l,this.rawShare=c,this.rawDestructor=f,o||void 0!==r.baseClass?this.toWireType=Tt:i?(this.toWireType=wt,this.destructorFunction=null):(this.toWireType=_t,this.destructorFunction=null)}function br(e,r,t){n.hasOwnProperty(e)||he("Replacing nonexistant public symbol"),void 0!==n[e].overloadTable&&void 0!==t?n[e].overloadTable[t]=r:(n[e]=r,n[e].argCount=t)}function _(e,r){e=v(e);var i=function t(o){var a=[r];return function(){a.length=arguments.length+1;for(var s=0;s>2)+i]);return t}function wr(e,r,t,i,o){var a=r.length;a<2&&p("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,u=!1,l=1;l4&&0==--w[e].refcount&&(w[e]=void 0,Me.push(e))}function Vt(){for(var e=0,r=5;r>1])};case 2:return function(i){return this.fromWireType((t?g:P)[i>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function $e(e,r){var t=V[e];return void 0===t&&p(r+" has unknown type "+Cr(e)),t}function G(e){if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e}function Gt(e,r){switch(r){case 2:return function(t){return this.fromWireType(Qe[t>>2])};case 3:return function(t){return this.fromWireType(er[t>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Kt(e,r,t){switch(r){case 0:return t?function(i){return fe[i]}:function(i){return b[i]};case 1:return t?function(i){return U[i>>1]}:function(i){return re[i>>1]};case 2:return t?function(i){return g[i>>2]}:function(i){return P[i>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function se(e){return e||p("Cannot use deleted val. handle = "+e),w[e].value}var an={};function Ce(e){var r=an[e];return void 0===r?v(e):r}var He=[];function Tr(){if("object"==typeof globalThis)return globalThis;function e(r){r.$$$embind_global$$$=r;var t="object"==typeof $$$embind_global$$$&&r.$$$embind_global$$$===r;return t||delete r.$$$embind_global$$$,t}if("object"==typeof $$$embind_global$$$||("object"==typeof Pe.c&&e(Pe.c)?$$$embind_global$$$=Pe.c:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$))return $$$embind_global$$$;throw Error("unable to get global object.")}var _r={};function wn(e){try{return ee.grow(e-B.byteLength+65535>>>16),tr(ee.buffer),1}catch{}}var we={mappings:{},buffers:[null,[],[]],printChar:function(e,r){var t=we.buffers[e];0===r||10===r?((1===e?Fr:z)(Ke(t,0)),t.length=0):t.push(r)},varargs:void 0,get:function(){return we.varargs+=4,g[we.varargs-4>>2]},getStr:function(e){return Ye(e)},get64:function(e,r){return e}};pr=n.InternalError=ke(Error,"InternalError"),function ft(){for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);dr=e}(),q=n.BindingError=ke(Error,"BindingError"),function $t(){R.prototype.isAliasOf=dt,R.prototype.clone=ht,R.prototype.delete=vt,R.prototype.isDeleted=gt,R.prototype.deleteLater=bt}(),function xt(){S.prototype.getPointee=Pt,S.prototype.destructor=At,S.prototype.argPackAdvance=8,S.prototype.readValueFromPointer=ne,S.prototype.deleteObject=Wt,S.prototype.fromWireType=Rt}(),function jt(){n.getInheritedInstanceCount=Et,n.getLiveInheritedInstances=St,n.flushPendingDeletes=xe,n.setDelayFunction=Ot}(),$r=n.UnboundTypeError=ke(Error,"UnboundTypeError"),function zt(){n.count_emval_handles=Vt,n.get_first_emval=Ht}();var Sn={u:function ct(e){var r=de[e];delete de[e];var t=r.rawConstructor,i=r.rawDestructor,o=r.fields;F([e],o.map(function(a){return a.getterReturnType}).concat(o.map(function(a){return a.setterArgumentType})),function(a){var s={};return o.forEach(function(u,l){var f=a[l],m=u.getter,d=u.getterContext,h=a[l+o.length],$=u.setter,y=u.setterContext;s[u.fieldName]={read:function(x){return f.fromWireType(m(d,x))},write:function(x,D){var X=[];$(y,x,h.toWireType(X,D)),ye(X)}}}),[{name:r.name,fromWireType:function(u){var l={};for(var c in s)l[c]=s[c].read(u);return i(u),l},toWireType:function(u,l){for(var c in s)if(!(c in l))throw new TypeError('Missing field: "'+c+'"');var f=t();for(c in s)s[c].write(f,l[c]);return null!==u&&u.push(i,f),f},argPackAdvance:8,readValueFromPointer:ne,destructorFunction:i}]})},J:function pt(e,r,t,i,o){var a=ve(t);W(e,{name:r=v(r),fromWireType:function(s){return!!s},toWireType:function(s,u){return u?i:o},argPackAdvance:8,readValueFromPointer:function(s){var u;if(1===t)u=fe;else if(2===t)u=U;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+r);u=g}return this.fromWireType(u[s>>a])},destructorFunction:null})},y:function Dt(e,r,t,i,o,a,s,u,l,c,f,m,d){f=v(f),a=_(o,a),u&&(u=_(s,u)),c&&(c=_(l,c)),d=_(m,d);var h=fr(f);De(h,function(){be("Cannot construct "+f+" due to unbound types",[i])}),F([e,r,t],i?[i]:[],function($){var y,x;$=$[0],x=i?(y=$.registeredClass).instancePrototype:R.prototype;var D=je(h,function(){if(Object.getPrototypeOf(this)!==X)throw new q("Use 'new' to construct "+f);if(void 0===J.constructor_body)throw new q(f+" has no accessible constructor");var Sr=J.constructor_body[arguments.length];if(void 0===Sr)throw new q("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(J.constructor_body).toString()+") parameters instead!");return Sr.apply(this,arguments)}),X=Object.create(x,{constructor:{value:D}});D.prototype=X;var J=new Ct(f,D,X,d,y,a,u,c),jn=new S(f,J,!0,!1,!1),Wr=new S(f+"*",J,!1,!1,!1),Er=new S(f+" const*",J,!1,!0,!1);return hr[e]={pointerType:Wr,constPointerType:Er},br(h,D),[jn,Wr,Er]})},x:function It(e,r,t,i,o,a){Oe(r>0);var s=Ue(r,t);o=_(i,o);var u=[a],l=[];F([],[e],function(c){var f="constructor "+(c=c[0]).name;if(void 0===c.registeredClass.constructor_body&&(c.registeredClass.constructor_body=[]),void 0!==c.registeredClass.constructor_body[r-1])throw new q("Cannot register multiple constructors with identical number of parameters ("+(r-1)+") for class '"+c.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return c.registeredClass.constructor_body[r-1]=function(){be("Cannot construct "+c.name+" due to unbound types",s)},F([],s,function(m){return c.registeredClass.constructor_body[r-1]=function(){arguments.length!==r-1&&p(f+" called with "+arguments.length+" arguments, expected "+(r-1)),l.length=0,u.length=r;for(var d=1;d>>u}}var l=-1!=r.indexOf("unsigned");W(e,{name:r,fromWireType:s,toWireType:function(c,f){if("number"!=typeof f&&"boolean"!=typeof f)throw new TypeError('Cannot convert "'+G(f)+'" to '+this.name);if(fo)throw new TypeError('Passing a number "'+G(f)+'" from JS side to C/C++ side to an argument of type "'+r+'", which is outside the valid range ['+i+", "+o+"]!");return l?f>>>0:0|f},argPackAdvance:8,readValueFromPointer:Kt(r,a,0!==i),destructorFunction:null})},h:function Zt(e,r,t){var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(a){var u=P[a>>=2];return new i(B,P[a+1],u)}W(e,{name:t=v(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},C:function Qt(e,r){var t="std::string"===(r=v(r));W(e,{name:r,fromWireType:function(i){var o,a=P[i>>2];if(t)for(var s=i+4,u=0;u<=a;++u){var l=i+4+u;if(u==a||0==b[l]){var c=Ye(s,l-s);void 0===o?o=c:(o+=String.fromCharCode(0),o+=c),s=l+1}}else{var f=new Array(a);for(u=0;u=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++t)),i<=127?++r:r+=i<=2047?2:i<=65535?3:4}return r}(o)}:function(){return o.length})(),u=ze(4+s+1);if(P[u>>2]=s,t&&a)!function Dr(e,r,t){(function xr(e,r,t,i){if(!(i>0))return 0;for(var o=t,a=t+i-1,s=0;s=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&e.charCodeAt(++s)),u<=127){if(t>=a)break;r[t++]=u}else if(u<=2047){if(t+1>=a)break;r[t++]=192|u>>6,r[t++]=128|63&u}else if(u<=65535){if(t+2>=a)break;r[t++]=224|u>>12,r[t++]=128|u>>6&63,r[t++]=128|63&u}else{if(t+3>=a)break;r[t++]=240|u>>18,r[t++]=128|u>>12&63,r[t++]=128|u>>6&63,r[t++]=128|63&u}}r[t]=0})(e,b,r,t)}(o,u+4,s+1);else if(a)for(var l=0;l255&&(j(u),p("String has UTF-16 code units that do not fit in 8 bits")),b[u+4+l]=c}else for(l=0;l>2],m=a(),d=l+4,h=0;h<=f;++h){var $=l+4+h*r;if(h==f||0==m[$>>u]){var y=i(d,$-d);void 0===c?c=y:(c+=String.fromCharCode(0),c+=y),d=$+r}}return j(l),c},toWireType:function(l,c){"string"!=typeof c&&p("Cannot pass non-string to C++ string type "+t);var f=s(c),m=ze(4+f+r);return P[m>>2]=f>>u,o(c,m+4,f+r),null!==l&&l.push(j,m),m},argPackAdvance:8,readValueFromPointer:ne,destructorFunction:function(l){j(l)}})},v:function rn(e,r,t,i,o,a){de[e]={name:v(r),rawConstructor:_(t,i),rawDestructor:_(o,a),fields:[]}},c:function tn(e,r,t,i,o,a,s,u,l,c){de[e].fields.push({fieldName:v(r),getterReturnType:t,getter:_(i,o),getterContext:a,setterArgumentType:s,setter:_(u,l),setterContext:c})},K:function nn(e,r){W(e,{isVoid:!0,name:r=v(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,i){}})},m:function on(e,r,t){e=se(e),r=$e(r,"emval::as");var i=[],o=O(i);return g[t>>2]=o,r.toWireType(i,e)},s:function un(e,r,t,i){(e=He[e])(r=se(r),t=Ce(t),null,i)},b:Ve,z:function sn(e){return 0===e?O(Tr()):(e=Ce(e),O(Tr()[e]))},t:function fn(e,r){var t=function cn(e,r){for(var t=new Array(e),i=0;i>2)+i],"parameter "+i);return t}(e,r),i=t[0],o=new Array(e-1);return function ln(e){var r=He.length;return He.push(e),r}(function(a,s,u,l){for(var c=0,f=0;f4&&(w[e].refcount+=1)},q:function hn(e,r,t,i){e=se(e);var o=_r[r];return o||(o=function mn(e){var r=new Array(e+1);return function(t,i,o){r[0]=t;for(var a=0;a>2)+a],"parameter "+a);r[a+1]=s.readValueFromPointer(o),o+=s.argPackAdvance}return O(new(t.bind.apply(t,r)))}}(r),_r[r]=o),o(e,t,i)},f:function vn(e){return O(Ce(e))},l:function gn(e){ye(w[e].value),Ve(e)},p:function bn(){L()},F:function $n(e,r,t){b.copyWithin(e,r,r+t)},G:function Tn(e){e>>>=0;var r=function Cn(){return b.length}(),i=2147483648;if(e>i)return!1;for(var a=1;a<=4;a*=2){var s=r*(1+.2/a);if(s=Math.min(s,e+100663296),wn(Math.min(i,Lr(Math.max(16777216,e,s),65536))))return!0}return!1},H:function _n(e){return 0},D:function Pn(e,r,t,i,o){},A:function An(e,r,t,i){for(var o=0,a=0;a>2],u=g[r+(8*a+4)>>2],l=0;l>2]=o,0},memory:ee,o:function Wn(e){return(e=+e)>=0?+rt(e+.5):+et(e-.5)},E:function En(e){},table:Rr};!function ut(){var e={a:Sn};function r(a,s){n.asm=a.exports,function nt(e){if(M--,n.monitorRunDependencies&&n.monitorRunDependencies(M),0==M&&te){var r=te;te=null,r()}}()}function t(a){r(a.instance)}function i(a){return function at(){return Q||!le&&!I||"function"!=typeof fetch||lr(A)?new Promise(function(e,r){e(cr())}):fetch(A,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+A+"'";return e.arrayBuffer()}).catch(function(){return cr()})}().then(function(s){return WebAssembly.instantiate(s,e)}).then(a,function(s){z("failed to asynchronously prepare wasm: "+s),L(s)})}if(function tt(e){M++,n.monitorRunDependencies&&n.monitorRunDependencies(M)}(),n.instantiateWasm)try{return n.instantiateWasm(e,r)}catch(a){return z("Module.instantiateWasm callback failed with error: "+a),!1}(function o(){if(Q||"function"!=typeof WebAssembly.instantiateStreaming||sr(A)||lr(A)||"function"!=typeof fetch)return i(t);fetch(A,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,e).then(t,function(s){return z("wasm streaming compile failed: "+s),z("falling back to ArrayBuffer instantiation"),i(t)})})})()}();var Te,Pr=n.___wasm_call_ctors=function(){return(Pr=n.___wasm_call_ctors=n.asm.L).apply(null,arguments)},ze=n._malloc=function(){return(ze=n._malloc=n.asm.M).apply(null,arguments)},j=n._free=function(){return(j=n._free=n.asm.N).apply(null,arguments)},Ar=n.___getTypeName=function(){return(Ar=n.___getTypeName=n.asm.O).apply(null,arguments)};function On(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Be(e){function r(){Te||(Te=!0,n.calledRun=!0,Xe||(function Jr(){pe(or)}(),function Kr(){pe(Gr)}(),Y(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function Yr(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ar.unshift(e);var e;pe(ar)}()))}M>0||(function Xr(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),ir.unshift(e);var e;pe(ir)}(),M>0||(n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),r()},1)):r()))}if(n.___embind_register_native_and_builtin_types=function(){return(n.___embind_register_native_and_builtin_types=n.asm.P).apply(null,arguments)},n.dynCall_viii=function(){return(n.dynCall_viii=n.asm.Q).apply(null,arguments)},n.dynCall_vi=function(){return(n.dynCall_vi=n.asm.R).apply(null,arguments)},n.dynCall_v=function(){return(n.dynCall_v=n.asm.S).apply(null,arguments)},n.dynCall_i=function(){return(n.dynCall_i=n.asm.T).apply(null,arguments)},n.dynCall_iii=function(){return(n.dynCall_iii=n.asm.U).apply(null,arguments)},n.dynCall_ii=function(){return(n.dynCall_ii=n.asm.V).apply(null,arguments)},n.dynCall_vii=function(){return(n.dynCall_vii=n.asm.W).apply(null,arguments)},n.dynCall_iiii=function(){return(n.dynCall_iiii=n.asm.X).apply(null,arguments)},n.dynCall_iiiii=function(){return(n.dynCall_iiiii=n.asm.Y).apply(null,arguments)},n.dynCall_iiiiii=function(){return(n.dynCall_iiiiii=n.asm.Z).apply(null,arguments)},n.dynCall_iiiiiiii=function(){return(n.dynCall_iiiiiiii=n.asm._).apply(null,arguments)},n.dynCall_iiiiiiiii=function(){return(n.dynCall_iiiiiiiii=n.asm.$).apply(null,arguments)},n.dynCall_viiii=function(){return(n.dynCall_viiii=n.asm.aa).apply(null,arguments)},n.dynCall_iiiiiii=function(){return(n.dynCall_iiiiiii=n.asm.ba).apply(null,arguments)},n.dynCall_iiiiiiiiiiiiiiiiiiii=function(){return(n.dynCall_iiiiiiiiiiiiiiiiiiii=n.asm.ca).apply(null,arguments)},n.dynCall_iiiiiiiiiiiiiiiiiiiii=function(){return(n.dynCall_iiiiiiiiiiiiiiiiiiiii=n.asm.da).apply(null,arguments)},n.dynCall_iiiiiiiiiiiiiiiiiii=function(){return(n.dynCall_iiiiiiiiiiiiiiiiiii=n.asm.ea).apply(null,arguments)},n.dynCall_viiiii=function(){return(n.dynCall_viiiii=n.asm.fa).apply(null,arguments)},n.dynCall_iiiiiiiiii=function(){return(n.dynCall_iiiiiiiiii=n.asm.ga).apply(null,arguments)},n.dynCall_iiiiiiiiiii=function(){return(n.dynCall_iiiiiiiiiii=n.asm.ha).apply(null,arguments)},n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.ia).apply(null,arguments)},n.dynCall_viiiiii=function(){return(n.dynCall_viiiiii=n.asm.ja).apply(null,arguments)},te=function e(){Te||Be(),Te||(te=e)},n.run=Be,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return Be(),k.ready};const jr=function Or(k,Y){for(var H=0;Hn[C]})}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:Ae.exports},[Ae.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2435.238d9e3d21011a9b.js b/apps/n/porrtal-io-app/public/angular/2435.238d9e3d21011a9b.js deleted file mode 100644 index df432908..00000000 --- a/apps/n/porrtal-io-app/public/angular/2435.238d9e3d21011a9b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2435],{12435:(Se,gt,f)=>{f.r(gt),f.d(gt,{meshFeatureSetFromJSON:()=>Fe});var zt=f(88879),l=f(62208),rt=f(2004),z=f(15861),M=f(17626),ot=f(26584),Tt=f(80542),Ut=f(47996),C=f(63290),Dt=f(60330),$=f(10699),jt=f(32917),R=f(77712),$t=(f(85931),f(90912),f(76898)),d=f(28093),Gt=f(21674),E=f(72642),Nt=f(37118),A=f(89586),G=f(61751),k=f(99746),q=f(92529),Bt=f(85334),S=f(55915),_=f(92545),st=f(60853);const it=C.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const Vt=(0,d.c)(),Jt=(0,d.c)();var mt=f(21726);function at(){return(at=(0,z.Z)(function*(t,n,e){const{loadGLTFMesh:r}=yield(0,$.Hl)(f.e(9185).then(f.bind(f,29185)),e),o=yield dt(n,e),s=r(new E.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),o.url,{resolveFile:kt(o),useTransform:!0,signal:(0,l.pC)(e)?e.signal:null});s.then(()=>o.dispose(),()=>o.dispose());const{vertexAttributes:i,components:a}=yield s;t.vertexAttributes=i,t.components=a})).apply(this,arguments)}function kt(t){const n=(0,mt.Yd)(t.url);return e=>{const r=(0,mt.PF)(e,n,n),o=r?r.replace(/^ *\.\//,""):null;return(o?t.files.get(o):null)??e}}function dt(t,n){return lt.apply(this,arguments)}function lt(){return(lt=(0,z.Z)(function*(t,n){return t instanceof Blob?N.fromBlob(t):"string"==typeof t?new N(t):Array.isArray(t)?qt(t,n):_t(t,n)})).apply(this,arguments)}function qt(t,n){return ct.apply(this,arguments)}function ct(){return ct=(0,z.Z)(function*(t,n){const e=new Map;let r=null;const o=yield(0,$.WW)(t.map(function(){var i=(0,z.Z)(function*(a){return{name:a.name,source:yield dt(a instanceof Blob?a:a.source,n)}});return function(a){return i.apply(this,arguments)}}())),s=[];for(const i of o)i&&((0,$.Hc)(n)?i.source.dispose():s.push(i));(0,$.k_)(n);for(const{name:i,source:a}of s)((0,l.Wi)(r)||/\.(gltf|glb)/i.test(i))&&(r=a.url),e.set(i,a.url),a.files&&a.files.forEach((c,u)=>e.set(u,c));if((0,l.Wi)(r))throw new ot.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new N(r,()=>s.forEach(({source:i})=>i.dispose()),e)}),ct.apply(this,arguments)}function _t(t,n){return ft.apply(this,arguments)}function ft(){return ft=(0,z.Z)(function*(t,n){const{default:e}=yield(0,$.Hl)(Promise.resolve().then(f.bind(f,84792)),n),r="string"==typeof t.multipart[0]?yield Promise.all(t.multipart.map(function(){var o=(0,z.Z)(function*(s){return(yield e(s,{responseType:"array-buffer"})).data});return function(s){return o.apply(this,arguments)}}())):t.multipart;return N.fromBlob(new Blob(r))}),ft.apply(this,arguments)}class N{constructor(n,e=(()=>{}),r=new Map){this.url=n,this.dispose=e,this.files=r}static fromBlob(n){const e=URL.createObjectURL(n);return new N(e,()=>URL.revokeObjectURL(e))}}var xt=f(30217),pt=f(550),vt=f(43703),y=f(84161),ut=f(12080),v=f(65231);function yt(t,n){if(t)for(let e=0;e{this.handles.add((0,jt.YP)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(t=>t.clone())}),()=>this._set("external",null),{once:!0,sync:!0}))})}get hasExtent(){return!this.loaded&&(0,l.pC)(this.external)&&(0,l.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get _boundingInfo(){const t=this.vertexAttributes.position,n=this.spatialReference;if(0===t.length||this.components&&0===this.components.length)return{extent:new rt.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:n}),center:new E.Z({x:0,y:0,z:0,spatialReference:n})};const e=(0,l.pC)(this.transform)?this.transform.project(t,n):t;let r=1/0,o=1/0,s=1/0,i=-1/0,a=-1/0,c=-1/0,u=0,p=0,g=0;const m=e.length,h=1/(m/3);let Z=0;for(;Zo.cloneWithDeduplication(e,r))}const n={components:t,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,l.pC)(this.transform)?this.transform.clone():null,external:(0,l.pC)(this.external)?{source:this.external.source,extent:(0,l.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new P(n)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}toBinaryGLTF(t){var n=this;return(0,z.Z)(function*(){const e=f.e(4367).then(f.bind(f,54367)),r=n.load(),o=yield Promise.all([e,r]),{toBinaryGLTF:s}=o[0];return s(n,t)})()}static createBox(t,n){if(!(t instanceof E.Z))return C.Z.getLogger(j).error(".createBox()","expected location to be a Point instance"),null;const e=new P(tt(function se(){const{faceDescriptions:t,faceVertexOffsets:n,uvScales:e}=he,r=4*t.length,o=new Float64Array(3*r),s=new Float32Array(3*r),i=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let c=0,u=0,p=0,g=0;for(let m=0;m=s&&p=4,b=2===h||4===h,L=Z?e-1:e;for(let F=0;F<=L;F++){const O=F/L*2*Math.PI,D=Z?0:.5;x[0]=D*Math.sin(O),x[1]=D*-Math.cos(O),x[2]=h<=2?.5:-.5;for(let J=0;J<3;J++)o[c++]=x[J],s[u++]=I?2===J?h<=1?1:-1:0:2===J?0:x[J]/D;i[p++]=(F+(Z?.5:0))/e,i[p++]=h<=1?1*h/3:h<=3?1*(h-2)/3+1/3:1*(h-4)/3+2/3,b||0===h||F===e||(5!==h&&(a[g++]=m,a[g++]=m+1,a[g++]=m-e),1!==h&&(a[g++]=m,a[g++]=m-e,a[g++]=m-e-1)),m++}}return{position:o,normal:s,uv:i,faces:a}}(n&&n.densificationFactor||0),t,n)):(C.Z.getLogger(j).error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,n){if(!(t instanceof E.Z))return C.Z.getLogger(j).error(".createPlane()","expected location to be a Point instance"),null;const e=n?.facing??"up",r=function ce(t,n){const e="number"==typeof n?n:null!=n?n.width:1,r="number"==typeof n?n:null!=n?n.height:1;switch(t){case"up":case"down":return{width:e,depth:r};case"north":case"south":return{width:e,height:r};case"east":case"west":return{depth:e,height:r}}}(e,n?.size);return new P(tt(function fe(t){const n=Q.facingAxisOrderSwap[t],e=Q.position,r=Q.normal,o=new Float64Array(e.length),s=new Float32Array(r.length);let i=0;for(let a=0;a<4;a++){const c=i;for(let u=0;u<3;u++){const p=n[u],g=Math.abs(p)-1,m=p>=0?1:-1;o[i]=e[c+g]*m,s[i]=r[c+g]*m,i++}}return{position:o,normal:s,uv:new Float32Array(Q.uv),faces:new Uint32Array(Q.faces),isPlane:!0}}(e),t,{...n,size:r}))}static createFromPolygon(t,n){if(!(t instanceof Nt.Z))return C.Z.getLogger(j).error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const e=(0,Bt.bT)(t);return new P({vertexAttributes:new q.Q({position:e.position}),components:[new G.Z({faces:e.faces,shading:"flat",material:n?.material??null})],spatialReference:t.spatialReference})}static createFromGLTF(t,n,e){return(0,z.Z)(function*(){if(!(t instanceof E.Z))throw C.Z.getLogger(j).error(".createfromGLTF()","expected location to be a Point instance"),new ot.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:r}=yield(0,$.Hl)(f.e(9185).then(f.bind(f,29185)),e);return new P(yield r(t,n,e))})()}static createWithExternalSource(t,n,e){const r=e?.extent??null,o=e?.transform?.clone()??new k.Z;return o.origin=[t.x,t.y,t.z??0],new P({external:{source:n,extent:r},transform:o,spatialReference:t.spatialReference})}static createIncomplete(t,n){const e=n?.transform?.clone()??new k.Z;e.origin=[t.x,t.y,t.z??0];const o=new P({transform:e,spatialReference:t.spatialReference});return o.addResolvingPromise(Promise.reject(new ot.Z("mesh-incomplete","Mesh resources are not complete"))),o}};(0,M._)([(0,R.Cb)({type:[G.Z],json:{write:!0}})],w.prototype,"components",void 0),(0,M._)([(0,R.Cb)({type:k.Z,json:{write:!0}})],w.prototype,"transform",void 0),(0,M._)([(0,R.Cb)({constructOnly:!0})],w.prototype,"external",void 0),(0,M._)([(0,R.Cb)({readOnly:!0})],w.prototype,"hasExtent",null),(0,M._)([(0,R.Cb)({readOnly:!0})],w.prototype,"_boundingInfo",null),(0,M._)([(0,R.Cb)({readOnly:!0})],w.prototype,"anchor",null),(0,M._)([(0,R.Cb)({readOnly:!0})],w.prototype,"origin",null),(0,M._)([(0,R.Cb)({readOnly:!0,json:{read:!1}})],w.prototype,"extent",null),(0,M._)([(0,R.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],w.prototype,"hasZ",void 0),(0,M._)([(0,R.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],w.prototype,"hasM",void 0),(0,M._)([(0,R.Cb)({type:q.Q,nonNullable:!0,json:{write:!0}})],w.prototype,"vertexAttributes",void 0),w=P=(0,M._)([(0,$t.j)(j)],w);const ht={x:(0,d.f)(1,0,0),y:(0,d.f)(0,1,0),z:(0,d.f)(0,0,1)},V=(0,A.Ue)(),Et=(0,A.Ue)(),St=(0,A.Ue)(),nt=(0,d.c)(),It=w;var U,t,Ze=f(17253);function Fe(t,n,e){const r=e.features;e.features=[],delete e.geometryType;const o=Ze.default.fromJSON(e);if(o.geometryType="mesh",!e.assetMaps)return o;const s=function Oe(t,n){const e=new Map;for(const r of n){const o=r.parentGlobalId;if(null==o)continue;const s=r.assetName,i=r.assetURL,a=r.conversionStatus;let c=e.get(o);if(null!=c)throw new Error("multiple asset parts not expected.");switch(c={name:s,status:U.FAILED,url:i,geographic:Ee(r.flags).projectVertices},e.set(o,c),a){case"COMPLETED":case"SUBMITTED":c.status=U.COMPLETED;break;case"INPROGRESS":c.status=U.PENDING;break;default:c.status=U.FAILED}}return e}(0,e.assetMaps),i=o.spatialReference,a=e.globalIdFieldName,c=(0,l.Wi)(t.outFields)||!t.outFields.length?()=>({}):function Me(t){return({attributes:n})=>{if(!n)return{};if(!t)return n;for(const e in n)t.has(e)||delete n[e];return n}}(t.outFields.includes("*")?null:new Set(t.outFields));for(const u of r){const p=Re(u,a,i,n,s);(0,l.pC)(p)&&o.features.push(new zt.Z({geometry:p,attributes:c(u)}))}return o}function Re(t,n,e,r,o){const i=o.get(t.attributes[n]);if(null==i||i.status===U.FAILED||null==i.url)return null;const a=function Pe({attributes:t},n,{transformFieldRoles:e}){return new E.Z({x:t[e.originX],y:t[e.originY],z:t[e.originZ],spatialReference:n})}(t,e,r),c=rt.Z.fromJSON(t.geometry);c.spatialReference=e;const u=function Le(t,{transformFieldRoles:n},e){return new k.Z({translation:[t[n.translationX],t[n.translationY],t[n.translationZ]],rotation:(0,A.uT)([t[n.rotationX],t[n.rotationY],t[n.rotationZ]],t[n.rotationDeg]),scale:[t[n.scaleX],t[n.scaleY],t[n.scaleZ]],geographic:e})}(t.attributes,r,i.geographic);return i.status===U.PENDING?It.createIncomplete(a,{extent:c,transform:u}):It.createWithExternalSource(a,[{name:i.name,source:i.url}],{extent:c,transform:u})}function Ee(t){return{projectVertices:t.includes("PROJECT_VERTICES")}}(t=U||(U={}))[t.FAILED=0]="FAILED",t[t.PENDING=1]="PENDING",t[t.COMPLETED=2]="COMPLETED"}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2479.765680f3b83845c0.js b/apps/n/porrtal-io-app/public/angular/2479.765680f3b83845c0.js deleted file mode 100644 index c232ad41..00000000 --- a/apps/n/porrtal-io-app/public/angular/2479.765680f3b83845c0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2479],{62479:(p,u,o)=>{o.r(u),o.d(u,{d:()=>h});var l,c,e,d=o(1719),t={exports:{}};l=t,void 0!==(e=t.exports,Object.defineProperty(e,"__esModule",{value:!0}),c=void(e.default={_decimalSeparator:".",_thousandSeparator:"'",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"K",_big_number_suffix_6:"Mio",_big_number_suffix_9:"Mrd",_big_number_suffix_12:"Bio",_big_number_suffix_15:"Brd",_big_number_suffix_18:"Trill",_big_number_suffix_21:"Trd",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd. MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"v. Chr.",_era_bc:"n. Chr.",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Januar",February:"Februar",March:"M\xe4rz",April:"April",May:"Mai",June:"Juni",July:"Juli",August:"August",September:"September",October:"Oktober",November:"November",December:"Dezember",Jan:"Jan.",Feb:"Febr.",Mar:"M\xe4rz",Apr:"Apr.","May(short)":"Mai",Jun:"Juni",Jul:"Juli",Aug:"Aug.",Sep:"Sept.",Oct:"Okt.",Nov:"Nov.",Dec:"Dez.",Sunday:"Sonntag",Monday:"Montag",Tuesday:"Dienstag",Wednesday:"Mittwoch",Thursday:"Donnerstag",Friday:"Freitag",Saturday:"Samstag",Sun:"So.",Mon:"Mo.",Tue:"Di.",Wed:"Mi.",Thu:"Do.",Fri:"Fr.",Sat:"Sa.",_dateOrd:function(r){return r+"."},"Zoom Out":"Herauszoomen",Play:"Abspielen",Stop:"Stop",Legend:"Legende","Click, tap or press ENTER to toggle":"Klicken, tippen oder ENTER dr\xfccken zum Umschalten",Loading:"Wird geladen",Home:"Home",Chart:"Diagramm","Serial chart":"Seriendiagramm","X/Y chart":"X-Y-Diagramm","Pie chart":"Kreisdiagramm","Gauge chart":"Messdiagramm","Radar chart":"Netzdiagramm","Sankey diagram":"Sankey-Diagramm","Chord diagram":"","Flow diagram":"Flussdiagramm","TreeMap chart":"Baumdiagramm",Series:"Serie","Candlestick Series":"Kerzendiagramm","Column Series":"Balkendiagramm","Line Series":"Liniendiagramm","Pie Slice Series":"Kreisdiagramm","X/Y Series":"Punktdiagramm",Map:"Karte","Press ENTER to zoom in":"Dr\xfccke ENTER zum Hereinzoomen","Press ENTER to zoom out":"Dr\xfccke ENTER zum Herauszoomen","Use arrow keys to zoom in and out":"Benutze die Pfeiltasten zum Zoomen","Use plus and minus keys on your keyboard to zoom in and out":"Benutze Plus- und Minustasten zum Zoomen",Export:"Export",Image:"Bild",Data:"Daten",Print:"Drucken","Click, tap or press ENTER to open":"Zum \xd6ffnen klicken, tippen oder ENTER dr\xfccken","Click, tap or press ENTER to print.":"Zum Drucken klicken, tippen oder ENTER dr\xfccken.","Click, tap or press ENTER to export as %1.":"Klicken, tippen oder ENTER dr\xfccken um als %1 zu exportieren",'To save the image, right-click this link and choose "Save picture as..."':'Um das Bild zu speichern, Rechtsklicken und "Bild speichern unter ..." ausw\xe4hlen','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Um das Bild zu speichern, Rechtsklick auf das Vorschaubild links und "Bild speichern unter ..." ausw\xe4hlen',"(Press ESC to close this message)":"ESC dr\xfccken um diese Nachricht zu schlie\xdfen","Image Export Complete":"Bildexport komplett","Export operation took longer than expected. Something might have gone wrong.":"Der Export dauert l\xe4nger als geplant. Vielleicht ist etwas schiefgelaufen.","Saved from":"Gespeichert von",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"TAB nutzen, um Ankerpunkte auszuw\xe4hlen oder linke und rechte Pfeiltaste um die Auswahl zu \xe4ndern","Use left and right arrows to move selection":"Linke und rechte Pfeiltaste nutzen um die Auswahl zu verschieben","Use left and right arrows to move left selection":"Linke und rechte Pfeiltaste nutzen um die linke Auswahl zu verschieben","Use left and right arrows to move right selection":"Linke und rechte Pfeiltaste nutzen um die rechte Auswahl zu verschieben","Use TAB select grip buttons or up and down arrows to change selection":"TAB nutzen, um Ankerpunkte auszuw\xe4hlen oder Pfeiltaste nach oben und unten dr\xfccken, um die Auswahl zu \xe4ndern","Use up and down arrows to move selection":"Pfeiltaste nach oben und unten dr\xfccken, um die Auswahl zu verschieben","Use up and down arrows to move lower selection":"Pfeiltaste nach oben und unten dr\xfccken, um die untere Auswahl zu verschieben","Use up and down arrows to move upper selection":"Pfeiltaste nach oben und unten dr\xfccken, um die obere Auswahl zu verschieben","From %1 to %2":"Von %1 bis %2","From %1":"Von %1","To %1":"Bis %1","No parser available for file: %1":"Kein Parser f\xfcr Datei %1 verf\xfcgbar","Error parsing file: %1":"Fehler beim Parsen von Datei %1","Unable to load file: %1":"Datei %1 konnte nicht geladen werden","Invalid date":"Kein Datum"}))&&(l.exports=c);const h=function f(i,e){for(var r=0;rn[a]})}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2480.80f5a409f9e825e4.js b/apps/n/porrtal-io-app/public/angular/2480.80f5a409f9e825e4.js deleted file mode 100644 index 74d4d4db..00000000 --- a/apps/n/porrtal-io-app/public/angular/2480.80f5a409f9e825e4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2480],{82480:(ge,z,I)=>{I.r(z),I.d(z,{registerFunctions:()=>pe});var O=I(15861),j=I(37780),N=I(6729),u=I(25919),ae=I(42275),J=I(90512),w=I(85171),ie=I(98362),r=I(47562),g=I(52724),k=I(53997),se=I(95896),le=I(79429),oe=I(62074),ue=I(16776),fe=I(57366),W=I(77132),Q=I(83947),$=I(50818),ce=I(10699),F=I(10410),H=I(80415),S=I(36255);function V(s,t,i){return Z.apply(this,arguments)}function Z(){return(Z=(0,O.Z)(function*(s,t,i){const y=s.getVariables();if(y.length>0){const h=[];for(let e=0;e0&&(_=(0,w.getPortal)(e[0],_));const l=yield(0,w.lookupUser)(_,a,f);if(l){const n=JSON.parse(JSON.stringify(l));for(const o of["lastLogin","created","modified"])null!=n[o]&&(n[o]=new Date(n[o]));return N.Z.convertObjectToArcadeDictionary(n)}return null}let p=null;if((0,r.T)(e[0])&&(p=e[0]),p){if(f=!1,a)return null;yield p.load();const _=yield p.getOwningSystemUrl();if(!_){if(!a){const o=yield p.getIdentityUser();return o?N.Z.convertObjectToArcadeDictionary({username:o}):null}return null}let l=null;t.services&&t.services.portal&&(l=t.services.portal),l=(0,w.getPortal)(new j.Z(_),l);const n=yield(0,w.lookupUser)(l,a,f);if(n){const o=JSON.parse(JSON.stringify(n));for(const d of["lastLogin","created","modified"])null!=o[d]&&(o[d]=new Date(o[d]));return N.Z.convertObjectToArcadeDictionary(o)}return null}throw new u.aV(t,u.rH.InvalidParameter,i)});return function(h,c,e){return y.apply(this,arguments)}}())},s.signatures.push({name:"getuser",min:1,max:2}),s.functions.featuresetbyid=function(t,i){return s.standardFunctionAsync(t,i,(y,h,c)=>{if((0,r.y)(c,2,4,t,i),c[0]instanceof J.Z){const e=(0,r.j)(c[1]);let a=(0,r.A)(c[2],null);const f=(0,r.h)((0,r.A)(c[3],!0));if(null===a&&(a=["*"]),!1===(0,r.m)(a))throw new u.aV(t,u.rH.InvalidParameter,i);return c[0].featureSetById(e,f,a)}throw new u.aV(t,u.rH.InvalidParameter,i)})},s.signatures.push({name:"featuresetbyid",min:2,max:4}),s.functions.getfeatureset=function(t,i){return s.standardFunctionAsync(t,i,(y,h,c)=>{if((0,r.y)(c,1,2,t,i),(0,r.w)(c[0])){let e=(0,r.A)(c[1],"datasource");return null===e&&(e="datasource"),e=(0,r.j)(e).toLowerCase(),(0,w.convertToFeatureSet)(c[0].fullSchema(),e,t.lrucache,t.interceptor,t.spatialReference)}throw new u.aV(t,u.rH.InvalidParameter,i)})},s.signatures.push({name:"getfeatureset",min:1,max:2}),s.functions.featuresetbyportalitem=function(t,i){return s.standardFunctionAsync(t,i,(y,h,c)=>{if((0,r.y)(c,2,5,t,i),null===c[0])throw new u.aV(t,u.rH.PortalRequired,i);if(c[0]instanceof j.Z){const _=(0,r.j)(c[1]),l=(0,r.j)(c[2]);let n=(0,r.A)(c[3],null);const o=(0,r.h)((0,r.A)(c[4],!0));if(null===n&&(n=["*"]),!1===(0,r.m)(n))throw new u.aV(t,u.rH.InvalidParameter,i);let d=null;return t.services&&t.services.portal&&(d=t.services.portal),d=(0,w.getPortal)(c[0],d),(0,w.constructFeatureSetFromPortalItem)(_,l,t.spatialReference,n,o,d,t.lrucache,t.interceptor)}if(!1===(0,r.c)(c[0]))throw new u.aV(t,u.rH.PortalRequired,i);const e=(0,r.j)(c[0]),a=(0,r.j)(c[1]);let f=(0,r.A)(c[2],null);const p=(0,r.h)((0,r.A)(c[3],!0));if(null===f&&(f=["*"]),!1===(0,r.m)(f))throw new u.aV(t,u.rH.InvalidParameter,i);if(t.services&&t.services.portal)return(0,w.constructFeatureSetFromPortalItem)(e,a,t.spatialReference,f,p,t.services.portal,t.lrucache,t.interceptor);throw new u.aV(t,u.rH.PortalRequired,i)})},s.signatures.push({name:"featuresetbyportalitem",min:2,max:5}),s.functions.featuresetbyname=function(t,i){return s.standardFunctionAsync(t,i,(y,h,c)=>{if((0,r.y)(c,2,4,t,i),c[0]instanceof J.Z){const e=(0,r.j)(c[1]);let a=(0,r.A)(c[2],null);const f=(0,r.h)((0,r.A)(c[3],!0));if(null===a&&(a=["*"]),!1===(0,r.m)(a))throw new u.aV(t,u.rH.InvalidParameter,i);return c[0].featureSetByName(e,f,a)}throw new u.aV(t,u.rH.InvalidParameter,i)})},s.signatures.push({name:"featuresetbyname",min:2,max:4}),s.functions.featureset=function(t,i){return s.standardFunction(t,i,(y,h,c)=>{(0,r.y)(c,1,1,t,i);let e=c[0];const a={layerDefinition:{geometryType:"",objectIdField:"",globalIdField:"",typeIdField:"",fields:[]},featureSet:{geometryType:"",features:[]}};if((0,r.c)(e))e=JSON.parse(e),void 0!==e.layerDefinition?(a.layerDefinition=e.layerDefinition,a.featureSet=e.featureSet,e.layerDefinition.spatialReference&&(a.layerDefinition.spatialReference=e.layerDefinition.spatialReference)):(a.featureSet.features=e.features,a.featureSet.geometryType=e.geometryType,a.layerDefinition.geometryType=a.featureSet.geometryType,a.layerDefinition.objectIdField=e.objectIdFieldName,a.layerDefinition.typeIdField=e.typeIdFieldName,a.layerDefinition.globalIdField=e.globalIdFieldName,a.layerDefinition.fields=e.fields,e.spatialReference&&(a.layerDefinition.spatialReference=e.spatialReference));else{if(!(c[0]instanceof N.Z))throw new u.aV(t,u.rH.InvalidParameter,i);{e=JSON.parse(c[0].castToText(!0));const f=m(e,"layerdefinition");if(null!==f){a.layerDefinition.geometryType=m(f,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.globalIdField=m(f,"globalidfield",""),a.layerDefinition.objectIdField=m(f,"objectidfield",""),a.layerDefinition.typeIdField=m(f,"typeidfield","");const p=m(f,"spatialreference",null);p&&(a.layerDefinition.spatialReference=U(p));for(const l of m(f,"fields",[])){const n={name:m(l,"name",""),alias:m(l,"alias",""),type:m(l,"type",""),nullable:m(l,"nullable",!0),editable:m(l,"editable",!0),length:m(l,"length",null),domain:Y(m(l,"domain"))};a.layerDefinition.fields.push(n)}const _=m(e,"featureset",null);if(_){const l={};for(const n of a.layerDefinition.fields)l[n.name.toLowerCase()]=n.name;for(const n of m(_,"features",[])){const o={},d=m(n,"attributes",{});for(const P in d)o[l[P.toLowerCase()]]=d[P];a.featureSet.features.push({attributes:o,geometry:q(m(n,"geometry",null))})}}}else{a.layerDefinition.geometryType=m(e,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.objectIdField=m(e,"objectidfieldname",""),a.layerDefinition.typeIdField=m(e,"typeidfieldname","");const p=m(e,"spatialreference",null);p&&(a.layerDefinition.spatialReference=U(p));for(const l of m(e,"fields",[])){const n={name:m(l,"name",""),alias:m(l,"alias",""),type:m(l,"type",""),nullable:m(l,"nullable",!0),editable:m(l,"editable",!0),length:m(l,"length",null),domain:Y(m(l,"domain"))};a.layerDefinition.fields.push(n)}const _={};for(const l of a.layerDefinition.fields)_[l.name.toLowerCase()]=l.name;for(const l of m(e,"features",[])){const n={},o=m(l,"attributes",{});for(const d in o)n[_[d.toLowerCase()]]=o[d];a.featureSet.features.push({attributes:n,geometry:q(m(l,"geometry",null))})}}}}if(!1===function ye(s){return!!s.layerDefinition&&!!s.featureSet&&!1!==function me(s,t){for(const i of t)if(i===s)return!0;return!1}(s.layerDefinition.geometryType,["","esriGeometryPoint","esriGeometryPolyline","esriGeometryPolygon","esriGeometryMultipoint","esriGeometryEnvelope"])&&null!==s.layerDefinition.objectIdField&&""!==s.layerDefinition.objectIdField&&!1!==(0,r.m)(s.layerDefinition.fields)&&!1!==(0,r.m)(s.featureSet.features)}(a))throw new u.aV(t,u.rH.InvalidParameter,i);return ue.Z.create(a,t.spatialReference)})},s.signatures.push({name:"featureset",min:1,max:1}),s.functions.filter=function(t,i){return s.standardFunctionAsync(t,i,function(){var y=(0,O.Z)(function*(h,c,e){if((0,r.y)(e,2,2,t,i),(0,r.m)(e[0])||(0,r.x)(e[0])){const a=[];let f=e[0];f instanceof ie.Z&&(f=f.toArray());let p=null;if(!(0,r.i)(e[1]))throw new u.aV(t,u.rH.InvalidParameter,i);p=e[1].createFunction(t);for(const _ of f){const l=p(_);(0,ce.y8)(l)?!0===(yield l)&&a.push(_):!0===l&&a.push(_)}return a}if((0,r.T)(e[0])){const a=yield e[0].load(),f=F.WhereClause.create(e[1],a.getFieldsIndex()),p=f.getVariables();if(p.length>0){const _=[];for(let n=0;n=e[0].length?e[0].slice(0):e[0].slice(0,(0,r.g)(e[1]));if((0,r.x)(e[0]))return(0,r.g)(e[1])>=e[0].length()?e[0].slice(0):e[0].slice(0,(0,r.g)(e[1]));throw new u.aV(t,u.rH.InvalidParameter,i)});return function(h,c,e){return y.apply(this,arguments)}}())},s.signatures.push({name:"top",min:2,max:2}),s.functions.first=function(t,i){return s.standardFunctionAsync(t,i,function(){var y=(0,O.Z)(function*(h,c,e){if((0,r.y)(e,1,1,t,i),(0,r.T)(e[0])){const a=yield e[0].first(h.abortSignal);if(null!==a){const f=ae.Z.createFromGraphicLikeObject(a.geometry,a.attributes,e[0]);return f._underlyingGraphic=a,f}return a}return(0,r.m)(e[0])?0===e[0].length?null:e[0][0]:(0,r.x)(e[0])?0===e[0].length()?null:e[0].get(0):null});return function(h,c,e){return y.apply(this,arguments)}}())},s.signatures.push({name:"first",min:1,max:1}),s.functions.attachments=function(t,i){return s.standardFunctionAsync(t,i,function(){var y=(0,O.Z)(function*(h,c,e){(0,r.y)(e,1,2,t,i);const a={minsize:-1,maxsize:-1,types:null,returnMetadata:!1};if(e.length>1)if(e[1]instanceof N.Z){if(e[1].hasField("minsize")&&(a.minsize=(0,r.g)(e[1].field("minsize"))),e[1].hasField("metadata")&&(a.returnMetadata=(0,r.h)(e[1].field("metadata"))),e[1].hasField("maxsize")&&(a.maxsize=(0,r.g)(e[1].field("maxsize"))),e[1].hasField("types")){const f=(0,r.X)(e[1].field("types"),!1);f.length>0&&(a.types=f)}}else if(null!==e[1])throw new u.aV(t,u.rH.InvalidParameter,i);if((0,r.w)(e[0])){let f=e[0]._layer;return f instanceof H.default&&(f=(0,w.constructFeatureSet)(f,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)),null===f||!1===(0,r.T)(f)?[]:(yield f.load(),f.queryAttachments(e[0].field(f.objectIdField),a.minsize,a.maxsize,a.types,a.returnMetadata))}if(null===e[0])return[];throw new u.aV(t,u.rH.InvalidParameter,i)});return function(h,c,e){return y.apply(this,arguments)}}())},s.signatures.push({name:"attachments",min:1,max:2}),s.functions.featuresetbyrelationshipname=function(t,i){return s.standardFunctionAsync(t,i,function(){var y=(0,O.Z)(function*(h,c,e){(0,r.y)(e,2,4,t,i);const a=e[0],f=(0,r.j)(e[1]);let p=(0,r.A)(e[2],null);const _=(0,r.h)((0,r.A)(e[3],!0));if(null===p&&(p=["*"]),!1===(0,r.m)(p))throw new u.aV(t,u.rH.InvalidParameter,i);if(null===e[0])return null;if(!(0,r.w)(e[0]))throw new u.aV(t,u.rH.InvalidParameter,i);let l=a._layer;if(l instanceof H.default&&(l=(0,w.constructFeatureSet)(l,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)),null===l||!1===(0,r.T)(l))return null;l=yield l.load();const n=l.relationshipMetaData().filter(x=>x.name===f);if(0===n.length)return null;if(null!=n[0].relationshipTableId&&n[0].relationshipTableId>-1)return(0,w.constructFeatureSetFromRelationship)(l,n[0],a.field(l.objectIdField),l.spatialReference,p,_,t.lrucache,t.interceptor);let o=l.serviceUrl();if(!o)return null;o="/"===o.charAt(o.length-1)?o+n[0].relatedTableId.toString():o+"/"+n[0].relatedTableId.toString();const d=yield(0,w.constructFeatureSetFromUrl)(o,l.spatialReference,p,_,t.lrucache,t.interceptor);yield d.load();let P=d.relationshipMetaData();if(P=P.filter(x=>x.id===n[0].id),!1===a.hasField(n[0].keyField)||null===a.field(n[0].keyField)){const x=yield l.getFeatureByObjectId(a.field(l.objectIdField),[n[0].keyField]);if(x){const A=F.WhereClause.create(P[0].keyField+"= @id",d.getFieldsIndex());return A.parameters={id:x.attributes[n[0].keyField]},d.filter(A)}return new oe.Z({parentfeatureset:d})}const v=F.WhereClause.create(P[0].keyField+"= @id",d.getFieldsIndex());return v.parameters={id:a.field(n[0].keyField)},d.filter(v)});return function(h,c,e){return y.apply(this,arguments)}}())},s.signatures.push({name:"featuresetbyrelationshipname",min:2,max:4}),s.functions.featuresetbyassociation=function(t,i){return s.standardFunctionAsync(t,i,function(){var y=(0,O.Z)(function*(h,c,e){(0,r.y)(e,2,3,t,i);const a=e[0],f=(0,r.j)((0,r.A)(e[1],"")).toLowerCase(),p=(0,r.c)(e[2])?(0,r.j)(e[2]):null;if(null===e[0])return null;if(!(0,r.w)(e[0]))throw new u.aV(t,u.rH.InvalidParameter,i);let _=a._layer;if(_ instanceof H.default&&(_=(0,w.constructFeatureSet)(_,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)),null===_||!1===(0,r.T)(_))return null;yield _.load();const l=_.serviceUrl(),n=yield(0,w.constructAssociationMetaDataFeatureSetFromUrl)(l,t.spatialReference);let o=null,d=null,P=!1;if(null!==p&&""!==p&&void 0!==p){for(const D of n.terminals)D.terminalName===p&&(d=D.terminalId);null===d&&(P=!0)}const v=n.associations.getFieldsIndex(),x=v.get("TOGLOBALID").name,A=v.get("FROMGLOBALID").name,B=v.get("TOTERMINALID").name,K=v.get("FROMTERMINALID").name,R=v.get("FROMNETWORKSOURCEID").name,b=v.get("TONETWORKSOURCEID").name,M=v.get("ASSOCIATIONTYPE").name,_e=v.get("ISCONTENTVISIBLE").name,he=v.get("OBJECTID").name;for(const D of _.fields)if("global-id"===D.type){o=a.field(D.name);break}let L=null,G=new g.yN(new S.Z({name:"percentalong",alias:"percentalong",type:"double"}),F.WhereClause.create("0",n.associations.getFieldsIndex())),ee=new g.yN(new S.Z({name:"side",alias:"side",type:"string"}),F.WhereClause.create("''",n.associations.getFieldsIndex()));const T="globalid",te="globalId",ne={};for(const D in n.lkp)ne[D]=n.lkp[D].sourceId;const C=new g.TO(new S.Z({name:"classname",alias:"classname",type:"string"}),null,ne);let E="";switch(f){case"midspan":{E=`((${x}='${o}') OR ( ${A}='${o}')) AND (${M} IN (5))`,C.codefield=F.WhereClause.create(`CASE WHEN (${x}='${o}') THEN ${R} ELSE ${b} END`,n.associations.getFieldsIndex());const D=(0,W.JW)(g.Xx.findField(n.associations.fields,A));D.name=T,D.alias=T,L=new g.yN(D,F.WhereClause.create(`CASE WHEN (${A}='${o}') THEN ${x} ELSE ${A} END`,n.associations.getFieldsIndex())),G=n.unVersion>=4?new g.$X(g.Xx.findField(n.associations.fields,v.get("PERCENTALONG").name)):new g.yN(new S.Z({name:"percentalong",alias:"percentalong",type:"double"}),F.WhereClause.create("0",n.associations.getFieldsIndex()));break}case"junctionedge":{E=`((${x}='${o}') OR ( ${A}='${o}')) AND (${M} IN (4,6))`,C.codefield=F.WhereClause.create(`CASE WHEN (${x}='${o}') THEN ${R} ELSE ${b} END`,n.associations.getFieldsIndex());const D=(0,W.JW)(g.Xx.findField(n.associations.fields,A));D.name=T,D.alias=T,L=new g.yN(D,F.WhereClause.create(`CASE WHEN (${A}='${o}') THEN ${x} ELSE ${A} END`,n.associations.getFieldsIndex())),ee=new g.yN(new S.Z({name:"side",alias:"side",type:"string"}),F.WhereClause.create(`CASE WHEN (${M}=4) THEN 'from' ELSE 'to' END`,n.associations.getFieldsIndex()));break}case"connected":{let D=`${x}='@T'`,re=`${A}='@T'`;null!==d&&(D+=` AND ${B}=@A`,re+=` AND ${K}=@A`),E="(("+D+") OR ("+re+"))",E=(0,r.L)(E,"@T",o??""),D=(0,r.L)(D,"@T",o??""),null!==d&&(D=(0,r.L)(D,"@A",d.toString()),E=(0,r.L)(E,"@A",d.toString())),C.codefield=F.WhereClause.create("CASE WHEN "+D+` THEN ${R} ELSE ${b} END`,n.associations.getFieldsIndex());const X=(0,W.JW)(g.Xx.findField(n.associations.fields,A));X.name=T,X.alias=T,L=new g.yN(X,F.WhereClause.create("CASE WHEN "+D+` THEN ${A} ELSE ${x} END`,n.associations.getFieldsIndex()));break}case"container":E=`${x}='${o}' AND ${M} = 2`,null!==d&&(E+=` AND ${B} = `+d.toString()),C.codefield=R,E="( "+E+" )",L=new g.QP(g.Xx.findField(n.associations.fields,A),T,T);case"content":E=`(${A}='${o}' AND ${M} = 2)`,null!==d&&(E+=` AND ${K} = `+d.toString()),C.codefield=b,E="( "+E+" )",L=new g.QP(g.Xx.findField(n.associations.fields,x),T,T);break;case"structure":E=`(${x}='${o}' AND ${M} = 3)`,null!==d&&(E+=` AND ${B} = `+d.toString()),C.codefield=R,E="( "+E+" )",L=new g.QP(g.Xx.findField(n.associations.fields,A),T,te);break;case"attached":E=`(${A}='${o}' AND ${M} = 3)`,null!==d&&(E+=` AND ${K} = `+d.toString()),C.codefield=b,E="( "+E+" )",L=new g.QP(g.Xx.findField(n.associations.fields,x),T,te);break;default:throw new u.aV(t,u.rH.InvalidParameter,i)}return P&&(E="1 <> 1"),new g.Xx({parentfeatureset:n.associations,adaptedFields:[new g.$X(g.Xx.findField(n.associations.fields,he)),new g.$X(g.Xx.findField(n.associations.fields,_e)),L,ee,C,G],extraFilter:E?F.WhereClause.create(E,n.associations.getFieldsIndex()):null})});return function(h,c,e){return y.apply(this,arguments)}}())},s.signatures.push({name:"featuresetbyassociation",min:2,max:6}),s.functions.groupby=function(t,i){return s.standardFunctionAsync(t,i,function(){var y=(0,O.Z)(function*(h,c,e){if((0,r.y)(e,3,3,t,i),!(0,r.T)(e[0]))throw new u.aV(t,u.rH.InvalidParameter,i);const a=yield e[0].load(),f=[],p=[];let _=!1,l=[];if((0,r.c)(e[1]))l.push(e[1]);else if(e[1]instanceof N.Z)l.push(e[1]);else if((0,r.m)(e[1]))l=e[1];else{if(!(0,r.x)(e[1]))throw new u.aV(t,u.rH.InvalidParameter,i);l=e[1].toArray()}for(const n of l)if((0,r.c)(n)){const o=F.WhereClause.create((0,r.j)(n),a.getFieldsIndex()),d=!0===(0,Q.y5)(o)?(0,r.j)(n):"%%%%FIELDNAME";f.push({name:d,expression:o}),"%%%%FIELDNAME"===d&&(_=!0)}else{if(!(n instanceof N.Z))throw new u.aV(t,u.rH.InvalidParameter,i);{const o=n.hasField("name")?n.field("name"):"%%%%FIELDNAME",d=n.hasField("expression")?n.field("expression"):"";if("%%%%FIELDNAME"===o&&(_=!0),!o)throw new u.aV(t,u.rH.InvalidParameter,i);f.push({name:o,expression:F.WhereClause.create(d||o,a.getFieldsIndex())})}}if(l=[],(0,r.c)(e[2]))l.push(e[2]);else if((0,r.m)(e[2]))l=e[2];else if((0,r.x)(e[2]))l=e[2].toArray();else{if(!(e[2]instanceof N.Z))throw new u.aV(t,u.rH.InvalidParameter,i);l.push(e[2])}for(const n of l){if(!(n instanceof N.Z))throw new u.aV(t,u.rH.InvalidParameter,i);{const o=n.hasField("name")?n.field("name"):"",d=n.hasField("statistic")?n.field("statistic"):"",P=n.hasField("expression")?n.field("expression"):"";if(!o||!d||!P)throw new u.aV(t,u.rH.InvalidParameter,i);p.push({name:o,statistic:d.toLowerCase(),expression:F.WhereClause.create(P,a.getFieldsIndex())})}}if(_){const n={};for(const d of a.fields)n[d.name.toLowerCase()]=1;for(const d of f)"%%%%FIELDNAME"!==d.name&&(n[d.name.toLowerCase()]=1);for(const d of p)"%%%%FIELDNAME"!==d.name&&(n[d.name.toLowerCase()]=1);let o=0;for(const d of f)if("%%%%FIELDNAME"===d.name){for(;1===n["field_"+o.toString()];)o++;n["field_"+o.toString()]=1,d.name="FIELD_"+o.toString()}}for(const n of f)yield V(n.expression,s,t);for(const n of p)yield V(n.expression,s,t);return e[0].groupby(f,p)});return function(h,c,e){return y.apply(this,arguments)}}())},s.signatures.push({name:"groupby",min:3,max:3}),s.functions.distinct=function(t,i){return s.standardFunctionAsync(t,i,function(){var y=(0,O.Z)(function*(h,c,e){if((0,r.T)(e[0])){(0,r.y)(e,2,2,t,i);const a=yield e[0].load(),f=[];let p=[];if((0,r.c)(e[1]))p.push(e[1]);else if(e[1]instanceof N.Z)p.push(e[1]);else if((0,r.m)(e[1]))p=e[1];else{if(!(0,r.x)(e[1]))throw new u.aV(t,u.rH.InvalidParameter,i);p=e[1].toArray()}let _=!1;for(const l of p)if((0,r.c)(l)){const n=F.WhereClause.create((0,r.j)(l),a.getFieldsIndex()),o=!0===(0,Q.y5)(n)?(0,r.j)(l):"%%%%FIELDNAME";f.push({name:o,expression:n}),"%%%%FIELDNAME"===o&&(_=!0)}else{if(!(l instanceof N.Z))throw new u.aV(t,u.rH.InvalidParameter,i);{const n=l.hasField("name")?l.field("name"):"%%%%FIELDNAME",o=l.hasField("expression")?l.field("expression"):"";if("%%%%FIELDNAME"===n&&(_=!0),!n)throw new u.aV(t,u.rH.InvalidParameter,i);f.push({name:n,expression:F.WhereClause.create(o||n,a.getFieldsIndex())})}}if(_){const l={};for(const o of a.fields)l[o.name.toLowerCase()]=1;for(const o of f)"%%%%FIELDNAME"!==o.name&&(l[o.name.toLowerCase()]=1);let n=0;for(const o of f)if("%%%%FIELDNAME"===o.name){for(;1===l["field_"+n.toString()];)n++;l["field_"+n.toString()]=1,o.name="FIELD_"+n.toString()}}for(const l of f)yield V(l.expression,s,t);return e[0].groupby(f,[])}return function de(s,t,i,y){if(1===y.length){if((0,r.m)(y[0]))return(0,$.t)(s,y[0],-1);if((0,r.x)(y[0]))return(0,$.t)(s,y[0].toArray(),-1)}return(0,$.t)(s,y,-1)}("distinct",0,0,e)});return function(h,c,e){return y.apply(this,arguments)}}())})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2493.6a6a1a171b1585e5.js b/apps/n/porrtal-io-app/public/angular/2493.6a6a1a171b1585e5.js deleted file mode 100644 index 0aa46f09..00000000 --- a/apps/n/porrtal-io-app/public/angular/2493.6a6a1a171b1585e5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2493],{42493:(k,F,p)=>{p.r(F),p.d(F,{ElevationQuery:()=>j,GeometryDescriptor:()=>x,getFinestLodIndex:()=>A});var f=p(15861),$=p(59213),T=p(26584),y=p(62208),E=p(10699),I=p(16730),_=p(72854),M=p(72642),N=p(55214),w=p(55915),R=p(65401),z=p(13762),b=p(80403);class S{constructor(e,t=null){this.tile=e,this.zmin=0,this.zmax=0,(0,y.pC)(t)&&(0,y.pC)(e)&&(this._samplerData=new b.K(t,e.extent),this.zmin=t.minValue,this.zmax=t.maxValue)}sample(e,t){if((0,y.Wi)(this._samplerData))return;const{safeWidth:n,width:i,pixelData:o,noDataValue:l,dx:s,dy:a,y1:r,x0:c}=this._samplerData,h=V(a*(r-t),0,n),m=V(s*(e-c),0,n),u=Math.floor(h),g=Math.floor(m),C=u*i+g,G=C+i,D=o[C],q=o[G],U=o[C+1],W=o[G+1];if(D!==l&&q!==l&&U!==l&&W!==l){const P=m-g,Q=D+(U-D)*P;return Q+(q+(W-q)*P-Q)*(h-u)}}}function V(v,e,t){return vt?t:v}var O=p(68511);class j{queryAll(e,t,n){var i=this;return(0,f.Z)(function*(){if(!(e=n&&n.ignoreInvisibleLayers?e.filter(c=>c.visible):e.slice()).length)throw new T.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");const o=x.fromGeometry(t);let l=!1;n&&n.returnSampleInfo||(l=!0);const s={...Z,...n,returnSampleInfo:!0},a=yield i.query(e[e.length-1],o,s),r=yield i._queryAllContinue(e,a,s);return r.geometry=r.geometry.export(),l&&delete r.sampleInfo,r})()}query(e,t,n){var i=this;return(0,f.Z)(function*(){if(!e)throw new T.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new T.Z("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const o={...Z,...n},l=new H(e,t.spatialReference,o),s=o.signal;return yield e.load({signal:s}),yield i._createGeometryDescriptor(l,t,s),yield i._selectTiles(l,s),yield i._populateElevationTiles(l,s),i._sampleGeometryWithElevation(l),i._createQueryResult(l,s)})()}createSampler(e,t,n){var i=this;return(0,f.Z)(function*(){if(!e)throw new T.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new T.Z("elevation-query:invalid-extent","Invalid or undefined extent");const o={...Z,...n};return i._createSampler(e,t,o)})()}createSamplerAll(e,t,n){var i=this;return(0,f.Z)(function*(){if(!(e=n&&n.ignoreInvisibleLayers?e.filter(s=>s.visible):e.slice()).length)throw new T.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new T.Z("elevation-query:invalid-extent","Invalid or undefined extent");const o={...Z,...n,returnSampleInfo:!0},l=yield i._createSampler(e[e.length-1],t,o);return i._createSamplerAllContinue(e,t,l,o)})()}_createSampler(e,t,n,i){var o=this;return(0,f.Z)(function*(){const l=n.signal;yield e.load({signal:l});const s=t.spatialReference,a=e.tileInfo.spatialReference;s.equals(a)||(yield(0,w.iQ)([{source:s,dest:a}],{signal:l}),t=(0,w.iV)(t,a));const r=new K(e,t,n,i);return yield o._selectTiles(r,l),yield o._populateElevationTiles(r,l),new z.Tl(r.elevationTiles,r.layer.tileInfo,r.options.noDataValue)})()}_createSamplerAllContinue(e,t,n,i){var o=this;return(0,f.Z)(function*(){if(e.pop(),!e.length)return n;const l=n.samplers.map(c=>(0,R.oJ)(c.extent)),s=yield o._createSampler(e[e.length-1],t,i,l);if(0===s.samplers.length)return n;const a=n.samplers.concat(s.samplers),r=new z.Tl(a,i.noDataValue);return o._createSamplerAllContinue(e,t,r,i)})()}_queryAllContinue(e,t,n){var i=this;return(0,f.Z)(function*(){const o=e.pop(),l=t.geometry.coordinates,s=t.sampleInfo;(0,y.O3)(s);const a=[],r=[];for(let u=0;u=0?g.source||(g.source=o):e.length&&(a.push(l[u]),r.push(u))}if(!e.length||0===a.length)return t;const c=t.geometry.clone(a),h=yield i.query(e[e.length-1],c,n),m=h.sampleInfo;if(!m)throw new Error("no sampleInfo");return r.forEach((u,g)=>{l[u].z=h.geometry.coordinates[g].z,s[u].demResolution=m[g].demResolution}),i._queryAllContinue(e,t,n)})()}_createQueryResult(e,t){var n=this;return(0,f.Z)(function*(){const i=yield e.geometry.project(e.outSpatialReference,t);(0,y.O3)(i);const o={geometry:i.export(),noDataValue:e.options.noDataValue};return e.options.returnSampleInfo&&(o.sampleInfo=n._extractSampleInfo(e)),e.geometry.coordinates.forEach(l=>{l.tile=null,l.elevationTile=null}),o})()}_createGeometryDescriptor(e,t,n){return(0,f.Z)(function*(){let i;const o=e.layer.tileInfo.spatialReference;if(t instanceof x?i=yield t.project(o,n):(yield(0,w.iQ)([{source:t.spatialReference,dest:o}],{signal:n}),i=(0,w.iV)(t,o)),!i)throw new T.Z("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);e.geometry=x.fromGeometry(i)})()}_selectTiles(e,t){var n=this;return(0,f.Z)(function*(){const i=e.options.demResolution;if("geometry"===e.type&&n._preselectOutsideLayerExtent(e),"number"==typeof i)n._selectTilesClosestResolution(e);else if("finest-contiguous"===i)yield n._selectTilesFinestContiguous(e,t);else{if("auto"!==i)throw new T.Z("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);yield n._selectTilesAuto(e,t)}})()}_preselectOutsideLayerExtent(e){if((0,y.Wi)(e.layer.fullExtent))return;const t=new S(null);t.sample=()=>e.options.noDataValue,e.outsideExtentTile=t;const n=e.layer.fullExtent;e.geometry.coordinates.forEach(i=>{const o=i.x,l=i.y;(on.xmax||ln.ymax)&&(i.elevationTile=t)})}_selectTilesClosestResolution(e){const n=this._findNearestDemResolutionLODIndex(e.layer.tileInfo,e.options.demResolution);e.selectTilesAtLOD(n)}_findNearestDemResolutionLODIndex(e,t){const n=t/(0,I.c9)(e.spatialReference);let i=e.lods[0],o=0;for(let l=1;ll.fetchAvailability(a.level,a.row,a.col,{signal:n}))),n);else if(yield i._populateElevationTiles(e,n),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new T.Z("elevation-query:has-unavailable-tiles")}catch(a){(0,E.r9)(a),yield i._selectTilesFinestContiguousAt(e,t-1,n)}})()}_populateElevationTiles(e,t){return(0,f.Z)(function*(){const n=e.getTilesToFetch(),i={},o=e.options.cache,l=e.options.noDataValue,s=n.map(function(){var a=(0,f.Z)(function*(r){if(null==r.id)return;const c=`${e.layer.uid}:${r.id}:${l}`,h=(0,y.pC)(o)?o.get(c):null,m=(0,y.pC)(h)?h:yield e.layer.fetchTile(r.level,r.row,r.col,{noDataValue:l,signal:t});(0,y.pC)(o)&&o.put(c,m),i[r.id]=new S(r,m)});return function(r){return a.apply(this,arguments)}}());yield(0,E.Hl)((0,E.as)(s),t),e.populateElevationTiles(i)})()}_selectTilesAuto(e,t){var n=this;return(0,f.Z)(function*(){n._selectTilesAutoFinest(e),n._reduceTilesForMaximumRequests(e);const i=e.layer.tilemapCache;if(!i)return n._selectTilesAutoPrefetchUpsample(e,t);const o=e.getTilesToFetch(),l={},s=o.map(function(){var a=(0,f.Z)(function*(r){const c=new O.f(null,0,0,0,(0,R.Ue)()),h=yield(0,$.q6)(i.fetchAvailabilityUpsample(r.level,r.row,r.col,c,{signal:t}));!1!==h.ok?null!=r.id&&(l[r.id]=c):(0,E.r9)(h.error)});return function(r){return a.apply(this,arguments)}}());yield(0,E.Hl)(Promise.all(s),t),e.remapTiles(l)})()}_reduceTilesForMaximumRequests(e){const t=e.layer.tileInfo;let n=0;const i={},o=a=>{null!=a.id&&(a.id in i?i[a.id]++:(i[a.id]=1,n++))},l=a=>{if(null==a.id)return;const r=i[a.id];1===r?(delete i[a.id],n--):i[a.id]=r-1};e.forEachTileToFetch(o,l);let s=!0;for(;s&&(s=!1,e.forEachTileToFetch(a=>{n<=e.options.maximumAutoTileRequests||(l(a),t.upsampleTile(a)&&(s=!0),o(a))},l),s););}_selectTilesAutoFinest(e){const t=A(e.layer.tileInfo,e.options.minDemResolution);e.selectTilesAtLOD(t,e.options.maximumAutoTileRequests)}_selectTilesAutoPrefetchUpsample(e,t){var n=this;return(0,f.Z)(function*(){const i=e.layer.tileInfo;yield n._populateElevationTiles(e,t);let o=!1;e.forEachTileToFetch((l,s)=>{i.upsampleTile(l)?o=!0:s()}),o&&(yield n._selectTilesAutoPrefetchUpsample(e,t))})()}_sampleGeometryWithElevation(e){e.geometry.coordinates.forEach(t=>{const n=t.elevationTile;let i=e.options.noDataValue;if(n){const o=n.sample(t.x,t.y);(0,y.pC)(o)?i=o:t.elevationTile=null}t.z=i})}_extractSampleInfo(e){const t=e.layer.tileInfo,n=(0,I.c9)(t.spatialReference);return e.geometry.coordinates.map(i=>{let o=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(o=t.lodAt(i.elevationTile.tile.level).resolution*n),{demResolution:o}})}}class x{export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new x;return t.geometry=this.geometry,t.spatialReference=this.spatialReference,t.coordinates=e||this.coordinates.map(n=>n.clone()),t._exporter=this._exporter,t}project(e,t){var n=this;return(0,f.Z)(function*(){if(n.spatialReference.equals(e))return n.clone();yield(0,w.iQ)([{source:n.spatialReference,dest:e}],{signal:t});const i=new _.Z({spatialReference:n.spatialReference,points:n.coordinates.map(a=>[a.x,a.y])}),o=(0,w.iV)(i,e);if(!o)return null;const l=n.coordinates.map((a,r)=>{const c=a.clone(),h=o.points[r];return c.x=h[0],c.y=h[1],c}),s=n.clone(l);return s.spatialReference=e,s})()}static fromGeometry(e){const t=new x;if(t.geometry=e,t.spatialReference=e.spatialReference,e instanceof x)t.coordinates=e.coordinates.map(n=>n.clone()),t._exporter=(n,i)=>{const o=e.clone(n);return o.spatialReference=i,o};else switch(e.type){case"point":{const n=e,{hasZ:i,hasM:o}=n;t.coordinates=i&&o?[new d(n.x,n.y,n.z,n.m)]:i?[new d(n.x,n.y,n.z)]:o?[new d(n.x,n.y,null,n.m)]:[new d(n.x,n.y)],t._exporter=(l,s)=>e.hasM?new M.Z(l[0].x,l[0].y,l[0].z,l[0].m,s):new M.Z(l[0].x,l[0].y,l[0].z,s);break}case"multipoint":{const n=e,{hasZ:i,hasM:o}=n;t.coordinates=n.points.map(i&&o?l=>new d(l[0],l[1],l[2],l[3]):i?l=>new d(l[0],l[1],l[2]):o?l=>new d(l[0],l[1],null,l[2]):l=>new d(l[0],l[1])),t._exporter=(l,s)=>e.hasM?new _.Z({points:l.map(a=>[a.x,a.y,a.z,a.m]),hasZ:!0,hasM:!0,spatiaReference:s}):new _.Z(l.map(a=>[a.x,a.y,a.z]),s);break}case"polyline":{const n=e,i=[],o=[],{hasZ:l,hasM:s}=e;let a=0;for(const r of n.paths)if(o.push([a,a+r.length]),a+=r.length,l&&s)for(const c of r)i.push(new d(c[0],c[1],c[2],c[3]));else if(l)for(const c of r)i.push(new d(c[0],c[1],c[2]));else if(s)for(const c of r)i.push(new d(c[0],c[1],null,c[2]));else for(const c of r)i.push(new d(c[0],c[1]));t.coordinates=i,t._exporter=(r,c)=>{const h=r.map(e.hasM?u=>[u.x,u.y,u.z,u.m]:u=>[u.x,u.y,u.z]),m=o.map(u=>h.slice(u[0],u[1]));return new N.Z({paths:m,hasM:e.hasM,hasZ:!0,spatialReference:c})};break}}return t}}class d{constructor(e,t,n=null,i=null,o=null,l=null){this.x=e,this.y=t,this.z=n,this.m=i,this.tile=o,this.elevationTile=l}clone(){return new d(this.x,this.y,this.z,this.m)}}class L{constructor(e,t){this.layer=e,this.options=t}}class H extends L{constructor(e,t,n){super(e,n),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(t=>{t.tile=null});else{const t=this.layer.tileInfo,n=t.lods[e].level;this.geometry.coordinates.forEach(i=>{i.tile=t.tileAt(n,i.x,i.y)})}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const n=t.tile?.id;t.tile=n?e[n]:null}}getTilesToFetch(){const e={},t=[];for(const n of this.geometry.coordinates){const i=n.tile;if(!i)continue;const o=n.tile?.id;n.elevationTile||!o||e[o]||(e[o]=i,t.push(i))}return t}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>{t.tile=null})}}class K extends L{constructor(e,t,n,i){super(e,n),this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.intersection(e.fullExtent),this.maskExtents=i}selectTilesAtLOD(e,t){const n=this._maximumLodForRequests(t),i=Math.min(n,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){const t=this.layer.tileInfo;if(!e)return t.lods.length-1;const n=this.extent;if((0,y.Wi)(n))return-1;for(let i=t.lods.length-1;i>=0;i--){const o=t.lods[i],s=o.resolution*t.size[1];if(Math.ceil(n.width/(o.resolution*t.size[0]))*Math.ceil(n.height/s)<=e)return i}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const n=t.id&&e[t.id];n&&(this._fetchedCandidates.add(t),this.elevationTiles.push(n))}}remapTiles(e){this._candidateTiles=this._uniqueNonOverlappingTiles(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const n=this._candidateTiles;this._candidateTiles=[],n.forEach(i=>{if(this._fetchedCandidates.has(i))return void(t&&t(i));let o=!1;e(i,()=>o=!0),o?t&&t(i):this._candidateTiles.push(i)}),this._candidateTiles=this._uniqueNonOverlappingTiles(this._candidateTiles,t)}_uniqueNonOverlappingTiles(e,t){const n={},i=[];for(const l of e){const s=l.id;s&&!n[s]?(n[s]=l,i.push(l)):t&&t(l)}const o=i.sort((l,s)=>l.level-s.level);return o.filter((l,s)=>{for(let a=0;ae.extent&&(0,R.r3)(t,e.extent))}}function A(v,e=0){let t=v.lods.length-1;if(e>0){const n=e/(0,I.c9)(v.spatialReference),i=v.lods.findIndex(o=>o.resolution0&&(t=i-1)}return t}const Z={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2504.3209ebd64049059b.js b/apps/n/porrtal-io-app/public/angular/2504.3209ebd64049059b.js deleted file mode 100644 index 0e490ad4..00000000 --- a/apps/n/porrtal-io-app/public/angular/2504.3209ebd64049059b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2504],{82504:(O,f,p)=>{p.r(f),p.d(f,{b:()=>b});var u,_,e,l=p(1719),r={exports:{}};u=r,void 0!==(e=r.exports,Object.defineProperty(e,"__esModule",{value:!0}),_=void(e.default={_percentPrefix:null,_percentSuffix:"%","Zoom Out":"\u041e\u0442\u0434\u0430\u043b\u0435\u0447\u0430\u0432\u0430\u043d\u0435","From %1 to %2":"\u041e\u0442 %1 \u0434\u043e %2","From %1":"\u041e\u0442 %1","To %1":"\u0414\u043e %1"}))&&(u.exports=_);const b=function d(n,e){for(var s=0;so[t]})}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,l.g)(r.exports)},[r.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2543.eed26d786a5f9ed7.js b/apps/n/porrtal-io-app/public/angular/2543.eed26d786a5f9ed7.js deleted file mode 100644 index 6ebbe89f..00000000 --- a/apps/n/porrtal-io-app/public/angular/2543.eed26d786a5f9ed7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2543],{2543:(E,m,i)=>{i.r(m),i.d(m,{registerFunctions:()=>x});var g=i(15861),h=i(25919),u=i(47562),l=i(50818),y=i(10410);function _(t,e,a,n,s,r){return c.apply(this,arguments)}function c(){return(c=(0,g.Z)(function*(t,e,a,n,s,r){if(1===n.length){if((0,u.m)(n[0]))return(0,l.t)(t,n[0],(0,u.A)(n[1],-1));if((0,u.x)(n[0]))return(0,l.t)(t,n[0].toArray(),(0,u.A)(n[1],-1))}else if(2===n.length){if((0,u.m)(n[0]))return(0,l.t)(t,n[0],(0,u.A)(n[1],-1));if((0,u.x)(n[0]))return(0,l.t)(t,n[0].toArray(),(0,u.A)(n[1],-1));if((0,u.T)(n[0])){const o=yield n[0].load(),f=yield A(y.WhereClause.create(n[1],o.getFieldsIndex()),r,s);return n[0].calculateStatistic(t,f,(0,u.A)(n[2],1e3),e.abortSignal)}}else if(3===n.length&&(0,u.T)(n[0])){const o=yield n[0].load(),f=yield A(y.WhereClause.create(n[1],o.getFieldsIndex()),r,s);return n[0].calculateStatistic(t,f,(0,u.A)(n[2],1e3),e.abortSignal)}return(0,l.t)(t,n,-1)})).apply(this,arguments)}function A(t,e,a){return d.apply(this,arguments)}function d(){return(d=(0,g.Z)(function*(t,e,a){const n=t.getVariables();if(n.length>0){const s=[];for(let o=0;o_("stdev",n,s,r,e,t))},t.functions.variance=function(e,a){return t.standardFunctionAsync(e,a,(n,s,r)=>_("variance",n,s,r,e,t))},t.functions.average=function(e,a){return t.standardFunctionAsync(e,a,(n,s,r)=>_("mean",n,s,r,e,t))},t.functions.mean=function(e,a){return t.standardFunctionAsync(e,a,(n,s,r)=>_("mean",n,s,r,e,t))},t.functions.sum=function(e,a){return t.standardFunctionAsync(e,a,(n,s,r)=>_("sum",n,s,r,e,t))},t.functions.min=function(e,a){return t.standardFunctionAsync(e,a,(n,s,r)=>_("min",n,s,r,e,t))},t.functions.max=function(e,a){return t.standardFunctionAsync(e,a,(n,s,r)=>_("max",n,s,r,e,t))},t.functions.count=function(e,a){return t.standardFunctionAsync(e,a,(n,s,r)=>{if((0,u.y)(r,1,1,e,a),(0,u.T)(r[0]))return r[0].count(n.abortSignal);if((0,u.m)(r[0])||(0,u.c)(r[0]))return r[0].length;if((0,u.x)(r[0]))return r[0].length();throw new h.aV(e,h.rH.InvalidParameter,a)})})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2558.449d8b51a8193592.js b/apps/n/porrtal-io-app/public/angular/2558.449d8b51a8193592.js deleted file mode 100644 index f390cfde..00000000 --- a/apps/n/porrtal-io-app/public/angular/2558.449d8b51a8193592.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2558],{2558:(E,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(10109),_(33726),_(2166),_(95285),_(69960),_(17625),_(22355),_(44835),_(16396);var a=_(8549)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2620.41d5a7dc7c8eea0f.js b/apps/n/porrtal-io-app/public/angular/2620.41d5a7dc7c8eea0f.js deleted file mode 100644 index 8ef24936..00000000 --- a/apps/n/porrtal-io-app/public/angular/2620.41d5a7dc7c8eea0f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2620],{92620:(f,d,i)=>{i.r(d),i.d(d,{l:()=>p});var u,h,t,n=i(1719),a={exports:{}};u=a,void 0!==(t=a.exports,Object.defineProperty(t,"__esModule",{value:!0}),h=void(t.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"m.\u0113.",_era_bc:"p.m.\u0113.",A:"priek\u0161p.",P:"p\u0113cp.",AM:"priek\u0161p.",PM:"p\u0113cp.","A.M.":"priek\u0161pusdien\u0101","P.M.":"p\u0113cpusdien\u0101",January:"janv\u0101ris",February:"febru\u0101ris",March:"marts",April:"apr\u012blis",May:"maijs",June:"j\u016bnijs",July:"j\u016blijs",August:"augusts",September:"septembris",October:"oktobris",November:"novembris",December:"decembris",Jan:"janv.",Feb:"febr.",Mar:"marts",Apr:"apr.","May(short)":"maijs",Jun:"j\u016bn.",Jul:"j\u016bl.",Aug:"aug.",Sep:"sept.",Oct:"okt.",Nov:"nov.",Dec:"dec.",Sunday:"sv\u0113tdiena",Monday:"pirmdiena",Tuesday:"otrdiena",Wednesday:"tre\u0161diena",Thursday:"ceturtdiena",Friday:"piektdiena",Saturday:"sestdiena",Sun:"sv\u0113td.",Mon:"pirmd.",Tue:"otrd.",Wed:"tre\u0161d.",Thu:"ceturtd.",Fri:"piektd.",Sat:"sestd.",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"T\u0101lummai\u0146a",Play:"Darbin\u0101t",Stop:"Aptur\u0113t",Legend:"Apz\u012bm\u0113jumi","Click, tap or press ENTER to toggle":"",Loading:"Iel\u0101d\u0113",Home:"S\u0101kums",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Druk\u0101t",Image:"Att\u0113ls",Data:"Dati",Print:"Druk\u0101t","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"No %1 l\u012bdz %2","From %1":"No %1","To %1":"L\u012bdz %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const p=function c(_,t){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,n.g)(a.exports)},[a.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2694.61df90b49859bb91.js b/apps/n/porrtal-io-app/public/angular/2694.61df90b49859bb91.js deleted file mode 100644 index 1954b718..00000000 --- a/apps/n/porrtal-io-app/public/angular/2694.61df90b49859bb91.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2694],{32694:(a,s,_)=>{_.r(s),_.d(s,{build:()=>l.b}),_(28347),_(43703),_(44965),_(96896),_(31166),_(92724),_(39337),_(69602),_(33726),_(19278),_(97139),_(17625),_(63123),_(22355),_(16396);var l=_(50722)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2701.c2079041210f1c6f.js b/apps/n/porrtal-io-app/public/angular/2701.c2079041210f1c6f.js deleted file mode 100644 index fdc36914..00000000 --- a/apps/n/porrtal-io-app/public/angular/2701.c2079041210f1c6f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2701],{12701:(de,R,l)=>{l.r(R),l.d(R,{default:()=>fe});var B=l(15861),n=l(17626),G=(l(29132),l(46160)),D=l(46882),L=l(62208),H=l(99959),Q=l(10699),v=l(32917),J=l(21726),u=l(77712),V=(l(85931),l(90912)),I=l(68653),U=l(76898),X=l(99433),F=l(65234),$=l(44917),w=l(552),k=l(49286),q=l(6647),_=l(30346),ee=l(99555),te=l(13812),re=l(61885),se=l(86810),oe=l(47996),le=l(77275),ne=l(59318),K=l(24263),ie=(l(73281),l(84792)),P=l(58817),c=l(5548),O=l(32442);l(33474),l(17253);const ae={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function Y(e){const r=e.folders||[],o=r.slice(),s=new Map,a=new Map,d=new Map,b=new Map,E=new Map,g={esriGeometryPoint:a,esriGeometryPolyline:d,esriGeometryPolygon:b};(e.featureCollection&&e.featureCollection.layers||[]).forEach(i=>{const C=(0,P.d9)(i);C.featureSet.features=[];const h=i.featureSet.geometryType;s.set(h,C);const N=i.layerDefinition.objectIdField;"esriGeometryPoint"===h?M(a,N,i.featureSet.features):"esriGeometryPolyline"===h?M(d,N,i.featureSet.features):"esriGeometryPolygon"===h&&M(b,N,i.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(i=>{E.set(i.id,i)}),r.forEach(i=>{i.networkLinkIds.forEach(C=>{const h=function ue(e,r,o){const s=function ye(e,r){let o;return r.some(s=>s.id===e&&(o=s,!0)),o}(e,o);return s&&(s.parentFolderId=r,s.networkLink=s),s}(C,i.id,e.networkLinks);h&&o.push(h)})}),o.forEach(i=>{if(i.featureInfos){i.points=(0,P.d9)(s.get("esriGeometryPoint")),i.polylines=(0,P.d9)(s.get("esriGeometryPolyline")),i.polygons=(0,P.d9)(s.get("esriGeometryPolygon")),i.mapImages=[];for(const C of i.featureInfos)switch(C.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const h=g[C.type].get(C.id);h&&i[ae[C.type]].featureSet.features.push(h);break}case"GroundOverlay":{const h=E.get(C.id);h&&i.mapImages.push(h);break}}i.fullExtent=T([i])}});const S=T(o);return{folders:r,sublayers:o,extent:S}}function z(e,r,o,s){const a=K.id&&K.id.findCredential(e);return e=(0,J.fl)(e,{token:a&&a.token}),(0,ie.default)(ne.Z.kmlServiceUrl,{query:{url:e,model:"simple",folders:"",refresh:0!==o||void 0,outSR:JSON.stringify(r)},responseType:"json",signal:s})}function A(e,r,o=null,s=[]){const a=[],d={},b=r.sublayers,E=r.folders.map(g=>g.id);return b.forEach(g=>{const S=new e;if(o?S.read(g,o):S.read(g),s.length&&E.includes(S.id)&&(S.visible=s.includes(S.id)),d[g.id]=S,null!=g.parentFolderId&&-1!==g.parentFolderId){const i=d[g.parentFolderId];i.sublayers||(i.sublayers=[]),i.sublayers.unshift(S)}else a.unshift(S)}),a}function M(e,r,o){o.forEach(s=>{e.set(s.attributes[r],s)})}function T(e){const r=(0,c.Ue)(c.Gv),o=(0,c.Ue)(c.Gv);for(const s of e){if(s.polygons&&s.polygons.featureSet&&s.polygons.featureSet.features)for(const a of s.polygons.featureSet.features)(0,O.Yg)(r,a.geometry),(0,c.TC)(o,r);if(s.polylines&&s.polylines.featureSet&&s.polylines.featureSet.features)for(const a of s.polylines.featureSet.features)(0,O.Yg)(r,a.geometry),(0,c.TC)(o,r);if(s.points&&s.points.featureSet&&s.points.featureSet.features)for(const a of s.points.featureSet.features)(0,O.Yg)(r,a.geometry),(0,c.TC)(o,r);if(s.mapImages)for(const a of s.mapImages)(0,O.Yg)(r,a.extent),(0,c.TC)(o,r)}return(0,c.fS)(o,c.Gv)?null:{xmin:o[0],ymin:o[1],zmin:o[2],xmax:o[3],ymax:o[4],zmax:o[5],spatialReference:F.Z.WGS84}}var x,j=l(2004);let f=x=class extends(re.Z.EventedMixin((0,se.eC)(oe.Z))){constructor(...e){super(...e),this.description=null,this.id=null,this.networkLink=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.fullExtent=null,this.addHandles([(0,v.on)(()=>this.sublayers,"after-add",({item:r})=>{r.parent=this,r.layer=this.layer},v.Z_),(0,v.on)(()=>this.sublayers,"after-remove",({item:r})=>{r.layer=r.parent=null},v.Z_),(0,v.YP)(()=>this.sublayers,(r,o)=>{if(o)for(const s of o)s.layer=s.parent=null;if(r)for(const s of r)s.parent=this,s.layer=this.layer},v.Z_)])}initialize(){(0,v.N1)(()=>this.networkLink).then(()=>(0,v.N1)(()=>!0===this.visible)).then(()=>this.load())}load(e){if(!this.networkLink||this.networkLink.viewFormat)return;const r=(0,L.pC)(e)?e.signal:null,o=this._fetchService(this._get("networkLink")?.href??"",r).then(s=>{const a=T(s.sublayers);this.fullExtent=j.Z.fromJSON(a),this.sourceJSON=s;const d=(0,V.se)(G.Z.ofType(x),A(x,s));this.sublayers?this.sublayers.addMany(d):this.sublayers=d,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(o),Promise.resolve(this)}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,r){return!!r.visibility}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach(r=>r.layer=e)}_fetchService(e,r){return z(e,this.layer.outSpatialReference,this.layer.refreshInterval,r).then(o=>Y(o.data))}};(0,n._)([(0,u.Cb)()],f.prototype,"description",void 0),(0,n._)([(0,u.Cb)()],f.prototype,"id",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,value:null})],f.prototype,"networkLink",void 0),(0,n._)([(0,u.Cb)({json:{write:{allowNull:!0}}})],f.prototype,"parent",void 0),(0,n._)([(0,u.Cb)({type:G.Z.ofType(x),json:{write:{allowNull:!0}}})],f.prototype,"sublayers",void 0),(0,n._)([(0,u.Cb)({value:null,json:{read:{source:"name",reader:e=>(0,le.Cb)(e)}}})],f.prototype,"title",void 0),(0,n._)([(0,u.Cb)({value:!0})],f.prototype,"visible",null),(0,n._)([(0,I.r)("visible",["visibility"])],f.prototype,"readVisible",null),(0,n._)([(0,u.Cb)()],f.prototype,"sourceJSON",void 0),(0,n._)([(0,u.Cb)({value:null})],f.prototype,"layer",null),(0,n._)([(0,u.Cb)({type:j.Z})],f.prototype,"fullExtent",void 0),f=x=(0,n._)([(0,U.j)("esri.layers.support.KMLSublayer")],f);const W=f,pe=["kml","xml"];let p=class extends((0,w.h)((0,_.Q)((0,ee.M)((0,k.q)((0,q.I)((0,H.R)($.Z))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new D.Z({getCollections:()=>[this.sublayers],getChildrenFunction:r=>r.sublayers}),this.outSpatialReference=F.Z.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,v.YP)(()=>this.sublayers,(e,r)=>{r&&r.forEach(o=>{o.parent=null,o.layer=null}),e&&e.forEach(o=>{o.parent=this,o.layer=this})},v.Z_),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e,r){return"string"==typeof e?{url:e,...r}:e}readSublayersFromItemOrWebMap(e,r){this._visibleFolders=r.visibleFolders}readSublayers(e,r,o){return A(W,r,o,this._visibleFolders)}writeSublayers(e,r){const o=[],s=e.toArray();for(;s.length;){const a=s[0];a.networkLink||(a.visible&&o.push(a.id),a.sublayers&&s.push(...a.sublayers.toArray())),s.shift()}r.visibleFolders=o}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,J.vt)(this.url,pe)||"KML":e||""}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,r=[],o=s=>{s.visible&&(r.push(s),s.sublayers&&s.sublayers.forEach(o))};return e&&e.forEach(o),r}get fullExtent(){return this._recomputeFullExtent()}load(e){const r=(0,L.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(Q.r9).then(()=>this._fetchService(r))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}_fetchService(e){var r=this;return(0,B.Z)(function*(){const s=Y((yield Promise.resolve().then(()=>r.resourceInfo?{ssl:!1,data:r.resourceInfo}:z(r.url??"",r.outSpatialReference,r.refreshInterval,e))).data);s&&r.read(s,{origin:"service"})})()}_recomputeFullExtent(){let e=null;(0,L.pC)(this.extent)&&(e=this.extent.clone());const r=o=>{if(o.sublayers)for(const s of o.sublayers.items)r(s),s.visible&&s.fullExtent&&((0,L.pC)(e)?e.union(s.fullExtent):e=s.fullExtent.clone())};return r(this),e}};(0,n._)([(0,u.Cb)({readOnly:!0})],p.prototype,"allSublayers",void 0),(0,n._)([(0,u.Cb)({type:F.Z})],p.prototype,"outSpatialReference",void 0),(0,n._)([(0,u.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],p.prototype,"path",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,json:{read:!1,write:!1}})],p.prototype,"legendEnabled",void 0),(0,n._)([(0,u.Cb)({type:["show","hide","hide-children"]})],p.prototype,"listMode",void 0),(0,n._)([(0,u.Cb)({type:["KML"]})],p.prototype,"operationalLayerType",void 0),(0,n._)([(0,u.Cb)({})],p.prototype,"resourceInfo",void 0),(0,n._)([(0,u.Cb)({type:G.Z.ofType(W),json:{write:{ignoreOrigin:!0}}})],p.prototype,"sublayers",void 0),(0,n._)([(0,I.r)(["web-map","portal-item"],"sublayers",["visibleFolders"])],p.prototype,"readSublayersFromItemOrWebMap",null),(0,n._)([(0,I.r)("service","sublayers",["sublayers"])],p.prototype,"readSublayers",null),(0,n._)([(0,X.c)("sublayers")],p.prototype,"writeSublayers",null),(0,n._)([(0,u.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"type",void 0),(0,n._)([(0,u.Cb)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],p.prototype,"title",null),(0,n._)([(0,u.Cb)(te.HQ)],p.prototype,"url",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],p.prototype,"visibleSublayers",null),(0,n._)([(0,u.Cb)({type:j.Z})],p.prototype,"extent",void 0),(0,n._)([(0,u.Cb)()],p.prototype,"fullExtent",null),p=(0,n._)([(0,U.j)("esri.layers.KMLLayer")],p);const fe=p}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/289.185dcef833da0076.js b/apps/n/porrtal-io-app/public/angular/289.185dcef833da0076.js deleted file mode 100644 index 7cf39523..00000000 --- a/apps/n/porrtal-io-app/public/angular/289.185dcef833da0076.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[289],{70289:(le,u,e)=>{e.r(u),e.d(u,{default:()=>re});var f,c=e(15861),r=e(17626),P=(e(29132),e(73281)),T=(e(4832),e(49067),e(96794),e(69747),e(40425),e(69357),e(40342)),j=e(73640),O=e(33474),g=e(32088),Z=e(84792),F=e(20383),y=e(26584),L=e(63290),N=e(62208),D=e(99959),E=e(10699),o=e(77712),S=(e(85931),e(90912)),C=e(68653),I=e(76898),U=e(383),m=e(71774),A=e(44917),J=e(65088),M=e(552),G=e(50107),z=e(35126),Q=e(81380),V=e(49286),Y=e(6647),W=e(30346),B=e(99555),H=e(97941),l=e(13812),X=e(55911),v=e(36630),$=e(170),K=e(62667),w=e(86810);let d=f=class extends w.wq{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new f({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"age",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"ageReceived",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"displayCount",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxObservations",void 0),d=f=(0,r._)([(0,I.j)("esri.layers.support.PurgeOptions")],d);const b=d;var k=e(39683),q=e(96854),_=e(49430),ee=e(82706),R=e(65234),te=e(2004);const x=(0,X.v)();let n=class extends((0,Q.M)((0,z.b)((0,M.h)((0,H.n)((0,B.M)((0,W.Q)((0,J.Y)((0,V.q)((0,Y.I)((0,D.R)((0,G.N)(A.Z)))))))))))){constructor(...i){super(...i),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new b,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=R.Z.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.webSocketUrl=null}normalizeCtorArgs(i,t){return"string"==typeof i?{url:i,...t}:i}load(i){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new y.Z("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=(0,N.pC)(i)?i.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},i).catch(E.r9).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(i){(0,v.YN)(i,this.fieldsIndex),this._set("renderer",i)}readRenderer(i,t,s){const p=(t=t.layerDefinition||t).drawingInfo&&t.drawingInfo.renderer||void 0;if(p){const a=(0,O.a)(p,t,s)||void 0;return a||L.Z.getLogger(this.declaredClass).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:s}),a}if(t.defaultSymbol)return t.types&&t.types.length?new j.Z({defaultSymbol:h(t.defaultSymbol,t,s),field:t.typeIdField,uniqueValueInfos:t.types.map(a=>({id:a.id,symbol:h(a.symbol,a,s)}))}):new T.Z({symbol:h(t.defaultSymbol,t,s)})}connect(i){var t=this;return(0,c.Z)(function*(){const[{createConnection:s}]=yield Promise.all([e.e(3542).then(e.bind(e,3542)),t.load()]),p=m.Mk.toJSON(t.geometryType),{customParameters:a=null,definitionExpression:oe=null,geometryDefinition:ne=null,maxReconnectionAttempts:ie=0,maxReconnectionInterval:se=20,spatialReference:ae=t.spatialReference}=i||t.createConnectionParameters();return s(t.parsedUrl,t.spatialReference,ae,p,{geometry:ne,where:oe},ie,se,a)})()}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(i){return(0,_.eZ)(this,i)}createQuery(){const i=new q.Z;return i.returnGeometry=!0,i.outFields=["*"],i.where=this.definitionExpression||"1=1",i}getFieldDomain(i,t){if(!this.fields)return null;let s=null;return this.fields.some(p=>(p.name===i&&(s=p.domain),!!s)),s}getField(i){return this.fieldsIndex.get(i)}serviceSupportsSpatialReference(i){return!0}_fetchService(i){var t=this;return(0,c.Z)(function*(){if(t.webSocketUrl){if(!t.timeInfo?.trackIdField)throw new y.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!t.objectIdField)throw new y.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");if(!t.fields)throw new y.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!t.geometryType)throw new y.Z("stream-layer:missing-metadata","The stream layer geometryType must be specified.");t.url=t.webSocketUrl}else if(!t.sourceJSON){const{data:s}=yield(0,Z.default)(t.parsedUrl.path,{query:{f:"json",...t.customParameters,...t.parsedUrl.query},responseType:"json",signal:i});t.sourceJSON=s}return t.sourceJSON={...t.sourceJSON??{},objectIdField:"__esri_stream_id__"},t.read(t.sourceJSON,{origin:"service",url:t.parsedUrl}),(0,v.YN)(t.renderer,t.fieldsIndex),(0,v.UF)(t.timeInfo,t.fieldsIndex),(0,k.y)(t,{origin:"service"})})()}};(0,r._)([(0,o.Cb)({type:String})],n.prototype,"copyright",void 0),(0,r._)([(0,o.Cb)({readOnly:!0})],n.prototype,"defaultPopupTemplate",null),(0,r._)([(0,o.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],n.prototype,"definitionExpression",void 0),(0,r._)([(0,o.Cb)({type:String})],n.prototype,"displayField",void 0),(0,r._)([(0,o.Cb)({type:ee.Z})],n.prototype,"elevationInfo",void 0),(0,r._)([(0,o.Cb)(x.fields)],n.prototype,"fields",void 0),(0,r._)([(0,o.Cb)(x.fieldsIndex)],n.prototype,"fieldsIndex",void 0),(0,r._)([(0,o.Cb)({type:te.Z})],n.prototype,"geometryDefinition",void 0),(0,r._)([(0,o.Cb)({type:m.Mk.apiValues,json:{read:{reader:m.Mk.read}}})],n.prototype,"geometryType",void 0),(0,r._)([(0,o.Cb)(l.iR)],n.prototype,"labelsVisible",void 0),(0,r._)([(0,o.Cb)({type:[$.Z],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:K.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],n.prototype,"labelingInfo",void 0),(0,r._)([(0,o.Cb)(l.rn)],n.prototype,"legendEnabled",void 0),(0,r._)([(0,o.Cb)({type:["show","hide"]})],n.prototype,"listMode",void 0),(0,r._)([(0,o.Cb)({type:S.z8})],n.prototype,"maxReconnectionAttempts",void 0),(0,r._)([(0,o.Cb)({type:S.z8})],n.prototype,"maxReconnectionInterval",void 0),(0,r._)([(0,o.Cb)(l.u1)],n.prototype,"maxScale",void 0),(0,r._)([(0,o.Cb)(l.rO)],n.prototype,"minScale",void 0),(0,r._)([(0,o.Cb)({type:String})],n.prototype,"objectIdField",void 0),(0,r._)([(0,o.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],n.prototype,"operationalLayerType",void 0),(0,r._)([(0,o.Cb)(l.C_)],n.prototype,"popupEnabled",void 0),(0,r._)([(0,o.Cb)({type:P.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],n.prototype,"popupTemplate",void 0),(0,r._)([(0,o.Cb)({type:b})],n.prototype,"purgeOptions",void 0),(0,r._)([(0,o.Cb)({types:g.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:g.o,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],n.prototype,"renderer",null),(0,r._)([(0,C.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,C.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],n.prototype,"readRenderer",null),(0,r._)([(0,o.Cb)(l.YI)],n.prototype,"screenSizePerspectiveEnabled",void 0),(0,r._)([(0,o.Cb)()],n.prototype,"sourceJSON",void 0),(0,r._)([(0,o.Cb)({type:R.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],n.prototype,"spatialReference",void 0),(0,r._)([(0,o.Cb)({json:{read:!1}})],n.prototype,"type",void 0),(0,r._)([(0,o.Cb)(l.HQ)],n.prototype,"url",void 0),(0,r._)([(0,o.Cb)({type:Number})],n.prototype,"updateInterval",void 0),(0,r._)([(0,o.Cb)({type:String})],n.prototype,"webSocketUrl",void 0),n=(0,r._)([(0,I.j)("esri.layers.StreamLayer")],n);const h=(0,U.d)({types:F.QT}),re=n}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2903.a832184f5cc40b0b.js b/apps/n/porrtal-io-app/public/angular/2903.a832184f5cc40b0b.js deleted file mode 100644 index f37ce019..00000000 --- a/apps/n/porrtal-io-app/public/angular/2903.a832184f5cc40b0b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2903],{72903:(b,g,r)=>{r.r(g),r.d(g,{default:()=>ft});var y=r(15861),o=r(17626),C=(r(29132),r(73281)),F=(r(4832),r(49067),r(96794),r(69747),r(40425),r(69357),r(40342),r(73640),r(33474),r(32088)),h=r(62208),W=r(99959),T=r(10699),M=r(21726),n=r(77712),L=(r(85931),r(90912),r(76898)),U=r(71774),H=r(44917),A=r(26584),V=r(8314),K=r(47996),Y=r(63290),X=r(59289),w=r(56554),q=r(17253),Q=r(2004),k=r(37118);const G="esri.layers.graphics.sources.GeoJSONSource",B=Y.Z.getLogger(G);let v=class extends K.Z{constructor(){var t;super(...arguments),t=this,this.type="geojson",this.refresh=(0,T.Ds)(function(){var e=(0,y.Z)(function*(s){yield t.load();const{extent:a,timeExtent:p}=yield t._connection.invoke("refresh",s);return t.sourceJSON.extent=a,p&&(t.sourceJSON.timeInfo.timeExtent=[p.start,p.end]),{dataChanged:!0,updates:{extent:t.sourceJSON.extent,timeInfo:t.sourceJSON.timeInfo}}});return function(s){return e.apply(this,arguments)}}())}load(t){const e=(0,h.pC)(t)?t.signal:null;return this.addResolvingPromise(this._startWorker(e)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}applyEdits(t){return this.load().then(()=>this._applyEdits(t))}openPorts(){return this.load().then(()=>this._connection.openPorts())}queryFeatures(t,e={}){return this.load(e).then(()=>this._connection.invoke("queryFeatures",t?t.toJSON():null,e)).then(s=>q.default.fromJSON(s))}queryFeaturesJSON(t,e={}){return this.load(e).then(()=>this._connection.invoke("queryFeatures",t?t.toJSON():null,e))}queryFeatureCount(t,e={}){return this.load(e).then(()=>this._connection.invoke("queryFeatureCount",t?t.toJSON():null,e))}queryObjectIds(t,e={}){return this.load(e).then(()=>this._connection.invoke("queryObjectIds",t?t.toJSON():null,e))}queryExtent(t,e={}){return this.load(e).then(()=>this._connection.invoke("queryExtent",t?t.toJSON():null,e)).then(s=>({count:s.count,extent:Q.Z.fromJSON(s.extent)}))}querySnapping(t,e={}){return this.load(e).then(()=>this._connection.invoke("querySnapping",t,e))}_applyEdits(t){if(!this._connection)throw new A.Z("geojson-layer-source:edit-failure","Memory source not loaded");const e=this.layer.objectIdField,s=[],a=[],p=[];if(t.addFeatures)for(const l of t.addFeatures)s.push(this._serializeFeature(l));if(t.deleteFeatures)for(const l of t.deleteFeatures)"objectId"in l&&null!=l.objectId?a.push(l.objectId):"attributes"in l&&null!=l.attributes[e]&&a.push(l.attributes[e]);if(t.updateFeatures)for(const l of t.updateFeatures)p.push(this._serializeFeature(l));return this._connection.invoke("applyEdits",{adds:s,updates:p,deletes:a}).then(({extent:l,timeExtent:m,featureEditResults:f})=>(this.sourceJSON.extent=l,m&&(this.sourceJSON.timeInfo.timeExtent=[m.start,m.end]),this._createEditsResult(f)))}_createEditsResult(t){return{addFeatureResults:t.addResults?t.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:t.updateResults?t.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:t.deleteResults?t.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(t){const e=!0===t.success?null:t.error||{code:void 0,description:void 0};return{objectId:t.objectId,globalId:t.globalId,error:e?new A.Z("geojson-layer-source:edit-failure",e.description,{code:e.code}):null}}_serializeFeature(t){const{attributes:e}=t,s=this._geometryForSerialization(t);return s?{geometry:s.toJSON(),attributes:e}:{attributes:e}}_geometryForSerialization(t){const{geometry:e}=t;return(0,h.Wi)(e)?null:"mesh"===e.type||"extent"===e.type?k.Z.fromExtent(e.extent):e}_startWorker(t){var e=this;return(0,y.Z)(function*(){e._connection=yield(0,X.bA)("GeoJSONSourceWorker",{strategy:(0,V.Z)("feature-layers-workers")?"dedicated":"local",signal:t});const{fields:s,spatialReference:a,hasZ:p,geometryType:l,objectIdField:m,url:f,timeInfo:$,customParameters:gt}=e.layer,Ct="defaults"===e.layer.originOf("spatialReference"),St={url:f,customParameters:gt,fields:s&&s.map(I=>I.toJSON()),geometryType:U.Mk.toJSON(l),hasZ:p,objectIdField:m,timeInfo:$?$.toJSON():null,spatialReference:Ct?null:a&&a.toJSON()},O=yield e._connection.invoke("load",St,{signal:t});for(const I of O.warnings)B.warn(I.message,{layer:e.layer,warning:I});O.featureErrors.length&&B.warn(`Encountered ${O.featureErrors.length} validation errors while loading features`,O.featureErrors),e.sourceJSON=O.layerDefinition,e.capabilities=(0,w.MS)(e.sourceJSON.hasZ,!0)})()}};(0,o._)([(0,n.Cb)()],v.prototype,"capabilities",void 0),(0,o._)([(0,n.Cb)()],v.prototype,"type",void 0),(0,o._)([(0,n.Cb)({constructOnly:!0})],v.prototype,"layer",void 0),(0,o._)([(0,n.Cb)()],v.prototype,"sourceJSON",void 0),v=(0,o._)([(0,L.j)(G)],v);var _=r(552),tt=r(50107),et=r(35126),rt=r(81380),st=r(49286),ot=r(32629),nt=r(6647),it=r(30346),at=r(99555),lt=r(97941),c=r(13812),ut=r(32777),pt=r(41638),dt=r(36255),yt=r(55911),R=r(36630),ht=r(170),ct=r(62667),S=r(96854),mt=r(49430),z=r(65234);const vt=(0,yt.v)();let i=class extends((0,ot.c)((0,tt.N)((0,rt.M)((0,et.b)((0,_.h)((0,lt.n)((0,at.M)((0,it.Q)((0,st.q)((0,nt.I)((0,W.R)(H.Z)))))))))))){constructor(t){super(t),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.editingEnabled=!1,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="GeoJSON",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new v({layer:this}),this.spatialReference=z.Z.WGS84,this.templates=null,this.title="GeoJSON",this.type="geojson",this.typeIdField=null,this.types=null}destroy(){this.source?.destroy()}load(t){const e=this.loadFromPortal({supportedTypes:["GeoJson"],supportsData:!1},t).catch(T.r9).then(()=>this.source.load(t)).then(()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo"],"service"),(0,R.YN)(this.renderer,this.fieldsIndex),(0,R.UF)(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(e),Promise.resolve(this)}get capabilities(){return this.source?this.source.capabilities:null}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}get parsedUrl(){return this.url?(0,M.mN)(this.url):null}set renderer(t){(0,R.YN)(t,this.fieldsIndex),this._set("renderer",t)}set url(t){if(!t)return void this._set("url",t);const e=(0,M.mN)(t);this._set("url",e.path),e.query&&(this.customParameters={...this.customParameters,...e.query})}applyEdits(t,e){var s=this;return(0,y.Z)(function*(){const a=yield r.e(5362).then(r.bind(r,95362));yield s.load();const p=yield a.applyEdits(s,s.source,t,e);return s.read({extent:s.source.sourceJSON.extent,timeInfo:s.source.sourceJSON.timeInfo},{origin:"service",ignoreDefaults:!0}),p})()}on(t,e){return super.on(t,e)}createPopupTemplate(t){return(0,mt.eZ)(this,t)}createQuery(){const t=new S.Z,e=this.get("capabilities.data");t.returnGeometry=!0,e&&e.supportsZ&&(t.returnZ=!0),t.outFields=["*"],t.where=this.definitionExpression||"1=1";const{timeOffset:s,timeExtent:a}=this;return t.timeExtent=null!=s&&null!=a?a.offset(-s.value,s.unit):a||null,t}getFieldDomain(t,e){let s,a=!1;const p=e&&e.feature,l=p&&p.attributes,m=this.typeIdField&&l&&l[this.typeIdField];return null!=m&&this.types&&(a=this.types.some(f=>f.id==m&&(s=f.domains&&f.domains[t],s&&"inherited"===s.type&&(s=this._getLayerDomain(t)),!0))),a||s||(s=this._getLayerDomain(t)),s}getField(t){return this.fieldsIndex.get(t)}queryFeatures(t,e){return this.load().then(()=>this.source.queryFeatures(S.Z.from(t)||this.createQuery(),e)).then(s=>{if(s?.features)for(const a of s.features)a.layer=a.sourceLayer=this;return s})}queryObjectIds(t,e){return this.load().then(()=>this.source.queryObjectIds(S.Z.from(t)||this.createQuery(),e))}queryFeatureCount(t,e){return this.load().then(()=>this.source.queryFeatureCount(S.Z.from(t)||this.createQuery(),e))}queryExtent(t,e){return this.load().then(()=>this.source.queryExtent(S.Z.from(t)||this.createQuery(),e))}hasDataChanged(){var t=this;return(0,y.Z)(function*(){try{const{dataChanged:e,updates:s}=yield t.source.refresh(t.customParameters);return(0,h.pC)(s)&&t.read(s,{origin:"service",url:t.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1})()}_getLayerDomain(t){if(!this.fields)return null;let e=null;return this.fields.some(s=>(s.name===t&&(e=s.domain),!!e)),e}};(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1,write:!1}})],i.prototype,"capabilities",null),(0,o._)([(0,n.Cb)({type:String})],i.prototype,"copyright",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],i.prototype,"createQueryVersion",null),(0,o._)([(0,n.Cb)({readOnly:!0})],i.prototype,"defaultPopupTemplate",null),(0,o._)([(0,n.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,o._)([(0,n.Cb)({type:String})],i.prototype,"displayField",void 0),(0,o._)([(0,n.Cb)({type:Boolean})],i.prototype,"editingEnabled",void 0),(0,o._)([(0,n.Cb)(c.PV)],i.prototype,"elevationInfo",void 0),(0,o._)([(0,n.Cb)({type:[dt.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],i.prototype,"fields",void 0),(0,o._)([(0,n.Cb)(vt.fieldsIndex)],i.prototype,"fieldsIndex",void 0),(0,o._)([(0,n.Cb)({type:Q.Z,json:{name:"extent"}})],i.prototype,"fullExtent",void 0),(0,o._)([(0,n.Cb)({type:["point","polygon","polyline","multipoint"],json:{read:{reader:U.Mk.read}}})],i.prototype,"geometryType",void 0),(0,o._)([(0,n.Cb)({type:Boolean})],i.prototype,"hasZ",void 0),(0,o._)([(0,n.Cb)(c.id)],i.prototype,"id",void 0),(0,o._)([(0,n.Cb)({type:Boolean,readOnly:!0})],i.prototype,"isTable",null),(0,o._)([(0,n.Cb)(c.iR)],i.prototype,"labelsVisible",void 0),(0,o._)([(0,n.Cb)({type:[ht.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:ct.r},write:!0}})],i.prototype,"labelingInfo",void 0),(0,o._)([(0,n.Cb)(c.rn)],i.prototype,"legendEnabled",void 0),(0,o._)([(0,n.Cb)({type:["show","hide"]})],i.prototype,"listMode",void 0),(0,o._)([(0,n.Cb)({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],i.prototype,"objectIdField",void 0),(0,o._)([(0,n.Cb)(c.Oh)],i.prototype,"opacity",void 0),(0,o._)([(0,n.Cb)({type:["GeoJSON"]})],i.prototype,"operationalLayerType",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,o._)([(0,n.Cb)(c.C_)],i.prototype,"popupEnabled",void 0),(0,o._)([(0,n.Cb)({type:C.Z,json:{name:"popupInfo",write:!0}})],i.prototype,"popupTemplate",void 0),(0,o._)([(0,n.Cb)({types:F.A,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:F.o}}}})],i.prototype,"renderer",null),(0,o._)([(0,n.Cb)(c.YI)],i.prototype,"screenSizePerspectiveEnabled",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],i.prototype,"source",void 0),(0,o._)([(0,n.Cb)({type:z.Z})],i.prototype,"spatialReference",void 0),(0,o._)([(0,n.Cb)({type:[ut.Z]})],i.prototype,"templates",void 0),(0,o._)([(0,n.Cb)()],i.prototype,"title",void 0),(0,o._)([(0,n.Cb)({json:{read:!1},readOnly:!0})],i.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:String,readOnly:!0})],i.prototype,"typeIdField",void 0),(0,o._)([(0,n.Cb)({type:[pt.Z]})],i.prototype,"types",void 0),(0,o._)([(0,n.Cb)(c.HQ)],i.prototype,"url",null),i=(0,o._)([(0,L.j)("esri.layers.GeoJSONLayer")],i);const ft=i},87757:(b,g,r)=>{r.d(g,{g:()=>y});const y={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},56554:(b,g,r)=>{r.d(g,{Dm:()=>Z,Hq:()=>D,MS:()=>J,bU:()=>P});var y=r(8314),o=r(58817),x=r(87757),C=r(24837);function P(u){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===u||"esriGeometryMultipoint"===u?C.I4:"esriGeometryPolyline"===u?C.ET:C.lF}}}const N=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let j=1;function Z(u,d){if((0,y.Z)("esri-csp-restrictions"))return()=>({[d]:null,...u});try{let E=`this.${d} = null;`;for(const h in u)E+=`this${N.test(h)?`.${h}`:`["${h}"]`} = ${JSON.stringify(u[h])};`;const F=new Function(`\n return class AttributesClass$${j++} {\n constructor() {\n ${E};\n }\n }\n `)();return()=>new F}catch{return()=>({[d]:null,...u})}}function D(u={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.d9)(u)}}]}function J(u,d){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:u},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:d,supportsDelete:d,supportsEditing:d,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:d,supportsExceedsLimitStatistics:!0},query:x.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:d,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2943.f163cbeb2388c572.js b/apps/n/porrtal-io-app/public/angular/2943.f163cbeb2388c572.js deleted file mode 100644 index 721528c9..00000000 --- a/apps/n/porrtal-io-app/public/angular/2943.f163cbeb2388c572.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2943],{8549:(Je,ge,L)=>{L.d(ge,{C:()=>B,b:()=>ee});var P=L(10109),ne=L(33726),S=L(2166),b=L(95285),De=L(69960),Re=L(17625),q=L(22355),we=L(44835),ue=L(16396);function ee(T){const I=new q.kG;I.extensions.add("GL_OES_standard_derivatives");const{vertex:oe,fragment:W}=I;return(0,S.Sv)(oe,T),I.attributes.add(ue.T.POSITION,"vec3"),I.attributes.add(ue.T.UV0,"vec2"),I.varyings.add("vUV","vec2"),T.hasMultipassTerrain&&I.varyings.add("depth","float"),oe.code.add(Re.H` - void main(void) { - vUV = uv0; - ${T.hasMultipassTerrain?"depth = (view * vec4(position, 1.0)).z;":""} - gl_Position = proj * view * vec4(position, 1.0); - } - `),I.include(P.l,T),W.uniforms.add(new b.A("size",Z=>Z.size)),W.uniforms.add(new De.N("color1",Z=>Z.color1)),W.uniforms.add(new De.N("color2",Z=>Z.color2)),W.include(ne.Y),W.code.add(Re.H` - void main() { - ${T.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - vec2 uvScaled = vUV / (2.0 * size); - - vec2 uv = fract(uvScaled - 0.25); - vec2 ab = clamp((abs(uv - 0.5) - 0.25) / fwidth(uvScaled), -0.5, 0.5); - float fade = smoothstep(0.25, 0.5, max(fwidth(uvScaled.x), fwidth(uvScaled.y))); - float t = mix(abs(ab.x + ab.y), 0.5, fade); - - gl_FragColor = mix(color2, color1, t); - ${T.transparencyPassType===we.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - } - `),I}const B=Object.freeze(Object.defineProperty({__proto__:null,build:ee},Symbol.toStringTag,{value:"Module"}))},32943:(Je,ge,L)=>{L.r(ge),L.d(ge,{default:()=>$t});var P=L(17626),ne=L(14517),S=L(62208),b=L(77712),q=(L(85931),L(90912),L(76898)),we=L(39691),ue=L(1437),ee=L(74554),B=L(32917),T=L(55915),I=L(12080),oe=L(21286),W=L(15572),Z=L(67831),pe=L(99770),D=L(84161),R=L(28093),ae=L(4794),ze=L(65234),ke=L(78172),xe=L(11519),qe=L(11544),et=L(44766),tt=L(37118),me=L(10049),ve=L(98943);function at(h,n,d){const v=new me._q;return(0,me.cA)(v,[h[0],h[1]],[n[0],n[1]],d),v.distance}function ht(h,n,d,v){const y=dt;return(0,T.ke)(h,v,$)&&(0,T.ke)(n,v,Q)&&(0,T.ke)(d,v,Ge)?(y.setPoint(0,0,$),y.setPoint(0,1,Q),y.setPoint(0,2,Ge),Math.abs((0,et.geodesicArea)(y,"square-meters"))):0}const $=(0,R.c)(),Q=(0,R.c)(),Ge=(0,R.c)(),dt=new tt.Z({rings:[[$,Q,Ge]],spatialReference:ze.Z.WGS84}),F=(0,R.c)();var Te=L(495),ct=L(53929),Ie=L(37187),he=L(16730),gt=L(11915);function Ee(h){return(0,gt.e)(function mt(h){const n=new Float64Array(2*h.length);for(let d=0;d{(function ft(h,n){n.hasZ||(n.z=(0,S.Pt)((0,ct.KO)(h,n,"ground"),0))})(v.elevationProvider,x),(0,T.KC)(x,Ae[N],w),(0,T.KC)(x,X[N],V),j&&((0,T.UY)(x,E[N]),(0,T.KC)(x,re[N],z),(0,D.n)(re[N],re[N]))});const Ve=this._updatePathLengths(y);if(this.pathLength=this._length>1?(0,W.yG)(A.normalizeDistance(Ve),"meters"):null,j){const x=this._updateGeodesicPathLengths(y,w);this.geodesicPathLength=this._length>1?(0,W.yG)(x,"meters"):null}else this.geodesicPathLength=null;return this._updateCursorSegmentLength(n,d),this._updateMode(n,_),y?(this._updateArea(v,A,V,w,C),j&&this._updateGeodesicArea(v),!0):(this.area=null,this.geodesicArea=null,this.perimeterLength=null,this.triangleIndices=null,this.geodesicTriangleIndices=null,this.intersectingSegments.clear(),this.geodesicIntersectingSegments.clear(),!0)}getData(){return{positionsWorldCoords:this.positionsWorldCoords,positionsRenderCoords:this.positionsRenderCoords,positionsProjectedWorldCoords:this.positionsProjectedWorldCoords,positionsFittedRenderCoords:this.positionsFittedRenderCoords,positionsGeographic:this.positionsGeographic,positionsSpherical:this.positionsSpherical,positionsStereographic:this.positionsStereographic,pathSegmentLengths:this.pathSegmentLengths,geodesicPathSegmentLengths:this.geodesicPathSegmentLengths,perimeterSegmentLengths:this.perimeterSegmentLengths,intersectingSegments:this.intersectingSegments,geodesicIntersectingSegments:this.geodesicIntersectingSegments,triangleIndices:this.triangleIndices,geodesicTriangleIndices:this.geodesicTriangleIndices,areaCentroidWorldCoords:this.areaCentroidWorldCoords,areaCentroidRenderCoords:this.areaCentroidRenderCoords,geodesicAreaCentroidRenderCoords:this.geodesicAreaCentroidRenderCoords,fittingMode:this.fittingMode,area:this.area,geodesicArea:this.geodesicArea,pathLength:this.pathLength,geodesicPathLength:this.geodesicPathLength,perimeterLength:this.perimeterLength,cursorSegmentLength:this.cursorSegmentLength,geodesicCursorSegmentLength:this.geodesicCursorSegmentLength,unitNormalizer:this.unitNormalizer,actualMeasurementMode:this.actualMeasurementMode}}_resize(n){for(n2&&function it(h,n){if(h.length<3)throw new Error("need at least 3 points to fit a plane");(0,ve.pG)(h[0],h[1],h[2],n)}(M,G),this.fittingMode=this._selectFittingMode(G,M,this._worldUp,C);let z=0;if("horizontal"===this.fittingMode){let x=-1/0;A.forEach((N,be)=>{const Qe=_.getAltitude(A[be]);Qe>x&&(x=Qe,z=be)})}const j=M[z];let E=G,Ae=this._worldTangent;"horizontal"===this.fittingMode?E=this._worldUp:"vertical"===this.fittingMode&&(E=this._tempVec3,Ae=this._worldUp,(0,ve.T)(G,this._worldUp,E)),(0,D.c)(this._frame[2],E),(0,ve.T)(Ae,E,this._frame[0]),(0,D.f)(this._frame[1],this._frame[0],this._frame[2]),(0,D.o)(this._frame[1],this._frame[1]);const X=this._tempVec3,re=this._tempU,Ve=this._tempV;for(let x=0;x0?(0,W.yG)(d.normalizeDistance(this._updatePerimeterLengths()),"meters"):null,(0,Te.H)(w,this.areaCentroidRenderCoords),(0,T.SH)(this.areaCentroidRenderCoords,v,this.areaCentroidWorldCoords,y),this._updateIntersectingSegments(),this.area=0===this.intersectingSegments.size?(0,W.ne)(d.normalizeArea(this._computeArea()),"square-meters"):null}_updateGeodesicArea(n){const{renderCoordsHelper:d,spatialReference:v}=n,{positionsSpherical:y,positionsStereographic:C}=this,_=this._tempVec3,M=function lt(h,n=null,d=!0){const y=(C,_)=>{if(0===_[0]&&0===_[1]&&0===_[2])return!1;for(let M=0;MMath.abs(function rt(h,n){return(0,D.e)(h,n)+h[3]}(n,w))).reduce((w,G)=>Math.max(w,G),0);!function st(h,n){const d=n.center;(0,D.s)(d,0,0,0);for(let y=0;yMath.cos((0,oe.Vl)(y.verticalAngleThreshold))?"horizontal":"vertical"),V}_updateCursorSegmentLength(n,d){const v=n.lastPoint;!n.isValidPolygon&&(0,S.pC)(v)&&(0,S.pC)(d)?(this.geodesicCursorSegmentLength=(0,W.yG)(function ot(h,n){if(!(0,T.UY)(h,$)||!(0,T.UY)(n,Q))return 0;const d=new me._q;return(0,me.cA)(d,[$[0],$[1]],[Q[0],Q[1]]),d.distance}(v,d),"meters"),this.cursorSegmentLength=(0,W.yG)(this.unitNormalizer.normalizeDistance(function nt(h,n,d){return(0,T.KC)(h,$,d)&&(0,T.KC)(n,Q,d)?(0,D.i)($,Q):0}(v,d,this.unitNormalizer.spatialReference)),"meters")):(this.geodesicCursorSegmentLength=null,this.cursorSegmentLength=null)}_updateMode(n,d){if(d===ee.e.Auto){this.actualMeasurementMode="euclidean";let v=0;null!=this.geodesicPathLength&&(v+=this.geodesicPathLength.value),!n.isValidPolygon&&(0,S.pC)(this.geodesicCursorSegmentLength)&&(v+=this.geodesicCursorSegmentLength.value),v>yt&&(this.actualMeasurementMode="geodesic")}else this.actualMeasurementMode=d===ee.e.Euclidean?"euclidean":"geodesic";null==this.geodesicPathLength&&(this.actualMeasurementMode="euclidean"),this._mode=d}}const yt=1e5;var Lt=L(68);let te=class extends ne.Z{constructor(h){super(h)}initialize(){const{spatialReference:h}=this.view,n=(0,I.rS)(h),d=n===I.GG?I.wY:n,v=!h||(0,T.Up)(h,d)?d:h,y=new Lt.D(v);this._measurementDataManager=new vt(this.view,y),this.addHandles([this.analysisViewData.path.on("change",()=>this._update()),(0,B.YP)(()=>this.analysisViewData.cursorPoint,()=>this._update(),B.Z_),(0,B.YP)(()=>this.analysisViewData.mode,()=>this._update(),B.Z_)]),this._update()}_update(h=!1){const{analysisViewData:n,view:d}=this;this._measurementDataManager.update(n.path,n.cursorPoint,d,n.validMeasurement,{maxRelativeErrorCoplanar:.005,maxRelativeErrorAlmostCoplanar:.01,verticalAngleThreshold:80},n.mode,h)&&(n.measurementData=this._measurementDataManager.getData())}};(0,P._)([(0,b.Cb)({constructOnly:!0})],te.prototype,"view",void 0),(0,P._)([(0,b.Cb)({constructOnly:!0})],te.prototype,"analysis",void 0),(0,P._)([(0,b.Cb)({constructOnly:!0})],te.prototype,"analysisViewData",void 0),te=(0,P._)([(0,q.j)("esri.views.3d.analysis.AreaMeasurement.support.AreaMeasurementController")],te);var Ct=L(61885),Be=L(72392),_t=L(63290),St=L(72642),Oe=L(65401),Pt=L(54865),Mt=L(50017),Fe=L(466),He=L(97737);const Ne="esri.views.3d.analysis.AreaMeasurement.support.AreaMeasurement3DPathHelper",At=_t.Z.getLogger(Ne);let K=class extends Ct.Z.EventedAccessor{constructor(h={}){super(h),this._handles=new Be.Z,this._version=0,this._internalGeometryChange=!1,this._extent=(0,Oe.cS)()}destroy(){this._handles=(0,S.SC)(this._handles)}set areaMeasurement(h){this._set("areaMeasurement",h),(0,S.pC)(h)&&(0,S.pC)(this.view)&&this._initialize(h,this.view)}set view(h){this._set("view",h),(0,S.pC)(h)&&(0,S.pC)(this.areaMeasurement)&&this._initialize(this.areaMeasurement,h)}get constructed(){return(0,S.pC)(this.areaMeasurement)&&(0,S.pC)(this.view)}get version(){return this._version}get isValidPolygon(){return this.constructed&&this._editGeometry.components.length>0&&this._editGeometry.components[0].isClosed()}get extent(){if(this.constructed&&this._editGeometry.components.length>0&&this._editGeometry.components[0].vertices.length>0){const h=(0,Oe.cS)(this._extent);return this.forEachVertex(n=>{(0,Oe.Ho)(h,n.pos)}),h}return null}get spatialReference(){return this.constructed?this._editGeometry.coordinateHelper.spatialReference:null}_initialize(h,n){this._handles.removeAll(),this._handles.add((0,B.YP)(()=>h.geometry,()=>{this._updateEditGeometryFromModelGeometry(h,n)},B.tX)),this._makeDirty(!0)}_makeDirty(h=!1){this.notifyChange("isValidPolygon"),this.notifyChange("initialized"),this.notifyChange("extent"),h&&this.notifyChange("numVertices")}_updateEditGeometryFromModelGeometry(h,n){if(this._version++,this._internalGeometryChange)return;this._handles.remove("EditGeometry");let d=h.geometry;if((0,S.pC)(d)){const v=(0,T.fM)(d,n.spatialReference);(0,S.Wi)(v)&&(0,Pt.e)(h,d.spatialReference,At),d=v}this._editGeometryOperations=(0,S.pC)(d)?He.c.fromGeometry(d,n.state.viewingMode):new He.c(new Fe.XE("polygon",(0,Mt.Y6)(!0,!1,n.spatialReference))),this._makeDirty(!0),this.emit("change"),this._handles.add(this._editGeometry.on("change",v=>{this._makeDirty(null!=v.addedVertices||null!=v.removedVertices),this._internalGeometryChange=!0,h.geometry=this.numVertices>0?this._editGeometry.geometry:null,this._internalGeometryChange=!1}),"EditGeometry")}get _editGeometry(){return this._editGeometryOperations.data}get vertices(){const h=[];return this.forEachVertex(n=>{h.push(n)}),h}get numVertices(){return this.constructed&&this._editGeometry.components.length>0?this._editGeometry.components[0].vertices.length:0}get lastPoint(){if(this.constructed&&this._editGeometry.components.length>0){const h=this._editGeometry.components[0].getLastVertex();if((0,S.pC)(h))return this._editGeometry.coordinateHelper.vectorToPoint(h.pos)}return null}getVertex(h){if(!this.constructed||0===this._editGeometry.components.length||0===this._editGeometry.components[0].vertices.length)return null;const n=this._editGeometry.components[0].vertices[0];let d=n;do{if(d.index===h)return d;d=d.rightEdge.rightVertex}while(d!==n&&null!=d);return null}getVertexPositionAsPoint(h){return this._editGeometry.coordinateHelper.vectorToPoint(h.pos)}getVertexPositionAsPointFromIndex(h){return this._editGeometry.coordinateHelper.vectorToPoint(this.getVertex(h).pos)}forEachVertex(h){this.constructed&&this._editGeometry.components.length>0&&this._editGeometry.components[0].iterateVertices(h)}forEachVertexPosition(h){const n=this._editGeometry.coordinateHelper;this.forEachVertex((d,v)=>{n.vectorToPoint(d.pos,Ze),h(Ze,v)})}clear(){(0,S.pC)(this.areaMeasurement)&&(this.areaMeasurement.geometry=null)}add(h){if(!this.constructed)return null;if(0===this._editGeometry.components.length){const d=(0,S.Wg)(this.view);this._editGeometry.components.push(new Fe.wA(d.spatialReference,d.state.viewingMode))}const n=this._editGeometryOperations.appendVertex(this._editGeometry.coordinateHelper.pointToVector(h));return this.emit("change"),n}close(){if(!this.constructed||0===this._editGeometry.components.length)return null;const h=this._editGeometryOperations.closeComponent(this._editGeometry.components[0]);return this.emit("change"),h}ensureContains(h,n=""){let d=!1;if(this._editGeometry.components.forEach(v=>{v.iterateVertices(y=>{y===h&&(d=!0)})}),!d)throw new Error(`vertex doesnt exist ${n}`);return d}setVertexPosition(h,n){if(!this.constructed)return null;const d=this._editGeometryOperations.setVertexPosition(h,this._editGeometry.coordinateHelper.pointToVector(n));return this.emit("change"),d}equals(h){if(this.numVertices!==h.numVertices)return!1;let n=!0;return this.forEachVertexPosition((d,v)=>{const y=h.getVertexPositionAsPointFromIndex(v);d.equals(y)||(n=!1)}),!!n}};(0,P._)([(0,b.Cb)({value:null})],K.prototype,"areaMeasurement",null),(0,P._)([(0,b.Cb)({value:null})],K.prototype,"view",null),(0,P._)([(0,b.Cb)()],K.prototype,"isValidPolygon",null),(0,P._)([(0,b.Cb)()],K.prototype,"extent",null),(0,P._)([(0,b.Cb)()],K.prototype,"spatialReference",null),(0,P._)([(0,b.Cb)()],K.prototype,"numVertices",null),K=(0,P._)([(0,q.j)(Ne)],K);const Ze=new St.Z;var le=L(91558),J=(L(52515),L(51819)),Ke=(L(8314),L(84600)),Ye=L(28347),Vt=L(43703),fe=L(68063),de=L(87469),ye=L(993),bt=L(53928),Dt=L(52107),Y=L(40723),Le=L(16396),Xe=L(13934),Rt=L(60881),Ce=L(5894),$e=L(60909),wt=L(57623),Gt=L(651),Tt=L(91056),Et=L(39114),Ue=L(88569),Ot=L(12407),_e=L(44835),Ut=L(8549),Se=L(67969),Pe=L(2078);class Me extends Tt.A{initializeProgram(n){return new Ot.$(n.rctx,Me.shader.get().build(this.configuration),Et.i)}_setPipelineState(n){const d=this.configuration,v=n===_e.A.NONE,y=n===_e.A.FrontFace;return(0,Pe.sm)({blending:d.transparent?v?xt:(0,Ue.j7)(n):null,depthTest:{func:(0,Ue.Bh)(n)},depthWrite:v?d.writeDepth&&Pe.LZ:(0,Ue.K5)(n),colorWrite:Pe.BK,polygonOffset:v||y?d.polygonOffset&&zt:{factor:-1,units:-25}})}initializePipeline(){return this._setPipelineState(this.configuration.transparencyPassType)}}Me.shader=new Gt.J(Ut.C,()=>L.e(2558).then(L.bind(L,2558)));const zt={factor:0,units:-25},xt=(0,Pe.wK)(Se.zi.SRC_ALPHA,Se.zi.ONE,Se.zi.ONE_MINUS_SRC_ALPHA,Se.zi.ONE_MINUS_SRC_ALPHA);var se=L(87601),It=L(41528);class k extends It.W{constructor(){super(...arguments),this.transparencyPassType=_e.A.NONE,this.transparent=!1,this.writeDepth=!0,this.polygonOffset=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1}}(0,P._)([(0,se.o)({count:_e.A.COUNT})],k.prototype,"transparencyPassType",void 0),(0,P._)([(0,se.o)()],k.prototype,"transparent",void 0),(0,P._)([(0,se.o)()],k.prototype,"writeDepth",void 0),(0,P._)([(0,se.o)()],k.prototype,"polygonOffset",void 0),(0,P._)([(0,se.o)()],k.prototype,"hasMultipassTerrain",void 0),(0,P._)([(0,se.o)()],k.prototype,"cullAboveGround",void 0);class Wt extends Y.F5{constructor(n){super(n,new Bt),this._configuration=new k}dispose(){}getConfiguration(n,d){return this._configuration.transparent=this.parameters.transparent,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.polygonOffset=this.parameters.polygonOffset,this._configuration.transparencyPassType=d.transparencyPassType,this._configuration.hasMultipassTerrain=d.multipassTerrain.enabled,this._configuration.cullAboveGround=d.multipassTerrain.cullAboveGround,this._configuration}intersect(n,d,v,y,C,_,M){return(0,wt.Bw)(n,d,y,C,_,void 0,M)}requiresSlot(n,d){return!(d!==Xe.H.Color&&d!==Xe.H.Alpha||n!==(this.parameters.transparent?this.parameters.writeDepth?Ce.r.TRANSPARENT_MATERIAL:Ce.r.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL:Ce.r.OPAQUE_MATERIAL)&&n!==Ce.r.DRAPED_MATERIAL)}createGLMaterial(n){return new jt(n)}createBufferWriter(){return new $e.G_($e.W1)}}class jt extends Rt.Z{beginSlot(n){return this.ensureTechnique(Me,n)}}class Bt extends Y.Mt{constructor(){super(...arguments),this.size=(0,pe.f)(1,1),this.color1=(0,ae.f)(.75,.75,.75,1),this.color2=(0,ae.f)(.5,.5,.5,1),this.transparent=!1,this.writeDepth=!0,this.polygonOffset=!1}}class Ft extends bt._{constructor(n){super(n),this._checkerBoardMaterial=null,this._renderOccluded=Y.yD.OccludeAndTransparent,this._geometry=null,this._size=(0,pe.f)(1,1),this._color1=(0,ae.f)(1,.5,0,.5),this._color2=(0,ae.f)(1,1,1,.5),this.applyProps(n)}get renderOccluded(){return this._renderOccluded}set renderOccluded(n){n!==this._renderOccluded&&(this._renderOccluded=n,this._updateMaterial())}get geometry(){return this._geometry}set geometry(n){this._geometry=n,this._geometryChanged()}get size(){return this._size}set size(n){(0,Z.c)(this._size,n),this._updateMaterial()}get color1(){return this._color1}set color1(n){(0,ye.g)(n,this._color1)||((0,ye.c)(this._color1,n),this._updateMaterial())}get color2(){return this._color2}set color2(n){(0,ye.g)(n,this._color2)||((0,ye.c)(this._color2,n),this._updateMaterial())}_updateMaterial(){(0,S.pC)(this._checkerBoardMaterial)&&this._checkerBoardMaterial.setParameters({size:this._size,color1:this._color1,color2:this._color2,renderOccluded:this._renderOccluded})}createExternalResources(){this._checkerBoardMaterial=new Wt({size:this._size,color1:this._color1,color2:this._color2,transparent:!0,writeDepth:!1,polygonOffset:!0,renderOccluded:Y.yD.OccludeAndTransparent})}destroyExternalResources(){this._checkerBoardMaterial=null}forEachExternalMaterial(n){(0,S.pC)(this._checkerBoardMaterial)&&n(this._checkerBoardMaterial)}createGeometries(n){if((0,S.Wi)(this._geometry)||(0,S.Wi)(this._checkerBoardMaterial))return;const d=Ht;(0,Ye.B)(d,this.transform);const v=this._geometry,y=[],C=(0,R.c)();v.position.forEach(A=>{(0,D.b)(C,A,d),y.push(C[0],C[1],C[2])});const _=[];v.uv.forEach(A=>{_.push(A[0],A[1])});const M=new Dt.Z([[Le.T.POSITION,{size:3,data:y,exclusive:!0}],[Le.T.UV0,{size:2,data:_,exclusive:!0}]],[[Le.T.POSITION,v.triangleIndices],[Le.T.UV0,v.triangleIndices]]);n.addGeometry(M,this._checkerBoardMaterial)}_geometryChanged(){this.recreateGeometry()}}const Ht=(0,R.c)();var ce=L(64770),Nt=L(54889),Zt=L(56683),Kt=L(41840);let H=class extends ne.Z{constructor(h){super(h),this._handles=new Be.Z,this._params={pathLineColor:le.Z.toUnitRGBA((0,J.e9)()),pathLineWidth:3,intersectingLineColor:[1,.2,0,1],perimeterLineColor:le.Z.toUnitRGBA((0,J.e9)()),perimeterLineWidth:2,projectionLineColor:le.Z.toUnitRGBA((0,J.e9)()),projectionLineWidth:2,projectionLineStippleSize:5,areaColor1:le.Z.toUnitRGBA((0,J.e9)(.5)),areaColor2:le.Z.toUnitRGBA((0,J.RN)(.5)),labelDistance:25},this._path=null,this._intersectedPath=null,this._perimeter=null,this._intersectedPerimeter=null,this._projectionLines=null,this._measurementArea=null,this._areaLabel=null,this._pathLengthLabel=null,this._cursorSegmentLengthLabel=null,this._perimeterLengthLabel=null,this._pathSegments=[],this._perimeterSegments=[],this._cursorSegment=null,this._origin=(0,R.c)(),this._originTransform=(0,Vt.c)(),this._cursorPositionRenderSpace=(0,R.c)(),this.messages=null,this.viewData=Yt,this.areaLabel=null,this.perimeterLengthLabel=null,this.loadingMessages=!0}get visible(){return this.analysisViewData.visible}get testData(){return{labels:{area:this._areaLabel,pathLength:this._pathLengthLabel,cursorSegmentLength:this._cursorSegmentLengthLabel,perimeterLength:this._perimeterLengthLabel}}}initialize(){const{analysisViewData:h,_params:n,view:d}=this;this._path=new de.r({view:d,attached:!0,width:n.pathLineWidth,color:n.pathLineColor,polygonOffset:!0,renderOccluded:Y.yD.OccludeAndTransparent}),this._intersectedPath=new de.r({view:d,attached:!0,width:n.pathLineWidth,color:n.intersectingLineColor,polygonOffset:!0,renderOccluded:Y.yD.OccludeAndTransparent}),this._perimeter=new de.r({view:d,attached:!0,width:n.perimeterLineWidth,color:n.perimeterLineColor,polygonOffset:!0,renderOccluded:Y.yD.OccludeAndTransparent}),this._intersectedPerimeter=new de.r({view:d,attached:!0,width:n.perimeterLineWidth,color:n.intersectingLineColor,polygonOffset:!0,renderOccluded:Y.yD.OccludeAndTransparent}),this._projectionLines=new de.r({view:d,attached:!0,width:n.projectionLineWidth,color:n.projectionLineColor,stipplePattern:(0,Nt.z5)(n.projectionLineStippleSize),polygonOffset:!0,renderOccluded:Y.yD.OccludeAndTransparent}),this._measurementArea=new Ft({view:d,attached:!0,color1:n.areaColor1,color2:n.areaColor2});const v={attached:!0,backgroundColor:(0,J.hU)(.6),textColor:(0,J.uu)(),view:d};this._areaLabel=new fe.Kc({...v,fontSize:ie.Large}),this._pathLengthLabel=new fe.Kc({...v,fontSize:ie.Small}),this._cursorSegmentLengthLabel=new fe.Kc({...v,fontSize:ie.Small}),this._perimeterLengthLabel=new fe.Kc({...v,fontSize:ie.Small}),this._handles.add([(0,B.YP)(()=>[h.mode,this.visible,h.unit,h.measurementData,h.cursorPoint],()=>this._update(),B.tX),(0,B.YP)(()=>d.state?.camera,()=>this._updateLabels(),B.tX),(0,Zt.qe)(()=>this._updateMessageBundle())]),this._updateMessageBundle()}destroy(){this._measurementArea=(0,S.SC)(this._measurementArea),this._path=(0,S.SC)(this._path),this._intersectedPath=(0,S.SC)(this._intersectedPath),this._perimeter=(0,S.SC)(this._perimeter),this._intersectedPerimeter=(0,S.SC)(this._intersectedPerimeter),this._areaLabel=(0,S.SC)(this._areaLabel),this._pathLengthLabel=(0,S.SC)(this._pathLengthLabel),this._cursorSegmentLengthLabel=(0,S.SC)(this._cursorSegmentLengthLabel),this._perimeterLengthLabel=(0,S.SC)(this._perimeterLengthLabel),this._projectionLines=(0,S.SC)(this._projectionLines),this._handles=(0,S.SC)(this._handles),this.set("view",null)}_update(){if(this.destroyed||!this.view.ready||!this.view.renderCoordsHelper)return;const{analysisViewData:{measurementData:h},analysisViewData:n}=this;(0,S.Wi)(h)||(this._updateViewData(h,n.path,n.cursorPoint),this._updateOrigin(),this._updatePathSegments(),this._updatePerimeterSegments(),this._updateArea(),this._updateProjectionLines(),this._updateLabels())}_updateViewData(h,n,d){const v=n.isValidPolygon,y="geodesic"===h.actualMeasurementMode,C=y?h.geodesicArea:h.area;let _=1;if(C){const A=this._toPreferredAreaUnit(C,this.analysisViewData.unit);_=(0,oe.sk)(Math.sqrt(A.value)/Math.sqrt(300)),_*=Math.sqrt((0,he.En)(1,A.unit,"square-meters")),_/=h.unitNormalizer.normalizeDistance(1)}this._set("viewData",{validMeasurement:v,path:n,pathVersion:n.version,cursorPoint:d,measurementData:h,mode:h.actualMeasurementMode,positionsGeographic:h.positionsGeographic,positionsRenderCoords:h.positionsRenderCoords,positionsProjected:h.positionsProjectedWorldCoords,positionsFittedRenderCoords:h.positionsFittedRenderCoords,intersectingSegments:y?h.geodesicIntersectingSegments:h.intersectingSegments,triangleIndices:y?h.geodesicTriangleIndices:h.triangleIndices,fittingMode:h.fittingMode,areaCentroid:y?h.geodesicAreaCentroidRenderCoords:h.areaCentroidRenderCoords,pathLengthLabelSegmentIndex:v?0:n.numVertices-2,perimeterLengthLabelSegmentIndex:0,checkerSize:_})}_updateOrigin(){(0,Te.H)(this.viewData.positionsRenderCoords,this._origin),(0,Ye.f)(this._originTransform,this._origin),this._measurementArea.transform=this._originTransform,this._projectionLines.transform=this._originTransform}_createSegments(h){const n=this.viewData,d=n.path,v=this.view.renderCoordsHelper.spatialReference,y=n.mode,C=[],_=[],M=[],A=n.validMeasurement?d.numVertices:d.numVertices-1;for(let V=0;V0&&M&&(0,S.pC)(y)&&h.toRenderCoords(y,this._cursorPositionRenderSpace)){const V=n.positionsRenderCoords[_.numVertices-1],w=this._cursorPositionRenderSpace;let G=null;switch(C){case"euclidean":G=new ce.y(V,w);break;case"geodesic":G=new ce.u(V,w,A)}v.nonIntersecting.push(G),this._cursorSegment=G}this._path.setGeometryFromSegments(v.nonIntersecting,this._origin),this._path.visible=d,this._intersectedPath.setGeometryFromSegments(v.intersecting,this._origin),this._intersectedPath.visible=d,this._pathSegments=v.all}_updatePerimeterSegments(){const h=this.visible&&"euclidean"===this.viewData.mode,n=this._createSegments("positionsFittedRenderCoords");this._perimeter.setGeometryFromSegments(n.nonIntersecting,this._origin),this._perimeter.visible=h,this._intersectedPerimeter.setGeometryFromSegments(n.intersecting,this._origin),this._intersectedPerimeter.visible=h,this._perimeterSegments=n.all}_updateArea(){const h=this.viewData;switch(h.mode){case"euclidean":this._updateAreaEuclidean(h);break;case"geodesic":this._updateAreaGeodesic()}}_updateAreaEuclidean(h){const n=this.visible;h.validMeasurement&&0===h.intersectingSegments.size&&h.triangleIndices?(this._measurementArea.geometry={uv:h.positionsProjected,position:h.positionsFittedRenderCoords,triangleIndices:h.triangleIndices},this._measurementArea.size=[h.checkerSize,h.checkerSize],this._measurementArea.visible=n):this._measurementArea.visible=!1}_updateAreaGeodesic(){this._measurementArea.visible=!1}_updateProjectionLines(){const h=this.viewData,n=this.visible,d=h.path;if(d.numVertices>0&&h.validMeasurement&&"euclidean"===h.mode){const y=[];for(let C=0;C=0&&h.pathLengthLabelSegmentIndex0&&C}else this._pathLengthLabel.visible=!1;const A="geodesic"===d?h.measurementData.geodesicCursorSegmentLength:h.measurementData.cursorSegmentLength;if((0,S.pC)(A)){const O=this._formatLengthLabel(this.messages,A,this.analysisViewData.unit);this._cursorSegmentLengthLabel.distance=this._params.labelDistance,this._cursorSegmentLengthLabel.geometry=(0,S.pC)(this._cursorSegment)?{type:"segment",segment:this._cursorSegment,sampleLocation:"end"}:null,this._cursorSegmentLengthLabel.anchor="bottom",this._cursorSegmentLengthLabel.text=(0,S.Wg)(O),this._cursorSegmentLengthLabel.visible=y&&0!==A.value&&C}else this._cursorSegmentLengthLabel.visible=!1;this._cursorSegmentLengthLabel.overlaps(this._pathLengthLabel)&&(this._cursorSegmentLengthLabel.visible=!1),this._pathLengthLabel.overlaps(this._areaLabel)&&(this._pathLengthLabel.visible=!1);const V="geodesic"===h.mode,G=this._formatLengthLabel(this.messages,V?n.geodesicPathLength:n.perimeterLength,this.analysisViewData.unit);if(this._set("perimeterLengthLabel",(0,S.Wg)(G)),h.validMeasurement&&0===h.intersectingSegments.size){this._perimeterLengthLabel.distance=this._params.labelDistance,this._perimeterLengthLabel.anchor="top",this._perimeterLengthLabel.text=(0,S.Wg)(G),this._perimeterLengthLabel.visible=!0;let O=!0;for(let z=0;z{this.messages=h,this.view&&this._update()}).finally(()=>{this.loadingMessages=!1})}};var ie,h;(0,P._)([(0,b.Cb)()],H.prototype,"view",void 0),(0,P._)([(0,b.Cb)()],H.prototype,"messages",void 0),(0,P._)([(0,b.Cb)()],H.prototype,"analysis",void 0),(0,P._)([(0,b.Cb)()],H.prototype,"viewData",void 0),(0,P._)([(0,b.Cb)()],H.prototype,"analysisViewData",void 0),(0,P._)([(0,b.Cb)({readOnly:!0})],H.prototype,"areaLabel",void 0),(0,P._)([(0,b.Cb)({readOnly:!0})],H.prototype,"perimeterLengthLabel",void 0),(0,P._)([(0,b.Cb)()],H.prototype,"loadingMessages",void 0),(0,P._)([(0,b.Cb)()],H.prototype,"visible",null),H=(0,P._)([(0,q.j)("esri.views.3d.analysis.AreaMeasurement.support.AreaMeasurementVisualization")],H),(h=ie||(ie={}))[h.Small=12]="Small",h[h.Large=16]="Large";const Yt={validMeasurement:!1,path:null,pathVersion:-1,cursorPoint:null,measurementData:null,mode:null,positionsGeographic:null,positionsRenderCoords:null,positionsProjected:null,positionsFittedRenderCoords:null,intersectingSegments:null,triangleIndices:null,fittingMode:null,areaCentroid:null,pathLengthLabelSegmentIndex:null,perimeterLengthLabelSegmentIndex:null,checkerSize:null},Xt=new ce.y((0,R.c)(),(0,R.c)());let U=class extends((0,ue.p)(ne.Z)){constructor(h){super(h),this.type="area-measurement-view-3d",this.analysis=null,this.measurementData=null,this.lastDraggedVertex=null,this.cursorPoint=null,this.mode=ee.e.Auto}initialize(){const{analysis:h,view:n}=this;this.path=new K({view:n,areaMeasurement:h}),this.analysisVisualization=new H({view:n,analysis:h,analysisViewData:this}),this.analysisController=new te({view:n,analysis:h,analysisViewData:this})}destroy(){this.analysisController=(0,S.SC)(this.analysisController),this.analysisVisualization=(0,S.SC)(this.analysisVisualization),this.path.destroy()}get updating(){return!!this.analysisVisualization?.loadingMessages}get result(){const{measurementData:h}=this;return(0,S.Wi)(h)?{area:null,mode:null,perimeter:null}:"euclidean"===h.actualMeasurementMode?{area:h.area,perimeter:h.perimeterLength,mode:"euclidean"}:{area:h.geodesicArea,perimeter:h.pathLength,mode:"geodesic"}}get viewData(){return this.analysisVisualization.viewData}get validMeasurement(){return this.path.isValidPolygon}get unit(){return(0,S.Pt)(this.analysis.unit,this._defaultUnit)}get testData(){return{visualization:this.analysisVisualization,controller:this.analysisController}}};(0,P._)([(0,b.Cb)({readOnly:!0})],U.prototype,"type",void 0),(0,P._)([(0,b.Cb)({constructOnly:!0,nonNullable:!0})],U.prototype,"analysis",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"updating",null),(0,P._)([(0,b.Cb)()],U.prototype,"analysisVisualization",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"analysisController",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"result",null),(0,P._)([(0,b.Cb)()],U.prototype,"measurementData",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"viewData",null),(0,P._)([(0,b.Cb)()],U.prototype,"validMeasurement",null),(0,P._)([(0,b.Cb)()],U.prototype,"path",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"lastDraggedVertex",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"cursorPoint",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"mode",void 0),(0,P._)([(0,b.Cb)()],U.prototype,"unit",null),(0,P._)([(0,b.Cb)(we.Y)],U.prototype,"_defaultUnit",void 0),U=(0,P._)([(0,q.j)("esri.views.3d.analysis.AreaMeasurementAnalysisView3D")],U);const $t=U}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2955.9c1a0738cdb069bd.js b/apps/n/porrtal-io-app/public/angular/2955.9c1a0738cdb069bd.js deleted file mode 100644 index 9ad38c13..00000000 --- a/apps/n/porrtal-io-app/public/angular/2955.9c1a0738cdb069bd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2955],{36554:(Z,m,t)=>{t.r(m),t.d(m,{default:()=>se});var g=t(15861),o=t(17626),L=(t(29132),t(73281)),T=(t(4832),t(49067),t(96794),t(69747),t(40425),t(69357),t(40342),t(73640),t(33474),t(32088)),Q=t(99959),s=t(77712),D=(t(85931),t(90912),t(76898)),C=t(71774),G=t(44917),b=t(26584),B=t(47996),S=t(62208),a=t(89628),A=t(17253),R=t(65234);let y=class extends B.Z{constructor(){super(...arguments),this.featureDefinition=null,this.type="ogc-feature"}load(e){return this.addResolvingPromise(this._loadOGCServices(this.layer,e)),this.when()}getSource(){const{featureDefinition:{collection:e,layerDefinition:r,spatialReference:n,supportedCrs:p},layer:{apiKey:d,customParameters:u,effectiveMaxRecordCount:l}}=this;return{type:"ogc-source",collection:e,layerDefinition:r,maxRecordCount:l,queryParameters:{apiKey:d,customParameters:u},spatialReference:n,supportedCrs:p}}queryExtent(e,r={}){return null}queryFeatureCount(e,r={}){return null}queryFeatures(e,r={}){return this.queryFeaturesJSON(e,r).then(n=>A.default.fromJSON(n))}queryFeaturesJSON(e,r={}){const n=this.getSource();return this.load(r).then(()=>(0,a.yN)(n,e,r))}queryObjectIds(e,r={}){return null}serviceSupportsSpatialReference(e){return!(!e.isWGS84&&!e.isWebMercator&&!this.featureDefinition.supportedCrs[e.wkid])}_conformsToType(e,r){const n=new RegExp(`^${r}$`,"i");return e.conformsTo.some(p=>n.test(p))??!1}_getCapabilities(e,r){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},query:{maxRecordCount:r,maxRecordCountFactor:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,tileMaxRecordCount:void 0},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1}}}_getMaxRecordCount(e){return e?.components?.parameters?.limit?.schema?.maximum??e?.components?.parameters?.limitFeatures?.schema?.maximum}_getStorageSpatialReference(e){const n=(0,a.d)(e.storageCrs??a.$9);return(0,S.Wi)(n)?R.Z.WGS84:new R.Z({wkid:n})}_getSupportedSpatialReferences(e,r){const n="#/crs",p=e.crs??[a.$9],d=p.includes(n)?p.filter(l=>l!==n).concat(r.crs):p,u=/^http:\/\/www\.opengis.net\/def\/crs\/epsg\/.*\/3785$/i;return d.filter(l=>!u.test(l))}_loadOGCServices(e,r){var n=this;return(0,g.Z)(function*(){const p=(0,S.pC)(r)?r.signal:null,{apiKey:d,collectionId:u,customParameters:l,fields:ie,geometryType:ne,hasZ:pe,objectIdField:ae,timeInfo:le,url:ue}=e,de={fields:ie?.map(v=>v.toJSON()),geometryType:C.P$.toJSON(ne),hasZ:pe,objectIdField:ae,timeInfo:le?.toJSON()},f={apiKey:d,customParameters:l,signal:p},F=yield(0,a.gp)(ue,f),[j,E]=yield Promise.all([(0,a.G4)(F,f),(0,a.j)(F,f)]);if(!n._conformsToType(j,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"))throw new b.Z("ogc-feature-layer:no-geojson-support","Server does not support geojson");const h=E.collections.find(v=>v.id===u);if(!h)throw new b.Z("ogc-feature-layer:collection-not-found","Server does not contain the named collection");const ye=n._conformsToType(j,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30")?yield(0,a.eS)(F,f):null,M=yield(0,a.w9)(h,de,f),ce=n._getMaxRecordCount(ye),ve=n._getCapabilities(M.hasZ,ce),fe=n._getStorageSpatialReference(h).toJSON(),he=n._getSupportedSpatialReferences(h,E),me=new RegExp(`^${a.Lu}`,"i"),I={};for(const v of he){const O=(0,a.d)(v);(0,S.pC)(O)&&(I[O]||(I[O]=v.replace(me,"")))}n.featureDefinition={capabilities:ve,collection:h,layerDefinition:M,spatialReference:fe,supportedCrs:I}})()}};(0,o._)([(0,s.Cb)()],y.prototype,"featureDefinition",void 0),(0,o._)([(0,s.Cb)({constructOnly:!0})],y.prototype,"layer",void 0),(0,o._)([(0,s.Cb)()],y.prototype,"type",void 0),y=(0,o._)([(0,D.j)("esri.layers.graphics.sources.OGCFeatureSource")],y);var N=t(50085),U=t(552),H=t(50107),z=t(35126),V=t(81380),J=t(49286),$=t(32629),W=t(6647),K=t(30346),Y=t(99555),X=t(97941),c=t(13812),w=t(41638),q=t(36255),k=t(55911),x=t(36630),_=t(170),ee=t(62667),P=t(96854),te=t(49430),re=t(2004);const oe=(0,k.v)();let i=class extends((0,N.V)((0,H.N)((0,V.M)((0,z.b)((0,U.h)((0,$.c)((0,X.n)((0,Y.M)((0,J.q)((0,W.I)((0,K.Q)((0,Q.R)(G.Z))))))))))))){constructor(e){super(e),this.collectionId=null,this.copyright=null,this.definitionExpression=null,this.description=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxRecordCount=null,this.objectIdField=null,this.operationalLayerType="OGCFeatureLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new y({layer:this}),this.spatialReference=null,this.title=null,this.type="ogc-feature",this.typeIdField=null,this.types=null,this.url=null}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["OGCFeatureServer"]},e).then(()=>this._fetchService(e))),this.when()}get defaultPopupTemplate(){return this.createPopupTemplate()}get effectiveMaxRecordCount(){return this.maxRecordCount??this.capabilities?.query.maxRecordCount??5e3}get isTable(){return this.loaded&&null==this.geometryType}set renderer(e){(0,x.YN)(e,this.fieldsIndex),this._set("renderer",e)}on(e,r){return super.on(e,r)}createPopupTemplate(e){return(0,te.eZ)(this,e)}createQuery(){return new P.Z}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,r){let n,p=!1;const d=r?.feature?.attributes,u=this.typeIdField&&d?.[this.typeIdField];return null!=u&&this.types&&(p=this.types.some(l=>l.id==u&&(n=l.domains?.[e],"inherited"===n?.type&&(n=this._getLayerDomain(e)),!0))),p||n||(n=this._getLayerDomain(e)),n}queryFeatures(e,r){return this.load().then(()=>this.source.queryFeatures(P.Z.from(e)||this.createQuery(),r)).then(n=>(n?.features?.forEach(p=>{p.layer=p.sourceLayer=this}),n))}serviceSupportsSpatialReference(e){return this.source?.serviceSupportsSpatialReference(e)??!1}_fetchService(e){var r=this;return(0,g.Z)(function*(){yield r.source.load(e),r.read(r.source.featureDefinition,{origin:"service"}),(0,x.YN)(r.renderer,r.fieldsIndex),(0,x.UF)(r.timeInfo,r.fieldsIndex)})()}_getLayerDomain(e){if(!this.fields)return null;for(const r of this.fields)if(r.name===e&&r.domain)return r.domain;return null}};(0,o._)([(0,s.Cb)({readOnly:!0,json:{origins:{service:{read:!0}}}})],i.prototype,"capabilities",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],i.prototype,"collectionId",void 0),(0,o._)([(0,s.Cb)({type:String})],i.prototype,"copyright",void 0),(0,o._)([(0,s.Cb)({readOnly:!0})],i.prototype,"defaultPopupTemplate",null),(0,o._)([(0,s.Cb)({type:String})],i.prototype,"definitionExpression",void 0),(0,o._)([(0,s.Cb)({readOnly:!0,type:String,json:{origins:{service:{name:"collection.description"}}}})],i.prototype,"description",void 0),(0,o._)([(0,s.Cb)({type:String})],i.prototype,"displayField",void 0),(0,o._)([(0,s.Cb)({type:Number})],i.prototype,"effectiveMaxRecordCount",null),(0,o._)([(0,s.Cb)(c.PV)],i.prototype,"elevationInfo",void 0),(0,o._)([(0,s.Cb)({type:[q.Z],json:{origins:{service:{name:"layerDefinition.fields"}}}})],i.prototype,"fields",void 0),(0,o._)([(0,s.Cb)(oe.fieldsIndex)],i.prototype,"fieldsIndex",void 0),(0,o._)([(0,s.Cb)({readOnly:!0,type:re.Z,json:{origins:{service:{name:"layerDefinition.extent"}}}})],i.prototype,"fullExtent",void 0),(0,o._)([(0,s.Cb)({type:C.Mk.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:C.Mk.read}}}}})],i.prototype,"geometryType",void 0),(0,o._)([(0,s.Cb)({type:Boolean,json:{origins:{service:{name:"layerDefinition.hasZ"}}}})],i.prototype,"hasZ",void 0),(0,o._)([(0,s.Cb)({type:Boolean,readOnly:!0})],i.prototype,"isTable",null),(0,o._)([(0,s.Cb)({type:[_.Z],json:{origins:{"web-document":{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:ee.r},write:!0}}}})],i.prototype,"labelingInfo",void 0),(0,o._)([(0,s.Cb)(c.iR)],i.prototype,"labelsVisible",void 0),(0,o._)([(0,s.Cb)(c.rn)],i.prototype,"legendEnabled",void 0),(0,o._)([(0,s.Cb)({type:Number})],i.prototype,"maxRecordCount",void 0),(0,o._)([(0,s.Cb)({type:String,json:{origins:{service:{name:"layerDefinition.objectIdField"}}}})],i.prototype,"objectIdField",void 0),(0,o._)([(0,s.Cb)({type:["OGCFeatureLayer"]})],i.prototype,"operationalLayerType",void 0),(0,o._)([(0,s.Cb)(c.C_)],i.prototype,"popupEnabled",void 0),(0,o._)([(0,s.Cb)({type:L.Z,json:{name:"popupInfo",write:!0}})],i.prototype,"popupTemplate",void 0),(0,o._)([(0,s.Cb)({types:T.A,json:{origins:{service:{name:"layerDefinition.drawingInfo.renderer",write:!1},"web-scene":{types:T.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:!0}})],i.prototype,"renderer",null),(0,o._)([(0,s.Cb)(c.YI)],i.prototype,"screenSizePerspectiveEnabled",void 0),(0,o._)([(0,s.Cb)({readOnly:!0})],i.prototype,"source",void 0),(0,o._)([(0,s.Cb)({readOnly:!0,type:R.Z,json:{origins:{service:{read:!0}}}})],i.prototype,"spatialReference",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"collection.title"}}}})],i.prototype,"title",void 0),(0,o._)([(0,s.Cb)({readOnly:!0,json:{read:!1}})],i.prototype,"type",void 0),(0,o._)([(0,s.Cb)({type:String,readOnly:!0})],i.prototype,"typeIdField",void 0),(0,o._)([(0,s.Cb)({type:[w.Z]})],i.prototype,"types",void 0),(0,o._)([(0,s.Cb)(c.HQ)],i.prototype,"url",void 0),i=(0,o._)([(0,D.j)("esri.layers.OGCFeatureLayer")],i);const se=i},87757:(Z,m,t)=>{t.d(m,{g:()=>g});const g={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/2958.e9207205a84f16c2.js b/apps/n/porrtal-io-app/public/angular/2958.e9207205a84f16c2.js deleted file mode 100644 index 108865aa..00000000 --- a/apps/n/porrtal-io-app/public/angular/2958.e9207205a84f16c2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[2958],{62958:(E,s,_)=>{_.r(s),_.d(s,{build:()=>r.b}),_(81805),_(52382),_(13934),_(78925),_(39645),_(54120),_(50823),_(10109),_(33726),_(19278),_(2166),_(95285),_(69960),_(65787),_(17625),_(63123),_(22355),_(35387),_(44835),_(16396),_(46359);var r=_(62718)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/310.a07342ac1a10367c.js b/apps/n/porrtal-io-app/public/angular/310.a07342ac1a10367c.js deleted file mode 100644 index 503d2d21..00000000 --- a/apps/n/porrtal-io-app/public/angular/310.a07342ac1a10367c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[310],{20310:(E,s,_)=>{_.r(s),_.d(s,{build:()=>r.b}),_(13934),_(78925),_(24255),_(58173),_(62952),_(92484),_(2166),_(69960),_(65787),_(17625),_(22355),_(16396);var r=_(32616)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3109.2c0d2cc085ad23ec.js b/apps/n/porrtal-io-app/public/angular/3109.2c0d2cc085ad23ec.js deleted file mode 100644 index 4f795a14..00000000 --- a/apps/n/porrtal-io-app/public/angular/3109.2c0d2cc085ad23ec.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3109],{3109:(R,h,t)=>{t.r(h),t.d(h,{I3STreeDebugger:()=>a});var M=t(17626),D=(t(29132),t(62208)),O=t(77712),u=(t(85931),t(90912),t(76898)),P=t(28347),p=t(43703),l=t(84161),i=t(28093),n=t(55915),C=t(73187),v=t(37118);let a=class extends C.q{constructor(c){super(c)}getTiles(){const c=this.lv.getVisibleNodes(),o=this.view.renderSpatialReference,E=this.nodeSR;return c.map(e=>function j(c,o,E){const e=c.serviceObb;if((0,D.Wi)(e)||(0,D.Wi)(o))return null;(0,P.D)(r,e.quaternion),(0,l.c)(_,e.center),(0,n.CM)(_,E,0,_,o,0,1),r[12]=_[0],r[13]=_[1],r[14]=_[2];const s=[[],[],[]];(0,l.c)(_,e.halfSize),(0,l.m)(_,_,r),(0,n.CM)(_,o,0,_,E,0,1),s[0].push([_[0],_[1]]),(0,l.c)(_,e.halfSize),_[0]=-_[0],(0,l.m)(_,_,r),(0,n.CM)(_,o,0,_,E,0,1),s[0].push([_[0],_[1]]),(0,l.c)(_,e.halfSize),_[0]=-_[0],_[1]=-_[1],(0,l.m)(_,_,r),(0,n.CM)(_,o,0,_,E,0,1),s[0].push([_[0],_[1]]),(0,l.c)(_,e.halfSize),_[1]=-_[1],(0,l.m)(_,_,r),(0,n.CM)(_,o,0,_,E,0,1),s[0].push([_[0],_[1]]),s[1].push(s[0][0]),s[1].push(s[0][1]),(0,l.c)(_,e.halfSize),_[0]=-_[0],_[2]=-_[2],(0,l.m)(_,_,r),(0,n.CM)(_,o,0,_,E,0,1),s[1].push([_[0],_[1]]),(0,l.c)(_,e.halfSize),_[2]=-_[2],(0,l.m)(_,_,r),(0,n.CM)(_,o,0,_,E,0,1),s[1].push([_[0],_[1]]),s[2].push(s[0][0]),s[2].push(s[0][3]),(0,l.c)(_,e.halfSize),_[1]=-_[1],_[2]=-_[2],(0,l.m)(_,_,r),(0,n.CM)(_,o,0,_,E,0,1),s[2].push([_[0],_[1]]),s[2].push(s[1][3]);const T=new v.Z({rings:s,spatialReference:E});return{lij:[c.level,c.childCount,0],label:c.id,geometry:T}}(e,o,E)).sort((e,s)=>e.lij[0]===s.lij[0]?e.label>s.label?-1:1:e.lij[0]-s.lij[0])}};(0,M._)([(0,O.Cb)({constructOnly:!0})],a.prototype,"lv",void 0),(0,M._)([(0,O.Cb)({constructOnly:!0})],a.prototype,"nodeSR",void 0),a=(0,M._)([(0,u.j)("esri.views.3d.layers.support.I3STreeDebugger")],a);const r=(0,p.c)(),_=(0,i.c)()}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3129.7af7338821a0a261.js b/apps/n/porrtal-io-app/public/angular/3129.7af7338821a0a261.js deleted file mode 100644 index c0d1319a..00000000 --- a/apps/n/porrtal-io-app/public/angular/3129.7af7338821a0a261.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3129],{63129:(w,A,b)=>{b.r(A),b.d(A,{areaTexture:()=>d,searchTexure:()=>L});const d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAIwCAIAAACOVPcQAACBeklEQVR42u39W4xlWXrnh/3WWvuciIzMrKxrV8/0rWbY0+SQFKcb4owIkSIFCjY9AC1BT/LYBozRi+EX+cV+8IMsYAaCwRcBwjzMiw2jAWtgwC8WR5Q8mDFHZLNHTarZGrLJJllt1W2qKrsumZWZcTvn7L3W54e1vrXX3vuciLPPORFR1XE2EomorB0nVuz//r71re/y/1eMvb4Cb3N11xV/PP/2v4UBAwJG/7H8urx6/25/Gf8O5hypMQ0EEEQwAqLfoN/Z+97f/SW+/NvcgQk4sGBJK6H7N4PFVL+K+e0N11yNfkKvwUdwdlUAXPHHL38oa15f/i/46Ih6SuMSPmLAYAwyRKn7dfMGH97jaMFBYCJUgotIC2YAdu+LyW9vvubxAP8kAL8H/koAuOKP3+q6+xGnd5kdYCeECnGIJViwGJMAkQKfDvB3WZxjLKGh8VSCCzhwEWBpMc5/kBbjawT4HnwJfhr+pPBIu7uu+OOTo9vsmtQcniMBGkKFd4jDWMSCRUpLjJYNJkM+IRzQ+PQvIeAMTrBS2LEiaiR9b/5PuT6Ap/AcfAFO4Y3dA3DFH7/VS+M8k4baEAQfMI4QfbVDDGIRg7GKaIY52qAjTAgTvGBAPGIIghOCYAUrGFNgzA7Q3QhgCwfwAnwe5vDejgG44o/fbm1C5ZlYQvQDARPAIQGxCWBM+wWl37ZQESb4gImexGMDouhGLx1Cst0Saa4b4AqO4Hk4gxo+3DHAV/nx27p3JziPM2pVgoiia5MdEzCGULprIN7gEEeQ5IQxEBBBQnxhsDb5auGmAAYcHMA9eAAz8PBol8/xij9+C4Djlim4gJjWcwZBhCBgMIIYxGAVIkH3ZtcBuLdtRFMWsPGoY9rN+HoBji9VBYdwD2ZQg4cnO7OSq/z4rU5KKdwVbFAjNojCQzTlCLPFSxtamwh2jMUcEgg2Wm/6XgErIBhBckQtGN3CzbVacERgCnfgLswhnvqf7QyAq/z4rRZm1YglYE3affGITaZsdIe2FmMIpnOCap25I6jt2kCwCW0D1uAD9sZctNGXcQIHCkINDQgc78aCr+zjtw3BU/ijdpw3zhCwcaONwBvdeS2YZKkJNJsMPf2JKEvC28RXxxI0ASJyzQCjCEQrO4Q7sFArEzjZhaFc4cdv+/JFdKULM4px0DfUBI2hIsy06BqLhGTQEVdbfAIZXYMPesq6VoCHICzUyjwInO4Y411//LYLs6TDa9wvg2CC2rElgAnpTBziThxaL22MYhzfkghz6GAs2VHbbdM91VZu1MEEpupMMwKyVTb5ij9+u4VJG/5EgEMMmFF01cFai3isRbKbzb+YaU/MQbAm2XSMoUPAmvZzbuKYRIFApbtlrfFuUGd6vq2hXNnH78ZLh/iFhsQG3T4D1ib7k5CC6vY0DCbtrohgLEIClXiGtl10zc0CnEGIhhatLBva7NP58Tvw0qE8yWhARLQ8h4+AhQSP+I4F5xoU+VilGRJs6wnS7ruti/4KvAY/CfdgqjsMy4pf8fodQO8/gnuX3f/3xi3om1/h7THr+co3x93PP9+FBUfbNUjcjEmhcrkT+8K7ml7V10Jo05mpIEFy1NmCJWx9SIKKt+EjAL4Ez8EBVOB6havuT/rByPvHXK+9zUcfcbb254+9fydJknYnRr1oGfdaiAgpxu1Rx/Rek8KISftx3L+DfsLWAANn8Hvw0/AFeAGO9DFV3c6D+CcWbL8Dj9e7f+T1k8AZv/d7+PXWM/Z+VvdCrIvuAKO09RpEEQJM0Ci6+B4xhTWr4cZNOvhktabw0ta0rSJmqz3Yw5/AKXwenod7cAhTmBSPKf6JBdvH8IP17h95pXqw50/+BFnj88fev4NchyaK47OPhhtI8RFSvAfDSNh0Ck0p2gLxGkib5NJj/JWCr90EWQJvwBzO4AHcgztwAFN1evHPUVGwfXON+0debT1YeGON9Yy9/63X+OguiwmhIhQhD7l4sMqlG3D86Suc3qWZ4rWjI1X7u0Ytw6x3rIMeIOPDprfe2XzNgyj6PahhBjO4C3e6puDgXrdg+/5l948vF3bqwZetZ+z9Rx9zdIY5pInPK4Nk0t+l52xdK2B45Qd87nM8fsD5EfUhIcJcERw4RdqqH7Yde5V7m1vhNmtedkz6EDzUMF/2jJYWbC+4fzzA/Y+/8PPH3j9dcBAPIRP8JLXd5BpAu03aziOL3VVHZzz3CXWDPWd+SH2AnxIqQoTZpo9Ckc6HIrFbAbzNmlcg8Ag8NFDDAhbJvTBZXbC94P7t68EXfv6o+21gUtPETU7bbkLxvNKRFG2+KXzvtObonPP4rBvsgmaKj404DlshFole1Glfh02fE7bYR7dZ82oTewIBGn1Md6CG6YUF26X376oevOLzx95vhUmgblI6LBZwTCDY7vMq0op5WVXgsObOXJ+1x3qaBl9j1FeLxbhU9w1F+Wiba6s1X/TBz1LnUfuYDi4r2C69f1f14BWfP+p+W2GFKuC9phcELMYRRLur9DEZTUdEH+iEqWdaM7X4WOoPGI+ZYD2+wcQ+y+ioHUZ9dTDbArzxmi/bJI9BND0Ynd6lBdve/butBw8+f/T9D3ABa3AG8W3VPX4hBin+bj8dMMmSpp5pg7fJ6xrBFE2WQQEWnV8Qg3FbAWzYfM1rREEnmvkN2o1+acG2d/9u68GDzx91v3mAjb1zkpqT21OipPKO0b9TO5W0nTdOmAQm0TObts3aBKgwARtoPDiCT0gHgwnbArzxmtcLc08HgF1asN0C4Ms/fvD5I+7PhfqyXE/b7RbbrGyRQRT9ARZcwAUmgdoz0ehJ9Fn7QAhUjhDAQSw0bV3T3WbNa59jzmiP6GsWbGXDX2ytjy8+f9T97fiBPq9YeLdBmyuizZHaqXITnXiMUEEVcJ7K4j3BFPurtB4bixW8wTpweL8DC95szWMOqucFYGsWbGU7p3TxxxefP+r+oTVktxY0v5hbq3KiOKYnY8ddJVSBxuMMVffNbxwIOERShst73HZ78DZrHpmJmH3K6sGz0fe3UUj0eyRrSCGTTc+rjVNoGzNSv05srAxUBh8IhqChiQgVNIIBH3AVPnrsnXQZbLTm8ammv8eVXn/vWpaTem5IXRlt+U/LA21zhSb9cye6jcOfCnOwhIAYXAMVTUNV0QhVha9xjgA27ODJbLbmitt3tRN80lqG6N/khgot4ZVlOyO4WNg3OIMzhIZQpUEHieg2im6F91hB3I2tubql6BYNN9Hj5S7G0G2tahslBWKDnOiIvuAEDzakDQKDNFQT6gbn8E2y4BBubM230YIpBnDbMa+y3dx0n1S0BtuG62lCCXwcY0F72T1VRR3t2ONcsmDjbmzNt9RFs2LO2hQNyb022JisaI8rAWuw4HI3FuAIhZdOGIcdjLJvvObqlpqvWTJnnQbyi/1M9O8UxWhBs//H42I0q1Yb/XPGONzcmm+ri172mHKvZBpHkJaNJz6v9jxqiklDj3U4CA2ugpAaYMWqNXsdXbmJNd9egCnJEsphXNM+MnK3m0FCJ5S1kmJpa3DgPVbnQnPGWIDspW9ozbcO4K/9LkfaQO2KHuqlfFXSbdNzcEcwoqNEFE9zcIXu9/6n/ym/BC/C3aJLzEKPuYVlbFnfhZ8kcWxV3dbv4bKl28566wD+8C53aw49lTABp9PWbsB+knfc/Li3eVizf5vv/xmvnPKg5ihwKEwlrcHqucuVcVOxEv8aH37E3ZqpZypUulrHEtIWKUr+txHg+ojZDGlwnqmkGlzcVi1dLiNSJiHjfbRNOPwKpx9TVdTn3K05DBx4psIk4Ei8aCkJahRgffk4YnEXe07T4H2RR1u27E6wfQsBDofUgjFUFnwC2AiVtA+05J2zpiDK2Oa0c5fmAecN1iJzmpqFZxqYBCYhFTCsUNEmUnIcZ6aEA5rQVhEywG6w7HSW02XfOoBlQmjwulOFQAg66SvJblrTEX1YtJ3uG15T/BH1OfOQeuR8g/c0gdpT5fx2SKbs9EfHTKdM8A1GaJRHLVIwhcGyydZsbifAFVKl5EMKNU2Hryo+06BeTgqnxzYjThVySDikbtJPieco75lYfKAJOMEZBTjoITuWHXXZVhcUDIS2hpiXHV9Ku4u44bN5OYLDOkJo8w+xJSMbhBRHEdEs9JZUCkQrPMAvaHyLkxgkEHxiNkx/x2YB0mGsQ8EUWj/stW5YLhtS5SMu+/YBbNPDCkGTUybN8krRLBGPlZkVOA0j+a1+rkyQKWGaPHPLZOkJhioQYnVZ2hS3zVxMtgC46KuRwbJNd9nV2PHgb36F194ecf/Yeu2vAFe5nm/bRBFrnY4BauE8ERmZRFUn0k8hbftiVYSKMEme2dJCJSCGYAlNqh87bXOPdUkGy24P6d1ll21MBqqx48Fvv8ZHH8HZFY7j/uAq1xMJUFqCSUlJPmNbIiNsmwuMs/q9CMtsZsFO6SprzCS1Z7QL8xCQClEelpjTduDMsmWD8S1PT152BtvmIGvUeDA/yRn83u/x0/4qxoPHjx+PXY9pqX9bgMvh/Nz9kpP4pOe1/fYf3axUiMdHLlPpZCNjgtNFAhcHEDxTumNONhHrBduW+vOyY++70WWnPXj98eA4kOt/mj/5E05l9+O4o8ePx67HFqyC+qSSnyselqjZGaVK2TadbFLPWAQ4NBhHqDCCV7OTpo34AlSSylPtIdd2AJZlyzYQrDJ5lcWGNceD80CunPLGGzsfD+7wRb95NevJI5docQ3tgCyr5bGnyaPRlmwNsFELViOOx9loebGNq2moDOKpHLVP5al2cymWHbkfzGXL7kfRl44H9wZy33tvt+PB/Xnf93e+nh5ZlU18wCiRUa9m7kib9LYuOk+hudQNbxwm0AQqbfloimaB2lM5fChex+ylMwuTbfmXQtmWlenZljbdXTLuOxjI/fDDHY4Hjx8/Hrse0zXfPFxbUN1kKqSCCSk50m0Ajtx3ub9XHBKHXESb8iO6E+qGytF4nO0OG3SXzbJlhxBnKtKyl0NwybjvYCD30aMdjgePHz8eu56SVTBbgxJMliQ3Oauwg0QHxXE2Ez/EIReLdQj42Gzb4CLS0YJD9xUx7bsi0vJi5mUbW1QzL0h0PFk17rtiIPfJk52MB48fPx67npJJwyrBa2RCCQRTbGZSPCxTPOiND4G2pYyOQ4h4jINIJh5wFU1NFZt+IsZ59LSnDqBjZ2awbOku+yInunLcd8VA7rNnOxkPHj9+PGY9B0MWJJNozOJmlglvDMXDEozdhQWbgs/U6oBanGzLrdSNNnZFjOkmbi5bNt1lX7JLLhn3vXAg9/h4y/Hg8ePHI9dzQMEkWCgdRfYykYKnkP7D4rIujsujaKPBsB54vE2TS00ccvFY/Tth7JXeq1hz+qgVy04sAJawTsvOknHfCwdyT062HA8eP348Zj0vdoXF4pilKa2BROed+9fyw9rWRXeTFXESMOanvDZfJuJaSXouQdMdDJZtekZcLLvEeK04d8m474UDuaenW44Hjx8/Xns9YYqZpszGWB3AN/4VHw+k7WSFtJ3Qicuqb/NlVmgXWsxh570xg2UwxUw3WfO6B5nOuO8aA7lnZxuPB48fPx6znm1i4bsfcbaptF3zNT78eFPtwi1OaCNOqp1x3zUGcs/PN++AGD1+fMXrSVm2baTtPhPahbPhA71wIHd2bXzRa69nG+3CraTtPivahV/55tXWg8fyRY/9AdsY8VbSdp8V7cKrrgdfM//z6ILQFtJ2nxHtwmuoB4/kf74+gLeRtvvMaBdeSz34+vifx0YG20jbfTa0C6+tHrwe//NmOG0L8EbSdp8R7cLrrQe/996O+ai3ujQOskpTNULa7jOjXXj99eCd8lHvoFiwsbTdZ0a78PrrwTvlo966pLuRtB2fFe3Cm6oHP9kNH/W2FryxtN1nTLvwRurBO+Kj3pWXHidtx2dFu/Bm68Fb81HvykuPlrb7LGkX3mw9eGs+6h1Y8MbSdjegXcguQLjmevDpTQLMxtJ2N6NdyBZu9AbrwVvwUW+LbteULUpCdqm0HTelXbhNPe8G68Gb8lFvVfYfSNuxvrTdTWoXbozAzdaDZzfkorOj1oxVxlIMlpSIlpLrt8D4hrQL17z+c3h6hU/wv4Q/utps4+bm+6P/hIcf0JwQ5oQGPBL0eKPTYEXTW+eL/2DKn73J9BTXYANG57hz1cEMviVf/4tf5b/6C5pTQkMIWoAq7hTpOJjtAM4pxKu5vg5vXeUrtI09/Mo/5H+4z+Mp5xULh7cEm2QbRP2tFIKR7WM3fPf/jZ3SWCqLM2l4NxID5zB72HQXv3jj/8mLR5xXNA5v8EbFQEz7PpRfl1+MB/hlAN65qgDn3wTgH13hK7T59bmP+NIx1SHHU84nLOITt3iVz8mNO+lPrjGAnBFqmioNn1mTyk1ta47R6d4MrX7tjrnjYUpdUbv2rVr6YpVfsGG58AG8Ah9eyUN8CX4WfgV+G8LVWPDGb+Zd4cU584CtqSbMKxauxTg+dyn/LkVgA+IR8KHtejeFKRtTmLLpxN6mYVLjYxwXf5x2VofiZcp/lwKk4wGOpYDnoIZPdg/AAbwMfx0+ge9dgZvYjuqKe4HnGnykYo5TvJbG0Vj12JagRhwKa44H95ShkZa5RyLGGdfYvG7aw1TsF6iapPAS29mNS3NmsTQZCmgTzFwgL3upCTgtBTRwvGMAKrgLn4evwin8+afJRcff+8izUGUM63GOOuAs3tJkw7J4kyoNreqrpO6cYLQeFUd7TTpr5YOTLc9RUUogUOVJQ1GYJaFLAW0oTmKyYS46ZooP4S4EON3xQ5zC8/CX4CnM4c1PE8ApexpoYuzqlP3d4S3OJP8ZDK7cKWNaTlqmgDiiHwl1YsE41w1zT4iRTm3DBqxvOUsbMKKDa/EHxagtnta072ejc3DOIh5ojvh8l3tk1JF/AV6FU6jh3U8HwEazLgdCLYSQ+MYiAI2ltomkzttUb0gGHdSUUgsIYjTzLG3mObX4FBRaYtpDVNZrih9TgTeYOBxsEnN1gOCTM8Bsw/ieMc75w9kuAT6A+/AiHGvN/+Gn4KRkiuzpNNDYhDGFndWRpE6SVfm8U5bxnSgVV2jrg6JCKmneqey8VMFgq2+AM/i4L4RUbfSi27lNXZ7R7W9RTcq/q9fk4Xw3AMQd4I5ifAZz8FcVtm9SAom/dyN4lczJQW/kC42ZrHgcCoIf1oVMKkVItmMBi9cOeNHGLqOZk+QqQmrbc5YmYgxELUUN35z2iohstgfLIFmcMV7s4CFmI74L9+EFmGsi+tGnAOD4Yk9gIpo01Y4cA43BWGygMdr4YZekG3OBIUXXNukvJS8tqa06e+lSDCtnqqMFu6hWHXCF+WaYt64m9QBmNxi7Ioy7D+fa1yHw+FMAcPt7SysFLtoG4PXAk7JOA3aAxBRqUiAdU9Yp5lK3HLSRFtOim0sa8euEt08xvKjYjzeJ2GU7YawexrnKI9tmobInjFXCewpwriY9+RR4aaezFhMhGCppKwom0ChrgFlKzyPKkGlTW1YQrE9HJqu8hKGgMc6hVi5QRq0PZxNfrYNgE64utmRv6KKHRpxf6VDUaOvNP5jCEx5q185My/7RKz69UQu2im5k4/eownpxZxNLwiZ1AZTO2ZjWjkU9uaB2HFn6Q3u0JcsSx/qV9hTEApRzeBLDJQXxYmTnq7bdLa3+uqFrxLJ5w1TehnNHx5ECvCh2g2c3hHH5YsfdaSKddztfjQ6imKFGSyFwlLzxEGPp6r5IevVjk1AMx3wMqi1NxDVjLBiPs9tbsCkIY5we5/ML22zrCScFxnNtzsr9Wcc3CnD+pYO+4VXXiDE0oc/vQQ/fDK3oPESJMYXNmJa/DuloJZkcTpcYE8lIH8Dz8DJMiynNC86Mb2lNaaqP/+L7f2fcE/yP7/Lde8xfgSOdMxvOixZf/9p3+M4hT1+F+zApxg9XfUvYjc8qX2lfOOpK2gNRtB4flpFu9FTKCp2XJRgXnX6olp1zyYjTKJSkGmLE2NjUr1bxFM4AeAAHBUFIeSLqXR+NvH/M9fOnfHzOD2vCSyQJKzfgsCh+yi/Mmc35F2fUrw7miW33W9hBD1vpuUojFphIyvg7aTeoymDkIkeW3XLHmguMzbIAJejN6B5MDrhipE2y6SoFRO/AK/AcHHZHNIfiWrEe/C6cr3f/yOvrQKB+zMM55/GQdLDsR+ifr5Fiuu+/y+M78LzOE5dsNuXC3PYvYWd8NXvphLSkJIasrlD2/HOqQ+RjcRdjKTGWYhhVUm4yxlyiGPuMsZR7sMCHUBeTuNWA7if+ifXgc/hovftHXs/DV+Fvwe+f8shzMiMcweFgBly3//vwJfg5AN4450fn1Hd1Rm1aBLu22Dy3y3H2+OqMemkbGZ4jozcDjJf6596xOLpC0eMTHbKnxLxH27uZ/bMTGs2jOaMOY4m87CfQwF0dw53oa1k80JRuz/XgS+8fX3N9Af4qPIMfzKgCp4H5TDGe9GGeFPzSsZz80SlPTxXjgwJmC45njzgt2vbQ4b4OAdUK4/vWhO8d8v6EE8fMUsfakXbPpFJeLs2ubM/qdm/la3WP91uWhxXHjoWhyRUq2iJ/+5mA73zwIIo+LoZ/SgvIRjAd1IMvvn98PfgOvAJfhhm8scAKVWDuaRaK8aQ9f7vuPDH6Bj47ZXau7rqYJ66mTDwEDU6lLbCjCK0qTXyl5mnDoeNRxanj3FJbaksTk0faXxHxLrssgPkWB9LnA/MFleXcJozzjwsUvUG0X/QCve51qkMDXp9mtcyOy3rwBfdvVJK7D6/ACSzg3RoruIq5UDeESfEmVclDxnniU82vxMLtceD0hGZWzBNPMM/jSPne2OVatiTKUpY5vY7gc0LdUAWeWM5tH+O2I66AOWw9xT2BuyRVLGdoDHUsVRXOo/c+ZdRXvFfnxWyIV4upFLCl9eAL7h8Zv0QH8Ry8pA2cHzQpGesctVA37ZtklBTgHjyvdSeKY/RZw/kJMk0Y25cSNRWSigQtlULPTw+kzuJPeYEkXjQRpoGZobYsLF79pyd1dMRHInbgFTZqNLhDqiIsTNpoex2WLcy0/X6rHcdMMQvFSd5dWA++4P7xv89deACnmr36uGlL69bRCL6BSZsS6c0TU2TKK5gtWCzgAOOwQcurqk9j8whvziZSMLcq5hbuwBEsYjopUBkqw1yYBGpLA97SRElEmx5MCInBY5vgLk94iKqSWmhIGmkJ4Bi9m4L645J68LyY4wsFYBfUg5feP/6gWWm58IEmKQM89hq7KsZNaKtP5TxxrUZZVkNmMJtjbKrGxLNEbHPJxhqy7lAmbC32ZqeF6lTaknRWcYaFpfLUBh/rwaQycCCJmW15Kstv6jRHyJFry2C1ahkkIW0LO75s61+owxK1y3XqweX9m5YLM2DPFeOjn/iiqCKJ+yKXF8t5Yl/kNsqaSCryxPq5xWTFIaP8KSW0RYxqupaUf0RcTNSSdJZGcKYdYA6kdtrtmyBckfKXwqk0pHpUHlwWaffjNRBYFPUDWa8e3Lt/o0R0CdisKDM89cX0pvRHEfM8ca4t0s2Xx4kgo91MPQJ/0c9MQYq0co8MBh7bz1fio0UUHLR4aAIOvOmoYO6kwlEVODSSTliWtOtH6sPkrtctF9ZtJ9GIerBskvhdVS5cFNv9s1BU0AbdUgdK4FG+dRnjFmDTzniRMdZO1QhzMK355vigbdkpz9P6qjUGE5J2qAcXmwJ20cZUiAD0z+pGMx6xkzJkmEf40Hr4qZfVg2XzF9YOyoV5BjzVkUJngKf8lgNYwKECEHrCNDrWZzMlflS3yBhr/InyoUgBc/lKT4pxVrrC6g1YwcceK3BmNxZcAtz3j5EIpqguh9H6wc011YN75cKDLpFDxuwkrPQmUwW4KTbj9mZTwBwLq4aQMUZbHm1rylJ46dzR0dua2n3RYCWZsiHROeywyJGR7mXKlpryyCiouY56sFkBWEnkEB/raeh/Sw4162KeuAxMQpEkzy5alMY5wamMsWKKrtW2WpEWNnReZWONKWjrdsKZarpFjqCslq773PLmEhM448Pc3+FKr1+94vv/rfw4tEcu+lKTBe4kZSdijBrykwv9vbCMPcLQTygBjzVckSLPRVGslqdunwJ4oegtFOYb4SwxNgWLCmD7T9kVjTv5YDgpo0XBmN34Z/rEHp0sgyz7lngsrm4lvMm2Mr1zNOJYJ5cuxuQxwMGJq/TP5emlb8fsQBZviK4t8hFL+zbhtlpwaRSxQRWfeETjuauPsdGxsBVdO7nmP4xvzSoT29pRl7kGqz+k26B3Oy0YNV+SXbbQas1ctC/GarskRdFpKczVAF1ZXnLcpaMuzVe6lZ2g/1ndcvOVgRG3sdUAY1bKD6achijMPdMxV4muKVorSpiDHituH7rSTs7n/4y5DhRXo4FVBN4vO/zbAcxhENzGbHCzU/98Mcx5e7a31kWjw9FCe/zNeYyQjZsWb1uc7U33pN4Mji6hCLhivqfa9Ss6xLg031AgfesA/l99m9fgvnaF9JoE6bYKmkGNK3aPbHB96w3+DnxFm4hs0drLsk7U8kf/N/CvwQNtllna0rjq61sH8L80HAuvwH1tvBy2ChqWSCaYTaGN19sTvlfzFD6n+iKTbvtayfrfe9ueWh6GJFoxLdr7V72a5ZpvHcCPDzma0wTO4EgbLyedxstO81n57LYBOBzyfsOhUKsW1J1BB5vr/tz8RyqOFylQP9Tvst2JALsC5lsH8PyQ40DV4ANzYa4dedNiKNR1s+x2wwbR7q4/4cTxqEk4LWDebfisuo36JXLiWFjOtLrlNWh3K1rRS4xvHcDNlFnNmWBBAl5SWaL3oPOfnvbr5pdjVnEaeBJSYjuLEkyLLsWhKccadmOphZkOPgVdalj2QpSmfOsADhMWE2ZBu4+EEJI4wKTAuCoC4xwQbWXBltpxbjkXJtKxxabo9e7tyhlgb6gNlSbUpMh+l/FaqzVwewGu8BW1Zx7pTpQDJUjb8tsUTW6+GDXbMn3mLbXlXJiGdggxFAoUrtPS3wE4Nk02UZG2OOzlk7fRs7i95QCLo3E0jtrjnM7SR3uS1p4qtS2nJ5OwtQVHgOvArLBFijZUV9QtSl8dAY5d0E0hM0w3HS2DpIeB6m/A1+HfhJcGUq4sOxH+x3f5+VO+Ds9rYNI7zPXOYWPrtf8bYMx6fuOAX5jzNR0PdsuON+X1f7EERxMJJoU6GkTEWBvVolVlb5lh3tKCg6Wx1IbaMDdJ+9sUCc5KC46hKGCk3IVOS4TCqdBNfUs7Kd4iXf2RjnT/LLysJy3XDcHLh/vde3x8DoGvwgsa67vBk91G5Pe/HbOe7xwym0NXbtiuuDkGO2IJDh9oQvJ4cY4vdoqLDuoH9Zl2F/ofsekn8lkuhIlhQcffUtSjytFyp++p6NiE7Rqx/lodgKVoceEp/CP4FfjrquZaTtj2AvH5K/ywpn7M34K/SsoYDAdIN448I1/0/wveW289T1/lX5xBzc8N5IaHr0XMOQdHsIkDuJFifj20pBm5jzwUv9e2FhwRsvhAbalCIuIw3bhJihY3p6nTFFIZgiSYjfTf3aXuOjmeGn4bPoGvwl+CFzTRczBIuHBEeImHc37/lGfwZR0cXzVDOvaKfNHvwe+suZ771K/y/XcBlsoN996JpBhoE2toYxOznNEOS5TJc6Id5GEXLjrWo+LEWGNpPDU4WAwsIRROu+1vM+0oW37z/MBN9kqHnSArwPfgFJ7Cq/Ai3Ie7g7ncmI09v8sjzw9mzOAEXoIHxURueaAce5V80f/DOuuZwHM8vsMb5wBzOFWM7wymTXPAEvm4vcFpZ2ut0VZRjkiP2MlmLd6DIpbGSiHOjdnUHN90hRYmhTnmvhzp1iKDNj+b7t5hi79lWGwQ+HN9RsfFMy0FXbEwhfuczKgCbyxYwBmcFhhvo/7a44v+i3XWcwDP86PzpGQYdWh7csP5dBvZ1jNzdxC8pBGuxqSW5vw40nBpj5JhMwvOzN0RWqERHMr4Lv1kWX84xLR830G3j6yqZ1a8UstTlW+qJPOZ+sZ7xZPKTJLhiNOAFd6tk+jrTH31ncLOxid8+nzRb128HhUcru/y0Wn6iT254YPC6FtVSIMoW2sk727AhvTtrWKZTvgsmckfXYZWeNRXx/3YQ2OUxLDrbHtN11IwrgXT6c8dATDwLniYwxzO4RzuQqTKSC5gAofMZ1QBK3zQ4JWobFbcvJm87FK+6JXrKahLn54m3p+McXzzYtP8VF/QpJuh1OwieElEoI1pRxPS09FBrkq2tWCU59+HdhNtTIqKm8EBrw2RTOEDpG3IKo2Y7mFdLm3ZeVjYwVw11o/oznceMve4CgMfNym/utA/d/ILMR7gpXzRy9eDsgLcgbs8O2Va1L0zzIdwGGemTBuwROHeoMShkUc7P+ISY3KH5ZZeWqO8mFTxQYeXTNuzvvK5FGPdQfuu00DwYFY9dyhctEt+OJDdnucfpmyhzUJzfsJjr29l8S0bXBfwRS9ZT26tmMIdZucch5ZboMz3Nio3nIOsYHCGoDT4kUA9MiXEp9Xsui1S8th/kbWIrMBxDGLodWUQIWcvnXy+9M23xPiSMOiRPqM+YMXkUN3gXFrZJwXGzUaMpJfyRS9ZT0lPe8TpScuRlbMHeUmlaKDoNuy62iWNTWNFYjoxFzuJs8oR+RhRx7O4SVNSXpa0ZJQ0K1LAHDQ+D9IepkMXpcsq5EVCvClBUIzDhDoyKwDw1Lc59GbTeORivugw1IcuaEOaGWdNm+Ps5fQ7/tm0DjMegq3yM3vb5j12qUId5UZD2oxDSEWOZMSqFl/W+5oynWDa/aI04tJRQ2eTXusg86SQVu/nwSYwpW6wLjlqIzwLuxGIvoAvul0PS+ZNz0/akp/pniO/8JDnGyaCkzbhl6YcqmK/69prxPqtpx2+Km9al9sjL+rwMgHw4jE/C8/HQ3m1vBuL1fldbzd8mOueVJ92syqdEY4KJjSCde3mcRw2TA6szxedn+zwhZMps0XrqEsiUjnC1hw0TELC2Ek7uAAdzcheXv1BYLagspxpzSAoZZUsIzIq35MnFQ9DOrlNB30jq3L4pkhccKUAA8/ocvN1Rzx9QyOtERs4CVsJRK/DF71kPYrxYsGsm6RMh4cps5g1DOmM54Ly1ii0Hd3Y/BMk8VWFgBVmhqrkJCPBHAolwZaWzLR9Vb7bcWdX9NyUYE+uB2BKfuaeBUcjDljbYVY4DdtsVWvzRZdWnyUzDpjNl1Du3aloAjVJTNDpcIOVVhrHFF66lLfJL1zJr9PQ2nFJSBaKoDe+sAvLufZVHVzYh7W0h/c6AAZ+7Tvj6q9j68G/cTCS/3n1vLKHZwNi+P+pS0WkZNMBMUl+LDLuiE4omZy71r3UFMwNJV+VJ/GC5ixVUkBStsT4gGKh0Gm4Oy3qvq7Lbmq24nPdDuDR9deR11XzP4vFu3TYzfnIyiSVmgizUYGqkIXNdKTY9pgb9D2Ix5t0+NHkVzCdU03suWkkVZAoCONCn0T35gAeW38de43mf97sMOpSvj4aa1KYUm58USI7Wxxes03bAZdRzk6UtbzMaCQ6IxO0dy7X+XsjoD16hpsBeGz9dfzHj+R/Hp8nCxZRqkEDTaCKCSywjiaoMJ1TITE9eg7Jqnq8HL6gDwiZb0u0V0Rr/rmvqjxKuaLCX7ZWXTvAY+uvm3z8CP7nzVpngqrJpZKwWnCUjIviYVlirlGOzPLI3SMVyp/elvBUjjDkNhrtufFFErQ8pmdSlbK16toBHlt/HV8uHMX/vEGALkV3RJREiSlopxwdMXOZPLZ+ix+kAHpMKIk8UtE1ygtquttwxNhphrIZ1IBzjGF3IIGxGcBj6q8bHJBG8T9vdsoWrTFEuebEZuVxhhClH6P5Zo89OG9fwHNjtNQTpD0TG9PJLEYqvEY6Rlxy+ZZGfL0Aj62/bnQCXp//eeM4KzfQVJbgMQbUjlMFIm6TpcfWlZje7NBSV6IsEVmumWIbjiloUzQX9OzYdo8L1wjw2PrrpimONfmfNyzKklrgnEkSzT5QWYQW40YShyzqsRmMXbvVxKtGuYyMKaU1ugenLDm5Ily4iT14fP11Mx+xJv+zZ3MvnfdFqxU3a1W/FTB4m3Qfsyc1XUcdVhDeUDZXSFHHLQj/Y5jtC7ZqM0CXGwB4bP11i3LhOvzPGygYtiUBiwQV/4wFO0majijGsafHyRLu0yG6q35cL1rOpVxr2s5cM2jJYMCdc10Aj6q/blRpWJ//+dmm5psMl0KA2+AFRx9jMe2WbC4jQxnikd4DU8TwUjRVacgdlhmr3bpddzuJ9zXqr2xnxJfzP29RexdtjDVZqzkqa6PyvcojGrfkXiJ8SEtml/nYskicv0ivlxbqjemwUjMw5evdg8fUX9nOiC/lf94Q2i7MURk9nW1MSj5j8eAyV6y5CN2S6qbnw3vdA1Iwq+XOSCl663udN3IzLnrt+us25cI1+Z83SXQUldqQq0b5XOT17bGpLd6ssN1VMPf8c+jG8L3NeCnMdF+Ra3fRa9dft39/LuZ/3vwHoHrqGmQFafmiQw6eyzMxS05K4bL9uA+SKUQzCnSDkqOGokXyJvbgJ/BHI+qvY69//4rl20NsmK2ou2dTsyIALv/91/8n3P2Aao71WFGi8KKv1fRC5+J67Q/507/E/SOshqN5TsmYIjVt+kcjAx98iz/4SaojbIV1rexE7/C29HcYD/DX4a0rBOF5VTu7omsb11L/AWcVlcVZHSsqGuXLLp9ha8I//w3Mv+T4Ew7nTBsmgapoCrNFObIcN4pf/Ob/mrvHTGqqgAupL8qWjWPS9m/31jAe4DjA+4+uCoQoT/zOzlrNd3qd4SdphFxsUvYwGWbTWtISc3wNOWH+kHBMfc6kpmpwPgHWwqaSUG2ZWWheYOGQGaHB+eQ/kn6b3pOgLV+ODSn94wDvr8Bvb70/LLuiPPEr8OGVWfDmr45PZyccEmsVXZGe1pRNX9SU5+AVQkNTIVPCHF/jGmyDC9j4R9LfWcQvfiETmgMMUCMN1uNCakkweZsowdYobiMSlnKA93u7NzTXlSfe+SVbfnPQXmg9LpYAQxpwEtONyEyaueWM4FPjjyjG3uOaFmBTWDNgBXGEiQpsaWhnAqIijB07Dlsy3fUGeP989xbWkyf+FF2SNEtT1E0f4DYYVlxFlbaSMPIRMk/3iMU5pME2SIWJvjckciebkQuIRRyhUvkHg/iUljG5kzVog5hV7vIlCuBrmlhvgPfNHQM8lCf+FEGsYbMIBC0qC9a0uuy2wLXVbLBaP5kjHokCRxapkQyzI4QEcwgYHRZBp+XEFTqXFuNVzMtjXLJgX4gAid24Hjwc4N3dtVSe+NNiwTrzH4WVUOlDobUqr1FuAgYllc8pmzoVrELRHSIW8ViPxNy4xwjBpyR55I6J220qQTZYR4guvUICJiSpr9gFFle4RcF/OMB7BRiX8sSfhpNSO3lvEZCQfLUVTKT78Ek1LRLhWN+yLyTnp8qWUZ46b6vxdRGXfHVqx3eI75YaLa4iNNiK4NOW7wPW6lhbSOF9/M9qw8e/aoB3d156qTzxp8pXx5BKAsYSTOIIiPkp68GmTq7sZtvyzBQaRLNxIZ+paozHWoLFeExIhRBrWitHCAHrCF7/thhD8JhYz84wg93QRV88wLuLY8zF8sQ36qF1J455bOlgnELfshKVxYOXKVuKx0jaj22sczTQqPqtV/XDgpswmGTWWMSDw3ssyUunLLrVPGjYRsH5ggHeHSWiV8kT33ycFSfMgkoOK8apCye0J6VW6GOYvffgU9RWsukEi2kUV2nl4dOYUzRik9p7bcA4ggdJ53LxKcEe17B1R8eqAd7dOepV8sTXf5lhejoL85hUdhDdknPtKHFhljOT+bdq0hxbm35p2nc8+Ja1Iw+tJykgp0EWuAAZYwMVwac5KzYMslhvgHdHRrxKnvhTYcfKsxTxtTETkjHO7rr3zjoV25lAQHrqpV7bTiy2aXMmUhTBnKS91jhtR3GEoF0oLnWhWNnYgtcc4N0FxlcgT7yz3TgNIKkscx9jtV1ZKpWW+Ub1tc1eOv5ucdgpx+FJy9pgbLE7xDyXb/f+hLHVGeitHOi6A7ybo3sF8sS7w7cgdk0nJaOn3hLj3uyD0Zp5pazFIUXUpuTTU18d1EPkDoX8SkmWTnVIozEdbTcZjoqxhNHf1JrSS/AcvHjZ/SMHhL/7i5z+POsTUh/8BvNfYMTA8n+yU/MlTZxSJDRStqvEuLQKWwDctMTQogUDyQRoTQG5Kc6oQRE1yV1jCA7ri7jdZyK0sYTRjCR0Hnnd+y7nHxNgTULqw+8wj0mQKxpYvhjm9uSUxg+TTy7s2GtLUGcywhXSKZN275GsqlclX90J6bRI1aouxmgL7Q0Nen5ziM80SqMIo8cSOo+8XplT/5DHNWsSUr/6lLN/QQ3rDyzLruEW5enpf7KqZoShEduuSFOV7DLX7Ye+GmXb6/hnNNqKsVXuMDFpb9Y9eH3C6NGEzuOuI3gpMH/I6e+zDiH1fXi15t3vA1czsLws0TGEtmPEJdiiFPwlwKbgLHAFk4P6ZyPdymYYHGE0dutsChQBl2JcBFlrEkY/N5bQeXQ18gjunuMfMfsBlxJSx3niO485fwO4fGD5T/+3fPQqkneWVdwnw/3bMPkW9Wbqg+iC765Zk+xcT98ibKZc2EdgHcLoF8cSOo/Oc8fS+OyEULF4g4sJqXVcmfMfsc7A8v1/yfGXmL9I6Fn5pRwZhsPv0TxFNlAfZCvG+Oohi82UC5f/2IsJo0cTOm9YrDoKhFPEUr/LBYTUNht9zelHXDqwfPCIw4owp3mOcIQcLttWXFe3VZ/j5H3cIc0G6oPbCR+6Y2xF2EC5cGUm6wKC5tGEzhsWqw5hNidUiKX5gFWE1GXh4/Qplw4sVzOmx9QxU78g3EF6wnZlEN4FzJ1QPSLEZz1KfXC7vd8ssGdIbNUYpVx4UapyFUHzJoTOo1McSkeNn1M5MDQfs4qQuhhX5vQZFw8suwWTcyYTgioISk2YdmkhehG4PkE7w51inyAGGaU+uCXADabGzJR1fn3lwkty0asIo8cROm9Vy1g0yDxxtPvHDAmpu+PKnM8Ix1wwsGw91YJqhteaWgjYBmmQiebmSpwKKzE19hx7jkzSWOm66oPbzZ8Yj6kxVSpYjVAuvLzYMCRo3oTQecOOjjgi3NQ4l9K5/hOGhNTdcWVOTrlgYNkEXINbpCkBRyqhp+LdRB3g0OU6rMfW2HPCFFMV9nSp+uB2woepdbLBuJQyaw/ZFysXrlXwHxI0b0LovEkiOpXGA1Ijagf+KUNC6rKNa9bQnLFqYNkEnMc1uJrg2u64ELPBHpkgWbmwKpJoDhMwNbbGzAp7Yg31wS2T5rGtzit59PrKhesWG550CZpHEzpv2NGRaxlNjbMqpmEIzygJqQfjypycs2pg2cS2RY9r8HUqkqdEgKTWtWTKoRvOBPDYBltja2SO0RGjy9UHtxwRjA11ujbKF+ti5cIR9eCnxUg6owidtyoU5tK4NLji5Q3HCtiyF2IqLGYsHViOXTXOYxucDqG0HyttqYAKqYo3KTY1ekyDXRAm2AWh9JmsVh/ccg9WJ2E8YjG201sPq5ULxxX8n3XLXuMInbft2mk80rRGjCGctJ8/GFdmEQ9Ug4FlE1ll1Y7jtiraqm5Fe04VV8lvSVBL8hiPrfFVd8+7QH3Qbu2ipTVi8cvSGivc9cj8yvH11YMHdNSERtuOslM97feYFOPKzGcsI4zW0YGAbTAOaxCnxdfiYUmVWslxiIblCeAYr9VYR1gM7GmoPrilunSxxeT3DN/2eBQ9H11+nk1adn6VK71+5+Jfct4/el10/7KBZfNryUunWSCPxPECk1rdOv1WVSrQmpC+Tl46YD3ikQYcpunSQgzVB2VHFhxHVGKDgMEY5GLlQnP7FMDzw7IacAWnO6sBr12u+XanW2AO0wQ8pknnFhsL7KYIqhkEPmEXFkwaN5KQphbkUmG72wgw7WSm9RiL9QT925hkjiVIIhphFS9HKI6/8QAjlpXqg9W2C0apyaVDwKQwrwLY3j6ADR13ZyUNByQXHQu6RY09Hu6zMqXRaNZGS/KEJs0cJEe9VH1QdvBSJv9h09eiRmy0V2uJcqHcShcdvbSNg5fxkenkVprXM9rDVnX24/y9MVtncvbKY706anNl3ASll9a43UiacVquXGhvq4s2FP62NGKfQLIQYu9q1WmdMfmUrDGt8eDS0cXozH/fjmUH6Jruvm50hBDSaEU/2Ru2LEN/dl006TSc/g7tfJERxGMsgDUEr104pfWH9lQaN+M4KWQjwZbVc2rZVNHsyHal23wZtIs2JJqtIc/WLXXRFCpJkfE9jvWlfFbsNQ9pP5ZBS0zKh4R0aMFj1IjTcTnvi0Zz2rt7NdvQb2mgbju1plsH8MmbnEk7KbK0b+wC2iy3aX3szW8xeZvDwET6hWZYwqTXSSG+wMETKum0Dq/q+x62gt2ua2ppAo309TRk9TPazfV3qL9H8z7uhGqGqxNVg/FKx0HBl9OVUORn8Q8Jx9gFttGQUDr3tzcXX9xGgN0EpzN9mdZ3GATtPhL+CjxFDmkeEU6x56kqZRusLzALXVqkCN7zMEcqwjmywDQ6OhyUe0Xao1Qpyncrg6wKp9XfWDsaZplElvQ/b3sdweeghorwBDlHzgk1JmMc/wiERICVy2VJFdMjFuLQSp3S0W3+sngt2njwNgLssFGVQdJ0tu0KH4ky1LW4yrbkuaA6Iy9oz/qEMMXMMDWyIHhsAyFZc2peV9hc7kiKvfULxCl9iddfRK1f8kk9qvbdOoBtOg7ZkOZ5MsGrSHsokgLXUp9y88smniwWyuFSIRVmjplga3yD8Uij5QS1ZiM4U3Qw5QlSm2bXjFe6jzzBFtpg+/YBbLAWG7OPynNjlCw65fukGNdkJRf7yM1fOxVzbxOJVocFoYIaGwH22mIQkrvu1E2nGuebxIgW9U9TSiukPGU+Lt++c3DJPKhyhEEbXCQLUpae2exiKy6tMPe9mDRBFCEMTWrtwxN8qvuGnt6MoihKWS5NSyBhbH8StXoAz8PLOrRgLtOT/+4vcu+7vDLnqNvztOq7fmd8sMmY9Xzn1zj8Dq8+XVdu2Nv0IIySgEdQo3xVHps3Q5i3fLFsV4aiqzAiBhbgMDEd1uh8qZZ+lwhjkgokkOIv4xNJmyncdfUUzgB4oFMBtiu71Xumpz/P+cfUP+SlwFExwWW62r7b+LSPxqxn/gvMZ5z9C16t15UbNlq+jbGJtco7p8wbYlL4alSyfWdeuu0j7JA3JFNuVAwtst7F7FhWBbPFNKIUORndWtLraFLmMu7KFVDDOzqkeaiN33YAW/r76wR4XDN/yN1z7hejPau06EddkS/6XThfcz1fI/4K736fO48vlxt2PXJYFaeUkFS8U15XE3428xdtn2kc8GQlf1vkIaNRRnOMvLTWrZbElEHeLWi1o0dlKPAh1MVgbbVquPJ5+Cr8LU5/H/+I2QlHIU2ClXM9G8v7Rr7oc/hozfUUgsPnb3D+I+7WF8kNO92GY0SNvuxiE+2Bt8prVJTkzE64sfOstxuwfxUUoyk8VjcTlsqe2qITSFoSj6Epd4KsT6BZOWmtgE3hBfir8IzZDwgV4ZTZvD8VvPHERo8v+vL1DASHTz/i9OlKueHDjK5Rnx/JB1Vb1ioXdBra16dmt7dgik10yA/FwJSVY6XjA3oy4SqM2frqDPPSRMex9qs3XQtoWxMj7/Er8GWYsXgjaVz4OYumP2+9kbxvny/6kvWsEBw+fcb5bInc8APdhpOSs01tEqIkoiZjbAqKMruLbJYddHuHFRIyJcbdEdbl2sVLaySygunutBg96Y2/JjKRCdyHV+AEFtTvIpbKIXOamknYSiB6KV/0JetZITgcjjk5ZdaskBtWO86UF0ap6ozGXJk2WNiRUlCPFir66lzdm/SLSuK7EUdPz8f1z29Skq6F1fXg8+5UVR6bszncP4Tn4KUkkdJ8UFCY1zR1i8RmL/qQL3rlei4THG7OODlnKko4oI01kd3CaM08Ia18kC3GNoVaO9iDh+hWxSyTXFABXoau7Q6q9OxYg/OVEMw6jdbtSrJ9cBcewGmaZmg+bvkUnUUaGr+ZfnMH45Ivevl61hMcXsxYLFTu1hTm2zViCp7u0o5l+2PSUh9bDj6FgYypufBDhqK2+oXkiuHFHR3zfj+9PtA8oR0xnqX8qn+sx3bFODSbbF0X8EUvWQ8jBIcjo5bRmLOljDNtcqNtOe756h3l0VhKa9hDd2l1eqmsnh0MNMT/Cqnx6BInumhLT8luljzQ53RiJeA/0dxe5NK0o2fA1+GLXr6eNQWHNUOJssQaTRlGpLHKL9fD+IrQzTOMZS9fNQD4AnRNVxvTdjC+fJdcDDWQcyB00B0t9BDwTxXgaAfzDZ/DBXzRnfWMFRwuNqocOmX6OKNkY63h5n/fFcB28McVHqnXZVI27K0i4rDLNE9lDKV/rT+udVbD8dFFu2GGZ8mOt0kAXcoX3ZkIWVtw+MNf5NjR2FbivROHmhV1/pj2egv/fMGIOWTIWrV3Av8N9imV9IWml36H6cUjqEWNv9aNc+veb2sH46PRaHSuMBxvtW+twxctq0z+QsHhux8Q7rCY4Ct8lqsx7c6Sy0dl5T89rIeEuZKoVctIk1hNpfavER6yyH1Vvm3MbsUHy4ab4hWr/OZPcsRBphnaV65/ZcdYPNNwsjN/djlf9NqCw9U5ExCPcdhKxUgLSmfROpLp4WSUr8ojdwbncbvCf+a/YzRaEc6QOvXcGO256TXc5Lab9POvB+AWY7PigWYjzhifbovuunzRawsO24ZqQQAqguBtmpmPB7ysXJfyDDaV/aPGillgz1MdQg4u5MYaEtBNNHFjkRlSpd65lp4hd2AVPTfbV7FGpyIOfmNc/XVsPfg7vzaS/3nkvLL593ANLvMuRMGpQIhiF7kUEW9QDpAUbTWYBcbp4WpacHHY1aacqQyjGZS9HI3yCBT9kUZJhVOD+zUDvEH9ddR11fzPcTDQ5TlgB0KwqdXSavk9BC0pKp0WmcuowSw07VXmXC5guzSa4p0UvRw2lbDiYUx0ExJJRzWzi6Gm8cnEkfXXsdcG/M/jAJa0+bmCgdmQ9CYlNlSYZOKixmRsgiFxkrmW4l3KdFKv1DM8tk6WxPYJZhUUzcd8Kdtgrw/gkfXXDT7+avmfVak32qhtkg6NVdUS5wgkru1YzIkSduTW1FDwVWV3JQVJVuieTc0y4iDpFwc7/BvSalvKdQM8sv662cevz/+8sQVnjVAT0W2wLllw1JiMhJRxgDjCjLQsOzSFSgZqx7lAW1JW0e03yAD3asC+GD3NbQhbe+mN5GXH1F83KDOM4n/e5JIuH4NpdQARrFPBVptUNcjj4cVMcFSRTE2NpR1LEYbYMmfWpXgP9KejaPsLUhuvLCsVXznAG9dfx9SR1ud/3hZdCLHb1GMdPqRJgqDmm76mHbvOXDtiO2QPUcKo/TWkQ0i2JFXpBoo7vij1i1Lp3ADAo+qvG3V0rM//vFnnTE4hxd5Ka/Cor5YEdsLVJyKtDgVoHgtW11pWSjolPNMnrlrVj9Fv2Qn60twMwKPqr+N/wvr8z5tZcDsDrv06tkqyzESM85Ycv6XBWA2birlNCXrI6VbD2lx2L0vQO0QVTVVLH4SE67fgsfVXv8n7sz7/85Z7cMtbE6f088wSaR4kCkCm10s6pKbJhfqiUNGLq+0gLWC6eUAZFPnLjwqtKd8EwGvWX59t7iPW4X/eAN1svgRVSY990YZg06BD1ohLMtyFTI4pKTJsS9xREq9EOaPWiO2gpms7397x6nQJkbh+Fz2q/rqRROX6/M8bJrqlVW4l6JEptKeUFuMYUbtCQ7CIttpGc6MY93x1r1vgAnRXvY5cvwWPqb9uWQm+lP95QxdNMeWhOq1x0Db55C7GcUv2ZUuN6n8iKzsvOxibC//Yfs9Na8r2Rlz02vXXDT57FP/zJi66/EJSmsJKa8QxnoqW3VLQ+jZVUtJwJ8PNX1NQCwfNgdhhHD9on7PdRdrdGPF28rJr1F+3LBdeyv+8yYfLoMYet1vX4upNAjVvwOUWnlNXJXlkzk5Il6kqeoiL0C07qno+/CYBXq/+utlnsz7/Mzvy0tmI4zm4ag23PRN3t/CWryoUVJGm+5+K8RJ0V8Hc88/XHUX/HfiAq7t+BH+x6v8t438enWmdJwFA6ZINriLGKv/95f8lT9/FnyA1NMVEvQyaXuu+gz36f/DD73E4pwqpLcvm/o0Vle78n//+L/NPvoefp1pTJye6e4A/D082FERa5/opeH9zpvh13cNm19/4v/LDe5xMWTi8I0Ta0qKlK27AS/v3/r+/x/2GO9K2c7kVMonDpq7//jc5PKCxeNPpFVzaRr01wF8C4Pu76hXuX18H4LduTr79guuFD3n5BHfI+ZRFhY8w29TYhbbLi/bvBdqKE4fUgg1pBKnV3FEaCWOWyA+m3WpORZr/j+9TKJtW8yBTF2/ZEODI9/QavHkVdGFp/Pjn4Q+u5hXapsP5sOH+OXXA1LiKuqJxiMNbhTkbdJTCy4llEt6NnqRT4dhg1V3nbdrm6dYMecA1yTOL4PWTE9L5VzPFlLBCvlG58AhehnN4uHsAYinyJ+AZ/NkVvELbfOBUuOO5syBIEtiqHU1k9XeISX5bsimrkUUhnGDxourN8SgUsCZVtKyGbyGzHXdjOhsAvOAswSRyIBddRdEZWP6GZhNK/yjwew9ehBo+3jEADu7Ay2n8mDc+TS7awUHg0OMzR0LABhqLD4hJEh/BEGyBdGlSJoXYXtr+3HS4ijzVpgi0paWXtdruGTknXBz+11qT1Q2inxaTzQCO46P3lfLpyS4fou2PH/PupwZgCxNhGlj4IvUuWEsTkqMWm6i4xCSMc9N1RDQoCVcuGItJ/MRWefais+3synowi/dESgJjkilnWnBTGvRWmaw8oR15257t7CHmCf8HOn7cwI8+NQBXMBEmAa8PMRemrNCEhLGEhDQKcGZWS319BX9PFBEwGTbRBhLbDcaV3drFcDqk5kCTd2JF1Wp0HraqBx8U0wwBTnbpCadwBA/gTH/CDrcCs93LV8E0YlmmcyQRQnjBa8JESmGUfIjK/7fkaDJpmD2QptFNVJU1bbtIAjjWQizepOKptRjbzR9Kag6xZmMLLjHOtcLT3Tx9o/0EcTT1XN3E45u24AiwEypDJXihKjQxjLprEwcmRKclaDNZCVqr/V8mYWyFADbusiY5hvgFoU2vio49RgJLn5OsReRFN6tabeetiiy0V7KFHT3HyZLx491u95sn4K1QQSPKM9hNT0wMVvAWbzDSVdrKw4zRjZMyJIHkfq1VAVCDl/bUhNKlGq0zGr05+YAceXVPCttVk0oqjVwMPt+BBefx4yPtGVkUsqY3CHDPiCM5ngupUwCdbkpd8kbPrCWHhkmtIKLEetF2499eS1jZlIPGYnlcPXeM2KD9vLS0bW3ktYNqUllpKLn5ZrsxlIzxvDu5eHxzGLctkZLEY4PgSOg2IUVVcUONzUDBEpRaMoXNmUc0tFZrTZquiLyKxrSm3DvIW9Fil+AkhXu5PhEPx9mUNwqypDvZWdKlhIJQY7vn2OsnmBeOWnYZ0m1iwbbw1U60by5om47iHRV6fOgzjMf/DAZrlP40Z7syxpLK0lJ0gqaAK1c2KQKu7tabTXkLFz0sCftuwX++MyNeNn68k5Buq23YQhUh0SNTJa1ioQ0p4nUG2y0XilF1JqODqdImloPS4Bp111DEWT0jJjVv95uX9BBV7eB3bUWcu0acSVM23YZdd8R8UbQUxJ9wdu3oMuhdt929ME+mh6JXJ8di2RxbTi6TbrDquqV4aUKR2iwT6aZbyOwEXN3DUsWr8Hn4EhwNyHuXHh7/pdaUjtR7vnDh/d8c9xD/s5f501eQ1+CuDiCvGhk1AN/4Tf74RfxPwD3toLarR0zNtsnPzmS64KIRk861dMWCU8ArasG9T9H0ZBpsDGnjtAOM2+/LuIb2iIUGXNgl5ZmKD/Tw8TlaAuihaFP5yrw18v4x1898zIdP+DDAX1bM3GAMvPgRP/cJn3zCW013nrhHkrITyvYuwOUkcHuKlRSW5C6rzIdY4ppnF7J8aAJbQepgbJYBjCY9usGXDKQxq7RZfh9eg5d1UHMVATRaD/4BHK93/1iAgYZ/+jqPn8Dn4UExmWrpa3+ZOK6MvM3bjwfzxNWA2dhs8+51XHSPJiaAhGSpWevEs5xHLXcEGFXYiCONySH3fPWq93JIsBiSWvWyc3CAN+EcXoT7rCSANloPPoa31rt/5PUA/gp8Q/jDD3hyrjzlR8VkanfOvB1XPubt17vzxAfdSVbD1pzAnfgyF3ycadOTOTXhpEUoLC1HZyNGW3dtmjeXgr2r56JNmRwdNNWaQVBddd6rh4MhviEB9EFRD/7RGvePvCbwAL4Mx/D6M541hHO4D3e7g6PafdcZVw689z7NGTwo5om7A8sPhccT6qKcl9NJl9aM/9kX+e59Hh1yPqGuCCZxuITcsmNaJ5F7d0q6J3H48TO1/+M57085q2icdu2U+W36Ldllz9Agiv4YGljoEN908EzvDOrBF98/vtJwCC/BF2AG75xxEmjmMIcjxbjoaxqOK3/4hPOZzhMPBpYPG44CM0dTVm1LjLtUWWVz1Bcf8tEx0zs8O2A2YVHRxKYOiy/aOVoAaMu0i7ubu43njjmd4ibMHU1sIDHaQNKrZND/FZYdk54oCXetjq7E7IVl9eAL7t+oHnwXXtLx44czzoRFHBztYVwtH1d+NOMkupZ5MTM+gUmq90X+Bh9zjRlmaQ+m7YMqUL/veemcecAtOJ0yq1JnVlN27di2E0+Klp1tAJ4KRw1eMI7aJjsO3R8kPSI3fUFXnIOfdQe86sIIVtWDL7h//Ok6vj8vwDk08NEcI8zz7OhBy+WwalzZeZ4+0XniRfst9pAJqQHDGLzVQ2pheZnnv1OWhwO43/AgcvAEXEVVpa4db9sGvNK8wjaENHkfFQ4Ci5i7dqnQlPoLQrHXZDvO3BIXZbJOBrOaEbML6sFL798I4FhKihjHMsPjBUZYCMFr6nvaArxqXPn4lCa+cHfSa2cP27g3Z3ziYTRrcbQNGLQmGF3F3cBdzzzX7AILx0IB9rbwn9kx2G1FW3Inic+ZLIsVvKR8Zwfj0l1fkqo8LWY1M3IX14OX3r9RKTIO+d9XzAI8qRPGPn/4NC2n6o4rN8XJ82TOIvuVA8zLKUHRFgBCetlDZlqR1gLKjS39xoE7Bt8UvA6BxuEDjU3tFsEijgA+615tmZkXKqiEENrh41iLDDZNq4pKTWR3LZfnos81LOuNa15cD956vLMsJd1rqYp51gDUQqMYm2XsxnUhD2jg1DM7SeuJxxgrmpfISSXVIJIS5qJJSvJPEQ49DQTVIbYWJ9QWa/E2+c/oPK1drmC7WSfJRNKBO5Yjvcp7Gc3dmmI/Xh1kDTEuiSnWqQf37h+fTMhGnDf6dsS8SQfQWlqqwXXGlc/PEZ/SC5mtzIV0nAshlQdM/LvUtYutrEZ/Y+EAFtq1k28zQhOwLr1AIeANzhF8t9qzTdZf2qRKO6MWE9ohBYwibbOmrFtNmg3mcS+tB28xv2uKd/agYCvOP+GkSc+0lr7RXzyufL7QbkUpjLjEWFLqOIkAGu2B0tNlO9Eau2W1qcOUvVRgKzypKIQZ5KI3q0MLzqTNRYqiZOqmtqloIRlmkBHVpHmRYV6/HixbO6UC47KOFJnoMrVyr7wYz+SlW6GUaghYbY1I6kkxA2W1fSJokUdSh2LQ1GAimRGm0MT+uu57H5l7QgOWxERpO9moLRPgTtquWCfFlGlIjQaRly9odmzMOWY+IBO5tB4sW/0+VWGUh32qYk79EidWKrjWuiLpiVNGFWFRJVktyeXWmbgBBzVl8anPuXyNJlBJOlKLTgAbi/EYHVHxWiDaVR06GnHQNpJcWcK2jJtiCfG2sEHLzuI66sGrMK47nPIInPnu799935aOK2cvmvubrE38ZzZjrELCmXM2hM7UcpXD2oC3+ECVp7xtIuxptJ0jUr3sBmBS47TVxlvJ1Sqb/E0uLdvLj0lLr29ypdd/eMX3f6lrxGlKwKQxEGvw0qHbkbwrF3uHKwVENbIV2wZ13kNEF6zD+x24aLNMfDTCbDPnEikZFyTNttxWBXDaBuM8KtI2rmaMdUY7cXcUPstqTGvBGSrFWIpNMfbdea990bvAOC1YX0qbc6smDS1mPxSJoW4fwEXvjMmhlijDRq6qale6aJEuFGoppYDoBELQzLBuh/mZNx7jkinv0EtnUp50lO9hbNK57lZaMAWuWR5Yo9/kYwcYI0t4gWM47Umnl3YmpeBPqSyNp3K7s2DSAS/39KRuEN2bS4xvowV3dFRMx/VFcp2Yp8w2nTO9hCXtHG1kF1L4KlrJr2wKfyq77R7MKpFKzWlY9UkhYxyHWW6nBWPaudvEAl3CGcNpSXPZ6R9BbBtIl6cHL3gIBi+42CYXqCx1gfGWe7Ap0h3luyXdt1MKy4YUT9xSF01G16YEdWsouW9mgDHd3veyA97H+Ya47ZmEbqMY72oPztCGvK0onL44AvgC49saZKkWRz4veWljE1FHjbRJaWv6ZKKtl875h4CziFCZhG5rx7tefsl0aRT1bMHZjm8dwL/6u7wCRysaQblQoG5yAQN5zpatMNY/+yf8z+GLcH/Qn0iX2W2oEfXP4GvwQHuIL9AYGnaO3zqAX6946nkgqZNnUhx43DIdQtMFeOPrgy/y3Yd85HlJWwjLFkU3kFwq28xPnuPhMWeS+tDLV9Otllq7pQCf3uXJDN9wFDiUTgefHaiYbdfi3b3u8+iY6TnzhgehI1LTe8lcd7s1wJSzKbahCRxKKztTLXstGAiu3a6rPuQs5pk9TWAan5f0BZmGf7Ylxzzk/A7PAs4QPPPAHeFQ2hbFHszlgZuKZsJcUmbDC40sEU403cEjczstOEypa+YxevL4QBC8oRYqWdK6b7sK25tfE+oDZgtOQ2Jg8T41HGcBE6fTWHn4JtHcu9S7uYgU5KSCkl/mcnq+5/YBXOEr6lCUCwOTOM1taOI8mSxx1NsCXBEmLKbMAg5MkwbLmpBaFOPrNSlO2HnLiEqW3tHEwd8AeiQLmn+2gxjC3k6AxREqvKcJbTEzlpLiw4rNZK6oJdidbMMGX9FULKr0AkW+2qDEPBNNm5QAt2Ik2nftNWHetubosHLo2nG4vQA7GkcVCgVCgaDixHqo9UUn1A6OshapaNR/LPRYFV8siT1cCtJE0k/3WtaNSuUZYKPnsVIW0xXWnMUxq5+En4Kvw/MqQmVXnAXj9Z+9zM98zM/Agy7F/qqj2Nh67b8HjFnPP3iBn/tkpdzwEJX/whIcQUXOaikeliCRGUk7tiwF0rItwMEhjkZ309hikFoRAmLTpEXWuHS6y+am/KB/fM50aLEhGnSMwkpxzOov4H0AvgovwJ1iGzDLtJn/9BU+fAINfwUe6FHSLhu83viV/+/HrOePX+STT2B9uWGbrMHHLldRBlhS/CJQmcRxJFqZica01XixAZsYiH1uolZxLrR/SgxVIJjkpQP4PE9sE59LKLr7kltSBogS5tyszzH8Fvw8/AS8rNOg0xUS9fIaHwb+6et8Q/gyvKRjf5OusOzGx8evA/BP4IP11uN/grca5O0lcsPLJ5YjwI4QkJBOHa0WdMZYGxPbh2W2nR9v3WxEWqgp/G3+6VZbRLSAAZ3BhdhAaUL33VUSw9yjEsvbaQ9u4A/gGXwZXoEHOuU1GSj2chf+Mo+f8IcfcAxfIKVmyunRbYQVnoevwgfw3TXXcw++xNuP4fhyueEUNttEduRVaDttddoP0eSxLe2LENk6itYxlrxBNBYrNNKSQmeaLcm9c8UsaB5WyO6675yyQIAWSDpBVoA/gxmcwEvwoDv0m58UE7gHn+fJOa8/Ywan8EKRfjsopF83eCglX/Sfr7OeaRoQfvt1CGvIDccH5BCvw1sWIzRGC/66t0VTcLZQZtm6PlAasbOJ9iwWtUo7biktTSIPxnR24jxP1ZKaqq+2RcXM9OrBAm/AAs7hDJ5bNmGb+KIfwCs8a3jnjBrOFeMjHSCdbKr+2uOLfnOd9eiA8Hvvwwq54VbP2OqwkB48Ytc4YEOiH2vTXqodabfWEOzso4qxdbqD5L6tbtNPECqbhnA708DZH4QOJUXqScmUlks7Ot6FBuZw3n2mEbaUX7kDzxHOOQk8nKWMzAzu6ZZ8sOFw4RK+6PcuXo9tB4SbMz58ApfKDXf3szjNIIbGpD5TKTRxGkEMLjLl+K3wlWXBsCUxIDU+jbOiysESqAy1MGUJpXgwbTWzNOVEziIXZrJ+VIztl1PUBxTSo0dwn2bOmfDRPD3TRTGlfbCJvO9KvuhL1hMHhB9wPuPRLGHcdOWG2xc0U+5bQtAJT0nRTewXL1pgk2+rZAdeWmz3jxAqfNQQdzTlbF8uJ5ecEIWvTkevAHpwz7w78QujlD/Lr491bD8/1vhM2yrUQRrWXNQY4fGilfctMWYjL72UL/qS9eiA8EmN88nbNdour+PBbbAjOjIa4iBhfFg6rxeKdEGcL6p3EWR1Qq2Qkhs2DrnkRnmN9tG2EAqmgPw6hoL7Oza7B+3SCrR9tRftko+Lsf2F/mkTndN2LmzuMcKTuj/mX2+4Va3ki16+nnJY+S7MefpkidxwnV+4wkXH8TKnX0tsYzYp29DOOoSW1nf7nTh2akYiWmcJOuTidSaqESrTYpwjJJNVGQr+rLI7WsqerHW6Kp/oM2pKuV7T1QY9gjqlZp41/WfKpl56FV/0kvXQFRyeQ83xaTu5E8p5dNP3dUF34ihyI3GSpeCsywSh22ZJdWto9winhqifb7VRvgktxp13vyjrS0EjvrRfZ62uyqddSWaWYlwTPAtJZ2oZ3j/Sgi/mi+6vpzesfAcWNA0n8xVyw90GVFGuZjTXEQy+6GfLGLMLL523f5E0OmxVjDoOuRiH91RKU+vtoCtH7TgmvBLvtFXWLW15H9GTdVw8ow4IlRLeHECN9ym1e9K0I+Cbnhgv4Yu+aD2HaQJ80XDqOzSGAV4+4yCqBxrsJAX6ZTIoX36QnvzhhzzMfFW2dZVLOJfo0zbce5OvwXMFaZ81mOnlTVXpDZsQNuoYWveketKb5+6JOOsgX+NTm7H49fUTlx+WLuWL7qxnOFh4BxpmJx0p2gDzA/BUARuS6phR+pUsY7MMboAHx5xNsSVfVZcYSwqCKrqon7zM+8ecCkeS4nm3rINuaWvVNnMRI1IRpxTqx8PZUZ0Br/UEduo3B3hNvmgZfs9gQPj8vIOxd2kndir3awvJ6BLvoUuOfFWNYB0LR1OQJoUySKb9IlOBx74q1+ADC2G6rOdmFdJcD8BkfualA+BdjOOzP9uUhGUEX/TwhZsUduwRr8wNuXKurCixLBgpQI0mDbJr9dIqUuV+92ngkJZ7xduCk2yZKbfWrH1VBiTg9VdzsgRjW3CVXCvAwDd+c1z9dWw9+B+8MJL/eY15ZQ/HqvTwVdsZn5WQsgRRnMaWaecu3jFvMBEmgg+FJFZsnSl0zjB9OqPYaBD7qmoVyImFvzi41usesV0julaAR9dfR15Xzv9sEruRDyk1nb+QaLU67T885GTls6YgcY+UiMa25M/pwGrbCfzkvR3e0jjtuaFtnwuagHTSb5y7boBH119HXhvwP487jJLsLJ4XnUkHX5sLbS61dpiAXRoZSCrFJ+EjpeU3puVfitngYNo6PJrAigKktmwjyQdZpfq30mmtulaAx9Zfx15Xzv+cyeuiBFUs9zq8Kq+XB9a4PVvph3GV4E3y8HENJrN55H1X2p8VyqSKwVusJDKzXOZzplWdzBUFK9e+B4+uv468xvI/b5xtSAkBHQaPvtqWzllVvEOxPbuiE6+j2pvjcKsbvI7txnRErgfH7LdXqjq0IokKzga14GzQ23SSbCQvO6r+Or7SMIr/efOkkqSdMnj9mBx2DRsiY29Uj6+qK9ZrssCKaptR6HKURdwUYeUWA2kPzVKQO8ku2nU3Anhs/XWkBx3F/7wJtCTTTIKftthue1ty9xvNYLY/zo5KSbIuKbXpbEdSyeRyYdAIwKY2neyoc3+k1XUaufYga3T9daMUx/r8z1s10ITknIO0kuoMt+TB8jK0lpayqqjsJ2qtXAYwBU932zinimgmd6mTRDnQfr88q36NAI+tv24E8Pr8zxtasBqx0+xHH9HhlrwsxxNUfKOHQaZBITNf0uccj8GXiVmXAuPEAKSdN/4GLHhs/XWj92dN/uetNuBMnVR+XWDc25JLjo5Mg5IZIq226tmCsip2zZliL213YrTlL2hcFjpCduyim3M7/eB16q/blQsv5X/esDRbtJeabLIosWy3ycavwLhtxdWzbMmHiBTiVjJo6lCLjXZsi7p9PEPnsq6X6wd4bP11i0rD5fzPm/0A6brrIsllenZs0lCJlU4abakR59enZKrKe3BZihbTxlyZ2zl1+g0wvgmA166/bhwDrcn/7Ddz0eWZuJvfSESug6NzZsox3Z04FIxz0mUjMwVOOVTq1CQ0AhdbBGVdjG/CgsfUX7esJl3K/7ytWHRv683praW/8iDOCqWLLhpljDY1ZpzK75QiaZoOTpLKl60auHS/97oBXrv+umU9+FL+5+NtLFgjqVLCdbmj7pY5zPCPLOHNCwXGOcLquOhi8CmCWvbcuO73XmMUPab+ug3A6/A/78Bwe0bcS2+tgHn4J5pyS2WbOck0F51Vq3LcjhLvZ67p1ABbaL2H67bg78BfjKi/jr3+T/ABV3ilLmNXTI2SpvxWBtt6/Z//D0z/FXaGbSBgylzlsEGp+5//xrd4/ae4d8DUUjlslfIYS3t06HZpvfQtvv0N7AHWqtjP2pW08QD/FLy//da38vo8PNlKHf5y37Dxdfe/oj4kVIgFq3koLReSR76W/bx//n9k8jonZxzWTANVwEniDsg87sOSd/z7//PvMp3jQiptGVWFX2caezzAXwfgtzYUvbr0iozs32c3Uge7varH+CNE6cvEYmzbPZ9hMaYDdjK4V2iecf6EcEbdUDVUARda2KzO/JtCuDbNQB/iTeL0EG1JSO1jbXS+nLxtPMDPw1fh5+EPrgSEKE/8Gry5A73ui87AmxwdatyMEBCPNOCSKUeRZ2P6Myb5MRvgCHmA9ywsMifU+AYXcB6Xa5GibUC5TSyerxyh0j6QgLVpdyhfArRTTLqQjwe4HOD9s92D4Ap54odXAPBWLAwB02igG5Kkc+piN4lvODIFGAZgT+EO4Si1s7fjSR7vcQETUkRm9O+MXyo9OYhfe4xt9STQ2pcZRLayCV90b4D3jR0DYAfyxJ+eywg2IL7NTMXna7S/RpQ63JhWEM8U41ZyQGjwsVS0QBrEKLu8xwZsbi4wLcCT+OGidPIOCe1PiSc9Qt+go+vYqB7cG+B9d8cAD+WJPz0Am2gxXgU9IneOqDpAAXOsOltVuMzpdakJXrdPCzXiNVUpCeOos5cxnpQT39G+XVLhs1osQVvJKPZyNq8HDwd4d7pNDuWJPxVX7MSzqUDU6gfadKiNlUFTzLeFHHDlzO4kpa7aiKhBPGKwOqxsBAmYkOIpipyXcQSPlRTf+Tii0U3EJGaZsDER2qoB3h2hu0qe+NNwUooYU8y5mILbJe6OuX+2FTKy7bieTDAemaQyQ0CPthljSWO+xmFDIYiESjM5xKd6Ik5lvLq5GrQ3aCMLvmCA9wowLuWJb9xF59hVVP6O0CrBi3ZjZSNOvRy+I6klNVRJYRBaEzdN+imiUXQ8iVF8fsp+W4JXw7WISW7fDh7lptWkCwZ4d7QTXyBPfJMYK7SijjFppGnlIVJBJBYj7eUwtiP1IBXGI1XCsjNpbjENVpSAJ2hq2LTywEly3hUYazt31J8w2+aiLx3g3fohXixPfOMYm6zCGs9LVo9MoW3MCJE7R5u/WsOIjrqBoHUO0bJE9vxBpbhsd3+Nb4/vtPCZ4oZYCitNeYuC/8UDvDvy0qvkiW/cgqNqRyzqSZa/s0mqNGjtKOoTm14zZpUauiQgVfqtQiZjq7Q27JNaSK5ExRcrGCXO1FJYh6jR6CFqK7bZdQZ4t8g0rSlPfP1RdBtqaa9diqtzJkQ9duSryi2brQXbxDwbRUpFMBHjRj8+Nt7GDKgvph9okW7LX47gu0SpGnnFQ1S1lYldOsC7hYteR574ZuKs7Ei1lBsfdz7IZoxzzCVmmVqaSySzQbBVAWDek+N4jh9E/4VqZrJjPwiv9BC1XcvOWgO8275CVyBPvAtTVlDJfZkaZGU7NpqBogAj/xEHkeAuJihWYCxGN6e8+9JtSegFXF1TrhhLGP1fak3pebgPz192/8gB4d/6WT7+GdYnpH7hH/DJzzFiYPn/vjW0SgNpTNuPIZoAEZv8tlGw4+RLxy+ZjnKa5NdFoC7UaW0aduoYse6+bXg1DLg6UfRYwmhGEjqPvF75U558SANrElK/+MdpXvmqBpaXOa/MTZaa1DOcSiLaw9j0NNNst3c+63c7EKTpkvKHzu6bPbP0RkuHAVcbRY8ijP46MIbQeeT1mhA+5PV/inyDdQipf8LTvMXbwvoDy7IruDNVZKTfV4CTSRUYdybUCnGU7KUTDxLgCknqUm5aAW6/1p6eMsOYsphLzsHrE0Y/P5bQedx1F/4yPHnMB3/IOoTU9+BL8PhtjuFKBpZXnYNJxTuv+2XqolKR2UQgHhS5novuxVySJhBNRF3SoKK1XZbbXjVwWNyOjlqWJjrWJIy+P5bQedyldNScP+HZ61xKSK3jyrz+NiHG1hcOLL/+P+PDF2gOkekKGiNWKgJ+8Z/x8Iv4DdQHzcpZyF4v19I27w9/yPGDFQvmEpKtqv/TLiWMfn4sofMm9eAH8Ao0zzh7h4sJqYtxZd5/D7hkYPneDzl5idlzNHcIB0jVlQ+8ULzw/nc5/ojzl2juE0apD7LRnJxe04dMz2iOCFNtGFpTuXA5AhcTRo8mdN4kz30nVjEC4YTZQy4gpC7GlTlrePKhGsKKgeXpCYeO0MAd/GH7yKQUlXPLOasOH3FnSphjHuDvEu4gB8g66oNbtr6eMbFIA4fIBJkgayoXriw2XEDQPJrQeROAlY6aeYOcMf+IVYTU3XFlZufMHinGywaW3YLpObVBAsbjF4QJMsVUSayjk4voPsHJOQfPWDhCgDnmDl6XIRerD24HsGtw86RMHOLvVSHrKBdeVE26gKB5NKHzaIwLOmrqBWJYZDLhASG16c0Tn+CdRhWDgWXnqRZUTnPIHuMJTfLVpkoYy5CzylHVTGZMTwkGAo2HBlkQplrJX6U+uF1wZz2uwS1SQ12IqWaPuO4baZaEFBdukksJmkcTOm+YJSvoqPFzxFA/YUhIvWxcmSdPWTWwbAKVp6rxTtPFUZfKIwpzm4IoMfaYQLWgmlG5FME2gdBgm+J7J+rtS/XBbaVLsR7bpPQnpMFlo2doWaVceHk9+MkyguZNCJ1He+kuHTWyQAzNM5YSUg/GlTk9ZunAsg1qELVOhUSAK0LABIJHLKbqaEbHZLL1VA3VgqoiOKXYiS+HRyaEKgsfIqX64HYWbLRXy/qWoylIV9gudL1OWBNgBgTNmxA6b4txDT4gi3Ri7xFSLxtXpmmYnzAcWDZgY8d503LFogz5sbonDgkKcxGsWsE1OI+rcQtlgBBCSOKD1mtqYpIU8cTvBmAT0yZe+zUzeY92fYjTtGipXLhuR0ePoHk0ofNWBX+lo8Z7pAZDk8mEw5L7dVyZZoE/pTewbI6SNbiAL5xeygW4xPRuLCGbhcO4RIeTMFYHEJkYyEO9HmJfXMDEj/LaH781wHHZEtqSQ/69UnGpzH7LKIAZEDSPJnTesJTUa+rwTepI9dLJEawYV+ZkRn9g+QirD8vF8Mq0jFQ29js6kCS3E1+jZIhgPNanHdHFqFvPJLHqFwQqbIA4jhDxcNsOCCQLDomaL/dr5lyJaJU6FxPFjO3JOh3kVMcROo8u+C+jo05GjMF3P3/FuDLn5x2M04xXULPwaS6hBYki+MrMdZJSgPHlcB7nCR5bJ9Kr5ACUn9jk5kivdd8tk95SOGrtqu9lr2IhK65ZtEl7ZKrp7DrqwZfRUSN1el7+7NJxZbywOC8neNKTch5vsTEMNsoCCqHBCqIPRjIPkm0BjvFODGtto99rCl+d3wmHkW0FPdpZtC7MMcVtGFQjJLX5bdQ2+x9ypdc313uj8xlsrfuLgWXz1cRhZvJYX0iNVBRcVcmCXZs6aEf3RQF2WI/TcCbKmGU3IOoDJGDdDub0+hYckt6PlGu2BcxmhbTdj/klhccLGJMcqRjMJP1jW2ETqLSWJ/29MAoORluJ+6LPffBZbi5gqi5h6catQpmOT7/OFf5UorRpLzCqcMltBLhwd1are3kztrSzXO0LUbXRQcdLh/RdSZ+swRm819REDrtqzC4es6Gw4JCKlSnjYVpo0xeq33PrADbFLL3RuCmObVmPN+24kfa+AojDuM4umKe2QwCf6EN906HwjujaitDs5o0s1y+k3lgbT2W2i7FJdnwbLXhJUBq/9liTctSmFC/0OqUinb0QddTWamtjbHRFuWJJ6NpqZ8vO3fZJ37Db+2GkaPYLGHs7XTTdiFQJ68SkVJFVmY6McR5UycflNCsccHFaV9FNbR4NttLxw4pQ7wJd066Z0ohVbzihaxHVExd/ay04oxUKWt+AsdiQ9OUyZ2krzN19IZIwafSTFgIBnMV73ADj7V/K8u1MaY2sJp2HWm0f41tqwajEvdHWOJs510MaAqN4aoSiPCXtN2KSi46dUxHdaMquar82O1x5jqhDGvqmoE9LfxcY3zqA7/x3HA67r9ZG4O6Cuxu12/+TP+eLP+I+HErqDDCDVmBDO4larujNe7x8om2rMug0MX0rL1+IWwdwfR+p1TNTyNmVJ85ljWzbWuGv8/C7HD/izjkHNZNYlhZcUOKVzKFUxsxxN/kax+8zPWPSFKw80rJr9Tizyj3o1gEsdwgWGoxPezDdZ1TSENE1dLdNvuKL+I84nxKesZgxXVA1VA1OcL49dFlpFV5yJMhzyCmNQ+a4BqusPJ2bB+xo8V9u3x48VVIEPS/mc3DvAbXyoYr6VgDfh5do5hhHOCXMqBZUPhWYbWZECwVJljLgMUWOCB4MUuMaxGNUQDVI50TQ+S3kFgIcu2qKkNSHVoM0SHsgoZxP2d5HH8B9woOk4x5bPkKtAHucZsdykjxuIpbUrSILgrT8G7G5oCW+K0990o7E3T6AdW4TilH5kDjds+H64kS0mz24grtwlzDHBJqI8YJQExotPvoC4JBq0lEjjQkyBZ8oH2LnRsQ4Hu1QsgDTJbO8fQDnllitkxuVskoiKbRF9VwzMDvxHAdwB7mD9yCplhHFEyUWHx3WtwCbSMMTCUCcEmSGlg4gTXkHpZXWQ7kpznK3EmCHiXInqndkQjunG5kxTKEeGye7jWz9cyMR2mGiFQ15ENRBTbCp+Gh86vAyASdgmJq2MC6hoADQ3GosP0QHbnMHjyBQvQqfhy/BUbeHd5WY/G/9LK/8Ka8Jd7UFeNWEZvzPb458Dn8DGLOe3/wGL/4xP+HXlRt+M1PE2iLhR8t+lfgxsuh7AfO2AOf+owWhSZRYQbd622hbpKWKuU+XuvNzP0OseRDa+mObgDHJUSc/pKx31QdKffQ5OIJpt8GWjlgTwMc/w5MPCR/yl1XC2a2Yut54SvOtMev55Of45BOat9aWG27p2ZVORRvnEk1hqWMVUmqa7S2YtvlIpspuF1pt0syuZS2NV14mUidCSfzQzg+KqvIYCMljIx2YK2AO34fX4GWdu5xcIAb8MzTw+j/lyWM+Dw/gjs4GD6ehNgA48kX/AI7XXM/XAN4WHr+9ntywqoCakCqmKP0rmQrJJEErG2Upg1JObr01lKQy4jskWalKYfJ/EDLMpjNSHFEUAde2fltaDgmrNaWQ9+AAb8I5vKjz3L1n1LriB/BXkG/wwR9y/oRX4LlioHA4LzP2inzRx/DWmutRweFjeP3tNeSGlaE1Fde0OS11yOpmbIp2u/jF1n2RRZviJM0yBT3IZl2HWImKjQOxIyeU325b/qWyU9Moj1o07tS0G7qJDoGHg5m8yeCxMoEH8GU45tnrNM84D2l297DQ9t1YP7jki/7RmutRweEA77/HWXOh3HCxkRgldDQkAjNTMl2Iloc1qN5JfJeeTlyTRzxURTdn1Ixv2uKjs12AbdEWlBtmVdk2k7FFwj07PCZ9XAwW3dG+8xKzNFr4EnwBZpy9Qzhh3jDXebBpYcpuo4fQ44u+fD1dweEnHzI7v0xuuOALRUV8rXpFyfSTQYkhd7IHm07jpyhlkCmI0ALYqPTpUxXS+z4jgDj1Pflvmz5ecuItpIBxyTHpSTGWd9g1ApfD/bvwUhL4nT1EzqgX7cxfCcNmb3mPL/qi9SwTHJ49oj5ZLjccbTG3pRmlYi6JCG0mQrAt1+i2UXTZ2dv9IlQpN5naMYtviaXlTrFpoMsl3bOAFEa8sqPj2WCMrx3Yjx99qFwO59Aw/wgx+HlqNz8oZvA3exRDvuhL1jMQHPaOJ0+XyA3fp1OfM3qObEVdhxjvynxNMXQV4+GJyvOEFqeQBaIbbO7i63rpxCltdZShPFxkjM2FPVkn3TG+Rp9pO3l2RzFegGfxGDHIAh8SteR0C4HopXzRF61nheDw6TFN05Ebvq8M3VKKpGjjO6r7nhudTEGMtYM92HTDaR1FDMXJ1eThsbKfywyoWwrzRSXkc51flG3vIid62h29bIcFbTGhfV+faaB+ohj7dPN0C2e2lC96+XouFByen9AsunLDJZ9z7NExiUc0OuoYW6UZkIyx2YUR2z6/TiRjyKMx5GbbjLHvHuf7YmtKghf34LJfx63Yg8vrvN2zC7lY0x0tvKezo4HmGYDU+Gab6dFL+KI761lDcNifcjLrrr9LWZJctG1FfU1uwhoQE22ObjdfkSzY63CbU5hzs21WeTddH2BaL11Gi7lVdlxP1nkxqhnKhVY6knS3EPgVGg1JpN5cP/hivujOelhXcPj8HC/LyI6MkteVjlolBdMmF3a3DbsuAYhL44dxzthWSN065xxUd55Lmf0wRbOYOqH09/o9WbO2VtFdaMb4qBgtFJoT1SqoN8wPXMoXLb3p1PUEhxfnnLzGzBI0Ku7FxrKsNJj/8bn/H8fPIVOd3rfrklUB/DOeO+nkghgSPzrlPxluCMtOnDL4Yml6dK1r3vsgMxgtPOrMFUZbEUbTdIzii5beq72G4PD0DKnwjmBULUVFmy8t+k7fZ3pKc0Q4UC6jpVRqS9Umv8bxw35flZVOU1X7qkjnhZlsMbk24qQ6Hz7QcuL6sDC0iHHki96Uh2UdvmgZnjIvExy2TeJdMDZNSbdZyAHe/Yd1xsQhHiKzjh7GxQ4yqMPaywPkjMamvqrYpmO7Knad+ZQC5msCuAPWUoxrxVhrGv7a+KLXFhyONdTMrZ7ke23qiO40ZJUyzgYyX5XyL0mV7NiUzEs9mjtbMN0dERqwyAJpigad0B3/zRV7s4PIfXSu6YV/MK7+OrYe/JvfGMn/PHJe2fyUdtnFrKRNpXV0Y2559aWPt/G4BlvjTMtXlVIWCnNyA3YQBDmYIodFz41PvXPSa6rq9lWZawZ4dP115HXV/M/tnFkkrBOdzg6aP4pID+MZnTJ1SuuB6iZlyiox4HT2y3YBtkUKWooacBQUDTpjwaDt5poBHl1/HXltwP887lKKXxNUEyPqpGTyA699UqY/lt9yGdlUKra0fFWS+36iylVWrAyd7Uw0CZM0z7xKTOduznLIjG2Hx8cDPLb+OvK6Bv7n1DYci4CxUuRxrjBc0bb4vD3rN5Zz36ntLb83eVJIB8LiIzCmn6SMPjlX+yNlTjvIGjs+QzHPf60Aj62/jrzG8j9vYMFtm1VoRWCJdmw7z9N0t+c8cxZpPeK4aTRicS25QhrVtUp7U578chk4q04Wx4YoQSjFryUlpcQ1AbxZ/XVMknIU//OGl7Q6z9Zpxi0+3yFhSkjUDpnCIUhLWVX23KQ+L9vKvFKI0ZWFQgkDLvBoylrHNVmaw10zwCPrr5tlodfnf94EWnQ0lFRWy8pW9LbkLsyUVDc2NSTHGDtnD1uMtchjbCeb1mpxFP0YbcClhzdLu6lfO8Bj6q+bdT2sz/+8SZCV7VIxtt0DUn9L7r4cLYWDSXnseEpOGFuty0qbOVlS7NNzs5FOGJUqQpl2Q64/yBpZf90sxbE+//PGdZ02HSipCbmD6NItmQ4Lk5XUrGpDMkhbMm2ZVheNYV+VbUWTcv99+2NyX1VoafSuC+AN6q9bFIMv5X/eagNWXZxEa9JjlMwNWb00akGUkSoepp1/yRuuqHGbUn3UdBSTxBU6SEVklzWRUkPndVvw2PrrpjvxOvzPmwHc0hpmq82npi7GRro8dXp0KXnUQmhZbRL7NEVp1uuZmO45vuzKsHrktS3GLWXODVjw+vXXLYx4Hf7njRPd0i3aoAGX6W29GnaV5YdyDj9TFkakje7GHYzDoObfddHtOSpoi2SmzJHrB3hM/XUDDEbxP2/oosszcRlehWXUvzHv4TpBVktHqwenFo8uLVmy4DKLa5d3RtLrmrM3aMFr1183E4sewf+85VWeg1c5ag276NZrM9IJVNcmLEvDNaV62aq+14IAOGFsBt973Ra8Xv11YzXwNfmft7Jg2oS+XOyoC8/cwzi66Dhmgk38kUmP1CUiYWOX1bpD2zWXt2FCp7uq8703APAa9dfNdscR/M/bZLIyouVxqJfeWvG9Je+JVckHQ9+CI9NWxz+blX/KYYvO5n2tAP/vrlZ7+8/h9y+9qeB/Hnt967e5mevX10rALDWK//FaAT5MXdBXdP0C/BAes792c40H+AiAp1e1oH8HgH94g/Lttx1gp63op1eyoM/Bvw5/G/7xFbqJPcCXnmBiwDPb/YKO4FX4OjyCb289db2/Noqicw4i7N6TVtoz8tNwDH+8x/i6Ae7lmaQVENzJFb3Di/BFeAwz+Is9SjeQySpPqbLFlNmyz47z5a/AF+AYFvDmHqibSXTEzoT4Gc3OALaqAP4KPFUJ6n+1x+rGAM6Zd78bgJ0a8QN4GU614vxwD9e1Amy6CcskNrczLx1JIp6HE5UZD/DBHrFr2oNlgG4Odv226BodoryjGJ9q2T/AR3vQrsOCS0ctXZi3ruLlhpFDJYl4HmYtjQCP9rhdn4suySLKDt6wLcC52h8xPlcjju1fn+yhuw4LZsAGUuo2b4Fx2UwQu77uqRHXGtg92aN3tQCbFexc0uk93vhTXbct6y7MulLycoUljx8ngDMBg1tvJjAazpEmOtxlzclvj1vQf1Tx7QlPDpGpqgtdSKz/d9/hdy1vTfFHSmC9dGDZbLiezz7Ac801HirGZsWjydfZyPvHXL/Y8Mjzg8BxTZiuwKz4Eb8sBE9zznszmjvFwHKPIWUnwhqfVRcd4Ck0K6ate48m1oOfrX3/yOtvAsJ8zsPAM89sjnddmuLuDPjX9Bu/L7x7xpMzFk6nWtyQfPg278Gn4Aekz2ZgOmU9eJ37R14vwE/BL8G3aibCiWMWWDQ0ZtkPMnlcGeAu/Ag+8ZyecU5BPuy2ILD+sQqyZhAKmn7XZd+jIMTN9eBL7x95xVLSX4On8EcNlXDqmBlqS13jG4LpmGbkF/0CnOi3H8ETOIXzmnmtb0a16Tzxj1sUvQCBiXZGDtmB3KAefPH94xcUa/6vwRn80GOFyjEXFpba4A1e8KQfFF+259tx5XS4egYn8fQsLGrqGrHbztr+uByTahWuL1NUGbDpsnrwBfePPwHHIf9X4RnM4Z2ABWdxUBlqQ2PwhuDxoS0vvqB1JzS0P4h2nA/QgTrsJFn+Y3AOjs9JFC07CGWX1oNX3T/yHOzgDjwPn1PM3g9Jk9lZrMEpxnlPmBbjyo2+KFXRU52TJM/2ALcY57RUzjObbjqxVw++4P6RAOf58pcVsw9Daje3htriYrpDOonre3CudSe6bfkTEgHBHuDiyu5MCsc7BHhYDx7ePxLjqigXZsw+ijMHFhuwBmtoTPtOxOrTvYJDnC75dnUbhfwu/ZW9AgYd+peL68HD+0emKquiXHhWjJg/UrkJYzuiaL3E9aI/ytrCvAd4GcYZMCkSQxfUg3v3j8c4e90j5ZTPdvmJJGHnOCI2nHS8081X013pHuBlV1gB2MX1YNmWLHqqGN/TWmG0y6clJWthxNUl48q38Bi8vtMKyzzpFdSDhxZ5WBA5ZLt8Jv3895DduBlgbPYAj8C4B8hO68FDkoh5lydC4FiWvBOVqjYdqjiLv92t8yPDjrDaiHdUD15qkSURSGmXJwOMSxWAXYwr3zaAufJ66l+94vv3AO+vPcD7aw/w/toDvL/2AO+vPcD7aw/wHuD9tQd4f+0B3l97gPfXHuD9tQd4f+0B3l97gG8LwP8G/AL8O/A5OCq0Ys2KIdv/qOIXG/4mvFAMF16gZD+2Xvu/B8as5+8bfllWyg0zaNO5bfXj6vfhhwD86/Aq3NfRS9t9WPnhfnvCIw/CT8GLcFTMnpntdF/z9V+PWc/vWoIH+FL3Znv57PitcdGP4R/C34avw5fgRVUInCwbsn1yyA8C8zm/BH8NXoXnVE6wVPjdeCI38kX/3+Ct9dbz1pTmHFRu+Hm4O9Ch3clr99negxfwj+ER/DR8EV6B5+DuQOnTgUw5rnkY+FbNU3gNXh0o/JYTuWOvyBf9FvzX663HH/HejO8LwAl8Hl5YLTd8q7sqA3wbjuExfAFegQdwfyDoSkWY8swzEf6o4Qyewefg+cHNbqMQruSL/u/WWc+E5g7vnnEXgDmcDeSGb/F4cBcCgT+GGRzDU3hZYburAt9TEtHgbM6JoxJ+6NMzzTcf6c2bycv2+KK/f+l6LBzw5IwfqZJhA3M472pWT/ajKxnjv4AFnMEpnBTPND6s2J7qHbPAqcMK74T2mZ4VGB9uJA465It+/eL1WKhYOD7xHOkr1ajK7d0C4+ke4Hy9qXZwpgLr+Znm/uNFw8xQOSy8H9IzjUrd9+BIfenYaylf9FsXr8fBAadnPIEDna8IBcwlxnuA0/Wv6GAWPd7dDIKjMdSWueAsBj4M7TOd06qBbwDwKr7oleuxMOEcTuEZTHWvDYUO7aHqAe0Bbq+HEFRzOz7WVoTDQkVds7A4sIIxfCQdCefFRoIOF/NFL1mPab/nvOakSL/Q1aFtNpUb/nFOVX6gzyg/1nISyDfUhsokIzaBR9Kxm80s5mK+6P56il1jXic7nhQxsxSm3OwBHl4fFdLqi64nDQZvqE2at7cWAp/IVvrN6/BFL1mPhYrGMBfOi4PyjuSGf6wBBh7p/FZTghCNWGgMzlBbrNJoPJX2mW5mwZfyRffXo7OFi5pZcS4qZUrlViptrXtw+GQoyhDPS+ANjcGBNRiLCQDPZPMHuiZfdFpPSTcQwwKYdRNqpkjm7AFeeT0pJzALgo7g8YYGrMHS0iocy+YTm2vyRUvvpXCIpQ5pe666TJrcygnScUf/p0NDs/iAI/nqDHC8TmQT8x3NF91l76oDdQGwu61Z6E0ABv7uO1dbf/37Zlv+Zw/Pbh8f1s4Avur6657/+YYBvur6657/+YYBvur6657/+YYBvur6657/+aYBvuL6657/+VMA8FXWX/f8zzcN8BXXX/f8zzcNMFdbf93zP38KLPiK6697/uebtuArrr/u+Z9vGmCusP6653/+1FjwVdZf9/zPN7oHX339dc//fNMu+irrr3v+50+Bi+Zq6697/uebA/jz8Pudf9ht/fWv517J/XUzAP8C/BAeX9WCDrUpZ3/dEMBxgPcfbtTVvsYV5Yn32u03B3Ac4P3b8I+vxNBKeeL9dRMAlwO83959qGO78sT769oB7g3w/vGVYFzKE++v6wV4OMD7F7tckFkmT7y/rhHgpQO8b+4Y46XyxPvrugBeNcB7BRiX8sT767oAvmCA9woAHsoT76+rBJjLBnh3txOvkifeX1dswZcO8G6N7sXyxPvr6i340gHe3TnqVfLE++uKAb50gHcXLnrX8sR7gNdPRqwzwLu7Y/FO5Yn3AK9jXCMGeHdgxDuVJ75VAI8ljP7PAb3/RfjcZfePHBB+79dpfpH1CanN30d+mT1h9GqAxxJGM5LQeeQ1+Tb+EQJrElLb38VHQ94TRq900aMIo8cSOo+8Dp8QfsB8zpqE1NO3OI9Zrj1h9EV78PqE0WMJnUdeU6E+Jjyk/hbrEFIfeWbvId8H9oTRFwdZaxJGvziW0Hn0gqYB/wyZ0PwRlxJST+BOw9m77Amj14ii1yGM/txYQudN0qDzGe4EqfA/5GJCagsHcPaEPWH0esekSwmjRxM6b5JEcZ4ww50ilvAOFxBSx4yLW+A/YU8YvfY5+ALC6NGEzhtmyZoFZoarwBLeZxUhtY4rc3bKnjB6TKJjFUHzJoTOozF2YBpsjcyxDgzhQ1YRUse8+J4wenwmaylB82hC5w0zoRXUNXaRBmSMQUqiWSWkLsaVqc/ZE0aPTFUuJWgeTei8SfLZQeMxNaZSIzbII4aE1Nmr13P2hNHjc9E9guYNCZ032YlNwESMLcZiLQHkE4aE1BFg0yAR4z1h9AiAGRA0jyZ03tyIxWMajMPWBIsxYJCnlITU5ShiHYdZ94TR4wCmSxg9jtB5KyPGYzymAYexWEMwAPIsAdYdV6aObmNPGD0aYLoEzaMJnTc0Ygs+YDw0GAtqxBjkuP38bMRWCHn73xNGjz75P73WenCEJnhwyVe3AEe8TtKdJcYhBl97wuhNAObK66lvD/9J9NS75v17wuitAN5fe4D31x7g/bUHeH/tAd5fe4D3AO+vPcD7aw/w/toDvL/2AO+vPcD7aw/w/toDvAd4f/24ABzZ8o+KLsSLS+Pv/TqTb3P4hKlQrTGh+fbIBT0Axqznnb+L/V2mb3HkN5Mb/nEHeK7d4IcDld6lmDW/iH9E+AH1MdOw/Jlu2T1xNmY98sv4wHnD7D3uNHu54WUuOsBTbQuvBsPT/UfzNxGYzwkP8c+Yz3C+r/i6DcyRL/rZ+utRwWH5PmfvcvYEt9jLDS/bg0/B64DWKrQM8AL8FPwS9beQCe6EMKNZYJol37jBMy35otdaz0Bw2H/C2Smc7+WGB0HWDELBmOByA3r5QONo4V+DpzR/hFS4U8wMW1PXNB4TOqYz9urxRV++ntWCw/U59Ty9ebdWbrgfRS9AYKKN63ZokZVygr8GZ/gfIhZXIXPsAlNjPOLBby5c1eOLvmQ9lwkOy5x6QV1j5TYqpS05JtUgUHUp5toHGsVfn4NX4RnMCe+AxTpwmApTYxqMxwfCeJGjpXzRF61nbcHhUBPqWze9svwcHJ+S6NPscKrEjug78Dx8Lj3T8D4YxGIdxmJcwhi34fzZUr7olevZCw5vkOhoClq5zBPZAnygD/Tl9EzDh6kl3VhsHYcDEb+hCtJSvuiV69kLDm+WycrOTArHmB5/VYyP6jOVjwgGawk2zQOaTcc1L+aLXrKeveDwZqlKrw8U9Y1p66uK8dEzdYwBeUQAY7DbyYNezBfdWQ97weEtAKYQg2xJIkuveAT3dYeLGH+ShrWNwZgN0b2YL7qznr3g8JYAo5bQBziPjx7BPZ0d9RCQp4UZbnFdzBddor4XHN4KYMrB2qHFRIzzcLAHQZ5the5ovui94PCWAPefaYnxIdzRwdHCbuR4B+tbiy96Lzi8E4D7z7S0mEPd+eqO3cT53Z0Y8SV80XvB4Z0ADJi/f7X113f+7p7/+UYBvur6657/+YYBvur6657/+aYBvuL6657/+aYBvuL6657/+aYBvuL6657/+aYBvuL6657/+VMA8FXWX/f8z58OgK+y/rrnf75RgLna+uue//lTA/CV1V/3/M837aKvvv6653++UQvmauuve/7nTwfAV1N/3fM/fzr24Cuuv+75nz8FFnxl9dc9//MOr/8/glixwRuUfM4AAAAASUVORK5CYII=",L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAAAAABIXyLAAAAAOElEQVRIx2NgGAWjYBSMglEwEICREYRgFBZBqDCSLA2MGPUIVQETE9iNUAqLR5gIeoQKRgwXjwAAGn4AtaFeYLEAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3130.bd1986296dc1dcc4.js b/apps/n/porrtal-io-app/public/angular/3130.bd1986296dc1dcc4.js deleted file mode 100644 index f38a8f36..00000000 --- a/apps/n/porrtal-io-app/public/angular/3130.bd1986296dc1dcc4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3130],{19027:(re,W,s)=>{s.d(W,{O:()=>w});var m=s(15861),i=s(17626),N=s(84792),K=s(10699),Z=s(21726),F=s(10349),D=s(77712),J=(s(85931),s(90912),s(68653)),$=s(76898),h=s(2004),B=s(65234),A=s(13812);const w=V=>{let O=class extends V{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesPromise=null,this._allLayersAndTablesMap=null}readCapabilities(I,d){const E=d.capabilities&&d.capabilities.split(",").map(p=>p.toLowerCase().trim());if(!E)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};const c=this.type,n=E.includes("data"),u=E.includes("query"),y=E.includes("map"),g=!!d.exportTilesAllowed,S=E.includes("tilemap"),P="tile"!==c&&!!d.supportsDynamicLayers,l="tile"!==c&&(!d.tileInfo||P),j="tile"!==c&&(!d.tileInfo||P),T="tile"!==c,M=d.cimVersion&&F.G.parse(d.cimVersion),x=M?.since(1,4)??!1,C=M?.since(2,0)??!1;return{operations:{supportsExportMap:y,supportsExportTiles:g,supportsIdentify:u,supportsQuery:n,supportsTileMap:S},exportMap:y?{supportsArcadeExpressionForLabeling:x,supportsSublayersChanges:T,supportsDynamicLayers:P,supportsSublayerVisibility:l,supportsSublayerDefinitionExpression:j,supportsCIMSymbols:C}:null,exportTiles:g?{maxExportTilesCount:+d.maxExportTilesCount}:null}}readVersion(I,d){let E=d.currentVersion;return E||(E=d.hasOwnProperty("capabilities")||d.hasOwnProperty("tables")?10:d.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3),E}fetchSublayerInfo(I,d){var E=this;return(0,m.Z)(function*(){return yield E.fetchAllLayersAndTables(d),E._allLayersAndTablesMap?.get(I)})()}fetchAllLayersAndTables(I){var d=this;return(0,m.Z)(function*(){yield d.load(I),d._allLayersAndTablesPromise||(d._allLayersAndTablesPromise=(0,N.default)((0,Z.mN)(d.url).path+"/layers",{responseType:"json",query:{f:"json",...d.customParameters,token:d.apiKey}}).then(c=>{d._allLayersAndTablesMap=new Map;for(const n of c.data.layers)d._allLayersAndTablesMap.set(n.id,n);return{result:c.data}},c=>({error:c})));const E=yield d._allLayersAndTablesPromise;if((0,K.k_)(I),"result"in E)return E.result;throw E.error})()}};return(0,i._)([(0,D.Cb)({readOnly:!0})],O.prototype,"capabilities",void 0),(0,i._)([(0,J.r)("service","capabilities",["capabilities","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],O.prototype,"readCapabilities",null),(0,i._)([(0,D.Cb)({json:{read:{source:"copyrightText"}}})],O.prototype,"copyright",void 0),(0,i._)([(0,D.Cb)({type:h.Z})],O.prototype,"fullExtent",void 0),(0,i._)([(0,D.Cb)(A.id)],O.prototype,"id",void 0),(0,i._)([(0,D.Cb)({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],O.prototype,"legendEnabled",void 0),(0,i._)([(0,D.Cb)(A.C_)],O.prototype,"popupEnabled",void 0),(0,i._)([(0,D.Cb)({type:B.Z})],O.prototype,"spatialReference",void 0),(0,i._)([(0,D.Cb)({readOnly:!0})],O.prototype,"version",void 0),(0,i._)([(0,J.r)("version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],O.prototype,"readVersion",null),O=(0,i._)([(0,$.j)("esri.layers.mixins.ArcGISMapService")],O),O}},66120:(re,W,s)=>{s.d(W,{x:()=>d});var m=s(17626),i=s(46160),N=s(46882),K=s(26584),Z=s(63290),F=s(32917),D=s(77712),X=(s(85931),s(52323)),$=(s(90912),s(76898)),h=s(31283),B=s(39058),A=s(13410);const w=Z.Z.getLogger("esri.layers.TileLayer"),O=i.Z.ofType(B.Z);function I(E,c){E&&E.forEach(n=>{c(n),n.sublayers&&n.sublayers.length&&I(n.sublayers,c)})}const d=E=>{let c=class extends E{constructor(...n){super(...n),this.allSublayers=new N.Z({getCollections:()=>[this.sublayers],getChildrenFunction:u=>u.sublayers}),this.sublayersSourceJSON={[h.s3.SERVICE]:{},[h.s3.PORTAL_ITEM]:{},[h.s3.WEB_SCENE]:{},[h.s3.WEB_MAP]:{}},this.addHandles((0,F.YP)(()=>this.sublayers,(u,y)=>this._handleSublayersChange(u,y),F.Z_))}readSublayers(n,u){if(!u||!n)return;const{sublayersSourceJSON:y}=this,g=(0,h.M9)(u.origin);if(gh.s3.SERVICE))return;this._set("serviceSublayers",this.createSublayersForOrigin("service").sublayers);const{sublayers:S,origin:P}=this.createSublayersForOrigin("web-document"),l=(0,X.vw)(this);l.setDefaultOrigin(P),this._set("sublayers",new O(S)),l.setDefaultOrigin("user")}findSublayerById(n){return this.allSublayers.find(u=>u.id===n)}createServiceSublayers(){return this.createSublayersForOrigin("service").sublayers}createSublayersForOrigin(n){const u=(0,h.M9)("web-document"===n?"web-map":n);let y=h.s3.SERVICE,g=this.sublayersSourceJSON[h.s3.SERVICE].layers,S=this.sublayersSourceJSON[h.s3.SERVICE].context,P=null;const l=[h.s3.PORTAL_ITEM,h.s3.WEB_SCENE,h.s3.WEB_MAP].filter(p=>p<=u);for(const p of l){const _=this.sublayersSourceJSON[p];(0,A.ac)(_.layers)&&(y=p,g=_.layers,S=_.context,_.visibleLayers&&(P={visibleLayers:_.visibleLayers,context:_.context}))}const j=[h.s3.PORTAL_ITEM,h.s3.WEB_SCENE,h.s3.WEB_MAP].filter(p=>p>y&&p<=u);let T=null;for(const p of j){const{layers:_,visibleLayers:G,context:Q}=this.sublayersSourceJSON[p];_&&(T={layers:_,context:Q}),G&&(P={visibleLayers:G,context:Q})}const M=function V(E,c){const n=[],u={};return E&&E.forEach(y=>{const g=new B.Z;if(g.read(y,c),u[g.id]=g,null!=y.parentLayerId&&-1!==y.parentLayerId){const S=u[y.parentLayerId];S.sublayers||(S.sublayers=[]),S.sublayers.unshift(g)}else n.unshift(g)}),n}(g,S),x=new Map,C=new Set;if(T)for(const p of T.layers)x.set(p.id,p);if(P)for(const p of P.visibleLayers)C.add(p);return I(M,p=>{T&&p.read(x.get(p.id),T.context),P&&p.read({defaultVisibility:C.has(p.id)},P.context)}),{origin:(0,h.x3)(y),sublayers:new O({items:M})}}read(n,u){super.read(n,u),this.readSublayers(n,u)}_handleSublayersChange(n,u){u&&(u.forEach(y=>{y.parent=null,y.layer=null}),this.handles.remove("sublayers-owner")),n&&(n.forEach(y=>{y.parent=this,y.layer=this}),this.handles.add([n.on("after-add",({item:y})=>{y.parent=this,y.layer=this}),n.on("after-remove",({item:y})=>{y.parent=null,y.layer=null})],"sublayers-owner"),"tile"===this.type&&this.handles.add(n.on("before-changes",y=>{w.error(new K.Z("tilelayer:sublayers-non-modifiable","ISublayer can't be added, moved, or removed from the layer's sublayers",{layer:this})),y.preventDefault()}),"sublayers-owner"))}};return(0,m._)([(0,D.Cb)({readOnly:!0})],c.prototype,"allSublayers",void 0),(0,m._)([(0,D.Cb)({readOnly:!0,type:i.Z.ofType(B.Z)})],c.prototype,"serviceSublayers",void 0),(0,m._)([(0,D.Cb)({value:null,type:O,json:{read:!1,write:{allowNull:!0,ignoreOrigin:!0}}})],c.prototype,"sublayers",void 0),(0,m._)([(0,D.Cb)({readOnly:!0})],c.prototype,"sublayersSourceJSON",void 0),c=(0,m._)([(0,$.j)("esri.layers.mixins.SublayersOwner")],c),c}},39058:(re,W,s)=>{s.d(W,{Z:()=>ce});var z,m=s(15861),i=s(17626),K=(s(29132),s(73281)),A=(s(4832),s(49067),s(96794),s(69747),s(40425),s(69357),s(40342),s(73640),s(33474),s(32088)),w=s(84792),V=s(20383),O=s(46160),I=s(26584),d=s(80542),E=s(61996),c=s(58817),n=s(47996),u=s(63290),y=s(62208),g=s(99959),S=s(95737),P=s(21726),l=s(77712),j=s(52323),T=s(66656),M=s(68653),x=s(76898),C=s(99433),p=s(90912),_=s(31283),G=s(38305),Q=s(41638),ae=s(36255),le=s(60466),ne=s(170),ye=s(62667),de=s(2430),se=s(15283),Y=s(48370),ie=s(96854),_e=s(49430),pe=s(2004),k=s(71774);function q(e){return e&&"esriSMS"===e.type}function ee(e,r,t){const a=this.originIdOf(r)>=(0,_.M9)(t.origin);return{ignoreOrigin:!0,allowNull:a,enabled:!!t&&"map-image"===t.layer?.type&&(t.writeSublayerStructure||a)}}function oe(e,r,t){return{enabled:!!t&&"tile"===t.layer?.type&&this._isOverridden(r)}}function L(e,r,t){return{ignoreOrigin:!0,enabled:t&&t.writeSublayerStructure||!1}}function H(e,r,t){return{ignoreOrigin:!0,enabled:!!t&&(t.writeSublayerStructure||this.originIdOf(r)>=(0,_.M9)(t.origin))}}let ue=0;const R=new Set;R.add("layer"),R.add("parent"),R.add("loaded"),R.add("loadStatus"),R.add("loadError"),R.add("loadWarnings");let o=z=class extends((0,d.p)((0,g.R)((0,E.IG)(n.Z)))){constructor(e){super(e),this.capabilities=void 0,this.fields=null,this.fullExtent=null,this.geometryType=null,this.globalIdField=null,this.legendEnabled=!0,this.objectIdField=null,this.popupEnabled=!0,this.popupTemplate=null,this.sourceJSON=null,this.title=null,this.typeIdField=null,this.types=null}load(e){var r=this;return(0,m.Z)(function*(){return r.addResolvingPromise((0,m.Z)(function*(){if(!r.layer&&!r.url)throw new I.Z("sublayer:missing-layer","Sublayer can't be loaded without being part of a layer",{sublayer:r});let t=null;if(!r.layer||r.originIdOf("url")>_.s3.SERVICE||"data-layer"===r.source?.type)t=(yield(0,w.default)(r.url,{responseType:"json",query:{f:"json"},...e})).data;else{let a=r.id;"map-layer"===r.source?.type&&(a=r.source.mapLayerId),t=yield r.layer.fetchSublayerInfo(a,e)}t&&(r.sourceJSON=t,r.read({layerDefinition:t},{origin:"service"}))})()),r})()}readCapabilities(e,r){const t=(e=(r=r.layerDefinition||r).capabilities||e)?e.toLowerCase().split(",").map(b=>b.trim()):[],a=this.url?(0,G.Qc)(this.url):null,f=t.includes((0,y.pC)(a)&&"MapServer"===a.serverType?"data":"query");return{exportMap:{supportsModification:!!r.canModifyLayer},operations:{supportsQuery:f}}}set definitionExpression(e){this._setAndNotifyLayer("definitionExpression",e)}get fieldsIndex(){return new le.Z(this.fields||[])}set floorInfo(e){this._setAndNotifyLayer("floorInfo",e)}readGlobalIdFieldFromService(e,r){if((r=r.layerDefinition||r).globalIdField)return r.globalIdField;if(r.fields)for(const t of r.fields)if("esriFieldTypeGlobalID"===t.type)return t.name}get id(){return this._get("id")??ue++}set id(e){this._get("id")!==e&&(!1!==this.get("layer.capabilities.exportMap.supportsDynamicLayers")?this._set("id",e):this._logLockedError("id","capability not available 'layer.capabilities.exportMap.supportsDynamicLayers'"))}set labelingInfo(e){this._setAndNotifyLayer("labelingInfo",e)}writeLabelingInfo(e,r,t,a){e&&e.length&&(r.layerDefinition={drawingInfo:{labelingInfo:e.map(f=>f.write({},a))}})}set labelsVisible(e){this._setAndNotifyLayer("labelsVisible",e)}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach(r=>r.layer=e)}set listMode(e){this._set("listMode",e)}set minScale(e){this._setAndNotifyLayer("minScale",e)}readMinScale(e,r){return r.minScale||r.layerDefinition&&r.layerDefinition.minScale||0}set maxScale(e){this._setAndNotifyLayer("maxScale",e)}readMaxScale(e,r){return r.maxScale||r.layerDefinition&&r.layerDefinition.maxScale||0}get effectiveScaleRange(){const{minScale:e,maxScale:r}=this;return{minScale:e,maxScale:r}}readObjectIdFieldFromService(e,r){if((r=r.layerDefinition||r).objectIdField)return r.objectIdField;if(r.fields)for(const t of r.fields)if("esriFieldTypeOID"===t.type)return t.name}set opacity(e){this._setAndNotifyLayer("opacity",e)}readOpacity(e,r){const t=r.layerDefinition;return 1-.01*(null!=t.transparency?t.transparency:t.drawingInfo.transparency)}writeOpacity(e,r,t,a){r.layerDefinition={drawingInfo:{transparency:100-100*e}}}writeParent(e,r){r.parentLayerId=this.parent&&this.parent!==this.layer?(0,p.vU)(this.parent.id):-1}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){if(e)for(const r of e.getSymbols())if((0,V.dU)(r)){u.Z.getLogger(this.declaredClass).warn("Sublayer renderer should use 2D symbols");break}this._setAndNotifyLayer("renderer",e)}get source(){return this._get("source")||new Y.R({mapLayerId:this.id})}set source(e){this._setAndNotifyLayer("source",e)}set sublayers(e){this._handleSublayersChange(e,this._get("sublayers")),this._set("sublayers",e)}castSublayers(e){return(0,p.se)(O.Z.ofType(z),e)}writeSublayers(e,r,t){this.get("sublayers.length")&&(r[t]=this.sublayers.map(a=>a.id).toArray().reverse())}readTypeIdField(e,r){let t=(r=r.layerDefinition||r).typeIdField;if(t&&r.fields){t=t.toLowerCase();const a=r.fields.find(f=>f.name.toLowerCase()===t);a&&(t=a.name)}return t}get url(){const e=this.layer?.parsedUrl??this._lastParsedUrl,r=this.source;if(!e)return null;if(this._lastParsedUrl=e,"map-layer"===r?.type)return`${e.path}/${r.mapLayerId}`;const t={layer:JSON.stringify({source:this.source})};return`${e.path}/dynamicLayer?${(0,P.B7)(t)}`}set url(e){this._overrideIfSome("url",e)}set visible(e){this._setAndNotifyLayer("visible",e)}writeVisible(e,r,t,a){r[t]=this.getAtOrigin("defaultVisibility","service")||e}clone(){const{store:e}=(0,j.vw)(this),r=new z;return(0,j.vw)(r).store=e.clone(R),this.commitProperty("url"),r._lastParsedUrl=this._lastParsedUrl,r}createPopupTemplate(e){return(0,_e.eZ)(this,e)}createQuery(){return new ie.Z({returnGeometry:!0,where:this.definitionExpression||"1=1"})}createFeatureLayer(){var e=this;return(0,m.Z)(function*(){if(e.hasOwnProperty("sublayers"))return null;const r=e.layer?.parsedUrl,t=new((yield Promise.resolve().then(s.bind(s,80415))).default)({url:r.path});return r&&e.source&&("map-layer"===e.source.type?t.layerId=e.source.mapLayerId:t.dynamicDataSource=e.source),null!=e.layer.refreshInterval&&(t.refreshInterval=e.layer.refreshInterval),e.definitionExpression&&(t.definitionExpression=e.definitionExpression),e.floorInfo&&(t.floorInfo=(0,c.d9)(e.floorInfo)),e.originIdOf("labelingInfo")>_.s3.SERVICE&&(t.labelingInfo=(0,c.d9)(e.labelingInfo)),e.originIdOf("labelsVisible")>_.s3.DEFAULTS&&(t.labelsVisible=e.labelsVisible),e.originIdOf("legendEnabled")>_.s3.DEFAULTS&&(t.legendEnabled=e.legendEnabled),e.originIdOf("visible")>_.s3.DEFAULTS&&(t.visible=e.visible),e.originIdOf("minScale")>_.s3.DEFAULTS&&(t.minScale=e.minScale),e.originIdOf("maxScale")>_.s3.DEFAULTS&&(t.maxScale=e.maxScale),e.originIdOf("opacity")>_.s3.DEFAULTS&&(t.opacity=e.opacity),e.originIdOf("popupTemplate")>_.s3.DEFAULTS&&(t.popupTemplate=(0,c.d9)(e.popupTemplate)),e.originIdOf("renderer")>_.s3.SERVICE&&(t.renderer=(0,c.d9)(e.renderer)),"data-layer"===e.source?.type&&(t.dynamicDataSource=e.source.clone()),e.originIdOf("title")>_.s3.DEFAULTS&&(t.title=e.title),"map-image"===e.layer.type&&e.layer.originIdOf("customParameters")>_.s3.DEFAULTS&&(t.customParameters=e.layer.customParameters),"tile"===e.layer.type&&e.layer.originIdOf("customParameters")>_.s3.DEFAULTS&&(t.customParameters=e.layer.customParameters),t})()}getField(e){return this.fieldsIndex.get(e)}getFeatureType(e){const{typeIdField:r,types:t}=this;if(!r||!e)return null;const a=e.attributes?e.attributes[r]:void 0;if(null==a)return null;let f=null;return t.some(b=>{const{id:v}=b;return null!=v&&(v.toString()===a.toString()&&(f=b),!!f)}),f}getFieldDomain(e,r){const a=this.getFeatureType(r&&r.feature);if(a){const f=a.domains&&a.domains[e];if(f&&"inherited"!==f.type)return f}return this._getLayerDomain(e)}queryFeatures(e=this.createQuery(),r){var t=this;return(0,m.Z)(function*(){if(yield t.load(),!t.capabilities?.operations?.supportsQuery)throw new I.Z("Sublayer.queryFeatures","this layer doesn't support queries.");const[{executeQuery:a},{default:f}]=yield Promise.all([Promise.resolve().then(s.bind(s,20477)),Promise.resolve().then(s.bind(s,17253))]),b=yield a(t.url,ie.Z.from(e),t.layer?.spatialReference??null,{...r,query:{...t.layer?.customParameters,token:t.layer?.apiKey}}),v=f.fromJSON(b.data);if(v?.features)for(const U of v.features)U.sourceLayer=t;return v})()}toExportImageJSON(e){const r={id:this.id,source:this.source?.toJSON()||{mapLayerId:this.id,type:"mapLayer"}},t=(0,S._)(e,this.definitionExpression);(0,y.pC)(t)&&(r.definitionExpression=t);const a=["renderer","labelingInfo","opacity","labelsVisible"].reduce((b,v)=>(b[v]=this.originIdOf(v),b),{});if(Object.keys(a).some(b=>a[b]>_.s3.SERVICE)){const b=r.drawingInfo={};if(a.renderer>_.s3.SERVICE&&(b.renderer=this.renderer?this.renderer.toJSON():null),a.labelsVisible>_.s3.SERVICE&&(b.showLabels=this.labelsVisible),this.labelsVisible&&a.labelingInfo>_.s3.SERVICE){!this.loaded&&this.labelingInfo.some(U=>!U.labelPlacement)&&u.Z.getLogger(this.declaredClass).warnOnce(`A Sublayer (title: ${this.title}, id: ${this.id}) has an undefined 'labelPlacement' and so labels cannot be displayed. Either define a valid 'labelPlacement' or call Sublayer.load() to use a default value based on geometry type.`,{sublayer:this});let v=this.labelingInfo;(0,y.pC)(this.geometryType)&&(v=(0,ye.a)(this.labelingInfo,k.Mk.toJSON(this.geometryType))),b.labelingInfo=v.filter(U=>U.labelPlacement).map(U=>U.toJSON({origin:"service",layer:this.layer})),b.showLabels=!0}a.opacity>_.s3.SERVICE&&(b.transparency=100-100*this.opacity),this._assignDefaultSymbolColors(b.renderer)}return r}_assignDefaultSymbolColors(e){this._forEachSimpleMarkerSymbols(e,r=>{r.color||"esriSMSX"!==r.style&&"esriSMSCross"!==r.style||(r.color=r.outline&&r.outline.color?r.outline.color:[0,0,0,0])})}_forEachSimpleMarkerSymbols(e,r){if(e){const t="uniqueValueInfos"in e?e.uniqueValueInfos:"classBreakInfos"in e?e.classBreakInfos:[];for(const a of t)q(a.symbol)&&r(a.symbol);"symbol"in e&&q(e.symbol)&&r(e.symbol),"defaultSymbol"in e&&q(e.defaultSymbol)&&r(e.defaultSymbol)}}_setAndNotifyLayer(e,r){const t=this.layer,a=this._get(e);let f,b;switch(e){case"definitionExpression":case"floorInfo":f="supportsSublayerDefinitionExpression";case"minScale":case"maxScale":case"visible":f="supportsSublayerVisibility";break;case"labelingInfo":case"labelsVisible":case"opacity":case"renderer":case"source":f="supportsDynamicLayers",b="supportsModification"}const v=(0,j.vw)(this).getDefaultOrigin();if("service"!==v){if(f&&!1===this.get(`layer.capabilities.exportMap.${f}`))return void this._logLockedError(e,`capability not available 'layer.capabilities.exportMap.${f}'`);if(b&&!1===this.get(`capabilities.exportMap.${b}`))return void this._logLockedError(e,`capability not available 'capabilities.exportMap.${b}'`)}"source"!==e||"not-loaded"===this.loadStatus?(this._set(e,r),"service"!==v&&a!==r&&t&&t.emit&&t.emit("sublayer-update",{propertyName:e,target:this})):this._logLockedError(e,"'source' can't be changed after calling sublayer.load()")}_handleSublayersChange(e,r){r&&(r.forEach(t=>{t.parent=null,t.layer=null}),this.handles.removeAll()),e&&(e.forEach(t=>{t.parent=this,t.layer=this.layer}),this.handles.add([e.on("after-add",({item:t})=>{t.parent=this,t.layer=this.layer}),e.on("after-remove",({item:t})=>{t.parent=null,t.layer=null}),e.on("before-changes",t=>{const a=this.get("layer.capabilities.exportMap.supportsSublayersChanges");null==a||a||(u.Z.getLogger(this.declaredClass).error(new I.Z("sublayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{sublayer:this,layer:this.layer})),t.preventDefault())})]))}_logLockedError(e,r){u.Z.getLogger(this.declaredClass).error(new I.Z("sublayer:locked",`Property '${String(e)}' can't be changed on Sublayer from the layer '${this.layer.id}'`,{reason:r,sublayer:this,layer:this.layer}))}_getLayerDomain(e){const r=this.fieldsIndex.get(e);return r?r.domain:null}};o.test={isMapImageLayerOverridePolicy:e=>e===L||e===ee,isTileImageLayerOverridePolicy:e=>e===oe},(0,i._)([(0,l.Cb)({readOnly:!0})],o.prototype,"capabilities",void 0),(0,i._)([(0,M.r)("service","capabilities",["layerDefinition.canModifyLayer","layerDefinition.capabilities"])],o.prototype,"readCapabilities",null),(0,i._)([(0,l.Cb)({type:String,value:null,json:{name:"layerDefinition.definitionExpression",write:{allowNull:!0,overridePolicy:ee}}})],o.prototype,"definitionExpression",null),(0,i._)([(0,l.Cb)({type:[ae.Z],json:{origins:{service:{read:{source:"layerDefinition.fields"}}}}})],o.prototype,"fields",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],o.prototype,"fieldsIndex",null),(0,i._)([(0,l.Cb)({type:de.Z,value:null,json:{name:"layerDefinition.floorInfo",read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo",overridePolicy:ee},origins:{"web-scene":{read:!1,write:!1}}}})],o.prototype,"floorInfo",null),(0,i._)([(0,l.Cb)({type:pe.Z,json:{read:{source:"layerDefinition.extent"}}})],o.prototype,"fullExtent",void 0),(0,i._)([(0,l.Cb)({type:k.Mk.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:k.Mk.read}}}}})],o.prototype,"geometryType",void 0),(0,i._)([(0,l.Cb)({type:String})],o.prototype,"globalIdField",void 0),(0,i._)([(0,M.r)("service","globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],o.prototype,"readGlobalIdFieldFromService",null),(0,i._)([(0,l.Cb)({type:p.z8,json:{write:{ignoreOrigin:!0}}})],o.prototype,"id",null),(0,i._)([(0,l.Cb)({value:null,type:[ne.Z],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo"},write:{target:"layerDefinition.drawingInfo.labelingInfo",overridePolicy:L}}})],o.prototype,"labelingInfo",null),(0,i._)([(0,C.c)("labelingInfo")],o.prototype,"writeLabelingInfo",null),(0,i._)([(0,l.Cb)({type:Boolean,value:!0,json:{read:{source:"layerDefinition.drawingInfo.showLabels"},write:{target:"layerDefinition.drawingInfo.showLabels",overridePolicy:L}}})],o.prototype,"labelsVisible",null),(0,i._)([(0,l.Cb)({value:null})],o.prototype,"layer",null),(0,i._)([(0,l.Cb)({type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend",overridePolicy:H}}})],o.prototype,"legendEnabled",void 0),(0,i._)([(0,l.Cb)({type:["show","hide","hide-children"],value:"show",json:{read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],o.prototype,"listMode",null),(0,i._)([(0,l.Cb)({type:Number,value:0,json:{write:{overridePolicy:L}}})],o.prototype,"minScale",null),(0,i._)([(0,M.r)("minScale",["minScale","layerDefinition.minScale"])],o.prototype,"readMinScale",null),(0,i._)([(0,l.Cb)({type:Number,value:0,json:{write:{overridePolicy:L}}})],o.prototype,"maxScale",null),(0,i._)([(0,M.r)("maxScale",["maxScale","layerDefinition.maxScale"])],o.prototype,"readMaxScale",null),(0,i._)([(0,l.Cb)({readOnly:!0})],o.prototype,"effectiveScaleRange",null),(0,i._)([(0,l.Cb)({type:String})],o.prototype,"objectIdField",void 0),(0,i._)([(0,M.r)("service","objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],o.prototype,"readObjectIdFieldFromService",null),(0,i._)([(0,l.Cb)({type:Number,value:1,json:{write:{target:"layerDefinition.drawingInfo.transparency",overridePolicy:L}}})],o.prototype,"opacity",null),(0,i._)([(0,M.r)("opacity",["layerDefinition.drawingInfo.transparency","layerDefinition.transparency"])],o.prototype,"readOpacity",null),(0,i._)([(0,C.c)("opacity")],o.prototype,"writeOpacity",null),(0,i._)([(0,l.Cb)({json:{type:p.z8,write:{target:"parentLayerId",writerEnsuresNonNull:!0,overridePolicy:L}}})],o.prototype,"parent",void 0),(0,i._)([(0,C.c)("parent")],o.prototype,"writeParent",null),(0,i._)([(0,l.Cb)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,r)=>!r.disablePopup},write:{target:"disablePopup",overridePolicy:H,writer(e,r,t){r[t]=!e}}}})],o.prototype,"popupEnabled",void 0),(0,i._)([(0,l.Cb)({type:K.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy:H}}})],o.prototype,"popupTemplate",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],o.prototype,"defaultPopupTemplate",null),(0,i._)([(0,l.Cb)({types:A.A,value:null,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:L},origins:{"web-scene":{types:A.o,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:L}}}}})],o.prototype,"renderer",null),(0,i._)([(0,l.Cb)({types:{key:"type",base:null,typeMap:{"data-layer":se.n,"map-layer":Y.R}},cast(e){if(e){if("mapLayerId"in e)return(0,p.TJ)(Y.R,e);if("dataSource"in e)return(0,p.TJ)(se.n,e)}return e},json:{name:"layerDefinition.source",write:{overridePolicy:L}}})],o.prototype,"source",null),(0,i._)([(0,l.Cb)()],o.prototype,"sourceJSON",void 0),(0,i._)([(0,l.Cb)({value:null,json:{type:[p.z8],write:{target:"subLayerIds",allowNull:!0,overridePolicy:L}}})],o.prototype,"sublayers",null),(0,i._)([(0,T.p)("sublayers")],o.prototype,"castSublayers",null),(0,i._)([(0,C.c)("sublayers")],o.prototype,"writeSublayers",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"name",write:{overridePolicy:H}}})],o.prototype,"title",void 0),(0,i._)([(0,l.Cb)({type:String})],o.prototype,"typeIdField",void 0),(0,i._)([(0,M.r)("typeIdField",["layerDefinition.typeIdField"])],o.prototype,"readTypeIdField",null),(0,i._)([(0,l.Cb)({type:[Q.Z],json:{origins:{service:{read:{source:"layerDefinition.types"}}}}})],o.prototype,"types",void 0),(0,i._)([(0,l.Cb)({type:String,json:{read:{source:"layerUrl"},write:{target:"layerUrl",overridePolicy:oe}}})],o.prototype,"url",null),(0,i._)([(0,l.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"},write:{target:"defaultVisibility",overridePolicy:L}}})],o.prototype,"visible",null),(0,i._)([(0,C.c)("visible")],o.prototype,"writeVisible",null),o=z=(0,i._)([(0,x.j)("esri.layers.support.Sublayer")],o);const ce=o}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3207.b41fe2bb093dc349.js b/apps/n/porrtal-io-app/public/angular/3207.b41fe2bb093dc349.js deleted file mode 100644 index 3ea79d10..00000000 --- a/apps/n/porrtal-io-app/public/angular/3207.b41fe2bb093dc349.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3207],{3207:(y,s,n)=>{n.r(s),n.d(s,{z:()=>f});var u,h,o,d=n(1719),t={exports:{}};u=t,void 0!==(o=t.exports,Object.defineProperty(o,"__esModule",{value:!0}),h=void(o.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u897f\u5143",_era_bc:"\u897f\u5143\u524d",A:"\u4e0a\u5348",P:"\u4e0b\u5348",AM:"\u4e0a\u5348",PM:"\u4e0b\u5348","A.M.":"\u4e0a\u5348","P.M.":"\u4e0b\u5348",January:"1\u6708",February:"2\u6708",March:"3\u6708",April:"4\u6708",May:"5\u6708",June:"6\u6708",July:"7\u6708",August:"8\u6708",September:"9\u6708",October:"10\u6708",November:"11\u6708",December:"12\u6708",Jan:"1\u6708",Feb:"2\u6708",Mar:"3\u6708",Apr:"4\u6708","May(short)":"5\u6708",Jun:"6\u6708",Jul:"7\u6708",Aug:"8\u6708",Sep:"9\u6708",Oct:"10\u6708",Nov:"11\u6708",Dec:"12\u6708",Sunday:"\u661f\u671f\u65e5",Monday:"\u661f\u671f\u4e00",Tuesday:"\u661f\u671f\u4e8c",Wednesday:"\u661f\u671f\u4e09",Thursday:"\u661f\u671f\u56db",Friday:"\u661f\u671f\u4e94",Saturday:"\u661f\u671f\u516d",Sun:"\u9031\u65e5",Mon:"\u9031\u4e00",Tue:"\u9031\u4e8c",Wed:"\u9031\u4e09",Thu:"\u9031\u56db",Fri:"\u9031\u4e94",Sat:"\u9031\u516d",_dateOrd:function(_){var e="th";if(_<11||_>13)switch(_%10){case 1:case 2:case 3:e="\u65e5"}return e},"Zoom Out":"\u7e2e\u653e",Play:"\u64ad\u653e",Stop:"\u505c\u6b62",Legend:"\u5716\u4f8b","Click, tap or press ENTER to toggle":"",Loading:"\u6b63\u5728\u8f09\u5165",Home:"\u9996\u9801",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u5217\u5370",Image:"\u5f71\u50cf",Data:"\u8cc7\u6599",Print:"\u5217\u5370","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u5f9e %1 \u81f3 %2","From %1":"\u5f9e %1","To %1":"\u81f3 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(a,o){for(var _=0;_e[r]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3208.092ff5fb721fc0fa.js b/apps/n/porrtal-io-app/public/angular/3208.092ff5fb721fc0fa.js deleted file mode 100644 index 691d42b4..00000000 --- a/apps/n/porrtal-io-app/public/angular/3208.092ff5fb721fc0fa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3208],{23208:(J,F,c)=>{c.r(F),c.d(F,{default:()=>Z});var P,E,R,V,f,S,s,N=c(84792),L=c(8314),k=c(63290),T=c(62208),O=c(10699),C=c(32917),z=c(93088),x=c(8834);(s=P||(P={}))[s.Binary=0]="Binary",s[s.JSON=1]="JSON",function(s){s[s.TreeIndex=0]="TreeIndex",s[s.TreeStats=1]="TreeStats",s[s.TreeData=2]="TreeData",s[s.BrickBundles=3]="BrickBundles",s[s.Section=4]="Section",s[s.VariableStats=5]="VariableStats"}(E||(E={})),function(s){s[s.None=1]="None",s[s.Front=2]="Front",s[s.Back=3]="Back"}(R||(R={})),function(s){s[s.Low=0]="Low",s[s.Medium=1]="Medium",s[s.High=2]="High"}(V||(V={})),function(s){s[s.None=0]="None",s[s.StaticSections=1]="StaticSections",s[s.Slices=2]="Slices",s[s.DynamicSections=4]="DynamicSections",s[s.GhostShell=8]="GhostShell",s[s.Isosurface=16]="Isosurface",s[s.Quality=32]="Quality",s[s.SunLocation=64]="SunLocation",s[s.StaticSectionSelection=128]="StaticSectionSelection",s[s.ExaggerationAndOffset=256]="ExaggerationAndOffset",s[s.CurrentTime=512]="CurrentTime",s[s.CurrentVariable=1024]="CurrentVariable",s[s.DeleteIsosurface=2048]="DeleteIsosurface",s[s.ContainerVisibility=4096]="ContainerVisibility",s[s.RenderMode=8192]="RenderMode",s[s.Optimization=16384]="Optimization",s[s.VariableStyles=32768]="VariableStyles",s[s.VolumeStyles=65536]="VolumeStyles"}(f||(f={})),function(s){s[s.Isosurfaces=0]="Isosurfaces",s[s.DynamicSections=1]="DynamicSections",s[s.StaticSections=2]="StaticSections"}(S||(S={}));var H=c(54346);function q(s){return(0,H.V)(`esri/libs/vxl/${s}`)}var $=c(59617),Q=c(24805),G=c(13986),j=c(13934),Y=c(5894),K=c(57596),y=c(67969);const w=k.Z.getLogger("esri.layers.VoxelWasmPerSceneView");var o;!function(s){s[s.Lifetime=1]="Lifetime",s[s.RequestResponse=2]="RequestResponse",s[s.Rendering=3]="Rendering",s[s.Error=4]="Error"}(o||(o={}));class Z{constructor(t){this._halfIntTexturesAvailable=!1,this._textureFloatLinearAvailable=!1,this._havePreparedWithAllLayers=!1,this._renderPluginContext=null,this._vxl=null,this._pluginIsActive=!1,this._moreToLoad=!1,this._viewportWidth=-1,this._viewportHeight=-1,this._newLayers=[],this._layers=new Map,this._shaderOutput=j.H.Color,this._renderSlot=Y.r.VOXEL,this._rctx=null,this._renderTargetToRestore=null,this._lastFrameWasStationary=!1,this._wasmMemBlockSizes=[512,1024,2048,4096,8192,16384,32768,65536],this._wasmMemBlocks=new Map,this._dbgFlags=new Set,this._captureFrustum=!1,this._frustum=null,this._frustumRenderableId=-1,this._renderCoordsHelper=null,this._view=t,this._initialize()}get canRender(){return!!this._vxl&&"local"===this._view.viewingMode}_dbg(t,e){this._dbgFlags.has(t)&&(t===o.Error?w.error(e):w.warn(e))}_removeRenderPlugin(){this._pluginIsActive&&this._view._stage&&(this._dbg(o.Lifetime,"--removeRenderPlugin--"),this._view._stage.removeRenderPlugin(this)),this._pluginIsActive=!1}_initialize(){this._dbg(o.Lifetime,"--initialize--");for(const t of this._wasmMemBlockSizes)this._wasmMemBlocks.set(t,0);this._readyWatchHandle=(0,C.YP)(()=>this._view.ready,t=>{t&&"local"===this._view.viewingMode?(this._dbg(o.Lifetime,"view ready status changed to ready on a local view, calling addRenderPlugin"),this._view._stage.addRenderPlugin([this._renderSlot],this),this._pluginIsActive=!0):(this._dbg(o.Lifetime,"view ready status changed, not ready or not a local view!"),this._removeRenderPlugin())},{initial:!0}),this._qualityWatchHandle=(0,C.YP)(()=>this._view?.qualityProfile,t=>{this._dbg(o.Rendering,"qualityProfile changed to "+t),this._vxl&&this._vxl.set_quality(this._toWasmQuality(t))},{initial:!0}),this._timeExtentWatchHandle=(0,C.YP)(()=>this._view?.timeExtent,()=>{if(this._vxl){const t=this._getTimeArgs(this._view?.timeExtent);this._dbg(o.Rendering,"sceneView timeExtent changed to useTime="+t.useTime+" st="+t.startTime+" et="+t.endTime),this._vxl.set_scene_time_extent(t.startTime,t.endTime,t.useTime),this._renderPluginContext.requestRender()}},{initial:!0}),this._stationaryWatchHandle=(0,C.YP)(()=>this._view?.stationary,t=>{this._vxl&&t&&!this._lastFrameWasStationary&&this._renderPluginContext.requestRender()})}initializeRenderContext(t){this._dbg(o.Lifetime,"--initializeRenderContext--");const e=t.renderContext.rctx;e.type===K.zO.WEBGL2?(this._renderPluginContext=t,this._rctx=t.renderContext.rctx,this._halfIntTexturesAvailable=!!this._rctx.capabilities.textureNorm16,this._textureFloatLinearAvailable=this._rctx.capabilities.textureFloatLinear,this._initializeWasm(e.gl)):this._dbg(o.Error,"WebGL 1 context only!")}uninitializeRenderContext(){this._renderPluginContext=null,this._rctx=null,this._dbg(o.Lifetime,"--uninitializeRenderContext--")}_restoreFramebuffer(){if(!this._renderTargetToRestore)return;const t=this._renderTargetToRestore.fbo;if(!this._rctx)return void this._dbg(o.Error,"no context in restoreFramebuffer!");this._rctx.bindFramebuffer(t,!0);const e=this._renderTargetToRestore.viewport;this._rctx.setViewport(e.x,e.y,e.width,e.height)}_bindPreviousDepthToSlot(t,e){if(!this._rctx||!this._renderTargetToRestore)return 0;const a=this._renderTargetToRestore.fbo.depthStencilTexture;return a?(this._rctx.bindTexture(0===e?null:a,t,!0),1):(this._dbg(o.Error,"no depth/stencil texture exists!"),0)}_modifyResourceCount(t,e,i){if(!this._rctx)return void this._dbg(o.Error,"modifyAllocation callback has no rendering context!");const r=t;1===i?this._rctx.instanceCounter.increment(r,e):this._rctx.instanceCounter.decrement(r,e)}_setBlendState(t,e,i,r){this._rctx?(this._rctx.setBlendingEnabled(1===t),this._rctx.setBlendFunction(e,i),this._rctx.setBlendEquation(r)):this._dbg(o.Error,"setBlendState callback has no rendering context!")}_setFrontFace(t){this._rctx?this._rctx.setFrontFace(t):this._dbg(o.Error,"setFrontFace callback has no rendering context!")}_setDepthStencilStateFunction(t,e,i){this._rctx?(this._rctx.setDepthFunction(i),this._rctx.setDepthTestEnabled(1===t),this._rctx.setDepthWriteEnabled(1===e),this._rctx.setStencilTestEnabled(!1),this._rctx.setStencilFunction(y.wb.ALWAYS,0,255),this._rctx.setStencilOpSeparate(y.LR.FRONT,y.xS.KEEP,y.xS.INCR,y.xS.KEEP),this._rctx.setStencilOpSeparate(y.LR.BACK,y.xS.KEEP,y.xS.DECR,y.xS.KEEP)):this._dbg(o.Error,"setDepthStencilStateFunction callback has no rendering context!")}_setRasterizerState(t){if(this._rctx)switch(t){case R.None:this._rctx.setFaceCullingEnabled(!1);break;case R.Back:this._rctx.setCullFace(y.LR.BACK),this._rctx.setFaceCullingEnabled(!0);break;case R.Front:this._rctx.setCullFace(y.LR.FRONT),this._rctx.setFaceCullingEnabled(!0)}else this._dbg(o.Error,"setRasterizerState callback has no rendering context!")}_setViewport(t,e,i,r){this._rctx?this._rctx.setViewport(t,e,i,r):this._dbg(o.Error,"setViewport callback has no rendering context!")}_updateMemoryUsage(){this._layers.forEach((t,e)=>{if(t.needMemoryUsageUpdate){const i=this._vxl.estimate_memory_usage(e);i>=0&&(t.needMemoryUsageUpdate=!1,t.layerView.setUsedMemory(i))}})}_syncRequestsResponses(){this._layers.forEach((t,e)=>{const i=[];t.responses.forEach((l,m)=>{i.push(m),this._dbg(o.RequestResponse,"responding for requestID:"+m+" size:"+l.size),this._vxl.respond(e,m,l),l.requestType!==E.TreeIndex&&l.requestType!==E.Section||(t.needMemoryUsageUpdate=!0)});const r=t.responses;for(const l of i)r.delete(l);const a=this._vxl.get_new_requests(e),n=t.abortController.signal;for(const l in a){t.outstandingRequestCount+=1,1===t.outstandingRequestCount&&t.layerView.updatingFlagChanged();const m=a[l],g={responseType:"array-buffer",signal:n};this._dbg(o.RequestResponse,"making requestID:"+l+" url:"+m.url),(0,N.default)(m.url,g).then(h=>{t.outstandingRequestCount-=1,0===t.outstandingRequestCount&&t.layerView.updatingFlagChanged(),this._dbg(o.RequestResponse,"have response for requestID:"+l);let _=0;if(h.data.byteLength>0){_=this._vxl._malloc(h.data.byteLength);const v=new Uint8Array(this._vxl.HEAPU8.buffer,_,h.data.byteLength),p=new Uint8Array(h.data);for(let b=0;b{t.outstandingRequestCount-=1,0===t.outstandingRequestCount&&t.layerView.updatingFlagChanged(),(0,O.D_)(h)||(this._dbg(o.Error,`requestID:${l} failed, error=${h.toString()}`),r.set(+l,{responseType:m.responseType,ptr:0,size:0,success:!1,requestType:m.requestType}))})}})}updateWasmCamera(t){this._vxl.set_projection_matrix.apply(this._vxl,t.projectionMatrix),this._vxl.set_view_matrix.apply(this._vxl,t.viewMatrix),this._vxl.set_near_far(t.near,t.far)}isUpdating(t){return!(this._vxl||!this._vxlPromise)||!!this._layers.has(t)&&this._layers.get(t).outstandingRequestCount>0}getLayerTimes(t){const e=[];return this._layers.forEach((i,r)=>{if(i.layerView.wasmLayerId===t.wasmLayerId){const a=this._vxl.get_layer_epoch_times(r,t.layer.currentVariableId);for(let n=0;n{i.layerView.wasmLayerId===t.wasmLayerId&&(e=this._vxl.get_layer_current_time_id(r))}),e}setEnabled(t,e){this._layers.forEach((i,r)=>{i.layerView.wasmLayerId===t.wasmLayerId&&(this._vxl.set_enabled(r,e),i.needMemoryUsageUpdate=!0,this._renderPluginContext.requestRender())})}setStaticSections(t,e){return this._doMaskedUIUpdate(t,{mask:f.StaticSections,staticSections:e},!0)}setCurrentVariable(t,e){return this._doMaskedUIUpdate(t,{mask:f.CurrentVariable,currentVariable:e},!0)}setRenderMode(t,e){return this._doMaskedUIUpdate(t,{mask:f.RenderMode,renderMode:e},!0)}setVerticalExaggerationAndOffset(t,e,i,r){return this._doMaskedUIUpdate(t,{mask:f.ExaggerationAndOffset,volStyleDesc:{volumeId:e,verticalExaggeration:i,verticalOffset:r}},!0)}setVariableStyles(t,e){return this._doMaskedUIUpdate(t,{mask:f.VariableStyles,variableStyles:e},!0)}setVolumeStyles(t,e){return this._doMaskedUIUpdate(t,{mask:f.VolumeStyles,volumeStyles:e},!0)}setEnableDynamicSections(t,e){return this._doMaskedUIUpdate(t,{mask:f.ContainerVisibility,containerIsVisible:e,container:S.DynamicSections},!0)}setEnableIsosurfaces(t,e){return this._doMaskedUIUpdate(t,{mask:f.ContainerVisibility,containerIsVisible:e,container:S.Isosurfaces},!0)}setEnableSections(t,e){return this._doMaskedUIUpdate(t,{mask:f.ContainerVisibility,containerIsVisible:e,container:S.StaticSections},!0)}_doMaskedUIUpdate(t,e,i){if(!this._vxl)return!1;let r=!1;return this._layers.forEach((a,n)=>{if(a.layerView.wasmLayerId===t.wasmLayerId){const l={str:JSON.stringify(e),byteCount:0,ptr:0,isReusable:!1};this._allocateBlock(l)&&(r=1===this._vxl.handle_masked_ui_update(n,l.ptr,l.byteCount),l.isReusable||this._vxl._free(l.ptr))}}),r&&i&&this._renderPluginContext.requestRender(),r}_addTriangleToWasmBuffer(t,e,i,r,a){return t[3*e+0]=i[0],t[3*e+1]=i[1],t[3*e+2]=i[2],t[3*(e+=1)+0]=r[0],t[3*e+1]=r[1],t[3*e+2]=r[2],t[3*(e+=1)+0]=a[0],t[3*e+1]=a[1],t[3*e+2]=a[2],e+1}_addNormalToWasmBuffer(t,e,i){return t[3*e+0]=i[0],t[3*e+1]=i[1],t[3*e+2]=i[2],e+1}_doCaptureFrustum(){if(!this._vxl)return;const i=this._vxl._malloc(108*Float32Array.BYTES_PER_ELEMENT),r=new Float32Array(this._vxl.HEAPF32.buffer,i,108),a=this._vxl._malloc(36*Float32Array.BYTES_PER_ELEMENT),n=new Float32Array(this._vxl.HEAPF32.buffer,a,36),l=this._frustum.points[x.NQ.NEAR_BOTTOM_LEFT],m=this._frustum.points[x.NQ.NEAR_BOTTOM_RIGHT],g=this._frustum.points[x.NQ.NEAR_TOP_RIGHT],h=this._frustum.points[x.NQ.NEAR_TOP_LEFT],_=this._frustum.points[x.NQ.FAR_BOTTOM_LEFT],v=this._frustum.points[x.NQ.FAR_BOTTOM_RIGHT],p=this._frustum.points[x.NQ.FAR_TOP_RIGHT],b=this._frustum.points[x.NQ.FAR_TOP_LEFT];let d=0,u=0;const B=this._frustum.planes[x.Nu.NEAR];d=this._addTriangleToWasmBuffer(r,d,g,m,l),u=this._addNormalToWasmBuffer(n,u,B),d=this._addTriangleToWasmBuffer(r,d,l,h,g),u=this._addNormalToWasmBuffer(n,u,B);const I=this._frustum.planes[x.Nu.FAR];d=this._addTriangleToWasmBuffer(r,d,_,v,p),u=this._addNormalToWasmBuffer(n,u,I),d=this._addTriangleToWasmBuffer(r,d,p,b,_),u=this._addNormalToWasmBuffer(n,u,I);const W=this._frustum.planes[x.Nu.TOP];d=this._addTriangleToWasmBuffer(r,d,p,g,h),u=this._addNormalToWasmBuffer(n,u,W),d=this._addTriangleToWasmBuffer(r,d,h,b,p),u=this._addNormalToWasmBuffer(n,u,W);const A=this._frustum.planes[x.Nu.BOTTOM];d=this._addTriangleToWasmBuffer(r,d,l,m,v),u=this._addNormalToWasmBuffer(n,u,A),d=this._addTriangleToWasmBuffer(r,d,v,_,l),u=this._addNormalToWasmBuffer(n,u,A);const M=this._frustum.planes[x.Nu.LEFT];d=this._addTriangleToWasmBuffer(r,d,h,l,_),u=this._addNormalToWasmBuffer(n,u,M),d=this._addTriangleToWasmBuffer(r,d,_,b,h),u=this._addNormalToWasmBuffer(n,u,M);const U=this._frustum.planes[x.Nu.RIGHT];d=this._addTriangleToWasmBuffer(r,d,g,p,v),u=this._addNormalToWasmBuffer(n,u,U),d=this._addTriangleToWasmBuffer(r,d,v,m,g),u=this._addNormalToWasmBuffer(n,u,U),-1!==this._frustumRenderableId&&this._vxl.remove_generic_mesh(this._frustumRenderableId),this._frustumRenderableId=this._vxl.add_generic_mesh(i,108,a,36,255,0,0,64),this._vxl._free(i),this._vxl._free(a),this._captureFrustum=!1,this._renderPluginContext.requestRender()}captureFrustum(){null===this._renderCoordsHelper&&(this._renderCoordsHelper=G.Z.create($.JY.Local,(0,z.E2)(!1,this._view.spatialReference))),null===this._frustum&&(this._frustum=new Q.i(this._renderCoordsHelper)),this._captureFrustum=!0,null!==this._renderPluginContext&&this._renderPluginContext.requestRender()}toggleFullVolumeExtentDraw(t){this._vxl&&this._layers.forEach((e,i)=>{e.layerView.wasmLayerId===t.wasmLayerId&&(this._vxl.toggle_full_volume_extent_draw(i),this._renderPluginContext.requestRender())})}addVoxelLayer(t){if(!this._vxl){const i={layerView:t,resolveCallback:null,rejectCallback:null},r=new Promise((a,n)=>{i.resolveCallback=a,i.rejectCallback=n});return this._newLayers.push(i),r}const e=this._addVoxelLayer(t);return e<0?Promise.reject(-1):Promise.resolve(e)}removeVoxelLayer(t){if(!this._vxl){const r=this._newLayers.findIndex(n=>t.uid===n.layerView.uid);r>=0&&(this._newLayers[r].resolveCallback(-1),this._newLayers.splice(r,1));const a=this._newLayers.length;return 0===a&&(this._dbg(o.Lifetime," no voxel layers left after removing a layer, removing RenderPlugin and destroying"),this.destroy()),a}let e=-1;this._layers.forEach((r,a)=>{r.layerView.wasmLayerId===t.wasmLayerId&&(e=a,r.abortController.abort(),this._vxl.remove_layer(e))}),e>=0&&this._layers.delete(e);const i=this._layers.size;return 0===i&&(this._dbg(o.Lifetime," no voxel layers left after removing a layer, removing RenderPlugin and destroying"),this.destroy()),i}_getBlockSize(t){for(const e of this._wasmMemBlockSizes)if(t=0){const m=new AbortController;if(this._layers.set(i,{layerView:t,responses:new Map,outstandingRequestCount:0,abortController:m,needMemoryUsageUpdate:!1}),!this._halfIntTexturesAvailable||(0,L.Z)("mac")){const g=[];let h="";for(const _ of t.layer.variables)"Int16"!==_.renderingFormat.type&&"UInt16"!==_.renderingFormat.type||(g.push(_.name),_.id===t.layer.currentVariableId&&(h=_.name));""!==h&&w.error("#addVoxelLayer_error()",t.layer,`The voxel layer '${t.layer.title}' cannot render the current variable '${h}' in this browser`),g.length>0&&w.warn("#addVoxelLayer_warning()",t.layer,`The voxel layer '${t.layer.title}' cannot render the variables '${g.toString()}' in this browser`)}if(!this._textureFloatLinearAvailable){const g=[];let h="";for(const _ of t.layer.variables)"Float32"===_.renderingFormat.type&&(g.push(_.name),_.id===t.layer.currentVariableId&&(h=_.name));""!==h&&w.error("#addVoxelLayer_error()",t.layer,`The voxel layer '${t.layer.title}' cannot render the current variable '${h}' in this browser`),g.length>0&&w.warn("#addVoxelLayer_warning()",t.layer,`The voxel layer '${t.layer.title}' cannot render the variables '${g.toString()}' in this browser`)}return(0,L.Z)("esri-mobile")&&w.warnOnce("Mobile support differs across devices. Voxel layer might not display as expected."),i}return-1}prepareRender(t){if(!this._vxl)return;const e=t.bindParameters.camera.viewForward,i=t.bindParameters.camera.eye;this._vxl.update_camera_pos_and_direction(i[0],i[1],i[2],e[0],e[1],e[2]);const r=this._vxl.cull();this._dbg(o.RequestResponse,"missingResourceCount="+r),this._moreToLoad=r>0,this._havePreparedWithAllLayers=0===this._newLayers.length,this._updateMemoryUsage()}render(t){if(!this._vxl||t.output!==this._shaderOutput||t.bindParameters.slot!==this._renderSlot)return;for(const i of this._newLayers){const r=this._addVoxelLayer(i.layerView);-1===r?i.rejectCallback(-1):i.resolveCallback(r)}if(this._newLayers=[],0===this._layers.size)return void this._dbg(o.Error,"No voxel layers but RenderPlugin instance is being asked to render!");this._renderTargetToRestore={fbo:this._rctx.getBoundFramebufferObject(),viewport:this._rctx.getViewport()},this._syncRequestsResponses(),this._lastFrameWasStationary=this._view.stationary,this._rctx.setPolygonOffsetFillEnabled(!1),this._rctx.setScissorTestEnabled(!1),this._rctx.setColorMask(!0,!0,!0,!0),this._vxl.begin_color_frame(!this._view.stationary||this._moreToLoad,t.bindParameters.lighting.mainLight.direction[0],t.bindParameters.lighting.mainLight.direction[1],t.bindParameters.lighting.mainLight.direction[2]);const e=this._renderTargetToRestore.viewport;e.width===this._viewportWidth&&e.height===this._viewportHeight||(this._viewportWidth=e.width,this._viewportHeight=e.height,this._vxl.set_viewport(e.width,e.height),this._layers.forEach(i=>{i.needMemoryUsageUpdate=!0})),0===e.x&&0===e.y||this._dbg(o.Error,"Unsupported viewport parameters detected!"),this.updateWasmCamera(t.bindParameters.camera),this._captureFrustum&&(this._frustum.update(t.bindParameters.camera),this._doCaptureFrustum()),this._vxl.draw(),this._renderTargetToRestore.fbo=null,t.rctx.externalTextureUnitUpdate(this._vxl.get_texture_units_bound_in_frame(),this._vxl.get_active_texture_unit()),t.rctx.externalVertexArrayObjectUpdate(),t.rctx.externalVertexBufferUpdate(),this._rctx.externalProgramUpdate(),(this._moreToLoad||!this._havePreparedWithAllLayers&&this._layers.size>0)&&this._renderPluginContext.requestRender()}destroy(){this._dbg(o.Lifetime,"--destroy--"),this._removeRenderPlugin(),this._readyWatchHandle=(0,T.hw)(this._readyWatchHandle),this._qualityWatchHandle=(0,T.hw)(this._qualityWatchHandle),this._timeExtentWatchHandle=(0,T.hw)(this._timeExtentWatchHandle),this._stationaryWatchHandle=(0,T.hw)(this._stationaryWatchHandle),this._vxl&&(this._layers.forEach(t=>{t.abortController.abort()}),this._wasmMemBlocks.forEach(t=>{0!==t&&this._vxl._free(t)}),this._vxl.uninitialize_voxel_wasm(),this._vxl=null)}_initializeWasm(t){return this._vxl?Promise.resolve():(this._vxlPromise||(this._vxlPromise=function D(s){return new Promise(t=>c.e(6259).then(c.bind(c,16259)).then(e=>e.v).then(({default:e})=>{const i=e({locateFile:q,preinitializedWebGLContext:s,onRuntimeInitialized:()=>t(i)})})).catch(t=>{throw t})}(t).then(e=>{if(this._vxl=e,this._vxlPromise=null,this._newLayers.length<=0)return this._dbg(o.Lifetime," no voxel layers left after WASM downloaded, removing RenderPlugin and destroying"),void this.destroy();const i=this._getTimeArgs(this._view?.timeExtent),r=this._vxl.addFunction(this._restoreFramebuffer.bind(this),"v"),a=this._vxl.addFunction(this._setBlendState.bind(this),"viiii"),n=this._vxl.addFunction(this._setFrontFace.bind(this),"vi"),l=this._vxl.addFunction(this._setRasterizerState.bind(this),"vi"),m=this._vxl.addFunction(this._setDepthStencilStateFunction.bind(this),"viii"),g=this._vxl.addFunction(this._setViewport.bind(this),"viiii"),h=this._vxl.addFunction(this._bindPreviousDepthToSlot.bind(this),"iii"),_=this._vxl.addFunction(this._modifyResourceCount.bind(this),"viii"),v=this._halfIntTexturesAvailable&&!(0,L.Z)("mac");this._vxl.initialize_voxel_wasm(r,a,n,l,m,g,h,_,i.startTime,i.endTime,i.useTime,v,this._textureFloatLinearAvailable),this._renderPluginContext&&this._renderPluginContext.requestRender()}).catch(()=>{for(const e of this._newLayers)e.rejectCallback(-2);this._dbg(o.Error," WASM failed to download, removing RenderPlugin and destroying"),this.destroy()})),this._vxlPromise)}pickDepth(t,e,i){if(!this._vxl||!this._rctx||0===this._layers.size)return null;const r=i.viewport[3]-e;if(t<0||t>i.viewport[2]||e<0||e>i.viewport[3])return this._dbg(o.Error,`pickDepth: outOfRange, screenXY=[${t}, ${r}], vp=[${i.viewport.toString()}]`),null;this._renderTargetToRestore={fbo:this._rctx.getBoundFramebufferObject(),viewport:this._rctx.getViewport()};const a=i.viewForward,n=i.eye;this._vxl.update_camera_pos_and_direction(n[0],n[1],n[2],a[0],a[1],a[2]),this.updateWasmCamera(i),this._vxl.begin_frame();const l=this._vxl.pick_depth(t,r);return this._renderTargetToRestore.fbo=null,this._rctx.externalTextureUnitUpdate(this._vxl.get_texture_units_bound_in_frame(),this._vxl.get_active_texture_unit()),this._rctx.externalVertexArrayObjectUpdate(),this._rctx.externalVertexBufferUpdate(),this._rctx.externalProgramUpdate(),l.success?l.distanceToCamera:null}_toWasmQuality(t){switch(t){case"low":return 0;case"medium":return 1;case"high":return 2}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3250.0729abec3366f925.js b/apps/n/porrtal-io-app/public/angular/3250.0729abec3366f925.js deleted file mode 100644 index beb20f0b..00000000 --- a/apps/n/porrtal-io-app/public/angular/3250.0729abec3366f925.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3250],{3250:(g,j,f)=>{f.r(j),f.d(j,{createSymbolSchema:()=>S});var i=f(39406),n=f(18716);function u(e){return"line-marker"===e.type?{type:"line-marker",color:e.color?.toJSON(),placement:e.placement,style:e.style}:e.constructor.fromJSON(e.toJSON()).toJSON()}function y(e){return(0,n.hF)(e)}function S(e,t,r=!1){if(!e)return null;switch(e.type){case"simple-fill":case"picture-fill":return function b(e,t,r){const a=(0,n.jj)(i.LW.FILL,t),l=r?y(a):a,s=e.clone(),o=s.outline,h=(0,n.jy)(t.symbologyType);h||(s.outline=null);const p={materialKey:l,hash:s.hash(),...u(s)};if(h)return p;const c=[];if(c.push(p),o){const m=(0,n.jj)(i.LW.LINE,{...t,isOutline:!0}),V={materialKey:r?y(m):m,hash:o.hash(),...u(o)};c.push(V)}return{type:"composite-symbol",layers:c,hash:c.reduce((m,V)=>V.hash+m,"")}}(e,t,r);case"simple-marker":case"picture-marker":return function L(e,t,r){const a=(0,n.jj)(i.LW.MARKER,t),l=r?y(a):a,s=u(e);return{materialKey:l,hash:e.hash(),...s,angle:e.angle,maxVVSize:t.maxVVSize}}(e,t,r);case"simple-line":return function K(e,t,r){const a=(0,n.jy)(t.symbologyType)?i.mD.DEFAULT:t.symbologyType,l=(0,n.jj)(i.LW.LINE,{...t,symbologyType:a}),s=r?y(l):l,o=e.clone(),h=o.marker;o.marker=null;const p=[];if(p.push({materialKey:s,hash:o.hash(),...u(o)}),h){const c=(0,n.jj)(i.LW.MARKER,t),m=r?y(c):c;h.color=h.color??o.color,p.push({materialKey:m,hash:h.hash(),lineWidth:o.width,...u(h)})}return{type:"composite-symbol",layers:p,hash:p.reduce((c,m)=>m.hash+c,"")}}(e,t,r);case"text":return function d(e,t,r){const a=(0,n.jj)(i.LW.TEXT,t),l=r?y(a):a,s=u(e);return{materialKey:l,hash:e.hash(),...s,angle:e.angle,maxVVSize:t.maxVVSize}}(e,t,r);case"label":return function _(e,t,r){const a=e.toJSON(),l=(0,n.jj)(i.LW.LABEL,{...t,placement:a.labelPlacement});return{materialKey:r?y(l):l,hash:e.hash(),...a,labelPlacement:a.labelPlacement}}(e,t,r);case"cim":return{type:"cim",rendererKey:t.vvFlags,data:e.data,maxVVSize:t.maxVVSize};case"CIMSymbolReference":return{type:"cim",rendererKey:t.vvFlags,data:e,maxVVSize:t.maxVVSize};case"web-style":return{...u(e),type:"web-style",hash:e.hash(),rendererKey:t.vvFlags,maxVVSize:t.maxVVSize};default:throw new Error(`symbol not supported ${e.type}`)}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3277.d070c09c2bce7e7b.js b/apps/n/porrtal-io-app/public/angular/3277.d070c09c2bce7e7b.js deleted file mode 100644 index e1c31924..00000000 --- a/apps/n/porrtal-io-app/public/angular/3277.d070c09c2bce7e7b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3277],{13277:(M,s,_)=>{_.r(s),_.d(s,{TerrainPassParameters:()=>E.T,build:()=>E.b}),_(28347),_(43703),_(84161),_(28093),_(75224),_(52382),_(13934),_(78925),_(24255),_(26859),_(84833),_(36603),_(43880),_(54120),_(62952),_(54662),_(13146),_(31166),_(7025),_(92724),_(72968),_(30249),_(91528),_(2166),_(43177),_(97139),_(17625),_(47205),_(22355),_(35387);var E=_(73693)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3279.fcc40df64682935f.js b/apps/n/porrtal-io-app/public/angular/3279.fcc40df64682935f.js deleted file mode 100644 index ef5c4ed9..00000000 --- a/apps/n/porrtal-io-app/public/angular/3279.fcc40df64682935f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3279],{76825:(q,U,e)=>{e.d(U,{cn:()=>i,j:()=>A,lK:()=>I});const i="updating";function I(C){return"updating"===C?null:C}function A(C){return"updating"===C}},22498:(q,U,e)=>{e.d(U,{z:()=>T});var i=e(17626),A=(e(29132),e(14517)),C=e(85931),N=e(63290),Z=e(21286),s=e(62208),j=e(76825),g=e(32917),D=e(16730),o=e(77712),l=(e(90912),e(76898)),n=e(84161),J=e(10410),S=e(55915),f=e(5548),O=e(65401),R=e(94425),P=e(37053),W=e(46367),x=e(98624),F=e(42964),Y=e(65234);const ee="esri.views.3d.layers.i3s.I3SMeshViewFilter",V=N.Z.getLogger(ee);let T=class extends A.Z{constructor(t){super(t),this._projectionEngineLoaded=!1}initialize(){(0,g.N1)(()=>(0,s.Wg)(this.viewFilter)?.geometry||(0,s.pC)(this.layerFilter)).then(()=>this.loadAsyncModule(Promise.all([e.e(4918),e.e(4766)]).then(e.bind(e,44766)).then(t=>{this.destroyed||(this._geometryEngine=t)})))}get sortedObjectIds(){if((0,s.Wi)(this.viewFilter)||(0,s.Wi)(this.viewFilter.objectIds))return null;const t=new Float64Array(this.viewFilter.objectIds);return t.sort(),t}get parsedWhereClause(){const t=(0,s.pC)(this.viewFilter)?this.viewFilter.where:null;if((0,s.Wi)(t)||!t)return null;try{return J.WhereClause.create(t,this.layerFieldsIndex)}catch(r){V.error(`Failed to parse filter where clause: ${r}`)}return null}addFilters(t,r,a,y){const u=this.sortedObjectIds;(0,s.pC)(u)&&t.push(E=>(0,F.Yb)(u,!0,E)),this.addSqlFilter(t,this.parsedWhereClause);const c=(0,j.lK)(this._layerMaskGeometries),d=this._geometryEngine;if((0,s.pC)(c)&&(0,s.pC)(this.layerFilter)&&(0,s.pC)(d)){const E=this.layerFilter.spatialRelationship;t.push((h,m)=>_e(d,h,m,y,r,a,c,E))}const p=(0,j.lK)(this._viewMaskGeometries);if((0,s.pC)(p)&&(0,s.pC)(this.viewFilter)&&(0,s.pC)(d)){const E=this.viewFilter.spatialRelationship;t.push((h,m)=>_e(d,h,m,y,r,a,p,E))}}isMBSGeometryVisible(t,r,a){const y=(0,j.lK)(this._layerMaskGeometries),u=this._geometryEngine;if((0,s.pC)(y)&&(0,s.pC)(this.layerFilter)&&(0,s.pC)(u)){const d=this.layerFilter.spatialRelationship,p=y[0].spatialReference||r;return(0,S.st)(t,a,X,p)?ae(u,X,y,p,d):(V.warnOnce("SceneLayer.mask geometry is using unsupported SpatialReference, skipping geometry filter for MBS"),!0)}const c=(0,j.lK)(this._viewMaskGeometries);if((0,s.pC)(c)&&(0,s.pC)(this.viewFilter)&&(0,s.pC)(u)){const d=this.viewFilter.spatialRelationship,p=c[0].spatialReference||r;return(0,S.st)(t,a,X,p)?ae(u,X,c,p,d):(V.warnOnce("SceneLayerView.filter.geometry is using unsupported SpatialReference, skipping geometry filter for MBS"),!0)}return!0}get parsedGeometry(){const t=(0,j.lK)(this._viewMaskGeometries),r=(0,j.lK)(this._layerMaskGeometries);return(0,s.Wi)(t)||(0,s.Wi)(r)?t||r:r.concat(t)}get _layerMaskGeometries(){const t=this.layerFilter;return(0,s.Wi)(t)?null:(0,s.Wi)(this._geometryEngine)?j.cn:"disjoint"===t.spatialRelationship?t.geometries.map(r=>({type:"polygon",rings:r.rings,spatialReference:r.spatialReference,cache:{}})):[t.geometries.reduce((r,a)=>(r.rings=r.rings.concat(a.rings),r),{type:"polygon",rings:[],spatialReference:t.geometries[0].spatialReference,cache:{}})]}get _viewMaskGeometries(){if((0,s.Wi)(this.viewFilter))return null;const{geometry:t}=this.viewFilter;if((0,s.Wi)(t))return null;if((0,s.Wi)(this.viewFilter)||(0,s.Wi)(this._geometryEngine))return j.cn;const{distance:r,units:a}=this.viewFilter,y=this.viewFilter.spatialRelationship,u="mesh"===t.type?t.extent:t;if((0,s.Wi)(r)||0===r)return te(this._geometryEngine,u,y);const c=a||(0,D.qE)(u.spatialReference);if(u.spatialReference.isWGS84){const E=this._geometryEngine.geodesicBuffer(u,r,c);return te(this._geometryEngine,E,y)}const d=(0,W.iV)(u,Y.Z.WGS84);if((0,s.pC)(d)){const E=(0,W.iV)(this._geometryEngine.geodesicBuffer(d,r,c),u.spatialReference);return te(this._geometryEngine,E,y)}if(!this._projectionEngineLoaded&&(this.loadAsyncModule((0,S.zD)().then(()=>this._projectionEngineLoaded=!0)),!this._projectionEngineLoaded))return null;let p=null;try{p=(0,S.iV)(u,Y.Z.WGS84)}catch{}if(p)try{p=(0,S.iV)(this._geometryEngine.geodesicBuffer(p,r,c),u.spatialReference)}catch{p=null}return p||V.error(`Filter by geodesic buffer (distance) unsupported, failed to project input geometry (${u.spatialReference.wkid}) to WGS84.`),te(this._geometryEngine,p,y)}get updating(){return(0,j.j)(this._layerMaskGeometries)||(0,j.j)(this._viewMaskGeometries)}static checkSupport(t){return!((0,s.Wi)(t)||(t.timeExtent?(V.warn("Filters with a timeExtent are not supported for mesh scene layers"),1):!function Ee(t){return null!=t&&oe.includes(t)}(t.spatialRelationship)&&(V.warn(`Filters with spatialRelationship other than ${oe.join(", ")} are not supported for mesh scene layers`),1)))}};(0,i._)([(0,o.Cb)()],T.prototype,"layerFilter",void 0),(0,i._)([(0,o.Cb)({type:x.Z})],T.prototype,"viewFilter",void 0),(0,i._)([(0,o.Cb)()],T.prototype,"layerFieldsIndex",void 0),(0,i._)([(0,o.Cb)()],T.prototype,"loadAsyncModule",void 0),(0,i._)([(0,o.Cb)()],T.prototype,"addSqlFilter",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],T.prototype,"sortedObjectIds",null),(0,i._)([(0,o.Cb)({readOnly:!0})],T.prototype,"parsedWhereClause",null),(0,i._)([(0,o.Cb)({readOnly:!0})],T.prototype,"parsedGeometry",null),(0,i._)([(0,o.Cb)({readOnly:!0})],T.prototype,"_layerMaskGeometries",null),(0,i._)([(0,o.Cb)({readOnly:!0})],T.prototype,"_viewMaskGeometries",null),(0,i._)([(0,o.Cb)()],T.prototype,"updating",null),(0,i._)([(0,o.Cb)()],T.prototype,"_projectionEngineLoaded",void 0),(0,i._)([(0,o.Cb)()],T.prototype,"_geometryEngine",void 0),T=(0,i._)([(0,l.j)(ee)],T);const oe=["contains","intersects","disjoint"];var v,t;function te(t,r,a){if((0,s.Wi)(r))return null;if("disjoint"===a&&"polygon"===r.type){const y=r.rings.length,u=r.spatialReference,c=new Array(y);for(let E=0;EE.aabr[0]-h.aabr[0]);const d=new Set,p=new C.SO;for(let E=0;E{if(m>=M.aabr[2])return void d.delete(M);if(h.aabr[1]>M.aabr[3]||h.aabr[3]ce(t,d,c,u)!==v.DISCARD)}function _e(t,r,a,y,u,c,d,p){const E=d[0].spatialReference||u.spatialReference;if(!(0,S.st)(a.node.mbs,c,X,E))return void V.warnOnce("SceneLayerView.filter.geometry is using unsupported SpatialReference, skipping geometry filter");const h=le(t,X,E),m=function de(t,r,a,y,u){const c=r.renderSpatialReference,d=new Map,p={type:"polygon",rings:[[[0,0,0],[0,0,0],[0,0,0],[0,0,0]]],spatialReference:a};p.rings[0][3]=p.rings[0][0];let h,m;switch(t){case"intersects":h=(M,L,w)=>M.intersects(L,w)?v.KEEP:v.TEST,m=re;break;case"contains":h=(M,L,w)=>M.contains(L,w)?v.TEST:v.DISCARD,m=re;break;default:h=(M,L,w)=>M.disjoint(L,w)?v.TEST:v.DISCARD,m=ue}return{collection:y,object:u,type:t,maskSR:a,renderSR:c,aabbCache:d,triangle:p,positions:{indices:null,data:null,stride:0,startIndex:0,endIndex:0},triangleTest:h,geometryTest:m}}(p,u,E,y,a.objectHandle);for(const M of d){if(0===r.length)return;switch(ce(t,M,h,p)){case v.DISCARD:return void(r.length=0);case v.KEEP:continue}(0,F.hv)(r,a.featureIds,L=>pe(t,M,L,m))}}(t=v||(v={}))[t.KEEP=0]="KEEP",t[t.DISCARD=1]="DISCARD",t[t.TEST=2]="TEST";const X=[0,0,0,0];function le(t,r,a){const y={type:"point",x:r[0],y:r[1],hasZ:!1,hasM:!1,spatialReference:a},u=!(0,P.oR)(a)&&!(0,P.sS)(a),c=Number.isNaN(r[3])?0:(0,Z.uZ)(r[3],0,2*R.sv.radius),d=u?t.buffer(y,c,1):t.geodesicBuffer(y,c,1);return d.type="polygon",d}function ce(t,r,a,y){switch(y){case"intersects":case"contains":return re(t,r,a);case"disjoint":return ue(t,r,a)}}function re(t,r,a){return t.intersects(r,a)?t.contains(r,a)?v.KEEP:v.TEST:v.DISCARD}function ue(t,r,a){return t.intersects(r,a)?t.contains(r,a)?v.DISCARD:v.TEST:v.KEEP}function pe(t,r,a,y){const{collection:u,object:c,renderSR:d,maskSR:p,geometryTest:E,aabbCache:h}=y;let m=h.get(a);if(!m){const G=u.getObjectTransform(c);u.getComponentAabb(c,a,b);const B=[[b[0],b[1],0],[b[0],b[4],0],[b[3],b[4],0],[b[3],b[1],0]];for(let K=0;K<4;++K)(0,n.t)(B[K],B[K],G.rotationScale),(0,n.a)(B[K],B[K],G.position),(0,S.SH)(B[K],d,B[K],p);m={type:"polygon",rings:[B],spatialReference:p,cache:{}},m.rings[0][4]=m.rings[0][0],h.set(a,m)}switch(E(t,r,m)){case v.DISCARD:return!1;case v.KEEP:return!0}const{triangle:M,triangleTest:L,positions:w}=y,z=M.rings[0][0],H=M.rings[0][1],$=M.rings[0][2],k=u.getObjectTransform(c);u.getComponentPositions(c,a,w);const{indices:se,data:Q,stride:ne,startIndex:ye,endIndex:he}=w;for(let G=ye;G{e.d(U,{u:()=>f});var i=e(15861),I=e(17626),A=e(14517),C=e(26584),N=e(72392),Z=e(62208),s=e(77712),D=(e(85931),e(90912),e(76898)),o=e(2004),_=e(5437),l=e(58175),n=e(17253),J=e(96854);const S=l.q;let f=class extends A.Z{constructor(O){super(O),this._dataQueryEngineInstance=null,this._handles=new N.Z}get spatialReference(){return this.layerView.view.spatialReference}get layer(){return this.layerView.i3slayer}get defaultQueryJSON(){return new J.Z({outSpatialReference:this.spatialReference}).toJSON()}get _dataQueryEngine(){return this._ensureDataQueryEngine()}initialize(){this._handles.add(this.layerView.on("visible-geometry-changed",()=>this.spatialIndex.events.emit("changed")))}destroy(){this._dataQueryEngineInstance&&(this._dataQueryEngineInstance.destroy(),this._dataQueryEngineInstance=null),this._handles&&(this._handles.destroy(),this._handles=null),this._set("layerView",null)}executeQueryForCount(O,R){var P=this;return(0,i.Z)(function*(){return P._dataQueryEngine.executeQueryForCount(P._ensureQueryJSON(O),R)})()}executeQueryForExtent(O,R){var P=this;return(0,i.Z)(function*(){const{count:W,extent:x}=yield P._dataQueryEngine.executeQueryForExtent(P._ensureQueryJSON(O),R);return{count:W,extent:o.Z.fromJSON(x)}})()}executeQueryForIds(O,R){var P=this;return(0,i.Z)(function*(){return P._dataQueryEngine.executeQueryForIds(P._ensureQueryJSON(O),R)})()}executeQuery(O,R){var P=this;return(0,i.Z)(function*(){const W=P._ensureQueryJSON(O);if(W.returnGeometry)throw new C.Z("feature-store:unsupported-query","returnGeometry is not yet supported for mesh scene layer queries");if(W.returnCentroid)throw new C.Z("feature-store:unsupported-query","returnCentroid is not yet supported for mesh scene layer queries");const x=yield P._dataQueryEngine.executeQuery(W,R),F=n.default.fromJSON(x);return F.features.forEach(Y=>{Y.geometry=null}),F})()}_ensureQueryJSON(O){return(0,Z.Wi)(O)?this.defaultQueryJSON:O.toJSON()}_ensureDataQueryEngine(){if(this._dataQueryEngineInstance)return this._dataQueryEngineInstance;const O=this.layer.objectIdField||_.d,P=this.layer.fields.map(ee=>ee.toJSON()),W=this.layerView.view.resourceController.scheduler,x=this.spatialReference.toJSON();return this._dataQueryEngineInstance=new S({hasZ:!0,hasM:!1,geometryType:"esriGeometryPolygon",fields:P,timeInfo:null,spatialReference:x,objectIdField:O,featureStore:this.spatialIndex,scheduler:W,priority:this.priority}),this._dataQueryEngineInstance}};(0,I._)([(0,s.Cb)({constructOnly:!0})],f.prototype,"layerView",void 0),(0,I._)([(0,s.Cb)({constructOnly:!0})],f.prototype,"priority",void 0),(0,I._)([(0,s.Cb)({constructOnly:!0})],f.prototype,"spatialIndex",void 0),(0,I._)([(0,s.Cb)()],f.prototype,"spatialReference",null),(0,I._)([(0,s.Cb)()],f.prototype,"layer",null),(0,I._)([(0,s.Cb)()],f.prototype,"defaultQueryJSON",null),f=(0,I._)([(0,D.j)("esri.views.3d.layers.i3s.I3SQueryEngine")],f)},72537:(q,U,e)=>{e.d(U,{u:()=>Z});var i=e(62208),I=e(5548),A=e(77044),C=e(88071),N=e(42964);class Z{constructor(g){this._objectIdField=g.objectIdField,this._getFeatureExtent=g.getFeatureExtent}getObjectId(g){return g.id}getAttributes(g){const{meta:D,index:o}=g,_={};this._objectIdField&&(_[this._objectIdField]=g.id);const l=(0,i.pC)(D.attributeInfo)&&D.attributeInfo.attributeData;if((0,i.pC)(l))for(const n of Object.keys(l))_[n]=(0,N.Jx)(l[n],o);return _}getAttribute(g,D){if(D===this._objectIdField)return g.id;const{meta:o,index:_}=g,l=(0,i.pC)(o.attributeInfo)&&o.attributeInfo.attributeData;return(0,i.pC)(l)?(0,N.Jx)(l[D],_):null}getGeometry(g){if(g.geometry)return g.geometry;const[D,o,_,l,n]=this._getFeatureExtent(g,s);return new C.Z([5],[D,o,_,l,o,_,l,n,_,D,n,_,D,o,_])}getCentroid(g,D){if(g.geometry)return(0,A.Y)(new C.Z,g.geometry,D.hasZ,D.hasM);const[o,_,l,n,J,S]=this._getFeatureExtent(g,s);return new C.Z([0],[(o+n)/2,(_+J)/2,(l+S)/2])}cloneWithGeometry(g,D){const{id:o,index:_,meta:l}=g;return{id:o,index:_,meta:l,geometry:D}}}const s=(0,I.Ue)()},41941:(q,U,e)=>{e.d(U,{I:()=>l});var i=e(17626),I=e(14517),A=e(61885),C=e(77712),s=(e(85931),e(90912),e(76898)),j=e(4794),g=e(55915),D=e(5548),o=e(65401),_=e(52836);let l=class extends I.Z{constructor(f){super(f),this.events=new A.Z}forEach(f){this.forAllFeatures(O=>(f(O),_.K.CONTINUE))}forEachBounds(f,O,R){const P=this.getFeatureExtent;for(const W of f)O(P(W,R))}forEachInBounds(f,O){this.forAllFeatures(R=>{const P=this.getFeatureExtent(R,J);return(0,o.kK)(f,(0,D.y8)(P,S))&&O(R),_.K.CONTINUE},R=>{if((0,g.st)(R.node.mbs,this.sourceSpatialReference,n,this.viewSpatialReference),n[0]>=f[0]&&n[2]<=f[2]&&n[1]>=f[1]&&n[3]<=f[3])return _.K.CONTINUE;const P=Math.max(f[0],Math.min(n[0],f[2])),W=Math.max(f[1],Math.min(n[1],f[3])),x=n[0]-P,F=n[1]-W;return x*x+F*F<=n[3]*n[3]?_.K.CONTINUE:_.K.SKIP})}};(0,i._)([(0,C.Cb)({constructOnly:!0})],l.prototype,"featureAdapter",void 0),(0,i._)([(0,C.Cb)({constructOnly:!0})],l.prototype,"toArray",void 0),(0,i._)([(0,C.Cb)({constructOnly:!0})],l.prototype,"forAllFeatures",void 0),(0,i._)([(0,C.Cb)({constructOnly:!0})],l.prototype,"getFeatureExtent",void 0),(0,i._)([(0,C.Cb)({constructOnly:!0})],l.prototype,"sourceSpatialReference",void 0),(0,i._)([(0,C.Cb)({constructOnly:!0})],l.prototype,"viewSpatialReference",void 0),l=(0,i._)([(0,s.j)("esri.views.3d.layers.i3s.I3SQueryFeatureStore")],l);const n=(0,j.c)(),J=(0,D.Ue)(),S=(0,o.Ue)()},89476:(q,U,e)=>{e.d(U,{l:()=>g});var i=e(17626),I=e(63290),A=e(77712),Z=(e(85931),e(90912),e(76898)),s=e(10410),j=e(42964);const g=D=>{let o=class extends D{constructor(){super(...arguments),this._definitionExpressionErrors=0,this._maxDefinitionExpressionErrors=20,this.logError=_=>{this._definitionExpressionErrors0?(I.Z.getLogger(this.declaredClass).error(`definitionExpression references unknown fields: ${l.join(", ")}`),null):(this._definitionExpressionErrors=0,_)}catch(_){return I.Z.getLogger(this.declaredClass).error("Failed to parse definitionExpression: "+_),null}}get definitionExpressionFields(){return this.parsedDefinitionExpression?this.parsedDefinitionExpression.fieldNames:null}_evaluateClause(_,l){try{return _.testFeature(l)}catch(n){return this.logError(n),!1}}_addDefinitionExpressionToQuery(_){if(!this.parsedDefinitionExpression)return _;const l=this.i3slayer.definitionExpression,n=_.clone();return n.where=n.where?`(${l}) AND (${n.where})`:l,n}};return(0,i._)([(0,A.Cb)()],o.prototype,"i3slayer",void 0),(0,i._)([(0,A.Cb)({readOnly:!0})],o.prototype,"parsedDefinitionExpression",null),(0,i._)([(0,A.Cb)({readOnly:!0})],o.prototype,"definitionExpressionFields",null),o=(0,i._)([(0,Z.j)("esri.views.3d.layers.support.DefinitionExpressionSceneLayerView")],o),o}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3308.4c6398c97aad946a.js b/apps/n/porrtal-io-app/public/angular/3308.4c6398c97aad946a.js deleted file mode 100644 index 6ea09a08..00000000 --- a/apps/n/porrtal-io-app/public/angular/3308.4c6398c97aad946a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3308,5994],{15994:(ee,Y,h)=>{h.d(Y,{N:()=>V});const V={convertToGEGeometry:function B(x,f){return null==f?null:x.convertJSONToGeometry(f)},exportPoint:function K(x,f,P){const y=new w(x.getPointX(f),x.getPointY(f),P),_=x.hasZ(f),F=x.hasM(f);return _&&(y.z=x.getPointZ(f)),F&&(y.m=x.getPointM(f)),y},exportPolygon:function Z(x,f,P){return new G(x.exportPaths(f),P,x.hasZ(f),x.hasM(f))},exportPolyline:function z(x,f,P){return new N(x.exportPaths(f),P,x.hasZ(f),x.hasM(f))},exportMultipoint:function b(x,f,P){return new j(x.exportPoints(f),P,x.hasZ(f),x.hasM(f))},exportExtent:function C(x,f,P){const y=x.hasZ(f),_=x.hasM(f),F=new W(x.getXMin(f),x.getYMin(f),x.getXMax(f),x.getYMax(f),P);if(y){const p=x.getZExtent(f);F.zmin=p.vmin,F.zmax=p.vmax}if(_){const p=x.getMExtent(f);F.mmin=p.vmin,F.mmax=p.vmax}return F}};class w{constructor(f,P,y){this.x=f,this.y=P,this.spatialReference=y,this.z=void 0,this.m=void 0}}class G{constructor(f,P,y,_){this.rings=f,this.spatialReference=P,this.hasZ=void 0,this.hasM=void 0,y&&(this.hasZ=y),_&&(this.hasM=_)}}class N{constructor(f,P,y,_){this.paths=f,this.spatialReference=P,this.hasZ=void 0,this.hasM=void 0,y&&(this.hasZ=y),_&&(this.hasM=_)}}class j{constructor(f,P,y,_){this.points=f,this.spatialReference=P,this.hasZ=void 0,this.hasM=void 0,y&&(this.hasZ=y),_&&(this.hasM=_)}}class W{constructor(f,P,y,_,F){this.xmin=f,this.ymin=P,this.xmax=y,this.ymax=_,this.spatialReference=F,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},83308:(ee,Y,h)=>{h.d(Y,{y:()=>P,r:()=>F});var V=h(15861),B=h(62208),w=h(27105),K=h(15176),G=h(7848),Z=h(37053),N=h(50736),z=h(26072);class j{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;const a=e.outFields;if(a&&!a.includes("*")){this.outFields=a;let n=0;for(const r of a){const u=(0,N.hr)(r),l=this.fieldsIndex.get(u),m=l?null:(0,N.Jc)(u,i),g=l?l.name:(0,N.nu)(r)||"FIELD_EXP_"+n++;this._fieldDataCache.set(r,{alias:g,clause:m})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(t=>this.getAttributes(t)),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){const a=i?i.name:t;let n=null;return this._fieldDataCache.has(a)?n=this._fieldDataCache.get(a).clause:i||(n=(0,N.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(a,{alias:a,clause:n})),i?this.featureAdapter.getAttribute(e,a):n.calculateValue(e,this.featureAdapter)}getDataValue(e,t){const i=t.normalizationType,a=t.normalizationTotal;let n=this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2&&(n=`${(0,z.wk)(n)}${t.fieldDelimiter}${(0,z.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(n=`${n}${t.fieldDelimiter}${(0,z.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)),i&&Number.isFinite(n)){const r="field"===i&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;n=(0,z.fk)(n,i,r,a)}return n}getExpressionValue(e,t,i,a){const n={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},r=a.createExecContext(n,i);return a.executeFunction(t,r)}getExpressionValues(e,t,i,a){const n={fields:this.fieldsIndex.fields};return e.map(r=>{const u={attributes:this.featureAdapter.getAttributes(r),layer:n},l=a.createExecContext(u,i);return a.executeFunction(t,l)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,N.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testFeature(e,this.featureAdapter)}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,N.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testSet(e,this.featureAdapter)}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const i={};for(const a of t){const{alias:n,clause:r}=this._fieldDataCache.get(a);i[n]=r?r.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,n)}return i}_processAttributesForDistinctValues(e){if((0,B.Wi)(e)||!this.returnDistinctValues)return e;const t=this.outFields,i=[];if(t)for(const r of t){const{alias:u}=this._fieldDataCache.get(r);i.push(e[u])}else for(const r in e)i.push(e[r]);const a=`${(t||["*"]).join(",")}=${i.join(",")}`;let n=this._returnDistinctMap.get(a)||0;return this._returnDistinctMap.set(a,++n),n>1?null:e}}var F,o,b=h(82959),W=h(82141),C=h(6185),x=h(36630),f=h(46679);class P{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasM=i.hasM,this.hasZ=i.hasZ,this.fieldsIndex=i.fieldsIndex,this.objectIdField=i.objectIdField,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new j(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:i,outStatistics:a}=this.query;if(!t?.length)return 1;const r=new Map,u=new Map,l=new Set;for(const m of a){const{statisticType:g}=m,I="exceedslimit"!==g?m.onStatisticField:void 0;if(!u.has(I)){const A=[];for(const s of t){const c=this._getAttributeValues(e,s,r);A.push(c)}u.set(I,this._calculateUniqueValues(A,e.returnDistinctValues))}const T=u.get(I);for(const A in T){const{data:s,items:c}=T[A],v=s.join(",");i&&!e.validateItems(c,i)||l.add(v)}}return l.size}createQueryResponse(){var e=this;return(0,V.Z)(function*(){let t;return t=e.query.outStatistics?e.query.outStatistics.some(i=>"exceedslimit"===i.statisticType)?e._createExceedsLimitQueryResponse(e.query):yield e._createStatisticsQueryResponse(e.query):e._createFeatureQueryResponse(e.query),e.query.returnQueryGeometry&&(t.queryGeometry=(0,Z.JY)(e.query.outSR)&&!(0,Z.fS)(e.query.geometry.spatialReference,e.query.outSR)?(0,C.S2)({spatialReference:e.query.outSR,...(0,b.iV)(e.query.geometry,e.query.geometry.spatialReference,e.query.outSR)}):(0,C.S2)({spatialReference:e.query.outSR,...e.query.geometry})),t})()}createSnappingResponse(e,t){const i=this.featureAdapter,a=_(this.hasZ,this.hasM),{point:n}=e,r="number"==typeof e.distance?e.distance:e.distance.x,u="number"==typeof e.distance?e.distance:e.distance.y,l={candidates:[]},m="esriGeometryPolygon"===this.geometryType,T=this._getPointCreator(n,null!=n.z,null!=n.m,this.spatialReference,t),A=new p(null,0),s=new p(null,0),c={x:0,y:0,z:0};for(const v of this.items){const E=i.getGeometry(v);if((0,B.Wi)(E))continue;const{coords:M,lengths:R}=E;if(A.coords=M,s.coords=M,e.types&F.EDGE){let S=0;for(let d=0;dv.distance-E.distance),l}_getPointCreator(e,t,i,a,n){const r=(0,B.pC)(n)&&!(0,Z.fS)(a,n)?g=>(0,b.iV)(g,a,n):g=>g,{hasZ:u}=this,m=e.m;return t&&i?u?({x:g,y:I,z:T})=>r({x:g,y:I,z:T,m}):({x:g,y:I})=>r({x:g,y:I,z:0,m}):t?u?({x:g,y:I,z:T})=>r({x:g,y:I,z:T}):({x:g,y:I})=>r({x:g,y:I,z:0}):i?({x:g,y:I})=>r({x:g,y:I,m}):({x:g,y:I})=>r({x:g,y:I})}createSummaryStatisticsResponse(e){var t=this;return(0,V.Z)(function*(){const{field:i,valueExpression:a,normalizationField:n,normalizationType:r,normalizationTotal:u,minValue:l,maxValue:m,scale:g}=e,I=t.fieldsIndex.isDateField(i),T=yield t._getDataValues({field:i,valueExpression:a,normalizationField:n,normalizationType:r,normalizationTotal:u,scale:g}),A=(0,z.S5)({normalizationType:r,normalizationField:n,minValue:l,maxValue:m}),s=t.fieldsIndex.get(i),c={value:.5,fieldType:s?.type},v=(0,x.qN)(s)?(0,z.H0)({values:T,supportsNullCount:A,percentileParams:c}):(0,z.i5)({values:T,minValue:l,maxValue:m,useSampleStdDev:!r,supportsNullCount:A,percentileParams:c});return(0,z.F_)(v,I)})()}createUniqueValuesResponse(e){var t=this;return(0,V.Z)(function*(){const{field:i,valueExpression:a,domains:n,returnAllCodedValues:r,scale:u}=e,l=yield t._getDataValues({field:i,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:a,scale:u}),m=(0,z.eT)(l);return(0,z.Qm)(m,n,r,e.fieldDelimiter)})()}createClassBreaksResponse(e){var t=this;return(0,V.Z)(function*(){const{field:i,valueExpression:a,normalizationField:n,normalizationType:r,normalizationTotal:u,classificationMethod:l,standardDeviationInterval:m,minValue:g,maxValue:I,numClasses:T,scale:A}=e,s=yield t._getDataValues({field:i,valueExpression:a,normalizationField:n,normalizationType:r,normalizationTotal:u,scale:A}),c=(0,z.G2)(s,{field:i,normalizationField:n,normalizationType:r,normalizationTotal:u,classificationMethod:l,standardDeviationInterval:m,minValue:g,maxValue:I,numClasses:T});return(0,z.DL)(c,l)})()}createHistogramResponse(e){var t=this;return(0,V.Z)(function*(){const{field:i,valueExpression:a,normalizationField:n,normalizationType:r,normalizationTotal:u,classificationMethod:l,standardDeviationInterval:m,minValue:g,maxValue:I,numBins:T,scale:A}=e,s=yield t._getDataValues({field:i,valueExpression:a,normalizationField:n,normalizationType:r,normalizationTotal:u,scale:A});return(0,z.oF)(s,{field:i,normalizationField:n,normalizationType:r,normalizationTotal:u,classificationMethod:l,standardDeviationInterval:m,minValue:g,maxValue:I,numBins:T})})()}_sortFeatures(e,t,i){if(e.length>1&&t&&t.length)for(const a of t.reverse()){const n=a.split(" "),r=n[0],u=this.fieldsIndex.get(r),l=n[1]&&"desc"===n[1].toLowerCase(),m=(0,z.Lq)(u?.type,l);e.sort((g,I)=>{const T=i(g,r,u),A=i(I,r,u);return m(T,A)})}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:i,hasM:a,hasZ:n,objectIdField:r,spatialReference:u}=this,{outFields:l,outSR:m,quantizationParameters:g,resultRecordCount:I,resultOffset:T,returnZ:A,returnM:s}=e,c=null!=I&&t.length>(T||0)+I,v=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map(E=>this.fieldsIndex.get(E)));return{exceededTransferLimit:c,features:this._createFeatures(e,t),fields:v,geometryType:i,hasM:a&&s,hasZ:n&&A,objectIdFieldName:r,spatialReference:(0,C.S2)(m||u),transform:g&&(0,G.vY)(g)||null}}_createFeatures(e,t){const i=new j(e,this.featureAdapter,this.fieldsIndex),{hasM:a,hasZ:n}=this,{orderByFields:r,quantizationParameters:u,returnGeometry:l,returnCentroid:m,maxAllowableOffset:g,resultOffset:I,resultRecordCount:T,returnZ:A=!1,returnM:s=!1}=e,c=n&&A,v=a&&s;let E=[],M=0;const R=[...t];if(this._sortFeatures(R,r,(d,D,O)=>i.getFieldValue(d,D,O)),l||m){const d=(0,G.vY)(u);if(l&&!m)for(const D of R)E[M++]={attributes:i.getAttributes(D),geometry:(0,C.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(D),g,d,c,v)};else if(!l&&m)for(const D of R)E[M++]={attributes:i.getAttributes(D),centroid:(0,C.EG)(this,this.featureAdapter.getCentroid(D,this),d)};else for(const D of R)E[M++]={attributes:i.getAttributes(D),centroid:(0,C.EG)(this,this.featureAdapter.getCentroid(D,this),d),geometry:(0,C.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(D),g,d,c,v)}}else for(const d of R){const D=i.getAttributes(d);D&&(E[M++]={attributes:D})}const S=I||0;return null!=T&&(E=E.slice(S,Math.min(E.length,S+T))),E}_createExceedsLimitQueryResponse(e){let t=!1,i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const r of e.outStatistics)if("exceedslimit"===r.statisticType){i=null!=r.maxPointCount?r.maxPointCount:Number.POSITIVE_INFINITY,a=null!=r.maxRecordCount?r.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=r.maxVertexCount?r.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>i;else if(this.items.length>a)t=!0;else{const r=_(this.hasZ,this.hasM),u=this.featureAdapter;t=this.items.reduce((l,m)=>{const g=u.getGeometry(m);return l+((0,B.pC)(g)&&g.coords.length||0)},0)/r>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}_createStatisticsQueryResponse(e){var t=this;return(0,V.Z)(function*(){const i={attributes:{}},a=[],n=new Map,r=new Map,u=new Map,l=new Map,m=new j(e,t.featureAdapter,t.fieldsIndex),g=e.outStatistics,{groupByFieldsForStatistics:I,having:T,orderByFields:A}=e,s=I&&I.length,c=!!s,v=c&&I[0],E=c&&!t.fieldsIndex.get(v);for(const R of g){const{outStatisticFieldName:S,statisticType:d}=R,D=R,O="exceedslimit"!==d?R.onStatisticField:void 0,L="percentile_disc"===d||"percentile_cont"===d,U="EnvelopeAggregate"===d||"CentroidAggregate"===d||"ConvexHullAggregate"===d,q=c&&1===s&&(O===v||E)&&"count"===d;if(c){if(!u.has(O)){const J=[];for(const $ of I){const te=t._getAttributeValues(m,$,n);J.push(te)}u.set(O,t._calculateUniqueValues(J,!U&&m.returnDistinctValues))}const Q=u.get(O);for(const J in Q){const{count:$,data:te,items:ie,itemPositions:ae}=Q[J],se=te.join(",");if(!T||m.validateItems(ie,T)){const H=l.get(se)||{attributes:{}};if(U){H.aggregateGeometries||(H.aggregateGeometries={});const{aggregateGeometries:X,outStatisticFieldName:k}=yield t._getAggregateGeometry(D,ie);H.aggregateGeometries[k]=X}else{let X=null;if(q)X=$;else{const k=t._getAttributeValues(m,O,n),ne=ae.map(oe=>k[oe]);X=L&&"statisticParameters"in D?t._getPercentileValue(D,ne):t._getStatisticValue(D,ne,null,m.returnDistinctValues)}H.attributes[S]=X}let re=0;I.forEach((X,k)=>H.attributes[t.fieldsIndex.get(X)?X:"EXPR_"+ ++re]=te[k]),l.set(se,H)}}}else if(U){i.aggregateGeometries||(i.aggregateGeometries={});const{aggregateGeometries:Q,outStatisticFieldName:J}=yield t._getAggregateGeometry(D,t.items);i.aggregateGeometries[J]=Q}else{const Q=t._getAttributeValues(m,O,n);i.attributes[S]=L&&"statisticParameters"in D?t._getPercentileValue(D,Q):t._getStatisticValue(D,Q,r,m.returnDistinctValues)}a.push({name:S,alias:S,type:"esriFieldTypeDouble"})}const M=c?Array.from(l.values()):[i];return t._sortFeatures(M,A,(R,S)=>R.attributes[S]),{fields:a,features:M}})()}_getAggregateGeometry(e,t){var i=this;return(0,V.Z)(function*(){const a=yield Promise.all([h.e(4918),h.e(8592)]).then(h.bind(h,32825)),{statisticType:n,outStatisticFieldName:r}=e,{featureAdapter:u,spatialReference:l,geometryType:m,hasZ:g,hasM:I}=i,T=t.map(c=>(0,C.Op)(m,g,I,u.getGeometry(c))),A=a.convexHull(l,T,!0)[0],s={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===n){const c=A?(0,K._w)(A):(0,K.aO)(a.union(l,T));s.aggregateGeometries={...c,spatialReference:l},s.outStatisticFieldName=r||"extent"}else if("CentroidAggregate"===n){const c=A?(0,w.tO)(A):(0,w.$G)((0,K.aO)(a.union(l,T)));s.aggregateGeometries={x:c[0],y:c[1],spatialReference:l},s.outStatisticFieldName=r||"centroid"}else"ConvexHullAggregate"===n&&(s.aggregateGeometries=A,s.outStatisticFieldName=r||"convexHull");return s})()}_getStatisticValue(e,t,i,a){const{onStatisticField:n,statisticType:r}=e;let u=null;return u=i?.has(n)?i.get(n):(0,x.qN)(this.fieldsIndex.get(n))?(0,z.H0)({values:t,returnDistinct:a}):(0,z.i5)({values:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(n,u),u["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:i,statisticParameters:a,statisticType:n}=e,{value:r,orderBy:u}=a,l=this.fieldsIndex.get(i);return(0,z.XL)(t,{value:r,orderBy:u,fieldType:l?.type,isDiscrete:"percentile_disc"===n})}_getAttributeValues(e,t,i){if(i.has(t))return i.get(t);const a=this.fieldsIndex.get(t),n=this.items.map(r=>e.getFieldValue(r,t,a));return i.set(t,n),n}_getAttributeDataValues(e,t){return this.items.map(i=>e.getDataValue(i,{field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,normalizationField:t.normalizationField,normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal}))}_getAttributeExpressionValues(e,t,i){var a=this;return(0,V.Z)(function*(){const{arcadeUtils:n}=yield(0,f.LC)(),r=n.createFunction(t),u=i&&n.getViewInfo(i);return e.getExpressionValues(a.items,r,u,n)})()}_calculateUniqueValues(e,t){const i={},a=this.items,n=a.length;for(let r=0;r{h.d(Y,{nu:()=>f,hr:()=>x,Jc:()=>W,G3:()=>P,Of:()=>C,z4:()=>b,hO:()=>j});var V=h(26584),B=h(78498),w=h(10410);const G=new class K{constructor(_,F){this._cache=new B.Z(_),this._invalidCache=new B.Z(F)}get(_,F){const p=`${F.uid}:${_}`,o=this._cache.get(p);if(o)return o;if(void 0!==this._invalidCache.get(p))return null;try{const e=w.WhereClause.create(_,F);return this._cache.put(p,e),e}catch{return this._invalidCache.put(p,null),null}}}(50,500),Z="feature-store:unsupported-query",N=" as ",z=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function j(y,_){if(!_)return!0;const F=G.get(_,y);if(!F)throw new V.Z(Z,"invalid SQL expression",{where:_});if(!F.isStandardized)throw new V.Z(Z,"where clause is not standard",{where:_});return C(y,F.fieldNames,"where clause contains missing fields"),!0}function b(y,_,F){if(!_)return!0;const p=G.get(_,y);if(!p)throw new V.Z(Z,"invalid SQL expression",{having:_});if(!p.isAggregate)throw new V.Z(Z,"having does not contain a valid aggregate function",{having:_});if(C(y,p.fieldNames,"having contains missing fields"),!p.getExpressions().every(e=>{const{aggregateType:t,field:i}=e,a=y.has(i)&&y.get(i).name;return F.some(n=>{const{onStatisticField:r,statisticType:u}=n;return(y.has(r)&&y.get(r).name)===a&&u.toLowerCase().trim()===t})}))throw new V.Z(Z,"expressions in having should also exist in outStatistics",{having:_});return!0}function W(y,_){return y?G.get(y,_):null}function C(y,_,F,p=!0){const o=[];for(const e of _)if("*"!==e&&!y.has(e))if(p){const t=x(e);try{const i=W(t,y);if(!i)throw new V.Z(Z,"invalid SQL expression",{where:t});if(!i.isStandardized)throw new V.Z(Z,"expression is not standard",{clause:i});C(y,i.fieldNames,"expression contains missing fields")}catch(i){const a=i&&i.details;if(a&&(a.clause||a.where))throw i;a&&a.missingFields?o.push(...a.missingFields):o.push(e)}}else o.push(e);if(o.length)throw new V.Z(Z,F,{missingFields:o})}function x(y){return y.split(N)[0]}function f(y){return y.split(N)[1]}function P(y,_){const F=_.get(y);return!!F&&!z.has(F.type)}},82959:(ee,Y,h)=>{h.d(Y,{_W:()=>W,iV:()=>P,oj:()=>F});var V=h(15861),B=h(62208),w=h(55915),K=h(15994),G=h(37053),Z=h(46367);const N=[0,0];function z(p,o){if(!o)return null;if("x"in o){const e={x:0,y:0};return[e.x,e.y]=p(o.x,o.y,N),null!=o.z&&(e.z=o.z),null!=o.m&&(e.m=o.m),e}if("xmin"in o){const e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=p(o.xmin,o.ymin,N),[e.xmax,e.ymax]=p(o.xmax,o.ymax,N),o.hasZ&&(e.zmin=o.zmin,e.zmax=o.zmax,e.hasZ=!0),o.hasM&&(e.mmin=o.mmin,e.mmax=o.mmax,e.hasM=!0),e}return"rings"in o?{rings:j(o.rings,p),hasM:o.hasM,hasZ:o.hasZ}:"paths"in o?{paths:j(o.paths,p),hasM:o.hasM,hasZ:o.hasZ}:"points"in o?{points:b(o.points,p),hasM:o.hasM,hasZ:o.hasZ}:null}function j(p,o){const e=[];for(const t of p)e.push(b(t,o));return e}function b(p,o){const e=[];for(const t of p){const i=o(t[0],t[1],[0,0]);e.push(i),t.length>2&&i.push(t[2]),t.length>3&&i.push(t[3])}return e}function W(p,o){return C.apply(this,arguments)}function C(){return(C=(0,V.Z)(function*(p,o){if(!p||!o)return;const e=Array.isArray(p)?p.map(t=>(0,B.pC)(t.geometry)?t.geometry.spatialReference:null).filter(B.pC):[p];yield(0,w.iQ)(e.map(t=>({source:t,dest:o})))})).apply(this,arguments)}const x=z.bind(null,Z.hG),f=z.bind(null,Z.R6);function P(p,o,e,t){if(!p||(e||(e=o,o=p.spatialReference),!(0,G.JY)(o)||!(0,G.JY)(e)||(0,G.fS)(o,e)))return p;if((0,Z.Q8)(o,e)){const i=(0,G.sS)(e)?x(p):f(p);return i.spatialReference=e,i}return(0,w.oj)(K.N,[p],o,e,null,t)[0]}const _=new class y{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}push(o,e,t){var i=this;return(0,V.Z)(function*(){if(!o||!o.length||!e||!t||(0,G.fS)(e,t))return o;const a={geometries:o,inSpatialReference:e,outSpatialReference:t,resolve:null};return i._jobs.push(a),new Promise(n=>{a.resolve=n,null===i._timer&&(i._timer=setTimeout(i._process,10))})})()}_process(){this._timer=null;const o=this._jobs.shift();if(!o)return;const{geometries:e,inSpatialReference:t,outSpatialReference:i,resolve:a}=o;(0,Z.Q8)(t,i)?(0,G.sS)(i)?a(e.map(x)):a(e.map(f)):a((0,w.oj)(K.N,e,t,i,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function F(p,o,e){return _.push(p,o,e)}},6185:(ee,Y,h)=>{h.d(Y,{EG:()=>p,Op:()=>o,S2:()=>I,Up:()=>e,j6:()=>i,vF:()=>f});var V=h(15861),B=h(2076),w=h(62208),K=h(16730),G=h(55915),Z=h(15176),N=h(91179),z=h(93555),j=h(37053),b=h(82054),W=h(88071),C=h(82959);const x=new B.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({}),P=new W.Z,y=new W.Z,_=new W.Z,F={esriGeometryPoint:b.fQ,esriGeometryPolyline:b.J6,esriGeometryPolygon:b.eG,esriGeometryMultipoint:b.Iv};function p(s,c,v,E=s.hasZ,M=s.hasM){if((0,w.Wi)(c))return null;const R=s.hasZ&&E,S=s.hasM&&M;if(v){const d=(0,b.Nh)(_,c,s.hasZ,s.hasM,"esriGeometryPoint",v,E,M);return(0,b.fQ)(d,R,S)}return(0,b.fQ)(c,R,S)}function o(s,c,v,E,M,R,S=c,d=v){const D=c&&S,O=v&&d,L=(0,w.pC)(E)?"coords"in E?E:E.geometry:null;if((0,w.Wi)(L))return null;if(M){let U=(0,b.zj)(y,L,c,v,s,M,S,d);return R&&(U=(0,b.Nh)(_,U,D,O,s,R)),F[s]?.(U,D,O)??null}if(R){const U=(0,b.Nh)(_,L,c,v,s,R,S,d);return F[s]?.(U,D,O)??null}return(0,b.hY)(P,L,c,v,S,d),F[s]?.(P,D,O)??null}function e(s,c,v){return t.apply(this,arguments)}function t(){return(t=(0,V.Z)(function*(s,c,v){const{outFields:E,orderByFields:M,groupByFieldsForStatistics:R,outStatistics:S}=s;if(E)for(let d=0;d(0,C.iV)(E,j.Zn));return(yield m())(S.spatialReference,S,c,R)})).apply(this,arguments)}function m(){return g.apply(this,arguments)}function g(){return(g=(0,V.Z)(function*(){return(yield Promise.all([h.e(4918),h.e(8592)]).then(h.bind(h,32825))).geodesicBuffer})).apply(this,arguments)}function I(s){return s&&T in s?JSON.parse(JSON.stringify(s,A)):s}const T="_geVersion",A=(s,c)=>s!==T?c:void 0}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3309.d4a613bcc4da8bdc.js b/apps/n/porrtal-io-app/public/angular/3309.d4a613bcc4da8bdc.js deleted file mode 100644 index 9e078679..00000000 --- a/apps/n/porrtal-io-app/public/angular/3309.d4a613bcc4da8bdc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3309],{93309:(y,s,n)=>{n.r(s),n.d(s,{a:()=>f});var u,h,_,d=n(1719),t={exports:{}};u=t,void 0!==(_=t.exports,Object.defineProperty(_,"__esModule",{value:!0}),h=void(_.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u0645",_era_bc:"\u0642.\u0645",A:"\u0635",P:"\u0645",AM:"\u0635",PM:"\u0645","A.M.":"\u0635","P.M.":"\u0645",January:"\u064a\u0646\u0627\u064a\u0631",February:"\u0641\u0628\u0631\u0627\u064a\u0631",March:"\u0645\u0627\u0631\u0633",April:"\u0623\u0628\u0631\u064a\u0644",May:"\u0645\u0627\u064a\u0648",June:"\u064a\u0648\u0646\u064a\u0648",July:"\u064a\u0648\u0644\u064a\u0648",August:"\u0623\u063a\u0633\u0637\u0633",September:"\u0633\u0628\u062a\u0645\u0628\u0631",October:"\u0623\u0643\u062a\u0648\u0628\u0631",November:"\u0646\u0648\u0641\u0645\u0628\u0631",December:"\u062f\u064a\u0633\u0645\u0628\u0631",Jan:"\u064a\u0646\u0627\u064a\u0631",Feb:"\u0641\u0628\u0631\u0627\u064a\u0631",Mar:"\u0645\u0627\u0631\u0633",Apr:"\u0623\u0628\u0631\u064a\u0644","May(short)":"\u0645\u0627\u064a\u0648",Jun:"\u064a\u0648\u0646\u064a\u0648",Jul:"\u064a\u0648\u0644\u064a\u0648",Aug:"\u0623\u063a\u0633\u0637\u0633",Sep:"\u0633\u0628\u062a\u0645\u0628\u0631",Oct:"\u0623\u0643\u062a\u0648\u0628\u0631",Nov:"\u0646\u0648\u0641\u0645\u0628\u0631",Dec:"\u062f\u064a\u0633\u0645\u0628\u0631",Sunday:"\u0627\u0644\u0623\u062d\u062f",Monday:"\u0627\u0644\u0627\u062b\u0646\u064a\u0646",Tuesday:"\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621",Wednesday:"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621",Thursday:"\u0627\u0644\u062e\u0645\u064a\u0633",Friday:"\u0627\u0644\u062c\u0645\u0639\u0629",Saturday:"\u0627\u0644\u0633\u0628\u062a",Sun:"\u0627\u0644\u0623\u062d\u062f",Mon:"\u0627\u0644\u0627\u062b\u0646\u064a\u0646",Tue:"\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621",Wed:"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621",Thu:"\u0627\u0644\u062e\u0645\u064a\u0633",Fri:"\u0627\u0644\u062c\u0645\u0639\u0629",Sat:"\u0627\u0644\u0633\u0628\u062a",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"\u062a\u063a\u064a\u064a\u0631 \u0645\u0642\u064a\u0627\u0633 \u0627\u0644\u0631\u0633\u0645",Play:"\u062a\u0634\u063a\u064a\u0644",Stop:"\u0625\u064a\u0642\u0627\u0641 \u062a\u0634\u063a\u064a\u0644",Legend:"\u0648\u0633\u064a\u0644\u0629 \u0627\u0644\u0625\u064a\u0636\u0627\u062d","Click, tap or press ENTER to toggle":"",Loading:"\u062a\u062d\u0645\u064a\u0644",Home:"\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u0637\u0628\u0627\u0639\u0629",Image:"\u0635\u0648\u0631\u0629",Data:"\u0628\u064a\u0627\u0646\u0627\u062a",Print:"\u0637\u0628\u0627\u0639\u0629","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u0645\u0646 %1 \u0625\u0644\u0649 %2","From %1":"\u0645\u0646 %1","To %1":"\u0625\u0644\u0649 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(a,_){for(var r=0;r<_.length;r++){const e=_[r];if("string"!=typeof e&&!Array.isArray(e))for(const o in e)if("default"!==o&&!(o in a)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3358.378be12f4c5c5fbb.js b/apps/n/porrtal-io-app/public/angular/3358.378be12f4c5c5fbb.js deleted file mode 100644 index 69913adb..00000000 --- a/apps/n/porrtal-io-app/public/angular/3358.378be12f4c5c5fbb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3358],{23358:(E,c,a)=>{a.r(c),a.d(c,{execute:()=>g});var b=a(15861),f=a(26584),h=a(62208);let u;function g(o,t){let e=t.responseType;e?"array-buffer"!==e&&"blob"!==e&&"json"!==e&&"native"!==e&&"native-request-init"!==e&&"text"!==e&&(e="text"):e="json",t.responseType=e;const d=(0,h.Wg)(t.signal);return delete t.signal,globalThis.invokeStaticMessage("request",{url:o,options:t},{signal:d}).then(function(){var v=(0,b.Z)(function*(r){let i,n,p,_,s;if(r.data)if(r.data instanceof ArrayBuffer){if(!("json"!==e&&"text"!==e&&"blob"!==e||(i=new Blob([r.data]),"json"!==e&&"text"!==e||(u||(u=new FileReaderSync),_=u.readAsText(i),"json"!==e)))){try{n=JSON.parse(_||null)}catch(l){const y={...l,url:o,requestOptions:t};throw new f.Z("request:server",l.message,y)}if(n.error){const l={...n.error,url:o,requestOptions:t};throw new f.Z("request:server",n.error.message,l)}}}else"native"===e&&(r.data.signal=d,p=yield fetch(r.data.url,r.data));switch(e){case"blob":s=i;break;case"json":s=n;break;case"native":s=p;break;case"text":s=_;break;default:s=r.data}return{data:s,requestOptions:t,ssl:r.ssl,url:o}});return function(r){return v.apply(this,arguments)}}())}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3368.dde3c648e976b312.js b/apps/n/porrtal-io-app/public/angular/3368.dde3c648e976b312.js deleted file mode 100644 index 213c6c67..00000000 --- a/apps/n/porrtal-io-app/public/angular/3368.dde3c648e976b312.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3368],{3368:(E,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(2166),_(69960),_(65787),_(17625),_(22355),_(16396);var a=_(50978)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/342.4bb1e703ad3f858f.js b/apps/n/porrtal-io-app/public/angular/342.4bb1e703ad3f858f.js deleted file mode 100644 index 7115eacb..00000000 --- a/apps/n/porrtal-io-app/public/angular/342.4bb1e703ad3f858f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[342],{10342:(S,P,e)=>{e.r(P),e.d(P,{default:()=>H});var l=e(15861),a=e(17626),v=e(26584),c=e(62208),E=e(32917),h=e(77712),u=(e(85931),e(90912),e(76898)),T=e(19702),m=e(50916),I=e(80382),t=e(88879),n=e(13812),r=e(28594),o=e(10023);const D=i=>{let s=class extends i{constructor(){super(...arguments),this._rasterFieldPrefix="Raster.",this.layer=null,this.view=null,this.tileInfo=null}get fullExtent(){return this._getfullExtent()}_getfullExtent(){return this.projectFullExtent(this.view.spatialReference)}get hasTilingEffects(){return this.layer.renderer&&"dynamicRangeAdjustment"in this.layer.renderer&&this.layer.renderer.dynamicRangeAdjustment}get datumTransformation(){return(0,r._D)((0,c.Wg)(this.layer.fullExtent),this.view.spatialReference,!0)}supportsSpatialReference(_){return!!this.projectFullExtent(_)}projectFullExtent(_){const y=(0,c.Wg)(this.layer.fullExtent),d=(0,r._D)(y,_,!1);return(0,r.tB)(y,_,d)}fetchPopupFeatures(_,y){var d=this;return(0,l.Z)(function*(){const{layer:g}=d;if(!_)throw new v.Z("imageryTileLayerView:fetchPopupFeatures","Nothing to fetch without area",{layer:g});const{popupEnabled:U}=g,W=(0,o.V)(g,y);if(!U||(0,c.Wi)(W))throw new v.Z("imageryTileLayerView:fetchPopupFeatures","Missing required popupTemplate or popupEnabled",{popupEnabled:U,popupTemplate:W});const M=[],{value:O,magdirValue:R}=yield g.identify(_,{timeExtent:d.timeExtent});let B="";if(O&&O.length){B="imagery-tile"===g.type&&g.hasStandardTime()&&null!=O[0]?O.map(K=>g.getStandardTimeValue(K)).join(", "):O.join(", ");const j={ObjectId:0};j["Raster.ServicePixelValue"]=B;const F=g.rasterInfo.attributeTable;if((0,c.pC)(F)){const{fields:K,features:N}=F,G=K.find(({name:C})=>"value"===C.toLowerCase()),A=G?N.find(C=>String(C.attributes[G.name])===B):null;if(A)for(const C in A.attributes)A.attributes.hasOwnProperty(C)&&(j[d._rasterFieldPrefix+C]=A.attributes[C])}const z=g.rasterInfo.dataType;"vector-magdir"!==z&&"vector-uv"!==z||(j["Raster.Magnitude"]=R?.[0],j["Raster.Direction"]=R?.[1]);const x=new t.Z(d.fullExtent.clone(),null,j);x.layer=g,x.sourceLayer=x.layer,M.push(x)}return M})()}};return(0,a._)([(0,h.Cb)()],s.prototype,"layer",void 0),(0,a._)([(0,h.Cb)(n.qG)],s.prototype,"timeExtent",void 0),(0,a._)([(0,h.Cb)()],s.prototype,"view",void 0),(0,a._)([(0,h.Cb)()],s.prototype,"fullExtent",null),(0,a._)([(0,h.Cb)()],s.prototype,"tileInfo",void 0),(0,a._)([(0,h.Cb)({readOnly:!0})],s.prototype,"hasTilingEffects",null),s=(0,a._)([(0,u.j)("esri.views.layers.ImageryTileLayerView")],s),s};var L=e(45611),w=e(94421),V=e(94672),Z=e(31637);let b=class extends(D((0,w.Z)((0,m.r)((0,T.A)(L.Z))))){constructor(){super(...arguments),this.type="imagery-tile-3d",this.isAlignedMapTile=!0}initialize(){this.layer.increaseRasterJobHandlerUsage(),null==this.fullExtent&&this.addResolvingPromise(Promise.reject(new v.Z("layerview:spatial-reference-incompatible","The layer extent cannot be projected to the view's spatial reference",{layer:this.layer})));const i=(0,E.N1)(()=>this.view?.basemapTerrain?.tilingSchemeLocked).then(()=>{const s=this.view.basemapTerrain.tilingScheme,{tileInfo:_}=this.layer,y=["png","png24","png32","jpg","mixed"].includes(_.format)&&s.compatibleWith(_);this.isAlignedMapTile=y;const d=y?_:s.toTileInfo();this.tileInfo=d,this.updatingHandles.add(()=>[this.layer.renderer,this.layer.interpolation,this.layer.bandIds,this.layer.multidimensionalDefinition,this.layer.multidimensionalSubset,this.layer.rasterFunction],()=>this.refresh())});this.addResolvingPromise(i)}destroy(){this.layer.decreaseRasterJobHandlerUsage(),this.view=null}get _blankTile(){const i=document.createElement("canvas"),s=i.getContext("2d"),[_,y]=this.tileInfo.size;return i.width=_,i.height=y,s.clearRect(0,0,_,y),s.getImageData(0,0,_,y)}get imageFormatIsOpaque(){return"jpg"===this.layer.tileInfo.format}get hasMixedImageFormats(){return"mixed"===this.layer.tileInfo.format}get dataLevelRange(){const s=this.layer.tileInfo.lods;return this.levelRangeFromScaleRange(this.tileInfo.lods[0].scale,s[s.length-1].scale)}_getfullExtent(){return this.projectFullExtent(this.view.basemapTerrain&&(0,c.pC)(this.view.basemapTerrain.spatialReference)?this.view.basemapTerrain.spatialReference:this.view.spatialReference)}fetchTile(i,s,_,y){var d=this;return(0,l.Z)(function*(){const g=d.tileInfo,U=d._canSymbolizeInWebGL(),W={tileInfo:g,requestRawData:U,signal:(0,c.Wg)(y.signal),requestAsImageElement:d.isAlignedMapTile},M=yield d.layer.fetchTile(i,s,_,W);if(M instanceof HTMLImageElement)return M;let O=M&&M.pixelBlock;if((0,c.Wi)(O)||!U&&(O=yield d.layer.applyRenderer(M),(0,c.Wi)(O)))return d._blankTile;const R=new I.H([i,s,_],O,g.size[0],g.size[1]);return U?(R.symbolizerRenderer=d.layer.symbolizer.rendererJSON,R.symbolizerParameters=d.layer.symbolizer.generateWebGLParameters(d._getSymbolizerOptions(i)),R.transformGrid=M.transformGrid):R.isRendereredSource=!0,R.interpolation=d.layer.interpolation,R.bandIds=d.layer.bandIds,R})()}_getSymbolizerOptions(i){const s=this.tileInfo.lodAt(i).resolution;return{pixelBlock:null,isGCS:this.view.basemapTerrain&&(0,c.pC)(this.view.basemapTerrain.spatialReference)?this.view.basemapTerrain.spatialReference.isGeographic:this.view.spatialReference.isGeographic,resolution:{x:s,y:s},bandIds:this.layer.bandIds}}ensureSymbolizerParameters(i){this._canSymbolizeInWebGL()&&JSON.stringify(i.symbolizerRenderer)!==JSON.stringify(this.layer.symbolizer.rendererJSON)&&(i.symbolizerParameters=this.layer.symbolizer.generateWebGLParameters(this._getSymbolizerOptions(i.lij[0])))}createFetchPopupFeaturesQueryGeometry(i,s){return(0,V.K)(i,s,this.view)}refresh(){this.emit("data-changed")}doRefresh(){var i=this;return(0,l.Z)(function*(){i.suspended||i.emit("data-changed")})()}_canSymbolizeInWebGL(){return(0,Z.hc)("3d").supportsTextureFloat&&this.layer.symbolizer.canRenderInWebGL}};(0,a._)([(0,h.Cb)({readOnly:!0})],b.prototype,"_blankTile",null),(0,a._)([(0,h.Cb)({readOnly:!0})],b.prototype,"imageFormatIsOpaque",null),(0,a._)([(0,h.Cb)({readOnly:!0})],b.prototype,"hasMixedImageFormats",null),(0,a._)([(0,h.Cb)({readOnly:!0})],b.prototype,"dataLevelRange",null),b=(0,a._)([(0,u.j)("esri.views.3d.layers.ImageryTileLayerView3D")],b);const H=b},19702:(S,P,e)=>{e.d(P,{A:()=>m});var l=e(15861),a=e(17626),v=e(54024),c=e(10699),E=e(32917),h=e(77712),u=(e(85931),e(90912),e(76898)),T=e(36947);const m=I=>{let t=class extends I{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(n){super.postscript(n),(0,T.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var n=this;return(0,l.Z)(function*(){const r=new AbortController,o=r.signal;n.handles.add((0,v.kB)(()=>r.abort())),yield(0,E.N1)(()=>n.view.defaultsFromMap?.heightModelInfoReady,o),(0,c.k_)(o);const D=(0,T.Wt)(n.layer,n.view.heightModelInfo,n.supportsHeightUnitConversion);if(D)throw D})()}canResume(){const n=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!n||!n.minScale||!n.maxScale||n.minScale>=n.maxScale)}getSuspendInfo(){const n=super.getSuspendInfo(),r=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return r&&r.minScale&&r.maxScale&&r.minScale{e.d(P,{Z:()=>n});var l=e(17626),a=e(14517),v=e(61885),c=e(80542),E=e(61996),h=e(63290),p=e(62208),f=e(60330),u=e(77712),I=(e(85931),e(90912),e(76898));let t=class extends((0,c.p)((0,E.IG)((0,f.v)(v.Z.EventedMixin(a.Z))))){constructor(r){super(r),this.layer=null,this.parent=null}initialize(){this.when().catch(r=>{if("layerview:create-error"!==r.name){const o=this.layer&&this.layer.id||"no id",D=this.layer&&this.layer.title||"no title";h.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${D}', id: '${o}')`,r)}})}get fullOpacity(){return(0,p.Pt)(this.get("layer.opacity"),1)*(0,p.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(r){this._overrideIfSome("visible",r)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const r=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(r.viewNotReady=!0),this.layer&&this.layer.loaded||(r.layerNotLoaded=!0),this.visible||(r.layerInvisible=!0),r}isUpdating(){return!1}};(0,l._)([(0,u.Cb)()],t.prototype,"fullOpacity",null),(0,l._)([(0,u.Cb)()],t.prototype,"layer",void 0),(0,l._)([(0,u.Cb)()],t.prototype,"parent",void 0),(0,l._)([(0,u.Cb)({readOnly:!0})],t.prototype,"suspended",null),(0,l._)([(0,u.Cb)({readOnly:!0})],t.prototype,"suspendInfo",null),(0,l._)([(0,u.Cb)({readOnly:!0})],t.prototype,"legendEnabled",null),(0,l._)([(0,u.Cb)({type:Boolean,readOnly:!0})],t.prototype,"updating",null),(0,l._)([(0,u.Cb)({readOnly:!0})],t.prototype,"updatingProgress",null),(0,l._)([(0,u.Cb)()],t.prototype,"visible",null),(0,l._)([(0,u.Cb)()],t.prototype,"view",void 0),t=(0,l._)([(0,I.j)("esri.views.layers.LayerView")],t);const n=t},94421:(S,P,e)=>{e.d(P,{Z:()=>u});var l=e(17626),a=e(63290),v=e(10699),c=e(32917),E=e(77712),f=(e(85931),e(90912),e(76898));const u=T=>{let m=class extends T{initialize(){this.handles.add((0,c.on)(()=>this.layer,"refresh",I=>{this.doRefresh(I.dataChanged).catch(t=>{(0,v.D_)(t)||a.Z.getLogger(this.declaredClass).error(t)})}),"RefreshableLayerView")}};return(0,l._)([(0,E.Cb)()],m.prototype,"layer",void 0),m=(0,l._)([(0,f.j)("esri.layers.mixins.RefreshableLayerView")],m),m}},10023:(S,P,e)=>{e.d(P,{V:()=>h,e:()=>c});var l=e(15861),a=e(62208),v=e(36630);function c(p){return E.apply(this,arguments)}function E(){return(E=(0,l.Z)(function*(p,f=p.popupTemplate){if((0,a.Wi)(f))return[];const u=yield f.getRequiredFields(p.fieldsIndex),{lastEditInfoEnabled:T}=f,{objectIdField:m,typeIdField:I,globalIdField:t,relationships:n}=p;if(u.includes("*"))return["*"];const r=T?yield(0,v.CH)(p):[],o=(0,v.Q0)(p.fieldsIndex,[...u,...r]);return I&&o.push(I),o&&m&&p.fieldsIndex.has(m)&&!o.includes(m)&&o.push(m),o&&t&&p.fieldsIndex.has(t)&&!o.includes(t)&&o.push(t),n&&n.forEach(D=>{const{keyField:L}=D;o&&L&&p.fieldsIndex.has(L)&&!o.includes(L)&&o.push(L)}),o})).apply(this,arguments)}function h(p,f){return p.popupTemplate?p.popupTemplate:(0,a.pC)(f)&&f.defaultPopupTemplateEnabled&&(0,a.pC)(p.defaultPopupTemplate)?p.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3464.04c5090d1fbf08eb.js b/apps/n/porrtal-io-app/public/angular/3464.04c5090d1fbf08eb.js deleted file mode 100644 index 45e913bb..00000000 --- a/apps/n/porrtal-io-app/public/angular/3464.04c5090d1fbf08eb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3464],{14259:(re,H,p)=>{p.d(H,{q:()=>E});var S,Z,V={exports:{}};S=V,void 0!==(Z=function(){function D(s,n,o,f,x){for(;f>o;){if(f-o>600){var y=f-o+1,_=n-o+1,O=Math.log(y),h=.5*Math.exp(2*O/3),C=.5*Math.sqrt(O*h*(y-h)/y)*(_-y/2<0?-1:1);D(s,n,Math.max(o,Math.floor(n-_*h/y+C)),Math.min(f,Math.floor(n+(y-_)*h/y+C)),x)}var G=s[n],A=o,j=f;for(I(s,o,n),x(s[f],G)>0&&I(s,o,f);A0;)j--}0===x(s[o],G)?I(s,o,j):I(s,++j,f),j<=n&&(o=j+1),n<=j&&(f=j-1)}}function I(s,n,o){var f=s[n];s[n]=s[o],s[o]=f}function P(s,n){return sn?1:0}return function F(s,n,o,f,x){D(s,n,o||0,f||s.length-1,x||P)}}())&&(S.exports=Z);const E=V.exports},77044:(re,H,p)=>{p.d(H,{Y:()=>Z});var S=p(62208);function z(s,n){return s?n?4:3:n?3:2}function Z(s,n,o,f,x){if((0,S.Wi)(n)||!n.lengths.length)return null;const y="upperLeft"===x?.originPosition?-1:1;s.lengths.length&&(s.lengths.length=0),s.coords.length&&(s.coords.length=0);const _=s.coords,O=[],h=o?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:C,coords:G}=n,A=z(o,f);let j=0;for(const T of C){const W=V(h,G,j,T,o,f,y);W&&O.push(W),j+=T*A}if(O.sort((T,W)=>{let L=y*T[2]-y*W[2];return 0===L&&o&&(L=T[4]-W[4]),L}),O.length){let T=6*O[0][2];_[0]=O[0][0]/T,_[1]=O[0][1]/T,o&&(T=6*O[0][4],_[2]=0!==T?O[0][3]/T:0),(_[0]h[1]||_[1]h[3]||o&&(_[2]h[5]))&&(_.length=0)}if(!_.length){const T=n.lengths[0]?function E(s,n,o,f,x){const y=z(f,x);let _=n,O=n+y,h=0,C=0,G=0,A=0;for(let j=0,T=o-1;j0?f?[C/h,G/h,A/h]:[C/h,G/h]:o>0?f?[s[n],s[n+1],s[n+2]]:[s[n],s[n+1]]:null}(G,0,C[0],o,f):null;if(!T)return null;_[0]=T[0],_[1]=T[1],o&&T.length>2&&(_[2]=T[2])}return s}function V(s,n,o,f,x,y,_=1){const O=z(x,y);let h=o,C=o+O,G=0,A=0,j=0,T=0,W=0;for(let w=0,ee=f-1;ws[1]&&(s[1]=u),cs[3]&&(s[3]=c),x&&(gs[5]&&(s[5]=g))}if(T*_>0&&(T*=-1),W*_>0&&(W*=-1),!T)return null;const L=[G,A,.5*T];return x&&(L[3]=j,L[4]=.5*W),L}function F(s,n,o,f){const x=o-s,y=f-n;return Math.sqrt(x*x+y*y)}function D(s,n,o,f,x,y){const _=f-s,O=x-n,h=y-o;return Math.sqrt(_*_+O*O+h*h)}function I(s,n,o,f){return[s+.5*(o-s),n+.5*(f-n)]}function P(s,n,o,f,x,y){return[s+.5*(f-s),n+.5*(x-n),o+.5*(y-o)]}},58175:(re,H,p)=>{p.d(H,{q:()=>g});var S=p(15861),z=p(85931),Z=p(26584),V=p(58817),E=p(62208),F=p(1036),D=p(16730),I=p(5548),P=p(65401),s=p(32442),n=p(91179),o=p(93555),f=p(37053),x=p(82054),y=p(50736),_=p(82959),O=p(87757),h=p(83308),C=p(53023),G=p(76530),A=p(6185),j=p(60466),T=p(46679),W=p(87091);const w="feature-store:unsupported-query",u=new F.WJ(2e6);let c=0;class g{constructor(e){this.capabilities={query:O.g},this.geometryType=e.geometryType,this.hasM=e.hasM,this.hasZ=e.hasZ,this.objectIdField=e.objectIdField,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._changeHandle=this.featureStore.events.on("changed",()=>this.clearCache()),this.timeInfo=e.timeInfo,e.cacheSpatialQueries&&(this._geometryQueryCache=new F.Xq(c+++"$$",u)),this.fieldsIndex=new j.Z(e.fields),e.scheduler&&e.priority&&(this._frameTask=e.scheduler.registerTask(e.priority))}destroy(){this._frameTask=(0,E.hw)(this._frameTask),this.clearCache(),(0,E.SC)(this._geometryQueryCache),this._changeHandle=(0,E.hw)(this._changeHandle),(0,E.SC)(this.fieldsIndex)}get featureAdapter(){return this.featureStore.featureAdapter}get fullExtent(){const e=this.featureStore.fullBounds;return(0,E.Wi)(e)?null:{xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:(0,A.S2)(this.spatialReference)}}get timeExtent(){return this.timeInfo?(this._timeExtent||(this._timeExtent=(0,G.R)(this.timeInfo,this.featureStore)),this._timeExtent):null}clearCache(){this._geometryQueryCache?.clear(),this._allItems=null,this._timeExtent=null}executeQuery(e,i){var t=this;return(0,S.Z)(function*(){try{return(yield t._executeQuery(e,{},i)).createQueryResponse()}catch(r){if(r!==A.vF)throw r;return new h.y([],e,t).createQueryResponse()}})()}executeQueryForCount(e={},i){var t=this;return(0,S.Z)(function*(){try{return(yield t._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null},i)).createQueryResponseForCount()}catch(r){if(r!==A.vF)throw r;return 0}})()}executeQueryForExtent(e,i){var t=this;return(0,S.Z)(function*(){const r=e.outSR;try{const a=yield t._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},i),d=a.size;if(!d)return{count:0,extent:null};(0,I.t8)(M,I.Gv),t.featureStore.forEachBounds(a.items,R=>(0,I.TC)(M,R),v);const m={xmin:M[0],ymin:M[1],xmax:M[3],ymax:M[4],spatialReference:(0,A.S2)(t.spatialReference)};t.hasZ&&isFinite(M[2])&&isFinite(M[5])&&(m.zmin=M[2],m.zmax=M[5]);const l=(0,_.iV)(m,a.spatialReference,r);if(l.spatialReference=(0,A.S2)(r||t.spatialReference),l.xmax-l.xmin==0){const R=(0,D.c9)(l.spatialReference);l.xmin-=R,l.xmax+=R}if(l.ymax-l.ymin==0){const R=(0,D.c9)(l.spatialReference);l.ymin-=R,l.ymax+=R}if(t.hasZ&&null!=l.zmin&&null!=l.zmax&&l.zmax-l.zmin==0){const R=(0,D.c9)(l.spatialReference);l.zmin-=R,l.zmax+=R}return{count:d,extent:l}}catch(a){if(a===A.vF)return{count:0,extent:null};throw a}})()}executeQueryForIds(e,i){var t=this;return(0,S.Z)(function*(){return t.executeQueryForIdSet(e,i).then(r=>Array.from(r))})()}executeQueryForIdSet(e,i){var t=this;return(0,S.Z)(function*(){try{const r=yield t._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},i),a=r.items,d=new Set;return yield t._reschedule(()=>{for(const m of a)d.add(r.featureAdapter.getObjectId(m))},i),d}catch(r){if(r===A.vF)return new Set;throw r}})()}executeQueryForSnapping(e,i){var t=this;return(0,S.Z)(function*(){const{point:r,distance:a,types:d}=e;if(d===h.r.NONE)return{candidates:[]};const m=yield t._reschedule(()=>t._checkQuerySupport(e.query),i),l=!(0,f.fS)(r.spatialReference,t.spatialReference);l&&(yield(0,_._W)(r.spatialReference,t.spatialReference));const R="number"==typeof a?a:a.x,U="number"==typeof a?a:a.y,B={xmin:r.x-R,xmax:r.x+R,ymin:r.y-U,ymax:r.y+U,spatialReference:r.spatialReference},K=l?(0,_.iV)(B,t.spatialReference):B;if(!K)return{candidates:[]};const X=(yield(0,o.aX)((0,n.im)(r),null,{signal:i}))[0],$=(yield(0,o.aX)((0,n.im)(K),null,{signal:i}))[0];if((0,E.Wi)(X)||(0,E.Wi)($))return{candidates:[]};const te=new h.y(t._searchFeatures(t._getQueryBBoxes($.toJSON())),m,t);yield t._reschedule(()=>t._executeObjectIdsQuery(te),i),yield t._reschedule(()=>t._executeTimeQuery(te),i),yield t._reschedule(()=>t._executeAttributesQuery(te),i);const b=X.toJSON(),k=l?(0,_.iV)(b,t.spatialReference):b,q=l?Math.max(K.xmax-K.xmin,K.ymax-K.ymin)/2:a;return te.createSnappingResponse({...e,point:k,distance:q},r.spatialReference)})()}executeQueryForLatestObservations(e,i){var t=this;return(0,S.Z)(function*(){if(!t.timeInfo||!t.timeInfo.trackIdField)throw new Z.Z(w,"Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:t.timeInfo});try{const r=yield t._executeQuery(e,{},i);return yield t._reschedule(()=>t._filterLatest(r),i),r.createQueryResponse()}catch(r){if(r!==A.vF)throw r;return new h.y([],e,t).createQueryResponse()}})()}executeQueryForSummaryStatistics(e={},i,t){var r=this;return(0,S.Z)(function*(){const{field:a,normalizationField:d,valueExpression:m}=i;return(yield r._getQueryEngineResultForStats(e,{field:a,normalizationField:d,valueExpression:m},t)).createSummaryStatisticsResponse(i)})()}executeQueryForUniqueValues(e={},i,t){var r=this;return(0,S.Z)(function*(){const{field:a,field2:d,field3:m,valueExpression:l}=i;return(yield r._getQueryEngineResultForStats(e,{field:a,field2:d,field3:m,valueExpression:l},t)).createUniqueValuesResponse(i)})()}executeQueryForClassBreaks(e={},i,t){var r=this;return(0,S.Z)(function*(){const{field:a,normalizationField:d,valueExpression:m}=i;return(yield r._getQueryEngineResultForStats(e,{field:a,normalizationField:d,valueExpression:m},t)).createClassBreaksResponse(i)})()}executeQueryForHistogram(e={},i,t){var r=this;return(0,S.Z)(function*(){const{field:a,normalizationField:d,valueExpression:m}=i;return(yield r._getQueryEngineResultForStats(e,{field:a,normalizationField:d,valueExpression:m},t)).createHistogramResponse(i)})()}_schedule(e,i){var t=this;return(0,S.Z)(function*(){return(0,E.pC)(t._frameTask)?t._frameTask.schedule(e,i):e(W.G5)})()}_reschedule(e,i){var t=this;return(0,S.Z)(function*(){return(0,E.pC)(t._frameTask)?t._frameTask.reschedule(e,i):e(W.G5)})()}_getAll(e){return(0,E.Wi)(this._allItems)&&(this._allItems=this.featureStore.toArray()),new h.y(this._allItems,e,this)}_executeQuery(e,i,t){var r=this;return(0,S.Z)(function*(){e=(0,V.d9)(e),e=yield r._schedule(()=>(0,A.Up)(e,r.definitionExpression,r.spatialReference),t),e=yield r._reschedule(()=>r._checkQuerySupport(e),t),e={...e,...i};const a=yield r._reschedule(()=>r._executeSceneFilterQuery(e,t),t),d=yield r._reschedule(()=>r._executeGeometryQuery(e,a,t),t);return yield r._reschedule(()=>r._executeAggregateIdsQuery(d),t),yield r._reschedule(()=>r._executeObjectIdsQuery(d),t),yield r._reschedule(()=>r._executeTimeQuery(d),t),yield r._reschedule(()=>r._executeAttributesQuery(d),t),d})()}_executeSceneFilterQuery(e,i){var t=this;return(0,S.Z)(function*(){if((0,E.Wi)(e.sceneFilter))return null;const{outSR:r,returnGeometry:a,returnCentroid:d}=e,m=t.featureStore.featureSpatialReference,l=e.sceneFilter.geometry,R=(0,E.Wi)(m)||(0,f.fS)(m,l.spatialReference)?l:(0,_.iV)(l,m);if(!R)return null;const U=a||d,B=(0,f.JY)(r)&&!(0,f.fS)(t.spatialReference,r)&&U?function(){var b=(0,S.Z)(function*(k){return t._project(k,r)});return function(k){return b.apply(this,arguments)}}():b=>b,K=t.featureAdapter,X=t._searchFeatures(t._getQueryBBoxes(R));if("disjoint"===e.sceneFilter.spatialRelationship){if(!X.length)return null;const b=new Set;for(const ie of X)b.add(K.getObjectId(ie));const k=yield t._reschedule(()=>t.featureStore.toArray(),i);return B(yield t._reschedule((0,S.Z)(function*(){const ie=yield(0,C.cW)("esriSpatialRelDisjoint",R,t.geometryType,t.hasZ,t.hasM),Y=yield t._runSpatialFilter(k,J=>!b.has(K.getObjectId(J))||ie(K.getGeometry(J)),i);return new h.y(Y,e,t)}),i))}if(!X.length)return new h.y([],e,t);if(t._canExecuteSinglePass(R,e))return B(new h.y(X,e,t));const $=yield(0,C.cW)("esriSpatialRelContains",R,t.geometryType,t.hasZ,t.hasM),te=yield t._runSpatialFilter(X,b=>$(K.getGeometry(b)),i);return B(new h.y(te,e,t))})()}_executeGeometryQuery(e,i,t){var r=this;return(0,S.Z)(function*(){if((0,E.pC)(i)&&0===i.items.length)return i;e=(0,E.pC)(i)?i.query:e;const{geometry:a,outSR:d,spatialRel:m,returnGeometry:l,returnCentroid:R}=e,U=r.featureStore.featureSpatialReference,B=!a||(0,E.Wi)(U)||(0,f.fS)(U,a.spatialReference)?a:(0,_.iV)(a,U),K=l||R,X=(0,f.JY)(d)&&!(0,f.fS)(r.spatialReference,d),$=r._geometryQueryCache&&(0,E.Wi)(i)?X&&K?JSON.stringify({originalFilterGeometry:a,spatialRelationship:m,outSpatialReference:d}):JSON.stringify({originalFilterGeometry:a,spatialRelationship:m}):null,te=$?r._geometryQueryCache.get($):null;if((0,E.pC)(te))return new h.y(te,e,r);const b=function(){var Y=(0,S.Z)(function*(J){return X&&K&&(yield r._project(J,d)),$&&r._geometryQueryCache.put($,J.items,J.items.length+1),J});return function(oe){return Y.apply(this,arguments)}}();if(!B)return b((0,E.pC)(i)?i:r._getAll(e));const k=r.featureAdapter;let q=r._searchFeatures(r._getQueryBBoxes(a));if("esriSpatialRelDisjoint"===m){if(!q.length)return b((0,E.pC)(i)?i:r._getAll(e));const Y=new Set;for(const ne of q)Y.add(k.getObjectId(ne));const J=(0,E.pC)(i)?i.items:yield r._reschedule(()=>r.featureStore.toArray(),t);return b(yield r._reschedule((0,S.Z)(function*(){const ne=yield(0,C.cW)(m,B,r.geometryType,r.hasZ,r.hasM),le=yield r._runSpatialFilter(J,ae=>!Y.has(k.getObjectId(ae))||ne(k.getGeometry(ae)),t);return new h.y(le,e,r)}),t))}if((0,E.pC)(i)){const Y=new z.SO;q=q.filter(J=>(0,z.cq)(i.items,J,i.items.length,Y)>=0)}if(!q.length){const Y=new h.y([],e,r);return $&&r._geometryQueryCache.put($,Y.items,1),Y}if(r._canExecuteSinglePass(B,e))return b(new h.y(q,e,r));const ie=yield(0,C.cW)(m,B,r.geometryType,r.hasZ,r.hasM),se=yield r._runSpatialFilter(q,Y=>ie(k.getGeometry(Y)),t);return b(new h.y(se,e,r))})()}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds||!e.query.aggregateIds.length||(0,E.Wi)(this.aggregateAdapter))return;const i=new Set;for(const r of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(r).forEach(a=>i.add(a));const t=this.featureAdapter.getObjectId;e.items=e.items.filter(r=>i.has(t(r)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds||!e.query.objectIds.length)return;const i=new Set(e.query.objectIds),t=this.featureAdapter.getObjectId;e.items=e.items.filter(r=>i.has(t(r)))}_executeTimeQuery(e){if(0===e.items.length)return;const i=(0,G.y)(this.timeInfo,e.query.timeExtent,this.featureAdapter);(0,E.Wi)(i)||(e.items=e.items.filter(i))}_executeAttributesQuery(e){if(0===e.items.length)return;const i=(0,y.Jc)(e.query.where,this.fieldsIndex);if(i){if(!i.isStandardized)throw new TypeError("Where clause is not standardized");e.items=e.items.filter(t=>i.testFeature(t,this.featureAdapter))}}_runSpatialFilter(e,i,t){var r=this;return(0,S.Z)(function*(){if(!i)return e;if((0,E.Wi)(r._frameTask))return e.filter(l=>i(l));let a=0;const d=new Array,m=function(){var l=(0,S.Z)(function*(R){for(;am(B),t))}});return function(U){return l.apply(this,arguments)}}();return r._reschedule(l=>m(l),t).then(()=>d)})()}_filterLatest(e){const{trackIdField:i,startTimeField:t,endTimeField:r}=this.timeInfo,a=r||t,d=new Map,m=this.featureAdapter.getAttribute;for(const l of e.items){const R=m(l,i),U=m(l,a),B=d.get(R);(!B||U>m(B,a))&&d.set(R,l)}e.items=Array.from(d.values())}_canExecuteSinglePass(e,i){const{spatialRel:t}=i;return(0,C.hN)(e)&&("esriSpatialRelEnvelopeIntersects"===t||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===t||"esriSpatialRelContains"===t||"esriSpatialRelWithin"===t))}_project(e,i){var t=this;return(0,S.Z)(function*(){if(!i||(0,f.fS)(t.spatialReference,i))return e;const r=t.featureAdapter,a=yield(0,_.oj)(e.items.map(d=>(0,A.Op)(t.geometryType,t.hasZ,t.hasM,r.getGeometry(d))),t.spatialReference,i);return e.items=a.map((d,m)=>r.cloneWithGeometry(e.items[m],(0,x.GH)(d,t.hasZ,t.hasM))),e})()}_getQueryBBoxes(e){if((0,C.hN)(e)){if((0,n.YX)(e))return[(0,P.al)(e.xmin,e.ymin,e.xmax,e.ymax)];if((0,n.oU)(e))return e.rings.map(i=>(0,P.al)(Math.min(i[0][0],i[2][0]),Math.min(i[0][1],i[2][1]),Math.max(i[0][0],i[2][0]),Math.max(i[0][1],i[2][1])))}return[(0,s.$P)((0,P.Ue)(),e)]}_searchFeatures(e){for(const t of e)this.featureStore.forEachInBounds(t,r=>N.add(r));const i=Array.from(N.values());return N.clear(),i}_checkStatisticsSupport(e,i){var t=this;return(0,S.Z)(function*(){if(e.distance<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new Z.Z(w,"Unsupported query options",{query:e});return t._checkAttributesQuerySupport(e),Promise.all([t._checkStatisticsParamsSupport(i),(0,C.P0)(e,t.geometryType,t.spatialReference),(0,_._W)(t.spatialReference,e.outSR)]).then(()=>e)})()}_checkStatisticsParamsSupport(e){var i=this;return(0,S.Z)(function*(){let t=[];if(e.valueExpression){const{arcadeUtils:r}=yield(0,T.LC)();t=r.extractFieldNames(e.valueExpression)}if(e.field&&t.push(e.field),e.field2&&t.push(e.field2),e.field3&&t.push(e.field3),e.normalizationField&&t.push(e.normalizationField),!t.length)throw new Z.Z(w,"params should have at least a field or valueExpression",{params:e});(0,y.Of)(i.fieldsIndex,t,"params contains missing fields")})()}_checkQuerySupport(e){var i=this;return(0,S.Z)(function*(){if(e.distance<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new Z.Z(w,"Unsupported query options",{query:e});return i._checkAttributesQuerySupport(e),i._checkStatisticsQuerySupport(e),Promise.all([(0,C.P0)(e,i.geometryType,i.spatialReference),(0,_._W)(i.spatialReference,e.outSR)]).then(()=>e)})()}_checkAttributesQuerySupport(e){const{outFields:i,orderByFields:t,returnDistinctValues:r,outStatistics:a}=e,d=a?a.map(m=>m.outStatisticFieldName&&m.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if(t&&t.length>0){const m=" asc",l=" desc",R=t.map(U=>{const B=U.toLowerCase();return B.includes(m)?B.split(m)[0]:B.includes(l)?B.split(l)[0]:U}).filter(U=>!d.includes(U));(0,y.Of)(this.fieldsIndex,R,"orderByFields contains missing fields")}if(i&&i.length>0)(0,y.Of)(this.fieldsIndex,i,"outFields contains missing fields");else if(r)throw new Z.Z(w,"outFields should be specified for returnDistinctValues",{query:e});(0,y.hO)(this.fieldsIndex,e.where)}_checkStatisticsQuerySupport(e){const{outStatistics:i,groupByFieldsForStatistics:t,having:r}=e,a=t&&t.length,d=i&&i.length;if(r){if(!a||!d)throw new Z.Z(w,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:e});(0,y.z4)(this.fieldsIndex,r,i)}if(d){if(!function L(Q){return Q.every(e=>"exceedslimit"!==e.statisticType)}(i))return;const m=i.map(l=>l.onStatisticField).filter(Boolean);(0,y.Of)(this.fieldsIndex,m,"onStatisticFields contains missing fields"),a&&(0,y.Of)(this.fieldsIndex,t,"groupByFieldsForStatistics contains missing fields");for(const l of i){const{onStatisticField:R,statisticType:U}=l;if("percentile_disc"!==U&&"percentile_cont"!==U||!("statisticParameters"in l)){if("count"!==U&&R&&(0,y.G3)(R,this.fieldsIndex))throw new Z.Z(w,"outStatistics contains non-numeric fields",{definition:l,query:e})}else{const{statisticParameters:B}=l;if(!B)throw new Z.Z(w,"statisticParamters should be set for percentile type",{definition:l,query:e})}}}}_getQueryEngineResultForStats(e,i,t){var r=this;return(0,S.Z)(function*(){e=(0,V.d9)(e);try{e=yield r._schedule(()=>(0,A.Up)(e,r.definitionExpression,r.spatialReference),t),e=yield r._reschedule(()=>r._checkStatisticsSupport(e,i),t);const a=yield r._reschedule(()=>r._executeSceneFilterQuery(e,t),t),d=yield r._reschedule(()=>r._executeGeometryQuery(e,a,t),t);return yield r._reschedule(()=>r._executeAggregateIdsQuery(d),t),yield r._reschedule(()=>r._executeObjectIdsQuery(d),t),yield r._reschedule(()=>r._executeTimeQuery(d),t),yield r._reschedule(()=>r._executeAttributesQuery(d),t),d}catch(a){if(a!==A.vF)throw a;return new h.y([],e,r)}})()}}const v=(0,I.Ue)(),M=(0,I.Ue)(),N=new Set},87757:(re,H,p)=>{p.d(H,{g:()=>S});const S={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},53023:(re,H,p)=>{p.d(H,{hN:()=>ee,P0:()=>L,cW:()=>W});var S=p(15861),z=p(26584),Z=p(33190),V=p(11519),F=p(91179),D=p(37053);function I(u,c){return u?c?4:3:c?3:2}function n(u,c,g,v,M){if(!u)return!1;const N=I(c,g),{coords:Q,lengths:e}=u;let i=!1,t=0;for(const r of e)i=o(i,Q,N,t,r,v,M),t+=r*N;return i}function o(u,c,g,v,M,N,Q){let e=u,i=v;for(let t=v,r=v+M*g;t=Q||l=Q)&&a+(Q-d)/(l-d)*(m-a)function P(u,c,g,v){return n(u,c,g,v.coords[0],v.coords[1])}(N,!1,!1,Q))}if((0,F.oU)(c)&&"esriGeometryMultipoint"===g){const N=(0,f.Uy)(new x.Z,c,!1,!1);if("esriSpatialRelContains"===u)return Promise.resolve(Q=>function s(u,c,g,v,M,N){const Q=I(M,N),{coords:e,lengths:i}=v;if(!i)return!1;for(let t=0,r=0;t(0,Z.aV)(c,(0,_.Op)(g,v,M,N)));if((0,F.YX)(c)&&"esriGeometryMultipoint"===g&&"esriSpatialRelContains"===u)return Promise.resolve(N=>(0,Z.lQ)(c,(0,_.Op)(g,v,M,N)));if((0,F.YX)(c)&&"esriSpatialRelIntersects"===u){const N=function E(u){return"mesh"===u?V.h_:(0,V.IY)(u)}(g);return Promise.resolve(Q=>N(c,(0,_.Op)(g,v,M,Q)))}return function T(){return Promise.all([p.e(4918),p.e(8592)]).then(p.bind(p,32825))}().then(N=>{const Q=N[h[u]].bind(null,c.spatialReference,c);return e=>Q((0,_.Op)(g,v,M,e))})}function L(u,c,g){return w.apply(this,arguments)}function w(){return(w=(0,S.Z)(function*(u,c,g){const{spatialRel:v,geometry:M}=u;if(M){if(!G(v))throw new z.Z(O,"Unsupported query spatial relationship",{query:u});if((0,D.JY)(M.spatialReference)&&(0,D.JY)(g)){if(!A(M))throw new z.Z(O,"Unsupported query geometry type",{query:u});if(!j(c))throw new z.Z(O,"Unsupported layer geometry type",{query:u});if(u.outSR)return(0,y._W)(u.geometry&&u.geometry.spatialReference,u.outSR)}}})).apply(this,arguments)}function ee(u){if((0,F.YX)(u))return!0;if((0,F.oU)(u)){for(const c of u.rings)if(5!==c.length||c[0][0]!==c[1][0]||c[0][0]!==c[4][0]||c[2][0]!==c[3][0]||c[0][1]!==c[3][1]||c[0][1]!==c[4][1]||c[1][1]!==c[2][1])return!1;return!0}return!1}},76530:(re,H,p)=>{function S(F,D){if(!F)return null;const I=D.featureAdapter,{startTimeField:P,endTimeField:s}=F;let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;if(P&&s)D.forEach(f=>{const x=I.getAttribute(f,P),y=I.getAttribute(f,s);null==x||isNaN(x)||(n=Math.min(n,x)),null==y||isNaN(y)||(o=Math.max(o,y))});else{const f=P||s;D.forEach(x=>{const y=I.getAttribute(x,f);null==y||isNaN(y)||(n=Math.min(n,y),o=Math.max(o,y))})}return{start:n,end:o}}function z(F,D,I){if(!D||!F)return null;const{startTimeField:P,endTimeField:s}=F;if(!P&&!s)return null;const{start:n,end:o}=D;return null===n&&null===o?null:void 0===n&&void 0===o?()=>!1:P&&s?function Z(F,D,I,P,s){return null!=P&&null!=s?n=>{const o=F.getAttribute(n,D),f=F.getAttribute(n,I);return(null==o||o<=s)&&(null==f||f>=P)}:null!=P?n=>{const o=F.getAttribute(n,I);return null==o||o>=P}:null!=s?n=>{const o=F.getAttribute(n,D);return null==o||o<=s}:void 0}(I,P,s,n,o):function V(F,D,I,P){return null!=I&&null!=P&&I===P?s=>F.getAttribute(s,D)===I:null!=I&&null!=P?s=>{const n=F.getAttribute(s,D);return n>=I&&n<=P}:null!=I?s=>F.getAttribute(s,D)>=I:null!=P?s=>F.getAttribute(s,D)<=P:void 0}(I,P||s,n,o)}p.d(H,{R:()=>S,y:()=>z})}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3478.7391a288ec571482.js b/apps/n/porrtal-io-app/public/angular/3478.7391a288ec571482.js deleted file mode 100644 index 87d9b0d1..00000000 --- a/apps/n/porrtal-io-app/public/angular/3478.7391a288ec571482.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3478],{93478:(r,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(52382),_(13934),_(78925),_(24255),_(68565),_(54120),_(62952),_(54662),_(13146),_(31166),_(10109),_(96395),_(7025),_(72968),_(33726),_(2166),_(97139),_(65787),_(17625),_(22355),_(44835);var a=_(24079)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3482.34e81e4215e6c0c1.js b/apps/n/porrtal-io-app/public/angular/3482.34e81e4215e6c0c1.js deleted file mode 100644 index 72042515..00000000 --- a/apps/n/porrtal-io-app/public/angular/3482.34e81e4215e6c0c1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3482],{3482:(V,B,F)=>{F.d(B,{Z:()=>y});var h=F(15861),R=F(62074),f=F(47982),P=F(49086),O=F(91510),v=F(77132),b=F(87215);class y extends P.Z{constructor(d){super(d),this._relation="",this._relationGeom=null,this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=d.relationString,this._parent=d.parentfeatureset,this._maxProcessing=40,this._relation=d.relation,this._relationGeom=d.relationGeom}_getSet(d){var S=this;return(0,h.Z)(function*(){if(null===S._wset){yield S._ensureLoaded();const U=yield S._parent._getFilteredSet("esriSpatialRelRelation"!==S._relation?S._relation:S._relation+":"+S._relationString,S._relationGeom,null,null,d);return S._checkCancelled(d),S._wset=new O.Z(U._candidates.slice(0),U._known.slice(0),U._ordered,S._clonePageDefinition(U.pagesDefinition)),S._wset}return S._wset})()}_isInFeatureSet(d){let S=this._parent._isInFeatureSet(d);return S===v.dj.NotInFeatureSet?S:(S=this._idstates[d],void 0===S?v.dj.Unknown:S)}_getFeature(d,S,U){return this._parent._getFeature(d,S,U)}_getFeatures(d,S,U,I){return this._parent._getFeatures(d,S,U,I)}_featureFromCache(d){return this._parent._featureFromCache(d)}executeSpatialRelationTest(d){var S=this;return(0,h.Z)(function*(){if(null===d.geometry)return!1;switch(S._relation){case"esriSpatialRelEnvelopeIntersects":{const U=(0,v.SV)(S._relationGeom),I=(0,v.SV)(d.geometry);return(0,b.kK)(U,I)}case"esriSpatialRelIntersects":return(0,b.kK)(S._relationGeom,d.geometry);case"esriSpatialRelContains":return(0,b.r3)(S._relationGeom,d.geometry);case"esriSpatialRelOverlaps":return(0,b.Nm)(S._relationGeom,d.geometry);case"esriSpatialRelWithin":return(0,b.uh)(S._relationGeom,d.geometry);case"esriSpatialRelTouches":return(0,b.W4)(S._relationGeom,d.geometry);case"esriSpatialRelCrosses":return(0,b.jU)(S._relationGeom,d.geometry);case"esriSpatialRelRelation":return(0,b.LV)(S._relationGeom,d.geometry,S._relationString??"")}})()}_fetchAndRefineFeatures(d,S,U){var I=this;return(0,h.Z)(function*(){const C=new O.Z([],d,!1,null),T=Math.min(S,d.length);yield I._parent?._getFeatures(C,-1,T,U),I._checkCancelled(U);const g=[];for(let e=0;e{F.d(B,{Z:()=>v});var h=F(15861),R=F(47982),f=F(49086),P=F(91510),O=F(77132);class v extends f.Z{constructor(y){super(y),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new P.Z([],[],!1,null),this._parent=y.parentfeatureset,this._databaseType=O.Bj.Standardised}_getSet(){var y=this;return(0,h.Z)(function*(){return y._wset})()}optimisePagingFeatureQueries(){}_isInFeatureSet(){return O.dj.NotInFeatureSet}_getFeature(){return(0,h.Z)(function*(){throw new R.EN(R.H9.NeverReach)})()}queryAttachments(){return(0,h.Z)(function*(){return[]})()}_getFeatures(){return(0,h.Z)(function*(){return"success"})()}_featureFromCache(){return null}_fetchAndRefineFeatures(){return(0,h.Z)(function*(){throw new R.EN(R.H9.NeverReach)})()}_getFilteredSet(){return(0,h.Z)(function*(){return new P.Z([],[],!1,null)})()}_stat(y,w,d,S,U,I,C){return this._manualStat(y,w,I,C)}_canDoAggregates(){return(0,h.Z)(function*(){return!1})()}}},49086:(V,B,F)=>{F.d(B,{Z:()=>C});var h=F(15861),R=F(53791),f=F(47982),P=F(62208);class O{constructor(g,e){this._lastId=-1,this._progress=e,this._parent=g}reset(){this._lastId=-1}nextBatch(g){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then(i=>this.nextBatch(g),i=>this.nextBatch(g));const e={returnpromise:null,hasset:!1},s=[];return e.returnpromise=new Promise((i,a)=>{this._parent._getSet(this._progress).then(l=>{const n=(0,P.s3)(l._known,"known");let r=n.length-1;if("GETPAGES"===n[n.length-1]&&(r-=1),this._lastId+g>r&&n.length>0&&"GETPAGES"===n[n.length-1])return void this._parent._expandPagedSet(l,this._parent._maxQueryRate(),0,0,this._progress).then(c=>{e.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(g).then(i,a)},c=>{e.hasset=!0,this._parent._mainSetInUse=null,a(c)});const o=(0,P.s3)(l._candidates,"candidates");if(r>=this._lastId+g||0===o.length){for(let c=0;c=n.length)break;s[c]=n[m]}return this._lastId+=s.length,0===s.length&&(e.hasset=!0,this._parent._mainSetInUse=null,i([])),void this._parent._getFeatureBatch(s,this._progress).then(c=>{e.hasset=!0,this._parent._mainSetInUse=null,i(c)},c=>{e.hasset=!0,this._parent._mainSetInUse=null,a(c)})}this._parent._refineSetBlock(l,this._parent._maxProcessingRate(),this._progress).then(()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(g).then(i,a)},c=>{e.hasset=!0,this._parent._mainSetInUse=null,a(c)})},l=>{e.hasset=!0,this._parent._mainSetInUse=null,a(l)})}),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then(e=>this.next(),e=>this.next());const g={returnpromise:null,hasset:!1};return g.returnpromise=new Promise((e,s)=>{this._parent._getSet(this._progress).then(i=>{const a=(0,P.s3)(i._known,"known");this._lastId(g.hasset=!0,this._parent._mainSetInUse=null,this.next())).then(e,s):(this._lastId+=1,this._parent._getFeature(i,a[this._lastId],this._progress).then(l=>{g.hasset=!0,this._parent._mainSetInUse=null,e(l)},l=>{g.hasset=!0,this._parent._mainSetInUse=null,s(l)})):(0,P.s3)(i._candidates,"candidates").length>0?this._parent._refineSetBlock(i,this._parent._maxProcessingRate(),this._progress).then(()=>{g.hasset=!0,this._parent._mainSetInUse=null,this.next().then(e,s)},l=>{g.hasset=!0,this._parent._mainSetInUse=null,s(l)}):(g.hasset=!0,this._parent._mainSetInUse=null,e(null))},i=>{g.hasset=!0,this._parent._mainSetInUse=null,s(i)})}),!1===g.hasset&&(this._parent._mainSetInUse=g.returnpromise,g.hasset=!0),g.returnpromise}count(){var g=this;return(0,h.Z)(function*(){if(-1!==g._parent._totalCount)return g._parent._totalCount;const e=yield g._parent._getSet(g._progress),s=yield g._refineAllSets(e);return g._parent._totalCount=s._known.length,g._parent._totalCount})()}_refineAllSets(g){var e=this;return(0,h.Z)(function*(){if(g._known.length>0&&"GETPAGES"===g._known[g._known.length-1])return yield e._parent._expandPagedSet(g,e._parent._maxQueryRate(),0,1,e._progress),e._refineAllSets(g);if(g._candidates.length>0){if("GETPAGES"===g._known[g._candidates.length-1])return yield e._parent._expandPagedSet(g,e._parent._maxQueryRate(),0,2,e._progress),e._refineAllSets(g);const s=yield e._parent._refineSetBlock(g,e._parent._maxProcessingRate(),e._progress);return s._candidates.length>0?e._refineAllSets(s):s}return g})()}}var v=F(91510),b=F(77132),y=F(45333),w=F(10699),d=F(10410),S=F(87215),U=F(65234),I=F(60466);let C=(()=>{class T{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=b.Bj.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,e&&e.lrucache&&(this.recentlyUsedQueries=e.lrucache),e&&e.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,s){return void 0===s?this[e]:(void 0!==this[e]&&(this[e]=s),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}loadImpl(){var e=this;return(0,h.Z)(function*(){return!0===e._parent?.loaded?(e._initialiseFeatureSet(),e):(yield e._parent?.load(),e._initialiseFeatureSet(),e)})()}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types):(this.fields=[],this.typeIdField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new U.Z({wkid:4326}),this.geometryType=b.Qk.point)}getField(e,s){let i;return(s=s||this.fields)&&(e=e.toLowerCase(),s.some(a=>(a&&a.name.toLowerCase()===e&&(i=a),!!i))),i}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=new I.Z(this.fields)),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new f.EN(f.H9.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}_canDoAggregates(e,s,i,a,l){var n=this;return(0,h.Z)(function*(){return null!==n._parent&&n._parent._canDoAggregates(e,s,i,a,l)})()}_getAggregatePagesDataSourceDefinition(e,s,i,a,l,n,r){var o=this;return(0,h.Z)(function*(){if(null===o._parent)throw new f.EN(f.H9.NeverReach);return o._parent._getAggregatePagesDataSourceDefinition(e,s,i,a,l,n,r)})()}_getAgregagtePhysicalPage(e,s,i){var a=this;return(0,h.Z)(function*(){if(null===a._parent)throw new f.EN(f.H9.NeverReach);return a._parent._getAgregagtePhysicalPage(e,s,i)})()}databaseType(){var e=this;return(0,h.Z)(function*(){if(e._databaseType===b.Bj.NotEvaluated){if(null!==R.Z.applicationCache){const s=R.Z.applicationCache.getDatabaseType(e._cacheableFeatureSetSourceKey());if(null!==s)return s}if(null!==e._databaseTypeProbed)return e._databaseTypeProbed;try{e._databaseTypeProbed=e._getDatabaseTypeImpl(),null!==R.Z.applicationCache&&R.Z.applicationCache.setDatabaseType(e._cacheableFeatureSetSourceKey(),e._databaseTypeProbed)}catch(s){throw null!==R.Z.applicationCache&&R.Z.applicationCache.clearDatabaseType(e._cacheableFeatureSetSourceKey()),s}return e._databaseTypeProbed}return e._databaseType})()}_getDatabaseTypeImpl(){var e=this;return(0,h.Z)(function*(){const s=[{thetype:b.Bj.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:b.Bj.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:b.Bj.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const i of s)if(!0===(yield e._runDatabaseProbe(i.testwhere)))return i.thetype;return b.Bj.StandardisedNoInterval})()}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}_runDatabaseProbe(e){var s=this;return(0,h.Z)(function*(){if(null!==s._parent)return s._parent._runDatabaseProbe(e);throw new f.EN(f.H9.NotImplemented)})()}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return b.dj.Unknown}_getSet(e){throw new f.EN(f.H9.NotImplemented)}_getFeature(e,s,i){var a=this;return(0,h.Z)(function*(){if(a._checkCancelled(i),void 0!==a._featureFromCache(s)||(yield a._getFeatures(e,s,a._maxProcessingRate(),i),a._checkCancelled(i),void 0!==a._featureFromCache(s)))return a._featureFromCache(s);throw new f.EN(f.H9.MissingFeatures)})()}_getFeatureBatch(e,s){var i=this;return(0,h.Z)(function*(){i._checkCancelled(s);const a=new v.Z([],e,!1,null),l=[];yield i._getFeatures(a,-1,e.length,s),i._checkCancelled(s);for(const n of e)void 0!==i._featureFromCache(n)&&l.push(i._featureFromCache(n));return l})()}_getFeatures(e,s,i,a){return(0,h.Z)(function*(){return"success"})()}_getFilteredSet(e,s,i,a,l){throw new f.EN(f.H9.NotImplemented)}_refineSetBlock(e,s,i){var a=this;return(0,h.Z)(function*(){if(!0===a._checkIfNeedToExpandCandidatePage(e,a._maxQueryRate()))return yield a._expandPagedSet(e,a._maxQueryRate(),0,0,i),a._refineSetBlock(e,s,i);a._checkCancelled(i);const l=e._candidates.length;a._refineKnowns(e,s);let n=l-e._candidates.length;if(0===e._candidates.length||n>=s)return e;if(yield a._refineIfParentKnown(e,s-n,i),a._checkCancelled(i),a._refineKnowns(e,s-n),n=l-e._candidates.length,n0){const r=s-n,o=a._prepareFetchAndRefineSet(e._candidates);return yield a._fetchAndRefineFeatures(o,o.length>r?r:e._candidates.length,i),a._checkCancelled(i),a._refineKnowns(e,s-n),e}return e})()}_fetchAndRefineFeatures(e,s,i){return null}_prepareFetchAndRefineSet(e){const s=[];for(let i=0;i=s)break}null!==a&&l.push(a);for(let n=l.length-1;n>=0;n--)e._candidates.splice(l[n].start,l[n].end-l[n].start+1)}_refineIfParentKnown(e,s,i){const a=new v.Z([],[],e._ordered,null);return a._candidates=e._candidates.slice(0),this._parent._refineSetBlock(a,s,i)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,s){if(null===e.pagesDefinition)return!1;let i=0;for(let a=e._lastFetchedIndex;a=s))break}return!1}_checkIfNeedToExpandCandidatePage(e,s){if(null===e.pagesDefinition)return!1;let i=0;for(let a=0;a=s)break}return!1}_expandPagedSet(e,s,i,a,l){var n=this;return(0,h.Z)(function*(){if(null===n._parent)throw new f.EN(f.H9.NotImplemented);return n._parent._expandPagedSet(e,s,i,a,l)})()}_expandPagedSetFeatureSet(e,s,i,a,l){var n=this;return(0,h.Z)(function*(){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(a=1),0===a&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(a=2),0===a)return"finished";const r=yield n._getPage(e,a,l);return i+re.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){l.length=l.length-1;let n=0;for(let o=0;o=e.pagesDefinition.internal.set.length);o++)l[l.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+o],n++;e.pagesDefinition.resultOffset+=n;let r=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(r=!0),!1===r&&l.push("GETPAGES"),n}return yield a._getPhysicalPage(e,s,i),a._getPage(e,s,i)})()}_getPhysicalPage(e,s,i){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}calculateStatistic(e,s,i,a){var l=this;return(0,h.Z)(function*(){yield l._ensureLoaded();let n=yield l._stat(e,s,"",null,null,i,a);return!1===n.calculated&&(n=yield l._manualStat(e,s,i,a)),n.result})()}_manualStat(e,s,i,a){var l=this;return(0,h.Z)(function*(){let n=null;switch(e.toLowerCase()){case"count":return n=yield(0,y.QX)(l,a),{calculated:!0,result:n};case"distinct":return n=yield(0,y.EB)(l,s,i,a),{calculated:!0,result:n};case"avg":case"mean":return n=yield(0,y.J6)(l,s,a),{calculated:!0,result:n};case"stdev":return n=yield(0,y.m)(l,s,a),{calculated:!0,result:n};case"variance":return n=yield(0,y.CA)(l,s,a),{calculated:!0,result:n};case"sum":return n=yield(0,y.Sm)(l,s,a),{calculated:!0,result:n};case"min":return n=yield(0,y.VV)(l,s,a),{calculated:!0,result:n};case"max":return n=yield(0,y.Fp)(l,s,a),{calculated:!0,result:n};default:return{calculated:!0,result:0}}})()}_stat(e,s,i,a,l,n,r){var o=this;return(0,h.Z)(function*(){const c=yield o._parent._stat(e,s,i,a,l,n,r);return!1===c.calculated?null===l&&""===i&&null===a?o._manualStat(e,s,n,r):{calculated:!1}:c})()}_unionAllGeomSelf(e){const s=this.iterator(this._defaultTracker(e)),i=[];return new Promise((a,l)=>{this._unionShapeInBatches(i,s,a,l)})}_unionAllGeom(e){return new Promise((s,i)=>{const a=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],a,s,i)})}_unionShapeInBatches(e,s,i,a){s.next().then(l=>{try{null!==l&&null!==l.geometry&&e.push(l.geometry),e.length>30||null===l&&e.length>1?(0,S.G0)(e).then(n=>{try{null===l?i(n):this._unionShapeInBatches(e=[n],s,i,a)}catch(r){a(r)}},a):null===l?i(1===e.length?e[0]:null):this._unionShapeInBatches(e,s,i,a)}catch(n){a(n)}},a)}iterator(e){return new O(this,e)}intersection(e,s=!1){return T._featuresetFunctions.intersection.bind(this)(e,s)}difference(e,s=!1,i=!0){return T._featuresetFunctions.difference.bind(this)(e,s,i)}symmetricDifference(e,s=!1,i=!0){return T._featuresetFunctions.symmetricDifference.bind(this)(e,s,i)}morphShape(e,s,i="unknown",a=null){return T._featuresetFunctions.morphShape.bind(this)(e,s,i,a)}morphShapeAndAttributes(e,s,i="unknown"){return T._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,s,i)}union(e,s=!1){return T._featuresetFunctions.union.bind(this)(e,s)}intersects(e){return T._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return T._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return T._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return T._featuresetFunctions.overlaps.bind(this)(e)}relate(e,s){return T._featuresetFunctions.relate.bind(this)(e,s)}within(e){return T._featuresetFunctions.within.bind(this)(e)}touches(e){return T._featuresetFunctions.touches.bind(this)(e)}top(e){return T._featuresetFunctions.top.bind(this)(e)}crosses(e){return T._featuresetFunctions.crosses.bind(this)(e)}buffer(e,s,i,a=!0){return T._featuresetFunctions.buffer.bind(this)(e,s,i,a)}filter(e,s=null){return T._featuresetFunctions.filter.bind(this)(e,s)}orderBy(e){return T._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,s){return T._featuresetFunctions.dissolve.bind(this)(e,s)}groupby(e,s){return T._featuresetFunctions.groupby.bind(this)(e,s)}reduce(e,s=null,i){return new Promise((a,l)=>{this._reduceImpl(this.iterator(this._defaultTracker(i)),e,s,0,a,l,0)})}_reduceImpl(e,s,i,a,l,n,r){try{if(++r>1e3)return void setTimeout(()=>{this._reduceImpl(e,s,i,a,l,n,r=0)});e.next().then(o=>{try{if(null===o)l(i);else{const c=s(i,o,a,this);(0,w.y8)(c)?c.then(m=>{this._reduceImpl(e,s,m,a+1,l,n,r)},n):this._reduceImpl(e,s,c,a+1,l,n,r)}}catch(c){n(c)}},n)}catch(o){n(o)}}removeField(e){return T._featuresetFunctions.removeField.bind(this)(e)}addField(e,s,i=null){return T._featuresetFunctions.addField.bind(this)(e,s,i)}sumArea(e,s=!1,i){const a=(0,b.EI)(e);return this.reduce((l,n)=>null===n.geometry?0:s?(0,S.Y4)(n.geometry,a).then(r=>l+r):(0,S.CJ)(n.geometry,a).then(r=>l+r),0,i)}sumLength(e,s=!1,i){const a=(0,b.Lz)(e);return this.reduce((l,n)=>null===n.geometry?0:s?(0,S.kQ)(n.geometry,a).then(r=>l+r):(0,S.sz)(n.geometry,a).then(r=>l+r),0,i)}_substituteVars(e,s){if(null!==s){const i={};for(const a in s)i[a.toLowerCase()]=s[a];e.parameters=i}}distinct(e,s=1e3,i=null,a){var l=this;return(0,h.Z)(function*(){yield l.load();const n=d.WhereClause.create(e,l.getFieldsIndex());return l._substituteVars(n,i),l.calculateStatistic("distinct",n,s,l._defaultTracker(a))})()}min(e,s=null,i){var a=this;return(0,h.Z)(function*(){yield a.load();const l=d.WhereClause.create(e,a.getFieldsIndex());return a._substituteVars(l,s),a.calculateStatistic("min",l,-1,a._defaultTracker(i))})()}max(e,s=null,i){var a=this;return(0,h.Z)(function*(){yield a.load();const l=d.WhereClause.create(e,a.getFieldsIndex());return a._substituteVars(l,s),a.calculateStatistic("max",l,-1,a._defaultTracker(i))})()}avg(e,s=null,i){var a=this;return(0,h.Z)(function*(){yield a.load();const l=d.WhereClause.create(e,a.getFieldsIndex());return a._substituteVars(l,s),a.calculateStatistic("avg",l,-1,a._defaultTracker(i))})()}sum(e,s=null,i){var a=this;return(0,h.Z)(function*(){yield a.load();const l=d.WhereClause.create(e,a.getFieldsIndex());return a._substituteVars(l,s),a.calculateStatistic("sum",l,-1,a._defaultTracker(i))})()}stdev(e,s=null,i){var a=this;return(0,h.Z)(function*(){yield a.load();const l=d.WhereClause.create(e,a.getFieldsIndex());return a._substituteVars(l,s),a.calculateStatistic("stdev",l,-1,a._defaultTracker(i))})()}variance(e,s=null,i){var a=this;return(0,h.Z)(function*(){yield a.load();const l=d.WhereClause.create(e,a.getFieldsIndex());return a._substituteVars(l,s),a.calculateStatistic("variance",l,-1,a._defaultTracker(i))})()}count(e){var s=this;return(0,h.Z)(function*(){return yield s.load(),s.calculateStatistic("count",d.WhereClause.create("1",s.getFieldsIndex()),-1,s._defaultTracker(e))})()}_defaultTracker(e){return e||{aborted:!1}}forEach(e,s){return new Promise((i,a)=>{this._forEachImpl(this.iterator(this._defaultTracker(s)),e,this,i,a,0)})}_forEachImpl(e,s,i,a,l,n){try{if(++n>1e3)return void setTimeout(()=>{this._forEachImpl(e,s,i,a,l,n=0)},0);e.next().then(r=>{try{if(null===r)a(i);else{const o=s(r);null==o?this._forEachImpl(e,s,i,a,l,n):(0,w.y8)(o)?o.then(()=>{try{this._forEachImpl(e,s,i,a,l,n)}catch(c){l(c)}},l):this._forEachImpl(e,s,i,a,l,n)}}catch(o){l(o)}},l)}catch(r){l(r)}}convertToJSON(e){const s={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let i=0;i{const l={geometry:a.geometry&&a.geometry.toJSON(),attributes:{}};for(const n in a.attributes)l.attributes[n]=a.attributes[n];return s.featureSet.features.push(l),1},0,e).then(()=>s)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,s,i,a,l){return this._parent.queryAttachments(e,s,i,a,l)}serviceUrl(){return this._parent.serviceUrl()}subtypes(){return this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const s of this.fields)e.push((0,b.Sh)(s));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===b.q2[this.geometryType]?"":b.q2[this.geometryType],fields:e}}convertToText(e,s){var i=this;return(0,h.Z)(function*(){if("schema"===e)return yield i._ensureLoaded(),JSON.stringify(i.schema());if("featureset"===e){yield i._ensureLoaded();const a=[];yield i.reduce((n,r)=>{const o={geometry:r.geometry?r.geometry.toJSON():null,attributes:r.attributes};return null!==o.geometry&&o.geometry.spatialReference&&delete o.geometry.spatialReference,a.push(o),1},0,s);const l=i.schema();return l.features=a,l.spatialReference=i.spatialReference.toJSON(),JSON.stringify(l)}return i.castToText()})()}getFeatureByObjectId(e,s){return this._parent.getFeatureByObjectId(e,s)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}castAsJsonAsync(e=null,s=null){var i=this;return(0,h.Z)(function*(){if("keeptype"===s?.featureset)return i;if("schema"===s?.featureset)return yield i._ensureLoaded(),JSON.parse(JSON.stringify(i.schema()));if("none"===s?.featureset)return null;yield i._ensureLoaded();const a=[];yield i.reduce((n,r)=>{const o={geometry:r.geometry?!0===s?.keepGeometryType?r.geometry:r.geometry.toJSON():null,attributes:r.attributes};return null!==o.geometry&&o.geometry.spatialReference&&!0!==s?.keepGeometryType&&delete o.geometry.spatialReference,a.push(o),1},0,e);const l=i.schema();return l.features=a,l.spatialReference=!0===s?.keepGeometryType?i.spatialReference:i.spatialReference?.toJSON(),l})()}}return T._featuresetFunctions={},T})()},91510:(V,B,F)=>{F.d(B,{Z:()=>h});class h{constructor(f,P,O,v){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=f,this._known=P,this._ordered=O,this.pagesDefinition=v}}},53791:(V,B,F)=>{F.d(B,{Z:()=>h});let h=(()=>{class R{constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(P){void 0===this._databaseTypeMetaData[P]&&delete this._databaseTypeMetaData[P]}getDatabaseType(P){return"MUSTBESET"===P||void 0===this._databaseTypeMetaData[P]?null:this._databaseTypeMetaData[P]}setDatabaseType(P,O){this._databaseTypeMetaData[P]=O}getLayerInfo(P){return void 0===this._layerInfo[P]?null:this._layerInfo[P]}setLayerInfo(P,O){this._layerInfo[P]=O}clearLayerInfo(P){void 0!==this._layerInfo[P]&&delete this._layerInfo[P]}}return R.applicationCache=null,R})()},47982:(V,B,F)=>{F.d(B,{EN:()=>b,H9:()=>O,eS:()=>P,f:()=>R});var R,y,h=F(25919);(y=R||(R={})).InvalidFunctionParameters="InvalidFunctionParameters",y.UnsupportedSqlFunction="UnsupportedSqlFunction",y.UnsupportedOperator="UnsupportedOperator",y.UnsupportedSyntax="UnsupportedSyntax",y.UnsupportedIsRhs="UnsupportedIsRhs",y.UnsupportedIsLhs="UnsupportedIsLhs",y.MissingStatisticParameters="MissingStatisticParameters";const f={[R.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[R.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[R.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[R.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[R.UnsupportedOperator]:"Unsupported operator - {operator}",[R.UnsupportedSyntax]:"Unsupported syntax - {node}",[R.UnsupportedSqlFunction]:"Sql function not found = {function}"};class P extends Error{constructor(w,d){super((0,h.Hy)(f[w],d)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,P)}}var O;!function(y){y.NeverReach="NeverReach",y.NotImplemented="NotImplemented",y.Cancelled="Cancelled",y.InvalidStatResponse="InvalidStatResponse",y.InvalidRequest="InvalidRequest",y.RequestFailed="RequestFailed",y.MissingFeatures="MissingFeatures",y.AggregationFieldNotFound="AggregationFieldNotFound",y.DataElementsNotFound="DataElementsNotFound"}(O||(O={}));const v={[O.Cancelled]:"Cancelled",[O.InvalidStatResponse]:"Invalid statistics response from service",[O.InvalidRequest]:"Invalid request",[O.RequestFailed]:"Request failed - {reason}",[O.MissingFeatures]:"Missing features",[O.AggregationFieldNotFound]:"Aggregation field not found",[O.DataElementsNotFound]:"Data elements not found on service",[O.NeverReach]:"Encountered unreachable logic",[O.NotImplemented]:"Not implemented"};class b extends Error{constructor(w,d){super((0,h.Hy)(v[w],d)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,b)}}},83947:(V,B,F)=>{F.d(B,{$e:()=>y,DT:()=>I,TE:()=>l,XF:()=>v,bB:()=>b,fz:()=>d,hq:()=>e,oX:()=>S,vR:()=>U,y5:()=>s,zR:()=>O});var h=F(77132),R=F(10410),f=F(47982),P=F(21837);function O(n,r){return w(n?.parseTree,r,n?.parameters)}function v(n,r,o){return w(n,r,o)}function b(n,r,o,c){return R.WhereClause.create(w(n.parseTree,h.Bj.Standardised,n.parameters,r,o),c)}function y(n,r,o="AND"){return R.WhereClause.create("(("+O(n,h.Bj.Standardised)+")"+o+"("+O(r,h.Bj.Standardised)+"))",n.fieldsIndex)}function w(n,r,o,c=null,m=null){let N,L,G,k;switch(n.type){case"interval":return l(w(n.value,r,o,c,m),n.qualifier,n.op);case"case-expression":{let p=" CASE ";"simple"===n.format&&(p+=w(n.operand,r,o,c,m));for(let E=0;E":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+w(n.left,r,o,c,m)+" "+n.operator+" "+w(n.right,r,o,c,m)+") "}throw new f.eS(f.f.UnsupportedOperator,{operator:n.operator});case"null":return"null";case"boolean":return!0===n.value?"1":"0";case"string":return"'"+n.value.toString().replace(/'/g,"''")+"'";case"timestamp":case"date":return S(n.value,r);case"number":return n.value.toString();case"current-time":return U("date"===n.mode,r);case"column-reference":return c&&c.toLowerCase()===n.column.toLowerCase()?"("+m+")":n.column;case"function":{const p=w(n.args,r,o,c,m);return d(n.name,p,r)}}throw new f.eS(f.f.UnsupportedSyntax,{node:n.type})}function d(n,r,o){switch(n.toLowerCase().trim()){case"abs":if(1!==r.length)throw new f.eS(f.f.InvalidFunctionParameters,{function:"abs"});return"abs("+r[0]+")";case"ceiling":case"ceil":if(1!==r.length)throw new f.eS(f.f.InvalidFunctionParameters,{function:"ceiling"});return"CEILING("+r[0]+")";case"floor":if(1!==r.length)throw new f.eS(f.f.InvalidFunctionParameters,{function:"floor"});return"FLOOR("+r[0]+")";case"log":if(1!==r.length)throw new f.eS(f.f.InvalidFunctionParameters,{function:"log"});return"LOG("+r[0]+")";case"log10":if(1!==r.length)throw new f.eS(f.f.InvalidFunctionParameters,{function:"log10"});return"LOG10("+r[0]+")";case"power":if(2!==r.length)throw new f.eS(f.f.InvalidFunctionParameters,{function:"power"});return"POWER("+r[0]+","+r[1]+")";case"round":if(2===r.length)return"ROUND("+r[0]+","+r[1]+")";if(1===r.length)return"ROUND("+r[0]+")";throw new f.eS(f.f.InvalidFunctionParameters,{function:"round"});case"truncate":if(r.length<1||r.length>2)throw new f.eS(f.f.InvalidFunctionParameters,{function:"truncate"});return o===h.Bj.SqlServer?"ROUND("+r[0]+(1===r.length?"0":","+r[1])+",1)":"TRUNCATE("+r[0]+(1===r.length?")":","+r[1]+")");case"char_length":case"len":if(1!==r.length)throw new f.eS(f.f.InvalidFunctionParameters,{function:"char_length"});switch(o){case h.Bj.SqlServer:return"LEN("+r[0]+")";case h.Bj.Oracle:return"LENGTH("+r[0]+")";default:return"CHAR_LENGTH("+r[0]+")"}case"concat":if(r.length<1)throw new f.eS(f.f.InvalidFunctionParameters,{function:"concat"});{let c="CONCAT(";for(let m=0;m":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==r.right.type)throw new f.eS(f.f.UnsupportedIsRhs);return"boolean";case"*":case"-":case"+":case"/":return g([C(n,r.left,o,c),C(n,r.right,o,c)]);default:throw new f.eS(f.f.UnsupportedOperator,{operator:r.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===r.value?"":r.value%1==0?"integer":"double";case"date":case"timestamp":case"current-time":return"date";case"column-reference":{const N=n[r.column.toLowerCase()];return void 0===N?"":N}case"function":switch(r.name.toLowerCase()){case"position":case"extract":case"char_length":return"integer";case"round":return m=C(n,r.args,o,c),m instanceof Array?m.length>0?m[0]:"":m;case"sign":return m=C(n,r.args,o,c),m instanceof Array&&(m=g(m)),"integer"===m||"double"===m?m:"double";case"ceiling":case"floor":case"abs":{const N=C(n,r.args,o,c);return N instanceof Array?g(N):N}case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"power":case"truncate":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string"}return""}throw new f.eS(f.f.UnsupportedSyntax,{node:r.type})}const T={boolean:1,string:2,integer:3,double:4,date:5};function g(n){if(n){let r="";for(const o of n)""!==o&&(r=""===r||T[r]{F.d(B,{CA:()=>i,EB:()=>G,Fp:()=>T,J6:()=>e,QX:()=>c,Sm:()=>r,VV:()=>I,g3:()=>S,m:()=>l,tj:()=>U});var h=F(15861),R=F(47982),f=F(77132),P=F(83947);function O(p){return p=+p,isFinite(p)?p-p%1||(p<0?-0:0===p?p:0):p}function v(p){let E=0;for(let x=0;x=E&&-1!==E)return x}return x}(E,x);case"avg":case"mean":return v(E);case"min":return Math.min.apply(Math,E);case"sum":return w(E);case"max":return Math.max.apply(Math,E);case"stdev":case"stddev":return Math.sqrt(b(E));case"var":case"variance":return b(E);case"count":return E.length}return 0}function I(p,E,x){return C.apply(this,arguments)}function C(){return(C=(0,h.Z)(function*(p,E,x){const A=yield N(p,E,x,!0);return 0===A.length?null:Math.min.apply(Math,A)})).apply(this,arguments)}function T(p,E,x){return g.apply(this,arguments)}function g(){return(g=(0,h.Z)(function*(p,E,x){const A=yield N(p,E,x,!0);return 0===A.length?null:Math.max.apply(Math,A)})).apply(this,arguments)}function e(p,E,x){return s.apply(this,arguments)}function s(){return(s=(0,h.Z)(function*(p,E,x){let A="";E&&!(0,P.y5)(E)&&(A=(0,P.DT)(E,p.fields));const W=yield N(p,E,x,!0);if(0===W.length)return null;const M=v(W);return null===M?M:"integer"===A?O(M):M})).apply(this,arguments)}function i(p,E,x){return a.apply(this,arguments)}function a(){return(a=(0,h.Z)(function*(p,E,x){const A=yield N(p,E,x,!0);return 0===A.length?null:y(A)})).apply(this,arguments)}function l(p,E,x){return n.apply(this,arguments)}function n(){return(n=(0,h.Z)(function*(p,E,x){const A=yield N(p,E,x,!0);return 0===A.length?null:Math.sqrt(y(A))})).apply(this,arguments)}function r(p,E,x){return o.apply(this,arguments)}function o(){return(o=(0,h.Z)(function*(p,E,x){const A=yield N(p,E,x,!0);return 0===A.length?null:w(A)})).apply(this,arguments)}function c(p,E){return m.apply(this,arguments)}function m(){return(m=(0,h.Z)(function*(p,E){return p.iterator(E).count()})).apply(this,arguments)}function N(p,E,x){return L.apply(this,arguments)}function L(){return(L=(0,h.Z)(function*(p,E,x,A=!1){const W=p.iterator(x),M=[],j={ticker:0};let K=yield W.next();for(;null!==K;){if(j.ticker++,x.aborted)throw new R.EN(R.H9.Cancelled);j.ticker%100==0&&(j.ticker=0,yield new Promise(Q=>{setTimeout(Q,0)}));const H=E?.calculateValue(K);null===H?!1===A&&(M[M.length]=H):M[M.length]=H,K=yield W.next()}return M})).apply(this,arguments)}function G(p,E){return k.apply(this,arguments)}function k(){return(k=(0,h.Z)(function*(p,E,x=1e3,A=null){const W=p.iterator(A),M=[],j={},K={ticker:0};let H=yield W.next();for(;null!==H;){if(K.ticker++,A&&A.aborted)throw new R.EN(R.H9.Cancelled);K.ticker%100==0&&(K.ticker=0,yield new Promise($=>{setTimeout($,0)}));const Q=E?.calculateValue(H);if(null!=Q&&void 0===j[Q]&&(M.push(Q),j[Q]=1),M.length>=x&&-1!==x)return M;H=yield W.next()}return M})).apply(this,arguments)}},87215:(V,B,F)=>{F.d(B,{CJ:()=>xe,Cz:()=>Te,D$:()=>Ee,ED:()=>G,G0:()=>ge,Gg:()=>E,JI:()=>W,LV:()=>p,Nm:()=>k,Sp:()=>H,TE:()=>o,U1:()=>Ie,W4:()=>N,Y4:()=>we,cv:()=>me,e5:()=>j,f3:()=>ye,fS:()=>c,j2:()=>ve,jU:()=>r,kK:()=>m,kQ:()=>De,og:()=>x,oq:()=>s,r3:()=>n,rd:()=>Se,sz:()=>Fe,uh:()=>L,wf:()=>$,z7:()=>a});var h=F(15861),f=(F(29132),F(59289)),O=(F(72642),F(91179));function v(u){return Array.isArray(u)?u[0]?.spatialReference:u?.spatialReference}function b(u){return u&&(Array.isArray(u)?u.map(b):u.toJSON?u.toJSON():u)}function y(u){return Array.isArray(u)?u.map(_=>(0,O.im)(_)):(0,O.im)(u)}function w(u,_){let D;return Array.isArray(u)?D=u:(D=[],D.push(u),null!=_&&D.push(_)),D}let d;function S(){return U.apply(this,arguments)}function U(){return(U=(0,h.Z)(function*(){return d||(d=(0,f.bA)("geometryEngineWorker",{strategy:"distributed"})),d})).apply(this,arguments)}function I(u,_){return C.apply(this,arguments)}function C(){return(C=(0,h.Z)(function*(u,_){return(yield S()).invoke("executeGEOperation",{operation:u,parameters:b(_)})})).apply(this,arguments)}function s(u,_){return i.apply(this,arguments)}function i(){return(i=(0,h.Z)(function*(u,_){return y(yield I("clip",[v(u),u,_]))})).apply(this,arguments)}function a(u,_){return l.apply(this,arguments)}function l(){return(l=(0,h.Z)(function*(u,_){return y(yield I("cut",[v(u),u,_]))})).apply(this,arguments)}function n(u,_){return I("contains",[v(u),u,_])}function r(u,_){return I("crosses",[v(u),u,_])}function o(u,_,D){return I("distance",[v(u),u,_,D])}function c(u,_){return I("equals",[v(u),u,_])}function m(u,_){return I("intersects",[v(u),u,_])}function N(u,_){return I("touches",[v(u),u,_])}function L(u,_){return I("within",[v(u),u,_])}function G(u,_){return I("disjoint",[v(u),u,_])}function k(u,_){return I("overlaps",[v(u),u,_])}function p(u,_,D){return I("relate",[v(u),u,_,D])}function E(u){return I("isSimple",[v(u),u])}function x(u){return A.apply(this,arguments)}function A(){return(A=(0,h.Z)(function*(u){return y(yield I("simplify",[v(u),u]))})).apply(this,arguments)}function W(u){return M.apply(this,arguments)}function M(){return(M=(0,h.Z)(function*(u,_=!1){return y(yield I("convexHull",[v(u),u,_]))})).apply(this,arguments)}function j(u,_){return K.apply(this,arguments)}function K(){return(K=(0,h.Z)(function*(u,_){return y(yield I("difference",[v(u),u,_]))})).apply(this,arguments)}function H(u,_){return Q.apply(this,arguments)}function Q(){return(Q=(0,h.Z)(function*(u,_){return y(yield I("symmetricDifference",[v(u),u,_]))})).apply(this,arguments)}function $(u,_){return X.apply(this,arguments)}function X(){return(X=(0,h.Z)(function*(u,_){return y(yield I("intersect",[v(u),u,_]))})).apply(this,arguments)}function ge(u){return q.apply(this,arguments)}function q(){return(q=(0,h.Z)(function*(u,_=null){const D=w(u,_);return y(yield I("union",[v(D),D]))})).apply(this,arguments)}function me(u,_,D,Z,J,z){return ee.apply(this,arguments)}function ee(){return(ee=(0,h.Z)(function*(u,_,D,Z,J,z){return y(yield I("offset",[v(u),u,_,D,Z,J,z]))})).apply(this,arguments)}function ye(u,_,D){return te.apply(this,arguments)}function te(){return(te=(0,h.Z)(function*(u,_,D,Z=!1){const J=[v(u),u,_,D,Z];return y(yield I("buffer",J))})).apply(this,arguments)}function Se(u,_,D,Z,J,z){return ne.apply(this,arguments)}function ne(){return(ne=(0,h.Z)(function*(u,_,D,Z,J,z){const Pe=[v(u),u,_,D,Z,J,z];return y(yield I("geodesicBuffer",Pe))})).apply(this,arguments)}function ie(u){return"xmin"in u?u.center:"x"in u?u:u.extent?.center}function Ie(u,_,D){return ue.apply(this,arguments)}function ue(){return(ue=(0,h.Z)(function*(u,_,D){if(null==u)throw new Y;const Z=u.spatialReference;if(null==(D=D??ie(u)))throw new Y;const J=u.constructor.fromJSON(yield I("rotate",[Z,u,_,D]));return J.spatialReference=Z,J})).apply(this,arguments)}function Ee(u,_,D,Z){return ce.apply(this,arguments)}function ce(){return(ce=(0,h.Z)(function*(u,_,D,Z){return y(yield I("generalize",[v(u),u,_,D,Z]))})).apply(this,arguments)}function Te(u,_,D){return he.apply(this,arguments)}function he(){return(he=(0,h.Z)(function*(u,_,D){return y(yield I("densify",[v(u),u,_,D]))})).apply(this,arguments)}function ve(u,_,D){return _e.apply(this,arguments)}function _e(){return(_e=(0,h.Z)(function*(u,_,D,Z=0){return y(yield I("geodesicDensify",[v(u),u,_,D,Z]))})).apply(this,arguments)}function xe(u,_){return I("planarArea",[v(u),u,_])}function Fe(u,_){return I("planarLength",[v(u),u,_])}function we(u,_,D){return I("geodesicArea",[v(u),u,_,D])}function De(u,_,D){return I("geodesicLength",[v(u),u,_,D])}class Y extends Error{constructor(){super("Illegal Argument Exception")}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3542.c1df8945f76acab3.js b/apps/n/porrtal-io-app/public/angular/3542.c1df8945f76acab3.js deleted file mode 100644 index 83d51c7a..00000000 --- a/apps/n/porrtal-io-app/public/angular/3542.c1df8945f76acab3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3542],{3542:(_,F,i)=>{i.r(F),i.d(F,{createConnection:()=>D});var g=i(15861),p=i(17626),x=(i(29132),i(84792)),a=i(26584),c=i(63290),d=i(62208),S=i(10699),k=i(21726),w=(i(90912),i(85931),i(8314),i(76898)),Z=i(77712),L=i(33696),E=i(61885);let C=class extends E.Z.EventedAccessor{get connectionError(){return this.errorString?new a.Z("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}};(0,p._)([(0,Z.Cb)({readOnly:!0})],C.prototype,"connectionError",null),C=(0,p._)([(0,w.j)("esri.layers.support.StreamConnection")],C);const O=C;var m,e;(e=m||(m={}))[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED";let v=class extends O{constructor(e){super(),this.errorString=null;const{geometryType:t,spatialReference:o,sourceSpatialReference:r}=e;this._config=e,this._featureZScaler=(0,L.k)(t,r,o),this._open()}_open(){var e=this;return(0,g.Z)(function*(){yield e._tryCreateWebSocket(),e.destroyed||(yield e._handshake())})()}destroy(){(0,d.pC)(this._websocket)&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if((0,d.Wi)(this._websocket))return"disconnected";switch(this._websocket.readyState){case m.CONNECTING:case m.OPEN:return"connected";case m.CLOSING:case m.CLOSED:return"disconnected"}}_tryCreateWebSocket(e=this._config.source.path,t=1e3,o=0){var r=this;return(0,g.Z)(function*(){try{if(r.destroyed)return;const n=(0,k.fl)(e,r._config.customParameters);r._websocket=yield r._createWebSocket(n),r.notifyChange("connectionStatus")}catch(n){const s=t/1e3;return r._config.maxReconnectionAttempts&&o>=r._config.maxReconnectionAttempts?(c.Z.getLogger(r.declaredClass).error(new a.Z("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void r.destroy()):(c.Z.getLogger(r.declaredClass).error(new a.Z("websocket-connection",`Failed to connect. Attempting to reconnect in ${s}s`,n)),yield(0,S.e4)(t),r._tryCreateWebSocket(e,Math.min(1.5*t,1e3*r._config.maxReconnectionInterval),o+1))}})()}_createWebSocket(e){return new Promise((t,o)=>{const r=new WebSocket(e);r.onopen=()=>{if(r.onopen=null,this.destroyed)return r.onclose=null,void r.close();r.onclose=n=>this._onClose(n),r.onerror=n=>this._onError(n),r.onmessage=n=>this._onMessage(n),t(r)},r.onclose=n=>{r.onopen=r.onclose=null,o(n)}})}_handshake(e=1e4){var t=this;return(0,g.Z)(function*(){const o=t._websocket;if((0,d.Wi)(o))return;const r=(0,S.hh)(),n=o.onmessage,{filter:s,outFields:l,spatialReference:y}=t._config;return r.timeout(e),o.onmessage=h=>{let f=null;try{f=JSON.parse(h.data)}catch{}f&&"object"==typeof f||(c.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Protocol violation. Handshake failed - malformed message",h.data)),r.reject(),t.destroy()),f.spatialReference?.wkid!==y?.wkid&&(c.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${y.wkid}`,h.data)),r.reject(),t.destroy()),"json"!==f.format&&(c.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Protocol violation. Handshake failed - format is not set",h.data)),r.reject(),t.destroy()),s&&f.filter!==s&&c.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Tried to set filter, but server doesn't support it")),l&&f.outFields!==l&&c.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Tried to set outFields, but server doesn't support it")),o.onmessage=n,r.resolve()},o.send(JSON.stringify({filter:s,outFields:l,format:"json",spatialReference:{wkid:y.wkid}})),r.promise})()}_onMessage(e){try{const t=JSON.parse(e.data);if("featureResult"!==t.type)throw new a.Z("websocket-connection","Protocol violation - Expected to find message of type 'featureResult'",t);for(const o of t.features)(0,d.pC)(this._featureZScaler)&&this._featureZScaler(o.geometry),this.onFeature(o)}catch(t){return c.Z.getLogger(this.declaredClass).error(new a.Z("websocket-connection","Failed to parse message",t)),void this.destroy()}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),c.Z.getLogger(this.declaredClass).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&c.Z.getLogger(this.declaredClass).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,p._)([(0,Z.Cb)()],v.prototype,"connectionStatus",null),(0,p._)([(0,Z.Cb)()],v.prototype,"errorString",void 0),v=(0,p._)([(0,w.j)("esri.layers.graphics.sources.connections.WebSocketConnection")],v);var R=i(20477),N=i(96854),W=i(91179),j=i(65234);const T={maxQueryDepth:5,maxRecordCountFactor:3};let b=class extends v{constructor(e){super({...T,...e})}_open(){var e=this;return(0,g.Z)(function*(){const t=yield e._fetchServiceDefinition(e._config.source);t.timeInfo.trackIdField||c.Z.getLogger(e.declaredClass).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const o=e._fetchWebSocketUrl(t.streamUrls,e._config.spatialReference);e._buddyServicesQuery||(e._buddyServicesQuery=e._queryBuddyServices()),yield e._buddyServicesQuery,yield e._tryCreateWebSocket(o);const{filter:r,outFields:n}=e._config;e.destroyed||e._setFilter(r,n)})()}_onMessage(e){let t;try{t=this._enrich(JSON.parse(e.data)),(0,d.pC)(this._featureZScaler)&&this._featureZScaler(t.geometry)}catch(o){return void c.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Failed to parse message",o))}this.onFeature(t)}_fetchServiceDefinition(e){var t=this;return(0,g.Z)(function*(){const o={f:"json",...t._config.customParameters},r=(0,x.default)(e.path,{query:o,responseType:"json"}),n=(yield r).data;return t._serviceDefinition=n,n})()}_fetchWebSocketUrl(e,t){const o=e[0],{urls:r,token:n}=o,s=this._inferWebSocketBaseUrl(r);return(0,k.fl)(`${s}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return c.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Unable to infer WebSocket url",e)),null}_setFilter(e,t){var o=this;return(0,g.Z)(function*(){const r=o._websocket;if((0,d.Wi)(r)||(0,d.Wi)(e)&&(0,d.Wi)(t))return;const n=JSON.stringify({filter:o._serializeFilter(e,t)});let s=!1;const l=(0,S.hh)();return r.onmessage=f=>{const u=JSON.parse(f.data);u.filter&&(u.error&&(c.Z.getLogger(o.declaredClass).error(new a.Z("geoevent-connection","Failed to set service filter",u.error)),o._set("errorString",`Could not set service filter - ${u.error}`),l.reject(u.error)),r.onmessage=o._onMessage.bind(o),s=!0,l.resolve())},r.send(n),setTimeout(()=>{s||(o.destroyed||o._websocket!==r||c.Z.getLogger(o.declaredClass).error(new a.Z("geoevent-connection","Server timed out when setting filter")),l.reject())},1e4),l.promise})()}_serializeFilter(e,t){const o={};if((0,d.Wi)(e)&&(0,d.Wi)(t))return o;if((0,d.pC)(e)&&e.geometry)try{const r=(0,W.im)(e.geometry);if("extent"!==r.type)throw new a.Z(`Expected extent but found type ${r.type}`);o.geometry=JSON.stringify(r.shiftCentralMeridian())}catch(r){c.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Encountered an error when setting connection geometryDefinition",r))}return(0,d.pC)(e)&&e.where&&"1 = 1"!==e.where&&(o.where=e.where),(0,d.pC)(t)&&(o.outFields=t.join(",")),o}_enrich(e){if(!this._relatedFeatures)return e;const o=e.attributes[this._serviceDefinition.relatedFeatures.joinField];if(!this._relatedFeatures.has(o))return c.Z.getLogger(this.declaredClass).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:r,geometry:n}=this._relatedFeatures.get(o);for(const s in r)e.attributes[s]=r[s];return n&&(e.geometry=n),e.geometry||e.centroid||c.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Found malformed feature - no geometry found",e)),e}_queryBuddyServices(){var e=this;return(0,g.Z)(function*(){try{const{relatedFeatures:t,keepLatestArchive:o}=e._serviceDefinition,r=e._queryRelatedFeatures(t),n=e._queryArchive(o);yield r;const s=yield n;if(!s)return;for(const l of s.features)e.onFeature(e._enrich(l))}catch(t){c.Z.getLogger(e.declaredClass).error(new a.Z("geoevent-connection","Encountered an error when querying buddy services",{error:t}))}})()}_queryRelatedFeatures(e){var t=this;return(0,g.Z)(function*(){if(!e)return;const o=yield t._queryBuddy(e.featuresUrl);t._addRelatedFeatures(o)})()}_queryArchive(e){var t=this;return(0,g.Z)(function*(){if(e)return t._queryBuddy(e.featuresUrl)})()}_queryBuddy(e){var t=this;return(0,g.Z)(function*(){const o=new((yield Promise.resolve().then(i.bind(i,80415))).default)({url:e}),{capabilities:r}=yield o.load(),n=r.query.supportsMaxRecordCountFactor,s=r.query.supportsPagination,l=r.query.supportsCentroid,y=t._config.maxRecordCountFactor,h=o.capabilities.query.maxRecordCount,f=n?h*y:h,u=new N.Z;if(u.outFields=(0,d.Pt)(t._config.outFields,["*"]),u.where=(0,d.Pt)((0,d.U2)(t._config.filter,"where"),"1=1"),u.returnGeometry=!0,u.returnExceededLimitFeatures=!0,u.outSpatialReference=j.Z.fromJSON(t._config.spatialReference),l&&(u.returnCentroid=!0),n&&(u.maxRecordCountFactor=y),s)return u.num=f,o.destroy(),t._queryPages(e,u);const I=yield(0,R.executeQuery)(e,u,t._config.sourceSpatialReference);return o.destroy(),I.data})()}_queryPages(e,t,o=[],r=0){var n=this;return(0,g.Z)(function*(){t.start=(0,d.pC)(t.num)?r*t.num:null;const{data:s}=yield(0,R.executeQuery)(e,t,n._config.sourceSpatialReference);return s.exceededTransferLimit&&ro.push(l)),n._queryPages(e,t,o,r+1)):(o.forEach(l=>s.features.push(l)),s)})()}_addRelatedFeatures(e){const t=new Map,o=e.features,r=this._serviceDefinition.relatedFeatures.joinField;for(const n of o)t.set(n.attributes[r],n);this._relatedFeatures=t}};b=(0,p._)([(0,w.j)("esri.layers.graphics.sources.connections.GeoEventConnection")],b);const U=b;function D(e,t,o,r,n,s,l,y){const h=0===e.path.indexOf("wss://")||0===e.path.indexOf("ws://"),f={source:e,sourceSpatialReference:t,spatialReference:o,geometryType:r,filter:n,maxReconnectionAttempts:s,maxReconnectionInterval:l,customParameters:y};return h?new v(f):new U(f)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3678.9ce459b07150af40.js b/apps/n/porrtal-io-app/public/angular/3678.9ce459b07150af40.js deleted file mode 100644 index 7c961422..00000000 --- a/apps/n/porrtal-io-app/public/angular/3678.9ce459b07150af40.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3678],{986:(ve,fe,at)=>{at.d(fe,{E:()=>Dt});const yt=new(at(6879).Z);function Dt(Bt){if(!yt.hasBidiChar(Bt))return[Bt,!1];let se;return se="rtl"===yt.checkContextual(Bt)?"IDNNN":"ICNNN",[yt.bidiTransform(Bt,se,"VLYSN"),!0]}},17002:(ve,fe,at)=>{at.d(fe,{BN:()=>Lt,mx:()=>zt});var At=at(15861),yt=at(59318);const $=new Map;function zt(et){return pt.apply(this,arguments)}function pt(){return(pt=(0,At.Z)(function*(et){const _t=dt(et);let Nt=$.get(_t);if(Nt)return Nt;const nt=new FontFace(et.family,`url('${yt.Z.fontsUrl}/woff2/${_t}.woff2') format('woff2')`),Ut=document.fonts;return Ut.has(nt)&&"loading"===nt.status?nt.loaded:(Nt=nt.load(),$.set(_t,Nt),Ut.add(nt),Nt)})).apply(this,arguments)}function Lt(et){if(!et)return"arial-unicode-ms";const _t=et.toLowerCase().split(" ").join("-");switch(_t){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return _t}}function dt(et){const _t=function Kt(et){if(!et.weight)return"";switch(et.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(et)+function Zt(et){if(!et.style)return"";switch(et.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(et);return Lt(et.family)+(_t.length>0?_t:"-regular")}},72283:(ve,fe,at)=>{at.d(fe,{GP:()=>Bt,QK:()=>nt,XV:()=>Nt,hh:()=>_t,ov:()=>et,qh:()=>Xt,v1:()=>jt,wp:()=>Zt,zY:()=>Wt,zv:()=>Ut});var At=at(58817),yt=at(91179),Dt=at(97373);function Bt(Q){const Pt=(0,At.d9)(Q);return function Kt(Q){Q&&((0,yt.oU)(Q)?Tt(Q.rings):(0,yt.l9)(Q)?Tt(Q.paths):(0,yt.aW)(Q)&&dt(Q.points),se(Q))}(Pt),Pt}function se(Q){Q&&((0,yt.wp)(Q)?Q.y=-Q.y:(0,yt.oU)(Q)?zt(Q.rings):(0,yt.l9)(Q)?zt(Q.paths):(0,yt.aW)(Q)&&$(Q.points))}function $(Q){if(Q){const Pt=Q.length;for(let bt=0;bt0;--Pt)Q[Pt][0]-=Q[Pt-1][0],Q[Pt][1]-=Q[Pt-1][1]}function Lt(Q){if(Q)for(const Pt of Q)pt(Pt)}function dt(Q){if(Q){const Pt=Q.length;for(let bt=1;bt{at.d(fe,{M:()=>yt}),at(58817);class yt{constructor(se){this._geometry=se}next(){const se=this._geometry;return this._geometry=null,se}}},95727:(ve,fe,at)=>{at.d(fe,{h:()=>Ae,W:()=>Ie});var At=at(58817),yt=at(91179),Dt=at(72283);let Bt=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new se(i,r,x)}}return S.instance=null,S})();class se{constructor(e,i,r){this._inputGeometries=e,this._angleTolerance=void 0!==i.angleTolerance?i.angleTolerance:120,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let e=this._inputGeometries.next();for(;e;){if((0,yt.oU)(e)){this._isClosed=!0;const i=(0,At.d9)(e);return this._processMultipath(i.rings),i}if((0,yt.l9)(e)){this._isClosed=!1;const i=(0,At.d9)(e);return this._processMultipath(i.paths),i}if((0,yt.YX)(e)){if(this._maxCosAngle)return e;this._isClosed=!0;const i=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];return this._processPath(i),{rings:[i]}}e=this._inputGeometries.next()}return null}_processMultipath(e){if(e)for(const i of e)this._processPath(i)}_processPath(e){if(e){let i,r,x,y,a,P,b=e.length,w=e[0];this._isClosed&&++b;for(let L=1;L1&>>0&&x>0&&(i*ot+r*lt)/gt/x<=this._maxCosAngle&&(0,Dt.qh)(w,1),1===L&&(y=ot,a=lt,P=gt),gt>0&&(w=A,i=ot,r=lt,x=gt)}this._isClosed&&x>0&&P>0&&(i*y+r*a)/P/x<=this._maxCosAngle&&(0,Dt.qh)(e[0],1)}}}var $=at(7547);const zt=.03;class pt{constructor(){this._path=[]}path(){return this._path}addPath(e,i){i||e.reverse(),Array.prototype.push.apply(this._path,e),i||e.reverse()}static mergePath(e,i){i&&Array.prototype.push.apply(e,i)}startPath(e){this._path.push(e)}lineTo(e){this._path.push(e)}close(){const e=this._path;e.length>1&&(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]||e.push([e[0][0],e[0][1]]))}}class Lt{constructor(e=0,i=!1){}normalize(e){const i=Math.sqrt(e[0]*e[0]+e[1]*e[1]);0!==i&&(e[0]/=i,e[1]/=i)}calculateLength(e,i){const r=i[0]-e[0],x=i[1]-e[1];return Math.sqrt(r*r+x*x)}calculateSegLength(e,i){return this.calculateLength(e[i],e[i+1])}calculatePathLength(e){let i=0;const r=e?e.length:0;for(let x=0;x0?[x/a,y/a]:[1,0]}getSegAngleCS(e,i,r){return this.getAngleCS(e[i],e[i+1],r)}cut(e,i,r,x){return[r<=0?e[i]:this.getSegCoord2D(e,i,r),x>=1?e[i+1]:this.getSegCoord2D(e,i,x)]}addSegment(e,i,r){r&&e.push(i[0]),e.push(i[1])}getSubCurve(e,i,r){const x=[];return this.appendSubCurve(x,e,i,r)?x:null}appendSubCurve(e,i,r,x){const y=i?i.length-1:0;let a=0,P=!0,b=0;for(;br){let A=1,ot=!1;a+w>=x&&(A=(x-a)/w,ot=!0);const lt=this.cut(i,b,(r-a)/w,A);if(lt&&this.addSegment(e,lt,P),ot)break;P=!1}}else{if(a+w>x){const L=this.cut(i,b,0,(x-a)/w);L&&this.addSegment(e,L,P);break}this.addSegment(e,[i[b],i[b+1]],P)}a+=w,++b}else++b}return!0}getCIMPointAlong(e,i){const r=e?e.length-1:0;let x=0,y=-1;for(;yi)return this.getCoord2D(e[y],e[y+1],(i-x)/a);x+=a}}return null}isEmpty(e,i){if(!e||e.length<=1)return!0;const r=e?e.length-1:0;let x=-1;for(;x=0==i<=0){if(Yt<1){const ae=[gt[0]-xt[0],gt[1]-xt[1]];this.normalize(ae);const ce=Math.sqrt((1+Yt)/2);if(ce>1/x){const qt=-Math.abs(i)/ce;L.push([A[0]-ae[0]*qt,A[1]-ae[1]*qt])}}}else switch(r){case $.id.Mitered:{const ae=Math.sqrt((1+Yt)/2);if(ae>0&&1/ae0){const ce=1/ae;let qt=ce;for(let Oe=1;Oe{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new et(i,r,x)}}return S.instance=null,S})();class et extends Dt.zY{constructor(e,i,r){super(e,!1,!0),this._curveHelper=new Lt,this._width=(void 0!==i.width?i.width:5)*r,this._arrowType=void 0!==i.geometricEffectArrowType?i.geometricEffectArrowType:void 0!==i.arrowType?i.arrowType:Kt,this._offsetFlattenError=zt*r}processPath(e){switch(this._arrowType){case $.TF.OpenEnded:default:return this._constructSimpleArrow(e,!0);case $.TF.Block:return this._constructSimpleArrow(e,!1);case $.TF.Crossed:return this._constructCrossedArrow(e)}}_constructSimpleArrow(e,i){const r=this._curveHelper.calculatePathLength(e);let x=this._width;r<2*x&&(x=r/2);const y=this._curveHelper.getSubCurve(e,0,r-x);if(!y)return null;const a=x/2;if(this._curveHelper.isEmpty(y,!1))return null;const P=this._constructOffset(y,-a);if(!P)return null;const b=this._constructOffset(y,a);if(!b)return null;const w=this._constructArrowBasePoint(P,-a/2);if(!w)return null;const L=this._constructArrowBasePoint(b,a/2);if(!L)return null;const A=e[e.length-1];i||(this._makeControlPoint(b,!0),this._makeControlPoint(P,!0));const ot=new pt;return ot.addPath(b,!0),ot.lineTo(L),this._makeControlPoint(ot.path()),ot.lineTo(A),this._makeControlPoint(ot.path()),ot.lineTo(w),this._makeControlPoint(ot.path()),ot.addPath(P,!1),i?{paths:[ot.path()]}:(ot.close(),{rings:[ot.path()]})}_constructCrossedArrow(e){const i=this._curveHelper.calculatePathLength(e);let r=this._width;i{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new Nt(i,r,x,y)}}return S.instance=null,S})();class Nt{constructor(e,i,r,x){this._inputGeometries=e,this._curveHelper=new Lt,this._size=(void 0!==i.size?i.size:1)*r,this._offsetFlattenError=zt*r}next(){let e=this._inputGeometries.next();for(;e;){if((0,yt.YX)(e))if(this._size>0){const r=this._curveHelper.offset([[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]],this._size,$.id.Rounded,4,this._offsetFlattenError);if(r)return{rings:[r]}}else{if(!(this._size<0))return e;if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return{xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size}}if((0,yt.oU)(e)){if(0===this._size)return e;const i=[];for(const r of e.rings){const x=this._curveHelper.offset(r,this._size,$.id.Rounded,4,this._offsetFlattenError);x&&i.push(x)}if(i.length)return{rings:i}}if((0,yt.l9)(e)&&this._size>0){const i=[];for(const r of e.paths)if(r&&r.length>1){const x=this._curveHelper.offset(r,this._size,$.id.Rounded,4,this._offsetFlattenError),y=this._curveHelper.offset(r,-this._size,$.id.Rounded,4,this._offsetFlattenError);if(x&&y){for(let a=y.length-1;a>=0;a--)x.push(y[a]);x.push([x[0][0],x[0][1]]),i.push(x)}}if(i.length)return{rings:i}}(0,yt.wp)(e),e=this._inputGeometries.next()}return null}}let nt=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new Ut(i,r,x)}}return S.instance=null,S})();class Ut{constructor(e,i,r){this._defaultPointSize=20,this._inputGeometries=e,this._geomUnitsPerPoint=r,this._rule=i.rule??$.Em.FullGeometry,this._defaultSize=this._defaultPointSize*r}next(){let e;for(;e=this._inputGeometries.next();){let i;if((0,yt.wp)(e)?i=this._processGeom([[[e.x,e.y]]]):(0,yt.aW)(e)?i=this._processGeom([e.points]):(0,yt.l9)(e)?i=this._processGeom(e.paths):(0,yt.oU)(e)&&(i=this._processGeom(e.rings)),i&&i.length)return{paths:i}}return null}_clone(e){return[e[0],e[1]]}_mid(e,i){return[(e[0]+i[0])/2,(e[1]+i[1])/2]}_mix(e,i,r,x){return[e[0]*i+r[0]*x,e[1]*i+r[1]*x]}_add(e,i){return[e[0]+i[0],e[1]+i[1]]}_add2(e,i,r){return[e[0]+i,e[1]+r]}_sub(e,i){return[e[0]-i[0],e[1]-i[1]]}_dist(e,i){return Math.sqrt((e[0]-i[0])*(e[0]-i[0])+(e[1]-i[1])*(e[1]-i[1]))}_norm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}_normalize(e,i=1){const r=i/this._norm(e);e[0]*=r,e[1]*=r}_leftPerpendicular(e){const r=e[0];e[0]=-e[1],e[1]=r}_leftPerp(e){return[-e[1],e[0]]}_rightPerpendicular(e){const r=-e[0];e[0]=e[1],e[1]=r}_rightPerp(e){return[e[1],-e[0]]}_dotProduct(e,i){return e[0]*i[0]+e[1]*i[1]}_crossProduct(e,i){return e[0]*i[1]-e[1]*i[0]}_rotateDirect(e,i,r){const y=e[0]*r+e[1]*i;e[0]=e[0]*i-e[1]*r,e[1]=y}_makeCtrlPt(e){const i=[e[0],e[1]];return(0,Dt.qh)(i,1),i}_addAngledTicks(e,i,r,x){const y=this._sub(r,i);this._normalize(y);const a=this._crossProduct(y,this._sub(x,i));let P;P=a>0?this._rightPerp(y):this._leftPerp(y);const b=Math.abs(a)/2,w=[];w.push([i[0]+(P[0]-y[0])*b,i[1]+(P[1]-y[1])*b]),w.push(i),w.push(r),w.push([r[0]+(P[0]+y[0])*b,r[1]+(P[1]+y[1])*b]),e.push(w)}_addBezier2(e,i,r,x,y){if(0==y--)return void e.push(x);const a=this._mid(i,r),P=this._mid(r,x),b=this._mid(a,P);this._addBezier2(e,i,a,b,y),this._addBezier2(e,b,P,x,y)}_addBezier3(e,i,r,x,y,a){if(0==a--)return void e.push(y);const P=this._mid(i,r),b=this._mid(r,x),w=this._mid(x,y),L=this._mid(P,b),A=this._mid(b,w),ot=this._mid(L,A);this._addBezier3(e,i,P,L,ot,a),this._addBezier3(e,ot,A,w,y,a)}_add90DegArc(e,i,r,x,y){const a=y??this._crossProduct(this._sub(r,i),this._sub(x,i))>0,P=this._mid(i,r),b=this._sub(P,i);a?this._leftPerpendicular(b):this._rightPerpendicular(b),P[0]+=b[0],P[1]+=b[1],this._addBezier3(e,i,this._mix(i,.33333,P,.66667),this._mix(r,.33333,P,.66667),r,4)}_addArrow(e,i,r){const x=i[0],y=i[1],a=i[i.length-1],P=this._sub(x,y);this._normalize(P);const b=this._crossProduct(P,this._sub(a,y)),w=.5*b,L=this._leftPerp(P),A=[a[0]-L[0]*b,a[1]-L[1]*b],ot=i.length-1,lt=[];lt.push(r?[-L[0],-L[1]]:L);let gt=[-P[0],-P[1]];for(let xt=1;xt0;xt--)e.push([i[xt][0]+lt[xt][0]*w,i[xt][1]+lt[xt][1]*w]);e.push([A[0]+lt[0][0]*w,A[1]+lt[0][1]*w]),e.push([A[0]+lt[0][0]*b,A[1]+lt[0][1]*b]),e.push(x),e.push([A[0]-lt[0][0]*b,A[1]-lt[0][1]*b]),e.push([A[0]-lt[0][0]*w,A[1]-lt[0][1]*w]);for(let xt=1;xt=2?e[1]:this._add2(e[0],i*this._defaultSize,r*this._defaultSize)}_cp3(e,i,r,x){if(e.length>=3)return e[2];const y=this._mix(e[0],1-r,i,r),a=this._sub(i,e[0]);return this._normalize(a),this._rightPerpendicular(a),[y[0]+a[0]*x*this._defaultSize,y[1]+a[1]*x*this._defaultSize]}_arrowPath(e){if(e.length>2)return e;const i=e[0],r=this._cp2(e,-4,0),x=this._sub(i,r);this._normalize(x);const y=this._rightPerp(x);return[i,r,[i[0]+(y[0]-x[0])*this._defaultSize,i[1]+(y[1]-x[1])*this._defaultSize]]}_arrowLastSeg(e){const i=e[0],r=this._cp2(e,-4,0);let x;if(e.length>=3)x=e[e.length-1];else{const y=this._sub(i,r);this._normalize(y);const a=this._rightPerp(y);x=[i[0]+(a[0]-y[0])*this._defaultSize,i[1]+(a[1]-y[1])*this._defaultSize]}return[r,x]}_processGeom(e){if(!e)return null;const i=[];for(const r of e){if(!r||0===r.length)continue;const x=r.length;let y=r[0];switch(this._rule){case $.Em.PerpendicularFromFirstSegment:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,.5,4),b=[];b.push(P),b.push(this._mid(y,a)),i.push(b);break}case $.Em.ReversedFirstSegment:{const a=this._cp2(r,0,-1);i.push([a,y]);break}case $.Em.PerpendicularToSecondSegment:{const a=this._cp2(r,-4,1),P=this._cp3(r,a,.882353,-1.94),b=[];b.push(this._mid(a,P)),b.push(y),i.push(b);break}case $.Em.SecondSegmentWithTicks:{const a=this._cp2(r,-4,1),P=this._cp3(r,a,.882353,-1.94),b=this._sub(P,a);let w;w=this._crossProduct(b,this._sub(y,a))>0?this._rightPerp(w):this._leftPerp(b);const L=[];L.push([a[0]+(w[0]-b[0])/3,a[1]+(w[1]-b[1])/3]),L.push(a),L.push(P),L.push([P[0]+(w[0]+b[0])/3,P[1]+(w[1]+b[1])/3]),i.push(L);break}case $.Em.DoublePerpendicular:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,.5,3),b=this._mid(y,a),w=this._sub(b,P);this._normalize(w);const L=this._crossProduct(w,this._sub(y,P));this._leftPerpendicular(w);const A=[];A.push(y),A.push([P[0]+w[0]*L,P[1]+w[1]*L]),i.push(A);const ot=[];ot.push([P[0]-w[0]*L,P[1]-w[1]*L]),ot.push(a),i.push(ot);break}case $.Em.OppositeToFirstSegment:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,.5,3),b=this._mid(y,a),w=this._sub(b,P);this._normalize(w);const L=this._crossProduct(w,this._sub(y,P));this._leftPerpendicular(w);const A=[];A.push([P[0]+w[0]*L,P[1]+w[1]*L]),A.push([P[0]-w[0]*L,P[1]-w[1]*L]),i.push(A);break}case $.Em.TriplePerpendicular:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,.5,4),b=this._mid(y,a),w=this._sub(b,P);this._normalize(w);const L=this._crossProduct(w,this._sub(y,P));this._leftPerpendicular(w);const A=[];A.push([P[0]+w[0]*L*.8,P[1]+w[1]*L*.8]),A.push([b[0]+.8*(y[0]-b[0]),b[1]+.8*(y[1]-b[1])]),i.push(A),i.push([P,b]);const ot=[];ot.push([P[0]-w[0]*L*.8,P[1]-w[1]*L*.8]),ot.push([b[0]+.8*(a[0]-b[0]),b[1]+.8*(a[1]-b[1])]),i.push(ot);break}case $.Em.HalfCircleFirstSegment:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,.5,4),b=this._mid(y,a);let w=this._sub(a,y);const L=Math.cos(Math.PI/18),A=Math.sin(Math.PI/18),ot=Math.sqrt((1+L)/2),lt=Math.sqrt((1-L)/2),gt=[];let xt;this._crossProduct(w,this._sub(P,y))>0?(gt.push(y),w=this._sub(y,b),xt=a):(gt.push(a),w=this._sub(a,b),xt=y),this._rotateDirect(w,ot,lt),w[0]/=ot,w[1]/=ot;for(let Et=1;Et<=18;Et++)gt.push(this._add(b,w)),this._rotateDirect(w,L,A);gt.push(xt),i.push(gt);break}case $.Em.HalfCircleSecondSegment:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,1,-1);let b=this._sub(y,a);this._normalize(b);const w=this._crossProduct(b,this._sub(P,a))/2;this._leftPerpendicular(b);const L=[a[0]+b[0]*w,a[1]+b[1]*w];b=this._sub(a,L);const A=Math.cos(Math.PI/18);let ot=Math.sin(Math.PI/18);w>0&&(ot=-ot);const lt=[a];for(let gt=1;gt<=18;gt++)this._rotateDirect(b,A,ot),lt.push(this._add(L,b));i.push(lt);break}case $.Em.HalfCircleExtended:{const a=this._cp2(r,0,-2),P=this._cp3(r,a,1,-1);let b;if(x>=4)b=r[3];else{const gt=this._sub(y,a);b=this._add(P,gt)}const w=this._dist(a,P)/2/.75,L=this._sub(a,y);this._normalize(L,w);const A=this._sub(P,b);this._normalize(A,w),i.push([b,P]);const lt=[this._clone(P)];this._addBezier3(lt,P,this._add(P,A),this._add(a,L),a,4),lt.push(y),i.push(lt);break}case $.Em.OpenCircle:{const a=this._cp2(r,-2,0),P=this._sub(a,y),b=Math.cos(Math.PI/18),w=-Math.sin(Math.PI/18),L=[a];for(let A=1;A<=33;A++)this._rotateDirect(P,b,w),L.push(this._add(y,P));i.push(L);break}case $.Em.CoverageEdgesWithTicks:{const a=this._cp2(r,0,-1);let P,b;if(x>=3)P=r[2];else{const ot=this._sub(a,y),lt=this._leftPerp(ot);P=[y[0]+lt[0]-.25*ot[0],y[1]+lt[1]-.25*ot[1]]}if(x>=4)b=r[3];else{const ot=this._mid(y,a),lt=this._sub(y,a);this._normalize(lt),this._leftPerpendicular(lt);const gt=this._crossProduct(lt,this._sub(P,ot));this._rightPerpendicular(lt),b=[P[0]+lt[0]*gt*2,P[1]+lt[1]*gt*2]}const w=this._sub(a,y);let L,A;L=this._crossProduct(w,this._sub(P,y))>0?this._rightPerp(w):this._leftPerp(w),A=[],A.push(P),A.push(y),A.push([y[0]+(L[0]-w[0])/3,y[1]+(L[1]-w[1])/3]),i.push(A),L=this._crossProduct(w,this._sub(b,a))>0?this._rightPerp(L):this._leftPerp(w),A=[],A.push([a[0]+(L[0]+w[0])/3,a[1]+(L[1]+w[1])/3]),A.push(a),A.push(b),i.push(A);break}case $.Em.GapExtentWithDoubleTicks:{const a=this._cp2(r,0,2),P=this._cp3(r,a,0,1);let b;if(x>=4)b=r[3];else{const w=this._sub(a,y);b=this._add(P,w)}this._addAngledTicks(i,y,a,this._mid(P,b)),this._addAngledTicks(i,P,b,this._mid(y,a));break}case $.Em.GapExtentMidline:{const a=this._cp2(r,2,0),P=this._cp3(r,a,0,1);let b;if(x>=4)b=r[3];else{const L=this._sub(a,y);b=this._add(P,L)}const w=[];w.push(this._mid(y,P)),w.push(this._mid(a,b)),i.push(w);break}case $.Em.Chevron:{const a=this._cp2(r,-1,-1);let P;if(x>=3)P=r[2];else{const b=this._sub(a,y);this._leftPerpendicular(b),P=this._add(y,b)}i.push([a,this._makeCtrlPt(y),P]);break}case $.Em.PerpendicularWithArc:{const a=this._cp2(r,0,-2),P=this._cp3(r,a,.5,-1);let b=this._sub(a,y);const w=this._norm(b);b[0]/=w,b[1]/=w;const L=this._crossProduct(b,this._sub(P,y));let A=this._dotProduct(b,this._sub(P,y));A<.05*w?A=.05*w:A>.95*w&&(A=.95*w);const ot=[y[0]+b[0]*A,y[1]+b[1]*A];this._leftPerpendicular(b);let lt=[];lt.push([ot[0]-b[0]*L,ot[1]-b[1]*L]),lt.push([ot[0]+b[0]*L,ot[1]+b[1]*L]),i.push(lt);const gt=[a[0]+b[0]*L,a[1]+b[1]*L];b=this._sub(a,gt);const xt=Math.cos(Math.PI/18);let Et=Math.sin(Math.PI/18);L<0&&(Et=-Et),lt=[y,a];for(let Yt=1;Yt<=9;Yt++)this._rotateDirect(b,xt,Et),lt.push(this._add(gt,b));i.push(lt);break}case $.Em.ClosedHalfCircle:{const a=this._cp2(r,2,0),P=this._mid(y,a),b=this._sub(a,P),w=Math.cos(Math.PI/18),L=Math.sin(Math.PI/18),A=[y,a];for(let ot=1;ot<=18;ot++)this._rotateDirect(b,w,L),A.push(this._add(P,b));i.push(A);break}case $.Em.TripleParallelExtended:{const a=this._cp2(r,0,-2),P=this._cp3(r,a,1,-2),b=this._mid(y,a),w=this._sub(P,a);this._normalize(w);const L=Math.abs(this._crossProduct(w,this._sub(b,a)))/2,A=this._dist(a,P),ot=[a,y];ot.push([y[0]+w[0]*A*.5,y[1]+w[1]*A*.5]),i.push(ot);const lt=[];lt.push([b[0]-w[0]*L,b[1]-w[1]*L]),lt.push([b[0]+w[0]*A*.375,b[1]+w[1]*A*.375]),(0,Dt.qh)(lt[lt.length-1],1),lt.push([b[0]+w[0]*A*.75,b[1]+w[1]*A*.75]),i.push(lt),i.push([a,P]);break}case $.Em.ParallelWithTicks:{const a=this._cp2(r,3,0),P=this._cp3(r,a,.5,-1),b=this._sub(P,a);this._normalize(b);const w=this._crossProduct(b,this._sub(P,y));this._leftPerpendicular(b),this._addAngledTicks(i,y,a,P),this._addAngledTicks(i,this._mix(y,1,b,w),this._mix(a,1,b,w),this._mid(y,a));break}case $.Em.Parallel:{const a=this._cp2(r,3,0),P=this._cp3(r,a,.5,-1),b=this._sub(a,y);this._normalize(b);const w=this._leftPerp(b),L=this._crossProduct(b,this._sub(P,y));let A=[y,a];i.push(A),A=[],A.push([y[0]+w[0]*L,y[1]+w[1]*L]),A.push([a[0]+w[0]*L,a[1]+w[1]*L]),i.push(A);break}case $.Em.PerpendicularToFirstSegment:{const a=this._cp2(r,3,0),P=this._cp3(r,a,.5,-1),b=this._mid(y,a),w=this._sub(a,y);this._normalize(w);const L=this._crossProduct(w,this._sub(P,y));this._leftPerpendicular(w);const A=[];A.push([b[0]-w[0]*L*.25,b[1]-w[1]*L*.25]),A.push([b[0]+w[0]*L*1.25,b[1]+w[1]*L*1.25]),i.push(A);break}case $.Em.ParallelOffset:{const a=this._cp2(r,3,0),P=this._cp3(r,a,.5,-1),b=this._sub(a,y);this._normalize(b);const w=this._crossProduct(b,this._sub(P,y));this._leftPerpendicular(b);const L=[];L.push([y[0]-b[0]*w,y[1]-b[1]*w]),L.push([a[0]-b[0]*w,a[1]-b[1]*w]),i.push(L);const A=[];A.push([y[0]+b[0]*w,y[1]+b[1]*w]),A.push([a[0]+b[0]*w,a[1]+b[1]*w]),i.push(A);break}case $.Em.OffsetOpposite:{const a=this._cp2(r,3,0),P=this._cp3(r,a,.5,-1),b=this._sub(a,y);this._normalize(b);const w=this._crossProduct(b,this._sub(P,y));this._leftPerpendicular(b);const L=[];L.push([y[0]-b[0]*w,y[1]-b[1]*w]),L.push([a[0]-b[0]*w,a[1]-b[1]*w]),i.push(L);break}case $.Em.OffsetSame:{const a=this._cp2(r,3,0),P=this._cp3(r,a,.5,-1),b=this._sub(a,y);this._normalize(b);const w=this._crossProduct(b,this._sub(P,y));this._leftPerpendicular(b);const L=[];L.push([y[0]+b[0]*w,y[1]+b[1]*w]),L.push([a[0]+b[0]*w,a[1]+b[1]*w]),i.push(L);break}case $.Em.CircleWithArc:{let a=this._cp2(r,3,0);const P=this._cp3(r,a,.5,-1);let b,w;if(x>=4)b=r[3],w=this._crossProduct(this._sub(b,a),this._sub(P,a))>0;else{b=a,w=this._crossProduct(this._sub(b,y),this._sub(P,y))>0;const gt=24*this._geomUnitsPerPoint,xt=this._sub(b,y);this._normalize(xt,gt);const Et=Math.sqrt(2)/2;this._rotateDirect(xt,Et,w?Et:-Et),a=this._add(y,xt)}const L=this._sub(a,y),A=Math.cos(Math.PI/18),ot=Math.sin(Math.PI/18),lt=[a];for(let gt=1;gt<=36;gt++)this._rotateDirect(L,A,ot),lt.push(this._add(y,L));this._add90DegArc(lt,a,b,P,w),(0,Dt.qh)(lt[lt.length-8],1),i.push(lt);break}case $.Em.DoubleJog:{let a,P,b=this._cp2(r,-3,1);if(a=x>=3?r[2]:this._add(y,this._sub(y,b)),x>=4)P=r[3];else{const Yt=y;y=b,P=a;const ae=this._dist(y,Yt),ce=this._dist(P,Yt);let qt=30*this._geomUnitsPerPoint;.5*ae0?this._rotateDirect(xt,gt,-gt):this._rotateDirect(xt,gt,gt);let Et=[];Et.push(b),Et.push(this._add(w,xt)),Et.push(this._sub(w,xt)),Et.push(y),i.push(Et),xt=this._sub(P,a),this._normalize(xt,lt),this._crossProduct(xt,this._sub(y,a))<0?this._rotateDirect(xt,gt,gt):this._rotateDirect(xt,gt,-gt),Et=[],Et.push(a),Et.push(this._add(L,xt)),Et.push(this._sub(L,xt)),Et.push(P),i.push(Et);break}case $.Em.PerpendicularOffset:{const a=this._cp2(r,-4,1),P=this._cp3(r,a,.882353,-1.94),b=this._sub(P,a);this._crossProduct(b,this._sub(y,a))>0?this._rightPerpendicular(b):this._leftPerpendicular(b);const w=[b[0]/8,b[1]/8],L=this._sub(this._mid(a,P),w);i.push([L,y]);break}case $.Em.LineExcludingLastSegment:{const a=this._arrowPath(r),P=[];let b=a.length-2;for(;b--;)P.push(a[b]);i.push(P);break}case $.Em.MultivertexArrow:{const a=this._arrowPath(r),P=[];this._addArrow(P,a,!1),i.push(P);break}case $.Em.CrossedArrow:{const a=this._arrowPath(r),P=[];this._addArrow(P,a,!0),i.push(P);break}case $.Em.ChevronArrow:{const[a,P]=this._arrowLastSeg(r),b=10*this._geomUnitsPerPoint,w=this._sub(y,a);this._normalize(w);const L=this._crossProduct(w,this._sub(P,a)),A=this._leftPerp(w),ot=[P[0]-A[0]*L*2,P[1]-A[1]*L*2],lt=[];lt.push([P[0]+w[0]*b,P[1]+w[1]*b]),lt.push(y),lt.push([ot[0]+w[0]*b,ot[1]+w[1]*b]),i.push(lt);break}case $.Em.ChevronArrowOffset:{const[a,P]=this._arrowLastSeg(r),b=this._sub(y,a);this._normalize(b);const w=this._crossProduct(b,this._sub(P,a));this._leftPerpendicular(b);const L=[P[0]-b[0]*w,P[1]-b[1]*w],A=[];A.push([L[0]+b[0]*w*.5,L[1]+b[1]*w*.5]),A.push(this._mid(L,y)),A.push([L[0]-b[0]*w*.5,L[1]-b[1]*w*.5]),i.push(A);break}case $.Em.PartialFirstSegment:{const[a,P]=this._arrowLastSeg(r),b=this._sub(y,a);this._normalize(b);const w=this._crossProduct(b,this._sub(P,a));this._leftPerpendicular(b),i.push([a,[P[0]-b[0]*w,P[1]-b[1]*w]]);break}case $.Em.Arch:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,.5,1),b=this._sub(y,a),w=this._mix(P,1,b,.55),L=this._mix(P,1,b,-.55),A=[y];this._addBezier2(A,y,w,P,4),this._addBezier2(A,P,L,a,4),i.push(A);break}case $.Em.CurvedParallelTicks:{const a=this._cp2(r,-4,1),P=this._cp3(r,a,.882353,-1.94),b=this._sub(P,a);this._crossProduct(b,this._sub(y,a))>0?this._rightPerpendicular(b):this._leftPerpendicular(b);const w=[b[0]/8,b[1]/8],L=this._sub(this._mid(a,P),w),A=this._sub(this._mix(a,.75,P,.25),w),ot=this._sub(this._mix(a,.25,P,.75),w),lt=[a];this._addBezier2(lt,a,A,L,3),this._addBezier2(lt,L,ot,P,3),i.push(lt);for(let gt=0;gt<8;gt++){const xt=lt[2*gt+1],Et=[this._clone(xt)];Et.push(this._add(xt,[b[0]/4,b[1]/4])),i.push(Et)}break}case $.Em.Arc90Degrees:{const a=this._cp2(r,0,-1),P=this._cp3(r,a,.5,1),b=[a];this._add90DegArc(b,a,y,P),i.push(b);break}default:i.push(r)}}return i}}let Xt=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new jt(i,r,x)}}return S.instance=null,S})();class jt extends Dt.zY{constructor(e,i,r){super(e,!0,!0),this._curveHelper=new Lt,this._beginCut=(void 0!==i.beginCut?i.beginCut:1)*r,this._endCut=(void 0!==i.endCut?i.endCut:1)*r,this._middleCut=(void 0!==i.middleCut?i.middleCut:0)*r,this._invert=void 0!==i.invert&&i.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(e){const i=this._beginCut,r=this._endCut,x=this._middleCut,y=this._curveHelper.calculatePathLength(e),a=[];if(this._invert){if(0!==i||0!==r||0!==x)if(i+r+x>=y)a.push(e);else{let P=this._curveHelper.getSubCurve(e,0,i);P&&a.push(P),P=this._curveHelper.getSubCurve(e,.5*(y-x),.5*(y+x)),P&&a.push(P),P=this._curveHelper.getSubCurve(e,y-r,r),P&&a.push(P)}}else if(0===i&&0===r&&0===x)a.push(e);else if(!(i+r+x>=y))if(0===x){const P=this._curveHelper.getSubCurve(e,i,y-r);P&&a.push(P)}else{let P=this._curveHelper.getSubCurve(e,i,.5*(y-x));P&&a.push(P),P=this._curveHelper.getSubCurve(e,.5*(y+x),y-r),P&&a.push(P)}return 0===a.length?null:{paths:a}}}class te{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(e,i,r=!0){if(this._setEmpty(),!e||0===e.length)return!1;for(let x=0;x0&&(y/=this._currentPosition.segmentLength),this._currentPosition.copyTo(i);i.abscissa+e*this._partLengthRatio>i.segmentLength+this._tolerance;){if(r){if(0===r.length)if(0===y){const P=this._path[i.segment];r.push([P[0],P[1]])}else r.push(this.getSegCoord2D(this._path,i.segment,y));const a=this._path[i.segment+1];r.push([a[0],a[1]])}if(y=0,e-=(i.segmentLength-i.abscissa)/this._partLengthRatio,this._partSegCount)i.segment=this._nextSegment(),i.segmentLength=this.calculateSegLength(this._path,i.segment),i.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return x!==Pt.FAIL&&(i.segmentLength=this.calculateSegLength(this._path,i.segment),i.isPartEnd=!0,x===Pt.END?(i.abscissa=i.segmentLength,i.isPathEnd=!0):i.abscissa=i.segmentLength+e,!0);this._currentPosition.copyTo(i)}}if(i.abscissa+=e*this._partLengthRatio,r){if(0===r.length)if(0===y){const P=this._path[i.segment];r.push([P[0],P[1]])}else r.push(this.getSegCoord2D(this._path,i.segment,y));const a=i.abscissa/i.segmentLength;if(1===a){const P=this._path[i.segment+1];r.push([P[0],P[1]])}else r.push(this.getSegCoord2D(this._path,i.segment,a))}return this._partSegCount||Math.abs(i.abscissa-i.segmentLength)=this._path.length&&(r=0),this._ctrlPtEnd=1===(0,Dt.zv)(this._path[r]),this._patternLength>0){const x=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,y=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap;let a=Math.round((this._partLength-(x+y))/this._patternLength);a<=0&&(a=x+y>0?0:1),this._partLengthRatio=this._partLength/(x+y+a*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new ht(i,r,x)}}return S.instance=null,S})();class ht extends Dt.zY{constructor(e,i,r){super(e,!0,!0),this._firstCurve=null,this._walker=new rt,this._walker.updateTolerance(r),this._endings=i.lineDashEnding,this._customDashPos=-(i.offsetAlongLine??0)*r,this._offsetAtEnd=(i.customEndingOffset??0)*r,this._pattern=new te,this._pattern.init(i.dashTemplate,!0),this._pattern.scale(r)}processPath(e){if(0===this._pattern.length())return this.iteratePath=!1,{paths:[e]};if(!this.iteratePath){let x=!0;switch(this._endings){case $.sj.HalfPattern:case $.sj.HalfGap:default:this._pattern.extPtGap=0;break;case $.sj.FullPattern:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case $.sj.FullGap:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case $.sj.NoConstraint:this.isClosed||(x=!1);break;case $.sj.Custom:this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}const y=this._walker.calculatePathLength(e);if(this._pattern.isEmpty()||y<.1*this._pattern.length())return{paths:[e]};if(!this._walker.init(e,this._pattern,x))return{paths:[e]}}let i;if(this.iteratePath)i=this._pattern.nextValue();else{let x;switch(this._endings){case $.sj.HalfPattern:default:x=.5*this._pattern.firstValue();break;case $.sj.HalfGap:x=.5*-this._pattern.lastValue();break;case $.sj.FullGap:x=-this._pattern.lastValue();break;case $.sj.FullPattern:x=0;break;case $.sj.NoConstraint:case $.sj.Custom:x=-this._customDashPos}let y=x/this._pattern.length();y-=Math.floor(y),x=y*this._pattern.length(),this._pattern.reset(),i=this._pattern.nextValue();let a=!1;for(;x>=i;)x-=i,i=this._pattern.nextValue(),a=!a;i-=x,a?(this._walker.nextPosition(i),i=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(i),i=this._pattern.nextValue(),this._walker.nextPosition(i),i=this._pattern.nextValue())}let r=this._walker.nextCurve(i);return r?this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(this._firstCurve.splice(0,1),pt.mergePath(r,this._firstCurve),this._firstCurve=null)):(i=this._pattern.nextValue(),!this._walker.nextPosition(i)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(r=this._firstCurve,this._firstCurve=null)):this.iteratePath=!0):(this.iteratePath=!1,r=this._firstCurve,this._firstCurve=null),{paths:[r]}}}let St=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new kt(i,r,x)}}return S.instance=null,S})();class kt{constructor(e,i,r){switch(this._inputGeometries=e,this._curveHelper=new Lt,this._width=(void 0!==i.width?i.width:2)*r,i.method){case $.$y.Mitered:default:this._method=$.id.Mitered;break;case $.$y.Bevelled:this._method=$.id.Bevelled;break;case $.$y.Rounded:case $.$y.TrueBuffer:this._method=$.id.Rounded;break;case $.$y.Square:this._method=$.id.Square}this._option=i.option,this._offsetFlattenError=zt*r}next(){let e=this._inputGeometries.next();for(;e;){if((0,yt.YX)(e)&&this._width>0){if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0)return e;const i=[];return i.push([[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]),i.push([[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]]),{rings:i}}if((0,yt.oU)(e)&&this._width>0){const i=[];for(const r of e.rings){const x=this._curveHelper.calculatePathLength(r),y=this._curveHelper.offset(r,this._width,this._method,4,this._offsetFlattenError);y&&(x<0&&y.reverse(),i.push(y))}if(i.length)return{rings:i}}e=this._inputGeometries.next()}return null}}let Ht=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new Vt(i,r,x)}}return S.instance=null,S})();class Vt extends Dt.zY{constructor(e,i,r){super(e,!1,!0),this._curveHelper=new Lt,this._length=(void 0!==i.length?i.length:20)*r,this._angle=void 0!==i.angle?i.angle:225,this._position=void 0!==i.position?i.position:50,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(e){if(this._curveHelper.isEmpty(e,!1))return null;const i=e[0],r=e[e.length-1];this._curveHelper.normalize([r[0]-i[0],r[1]-i[1]]);const y=[i[0]+(r[0]-i[0])*this._position/100,i[1]+(r[1]-i[1])*this._position/100],a=Math.cos((90-this._angle)/180*Math.PI);let P=Math.sin((90-this._angle)/180*Math.PI);return this._mirror&&(P=-P),this._mirror=!this._mirror,{paths:[[i,[y[0]-this._length/2*a,y[1]-this._length/2*P],[y[0]+this._length/2*a,y[1]+this._length/2*P],r]]}}}let Gt=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new wt(i,r,x)}}return S.instance=null,S})();class wt{constructor(e,i,r){this._inputGeometries=e,this._offsetX=void 0!==i.offsetX?i.offsetX*r:0,this._offsetY=void 0!==i.offsetY?-i.offsetY*r:0}next(){let e=this._inputGeometries.next();for(;e;){if((0,yt.YX)(e))return{xmin:e.xmin+this._offsetX,xmax:e.xmax+this._offsetX,ymin:e.ymin+this._offsetY,ymax:e.ymax+this._offsetY};if((0,yt.oU)(e)){const i=(0,At.d9)(e);return this._moveMultipath(i.rings,this._offsetX,this._offsetY),i}if((0,yt.l9)(e)){const i=(0,At.d9)(e);return this._moveMultipath(i.paths,this._offsetX,this._offsetY),i}if((0,yt.aW)(e)){const i=(0,At.d9)(e);return this._movePath(i.points,this._offsetX,this._offsetY),i}if((0,yt.wp)(e))return{x:e.x+this._offsetX,y:e.y+this._offsetY};e=this._inputGeometries.next()}return null}_moveMultipath(e,i,r){if(e)for(const x of e)this._movePath(x,i,r)}_movePath(e,i,r){if(e)for(const x of e)x[0]+=i,x[1]+=r}}let re=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new me(i,r,x)}}return S.instance=null,S})();class me{constructor(e,i,r){this._inputGeometries=e,this._curveHelper=new Lt,this._offset=(i.offset??1)*r,this._method=i.method,this._option=i.option,this._offsetFlattenError=zt*r}next(){let e=this._inputGeometries.next();for(;e;){if(0===this._offset)return e;if((0,yt.YX)(e)){if(this._method===$.id.Rounded&&this._offset>0){const r=this._curveHelper.offset([[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]],-this._offset,this._method,4,this._offsetFlattenError);return r?{rings:[r]}:null}if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return{xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset}}if((0,yt.oU)(e)){const i=[];for(const r of e.rings){const x=this._curveHelper.offset(r,-this._offset,this._method,4,this._offsetFlattenError);x&&i.push(x)}if(i.length)return{rings:i}}if((0,yt.l9)(e)){const i=[];for(const r of e.paths){const x=this._curveHelper.offset(r,-this._offset,this._method,4,this._offsetFlattenError);x&&i.push(x)}if(i.length)return{paths:i}}e=this._inputGeometries.next()}return null}}let oe=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new pe(i,r,x)}}return S.instance=null,S})();class pe{constructor(e,i,r){this._inputGeometries=e,this._reverse=void 0===i.reverse||i.reverse}next(){let e=this._inputGeometries.next();for(;e;){if(!this._reverse)return e;if((0,yt.l9)(e)){const i=(0,At.d9)(e);return(0,Dt.ov)(i.paths),i}e=this._inputGeometries.next()}return null}}var ie=at(65401),ne=at(32442);let It=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new h(i,r,x)}}return S.instance=null,S})();class h{constructor(e,i,r){this._inputGeometries=e,this._rotateAngle=void 0!==i.angle?i.angle*Math.PI/180:0}next(){let e=this._inputGeometries.next();for(;e;){if(0===this._rotateAngle)return e;const i=(0,ie.Ue)();(0,ne.$P)(i,e);const r=(i[2]+i[0])/2,x=(i[3]+i[1])/2;if((0,yt.YX)(e)){const y={rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]};return this._rotateMultipath(y.rings,r,x),y}if((0,yt.oU)(e)){const y=(0,At.d9)(e);return this._rotateMultipath(y.rings,r,x),y}if((0,yt.l9)(e)){const y=(0,At.d9)(e);return this._rotateMultipath(y.paths,r,x),y}if((0,yt.aW)(e)){const y=(0,At.d9)(e);return this._rotatePath(y.points,r,x),y}if((0,yt.wp)(e))return e;e=this._inputGeometries.next()}return null}_rotateMultipath(e,i,r){if(e)for(const x of e)this._rotatePath(x,i,r)}_rotatePath(e,i,r){if(e){const x=Math.cos(this._rotateAngle),y=Math.sin(this._rotateAngle);for(const a of e){const P=a[0]-i,b=a[1]-r;a[0]=i+P*x-b*y,a[1]=r+P*y+b*x}}}}let I=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new Y(i,r,x)}}return S.instance=null,S})();class Y{constructor(e,i,r){this._inputGeometries=e,this._xFactor=void 0!==i.xScaleFactor?i.xScaleFactor:1.15,this._yFactor=void 0!==i.yScaleFactor?i.yScaleFactor:1.15}next(){let e=this._inputGeometries.next();for(;e;){if(1===this._xFactor&&1===this._yFactor)return e;const i=(0,ie.Ue)();(0,ne.$P)(i,e);const r=(i[2]+i[0])/2,x=(i[3]+i[1])/2;if((0,yt.YX)(e)){const y={rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]};return this._scaleMultipath(y.rings,r,x),y}if((0,yt.oU)(e)){const y=(0,At.d9)(e);return this._scaleMultipath(y.rings,r,x),y}if((0,yt.l9)(e)){const y=(0,At.d9)(e);return this._scaleMultipath(y.paths,r,x),y}if((0,yt.aW)(e)){const y=(0,At.d9)(e);return this._scalePath(y.points,r,x),y}if((0,yt.wp)(e))return e;e=this._inputGeometries.next()}return null}_scaleMultipath(e,i,r){if(e)for(const x of e)this._scalePath(x,i,r)}_scalePath(e,i,r){if(e)for(const x of e){const a=(x[1]-r)*this._yFactor;x[0]=i+(x[0]-i)*this._xFactor,x[1]=r+a}}}let R=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new Z(i,r,x)}}return S.instance=null,S})();class Z{constructor(e,i,r){this._inputGeometries=e,this._height=(void 0!==i.amplitude?i.amplitude:2)*r,this._period=(void 0!==i.period?i.period:3)*r,this._style=i.waveform,this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new te,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new rt,this._walker.updateTolerance(r)}next(){let e=this._inputGeometries.next();for(;e;){if(0===this._height||0===this._period)return e;if((0,yt.l9)(e)){const i=this._processGeom(e.paths);if(i.length)return{paths:i}}if((0,yt.oU)(e)){const i=this._processGeom(e.rings);if(i.length)return{rings:i}}e=this._inputGeometries.next()}return null}_processGeom(e){const i=[];for(const r of e)if(this._walker.init(r,this._pattern))switch(this._style){case $.zQ.Sinus:default:i.push(this._constructCurve(r,!1));break;case $.zQ.Square:i.push(this._constructSquare(r));break;case $.zQ.Triangle:i.push(this._constructTriangle(r));break;case $.zQ.Random:i.push(this._constructCurve(r,!0))}else i.push(r);return i}_constructCurve(e,i){const r=new pt,x=this._walker.calculatePathLength(e);let y=Math.round(x/this._period);0===y&&(y=1);const b=this._period/16,w=1/(16*y+1),L=2*Math.PI*x/(x/y),A=2*Math.PI*Math.random(),ot=2*Math.PI*Math.random(),lt=2*Math.PI*Math.random(),gt=.75-Math.random()/2,xt=.75-Math.random()/2,Et=new Q;this._walker.curPointAndAngle(Et),r.startPath(Et.pt);let Yt=0;for(;;){if(!this._walker.nextPointAndAngle(b,Et)){r.lineTo(e[e.length-1]);break}{const ae=Yt;let ce;if(Yt+=w,i){const qt=this._height/2*(1+.3*Math.sin(gt*L*ae+A));ce=qt*Math.sin(L*ae+ot),ce+=qt*Math.sin(xt*L*ae+lt),ce/=2}else ce=.5*this._height*Math.sin(.5*L*ae);r.lineTo([Et.pt[0]-ce*Et.sa,Et.pt[1]+ce*Et.ca])}}return r.path()}_constructSquare(e){const i=new pt,r=this._walker.calculatePathLength(e);Math.round(r/this._period);let x=!0;for(;;){let y=!1;if(this._walker.curPositionIsValid()){const a=new Q;this._walker.curPointAndAngle(a);const P=new Q;if(this._walker.nextPointAndAngle(this._period,P)){const b=new Q;this._walker.nextPointAndAngle(this._period,b)&&(x?(i.startPath(a.pt),x=!1):i.lineTo(a.pt),i.lineTo([a.pt[0]-this._height/2*a.sa,a.pt[1]+this._height/2*a.ca]),i.lineTo([P.pt[0]-this._height/2*P.sa,P.pt[1]+this._height/2*P.ca]),i.lineTo([P.pt[0]+this._height/2*P.sa,P.pt[1]-this._height/2*P.ca]),i.lineTo([b.pt[0]+this._height/2*b.sa,b.pt[1]-this._height/2*b.ca]),y=!0)}}if(!y){i.lineTo(this._walker.getPathEnd());break}}return i.path()}_constructTriangle(e){const i=new pt,r=this._walker.calculatePathLength(e);Math.round(r/this._period);let x=!0;for(;;){let y=!1;if(this._walker.curPositionIsValid()){const a=new Q;this._walker.curPointAndAngle(a);const P=new Q;if(this._walker.nextPointAndAngle(this._period/2,P)){const b=new Q;this._walker.nextPointAndAngle(this._period,b)&&(this._walker.nextPosition(this._period/2)&&(x?(i.startPath(a.pt),x=!1):i.lineTo(a.pt),i.lineTo([P.pt[0]-this._height/2*P.sa,P.pt[1]+this._height/2*P.ca]),i.lineTo([b.pt[0]+this._height/2*b.sa,b.pt[1]-this._height/2*b.ca])),y=!0)}}if(!y){i.lineTo(this._walker.getPathEnd());break}}return i.path()}}let ft=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new q(i,r,x)}}return S.instance=null,S})();class q extends Dt.v1{constructor(e,i,r){super(e,!0,!0),this._geometryWalker=new rt,this._geometryWalker.updateTolerance(r),this._angleToLine=i.angleToLine??!0,this._offset=(i.offset?i.offset:0)*r,this._originalEndings=i.endings,this._offsetAtEnd=(i.customEndingOffset?i.customEndingOffset:0)*r,this._position=-(i.offsetAlongLine?i.offsetAlongLine:0)*r,this._pattern=new te,this._pattern.init(i.placementTemplate,!1),this._pattern.scale(r),this._endings=this._originalEndings}processPath(e){if(this._pattern.isEmpty())return null;let i;if(this.iteratePath)i=this._pattern.nextValue();else{this._endings=this._originalEndings===$.JS.WithFullGap&&this.isClosed?$.JS.WithMarkers:this._originalEndings,this._pattern.extPtGap=0;let x,y=!0;switch(this._endings){case $.JS.NoConstraint:x=-this._position,x=this._adjustPosition(x),y=!1;break;case $.JS.WithHalfGap:default:x=-this._pattern.lastValue()/2;break;case $.JS.WithFullGap:x=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case $.JS.WithMarkers:x=0;break;case $.JS.Custom:x=-this._position,x=this._adjustPosition(x),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(e,this._pattern,y))return null;this._pattern.reset();let a=0;for(;x>a;)x-=a,a=this._pattern.nextValue();a-=x,i=a,this.iteratePath=!0}const r=new Q;return this._geometryWalker.nextPointAndAngle(i,r)?this._endings===$.JS.WithFullGap&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):this._endings===$.JS.WithMarkers&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(r.pt[0]-this._offset*r.sa,r.pt[1]+this._offset*r.ca),this._angleToLine&&this.internalPlacement.setRotateCS(r.ca,r.sa),this.internalPlacement):(this.iteratePath=!1,null)}_adjustPosition(e){let i=e/this._pattern.length();return i-=Math.floor(i),i*this._pattern.length()}}let Ct=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new N(i,r,x)}}return S.instance=null,S})();class N extends Dt.v1{constructor(e,i,r){super(e,!1,!0),this._curveHelper=new Lt,this._angleToLine=void 0===i.angleToLine||i.angleToLine,this._offset=void 0!==i.offset?i.offset*r:0,this._type=i.extremityPlacement,this._position=void 0!==i.offsetAlongLine?i.offsetAlongLine*r:0,this._beginProcessed=!1}processPath(e){let i;switch(this._type){case $.Tx.Both:default:this._beginProcessed?(i=this._atExtremities(e,this._position,!1),this._beginProcessed=!1,this.iteratePath=!1):(i=this._atExtremities(e,this._position,!0),this._beginProcessed=!0,this.iteratePath=!0);break;case $.Tx.JustBegin:i=this._atExtremities(e,this._position,!0);break;case $.Tx.JustEnd:i=this._atExtremities(e,this._position,!1);case $.Tx.None:}return i}_atExtremities(e,i,r){const x=e.length;if(x<2)return null;const a=r?x:-1,P=r?1:-1;let b,w=0,L=r?e[0]:e[x-1];for(let A=r?1:x-2;A!==a;A+=P){b=L,L=e[A];const ot=this._curveHelper.calculateLength(b,L);if(w+ot>i){const lt=(i-w)/ot,[gt,xt]=this._curveHelper.getAngleCS(b,L,lt),Et=(0,Dt.XV)(b,L,lt);return this.internalPlacement.setTranslate(Et[0]-this._offset*xt,Et[1]+this._offset*gt),this._angleToLine&&this.internalPlacement.setRotateCS(-gt,-xt),this.internalPlacement}w+=ot}return null}}let v=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new k(i,r,x)}}return S.instance=null,S})();class k extends Dt.v1{constructor(e,i,r){super(e,!0,!0),this._walker=new rt,this._walker.updateTolerance(r),this._angleToLine=void 0===i.angleToLine||i.angleToLine,this._offset=void 0!==i.offset?i.offset*r:0,this._beginGap=void 0!==i.beginPosition?i.beginPosition*r:0,this._endGap=void 0!==i.endPosition?i.endPosition*r:0,this._flipFirst=void 0===i.flipFirst||i.flipFirst,this._pattern=new te,this._pattern.init(i.positionArray,!1,!1),this._subPathLen=0,this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0}processPath(e){if(this._pattern.isEmpty())return null;let i;if(this.iteratePath){const P=this._pattern.nextValue()*this._subPathLen,b=this._beginGap+P;i=b-this._prevPos,this._prevPos=b}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=this._walker.calculatePathLength(e)-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(e,this._pattern,!1))return null;this._pattern.reset();const P=this._pattern.nextValue()*this._subPathLen,b=this._beginGap+P;i=b-this._prevPos,this._prevPos=b,this.iteratePath=!0}const r=new Q;if(!this._walker.nextPointAndAngle(i,r,Pt.END))return this.iteratePath=!1,null;let y,a;return this.internalPlacement.setTranslate(r.pt[0]-this._offset*r.sa,r.pt[1]+this._offset*r.ca),this._angleToLine?(y=r.ca,a=r.sa):(y=1,a=0),this._isFirst&&this._flipFirst&&(y=-y,a=-a),this.internalPlacement.setRotateCS(y,a),this._isFirst=!1,this._posCount--,0===this._posCount&&(this.iteratePath=!1),this.internalPlacement}}var E=at(4619),U=at(97373);let J=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new K(i,r,x,y)}}return S.instance=null,S})();class K{constructor(e,i,r,x){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._stepX=Math.abs(i.stepX??16)*r,this._stepY=Math.abs(i.stepY??16)*r,0!==this._stepX&&0!==this._stepY&&e&&function F(S){return void 0!==S.rings}(e)&&e.rings){if(this._gridType=i.gridType??$.bj.Fixed,this._gridType===$.bj.Random)this._randomLCG=new E.Z(1*(i.seed??13)),this._randomness=(i.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0;else{if(this._randomness=0,this._gridAngle=i.gridAngle??0,this._shiftOddRows=i.shiftOddRows??!1,this._offsetX=(i.offsetX??0)*r,this._offsetY=(i.offsetY??0)*r,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}this._graphicOriginX=0,this._graphicOriginY=0,this._internalPlacement=new U.u,this._calculateMinMax(e),this._geometry=e}}next(){return this._geometry?this._nextInside():null}_calculateMinMax(e){let i,r,x,y,a,P,b,w;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=P=Number.MAX_VALUE,b=w=-Number.MAX_VALUE;for(const L of e.rings){const A=L?L.length:0;for(let ot=0;otthis._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let e=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(e+=.5*this._stepX);const i=this._currentY*this._stepY+this._offsetY;let r,x;return this._currentX++,this._gridType===$.bj.Random?(r=this._graphicOriginX+e+this._stepX*this._randomness*(.5-this._randomLCG.getFloat())*2/3,x=this._graphicOriginY+i+this._stepY*this._randomness*(.5-this._randomLCG.getFloat())*2/3):(r=this._graphicOriginX+this._cosAngle*e+this._sinAngle*i,x=this._graphicOriginY-this._sinAngle*e+this._cosAngle*i),this._internalPlacement.setTranslate(r,x),this._internalPlacement}}}let n=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new O(i,r,x)}}return S.instance=null,S})();class O extends Dt.v1{constructor(e,i,r){super(e,!0,!0),this._curveHelper=new Lt,this._angleToLine=void 0===i.angleToLine||i.angleToLine,this._offset=void 0!==i.offset?i.offset*r:0,this._relativeTo=i.relativeTo,this._position=void 0!==i.startPointOffset?i.startPointOffset*r:0,this._epsilon=.001*r}processPath(e){const i=this._position;if(this._relativeTo===$.CS.SegmentMidpoint){for(this.iteratePath||(this._segmentCount=e.length,this._curSegment=1,this.iteratePath=!0);this._curSegmentr){const A=(r-P)/L,[ot,lt]=this._curveHelper.getAngleCS(a,b,A),gt=(0,Dt.XV)(a,b,A),xt=x?-this._offset:this._offset;return this.internalPlacement.setTranslate(gt[0]-xt*lt,gt[1]+xt*ot),this._angleToLine&&(x?this.internalPlacement.setRotateCS(-ot,-lt):this.internalPlacement.setRotateCS(ot,lt)),this.internalPlacement}P+=L}return null}}let z=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new j(i,r,x)}}return S.instance=null,S})();class j extends Dt.v1{constructor(e,i,r){super(e,!0,!0),this._curveHelper=new Lt,this._angleToLine=void 0===i.angleToLine||i.angleToLine,this._offset=void 0!==i.offset?i.offset*r:0,this._endPoints=void 0===i.placeOnEndPoints||i.placeOnEndPoints,this._controlPoints=void 0===i.placeOnControlPoints||i.placeOnControlPoints,this._regularVertices=void 0===i.placeOnRegularVertices||i.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(e){if(this.iteratePath||(this._preparePath(e),this.iteratePath=!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;const i=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(i[2]);let r=i[0],x=i[1];if(0!==this._offset){const y=Math.cos(i[2]),a=Math.sin(i[2]);r-=this._offset*a,x+=this._offset*y}return this.internalPlacement.setTranslate(r,x),this._tagIterator++,this.internalPlacement}_preparePath(e){this._tags.length=0,this._tagIterator=0;const i=(0,Dt.QK)(e),r=e.length-1;let x,y,a=0,P=0,b=0,w=0,L=0;for(;ai+2e-15;)e-S>i?e-=2*i:e+=2*i;return(S+e)/2}var st=at(8314),tt=at(27105),it=at(62208);class Mt{constructor(e=vt){this._data=[],this._compare=e}get size(){return this._data.length}enqueue(e){if(null==e)return;const{_data:i,_compare:r}=this;i.push(e);let x=i.length-1>>>0;const y=i[x];for(;x>0;){const a=x-1>>1,P=i[a];if(!(r(P,y)<=0))break;i[a]=y,i[x]=P,x=a}}dequeue(){const{_data:e,_compare:i}=this,r=e[0],x=e.pop();if(0===e.length)return r;e[0]=x;let y=0;const a=e.length,P=e[0];let b,w,L=null;for(;;){const A=2*y+1,ot=2*y+2;if(L=null,A0&&(L=A)),otSe?1:0;var Ft=at(25748),Ot=at(11519);function Jt(S,e){const{rings:i}=e;let r=0;for(const x of i){const y=x.length;for(let a=1;aS[1]!=b[1]>S[1]&&((b[0]-P[0])*(S[1]-P[1])-(b[1]-P[1])*(S[0]-P[0])>0?r++:r--)}}return 0!==r}function $t(S,e,i){if(i&&Jt(S,e))return{coord:S,distance:0};let r=1/0,x=0,y=0;const a=[0,0],{rings:P}=e;for(const b of P)if(!(b.length<2))for(let w=0;wa?aeA)3&r?(1&r?(e[1]+=A*(y-e[0])/L,e[0]=y):(e[1]+=A*(P-e[0])/L,e[0]=P),r=ge(e,S)):3&x?(1&x?(i[1]+=A*(y-i[0])/L,i[0]=y):(i[1]+=A*(P-i[0])/L,i[0]=P),x=ge(i,S)):r?(4&r?(e[0]+=L*(a-e[1])/A,e[1]=a):(e[0]+=L*(b-e[1])/A,e[1]=b),r=ge(e,S)):(4&x?(i[0]+=L*(a-i[1])/A,i[1]=a):(i[0]+=L*(b-i[1])/A,i[1]=b),x=ge(i,S));else if(12&r?(4&r?(e[0]+=L*(a-e[1])/A,e[1]=a):(e[0]+=L*(b-e[1])/A,e[1]=b),r=ge(e,S)):12&x?(4&x?(i[0]+=L*(a-i[1])/A,i[1]=a):(i[0]+=L*(b-i[1])/A,i[1]=b),x=ge(i,S)):r?(1&r?(e[1]+=A*(y-e[0])/L,e[0]=y):(e[1]+=A*(P-e[0])/L,e[0]=P),r=ge(e,S)):(1&x?(i[1]+=A*(y-i[0])/L,i[0]=y):(i[1]+=A*(P-i[0])/L,i[0]=P),x=ge(i,S)),r&x)return 0}while(r|x);return w}function ge(S,e){return(S[0]e[2]?1:0)<<1|(S[1]e[3]?1:0)<<3}function ye(S,e,i){return S+(e-S)*i}function ue(S,e){return(S[0]-e[0])*(S[0]-e[0])+(S[1]-e[1])*(S[1]-e[1])}function Ce(S,e){if(Se)return 1;if(S===e)return 0;const i=isNaN(S),r=isNaN(e);return ir?1:0}class xe{constructor(e,i,r,x){this.x=e,this.y=i,this.cellSize=r,this.distancefromCellCenter=(0,Ft.ko)(e,i,x),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}let Me=(()=>{class S{static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(i,r,x,y){return new Ee(i,r,x)}}return S.instance=null,S})();class Ee{constructor(e,i,r){this._geometry=e,this._offsetX=void 0!==i.offsetX?i.offsetX*r:0,this._offsetY=void 0!==i.offsetY?i.offsetY*r:0,this._method=void 0!==i.method?i.method:$.Lh.OnPolygon,this._internalPlacement=new U.u}next(){const e=this._geometry;return this._geometry=null,e&&function Te(S){return void 0!==S.rings}(e)?this._polygonCenter(e):null}_polygonCenter(e){let i=!1;switch(this._method){case $.Lh.CenterOfMass:{const r=(0,tt.NA)(e);r&&(this._internalPlacement.setTranslate(r[0]+this._offsetX,r[1]+this._offsetY),i=!0)}break;case $.Lh.BoundingBoxCenter:{const r=(0,ie.Ue)();(0,ne.$P)(r,e),r&&(this._internalPlacement.setTranslate((r[2]+r[0])/2+this._offsetX,(r[3]+r[1])/2+this._offsetY),i=!0)}break;default:{let r;r=(0,st.Z)("polylabel-placement-enabled")?function Ne(S){if(!S||!S.rings||0===S.rings.length)return null;const e=(0,ne.lC)((0,ie.Ue)(),S.rings[0]);if(!e)return null;const i=e[2]-e[0],r=e[3]-e[1];if(0===i||0===r)return[e[0]+i/2,e[1]+r/2];const x=Math.max(Math.min(i,r)/100,1),y=new Mt((lt,gt)=>gt.maxDistanceToPolygon-lt.maxDistanceToPolygon),a=Math.min(i,r);let P=a/2,b=0,w=0;for(b=e[0];b0;)A=(0,it.Wg)(y.dequeue()),A.distancefromCellCenter>ot.distancefromCellCenter&&(ot=A),A.maxDistanceToPolygon-ot.distancefromCellCenter<=x||(P=A.cellSize/2,y.enqueue(new xe(A.x-P,A.y-P,P,S)),y.enqueue(new xe(A.x+P,A.y-P,P,S)),y.enqueue(new xe(A.x-P,A.y+P,P,S)),y.enqueue(new xe(A.x+P,A.y+P,P,S)));return[ot.x,ot.y]}(e):function ee(S){const{rings:e}=S;if(!e||0===e.length)return null;const i=(0,ne.$P)((0,ie.Ue)(),S);if(!i)return null;const r=4*(Math.abs(i[0])+Math.abs(i[2])+Math.abs(i[1])+Math.abs(i[3])+1)*222045e-19;let x=0,y=0;for(let Pe=0;Pey&&(y=we,x=Pe)}if(Math.abs(y)<=2*r*r){const Pe=(0,ne.lC)((0,ie.Ue)(),e[x]);return[(Pe[0]+Pe[2])/2,(Pe[1]+Pe[3])/2]}const a=(0,tt.DS)(e[x],!1,(0,ie.Ue)());if(null===a)return null;if(1===e.length&&e[0].length<4)return a;const P=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],b=[NaN,NaN,NaN,NaN],w=[NaN,NaN,NaN,NaN];let L=!1,A=$t(a,S,!0);0===A.distance&&(L=!0,P[0][0]=a[0],P[0][1]=a[1],A=$t(a,S,!1)),b[0]=A.distance,w[0]=0;const ot=[NaN,NaN];let lt=!1,gt=.25,xt=-1;const Et=(0,ne.lC)((0,ie.Ue)(),e[x]);let Yt=NaN;do{if(Yt=NaN,P[1]=Qt(S,ye(Et[0],Et[2],gt),0,i),isNaN(P[1][0])||isNaN(P[1][1])||(A=$t(P[1],S,!1),Yt=A.distance),!isNaN(Yt)&&Yt>r&&Jt(P[1],S))lt=!0,b[1]=Yt,w[1]=ue(P[1],a);else if(!isNaN(Yt)&&Yt>xt&&(xt=Yt,ot[0]=P[1][0],ot[1]=P[1][1]),gt-=.01,gt<.1){if(!(xt>=0))break;lt=!0,b[1]=xt,P[1][0]=ot[0],P[1][1]=ot[1],w[1]=ue(P[1],a)}}while(!lt);lt=!1,gt=.5,xt=-1;let ae=.01,ce=1;do{if(Yt=NaN,P[2]=Qt(S,ye(Et[0],Et[2],gt),0,i),isNaN(P[2][0])||isNaN(P[2][1])||(A=$t(P[2],S,!1),Yt=A.distance),!isNaN(Yt)&&Yt>r&&Jt(P[2],S))lt=!0,b[2]=Yt,w[2]=ue(P[2],a);else if(!isNaN(Yt)&&Yt>xt)xt=Yt,ot[0]=P[2][0],ot[1]=P[2][1];else if(Yt>xt&&(xt=Yt,ot[0]=P[2][0],ot[1]=P[2][1]),gt=.5+ae*ce,ae+=.01,ce*=-1,gt<.3||gt>.7){if(!(xt>=0))break;lt=!0,b[2]=xt,P[2][0]=ot[0],P[2][1]=ot[1],w[2]=ue(P[2],a)}}while(!lt);lt=!1,gt=.75,xt=-1;do{if(Yt=NaN,P[3]=Qt(S,ye(Et[0],Et[2],gt),0,i),isNaN(P[3][0])||isNaN(P[3][1])||(A=$t(P[3],S,!1),Yt=A.distance),!isNaN(Yt)&&Yt>r&&Jt(P[3],S))lt=!0,b[3]=Yt,w[3]=ue(P[3],a);else if(Yt>xt&&(xt=Yt,ot[0]=P[3][0],ot[1]=P[3][1]),gt+=.01,gt>.9){if(!(xt>=0))break;lt=!0,b[3]=xt,P[3][0]=ot[0],P[3][1]=ot[1],w[3]=ue(P[3],a)}}while(!lt);const qt=[0,1,2,3],Oe=L?0:1;let ze;for(let Pe=Oe;Pe<4;Pe++)for(let we=Oe;we<3;we++){const Ge=w[we],He=w[we+1];Ce(Ge,He)>0&&(ze=qt[we],qt[we]=qt[we+1],qt[we+1]=ze,w[we]=He,w[we+1]=Ge)}let De=Oe,Fe=0,Re=0;for(let Pe=Oe;Pe<4;Pe++){switch(Pe){case 0:Re=2*b[qt[Pe]];break;case 1:Re=1.66666666*b[qt[Pe]];break;case 2:Re=1.33333333*b[qt[Pe]];break;case 3:Re=b[qt[Pe]]}Re>Fe&&(Fe=Re,De=qt[Pe])}return P[De]}(e),null!==r&&(this._internalPlacement.setTranslate(r[0]+this._offsetX,r[1]+this._offsetY),i=!0)}}return i?this._internalPlacement:null}}function Ae(S){if(!S)return null;switch(S.type){case"CIMGeometricEffectAddControlPoints":return Bt.local();case"CIMGeometricEffectArrow":return Zt.local();case"CIMGeometricEffectBuffer":return _t.local();case"CIMGeometricEffectControlMeasureLine":return nt.local();case"CIMGeometricEffectCut":return Xt.local();case"CIMGeometricEffectDashes":return ut.local();case"CIMGeometricEffectDonut":return St.local();case"CIMGeometricEffectJog":return Ht.local();case"CIMGeometricEffectMove":return Gt.local();case"CIMGeometricEffectOffset":return re.local();case"CIMGeometricEffectReverse":return oe.local();case"CIMGeometricEffectRotate":return It.local();case"CIMGeometricEffectScale":return I.local();case"CIMGeometricEffectWave":return R.local()}return null}function Ie(S){if(!S)return null;switch(S.type){case"CIMMarkerPlacementAlongLineSameSize":return ft.local();case"CIMMarkerPlacementAtExtremities":return Ct.local();case"CIMMarkerPlacementAtRatioPositions":return v.local();case"CIMMarkerPlacementInsidePolygon":return J.local();case"CIMMarkerPlacementOnLine":return n.local();case"CIMMarkerPlacementOnVertices":return z.local();case"CIMMarkerPlacementPolygonCenter":return Me.local()}return null}},97373:(ve,fe,at)=>{at.d(fe,{u:()=>At});class At{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(Bt,se){this.tx=Bt,this.ty=se}setTranslateZ(Bt){this.tz=Bt}setRotateCS(Bt,se){this.rz=void 0,this.rzCos=Bt,this.rzSin=se}setRotate(Bt){this.rz=Bt,this.rzCos=void 0,this.rzSin=void 0}setRotateY(Bt){this.ry=Bt}setScale(Bt){this.s=Bt}setMeasure(Bt){this.m=Bt}}},26933:(ve,fe,at)=>{at.d(fe,{cD:()=>Vt,uQ:()=>kt,zA:()=>ht}),at(986);var yt=at(17002),Dt=at(58817),Bt=at(63290),se=at(62208),$=at(27899),zt=at(23841),pt=at(65401),Lt=at(32442),dt=at(27105),Tt=at(91179),Kt=at(29214),Zt=at(91558);class et{applyColorSubstituition(h,I){if(!I)return h;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:Y,height:R}=h,Z=this._rasterizationCanvas,ft=Z.getContext("2d");h!==Z&&(Z.width=Y,Z.height=R,ft.drawImage(h,0,0,Y,R));const q=ft.getImageData(0,0,Y,R).data;if(I)for(const N of I)if(N&&N.oldColor&&4===N.oldColor.length&&N.newColor&&4===N.newColor.length){const[v,k,E,U]=N.oldColor,[F,J,K,W]=N.newColor;if(v===F&&k===J&&E===K&&U===W)continue;for(let n=0;n1}back(){return this._transfos[this._transfos.length-1]}push(h,I){const Y=I?h.scaleRatio():1;ht.multiply(h,this.back(),h),this._transfos.push(h),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*Y)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1)}drawSymbol(h,I,Y){if(h)switch(h.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(h,I);break;case"CIMTextSymbol":this.drawTextSymbol(h,I,Y)}}drawMultiLayerSymbol(h,I){if(!h)return;const Y=h.symbolLayers;if(!Y)return;const R=h.effects;if(R&&R.length>0){const Z=this.executeEffects(R,I);if(Z){let ft=Z.next();for(;ft;)this.drawSymbolLayers(Y,ft),ft=Z.next()}}else this.drawSymbolLayers(Y,I)}executeEffects(h,I){const Y=this._resourceManager.geometryEngine;let R=new Kt.M(I);for(const Z of h){const ft=(0,_t.h)(Z);ft&&(R=ft.execute(R,Z,this.geomUnitsPerPoint(),Y))}return R}drawSymbolLayers(h,I){let Y=h.length;for(;Y--;){const R=h[Y];if(!R||!1===R.enable)continue;const Z=R.effects;if(Z&&Z.length>0){const ft=this.executeEffects(Z,I);if(ft){let q=null;for(;(q=ft.next())&&(this.drawSymbolLayer(R,q),!this._earlyReturn););}}else this.drawSymbolLayer(R,I);if(this._earlyReturn)return}}drawSymbolLayer(h,I){switch(h.type){case"CIMSolidFill":this.drawSolidFill(I,h.color);break;case"CIMHatchFill":this.drawHatchFill(I,h);break;case"CIMPictureFill":this.drawPictureFill(I,h);break;case"CIMGradientFill":this.drawGradientFill(I,h);break;case"CIMSolidStroke":this.drawSolidStroke(I,h.color,h.width,h.capStyle,h.joinStyle,h.miterLimit);break;case"CIMPictureStroke":this.drawPictureStroke(I,h);break;case"CIMGradientStroke":this.drawGradientStroke(I,h);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(h,I)}}drawHatchFill(h,I){const Y=this._buildHatchPolyline(I,h,this.geomUnitsPerPoint());Y&&(this.pushClipPath(h),this.drawMultiLayerSymbol(I.lineSymbol,Y),this.popClipPath())}drawPictureFill(h,I){}drawGradientFill(h,I){}drawPictureStroke(h,I){}drawGradientStroke(h,I){}drawMarkerLayer(h,I){const Y=h.markerPlacement;if(Y){const R=(0,_t.W)(Y);if(R){const Z="CIMMarkerPlacementInsidePolygon"===Y.type||"CIMMarkerPlacementPolygonCenter"===Y.type&&Y.clipAtBoundary;Z&&this.pushClipPath(I);const ft=R.execute(I,Y,this.geomUnitsPerPoint(),this._resourceManager.geometryEngine);if(ft){let q=null;for(;(q=ft.next())&&(this.drawMarker(h,q),!this._earlyReturn););}Z&&this.popClipPath()}}else{const R=this._placementPool.acquire();if((0,Tt.wp)(I))R.tx=I.x,R.ty=I.y,this.drawMarker(h,R);else if((0,Tt.oU)(I))[R.tx,R.ty]=(0,dt.tO)(I),this.drawMarker(h,R);else for(const Z of I.points)if(R.tx=Z[0],R.ty=Z[1],this.drawMarker(h,R),this._earlyReturn)break;this._placementPool.release(R)}}drawMarker(h,I){switch(h.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(h,I);break;case"CIMVectorMarker":this.drawVectorMarker(h,I)}}drawPictureMarker(h,I){if(!h)return;const Y=this._resourceManager.getResource(h.url),R=h.size??10;if((0,se.Wi)(Y)||R<=0)return;const Z=Y.width,ft=Y.height;if(!Z||!ft)return;const q=Z/ft,Ct=h.scaleX??1,N=ht.createIdentity(),v=h.anchorPoint;if(v){let K=v.x,W=v.y;"Absolute"!==h.anchorPointUnits&&(K*=R*q*Ct,W*=R),N.translate(-K,-W)}let k=h.rotation??0;h.rotateClockwise&&(k=-k),this._mapRotation&&(k+=this._mapRotation),k&&N.rotate(k*bt);let E=h.offsetX??0,U=h.offsetY??0;if(E||U){if(this._mapRotation){const K=bt*this._mapRotation,W=Math.cos(K),n=Math.sin(K),O=E*n+U*W;E=E*W-U*n,U=O}N.translate(E,U)}const F=this.geomUnitsPerPoint();1!==F&&N.scale(F,F);const J=I.getAngle();J&&N.rotate(J),N.translate(I.tx,I.ty),this.push(N,!1),this.drawImage(h,R),this.pop()}drawVectorMarker(h,I){if(!h)return;const Y=h.markerGraphics;if(!Y)return;const R=h.size??10,Z=h.frame,ft=Z?Z.ymax-Z.ymin:0,q=R&&ft?R/ft:1,Ct=ht.createIdentity();Z&&Ct.translate(.5*-(Z.xmax+Z.xmin),.5*-(Z.ymax+Z.ymin));const N=h.anchorPoint;if(N){let J=N.x,K=N.y;"Absolute"!==h.anchorPointUnits?Z&&(J*=Z.xmax-Z.xmin,K*=Z.ymax-Z.ymin):(J/=q,K/=q),Ct.translate(-J,-K)}1!==q&&Ct.scale(q,q);let v=h.rotation??0;h.rotateClockwise&&(v=-v),this._mapRotation&&(v+=this._mapRotation),v&&Ct.rotate(v*bt);let k=h.offsetX??0,E=h.offsetY??0;if(k||E){if(this._mapRotation){const J=bt*this._mapRotation,K=Math.cos(J),W=Math.sin(J),n=k*W+E*K;k=k*K-E*W,E=n}Ct.translate(k,E)}const U=this.geomUnitsPerPoint();1!==U&&Ct.scale(U,U);const F=I.getAngle();F&&Ct.rotate(F),Ct.translate(I.tx,I.ty),this.push(Ct,h.scaleSymbolsProportionally);for(const J of Y)if(J&&J.symbol&&J.geometry||ut.error("Invalid marker graphic",J),this.drawSymbol(J.symbol,J.geometry,J.textString),this._earlyReturn)break;this.pop()}drawTextSymbol(h,I,Y){if(!h||!(0,Tt.wp)(I)||(h.height??10)<=0)return;const R=ht.createIdentity();let Z=h.angle??0;Z=-Z,Z&&R.rotate(Z*bt);const ft=h.offsetX??0,q=h.offsetY??0;(ft||q)&&R.translate(ft,q);const Ct=this.geomUnitsPerPoint();1!==Ct&&R.scale(Ct,Ct),R.translate(I.x,I.y),this.push(R,!1),this.drawText(h,Y),this.pop()}_buildHatchPolyline(h,I,Y){let R=(void 0!==h.separation?h.separation:4)*Y,Z=void 0!==h.rotation?h.rotation:0;if(0===R)return null;R<0&&(R=-R);let ft=0;const q=.5*R;for(;ft>q;)ft-=R;for(;ft<-q;)ft+=R;const Ct=(0,pt.Ue)();(0,Lt.$P)(Ct,I),Ct[0]-=q,Ct[1]-=q,Ct[2]+=q,Ct[3]+=q;const N=[[Ct[0],Ct[1]],[Ct[0],Ct[3]],[Ct[2],Ct[3]],[Ct[2],Ct[1]]];for(;Z>180;)Z-=180;for(;Z<0;)Z+=180;const v=Math.cos(Z*bt),k=Math.sin(Z*bt),E=-R*k,U=R*v;let F,J,K,W;ft=(void 0!==h.offsetX?h.offsetX*Y:0)*k-(void 0!==h.offsetY?h.offsetY*Y:0)*v,F=K=Number.MAX_VALUE,J=W=-Number.MAX_VALUE;for(const st of N){const tt=st[0],it=st[1],Mt=v*tt+k*it,vt=-k*tt+v*it;F=Math.min(F,Mt),K=Math.min(K,vt),J=Math.max(J,Mt),W=Math.max(W,vt)}K=Math.floor(K/R)*R;let n=v*F-k*K-E*ft/R,O=k*F+v*K-U*ft/R,z=v*J-k*K-E*ft/R,mt=k*J+v*K-U*ft/R;const j=1+Math.round((W-K)/R),ct=[];for(let st=0;st0))if((0,Tt.oU)(h))this._processPath(h.rings,0);else if((0,Tt.l9)(h))this._processPath(h.paths,0);else if((0,Tt.YX)(h)){const I=wt(h);I&&this._processPath(I.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(h,I,Y){if(!h||this._clipCount>0)return;const R=.5*this.transformSize(Y);if((0,Tt.oU)(h))this._processPath(h.rings,R);else if((0,Tt.l9)(h))this._processPath(h.paths,R);else if((0,Tt.YX)(h)){const Z=wt(h);Z&&this._processPath(Z.rings,R)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(h,I){(0,Tt.oU)(I)&&h.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===h.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===h.markerPlacement.type&&h.markerPlacement.clipAtBoundary)?this._processPath(I.rings,0):super.drawMarkerLayer(h,I)}drawHatchFill(h,I){this.drawSolidFill(h)}drawPictureFill(h,I){this.drawSolidFill(h)}drawGradientFill(h,I){this.drawSolidFill(h)}drawPictureStroke(h,I){this.drawSolidStroke(h,null,I.width)}drawGradientStroke(h,I){this.drawSolidStroke(h,null,I.width)}pushClipPath(h){this.drawSolidFill(h),this._clipCount++}popClipPath(){this._clipCount--}drawImage(h,I){const{url:Y}=h,R=h.scaleX??1;let Z=R*I,ft=I;const q=this._resourceManager.getResource(Y);!I&&(0,se.pC)(q)&&(Z=R*q.width,ft=q.height),this._merge(this.transformPt([-Z/2,-ft/2]),0),this._merge(this.transformPt([-Z/2,ft/2]),0),this._merge(this.transformPt([Z/2,-ft/2]),0),this._merge(this.transformPt([Z/2,ft/2]),0)}drawText(h,I){if(!I||0===I.length)return;this._textRasterizer||(this._textRasterizer=new jt.Z);const Y=pe(h),[R,Z]=this._textRasterizer.computeTextSize(I,Y);let ft=0;switch(h.horizontalAlignment){case"Left":ft=R/2;break;case"Right":ft=-R/2}let q=0;switch(h.verticalAlignment){case"Bottom":q=Z/2;break;case"Top":q=-Z/2;break;case"Baseline":q=Z/6}this._merge(this.transformPt([-R/2+ft,-Z/2+q]),0),this._merge(this.transformPt([-R/2+ft,Z/2+q]),0),this._merge(this.transformPt([R/2+ft,-Z/2+q]),0),this._merge(this.transformPt([R/2+ft,Z/2+q]),0)}_processPath(h,I){if(h)for(const Y of h){const R=Y?Y.length:0;if(R>1){this._merge(this.transformPt(Y[0]),I);for(let Z=1;Zthis._xmax&&(this._xmax=h[0]+I),h[1]-Ithis._ymax&&(this._ymax=h[1]+I)}}class Vt extends St{constructor(h,I,Y,R){super(I,Y),this._applyAdditionalRenderProps=R,this._colorSubstitutionHelper=new et,this._ctx=h}drawSolidFill(h,I){if(!h)return;if((0,Tt.oU)(h))this._buildPath(h.rings,!0);else if((0,Tt.l9)(h))this._buildPath(h.paths,!0);else if((0,Tt.YX)(h))this._buildPath(wt(h).rings,!0);else{if(!(0,Tt.aW)(h))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}const Y=this._ctx;Y.fillStyle="string"==typeof I?I:"rgba("+Math.round(I[0])+","+Math.round(I[1])+","+Math.round(I[2])+","+I[3]/255+")",Y.fill("evenodd")}drawSolidStroke(h,I,Y,R,Z,ft){if(!h||!I||0===Y)return;if((0,Tt.oU)(h))this._buildPath(h.rings,!0);else if((0,Tt.l9)(h))this._buildPath(h.paths,!1);else{if(!(0,Tt.YX)(h))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(wt(h).rings,!0)}const q=this._ctx;q.strokeStyle="string"==typeof I?I:"rgba("+Math.round(I[0])+","+Math.round(I[1])+","+Math.round(I[2])+","+I[3]/255+")",q.lineWidth=Math.max(this.transformSize(Y),.5),this._setCapStyle(R),this._setJoinStyle(Z),q.miterLimit=ft,q.stroke()}pushClipPath(h){if(this._ctx.save(),(0,Tt.oU)(h))this._buildPath(h.rings,!0);else if((0,Tt.l9)(h))this._buildPath(h.paths,!0);else{if(!(0,Tt.YX)(h))return;this._buildPath(wt(h).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(h,I){const{colorSubstitutions:Y,url:R,tintColor:Z}=h,ft=h.scaleX??1,q=this._resourceManager.getResource(R);if((0,se.Wi)(q))return;let Ct=I*(q.width/q.height),N=I;I||(Ct=q.width,N=q.height);const v=(0,Wt.TB)(R)||"src"in q&&(0,Wt.TB)(q.src);let k="getFrame"in q?Ut(q):q;Y&&(k=this._colorSubstitutionHelper.applyColorSubstituition(k,Y)),this._applyAdditionalRenderProps&&!v&&Z&&(k=this._colorSubstitutionHelper.tintImageData(k,Z));const E=this.transformPt([0,0]),[U,F]=this.getTransformAngle(),J=this.transformSize(1),K=this._ctx;K.save(),K.setTransform({m11:ft*J*U,m12:ft*J*F,m21:-J*F,m22:J*U,m41:E[0],m42:E[1]}),K.drawImage(k,-Ct/2,-N/2,Ct,N),K.restore()}drawText(h,I){if(!I||0===I.length)return;this._textRasterizer||(this._textRasterizer=new jt.Z);const Y=pe(h);Y.size*=this.transformSize((0,zt.Wz)(1));const R=this._textRasterizer.rasterizeText(I,Y);if(!R)return;const{size:Z,anchorX:ft,anchorY:q,canvas:Ct}=R,N=Z[0]*(ft+.5),v=Z[1]*(q-.5),k=this._ctx,E=this.transformPt([0,0]),[U,F]=this.getTransformAngle();k.save(),k.setTransform({m11:1*U,m12:1*F,m21:-1*F,m22:1*U,m41:E[0]-1*N,m42:E[1]+1*v}),k.drawImage(Ct,0,0),k.restore()}drawPictureFill(h,I){if(!h)return;let{colorSubstitutions:Y,height:R,offsetX:Z,offsetY:ft,rotation:q,scaleX:Ct,tintColor:N,url:v}=I;const k=this._resourceManager.getResource(v);if((0,se.Wi)(k))return;if((0,Tt.oU)(h))this._buildPath(h.rings,!0);else if((0,Tt.l9)(h))this._buildPath(h.paths,!0);else if((0,Tt.YX)(h))this._buildPath(wt(h).rings,!0);else{if(!(0,Tt.aW)(h))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}const E=this._ctx,U=(0,Wt.TB)(v)||"src"in k&&(0,Wt.TB)(k.src);let F,J="getFrame"in k?Ut(k):k;if(Y&&(J=this._colorSubstitutionHelper.applyColorSubstituition(J,Y)),this._applyAdditionalRenderProps){U||N&&(J=this._colorSubstitutionHelper.tintImageData(J,N)),F=E.createPattern(J,"repeat");const K=this.transformSize(1);q||(q=0),Z?Z*=K:Z=0,ft?ft*=K:ft=0,R&&(R*=K);const W=R?R/k.height:1,n=Ct&&R?Ct*R/k.width:1;if(0!==q||1!==W||1!==n||0!==Z||0!==ft){const O=new DOMMatrix;O.rotateSelf(0,0,-q).translateSelf(Z,ft).scaleSelf(n,W,1),F.setTransform(O)}}else F=E.createPattern(J,"repeat");E.save(),E.fillStyle=F,E.fill("evenodd"),E.restore()}drawPictureStroke(h,I){if(!h)return;let{colorSubstitutions:Y,capStyle:R,joinStyle:Z,miterLimit:ft,tintColor:q,url:Ct,width:N}=I;const v=this._resourceManager.getResource(Ct);if((0,se.Wi)(v))return;let k;if((0,Tt.oU)(h))k=h.rings;else if((0,Tt.l9)(h))k=h.paths;else if((0,Tt.YX)(h))k=wt(h).rings;else{if(!(0,Tt.aW)(h))return;console.log("CanvasDrawHelper.drawPictureStroke - No implementation!")}N||(N=v.width);const E=(0,Wt.TB)(Ct)||"src"in v&&(0,Wt.TB)(v.src);let U="getFrame"in v?Ut(v):v;Y&&(U=this._colorSubstitutionHelper.applyColorSubstituition(U,Y)),this._applyAdditionalRenderProps&&(E||q&&(U=this._colorSubstitutionHelper.tintImageData(U,q)));const F=Math.max(this.transformSize((0,zt.F2)(N)),.5),J=F/U.width,K=this._ctx,W=K.createPattern(U,"repeat-y");let n,O;K.save(),this._setCapStyle(R),this._setJoinStyle(Z),K.miterLimit=ft,K.lineWidth=F;for(let z of k)if(z=(0,Dt.d9)(z),ne(z),z&&!(z.length<=1)){n=this.transformPt(z[0]);for(let mt=1;mt1){let ft=this.transformPt(R[0]);Y.moveTo(ft[0],ft[1]);for(let q=1;qIt?{spatialReference:It.spatialReference,rings:[[[It.xmin,It.ymin],[It.xmin,It.ymax],[It.xmax,It.ymax],[It.xmax,It.ymin],[It.xmin,It.ymin]]]}:null;function pe(It,h=1){const I=(0,Wt.BX)(It),Y=(0,Wt.wi)(It.fontStyleName),R=(0,yt.BN)(It.fontFamilyName),{weight:Z,style:ft}=Y,q=h*(It.height||5),Ct=(0,Wt.X_)(It.horizontalAlignment),N=(0,Wt.FG)(It.verticalAlignment),v=(0,Wt.W7)(It),k=(0,Wt.$Z)(It.haloSymbol),E=k?h*(0|It.haloSize):0;return{color:v,size:q,horizontalAlignment:Ct,verticalAlignment:N,font:{family:R,style:(0,Wt.pJ)(ft),weight:(0,Wt.On)(Z),decoration:I},halo:{size:E||0,color:k,style:ft},pixelRatio:1,premultiplyColors:!0}}function ne(It){let h,I,Y,R,Z,ft=It[0],q=1;for(;q{at.d(fe,{B$:()=>Gt,E0:()=>wt,U1:()=>I});var At=at(15861),yt=at(91558),Dt=at(986),Bt=at(58817),se=at(63290),$=at(62208),zt=at(4619),pt=at(23841),Tt=(at(65401),at(32442),at(46679)),Kt=at(97373),Zt=at(26933),et=at(7547),_t=at(80991),Nt=at(39236),Ut=(at(86575),at(39351));at(25797);const jt=Math.PI,Wt=jt/2,Pt=96/72,rt=(Math,se.Z.getLogger("esri.symbols.cim.CIMSymbolHelper"));function ht(N,v,k){switch(v.type){case"CIMSymbolReference":return ht(N,v.symbol,k);case"CIMPointSymbol":null==k&&(k={x:0,y:0}),N.drawSymbol(v,k);break;case"CIMLineSymbol":null==k&&(k={paths:[[[0,0],[10,0]]]}),N.drawSymbol(v,k);break;case"CIMPolygonSymbol":null==k&&(k={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),N.drawSymbol(v,k);break;case"CIMTextSymbol":N.drawSymbol(v,{x:0,y:0});break;case"CIMVectorMarker":{const E=new Kt.u;N.drawMarker(v,E);break}}return N.envelope()}class Gt{static getEnvelope(v,k,E){const U=new Zt.uQ(E);if(Array.isArray(v)){let F;for(const J of v)F?F.union(ht(U,J,k)):F=ht(U,J,k);return F}return ht(U,v,k)}static getTextureAnchor(v,k){const E=this.getEnvelope(v,null,k);if(!E)return[0,0,0];const K=E.height*Pt+2;return[-(E.x+.5*E.width)*Pt/(E.width*Pt+2),-(E.y+.5*E.height)*Pt/K,K]}static rasterize(v,k,E,U,F=!0){const J=E||this.getEnvelope(k,null,U);if(!J)return[null,0,0,0,0];const K=(J.x+.5*J.width)*Pt,W=(J.y+.5*J.height)*Pt;v.width=J.width*Pt,v.height=J.height*Pt,E||(v.width+=2,v.height+=2);const n=v.getContext("2d"),O=Zt.zA.createScale(Pt,-Pt);O.translate(.5*v.width-K,.5*v.height+W);const z=new Zt.cD(n,U,O);switch(k.type){case"CIMPointSymbol":z.drawSymbol(k,{type:"point",x:0,y:0});break;case"CIMVectorMarker":{const ct=new Kt.u;z.drawMarker(k,ct);break}}const mt=n.getImageData(0,0,v.width,v.height),j=new Uint8Array(mt.data);if(F){let ct;for(let st=0;st.667?(0,pt.F2)(Math.round((0,pt.Wz)(z.width))):z.width,color:ie(z.color)})}else!k||"line-marker"!==v.type||"cross"!==v.style&&"x"!==v.style||n.push({type:"CIMSolidStroke",enable:!0,width:k,color:ie(F)});n.push({type:"CIMSolidFill",enable:!0,color:ie(F)});const O={type:"CIMPolygonSymbol",symbolLayers:n};W={type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:(0,_t.NA)(-v.angle),size:(0,_t.NA)(v.size||6*k),offsetX:(0,_t.NA)(v.xoffset),offsetY:(0,_t.NA)(v.yoffset),frame:J,markerGraphics:[{type:"CIMMarkerGraphic",geometry:K,symbol:O}]}]}}return W}static fromCIMHatchFill(v,k){const E=k*(v.separation??4),U=E/2,J=(0,Bt.d9)(v.lineSymbol);let K=this._getLineSymbolPeriod(J)||4;for(;K<4;)K*=2;const W=K/2,n={xmin:-W,xmax:W,ymin:-U,ymax:U},O=J.symbolLayers.find(z=>"CIMSolidStroke"===z.type);return O&&(O.width*=k),{type:"CIMVectorMarker",frame:n,markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-W,0],[W,0]]]},symbol:J}],size:E}}static fetchResources(v,k,E){if(v&&k)switch(v.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const U=v.symbolLayers;if(!U)return;for(const F of U)switch(Ct(F,k,E),F.type){case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMCharacterMarker":case"CIMPictureMarker":"url"in F&&F.url&&E.push(k.fetchResource(F.url,null));break;case"CIMVectorMarker":{const J=F.markerGraphics;if(!J)continue;for(const K of J)if(K){const W=K.symbol;W&&Gt.fetchResources(W,k,E)}}}}}}static _getLineSymbolPeriod(v){if(v){const k=this._getEffectsRepeat(v.effects);if(k)return k;if(v.symbolLayers)for(const E of v.symbolLayers)if(E){const U=this._getEffectsRepeat(E.effects);if(U)return U;switch(E.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const F=this._getPlacementRepeat(E.markerPlacement);if(F)return F}}}}return 0}static _getEffectsRepeat(v){if(v)for(const k of v)if(k)switch(k.type){case"CIMGeometricEffectDashes":{const E=k.dashTemplate;if(E&&E.length){let U=0;for(const F of E)U+=F;return 1&E.length&&(U*=2),U}break}case"CIMGeometricEffectWave":return k.period;default:rt.error(`unsupported geometric effect type ${k.type}`)}return 0}static _getPlacementRepeat(v){if(v)switch(v.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const k=v.placementTemplate;if(k&&k.length){let E=0;for(const U of k)E+=U;return 1&k.length&&(E*=2),E}break}}return 0}static fromCIMInsidePolygon(v){const k=v.markerPlacement,E={type:v.type,...v};E.markerPlacement=null,E.anchorPoint=null;const U=Math.abs(k.stepX),F=Math.abs(k.stepY),J=(k.randomness??100)/100;let K,W,n,O;if("Random"===k.gridType){const z=(0,pt.Wz)(Ut.C1),mt=Math.max(Math.floor(z/U),1),j=Math.max(Math.floor(z/F),1);K=mt*U/2,W=j*F/2,n=2*W;const ct=new zt.Z(k.seed),st=J*U/1.5,tt=J*F/1.5;O=[];for(let it=0;it({type:"CIMMarkerGraphic",geometry:z,symbol:{type:"CIMPointSymbol",symbolLayers:[E]}})),size:n}}static getSize(v){if(v)switch(v.type){case"CIMTextSymbol":return v.height;case"CIMPointSymbol":{let k=0;if(v.symbolLayers)for(const E of v.symbolLayers)if(E)switch(E.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const U=E.size;U>k&&(k=U);break}}return k}case"CIMLineSymbol":case"CIMPolygonSymbol":{let k=0;if(v.symbolLayers)for(const E of v.symbolLayers)if(E)switch(E.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const U=E.width;U>k&&(k=U);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if((0,_t.gJ)(E.markerPlacement)){const U=E.size;U>k&&(k=U)}}return k}}}static getMarkerScaleRatio(v){return v&&"CIMVectorMarker"===v.type&&!1!==v.scaleSymbolsProportionally&&v.frame?v.size/(v.frame.ymax-v.frame.ymin):1}}class wt{static findApplicableOverrides(v,k,E){if(v&&k){if(v.primitiveName){let U=!1;for(const F of E)if(F.primitiveName===v.primitiveName){U=!0;break}if(!U)for(const F of k)F.primitiveName===v.primitiveName&&E.push(F)}switch(v.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(v.effects)for(const U of v.effects)wt.findApplicableOverrides(U,k,E);if(v.symbolLayers)for(const U of v.symbolLayers)wt.findApplicableOverrides(U,k,E);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(v.effects)for(const U of v.effects)wt.findApplicableOverrides(U,k,E);if(v.markerPlacement&&wt.findApplicableOverrides(v.markerPlacement,k,E),"CIMVectorMarker"===v.type){if(v.markerGraphics)for(const U of v.markerGraphics)wt.findApplicableOverrides(U,k,E),wt.findApplicableOverrides(U.symbol,k,E)}else"CIMCharacterMarker"===v.type?wt.findApplicableOverrides(v.symbol,k,E):"CIMHatchFill"===v.type?wt.findApplicableOverrides(v.lineSymbol,k,E):"CIMPictureMarker"===v.type&&wt.findApplicableOverrides(v.animatedSymbolProperties,k,E)}}}static findEffectOverrides(v,k,E){if(!k||!v)return;const U=v.length;for(let F=0;F!mt.valueExpressionInfo?.expression.includes("$feature"))),K||(n=n.filter(mt=>!mt.valueExpressionInfo?.expression.includes("$view"))),n.length>0){const mt=(0,_t.Qf)(k.attributes);yield wt.evaluateOverrides(n,k,{spatialReference:E,fields:mt,geometryType:F},J,K)}wt.applyOverrides(W,n)}return U&&wt.applyDictionaryTextOverrides(W,k,U),W})()}static evaluateOverrides(v,k,E,U,F){return(0,At.Z)(function*(){if(!k)return;let J;for(const K of v){const W=K.valueExpressionInfo;if(W&&E){J||(J=[]),K.value=void 0;const n=(0,Tt.Yi)(W.expression,E.spatialReference,E.fields).then(O=>{K.value=(0,Nt.Z)(O,k,{$view:F},E.geometryType,U)});J.push(n)}}void 0!==J&&J.length>0&&(yield Promise.all(J))})()}static applyDictionaryTextOverrides(v,k,E,U="Normal"){if(v&&v.type)switch(v.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{const F=v.symbolLayers;if(!F)return;for(const J of F)J&&"CIMVectorMarker"===J.type&&wt.applyDictionaryTextOverrides(J,k,E,"CIMTextSymbol"===v.type?v.textCase:U)}break;case"CIMVectorMarker":{const F=v.markerGraphics;if(!F)return;for(const J of F)J&&wt.applyDictionaryTextOverrides(J,k,E)}break;case"CIMMarkerGraphic":{const F=v.textString;if(F&&F.includes("[")){const J=(0,_t.H1)(F,E);v.textString=(0,_t.E_)(k,J,U)}}}}static applyOverrides(v,k,E,U){if(v.primitiveName)for(const F of k)if(F.primitiveName===v.primitiveName){const J=ft(F.propertyName);if(U&&U.push({cim:v,nocapPropertyName:J,value:v[J]}),F.expression&&(F.value=wt.toValue(F.propertyName,F.expression)),E){let K=!1;for(const W of E)W.primitiveName===v.primitiveName&&(K=!0);K||E.push(F)}(0,$.pC)(F.value)&&(v[J]=F.value)}switch(v.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(v.effects)for(const F of v.effects)wt.applyOverrides(F,k,E,U);if(v.symbolLayers)for(const F of v.symbolLayers)wt.applyOverrides(F,k,E,U);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(v.effects)for(const F of v.effects)wt.applyOverrides(F,k,E,U);if("CIMVectorMarker"===v.type&&v.markerGraphics)for(const F of v.markerGraphics)wt.applyOverrides(F,k,E,U),wt.applyOverrides(F.symbol,k,E,U)}}static restoreOverrides(v){for(const k of v)k.cim[k.nocapPropertyName]=k.value}static buildOverrideKey(v){let k="";for(const E of v)void 0!==E.value&&(k+=`${E.primitiveName}${E.propertyName}${JSON.stringify(E.value)}`);return k}static toValue(v,k){if("DashTemplate"===v)return k.split(" ").map(E=>Number(E));if("Color"===v){const E=new yt.Z(k).toRgba();return E[3]*=255,E}return k}}const re=N=>{if(!N)return et.kP.Butt;switch(N){case"butt":return et.kP.Butt;case"square":return et.kP.Square;case"round":return et.kP.Round}},me=N=>{if(!N)return et.r4.Miter;switch(N){case"miter":return et.r4.Miter;case"round":return et.r4.Round;case"bevel":return et.r4.Bevel}},oe=N=>{if((0,$.Wi)(N))return"Center";switch(N){case"left":return"Left";case"right":return"Right";case"center":return"Center"}},pe=N=>{if((0,$.Wi)(N))return"Center";switch(N){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},ie=N=>{if(!N)return[0,0,0,0];const{r:v,g:k,b:E,a:U}=N;return[v,k,E,255*U]},ne=(N,v)=>{const k=It(v),E=h(N);return k&&E?`${k}-${E}`:`${k}${E}`},It=N=>{if(!N)return"";switch(N.toLowerCase()){case"bold":case"bolder":return"bold"}return""},h=N=>{if(!N)return"";switch(N.toLowerCase()){case"italic":case"oblique":return"italic"}return""},I=(N,v)=>{const k="butt"===v;switch(N){case"dash":case"esriSLSDash":return k?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return k?[4,3,1,3]:[3,4,0,4];case"dot":case"esriSLSDot":return k?[1,3]:[0,4];case"long-dash":case"esriSLSLongDash":return k?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return k?[8,3,1,3]:[7,4,0,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return k?[8,3,1,3,1,3]:[7,4,0,4,0,4];case"short-dash":case"esriSLSShortDash":return k?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return k?[4,1,1,1]:[3,2,0,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return k?[4,1,1,1,1,1]:[3,2,0,2,0,2];case"short-dot":case"esriSLSShortDot":return k?[1,1]:[0,2];case"solid":case"esriSLSSolid":case"none":return rt.error("Unexpected: style does not require rasterization"),[0,0];default:return rt.error(`Tried to rasterize SLS, but found an unexpected style: ${N}!`),[0,0]}},R=N=>{let E,U;const F=N;if("circle"===F||"esriSMSCircle"===F){let K=Math.acos(.995),W=Math.ceil(jt/K/4);0===W&&(W=1),K=Wt/W,W*=4;const n=[];n.push([50,0]);for(let O=1;O"vertical"===N||"horizontal"===N||"cross"===N||"esriSFSCross"===N||"esriSFSVertical"===N||"esriSFSHorizontal"===N,ft=N=>N&&N.charAt(0).toLowerCase()+N.substr(1);let q;function Ct(N,v,k){if(N.effects&&!(0,$.pC)(v.geometryEngine)){if(q)return void k.push(q);(0,_t.Cc)(N.effects)&&(q=(0,_t.RI)(),k.push(q),q.then(E=>v.geometryEngine=E))}}},31375:(ve,fe,at)=>{at.d(fe,{Z:()=>At});class At{constructor(Dt=0,Bt=0,se=0,$=0){this.x=Dt,this.y=Bt,this.width=se,this.height=$}get isEmpty(){return this.width<=0||this.height<=0}union(Dt){this.x=Math.min(this.x,Dt.x),this.y=Math.min(this.y,Dt.y),this.width=Math.max(this.width,Dt.width),this.height=Math.max(this.height,Dt.height)}}},47139:(ve,fe,at)=>{at.d(fe,{Fp:()=>Bt,RL:()=>dt,UV:()=>Lt,bk:()=>pt});var At=at(36161),yt=at(91179),Dt=at(31375);function Bt(et){if(!et)return null;switch(et.type){case"CIMPointSymbol":{const _t=et.symbolLayers;return _t&&1===_t.length?Bt(_t[0]):null}case"CIMVectorMarker":{const _t=et.markerGraphics;if(!_t||1!==_t.length)return null;const Nt=_t[0];if(!Nt)return null;const nt=Nt.geometry;if(!nt)return null;const Ut=Nt.symbol;return!Ut||"CIMPolygonSymbol"!==Ut.type&&"CIMLineSymbol"!==Ut.type||Ut.symbolLayers?.some(Xt=>!!Xt.effects)?null:{geom:nt,asFill:"CIMPolygonSymbol"===Ut.type}}case"sdf":return{geom:et.geom,asFill:et.asFill}}return null}function zt(et){let _t=1/0,Nt=-1/0,nt=1/0,Ut=-1/0;for(const Xt of et)for(const jt of Xt)jt[0]<_t&&(_t=jt[0]),jt[0]>Nt&&(Nt=jt[0]),jt[1]Ut&&(Ut=jt[1]);return[_t,nt,Nt,Ut]}function pt(et){return et?et.rings?zt(et.rings):et.paths?zt(et.paths):(0,yt.YX)(et)?[et.xmin,et.ymin,et.xmax,et.ymax]:null:null}function Lt(et,_t,Nt,nt,Ut){const[Xt,jt,Wt,te]=et;if(Wt0&&(wt=(_t.xmax-_t.xmin)/(_t.ymax-_t.ymin),Vt=nt.x/(Nt*wt),Gt=nt.y/Nt):(Vt=nt.x,Gt=nt.y)),Vt=.5*(_t.xmax+_t.xmin)+Vt*(_t.xmax-_t.xmin),Gt=.5*(_t.ymax+_t.ymin)+Gt*(_t.ymax-_t.ymin),Vt-=Xt,Gt-=jt,Vt*=ht,Gt*=ht,Vt+=ut,Gt+=ut;let re=Vt/St-.5,me=Gt/kt-.5;return Ut&&(re*=Nt*wt,me*=Nt),[Ht,re,me]}function dt(et){const _t=function se(et){return et?et.rings?et.rings:et.paths?et.paths:void 0!==et.xmin&&void 0!==et.ymin&&void 0!==et.xmax&&void 0!==et.ymax?[[[et.xmin,et.ymin],[et.xmin,et.ymax],[et.xmax,et.ymax],[et.xmax,et.ymin],[et.xmin,et.ymin]]]:null:null}(et.geom),Nt=function $(et){let _t=1/0,Nt=-1/0,nt=1/0,Ut=-1/0;for(const Xt of et)for(const jt of Xt)jt[0]<_t&&(_t=jt[0]),jt[0]>Nt&&(Nt=jt[0]),jt[1]Ut&&(Ut=jt[1]);return new Dt.Z(_t,nt,Nt-_t,Ut-nt)}(_t),Xt=Math.floor(31.5),jt=(128-2*(Xt+1))/Math.max(Nt.width,Nt.height),Wt=Math.round(Nt.width*jt)+2*Xt,te=Math.round(Nt.height*jt)+2*Xt,Q=[];for(const bt of _t)if(bt&&bt.length>1){const rt=[];for(const ut of bt){let[ht,St]=ut;ht-=Nt.x,St-=Nt.y,ht*=jt,St*=jt,ht+=Xt-.5,St+=Xt-.5,rt.push(et.asFill?[ht,St]:[Math.round(ht),Math.round(St)])}if(et.asFill){const ut=rt.length-1;rt[0][0]===rt[ut][0]&&rt[0][1]===rt[ut][1]||rt.push(rt[0])}Q.push(rt)}const Pt=function Tt(et,_t,Nt,nt){const Ut=_t*Nt,Xt=new Array(Ut),jt=nt*nt+1;for(let Wt=0;Wt_t&&(Ht=_t),Vt<0&&(Vt=0),Gt>Nt&&(Gt=Nt);const wt=bt[0]-Pt[0],re=bt[1]-Pt[1],me=wt*wt+re*re;for(let oe=kt;oeme?(ie=bt[0],ne=bt[1]):(It/=me,ie=Pt[0]+It*wt,ne=Pt[1]+It*re);const h=(oe-ie)*(oe-ie)+(pe-ne)*(pe-ne),I=(Nt-pe-1)*_t+oe;h_t-nt&&(St=_t-nt),ktNt-nt&&(Ht=Nt-nt);for(let Vt=kt;VtVt==Q[1]>Vt)continue;const Gt=(Nt-Vt-1)*_t;for(let wt=ht;wt{at.d(fe,{Z:()=>Bt});var At=at(23841);class Bt{constructor(zt){zt&&(this._textRasterizationCanvas=zt)}rasterizeText(zt,pt){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const Lt=this._textRasterizationCanvas,dt=Lt.getContext("2d");this._setFontProperties(dt,pt),this._parameters=pt,this._textLines=zt.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const Tt=this._computeTextWidth(dt,pt),{decoration:Kt,weight:Zt}=pt.font;this._lineThroughWidthOffset=Kt&&"line-through"===Kt?.1*this._lineHeight:0;const et=this._lineHeight*this._textLines.length;Lt.width=Tt+2*this._lineThroughWidthOffset,Lt.height=et,this._renderedLineHeight=Math.round(this._lineHeight*pt.pixelRatio),this._renderedHaloSize=pt.halo.size*pt.pixelRatio,this._renderedWidth=Tt*pt.pixelRatio,this._renderedHeight=et*pt.pixelRatio,this._lineThroughWidthOffset*=pt.pixelRatio;const Nt=pt.halo&&pt.halo.color?pt.halo.color:[0,0,0,0];this._fillStyle=function Dt($){return`rgba(${$.slice(0,3).toString()},${$[3]})`}(pt.color??[0,0,0,0]),this._haloStyle=function yt($){return`rgb(${$.slice(0,3).toString()})`}(Nt);const nt=this._renderedLineHeight,Ut=this._renderedHaloSize;dt.save(),dt.clearRect(0,0,Lt.width,Lt.height),this._setFontProperties(dt,pt);const Xt=function se($,zt){return"center"===$?.5*zt:"right"===$?zt:0}(dt.textAlign,this._renderedWidth)+Ut,jt=Ut,Wt=Ut>0;let te=this._lineThroughWidthOffset,Q=0;Wt&&this._renderHalo(dt,Xt,jt,te,Q,pt),Q+=jt,te+=Xt;for(const kt of this._textLines)Wt?(dt.globalCompositeOperation="destination-out",dt.fillStyle="rgb(0, 0, 0)",dt.fillText(kt,te,Q),dt.globalCompositeOperation="source-over",dt.fillStyle=this._fillStyle,dt.fillText(kt,te,Q)):(dt.fillStyle=this._fillStyle,dt.fillText(kt,te,Q)),Kt&&"none"!==Kt&&this._renderDecoration(dt,te,Q,Kt,Zt),Q+=nt;dt.restore();const Pt=this._renderedWidth+2*this._lineThroughWidthOffset,bt=this._renderedHeight,rt=dt.getImageData(0,0,Pt,bt),ut=new Uint8Array(rt.data);if(pt.premultiplyColors){let kt;for(let Ht=0;Ht600)&&(Lt+=.3*zt.measureText("w").width),Lt+=2*this._parameters.halo.size,Math.round(Lt)}_computeLineHeight(){let zt=1.275*this._parameters.size;const pt=this._parameters.font.decoration;return pt&&"underline"===pt&&(zt*=1.3),Math.round(zt+2*this._parameters.halo.size)}_renderDecoration(zt,pt,Lt,dt,Tt,Kt){const Zt=.9*this._lineHeight,et="bold"===Tt?.06:"bolder"===Tt?.09:.04;switch(zt.textAlign){case"center":pt-=this._renderedWidth/2;break;case"right":pt-=this._renderedWidth}const _t=zt.textBaseline;if("underline"===dt)switch(_t){case"top":Lt+=Zt;break;case"middle":Lt+=Zt/2}else if("line-through"===dt)switch(_t){case"top":Lt+=Zt/1.5;break;case"middle":Lt+=Zt/3}const Nt=Kt?1.5*Kt:Math.ceil(Zt*et);zt.save(),zt.beginPath(),zt.strokeStyle=zt.fillStyle,zt.lineWidth=Nt,zt.moveTo(pt-this._lineThroughWidthOffset,Lt),zt.lineTo(pt+this._renderedWidth+2*this._lineThroughWidthOffset,Lt),zt.stroke(),zt.restore()}}},93678:(ve,fe,at)=>{at.d(fe,{S:()=>J,c:()=>kt});var At=at(15861),yt=at(91558),Dt=at(17002),Bt=at(58817),se=at(63290),$=at(62208),zt=at(23841),pt=at(77275),Lt=at(46679),dt=at(35909),Tt=at(7547);const et=new Set(["StartTimeOffset","Duration","RepeatDelay"]);function _t(n,O){return et.has(O)?function Zt(n){return.05*Math.max(Math.round(n/.05),1)}(n):n}var Nt=at(47139),nt=at(80991),Ut=at(73608),Xt=at(39236),jt=at(39351);const Q=53290320,Pt=10,bt=se.Z.getLogger("esri.symbols.cim.cimAnalyzer");function rt(n){switch(n){case"Butt":return Tt.RL.BUTT;case"Square":return Tt.RL.SQUARE;default:return Tt.RL.ROUND}}function ut(n){switch(n){case"Bevel":return Tt.AH.BEVEL;case"Miter":return Tt.AH.MITER;default:return Tt.AH.ROUND}}function ht(n,O,z,mt){let j;n[O]?j=n[O]:(j={},n[O]=j),j[z]=mt}function St(n){const O=n.markerPlacement;return O&&O.angleToLine?Tt.v2.MAP:Tt.v2.SCREEN}function kt(n,O,z,mt,j){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,At.Z)(function*(n,O,z,mt,j){const ct=mt??[];if(!n)return ct;let st,tt;const it={};if("CIMSymbolReference"!==n.type)return bt.error("Expect cim type to be 'CIMSymbolReference'"),ct;if(st=n.symbol,tt=n.primitiveOverrides,tt){const vt=[];for(const Ft of tt){const Ot=Ft.valueExpressionInfo;if(Ot&&O){const ee=(0,Lt.Yi)(Ot.expression,O.spatialReference,O.fields).then(Jt=>{(0,$.Wi)(Jt)||ht(it,Ft.primitiveName,Ft.propertyName,Jt)});vt.push(ee)}else null!=Ft.value&&ht(it,Ft.primitiveName,Ft.propertyName,Ft.value)}vt.length>0&&(yield Promise.all(vt))}const Mt=[];switch(dt.B$.fetchResources(st,z,Mt),Mt.length>0&&(yield Promise.all(Mt)),st.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":Vt(st,tt,it,O,ct,z,j)}return ct})).apply(this,arguments)}function Vt(n,O,z,mt,j,ct,st){if(!n)return;const tt=n.symbolLayers;if(!tt)return;const it=n.effects;let Mt;const vt=dt.B$.getSize(n);"CIMPointSymbol"===n.type&&"Map"===n.angleAlignment&&(Mt=Tt.v2.MAP);let Ft=tt.length;for(;Ft--;){const Ot=tt[Ft];if(!Ot||!1===Ot.enable)continue;let Rt;it&&it.length&&(Rt=[...it]);const ee=Ot.effects;ee&&ee.length&&(it?Rt.push(...ee):Rt=[...ee]);const Jt=[];let $t;dt.E0.findEffectOverrides(Rt,O,Jt),$t=Jt.length>0?k(Rt,Jt,z,mt):Rt;const Qt=[];switch(dt.E0.findApplicableOverrides(Ot,O,Qt),Ot.type){case"CIMSolidFill":Gt(Ot,$t,z,Qt,mt,j);break;case"CIMPictureFill":wt(Ot,$t,z,Qt,mt,ct,j);break;case"CIMHatchFill":re(Ot,$t,z,Qt,mt,j);break;case"CIMGradientFill":me(Ot,$t,z,Qt,mt,j);break;case"CIMSolidStroke":oe(Ot,$t,z,Qt,mt,j,"CIMPolygonSymbol"===n.type,vt);break;case"CIMPictureStroke":pe(Ot,$t,z,Qt,mt,j,"CIMPolygonSymbol"===n.type,vt);break;case"CIMGradientStroke":ie(Ot,$t,z,Qt,mt,j,"CIMPolygonSymbol"===n.type,vt);break;case"CIMCharacterMarker":if(ne(Ot,$t,z,Qt,mt,j))break;break;case"CIMPictureMarker":if(ne(Ot,$t,z,Qt,mt,j))break;"CIMLineSymbol"===n.type&&(Mt=St(Ot)),It(Ot,$t,z,Qt,mt,ct,j,Mt,vt);break;case"CIMVectorMarker":if(ne(Ot,$t,z,Qt,mt,j))break;"CIMLineSymbol"===n.type&&(Mt=St(Ot)),h(Ot,$t,z,Qt,mt,j,ct,Mt,vt,st);break;default:bt.error("Cannot analyze CIM layer",Ot.type)}}}function Gt(n,O,z,mt,j,ct){const st=n.primitiveName,tt=(0,nt.NO)(n.color),[it,Mt]=K(mt,st,O,null,null),vt=(0,pt.hP)(JSON.stringify(n)+Mt).toString();ct.push({type:"fill",templateHash:vt,materialHash:it?()=>vt:vt,cim:n,materialOverrides:null,colorLocked:n.colorLocked,color:N(st,z,"Color",j,tt,Ct),height:0,angle:0,offsetX:0,offsetY:0,scaleX:1,effects:O,applyRandomOffset:!1,sampleAlphaOnly:!0})}function wt(n,O,z,mt,j,ct,st){const tt=n.primitiveName,it=n.tintColor?(0,nt.NO)(n.tintColor):{r:255,g:255,b:255,a:1},[Mt,vt]=K(mt,tt,O,null,null),Ft=(0,pt.hP)(JSON.stringify(n)+vt).toString(),Ot=(0,pt.hP)(`${n.url}${JSON.stringify(n.colorSubstitutions)}`).toString();let Rt=(0,nt.NA)(n.scaleX);if("width"in n){const ee=n.width;let Jt=1;const $t=ct.getResource(n.url);(0,$.pC)($t)&&(Jt=$t.width/$t.height),Rt/=Jt*(n.height/ee)}st.push({type:"fill",templateHash:Ft,materialHash:Mt?()=>Ot:Ot,cim:n,materialOverrides:null,colorLocked:n.colorLocked,effects:O,color:N(tt,z,"TintColor",j,it,Ct),height:N(tt,z,"Height",j,n.height),scaleX:N(tt,z,"ScaleX",j,Rt),angle:N(tt,z,"Rotation",j,(0,nt.NA)(n.rotation)),offsetX:N(tt,z,"OffsetX",j,(0,nt.NA)(n.offsetX)),offsetY:N(tt,z,"OffsetY",j,(0,nt.NA)(n.offsetY)),url:n.url,applyRandomOffset:!1,sampleAlphaOnly:!1})}function re(n,O,z,mt,j,ct){const st=["Rotation","OffsetX","OffsetY"],tt=mt.filter(ee=>ee.primitiveName!==n.primitiveName||!st.includes(ee.propertyName)),it=n.primitiveName,[Mt,vt]=K(mt,it,O,null,null),Ft=(0,pt.hP)(JSON.stringify(n)+vt).toString(),Ot=(0,pt.hP)(`${n.separation}${JSON.stringify(n.lineSymbol)}`).toString();let Rt={r:255,g:255,b:255,a:1};if(n.lineSymbol){const ee=n.lineSymbol?.symbolLayers.find(Jt=>"CIMSolidStroke"===Jt.type);ee&&(Rt=(0,nt.NO)(ee.color))}ct.push({type:"fill",templateHash:Ft,materialHash:Mt?F(Ot,z,tt,j):Ot,cim:n,materialOverrides:tt,colorLocked:n.colorLocked,effects:O,color:Rt,height:N(it,z,"Separation",j,n.separation),scaleX:1,angle:N(it,z,"Rotation",j,(0,nt.NA)(n.rotation)),offsetX:N(it,z,"OffsetX",j,(0,nt.NA)(n.offsetX)),offsetY:N(it,z,"OffsetY",j,(0,nt.NA)(n.offsetY)),applyRandomOffset:!1,sampleAlphaOnly:!0})}function me(n,O,z,mt,j,ct){const st=n.primitiveName,[tt,it]=K(mt,st,O,null,null),Mt=(0,pt.hP)(JSON.stringify(n)+it).toString();ct.push({type:"fill",templateHash:Mt,materialHash:tt?F(Mt,z,mt,j):Mt,cim:n,materialOverrides:null,colorLocked:n.colorLocked,effects:O,color:{r:128,g:128,b:128,a:1},height:0,angle:0,offsetX:0,offsetY:0,scaleX:1,applyRandomOffset:!1,sampleAlphaOnly:!1})}function oe(n,O,z,mt,j,ct,st,tt){const it=n.primitiveName,Mt=(0,nt.NO)(n.color),vt=void 0!==n.width?n.width:4,Ft=rt(n.capStyle),Ot=ut(n.joinStyle),Rt=n.miterLimit,[ee,Jt]=K(mt,it,O,null,null),$t=(0,pt.hP)(JSON.stringify(n)+Jt).toString();let Qt,he;if(O&&O instanceof Array&&O.length>0){const _e=O[O.length-1];if("CIMGeometricEffectDashes"===_e.type&&"NoConstraint"===_e.lineDashEnding&&null===_e.offsetAlongLine){const le=(O=[...O]).pop();Qt=le.dashTemplate,he=le.scaleDash}}ct.push({type:"line",templateHash:$t,materialHash:ee?()=>$t:$t,cim:n,materialOverrides:null,isOutline:st,colorLocked:n.colorLocked,effects:O,color:N(it,z,"Color",j,Mt,Ct),width:N(it,z,"Width",j,vt),cap:N(it,z,"CapStyle",j,Ft),join:N(it,z,"JoinStyle",j,Ot),miterLimit:N(it,z,"MiterLimit",j,Rt),referenceWidth:tt,zOrder:q(n.name),dashTemplate:Qt,scaleDash:he,sampleAlphaOnly:!0})}function pe(n,O,z,mt,j,ct,st,tt){const it=(0,pt.hP)(`${n.url}${JSON.stringify(n.colorSubstitutions)}`).toString(),Mt=n.primitiveName,vt=(0,nt.NO)(n.tintColor),Ft=void 0!==n.width?n.width:4,Ot=rt(n.capStyle),Rt=ut(n.joinStyle),ee=n.miterLimit,[Jt,$t]=K(mt,Mt,O,null,null),Qt=(0,pt.hP)(JSON.stringify(n)+$t).toString();ct.push({type:"line",templateHash:Qt,materialHash:Jt?()=>it:it,cim:n,materialOverrides:null,isOutline:st,colorLocked:n.colorLocked,effects:O,color:N(Mt,z,"TintColor",j,vt,Ct),width:N(Mt,z,"Width",j,Ft),cap:N(Mt,z,"CapStyle",j,Ot),join:N(Mt,z,"JoinStyle",j,Rt),miterLimit:N(Mt,z,"MiterLimit",j,ee),referenceWidth:tt,zOrder:q(n.name),dashTemplate:null,scaleDash:!1,url:n.url,sampleAlphaOnly:!1})}function ie(n,O,z,mt,j,ct,st,tt){const it=n.primitiveName,Mt=void 0!==n.width?n.width:4,vt=rt(n.capStyle),Ft=ut(n.joinStyle),Ot=n.miterLimit,[Rt,ee]=K(mt,it,O,null,null),Jt=(0,pt.hP)(JSON.stringify(n)+ee).toString();ct.push({type:"line",templateHash:Jt,materialHash:Rt?F(Jt,z,mt,j):Jt,cim:n,materialOverrides:null,isOutline:st,colorLocked:n.colorLocked,effects:O,color:{r:128,g:128,b:128,a:1},width:N(it,z,"Width",j,Mt),cap:N(it,z,"CapStyle",j,vt),join:N(it,z,"JoinStyle",j,Ft),miterLimit:N(it,z,"MiterLimit",j,Ot),referenceWidth:tt,zOrder:q(n.name),dashTemplate:null,scaleDash:!1,sampleAlphaOnly:!1})}function ne(n,O,z,mt,j,ct){const st=n.markerPlacement;if(!st||"CIMMarkerPlacementInsidePolygon"!==st.type)return!1;const tt=st,it=Math.abs(tt.stepX),Mt=Math.abs(tt.stepY);if(0===it||0===Mt)return!0;const vt=["Rotation","OffsetX","OffsetY"],Ft=mt.filter(le=>le.primitiveName!==n.primitiveName||!vt.includes(le.propertyName)),Ot="url"in n?n.url:null,[Rt,ee]=K(mt,tt.primitiveName,O,null,null),Jt=(0,pt.hP)(JSON.stringify(n)+ee).toString();let $t,Qt,he=null;if("Random"===st.gridType){const le=(0,zt.Wz)(jt.C1),de=Math.max(Math.floor(le/it),1),be=Math.max(Math.floor(le/Mt),1);$t=Mt*be,he=Se=>Se?Se*be:0,Qt=de*it/$t}else st.shiftOddRows?($t=2*Mt,he=le=>le?2*le:0,Qt=it/Mt*.5):($t=Mt,he=null,Qt=it/Mt);let _e={r:255,g:255,b:255,a:1};return"tintColor"in n&&(_e=(0,nt.NO)(n.tintColor)),ct.push({type:"fill",templateHash:Jt,materialHash:Rt?F(Jt,z,Ft,j):Jt,cim:n,materialOverrides:Ft,colorLocked:n.colorLocked,effects:O,color:N(tt.primitiveName,z,"TintColor",j,_e,Ct),height:N(tt.primitiveName,z,"StepY",j,$t,he),scaleX:Qt,angle:N(tt.primitiveName,z,"GridAngle",j,tt.gridAngle),offsetX:N(tt.primitiveName,z,"OffsetX",j,(0,nt.NA)(tt.offsetX)),offsetY:N(tt.primitiveName,z,"OffsetY",j,(0,nt.NA)(tt.offsetY)),url:Ot,applyRandomOffset:"Random"===st.gridType,sampleAlphaOnly:!Ot}),!0}function It(n,O,z,mt,j,ct,st,tt,it){const Mt=n.primitiveName,vt=(0,nt.NA)(n.size);let Ft=(0,nt.NA)(n.scaleX,1);const Ot=(0,nt.NA)(n.rotation),Rt=(0,nt.NA)(n.offsetX),ee=(0,nt.NA)(n.offsetY),Jt=n.tintColor?(0,nt.NO)(n.tintColor):{r:255,g:255,b:255,a:1},$t=(0,pt.hP)(`${n.url}${JSON.stringify(n.colorSubstitutions)}${JSON.stringify(n.animatedSymbolProperties)}`).toString(),Qt=E(n.markerPlacement,mt,z,j),he=function U(n,O,z,mt){const j=[];if(dt.E0.findApplicableOverrides(n,O,j),0===j.length)return n;for(const ct of j)if(ct.valueExpressionInfo){const st=z[ct.primitiveName]&&z[ct.primitiveName][ct.propertyName];st instanceof Lt.mz&&(ct.fn=(tt,it,Mt)=>(0,Xt.Z)(st,tt,{$view:Mt},mt.geometryType,it))}return(ct,st,tt)=>{for(const vt of j)vt.fn&&(vt.value=vt.fn(ct,st,tt));const it=(0,Bt.d9)(n),Mt=n.primitiveName;for(const vt of j)if(vt.primitiveName===Mt){const Ft=v(vt.propertyName);if(null!=vt.value){const Ot=_t(vt.value,vt.propertyName);Ot!==it[Ft]&&(it[Ft]=Ot)}}return it}}(n.animatedSymbolProperties,mt,z,j),[_e,le]=K(mt,Mt,O,Qt,he),de=(0,pt.hP)(JSON.stringify(n)+le).toString(),be=n.anchorPoint??{x:0,y:0};if("width"in n){const ye=n.width;let ue=1;const Ce=ct.getResource(n.url);(0,$.pC)(Ce)&&(ue=Ce.width/Ce.height),Ft/=ue*(vt/ye)}function Se(ye,ue){return(0,nt.hf)(he,ye,ue)}st.push({type:"marker",templateHash:de,materialHash:n.animatedSymbolProperties&&!0===n.animatedSymbolProperties.randomizeStartTime?(ye,ue,Ce,xe)=>{const ke=function te(n){return Math.floor(function Wt(n,O){let z;if("string"==typeof n)z=(0,pt.hP)(n+`-seed(${O})`);else{let mt=12;z=n^O;do{z=107*(z>>8^z)+mt|0}while(0!=--mt)}return(1+z/(1<<31))/2}(n,Q)*Pt)}(xe),Le=Se(ye,ue);return $t+`-MATERIALGROUP(${ke})-ASP(${JSON.stringify(Le)})`}:_e?(ye,ue)=>{const Ce=Se(ye,ue);return $t+`-ASP(${JSON.stringify(Ce)})`}:$t,cim:n,materialOverrides:null,colorLocked:n.colorLocked,effects:O,scaleSymbolsProportionally:!1,alignment:tt,size:N(Mt,z,"Size",j,vt),scaleX:N(Mt,z,"ScaleX",j,Ft),rotation:N(Mt,z,"Rotation",j,Ot),offsetX:N(Mt,z,"OffsetX",j,Rt),offsetY:N(Mt,z,"OffsetY",j,ee),color:N(Mt,z,"TintColor",j,Jt,Ct),anchorPoint:{x:be.x,y:-be.y},isAbsoluteAnchorPoint:"Relative"!==n.anchorPointUnits,outlineColor:{r:0,g:0,b:0,a:0},outlineWidth:0,frameHeight:0,rotateClockwise:n.rotateClockwise,referenceSize:it,sizeRatio:1,markerPlacement:Qt,url:n.url,animatedSymbolProperties:he})}function h(n,O,z,mt,j,ct,st,tt,it,Mt){const vt=n.markerGraphics;if(!vt)return;let Ft=0;if(n.scaleSymbolsProportionally){const Rt=n.frame;Rt&&(Ft=Rt.ymax-Rt.ymin)}const Ot=E(n.markerPlacement,mt,z,j);for(const Rt of vt)if(Rt){const ee=Rt.symbol;if(!ee)continue;switch(ee.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":Y(n,O,Ot,null,Rt,mt,z,j,ct,st,tt,it,Ft,Mt);break;case"CIMTextSymbol":I(n,O,Ot,Rt,z,mt,j,ct,tt,it,Ft)}}}function I(n,O,z,mt,j,ct,st,tt,it,Mt,vt){dt.E0.findApplicableOverrides(mt,ct,[]);const Ot=mt.geometry;if(!("x"in Ot)||!("y"in Ot))return;const Rt=mt.symbol,ee=(0,nt.BX)(Rt),Jt=(0,nt.wi)(Rt.fontStyleName),$t=(0,Dt.BN)(Rt.fontFamilyName);Rt.font={family:$t,decoration:ee,...Jt};const Qt=n.frame,he=Ot.x-.5*(Qt.xmin+Qt.xmax),_e=Ot.y-.5*(Qt.ymin+Qt.ymax),le=n.size/vt,de=n.primitiveName,be=(0,nt.NA)(Rt.height)*le,Se=(0,nt.NA)(Rt.angle),ge=(0,nt.NA)(n.offsetX)+((0,nt.NA)(Rt.offsetX)+he)*le,ye=(0,nt.NA)(n.offsetY)+((0,nt.NA)(Rt.offsetY)+_e)*le,ue=(0,nt.NO)((0,nt.W7)(Rt));let Ce=(0,nt.NO)((0,nt.$Z)(Rt)),xe=(0,nt.F)(Rt);xe||(Ce=(0,nt.NO)((0,nt.W7)(Rt.haloSymbol)),xe=Rt.haloSize*le);const[ke,Le]=K(ct,de,O,z,null),Ne=JSON.stringify(n.effects)+Number(n.colorLocked).toString()+JSON.stringify(n.anchorPoint)+n.anchorPointUnits+JSON.stringify(n.markerPlacement)+n.size.toString(),Te=(0,pt.hP)(JSON.stringify(mt)+Ne+Le).toString();let Me=N(mt.primitiveName,j,"TextString",st,mt.textString,nt.QI,Rt.textCase);if(null==Me)return;const{fontStyleName:Ee}=Rt,Ae=$t+(Ee?"-"+Ee.toLowerCase():"-regular"),Ie=Ae;"string"==typeof Me&&Me.includes("[")&&Rt.fieldMap&&(Me=(0,nt.Qs)(Rt.fieldMap,Me,Rt.textCase)),tt.push({type:"text",templateHash:Te,materialHash:ke||"function"==typeof Me||Me.match(/\[(.*?)\]/)?(S,e,i)=>Ie+"-"+(0,nt.hf)(Me,S,e,i):Ie+"-"+(0,pt.hP)(Me),cim:Rt,materialOverrides:null,colorLocked:n.colorLocked,effects:O,alignment:it,anchorPoint:{x:n.anchorPoint?n.anchorPoint.x:0,y:n.anchorPoint?n.anchorPoint.y:0},isAbsoluteAnchorPoint:"Relative"!==n.anchorPointUnits,fontName:Ae,decoration:ee,weight:N(de,j,"Weight",st,Jt.weight),style:N(de,j,"Size",st,Jt.style),size:N(de,j,"Size",st,be),angle:N(de,j,"Rotation",st,Se),offsetX:N(de,j,"OffsetX",st,ge),offsetY:N(de,j,"OffsetY",st,ye),horizontalAlignment:(0,nt.X_)(Rt.horizontalAlignment),verticalAlignment:(0,nt.FG)(Rt.verticalAlignment),text:Me,color:ue,outlineColor:Ce,outlineSize:xe,referenceSize:Mt,sizeRatio:1,markerPlacement:z})}function Y(n,O,z,mt,j,ct,st,tt,it,Mt,vt,Ft,Ot,Rt){const ee=j.symbol,Jt=ee.symbolLayers;if(!Jt)return;if(Rt)return void Z(n,O,z,mt,j,st,ct,tt,it,Mt,vt,Ft,Ot);let $t=Jt.length;if(W(Jt))return void function R(n,O,z,mt,j,ct,st,tt,it,Mt,vt,Ft,Ot){const Rt=j.geometry,ee=ct[0],Jt=ct[1],$t=(0,Nt.bk)(Rt);if(!$t)return;const Qt="Relative"!==n.anchorPointUnits,[he,_e,le]=(0,Nt.UV)($t,n.frame,n.size,n.anchorPoint,Qt),de={type:"sdf",geom:Rt,asFill:!0},be=n.primitiveName,Se=(0,nt.NA)(n.size),ge=(0,nt.NA)(n.rotation),ye=(0,nt.NA)(n.offsetX),ue=(0,nt.NA)(n.offsetY),Ce=Jt.path,xe=Jt.primitiveName,ke=ee.primitiveName,Le=(0,nt.NO)((0,nt.W7)(Jt)),Ne=(0,nt.NO)((0,nt.$Z)(ee)),Te=(0,nt.F)(ee);let Me=!1,Ee="";for(const e of st)e.primitiveName!==xe&&e.primitiveName!==ke&&e.primitiveName!==be||(void 0!==e.value?Ee+=`-${e.primitiveName}-${e.propertyName}-${JSON.stringify(e.value)}`:e.valueExpressionInfo&&(Me=!0));const Ae=JSON.stringify({...n,markerGraphics:null}),Ie=(0,pt.hP)(JSON.stringify(de)+Ce).toString(),S={type:"marker",templateHash:(0,pt.hP)(JSON.stringify(j)+JSON.stringify(Jt)+JSON.stringify(ee)+Ae+Ee).toString(),materialHash:Me?()=>Ie:Ie,cim:de,materialOverrides:null,colorLocked:n.colorLocked,effects:O,scaleSymbolsProportionally:n.scaleSymbolsProportionally,alignment:vt,anchorPoint:{x:_e,y:le},isAbsoluteAnchorPoint:Qt,size:N(n.primitiveName,tt,"Size",it,Se),rotation:N(n.primitiveName,tt,"Rotation",it,ge),offsetX:N(n.primitiveName,tt,"OffsetX",it,ye),offsetY:N(n.primitiveName,tt,"OffsetY",it,ue),scaleX:1,frameHeight:Ot,rotateClockwise:n.rotateClockwise,referenceSize:Ft,sizeRatio:he,color:N(xe,tt,"Color",it,Le,Ct),outlineColor:N(ke,tt,"Color",it,Ne,Ct),outlineWidth:N(ke,tt,"Width",it,Te),markerPlacement:z,path:Ce,animatedSymbolProperties:mt};Mt.push(S)}(n,O,z,mt,j,Jt,ct,st,tt,it,vt,Ft,Ot);const Qt=Ut.j.applyEffects(ee.effects,j.geometry,Mt.geometryEngine);if(Qt)for(;$t--;){const he=Jt[$t];if(he&&!1!==he.enable)switch(he.type){case"CIMSolidFill":case"CIMSolidStroke":{const _e=Ut.j.applyEffects(he.effects,Qt,Mt.geometryEngine),le=(0,Nt.bk)(_e);if(!le)continue;const de="Relative"!==n.anchorPointUnits,[be,Se,ge]=(0,Nt.UV)(le,n.frame,n.size,n.anchorPoint,de),ye="CIMSolidFill"===he.type,ue={type:"sdf",geom:_e,asFill:ye},Ce=n.primitiveName,xe=(0,nt.NA)(n.size)??10,ke=(0,nt.NA)(n.rotation),Le=(0,nt.NA)(n.offsetX),Ne=(0,nt.NA)(n.offsetY),Te=he.path,Me=he.primitiveName,Ee=(0,nt.NO)(ye?(0,nt.W7)(he):(0,nt.$Z)(he)),Ae=ye?{r:0,g:0,b:0,a:0}:(0,nt.NO)((0,nt.$Z)(he)),Ie=(0,nt.F)(he);if(!ye&&!Ie)break;let S=!1,e="";for(const y of ct)y.primitiveName!==Me&&y.primitiveName!==Ce||(void 0!==y.value?e+=`-${y.primitiveName}-${y.propertyName}-${JSON.stringify(y.value)}`:y.valueExpressionInfo&&(S=!0));(0,$.pC)(O)&&"function"==typeof O&&(S=!0);const i=JSON.stringify({...n,markerGraphics:null}),r=(0,pt.hP)(JSON.stringify(ue)+Te).toString(),x={type:"marker",templateHash:(0,pt.hP)(JSON.stringify(j)+JSON.stringify(he)+i+e).toString(),materialHash:S?()=>r:r,cim:ue,materialOverrides:null,colorLocked:n.colorLocked,effects:O,scaleSymbolsProportionally:n.scaleSymbolsProportionally,alignment:vt,anchorPoint:{x:Se,y:ge},isAbsoluteAnchorPoint:de,size:N(n.primitiveName,st,"Size",tt,xe),rotation:N(n.primitiveName,st,"Rotation",tt,ke),offsetX:N(n.primitiveName,st,"OffsetX",tt,Le),offsetY:N(n.primitiveName,st,"OffsetY",tt,Ne),scaleX:1,frameHeight:Ot,rotateClockwise:n.rotateClockwise,referenceSize:Ft,sizeRatio:be,color:N(Me,st,"Color",tt,Ee,Ct),outlineColor:N(Me,st,"Color",tt,Ae,Ct),outlineWidth:N(Me,st,"Width",tt,Ie),markerPlacement:z,animatedSymbolProperties:mt,path:Te};it.push(x);break}default:Z(n,O,z,mt,j,st,ct,tt,it,Mt,vt,Ft,Ot)}}}function Z(n,O,z,mt,j,ct,st,tt,it,Mt,vt,Ft,Ot){const Rt=function ft(n,O){return{type:n.type,enable:!0,name:n.name,colorLocked:n.colorLocked,primitiveName:n.primitiveName,anchorPoint:n.anchorPoint,anchorPointUnits:n.anchorPointUnits,offsetX:0,offsetY:0,rotateClockwise:n.rotateClockwise,rotation:0,size:n.size,billboardMode3D:n.billboardMode3D,depth3D:n.depth3D,frame:n.frame,markerGraphics:[O],scaleSymbolsProportionally:n.scaleSymbolsProportionally,respectFrame:n.respectFrame,clippingPath:n.clippingPath}}(n,j),ee=["Rotation","OffsetX","OffsetY"],Jt=st.filter(ue=>ue.primitiveName!==n.primitiveName||!ee.includes(ue.propertyName));let $t="";for(const ue of st)void 0!==ue.value&&($t+=`-${ue.primitiveName}-${ue.propertyName}-${JSON.stringify(ue.value)}`);const[Qt,he,_e]=dt.B$.getTextureAnchor(Rt,Mt),le=n.primitiveName,de=(0,nt.NA)(n.rotation),be=(0,nt.NA)(n.offsetX),Se=(0,nt.NA)(n.offsetY),ge=(0,pt.hP)(JSON.stringify(Rt)+$t).toString(),ye={type:"marker",templateHash:ge,materialHash:Jt.length>0||(0,$.pC)(O)&&"function"==typeof O?F(ge,ct,Jt,tt):ge,cim:Rt,materialOverrides:Jt,colorLocked:n.colorLocked,effects:O,scaleSymbolsProportionally:n.scaleSymbolsProportionally,alignment:vt,anchorPoint:{x:Qt,y:he},isAbsoluteAnchorPoint:!1,size:n.size,rotation:N(le,ct,"Rotation",tt,de),offsetX:N(le,ct,"OffsetX",tt,be),offsetY:N(le,ct,"OffsetY",tt,Se),color:{r:255,g:255,b:255,a:1},outlineColor:{r:0,g:0,b:0,a:0},outlineWidth:0,scaleX:1,frameHeight:Ot,rotateClockwise:n.rotateClockwise,referenceSize:Ft,sizeRatio:_e/(0,zt.F2)(n.size),markerPlacement:z,animatedSymbolProperties:mt};it.push(ye)}function q(n){if(n&&0===n.indexOf("Level_")){const O=parseInt(n.substr(6),10);if(!isNaN(O))return O}return 0}function Ct(n){if(!n||0===n.length)return null;const O=new yt.Z(n).toRgba();return{r:O[0],g:O[1],b:O[2],a:O[3]}}function N(n,O,z,mt,j,ct,st){const tt=O[n];if(tt){const it=tt[z];if("string"==typeof it||"number"==typeof it||it instanceof Array)return ct?ct.call(null,it,st):it;if(null!=it&&it instanceof Lt.mz)return(Mt,vt,Ft)=>{let Ot=(0,Xt.Z)(it,Mt,{$view:Ft},mt.geometryType,vt);return null!==Ot&&ct&&(Ot=ct.call(null,Ot,st)),null!==Ot?Ot:j}}return j}function v(n){return n&&n.charAt(0).toLowerCase()+n.substr(1)}function k(n,O,z,mt){for(const j of O)if(j.valueExpressionInfo){const ct=z[j.primitiveName]&&z[j.primitiveName][j.propertyName];ct instanceof Lt.mz&&(j.fn=(st,tt,it)=>(0,Xt.Z)(ct,st,{$view:it},mt.geometryType,tt))}return(j,ct,st)=>{for(const it of O)it.fn&&(it.value=it.fn(j,ct,st));const tt=[];for(let it of n){const Mt=it?.primitiveName;if(Mt){let vt=!1;for(const Ft of O)if(Ft.primitiveName===Mt){const Ot=v(Ft.propertyName);null!=Ft.value&&Ft.value!==it[Ot]&&(vt||(it=(0,Bt.d9)(it),vt=!0),it[Ot]=Ft.value)}}tt.push(it)}return tt}}function E(n,O,z,mt){const j=[];if(dt.E0.findApplicableOverrides(n,O,j),0===j.length)return n;for(const ct of j)if(ct.valueExpressionInfo){const st=z[ct.primitiveName]&&z[ct.primitiveName][ct.propertyName];st instanceof Lt.mz&&(ct.fn=(tt,it,Mt)=>(0,Xt.Z)(st,tt,{$view:Mt},mt.geometryType,it))}return(ct,st,tt)=>{for(const vt of j)vt.fn&&(vt.value=vt.fn(ct,st,tt));const it=(0,Bt.d9)(n),Mt=n.primitiveName;for(const vt of j)if(vt.primitiveName===Mt){const Ft=v(vt.propertyName);null!=vt.value&&vt.value!==it[Ft]&&(it[Ft]=vt.value)}return it}}function F(n,O,z,mt){for(const j of z)if(j.valueExpressionInfo){const ct=O[j.primitiveName]&&O[j.primitiveName][j.propertyName];ct instanceof Lt.mz&&(j.fn=(st,tt,it)=>(0,Xt.Z)(ct,st,{$view:it},mt.geometryType,tt))}return(j,ct,st)=>{for(const tt of z)tt.fn&&(tt.value=tt.fn(j,ct,st));return(0,pt.hP)(n+dt.E0.buildOverrideKey(z)).toString()}}function J(n,O){if(!O||0===O.length)return n;const z=(0,Bt.d9)(n);return dt.E0.applyOverrides(z,O),z}function K(n,O,z,mt,j){let ct=!1,st="";for(const tt of n)tt.primitiveName===O&&(void 0!==tt.value?st+=`-${tt.primitiveName}-${tt.propertyName}-${JSON.stringify(tt.value)}`:tt.valueExpressionInfo&&(ct=!0));return(0,$.pC)(z)&&"function"==typeof z&&(ct=!0),(0,$.pC)(mt)&&"function"==typeof mt&&(ct=!0),(0,$.pC)(j)&&"function"==typeof j&&(ct=!0),[ct,st]}const W=n=>n&&2===n.length&&n[0].enable&&n[1].enable&&"CIMSolidStroke"===n[0].type&&"CIMSolidFill"===n[1].type&&!n[0].effects&&!n[1].effects},73608:(ve,fe,at)=>{at.d(fe,{j:()=>$});var At=at(91179),yt=at(72283),Dt=at(29214),Bt=at(95727);class ${static executeEffects(pt,Lt,dt){const Tt=(0,yt.GP)(Lt);let Zt=new Dt.M(Tt);for(const et of pt){const _t=(0,Bt.h)(et);_t&&(Zt=_t.execute(Zt,et,1.3333333333333333,dt))}return Zt}static next(pt){const Lt=pt.next();return(0,yt.wp)(Lt),Lt}static applyEffects(pt,Lt,dt){if(!pt)return Lt;let Tt=new Dt.M(Lt);for(const et of pt){const _t=(0,Bt.h)(et);_t&&(Tt=_t.execute(Tt,et,1,dt))}let Kt,Zt=null;for(;Kt=Tt.next();)Zt?(0,At.l9)(Zt)?(0,At.l9)(Kt)&&Zt.paths.push(...Kt.paths):(0,At.oU)(Zt)&&(0,At.oU)(Kt)&&Zt.rings.push(...Kt.rings):Zt=Kt;return Zt}}},40028:(ve,fe,at)=>{var At,yt,dt;function Dt(dt){switch(dt){case"left":return At.Left;case"right":return At.Right;case"center":return At.Center}}function Bt(dt){switch(dt){case"top":return yt.Top;case"middle":return yt.Center;case"baseline":return yt.Baseline;case"bottom":return yt.Bottom}}function se(dt){switch(dt){case"above-left":case"esriServerPointLabelPlacementAboveLeft":return[At.Right,yt.Bottom];case"above-center":case"above-along":case"esriServerPointLabelPlacementAboveCenter":case"esriServerLinePlacementAboveAlong":return[At.Center,yt.Bottom];case"above-right":case"esriServerPointLabelPlacementAboveRight":return[At.Left,yt.Bottom];case"center-left":case"esriServerPointLabelPlacementCenterLeft":return[At.Right,yt.Center];case"center-center":case"center-along":case"esriServerPointLabelPlacementCenterCenter":case"esriServerLinePlacementCenterAlong":case"always-horizontal":case"esriServerPolygonPlacementAlwaysHorizontal":return[At.Center,yt.Center];case"center-right":case"esriServerPointLabelPlacementCenterRight":return[At.Left,yt.Center];case"below-left":case"esriServerPointLabelPlacementBelowLeft":return[At.Right,yt.Top];case"below-center":case"below-along":case"esriServerPointLabelPlacementBelowCenter":case"esriServerLinePlacementBelowAlong":return[At.Center,yt.Top];case"below-right":case"esriServerPointLabelPlacementBelowRight":return[At.Left,yt.Top];default:return console.debug(`Found invalid placement type ${dt}`),[At.Center,yt.Center]}}function $(dt){switch(dt){case At.Right:return-1;case At.Center:return 0;case At.Left:return 1;default:return console.debug(`Found invalid horizontal alignment ${dt}`),0}}function zt(dt){switch(dt){case yt.Top:return 1;case yt.Center:return 0;case yt.Bottom:case yt.Baseline:return-1;default:return console.debug(`Found invalid vertical alignment ${dt}`),0}}function pt(dt){switch(dt){case"left":return At.Left;case"right":return At.Right;case"center":return At.Center}}function Lt(dt){switch(dt){case"above-along":case"below-along":case"center-along":case"esriServerLinePlacementAboveAlong":case"esriServerLinePlacementBelowAlong":case"esriServerLinePlacementCenterAlong":return!0;default:return!1}}at.d(fe,{Hd:()=>pt,NS:()=>Lt,TR:()=>yt,b7:()=>Bt,g:()=>$,kH:()=>Dt,qv:()=>se,tf:()=>zt}),(dt=At||(At={}))[dt.Left=-1]="Left",dt[dt.Center=0]="Center",dt[dt.Right=1]="Right",function(dt){dt[dt.Top=1]="Top",dt[dt.Center=0]="Center",dt[dt.Bottom=-1]="Bottom",dt[dt.Baseline=2]="Baseline"}(yt||(yt={}))},25797:(ve,fe,at)=>{at.d(fe,{Nr:()=>Pt});var At=at(31478),yt=at(12225),Dt=at(67831),Bt=at(9545),se=at(40028),$=at(5254),zt=at(84439);class pt{constructor(rt,ut,ht,St){this.center=(0,Bt.f)(rt,ut),this.centerT=(0,Bt.c)(),this.halfWidth=ht/2,this.halfHeight=St/2,this.width=ht,this.height=St}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(rt){this.center[0]=rt}set y(rt){this.center[1]=rt}clone(){return new pt(this.x,this.y,this.width,this.height)}serialize(rt){return rt.writeF32(this.center[0]),rt.writeF32(this.center[1]),rt.push(this.width),rt.push(this.height),rt}findCollisionDelta(rt,ut=4){const ht=Math.abs(rt.centerT[0]-this.centerT[0]),St=Math.abs(rt.centerT[1]-this.centerT[1]),Vt=Math.min((rt.halfWidth+this.halfWidth+ut)/ht,(rt.halfHeight+this.halfHeight+ut)/St);return Math.log2(Vt)}extend(rt){const ut=Math.min(this.xmin,rt.xmin),ht=Math.min(this.ymin,rt.ymin),St=Math.max(this.xmax,rt.xmax)-ut,kt=Math.max(this.ymax,rt.ymax)-ht,Ht=ut+St/2,Vt=ht+kt/2;this.width=St,this.height=kt,this.halfWidth=St/2,this.halfHeight=kt/2,this.x=Ht,this.y=Vt}static deserialize(rt){const ut=rt.readF32(),ht=rt.readF32(),St=rt.readInt32(),kt=rt.readInt32();return new pt(ut,ht,St,kt)}}const _t=Math.PI/180;class Nt{constructor(rt,ut,ht,St){this._rotationT=(0,yt.c)(),this._xBounds=0,this._yBounds=0,this.minZoom=0,this.maxZoom=255,this._bounds=null;const kt=ht.rect,Ht=new Float32Array(8);ut*=St;const Vt=ht.code?kt.width*St:ht.metrics.width,Gt=ht.code?kt.height*St:ht.metrics.height;Ht[0]=rt*=St,Ht[1]=ut,Ht[2]=rt+Vt,Ht[3]=ut,Ht[4]=rt,Ht[5]=ut+Gt,Ht[6]=rt+Vt,Ht[7]=ut+Gt,this._data=Ht,this._setTextureCoords(kt),this._scale=St,this._mosaic=ht,this.x=rt,this.y=ut,this.maxOffset=Math.max(rt+Vt,ut+Gt)}get width(){return this._mosaic.metrics.width*this._scale}get mosaic(){return this._mosaic}set angle(rt){this._angle=rt,(0,At.b)(this._rotationT,-rt),this._setOffsets(this._data)}get angle(){return this._angle}get xTopLeft(){return this._data[0]}get yTopLeft(){return this._data[1]}get xBottomRight(){return this._data[6]}get yBottomRight(){return this._data[7]}get texcoords(){return this._texcoords}get textureBinding(){return this._mosaic.textureBinding}get offsets(){return this._offsets||this._setOffsets(this._data),this._offsets}get char(){return String.fromCharCode(this._mosaic.code)}get code(){return this._mosaic.code}get bounds(){if(!this._bounds){const{height:rt,width:ut}=this._mosaic.metrics,ht=ut*this._scale,St=Math.abs(rt)*this._scale,kt=new Float32Array(8);kt[0]=this.x,kt[1]=this.y,kt[2]=this.x+ht,kt[3]=this.y,kt[4]=this.x,kt[5]=this.y+St,kt[6]=this.x+ht,kt[7]=this.y+St;const Ht=(0,At.m)((0,yt.c)(),this._rotationT,this._transform);(0,yt.t)(kt,kt,Ht);let Vt=1/0,Gt=1/0,wt=0,re=0;for(let ne=0;ne<4;ne++){const It=kt[2*ne],h=kt[2*ne+1];Vt=Math.min(Vt,It),Gt=Math.min(Gt,h),wt=Math.max(wt,It),re=Math.max(re,h)}const me=wt-Vt,oe=re-Gt;this._bounds=new pt(Vt+me/2,Gt+oe/2,me,oe)}return this._bounds}setTransform(rt){this._transform=rt,this._offsets=null}_setOffsets(rt){this._offsets||(this._offsets={upperLeft:0,upperRight:0,lowerLeft:0,lowerRight:0});const ut=this._offsets,ht=new Float32Array(8),St=(0,At.m)((0,yt.c)(),this._rotationT,this._transform);(0,yt.t)(ht,rt,St),ut.upperLeft=(0,$.UJ)(8*ht[0],8*ht[1]),ut.upperRight=(0,$.UJ)(8*ht[2],8*ht[3]),ut.lowerLeft=(0,$.UJ)(8*ht[4],8*ht[5]),ut.lowerRight=(0,$.UJ)(8*ht[6],8*ht[7])}_setTextureCoords({x:rt,y:ut,width:ht,height:St}){this._texcoords={upperLeft:(0,$.UJ)(rt,ut),upperRight:(0,$.UJ)(rt+ht,ut),lowerLeft:(0,$.UJ)(rt,ut+St),lowerRight:(0,$.UJ)(rt+ht,ut+St)}}}const nt=(bt,rt)=>({code:0,page:0,sdf:!0,rect:new zt.Z(0,0,11,8),textureBinding:rt,metrics:{advance:0,height:4,width:bt,left:0,top:0}});class Ut{constructor(rt,ut,ht){this._rotation=0,this._decorate(rt,ut,ht),this.glyphs=rt,this.bounds=this._createBounds(rt),this.isMultiline=ut.length>1,this._hasRotation=0!==ht.angle,this._transform=this._createGlyphTransform(this.bounds,ht);for(const St of rt)St.setTransform(this._transform)}setRotation(rt){if(0===rt&&0===this._rotation)return;this._rotation=rt;const ut=this._transform,ht=(0,At.b)((0,yt.c)(),rt);(0,At.m)(ut,ht,ut);for(const St of this.glyphs)St.setTransform(this._transform)}_decorate(rt,ut,ht){if(!ht.decoration||"none"===ht.decoration||!rt.length)return;const St=ht.scale,kt="underline"===ht.decoration?30:20,Ht=rt[0].textureBinding;for(const Vt of ut)rt.push(new Nt(Vt.startX*St,Vt.startY*St+kt*St,nt((Vt.width+Vt.glyphWidthEnd)*St,Ht),1))}get boundsT(){const rt=this.bounds,ut=(0,Dt.s)((0,Bt.c)(),rt.x,rt.y);if((0,Dt.t)(ut,ut,this._transform),this._hasRotation){const ht=Math.max(rt.width,rt.height);return new pt(ut[0],ut[1],ht,ht)}return new pt(ut[0],ut[1],rt.width,rt.height)}_createBounds(rt){let ut=1/0,ht=1/0,St=0,kt=0;for(const Gt of rt)ut=Math.min(ut,Gt.xTopLeft),ht=Math.min(ht,Gt.yTopLeft),St=Math.max(St,Gt.xTopLeft+Gt.width),kt=Math.max(kt,Gt.yBottomRight);const Ht=St-ut,Vt=kt-ht;return new pt(ut+Ht/2,ht+Vt/2,Ht,Vt)}_createGlyphTransform(rt,ut){const ht=_t*ut.angle,St=(0,yt.c)(),kt=(0,Bt.c)();return(0,At.t)(St,St,(0,Dt.s)(kt,ut.xOffset,-ut.yOffset)),ut.isCIM?(0,At.r)(St,St,ht):((0,At.t)(St,St,(0,Dt.s)(kt,rt.x,rt.y)),(0,At.r)(St,St,ht),(0,At.t)(St,St,(0,Dt.s)(kt,-rt.x,-rt.y))),St}}class Xt{constructor(rt,ut,ht,St,kt,Ht){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(ut,ht)),this.end=Math.max(0,Math.max(ut,ht)),this.end10===bt,Wt=bt=>32===bt;function Pt(bt,rt,ut){const ht=ut.scale,St=new Array,kt=function te(bt,rt,ut){const ht=new Array,kt=ut.maxLineWidth*(1/ut.scale),Ht=rt?bt.length-1:0,Vt=rt?-1:bt.length,Gt=rt?-1:1;let wt=Ht,re=0,me=0,oe=wt,pe=oe,ie=0,ne=1/0,It=0;for(;wt!==Vt;){const{code:I,metrics:Y}=bt[wt],R=Math.abs(Y.top);jt(I)||Wt(I)||(ne=Math.min(ne,R),It=Math.max(It,R+Y.height)),jt(I)?(wt!==Ht&&(ht.push(new Xt(bt,oe,wt-Gt,re,ne,It)),ne=1/0,It=0),re=0,oe=wt+Gt,pe=wt+Gt,me=0):Wt(I)?(pe=wt+Gt,me=0,ie=Y.advance,re+=Y.advance):re>kt?(pe!==oe?(re-=ie,ht.push(new Xt(bt,oe,pe-2*Gt,re-me,ne,It)),ne=1/0,It=0,oe=pe,re=me):(ht.push(new Xt(bt,oe,wt-Gt,re,ne,It)),ne=1/0,It=0,oe=wt,pe=wt,re=0),re+=Y.advance,me+=Y.advance):(re+=Y.advance,me+=Y.advance),wt+=Gt}const h=new Xt(bt,oe,wt-Gt,re,ne,It);return h.start>=0&&h.end{n.r(s),n.d(s,{c:()=>p});var u,h,r,i=n(1719),a={exports:{}};u=a,void 0!==(r=a.exports,Object.defineProperty(r,"__esModule",{value:!0}),h=void(r.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n. l.",_era_bc:"p\u0159. n. l.",A:"dop.",P:"odp.",AM:"dop.",PM:"odp.","A.M.":"dop.","P.M.":"odp.",January:"ledna",February:"\xfanora",March:"b\u0159ezna",April:"dubna",May:"kv\u011btna",June:"\u010dervna",July:"\u010dervence",August:"srpna",September:"z\xe1\u0159\xed",October:"\u0159\xedjna",November:"listopadu",December:"prosince",Jan:"led",Feb:"\xfano",Mar:"b\u0159e",Apr:"dub","May(short)":"kv\u011b",Jun:"\u010dvn",Jul:"\u010dvc",Aug:"srp",Sep:"z\xe1\u0159",Oct:"\u0159\xedj",Nov:"lis",Dec:"pro",Sunday:"ned\u011ble",Monday:"pond\u011bl\xed",Tuesday:"\xfater\xfd",Wednesday:"st\u0159eda",Thursday:"\u010dtvrtek",Friday:"p\xe1tek",Saturday:"sobota",Sun:"ne",Mon:"po",Tue:"\xfat",Wed:"st",Thu:"\u010dt",Fri:"p\xe1",Sat:"so",_dateOrd:function(o){var e="th";if(o<11||o>13)switch(o%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Zv\u011bt\u0161en\xed",Play:"P\u0159ehr\xe1t",Stop:"Ukon\u010dit iteraci (Stop)",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"Na\u010d\xedt\xe1n\xed",Home:"Dom\u016f",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Tisk",Image:"Sn\xedmek",Data:"Data",Print:"Tisk","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const p=function c(_,r){for(var o=0;oe[t]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,i.g)(a.exports)},[a.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3705.5216a88ad83612f0.js b/apps/n/porrtal-io-app/public/angular/3705.5216a88ad83612f0.js deleted file mode 100644 index ed0fc2dc..00000000 --- a/apps/n/porrtal-io-app/public/angular/3705.5216a88ad83612f0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3705],{88755:(O,f,o)=>{o.d(f,{Y:()=>d,h:()=>m});var y=o(21726),c=o(84687);function m(p){return{origin:"portal-item",url:(0,y.mN)(p.itemUrl),portal:p.portal||c.Z.getDefault(),portalItem:p,readResourcePaths:[]}}function d(p){return{origin:"portal-item",messages:[],writtenProperties:[],url:p.itemUrl?(0,y.mN)(p.itemUrl):null,portal:p.portal||c.Z.getDefault(),portalItem:p}}},83705:(O,f,o)=>{o.r(f),o.d(f,{getFirstLayerOrTableId:()=>B,getNumLayersAndTables:()=>T,getSubtypeGroupLayerIds:()=>S,load:()=>P,preprocessFSItemData:()=>K});var y=o(15861),c=o(26584),m=o(44917),d=o(38305),p=o(84687),h=o(55463),b=o(88755),M=o(37281),U=o(39683),D=o(45205);function P(e,r){return L.apply(this,arguments)}function L(){return(L=(0,y.Z)(function*(e,r){const t=e.instance.portalItem;if(t&&t.id)return yield t.load(r),i(e),_(e,r)})).apply(this,arguments)}function i(e){const r=e.instance.portalItem;if(!e.supportedTypes.includes(r.type))throw new c.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:r.type,expectedType:e.supportedTypes.join(", ")})}function _(e,r){return l.apply(this,arguments)}function l(){return(l=(0,y.Z)(function*(e,r){const t=e.instance,n=t.portalItem,{url:a,title:s}=n,u=(0,b.h)(n);if("group"===t.type)return t.read({title:s},u),E(t,e);a&&t.read({url:a},u);const g=yield C(e,r);return g&&t.read(g,u),t.resourceReferences={portalItem:n,paths:u.readResourcePaths},"subtype-group"!==t.type&&t.read({title:s},u),(0,U.y)(t,u)})).apply(this,arguments)}function E(e,r){let t;const n=e.portalItem.type,a=r.layerModuleTypeMap,s=(0,M._$)(e.portalItem,"Oriented Imagery Layer")??!1;switch(n){case"Feature Service":t=s?a.OrientedImageryLayer:a.FeatureLayer;break;case"Stream Service":t=a.StreamLayer;break;case"Scene Service":t=a.SceneLayer;break;case"Feature Collection":t=a.FeatureLayer;break;default:throw new c.Z("portal:unsupported-item-type-as-group",`The item type '${n}' is not supported as a 'IGroupLayer'`)}let u;return t().then(g=>(u=g,C(r))).then(function(){var g=(0,y.Z)(function*(I){let v=()=>u;if("Feature Service"===n){if(S(I=yield K(I,e.portalItem.url)).length){const F=a.SubtypeGroupLayer,$=yield F();v=N=>"SubtypeGroupLayer"===N.layerType?$:u}return A(e,v,I)}return T(I)>0?A(e,v,I):function W(e,r){return e.portalItem.url?(0,D.b)(e.portalItem.url).then(t=>{function n(a){return{id:a.id,name:a.name}}t&&A(e,r,{layers:t.layers?.map(n),tables:t.tables?.map(n)})}):Promise.resolve()}(e,v)});return function(I){return g.apply(this,arguments)}}())}function A(e,r,t){let n=t.layers||[];const a=t.tables||[];if("Feature Collection"===e.portalItem.type&&(n.forEach(s=>{"Table"===s?.layerDefinition?.type&&a.push(s)}),n=n.filter(s=>"Table"!==s?.layerDefinition?.type)),"coverage"in t){const s=function x(e){const{coverage:r}=e;if(!r)return null;const t=new URL(r);if(r.toLowerCase().includes("item.html")){const n=t.searchParams.get("id");return m.Z.fromPortalItem({portalItem:new h.default({id:n,url:t.origin})})}if((0,d.B5)(r))return m.Z.fromArcGISServerUrl({url:r});throw new c.Z("portal:oriented-imagery-layer-coverage","the provided coverage url couldn't be loaded as a layer")}(t);e.add(s)}n.reverse().forEach(s=>{const u=j(e,r(s),t,s);e.add(u)}),a.reverse().forEach(s=>{const u=j(e,r(s),t,s);e.tables.add(u)})}function j(e,r,t,n){const a=new r({portalItem:e.portalItem.clone(),layerId:n.id});if("subtype-group"!==a.type&&(a.sublayerTitleMode="service-name"),"Feature Collection"===e.portalItem.type){const s={origin:"portal-item",portal:e.portalItem.portal||p.Z.getDefault()};a.read(n,s);const u=t.showLegend;null!=u&&a.read({showLegend:u},s)}return a}function C(e,r){if(!1===e.supportsData)return Promise.resolve(void 0);const t=e.instance;return t.portalItem.fetchData("json",r).catch(()=>null).then(n=>{if(function w(e){return"stream"!==e.type&&"oriented-imagery"!==e.type&&"layerId"in e}(t)){let a,s=!0;if(n&&T(n)>0){if(null==t.layerId){const u=S(n);t.layerId="subtype-group"===t.type?u?.[0]:B(n)}a=function Z(e,r){const{layerId:t}=r,n=e.layers?.find(a=>a.id===t)||e.tables?.find(a=>a.id===t);return n&&function G(e,r){return!("feature"===r.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===r.type&&!("layerType"in e))}(n,r)?n:null}(n,t),a&&(1===T(n)&&(s=!1),null!=n.showLegend&&(a.showLegend=n.showLegend))}return s&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),a}return n})}function K(e,r){return R.apply(this,arguments)}function R(){return(R=(0,y.Z)(function*(e,r){if(null==e?.layers||null==e?.tables){const t=yield(0,D.b)(r);(e=e||{}).layers=e.layers||t?.layers,e.tables=e.tables||t?.tables}return e})).apply(this,arguments)}function B(e){const r=e.layers;if(r&&r.length)return r[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function T(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function S(e){const r=[];return e?.layers?.forEach(t=>{"SubtypeGroupLayer"===t.layerType&&r.push(t.id)}),r}},37281:(O,f,o)=>{o.d(f,{$o:()=>D,Kz:()=>L,_$:()=>M,ck:()=>U,qj:()=>b});var y=o(15861),c=o(55915),m=o(65234),d=o(46367);function p(i){return h.apply(this,arguments)}function h(){return(h=(0,y.Z)(function*(i){const _=i.spatialReference;if(_.isWGS84)return i.clone();if(_.isWebMercator)return(0,d.Sx)(i);const l=m.Z.WGS84;return yield(0,c.iQ)(_,l),(0,c.iV)(i,l)})).apply(this,arguments)}function b(i,_){if(!M(i,_)){const l=i.typeKeywords;l?l.push(_):i.typeKeywords=[_]}}function M(i,_){return!!i.typeKeywords?.includes(_)}function U(i,_){const l=i.typeKeywords;if(l){const E=l.indexOf(_);E>-1&&l.splice(E,1)}}function D(i){return P.apply(this,arguments)}function P(){return(P=(0,y.Z)(function*(i){const _=i.clone().normalize();let l;if(_.length>1)for(const E of _)l?E.width>l.width&&(l=E):l=E;else l=_[0];return p(l)})).apply(this,arguments)}const L={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"}},45205:(O,f,o)=>{o.d(f,{b:()=>m});var y=o(15861),c=o(84792);function m(p){return d.apply(this,arguments)}function d(){return(d=(0,y.Z)(function*(p){const{data:h}=yield(0,c.default)(p,{responseType:"json",query:{f:"json"}});return h})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3714.74ec01ee64c0edbc.js b/apps/n/porrtal-io-app/public/angular/3714.74ec01ee64c0edbc.js deleted file mode 100644 index 912ca886..00000000 --- a/apps/n/porrtal-io-app/public/angular/3714.74ec01ee64c0edbc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3714],{73714:(N_,Te,Se)=>{Se.r(Te),Se.d(Te,{p:()=>Sr});var J,ce={exports:{}};J=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,typeof __filename<"u"&&(J=J||__filename),ce.exports=function(e){var K,W;(e=void 0!==(e=e||{})?e:{}).ready=new Promise(function(t,n){K=t,W=n});var x,w,Z,ge,oe,Pe,Me=Object.assign({},e),ye="./this.program",ve="object"==typeof window,$="function"==typeof importScripts,De="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,U="";De?(U=$?require("path").dirname(U)+"/":__dirname+"/",Pe=()=>{oe||(ge=require("fs"),oe=require("path"))},x=function(t,n){return Pe(),t=oe.normalize(t),ge.readFileSync(t,n?void 0:"utf8")},Z=t=>{var n=x(t,!0);return n.buffer||(n=new Uint8Array(n)),n},w=(t,n,r)=>{Pe(),t=oe.normalize(t),ge.readFile(t,function(o,p){o?r(o):n(p.buffer)})},process.argv.length>1&&(ye=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",function(t){if(!(t instanceof c_))throw t}),process.on("unhandledRejection",function(t){throw t}),e.inspect=function(){return"[Emscripten Module object]"}):(ve||$)&&($?U=self.location.href:typeof document<"u"&&document.currentScript&&(U=document.currentScript.src),J&&(U=J),U=0!==U.indexOf("blob:")?U.substr(0,U.replace(/[?#].*/,"").lastIndexOf("/")+1):"",x=t=>{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(null),n.responseText},$&&(Z=t=>{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),w=(t,n,r)=>{var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="arraybuffer",o.onload=()=>{200==o.status||0==o.status&&o.response?n(o.response):r()},o.onerror=r,o.send(null)});var Q,me,hr=e.print||console.log.bind(console),V=e.printErr||console.warn.bind(console);Object.assign(e,Me),Me=null,e.thisProgram&&(ye=e.thisProgram),e.wasmBinary&&(Q=e.wasmBinary),"object"!=typeof WebAssembly&&q("no native wasm support detected");var Re=!1;function fe(t,n){t||q(n)}var Ae,H,ee,pe,S,Y,ie,ae,Ge,Ce=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Ie(t,n,r){for(var o=n+r,p=n;t[p]&&!(p>=o);)++p;if(p-n>16&&t.buffer&&Ce)return Ce.decode(t.subarray(n,p));for(var a="";n>10,56320|1023&_e)}}else a+=String.fromCharCode((31&u)<<6|c)}else a+=String.fromCharCode(u)}return a}function j(t,n){return t?Ie(ee,t,n):""}function je(t,n,r,o){if(!(o>0))return 0;for(var p=r,a=r+o-1,u=0;u=55296&&c<=57343&&(c=65536+((1023&c)<<10)|1023&t.charCodeAt(++u)),c<=127){if(r>=a)break;n[r++]=c}else if(c<=2047){if(r+1>=a)break;n[r++]=192|c>>6,n[r++]=128|63&c}else if(c<=65535){if(r+2>=a)break;n[r++]=224|c>>12,n[r++]=128|c>>6&63,n[r++]=128|63&c}else{if(r+3>=a)break;n[r++]=240|c>>18,n[r++]=128|c>>12&63,n[r++]=128|c>>6&63,n[r++]=128|63&c}}return n[r]=0,r-p}function Le(t){for(var n=0,r=0;r=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++r)),o<=127?++n:n+=o<=2047?2:o<=65535?3:4}return n}function Ue(t){var n=Le(t)+1,r=dr(n);return r&&je(t,H,r,n),r}function Ye(t){Ae=t,e.HEAP8=H=new Int8Array(t),e.HEAP16=pe=new Int16Array(t),e.HEAP32=S=new Int32Array(t),e.HEAPU8=ee=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=Y=new Uint32Array(t),e.HEAPF32=ie=new Float32Array(t),e.HEAPF64=ae=new Float64Array(t)}var C,Fe=[],we=[],xe=[],k=0,te=null;function q(t){e.onAbort&&e.onAbort(t),V(t="Aborted("+t+")"),Re=!0,t+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(t);throw W(n),n}function He(t){return t.startsWith("data:application/octet-stream;base64,")}function Xe(t){return t.startsWith("file://")}function ze(t){try{if(t==C&&Q)return new Uint8Array(Q);if(Z)return Z(t);throw"both async and sync fetching of the wasm failed"}catch(n){q(n)}}function le(t){for(;t.length>0;){var n=t.shift();if("function"!=typeof n){var r=n.func;"number"==typeof r?void 0===n.arg?Ze(r)():Ze(r)(n.arg):r(void 0===n.arg?null:n.arg)}else n(e)}}He(C="pe-wasm.wasm")||(C=function Nr(t){return e.locateFile?e.locateFile(t,U):U+t}(C));var se=[];function Ze(t){var n=se[t];return n||(t>=se.length&&(se.length=t+1),se[t]=n=Ge.get(t)),n}function $r(t){try{return me.grow(t-Ae.byteLength+65535>>>16),Ye(me.buffer),1}catch{}}var Ee={};function ne(){if(!ne.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ye||"./this.program"};for(var n in Ee)void 0===Ee[n]?delete t[n]:t[n]=Ee[n];var r=[];for(var n in t)r.push(n+"="+t[n]);ne.strings=r}return ne.strings}var p_=[null,[],[]];function i_(t,n){var r=p_[t];0===n||10===n?((1===t?hr:V)(Ie(r,0)),r.length=0):r.push(n)}var u_={c:function wr(t,n,r){return 0},p:function xr(t,n,r){},f:function Hr(t,n,r){return 0},d:function Xr(t,n,r,o){},n:function zr(t){},m:function Zr(t,n){},o:function Br(t,n,r){},g:function Wr(){return Date.now()},h:function kr(t,n){var r=new Date(1e3*S[t>>2]);S[n>>2]=r.getSeconds(),S[n+4>>2]=r.getMinutes(),S[n+8>>2]=r.getHours(),S[n+12>>2]=r.getDate(),S[n+16>>2]=r.getMonth(),S[n+20>>2]=r.getFullYear()-1900,S[n+24>>2]=r.getDay();var o=new Date(r.getFullYear(),0,1),p=(r.getTime()-o.getTime())/864e5|0;S[n+28>>2]=p,S[n+36>>2]=-60*r.getTimezoneOffset();var a=new Date(r.getFullYear(),6,1).getTimezoneOffset(),u=o.getTimezoneOffset(),c=0|(a!=u&&r.getTimezoneOffset()==Math.min(u,a));S[n+32>>2]=c},i:function de(t,n,r){de.called||(de.called=!0,function Vr(t,n,r){var o=(new Date).getFullYear(),p=new Date(o,0,1),a=new Date(o,6,1),u=p.getTimezoneOffset(),c=a.getTimezoneOffset(),B=Math.max(u,c);function _e(S_){var Or=S_.toTimeString().match(/\(([A-Za-z ]+)\)$/);return Or?Or[1]:"GMT"}S[t>>2]=60*B,S[n>>2]=Number(u!=c);var O_=_e(p),T_=_e(a),Er=Ue(O_),br=Ue(T_);c>2]=Er,Y[r+4>>2]=br):(Y[r>>2]=br,Y[r+4>>2]=Er)}(t,n,r))},k:function qr(){q("")},s:function Jr(t,n,r){ee.copyWithin(t,n,n+r)},l:function Qr(t){var u,n=ee.length,r=2147483648;if((t>>>=0)>r)return!1;for(var p=1;p<=4;p*=2){var a=n*(1+.2/p);if(a=Math.min(a,t+100663296),$r(Math.min(r,(u=Math.max(t,a))+(65536-u%65536)%65536)))return!0}return!1},q:function t_(t,n){var r=0;return ne().forEach(function(o,p){var a=n+r;Y[t+4*p>>2]=a,function Mr(t,n,r){for(var o=0;o>0]=t.charCodeAt(o);r||(H[n>>0]=0)}(o,a),r+=o.length+1}),0},r:function n_(t,n){var r=ne();Y[t>>2]=r.length;var o=0;return r.forEach(function(p){o+=p.length+1}),Y[n>>2]=o,0},a:function r_(t){return 52},e:function __(t,n,r,o){return 52},j:function o_(t,n,r,o,p){return 70},b:function a_(t,n,r,o){for(var p=0,a=0;a>2],c=Y[n+4>>2];n+=8;for(var B=0;B>2]=p,0}};(function Yr(){var t={a:u_};function n(a,u){e.asm=a.exports,Ye((me=e.asm.t).buffer),Ge=e.asm.Yb,function Gr(t){we.unshift(t)}(e.asm.u),function jr(t){if(k--,e.monitorRunDependencies&&e.monitorRunDependencies(k),0==k&&te){var n=te;te=null,n()}}()}function r(a){n(a.instance)}function o(a){return function Ur(){if(!Q&&(ve||$)){if("function"==typeof fetch&&!Xe(C))return fetch(C,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+C+"'";return t.arrayBuffer()}).catch(function(){return ze(C)});if(w)return new Promise(function(t,n){w(C,function(r){t(new Uint8Array(r))},n)})}return Promise.resolve().then(function(){return ze(C)})}().then(function(u){return WebAssembly.instantiate(u,t)}).then(function(u){return u}).then(a,function(u){V("failed to asynchronously prepare wasm: "+u),q(u)})}if(function Ir(t){k++,e.monitorRunDependencies&&e.monitorRunDependencies(k)}(),e.instantiateWasm)try{return e.instantiateWasm(t,n)}catch(a){return V("Module.instantiateWasm callback failed with error: "+a),!1}(function p(){return Q||"function"!=typeof WebAssembly.instantiateStreaming||He(C)||Xe(C)||De||"function"!=typeof fetch?o(r):fetch(C,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,t).then(r,function(u){return V("wasm streaming compile failed: "+u),V("falling back to ArrayBuffer instantiation"),o(r)})})})().catch(W)})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.u).apply(null,arguments)};var Be=e._emscripten_bind_PeObject_getCode_0=function(){return(Be=e._emscripten_bind_PeObject_getCode_0=e.asm.v).apply(null,arguments)},We=e._emscripten_bind_PeObject_getName_1=function(){return(We=e._emscripten_bind_PeObject_getName_1=e.asm.w).apply(null,arguments)},ke=e._emscripten_bind_PeObject_getType_0=function(){return(ke=e._emscripten_bind_PeObject_getType_0=e.asm.x).apply(null,arguments)},Ve=e._emscripten_bind_PeCoordsys_getCode_0=function(){return(Ve=e._emscripten_bind_PeCoordsys_getCode_0=e.asm.y).apply(null,arguments)},qe=e._emscripten_bind_PeCoordsys_getName_1=function(){return(qe=e._emscripten_bind_PeCoordsys_getName_1=e.asm.z).apply(null,arguments)},Je=e._emscripten_bind_PeCoordsys_getType_0=function(){return(Je=e._emscripten_bind_PeCoordsys_getType_0=e.asm.A).apply(null,arguments)},Ke=e._emscripten_bind_VoidPtr___destroy___0=function(){return(Ke=e._emscripten_bind_VoidPtr___destroy___0=e.asm.B).apply(null,arguments)},$e=e._emscripten_bind_PeDatum_getSpheroid_0=function(){return($e=e._emscripten_bind_PeDatum_getSpheroid_0=e.asm.C).apply(null,arguments)},Qe=e._emscripten_bind_PeDatum_getCode_0=function(){return(Qe=e._emscripten_bind_PeDatum_getCode_0=e.asm.D).apply(null,arguments)},et=e._emscripten_bind_PeDatum_getName_1=function(){return(et=e._emscripten_bind_PeDatum_getName_1=e.asm.E).apply(null,arguments)},tt=e._emscripten_bind_PeDatum_getType_0=function(){return(tt=e._emscripten_bind_PeDatum_getType_0=e.asm.F).apply(null,arguments)},nt=e._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=function(){return(nt=e._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=e.asm.G).apply(null,arguments)},rt=e._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=function(){return(rt=e._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=e.asm.H).apply(null,arguments)},_t=e._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=function(){return(_t=e._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=e.asm.I).apply(null,arguments)},ot=e._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=function(){return(ot=e._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=e.asm.J).apply(null,arguments)},pt=e._emscripten_bind_PeDefs_get_PE_DD_MAX_0=function(){return(pt=e._emscripten_bind_PeDefs_get_PE_DD_MAX_0=e.asm.K).apply(null,arguments)},it=e._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=function(){return(it=e._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=e.asm.L).apply(null,arguments)},at=e._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=function(){return(at=e._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=e.asm.M).apply(null,arguments)},st=e._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=function(){return(st=e._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=e.asm.N).apply(null,arguments)},ut=e._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=function(){return(ut=e._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=e.asm.O).apply(null,arguments)},ct=e._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=function(){return(ct=e._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=e.asm.P).apply(null,arguments)},gt=e._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=function(){return(gt=e._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=e.asm.Q).apply(null,arguments)},Pt=e._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=function(){return(Pt=e._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=e.asm.R).apply(null,arguments)},yt=e._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=function(){return(yt=e._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=e.asm.S).apply(null,arguments)},mt=e._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=function(){return(mt=e._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=e.asm.T).apply(null,arguments)},ft=e._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=function(){return(ft=e._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=e.asm.U).apply(null,arguments)},lt=e._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=function(){return(lt=e._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=e.asm.V).apply(null,arguments)},dt=e._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=function(){return(dt=e._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=e.asm.W).apply(null,arguments)},Et=e._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=function(){return(Et=e._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=e.asm.X).apply(null,arguments)},bt=e._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=function(){return(bt=e._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=e.asm.Y).apply(null,arguments)},Ot=e._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=function(){return(Ot=e._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=e.asm.Z).apply(null,arguments)},Tt=e._emscripten_bind_PeDefs_get_PE_PARM_X0_0=function(){return(Tt=e._emscripten_bind_PeDefs_get_PE_PARM_X0_0=e.asm._).apply(null,arguments)},St=e._emscripten_bind_PeDefs_get_PE_PARM_ND_0=function(){return(St=e._emscripten_bind_PeDefs_get_PE_PARM_ND_0=e.asm.$).apply(null,arguments)},Nt=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=function(){return(Nt=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=e.asm.aa).apply(null,arguments)},ht=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=function(){return(ht=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=e.asm.ba).apply(null,arguments)},Mt=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=function(){return(Mt=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=e.asm.ca).apply(null,arguments)},vt=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=function(){return(vt=e._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=e.asm.da).apply(null,arguments)},Dt=e._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=function(){return(Dt=e._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=e.asm.ea).apply(null,arguments)},Rt=e._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=function(){return(Rt=e._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=e.asm.fa).apply(null,arguments)},At=e._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=function(){return(At=e._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=e.asm.ga).apply(null,arguments)},Gt=e._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=function(){return(Gt=e._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=e.asm.ha).apply(null,arguments)},Ct=e._emscripten_bind_PeFactory_initialize_1=function(){return(Ct=e._emscripten_bind_PeFactory_initialize_1=e.asm.ia).apply(null,arguments)},It=e._emscripten_bind_PeFactory_factoryByType_2=function(){return(It=e._emscripten_bind_PeFactory_factoryByType_2=e.asm.ja).apply(null,arguments)},jt=e._emscripten_bind_PeFactory_fromString_2=function(){return(jt=e._emscripten_bind_PeFactory_fromString_2=e.asm.ka).apply(null,arguments)},Lt=e._emscripten_bind_PeFactory_getCode_1=function(){return(Lt=e._emscripten_bind_PeFactory_getCode_1=e.asm.la).apply(null,arguments)},Ut=e._emscripten_bind_PeGCSExtent_PeGCSExtent_6=function(){return(Ut=e._emscripten_bind_PeGCSExtent_PeGCSExtent_6=e.asm.ma).apply(null,arguments)},Yt=e._emscripten_bind_PeGCSExtent_getLLon_0=function(){return(Yt=e._emscripten_bind_PeGCSExtent_getLLon_0=e.asm.na).apply(null,arguments)},Ft=e._emscripten_bind_PeGCSExtent_getSLat_0=function(){return(Ft=e._emscripten_bind_PeGCSExtent_getSLat_0=e.asm.oa).apply(null,arguments)},wt=e._emscripten_bind_PeGCSExtent_getRLon_0=function(){return(wt=e._emscripten_bind_PeGCSExtent_getRLon_0=e.asm.pa).apply(null,arguments)},xt=e._emscripten_bind_PeGCSExtent_getNLat_0=function(){return(xt=e._emscripten_bind_PeGCSExtent_getNLat_0=e.asm.qa).apply(null,arguments)},Ht=e._emscripten_bind_PeGCSExtent___destroy___0=function(){return(Ht=e._emscripten_bind_PeGCSExtent___destroy___0=e.asm.ra).apply(null,arguments)},Xt=e._emscripten_bind_PeGeogcs_getDatum_0=function(){return(Xt=e._emscripten_bind_PeGeogcs_getDatum_0=e.asm.sa).apply(null,arguments)},zt=e._emscripten_bind_PeGeogcs_getPrimem_0=function(){return(zt=e._emscripten_bind_PeGeogcs_getPrimem_0=e.asm.ta).apply(null,arguments)},Zt=e._emscripten_bind_PeGeogcs_getUnit_0=function(){return(Zt=e._emscripten_bind_PeGeogcs_getUnit_0=e.asm.ua).apply(null,arguments)},Bt=e._emscripten_bind_PeGeogcs_getCode_0=function(){return(Bt=e._emscripten_bind_PeGeogcs_getCode_0=e.asm.va).apply(null,arguments)},Wt=e._emscripten_bind_PeGeogcs_getName_1=function(){return(Wt=e._emscripten_bind_PeGeogcs_getName_1=e.asm.wa).apply(null,arguments)},kt=e._emscripten_bind_PeGeogcs_getType_0=function(){return(kt=e._emscripten_bind_PeGeogcs_getType_0=e.asm.xa).apply(null,arguments)},Vt=e._emscripten_bind_PeGeogtran_isEqual_1=function(){return(Vt=e._emscripten_bind_PeGeogtran_isEqual_1=e.asm.ya).apply(null,arguments)},qt=e._emscripten_bind_PeGeogtran_getGeogcs1_0=function(){return(qt=e._emscripten_bind_PeGeogtran_getGeogcs1_0=e.asm.za).apply(null,arguments)},Jt=e._emscripten_bind_PeGeogtran_getGeogcs2_0=function(){return(Jt=e._emscripten_bind_PeGeogtran_getGeogcs2_0=e.asm.Aa).apply(null,arguments)},Kt=e._emscripten_bind_PeGeogtran_getParameters_0=function(){return(Kt=e._emscripten_bind_PeGeogtran_getParameters_0=e.asm.Ba).apply(null,arguments)},$t=e._emscripten_bind_PeGeogtran_loadConstants_0=function(){return($t=e._emscripten_bind_PeGeogtran_loadConstants_0=e.asm.Ca).apply(null,arguments)},Qt=e._emscripten_bind_PeGeogtran_getCode_0=function(){return(Qt=e._emscripten_bind_PeGeogtran_getCode_0=e.asm.Da).apply(null,arguments)},en=e._emscripten_bind_PeGeogtran_getName_1=function(){return(en=e._emscripten_bind_PeGeogtran_getName_1=e.asm.Ea).apply(null,arguments)},tn=e._emscripten_bind_PeGeogtran_getType_0=function(){return(tn=e._emscripten_bind_PeGeogtran_getType_0=e.asm.Fa).apply(null,arguments)},nn=e._emscripten_bind_PeGTlistExtended_getGTlist_6=function(){return(nn=e._emscripten_bind_PeGTlistExtended_getGTlist_6=e.asm.Ga).apply(null,arguments)},rn=e._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=function(){return(rn=e._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=e.asm.Ha).apply(null,arguments)},_n=e._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=function(){return(_n=e._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=e.asm.Ia).apply(null,arguments)},on=e._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=function(){return(on=e._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=e.asm.Ja).apply(null,arguments)},pn=e._emscripten_bind_PeGTlistExtendedEntry_Delete_1=function(){return(pn=e._emscripten_bind_PeGTlistExtendedEntry_Delete_1=e.asm.Ka).apply(null,arguments)},an=e._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=function(){return(an=e._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=e.asm.La).apply(null,arguments)},sn=e._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=function(){return(sn=e._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=e.asm.Ma).apply(null,arguments)},un=e._emscripten_bind_PeHorizon_getNump_0=function(){return(un=e._emscripten_bind_PeHorizon_getNump_0=e.asm.Na).apply(null,arguments)},cn=e._emscripten_bind_PeHorizon_getKind_0=function(){return(cn=e._emscripten_bind_PeHorizon_getKind_0=e.asm.Oa).apply(null,arguments)},gn=e._emscripten_bind_PeHorizon_getInclusive_0=function(){return(gn=e._emscripten_bind_PeHorizon_getInclusive_0=e.asm.Pa).apply(null,arguments)},Pn=e._emscripten_bind_PeHorizon_getSize_0=function(){return(Pn=e._emscripten_bind_PeHorizon_getSize_0=e.asm.Qa).apply(null,arguments)},yn=e._emscripten_bind_PeHorizon_getCoord_0=function(){return(yn=e._emscripten_bind_PeHorizon_getCoord_0=e.asm.Ra).apply(null,arguments)},mn=e._emscripten_bind_PeInteger_PeInteger_1=function(){return(mn=e._emscripten_bind_PeInteger_PeInteger_1=e.asm.Sa).apply(null,arguments)},fn=e._emscripten_bind_PeInteger_get_val_0=function(){return(fn=e._emscripten_bind_PeInteger_get_val_0=e.asm.Ta).apply(null,arguments)},ln=e._emscripten_bind_PeInteger_set_val_1=function(){return(ln=e._emscripten_bind_PeInteger_set_val_1=e.asm.Ua).apply(null,arguments)},dn=e._emscripten_bind_PeInteger___destroy___0=function(){return(dn=e._emscripten_bind_PeInteger___destroy___0=e.asm.Va).apply(null,arguments)},En=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=function(){return(En=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=e.asm.Wa).apply(null,arguments)},bn=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=function(){return(bn=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=e.asm.Xa).apply(null,arguments)},On=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=function(){return(On=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=e.asm.Ya).apply(null,arguments)},Tn=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=function(){return(Tn=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=e.asm.Za).apply(null,arguments)},Sn=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=function(){return(Sn=e._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=e.asm._a).apply(null,arguments)},Nn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=function(){return(Nn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=e.asm.$a).apply(null,arguments)},hn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=function(){return(hn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=e.asm.ab).apply(null,arguments)},Mn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=function(){return(Mn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=e.asm.bb).apply(null,arguments)},vn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=function(){return(vn=e._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=e.asm.cb).apply(null,arguments)},Dn=e._emscripten_bind_PeParameter_getValue_0=function(){return(Dn=e._emscripten_bind_PeParameter_getValue_0=e.asm.db).apply(null,arguments)},Rn=e._emscripten_bind_PeParameter_getCode_0=function(){return(Rn=e._emscripten_bind_PeParameter_getCode_0=e.asm.eb).apply(null,arguments)},An=e._emscripten_bind_PeParameter_getName_1=function(){return(An=e._emscripten_bind_PeParameter_getName_1=e.asm.fb).apply(null,arguments)},Gn=e._emscripten_bind_PeParameter_getType_0=function(){return(Gn=e._emscripten_bind_PeParameter_getType_0=e.asm.gb).apply(null,arguments)},Cn=e._emscripten_bind_PePCSInfo_getCentralMeridian_0=function(){return(Cn=e._emscripten_bind_PePCSInfo_getCentralMeridian_0=e.asm.hb).apply(null,arguments)},In=e._emscripten_bind_PePCSInfo_getDomainMinx_0=function(){return(In=e._emscripten_bind_PePCSInfo_getDomainMinx_0=e.asm.ib).apply(null,arguments)},jn=e._emscripten_bind_PePCSInfo_getDomainMiny_0=function(){return(jn=e._emscripten_bind_PePCSInfo_getDomainMiny_0=e.asm.jb).apply(null,arguments)},Ln=e._emscripten_bind_PePCSInfo_getDomainMaxx_0=function(){return(Ln=e._emscripten_bind_PePCSInfo_getDomainMaxx_0=e.asm.kb).apply(null,arguments)},Un=e._emscripten_bind_PePCSInfo_getDomainMaxy_0=function(){return(Un=e._emscripten_bind_PePCSInfo_getDomainMaxy_0=e.asm.lb).apply(null,arguments)},Yn=e._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=function(){return(Yn=e._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=e.asm.mb).apply(null,arguments)},Fn=e._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=function(){return(Fn=e._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=e.asm.nb).apply(null,arguments)},wn=e._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=function(){return(wn=e._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=e.asm.ob).apply(null,arguments)},xn=e._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=function(){return(xn=e._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=e.asm.pb).apply(null,arguments)},Hn=e._emscripten_bind_PePCSInfo_isDensificationNeeded_0=function(){return(Hn=e._emscripten_bind_PePCSInfo_isDensificationNeeded_0=e.asm.qb).apply(null,arguments)},Xn=e._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=function(){return(Xn=e._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=e.asm.rb).apply(null,arguments)},zn=e._emscripten_bind_PePCSInfo_isPannableRectangle_0=function(){return(zn=e._emscripten_bind_PePCSInfo_isPannableRectangle_0=e.asm.sb).apply(null,arguments)},Zn=e._emscripten_bind_PePCSInfo_generate_2=function(){return(Zn=e._emscripten_bind_PePCSInfo_generate_2=e.asm.tb).apply(null,arguments)},Bn=e._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=function(){return(Bn=e._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=e.asm.ub).apply(null,arguments)},Wn=e._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=function(){return(Wn=e._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=e.asm.vb).apply(null,arguments)},kn=e._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=function(){return(kn=e._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=e.asm.wb).apply(null,arguments)},Vn=e._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=function(){return(Vn=e._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=e.asm.xb).apply(null,arguments)},qn=e._emscripten_bind_PePrimem_getLongitude_0=function(){return(qn=e._emscripten_bind_PePrimem_getLongitude_0=e.asm.yb).apply(null,arguments)},Jn=e._emscripten_bind_PePrimem_getCode_0=function(){return(Jn=e._emscripten_bind_PePrimem_getCode_0=e.asm.zb).apply(null,arguments)},Kn=e._emscripten_bind_PePrimem_getName_1=function(){return(Kn=e._emscripten_bind_PePrimem_getName_1=e.asm.Ab).apply(null,arguments)},$n=e._emscripten_bind_PePrimem_getType_0=function(){return($n=e._emscripten_bind_PePrimem_getType_0=e.asm.Bb).apply(null,arguments)},Qn=e._emscripten_bind_PeProjcs_getGeogcs_0=function(){return(Qn=e._emscripten_bind_PeProjcs_getGeogcs_0=e.asm.Cb).apply(null,arguments)},er=e._emscripten_bind_PeProjcs_getParameters_0=function(){return(er=e._emscripten_bind_PeProjcs_getParameters_0=e.asm.Db).apply(null,arguments)},tr=e._emscripten_bind_PeProjcs_getUnit_0=function(){return(tr=e._emscripten_bind_PeProjcs_getUnit_0=e.asm.Eb).apply(null,arguments)},nr=e._emscripten_bind_PeProjcs_loadConstants_0=function(){return(nr=e._emscripten_bind_PeProjcs_loadConstants_0=e.asm.Fb).apply(null,arguments)},rr=e._emscripten_bind_PeProjcs_horizonGcsGenerate_0=function(){return(rr=e._emscripten_bind_PeProjcs_horizonGcsGenerate_0=e.asm.Gb).apply(null,arguments)},_r=e._emscripten_bind_PeProjcs_horizonPcsGenerate_0=function(){return(_r=e._emscripten_bind_PeProjcs_horizonPcsGenerate_0=e.asm.Hb).apply(null,arguments)},or=e._emscripten_bind_PeProjcs_getCode_0=function(){return(or=e._emscripten_bind_PeProjcs_getCode_0=e.asm.Ib).apply(null,arguments)},pr=e._emscripten_bind_PeProjcs_getName_1=function(){return(pr=e._emscripten_bind_PeProjcs_getName_1=e.asm.Jb).apply(null,arguments)},ir=e._emscripten_bind_PeProjcs_getType_0=function(){return(ir=e._emscripten_bind_PeProjcs_getType_0=e.asm.Kb).apply(null,arguments)},ar=e._emscripten_bind_PeSpheroid_getAxis_0=function(){return(ar=e._emscripten_bind_PeSpheroid_getAxis_0=e.asm.Lb).apply(null,arguments)},sr=e._emscripten_bind_PeSpheroid_getFlattening_0=function(){return(sr=e._emscripten_bind_PeSpheroid_getFlattening_0=e.asm.Mb).apply(null,arguments)},ur=e._emscripten_bind_PeSpheroid_getCode_0=function(){return(ur=e._emscripten_bind_PeSpheroid_getCode_0=e.asm.Nb).apply(null,arguments)},cr=e._emscripten_bind_PeSpheroid_getName_1=function(){return(cr=e._emscripten_bind_PeSpheroid_getName_1=e.asm.Ob).apply(null,arguments)},gr=e._emscripten_bind_PeSpheroid_getType_0=function(){return(gr=e._emscripten_bind_PeSpheroid_getType_0=e.asm.Pb).apply(null,arguments)},Pr=e._emscripten_bind_PeUnit_getUnitFactor_0=function(){return(Pr=e._emscripten_bind_PeUnit_getUnitFactor_0=e.asm.Qb).apply(null,arguments)},yr=e._emscripten_bind_PeUnit_getCode_0=function(){return(yr=e._emscripten_bind_PeUnit_getCode_0=e.asm.Rb).apply(null,arguments)},mr=e._emscripten_bind_PeUnit_getName_1=function(){return(mr=e._emscripten_bind_PeUnit_getName_1=e.asm.Sb).apply(null,arguments)},fr=e._emscripten_bind_PeUnit_getType_0=function(){return(fr=e._emscripten_bind_PeUnit_getType_0=e.asm.Tb).apply(null,arguments)},lr=e._emscripten_bind_PeVersion_version_string_0=function(){return(lr=e._emscripten_bind_PeVersion_version_string_0=e.asm.Ub).apply(null,arguments)};e._pe_getPeGTlistExtendedEntrySize=function(){return(e._pe_getPeGTlistExtendedEntrySize=e.asm.Vb).apply(null,arguments)},e._pe_getPeGTlistExtendedGTsSize=function(){return(e._pe_getPeGTlistExtendedGTsSize=e.asm.Wb).apply(null,arguments)},e._pe_getPeHorizonSize=function(){return(e._pe_getPeHorizonSize=e.asm.Xb).apply(null,arguments)},e._pe_geog_to_geog=function(){return(e._pe_geog_to_geog=e.asm.Zb).apply(null,arguments)},e._pe_geog_to_proj=function(){return(e._pe_geog_to_proj=e.asm._b).apply(null,arguments)},e._pe_geog_to_dd=function(){return(e._pe_geog_to_dd=e.asm.$b).apply(null,arguments)},e._pe_dd_to_geog=function(){return(e._pe_dd_to_geog=e.asm.ac).apply(null,arguments)},e._pe_geog_to_ddm=function(){return(e._pe_geog_to_ddm=e.asm.bc).apply(null,arguments)},e._pe_ddm_to_geog=function(){return(e._pe_ddm_to_geog=e.asm.cc).apply(null,arguments)},e._pe_geog_to_dms=function(){return(e._pe_geog_to_dms=e.asm.dc).apply(null,arguments)},e._pe_dms_to_geog=function(){return(e._pe_dms_to_geog=e.asm.ec).apply(null,arguments)},e._pe_geog_to_mgrs_extended=function(){return(e._pe_geog_to_mgrs_extended=e.asm.fc).apply(null,arguments)},e._pe_mgrs_to_geog_extended=function(){return(e._pe_mgrs_to_geog_extended=e.asm.gc).apply(null,arguments)},e._pe_geog_to_usng=function(){return(e._pe_geog_to_usng=e.asm.hc).apply(null,arguments)},e._pe_usng_to_geog=function(){return(e._pe_usng_to_geog=e.asm.ic).apply(null,arguments)},e._pe_geog_to_utm=function(){return(e._pe_geog_to_utm=e.asm.jc).apply(null,arguments)},e._pe_utm_to_geog=function(){return(e._pe_utm_to_geog=e.asm.kc).apply(null,arguments)},e._pe_object_to_string_ext=function(){return(e._pe_object_to_string_ext=e.asm.lc).apply(null,arguments)},e._pe_proj_to_geog_center=function(){return(e._pe_proj_to_geog_center=e.asm.mc).apply(null,arguments)};var ue,dr=e._malloc=function(){return(dr=e._malloc=e.asm.nc).apply(null,arguments)};function c_(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function be(t){function n(){ue||(ue=!0,e.calledRun=!0,Re||(function Dr(){le(we)}(),K(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Rr(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),xe.unshift(t);var t;le(xe)}()))}k>0||(function vr(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),Fe.unshift(t);var t;le(Fe)}(),k>0||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()))}if(e._free=function(){return(e._free=e.asm.oc).apply(null,arguments)},e.UTF8ToString=j,e.getValue=function Fr(t,n="i8"){switch(n.endsWith("*")&&(n="i32"),n){case"i1":case"i8":return H[t>>0];case"i16":return pe[t>>1];case"i32":case"i64":return S[t>>2];case"float":return ie[t>>2];case"double":return Number(ae[t>>3]);default:q("invalid type for getValue: "+n)}return null},te=function t(){ue||be(),ue||(te=t)},e.run=be,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function y(){}function re(t){return(t||y).__cache__}function E(t,n){var r=re(n),o=r[t];return o||((o=Object.create((n||y).prototype)).ptr=t,r[t]=o)}be(),(y.prototype=Object.create(y.prototype)).constructor=y,y.prototype.__class__=y,y.__cache__={},e.WrapperObject=y,e.getCache=re,e.wrapPointer=E,e.castObject=function g_(t,n){return E(t.ptr,n)},e.NULL=E(0),e.destroy=function P_(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete re(t.__class__)[t.ptr]},e.compare=function y_(t,n){return t.ptr===n.ptr},e.getPointer=function m_(t){return t.ptr},e.getClass=function f_(t){return t.__class__};var s={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(s.needed){for(var t=0;t=s.size?(fe(p>0),s.needed+=p,r=e._malloc(p),s.temps.push(r)):(r=s.buffer+s.pos,s.pos+=p),r},copy:function(t,n,r){switch(r>>>=0,n.BYTES_PER_ELEMENT){case 2:r>>>=1;break;case 4:r>>>=2;break;case 8:r>>>=3}for(var o=0;o0?r:Le(t)+1,p=new Array(o),a=je(t,p,0,p.length);return n&&(p.length=a),p}(t),r=s.alloc(n,H);return s.copy(n,H,r),r}return t}function F(t){if("object"==typeof t){var n=s.alloc(t,H);return s.copy(t,H,n),n}return t}function l(){throw"cannot construct a PeObject, no constructor in IDL"}function D(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function X(){throw"cannot construct a VoidPtr, no constructor in IDL"}function M(){throw"cannot construct a PeDatum, no constructor in IDL"}function _(){throw"cannot construct a PeDefs, no constructor in IDL"}function R(){throw"cannot construct a PeFactory, no constructor in IDL"}function O(t,n,r,o,p,a){t&&"object"==typeof t&&(t=t.ptr),n&&"object"==typeof n&&(n=n.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),p&&"object"==typeof p&&(p=p.ptr),a&&"object"==typeof a&&(a=a.ptr),this.ptr=Ut(t,n,r,o,p,a),re(O)[this.ptr]=this}function d(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function m(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function I(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function G(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function L(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function b(){throw"cannot construct a PeHorizon, no constructor in IDL"}function N(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=mn(t),re(N)[this.ptr]=this}function g(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function f(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function A(){throw"cannot construct a PeParameter, no constructor in IDL"}function i(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function v(){throw"cannot construct a PePrimem, no constructor in IDL"}function P(){throw"cannot construct a PeProjcs, no constructor in IDL"}function T(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function h(){throw"cannot construct a PeUnit, no constructor in IDL"}function z(){throw"cannot construct a PeVersion, no constructor in IDL"}return(l.prototype=Object.create(y.prototype)).constructor=l,l.prototype.__class__=l,l.__cache__={},e.PeObject=l,l.prototype.getCode=l.prototype.getCode=function(){return Be(this.ptr)},l.prototype.getName=l.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(We(n,t))},l.prototype.getType=l.prototype.getType=function(){return ke(this.ptr)},(D.prototype=Object.create(l.prototype)).constructor=D,D.prototype.__class__=D,D.__cache__={},e.PeCoordsys=D,D.prototype.getCode=D.prototype.getCode=function(){return Ve(this.ptr)},D.prototype.getName=D.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(qe(n,t))},D.prototype.getType=D.prototype.getType=function(){return Je(this.ptr)},(X.prototype=Object.create(y.prototype)).constructor=X,X.prototype.__class__=X,X.__cache__={},e.VoidPtr=X,X.prototype.__destroy__=X.prototype.__destroy__=function(){Ke(this.ptr)},(M.prototype=Object.create(l.prototype)).constructor=M,M.prototype.__class__=M,M.__cache__={},e.PeDatum=M,M.prototype.getSpheroid=M.prototype.getSpheroid=function(){return E($e(this.ptr),T)},M.prototype.getCode=M.prototype.getCode=function(){return Qe(this.ptr)},M.prototype.getName=M.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(et(n,t))},M.prototype.getType=M.prototype.getType=function(){return tt(this.ptr)},(_.prototype=Object.create(y.prototype)).constructor=_,_.prototype.__class__=_,_.__cache__={},e.PeDefs=_,_.prototype.get_PE_BUFFER_MAX=_.prototype.get_PE_BUFFER_MAX=function(){return nt(this.ptr)},Object.defineProperty(_.prototype,"PE_BUFFER_MAX",{get:_.prototype.get_PE_BUFFER_MAX}),_.prototype.get_PE_NAME_MAX=_.prototype.get_PE_NAME_MAX=function(){return rt(this.ptr)},Object.defineProperty(_.prototype,"PE_NAME_MAX",{get:_.prototype.get_PE_NAME_MAX}),_.prototype.get_PE_MGRS_MAX=_.prototype.get_PE_MGRS_MAX=function(){return _t(this.ptr)},Object.defineProperty(_.prototype,"PE_MGRS_MAX",{get:_.prototype.get_PE_MGRS_MAX}),_.prototype.get_PE_USNG_MAX=_.prototype.get_PE_USNG_MAX=function(){return ot(this.ptr)},Object.defineProperty(_.prototype,"PE_USNG_MAX",{get:_.prototype.get_PE_USNG_MAX}),_.prototype.get_PE_DD_MAX=_.prototype.get_PE_DD_MAX=function(){return pt(this.ptr)},Object.defineProperty(_.prototype,"PE_DD_MAX",{get:_.prototype.get_PE_DD_MAX}),_.prototype.get_PE_DMS_MAX=_.prototype.get_PE_DMS_MAX=function(){return it(this.ptr)},Object.defineProperty(_.prototype,"PE_DMS_MAX",{get:_.prototype.get_PE_DMS_MAX}),_.prototype.get_PE_DDM_MAX=_.prototype.get_PE_DDM_MAX=function(){return at(this.ptr)},Object.defineProperty(_.prototype,"PE_DDM_MAX",{get:_.prototype.get_PE_DDM_MAX}),_.prototype.get_PE_UTM_MAX=_.prototype.get_PE_UTM_MAX=function(){return st(this.ptr)},Object.defineProperty(_.prototype,"PE_UTM_MAX",{get:_.prototype.get_PE_UTM_MAX}),_.prototype.get_PE_PARM_MAX=_.prototype.get_PE_PARM_MAX=function(){return ut(this.ptr)},Object.defineProperty(_.prototype,"PE_PARM_MAX",{get:_.prototype.get_PE_PARM_MAX}),_.prototype.get_PE_TYPE_NONE=_.prototype.get_PE_TYPE_NONE=function(){return ct(this.ptr)},Object.defineProperty(_.prototype,"PE_TYPE_NONE",{get:_.prototype.get_PE_TYPE_NONE}),_.prototype.get_PE_TYPE_GEOGCS=_.prototype.get_PE_TYPE_GEOGCS=function(){return gt(this.ptr)},Object.defineProperty(_.prototype,"PE_TYPE_GEOGCS",{get:_.prototype.get_PE_TYPE_GEOGCS}),_.prototype.get_PE_TYPE_PROJCS=_.prototype.get_PE_TYPE_PROJCS=function(){return Pt(this.ptr)},Object.defineProperty(_.prototype,"PE_TYPE_PROJCS",{get:_.prototype.get_PE_TYPE_PROJCS}),_.prototype.get_PE_TYPE_GEOGTRAN=_.prototype.get_PE_TYPE_GEOGTRAN=function(){return yt(this.ptr)},Object.defineProperty(_.prototype,"PE_TYPE_GEOGTRAN",{get:_.prototype.get_PE_TYPE_GEOGTRAN}),_.prototype.get_PE_TYPE_COORDSYS=_.prototype.get_PE_TYPE_COORDSYS=function(){return mt(this.ptr)},Object.defineProperty(_.prototype,"PE_TYPE_COORDSYS",{get:_.prototype.get_PE_TYPE_COORDSYS}),_.prototype.get_PE_TYPE_UNIT=_.prototype.get_PE_TYPE_UNIT=function(){return ft(this.ptr)},Object.defineProperty(_.prototype,"PE_TYPE_UNIT",{get:_.prototype.get_PE_TYPE_UNIT}),_.prototype.get_PE_TYPE_LINUNIT=_.prototype.get_PE_TYPE_LINUNIT=function(){return lt(this.ptr)},Object.defineProperty(_.prototype,"PE_TYPE_LINUNIT",{get:_.prototype.get_PE_TYPE_LINUNIT}),_.prototype.get_PE_STR_OPTS_NONE=_.prototype.get_PE_STR_OPTS_NONE=function(){return dt(this.ptr)},Object.defineProperty(_.prototype,"PE_STR_OPTS_NONE",{get:_.prototype.get_PE_STR_OPTS_NONE}),_.prototype.get_PE_STR_AUTH_NONE=_.prototype.get_PE_STR_AUTH_NONE=function(){return Et(this.ptr)},Object.defineProperty(_.prototype,"PE_STR_AUTH_NONE",{get:_.prototype.get_PE_STR_AUTH_NONE}),_.prototype.get_PE_STR_AUTH_TOP=_.prototype.get_PE_STR_AUTH_TOP=function(){return bt(this.ptr)},Object.defineProperty(_.prototype,"PE_STR_AUTH_TOP",{get:_.prototype.get_PE_STR_AUTH_TOP}),_.prototype.get_PE_STR_NAME_CANON=_.prototype.get_PE_STR_NAME_CANON=function(){return Ot(this.ptr)},Object.defineProperty(_.prototype,"PE_STR_NAME_CANON",{get:_.prototype.get_PE_STR_NAME_CANON}),_.prototype.get_PE_PARM_X0=_.prototype.get_PE_PARM_X0=function(){return Tt(this.ptr)},Object.defineProperty(_.prototype,"PE_PARM_X0",{get:_.prototype.get_PE_PARM_X0}),_.prototype.get_PE_PARM_ND=_.prototype.get_PE_PARM_ND=function(){return St(this.ptr)},Object.defineProperty(_.prototype,"PE_PARM_ND",{get:_.prototype.get_PE_PARM_ND}),_.prototype.get_PE_TRANSFORM_1_TO_2=_.prototype.get_PE_TRANSFORM_1_TO_2=function(){return Nt(this.ptr)},Object.defineProperty(_.prototype,"PE_TRANSFORM_1_TO_2",{get:_.prototype.get_PE_TRANSFORM_1_TO_2}),_.prototype.get_PE_TRANSFORM_2_TO_1=_.prototype.get_PE_TRANSFORM_2_TO_1=function(){return ht(this.ptr)},Object.defineProperty(_.prototype,"PE_TRANSFORM_2_TO_1",{get:_.prototype.get_PE_TRANSFORM_2_TO_1}),_.prototype.get_PE_TRANSFORM_P_TO_G=_.prototype.get_PE_TRANSFORM_P_TO_G=function(){return Mt(this.ptr)},Object.defineProperty(_.prototype,"PE_TRANSFORM_P_TO_G",{get:_.prototype.get_PE_TRANSFORM_P_TO_G}),_.prototype.get_PE_TRANSFORM_G_TO_P=_.prototype.get_PE_TRANSFORM_G_TO_P=function(){return vt(this.ptr)},Object.defineProperty(_.prototype,"PE_TRANSFORM_G_TO_P",{get:_.prototype.get_PE_TRANSFORM_G_TO_P}),_.prototype.get_PE_HORIZON_RECT=_.prototype.get_PE_HORIZON_RECT=function(){return Dt(this.ptr)},Object.defineProperty(_.prototype,"PE_HORIZON_RECT",{get:_.prototype.get_PE_HORIZON_RECT}),_.prototype.get_PE_HORIZON_POLY=_.prototype.get_PE_HORIZON_POLY=function(){return Rt(this.ptr)},Object.defineProperty(_.prototype,"PE_HORIZON_POLY",{get:_.prototype.get_PE_HORIZON_POLY}),_.prototype.get_PE_HORIZON_LINE=_.prototype.get_PE_HORIZON_LINE=function(){return At(this.ptr)},Object.defineProperty(_.prototype,"PE_HORIZON_LINE",{get:_.prototype.get_PE_HORIZON_LINE}),_.prototype.get_PE_HORIZON_DELTA=_.prototype.get_PE_HORIZON_DELTA=function(){return Gt(this.ptr)},Object.defineProperty(_.prototype,"PE_HORIZON_DELTA",{get:_.prototype.get_PE_HORIZON_DELTA}),(R.prototype=Object.create(y.prototype)).constructor=R,R.prototype.__class__=R,R.__cache__={},e.PeFactory=R,R.prototype.initialize=R.prototype.initialize=function(t){var n=this.ptr;s.prepare(),t=t&&"object"==typeof t?t.ptr:Oe(t),Ct(n,t)},R.prototype.factoryByType=R.prototype.factoryByType=function(t,n){return t&&"object"==typeof t&&(t=t.ptr),n&&"object"==typeof n&&(n=n.ptr),E(It(this.ptr,t,n),l)},R.prototype.fromString=R.prototype.fromString=function(t,n){var r=this.ptr;return s.prepare(),t&&"object"==typeof t&&(t=t.ptr),n=n&&"object"==typeof n?n.ptr:Oe(n),E(jt(r,t,n),l)},R.prototype.getCode=R.prototype.getCode=function(t){return t&&"object"==typeof t&&(t=t.ptr),Lt(this.ptr,t)},(O.prototype=Object.create(y.prototype)).constructor=O,O.prototype.__class__=O,O.__cache__={},e.PeGCSExtent=O,O.prototype.getLLon=O.prototype.getLLon=function(){return Yt(this.ptr)},O.prototype.getSLat=O.prototype.getSLat=function(){return Ft(this.ptr)},O.prototype.getRLon=O.prototype.getRLon=function(){return wt(this.ptr)},O.prototype.getNLat=O.prototype.getNLat=function(){return xt(this.ptr)},O.prototype.__destroy__=O.prototype.__destroy__=function(){Ht(this.ptr)},(d.prototype=Object.create(D.prototype)).constructor=d,d.prototype.__class__=d,d.__cache__={},e.PeGeogcs=d,d.prototype.getDatum=d.prototype.getDatum=function(){return E(Xt(this.ptr),M)},d.prototype.getPrimem=d.prototype.getPrimem=function(){return E(zt(this.ptr),v)},d.prototype.getUnit=d.prototype.getUnit=function(){return E(Zt(this.ptr),h)},d.prototype.getCode=d.prototype.getCode=function(){return Bt(this.ptr)},d.prototype.getName=d.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(Wt(n,t))},d.prototype.getType=d.prototype.getType=function(){return kt(this.ptr)},(m.prototype=Object.create(l.prototype)).constructor=m,m.prototype.__class__=m,m.__cache__={},e.PeGeogtran=m,m.prototype.isEqual=m.prototype.isEqual=function(t){return t&&"object"==typeof t&&(t=t.ptr),!!Vt(this.ptr,t)},m.prototype.getGeogcs1=m.prototype.getGeogcs1=function(){return E(qt(this.ptr),d)},m.prototype.getGeogcs2=m.prototype.getGeogcs2=function(){return E(Jt(this.ptr),d)},m.prototype.getParameters=m.prototype.getParameters=function(){return Kt(this.ptr)},m.prototype.loadConstants=m.prototype.loadConstants=function(){return!!$t(this.ptr)},m.prototype.getCode=m.prototype.getCode=function(){return Qt(this.ptr)},m.prototype.getName=m.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(en(n,t))},m.prototype.getType=m.prototype.getType=function(){return tn(this.ptr)},(I.prototype=Object.create(y.prototype)).constructor=I,I.prototype.__class__=I,I.__cache__={},e.PeGTlistExtended=I,I.prototype.getGTlist=I.prototype.getGTlist=function(t,n,r,o,p,a){return t&&"object"==typeof t&&(t=t.ptr),n&&"object"==typeof n&&(n=n.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),p&&"object"==typeof p&&(p=p.ptr),a&&"object"==typeof a&&(a=a.ptr),E(nn(this.ptr,t,n,r,o,p,a),G)},I.prototype.get_PE_GTLIST_OPTS_COMMON=I.prototype.get_PE_GTLIST_OPTS_COMMON=function(){return rn(this.ptr)},Object.defineProperty(I.prototype,"PE_GTLIST_OPTS_COMMON",{get:I.prototype.get_PE_GTLIST_OPTS_COMMON}),(G.prototype=Object.create(y.prototype)).constructor=G,G.prototype.__class__=G,G.__cache__={},e.PeGTlistExtendedEntry=G,G.prototype.getEntries=G.prototype.getEntries=function(){return E(_n(this.ptr),L)},G.prototype.getSteps=G.prototype.getSteps=function(){return on(this.ptr)},G.prototype.Delete=G.prototype.Delete=function(t){t&&"object"==typeof t&&(t=t.ptr),pn(this.ptr,t)},(L.prototype=Object.create(y.prototype)).constructor=L,L.prototype.__class__=L,L.__cache__={},e.PeGTlistExtendedGTs=L,L.prototype.getDirection=L.prototype.getDirection=function(){return an(this.ptr)},L.prototype.getGeogtran=L.prototype.getGeogtran=function(){return E(sn(this.ptr),m)},(b.prototype=Object.create(y.prototype)).constructor=b,b.prototype.__class__=b,b.__cache__={},e.PeHorizon=b,b.prototype.getNump=b.prototype.getNump=function(){return un(this.ptr)},b.prototype.getKind=b.prototype.getKind=function(){return cn(this.ptr)},b.prototype.getInclusive=b.prototype.getInclusive=function(){return gn(this.ptr)},b.prototype.getSize=b.prototype.getSize=function(){return Pn(this.ptr)},b.prototype.getCoord=b.prototype.getCoord=function(){return yn(this.ptr)},(N.prototype=Object.create(y.prototype)).constructor=N,N.prototype.__class__=N,N.__cache__={},e.PeInteger=N,N.prototype.get_val=N.prototype.get_val=function(){return fn(this.ptr)},N.prototype.set_val=N.prototype.set_val=function(t){t&&"object"==typeof t&&(t=t.ptr),ln(this.ptr,t)},Object.defineProperty(N.prototype,"val",{get:N.prototype.get_val,set:N.prototype.set_val}),N.prototype.__destroy__=N.prototype.__destroy__=function(){dn(this.ptr)},(g.prototype=Object.create(y.prototype)).constructor=g,g.prototype.__class__=g,g.__cache__={},e.PeNotationMgrs=g,g.prototype.get_PE_MGRS_STYLE_NEW=g.prototype.get_PE_MGRS_STYLE_NEW=function(){return En(this.ptr)},Object.defineProperty(g.prototype,"PE_MGRS_STYLE_NEW",{get:g.prototype.get_PE_MGRS_STYLE_NEW}),g.prototype.get_PE_MGRS_STYLE_OLD=g.prototype.get_PE_MGRS_STYLE_OLD=function(){return bn(this.ptr)},Object.defineProperty(g.prototype,"PE_MGRS_STYLE_OLD",{get:g.prototype.get_PE_MGRS_STYLE_OLD}),g.prototype.get_PE_MGRS_STYLE_AUTO=g.prototype.get_PE_MGRS_STYLE_AUTO=function(){return On(this.ptr)},Object.defineProperty(g.prototype,"PE_MGRS_STYLE_AUTO",{get:g.prototype.get_PE_MGRS_STYLE_AUTO}),g.prototype.get_PE_MGRS_180_ZONE_1_PLUS=g.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){return Tn(this.ptr)},Object.defineProperty(g.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:g.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),g.prototype.get_PE_MGRS_ADD_SPACES=g.prototype.get_PE_MGRS_ADD_SPACES=function(){return Sn(this.ptr)},Object.defineProperty(g.prototype,"PE_MGRS_ADD_SPACES",{get:g.prototype.get_PE_MGRS_ADD_SPACES}),(f.prototype=Object.create(y.prototype)).constructor=f,f.prototype.__class__=f,f.__cache__={},e.PeNotationUtm=f,f.prototype.get_PE_UTM_OPTS_NONE=f.prototype.get_PE_UTM_OPTS_NONE=function(){return Nn(this.ptr)},Object.defineProperty(f.prototype,"PE_UTM_OPTS_NONE",{get:f.prototype.get_PE_UTM_OPTS_NONE}),f.prototype.get_PE_UTM_OPTS_NS=f.prototype.get_PE_UTM_OPTS_NS=function(){return hn(this.ptr)},Object.defineProperty(f.prototype,"PE_UTM_OPTS_NS",{get:f.prototype.get_PE_UTM_OPTS_NS}),f.prototype.get_PE_UTM_OPTS_NS_STRICT=f.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){return Mn(this.ptr)},Object.defineProperty(f.prototype,"PE_UTM_OPTS_NS_STRICT",{get:f.prototype.get_PE_UTM_OPTS_NS_STRICT}),f.prototype.get_PE_UTM_OPTS_ADD_SPACES=f.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){return vn(this.ptr)},Object.defineProperty(f.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:f.prototype.get_PE_UTM_OPTS_ADD_SPACES}),(A.prototype=Object.create(l.prototype)).constructor=A,A.prototype.__class__=A,A.__cache__={},e.PeParameter=A,A.prototype.getValue=A.prototype.getValue=function(){return Dn(this.ptr)},A.prototype.getCode=A.prototype.getCode=function(){return Rn(this.ptr)},A.prototype.getName=A.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(An(n,t))},A.prototype.getType=A.prototype.getType=function(){return Gn(this.ptr)},(i.prototype=Object.create(y.prototype)).constructor=i,i.prototype.__class__=i,i.__cache__={},e.PePCSInfo=i,i.prototype.getCentralMeridian=i.prototype.getCentralMeridian=function(){return Cn(this.ptr)},i.prototype.getDomainMinx=i.prototype.getDomainMinx=function(){return In(this.ptr)},i.prototype.getDomainMiny=i.prototype.getDomainMiny=function(){return jn(this.ptr)},i.prototype.getDomainMaxx=i.prototype.getDomainMaxx=function(){return Ln(this.ptr)},i.prototype.getDomainMaxy=i.prototype.getDomainMaxy=function(){return Un(this.ptr)},i.prototype.getNorthPoleLocation=i.prototype.getNorthPoleLocation=function(){return Yn(this.ptr)},i.prototype.getNorthPoleGeometry=i.prototype.getNorthPoleGeometry=function(){return Fn(this.ptr)},i.prototype.getSouthPoleLocation=i.prototype.getSouthPoleLocation=function(){return wn(this.ptr)},i.prototype.getSouthPoleGeometry=i.prototype.getSouthPoleGeometry=function(){return xn(this.ptr)},i.prototype.isDensificationNeeded=i.prototype.isDensificationNeeded=function(){return!!Hn(this.ptr)},i.prototype.isGcsHorizonMultiOverlap=i.prototype.isGcsHorizonMultiOverlap=function(){return!!Xn(this.ptr)},i.prototype.isPannableRectangle=i.prototype.isPannableRectangle=function(){return!!zn(this.ptr)},i.prototype.generate=i.prototype.generate=function(t,n){return t&&"object"==typeof t&&(t=t.ptr),n&&"object"==typeof n&&(n=n.ptr),E(Zn(this.ptr,t,n),i)},i.prototype.get_PE_PCSINFO_OPTION_NONE=i.prototype.get_PE_PCSINFO_OPTION_NONE=function(){return Bn(this.ptr)},Object.defineProperty(i.prototype,"PE_PCSINFO_OPTION_NONE",{get:i.prototype.get_PE_PCSINFO_OPTION_NONE}),i.prototype.get_PE_PCSINFO_OPTION_DOMAIN=i.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){return Wn(this.ptr)},Object.defineProperty(i.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:i.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),i.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=i.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){return kn(this.ptr)},Object.defineProperty(i.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:i.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),i.prototype.get_PE_POLE_POINT=i.prototype.get_PE_POLE_POINT=function(){return Vn(this.ptr)},Object.defineProperty(i.prototype,"PE_POLE_POINT",{get:i.prototype.get_PE_POLE_POINT}),(v.prototype=Object.create(l.prototype)).constructor=v,v.prototype.__class__=v,v.__cache__={},e.PePrimem=v,v.prototype.getLongitude=v.prototype.getLongitude=function(){return qn(this.ptr)},v.prototype.getCode=v.prototype.getCode=function(){return Jn(this.ptr)},v.prototype.getName=v.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(Kn(n,t))},v.prototype.getType=v.prototype.getType=function(){return $n(this.ptr)},(P.prototype=Object.create(D.prototype)).constructor=P,P.prototype.__class__=P,P.__cache__={},e.PeProjcs=P,P.prototype.getGeogcs=P.prototype.getGeogcs=function(){return E(Qn(this.ptr),d)},P.prototype.getParameters=P.prototype.getParameters=function(){return er(this.ptr)},P.prototype.getUnit=P.prototype.getUnit=function(){return E(tr(this.ptr),h)},P.prototype.loadConstants=P.prototype.loadConstants=function(){return!!nr(this.ptr)},P.prototype.horizonGcsGenerate=P.prototype.horizonGcsGenerate=function(){return E(rr(this.ptr),b)},P.prototype.horizonPcsGenerate=P.prototype.horizonPcsGenerate=function(){return E(_r(this.ptr),b)},P.prototype.getCode=P.prototype.getCode=function(){return or(this.ptr)},P.prototype.getName=P.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(pr(n,t))},P.prototype.getType=P.prototype.getType=function(){return ir(this.ptr)},(T.prototype=Object.create(l.prototype)).constructor=T,T.prototype.__class__=T,T.__cache__={},e.PeSpheroid=T,T.prototype.getAxis=T.prototype.getAxis=function(){return ar(this.ptr)},T.prototype.getFlattening=T.prototype.getFlattening=function(){return sr(this.ptr)},T.prototype.getCode=T.prototype.getCode=function(){return ur(this.ptr)},T.prototype.getName=T.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(cr(n,t))},T.prototype.getType=T.prototype.getType=function(){return gr(this.ptr)},(h.prototype=Object.create(l.prototype)).constructor=h,h.prototype.__class__=h,h.__cache__={},e.PeUnit=h,h.prototype.getUnitFactor=h.prototype.getUnitFactor=function(){return Pr(this.ptr)},h.prototype.getCode=h.prototype.getCode=function(){return yr(this.ptr)},h.prototype.getName=h.prototype.getName=function(t){var n=this.ptr;return s.prepare(),"object"==typeof t&&(t=F(t)),j(mr(n,t))},h.prototype.getType=h.prototype.getType=function(){return fr(this.ptr)},(z.prototype=Object.create(y.prototype)).constructor=z,z.prototype.__class__=z,z.__cache__={},e.PeVersion=z,z.prototype.version_string=z.prototype.version_string=function(){return j(lr(this.ptr))},e.ensureCache=s,e.ensureString=Oe,e.ensureInt8=F,e.ensureInt16=function l_(t){if("object"==typeof t){var n=s.alloc(t,pe);return s.copy(t,pe,n),n}return t},e.ensureInt32=function d_(t){if("object"==typeof t){var n=s.alloc(t,S);return s.copy(t,S,n),n}return t},e.ensureFloat32=function E_(t){if("object"==typeof t){var n=s.alloc(t,ie);return s.copy(t,ie,n),n}return t},e.ensureFloat64=function b_(t){if("object"==typeof t){var n=s.alloc(t,ae);return s.copy(t,ae,n),n}return t},e.ready};const Sr=function Tr(e,K){for(var W=0;Wx[w]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:ce.exports},[ce.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/375.53ec6e2d18f3745a.js b/apps/n/porrtal-io-app/public/angular/375.53ec6e2d18f3745a.js deleted file mode 100644 index 09bbf384..00000000 --- a/apps/n/porrtal-io-app/public/angular/375.53ec6e2d18f3745a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[375],{17926:($,U,a)=>{var l,p,o;a.d(U,{B:()=>p,P:()=>l}),(o=l||(l={}))[o.None=0]="None",o[o.Int16=1]="Int16",o[o.Int32=2]="Int32",function(o){o[o.Replace=0]="Replace",o[o.Outside=1]="Outside",o[o.Inside=2]="Inside",o[o.Finished=3]="Finished"}(p||(p={}))},30375:($,U,a)=>{a.r(U),a.d(U,{destroyContext:()=>H,dracoDecompressPointCloudData:()=>g,filterObbsForModifications:()=>R,filterObbsForModificationsSync:()=>W,initialize:()=>F,interpretObbModificationResults:()=>oe,process:()=>D,setLegacySchema:()=>k,setModifications:()=>B,setModificationsSync:()=>z,test:()=>re});var l=a(15861),p=a(62208),o=a(55713),v=a(17926),I=a(54346);function x(e){return(0,I.V)(`esri/libs/i3s/${e}`)}let b;var C=a(52565);function D(e){return t.apply(this,arguments)}function t(){return(t=(0,l.Z)(function*(e){yield F();const n=[e.geometryBuffer];return{result:G(e,n),transferList:n}})).apply(this,arguments)}function g(e){return h.apply(this,arguments)}function h(){return(h=(0,l.Z)(function*(e){yield F();const n=[e.geometryBuffer],{geometryBuffer:i}=e,d=i.byteLength,f=s._malloc(d),P=new Uint8Array(s.HEAPU8.buffer,f,d);P.set(new Uint8Array(i));const u=s.dracoDecompressPointCloudData(f,P.byteLength);if(s._free(f),u.error.length>0)throw`i3s.wasm: ${u.error}`;const N=u.featureIds?.length>0?(0,o.tP)(u.featureIds):null,T=(0,o.tP)(u.positions);return N&&n.push(N.buffer),n.push(T.buffer),{result:{positions:T,featureIds:N},transferList:n}})).apply(this,arguments)}function R(e){return E.apply(this,arguments)}function E(){return(E=(0,l.Z)(function*(e){yield F(),W(e);const n={buffer:e.buffer};return{result:n,transferList:[n.buffer]}})).apply(this,arguments)}function B(e){return S.apply(this,arguments)}function S(){return(S=(0,l.Z)(function*(e){yield F(),z(e)})).apply(this,arguments)}function k(e){return _.apply(this,arguments)}function _(){return(_=(0,l.Z)(function*(e){yield F(),s.setLegacySchema(e.context,e.jsonSchema)})).apply(this,arguments)}function H(e){K(e)}let M,s;function z(e){const n=e.modifications,i=s._malloc(8*n.length),d=new Float64Array(s.HEAPU8.buffer,i,n.length);for(let f=0;fL.some(w=>"color"===w.name)),normal:e.needNormals&&e.layouts.some(L=>L.some(w=>"normalCompressed"===w.name)),uv0:e.layouts.some(L=>L.some(w=>"uv0"===w.name)),uvRegion:e.layouts.some(L=>L.some(w=>"uvRegion"===w.name)),featureIndex:X.featureIndex},r=s.process(i,!!e.obb,Y,J.byteLength,X,fe,Z,N,ie,ae,e.normalReferenceFrame);if(s._free(Z),s._free(Y),r.error.length>0)throw`i3s.wasm: ${r.error}`;if(r.discarded)return null;const j=r.componentOffsets.length>0?(0,o.tP)(r.componentOffsets):null,V=r.featureIds.length>0?(0,o.tP)(r.featureIds):null,q=(0,o.tP)(r.interleavedVertedData).buffer,ee=(0,o.tP)(r.indicesType===v.P.Int16?new Uint16Array(r.indices.buffer,r.indices.byteOffset,r.indices.byteLength/2):new Uint32Array(r.indices.buffer,r.indices.byteOffset,r.indices.byteLength/4)),te=(0,o.tP)(r.positions),ne=(0,o.tP)(r.positionIndicesType===v.P.Int16?new Uint16Array(r.positionIndices.buffer,r.positionIndices.byteOffset,r.positionIndices.byteLength/2):new Uint32Array(r.positionIndices.buffer,r.positionIndices.byteOffset,r.positionIndices.byteLength/4)),ue={layout:e.layouts[0],interleavedVertexData:q,indices:ee,hasColors:r.hasColors,hasModifications:r.hasModifications,positionData:{data:te,indices:ne}};return V&&n.push(V.buffer),j&&n.push(j.buffer),n.push(q),n.push(ee.buffer),n.push(te.buffer),n.push(ne.buffer),{componentOffsets:j,featureIds:V,transformedGeometry:ue,obb:r.obb}}function oe(e){return 0===e?C.O4.Unmodified:1===e?C.O4.PotentiallyModified:2===e?C.O4.Culled:C.O4.Unknown}function W(e){const{context:n,buffer:i}=e,d=s._malloc(i.byteLength),f=i.byteLength/Float64Array.BYTES_PER_ELEMENT,P=new Float64Array(s.HEAPU8.buffer,d,f),u=new Float64Array(i);P.set(u),s.filterOBBs(n,d,f),u.set(P),s._free(d)}function K(e){s&&s.destroy(e)}function O(e,n){for(let i=0;ia.e(5979).then(a.bind(a,85979)).then(n=>n.i).then(({default:n})=>{const i=n({locateFile:x,onRuntimeInitialized:()=>e(i)});delete i.then})).catch(e=>{throw e})),b}().then(e=>{s=e,M=null})),M)}const re={transform:G,destroy:K}},52565:($,U,a)=>{a.d(U,{$i:()=>p,FE:()=>b,Hw:()=>A,NB:()=>C,O4:()=>I,U_:()=>v,oQ:()=>D,rw:()=>o,w5:()=>x});var v,I,A,x,b,t,l=a(97126);class p{constructor(g,h){this.id=g,this.mbs=h,this.renderMbs=(0,l.f)(0,0,0,-1),this.elevationRange=null}}class o{constructor(){this.min=1/0,this.max=-1/0,this.valid=!1}}(t=v||(v={}))[t.Unmodified=0]="Unmodified",t[t.Culled=1]="Culled",t[t.NotChecked=2]="NotChecked",function(t){t[t.Unmodified=0]="Unmodified",t[t.PotentiallyModified=1]="PotentiallyModified",t[t.Culled=2]="Culled",t[t.Unknown=3]="Unknown",t[t.NotChecked=4]="NotChecked"}(I||(I={}));class C extends p{constructor(g,h,R,E,B,S,k,_,H,M){super(g,R),this.index=h,this.childCount=E,this.level=B,this.resources=S,this.version=k,this.lodMetric=_,this.maxError=H,this.numFeatures=M,this.failed=!1,this.cacheState=A.Unknown,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=I.NotChecked}}(function(t){t[t.Unknown=0]="Unknown",t[t.Uncached=1]="Uncached",t[t.Cached=2]="Cached"})(A||(A={})),function(t){t[t.None=0]="None",t[t.MaxScreenThreshold=1]="MaxScreenThreshold",t[t.ScreenSpaceRelative=2]="ScreenSpaceRelative",t[t.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",t[t.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(x||(x={})),function(t){t[t.Hole=0]="Hole",t[t.Leaf=1]="Leaf"}(b||(b={}));class D{constructor(g,h,R,E){this.nodeHasLOD=g,this.isChosen=h,this.lodLevel=R,this.version=E}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3751.fe0dd4ed481353b3.js b/apps/n/porrtal-io-app/public/angular/3751.fe0dd4ed481353b3.js deleted file mode 100644 index f0148ac0..00000000 --- a/apps/n/porrtal-io-app/public/angular/3751.fe0dd4ed481353b3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3751],{6879:(nt,M,O)=>{O.d(M,{Z:()=>bt});const E=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["\xab","\xbb"],["\xbb","\xab"],["\u2039","\u203a"],["\u203a","\u2039"],["\u207d","\u207e"],["\u207e","\u207d"],["\u208d","\u208e"],["\u208e","\u208d"],["\u2264","\u2265"],["\u2265","\u2264"],["\u2329","\u232a"],["\u232a","\u2329"],["\ufe59","\ufe5a"],["\ufe5a","\ufe59"],["\ufe5b","\ufe5c"],["\ufe5c","\ufe5b"],["\ufe5d","\ufe5e"],["\ufe5e","\ufe5d"],["\ufe64","\ufe65"],["\ufe65","\ufe64"]],U=["\u0622","\u0623","\u0625","\u0627"],w=["\ufef5","\ufef7","\ufef9","\ufefb"],j=["\ufef6","\ufef8","\ufefa","\ufefc"],N=["\u0627","\u0628","\u062a","\u062b","\u062c","\u062d","\u062e","\u062f","\u0630","\u0631","\u0632","\u0633","\u0634","\u0635","\u0636","\u0637","\u0638","\u0639","\u063a","\u0641","\u0642","\u0643","\u0644","\u0645","\u0646","\u0647","\u0648","\u064a","\u0625","\u0623","\u0622","\u0629","\u0649","\u0644","\u0645","\u0646","\u0647","\u0648","\u064a","\u0625","\u0623","\u0622","\u0629","\u0649","\u06cc","\u0626","\u0624"],Y=["\ufe8d","\ufe8f","\ufe95","\ufe99","\ufe9d","\ufea1","\ufea5","\ufea9","\ufeab","\ufead","\ufeaf","\ufeb1","\ufeb5","\ufeb9","\ufebd","\ufec1","\ufec5","\ufec9","\ufecd","\ufed1","\ufed5","\ufed9","\ufedd","\ufee1","\ufee5","\ufee9","\ufeed","\ufef1","\ufe87","\ufe83","\ufe81","\ufe93","\ufeef","\ufbfc","\ufe89","\ufe85","\ufe70","\ufe72","\ufe74","\ufe76","\ufe78","\ufe7a","\ufe7c","\ufe7e","\ufe80","\ufe89","\ufe85"],q=["\ufe8e","\ufe90","\ufe96","\ufe9a","\ufe9e","\ufea2","\ufea6","\ufeaa","\ufeac","\ufeae","\ufeb0","\ufeb2","\ufeb6","\ufeba","\ufebe","\ufec2","\ufec6","\ufeca","\ufece","\ufed2","\ufed6","\ufeda","\ufede","\ufee2","\ufee6","\ufeea","\ufeee","\ufef2","\ufe88","\ufe84","\ufe82","\ufe94","\ufef0","\ufbfd","\ufe8a","\ufe86","\ufe70","\ufe72","\ufe74","\ufe76","\ufe78","\ufe7a","\ufe7c","\ufe7e","\ufe80","\ufe8a","\ufe86"],Q=["\ufe8e","\ufe92","\ufe98","\ufe9c","\ufea0","\ufea4","\ufea8","\ufeaa","\ufeac","\ufeae","\ufeb0","\ufeb4","\ufeb8","\ufebc","\ufec0","\ufec4","\ufec8","\ufecc","\ufed0","\ufed4","\ufed8","\ufedc","\ufee0","\ufee4","\ufee8","\ufeec","\ufeee","\ufef4","\ufe88","\ufe84","\ufe82","\ufe94","\ufef0","\ufbff","\ufe8c","\ufe86","\ufe71","\ufe72","\ufe74","\ufe77","\ufe79","\ufe7b","\ufe7d","\ufe7f","\ufe80","\ufe8c","\ufe86"],X=["\ufe8d","\ufe91","\ufe97","\ufe9b","\ufe9f","\ufea3","\ufea7","\ufea9","\ufeab","\ufead","\ufeaf","\ufeb3","\ufeb7","\ufebb","\ufebf","\ufec3","\ufec7","\ufecb","\ufecf","\ufed3","\ufed7","\ufedb","\ufedf","\ufee3","\ufee7","\ufeeb","\ufeed","\ufef3","\ufe87","\ufe83","\ufe81","\ufe93","\ufeef","\ufbfe","\ufe8b","\ufe85","\ufe70","\ufe72","\ufe74","\ufe76","\ufe78","\ufe7a","\ufe7c","\ufe7e","\ufe80","\ufe8b","\ufe85"],$=["\u0621","\u0622","\u0623","\u0624","\u0625","\u0627","\u0629","\u062f","\u0630","\u0631","\u0632","\u0648","\u0649"],G=["\u064b","\u064b","\u064c","\u061f","\u064d","\u061f","\u064e","\u064e","\u064f","\u064f","\u0650","\u0650","\u0651","\u0651","\u0652","\u0652","\u0621","\u0622","\u0622","\u0623","\u0623","\u0624","\u0624","\u0625","\u0625","\u0626","\u0626","\u0626","\u0626","\u0627","\u0627","\u0628","\u0628","\u0628","\u0628","\u0629","\u0629","\u062a","\u062a","\u062a","\u062a","\u062b","\u062b","\u062b","\u062b","\u062c","\u062c","\u062c","\u062c","\u062d","\u062d","\u062d","\u062d","\u062e","\u062e","\u062e","\u062e","\u062f","\u062f","\u0630","\u0630","\u0631","\u0631","\u0632","\u0632","\u0633","\u0633","\u0633","\u0633","\u0634","\u0634","\u0634","\u0634","\u0635","\u0635","\u0635","\u0635","\u0636","\u0636","\u0636","\u0636","\u0637","\u0637","\u0637","\u0637","\u0638","\u0638","\u0638","\u0638","\u0639","\u0639","\u0639","\u0639","\u063a","\u063a","\u063a","\u063a","\u0641","\u0641","\u0641","\u0641","\u0642","\u0642","\u0642","\u0642","\u0643","\u0643","\u0643","\u0643","\u0644","\u0644","\u0644","\u0644","\u0645","\u0645","\u0645","\u0645","\u0646","\u0646","\u0646","\u0646","\u0647","\u0647","\u0647","\u0647","\u0648","\u0648","\u0649","\u0649","\u064a","\u064a","\u064a","\u064a","\ufef5","\ufef6","\ufef7","\ufef8","\ufef9","\ufefa","\ufefb","\ufefc","\u061f","\u061f","\u061f"],I=["\u0621","\u0641"],H=["\u063a","\u064a"],et=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],K=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],R=10,T=11,n=12,h=18,dt=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],Lt=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],Bt=[[h,h,h,h,h,h,h,h,h,6,5,6,8,5,h,h,h,h,h,h,h,h,h,h,h,h,h,h,5,5,5,6,8,4,4,T,T,T,4,4,4,4,4,R,9,R,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,h,h,h,h,h,h,5,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,9,4,T,T,T,T,4,4,4,4,0,4,4,h,4,4,T,T,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,1,n,1,n,n,1,n,n,1,n,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,T,T,7,9,7,4,4,n,n,n,n,n,n,n,n,n,n,n,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,3,3,3,3,3,3,3,3,3,3,T,3,3,7,7,7,n,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,n,n,n,n,n,n,n,3,4,n,n,n,n,n,n,7,7,n,n,4,n,n,n,n,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,n,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,n,n,n,n,n,n,n,n,n,n,n,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,n,n,n,n,n,n,n,n,n,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,h,h,h,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,T,T,T,T,T,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,h,h,h,h,h,4,4,4,4,4,h,h,h,h,h,h,2,0,4,4,2,2,2,2,2,2,R,R,4,4,4,0,2,2,2,2,2,2,2,2,2,2,R,R,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,n,1,1,1,1,1,1,1,1,1,1,R,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,n,n,n,n,n,n,n,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,T,4,4,R,R,4,4,4,4,4,T,T,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,h],[4,4,4,T,T,T,4,4,4,4,4,R,9,R,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,T,T,4,4,4,T,T,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class bt{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(e,s,a){if(this.sourceToTarget=[],this.targetToSource=[],!e)return"";if(function Ot(u,e,s){F=[],J=[];for(let a=0;a-1?(ft(z,L,!u,-1),F.splice(L,1)):d+=a[L];return d}(k,v,!0):function Rt(u,e,s){if(0===u.length)return"";void 0===s&&(s=!0),void 0===e&&(e=!0);let a="";const c=(u=String(u)).split("");for(let f=0;f="\ufe70"&&c[f]<"\ufeff"){const _=u.charCodeAt(f);c[f]>="\ufef5"&&c[f]<="\ufefc"?(e?(f>0&&s&&" "===c[f-1]?a=a.substring(0,a.length-1)+"\u0644":(a+="\u0644",g=!0),a+=U[(_-65269)/2]):(a+=U[(_-65269)/2],a+="\u0644",f+10)if(16===k){for(let V=g;V-1){for(let V=g;V=0&&8===u[f];f--)e[f]=a.dir}}(_,e,a,s)}function Et(u){const e=u.charCodeAt(0),s=Lt[e>>8];return s<100?s:Bt[s-100][255&e]}function tt(u,e){const s=u.split("");if(e){const a=[];ut(s,a,e),J=a}return s.reverse(),F.reverse(),s.join("")}function Nt(u,e,s){for(let a=0;a=I[e]&&u<=H[e])return!0;return!1}function st(u,e,s,a){for(;e*s=u){for(f=B+1;f=u;)f++;for(g=B,_=f-1;g<_;g++,_--)d=e[g],e[g]=e[_],e[_]=d,L=F[g],F[g]=F[_],F[_]=L;B=f}B++}}function vt(u,e,s,a,c){return{UBAT_L:()=>(c.lastArabic=!1,0),UBAT_R:()=>(c.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>c.lastArabic?3:2,UBAT_AL:()=>(c.lastArabic=!0,c.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let g,_;return a<1||a+1>=e.length||2!==(g=s[a-1])&&3!==g||2!==(_=e[a+1])&&3!==_?4:(c.lastArabic&&(_=3),_===g?_:4)},UBAT_ES:()=>2===(a>0?s[a-1]:5)&&a+1{if(a>0&&2===s[a-1])return 2;if(c.lastArabic)return 4;let g=a+1;const _=e.length;for(;g<_&&e[g]===T;)g++;return g<_&&2===e[g]?2:4},UBAT_NSM:()=>{if("VLTR"===c.inFormat){const g=e.length;let _=a+1;for(;_=1425&&d<=2303||64286===d)&&(1===B||7===B))return 1}}return a<1||5===e[a-1]?4:s[a-1]},UBAT_B:()=>(c.lastArabic=!0,c.hasUbatB=!0,c.dir),UBAT_S:()=>(c.hasUbatS=!0,4),UBAT_LRE:()=>(c.lastArabic=!1,4),UBAT_RLE:()=>(c.lastArabic=!1,4),UBAT_LRO:()=>(c.lastArabic=!1,4),UBAT_RLO:()=>(c.lastArabic=!1,4),UBAT_PDF:()=>(c.lastArabic=!1,4),UBAT_BN:()=>4}[dt[e[a]]]()}function kt(u){let e,s=0,a=E.length-1;for(;s<=a;)if(e=Math.floor((s+a)/2),uE[e][0]))return E[e][1];s=e+1}return u}function Vt(u){for(let e=0;e<$.length;e++)if($[e]===u)return!0;return!1}function It(u){for(let e=0;e="\u064b"&&u<="\u0655"}function ct(u){return"L"===u?"LTR":"R"===u?"RTL":"C"===u?"CLR":"D"===u?"CRL":""}function xt(u,e,s,a){for(;e*se||!s&&u[c]===e)&&(u[c]+=a)}let F=[],z=[],J=[];const Dt={dir:0,defInFormat:"LLTR",defoutFormat:"VLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,hasBlockSep:!1,hasSegSep:!1,defOutFormat:""},Pt=5,jt=6,x=0,P=1,ht=/^[(I|V)][(L|R|C|D)][(Y|N)][(S|N)][N]$/,Yt=/[\u0591-\u06ff\ufb1d-\ufefc]/},86575:(nt,M,O)=>{O.d(M,{B1:()=>E,DQ:()=>I,DT:()=>Q,JJ:()=>U,Or:()=>H,_U:()=>w,k3:()=>K,sX:()=>o});const E=Number.POSITIVE_INFINITY,U=Math.PI,w=2*U,N=128/U,Q=U/180,G=1/Math.LN2;function I(A,t){return(A%=t)>=0?A:A+t}function H(A){return I(A*N,256)}function K(A){return Math.log(A)*G}function o(A,t,b){return A*(1-b)+t*b}},84439:(nt,M,O)=>{O.d(M,{Z:()=>E});class E{constructor(w=0,j=0,N=0,Y=0){this.x=w,this.y=j,this.width=N,this.height=Y}get isEmpty(){return this.width<=0||this.height<=0}union(w){this.x=Math.min(this.x,w.x),this.y=Math.min(this.y,w.y),this.width=Math.max(this.width,w.width),this.height=Math.max(this.height,w.height)}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3774.b9f4e09d55e16c42.js b/apps/n/porrtal-io-app/public/angular/3774.b9f4e09d55e16c42.js deleted file mode 100644 index ca9528ac..00000000 --- a/apps/n/porrtal-io-app/public/angular/3774.b9f4e09d55e16c42.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3774],{58775:(be,X,y)=>{y.d(X,{O3:()=>pe,lG:()=>re,my:()=>fe,q9:()=>h});var b=y(26584),Y=y(66385),E=y(88071),d=y(36630);const w={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(n){return w[n]}function*D(n){switch(n.type){case"Feature":yield n;break;case"FeatureCollection":for(const s of n.features)s&&(yield s)}}function*j(n){if(!n)return null;switch(n.type){case"Point":yield n.coordinates;break;case"LineString":case"MultiPoint":yield*n.coordinates;break;case"MultiLineString":case"Polygon":for(const s of n.coordinates)yield*s;break;case"MultiPolygon":for(const s of n.coordinates)for(const l of s)yield*l}}function k(n){for(const s of n)if(s.length>2)return!0;return!1}function q(n){let s=0;for(let l=0;l=0;p--)V(n,s[p],l);n.lengths.push(s.length)}function V(n,s,l){const[p,m,P]=s;n.coords.push(p,m),l.hasZ&&n.coords.push(P||0)}function ce(n){switch(typeof n){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function pe(n){if(!n)throw new b.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==n.type&&"FeatureCollection"!==n.type)throw new b.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:n});const{crs:s}=n;if(!s)return;const l="string"==typeof s?s:"name"===s.type?s.properties.name:"EPSG"===s.type?s.properties.code:null,p=new RegExp(".*(CRS84H?|4326)$","i");if(!l||!p.test(l))throw new b.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:s})}function fe(n,s={}){const l=[],p=new Set,m=new Set;let P,L=!1,T=null,C=!1,{geometryType:Z=null}=s,z=!1;for(const W of D(n)){const{geometry:U,properties:R,id:v}=W;if((!U||(Z||(Z=h(U.type)),h(U.type)===Z))&&(L||(L=k(j(U))),C||(C=null!=v,C&&(P=typeof v,T=Object.keys(R).filter(A=>R[A]===v))),C&&null!=v&&(T.length>1?T=T.filter(A=>R[A]===v):1===T.length&&(T=R[T[0]]===v?T:[])),!z&&R)){let A=!0;for(const F in R){if(p.has(F))continue;const B=R[F];if(null==B){A=!1,m.add(F);continue}const oe=ce(B);"unknown"!==oe?(m.delete(F),p.add(F),l.push({name:(0,d.q6)(F),alias:F,type:oe})):m.add(F)}z=A}}const H=(0,d.q6)(1===T?.length&&T[0]||null);if(H)for(const W of l)if(W.name===H&&(0,d.H7)(W)){W.type="esriFieldTypeOID";break}return{fields:l,geometryType:Z,hasZ:L,objectIdFieldName:H,objectIdFieldType:P,unknownFields:Array.from(m)}}function re(n,s){return Array.from(function*Q(n,s={}){const{geometryType:l,objectIdField:p}=s;for(const m of n){const{geometry:P,properties:L,id:T}=m;if(P&&h(P.type)!==l)continue;const C=L||{};let Z=C[p]??null;p&&null!=T&&!C[p]&&(C[p]=Z=T),yield new Y.u_(P?ae(new E.Z,P,s):null,C,null,Z)}}(D(n),s))}},83774:(be,X,y)=>{y.d(X,{M8:()=>$,ft:()=>H,FU:()=>p,Bm:()=>Te,be:()=>W,eB:()=>B});var b=y(15861),E=(y(29132),y(84792)),d=y(26584),w=y(56354),h=y(62208),D=y(10699),j=y(21726),Q=y(55915),k=y(37053),se=y(71774),ie=y(58775);function q(o){return function ae(o){const r=ue.exec(o);if(!r?.groups)return null;const t=r.groups,i=+t.year,a=+t.month-1,u=+t.day,c=+(t.hours??"0"),f=+(t.minutes??"0"),g=+(t.seconds??"0");if(c>23||f>59||g>59)return null;const S=t.ms??"0",x=S?+S.padEnd(3,"0").substring(0,3):0;let M;return M=t.isUTC?Date.UTC(i,a,u,c,f,g,x):t.offsetSign?6e4*("+"===t.offsetSign?-1:1)*(60*+t.offsetHours+ +t.offsetMinutes)+Date.UTC(i,a,u,c,f,g,x):new Date(i,a,u,c,f,g,x).getTime(),Number.isNaN(M)?null:M}(o)??function ee(o){const r=new Date(o).getTime();return Number.isNaN(r)?null:r}(o)}const ue=/^(?:(?-?\d{4,})-(?\d{2})-(?\d{2}))(?:T(?\d{2}):(?\d{2}):(?\d{2})(?:\.(?\d+))?)?(?:(?Z)|(?:(?\+|-)(?\d{2}):(?\d{2})))?$/;var N=y(7255),O=y(36255),te=y(65234),le=y(2004);const _="xlink:href",G="2.0.0",$="__esri_wfs_id__",I="wfs-layer:getWFSLayerTypeInfo-error",ne="wfs-layer:empty-service",V="wfs-layer:feature-type-not-found",fe="wfs-layer:malformed-json",re="wfs-layer:unknown-geometry-type",s="wfs-layer:unsupported-spatial-reference";function p(o,r){return m.apply(this,arguments)}function m(){return(m=(0,b.Z)(function*(o,r){const t=P((yield(0,E.default)(o,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:G,...r?.customParameters},signal:r?.signal})).data);return C(o,t),t})).apply(this,arguments)}function P(o){const r=he(o);(function Ce(o){const r=o.firstElementChild?.getAttribute("version");if(r&&r!==G)throw new d.Z("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${r}. Supported version: ${G}`)})(r),we(r);const t=r.firstElementChild,i=(0,w.Fs)(function Z(o){return(0,N.H)(o,{FeatureTypeList:{FeatureType:r=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",supportedSpatialReferences:[]},i=new Set([4326]),a=u=>{const c=parseInt(u.textContent?.match(/(?\d+$)/i)?.groups?.wkid??"",10);Number.isNaN(c)||i.add(c)};return(0,N.h)(r,{Name:u=>{const{name:c,prefix:f}=J(u.textContent);t.typeName=`${f}:${c}`,t.name=c,t.namespacePrefix=f,t.namespaceUri=u.lookupNamespaceURI(f)},Abstract:u=>{t.description=u.textContent},Title:u=>{t.title=u.textContent},WGS84BoundingBox:u=>{t.extent=function z(o){let r,t,i,a;for(const u of o.children)switch(u.localName){case"LowerCorner":[r,t]=u.textContent.split(" ").map(c=>Number.parseFloat(c));break;case"UpperCorner":[i,a]=u.textContent.split(" ").map(c=>Number.parseFloat(c))}return{xmin:r,ymin:t,xmax:i,ymax:a,spatialReference:k.Zn}}(u)},DefaultSRS:a,DefaultCRS:a,OtherSRS:a,OtherCRS:a}),t.title||(t.title=t.name),t.supportedSpatialReferences.push(...i),t}}})}(t));return{operations:T(t),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}const L=new Set(["json","application/json","geojson","application/json; subtype=geojson"]);function T(o){let r=!1;const t={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}};if((0,N.h)(o,{OperationsMetadata:{Operation:i=>{switch(i.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:a=>{t.GetCapabilities.url=a.getAttribute(_)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:a=>{t.DescribeFeatureType.url=a.getAttribute(_)}}}};case"GetFeature":return{DCP:{HTTP:{Get:a=>{t.GetFeature.url=a.getAttribute(_)}}},Parameter:a=>{if("outputFormat"===a.getAttribute("name"))return{AllowedValues:{Value:u=>{const c=u.textContent;c&&L.has(c.toLowerCase())&&(t.GetFeature.outputFormat=c)}}}}}}},Constraint:i=>{switch(i.getAttribute("name")){case"KVPEncoding":return{DefaultValue:a=>{r="true"===a.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:a=>{t.GetFeature.supportsPagination="true"===a.textContent.toLowerCase()}}}}}}),!r)throw new d.Z("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if((0,h.Wi)(t.GetFeature.outputFormat))throw new d.Z("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return t}function C(o,r){(0,j.$U)(o)&&((0,j.D6)(o,r.operations.DescribeFeatureType.url,!0)&&(r.operations.DescribeFeatureType.url=(0,j.hO)(r.operations.DescribeFeatureType.url)),(0,j.D6)(o,r.operations.GetFeature.url,!0)&&(r.operations.GetFeature.url=(0,j.hO)(r.operations.GetFeature.url)))}function H(o,r,t){return(0,w.sE)(o,i=>t?i.name===r&&i.namespaceUri===t:i.typeName===r||i.name===r)}function W(o,r,t){return U.apply(this,arguments)}function U(){return(U=(0,b.Z)(function*(o,r,t,i={}){const{featureType:a,extent:u}=yield R(o,r,t,i),{fields:c,geometryType:f,swapXY:g,objectIdField:S,geometryField:x}=yield A(o,a.typeName,i);return{url:o.operations.GetCapabilities.url,name:a.name,namespaceUri:a.namespaceUri,fields:c,geometryField:x,geometryType:f,objectIdField:S,spatialReference:i.spatialReference??te.Z.WGS84,extent:u,swapXY:g,wfsCapabilities:o,customParameters:i.customParameters}})).apply(this,arguments)}function R(o,r,t){return v.apply(this,arguments)}function v(){return(v=(0,b.Z)(function*(o,r,t,i={}){const{spatialReference:a=te.Z.WGS84}=i,u=o.readFeatureTypes(),c=r?H(u,r,t):u.next().value;if((0,h.Wi)(c))throw r?new d.Z(V,`The type '${r}' could not be found in the service`):new d.Z(ne,"The service is empty");let f=new le.Z({...c.extent,spatialReference:a});if(!(0,k.fS)(a,k.Zn))try{yield(0,Q.iQ)(k.Zn,a,void 0,i),f=(0,Q.iV)(f,k.Zn)}catch{throw new d.Z(s,"Projection not supported")}return{extent:f,spatialReference:a,featureType:c}})).apply(this,arguments)}function A(o,r){return F.apply(this,arguments)}function F(){return(F=(0,b.Z)(function*(o,r,t={}){const[i,a]=yield(0,D.as)([xe(o.operations.DescribeFeatureType.url,r,t),oe(o,r,t)]);if(i.error||a.error)throw new d.Z(I,`An error occurred while getting info about the feature type '${r}'`,{error:i.error||a.error});const{fields:u,errors:c}=i.value??{},f=i.value?.geometryType||a.value?.geometryType,g=a.value?.swapXY??!1;if((0,h.Wi)(f))throw new d.Z(re,`The geometry type could not be determined for type '${r}`,{typeName:r,geometryType:f,fields:u,errors:c});return{...B(u??[]),geometryType:f,swapXY:g}})).apply(this,arguments)}function B(o){const r=o.find(i=>"geometry"===i.type);let t=o.find(i=>"oid"===i.type);return o=o.filter(i=>"geometry"!==i.type),t||(t=new O.Z({name:$,type:"oid",alias:$}),o.unshift(t)),{geometryField:r?.name??null,objectIdField:t.name,fields:o}}function oe(o,r){return ye.apply(this,arguments)}function ye(){return(ye=(0,b.Z)(function*(o,r,t={}){let i,a=!1;const[u,c]=yield Promise.all([Te(o.operations.GetFeature.url,r,o.operations.GetFeature.outputFormat,{...t,count:1}),(0,E.default)(o.operations.GetFeature.url,{responseType:"text",query:Se(r,void 0,{...t,count:1}),signal:t?.signal})]),f="FeatureCollection"===u.type&&u.features[0]?.geometry;if(f){let g;switch(i=se.Mk.fromJSON((0,ie.q9)(f.type)),f.type){case"Point":g=f.coordinates;break;case"LineString":case"MultiPoint":g=f.coordinates[0];break;case"MultiLineString":case"Polygon":g=f.coordinates[0][0];break;case"MultiPolygon":g=f.coordinates[0][0][0]}const S=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(c.data);if(S){const x=g[0].toFixed(3),M=g[1].toFixed(3),K=parseFloat(S[1]).toFixed(3);x===parseFloat(S[2]).toFixed(3)&&M===K&&(a=!0)}}return{geometryType:i,swapXY:a}})).apply(this,arguments)}function xe(o,r,t){return de.apply(this,arguments)}function de(){return(de=(0,b.Z)(function*(o,r,t){return Fe(r,(yield(0,E.default)(o,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:G,TYPENAME:r,...t?.customParameters},signal:t?.signal})).data)})).apply(this,arguments)}function Fe(o,r){const{name:t}=J(o),i=he(r);we(i);const a=(0,w.sE)((0,N.H)(i.firstElementChild,{element:u=>({name:u.getAttribute("name"),typeName:J(u.getAttribute("type")).name})}),({name:u})=>u===t);if((0,h.pC)(a)){const u=(0,w.sE)((0,N.H)(i.firstElementChild,{complexType:c=>c}),c=>c.getAttribute("name")===a.typeName);if((0,h.pC)(u))return function Pe(o){const r=[],t=[];let i;const a=(0,N.H)(o,{complexContent:{extension:{sequence:{element:u=>u}}}});for(const u of a){const c=u.getAttribute("name");if(!c)continue;let f,g;if(u.hasAttribute("type")?f=J(u.getAttribute("type")).name:(0,N.h)(u,{simpleType:{restriction:M=>(f=J(M.getAttribute("base")).name,{maxLength:K=>{g=+K.getAttribute("value")}})}}),!f)continue;const S="true"===u.getAttribute("nillable");let x=!1;switch(f.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":t.push(new O.Z({name:c,alias:c,type:"integer",nullable:S}));break;case"float":case"double":case"decimal":t.push(new O.Z({name:c,alias:c,type:"double",nullable:S}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":t.push(new O.Z({name:c,alias:c,type:"string",nullable:S,length:g??255}));break;case"datetime":case"date":t.push(new O.Z({name:c,alias:c,type:"date",nullable:S,length:g??36}));break;case"pointpropertytype":i="point",x=!0;break;case"multipointpropertytype":i="multipoint",x=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",x=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",x=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":x=!0,r.push(new d.Z(re,`geometry type '${f}' is not supported`,{type:(new XMLSerializer).serializeToString(o)}));break;default:r.push(new d.Z("wfs-layer:unknown-field-type",`Unknown field type '${f}'`,{type:(new XMLSerializer).serializeToString(o)}))}x&&t.push(new O.Z({name:c,alias:c,type:"geometry",nullable:S}))}for(const u of t)if("integer"===u.type&&!u.nullable&&Ee.has(u.name.toLowerCase())){u.type="oid";break}return{geometryType:i,fields:t,errors:r}}(u)}throw new d.Z(V,`Type '${o}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}const Ee=new Set(["objectid","fid"]);function Te(o,r,t,i){return me.apply(this,arguments)}function me(){return(me=(0,b.Z)(function*(o,r,t,i){let{data:a}=yield(0,E.default)(o,{responseType:"text",query:Se(r,t,i),signal:i?.signal});a=a.replace(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{if(i?.dateFields?.length){const u=new Set(i.dateFields);return JSON.parse(a,(c,f)=>u.has(c)?q(f):f)}return JSON.parse(a)}catch(u){throw new d.Z(fe,"Error while parsing the\xa0response",{response:a,error:u})}})).apply(this,arguments)}function Se(o,r,t){return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:G,TYPENAMES:o,OUTPUTFORMAT:r,SRSNAME:"EPSG:4326",STARTINDEX:t?.startIndex,COUNT:t?.count,...t?.customParameters}}function he(o){return(new DOMParser).parseFromString(o.trim(),"text/xml")}function J(o){const[r,t]=o.split(":");return{prefix:t?r:"",name:t??r}}function we(o){let r="",t="";if((0,N.h)(o.firstElementChild,{Exception:i=>(r=i.getAttribute("exceptionCode"),{ExceptionText:a=>{t=a.textContent}})}),r)throw new d.Z(`wfs-layer:${r}`,t)}},7255:(be,X,y)=>{function b(E,d){if(E&&d)for(const w of E.children)if(w.localName in d){const h=d[w.localName];if("function"==typeof h){const D=h(w);D&&b(w,D)}else b(w,h)}}function*Y(E,d){for(const w of E.children)if(w.localName in d){const h=d[w.localName];"function"==typeof h?yield h(w):yield*Y(w,h)}}y.d(X,{H:()=>Y,h:()=>b})}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3807.6d43b36edb1a648b.js b/apps/n/porrtal-io-app/public/angular/3807.6d43b36edb1a648b.js deleted file mode 100644 index 70c5447f..00000000 --- a/apps/n/porrtal-io-app/public/angular/3807.6d43b36edb1a648b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3807],{43807:(M,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(67831),_(99770),_(4794),_(78925),_(35283),_(97347),_(82793),_(71850),_(95285),_(69960),_(65787),_(17625),_(22355),_(16396);var E=_(76269)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3835.3a52e0a3bbc5bb21.js b/apps/n/porrtal-io-app/public/angular/3835.3a52e0a3bbc5bb21.js deleted file mode 100644 index 7dc1da78..00000000 --- a/apps/n/porrtal-io-app/public/angular/3835.3a52e0a3bbc5bb21.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3835],{3835:(h,l,e)=>{e.r(l),e.d(l,{default:()=>y});var a=e(17626),o=e(26584),r=e(77712),i=(e(85931),e(90912),e(76898)),n=e(50126);const p=d=>{let s=class extends d{get availableFields(){return this.layer.fieldsIndex.fields.map(v=>v.name)}};return(0,a._)([(0,r.Cb)()],s.prototype,"layer",void 0),(0,a._)([(0,r.Cb)({readOnly:!0})],s.prototype,"availableFields",null),s=(0,a._)([(0,i.j)("esri.views.layers.OGCFeatureLayerView")],s),s};let t=class extends(p(n.Z)){constructor(){super(...arguments),this.type="ogc-feature-3d"}initialize(){this.layer.serviceSupportsSpatialReference(this.view.spatialReference)||this.addResolvingPromise(Promise.reject(new o.Z("layerview:spatial-reference-incompatible","The spatial references supported by this OGC layer are incompatible with the spatial reference of the view",{layer:this.layer})))}};(0,a._)([(0,r.Cb)()],t.prototype,"layer",void 0),t=(0,a._)([(0,i.j)("esri.views.3d.layers.OGCFeatureLayerView3D")],t);const y=t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3907.c049cd607ae41791.js b/apps/n/porrtal-io-app/public/angular/3907.c049cd607ae41791.js deleted file mode 100644 index 2bc87bfc..00000000 --- a/apps/n/porrtal-io-app/public/angular/3907.c049cd607ae41791.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3907],{83907:(a,s,_)=>{_.r(s),_.d(s,{build:()=>r.b}),_(43703),_(52382),_(73132),_(13934),_(78925),_(24255),_(60355),_(26859),_(84833),_(99579),_(36603),_(58173),_(21799),_(66085),_(58208),_(29052),_(54662),_(13146),_(31166),_(10109),_(96395),_(98898),_(92724),_(72968),_(70489),_(92836),_(93609),_(28137),_(2166),_(97139),_(69960),_(65787),_(17625),_(63123),_(22355),_(35387),_(44835),_(16396);var r=_(96160)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3914.41ea51294c64ddc5.js b/apps/n/porrtal-io-app/public/angular/3914.41ea51294c64ddc5.js deleted file mode 100644 index 9c9bd24e..00000000 --- a/apps/n/porrtal-io-app/public/angular/3914.41ea51294c64ddc5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3914],{23914:(p,s,i)=>{i.r(s),i.d(s,{e:()=>f});var u,h,o,d=i(1719),t={exports:{}};u=t,void 0!==(o=t.exports,Object.defineProperty(o,"__esModule",{value:!0}),h=void(o.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"pKr",_era_bc:"eKr",A:"AM",P:"PM",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"jaanuar",February:"veebruar",March:"m\xe4rts",April:"aprill",May:"mai",June:"juuni",July:"juuli",August:"august",September:"september",October:"oktoober",November:"november",December:"detsember",Jan:"jaan",Feb:"veebr",Mar:"m\xe4rts",Apr:"apr","May(short)":"mai",Jun:"juuni",Jul:"juuli",Aug:"aug",Sep:"sept",Oct:"okt",Nov:"nov",Dec:"dets",Sunday:"p\xfchap\xe4ev",Monday:"esmasp\xe4ev",Tuesday:"teisip\xe4ev",Wednesday:"kolmap\xe4ev",Thursday:"neljap\xe4ev",Friday:"reede",Saturday:"laup\xe4ev",Sun:"P",Mon:"E",Tue:"T",Wed:"K",Thu:"N",Fri:"R",Sat:"L",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Suumi",Play:"Esita",Stop:"L\xf5peta",Legend:"Legend","Click, tap or press ENTER to toggle":"",Loading:"Laadin",Home:"Kodu",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Prindi",Image:"Pilt",Data:"Andmed",Print:"Prindi","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Alates %1 kuni %2","From %1":"Alates %1","To %1":"Kuni %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(_,o){for(var r=0;re[a]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3926.e0edc8e9ca077282.js b/apps/n/porrtal-io-app/public/angular/3926.e0edc8e9ca077282.js deleted file mode 100644 index 949a5342..00000000 --- a/apps/n/porrtal-io-app/public/angular/3926.e0edc8e9ca077282.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3926],{53926:(c,d,n)=>{n.r(d),n.d(d,{SamplesComponent:()=>l});var e=n(36895),s=n(30878),p=n(46485),m=n(9266),t=n(94650);const i=[{displayText:"Create Account",displayIcon:"account_box",componentName:"AccountCreateComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"Account {accountId}",displayText:"Account {accountId}",displayIcon:"account_box",componentName:"AccountDetailComponent",entityType:"account",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"Billing {accountId}",displayText:"Billing {accountId}",displayIcon:"account_box",componentName:"AccountBillingHistoryComponent",entityType:"account",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"AccountNav",launchAtStartup:!0,displayText:"Account Navigation",paneType:"nav",displayIcon:"account_box",userInfo:[{viewId:"info-markdown",state:{displayText:"User Docs",displayIcon:"menu_book",contentUrl:"https://raw.githubusercontent.com/datumgeek/jersey-rest-test03/master/README.md"}},{viewId:"info-youtube",state:{displayText:"User Video",displayIcon:"videocam",videoId:"Z76QlSpYcck"}}],devInfo:[{viewId:"info-markdown",state:{displayText:"Dev Docs",displayIcon:"menu_book",contentUrl:"https://raw.githubusercontent.com/datumgeek/jersey-rest-test03/master/README.md"}},{viewId:"info-youtube",state:{displayText:"Dev Video",displayIcon:"videocam",videoId:"Z76QlSpYcck"}}],componentName:"AccountNavComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"AccountSearch",launchAtStartup:!0,displayText:"Account",paneType:"search",displayIcon:"account_box",componentName:"AccountSearchComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Create Appointment",displayIcon:"calendar_month",componentName:"AppointmentCreateComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"Appointment {appointmentId}",displayText:"Appointment {appointmentId}",displayIcon:"calendar_month",componentName:"AppointmentDetailComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"AppointmentLocationMap {appointmentId}",displayText:"Map {appointmentId}",displayIcon:"calendar_month",componentName:"AppointmentLocationMapComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"AppointmentNav",launchAtStartup:!0,displayText:"Appointment Navigation",paneType:"nav",displayIcon:"calendar_month",componentName:"AppointmentNavComponent",componentModule:()=>(console.log("appointment nav component module function called..."),Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863)))},{key:"AppointmentSearch",launchAtStartup:!0,displayText:"Appointment",paneType:"search",displayIcon:"calendar_month",componentName:"AppointmentSearchComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"AppointmentNav",launchAtStartup:!0,displayText:"Appointment Navigation",paneType:"nav",displayIcon:"calendar_month",componentName:"AppointmentNavComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{key:"VizNav",launchAtStartup:!0,displayText:"Viz Demos",paneType:"nav",displayIcon:"map",componentName:"VizNavComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Buildings",displayIcon:"office",componentName:"BuildingSceneWithQueryComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Earth",displayIcon:"globe",componentName:"DigitalElevationMapComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Hurricane",displayIcon:"git-commit",componentName:"HurricaneMapComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Earthquake",displayIcon:"inner-join",componentName:"EarthquakeMapComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Collapse Tree Chart",displayIcon:"diagram-tree",componentName:"CollapsibleTreeComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Bar Chart",displayIcon:"diagram-tree",componentName:"HierarchicalBarChartComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Icicle Chart",displayIcon:"diagram-tree",componentName:"ZoomableIcicleComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Sunburst Chart",displayIcon:"diagram-tree",componentName:"ZoomableSunburstComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Treemap Chart",displayIcon:"diagram-tree",componentName:"ZoomableTreemapComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"Circle Pack Chart",displayIcon:"diagram-tree",componentName:"ZoomableCirclePackComponent",componentModule:()=>Promise.all([n.e(5439),n.e(8863)]).then(n.bind(n,8863))},{displayText:"YouTube Video",displayIcon:"videocam",componentName:"YoutubePlayerComponent",componentModule:()=>n.e(9487).then(n.bind(n,19487))},{key:"md{id}",displayText:"Markdown Viewer",displayIcon:"book",componentName:"MarkdownViewerComponent",componentModule:()=>n.e(9487).then(n.bind(n,19487))},{viewId:"info-markdown",displayText:"{displayText}",displayIcon:"{displayIcon}",paneType:"right",componentName:"MarkdownViewerComponent",componentModule:()=>n.e(9487).then(n.bind(n,19487))},{viewId:"info-youtube",displayText:"{displayText}",displayIcon:"{displayIcon}",paneType:"right",componentName:"YoutubePlayerComponent",componentModule:()=>n.e(9487).then(n.bind(n,19487))}];class l{constructor(a){this.shellStateService=a,this.reactUiLibrary=(0,m.WG)(),this.angularUiLibrary=(0,m.Cn)(),this.bannerData={...m.s6,displayText:`samples ${this.angularUiLibrary?"(":""}${this.angularUiLibrary}${this.angularUiLibrary?")":""}`},i.forEach(o=>a.dispatch({type:"registerView",view:o})),a.dispatch({type:"launchStartupViews"})}static#n=this.\u0275fac=function(o){return new(o||l)(t.Y36(s.vv))};static#o=this.\u0275cmp=t.Xpm({type:l,selectors:[["porrtal-workspace-samples"]],standalone:!0,features:[t.jDz],decls:1,vars:1,consts:[[3,"bannerData"]],template:function(o,y){1&o&&t._UZ(0,"porrtal-shell-layout",0),2&o&&t.Q6J("bannerData",y.bannerData)},dependencies:[e.ez,p.Dg],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3959.7403c7f767b7bcad.js b/apps/n/porrtal-io-app/public/angular/3959.7403c7f767b7bcad.js deleted file mode 100644 index e243c72d..00000000 --- a/apps/n/porrtal-io-app/public/angular/3959.7403c7f767b7bcad.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3959],{93959:(a,s,_)=>{_.r(s),_.d(s,{build:()=>r.b}),_(52382),_(73132),_(13934),_(78925),_(24255),_(60355),_(26859),_(84833),_(99579),_(36603),_(58173),_(66085),_(58208),_(54662),_(13146),_(31166),_(10109),_(98898),_(92724),_(72968),_(92836),_(93609),_(28137),_(2166),_(97139),_(69960),_(65787),_(17625),_(22355),_(35387),_(44835),_(16396);var r=_(77133)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3999.eb34a7d4efacec53.js b/apps/n/porrtal-io-app/public/angular/3999.eb34a7d4efacec53.js deleted file mode 100644 index b1296036..00000000 --- a/apps/n/porrtal-io-app/public/angular/3999.eb34a7d4efacec53.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[3999],{73999:(E,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(67831),_(99770),_(98071),_(47923),_(39832),_(95285),_(65787),_(17625),_(22355),_(35387);var a=_(52376)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/3rdpartylicenses.txt b/apps/n/porrtal-io-app/public/angular/3rdpartylicenses.txt index 934a4466..7009621e 100644 --- a/apps/n/porrtal-io-app/public/angular/3rdpartylicenses.txt +++ b/apps/n/porrtal-io-app/public/angular/3rdpartylicenses.txt @@ -91,275 +91,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@arcgis/core -SEE LICENSE IN copyright.txt - -@babel/runtime -MIT -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@esri/arcgis-html-sanitizer -Apache-2.0 -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, -and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by -the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all -other entities that control, are controlled by, or are under common -control with that entity. For the purposes of this definition, -"control" means (i) the power, direct or indirect, to cause the -direction or management of such entity, whether by contract or -otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity -exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation -source, and configuration files. - -"Object" form shall mean any form resulting from mechanical -transformation or translation of a Source form, including but -not limited to compiled object code, generated documentation, -and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or -Object form, made available under the License, as indicated by a -copyright notice that is included in or attached to the work -(an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object -form, that is based on (or derived from) the Work and for which the -editorial revisions, annotations, elaborations, or other modifications -represent, as a whole, an original work of authorship. For the purposes -of this License, Derivative Works shall not include works that remain -separable from, or merely link (or bind by name) to the interfaces of, -the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including -the original version of the Work and any modifications or additions -to that Work or Derivative Works thereof, that is intentionally -submitted to Licensor for inclusion in the Work by the copyright owner -or by an individual or Legal Entity authorized to submit on behalf of -the copyright owner. For the purposes of this definition, "submitted" -means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, -and issue tracking systems that are managed by, or on behalf of, the -Licensor for the purpose of discussing and improving the Work, but -excluding communication that is conspicuously marked or otherwise -designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity -on behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of -this License, each Contributor hereby grants to You a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable -copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the -Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of -this License, each Contributor hereby grants to You a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable -(except as stated in this section) patent license to make, have made, -use, offer to sell, sell, import, and otherwise transfer the Work, -where such license applies only to those patent claims licensable -by such Contributor that are necessarily infringed by their -Contribution(s) alone or by combination of their Contribution(s) -with the Work to which such Contribution(s) was submitted. If You -institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work -or a Contribution incorporated within the Work constitutes direct -or contributory patent infringement, then any patent licenses -granted to You under this License for that Work shall terminate -as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the -Work or Derivative Works thereof in any medium, with or without -modifications, and in Source or Object form, provided that You -meet the following conditions: - -(a) You must give any other recipients of the Work or -Derivative Works a copy of this License; and - -(b) You must cause any modified files to carry prominent notices -stating that You changed the files; and - -(c) You must retain, in the Source form of any Derivative Works -that You distribute, all copyright, patent, trademark, and -attribution notices from the Source form of the Work, -excluding those notices that do not pertain to any part of -the Derivative Works; and - -(d) If the Work includes a "NOTICE" text file as part of its -distribution, then any Derivative Works that You distribute must -include a readable copy of the attribution notices contained -within such NOTICE file, excluding those notices that do not -pertain to any part of the Derivative Works, in at least one -of the following places: within a NOTICE text file distributed -as part of the Derivative Works; within the Source form or -documentation, if provided along with the Derivative Works; or, -within a display generated by the Derivative Works, if and -wherever such third-party notices normally appear. The contents -of the NOTICE file are for informational purposes only and -do not modify the License. You may add Your own attribution -notices within Derivative Works that You distribute, alongside -or as an addendum to the NOTICE text from the Work, provided -that such additional attribution notices cannot be construed -as modifying the License. - -You may add Your own copyright statement to Your modifications and -may provide additional or different license terms and conditions -for use, reproduction, or distribution of Your modifications, or -for any such Derivative Works as a whole, provided Your use, -reproduction, and distribution of the Work otherwise complies with -the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, -any Contribution intentionally submitted for inclusion in the Work -by You to the Licensor shall be under the terms and conditions of -this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify -the terms of any separate license agreement you may have executed -with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade -names, trademarks, service marks, or product names of the Licensor, -except as required for reasonable and customary use in describing the -origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or -agreed to in writing, Licensor provides the Work (and each -Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -implied, including, without limitation, any warranties or conditions -of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A -PARTICULAR PURPOSE. You are solely responsible for determining the -appropriateness of using or redistributing the Work and assume any -risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, -whether in tort (including negligence), contract, or otherwise, -unless required by applicable law (such as deliberate and grossly -negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, -incidental, or consequential damages of any character arising as a -result of this License or out of the use or inability to use the -Work (including but not limited to damages for loss of goodwill, -work stoppage, computer failure or malfunction, or any and all -other commercial damages or losses), even if such Contributor -has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing -the Work or Derivative Works thereof, You may choose to offer, -and charge a fee for, acceptance of support, warranty, indemnity, -or other liability obligations and/or rights consistent with this -License. However, in accepting such obligations, You may act only -on Your own behalf and on Your sole responsibility, not on behalf -of any other Contributor, and only if You agree to indemnify, -defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason -of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - -To apply the Apache License to your work, attach the following -boilerplate notice, with the fields enclosed by brackets "{}" -replaced with your own identifying information. (Don't include -the brackets!) The text should be enclosed in the appropriate -comment syntax for the file format. We also recommend that a -file or class name and description of purpose be included on the -same "printed page" as the copyright notice for easier -identification within third-party archives. - -Copyright Esri 2020 - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ------------------------------------------------------------------ - -js-xss/ - -/* - Copyright (c) 2012-2017 Zongmin Lei(雷宗民) - http://ucdok.com - - The MIT License - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -@esri/calcite-colors -SEE LICENSE IN README.md - -@esri/calcite-components -SEE LICENSE IN copyright.txt - @popperjs/core MIT The MIT License (MIT) @@ -405,12 +136,6 @@ Apache-2.0 @rx-angular/state MIT -@stencil/core/internal - -@stencil/core/internal/app-data - -@stencil/core/internal/client - a-porrtal-io-app ag-grid-angular @@ -915,42 +640,6 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -focus-trap -MIT -The MIT License (MIT) - -Copyright (c) 2015-2016 David Clark - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -luxon -MIT -Copyright 2019 JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - marked MIT # License information @@ -1259,32 +948,6 @@ Apache-2.0 -tabbable -MIT -The MIT License (MIT) - -Copyright (c) 2015 David Clark - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - tslib 0BSD Copyright (c) Microsoft Corporation. diff --git a/apps/n/porrtal-io-app/public/angular/403.af6f7402bb9644e0.js b/apps/n/porrtal-io-app/public/angular/403.af6f7402bb9644e0.js deleted file mode 100644 index e8dd305f..00000000 --- a/apps/n/porrtal-io-app/public/angular/403.af6f7402bb9644e0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[403],{68171:(D,h,t)=>{t.d(h,{DE:()=>v,EQ:()=>y,Yc:()=>i,co:()=>C,nY:()=>_,pQ:()=>o});var e=t(62208),T=t(51494);function v(m,n){if((0,e.Wi)(m))return null;const a={},c=new RegExp(`^${n}`,"i");for(const d of Object.keys(m))if(c.test(d)){const l=d.substring(n.length);a[T.Ul.fromJSON(l)]=m[d]}return a}function _(m,n,a){if(!(0,e.Wi)(m)){n.attributes||(n.attributes={});for(const c in m){const d=T.Ul.toJSON(c);n.attributes[`${a}${d}`]=m[c]}}}function y(m){const n={};for(const a of Object.keys(m))n[T.Ul.fromJSON(a)]=m[a];return n}function C(m){const n={};for(const a of Object.keys(m))n[T.Ul.toJSON(a)]=m[a];return n}function o(m,n){return(0,e.Wi)(m)||(0,e.Wi)(n)?null:Math.round((m-n)/6e4)}function i(m){const n=m.toJSON(),a=n;return a.accumulateAttributeNames&&(a.accumulateAttributeNames=n.accumulateAttributeNames.join()),a.attributeParameterValues&&(a.attributeParameterValues=JSON.stringify(n.attributeParameterValues)),a.barriers&&(a.barriers=JSON.stringify(n.barriers)),a.outSR&&(a.outSR=n.outSR.wkid),a.overrides&&(a.overrides=JSON.stringify(n.overrides)),a.polygonBarriers&&(a.polygonBarriers=JSON.stringify(n.polygonBarriers)),a.polylineBarriers&&(a.polylineBarriers=JSON.stringify(n.polylineBarriers)),a.restrictionAttributeNames&&(a.restrictionAttributeNames=n.restrictionAttributeNames.join()),a.stops&&(a.stops=JSON.stringify(n.stops)),a.travelMode&&(a.travelMode=JSON.stringify(n.travelMode)),a}},99683:(D,h,t)=>{t.d(h,{Z:()=>l});var c,e=t(17626),T=t(88879),v=t(73281),_=t(20383),y=t(79608),C=t(86810),o=t(62208),i=t(77712),m=(t(85931),t(90912),t(76898)),n=t(55214),a=t(51494);let d=c=class extends((0,y.J)(C.wq)){constructor(p){super(p),this.directionLineType=null,this.directionPointId=null,this.distance=null,this.duration=null,this.fromLevel=null,this.geometry=null,this.objectId=null,this.popupTemplate=null,this.symbol=null,this.toLevel=null,this.type="direction-line"}static fromGraphic(p){return new c({directionLineType:a.td.fromJSON(p.attributes.DirectionLineType),directionPointId:p.attributes.DirectionPointID,distance:p.attributes.Meters,duration:p.attributes.Minutes,fromLevel:p.attributes.FromLevel??null,geometry:p.geometry,objectId:p.attributes.ObjectID??p.attributes.__OBJECTID,popupTemplate:p.popupTemplate,symbol:p.symbol,toLevel:p.attributes.ToLevel??null})}toGraphic(){const p={ObjectID:(0,o.Wg)(this.objectId),DirectionLineType:(0,o.pC)(this.directionLineType)?a.td.toJSON(this.directionLineType):null,DirectionPointID:(0,o.Wg)(this.directionPointId),Meters:(0,o.Wg)(this.distance),Minutes:(0,o.Wg)(this.duration)};return(0,o.pC)(this.fromLevel)&&(p.FromLevel=this.fromLevel),(0,o.pC)(this.toLevel)&&(p.ToLevel=this.toLevel),new T.Z({geometry:this.geometry,attributes:p,symbol:this.symbol,popupTemplate:this.popupTemplate})}};d.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriDirectionsLineType",codedValues:[{name:"Unknown",code:0},{name:"Segment",code:1},{name:"Maneuver Segment",code:2},{name:"Restriction violation",code:3},{name:"Scale cost barrier crossing",code:4},{name:"Heavy Traffic",code:5},{name:"Slow Traffic",code:6},{name:"Moderate Traffic",code:7}]}},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1},{name:"FromLevel",alias:"Start from 3D Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1},{name:"Meters",alias:"Length in Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"Minutes",alias:"Duration in Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"ToLevel",alias:"End at 3D Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1}],d.popupInfo={title:"Direction Lines",fieldInfos:[{fieldName:"DirectionLineType",label:"Line Type",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"Meters",label:"Length in Meters",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Minutes",label:"Duration in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DirectionPointID",label:"Direction Point ID",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"FromLevel",label:"Start from 3D Level",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ToLevel",label:"End at 3D Level",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,e._)([(0,i.Cb)({type:a.td.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:a.td.read}}})],d.prototype,"directionLineType",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.DirectionPointID"}}})],d.prototype,"directionPointId",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.Meters"}}})],d.prototype,"distance",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.Minutes"}}})],d.prototype,"duration",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.FromLevel"}}})],d.prototype,"fromLevel",void 0),(0,e._)([(0,i.Cb)({type:n.Z})],d.prototype,"geometry",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.ObjectID"}}})],d.prototype,"objectId",void 0),(0,e._)([(0,i.Cb)({type:v.Z})],d.prototype,"popupTemplate",void 0),(0,e._)([(0,i.Cb)({types:_.LB})],d.prototype,"symbol",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.ToLevel"}}})],d.prototype,"toLevel",void 0),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"type",void 0),d=c=(0,e._)([(0,m.j)("esri.rest.support.DirectionLine")],d);const l=d},58924:(D,h,t)=>{t.d(h,{Z:()=>p});var d,e=t(17626),T=t(88879),v=t(73281),_=t(20383),y=t(79608),C=t(86810),o=t(62208),i=t(77712),m=(t(85931),t(90912),t(68653)),n=t(76898),a=t(72642),c=t(51494);let l=d=class extends((0,y.J)(C.wq)){constructor(r){super(r),this.alternateName=null,this.arrivalTime=null,this.arrivalTimeOffset=null,this.azimuth=null,this.branchName=null,this.directionPointType=null,this.displayText=null,this.exitName=null,this.geometry=null,this.intersectingName=null,this.level=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.type="direction-point",this.voiceInstruction=null}readArrivalTime(r,u){return(0,o.pC)(u.attributes.ArrivalTime)?new Date(u.attributes.ArrivalTime):null}static fromGraphic(r){return new d({alternateName:r.attributes.AlternateName??null,arrivalTime:(0,o.pC)(r.attributes.ArrivalTime)?new Date(r.attributes.ArrivalTime):null,arrivalTimeOffset:r.attributes.ArrivalUTCOffset??null,azimuth:r.attributes.Azimuth??null,branchName:r.attributes.BranchName??null,directionPointType:c.cW.fromJSON(r.attributes.DirectionPointType),displayText:r.attributes.DisplayText??null,exitName:r.attributes.ExitName??null,geometry:r.geometry,intersectingName:r.attributes.IntersectingName??null,level:r.attributes.Level??null,name:r.attributes.Name??null,objectId:r.attributes.ObjectID??r.attributes.__OBJECTID,popupTemplate:r.popupTemplate,sequence:r.attributes.Sequence,shortVoiceInstruction:r.attributes.ShortVoiceInstruction??null,stopId:r.attributes.StopID??null,symbol:r.symbol,towardName:r.attributes.TowardName??null,voiceInstruction:r.attributes.VoiceInstruction??null})}toGraphic(){const r={ObjectID:(0,o.Wg)(this.objectId),DirectionPointType:(0,o.pC)(this.directionPointType)?c.cW.toJSON(this.directionPointType):null,Sequence:(0,o.Wg)(this.sequence),StopID:this.stopId};return(0,o.pC)(this.alternateName)&&(r.AlternateName=this.alternateName),(0,o.pC)(this.arrivalTime)&&(r.ArrivalTime=this.arrivalTime.getTime()),(0,o.pC)(this.arrivalTimeOffset)&&(r.ArrivalUTCOffset=this.arrivalTimeOffset),(0,o.pC)(this.azimuth)&&(r.Azimuth=this.azimuth),(0,o.pC)(this.branchName)&&(r.BranchName=this.branchName),(0,o.pC)(this.displayText)&&(r.DisplayText=this.displayText),(0,o.pC)(this.exitName)&&(r.ExitName=this.exitName),(0,o.pC)(this.intersectingName)&&(r.IntersectingName=this.intersectingName),(0,o.pC)(this.level)&&(r.Level=this.level),(0,o.pC)(this.name)&&(r.Name=this.name),(0,o.pC)(this.shortVoiceInstruction)&&(r.ShortVoiceInstruction=this.shortVoiceInstruction),(0,o.pC)(this.towardName)&&(r.TowardName=this.towardName),(0,o.pC)(this.voiceInstruction)&&(r.VoiceInstruction=this.voiceInstruction),new T.Z({geometry:this.geometry,attributes:r,symbol:this.symbol,popupTemplate:this.popupTemplate})}};l.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"AlternateName",alias:"Alternative Feature Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"ArrivalTime",alias:"Maneuver Starts at",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"ArrivalUTCOffset",alias:"Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"BranchName",alias:"Signpost Branch Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"DirectionPointType",alias:"Directions Item Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriDirectionPointType",codedValues:[{name:"Unknown",code:0},{name:"",code:1},{name:"Arrive at stop",code:50},{name:"Depart at stop",code:51},{name:"Go straight",code:52},{name:"Take ferry",code:100},{name:"Take off ferry",code:101},{name:"Keep center at fork",code:102},{name:"Take roundabout",code:103},{name:"Make U-Turn",code:104},{name:"Pass the door",code:150},{name:"Take stairs",code:151},{name:"",code:152},{name:"Take escalator",code:153},{name:"Take pedestrian ramp",code:154},{name:"Keep left at fork",code:200},{name:"Ramp left",code:201},{name:"Take left-handed roundabout",code:202},{name:"Make left-handed U-Turn",code:203},{name:"Bear left",code:204},{name:"Turn left",code:205},{name:"Make sharp left",code:206},{name:"Turn left, followed by turn left",code:207},{name:"Turn left, followed by turn right",code:208},{name:"Keep right at fork",code:300},{name:"Ramp right",code:301},{name:"Take right-handed roundabout",code:302},{name:"Make right-handed U-Turn",code:303},{name:"Bear right",code:304},{name:"Turn right",code:305},{name:"Make sharp right",code:306},{name:"Turn right, followed by turn left",code:307},{name:"Turn right, followed by turn right",code:308},{name:"Indicates up direction of elevator",code:400},{name:"Indicates up direction of escalator",code:401},{name:"Take up-stairs",code:402},{name:"Indicates down direction of elevator",code:500},{name:"Indicates down direction of escalator",code:501},{name:"Take down-stairs",code:502},{name:"General event",code:1e3},{name:"Landmark",code:1001},{name:"Time zone change",code:1002},{name:"Heavy traffic segment",code:1003},{name:"Scale cost barrier crossing",code:1004},{name:"Administrative Border crossing",code:1005},{name:"Restriction violation",code:1006}]}},{name:"DisplayText",alias:"Text to Display",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"ExitName",alias:"Highway Exit Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"IntersectingName",alias:"Intersecting Feature Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"Level",alias:"3D Logical Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"Name",alias:"Primary Feature Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"ShortVoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"TowardName",alias:"Signpost Toward Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"VoiceInstruction",alias:"Voice Full Instruction",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null}],l.popupInfo={title:"{DisplayText}",fieldInfos:[{fieldName:"DirectionPointType",label:"Directions Item Type",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"DisplayText",label:"Text to Display",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"Sequence",label:"Sequence",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"StopID",label:"Stop ID",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ArrivalTime",label:"Maneuver Starts at",isEditable:!0,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"ArrivalUTCOffset",label:"Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Azimuth",label:"Azimuth",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Name",label:"Primary Feature Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"AlternateName",label:"Alternative Feature Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"ExitName",label:"Highway Exit Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"IntersectingName",label:"Intersecting Feature Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"BranchName",label:"Signpost Branch Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"TowardName",label:"Signpost Toward Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"ShortVoiceInstruction",label:"Voice Instruction",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"VoiceInstruction",label:"Voice Full Instruction",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,e._)([(0,i.Cb)()],l.prototype,"alternateName",void 0),(0,e._)([(0,i.Cb)()],l.prototype,"arrivalTime",void 0),(0,e._)([(0,m.r)("arrivalTime",["attributes.ArrivalTime"])],l.prototype,"readArrivalTime",null),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],l.prototype,"arrivalTimeOffset",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.Azimuth"}}})],l.prototype,"azimuth",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.BranchName"}}})],l.prototype,"branchName",void 0),(0,e._)([(0,i.Cb)({type:c.cW.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:c.cW.read}}})],l.prototype,"directionPointType",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.DisplayText"}}})],l.prototype,"displayText",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.ExitName"}}})],l.prototype,"exitName",void 0),(0,e._)([(0,i.Cb)({type:a.Z})],l.prototype,"geometry",void 0),(0,e._)([(0,i.Cb)()],l.prototype,"intersectingName",void 0),(0,e._)([(0,i.Cb)()],l.prototype,"level",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.Name"}}})],l.prototype,"name",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.ObjectID"}}})],l.prototype,"objectId",void 0),(0,e._)([(0,i.Cb)({type:v.Z})],l.prototype,"popupTemplate",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.Sequence"}}})],l.prototype,"sequence",void 0),(0,e._)([(0,i.Cb)()],l.prototype,"shortVoiceInstruction",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.StopID"}}})],l.prototype,"stopId",void 0),(0,e._)([(0,i.Cb)({types:_.LB})],l.prototype,"symbol",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.TowardName"}}})],l.prototype,"towardName",void 0),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],l.prototype,"type",void 0),(0,e._)([(0,i.Cb)()],l.prototype,"voiceInstruction",void 0),l=d=(0,e._)([(0,n.j)("esri.rest.support.DirectionPoint")],l);const p=l},53753:(D,h,t)=>{t.d(h,{Z:()=>u});var p,e=t(17626),T=t(88879),v=t(73281),_=t(20383),y=t(79608),C=t(86810),o=t(62208),i=t(77712),m=(t(85931),t(90912),t(68653)),n=t(76898),a=t(99433),c=t(72642),d=t(68171),l=t(51494);let r=p=class extends((0,y.J)(C.wq)){constructor(s){super(s),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.type="point-barrier"}readCosts(s,b){return(0,d.DE)(b.attributes,"Attr_")}writeCosts(s,b){(0,d.nY)(s,b,"Attr_")}static fromGraphic(s){return new p({addedCost:s.attributes.AddedCost??null,barrierType:(0,o.pC)(s.attributes.BarrierType)?l.oi.fromJSON(s.attributes.BarrierType):null,costs:(0,o.pC)(s.attributes.Costs)?(0,d.EQ)(JSON.parse(s.attributes.Costs)):null,curbApproach:(0,o.pC)(s.attributes.CurbApproach)?l.W7.fromJSON(s.attributes.CurbApproach):null,fullEdge:(0,o.pC)(s.attributes.FullEdge)?l.Dd.fromJSON(s.attributes.FullEdge):null,geometry:s.geometry,name:s.attributes.Name??null,objectId:s.attributes.ObjectID??s.attributes.__OBJECTID,popupTemplate:s.popupTemplate,status:(0,o.pC)(s.attributes.Status)?l.SS.fromJSON(s.attributes.Status):null,symbol:s.symbol})}toGraphic(){const s={ObjectID:(0,o.Wg)(this.objectId),AddedCost:this.addedCost,BarrierType:(0,o.pC)(this.barrierType)?l.oi.toJSON(this.barrierType):null,Costs:(0,o.pC)(this.costs)?JSON.stringify((0,d.co)(this.costs)):null,CurbApproach:(0,o.pC)(this.curbApproach)?l.W7.toJSON(this.curbApproach):null,FullEdge:(0,o.pC)(this.fullEdge)?l.Dd.toJSON(this.fullEdge):null,Name:this.name,Status:(0,o.pC)(this.status)?l.SS.toJSON(this.status):null};return new T.Z({geometry:this.geometry,attributes:s,symbol:this.symbol,popupTemplate:this.popupTemplate})}};r.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"AddedCost",alias:"Added Cost",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0,domain:null},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNABarrierType",codedValues:[{name:"Restriction",code:0},{name:"Scaled Cost",code:1},{name:"Added Cost",code:2}]}},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNAIntYesNo",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]}},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNAObjectStatus",codedValues:[{name:"OK",code:0},{name:"Not Located on Network",code:1},{name:"Network Unbuilt",code:2},{name:"Prohibited Street",code:3},{name:"Invalid Field Values",code:4},{name:"Cannot Reach",code:5},{name:"Time Window Violation",code:6}]}}],r.popupInfo={title:"Point Barriers",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"BarrierType",label:"Barrier Type",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"AddedCost",label:"Added Cost",isEditable:!0,tooltip:"",visible:!0,format:{places:3,digitSeparator:!0},stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,e._)([(0,i.Cb)()],r.prototype,"addedCost",void 0),(0,e._)([(0,i.Cb)({type:l.oi.apiValues,json:{name:"attributes.BarrierType",read:{reader:l.oi.read},write:{writer:l.oi.write}}})],r.prototype,"barrierType",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"costs",void 0),(0,e._)([(0,m.r)("costs",["attributes"])],r.prototype,"readCosts",null),(0,e._)([(0,a.c)("costs")],r.prototype,"writeCosts",null),(0,e._)([(0,i.Cb)({type:l.W7.apiValues,json:{read:{source:"attributes.CurbApproach",reader:l.W7.read}}})],r.prototype,"curbApproach",void 0),(0,e._)([(0,i.Cb)({type:l.Dd.apiValues,json:{name:"attributes.FullEdge",read:{reader:l.Dd.read},write:{writer:l.Dd.write}}})],r.prototype,"fullEdge",void 0),(0,e._)([(0,i.Cb)({type:c.Z,json:{write:!0}})],r.prototype,"geometry",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.Name"}})],r.prototype,"name",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.ObjectID"}})],r.prototype,"objectId",void 0),(0,e._)([(0,i.Cb)({type:v.Z})],r.prototype,"popupTemplate",void 0),(0,e._)([(0,i.Cb)({type:l.BW.apiValues,json:{read:{source:"attributes.SideOfEdge",reader:l.BW.read}}})],r.prototype,"sideOfEdge",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.SourceID"}}})],r.prototype,"sourceId",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.SourceOID"}}})],r.prototype,"sourceOid",void 0),(0,e._)([(0,i.Cb)({type:l.SS.apiValues,json:{read:{source:"attributes.Status",reader:l.SS.read}}})],r.prototype,"status",void 0),(0,e._)([(0,i.Cb)({types:_.LB})],r.prototype,"symbol",void 0),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],r.prototype,"type",void 0),r=p=(0,e._)([(0,n.j)("esri.rest.support.PointBarrier")],r);const u=r},719:(D,h,t)=>{t.d(h,{Z:()=>u});var p,e=t(17626),T=t(88879),v=t(73281),_=t(20383),y=t(79608),C=t(86810),o=t(62208),i=t(77712),m=(t(85931),t(90912),t(68653)),n=t(76898),a=t(99433),c=t(37118),d=t(68171),l=t(51494);let r=p=class extends((0,y.J)(C.wq)){constructor(s){super(s),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polygon-barrier"}readCosts(s,b){return(0,d.DE)(b.attributes,"Attr_")}writeCosts(s,b){(0,d.nY)(s,b,"Attr_")}static fromGraphic(s){return new p({barrierType:(0,o.pC)(s.attributes.BarrierType)?l.oi.fromJSON(s.attributes.BarrierType):null,costs:(0,o.pC)(s.attributes.Costs)?(0,d.EQ)(JSON.parse(s.attributes.Costs)):null,geometry:s.geometry,name:s.attributes.Name??null,objectId:s.attributes.ObjectID??s.attributes.__OBJECTID,popupTemplate:s.popupTemplate,scaleFactor:s.attributes.ScaleFactor??null,symbol:s.symbol})}toGraphic(){const s={ObjectID:(0,o.Wg)(this.objectId),BarrierType:(0,o.pC)(this.barrierType)?l.oi.toJSON(this.barrierType):null,Costs:(0,o.pC)(this.costs)?JSON.stringify((0,d.co)(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new T.Z({geometry:this.geometry,attributes:s,symbol:this.symbol,popupTemplate:this.popupTemplate})}};r.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNABarrierType",codedValues:[{name:"Restriction",code:0},{name:"Scaled Cost",code:1},{name:"Added Cost",code:2}]}},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0}],r.popupInfo={title:"Polygon Barriers",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"BarrierType",label:"Barrier Type",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"ScaleFactor",isEditable:!0,tooltip:"",visible:!0,format:{places:3,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Costs",label:"Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,e._)([(0,i.Cb)({type:l.oi.apiValues,json:{name:"attributes.BarrierType",read:{reader:l.oi.read},write:{writer:l.oi.write}}})],r.prototype,"barrierType",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"costs",void 0),(0,e._)([(0,m.r)("costs",["attributes"])],r.prototype,"readCosts",null),(0,e._)([(0,a.c)("costs")],r.prototype,"writeCosts",null),(0,e._)([(0,i.Cb)({type:c.Z,json:{write:!0}})],r.prototype,"geometry",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.Name"}})],r.prototype,"name",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.ObjectID"}})],r.prototype,"objectId",void 0),(0,e._)([(0,i.Cb)({type:v.Z})],r.prototype,"popupTemplate",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"scaleFactor",void 0),(0,e._)([(0,i.Cb)({types:_.LB})],r.prototype,"symbol",void 0),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],r.prototype,"type",void 0),r=p=(0,e._)([(0,n.j)("esri.rest.support.PolygonBarrier")],r);const u=r},17718:(D,h,t)=>{t.d(h,{Z:()=>r});var l,e=t(17626),T=t(88879),v=t(73281),_=t(20383),y=t(79608),C=t(86810),o=t(62208),i=t(77712),m=(t(85931),t(90912),t(68653)),n=t(76898),a=t(55214),c=t(68171),d=t(51494);let p=l=class extends((0,y.J)(C.wq)){constructor(u){super(u),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polyline-barrier"}readCosts(u,s){return(0,c.DE)(s.attributes,"Attr_")}static fromGraphic(u){return new l({barrierType:(0,o.pC)(u.attributes.BarrierType)?d.oi.fromJSON(u.attributes.BarrierType):null,costs:(0,o.pC)(u.attributes.Costs)?(0,c.EQ)(JSON.parse(u.attributes.Costs)):null,geometry:u.geometry,name:u.attributes.Name??null,objectId:u.attributes.ObjectID??u.attributes.__OBJECTID,popupTemplate:u.popupTemplate,scaleFactor:u.attributes.ScaleFactor??null,symbol:u.symbol})}toGraphic(){const u={ObjectID:(0,o.Wg)(this.objectId),BarrierType:(0,o.pC)(this.barrierType)?d.oi.toJSON(this.barrierType):null,Costs:(0,o.pC)(this.costs)?JSON.stringify((0,c.co)(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new T.Z({geometry:this.geometry,attributes:u,symbol:this.symbol,popupTemplate:this.popupTemplate})}};p.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNABarrierType",codedValues:[{name:"Restriction",code:0},{name:"Scaled Cost",code:1},{name:"Added Cost",code:2}]}},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0}],p.popupInfo={title:"Line Barriers",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"BarrierType",label:"Barrier Type",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"ScaleFactor",isEditable:!0,tooltip:"",visible:!0,format:{places:3,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Costs",label:"Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,e._)([(0,i.Cb)({type:d.oi.apiValues,json:{read:{source:"attributes.BarrierType",reader:d.oi.read}}})],p.prototype,"barrierType",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"costs",void 0),(0,e._)([(0,m.r)("costs",["attributes"])],p.prototype,"readCosts",null),(0,e._)([(0,i.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"geometry",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.Name"}})],p.prototype,"name",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.ObjectID"}})],p.prototype,"objectId",void 0),(0,e._)([(0,i.Cb)({type:v.Z})],p.prototype,"popupTemplate",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"scaleFactor",void 0),(0,e._)([(0,i.Cb)({types:_.LB})],p.prototype,"symbol",void 0),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"type",void 0),p=l=(0,e._)([(0,n.j)("esri.rest.support.PolylineBarrier")],p);const r=p},29739:(D,h,t)=>{t.d(h,{Z:()=>r});var l,e=t(17626),T=t(88879),v=t(73281),_=t(20383),y=t(79608),C=t(86810),o=t(62208),i=t(77712),m=(t(85931),t(90912),t(68653)),n=t(76898),a=t(55214),c=t(68171),d=t(47521);let p=l=class extends((0,y.J)(C.wq)){constructor(u){super(u),this.analysisSettings=null,this.endTime=null,this.endTimeOffset=null,this.firstStopId=null,this.geometry=null,this.lastStopId=null,this.messages=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.startTime=null,this.startTimeOffset=null,this.stopCount=null,this.symbol=null,this.totalCosts=null,this.totalDistance=null,this.totalDuration=null,this.totalLateDuration=null,this.totalViolations=null,this.totalWait=null,this.totalWaitDuration=null,this.type="route-info",this.version="1.0.0"}readEndTime(u,s){return(0,o.pC)(s.attributes.EndTimeUTC)?new Date(s.attributes.EndTimeUTC):null}readEndTimeOffset(u,s){return(0,c.pQ)(s.attributes.EndTime,s.attributes.EndTimeUTC)}readStartTime(u,s){return(0,o.pC)(s.attributes.StartTimeUTC)?new Date(s.attributes.StartTimeUTC):null}readStartTimeOffset(u,s){return(0,c.pQ)(s.attributes.StartTime,s.attributes.StartTimeUTC)}readTotalCosts(u,s){return(0,c.DE)(s.attributes,"Total_")}readTotalViolations(u,s){return(0,c.DE)(s.attributes,"TotalViolation_")}readTotalWait(u,s){return(0,c.DE)(s.attributes,"TotalWait_")}static fromGraphic(u){return new l({analysisSettings:(0,o.pC)(u.attributes.AnalysisSettings)?d.Z.fromJSON(JSON.parse(u.attributes.AnalysisSettings)):null,endTime:(0,o.pC)(u.attributes.EndTime)?new Date(u.attributes.EndTime):null,endTimeOffset:u.attributes.EndUTCOffset??null,geometry:u.geometry,messages:(0,o.pC)(u.attributes.Messages)?JSON.parse(u.attributes.Messages):null,name:u.attributes.RouteName,objectId:u.attributes.ObjectID??u.attributes.__OBJECTID,popupTemplate:u.popupTemplate,startTime:(0,o.pC)(u.attributes.StartTime)?new Date(u.attributes.StartTime):null,startTimeOffset:u.attributes.StartUTCOffset??null,symbol:u.symbol,totalCosts:(0,o.pC)(u.attributes.TotalCosts)?(0,c.EQ)(JSON.parse(u.attributes.TotalCosts)):null,totalDistance:u.attributes.TotalMeters??null,totalDuration:u.attributes.TotalMinutes??null,totalLateDuration:u.attributes.TotalLateMinutes??null,totalWaitDuration:u.attributes.TotalWaitMinutes??null,version:u.attributes.Version})}toGraphic(){const u={ObjectID:(0,o.Wg)(this.objectId),AnalysisSettings:(0,o.pC)(this.analysisSettings)?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:(0,o.pC)(this.endTime)?this.endTime.getTime():null,EndUTCOffset:this.endTimeOffset,Messages:(0,o.pC)(this.messages)?JSON.stringify(this.messages):null,RouteName:(0,o.Wg)(this.name),StartTime:(0,o.pC)(this.startTime)?this.startTime.getTime():null,StartUTCOffset:this.startTimeOffset,TotalCosts:(0,o.pC)(this.totalCosts)?JSON.stringify((0,c.co)(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:(0,o.Wg)(this.version)};return new T.Z({geometry:this.geometry,attributes:u,symbol:this.symbol,popupTemplate:(0,o.Wg)(this.popupTemplate)})}};p.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"EndUTCOffset",alias:"End Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"Messages",alias:"Analysis Messages",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",length:1024,editable:!0,nullable:!0,visible:!0,domain:null},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"StartUTCOffset",alias:"Start Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"Version",alias:"Version",type:"esriFieldTypeString",length:16,editable:!0,nullable:!0,visible:!0,domain:null}],p.popupInfo={title:"Route Details",fieldInfos:[{fieldName:"RouteName",label:"Route Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"TotalMinutes",label:"Total Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalMeters",label:"Total Meters",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalLateMinutes",label:"Total Late Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalWaitMinutes",label:"Total Wait Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalCosts",label:"Total Costs",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"StartTime",label:"Start Time",isEditable:!1,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"StartUTCOffset",label:"Start Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"EndTime",label:"End Time",isEditable:!1,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"EndUTCOffset",label:"End Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Messages",label:"Analysis Messages",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"AnalysisSettings",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"Version",label:"Version",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,e._)([(0,i.Cb)()],p.prototype,"analysisSettings",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"endTime",void 0),(0,e._)([(0,m.r)("endTime",["attributes.EndTimeUTC"])],p.prototype,"readEndTime",null),(0,e._)([(0,i.Cb)()],p.prototype,"endTimeOffset",void 0),(0,e._)([(0,m.r)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],p.prototype,"readEndTimeOffset",null),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.FirstStopID"}}})],p.prototype,"firstStopId",void 0),(0,e._)([(0,i.Cb)({type:a.Z})],p.prototype,"geometry",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.LastStopID"}}})],p.prototype,"lastStopId",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"messages",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.Name"}}})],p.prototype,"name",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.ObjectID"}}})],p.prototype,"objectId",void 0),(0,e._)([(0,i.Cb)({type:v.Z})],p.prototype,"popupTemplate",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"startTime",void 0),(0,e._)([(0,m.r)("startTime",["attributes.StartTimeUTC"])],p.prototype,"readStartTime",null),(0,e._)([(0,i.Cb)()],p.prototype,"startTimeOffset",void 0),(0,e._)([(0,m.r)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],p.prototype,"readStartTimeOffset",null),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.StopCount"}}})],p.prototype,"stopCount",void 0),(0,e._)([(0,i.Cb)({types:_.LB})],p.prototype,"symbol",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"totalCosts",void 0),(0,e._)([(0,m.r)("totalCosts",["attributes"])],p.prototype,"readTotalCosts",null),(0,e._)([(0,i.Cb)()],p.prototype,"totalDistance",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"totalDuration",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"totalLateDuration",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"totalViolations",void 0),(0,e._)([(0,m.r)("totalViolations",["attributes"])],p.prototype,"readTotalViolations",null),(0,e._)([(0,i.Cb)()],p.prototype,"totalWait",void 0),(0,e._)([(0,m.r)("totalWait",["attributes"])],p.prototype,"readTotalWait",null),(0,e._)([(0,i.Cb)()],p.prototype,"totalWaitDuration",void 0),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"type",void 0),(0,e._)([(0,i.Cb)()],p.prototype,"version",void 0),p=l=(0,e._)([(0,n.j)("esri.rest.support.RouteInfo")],p);const r=p},47521:(D,h,t)=>{t.d(h,{Z:()=>a});var e=t(17626),T=t(86810),v=t(62208),_=t(77712),o=(t(85931),t(90912),t(68653)),i=t(76898),E=t(99433),O=t(51494),m=t(67854);let n=class extends T.wq{constructor(c){super(c),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(c){return(0,v.Wi)(c)?null:c.map(d=>O.Ul.fromJSON(d))}writeAccumulateAttributes(c,d,l){!(0,v.Wi)(c)&&c.length&&(d[l]=c.map(p=>O.Ul.toJSON(p)))}};(0,e._)([(0,_.Cb)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],n.prototype,"accumulateAttributes",void 0),(0,e._)([(0,o.r)("accumulateAttributes")],n.prototype,"readAccumulateAttributes",null),(0,e._)([(0,E.c)("accumulateAttributes")],n.prototype,"writeAccumulateAttributes",null),(0,e._)([(0,_.Cb)({type:String,json:{write:!0}})],n.prototype,"directionsLanguage",void 0),(0,e._)([(0,_.Cb)({type:Boolean,json:{write:!0}})],n.prototype,"findBestSequence",void 0),(0,e._)([(0,_.Cb)({type:Boolean,json:{write:!0}})],n.prototype,"preserveFirstStop",void 0),(0,e._)([(0,_.Cb)({type:Boolean,json:{write:!0}})],n.prototype,"preserveLastStop",void 0),(0,e._)([(0,_.Cb)({type:Boolean,json:{write:!0}})],n.prototype,"startTimeIsUTC",void 0),(0,e._)([(0,_.Cb)({type:Boolean,json:{write:!0}})],n.prototype,"timeWindowsAreUTC",void 0),(0,e._)([(0,_.Cb)({type:m.Z,json:{write:!0}})],n.prototype,"travelMode",void 0),n=(0,e._)([(0,i.j)("esri.layers.support.RouteSettings")],n);const a=n},69583:(D,h,t)=>{t.d(h,{Z:()=>u});var p,e=t(17626),T=t(88879),v=t(73281),_=t(20383),y=t(79608),C=t(86810),o=t(62208),i=t(77712),m=(t(85931),t(90912),t(68653)),n=t(76898),a=t(99433),c=t(72642),d=t(68171),l=t(51494);let r=p=class extends((0,y.J)(C.wq)){constructor(s){super(s),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.geometry=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.posAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(s,b){return(0,d.pQ)(b.attributes.ArriveTime,b.attributes.ArriveTimeUTC)}readCumulativeCosts(s,b){return(0,d.DE)(b.attributes,"Cumul_")}readDepartTimeOffset(s,b){return(0,d.pQ)(b.attributes.DepartTime,b.attributes.DepartTimeUTC)}readServiceCosts(s,b){return(0,d.DE)(b.attributes,"Attr_")}writeServiceCosts(s,b){(0,d.nY)(s,b,"Attr_")}writeTimeWindowEnd(s,b){(0,o.Wi)(s)||(b.attributes||(b.attributes={}),b.attributes.TimeWindowEnd=s.getTime())}writeTimeWindowStart(s,b){(0,o.Wi)(s)||(b.attributes||(b.attributes={}),b.attributes.TimeWindowStart=s.getTime())}readViolations(s,b){return(0,d.DE)(b.attributes,"Violation_")}readWait(s,b){return(0,d.DE)(b.attributes,"Wait_")}static fromGraphic(s){return new p({arriveCurbApproach:(0,o.pC)(s.attributes.ArrivalCurbApproach)?l.W7.fromJSON(s.attributes.ArrivalCurbApproach):null,arriveTime:(0,o.pC)(s.attributes.ArrivalTime)?new Date(s.attributes.ArrivalTime):null,arriveTimeOffset:s.attributes.ArrivalUTCOffset,cumulativeCosts:(0,o.pC)(s.attributes.CumulativeCosts)?(0,d.EQ)(JSON.parse(s.attributes.CumulativeCosts)):null,cumulativeDistance:s.attributes.CumulativeMeters??null,cumulativeDuration:s.attributes.CumulativeMinutes??null,curbApproach:(0,o.pC)(s.attributes.CurbApproach)?l.W7.fromJSON(s.attributes.CurbApproach):null,departCurbApproach:(0,o.pC)(s.attributes.DepartureCurbApproach)?l.W7.fromJSON(s.attributes.DepartureCurbApproach):null,departTime:(0,o.pC)(s.attributes.DepartureTime)?new Date(s.attributes.DepartureTime):null,departTimeOffset:s.attributes.DepartureUTCOffset??null,geometry:s.geometry,lateDuration:s.attributes.LateMinutes??null,locationType:(0,o.pC)(s.attributes.LocationType)?l.yP.fromJSON(s.attributes.LocationType):null,name:s.attributes.Name,objectId:s.attributes.ObjectID??s.attributes.__OBJECTID,popupTemplate:s.popupTemplate,routeName:s.attributes.RouteName,sequence:s.attributes.Sequence??null,serviceCosts:(0,o.pC)(s.attributes.ServiceCosts)?(0,d.EQ)(JSON.parse(s.attributes.ServiceCosts)):null,serviceDistance:s.attributes.ServiceMeters??null,serviceDuration:s.attributes.ServiceMinutes??null,status:(0,o.pC)(s.attributes.Status)?l.SS.fromJSON(s.attributes.Status):null,symbol:s.symbol,timeWindowEnd:(0,o.pC)(s.attributes.TimeWindowEnd)?new Date(s.attributes.TimeWindowEnd):null,timeWindowEndOffset:s.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:(0,o.pC)(s.attributes.TimeWindowStart)?new Date(s.attributes.TimeWindowStart):null,timeWindowStartOffset:s.attributes.TimeWindowStartUTCOffset??null,waitDuration:s.attributes.WaitMinutes??null})}toGraphic(){const s={ObjectID:(0,o.Wg)(this.objectId),ArrivalCurbApproach:(0,o.pC)(this.arriveCurbApproach)?l.W7.toJSON(this.arriveCurbApproach):null,ArrivalTime:(0,o.pC)(this.arriveTime)?this.arriveTime.getTime():null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:(0,o.pC)(this.cumulativeCosts)?JSON.stringify((0,d.co)(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:(0,o.pC)(this.curbApproach)?l.W7.toJSON(this.curbApproach):null,DepartureCurbApproach:(0,o.pC)(this.departCurbApproach)?l.W7.toJSON(this.departCurbApproach):null,DepartureTime:(0,o.pC)(this.departTime)?this.departTime.getTime():null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:(0,o.pC)(this.locationType)?l.yP.toJSON(this.locationType):null,Name:(0,o.Wg)(this.name),RouteName:(0,o.Wg)(this.routeName),Sequence:this.sequence,ServiceCosts:(0,o.pC)(this.serviceCosts)?JSON.stringify((0,d.co)(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:(0,o.pC)(this.status)?l.SS.toJSON(this.status):null,TimeWindowEnd:(0,o.pC)(this.timeWindowEnd)?this.timeWindowEnd.getTime():null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:(0,o.pC)(this.timeWindowStart)?this.timeWindowStart.getTime():null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new T.Z({geometry:this.geometry,attributes:s,symbol:this.symbol,popupTemplate:this.popupTemplate})}};r.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"ArrivalUTCOffset",alias:"Arrival Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"DepartureUTCOffset",alias:"Departure Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNALocationType",codedValues:[{name:"Stop",code:0},{name:"Waypoint",code:1}]}},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNAObjectStatus",codedValues:[{name:"OK",code:0},{name:"Not Located on Network",code:1},{name:"Network Unbuilt",code:2},{name:"Prohibited Street",code:3},{name:"Invalid Field Values",code:4},{name:"Cannot Reach",code:5},{name:"Time Window Violation",code:6}]}},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!1},{name:"TimeWindowEndUTCOffset",alias:"Time Window End: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!1},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"WaitMinutes",alias:"Minutes Early",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1}],r.popupInfo={title:"{Name}",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"RouteName",label:"Route Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"Sequence",label:"Sequence",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ArrivalTime",label:"Arrival Time",isEditable:!0,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"ArrivalUTCOffset",label:"Arrival Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DepartureTime",label:"Departure Time",isEditable:!0,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"DepartureUTCOffset",label:"Departure Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CurbApproach",label:"Curb Approach",isEditable:!0,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ArrivalCurbApproach",label:"Arrival Curb Approach",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DepartureCurbApproach",label:"Departure Curb Approach",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Status",label:"Status",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"LocationType",label:"Location Type",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TimeWindowStart",label:"Time Window Start",isEditable:!0,tooltip:"",visible:!1,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"TimeWindowStartUTCOffset",label:"Time Window Start: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TimeWindowEnd",label:"Time Window End",isEditable:!0,tooltip:"",visible:!1,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"TimeWindowEndUTCOffset",label:"Time Window End: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceMinutes",label:"Service Minutes",isEditable:!0,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceMeters",label:"Service Meters",isEditable:!0,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceCosts",label:"Service Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"CumulativeMinutes",label:"Cumulative Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CumulativeMeters",label:"Cumulative Meters",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CumulativeCosts",label:"Cumulative Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"LateMinutes",label:"Minutes Late",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"WaitMinutes",label:"Minutes Early",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,e._)([(0,i.Cb)({type:l.W7.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:l.W7.read}}})],r.prototype,"arriveCurbApproach",void 0),(0,e._)([(0,i.Cb)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],r.prototype,"arriveTime",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"arriveTimeOffset",void 0),(0,e._)([(0,m.r)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],r.prototype,"readArriveTimeOffset",null),(0,e._)([(0,i.Cb)({json:{name:"attributes.Bearing",read:!1,write:!0}})],r.prototype,"bearing",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],r.prototype,"bearingTol",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"cumulativeCosts",void 0),(0,e._)([(0,m.r)("cumulativeCosts",["attributes"])],r.prototype,"readCumulativeCosts",null),(0,e._)([(0,i.Cb)()],r.prototype,"cumulativeDistance",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"cumulativeDuration",void 0),(0,e._)([(0,i.Cb)({type:l.W7.apiValues,json:{name:"attributes.CurbApproach",read:{reader:l.W7.read},write:{writer:l.W7.write}}})],r.prototype,"curbApproach",void 0),(0,e._)([(0,i.Cb)({type:l.W7.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:l.W7.read}}})],r.prototype,"departCurbApproach",void 0),(0,e._)([(0,i.Cb)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],r.prototype,"departTime",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"departTimeOffset",void 0),(0,e._)([(0,m.r)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],r.prototype,"readDepartTimeOffset",null),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],r.prototype,"distanceToNetworkInMeters",void 0),(0,e._)([(0,i.Cb)({type:c.Z,json:{write:!0}})],r.prototype,"geometry",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"lateDuration",void 0),(0,e._)([(0,i.Cb)({type:l.yP.apiValues,json:{name:"attributes.LocationType",read:{reader:l.yP.read},write:{writer:l.yP.write}}})],r.prototype,"locationType",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.Name"}})],r.prototype,"name",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],r.prototype,"navLatency",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.ObjectID"}})],r.prototype,"objectId",void 0),(0,e._)([(0,i.Cb)({type:v.Z})],r.prototype,"popupTemplate",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.PosAlong"}}})],r.prototype,"posAlong",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.RouteName"}})],r.prototype,"routeName",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"serviceCosts",void 0),(0,e._)([(0,m.r)("serviceCosts",["attributes"])],r.prototype,"readServiceCosts",null),(0,e._)([(0,a.c)("serviceCosts")],r.prototype,"writeServiceCosts",null),(0,e._)([(0,i.Cb)()],r.prototype,"serviceDistance",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"serviceDuration",void 0),(0,e._)([(0,i.Cb)({json:{name:"attributes.Sequence"}})],r.prototype,"sequence",void 0),(0,e._)([(0,i.Cb)({type:l.BW.apiValues,json:{read:{source:"attributes.SideOfEdge",reader:l.BW.read}}})],r.prototype,"sideOfEdge",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.SnapX"}}})],r.prototype,"snapX",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.SnapY"}}})],r.prototype,"snapY",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.SnapZ"}}})],r.prototype,"snapZ",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.SourceID"}}})],r.prototype,"sourceId",void 0),(0,e._)([(0,i.Cb)({json:{read:{source:"attributes.SourceOID"}}})],r.prototype,"sourceOid",void 0),(0,e._)([(0,i.Cb)({type:l.SS.apiValues,json:{read:{source:"attributes.Status",reader:l.SS.read}}})],r.prototype,"status",void 0),(0,e._)([(0,i.Cb)({types:_.LB})],r.prototype,"symbol",void 0),(0,e._)([(0,i.Cb)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],r.prototype,"timeWindowEnd",void 0),(0,e._)([(0,a.c)("timeWindowEnd")],r.prototype,"writeTimeWindowEnd",null),(0,e._)([(0,i.Cb)()],r.prototype,"timeWindowEndOffset",void 0),(0,e._)([(0,i.Cb)({type:Date,json:{name:"attributes.TimeWindowStart"}})],r.prototype,"timeWindowStart",void 0),(0,e._)([(0,a.c)("timeWindowStart")],r.prototype,"writeTimeWindowStart",null),(0,e._)([(0,i.Cb)()],r.prototype,"timeWindowStartOffset",void 0),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],r.prototype,"type",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"violations",void 0),(0,e._)([(0,m.r)("violations",["attributes"])],r.prototype,"readViolations",null),(0,e._)([(0,i.Cb)()],r.prototype,"waitDuration",void 0),(0,e._)([(0,i.Cb)()],r.prototype,"wait",void 0),(0,e._)([(0,m.r)("wait",["attributes"])],r.prototype,"readWait",null),r=p=(0,e._)([(0,n.j)("esri.rest.support.Stop")],r);const u=r},67854:(D,h,t)=>{t.d(h,{Z:()=>c});var e=t(17626),T=t(79608),v=t(86810),_=t(62208),y=t(77712),i=(t(85931),t(90912),t(55342)),E=t(68653),O=t(76898),m=t(99433),n=t(51494);let a=class extends((0,T.J)(v.wq)){constructor(d){super(d),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}readRestrictionAttributes(d,l){const{restrictionAttributeNames:p}=l;return(0,_.Wi)(p)?null:p.map(r=>n.kL.fromJSON(r))}writeRestrictionAttributes(d,l,p){(0,_.Wi)(d)||(l[p]=d.map(r=>n.kL.toJSON(r)))}};(0,e._)([(0,y.Cb)({type:[Object],json:{write:!0}})],a.prototype,"attributeParameterValues",void 0),(0,e._)([(0,y.Cb)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,e._)([(0,i.J)(n.D$,{ignoreUnknown:!1})],a.prototype,"distanceAttributeName",void 0),(0,e._)([(0,y.Cb)({type:String,json:{write:!0}})],a.prototype,"id",void 0),(0,e._)([(0,i.J)(n.Ul,{ignoreUnknown:!1})],a.prototype,"impedanceAttributeName",void 0),(0,e._)([(0,y.Cb)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,e._)([(0,y.Cb)({type:[String],json:{write:!0}})],a.prototype,"restrictionAttributeNames",void 0),(0,e._)([(0,E.r)("restrictionAttributeNames")],a.prototype,"readRestrictionAttributes",null),(0,e._)([(0,m.c)("restrictionAttributeNames")],a.prototype,"writeRestrictionAttributes",null),(0,e._)([(0,y.Cb)({type:Number,json:{write:{allowNull:!0}}})],a.prototype,"simplificationTolerance",void 0),(0,e._)([(0,i.J)(n.q$)],a.prototype,"simplificationToleranceUnits",void 0),(0,e._)([(0,i.J)(n.ZI,{ignoreUnknown:!1})],a.prototype,"timeAttributeName",void 0),(0,e._)([(0,i.J)(n.DJ)],a.prototype,"type",void 0),(0,e._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"useHierarchy",void 0),(0,e._)([(0,i.J)(n.ip)],a.prototype,"uturnAtJunctions",void 0),a=(0,e._)([(0,O.j)("esri.rest.support.TravelMode")],a);const c=a},51494:(D,h,t)=>{t.d(h,{$7:()=>y,BW:()=>d,D$:()=>b,DJ:()=>m,Dd:()=>p,E2:()=>N,GX:()=>v,KA:()=>M,Ks:()=>P,S7:()=>A,SS:()=>c,Ul:()=>g,W7:()=>n,WP:()=>s,ZI:()=>f,cW:()=>r,hB:()=>_,ip:()=>i,kL:()=>S,no:()=>C,oi:()=>l,q$:()=>T,td:()=>u,yP:()=>a});var e=t(2076);const T=(0,e.w)()({esriCentimeters:"centimeters",esriDecimalDegrees:"decimal-degrees",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriPoints:"points",esriUnknownUnits:"unknown",esriYards:"yards"}),v=(0,e.w)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards"}),_=(0,e.w)()({esriNAUDays:"days",esriNAUHours:"hours",esriNAUMinutes:"minutes",esriNAUSeconds:"seconds"}),y=(0,e.w)()({esriDOTComplete:"complete",esriDOTCompleteNoEvents:"complete-no-events",esriDOTFeatureSets:"featuresets",esriDOTInstructionsOnly:"instructions-only",esriDOTStandard:"standard",esriDOTSummaryOnly:"summary-only"}),C=(0,e.w)()({esriNAOutputLineNone:"none",esriNAOutputLineStraight:"straight",esriNAOutputLineTrueShape:"true-shape",esriNAOutputLineTrueShapeWithMeasure:"true-shape-with-measure"}),i=((0,e.w)()({esriNAOutputPolygonNone:"none",esriNAOutputPolygonSimplified:"simplified",esriNAOutputPolygonDetailed:"detailed"}),(0,e.w)()({esriNFSBAllowBacktrack:"allow-backtrack",esriNFSBAtDeadEndsOnly:"at-dead-ends-only",esriNFSBNoBacktrack:"no-backtrack",esriNFSBAtDeadEndsAndIntersections:"at-dead-ends-and-intersections"})),m=((0,e.w)()({esriNATravelDirectionFromFacility:"from-facility",esriNATravelDirectionToFacility:"to-facility"}),(0,e.w)()({esriNATimeOfDayNotUsed:"not-used",esriNATimeOfDayUseAsStartTime:"start",esriNATimeOfDayUseAsEndTime:"end"}),(0,e.w)()({AUTOMOBILE:"automobile",TRUCK:"truck",WALK:"walk",OTHER:"other"})),n=(0,e.w)()({0:"either-side-of-vehicle",1:"right-side-of-vehicle",2:"left-side-of-vehicle",3:"no-u-turn"},{useNumericKeys:!0}),a=(0,e.w)()({0:"stop",1:"waypoint",2:"break"},{useNumericKeys:!0}),c=(0,e.w)()({0:"ok",1:"not-located",2:"network-element-not-located",3:"element-not-traversable",4:"invalid-field-values",5:"not-reached",6:"time-window-violation",7:"not-located-on-closest"},{useNumericKeys:!0}),d=(0,e.w)()({1:"right",2:"left"},{useNumericKeys:!0}),l=(0,e.w)()({0:"restriction",1:"added-cost"},{useNumericKeys:!0}),p=(0,e.w)()({0:"permit",1:"restrict"},{useNumericKeys:!0}),r=(0,e.w)()({1:"header",50:"arrive",51:"depart",52:"straight",100:"on-ferry",101:"off-ferry",102:"central-fork",103:"roundabout",104:"u-turn",150:"door",151:"stairs",152:"elevator",153:"escalator",154:"pedestrian-ramp",200:"left-fork",201:"left-ramp",202:"clockwise-roundabout",203:"left-handed-u-turn",204:"bear-left",205:"left-turn",206:"sharp-left",207:"left-turn-and-immediate-left-turn",208:"left-turn-and-immediate-right-turn",300:"right-fork",301:"right-ramp",302:"counter-clockwise-roundabout",303:"right-handed-u-turn",304:"bear-right",305:"right-turn",306:"sharp-right",307:"right-turn-and-immediate-left-turn",308:"right-turn-and-immediate-right-turn",400:"up-elevator",401:"up-escalator",402:"up-stairs",500:"down-elevator",501:"down-escalator",502:"down-stairs",1e3:"general-event",1001:"landmark",1002:"time-zone-change",1003:"traffic-event",1004:"scaled-cost-barrier-event",1005:"boundary-crossing",1006:"restriction-violation"},{useNumericKeys:!0}),u=(0,e.w)()({0:"unknown",1:"segment",2:"maneuver-segment",3:"restriction-violation",4:"scaled-cost-barrier",5:"heavy-traffic",6:"slow-traffic",7:"moderate-traffic"},{useNumericKeys:!0}),s=(0,e.w)()({"NA Campus":"campus","NA Desktop":"desktop","NA Navigation":"navigation"}),b=(0,e.w)()({Kilometers:"kilometers",Miles:"miles",Meters:"meters"},{ignoreUnknown:!1}),f=(0,e.w)()({Minutes:"minutes",TimeAt1KPH:"time-at-1-kph",TravelTime:"travel-time",TruckMinutes:"truck-minutes",TruckTravelTime:"truck-travel-time",WalkTime:"walk-time"},{ignoreUnknown:!1}),g=(0,e.w)()({Kilometers:"kilometers",Miles:"miles",Meters:"meters",Minutes:"minutes",TimeAt1KPH:"time-at-1-kph",TravelTime:"travel-time",TruckMinutes:"truck-minutes",TruckTravelTime:"truck-travel-time",WalkTime:"walk-time"},{ignoreUnknown:!1}),S=(0,e.w)()({"Any Hazmat Prohibited":"any-hazmat-prohibited","Avoid Carpool Roads":"avoid-carpool-roads","Avoid Express Lanes":"avoid-express-lanes","Avoid Ferries":"avoid-ferries","Avoid Gates":"avoid-gates","Avoid Limited Access Roads":"avoid-limited-access-roads","Avoid Private Roads":"avoid-private-roads","Avoid Roads Unsuitable for Pedestrians":"avoid-roads-unsuitable-for-pedestrians","Avoid Stairways":"avoid-stairways","Avoid Toll Roads":"avoid-toll-roads","Avoid Toll Roads for Trucks":"avoid-toll-roads-for-trucks","Avoid Truck Restricted Roads":"avoid-truck-restricted-roads","Avoid Unpaved Roads":"avoid-unpaved-roads","Axle Count Restriction":"axle-count-restriction","Driving a Bus":"driving-a-bus","Driving a Taxi":"driving-a-taxi","Driving a Truck":"driving-a-truck","Driving an Automobile":"driving-an-automobile","Driving an Emergency Vehicle":"driving-an-emergency-vehicle","Height Restriction":"height-restriction","Kingpin to Rear Axle Length Restriction":"kingpin-to-rear-axle-length-restriction","Length Restriction":"length-restriction","Preferred for Pedestrians":"preferred-for-pedestrians","Riding a Motorcycle":"riding-a-motorcycle","Roads Under Construction Prohibited":"roads-under-construction-prohibited","Semi or Tractor with One or More Trailers Prohibited":"semi-or-tractor-with-one-or-more-trailers-prohibited","Single Axle Vehicles Prohibited":"single-axle-vehicles-prohibited","Tandem Axle Vehicles Prohibited":"tandem-axle-vehicles-prohibited","Through Traffic Prohibited":"through-traffic-prohibited","Truck with Trailers Restriction":"truck-with-trailers-restriction","Use Preferred Hazmat Routes":"use-preferred-hazmat-routes","Use Preferred Truck Routes":"use-preferred-truck-routes",Walking:"walking","Weight Restriction":"weight-restriction"},{ignoreUnknown:!1}),A=(0,e.w)()({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),M=(0,e.w)()({esriGeometryPoint:"point",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"envelope",esriGeometryMultipoint:"multipoint"}),N=(0,e.w)()({esriNAUTCost:"cost",esriNAUTDescriptor:"descriptor",esriNAUTRestriction:"restriction",esriNAUTHierarchy:"hierarchy"}),P=(0,e.w)()({esriDSTAltName:"alt-name",esriDSTArrive:"arrive",esriDSTBranch:"branch",esriDSTCrossStreet:"cross-street",esriDSTCumulativeLength:"cumulative-length",esriDSTDepart:"depart",esriDSTEstimatedArrivalTime:"estimated-arrival-time",esriDSTExit:"exit",esriDSTGeneral:"general",esriDSTLength:"length",esriDSTServiceTime:"service-time",esriDSTStreetName:"street-name",esriDSTSummary:"summary",esriDSTTime:"time",esriDSTTimeWindow:"time-window",esriDSTToward:"toward",esriDSTViolationTime:"violation-time",esriDSTWaitTime:"wait-time"})}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4048.c556ec6abdb2d0e3.js b/apps/n/porrtal-io-app/public/angular/4048.c556ec6abdb2d0e3.js deleted file mode 100644 index a275bc1a..00000000 --- a/apps/n/porrtal-io-app/public/angular/4048.c556ec6abdb2d0e3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4048],{84048:(c,r,_)=>{_.r(r),_.d(r,{default:()=>E});var a=_(17626),o=_(77712),t=(_(85931),_(90912),_(76898)),e=_(50126);let s=class extends e.Z{constructor(){super(...arguments),this.type="csv-3d"}};(0,a._)([(0,o.Cb)()],s.prototype,"layer",void 0),s=(0,a._)([(0,t.j)("esri.views.3d.layers.CSVLayerView3D")],s);const E=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4056.2195ebc9752a6bce.js b/apps/n/porrtal-io-app/public/angular/4056.2195ebc9752a6bce.js deleted file mode 100644 index bf008879..00000000 --- a/apps/n/porrtal-io-app/public/angular/4056.2195ebc9752a6bce.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4056],{44056:(y,p,n)=>{n.r(p),n.d(p,{default:()=>C});var b=n(62208),m=n(55713),I=n(48977),v=n(56729),O=n(84161),c=n(14658),P=n(55915),E=n(65234),i=n(14471);class A{transform(t){const e=this._transform(t),a=[e.points.buffer,e.rgb.buffer];(0,b.pC)(e.pointIdFilterMap)&&a.push(e.pointIdFilterMap.buffer);for(const o of e.attributes)"buffer"in o.values&&(0,m.eP)(o.values.buffer)&&o.values.buffer!==e.rgb.buffer&&a.push(o.values.buffer);return Promise.resolve({result:e,transferList:a})}_transform(t){const e=(0,i.Ym)(t.schema,t.geometryBuffer);let a=e.length/3,o=null;const u=[],l=(0,i.dH)(t.primaryAttributeData,e,a);(0,b.pC)(t.primaryAttributeData)&&l&&u.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:l});const s=(0,i.dH)(t.modulationAttributeData,e,a);(0,b.pC)(t.modulationAttributeData)&&s&&u.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:s});let f=(0,i.aE)(t.rendererInfo,l,s,a);if(t.filterInfo&&t.filterInfo.length>0&&(0,b.pC)(t.filterAttributesData)){const r=t.filterAttributesData.map(h=>{const d=(0,i.dH)(h,e,a),D={attributeInfo:h.attributeInfo,values:d};return u.push(D),D});o=new Uint32Array(a),a=(0,i.hv)(e,f,o,t.filterInfo,r)}for(const r of t.userAttributesData){const h=(0,i.dH)(r,e,a);u.push({attributeInfo:r.attributeInfo,values:h})}3*a{c.d(U,{Q:()=>F});var M=c(85931),A=c(62208),R=c(77029),B=c(14259);class F{constructor(t=9,s){this._compareMinX=T,this._compareMinY=f,this._toBBox=r=>r,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),s&&("function"==typeof s?this._toBBox=s:this._initFormat(s)),this.clear()}destroy(){this.clear(),L.prune(),w.prune(),b.prune(),Y.prune()}all(t){this._all(this._data,t)}search(t,s){let r=this._data;const u=this._toBBox;if(D(t,r))for(L.clear();r;){for(let e=0,n=r.children.length;e0;){if(r||(r=(0,A.j0)(b.pop()),u=b.data[b.length-1],e=Y.pop()??0,n=!0),r.leaf&&(s=(0,M.cq)(r.children,t,r.children.length,r.indexHint),-1!==s))return r.children.splice(s,1),b.push(r),this._condense(b),this;n||r.leaf||!P(r,i)?u?(e++,r=u.children[e],n=!1):r=null:(b.push(r),Y.push(e),e=0,u=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,s){let r=t;for(w.clear();r;){if(!0===r.leaf)for(const u of r.children)s(u);else w.pushArray(r.children);r=w.pop()??null}}_build(t,s,r,u){const e=r-s+1;let n=this._maxEntries;if(e<=n){const m=new _(t.slice(s,r+1));return E(m,this._toBBox),m}u||(u=Math.ceil(Math.log(e)/Math.log(n)),n=Math.ceil(e/n**(u-1)));const i=new l([]);i.height=u;const a=Math.ceil(e/n),p=a*Math.ceil(Math.sqrt(n));X(t,s,r,p,this._compareMinX);for(let m=s;m<=r;m+=p){const j=Math.min(m+p-1,r);X(t,m,j,a,this._compareMinY);for(let x=m;x<=j;x+=a){const C=Math.min(x+a-1,j);i.children.push(this._build(t,x,C,u-1))}}return E(i,this._toBBox),i}_chooseSubtree(t,s,r,u){for(;u.push(s),!0!==s.leaf&&u.length-1!==r;){let e,n=1/0,i=1/0;for(let a=0,p=s.children.length;a=0&&b.data[s].children.length>this._maxEntries;)this._split(b,s),s--;this._adjustParentBBoxes(e,b,s)}_split(t,s){const r=t.data[s],u=r.children.length,e=this._minEntries;this._chooseSplitAxis(r,e,u);const n=this._chooseSplitIndex(r,e,u);if(!n)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const i=r.children.splice(n,r.children.length-n),a=r.leaf?new _(i):new l(i);a.height=r.height,E(r,this._toBBox),E(a,this._toBBox),s?t.data[s-1].children.push(a):this._splitRoot(r,a)}_splitRoot(t,s){this._data=new l([t,s]),this._data.height=t.height+1,E(this._data,this._toBBox)}_chooseSplitIndex(t,s,r){let u,e,n;u=e=1/0;for(let i=s;i<=r-s;i++){const a=O(t,0,i,this._toBBox),p=O(t,i,r,this._toBBox),m=v(a,p),j=y(a)+y(p);m=s;p--){const m=t.children[p];S(i,t.leaf?e(m):m),a+=d(i)}return a}_adjustParentBBoxes(t,s,r){for(let u=r;u>=0;u--)S(s.data[u],t)}_condense(t){for(let s=t.length-1;s>=0;s--){const r=t.data[s];if(0===r.children.length)if(s>0){const u=t.data[s-1],e=u.children;e.splice((0,M.cq)(e,r,e.length,u.indexHint),1)}else this.clear();else E(r,this._toBBox)}}_initFormat(t){const s=["return a"," - b",";"];this._compareMinX=new Function("a","b",s.join(t[0])),this._compareMinY=new Function("a","b",s.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function E(o,t){O(o,0,o.children.length,t,o)}function O(o,t,s,r,u){u||(u=new _([])),u.minX=1/0,u.minY=1/0,u.maxX=-1/0,u.maxY=-1/0;for(let e,n=t;n=o.minX&&t.maxY>=o.minY}function X(o,t,s,r,u){const e=[t,s];for(;e.length;){const n=(0,A.j0)(e.pop()),i=(0,A.j0)(e.pop());if(n-i<=r)continue;const a=i+Math.ceil((n-i)/r/2)*r;(0,B.q)(o,a,i,n,u),e.push(i,a,a,n)}}const L=new R.Z,w=new R.Z,b=new R.Z,Y=new R.Z({deallocator:void 0});class N{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class h extends N{constructor(){super(...arguments),this.height=1,this.indexHint=new M.SO}}class _ extends h{constructor(t){super(),this.children=t,this.leaf=!0}}class l extends h{constructor(t){super(),this.children=t,this.leaf=!1}}},61256:(Q,U,c)=>{c.d(U,{H:()=>S});var M=c(8314),A=c(36592),R=c(65401);const F={minX:0,minY:0,maxX:0,maxY:0};class S{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new A.Q(9,(0,M.Z)("esri-csp-restrictions")?f=>({minX:f[0],minY:f[1],maxX:f[2],maxY:f[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const f=new Array(this._idByBounds.size);let y=0;this._idByBounds.forEach((d,g)=>{f[y++]=g}),this._indexInvalid=!1,this._index.clear(),this._index.load(f)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(f=>this._idByBounds.has(f))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const f=(0,R.cS)();for(const y of this._boundsById.values())y&&(f[0]=Math.min(y[0],f[0]),f[1]=Math.min(y[1],f[1]),f[2]=Math.max(y[2],f[2]),f[3]=Math.max(y[3],f[3]));return f}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(f){const y=this._boundsById.get(f);this._boundsById.delete(f),y&&(this._idByBounds.delete(y),this._indexInvalid||this._index.remove(y))}forEachInBounds(f,y){this._loadIndex(),function O(T,f,y){(function E(T){F.minX=T[0],F.minY=T[1],F.maxX=T[2],F.maxY=T[3]})(f),T.search(F,y)}(this._index,f,d=>y(this._idByBounds.get(d)))}get(f){return this._boundsById.get(f)}has(f){return this._boundsById.has(f)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(f,y){if(!this._indexInvalid){const d=this._boundsById.get(f);d&&(this._index.remove(d),this._idByBounds.delete(d))}this._boundsById.set(f,y),y&&(this._idByBounds.set(y,f),this._indexInvalid||(this._boundsToLoad.push(y),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},3579:(Q,U,c)=>{c.d(U,{Z:()=>f});var M=c(26584),A=c(61885),R=c(63290),B=c(62208),F=c(5548),E=c(65401),O=c(82054),S=c(61256),T=c(92794);class f{constructor(d){this.geometryInfo=d,this._boundsStore=new S.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new A.Z,this.featureAdapter=T.n}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let d=0;return this._featuresById.forEach(g=>{(0,B.pC)(g.geometry)&&g.geometry.coords&&(d+=g.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:d/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(d){this._add(d),this._emitChanged()}addMany(d){for(const g of d)this._add(g);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(d){const g=this._featuresById.get(d);return g?(this._remove(g),this._emitChanged(),g):null}removeManyById(d){this._boundsStore.invalidateIndex();for(const g of d){const v=this._featuresById.get(g);v&&this._remove(v)}this._emitChanged()}forEachBounds(d,g,v){for(const P of d){const D=this._boundsStore.get(P.objectId);D&&g((0,F.JR)(v,D))}}getFeature(d){return this._featuresById.get(d)}has(d){return this._featuresById.has(d)}toArray(){return Array.from(this._featuresById.values())}forEach(d){this._featuresById.forEach(g=>d(g))}forEachInBounds(d,g){this._boundsStore.forEachInBounds(d,v=>{g(this._featuresById.get(v))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let d=!1;this._featuresById.forEach((g,v)=>{this._markedIds.has(v)||(d=!0,this._remove(g))}),this._markedIds.clear(),d&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(d){if(!d)return;const g=d.objectId;if(null==g)return void R.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new M.Z("featurestore:invalid-feature","feature id is missing",{feature:d}));const v=this._featuresById.get(g);let P;if(this._markedIds.add(g),v?(d.displayId=v.displayId,P=this._boundsStore.get(g),this._boundsStore.delete(g)):(0,B.pC)(this.onFeatureAdd)&&this.onFeatureAdd(d),(0,B.Wi)(d.geometry)||!d.geometry.coords||!d.geometry.coords.length)return this._boundsStore.set(g,null),void this._featuresById.set(g,d);P=(0,O.$)((0,B.pC)(P)?P:(0,E.Ue)(),d.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,B.pC)(P)&&this._boundsStore.set(g,P),this._featuresById.set(g,d)}_remove(d){return(0,B.pC)(this.onFeatureRemove)&&this.onFeatureRemove(d),this._markedIds.delete(d.objectId),this._boundsStore.delete(d.objectId),this._featuresById.delete(d.objectId),d}}},92794:(Q,U,c)=>{c.d(U,{n:()=>F});var M=c(62208),A=c(77044),R=c(66385),B=c(88071);const F={getObjectId:E=>E.objectId,getAttributes:E=>E.attributes,getAttribute:(E,O)=>E.attributes[O],cloneWithGeometry:(E,O)=>new R.u_(O,E.attributes,null,E.objectId),getGeometry:E=>E.geometry,getCentroid:(E,O)=>((0,M.Wi)(E.centroid)&&(E.centroid=(0,A.Y)(new B.Z,E.geometry,O.hasZ,O.hasM)),E.centroid)}},84079:(Q,U,c)=>{c.r(U),c.d(U,{default:()=>Y});var M=c(15861),A=c(84792),R=c(59213),B=c(26584),F=c(63290),E=c(62208),O=c(10699),S=c(91179),T=c(37053),f=c(82054),y=c(3579),d=c(82959),g=c(58175),v=c(58775),P=c(56554),D=c(35775),X=c(60466),L=c(85),w=c(36630);const b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!1,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0}};class Y{constructor(){var h=this;this._queryEngine=null,this._snapshotFeatures=function(){var _=(0,M.Z)(function*(l){const o=yield h._fetch(l);return h._createFeatures(o)});return function(l){return _.apply(this,arguments)}}()}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._fieldsIndex=this._createDefaultAttributes=null}load(h,_={}){var l=this;return(0,M.Z)(function*(){l._loadOptions={url:h.url,customParameters:h.customParameters};const o=[];yield l._checkProjection(h.spatialReference);let t=null;h.url&&(t=yield l._fetch(_?.signal));const s=(0,v.my)(t,{geometryType:h.geometryType}),r=h.fields||s.fields||[],u=null!=h.hasZ?h.hasZ:s.hasZ,e=s.geometryType;let n=h.objectIdField||s.objectIdFieldName||"__OBJECTID";const i=h.spatialReference||T.Zn;let a=h.timeInfo;r===s.fields&&s.unknownFields.length>0&&o.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:s.unknownFields}});let p=new X.Z(r).get(n);p?("esriFieldTypeString"!==p.type&&(p.type="esriFieldTypeOID"),p.editable=!1,p.nullable=!1,n=p.name):(p={alias:n,name:n,type:"string"===s.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},r.unshift(p));const m={};for(const I of r){if(null==I.name&&(I.name=I.alias),null==I.alias&&(I.alias=I.name),!I.name)throw new B.Z("geojson-layer:invalid-field-name","field name is missing",{field:I});if(!L.v.jsonValues.includes(I.type))throw new B.Z("geojson-layer:invalid-field-type",`invalid type for field "${I.name}"`,{field:I});if(I.name!==p.name){const W=(0,w.os)(I);void 0!==W&&(m[I.name]=W)}}l._fieldsIndex=new X.Z(r);const j=l._fieldsIndex.requiredFields.indexOf(p);if(j>-1&&l._fieldsIndex.requiredFields.splice(j,1),a){if(a.startTimeField){const I=l._fieldsIndex.get(a.startTimeField);I?(a.startTimeField=I.name,I.type="esriFieldTypeDate"):a.startTimeField=null}if(a.endTimeField){const I=l._fieldsIndex.get(a.endTimeField);I?(a.endTimeField=I.name,I.type="esriFieldTypeDate"):a.endTimeField=null}if(a.trackIdField){const I=l._fieldsIndex.get(a.trackIdField);I?a.trackIdField=I.name:(a.trackIdField=null,o.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:a}}))}a.startTimeField||a.endTimeField||(o.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:a}}),a=null)}const x=e?(0,P.bU)(e):null,C={warnings:o,featureErrors:[],layerDefinition:{...b,drawingInfo:x,templates:(0,P.Hq)(m),extent:null,geometryType:e,objectIdField:n,fields:r,hasZ:!!u,timeInfo:a}};l._queryEngine=new g.q({fields:r,geometryType:e,hasM:!1,hasZ:u,objectIdField:n,spatialReference:i,timeInfo:a,featureStore:new y.Z({geometryType:e,hasM:!1,hasZ:u}),cacheSpatialQueries:!0}),l._createDefaultAttributes=(0,P.Dm)(m,n);const Z=yield l._createFeatures(t);l._objectIdGenerator=l._createObjectIdGenerator(l._queryEngine,Z);const H=l._normalizeFeatures(Z,C.warnings,C.featureErrors);if(l._queryEngine.featureStore.addMany(H),C.layerDefinition.extent=l._queryEngine.fullExtent,C.layerDefinition.timeInfo){const{start:I,end:W}=l._queryEngine.timeExtent;C.layerDefinition.timeInfo.timeExtent=[I,W]}return C})()}applyEdits(h){var _=this;return(0,M.Z)(function*(){const{spatialReference:l,geometryType:o}=_._queryEngine;return yield Promise.all([(0,D.b)(l,o),(0,d._W)(h.adds,l),(0,d._W)(h.updates,l)]),yield _._waitSnapshotComplete(),_._applyEdits(h)})()}queryFeatures(h={},_={}){var l=this;return(0,M.Z)(function*(){return yield l._waitSnapshotComplete(),l._queryEngine.executeQuery(h,_.signal)})()}queryFeatureCount(h={},_={}){var l=this;return(0,M.Z)(function*(){return yield l._waitSnapshotComplete(),l._queryEngine.executeQueryForCount(h,_.signal)})()}queryObjectIds(h={},_={}){var l=this;return(0,M.Z)(function*(){return yield l._waitSnapshotComplete(),l._queryEngine.executeQueryForIds(h,_.signal)})()}queryExtent(h={},_={}){var l=this;return(0,M.Z)(function*(){return yield l._waitSnapshotComplete(),l._queryEngine.executeQueryForExtent(h,_.signal)})()}querySnapping(h,_={}){var l=this;return(0,M.Z)(function*(){return yield l._waitSnapshotComplete(),l._queryEngine.executeQueryForSnapping(h,_.signal)})()}refresh(h){var _=this;return(0,M.Z)(function*(){return _._loadOptions.customParameters=h,_._snapshotTask?.abort(),_._snapshotTask=(0,R.vr)(_._snapshotFeatures),_._snapshotTask.promise.then(l=>{_._queryEngine.featureStore.clear(),_._objectIdGenerator=_._createObjectIdGenerator(_._queryEngine,l);const o=_._normalizeFeatures(l);o&&_._queryEngine.featureStore.addMany(o)},l=>{_._queryEngine.featureStore.clear(),(0,O.D_)(l)||F.Z.getLogger("esri.layers.GeoJSONLayer").error(new B.Z("geojson-layer:refresh","An error occurred during refresh",{error:l}))}),yield _._waitSnapshotComplete(),{extent:_._queryEngine.fullExtent,timeExtent:_._queryEngine.timeExtent}})()}_createFeatures(h){var _=this;return(0,M.Z)(function*(){const{geometryType:l,hasZ:o,objectIdField:t}=_._queryEngine,s=(0,v.lG)(h,{geometryType:l,hasZ:o,objectIdField:t});if(!(0,T.fS)(_._queryEngine.spatialReference,T.Zn))for(const r of s)(0,E.pC)(r.geometry)&&(r.geometry=(0,f.GH)((0,d.iV)((0,f.di)(r.geometry,_._queryEngine.geometryType,_._queryEngine.hasZ,!1),T.Zn,_._queryEngine.spatialReference)));return s})()}_waitSnapshotComplete(){var h=this;return(0,M.Z)(function*(){if(h._snapshotTask&&!h._snapshotTask.finished){try{yield h._snapshotTask.promise}catch{}return h._waitSnapshotComplete()}})()}_fetch(h){var _=this;return(0,M.Z)(function*(){const{url:l,customParameters:o}=_._loadOptions,t=(yield(0,A.default)(l,{responseType:"json",query:{...o},signal:h})).data;return yield(0,v.O3)(t),t})()}_normalizeFeatures(h,_,l){const{objectIdField:o}=this._queryEngine,t=[];for(const s of h){const r=this._createDefaultAttributes(),u=(0,D.O0)(this._fieldsIndex,r,s.attributes,!0,_);u?l?.push(u):(this._assignObjectId(r,s.attributes,!0),s.attributes=r,s.objectId=r[o],t.push(s))}return t}_applyEdits(h){const{adds:_,updates:l,deletes:o}=h,t={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(_&&_.length&&this._applyAddEdits(t,_),l&&l.length&&this._applyUpdateEdits(t,l),o&&o.length){for(const s of o)t.deleteResults.push((0,D.d1)(s));this._queryEngine.featureStore.removeManyById(o)}return{extent:this._queryEngine.fullExtent,timeExtent:this._queryEngine.timeExtent,featureEditResults:t}}_applyAddEdits(h,_){const{addResults:l}=h,{geometryType:o,hasM:t,hasZ:s,objectIdField:r,spatialReference:u,featureStore:e}=this._queryEngine,n=[];for(const i of _){if(i.geometry&&o!==(0,S.Ji)(i.geometry)){l.push((0,D.av)("Incorrect geometry type."));continue}const a=this._createDefaultAttributes(),p=(0,D.O0)(this._fieldsIndex,a,i.attributes);if(p)l.push(p);else{if(this._assignObjectId(a,i.attributes),i.attributes=a,null!=i.uid&&(h.uidToObjectId[i.uid]=i.attributes[r]),(0,E.pC)(i.geometry)){const m=i.geometry.spatialReference??u;i.geometry=(0,d.iV)((0,D.og)(i.geometry,m),m,u)}n.push(i),l.push((0,D.d1)(i.attributes[r]))}}e.addMany((0,f.Yn)([],n,o,s,t,r))}_applyUpdateEdits({updateResults:h},_){const{geometryType:l,hasM:o,hasZ:t,objectIdField:s,spatialReference:r,featureStore:u}=this._queryEngine;for(const e of _){const{attributes:n,geometry:i}=e,a=n&&n[s];if(null==a){h.push((0,D.av)(`Identifier field ${s} missing`));continue}if(!u.has(a)){h.push((0,D.av)(`Feature with object id ${a} missing`));continue}const p=(0,f.EI)(u.getFeature(a),l,t,o);if((0,E.pC)(i)){if(l!==(0,S.Ji)(i)){h.push((0,D.av)("Incorrect geometry type."));continue}const m=i.spatialReference??r;p.geometry=(0,d.iV)((0,D.og)(i,m),m,r)}if(n){const m=(0,D.O0)(this._fieldsIndex,p.attributes,n);if(m){h.push(m);continue}}u.add((0,f.XA)(p,l,t,o,s)),h.push((0,D.d1)(a))}}_createObjectIdGenerator(h,_){const l=h.fieldsIndex.get(h.objectIdField);if("esriFieldTypeString"===l.type)return()=>l.name+"-"+Date.now().toString(16);let o=Number.NEGATIVE_INFINITY;for(const t of _)t.objectId&&(o=Math.max(o,t.objectId));return o=Math.max(0,o)+1,()=>o++}_assignObjectId(h,_,l=!1){const o=this._queryEngine.objectIdField;h[o]=l&&o in _?_[o]:this._objectIdGenerator()}_checkProjection(h){return(0,M.Z)(function*(){try{yield(0,d._W)(T.Zn,h)}catch{throw new B.Z("geojson-layer","Projection not supported")}})()}}},58775:(Q,U,c)=>{c.d(U,{O3:()=>s,lG:()=>u,my:()=>r,q9:()=>E});var M=c(26584),A=c(66385),R=c(88071),B=c(36630);const F={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function E(e){return F[e]}function*O(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const n of e.features)n&&(yield n)}}function*S(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const n of e.coordinates)yield*n;break;case"MultiPolygon":for(const n of e.coordinates)for(const i of n)yield*i}}function f(e){for(const n of e)if(n.length>2)return!0;return!1}function g(e){let n=0;for(let i=0;i=0;a--)o(e,n[a],i);e.lengths.push(n.length)}function o(e,n,i){const[a,p,m]=n;e.coords.push(a,p),i.hasZ&&e.coords.push(m||0)}function t(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function s(e){if(!e)throw new M.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new M.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const i="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,a=new RegExp(".*(CRS84H?|4326)$","i");if(!i||!a.test(i))throw new M.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function r(e,n={}){const i=[],a=new Set,p=new Set;let m,j=!1,x=null,C=!1,{geometryType:Z=null}=n,H=!1;for(const W of O(e)){const{geometry:J,properties:G,id:z}=W;if((!J||(Z||(Z=E(J.type)),E(J.type)===Z))&&(j||(j=f(S(J))),C||(C=null!=z,C&&(m=typeof z,x=Object.keys(G).filter($=>G[$]===z))),C&&null!=z&&(x.length>1?x=x.filter($=>G[$]===z):1===x.length&&(x=G[x[0]]===z?x:[])),!H&&G)){let $=!0;for(const K in G){if(a.has(K))continue;const q=G[K];if(null==q){$=!1,p.add(K);continue}const k=t(q);"unknown"!==k?(p.delete(K),a.add(K),i.push({name:(0,B.q6)(K),alias:K,type:k})):p.add(K)}H=$}}const I=(0,B.q6)(1===x?.length&&x[0]||null);if(I)for(const W of i)if(W.name===I&&(0,B.H7)(W)){W.type="esriFieldTypeOID";break}return{fields:i,geometryType:Z,hasZ:j,objectIdFieldName:I,objectIdFieldType:m,unknownFields:Array.from(p)}}function u(e,n){return Array.from(function*T(e,n={}){const{geometryType:i,objectIdField:a}=n;for(const p of e){const{geometry:m,properties:j,id:x}=p;if(m&&E(m.type)!==i)continue;const C=j||{};let Z=C[a]??null;a&&null!=x&&!C[a]&&(C[a]=Z=x),yield new A.u_(m?P(new R.Z,m,n):null,C,null,Z)}}(O(e),n))}},56554:(Q,U,c)=>{c.d(U,{Dm:()=>S,Hq:()=>T,MS:()=>f,bU:()=>F});var M=c(8314),A=c(58817),R=c(87757),B=c(24837);function F(y){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===y||"esriGeometryMultipoint"===y?B.I4:"esriGeometryPolyline"===y?B.ET:B.lF}}}const E=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let O=1;function S(y,d){if((0,M.Z)("esri-csp-restrictions"))return()=>({[d]:null,...y});try{let g=`this.${d} = null;`;for(const P in y)g+=`this${E.test(P)?`.${P}`:`["${P}"]`} = ${JSON.stringify(y[P])};`;const v=new Function(`\n return class AttributesClass$${O++} {\n constructor() {\n ${g};\n }\n }\n `)();return()=>new v}catch{return()=>({[d]:null,...y})}}function T(y={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,A.d9)(y)}}]}function f(y,d){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:y},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:d,supportsDelete:d,supportsEditing:d,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:d,supportsExceedsLimitStatistics:!0},query:R.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:d,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4095.25825e6869d4c6de.js b/apps/n/porrtal-io-app/public/angular/4095.25825e6869d4c6de.js deleted file mode 100644 index d775ab37..00000000 --- a/apps/n/porrtal-io-app/public/angular/4095.25825e6869d4c6de.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4095],{74095:(r,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(52382),_(13934),_(78925),_(24255),_(62952),_(44965),_(31166),_(10109),_(7025),_(92724),_(72968),_(69117),_(45780),_(33726),_(2166),_(69960),_(65787),_(17625),_(22355),_(44835),_(16396);var a=_(61584)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/410.ad6ef0e42eca319f.js b/apps/n/porrtal-io-app/public/angular/410.ad6ef0e42eca319f.js deleted file mode 100644 index 85ce0498..00000000 --- a/apps/n/porrtal-io-app/public/angular/410.ad6ef0e42eca319f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[410],{10410:(Ks,Ce,j)=>{j.r(Ce),j.d(Ce,{WhereClause:()=>le,defaultAttributeAdapter:()=>U});var _e=j(8314);const Pe={min:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.min.apply(Math,l[0])},max:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.max.apply(Math,l[0])},avg:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Fe(l[0])},sum:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:function kt(l){let u=0;for(let o=0;onull==l[0]?null:Math.sqrt(Le(l[0]))},count:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:l[0].length},var:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Le(l[0])}};function Fe(l){let u=0;for(let o=0;o1?p/(o-1):0}var Ht=j(77275);class C{constructor(){this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0}static _fixDefaults(u){if(null!==u.precision||null!==u.secondary)throw new Error("Primary and Secondary SqlInterval qualifiers not supported")}static createFromMilliseconds(u){const o=new C;return o.second=u/1e3,o}static createFromValueAndQualifer(u,o,p){let i=null;const v=new C;if(v.op="-"===p?"-":"+","interval-period"===o.type){C._fixDefaults(o);const m=new RegExp("^[0-9]{1,}$");if("year"===o.period||"month"===o.period)throw new Error("Year-Month Intervals not supported");if(!m.test(u))throw new Error("Illegal Interval");v[o.period]=parseFloat(u)}else{if(C._fixDefaults(o.start),C._fixDefaults(o.end),"year"===o.start.period||"month"===o.start.period)throw new Error("Year-Month Intervals not supported");if("year"===o.end.period||"month"===o.end.period)throw new Error("Year-Month Intervals not supported");switch(o.start.period){case"day":switch(o.end.period){case"hour":if(i=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!i.test(u))throw new Error("Illegal Interval");v[o.start.period]=parseFloat(u.split(" ")[0]),v[o.end.period]=parseFloat(u.split(" ")[1]);break;case"minute":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!i.test(u))throw new Error("Illegal Interval");{v[o.start.period]=parseFloat(u.split(" ")[0]);const m=u.split(" ")[1].split(":");v.hour=parseFloat(m[0]),v.minute=parseFloat(m[1])}break;case"second":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(u))throw new Error("Illegal Interval");{v[o.start.period]=parseFloat(u.split(" ")[0]);const m=u.split(" ")[1].split(":");v.hour=parseFloat(m[0]),v.minute=parseFloat(m[1]),v.second=parseFloat(m[2])}break;default:throw new Error("Invalid Interval.")}break;case"hour":switch(o.end.period){case"minute":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!i.test(u))throw new Error("Illegal Interval");v.hour=parseFloat(u.split(":")[0]),v.minute=parseFloat(u.split(":")[1]);break;case"second":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(u))throw new Error("Illegal Interval");{const m=u.split(":");v.hour=parseFloat(m[0]),v.minute=parseFloat(m[1]),v.second=parseFloat(m[2])}break;default:throw new Error("Invalid Interval.")}break;case"minute":if("second"!==o.end.period)throw new Error("Invalid Interval.");if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(u))throw new Error("Illegal Interval");{const m=u.split(":");v.minute=parseFloat(m[0]),v.second=parseFloat(m[1])}break;default:throw new Error("Invalid Interval.")}}return v}valueInMilliseconds(){return("-"===this.op?-1:1)*(1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}function Me(l,u){const o=De[l.toLowerCase()];if(null==o)throw new Error("Function Not Recognised");if(u.lengtho.maxParams)throw new Error(`Invalid Parameter count for call to ${l.toUpperCase()}`);return o.evaluate(u)}const De={extract:{minParams:2,maxParams:2,evaluate:([l,u])=>{if(null==u)return null;if(u instanceof Date)switch(l.toUpperCase()){case"SECOND":return u.getSeconds();case"MINUTE":return u.getMinutes();case"HOUR":return u.getHours();case"DAY":return u.getDate();case"MONTH":return u.getMonth()+1;case"YEAR":return u.getFullYear()}throw new Error("Invalid Parameter for call to EXTRACT")}},substring:{minParams:2,maxParams:3,evaluate:l=>{if(2===l.length){const[u,o]=l;return null==u||null==o?null:u.toString().substring(o-1)}if(3===l.length){const[u,o,p]=l;return null==u||null==o||null==p?null:p<=0?"":u.toString().substring(o-1,o+p-1)}}},position:{minParams:2,maxParams:2,evaluate:([l,u])=>null==l||null==u?null:u.indexOf(l)+1},trim:{minParams:2,maxParams:3,evaluate:l=>{const u=3===l.length,o=u?l[1]:" ",p=u?l[2]:l[1];if(null==o||null==p)return null;const i=`(${(0,Ht.Qs)(o)})`;switch(l[0]){case"BOTH":return p.replace(new RegExp(`^${i}*|${i}*$`,"g"),"");case"LEADING":return p.replace(new RegExp(`^${i}*`,"g"),"");case"TRAILING":return p.replace(new RegExp(`${i}*$`,"g"),"")}throw new Error("Invalid Parameter for call to TRIM")}},abs:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.abs(l[0])},ceiling:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.ceil(l[0])},floor:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.floor(l[0])},log:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.log(l[0])},log10:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.log(l[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.sin(l[0])},cos:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.cos(l[0])},tan:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.tan(l[0])},asin:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.asin(l[0])},acos:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.acos(l[0])},atan:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:Math.atan(l[0])},sign:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:l[0]>0?1:l[1]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:l=>null==l[0]||null==l[1]?null:l[0]**l[1]},mod:{minParams:2,maxParams:2,evaluate:l=>null==l[0]||null==l[1]?null:l[0]%l[1]},round:{minParams:1,maxParams:2,evaluate:l=>{const u=l[0],o=2===l.length?10**l[1]:1;return null==u?null:Math.round(u*o)/o}},truncate:{minParams:1,maxParams:2,evaluate:l=>null==l[0]?null:1===l.length?parseInt(l[0].toFixed(0),10):parseFloat(l[0].toFixed(l[1]))},char_length:{minParams:1,maxParams:1,evaluate:l=>"string"==typeof l[0]||l[0]instanceof String?l[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:l=>{let u="";for(let o=0;onull==l[0]?null:l[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:l=>null==l[0]?null:l[0].toString().toUpperCase()}};j(1719);var Oe,Je={exports:{}};(Oe=Je).exports&&(Oe.exports=function(){function u(i,v,m,t){var N=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(N,u.prototype),N.expected=v,N.found=m,N.location=t,N.name="SyntaxError",N}function o(i,v,m){return m=m||" ",i.length>v?i:i+(m+=m.repeat(v-=i.length)).slice(0,v)}return function l(i,v){function m(){this.constructor=i}m.prototype=v.prototype,i.prototype=new m}(u,Error),u.prototype.format=function(i){var v="Error: "+this.message;if(this.location){var m,t=null;for(m=0;m0){for(E=1,L=1;E=",!1),Zr=g(">",!1),zr=g("<=",!1),Kr=g("<>",!1),Qr=g("<",!1),Xr=g("!=",!1),me=g("+",!1),ge=g("-",!1),en=g("*",!1),tn=g("/",!1),rn=R([["A","Z"],["a","z"],"_",["\x80","\uffff"]],!1,!1),nn=R([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),an=R([["A","Z"],["a","z"],["0","9"],"_",".",["\x80","\uffff"]],!1,!1),un=g("@",!1),et=g("'",!1),sn=g("N'",!1),tt=g("''",!1),rt=R(["'"],!0,!1),on=g(".",!1),ln=R([["0","9"]],!1,!1),cn=R(["e","E"],!1,!1),fn=R(["+","-"],!1,!1),pn=g("NULL",!0),vn=g("TRUE",!0),hn=g("FALSE",!0),dn=g("IN",!0),mn=g("IS",!0),gn=g("LIKE",!0),wn=g("ESCAPE",!0),yn=g("NOT",!0),Nn=g("AND",!0),bn=g("OR",!0),Tn=g("BETWEEN",!0),xn=g("FROM",!0),An=g("FOR",!0),In=g("SUBSTRING",!0),En=g("EXTRACT",!0),Sn=g("TRIM",!0),Cn=g("POSITION",!0),_n=g("TIMESTAMP",!0),Pn=g("DATE",!0),Fn=g("LEADING",!0),Ln=g("TRAILING",!0),Mn=g("BOTH",!0),Dn=g("TO",!0),On=g("INTERVAL",!0),Rn=g("YEAR",!0),Jn=g("MONTH",!0),$n=g("DAY",!0),kn=g("HOUR",!0),Hn=g("MINUTE",!0),Un=g("SECOND",!0),Vn=g("CASE",!0),Bn=g("END",!0),Wn=g("WHEN",!0),jn=g("THEN",!0),Gn=g("ELSE",!0),qn=g(",",!1),Yn=g("(",!1),Zn=g(")",!1),zn=R([" ","\t","\n","\r"],!1,!1),nt=g("`",!1),at=R(["`"],!0,!1),r=0,Q=[{line:1,column:1}],M=0,we=[],c=0;if("startRule"in v){if(!(v.startRule in x))throw new Error("Can't start parsing from rule \""+v.startRule+'".');F=x[v.startRule]}function g(e,n){return{type:"literal",text:e,ignoreCase:n}}function R(e,n,a){return{type:"class",parts:e,inverted:n,ignoreCase:a}}function st(e){var n,a=Q[e];if(a)return a;for(n=e-1;!Q[n];)n--;for(a={line:(a=Q[n]).line,column:a.column};nM&&(M=r,we=[]),we.push(e))}function it(){var e,n;return e=r,f(),(n=I())!==t?(f(),e=n):(r=e,e=t),e}function lt(){var e,n,a,s,d,y,b,A;if(e=r,(n=I())!==t){for(a=[],s=r,d=f(),(y=ie())!==t?(b=f(),(A=I())!==t?s=d=[d,y,b,A]:(r=s,s=t)):(r=s,s=t);s!==t;)a.push(s),s=r,d=f(),(y=ie())!==t?(b=f(),(A=I())!==t?s=d=[d,y,b,A]:(r=s,s=t)):(r=s,s=t);e=function(e,n){var a={type:"expression-list"},s=function zs(e,n,a){return function Zs(e,n){for(var a=[e],s=0;s="===i.substr(r,2)?(e=">=",r+=2):(e=t,0===c&&h(Yr)),e===t&&(62===i.charCodeAt(r)?(e=">",r++):(e=t,0===c&&h(Zr)),e===t&&("<="===i.substr(r,2)?(e="<=",r+=2):(e=t,0===c&&h(zr)),e===t&&("<>"===i.substr(r,2)?(e="<>",r+=2):(e=t,0===c&&h(Kr)),e===t&&(60===i.charCodeAt(r)?(e="<",r++):(e=t,0===c&&h(Qr)),e===t&&(61===i.charCodeAt(r)?(e="=",r++):(e=t,0===c&&h(Xe)),e===t&&("!="===i.substr(r,2)?(e="!=",r+=2):(e=t,0===c&&h(Xr)))))))),e}function ft(){var e,n,a,s,d;return e=r,n=r,(a=Y())!==t?(s=f(),(d=xt())!==t?n=a=[a,s,d]:(r=n,n=t)):(r=n,n=t),n!==t&&(n=function(e){return e[0]+" "+e[2]}(n)),(e=n)===t&&(e=xt()),e}function Ne(){var e,n,a,s,d;return e=r,n=r,(a=Y())!==t?(s=f(),(d=Ee())!==t?n=a=[a,s,d]:(r=n,n=t)):(r=n,n=t),n!==t&&(n=function(e){return e[0]+" "+e[2]}(n)),(e=n)===t&&(e=Ee()),e}function J(){var e,n,a,s,d,y,b,A;if(e=r,(n=be())!==t){for(a=[],s=r,d=f(),(y=pt())!==t?(b=f(),(A=be())!==t?s=d=[d,y,b,A]:(r=s,s=t)):(r=s,s=t);s!==t;)a.push(s),s=r,d=f(),(y=pt())!==t?(b=f(),(A=be())!==t?s=d=[d,y,b,A]:(r=s,s=t)):(r=s,s=t);e=function(e,n){return Z(e,n)}(n,a)}else r=e,e=t;return e}function pt(){var e;return 43===i.charCodeAt(r)?(e="+",r++):(e=t,0===c&&h(me)),e===t&&(45===i.charCodeAt(r)?(e="-",r++):(e=t,0===c&&h(ge))),e}function be(){var e,n,a,s,d,y,b,A;if(e=r,(n=Te())!==t){for(a=[],s=r,d=f(),(y=vt())!==t?(b=f(),(A=Te())!==t?s=d=[d,y,b,A]:(r=s,s=t)):(r=s,s=t);s!==t;)a.push(s),s=r,d=f(),(y=vt())!==t?(b=f(),(A=Te())!==t?s=d=[d,y,b,A]:(r=s,s=t)):(r=s,s=t);e=function(e,n){return Z(e,n)}(n,a)}else r=e,e=t;return e}function vt(){var e;return 42===i.charCodeAt(r)?(e="*",r++):(e=t,0===c&&h(en)),e===t&&(47===i.charCodeAt(r)?(e="/",r++):(e=t,0===c&&h(tn))),e}function Te(){var e,n;return(e=function gs(){var e;return(e=Ie())===t&&(e=function _s(){var e,n,a,s;return e=r,(n=function Ps(){var e,n,a,s;return e=r,(n=ae())!==t&&(a=yt())!==t&&(s=Nt())!==t?e=function(e,n,a){return parseFloat(e+n+a)}(n,a,s):(r=e,e=t),e===t&&(e=r,(n=ae())!==t&&(a=yt())!==t?e=function(e,n){return parseFloat(e+n)}(n,a):(r=e,e=t),e===t&&(e=r,(n=ae())!==t&&(a=Nt())!==t?e=function(e,n){return parseFloat(e+n)}(n,a):(r=e,e=t),e===t&&(e=r,(n=ae())!==t&&(n=function(e){return parseFloat(e)}(n)),e=n))),e}())!==t?(a=r,c++,s=xe(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e=function(e){return{type:"number",value:e}}(n):(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function Is(){var e,n;return e=r,(n=function Ms(){var e,n,a,s;return e=r,"true"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(vn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e=n=[n,a]:(r=e,e=t)):(r=e,e=t),e}())!==t&&(n={type:"boolean",value:!0}),(e=n)===t&&(e=r,(n=function Ds(){var e,n,a,s;return e=r,"false"===i.substr(r,5).toLowerCase()?(n=i.substr(r,5),r+=5):(n=t,0===c&&h(hn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e=n=[n,a]:(r=e,e=t)):(r=e,e=t),e}())!==t&&(n={type:"boolean",value:!1}),e=n),e}())===t&&(e=function As(){var e;return(e=function Ls(){var e,n,a,s;return e=r,"null"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(pn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e=n=[n,a]:(r=e,e=t)):(r=e,e=t),e}())!==t&&(e={type:"null",value:null}),e}())===t&&(e=function xs(){var e,n;return e=r,function Us(){var e,n,a,s;return e=r,"date"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(Pn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="DATE":(r=e,e=t)):(r=e,e=t),e}()!==t?(f(),(n=B())!==t?e=function(e){return{type:"date",value:e.value}}(n):(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function ws(){var e,n;return e=r,function Hs(){var e,n,a,s;return e=r,"timestamp"===i.substr(r,9).toLowerCase()?(n=i.substr(r,9),r+=9):(n=t,0===c&&h(_n)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="TIMESTAMP":(r=e,e=t)):(r=e,e=t),e}()!==t?(f(),(n=B())!==t?e=function(e){return{type:"timestamp",value:e.value}}(n):(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function ys(){var e,n,a,s;return e=r,St()!==t?(f(),45===i.charCodeAt(r)?(n="-",r++):(n=t,0===c&&h(ge)),n===t&&(43===i.charCodeAt(r)?(n="+",r++):(n=t,0===c&&h(me))),n!==t?(f(),(a=B())!==t?(f(),(s=gt())!==t?e=function(e,n,a){return{type:"interval",value:n,qualifier:a,op:e}}(n,a,s):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,St()!==t?(f(),(n=B())!==t?(f(),(a=gt())!==t?e=function(e,n){return{type:"interval",value:e,qualifier:n,op:""}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)),e}()),e}())===t&&(e=function fs(){var e,n,a;return e=r,function $s(){var e,n,a,s;return e=r,"extract"===i.substr(r,7).toLowerCase()?(n=i.substr(r,7),r+=7):(n=t,0===c&&h(En)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="EXTRACT":(r=e,e=t)):(r=e,e=t),e}()!==t?(f(),_()!==t?(f(),(n=function ms(){var e;return(e=Ct())===t&&(e=_t())===t&&(e=Pt())===t&&(e=Ft())===t&&(e=Lt())===t&&(e=V()),e}())!==t?(f(),Se()!==t?(f(),(a=I())!==t?(f(),P()!==t?e=function(e,n){return{type:"function",name:"extract",args:{type:"expression-list",value:[{type:"string",value:e},n]}}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function ps(){var e,n,a,s,d,y,b;return e=r,function Js(){var e,n,a,s;return e=r,"substring"===i.substr(r,9).toLowerCase()?(n=i.substr(r,9),r+=9):(n=t,0===c&&h(In)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="SUBSTRING":(r=e,e=t)):(r=e,e=t),e}()!==t?(f(),_()!==t?(f(),(n=I())!==t?(f(),Se()!==t?(f(),(a=I())!==t?(f(),s=r,(d=function Rs(){var e,n,a,s;return e=r,"for"===i.substr(r,3).toLowerCase()?(n=i.substr(r,3),r+=3):(n=t,0===c&&h(An)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="FOR":(r=e,e=t)):(r=e,e=t),e}())!==t?(y=f(),(b=I())!==t?s=d=[d,y,b,f()]:(r=s,s=t)):(r=s,s=t),s===t&&(s=null),(d=P())!==t?e=function(e,n,a){return{type:"function",name:"substring",args:{type:"expression-list",value:a?[e,n,a[2]]:[e,n]}}}(n,a,s):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function vs(){var e,n,a,s;return e=r,Et()!==t?(f(),_()!==t?(f(),(n=mt())===t&&(n=null),f(),(a=I())!==t?(f(),Se()!==t?(f(),(s=I())!==t?(f(),P()!==t?e=function(e,n,a){return{type:"function",name:"trim",args:{type:"expression-list",value:[{type:"string",value:e??"BOTH"},n,a]}}}(n,a,s):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,Et()!==t?(f(),_()!==t?(f(),(n=mt())===t&&(n=null),f(),(a=I())!==t?(f(),P()!==t?e=function(e,n){return{type:"function",name:"trim",args:{type:"expression-list",value:[{type:"string",value:e??"BOTH"},n]}}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)),e}())===t&&(e=function hs(){var e,n,a;return e=r,function ks(){var e,n,a,s;return e=r,"position"===i.substr(r,8).toLowerCase()?(n=i.substr(r,8),r+=8):(n=t,0===c&&h(Cn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="POSITION":(r=e,e=t)):(r=e,e=t),e}()!==t?(f(),_()!==t?(f(),(n=I())!==t?(f(),Ee()!==t?(f(),(a=I())!==t?(f(),P()!==t?e=function(e,n){return{type:"function",name:"position",args:{type:"expression-list",value:[e,n]}}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function ds(){var e,n,a;return e=r,(n=function qs(){var e,n,a,s;if(e=r,(e=n=ht())===t)if(e=r,96===i.charCodeAt(r)?(n="`",r++):(n=t,0===c&&h(nt)),n!==t){if(a=[],Qe.test(i.charAt(r))?(s=i.charAt(r),r++):(s=t,0===c&&h(at)),s!==t)for(;s!==t;)a.push(s),Qe.test(i.charAt(r))?(s=i.charAt(r),r++):(s=t,0===c&&h(at));else a=t;a!==t?(96===i.charCodeAt(r)?(s="`",r++):(s=t,0===c&&h(nt)),s!==t?e=function(e){return e.join("")}(a):(r=e,e=t)):(r=e,e=t)}else r=e,e=t;return e}())!==t?(f(),_()!==t?(f(),(a=lt())===t&&(a=null),f(),P()!==t?e=function(e,n){return{type:"function",name:e,args:n||{type:"expression-list",value:[]}}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function Es(){var e;return(e=function Ss(){var e,n,a,s,d;if(e=r,se()!==t)if(f(),(n=I())!==t){for(f(),a=[],s=ne();s!==t;)a.push(s),s=ne();s=f(),(d=oe())!==t?e=function(e,n){return{type:"case-expression",format:"simple",operand:e,clauses:n,else:null}}(n,a):(r=e,e=t)}else r=e,e=t;else r=e,e=t;if(e===t)if(e=r,se()!==t)if(f(),(n=I())!==t){for(f(),a=[],s=ne();s!==t;)a.push(s),s=ne();s=f(),(d=wt())!==t?(f(),oe()!==t?e=function(e,n,a){return{type:"case-expression",format:"simple",operand:e,clauses:n,else:a.value}}(n,a,d):(r=e,e=t)):(r=e,e=t)}else r=e,e=t;else r=e,e=t;return e}())===t&&(e=function Cs(){var e,n,a,s;if(e=r,se()!==t){for(f(),n=[],a=re();a!==t;)n.push(a),a=re();a=f(),(s=oe())!==t?e=function(e){return{type:"case-expression",format:"searched",clauses:e,else:null}}(n):(r=e,e=t)}else r=e,e=t;if(e===t)if(e=r,se()!==t){for(f(),n=[],a=re();a!==t;)n.push(a),a=re();a=f(),(s=wt())!==t?(f(),oe()!==t?e=function(e,n){return{type:"case-expression",format:"searched",clauses:e,else:n.value}}(n,s):(r=e,e=t)):(r=e,e=t)}else r=e,e=t;return e}()),e}())===t&&(e=function is(){var e;return(e=function ls(){var e;return e=function cs(){var e,n,a,s;if(e=r,(n=xe())!==t){for(a=[],s=dt();s!==t;)a.push(s),s=dt();e=function(e,n){return e+n.join("")}(n,a)}else r=e,e=t;return e}(),e}())!==t&&(e=function(e){return/^CURRENT_DATE$/i.test(e)?{type:"current-time",mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(e)?{type:"current-time",mode:"timestamp"}:{type:"column-reference",table:"",column:e}}(e)),e}())===t&&(e=Ae())===t&&(e=r,_()!==t?(f(),(n=I())!==t?(f(),P()!==t?e=function(e){return e.paren=!0,e}(n):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)),e}function ht(){var e,n,a,s;if(e=r,(n=xe())!==t){for(a=[],s=w();s!==t;)a.push(s),s=w();e=function(e,n){return e+n.join("")}(n,a)}else r=e,e=t;return e}function xe(){var e;return Hr.test(i.charAt(r))?(e=i.charAt(r),r++):(e=t,0===c&&h(rn)),e}function w(){var e;return Ur.test(i.charAt(r))?(e=i.charAt(r),r++):(e=t,0===c&&h(nn)),e}function dt(){var e;return Vr.test(i.charAt(r))?(e=i.charAt(r),r++):(e=t,0===c&&h(an)),e}function Ae(){var e,n,a;return e=r,64===i.charCodeAt(r)?(n="@",r++):(n=t,0===c&&h(un)),n!==t&&(a=ht())!==t?e=n=[n,a]:(r=e,e=t),e!==t&&(e=function(e){return{type:"parameter",value:e[1]}}(e)),e}function mt(){var e;return(e=function Vs(){var e,n,a,s;return e=r,"leading"===i.substr(r,7).toLowerCase()?(n=i.substr(r,7),r+=7):(n=t,0===c&&h(Fn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="LEADING":(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function Bs(){var e,n,a,s;return e=r,"trailing"===i.substr(r,8).toLowerCase()?(n=i.substr(r,8),r+=8):(n=t,0===c&&h(Ln)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="TRAILING":(r=e,e=t)):(r=e,e=t),e}())===t&&(e=function Ws(){var e,n,a,s;return e=r,"both"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(Mn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="BOTH":(r=e,e=t)):(r=e,e=t),e}()),e}function gt(){var e,n,a;return e=r,(n=function Ns(){var e,n,a;return e=r,(n=q())!==t?(f(),_()!==t?(f(),(a=te())!==t?(f(),P()!==t?e=function(e,n){return{type:"interval-period",period:e.value,precision:n,secondary:null}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,(n=q())!==t&&(n=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}}(n)),e=n),e}())!==t?(f(),function js(){var e,n,a,s;return e=r,"to"===i.substr(r,2).toLowerCase()?(n=i.substr(r,2),r+=2):(n=t,0===c&&h(Dn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="TO":(r=e,e=t)):(r=e,e=t),e}()!==t?(f(),(a=function bs(){var e,n,a,s;return e=r,(n=q())!==t&&(n=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}}(n)),(e=n)===t&&(e=r,(n=V())!==t?(f(),_()!==t?(f(),(a=te())!==t?(f(),ie()!==t?(f(),(s=ee())!==t?(f(),P()!==t?e=function(e,n){return{type:"interval-period",period:"second",precision:e,secondary:n}}(a,s):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,(n=V())!==t?(f(),_()!==t?(f(),(a=te())!==t?(f(),P()!==t?e=function(e){return{type:"interval-period",period:"second",precision:e,secondary:null}}(a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,(n=V())!==t&&(n={type:"interval-period",period:"second",precision:null,secondary:null}),e=n))),e}())!==t?e=function(e,n){return{type:"interval-qualifier",start:e,end:n}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=function Ts(){var e,n,a,s;return e=r,(n=q())!==t?(f(),_()!==t?(f(),(a=ee())!==t?(f(),P()!==t?e=function(e,n){return{type:"interval-period",period:e.value,precision:n,secondary:null}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,(n=q())!==t&&(n=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}}(n)),(e=n)===t&&(e=r,(n=V())!==t?(f(),_()!==t?(f(),(a=te())!==t?(f(),ie()!==t?(f(),(s=ee())!==t?(f(),P()!==t?e=function(e,n){return{type:"interval-period",period:"second",precision:e,secondary:n}}(a,s):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,(n=V())!==t?(f(),_()!==t?(f(),(a=ee())!==t?(f(),P()!==t?e=function(e){return{type:"interval-period",period:"second",precision:e,secondary:null}}(a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e===t&&(e=r,(n=V())!==t&&(n={type:"interval-period",period:"second",precision:null,secondary:null}),e=n)))),e}()),e}function q(){var e,n;return e=r,(n=Pt())!==t&&(n={type:"string",value:"day"}),(e=n)===t&&(e=r,(n=Ft())!==t&&(n={type:"string",value:"hour"}),(e=n)===t&&(e=r,(n=Lt())!==t&&(n={type:"string",value:"minute"}),(e=n)===t&&(e=r,(n=_t())!==t&&(n={type:"string",value:"month"}),(e=n)===t&&(e=r,(n=Ct())!==t&&(n={type:"string",value:"year"}),e=n)))),e}function ee(){var e;return(e=W())!==t&&(e=function(e){return parseFloat(e)}(e)),e}function te(){var e;return(e=W())!==t&&(e=function(e){return parseFloat(e)}(e)),e}function B(){var e;return(e=Ie())===t&&(e=Ae()),e}function Ie(){var e,n,a,s,d;if(e=r,39===i.charCodeAt(r)?(n="'",r++):(n=t,0===c&&h(et)),n===t&&("N'"===i.substr(r,2)?(n="N'",r+=2):(n=t,0===c&&h(sn))),n!==t){for(a=[],s=r,i.substr(r,2)===K?(d=K,r+=2):(d=t,0===c&&h(tt)),d!==t&&(d="'"),(s=d)===t&&(Ke.test(i.charAt(r))?(s=i.charAt(r),r++):(s=t,0===c&&h(rt)));s!==t;)a.push(s),s=r,i.substr(r,2)===K?(d=K,r+=2):(d=t,0===c&&h(tt)),d!==t&&(d="'"),(s=d)===t&&(Ke.test(i.charAt(r))?(s=i.charAt(r),r++):(s=t,0===c&&h(rt)));39===i.charCodeAt(r)?(s="'",r++):(s=t,0===c&&h(et)),s!==t?e=function(e){return{type:"string",value:e.join("")}}(a):(r=e,e=t)}else r=e,e=t;return e}function re(){var e,n,a;return e=r,Mt()!==t?(f(),(n=I())!==t?(f(),Dt()!==t?(f(),(a=I())!==t?e=function(e,n){return{type:"when-clause",operand:e,value:n}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e}function ne(){var e,n,a;return e=r,Mt()!==t?(f(),(n=I())!==t?(f(),Dt()!==t?(f(),(a=I())!==t?e=function(e,n){return{type:"when-clause",operand:e,value:n}}(n,a):(r=e,e=t)):(r=e,e=t)):(r=e,e=t)):(r=e,e=t),e}function wt(){var e,n;return e=r,function Gs(){var e,n,a,s;return e=r,"else"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(Gn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="ELSE":(r=e,e=t)):(r=e,e=t),e}()!==t?(f(),(n=I())!==t?e=function(e){return{type:"else-clause",value:e}}(n):(r=e,e=t)):(r=e,e=t),e}function ae(){var e,n,a;return(e=W())===t&&(e=r,45===i.charCodeAt(r)?(n="-",r++):(n=t,0===c&&h(ge)),n===t&&(43===i.charCodeAt(r)?(n="+",r++):(n=t,0===c&&h(me))),n!==t&&(a=W())!==t?e=function(e,n){return e[0]+n}(n,a):(r=e,e=t)),e}function yt(){var e,n,a;return e=r,46===i.charCodeAt(r)?(n=".",r++):(n=t,0===c&&h(on)),n!==t?((a=W())===t&&(a=null),e=function(e){return"."+(e??"")}(a)):(r=e,e=t),e}function Nt(){var e,n,a;return e=r,(n=function Fs(){var e,n,a;return e=r,Wr.test(i.charAt(r))?(n=i.charAt(r),r++):(n=t,0===c&&h(cn)),n!==t?(jr.test(i.charAt(r))?(a=i.charAt(r),r++):(a=t,0===c&&h(fn)),a===t&&(a=null),e=function(e,n){return"e"+(null===n?"":n)}(0,a)):(r=e,e=t),e}())!==t&&(a=W())!==t?e=function(e,n){return e+n}(n,a):(r=e,e=t),e}function W(){var e,n;if(e=[],(n=bt())!==t)for(;n!==t;)e.push(n),n=bt();else e=t;return e!==t&&(e=function(e){return e.join("")}(e)),e}function bt(){var e;return Br.test(i.charAt(r))?(e=i.charAt(r),r++):(e=t,0===c&&h(ln)),e}function Ee(){var e,n,a,s;return e=r,"in"===i.substr(r,2).toLowerCase()?(n=i.substr(r,2),r+=2):(n=t,0===c&&h(dn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="IN":(r=e,e=t)):(r=e,e=t),e}function Tt(){var e,n,a,s;return e=r,"is"===i.substr(r,2).toLowerCase()?(n=i.substr(r,2),r+=2):(n=t,0===c&&h(mn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="IS":(r=e,e=t)):(r=e,e=t),e}function xt(){var e,n,a,s;return e=r,"like"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(gn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="LIKE":(r=e,e=t)):(r=e,e=t),e}function Y(){var e,n,a,s;return e=r,"not"===i.substr(r,3).toLowerCase()?(n=i.substr(r,3),r+=3):(n=t,0===c&&h(yn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="NOT":(r=e,e=t)):(r=e,e=t),e}function ue(){var e,n,a,s;return e=r,"and"===i.substr(r,3).toLowerCase()?(n=i.substr(r,3),r+=3):(n=t,0===c&&h(Nn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="AND":(r=e,e=t)):(r=e,e=t),e}function At(){var e,n,a,s;return e=r,"or"===i.substr(r,2).toLowerCase()?(n=i.substr(r,2),r+=2):(n=t,0===c&&h(bn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="OR":(r=e,e=t)):(r=e,e=t),e}function It(){var e,n,a,s;return e=r,"between"===i.substr(r,7).toLowerCase()?(n=i.substr(r,7),r+=7):(n=t,0===c&&h(Tn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="BETWEEN":(r=e,e=t)):(r=e,e=t),e}function Se(){var e,n,a,s;return e=r,"from"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(xn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="FROM":(r=e,e=t)):(r=e,e=t),e}function Et(){var e,n,a,s;return e=r,"trim"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(Sn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="TRIM":(r=e,e=t)):(r=e,e=t),e}function St(){var e,n,a,s;return e=r,"interval"===i.substr(r,8).toLowerCase()?(n=i.substr(r,8),r+=8):(n=t,0===c&&h(On)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="INTERVAL":(r=e,e=t)):(r=e,e=t),e}function Ct(){var e,n,a,s;return e=r,"year"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(Rn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="YEAR":(r=e,e=t)):(r=e,e=t),e}function _t(){var e,n,a,s;return e=r,"month"===i.substr(r,5).toLowerCase()?(n=i.substr(r,5),r+=5):(n=t,0===c&&h(Jn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="MONTH":(r=e,e=t)):(r=e,e=t),e}function Pt(){var e,n,a,s;return e=r,"day"===i.substr(r,3).toLowerCase()?(n=i.substr(r,3),r+=3):(n=t,0===c&&h($n)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="DAY":(r=e,e=t)):(r=e,e=t),e}function Ft(){var e,n,a,s;return e=r,"hour"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(kn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="HOUR":(r=e,e=t)):(r=e,e=t),e}function Lt(){var e,n,a,s;return e=r,"minute"===i.substr(r,6).toLowerCase()?(n=i.substr(r,6),r+=6):(n=t,0===c&&h(Hn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="MINUTE":(r=e,e=t)):(r=e,e=t),e}function V(){var e,n,a,s;return e=r,"second"===i.substr(r,6).toLowerCase()?(n=i.substr(r,6),r+=6):(n=t,0===c&&h(Un)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="SECOND":(r=e,e=t)):(r=e,e=t),e}function se(){var e,n,a,s;return e=r,"case"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(Vn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="CASE":(r=e,e=t)):(r=e,e=t),e}function oe(){var e,n,a,s;return e=r,"end"===i.substr(r,3).toLowerCase()?(n=i.substr(r,3),r+=3):(n=t,0===c&&h(Bn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="END":(r=e,e=t)):(r=e,e=t),e}function Mt(){var e,n,a,s;return e=r,"when"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(Wn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="WHEN":(r=e,e=t)):(r=e,e=t),e}function Dt(){var e,n,a,s;return e=r,"then"===i.substr(r,4).toLowerCase()?(n=i.substr(r,4),r+=4):(n=t,0===c&&h(jn)),n!==t?(a=r,c++,s=w(),c--,s===t?a=void 0:(r=a,a=t),a!==t?e="THEN":(r=e,e=t)):(r=e,e=t),e}function ie(){var e;return 44===i.charCodeAt(r)?(e=",",r++):(e=t,0===c&&h(qn)),e}function _(){var e;return 40===i.charCodeAt(r)?(e="(",r++):(e=t,0===c&&h(Yn)),e}function P(){var e;return 41===i.charCodeAt(r)?(e=")",r++):(e=t,0===c&&h(Zn)),e}function f(){var e,n;for(e=[],n=Ot();n!==t;)e.push(n),n=Ot();return e}function Ot(){var e;return Gr.test(i.charAt(r))?(e=i.charAt(r),r++):(e=t,0===c&&h(zn)),e}function Rt(e,n,a,s){var d={type:"binary-expression",operator:e,left:n,right:a};return void 0!==s&&(d.escape=s),d}function Z(e,n){for(var a=e,s=0;s=u?l:new Array(u-l.length+1).join("0")+l}function G(l,u,o="0",p="0",i="0",v="0",m="",t="0",N="0"){if("+"===m||"-"===m){const x=`${k(parseInt(l,10),4)}-${k(parseInt(u,10),2)}-${k(parseInt(o,10),2)}`;let F="";parseFloat(v)<10&&(F="0");const $=`${k(parseInt(p,10),2)}:${k(parseInt(i,10),2)}:${F+parseFloat(v).toString()}`,O=`${m}${k(parseInt(t,10),2)}:${k(parseInt(N,10),2)}`;return new Date(x+"T"+$+O)}return new Date(parseInt(l,10),parseInt(u,10)-1,parseInt(o,10),parseInt(p,10),parseInt(i,10),parseFloat(v))}class Yt{static makeBool(u){return He(u)}static featureValue(u,o,p,i){return Ge(u,o,p,i)}static equalsNull(u){return null===u}static applyLike(u,o,p){return ve(u,o,p)}static ensureArray(u){return fe(u)}static applyIn(u,o){return pe(u,o)}static currentDate(){const u=new Date;return u.setHours(0,0,0,0),u}static makeSqlInterval(u,o,p){return C.createFromValueAndQualifer(u,o,p)}static convertInterval(u){return u instanceof C?u.valueInMilliseconds():u}static currentTimestamp(){return new Date}static compare(u,o,p){return We(u,o,p)}static calculate(u,o,p){return je(u,o,p)}static makeComparable(u){return D(u)}static evaluateFunction(u,o){return Me(u,o)}static lookup(u,o){const p=o[u];return void 0===p?null:p}static between(u,o){return null==u||null==o[0]||null==o[1]?null:u>=o[0]&&u<=o[1]}static notbetween(u,o){return null==u||null==o[0]||null==o[1]?null:uo[1]}static ternaryNot(u){return z(u)}static ternaryAnd(u,o){return Ue(u,o)}static ternaryOr(u,o){return Ve(u,o)}}class le{constructor(u,o){this.fieldsIndex=o,this._datefields={},this.parameters={},this._hasDateFunctions=void 0,this.parseTree=Vt.parse(u);const{isStandardized:p,isAggregate:i,referencedFieldNames:v}=this._extractExpressionInfo(o);this._referencedFieldNames=v,this.isStandardized=p,this.isAggregate=i}static create(u,o){return new le(u,o)}get fieldNames(){return this._referencedFieldNames}testSet(u,o=U){const p={};for(const i of this.fieldNames)p[i]=u.map(v=>o.getAttribute(v,i));return!!this._evaluateNode(this.parseTree,{attributes:p},U)}calculateValue(u,o=U){const p=this._evaluateNode(this.parseTree,u,o);return p instanceof C?p.valueInMilliseconds()/864e5:p}calculateValueCompiled(u,o=U){return null!=this.parseTree._compiledVersion?this.parseTree._compiledVersion(u,this.parameters,o,this._datefields):(0,_e.Z)("esri-csp-restrictions")?this.calculateValue(u,o):(this._compileMe(),this.parseTree._compiledVersion(u,this.parameters,o,this._datefields))}testFeature(u,o=U){return!!this._evaluateNode(this.parseTree,u,o)}testFeatureCompiled(u,o=U){return null!=this.parseTree._compiledVersion?!!this.parseTree._compiledVersion(u,this.parameters,o,this._datefields):(0,_e.Z)("esri-csp-restrictions")?this.testFeature(u,o):(this._compileMe(),!!this.parseTree._compiledVersion(u,this.parameters,o,this._datefields))}get hasDateFunctions(){return null!=this._hasDateFunctions||(this._hasDateFunctions=!1,this._visitAll(this.parseTree,u=>{"current-time"===u.type?this._hasDateFunctions=!0:"function"===u.type&&(this._hasDateFunctions=this._hasDateFunctions||qt.has(u.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){const u=new Set;return this._visitAll(this.parseTree,o=>{"function"===o.type&&u.add(o.name.toLowerCase())}),Array.from(u)}getExpressions(){const u=new Map;return this._visitAll(this.parseTree,o=>{if("function"===o.type){const p=o.name.toLowerCase(),i=o.args.value[0];if("column-reference"===i.type){const v=i.column,m=`${p}-${v}`;u.has(m)||u.set(m,{aggregateType:p,field:v})}}}),[...u.values()]}getVariables(){const u=new Set;return this._visitAll(this.parseTree,o=>{"parameter"===o.type&&u.add(o.value.toLowerCase())}),Array.from(u)}_compileMe(){const u="return this.convertInterval("+this.evaluateNodeToJavaScript(this.parseTree)+")";this.parseTree._compiledVersion=new Function("feature","lookups","attributeAdapter","datefields",u).bind(Yt)}_extractExpressionInfo(u){const o=[],p=new Set;let i=!0,v=!0;return this._visitAll(this.parseTree,m=>{switch(m.type){case"column-reference":{const t=u?.get(m.column);let N,x;t?N=x=t.name??"":(x=m.column,N=x.toLowerCase()),t&&t.name&&("date"===t.type||"esriFieldTypeDate"===t.type)&&(this._datefields[t.name]=1),p.has(N)||(p.add(N),o.push(x)),m.column=x;break}case"function":{const{name:t,args:N}=m,x=N.value.length;i&&(i=function Ut(l,u){const o=De[l.toLowerCase()];return null!=o&&u>=o.minParams&&u<=o.maxParams}(t,x)),v&&(v=function $t(l,u){const o=Pe[l.toLowerCase()];return null!=o&&u>=o.minParams&&u<=o.maxParams}(t,x));break}}}),{referencedFieldNames:Array.from(o),isStandardized:i,isAggregate:v}}_visitAll(u,o){if(null!=u)switch(o(u),u.type){case"when-clause":this._visitAll(u.operand,o),this._visitAll(u.value,o);break;case"case-expression":for(const p of u.clauses)this._visitAll(p,o);"simple"===u.format&&this._visitAll(u.operand,o),null!==u.else&&this._visitAll(u.else,o);break;case"expression-list":for(const p of u.value)this._visitAll(p,o);break;case"unary-expression":this._visitAll(u.expr,o);break;case"binary-expression":this._visitAll(u.left,o),this._visitAll(u.right,o);break;case"function":this._visitAll(u.args,o)}}evaluateNodeToJavaScript(u){switch(u.type){case"interval":return"this.makeSqlInterval("+this.evaluateNodeToJavaScript(u.value)+", "+JSON.stringify(u.qualifier)+","+JSON.stringify(u.op)+")";case"case-expression":{let o="";if("simple"===u.format){const p="this.makeComparable("+this.evaluateNodeToJavaScript(u.operand)+")";o="( ";for(let i=0;i":case"<":case">":case">=":case"<=":case"=":return"this.compare("+JSON.stringify(u.operator)+","+this.evaluateNodeToJavaScript(u.left)+","+this.evaluateNodeToJavaScript(u.right)+")";case"*":case"-":case"+":case"/":return"this.calculate("+JSON.stringify(u.operator)+","+this.evaluateNodeToJavaScript(u.left)+","+this.evaluateNodeToJavaScript(u.right)+")"}throw new Error("Not Supported Operator "+u.operator);case"null":case"boolean":case"string":case"number":return JSON.stringify(u.value);case"date":return"(new Date("+ke(u.value).getTime().toString()+"))";case"timestamp":return"(new Date("+ce(u.value).getTime().toString()+"))";case"current-time":return"date"===u.mode?"this.currentDate()":"this.currentTimestamp()";case"column-reference":return"this.featureValue(feature,"+JSON.stringify(u.column)+",datefields,attributeAdapter)";case"function":return"this.evaluateFunction("+JSON.stringify(u.name)+","+this.evaluateNodeToJavaScript(u.args)+")"}throw new Error("Unsupported sql syntax "+u.type)}_evaluateNode(u,o,p){switch(u.type){case"interval":{const i=this._evaluateNode(u.value,o,p);return C.createFromValueAndQualifer(i,u.qualifier,u.op)}case"case-expression":if("simple"===u.format){const i=D(this._evaluateNode(u.operand,o,p));for(let v=0;v=D(v[0])&&i<=D(v[1])}case"NOTBETWEEN":{const i=this._evaluateNode(u.left,o,p),v=this._evaluateNode(u.right,o,p);return null==i||null==v[0]||null==v[1]?null:iD(v[1])}case"LIKE":return ve(this._evaluateNode(u.left,o,p),this._evaluateNode(u.right,o,p),u.escape);case"NOT LIKE":return z(ve(this._evaluateNode(u.left,o,p),this._evaluateNode(u.right,o,p),u.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return We(u.operator,this._evaluateNode(u.left,o,p),this._evaluateNode(u.right,o,p));case"-":case"+":case"*":case"/":return je(u.operator,this._evaluateNode(u.left,o,p),this._evaluateNode(u.right,o,p))}case"null":case"boolean":case"string":case"number":return u.value;case"date":return ke(u.value);case"timestamp":return ce(u.value);case"current-time":{const i=new Date;return"date"===u.mode&&i.setHours(0,0,0,0),i}case"column-reference":return Ge(o,u.column,this._datefields,p);case"function":{const i=this._evaluateNode(u.args,o,p);return this.isAggregate?function Jt(l,u){const o=Pe[l.toLowerCase()];if(null==o)throw new Error("Function Not Recognised");if(u.lengtho.maxParams)throw new Error(`Invalid Parameter count for call to ${l.toUpperCase()}`);return o.evaluate(u)}(u.name,i):Me(u.name,i)}}throw new Error("Unsupported sql syntax "+u.type)}}function ce(l){let u=Bt.exec(l);if(null!==u){const[,o,p,i,v,m,t]=u;return G(o,p,i,v,m,t)}if(u=Wt.exec(l),null!==u){const[,o,p,i,v,m,t,N,x,F]=u;return G(o,p,i,v,m,t,N,x,F)}if(u=jt.exec(l),null!==u){const[,o,p,i,v,m,t,N,x]=u;return G(o,p,i,v,m,"0",t,N,x)}if(u=Gt.exec(l),null!==u){const[,o,p,i,v,m]=u;return G(o,p,i,v,m)}if(u=$e.exec(l),null!==u){const[,o,p,i]=u;return G(o,p,i)}throw new Error("SQL Invalid Timestamp")}function ke(l){const u=$e.exec(l);if(null===u)try{return ce(l)}catch{throw new Error("SQL Invalid Date")}const[,o,p,i]=u;return new Date(parseInt(o,10),parseInt(p,10)-1,parseInt(i,10))}function He(l){return!0===l}function fe(l){return Array.isArray(l)?l:[l]}function z(l){return null!==l?!0!==l:null}function Ue(l,u){return null!=l&&null!=u?!0===l&&!0===u:!1!==l&&!1!==u&&null}function Ve(l,u){return null!=l&&null!=u?!0===l||!0===u:!0===l||!0===u||null}function pe(l,u){if(null==l)return null;let o=!1;for(const p of u)if(null==p)o=null;else if(l===p){o=!0;break}return o}const Be="-[]/{}()*+?.\\^$|";var H,l;function ve(l,u,o){return null==l?null:function Zt(l,u){const o=u;let p="",i=H.Normal;for(let v=0;v":return p!==i;case"=":return p===i;case">":return p>i;case"<":return p=":return p>=i;case"<=":return p<=i}}function je(l,u,o){if(u instanceof C)if(o instanceof Date)switch(l){case"+":return new Date(u.valueInMilliseconds()+o.getTime());case"-":return u.valueInMilliseconds()-o.getTime();case"*":return u.valueInMilliseconds()*o.getTime();case"/":return u.valueInMilliseconds()/o.getTime()}else if(o instanceof C)switch(l){case"+":return C.createFromMilliseconds(u.valueInMilliseconds()+o.valueInMilliseconds());case"-":return C.createFromMilliseconds(u.valueInMilliseconds()-o.valueInMilliseconds());case"*":return u.valueInMilliseconds()*o.valueInMilliseconds();case"/":return u.valueInMilliseconds()/o.valueInMilliseconds()}else u=u.valueInMilliseconds();else if(o instanceof C)if(u instanceof Date)switch(l){case"+":return new Date(o.valueInMilliseconds()+u.getTime());case"-":return new Date(u.getTime()-o.valueInMilliseconds());case"*":return u.getTime()*o.valueInMilliseconds();case"/":return u.getTime()/o.valueInMilliseconds()}else o=o.valueInMilliseconds();else if(u instanceof Date&&"number"==typeof o)switch(o=24*o*60*60*1e3,u=u.getTime(),l){case"+":return new Date(u+o);case"-":return new Date(u-o);case"*":return new Date(u*o);case"/":return new Date(u/o)}else if(o instanceof Date&&"number"==typeof u)switch(u=24*u*60*60*1e3,o=o.getTime(),l){case"+":return new Date(u+o);case"-":return new Date(u-o);case"*":return new Date(u*o);case"/":return new Date(u/o)}switch(l){case"+":return u+o;case"-":return u-o;case"*":return u*o;case"/":return u/o}}function Ge(l,u,o,p){const i=p.getAttribute(l,u);return null!=i&&1===o[u]?new Date(i):i}(l=H||(H={}))[l.Normal=0]="Normal",l[l.Escaped=1]="Escaped";const U={getAttribute:(l,u)=>(function zt(l){return l&&"object"==typeof l.attributes}(l)?l.attributes:l)[u]}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4135.5aa09c0ece5cdae8.js b/apps/n/porrtal-io-app/public/angular/4135.5aa09c0ece5cdae8.js deleted file mode 100644 index f11b2e6f..00000000 --- a/apps/n/porrtal-io-app/public/angular/4135.5aa09c0ece5cdae8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4135],{44135:(cn,O,y)=>{y.r(O),y.d(O,{classBreaks:()=>ln,heatmapStatistics:()=>on,histogram:()=>rn,summaryStatistics:()=>tn,uniqueValues:()=>an});var E=y(15861),Y=(y(29132),y(26584),y(62208)),L=y(23841),H=y(65234),Q=y(7848),B=y(37053),G=(y(36630),y(36859)),x=y(26072),J=y(46679),K=y(72642);let V=null;function k(t,i,l,r){const o=(0,B.MP)(l)?(0,B.C5)(l):null,f=o?Math.round((o.valid[1]-o.valid[0])/i.scale[0]):null;return t.map(d=>{const s=new K.Z((0,Y.Wg)(d.geometry));return(0,Q.RF)(i,s,s,s.hasZ,s.hasM),d.geometry=o?function X(t,i,l){return t.x<0?t.x+=i:t.x>l&&(t.x-=i),t}(s,f,r[0]):s,d})}function q(t,i=18,l,r,o,f){const d=new Float64Array(o*f);i=Math.round((0,L.F2)(i));let s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,m=0,h=0,v=0,p=0;const g=(0,G.wx)(r,l);for(const{geometry:D,attributes:T}of t){const{x:$,y:I}=D,M=Math.max(0,$-i),R=Math.max(0,I-i),sn=Math.min(f,I+i),un=Math.min(o,$+i),fn=+g(T);for(let N=R;Nc&&(c=m),p++}}if(!p)return{mean:0,stddev:0,min:0,max:0,mid:0,count:0};const z=(c-s)/2;return{mean:h/p,stdDev:Math.sqrt((v-h*h/p)/p),min:s,max:c,mid:z,count:p}}function j(t,i){return C.apply(this,arguments)}function C(){return(C=(0,E.Z)(function*(t,i){if(!i)return[];const{field:l,field2:r,field3:o,fieldDelimiter:f}=t,d=t.valueExpression,s=t.normalizationType,c=t.normalizationField,m=t.normalizationTotal,h=[],v=t.viewInfoParams;let p=null,g=null;if(d){if(!V){const{arcadeUtils:T}=yield(0,J.LC)();V=T}p=V.createFunction(d),g=v&&V.getViewInfo({viewingMode:v.viewingMode,scale:v.scale,spatialReference:new H.Z(v.spatialReference)})}const z=t.fieldInfos,D=i[0]&&"declaredClass"in i[0]&&"esri.Graphic"===i[0].declaredClass||!z?null:{fields:z};return i.forEach(T=>{const $=T.attributes;let I;if(d){const M=D?{...T,layer:D}:T,R=V.createExecContext(M,g);I=V.executeFunction(p,R)}else $&&(I=$[l],r&&(I=`${(0,x.wk)(I)}${f}${(0,x.wk)($[r])}`,o&&(I=`${I}${f}${(0,x.wk)($[o])}`)));if(s&&"number"==typeof I&&isFinite(I)){const M=$&&parseFloat($[c]);I=(0,x.fk)(I,s,M,m)}h.push(I)}),h})).apply(this,arguments)}function tn(t){return w.apply(this,arguments)}function w(){return(w=(0,E.Z)(function*(t){const{attribute:i,features:l}=t,{normalizationType:r,normalizationField:o,minValue:f,maxValue:d,fieldType:s}=i,c=yield j({field:i.field,valueExpression:i.valueExpression,normalizationType:r,normalizationField:o,normalizationTotal:i.normalizationTotal,viewInfoParams:i.viewInfoParams,fieldInfos:i.fieldInfos},l),m=(0,x.S5)({normalizationType:r,normalizationField:o,minValue:f,maxValue:d}),h={value:.5,fieldType:s},v="esriFieldTypeString"===s?(0,x.H0)({values:c,supportsNullCount:m,percentileParams:h}):(0,x.i5)({values:c,minValue:f,maxValue:d,useSampleStdDev:!r,supportsNullCount:m,percentileParams:h});return(0,x.F_)(v,"esriFieldTypeDate"===s)})).apply(this,arguments)}function an(t){return U.apply(this,arguments)}function U(){return(U=(0,E.Z)(function*(t){const{attribute:i,features:l}=t,r=yield j({field:i.field,field2:i.field2,field3:i.field3,fieldDelimiter:i.fieldDelimiter,valueExpression:i.valueExpression,viewInfoParams:i.viewInfoParams,fieldInfos:i.fieldInfos},l),o=(0,x.eT)(r);return(0,x.Qm)(o,i.domains,i.returnAllCodedValues,i.fieldDelimiter)})).apply(this,arguments)}function ln(t){return S.apply(this,arguments)}function S(){return(S=(0,E.Z)(function*(t){const{attribute:i,features:l}=t,{field:r,normalizationType:o,normalizationField:f,normalizationTotal:d,classificationMethod:s}=i,c=yield j({field:r,valueExpression:i.valueExpression,normalizationType:o,normalizationField:f,normalizationTotal:d,viewInfoParams:i.viewInfoParams,fieldInfos:i.fieldInfos},l),m=(0,x.G2)(c,{field:r,normalizationType:o,normalizationField:f,normalizationTotal:d,classificationMethod:s,standardDeviationInterval:i.standardDeviationInterval,numClasses:i.numClasses,minValue:i.minValue,maxValue:i.maxValue});return(0,x.DL)(m,s)})).apply(this,arguments)}function rn(t){return b.apply(this,arguments)}function b(){return(b=(0,E.Z)(function*(t){const{attribute:i,features:l}=t,{field:r,normalizationType:o,normalizationField:f,normalizationTotal:d,classificationMethod:s}=i,c=yield j({field:r,valueExpression:i.valueExpression,normalizationType:o,normalizationField:f,normalizationTotal:d,viewInfoParams:i.viewInfoParams,fieldInfos:i.fieldInfos},l);return(0,x.oF)(c,{field:r,normalizationType:o,normalizationField:f,normalizationTotal:d,classificationMethod:s,standardDeviationInterval:i.standardDeviationInterval,numBins:i.numBins,minValue:i.minValue,maxValue:i.maxValue})})).apply(this,arguments)}function on(t){return Z.apply(this,arguments)}function Z(){return(Z=(0,E.Z)(function*(t){const{attribute:i,features:l}=t,{field:r,radius:o,fieldOffset:f,transform:d,spatialReference:s,size:c}=i,m=k(l,d,s,c),{count:h,min:v,max:p,mean:g,stdDev:z}=q(m,o,f,r,c[0],c[1]);return{count:h,min:v,max:p,avg:g,stddev:z}})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4165.249828e657f470a9.js b/apps/n/porrtal-io-app/public/angular/4165.249828e657f470a9.js deleted file mode 100644 index 96696dfe..00000000 --- a/apps/n/porrtal-io-app/public/angular/4165.249828e657f470a9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4165],{85645:(a,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(17625),_(22355),_(35387),_(16396),_(67093);var E=_(64949)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4186.2b1d746e766811ee.js b/apps/n/porrtal-io-app/public/angular/4186.2b1d746e766811ee.js deleted file mode 100644 index fa878342..00000000 --- a/apps/n/porrtal-io-app/public/angular/4186.2b1d746e766811ee.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4186],{4186:(g,o,t)=>{t.r(o),t.d(o,{default:()=>u});var e=t(17626),_=t(88879),n=t(62208),i=t(32917),r=t(77712),l=(t(85931),t(90912),t(76898)),d=t(14341),c=t(62600),p=t(19702),h=t(41632),E=t(45611);let s=class extends((0,d.N)((0,p.A)(E.Z))){constructor(){super(...arguments),this.type="integrated-mesh-3d",this._elevationContext="im",this._isIntegratedMesh=!0,this._supportsLabeling=!1,this.drapeTargetType=c.a.WithoutRasterImage}get i3slayer(){return this.layer}get updatingProgressValue(){return this._controller?.updatingProgress??0}get lodFactor(){return this.view?.qualitySettings?.sceneService?.integratedMesh?.lodFactor??1}get progressiveLoadFactor(){return this.lodFactor>=1?.2:1}get layerPopupEnabled(){return!1}initialize(){this.updatingHandles.add(()=>this.layer.modifications,()=>this._loadModifications(),i.nn),this.view.basemapTerrain.overlayManager.registerDrapeTarget(this)}destroy(){this.view.basemapTerrain.overlayManager.unregisterDrapeTarget(this)}_createLayerGraphic(){const a=new _.Z;return a.layer=this.layer,a.sourceLayer=this.layer,a}canResume(){return super.canResume()&&(!this._controller||this._controller.rootNodeVisible)}_loadModifications(){if(this.handles.remove("modifications"),(0,n.Wi)(this.layer.modifications))return void(this._modifications=[]);const a=this.layer.modifications;this.handles.add(this.updatingHandles.addOnCollectionChange(()=>a,()=>this._modifications=a.toArray(),i.nn),"modifications")}};(0,e._)([(0,r.Cb)()],s.prototype,"layer",void 0),(0,e._)([(0,r.Cb)()],s.prototype,"i3slayer",null),(0,e._)([(0,r.Cb)(h.q)],s.prototype,"updatingProgress",void 0),(0,e._)([(0,r.Cb)()],s.prototype,"updatingProgressValue",null),(0,e._)([(0,r.Cb)()],s.prototype,"lodFactor",null),(0,e._)([(0,r.Cb)({readOnly:!0})],s.prototype,"progressiveLoadFactor",null),s=(0,e._)([(0,l.j)("esri.views.3d.layers.SceneLayerView3D")],s);const u=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4194.d5cf5fcee0013ada.js b/apps/n/porrtal-io-app/public/angular/4194.d5cf5fcee0013ada.js deleted file mode 100644 index a121f18a..00000000 --- a/apps/n/porrtal-io-app/public/angular/4194.d5cf5fcee0013ada.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4194],{74194:(r,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(98071),_(49480),_(65787),_(17625),_(22355),_(35387);var a=_(88034)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4198.80da27c8dc569279.js b/apps/n/porrtal-io-app/public/angular/4198.80da27c8dc569279.js deleted file mode 100644 index 480b3102..00000000 --- a/apps/n/porrtal-io-app/public/angular/4198.80da27c8dc569279.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4198],{34198:(p,m,s)=>{s.r(m),s.d(m,{registerFunctions:()=>y});var _=s(15861),f=s(6729),u=s(25919),t=s(47562),l=s(77132);function v(r){return r&&r.domain?f.Z.convertObjectToArcadeDictionary("coded-value"===r.domain.type||"codedValue"===r.domain.type?{type:"codedValue",name:r.domain.name,dataType:l.yE[r.field.type],codedValues:r.domain.codedValues.map(e=>({name:e.name,code:e.code}))}:{type:"range",name:r.domain.name,dataType:l.yE[r.field.type],min:r.domain.min,max:r.domain.max}):null}function y(r){"async"===r.mode&&(r.functions.domain=function(e,a){return r.standardFunctionAsync(e,a,function(){var o=(0,_.Z)(function*(c,i,n){if((0,t.y)(n,2,3,e,a),(0,t.w)(n[0]))return v((0,t.P)(n[0],(0,t.j)(n[1]),void 0===n[2]?void 0:(0,t.g)(n[2])));if((0,t.T)(n[0]))return yield n[0]._ensureLoaded(),v((0,t.Y)((0,t.j)(n[1]),n[0],null,void 0===n[2]?void 0:(0,t.g)(n[2])));throw new u.aV(e,u.rH.InvalidParameter,a)});return function(c,i,n){return o.apply(this,arguments)}}())},r.functions.subtypes=function(e,a){return r.standardFunctionAsync(e,a,function(){var o=(0,_.Z)(function*(c,i,n){if((0,t.y)(n,1,1,e,a),(0,t.w)(n[0])){const d=(0,t.O)(n[0]);return d?f.Z.convertObjectToArcadeDictionary(d):null}if((0,t.T)(n[0])){yield n[0]._ensureLoaded();const d=n[0].subtypes();return d?f.Z.convertObjectToArcadeDictionary(d):null}throw new u.aV(e,u.rH.InvalidParameter,a)});return function(c,i,n){return o.apply(this,arguments)}}())},r.functions.domainname=function(e,a){return r.standardFunctionAsync(e,a,function(){var o=(0,_.Z)(function*(c,i,n){if((0,t.y)(n,2,4,e,a),(0,t.w)(n[0]))return(0,t.Q)(n[0],(0,t.j)(n[1]),n[2],void 0===n[3]?void 0:(0,t.g)(n[3]));if((0,t.T)(n[0])){yield n[0]._ensureLoaded();const d=(0,t.Y)((0,t.j)(n[1]),n[0],null,void 0===n[3]?void 0:(0,t.g)(n[3]));return(0,t.Z)(d,n[2])}throw new u.aV(e,u.rH.InvalidParameter,a)});return function(c,i,n){return o.apply(this,arguments)}}())},r.signatures.push({name:"domainname",min:2,max:4}),r.functions.domaincode=function(e,a){return r.standardFunctionAsync(e,a,function(){var o=(0,_.Z)(function*(c,i,n){if((0,t.y)(n,2,4,e,a),(0,t.w)(n[0]))return(0,t.S)(n[0],(0,t.j)(n[1]),n[2],void 0===n[3]?void 0:(0,t.g)(n[3]));if((0,t.T)(n[0])){yield n[0]._ensureLoaded();const d=(0,t.Y)((0,t.j)(n[1]),n[0],null,void 0===n[3]?void 0:(0,t.g)(n[3]));return(0,t._)(d,n[2])}throw new u.aV(e,u.rH.InvalidParameter,a)});return function(c,i,n){return o.apply(this,arguments)}}())},r.signatures.push({name:"domaincode",min:2,max:4})),r.functions.text=function(e,a){return r.standardFunctionAsync(e,a,(o,c,i)=>{if((0,t.y)(i,1,2,e,a),!(0,t.T)(i[0]))return(0,t.t)(i[0],i[1]);{const n=(0,t.A)(i[1],"");if(""===n)return i[0].castToText();if("schema"===n.toLowerCase())return i[0].convertToText("schema",o.abortSignal);if("featureset"===n.toLowerCase())return i[0].convertToText("featureset",o.abortSignal)}})},r.functions.gdbversion=function(e,a){return r.standardFunctionAsync(e,a,function(){var o=(0,_.Z)(function*(c,i,n){if((0,t.y)(n,1,1,e,a),(0,t.w)(n[0]))return n[0].gdbVersion();if((0,t.T)(n[0]))return(yield n[0].load()).gdbVersion;throw new u.aV(e,u.rH.InvalidParameter,a)});return function(c,i,n){return o.apply(this,arguments)}}())},r.functions.schema=function(e,a){return r.standardFunctionAsync(e,a,function(){var o=(0,_.Z)(function*(c,i,n){if((0,t.y)(n,1,1,e,a),(0,t.T)(n[0]))return yield n[0].load(),f.Z.convertObjectToArcadeDictionary(n[0].schema());if((0,t.w)(n[0])){const d=(0,t.N)(n[0]);return d?f.Z.convertObjectToArcadeDictionary(d):null}throw new u.aV(e,u.rH.InvalidParameter,a)});return function(c,i,n){return o.apply(this,arguments)}}())}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4207.c625ec28e09eb7a6.js b/apps/n/porrtal-io-app/public/angular/4207.c625ec28e09eb7a6.js deleted file mode 100644 index 72084651..00000000 --- a/apps/n/porrtal-io-app/public/angular/4207.c625ec28e09eb7a6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4207],{84207:(r,s,_)=>{_.r(s),_.d(s,{OverlayCompositingPassParameters:()=>a.O,build:()=>a.b}),_(75224),_(98071),_(65787),_(18952),_(17625),_(22355),_(35387);var a=_(8651)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4223.4046e218ef3fc449.js b/apps/n/porrtal-io-app/public/angular/4223.4046e218ef3fc449.js deleted file mode 100644 index fbaabac9..00000000 --- a/apps/n/porrtal-io-app/public/angular/4223.4046e218ef3fc449.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4223],{64223:(ye,G,c)=>{c.r(G),c.d(G,{default:()=>ze});var P=c(15861),a=c(17626),R=c(84792),T=c(46160),w=c(26584),L=c(58817),W=c(62208),he=c(99959),fe=c(94113),Y=c(10699),F=c(32917),z=c(21726),n=c(77712),j=(c(90912),c(68653)),H=c(76898),ge=c(99433),N=c(2004),ve=c(44917),xe=c(28678),Se=c(552),we=c(49286),Me=c(6647),Ce=c(30346),Ie=c(99555),Q=c(2584);class Te{constructor(t,r=0,i=t.lods.length-1){this.tileInfo=t,this.minLOD=r,this.maxLOD=i}getAvailability(t,r,i){const s=this.tileInfo?.lodAt(t);return!s||tthis.maxLOD?"unavailable":s.cols&&s.rows?i>=s.cols[0]&&i<=s.cols[1]&&r>=s.rows[0]&&r<=s.rows[1]?"available":"unavailable":"available"}fetchAvailability(t,r,i,s){var o=this;return(0,P.Z)(function*(){return yield(0,Y.Yn)(s),o.getAvailability(t,r,i)})()}fetchAvailabilityUpsample(t,r,i,s,o){var l=this;return(0,P.Z)(function*(){yield(0,Y.Yn)(o),s.level=t,s.row=r,s.col=i;const u=l.tileInfo;for(u.updateTileInfo(s);;){const d=l.getAvailability(s.level,s.row,s.col);if("unavailable"!==d)return d;if(!u.upsampleTile(s))return"unavailable"}})()}}var k,Le=c(91309),X=c(86810);c(85931);let D=k=class extends X.wq{constructor(e){super(e),this.fullExtent=null,this.id=null,this.tileInfo=null}clone(){const e=new k;return this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent&&this.fullExtent.clone()),this.hasOwnProperty("id")&&(e.id=this.id),this.hasOwnProperty("tileInfo")&&(e.tileInfo=this.tileInfo&&this.tileInfo.clone()),e}};(0,a._)([(0,n.Cb)({type:N.Z,json:{read:{source:"fullExtent"}}})],D.prototype,"fullExtent",void 0),(0,a._)([(0,n.Cb)({type:String,json:{read:{source:"id"}}})],D.prototype,"id",void 0),(0,a._)([(0,n.Cb)({type:Q.Z,json:{read:{source:"tileInfo"}}})],D.prototype,"tileInfo",void 0),D=k=(0,a._)([(0,H.j)("esri.layer.support.TileMatrixSet")],D);const be=D;var q;let O=q=class extends X.wq{constructor(e){super(e),this.id=null,this.title=null,this.description=null,this.legendUrl=null}clone(){const e=new q;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("id")&&(e.id=this.id),this.hasOwnProperty("isDefault")&&(e.isDefault=this.isDefault),this.hasOwnProperty("keywords")&&(e.keywords=this.keywords&&this.keywords.slice()),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("title")&&(e.title=this.title),e}};(0,a._)([(0,n.Cb)({json:{read:{source:"id"}}})],O.prototype,"id",void 0),(0,a._)([(0,n.Cb)({json:{read:{source:"title"}}})],O.prototype,"title",void 0),(0,a._)([(0,n.Cb)({json:{read:{source:"abstract"}}})],O.prototype,"description",void 0),(0,a._)([(0,n.Cb)({json:{read:{source:"legendUrl"}}})],O.prototype,"legendUrl",void 0),(0,a._)([(0,n.Cb)({json:{read:{source:"isDefault"}}})],O.prototype,"isDefault",void 0),(0,a._)([(0,n.Cb)({json:{read:{source:"keywords"}}})],O.prototype,"keywords",void 0),O=q=(0,a._)([(0,H.j)("esri.layer.support.WMTSStyle")],O);const Ee=O;var _;let S=_=class extends X.wq{constructor(e){super(e),this.fullExtent=null,this.fullExtents=null,this.imageFormats=null,this.id=null,this.layer=null,this.styles=null,this.tileMatrixSetId=null,this.tileMatrixSets=null}get description(){return this._get("description")}set description(e){this._set("description",e)}readFullExtent(e,t){return(e=t.fullExtent)?N.Z.fromJSON(e):null}readFullExtents(e,t){return t.fullExtents?.length?t.fullExtents.map(r=>N.Z.fromJSON(r)):t.tileMatrixSets?.map(r=>N.Z.fromJSON(r.fullExtent)).filter(r=>r)??[]}get imageFormat(){let e=this._get("imageFormat");return e||(e=this.imageFormats&&this.imageFormats.length?this.imageFormats[0]:""),e}set imageFormat(e){const t=this.imageFormats;e&&(e.includes("image/")||t&&!t.includes(e))&&(e.includes("image/")||(e="image/"+e),t&&!t.includes(e))?console.error("The layer doesn't support the format of "+e):this._set("imageFormat",e)}get styleId(){let e=this._get("styleId");return e||(e=this.styles?.length?this.styles.getItemAt(0).id:""),e}set styleId(e){this._set("styleId",e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get tileMatrixSet(){return this.tileMatrixSets?this.tileMatrixSets.find(e=>e.id===this.tileMatrixSetId):null}clone(){const e=new _;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("imageFormats")&&(e.imageFormats=this.imageFormats&&this.imageFormats.slice()),this.hasOwnProperty("imageFormat")&&(e.imageFormat=this.imageFormat),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent&&this.fullExtent.clone()),this.hasOwnProperty("id")&&(e.id=this.id),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("styleId")&&(e.styleId=this.styleId),this.hasOwnProperty("styles")&&(e.styles=this.styles&&this.styles.clone()),this.hasOwnProperty("tileMatrixSetId")&&(e.tileMatrixSetId=this.tileMatrixSetId),this.hasOwnProperty("tileMatrixSets")&&(e.tileMatrixSets=this.tileMatrixSets?.clone()),this.hasOwnProperty("title")&&(e.title=this.title),e}};(0,a._)([(0,n.Cb)()],S.prototype,"description",null),(0,a._)([(0,n.Cb)()],S.prototype,"fullExtent",void 0),(0,a._)([(0,j.r)("fullExtent",["fullExtent"])],S.prototype,"readFullExtent",null),(0,a._)([(0,n.Cb)({readOnly:!0})],S.prototype,"fullExtents",void 0),(0,a._)([(0,j.r)("fullExtents",["fullExtents","tileMatrixSets"])],S.prototype,"readFullExtents",null),(0,a._)([(0,n.Cb)()],S.prototype,"imageFormat",null),(0,a._)([(0,n.Cb)({json:{read:{source:"formats"}}})],S.prototype,"imageFormats",void 0),(0,a._)([(0,n.Cb)()],S.prototype,"id",void 0),(0,a._)([(0,n.Cb)()],S.prototype,"layer",void 0),(0,a._)([(0,n.Cb)()],S.prototype,"styleId",null),(0,a._)([(0,n.Cb)({type:T.Z.ofType(Ee),json:{read:{source:"styles"}}})],S.prototype,"styles",void 0),(0,a._)([(0,n.Cb)({value:null,json:{write:{ignoreOrigin:!0}}})],S.prototype,"title",null),(0,a._)([(0,n.Cb)()],S.prototype,"tileMatrixSetId",void 0),(0,a._)([(0,n.Cb)({readOnly:!0})],S.prototype,"tileMatrixSet",null),(0,a._)([(0,n.Cb)({type:T.Z.ofType(be),json:{read:{source:"tileMatrixSets"}}})],S.prototype,"tileMatrixSets",void 0),S=_=(0,a._)([(0,H.j)("esri.layers.support.WMTSSublayer")],S);const B=S;var Pe=c(72642),Oe=c(12080),ee=c(84029),te=c(22825),oe=c(7255);const ae=90.71428571428571;function ne(e){const t=e.replace(/ows:/gi,"");if(!g("Contents",(new DOMParser).parseFromString(t,"text/xml").documentElement))throw new w.Z("wmtslayer:wmts-capabilities-xml-is-not-valid","the wmts get capabilities response is not compliant",{text:e})}function re(e){return e.nodeType===Node.ELEMENT_NODE}function g(e,t){for(let r=0;ri.textContent).filter(W.pC)}function h(e,t){return e.split(">").forEach(r=>{t&&(t=g(r,t))}),t&&t.textContent}function K(e,t,r,i){let s;return Array.prototype.slice.call(i.childNodes).some(o=>{if(o.nodeName.includes(e)){const l=g(t,o),u=l&&l.textContent;if(u===r||r.split(":")&&r.split(":")[1]===u)return s=o,!0}return!1}),s}function ue(e,t){const r=[],i=e.layerMap?.get(t);if(!i)return null;const s=U("ResourceURL",i),o=U("Dimension",i);let l,u,d,y;return o.length&&(l=h("Identifier",o[0]),u=Z("Default",o[0])||Z("Value",o[0])),o.length>1&&(d=h("Identifier",o[1]),y=Z("Default",o[1])||Z("Value",o[1])),e.dimensionMap.set(t,{dimensions:u,dimensions2:y}),s.forEach(f=>{let p=f.getAttribute("template");if("tile"===f.getAttribute("resourceType")){if(l&&u.length)if(p.includes("{"+l+"}"))p=p.replace("{"+l+"}","{dimensionValue}");else{const x=p.toLowerCase().indexOf("{"+l.toLowerCase()+"}");x>-1&&(p=p.substring(0,x)+"{dimensionValue}"+p.substring(x+l.length+2))}if(d&&y.length)if(p.includes("{"+d+"}"))p=p.replace("{"+d+"}","{dimensionValue2}");else{const x=p.toLowerCase().indexOf("{"+d.toLowerCase()+"}");x>-1&&(p=p.substring(0,x)+"{dimensionValue2}"+p.substring(x+d.length+2))}r.push({template:p,format:f.getAttribute("format"),resourceType:"tile"})}}),r}function Ne(e){const t=g("WGS84BoundingBox",e),r=t?h("LowerCorner",t).split(" "):["-180","-90"],i=t?h("UpperCorner",t).split(" "):["180","90"];return{xmin:parseFloat(r[0]),ymin:parseFloat(r[1]),xmax:parseFloat(i[0]),ymax:parseFloat(i[1]),spatialReference:{wkid:4326}}}function Ze(e){const t=[];return(0,oe.h)(e,{BoundingBox:r=>{if(!r.getAttribute("crs"))return;const i=r.getAttribute("crs").toLowerCase(),s=ie(i),o=i.includes("epsg")&&(0,te.A)(s.wkid);let l,u,d,y;(0,oe.h)(r,{LowerCorner:f=>{[l,u]=f.textContent.split(" ").map(p=>Number.parseFloat(p)),o&&([l,u]=[u,l])},UpperCorner:f=>{[d,y]=f.textContent.split(" ").map(p=>Number.parseFloat(p)),o&&([d,y]=[y,d])}}),t.push({xmin:l,ymin:u,xmax:d,ymax:y,spatialReference:s})}}),t}function We(e,t){return U("Style",e).map(r=>{const i=g("LegendURL",r),s=g("Keywords",r),o=s?Z("Keyword",s):[];let l=i&&i.getAttribute("xlink:href");return t&&(l=l&&l.replace(/^http:/i,"https:")),{abstract:h("Abstract",r),id:h("Identifier",r),isDefault:"true"===r.getAttribute("isDefault"),keywords:o,legendUrl:l,title:h("Title",r)}})}function De(e,t,r){return U("TileMatrixSetLink",t).map(i=>function Be(e,t,r){const i=g("TileMatrixSet",t).textContent,s=Z("TileMatrix",t),o=r.find(M=>{const b=g("Identifier",M),V=b&&b.textContent;return!!(V===i||i.split(":")&&i.split(":")[1]===V)}),l=g("TileMatrixSetLimits",t),u=l&&U("TileMatrixLimits",l),d=new Map;if(u?.length)for(const M of u){const b=g("TileMatrix",M).textContent,V=+g("MinTileRow",M).textContent,se=+g("MaxTileRow",M).textContent,le=+g("MinTileCol",M).textContent,I=+g("MaxTileCol",M).textContent;d.set(b,{minCol:le,maxCol:I,minRow:V,maxRow:se})}const y=h("SupportedCRS",o).toLowerCase(),f=function Ke(e,t){return ce(g("TileMatrix",e),t)}(o,y),p=f.spatialReference,x=g("TileMatrix",o),C=[parseInt(h("TileWidth",x),10),parseInt(h("TileHeight",x),10)],v=[];s.length?s.forEach((M,b)=>{const V=K("TileMatrix","Identifier",M,o);v.push(de(V,y,b,i,d))}):U("TileMatrix",o).forEach((M,b)=>{v.push(de(M,y,b,i,d))});const A=function $e(e,t,r,i,s){const o=g("BoundingBox",t);let l,u,d,y,f,p;if(o&&(l=h("LowerCorner",o).split(" "),u=h("UpperCorner",o).split(" ")),l&&l.length>1&&u&&u.length>1)d=parseFloat(l[0]),f=parseFloat(l[1]),y=parseFloat(u[0]),p=parseFloat(u[1]);else{const x=g("TileMatrix",t),C=parseInt(h("MatrixWidth",x),10),v=parseInt(h("MatrixHeight",x),10);d=r.x,p=r.y,y=d+C*i[0]*s.resolution,f=p-v*i[1]*s.resolution}return function Je(e,t,r){return"1.0.0"===e&&(0,te.A)(t.wkid)&&!(r.spatialReference.isGeographic&&r.x<-90&&r.y>=-90)}(e,r.spatialReference,r)?new N.Z(f,d,p,y,r.spatialReference):new N.Z(d,f,y,p,r.spatialReference)}(e,o,f,C,v[0]).toJSON(),J=new Q.Z({dpi:96,spatialReference:p,size:C,origin:f,lods:v}).toJSON();return{id:i,fullExtent:A,tileInfo:J}}(e,i,r))}function ie(e){e=e.toLowerCase();let t=parseInt(e.split(":").pop(),10);900913!==t&&3857!==t||(t=102100);const r=function Ge(e){return e.includes("crs84")||e.includes("crs:84")?$.CRS84:e.includes("crs83")||e.includes("crs:83")?$.CRS83:e.includes("crs27")||e.includes("crs:27")?$.CRS27:null}(e);return(0,W.pC)(r)&&(t=r),{wkid:t}}function ce(e,t){const r=ie(t),[i,s]=h("TopLeftCorner",e).split(" ").map(l=>parseFloat(l)),o=t.includes("epsg")&&(0,te.A)(r.wkid);return new Pe.Z(o?{x:s,y:i,spatialReference:r}:{x:i,y:s,spatialReference:r})}var $,e;function de(e,t,r,i,s){const o=ie(t),l=h("Identifier",e);let u=parseFloat(h("ScaleDenominator",e));const d=pe(o.wkid,u,i);u*=96/ae;const y=+h("MatrixWidth",e),f=+h("MatrixHeight",e),{maxCol:p=y-1,maxRow:x=f-1,minCol:C=0,minRow:v=0}=s.get(l)??{},{x:A,y:J}=ce(e,t);return{cols:[C,p],level:r,levelValue:l,origin:[A,J],scale:u,resolution:d,rows:[v,x]}}function pe(e,t,r){let i;return i=ee.Z.hasOwnProperty(""+e)?ee.Z.values[ee.Z[e]]:"default028mm"===r?6370997*Math.PI/180:(0,Oe.e8)(e).metersPerDegree,7*t/25e3/i}(e=$||($={}))[e.CRS84=4326]="CRS84",e[e.CRS83=4269]="CRS83",e[e.CRS27=4267]="CRS27";const me={"image/png":".png","image/png8":".png","image/png24":".png","image/png32":".png","image/jpg":".jpg","image/jpeg":".jpeg","image/gif":".gif","image/bmp":".bmp","image/tiff":".tif","image/jpgpng":"","image/jpegpng":"","image/unknown":""},Ye=new Set(["version","service","request","layer","style","format","tilematrixset","tilematrix","tilerow","tilecol"]);let m=class extends((0,Se.h)((0,Ce.Q)((0,Ie.M)((0,we.q)((0,Me.I)((0,he.R)(ve.Z))))))){constructor(...e){super(...e),this.copyright="",this.customParameters=null,this.customLayerParameters=null,this.fullExtent=null,this.operationalLayerType="WebTiledLayer",this.resourceInfo=null,this.serviceMode="RESTful",this.sublayers=null,this.type="wmts",this.version="1.0.0",this.addHandles([(0,F.YP)(()=>this.activeLayer,(t,r)=>{r&&(r.layer=null),t&&(t.layer=this)},F.Z_),(0,F.on)(()=>this.sublayers,"after-add",({item:t})=>{t.layer=this},F.Z_),(0,F.on)(()=>this.sublayers,"after-remove",({item:t})=>{t.layer=null},F.Z_),(0,F.YP)(()=>this.sublayers,(t,r)=>{if(r)for(const i of r)i.layer=null;if(t)for(const i of t)i.layer=this},F.Z_)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if("KVP"===this.serviceMode||"RESTful"===this.serviceMode)return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMTS"]},e).catch(Y.r9).then(()=>this._fetchService(e)).catch(t=>{throw(0,Y.r9)(t),new w.Z("wmtslayer:unsupported-service-data","Invalid response from the WMTS service.",{error:t})})),Promise.resolve(this);console.error("WMTS mode could only be 'KVP' or 'RESTful'")}get activeLayer(){return this._get("activeLayer")}set activeLayer(e){this._set("activeLayer",e)}readActiveLayerFromService(e,t,r){this.activeLayer||(this.activeLayer=new B);let i=t.layers.find(s=>s.id===this.activeLayer.id);return i||(i=t.layers[0]),this.activeLayer.read(i,r),this.activeLayer}readActiveLayerFromItemOrWebDoc(e,t){const{templateUrl:r,wmtsInfo:i}=t,s=r?this._getLowerCasedUrlParams(r):null,o=i?.layerIdentifier;let l=null;const u=i?.tileMatrixSet;u&&(Array.isArray(u)?u.length&&(l=u[0]):l=u);const d=s?.format,y=s?.style;return new B({id:o,imageFormat:d,styleId:y,tileMatrixSetId:l})}writeActiveLayer(e,t,r,i){const s=this.activeLayer;t.templateUrl=this.getUrlTemplate(s.id,s.tileMatrixSetId,s.imageFormat,s.styleId);const o=(0,fe.hS)("tileMatrixSet.tileInfo",s);t.tileInfo=o?o.toJSON(i):null,t.wmtsInfo={...t.wmtsInfo,layerIdentifier:s.id,tileMatrixSet:s.tileMatrixSetId}}readCustomParameters(e,t){const r=t.wmtsInfo;return r?this._mergeParams(r.customParameters,r.url):null}get fullExtents(){return this.activeLayer.fullExtents}readServiceMode(e,t){return t.templateUrl.includes("?")?"KVP":"RESTful"}readSublayersFromService(e,t,r){return function He(e,t){return e.map(r=>{const i=new B;return i.read(r,t),i})}(t.layers,r)}get supportedSpatialReferences(){return this.activeLayer.tileMatrixSets?.map(e=>e.tileInfo?.spatialReference).toArray().filter(W.pC)??[]}get tilemapCache(){const e=this.activeLayer?.tileMatrixSet?.tileInfo;return e?new Te(e):void 0}get title(){return this.activeLayer?.title??"Layer"}set title(e){this._overrideIfSome("title",e)}get url(){return this._get("url")}set url(e){e&&"/"===e.substr(-1)?this._set("url",e.slice(0,-1)):this._set("url",e)}createWebTileLayer(e){const t=this.getUrlTemplate(this.activeLayer.id,this.activeLayer.tileMatrixSetId,this.activeLayer.imageFormat,this.activeLayer.styleId),r=this._getTileMatrixSetById(e.tileMatrixSetId)?.tileInfo,i=e.fullExtent,s=new Le.B({layerIdentifier:e.id,tileMatrixSet:e.tileMatrixSetId,url:this.url});return this.customLayerParameters&&(s.customLayerParameters=this.customLayerParameters),this.customParameters&&(s.customParameters=this.customParameters),new xe.default({fullExtent:i,urlTemplate:t,tileInfo:r,wmtsInfo:s})}fetchTile(e,t,r){const i=this.getTileUrl(e,t,r);return(0,R.default)(i,{responseType:"image"}).then(s=>s.data)}fetchImageBitmapTile(e,t,r){var i=this;return(0,P.Z)(function*(){const s=i.getTileUrl(e,t,r),{data:o}=yield(0,R.default)(s,{responseType:"blob"});return createImageBitmap(o)})()}findSublayerById(e){return this.sublayers?.find(t=>t.id===e)}getTileUrl(e,t,r){const i=this._getTileMatrixSetById(this.activeLayer.tileMatrixSetId)?.tileInfo?.lods[e],s=i?i.levelValue?i.levelValue:`${i.level}`:`${e}`;let o=this.resourceInfo?"":function Ae(e,t,r,i,s,o,l,u){const d=function Ve(e,t,r){const i=ue(e,t),s=i?.filter(o=>o.format===r);return(s?.length?s:i)??[]}(e,t,i);if(!(d?.length>0))return"";const{dimensionMap:y}=e,f=y.get(t).dimensions?.[0],p=y.get(t).dimensions2?.[0];return d[l%d.length].template.replace(/\{Style\}/gi,s??"").replace(/\{TileMatrixSet\}/gi,r??"").replace(/\{TileMatrix\}/gi,o).replace(/\{TileRow\}/gi,""+l).replace(/\{TileCol\}/gi,""+u).replace(/\{dimensionValue\}/gi,f).replace(/\{dimensionValue2\}/gi,p)}({dimensionMap:this.dimensionMap,layerMap:this.layerMap},this.activeLayer.id,this.activeLayer.tileMatrixSetId,this.activeLayer.imageFormat,this.activeLayer.styleId,s,t,r);return o||(o=this.getUrlTemplate(this.activeLayer.id,this.activeLayer.tileMatrixSetId,this.activeLayer.imageFormat,this.activeLayer.styleId).replace(/\{level\}/gi,s).replace(/\{row\}/gi,`${t}`).replace(/\{col\}/gi,`${r}`)),o=this._appendCustomLayerParameters(o),o}getUrlTemplate(e,t,r,i){if(!this.resourceInfo){const s=function je(e,t,r,i){const{dimensionMap:s}=e,o=ue(e,t);let l="";if(o&&o.length>0){const u=s.get(t).dimensions&&s.get(t).dimensions[0],d=s.get(t).dimensions2&&s.get(t).dimensions2[0];l=o[0].template,l.indexOf(".xxx")===l.length-4&&(l=l.slice(0,l.length-4)),l=l.replace(/\{Style\}/gi,i),l=l.replace(/\{TileMatrixSet\}/gi,r),l=l.replace(/\{TileMatrix\}/gi,"{level}"),l=l.replace(/\{TileRow\}/gi,"{row}"),l=l.replace(/\{TileCol\}/gi,"{col}"),l=l.replace(/\{dimensionValue\}/gi,u),l=l.replace(/\{dimensionValue2\}/gi,d)}return l}({dimensionMap:this.dimensionMap,layerMap:this.layerMap},e,t,i);if(s)return s}if("KVP"===this.serviceMode)return this.url+"?SERVICE=WMTS&VERSION="+this.version+"&REQUEST=GetTile&LAYER="+e+"&STYLE="+i+"&FORMAT="+r+"&TILEMATRIXSET="+t+"&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}";if("RESTful"===this.serviceMode){let s="";return me[r.toLowerCase()]&&(s=me[r.toLowerCase()]),this.url+e+"/"+i+"/"+t+"/{level}/{row}/{col}"+s}return""}_fetchService(e){var t=this;return(0,P.Z)(function*(){let r;if(t.resourceInfo)"KVP"===t.resourceInfo.serviceMode&&(t.url+=t.url.includes("?")?"":"?"),r={ssl:!1,data:t.resourceInfo};else try{r=yield t._getCapabilities(t.serviceMode,e),ne(r.data)}catch{const i="KVP"===t.serviceMode?"RESTful":"KVP";try{r=yield t._getCapabilities(i,e),ne(r.data),t.serviceMode=i}catch(s){throw new w.Z("wmtslayer:unsupported-service-data","Services does not support RESTful or KVP service modes.",{error:s})}}r.data=t.resourceInfo?function Fe(e){return e.layers.forEach(t=>{t.tileMatrixSets?.forEach(r=>{const i=r.tileInfo;i&&96!==i.dpi&&(i.lods?.forEach(s=>{s.scale=96*s.scale/i.dpi,s.resolution=pe(i.spatialReference?.wkid,s.scale*ae/96,r.id)}),i.dpi=96)})}),e}(r.data):function Re(e,t){e=e.replace(/ows:/gi,"");const r=(new DOMParser).parseFromString(e,"text/xml").documentElement,i=new Map,s=new Map,o=g("Contents",r);if(!o)throw new w.Z("wmtslayer:wmts-capabilities-xml-is-not-valid");const l=g("OperationsMetadata",r)?.querySelector("[name='GetTile']"),u=l?.getElementsByTagName("Get"),d=u&&Array.prototype.slice.call(u),y=t.url?.indexOf("https"),f=void 0!==y&&y>-1;let p,x,C=t.serviceMode,v=t?.url;d&&d.length&&d.some(I=>{const E=g("Constraint",I);return!E||K("AllowedValues","Value",C,E)?(v=I.attributes[0].nodeValue,!0):(!E||K("AllowedValues","Value","RESTful",E)||K("AllowedValues","Value","REST",E)?x=I.attributes[0].nodeValue:E&&!K("AllowedValues","Value","KVP",E)||(p=I.attributes[0].nodeValue),!1)}),!v&&(x?(v=x,C="RESTful"):p?(v=p,C="KVP"):v=g("ServiceMetadataURL",r)?.getAttribute("xlink:href"));const A=v.indexOf("1.0.0/");-1===A&&"RESTful"===C?v+="/":A>-1&&(v=v.substring(0,A)),"KVP"===C&&(v+=A>-1?"":"?"),f&&(v=v.replace(/^http:/i,"https:"));const J=h("ServiceIdentification>ServiceTypeVersion",r),M=h("ServiceIdentification>AccessConstraints",r),b=M&&/^none$/i.test(M)?null:M,V=U("Layer",o),se=U("TileMatrixSet",o),le=V.map(I=>{const E=h("Identifier",I);return i.set(E,I),function Ue(e,t,r,i,s){const o=h("Abstract",t),l=Z("Format",t);return{id:e,fullExtent:Ne(t),fullExtents:Ze(t),description:o,formats:l,styles:We(t,i),title:h("Title",t),tileMatrixSets:De(s,t,r)}}(E,I,se,f,J)});return{copyright:b,dimensionMap:s,layerMap:i,layers:le,serviceMode:C,tileUrl:v}}(r.data,{serviceMode:t.serviceMode,url:t.url}),r.data&&t.read(r.data,{origin:"service"})})()}_getCapabilities(e,t){var r=this;return(0,P.Z)(function*(){const i=r._getCapabilitiesUrl(e);return yield(0,R.default)(i,{...t,responseType:"text"})})()}_getTileMatrixSetById(e){return this.findSublayerById(this.activeLayer.id)?.tileMatrixSets?.find(r=>r.id===e)}_appendCustomParameters(e){return this._appendParameters(e,this.customParameters)}_appendCustomLayerParameters(e){return this._appendParameters(e,{...(0,L.d9)(this.customParameters),...this.customLayerParameters})}_appendParameters(e,t){const r=(0,z.mN)(e),i={...r.query,...t},s=(0,z.B7)(i);return""===s?r.path:`${r.path}?${s}`}_getCapabilitiesUrl(e){return this.url=this.url.split("?")[0],this._appendCustomParameters("KVP"===e?`${this.url}?request=GetCapabilities&service=WMTS&version=${this.version}`:`${this.url}/${this.version}/WMTSCapabilities.xml`)}_getLowerCasedUrlParams(e){if(!e)return null;const t=(0,z.mN)(e).query;if(!t)return null;const r={};return Object.keys(t).forEach(i=>{r[i.toLowerCase()]=t[i]}),r}_mergeParams(e,t){const r=this._getLowerCasedUrlParams(t);if(r){const i=Object.keys(r);i.length&&(e=e?(0,L.d9)(e):{},i.forEach(s=>{e.hasOwnProperty(s)||Ye.has(s)||(e[s]=r[s])}))}return e}};(0,a._)([(0,n.Cb)()],m.prototype,"dimensionMap",void 0),(0,a._)([(0,n.Cb)()],m.prototype,"layerMap",void 0),(0,a._)([(0,n.Cb)({type:B,json:{origins:{"web-document":{write:{ignoreOrigin:!0}}}}})],m.prototype,"activeLayer",null),(0,a._)([(0,j.r)("service","activeLayer",["layers"])],m.prototype,"readActiveLayerFromService",null),(0,a._)([(0,j.r)(["web-document","portal-item"],"activeLayer",["wmtsInfo"])],m.prototype,"readActiveLayerFromItemOrWebDoc",null),(0,a._)([(0,ge.c)(["web-document","portal-item"],"activeLayer",{templateUrl:{type:String},tileInfo:{type:Q.Z},"wmtsInfo.layerIdentifier":{type:String},"wmtsInfo.tileMatrixSet":{type:String}})],m.prototype,"writeActiveLayer",null),(0,a._)([(0,n.Cb)({type:String,value:"",json:{write:!0}})],m.prototype,"copyright",void 0),(0,a._)([(0,n.Cb)({type:["show","hide"]})],m.prototype,"listMode",void 0),(0,a._)([(0,n.Cb)({json:{read:!0,write:!0}})],m.prototype,"blendMode",void 0),(0,a._)([(0,n.Cb)({json:{origins:{"web-document":{read:{source:["wmtsInfo.customParameters","wmtsInfo.url"]},write:{target:"wmtsInfo.customParameters"}},"portal-item":{read:{source:["wmtsInfo.customParameters","wmtsInfo.url"]},write:{target:"wmtsInfo.customParameters"}}}}})],m.prototype,"customParameters",void 0),(0,a._)([(0,j.r)(["portal-item","web-document"],"customParameters")],m.prototype,"readCustomParameters",null),(0,a._)([(0,n.Cb)({json:{origins:{"web-document":{read:{source:"wmtsInfo.customLayerParameters"},write:{target:"wmtsInfo.customLayerParameters"}},"portal-item":{read:{source:"wmtsInfo.customLayerParameters"},write:{target:"wmtsInfo.customLayerParameters"}}}}})],m.prototype,"customLayerParameters",void 0),(0,a._)([(0,n.Cb)({type:N.Z,json:{write:{ignoreOrigin:!0},origins:{"web-document":{read:{source:"fullExtent"}},"portal-item":{read:{source:"fullExtent"}}}}})],m.prototype,"fullExtent",void 0),(0,a._)([(0,n.Cb)({readOnly:!0})],m.prototype,"fullExtents",null),(0,a._)([(0,n.Cb)({type:["WebTiledLayer"]})],m.prototype,"operationalLayerType",void 0),(0,a._)([(0,n.Cb)()],m.prototype,"resourceInfo",void 0),(0,a._)([(0,n.Cb)()],m.prototype,"serviceMode",void 0),(0,a._)([(0,j.r)(["portal-item","web-document"],"serviceMode",["templateUrl"])],m.prototype,"readServiceMode",null),(0,a._)([(0,n.Cb)({type:T.Z.ofType(B)})],m.prototype,"sublayers",void 0),(0,a._)([(0,j.r)("service","sublayers",["layers"])],m.prototype,"readSublayersFromService",null),(0,a._)([(0,n.Cb)({readOnly:!0})],m.prototype,"supportedSpatialReferences",null),(0,a._)([(0,n.Cb)({readOnly:!0})],m.prototype,"tilemapCache",null),(0,a._)([(0,n.Cb)({json:{read:{source:"title"}}})],m.prototype,"title",null),(0,a._)([(0,n.Cb)({json:{read:!1},readOnly:!0,value:"wmts"})],m.prototype,"type",void 0),(0,a._)([(0,n.Cb)({json:{origins:{service:{read:{source:"tileUrl"}},"web-document":{read:{source:"wmtsInfo.url"},write:{target:"wmtsInfo.url"}},"portal-item":{read:{source:"wmtsInfo.url"},write:{target:"wmtsInfo.url"}}}}})],m.prototype,"url",null),(0,a._)([(0,n.Cb)()],m.prototype,"version",void 0),m=(0,a._)([(0,H.j)("esri.layers.WMTSLayer")],m);const ze=m},7255:(ye,G,c)=>{function P(R,T){if(R&&T)for(const w of R.children)if(w.localName in T){const L=T[w.localName];if("function"==typeof L){const W=L(w);W&&P(w,W)}else P(w,L)}}function*a(R,T){for(const w of R.children)if(w.localName in T){const L=T[w.localName];"function"==typeof L?yield L(w):yield*a(w,L)}}c.d(G,{H:()=>a,h:()=>P})}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4287.4ede0c3a31f5731c.js b/apps/n/porrtal-io-app/public/angular/4287.4ede0c3a31f5731c.js deleted file mode 100644 index b5574ca3..00000000 --- a/apps/n/porrtal-io-app/public/angular/4287.4ede0c3a31f5731c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4287],{84287:(x,u,n)=>{n.r(u),n.d(u,{default:()=>A});var y=n(94573),m=n(62208),g=n(86236),_=n(65234),C=n(33696),d=n(38114),c=n(82054),P=n(36255);function v(o,t){return t}function l(o,t,e,r){switch(e){case 0:return a(o,t+r,0);case 1:return"lowerLeft"===o.originPosition?a(o,t+r,1):function M({translate:o,scale:t},e,r){return o[r]-e*t[r]}(o,t+r,1)}}function p(o,t,e,r){return 2===e?a(o,t,2):l(o,t,e,r)}function G(o,t,e,r){return 2===e?a(o,t,3):l(o,t,e,r)}function b(o,t,e,r){return 3===e?a(o,t,3):p(o,t,e,r)}function a({translate:o,scale:t},e,r){return o[r]+e*t[r]}class R{constructor(t){this._options=t,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=v,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return new d.Pj}finishFeatureResult(t){if(this._options.applyTransform&&(t.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!t.hasZ)return;const e=(0,C.k)(t.geometryType,this._options.sourceSpatialReference,t.spatialReference);if(!(0,m.Wi)(e))for(const r of t.features)e(r.geometry)}createSpatialReference(){return new _.Z}addField(t,e){t.fields.push(P.Z.fromJSON(e));const r=t.fields.map(s=>s.name);this._attributesConstructor=function(){for(const s of r)this[s]=null}}addFeature(t,e){const r=this._options.maxStringAttributeLength?this._options.maxStringAttributeLength:0;if(r>0)for(const s in e.attributes){const i=e.attributes[s];"string"==typeof i&&i.length>r&&(e.attributes[s]="")}t.features.push(e)}addQueryGeometry(t,e){const{queryGeometry:r,queryGeometryType:s}=e,i=(0,c.$g)(r.clone(),r,!1,!1,this._transform),f=(0,c.di)(i,s,!1,!1);let h=null;switch(s){case"esriGeometryPoint":h="point";break;case"esriGeometryPolygon":h="polygon";break;case"esriGeometryPolyline":h="polyline";break;case"esriGeometryMultipoint":h="multipoint"}f.type=h,t.queryGeometryType=s,t.queryGeometry=f}prepareFeatures(t){switch(this._transform=t.transform,this._options.applyTransform&&t.transform&&(this._applyTransform=this._deriveApplyTransform(t)),this._vertexDimension=2,t.hasZ&&this._vertexDimension++,t.hasM&&this._vertexDimension++,t.geometryType){case"point":this.addCoordinate=(e,r,s)=>this.addCoordinatePoint(e,r,s),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,r,s)=>this._addCoordinatePolygon(e,r,s),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,r,s)=>this._addCoordinatePolyline(e,r,s),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,r,s)=>this._addCoordinateMultipoint(e,r,s),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,y.Bg)(t.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new d.Wh((0,g.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const t=this._lengths.reduce((e,r)=>e+r,0);this._coordinateBuffer=new Float64Array(t*this._vertexDimension),this._coordinateBufferPtr=0}addLength(t,e,r){0===this._lengths.length&&(this._toAddInCurrentPath=e),this._lengths.push(e)}createPointGeometry(t){const e={type:"point",x:0,y:0,spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM};return e.hasZ&&(e.z=0),e.hasM&&(e.m=0),e}addCoordinatePoint(t,e,r){switch(e=this._applyTransform(this._transform,e,r,0),r){case 0:t.x=e;break;case 1:t.y=e;break;case 2:t.hasZ?t.z=e:t.m=e;break;case 3:t.m=e}}_transformPathLikeValue(t,e){let r=0;return e<=1&&(r=this._previousCoordinate[e],this._previousCoordinate[e]+=t),this._applyTransform(this._transform,t,e,r)}_addCoordinatePolyline(t,e,r){this._dehydratedAddPointsCoordinate(t.paths,e,r)}_addCoordinatePolygon(t,e,r){this._dehydratedAddPointsCoordinate(t.rings,e,r)}_addCoordinateMultipoint(t,e,r){0===r&&t.points.push([]);const s=this._transformPathLikeValue(e,r);t.points[t.points.length-1].push(s)}_createPolygonGeometry(t){return{type:"polygon",rings:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createPolylineGeometry(t){return{type:"polyline",paths:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createMultipointGeometry(t){return{type:"multipoint",points:[],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_dehydratedAddPointsCoordinate(t,e,r){0===r&&0==this._toAddInCurrentPath--&&(t.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(e,r);0===r&&t[t.length-1].push(new Float64Array(this._coordinateBuffer.buffer,this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT,this._vertexDimension)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(t){const{hasZ:e,hasM:r}=t;return e&&r?b:e?p:r?G:l}}var T=n(85262);class Z{_parseFeatureQuery(t){const e=(0,T.C)(t.buffer,new R(t.options)),r={...e,spatialReference:e.spatialReference.toJSON(),fields:e.fields?e.fields.map(s=>s.toJSON()):void 0};return Promise.resolve(r)}}function A(){return new Z}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4341.f4af80ccc50f46d8.js b/apps/n/porrtal-io-app/public/angular/4341.f4af80ccc50f46d8.js deleted file mode 100644 index d80b901b..00000000 --- a/apps/n/porrtal-io-app/public/angular/4341.f4af80ccc50f46d8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4341],{40405:(Re,ie,l)=>{l.d(ie,{B:()=>H});var R=l(15861),g=l(22558),b=l(21726),he=l(35948),ae=l(34117),me=l(31283),Se=l(77712);function le(y){return n[function se(y){return y instanceof Blob?y.type:function A(y){const v=(0,b.Ml)(y);return C[v]||J}(y.url)}(y)]||V}const n={},J="text/plain",V=n[J],C={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const y in C)n[C[y]]=y;var x=l(29840);function H(y){const v=y?.origins??[void 0];return(P,u)=>{const m=function N(y,v,P){if("resource"===y?.type)return function I(y,v,P){const u=(0,ae.VZ)(v,P);return{type:String,read:(m,O,F)=>{const E=(0,x.r)(m,O,F);return u.type===String?E:"function"==typeof u.type?new u.type({url:E}):void 0},write:{writer(m,O,F,E){if(!E||!E.resources)return"string"==typeof m?void(O[F]=(0,x.t)(m,E)):void(O[F]=m.write({},E));const oe=function ce(y){return null==y?null:"string"==typeof y?y:y.url}(m),w=(0,x.t)(oe,{...E,verifyItemRelativeUrls:E&&E.verifyItemRelativeUrls?{writtenUrls:E.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},x.M.NO),de=u.type!==String&&(!(0,g.l)(this)||E&&E.origin&&this.originIdOf(P)>(0,me.M9)(E.origin)),Q={object:this,propertyName:P,value:m,targetUrl:w,dest:O,targetPropertyName:F,context:E,params:y};E&&E.portalItem&&w&&!(0,b.YP)(w)?de?function _e(y){const{context:v,targetUrl:P,params:u,value:m,dest:O,targetPropertyName:F}=y;if(!v.portalItem)return;const E=v.portalItem.resourceFromPath(P),oe=Ie(m,P,v),w=le(oe),de=(0,b.Ml)(E.path),Q=u?.compress??!1;w===de?(v.resources&&D({...y,resource:E,content:oe,compress:Q,updates:v.resources.toUpdate}),O[F]=P):Z(y)}(Q):function xe({context:y,targetUrl:v,dest:P,targetPropertyName:u}){y.portalItem&&y.resources&&(y.resources.toKeep.push({resource:y.portalItem.resourceFromPath(v),compress:!1}),P[u]=v)}(Q):E&&E.portalItem&&(null==w||null!=(0,x.i)(w)||(0,b.jc)(w)||de)?Z(Q):O[F]=w}}}}(y,v,P);switch(y?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:u,write:m}=x.a;return{read:u,write:m}}}}(y,P,u);for(const O of v){const F=(0,Se.CJ)(P,O,u);for(const E in m)F[E]=m[E]}}}function Z(y){const{targetUrl:v,params:P,value:u,context:m,dest:O,targetPropertyName:F}=y;if(!m.portalItem)return;const E=(0,x.p)(v),oe=E?.filename??(0,he.D)(),w=P?.prefix??E?.prefix,de=Ie(u,v,m),Q=(0,b.v_)(w,oe),Ve=`${Q}.${le(de)}`,Te=m.portalItem.resourceFromPath(Ve);(0,b.jc)(v)&&m.resources&&m.resources.pendingOperations.push(function Pe(y){return re.apply(this,arguments)}(v).then(Fe=>{Te.path=`${Q}.${le(Fe)}`,O[F]=Te.itemRelativeUrl}).catch(()=>{}));const De=P?.compress??!1;m.resources&&D({...y,resource:Te,content:de,compress:De,updates:m.resources.toAdd}),O[F]=Te.itemRelativeUrl}function D({object:y,propertyName:v,updates:P,resource:u,content:m,compress:O}){P.push({resource:u,content:m,compress:O,finish:F=>{!function Ae(y,v,P){"string"==typeof y[v]?y[v]=P.url:y[v].url=P.url}(y,v,F)}})}function Ie(y,v,P){return"string"==typeof y?{url:v}:new Blob([JSON.stringify(y.toJSON(P))],{type:"application/json"})}function re(){return(re=(0,R.Z)(function*(y){const v=(yield Promise.resolve().then(l.bind(l,84792))).default,{data:P}=yield v(y,{responseType:"blob"});return P})).apply(this,arguments)}},22558:(Re,ie,l)=>{function R(g){return g&&"getAtOrigin"in g&&"originOf"in g}l.d(ie,{l:()=>R})},10439:(Re,ie,l)=>{l.d(ie,{Z:()=>x});var V,R=l(17626),b=(l(29132),l(86810)),he=l(58817),ae=l(14889),me=l(77712),le=(l(90912),l(76898)),se=l(99433),A=l(40405),n=l(55915),J=l(37118);let C=V=class extends b.wq{constructor(H){super(H),this.geometry=null,this.type="clip"}writeGeometry(H,N,I,Z){if(Z.layer&&Z.layer.spatialReference&&!Z.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,n.Up)(H.spatialReference,Z.layer.spatialReference))return void(Z&&Z.messages&&Z.messages.push(new ae.Z("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:Z.layer.spatialReference,context:Z})));const _e=new J.Z;(0,n.Wt)(H,_e,Z.layer.spatialReference),N[I]=_e.toJSON(Z)}else N[I]=H.toJSON(Z);delete N[I].spatialReference}clone(){return new V({geometry:(0,he.d9)(this.geometry),type:this.type})}};(0,R._)([(0,me.Cb)({type:J.Z}),(0,A.B)()],C.prototype,"geometry",void 0),(0,R._)([(0,se.c)(["web-scene","portal-item"],"geometry")],C.prototype,"writeGeometry",null),(0,R._)([(0,me.Cb)({type:["clip","mask","replace"],nonNullable:!0}),(0,A.B)()],C.prototype,"type",void 0),C=V=(0,R._)([(0,le.j)("esri.layers.support.SceneModification")],C);const x=C},17926:(Re,ie,l)=>{var R,g,b;l.d(ie,{B:()=>g,P:()=>R}),(b=R||(R={}))[b.None=0]="None",b[b.Int16=1]="Int16",b[b.Int32=2]="Int32",function(b){b[b.Replace=0]="Replace",b[b.Outside=1]="Outside",b[b.Inside=2]="Inside",b[b.Finished=3]="Finished"}(g||(g={}))},14341:(Re,ie,l)=>{l.d(ie,{N:()=>ci});var R=l(15861),g=l(17626),b=l(91558),he=l(88879),ae=l(85931),me=l(27306),Se=l(46160),le=l(8314),se=l(63290),A=l(88159),n=l(62208),J=l(77029),V=l(10699),C=l(32917),x=l(50618),H=l(55713),N=l(16730),I=l(77712),_e=(l(90912),l(76898)),xe=l(30217),D=l(49966),Ie=l(28347),Pe=l(43703),re=l(84161),ce=l(28093),Ae=l(993),y=l(4794),v=l(55915),P=l(5548),u=l(65401),m=l(5437),O=l(66607),F=l(36630),E=l(72469),oe=l(10439),w=l(81808),de=l(46679),Q=l(39368),Ve=l(29505),De=(l(20383),l(14517)),Fe=l(72392),Qe=l(84682),He=l(38114),ke=l(1191),ue=l(67873),pe=l(2694),ye=l(61885),qe=l(44554);class ht extends ye.Z{constructor(o){super(),this._limit=o,this._all=new qe.f,this._active=new ze(this),this._pending=new Map,this._handle=this._all.on("change",e=>this._handleChanges(e))}destroy(){this._handle.remove()}get length(){return this._active.length}toArray(){return this._active.toArray()}find(o){return this._active.find(o)}forEach(o){this._active.forEach(o)}addMany(o){this._all.addMany(o)}removeManyByObjectId(o){this._all.removeManyByObjectId(o)}_handleChanges(o){let e=o.removed;if(this._pending.size>0){e=new Array;for(const r of o.removed)this._pending.delete(r.objectId)||e.push(r)}let t=this._limit-this._active.length+e.length;t{ve.sample()&&(e.push(r),this._pending.set(r.objectId,r))}),t=this._limit-this._active.length+e.length);let s=o.added;if(t0&&this._pending.size>0&&(ve.reset(i/this._pending.size),this._pending.forEach(r=>{ve.sample()&&(s.push(r),this._pending.delete(r.objectId))})),this._active.addAndRemove(s,e)}}const ve=new class U{constructor(){this._percentage=1,this._last=-1,this._index=0}reset(o){this._percentage=o,this._last=-1}sample(){const o=Math.floor(this._index*this._percentage);return++this._index,o!==this._last&&(this._last=o,!0)}};class ze{constructor(o){this._parent=o,this._map=new Map}get length(){return this._map.size}forEach(o){this._map.forEach(e=>o(e))}find(o){let e;return(0,A.oE)(this._map,t=>!!o(t)&&(e=t,!0)),e}toArray(){return[...this._map.values()]}addAndRemove(o,e){for(const t of o)this._map.set(t.objectId,t);for(const t of e)this._map.delete(t.objectId);(o.length>0||e.length>0)&&this._parent.emit("change",{added:o,removed:e})}removeMany(o){for(const e of o)this._map.delete(e.objectId);o.length>0&&this._parent.emit("change",{added:[],removed:o})}}var et=l(42743),tt=l(69852);let fe=class extends De.Z{constructor(a){super(a),this.loadedGraphics=new ht(5e4),this.slicePlaneEnabled=!1,this._renderingInfo={symbol:new tt.Z},this._handles=new Fe.Z,this._graphicsByNode=new Map}get updating(){return this._graphicsCore?.updating??!1}initialize(){const a=this.view.basemapTerrain;this._graphicsCore=new ke.w({owner:this,layer:this.layer,preferredUpdatePolicy:et.jq.ASYNC,elevationFeatureExpressionEnabled:!1,graphicSymbolSupported:!1,getRenderingInfoWithoutRenderer:!0,hasZ:!0,hasM:!1,componentFactories:{deconflictor:o=>this.view.deconflictor.addGraphicsOwner(o),labeler:(o,e)=>this.view.labeler.addGraphicsOwner(o,e,{emptySymbolLabelSupported:!0,elevationInfoOverride:{mode:"absolute-height",offset:0},disablePlacement:{logEntityDescription:"3D Object Scene Layer features"}}),scaleVisibility:(o,e)=>new ue.Z({graphicsCoreOwner:this,layer:this.layer,queryGraphicUIDsInExtent:e,graphicsCore:o,basemapTerrain:a,layerScaleEnabled:!1})}}),this._graphicsCore.initializePromise.then(()=>this._graphicsCore.startCreateGraphics()).catch(()=>{}),this._handles.add((0,C.YP)(()=>this.layer.labelingInfo,(o,e)=>{(0,Qe.Hg)(o,e)&&this._graphicsCore.updateLabelingInfo()}))}destroy(){this._handles=(0,n.SC)(this._handles),this._graphicsCore=(0,n.SC)(this._graphicsCore),this.loadedGraphics=(0,n.SC)(this.loadedGraphics),this.view=null}addNodeMeta(a,o){let e=0;const t=a.filteredIds,s=this.view.spatialReference,i=a.featureIds.map((r,d)=>{(0,pe.YF)(d,this.collection,a.objectHandle,ne);const h=(0,He.Tx)(0,0,0,s);this.view.renderCoordsHelper.fromRenderCoords(ne,h);const c=o(d,a);let p=!1;return(0,n.Wi)(t)?p=!0:e[e.geometryBuffer]},o,{hasInitialize:!0})}setModifications(o,e,t,s){const i={context:o,modifications:Et(e,t,s),isGeodetic:s.isGeographic};this.broadcast(i,"setModifications")}setLegacySchema(o,e){const t=JSON.stringify(e);this.broadcast({context:o,jsonSchema:t},"setLegacySchema")}destroyContext(o){return this.broadcast(o,"destroyContext")}}const _=new J.Z({deallocator:null}),Be=[0,0,0];function Et(a,o,e){_.clear();let t=1/0,s=1/0,i=-1/0,r=-1/0,d=!1;for(const c of o){const p="clip"===c.type?we.B.Inside:"mask"===c.type?we.B.Outside:we.B.Replace,f=(0,n.s3)(c.geometry,"modification.geometry");let M=T=>T;if(f.spatialReference){if(!(0,v.Up)(f.spatialReference,e)){se.Z.getLogger("esri.views.3d.layers.I3SMeshWorkerHandle").warn("Can't project modification polygon into layer spatial reference, ignoring modification");continue}M=T=>((0,v.SH)(T,f.spatialReference,Be,e),Be)}else f.hasZ||(Be[2]=0,M=T=>(Be[0]=T[0],Be[1]=T[1],Be));d=d||p===we.B.Outside,_.push(p),_.push(f.rings.length);for(const T of f.rings){_.push(T.length);for(const B of T){const G=M(B);_.push(G[0]),_.push(G[1]),_.push(G[2]),t=Math.min(t,G[0]),s=Math.min(s,G[1]),i=Math.max(i,G[0]),r=Math.max(r,G[1])}}}(0,n.pC)(a)&&(d?(_.push(we.B.Inside),_.push(2),_.push(4),_.push(t-1e-4),_.push(s-1e-4),_.push(0),_.push(i+1e-4),_.push(s-1e-4),_.push(0),_.push(i+1e-4),_.push(r+1e-4),_.push(0),_.push(t-1e-4),_.push(r+1e-4),_.push(0),_.push(4),_.push(a[0]),_.push(a[1]),_.push(0),_.push(a[2]),_.push(a[1]),_.push(0),_.push(a[2]),_.push(a[3]),_.push(0),_.push(a[0]),_.push(a[3]),_.push(0)):(_.push(we.B.Outside),_.push(1),_.push(4),_.push(a[0]),_.push(a[1]),_.push(0),_.push(a[2]),_.push(a[1]),_.push(0),_.push(a[2]),_.push(a[3]),_.push(0),_.push(a[0]),_.push(a[3]),_.push(0))),_.push(we.B.Finished);const h=new Float64Array(_.length);for(let c=0;c<_.length;++c)h[c]=_.getItemAt(c);return h}var W=l(52836),it=l(30375),Mt=l(67225),Oe=l(81937);class Gt{constructor(){this.ids=new Set,this.paused=!1}}class zt{constructor({collection:o,forAllFeatures:e,forAllFeaturesOfNode:t}){this._highlights=[],this._collection=o,this._forAllFeatures=e,this._forAllFeaturesOfNode=t}destroy(){this._highlights.forEach(o=>this._releaseSet(o)),this._highlights=null}acquireSet(){const o=new Gt;return this._highlights.push(o),{set:o,handle:{remove:()=>{this._releaseSet(o),(0,ae.e$)(this._highlights,o)},pause:()=>{this._releaseSet(o),o.paused=!0},resume:()=>{o.paused=!1,this._initializeSet(o)}}}}setFeatureIds(o,e){e.forEach(t=>o.ids.add(t)),this._initializeSet(o)}_initializeSet(o){this._forAllFeatures((e,t,s)=>(o.ids.has(e)&&this._collection.addComponentHighlight(s.objectHandle,t),W.K.CONTINUE))}_releaseSet(o){this._forAllFeatures((e,t,s)=>(o.ids.has(e)&&this._collection.removeComponentHighlight(s.objectHandle,t),W.K.CONTINUE))}objectCreated(o){this._highlights.forEach(e=>{e.paused||this._forAllFeaturesOfNode(o,(t,s)=>(e.ids.has(t)&&this._collection.addComponentHighlight(o.objectHandle,s),W.K.CONTINUE))})}objectDeleted(o){this._collection.clearHighlights(o.objectHandle)}}var Wt=l(51541),Zt=l(87091);let st=class extends De.Z{constructor(a,o,e){super({}),this._updateExtent=o,this._updateNode=e,this.running=!1,this._extentSet=new Wt.D,this._nodeSet=new Set,this.addHandles(a.registerTask(Zt.T8.ELEVATION_ALIGNMENT,this))}normalizeCtorArgs(){return{}}addExtent(a){this._extentSet.add(a),this.running=!0}schedule(a){this._nodeSet.add(a),this.running=!0}remove(a){this._nodeSet.delete(a),this._updateRunning()}runTask(a){const o=this._extentSet;for(a.run(()=>o.merge(a));!o.empty&&!a.done;){const t=this._updateExtent(o.pop());if((0,n.Wi)(t))return;t.forAll(s=>this.schedule(s)),a.madeProgress()}if(a.done)return;const e=this._nodeSet;for(const t of e)if(e.delete(t),this._updateNode(t),a.madeProgress(),a.done)break;this._updateRunning()}_updateRunning(){this.running=this._nodeSet.size>0||this._extentSet.size>0}};(0,g._)([(0,I.Cb)()],st.prototype,"running",void 0),st=(0,g._)([(0,_e.j)("esri.views.3d.layers.i3s.I3SAsyncElevationUpdater.ts")],st);var rt=l(73683);class Kt{constructor(){this.lodCrossfadeSignedDuration=0}}class Yt{constructor(o){this._view=o,this._preRenderFrameTaskHandle=null,this._currentFrameStartTime=null,this._numFadingNodes=0}get updating(){return this._numFadingNodes>0}stopNodeFading(o){null!=o.lodCrossfadeProgress&&(this._numFadingNodes--,o.lodCrossfadeProgress=null,0===this._numFadingNodes&&(null!=this._preRenderFrameTaskHandle&&(this._preRenderFrameTaskHandle=(0,n.hw)(this._preRenderFrameTaskHandle)),this._view.notifyLODUpdate(),this._view.notifyUpdate()))}_startNodeFading(o,e,t){0===this._numFadingNodes&&(this._preRenderFrameTaskHandle=(0,x.A)({preRender:s=>this._updateAllNodeFading(s)}),this._view.notifyLODUpdate()),null==o.lodCrossfadeProgress&&(this._numFadingNodes++,this._view.notifyUpdate()),o.lodCrossfadeSignedDuration=t,o.lodCrossfadeProgress=e}_updateAllNodeFading(o){const e=this._view.nodeCrossfadingEnabled;this._view.foreachCrossfadeNode((t,s)=>{if((0,n.pC)(s)&&(0,n.pC)(s.lodCrossfadeProgress)){const i=s.lodCrossfadeSignedDuration,r=i>0?this._view.fullOpacity:0,h=s.lodCrossfadeProgress+Math.abs(o.deltaTime/i),c=!e||h>=1||0===i,p=r-(c?0:i>0?1:-1)*(1-h);c?(this.stopNodeFading(s),i<0&&this._view.markNodeToRemove(t)):s.lodCrossfadeProgress=h,this._view.setNodeOpacityByIndex(t,p)}}),this._view.removeMarkedNodes()}stopAllNodeFading(){this._view.foreachCrossfadeNode((o,e)=>{if((0,n.pC)(e)&&(0,n.pC)(e.lodCrossfadeProgress)){this.stopNodeFading(e);const t=e.lodCrossfadeSignedDuration;t<0&&this._view.markNodeToRemove(o),this._view.setNodeOpacityByIndex(o,t>0?this._view.fullOpacity:0)}}),this._view.removeMarkedNodes()}fadeNode(o,e,t,s){null==this._currentFrameStartTime&&(this._currentFrameStartTime=Date.now());const i=this._view,r=i.nodeCrossfadingEnabled,d=t===rt.B.FadeIn?i.fullOpacity:0,h=r?s?t===rt.B.FadeIn?i.lodCrossfadeinDuration:i.lodCrossfadeoutDuration:i.lodCrossfadeUncoveredDuration:0,c=this._view.getNodeOpacityByIndex(o);if(r&&c!==d&&h>0){const p=1-Math.abs(d-c);this._startNodeFading(e,p,function $t(a){return a===rt.B.FadeIn?1:-1}(t)*h)}else this.stopNodeFading(e),this._view.setNodeOpacityByIndex(o,d),t===rt.B.FadeOut&&this._view.removeNode(o)}isNodeFullyFadedIn(o){const e=this._view.getNodeCrossfadeMetaData(o);return(0,n.Wi)(e)||null==e.lodCrossfadeProgress&&this._view.getNodeOpacityByIndex(o)===this._view.fullOpacity}}var Ot=l(62483),ct=l(67857);const Ue=(0,u.cS)(),We=(0,Pe.c)(),k=(0,ce.c)(),ut=(0,ce.c)(),pt=(0,ce.c)();let je=class extends(ye.Z.EventedMixin(De.Z)){constructor(a){super(a),this._tmpEvent={spatialReference:null,extent:Ue,context:"scene"}}get spatialReference(){return this.view?.elevationProvider?.spatialReference}initialize(){this.view=this.layerView.view,this._renderCoordsHelper=this.view.renderCoordsHelper,this._intersector=(0,Ot.Z8)(this.view.state.viewingMode),this._intersector.options.store=ct.eC.MIN;const a=this.layerView.i3slayer.fullExtent;(0,n.Wi)(a)?se.Z.getLogger(this.declaredClass).error("I3SElevationProvider expected fullExtent on I3SLayer."):(this._zmin=a.zmin,this._zmax=a.zmax),this._tmpEvent.context=this.intersectionHandler.isGround?"ground":"scene"}getElevation(a,o,e,t){if(k[0]=a,k[1]=o,k[2]=e,!this._renderCoordsHelper.toRenderCoords(k,t,k))return se.Z.getLogger(this.declaredClass).error("could not project point to compute elevation"),null;const s=this.layerView.elevationOffset,i=this._zmin+s;return this._renderCoordsHelper.setAltitude(ut,this._zmax+s,k),this._renderCoordsHelper.setAltitude(pt,i,k),this._intersector.reset(ut,pt,null),this.intersectionHandler.intersect(this._intersector,null,ut,pt),this._intersector.results.min.getIntersectionPoint(k)?this._renderCoordsHelper.getAltitude(k):null}layerChanged(){this.spatialReference&&(this._tmpEvent.extent=this._computeLayerExtent(),this._tmpEvent.spatialReference=this.spatialReference,this.emit("elevation-change",this._tmpEvent))}objectChanged(a){this.spatialReference&&(this._tmpEvent.extent=this._computeObjectExtent(a),this._tmpEvent.spatialReference=this.spatialReference,this.emit("elevation-change",this._tmpEvent))}_computeObjectExtent(a){return(0,u.cS)(Ue),this._expandExtent(a,Ue),Ue}_computeLayerExtent(){(0,u.cS)(Ue);for(const a of this.layerView.getVisibleNodes())this._expandExtent(a,Ue);return Ue}_expandExtent(a,o){const e=this.spatialReference;if((0,n.Wi)(e))return;const t=this.layerView.getNodeComponentObb(a);if(!(0,n.Wi)(t)){(0,Ie.D)(We,t.quaternion),We[12]=t.center[0],We[13]=t.center[1],We[14]=t.center[2];for(let s=0;s<8;++s)k[0]=1&s?t.halfSize[0]:-t.halfSize[0],k[1]=2&s?t.halfSize[1]:-t.halfSize[1],k[2]=4&s?t.halfSize[2]:-t.halfSize[2],(0,re.m)(k,k,We),this._renderCoordsHelper.fromRenderCoords(k,k,e),(0,u.jn)(o,k,o)}}};(0,g._)([(0,I.Cb)({constructOnly:!0})],je.prototype,"layerView",void 0),(0,g._)([(0,I.Cb)({constructOnly:!0})],je.prototype,"intersectionHandler",void 0),(0,g._)([(0,I.Cb)()],je.prototype,"view",void 0),(0,g._)([(0,I.Cb)()],je.prototype,"spatialReference",null),je=(0,g._)([(0,_e.j)("esri.views.3d.layers.i3s.I3SElevationProvider")],je);const Jt=je;var Xt=l(59617),j=l(42964),Ze=l(93394),Qt=l(40841);class kt{constructor(o){this.type=ct.q7.I3S,this._needVerticalOffset=!1,this.layerUid=o.layerUid,this._sublayerUid=o.sublayerUid,this._collection=o.collection,this._traverseNodeHierarchy=o.traverseNodeHierarchy,this.slicePlaneEnabled=o.slicePlaneEnabled,this.isGround=o.isGround}updateElevationAlignState(o,e){this._needVerticalOffset=o&&e===Xt.JY.Global}intersect(o,e,t,s){const i=o.results,r=o.options.store===ct.eC.ALL,d=o.ray.direction,h=o.tolerance;let c=M=>M,p=M=>M;const f=(0,Qt.iO)((0,n.pC)(o.verticalOffset)?o.verticalOffset:this._needVerticalOffset?0:null);(0,n.pC)(o.verticalOffset)&&(0,n.pC)(f)&&(c=M=>f.applyToMbs(M),p=M=>f.applyToObb(M)),this._traverseNodeHierarchy((M,T)=>{if(0===M.childrenLoaded)return!1;const B=(0,n.pC)(M.serviceObbInRenderSR)&&(0,j.vH)(M.serviceObbInRenderSR)?M.serviceObbInRenderSR:null;return!((0,n.pC)(B)&&!(0,Ze.fn)(p(B),t,d,h)||(T&&((0,n.pC)(B)||!(0,j.c$)(M.renderMbs)||function qt(a,o,e,t=0){const s=a[3]+t,i=o[0]-a[0],r=o[1]-a[1],d=o[2]-a[2],h=e[0],c=e[1],p=e[2],f=h*i+c*r+p*d;return f*f-(h*h+c*c+p*p)*(i*i+r*r+d*d-s*s)>=0}(c(M.renderMbs),t,d,h))&&((0,n.Wi)(M.geometryObb)||(0,Ze.fn)(p(M.geometryObb),t,d,h))&&this._collection.intersect(T,t,s,h,f,(G,z,$,ee)=>{if(z>=0){if(null!=e&&!e(t,s,z))return;const L=S=>{S.set(this.type,{layerUid:this.layerUid,sublayerUid:this._sublayerUid,nodeIndex:M.index,componentIndex:G,triangleNr:ee},z,$)};if(this.isGround&&(null==i.ground.dist||zi.max.dist)&&L(i.max),r){const S=(0,Ot.LP)(o.ray);L(S),o.results.all.push(S)}}}),0))})}}var Ke=l(42767),ft=l(52565),ei=l(86152),gt=l(5590),ti=l(26584);class si{constructor(o,e,t=14){this._version=t,this._db=null,this._quotaReductionPromise=null,this._gcCounter=0,this._hit=0,this._miss=0,this._destroyed=!1,this.gcFrequency=50,this.maxByteSize=me.Y8.GIGABYTES,this.quotaReductionFactor=.2,this._dbName=o,this._storeName=e}init(){return Promise.resolve().then(()=>{const o=indexedDB.open(this._dbName,this._version);return o.onupgradeneeded=e=>{const t=o.result,s=o.transaction,i=t.objectStoreNames.contains(this._storeName)?s.objectStore(this._storeName):t.createObjectStore(this._storeName),r=t.objectStoreNames.contains("last_access")?s.objectStore("last_access"):t.createObjectStore("last_access");r.indexNames.contains("date")||r.createIndex("date","date",{unique:!1}),r.indexNames.contains("byteSize")||r.createIndex("byteSize","byteSize",{unique:!1}),e.oldVersion{this._destroyed?o.close():this._db=o})}destroy(){this._db&&(this._db.close(),this._db=null),this._destroyed=!0}get initialized(){return null!=this._db}getHitRate(){return this._hit/(this._hit+this._miss)}put(o,e){return null==this._db?Promise.reject(new ti.Z("indexedb:not-initialized","IndexedDB Cache is not initialized")):(null!=this._quotaReductionPromise?this._quotaReductionPromise:Promise.resolve()).then(()=>this._put(o,e)).catch(t=>{if(t&&"QuotaExceededError"===t.name)return null==this._quotaReductionPromise&&(this._quotaReductionPromise=this._getCacheSize().then(s=>this._removeLeastRecentlyAccessed(e.byteSize+Math.ceil(s*this.quotaReductionFactor))),this._quotaReductionPromise.then(()=>this._quotaReductionPromise=null,()=>this._quotaReductionPromise=null)),this._quotaReductionPromise.then(()=>this._put(o,e));throw t}).then(()=>{this._gcCounter--,this._gcCounter<0&&null!=this._db&&(this._gcCounter=this.gcFrequency,this._getCacheSize().then(t=>this._removeLeastRecentlyAccessed(t-this.maxByteSize)))})}get(o,e){const t=this._db;if(null==t)return Promise.resolve(void 0);let s=null;return Promise.resolve().then(()=>{const i=t.transaction(this._storeName,"readonly");return s=(0,V.fu)(e,()=>{i.abort()}),Ge(i.objectStore(this._storeName).get(o))}).then(i=>(null==i?++this._miss:this._db&&(++this._hit,this._db.transaction("last_access","readwrite").objectStore("last_access").put({date:Date.now(),byteSize:i.byteSize},o)),(0,n.pC)(s)&&s.remove(),i)).catch(()=>{++this._miss,(0,V.k_)(e),(0,n.pC)(s)&&s.remove()})}remove(o){var e=this;const t=this._db;return null==t?Promise.resolve():Promise.resolve().then((0,R.Z)(function*(){const s=t.transaction([e._storeName,"last_access"],"readwrite"),i=s.objectStore(e._storeName),r=s.objectStore("last_access"),d=i.delete(o),h=r.delete(o);yield Promise.all([Ge(d),Ge(h),ot(s)])}))}_put(o,e){const t=this._db;if(null==t)return Promise.resolve();const s=t.transaction([this._storeName,"last_access"],"readwrite"),i=s.objectStore(this._storeName),r=s.objectStore("last_access"),d=i.put(e,o),h=r.put({date:Date.now(),byteSize:e.byteSize},o);return Promise.all([Ge(d),Ge(h),ot(s)])}_removeLeastRecentlyAccessed(o){if(o<=0||!this._db)return Promise.resolve();const e=this._db.transaction([this._storeName,"last_access"],"readwrite"),t=e.objectStore(this._storeName),s=e.objectStore("last_access");let i=0;const r=s.index("date").openCursor(null,"next");return r.onsuccess=()=>{const d=r.result;null!=d&&(null!=d.value.byteSize&&(i+=d.value.byteSize),t.delete(d.primaryKey),s.delete(d.primaryKey),i{const r=i.result;if(!r)return;const d=r.key;null!=d&&(s+=d),r.continue()},ot(e).then(()=>s)}}function ot(a){return new Promise((o,e)=>{a.oncomplete=()=>o(),a.onerror=()=>e(a.error),a.onabort=()=>e(a.error)})}function Ge(a){return new Promise((o,e)=>{"done"===a.readyState?null!=a.error?e(a.error):o(a.result):(a.onsuccess=()=>o(a.result),a.onerror=()=>e(a.error))})}class ri{constructor(){this._data=new Map,this._miss=0,this._hit=0,this.initialized=!0}init(){return Promise.resolve()}get(o,e){var t=this;return(0,R.Z)(function*(){if(t._data.has(o))return t._hit++,t._data.get(o)??void 0;t._miss++})()}destroy(){}put(o,e){return this._data.set(o,e),Promise.resolve()}remove(o){return this._data.delete(o),Promise.resolve()}getHitRate(){return this._hit/(this._hit+this._miss)}}var mt=l(97445),yt=l(9044),Ye=l(93605),St=l(55745),oi=l(41632),ni=l(4511),_t=l(24225),ai=l(27355),nt=l(36603),xt=l(13756),at=l(17803);const Pt="esri.views.3d.layers.I3SMeshView3D",Ce=se.Z.getLogger(Pt),Nt=[1,1,1,1];class li extends Kt{constructor(o,e,t,s,i,r,d){super(),this.node=o,this.featureIds=e,this.objectHandle=t,this.cachedRendererVersion=s,this.attributeInfo=i,this.material=r,this.textures=d,this.cachedMidsTerrainSR=null,this.cachedEdgeMaterials=new Array,this.edgeMemoryUsage=0,this.cachedSymbology=null}}var Le,a;(a=Le||(Le={}))[a.CastShadows=4]="CastShadows",a[a.Pickable=5]="Pickable";const hi=100*me.Y8.MEGABYTES,ci=a=>{let o=class extends a{constructor(...e){super(e),this._elevationProvider=null,this._intersectionHandler=null,this._nodeId2Meta=new Map,this._nodeId2MetaReloading=new Map,this._i3sWasmLoaded=!1,this._snappingSourcesTrackers=[],this._hasLoadedPBRTextures=!1,this._asyncModuleLoading=0,this._addTasks=new Map,this._rendererVersion=0,this._colorVariable=null,this._opacityVariable=null,this._rendererFields=null,this._symbologyFields=null,this._symbologyOverride=null,this._symbologyOverrideFields=null,this._symbolInfos=new Map,this._idbCache=(0,le.Z)("enable-feature:idb-mock-cache")?new ri:new si("esri-scenelayer-cache","geometries"),this.holeFilling="auto",this._hasColors=!1,this._hasTextures=!1,this._hasData=!1,this.slicePlaneEnabled=!1,this._modifications=new Array,this._layerUrl="",this._cacheKeySuffix=null,this._elevationTask=null,this._filters=[],this._arcade=null,this._tmpAttributeOnlyGraphic=new he.Z(null,null,{}),this._crossfadeHelper=new Yt(this)}get lodCrossfadeoutDuration(){return 0}get lodCrossfadeinDuration(){return 0}get lodCrossfadeUncoveredDuration(){return 0}get layerUid(){return this.i3slayer&&this.i3slayer.uid}get sublayerUid(){return null}get layerId(){return this.i3slayer&&this.i3slayer.id}get sublayerId(){return null}get updatingProgressValue(){return this._controller?.updatingProgress??0}get hasTexturesOrVertexColors(){return this._hasData?this._hasTextures||this._hasColors?"yes":"probably-not":"unknown"}get rendererTextureUsage(){return(0,j.a7)(this._currentRenderer)?this._usePBR()||this._hasLoadedPBRTextures?Oe.v.AllTexturesPBR:Oe.v.AllTextures:this._usePBR()||this._hasLoadedPBRTextures?Oe.v.GeometryTexturesPBR:Oe.v.GeometryTextures}get elevationOffset(){const e=null!=this.i3slayer?this.i3slayer.elevationInfo:null;if(null!=e&&"absolute-height"===e.mode){const t=(0,N._R)(this.i3slayer.spatialReference),s=(0,Ve.Z7)(e.unit);return(0,n.Pt)(e.offset,0)*s/t}return 0}get elevationInfo(){const e=null!=this.i3slayer?this.i3slayer.elevationInfo:null;if(null==e)return{mode:q.Absolute,offset:0};const t=(0,N._R)(this.i3slayer.spatialReference),s=(0,Ve.Z7)(e.unit),i=(0,n.Pt)(e.offset,0)*s/t;switch(e.mode){case"absolute-height":return{mode:q.Absolute,offset:i};case"relative-to-ground":return{mode:q.RelativeToGround,offset:i};case"on-the-ground":return{mode:q.OnTheGround,offset:0};default:return{mode:q.Absolute,offset:0}}}get supportedTextureEncodings(){return(0,Ke.K0)(this.view._stage.renderView.capabilities)}get uncompressedTextureDownsamplingEnabled(){const e=this.view?.qualitySettings.sceneService.uncompressedTextureDownsamplingEnabled;return e&&0==(this.supportedTextureEncodings&Oe.j.DDS_S3TC)}initialize(){this._preLoadBasis(),this.addResolvingPromise(this.i3slayer.indexInfo);const e=this.view.resourceController;if(this.i3sOverrides=new ei.v({view:this.view,layer:this.i3slayer,memoryController:e.memoryController}),this._worker=new Bt(r=>e.schedule(r)),this.addResolvingPromise(this._worker.promise),this._worker.setLegacySchema(this.layerUid,this.i3slayer.store.defaultGeometrySchema),(0,j.p8)(this.i3slayer),(0,j.gn)(this.i3slayer,this.view),this._layerUrl=this.i3slayer.parsedUrl.path,this._controller=new O.Z({layerView:this}),this._gpuMemoryEstimate=0,this._texMemoryEstimate=0,this._geoMemoryEstimate=0,this._stage=this.view._stage,this._collection=this._stage.renderView.componentObjectCollection,this._highlights=new zt({collection:this._collection,forAllFeatures:r=>this._forAllFeatures(r,null,W.u.ALL),forAllFeaturesOfNode:(r,d)=>this._forAllFeaturesOfNode(r,d)}),this._isIntegratedMesh||!this.i3slayer.store.defaultGeometrySchema)this._hasComponentData=!1;else{const r=this.i3slayer.store.defaultGeometrySchema.featureAttributes;this._hasComponentData=!!(r&&r.faceRange&&r.id)}this._hasVertexColors=null!=this.i3slayer.store.defaultGeometrySchema.vertexAttributes.color&&(null==this.i3slayer.cachedDrawingInfo||!this.i3slayer.cachedDrawingInfo.color),this._isIntegratedMesh||(this._edgeView=this._stage.renderView.ensureEdgeView());const t=this.view.resourceController.memoryController.newCache(this.i3slayer.uid,r=>this._deleteComponentObject(r));this._memCache=t,this._intersectionHandler=new kt({layerUid:this.layerUid,sublayerUid:this.sublayerUid,collection:this._collection,slicePlaneEnabled:this.slicePlaneEnabled,isGround:this._isIntegratedMesh,traverseNodeHierarchy:r=>(0,n.pC)(this._controller.index)&&(0,n.pC)(this._controller.index.rootNode)?this._controller.index.traverse(this._controller.index.rootNode,d=>{const h=d.index,c=this._nodeId2Meta.get(h)||this._nodeId2MetaReloading.get(h);return r(d,(0,n.pC)(c)?c.objectHandle:null)}):()=>{}}),this._elevationProvider=new Jt({layerView:this,intersectionHandler:this._intersectionHandler}),this._hasLoadedPBRTextures=this._usePBR(),this.updatingHandles.add(()=>this.view.clippingArea,()=>this._clippingAreaChanged(),C.nn),this.updatingHandles.add(()=>this.fullOpacity,r=>this._opacityChange(r)),this.updatingHandles.add(()=>this.slicePlaneEnabled,r=>this._slicePlaneEnabledChange(r)),this.updatingHandles.add(()=>this.elevationOffset,(r,d)=>{this._reloadAll(d),this._controller.invalidateVisibilityObbs()}),this.updatingHandles.add(()=>this.elevationInfo,(r,d)=>this._elevationInfoChanged(r,d),C.nn),this.updatingHandles.add(()=>!this.suspended&&this.elevationInfo.mode!==q.Absolute,(r,d)=>{r?this.handles.add(this.view.basemapTerrain.on("elevation-change",({extent:h})=>this._ensureElevationTask().addExtent(h)),jt):d&&this.handles.remove(jt)},C.nn),this.updatingHandles.add(()=>this.view.qualitySettings.physicallyBasedRenderingEnabled,()=>this._updatePBR());const i=()=>{this._reloadAll(),this.clearMemCache()};this.updatingHandles.add(()=>this.rendererTextureUsage,i),this.updatingHandles.add(()=>this.uncompressedTextureDownsamplingEnabled,i),this.updatingHandles.add(()=>this.suspended,r=>this._suspendedChange(r),C.nn),this.updatingHandles.add(()=>this.i3slayer.labelsVisible,()=>this._labelingChanged(),C.nn),this.updatingHandles.add(()=>this.i3slayer.labelingInfo,()=>this._labelingChanged(),C.nn),this.updatingHandles.add(()=>this._modifications,()=>this._modificationsChanged(),C.nn),this.handles.add([(0,C.YP)(()=>Ye.Z.I3S_TREE_SHOW_TILES,r=>{if(r&&!this._treeDebugger){const d=this._controller.crsIndex;Promise.all([l.e(8592),l.e(3109)]).then(l.bind(l,3109)).then(({I3STreeDebugger:h})=>{!this._treeDebugger&&Ye.Z.I3S_TREE_SHOW_TILES&&(this._treeDebugger=new h({lv:this,view:this.view,nodeSR:d}))})}else r||Ye.Z.I3S_TREE_SHOW_TILES||(this._treeDebugger=(0,n.SC)(this._treeDebugger))},C.nn),(0,C.YP)(()=>Ye.Z.I3S_SHOW_MODIFICATIONS,()=>this._showModifications(),C.nn)]),this._cacheKeySuffix=(0,j.ei)(this.i3slayer.spatialReference,this.view.renderSpatialReference),this._idbCache.init().catch(r=>Ce.warn(`Failed to initialize IndexedDB cache: ${r}`))}destroy(){this._clearAddTasks(),this._elevationTask=(0,n.SC)(this._elevationTask),this.i3sOverrides=(0,n.SC)(this.i3sOverrides),this._elevationProvider&&(this._elevationProvider.layerChanged(),this.view.elevationProvider.unregister(this._elevationProvider),this._elevationProvider=null),this._intersectionHandler&&(this._stage.sceneIntersectionHelper.removeIntersectionHandler(this._intersectionHandler),this._intersectionHandler=null);const e=this._worker;e&&(e.destroyContext(this.i3slayer.uid).then(()=>e.destroy()),this._worker=null),this._removeAllNodeDataFromStage(),this._memCache=(0,n.SC)(this._memCache),this._collection=null,this._stage=null,this._edgeView=null,this._labeler=(0,n.SC)(this._labeler),this._treeDebugger=(0,n.SC)(this._treeDebugger),this._controller=(0,n.SC)(this._controller),this._highlights.destroy(),this._nodeId2Meta.clear(),this._nodeId2MetaReloading.clear(),this.emit("visible-geometry-changed"),this._visibleGeometryChangedSchedulerHandle&&(this._visibleGeometryChangedSchedulerHandle.remove(),this._visibleGeometryChangedSchedulerHandle=null)}_memEstimateTextureAdded(e){const t=e.estimatedTexMemRequired;return this._gpuMemoryEstimate+=t,this._texMemoryEstimate+=t,t}_memEstimateTextureRemoved(e){if((0,n.pC)(e)){const t=e.estimatedTexMemRequired;this._gpuMemoryEstimate-=t,this._texMemoryEstimate-=t}}_memEstimateGeometryAdded(e){const t=this._collection.getObjectGPUMemoryUsage(e);return this._gpuMemoryEstimate+=t,this._geoMemoryEstimate+=t,t}_memEstimateGeometryRemoved(e){const t=this._collection.getObjectGPUMemoryUsage(e);this._gpuMemoryEstimate-=t,this._geoMemoryEstimate-=t}isNodeLoaded(e){return this._nodeId2Meta.has(e)}isNodeReloading(e){return this._nodeId2MetaReloading.has(e)}getUsedMemory(){let e=(0,n.pC)(this._labeler)?this._labeler.usedMemory:0;return this._nodeId2Meta.forEach(t=>e+=(0,n.pC)(t)?t.node.memory:0),this._nodeId2MetaReloading.forEach(t=>e+=(0,n.pC)(t)?t.node.memory:0),e}getUnloadedMemory(){return((0,n.pC)(this._controller)?this._controller.unloadedMemoryEstimate:0)+((0,n.pC)(this._labeler)?this._labeler.unloadedMemoryEstimate:0)}ignoresMemoryFactor(){return!1}_labelingChanged(){if(!(0,E.C6)(this.i3slayer)||!this._supportsLabeling)return void((0,n.pC)(this._labeler)&&(this._labeler.destroy(),this._labeler=null));if((0,n.pC)(this._labeler))return;const e=new Ee({view:this.view,layer:this.i3slayer,collection:this._collection});this._nodeId2Meta.forEach(t=>(0,n.pC)(t)&&this._addMetaToLabeler(e,t)),this._labeler=e}_loadAsyncModule(e){return++this._asyncModuleLoading,e.then(t=>(--this._asyncModuleLoading,t),t=>{throw--this._asyncModuleLoading,t})}_modificationsChanged(){if(!this._i3sWasmLoaded&&this.hasModifications)return this._i3sWasmLoaded=(0,it.initialize)().then(()=>{this._i3sWasmLoaded=!0,this._modificationsChanged(),this.notifyUpdate()}),void this.notifyUpdate();if(!0!==this._i3sWasmLoaded)return;const e=this.i3slayer.uid,t=this.i3slayer.spatialReference;this._worker.setModifications(e,this._layerClippingArea,this._modifications,t);const s=Et(this._layerClippingArea,this._modifications,t);(0,it.setModificationsSync)({context:e,modifications:s,isGeodetic:t.isGeographic}),this._controller.modificationsChanged();const i=this.hasModifications?new J.Z:null;this._nodeId2Meta.forEach((r,d)=>{(0,n.Wi)(r)?(this._nodeId2Meta.delete(d),this._controller.updateLoadStatus(d,!1)):r.node.hasModifications?(this._nodeId2Meta.delete(d),this._nodeId2MetaReloading.set(d,r)):(0,n.pC)(i)&&i.push(r.node)}),(0,n.pC)(i)&&this._nodeId2MetaReloading.forEach(r=>i.push(r.node)),(0,n.pC)(i)&&i.length>0&&(this.updateNodeModificationStatus(i),i.forAll(r=>{if(r.imModificationImpact!==ft.O4.Culled){const d=this._nodeId2Meta.get(r.index);this._controller.invalidateGeometryVisibility(r.index),(0,n.pC)(d)?(this._nodeId2Meta.delete(r.index),this._nodeId2MetaReloading.set(r.index,d)):this._nodeId2Meta.has(r.index)&&(this._nodeId2Meta.delete(r.index),this._controller.updateLoadStatus(r.index,!1))}})),this.clearMemCache(),this._controller.restartNodeLoading(),this._showModifications()}_showModifications(){if((0,n.pC)(this._modificationGraphics)&&(this.view.graphics.removeMany(this._modificationGraphics),this._modificationGraphics=null),!Ye.Z.I3S_SHOW_MODIFICATIONS||0===this._modifications.length)return;const e={clip:[227,227,79,.8],mask:[227,139,79,.8],replace:[139,227,79,.8]},t={type:"simple-fill",outline:{color:[255,255,255],width:1}};this._modificationGraphics=new Array;for(const s of this._modifications){s.geometry.spatialReference=this.i3slayer.spatialReference;const i={...t,color:e[s.type]};this._modificationGraphics.push(new he.Z({geometry:s.geometry,symbol:i}))}this.view.graphics.addMany(this._modificationGraphics)}_addMetaToLabeler(e,t){e.addNodeMeta(t,(s,i)=>this._createAttributes(s,i))}_suspendedChange(e){e?(this._removeAllNodeDataFromStage(),this.view.elevationProvider&&this.view.elevationProvider.unregister(this._elevationProvider),this._stage.sceneIntersectionHelper.removeIntersectionHandler(this._intersectionHandler)):(this.view.elevationProvider.register(this._elevationContext,this._elevationProvider),this._stage.sceneIntersectionHelper.addIntersectionHandler(this._intersectionHandler))}getLoadedAttributes(e){const t=this._nodeId2Meta.get(e);if((0,n.pC)(t)&&(0,n.pC)(t.attributeInfo))return t.attributeInfo.loadedAttributes}getAttributeData(e){const t=this._nodeId2Meta.get(e);if((0,n.pC)(t)&&(0,n.pC)(t.attributeInfo))return t.attributeInfo.attributeData}setAttributeData(e,t){const s=this._nodeId2Meta.get(e);(0,n.pC)(s)&&(0,n.pC)(s.attributeInfo)&&(s.attributeInfo.attributeData=t,this._attributeValuesChanged(s))}updateAttributes(e,t,s){var i=this;return(0,R.Z)(function*(){const r=i._nodeId2Meta.get(e);(0,n.pC)(r)&&(yield i.i3sOverrides.apply(r.featureIds,t,s),r.attributeInfo=t,i._controller.reschedule(()=>i._attributeValuesChanged(r),s).catch(d=>{(0,V.D_)(d)||Ce.warn("Error while updating attribute values. Layer might not display correctly.",d)}))})()}_attributeValuesChanged(e){e.cachedRendererVersion=this._getInvalidRendererVersion(),e.filteredIds=null,(0,n.pC)(this._labeler)&&this._labeler.setNodeMetaAttributes(e,(t,s)=>this._createAttributes(t,s)),this._updateEngineObject(e)}clearMemCache(){(0,n.pC)(this._memCache)&&this._memCache.clear()}getVisibleNodes(){const e=new Array;return this._nodeId2Meta.forEach(t=>(0,n.pC)(t)&&e.push(t.node)),e}getNodeComponentObb(e){const t=this._nodeId2Meta.get(e.index)??this._nodeId2MetaReloading.get(e.index);return(0,n.pC)(t)?this._collection.getComponentObb(t.objectHandle):null}getLoadedNodeIndices(e){this._nodeId2Meta.forEach((t,s)=>e.push(s)),this._nodeId2MetaReloading.forEach((t,s)=>e.push(s))}_preLoadBasis(){!(0,le.Z)("disable-feature:i3s-basis")&&0!=(this.supportedTextureEncodings&Oe.j.Basis)&&(0,n.yw)(this.i3slayer.textureSetDefinitions,e=>e.some(t=>t.formats.some(s=>"basis"===s.format||"ktx2"===s.format)))&&(0,xt.$8)()}_getVertexBufferLayout(e,t){const s={hasTexture:Dt(e.params.material),hasNormals:t.normal,hasRegions:t.uvRegion};return(0,ni.K)((0,ai.N)(this._getGeometryParameters(s)))}_getObjectIdField(){return this.i3slayer.objectIdField||m.d}_findGraphicNodeAndIndex(e){const t=(0,mt.g)(this.i3slayer.fieldsIndex,e.attributes,this._getObjectIdField());let s=null;return(0,A.oE)(this._nodeId2Meta,i=>{if((0,n.Wi)(i))return!1;const r=i.featureIds.indexOf(t);return-1!==r&&(s={node:i.node,index:r},!0)}),s}_getGraphicIndices(e,t){const s=this._nodeId2Meta.get(e.index);if((0,n.Wi)(s))return[];const i=[],r=this._getObjectIdField(),d=this.i3slayer.fieldsIndex;for(const h of t){const c=(0,mt.g)(d,h.attributes,r),p=s.featureIds.indexOf(c);-1!==p&&i.push(p)}return i}whenGraphicBounds(e){const t=this._findGraphicNodeAndIndex(e);if(!t)return Promise.reject();const s=this._getAABB(t.node.index,t.index);return(0,n.Wi)(s)?Promise.reject():Promise.resolve({boundingBox:s,screenSpaceObjects:[]})}getAABBFromIntersectorTarget(e){return null==e.nodeIndex||null==e.componentIndex?null:this._getAABB(e.nodeIndex,e.componentIndex)}_getAABB(e,t){const s=this._nodeId2Meta.get(e);if((0,n.Wi)(s)||null==s.featureIds||t>=s.featureIds.length)return null;const r=(0,pe.z6)(t,this._collection,s.objectHandle,new Float64Array(24));if(!(0,v.CM)(r,this.view.renderSpatialReference,0,r,this.view.spatialReference,0,8))return null;const c=(0,P.cS)();return(0,P.G1)(c,r,0,8),c}whenGraphicAttributes(e,t){return(0,j.bf)(this.i3slayer,e,this._getObjectIdField(),t,()=>[...this._nodeId2Meta.values()].filter(n.pC))}getGraphicFromIntersectorTarget(e){if(null==e.nodeIndex||null==e.componentIndex)return null;const t=this._nodeId2Meta.get(e.nodeIndex);return(0,n.Wi)(t)||null==t.featureIds||e.componentIndex>=t.featureIds.length?null:this._createGraphic(e.componentIndex,t)}_getCacheKey(e){return`${this._layerUrl}/v19/${e.id}${this._cacheKeySuffix}`}_getMemCacheKey(e,t=this.elevationOffset){return e+"#"+t}get _idbCacheEnabled(){return!this._controller.disableIDBCache&&!this.hasModifications&&0===this.elevationOffset&&null!=this._cacheKeySuffix}loadCachedGPUData(e){return(0,n.pC)(this._memCache)?this._memCache.pop(this._getMemCacheKey(e.index)):null}deleteCachedGPUData(e){(0,n.pC)(e)&&this._deleteComponentObject(e)}_cacheGPUData(e,t=this.elevationOffset){if((0,n.Wi)(this._memCache))return void this._deleteComponentObject(e);const s=this._controller.indexDepth-e.node.level;this._memCache.put(this._getMemCacheKey(e.node.index,t),e,e.node.memory,s)}loadMissingTextures(e,t,s,i){const r=e?.filter((d,h)=>{if(0==(d.usage&this.rendererTextureUsage))return!1;if((0,n.Wi)(t))return!0;const c=(0,Ke.nn)(d.encodings,this.supportedTextureEncodings),p=t[h];return!!((0,n.Wi)(p)||null==p.data||c&&p.encoding!==c.encoding)})??[];return 0===r.length?Promise.resolve(!1):s(r,i).then(d=>{let h=0;for(let c=0;cnull==i?null:i.nodeVersion!==e.version?(this._idbCache.remove(this._getCacheKey(e)),null):(this.elevationInfo.mode===q.Absolute&&(e.geometryObb=i.geometryObb),this.loadMissingTextures(i.requiredTextures,i.textureData,s,t).then(r=>(r&&this._idbCache.initialized&&(0,n.pC)(i.textureData)&&(i.byteSize=wt(i.transformedGeometry,i.textureData),i.textureData.every(Ft)&&Ut(e,i)&&this._idbCache.put(this._getCacheKey(e),i).catch(d=>Ce.warn(`Failed to update node with textures in IndexedDB cache: ${e.id}: ${d}`))),(0,V.k_)(t),i)))):Promise.resolve(null)}addNode(e,t,s){return function gi(a){return"geometryData"in a}(t)?null==t.geometryBuffer?(this._addNodeMeta(e.index,null),Promise.resolve()):this._addData(e,t.attributeDataInfo,()=>this._transformNode(e,t,s).then(i=>this._safeReschedule(()=>{if((0,n.Wi)(i))return e.hasModifications=!1,this._addCachedNodeData(e,null,s);e.hasModifications=i.transformedGeometry.hasModifications;const{obb:r,componentOffsets:d,featureIds:h,transformedGeometry:c}=i,M=(0,gt.c)(e.mbs,this.elevationOffset,this._controller.crsIndex,this.view.renderSpatialReference),T=(0,Ze.Ue)([r.center.x,r.center.y,r.center.z],[r.extents.x,r.extents.y,r.extents.z],[r.orientation.x,r.orientation.y,r.orientation.z,r.orientation.w]);(0,re.m)(T.center,T.center,M),this.elevationInfo.mode===q.Absolute&&(e.geometryObb=T),t.geometryData.componentOffsets=d,h&&(t.geometryData.featureIds=Array.from(h));const B={nodeVersion:e.version,geometryData:t.geometryData,requiredTextures:t.requiredTextures,textureData:t.textureData,transformedGeometry:c,globalTrafo:M,geometryObb:T,byteSize:wt(c,t.textureData)};if(this._idbCacheEnabled&&this._idbCache.initialized&&Ut(e,B)){const G=(0,n.pC)(B.textureData)?B.textureData.map(z=>Ft(z)?z:null):null;this._idbCache.put(this._getCacheKey(e),{...B,textureData:G}).catch(z=>Ce.warn(`Failed to store node in IndexedDB cache: ${e.id}: ${z}`))}return this._addCachedNodeData(e,B,s)},s))):Promise.reject()}computeVisibilityObb(e){return(0,j.Cx)(e,this.view.renderSpatialReference,this._controller.crsIndex,this.i3slayer.spatialReference,this.elevationOffset,this._modifications)}_transformNode(e,t,s){const i=t.geometryData.geometries,r=new Array(i.length);for(let $=0;$0||this.lodCrossfadeoutDuration>0||this.lodCrossfadeUncoveredDuration>0)}get nodeFadeoutEnabled(){return this._supportsNodeCrossFading&&this.lodCrossfadeoutDuration>0}_setNewNodeOpacity(e){this._setNodeOpacity(e,this.nodeCrossfadingEnabled?0:this.fullOpacity)}addCachedGPUData(e,t,s){if(this.elevationInfo.mode===q.Absolute&&(e.geometryObb=(0,Ze.d9)(this._collection.getComponentObb(t.objectHandle))),!this._controller.isGeometryVisible(e))return void this._cacheGPUData(t);(0,n.pC)(this._labeler)&&this._addMetaToLabeler(this._labeler,t);const i=e.index;this._addNodeMeta(i,t),this.updateNodeState(i,s),this._collection.setObjectVisibility(t.objectHandle,_t.Z.Visible),this._updateMaterial(t),this._setNewNodeOpacity(t),this.elevationInfo.mode!==q.Absolute&&this._ensureElevationTask().schedule(i),this._updateEngineObject(t),this._highlights.objectCreated(t),(0,n.pC)(this._treeDebugger)&&this._treeDebugger.update()}addCachedNodeData(e,t,s,i){return this._addData(e,s,()=>this._addCachedNodeData(e,t,i))}_addCachedNodeData(e,t,s){var i=this;return(0,R.Z)(function*(){if(i.suspended||!i._controller.isGeometryVisible(e))return void i._removeNodeStageData(e.index,i.elevationOffset,i._nodeId2MetaReloading);if((0,n.Wi)(t))return void i._addNodeMeta(e.index,null);const r=i._addTasks.get(e.index),{geometryData:d,transformedGeometry:h,globalTrafo:c}=t;yield i.i3sOverrides.apply(d.featureIds,r.attributeInfo,s);const p=(0,n.pC)(t.textureData)?t.textureData.filter(X=>(0,n.pC)(X)&&0!=(X.usage&i.rendererTextureUsage)):[];!(0,le.Z)("disable-feature:i3s-basis")&&p.some(X=>(0,n.pC)(X)&&(X.encoding===Oe.j.Basis||X.encoding===Oe.j.KTX2))&&(yield(0,xt.$8)()),e.memory=0;const{componentOffsets:f,geometries:M,featureIds:T}=d,B=i._collection,G=M[0],{layout:z,indices:$,interleavedVertexData:ee,positionData:L,hasColors:S}=h,K=i._materialParameters(G,z),Y=f||new Uint32Array([0,$?$.length:ee.byteLength/z[0].stride]),vi={vertices:{data:ee,count:ee.byteLength/z[0].stride,layoutParameters:K.geometryParams},positionData:{positions:L.data,indices:L.indices},indices:$,componentOffsets:Y},lt=G.transformation?(0,Pe.b)(G.transformation):(0,Pe.c)();(0,Ie.m)(lt,c,lt);const bt=(0,Ie.B)((0,ce.c)(),lt),Ci=(0,xe.f)((0,D.c)(),lt),Lt=i.view.renderSpatialReference,Vt=i.view.basemapTerrain.spatialReference,vt=(0,ce.c)(),Ct=[1,1,1];(0,v.X4)(bt,Lt,Ct,Vt)||Ce.errorOnce("Unsupported coordinate system for IM overlay"),(0,v.SH)(bt,Lt,vt,Vt);const dt=B.createObject({toMapSpace:(0,y.f)(vt[0],vt[1],Ct[0],Ct[1]),geometry:vi,obb:t.geometryObb,transform:{position:bt,rotationScale:Ci}}),Ii=K.geometryParams.textureCoordinates===nt.N.Atlas,{textures:Ht,texturePromise:Ei}=i._initMaterialAndTextures(dt,K.material,p,Ii);e.memory+=i._memEstimateGeometryAdded(dt),e.memory+=Ht.reduce((X,It)=>X+((0,n.pC)(It)?i._memEstimateTextureAdded(It):0),0);const Mi=!!K.material.hasParametersFromSource,Oi="blend"!==K.material.alphaMode&&K.material.metallicRoughness.baseColorFactor[3]>=1,te=new li(e,T,dt,i._getInvalidRendererVersion(),r.attributeInfo,{hasParametersFromSource:Mi,isOpaque:Oi},Ht);r.meta=te,!i._hasTextures&&t.requiredTextures?.some(({usage:X})=>0!=(X&Oe.v.ColorTextures))&&(i._hasTextures=!0),i._hasData=!0,i._hasColors=i._hasColors||S,i._hasTextures=i._hasTextures||!!e.resources.texture,i.notifyChange("hasTexturesOrVertexColors");const Si=i.slicePlaneEnabled;return Promise.all([i._addOrUpdateEdgeRendering(te),Ei]).then(([X,It])=>((0,n.pC)(X)&&X.updateObjectVisibility(te.objectHandle,!1).catch(Xe=>Ne(Xe,i.i3slayer.title)),i._safeReschedule(()=>{const Xe=i._addTasks.get(e.index);if(!Xe)return;if(i._addNodeMeta(e.index,te),Xe.meta=null,i.suspended)return void i._removeNodeStageData(e.index,i.elevationOffset);B.setObjectVisibility(dt,_t.Z.Visible),(0,n.pC)(X)&&X.updateObjectVisibility(te.objectHandle,!0).catch(Ai=>Ne(Ai,i.i3slayer.title)),te.attributeInfo=Xe.attributeInfo;const xi=te.cachedRendererVersion!==i._rendererVersion,Pi=Si!==i.slicePlaneEnabled;i._updateElevationOffsets(te);const Ni=te.elevationOffsets;i._updateComponentData(te);const Ri=i._applyFiltersToNode(te);(xi||(0,n.pC)(X)&&(Pi||Ri||Ni))&&i._addOrUpdateEdgeRendering(te),(0,n.pC)(i._labeler)&&i._addMetaToLabeler(i._labeler,te),i._visibleGeometryChanged(te,be.ADD),i._highlights.objectCreated(te),i._updateMaterial(te),i._setNewNodeOpacity(te),(0,n.pC)(i._treeDebugger)&&i._treeDebugger.update()},s))).catch(X=>{throw(0,n.pC)(r.meta)&&(i._cacheGPUData(r.meta),r.meta=null),X})})()}_addNodeMeta(e,t){if(this._removeNodeStageData(e,this.elevationOffset,this._nodeId2MetaReloading),this._nodeId2Meta.has(e)){Ce.error("Removing duplicated node");const s=this._nodeId2Meta.get(e);(0,n.pC)(s)&&this._deleteComponentObject(s)}else this._controller.updateLoadStatus(e,!0);(0,n.pC)(t)&&(t.lodCrossfadeProgress=null,this.nodeCrossfadingEnabled&&Je(t.cachedEdgeMaterials,0)),this._nodeId2Meta.set(e,t)}_updateElevationOffsets(e){const t=this.view.renderSpatialReference,s=this.elevationInfo,i=this.view.basemapTerrain,r=i.spatialReference,d=s.mode;if((0,n.Wi)(t)||(0,n.Wi)(r)||d===q.Absolute)return void(e.elevationOffsets=null);const h=this._collection.getObjectTransform(e.objectHandle);e.elevationOffsets=e.elevationOffsets??[];const c=_i,p=bi,f=d===q.OnTheGround,M=this.view.renderCoordsHelper,B=e.featureIds.length;if(!e.cachedMidsTerrainSR){e.cachedMidsTerrainSR=new Float64Array(3*B);const L=e.cachedMidsTerrainSR;for(let S=0;S{const K=f?G[3*L+2]:0;$[L]=z+((0,n.pC)(S)?S-K:0)})}_ensureElevationTask(){return(0,n.pC)(this._elevationTask)||(this._elevationTask=new st(this.view.resourceController.scheduler,e=>{const t=this._controller.updateElevationChanged(e,this.view.basemapTerrain.spatialReference);return(0,n.pC)(t)?t.filterInPlace(s=>(0,n.pC)(this._nodeId2Meta.get(s))):null},e=>{const t=this._nodeId2Meta.get(e);this._nodeElevationAlignmentChanged(t)})),this._elevationTask}_elevationInfoChanged(e,t){const s=e.mode!==q.Absolute,i=null!=t&&t!==e&&t.mode!==q.Absolute;this._intersectionHandler.updateElevationAlignState(s,this.view.state.viewingMode),s&&!i&&this._controller.removeAllGeometryObbs(),this._nodeId2Meta.forEach(r=>this._nodeElevationAlignmentChanged(r))}_nodeElevationAlignmentChanged(e){(0,n.Wi)(e)||(this._updateElevationOffsets(e),this._updateComponentData(e),this._updateEdgeRendering(e),(0,n.pC)(this._labeler)&&this._labeler.updateLabelPositions(e),this._updateSnappingSources(e,be.UPDATE))}_safeReschedule(e,t){return(0,V.k_)(t),this._controller.reschedule(e,t)}_materialParameters(e,t){const s=(0,n.pC)(e.params.material)?e.params.material:(0,Ke.dY)(),i=t.some(h=>"uvRegion"===h.name),r=t.some(h=>"normalCompressed"===h.name),d=Dt(s);return{geometryParams:this._getGeometryParameters({hasTexture:d,hasNormals:r,hasRegions:i}),material:s}}_initMaterialAndTextures(e,t,s,i){const r=this._stage.renderView,d=s.map(c=>(0,Ke.cU)(c,t,i,r));this._stage.addMany(d);let h=null;return this._collection.updateMaterial(e,c=>{h=(0,Ke.RE)(c,t,d,s,this.view._stage.renderView.textureRepository,{rendererTextureUsage:this.rendererTextureUsage,usePBR:this._usePBR(),isIntegratedMesh:this._isIntegratedMesh,slicePlaneEnabled:this.slicePlaneEnabled,viewSpatialReference:this.view.spatialReference}),this._updateMaterialOverlay(c)}),{textures:d,texturePromise:h}}_getGeometryParameters(e){return{textureCoordinates:e.hasTexture?e.hasRegions?nt.N.Atlas:nt.N.Default:nt.N.None,colors:this._hasVertexColors,normals:e.hasNormals&&!this._isIntegratedMesh}}_addData(e,t,s){let i=this._addTasks.get(e.index);return i?i.attributeInfo=t:(i={...(0,V.hh)(),attributeInfo:t,meta:null},this._addTasks.set(e.index,i),s().then(i.resolve,i.reject).then(()=>this._addTasks.delete(e.index)).catch(r=>{throw this._addTasks.delete(e.index),r})),i.promise}_clearAddTasks(){this._addTasks.forEach(e=>{(0,n.pC)(e.meta)&&(this._cacheGPUData(e.meta),e.meta=null)}),this._addTasks.clear()}_clippingAreaChanged(){const e=this.view.renderSpatialReference,t=this.i3slayer.spatialReference,s=(0,u.Ue)();this._renderClippingArea=(0,St.G)(this.view.clippingArea,s,e)?s:null;const i=(0,u.Ue)();this._layerClippingArea=(0,St.G)(this.view.clippingArea,i,t)?i:null,this._filterChange(),this._controller&&this._controller.updateClippingArea(this.view.clippingArea),this._isIntegratedMesh&&this._modificationsChanged()}get hasGeometryFilter(){return!1}_geometryFilterChange(){const e=this.hasGeometryFilter;this._controller.geometryFilterChanged(e),this._applyFilters(e)}_filterChange(){this._applyFilters(this.hasGeometryFilter)}_applyFilters(e){this._filters=this.getFilters(),e?this._controller&&this._controller.requestUpdate():this._nodeId2Meta.forEach(t=>{(0,n.pC)(t)&&this._applyFiltersToNode(t)&&(this._addOrUpdateEdgeRendering(t),this._visibleGeometryChanged(t,be.UPDATE))})}getFilters(){const e=[],t=this._renderClippingArea;return(0,n.pC)(t)&&e.push((s,i)=>this._boundingRectFilter(s,i,t)),e}addSqlFilter(e,t,s){if((0,n.pC)(t)){const i=t.fieldNames;e.push((r,d)=>this._sqlFilter(r,d,t,i,s))}}_sqlFilter(e,t,s,i,r){const d={},h=this._createLayerGraphic(d),c=this.i3slayer.objectIdField,p=t.featureIds,f=(0,n.pC)(t.attributeInfo)&&t.attributeInfo.attributeData;i.every(M=>null!=f[M]||M===c)&&(0,j.hv)(e,p,M=>{d[c]=p[M];for(const T of i)T!==c&&(d[T]=(0,j.Jx)(f[T],M));try{return s.testFeature(h)}catch(T){return r(T),!1}})}_boundingRectNodeTest(e,t){return(0,v.st)(e.node.mbs,this._controller.crsIndex,Tt,this.view.renderSpatialReference),(0,j.cr)(t,Tt)}_boundingRectFeatureTest(e,t,s){return this._collection.getComponentAabb(e.objectHandle,t,Rt),(0,P.y8)(Rt,At),(0,u.kK)(s,At)}_boundingRectFilter(e,t,s){const i=this._collection,r=this._boundingRectNodeTest(t,s);if(r===j.pD.INSIDE)return;if(r===j.pD.OUTSIDE)return void(e.length=0);const d=i.getComponentCount(t.objectHandle);if(d.invisible+d.visible!==t.featureIds.length)return;const h=this._transformClippingArea(ui,s,t.objectHandle);(0,j.hv)(e,t.featureIds,c=>this._boundingRectFeatureTest(t,c,h))}_transformClippingArea(e,t,s){const i=this._collection.getObjectTransform(s),r=i.position,d=i.rotationScale;return e[0]=(t[0]-r[0])/d[0],e[1]=(t[1]-r[1])/d[4],e[2]=(t[2]-r[0])/d[0],e[3]=(t[3]-r[1])/d[4],e}_addOrUpdateEdgeRendering(e,t=!0){const s=this._edgeView;if((0,n.Wi)(s))return Promise.resolve(null);const i=e.objectHandle,r=s.hasObject(i),{hasEdges:d,perFeatureEdgeMaterials:h}=this._getFilteredEdgeMaterials(e),c={hasSlicePlane:this.slicePlaneEnabled};return d&&r?(this.nodeCrossfadingEnabled&&Je(h,this.getNodeOpacity(e)),s.updateAllComponentMaterials(i,h,c,t).catch(p=>Ne(p,this.i3slayer.title)),s.updateObjectVisibility(i,!0).catch(p=>Ne(p,this.i3slayer.title)),s.updateAllVerticalOffsets(i,e.elevationOffsets).catch(p=>Ne(p,this.i3slayer.title)),Promise.resolve(s)):d&&!r?this._collection.addEdges(i,s,h,c).then(p=>(e.edgeMemoryUsage=p,e.node.memory+=p,s.updateAllVerticalOffsets(i,e.elevationOffsets).catch(f=>Ne(f,this.i3slayer.title)),s)):(!d&&r&&(e.node.memory-=e.edgeMemoryUsage,e.edgeMemoryUsage=0,s.removeObject(i)),Promise.resolve(null))}_applyFiltersToNode(e){return!!this._applyFiltersToNodeComponents(e)&&((0,n.pC)(this._labeler)&&this._labeler.applyFilterChange(e),!0)}_applyFiltersToNodeComponents(e){const t=this._collection,s=0===t.getComponentCount(e.objectHandle).invisible;if(t.setAllComponentVisibilities(e.objectHandle,"all"),0===this._filters.length)return e.filteredIds=null,!s;if(this._updateCachedFilteredIds(e),e.filteredIds===e.featureIds)return!s;const i=this._computeFilteredComponentIndices(e);return t.setAllComponentVisibilities(e.objectHandle,i),!0}_updateCachedFilteredIds(e){null!=e.filteredIds&&e.appliedFilters===this._filters||(e.filteredIds=this._computeFilteredIds(e),e.appliedFilters=this._filters)}_computeFilteredIds(e){const t=e.featureIds.slice();for(const s of this._filters)if(s(t,e),0===t.length)break;return t.length===e.featureIds.length?e.featureIds:t}_computeFilteredComponentIndices(e){const t=new Array;return e.featureIds.forEach((s,i)=>{e.filteredIds[t.length]===s&&t.push(i)}),t}_removeAllNodeDataFromStage(e=this.elevationOffset){this._nodeId2Meta.forEach((t,s)=>this._removeNodeStageData(s,e)),this._nodeId2MetaReloading.forEach((t,s)=>this._removeNodeStageData(s,e,this._nodeId2MetaReloading)),this._elevationTask=(0,n.SC)(this._elevationTask)}removeNode(e){const t=this.elevationOffset;this._removeNodeStageData(e,t),this._removeNodeStageData(e,t,this._nodeId2MetaReloading),(0,n.pC)(this._elevationTask)&&this._elevationTask.remove(e)}_removeNodeStageData(e,t,s=this._nodeId2Meta){s.has(e)&&this._controller.updateLoadStatus(e,!1);const i=s.get(e);(0,n.Wi)(i)?s.delete(e):(this._collection.setObjectVisibility(i.objectHandle,_t.Z.Hidden),(0,n.pC)(this._edgeView)&&this._edgeView.hasObject(i.objectHandle)&&this._edgeView.updateObjectVisibility(i.objectHandle,!1).catch(r=>Ne(r,this.i3slayer.title)),this._visibleGeometryChanged(i,be.REMOVE),(0,n.pC)(this._labeler)&&this._labeler.removeNodeMeta(i),s.delete(e),this._highlights.objectDeleted(i),s===this._nodeId2Meta?(this._cacheGPUData(i,t),this.nodeCrossfadingEnabled&&this._crossfadeHelper.stopNodeFading(i)):this._deleteComponentObject(i),(0,n.pC)(this._treeDebugger)&&this._treeDebugger.update())}_deleteComponentObject(e){if((0,n.pC)(this._edgeView)&&this._edgeView.removeObject(e.objectHandle),this._memEstimateGeometryRemoved(e.objectHandle),this._collection.destroyObject(e.objectHandle),e.textures)for(const t of e.textures)this._memEstimateTextureRemoved(t),this._stage.remove(t)}updateNodeState(e,t){const s=this._nodeId2Meta.get(e);(0,n.pC)(s)&&this._collection.updateMaterial(s.objectHandle,i=>i.polygonOffsetEnabled=t===ft.FE.Hole)}_invalidateAllSymbols(){this._rendererVersion=(0,j.HV)(this._rendererVersion,1),this._controller&&this._controller.requestUpdate()}_getInvalidRendererVersion(){return(0,j.HV)(this._rendererVersion,-1)}_rendererChange(e){var t=this;return(0,R.Z)(function*(){if(t._currentRenderer=e,t.notifyChange("rendererTextureUsage"),t._rendererVersion=(0,j.HV)(t._rendererVersion,1),t._rendererFields=null,t._colorVariable=null,t._opacityVariable=null,t._invalidateAllSymbols(),e&&(t._rendererFields=yield e.getRequiredFields(t.i3slayer.fieldsIndex)),t._updateSymbologyFields(),!t._arcade&&e&&"arcadeRequired"in e&&e.arcadeRequired&&(t._arcade=yield(0,de.LC)()),e&&"visualVariables"in e&&e.visualVariables)for(const s of e.visualVariables)"color"===s.type?t._colorVariable=s:"opacity"===s.type?t._opacityVariable=s:Ce.warn(`Unsupported visual variable type for 3D Object Scene Services: ${s.type}`);if(e)for(const s of e.getSymbols())"mesh-3d"!==s.type&&Ce.error(`Symbols of type '${s.type}' are not supported for 3D Object Scene Services.`);t._controller&&t._controller.requestUpdate()})()}_getCachedEdgeMaterials(e){return this._hasComponentData&&e.cachedRendererVersion!==this._rendererVersion&&this._updateCachedRendererData(e),e.cachedEdgeMaterials}_getComponentParameters(e){this._hasComponentData&&e.cachedRendererVersion!==this._rendererVersion&&this._updateCachedRendererData(e);const t=e.cachedSymbology;return(s,i)=>{const r=5*s;if((0,Ae.s)(i.externalColor,t[r+0]/255,t[r+1]/255,t[r+2]/255,t[r+3]/255),i.objectAndLayerIdColor){const d=e.featureIds[s];this._stage.renderView._objectAndLayerIdRenderHelper.setUidToObjectAndLayerId(d,d,this.layerId,this.layerUid,this.layerPopupEnabled,e.node.resources.attributes,s,this.sublayerId);const h=this._stage.renderView._getObjectAndLayerIdColor({graphicUid:d,layerUid:this.layerUid});(0,Ae.s)(i.objectAndLayerIdColor,h[0],h[1],h[2],h[3])}i.externalColorMixMode=t[r+4]&(1<0?(0,n.pC)(this._rendererFields)&&this._rendererFields.length>0?(0,F.Q0)(this.i3slayer.fieldsIndex,[...this._rendererFields,...this._symbologyOverrideFields]):this._symbologyOverrideFields:this._rendererFields}_updateCachedRendererData(e){if(e.cachedRendererVersion=this._rendererVersion,!this._hasComponentData)return;const t=this._tmpAttributeOnlyGraphic,s={};t.attributes=s;const i=this._currentRenderer,r=(0,n.pC)(e.attributeInfo)&&e.attributeInfo.attributeData,d=null!=e.featureIds?this.i3slayer.objectIdField:null,h=null!=r&&(0,n.pC)(this._symbologyFields)&&this._symbologyFields.length>0,c=h?[]:null,p=h?[]:null;if(h&&(0,n.pC)(this._symbologyFields))for(const ee of this._symbologyFields){const L=r[ee];L&&(c.push(ee),p.push(L))}e.cachedSymbology||(e.cachedSymbology=new Uint8Array(5*e.featureIds.length));const f={color:$e,castShadows:!0,pickable:!0,colorMixMode:yt.a9.Multiply,edgeMaterial:null},M=this.fullOpacity,T=this.nodeCrossfadingEnabled?this.getNodeOpacity(e):M;let B=null,G=at.i.OPAQUE,z=j.uC,$=0;for(let ee=0;ee=1&&(e.material.isOpaque||f.colorMixMode===yt.a9.Replace)?at.i.OPAQUE:at.i.TRANSPARENT;f.edgeMaterial===B&&Y===G||(z={...f.edgeMaterial,opacity:T,objectTransparency:Y},B=f.edgeMaterial,G=Y),e.cachedEdgeMaterials[ee]=z}else e.cachedEdgeMaterials[ee]=j.uC;e.cachedSymbology[$+0]=Math.round(255*S[0]),e.cachedSymbology[$+1]=Math.round(255*S[1]),e.cachedSymbology[$+2]=Math.round(255*S[2]),e.cachedSymbology[$+3]=Math.round(255*S[3]),e.cachedSymbology[$+4]=f.colorMixMode|+f.castShadows<d!==j.uC),perFeatureEdgeMaterials:t};let s=0,i=!1;const r=t.map((d,h)=>e.featureIds[h]!==e.filteredIds[s]?j.uC:(i=i||d!==j.uC,s++,d));return{hasEdges:i,perFeatureEdgeMaterials:r}}_updateComponentData(e){if(!this._hasComponentData)return;const t=e.objectHandle,s=this._getComponentParameters(e);this._collection.setComponentData(t,s),this._stage.renderView.requestRender()}_reloadAll(e=this.elevationOffset){this._removeAllNodeDataFromStage(e),null!=this._controller&&this._controller.restartNodeLoading()}_opacityChange(e){this.nodeCrossfadingEnabled&&this._crossfadeHelper.stopAllNodeFading(),this._nodeId2Meta.forEach(t=>{(0,n.Wi)(t)||(this._collection.updateMaterial(t.objectHandle,s=>s.objectOpacity=e),Je(t.cachedEdgeMaterials,e),this._updateEdgeRendering(t))})}_updateMaterial(e){this._collection.updateMaterial(e.objectHandle,t=>{t.commonMaterialParameters.hasSlicePlane=this.slicePlaneEnabled,t.usePBR=this._usePBR(),this._updateMaterialOverlay(t)})}_updateMaterialOverlay(e){}_updateEngineObject(e){this._updateComponentData(e),this._applyFiltersToNode(e),this._addOrUpdateEdgeRendering(e),this._visibleGeometryChanged(e,be.UPDATE)}_slicePlaneEnabledChange(e){this._intersectionHandler&&(this._intersectionHandler.slicePlaneEnabled=e),(0,n.pC)(this._labeler)&&(this._labeler.slicePlaneEnabled=e),this._nodeId2Meta.forEach(t=>{(0,n.Wi)(t)||(this._collection.updateMaterial(t.objectHandle,s=>{s.commonMaterialParameters.hasSlicePlane=e}),this._updateEdgeRendering(t,!1))})}_updatePBR(){this._nodeId2Meta.forEach(e=>{(0,n.Wi)(e)||this._collection.updateMaterial(e.objectHandle,t=>{t.usePBR=this._usePBR()})}),this._hasLoadedPBRTextures=!0}_usePBR(){return!this._isIntegratedMesh&&this.view.qualitySettings.physicallyBasedRenderingEnabled}_updateEdgeRendering(e,t=!0){(0,n.pC)(this._edgeView)&&this._edgeView.hasObject(e.objectHandle)&&this._addOrUpdateEdgeRendering(e,t)}_forAllNodes(e){this._nodeId2Meta.forEach(e)}_forAllFeatures(e,t,s=W.u.VISIBLE_ONLY){(0,A.oE)(this._nodeId2Meta,i=>{if((0,n.Wi)(i))return!1;if((0,n.pC)(t))switch(t(i)){case W.K.EXIT:return!0;case W.K.SKIP:return!1}let r=W.K.CONTINUE;switch(s){case W.u.ALL:r=this._forAllFeaturesOfNode(i,e);break;case W.u.VISIBLE_ONLY:r=this._forVisibleFeaturesOfNode(i,e);break;case W.u.ALL_IN_CLIPPING_AREA:r=this._forAllFeaturesOfNodeInClippingArea(i,e)}return r===W.K.EXIT})}_forAllFeaturesOfNode(e,t){let s=W.K.CONTINUE;const i=e.featureIds;for(let r=0;r(s=t(i[r],r,e),s===W.K.CONTINUE)),s}_forAllFeaturesOfNodeInClippingArea(e,t){if((0,n.Wi)(this._renderClippingArea))return this._forAllFeaturesOfNode(e,t);const s=this._boundingRectNodeTest(e,this._renderClippingArea);if(s===j.pD.OUTSIDE)return W.K.CONTINUE;if(s===j.pD.INSIDE)return this._forAllFeaturesOfNode(e,t);const i=W.K.CONTINUE,r=e.featureIds,h=(0,j.ns)(this._renderClippingArea,this._collection.getObjectTransform(e.objectHandle));for(let c=0;c0){if(e[0]instanceof he.Z){const s=e,i=this.i3slayer.fieldsIndex,r=this._getObjectIdField(),d=s.map(p=>(0,mt.g)(i,p.attributes,r)),{set:h,handle:c}=t.acquireSet();return t.setFeatureIds(h,d),c}if("number"==typeof e[0]){const s=e,{set:i,handle:r}=t.acquireSet();return t.setFeatureIds(i,s),r}}return yi}_visibleGeometryChanged(e,t){this._elevationProvider&&(this._elevationProvider.objectChanged(e.node),null==this._visibleGeometryChangedSchedulerHandle&&(this._visibleGeometryChangedSchedulerHandle=(0,x.Os)(()=>{this.emit("visible-geometry-changed"),this._visibleGeometryChangedSchedulerHandle=null})),this._updateSnappingSources(e,t))}get performanceInfo(){const e={displayedNumberOfFeatures:0,maximumNumberOfFeatures:0,totalNumberOfFeatures:0,core:null,index:0,nodes:this._nodeId2Meta.size,"Total GPU Memory Estimate":(this._gpuMemoryEstimate/1048576).toFixed(1)+"MB","Geometry Memory Estimate":(this._geoMemoryEstimate/1048576).toFixed(1)+"MB","Texture Memory Estimate":(this._texMemoryEstimate/1048576).toFixed(1)+"MB","Unloaded Memory Estimate":(this.getUnloadedMemory()/1048576).toFixed(1)+"MB"};return(0,n.pC)(this._memCache)&&(e.MemCache=Math.round(100*this._memCache.hitRate)+"% hit"),this._controller&&(this._idbCacheEnabled&&(e.IDBCache=Math.round(100*this._idbCache.getHitRate())+"% hit"),this._controller.updateStats(e)),e}get test(){const e=this;return{controller:this._controller,labeler:this._labeler,get visibleObjectIds(){const t=[];return e._forAllFeatures(s=>(t.push(s),W.K.CONTINUE),null,W.u.VISIBLE_ONLY),t.sort((s,i)=>s-i),t},get numNodes(){return e._nodeId2Meta.size},get loadedNodes(){return Array.from(e._nodeId2Meta.keys()).sort((t,s)=>t-s)}}}getNodeOpacityByIndex(e){const t=this._nodeId2Meta.get(e);return this.getNodeOpacity(t)}getNodeOpacity(e){return(0,n.pC)(e)?this._collection.getMaterial(e.objectHandle).objectOpacity:0}isNodeFullyFadedIn(e){return this._crossfadeHelper.isNodeFullyFadedIn(e)}getNodeCrossfadeMetaData(e){return this._nodeId2Meta.get(e)}markNodeToRemove(e){this._controller&&this._controller.markNodeToRemove(e)}removeMarkedNodes(){this._controller&&this._controller.removeMarkedNodes()}foreachCrossfadeNode(e){this._nodeId2Meta.forEach((t,s)=>e(s,t))}fadeNode(e,t,s){if(!this.nodeCrossfadingEnabled)return;const i=this._nodeId2Meta.get(e);(0,n.pC)(i)&&this._crossfadeHelper.fadeNode(e,i,t,s)}setNodeOpacityByIndex(e,t){const s=this._nodeId2Meta.get(e);(0,n.pC)(s)&&this._setNodeOpacity(s,t)}_setNodeOpacity(e,t){this._collection.updateMaterial(e.objectHandle,s=>s.objectOpacity=t),this._setNodeEdgeOpacity(e,t)}_setNodeEdgeOpacity(e,t){if((0,n.Wi)(this._edgeView)||!e.cachedEdgeMaterials)return;Je(e.cachedEdgeMaterials,t);const s=e.objectHandle;this._edgeView.hasObject(s)&&this._edgeView.updateAllComponentOpacities(s,t).catch(i=>Ne(i,this.i3slayer.title))}get hasModifications(){return this._isIntegratedMesh&&(0,n.pC)(this._layerClippingArea)||this._modifications&&this._modifications.length>0}updateNodeModificationStatus(e){if(!this.hasModifications||e.length<=0||!0!==this._i3sWasmLoaded)return;const s=this.i3slayer.uid,i=function mi(a){if(0===a.length)return null;const e=new Float64Array(10*a.length);return a.forAll((t,s)=>{let i=t.serviceObb;(0,n.Wi)(i)&&(i=pi,(0,re.c)(i.center,t.mbs),i.halfSize[0]=i.halfSize[1]=i.halfSize[2]=t.mbs[3]);const r=10*s;e[r+0]=i.center[0],e[r+1]=i.center[1],e[r+2]=i.center[2],e[r+3]=i.halfSize[0],e[r+4]=i.halfSize[1],e[r+5]=i.halfSize[2],e[r+6]=i.quaternion[0],e[r+7]=i.quaternion[1],e[r+8]=i.quaternion[2],e[r+9]=i.quaternion[3]}),e}(e);if((0,n.pC)(i)){(0,it.filterObbsForModificationsSync)({context:s,buffer:i.buffer});const d=new Float64Array(i.buffer);e.forAll((h,c)=>{const f=(0,it.interpretObbModificationResults)(d[c]);h.imModificationImpact=f,f!==ft.O4.Unmodified&&this._controller.invalidateGeometryVisibility(h.index)})}}notifyUpdate(){this.notifyChange("updating")}notifyLODUpdate(){this._controller.notifyLODUpdate()}isUpdating(){return!(!this._controller||!this._controller.updating)||!!this._visibleGeometryChangedSchedulerHandle||(0,n.pC)(this._labeler)&&this._labeler.updating||this._crossfadeHelper.updating||this._i3sWasmLoaded instanceof Promise||this._asyncModuleLoading>0||(0,n.pC)(this._elevationTask)&&this._elevationTask.running}trackSnappingSources(e){var t=this;const s={events:e,fetchEdgeLocations:(i=(0,R.Z)(function*(r,d,h){const c=t._nodeId2Meta.get(r);if((0,n.Wi)(c))throw new Error("invalid-node");const{origin:p,buffer:f}=yield t._collection.extractEdgeInformation(c.objectHandle,d,h);return t._snappingLocationsApplyElevation(c,f,p),{type:"components",objectIds:c.featureIds,locations:f,origin:p}}),function(d,h,c){return i.apply(this,arguments)}),remove:()=>{(0,ae.e$)(this._snappingSourcesTrackers,s)}};var i;return this._snappingSourcesTrackers.push(s),this._nodeId2Meta.forEach((i,r)=>{if((0,n.Wi)(i))return;const d=this._controller.getRenderMbs(i.node);(0,n.pC)(d)&&e.add(r,d)}),s}_snappingLocationsApplyElevation(e,t,s){if(!e.elevationOffsets||this.elevationInfo.mode===q.Absolute)return;const i=t.position0,r=t.position1,d=t.componentIndex,h=(0,ce.c)(),c=(0,ce.c)(),p=(f,M)=>{(0,re.a)(f,f,s),this.view.renderCoordsHelper.worldUpAtPosition(f,c),(0,re.a)(f,f,(0,re.g)(c,c,M)),(0,re.b)(f,f,s)};for(let f=0;f=0||o&&o.metallicRoughnessTextureId>=0||a.normalTextureId>=0||a.emissiveTextureId>=0||a.occlusionTextureId>=0}function Ft(a){return(0,n.pC)(a)&&(0,H.eP)(a.data)}function wt(a,o){let e=1024+a.interleavedVertexData.byteLength+(a.indices?a.indices.byteLength:0)+a.positionData.data.byteLength+a.positionData.indices.byteLength;if((0,n.pC)(o))for(const t of o)(0,n.pC)(t)&&(0,H.eP)(t.data)&&(e+=t.data.byteLength);return e}function Ut(a,o){return o.byteSize>hi?(Ce.warn(`Node is too big to store in IndexedDB cache: ${a.id} (${o.byteSize} bytes)`),!1):o.byteSize>0}const yi={remove(){},pause(){},resume(){}};function Je(a,o){a.forEach(e=>e.opacity=o)}var q;!function(a){a[a.Absolute=0]="Absolute",a[a.RelativeToGround=1]="RelativeToGround",a[a.OnTheGround=2]="OnTheGround"}(q||(q={}));const _i=(0,ce.c)(),bi=(0,P.Ue)(),jt="elevation-change"},52836:(Re,ie,l)=>{var R,g,b;l.d(ie,{K:()=>g,u:()=>R}),(b=R||(R={}))[b.VISIBLE_ONLY=0]="VISIBLE_ONLY",b[b.ALL=1]="ALL",b[b.ALL_IN_CLIPPING_AREA=2]="ALL_IN_CLIPPING_AREA",function(b){b[b.EXIT=0]="EXIT",b[b.CONTINUE=1]="CONTINUE",b[b.SKIP=2]="SKIP"}(g||(g={}))},30375:(Re,ie,l)=>{l.r(ie),l.d(ie,{destroyContext:()=>_e,dracoDecompressPointCloudData:()=>J,filterObbsForModifications:()=>C,filterObbsForModificationsSync:()=>ce,initialize:()=>v,interpretObbModificationResults:()=>re,process:()=>A,setLegacySchema:()=>I,setModifications:()=>H,setModificationsSync:()=>Ie,test:()=>P});var R=l(15861),g=l(62208),b=l(55713),he=l(17926),ae=l(54346);function Se(u){return(0,ae.V)(`esri/libs/i3s/${u}`)}let le;var se=l(52565);function A(u){return n.apply(this,arguments)}function n(){return(n=(0,R.Z)(function*(u){yield v();const m=[u.geometryBuffer];return{result:Pe(u,m),transferList:m}})).apply(this,arguments)}function J(u){return V.apply(this,arguments)}function V(){return(V=(0,R.Z)(function*(u){yield v();const m=[u.geometryBuffer],{geometryBuffer:O}=u,F=O.byteLength,E=D._malloc(F),oe=new Uint8Array(D.HEAPU8.buffer,E,F);oe.set(new Uint8Array(O));const w=D.dracoDecompressPointCloudData(E,oe.byteLength);if(D._free(E),w.error.length>0)throw`i3s.wasm: ${w.error}`;const de=w.featureIds?.length>0?(0,b.tP)(w.featureIds):null,Q=(0,b.tP)(w.positions);return de&&m.push(de.buffer),m.push(Q.buffer),{result:{positions:Q,featureIds:de},transferList:m}})).apply(this,arguments)}function C(u){return x.apply(this,arguments)}function x(){return(x=(0,R.Z)(function*(u){yield v(),ce(u);const m={buffer:u.buffer};return{result:m,transferList:[m.buffer]}})).apply(this,arguments)}function H(u){return N.apply(this,arguments)}function N(){return(N=(0,R.Z)(function*(u){yield v(),Ie(u)})).apply(this,arguments)}function I(u){return Z.apply(this,arguments)}function Z(){return(Z=(0,R.Z)(function*(u){yield v(),D.setLegacySchema(u.context,u.jsonSchema)})).apply(this,arguments)}function _e(u){Ae(u)}let xe,D;function Ie(u){const m=u.modifications,O=D._malloc(8*m.length),F=new Float64Array(D.HEAPU8.buffer,O,m.length);for(let E=0;EEe.some(Me=>"color"===Me.name)),normal:u.needNormals&&u.layouts.some(Ee=>Ee.some(Me=>"normalCompressed"===Me.name)),uv0:u.layouts.some(Ee=>Ee.some(Me=>"uv0"===Me.name)),uvRegion:u.layouts.some(Ee=>Ee.some(Me=>"uvRegion"===Me.name)),featureIndex:qe.featureIndex},U=D.process(O,!!u.obb,Fe,ke.byteLength,qe,ht,He,de,Te,De,u.normalReferenceFrame);if(D._free(He),D._free(Fe),U.error.length>0)throw`i3s.wasm: ${U.error}`;if(U.discarded)return null;const ve=U.componentOffsets.length>0?(0,b.tP)(U.componentOffsets):null,ze=U.featureIds.length>0?(0,b.tP)(U.featureIds):null,et=(0,b.tP)(U.interleavedVertedData).buffer,tt=(0,b.tP)(U.indicesType===he.P.Int16?new Uint16Array(U.indices.buffer,U.indices.byteOffset,U.indices.byteLength/2):new Uint32Array(U.indices.buffer,U.indices.byteOffset,U.indices.byteLength/4)),fe=(0,b.tP)(U.positions),ge=(0,b.tP)(U.positionIndicesType===he.P.Int16?new Uint16Array(U.positionIndices.buffer,U.positionIndices.byteOffset,U.positionIndices.byteLength/2):new Uint32Array(U.positionIndices.buffer,U.positionIndices.byteOffset,U.positionIndices.byteLength/4)),ne={layout:u.layouts[0],interleavedVertexData:et,indices:tt,hasColors:U.hasColors,hasModifications:U.hasModifications,positionData:{data:fe,indices:ge}};return ze&&m.push(ze.buffer),ve&&m.push(ve.buffer),m.push(et),m.push(tt.buffer),m.push(fe.buffer),m.push(ge.buffer),{componentOffsets:ve,featureIds:ze,transformedGeometry:ne,obb:U.obb}}function re(u){return 0===u?se.O4.Unmodified:1===u?se.O4.PotentiallyModified:2===u?se.O4.Culled:se.O4.Unknown}function ce(u){const{context:m,buffer:O}=u,F=D._malloc(O.byteLength),E=O.byteLength/Float64Array.BYTES_PER_ELEMENT,oe=new Float64Array(D.HEAPU8.buffer,F,E),w=new Float64Array(O);oe.set(w),D.filterOBBs(m,F,E),w.set(oe),D._free(F)}function Ae(u){D&&D.destroy(u)}function y(u,m){for(let O=0;Ol.e(5979).then(l.bind(l,85979)).then(m=>m.i).then(({default:m})=>{const O=m({locateFile:Se,onRuntimeInitialized:()=>u(O)});delete O.then})).catch(u=>{throw u})),le}().then(u=>{D=u,xe=null})),xe)}const P={transform:Pe,destroy:Ae}},2694:(Re,ie,l)=>{l.d(ie,{YF:()=>le,gz:()=>Se,z6:()=>me});var R=l(62208),g=l(84161),b=l(28093),he=l(55915),ae=l(5548);function me(n,J,V,C){const x=J.getComponentAabb(V,n,se),H=J.getObjectTransform(V);for(let N=0;N<8;++N)A[0]=1&N?x[0]:x[3],A[1]=2&N?x[1]:x[4],A[2]=4&N?x[2]:x[5],(0,g.t)(A,A,H.rotationScale),(0,g.a)(A,A,H.position),C[3*N]=A[0],C[3*N+1]=A[1],C[3*N+2]=A[2];return C}function Se(n,J,V){const C=new Float64Array(24);return x=>{let H=x.meta.featureExtents;if((0,R.Wi)(H)){H=new Float64Array(6*x.meta.featureIds.length),x.meta.featureExtents=H;for(let I=0;I{_.r(s),_.d(s,{NUM_ROUND_JOIN_SUBDIVISIONS:()=>r.N,build:()=>r.b}),_(52382),_(13934),_(78925),_(23164),_(39645),_(54120),_(92484),_(50823),_(10109),_(39337),_(33726),_(2166),_(95285),_(69960),_(65787),_(17625),_(63123),_(22355),_(44835),_(16396),_(46359),_(39401);var r=_(3393)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4366.45b3c1eb9124736d.js b/apps/n/porrtal-io-app/public/angular/4366.45b3c1eb9124736d.js deleted file mode 100644 index 6491ad32..00000000 --- a/apps/n/porrtal-io-app/public/angular/4366.45b3c1eb9124736d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4366],{4366:(O,R,e)=>{e.r(R),e.d(R,{default:()=>H});var y=e(15861),l=e(17626),u=e(62208),P=e(10699),f=e(32917),E=(e(63290),e(90912),e(85931),e(26584)),m=(e(8314),e(76898)),w=e(69759),d=e(77712),x=e(72642),T=e(13812),i=e(96854),C=e(10023);const g=a=>{let s=class extends a{constructor(){super(...arguments),this.view=null}fetchPopupFeatures(r,n){var o=this;return(0,y.Z)(function*(){const{layer:v}=o;if(!r)throw new E.Z("imagerylayerview:fetchPopupFeatures","Nothing to fetch without area",{layer:v});const{popupEnabled:p}=v,c=(0,C.V)(v,n);if(!p||(0,u.Wi)(c))throw new E.Z("imagerylayerview:fetchPopupFeatures","Missing required popupTemplate or popupEnabled",{popupEnabled:p,popupTemplate:c});const U=yield c.getRequiredFields(),D=new i.Z;D.timeExtent=o.timeExtent,D.geometry=r,D.outFields=U,D.outSpatialReference=r.spatialReference;const I=o.view.resolution,b="2d"===o.view.type?new x.Z(I,I,o.view.spatialReference):new x.Z(.5*I,.5*I,o.view.spatialReference),{returnTopmostRaster:L,showNoDataRecords:V}=c.layerOptions||{returnTopmostRaster:!0,showNoDataRecords:!1},W={returnDomainValues:!0,returnTopmostRaster:L,pixelSize:b,showNoDataRecords:V,signal:(0,u.pC)(n)?n.signal:null};return v.queryVisibleRasters(D,W).then(j=>j)})()}canResume(){return!!super.canResume()&&!this.timeExtent?.isEmpty}};return(0,l._)([(0,d.Cb)()],s.prototype,"layer",void 0),(0,l._)([(0,d.Cb)()],s.prototype,"suspended",void 0),(0,l._)([(0,d.Cb)(T.qG)],s.prototype,"timeExtent",void 0),(0,l._)([(0,d.Cb)()],s.prototype,"view",void 0),s=(0,l._)([(0,m.j)("esri.views.layers.ImageryLayerView")],s),s};let F=class extends(g(w.Z)){constructor(){var a;super(...arguments),a=this,this.type="imagery-3d",this.redrawDebounced=(0,P.Ds)(function(){var s=(0,y.Z)(function*(r){a.redraw((n,o)=>a._redrawImage(n,o),r)});return function(r){return s.apply(this,arguments)}}(),2e3)}initialize(){this.handles.add([(0,f.gx)(()=>this.view.basemapTerrain.ready,()=>this._initializeMaximumDataResolution(),{once:!0,initial:!0}),this.layer.on("redraw",()=>this.updatingHandles.addPromise(this.redrawDebounced()))]),this.updatingHandles.add(()=>this.layer?.exportImageServiceParameters?.version,()=>{this.updatingHandles.addPromise(this.refreshDebounced())}),this.updatingHandles.add(()=>this.layer?.renderer,()=>{this.updatingHandles.addPromise(this.refreshDebounced())}),this.updatingHandles.add(()=>this.timeExtent,()=>this.updatingHandles.addPromise(this.refreshDebounced()))}_initializeMaximumDataResolution(){this.maximumDataResolution=this.layer.loaded?this.layer.serviceRasterInfo.pixelSize:null}getFetchOptions(){return{timeExtent:this.timeExtent}}processResult(a,s,r){var n=this;return(0,y.Z)(function*(){s.imageOrCanvasElement?a.image=s.imageOrCanvasElement:(a.image=document.createElement("canvas"),a.pixelData=s.pixelData,yield n._redrawImage(a,r))})()}_redrawImage(a,s){var r=this;return(0,y.Z)(function*(){if(!(a.image instanceof HTMLCanvasElement)||(0,u.Wi)(a.pixelData))throw new Error;const n=a.image,o=n.getContext("2d"),v=yield r.layer.applyRenderer(a.pixelData,{signal:s}),p=r.layer.applyFilter(v).pixelBlock;if((0,u.Wi)(p))throw new Error;n.width=p.width,n.height=p.height;const c=o.createImageData(p.width,p.height);c.data.set(p.getAsRGBA()),o.putImageData(c,0,0)})()}};F=(0,l._)([(0,m.j)("esri.views.3d.layers.ImageryLayerView3D")],F);const H=F},10023:(O,R,e)=>{e.d(R,{V:()=>Z,e:()=>P});var y=e(15861),l=e(62208),u=e(36630);function P(t){return f.apply(this,arguments)}function f(){return(f=(0,y.Z)(function*(t,h=t.popupTemplate){if((0,l.Wi)(h))return[];const E=yield h.getRequiredFields(t.fieldsIndex),{lastEditInfoEnabled:M}=h,{objectIdField:m,typeIdField:w,globalIdField:d,relationships:x}=t;if(E.includes("*"))return["*"];const T=M?yield(0,u.CH)(t):[],i=(0,u.Q0)(t.fieldsIndex,[...E,...T]);return w&&i.push(w),i&&m&&t.fieldsIndex.has(m)&&!i.includes(m)&&i.push(m),i&&d&&t.fieldsIndex.has(d)&&!i.includes(d)&&i.push(d),x&&x.forEach(C=>{const{keyField:g}=C;i&&g&&t.fieldsIndex.has(g)&&!i.includes(g)&&i.push(g)}),i})).apply(this,arguments)}function Z(t,h){return t.popupTemplate?t.popupTemplate:(0,l.pC)(h)&&h.defaultPopupTemplateEnabled&&(0,l.pC)(t.defaultPopupTemplate)?t.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4367.55b09704ee9a990d.js b/apps/n/porrtal-io-app/public/angular/4367.55b09704ee9a990d.js deleted file mode 100644 index 31963bcf..00000000 --- a/apps/n/porrtal-io-app/public/angular/4367.55b09704ee9a990d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4367],{54367:(q,z,g)=>{g.r(z),g.d(z,{toBinaryGLTF:()=>mt});var N,i,V=g(21726),P=g(10699),B=g(72642);(i=N||(N={}))[i.JSON=1313821514]="JSON",i[i.BIN=5130562]="BIN";class E{constructor(t,e){if(!t)throw new Error("GLB requires a JSON gltf chunk");this._length=E.HEADER_SIZE,this._length+=E.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(t);if(this._length+=this._alignTo(s.byteLength,4),e&&(this._length+=E.CHUNK_HEADER_SIZE,this._length+=e.byteLength,e.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const r=this._writeChunk(s,12,N.JSON,32);e&&this._writeChunk(e,r,N.BIN)}_writeHeader(){this._outView.setUint32(0,E.MAGIC,!0),this._outView.setUint32(4,E.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(t,e,s,r=0){const n=this._alignTo(t.byteLength,4);for(this._outView.setUint32(e,n,!0),this._outView.setUint32(e+=4,s,!0),this._writeArrayBuffer(this._outView.buffer,t,e+=4,0,t.byteLength),e+=t.byteLength;e%4;)r&&this._outView.setUint8(e,r),e++;return e}_writeArrayBuffer(t,e,s,r,n){new Uint8Array(t,s,n).set(new Uint8Array(e,r,n),0)}_textToArrayBuffer(t){return(new TextEncoder).encode(t).buffer}_alignTo(t,e){return e*Math.ceil(t/e)}}E.HEADER_SIZE=12,E.CHUNK_HEADER_SIZE=8,E.MAGIC=1179937895,E.VERSION=2;var c,A,w,T,$,F,k,v=g(63290),G=g(88159),y=g(62208),D=g(48977),I=g(78451),R=g(84161),b=g(28093),Y=g(27530),l=g(60853);(function(i){i[i.External=0]="External",i[i.DataURI=1]="DataURI",i[i.GLB=2]="GLB"})(c||(c={})),function(i){i[i.External=0]="External",i[i.DataURI=1]="DataURI",i[i.GLB=2]="GLB"}(A||(A={})),function(i){i[i.ARRAY_BUFFER=34962]="ARRAY_BUFFER",i[i.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(w||(w={})),function(i){i.SCALAR="SCALAR",i.VEC2="VEC2",i.VEC3="VEC3",i.VEC4="VEC4",i.MAT2="MAT2",i.MAT3="MAT3",i.MAT4="MAT4"}(T||(T={})),function(i){i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN"}($||($={})),function(i){i.OPAQUE="OPAQUE",i.MASK="MASK",i.BLEND="BLEND"}(F||(F={})),function(i){i[i.NoColor=0]="NoColor",i[i.FaceColor=1]="FaceColor",i[i.VertexColor=2]="VertexColor"}(k||(k={}));var f=g(67969);class tt{constructor(t,e,s,r,n){this._buffer=t,this._componentType=s,this._dataType=r,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,e.bufferViews||(e.bufferViews=[]),this.index=e.bufferViews.length,this._bufferView={buffer:t.index,byteLength:-1,target:n};const a=this._getElementSize();a>=4&&n!==w.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=a),e.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(t){const e=this._data.length;if(this._data.push(t),this._accessorIndex>=0){const s=e%this._numComponentsForDataType,r=this._accessorMin[s];this._accessorMin[s]="number"!=typeof r?t:Math.min(r,t);const n=this._accessorMax[s];this._accessorMax[s]="number"!=typeof n?t:Math.max(n,t)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return function t(e,s){return s*Math.ceil(e/s)}(this.dataSize,4)}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(t,e){switch(this._componentType){case f.g.BYTE:return new Int8Array(t,e);case f.g.FLOAT:return new Float32Array(t,e);case f.g.SHORT:return new Int16Array(t,e);case f.g.UNSIGNED_BYTE:return new Uint8Array(t,e);case f.g.UNSIGNED_INT:return new Uint32Array(t,e);case f.g.UNSIGNED_SHORT:return new Uint16Array(t,e)}}writeOutToBuffer(t,e){this._createTypedArray(t,e).set(this._data)}writeAsync(t){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=t.then(e=>{const s=new Uint8Array(e);for(let r=0;r=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=t;const e=this._numComponentsForDataType;this._accessorMin=new Array(e),this._accessorMax=new Array(e)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const t=this._getElementSize(),e=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/e;if(s%1)throw new Error("An accessor was ended with missing component values");for(let n=0;nthis._finalizedPromiseResolve=t)}finalize(){const t=this._bufferView;return new Promise(e=>{const s=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&s.push(this._asyncWritePromise),e((0,P.as)(s))}).then(()=>{this._isFinalized=!0,t.byteOffset=this.getByteOffset(),t.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()})}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case f.g.BYTE:case f.g.UNSIGNED_BYTE:return 1;case f.g.SHORT:case f.g.UNSIGNED_SHORT:return 2;case f.g.UNSIGNED_INT:case f.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case T.SCALAR:return 1;case T.VEC2:return 2;case T.VEC3:return 3;case T.VEC4:case T.MAT2:return 4;case T.MAT3:return 9;case T.MAT4:return 16}}}class J{constructor(t){this._gltf=t,this._bufferViews=[],this._isFinalized=!1,t.buffers||(t.buffers=[]),this.index=t.buffers.length;const e={byteLength:-1};t.buffers.push(e),this._buffer=e}addBufferView(t,e,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const r=new tt(this,this._gltf,t,e,s);return this._bufferViews.push(r),r}getByteOffset(t){let e=0;for(const s of this._bufferViews){if(s===t)return e;e+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(t){const e=[];for(const s of this._bufferViews){if(t&&s===t)return e;e.push(s.finalized)}return e}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const t=this._getTotalSize(),e=new ArrayBuffer(t);let s=0;for(const r of this._bufferViews)r.writeOutToBuffer(e,s),s+=r.byteSize;return e}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=new Promise(t=>{t((0,P.as)(this.getViewFinalizePromises()))}).then(()=>{this._isFinalized=!0;const t=this.getArrayBuffer();this._buffer.byteLength=t.byteLength,this._buffer.uri=t}),this._gltf.extras?.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let t=0;for(const e of this._bufferViews)t+=e.byteSize;return t}}function st(i,t){(0,y.Wi)(t.normal)&&(t.normal=new Float32Array(t.position.length));const e=i.faces,{position:s,normal:r}=t,n=e.length/3;for(let a=0;a{this._addScene(r)}),s&&e.binChunkBuffer.finalize()}_addScene(t){this.gltf.scenes||(this.gltf.scenes=[]);const e={};t.name&&(e.name=t.name),t.forEachNode(s=>{e.nodes||(e.nodes=[]);const r=this._addNode(s);e.nodes.push(r)}),this.gltf.scenes.push(e)}_addNode(t){this.gltf.nodes||(this.gltf.nodes=[]);const e={};t.name&&(e.name=t.name);const s=t.translation;(0,R.k)(s,b.Z)||(e.translation=(0,b.a)(s));const r=t.rotation;(0,D.j)(r,I.I)||(e.rotation=(0,I.b)(r));const n=t.scale;(0,R.k)(n,b.O)||(e.scale=(0,b.a)(n)),t.mesh&&t.mesh.vertexAttributes.position?e.mesh=this._addMesh(t.mesh):t.forEachNode(h=>{e.children||(e.children=[]);const o=this._addNode(h);e.children.push(o)});const a=this.gltf.nodes.length;return this.gltf.nodes.push(e),a}_addMesh(t){this.gltf.meshes||(this.gltf.meshes=[]);const e={primitives:[]},s=this.gltf.extras,r=s.options.bufferOutputType===c.GLB;let n;n=r?s.binChunkBuffer:new J(this.gltf),this.params.origin||(this.params.origin=function it(i){return(0,y.pC)(i.transform)?i.transform.getOriginPoint(i.spatialReference):new B.Z({x:i.extent.xmax-i.extent.width/2,y:i.extent.ymax-i.extent.height/2,z:i.extent.zmin,spatialReference:i.extent.spatialReference})}(t));const a=(0,l.Yq)(t.vertexAttributes,t.transform,this.params.origin,{geographic:this.params.geographic,unit:"meters"});(function et(i,t){if(i.components)for(const e of i.components)e.faces&&"smooth"===e.shading&&st(e,t)})(t,a),this._flipYZAxis(a);const h=n.addBufferView(f.g.FLOAT,T.VEC3,w.ARRAY_BUFFER);let o,u,_,d;a.normal&&(o=n.addBufferView(f.g.FLOAT,T.VEC3,w.ARRAY_BUFFER)),t.vertexAttributes.uv&&(u=n.addBufferView(f.g.FLOAT,T.VEC2,w.ARRAY_BUFFER)),a.tangent&&(_=n.addBufferView(f.g.FLOAT,T.VEC4,w.ARRAY_BUFFER)),t.vertexAttributes.color&&(d=n.addBufferView(f.g.UNSIGNED_BYTE,T.VEC4,w.ARRAY_BUFFER)),h.startAccessor("POSITION"),o&&o.startAccessor("NORMAL"),u&&u.startAccessor("TEXCOORD_0"),_&&_.startAccessor("TANGENT"),d&&d.startAccessor("COLOR_0");const M=a.position.length/3,{position:O,normal:C,tangent:m}=a,{color:x,uv:H}=t.vertexAttributes;for(let p=0;p0&&t.components[0].faces?(U=n.addBufferView(f.g.UNSIGNED_INT,T.SCALAR,w.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(U,t.components,e,Q,Z,W,j,K)):this._addMeshVertexNonIndexed(t.components,e,Q,Z,W,j,K),h.finalize(),o&&o.finalize(),u&&u.finalize(),_&&_.finalize(),U&&U.finalize(),d&&d.finalize(),r||n.finalize();const yt=this.gltf.meshes.length;return this.gltf.meshes.push(e),yt}_flipYZAxis({position:t,normal:e,tangent:s}){this._flipYZBuffer(t,3),this._flipYZBuffer(e,3),this._flipYZBuffer(s,4)}_flipYZBuffer(t,e){if(!(0,y.Wi)(t))for(let s=1,r=2;sh**2.1,n=h=>{const o=h.toRgba();return o[0]=r(o[0]/255),o[1]=r(o[1]/255),o[2]=r(o[2]/255),o};if((0,y.pC)(t.color)&&(s.pbrMetallicRoughness.baseColorFactor=n(t.color)),(0,y.pC)(t.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(t.colorTexture)}),(0,y.pC)(t.normalTexture)&&(s.normalTexture={index:this._addTexture(t.normalTexture)}),t instanceof Y.Z){if((0,y.pC)(t.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(t.emissiveTexture)}),(0,y.pC)(t.emissiveColor)){const h=n(t.emissiveColor);s.emissiveFactor=[h[0],h[1],h[2]]}(0,y.pC)(t.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(t.occlusionTexture)}),(0,y.pC)(t.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(t.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=t.metallic,s.pbrMetallicRoughness.roughnessFactor=t.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,ot.warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const a=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(t),a}_addTexture(t){const e=this.gltf.textures??[];return this.gltf.textures=e,(0,G.s1)(this._textureMap,t,()=>{const s={sampler:this._addSampler(t),source:this._addImage(t)},r=e.length;return e.push(s),r})}_addImage(t){const e=this._imageMap.get(t);if(null!=e)return e;this.gltf.images||(this.gltf.images=[]);const s={};if(t.url)s.uri=t.url;else{const n=t.data;s.extras=n;for(let h=0;h(s.mimeType=_,u));h.writeAsync(o).then(()=>{h.finalize()}),s.bufferView=h.index;break}case A.DataURI:s.uri=(0,L.$e)(n);break;default:a.promises.push((0,L.lW)(n).then(({data:h,type:o})=>{s.uri=h,s.mimeType=o}))}}const r=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(t,r),r}_addSampler(t){this.gltf.samplers||(this.gltf.samplers=[]);let e=f.e8.REPEAT,s=f.e8.REPEAT;if("string"==typeof t.wrap)switch(t.wrap){case"clamp":e=f.e8.CLAMP_TO_EDGE,s=f.e8.CLAMP_TO_EDGE;break;case"mirror":e=f.e8.MIRRORED_REPEAT,s=f.e8.MIRRORED_REPEAT}else{switch(t.wrap.vertical){case"clamp":s=f.e8.CLAMP_TO_EDGE;break;case"mirror":s=f.e8.MIRRORED_REPEAT}switch(t.wrap.horizontal){case"clamp":e=f.e8.CLAMP_TO_EDGE;break;case"mirror":e=f.e8.MIRRORED_REPEAT}}const r={wrapS:e,wrapT:s};for(let a=0;a{const d={origin:n};delete a.extras;const O=JSON.stringify(a,(C,m)=>{if("extras"!==C){if(m instanceof ArrayBuffer){if((0,L.$7)(m))switch(t.imageOutputType){case A.DataURI:case A.GLB:break;default:{const x=`img${u}.png`;return u++,d[x]=m,x}}switch(t.bufferOutputType){case c.DataURI:return(0,L.N5)(m);case c.GLB:if(_)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(_=m);default:{const x=`data${o}.bin`;return o++,d[x]=m,x}}}return m}},"number"==typeof t.jsonSpacing?t.jsonSpacing:4);return t.bufferOutputType===c.GLB||t.imageOutputType===A.GLB?d[X]=new E(O,_).buffer:d["model.gltf"]=O,d})}(i,{bufferOutputType:c.GLB,imageOutputType:A.GLB,jsonSpacing:0},t)}(e,t).then(r=>new _t(r[X],r.origin))}},57932:(q,z,g)=>{g.d(z,{$7:()=>Y,$e:()=>v,E0:()=>R,N5:()=>b,lW:()=>G});var V=g(15861),B=(g(8314),g(26584)),N=g(62208),E=g(21726);function v(l){const c=R(l);return(0,N.pC)(c)?c.toDataURL():""}function G(l){return y.apply(this,arguments)}function y(){return(y=(0,V.Z)(function*(l){const c=R(l);if((0,N.Wi)(c))throw new B.Z("imageToArrayBuffer","Unsupported image type");const A=yield D(l),w=yield new Promise(T=>c.toBlob(T,A));if(!w)throw new B.Z("imageToArrayBuffer","Failed to encode image");return{data:yield w.arrayBuffer(),type:A}})).apply(this,arguments)}function D(l){return I.apply(this,arguments)}function I(){return(I=(0,V.Z)(function*(l){if(!(l instanceof HTMLImageElement))return"image/png";const c=l.src;if((0,E.HK)(c)){const A=(0,E.sJ)(c);return"image/jpeg"===A?.mediaType?A.mediaType:"image/png"}return/\.png$/i.test(c)?"image/png":/\.(jpg|jpeg)$/i.test(c)?"image/jpeg":"image/png"})).apply(this,arguments)}function R(l){if(l instanceof HTMLCanvasElement)return l;if(l instanceof HTMLVideoElement)return null;const c=document.createElement("canvas");c.width=l.width,c.height=l.height;const A=c.getContext("2d");return l instanceof HTMLImageElement?A.drawImage(l,0,0,l.width,l.height):l instanceof ImageData&&A.putImageData(l,0,0),c}function b(l){const c=[],A=new Uint8Array(l);for(let w=0;w=20?"ste":"de")},week:{dow:1,doy:4}})}(m(5439))},2502:function(f,L,m){!function(o){"use strict";var a=function(u){return 0===u?0:1===u?1:2===u?2:u%100>=3&&u%100<=10?3:u%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},s=function(u){return function(c,h,y,w){var v=a(c),S=n[u][a(c)];return 2===v&&(S=S[h?0:1]),S.replace(/%d/i,c)}},r=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(u){return"\u0645"===u},meridiem:function(u,c,h){return u<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},postformat:function(u){return u.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(m(5439))},128:function(f,L,m){!function(o){"use strict";o.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(m(5439))},4519:function(f,L,m){!function(o){"use strict";var a={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(c){return 0===c?0:1===c?1:2===c?2:c%100>=3&&c%100<=10?3:c%100>=11?4:5},s={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(c){return function(h,y,w,v){var S=n(h),te=s[c][n(h)];return 2===S&&(te=te[y?0:1]),te.replace(/%d/i,h)}},d=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-ly",{months:d,monthsShort:d,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(c){return"\u0645"===c},meridiem:function(c,h,y){return c<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(c){return c.replace(/\u060c/g,",")},postformat:function(c){return c.replace(/\d/g,function(h){return a[h]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(m(5439))},5443:function(f,L,m){!function(o){"use strict";o.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(m(5439))},7642:function(f,L,m){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};o.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(r){return"\u0645"===r},meridiem:function(r,d,u){return r<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(r){return r.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(d){return n[d]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(m(5439))},8592:function(f,L,m){!function(o){"use strict";o.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(m(5439))},7038:function(f,L,m){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},s=function(h){return 0===h?0:1===h?1:2===h?2:h%100>=3&&h%100<=10?3:h%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},d=function(h){return function(y,w,v,S){var te=s(y),k=r[h][s(y)];return 2===te&&(k=k[w?0:1]),k.replace(/%d/i,y)}},u=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar",{months:u,monthsShort:u,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(h){return"\u0645"===h},meridiem:function(h,y,w){return h<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:d("s"),ss:d("s"),m:d("m"),mm:d("m"),h:d("h"),hh:d("h"),d:d("d"),dd:d("d"),M:d("M"),MM:d("M"),y:d("y"),yy:d("y")},preparse:function(h){return h.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(y){return n[y]}).replace(/\u060c/g,",")},postformat:function(h){return h.replace(/\d/g,function(y){return a[y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(m(5439))},1213:function(f,L,m){!function(o){"use strict";var a={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};o.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(s){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(s)},meridiem:function(s,r,d){return s<4?"gec\u0259":s<12?"s\u0259h\u0259r":s<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(s){if(0===s)return s+"-\u0131nc\u0131";var r=s%10;return s+(a[r]||a[s%100-r]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(5439))},9191:function(f,L,m){!function(o){"use strict";function n(r,d,u){return"m"===u?d?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===u?d?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":r+" "+function a(r,d){var u=r.split("_");return d%10==1&&d%100!=11?u[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?u[1]:u[2]}({ss:d?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:d?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:d?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[u],+r)}o.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:n,mm:n,h:n,hh:n,d:"\u0434\u0437\u0435\u043d\u044c",dd:n,M:"\u043c\u0435\u0441\u044f\u0446",MM:n,y:"\u0433\u043e\u0434",yy:n},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(r){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(r)},meridiem:function(r,d,u){return r<4?"\u043d\u043e\u0447\u044b":r<12?"\u0440\u0430\u043d\u0456\u0446\u044b":r<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(r,d){switch(d){case"M":case"d":case"DDD":case"w":case"W":return r%10!=2&&r%10!=3||r%100==12||r%100==13?r+"-\u044b":r+"-\u0456";case"D":return r+"-\u0433\u0430";default:return r}},week:{dow:1,doy:7}})}(m(5439))},322:function(f,L,m){!function(o){"use strict";o.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var s=n%10,r=n%100;return 0===n?n+"-\u0435\u0432":0===r?n+"-\u0435\u043d":r>10&&r<20?n+"-\u0442\u0438":1===s?n+"-\u0432\u0438":2===s?n+"-\u0440\u0438":7===s||8===s?n+"-\u043c\u0438":n+"-\u0442\u0438"},week:{dow:1,doy:7}})}(m(5439))},8042:function(f,L,m){!function(o){"use strict";o.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(m(5439))},5903:function(f,L,m){!function(o){"use strict";var a={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===d?r<4?r:r+12:"\u09ad\u09cb\u09b0"===d||"\u09b8\u0995\u09be\u09b2"===d?r:"\u09a6\u09c1\u09aa\u09c1\u09b0"===d?r>=3?r:r+12:"\u09ac\u09bf\u0995\u09be\u09b2"===d||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u09b0\u09be\u09a4":r<6?"\u09ad\u09cb\u09b0":r<12?"\u09b8\u0995\u09be\u09b2":r<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<18?"\u09ac\u09bf\u0995\u09be\u09b2":r<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(m(5439))},9620:function(f,L,m){!function(o){"use strict";var a={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===d&&r>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===d&&r<5||"\u09ac\u09bf\u0995\u09be\u09b2"===d?r+12:r},meridiem:function(r,d,u){return r<4?"\u09b0\u09be\u09a4":r<10?"\u09b8\u0995\u09be\u09b2":r<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(m(5439))},9645:function(f,L,m){!function(o){"use strict";var a={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};o.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(r){return r.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===d&&r>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===d&&r<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===d?r+12:r},meridiem:function(r,d,u){return r<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":r<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":r<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":r<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(m(5439))},5020:function(f,L,m){!function(o){"use strict";function a(k,G,fe){return k+" "+function r(k,G){return 2===G?function d(k){var G={m:"v",b:"v",d:"z"};return void 0===G[k.charAt(0)]?k:G[k.charAt(0)]+k.substring(1)}(k):k}({mm:"munutenn",MM:"miz",dd:"devezh"}[fe],k)}function s(k){return k>9?s(k%10):k}var u=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],c=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,S=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];o.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:S,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:S,monthsRegex:c,monthsShortRegex:c,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:u,longMonthsParse:u,shortMonthsParse:u,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:a,h:"un eur",hh:"%d eur",d:"un devezh",dd:a,M:"ur miz",MM:a,y:"ur bloaz",yy:function n(k){switch(s(k)){case 1:case 3:case 4:case 5:case 9:return k+" bloaz";default:return k+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(k){return k+(1===k?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(k){return"g.m."===k},meridiem:function(k,G,fe){return k<12?"a.m.":"g.m."}})}(m(5439))},4792:function(f,L,m){!function(o){"use strict";function a(s,r,d){var u=s+" ";switch(d){case"ss":return u+(1===s?"sekunda":2===s||3===s||4===s?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return u+(1===s?"minuta":2===s||3===s||4===s?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return u+(1===s?"sat":2===s||3===s||4===s?"sata":"sati");case"dd":return u+(1===s?"dan":"dana");case"MM":return u+(1===s?"mjesec":2===s||3===s||4===s?"mjeseca":"mjeseci");case"yy":return u+(1===s?"godina":2===s||3===s||4===s?"godine":"godina")}}o.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(5439))},7980:function(f,L,m){!function(o){"use strict";o.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(n,s){var r=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"\xe8";return("w"===s||"W"===s)&&(r="a"),n+r},week:{dow:1,doy:4}})}(m(5439))},7322:function(f,L,m){!function(o){"use strict";var a={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),s=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function d(h){return h>1&&h<5&&1!=~~(h/10)}function u(h,y,w,v){var S=h+" ";switch(w){case"s":return y||v?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return y||v?S+(d(h)?"sekundy":"sekund"):S+"sekundami";case"m":return y?"minuta":v?"minutu":"minutou";case"mm":return y||v?S+(d(h)?"minuty":"minut"):S+"minutami";case"h":return y?"hodina":v?"hodinu":"hodinou";case"hh":return y||v?S+(d(h)?"hodiny":"hodin"):S+"hodinami";case"d":return y||v?"den":"dnem";case"dd":return y||v?S+(d(h)?"dny":"dn\xed"):S+"dny";case"M":return y||v?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return y||v?S+(d(h)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):S+"m\u011bs\xedci";case"y":return y||v?"rok":"rokem";case"yy":return y||v?S+(d(h)?"roky":"let"):S+"lety"}}o.defineLocale("cs",{months:a,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:u,ss:u,m:u,mm:u,h:u,hh:u,d:u,dd:u,M:u,MM:u,y:u,yy:u},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},365:function(f,L,m){!function(o){"use strict";o.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(n){return n+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(n)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(n)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(m(5439))},2092:function(f,L,m){!function(o){"use strict";o.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var r="";return n>20?r=40===n||50===n||60===n||80===n||100===n?"fed":"ain":n>0&&(r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][n]),n+r},week:{dow:1,doy:4}})}(m(5439))},7387:function(f,L,m){!function(o){"use strict";o.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},9459:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return r?c[d][0]:c[d][1]}o.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},3694:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return r?c[d][0]:c[d][1]}o.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},4307:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return r?c[d][0]:c[d][1]}o.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},9659:function(f,L,m){!function(o){"use strict";var a=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];o.defineLocale("dv",{months:a,monthsShort:a,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(r){return"\u0789\u078a"===r},meridiem:function(r,d,u){return r<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(m(5439))},3460:function(f,L,m){!function(o){"use strict";o.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(s,r){return s?"string"==typeof r&&/D/.test(r.substring(0,r.indexOf("MMMM")))?this._monthsGenitiveEl[s.month()]:this._monthsNominativeEl[s.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(s,r,d){return s>11?d?"\u03bc\u03bc":"\u039c\u039c":d?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(s){return"\u03bc"===(s+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(s,r){var d=this._calendarEl[s],u=r&&r.hours();return function a(s){return typeof Function<"u"&&s instanceof Function||"[object Function]"===Object.prototype.toString.call(s)}(d)&&(d=d.apply(r)),d.replace("{}",u%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(m(5439))},4369:function(f,L,m){!function(o){"use strict";o.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:0,doy:4}})}(m(5439))},530:function(f,L,m){!function(o){"use strict";o.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")}})}(m(5439))},9998:function(f,L,m){!function(o){"use strict";o.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(5439))},3391:function(f,L,m){!function(o){"use strict";o.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(5439))},5414:function(f,L,m){!function(o){"use strict";o.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")}})}(m(5439))},9615:function(f,L,m){!function(o){"use strict";o.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:0,doy:6}})}(m(5439))},1248:function(f,L,m){!function(o){"use strict";o.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(5439))},3767:function(f,L,m){!function(o){"use strict";o.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(5439))},4530:function(f,L,m){!function(o){"use strict";o.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,s,r){return n>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(m(5439))},8944:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(5439))},9116:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(m(5439))},3609:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(m(5439))},6866:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(m(5439))},6725:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[s+"sekundi",s+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[s+" minuti",s+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[s+" tunni",s+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[s+" kuu",s+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[s+" aasta",s+" aastat"]};return r?c[d][2]?c[d][2]:c[d][1]:u?c[d][0]:c[d][1]}o.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d p\xe4eva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},7931:function(f,L,m){!function(o){"use strict";o.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(5439))},6417:function(f,L,m){!function(o){"use strict";var a={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};o.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(r){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(r)},meridiem:function(r,d,u){return r<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/[\u06f0-\u06f9]/g,function(d){return n[d]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(m(5439))},944:function(f,L,m){!function(o){"use strict";var a="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",a[7],a[8],a[9]];function s(u,c,h,y){var w="";switch(h){case"s":return y?"muutaman sekunnin":"muutama sekunti";case"ss":w=y?"sekunnin":"sekuntia";break;case"m":return y?"minuutin":"minuutti";case"mm":w=y?"minuutin":"minuuttia";break;case"h":return y?"tunnin":"tunti";case"hh":w=y?"tunnin":"tuntia";break;case"d":return y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":w=y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return y?"kuukauden":"kuukausi";case"MM":w=y?"kuukauden":"kuukautta";break;case"y":return y?"vuoden":"vuosi";case"yy":w=y?"vuoden":"vuotta"}return function r(u,c){return u<10?c?n[u]:a[u]:u}(u,y)+" "+w}o.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},1766:function(f,L,m){!function(o){"use strict";o.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(m(5439))},5867:function(f,L,m){!function(o){"use strict";o.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},6848:function(f,L,m){!function(o){"use strict";o.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,s){switch(s){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}}})}(m(5439))},7773:function(f,L,m){!function(o){"use strict";o.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,s){switch(s){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}})}(m(5439))},1636:function(f,L,m){!function(o){"use strict";var s=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,r=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];o.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(u,c){switch(c){case"D":return u+(1===u?"er":"");default:case"M":case"Q":case"DDD":case"d":return u+(1===u?"er":"e");case"w":case"W":return u+(1===u?"re":"e")}},week:{dow:1,doy:4}})}(m(5439))},4940:function(f,L,m){!function(o){"use strict";var a="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");o.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(r,d){return r?/-MMM-/.test(d)?n[r.month()]:a[r.month()]:a},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(1===r||8===r||r>=20?"ste":"de")},week:{dow:1,doy:4}})}(m(5439))},1402:function(f,L,m){!function(o){"use strict";o.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(c){return c+(1===c?"d":c%10==2?"na":"mh")},week:{dow:1,doy:4}})}(m(5439))},6924:function(f,L,m){!function(o){"use strict";o.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(c){return c+(1===c?"d":c%10==2?"na":"mh")},week:{dow:1,doy:4}})}(m(5439))},6398:function(f,L,m){!function(o){"use strict";o.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return 0===n.indexOf("un")?"n"+n:"en "+n},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(5439))},2457:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[s+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",s+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[s+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",s+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[s+" \u0935\u0930\u093e\u0902\u0928\u0940",s+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[s+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",s+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[s+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",s+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[s+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",s+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return u?c[d][0]:c[d][1]}o.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(s,r){return"D"===r?s+"\u0935\u0947\u0930":s},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(s,r){return 12===s&&(s=0),"\u0930\u093e\u0924\u0940"===r?s<4?s:s+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===r?s:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===r?s>12?s:s+12:"\u0938\u093e\u0902\u091c\u0947"===r?s+12:void 0},meridiem:function(s,r,d){return s<4?"\u0930\u093e\u0924\u0940":s<12?"\u0938\u0915\u093e\u0933\u0940\u0902":s<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":s<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(m(5439))},2545:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={s:["thoddea sekondamni","thodde sekond"],ss:[s+" sekondamni",s+" sekond"],m:["eka mintan","ek minut"],mm:[s+" mintamni",s+" mintam"],h:["eka voran","ek vor"],hh:[s+" voramni",s+" voram"],d:["eka disan","ek dis"],dd:[s+" disamni",s+" dis"],M:["eka mhoinean","ek mhoino"],MM:[s+" mhoineamni",s+" mhoine"],y:["eka vorsan","ek voros"],yy:[s+" vorsamni",s+" vorsam"]};return u?c[d][0]:c[d][1]}o.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(s,r){return"D"===r?s+"er":s},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(s,r){return 12===s&&(s=0),"rati"===r?s<4?s:s+12:"sokallim"===r?s:"donparam"===r?s>12?s:s+12:"sanje"===r?s+12:void 0},meridiem:function(s,r,d){return s<4?"rati":s<12?"sokallim":s<16?"donparam":s<20?"sanje":"rati"}})}(m(5439))},2641:function(f,L,m){!function(o){"use strict";var a={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};o.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(r){return r.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0ab0\u0abe\u0aa4"===d?r<4?r:r+12:"\u0ab8\u0ab5\u0abe\u0ab0"===d?r:"\u0aac\u0aaa\u0acb\u0ab0"===d?r>=10?r:r+12:"\u0ab8\u0abe\u0a82\u0a9c"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u0ab0\u0abe\u0aa4":r<10?"\u0ab8\u0ab5\u0abe\u0ab0":r<17?"\u0aac\u0aaa\u0acb\u0ab0":r<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(m(5439))},7536:function(f,L,m){!function(o){"use strict";o.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(n){return 2===n?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":n+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(n){return 2===n?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":n+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(n){return 2===n?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":n+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(n){return 2===n?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":n%10==0&&10!==n?n+" \u05e9\u05e0\u05d4":n+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(n){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(n)},meridiem:function(n,s,r){return n<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":n<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":n<12?r?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":n<18?r?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(m(5439))},6335:function(f,L,m){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},s=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];o.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:s,longMonthsParse:s,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(u){return u.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(c){return n[c]})},postformat:function(u){return u.replace(/\d/g,function(c){return a[c]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(u,c){return 12===u&&(u=0),"\u0930\u093e\u0924"===c?u<4?u:u+12:"\u0938\u0941\u092c\u0939"===c?u:"\u0926\u094b\u092a\u0939\u0930"===c?u>=10?u:u+12:"\u0936\u093e\u092e"===c?u+12:void 0},meridiem:function(u,c,h){return u<4?"\u0930\u093e\u0924":u<10?"\u0938\u0941\u092c\u0939":u<17?"\u0926\u094b\u092a\u0939\u0930":u<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(m(5439))},7458:function(f,L,m){!function(o){"use strict";function a(s,r,d){var u=s+" ";switch(d){case"ss":return u+(1===s?"sekunda":2===s||3===s||4===s?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return u+(1===s?"minuta":2===s||3===s||4===s?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return u+(1===s?"sat":2===s||3===s||4===s?"sata":"sati");case"dd":return u+(1===s?"dan":"dana");case"MM":return u+(1===s?"mjesec":2===s||3===s||4===s?"mjeseca":"mjeseci");case"yy":return u+(1===s?"godina":2===s||3===s||4===s?"godine":"godina")}}o.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(5439))},6540:function(f,L,m){!function(o){"use strict";var a="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(d,u,c,h){var y=d;switch(c){case"s":return h||u?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return y+(h||u)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(h||u?" perc":" perce");case"mm":return y+(h||u?" perc":" perce");case"h":return"egy"+(h||u?" \xf3ra":" \xf3r\xe1ja");case"hh":return y+(h||u?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(h||u?" nap":" napja");case"dd":return y+(h||u?" nap":" napja");case"M":return"egy"+(h||u?" h\xf3nap":" h\xf3napja");case"MM":return y+(h||u?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(h||u?" \xe9v":" \xe9ve");case"yy":return y+(h||u?" \xe9v":" \xe9ve")}return""}function s(d){return(d?"":"[m\xfalt] ")+"["+a[this.day()]+"] LT[-kor]"}o.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(d){return"u"===d.charAt(1).toLowerCase()},meridiem:function(d,u,c){return d<12?!0===c?"de":"DE":!0===c?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return s.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return s.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},5283:function(f,L,m){!function(o){"use strict";o.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(n){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(n)},meridiem:function(n){return n<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":n<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":n<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(n,s){switch(s){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-\u056b\u0576":n+"-\u0580\u0564";default:return n}},week:{dow:1,doy:7}})}(m(5439))},8780:function(f,L,m){!function(o){"use strict";o.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,s){return 12===n&&(n=0),"pagi"===s?n:"siang"===s?n>=11?n:n+12:"sore"===s||"malam"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"pagi":n<15?"siang":n<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(m(5439))},4205:function(f,L,m){!function(o){"use strict";function a(r){return r%100==11||r%10!=1}function n(r,d,u,c){var h=r+" ";switch(u){case"s":return d||c?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return a(r)?h+(d||c?"sek\xfandur":"sek\xfandum"):h+"sek\xfanda";case"m":return d?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return a(r)?h+(d||c?"m\xedn\xfatur":"m\xedn\xfatum"):d?h+"m\xedn\xfata":h+"m\xedn\xfatu";case"hh":return a(r)?h+(d||c?"klukkustundir":"klukkustundum"):h+"klukkustund";case"d":return d?"dagur":c?"dag":"degi";case"dd":return a(r)?d?h+"dagar":h+(c?"daga":"d\xf6gum"):d?h+"dagur":h+(c?"dag":"degi");case"M":return d?"m\xe1nu\xf0ur":c?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return a(r)?d?h+"m\xe1nu\xf0ir":h+(c?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):d?h+"m\xe1nu\xf0ur":h+(c?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return d||c?"\xe1r":"\xe1ri";case"yy":return a(r)?h+(d||c?"\xe1r":"\xe1rum"):h+(d||c?"\xe1r":"\xe1ri")}}o.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},9985:function(f,L,m){!function(o){"use strict";o.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(5439))},4211:function(f,L,m){!function(o){"use strict";o.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(5439))},1003:function(f,L,m){!function(o){"use strict";o.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(n,s){return"\u5143"===s[1]?1:parseInt(s[1]||n,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(n){return"\u5348\u5f8c"===n},meridiem:function(n,s,r){return n<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(n){return n.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(n){return this.week()!==n.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(n,s){switch(s){case"y":return 1===n?"\u5143\u5e74":n+"\u5e74";case"d":case"D":case"DDD":return n+"\u65e5";default:return n}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(m(5439))},420:function(f,L,m){!function(o){"use strict";o.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,s){return 12===n&&(n=0),"enjing"===s?n:"siyang"===s?n>=11?n:n+12:"sonten"===s||"ndalu"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"enjing":n<15?"siyang":n<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(m(5439))},851:function(f,L,m){!function(o){"use strict";o.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(n){return n.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(s,r,d){return"\u10d8"===d?r+"\u10e8\u10d8":r+d+"\u10e8\u10d8"})},past:function(n){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(n)?n.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(n)?n.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):n},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(n){return 0===n?n:1===n?n+"-\u10da\u10d8":n<20||n<=100&&n%20==0||n%100==0?"\u10db\u10d4-"+n:n+"-\u10d4"},week:{dow:1,doy:7}})}(m(5439))},6074:function(f,L,m){!function(o){"use strict";var a={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};o.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(s){return s+(a[s]||a[s%10]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(5439))},3343:function(f,L,m){!function(o){"use strict";var a={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};o.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(r){return"\u179b\u17d2\u1784\u17b6\u1785"===r},meridiem:function(r,d,u){return r<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(r){return r.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},week:{dow:1,doy:4}})}(m(5439))},4799:function(f,L,m){!function(o){"use strict";var a={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};o.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(r){return r.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===d?r<4?r:r+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===d?r:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===d?r>=10?r:r+12:"\u0cb8\u0c82\u0c9c\u0cc6"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":r<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":r<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":r<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(r){return r+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(m(5439))},3549:function(f,L,m){!function(o){"use strict";o.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\uc77c";case"M":return n+"\uc6d4";case"w":case"W":return n+"\uc8fc";default:return n}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(n){return"\uc624\ud6c4"===n},meridiem:function(n,s,r){return n<12?"\uc624\uc804":"\uc624\ud6c4"}})}(m(5439))},1037:function(f,L,m){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},s=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];o.defineLocale("ku",{months:s,monthsShort:s,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(d){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(d)},meridiem:function(d,u,c){return d<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(d){return d.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(u){return n[u]}).replace(/\u060c/g,",")},postformat:function(d){return d.replace(/\d/g,function(u){return a[u]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(m(5439))},3125:function(f,L,m){!function(o){"use strict";var a={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};o.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(s){return s+(a[s]||a[s%10]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(5439))},9586:function(f,L,m){!function(o){"use strict";function a(u,c,h,y){var w={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return c?w[h][0]:w[h][1]}function r(u){if(u=parseInt(u,10),isNaN(u))return!1;if(u<0)return!0;if(u<10)return 4<=u&&u<=7;if(u<100){var c=u%10;return r(0===c?u/10:c)}if(u<1e4){for(;u>=10;)u/=10;return r(u)}return r(u/=1e3)}o.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function n(u){return r(u.substr(0,u.indexOf(" ")))?"a "+u:"an "+u},past:function s(u){return r(u.substr(0,u.indexOf(" ")))?"viru "+u:"virun "+u},s:"e puer Sekonnen",ss:"%d Sekonnen",m:a,mm:"%d Minutten",h:a,hh:"%d Stonnen",d:a,dd:"%d Deeg",M:a,MM:"%d M\xe9int",y:a,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},2349:function(f,L,m){!function(o){"use strict";o.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(n){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===n},meridiem:function(n,s,r){return n<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(n){return"\u0e97\u0eb5\u0ec8"+n}})}(m(5439))},2400:function(f,L,m){!function(o){"use strict";var a={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function s(h,y,w,v){return y?d(w)[0]:v?d(w)[1]:d(w)[2]}function r(h){return h%10==0||h>10&&h<20}function d(h){return a[h].split("_")}function u(h,y,w,v){var S=h+" ";return 1===h?S+s(0,y,w[0],v):y?S+(r(h)?d(w)[1]:d(w)[0]):v?S+d(w)[1]:S+(r(h)?d(w)[1]:d(w)[2])}o.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function n(h,y,w,v){return y?"kelios sekund\u0117s":v?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:u,m:s,mm:u,h:s,hh:u,d:s,dd:u,M:s,MM:u,y:s,yy:u},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(h){return h+"-oji"},week:{dow:1,doy:4}})}(m(5439))},9991:function(f,L,m){!function(o){"use strict";var a={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(c,h,y){return y?h%10==1&&h%100!=11?c[2]:c[3]:h%10==1&&h%100!=11?c[0]:c[1]}function s(c,h,y){return c+" "+n(a[y],c,h)}function r(c,h,y){return n(a[y],c,h)}o.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function d(c,h){return h?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},8477:function(f,L,m){!function(o){"use strict";var a={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(s,r){return 1===s?r[0]:s>=2&&s<=4?r[1]:r[2]},translate:function(s,r,d){var u=a.words[d];return 1===d.length?r?u[0]:u[1]:s+" "+a.correctGrammaticalCase(s,u)}};o.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mjesec",MM:a.translate,y:"godinu",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(5439))},5118:function(f,L,m){!function(o){"use strict";o.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(5439))},5943:function(f,L,m){!function(o){"use strict";o.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var s=n%10,r=n%100;return 0===n?n+"-\u0435\u0432":0===r?n+"-\u0435\u043d":r>10&&r<20?n+"-\u0442\u0438":1===s?n+"-\u0432\u0438":2===s?n+"-\u0440\u0438":7===s||8===s?n+"-\u043c\u0438":n+"-\u0442\u0438"},week:{dow:1,doy:7}})}(m(5439))},3849:function(f,L,m){!function(o){"use strict";o.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(n,s){return 12===n&&(n=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===s&&n>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===s||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===s?n+12:n},meridiem:function(n,s,r){return n<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":n<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":n<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":n<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(m(5439))},1977:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){switch(d){case"s":return r?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return s+(r?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return s+(r?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return s+(r?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return s+(r?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return s+(r?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return s+(r?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return s}}o.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(s){return"\u04ae\u0425"===s},meridiem:function(s,r,d){return s<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(s,r){switch(r){case"d":case"D":case"DDD":return s+" \u04e9\u0434\u04e9\u0440";default:return s}}})}(m(5439))},6184:function(f,L,m){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function s(d,u,c,h){var y="";if(u)switch(c){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":y="%d \u0924\u093e\u0938";break;case"d":y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":y="%d \u0926\u093f\u0935\u0938";break;case"M":y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(c){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return y.replace(/%d/i,d)}o.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},preparse:function(d){return d.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(u){return n[u]})},postformat:function(d){return d.replace(/\d/g,function(u){return a[u]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(d,u){return 12===d&&(d=0),"\u092a\u0939\u093e\u091f\u0947"===u||"\u0938\u0915\u093e\u0933\u0940"===u?d:"\u0926\u0941\u092a\u093e\u0930\u0940"===u||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===u||"\u0930\u093e\u0924\u094d\u0930\u0940"===u?d>=12?d:d+12:void 0},meridiem:function(d,u,c){return d>=0&&d<6?"\u092a\u0939\u093e\u091f\u0947":d<12?"\u0938\u0915\u093e\u0933\u0940":d<17?"\u0926\u0941\u092a\u093e\u0930\u0940":d<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(m(5439))},4524:function(f,L,m){!function(o){"use strict";o.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,s){return 12===n&&(n=0),"pagi"===s?n:"tengahari"===s?n>=11?n:n+12:"petang"===s||"malam"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(m(5439))},485:function(f,L,m){!function(o){"use strict";o.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,s){return 12===n&&(n=0),"pagi"===s?n:"tengahari"===s?n>=11?n:n+12:"petang"===s||"malam"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(m(5439))},6681:function(f,L,m){!function(o){"use strict";o.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(5439))},2024:function(f,L,m){!function(o){"use strict";var a={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};o.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(r){return r.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},week:{dow:1,doy:4}})}(m(5439))},2688:function(f,L,m){!function(o){"use strict";o.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},8914:function(f,L,m){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};o.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(r){return r.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0930\u093e\u0924\u093f"===d?r<4?r:r+12:"\u092c\u093f\u0939\u093e\u0928"===d?r:"\u0926\u093f\u0909\u0901\u0938\u094b"===d?r>=10?r:r+12:"\u0938\u093e\u0901\u091d"===d?r+12:void 0},meridiem:function(r,d,u){return r<3?"\u0930\u093e\u0924\u093f":r<12?"\u092c\u093f\u0939\u093e\u0928":r<16?"\u0926\u093f\u0909\u0901\u0938\u094b":r<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(m(5439))},2272:function(f,L,m){!function(o){"use strict";var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(u){return u+(1===u||8===u||u>=20?"ste":"de")},week:{dow:1,doy:4}})}(m(5439))},1758:function(f,L,m){!function(o){"use strict";var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(u){return u+(1===u||8===u||u>=20?"ste":"de")},week:{dow:1,doy:4}})}(m(5439))},1510:function(f,L,m){!function(o){"use strict";o.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},2797:function(f,L,m){!function(o){"use strict";o.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(n,s){var r=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"\xe8";return("w"===s||"W"===s)&&(r="a"),n+r},week:{dow:1,doy:4}})}(m(5439))},7944:function(f,L,m){!function(o){"use strict";var a={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};o.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(r){return r.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0a30\u0a3e\u0a24"===d?r<4?r:r+12:"\u0a38\u0a35\u0a47\u0a30"===d?r:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===d?r>=10?r:r+12:"\u0a38\u0a3c\u0a3e\u0a2e"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u0a30\u0a3e\u0a24":r<10?"\u0a38\u0a35\u0a47\u0a30":r<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":r<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(m(5439))},1605:function(f,L,m){!function(o){"use strict";var a="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(c){return c%10<5&&c%10>1&&~~(c/10)%10!=1}function d(c,h,y){var w=c+" ";switch(y){case"ss":return w+(r(c)?"sekundy":"sekund");case"m":return h?"minuta":"minut\u0119";case"mm":return w+(r(c)?"minuty":"minut");case"h":return h?"godzina":"godzin\u0119";case"hh":return w+(r(c)?"godziny":"godzin");case"ww":return w+(r(c)?"tygodnie":"tygodni");case"MM":return w+(r(c)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return w+(r(c)?"lata":"lat")}}o.defineLocale("pl",{months:function(c,h){return c?/D MMMM/.test(h)?n[c.month()]:a[c.month()]:a},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:d,m:d,mm:d,h:d,hh:d,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:d,M:"miesi\u0105c",MM:d,y:"rok",yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},3840:function(f,L,m){!function(o){"use strict";o.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(m(5439))},4225:function(f,L,m){!function(o){"use strict";o.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(5439))},5128:function(f,L,m){!function(o){"use strict";function a(s,r,d){var c=" ";return(s%100>=20||s>=100&&s%100==0)&&(c=" de "),s+c+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[d]}o.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:a,m:"un minut",mm:a,h:"o or\u0103",hh:a,d:"o zi",dd:a,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:a,M:"o lun\u0103",MM:a,y:"un an",yy:a},week:{dow:1,doy:7}})}(m(5439))},5127:function(f,L,m){!function(o){"use strict";function n(d,u,c){return"m"===c?u?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":d+" "+function a(d,u){var c=d.split("_");return u%10==1&&u%100!=11?c[0]:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?c[1]:c[2]}({ss:u?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:u?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[c],+d)}var s=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];o.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(d){if(d.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(d){if(d.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0447\u0430\u0441",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:n,M:"\u043c\u0435\u0441\u044f\u0446",MM:n,y:"\u0433\u043e\u0434",yy:n},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(d){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(d)},meridiem:function(d,u,c){return d<4?"\u043d\u043e\u0447\u0438":d<12?"\u0443\u0442\u0440\u0430":d<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(d,u){switch(u){case"M":case"d":case"DDD":return d+"-\u0439";case"D":return d+"-\u0433\u043e";case"w":case"W":return d+"-\u044f";default:return d}},week:{dow:1,doy:4}})}(m(5439))},2525:function(f,L,m){!function(o){"use strict";var a=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];o.defineLocale("sd",{months:a,monthsShort:a,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,d,u){return r<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(m(5439))},9893:function(f,L,m){!function(o){"use strict";o.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},3123:function(f,L,m){!function(o){"use strict";o.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(n){return n+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(n){return"\u0db4.\u0dc0."===n||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===n},meridiem:function(n,s,r){return n>11?r?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":r?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(m(5439))},3027:function(f,L,m){!function(o){"use strict";var a="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function s(u){return u>1&&u<5}function r(u,c,h,y){var w=u+" ";switch(h){case"s":return c||y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return c||y?w+(s(u)?"sekundy":"sek\xfand"):w+"sekundami";case"m":return c?"min\xfata":y?"min\xfatu":"min\xfatou";case"mm":return c||y?w+(s(u)?"min\xfaty":"min\xfat"):w+"min\xfatami";case"h":return c?"hodina":y?"hodinu":"hodinou";case"hh":return c||y?w+(s(u)?"hodiny":"hod\xedn"):w+"hodinami";case"d":return c||y?"de\u0148":"d\u0148om";case"dd":return c||y?w+(s(u)?"dni":"dn\xed"):w+"d\u0148ami";case"M":return c||y?"mesiac":"mesiacom";case"MM":return c||y?w+(s(u)?"mesiace":"mesiacov"):w+"mesiacmi";case"y":return c||y?"rok":"rokom";case"yy":return c||y?w+(s(u)?"roky":"rokov"):w+"rokmi"}}o.defineLocale("sk",{months:a,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},8106:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c=s+" ";switch(d){case"s":return r||u?"nekaj sekund":"nekaj sekundami";case"ss":return c+(1===s?r?"sekundo":"sekundi":2===s?r||u?"sekundi":"sekundah":s<5?r||u?"sekunde":"sekundah":"sekund");case"m":return r?"ena minuta":"eno minuto";case"mm":return c+(1===s?r?"minuta":"minuto":2===s?r||u?"minuti":"minutama":s<5?r||u?"minute":"minutami":r||u?"minut":"minutami");case"h":return r?"ena ura":"eno uro";case"hh":return c+(1===s?r?"ura":"uro":2===s?r||u?"uri":"urama":s<5?r||u?"ure":"urami":r||u?"ur":"urami");case"d":return r||u?"en dan":"enim dnem";case"dd":return c+(1===s?r||u?"dan":"dnem":2===s?r||u?"dni":"dnevoma":r||u?"dni":"dnevi");case"M":return r||u?"en mesec":"enim mesecem";case"MM":return c+(1===s?r||u?"mesec":"mesecem":2===s?r||u?"meseca":"mesecema":s<5?r||u?"mesece":"meseci":r||u?"mesecev":"meseci");case"y":return r||u?"eno leto":"enim letom";case"yy":return c+(1===s?r||u?"leto":"letom":2===s?r||u?"leti":"letoma":s<5?r||u?"leta":"leti":r||u?"let":"leti")}}o.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(5439))},8799:function(f,L,m){!function(o){"use strict";o.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n,s,r){return n<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},2872:function(f,L,m){!function(o){"use strict";var a={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(s,r){return s%10>=1&&s%10<=4&&(s%100<10||s%100>=20)?s%10==1?r[0]:r[1]:r[2]},translate:function(s,r,d,u){var h,c=a.words[d];return 1===d.length?"y"===d&&r?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":u||r?c[0]:c[1]:(h=a.correctGrammaticalCase(s,c),"yy"===d&&r&&"\u0433\u043e\u0434\u0438\u043d\u0443"===h?s+" \u0433\u043e\u0434\u0438\u043d\u0430":s+" "+h)}};o.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(5439))},7954:function(f,L,m){!function(o){"use strict";var a={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(s,r){return s%10>=1&&s%10<=4&&(s%100<10||s%100>=20)?s%10==1?r[0]:r[1]:r[2]},translate:function(s,r,d,u){var h,c=a.words[d];return 1===d.length?"y"===d&&r?"jedna godina":u||r?c[0]:c[1]:(h=a.correctGrammaticalCase(s,c),"yy"===d&&r&&"godinu"===h?s+" godina":s+" "+h)}};o.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(5439))},6167:function(f,L,m){!function(o){"use strict";o.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(n,s,r){return n<11?"ekuseni":n<15?"emini":n<19?"entsambama":"ebusuku"},meridiemHour:function(n,s){return 12===n&&(n=0),"ekuseni"===s?n:"emini"===s?n>=11?n:n+12:"entsambama"===s||"ebusuku"===s?0===n?0:n+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(m(5439))},9713:function(f,L,m){!function(o){"use strict";o.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?":e":1===s||2===s?":a":":e")},week:{dow:1,doy:4}})}(m(5439))},1982:function(f,L,m){!function(o){"use strict";o.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(m(5439))},2732:function(f,L,m){!function(o){"use strict";var a={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};o.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(r){return r+"\u0bb5\u0ba4\u0bc1"},preparse:function(r){return r.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(r,d,u){return r<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":r<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":r<10?" \u0b95\u0bbe\u0bb2\u0bc8":r<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":r<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":r<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(r,d){return 12===r&&(r=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===d?r<2?r:r+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===d||"\u0b95\u0bbe\u0bb2\u0bc8"===d||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===d&&r>=10?r:r+12},week:{dow:0,doy:6}})}(m(5439))},3636:function(f,L,m){!function(o){"use strict";o.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===s?n<4?n:n+12:"\u0c09\u0c26\u0c2f\u0c02"===s?n:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===s?n>=10?n:n+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===s?n+12:void 0},meridiem:function(n,s,r){return n<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":n<10?"\u0c09\u0c26\u0c2f\u0c02":n<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":n<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(m(5439))},2115:function(f,L,m){!function(o){"use strict";o.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(5439))},9801:function(f,L,m){!function(o){"use strict";var a={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};o.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(s,r){return 12===s&&(s=0),"\u0448\u0430\u0431"===r?s<4?s:s+12:"\u0441\u0443\u0431\u04b3"===r?s:"\u0440\u04ef\u0437"===r?s>=11?s:s+12:"\u0431\u0435\u0433\u043e\u04b3"===r?s+12:void 0},meridiem:function(s,r,d){return s<4?"\u0448\u0430\u0431":s<11?"\u0441\u0443\u0431\u04b3":s<16?"\u0440\u04ef\u0437":s<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(s){return s+(a[s]||a[s%10]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(5439))},2868:function(f,L,m){!function(o){"use strict";o.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(n){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===n},meridiem:function(n,s,r){return n<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(m(5439))},1310:function(f,L,m){!function(o){"use strict";var a={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};o.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(s,r){switch(r){case"d":case"D":case"Do":case"DD":return s;default:if(0===s)return s+"'unjy";var d=s%10;return s+(a[d]||a[s%100-d]||a[s>=100?100:null])}},week:{dow:1,doy:7}})}(m(5439))},2360:function(f,L,m){!function(o){"use strict";o.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(m(5439))},6645:function(f,L,m){!function(o){"use strict";var a="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(c,h,y,w){var v=function d(c){var h=Math.floor(c%1e3/100),y=Math.floor(c%100/10),w=c%10,v="";return h>0&&(v+=a[h]+"vatlh"),y>0&&(v+=(""!==v?" ":"")+a[y]+"maH"),w>0&&(v+=(""!==v?" ":"")+a[w]),""===v?"pagh":v}(c);switch(y){case"ss":return v+" lup";case"mm":return v+" tup";case"hh":return v+" rep";case"dd":return v+" jaj";case"MM":return v+" jar";case"yy":return v+" DIS"}}o.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function n(c){var h=c;return-1!==c.indexOf("jaj")?h.slice(0,-3)+"leS":-1!==c.indexOf("jar")?h.slice(0,-3)+"waQ":-1!==c.indexOf("DIS")?h.slice(0,-3)+"nem":h+" pIq"},past:function s(c){var h=c;return-1!==c.indexOf("jaj")?h.slice(0,-3)+"Hu\u2019":-1!==c.indexOf("jar")?h.slice(0,-3)+"wen":-1!==c.indexOf("DIS")?h.slice(0,-3)+"ben":h+" ret"},s:"puS lup",ss:r,m:"wa\u2019 tup",mm:r,h:"wa\u2019 rep",hh:r,d:"wa\u2019 jaj",dd:r,M:"wa\u2019 jar",MM:r,y:"wa\u2019 DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},8374:function(f,L,m){!function(o){"use strict";var a={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};o.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(s,r,d){return s<12?d?"\xf6\xf6":"\xd6\xd6":d?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(s){return"\xf6s"===s||"\xd6S"===s},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(s,r){switch(r){case"d":case"D":case"Do":case"DD":return s;default:if(0===s)return s+"'\u0131nc\u0131";var d=s%10;return s+(a[d]||a[s%100-d]||a[s>=100?100:null])}},week:{dow:1,doy:7}})}(m(5439))},256:function(f,L,m){!function(o){"use strict";function n(s,r,d,u){var c={s:["viensas secunds","'iensas secunds"],ss:[s+" secunds",s+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[s+" m\xeduts",s+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[s+" \xfeoras",s+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[s+" ziuas",s+" ziuas"],M:["'n mes","'iens mes"],MM:[s+" mesen",s+" mesen"],y:["'n ar","'iens ar"],yy:[s+" ars",s+" ars"]};return u||r?c[d][0]:c[d][1]}o.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(s){return"d'o"===s.toLowerCase()},meridiem:function(s,r,d){return s>11?d?"d'o":"D'O":d?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(5439))},1631:function(f,L,m){!function(o){"use strict";o.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(m(5439))},1595:function(f,L,m){!function(o){"use strict";o.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(m(5439))},6050:function(f,L,m){!function(o){"use strict";o.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===s||"\u0633\u06d5\u06be\u06d5\u0631"===s||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===s?n:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===s||"\u0643\u06d5\u0686"===s?n+12:n>=11?n:n+12},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":d<900?"\u0633\u06d5\u06be\u06d5\u0631":d<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":d<1230?"\u0686\u06c8\u0634":d<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return n+"-\u06be\u06d5\u067e\u062a\u06d5";default:return n}},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(m(5439))},5610:function(f,L,m){!function(o){"use strict";function n(u,c,h){return"m"===h?c?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===h?c?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":u+" "+function a(u,c){var h=u.split("_");return c%10==1&&c%100!=11?h[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?h[1]:h[2]}({ss:c?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:c?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:c?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[h],+u)}function r(u){return function(){return u+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}o.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function s(u,c){var h={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===u?h.nominative.slice(1,7).concat(h.nominative.slice(0,1)):u?h[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(c)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(c)?"genitive":"nominative"][u.day()]:h.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:r("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:r("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:r("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:r("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return r("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:n,y:"\u0440\u0456\u043a",yy:n},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(u){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(u)},meridiem:function(u,c,h){return u<4?"\u043d\u043e\u0447\u0456":u<12?"\u0440\u0430\u043d\u043a\u0443":u<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(u,c){switch(c){case"M":case"d":case"DDD":case"w":case"W":return u+"-\u0439";case"D":return u+"-\u0433\u043e";default:return u}},week:{dow:1,doy:7}})}(m(5439))},6077:function(f,L,m){!function(o){"use strict";var a=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];o.defineLocale("ur",{months:a,monthsShort:a,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,d,u){return r<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(m(5439))},2207:function(f,L,m){!function(o){"use strict";o.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(m(5439))},2862:function(f,L,m){!function(o){"use strict";o.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(m(5439))},8093:function(f,L,m){!function(o){"use strict";o.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(n){return/^ch$/i.test(n)},meridiem:function(n,s,r){return n<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(m(5439))},5590:function(f,L,m){!function(o){"use strict";o.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(5439))},9058:function(f,L,m){!function(o){"use strict";o.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(m(5439))},7908:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:n>=11?n:n+12},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(n){return n.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(n){return this.week()!==n.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u5468";default:return n}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(m(5439))},8867:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e2d\u5348"===s?n>=11?n:n+12:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:void 0},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1200?"\u4e0a\u5348":1200===d?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u9031";default:return n}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(m(5439))},1133:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e2d\u5348"===s?n>=11?n:n+12:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:void 0},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u9031";default:return n}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(m(5439))},3291:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e2d\u5348"===s?n>=11?n:n+12:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:void 0},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u9031";default:return n}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(m(5439))},5439:function(f,L,m){(f=m.nmd(f)).exports=function(){"use strict";var o,G;function a(){return o.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(d(e,t))return!1;return!0}function c(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function w(e,t){var i,_=[],l=e.length;for(i=0;i>>0;for(i=0;i<_;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Pt=a.momentProperties=[],nt=!1;function rt(e,t){var _,i,l,M=Pt.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=k(t)),c(t._locale)||(e._locale=t._locale),M>0)for(_=0;_=0?_?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var ot=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ee=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ut={},Ye={};function g(e,t,_,i){var l=i;"string"==typeof i&&(l=function(){return this[i]()}),e&&(Ye[e]=l),t&&(Ye[t[0]]=function(){return X(l.apply(this,arguments),t[1],t[2])}),_&&(Ye[_]=function(){return this.localeData().ordinal(l.apply(this,arguments),e)})}function Ha(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Fe(e,t){return e.isValid()?(t=Et(t,e.localeData()),ut[t]=ut[t]||function ja(e){var _,i,t=e.match(ot);for(_=0,i=t.length;_=0&&Ee.test(e);)e=e.replace(Ee,i),Ee.lastIndex=0,_-=1;return e}var be={};function R(e,t){var _=e.toLowerCase();be[_]=be[_+"s"]=be[t]=e}function $(e){return"string"==typeof e?be[e]||be[e.toLowerCase()]:void 0}function lt(e){var _,i,t={};for(i in e)d(e,i)&&(_=$(i))&&(t[_]=e[i]);return t}var Ft={};function N(e,t){Ft[e]=t}function ze(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function H(e){var t=+e,_=0;return 0!==t&&isFinite(t)&&(_=B(t)),_}function ye(e,t){return function(_){return null!=_?(zt(this,e,_),a.updateOffset(this,t),this):Re(this,e)}}function Re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function zt(e,t,_){e.isValid()&&!isNaN(_)&&("FullYear"===t&&ze(e.year())&&1===e.month()&&29===e.date()?(_=H(_),e._d["set"+(e._isUTC?"UTC":"")+t](_,e.month(),Ve(_,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](_))}var Ge,Rt=/\d/,C=/\d\d/,Nt=/\d{3}/,mt=/\d{4}/,Ne=/[+-]?\d{6}/,W=/\d\d?/,Jt=/\d\d\d\d?/,It=/\d\d\d\d\d\d?/,Je=/\d{1,3}/,ct=/\d{1,4}/,Ie=/[+-]?\d{1,6}/,pe=/\d+/,Ce=/[+-]?\d+/,Ua=/Z|[+-]\d\d:?\d\d/gi,Ue=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function D(e,t,_){Ge[e]=Q(t)?t:function(i,l){return i&&_?_:t}}function Va(e,t){return d(Ge,e)?Ge[e](t._strict,t._locale):new RegExp(function $a(e){return U(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,_,i,l,M){return _||i||l||M}))}(e))}function U(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ge={};var Mt={};function P(e,t){var _,l,i=t;for("string"==typeof e&&(e=[e]),h(t)&&(i=function(M,Y){Y[t]=H(M)}),l=e.length,_=0;_68?1900:2e3)};var Bt=ye("FullYear",!0);function os(e,t,_,i,l,M,Y){var T;return e<100&&e>=0?(T=new Date(e+400,t,_,i,l,M,Y),isFinite(T.getFullYear())&&T.setFullYear(e)):T=new Date(e,t,_,i,l,M,Y),T}function xe(e){var t,_;return e<100&&e>=0?((_=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,_)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $e(e,t,_){var i=7+t-_;return-(7+xe(e,0,i).getUTCDay()-t)%7+i-1}function Kt(e,t,_,i,l){var b,O,T=1+7*(t-1)+(7+_-i)%7+$e(e,i,l);return T<=0?O=je(b=e-1)+T:T>je(e)?(b=e+1,O=T-je(e)):(b=e,O=T),{year:b,dayOfYear:O}}function Pe(e,t,_){var M,Y,i=$e(e.year(),t,_),l=Math.floor((e.dayOfYear()-i-1)/7)+1;return l<1?M=l+ne(Y=e.year()-1,t,_):l>ne(e.year(),t,_)?(M=l-ne(e.year(),t,_),Y=e.year()+1):(Y=e.year(),M=l),{week:M,year:Y}}function ne(e,t,_){var i=$e(e,t,_),l=$e(e+1,t,_);return(je(e)-i+l)/7}g("w",["ww",2],"wo","week"),g("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),N("week",5),N("isoWeek",5),D("w",W),D("ww",W,C),D("W",W),D("WW",W,C),He(["w","ww","W","WW"],function(e,t,_,i){t[i.substr(0,1)]=H(e)});function ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}g("d",0,"do","day"),g("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),g("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),g("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),g("e",0,0,"weekday"),g("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),D("d",W),D("e",W),D("E",W),D("dd",function(e,t){return t.weekdaysMinRegex(e)}),D("ddd",function(e,t){return t.weekdaysShortRegex(e)}),D("dddd",function(e,t){return t.weekdaysRegex(e)}),He(["dd","ddd","dddd"],function(e,t,_,i){var l=_._locale.weekdaysParse(e,i,_._strict);null!=l?t.d=l:k(_).invalidWeekday=e}),He(["d","e","E"],function(e,t,_,i){t[i]=H(e)});var Ys="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ys="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ps=Se,ks=Se,Ds=Se;function vs(e,t,_){var i,l,M,Y=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)M=S([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(M,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(M,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(M,"").toLocaleLowerCase();return _?"dddd"===t?-1!==(l=F.call(this._weekdaysParse,Y))?l:null:"ddd"===t?-1!==(l=F.call(this._shortWeekdaysParse,Y))?l:null:-1!==(l=F.call(this._minWeekdaysParse,Y))?l:null:"dddd"===t?-1!==(l=F.call(this._weekdaysParse,Y))||-1!==(l=F.call(this._shortWeekdaysParse,Y))||-1!==(l=F.call(this._minWeekdaysParse,Y))?l:null:"ddd"===t?-1!==(l=F.call(this._shortWeekdaysParse,Y))||-1!==(l=F.call(this._weekdaysParse,Y))||-1!==(l=F.call(this._minWeekdaysParse,Y))?l:null:-1!==(l=F.call(this._minWeekdaysParse,Y))||-1!==(l=F.call(this._weekdaysParse,Y))||-1!==(l=F.call(this._shortWeekdaysParse,Y))?l:null}function ft(){function e(I,oe){return oe.length-I.length}var M,Y,T,b,O,t=[],_=[],i=[],l=[];for(M=0;M<7;M++)Y=S([2e3,1]).day(M),T=U(this.weekdaysMin(Y,"")),b=U(this.weekdaysShort(Y,"")),O=U(this.weekdays(Y,"")),t.push(T),_.push(b),i.push(O),l.push(T),l.push(b),l.push(O);t.sort(e),_.sort(e),i.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Lt(){return this.hours()%12||12}function qt(e,t){g(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qt(e,t){return t._meridiemParse}g("H",["HH",2],0,"hour"),g("h",["hh",2],0,Lt),g("k",["kk",2],0,function Ws(){return this.hours()||24}),g("hmm",0,0,function(){return""+Lt.apply(this)+X(this.minutes(),2)}),g("hmmss",0,0,function(){return""+Lt.apply(this)+X(this.minutes(),2)+X(this.seconds(),2)}),g("Hmm",0,0,function(){return""+this.hours()+X(this.minutes(),2)}),g("Hmmss",0,0,function(){return""+this.hours()+X(this.minutes(),2)+X(this.seconds(),2)}),qt("a",!0),qt("A",!1),R("hour","h"),N("hour",13),D("a",Qt),D("A",Qt),D("H",W),D("h",W),D("k",W),D("HH",W,C),D("hh",W,C),D("kk",W,C),D("hmm",Jt),D("hmmss",It),D("Hmm",Jt),D("Hmmss",It),P(["H","HH"],3),P(["k","kk"],function(e,t,_){var i=H(e);t[3]=24===i?0:i}),P(["a","A"],function(e,t,_){_._isPm=_._locale.isPM(e),_._meridiem=e}),P(["h","hh"],function(e,t,_){t[3]=H(e),k(_).bigHour=!0}),P("hmm",function(e,t,_){var i=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i)),k(_).bigHour=!0}),P("hmmss",function(e,t,_){var i=e.length-4,l=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i,2)),t[5]=H(e.substr(l)),k(_).bigHour=!0}),P("Hmm",function(e,t,_){var i=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i))}),P("Hmmss",function(e,t,_){var i=e.length-4,l=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i,2)),t[5]=H(e.substr(l))});var Fs=ye("Hours",!0);var We,Xt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Qa,monthsShort:Ct,week:{dow:0,doy:6},weekdays:Ys,weekdaysMin:ys,weekdaysShort:Zt,meridiemParse:/[ap]\.?m?\.?/i},E={},Oe={};function Rs(e,t){var _,i=Math.min(e.length,t.length);for(_=0;_0;){if(l=Be(M.slice(0,_).join("-")))return l;if(i&&i.length>=_&&Rs(M,i)>=_-1)break;_--}t++}return We}(e)}function yt(e){var t,_=e._a;return _&&-2===k(e).overflow&&(t=_[1]<0||_[1]>11?1:_[2]<1||_[2]>Ve(_[0],_[1])?2:_[3]<0||_[3]>24||24===_[3]&&(0!==_[4]||0!==_[5]||0!==_[6])?3:_[4]<0||_[4]>59?4:_[5]<0||_[5]>59?5:_[6]<0||_[6]>999?6:-1,k(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),k(e)._overflowWeeks&&-1===t&&(t=7),k(e)._overflowWeekday&&-1===t&&(t=8),k(e).overflow=t),e}var Us=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vs=/Z|[+-]\d\d(?::?\d\d)?/,Ke=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$s=/^\/?Date\((-?\d+)/i,Bs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ks={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ta(e){var t,_,M,Y,T,b,i=e._i,l=Us.exec(i)||Gs.exec(i),O=Ke.length,I=pt.length;if(l){for(k(e).iso=!0,t=0,_=O;t<_;t++)if(Ke[t][1].exec(l[1])){Y=Ke[t][0],M=!1!==Ke[t][2];break}if(null==Y)return void(e._isValid=!1);if(l[3]){for(t=0,_=I;t<_;t++)if(pt[t][1].exec(l[3])){T=(l[2]||" ")+pt[t][0];break}if(null==T)return void(e._isValid=!1)}if(!M&&null!=T)return void(e._isValid=!1);if(l[4]){if(!Vs.exec(l[4]))return void(e._isValid=!1);b="Z"}e._f=Y+(T||"")+(b||""),Dt(e)}else e._isValid=!1}function qs(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function aa(e){var _,t=Bs.exec(function Qs(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(t){if(_=function Zs(e,t,_,i,l,M){var Y=[qs(e),Ct.indexOf(t),parseInt(_,10),parseInt(i,10),parseInt(l,10)];return M&&Y.push(parseInt(M,10)),Y}(t[4],t[3],t[2],t[5],t[6],t[7]),!function Xs(e,t,_){return!e||Zt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(k(_).weekdayMismatch=!0,_._isValid=!1,!1)}(t[1],_,e))return;e._a=_,e._tzm=function en(e,t,_){if(e)return Ks[e];if(t)return 0;var i=parseInt(_,10),l=i%100;return(i-l)/100*60+l}(t[8],t[9],t[10]),e._d=xe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),k(e).rfc2822=!0}else e._isValid=!1}function ke(e,t,_){return e??t??_}function kt(e){var t,_,l,M,Y,i=[];if(!e._d){for(l=function an(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function sn(e){var t,_,i,l,M,Y,T,b,O;null!=(t=e._w).GG||null!=t.W||null!=t.E?(M=1,Y=4,_=ke(t.GG,e._a[0],Pe(A(),1,4).year),i=ke(t.W,1),((l=ke(t.E,1))<1||l>7)&&(b=!0)):(M=e._locale._week.dow,Y=e._locale._week.doy,O=Pe(A(),M,Y),_=ke(t.gg,e._a[0],O.year),i=ke(t.w,O.week),null!=t.d?((l=t.d)<0||l>6)&&(b=!0):null!=t.e?(l=t.e+M,(t.e<0||t.e>6)&&(b=!0)):l=M),i<1||i>ne(_,M,Y)?k(e)._overflowWeeks=!0:null!=b?k(e)._overflowWeekday=!0:(T=Kt(_,i,l,M,Y),e._a[0]=T.year,e._dayOfYear=T.dayOfYear)}(e),null!=e._dayOfYear&&(Y=ke(e._a[0],l[0]),(e._dayOfYear>je(Y)||0===e._dayOfYear)&&(k(e)._overflowDayOfYear=!0),_=xe(Y,0,e._dayOfYear),e._a[1]=_.getUTCMonth(),e._a[2]=_.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=l[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]??(2===t?1:0);24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?xe:os).apply(null,i),M=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==M&&(k(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],k(e).empty=!0;var _,i,l,M,Y,O,I,t=""+e._i,T=t.length,b=0;for(I=(l=Et(e._f,e._locale).match(ot)||[]).length,_=0;_0&&k(e).unusedInput.push(Y),t=t.slice(t.indexOf(i)+i.length),b+=i.length),Ye[M]?(i?k(e).empty=!1:k(e).unusedTokens.push(M),Ba(M,i,e)):e._strict&&!i&&k(e).unusedTokens.push(M);k(e).charsLeftOver=T-b,t.length>0&&k(e).unusedInput.push(t),e._a[3]<=12&&!0===k(e).bigHour&&e._a[3]>0&&(k(e).bigHour=void 0),k(e).parsedDateParts=e._a.slice(0),k(e).meridiem=e._meridiem,e._a[3]=function nn(e,t,_){var i;return null==_?t:null!=e.meridiemHour?e.meridiemHour(t,_):(null!=e.isPM&&((i=e.isPM(_))&&t<12&&(t+=12),!i&&12===t&&(t=0)),t)}(e._locale,e._a[3],e._meridiem),null!==(O=k(e).era)&&(e._a[0]=e._locale.erasConvertYear(O,e._a[0])),kt(e),yt(e)}else aa(e);else ta(e)}function sa(e){var t=e._i,_=e._f;return e._locale=e._locale||re(e._l),null===t||void 0===_&&""===t?Le({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),K(t)?new ve(yt(t)):(y(t)?e._d=t:s(_)?function rn(e){var t,_,i,l,M,Y,T=!1,b=e._f.length;if(0===b)return k(e).invalidFormat=!0,void(e._d=new Date(NaN));for(l=0;lthis?this:e:Le()});function ra(e,t){var _,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return A();for(_=t[0],i=1;i=0?new Date(e+400,t,_)-ha:new Date(e,t,_).valueOf()}function La(e,t,_){return e<100&&e>=0?Date.UTC(e+400,t,_)-ha:Date.UTC(e,t,_)}function bt(e,t){return t.erasAbbrRegex(e)}function St(){var l,M,e=[],t=[],_=[],i=[],Y=this.eras();for(l=0,M=Y.length;l(M=ne(e,i,l))&&(t=M),Wr.call(this,e,t,_,i,l))}function Wr(e,t,_,i,l){var M=Kt(e,t,_,i,l),Y=xe(M.year,0,M.dayOfYear);return this.year(Y.getUTCFullYear()),this.month(Y.getUTCMonth()),this.date(Y.getUTCDate()),this}g("N",0,0,"eraAbbr"),g("NN",0,0,"eraAbbr"),g("NNN",0,0,"eraAbbr"),g("NNNN",0,0,"eraName"),g("NNNNN",0,0,"eraNarrow"),g("y",["y",1],"yo","eraYear"),g("y",["yy",2],0,"eraYear"),g("y",["yyy",3],0,"eraYear"),g("y",["yyyy",4],0,"eraYear"),D("N",bt),D("NN",bt),D("NNN",bt),D("NNNN",function Tr(e,t){return t.erasNameRegex(e)}),D("NNNNN",function vr(e,t){return t.erasNarrowRegex(e)}),P(["N","NN","NNN","NNNN","NNNNN"],function(e,t,_,i){var l=_._locale.erasParse(e,i,_._strict);l?k(_).era=l:k(_).invalidEra=e}),D("y",pe),D("yy",pe),D("yyy",pe),D("yyyy",pe),D("yo",function br(e,t){return t._eraYearOrdinalRegex||pe}),P(["y","yy","yyy","yyyy"],0),P(["yo"],function(e,t,_,i){var l;_._locale._eraYearOrdinalRegex&&(l=e.match(_._locale._eraYearOrdinalRegex)),t[0]=_._locale.eraYearOrdinalParse?_._locale.eraYearOrdinalParse(e,l):parseInt(e,10)}),g(0,["gg",2],0,function(){return this.weekYear()%100}),g(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tt("gggg","weekYear"),tt("ggggg","weekYear"),tt("GGGG","isoWeekYear"),tt("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),D("G",Ce),D("g",Ce),D("GG",W,C),D("gg",W,C),D("GGGG",ct,mt),D("gggg",ct,mt),D("GGGGG",Ie,Ne),D("ggggg",Ie,Ne),He(["gggg","ggggg","GGGG","GGGGG"],function(e,t,_,i){t[i.substr(0,2)]=H(e)}),He(["gg","GG"],function(e,t,_,i){t[i]=a.parseTwoDigitYear(e)}),g("Q",0,"Qo","quarter"),R("quarter","Q"),N("quarter",7),D("Q",Rt),P("Q",function(e,t){t[1]=3*(H(e)-1)}),g("D",["DD",2],"Do","date"),R("date","D"),N("date",9),D("D",W),D("DD",W,C),D("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),P(["D","DD"],2),P("Do",function(e,t){t[2]=H(e.match(W)[0])});var ya=ye("Date",!0);g("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),N("dayOfYear",4),D("DDD",Je),D("DDDD",Nt),P(["DDD","DDDD"],function(e,t,_){_._dayOfYear=H(e)}),g("m",["mm",2],0,"minute"),R("minute","m"),N("minute",14),D("m",W),D("mm",W,C),P(["m","mm"],4);var Fr=ye("Minutes",!1);g("s",["ss",2],0,"second"),R("second","s"),N("second",15),D("s",W),D("ss",W,C),P(["s","ss"],5);var le,pa,zr=ye("Seconds",!1);for(g("S",0,0,function(){return~~(this.millisecond()/100)}),g(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),g(0,["SSS",3],0,"millisecond"),g(0,["SSSS",4],0,function(){return 10*this.millisecond()}),g(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),g(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),g(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),g(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),g(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),N("millisecond",16),D("S",Je,Rt),D("SS",Je,C),D("SSS",Je,Nt),le="SSSS";le.length<=9;le+="S")D(le,pe);function Rr(e,t){t[6]=H(1e3*("0."+e))}for(le="S";le.length<=9;le+="S")P(le,Rr);pa=ye("Milliseconds",!1),g("z",0,0,"zoneAbbr"),g("zz",0,0,"zoneName");var p=ve.prototype;function ka(e){return e}p.add=On,p.calendar=function Nn(e,t){1===arguments.length&&(arguments[0]?An(arguments[0])?(e=arguments[0],t=void 0):zn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var _=e||A(),i=Tt(_,this).startOf("day"),l=a.calendarFormat(this,i)||"sameElse",M=t&&(Q(t[l])?t[l].call(this,_):t[l]);return this.format(M||this.localeData().calendar(l,this,A(_)))},p.clone=function Jn(){return new ve(this)},p.diff=function Bn(e,t,_){var i,l,M;if(!this.isValid())return NaN;if(!(i=Tt(e,this)).isValid())return NaN;switch(l=6e4*(i.utcOffset()-this.utcOffset()),t=$(t)){case"year":M=Qe(this,i)/12;break;case"month":M=Qe(this,i);break;case"quarter":M=Qe(this,i)/3;break;case"second":M=(this-i)/1e3;break;case"minute":M=(this-i)/6e4;break;case"hour":M=(this-i)/36e5;break;case"day":M=(this-i-l)/864e5;break;case"week":M=(this-i-l)/6048e5;break;default:M=this-i}return _?M:B(M)},p.endOf=function nr(e){var t,_;if(void 0===(e=$(e))||"millisecond"===e||!this.isValid())return this;switch(_=this._isUTC?La:fa,e){case"year":t=_(this.year()+1,0,1)-1;break;case"quarter":t=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=_(this.year(),this.month()+1,1)-1;break;case"week":t=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=et-we(t+(this._isUTC?0:this.utcOffset()*De),et)-1;break;case"minute":t=this._d.valueOf(),t+=De-we(t,De)-1;break;case"second":t=this._d.valueOf(),t+=1e3-we(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},p.format=function Qn(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=Fe(this,e);return this.localeData().postformat(t)},p.from=function Xn(e,t){return this.isValid()&&(K(e)&&e.isValid()||A(e).isValid())?q({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},p.fromNow=function er(e){return this.from(A(),e)},p.to=function tr(e,t){return this.isValid()&&(K(e)&&e.isValid()||A(e).isValid())?q({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},p.toNow=function ar(e){return this.to(A(),e)},p.get=function Ia(e){return Q(this[e=$(e)])?this[e]():this},p.invalidAt=function cr(){return k(this).overflow},p.isAfter=function In(e,t){var _=K(e)?e:A(e);return!(!this.isValid()||!_.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()>_.valueOf():_.valueOf()9999?Fe(_,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Q(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Fe(_,"Z")):Fe(_,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},p.inspect=function qn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var _,i,e="moment",t="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),_="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(_+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=function ur(){return this.isValid()?this.toISOString():null},p.toString=function Kn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},p.unix=function _r(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function rr(){return this._d.valueOf()-6e4*(this._offset||0)},p.creationData=function Mr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},p.eraName=function Yr(){var e,t,_,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},p.isLocal=function Sn(){return!!this.isValid()&&!this._isUTC},p.isUtcOffset=function Hn(){return!!this.isValid()&&this._isUTC},p.isUtc=ia,p.isUTC=ia,p.zoneAbbr=function Nr(){return this._isUTC?"UTC":""},p.zoneName=function Jr(){return this._isUTC?"Coordinated Universal Time":""},p.dates=V("dates accessor is deprecated. Use date instead.",ya),p.months=V("months accessor is deprecated. Use month instead",Vt),p.years=V("years accessor is deprecated. Use year instead",Bt),p.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function kn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),p.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function bn(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return rt(e,this),(e=sa(e))._a?(t=e._isUTC?S(e._a):A(e._a),this._isDSTShifted=this.isValid()&&function Yn(e,t,_){var Y,i=Math.min(e.length,t.length),l=Math.abs(e.length-t.length),M=0;for(Y=0;Y0):this._isDSTShifted=!1,this._isDSTShifted});var x=it.prototype;function at(e,t,_,i){var l=re(),M=S().set(i,t);return l[_](M,e)}function Da(e,t,_){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return at(e,t,_,"month");var i,l=[];for(i=0;i<12;i++)l[i]=at(e,i,_,"month");return l}function Ht(e,t,_,i){"boolean"==typeof e?(h(t)&&(_=t,t=void 0),t=t||""):(_=t=e,e=!1,h(t)&&(_=t,t=void 0),t=t||"");var Y,l=re(),M=e?l._week.dow:0,T=[];if(null!=_)return at(t,(_+M)%7,i,"day");for(Y=0;Y<7;Y++)T[Y]=at(t,(Y+M)%7,i,"day");return T}x.calendar=function Sa(e,t,_){var i=this._calendar[e]||this._calendar.sameElse;return Q(i)?i.call(t,_):i},x.longDateFormat=function Pa(e){var t=this._longDateFormat[e],_=this._longDateFormat[e.toUpperCase()];return t||!_?t:(this._longDateFormat[e]=_.match(ot).map(function(i){return"MMMM"===i||"MM"===i||"DD"===i||"dddd"===i?i.slice(1):i}).join(""),this._longDateFormat[e])},x.invalidDate=function Wa(){return this._invalidDate},x.ordinal=function Fa(e){return this._ordinal.replace("%d",e)},x.preparse=ka,x.postformat=ka,x.relativeTime=function Ra(e,t,_,i){var l=this._relativeTime[_];return Q(l)?l(e,t,_,i):l.replace(/%d/i,e)},x.pastFuture=function Na(e,t){var _=this._relativeTime[e>0?"future":"past"];return Q(_)?_(t):_.replace(/%s/i,t)},x.set=function va(e){var t,_;for(_ in e)d(e,_)&&(Q(t=e[_])?this[_]=t:this["_"+_]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},x.eras=function hr(e,t){var _,i,l,M=this._eras||re("en")._eras;for(_=0,i=M.length;_=0)return M[i]},x.erasConvertYear=function Lr(e,t){var _=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*_},x.erasAbbrRegex=function wr(e){return d(this,"_erasAbbrRegex")||St.call(this),e?this._erasAbbrRegex:this._erasRegex},x.erasNameRegex=function Dr(e){return d(this,"_erasNameRegex")||St.call(this),e?this._erasNameRegex:this._erasRegex},x.erasNarrowRegex=function gr(e){return d(this,"_erasNarrowRegex")||St.call(this),e?this._erasNarrowRegex:this._erasRegex},x.months=function ts(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ut).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},x.monthsShort=function as(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ut.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},x.monthsParse=function ns(e,t,_){var i,l,M;if(this._monthsParseExact)return ss.call(this,e,t,_);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(l=S([2e3,i]),_&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(l,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(l,"").replace(".","")+"$","i")),!_&&!this._monthsParse[i]&&(M="^"+this.months(l,"")+"|^"+this.monthsShort(l,""),this._monthsParse[i]=new RegExp(M.replace(".",""),"i")),_&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(_&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!_&&this._monthsParse[i].test(e))return i}},x.monthsRegex=function is(e){return this._monthsParseExact?(d(this,"_monthsRegex")||$t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},x.monthsShortRegex=function _s(e){return this._monthsParseExact?(d(this,"_monthsRegex")||$t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Xa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},x.week=function us(e){return Pe(e,this._week.dow,this._week.doy).week},x.firstDayOfYear=function cs(){return this._week.doy},x.firstDayOfWeek=function ms(){return this._week.dow},x.weekdays=function ws(e,t){var _=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ht(_,this._week.dow):e?_[e.day()]:_},x.weekdaysMin=function Ts(e){return!0===e?ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},x.weekdaysShort=function gs(e){return!0===e?ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},x.weekdaysParse=function bs(e,t,_){var i,l,M;if(this._weekdaysParseExact)return vs.call(this,e,t,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(l=S([2e3,1]).day(i),_&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(l,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(l,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(l,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(M="^"+this.weekdays(l,"")+"|^"+this.weekdaysShort(l,"")+"|^"+this.weekdaysMin(l,""),this._weekdaysParse[i]=new RegExp(M.replace(".",""),"i")),_&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(_&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(_&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!_&&this._weekdaysParse[i].test(e))return i}},x.weekdaysRegex=function xs(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=ps),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},x.weekdaysShortRegex=function Ps(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ks),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},x.weekdaysMinRegex=function Os(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ds),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},x.isPM=function As(e){return"p"===(e+"").toLowerCase().charAt(0)},x.meridiem=function zs(e,t,_){return e>11?_?"pm":"PM":_?"am":"AM"},ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===H(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=V("moment.lang is deprecated. Use moment.locale instead.",ue),a.langData=V("moment.langData is deprecated. Use moment.localeData instead.",re);var _e=Math.abs;function wa(e,t,_,i){var l=q(t,_);return e._milliseconds+=i*l._milliseconds,e._days+=i*l._days,e._months+=i*l._months,e._bubble()}function ga(e){return e<0?Math.floor(e):Math.ceil(e)}function Ta(e){return 4800*e/146097}function jt(e){return 146097*e/4800}function ie(e){return function(){return this.as(e)}}var t_=ie("ms"),a_=ie("s"),s_=ie("m"),n_=ie("h"),r_=ie("d"),__=ie("w"),i_=ie("M"),d_=ie("Q"),o_=ie("y");function he(e){return function(){return this.isValid()?this._data[e]:NaN}}var m_=he("milliseconds"),c_=he("seconds"),M_=he("minutes"),h_=he("hours"),f_=he("days"),L_=he("months"),Y_=he("years");var de=Math.round,ge={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function p_(e,t,_,i,l){return l.relativeTime(t||1,!!_,e,i)}var xt=Math.abs;function Te(e){return(e>0)-(e<0)||+e}function st(){if(!this.isValid())return this.localeData().invalidDate();var i,l,M,Y,b,O,I,oe,e=xt(this._milliseconds)/1e3,t=xt(this._days),_=xt(this._months),T=this.asSeconds();return T?(i=B(e/60),l=B(i/60),e%=60,i%=60,M=B(_/12),_%=12,Y=e?e.toFixed(3).replace(/\.?0+$/,""):"",b=T<0?"-":"",O=Te(this._months)!==Te(T)?"-":"",I=Te(this._days)!==Te(T)?"-":"",oe=Te(this._milliseconds)!==Te(T)?"-":"",b+"P"+(M?O+M+"Y":"")+(_?O+_+"M":"")+(t?I+t+"D":"")+(l||i||e?"T":"")+(l?oe+l+"H":"")+(i?oe+i+"M":"")+(e?oe+Y+"S":"")):"P0D"}var j=Ze.prototype;return j.isValid=function fn(){return this._isValid},j.abs=function Kr(){var e=this._data;return this._milliseconds=_e(this._milliseconds),this._days=_e(this._days),this._months=_e(this._months),e.milliseconds=_e(e.milliseconds),e.seconds=_e(e.seconds),e.minutes=_e(e.minutes),e.hours=_e(e.hours),e.months=_e(e.months),e.years=_e(e.years),this},j.add=function Zr(e,t){return wa(this,e,t,1)},j.subtract=function qr(e,t){return wa(this,e,t,-1)},j.as=function Xr(e){if(!this.isValid())return NaN;var t,_,i=this._milliseconds;if("month"===(e=$(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,_=this._months+Ta(t),e){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(t=this._days+Math.round(jt(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},j.asMilliseconds=t_,j.asSeconds=a_,j.asMinutes=s_,j.asHours=n_,j.asDays=r_,j.asWeeks=__,j.asMonths=i_,j.asQuarters=d_,j.asYears=o_,j.valueOf=function e_(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},j._bubble=function Qr(){var l,M,Y,T,b,e=this._milliseconds,t=this._days,_=this._months,i=this._data;return e>=0&&t>=0&&_>=0||e<=0&&t<=0&&_<=0||(e+=864e5*ga(jt(_)+t),t=0,_=0),i.milliseconds=e%1e3,l=B(e/1e3),i.seconds=l%60,M=B(l/60),i.minutes=M%60,Y=B(M/60),i.hours=Y%24,t+=B(Y/24),_+=b=B(Ta(t)),t-=ga(jt(b)),T=B(_/12),_%=12,i.days=t,i.months=_,i.years=T,this},j.clone=function u_(){return q(this)},j.get=function l_(e){return e=$(e),this.isValid()?this[e+"s"]():NaN},j.milliseconds=m_,j.seconds=c_,j.minutes=M_,j.hours=h_,j.days=f_,j.weeks=function y_(){return B(this.days()/7)},j.months=L_,j.years=Y_,j.humanize=function g_(e,t){if(!this.isValid())return this.localeData().invalidDate();var l,M,_=!1,i=ge;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(_=e),"object"==typeof t&&(i=Object.assign({},ge,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),M=function k_(e,t,_,i){var l=q(e).abs(),M=de(l.as("s")),Y=de(l.as("m")),T=de(l.as("h")),b=de(l.as("d")),O=de(l.as("M")),I=de(l.as("w")),oe=de(l.as("y")),me=M<=_.ss&&["s",M]||M<_.s&&["ss",M]||Y<=1&&["m"]||Y<_.m&&["mm",Y]||T<=1&&["h"]||T<_.h&&["hh",T]||b<=1&&["d"]||b<_.d&&["dd",b];return null!=_.w&&(me=me||I<=1&&["w"]||I<_.w&&["ww",I]),(me=me||O<=1&&["M"]||O<_.M&&["MM",O]||oe<=1&&["y"]||["yy",oe])[2]=t,me[3]=+e>0,me[4]=i,p_.apply(null,me)}(this,!_,i,l=this.localeData()),_&&(M=l.pastFuture(+this,M)),l.postformat(M)},j.toISOString=st,j.toString=st,j.toJSON=st,j.locale=ma,j.localeData=Ma,j.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",st),j.lang=ca,g("X",0,0,"unix"),g("x",0,0,"valueOf"),D("x",Ce),D("X",/[+-]?\d+(\.\d{1,3})?/),P("X",function(e,t,_){_._d=new Date(1e3*parseFloat(e))}),P("x",function(e,t,_){_._d=new Date(H(e))}),a.version="2.29.4",function n(e){o=e}(A),a.fn=p,a.min=function mn(){return ra("isBefore",[].slice.call(arguments,0))},a.max=function cn(){return ra("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=S,a.unix=function Ir(e){return A(1e3*e)},a.months=function Ur(e,t){return Da(e,t,"months")},a.isDate=y,a.locale=ue,a.invalid=Le,a.duration=q,a.isMoment=K,a.weekdays=function Vr(e,t,_){return Ht(e,t,_,"weekdays")},a.parseZone=function Cr(){return A.apply(null,arguments).parseZone()},a.localeData=re,a.isDuration=qe,a.monthsShort=function Gr(e,t){return Da(e,t,"monthsShort")},a.weekdaysMin=function Br(e,t,_){return Ht(e,t,_,"weekdaysMin")},a.defineLocale=Yt,a.updateLocale=function Is(e,t){if(null!=t){var _,i,l=Xt;null!=E[e]&&null!=E[e].parentLocale?E[e].set(_t(E[e]._config,t)):(null!=(i=Be(e))&&(l=i._config),t=_t(l,t),null==i&&(t.abbr=e),(_=new it(t)).parentLocale=E[e],E[e]=_),ue(e)}else null!=E[e]&&(null!=E[e].parentLocale?(E[e]=E[e].parentLocale,e===ue()&&ue(e)):null!=E[e]&&delete E[e]);return E[e]},a.locales=function Cs(){return dt(E)},a.weekdaysShort=function $r(e,t,_){return Ht(e,t,_,"weekdaysShort")},a.normalizeUnits=$,a.relativeTimeRounding=function D_(e){return void 0===e?de:"function"==typeof e&&(de=e,!0)},a.relativeTimeThreshold=function w_(e,t){return void 0!==ge[e]&&(void 0===t?ge[e]:(ge[e]=t,"s"===e&&(ge.ss=t-1),!0))},a.calendarFormat=function Rn(e,t){var _=e.diff(t,"days",!0);return _<-6?"sameElse":_<-1?"lastWeek":_<0?"lastDay":_<1?"sameDay":_<2?"nextDay":_<7?"nextWeek":"sameElse"},a.prototype=p,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()},6700:(f,L,m)=>{var o={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7954,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7954,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function a(s){var r=n(s);return m(r)}function n(s){if(!m.o(o,s)){var r=new Error("Cannot find module '"+s+"'");throw r.code="MODULE_NOT_FOUND",r}return o[s]}a.keys=function(){return Object.keys(o)},a.resolve=n,f.exports=a,a.id=6700}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4430.27747cbc44b1b9c0.js b/apps/n/porrtal-io-app/public/angular/4430.27747cbc44b1b9c0.js deleted file mode 100644 index a9760bf2..00000000 --- a/apps/n/porrtal-io-app/public/angular/4430.27747cbc44b1b9c0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4430],{4430:(Hd,el,ws)=>{ws.r(el),ws.d(el,{i:()=>bu});var mu=ws(1719),Cs={exports:{}};Cs.exports=(()=>{var ui,Et,Tt,Rt,Kt={},Di={};function N(s){var i=Di[s];if(void 0!==i)return i.exports;var e=Di[s]={exports:{}};return Kt[s].call(e.exports,e,e.exports,N),e.exports}N.m=Kt,N.n=s=>{var i=s&&s.__esModule?()=>s.default:()=>s;return N.d(i,{a:i}),i},Et=Object.getPrototypeOf?s=>Object.getPrototypeOf(s):s=>s.__proto__,N.t=function(s,i){if(1&i&&(s=this(s)),8&i||"object"==typeof s&&s&&(4&i&&s.__esModule||16&i&&"function"==typeof s.then))return s;var e=Object.create(null);N.r(e);var t={};ui=ui||[null,Et({}),Et([]),Et(Et)];for(var n=2&i&&s;"object"==typeof n&&!~ui.indexOf(n);n=Et(n))Object.getOwnPropertyNames(n).forEach(r=>t[r]=()=>s[r]);return t.default=()=>s,N.d(e,t),e},N.d=(s,i)=>{for(var e in i)N.o(i,e)&&!N.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:i[e]})},N.f={},N.e=s=>Promise.all(Object.keys(N.f).reduce((i,e)=>(N.f[e](s,i),i),[])),N.u=s=>(({265:"canvg",297:"xlsx",643:"pdfmake"}[s]||s)+".js"),N.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),N.o=(s,i)=>Object.prototype.hasOwnProperty.call(s,i),Tt={},Rt="EsriAmCharts:",N.l=(s,i,e,t)=>{if(Tt[s])Tt[s].push(i);else{var n,r;if(void 0!==e)for(var a=document.getElementsByTagName("script"),o=0;o{n.onerror=n.onload=null,clearTimeout(p);var c=Tt[s];if(delete Tt[s],n.parentNode&&n.parentNode.removeChild(n),c&&c.forEach(f=>f(d)),u)return u(d)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=h.bind(null,n.onerror),n.onload=h.bind(null,n.onload),r&&document.head.appendChild(n)}},N.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},N.p="",(()=>{var s={826:0};N.f.j=(t,n)=>{var r=N.o(s,t)?s[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((h,p)=>r=s[t]=[h,p]);n.push(r[2]=a);var o=N.p+N.u(t),l=new Error;N.l(o,h=>{if(N.o(s,t)&&(0!==(r=s[t])&&(s[t]=void 0),r)){var p=h&&("load"===h.type?"missing":h.type),u=h&&h.target&&h.target.src;l.message="Loading chunk "+t+" failed.\n("+p+": "+u+")",l.name="ChunkLoadError",l.type=p,l.request=u,r[1](l)}},"chunk-"+t,t)}};var i=(t,n)=>{var r,a,[o,l,h]=n,p=0;if(o.some(u=>0!==s[u])){for(r in l)N.o(l,r)&&(N.m[r]=l[r]);h&&h(N)}for(t&&t(n);pHs,am4core:()=>Bs,am4themes_animated:()=>Md,am4themes_dark:()=>Ld});var Ss={};N.r(Ss),N.d(Ss,{castNumber:()=>ol,castString:()=>sn,checkArray:()=>_u,checkBoolean:()=>rl,checkDate:()=>Pu,checkNumber:()=>sl,checkObject:()=>al,checkString:()=>nl,getDefault:()=>xu,getType:()=>kt,getValue:()=>be,getValueDefault:()=>rr,hasValue:()=>v,isArray:()=>Ae,isDate:()=>ki,isNaN:()=>Fe,isNumber:()=>y,isObject:()=>ye,isString:()=>J,toBoolean:()=>ve,toNumber:()=>ce,toNumberOrPercent:()=>ll,toText:()=>Xe});var Is={};N.r(Is),N.d(Is,{DEGREES:()=>vt,HALFPI:()=>Ws,PI:()=>an,RADIANS:()=>Ai,adjustTension:()=>hn,ceil:()=>Xs,closest:()=>hl,cos:()=>L,fitAngleToRange:()=>bt,fitToRange:()=>R,getAngle:()=>Ee,getArcPoint:()=>or,getArcRect:()=>xt,getBBox:()=>Fi,getCenterShift:()=>Cu,getCommonRectangle:()=>Mi,getCubicControlPointA:()=>Us,getCubicControlPointB:()=>Gs,getCubicCurveDistance:()=>cl,getDistance:()=>oe,getHorizontalDistance:()=>ul,getLineIntersection:()=>Ou,getMidPoint:()=>ln,getPointOnCubicCurve:()=>ar,getPointOnQuadraticCurve:()=>zs,getRotation:()=>gl,getScale:()=>fl,getVerticalDistance:()=>dl,intersect:()=>on,intersection:()=>pl,invertRange:()=>Vi,isInRectangle:()=>Ks,max:()=>q,min:()=>ie,normalizeAngle:()=>Zt,round:()=>V,sin:()=>M,stretch:()=>wu,tan:()=>Ys,toNumberRange:()=>sr});var Ds={};N.r(Ds),N.d(Ds,{add:()=>ci,any:()=>lr,copy:()=>ji,each:()=>j,eachContinue:()=>hr,eachReverse:()=>yl,find:()=>Au,findIndex:()=>pr,first:()=>Iu,getSortedIndex:()=>pn,has:()=>Tu,indexOf:()=>ht,insert:()=>vl,insertIndex:()=>fi,keepIf:()=>qs,last:()=>Su,map:()=>Li,move:()=>pt,pushAll:()=>bl,remove:()=>z,removeIndex:()=>gi,replace:()=>xl,setIndex:()=>Du,shiftLeft:()=>ml,shuffle:()=>Vu,slice:()=>ku,toArray:()=>Zs});var Ts={};N.r(Ts),N.d(Ts,{clone:()=>Il,copy:()=>Mu,copyAllProperties:()=>Ei,copyProperties:()=>De,each:()=>X,eachContinue:()=>sa,eachOrdered:()=>At,entries:()=>Ol,forceCopyProperties:()=>Dl,getKey:()=>Fu,hasKey:()=>_t,keys:()=>ra,keysOrdered:()=>Sl,merge:()=>dr,softCopyProperties:()=>Lu});var ks={};N.r(ks),N.d(ks,{ListIterator:()=>fn,concat:()=>kl,contains:()=>cr,each:()=>A,eachContinue:()=>rt,filter:()=>ju,find:()=>Vl,findIndex:()=>Eu,findMap:()=>Ru,flatten:()=>Al,foldl:()=>oa,fromArray:()=>qt,indexed:()=>$t,join:()=>Ll,length:()=>Tl,map:()=>aa,max:()=>Ml,min:()=>Fl,sort:()=>yi,toArray:()=>Ri});var As={};N.r(As),N.d(As,{order:()=>fr,random:()=>jl,repeat:()=>la});var Vs={};N.r(Vs),N.d(Vs,{order:()=>Pt});var Fs={};N.r(Fs),N.d(Fs,{brighten:()=>Kl,getBrightnessStep:()=>Wu,getLightnessStep:()=>vn,hexToRgb:()=>Wl,hexToRgbWithAlpha:()=>Xl,hslToRgb:()=>ca,hsvToRgb:()=>Yu,interpolate:()=>mn,isLight:()=>ql,lighten:()=>Gl,pad2:()=>vr,rgb:()=>Nl,rgbToHex:()=>zl,rgbToHsl:()=>bn,rgbToHsv:()=>Xu,rgbToRGBA:()=>Ul,rgbaToRgb:()=>Yl,saturate:()=>Zl});var Ms={};N.r(Ms),N.d(Ms,{anyToDate:()=>ba,anyToNumber:()=>Or,camelToDashed:()=>Zu,capitalize:()=>wn,cleanFormat:()=>Cn,copy:()=>Ql,copyProperties:()=>Vt,decimalPlaces:()=>hh,documentPointToSprite:()=>vi,documentPointToSvg:()=>Ht,escapeForRgex:()=>xr,fitNumber:()=>Sr,fitNumberRelative:()=>Ir,get12Hours:()=>On,getBaseURI:()=>Ni,getDayFromWeek:()=>ah,getFormat:()=>nh,getMonthWeek:()=>sh,getPixelRatio:()=>eh,getTimeZone:()=>Sn,getWeek:()=>Wi,getYearDay:()=>xa,height:()=>lh,isIE:()=>Xi,isNotEmpty:()=>Pn,joinUrl:()=>kr,ltrim:()=>ih,numberToString:()=>rh,padString:()=>ze,parseUrl:()=>Pa,plainText:()=>Cr,random:()=>$u,relativeRadiusToValue:()=>Re,relativeToValue:()=>xe,reverseString:()=>wr,rtrim:()=>th,serializeUrl:()=>wa,softCopyProperties:()=>Gu,splitTextByCharCount:()=>_r,spritePointToDocument:()=>Tr,spritePointToSprite:()=>Qe,spritePointToSvg:()=>ut,spriteRectToSvg:()=>Dr,stringify:()=>ya,stripHash:()=>ga,stripTags:()=>va,svgPointToDocument:()=>_a,svgPointToSprite:()=>at,svgRectToSprite:()=>Ju,trim:()=>ma,truncateWithEllipsis:()=>Pr,unquote:()=>qu,used:()=>Uu,valueToRelative:()=>Ku,width:()=>oh});var Ls={};N.r(Ls),N.d(Ls,{bounceIn:()=>Oh,bounceInOut:()=>Sh,bounceOut:()=>In,circleIn:()=>Ph,circleInOut:()=>Ch,circleOut:()=>wh,cubicIn:()=>Ta,cubicInOut:()=>_h,cubicOut:()=>Qt,elasticIn:()=>Ih,elasticInOut:()=>Th,elasticOut:()=>Dh,expIn:()=>yh,expInOut:()=>vh,expOut:()=>mh,linear:()=>Ca,polyIn:()=>Oa,polyIn3:()=>fh,polyInOut:()=>Ia,polyInOut3:()=>gh,polyOut:()=>Sa,polyOut3:()=>Ar,quadIn:()=>uh,quadInOut:()=>ch,quadOut:()=>dh,sinIn:()=>bh,sinInOut:()=>xh,sinOut:()=>Da});var js={};N.r(js),N.d(js,{add:()=>Ze,checkChange:()=>Rr,copy:()=>bi,getDuration:()=>Se,getNextUnit:()=>ja,getTime:()=>Ot,getTimezoneMinutes:()=>Zh,now:()=>Kh,round:()=>Be,setTimezone:()=>Vn,timeUnitDurations:()=>Gh});var Es={};N.r(Es),N.d(Es,{load:()=>Fn,readBlob:()=>ep});var Rs={};N.r(Rs),N.d(Rs,{arc:()=>Pi,arcTo:()=>Le,arcToPoint:()=>ot,closePath:()=>gd,cubicCurveTo:()=>_i,lineTo:()=>T,moveTo:()=>E,pathToPoints:()=>yd,pointsToPath:()=>vd,polyline:()=>Zi,quadraticCurveTo:()=>ni,rectToPath:()=>Yt,rectangle:()=>Xr,spiralPoints:()=>md});var Bs={};N.r(Bs),N.d(Bs,{AMElement:()=>An,Adapter:()=>it,Animation:()=>gt,BaseObject:()=>Ke,BaseObjectEvents:()=>wt,Basis:()=>bd,BlurFilter:()=>kp,Button:()=>Xt,CSVParser:()=>Ln,Cache:()=>El,Circle:()=>ii,CirclePattern:()=>so,CloseButton:()=>gp,Color:()=>se,ColorModifier:()=>io,ColorSet:()=>$i,ColorizeFilter:()=>Tp,Component:()=>ti,Cone:()=>Op,Container:()=>W,CounterDisposer:()=>un,DATE:()=>_n,DURATION:()=>br,DataItem:()=>ei,DataLoader:()=>ap,DataParser:()=>qa,DataSource:()=>op,DateFormatter:()=>Gi,DesaturateFilter:()=>Wn,Dictionary:()=>me,DictionaryDisposer:()=>Jt,DictionaryTemplate:()=>Bi,Disposer:()=>le,DropShadowFilter:()=>Ja,DurationFormatter:()=>Hr,Ellipse:()=>Wr,EventDispatcher:()=>Bt,Export:()=>rp,ExportMenu:()=>Qh,Filter:()=>wi,FocusFilter:()=>Ap,GlobalAdapter:()=>Bl,Group:()=>Hh,Image:()=>hp,IndexedIterable:()=>ha,Inertia:()=>zh,Interaction:()=>qh,InteractionKeyboardObject:()=>Yh,InteractionObject:()=>Xh,InteractionObjectEventDispatcher:()=>Wh,InterfaceColorSet:()=>ae,JSONParser:()=>Ki,Keyboard:()=>Uh,Label:()=>$e,Language:()=>Wt,LightenFilter:()=>Gr,Line:()=>yt,LinePattern:()=>ro,LinearGradient:()=>dt,LinearGradientModifier:()=>Nn,List:()=>re,ListDisposer:()=>fe,ListGrouper:()=>Nu,ListIterator:()=>fn,ListTemplate:()=>Oe,Modal:()=>Ba,Morpher:()=>cp,MouseCursorStyle:()=>He,MultiDisposer:()=>_e,MutableValueDisposer:()=>Me,NUMBER:()=>xn,NumberFormatter:()=>Br,OrderedList:()=>pa,OrderedListTemplate:()=>yn,PLACEHOLDER:()=>st,PLACEHOLDER2:()=>mi,PX:()=>zu,Paper:()=>Ya,Pattern:()=>xi,PatternSet:()=>Vp,Percent:()=>te,PlayButton:()=>Cp,Plugin:()=>xd,PointedRectangle:()=>up,PointedShape:()=>pp,Polyarc:()=>dp,Polygon:()=>fp,Polyline:()=>qi,Polyspline:()=>jn,Popup:()=>Ra,Preloader:()=>$a,RadialGradient:()=>Nt,RadialGradientModifier:()=>Dp,RectPattern:()=>ao,Rectangle:()=>Mn,Rectangle3D:()=>Sp,Registry:()=>Rl,ResizeButton:()=>Yr,Responsive:()=>lp,ResponsiveBreakpoints:()=>Ue,RoundedRectangle:()=>St,STRING:()=>fa,SVGContainer:()=>Xa,SVGDefaults:()=>Ah,Scrollbar:()=>En,Slice:()=>ri,Slice3D:()=>Ip,Slider:()=>mp,SortedList:()=>gr,SortedListTemplate:()=>ua,Sprite:()=>$,SpriteEventDispatcher:()=>kh,SpriteState:()=>Tn,StyleClass:()=>ld,StyleRule:()=>ue,SwitchButton:()=>yp,System:()=>sp,TargetedEventDispatcher:()=>na,Tension:()=>zt,TextFormatter:()=>Ga,TextLink:()=>zr,Tooltip:()=>Rn,Trapezoid:()=>Qa,Triangle:()=>Ur,Validatable:()=>Za,WavedCircle:()=>Hn,WavedLine:()=>si,WavedRectangle:()=>eo,ZoomOutButton:()=>to,addClass:()=>Mr,addLicense:()=>Td,animate:()=>ed,array:()=>Ds,blur:()=>kn,cache:()=>Hi,castColor:()=>Jl,castNumber:()=>ol,castString:()=>sn,checkBoolean:()=>rl,checkNumber:()=>sl,checkObject:()=>al,checkString:()=>nl,color:()=>B,colors:()=>Fs,copyAttributes:()=>ad,create:()=>wd,createDeferred:()=>Od,createFromConfig:()=>Cd,dataLoader:()=>Nr,defaultRules:()=>Ne,disposeAllCharts:()=>Pd,ease:()=>Ls,fixPixelPerfect:()=>Rh,focus:()=>nd,getElement:()=>Va,getInteraction:()=>K,getTextFormatter:()=>Ft,globalAdapter:()=>mr,is:()=>Ye,isArray:()=>Ae,isColor:()=>$l,isElement:()=>sd,isNaN:()=>Fe,isNumber:()=>y,isObject:()=>ye,isPercent:()=>il,isString:()=>J,iter:()=>ks,join:()=>Ll,keyboard:()=>Ct,math:()=>Is,max:()=>Ml,min:()=>Fl,net:()=>Es,nextFrame:()=>ta,number:()=>Vs,object:()=>Ts,options:()=>Z,or:()=>da,outerHTML:()=>rd,path:()=>Rs,percent:()=>F,readFrame:()=>Pl,ready:()=>Bh,registry:()=>_,removeClass:()=>Lr,reverse:()=>yr,string:()=>As,system:()=>Q,time:()=>js,triggerIdle:()=>Cl,type:()=>Ss,unuseAllThemes:()=>Dd,unuseTheme:()=>Id,useTheme:()=>Sd,utils:()=>Ms,viewPortHandler:()=>Ci,whenIdle:()=>wl,writeFrame:()=>ia});var Hs={};N.r(Hs),N.d(Hs,{Axis:()=>Gn,AxisBreak:()=>Un,AxisBullet:()=>tn,AxisDataItem:()=>Ji,AxisFill:()=>qr,AxisFillCircular:()=>_o,AxisLabel:()=>$r,AxisLabelCircular:()=>Jn,AxisLine:()=>co,AxisRenderer:()=>Kn,AxisRendererCircular:()=>wo,AxisRendererRadial:()=>Co,AxisRendererX:()=>Mt,AxisRendererX3D:()=>Bo,AxisRendererY:()=>mt,AxisRendererY3D:()=>qp,AxisTick:()=>fo,Bullet:()=>It,Candlestick:()=>ir,CandlestickSeries:()=>No,CandlestickSeriesDataItem:()=>us,CategoryAxis:()=>Ve,CategoryAxisBreak:()=>mo,CategoryAxisDataItem:()=>vo,Chart:()=>ai,ChartDataItem:()=>ho,ChordDiagram:()=>Gp,ChordDiagramDataItem:()=>Up,ChordLink:()=>Eo,ChordNode:()=>jo,CircleBullet:()=>uu,ClockHand:()=>So,Column:()=>hi,Column3D:()=>Ho,ColumnSeries:()=>pi,ColumnSeries3D:()=>ps,ColumnSeries3DDataItem:()=>$p,ColumnSeriesDataItem:()=>Gt,ConeColumn:()=>Ko,ConeSeries:()=>lu,ConeSeriesDataItem:()=>ou,Cursor:()=>qo,CurvedColumn:()=>Zo,CurvedColumnSeries:()=>pu,CurvedColumnSeriesDataItem:()=>hu,DateAxis:()=>Pe,DateAxisBreak:()=>go,DateAxisDataItem:()=>yo,DurationAxis:()=>ts,DurationAxisDataItem:()=>Rp,ErrorBullet:()=>du,FlowDiagram:()=>os,FlowDiagramDataItem:()=>as,FlowDiagramLink:()=>tr,FlowDiagramNode:()=>er,FunnelSeries:()=>zo,FunnelSeriesDataItem:()=>fs,FunnelSlice:()=>cs,GaugeChart:()=>Hp,GaugeChartDataItem:()=>kd,Grid:()=>Qi,GridCircular:()=>Po,HeatLegend:()=>Qp,LabelBullet:()=>ls,Legend:()=>Xn,LegendDataItem:()=>jp,LegendSettings:()=>po,LineSeries:()=>is,LineSeriesDataItem:()=>$n,LineSeriesSegment:()=>es,NavigationBar:()=>fu,NavigationBarDataItem:()=>cu,OHLC:()=>ds,OHLCSeries:()=>eu,OHLCSeriesDataItem:()=>Wo,PictorialStackedSeries:()=>au,PictorialStackedSeriesDataItem:()=>Go,PieChart:()=>Ao,PieChart3D:()=>Np,PieChart3DDataItem:()=>Ad,PieChartDataItem:()=>ko,PieSeries:()=>ss,PieSeries3D:()=>Fo,PieSeries3DDataItem:()=>Vo,PieSeriesDataItem:()=>rs,PieTick:()=>To,PyramidSeries:()=>Uo,PyramidSeriesDataItem:()=>gs,RadarChart:()=>Oo,RadarChartDataItem:()=>Bp,RadarColumn:()=>Yo,RadarColumnSeries:()=>ru,RadarColumnSeriesDataItem:()=>nu,RadarCursor:()=>gu,RadarSeries:()=>xo,RadarSeriesDataItem:()=>bo,SankeyDiagram:()=>zp,SankeyDiagramDataItem:()=>Yp,SankeyLink:()=>Lo,SankeyNode:()=>Mo,SerialChart:()=>Zr,SerialChartDataItem:()=>uo,Series:()=>zn,SeriesDataItem:()=>Yn,SlicedChart:()=>Xp,SlicedChartDataItem:()=>Wp,StepLineSeries:()=>iu,StepLineSeriesDataItem:()=>Xo,Tick:()=>en,TreeMap:()=>Zp,TreeMapDataItem:()=>Kp,TreeMapSeries:()=>hs,TreeMapSeriesDataItem:()=>Ro,ValueAxis:()=>ee,ValueAxisBreak:()=>Jr,ValueAxisDataItem:()=>Zn,XYChart:()=>Ut,XYChart3D:()=>Jp,XYChart3DDataItem:()=>Fd,XYChartDataItem:()=>Qr,XYChartScrollbar:()=>li,XYCursor:()=>$o,XYSeries:()=>oi,XYSeriesDataItem:()=>qn});var Ns=function(s,i){return(Ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(s,i)};function w(s,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=s}Ns(s,i),s.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}var ct=function(){return ct=Object.assign||function(s){for(var i,e=1,t=arguments.length;e0&&n[n.length-1])||6!==p[0]&&2!==p[0])){a=0;continue}if(3===p[0]&&(!n||p[1]>n[0]&&p[1]=s.length&&(s=void 0),{value:s&&s[t++],done:!s}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ti(s,i){var e="function"==typeof Symbol&&s[Symbol.iterator];if(!e)return s;var t,n,r=e.call(s),a=[];try{for(;(void 0===i||i-- >0)&&!(t=r.next()).done;)a.push(t.value)}catch(o){n={error:o}}finally{try{t&&!t.done&&(e=r.return)&&e.call(r)}finally{if(n)throw n.error}}return a}function di(){for(var s=[],i=0;ie&&(s=e),s}function M(s){return V(Math.sin(Ai*s),10)}function Ys(s){return V(Math.tan(Ai*s),10)}function L(s){return V(Math.cos(Ai*s),10)}function q(s,i){return y(s)?y(i)&&i>s?i:s:y(i)?i:null}function ie(s,i){return y(s)?y(i)&&i0)for(var o=0;o<=n;o++){var l=ar(s,i,e,t,o/n);r+=oe(a,l),a=l}return r}function fl(s,i,e,t){var n=oe(i,t),r=oe(s,e);return Math.abs(r/n)}function ln(s,i,e){return y(e)||(e=.5),{x:s.x+(i.x-s.x)*e,y:s.y+(i.y-s.y)*e}}function gl(s,i,e,t){var n=Ee(i,t)-Ee(s,e);return n<0&&(n+=360),n}function Ee(s,i){i||(i={x:2*s.x,y:2*s.y});var n=Math.atan2(i.y-s.y,i.x-s.x)*vt;return n<0&&(n+=360),Zt(n)}function Cu(s,i,e,t,n){var r=gl(i,e,t,n)-90;r<0&&(r+=360);var a=oe(i,t),o=Math.cos(r)/a+i.x,l=Math.cos(r)/a+i.y;return{x:o-s.x,y:l-s.y}}function Fi(s){if(s){var i=s.length;if(0!==i){for(var e,t=void 0,n=void 0,r=void 0,a=0;an)&&(n=o.x),(!y(t)||o.xr)&&(r=o.y)}return{x:t,y:e,width:n-t,height:r-e}}}return{x:0,y:0,width:0,height:0}}function Mi(s){var i=s.length;if(0!==i){for(var e=void 0,t=void 0,n=void 0,r=void 0,a=0;ae){var t=i;i=e,e=t}s=Zt(s);var n=(i-Zt(i))/360;return se&&(s-360>i?s-=360:s=si+(e-i)/2-180?i:e),s}function xt(s,i,e){var t=Number.MAX_VALUE,n=Number.MAX_VALUE,r=-Number.MAX_VALUE,a=-Number.MAX_VALUE,o=[];y(e)||(e=1),o.push(or(e,s)),o.push(or(e,i));for(var l=Math.min(90*Math.floor(s/90),90*Math.floor(i/90)),h=Math.max(90*Math.ceil(s/90),90*Math.ceil(i/90)),p=l;p<=h;p+=90)p>=s&&p<=i&&o.push(or(e,p));for(var u=0;ur&&(r=d.x),d.y>a&&(a=d.y)}return{x:t,y:n,width:r-t,height:a-n}}function or(s,i){return{x:s*L(i),y:s*M(i)}}function Ks(s,i){return s.x>=i.x&&s.x<=i.x+i.width&&s.y>=i.y&&s.y<=i.y+i.height}function Ou(s,i,e,t){return{x:((s.x*i.y-i.x*s.y)*(e.x-t.x)-(s.x-i.x)*(e.x*t.y-e.y*t.x))/((s.x-i.x)*(e.y-t.y)-(s.y-i.y)*(e.x-t.x)),y:((s.x*i.y-i.x*s.y)*(e.y-t.y)-(s.y-i.y)*(e.x*t.y-e.y*t.x))/((s.x-i.x)*(e.y-t.y)-(s.y-i.y)*(e.x-t.x))}}function ht(s,i){for(var e=s.length,t=0;t>1,o=i(e,s[a]);o<0?n=a:(0===o&&(r=!0),t=a+1)}return{found:r,index:r?t-1:t}}function pr(s,i){for(var e=s.length,t=0;t0&&this.hasListenersByType(i)&&null==this._disabled[i]},s.prototype.has=function(i,e,t){return-1!==pr(this._listeners,function(n){return!0!==n.once&&n.type===i&&(null==e||n.callback===e)&&n.context===t})},s.prototype._shouldDispatch=function(i){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[i];return y(e)?(e<=1?delete this._disabled[i]:--this._disabled[i],!1):this._enabled},s.prototype._eachListener=function(i){var e=this;++this._iterating;try{j(this._listeners,i)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(j(this._killed,function(t){e._removeListener(t)}),this._killed.length=0)}},s.prototype.dispatchImmediately=function(i,e){this._shouldDispatch(i)&&this._eachListener(function(t){t.killed||null!==t.type&&t.type!==i||t.dispatch(i,e)})},s.prototype.dispatch=function(i,e){this._shouldDispatch(i)&&this._eachListener(function(t){t.killed||null!==t.type&&t.type!==i||wl(function(){t.killed||t.dispatch(i,e)})})},s.prototype._on=function(i,e,t,n,r,a){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(i,e,t,n);var l={type:e,callback:t,context:n,shouldClone:r,dispatch:a,killed:!1,once:i,disposer:new le(function(){l.killed=!0,o._removeListener(l)})};return this._listeners.push(l),l},s.prototype.onAll=function(i,e,t){return void 0===t&&(t=!0),this._on(!1,null,i,e,t,function(n,r){return i.call(e,n,r)}).disposer},s.prototype.on=function(i,e,t,n){return void 0===n&&(n=!0),this._on(!1,i,e,t,n,function(r,a){return e.call(t,a)}).disposer},s.prototype.once=function(i,e,t,n){void 0===n&&(n=!0);var r=this._on(!0,i,e,t,n,function(a,o){r.disposer.dispose(),e.call(t,o)});return r.disposer},s.prototype.off=function(i,e,t){this._removeExistingListener(!1,i,e,t)},s.prototype.copyFrom=function(i){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(i===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");j(i._listeners,function(t){!t.killed&&t.shouldClone&&(null===t.type?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))})},s}(),na=function(s){function i(e){var t=s.call(this)||this;return t.target=e,t}return w(i,s),i.prototype.copyFrom=function(e){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");j(e._listeners,function(n){n.context!==e.target&&!n.killed&&n.shouldClone&&(null===n.type?t.onAll(n.callback,n.context):n.once?t.once(n.type,n.callback,n.context):t.on(n.type,n.callback,n.context))})},i}(Bt);function Ol(s){return function(i){for(var e in s)if(_t(s,e)&&!i([e,s[e]]))break}}function ra(s){var i=[];for(var e in s)_t(s,e)&&i.push(e);return i}function Sl(s,i){return ra(s).sort(i)}function _t(s,i){return{}.hasOwnProperty.call(s,i)}function Fu(s,i){return s[i]}function sa(s,i){for(var e in s)if(_t(s,e)&&!i(e,s[e]))break}function X(s,i){sa(s,function(e,t){return i(e,t),!0})}function At(s,i,e){j(Sl(s,e),function(t){i(t,s[t])})}function Mu(s){return Object.assign({},s)}function dr(s,i){return Object.assign({},s,i)}function Il(s){return JSON.parse(JSON.stringify(s))}function De(s,i,e){j(e,function(t){v(s[t])&&(i[t]=s[t])})}function Lu(s,i,e){j(e,function(t){v(s[t])&&!v(i[t])&&(i[t]=s[t])})}function Dl(s,i,e){j(e,function(t){i[t]=s[t]})}function Ei(s,i){De(s,i,ra(s))}function qt(s){return function(i){for(var e=s.length,t=0;ts?i:s}function Ml(s){return oa(s,null,Hu)}function Ll(s,i){void 0===i&&(i="");var e=!0,t="";return s(function(n){return e?e=!1:t+=i,t+=n,!0}),t}var fn=function(){function s(i,e){this.createNewItems=!1,this.list=i,this._create=e,this.reset()}return s.prototype.reset=function(){this._listCopy=Ri(this.list.iterator())},s.prototype.clear=function(){this._listCopy.length=0},s.prototype.getFirst=function(){return this.returnItem(0)},s.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},s.prototype.find=function(i){var e=pr(this._listCopy,i);if(-1!==e){var t=this._listCopy[e];return z(this._listCopy,t),t}return this.getLast()},s.prototype.removeItem=function(i){return z(this._listCopy,i)},s.prototype.returnItem=function(i){if(i>=0&&i=i._end&&e(i._array[t]);--t);}},s.prototype.backwards=function(){return new s(this._array,this._end,this._start)},s.prototype.range=function(i,e){if(i<=e){if(this._start===this._end)return this;if(this._start=0&&s=0&&i0);if(a>=o)return o;this.swap(a,o)}},s.prototype.sort=function(i){this._sortQuicksort(0,this._values.length-1,i)},s.prototype.swap=function(i,e){var t=this._values.length;if(gn(i,t),gn(e,t),i!==e){var n=this._values[i],r=this._values[e];this._values[i]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:i,oldValue:n,newValue:r}),this._values[e]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:n})}},s.prototype.removeIndex=function(i){gn(i,this._values.length);var e=this._values[i];return gi(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},s.prototype.moveValue=function(i,e){var t=this.indexOf(i);if(-1!==t){var n=this._values[t];gi(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:n})}null==e?(e=this._values.length,this._values.push(i)):fi(this._values,e,i),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:i}),-1===t&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i})},s.prototype.push=function(i){var e=this._values.push(i)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i}),i},s.prototype.unshift=function(i){this.insertIndex(0,i)},s.prototype.pushAll=function(i){var e=this;j(i,function(t){e.push(t)})},s.prototype.copyFrom=function(i){this.pushAll(i._values)},s.prototype.pop=function(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)},s.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},s.prototype.setAll=function(i){var e=this,t=ji(this._values);this._values.length=0,j(i,function(n){e._values.push(n)}),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:t,newArray:this._values}),this.events.isEnabled("removed")&&j(t,function(n){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:n})}),this.events.isEnabled("inserted")&&j(this._values,function(n){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:n})})},s.prototype.clear=function(){this.setAll([])},s.prototype.iterator=function(){return qt(this._values)},s.prototype[Symbol.iterator]=function(){var i,e;return pe(this,function(t){switch(t.label){case 0:i=this._values.length,e=0,t.label=1;case 1:return ep)&&(a=o,n=h,r=p)}else"left"===t&&h=i&&(!v(n)||n>=h)&&(a=o,n=h);return++o,!0}),-1===a&&("left"===t?a=0:"right"===t&&(a=this.length-1)),a},s.prototype.iterator=function(){return qt(this._values)},s.prototype[Symbol.iterator]=function(){var i,e;return pe(this,function(t){switch(t.label){case 0:i=this._values.length,e=0,t.label=1;case 1:return e0)for(var r=0;r0?255-s:s)*i)}function Kl(s,i){if(s){var e=vn(Math.min(Math.max(s.r,s.g,s.b),230),i);return{r:Math.max(0,Math.min(255,Math.round(s.r+e))),g:Math.max(0,Math.min(255,Math.round(s.g+e))),b:Math.max(0,Math.min(255,Math.round(s.b+e))),a:s.a}}return s}function Wu(s,i){return Math.round(255*i)}function Zl(s,i){if(null==s||1==i)return s;var e=bn(s);return e.s=i,ca(e)}function ca(s){var i,e,t,n=s.h,r=s.s,a=s.l;if(0==r)i=e=t=a;else{var o=function(p,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<.16666666666666666?p+6*(u-p)*d:d<.5?u:d<.6666666666666666?p+(u-p)*(.6666666666666666-d)*6:p},l=a<.5?a*(1+r):a+r-a*r,h=2*a-l;i=o(h,l,n+1/3),e=o(h,l,n),t=o(h,l,n-1/3)}return{r:Math.round(255*i),g:Math.round(255*e),b:Math.round(255*t)}}function bn(s){var i=s.r/255,e=s.g/255,t=s.b/255,n=Math.max(i,e,t),r=Math.min(i,e,t),a=0,o=0,l=(n+r)/2;if(n===r)a=o=0;else{var h=n-r;switch(o=l>.5?h/(2-n-r):h/(n+r),n){case i:a=(e-t)/h+(e=128}var se=function(){function s(i){this._value=i}return Object.defineProperty(s.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hex",{get:function(){return this._value?zl(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rgba",{get:function(){return this._value?Ul(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"alpha",{get:function(){return null!=this._value&&null!=this._value.a?this._value.a:1},set:function(i){this._value&&(this._value.a=i)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new s({r:255,g:255,b:255})),this._lightColor},set:function(i){this._lightColor=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new s({r:0,g:0,b:0})),this._darkColor},set:function(i){this._darkColor=i},enumerable:!0,configurable:!0}),s.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},s.prototype.lighten=function(i){return new s(Gl(this.rgb,i))},s.prototype.brighten=function(i){return new s(Kl(this.rgb,i))},s.prototype.saturate=function(i){return new s(Zl(this.rgb,i))},Object.defineProperty(s.prototype,"alternative",{get:function(){if(null!=this.rgb)return ql(this.rgb)?this.darkColor:this.lightColor;throw new Error("Color does not exist")},enumerable:!0,configurable:!0}),s}();function B(s,i){if(!v(s))return new se(void 0);if("string"==typeof s){var e="_color_"+s+"_"+(i||"1"),t=_.getCache(e);if(t)return new se({r:t.r,g:t.g,b:t.b,a:t.a});var n=Nl(s,i);return _.setCache(e,n),new se(n)}return s instanceof se?(v(i)&&(s.alpha=i),s):new se(s)}function $l(s){return s instanceof se}function Jl(s){return B(s)}function ft(s){return v(s)&&!$l(s)?Jl(s):s}var Ke=function(){function s(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return s.prototype.debug=function(){},Object.defineProperty(s.prototype,"uid",{get:function(){return this._uid||(this._uid=_.getUniqueId(),_.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"id",{get:function(){return this._id},set:function(i){this._id=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"map",{get:function(){return this._map||(this._map=new me),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new me),this._delayedMap},enumerable:!0,configurable:!0}),s.prototype.addDelayedMap=function(i,e){var t=this.delayedMap;t.hasKey(e)||t.setKey(e,[]),t.getKey(e).push({property:i,target:this})},s.prototype.processDelayedMap=function(){var i=this;this.delayedMap.each(function(e,t){if(i.map.hasKey(e)){var n=i.map.getKey(e);j(t,function(r){r.target[r.property]=n}),i.delayedMap.removeKey(e)}})},s.prototype.applyTheme=function(){var i=this;if(_){var e=this.getCurrentThemes();e&&j(e,function(t,n){t(i)})}},Object.defineProperty(s.prototype,"themes",{get:function(){return this._themes},set:function(i){this._themes=i},enumerable:!0,configurable:!0}),s.prototype.getCurrentThemes=function(){return this.themes||_.themes},s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._disposers;for(this._disposers=null;0!==i.length;)i.shift().dispose();this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var e=this._uid;null!=e&&_.map.removeKey(e)}},s.prototype.addDisposer=function(i){this._disposers.push(i)},s.prototype.removeDispose=function(i){if(!this._disposed){var e=ht(this._disposers,i);e>-1&&this._disposers.splice(e,1)}i.dispose()},s.prototype.clone=function(i){i||(i="clone-"+_.getUniqueId());var e=new this.constructor;return e.cloneId=i,e.copyFrom(this),e},Object.defineProperty(s.prototype,"clones",{get:function(){return this._clones||(this._clones=new re),this._clones},enumerable:!0,configurable:!0}),s.prototype.copyFrom=function(i){i.clones.push(this),this.clonedFrom=i},Object.defineProperty(s.prototype,"className",{get:function(){return this._className},set:function(i){this._className=i},enumerable:!0,configurable:!0}),s.prototype.setCache=function(i,e,t){Hi.set(this.uid,i,e,t)},s.prototype.getCache=function(i,e){return void 0===e&&(e=void 0),Hi.get(this.uid,i,e)},s.prototype.clearCache=function(){Hi.clear(this.uid)},s.prototype.setTimeout=function(i,e){var t=this,n=setTimeout(function(){t.removeDispose(r),i()},e),r=new le(function(){clearTimeout(n)});return this._disposers.push(r),r},s.prototype.setInterval=function(i,e){var t=this,n=setInterval(function(){t.removeDispose(r),i()},e),r=new le(function(){clearTimeout(n)});return this._disposers.push(r),r},Object.defineProperty(s.prototype,"config",{set:function(i){try{this.processConfig(i)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),s.prototype.processConfig=function(i){var e=this;if(i){var t=this;if(At(i,function(r,a){var o,l=a;if("callback"==r&&"function"==typeof a&&a.call(t),e.hasProperty(r))if(!ye(l)||!v(l.type)||ye(t[r])&&v(t[r].className)&&!l.forceCreate&&t[r].className==l.type||e.asIs(r)?o=t[r]:(o=e.createClassInstance(l.type))?t[r]=o:o=t[r],o instanceof it)e.processAdapters(o,l);else if(o instanceof Bt)e.processEvents(o,l);else if("locale"==r&&J(l))window["am4lang_"+l]&&(t[r]=window["am4lang_"+l]);else if("parent"==r&&J(l)){var h=e.map.getKey(l);h?t[r]=h:e.addDelayedMap("parent",l)}else if(e.asIs(r))t[r]=l;else if(e.asFunction(r)&&J(l)){if(!v(_.registeredClasses[l]))throw Error("Invalid easing function: "+l);t[r]=_.registeredClasses[l]}else if(l instanceof s)t[r]=l;else if(o instanceof s)o.config=l;else if(o instanceof Oe||o instanceof yn||o instanceof ua){if(Ae(l))o instanceof Oe?e.processListTemplate(l,o):e.processOrderedTemplate(l,o);else if(ye(l))if(l instanceof s)o.template=l;else{var p;p=v(l.template)?l.template:l,o.template instanceof s?o.template.config=p:X(p,function(u,d){var c=o.template[u];c instanceof it?e.processAdapters(c,d):c instanceof Bt?e.processEvents(c,d):c instanceof Bi?e.processDictionaryTemplate(c,d):o.template[u]instanceof s?o.template[u].config=d:ye(d)&&v(d.type)?(c=e.createClassInstance(d.type))?(c instanceof s&&(c.config=d),o.template[u]=c):o.template[u]=d:c instanceof re?e.processList(d,c):o.template[u]=e.maybeColorOrPercent(d)}),v(l.values)&&(o instanceof Oe?e.processListTemplate(l.values,o):e.processOrderedTemplate(l.values,o))}}else o instanceof re?"children"==r?e.processList(l,o,e):e.processList(l,o):o instanceof Bi?e.processDictionaryTemplate(o,l):o instanceof me?e.processDictionary(o,l):o instanceof se||o instanceof te?t[r]=e.maybeColorOrPercent(l):ye(o)&&ye(l)?Ei(l,o):(l=e.maybeColorOrPercent(l),t[r]=l);else e.isReserved(r)||(t[r]=l)},this.configOrder),this.processingErrors.length){var n=this.processingErrors.join("\n");throw this._processingErrors=[],Error(n)}}},s.prototype.maybeColorOrPercent=function(i){if(J(i)){if(i.match(/^[\-]?[0-9.]+\%$/))return F(ce(i));if(i.match(/^\#[0-9abcdef]{3,}$/i))return B(i)}return i},s.prototype.processAdapters=function(i,e){var t=this;Ae(e)?j(e,function(n,r){i.add(n.key,n.callback,n.priority||0,t)}):ye(e)&&X(e,function(n,r){i.has(n,r)||i.add(n,r)})},s.prototype.processEvents=function(i,e){var t=this;Ae(e)?j(e,function(n,r){i.on(n.type,n.callback,t)}):ye(e)&&X(e,function(n,r){i.has(n,r)||i.on(n,r)})},s.prototype.processDictionaryTemplate=function(i,e){ye(e)&&X(e,function(t,n){var r;(r="template"==t?i.template:i.hasKey(t)?i.getKey(t):i.create(t))instanceof s?r.config=n:ye(r)&&ye(n)?Ei(n,r):r.setKey(t,n)})},s.prototype.processDictionary=function(i,e){ye(e)&&X(e,function(t,n){i.setKey(t,n)})},s.prototype.processListTemplate=function(i,e){var t=this;for(j(i,function(n,r){var a,o=t.getConfigEntryType(n);if(e.hasIndex(r)&&!n.forceCreate)a=e.getIndex(r);else{if(n instanceof s)return void e.push(n);a=o?e.create(o):e.create()}n===a||ye(n)&&(a instanceof s?a.config=n:ye(a)&&ye(n)?Ei(n,a):e.setIndex(e.indexOf(a),n))});i.length>e.length;)e.pop()},s.prototype.processOrderedTemplate=function(i,e){var t=this;j(i,function(n,r){var a,o=t.getConfigEntryType(n);a=o?e.create(o):e.create(),ye(n)&&(a instanceof s?a.config=n:ye(a)&&ye(n)?Ei(n,a):e.insert(n))})},s.prototype.processList=function(i,e,t){var n=this;Ae(i)||(i=[i]);var r=e.length,a=0;for(j(i,function(o,l){if(ye(o)){var h=void 0;if(li&&(!0!==e||0!=n)){if(t&&(h=wr(h)),d=h.match(new RegExp(".{1,"+i+"}","g"))){if(t)for(var u=0;ui&&""!==r[a]&&(r.push(""),a++),r[a]+=h;a=r.length-1}}}else{var d;if(d=s.match(new RegExp(".{1,"+i+"}","g"))){if(t)for(u=0;ui&&(r=[]),r}function Pr(s,i,e,t,n){return s.length<=i?s:((i-=e.length)<1&&(i=1),(_r(s,i,t,n)[0]||"")+e)}function ma(s){return s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function th(s){return s.replace(/[\s\uFEFF\xA0]+$/g,"")}function ih(s){return s.replace(/^[\s\uFEFF\xA0]+/g,"")}function wr(s){return s.split("").reverse().join("")}function qu(s){var i=s.trim();return(i=s.replace(/^'(.*)'$/,"$1"))==s&&(i=s.replace(/^"(.*)"$/,"$1")),i}function ze(s,i,e){return void 0===i&&(i=0),void 0===e&&(e="0"),"string"!=typeof s&&(s=s.toString()),i>s.length?Array(i-s.length+1).join(e)+s:s}function nh(s){if(void 0===s)return fa;var i=(s=(s=(s=s.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return i?i[1]:s===xn?xn:s===_n?_n:s===br?br:s.match(/[#0]/)?xn:s.match(/[ymwdhnsqaxkzgtei]/)?_n:fa}function Cn(s){return s.replace(/\/(date|number|duration)$/i,"")}function va(s){return s&&s.replace(/<[^>]*>/g,"")}function Cr(s){return s&&va((""+s).replace(/[\n\r]+/g,". "))}function rh(s){if(Fe(s))return"NaN";if(s===1/0)return"Infinity";if(s===-1/0)return"-Infinity";if(0===s&&1/s==-1/0)return"-0";var i=s<0;s=Math.abs(s);var e,t=be(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+s)),n=t[1],r=t[2]||"";if(null==t[3])e=""===r?n:n+"."+r;else{var a,o=+t[3];e=s<1?"0."+la("0",a=o-1)+n+r:0==(a=o-r.length)?n+r:a<0?n+r.slice(0,a)+"."+r.slice(a):n+r+la("0",a)}return i?"-"+e:e}function ba(s){if(ki(s)){var i=new Date(s);return i.setMilliseconds(s.getMilliseconds()),i}if(y(s))return new Date(s);var e=Number(s);return y(e)?new Date(e):new Date(s)}function Or(s){if(ki(s))return s.getTime();if(y(s))return s;if(J(s)){var i=Number(s);return y(i)?i:void 0}}function xa(s,i){var e=new Date(s.getFullYear(),0,0),t=s.getTime()-e.getTime()+60*(e.getTimezoneOffset()-s.getTimezoneOffset())*1e3;return Math.floor(t/864e5)}function Wi(s,i){var e=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate())),t=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-t);var n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e.getTime()-n.getTime())/864e5+1)/7)}function sh(s,i){var e=Wi(new Date(s.getFullYear(),s.getMonth(),1)),t=Wi(s);return 1==t&&(t=53),t-e+1}function ah(s,i,e,t){void 0===e&&(e=1),void 0===t&&(t=!1);var n=new Date(i,0,4,0,0,0,0);return t&&n.setUTCFullYear(i),7*s+e-((n.getDay()||7)+3)}function On(s,i){return s>12?s-=12:0===s&&(s=12),v(i)?s+(i-1):s}function Sn(s,i,e,t){if(void 0===i&&(i=!1),void 0===e&&(e=!1),void 0===t&&(t=!1),t)return i?"Coordinated Universal Time":"UTC";var n=s.toLocaleString("UTC"),r=s.toLocaleString("UTC",{timeZoneName:i?"long":"short"}).substr(n.length);return!1===e&&(r=r.replace(/ (standard|daylight|summer|winter) /i," ")),r}function $u(s,i){return Math.floor(Math.random()*(i-s))+s}function Sr(s,i,e){return s>e?e:se||s1&&n.pop(),bl(n,r),e.path=n.join("/"),""!==e.path&&"/"!==e.path[0])throw new Error("URL path must start with /")}return e.query=t.query,e.hash=t.hash,wa(e)}return wa(t)}function Xi(){return!!window.MSInputMethodContext&&!!document.documentMode}function Ca(s){return+s}function uh(s){return s*s}function dh(s){return s*(2-s)}function ch(s){return((s*=2)<=1?s*s:--s*(2-s)+1)/2}function Oa(s,i){return Math.pow(s,i)}function Sa(s,i){return 1-Math.pow(1-s,i)}function Ia(s,i){return((s*=2)<=1?Math.pow(s,i):2-Math.pow(2-s,i))/2}function fh(s){return Oa(s,3)}function Ar(s){return Sa(s,3)}function gh(s){return Ia(s,3)}function yh(s){return Math.pow(2,10*s-10)}function mh(s){return 1-Math.pow(2,-10*s)}function vh(s){return((s*=2)<=1?Math.pow(2,10*s-10):2-Math.pow(2,10-10*s))/2}function bh(s){return 1-Math.cos(s*Ws)}function Da(s){return Math.sin(s*Ws)}function xh(s){return(1-Math.cos(an*s))/2}function Ta(s){return s*s*s}function Qt(s){return--s*s*s+1}function _h(s){return((s*=2)<=1?s*s*s:(s-=2)*s*s+2)/2}function Ph(s){return 1-Math.sqrt(1-s*s)}function wh(s){return Math.sqrt(1- --s*s)}function Ch(s){return((s*=2)<=1?1-Math.sqrt(1-s*s):Math.sqrt(1-(s-=2)*s)+1)/2}_.registeredClasses["ease.linear"]=Ca,_.registeredClasses["ease.quadIn"]=uh,_.registeredClasses["ease.quadOut"]=dh,_.registeredClasses["ease.quadInOut"]=ch,_.registeredClasses["ease.polyIn"]=Oa,_.registeredClasses["ease.polyOut"]=Sa,_.registeredClasses["ease.polyInOut"]=Ia,_.registeredClasses["ease.polyIn3"]=fh,_.registeredClasses["ease.polyOut3"]=Ar,_.registeredClasses["ease.polyInOut3"]=gh,_.registeredClasses["ease.expIn"]=yh,_.registeredClasses["ease.expOut"]=mh,_.registeredClasses["ease.expInOut"]=vh,_.registeredClasses["ease.sinIn"]=bh,_.registeredClasses["ease.sinOut"]=Da,_.registeredClasses["ease.sinInOut"]=xh,_.registeredClasses["ease.cubicIn"]=Ta,_.registeredClasses["ease.cubicOut"]=Qt,_.registeredClasses["ease.cubicInOut"]=_h,_.registeredClasses["ease.circleIn"]=Ph,_.registeredClasses["ease.circleOut"]=wh,_.registeredClasses["ease.circleInOut"]=Ch;var Vr=7.5625;function Oh(s){return 1-In(1-s)}function In(s){return(s=+s)<.36363636363636365?Vr*s*s:s<.7272727272727273?Vr*(s-=.5454545454545454)*s+.75:s<.9090909090909091?Vr*(s-=.8181818181818182)*s+.9375:Vr*(s-=.9545454545454546)*s+.984375}function Sh(s){return((s*=2)<=1?1-In(1-s):In(s-1)+1)/2}_.registeredClasses["ease.bounceIn"]=Oh,_.registeredClasses["ease.bounceOut"]=In,_.registeredClasses["ease.bounceInOut"]=Sh;var Dn=.3/(2*Math.PI),Fr=Math.asin(1)*Dn;function Ih(s){return 1*Math.pow(2,10*--s)*Math.sin((Fr-s)/Dn)}function Dh(s){return 1-1*Math.pow(2,-10*(s=+s))*Math.sin((s+Fr)/Dn)}function Th(s){return((s=2*s-1)<0?1*Math.pow(2,10*s)*Math.sin((Fr-s)/Dn):2-1*Math.pow(2,-10*s)*Math.sin((Fr+s)/Dn))/2}_.registeredClasses["ease.elasticIn"]=Ih,_.registeredClasses["ease.elasticOut"]=Dh,_.registeredClasses["ease.elasticInOut"]=Th;var Tn=function(s){function i(){var e=s.call(this)||this;return e.transitionDuration=0,e.transitionEasing=Qt,e.properties={},e.propertyFields={},e.filters=new re,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new fe(e.filters)),e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"adapter",{get:function(){var e=this;return this._adapterO||(this._adapterO=new it(this),this._adapterO.events.on("inserted",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1),this._adapterO.events.on("removed",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.getPropertyValue=function(e){var t=this.properties[e],n=this.sprite;if(n){var r=this.propertyFields[e];if(v(r)&&(n.dataItem&&(t=n.dataItem.dataContext[r]),null==t&&(t="__unset")),v(t))this._adapterO&&(t=this._adapterO.apply(e,t));else{var a=n.getPropertyValue(e);(t=this._adapterO?this._adapterO.apply(e,a):a)==a&&(t=void 0)}}return t},i.prototype.copyFrom=function(e){e&&e!=this&&(this.transitionDuration=e.transitionDuration,this.transitionEasing=e.transitionEasing,Vt(e.properties,this.properties),Vt(e.propertyFields,this.propertyFields),this.filters.copyFrom(e.filters),e._adapterO&&this.adapter.copyFrom(e._adapterO))},Object.defineProperty(i.prototype,"allValues",{get:function(){var e=this,t={};return X(this.properties,function(n,r){t[n]=e.getPropertyValue(n)}),this._adapterO&&X(this._adapterO.keys(),function(n,r){var a=e.getPropertyValue(r);t[r]=a}),X(this.propertyFields,function(n){var r=e.getPropertyValue(n);t[n]=r}),t},enumerable:!0,configurable:!0}),i.prototype.reset=function(){this.properties={},this.filters.clear()},i.prototype.processConfig=function(e){v(e)&&v(e.properties)&&X(e.properties,function(t,n){J(n)&&(n.match(/^[0-9.\-]+\%$/)?e.properties[t]=F(ce(n)):n.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[t]=ft(n)))}),s.prototype.processConfig.call(this,e)},i.prototype.asFunction=function(e){return"transitionEasing"==e||s.prototype.asIs.call(this,e)},i}(Ke);_.registeredClasses.SpriteState=Tn;var kh=function(s){function i(){var e=null!==s&&s.apply(this,arguments)||this;return e._interactionEvents=new me,e}return w(i,s),i.prototype._dispatchSpriteEvent=function(e){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(e.type)){var t=dr(e,{target:this.target});this.target.events.dispatchImmediately(t.type,t)}},i.prototype._dispatchSpritePointEvent=function(e){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(e.type)){var t=dr(e,{target:this.target,spritePoint:e.point?vi(e.point,this.target):void 0,svgPoint:this.target.getSvgPoint(e.point)});this.target.events.dispatchImmediately(t.type,t)}},i.prototype._addInteractionObjectEvent=function(e,t,n,r){var a=this,o=r+"-"+e;return this._interactionEvents.insertKeyIfEmpty(o,function(){var l=a.target.interactions.events.on(e,t,n,r);return new un(function(){a._interactionEvents.removeKey(o),l.dispose()})}).increment()},i.prototype._on=function(e,t,n,r,a,o){var l=s.prototype._on.call(this,e,t,n,r,a,o),h=[l.disposer];switch(t){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":h.push(this._addInteractionObjectEvent(t,this._dispatchSpritePointEvent,this,a));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":h.push(this._addInteractionObjectEvent(t,this._dispatchSpriteEvent,this,a))}switch(t){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0}return l.disposer=new _e(h),l},i}(na),Ah=function(){function s(){}return s.opacity=1,s.strokeOpacity=1,s.strokeWidth=1,s.fillOpacity=1,s.fill=B("#000000"),s.stroke=B("#000000"),s.focusable=void 0,s.tabindex=0,s}(),Z={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,autoDispose:!1,licenses:[],suppressErrors:!1,suppressWarnings:!1,animationsEnabled:!0,nonce:"",deferredDelay:100,disableHoverOnTransform:"never",pixelPerfectPrecision:0};function ed(s,i){var e=!1,t=Date.now();return ta(function n(r){if(!e){var a=r-t;a>=s?i(1):(ta(n),i(a/s))}}),new le(function(){e=!0})}function Vh(s,i,e){return i+(e-i)*s}function td(s,i,e){return new te(Vh(s,i.percent,e.percent))}function id(s,i,e){var t=new se(mn(i.rgb,e.rgb,s));return i.alpha!=e.alpha&&(t.alpha=i.alpha+(e.alpha-i.alpha)*s),t}function Fh(s,i){return i+s.charAt(0).toUpperCase()+s.substr(1)}var ka,Yi=function(){function s(i){this._disposer=new le(function(){for(;0!==i.length;)i[0].dispose()})}return s.prototype.isDisposed=function(){return this._disposer.isDisposed()},s.prototype.dispose=function(){this._disposer.dispose()},s}(),gt=function(s){function i(e,t,n,r){var a=s.call(this)||this;return a.duration=0,a.easing=Ca,a.progress=0,a._loop=0,a._pause=!1,a._delayTimeout=null,a._time=0,a._isFinished=!1,a.className="Animation",!1===Z.animationsEnabled&&(n=0),a.object=e,a.animationOptions=Zs(t),a.duration=n,r&&(a.easing=r),a.applyTheme(),a}return w(i,s),i.prototype.debug=function(){},i.prototype.dispose=function(){s.prototype.dispose.call(this),this.pause()},i.prototype.delay=function(e){var t=this;if(e>0){this.pause(),pt(this.object.animations,this);var n=setTimeout(function(){t._delayTimeout=null,t.start()},e);this._delayTimeout=new le(function(){clearTimeout(n)})}return this},i.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,pt(Q.animations,this),pt(this.object.animations,this),Q.requestFrame()},i.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var e=this.animationOptions.length-1;e>=0;e--){var t=this.animationOptions[e];if(v(t.from)||(t.childObject?t.from=t.childObject[t.property]:(t.from=this.object[t.property],v(t.from)||(t.from=Ah[t.property]))),t.from==t.to)z(this.animationOptions,t);else if(!v(t.from)||!(t.from instanceof te)&&t.to instanceof te||t.from instanceof te&&!(t.to instanceof te))this.staticOptions.push(t),z(this.animationOptions,t);else if(y(t.to))if(t.updateMethod=Vh,t.from instanceof te){var n=this.object[Fh(t.property,"pixel")];isNaN(n)?(this.staticOptions.push(t),z(this.animationOptions,t)):t.from=n}else isNaN(t.from)&&(this.staticOptions.push(t),z(this.animationOptions,t));else t.to instanceof se?t.from?t.updateMethod=id:(this.staticOptions.push(t),z(this.animationOptions,t)):t.to instanceof te?(t.updateMethod=td,isNaN(t.from)||(n=this.object[Fh(t.property,"relative")],isNaN(n)||(t.from=F(100*n)))):(this.staticOptions.push(t),z(this.animationOptions,t))}return this.applyStaticOptions(),this.events.isEnabled("animationstarted")&&this.events.dispatchImmediately("animationstarted",{type:"animationstarted",target:this,progress:this.progress}),this.update(),0===this.duration&&this.end(),this},i.prototype.loop=function(e){return y(e)||(e=1/0),this._loop=e,this},i.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),z(Q.animations,this),z(this.object.animations,this),this},i.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},i.prototype.end=function(){return 0==this._loop&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")&&this.events.dispatchImmediately("animationended",{type:"animationended",target:this,progress:this.progress}),this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},i.prototype.kill=function(){this.pause(),this._isFinished=!0},i.prototype.isFinished=function(){return this._isFinished},i.prototype.applyStaticOptions=function(){var e=this;j(this.staticOptions,function(t){t.childObject?t.childObject[t.property]=1==e.progress?t.to:t.from:e.object[t.property]=1==e.progress?t.to:t.from})},i.prototype.stop=function(e){return this.pause(),!e&&this.events.isEnabled("animationstopped")&&this.events.dispatchImmediately("animationstopped",{type:"animationstopped",target:this,progress:this.progress}),this},i.prototype.setProgress=function(e){var t=this;this._time=this.duration*e,j(this.animationOptions,function(r){if(r.updateMethod&&v(r.from)){var a=r.updateMethod(e,r.from,r.to);r.childObject?r.childObject[r.property]=a:t.object[r.property]=a}}),this.progress=e,this.events.isEnabled("animationprogress")&&this.events.dispatchImmediately("animationprogress",{type:"animationprogress",target:this,progress:this.progress}),Q.requestFrame()},i.prototype.update=function(){if(!this._pause){var e=void 0;this._time=R(Date.now()-this._startTime,0,this.duration);var t=this._time/this.duration;e=this.easing(t),(0==this.duration||!y(e)||t>=1)&&(e=1),this.setProgress(e),1==V(this._time/this.duration,6)&&this.end()}return this},Object.defineProperty(i.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),i.prototype.stopSameAnimations=function(){var e=this;j(ji(this.object.animations),function(t){if(t!==e&&!t.delayed){var n=[];j(e.animationOptions,function(r){j(t.animationOptions,function(a){r.property==a.property&&r.childObject==a.childObject&&(n.push(a),0==t.animationOptions.length&&t.kill())})}),j(n,function(r){z(t.animationOptions,r)})}})},i.prototype.asFunction=function(e){return"easing"==e||s.prototype.asIs.call(this,e)},i}(wt),zi="http://www.w3.org/2000/svg",Mh="http://www.w3.org/2000/xmlns/",Aa="http://www.w3.org/1999/xlink";function Ce(s,i,e,t){return s.addEventListener(i,e,t||!1),new le(function(){s.removeEventListener(i,e,t||!1)})}function Va(s){if(J(s)){var i=document.getElementById(s);if(null==i&&(i=document.getElementsByClassName(s)[0]),i instanceof HTMLElement)return i}else if(s instanceof HTMLElement)return s}function Mr(s,i){if(s)if(s.classList)j(i.split(" "),function(t){s.classList.add(t)});else{var e=s.getAttribute("class");s.setAttribute("class",e?e.split(" ").filter(function(t){return t!==i}).join(" ")+" "+i:i)}}function Lr(s,i){if(s)if(s.classList)s.classList.remove(i);else{var e=s.getAttribute("class");e&&s.setAttribute("class",e.split(" ").filter(function(t){return t!==i}).join(" "))}}function Lh(s,i,e){s.style[i]=e}function Fa(s,i){return s.currentStyle?s.currentStyle[i]:document.defaultView.getComputedStyle(s,null).getPropertyValue(i)}function kn(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{var s=document.createElement("button");s.style.position="fixed",s.style.top="0px",s.style.left="-10000px",document.body.appendChild(s),s.focus(),s.blur(),document.body.removeChild(s)}}function nd(s){if(s instanceof HTMLElement)s.focus();else{var i=document.createElement("input"),e=document.createElementNS(zi,"foreignObject");e.appendChild(i),s.appendChild(e),i.focus(),i.disabled=!0,e.remove()}}function rd(s){if(s.outerHTML)return s.outerHTML;var i=document.createElement("div"),e=s.cloneNode(!0);return i.appendChild(e),i.innerHTML}function sd(s){return s instanceof Object&&s&&1===s.nodeType}function jh(s,i){for(var e=i;;){if(s===e)return!0;if(null==e.parentNode){if(null==e.host)return!1;e=e.host}else e=e.parentNode}}function Ma(s){for(var i=s;;){if(null==i.parentNode)return null!=i.host?i:null;i=i.parentNode}}function Eh(s){for(var i=s.ownerDocument,e=s;;){if(null==e.parentNode)return e===i||null!=e.host?e:null;e=e.parentNode}}function ad(s,i){j(s.attributes,function(e){null!=e.value&&i.setAttribute(e.name,e.value)})}function Rh(s){Pl(function(){try{var i=s.getBoundingClientRect(),e=i.left-Math.round(i.left),t=i.top-Math.round(i.top);0!==e&&ia(function(){s.style.left=e+"px"}),0!==t&&ia(function(){s.style.top=t+"px"})}catch{}})}var ue=function(s){function i(e,t,n){var o,l,r=this,a=null==(o=e)?(v(ka)||((l=document.createElement("style")).type="text/css",""!=Z.nonce&&l.setAttribute("nonce",Z.nonce),document.head.appendChild(l),ka=l.sheet),ka):((l=document.createElement("style")).type="text/css",""!=Z.nonce&&l.setAttribute("nonce",Z.nonce),o.appendChild(l),l.sheet);return(r=s.call(this,function(){var o=ht(a.cssRules,r._rule);if(-1===o)throw new Error("Could not dispose StyleRule");a.deleteRule(o)})||this)._rule=function(o,l){var h=o.cssRules.length;return o.insertRule(l+"{}",h),o.cssRules[h]}(a,t),X(n,function(o,l){r.setStyle(o,l)}),r}return w(i,s),Object.defineProperty(i.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(e){this._rule.selectorText=e},enumerable:!0,configurable:!0}),i.prototype._setVendorPrefixName=function(e,t){var n=this._rule.style;n.setProperty("-webkit-"+e,t,""),n.setProperty("-moz-"+e,t,""),n.setProperty("-ms-"+e,t,""),n.setProperty("-o-"+e,t,""),n.setProperty(e,t,"")},i.prototype.setStyle=function(e,t){"transition"===e?this._setVendorPrefixName(e,t):this._rule.style.setProperty(e,t,"")},i}(le),od=0,ld=function(s){function i(e,t,n){var r=this,a=v(n)?n:"__style_"+ ++od+"__";return(r=s.call(this,e,"."+a,t)||this)._className=a,r}return w(i,s),Object.defineProperty(i.prototype,"className",{get:function(){return this._className},set:function(e){this._className=e,this.selector="."+e},enumerable:!0,configurable:!0}),i.prototype.toString=function(){return this._className},i}(ue);function Bh(s){if("loading"!==document.readyState)s();else{var i=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",i),s())};document.addEventListener("readystatechange",i)}}function jr(s){var i=Fa(s,"font-family");if(i)return i;var e=s.parentElement||s.parentNode;return e?jr(e):void 0}function Er(s){var i=Fa(s,"font-size");if(i)return i;var e=s.parentElement||s.parentNode;return e?Er(e):void 0}function La(s,i){var e=s.getBoundingClientRect(),t=Ae(i)?i:i?[i]:[];if(t.length){for(var n=0;n=0&&e.left>=0&&e.top<=a.top+a.height&&e.left<=a.left+a.width)return!0}return!1}return e.top>=0&&e.left>=0&&e.top<=(window.innerHeight||document.documentElement.clientHeight)&&e.left<=(window.innerWidth||document.documentElement.clientWidth)}var An=function(){function s(i){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,this.node="string"==typeof i?document.createElementNS(zi,i):i}return s.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(s.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),s.prototype.transform=function(){var i="translate("+this._x+","+this._y+")";if(1!=this._scale&&(i+=(i?" ":"")+"scale("+this._scale+")"),0!=this._rotation){var e="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(e="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),i+=(i?" ":"")+e}this._transformString=i,this.node.setAttribute("transform",i)},s.prototype.getBBox=function(){var i={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();i.x=e.x,i.y=e.y,i.width=e.width,i.height=e.height}catch{}return i},s.prototype.moveTo=function(i){if(i){var e=i.x,t=i.y;this._x==e&&this._y==t||(this._x=e,this._y=t,this.transform())}},Object.defineProperty(s.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(i){this.node.innerHTML=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(i){this.node.textContent=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"x",{get:function(){return this._x},set:function(i){this._x!=i&&(this._x=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"y",{get:function(){return this._y},set:function(i){this._y!=i&&(this._y=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rotation",{get:function(){return this._rotation},set:function(i){this._rotation!=i&&(this._rotation=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rotationX",{get:function(){return this._rotationX},set:function(i){this._rotationX!=i&&(this._rotationX=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rotationY",{get:function(){return this._rotationY},set:function(i){this._rotationY!=i&&(this._rotationY=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"scale",{get:function(){return this._scale},set:function(i){this._scale!=i&&(this._scale=i,this.transform())},enumerable:!0,configurable:!0}),s.prototype.removeAttr=function(i){this.node.removeAttribute(i)},s.prototype.attr=function(i){var e=this;return X(i,function(t,n){v(n)?e.node.setAttribute(t,n):e.node.removeAttribute(t)}),this},s.prototype.getAttr=function(i){return this.node.getAttribute(i)},s.prototype.attrNS=function(i,e,t){return this.node.setAttributeNS(i,e,t),this},s.prototype.getAttrNS=function(i,e){return this.node.getAttributeNS(i,e)},s.prototype.removeStyle=function(i){this.node.style[i]=null,delete this.node.style[i]},s.prototype.getStyle=function(i){return this.node.style[i]},s.prototype.addStyle=function(i){var e=this;return X(i,function(t,n){v(n)?e.node.style[t]=n:e.removeStyle(t)}),this},s.prototype.addClass=function(i){Mr(this.node,i)},s.prototype.removeClass=function(i){Lr(this.node,i)},s.prototype.setClass=function(i){this.node.setAttribute("class",i)},s.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},s.prototype.isDisposed=function(){return this._isDisposed},s.prototype.dispose=function(){this.removeNode()},s}(),Hh=function(s){function i(e){return s.call(this,e)||this}return w(i,s),i.prototype.add=function(e){e&&this.node.appendChild(e.node)},i.prototype.addToBack=function(e){if(e){var t=this.node.childNodes[0];t?t!=e.node&&this.node.insertBefore(e.node,t):this.node.appendChild(e.node)}},i.prototype.removeElement=function(e){if(e)try{e.node&&e.node.parentNode==this.node&&this.node.removeChild(e.node)}catch{}},i.prototype.hasChild=function(e){for(var t=0;t0;){var e=this.node.firstChild;e&&e.parentNode&&e.parentNode.removeChild(e)}},i.prototype.removeChildrenByTag=function(e){if(this.node.childNodes)for(var t=this.node.getElementsByTagName(e),n=0;n-1&&(this.focusable=!0),K().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(e){this._element=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(e){this._originalPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalScale",{get:function(){return rr(this._originalScale,1)},set:function(e){this._originalScale!==e&&(this._originalScale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalAngle",{get:function(){return rr(this._originalAngle,0)},set:function(e){this._originalAngle!==e&&(this._originalAngle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(e){this._inertiaOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(e){this._hitOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(e){this._hoverOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(e){this._swipeOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(e){this._keyboardOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(e){this._mouseOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(e){this._cursorOptions=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,K().applyCursorOverStyle(this)},i.prototype.setEventDisposer=function(e,t,n){var r=this.eventDisposers.getKey(e);t?null==r&&this.eventDisposers.setKey(e,n()):null!=r&&(r.dispose(),this.eventDisposers.removeKey(e))},i.prototype.dispose=function(){s.prototype.dispose.call(this);var e=K();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},i}(wt),Yh=function(){function s(i,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=i,this.keyboardEvent=e,this._startedOn=(new Date).getTime(),K().processDragStart(i),Q.animations.push(this),this.update()}return s.prototype.update=function(){var i=this.interaction,e=K().getKeyboardOption(i,"speed"),t=K().getKeyboardOption(i,"accelleration"),n=K().getKeyboardOption(i,"accellerationDelay"),r={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,t=1):this.keyboardEvent.ctrlKey&&(e*=2);var a=(new Date).getTime()-this._startedOn,o=a-n;if(t>0&&o>0){var l=a/n;a=n,r.x+=this.directionX*(e*t*l*o),r.y+=this.directionY*(e*t*l*o)}r.x+=this.directionX*(e*a),r.y+=this.directionY*(e*a),K().handleTransformMove(i,r,{x:0,y:0},this.keyboardEvent,!0,!1)},s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){this._disposed||(K().processDragStop(this.interaction),z(Q.animations,this))},s}(),zh=function(s){function i(e,t,n,r){var a=s.call(this)||this;return a.animations=[],a.className="Inertia",a.interaction=e,a.type=t,a.point=n,a.startPoint=r,a._disposers.push(new Yi(a.animations)),a}return w(i,s),Object.defineProperty(i.prototype,"x",{get:function(){return this.point.x},set:function(e){y(e)&&(this.point.x=e,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.point.y},set:function(e){y(e)&&(this.point.y=e,this.handleMove())},enumerable:!0,configurable:!0}),i.prototype.handleMove=function(){this.interaction.events.isEnabled("drag")&&this.interaction.events.dispatchImmediately("drag",{type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1})},i.prototype.done=function(){this.interaction.inertias.removeKey(this.type),"move"===this.type&&K().processDragStop(this.interaction),this.dispose()},i}(Ke),Uh=function(){function s(){}return s.prototype.getEventKey=function(i){var e;switch(i.keyCode||i.which){case 38:e="up";break;case 40:e="down";break;case 37:e="left";break;case 39:e="right";break;case 13:e="enter";break;case 27:e="esc";break;case 36:case 36:e="home";break;case 35:case 35:e="end";break;case 9:e="tab";break;case 17:e="ctrl";break;case 18:e="alt";break;case 16:e="shift";break;case 32:e="space";break;case 33:e="pgup";break;case 34:e="pgdn";break;case 45:e="ins";break;case 46:e="del";break;case 107:e="plus";break;case 109:e="minus";break;default:e="other"}return e},s.prototype.isKey=function(i,e){var t=this.getEventKey(i);return J(e)&&(e=[e]),-1!==e.indexOf(t)},s.prototype.shiftKey=function(i){return i.shiftKey},s.prototype.ctrlKey=function(i){return i.ctrlKey},s.prototype.altKey=function(i){return i.altKey},s.prototype.metaKey=function(i){return i.metaKey},s}(),Ct=new Uh,Gh={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function ja(s){switch(s){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function Se(s,i){return v(i)||(i=1),Gh[s]*i}function Kh(){return new Date}function Ot(){return Kh().getTime()}function bi(s){return new Date(s.getTime())}function Rr(s,i,e,t){s=new Date(s.getTime()),i=new Date(i.getTime());var n=0,r=0;t||"millisecond"==e||(n=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-n),r=i.getTimezoneOffset(),i.setUTCMinutes(i.getUTCMinutes()-r));var a=!1;switch(e){case"year":s.getUTCFullYear()!=i.getUTCFullYear()&&(a=!0);break;case"month":(s.getUTCFullYear()!=i.getUTCFullYear()||s.getUTCMonth()!=i.getUTCMonth())&&(a=!0);break;case"day":(s.getUTCMonth()!=i.getUTCMonth()||s.getUTCDate()!=i.getUTCDate())&&(a=!0);break;case"hour":s.getUTCHours()!=i.getUTCHours()&&(a=!0);break;case"minute":s.getUTCMinutes()!=i.getUTCMinutes()&&(a=!0);break;case"second":s.getUTCSeconds()!=i.getUTCSeconds()&&(a=!0);break;case"millisecond":s.getTime()!=i.getTime()&&(a=!0)}if(a)return!0;var o=ja(e);return!!o&&(s.setUTCMinutes(s.getUTCMinutes()+n),i.setUTCMinutes(i.getUTCMinutes()+r),Rr(s,i,o,t))}function Ze(s,i,e,t){var n=0;switch(t||"millisecond"==i||(n=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-n)),i){case"day":var r=s.getUTCDate();s.setUTCDate(r+e);break;case"second":var a=s.getUTCSeconds();s.setUTCSeconds(a+e);break;case"millisecond":var o=s.getUTCMilliseconds();s.setUTCMilliseconds(o+e);break;case"hour":var l=s.getUTCHours();s.setUTCHours(l+e);break;case"minute":var h=s.getUTCMinutes();s.setUTCMinutes(h+e);break;case"year":var p=s.getUTCFullYear();s.setUTCFullYear(p+e);break;case"month":var u=s.getUTCMonth();s.setUTCMonth(u+e);break;case"week":var d=s.getUTCDate();s.setUTCDate(d+7*e)}if(!t&&"millisecond"!=i&&(s.setUTCMinutes(s.getUTCMinutes()+n),"day"==i||"week"==i||"month"==i||"year"==i)){var c=s.getTimezoneOffset();if(c!=n){var f=c-n;s.setUTCMinutes(s.getUTCMinutes()+f),s.getTimezoneOffset()!=c&&s.setUTCMinutes(s.getUTCMinutes()-f)}}return s}function Be(s,i,e,t,n,r,a,o){void 0===a&&(a=0),y(e)||(e=1);var l=0;switch(o&&-1!=["day","month","week","year"].indexOf(i)&&(s=Vn(s,o)),n||"millisecond"==i||(l=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-l)),i){case"day":var h=s.getUTCDate();if(e>1){if(r){r=Be(r,"day",1);var p=s.getTime()-r.getTime(),u=Math.floor(p/Se("day")/e),d=Se("day",u*e);s.setTime(r.getTime()+d-l*Se("minute"))}}else s.setUTCDate(h);s.setUTCHours(0,0,0,0);break;case"second":var c=s.getUTCSeconds();e>1&&(c=Math.floor(c/e)*e),s.setUTCSeconds(c,0);break;case"millisecond":if(1==e)return s;var f=s.getUTCMilliseconds();f=Math.floor(f/e)*e,s.setUTCMilliseconds(f);break;case"hour":var g=s.getUTCHours();e>1&&(g=Math.floor(g/e)*e),s.setUTCHours(g,a,0,0);break;case"minute":var m=s.getUTCMinutes();f=s.getUTCMilliseconds(),e>1&&(m=Math.floor(m/e)*e),s.setUTCMinutes(m,0,0);break;case"month":var x=s.getUTCMonth();e>1&&(x=Math.floor(x/e)*e),s.setUTCMonth(x,1),s.setUTCHours(0,a,0,0);break;case"year":var b=s.getUTCFullYear();e>1&&(b=Math.floor(b/e)*e),s.setUTCFullYear(b,0,1),s.setUTCHours(0,a,0,0);break;case"week":var C=s.getUTCDate(),S=s.getUTCDay();y(t)||(t=1),s.setUTCDate(C=S>=t?C-S+t:C-(7+S)+t),s.setUTCHours(0,a,0,0)}if(!n&&"millisecond"!=i&&(s.setUTCMinutes(s.getUTCMinutes()+l),"day"==i||"week"==i||"month"==i||"year"==i)){var P=s.getTimezoneOffset();if(P!=l){var O=P-l;s.setUTCMinutes(s.getUTCMinutes()+O)}}return s}function Vn(s,i){return new Date(s.toLocaleString("en-US",{timeZone:i}))}function Zh(s){var i=new Date;return i.setHours(0,0,0,0),Vn(i,s).getMinutes()}var qh=function(s){function i(){var e=s.call(this)||this;return e._globalEventsAdded=!1,e._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},e._usePointerEventsOnly=!1,e._useTouchEventsOnly=!1,e._addHoverEvents=!0,e._passiveSupported=!1,e._delayedEvents={out:[]},e.overObjects=new re,e.downObjects=new re,e.trackedObjects=new re,e.transformedObjects=new re,e.pointers=new me,e.inertiaOptions=new me,e.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},e.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},e.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},e.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},e.mouseOptions={sensitivity:1},e.className="Interaction",e.body=e.getInteraction(document.body),e._disposers.push(e.body),window.hasOwnProperty("PointerEvent")?(e._pointerEvents.pointerdown="pointerdown",e._pointerEvents.pointerup="pointerup",e._pointerEvents.pointermove="pointermove",e._pointerEvents.pointercancel="pointercancel",e._pointerEvents.pointerover="pointerover",e._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(e._pointerEvents.pointerdown="MSPointerDown",e._pointerEvents.pointerup="MSPointerUp",e._pointerEvents.pointermove="MSPointerMove",e._pointerEvents.pointercancel="MSPointerUp",e._pointerEvents.pointerover="MSPointerOver",e._pointerEvents.pointerout="MSPointerOut"):typeof matchMedia<"u"&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(e._addHoverEvents=!1,e._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||e.fullFF()?e._usePointerEventsOnly=!0:e._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?e._pointerEvents.wheel="wheel":v(document.onmousewheel)&&(e._pointerEvents.wheel="mousewheel"),e.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:Ar}),e.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:Ar}),e._passiveSupported=i.passiveSupported,e.applyTheme(),e}return w(i,s),i.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},i.prototype.debug=function(){},i.prototype.addGlobalEvents=function(){var e=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(Ce(document,this._pointerEvents.pointerdown,function(t){e.handleGlobalPointerDown(t)})),this._disposers.push(Ce(document,this._pointerEvents.pointermove,function(t){e.handleGlobalPointerMove(t)})),this._disposers.push(Ce(document,this._pointerEvents.pointerup,function(t){e.handleGlobalPointerUp(t)})),this._disposers.push(Ce(document,this._pointerEvents.pointercancel,function(t){e.handleGlobalPointerUp(t,!0)})),this._disposers.push(Ce(document,"mouseenter",function(t){v(t.relatedTarget)||0!=t.buttons&&0!=t.which||e.handleDocumentLeave(t)}))),this._usePointerEventsOnly||(this._disposers.push(Ce(document,"touchstart",function(t){e.handleGlobalTouchStart(t)})),this._disposers.push(Ce(document,"touchmove",function(t){e.handleGlobalTouchMove(t)})),this._disposers.push(Ce(document,"touchend",function(t){e.handleGlobalTouchEnd(t)}))),this._disposers.push(Ce(document,"keydown",function(t){e.handleGlobalKeyDown(t)})),this._disposers.push(Ce(document,"keyup",function(t){e.handleGlobalKeyUp(t)})),this._globalEventsAdded=!0)},i.prototype.processClickable=function(e){this.processTouchable(e)},i.prototype.processContextMenu=function(e){e.contextMenuDisabled?e.eventDisposers.hasKey("contextMenuDisabled")||e.eventDisposers.setKey("contextMenuDisabled",Ce(e.element,"contextmenu",function(t){t.preventDefault()})):e.eventDisposers.hasKey("contextMenuDisabled")&&e.eventDisposers.getKey("contextMenuDisabled").dispose()},i.prototype.processHoverable=function(e){var t=this;if(e.hoverable||e.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(e),!e.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&e.eventDisposers.setKey("hoverable",new _e([Ce(e.element,this._pointerEvents.pointerout,function(r){return t.handlePointerOut(e,r)}),Ce(e.element,this._pointerEvents.pointerover,function(r){return t.handlePointerOver(e,r)})]));else{var n=e.eventDisposers.getKey("hoverable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("hoverable"))}this.processTouchable(e)},i.prototype.processMovable=function(e){(e.draggable||e.swipeable||e.trackable||e.resizable)&&(this.isGlobalElement(e)||e.isTouchProtected||this.prepElement(e),this.applyCursorOverStyle(e)),this.processTouchable(e)},i.prototype.processTrackable=function(e){this.processHoverable(e),this.processMovable(e),e.trackable?this.trackedObjects.moveValue(e):this.trackedObjects.removeValue(e)},i.prototype.processDraggable=function(e){this.processMovable(e)},i.prototype.processSwipeable=function(e){this.processMovable(e)},i.prototype.processResizable=function(e){this.processMovable(e)},i.prototype.processWheelable=function(e){var t=this;if(e.wheelable)e.eventDisposers.hasKey("wheelable")||e.eventDisposers.setKey("wheelable",new _e([Ce(e.element,this._pointerEvents.wheel,function(r){return t.handleMouseWheel(e,r)},!!this._passiveSupported&&{passive:!1}),e.events.on("out",function(r){e.wheelable&&t.unlockWheel()}),e.events.on("over",function(r){e.wheelable&&t.lockWheel()})]));else{var n=e.eventDisposers.getKey("wheelable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("wheelable"))}},i.prototype.processFocusable=function(e){var t=this;if(!0===e.focusable&&e.tabindex>-1&&!this._useTouchEventsOnly)e.eventDisposers.hasKey("focusable")||e.eventDisposers.setKey("focusable",new _e([Ce(e.element,"focus",function(r){return t.handleFocus(e,r)}),Ce(e.element,"blur",function(r){return t.handleBlur(e,r)}),Ce(e.element,this._pointerEvents.pointerdown,function(r){return t.handleFocusBlur(e,r)}),Ce(e.element,"touchstart",function(r){return t.handleFocusBlur(e,r)},!!this._passiveSupported&&{passive:!1})]));else{var n=e.eventDisposers.getKey("focusable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("focusable"))}},i.prototype.processTouchable=function(e){var t=this;if(e.clickable||e.hoverable||e.trackable||e.draggable||e.swipeable||e.resizable)this.addGlobalEvents(),e.eventDisposers.hasKey("touchable")||(this._useTouchEventsOnly||this._usePointerEventsOnly?this._useTouchEventsOnly?this._usePointerEventsOnly||e.eventDisposers.setKey("touchable",Ce(e.element,"touchstart",function(r){return t.handleTouchDown(e,r)},!!this._passiveSupported&&{passive:!1})):e.eventDisposers.setKey("touchable",Ce(e.element,this._pointerEvents.pointerdown,function(r){return t.handlePointerDown(e,r)})):e.eventDisposers.setKey("touchable",new _e([Ce(e.element,this._pointerEvents.pointerdown,function(r){return t.handlePointerDown(e,r)}),Ce(e.element,"touchstart",function(r){return t.handleTouchDown(e,r)},!!this._passiveSupported&&{passive:!1})])));else{var n=e.eventDisposers.getKey("touchable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("touchable"))}},i.prototype.handleFocus=function(e,t){e.focusable?(e.isFocused=!0,e.events.isEnabled("focus")&&!Q.isPaused&&e.events.dispatchImmediately("focus",{type:"focus",target:e,event:t})):t.preventDefault()},i.prototype.handleFocusBlur=function(e,t){!1!==e.focusable&&this.getHitOption(e,"noFocus")&&e.events.once("focus",function(){e.events.disableType("blur"),kn(),e.sprite&&e.sprite.handleBlur(),e.events.enableType("blur")})},i.prototype.handleBlur=function(e,t){e.focusable?(e.isFocused=!1,e.events.isEnabled("blur")&&!Q.isPaused&&e.events.dispatchImmediately("blur",{type:"blur",target:e,event:t})):t.preventDefault()},i.prototype.handleGlobalKeyDown=function(e){if(this.focusedObject)if(Ct.isKey(e,"esc"))kn();else if(this.focusedObject.draggable&&Ct.isKey(e,["up","down","left","right"])){e.preventDefault();var t=this.focusedObject,n="interactionKeyboardObject";if(t.eventDisposers.hasKey(n))return;var r=new Yh(t,e);switch(t.eventDisposers.setKey(n,r),Ct.getEventKey(e)){case"up":r.directionY=-1;break;case"down":r.directionY=1;break;case"left":r.directionX=-1;break;case"right":r.directionX=1}}},i.prototype.handleGlobalKeyUp=function(e){var t="interactionKeyboardObject";if(this.focusedObject){var n=this.focusedObject.eventDisposers.getKey(t);null!=n&&(e.preventDefault(),n.dispose(),this.focusedObject.eventDisposers.removeKey(t));var r=this.focusedObject.sprite;Ct.isKey(e,"enter")&&r&&(r.events.isEnabled("hit")||r.events.isEnabled("toggled")?this.focusedObject.dispatchImmediately("hit"):"hit"==r.showTooltipOn&&this.focusedObject.dispatchImmediately("up"))}},i.prototype.handleGlobalPointerMove=function(e){var t=this.getPointer(e);t.point=this.getPointerPoint(e),this.events.isEnabled("track")&&!Q.isPaused&&this.events.dispatchImmediately("track",{type:"track",target:this,event:e,pointer:t,touch:t.touch}),this.addBreadCrumb(t,t.point),this.handleGlobalMove(t,e)},i.prototype.handleGlobalPointerDown=function(e){this.processDelayed();var t=this.getPointer(e);this.events.isEnabled("down")&&!Q.isPaused&&this.events.dispatchImmediately("down",{type:"down",target:this,event:e,pointer:t,touch:t.touch})},i.prototype.preventTouchAction=function(e){e.defaultPrevented||e.preventDefault()},i.prototype.handleGlobalPointerUp=function(e,t){void 0===t&&(t=!1);var n=this.getPointer(e);this.events.isEnabled("up")&&!Q.isPaused&&this.events.dispatchImmediately("up",{type:"up",target:this,event:e,pointer:n,touch:n.touch}),this.handleGlobalUp(n,e,t)},i.prototype.handleGlobalTouchMove=function(e){for(var t=0;t=r-this.getHitOption(e,"doubleHitTime")){if(r-e.lastHit<100)return;if(e.lastHit=void 0,e.lastHitPointer=void 0,e.events.isEnabled("doublehit")&&!Q.isPaused){var a={type:"doublehit",target:e,point:t.point,event:n,touch:t.touch};e.events.dispatchImmediately("doublehit",a)}}else e.lastHit=r,e.lastHitPointer=t,3===t.button?e.events.isEnabled("rightclick")&&!Q.isPaused&&e.events.dispatchImmediately("rightclick",a={type:"rightclick",target:e,event:n}):e.events.isEnabled("hit")&&!Q.isPaused&&e.events.dispatchImmediately("hit",a={type:"hit",target:e,event:n,point:t.point,touch:t.touch})},i.prototype.handleOver=function(e,t,n,r){if(e.hoverable){var a=!1;this.shouldCancelHovers(t)&&this.areTransformed()&&this.moved(t,this.getHitOption(e,"hitTolerance"))&&(a=!0,this.cancelAllHovers(n)),this.processDelayed(),e.overPointers.moveValue(t),e.isRealHover||(a||(e.isHover=!0,e.isRealHover=!0,this.overObjects.moveValue(e)),this.handleTrack(this.body,t,n,!0),!e.events.isEnabled("over")||Q.isPaused||a)||e.events.dispatchImmediately("over",{type:"over",target:e,event:n,pointer:t,touch:t.touch})}},i.prototype.handleOut=function(e,t,n,r,a){var o=this;if(void 0===r&&(r=!1),void 0===a&&(a=!1),e.hoverable&&(e.overPointers.removeValue(t),e.isHover&&(!e.hasDelayedOut||a))){if(r&&e.overPointers.length)return;if(t&&t.touch&&!a&&!this.old(t)){var l=this.getHoverOption(e,"touchOutBehavior");if("leave"==l)return this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:n,keepUntil:Ot()+500}),void(e.hasDelayedOut=!0);if("delay"==l&&this.getHoverOption(e,"touchOutDelay"))return void this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:n,keepUntil:Ot()+500,timeout:this.setTimeout(function(){o.handleOut(e,t,n,!0)},this.getHoverOption(e,"touchOutDelay"))})}e.isHover=!1,this.overObjects.removeValue(e),e.isDisposed()||!e.events.isEnabled("out")||Q.isPaused||e.events.dispatchImmediately("out",{type:"out",target:e,event:n,pointer:t,touch:t.touch}),e.overPointers.clear(),e.hasDelayedOut=!1}},i.prototype.processDelayed=function(){for(var e;e=this._delayedEvents.out.pop();)e.timeout&&e.timeout.dispose(),this.handleOut(e.io,e.pointer,e.event,!1,!0)},i.prototype.handleDown=function(e,t,n){this.maybePreventDefault(e,n,t),e.inert&&this.stopInertia(e),this.handleOver(e,t,n,!0),e.downPointers.moveValue(t),this.applyCursorDownStyle(e,t),e.isDown||(!1!==e.focusable&&this.getHitOption(e,"noFocus")&&this.focusedObject&&kn(),e.isDown=!0,this.downObjects.moveValue(e),e.draggable&&this.processDragStart(e,t,n),e.resizable&&this.processResizeStart(e,t,n)),e.events.isEnabled("down")&&!Q.isPaused&&e.events.dispatchImmediately("down",{type:"down",target:e,event:n,pointer:t,touch:t.touch})},i.prototype.handleGlobalUp=function(e,t,n){var r=this;void 0===n&&(n=!1);var a=this.downObjects.values.slice();a.sort(function(o,l){if(o&&l){var h=o.element.compareDocumentPosition(l.element);return h&Node.DOCUMENT_POSITION_CONTAINED_BY?1:h&Node.DOCUMENT_POSITION_CONTAINS?-1:0}return 0}),j(a,function(o){o&&o.downPointers.contains(e)&&r.handleUp(o,e,t,n)})},i.prototype.handleDocumentLeave=function(e){var t=this;A(this.downObjects.backwards().iterator(),function(n){n.downPointers.each(function(r){t.handleUp(n,r,e)})})},i.prototype.handleUp=function(e,t,n,r){void 0===r&&(r=!1),this.restoreCursorDownStyle(e,t),e.downPointers.removeValue(t),(t.touch||this._useTouchEventsOnly)&&this.handleOut(e,t,n,!0),e.isDown&&(0==e.downPointers.length&&(e.isDown=!1,this.downObjects.removeValue(e)),e.events.isEnabled("up")&&!Q.isPaused&&e.events.dispatchImmediately("up",{type:"up",target:e,event:n,pointer:t,touch:t.touch}),r||(e.swipeable&&this.swiped(e,t)?this.handleSwipe(e,t,n):(e.clickable&&!this.moved(t,this.getHitOption(e,"hitTolerance"))&&this.handleHit(e,t,n),e.inert&&this.moved(t,this.getHitOption(e,"hitTolerance"))?this.handleInertia(e,t):e.draggable&&this.processDragStop(e,t,n),e.resizable&&this.processResizeStop(e,t,n))))},i.prototype.maybePreventDefault=function(e,t,n){!v(t)||!(e.draggable||e.swipeable||e.trackable||e.resizable)||this.isGlobalElement(e)||!1===t.cancelable||e.isTouchProtected&&n&&n.touch||t.preventDefault()},i.prototype.cancelAllHovers=function(e){var t=this;A(this.overObjects.backwards().iterator(),function(n){if(n){var r=n.overPointers.getIndex(0);t.handleOut(n,r,e,!0,!0)}})},i.prototype.shouldCancelHovers=function(e){return"always"==Z.disableHoverOnTransform||"touch"==Z.disableHoverOnTransform&&e.touch},i.prototype.handleGlobalMove=function(e,t){var n,r=this;if(!e.touch){var a="function"==typeof(n=e.lastEvent).composedPath?n.composedPath()[0]:n.target;A(this.overObjects.backwards().iterator(),function(o){if(o&&o.overPointers.contains(e)&&o.hoverable){var l=!1;o.element&&e.lastEvent&&jh(o.element,a)||(l=!0),l&&r.handleOut(o,e,t,!0)}})}A(this.transformedObjects.backwards().iterator(),function(o){!o.downPointers.contains(e)||o.swipeable&&r.swiping(o,e)||!o.draggable&&!o.resizable||r.handleTransform(o,t)}),A(this.trackedObjects.backwards().iterator(),function(o){o.overPointers.contains(e)||r.handleTrack(o,e,t)})},i.prototype.handleTrack=function(e,t,n,r){void 0===r&&(r=!1),(r||this.moved(t,0))&&e.events.isEnabled("track")&&!Q.isPaused&&e.events.dispatchImmediately("track",{type:"track",target:e,event:n,point:t.point,pointer:t,touch:t.touch})},i.prototype.handleSwipe=function(e,t,n){if(e.events.isEnabled("swipe")&&!Q.isPaused){var r={type:"swipe",target:e,event:n,touch:t.touch};e.events.dispatchImmediately("swipe",r)}t.startPoint.x0?e.events.isEnabled("swiperight")&&!Q.isPaused&&e.events.dispatchImmediately("wheelright",{type:"wheelright",target:e,event:a,point:t.point,shift:o}):r<0?e.events.isEnabled("wheelup")&&!Q.isPaused&&e.events.dispatchImmediately("wheelup",{type:"wheelup",target:e,event:a,point:t.point,shift:o}):r>0&&e.events.isEnabled("wheeldown")&&!Q.isPaused&&e.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:e,event:a,point:t.point,shift:o})},i.prototype.handleInertia=function(e,t){e.draggable&&0===e.downPointers.length&&this.handleMoveInertia(e,t),e.resizable&&e.downPointers.length>1&&this.handleResizeInertia(e,t)},i.prototype.handleMoveInertia=function(e,t){var o=new zh(e,"move",{x:t.point.x,y:t.point.y},{x:t.startPoint.x,y:t.startPoint.y}),l=this.getTrailPoint(t,Ot()-this.getInertiaOption(e,"move","time"));if(void 0!==l){var h=this.getInertiaOption(e,"move","factor"),u=new gt(o,[{to:t.point.x+(t.point.x-l.point.x)*h,property:"x"},{to:t.point.y+(t.point.y-l.point.y)*h,property:"y"}],this.getInertiaOption(e,"move","duration"),this.getInertiaOption(e,"move","easing")).start();this._disposers.push(u.events.on("animationended",function(d){o.done()})),e.inertias.setKey("move",o)}else this.processDragStop(e,t,t.lastUpEvent)},i.prototype.handleResizeInertia=function(e,t){},i.prototype.handleTransform=function(e,t){var n,r,a,o=e.downPointers.getIndex(0),l=null,h=null;o&&(l=o.point,h=o.startPoint),a=r={x:e.originalPosition.x,y:e.originalPosition.y};for(var p=!0,u=1;un-this.getSwipeOption(e,"time")},i.prototype.swiped=function(e,t){var n=Ot();return!t.swipeCanceled&&Math.abs(t.startPoint.x-t.point.x)>this.getSwipeOption(e,"horizontalThreshold")&&Math.abs(t.startPoint.y-t.point.y)n-this.getSwipeOption(e,"time")},i.prototype.applyCursorOverStyle=function(e){var t=e.cursorOptions;if(v(t.overStyle))for(var n=0;nt||Math.abs(r.y)>t},i.prototype.old=function(e,t){return void 0===t&&(t=300),Ot()-e.startTime>t},i.prototype.getShift=function(e){return{x:e.startPoint.x-e.point.x,y:e.startPoint.y-e.point.y}},i.prototype.getTrailPoint=function(e,t){for(var n,r=0;r=t){n=e.track[r];break}return n},i.prototype.pointerExists=function(e,t){var n=!1;return e.each(function(r){r!=t&&(n=r.point.x==t.point.x&&r.point.y==t.point.y)}),n},i.prototype.getInteraction=function(e){return new Xh(e)},i.prototype.setTemporaryStyle=function(e,t,n){var r=e.element;v(r.style[t])&&!e.replacedStyles.hasKey(t)&&e.replacedStyles.setKey(t,r.style[t]),Lh(r,t,n)},i.prototype.restoreStyle=function(e,t){e.replacedStyles.hasKey(t)?(e.element.style[t]=e.replacedStyles.getKey(t),e.replacedStyles.removeKey(t)):delete e.element.style[t]},i.prototype.restoreAllStyles=function(e){A(e.replacedStyles.iterator(),function(t){var n=t[0];e.element.style[n]=t[1],e.replacedStyles.removeKey(n)})},i.prototype.dispose=function(){this.isDisposed()||(s.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},i.prototype.log=function(e,t,n){if(t.changedTouches)for(var r=0;r0},i.prototype.logTouch=function(e,t,n){console.log(e+" "+t+" touch "+n.identifier)},Object.defineProperty(i,"passiveSupported",{get:function(){var e=this;if(null==this._passiveSupported)try{var t=Object.defineProperty({},"passive",{get:function(){e._passiveSupported=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),i}(wt),Ea=null;function K(){return null==Ea&&(Ea=new qh),Ea}var Ra=function(s){function i(){var e=s.call(this)||this;return e.adapter=new it(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._dynamicResize=!0,e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return w(i,s),i.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},i.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},i.prototype.dispose=function(){this.close(),s.prototype.dispose.call(this)},i.prototype.positionElement=function(e){var t=this;void 0===e&&(e=!0),this._elements.wrapper&&setTimeout(function(){if(t._elements.wrapper){if(e||!t._sized){t._elements.wrapper.style.opacity="0.01",t._elements.wrapper.style.left="0",t._elements.wrapper.style.top="0",t._elements.wrapper.style.margin="0 0 0 0",t._elements.wrapper.style.width="",t._elements.wrapper.style.height="";var n=t._elements.wrapper.getBoundingClientRect();t._elements.wrapper.style.width=n.width+"px",t._elements.wrapper.style.height=n.height+"px",t._sized=!0}if(t.dynamicResize)for(var r=t._elements.wrapper.getElementsByTagName("img"),a=0;an+s.delay)&&(n=o,j(t._targets,function(l){var h=l.target.getBoundingClientRect();h.width===l.size.width&&h.height===l.size.height||(l.size=h,l.callback())})),t._timer=requestAnimationFrame(r)};this._timer=requestAnimationFrame(r)}var a=i.getBoundingClientRect();this._targets.push({target:i,callback:e,size:a})},s.prototype.removeTarget=function(i){qs(this._targets,function(e){return e.target!==i}),0===this._targets.length&&cancelAnimationFrame(this._timer)},s.delay=200,s}(),Na=null,ud=function(){function s(i,e){this._disposed=!1,this._sensor=(null===Na&&(Na=typeof ResizeObserver<"u"?new hd:new pd),Na),this._element=i,this._sensor.addTarget(i,e)}return s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},Object.defineProperty(s.prototype,"sensor",{get:function(){return this._sensor},enumerable:!0,configurable:!0}),s.prototype.reset=function(){Ha("resizeSensor.reset() is no longer needed and can be removed")},s}(),Wa=[],Xa=function(){function s(i,e){var t=this;this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this._printing=!1,this.htmlElement=i,e||(this._printing=!1,this.initSensor(),this._disposers.push(Ce(window,"beforeprint",function(){t._printing=!0})),this._disposers.push(Ce(window,"afterprint",function(){t._printing=!1}))),Wa.push(this);var n=document.createElement("div"),r=n.style;r.width="100%",r.height="100%",r.position="relative",i.appendChild(n),this.SVGContainer=n}return s.prototype.initSensor=function(){var i=this;this.resizeSensor&&this.resizeSensor.dispose(),this.resizeSensor=new ud(this.htmlElement,function(){i.autoResize&&!i._printing&&i.measure()}),this._disposers.push(this.resizeSensor)},s.prototype.measure=function(){var i=oh(this.htmlElement),e=lh(this.htmlElement),t=this.container;t&&(this.width==i&&this.height==e||(this.width=i,this.height=e,i>0&&(t.maxWidth=i),e>0&&(t.maxHeight=e),Rh(this.SVGContainer)),t.maxWidth||(t.maxWidth=0),t.maxHeight||(t.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(s.prototype,"container",{get:function(){return this._container},set:function(i){this._container=i,this.measure()},enumerable:!0,configurable:!0}),s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){this._disposed||z(Wa,this),j(this._disposers,function(i){i.dispose()})},Object.defineProperty(s.prototype,"hideOverflow",{set:function(i){this.SVGContainer.style.overflow=i?"hidden":""},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"modal",{get:function(){return v(this._modal)||(this._modal=new Ba,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),s.prototype.openModal=function(i,e){this.closeModal();var t=this.modal;return t.content=i,t.readerTitle=e||"",t.title=e||"",t.open(),t},s.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(s.prototype,"popups",{get:function(){if(!v(this._popups)){var i=new Ra;i.container=this.SVGContainer,this._popups=new Oe(i),this._disposers.push(new fe(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),s.prototype.openPopup=function(i,e){var t=this.popups.create();return t.content=i,v(e)&&(t.title=e),t.open(),t},s.prototype.closeAllPopups=function(){this.popups.each(function(i){i.close()})},Object.defineProperty(s.prototype,"readerAlertElement",{get:function(){if(!v(this._readerAlertElement)){var i=document.createElement("div");i.setAttribute("role","alert"),i.style.zIndex="-100000",i.style.opacity="0",i.style.position="absolute",i.style.top="0",this.SVGContainer.appendChild(i),this._readerAlertElement=i}return this._readerAlertElement},enumerable:!0,configurable:!0}),s.prototype.readerAlert=function(i){this.readerAlertElement.innerHTML=i},s.prototype.checkTransform=function(i){if(window.getComputedStyle){if(i&&i.style){var e=window.getComputedStyle(i,null);if(e){var t=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(t&&"none"!==t){var n=t.split("(")[1].split(")")[0].split(","),r=Number(n[0]),a=Number(n[1]),o=Math.sqrt(r*r+a*a);isNaN(o)||(this.cssScale*=o)}}}i.parentNode&&i.parentNode instanceof HTMLElement&&this.checkTransform(i.parentNode)}},s}(),Ya=function(){function s(i,e){this.container=i,this.id=e;var t=document.createElementNS(zi,"svg");t.setAttribute("version","1.1"),t.setAttributeNS(Mh,"xmlns",zi),t.setAttributeNS(Mh,"xmlns:xlink",Aa),t.setAttribute("role","group"),this.container.appendChild(t),this.defs=document.createElementNS(zi,"defs"),t.appendChild(this.defs),t.style.width="100%",t.style.height="100%",t.style.overflow="visible",this.svg=t}return s.prototype.add=function(i){return new An(i)},s.prototype.addGroup=function(i){return new Hh(i)},s.prototype.append=function(i){i&&this.svg.appendChild(i.node)},s.prototype.appendDef=function(i){i&&this.defs.appendChild(i.node)},s.prototype.foreignObject=function(){return new An("foreignObject")},s.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},s}(),za=null;function Ui(){if(null===za){var s=document.createElement("div");s.hidden=!0,s.style.width="1px",s.style.height="1px",s.style.position="absolute",s.style.zIndex="-1000000",document.body.appendChild(s);var i=new Xa(s,!0);za=new Ya(i.SVGContainer,"ghost")}return za}var xi=function(s){function i(){var e=s.call(this)||this;e._elements=new re,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var t=new ae;return e.backgroundFill=t.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=t.getFor("alternativeBackground"),e.stroke=t.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+_.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new fe(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){var e=this,t=this.element;if(t){t.removeChildNodes();var n=this.paper.add("rect");n.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":0}),t.add(n),t.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),A(this._elements.iterator(),function(r){r.rotation=e.rotation,r.rotationX=e.properties.rotationX,r.rotationY=e.properties.rotationY,e.element.add(r)})}},i.prototype.animate=function(e,t,n){return new gt(this,e,t,n).start()},i.prototype.addElement=function(e){this._elements.push(e),this._disposers.push(e)},i.prototype.removeElement=function(e){this._elements.removeValue(e),this.removeDispose(e)},Object.defineProperty(i.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(e){this.properties.fillOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.properties.fill},set:function(e){this.properties.fill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(e){this.properties.backgroundFill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(e){this.properties.backgroundOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(e){this.properties.strokeOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(e){this.properties.shapeRendering=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(e){this.properties.rotation=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(e){this.properties.patternUnits=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width},set:function(e){this.properties.width=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x",{get:function(){return this.properties.x},set:function(e){this.properties.x=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.properties.y},set:function(e){this.properties.y=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:Ui()},set:function(e){this._paper!=e&&(this._paper=e,this.draw(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;s.prototype.copyFrom.call(this,e),X(e.properties,function(n,r){t[n]=r})},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Yi(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray},set:function(e){this.properties.strokeDashArray=e,this.draw()},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){if(e&&v(e.elements)&&Ae(e.elements))for(var t=0,n=e.elements.length;t13)switch(s%10){case 1:i="st";break;case 2:i="nd";break;case 3:i="rd"}return i},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};var Ua,Wt=function(s){function i(){var e=s.call(this)||this;return e.adapter=new it(e),e._locale=$h,e._defaultLocale=$h,e.className="Language",v(Z.defaultLocale)&&(e.locale=Z.defaultLocale),e.applyTheme(),e}return w(i,s),i.prototype.getLocale=function(e){return null==e&&(e=this._locale),this.adapter.apply("locale",{locale:e}).locale},i.prototype.translate=function(e,t){for(var n=[],r=2;r0&&(p=r[o-1].replace("[","").replace("]","")),n+=this.wrap(h,p,t)}}return n=this.unescape(n),this.cleanUp(n)},i.prototype.escape=function(e){return e.replace(/\[\[/g,_.getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g,"$1"+_.getPlaceholder("2")).replace(/\]\]/g,_.getPlaceholder("2")).replace(/\{\{/g,_.getPlaceholder("3")).replace(/\}\}/g,_.getPlaceholder("4")).replace(/\'\'/g,_.getPlaceholder("5"))},i.prototype.unescape=function(e){return e.replace(new RegExp(_.getPlaceholder("1"),"g"),"[[").replace(new RegExp(_.getPlaceholder("2"),"g"),"]]").replace(new RegExp(_.getPlaceholder("3"),"g"),"{{").replace(new RegExp(_.getPlaceholder("4"),"g"),"}}").replace(new RegExp(_.getPlaceholder("5"),"g"),"''")},i.prototype.cleanUp=function(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},i.prototype.wrap=function(e,t,n){return""!==t&&"/"!==t||(t=""),"html"===n?this.wrapHtml(e,this.translateStyleShortcuts(t)):this.wrapSvg(e,this.translateStyleShortcuts(t))},i.prototype.wrapSvg=function(e,t){return""===t?""+e+"":""+e+""},i.prototype.getSvgElement=function(e,t){var n=new An("tspan");return n.textContent=e,t&&n.node.setAttribute("style",t),n},i.prototype.wrapHtml=function(e,t){return""===t?""+e+"":""+e+""},i.prototype.getHtmlElement=function(e,t){var n=document.createElement("span");return n.innerHTML=e,t&&n.setAttribute("style",t),n},i.prototype.styleSvgToHtml=function(e){return e.replace(/fill:/,"color:")},i.prototype.translateStyleShortcuts=function(e){if(""==e||"[ ]"==e)return"";var t=_.getCache("translateStyleShortcuts_"+e);if(t)return t;var n=e.match(/('[^']*')|("[^"]*")/gi);if(n)for(var r=0;rthis._negativeBase?o.positive:a=0?e.toExponential(t.decimals.passive).split("e"):e.toExponential().split("e"),e=Number(r[0]),o="e"+r[1],t.modSpacing&&(o=" "+o);else if(0===t.decimals.passive)e=Math.round(e);else if(t.decimals.passive>0){var d=Math.pow(10,t.decimals.passive);e=Math.round(e*d)/d}var c="",f=rh(e).split("."),g=f[0];if(g.length0){for(var m=[],x=g.split("").reverse().join(""),b=0,C=g.length;b<=C;b+=t.thousands.interval){var S=x.substr(b,t.thousands.interval).split("").reverse().join("");""!==S&&m.unshift(S)}g=m.join(t.thousands.separator)}c+=g,1===f.length&&f.push("");var P=f[1];return P.length4&&C--,b="YYYY"==t.parts[m]?Math.abs(C).toString():Math.abs(C).toString().substr(-t.parts[m].length),C<0&&(b+=n.translate("_era_bc"));break;case"u":case"F":case"g":break;case"q":b=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":b=n.translate(this.months[a]).substr(0,1);break;case"MMMM":b=n.translate(this.months[a]);break;case"MMM":b=n.translate(this.monthsShort[a]);break;case"MM":b=ze(a+1,2,"0");break;case"M":b=(a+1).toString();break;case"ww":b=ze(Wi(e),2,"0");break;case"w":b=Wi(e).toString();break;case"W":b=sh(e).toString();break;case"dd":b=ze(l,2,"0");break;case"d":b=l.toString();break;case"DD":case"DDD":b=ze(xa(e).toString(),t.parts[m].length,"0");break;case"D":b=xa(e).toString();break;case"t":b=n.translateFunc("_dateOrd").call(this,l);break;case"E":b=(o||7).toString();break;case"EE":b=ze((o||7).toString(),2,"0");break;case"EEE":case"eee":b=n.translate(this.weekdaysShort[o]);break;case"EEEE":case"eeee":b=n.translate(this.weekdays[o]);break;case"EEEEE":case"eeeee":b=n.translate(this.weekdays[o]).substr(0,1);break;case"e":case"ee":b=(o-this.firstDayOfWeek+1).toString(),"ee"==t.parts[m]&&(b=ze(b,2,"0"));break;case"a":b=n.translate(h>=12?"PM":"AM");break;case"aa":b=n.translate(h>=12?"P.M.":"A.M.");break;case"aaa":b=n.translate(h>=12?"P":"A");break;case"h":b=On(h).toString();break;case"hh":b=ze(On(h),2,"0");break;case"H":b=h.toString();break;case"HH":b=ze(h,2,"0");break;case"K":b=On(h,0).toString();break;case"KK":b=ze(On(h,0),2,"0");break;case"k":b=(h+1).toString();break;case"kk":b=ze(h+1,2,"0");break;case"m":b=p.toString();break;case"mm":b=ze(p,2,"0");break;case"s":b=u.toString();break;case"ss":b=ze(u,2,"0");break;case"S":case"SS":case"SSS":b=Math.round(d/1e3*Math.pow(10,t.parts[m].length)).toString();break;case"x":b=g.toString();break;case"n":case"nn":case"nnn":b=ze(d,t.parts[m].length,"0");break;case"z":b=Sn(e,!1,!1,this.utc);break;case"zz":b=Sn(e,!0,!1,this.utc);break;case"zzz":b=Sn(e,!1,!0,this.utc);break;case"zzzz":b=Sn(e,!0,!0,this.utc);break;case"Z":case"ZZ":var S=Math.abs(f)/60,P=Math.floor(S),O=60*S-60*P;this.utc&&(P=0,O=0),"Z"==t.parts[m]?(b="GMT",b+=f>0?"-":"+",b+=ze(P,2)+":"+ze(O,2)):(b=f>0?"-":"+",b+=ze(P,2)+ze(O,2));break;case"i":b=e.toISOString();break;case"I":b=e.toUTCString()}c=c.replace(st,b)}return c},i.prototype.parse=function(e,t){if(v(t)||(t=this.inputDateFormat),e instanceof Date)return e;if("number"==typeof e)return new Date(e);var n;"string"!=typeof e&&(e=e.toString()),this.language||(this.language=this.sprite?this.sprite.language:new Wt);var r="";t=(t=Cn(t)).substr(0,e.length);for(var a=this.parseFormat(t),o={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},l={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},h=0,p=0,u=0;u-1&&(l.year=parseInt(c[o.year])),o.year3>-1){var f=parseInt(c[o.year3]);l.year=f+=1e3}if(o.year2>-1&&(f=parseInt(c[o.year2]),l.year=f+=f>50?1e3:2e3),o.year1>-1&&(f=parseInt(c[o.year1]),f=10*Math.floor((new Date).getFullYear()/10)+f,l.year=f),o.monthLong>-1&&(l.month=this.resolveMonth(c[o.monthLong])),o.monthShort>-1&&(l.month=this.resolveShortMonth(c[o.monthShort])),o.month>-1&&(l.month=parseInt(c[o.month])-1),o.week>-1&&-1===o.day&&(l.month=0,l.day=ah(parseInt(c[o.week]),l.year,1,this.utc)),o.day>-1&&(l.day=parseInt(c[o.day])),o.yearDay>-1&&(l.month=0,l.day=parseInt(c[o.yearDay])),o.hourBase0>-1&&(l.hour=parseInt(c[o.hourBase0])),o.hourBase1>-1&&(l.hour=parseInt(c[o.hourBase1])-1),o.hour12Base0>-1&&(11==(f=parseInt(c[o.hour12Base0]))&&(f=0),o.am>-1&&!this.isAm(c[o.am])&&(f+=12),l.hour=f),o.hour12Base1>-1&&(12==(f=parseInt(c[o.hour12Base1]))&&(f=0),o.am>-1&&!this.isAm(c[o.am])&&(f+=12),l.hour=f),o.minute>-1&&(l.minute=parseInt(c[o.minute])),o.second>-1&&(l.second=parseInt(c[o.second])),o.millisecond>-1&&(f=parseInt(c[o.millisecond]),2==o.millisecondDigits?f*=10:1==o.millisecondDigits&&(f*=100),l.millisecond=f),o.timestamp>-1){l.timestamp=parseInt(c[o.timestamp]);var g=new Date(l.timestamp);l.year=g.getUTCFullYear(),l.month=g.getUTCMonth(),l.day=g.getUTCDate(),l.hour=g.getUTCHours(),l.minute=g.getUTCMinutes(),l.second=g.getUTCSeconds(),l.millisecond=g.getUTCMilliseconds()}o.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),c[o.zone])),o.iso>-1&&(l.year=ce(c[o.iso+0]),l.month=ce(c[o.iso+1])-1,l.day=ce(c[o.iso+2]),l.hour=ce(c[o.iso+3]),l.minute=ce(c[o.iso+4]),l.second=ce(c[o.iso+5]),l.millisecond=ce(c[o.iso+6]),"Z"==c[o.iso+7]||"z"==c[o.iso+7]?l.utc=!0:""!=c[o.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),c[o.iso+7]))),n=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else n=new Date(e);return n},i.prototype.resolveTimezoneOffset=function(e,t){if(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){var n=be(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)),r=n[1],o=n[3],l=60*parseInt(n[2])+parseInt(o);return"+"==r&&(l*=-1),l-(e||new Date).getTimezoneOffset()}return 0},i.prototype.resolveMonth=function(e){var t=this.months.indexOf(e);return t>-1||this.language&&!this.language.isDefault()&&(t=this.language.translateAll(this.months).indexOf(e))>-1?t:0},i.prototype.resolveShortMonth=function(e){var t=this.monthsShort.indexOf(e);return t>-1||(t=this.months.indexOf(e))>-1||this.language&&!this.language.isDefault()&&(t=this.language.translateAll(this.monthsShort).indexOf(e))>-1?t:0},i.prototype.isAm=function(e){return this.getStringList(["AM","A.M.","A"]).indexOf(e.toUpperCase())>-1},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},i.prototype.getStringList=function(e){for(var t=[],n=0;nthis._negativeBase?o.positive:l"+h+"":"html"===this._outputFormat&&(h=""+h+"")),h},i.prototype.parseFormat=function(e,t){var n=this,r=this.getCache(e);if(v(r))return r;var a=t||this._baseUnit,o={positive:{color:"",template:"",parts:[],source:"",baseUnit:a,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:a,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:a,parsed:!1,absolute:!1}},l=(e=e.replace("||",mi)).split("|");return o.positive.source=l[0],void 0===l[2]?o.zero=o.positive:o.zero.source=l[2],void 0===l[1]?o.negative=o.positive:o.negative.source=l[1],X(o,function(h,p){if(!p.parsed)if(void 0===n.getCache(p.source)){var u,d=p.source;(u=p.source.match(/^\[([^\]]*)\]/))&&u.length&&""!==u[0]&&(d=p.source.substr(u[0].length),p.color=u[1]);for(var c=Ft().chunk(d,!0),f=0;f div > ."+n+"-menu ."+n+"-item."+n+"-item-level-0, ."+n+"-item."+n+"-item-level-0.active",{opacity:"0.9"}),new ue(e,"."+n+"-item."+n+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new ue(e,"."+n+"-item."+n+"-item-level-0:before",{display:"block"}),new ue(e,"."+n+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":r.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:r.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new ue(e,"."+n+"-left ."+n+"-item",{margin:"1px 0 0 1px"}),new ue(e,"."+n+"-item:hover, ."+n+"-item.active",{background:r.getFor("secondaryButtonHover").hex,color:r.getFor("secondaryButtonText").hex}),new ue(e,"."+n+"-item > ."+n+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new ue(e,"."+n+"-left ."+n+"-item > ."+n+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new ue(e,"."+n+"-right ."+n+"-item > ."+n+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new ue(e,"."+n+"-top ."+n+"-item > ."+n+"-menu",{top:"-1px",bottom:"auto"}),new ue(e,"."+n+"-bottom ."+n+"-item > ."+n+"-menu",{top:"auto",bottom:"0"}),new ue(e,"."+n+"-item > ."+n+"-menu",{display:"none"}),new ue(e,"."+n+"-item:hover > ."+n+"-menu, ."+n+"-item.active > ."+n+"-menu",{display:"block"}),new ue(e,"."+n+"-item:hover > ."+n+"-menu > ."+n+"-item, ."+n+"-item.active > ."+n+"-menu > ."+n+"-item",{opacity:"1"}),new ue(e,"."+n+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new ue(e,"."+n+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new ue(e,"."+n+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new ue(e,"."+n+"-item-level-0 > ."+n+"-icon",{padding:"0.1em 0.2em"}),new ue(e,"."+n+"-clickable",{cursor:"pointer"})]);return new un(function(){Jh.removeKey(n),a.dispose()})}).increment())),this._element&&(this._element.style.display="")},Object.defineProperty(i.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(e){this._tabindex=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var e=this,t=this._language.get();return null==t&&(t=new Wt,this._language.set(t,t.events.on("localechanged",function(n){e.invalidate()}))),t},set:function(e){var t=this;this._language.set(e,e.events.on("localechanged",function(n){t.invalidate()})),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.close=function(){var e=this;if(!this.isDisposed())if(this._ignoreNextClose)this._ignoreNextClose=!1;else{if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout(function(){e._element.style.pointerEvents="auto"},100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var t=this._element.getElementsByClassName("active"),n=t.length-1;n>=0;n--)t[n]&&Lr(t[n],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},i.prototype.selectBranch=function(e){var t=this;!this.isDisposed()&&(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),Mr(e.element,"active"),e.submenuElement&&e.submenuElement.setAttribute("aria-expanded","true"),this._currentSelection&&this._currentSelection!==e&&this._currentSelection.ascendants&&A(kl(qt([this._currentSelection]),this._currentSelection.ascendants.iterator()),function(r){e.ascendants.contains(r)||e===r||t.unselectBranch(r,!0)}),A(e.ascendants.iterator(),function(r){r.closeTimeout&&(t.removeDispose(r.closeTimeout),r.closeTimeout=void 0),Mr(r.element,"active")}),this._currentSelection=e,this.events.isEnabled("branchselected"))&&this.events.dispatchImmediately("branchselected",{type:"branchselected",target:this,branch:e})},i.prototype.unselectBranch=function(e,t){!this.isDisposed()&&(Lr(e.element,"active"),e.submenuElement&&e.submenuElement.removeAttribute("aria-expanded"),this._currentSelection==e&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected"))&&this.events.dispatchImmediately("branchunselected",{type:"branchunselected",target:this,branch:e})},i.prototype.delayUnselectBranch=function(e,t){var n=this;this.isDisposed()||(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),e.closeTimeout=this.setTimeout(function(){n.unselectBranch(e,t)},this.closeDelay),!0!==t&&e.ascendants&&A(e.ascendants.iterator(),function(r){n.delayUnselectBranch(r,!0)}))},i.prototype.moveSelection=function(e){if(!this.isDisposed()&&this._currentSelection){var t;if("up"==e)t=this.getPrevSibling(this._currentSelection);else if("down"==e)t=this.getNextSibling(this._currentSelection);else if("left"==e&&"right"==this.align||"right"==e&&"left"==this.align){var n=this.getSubMenu(this._currentSelection);null!=n&&(t=n[0])}else("right"==e&&"right"==this.align||"left"==e&&"left"==this.align)&&(t=this.getParentItem(this._currentSelection));t&&t!==this._currentSelection&&(this.selectBranch(t),this.setFocus(t),this._currentSelection=t)}},i.prototype.getSiblings=function(e){var t=this.getParentItem(e);return t&&t.menu?t.menu:[]},i.prototype.getParentItem=function(e){return e.ascendants&&e.ascendants.length?e.ascendants.getIndex(e.ascendants.length-1):void 0},i.prototype.getNextSibling=function(e){var t=this.getSiblings(e);if(t.length>1){var n=t.indexOf(e)+1;return t[n=t.length==n?0:n].unsupported?this.getNextSibling(t[n]):t[n]}return e},i.prototype.getPrevSibling=function(e){var t=this.getSiblings(e);if(t.length>1){var n=t.indexOf(e)-1;return t[n=-1==n?t.length-1:n].unsupported?this.getPrevSibling(t[n]):t[n]}return e},i.prototype.setFocus=function(e){if(e.interactions)try{e.interactions.element.focus()}catch{}},i.prototype.setBlur=function(e){if(e.interactions)try{e.interactions.element.blur()}catch{}},i.prototype.hideBranch=function(e){e.element.style.display="none"},i.prototype.showBranch=function(e){e.element.style.display=""},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),i}(Za);function Fn(s,i,e){return new Promise(function(t,n){var r=v(e)&&"blob"==e.responseType,a=new XMLHttpRequest;if(a.onload=function(){if(200===a.status){var h;if(r)return void ep(h=a.response).then(function(d){var c={xhr:a,error:!1,response:d,blob:h,type:a.getResponseHeader("Content-Type"),target:i};t(c)});var u={xhr:a,error:!1,response:a.responseText||a.response,blob:h,type:a.getResponseHeader("Content-Type"),target:i};t(u)}else n({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:i})},a.onerror=function(){n({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:i})},a.open("GET",s,!0),e&&e.withCredentials&&(a.withCredentials=!0),v(e)){if(v(e.requestHeaders))for(var o=0;o to load"))},1e4)})];case 3:return[2,e.sent()];case 4:return[2]}})})}function ip(s,i,e){return de(this,void 0,void 0,function(){var t,n,r,a;return pe(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,Fn(i)];case 1:return t=o.sent(),[3,3];case 2:return n=o.sent(),console.error("Failed to load stylesheet",i,n),[2];case 3:(r=s.createElement("style")).textContent=t.response,""!=Z.nonce&&r.setAttribute("nonce",Z.nonce),s.head.appendChild(r),o.label=4;case 4:return o.trys.push([4,,7,8]),[4,dd(r)];case 5:return a=o.sent(),[4,np(s,i,a,e)];case 6:return o.sent(),[3,8];case 7:return s.head.removeChild(r),[7];case 8:return[2]}})})}function np(s,i,e,t){return de(this,void 0,void 0,function(){var n,r,a,o,l;return pe(this,function(h){switch(h.label){case 0:for(n=[],r=e.length,a=0;a"+m[0]+""+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,l,h,d,p,u),b=new Blob([x],{type:"image/svg+xml"}),r=n.createObjectURL(b),[4,this.loadNewImage(r,l*d*c,h*d*c,"anonymous")];case 3:return C=S.sent(),f.drawImage(C,0,0),[3,5];case 4:return null!==r&&n.revokeObjectURL(r),null!==a&&j(a,function(P){n.revokeObjectURL(P)}),this.restoreRemovedObjects(),[7];case 5:return[2,o]}})})},i.prototype.getCanvasAdvanced=function(e){return de(this,void 0,void 0,function(){var t,n,r,a,o,l,h,p,u,d,c;return pe(this,function(f){switch(f.label){case 0:return v(e)||(e={}),[4,this.imagesToDataURI(this.sprite.dom,e)];case 1:return f.sent(),t=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return n=f.sent(),r=this.sprite.pixelWidth,a=this.sprite.pixelHeight,o=jr(this.sprite.dom),l=Er(this.sprite.dom),h=e.scale||1,p=this.getPixelRatio(e),h=this.getAdjustedScale(r*p,a*p,h,e),u=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,r,a,h,o,l,t),(d=this.getDisposableCanvas()).style.width=r*p*h+"px",d.style.height=a*p*h+"px",d.width=r*p*h,d.height=a*p*h,c={useCORS:!0},1!=p&&(c.ignoreDimensions=!0,c.scaleWidth=r*p*h,c.scaleHeight=a*p*h),[4,n.fromString(d.getContext("2d"),u,c).render()];case 3:return f.sent(),[2,d]}})})},i.prototype.getImageAdvanced=function(e,t,n){return de(this,void 0,void 0,function(){var r,a,o;return pe(this,function(l){switch(l.label){case 0:return(r=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),v(t)||(t=this.getFormatOptions(e)),[4,this.getCanvasAdvanced(t)];case 1:return a=l.sent(),!1===n?[3,3]:[4,this.addExtras(a,t,!0)];case 2:a=l.sent(),l.label=3;case 3:return o=a.toDataURL(this.getContentType(e),t.quality),this.disposeCanvas(a),r||this.restoreNonExportableSprites(),[2,o]}})})},i.prototype.getDisposableCanvas=function(){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="-10000px",document.body.appendChild(e),e},i.prototype.disposeCanvas=function(e){document.body.removeChild(e)},i.prototype.getPixelRatio=function(e){return this.useRetina?eh():1},i.prototype.getAdjustedScale=function(e,t,n,r){if(!r)return n;var a,o,l=e*n,h=e*n;return r.maxWidth&&l>r.maxWidth&&(a=r.maxWidth/e),r.maxHeight&&h>r.maxHeight&&(o=r.maxHeight/t),a||o?ie(a,o):(r.minWidth&&l",{},1,1)],{type:"image/svg+xml"}),o=r.createObjectURL(a),l=void 0,h.label=2;case 2:return h.trys.push([2,4,,5]),[4,this.loadNewImage(o,1,1)];case 3:return l=h.sent(),[3,5];case 4:return h.sent(),[2,!1];case 5:n.drawImage(l,0,0),r.revokeObjectURL(o);try{return _.setCache("simplifiedImageExport",!0),[2,!0]}catch{return _.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return h.sent(),_.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}})})},i.prototype.loadNewImage=function(e,t,n,r){return new Promise(function(a,o){var l;function h(){if(r){var p=l.src;l.onerror=function(){o(new Error('Loading image "'+e+'" failed'))},l.removeAttribute("crossorigin"),l.src="",l.src=p}else o(new Error('Loading image "'+e+'" failed'))}l=t&&n?new Image(t,n):new Image,r&&l.setAttribute("crossOrigin",r),l.onload=function(){a(l)},l.onabort=h,l.onerror=h,l.src=e})},i.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},i.prototype.getSVG=function(e,t,n){return void 0===n&&(n=!0),de(this,void 0,void 0,function(){var r,a,o,l,h,p,u,d,c,f;return pe(this,function(g){switch(g.label){case 0:return(r=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),v(t)||(t=this.getFormatOptions("svg")),[4,this.awaitValidSprites()];case 1:return g.sent(),a=this.sprite.pixelWidth,o=this.sprite.pixelHeight,l=jr(this.sprite.dom),h=Er(this.sprite.dom),p=t.scale||1,u=this.getPixelRatio(t),p=this.getAdjustedScale(a*u,o*u,p,t),d=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,a,o,p,l,h),c=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:t}).charset,f=this.adapter.apply("getSVG",{data:n?"data:"+this.getContentType(e)+";"+c+","+encodeURIComponent(d):d,options:t}).data,r||this.restoreNonExportableSprites(),[2,f]}})})},i.prototype.normalizeSVG=function(e,t,n,r,a,o,l,h){var p="";n&&(p+='width="'+Math.round(n*(a||1))+'px" '),r&&(p+='height="'+Math.round(r*(a||1))+'px" ');var u="";o&&(u+="font-family: "+o.replace(/"/g,"")+";"),l&&(u+="font-size: "+l+";"),a&&(p+='viewBox="0 0 '+n+" "+r+'" ');var d=[],c=e.match(//gi);if(c)for(var f=0;f]*)width="[^"]*"/,"$1")).replace(/(]*)height="[^"]*"/,"$1")).replace(/('+e+"",h&&(e=e.replace(/(]*>)/,'$1')),/MSIE |Trident\//.test(navigator.userAgent)&&(e=e.replace(/]*\/>/gi,""));var g=new RegExp("url\\("+xr(Ni()),"g");if(e=(e=e.replace(g,"url(#")).replace(/url\("([^)]*)"\)/gm,"url($1)"),d.length)for(f=0;fg?1:fd?1:ub?1:xd?1:uC?-1:b=0)&&(c='"'+c+'"'),l.push(c)},function(p,u){var d=h.indexOf(p),c=h.indexOf(u);return d>c?1:d",t.tableClass&&(r=''),a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,o=this.data,t.pivot)l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,r+="\n",At(a,function(f,g){var m=[];t.addColumnNames&&m.push(g);for(var x=o.length,b=0;bx?-1:m";else{for(t.addColumnNames&&(r+="\n\n"+this.getHTMLRow(a,t,void 0,!0,!0)+"\n"),r+="\n",h=o.length,p=0;p"}return r+="\n
",u=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:t}).charset,[2,this.adapter.apply("getHTML",{data:n?"data:"+this.getContentType(e)+";"+u+","+encodeURIComponent(r):r,options:t}).data]})})},i.prototype.getHTMLRow=function(e,t,n,r,a){var o=this;void 0===r&&(r=!1),void 0===a&&(a=!1);var l="\t";t.rowClass&&(l='\t'),n||(n=e);var h=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,p=a?"th":"td",u=!0;return At(n,function(d,c){var f=o.convertEmptyValue(d,e[d],t),g=r?f:o.convertToSpecialFormat(d,f,t);g=(g=""+g).replace(/[\u00A0-\u9999<>\&]/gim,function(x){return"&#"+x.charCodeAt(0)+";"});var m=p;t.pivot&&u&&(m="th"),l+=t.cellClass?"\n\t\t<"+m+' class="'+t.cellClass+'">'+g+"":"\n\t\t<"+m+">"+g+"",u=!1},function(d,c){var f=h.indexOf(d),g=h.indexOf(c);return f>g?1:f"},i.prototype.getJSON=function(e,t,n){return void 0===n&&(n=!0),de(this,void 0,void 0,function(){var r,a,o,l,h,p,u,d,c=this;return pe(this,function(f){if(v(t)||(t=this.getFormatOptions("json")),a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"json"}).dataFields,this._dynamicDataFields)r=this.data;else for(r=[],l=function(g,m){var x=o[m];if("object"==typeof x){var b={};X(x,function(C,S){v(a[C])&&(b[a[C]]=c.convertToSpecialFormat(C,S,t))}),r.push(b)}},h=(o=this.data).length,p=0;p

'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'

'+this.language.translate("(Press ESC to close this message)")+"

",this.language.translate("Image Export Complete")):(x=void 0,t.match(/\.svg$/)?x="image/svg+xml":(x="text/plain",t+=".txt"),(b=document.createElement("iframe")).width="1px",b.height="1px",b.style.display="none",document.body.appendChild(b),(C=b.contentDocument).open(x,"replace"),C.write(decodeURIComponent(m[3])),C.close(),C.execCommand("SaveAs",!0,t),document.body.removeChild(b))):window.location.href=e;return[2,!0]})})},i.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},i.prototype.linkDownloadSupport=function(){var e=_.getCache("linkDownloadSupport");if(!1===e||!0===e)return e;var t=void 0!==document.createElement("a").download;return _.setCache("linkDownloadSupport",t),t},i.prototype.blobDownloadSupport=function(){return v(window.Blob)},i.prototype.msBlobDownloadSupport=function(){return v(window.navigator.msSaveOrOpenBlob)},i.prototype.legacyIE=function(){var e=document.createElement("div");return e.innerHTML="\x3c!--[if lt IE 10]> *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),n&&document&&document.title&&(o=document.title,document.title=n),(l=new Image).src=e,l.style.maxWidth="100%",l.style.display="block",l.style.position="relative",l.style.visibility="visible",l.style.opacity="1",l.style.clipPath="none",document.body.appendChild(l),this.setTimeout(function(){window.print()},50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&t.delay<1e3?t.delay=1e3:t.delay<100&&(t.delay=100),this.setTimeout(function(){document.body.removeChild(l),a.dispose(),o&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=r},t.delay||500),[2,!0]})})},i.prototype.printViaIframe=function(e,t,n){return de(this,void 0,void 0,function(){var r,a;return pe(this,function(o){return(r=document.createElement("iframe")).style.visibility="hidden",document.body.appendChild(r),r.contentWindow.document.open(),r.contentWindow.document.close(),(a=new Image).src=e,a.style.maxWidth="100%",a.style.height="auto",n&&(r.contentWindow.document.title=n),r.contentWindow.document.body.appendChild(a),r.load=function(){r.contentWindow.document.body.appendChild(a)},this.setTimeout(function(){try{r.contentWindow.document.execCommand("print",!1,null)||r.contentWindow.print()}catch{r.contentWindow.print()}},t.delay||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&t.delay<1e3?t.delay=1e3:t.delay<100&&(t.delay=100),this.setTimeout(function(){document.body.removeChild(r)},t.delay+50||100),[2,!0]})})},i.prototype.findBackgroundColor=function(e){var t=1,n=Fa(e,"background-color");if((n.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||"transparent"==n)&&(t=0),0==t){var r=e.parentElement;return r?this.findBackgroundColor(r):B("#fff")}return B(n,t)},Object.defineProperty(i.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(e){this._container=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(e){this._sprite=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(e){this._extraSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(e){this._validateSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(e){this._data=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(e){this._dataFields=e,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),i.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0);var e=this.data.length>0;this._prevHasData!=e&&(this._prevHasData=e,this.menu&&this.menu.invalidate())},Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new Gi,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(e){this._dateFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(e){this._dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new re),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(e){this._dateFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new Br,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(e){this._numberFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(e){this._numberFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new re),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(e){this._numberFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new Hr,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(e){this._durationFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(e){this._durationFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new re),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(e){this._durationFields=e},enumerable:!0,configurable:!0}),i.prototype.generateDataFields=function(){var e=this;this._dataFields={},this.data.length&&j(this.data,function(t){X(t,function(n,r){v(e._dataFields[n])||(e._dataFields[n]=e.adapter.apply("dataFieldName",{name:n,field:n}).name)})})},i.prototype.isDateField=function(e){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(e),field:e}).isDateField},i.prototype.isNumberField=function(e){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(e),field:e}).isNumberField},i.prototype.isDurationField=function(e){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(e),field:e}).isDurationField},i.prototype.getContentType=function(e){var t="";switch(e){case"png":case"gif":t="image/"+e;break;case"jpg":t="image/jpeg";break;case"svg":t="image/svg+xml";break;case"csv":t="text/csv";break;case"json":t="application/json";break;case"html":t="text/html";break;case"pdf":case"pdfdata":t="application/pdf";break;case"xlsx":t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}return this.adapter.apply("contentType",{contentType:t,type:e}).contentType},Object.defineProperty(i.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(e){this._filePrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(e){this._backgroundColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(e){this._title=e},enumerable:!0,configurable:!0}),i.prototype.showPreloader=function(){var e=this.preloader;e&&(e.progress=.5,e.label.text="...")},i.prototype.hidePreloader=function(){var e=this.preloader;e&&(e.progress=1)},Object.defineProperty(i.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),i.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},i.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(i.prototype,"language",{get:function(){return this._language||(this._language=new Wt),this._language},set:function(e){this._language=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"modal",{get:function(){return this._modal||(this._modal=new Ba,this._modal.adapter.add("classPrefix",function(e){return Z.classNamePrefix+e})),this._modal},enumerable:!0,configurable:!0}),i.prototype.showModal=function(e,t){this.hideModal(),this.hidePreloader();var n=this.modal;n.container=this.sprite.svgContainer.SVGContainer,n.content=e,n.readerTitle=t,n.open()},i.prototype.hideModal=function(){this._modal&&this.modal.close()},i.prototype._canvg=function(){return de(this,void 0,void 0,function(){var e;return pe(this,function(t){switch(t.label){case 0:return[4,N.e(265).then(N.bind(N,1234))];case 1:return null!=(e=t.sent()).default?[2,e.default]:[2,e]}})})},Object.defineProperty(i.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pdfmake",{get:function(){return null==Ka&&(Ka=function(){return de(this,void 0,void 0,function(){var e,t,n,r;return pe(this,function(a){switch(a.label){case 0:return[4,Promise.all([N.e(643).then(N.t.bind(N,6727,23)),N.e(643).then(N.bind(N,4995))])];case 1:return e=a.sent(),t=e[0],n=e[1],(r=window).pdfMake=r.pdfMake||{},r.pdfMake.vfs=n.default,t.vfs=n.default,[2,t]}})})}()),Ka},enumerable:!0,configurable:!0}),i.prototype._xlsx=function(){return de(this,void 0,void 0,function(){return pe(this,function(e){switch(e.label){case 0:return[4,Promise.all([N.e(739),N.e(297)]).then(N.t.bind(N,7739,23))];case 1:return[2,e.sent()]}})})},Object.defineProperty(i.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),i.prototype.setFormatOptions=function(e,t){this._formatOptions.setKey(e,t)},i.prototype.getFormatOptions=function(e){return this._formatOptions.getKey(e)},Object.defineProperty(i.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),i.prototype._disablePointers=function(){v(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},i.prototype._releasePointers=function(){v(this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},i.prototype.hideNonExportableSprites=function(){var e=this;if(!this._objectsAlreadyHidden){var t=this.sprite.svgContainer;t&&j(t.nonExportableSprites,function(n){n.isHidden||n.isHiding||!n.visible||e._hiddenObjects.push(n),n.hide(0)}),this._objectsAlreadyHidden=!0}},i.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(j(this._hiddenObjects,function(e){e.show(0)}),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},i.prototype.awaitValidSprites=function(){return de(this,void 0,void 0,function(){var e;return pe(this,function(t){switch(t.label){case 0:return e=[],this.validateSprites.length&&j(this.validateSprites,function(n,r){n.invalid&&e.push(new Promise(function(a,o){n.events.once("validated",function(l){a()})}))}),e.length?[4,Promise.all(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},i.prototype.processConfig=function(e){_.registeredClasses.ExportMenu=Qh,e&&(v(e.menu)&&!v(e.menu.type)&&(e.menu.type="ExportMenu"),v(e.dataFields)&&ye(e.dataFields)&&(this.dataFields=e.dataFields,delete e.dataFields)),s.prototype.processConfig.call(this,e)},i.XLINK="http://www.w3.org/1999/xlink",i}(Za),Ie=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],$=function(s){function i(){var e=s.call(this)||this;return e.properties={},e._eventDispatcher=new kh(e),e._bindings={},e._isTemplate=!1,e._isPath=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new Me,e._positionPrecision=3,e._language=new Me,e._exporting=new Me,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0},e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e._measuredWidthSelf=0,e._measuredHeightSelf=0,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e.maxLeftSelf=0,e.maxRightSelf=0,e.maxTopSelf=0,e.maxBottomSelf=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.measureFailed=!1,e.preventShow=!1,e.cloneTooltip=!0,e.className="Sprite",e._disposers.push(e._eventDispatcher),e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("tooltipX",F(50)),e.setPropertyValue("tooltipX",F(50)),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e.setPropertyValue("showTooltipOn","hover"),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new le(function(){X(e._bindings,function(t,n){n.dispose()})})),e.setPropertyValue("interactionsEnabled",!0),e}return w(i,s),Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new it(this)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.applyTheme=function(){s.prototype.applyTheme.call(this),Z.autoSetClassName&&this.setClassName()},i.prototype.getCurrentThemes=function(){var e=this._themes;if(e)return e;var t=this._parent;return t?t.getCurrentThemes():_.themes},i.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},i.prototype.invalidate=function(){this.disabled||this._isTemplate||this.__disabled||this.invalid||(this.invalid=!0,_.addToInvalidSprites(this),Q.requestFrame())},i.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,_.removeFromInvalidSprites(this),this.afterDraw()},i.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,_.addToInvalidPositions(this),Q.requestFrame())},i.prototype.validatePosition=function(){var e=this.pixelX,t=this.pixelY,n=this.dx,r=this.dy,a=e+n,o=t+r;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var l=this.measure(),h=this.group.transformString;this.group.moveTo({x:a,y:o}),this.group.rotation=this.rotation,this.group.scale=this.nonScaling?this.scale/this.globalScale:this.scale,(h!=this.group.transformString||l)&&(null==h?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),"hit"!=this.showTooltipOn&&"always"!=this.showTooltipOn||this.updateTooltipPosition()),e+n==a&&t+r==o&&(_.removeFromInvalidPositions(this),this.positionInvalid=!1);var p=this._maskRectangle;p&&this._clipElement.moveTo({x:p.x-e,y:p.y-t})},i.prototype.beforeDraw=function(){},i.prototype.draw=function(){},i.prototype.afterDraw=function(){var e,t;if((this.isMeasured||"none"!==this.horizontalCenter||"none"!==this.verticalCenter)&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var n=nr(this._adapterO.keys()),r=n.next();!r.done;r=n.next()){var a=r.value;switch(a){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[a]=this[a]}}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}"always"==this.showTooltipOn&&(!this.visible||this.disabled||this.__disabled?this.hideTooltip(0):this.showTooltip())},i.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},i.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},i.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},i.prototype.updateFilterScale=function(){var e=this;A(this.filters.iterator(),function(t){t.scale=e.globalScale})},i.prototype.removeFromInvalids=function(){_.removeFromInvalidSprites(this),_.removeFromInvalidPositions(this)},i.prototype.copyFrom=function(e){var t=this;s.prototype.copyFrom.call(this,e),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each(function(n){t.filters.push(n.clone())}),e._adapterO&&this.adapter.copyFrom(e._adapterO),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):e.cloneTooltip?this.tooltip=e.tooltip.clone():this._tooltip=e.tooltip),this._showSystemTooltip=e.showSystemTooltip,Vt(e.propertyFields,this.propertyFields),Vt(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone()),e.focusFilter&&(this.focusFilter=e.focusFilter.clone())},i.prototype.dispose=function(){if(!this.isDisposed()){if("always"==this.showTooltipOn&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(s.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--)this._clones.getIndex(e).dispose();this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var t=this.stroke;!t||t instanceof se||!t.dispose||this.clonedFrom&&this.clonedFrom.stroke==t||t.dispose();var n=this.fill;if(!n||n instanceof se||!n.dispose||this.clonedFrom&&this.clonedFrom.fill==n||n.dispose(),v(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var r=this._filters.getIndex(0);r.dispose(),this._filters.removeValue(r)}this._alwaysShowDisposers=void 0}},Object.defineProperty(i.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(e){e=ve(e),this._isTemplate!=e&&(this._isTemplate=e,this instanceof W&&A(this.children.iterator(),function(t){t.isTemplate=e}),e?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showSystemTooltip",{get:function(){return v(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:!!this._parent&&this._parent.showSystemTooltip},set:function(e){e=ve(e),this._showSystemTooltip!=e&&(this._showSystemTooltip=e,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topParent",{get:function(){return this._topParent?this._topParent:this._parent?this._parent.topParent:void 0},set:function(e){this._topParent=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent},set:function(e){if(!this._isTemplate){var t=this._parent;t!=e&&(t&&t.children.removeValue(this),this._parent=e,e?(this.topParent=e.topParent,e.isTemplate&&(this.isTemplate=!0),this.baseId=e.baseId,e.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=e.tooltipContainer),this._dataItem||(this.dataItem=e.dataItem),this.handleAlwaysShowTooltip(),this.dataItem&&this.applyAccessibility(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),i.prototype.handleAlwaysShow=function(){this.showTooltip()},i.prototype.handleAlwaysShowTooltip=function(){var e=this,t=this._alwaysShowDisposers;if(t&&j(t,function(r){r.dispose()}),this._alwaysShowDisposers=[],"always"==this.showTooltipOn)for(;null!=e;){var n=e.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(n),this._alwaysShowDisposers.push(n),e=e.parent}},Object.defineProperty(i.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(e){this._virtualParent=e,this.dataItem&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var e=this.fill;e&&e.element&&this.paper.appendDef(e.element);var t=this.stroke;if(t&&t.element&&this.paper.appendDef(t.element),this.fillModifier&&this.fill instanceof se){var n=this.fillModifier.modify(this.fill);n&&n.element&&this.paper.appendDef(n.element)}if(this.strokeModifier&&this.stroke instanceof se){var r=this.strokeModifier.modify(this.stroke);r&&r.element&&this.paper.appendDef(r.element)}this._clipPath&&this.paper.appendDef(this._clipPath),!1===this._exportable&&(this.exportable=!1)},Object.defineProperty(i.prototype,"map",{get:function(){var e=this.topParent;return e?e.map:(this._map||(this._map=new me),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delayedMap",{get:function(){var e=this.topParent;return e?e.delayedMap:(this._delayedMap||(this._delayedMap=new me),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},set:function(e){if(this._id!=e){if(this._id=e,this.map.hasKey(e))throw Error("Duplicate id ("+e+") used on multiple objects.");this.map.setKey(e,this),Z.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){if(this._paper)return this._paper;var e=this._parent;return e?e.paper:Ui()},set:function(e){this.setPaper(e)},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(e){return this._paper!=e&&(this._paper=e,this.appendDefs(),!0)},Object.defineProperty(i.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var e=this._parent;return e?e.htmlContainer:void 0},set:function(e){this._htmlContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filters",{get:function(){return this._filters||(this._filters=new re,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new fe(this._filters))),this._filters},enumerable:!0,configurable:!0}),i.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},i.prototype.setSVGAttribute=function(e){this.group.attr(e)},i.prototype.removeSVGAttribute=function(e){this.group.removeAttr(e)},i.prototype.setClassName=function(){var e=this.className,t=Z.classNamePrefix;this.element&&this.element.addClass(t+e),this.group.addClass(t+e+"-group"),v(this.id)&&this.group.addClass(t+this.id),this.userClassName&&this.group.addClass(this.userClassName)},i.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},i.prototype.updateClipPath=function(){var e=this._clipElement;e&&e.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},i.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var e=_.getUniqueId();this._clipPath.attr({id:e}),this.group.attr({"clip-path":'url("'+Ni()+e+'")'})}},i.prototype.applyMask=function(){var e=this.mask;if(this._clipPath&&e)if(e instanceof W){this._clipElement.attr({width:q(0,e.pixelWidth),height:q(0,e.pixelHeight)});var t=Qe({x:e.pixelX,y:e.pixelY},e.parent,this);this._clipPath.x=t.x,this._clipPath.y=t.y}else e.element&&e.element!=this._clipElement&&(this._clipElement=e.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=e.scale,this._clipPath.x=e.pixelX,this._clipPath.y=e.pixelY,this._clipPath.rotation=e.rotation},i.prototype.applyFilters=function(){var e=this;if(this._filters&&this._filters.length>0){var t=100,n=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var r="filter-"+this.uid;this.filterElement.attr({id:r}),A(this.filters.iterator(),function(l){l.sprite=e,l.paper=e.paper,e.filterElement.attr({filterUnits:l.filterUnits}),l.appendPrimitives(e.filterElement),l.width>t&&(t=l.width),l.height>n&&(n=l.height),l.scale=e.globalScale}),this.filterElement.attr({width:t+"%",height:n+"%",x:-(t-100)/2+"%",y:-(n-100)/2+"%"}),this.group.attr({filter:'url("'+Ni()+r+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},i.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},i.prototype.setElement=function(e){this.element=e,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(e){this.removeElement(),this._element=e,this.group.add(e),e.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),Z.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"svgContainer",{get:function(){return this._svgContainer?this._svgContainer:this._parent?this._parent.svgContainer:void 0},set:function(e){this._svgContainer=e},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var e=this.element.getBBox();this._bbox={x:e.x,y:e.y,width:e.width,height:e.height}}},i.prototype.updateCenter=function(){if(this.element){var e=this.element.transformString,t=this.bbox,n=0,r=0,a=t.x,o=t.y,l=t.width,h=t.height,p=this.pixelPaddingLeft,u=this.pixelPaddingRight,d=this.pixelPaddingTop,c=this.pixelPaddingBottom,f=q(l+p+u,this.pixelWidth),g=q(h+d+c,this.pixelHeight),m=t.x,x=t.x+f,b=t.y,C=t.y+g,P=this.verticalCenter;switch(this.horizontalCenter){case"none":n=a+p;break;case"left":n=p;break;case"middle":n=p-(l+u+p)/2;break;case"right":n=-u-l}switch(P){case"none":r=o+d;break;case"top":r=d;break;case"middle":r=d-(h+c+d)/2;break;case"bottom":r=-c-h}this._measuredHeight=g,this._measuredWidth=f;var O=V(n-a,this._positionPrecision,!0),I=V(r-o,this._positionPrecision,!0);this.ex=O-p,this.ey=I-d,this.maxLeft=m+O-p,this.maxRight=x+O-p,this.maxTop=b+I-d,this.maxBottom=C+I-d,this.pixelPerfect&&0==Z.pixelPerfectPrecision&&(O-=.5,I-=.5),this.element.moveTo({x:O,y:I}),e!=this.element.transformString&&this.dispatchImmediately("transformed")}},i.prototype.measure=function(){this.updateCenter();var e=this._measuredWidth,t=this._measuredHeight,n=this.maxLeft,r=this.maxRight,a=this.maxTop,o=this.maxBottom;this._measuredWidthSelf=e,this._measuredHeightSelf=t;var l=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,0!==this.rotation||1!==this.scale||this.nonScaling){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var h=this.paper.svg,p=h.createSVGMatrix(),u=this.rotation,d=this.scale;this.nonScaling&&(d=this.scale/this.globalScale),p.a=L(u)*d,p.c=-M(u)*d,p.e=0,p.b=M(u)*d,p.d=L(u)*d,p.f=0;var c=h.createSVGPoint();c.x=n,c.y=a;var f=h.createSVGPoint();f.x=r,f.y=a;var g=h.createSVGPoint();g.x=r,g.y=o;var m=h.createSVGPoint();m.x=n,m.y=o;var x=c.matrixTransform(p),b=f.matrixTransform(p),C=g.matrixTransform(p),S=m.matrixTransform(p);n=Math.min(x.x,b.x,C.x,S.x),r=Math.max(x.x,b.x,C.x,S.x),a=Math.min(x.y,b.y,C.y,S.y),e=r-n,t=(o=Math.max(x.y,b.y,C.y,S.y))-a,this.maxLeft=V(n,l,!0),this.maxRight=V(r,l,!0),this.maxTop=V(a,l,!0),this.maxBottom=V(o,l,!0)}return this._measuredWidth=V(e,l,!0),this._measuredHeight=V(t,l,!0),(this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight)&&(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||"hit"==this.showTooltipOn||"always"==this.showTooltipOn)&&this.tooltip&&this.tooltip.visible&&(v(this.tooltipText)||v(this.tooltipHTML))&&this.updateTooltipPosition(),!0)},i.prototype.insertBefore=function(e){var t=this._parent;if(t){var n=t.children.indexOf(e);-1!==n&&(t.children.moveValue(this,n),t.sortChildren())}return this},i.prototype.insertAfter=function(e){var t=this._parent;if(t){var n=t.children.indexOf(e);-1!==n&&(t.children.moveValue(this,n+1),t.sortChildren())}return this},i.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},i.prototype.getRelativeX=function(e){return e instanceof te?e.value:this._parent?e/this._parent.innerWidth:0},i.prototype.getRelativeY=function(e){return e instanceof te?e.value:this._parent?e/this._parent.innerHeight:0},i.prototype.getPixelX=function(e){var t=0;return y(e)?t=e:e instanceof te&&this._parent&&(t=V(this._parent.innerWidth*e.value,this._positionPrecision,!0)),t},i.prototype.getPixelY=function(e){var t=0;return y(e)?t=e:e instanceof te&&this._parent&&(t=V(this._parent.innerHeight*e.value,this._positionPrecision,!0)),t},i.prototype.moveTo=function(e,t,n,r){this.isDragged&&!r||(e&&(y(e.x)&&this.setPropertyValue("x",V(e.x,this._positionPrecision,!0)),y(e.y)&&this.setPropertyValue("y",V(e.y,this._positionPrecision,!0))),y(t)&&(this.rotation=t),y(n)&&(this.scale=n),this.invalidatePosition())},Object.defineProperty(i.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(e){var t=this;this._mask.get()!==e&&(e?(this.createClipPath(),e instanceof W?this._clipElement=this.paper.add("rect"):(e.isMeasured=!1,e.element&&(this._clipElement=e.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(e,new _e([e.events.on("maxsizechanged",function(){t.inited&&t.applyMask()},void 0,!1),e.events.on("validated",this.applyMask,this,!1),e.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(e){e?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:e.width,height:e.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(e){(e=ve(e))||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=e&&(this._isMeasured=e,this.invalidatePosition())},enumerable:!0,configurable:!0}),i.prototype.hitTest=function(e){this.invalid&&this.validate(),e.invalid&&e.validate();var t=this.pixelX+this.maxLeft,n=this.pixelY+this.maxTop,o=e.pixelX+e.maxLeft,l=e.pixelY+e.maxTop;return!(o>t+this.maxRight||o+e.maxRightn+this.maxBottom||l+e.maxBottom0&&((r=this.animate(o,t,n))&&!r.isFinished()?this._disposers.push(r.events.on("animationended",function(){a.dispatchImmediately("transitionended")})):this.dispatchImmediately("transitionended")),e.filters.length>0){var l=[];A(e.filters.iterator(),function(h){var p=h.clone();l.push(p);var u=[];A(a.filters.iterator(),function(d){d.className==p.className&&(cr(a.defaultState.filters.iterator(),function(c){return c.className===p.className})||a.defaultState.filters.push(d),X(p.properties,function(c,f){var g=d.properties[c];g!=f&&u.push({property:c,from:g,to:f})}))}),p.animate(u,t,n)}),this.filters.clear(),this.filters.pushAll(l)}return r},i.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(i.prototype,"isHover",{get:function(){return!!this.isInteractive()&&this.interactions.isHover},set:function(e){(e=ve(e))!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=e,e?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDown",{get:function(){return!!this.isInteractive()&&this.interactions.isDown},set:function(e){e=ve(e),this.isInteractive()&&this.isDown!=e&&(this.interactions.isDown=e,e?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return!!this.isInteractive()&&this.interactions.isFocused},set:function(e){e=ve(e),this.focusable&&this.isFocused!=e&&this.isInteractive()&&(this.interactions.isFocused=e,!0===e?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isActive",{get:function(){return this._isActive},set:function(e){this.setActive(e)},enumerable:!0,configurable:!0}),i.prototype.setActive=function(e){e=ve(e),this._isActive!==e&&(this._isActive=e,e&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(i.prototype,"disabled",{get:function(){var e=this.getPropertyValue("disabled");return v(e)?e:this.virtualParent?this.virtualParent.disabled:!!this._parent&&this._parent.disabled},set:function(e){this.setDisabled(e)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){if(e=ve(e),this.getPropertyValue("disabled")!=e){if(this.setPropertyValue("disabled",e,!0),e)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var t=this._parent.element;t.hasChild(this.group)||t.add(this.group)}this instanceof W?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),Q.requestFrame(),!0}return!1},Object.defineProperty(i.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(e){this._internalDisabled!=e&&(this._internalDisabled=e,this._updateDisabled=!0,this.invalidatePosition(),e||this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new Br,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(e){this._numberFormatter=e,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new Gi,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(e){this._dateFormatter=e,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new Hr,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(e){this._durationFormatter=e,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var e=this._language.get();return e||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(e=new Wt,this.language=e,e))},set:function(e){var t=this;this._language.get()!==e&&this._language.set(e,e.events.on("localechanged",function(n){if(t._numberFormatter&&(t._numberFormatter.language=t.language),t._dateFormatter&&(t._dateFormatter.language=t.language),t._durationFormatter&&(t._durationFormatter.language=t.language),t._exporting.get()){var r=t._exporting.get();r.numberFormatter.language=t.language,r.dateFormatter.language=t.language,r.durationFormatter.language=t.language,r.language=t.language}t instanceof W&&t.deepInvalidate()}))},enumerable:!0,configurable:!0}),i.prototype.populateString=function(e,t){if(v(e)){e=sn(e);var n=(e=Ft().escape(e)).match(/\{([^}]+)\}/g),r=void 0;if(n)for(r=0;ru?1:l.idx-h.idx}),e=t.map(function(l){return l.data});var n=this.element,r=!0;if(n.node&&n.node.childNodes)for(var a=0,o=n.node.childNodes.length;a0;){var e=this.children.getIndex(0);e.parent=void 0,this.children.removeValue(e)}},i.prototype.disposeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.dispose(),this.children.removeValue(e)}},Object.defineProperty(i.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(e){this._background&&this.background!=e&&this.removeDispose(this._background),e&&(this._background=e,this._disposers.push(e),this.processBackground())},enumerable:!0,configurable:!0}),i.prototype.handleGlobalScale=function(){s.prototype.handleGlobalScale.call(this),this.children.each(function(e){e.handleGlobalScale()})},i.prototype.createBackground=function(){return new Mn},i.prototype.processBackground=function(){var e=this._background;e&&(e.isMeasured=!1,this._background.fill=(new ae).getFor("background"),e.parent=this,e.isMeasured=!1,this.children.removeValue(e),this._disposers.push(e),this.group.addToBack(this._background.group))},i.prototype.validateLayout=function(){var e=this;_.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var t=0,n=0,r=!0;this.children&&(this.sortChildren(),j(this._childrenByLayout,function(a){var o,l;if(y(a.relativeWidth)?(o=V(e._availableWidth*a.relativeWidth,2),"horizontal"==e.layout&&(o-=a.pixelMarginRight+a.pixelMarginLeft)):"horizontal"==e.layout&&a.invalid&&a.validate(),y(a.relativeHeight)?(l=V(e._availableHeight*a.relativeHeight,2),"vertical"==e.layout&&(l-=a.pixelMarginTop+a.pixelMarginBottom)):"vertical"==e.layout&&a.invalid&&a.validate(),0==a.invalid){if(y(a.relativeWidth)&&(a.maxWidth=o),y(a.relativeHeight)&&(a.maxHeight=l),a.isMeasured){"horizontal"==e.layout&&(y(a.percentWidth)||a.measuredWidth>0&&(e._availableWidth-=a.measuredWidth+a.pixelMarginLeft+a.pixelMarginRight)),"vertical"==e.layout&&(y(a.percentHeight)||a.measuredHeight>0&&(e._availableHeight-=a.measuredHeight+a.pixelMarginTop+a.pixelMarginBottom));var h=a.measuredWidth,p=a.measuredHeight;"none"!=a.align&&(h+=a.pixelMarginLeft+a.pixelMarginRight),"none"!=a.valign&&(p+=a.pixelMarginTop+a.pixelMarginBottom),t=Math.max(t,h),n=Math.max(n,p)}}else a.isMeasured&&(y(a.relativeWidth)&&a.maxWidth!=o&&(a.maxWidth=o,r=!1),y(a.relativeHeight)&&a.maxHeight!=l&&(a.maxHeight=l,r=!1))})),this._absoluteWidth=t,this._absoluteHeight=n,r&&this.arrange()},i.prototype.arrange=function(){var e,t,n,r,a,o,l,h,p,u,d,c=this,f=this.children,g=0,m=0,x=q(this.innerWidth,this._absoluteWidth),b=q(this.innerHeight,this._absoluteHeight),C=this.pixelPaddingLeft,S=this.pixelPaddingRight,P=this.pixelPaddingTop,O=this.pixelPaddingBottom,I=0,k=0,D=0,G=0,H=[],ne=[],Te=this.maxWidth,Ge=this.maxHeight,he=this.minWidth,et=this.minHeight,we=ji(f.values);if(this.reverseOrder&&we.reverse(),"grid"==this.layout){o=Te,a=1;for(var U=0,nt=we.length;Ua&&(a=qe)}o=R(o,1,Te),a=R(a,1,Te),l=this.fixedWidthGrid?Te/a:Te/o,l=q(1,Math.floor(l)),l=ie(this.maxColumns,l),H=this.getColumnWidth(we,l,a)}for(U=0,nt=we.length;Uie(this.innerWidth,Te)-Jo+1&&G=l&&(G=0,k+=ne[D],D++,I=0)}"none"!==this.layout&&(Y.moveTo({x:We,y:ge}),Oi=We+Y.maxLeft-ke,Ii=ge+Y.maxTop-tt,ys=ge+Y.maxBottom+Je,((Si=We+Y.maxRight+Lt)>t||!y(t))&&(t=Si),(Oir||!y(r))&&(r=ys),(Si>p||!y(p))&&(p=Si),(Oid||y(d))}}if("none"==this.layout){var nn=this.bbox;e=nn.x,t=nn.x+nn.width,n=nn.y,r=nn.y+nn.height}y(e)||(e=0,h=0),y(t)||(p=t=this._availableWidth),y(n)||(n=0,u=0),y(r)||(d=r=this._availableHeight),y(u)||(u=0),y(d)||(d=u),y(h)||(h=0),y(p)||(p=h),g=t-e,m=r-n,y(this.relativeWidth)&&(e=0,t=g=Te-C-S),y(this.relativeHeight)&&(n=0,r=m=Ge-P-O),y(this._pixelWidth)&&(e=0,g=this._pixelWidth-C-S),y(he)&&g0){var bs,xs,_s=g,Ps=m;_s=-.5&&t<=this.pixelWidth+.5&&n>=-.5&&n<=this.pixelHeight+.5},i.prototype.copyFrom=function(e){var t=this;s.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),A(e.children.iterator(),function(n){n.shouldClone&&(n.clone().parent=t)})},Object.defineProperty(i.prototype,"preloader",{get:function(){return this._preloader||(this.parent?this.parent.preloader:void 0)},set:function(e){this._preloader&&this.removeDispose(this._preloader),this._preloader=e,e&&(e.parent=this.tooltipContainer,this._disposers.push(e))},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(e){var t=this,n=s.prototype.setPaper.call(this,e);return n&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each(function(r){r.setPaper(e),r.topParent=t.topParent})),n},i.prototype.removeFromInvalids=function(){s.prototype.removeFromInvalids.call(this),_.removeFromInvalidLayouts(this)},i.prototype.setDataItem=function(e){this._dataItem!=e&&(A(this.children.iterator(),function(t){t.dataItem=e}),this._background&&(this._background.dataItem=e)),s.prototype.setDataItem.call(this,e)},i.prototype.measureElement=function(){this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||this.validateLayout()},Object.defineProperty(i.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(e){this.setPropertyValue("fontFamily",e,!0)&&(this.setSVGAttribute({"font-family":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(e){this.setPropertyValue("fontSize",e,!0)&&(this.setSVGAttribute({"font-size":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),i.prototype.invalidateLabels=function(){this.children.each(function(e){e.hardInvalidate?(e.hardInvalidate(),e.events.once("validated",e.handleValidate,e,!1)):e instanceof i&&e.invalidateLabels()})},Object.defineProperty(i.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(e){this.setPropertyValue("fontWeight",e),this.setSVGAttribute({"font-weight":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(e){this.setPropertyValue("textDecoration",e),this.setSVGAttribute({"text-decoration":e})},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),s.prototype.dispose.call(this)},i.prototype.setState=function(e,t,n){var r=e;return e instanceof Tn&&(r=e.name),this.setStateOnChildren&&A(this.children.iterator(),function(a){a.setState(r,t,n),"active"!=r&&(a.isActive=!1)}),this._background&&this._background.setState(r),this.setStateOnSprites.length&&j(this.setStateOnSprites,function(a){a.setState(r,t,n)}),s.prototype.setState.call(this,e,t,n)},i.prototype.setActive=function(e){s.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},i.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var t=!0;rt(this.children.iterator(),function(n){return!!(n.__disabled||n.disabled||n.isReady())||(t=!1,!1)}),hr(this._shouldBeReady,function(n){return!!(n.__disabled||n.disabled||n.isReady())||(t=!1,!1)}),t?s.prototype.dispatchReady.call(this):_.events.once("exitframe",function(){e.dispatchReady(),Q.requestFrame()},void 0,!1)}},i.prototype._systemUpdate=function(e){this.children.each(function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))}),s.prototype._systemUpdate.call(this,e)},i.prototype._systemValidatePositions=function(){this.children.each(function(e){e.positionInvalid&&e.validatePosition()}),s.prototype._systemValidatePositions.call(this)},i.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(i.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(e){this._tapToActivate!=e&&this.setTapToActivate(e)},enumerable:!0,configurable:!0}),i.prototype.setTapToActivate=function(e){var t=this;this._tapToActivate=e,this.interactions.isTouchProtected=e,e&&this.interactions.setEventDisposer("container-tapToActivate",e,function(){return new _e([t.events.on("hit",t.handleTapToActivate,t,!1),t.events.on("down",t.initTapTimeout,t,!1),t.events.on("track",t.initTapTimeout,t,!1),K().body.events.on("down",function(n){K().isLocalElement(n.pointer,t.paper.svg,t.uid)||t.handleTapToActivateDeactivation()},t,!1)])}),K()},i.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},i.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},i.prototype.initTapTimeout=function(){var e=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout(function(){e.handleTapToActivateDeactivation()},this.tapTimeout))},i.prototype.moveHtmlContainer=function(e){var t=Va(e);if(t){this.htmlContainer=t;var n=this.svgContainer;n.htmlElement=t,n.htmlElement.appendChild(n.SVGContainer),n.initSensor(),n.measure()}else J(e)&&""!=e&&Q.log("html container '"+e+"' not found")},i.prototype.hasLicense=function(){if(Z.commercialLicense)return!0;for(var e=0;e0;){var r=(a=n[0]).dataProvider;if(a.isDisposed())z(n,a);else if(r&&r.dataInvalid)try{if(r.validateData(),r.dataValidationProgress<1)break}catch(p){z(n,r),r.raiseCriticalError(p)}else try{if(a.validateData(),a.dataValidationProgress<1)break}catch(p){z(n,a),a.raiseCriticalError(p)}}if(Date.now()-e>this.updateStepDuration)break}for(;_.invalidRawDatas.length>0;)if((a=_.invalidRawDatas[0]).isDisposed())z(_.invalidRawDatas,a);else try{a.validateRawData()}catch(p){z(_.invalidRawDatas,a),a.raiseCriticalError(p)}for(;_.invalidDataItems.length>0;){if(r=(a=_.invalidDataItems[0]).dataProvider,!(a.isDisposed()||a.dataInvalid||r&&r.dataInvalid))try{a.validateDataItems()}catch(p){z(_.invalidDataItems,a),a.raiseCriticalError(p)}z(_.invalidDataItems,a)}for(;_.invalidDataRange.length>0;){var a;if(r=(a=_.invalidDataRange[0]).dataProvider,!(a.isDisposed()||a.dataInvalid||r&&r.dataInvalid))try{a.validateDataRange(),a.skipRangeEvent||a.dispatchImmediately("datarangechanged"),a.skipRangeEvent=!1}catch(p){z(_.invalidDataRange,a),a.raiseCriticalError(p)}z(_.invalidDataRange,a)}var o=[];X(_.invalidLayouts,function(p){i.validateLayouts(p)}),X(_.invalidPositions,function(p){i.validatePositions(p)});var l=!1;if(e=Date.now(),X(_.invalidSprites,function(p,u){for(var d=0;u.length>0;){if(i.validateLayouts(p),i.validatePositions(p),5==++d){if(Date.now()-e>i.updateStepDuration)break;d=0}var c=u[u.length-1];if(c&&!c.isDisposed()){if(c._systemCheckIfValidate())if(i.checkIfValidate2(c))try{c._systemUpdate(o)}catch(f){c.invalid=!1,z(u,c),c.raiseCriticalError(f)}else o.push(c);else o.push(c);c.invalid=!1}z(u,c)}_.invalidSprites[p]=_.invalidSprites[p].concat(o)}),X(_.invalidSprites,function(p,u){u.length>0&&(l=!0)}),X(_.invalidDatas,function(p,u){u.length>0&&(l=!0)}),j(ji(this.animations),function(p){p.update()}),X(_.invalidLayouts,function(p){i.validateLayouts(p)}),X(_.invalidPositions,function(p){i.validatePositions(p)}),Cl(),X(_.invalidLayouts,function(p){i.validateLayouts(p)}),X(_.invalidPositions,function(p){i.validatePositions(p)}),_.dispatchImmediately("exitframe"),(l||this.animations.length>0||[].length>0)&&this.requestFrame(),this.updateStepDuration<200){var h=!0;X(_.invalidDatas,function(p,u){u.length>0&&(h=!1)}),X(_.invalidSprites,function(p,u){u.length>0&&(h=!1)}),h&&(this.updateStepDuration=200)}}},s.prototype.checkIfValidate2=function(i){return!(i.dataItem&&i.dataItem.component&&i.dataItem.component.dataInvalid&&!i.dataItem.component.isTemplate)},s.prototype.requestFrame=function(){var i=this;this._frameRequested||(Qs(function(){i.update()}),this._frameRequested=!0)},s.prototype.softInvalidate=function(i){var e=this;i.children.each(function(t){t instanceof W&&e.softInvalidate(t),t.measureFailed&&(Ye(t,"Label")?t.hardInvalidate():t.invalidate(),t.measureFailed=!1)})},s.prototype.validatePositions=function(i){for(var e=_.invalidPositions[i];e.length>0;){var t=e[e.length-1];if(t.isDisposed())z(e,t);else try{t._systemValidatePositions()}catch(n){t.positionInvalid=!1,z(e,t),t.raiseCriticalError(n)}}},s.prototype.validateLayouts=function(i){for(var e=_.invalidLayouts[i];e.length>0;){var t=e[e.length-1];if(t.isDisposed())z(e,t);else try{t.children.each(function(n){n._systemValidateLayouts()}),t.validateLayout()}catch(n){t.layoutInvalid=!1,z(e,t),t.raiseCriticalError(n)}}},s.prototype.log=function(i){!function(){for(var e=[],t=0;t0},enumerable:!0,configurable:!0}),s.prototype.maybeToNumber=function(i,e){return-1!==this.options.numberFields.indexOf(i)?Or(e):e},Object.defineProperty(s.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),s.prototype.maybeToDate=function(i,e){return-1!==this.options.dateFields.indexOf(i)?this.options.dateFormatter.parse(e,this.dateFormat):e},s.prototype.maybeToEmpty=function(i){return v(i)&&""!=i||!v(this.options.emptyAs)?i:this.options.emptyAs},Object.defineProperty(s.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new Gi,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),s}(),fd=[",",";","\t"],Ln=function(s){function i(){var e=null!==s&&s.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return w(i,s),i.isCSV=function(e){return!!i.getDelimiterFromData(e)},i.getDelimiterFromData=function(e){var t,n=e.split("\n"),r=n.length;return j(fd,function(a){for(var o=0,l=0,h=0;h1)){l=0;break}if(0===l)l=o;else if(o!=l){l=0;break}}l&&(t=a)}),t},i.prototype.parse=function(e){this.options.delimiter||(this.options.delimiter=i.getDelimiterFromData(e));var t,n,r,a=this.CSVToArray(e,this.options.delimiter),o=v(this.options.emptyAs),l=this.parsableNumbers,h=this.parsableDates,p=[],u=[];for(n=0;n0&&l.delay(t))}),r},i.prototype.dispose=function(){s.prototype.dispose.call(this),j(this.sprites,function(e){e.dispose()}),this.sprites=[]},i.prototype.hide=function(e,t,n,r){var a=this;if(this.isHiding=!0,j(this.sprites,function(l){var h=l.hide(e);null==h||h.isFinished()||(a._disposers.push(h),null!=t&&t>0&&h.delay(t))}),y(n)&&r){var o;if(j(r,function(l){var h=a.setWorkingValue(l,n,e,t);h&&(o=h)}),o&&!o.isFinished())return this._hideDisposer=o.events.on("animationended",function(){a.setVisibility(!1,!0),a.isHiding=!1}),this._disposers.push(this._hideDisposer),o;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},i.prototype.getDuration=function(e){if(!y(e)){var t=this.component;t&&(e=t.interpolationDuration)}if(null!=e)return this._adapterO?this._adapterO.apply("duration",e):e},i.prototype.getValue=function(e,t){if(e&&this.component){t||(t=this.component.dataFields[e+"Show"])||(t="value");var n=this.values[e][t];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:n,field:e}).value:n}},i.prototype.getWorkingValue=function(e){if(e&&this.component){var t=this.component.dataFields[e+"Show"];return t||(t="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[e][t],field:e}).workingValue:this.values[e][t]}},i.prototype.getActualWorkingValue=function(e){return this.values[e].workingValue},i.prototype.setValue=function(e,t,n,r){var a=this.values[e].value,o=this.getDuration(n);a!==(t=ce(t))&&(this.values[e].value=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")&&this.events.dispatchImmediately("valuechanged",{type:"valuechanged",target:this,property:e}),this.component&&this.component.handleDataItemValueChange(this,e)),this.setWorkingValue(e,t,o,r)},i.prototype.setCalculatedValue=function(e,t,n){this.values[e][n]!==t&&y(t)&&(this.values[e][n]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")&&this.events.dispatchImmediately("calculatedvaluechanged",{type:"calculatedvaluechanged",target:this,property:e}),this.component&&this.component.handleDataItemCalculatedValueChange(this,e))},i.prototype.setWorkingValue=function(e,t,n,r){if(y(this.values[e].value)){var a=this.getDuration(n),o=this.values[e].workingValue;if(null!=a&&a>0&&y(o)&&this.component){if(o!=t){var l=this.animate({childObject:this.values[e],property:"workingValue",from:o,to:t,dummyData:e},a,this.component.interpolationEasing);return null!=r&&l.delay(r),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[e]=l,l}(h=this._valueAnimations[e])&&h.stop(),this.values[e].workingValue=t}else{var h;(h=this._valueAnimations[e])&&h.stop(),this.values[e].workingValue=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")&&this.events.dispatchImmediately("workingvaluechanged",{type:"workingvaluechanged",target:this,property:e}),this.component&&this.component.handleDataItemWorkingValueChange(this,e)}}},i.prototype.setLocation=function(e,t,n,r){this.locations[e]!==t&&(this.locations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")&&this.events.dispatchImmediately("locationchanged",{type:"locationchanged",target:this,property:e}),this.component&&this.component.handleDataItemValueChange(this,e),this.setWorkingLocation(e,t,n,r))},i.prototype.setWorkingLocation=function(e,t,n,r){var a=this.getDuration(n),o=this.workingLocations[e];if(null!=a&&a>0&&y(o)&&this.component){if(o!=t){var l=this.animate({childObject:this.workingLocations,property:e,from:o,to:t,dummyData:e},a,this.component.interpolationEasing);return null!=r&&l.delay(r),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[e]=l,l}(h=this._locationAnimations[e])&&h.stop(),this.workingLocations[e]=t}else{var h;(h=this._locationAnimations[e])&&h.stop(),this.workingLocations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")&&this.events.dispatchImmediately("workinglocationchanged",{type:"workinglocationchanged",target:this,property:e}),this.component&&this.component.handleDataItemWorkingLocationChange(this,e)}},i.prototype.setDate=function(e,t,n){!ki(t)&&this.component&&(t=this.component.dateFormatter.parse(t)),this.dates[e]!==t&&(this.dates[e]=t,this.setValue(e,t.getTime(),n))},i.prototype.getDate=function(e){return this._adapterO?this._adapterO.apply("date",{date:this.dates[e],field:e}).date:this.dates[e]},i.prototype.setProperty=function(e,t){this.properties[e]!==t&&(this.hasProperties=!0,this.properties[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")&&this.events.dispatchImmediately("propertychanged",{type:"propertychanged",target:this,property:e,value:t}),this.component&&this.component.handleDataItemPropertyChange(this,e))},i.prototype.setCategory=function(e,t){J(t)||(t=sn(t)),this.categories[e]!==t&&(this.categories[e]=t)},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=Ql(e.dataContext,{})),Vt(e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(i.prototype,"opacity",{set:function(e){j(this.sprites,function(t){t.opacity=e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){this._ignoreMinMax=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")&&this.events.dispatchImmediately("propertychanged",{type:"propertychanged",target:this,property:"ignoreMinMax",value:e}),this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),i.prototype.animate=function(e,t,n){return new gt(this,e,t,n).start()},i.prototype.handleInterpolationProgress=function(e){var t=e.target.animationOptions[0];t&&(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")&&this.events.dispatchImmediately("workingvaluechanged",{type:"workingvaluechanged",target:this,property:t.dummyData}),this.component&&this.component.handleDataItemWorkingValueChange(this,t.dummyData))},i.prototype.hasValue=function(e){for(var t=0,n=e.length;t0;)this.data.shift(),t--;this.invalidateData()},i.prototype.removeData=function(e,t){if(y(e)&&e>0){for(;e>0;){var n=this.mainDataSet.getIndex(0);n&&this.mainDataSet.remove(n),this.dataUsers.each(function(r){if(!r.data||0==r.data.length){var a=r.mainDataSet.getIndex(0);a&&r.mainDataSet.remove(a)}}),t||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,e--}this.invalidateDataItems()}},i.prototype.invalidateData=function(){this.disabled||this.isTemplate||(_.addToInvalidComponents(this),Q.requestFrame(),this.dataInvalid=!0,A(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},i.prototype.invalidateDataUsers=function(){A(this.dataUsers.iterator(),function(e){e.invalidate()})},i.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(pt(_.invalidDataItems,this),Q.requestFrame(),this.dataItemsInvalid=!0,A(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},i.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,pt(_.invalidDataRange,this),Q.requestFrame())},i.prototype.validateDataRange=function(){z(_.invalidDataRange,this),this.dataRangeInvalid=!1,this.startIndex==this._prevStartIndex&&this.endIndex==this._prevEndIndex||(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},i.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},i.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},i.prototype.appendDataItems=function(){for(var e=this.endIndex,t=this.startIndex;t0&&this.disposeData(),this.data.length>0){var t=this.preloader;A(this.dataUsers.iterator(),function(u){u._startIndex=void 0,u._endIndex=void 0});for(var n=0,r=Date.now(),a=this._parseDataFrom,o=this.data.length,l=function(){var u=h.data[a];if(h._usesData){var d=h.getDataItem(u);h.processDataItem(d,u)}if(h.dataUsers.each(function(c){if(0==c.data.length){var f=c.getDataItem(u);c.processDataItem(f,u)}}),100==++n&&(n=0,Date.now()-r>h.parsingStepDuration&&a.5&&!t.visible||(t.progress=a/h.data.length)),h.dataValidationProgress=a/h.data.length,a=h.data.length,h.invalidateData(),{value:void 0}},h=this;a0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated")))},i.prototype.getDataSource=function(e){var t=this;return v(this._dataSources[e])||(this._dataSources[e]=new op,this._dataSources[e].component=this,this.setDataSourceEvents(this._dataSources[e],e),this._dataSources[e].adapter.add("dateFields",function(n){return t.dataSourceDateFields(n)}),this._dataSources[e].adapter.add("numberFields",function(n){return t.dataSourceNumberFields(n)}),this.events.on("inited",function(){t.loadData(e)},this,!1)),this._dataSources[e]},Object.defineProperty(i.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(e){var t=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=e,this._dataSources.data.component=this,this.events.on("inited",function(){t.loadData("data")},this,!1),this.setDataSourceEvents(e,"data")},enumerable:!0,configurable:!0}),i.prototype.loadData=function(e){this._dataSources[e].load()},i.prototype.dataSourceDateFields=function(e){return e},i.prototype.dataSourceNumberFields=function(e){return e},i.prototype.populateDataSourceFields=function(e,t,n){return j(n,function(r){t[r]&&-1===ht(e,t[r])&&e.push(t[r])}),e},i.prototype.setDataSourceEvents=function(e,t){var n=this;e.events.on("started",function(r){var a=n.preloader;a&&(a.progress=0)},void 0,!1),e.events.on("loadstarted",function(r){var a=n.preloader;a&&(a.progress=.25)},void 0,!1),e.events.on("loadended",function(r){var a=n.preloader;a&&(a.progress=.5)},void 0,!1),e.events.on("parseended",function(r){var a=n.preloader;a&&(a.progress=.75)},void 0,!1),e.events.on("ended",function(r){var a=n.preloader;a&&(a.progress=1)},void 0,!1),e.events.on("error",function(r){var a=n.preloader;a&&(a.progress=1),n.openModal(r.message)},void 0,!1),t&&e.events.on("done",function(r){var a=n.preloader;a&&(a.progress=1),"data"!=t||Ae(r.data)||(r.data=[r.data]),e.incremental&&"data"==t&&n.data.length?n.addData(r.data,e.keepCount?r.data.length:0):e.updateCurrentData&&"data"==t&&n.data.length?(j(n.data,function(o,l){v(r.data[l])&&X(o,function(h,p){v(r.data[l][h])&&(o[h]=r.data[l][h])})}),n.invalidateRawData()):n[t]=r.data})},Object.defineProperty(i.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new lp,this._responsive.component=this),this._responsive},set:function(e){this._responsive=e,this._responsive.component=this},enumerable:!0,configurable:!0}),i.prototype.zoom=function(e,t,n,r){var a=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.start,l=e.end,h=e.priority;if(e.start==e.end&&(e.start=e.start-.5/this.maxZoomFactor,e.end=e.end+.5/this.maxZoomFactor),"end"==h&&1==l&&0!=o&&othis.end&&(h="end"),y(r)||(r=this.maxZoomDeclination),!y(o)||!y(l))return{start:this.start,end:this.end};if(this._finalStart!=o||this._finalEnd!=l){var p=this.maxZoomFactor/this.minZoomCount,u=this.maxZoomFactor/this.maxZoomCount;if("start"==h?(this.maxZoomCount>0&&1/(l-o)p&&(l=o+1/p),l>1&&l-o<1/p&&(o=l-1/p)):(this.maxZoomCount>0&&1/(l-o)p&&(o<=0?l=o+1/p:o=l-1/p),o<0&&l-o<1/p&&(l=o+1/p)),o<-r&&(o=-r),1/(l-o)>p&&(l=o+1/p),l>1+r&&(l=1+r),1/(l-o)>p&&(o=l-1/p),this._finalEnd=l,this._finalStart=o,this.skipRangeEvent=t,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!n){var d=this.rangeChangeAnimation;if(d&&d.progress<1){var c=d.animationOptions;if(c.length>1){if(c[0].to==o&&c[1].to==l)return{start:o,end:l};d.isDisposed()||d.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),d=this.animate([{property:"start",to:o},{property:"end",to:l}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=d,d&&!d.isFinished()?d.events.on("animationended",function(){a.dispatchImmediately("rangechangeended")}):this.dispatchImmediately("rangechangeended")}else this.start=o,this.end=l,this.dispatch("rangechangeended")}return{start:o,end:l}},i.prototype.zoomToIndexes=function(e,t,n,r){y(e)&&y(t)&&this.zoom({start:e/this.dataItems.length,end:t/this.dataItems.length},n,r)},Object.defineProperty(i.prototype,"zoomFactor",{get:function(){return R(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(e){this.setPropertyValue("maxZoomFactor",e)&&(1==e&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(e){this.setPropertyValue("maxZoomDeclination",e)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return y(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(e){this._startIndex=R(Math.round(e),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),i.prototype.indexToPosition=function(e){return e/this.dataItems.length},Object.defineProperty(i.prototype,"endIndex",{get:function(){var e=this.dataItems.length;return(!y(this._endIndex)||this._endIndex>e)&&(this._endIndex=e),this._endIndex},set:function(e){this._endIndex=R(Math.round(e),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(e){if(this._start!=e){this._start=e;var t=Math.max(0,Math.floor(this.dataItems.length*e)||0);this._startIndex=Math.min(t,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(e){this._end!=e&&(this._end=e,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*e)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),i.prototype.removeFromInvalids=function(){s.prototype.removeFromInvalids.call(this),_.removeFromInvalidComponents(this),z(_.invalidDataItems,this),z(_.invalidDataRange,this),z(_.invalidRawDatas,this)},Object.defineProperty(i.prototype,"dataItems",{get:function(){if(""!=this._currentDataSetId){var e=this.dataSets.getKey(this._currentDataSetId);if(e)return e}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new me),this._dataSets},enumerable:!0,configurable:!0}),i.prototype.setDataSet=function(e){if(this._currentDataSetId!=e){if(this.dataSets.getKey(e))return this.dataItems.each(function(t){t.__disabled=!0}),this._currentDataSetId=e,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(t){t.__disabled=!1}),!0;if(""!=this._currentDataSetId)return this.dataItems.each(function(t){t.__disabled=!0}),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(t){t.__disabled=!1}),!0}return!1},Object.defineProperty(i.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),i.prototype._updateDataItemIndexes=function(e){for(var t=this.mainDataSet.values,n=t.length,r=e;rthis.availableWidth||this.bbox.widththis.availableHeight||this.bbox.heightr){this.isOversized=!0;var k=P.element.textContent,D=P.bbox.width/k.length,G=ie(Math.ceil((P.bbox.width-r)/D),k.length);if(this.truncate){var H=!1,ne=P.element.node;if(ne&&ne.childNodes)for(var Te=P.element.node.childNodes.length-1;Te>=0;Te--){var Ge=P.element.node.childNodes[Te];if(H&&P.bbox.width<=r&&(Ge.textContent+=" "+this.ellipsis,P.bbox=P.element.getBBox(),P.bbox.width=Math.floor(P.bbox.width),P.bbox.width<=r))break;H=!1;var he=Ge.textContent;for(k=P.element.textContent,G=ie(Math.ceil((P.bbox.width-r)/D),k.length);P.bbox.width>r&&G<=k.length&&G>0;)(U=q(k.length-G-this.ellipsis.length,1))<=1&&(G=0,Te>0&&(H=!0,P.element.node.removeChild(Ge))),(he=Pr(he,U,this.ellipsis,this.fullWords,this.rtl)).length>U&&this.fullWords&&(he=Pr(he,U,this.ellipsis,!1,this.rtl)),Ge.textContent=he,P.bbox=P.element.getBBox(),P.bbox.width=Math.floor(P.bbox.width),G=Math.ceil(1.1*G);S=!0}}else if(P.element.node){for(var et=P.element.node.lastChild,we=void 0;P.bbox.width>r&&G<=k.length&&G>0;){var U=q(I.text.length-G,1);if(C?we=_r(I.text,U,!0,this.rtl):((we=_r(I.text,U,!0,this.rtl,!1))[0].length>U||1===U)&&(P.element.node.removeChild(et),G=0),G>0){var nt=we.shift();C&&(nt=ma(nt)),et.textContent=Ft().cleanUp(nt)}P.bbox=P.element.getBBox(),P.bbox.width=Math.floor(P.bbox.width),G++}if(we.length>0){var qe="";v(we)&&(qe+=this.rtl?we.join("")+f:f+we.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var Y=O+1;Y0&&(c+=ke),d.removeElement(ge);var Lt=this.getLineInfo(g);Lt&&(Lt.text="",Lt.element.textContent="")}}this.maybeHideOversized(),this.measureFailed=!1,0!=this.bbox.width&&0!=this.bbox.height||(this.measureFailed=!0),this._measuredWidth=V(q(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=V(q(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,t==this._measuredHeight&&e==this._measuredWidth||this.dispatch("transformed"),this.hideUnused(p.length)}else{this.element.removeAttr("display"),this.resetBBox(),(d=this.element).removeChildren(),this.setCache("lineInfo",[],0);var tt=this.paper.foreignObject();d.add(tt),this.maxWidth&&tt.attr({width:this.maxWidth-this.pixelPaddingLeft-this.pixelPaddingRight}),this.maxHeight&&tt.attr({height:this.maxHeight-this.pixelPaddingTop-this.pixelPaddingBottom});var Je=this.getHTMLLineElement(h);tt.node.appendChild(Je),Je.style.display="inline-block";var Dt=Je.clientWidth,jt=Je.clientHeight;Je.style.display="block",this._bbox={x:0,y:0,width:Dt,height:jt},tt.attr({width:Dt+1,height:jt}),this.maybeHideOversized(),this._measuredWidth=q(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=q(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(Je.style.overflow="hidden"),(Dt>r||jt>a)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),"none"==u&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}else this.element.attr({display:"none"})}}else n.events.once("maxsizechanged",this.hardInvalidate,this,!1)},i.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth=0;a--){var o=t[a];if(o.setAttribute("text-anchor",this.textAlign),this.textPathElement)o.removeAttribute("x"),o.removeAttribute("y");else{switch(this.textAlign){case"middle":o.setAttribute("x",(n/2).toString()+"px");break;case"end":this.rtl||o.setAttribute("x",n.toString());break;default:this.rtl?o.setAttribute("x",n.toString()):o.removeAttribute("text-anchor")}var l=ce(o.getAttribute("y"));switch(this.textValign){case"middle":o.setAttribute("y",((l||0)+(r-this.bbox.height)/2).toString());break;case"bottom":o.setAttribute("y",((l||0)+r-this.bbox.height).toString());break;default:o.setAttribute("y",(l||0).toString())}}}}},i.prototype.getSVGLineElement=function(e,t){var n=this.paper.addGroup("text");return n.textContent=e,n.attr({x:"0"}),v(t)&&n.attr({y:t.toString()}),(this.truncate||this.wrap)&&n.attr({overflow:"hidden"}),n},Object.defineProperty(i.prototype,"rtl",{get:function(){return v(this._rtl)?this._rtl:!!this._topParent&&this._topParent.rtl},set:function(e){e=ve(e),this._rtl=e,this.element&&this.alignSVGText()},enumerable:!0,configurable:!0}),i.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},i.prototype.getHTMLLineElement=function(e){var t=document.createElement("div");switch(t.innerHTML=e,this.textAlign){case"middle":t.style.textAlign="center";break;case"end":t.style.textAlign="right"}return this.wrap?t.style.wordWrap="break-word":t.style.whiteSpace="nowrap",this.rtl&&(t.style.direction="rtl"),v(this.fill)&&(t.style.color=this.fill.toString()),t},i.prototype.setStyles=function(){var e=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?e.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(e.removeStyle("webkitUserSelect"),e.removeStyle("msUserSelect"))},i.prototype.hideUnused=function(e){this.initLineCache();var t=this.getCache("lineInfo");if(t.length>=e)for(var n=e;ne?t[e]:void 0},i.prototype.addLineInfo=function(e,t){this.initLineCache(),this.getCache("lineInfo")[t]=e},i.prototype.initLineCache=function(){v(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},i.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new _e([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),s.prototype.setDataItem.call(this,e)},Object.defineProperty(i.prototype,"availableWidth",{get:function(){return v(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"availableHeight",{get:function(){return v(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),i.prototype.getSvgElement=function(e,t,n){var r=this.paper.add("tspan");if(r.textContent=e,t)if(Z.nonce&&n){var a="amcharts_element_style_"+btoa(t).replace(/[^\w]*/g,"");r.node.setAttribute("class",a);var o=document.createElementNS(zi,"defs");n.node.appendChild(o);var l=document.createElement("style");l.type="text/css",l.innerHTML="."+a+" { "+t+"}",l.setAttribute("nonce",Z.nonce),o.appendChild(l)}else r.node.setAttribute("style",t);return n&&n.add(r),r},i.prototype.deepInvalidate=function(){s.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(i.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return e?this.dataItem&&(e=this.populateString(e)):e=this.populateString(Cr(Pn(this.html)?this.html:this.text)),e},set:function(e){e=Xe(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i}(W);_.registeredClasses.Label=$e,Ne.push({relevant:Ue.heightXS,state:function(s,i){if(s instanceof $e&&s.parent&&s.parent.isBaseSprite){var e=s.states.create(i);return e.properties.disabled=!0,e}return null}});var St=function(s){function i(){var e=s.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.innerWidth,t=this.innerHeight;if(y(e)&&y(t)){var n=ie(e,t)/2,r=xe(this.cornerRadiusTopLeft,n),a=xe(this.cornerRadiusTopRight,n),o=xe(this.cornerRadiusBottomRight,n),l=xe(this.cornerRadiusBottomLeft,n),h=ie(Math.abs(e/2),Math.abs(t/2)),p=R(r,0,h),u=R(a,0,h),d=R(o,0,h),c=R(l,0,h);this.path="M"+p+",0 L"+(e-u)+",0 a"+u+","+u+" 0 0 1 "+u+","+u+" L"+e+","+(t-d)+" a"+d+","+d+" 0 0 1 -"+d+","+d+" L"+c+","+t+" a"+c+","+c+" 0 0 1 -"+c+",-"+c+" L0,"+p+" a"+p+","+p+" 0 0 1 "+p+",-"+p+" Z"}},i.prototype.cornerRadius=function(e,t,n,r){this.cornerRadiusTopLeft=e,this.cornerRadiusTopRight=t,this.cornerRadiusBottomLeft=n,this.cornerRadiusBottomRight=r},Object.defineProperty(i.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(e){this.setPercentProperty("cornerRadiusTopLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(e){this.setPercentProperty("cornerRadiusTopRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(e){this.setPercentProperty("cornerRadiusBottomRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(e){this.setPercentProperty("cornerRadiusBottomLeft",e,!0)},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),i}($);_.registeredClasses.RoundedRectangle=St;var Xt=function(s){function i(){var e=s.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0;var t=new ae,n=e.background;n.fill=t.getFor("secondaryButton"),n.stroke=t.getFor("secondaryButtonStroke"),n.fillOpacity=1,n.strokeOpacity=1,n.cornerRadius(3,3,3,3),e.label=new $e,e.label.fill=t.getFor("secondaryButtonText"),e.label.shouldClone=!1;var r=n.states.create("hover");r.properties.fillOpacity=1,r.properties.fill=t.getFor("secondaryButtonHover");var a=n.states.create("down");return a.transitionDuration=100,a.properties.fill=t.getFor("secondaryButtonDown"),a.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"icon",{get:function(){return this._icon},set:function(e){var t=this._icon;t&&(t.parent=void 0),e&&(this._icon=e,e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(e){this.setPropertyValue("iconPosition",e),this.icon&&("left"==e?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label},set:function(e){this._label&&this.removeDispose(this._label),this._label=e,e&&(e.parent=this,e.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new St},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),e.label&&this.label.copyFrom(e.label),e.icon&&(this.icon=e.icon.clone())},i}(W);_.registeredClasses.Button=Xt;var ii=function(s){function i(){var e=s.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",F(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return xe(this.radius,ie(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){var e=this.pixelRadius;this._bbox={x:-e,y:-e,width:2*e,height:2*e}},i}($);_.registeredClasses.Circle=ii;var Wr=function(s){function i(){var e=s.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(i.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(e){this.height=2*e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(e){this.width=2*e,this.invalidate()},enumerable:!0,configurable:!0}),i}(ii);_.registeredClasses.Ellipse=Wr;var hp=function(s){function i(){var e=s.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return w(i,s),i.prototype.draw=function(){if(s.prototype.draw.call(this),this.href){var e=this.innerWidth,t=this.innerHeight;y(this.widthRatio)&&(this.width=e=t*this.widthRatio),y(this.heightRatio)&&(this.height=t=e*this.heightRatio),this.element.attr({width:e,height:t}),this.element.attrNS(Aa,"xlink:href",this.href)}},Object.defineProperty(i.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(e){this.setPropertyValue("href",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(e){this.setPropertyValue("widthRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(e){this.setPropertyValue("heightRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),i}($);_.registeredClasses.Image=hp;var yt=function(s){function i(){var e=s.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=B(),e.x1=0,e.y1=0,e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this),this.pixelPerfect=this.x1==this.x2||this.y1==this.y2,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(i.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(e){y(e)||(e=0);var t=0;this.pixelPerfect&&this.stroke instanceof dt&&(t=1e-5),this.setPropertyValue("x1",e,!0),this.element.attr({x1:e+t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x2",{get:function(){var e=this.getPropertyValue("x2");return y(e)||(e=this.pixelWidth),e},set:function(e){y(e)||(e=0),this.setPropertyValue("x2",e,!0),this.element.attr({x2:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(e){y(e)||(e=0);var t=0;this.pixelPerfect&&this.stroke instanceof dt&&(t=1e-5),this.setPropertyValue("y1",e,!0),this.element.attr({y1:e+t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y2",{get:function(){var e=this.getPropertyValue("y2");return y(e)||(e=this.pixelHeight),e},set:function(e){y(e)||(e=0),this.setPropertyValue("y2",e,!0),this.element.attr({y2:e})},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t={x:this.x1,y:this.y1},n={x:this.x2,y:this.y2},r=ln(t,n,e),a=Ee(t,n);return{x:r.x,y:r.y,angle:a}},i}($);_.registeredClasses.Line=yt;var pp=function(s){function i(){var e=s.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this),y(this.pointerX)||(this.pointerX=this.pixelWidth/2),y(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(i.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(e){this.setPropertyValue("pointerBaseWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(e){this.setPropertyValue("pointerLength",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(e){this.setPropertyValue("pointerX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(e){this.setPropertyValue("pointerY",e,!0)},enumerable:!0,configurable:!0}),i}($),up=function(s){function i(){var e=s.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.cornerRadius,t=this.innerWidth,n=this.innerHeight;if(t>0&&n>0){var r,a,g,m,x,b,o=this.pointerX,l=this.pointerY,h=this.pointerBaseWidth/2,p=ie(t/2,n/2),u=R(e,0,p),d=R(e,0,p),c=R(e,0,p),f=R(e,0,p),C=(o-0)*(n-0)-(l-0)*(t-0),S=(o-0)*(0-n)-(l-n)*(t-0);g=C>0&&S>0?"M"+u+",0 L"+((r=R(o,u+h,t-h-d))-h)+",0 L"+o+","+(l=R(l,-1/0,0))+" L"+(r+h)+",0 L"+(t-d)+",0":"M"+u+",0 L"+(t-d)+",0",x=C<0&&S<0?" L"+(t-c)+","+n+" L"+((r=R(o,f+h,t-h-c))+h)+","+n+" L"+o+","+(l=R(l,n,1/0))+" L"+(r-h)+","+n+" L"+f+","+n:" L"+f+","+n,b=C<0&&S>0?" L0,"+(n-f)+" L0,"+((a=R(l,u+h,n-f-h))+h)+" L"+(o=R(o,-1/0,0))+","+l+" L0,"+(a-h)+" L0,"+u:" L0,"+u,m=C>0&&S<0?" L"+t+","+d+" L"+t+","+((a=R(l,d+h,n-h-c))-h)+" L"+(o=R(o,t,1/0))+","+l+" L"+t+","+(a+h)+" L"+t+","+(n-c):" L"+t+","+(n-c),this.path=g+" a"+d+","+d+" 0 0 1 "+d+","+d+m+" a"+c+","+c+" 0 0 1 -"+c+","+c+x+" a"+f+","+f+" 0 0 1 -"+f+",-"+f+b+" a"+u+","+u+" 0 0 1 "+u+",-"+u}},Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),i}(pp);function Zi(s){var i=T(s[0]),e={x:0,y:0},t=Z.minPolylineStep;y(t)||(t=.5);for(var n=0,r=s.length;nt&&(i+=T(a),e=a)}return i}function E(s){return" M"+V(s.x,4)+","+V(s.y,4)+" "}function T(s){return" L"+V(s.x,4)+","+V(s.y,4)+" "}function ni(s,i){return" Q"+V(i.x,4)+","+V(i.y,4)+" "+V(s.x,4)+","+V(s.y,4)}function _i(s,i,e){return" C"+V(i.x,4)+","+V(i.y,4)+" "+V(e.x,4)+","+V(e.y,4)+" "+V(s.x,4)+","+V(s.y,4)}function gd(){return" Z"}function Le(s,i,e,t){if(0==i)return"";y(t)||(t=e);var n="",r=",",a=Math.ceil(Math.abs(i)/180),o=1;i<0&&(o=0);var l=0,h=0,p=-L(s)*e,u=-M(s)*t;if(i<.5&&e>3e3)return T({x:f=V(L(c=s+i)*e,4),y:g=V(M(c)*t,4)});for(var d=0;d(l-s)/2&&(k=b);var D="";return 360==i?D=E(S):(D=E(C),D+=T(S),D+=ot(I,r,u,!0)),D+=Le(s+c,i-2*c,e,n),y(t)&&0!=t?(360==i&&0==r?D+=E(O):(D+=ot(P,r,u,!0),D+=T(O),D+=ot(k,a,d,!0)),D+=Le(l-g,-(i-2*g),t,p),(i<360||r>0)&&(D+=ot(C,a,d,!0)),D+=T(C)):(D+=ot(P,r,u,!0),i<360&&(D+=T(C))),D}function ot(s,i,e,t,n,r){if(0==i)return"";var a=",";return" A"+i+a+e+a+(r=r||0)+a+ +(n=Boolean(n))+a+ +(t=Boolean(t))+a+V(s.x,4)+a+V(s.y,4)}function Xr(s,i,e,t){return y(e)||(e=0),y(t)||(t=0),E({x:e,y:t})+T({x:e+s,y:t})+T({x:e+s,y:t+i})+T({x:e,y:t+i})+" Z"}function Yt(s,i){var e=",",t=" L";return i?"M"+s.x+e+s.y+t+s.x+e+(s.y+s.height)+t+(s.x+s.width)+e+(s.y+s.height)+t+(s.x+s.width)+e+s.y+t+s.x+e+s.y:"M"+s.x+e+s.y+t+(s.x+s.width)+e+s.y+t+(s.x+s.width)+e+(s.y+s.height)+t+s.x+e+(s.y+s.height)+t+s.x+e+s.y}function yd(s,i){var e=Ui().add("path").node;if(e.setAttribute("d",s),e.getPointAtLength&&e.getTotalLength){for(var t=e.getTotalLength(),n=[],r=0;rh&&(d=2*h),(p+=2*Math.asin(d/2/h))*vt>l+(e-n)/a*360)break;var c=p*vt,f={x:s+h*Math.cos(p),y:i+h*t/e*Math.sin(p)};u.push(f),h=n+c/360*a}return u.shift(),u}function vd(s){if(!s||0==s.length)return"";var i=E(s[0]);if(s&&s.length>0)for(var e=1;e0){for(var t="",n=0,r=e.length;n0){t+=E(a[0]);for(var o=1;o1){for(var c=1;ce){u=n.length;break}}else 1==d.length&&(h=d[0],p=d[0],o=0,l=1)}if(h&&p){var f=ln(h,p,(e-o)/(l-o));return{x:f.x,y:f.y,angle:t+Ee(h,p)}}}return{x:0,y:0,angle:0}},Object.defineProperty(i.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),i}($);_.registeredClasses.Polyline=qi;var dp=function(s){function i(){var e=s.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return w(i,s),i.prototype.makePath=function(){this._distance=0;var e=this.segments;if(e&&e.length>0){var t="";this._realSegments=[];for(var n=0,r=e.length;n0){t+=E(a[0]);for(var l=1;l0)for(var C=0;C<=x;C++){var S=ar(h,p,g,m,C/x);o.push(S),this._distance+=oe(b,S),b=S}else o.push(h)}}}this.path=t}},Object.defineProperty(i.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(e){this.setPropertyValue("controlPointPosition",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e),this.makePath()},enumerable:!0,configurable:!0}),i}(qi);_.registeredClasses.Polyarc=dp;var cp=function(s){function i(e){var t=s.call(this)||this;return t._bboxes=[],t.morphDuration=800,t.morphEasing=Qt,t.morphToSingle=!0,t.scaleRatio=1,t.className="Morpher",t.morphable=e,t.applyTheme(),t}return w(i,s),i.prototype.morphToPolygon=function(e,t,n){var r=this.morphable.currentPoints;if(r&&e){this.sortPoints(r),this.sortPoints(e),this._morphFromPointsReal=[],this._morphToPointsReal=[],v(t)||(t=this.morphDuration),v(n)||(n=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(e,r),this._morphToPointsReal=this.normalizePoints(r,e),this.morphable.currentPoints=this._morphFromPointsReal;var a=new gt(this,{property:"morphProgress",from:0,to:1},t,n);return this._disposers.push(a),a.start(),a}},i.prototype.normalizePoints=function(e,t){for(var n=0,r=e.length;np.width*p.height?-1:1});for(var t=[],n=0,r=e.length;nb&&(b=h.length);for(var C=360/((b=(d=this.addPoints(h,b)).length)-1),S=0;S0)for(var I=0,k=p.length;I0){var c=e[e.length-1];for(p=r.length;p0)for(var C=c.x+c.width/2,S=c.y+c.height/2,P=0,O=p.length;P0&&u&&u.length>0){for(var c=[],f=0,g=h.length;f0&&d&&d.length>0){for(var C=[],S=0,P=p.length;S0){var o=a.split("M"),l=o[0],h=o[1];if(l&&l.length>0){var p=l.split("L");if(p.length>0){var u=[],d=[u];e.push(d);for(var c=0;c0){var g=h.split("L");if(g.length>0){var m=[];for(d.push(m),c=g.length-1;c>=0;c--)f=g[c].split(","),m.push({x:+f[0],y:+f[1]})}}}}}}this.setPropertyValue("points",e),this._currentPoints=e}return e},set:function(e){this.setPropertyValue("points",e,!0),this._currentPoints=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentPoints",{get:function(){return this._currentPoints&&0!=this._currentPoints.length||!this.path||(this._currentPoints=this.points),this._currentPoints},set:function(e){this._currentPoints!=e&&(this._currentPoints=e,this.draw())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){var e,t,n,r,a="",o=this._currentPoints;if(o.length>0){for(var l=0,h=o.length;l0){a+=E(c=p[0]);for(var d=0;dc.x)&&(e=c.x),(!y(n)||n>c.y)&&(n=c.y),(!y(r)||r0){var c;a+=E(c=u[0]);for(var f=0,g=u.length;f0){var r="";this._realSegments=[];for(var a=0,o=e.length;a0){var p=l[0],u=l[l.length-1],d=!1;V(p.x,3)==V(u.x)&&V(p.y)==V(u.y)&&(d=!0),r+=E(l[0]);for(var c=0;c0)for(var O=0;O<=S;O++){var I=ar(g,m,b,C,O/S);if(I.x!=P.x||I.y!=P.y){h.push(I);var k=V(Ee(P,I),5);this._distance+=oe(P,I),this.allPoints[Math.floor(this._distance)]={x:I.x,y:I.y,angle:k},P=I}}else h.push(f)}}var D=this.allPoints;if(D.length>1)for(var G=0;G1)D[G]=D[G-1];else for(var H=1;H1)for(var a=1;a1){if(t&&a>3){if(e<0){e<-.01&&(e=-.01);var o=r[0],l=r[1];return{x:h=o.x-(o.x-l.x)*a*e,y:p=o.y-(o.y-l.y)*a*e,angle:Ee(o,l)}}var h,p;if(e>1)return e>1.01&&(e=1.01),{x:h=(o=r[r.length-2]).x+(o.x-(l=r[r.length-3]).x)*a*(e-1),y:p=o.y+(o.y-l.y)*a*(e-1),angle:Ee(o,{x:h,y:p})};if(1==e){var u=r[r.length-1];return{x:u.x,y:u.y,angle:u.angle}}}else e<0&&(e=Math.abs(e),n=180),e>=1&&(e=.9999999999999);var d;return{x:(d=r[Math.floor(e*a)]).x,y:d.y,angle:d.angle+n}}return 1==a?{x:(d=r[0]).x,y:d.y,angle:d.angle}:{x:0,y:0,angle:0}},i}(qi);_.registeredClasses.Polyspline=jn;var ri=function(s){function i(){var e=s.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild($),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&0==e&&(e=.01),this.slice.path=Pi(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof Nt&&this.updateGradient(this.realFill),this.realStroke instanceof Nt&&this.updateGradient(this.realStroke)},i.prototype.updateGradient=function(e){e.element.attr({gradientUnits:"userSpaceOnUse"}),e.element.attr({r:this.radius}),e.cx=0,e.cy=0,e.element.attr({radius:this.radius})},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?Mi([xt(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),xt(this.startAngle,this.startAngle+this.arc,this.radius)]):{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",Zt(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){y(e)||(e=0),this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){var e=this.getPropertyValue("radius");return y(e)||(e=0),e},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return y(e)||(e=this.radius),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return xe(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(e){this.setPropertyValue("innerCornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(e){this.setPropertyValue("shiftRadius",e),e=this.getPropertyValue("shiftRadius"),this.dx=e*this.radius*this.ix,this.dy=e*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ix",{get:function(){return L(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iy",{get:function(){return M(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");if(y(e))return e;var t=.5;e instanceof te&&(t=e.value);var n=xe(this.innerRadius,this.radius);return this.ix*(n+(this.radius-n)*t)},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");if(y(e))return e;var t=.5;e instanceof te&&(t=e.value);var n=xe(this.innerRadius,this.radius);return this.iy*(n+(this.radius-n)*t)+this.slice.dy},i}(W);_.registeredClasses.Slice=ri;var $a=function(s){function i(){var e=s.call(this)||this;e.className="Preloader",e.width=F(100),e.height=F(100);var t=new ae,n=e.createChild(W);n.shouldClone=!1;var r=n.createChild(ri);r.shouldClone=!1,r.radius=53,r.arc=360,r.fill=t.getFor("fill"),r.fillOpacity=.8,r.innerRadius=42,r.isMeasured=!1,e.backgroundSlice=r;var a=n.createChild(ri);a.shouldClone=!1,a.radius=50,a.innerRadius=45,a.fill=t.getFor("alternativeBackground"),a.fillOpacity=.2,a.isMeasured=!1,e.progressSlice=a;var o=n.createChild($e);return o.shouldClone=!1,o.horizontalCenter="middle",o.verticalCenter="middle",o.isMeasured=!1,o.fill=t.getFor("text"),o.align="center",o.valign="middle",o.textAlign="middle",o.fillOpacity=.4,e.label=o,e.background.opacity=1,e.background.fill=t.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300,e.states.create("hidden").properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(n),e}return w(i,s),Object.defineProperty(i.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(e){var t=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",e),this.progressSlice.arc=360*e,this.label&&(this.label.text=Math.round(100*e)+"%"),e>=1?(this._started&&(this._started=void 0),_.events.once("enterframe",function(){var n=t.hide();n&&!n.isFinished()?n.events.once("animationended",function(){t.__disabled=!0}):t.__disabled=!0}),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):e>0&&(this.delay?this._started?this._started+this.delay<=(new Date).getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=(new Date).getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(e){this.setPropertyValue("delay",e)},enumerable:!0,configurable:!0}),i}(W);_.registeredClasses.Preloader=$a;var Yr=function(s){function i(){var e=s.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var t=new $;t.element=e.paper.add("path");var n=E({x:-2,y:-6});return n+=T({x:-2,y:6}),n+=E({x:2,y:-6}),n+=T({x:2,y:6}),t.path=n,t.pixelPerfect=!0,t.padding(0,4,0,4),t.stroke=(new ae).getFor("alternativeText"),t.strokeOpacity=.7,e.icon=t,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"orientation",{set:function(e){var t=this.icon;t&&(t.rotation="horizontal"==e?0:-90)},enumerable:!0,configurable:!0}),i}(Xt);_.registeredClasses.ResizeButton=Yr;var gp=function(s){function i(){var e=s.call(this)||this;e.className="CloseButton",e.padding(8,8,8,8),e.showSystemTooltip=!0,e.width=30,e.height=30;var t=new ae;e.cursorOverStyle=He.pointer;var n=e.background;n.cornerRadius(20,20,20,20);var r=t.getFor("background");n.fill=r,n.stroke=t.getFor("primaryButton"),n.strokeOpacity=1,n.strokeWidth=1;var a=t.getFor("primaryButtonActive"),o=n.states.getKey("hover");o.properties.strokeWidth=3,o.properties.fill=r;var l=n.states.getKey("down");l.properties.stroke=a,l.properties.fill=r;var h=new $;return h.element=e.paper.add("path"),h.stroke=n.stroke,e.icon=h,e.applyTheme(),e}return w(i,s),i.prototype.validate=function(){s.prototype.validate.call(this);var e=this.pixelWidth/3,t=this.pixelHeight/3,n=E({x:-e/2,y:-t/2});n+=T({x:e/2,y:t/2}),n+=E({x:e/2,y:-t/2}),n+=T({x:-e/2,y:t/2}),this.icon.path=n,this.invalidateLayout()},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},i}(Xt);_.registeredClasses.CloseButton=gp;var yp=function(s){function i(){var e=s.call(this)||this;e.className="SwitchButton",e.tooltipY=0,e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0,e.states.create("active");var t=new ae,n=new $e;n.fillOpacity=.3,n.states.create("active").properties.fillOpacity=1,n.isActive=!0,e.leftLabel=n;var r=new Xt,a=new ii;r.contentValign="none",r.padding(0,0,0,0),a.radius=10,r.icon=a,r.icon.valign="middle",r.label=void 0;var o=F(100);r.background.cornerRadius(o,o,o,o),r.width=3.5*a.radius,r.height=2.1*a.radius,r.marginLeft=8,r.marginRight=8,r.togglable=!0,a.dx=.7*-a.radius,a.fill=t.getFor("primaryButton"),a.states.create("hover").properties.fill=t.getFor("primaryButtonHover");var l=a.states.create("active");l.properties.fill=t.getFor("primaryButtonActive"),l.properties.dx=.7*a.radius,e.switchButton=r,e.events.on("toggled",function(){e.leftLabel.isActive=!e.isActive,e.rightLabel.isActive=e.isActive});var h=new $e;return h.fillOpacity=.3,h.states.create("active").properties.fillOpacity=1,e.rightLabel=h,e.role="button",e.focusable=!0,h.valign="middle",n.valign="middle",r.valign="middle",e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(e){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(e){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switchButton",{get:function(){return this._switchButton},set:function(e){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=e,e&&(e.parent=this,e.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),e.leftLabel&&this.leftLabel.copyFrom(e.leftLabel),e.rightLabel&&this.rightLabel.copyFrom(e.rightLabel),e.switchButton&&this.switchButton.copyFrom(e.switchButton)},i}(W);_.registeredClasses.SwitchButton=yp;var En=function(s){function i(){var e=s.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=Qt,e.margin(10,10,10,10);var t=new ae,n=e.background;return n.cornerRadius(10,10,10,10),n.fill=t.getFor("fill"),n.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new Yr,e.endGrip=new Yr,e.events.on("transformed",function(){e.updateThumb()},e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",function(){e._previousStart=void 0,e.dispatchRangeChange()},void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),"horizontal"===this.orientation?(v(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),v(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),v(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),v(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(v(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),v(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),v(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),v(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},i.prototype.validateLayout=function(){this.updateSize(),s.prototype.validateLayout.call(this),this.updateExtremes()},i.prototype.processBackground=function(){s.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},i.prototype.handleBgHit=function(e){this.makeBusy();var t=e.spritePoint;t=Qe(t,this.background,this);var n=this.thumb;if("horizontal"==this.orientation){var r=t.x-n.pixelWidth/2;r=R(r,0,this.innerWidth-n.pixelWidth),this._thumbAnimation=n.animate({property:"x",to:r},this.animationDuration,this.animationEasing)}else{var a=t.y-n.pixelHeight/2;a=R(a,0,this.innerHeight-n.pixelHeight),this._thumbAnimation=n.animate({property:"y",to:a},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},i.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},i.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},i.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),1.1*this.animationDuration)},i.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},i.prototype.dispatchRangeChange=function(){this._previousEnd==this.end&&this._previousStart==this.start||(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},i.prototype.updateThumb=function(e){if(void 0===e&&(e=!0),this.parent){var t=this.thumb,n=this.start,r=this.end,a=this.startGrip,o=this.endGrip;if("horizontal"==this.orientation){var l=this.innerWidth;t.width=l*(r-n),t.maxX=l-t.pixelWidth,t.x=n*l,a.moveTo({x:t.pixelX,y:0},void 0,void 0,!0),o.moveTo({x:t.pixelX+t.pixelWidth,y:0},void 0,void 0,!0),a.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*n)+"%",position:n}).value),a.readerValueNow=""+Math.round(100*n),a.readerValueText=a.readerTitle,o.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*r)+"%",position:r}).value),o.readerValueNow=""+Math.round(100*r),o.readerValueText=o.readerTitle}else{var h=this.innerHeight;t.height=h*(r-n),t.maxY=h-t.pixelHeight,t.y=(1-r)*h,a.moveTo({x:0,y:t.pixelY+t.pixelHeight},void 0,void 0,!0),o.moveTo({x:0,y:t.pixelY},void 0,void 0,!0),a.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-n))+"%",position:1-n}).value),a.readerValueNow=""+Math.round(100*n),a.readerValueText=a.readerTitle,o.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-r))+"%",position:1-r}).value),o.readerValueNow=""+Math.round(100*r),o.readerValueText=o.readerTitle}t.readerTitle=this.language.translate("From %1 to %2",void 0,this.adapter.apply("positionValue",{value:Math.round(100*n)+"%",position:n}).value,this.adapter.apply("positionValue",{value:Math.round(100*r)+"%",position:r}).value),t.readerValueNow=""+Math.round(100*n),t.readerValueText=t.readerTitle,this.readerValueNow=""+Math.round(100*n),this.readerValueText=t.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&e&&this.dispatchRangeChange()}},i.prototype.updateExtremes=function(){var e=0,t=0,n=0,r=0;"horizontal"==this.orientation?(n=this.innerWidth,t=r=this.innerHeight/2):(r=this.innerHeight,e=n=this.innerWidth/2);var a=this.startGrip;a.minX=e,a.maxX=n,a.minY=t,a.maxY=r;var o=this.endGrip;o.minX=e,o.maxX=n,o.minY=t,o.maxY=r;var l=this.thumb;l.minX=e,l.maxX=n,l.minY=t,l.maxY=r},i.prototype.updateSize=function(){var e=this.orientation,t=this.startGrip;t&&(t.orientation=e),this.endGrip&&(this.endGrip.orientation=e);var n=this.thumb;n&&("horizontal"==e?(y(this._pixelWidth)||this.width instanceof te||(this.width=F(100)),v(this.percentHeight)&&(this.height=this.minHeight),n.height=this.innerHeight,n.verticalCenter="middle",n.horizontalCenter="left"):(y(this._pixelHeight)||this.height instanceof te||(this.height=F(100)),v(this.percentWidth)&&(this.width=this.minWidth),n.width=this.innerWidth,n.verticalCenter="top",n.horizontalCenter="middle"))},Object.defineProperty(i.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__start",{get:function(){return this._start},set:function(e){this._start=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__end=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__end",{get:function(){return this._end},set:function(e){this._end=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),i.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},i.prototype.fixRange=function(e){e.start==V(this._start,2)&&e.end==V(this._end,2)||(this._start=e.start,this._end=e.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},i.prototype.getPosition=function(e){return R(V(e,4),0,1)},Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&("horizontal"===e?(this.startGrip.cursorOverStyle=He.horizontalResize,this.endGrip.cursorOverStyle=He.horizontalResize):(this.startGrip.cursorOverStyle=He.verticalResize,this.endGrip.cursorOverStyle=He.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.updateByOrientation=function(){},Object.defineProperty(i.prototype,"startGrip",{get:function(){return this._startGrip},set:function(e){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endGrip",{get:function(){return this._endGrip},set:function(e){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),i.prototype.processGrip=function(e){e.parent=this,e.isMeasured=!1,e.focusable=!0,e.shouldClone=!1,e.zIndex=100,e.events.on("drag",this.handleGripDrag,this,!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("down",this.makeBusy,this,!1),e.events.on("up",this.makeUnbusy,this,!1),this._disposers.push(e)},i.prototype.handleGripDrag=function(e){this.makeBusy(),this._usingGrip=e.target===this._startGrip?"start":"end","horizontal"==this.orientation?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(i.prototype,"thumb",{get:function(){if(!this._thumb){var e=new Xt;e.background.cornerRadius(10,10,10,10),e.padding(0,0,0,0),this.thumb=e}return this._thumb},set:function(e){var t=this;e&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=e,e.parent=this,e.isMeasured=!1,e.inert=!0,e.draggable=!0,e.clickable=!0,e.hoverable=!0,e.focusable=!0,e.shouldClone=!1,e.zIndex=0,e.cursorOverStyle=He.grab,e.cursorDownStyle=He.grabbing,e.events.on("dragstart",this.makeBusy,this,!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("positionchanged",this.handleThumbPosition,this,!1),e.events.on("sizechanged",this.handleThumbPosition,this,!1),e.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(K().body.events.on("keyup",function(n){Ct.isKey(n.event,["space","enter"])&&t.thumb.isFocused&&(n.event.preventDefault(),t.handleDoubleClick())})),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),i.prototype.handleDoubleClick=function(){this.makeBusy();var e=0,t=1;0!=this.start||1!=this.end?(this._prevStart=this.start,this._prevEnd=this.end):(e=this._prevStart,t=this._prevEnd);var n=this.animate([{property:"__start",to:e},{property:"__end",to:t}],this.animationDuration,this.animationEasing);n&&!n.isFinished()?(n.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=n):this.makeUnbusy()},i.prototype.handleThumbPosition=function(){var e=this.thumb;if("horizontal"==this.orientation){var t=this.innerWidth,n=e.innerWidth,r=e.pixelX;this._start=r/t,this._end=(r+n)/t,this.updateThumb()}else{var a=this.innerHeight,o=e.innerHeight,l=e.pixelY;l+o>a&&(e.y=l=a-o),this._start=1-(l+o)/a,this._end=1-l/a,this.updateThumb()}},i.prototype.createBackground=function(){return new St},Object.defineProperty(i.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(e){var t=this;this._hideGrips=e,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),e?(this._overDisposer=this.events.on("over",function(){t.startGrip.show(),t.endGrip.show()},void 0,!1),this._outDisposer=this.events.on("out",function(){t.startGrip.hide(),t.endGrip.hide()},void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),i.prototype.asFunction=function(e){return"animationEasing"==e||s.prototype.asIs.call(this,e)},i}(W);_.registeredClasses.Scrollbar=En;var mp=function(s){function i(){var e=s.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y}),e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"__end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._start},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),i}(En);_.registeredClasses.Slider=mp;var zr=function(s){function i(){var e=s.call(this)||this;e.className="TextLink",e.selectable=!0;var t=new ae;return e.fill=t.getFor("primaryButton").brighten(.3),e.states.create("hover").properties.fill=t.getFor("primaryButtonHover").brighten(.3),e.states.create("down").properties.fill=t.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=He.pointer,e.applyTheme(),e}return w(i,s),i}($e);_.registeredClasses.TextLink=zr;var wi=function(s){function i(){var e=s.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new re,e.properties.filterUnits="objectBoundingBox",e.filterPrimitives.events.on("inserted",function(t){e._disposers.push(t.newValue)}),e.width=120,e.height=120,e.applyTheme(),e}return w(i,s),i.prototype.appendPrimitives=function(e){A(this.filterPrimitives.iterator(),function(t){e.add(t)})},i.prototype.animate=function(e,t,n){return new gt(this,e,t,n).start()},Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width},set:function(e){this.properties.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;s.prototype.copyFrom.call(this,e),X(e.properties,function(n,r){t[n]=r})},Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:Ui()},set:function(e){this._paper!=e&&(this._paper=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Yi(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scale",{get:function(){return this._scale},set:function(e){this._scale=e,this.updateScale()},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){},Object.defineProperty(i.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(e){this.properties.filterUnits=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(e){this._nonScaling=e,e||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{set:function(e){this.setSprite(e)},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.filters.removeValue(this),this._sprite=e},i}(Ke),Ja=function(s){function i(){var e=s.call(this)||this;return e.className="DropShadowFilter",e.color=B("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.feFlood&&this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feFlood.attr({"flood-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx",{get:function(){return this.properties.dx},set:function(e){this.properties.dx=e,this.feOffset.attr({dx:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy",{get:function(){return this.properties.dy},set:function(e){this.properties.dy=e,this.feOffset.attr({dy:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},i}(wi);_.registeredClasses.DropShadowFilter=Ja;var Rn=function(s){function i(){var e=s.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.fixDoc=!0,e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var t=e.background;t.interactionsEnabled=!1,t.fillOpacity=.9,t.strokeWidth=1,t.strokeOpacity=1,t.stroke=B("#ffffff"),t.cornerRadius=3,t.pointerLength=6,t.pointerBaseWidth=10;var n=new Ja;n.dy=1,n.dx=1,n.opacity=.5,t.filters.push(n),e.autoTextColor=!0;var r=e.createChild($e);return r.shouldClone=!1,e.label=r,r.padding(7,12,4,12),r.interactionsEnabled=!1,r.horizontalCenter="middle",r.fill=B("#ffffff"),e._disposers.push(r),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=Qt,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return w(i,s),i.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(i.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(e){this.setPropertyValue("getStrokeFromObject",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(e){this.setPropertyValue("autoTextColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(e){var t=this;this.setPropertyValue("keepTargetHover",e,!0)&&e&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",function(n){t.targetSprite&&t.targetSprite.hoverable&&(t.targetSprite.isHover=!0)})),this._disposers.push(this.events.on("out",function(n){t.targetSprite&&t.targetSprite.hoverable&&(t.targetSprite.isHover=!1)})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(e){this.setPropertyValue("showInViewport",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(e){this.setPropertyValue("getFillFromObject",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new up},Object.defineProperty(i.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(e){this.setPropertyValue("pointerOrientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.label.html},set:function(e){this.label.html!=e&&(this.label.html=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.label.text},set:function(e){this.label.text!=e&&(this.label.text=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var t,n,r=this._pointTo.x,a=this._pointTo.y,o=this._boundingRect,l=e.measuredWidth,h=e.measuredHeight,p=this.background.pointerLength;if(this.ignoreBounds&&(o=void 0),o&&this.fixDoc&&l>o.width){Tr({x:o.x,y:o.y},this.parent);var u=Tr({x:o.x+o.width,y:o.y+o.height},this.parent),d=document.body.offsetWidth;document,u.x>d/2?o.x=o.width-l:o.width=o.x+l}var c=this.pointerOrientation;"horizontal"==c||"left"==c||"right"==c?(n=-h/2,t="horizontal"==c?o&&r>o.x+o.width/2?-l/2-p:l/2+p:"left"==c?l/2+p:-l/2-p):(o&&(t=R(0,o.x-r+l/2,o.x-r+o.width-l/2)),"vertical"==c?o&&a>o.y+h+p?(n=-h-p,this._verticalOrientation="up"):(n=p,this._verticalOrientation="down"):"down"==c?(n=-h-p,this._verticalOrientation="up"):(n=p,this._verticalOrientation="down")),o&&(n=R(n,o.y-a,o.y+o.height-h-a)),e.x=t,e.y=n,this.drawBackground()},i.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},i.prototype.drawBackground=function(){var e=this.label,t=this.background,n=e.measuredWidth,a=this._boundingRect,o=n,h=e.measuredHeight,p=e.pixelY,c=a.x-this._pointTo.x,f=c+a.width,g=a.y-this._pointTo.y,m=g+a.height;t.x=e.pixelX-n/2,t.y=p,t.width=o,t.height=h,this.fitPointerToBounds?(t.pointerX=R(-t.x,c-t.x,f-t.x),t.pointerY=R(-t.y,g-t.y,m-t.y)):(t.pointerX=-t.x,t.pointerY=-t.y),t.validate()},i.prototype.delayedPointTo=function(e,t){var n=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=_.events.once("exitframe",function(){n.pointTo(e,t)}),this.addDisposer(this._pointToDisposer)},i.prototype.pointTo=function(e,t){this._pointTo.x==e.x&&this._pointTo.y==e.y||(this._pointTo=e,this.invalidate(),!this.visible||t?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):0==this.pixelX&&0==this.pixelY?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new gt(this,[{property:"x",to:e.x,from:this.pixelX},{property:"y",to:e.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},i.prototype.setBounds=function(e){var t=this._boundingRect;t.x==e.x&&t.y==e.y&&t.width==e.width&&t.height==e.height||(this._boundingRect=e,this.invalidate())},Object.defineProperty(i.prototype,"boundingContainer",{set:function(e){this._boundingContainer=e,e.events.on("sizechanged",this.updateBounds,this),e.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),i.prototype.updateBounds=function(){var e=this._boundingContainer,t=Dr({x:e.pixelX,y:e.pixelY,width:e.maxWidth,height:e.maxHeight},e);this.setBounds(t)},Object.defineProperty(i.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(e){this.setPropertyValue("ignoreBounds",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},i.prototype.asFunction=function(e){return"animationEasing"==e||s.prototype.asIs.call(this,e)},i}(W);_.registeredClasses.Tooltip=Rn;var Qa=function(s){function i(){var e=s.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=F(100),e.bottomSide=F(100),e.leftSide=F(100),e.rightSide=F(100),e.isMeasured=!1,e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight,n=xe(this.topSide,e),r=xe(this.bottomSide,e),a=xe(this.leftSide,t),o=xe(this.rightSide,t),l=(e-n)/2,h=(t-a)/2,p=e-(e-n)/2,u=(t-o)/2,d=e-(e-r)/2,c=t-(t-o)/2,f=(e-r)/2,g=t-(t-a)/2,m="",x="",b="",C="";if(v(this.horizontalNeck)){var S=this.horizontalNeck.value;m=T({x:e*S,y:Math.max(h,u)}),b=T({x:e*S,y:Math.min(c,g)})}if(v(this.verticalNeck)){var P=this.verticalNeck.value;x=T({x:Math.min(p,d),y:t*P}),C=T({x:Math.max(l,f),y:t*P})}var O=E({x:l,y:h})+m+T({x:p,y:u})+x+T({x:d,y:c})+b+T({x:f,y:g})+C;this.path=O},Object.defineProperty(i.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(e){this.setPercentProperty("topSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(e){this.setPercentProperty("bottomSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(e){this.setPercentProperty("leftSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(e){this.setPercentProperty("rightSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(e){this.setPropertyValue("horizontalNeck",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(e){this.setPropertyValue("verticalNeck",e,!0)},enumerable:!0,configurable:!0}),i}($);_.registeredClasses.Trapezoid=Qa;var Ur=function(s){function i(){var e=s.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e,t=this.pixelWidth,n=this.pixelHeight;switch(this.direction){case"right":e=E({x:0,y:0})+T({x:t,y:n/2})+T({x:0,y:n})+" Z";break;case"left":e=E({x:t,y:0})+T({x:0,y:n/2})+T({x:t,y:n})+" Z";break;case"bottom":e=E({x:0,y:0})+T({x:t,y:0})+T({x:t/2,y:n})+" Z";break;case"top":e=E({x:t/2,y:0})+T({x:t,y:n})+T({x:0,y:n})+" Z"}this.path=e},Object.defineProperty(i.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(e){this.setPropertyValue("direction",e,!0)},enumerable:!0,configurable:!0}),i}($);_.registeredClasses.Triangle=Ur;var zt=function(){function s(i,e){this._tensionX=i,this._tensionY=e}return s.prototype.smooth=function(i){for(var e=i.length-1;e>0;e--){var t=i[e],n=i[e-1];Math.abs(t.x-n.x)<.1&&Math.abs(t.y-n.y)<.1&&i.splice(e-1,1)}var r=this._tensionX,a=this._tensionY;if(i.length<3||r>=1&&a>=1)return Zi(i);var o=i[0],l=i[i.length-1],h=!1;V(o.x,3)==V(l.x)&&V(o.y)==V(l.y)&&(h=!0);for(var p="",u=(e=0,i.length-1);e0){var d=Math.atan2(h-o,l-a),c=Math.cos(d),f=Math.sin(d),g=e*c,m=e*f;if(e<=1||t<=1)u=T(i);else{var x=Math.round(2*p/e),b=[],C=1;l0&&(e=E((n=this.getPoints(t))[0])+new zt(this.tension,this.tension).smooth(n));var n,r=this.pixelInnerRadius;r>0&&((n=this.getPoints(r)).reverse(),e+=E(n[0])+new zt(this.tension,this.tension).smooth(n)),this.path=e},i.prototype.getPoints=function(e){for(var t=e*Math.PI*2,n=this.waveHeight/2,r=t/Math.round(t/this.waveLength),a=r/2,o=[],l=t/r,h=0;h<=l;h++){var p=h*r/t*360,u=(h*r+a)/t*360;o.push({x:(e-n)*L(p),y:(e-n)*M(p)}),o.push({x:(e+n)*L(u),y:(e+n)*M(u)})}return o.pop(),o},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return xe(this.innerRadius,ie(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),i}(ii);_.registeredClasses.WavedCircle=Hn;var si=function(s){function i(){var e=s.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=B(),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){var e={x:this.x1,y:this.y1},t={x:this.x2,y:this.y2};this.path=E(e)+Bn(e,t,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),i}(yt),eo=function(s){function i(){var e=s.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight;if(e>0&&t>0){var n={x:0,y:0},r={x:e,y:0},a={x:e,y:t},o={x:0,y:t},l=Math.min(e,this.waveLength),h=Math.min(t,this.waveHeight),p=Math.min(t,this.waveLength),u=Math.min(e,this.waveHeight),d="",c="",f="",g="";this.wavedTop&&(d=Bn(n,r,l,h,this.tension,!0)),this.wavedRight&&(c=Bn(r,a,p,u,this.tension,!0)),this.wavedBottom&&(f=Bn(a,o,l,h,this.tension,!0)),this.wavedLeft&&(g=Bn(o,n,p,u,this.tension,!0)),this.path=E(n)+d+T(r)+c+T(a)+f+T(o)+g+"z"}},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.setWavedSides=function(e,t,n,r){this.wavedTop=e,this.wavedRight=t,this.wavedBottom=n,this.wavedLeft=r},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(e){this.setPropertyValue("wavedRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(e){this.setPropertyValue("wavedLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(e){this.setPropertyValue("wavedTop",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(e){this.setPropertyValue("wavedBottom",e,!0)},enumerable:!0,configurable:!0}),i}(Mn),to=function(s){function i(){var e=s.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var t=new ae,n=e.background;n.cornerRadius(20,20,20,20),n.fill=t.getFor("primaryButton"),n.stroke=t.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=t.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=t.getFor("primaryButtonActive");var r=new $;r.element=e.paper.add("path");var a=E({x:0,y:0});return a+=T({x:11,y:0}),r.path=a,r.pixelPerfect=!0,r.padding(8,3,8,3),r.stroke=t.getFor("primaryButtonText"),e.icon=r,e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},i}(Xt);_.registeredClasses.ZoomOutButton=to;var Cp=function(s){function i(){var e=s.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var t=new ae,n=e.background;n.cornerRadius(25,25,25,25),n.fill=t.getFor("primaryButton"),n.stroke=t.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=t.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=t.getFor("primaryButtonActive");var r=new Ur;r.direction="right",r.width=9,r.height=11,r.marginLeft=1,r.marginRight=1,r.horizontalCenter="middle",r.verticalCenter="middle",r.stroke=t.getFor("primaryButtonText"),r.fill=r.stroke,e.icon=r;var a=new St;a.width=11,a.height=11,a.horizontalCenter="middle",a.verticalCenter="middle",a.cornerRadius(0,0,0,0),a.stroke=t.getFor("primaryButtonText"),a.fill=r.stroke,e.togglable=!0;var o=e.states.create("active");return o.transitionDuration=0,o.properties.icon=a,e.defaultState.transitionDuration=0,e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},i}(Xt);_.registeredClasses.PlayButton=Cp;var io=function(s){function i(){var e=s.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return w(i,s),i.prototype.modify=function(e){return e},i}(Ke);_.registeredClasses.ColorModifier=io;var no=function(s){function i(){var e=s.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(e){this._lightnesses=e,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(e){this._brightnesses=e,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacities",{get:function(){return this._opacities},set:function(e){this._opacities=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"offsets",{get:function(){return this._offsets},set:function(e){this._offsets=e},enumerable:!0,configurable:!0}),i.prototype.modify=function(e){this.gradient.clear();var t=0;this.opacities&&(t=q(t,this.opacities.length)),this.lightnesses&&(t=q(t,this.lightnesses.length)),this.brightnesses&&(t=q(t,this.brightnesses.length));for(var n,r,a=1,o=0;o0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,t=this.arc,n=this.pixelInnerRadius||0,r=this.radiusY||0,a=this.radius,o=e+t,l=r/a*n,h={x:L(e)*n,y:M(e)*l},p={x:L(e)*a,y:M(e)*r},u={x:L(o)*a,y:M(o)*r},d={x:L(o)*n,y:M(o)*l},c=this.depth,f={x:h.x,y:h.y-c},g={x:p.x,y:p.y-c},m={x:u.x,y:u.y-c},x={x:d.x,y:d.y-c},b="",C=Math.ceil(t/5),S=t/C,P=e,O=g,I=0;I0&&P<180){b+=E(O);var k={x:L(P)*a,y:M(P)*r-c};b+=T({x:O.x,y:O.y+c}),b+=ot({x:k.x,y:k.y+c},a,r,!0),b+=T(k),b+=ot(O,a,r),b+="z",O=k}else b+=E(O),b+=ot(k={x:L(P)*a,y:M(P)*r-c},a,r,!0),b+=T({x:k.x,y:k.y+c}),b+=ot({x:O.x,y:O.y+c},a,r),b+=T(O),b+="z",O=k;for(O=f,P=e,I=0;I0&&P<180?(b+=E(O),k={x:L(P)*n,y:M(P)*l-c},b+=T({x:O.x,y:O.y+c}),b+=ot({x:k.x,y:k.y+c},n,l,!0),b+=T(k),b+=ot(O,n,l),b+="z",O=k):(b+=E(O),b+=ot(k={x:L(P)*n,y:M(P)*l-c},n,l,!0),b+=T({x:k.x,y:k.y+c}),b+=ot({x:O.x,y:O.y+c},n,l),b+=T(O),b+="z",O=k);this.edge.path=b,this.sideA.path=E(h)+T(p)+T(g)+T(f)+" Z",this.sideB.path=E(u)+T(d)+T(x)+T(m)+" Z",this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-c}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){var e=this.getPropertyValue("angle");return y(e)||(e=0),e},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return y(e)||(e=this.radius-this.radius*this.angle/90),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)},i}(ri),Dp=function(s){function i(){var e=s.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new Nt,e.applyTheme(),e}return w(i,s),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},i}(no);_.registeredClasses.RadialGradientModifier=Dp;var ro=function(s){function i(){var e=s.call(this)||this;return e.properties.gap=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return w(i,s),i.prototype.draw=function(){if(s.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var e=this.width,t=this.height,n="";if(this.gap)for(var r=this.gap+this.strokeWidth,a=this.height/r,o=-a/2;o<1.5*a;o++)Math.round(this.rotation/90)!=this.rotation/90?(n+=E({x:-e,y:(o+.5)*r})+T({x:2*e,y:(o+.5)*r}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n+=E({x:-e,y:o*r})+T({x:2*e,y:o*r});else Math.round(this.rotation/90)!=this.rotation/90?(n=E({x:-e,y:t/2})+T({x:2*e,y:t/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n=E({x:0,y:0})+T({x:e,y:0});this._line.attr({d:n})}},Object.defineProperty(i.prototype,"gap",{get:function(){return this.properties.gap},set:function(e){this.properties.gap=e,this.draw()},enumerable:!0,configurable:!0}),i}(xi);_.registeredClasses.LinePattern=ro;var so=function(s){function i(){var e=s.call(this)||this;return e.properties.radius=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e.shapeRendering="auto",e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.properties.radius},set:function(e){this.properties.radius=e,this.draw()},enumerable:!0,configurable:!0}),i}(xi);_.registeredClasses.CirclePattern=so;var ao=function(s){function i(){var e=s.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(i.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(e){this.properties.rectWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(e){this.properties.rectHeight=e,this.draw()},enumerable:!0,configurable:!0}),i}(xi);_.registeredClasses.RectPattern=ao;var Tp=function(s){function i(){var e=s.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return w(i,s),i.prototype.applyFilter=function(){var e,t,n,r=this.intensity,a=1-r,o=this.color;o&&o.rgb?(e=o.rgb.r/255*r,t=o.rgb.g/255*r,n=o.rgb.b/255*r):(e=0,t=0,n=0),this.feColorMatrix.attr({values:a+" 0 0 0 "+e+" 0 "+a+" 0 0 "+t+" 0 0 "+a+" 0 "+n+" 0 0 0 1 0"})},Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(e){this.properties.intensity=e,this.applyFilter()},enumerable:!0,configurable:!0}),i}(wi);_.registeredClasses.ColorizeFilter=Tp;var Wn=function(s){function i(){var e=s.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(e){this.properties.saturation=e,this.feColorMatrix.attr({values:e.toString()})},enumerable:!0,configurable:!0}),i}(wi);_.registeredClasses.DesaturateFilter=Wn;var kp=function(s){function i(){var e=s.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),i}(wi);_.registeredClasses.BlurFilter=kp;var Ap=function(s){function i(){var e=s.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":(new ae).getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.feMorphology.attr({radius:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+e+" 0"})},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),s.prototype.setSprite.call(this,e)},i}(wi),$i=function(s){function i(){var e=s.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new se({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.getReusableColor=function(e){if(0==this._list.length)return this.generate(1),this.list[0];var t=e-Math.floor(e/this._list.length)*this.list.length;return this.list[t]},i.prototype.next=function(){var e;return this.list.length<=this._currentStep?this.reuse?e=this.getReusableColor(this._currentStep):(this.generate(q(this.minColors,this._currentStep+1)),e=this.list[this._currentStep]):e=this.list[this._currentStep],this._currentStep+=this.step,e.saturate(this.saturation)},i.prototype.getIndex=function(e){var t;return this.list.length<=e?this.reuse?t=this.getReusableColor(e):(this.generate(this.minColors),t=this.getIndex(e)):t=this.list[e],t.saturate(this.saturation)},i.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(i.prototype,"currentStep",{get:function(){return this._currentStep},set:function(e){this._currentStep=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return this._startIndex},set:function(e){this._startIndex=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.generate=function(e){var t=bn(be(this.currentColor.rgb)),n=v(this.stepOptions.hue)?this.stepOptions.hue:1/e,r={brighten:0,lighten:0,hue:t.h,lightness:t.l,saturation:t.s},a=[],o=0==this.list.length?0:1;if(this.reuse)for(var l=o;l<=e;l++)a.push(bn(be(this._list[l].rgb)).h);else for(l=o;l<=e;l++){var h=t.h+n*l;this.wrap&&h>1&&(h-=1),a.push(h)}for(this.shuffle&&a.sort(function(c,f){return Math.random()-.5}),l=0;l1?e.l=e.l-Math.floor(e.l):e.l<0&&(e.l=-(e.l-Math.floor(e.l))),e.l=Ir(e.l,this.minLightness,this.maxLightness)):(e.l>1?e.l=1:e.l<0&&(e.l=0),e.l=Sr(e.l,this.minLightness,this.maxLightness))},i.prototype.processConfig=function(e){if(e){if(v(e.list)&&Ae(e.list))for(var t=0,n=e.list.length;t=0){_.queue.splice(_.queue.indexOf(s),1);var e=_.queue[i];e&&Mp(e)}}function Ci(s){s.__disabled&&La(s.htmlContainer,Z.viewportTarget)&&(s.vpDisposer&&s.vpDisposer.dispose(),oo(s))}function Mp(s){s&&s.tooltipContainer&&(s.__disabled=!1,s.tooltipContainer.__disabled=!1,s.events.enableType("appeared"),s.dispatch("removedfromqueue"),s.showOnInit&&s.events.on("appeared",function(){Kr(s)}),s.vpDisposer&&s.vpDisposer.dispose(),s instanceof W&&s.invalidateLabels(),s.tooltipContainer&&s.tooltipContainer.invalidateLayout(),s instanceof ti?(s.invalidateData(),s.reinit(),s.events.once("datavalidated",function(){s.showOnInit?s.appear():Kr(s)})):(s.reinit(),s.events.once("inited",function(){Kr(s)}),s.showOnInit&&s.appear()))}function wd(s,i){var e;J(i)&&(v(_.registeredClasses[i])?i=_.registeredClasses[i]:(i=_.registeredClasses.Container,e=new Error("Class ["+i+"] is not loaded.")));var t=Fp(s,i);return e&&t.raiseCriticalError(e),t}function Cd(s,i,e){var t,n;v(e)||(e=s.type,delete s.type),v(i)||(i=s.container,delete s.container),J(e)&&v(_.registeredClasses[e])?t=_.registeredClasses[e]:"function"!=typeof e?(t=W,n=new Error("Class ["+e+"] is not loaded.")):t=e;var r=Fp(i,t);return n?r.raiseCriticalError(n):r.config=s,r}function Od(s,i){for(var e=[],t=2;t10&&(e.properties.paddingLeft=10),s.pixelPaddingRight>10&&(e.properties.paddingRight=10),e}return null}}),Ne.push({relevant:Ue.heightXS,state:function(s,i){if(s instanceof ai){var e=s.states.create(i);return s.pixelPaddingTop>10&&(e.properties.paddingTop=10),s.pixelPaddingBottom>10&&(e.properties.paddingBottom=10),e}return null}}),Ne.push({relevant:Ue.widthXXS,state:function(s,i){if(s instanceof ai){var e=s.states.create(i);return e.properties.paddingLeft=0,e.properties.paddingRight=0,e}return null}}),Ne.push({relevant:Ue.heightXXS,state:function(s,i){if(s instanceof ai){var e=s.states.create(i);return e.properties.paddingTop=0,e.properties.paddingBottom=0,e}return null}});var It=function(s){function i(){var e=s.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){if(this.setPropertyValue("locationX",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){if(this.setPropertyValue("locationY",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(e){this.setPropertyValue("xField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(e){this.setPropertyValue("yField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(e){this.setPropertyValue("isDynamic",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(e){this.setPropertyValue("copyToLegendMarker",e)},enumerable:!0,configurable:!0}),i}(W);_.registeredClasses.Bullet=It,Ne.push({relevant:Ue.isXS,state:function(s,i){if(s instanceof It){var e=s.states.create(i);return e.properties.disabled=!0,e}return null}});var jp=function(s){function i(){var e=s.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"label",{get:function(){var e=this;if(!this._label){var t=this.component.labels.create();this._label=t,this.addSprite(t),this._disposers.push(t),t.parent=this.itemContainer,this._disposers.push(new le(function(){v(e.component)&&e.component.labels.removeValue(t)}))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueLabel",{get:function(){var e=this;if(!this._valueLabel){var t=this.component.valueLabels.create();this._valueLabel=t,this.addSprite(t),this._disposers.push(t),t.parent=this.itemContainer,this._disposers.push(new le(function(){v(e.component)&&e.component.valueLabels.removeValue(t)}))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemContainer",{get:function(){var e=this;if(!this._itemContainer){var t=this.component,n=t.itemContainers.create();n.parent=t,this._itemContainer=n,this.addSprite(n),this._disposers.push(n),n.togglable&&n.events.on("toggled",function(o){t.toggleDataItem(o.target.dataItem)},void 0,!1),n.focusable&&(n.events.on("hit",function(o){t.focusedItem=void 0},void 0,!1),n.events.on("focus",function(o){t.focusedItem=o.target.dataItem},void 0,!1),n.events.on("blur",function(o){t.focusedItem=void 0},void 0,!1)),this._disposers.push(new le(function(){v(e.component)&&e.component.itemContainers.removeValue(n)})),this.dataContext.uidAttr&&(n.readerControls=this.dataContext.uidAttr(),n.readerLabelledBy=this.dataContext.uidAttr());var r=this.dataContext;if((r instanceof ei||r instanceof $)&&!r.isDisposed()){var a=function(o){n.readerChecked=o.visible,n.events.disableType("toggled"),n.isActive=!o.visible,n.events.enableType("toggled")};r.addDisposer(new le(function(){e.component&&e.component.dataItems.remove(e)})),r instanceof $?(n.addDisposer(r.events.on("visibilitychanged",a,void 0,!1)),n.addDisposer(r.events.on("hidden",function(o){n.readerChecked=!1,n.events.disableType("toggled"),n.isActive=!0,n.events.enableType("toggled")},void 0,!1)),n.addDisposer(r.events.on("shown",function(o){n.readerChecked=!0,n.events.disableType("toggled"),n.isActive=!1,n.events.enableType("toggled")},void 0,!1))):n.addDisposer(r.events.on("visibilitychanged",a,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marker",{get:function(){var e=this;if(!this._marker){var t=this.component.markers.create();this._marker=t,t.parent=this.itemContainer,this.addSprite(t),this._disposers.push(t),this._disposers.push(new le(function(){v(e.component)&&e.component.markers.removeValue(t)}))}return this._marker},enumerable:!0,configurable:!0}),i}(ei),po=function(){this.createMarker=!0},Xn=function(s){function i(){var e=s.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var t=new W;t.applyOnClones=!0,t.padding(8,0,8,0),t.margin(0,10,0,10),t.layout="horizontal",t.clickable=!0,t.focusable=!0,t.role="switch",t.togglable=!0,t.cursorOverStyle=He.pointer,t.background.fillOpacity=0,e.itemContainers=new Oe(t),e._disposers.push(new fe(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(K().body.events.on("keyup",function(p){if(Ct.isKey(p.event,"enter")&&e.focusedItem){var u=e.focusedItem,d=u.itemContainer;d.togglable?e.toggleDataItem(u):d.clickable&&d.events.isEnabled("hit")&&(d.dispatchImmediately("hit",{event:p}),e.focusedItem=u)}},e));var n=new ae,r=new W;r.width=23,r.height=23,r.interactionsEnabled=!1,r.applyOnClones=!0,r.setStateOnChildren=!0,r.background.fillOpacity=0,r.background.strokeOpacity=0,r.propertyFields.fill="fill",r.valign="middle";var a=n.getFor("disabledBackground");r.events.on("childadded",function(p){var u=p.newValue.states.create("active");u.properties.stroke=a,u.properties.fill=a}),e.markers=new Oe(r),e._disposers.push(new fe(e.markers)),e._disposers.push(e.markers.template);var o=r.createChild(St);o.width=F(100),o.height=F(100),o.applyOnClones=!0,o.propertyFields.fill="fill",o.strokeOpacity=0;var l=new $e;l.text="{name}",l.margin(0,5,0,5),l.valign="middle",l.applyOnClones=!0,l.states.create("active").properties.fill=n.getFor("disabledBackground"),e.labels=new Oe(l),e._disposers.push(new fe(e.labels)),e._disposers.push(e.labels.template),l.interactionsEnabled=!1,l.truncate=!0,l.fullWords=!1;var h=new $e;return h.margin(0,5,0,0),h.valign="middle",h.width=50,h.align="right",h.textAlign="end",h.applyOnClones=!0,h.states.create("active").properties.fill=n.getFor("disabledBackground"),h.interactionsEnabled=!1,e.valueLabels=new Oe(h),e._disposers.push(new fe(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",t.states.create("active"),t.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},i.prototype.createDataItem=function(){return new jp},i.prototype.validateDataElements=function(){this.scrollbar&&(this.scrollbar.start=0,this.scrollbar.end=1),s.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(e){s.prototype.validateDataElement.call(this,e);var t=e.itemContainer,n=e.marker,r=e.valueLabel;t.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var a=e.label.maxWidth;e.label.width instanceof te||(e.label.width=void 0),a>0&&(e.label.maxWidth=a),"right"==r.align&&(r.width=void 0);var o=e.dataContext.legendSettings,l=e.dataContext;!l.createLegendMarker||this.useDefaultMarker&&l instanceof $?this.markers.template.propertyFields.fill=void 0:e.childrenCreated||(l.createLegendMarker(n),e.childrenCreated=!0),l.updateLegendValue&&l.updateLegendValue(),l.component&&l.component.updateLegendValue&&l.component.updateLegendValue(l),r.invalid&&r.validate(),r.__disabled=""==r.text||null==r.text,!o||null==o.itemValueText&&null==o.valueText||(r.__disabled=!1);var h=e.dataContext.visible;void 0===h&&(h=!0),h=ve(h),e.dataContext.visible=h,t.events.disableType("toggled"),t.isActive=!h,t.setState(t.isActive?"active":"default",0),t.events.enableType("toggled")},i.prototype.afterDraw=function(){var e=this,t=this.getPropertyValue("maxWidth"),n=0;this.labels.each(function(u){u.invalid&&(u.maxWidth=void 0,u.validate()),u.measuredWidth+u.pixelMarginLeft+u.pixelMarginRight>n&&(n=u.measuredWidth+u.pixelMarginLeft+u.pixelMarginRight)});var r=0;this.valueLabels.each(function(u){u.invalid&&u.validate(),u.measuredWidth+u.pixelMarginLeft+u.pixelMarginRight>r&&(r=u.measuredWidth+u.pixelMarginLeft+u.pixelMarginRight)});var a=0;this.markers.each(function(u){u.invalid&&u.validate(),u.measuredWidth+u.pixelMarginLeft+u.pixelMarginRight>a&&(a=u.measuredWidth+u.pixelMarginLeft+u.pixelMarginRight)});var o,l=this.itemContainers.template,h=l.pixelMarginRight+l.pixelMarginLeft,p=n+r+a;y(t)?((t-=h)>p&&(t=p),o=t-a-r):o=n,this.labels.each(function(u){("right"==e.valueLabels.template.align||u.measuredWidth>o)&&(u.width instanceof te||(u.width=Math.min(u.maxWidth,o-u.pixelMarginLeft-u.pixelMarginRight),u.maxWidth=u.width))}),"right"==this.valueLabels.template.align&&this.valueLabels.each(function(u){u.width=r-u.pixelMarginRight-u.pixelMarginLeft}),s.prototype.afterDraw.call(this)},i.prototype.handleScrollbar=function(){var e=this.scrollbar;this.scrollable&&e&&(e.height=this.measuredHeight,e.x=this.measuredWidth-e.pixelWidth-e.pixelMarginLeft,this.contentHeight>this.measuredHeight?(e.visible=!0,e.thumb.height=e.height*this.measuredHeight/this.contentHeight,this.paddingRight=e.pixelWidth+e.pixelMarginLeft+ +e.pixelMarginRight):e.visible=!1,e.handleThumbPosition(),this.updateMasks())},Object.defineProperty(i.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(e){this.setPropertyValue("position",e)&&("left"==e||"right"==e?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",y(this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=F(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(e){this.setPropertyValue("useDefaultMarker",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")},set:function(e){if(this.setPropertyValue("scrollable",e,!0))if(e){var t=this.createChild(En);this.scrollbar=t,t.isMeasured=!1,t.orientation="vertical",t.endGrip.__disabled=!0,t.startGrip.__disabled=!0,t.visible=!1,t.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(t.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(e){var t=e.shift.y,n=this.scrollbar;if(n){var r=t/1e3*this.measuredHeight/this.contentHeight,a=n.end-n.start;t>0?(n.start=q(0,n.start-r),n.end=n.start+a):(n.end=ie(1,n.end-r),n.start=n.end-a)}},i.prototype.updateMasks=function(){var e=this;this.scrollbar&&this.itemContainers.each(function(t){t.dy=-e.scrollbar.thumb.pixelY*e.contentHeight/e.measuredHeight,t.maskRectangle={x:0,y:-t.dy,width:e.measuredWidth,height:e.measuredHeight}})},i.prototype.toggleDataItem=function(e){var t=e.dataContext;!t.visible||t.isHiding||t instanceof $&&t.isHidden?(e.color=e.colorOrig,t.appeared=!0,e.itemContainer.isActive=!1,!0===t.hidden&&(t.hidden=!1),t.show?t.show():t.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,e.label.readerTitle))):(e.itemContainer.isActive=!0,t.appeared=!0,t.hide?t.hide():t.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,e.label.readerTitle)),e.color=(new ae).getFor("disabledBackground"))},Object.defineProperty(i.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.handleDataItemPropertyChange=function(e,t){e.valueLabel.invalidate(),e.label.invalidate()},i}(ti);_.registeredClasses.Legend=Xn,Ne.push({relevant:Ue.widthXS,state:function(s,i){if(s instanceof Xn&&("left"==s.position||"right"==s.position)){var e=s.states.create(i);return e.properties.position="bottom",e}return null}}),Ne.push({relevant:Ue.heightXS,state:function(s,i){if(s instanceof Xn&&("top"==s.position||"bottom"==s.position)){var e=s.states.create(i);return e.properties.position="right",e}return null}}),Ne.push({relevant:Ue.isXS,state:function(s,i){if(s instanceof Xn){var e=s.states.create(i);return e.properties.disabled=!0,e}return null}});var Yn=function(s){function i(){var e=s.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new me,this._disposers.push(new Jt(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.bullets.clear(),s.prototype.dispose.call(this)},Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),i}(ei),zn=function(s){function i(){var e=s.call(this)||this;if(e._ignoreMinMax=!1,e._showBullets=!0,e.legendSettings=new po,e._tmin=new me,e._tmax=new me,e._smin=new me,e._smax=new me,e.dataItemsByAxis=new me,e.skipFocusThreshold=20,e._itemReaderTextChanged=!1,e.calculatePercent=!1,e.usePercentHack=!0,e.autoDispose=!0,e.simplifiedProcessing=!1,e.constructor===i)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");e.className="Series",e.isMeasured=!1,e.layout="none",e.shouldClone=!1,e.setPropertyValue("hidden",!1),e.axisRanges=new re,e.axisRanges.events.on("inserted",e.processAxisRange,e,!1),e.minBulletDistance=0,e.mainContainer=e.createChild(W),e.mainContainer.shouldClone=!1,e.mainContainer.mask=e.createChild($),e._disposers.push(e.mainContainer);var t=e.mainContainer.createChild(W);return e._shouldBeReady.push(t),t.shouldClone=!1,t.layout="none",t.virtualParent=e,e._disposers.push(t),e.bulletsContainer=t,e.tooltip=new Rn,e.tooltip.virtualParent=e,e._disposers.push(e.tooltip),e.hiddenState.transitionEasing=Ta,e.dataItem=e.createDataItem(),e._disposers.push(e.dataItem),e.dataItem.component=e,e.role="group",e.applyTheme(),e}return w(i,s),i.prototype.applyTheme=function(){s.prototype.applyTheme.call(this),Z.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},i.prototype.createDataItem=function(){return new Yn},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){},i.prototype.processBullet=function(e){var t=this,n=e.newValue;n.isTemplate=!0,this.events.once("datavalidated",function(r){t.itemsFocusable()&&(n.focusable=!0)}),this.invalidate()},i.prototype.removeBullet=function(e){var t=e.oldValue;this.dataItems.each(function(n){var r=n.bullets.getKey(t.uid);r&&r.dispose()}),this.invalidate()},i.prototype.validateDataItems=function(){s.prototype.validateDataItems.call(this),this.processValues(!1)},i.prototype.getFirstValue=function(e,t){for(var n=t;n>=0;n--){var r=this.dataItems.getIndex(n).getActualWorkingValue(e);if(y(r))return r}return null},i.prototype.getAbsoluteFirstValue=function(e){for(var t=0;t0){var x=n.getIndex(g-1);X(x.values,function(I,k){var D=x.getActualWorkingValue(I);y(D)&&(d[I]=D)})}for(var b=function(I){var k=n.getIndex(I);X(k.values,function(D,G){var H=k.getActualWorkingValue(D);if(y(H)){y(r[D])||(r[D]=0),r[D]++,y(a[D])||(a[D]=0),a[D]+=H,y(o[D])||(o[D]=0),o[D]+=Math.abs(H),y(p[D])||(p[D]=H),u[D]=H,y(l[D])?l[D]>H&&(l[D]=H):l[D]=H,y(h[D])?h[D]0?(t.usePercentHack&&H==G&&(G=k.values[D].value),k.setCalculatedValue(D,H/G*100,"percent")):k.setCalculatedValue(D,0,"percent"))})};for(C=g;C0){var P=n.getIndex(g-1);X(P.values,function(I){var k=P.values[I].value;P.setCalculatedValue(I,k-p[I],"change"),P.setCalculatedValue(I,(k-p[I])/p[I]*100,"changePercent")})}var O=this.dataItem;X(O.values,function(I){O.setCalculatedValue(I,a[I],"sum"),O.setCalculatedValue(I,o[I],"absoluteSum"),O.setCalculatedValue(I,a[I]/r[I],"average"),O.setCalculatedValue(I,p[I],"open"),O.setCalculatedValue(I,u[I],"close"),O.setCalculatedValue(I,l[I],"low"),O.setCalculatedValue(I,h[I],"high"),O.setCalculatedValue(I,r[I],"count")})}},i.prototype.validate=function(){Xi()&&this.filters.clear(),A(this.axisRanges.iterator(),function(r){r.validate()}),s.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var t=0;tthis.endIndex;t--){var n;(n=this.dataItems.getIndex(t))&&n.bullets.each(function(r,a){a.__disabled=!0})}}else this.bulletsContainer.children.each(function(r){r.__disabled=!0});this.updateTooltipBounds()},i.prototype.updateTooltipBounds=function(){this.topParent&&this.tooltip.setBounds({x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight})},i.prototype.shouldCreateBullet=function(e,t){return!0},i.prototype.validateDataElement=function(e){var t=this;s.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each(function(n){var r=e.bullets.getKey(n.uid);if(t.shouldCreateBullet(e,n)){if(!r){var a=n.propertyFields.disabled,o=e.dataContext;a&&o&&!1===o[a]?(n.applyOnClones=!1,n.disabled=!1,r=n.clone(),n.disabled=!0,n.applyOnClones=!0):r=n.clone(),r.shouldClone=!1,e.addSprite(r),t.visible&&!t.isHiding||r.hide(0)}var l=r.dataItem;if(l!=e){l&&l.bullets.setKey(n.uid,void 0);var h=t.itemReaderText;r instanceof It&&(h||(h="{"+r.xField+"}: {"+r.yField+"}"),r.isDynamic&&(e.events.on("workingvaluechanged",r.deepInvalidate,r,!1),t.dataItem.events.on("workingvaluechanged",r.deepInvalidate,r,!1)),r.deepInvalidate()),r.focusable&&(r.events.on("focus",function(p){r.readerTitle=t.populateString(h,r.dataItem)},void 0,!1),r.events.on("blur",function(p){r.readerTitle=""},void 0,!1)),r.hoverable&&(r.events.on("over",function(p){r.readerTitle=t.populateString(h,r.dataItem)},void 0,!1),r.events.on("out",function(p){r.readerTitle=""},void 0,!1))}r.parent=t.bulletsContainer,e.bullets.setKey(n.uid,r),r.maxWidth=e.itemWidth,r.maxHeight=e.itemHeight,r.__disabled=!1,t.positionBullet(r)}else r&&(r.__disabled=!0)})):this.bulletsContainer.visible=!1},i.prototype.handleDataItemWorkingValueChange=function(e,t){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){this._ignoreMinMax=e,this.invalidateDataItems()},enumerable:!0,configurable:!0}),i.prototype.createMask=function(){},i.prototype.processAxisRange=function(e){this.rangesContainer||(this.rangesContainer=this.createChild(W),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var t=e.newValue;t&&(t.contents.parent=this.rangesContainer,t.isRange=!0,t.events.on("valuechanged",this.invalidateDataItems,this,!1))},i.prototype.getAxisField=function(e){},i.prototype.showTooltipAtPosition=function(e,t){},Object.defineProperty(i.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(e){this.setPropertyValue("minBulletDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new Oe(new It),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new fe(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){},Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(e){this.setPropertyValue("hiddenInLegend",e)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e);var t=this.legendDataItem;t&&(t.component.invalidate(),t.component.invalidateRawData()),this.readerTitle=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemReaderText",{get:function(){var e=this._itemReaderText;return e||(this.tooltipText?e=Cr(this.tooltipText):this.tooltipHTML&&(e=Cr(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",e):e},set:function(e){this._itemReaderText=e,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),i.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e,t){if(this.legendDataItem){var n=this.legendSettings,r=this.legendDataItem,a=r.label,o=r.valueLabel;e&&!e.isDisposed()||t?(o&&(n.itemValueText&&(o.text=n.itemValueText),o.dataItem=e),a&&(n.itemLabelText&&(a.text=n.itemLabelText),a.dataItem=e)):(a&&((n.labelText||null!=n.itemLabelText)&&(a.text=n.labelText),a.dataItem=this.dataItem),o&&((n.valueText||null!=n.itemValueText)&&(o.text=n.valueText),o.dataItem=this.dataItem))}},i.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,s.prototype.copyFrom.call(this,e)},i.prototype.raiseCriticalError=function(e){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",e).message,this._chart.modal.closable=!1,Z.suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),Z.verbose&&console.log(e)},i.prototype.applyFilters=function(){var e=this;s.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),A(this.filters.iterator(),function(t){e.bulletsContainer.filters.push(t.clone())})},Object.defineProperty(i.prototype,"heatRules",{get:function(){var e=this;return this._heatRules||(this._heatRules=new re,this._heatRules.events.on("inserted",function(t){var n=t.newValue,r=n.target;if(r){var a=n.dataField;v(a)||(a="value");var o=e.dataItem,l=n.property,h=ce(n.minValue),p=ce(n.maxValue);y(h)||y(p)||e.dataItem.events.on("calculatedvaluechanged",function(u){u.property==a&&A(e.dataItems.iterator(),function(d){var c=!1;j(d.sprites,function(f){f.clonedFrom==r&&(f[l]=f[l],c=!0)}),c||j(d.sprites,function(f){f instanceof W&&A(f.children.iterator(),function(g){g.className==r.className?g[l]=g[l]:g instanceof W&&g.deepInvalidate()})})})}),e.dataItems.template.events.on("workingvaluechanged",function(u){if(u.property==a){var d=u.target,c=!1;j(d.sprites,function(f){f.clonedFrom==r&&(f[l]=f[l],c=!0)}),c||j(d.sprites,function(f){f instanceof W&&A(f.children.iterator(),function(g){g.className==r.className?g[l]=g[l]:g instanceof W&&g.deepInvalidate()})})}}),r.adapter.add(l,function(u,d,c){var f=ce(n.minValue),g=ce(n.maxValue),m=n.min,x=n.max;if(d instanceof $){var b=d.propertyFields[c];if(b&&d.dataItem){var C=d.dataItem.dataContext;if(C&&v(C[b]))return u}}var S=d.dataItem;if(y(f)||(f=o.values[a].low),y(g)||(g=o.values[a].high),S&&S.values[a]){var P=S.getActualWorkingValue(a);if(v(m)&&v(x)&&y(f)&&y(g)&&y(P)){var O=void 0;if(O=n.logarithmic?(Math.log(P)*Math.LOG10E-Math.log(f)*Math.LOG10E)/(Math.log(g)*Math.LOG10E-Math.log(f)*Math.LOG10E):(P-f)/(g-f),!y(P)||y(O)&&Math.abs(O)!=1/0||(O=.5),y(m))return m+(x-m)*O;if(m instanceof se)return new se(mn(m.rgb,x.rgb,O))}}return u})}})),this._heatRules},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){var t;if(e){if(v(e.bullets)&&Ae(e.bullets))for(var n=0,r=e.bullets.length;n=0;a--){var o=r.getIndex(a);o&&o.dataContext==t&&n.dataItems.remove(o)}for(a=n.data.length-1;a>=0;a--){var l=n.data[a];l&&l==t&&z(n.data,l)}}},i.prototype.handleSeriesAdded=function(e){var t=this,n=e.newValue;n.isDisposed()||(n.chart=this,n.parent=this.seriesContainer,n.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(n),n.addDisposer(new le(function(){t.dataUsers.removeValue(n)})),this.handleSeriesAdded2(n),this.handleLegendSeriesAdded(n))},i.prototype.handleLegendSeriesAdded=function(e){e.hiddenInLegend||this.legend&&this.legend.addData(e)},i.prototype.handleSeriesAdded2=function(e){var t=this;this.dataInvalid||this._disposers.push(_.events.once("exitframe",function(){e.data&&0!=e.data.length||(e.data=t.data,e.showOnInit&&(e.reinit(),e.setPropertyValue("showOnInit",!1),e.showOnInit=!0),e.isDisposed()||e.events.once("datavalidated",function(){e.data==t.data&&(e._data=[])}))}))},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];A(this.series.iterator(),function(n){n.hiddenInLegend||t.push(n)}),e.dataFields.name="name",e.data=t}},i.prototype.createSeries=function(){return new zn},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},i.prototype.appear=function(){s.prototype.appear.call(this),this.series.each(function(e){e.showOnInit&&e.inited&&e.appear()})},i}(ai);_.registeredClasses.SerialChart=Zr;var Un=function(s){function i(){var e=s.call(this)||this;e._axis=new Me,e.dataItems=new re,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var t=new ae,n=new si;n.fill=t.getFor("background"),n.stroke=B(),n.fillOpacity=.9,n.zIndex=0,e._fillShape=n;var r=new si;r.fill=B(),r.stroke=t.getFor("grid"),r.strokeOpacity=.3,r.zIndex=1,e._startLine=r;var a=new si;return a.fill=B(),a.stroke=B("#000000"),a.strokeOpacity=.3,a.zIndex=2,e._endLine=a,e._disposers.push(e._axis),e.applyTheme(),e}return w(i,s),i.prototype.dispose=function(){s.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(i.prototype,"startLine",{get:function(){return this._startLine},set:function(e){this._startLine&&this._startLine.dispose(),this._startLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLine",{get:function(){return this._endLine},set:function(e){this._endLine&&this._endLine.dispose(),this._endLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillShape",{get:function(){return this._fillShape},set:function(e){this._fillShape&&this._fillShape.dispose(),this._fillShape=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),i.prototype.addBreakSprite=function(e){e.parent=this,e.isMeasured=!1,this._disposers.push(e)},Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this._axis.get()!==e){this._axis.set(e,e.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),e.renderer.createBreakSprites(this);var t=e.axisBreaks.template;this.startLine.copyFrom(t.startLine),this.endLine.copyFrom(t.endLine),this.fillShape.copyFrom(t.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(e){this.setPropertyValue("breakSize",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.draw=function(){s.prototype.draw.call(this),this.axis&&this.axis.renderer.updateBreakElement(this)},Object.defineProperty(i.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i}(W);_.registeredClasses.AxisBreak=Un;var Ep,s,Ji=function(s){function i(){var e=s.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var e=this.component;if(e){var t,n=void 0;if(this.isRange){if((n=e.axisRanges.template.grid).disabled)return;t=n.clone()}else{if((n=e.renderer.grid.template).disabled)return;t=e.renderer.grid.create(),this._disposers.push(new le(function(){e.renderer.grid.removeValue(t)}))}this.grid=t,t.shouldClone=!1,this._disposers.push(t),t.axis=this.component}}return this._grid},set:function(e){this._grid&&this._grid!=e&&(z(this.sprites,this._grid),this._grid.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(z(e.dataItem.sprites,e),e.dataItem.grid=void 0),this.addSprite(e)),this._grid=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){if(!this._tick){var e=this.component;if(e){var t,n=void 0;if(this.isRange){if((n=e.axisRanges.template.tick).disabled)return;t=n.clone()}else{if((n=e.renderer.ticks.template).disabled)return;t=e.renderer.ticks.create(),this._disposers.push(new le(function(){e.renderer.ticks.removeValue(t)}))}this.tick=t,t.axis=this.component,t.shouldClone=!1,this._disposers.push(t)}}return this._tick},set:function(e){this._tick&&this._tick!=e&&(z(this.sprites,this._tick),this._tick.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(z(e.dataItem.sprites,e),e.dataItem.tick=void 0),this.addSprite(e)),this._tick=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){if(!this._label){var e=this.component;if(e){var t,n=void 0;if(this.isRange){if((n=e.axisRanges.template.label).disabled)return;t=n.clone()}else{if((n=e.renderer.labels.template).disabled)return;t=e.renderer.labels.create(),this._disposers.push(new le(function(){e.renderer.labels.removeValue(t)}))}this._disposers.push(t),this.label=t,t.shouldClone=!1,t.axis=this.component,t.virtualParent=e}}return this._label},set:function(e){this._label&&this._label!=e&&(z(this.sprites,this._label),this._label.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(z(e.dataItem.sprites,e),e.dataItem.label=void 0),this.addSprite(e)),this._label=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisFill",{get:function(){if(!this._axisFill){var e=this.component;if(e){var t,n=void 0;if(this.isRange){if(n=e.axisRanges.template.axisFill,!this.isTemplate&&n.disabled)return;t=n.clone()}else{if((n=e.renderer.axisFills.template).disabled)return;t=e.renderer.axisFills.create(),this._disposers.push(new le(function(){e.renderer.axisFills.removeValue(t)}))}this.axisFill=t,t.shouldClone=!1,this._disposers.push(t)}}return this._axisFill},set:function(e){this._axisFill&&this._axisFill!=e&&(z(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(z(e.dataItem.sprites,e),e.dataItem.axisFill=void 0),e.axis=this.component,this.addSprite(e)),this._axisFill=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this._label&&(this._label.text=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contents",{get:function(){if(!this._contents){var e=new W;this.addSprite(e),e.isMeasured=!1,this._contents=e;var t=this.component;if(t){var n=t.renderer.createFill(this.component);n.disabled=!1,n.axis=t,this.addSprite(n),this._mask=n,e.mask=n}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(e){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),e&&e.dataItems.push(this),this._axisBreak=e},enumerable:!0,configurable:!0}),i.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},i.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},i.prototype.hasProperty=function(e){return"component"==e||s.prototype.hasProperty.call(this,e)},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},i.prototype.setVisibility=function(e,t){s.prototype.setVisibility.call(this,e,t),this._contents&&(this._contents.visible=e)},Object.defineProperty(i.prototype,"bullet",{get:function(){return this._bullet},set:function(e){this._bullet&&this._bullet!=e&&(z(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=e,e&&this.addSprite(e)},enumerable:!0,configurable:!0}),i}(ei);(s=Ep||(Ep={}))[s.Start=0]="Start",s[s.Middle=.5]="Middle",s[s.End=1]="End";var Gn=function(s){function i(){var e=s.call(this)||this;if(e._gridCount=10,e._series=new re,e.autoDispose=!0,e._axisItemCount=0,e.constructor===i)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");e.hideTooltipWhileZooming=!0,e.minWidth=1e-4,e.minHeight=1e-4,e.className="Axis",e.shouldClone=!1,e.setPropertyValue("cursorTooltipEnabled",!0),e.toggleZoomOutButton=!0,e.zoomable=!0;var t=new ae;e.title=new $e,e.title.shouldClone=!1,e._disposers.push(e.title),e.setPropertyValue("startLocation",0),e.setPropertyValue("endLocation",1),e._dataItemsIterator=new fn(e.dataItems,function(){return e.dataItems.create()}),e._dataItemsIterator.createNewItems=!0;var n=new Rn;e._disposers.push(n),n.label.padding(5,10,5,10),n.background.pointerLength=5,n.fitPointerToBounds=!0,n.background.filters.clear(),n.virtualParent=e;var r=n.background;return r.cornerRadius=0,r.fill=t.getFor("alternativeBackground"),r.stroke=r.fill,r.strokeWidth=1,r.fillOpacity=1,n.label.fill=t.getFor("alternativeText"),e.tooltip=n,e.readerHidden=!0,e.events.on("rangechangestarted",function(){e.series.each(function(a){a.hideTooltipWhileZooming&&(a.tooltip.hide(),a.tooltip.preventShow=!0)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!0)},void 0,!1),e.events.on("rangechangeended",function(){e.series.each(function(a){a.hideTooltipWhileZooming&&(a.tooltip.hide(),a.tooltip.preventShow=!1)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!1)},void 0,!1),e.applyTheme(),e}return w(i,s),i.prototype.fillRule=function(e,t){y(t)||(t=e.index),t/2==Math.round(t/2)?(e.axisFill.__disabled=!0,e.axisFill.opacity=0):(e.axisFill.opacity=1,e.axisFill.__disabled=!1)},i.prototype.createDataItem=function(){return new Ji},i.prototype.invalidateLayout=function(){s.prototype.invalidateLayout.call(this),A(this.series.iterator(),function(e){e.invalidateLayout()})},i.prototype.invalidateSeries=function(){A(this.series.iterator(),function(e){e.invalidate()})},i.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},i.prototype.updateGridCount=function(){if(this.renderer){var e=this.axisLength/this.renderer.minGridDistance;e!=this._gridCount&&(this._gridCount=e,this.clearCache())}},i.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),s.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},i.prototype.initRenderer=function(){},i.prototype.appendDataItem=function(e){var t=this.renderer,n=e.tick;n&&(n.parent=n.above?t.bulletsContainer:t.gridContainer),e.label&&(e.label.parent=t);var r=e.axisFill;r&&(r.parent=r.above?t.bulletsContainer:t.gridContainer);var a=e.grid;a&&(a.parent=a.above?t.bulletsContainer:t.gridContainer),e.bullet&&(e.bullet.parent=t.bulletsContainer)},i.prototype.validate=function(){s.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},i.prototype.validateAxisRanges=function(){var e=this;A(this.axisRanges.iterator(),function(t){e.appendDataItem(t),e.validateDataElement(t),t.grid&&t.grid.validate(),t.tick&&t.tick.validate(),t.axisFill&&t.axisFill.validate(),t.label&&t.label.validate()})},i.prototype.validateBreaks=function(){this._axisBreaks&&A(this._axisBreaks.iterator(),function(e){e.invalidate()})},i.prototype.processBreak=function(e){var t=e.newValue;t.parent=this.renderer.breakContainer,t.axis=this},i.prototype.registerSeries=function(e){var t=this;return this.series.moveValue(e),new _e([new le(function(){t.series.removeValue(e)}),this.events.on("lengthchanged",e.invalidate,e,!1),this.events.on("lengthchanged",e.createMask,e,!1),this.events.on("startchanged",e.invalidate,e,!1),this.events.on("endchanged",e.invalidate,e,!1)])},Object.defineProperty(i.prototype,"renderer",{get:function(){return this._renderer},set:function(e){if(e!=this._renderer){this._renderer=e,e.chart=this.chart,e.axis=this,e.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(e.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var t=this.renderer.labels.create();this._disposers.push(t),t.dataItem=this.dataItems.template.clone(),t.text="L",t.parent=this.renderer,t.shouldClone=!1,t.fillOpacity=0,t.opacity=0,t.strokeOpacity=0,t.interactionsEnabled=!1,t.validate(),this.ghostLabel=t,this.events.on("beforedatavalidated",function(){t.text="L"},void 0,!1)}},enumerable:!0,configurable:!0}),i.prototype.positionToAngle=function(e){return this.renderer.positionToAngle(e)},i.prototype.pointToPosition=function(e){return this.renderer.pointToPosition(e)},i.prototype.positionToCoordinate=function(e){return this.renderer.positionToCoordinate(e)},i.prototype.getAnyRangePath=function(e,t){return this.renderer.getPositionRangePath(e,t)},i.prototype.anyToPosition=function(e){return 0},i.prototype.anyToPoint=function(e){return{x:0,y:0,angle:0}},i.prototype.getPositionRangePath=function(e,t){return this.renderer?this.renderer.getPositionRangePath(e,t):""},Object.defineProperty(i.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)&&(e&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(e){this.setPropertyValue("toggleZoomOutButton",e)},enumerable:!0,configurable:!0}),i.prototype.hideTooltip=function(e){s.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},i.prototype.showTooltipAtPosition=function(e,t){var n=this._tooltip;if(!n||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(t||(e=this.toAxisPosition(e)),!y(e)||ethis.end)return n.hide(0),void(this._tooltipPosition=void 0);var r=this.renderer;n.parent||(n.parent=this.tooltipContainer);var a=r.tooltipLocation,o=this.getCellStartPosition(e),l=this.getCellEndPosition(e);if("fixed"==this.tooltipPosition&&(e=o+(l-o)*a),e=R(e,this.start,this.end),this._tooltipPosition!=e){this._tooltipPosition=e;var h=r.tooltipLocation2,p=r.positionToPoint(o,h),u=r.positionToPoint(l,h);this.currentItemStartPoint=p,this.currentItemEndPoint=u,r.fullWidthTooltip&&(n.width=u.x-p.x,n.height=u.y-p.y);var d=ut(r.positionToPoint(e,h),this.renderer.line);n.text=this.getTooltipText(e),n.text&&(n.delayedPointTo(d),n.show())}this.cursorTooltipEnabled&&!this.tooltip.disabled||n.hide(0)}},i.prototype.toAxisPosition=function(e){if(null!=(e=this.renderer.toAxisPosition(e)))return e*=this.end-this.start,this.renderer.inversed?this.end-e:this.start+e},i.prototype.toGlobalPosition=function(e){return this.renderer.inversed?e=this.end-e:e-=this.start,e/(this.end-this.start)},i.prototype.getTooltipText=function(e){},i.prototype.updateTooltip=function(e,t){var n=this._tooltip;n&&(n.fixDoc=!1,n.pointerOrientation=e,n.setBounds(Dr(t,this.renderer.line)))},i.prototype.roundPosition=function(e,t,n){return e},i.prototype.getCellStartPosition=function(e){return e},i.prototype.getCellEndPosition=function(e){return e},Object.defineProperty(i.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var e=this.createDataItem();e.isRange=!0,e.axisFill=this.renderer.axisFills.template.clone(),e.grid=this.renderer.grid.template.clone(),e.tick=this.renderer.ticks.template.clone(),e.label=this.renderer.labels.template.clone(),e.isTemplate=!0,e.component=this,e.axisFill.disabled=!1,e.tick.disabled=!1,e.grid.disabled=!1,e.label.disabled=!1,this._axisRanges=new Oe(e),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new fe(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),i.prototype.processAxisRange=function(e){var t=e.newValue;t.component=this,t.isRange=!0},Object.defineProperty(i.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new ua(this.createAxisBreak(),function(e,t){return Pt(e.adjustedStartValue,t.adjustedStartValue)}),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new fe(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),i.prototype.createAxisBreak=function(){return new Un},Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new re),this._series},enumerable:!0,configurable:!0}),i.prototype.processSeriesDataItems=function(){},i.prototype.processSeriesDataItem=function(e,t){},i.prototype.postProcessSeriesDataItems=function(e){},i.prototype.postProcessSeriesDataItem=function(e){},i.prototype.updateAxisBySeries=function(){},i.prototype.hideUnusedDataItems=function(){var e=this,t=this._dataItemsIterator;t.createNewItems=!1,A(t.iterator(),function(n){e.validateDataElement(n),n.__disabled=!0}),t.clear(),t.createNewItems=!0},i.prototype.getSeriesDataItem=function(e,t,n){},i.prototype.getAngle=function(e,t,n,r,a){},i.prototype.getX=function(e,t,n,r,a){},i.prototype.getPositionX=function(e,t,n,r,a){},i.prototype.getY=function(e,t,n,r,a){},i.prototype.getPositionY=function(e,t,n,r,a){},Object.defineProperty(i.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),i.prototype.dataChangeUpdate=function(){},i.prototype.seriesDataChangeUpdate=function(e){},i.prototype.adjustDifference=function(e,t){var n=t-e;if(y(n))return this._axisBreaks&&rt(this._axisBreaks.iterator(),function(r){var a=r.adjustedStartValue,o=r.adjustedEndValue;if(y(a)&&y(o)){if(a>t)return!1;if(o>=e&&y(a)&&y(o)){var l=r.breakSize,h=pl({start:a,end:o},{start:e,end:t});h&&(n-=(h.end-h.start)*(1-l))}return!0}}),n},i.prototype.isInBreak=function(e){if(this._axisBreaks)return Vl(this._axisBreaks.iterator(),function(t){return e>=t.adjustedStartValue&&e<=t.adjustedEndValue})},i.prototype.fixAxisBreaks=function(){var e=this;if(this._axisBreaks){var t=this._axisBreaks;if(t.length>0){j(Ri(t.iterator()),function(a){var o=ie(a.startValue,a.endValue),l=q(a.startValue,a.endValue);a.adjustedStartValue=o,a.adjustedEndValue=l,e._axisBreaks.update(a)});var n=t.first,r=Math.min(n.startValue,n.endValue);A(t.iterator(),function(a){var o=a.adjustedStartValue,l=a.adjustedEndValue;oa.start+(a.end-a.start)*(r+1e-4))},i.prototype.createBreakSprites=function(e){},Object.defineProperty(i.prototype,"axisFills",{get:function(){if(!this._axisFills){var e=this.createFill(this.axis);this._axisFills=new Oe(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new fe(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),i.prototype.createFill=function(e){return new qr(e)},Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var e=this.createGrid();this._grid=new Oe(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new fe(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),i.prototype.createGrid=function(){return new Qi},Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,e.isMeasured=!1,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new Oe(e),this._disposers.push(new fe(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),i.prototype.createTick=function(){return new fo},Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();this._labels=new Oe(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new fe(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createLabel=function(){return new $r},Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e)&&this.axis&&this.axis.invalidate(),e?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(e){this.setPropertyValue("opposite",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(e){this.setPropertyValue("fullWidthTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(e){this.setPropertyValue("tooltipLocation2",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(e){this.setPropertyValue("cellStartLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(e){this.setPropertyValue("cellEndLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(e){this.setPropertyValue("inversed",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(e){this.setPropertyValue("minLabelPosition",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(e){this.setPropertyValue("maxLabelPosition",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},i.prototype.toAxisPosition=function(e){return e},i.prototype.setVisibility=function(e){s.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},i}(W);_.registeredClasses.AxisRenderer=Kn;var tn=function(s){function i(){var e=s.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=s.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i}(W);_.registeredClasses.AxisBullet=tn;var mt=function(s){function i(){var e=s.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=F(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return w(i,s),i.prototype.setAxis=function(e){s.prototype.setAxis.call(this,e),e.layout="horizontal"},i.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.y=e.pixelY,t.height=e.axisLength}},i.prototype.toAxisPosition=function(e){var t=this.axis;if(t){var n=1-e,r=t.relativePositionSprite,a=t.pixelY;if(r?a=Qe({x:0,y:this.pixelY},this.parent,r).y:r=t.parent,r)return 1-(n-a/r.innerHeight)/(t.axisLength/r.innerHeight)}return e},i.prototype.processRenderer=function(){s.prototype.processRenderer.call(this);var e=this.axis;if(e){var t=e.title;t.valign="middle",e.height instanceof te||(e.height=F(100)),this.opposite?(t.rotation=90,this.line.toBack(),t.toFront()):(t.rotation=-90,t.toBack(),this.line.toFront())}},i.prototype.updateTooltip=function(){if(this.axis){var e=2e3,t=0,n=e;this.opposite?this.inside&&(t=-2e3,n=e):this.inside||(t=-2e3,n=e),this.axis.updateTooltip("horizontal",{x:t,y:0,width:n,height:this.axisLength})}},Object.defineProperty(i.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredHeight-e.pixelPaddingTop-e.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){return{x:0,y:this.positionToCoordinate(e)}},i.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.y,e.x)},i.prototype.coordinateToPosition=function(e,t){var n=this.axis,r=n.axisFullLength;return V(n.renderer.inversed?1-n.start-e/r:e/r+(1-n.end),5)},i.prototype.getPositionRangePath=function(e,t){var n=R(this.positionToCoordinate(e),0,this.axisLength),r=R(this.positionToCoordinate(t),0,this.axisLength),a=Math.abs(r-n),o=this.getWidth();return Yt({x:0,y:Math.min(n,r),width:o,height:a},!0)},i.prototype.updateGridElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location);e.path=E({x:0,y:0})+T({x:this.getWidth(),y:0}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location),a=e.length;r.x=Qe({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,a*=this.opposite?e.inside?-1:1:e.inside?1:-1,e.path=E({x:0,y:0})+T({x:a,y:0}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},i.prototype.updateAxisLine=function(){this.line.path=E({x:0,y:0})+T({x:0,y:this.axisLength})},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var e=this.axis,t=this.getWidth(),r=e.basePoint.y,a=this.baseGrid;if(r<-.2||r>this.axisLength+.2)a.hide(0);else{var o=Qe({x:0,y:0},this.gridContainer,a.parent).x;a.path=E({x:0,y:0})+T({x:t,y:0}),a.moveTo({x:o,y:r}),a.show(0)}},i.prototype.updateLabelElement=function(e,t,n,r){v(r)||(r=e.location),t+=(n-t)*r,e.isMeasured=!e.inside;var a,o=this.positionToPoint(t),l=0,h=this.gridContainer.maxWidth;this.opposite?(e.inside?(a="right","left"==e.align&&(l=-h,a="left"),"center"==e.align&&(l=-h/2,a="middle")):a="left",o.x=0+l):(e.inside?(a="left","right"==e.align&&(l=h,a="right"),"center"==e.align&&(l=h/2,a="middle")):a="right",o.x=this.measuredWidth+l),0==e.rotation&&(e.horizontalCenter=a),this.positionItem(e,o),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.updateBreakElement=function(e){s.prototype.updateBreakElement.call(this,e);var t=e.startLine,n=e.endLine,r=e.fillShape,a=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,h=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;a.y=R(a.y,-1,this.axisLength+1),o.y=R(o.y,-1,this.axisLength+1),e.fillShape.__disabled=a.y==o.y&&(a.y<0||a.y>this.axisLength);var p=Math.abs(h-l);t.x=l,t.height=0,t.width=p,n.x=l,n.height=0,n.width=p,r.width=p,r.height=Math.abs(o.y-a.y),r.x=l,r.y=o.y},i.prototype.createBreakSprites=function(e){e.startLine=new si,e.endLine=new si;var t=new eo;t.setWavedSides(!0,!1,!0,!1),e.fillShape=t},i.prototype.positionToCoordinate=function(e){var t=this.axis,n=t.axisFullLength;return t.renderer.inversed?(e-t.start)*n:(t.end-e)*n},i.prototype.updateBullet=function(e,t,n){var r=.5;e instanceof tn&&(r=e.location);var a=this.positionToPoint(t+=(n-t)*r);a.x=Qe({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i}(Kn);_.registeredClasses.AxisRendererY=mt,Ne.push({relevant:Ue.widthS,state:function(s,i){if(s instanceof mt){var e=s.states.create(i);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}}),Ne.push({relevant:Ue.widthXS,state:function(s,i){if(s instanceof mt){var e=s.states.create(i);return e.properties.disabled=!0,e}return null}});var Jr=function(s){function i(){var e=s.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),i}(Un);_.registeredClasses.ValueAxisBreak=Jr;var Zn=function(s){function i(){var e=s.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(e){this.setValue("endValue",e)},enumerable:!0,configurable:!0}),i}(Ji),ee=function(s){function i(){var e=s.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e._dsc=!1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return w(i,s),i.prototype.fillRule=function(e){var t=e.value,n=e.component;e.axisFill.disabled||(e.axisFill.__disabled=V(t/n.step/2,5)==Math.round(t/n.step/2))},i.prototype.createDataItem=function(){return new Zn},i.prototype.createAxisBreak=function(){return new Jr},i.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},i.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var e=this.series.getIndex(0),t=e.startIndex;if(e.dataItems.length>0){t>0&&t--;var n=e.endIndex;n1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E):0==(t=Math.floor(this.minZoomed/this._step)*this._step)&&(t=this.minZoomed):t=Math.floor(t/this._step)*this._step;var n=this._maxZoomed+this._step;this.resetIterators();var r=this._dataItemsIterator;if(0==this._step)return;this._step=this.fixSmallStep(this._step);var a=0,o=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;t<=n;){if(!this.isInBreak(t)){var l=r.find(function(f){return f.value===t});l.__disabled&&(l.__disabled=!1),this.appendDataItem(l),l.axisBreak=void 0,(l.value!=t||o)&&(l.value=t,l.text=this.formatLabel(t),l.label&&l.label.invalid&&l.label.validate(),l.value>=this.min&&l.value<=this.max&&l.label&&("Y"==this.axisLetter&&l.label.measuredWidth>this.ghostLabel.measuredWidth||"X"==this.axisLetter&&l.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=l.label.currentText,this.ghostLabel.validate())),this.validateDataElement(l)}a++;var h=t;this.logarithmic&&Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E+a):t+=this._step;var p=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(p<1){var u=Math.round(Math.abs(Math.log(Math.abs(p))*Math.LOG10E))+2;if(u=Math.min(13,u),h==(t=V(t,u))){t=n;break}}}var d=this._axisBreaks;if(d){var c=this.renderer;A(d.iterator(),function(f){if(f.breakSize>0&&oe(f.startPoint,f.endPoint)>c.minGridDistance)for(var g=f.adjustedMin;g<=f.adjustedMax;){if(g>=f.adjustedStartValue&&g<=f.adjustedEndValue){var m=r.find(function(x){return x.value===g});m.__disabled&&(m.__disabled=!1),e.appendDataItem(m),m.axisBreak=f,m.value!=g&&(m.value=g,m.text=e.formatLabel(g),m.label&&m.label.invalid&&m.label.validate()),e.validateDataElement(m)}g+=f.adjustedStep}})}}},i.prototype.validateDataElement=function(e){s.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var t=this.renderer,n=e.value,r=e.endValue,a=this.valueToPosition(n);e.position=a;var o=a,l=this.valueToPosition(n+this._step);y(r)&&(l=o=this.valueToPosition(r)),e.point=t.positionToPoint(a);var h=e.tick;h&&!h.disabled&&t.updateTickElement(h,a,o);var p=e.grid;p&&!p.disabled&&t.updateGridElement(p,a,o);var u=e.label;u&&!u.disabled&&t.updateLabelElement(u,a,o);var d=e.axisFill;d&&!d.disabled&&(t.updateFillElement(d,a,l),e.isRange||this.fillRule(e)),e.bullet&&t.updateBullet(e.bullet,a,o);var c=e.mask;c&&t.updateFillElement(c,a,l)},i.prototype.formatLabel=function(e){return this.adjustLabelPrecision&&0!=e?this.numberFormatter.format(e,void 0,this._stepDecimalPlaces):this.numberFormatter.format(e)},Object.defineProperty(i.prototype,"basePoint",{get:function(){var t=this.valueToPosition(this.baseValue);return this.renderer.positionToPoint(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseValue",{get:function(){var e=this._baseValue;return this.logarithmic&&(e=this.min),this._adapterO?this._adapterO.apply("baseValue",e):e},set:function(e){this._baseValue=e,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),i.prototype.anyToPosition=function(e){return this.valueToPosition(e)},i.prototype.valueToPoint=function(e){var t=this.valueToPosition(e),n=this.renderer.positionToPoint(t),r=this.renderer.positionToAngle(t);return{x:n.x,y:n.y,angle:r}},i.prototype.anyToPoint=function(e){return this.valueToPoint(e)},i.prototype.valueToPosition=function(e){if(y(e)){var t=this.min,n=this.max;if(y(t)&&y(n)){var r=this._difference,a=this._axisBreaks;a&&a.length>0&&rt(a.iterator(),function(h){var p=h.adjustedStartValue,u=h.adjustedEndValue;if(y(p)&&y(u)){if(eu?t+=(u-p)*(1-d):e0&&rt(o.iterator(),function(l){var h=l.startPosition,p=l.endPosition,u=l.adjustedStartValue,d=l.adjustedEndValue;if(y(u)&&y(d)){if(u>n)return!1;if(on({start:u,end:d},{start:t,end:n})){u=q(u,t),d=ie(d,n);var c=l.breakSize;if(r-=(d-u)*(1-c),e>p)t+=(d-u)*(1-c);else if(!(en&&(n=f)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(d){if(!d.ignoreMinMax){var c=ie(d.value,d.endValue),f=q(d.value,d.endValue);(cn||!y(n))&&(n=f)}})),this.logarithmic){var r=this.treatZeroAs;y(r)&&t<=0&&(t=r),t<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(0==t&&0==n&&(n=.9,t=-.9),y(this._minDefined)&&(t=this._minDefined),y(this._maxDefined)&&(n=this._maxDefined),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(n=this._adapterO.apply("max",n)),y(t)&&y(n)){this._minReal=t,this._maxReal=n,t==Number.POSITIVE_INFINITY&&(t=void 0),n==Number.NEGATIVE_INFINITY&&(n=void 0);var a=this.adjustDifference(t,n);if(t=this.fixMin(t),(n=this.fixMax(n))-t<=1/Math.pow(10,15)){if(n-t!=0)this._deltaMinMax=(n-t)/2;else{var o=Math.log(Math.abs(n))*Math.LOG10E,l=Math.pow(10,Math.floor(o));this._deltaMinMax=l/=10}t-=this._deltaMinMax,n+=this._deltaMinMax}n+=(n-(t-=(n-t)*this.extraMin))*this.extraMax;var h=this.strictMinMax;y(this._maxDefined)&&(h=!0);var p=this.adjustMinMax(t,n,a,this._gridCount,h);if(a=(n=p.max)-(t=p.min),p=this.adjustMinMax(t,n,n-t,this._gridCount,!0),t=p.min,n=p.max,this.strictMinMax&&(t=y(this._minDefined)?this._minDefined:this._minReal,(n=y(this._maxDefined)?this._maxDefined:this._maxReal)-t<=1e-8&&(t-=this._deltaMinMax,n+=this._deltaMinMax),n+=(n-(t-=(n-t)*this.extraMin))*this.extraMax),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(n=this._adapterO.apply("max",n)),this._step=p.step,y(t)||y(n)||(this.start=0,this.end=1,this.renderer.labels.each(function(d){d.dataItem.text=""})),(this._minAdjusted!=t||this._maxAdjusted!=n)&&y(t)&&y(n)){var u=this._minMaxAnimation;if(this._extremesChanged&&y(this._minAdjusted)&&y(this._maxAdjusted)&&this.inited){if(u&&!u.isFinished()&&this._finalMax==n&&this._finalMin==t)return;this._finalMin=t,this._finalMax=n,(u=this.animateMinMax(t,n))&&!u.isFinished()?(u.events.on("animationprogress",this.validateDataItems,this),u.events.on("animationended",function(){e.series.each(function(d){d.validate()}),e.validateDataItems(),e.handleSelectionExtremesChange()}),this._minMaxAnimation=u):this.series.each(function(d){d.invalidate()}),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(u&&!u.isFinished()&&this._finalMax==n&&this._finalMin==t)return;this._minAdjusted=t,this._maxAdjusted=n,this._finalMin=t,this._finalMax=n,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged")}}this._extremesChanged=!1,this._difference=this.adjustDifference(t,n)}},i.prototype.fixMin=function(e){return e},i.prototype.fixMax=function(e){return e},i.prototype.adjustMinMax=function(e,t,n,r,a){r<=1&&(r=1),r=Math.round(r);var o=e,l=t;0===n&&(n=Math.abs(t));var h=Math.log(Math.abs(n))*Math.LOG10E,p=Math.pow(10,Math.floor(h)),u=p/=10;a&&(u=0),this.logarithmic?(e<=0&&(e=this.baseValue),e==1/0&&(e=1),t==-1/0&&(t=10),this.strictMinMax?this._minDefined>0&&(e=this._minDefined):(e=Math.pow(10,Math.floor(Math.log(Math.abs(e))*Math.LOG10E)),t=Math.pow(10,Math.ceil(Math.log(Math.abs(t))*Math.LOG10E)))):(a?(e=Math.floor(e/p)*p,t=Math.ceil(t/p)*p):(e=Math.ceil(e/p)*p-u,t=Math.floor(t/p)*p+u),e<0&&o>=0&&(e=0),t>0&&l<=0&&(t=0)),h=Math.log(Math.abs(n))*Math.LOG10E,p=Math.pow(10,Math.floor(h)),p/=10;var d=Math.ceil(n/r/p)*p,c=Math.pow(10,Math.floor(Math.log(Math.abs(d))*Math.LOG10E)),f=Math.ceil(d/c);f>5?f=10:f<=5&&f>2&&(f=5),d=Math.ceil(d/(c*f))*c*f,this.maxPrecisiono&&(e-=d)}return{min:e,max:t,step:d}},Object.defineProperty(i.prototype,"min",{get:function(){var e=this._minAdjusted;return y(e)||(e=this._minDefined),e},set:function(e){this._minDefined!=e&&(this._minDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(e){this.setPropertyValue("extraMin",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(e){this.setPropertyValue("extraMax",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){var e=this._maxAdjusted;return y(e)||(e=this._maxDefined),e},set:function(e){this._maxDefined!=e&&(this._maxDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(e){this.setPropertyValue("adjustLabelPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.registerSeries=function(e){return new _e([s.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},i.prototype.handleSelectionExtremesChange=function(){var e,t,n=this,r=!0;if(A(this.series.iterator(),function(c){if(!c.ignoreMinMax&&!c.isHidden&&!c.outOfRange){c.visible&&!c.isHiding&&(r=!1);var f=c.selectionMin(n),g=c.selectionMax(n);y(f)&&(!y(e)||ft)&&(t=g)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(c){if(!c.ignoreMinMax){var f=ie(c.value,c.endValue),g=q(c.value,c.endValue);ft&&(t=g)}}),y(this._minDefined)?e=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(e=this._minReal),y(this._maxDefined)?t=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(t=this._maxReal),e==t){var a=this.adjustMinMax(e-=this._deltaMinMax,t+=this._deltaMinMax,0,this._gridCount,this.strictMinMax);e=a.min,t=a.max}var o=this.adjustDifference(e,t),l=this.adjustMinMax(e,t,o,this._gridCount);e=l.min,t=l.max,t+=(t-(e-=(t-e)*this.extraMin))*this.extraMax,e=R(e,this.min,this.max),t=R(t,this.min,this.max),o=this.adjustDifference(e,t),l=this.adjustMinMax(e,t,o,this._gridCount,!0),e=l.min,t=l.max,this.strictMinMax&&(e=q(e,this._minDefined),t=ie(t,this._maxDefined));var h=l.step;this.syncWithAxis&&(l=this.syncAxes(e,t,h),e=l.min,t=l.max,this.invalidate()),h=l.step,this._difference=this.adjustDifference(this.min,this.max);var p=this.valueToPosition(e),u=this.valueToPosition(t);r&&!this.syncWithAxis&&(p=0,u=1);var d=0;this.syncWithAxis?(d=5,this.setCache(e+"-"+t,h)):(this._step==h&&this._minZoomed==e&&this._maxZoomed==t||(this._dsc=!0),this._step=h,this._minZoomed=e,this._maxZoomed=t),this.keepSelection||this.zoom({start:p,end:u},!1,!1,d)},Object.defineProperty(i.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(e){this.setPropertyValue("strictMinMax",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(e){this.setPropertyValue("logarithmic",e)&&(this.invalidate(),this.series.each(function(t){t.invalidateDataItems()}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(e){this.setPropertyValue("keepSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(e){this.setPropertyValue("includeRangesInMinMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(e){this.setPropertyValue("maxPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(e){this.setPropertyValue("extraTooltipPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.handleExtremesChange=function(){var e=this;this._extremesChanged=!0,this.getMinMax(),this.ghostLabel&&this.dataItems.each(function(t){t.label&&t.label.pixelWidth>0&&(e.ghostLabel.text=t.label.currentText)})},i.prototype.getX=function(e,t,n,r,a){return this.renderer.positionToPoint(this.getPositionX(e,t,n,r,a)).x},i.prototype.getPositionX=function(e,t,n,r,a){var o=e.getWorkingValue(t);v(r)||(r="valueX");var l=e.getValue(r,"stack");y(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var h=this.valueToPosition(o+l);return a&&(h=R(h,a.start,a.end)),h},i.prototype.getY=function(e,t,n,r,a){return this.renderer.positionToPoint(this.getPositionY(e,t,n,r,a)).y},i.prototype.getPositionY=function(e,t,n,r,a){var o=e.getWorkingValue(t);v(r)||(r="valueY");var l=e.getValue(r,"stack");y(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var h=this.valueToPosition(o+l);return a&&(h=R(h,a.start,a.end)),h},i.prototype.getAngle=function(e,t,n,r,a){var o=e.getWorkingValue(t),l=e.getValue(r,"stack");y(o)||(o=this.baseValue);var h=this.valueToPosition(o+l);return a&&(h=R(h,a.start,a.end)),this.positionToAngle(h)},i.prototype.getAnyRangePath=function(e,t,n){var r=this.valueToPosition(e),a=this.valueToPosition(t);return this.getPositionRangePath(r,a)},i.prototype.getTooltipText=function(e){var t=V(this.positionToValue(e),this._stepDecimalPlaces+this.extraTooltipPrecision),n=this.tooltip.numberFormatter.format(t);return this._adapterO?this._adapterO.apply("getTooltipText",n):n},i.prototype.zoomToValues=function(e,t,n,r){this.zoom({start:(e-this.min)/(this.max-this.min),end:(t-this.min)/(this.max-this.min)},n,r)},Object.defineProperty(i.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:q(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:ie(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),i.prototype.fixAxisBreaks=function(){var e=this;s.prototype.fixAxisBreaks.call(this);var t=this._axisBreaks;t&&t.length>0&&t.each(function(n){var r=n.adjustedStartValue,a=n.adjustedEndValue,o=a-r,l=Math.ceil(o*n.breakSize)*e._gridCount/(e.max-e.min),h=e.adjustMinMax(r,a,o,l,!0);n.adjustedStep=h.step,n.adjustedMin=h.min,n.adjustedMax=h.max}),this._difference=this.adjustDifference(this.min,this.max)},i.prototype.getPositionLabel=function(e){var t=this.positionToValue(e);return this.numberFormatter.format(t)},i.prototype.showTooltipAt=function(e){this.showTooltipAtPosition(this.valueToPosition(e))},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(i.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(e){var t=this;this.setPropertyValue("syncWithAxis",e,!0)&&e&&(this._disposers.push(e.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("startendchanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",function(){t.clearCache(),t._disposers.push(_.events.once("exitframe",function(){t.handleSelectionExtremesChange()}))},this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(e){this.setPropertyValue("treatZeroAs",e,!0)},enumerable:!0,configurable:!0}),i.prototype.syncAxes=function(e,t,n){var r=this.syncWithAxis;if(r){y(e)||(e=this.min),y(t)||(t=this.max),y(n)||(n=this._step);var a=Math.round((r.maxZoomed-r.minZoomed)/r.step),o=Math.round((t-e)/n);if(y(a)&&y(o))for(var l=!1,h=0,p=.01*(t-e),u=e,d=t,c=n;1!=l;)if(l=this.checkSync(u,d,c,a),++h>1e3&&(l=!0),l)e=u,t=d,n=c;else{h/3==Math.round(h/3)?(u=e-p*h,e>=0&&u<0&&(u=0)):(d=t+p*h)<=0&&d>0&&(d=0);var f=this.adjustMinMax(u,d,d-u,this._gridCount,!0);u=f.min,d=f.max,c=f.step}}return{min:e,max:t,step:n}},i.prototype.checkSync=function(e,t,n,r){for(var a=(t-e)/n,o=1;ox?(p.startIndex=0,p.endIndex=0,p.outOfRange=!0):(p.outOfRange=!1,p.startIndex=g,p.endIndex=S),!n&&p.dataRangeInvalid&&p.validateDataRange()}})},i.prototype.findFirst=function(e,t,n){var r=e.index;if(r>0){var a=e.component.dataItems.getIndex(r-1),o=a[n];return!o||o.getTime()e._minDifference[n.uid]&&(t=e._minDifference[n.uid])}),t!=Number.MAX_VALUE&&0!=t||(t=Se("day")),t},enumerable:!0,configurable:!0}),i.prototype.seriesDataChangeUpdate=function(e){this._minDifference[e.uid]=Number.MAX_VALUE},i.prototype.postProcessSeriesDataItems=function(e){var t=this;this._firstWeekDay=this.getFirstWeekDay(),e?this.seriesGroupUpdate(e):this.series.each(function(n){t.seriesGroupUpdate(n)}),this.addEmptyUnitsBreaks()},i.prototype.seriesGroupUpdate=function(e){var t=this;JSON.stringify(e._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(e._baseInterval[this.uid]=this.mainBaseInterval,e.mainDataSet.each(function(n){t.postProcessSeriesDataItem(n)}),this.groupData&&this.groupSeriesData(e))},i.prototype.groupSeriesData=function(e){var t=this;if(e.baseAxis==this&&e.dataItems.length>0&&!e.dataGrouped){e.bulletsContainer.removeChildren();var n=[],r=this.mainBaseInterval,a=Se(r.timeUnit,r.count);this.groupIntervals.each(function(o){var l=Se(o.timeUnit,o.count);(l>a&&lk||!y(D.low))&&(D.low=k),(D.high0&&t.each(function(n){var r=Math.ceil(e._gridCount*(Math.min(e.end,n.endPosition)-Math.max(e.start,n.startPosition))/(e.end-e.start));n.gridInterval=e.chooseInterval(0,n.adjustedEndValue-n.adjustedStartValue,r);var a=Be(new Date(n.adjustedStartValue),n.gridInterval.timeUnit,n.gridInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);a.getTime()>n.startDate.getTime()&&Ze(a,n.gridInterval.timeUnit,n.gridInterval.count,e._df.utc),n.gridDate=a})},i.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},i.prototype.getGridDate=function(e,t){var n=this._gridInterval.timeUnit,r=this._gridInterval.count;Be(e,n,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var a=e.getTime(),o=bi(e),l=Ze(o,n,t,this._df.utc).getTime(),h=this.isInBreak(l);h&&h.endDate&&(Be(o=new Date(h.endDate.getTime()),n,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o.getTime()0){var d=u.gridInterval.timeUnit,c=u.gridInterval.count;if(oe(u.startPoint,u.endPoint)>4*p.minGridDistance)for(var f,g=u.gridDate.getTime(),m=0,x=function(){var b=bi(u.gridDate);if(g=Ze(b,d,c*m,e._df.utc).getTime(),m++,g>u.adjustedStartValue&&gthis.baseInterval.count&&(o=a+(o-a)/(this._gridInterval.count/this.baseInterval.count)),e.position=a;var h=e.tick;h&&!h.disabled&&t.updateTickElement(h,a,o);var p=e.grid;p&&!p.disabled&&t.updateGridElement(p,a,o);var u=e.axisFill;u&&!u.disabled&&(t.updateFillElement(u,a,l),e.isRange||this.fillRule(e));var d=e.mask;d&&t.updateFillElement(d,a,o),e.bullet&&t.updateBullet(e.bullet,a,o);var c=e.label;if(c&&!c.disabled){var f=c.location;0==f&&(f=1!=this._gridInterval.count||"week"==this._gridInterval.timeUnit||e.isRange?0:.5),t.updateLabelElement(c,a,o,f)}}},Object.defineProperty(i.prototype,"baseDuration",{get:function(){return Se(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),i.prototype.adjustMinMax=function(e,t){return{min:e,max:t,step:this.baseDuration}},i.prototype.fixMin=function(e){var t=this.baseInterval,n=Be(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime();return n+(Ze(new Date(n),t.timeUnit,t.count,this._df.utc).getTime()-n)*this.startLocation},i.prototype.fixMax=function(e){var t=this.baseInterval,n=Be(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime();return n+(Ze(new Date(n),t.timeUnit,t.count,this._df.utc).getTime()-n)*this.endLocation},i.prototype.chooseInterval=function(e,t,n,r){r||(r=this.gridIntervals);var a=r.getIndex(e),o=Se(a.timeUnit,a.count),l=r.length-1;if(e>=l)return ct({},r.getIndex(l));var h=Math.ceil(t/o);return t0?ct({},r.getIndex(e-1)):h<=n?ct({},r.getIndex(e)):e+1p&&(this._minDifference[r.uid]=p)}var u=n-h;u>0&&this._minDifference[r.uid]>u&&(this._minDifference[r.uid]=u),this._prevSeriesTime[r.uid]=n,r._baseInterval[this.uid]&&this.postProcessSeriesDataItem(e)}},i.prototype.updateAxisBySeries=function(){s.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=Se("day",27)&&"week"==e.timeUnit&&(e.timeUnit="month",e.count=1),"month"==e.timeUnit&&(this.minDifference>=Se("day",58)&&1==e.count&&(e.count=2),this.minDifference>=Se("day",87)&&2==e.count&&(e.count=3),this.minDifference>=Se("day",174)&&5==e.count&&(e.count=6)),this.minDifference>=Se("hour",23)&&"hour"==e.timeUnit&&(e.timeUnit="day",e.count=1),this.minDifference>=Se("week",1)-Se("hour",1)&&"day"==e.timeUnit&&(e.timeUnit="week",e.count=1),this.minDifference>=Se("year",1)-Se("day",1.01)&&"month"==e.timeUnit&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(i.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(e){JSON.stringify(this._baseInterval)!=JSON.stringify(e)&&(this._baseInterval=e,this._mainBaseInterval=e,y(e.count)||(e.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(e){if(e){var t=this.axisBreaks.template;t.startLine.disabled=!0,t.endLine.disabled=!0,t.fillShape.disabled=!0,t.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",e)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(e){this.setPropertyValue("tooltipDateFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(e){this.setPropertyValue("markUnitChange",e)&&this.invalidateData()},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(e){var t,n=this.positionToDate(e);if(n=Be(n,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),this.tooltipDate=n,v(this.tooltipDateFormat))t=this._df.format(n,this.tooltipDateFormat,-1==["day","month","week","year"].indexOf(this.baseInterval.timeUnit));else{var r=this.dateFormats.getKey(this.baseInterval.timeUnit);t=r?this._df.format(n,r):this.getPositionLabel(e)}return this._adapterO?this._adapterO.apply("getTooltipText",t):t},i.prototype.roundPosition=function(e,t,n){var r=this.baseInterval,a=r.timeUnit,o=r.count,l=this.positionToDate(e);if(Be(l,a,o,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),t>0&&Ze(l,a,t*o,this._df.utc),n>0&&n<1&&l.setTime(l.getTime()+this.baseDuration*n),this.isInBreak(l.getTime()))for(;l.getTime()o.getTime()&&Math.abs(l.getTime()-a)g&&(g=S)}),this.groupMin[c]=f,this.groupMax[c]=g),e=R(e,f,g),t=R(t,f,g),a&&(h&&(e=R(e=t-l,f,g)),p&&(t=R(t=e+l,f,g))),this.zoom({start:m=(e-f)/(g-f),end:x=(t-f)/(g-f)},n,r)}}else{var m=this.valueToPosition(e),x=this.valueToPosition(t);this.zoom({start:m,end:x},n,r)}},i.prototype.asIs=function(e){return"baseInterval"==e||s.prototype.asIs.call(this,e)},i.prototype.copyFrom=function(e){var t=this;s.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each(function(n){t.groupIntervals.push(ct({},n))}),this.gridIntervals.clear(),e.gridIntervals.each(function(n){t.gridIntervals.push(ct({},n))}),e._baseInterval&&(this.baseInterval=e._baseInterval)},i.prototype.showTooltipAtPosition=function(e,t){var n=this;if(t||(e=this.toAxisPosition(e)),this.snapTooltip){var r,a=this.positionToDate(e).getTime();if(this.series.each(function(h){if(h.baseAxis==n){var p=n.getSeriesDataItem(h,e,!0);if(p){var u=void 0;h.xAxis==n&&(u=p.dateX),h.yAxis==n&&(u=p.dateY),r?Math.abs(r.getTime()-a)>Math.abs(u.getTime()-a)&&(r=u):r=u}}}),r){var o=r.getTime();r=Be(new Date(o),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o=r.getTime();var l=this.renderer.tooltipLocation;0==l&&(l=1e-4),r=new Date(r.getTime()+this.baseDuration*l),e=this.dateToPosition(r),this.chart.cursor&&this.chart.cursor.snapToSeries||this.series.each(function(h){var p=h.dataItemsByAxis.getKey(n.uid).getKey(o+h.currentDataSetId),u=h.showTooltipAtDataItem(p);u?n.chart._seriesPoints.push({series:h,point:u}):(h.tooltipText||h.tooltipHTML)&&h.hideTooltip()})}}s.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(e){var t=this;this.setPropertyValue("groupData",e)&&(this.series.each(function(n){n.setDataSet(""),e&&!n.dataGrouped&&n.inited&&(n._baseInterval[t.uid]=t.mainBaseInterval,t.groupSeriesData(n))}),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(e){this.setPropertyValue("groupInterval",e)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(e){this.setPropertyValue("groupCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(e){this.setPropertyValue("timezoneOffset",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(e){this.setPropertyValue("timezone",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),i.prototype.makeGap=function(e,t){var n=e.component;if(e&&t&&!n.connect&&y(n.autoGapCount)&&n.baseAxis==this){var r=e.dates["date"+this.axisLetter],a=t.dates["date"+this.axisLetter];if(r&&a&&r.getTime()-a.getTime()>n.autoGapCount*this.baseDuration)return!0}return!1},Object.defineProperty(i.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),i}(ee);_.registeredClasses.DateAxis=Pe,_.registeredClasses.DateAxisDataItem=yo;var Mt=function(s){function i(){var e=s.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=F(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return w(i,s),i.prototype.setAxis=function(e){s.prototype.setAxis.call(this,e),e.layout="vertical"},i.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.x=e.pixelX,t.width=e.axisLength}},i.prototype.processRenderer=function(){s.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof te||(e.width=F(100));var t=e.title;t.rotation=0,t.align="center",this.opposite?(this.line.toFront(),t.toBack()):(t.toFront(),this.toBack(),this.line.toBack())}},i.prototype.updateTooltip=function(){if(this.axis){var e=1e3,n=this.line.pixelY,a=e;this.opposite?this.inside||(n=-1e3,a=e):this.inside&&(n=-1e3,a=e),this.axis.updateTooltip("vertical",{x:this.line.pixelX,y:n,width:this.axisLength,height:a})}},i.prototype.updateLabelElement=function(e,t,n,r){v(r)||(r=e.location);var a=this.positionToPoint(t+=(n-t)*r);e.isMeasured=!e.inside;var o,l=0,h=this.gridContainer.maxHeight;this.opposite?(e.inside?(o="top","bottom"==e.valign&&(l=h,o="bottom"),"middle"==e.valign&&(l=h/2,o="middle")):o="bottom",a.y=l):(e.inside?(o="bottom","top"==e.valign&&(l=-h,o="top"),"middle"==e.valign&&(l=-h/2,o="middle")):o="top",a.y+=l),0==e.rotation&&(e.verticalCenter=o),this.positionItem(e,a),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(i.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredWidth-e.pixelPaddingRight-e.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){return{x:this.positionToCoordinate(e),y:0}},i.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.x,e.y)},i.prototype.getPositionRangePath=function(e,t){var n=R(this.positionToCoordinate(e),0,this.axisLength),r=R(this.positionToCoordinate(t),0,this.axisLength),a=Math.abs(r-n),o=this.getHeight();return Yt({x:Math.min(n,r),y:0,width:a,height:o},!0)},i.prototype.updateBreakElement=function(e){s.prototype.updateBreakElement.call(this,e);var t=e.startLine,n=e.endLine,r=e.fillShape,a=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,h=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;a.x=R(a.x,-1,this.axisLength+1),o.x=R(o.x,-1,this.axisLength+1),e.fillShape.__disabled=a.x==o.x&&(a.x<0||a.x>this.axisLength),t.y=l,t.width=0,t.height=h,n.y=l,n.width=0,n.height=h,r.height=h,r.width=Math.abs(o.x-a.x),r.y=l,r.x=a.x},i.prototype.updateGridElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location);e.path=E({x:0,y:0})+T({x:0,y:this.getHeight()}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location),a=e.length;r.y=Qe({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,a*=this.opposite?e.inside?1:-1:e.inside?-1:1,e.path=E({x:0,y:0})+T({x:0,y:a}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},i.prototype.updateAxisLine=function(){this.line.path=E({x:0,y:0})+T({x:this.axisLength,y:0})},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var e=this.axis,t=this.getHeight(),r=this.baseGrid,a=e.basePoint.x;if(a<-.2||a>this.axisLength+.2)r.hide(0);else{var o=Qe({x:0,y:0},this.gridContainer,r.parent).y;r.path=E({x:0,y:0})+T({x:0,y:t}),r.moveTo({x:a,y:o}),r.show(0)}},i.prototype.createBreakSprites=function(e){e.startLine=new si,e.endLine=new si;var t=new eo;t.setWavedSides(!1,!0,!1,!0),e.fillShape=t},i.prototype.toAxisPosition=function(e){var t=e,n=this.axis;if(n){var r=n.relativePositionSprite,a=n.pixelX;if(r?a=Qe({x:this.pixelX,y:0},this.parent,r).x:r=n.parent,r)return(t-a/r.innerWidth)/(n.axisLength/r.innerWidth)}return e},i.prototype.updateBullet=function(e,t,n){var r=.5;e instanceof tn&&(r=e.location);var a=this.positionToPoint(t+=(n-t)*r);a.y=Qe({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i}(Kn);_.registeredClasses.AxisRendererX=Mt,Ne.push({relevant:Ue.heightXS,state:function(s,i){if(s instanceof Mt){var e=s.states.create(i);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}}),Ne.push({relevant:Ue.heightXXS,state:function(s,i){if(s instanceof Mt){var e=s.states.create(i);return e.properties.disabled=!0,e}return null}});var mo=function(s){function i(){var e=s.call(this)||this;return e.className="CategoryAxisBreak",e.properties.startLocation=.5,e.properties.endLocation=.5,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(e){this.setPropertyValue("startCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(e){this.setPropertyValue("endCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startValue",{get:function(){var e=this.getPropertyValue("startCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){var e=this.getPropertyValue("endCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i}(Un);_.registeredClasses.CategoryAxisBreak=mo;var vo=function(s){function i(){var e=s.call(this)||this;return e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.deltaPosition=0,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(e){var t=this.properties.category;this.setProperty("category",e),v(t)&&t!=e&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(e){this.setProperty("endCategory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(e){e!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",e),this.component&&(this.component.invalidateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),i}(Ji),Ve=function(s){function i(){var e=s.call(this)||this;e.dataItemsByCategory=new me,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme();var t=e.dataItemsByCategory;return e.addDisposer(e.mainDataSet.events.on("removed",function(n){t.removeKey(n.oldValue.category)})),e}return w(i,s),i.prototype.createDataItem=function(){return new vo},i.prototype.createAxisBreak=function(){return new mo},i.prototype.processSeriesDataItem=function(e,t){s.prototype.processSeriesDataItem.call(this,e,t);var n=e["category"+this.axisLetter];if(v(n)){var r=this.dataItemsByCategory.getKey(n);if(r){var a=e.component.uid,o=r.seriesDataItems[a];o||(r.seriesDataItems[a]=o=[]),o.push(e)}}else e.component.dataItems.remove(e)},i.prototype.validateDataRange=function(){var e=this;s.prototype.validateDataRange.call(this),A(this._series.iterator(),function(t){if(t.xAxis instanceof i&&t.yAxis instanceof i)t.invalidateDataRange();else{var n=e.positionToIndex(e.start),r=e.positionToIndex(e.end);r>=e.dataItems.length&&r--;for(var a=t.uid,o=void 0,l=void 0,h=n;h<=r;h++){var p=e.dataItems.getIndex(h);if(p){var u=p.seriesDataItems[a];if(u)for(var d=0;dl)&&(l=f)}}}}y(o)?t.startIndex=o:t.start=e.start,y(l)?t.endIndex=l+1:t.end=e.end,e._axisBreaks&&e._axisBreaks.length>0&&t.invalidateDataRange()}})},i.prototype.validate=function(){var e=this;s.prototype.validate.call(this);var t=this.dataItems.length,n=R(Math.floor(this.start*t-1),0,t),r=R(Math.ceil(this.end*t),0,t);this.renderer.invalid&&this.renderer.validate();var a=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),o=Math.min(this.dataItems.length,Math.ceil((r-n)/a));if(this._startIndex=Math.floor(n/o)*o,this._endIndex=Math.ceil(this.end*t),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=o,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),n=q(0,this._startIndex-this._frequency),r=ie(this.dataItems.length,this._endIndex+this._frequency);for(var l=0,h=0;h0)for(g=c;g<=f;g+=m){var b;(b=e.dataItems.getIndex(g)).__disabled=!1,e.appendDataItem(b),e.validateDataElement(b,x),x++}}}),this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},i.prototype.validateDataElement=function(e,t,n){s.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var r=this.renderer;y(n)||(n=this.categoryToIndex(e.category));var a=this.categoryToIndex(e.endCategory);y(a)||(a=n);var o,l,h,p=this.indexToPosition(n,e.locations.category),u=this.indexToPosition(a,e.locations.endCategory);e.position=p,e.isRange&&(o=a,l=this.indexToPosition(n,e.locations.category),h=this.indexToPosition(o,e.locations.endCategory)),e.point=r.positionToPoint(p);var d=e.tick;d&&!d.disabled&&r.updateTickElement(d,p,u);var c=e.grid;c&&!c.disabled&&r.updateGridElement(c,p,u);var f=e.label;f&&!f.disabled&&(e.isRange&&null!=f.text||(e.text=e.text),r.updateLabelElement(f,p,u),(r instanceof mt&&e.label.measuredWidth>this.ghostLabel.measuredWidth||r instanceof Mt&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var g=e.axisFill;g&&!g.disabled&&(e.isRange||(o=n+this._frequency,l=this.indexToPosition(n,g.location),h=this.indexToPosition(o,g.location)),r.updateFillElement(g,l,h),e.isRange||this.fillRule(e,t)),e.bullet&&r.updateBullet(e.bullet,p,u);var m=e.mask;m&&r.updateFillElement(m,l,h)},i.prototype.disposeData=function(){this.dataItemsByCategory.clear(),s.prototype.disposeData.call(this)},i.prototype.processDataItem=function(e,t){e&&(s.prototype.processDataItem.call(this,e,t),v(e.category)&&this.dataItemsByCategory.setKey(e.category,e))},i.prototype.getDataItem=function(e){var t=e[this.dataFields.category];if(v(t))return this.dataItemsByCategory.getKey(t)||this.dataItems.create()},i.prototype.indexToPosition=function(e,t){y(t)||(t=.5);var n=this.startIndex,r=this.endIndex,a=this.adjustDifference(n,r),o=this.startLocation;a-=o,a-=1-this.endLocation,this._axisBreaks&&rt(this._axisBreaks.iterator(),function(p){var u=p.adjustedStartValue,d=p.adjustedEndValue;if(ed?n+=(d-u)*(1-c):e=0;n--){var r=e.dataItems.getIndex(n);if(e.xAxis==this&&r.categoryX==t||e.yAxis==this&&r.categoryY==t)return r}},i.prototype.getSeriesDataItemByCategory=function(e,t){var n,r=this;return t.dataItems.each(function(a){t.xAxis==r?a.categoryX==e&&(n=a):t.yAxis==r&&a.categoryY==e&&(n=a)}),n},i.prototype.getSeriesDataItem=function(e,t,n){var r=this;if(y(t)){var a=this.positionToIndex(t);a>=this.dataItems.length&&a--;var o=this.dataItems.getIndex(a);if(o){var l,h=o.category,p=e.dataItems.getIndex(a);return p&&(e.xAxis==this&&p.categoryX==h||e.yAxis==this&&p.categoryY==h)?p:(e.dataItems.each(function(u){e.xAxis==r&&u.categoryX==h&&(l||(l=u),Math.abs(a-l.index)>Math.abs(a-u.index)&&(l=u)),e.yAxis==r&&u.categoryY==h&&(l||(l=u),Math.abs(a-l.index)>Math.abs(a-u.index)&&(l=u))}),l)}}},i.prototype.getX=function(e,t,n,r,a){var o=this.getPositionX(e,t,n,r,a);return Fe(o)?this.basePoint.x:this.renderer.positionToPoint(o).x},i.prototype.getPositionX=function(e,t,n,r,a){var o;return v(t)&&(o=this.categoryToPosition(e.categories[t],n)),a&&(o=R(o,a.start,a.end)),o},i.prototype.getY=function(e,t,n,r,a){var o=this.getPositionY(e,t,n,r,a);return Fe(o)?this.basePoint.y:this.renderer.positionToPoint(o).y},i.prototype.getPositionY=function(e,t,n,r,a){var o;return v(t)&&(o=this.categoryToPosition(e.categories[t],n)),a&&(o=R(o,a.start,a.end)),o},i.prototype.getAngle=function(e,t,n,r,a){var o=this.categoryToPosition(e.categories[t],n);return a&&(o=R(o,a.start,a.end)),this.positionToAngle(o)},i.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},i.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},i.prototype.getTooltipText=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return this.tooltipDataItem=t,this.tooltip.dataItem=t,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",t.category):t.category},i.prototype.positionToIndex=function(e){(e=V(e,10))<0&&(e=0),e>1&&(e=1);var t=this.startIndex,n=this.endIndex,r=n-t-this.startLocation-(1-this.endLocation);e+=1/r*this.startLocation;var a=null;return this._axisBreaks&&rt(this._axisBreaks.iterator(),function(o){var l=o.startPosition,h=o.endPosition,p=o.adjustedStartValue,u=o.adjustedEndValue;p=q(p,t),u=ie(u,n);var d=o.breakSize;if(r-=(u-p)*(1-d),e>h)t+=(u-p)*(1-d);else if(!(e=this.dataItems.length&&(a=this.dataItems.length-1),a},i.prototype.positionToCategory=function(e){return this.getPositionLabel(e)},i.prototype.getPositionLabel=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return t.category},Object.defineProperty(i.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),i.prototype.initRenderer=function(){s.prototype.initRenderer.call(this),this.renderer.baseGrid.disabled=!0},Object.defineProperty(i.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(e){this.setPropertyValue("sortBySeries",e,!0)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){e&&v(e.sortBySeries)&&J(e.sortBySeries)&&(this.map.hasKey(e.sortBySeries)?e.sortBySeries=this.map.getKey(e.sortBySeries):(this.addDelayedMap("sortBySeries",e.sortBySeries),delete e.sortBySeries)),s.prototype.processConfig.call(this,e)},i}(Gn);_.registeredClasses.CategoryAxis=Ve,_.registeredClasses.CategoryAxisDataItem=vo;var qn=function(s){function i(){var e=s.call(this)||this;return e.className="XYSeriesDataItem",e.values.customValue={},e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(e){this.setValue("customValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(e){this.setDate("dateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(e){this.setDate("dateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(e){this.setCategory("categoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(e){this.setCategory("categoryY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(e){this.setValue("openValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(e){this.setValue("openValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(e){this.setDate("openDateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(e){this.setDate("openDateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(e){this.setCategory("openCategoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(e){this.setCategory("openCategoryY",e)},enumerable:!0,configurable:!0}),i.prototype.getMin=function(e,t,n){var r,a=this;return y(n)||(n=0),j(e,function(o){var l;l=t?a.getWorkingValue(o):a.getValue(o),((l+=n)r||!y(r))&&(r=l)}),r},i}(Yn),oi=function(s){function i(){var e=s.call(this)||this;return e.groupFields={},e._xAxis=new Me,e._yAxis=new Me,e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.dataGrouped=!1,e.usesShowFields=!1,e._dataSetChanged=!1,e._maxxX=1e5,e._maxxY=1e5,e._propertiesChanged=!1,e.outOfRange=!1,e.className="XYSeries",e.isMeasured=!1,e.groupFields.valueX="close",e.groupFields.valueY="close",e.groupFields.customValue="close",e.groupFields.openValueX="open",e.groupFields.openValueY="open",e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new $,e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e._showBullets=!1,e.tooltip.pointerOrientation="horizontal",e.properties.stackToNegative=!0,e.hideTooltipWhileZooming=!0,e.setPropertyValue("maskBullets",!0),e.tooltip.events.on("hidden",function(){e.returnBulletDefaultState()},void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.observe(Ie,function(){e.inited&&(e._propertiesChanged=!0,e.legendDataItem&&(e.legendDataItem.childrenCreated=!1),e.chart&&e.chart.legend&&e.chart.legend.invalidateDataItems(),e.invalidate())},void 0,!1),e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},i.prototype.createDataItem=function(){return new qn},i.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},i.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},i.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(this.usesShowFields=!!(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow),this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),s.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!v(this.dataFields[this._xField])||!v(this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.inited&&this.isHidden&&this.hide(0),this.dataGrouped=!1},i.prototype.processDataItem=function(e,t){try{s.prototype.processDataItem.call(this,e,t),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(n){this._chart&&this._chart.raiseCriticalError(n)}},i.prototype.updateDataItem=function(e){s.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},i.prototype.setInitialWorkingValues=function(e){},i.prototype.disposeData=function(){s.prototype.disposeData.call(this);var e=this.xAxis,t=this.yAxis;if(e){var n=this.dataItemsByAxis.getKey(e.uid);n&&n.clear(),e instanceof Ve&&this.clearCatAxis(e)}if(t){var r=this.dataItemsByAxis.getKey(t.uid);r&&r.clear(),t instanceof Ve&&this.clearCatAxis(t)}},i.prototype.clearCatAxis=function(e){var t=this.uid;e.dataItems.each(function(n){n.seriesDataItems[t]&&(n.seriesDataItems[t]=[])})},i.prototype.defineFields=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){var n=e.axisFieldName,r=n+"X",a="open"+wn(n)+"X",o=t.axisFieldName,l=o+"Y",h="open"+wn(o)+"Y";this._xField=r,this._yField=l,this.dataFields[a]&&(this._xOpenField=a),this.dataFields[h]&&(this._yOpenField=h),this.dataFields[h]||this.baseAxis!=t||(this._yOpenField=l),this.dataFields[a]||this.baseAxis!=e||(this._xOpenField=r),this.stacked&&this.baseAxis==e&&(this._xOpenField=r),this.stacked&&this.baseAxis==t&&(this._yOpenField=l),e instanceof Ve&&t instanceof Ve&&(this._yOpenField||(this._yOpenField=l)),this._xValueFields=[],this._yValueFields=[],this.addValueField(e,this._xValueFields,this._xField),this.addValueField(e,this._xValueFields,this._xOpenField),this.addValueField(t,this._yValueFields,this._yField),this.addValueField(t,this._yValueFields,this._yOpenField)}},i.prototype.addValueField=function(e,t,n){e instanceof ee&&v(this.dataFields[n])&&-1==t.indexOf(n)&&t.push(n)},i.prototype.setCategoryAxisField=function(e,t){v(this.dataFields[e])||(this.dataFields[e]=t.dataFields.category)},i.prototype.setDateAxisField=function(e,t){v(this.dataFields[e])||(this.dataFields[e]=t.dataFields.date)},i.prototype.afterDraw=function(){s.prototype.afterDraw.call(this),this.createMask()},i.prototype.createMask=function(){if(this.mainContainer.mask){var e=this.getMaskPath();A(this.axisRanges.iterator(),function(t){t.axisFill.fillPath&&(t.axisFill.validate(),e+=t.axisFill.fillPath)}),this.mainContainer.mask.path=e}},i.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?Yt({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},i.prototype.getAxisField=function(e){return e==this.xAxis?this.xField:e==this.yAxis?this.yField:void 0},i.prototype.validateDataItems=function(){var e=this.chart;e&&(this._maxxX=q(1e5,2*e.plotContainer.maxWidth),this._maxxY=q(1e5,2*e.plotContainer.maxHeight));var t=this.xAxis,n=this.yAxis;t&&n&&(t.updateAxisBySeries(),n.updateAxisBySeries()),s.prototype.validateDataItems.call(this),t&&n&&(t.postProcessSeriesDataItems(this),n.postProcessSeriesDataItems(this))},i.prototype.validateDataRange=function(){var e=this.xAxis,t=this.yAxis;e&&t&&(e.dataRangeInvalid&&e.validateDataRange(),t.dataRangeInvalid&&t.validateDataRange()),s.prototype.validateDataRange.call(this)},i.prototype.validate=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){e.invalid&&e.validate(),t.invalid&&t.validate(),this.y=t.pixelY,this.x=e.pixelX,this._showBullets=!0;var n=this.minBulletDistance;y(n)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)0){var r=this.xAxis,a=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.appeared||this.processValues(!1),r instanceof Pe&&r==this.baseAxis&&(this._tmin.setKey(r.uid,n.getIndex(0).dateX.getTime()),this._tmax.setKey(r.uid,n.getIndex(n.length-1).dateX.getTime()),this.dispatch("extremeschanged")),a instanceof Pe&&a==this.baseAxis&&(this._tmin.setKey(a.uid,n.getIndex(0).dateY.getTime()),this._tmax.setKey(a.uid,n.getIndex(n.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return t},i.prototype.processValues=function(e){s.prototype.processValues.call(this,e);var t=this.xAxis,n=this.yAxis;if(t&&n){var r=this.dataItems,a=1/0,o=-1/0,l=1/0,h=-1/0,p=this.startIndex,u=this.endIndex,d=p,c=u;e||(p=0,u=this.dataItems.length);for(var f=p;fh&&(h=x)),this.baseAxis==n&&(mo&&(o=m)))}t.processSeriesDataItems(),n.processSeriesDataItems();var b=t.uid,C=n.uid;if(this.xAxis instanceof ee&&(a==1/0||o==-1/0))return this._smin.setKey(b,void 0),this._smax.setKey(b,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof ee&&(l==1/0||h==-1/0))return this._smin.setKey(C,void 0),this._smax.setKey(C,void 0),void this.dispatchImmediately("selectionextremeschanged");if(!e&&(this._tmin.getKey(b)!=a||this._tmax.getKey(b)!=o||this._tmin.getKey(C)!=l||this._tmax.getKey(C)!=h)){this._tmin.setKey(b,a),this._tmax.setKey(b,o),this._tmin.setKey(C,l),this._tmax.setKey(C,h);var S=this.stackedSeries;S&&(S.isDisposed()?this.stackedSeries=void 0:S.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(p!=d||u!=c)for(a=1/0,o=-1/0,l=1/0,h=-1/0,f=d;fh&&(h=x)),this.baseAxis==n&&(mo&&(o=m)));if(this.xAxis instanceof ee&&(a==1/0||o==-1/0))return this._smin.setKey(b,void 0),this._smax.setKey(b,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof ee&&(l==1/0||h==-1/0))return this._smin.setKey(C,void 0),this._smax.setKey(C,void 0),void this.dispatchImmediately("selectionextremeschanged");if((this._smin.getKey(b)!=a||this._smax.getKey(b)!=o||this._smin.getKey(C)!=l||this._smax.getKey(C)!=h)&&(this._smin.setKey(b,a),this._smax.setKey(b,o),this._smin.setKey(C,l),this._smax.setKey(C,h),this.appeared||0!=this.start||1!=this.end||this.dataItems!=this.mainDataSet)){var P,O,I=!1;n instanceof ee&&!(n instanceof Pe)&&((!y(P=this._tmin.getKey(C))||(this.usesShowFields||this._dataSetChanged||t instanceof Pe&&t.groupData&&this.isShowing)&&lO||this.stackedSeries&&!this.isHidden)&&(this._tmax.setKey(C,h),I=!0)),t instanceof ee&&!(t instanceof Pe)&&((!y(P=this._tmin.getKey(b))||(this.usesShowFields||this._dataSetChanged||n instanceof Pe&&n.groupData&&this.isShowing)&&aO||this.stackedSeries&&!this.isHidden)&&(this._tmax.setKey(b,o),I=!0)),I&&this.dispatchImmediately("extremeschanged"),0==this.start&&1==this.end&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}},i.prototype.hideTooltip=function(e){s.prototype.hideTooltip.call(this,e),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},i.prototype.showTooltipAtPosition=function(e,t){var n;if(this.visible&&!this.isHiding&&!this.isShowing){var r=this._xAxis.get(),a=this._yAxis.get();r==this.baseAxis&&(n=r.getSeriesDataItem(this,r.toAxisPosition(e),this.snapTooltip)),a==this.baseAxis&&(n=a.getSeriesDataItem(this,a.toAxisPosition(t),this.snapTooltip));var o=this.showTooltipAtDataItem(n);if(o)return o;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},i.prototype.getAdjustedXLocation=function(e,t,n){return e.locations[t]},i.prototype.getAdjustedYLocation=function(e,t,n){return e.locations[t]},i.prototype.showTooltipAtDataItem=function(e){var t,n,r=this.chart.cursor;if(r&&r.hideSeriesTooltipsOnSelection&&r.selection.visible&&r.downPoint)this.hideTooltip();else if(this.returnBulletDefaultState(e),e&&e.visible){if(this.updateLegendValue(e),this.cursorTooltipEnabled){this.tooltipDataItem=e;var a=this.tooltipXField,o=this.tooltipYField;if(v(e[a])&&v(e[o])){var l=this.getPoint(e,a,o,this.getAdjustedXLocation(e,a),this.getAdjustedYLocation(e,o));if(l&&("XYChart"!=this.chart.className||!(l.y<-1||l.y>this.yAxis.pixelHeight+1||l.x<-1||l.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=l.x,this.tooltipY=l.y,this._prevTooltipDataItem!=e&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:e}),this._prevTooltipDataItem=e),this.cursorHoverEnabled)try{for(var h=nr(e.sprites),p=h.next();!p.done;p=h.next()){var u=p.value;!u.parent.visible||u.isHidden||u.__disabled||u.disabled||u.isHiding||(u.interactions.isRealHover||(u.dispatchImmediately("over"),u.interactions.isRealHover=!0),u.isHover=!0)}}catch(d){t={error:d}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return this.showTooltip()?ut({x:l.x,y:l.y},this):void 0}}}}else this.updateLegendValue(e,!0)},i.prototype.returnBulletDefaultState=function(e){var t,n;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=e)try{for(var r=nr(this._prevTooltipDataItem.sprites),a=r.next();!a.done;a=r.next()){var o=a.value;if(o.isDisposed())this._prevTooltipDataItem=void 0;else{var l=o.interactions.isRealHover;o.isHover=!1,l&&o.dispatchImmediately("out")}}}catch(h){t={error:h}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},i.prototype.shouldCreateBullet=function(e,t){var n=t.xField;v(n)||(n=this.xField);var r=t.yField;if(v(r)||(r=this.yField),this.xAxis instanceof ee&&!e.hasValue([n])||this.yAxis instanceof ee&&!e.hasValue([r]))return!1;if(t.disabled){var o=e.dataContext;return!(!o||!1!==o[t.propertyFields.disabled])}return!0},i.prototype.updateTooltip=function(){this.hideTooltipWhileZooming||!this.tooltip||this.tooltip.isHidden||this.isHiding||this.isHidden||!this.tooltipDataItem||this.showTooltipAtDataItem(this.tooltipDataItem)},i.prototype.positionBullet=function(e){s.prototype.positionBullet.call(this,e);var t=e.dataItem,n=e.xField;v(n)||(n=this.xField);var r=e.yField;v(r)||(r=this.yField);var a=this.xAxis,o=this.yAxis;if(a instanceof ee&&!t.hasValue([n])||o instanceof ee&&!t.hasValue([r]))e.visible=!1;else{var l=this.getBulletLocationX(e,n),h=this.getBulletLocationY(e,r);if(this.getPoint(t,n,r,l,h)){var p=this.xOpenField,u=this.yOpenField,d=void 0,c=void 0;if(a instanceof Pe){y(l)||(l=0);var f=void 0,g=t.getWorkingValue(n);if(p?f=t.getWorkingValue(p):a==this.baseAxis&&(f=a.baseValue),y(f)||(f=g),(f+=O=t.getValue("valueX","stack"))==(g+=O)){var m=a.baseInterval,x=a.dateFormatter;f=Be(new Date(f),m.timeUnit,m.count,x.firstDayOfWeek,x.utc,void 0,x.timezoneMinutes,x.timezone).getTime(),g=Ze(new Date(f),m.timeUnit,m.count,x.utc).getTime()}var b=void 0;d=a.valueToPosition(b=a==this.baseAxis?f+(g-f)*l:f+(g-f)*(1-l))}else if(a instanceof ee)y(l)||(l=0),f=void 0,g=t.getWorkingValue(n),f=p?t.getWorkingValue(p):a.baseValue,b=(f+=O=t.getValue("valueX","stack"))+((g+=O)-f)*(1-l),d=a.valueToPosition(b);else if(a instanceof Ve){var C=this.getAdjustedXLocation(t,n,e.locationX),S=this.getAdjustedXLocation(t,p,e.locationX);d=a.categoryToPosition(t[n],C);var P=void 0;p&&(P=a.categoryToPosition(t[p],S)),y(P)||(P=1),d=P+(d-P)*l}if(o instanceof Pe)y(h)||(h=0),f=void 0,g=t.getWorkingValue(r),u?f=t.getWorkingValue(u):o==this.baseAxis&&(f=o.baseValue),y(f)||(f=g),(f+=O=t.getValue("valueY","stack"))==(g+=O)&&(m=o.baseInterval,x=o.dateFormatter,f=Be(new Date(f),m.timeUnit,m.count,x.firstDayOfWeek,x.utc,void 0,x.timezoneMinutes,x.timezone).getTime(),g=Ze(new Date(f),m.timeUnit,m.count,x.utc).getTime()),b=void 0,c=o.valueToPosition(b=o==this.baseAxis?f+(g-f)*h:f+(g-f)*(1-h));else if(o instanceof ee){var O;y(h)||(h=0),f=void 0,g=t.getWorkingValue(r),f=u?t.getWorkingValue(u):o.baseValue,b=(f+=O=t.getValue("valueY","stack"))+((g+=O)-f)*(1-h),c=o.valueToPosition(b)}else if(o instanceof Ve){c=o.categoryToPosition(t[r],h);var I=this.getAdjustedYLocation(t,r,e.locationY),k=this.getAdjustedYLocation(t,u,e.locationY);c=o.categoryToPosition(t[r],I);var D=void 0;u&&(D=o.categoryToPosition(t[u],k)),y(D)||(D=1),c=D+(c-D)*h}e.visible=!0,this.positionBulletReal(e,d,c)}else e.visible=!1}},i.prototype.positionBulletReal=function(e,t,n){e.x=this.xAxis.renderer.positionToPoint(t,n).x,e.y=this.yAxis.renderer.positionToPoint(n,t).y},i.prototype.getBulletLocationX=function(e,t){var n=e.locationX,r=e.dataItem;return y(n)||(n=r.workingLocations[t]),n},i.prototype.getBulletLocationY=function(e,t){var n=e.locationY,r=e.dataItem;return y(n)||(n=r.workingLocations[t]),n},i.prototype.updateStacking=function(){var e=this;this.invalidateDataItems(),this.chart&&this.chart.series.each(function(t){t.baseAxis==e.baseAxis&&(t.stackedSeries=void 0,t.invalidateDataItems(),t.invalidateProcessedData())})},Object.defineProperty(i.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(e){if(this.setPropertyValue("stacked",e,!0)){this.updateStacking();var t,n=this.xAxis,r=this.yAxis;e||(n!=this.baseAxis&&n instanceof ee&&(t=this.xField),r!=this.baseAxis&&r instanceof ee&&(t=this.yField),t&&this.dataItems.each(function(a){a.setCalculatedValue(t,0,"stack")}))}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),i.prototype.show=function(e){var t,n=this;this.isHidden&&(this.appeared&&this.xAxis instanceof Pe&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof Pe&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0))),this.xAxis instanceof ee&&this.xAxis!=this.baseAxis&&(t=this._xValueFields),this.yAxis instanceof ee&&this.yAxis!=this.baseAxis&&(t=this._yValueFields);var r,a=this.startIndex,o=this.endIndex,l=0,h=this.defaultState.transitionDuration;y(e)&&(h=e),Z.animationsEnabled||(h=0),A($t(this.dataItems.iterator()),function(u){var d=u[0],f=h;(dn.endIndex+10)&&(f=0,l=0),n.sequencedInterpolation&&f>0&&(l=n.sequencedInterpolationDelay*d+h*(d-a)/(o-a)),r=u[1].show(f,l,t)}),this.dataSets.each(function(u,d){d!=n.dataItems&&d.each(function(c){c.events.disable(),c.show(0,0,t),c.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(u){u.events.disable(),u.show(0,0,t),u.events.enable()});var p=s.prototype.show.call(this,e);return r&&!r.isFinished()&&(p=r),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),p},i.prototype.hide=function(e){var t,n,r=this,a=this.xAxis;a instanceof ee&&a!=this.baseAxis&&(t=this._xValueFields,n=this.stacked||a.minZoomeda.baseValue||this.stackedSeries?a.baseValue:a.min);var o=this.yAxis;o instanceof ee&&o!=this.baseAxis&&(t=this._yValueFields,n=this.stacked||o.minZoomedo.baseValue||this.stackedSeries?o.baseValue:o.min);var l=this.startIndex,h=this.endIndex,p=this.hiddenState.transitionDuration;y(e)&&(p=e),Z.animationsEnabled||(p=0);var u,d=0;A($t(this.dataItems.iterator()),function(f){var g=f[0],m=f[1],x=p;(gr.endIndex+10)&&(x=0),0==x?m.hide(0,0,n,t):(r.sequencedInterpolation&&x>0&&(d=r.sequencedInterpolationDelay*g+p*(g-l)/(h-l)),u=m.hide(x,d,n,t))}),this.dataSets.each(function(f,g){g!=r.dataItems&&g.each(function(m){m.events.disable(),m.hide(0,0,n,t),m.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(f){f.events.disable(),f.hide(0,0,n,t),f.events.enable()});var c=s.prototype.hide.call(this,p);return c&&!c.isFinished()&&c.delay(d),u&&!u.isFinished()&&(c=u),this.validateDataElements(),c},i.prototype.handleDataItemWorkingValueChange=function(e,t){s.prototype.handleDataItemWorkingValueChange.call(this,e,t),A(this.baseAxis.series.iterator(),function(n){(n.stacked||n.stackedSeries)&&n.invalidateProcessedData()})},i.prototype.getStackValue=function(e,t){var n=this,r=this.xAxis,a=this.yAxis;if(this.stacked&&r&&a){var o,l=this.chart,h=l.series.indexOf(this);r!=this.baseAxis&&r instanceof ee&&(o=this.xField),a!=this.baseAxis&&a instanceof ee&&(o=this.yField),o&&(e.setCalculatedValue(o,0,"stack"),rt(l.series.range(0,h).backwards().iterator(),function(p){if(p.xAxis==r&&p.yAxis==a&&p.className==n.className){p.stackedSeries=n;var u=p.dataItems.getIndex(e.index);if(u&&u.hasValue(n._xValueFields)&&u.hasValue(n._yValueFields)){var d,c=e.getValue(o),f=u.getValue(o)+u.getValue(o,"stack");if(d=t?u.getWorkingValue(o)+u.getValue(o,"stack"):u.getValue(o)+u.getValue(o,"stack"),!n.stackToNegative||c>=0&&f>=0||c<0&&f<0)return e.setCalculatedValue(o,d,"stack"),!1;if(!p.stacked)return!1}else if(!p.stacked)return!1}return!0}))}},Object.defineProperty(i.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")},set:function(e){this.setPropertyValue("stackToNegative",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(e){this._tooltipXField=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(e){this._tooltipYField=e},enumerable:!0,configurable:!0}),i.prototype.min=function(e){return this._tmin.getKey(e.uid)},i.prototype.max=function(e){return this._tmax.getKey(e.uid)},i.prototype.selectionMin=function(e){return this._smin.getKey(e.uid)},i.prototype.selectionMax=function(e){return this._smax.getKey(e.uid)},i.prototype.processConfig=function(e){if(e){if(v(e.baseAxis)&&J(e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),v(e.xAxis)&&J(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),v(e.yAxis)&&J(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),v(e.axisRanges)&&Ae(e.axisRanges))for(var t=0,n=e.axisRanges.length;t0&&(a=!1),b.yAxis==n.yAxis&&t.scrollbarChart.yAxes.length>0&&(o=!1))}),n.events.on("beforedisposed",function(){t.series.removeValue(n)});var l=new ae,h=n.clone();if((Z.onlyShowOnViewport||Z.queue)&&this.addDisposer(this.chart.events.on("removedfromqueue",function(){r.invalidateData()})),Xi()&&(h.stroke=B("#aaaaaa"),h.fill=h.stroke,h.propertyFields.fill=void 0,h.propertyFields.stroke=void 0),n.scrollbarSeries=h,a){var p=n.xAxis.clone();if(r.xAxes.moveValue(p),p.title.disabled=!0,p.rangeChangeDuration=0,(f=p.renderer).ticks.template.disabled=!0,f.inside=!0,f.labels.template.inside=!0,f.line.strokeOpacity=0,f.minLabelPosition=.02,f.maxLabelPosition=.98,f.line.disabled=!0,f.axisFills.template.disabled=!0,f.baseGrid.disabled=!0,f.grid.template.strokeOpacity=.05,f.minWidth=void 0,f.minHeight=void 0,f.padding(0,0,0,0),f.chart=r,f.margin(0,0,0,0),p.width=F(100),f.labels.template.fillOpacity=.5,p.maxZoomCount=void 0,p.minZoomCount=void 0,p instanceof Pe){var u=p,d=n.xAxis;u.groupCount=5*d.groupCount,u.min=void 0,u.max=void 0,this._disposers.push(u.clonedFrom.events.on("extremeschanged",function(){y(u.clonedFrom.minDefined)&&(u.min=u.clonedFrom.minDefined),y(u.clonedFrom.maxDefined)&&(u.max=u.clonedFrom.maxDefined)},void 0,!1))}else if(p instanceof ee){var c=p;c.min=void 0,c.max=void 0,y(c.clonedFrom.minDefined)||(c.min=void 0),y(c.clonedFrom.maxDefined)||(c.max=void 0),this._disposers.push(c.clonedFrom.events.on("extremeschanged",function(){y(c.clonedFrom.minDefined)&&(c.min=c.clonedFrom.min),y(c.clonedFrom.maxDefined)&&(c.max=c.clonedFrom.max)},void 0,!1))}h.xAxis=p}else this.scrollbarChart.xAxes.each(function(b){b.clonedFrom==n.xAxis&&(h.xAxis=b)});if(o){var f,g=n.yAxis.clone();if(r.yAxes.moveValue(g),g.title.disabled=!0,g.rangeChangeDuration=0,(f=g.renderer).ticks.template.disabled=!0,f.inside=!0,f.labels.template.inside=!0,f.line.strokeOpacity=0,f.minLabelPosition=.02,f.maxLabelPosition=.98,f.line.disabled=!0,f.axisFills.template.disabled=!0,f.grid.template.stroke=l.getFor("background"),f.baseGrid.disabled=!0,f.grid.template.strokeOpacity=.05,f.minWidth=void 0,f.minHeight=void 0,f.chart=r,f.padding(0,0,0,0),f.margin(0,0,0,0),g.height=F(100),f.labels.template.fillOpacity=.5,h.yAxis=g,g.maxZoomCount=void 0,g.minZoomCount=void 0,g instanceof Pe){var m=g;m.min=void 0,m.max=void 0,g.groupCount=5*(d=n.yAxis).groupCount,this._disposers.push(m.clonedFrom.events.on("extremeschanged",function(){y(m.clonedFrom.minDefined)&&(m.min=m.clonedFrom.minDefined),y(m.clonedFrom.maxDefined)&&(m.max=m.clonedFrom.maxDefined)}))}else if(g instanceof ee){var x=g;x.min=void 0,x.max=void 0,y(x.clonedFrom.minDefined)||(x.min=void 0),y(x.clonedFrom.maxDefined)||(x.max=void 0),this._disposers.push(x.clonedFrom.events.on("extremeschanged",function(){y(x.clonedFrom.minDefined)&&(x.min=x.clonedFrom.minDefined),y(x.clonedFrom.maxDefined)&&(x.max=x.clonedFrom.maxDefined)}))}}else this.scrollbarChart.yAxes.each(function(b){b.clonedFrom==n.yAxis&&(h.yAxis=b)});h.rangeChangeDuration=0,h.interpolationDuration=0,h.defaultState.transitionDuration=0,h.showOnInit=!1,this._disposers.push(h.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(n.events.on("datavalidated",function(){h.data!=n.data&&(h.data=n.data)},void 0,!1)),h.defaultState.properties.visible=!0,r.series.push(h),this.updateByOrientation()}},i.prototype.updateByOrientation=function(){var e=this;this._scrollbarChart&&(A(this._scrollbarChart.xAxes.iterator(),function(t){var n=t.renderer;"vertical"==e.orientation?(n.grid.template.disabled=!0,n.labels.template.disabled=!0,n.minGridDistance=10):(n.grid.template.disabled=!1,n.labels.template.disabled=!1,n.minGridDistance=t.clonedFrom.renderer.minGridDistance)}),A(this._scrollbarChart.yAxes.iterator(),function(t){var n=t.renderer;"horizontal"==e.orientation?(n.grid.template.disabled=!0,n.labels.template.disabled=!0,n.minGridDistance=10):(n.grid.template.disabled=!1,n.labels.template.disabled=!1,n.minGridDistance=t.clonedFrom.renderer.minGridDistance)}))},i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue,n=this.scrollbarChart;n.series.each(function(r){r&&r.clonedFrom==t&&n.series.removeValue(r)}),0==n.series.length&&(n.xAxes.clear(),n.yAxes.clear());try{t.events.off("validated",this.zoomOutAxes,this)}catch{}},Object.defineProperty(i.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.get()!==e&&(this._chart.set(e,e.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),i.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},i.prototype.zoomOutAxes=function(){var e=this.scrollbarChart;A(e.xAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)}),A(e.yAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)})},i.prototype.updateThumb=function(e){if(void 0===e&&(e=!0),s.prototype.updateThumb.call(this,e),this._unselectedOverlay){var t=this.thumb,n=t.pixelX||0,r=t.pixelY||0,a=t.pixelWidth||0,o=t.pixelHeight||0,l="";"horizontal"==this.orientation?(l=Yt({x:-1,y:0,width:n,height:o}),l+=Yt({x:n+a,y:0,width:(this.pixelWidth||0)-n-a,height:o})):(l=Yt({x:0,y:0,width:a,height:r}),l+=Yt({x:0,y:r+o,width:a,height:(this.pixelHeight||0)-r-o})),this._unselectedOverlay.path=l}},i.prototype.processConfig=function(e){if(e&&v(e.series)&&Ae(e.series))for(var t=0,n=e.series.length;t0){var n=t.maxZoomFactor/t.maxZoomCount;if(V(t.end-t.start,3)<1/n)return e=!0,!1}else if(V(t.start,3)>0||V(t.end,3)<1)return e=!0,!1;return!0}),rt(this.yAxes.iterator(),function(t){if(t.toggleZoomOutButton){if(t.maxZoomCount>0){var n=t.maxZoomFactor/t.maxZoomCount;if(V(t.end-t.start,3)<1/n)return e=!0,!1}else if(V(t.start,3)>0||V(t.end,3)<1)return e=!0,!1;return!0}}),this.seriesAppeared||(e=!1),e?this.zoomOutButton.show():this.zoomOutButton.hide()}},i.prototype.seriesAppeared=function(){var e=!1;return A(this.series.iterator(),function(t){if(!t.appeared)return e=!1,!1}),e},i.prototype.handleYAxisRangeChange=function(){var e=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,e)},i.prototype.updateScrollbar=function(e,t){e&&(e.skipRangeEvents(),e.start=t.start,e.end=t.end)},i.prototype.getCommonAxisRange=function(e){var t,n;return e.each(function(r){if(r.zoomable&&!(r instanceof ee&&r.syncWithAxis)){var a=r.start,o=r.end;r.renderer.inversed&&(a=1-r.end,o=1-r.start),(!y(t)||an)&&(n=o)}}),{start:t,end:n}},i.prototype.updateXAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.topAxesContainer,t.toFront()):(t.parent=this.bottomAxesContainer,t.toBack()),t.renderer&&t.renderer.processRenderer()},i.prototype.updateYAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.rightAxesContainer,t.toBack()):(t.parent=this.leftAxesContainer,t.toFront()),t.renderer&&t.renderer.processRenderer()},i.prototype.processAxis=function(e){var t=this;e instanceof Ve&&this._dataUsers.moveValue(e);var n=e.renderer;n.gridContainer.parent=this.plotContainer,n.gridContainer.toBack(),n.breakContainer.parent=this.plotContainer,n.breakContainer.toFront(),n.breakContainer.zIndex=10,e.addDisposer(new le(function(){t.dataUsers.removeValue(e)})),n.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(e.events.on("positionchanged",function(){var r=Qe({x:0,y:0},e,t.axisBulletsContainer);e.renderer instanceof mt&&(n.bulletsContainer.y=r.y),e.renderer instanceof Mt&&(n.bulletsContainer.x=r.x)},void 0,!1)),this.plotContainer.events.on("maxsizechanged",function(){t.inited&&(e.invalidateDataItems(),t.updateSeriesMasks())},e,!1)},i.prototype.updateSeriesMasks=function(){Xi()&&this.series.each(function(e){var t=e.mainContainer.mask;e.mainContainer.mask=void 0,e.mainContainer.mask=t})},i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue;t&&(t.xAxis&&(t.xAxis.series.removeValue(t),t.xAxis.invalidateProcessedData()),t.yAxis&&(t.yAxis.series.removeValue(t),t.yAxis.invalidateProcessedData()),this.series.each(function(n){n.resetExtremes()})),s.prototype.handleSeriesRemoved.call(this,e)},Object.defineProperty(i.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new re,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new fe(this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),i.prototype.handleAxisRemoval=function(e){var t=e.oldValue;this.dataUsers.removeValue(t),t.autoDispose&&t.dispose()},Object.defineProperty(i.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new re,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new fe(this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),i.prototype.handleSeriesAdded=function(e){try{s.prototype.handleSeriesAdded.call(this,e);var t=e.newValue;0!=this.xAxes.length&&0!=this.yAxes.length||(_.removeFromInvalidComponents(t),t.dataInvalid=!1),t.maskBullets=t.maskBullets,null==t.fill&&(this.patterns?(v(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),v(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof se&&(t.fill.stroke=t.stroke,t.fill.fill=t.stroke)):t.fill=this.colors.next()),v(t.stroke)||(t.stroke=t.fill)}catch(n){this.raiseCriticalError(n)}},Object.defineProperty(i.prototype,"cursor",{get:function(){return this._cursor},set:function(e){this._cursor!=e&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=e,e&&(this._disposers.push(e),e.chart=this,e.shouldClone=!1,e.parent=this._cursorContainer,e.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),e.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),e.events.on("zoomended",this.handleCursorZoomEnd,this,!1),e.events.on("panstarted",this.handleCursorPanStart,this,!1),e.events.on("panning",this.handleCursorPanning,this,!1),e.events.on("panended",this.handleCursorPanEnd,this,!1),e.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),e.events.on("hidden",this.handleHideCursor,this,!1),e.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),i.prototype.handleCursorPositionChange=function(){var e=this.cursor;if(e.visible&&!e.isHiding){var t=this.cursor.xPosition,n=this.cursor.yPosition;this.showSeriesTooltip({x:t,y:n});var r=[],a=e.snapToSeries;if(a&&!e.downPoint){a instanceof oi&&(a=[a]);var o=[];j(a,function(h){if(!h.isHidden&&!h.isHiding){var p=h.xAxis,u=h.yAxis;p instanceof ee&&!(p instanceof Pe)&&u instanceof ee&&!(u instanceof Pe)?(h.dataItems.each(function(d){o.push(d)}),pt(r,h.yAxis),pt(r,h.xAxis)):(h.baseAxis==h.xAxis&&(pt(r,h.yAxis),o.push(p.getSeriesDataItem(h,p.toAxisPosition(t),!0))),h.baseAxis==h.yAxis&&(pt(r,h.xAxis),o.push(u.getSeriesDataItem(h,u.toAxisPosition(n),!0))))}});var l=this.getClosest(o,t,n);l&&(this.series.each(function(h){var p=l.component;h!=p&&(h.hideTooltip(),h.xAxis!=p.xAxis&&(h.xAxis.hideTooltip(),r.push(h.xAxis)),h.yAxis!=p.yAxis&&(h.yAxis.hideTooltip(),r.push(h.yAxis)))}),l.component.showTooltipAtDataItem(l),e.handleSnap(l.component))}this._seriesPoints=[],this._cursorXPosition!=t&&this.showAxisTooltip(this.xAxes,t,r),this._cursorYPosition!=n&&this.showAxisTooltip(this.yAxes,n,r),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},i.prototype.getClosest=function(e,t,n){var r,a=1/0;return hr(e,function(o){if(o){var l=o.component.xAxis,h=o.component.yAxis,p=l.positionToCoordinate(l.toGlobalPosition(l.toAxisPosition(t))),u=h.positionToCoordinate(h.toGlobalPosition(h.toAxisPosition(n))),d=o.component.xField,c=o.component.yField;if(l instanceof ee&&!y(o.getValue(d))||h instanceof ee&&!y(o.getValue(c)))return!0;var f=l.positionToCoordinate(l.toGlobalPosition(l.getPositionX(o,d,o.locations[d],"valueX"))),g=h.positionToCoordinate(h.toGlobalPosition(h.getPositionY(o,c,o.locations[c],"valueY"))),m=Math.sqrt(Math.pow(p-f,2)+Math.pow(u-g,2));return m0){var t=this.cursor;if(t&&y(t.maxTooltipDistance)){var n,r,a=ut({x:t.point.x,y:t.point.y},t),o=1/0;j(e,function(H){var ne=H.series,Te=H.point;if(Te){var Ge={x:Te.x,y:Te.y},he=Math.abs(oe(Ge,a));he0&&j(l,function(H){n!=H.series&&H.series.hideTooltip(0)}),l=[{series:n,point:r}])),e=l}var h=ut({x:-.5,y:-.5},this.plotContainer),p=ut({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),u=0,d=[];j(e,function(H){var ne=H.point;ne&&Ks(ne,{x:h.x,y:h.y,width:p.x-h.x,height:p.y-h.y})&&(d.push({point:ne,series:H.series}),u+=ne.y)}),e=d;var c=this.series.getIndex(0),f=!1;c&&c.yAxis&&c.yAxis.renderer.inversed&&(f=!0),f?e.sort(function(H,ne){return Pt(H.point.y,ne.point.y)}):(e.sort(function(H,ne){return Pt(ne.point.y,H.point.y)}),e.reverse());var g=u/e.length,m=_a({x:0,y:0},this.svgContainer.SVGContainer).y;if(e.length>0){var x=h.y,b=p.y;Tr({x:0,y:x},this);var C=!1;if(g>x+(b-x)/2)for(var S=b,P=e.length-1;P>=0;P--){var O=(G=e[P].series).tooltip,I=e[P].point.y;if(O.setBounds({x:0,y:-m,width:this.pixelWidth,height:S+m}),O.invalid&&O.validate(),O.toBack(),(S=ut({x:0,y:O.label.pixelY-O.pixelY+I-O.pixelMarginTop},O).y)<-m){C=!0;break}}if(g<=x+(b-x)/2||C)for(var k=x,D=(P=0,e.length);P0||a.dataItems.length>0)&&a.showTooltipAtPosition(t)})},i.prototype.getUpdatedRange=function(e,t){if(e){var n,r;e.renderer.inversed?(Vi(t),n=1-e.end,r=1-e.start):(n=e.start,r=e.end);var a=r-n;return{start:n+t.start*a,end:n+t.end*a}}},i.prototype.handleCursorZoomEnd=function(e){var t=this.cursor,n=t.behavior;if("zoomX"==n||"zoomXY"==n){var r=t.xRange;r&&this.xAxes.length>0&&((r=this.getUpdatedRange(this.xAxes.getIndex(0),r)).priority="start",this.zoomAxes(this.xAxes,r))}if("zoomY"==n||"zoomXY"==n){var a=t.yRange;a&&this.yAxes.length>0&&((a=this.getUpdatedRange(this.yAxes.getIndex(0),a)).priority="start",this.zoomAxes(this.yAxes,a))}this.handleHideCursor()},i.prototype.handleCursorPanStart=function(e){var t=this.xAxes.getIndex(0);t&&(this._panStartXRange={start:t.start,end:t.end},t.renderer.inversed&&(this._panStartXRange=Vi(this._panStartXRange)));var n=this.yAxes.getIndex(0);n&&(this._panStartYRange={start:n.start,end:n.end},n.renderer.inversed&&(this._panStartYRange=Vi(this._panStartYRange)))},i.prototype.handleCursorPanEnd=function(e){var t=this.cursor,n=t.behavior;if(this._panEndXRange&&("panX"==n||"panXY"==n)){var r=this._panEndXRange,a=this._panStartXRange,o=0;r.start<0&&(o=r.start),a.end>1?r.end>a.end&&(o=r.end-a.end):r.end>1&&(o=r.end-1),this.zoomAxes(this.xAxes,{start:r.start-o,end:r.end-o},!1,t.snapOnPan),this._panEndXRange=void 0,this._panStartXRange=void 0}!this._panEndYRange||"panY"!=n&&"panXY"!=n||(o=0,(r=this._panEndYRange).start<0&&(o=r.start),r.end>1&&(o=r.end-1),this.zoomAxes(this.yAxes,{start:r.start-o,end:r.end-o},!1,t.snapOnPan),this._panEndYRange=void 0,this._panStartYRange=void 0)},i.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},i.prototype.handleCursorPanning=function(e){var t=this.cursor,n=t.behavior,r=t.maxPanOut;if(this._panStartXRange&&("panX"==n||"panXY"==n)){var a=this._panStartXRange,o=t.xRange,l=this.getCommonAxisRange(this.xAxes),h=a.end-a.start,p=o.start*(l.end-l.start),u=Math.max(-r,p+a.start),d=Math.min(p+a.end,1+r);u<=0&&(d=u+h),d>=1&&(u=d-h);var c={start:u,end:d};this._panEndXRange=c,this.zoomAxes(this.xAxes,c,!1,!1,t.maxPanOut)}!this._panStartYRange||"panY"!=n&&"panXY"!=n||(a=this._panStartYRange,o=t.yRange,l=this.getCommonAxisRange(this.yAxes),h=a.end-a.start,p=o.start*(l.end-l.start),u=Math.max(-r,p+a.start),d=Math.min(p+a.end,1+r),u<=0&&(d=u+h),d>=1&&(u=d-h),this._panEndYRange=c={start:u,end:d},this.zoomAxes(this.yAxes,c,!1,!1,t.maxPanOut)),this.handleHideCursor()},i.prototype.handleYAxisSet=function(e){},i.prototype.handleCursorZoomStart=function(e){},Object.defineProperty(i.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(e){var t=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=e,e&&(this._disposers.push(e),e.parent=this.topAxesContainer,e.shouldClone=!1,e.startGrip.exportable=!1,e.endGrip.exportable=!1,e.toBack(),e.orientation="horizontal",e.events.on("rangechanged",this.handleXScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(n){var r=t.xAxes.getIndex(0);return r&&(n.value=r.getPositionLabel(r.renderer.inversed?1-n.position:n.position)),n}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(e){var t=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=e,e&&(this._disposers.push(e),e.parent=this.rightAxesContainer,e.startGrip.exportable=!1,e.shouldClone=!1,e.endGrip.exportable=!1,e.toFront(),e.orientation="vertical",e.events.on("rangechanged",this.handleYScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(n){var r=t.yAxes.getIndex(0);return r&&(n.value=r.getPositionLabel(n.position)),n}))},enumerable:!0,configurable:!0}),i.prototype.handleXScrollbarChange=function(e){if(this.inited){var t=e.target,n=t.range;0==n.start&&(n.priority="start"),1==n.end&&(n.priority="end"),n=this.zoomAxes(this.xAxes,n),t.fixRange(n)}},i.prototype.handleYScrollbarChange=function(e){if(this.inited){var t=e.target,n=t.range;1==n.end&&(n.priority="end"),0==n.start&&(n.priority="start"),n=this.zoomAxes(this.yAxes,n),t.fixRange(n)}},i.prototype.zoomAxes=function(e,t,n,r,a,o){var l={start:0,end:1};this.showSeriesTooltip();var h=t;return this.dataInvalid||A(e.iterator(),function(p){var u=p.maxZoomFactor;if(y(p.minZoomCount)&&(u/=p.minZoomCount),!(o&&1/(t.end-t.start)>=u)&&p.zoomable){if(t=p.renderer.inversed?Vi(h):h,p.hideTooltip(0),r)if(p instanceof Ve){var d=p.getCellEndPosition(0)-p.getCellStartPosition(0);t.start=p.roundPosition(t.start+d/2-p.startLocation*d,p.startLocation),t.end=p.roundPosition(t.end-d/2+(1-p.endLocation)*d,p.endLocation)}else t.start=p.roundPosition(t.start+1e-4,0,p.startLocation),t.end=p.roundPosition(t.end+1e-4,0,p.endLocation);var c=p.zoom(t,n,n,a);p.renderer.inversed&&(c=Vi(c)),l=c}}),l},Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)&&this.bulletsContainer&&(this.bulletsContainer.mask=e?this._bulletMask:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(e){this.setPropertyValue("arrangeTooltips",e,!0)},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(e){var t=this.plotContainer,n=at(Ht(e.point,this.htmlContainer,this.svgContainer.cssScale),t);this.handleWheelReal(e.shift.y,this.mouseWheelBehavior,n)},i.prototype.handleHorizontalWheel=function(e){var t=this.plotContainer,n=at(Ht(e.point,this.htmlContainer,this.svgContainer.cssScale),t);this.handleWheelReal(e.shift.x,this.horizontalMouseWheelBehavior,n)},i.prototype.handleWheelReal=function(e,t,n){if(0!=e){var r=this.plotContainer,a=this.getCommonAxisRange(this.xAxes),o=this.getCommonAxisRange(this.yAxes),l=.1;if("panX"==t||"panXY"==t){var h=a.end-a.start,p=Math.max(-0,a.start+l*e/100*(a.end-a.start)),u=Math.min(a.end+l*e/100*(a.end-a.start),1);p<=0&&(u=p+h),u>=1&&(p=u-h),this.zoomAxes(this.xAxes,{start:p,end:u})}if("panY"==t||"panXY"==t){e*=-1;var d=o.end-o.start,c=Math.max(-0,o.start+l*e/100*(o.end-o.start)),f=Math.min(o.end+l*e/100*(o.end-o.start),1);c<=0&&(f=c+d),f>=1&&(c=f-d),this.zoomAxes(this.yAxes,{start:c,end:f})}if("zoomX"==t||"zoomXY"==t){var g=n.x/r.maxWidth,m=this.xAxes.getIndex(0).toAxisPosition(g);p=Math.max(-0,a.start-l*(a.end-a.start)*e/100*g),p=Math.min(p,m),u=Math.min(a.end+l*(a.end-a.start)*e/100*(1-g),1),u=Math.max(u,m),this.zoomAxes(this.xAxes,{start:p,end:u},void 0,void 0,void 0,!0)}if("zoomY"==t||"zoomXY"==t){var x=n.y/r.maxHeight,b=this.yAxes.getIndex(0).toAxisPosition(x);c=Math.max(-0,o.start-l*(o.end-o.start)*e/100*(1-x)),c=Math.min(c,b),f=Math.min(o.end+l*e/100*x*(o.end-o.start),1),f=Math.max(f,b),this.zoomAxes(this.yAxes,{start:c,end:f},void 0,void 0,void 0,!0)}}},Object.defineProperty(i.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(e){this.setPropertyValue("mouseWheelBehavior",e)&&("none"!=e?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(e){this.setPropertyValue("horizontalMouseWheelBehavior",e)&&("none"!=e?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),i.prototype.dataSourceDateFields=function(e){var t=this;return e=s.prototype.dataSourceDateFields.call(this,e),A(this.series.iterator(),function(n){e=t.populateDataSourceFields(e,n.dataFields,["dateX","dateY","openDateX","openDateY"])}),e},i.prototype.dataSourceNumberFields=function(e){var t=this;return e=s.prototype.dataSourceDateFields.call(this,e),A(this.series.iterator(),function(n){e=t.populateDataSourceFields(e,n.dataFields,["valueX","valueY","openValueX","openValueY"])}),e},i.prototype.processConfig=function(e){if(e){var t=[],n=[];if(v(e.xAxes)&&Ae(e.xAxes))for(var r=0,a=e.xAxes.length;r0;){var r=this.dataItems.getIndex(0);r&&n.dataItems.remove(r),n.dataUsers.each(function(a){var o=a.dataItems.getIndex(0);o&&a.dataItems.remove(o)}),n._parseDataFrom--,t--}n.invalidateData()}},i.prototype.removeData=function(e){this.scrollbarX instanceof li&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof li&&this.removeScrollbarData(this.scrollbarY,e),s.prototype.removeData.call(this,e)},i.prototype.setTapToActivate=function(e){s.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},i.prototype.handleTapToActivate=function(){s.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},i.prototype.handleTapToActivateDeactivation=function(){s.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},i}(Zr);_.registeredClasses.XYChart=Ut,Ne.push({relevant:Ue.maybeXS,state:function(s,i){if(s instanceof Ut&&s.scrollbarX){var e=s.states.create(i);return s.scrollbarX.states.create(i).properties.disabled=!0,e}return null}}),Ne.push({relevant:Ue.maybeXS,state:function(s,i){if(s instanceof Ut&&s.scrollbarY){var e=s.states.create(i);return s.scrollbarY.states.create(i).properties.disabled=!0,e}return null}});var es=function(s){function i(){var e=s.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var t=e.createChild($);e.fillSprite=t,t.shouldClone=!1,t.setElement(e.paper.add("path")),t.isMeasured=!1,e._disposers.push(t);var n=e.createChild($);return e.strokeSprite=n,n.shouldClone=!1,n.fill=B(),n.setElement(e.paper.add("path")),n.isMeasured=!1,e._disposers.push(n),e}return w(i,s),i.prototype.drawSegment=function(e,t,n,r){if(!this.disabled)if(e.length>0&&t.length>0&&y(e[0].x)&&y(e[0].y)){var a=E({x:e[0].x-.2,y:e[0].y-.2})+E(e[0]),o=this.series;"bezier"==o.smoothing?a+=new zt(n,r).smooth(e):"monotoneX"==o.smoothing?a+=new Pp({closed:!1}).smooth(e):"monotoneY"==o.smoothing&&(a+=new wp({closed:!1}).smooth(e)),0==this.strokeOpacity||0==this.strokeSprite.strokeOpacity||(this.strokeSprite.path=a),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&y(t[0].x)&&y(t[0].y)&&(a+=T(t[0]),"bezier"==o.smoothing?a+=new zt(n,r).smooth(t):"monotoneX"==o.smoothing?a+=new Pp({closed:!1}).smooth(t):"monotoneY"==o.smoothing&&(a+=new wp({closed:!1}).smooth(t)),a+=T(e[0]),this.fillSprite.path=a+=" Z")}else this.fillSprite.path="",this.strokeSprite.path=""},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e);var t=this.strokeSprite;De(e,t.properties,Ie),t.events.copyFrom(e.strokeSprite.events),t.fillOpacity=0;var n=this.fillSprite;De(e,n.properties,Ie),n.events.copyFrom(e.fillSprite.events),n.strokeOpacity=0},i}(W);_.registeredClasses.LineSeriesSegment=es;var Rp=function(s){function i(){var e=s.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return w(i,s),i}(Zn),ts=function(s){function i(){var e=s.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return w(i,s),i.prototype.formatLabel=function(e,t){return this.durationFormatter.format(e,t||this.axisDurationFormat)},i.prototype.adjustMinMax=function(e,t,n,r,a){var o,l,h,p=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),"millisecond"==p||"second"==p||"minute"==p||"hour"==p){r<=1&&(r=1),r=Math.round(r);var u=e,d=t;0===n&&(n=Math.abs(t));var c,f=[60,30,20,15,10,2,1],g=1;"hour"==p&&(f=[24,12,6,4,2,1]);try{for(var m=nr(f),x=m.next();!x.done;x=m.next()){var b=x.value;if(n/b>r){g=b;break}}}catch(O){o={error:O}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(o)throw o.error}}var C=Math.ceil((t-e)/g/r),S=Math.log(Math.abs(C))*Math.LOG10E,P=Math.pow(10,Math.floor(S))/10;c=g*(C=hl(f,C/P)*P),this.durationFormatter.getValueUnit(c,this.baseUnit),e=Math.floor(e/c)*c,t=Math.ceil(t/c)*c,a&&((e-=c)<0&&u>=0&&(e=0),(t+=c)>0&&d<=0&&(t=0)),h={min:e,max:t,step:c}}else h=s.prototype.adjustMinMax.call(this,e,t,n,r,a);return this.axisDurationFormat=this.durationFormatter.getFormat(h.step,h.max,this.baseUnit),h},Object.defineProperty(i.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(e){this._tooltipDurationFormat=e},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(e){var t=V(this.positionToValue(e),this._stepDecimalPlaces),n=this.formatLabel(t,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",n):n},Object.defineProperty(i.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit!=e&&(this._baseUnit=e,this.durationFormatter.baseUnit=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},i}(ee);_.registeredClasses.DurationAxis=ts,_.registeredClasses.DurationAxisDataItem=Rp;var $n=function(s){function i(){var e=s.call(this)||this;return e.className="LineSeriesDataItem",e}return w(i,s),i}(qn),is=function(s){function i(){var e=s.call(this)||this;return e.minDistance=.5,e.segments=new Oe(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new fe(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new fn(e.segments,function(){return e.segments.create()}),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.smoothing="bezier",e.segmentsContainer=e.mainContainer.createChild(W),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},i.prototype.createSegment=function(){return new es},i.prototype.createDataItem=function(){return new $n},i.prototype.setInitialWorkingValues=function(e){var t=this._yAxis.get(),n=this._xAxis.get();if(this.appeared&&this.visible){var r=this.dataItems.getIndex(e.index-1);if(e.component=this,this.baseAxis==n&&t instanceof ee){var a=t.minZoomed;if(r&&(a=r.values.valueY.workingValue),e.setWorkingValue("valueY",a,0),e.setWorkingValue("valueY",e.values.valueY.value),n instanceof Pe)e.setWorkingLocation("dateX",e.locations.dateX-1,0),e.setWorkingLocation("dateX",e.locations.dateX);else if(n instanceof ts&&r){var o=e.valueX;e.setWorkingValue("valueX",r.valueX,0),e.setWorkingValue("valueX",o)}}if(this.baseAxis==t&&n instanceof ee){var l=n.minZoomed;r&&(l=r.values.valueX.workingValue),e.setWorkingValue("valueX",l,0),e.setWorkingValue("valueX",e.values.valueX.value),t instanceof Pe?(e.setWorkingLocation("dateY",e.locations.dateX-1,0),e.setWorkingLocation("dateY",e.locations.dateY)):t instanceof ts&&r&&(o=e.valueY,e.setWorkingValue("valueY",r.valueY,0),e.setWorkingValue("valueY",o))}}else this.baseAxis==n&&t instanceof ee&&(n instanceof Pe&&e.setWorkingLocation("dateX",e.locations.dateX),n instanceof Ve&&e.setWorkingLocation("categoryX",e.locations.categoryX)),this.baseAxis==t&&n instanceof ee&&(t instanceof Pe&&e.setWorkingLocation("dateY",e.locations.dateY),t instanceof Ve&&e.setWorkingLocation("categoryY",e.locations.categoryY))},i.prototype.updateLegendValue=function(e,t){s.prototype.updateLegendValue.call(this,e,t),e&&e.segment&&(this.tooltipColorSource=e.segment)},i.prototype.validate=function(){var e=this;s.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),A(this.axisRanges.iterator(),function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)}),A(this._segmentsIterator.iterator(),function(t){t.__disabled=!0}))},i.prototype.sliceData=function(){for(var e=this.startIndex,t=this.endIndex,n=this.startIndex-1;n>=0;n--)if((a=this.dataItems.getIndex(n))&&a.hasValue(this._xValueFields)&&a.hasValue(this._yValueFields)){e=n;break}this._adjustedStartIndex=this.findAdjustedIndex(e,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]),n=this.endIndex;for(var r=this.dataItems.length;n=0;l--){var h=n.dataItems.getIndex(l);if(h&&v(h.properties[o])){e>l&&(e=l);break}}}),e},i.prototype.openSegmentWrapper=function(e,t){var n={index:e,axisRange:t};do{n=this.openSegment(n.index,n.axisRange)}while(n)},i.prototype.getSegment=function(){var e=this._segmentsIterator.getFirst();return e.series=this,e.isDisposed()?(this.segments.removeValue(e),this.getSegment()):e},i.prototype.openSegment=function(e,t){var n=!1,r=[];e=Math.min(e,this.dataItems.length);var a,o=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var l=!1,h=this.getSegment();h.strokeDasharray=void 0,h.__disabled=!1,t?(h.parent=t.contents,De(t.contents,h,Ie)):(De(this,h,Ie),h.filters.clear(),h.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var p=this.connect,u=!1,d=e;d=n;h--){var p=this.dataItems.getIndex(h);p.hasValue(this._xValueFields)&&p.hasValue(this._yValueFields)&&this.addPoints(l,p,this.xOpenField,this.yOpenField,!0)}else{var d=t.length,c=this.xAxis,f=this.yAxis;d>0&&(this.baseAxis==c?(l.push({x:t[d-1].x,y:f.basePoint.y}),l.push({x:t[0].x,y:f.basePoint.y})):(l.push({x:c.basePoint.x,y:t[d-1].y}),l.push({x:c.basePoint.x,y:t[0].y})))}return this.drawSegment(e,t,l),o&&r++,r0){var o=e.createChild(Mn);De(this,o,Ie),o.width=n,o.height=r,o.y=0,o.strokeOpacity=0,o.visible=!0,a.y=0}var l=e.dataItem;l.color=this.stroke,l.colorOrig=this.fill,rt(this.bullets.iterator(),function(h){if(h instanceof It&&!h.copyToLegendMarker)return!1;var p=!1;if(h instanceof W&&A(h.children.iterator(),function(d){if(d instanceof $e)return p=!0,!0}),!p){var u=h.clone();return u.parent=e,u.isMeasured=!0,u.tooltipText=void 0,u.x=n/2,u.y=t.fillOpacity>0?0:r/2,u.visible=!0,v(u.fill)||(u.fill=t.fill),v(u.stroke)||(u.stroke=t.stroke),!1}})},i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(i.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(e){this.setPropertyValue("autoGapCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(e){this.setPropertyValue("smoothing",e,!0)},enumerable:!0,configurable:!0}),i}(oi);_.registeredClasses.LineSeries=is,_.registeredClasses.LineSeriesDataItem=$n;var bo=function(s){function i(){var e=s.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return w(i,s),i}($n),xo=function(s){function i(){var e=s.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return w(i,s),i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),s.prototype.validate.call(this)},i.prototype.createDataItem=function(){return new bo},i.prototype.getPoint=function(e,t,n,r,a,o,l){o||(o="valueX"),l||(l="valueY");var h=oe({x:this.yAxis.getX(e,n,a,l),y:this.yAxis.getY(e,n,a,l)});0==h&&(h=1e-5);var p=this.xAxis.getAngle(e,t,r,o);return pthis.chart.endAngle?void 0:{x:h*L(p),y:h*M(p)}},i.prototype.addPoints=function(e,t,n,r,a){var o=this.getPoint(t,n,r,t.locations[n],t.locations[r]);o&&e.push(o)},i.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return Pi(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},i.prototype.drawSegment=function(e,t,n){var r=this.yAxis.renderer;this.connectEnds&&360==Math.abs(r.endAngle-r.startAngle)&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(t.push(t[0]),n.length>0&&n.unshift(n[n.length-1])),s.prototype.drawSegment.call(this,e,t,n)},Object.defineProperty(i.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(e){this.setPropertyValue("connectEnds",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBulletReal=function(e,t,n){var r=this.xAxis,a=this.yAxis;(tr.end||na.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,n))},i.prototype.setXAxis=function(e){s.prototype.setXAxis.call(this,e),this.updateRendererRefs()},i.prototype.setYAxis=function(e){s.prototype.setYAxis.call(this,e),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){this.xAxis.renderer.axisRendererY=this.yAxis.renderer},i}(is);_.registeredClasses.RadarSeries=xo,_.registeredClasses.RadarSeriesDataItem=bo;var _o=function(s){function i(e){var t=s.call(this,e)||this;return t.className="AxisFillCircular",t.element=t.paper.add("path"),t.radius=F(100),t.applyTheme(),t}return w(i,s),i.prototype.draw=function(){if(s.prototype.draw.call(this),!this.__disabled&&!this.disabled&&this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,v(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),i}(qr);_.registeredClasses.AxisFillCircular=_o;var Po=function(s){function i(){var e=s.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i}(Qi);_.registeredClasses.GridCircular=Po;var Jn=function(s){function i(){var e=s.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.locationOnPath=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(e){if(this.setPropertyValue("relativeRotation",e,!0),!v(e)){this.rotation=void 0;var t=this.dataItem;t&&t.component&&t.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(e){this.setPropertyValue("bent",e,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),e?(this.setPropertyValue("dx",0),this.setPropertyValue("dy",0),this.setPropertyValue("x",0),this.setPropertyValue("y",0),this.setPropertyValue("rotation",0),this.fdx=0,this.fdy=0,this.textAlign="middle"):this.textPathElement&&(this.textPathElement.dispose(),this.textPathElement=void 0)},enumerable:!0,configurable:!0}),i.prototype.pixelRadius=function(e){var t=1;return this.inside&&(t=-1),xe(this.radius,e)*t},i.prototype.pixelRadiusY=function(e,t){var n=1;this.inside&&(n=-1);var r=this.radius;return y(r)?xe(r*=t/e,e)*n:xe(r,t)*n},i.prototype.fixPosition=function(e,t,n,r,a){y(n)||(n=t),y(r)||(r=0),y(a)||(a=0);var o={x:t*L(e),y:n*M(e)};this.invalid&&this.validate();var l=!1,h=this.radius;(h instanceof te&&h.value<0||h<0)&&(l=!0);var p=this.relativeRotation,u=this.pixelRadius(t);if(this.bent){var d={x:(t+u)*L(e+180),y:(n+u*n/t)*M(e+180)};return this.path=E(d)+Le(e+180,360,t+u,n+u*n/t),void(this.textPathElement&&this.textPathElement.attr({startOffset:100*this.locationOnPath+"%"}))}if(y(p)){this.horizontalCenter="none",this.verticalCenter="none",e=bt(e,-180,180);var c=this.bbox.width,f=this.bbox.height,g=this.pixelPaddingBottom,m=this.pixelPaddingTop,x=this.pixelPaddingLeft,b=this.pixelPaddingRight;e>90||e<-90?-90==p&&(p=90,c=0):(-90==p&&(f=-f),90==p&&(p=-90,c=-x-b,f=-f-m-g)),this.rotation=p+e+90;var C=M(p)/2,S=L(p)/2,P=this.rotation;this.dx=f*C*M(P)-c*S*L(P),this.dy=-f*C*L(P)-c*S*M(P),this.inside?e>90||e<-90?u-=(g+m)*L(p)+(x+b)*M(p):u+=(g+this.bbox.height+m)*L(p)+(x+b+this.bbox.width)*M(p):u+=(f+g+m)*L(p)+(c+x+b)*M(p),o.x+=L(e)*u,o.y+=M(e)*u*n/t}else this.horizontalCenter="middle",this.verticalCenter="middle",l?(this.dx=0,this.dy=0,o.x=(t+u)*L(e),o.y=(n+u*n/t)*M(e)):(this.dy=this._measuredHeight/2*M(e),this.dx=this._measuredWidth/2*L(e),o.x+=L(e)*u,o.y+=M(e)*u*n/t);o.x+=r,o.y+=a,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(o)},i}($r);_.registeredClasses.AxisLabelCircular=Jn;var wo=function(s){function i(){var e=s.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=F(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return w(i,s),i.prototype.setAxis=function(e){var t=this;s.prototype.setAxis.call(this,e),e.isMeasured=!1;var n=e.tooltip;n.adapter.add("dx",function(r,a){var o=at({x:a.pixelX,y:a.pixelY},t);return t.pixelRadius*Math.cos(Math.atan2(o.y,o.x))-o.x}),n.adapter.add("dy",function(r,a){var o=at({x:a.pixelX,y:a.pixelY},t);return t.pixelRadius*Math.sin(Math.atan2(o.y,o.x))-o.y})},i.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),s.prototype.validate.call(this)},Object.defineProperty(i.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Re(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){var e=this.chart,t=this.getPropertyValue("innerRadius");if(e){if(v(t)){if(t instanceof te&&e){var n=e.mr,r=t.value;t=F(100*(r=Math.max(n*r,n-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/n))}}else(t=e.innerRadius)instanceof te&&e&&(t=F(t.value*e.innerRadiusModifyer*100));return t}},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(e){this.setPropertyValue("useChartAngles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return Re(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){y(t)||(t=1);var n=this.positionToCoordinate(e),r=this.startAngle+(this.endAngle-this.startAngle)*n/this.axisLength,a=this.pixelRadius,o=this.pixelInnerRadius;if(this.axisRendererY){var l=R(this.axisRendererY.positionToCoordinate(t),0,1/0);return 0==l&&(l=1e-6),{x:l*L(r),y:l*M(r)}}return{x:L(r)*o+(a-o)*L(r)*t,y:M(r)*o+(a-o)*M(r)*t}},i.prototype.positionToAngle=function(e){var t=this.axis,n=(this.endAngle-this.startAngle)/(t.end-t.start);return V(t.renderer.inversed?this.startAngle+(t.end-e)*n:this.startAngle+(e-t.start)*n,3)},i.prototype.angleToPosition=function(e){var t=this.axis,n=(this.endAngle-this.startAngle)/(t.end-t.start);return V(t.renderer.inversed?t.end-(e-this.startAngle)/n:(e-this.startAngle)/n+t.start,5)},i.prototype.updateAxisLine=function(){var e=this.pixelRadius,t=this.startAngle,n=ie(360,this.endAngle-t);this.line.path=E({x:e*L(t),y:e*M(t)})+Le(t,n,e,e)},i.prototype.updateGridElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location);if(y(r.x)&&y(r.y)&&e.element){var a=vt*Math.atan2(r.y,r.x),o=Re(v(e.radius)?e.radius:F(100),this.pixelRadius),l=Re(e.innerRadius,this.pixelRadius);e.zIndex=0;var h=Re(y(l)?l:this.innerRadius,this.pixelRadiusReal,!0);y(h)||(h=0),e.path=E({x:h*L(a),y:h*M(a)})+T({x:o*L(a),y:o*M(a)})}this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location);if(e.element){var a=this.pixelRadius,o=vt*Math.atan2(r.y,r.x),l=e.length;e.inside&&(l=-l),e.zIndex=1,e.path=E({x:a*L(o),y:a*M(o)})+T({x:(a+l)*L(o),y:(a+l)*M(o)})}this.toggleVisibility(e,t,0,1)},i.prototype.updateBullet=function(e,t,n){var r=.5;e instanceof tn&&(r=e.location);var a=this.positionToPoint(t+=(n-t)*r),o=this.pixelRadius,l=vt*Math.atan2(a.y,a.x);a={x:o*L(l),y:o*M(l)},this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateLabelElement=function(e,t,n,r){v(r)||(r=e.location),e.fixPosition(this.positionToAngle(t+=(n-t)*r),this.pixelRadius),e.zIndex=2,this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i.prototype.getPositionRangePath=function(e,t,n,r,a){var o="";if(y(e)&&y(t)){v(n)||(n=this.radius),e=q(e,this.axis.start),(t=ie(t,this.axis.end))0&&d&&p&&p instanceof Ve){var c=p.renderer.grid.template.location,f=p.getAngle(d.dataItems.getIndex(0),"categoryX",c);r=E({x:a*L(f),y:a*M(f)});for(var g=1;g0&&c&&d&&d instanceof Ve){var g=d.renderer.grid.template.location,m=d.getAngle(c.dataItems.getIndex(0),"categoryX",g);n=E({x:l*L(m),y:l*M(m)});for(var x=1;x=0;x--)n+=T({x:o*L(m=d.getAngle(c.dataItems.getIndex(x),"categoryX",g)),y:o*M(m)})}else n=Pi(h,p,l,o);return n},i.prototype.updateBreakElement=function(e){var n=e.endLine,r=e.fillShape,a=e.startPoint,o=e.endPoint;e.startLine.radius=Math.abs(a.y),n.radius=Math.abs(o.y),r.radius=Math.abs(o.y),r.innerRadius=Math.abs(a.y)},i.prototype.createBreakSprites=function(e){e.startLine=new Hn,e.endLine=new Hn,e.fillShape=new Hn},i.prototype.updateTooltip=function(){if(this.axis){var e=this.axisAngle;e<0&&(e+=360);var t="vertical";(e>45&&e<135||e>225&&e<315)&&(t="horizontal"),this.axis.updateTooltip(t,{x:-4e3,y:-4e3,width:8e3,height:8e3})}},i.prototype.updateTickElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location);if(e.element){var a=Zt(this.axisAngle+90);e.pixelPerfect=a/90==Math.round(a/90);var o=-e.length;e.inside&&(o*=-1),e.path=E({x:0,y:0})+T({x:o*L(a),y:o*M(a)})}this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},i.prototype.updateBullet=function(e,t,n){var r=.5;e instanceof tn&&(r=e.location);var a=this.positionToPoint(t+=(n-t)*r);this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.positionToCoordinate=function(e){var t=this.axis,n=t.axisFullLength,r=this.pixelInnerRadius;return V(t.renderer.inversed?(t.end-e)*n+r:(e-t.start)*n+r,1)},i.prototype.pointToPosition=function(e){var t=oe(e)-this.pixelInnerRadius;return this.coordinateToPosition(t)},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),i}(mt);_.registeredClasses.AxisRendererRadial=Co;var Bp=function(s){function i(){var e=s.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return w(i,s),i}(Qr),Oo=function(s){function i(){var e=s.call(this)||this;e._axisRendererX=wo,e._axisRendererY=Co,e.innerRadiusModifyer=1,e.mr=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=F(80),e.innerRadius=0;var t=e.plotContainer.createChild(W);return t.shouldClone=!1,t.layout="absolute",t.align="center",t.valign="middle",e.seriesContainer.parent=t,e.radarContainer=t,e.bulletsContainer.parent=t,e.axisBulletsContainer=t,e._cursorContainer=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e._bulletMask=t.createChild(ii),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},i.prototype.processAxis=function(e){s.prototype.processAxis.call(this,e);var t=e.renderer;t.gridContainer.parent=t,t.breakContainer.parent=t,e.parent=this.radarContainer,t.toBack()},i.prototype.handleXAxisRangeChange=function(){s.prototype.handleXAxisRangeChange.call(this),A(this.yAxes.iterator(),function(e){e.invalidate()})},i.prototype.handleYAxisRangeChange=function(){s.prototype.handleYAxisRangeChange.call(this),A(this.xAxes.iterator(),function(e){e.invalidate()})},i.prototype.processConfig=function(e){if(e&&(v(e.cursor)&&!v(e.cursor.type)&&(e.cursor.type="RadarCursor"),v(e.series)&&Ae(e.series)))for(var t=0,n=e.series.length;ta&&(this.rotation=a+360),this.animate({property:"rotation",to:r},t,n)}},Object.defineProperty(i.prototype,"currentPosition",{get:function(){if(this.axis)return this.axis.renderer.angleToPosition(this.rotation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){this.showValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this.axis!=e&&this._axis.set(e,new _e([e.events.on("datavalidated",this.updateValue,this,!1),e.events.on("datarangechanged",this.updateValue,this,!1),e.events.on("dataitemsvalidated",this.updateValue,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),e){var t=e.chart;t&&(this.rotation=t.startAngle)}this.parent=e.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),i.prototype.updateValue=function(){this.value=this.value},i.prototype.processConfig=function(e){e&&v(e.axis)&&J(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),s.prototype.processConfig.call(this,e)},i}(W);_.registeredClasses.ClockHand=So;var kd=function(s){function i(){var e=s.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}return w(i,s),i}(Bp),Hp=function(s){function i(){var e=s.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new Oe(new So),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new fe(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},i.prototype.processHand=function(e){var t=e.newValue;t.axis||(t.axis=this.xAxes.getIndex(0))},i.prototype.configOrder=function(e,t){return e==t?0:"hands"==e?1:"hands"==t?-1:s.prototype.configOrder.call(this,e,t)},i}(Oo);_.registeredClasses.GaugeChart=Hp;var ns=function(s){function i(){var e=s.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return w(i,s),i.prototype.uidAttr=function(){return this.slice.uidAttr()},i.prototype.hide=function(e,t,n,r){return r||(r=["value"]),s.prototype.hide.call(this,e,t,0,r)},i.prototype.setVisibility=function(e,t){t||this.setWorkingValue("value",e?this.values.value.value:0,0,0),s.prototype.setVisibility.call(this,e,t)},i.prototype.show=function(e,t,n){return n||(n=["value"]),s.prototype.show.call(this,e,t,n)},Object.defineProperty(i.prototype,"category",{get:function(){return this.properties.category},set:function(e){this.setProperty("category",e)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){this.component.createLegendMarker(e,this)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){var e=this;if(!this._tick){var t=this.component.ticks.create();this._tick=t,this.addSprite(t),this._disposers.push(t),t.parent=this.component.ticksContainer,this._disposers.push(new le(function(){e.component&&e.component.ticks.removeValue(t)})),t.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){var e=this;if(!this._label){var t=this.component.labels.create();this.addSprite(t),this._label=t,this._disposers.push(t),t.parent=this.component.labelsContainer,this._disposers.push(new le(function(){e.component&&e.component.labels.removeValue(t)})),t.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"slice",{get:function(){var e=this;if(!this._slice){var t=this.component,n=t.slices.create();this.addSprite(n),this._slice=n,this._disposers.push(n),n.parent=t.slicesContainer,this._disposers.push(new le(function(){t.slices.removeValue(n)})),n.visible=this.visible,t.itemsFocusable()?(v(this.component.role)||(this.component.role="menu"),v(n.role)||(n.role="menuitem"),n.focusable=!0):(v(this.component.role)||(this.component.role="list"),v(n.role)||(n.role="listitem"),n.focusable=!1),n.focusable&&(n.events.on("focus",function(r){n.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),n.events.on("blur",function(r){n.readerTitle=""},void 0,!1)),n.hoverable&&(n.events.on("over",function(r){n.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),n.events.on("out",function(r){n.readerTitle=""},void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(e){this.setProperty("hiddenInLegend",e)},enumerable:!0,configurable:!0}),i}(Yn),Qn=function(s){function i(){var e=s.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new $i,e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var t=e.createChild(W);t.shouldClone=!1,t.isMeasured=!1,e.slicesContainer=t;var n=e.createChild(W);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",e.ticksContainer=n;var r=e.createChild(W);return r.shouldClone=!1,r.isMeasured=!1,r.layout="none",e.labelsContainer=r,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50,e.defaultState.transitionEasing=Da,e.itemReaderText="{category}: {value.percent.formatNumber('#.#p')}",e.applyTheme(),e}return w(i,s),i.prototype.createSlice=function(){return new $},i.prototype.createTick=function(){return new en},i.prototype.createLabel=function(){return new $e},Object.defineProperty(i.prototype,"slices",{get:function(){if(!this._slices){var e=this.createSlice();e.applyOnClones=!0,this._disposers.push(e),this.initSlice(e),this._slices=new Oe(e),this._disposers.push(new fe(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,this._disposers.push(e),this.initTick(e),this._ticks=new Oe(e),this._disposers.push(new fe(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();e.applyOnClones=!0,this._disposers.push(e),this.initLabel(e),this._labels=new Oe(e),this._disposers.push(new fe(this._labels))}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createDataItem=function(){return new ns},i.prototype.initSlice=function(e){},i.prototype.initLabel=function(e){e.text="{category}: {value.percent.formatNumber('#.0p')}",e.isMeasured=!1,e.padding(5,5,5,5)},i.prototype.initTick=function(e){},i.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),s.prototype.validateDataItems.call(this)},i.prototype.validateDataElement=function(e){var t=e.slice;t&&(null==t.fill?this.patterns?(v(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),v(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof se&&(t.fill.stroke=t.stroke,t.fill.fill=t.stroke)):t.fill=this.colors.next():this.colors.currentStep+=this.colors.step,null==t.stroke&&(t.stroke=t.fill)),s.prototype.validateDataElement.call(this,e),t&&e.bullets.each(function(n,r){null==r.fill&&(r.fill=t.fill),null==r.stroke&&(r.stroke=t.stroke)}),this.updateLegendValue(e)},i.prototype.validateData=function(){s.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},i.prototype.arrangeLabels=function(e){for(var t=0,n=e.length;t=0;n--){var r=e[n].label;if(r){r.invalid&&r.validate();var a=r.measuredHeight;r.visible||(a=0),n==e.length-1&&(t+=a/2),r.pixelY+a>t&&(r.y=t-a,t=r.y)}}},i.prototype.getNextLabel=function(e,t){if(t.length>=e){var n=t[e];if(n)return n.label&&n.visible?n.label:this.getNextLabel(e+1,t)}},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e,t){A(e.children.iterator(),function(n){var r=t.slice;n.defaultState.properties.fill=r.fill,n.defaultState.properties.stroke=r.stroke,n.defaultState.properties.fillOpacity=r.fillOpacity,n.defaultState.properties.strokeOpacity=r.strokeOpacity,n.fill=r.fill,n.stroke=r.stroke,n.fillOpacity=r.fillOpacity,n.strokeOpacity=r.strokeOpacity,null==n.fill&&(n.__disabled=!0);var a=e.dataItem;a.color=r.fill,a.colorOrig=r.fill,n.addDisposer(r.events.on("propertychanged",function(o){"fill"==o.property&&(n.__disabled=!1,n.isActive||(n.fill=r.fill),n.defaultState.properties.fill=r.fill,a.color=r.fill,a.colorOrig=r.fill),"stroke"==o.property&&(n.isActive||(n.stroke=r.stroke),n.defaultState.properties.stroke=r.stroke),"strokeOpacity"==o.property&&(n.isActive||(n.strokeOpacity=r.strokeOpacity),n.defaultState.properties.strokeOpacity=r.strokeOpacity)},void 0,!1))})},i.prototype.handleSliceScale=function(e){var t=this,n=e.target.dataItem;n&&n.bullets&&A(n.bullets.iterator(),function(r){t.positionBullet(r[1])})},i.prototype.handleSliceMove=function(e){},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template),this.colors=e.colors.clone()},Object.defineProperty(i.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(e){this.setAlignLabels(e)},enumerable:!0,configurable:!0}),i.prototype.setAlignLabels=function(e){this.setPropertyValue("alignLabels",e,!0)},Object.defineProperty(i.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(e){this.setPropertyValue("ignoreZeroValues",e,!0)},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e){if(e){var t=e.legendDataItem,n=e.legendSettings;t&&n&&n&&(n.labelText&&(t.label.text=n.labelText),n.itemLabelText&&(t.label.text=n.itemLabelText),n.valueText&&(t.valueLabel.text=n.valueText),n.itemValueText&&(t.valueLabel.text=n.itemValueText))}},i}(zn);_.registeredClasses.PercentSeries=Qn,_.registeredClasses.PercentSeriesDataItem=ns,Ne.push({relevant:Ue.maybeXS,state:function(s,i){if(s instanceof Qn){var e=s.states.create(i);return s.labels.template.states.create(i).properties.disabled=!0,s.ticks.template.states.create(i).properties.disabled=!0,e}return null}});var Io=function(s){function i(){var e=s.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return w(i,s),i}(uo),Do=function(s){function i(){var e=s.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return w(i,s),i.prototype.validateData=function(){s.prototype.validateData.call(this),this.feedLegend()},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];A(this.series.iterator(),function(n){n.hiddenInLegend||A(n.dataItems.iterator(),function(r){r.hiddenInLegend||(t.push(r),r.legendSettings||(r.legendSettings=n.legendSettings))})}),e.data=t,e.dataFields.name="category"}},i.prototype.createSeries=function(){return new Qn},i.prototype.setLegend=function(e){s.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0p')}",e.itemContainers.template.events.on("over",function(t){var n=t.target.dataItem.dataContext;if(n.visible&&!n.isHiding){var r=n.slice;r.dispatchImmediately("over"),r.isHover=!0,r.interactions.isRealHover=!0}}),e.itemContainers.template.events.on("out",function(t){var n=t.target.dataItem.dataContext.slice;n.dispatchImmediately("out"),n.isHover=!1}))},i}(Zr);_.registeredClasses.PercentChart=Do,_.registeredClasses.PercentChartDataItem=Io;var To=function(s){function i(){var e=s.call(this)||this;return e._label=new Me,e._slice=new Me,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.slice,t=this.label;if(e&&e.radius>0&&t&&t.text){var r=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,a=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,o=void 0,l=void 0,h=void 0,p=void 0;if(e.dataItem.component.alignLabels)o=t.pixelX-this.length,h=t.pixelX,p=l=t.pixelY,"right"==t.horizontalCenter&&(h=(o+=2*this.length)-this.length);else{var u=t.pixelRadius(e.radius);h=o=r+u*e.ix,p=l=a+u*e.iy}this.element.attr({points:[r,a,o,l,h,p]})}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new _e([e.events.on("transformed",this.invalidate,this),e.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),i}(en);_.registeredClasses.PieTick=To;var rs=function(s){function i(){var e=s.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(e){this.setValue("radiusValue",e)},enumerable:!0,configurable:!0}),i.prototype.hide=function(e,t,n,r){return s.prototype.hide.call(this,e,t,0,["value","radiusValue"])},i.prototype.show=function(e,t,n){return s.prototype.show.call(this,e,t,["value","radiusValue"])},i}(ns),ss=function(s){function i(){var e=s.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=F(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return w(i,s),i.prototype.createSlice=function(){return new ri},i.prototype.createTick=function(){return new To},i.prototype.createLabel=function(){return new Jn},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},i.prototype.createDataItem=function(){return new rs},i.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})",e.states.create("hover").properties.scale=1.05,e.defaultState.properties.shiftRadius=0,e.togglable=!0,e.events.on("toggled",function(t){t.target.hideTooltip(),t.target.interactions.lastHitPointer&&t.target.interactions.lastHitPointer.touch&&!t.target.isActive&&(t.target.isHover=!1)}),e.states.create("active").properties.shiftRadius=.1},i.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=xt(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;ethis._maxRadiusPercent&&(this._maxRadiusPercent=t)}s.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(n,r){var a=(n.slice.middleAngle+360)%360,o=(r.slice.middleAngle+360)%360;return a>270&&(a-=360),o>270&&(o-=360),ao?1:0}),this._leftItems.sort(function(n,r){var a=(n.slice.middleAngle+360)%360,o=(r.slice.middleAngle+360)%360;return ao?-1:0}),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},i.prototype.validateDataElement=function(e){if(this.pixelRadius>0){e.__disabled=!(!this.ignoreZeroValues||0!=e.value&&null!=e.value);var t=e.slice;if(t.radius=this.pixelRadius,y(e.radiusValue)&&(t.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),t.innerRadius instanceof te||(t.innerRadius=this.pixelInnerRadius),t.startAngle=this._currentStartAngle,t.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var n=e.label,r=e.tick;r.slice=t,r.label=n;var a=(t.middleAngle+360)%360;if(this.alignLabels){var l=n.pixelRadius(t.radius),h=r.length+l;n.dx=0,n.dy=0,n.verticalCenter="middle";var p=this._arcRect;a>270||a<=90?(h+=(p.width+p.x)*this.pixelRadius,n.horizontalCenter="left",this._rightItems.push(e)):(h-=p.x*this.pixelRadius,n.horizontalCenter="right",this._leftItems.push(e),h*=-1),n.moveTo({x:h,y:t.iy*(t.radius+r.length+l)})}else{var d=t.depth;y(d)||(d=0),n.fixPosition(t.middleAngle,t.radius,t.radiusY,0,-d)}}this._currentStartAngle+=t.arc,s.prototype.validateDataElement.call(this,e)}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(e){this._pixelRadius!=e&&(this._pixelRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(e){this._pixelInnerRadius!=e&&(this._pixelInnerRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){var e=this.getPropertyValue("startAngle");return y(e)?e:this._startAngleInternal},set:function(e){this.setPropertyValue("startAngle",Zt(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){var e=this.getPropertyValue("endAngle");return y(e)?e:this._endAngleInternal},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){s.prototype.positionBullet.call(this,e);var t=e.dataItem.slice,n=e.locationX;y(n)||(n=.5);var r=e.locationY;y(r)||(r=1);var a=t.startAngle+t.arc*n;e.x=r*t.radius*L(a),e.y=r*t.radiusY*M(a)},i.prototype.handleSliceMove=function(e){if(!this.alignLabels){var t=e.target,n=t.dataItem;if(n){var r=n.label;r&&(r.dx=r.fdx+t.dx+t.pixelX,r.dy=r.fdy+t.dy+t.pixelY)}}},Object.defineProperty(i.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var e=this.chart;return e?xt(e.startAngle,e.endAngle,this.pixelRadius):xt(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),i}(Qn);_.registeredClasses.PieSeries=ss,_.registeredClasses.PieSeriesDataItem=rs;var ko=function(s){function i(){var e=s.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return w(i,s),i}(Io),Ao=function(s){function i(){var e=s.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=F(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var t=e.seriesContainer;return t.isMeasured=!0,t.valign="middle",t.align="center",t.layout="absolute",t.width=void 0,t.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},i.prototype.validateLayout=function(){s.prototype.validateLayout.call(this),this.updateRadius()},i.prototype.handleSeriesAdded=function(e){s.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},i.prototype.updateSeriesAngles=function(){var e=this;this.series.each(function(t){t._startAngleInternal=e.startAngle,t._endAngleInternal=e.endAngle})},i.prototype.updateRadius=function(){var e=this.chartContainer,t=xt(this.startAngle,this.endAngle,1),n={x:0,y:0,width:0,height:0},r=this.innerRadius;r instanceof te&&(n=xt(this.startAngle,this.endAngle,r.value)),t=Mi([t,n]);var a=Math.min(e.innerWidth/t.width,e.innerHeight/t.height);y(a)||(a=0);var o=Re(this.radius,a),l=Re(this.innerRadius,a),h=(o-l)/this.series.length;o==this._chartPixelRadius&&l==this._chartPixelInnerRadius||(this._chartPixelRadius=o,this._chartPixelInnerRadius=l,A($t(this.series.iterator()),function(p){var u=p[0],d=p[1],c=l+Re(d.radius,o-l),f=l+Re(d.innerRadius,o-l);y(c)||(c=l+h*(u+1)),y(f)||(f=l+h*u),d.pixelRadius=c,d.pixelInnerRadius=f}),this.seriesContainer.definedBBox={x:o*t.x,y:o*t.y,width:o*t.width,height:o*t.height},this.seriesContainer.invalidateLayout(),this.bulletsContainer.x=this.seriesContainer.x,this.bulletsContainer.y=this.seriesContainer.y)},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new ss},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),i}(Do);_.registeredClasses.PieChart=Ao,_.registeredClasses.PieChartDataItem=ko;var Vo=function(s){function i(){var e=s.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(e){this.setValue("depthValue",e)},enumerable:!0,configurable:!0}),i}(rs),Fo=function(s){function i(){var e=s.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return w(i,s),i.prototype.createDataItem=function(){return new Vo},i.prototype.createSlice=function(){return new Ip},i.prototype.validateDataElement=function(e){var t=e.slice,n=this.depth;y(n)||(n=this.chart.depth);var r=e.values.depthValue.percent;y(r)||(r=100),t.depth=r*n/100;var a=this.angle;y(a)||(a=this.chart.angle),t.angle=a,s.prototype.validateDataElement.call(this,e)},i.prototype.validate=function(){s.prototype.validate.call(this);for(var e=this._workingStartIndex;e=-90&&n<90?t.toFront():n>=90&&t.toBack()}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){s.prototype.positionBullet.call(this,e),e.y=e.pixelY-e.dataItem.slice.depth},i}(ss);_.registeredClasses.PieSeries3D=Fo,_.registeredClasses.PieSeries3DDataItem=Vo;var Ad=function(s){function i(){var e=s.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}return w(i,s),i}(ko),Np=function(s){function i(){var e=s.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){e=R(e,0,90),this.setPropertyValue("angle",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new Fo},i}(Ao);_.registeredClasses.PieChart3D=Np;var Wp=function(s){function i(){var e=s.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return w(i,s),i}(Io),Xp=function(s){function i(){var e=s.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return w(i,s),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},i.prototype.validate=function(){s.prototype.validate.call(this)},i}(Do);_.registeredClasses.SlicedChart=Xp,_.registeredClasses.SlicedChartDataItem=Wp;var er=function(s){function i(){var e=s.call(this)||this;return e.legendSettings=new po,e.className="FlowDiagramNode",e.isMeasured=!1,new ae,e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invalidateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return w(i,s),i.prototype.handleHit=function(e){this.isHidden||this.isHiding?this.show():this.hide()},i.prototype.show=function(e){var t=s.prototype.show.call(this,e);return this.outgoingDataItems.each(function(n){(!n.toNode||n.toNode&&!n.toNode.isHidden)&&(n.setWorkingValue("value",n.getValue("value"),e),n.link.show())}),this.incomingDataItems.each(function(n){(!n.fromNode||n.fromNode&&!n.fromNode.isHidden)&&(n.setWorkingValue("value",n.getValue("value"),e),n.link.show())}),t},i.prototype.hide=function(e){var t=s.prototype.hide.call(this,e);return this.outgoingDataItems.each(function(n){n.setWorkingValue("value",0,e),n.link.hide()}),this.incomingDataItems.each(function(n){n.setWorkingValue("value",0,e),n.link.hide()}),t},i.prototype.validate=function(){this.isDisposed()||(s.prototype.validate.call(this),this.invalidateLinks())},i.prototype.invalidateLinks=function(){var e=this;this.outgoingDataItems.each(function(t){var n=t.link;if("fromNode"==n.colorMode&&(n.fill=n.dataItem.fromNode.color),"gradient"==n.colorMode){n.fill=n.gradient,n.stroke=n.gradient;var r=n.gradient.stops.getIndex(0);r&&(r.color=e.color,n.gradient.validate())}}),this.incomingDataItems.each(function(t){var n=t.link;if("toNode"==n.colorMode&&(n.fill=n.dataItem.toNode.color),"gradient"==n.colorMode){n.fill=n.gradient,n.stroke=n.gradient;var r=n.gradient.stops.getIndex(1);r&&(r.color=e.color,n.gradient.validate())}})},Object.defineProperty(i.prototype,"incomingDataItems",{get:function(){var e=this;if(!this._incomingDataItems){var t=new re;t.events.on("inserted",function(){e._incomingSorted="name"==e.chart.sortBy?yi(e._incomingDataItems.iterator(),function(n,r){return fr(n.fromName,r.fromName)}):"value"==e.chart.sortBy?yi(e._incomingDataItems.iterator(),function(n,r){return yr(Pt(n.value,r.value))}):e._incomingDataItems.iterator()},void 0,!1),this._incomingDataItems=t}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outgoingDataItems",{get:function(){var e=this;if(!this._outgoingDataItems){var t=new re;t.events.on("inserted",function(){e._outgoingSorted="name"==e.chart.sortBy?yi(e._outgoingDataItems.iterator(),function(n,r){return fr(n.fromName,r.fromName)}):"value"==e.chart.sortBy?yi(e._outgoingDataItems.iterator(),function(n,r){return yr(Pt(n.value,r.value))}):e._outgoingDataItems.iterator()},void 0,!1),this._outgoingDataItems=t}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(e){this.setPropertyValue("total",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(e){this.setPropertyValue("totalIncoming",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(e){this.setPropertyValue("totalOutgoing",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.getPropertyValue("color")},set:function(e){this.setColorProperty("color",e),this._background&&(this._background.fill=e),this.fill=e},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,n=e.pixelHeight;e.removeChildren();var r=e.createChild(St);r.shouldClone=!1,De(this,r,Ie),r.stroke=this.fill,r.copyFrom(this),r.padding(0,0,0,0),r.width=t,r.height=n;var a=e.dataItem;a.color=r.fill,a.colorOrig=r.fill},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i}(W);_.registeredClasses.FlowDiagramNode=er;var tr=function(s){function i(){var e=s.call(this)||this;e.className="FlowDiagramLink";var t=new ae;return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}\u2192{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild($),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=t.getFor("alternativeBackground"),e.applyTheme(),e}return w(i,s),i.prototype.positionBullets=function(){var e=this;A(this.bullets.iterator(),function(t){t.parent=e.bulletsContainer,t.maxWidth=e.maxWidth,t.maxHeight=e.maxHeight,e.positionBullet(t)})},Object.defineProperty(i.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var e=this.createChild(W);e.shouldClone=!1,e.layout="none",this._bulletsContainer=e}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var e=this.createChild($);e.shouldClone=!1,e.setElement(this.paper.add("path")),e.isMeasured=!1,this._bulletsMask=e}return this._bulletsMask},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){var t=e.locationX;y(t)||(t=e.locationY),y(t)||(t=.5);var r,n=this.middleLine.positionToPoint(t);e.moveTo(n),e.dataItem&&(r=e.dataItem.dataContext[e.propertyFields.rotation]),y(r)||(r=n.angle),e.rotation=r},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(e){if("gradient"==e){var t=this.fill;this.gradient.stops.clear(),t instanceof se&&(this.gradient.addColor(t),this.gradient.addColor(t)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){s.prototype.setFill.call(this,e);var t=this._gradient;t&&e instanceof se&&(t.stops.clear(),t.addColor(e),t.addColor(e))},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bullets",{get:function(){var e=this;return this._bullets||(this._bullets=new Oe(new It),this._disposers.push(new fe(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",function(t){t.newValue.events.on("propertychanged",function(n){"locationX"!=n.property&&"locationY"!=n.property||e.positionBullet(n.target)},void 0,!1)},void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var t=this.middleLine;t&&(t instanceof yt&&e.middleLine instanceof yt&&t.copyFrom(e.middleLine),t instanceof qi&&e.middleLine instanceof qi&&t.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},i.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},i.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(i.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new dt),this._gradient},enumerable:!0,configurable:!0}),i}(W);_.registeredClasses.FlowDiagramLink=tr;var as=function(s){function i(){var e=s.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(e){this.setProperty("fromName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toName",{get:function(){return this.properties.toName},set:function(e){this.setProperty("toName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",ft(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"link",{get:function(){var e=this;if(!this._link){var t=this.component.links.create();this._link=t,this.addSprite(t),this._disposers.push(new le(function(){e.component&&e.component.links.removeValue(t)}))}return this._link},enumerable:!0,configurable:!0}),i}(ho),os=function(s){function i(){var e=s.call(this)||this;e.colors=new $i,e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var t=e.chartContainer.createChild(W);t.shouldClone=!1,t.layout="none",t.isMeasured=!1,e.linksContainer=t;var n=e.chartContainer.createChild(W);return n.shouldClone=!1,n.layout="none",n.isMeasured=!1,e.nodesContainer=n,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return w(i,s),i.prototype.dispose=function(){s.prototype.dispose.call(this),this.dataItem.dispose()},i.prototype.validateData=function(){var e=this;0==this._parseDataFrom&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),s.prototype.validateData.call(this);var t,n,r=0,a=0;A(this.dataItems.iterator(),function(l){var h=l.fromName;h&&((p=e.nodes.getKey(h))||((p=e.nodes.create(h)).name=h,p.chart=e,p.dataItem=l),l.fromNode=p,l.fromNode.outgoingDataItems.push(l));var p,u=l.toName;if(u&&((p=e.nodes.getKey(u))||((p=e.nodes.create(u)).name=u,p.chart=e,p.dataItem=l),l.toNode=p,l.toNode.incomingDataItems.push(l)),!l.fromNode){var d=new Nn;d.opacities=[0,1],l.link.strokeModifier=d}if(!l.toNode){var c=new Nn;c.opacities=[1,0],l.link.strokeModifier=c}var f=l.value;y(f)&&(r+=f,a++,(t>f||!y(t))&&(t=f),(nthis.dataItems.length||A(e.incomingDataItems.iterator(),function(n){t.checkLoop(n.fromNode)})},i.prototype.calculateValueHeight=function(){var e=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var t,n,r,a=this.dataItem.values.value.sum;A(this._sorted,function(u){e.getNodeValue(u[1])}),this.nodes.each(function(u,d){var c=d.level,f=Math.max(d.totalIncoming,d.totalOutgoing);f/ag||!y(r))&&(r=g,e.maxSum=c,n=ce(u))}),this._maxSumLevel=n;var l=(t-(this._levelNodesCount[this._maxSumLevel]-1)*this.nodePadding)/this.maxSum;if(l==1/0&&(l=0),y(this.valueHeight)){var h=void 0;try{h=this._heightAnimation.animationOptions[0].to}catch{}if(h!=l){var p=this.interpolationDuration;try{p=this.nodes.template.states.getKey("active").transitionDuration}catch{}this._heightAnimation=new gt(this,{property:"valueHeight",from:this.valueHeight,to:l},p,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}else this.valueHeight=l},i.prototype.validate=function(){var e=this;s.prototype.validate.call(this),this.calculateValueHeight();var t,n=this.nodesContainer,r={},a=this._levelNodesCount[this._maxSumLevel],o=this.dataItem.values.value.sum;t="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,A(this._sorted,function(l){var p,u,d=l[1],c=d.level,f=0,g=e._levelNodesCount[c];switch(e.nodeAlign){case"bottom":f=(e.maxSum-e._levelSum[c])*e.valueHeight-(g-a)*e.nodePadding;break;case"middle":f=(e.maxSum-e._levelSum[c])*e.valueHeight/2-(g-a)*e.nodePadding/2}if(0==e.maxSum)switch(e.nodeAlign){case"bottom":f=t-g*(e.minNodeSize*t+e.nodePadding);break;case"middle":f=t/2-g/2*(e.minNodeSize*t+e.nodePadding)}d.parent=n;var m=Math.max(d.totalIncoming,d.totalOutgoing);if(m/o0){var n=this.nodesContainer,r=0;A(this.links.iterator(),function(a){a.hide(0)}),A(this._sorted,function(a){var o,l=a[1];"horizontal"==t.orientation?(l.dx=-(n.pixelWidth-l.pixelWidth)/Math.max(t._levelCount,1),o="dx"):(l.dy=-(n.pixelHeight-l.pixelHeight)/Math.max(t._levelCount,1),o="dy");var h=0;t.sequencedInterpolation&&(h=t.sequencedInterpolationDelay*r+t.interpolationDuration*r/Tl(t.nodes.iterator())),l.opacity=0,l.invalidateLinks(),l.animate([{property:"opacity",from:0,to:1},{property:o,to:0}],t.interpolationDuration,t.interpolationEasing).delay(h),A(l.outgoingDataItems.iterator(),function(u){var d=u.link.show(t.interpolationDuration);d&&!d.isFinished()&&d.delay(h)}),A(l.incomingDataItems.iterator(),function(u){if(!u.fromNode){var d=u.link.show(t.interpolationDuration);d&&!d.isFinished()&&d.delay(h)}}),r++})}return s.prototype.showReal.call(this)}},i.prototype.changeSorting=function(){var e=this;this.sortNodes();var t={};A(this._sorted,function(n){var r,a,o=n[1],l=o.level,h=(e.maxSum-e._levelSum[l])*e.valueHeight/2;"horizontal"==e.orientation?(r="y",a=o.pixelHeight):(r="x",a=o.pixelWidth),o.animate({property:r,to:t[l]||h},e.interpolationDuration,e.interpolationEasing),t[l]=(t[l]||h)+a+e.nodePadding,o.invalidateLinks()})},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},i.prototype.createDataItem=function(){return new Yp},Object.defineProperty(i.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(e){this.setPropertyValue("nodeAlign",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var t=this.nodes.template.nameLabel;"vertical"==e?(this.nodes.template.width=void 0,t.label.horizontalCenter="middle",t.locationX=.5):(this.nodes.template.height=void 0,t.label.horizontalCenter="left",t.locationX=1)},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var e=new Mo;return this._disposers.push(e),e},i.prototype.createLink=function(){var e=new Lo;return this._disposers.push(e),e},Object.defineProperty(i.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(e){e!=this._valueHeight&&(this._valueHeight=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},i}(os);_.registeredClasses.SankeyDiagram=zp;var jo=function(s){function i(){var e=s.call(this)||this;e.className="ChordNode";var t=e.createChild(Jn);t.location=.5,t.radius=5,t.text="{name}",t.zIndex=1,t.shouldClone=!1,e.label=t,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(ri),e.slice.isMeasured=!1;var n=e.hiddenState;return n.properties.fill=(new ae).getFor("disabledBackground"),n.properties.opacity=.5,n.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",function(r,a){return a.slice.ix*(a.slice.radius-(a.slice.radius-a.slice.pixelInnerRadius)/2)}),e.adapter.add("tooltipY",function(r,a){return a.slice.iy*(a.slice.radius-(a.slice.radius-a.slice.pixelInnerRadius)/2)}),e}return w(i,s),i.prototype.invalidateLinks=function(){var e=this;s.prototype.invalidateLinks.call(this);var t=this.label,n=this.slice,r=this.chart;if(r&&n){var a=this.total,o=n.arc,l=n.startAngle;this.children.each(function(u){if(u instanceof It){var d=u.locationX;y(d)||(d=.5);var c=u.locationY;y(c)||(c=1);var f=l+o*d,g=c*n.radius;u.x=g*L(f),u.y=g*M(f)}});var h=l+o*t.location,p=l+(1-a/this.adjustedTotal)*o*.5;Fe(p)&&(p=l),t.fixPosition(h,n.radius),this.nextAngle=p,this._outgoingSorted&&A(this._outgoingSorted,function(u){var d=u.link;d.parent=e.chart.linksContainer;var c=u.getWorkingValue("value");if(y(c)){if(r.nonRibbon){var f=d.percentWidth;y(f)||(f=5),d.startAngle=l+o/2-o/2*(f/=100),d.arc=o*f}else d.arc=c*r.valueAngle,d.startAngle=e.nextAngle,e.nextAngle+=d.arc;u.toNode||(d.endAngle=d.startAngle),d.radius=n.pixelInnerRadius}}),this._incomingSorted&&A(this._incomingSorted,function(u){var d=u.link;if(d.radius=n.pixelInnerRadius,r.nonRibbon){var c=d.percentWidth;y(c)||(c=5),d.endAngle=l+o/2-o/2*(c/=100),d.arc=o*c}else{d.endAngle=e.nextAngle;var f=u.getWorkingValue("value");y(f)&&(d.arc=f*r.valueAngle,e.nextAngle+=d.arc)}u.fromNode||(d.startAngle=d.endAngle)})}},i.prototype.updateRotation=function(){var e=this.slice,t=this.trueStartAngle+e.arc/2,n=e.radius,r=n*L(t),a=n*M(t),o=Ee({x:r+this.pixelX,y:a+this.pixelY});e.startAngle=this.trueStartAngle+(o-t),this.dx=-this.pixelX,this.dy=-this.pixelY},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},i}(er);_.registeredClasses.ChordNode=jo;var Vd=function(s){function i(){var e=s.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=B(),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){if(y(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var t={x:this.x2,y:this.y2},n={x:this.cpx,y:this.cpy},r=E({x:this.x1,y:this.y1})+ni(t,n);this.path=r}},Object.defineProperty(i.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(e){this.setPropertyValue("cpx",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(e){this.setPropertyValue("cpy",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t={x:this.x1,y:this.y1},n={x:this.cpx,y:this.cpy},r={x:this.x2,y:this.y2},a=zs(t,r,n,e),o=zs(t,r,n,e+.001);return{x:a.x,y:a.y,angle:Ee(a,o)}},i}(yt),Eo=function(s){function i(){var e=s.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(Vd),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return w(i,s),i.prototype.validate=function(){if(s.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,t=this.endAngle,n=this.arc,r=this.radius,a=this.dataItem.fromNode,o=this.dataItem.toNode,l=0,h=0;a&&(l=a.pixelX+a.dx,h=a.pixelY+a.dy);var p=0,u=0;if(o&&(p=o.pixelX+o.dx,u=o.pixelY+o.dy),r>0){var d=r*L(e)+l,c=r*M(e)+h,f=r*L(t)+p,g=r*M(t)+u,m={x:0,y:0},x=E({x:d,y:c});x+=Le(e,n,r),x+=ni({x:f,y:g},m),x+=Le(t,n,r),x+=ni({x:d,y:c},m),this.link.path=n>0?x:"",this.maskBullets&&(this.bulletsMask.path=x,this.bulletsContainer.mask=this.bulletsMask);var b=e+n/2,C=t+n/2,S=this.middleLine;S.x1=r*L(b)+l,S.y1=r*M(b)+h,S.x2=r*L(C)+p,S.y2=r*M(C)+u,S.cpx=0,S.cpy=0,S.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),i}(tr);_.registeredClasses.ChordLink=Eo;var Up=function(s){function i(){var e=s.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return w(i,s),i}(as),Gp=function(s){function i(){var e=s.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=F(80),e.innerRadius=-15,e.nodePadding=5;var t=e.chartContainer.createChild(W);return t.align="center",t.valign="middle",t.shouldClone=!1,t.layout="absolute",e.chordContainer=t,e.nodesContainer.parent=t,e.linksContainer.parent=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return w(i,s),i.prototype.validate=function(){var e=this,t=this.chartContainer,n=this.endAngle,r=this.startAngle+this.nodePadding/2,a=xt(this.startAngle,this.endAngle,1);a=Mi([a,{x:0,y:0,width:0,height:0}]);var o=Math.min(t.innerWidth/a.width,t.innerHeight/a.height);y(o)||(o=0);var l=Re(this.radius,o),h=Re(this.innerRadius,l,!0),p=this.dataItem.values.value.sum,u=0,d=0;A(this._sorted,function(c){var f=c[1];e.getNodeValue(f),u++;var g=f.total;f.total/pthis.endIndex;c--)f=this.dataItems.getIndex(c),this.disableUnusedColumns(f);this._propertiesChanged=!1},i.prototype.sortCategoryAxis=function(e,t){var n=this;this.dataItems.values.sort(function(a,o){return o.values[t].workingValue-a.values[t].workingValue});var r=0;this.dataItems.each(function(a){a._index=r,r++}),e.dataItems.each(function(a){var o=a.component,l=o.categoryToPosition(a.category)-a.deltaPosition,h=o.getSeriesDataItemByCategory(a.category,n);if(h){var p=n.dataItems.indexOf(h);a._index=p;var u=V((p+.5)/n.dataItems.length-l,3);a.deltaAnimation&&!a.deltaAnimation.isDisposed()&&a.deltaAnimation.animationOptions[0].to==u||u!=V(a.deltaPosition,3)&&(a.deltaAnimation&&a.deltaAnimation.stop(),a.deltaAnimation=a.animate({property:"deltaPosition",from:-u,to:0},o.interpolationDuration,o.interpolationEasing),n._disposers.push(a.deltaAnimation))}}),e.dataItems.values.sort(function(a,o){return a.index-o.index})},i.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),s.prototype.validateDataElement.call(this,e))},i.prototype.getStartLocation=function(e){return this._startLocation+(this.baseAxis==this.xAxis?e.locations[this.xOpenField]-.5:e.locations[this.yOpenField]-.5)},i.prototype.getEndLocation=function(e){return this._endLocation+(this.baseAxis==this.xAxis?e.locations[this.xField]-.5:e.locations[this.yField]-.5)},i.prototype.validateDataElementReal=function(e){var t,n,r,a,o=this,l=this.getStartLocation(e),h=this.getEndLocation(e),p=this.xField,u=this.xOpenField,d=this.yField,c=this.yOpenField,f=this.columns.template,g=f.percentWidth,m=f.percentHeight,x=f.pixelWidth,b=f.pixelHeight,C=f.maxWidth,S=f.maxHeight,P=f.pixelPaddingLeft,O=f.pixelPaddingRight,I=f.pixelPaddingTop,k=f.pixelPaddingBottom,D=!1,G=e.width;v(G)&&(y(G)&&(x=G),G instanceof te&&(g=100*G.value));var H=e.height;if(v(H)&&(y(H)&&(b=H),H instanceof te&&(m=100*H.value)),this.xAxis instanceof Ve&&this.yAxis instanceof Ve){if(!e.hasValue(this._xValueFields)||!e.hasValue(this._yValueFields))return;l=0,h=1,Fe(g)||(l+=he=V((h-l)*(1-g/100)/2,5),h-=he),t=this.xAxis.getX(e,u,l),n=this.xAxis.getX(e,p,h),Fe(g)&&(t+=he=(n-t-x)/2,n-=he),!Fe(C)&&CGe&&a>Ge)&&(D=!0),r=this.fixVerticalCoordinate(r),a=this.fixVerticalCoordinate(a),Math.abs(n-t)-P-O==0&&(D=!0)}else{if(!e.hasValue(this._xValueFields))return;var he;Fe(m)||(l+=he=V((h-l)*(1-m/100)/2,5),h-=he),r=this.yAxis.getY(e,c,l),a=this.yAxis.getY(e,d,h),Fe(m)&&(a-=he=(a-r-b)/2,r+=he),!Fe(S)&&SGe&&t>Ge)&&(D=!0),n=this.fixHorizontalCoordinate(n),t=this.fixHorizontalCoordinate(t),Math.abs(r-a)-I-k==0&&(D=!0)}var U,nt=Math.abs(n-t),qe=Math.abs(a-r),Y=Math.min(t,n),We=Math.min(r,a);D?this.disableUnusedColumns(e):(e.column?(U=e.column,this._propertiesChanged&&(De(this,U,Ie),De(this.columns.template,U,Ie),j(Ie,function(ge){U[ge]=U[ge]}))):(De(this,U=this.columns.create(),Ie),De(this.columns.template,U,Ie),e.addSprite(U),e.column=U,U.paper=this.paper,this.itemsFocusable()?(v(this.role)||(this.role="menu"),v(U.role)||(U.role="menuitem"),U.focusable=!0):(v(this.role)||(this.role="list"),v(U.role)||(U.role="listitem"),U.focusable=!1),U.focusable&&(U.events.on("focus",function(ge){U.readerTitle=o.populateString(o.itemReaderText,e)},void 0,!1),U.events.on("blur",function(ge){U.readerTitle=""},void 0,!1)),U.hoverable&&(U.events.on("over",function(ge){U.readerTitle=o.populateString(o.itemReaderText,e)},void 0,!1),U.events.on("out",function(ge){U.readerTitle=""},void 0,!1)),U.parent=this.columnsContainer,U.virtualParent=this),U.width=nt,U.height=qe,U.x=Y,U.y=We,U.realX=t,U.realY=r,U.realWidth=n-t,U.realHeight=a-r,this.setColumnStates(U),U.invalid&&U.validate(),U.__disabled=!1,A(this.axisRanges.iterator(),function(ge){var ke=e.rangesColumns.getKey(ge.uid);ke||(ke=o.columns.create(),De(ge.contents,ke,Ie),e.addSprite(ke),e.rangesColumns.setKey(ge.uid,ke),ke.paper=o.paper),ke.parent=ge.contents,ke.width=nt,ke.height=qe,ke.x=Y,ke.y=We,o.setColumnStates(ke),ke.invalid&&ke.validate(),ke.__disabled=!1})),e.itemWidth=nt,e.itemHeight=qe},i.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.width=0,e.column.height=0,e.column.__disabled=!0),A(this.axisRanges.iterator(),function(t){var n=e.rangesColumns.getKey(t.uid);n&&(n.width=0,n.height=0,n.__disabled=!0)}))},i.prototype.setColumnStates=function(e){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var t=e.dataItem;if(this.xAxis instanceof ee||this.yAxis instanceof ee){var n,r=void 0,a=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof ee&&(n=t.getValue(this.xOpenField),r=t.getValue(this.xField)),a=t.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof ee&&(n=t.getValue(this.yOpenField),r=t.getValue(this.yField)),a=t.getValue(this.yAxis.axisFieldName+"Y","previousChange")),rthis.currentLevel||e.children&&e.children.length>0)&&(n.columns.template.cursorOverStyle=He.pointer,this.zoomable&&n.columns.template.events.on("hit",function(l){var h=l.target.dataItem;e.level>t.currentLevel?t.zoomToChartDataItem(h.treeMapDataItem.parent):t.zoomToSeriesDataItem(h)},this,void 0))}this._tempSeries.push(e.series)},i.prototype.toggleBullets=function(e){var t=this;A(this.series.iterator(),function(n){-1==t._tempSeries.indexOf(n)?(n.columnsContainer.hide(),n.bulletsContainer.hide(e)):(n.columnsContainer.show(),n.bulletsContainer.show(e),n.dataItems.each(function(r){r.bullets.each(function(a,o){o.show()})}),n.level1&&n.dataItems.each(function(r){r.treeMapDataItem.children&&r.bullets.each(function(a,o){o.hide()})}))})},i.prototype.zoomToSeriesDataItem=function(e){this.zoomToChartDataItem(e.treeMapDataItem)},i.prototype.zoomToChartDataItem=function(e){var t=this;e||(e=this._homeDataItem);var n=this.zoomOutButton;if(n&&(e!=this._homeDataItem?n.show():n.hide()),e&&e.children){this.xAxis.zoomToValues(e.x0,e.x1),this.yAxis.zoomToValues(e.y0,e.y1),this.currentLevel=e.level,this.currentlyZoomed=e,this.createTreeSeries(e);var r=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;!r||r.isDisposed()||r.isFinished()?this.toggleBullets():(this._dataDisposers.push(r),r.events.once("animationended",function(){t.toggleBullets()}))}},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},i.prototype.createDataItem=function(){return new Kp},Object.defineProperty(i.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(e){this.setPropertyValue("maxLevels",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(e){this.setPropertyValue("currentLevel",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(e){this.setPropertyValue("hideParentColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(e){this.setPropertyValue("sorting",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new hs},Object.defineProperty(i.prototype,"homeText",{get:function(){return this._homeText},set:function(e){this._homeText=e,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){if(e){if(v(e.layoutAlgorithm)&&J(e.layoutAlgorithm))switch(e.layoutAlgorithm){case"squarify":e.layoutAlgorithm=this.squarify;break;case"binaryTree":e.layoutAlgorithm=this.binaryTree;break;case"slice":e.layoutAlgorithm=this.slice;break;case"dice":e.layoutAlgorithm=this.dice;break;case"sliceDice":e.layoutAlgorithm=this.sliceDice;break;default:delete e.layoutAlgorithm}v(e.navigationBar)&&!v(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),s.prototype.processConfig.call(this,e)}},i.prototype.validateLayout=function(){s.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},i.prototype.validateDataItems=function(){s.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),A(this.series.iterator(),function(e){e.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},i.prototype.binaryTree=function(e){var t,n,r=e.children,a=r.length,o=new Array(a+1);for(o[0]=n=t=0;t0&&function l(h,p,u,d,c,f,g){if(h>=p-1)return(P=r.getIndex(h)).x0=d,P.y0=c,P.x1=f,void(P.y1=g);for(var m=o[h],x=u/2+m,b=h+1,C=p-1;b>>1;o[S]g-c){var k=(d*I+f*O)/u;l(h,b,O,d,c,k,g),l(b,p,I,k,c,f,g)}else{var D=(c*I+g*O)/u;l(h,b,O,d,c,f,D),l(b,p,I,d,D,f,g)}}(0,a,e.value,e.x0,e.y0,e.x1,e.y1)},i.prototype.slice=function(e){for(var t,n=e.x0,r=e.x1,a=e.y0,l=e.children,h=-1,p=l.length,u=e.value&&(e.y1-a)/e.value;++hl&&(l=t),d=a*a*u,(h=Math.max(l/d,d/o))>p){a-=t;break}p=h}var I=this.dataItems.template.clone();I.value=a,I.dice=n1)return e;if(1==e.children.length){var t=e.children.getIndex(0);return t.children?this.getLegendLevel(t):e}return e}},i.prototype.handleLegendSeriesAdded=function(e){},Object.defineProperty(i.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),i.prototype.feedLegend=function(){var e=this.legend;if(e){e.dataFields.name="name";var t=this.getLegendLevel(this._homeDataItem);if(t){var n=[];t.children.each(function(r){n.push(r)}),e.data=n}}},i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},i.prototype.getExporting=function(){var e=this,t=s.prototype.getExporting.call(this);return t.adapter.add("formatDataFields",function(n){return"csv"!=n.format&&"xlsx"!=n.format||v(e.dataFields.children)&&delete n.dataFields[e.dataFields.children],n}),t},i}(Ut);_.registeredClasses.TreeMap=Zp;var Bo=function(s){function i(){var e=s.call(this)||this;return e._chart=new Me,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return w(i,s),i.prototype.updateGridElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location);if(e.element){var a=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getHeight();e.path=E({x:a,y:o})+T({x:a,y:l+o})+T({x:0,y:l})}this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var e=this.getHeight();this.baseGrid.path=E({x:this.chart.dx3D||0,y:this.chart.dy3D||0})+T({x:0,y:0})+T({x:0,y:e})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(e){"depth"!=e.property&&"angle"!=e.property||this.invalidate()},i}(Mt);_.registeredClasses.AxisRendererX3D=Bo;var qp=function(s){function i(){var e=s.call(this)||this;return e._chart=new Me,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return w(i,s),i.prototype.updateGridElement=function(e,t,n){var r=this.positionToPoint(t+=(n-t)*e.location);if(e.element){var a=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getWidth();e.path=E({x:0,y:0})+T({x:a,y:o})+T({x:l+a,y:o})}this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,t=this.chart.dy3D||0,n=this.getWidth();this.baseGrid.path=E({x:0,y:0})+T({x:n,y:0})+T({x:n+e,y:t})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(e){"depth"!=e.property&&"angle"!=e.property||this.invalidate()},i}(mt),Ho=function(s){function i(){var e=s.call(this)||this;return e.className="Column3D",e}return w(i,s),i.prototype.createAssets=function(){this.column3D=this.createChild(Sp),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},i.prototype.validate=function(){s.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},i.prototype.setFill=function(e){s.prototype.setFill.call(this,e),this.column.fill=e},i}(hi);_.registeredClasses.Column3D=Ho;var $p=function(s){function i(){var e=s.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return w(i,s),i}(Gt),ps=function(s){function i(){var e=s.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"columnsContainer",{get:function(){var e=this.chart;return e&&e.columnsContainer&&"vertical"!=e.leftAxesContainer.layout&&"vertical"!=e.rightAxesContainer.layout&&"horizontal"!=e.bottomAxesContainer.layout&&"horizontal"!=e.topAxesContainer.layout?e.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),i.prototype.validateDataElementReal=function(e){s.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy,e.column.visible=this.visible)},i.prototype.validateDataElements=function(){s.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},i.prototype.createColumnTemplate=function(){return new Ho},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0),this.columns.template.column3D.depth=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e),this.columns.template.column3D.angle=e},enumerable:!0,configurable:!0}),i}(pi);_.registeredClasses.ColumnSeries3D=ps,_.registeredClasses.ColumnSeries3DDataItem=$p;var Fd=function(s){function i(){var e=s.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}return w(i,s),i}(Qr),Jp=function(s){function i(){var e=s.call(this)||this;e._axisRendererX=Bo,e._axisRendererY=qp,e.className="XYChart3D",e.depth=30,e.angle=30;var t=e.seriesContainer.createChild(W);return t.shouldClone=!1,t.isMeasured=!1,t.layout="none",e.columnsContainer=t,e.columnsContainer.mask=e.createChild($),e.applyTheme(),e}return w(i,s),i.prototype.updateSeriesMasks=function(){if(s.prototype.updateSeriesMasks.call(this),Xi()){var e=this.columnsContainer,t=e.mask;e.mask=void 0,e.mask=t}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx3D",{get:function(){return L(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy3D",{get:function(){return-M(this.angle)*this.depth},enumerable:!0,configurable:!0}),i.prototype.validateLayout=function(){s.prototype.validateLayout.call(this),this.fixColumns()},i.prototype.fixLayout=function(){this.chartContainer.paddingTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),s.prototype.fixLayout.call(this)},i.prototype.fixColumns=function(){var e=this,t=1,n=0;A(this.series.iterator(),function(a){a instanceof ps&&(!a.clustered&&n>0&&t++,a.depthIndex=t-1,n++)});var r=0;A(this.series.iterator(),function(a){if(a instanceof ps){a.depth=e.depth/t,a.angle=e.angle,a.columnsContainer==e.columnsContainer&&(a.dx=e.depth/t*L(e.angle)*a.depthIndex,a.dy=-e.depth/t*M(e.angle)*a.depthIndex);var o=!1;(a.baseAxis==a.xAxis&&a.xAxis.renderer.inversed||a.baseAxis==a.yAxis&&a.yAxis.renderer.inversed)&&(o=!0);var l=1;a.dataItems.each(function(h){var p=h.column;p&&(p.zIndex=o?1e3*(1e3-l)+r-100*a.depthIndex:1e3*l+r-100*a.depthIndex),l++}),o?r--:r++}}),this.maskColumns()},i.prototype.processConfig=function(e){if(e&&v(e.series)&&Ae(e.series))for(var t=0,n=e.series.length;t1&&(this.valueAxis.renderer.minGridDistance="horizontal"==this.orientation?this.measuredWidth/this.markerCount:this.measuredHeight/this.markerCount),this.valueAxis.invalidate(),d=this.markerCount;for(var O=this.markers.length;d0&&t.length>0)if(a){var l=E(e[0]);if(e.length>0)for(var h=1;h0||this.fillSprite.fillOpacity>0)&&(l=E(e[0])+Zi(e),l+=T(t[0])+Zi(t),l+=T(e[0]),this.fillSprite.path=l+=" Z")}else l=E(e[0])+Zi(e),this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l+=T(t[0])+Zi(t),l+=T(e[0]),this.fillSprite.path=l+=" Z");else this.strokeSprite.path="",this.fillSprite.path=""},i}(es);_.registeredClasses.StepLineSeriesSegment=tu;var Xo=function(s){function i(){var e=s.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return w(i,s),i}($n),iu=function(s){function i(){var e=s.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return w(i,s),i.prototype.createDataItem=function(){return new Xo},i.prototype.addPoints=function(e,t,n,r,a){var o,l,h,p;this.baseAxis==this.xAxis&&(o=this.startLocation,l=this.endLocation,h=this.getAdjustedXLocation(t,this.yOpenField),p=this.getAdjustedXLocation(t,this.yField)),this.baseAxis==this.yAxis&&(h=this.startLocation,p=this.endLocation,o=this.getAdjustedXLocation(t,this.xOpenField),l=this.getAdjustedXLocation(t,this.xField));var u=this.xAxis.getX(t,n,o),d=this.yAxis.getY(t,r,h),c=this.xAxis.getX(t,n,l),f=this.yAxis.getY(t,r,p);if(u=R(u,-1e5,1e5),d=R(d,-1e5,1e5),c=R(c,-1e5,1e5),f=R(f,-1e5,1e5),!this.noRisers&&e.length>1){var g=e[e.length-1];this.baseAxis==this.xAxis&&e.push(a?{x:g.x,y:f}:{x:u,y:g.y}),this.baseAxis==this.yAxis&&e.push(a?{x:c,y:g.y}:{x:g.x,y:d})}var m={x:u,y:d},x={x:c,y:f};a?e.push(x,m):e.push(m,x)},i.prototype.drawSegment=function(e,t,n){var r=!1;this.yAxis==this.baseAxis&&(r=!0),e.drawSegment(t,n,this.tensionX,this.tensionY,this.noRisers,r)},i.prototype.createSegment=function(){return new tu},Object.defineProperty(i.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(e){this.setPropertyValue("noRisers",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),i}(is);_.registeredClasses.StepLineSeries=iu,_.registeredClasses.StepLineSeriesDataItem=Xo;var Yo=function(s){function i(){var e=s.call(this)||this;return e.className="RadarColumn",e}return w(i,s),i.prototype.createAssets=function(){this.radarColumn=this.createChild(ri),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");return y(e)?e:this.radarColumn.getTooltipX()},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipX");return y(e)?e:this.radarColumn.getTooltipY()},i}(hi);_.registeredClasses.RadarColumn=Yo;var nu=function(s){function i(){var e=s.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return w(i,s),i}(Gt),ru=function(s){function i(){var e=s.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return w(i,s),i.prototype.createColumnTemplate=function(){return new Yo},i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),s.prototype.validate.call(this)},i.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.__disabled=!0),A(this.axisRanges.iterator(),function(t){var n=e.rangesColumns.getKey(t.uid);n&&(n.__disabled=!0)}))},i.prototype.validateDataElementReal=function(e){var t,n,r,a,o=this,l=this.chart.startAngle,h=this.chart.endAngle,p=this.yField,u=this.yOpenField,d=this.xField,c=this.xOpenField,f=this.getStartLocation(e),g=this.getEndLocation(e),m=(h-l)/(this.dataItems.length*(this.end-this.start)),x=e.column;x||(x=this.columns.create(),e.column=x,De(this,x,Ie),De(this.columns.template,x,Ie),e.addSprite(x),x.paper=this.paper,this.setColumnStates(x));var b=x.width,C=100;b instanceof te&&(C=b.percent);var S=V((g-f)*(1-C/100)/2,5);if(f+=S,g-=S,this.xAxis instanceof Ve&&this.yAxis instanceof Ve)r=oe({x:this.yAxis.getX(e,p,0,"valueY"),y:this.yAxis.getY(e,p,0,"valueY")}),a=oe({x:this.yAxis.getX(e,u,1,"valueY"),y:this.yAxis.getY(e,u,1,"valueY")}),t=this.xAxis.getAngle(e,c,0,"valueX"),n=this.xAxis.getAngle(e,d,1,"valueX"),l+=f*m,h-=(1-g)*m;else if(this.baseAxis==this.xAxis)r=oe({x:this.yAxis.getX(e,p,e.locations[p],"valueY"),y:this.yAxis.getY(e,p,e.locations[p],"valueY")}),a=oe({x:this.yAxis.getX(e,u,e.locations[u],"valueY"),y:this.yAxis.getY(e,u,e.locations[u],"valueY")}),t=this.xAxis.getAngle(e,c,f,"valueX"),n=this.xAxis.getAngle(e,d,g,"valueX"),l+=f*m,h-=(1-g)*m;else{if(r=oe({x:this.yAxis.getX(e,p,f,"valueY"),y:this.yAxis.getY(e,p,f,"valueY")}),a=oe({x:this.yAxis.getX(e,u,g,"valueY"),y:this.yAxis.getY(e,u,g,"valueY")}),y(b)){var P=Math.abs(r-a);if(P>b){var O=(P-b)/2;r+=O,a-=O}}t=this.xAxis.getAngle(e,d,e.locations[d],"valueX"),n=this.xAxis.getAngle(e,c,e.locations[c],"valueX")}if(n0?(k.arc=D,k.radius=r,k.innerRadius=a,x.__disabled=!1,x.parent=this.columnsContainer,A(this.axisRanges.iterator(),function(G){var H=e.rangesColumns.getKey(G.uid);H||(H=o.columns.create(),Dl(o.columns.template,H,Ie),De(G.contents,H,Ie),H.dataItem&&z(H.dataItem.sprites,H),e.addSprite(H),H.paper=o.paper,o.setColumnStates(H),e.rangesColumns.setKey(G.uid,H));var ne=H.radarColumn;ne.startAngle=t,ne.arc=D,ne.radius=r,ne.innerRadius=a,ne.invalid&&(ne.paper=o.paper,ne.validate()),H.__disabled=!1,H.parent=G.contents})):this.disableUnusedColumns(e)},i.prototype.getPoint=function(e,t,n,r,a,o,l){o||(o="valueX"),l||(l="valueY");var h=oe({x:this.yAxis.getX(e,n,a,l),y:this.yAxis.getY(e,n,a,l)});0==h&&(h=1e-5);var p=this.xAxis.getAngle(e,t,r,o);return{x:h*L(p),y:h*M(p)}},i.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return Pi(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},i.prototype.positionBulletReal=function(e,t,n){var r=this.xAxis,a=this.yAxis;(tr.end||na.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,n))},i.prototype.setXAxis=function(e){s.prototype.setXAxis.call(this,e),this.updateRendererRefs()},i.prototype.setYAxis=function(e){s.prototype.setYAxis.call(this,e),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){this.xAxis.renderer.axisRendererY=this.yAxis.renderer},i}(pi);_.registeredClasses.RadarColumnSeries=ru,_.registeredClasses.RadarColumnSeriesDataItem=nu;var cs=function(s){function i(){var e=s.call(this)||this;return e.slice=e.createChild($),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=F(100),e.topWidth=F(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.pixelPaddingTop,r=this.pixelPaddingLeft,a=this.pixelWidth-this.pixelPaddingRight-r,o=this.pixelHeight-e-this.pixelPaddingBottom,l=this.expandDistance,h="";if("vertical"==this.orientation){var p={x:(a-(b=xe(this.topWidth,a)))/2+r,y:e},u={x:(a+b)/2+r,y:e},d={x:(a+(C=xe(this.bottomWidth,a)))/2+r,y:e+o},c={x:(a-C)/2+r,y:e+o},f={x:u.x+(d.x-u.x)/2+l*o,y:u.y+.5*o},g={x:p.x+(c.x-p.x)/2-l*o,y:p.y+.5*o},m=T(d),x=T(p);0!=l&&(m=ni(d,f),x=ni(p,g)),h=E(p)+T(u)+m+T(c)+x,this.tickPoint={x:u.x+(d.x-u.x)/2,y:u.y+(d.y-u.y)/2}}else{var b,C,S={x:r,y:(o-(b=xe(this.topWidth,o)))/2+e},P={x:r,y:(o+b)/2+e},O={x:r+a,y:(o-(C=xe(this.bottomWidth,o)))/2+e},I={x:r+a,y:(o+C)/2+e};f={y:S.y+(O.y-S.y)/2-l*a,x:S.x+.5*a},g={y:P.y+(I.y-P.y)/2+l*a,x:P.x+.5*a},m=T(O),x=T(P),0!=l&&(m=ni(O,f),x=ni(P,g)),h=E(P)+T(S)+m+T(I)+x,this.tickPoint={y:P.y+(I.y-P.y)/2,x:P.x+(I.x-P.x)/2}}this.slice.path=h,this.invalidateLayout()},i.prototype.getPoint=function(e,t){var n=this.pixelPaddingTop,o=this.pixelPaddingLeft,l=this.pixelWidth-this.pixelPaddingRight-o,h=this.pixelHeight-n-this.pixelPaddingBottom;if("vertical"==this.orientation){var p={x:(l-(f=xe(this.topWidth,l)))/2+o,y:n},u={x:(l+f)/2+o,y:n},d={x:(l+(g=xe(this.bottomWidth,l)))/2+o,y:n+h},c=p.x+((l-g)/2+o-p.x)*t;return{x:c+(u.x+(d.x-u.x)*t-c)*e,y:u.y+(d.y-u.y)*t}}var f,g,m=o,x=(h-(f=xe(this.topWidth,h)))/2+n,b=(h+f)/2+n,C=o+l,S=x+((h-(g=xe(this.bottomWidth,h)))/2+n-x)*e;return{y:S+(b+((h+g)/2+n-b)*e-S)*t,x:m+(C-m)*e}},Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(e){this.setPropertyValue("expandDistance",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},i}(W);_.registeredClasses.FunnelSlice=cs;var su=function(s){function i(){var e=s.call(this)||this;return e._label=new Me,e._slice=new Me,e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return w(i,s),i.prototype.draw=function(){s.prototype.draw.call(this);var e=this.slice,t=e.getPoint(this.locationX,this.locationY);if(t){var n=this.label,r=e.dataItem.component,a=void 0,o=void 0,l=void 0;if("vertical"==r.orientation){var h=n.pixelX,p=n.pixelY;r.labelsOpposite||(h+=n.maxRight),a=Qe(t,e,this.parent),l=Qe({x:h,y:p},n.parent,this.parent),o={x:n.parent.pixelX-this.length,y:l.y},r.labelsOpposite||(o.x=n.parent.measuredWidth+this.length)}else h=n.pixelX,p=n.pixelY,r.labelsOpposite||(p+=n.maxBottom),a=Qe(t,e,this.parent),o={x:(l=Qe({x:h,y:p},n.parent,this.parent)).x,y:n.parent.pixelY-this.length},r.labelsOpposite||(o.y=n.parent.measuredHeight+this.length);this.path=E(a)+T(o)+T(l)}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new _e([e.events.on("transformed",this.invalidate,this,!1),e.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){this.setPropertyValue("locationX",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){this.setPropertyValue("locationY",e,!1,!0)},enumerable:!0,configurable:!0}),i}(en);_.registeredClasses.FunnelTick=su;var fs=function(s){function i(){var e=s.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",function(){e.component&&e.component.invalidateDataItems()},e,!1),e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"sliceLink",{get:function(){var e=this;if(!this._sliceLink){var t=this.component.sliceLinks.create();this._sliceLink=t,this._disposers.push(t),t.parent=this.component.slicesContainer,this._disposers.push(new le(function(){e.component&&e.component.sliceLinks.removeValue(t)})),this.addSprite(t),t.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),i}(ns),zo=function(s){function i(){var e=s.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=F(100),e.height=F(100),e.slicesContainer.width=F(100),e.slicesContainer.height=F(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return w(i,s),i.prototype.createSlice=function(){return new cs},i.prototype.createTick=function(){return new su},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},i.prototype.createDataItem=function(){return new fs},i.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})",e.states.create("hover").properties.expandDistance=.2},i.prototype.initLabel=function(e){s.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},i.prototype.validate=function(){s.prototype.validate.call(this),this._nextY=0},i.prototype.validateDataElements=function(){var e=this,t=this.slicesContainer,n=this.labelsContainer,r=this.labels.template;this.alignLabels?(r.interactionsEnabled=!0,t.isMeasured=!0,n.isMeasured=!0):(r.interactionsEnabled=!1,t.isMeasured=!1,n.isMeasured=!1);var a=0,o=0;this.dataItems.each(function(l){v(l.value)&&(o++,l.value>0?a+=Math.abs(l.getWorkingValue("value")/l.value):e.ignoreZeroValues||!l.visible||l.__disabled||l.isHiding?o--:a+=1)}),this._total=1/o*a,this._count=o,s.prototype.validateDataElements.call(this),this.arrangeLabels()},i.prototype.getNextValue=function(e){var t=e.index,n=e.getWorkingValue("value");if(t0){var t=this.labels.getIndex(e);return t.__disabled||!t.visible?this.getLastLabel(e-1):t}},i.prototype.arrangeLabels=function(){if(this.alignLabels){var e=this.labels.length;if(e>1){var t=this.getLastLabel(e-1);if(t){var n=t.pixelY,r=t.pixelX;if(e>1){for(var a=e-2;a>=0;a--)(o=this.labels.getIndex(a)).visible&&!o.__disabled&&(o.invalid&&o.validate(),"vertical"==this.orientation?o.pixelY+o.measuredHeight>n&&(o.y=Math.min(1e6,n-o.measuredHeight)):o.pixelX+o.measuredWidth>r&&(o.x=Math.min(1e6,r-o.measuredWidth)),n=o.pixelY,r=o.pixelX);for(n=0,r=0,a=0;a0){var l=o.getWorkingValue("value")/o.value,h=o.sliceLink;"vertical"==e.orientation?n-=h.pixelHeight*l:t-=h.pixelWidth*l}}),this._pyramidHeight=xe(this.pyramidHeight,n),this._pyramidWidth=xe(this.pyramidHeight,t),"vertical"==this.orientation){var r=(n-this._pyramidHeight)/2;this.slicesContainer.y=r,this.labelsContainer.y=r,this.ticksContainer.y=r}else{var a=(t-this._pyramidWidth)/2;this.slicesContainer.x=a,this.labelsContainer.x=a,this.ticksContainer.x=a}s.prototype.validateDataElements.call(this)},i.prototype.decorateSlice=function(e){var t=this.dataItem.values.value.absoluteSum;if(0!=t){var n=e.slice,r=e.sliceLink,a=e.label,o=e.tick;this.getNextValue(e);var l=Math.abs(e.getWorkingValue("value")),h=this._pyramidWidth,p=this._pyramidHeight,u=this.slicesContainer.innerWidth,d=this.slicesContainer.innerHeight,c=r.pixelWidth,f=r.pixelHeight;if(e.__disabled=!(0!=e.value&&null!=e.value||!this.ignoreZeroValues),"vertical"==this.orientation){var g=xe(this.topWidth,u);y(this._nextWidth)||(this._nextWidth=g);var m=xe(this.bottomWidth,u),x=this._nextWidth,b=Math.atan2(p,g-m);0==(I=Math.tan(Math.PI/2-b))&&(I=1e-8);var C=void 0,S=void 0;if("area"==this.valueIs){var P=(g+m)/2*p*l/t,O=Math.abs(x*x-2*P*I);S=(C=(x-Math.sqrt(O))/I)>0?(2*P-C*x)/C:x}else S=x-(C=p*l/t)*I;n.height=C,n.width=u,n.bottomWidth=S,n.topWidth=x,r.topWidth=n.bottomWidth,r.bottomWidth=n.bottomWidth,n.y=this._nextY,a.x=this.alignLabels?0:u/2,a.y=n.pixelY+n.pixelHeight*o.locationY+n.dy,this._nextY+=n.pixelHeight+f*l/Math.max(Math.abs(e.value),1e-8),r.y=this._nextY-f,r.x=u/2}else{var I;g=xe(this.topWidth,d),y(this._nextWidth)||(this._nextWidth=g),m=xe(this.bottomWidth,d),x=this._nextWidth,b=Math.atan2(h,g-m),0==(I=Math.tan(Math.PI/2-b))&&(I=1e-8);var k=void 0;S=void 0,S="area"==this.valueIs?(2*(P=(g+m)/2*h*l/t)-(k=(x-Math.sqrt(x*x-2*P*I))/I)*x)/k:x-(k=h*l/t)*I,n.width=k,n.height=d,n.bottomWidth=S,n.topWidth=x,r.topWidth=n.bottomWidth,r.bottomWidth=n.bottomWidth,n.x=this._nextY,a.y=this.alignLabels?this.labelsContainer.measuredHeight:d/2,a.x=n.pixelX+n.pixelWidth*o.locationX+n.dx,this._nextY+=n.pixelWidth+c*l/Math.max(Math.abs(e.value),1e-8),r.x=this._nextY-c,r.y=d/2}this._nextWidth=n.bottomWidth}},Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(e){this.setPercentProperty("pyramidHeight",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(e){this.setPropertyValue("valueIs",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i}(zo);_.registeredClasses.PyramidSeries=Uo,_.registeredClasses.PyramidSeriesDataItem=gs;var Go=function(s){function i(){var e=s.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return w(i,s),i}(gs),au=function(s){function i(){var e=s.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=F(100),e.bottomWidth=F(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild($),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return w(i,s),i.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,t=this.slicesContainer.maxHeight,n=this._maskSprite,r=n.measuredWidth/n.scale,a=n.measuredHeight/n.scale,o=ie(t/a,e/r);o==1/0&&(o=1),o=q(.001,o);var l,h,p=this.startLocation,u=this.endLocation,d=ie(e,r*o),c=ie(t,a*o);n.scale=o,"vertical"==this.orientation?(this.topWidth=d+4,this.bottomWidth=d+4,this.pyramidHeight=c*(u-p),n.x=e/2,n.y=c/2):(this.topWidth=c+4,this.bottomWidth=c+4,this.pyramidHeight=d*(u-p),n.valign="middle",n.x=d/2,n.y=t/2),n.verticalCenter="middle",n.horizontalCenter="middle",s.prototype.validateDataElements.call(this),"vertical"==this.orientation?("bottom"==this.valign&&(l=t-c),"middle"==this.valign&&(l=(t-c)/2),"top"==this.valign&&(l=0),"left"==this.align&&(h=-(e-d)/2),"center"==this.align&&(h=0),"right"==this.align&&(h=(e-d)/2),this.slices.template.dy=p*c,this.alignLabels&&(this.slicesContainer.dx=h)):("bottom"==this.valign&&(l=(t-c)/2),"middle"==this.valign&&(l=0),"top"==this.valign&&(l=-(t-c)/2),"left"==this.align&&(h=0),"center"==this.align&&(h=(e-d)/2),"right"==this.align&&(h=e-d),this.slices.template.dx=p*d,this.alignLabels&&(this.slicesContainer.dy=l)),this.slicesContainer.x=h,this.labelsContainer.x=h,this.ticksContainer.x=h,this.slicesContainer.y=l,this.labelsContainer.y=l,this.ticksContainer.y=l,d>0&&c>0&&(this.slicesContainer.mask=n)},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),v(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},i.prototype.createDataItem=function(){return new Go},Object.defineProperty(i.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),i.prototype.initSlice=function(e){s.prototype.initSlice.call(this,e);var t=e.states.getKey("hover");t&&(t.properties.expandDistance=0)},Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),i}(Uo);_.registeredClasses.PictorialStackedSeries=au,_.registeredClasses.PictorialStackedSeriesDataItem=Go;var Ko=function(s){function i(){var e=s.call(this)||this;return e.className="ConeColumn",e}return w(i,s),i.prototype.createAssets=function(){this.coneColumn=this.createChild(Op),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},i}(hi);_.registeredClasses.ConeColumn=Ko;var ou=function(s){function i(){var e=s.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return w(i,s),i}(Gt),lu=function(s){function i(){var e=s.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return w(i,s),i.prototype.createColumnTemplate=function(){return new Ko},i.prototype.getMaskPath=function(){var e=0,t=0,n=this.columns.getIndex(0);if(n)return this.baseAxis==this.xAxis?t=n.coneColumn.innerWidth/2+1:e=n.coneColumn.innerHeight/2+1,Yt({x:-e,y:0,width:this.xAxis.axisLength+e,height:this.yAxis.axisLength+t})},i.prototype.validateDataElementReal=function(e){if(s.prototype.validateDataElementReal.call(this,e),e.column){var t=e.column.coneColumn;t.fill=e.column.fill,t.orientation=this.baseAxis==this.yAxis?"horizontal":"vertical"}},i}(pi);_.registeredClasses.ConeSeries=lu,_.registeredClasses.ConeSeriesDataItem=ou;var Zo=function(s){function i(){var e=s.call(this)||this;return e.className="CurvedColumn",e}return w(i,s),i.prototype.createAssets=function(){this.curvedColumn=this.createChild($),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=F(120),this.height=F(120),this.column=this.curvedColumn},i.prototype.draw=function(){s.prototype.draw.call(this);var e,t=this.realWidth,n=this.realHeight,r=this.realX-this.pixelX,a=this.realY-this.pixelY,o=1,l=1;"vertical"==this.orientation?(o=this.tension,e=[{x:0,y:n+a},{x:t/2,y:a},{x:t,y:n+a}]):(l=this.tension,e=[{x:r,y:n=Math.abs(n)},{x:r+t,y:n/2},{x:r,y:0}]);var h=E(e[0])+new zt(o,l).smooth(e);this.column.path=h},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),i}(hi);_.registeredClasses.CurvedColumn=Zo;var hu=function(s){function i(){var e=s.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return w(i,s),i}(Gt),pu=function(s){function i(){var e=s.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return w(i,s),i.prototype.createColumnTemplate=function(){return new Zo},i.prototype.validateDataElementReal=function(e){s.prototype.validateDataElementReal.call(this,e);var t=e.column;(t=e.column)&&(e.column.curvedColumn.fill=e.column.fill,t.orientation=this.baseAxis==this.yAxis?"horizontal":"vertical")},i}(pi);_.registeredClasses.CurvedColumnSeries=pu,_.registeredClasses.CurvedColumnSeriesDataItem=hu;var uu=function(s){function i(){var e=s.call(this)||this;e.className="CircleBullet";var t=e.createChild(ii);return t.shouldClone=!1,t.radius=5,t.isMeasured=!1,e.circle=t,e.applyTheme(),e}return w(i,s),i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},i}(It);_.registeredClasses.CircleBullet=uu;var du=function(s){function i(){var e=s.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild($),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return w(i,s),i.prototype.validatePosition=function(){s.prototype.validatePosition.call(this);var e=this.pixelWidth/2,t=this.pixelHeight/2;this.errorLine.path=E({x:-e,y:-t})+T({x:e,y:-t})+E({x:0,y:-t})+T({x:0,y:t})+E({x:-e,y:t})+T({x:e,y:t})},i.prototype.copyFrom=function(e){s.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},i}(It);_.registeredClasses.ErrorBullet=du;var cu=function(s){function i(){var e=s.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return w(i,s),Object.defineProperty(i.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),i}(ei),fu=function(s){function i(){var e=s.call(this)||this;e.className="NavigationBar";var t=new ae,n=new zr;n.valign="middle",n.paddingTop=8,n.paddingBottom=8,e.paddingBottom=2,e.links=new Oe(n),e._disposers.push(new fe(e.links)),e._disposers.push(n),e._linksIterator=new fn(e.links,function(){return e.links.create()}),e._linksIterator.createNewItems=!0;var r=new Ur;r.direction="right",r.width=8,r.height=12,r.fill=t.getFor("alternativeBackground"),r.fillOpacity=.5,r.valign="middle",r.marginLeft=10,r.marginRight=10,e.separators=new Oe(r),e._disposers.push(new fe(e.separators)),e._disposers.push(r);var a=new zr;return e.activeLink=a,a.copyFrom(n),a.valign="middle",a.fontWeight="bold",e.width=F(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return w(i,s),i.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),s.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(e){var t;if(s.prototype.validateDataElement.call(this,e),e.indext.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),t.setGlobalStyle(He.default)}this.downPoint=void 0,this.updateSelection()}},i.prototype.updateSelection=function(){},i.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},i.prototype.handleCursorDown=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch)&&K().isLocalElement(e.pointer,this.paper.svg,this.uid)){kn();var t=vi(e.pointer.point,this);"hard"==this._stick&&this._stickPoint&&(t=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",t),this.fitsToBounds(t)&&(this._downPointOrig={x:t.x,y:t.y},e.event.cancelable&&this.shouldPreventGestures(e.touch)&&this.fitsToBounds(t)&&e.event.preventDefault(),this.triggerMove(t),this.triggerDown(t))}},i.prototype.shouldPreventGestures=function(e){return!0},i.prototype.updatePoint=function(e){},i.prototype.handleCursorUp=function(e){if(this.interactionsEnabled&&(this.downPoint||K().isLocalElement(e.pointer,this.paper.svg,this.uid))){var t=vi(e.pointer.point,this);this._adapterO&&this._adapterO.apply("cursorPoint",t),this.downPoint&&this.fitsToBounds(this.downPoint)&&("hard"==this._stick&&this._stickPoint&&(t=this._stickPoint),this._upPointOrig={x:t.x,y:t.y},this.triggerMove(t),this.triggerUp(t))}},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e,v(this._chart.plotContainer)&&K().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),i}(W);_.registeredClasses.Cursor=qo;var $o=function(s){function i(){var e=s.call(this)||this;e._lineX=new Me,e._lineY=new Me,e._xAxis=new Me,e._yAxis=new Me,e._snapToDisposers=[],e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var t=new ae;e.snapOnPan=!0;var n=e.createChild($);n.shouldClone=!1,n.fillOpacity=.2,n.fill=t.getFor("alternativeBackground"),n.isMeasured=!1,n.visible=!1,n.interactionsEnabled=!1,e.selection=n,e._disposers.push(e.selection);var r=e.createChild($);r.shouldClone=!1,r.stroke=t.getFor("grid"),r.fill=B(),r.strokeDasharray="3,3",r.isMeasured=!1,r.strokeOpacity=.4,r.interactionsEnabled=!1,r.y=0,e.lineX=r,e._disposers.push(e.lineX);var a=e.createChild($);return a.shouldClone=!1,a.stroke=t.getFor("grid"),a.fill=B(),a.strokeDasharray="3,3",a.isMeasured=!1,a.strokeOpacity=.4,a.interactionsEnabled=!1,a.x=0,e.lineY=a,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.hideSeriesTooltipsOnSelection=!0,e.applyTheme(),e}return w(i,s),i.prototype.updateSize=function(){this.lineX&&(this.lineX.path=E({x:0,y:0})+T({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=E({x:0,y:0})+T({x:this.innerWidth,y:0}))},i.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint,t=this.behavior;if(e){var n=this.point;this.lineX&&(n.x=this.lineX.pixelX),this.lineY&&(n.y=this.lineY.pixelY);var r=this.selection,a=Math.min(n.x,e.x),o=Math.min(n.y,e.y),l=V(Math.abs(e.x-n.x),this._positionPrecision),h=V(Math.abs(e.y-n.y),this._positionPrecision);switch(t){case"zoomX":case"selectX":o=0,h=this.pixelHeight;break;case"zoomY":case"selectY":a=0,l=this.pixelWidth}r.x=a,r.y=o,r.path=Xr(l,h),r.validatePosition()}else"select"!=this._generalBehavior&&this.selection.hide()}},i.prototype.fixPoint=function(e){return e.x=Math.max(0,e.x),e.y=Math.max(0,e.y),e.x=Math.min(this.pixelWidth,e.x),e.y=Math.min(this.pixelHeight,e.y),e},i.prototype.triggerMoveReal=function(e,t){s.prototype.triggerMoveReal.call(this,e,t);var n=this.snapToSeries;if(n&&!this.downPoint)if(n instanceof oi)n.isHidden&&this.updateLinePositions(e);else{var r=!0;j(n,function(a){a.isHidden||(r=!1)}),r&&this.updateLinePositions(e)}else this.updateLinePositions(e);this.downPoint&&oe(this.downPoint,e)>3&&"pan"==this._generalBehavior&&(this.getPanningRanges(),this.dispatch("panning"))},i.prototype.updateLinePositions=function(e){e=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=e.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=e.y),this.updateSelection()},i.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if("select"==this._generalBehavior&&(this.selection.parent=this.parent),this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var t=this.selection,r=this.downPoint.y;this._usesSelection&&(t.x=this.downPoint.x,t.y=r,t.path="",t.show()),s.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},i.prototype.updatePoint=function(e){this.lineX&&(e.x=this.lineX.pixelX),this.lineY&&(e.y=this.lineY.pixelY)},i.prototype.triggerUpReal=function(e){this.hasMoved()?this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),"pan"!=this._generalBehavior&&this.getRanges(),"select"!=this._generalBehavior&&this.selection.hide(),s.prototype.triggerUpReal.call(this,e)):("select"!=this._generalBehavior?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),"pan"==this._generalBehavior&&K().setGlobalStyle(He.default),this.dispatchImmediately("behaviorcanceled")),this.downPoint=void 0,this.dispatch("cursorpositionchanged")},i.prototype.hasMoved=function(){return("zoomX"==this.behavior||"panX"==this.behavior?ul(this._upPointOrig,this._downPointOrig):"zoomY"==this.behavior||"panY"==this.behavior?dl(this._upPointOrig,this._downPointOrig):oe(this._upPointOrig,this._downPointOrig))>K().getHitOption(this.interactions,"hitTolerance")},i.prototype.getPanningRanges=function(){var e=V(this.downPoint.x/this.innerWidth,5),t=1-V(this.downPoint.y/this.innerHeight,5),n=e-V(this.point.x/this.innerWidth,5),r=t-(1-V(this.point.y/this.innerHeight,5));this.xRange={start:n,end:1+n},this.yRange={start:r,end:1+r},"panX"==this.behavior&&(this.yRange.start=0,this.yRange.end=1),"panY"==this.behavior&&(this.xRange.start=0,this.xRange.end=1)},i.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY);var e=V(this.downPoint.x/this.innerWidth,5),t=V(this.upPoint.x/this.innerWidth,5),n=1-V(this.downPoint.y/this.innerHeight,5),r=1-V(this.upPoint.y/this.innerHeight,5);this.xRange={start:ie(e,t),end:q(e,t)},this.yRange={start:ie(n,r),end:q(n,r)}},Object.defineProperty(i.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(e){this.setPropertyValue("behavior",e,!0),this._usesSelection=!1,-1!=e.indexOf("zoom")&&(this._generalBehavior="zoom",this._usesSelection=!0),-1!=e.indexOf("select")&&(this._generalBehavior="select",this._usesSelection=!0),-1!=e.indexOf("pan")&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),i.prototype.shouldPreventGestures=function(e){return!(this.interactions.isTouchProtected&&e||"none"==this.behavior)},Object.defineProperty(i.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(e){this.setPropertyValue("fullWidthLineX",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(e){this.setPropertyValue("fullWidthLineY",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(e){this.setPropertyValue("hideSeriesTooltipsOnSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(e){this.setPropertyValue("maxTooltipDistance",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(e){this.setPropertyValue("maxPanOut",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(e){var t=this;this._xAxis.get()!=e&&this._xAxis.set(e,new _e([e.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),e.events.on("rangechangestarted",function(n){t.hide(0),t.preventShow=!0},void 0,!1),e.events.on("rangechangeended",function(n){t.preventShow=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(e){var t=this;this._yAxis.get()!=e&&this._yAxis.set(e,new _e([e.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),e.events.on("rangechangestarted",function(n){t.hide(0),t.__disabled=!0},void 0,!1),e.events.on("rangechangeended",function(n){t.__disabled=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),i.prototype.handleXTooltipPosition=function(e){var t=this.xAxis.tooltip,n=at({x:t.pixelX,y:t.pixelY},this),r=n.x;if(n.y=1,this.lineX&&(this.lineX.x=r,this.fitsToBounds(n)||this.hide()),this.xAxis&&this.fullWidthLineX){var a=this.xAxis.currentItemStartPoint,o=this.xAxis.currentItemEndPoint;if(a&&o){this.lineX.x=r;var l=o.x-a.x;this.lineX.path=Xr(l,this.innerHeight,-l/2)}}},i.prototype.handleYTooltipPosition=function(e){var t=this.yAxis.tooltip,n=at({x:t.pixelX,y:t.pixelY},this),r=n.y;if(n.x=1,this.lineY&&(this.lineY.y=r,this.fitsToBounds(n)||this.hide()),this.yAxis&&this.fullWidthLineY){var a=this.yAxis.currentItemStartPoint,o=this.yAxis.currentItemEndPoint;if(a&&o){this.lineY.y=r;var l=o.y-a.y;this.lineY.path=Xr(this.innerWidth,l,0,-l/2)}}},Object.defineProperty(i.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineX.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.interactionsEnabled=!1,e.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineY.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.parent=this,e.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selection",{get:function(){return this._selection},set:function(e){this._selection=e,e&&(e.element=this.paper.add("path"),e.parent=this)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){var t=this;if(e&&(v(e.xAxis)&&J(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),v(e.yAxis)&&J(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),v(e.snapToSeries))){var n=Ae(e.snapToSeries)?e.snapToSeries:[e.snapToSeries],r=!1;j(n,function(a,o){J(a)&&(t.map.hasKey(a)?n[o]=t.map.getKey(a):(t.processingErrors.push('[XYCursor] No series with id "'+a+'" found for `series`'),r=!0))}),r?delete e.snapToSeries:e.snapToSeries=n}s.prototype.processConfig.call(this,e)},Object.defineProperty(i.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(e){var t=this;this.setPropertyValue("snapToSeries",e)&&(e instanceof oi&&(e=[e]),this._snapToDisposers&&j(this._snapToDisposers,function(n){n.dispose()}),this._snapToDisposers=[],e&&j(e,function(n){t._snapToDisposers.push(n.events.on("tooltipshownat",function(){t.handleSnap(n)},void 0,!1))}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapOnPan",{get:function(){return this.getPropertyValue("snapOnPan")},set:function(e){this.setPropertyValue("snapOnPan",e)},enumerable:!0,configurable:!0}),i.prototype.handleSnap=function(e){if(!this.downPoint){var t=e.getTooltipX()+e.xAxis.pixelX,n=e.getTooltipY()+e.yAxis.pixelY,r=e.xAxis,a=e.yAxis;r&&r.renderer.opposite&&(n-=this.pixelHeight),this.point={x:t,y:n},this.getPositions();var o=t,l=n;t-=this.pixelWidth,a&&a.renderer.opposite&&(t+=this.pixelWidth);var h=e.tooltip,p=h.animationDuration,u=h.animationEasing;r instanceof ee&&!(r instanceof Pe)&&a instanceof ee&&!(a instanceof Pe)?(e.yAxis.showTooltipAtPosition(this.yPosition),e.xAxis.showTooltipAtPosition(this.xPosition)):(e.baseAxis==e.xAxis&&e.yAxis.showTooltipAtPosition(this.yPosition),e.baseAxis==e.yAxis&&e.xAxis.showTooltipAtPosition(this.xPosition)),this.lineY.x=t,this.lineX.y=n,this.xAxis||this.lineX.animate([{property:"x",to:o}],p,u),this.yAxis||this.lineY.animate([{property:"y",to:l}],p,u)}},i.prototype.dispose=function(){this.hide(0),s.prototype.dispose.call(this)},i}(qo);_.registeredClasses.XYCursor=$o;var gu=function(s){function i(){var e=s.call(this)||this;return e.className="RadarCursor",e.radius=F(100),e.innerRadius=F(0),e.applyTheme(),e.mask=void 0,e}return w(i,s),i.prototype.fitsToBounds=function(e){var t=oe(e);return tthis.pixelInnerRadius-1},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.triggerMoveReal=function(e,t){this.xAxis&&(!this.xAxis||this.xAxis.cursorTooltipEnabled&&!this.xAxis.tooltip.disabled)||this.updateLineX(this.point),this.yAxis&&(!this.yAxis||this.yAxis.cursorTooltipEnabled&&!this.yAxis.tooltip.disabled)||this.updateLineY(this.point),this.updateSelection(),s.prototype.triggerMoveReal.call(this,e,t)},i.prototype.updateLineX=function(e){var t=this.pixelRadius,n=this.startAngle,r=this.endAngle,a=this.pixelInnerRadius;if(t>0&&y(n)&&y(r)&&y(a)){var o=bt(Ee(e),n,r),l=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var h=this.xAxis.currentItemStartPoint,p=this.xAxis.currentItemEndPoint;if(h&&p){var u=bt(Ee(h),n,r),d=bt(Ee(p),n,r)-u;n0&&(d-=360),l=E({x:a*L(o-=d/2),y:a*M(o)})+T({x:t*L(o),y:t*M(o)})+Le(o,d,t)+T({x:a*L(o+d),y:a*M(o+d)})+Le(o+d,-d,a)}}l||(l=E({x:a*L(o),y:a*M(o)})+T({x:t*L(o),y:t*M(o)})),this.lineX.path=l}}},i.prototype.updateLineY=function(e){if(this.lineY&&this.lineY.visible){var t=this.startAngle,n=this.endAngle,r=this.truePixelRadius,a=R(oe(e),0,this.truePixelRadius);if(y(a)&&y(t)){this.lineY.moveTo({x:0,y:0});var o=void 0,l=n-t;if(this.yAxis&&this.fullWidthLineY){var h=this.yAxis.currentItemStartPoint,p=this.yAxis.currentItemEndPoint;if(h&&p){var u=R(oe(h),0,r);o=E({x:(a=R(oe(p),0,r))*L(t),y:a*M(t)})+Le(t,l,a),o+=E({x:u*L(n),y:u*M(n)})+Le(n,-l,u)}}o||(o=E({x:a*L(t),y:a*M(t)})+Le(t,n-t,a)),this.lineY.path=o}}},i.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint;if(e){var t=this.point,n=this.pixelRadius,r=this.truePixelRadius,a=this.pixelInnerRadius,o=Math.min(this.startAngle,this.endAngle),l=Math.max(this.startAngle,this.endAngle),h=bt(Ee(e),o,l),p=bt(Ee(t),o,l),u=oe(e);if(uRt[Kt]})}}return Object.freeze(Object.defineProperty(ui,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,mu.g)(Cs.exports)},[Cs.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4471.94258369ae32ad3b.js b/apps/n/porrtal-io-app/public/angular/4471.94258369ae32ad3b.js deleted file mode 100644 index 53b35f47..00000000 --- a/apps/n/porrtal-io-app/public/angular/4471.94258369ae32ad3b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4471],{53776:(M,_,r)=>{r.d(_,{Z:()=>h});var b,o=r(17626),v=r(58817),d=r(77712),O=r(90912),C=r(55342),R=r(76898),y=r(80573),E=r(10914),j=r(91558),g=r(86810);let f=b=class extends g.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new b({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,v.d9)(this.color)})}};(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],f.prototype,"description",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],f.prototype,"label",void 0),(0,o._)([(0,d.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],f.prototype,"minValue",void 0),(0,o._)([(0,d.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],f.prototype,"maxValue",void 0),(0,o._)([(0,d.Cb)({type:j.Z,json:{type:[O.z8],write:!0}})],f.prototype,"color",void 0),f=b=(0,o._)([(0,R.j)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],f);const S=f;var s;let e=s=class extends y.Z{constructor(a){super(a),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new s({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,v.d9)(this.colorClassBreakInfos),legendOptions:(0,v.d9)(this.legendOptions)})}};(0,o._)([(0,C.J)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],e.prototype,"type",void 0),(0,o._)([(0,d.Cb)({json:{write:!0},type:String})],e.prototype,"field",void 0),(0,o._)([(0,d.Cb)({type:E.I,json:{write:!0}})],e.prototype,"legendOptions",void 0),(0,o._)([(0,d.Cb)({type:y.Z.fieldTransformTypeKebabDict.apiValues,json:{type:y.Z.fieldTransformTypeKebabDict.jsonValues,read:y.Z.fieldTransformTypeKebabDict.read,write:y.Z.fieldTransformTypeKebabDict.write}})],e.prototype,"fieldTransformType",void 0),(0,o._)([(0,d.Cb)({type:[S],json:{write:!0}})],e.prototype,"colorClassBreakInfos",void 0),e=s=(0,o._)([(0,R.j)("esri.renderers.PointCloudClassBreaksRenderer")],e);const h=e},80573:(M,_,r)=>{r.d(_,{Z:()=>c});var j,o=r(17626),v=r(2076),d=r(86810),O=r(58817),C=r(77712),y=(r(90912),r(76898));r(85931);let g=j=class extends d.wq{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new j({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,o._)([(0,C.Cb)({type:String,json:{write:!0}})],g.prototype,"field",void 0),(0,o._)([(0,C.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"minValue",void 0),(0,o._)([(0,C.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"maxValue",void 0),g=j=(0,o._)([(0,y.j)("esri.renderers.support.pointCloud.ColorModulation")],g);const b=g,f=new v.X({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let S=class extends d.wq{};(0,o._)([(0,C.Cb)({type:f.apiValues,readOnly:!0,nonNullable:!0,json:{type:f.jsonValues,read:!1,write:f.write}})],S.prototype,"type",void 0),S=(0,o._)([(0,y.j)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],S);const s=S;var h,e=r(55342);let a=h=class extends s{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new h({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,o._)([(0,e.J)({pointCloudFixedSizeAlgorithm:"fixed-size"})],a.prototype,"type",void 0),(0,o._)([(0,C.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],a.prototype,"size",void 0),(0,o._)([(0,C.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"useRealWorldSymbolSizes",void 0),a=h=(0,o._)([(0,y.j)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],a);const T=a;var P;let n=P=class extends s{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new P({scaleFactor:this.scaleFactor})}};(0,o._)([(0,e.J)({pointCloudSplatAlgorithm:"splat"})],n.prototype,"type",void 0),(0,o._)([(0,C.Cb)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],n.prototype,"scaleFactor",void 0),n=P=(0,o._)([(0,y.j)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],n);const t={key:"type",base:s,typeMap:{"fixed-size":T,splat:n}},p=(0,v.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let l=class extends d.wq{constructor(i){super(i),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,O.d9)(this.pointSizeAlgorithm),colorModulation:(0,O.d9)(this.colorModulation),pointsPerInch:(0,O.d9)(this.pointsPerInch)}}};(0,o._)([(0,C.Cb)({type:p.apiValues,readOnly:!0,nonNullable:!0,json:{type:p.jsonValues,read:!1,write:p.write}})],l.prototype,"type",void 0),(0,o._)([(0,C.Cb)({types:t,json:{write:!0}})],l.prototype,"pointSizeAlgorithm",void 0),(0,o._)([(0,C.Cb)({type:b,json:{write:!0}})],l.prototype,"colorModulation",void 0),(0,o._)([(0,C.Cb)({json:{write:!0},nonNullable:!0,type:Number})],l.prototype,"pointsPerInch",void 0),l=(0,o._)([(0,y.j)("esri.renderers.PointCloudRenderer")],l),(l||(l={})).fieldTransformTypeKebabDict=new v.X({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const c=l},23899:(M,_,r)=>{r.d(_,{Z:()=>f});var g,o=r(17626),v=r(58817),d=r(77712),C=(r(90912),r(55342)),R=r(76898),y=r(80573),E=r(10914),j=r(8029);let b=g=class extends y.Z{constructor(S){super(S),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new g({...this.cloneProperties(),field:(0,v.d9)(this.field),fieldTransformType:(0,v.d9)(this.fieldTransformType),stops:(0,v.d9)(this.stops),legendOptions:(0,v.d9)(this.legendOptions)})}};(0,o._)([(0,C.J)({pointCloudStretchRenderer:"point-cloud-stretch"})],b.prototype,"type",void 0),(0,o._)([(0,d.Cb)({json:{write:!0},type:String})],b.prototype,"field",void 0),(0,o._)([(0,d.Cb)({type:E.I,json:{write:!0}})],b.prototype,"legendOptions",void 0),(0,o._)([(0,d.Cb)({type:y.Z.fieldTransformTypeKebabDict.apiValues,json:{type:y.Z.fieldTransformTypeKebabDict.jsonValues,read:y.Z.fieldTransformTypeKebabDict.read,write:y.Z.fieldTransformTypeKebabDict.write}})],b.prototype,"fieldTransformType",void 0),(0,o._)([(0,d.Cb)({type:[j.Z],json:{write:!0}})],b.prototype,"stops",void 0),b=g=(0,o._)([(0,R.j)("esri.renderers.PointCloudStretchRenderer")],b);const f=b},98610:(M,_,r)=>{r.d(_,{Z:()=>h});var b,o=r(17626),v=r(58817),d=r(77712),O=r(90912),C=r(55342),R=r(76898),y=r(80573),E=r(10914),j=r(91558),g=r(86810);let f=b=class extends g.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new b({description:this.description,label:this.label,values:(0,v.d9)(this.values),color:(0,v.d9)(this.color)})}};(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],f.prototype,"description",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],f.prototype,"label",void 0),(0,o._)([(0,d.Cb)({type:[String],json:{write:!0}})],f.prototype,"values",void 0),(0,o._)([(0,d.Cb)({type:j.Z,json:{type:[O.z8],write:!0}})],f.prototype,"color",void 0),f=b=(0,o._)([(0,R.j)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],f);const S=f;var s;let e=s=class extends y.Z{constructor(a){super(a),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new s({...this.cloneProperties(),field:(0,v.d9)(this.field),fieldTransformType:(0,v.d9)(this.fieldTransformType),colorUniqueValueInfos:(0,v.d9)(this.colorUniqueValueInfos),legendOptions:(0,v.d9)(this.legendOptions)})}};(0,o._)([(0,C.J)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],e.prototype,"type",void 0),(0,o._)([(0,d.Cb)({json:{write:!0},type:String})],e.prototype,"field",void 0),(0,o._)([(0,d.Cb)({type:y.Z.fieldTransformTypeKebabDict.apiValues,json:{type:y.Z.fieldTransformTypeKebabDict.jsonValues,read:y.Z.fieldTransformTypeKebabDict.read,write:y.Z.fieldTransformTypeKebabDict.write}})],e.prototype,"fieldTransformType",void 0),(0,o._)([(0,d.Cb)({type:[S],json:{write:!0}})],e.prototype,"colorUniqueValueInfos",void 0),(0,o._)([(0,d.Cb)({type:E.I,json:{write:!0}})],e.prototype,"legendOptions",void 0),e=s=(0,o._)([(0,R.j)("esri.renderers.PointCloudUniqueValueRenderer")],e);const h=e},14471:(M,_,r)=>{r.d(_,{Ym:()=>E,aE:()=>y,dH:()=>j,et:()=>g,hv:()=>b});var o=r(62208),v=r(53776),d=r(23899),O=r(98610),C=r(92852),R=r(61566);function y(s,e,h,a){const{rendererJSON:T,isRGBRenderer:P}=s;let n=null,u=null;if(e&&P)n=e;else if(e&&"pointCloudUniqueValueRenderer"===T.type){u=O.Z.fromJSON(T);const t=u.colorUniqueValueInfos;n=new Uint8Array(3*a);const p=f(u.fieldTransformType);for(let l=0;l=t[i].value)n[3*l]=t[i].color.r,n[3*l+1]=t[i].color.g,n[3*l+2]=t[i].color.b;else for(let m=1;m=t[i].minValue&&c<=t[i].maxValue){n[3*l]=t[i].color.r,n[3*l+1]=t[i].color.g,n[3*l+2]=t[i].color.b;break}}}else{n=new Uint8Array(3*a);for(let t=0;t=p?1:i<=t?l:l+(1-l)*(i-t)/(p-t);n[3*c]=m*n[3*c],n[3*c+1]=m*n[3*c+1],n[3*c+2]=m*n[3*c+2]}}return n}function E(s,e){if(null==s.encoding||""===s.encoding){const h=(0,C.W7)(e,s);if((0,o.Wi)(h.vertexAttributes.position))return;const a=(0,C.I_)(e,h.vertexAttributes.position),T=h.header.fields,P=[T.offsetX,T.offsetY,T.offsetZ],n=[T.scaleX,T.scaleY,T.scaleZ],u=a.length/3,t=new Float64Array(3*u);for(let p=0;p>>4&15,V=m>1,B=1===i,A=i===m;let I=!1;for(const D of l.includedReturns)if("last"===D&&A||"firstOfMany"===D&&B&&V||"lastOfMany"===D&&A&&V||"single"===D&&!V){I=!0;break}I||(t=!1);break}}}t&&(h[n]=u,s[3*n]=s[3*u],s[3*n+1]=s[3*u+1],s[3*n+2]=s[3*u+2],e[3*n]=e[3*u],e[3*n+1]=e[3*u+1],e[3*n+2]=e[3*u+2],n++)}return n}function f(s){return null==s||"none"===s?null:"low-four-bit"===s?e=>15&e:"high-four-bit"===s?e=>(240&e)>>4:"absolute-value"===s?e=>Math.abs(e):"modulo-ten"===s?e=>e%10:null}function S(s){let e=0;for(const h of s||[])e|=1<{_.r(s),_.d(s,{HighlightDownsampleDrawParameters:()=>a.H,build:()=>a.b}),_(99770),_(32181),_(17625),_(22355),_(5864),_(16396);var a=_(36227)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4516.18c1d8f576a9b700.js b/apps/n/porrtal-io-app/public/angular/4516.18c1d8f576a9b700.js deleted file mode 100644 index 905f0637..00000000 --- a/apps/n/porrtal-io-app/public/angular/4516.18c1d8f576a9b700.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4516],{87757:(L,E,u)=>{u.d(E,{g:()=>c});const c={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14516:(L,E,u)=>{u.r(E),u.d(E,{default:()=>Oe});var k,r,c=u(15861),m=u(17626),j=(u(29132),u(88879)),g=u(84792),I=u(97478),_=u(26584),v=u(8314),C=u(2076),P=u(47996),y=u(62208),b=u(94113),N=u(10699),T=u(21726),F=u(77712),w=(u(85931),u(90912),u(76898)),Y=u(2004),xt=u(91179);(r=k||(k={}))[r.PROJECT_VERTICES=1]="PROJECT_VERTICES";var At=u(56554),St=u(15283),Pt=u(2865),D=u(2618),qt=u(33696),It=u(82054);function Mt(r,t){return t}function tt(r,t,e,s){switch(e){case 0:return U(r,t+s,0);case 1:return"lowerLeft"===r.originPosition?U(r,t+s,1):function Gt({translate:r,scale:t},e,s){return r[s]-e*t[s]}(r,t+s,1)}}function vt(r,t,e,s){return 2===e?U(r,t,2):tt(r,t,e,s)}function Nt(r,t,e,s){return 2===e?U(r,t,3):tt(r,t,e,s)}function Jt(r,t,e,s){return 3===e?U(r,t,3):vt(r,t,e,s)}function U({translate:r,scale:t},e,s){return r[s]+e*t[s]}class Qt{constructor(t){this._options=t,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=Mt,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(t){if(this._options.applyTransform&&(t.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!t.hasZ)return;const e=(0,qt.k)(t.geometryType,this._options.sourceSpatialReference,t.spatialReference);if(!(0,y.Wi)(e))for(const s of t.features)e(s.geometry)}createSpatialReference(){return{}}addField(t,e){const s=t.fields;(0,y.O3)(s),s.push(e);const n=s.map(i=>i.name);this._attributesConstructor=function(){for(const i of n)this[i]=null}}addFeature(t,e){t.features.push(e)}prepareFeatures(t){switch(this._transform=t.transform,this._options.applyTransform&&t.transform&&(this._applyTransform=this._deriveApplyTransform(t)),this._vertexDimension=2,t.hasZ&&this._vertexDimension++,t.hasM&&this._vertexDimension++,t.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,s,n)=>this.addCoordinatePoint(e,s,n),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,s,n)=>this._addCoordinatePolygon(e,s,n),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,s,n)=>this._addCoordinatePolyline(e,s,n),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,s,n)=>this._addCoordinateMultipoint(e,s,n),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(t,e,s){0===this._lengths.length&&(this._toAddInCurrentPath=e),this._lengths.push(e)}addQueryGeometry(t,e){const{queryGeometry:s,queryGeometryType:n}=e,i=(0,It.$g)(s.clone(),s,!1,!1,this._transform),l=(0,It.di)(i,n,!1,!1);t.queryGeometryType=n,t.queryGeometry={...l}}createPointGeometry(t){const e={x:0,y:0,spatialReference:t.spatialReference};return t.hasZ&&(e.z=0),t.hasM&&(e.m=0),e}addCoordinatePoint(t,e,s){const n=(0,y.s3)(this._transform,"transform");switch(e=this._applyTransform(n,e,s,0),s){case 0:t.x=e;break;case 1:t.y=e;break;case 2:"z"in t?t.z=e:t.m=e;break;case 3:t.m=e}}_transformPathLikeValue(t,e){let s=0;e<=1&&(s=this._previousCoordinate[e],this._previousCoordinate[e]+=t);const n=(0,y.s3)(this._transform,"transform");return this._applyTransform(n,t,e,s)}_addCoordinatePolyline(t,e,s){this._dehydratedAddPointsCoordinate(t.paths,e,s)}_addCoordinatePolygon(t,e,s){this._dehydratedAddPointsCoordinate(t.rings,e,s)}_addCoordinateMultipoint(t,e,s){0===s&&t.points.push([]);const n=this._transformPathLikeValue(e,s);t.points[t.points.length-1].push(n)}_createPolygonGeometry(t){return{rings:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createPolylineGeometry(t){return{paths:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createMultipointGeometry(t){return{points:[],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_dehydratedAddPointsCoordinate(t,e,s){0===s&&0==this._toAddInCurrentPath--&&(t.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(e,s),i=t[t.length-1];0===s&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),i.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(t){const{hasZ:e,hasM:s}=t;return e&&s?Jt:e?vt:s?Nt:tt}}var bt=u(20477),et=u(17253),rt=u(96854);function nt(){return nt=(0,c.Z)(function*(r,t,e){const s=(0,D.en)(r),n={...e},i=rt.Z.from(t),l=!i.quantizationParameters,{data:d}=yield(0,bt.executeQueryPBF)(s,i,new Qt({sourceSpatialReference:i.sourceSpatialReference,applyTransform:l}),n);return d}),nt.apply(this,arguments)}var Ut=u(24263),ot=u(76391),Bt=u(87183);function Lt(r){const t=r.toJSON();return t.attachmentTypes&&(t.attachmentTypes=t.attachmentTypes.join(",")),t.keywords&&(t.keywords=t.keywords.join(",")),t.globalIds&&(t.globalIds=t.globalIds.join(",")),t.objectIds&&(t.objectIds=t.objectIds.join(",")),t.size&&(t.size=t.size.join(",")),t}function Ct(r,t){const e={};for(const s of r){const{parentObjectId:n,parentGlobalId:i,attachmentInfos:l}=s;for(const d of l){const{id:p}=d,h=(0,T.qg)((0,Ut.Dp)(`${t}/${n}/attachments/${p}`)),f=Bt.Z.fromJSON(d);f.set({url:h,parentObjectId:n,parentGlobalId:i}),e[n]?e[n].push(f):e[n]=[f]}}return e}function zt(r,t,e){let s={query:(0,ot.A)({...r.query,f:"json",...Lt(t)})};return e&&(s={...e,...s,query:{...e.query,...s.query}}),(0,g.default)(r.path+"/queryAttachments",s)}var Vt=u(67736);function at(){return at=(0,c.Z)(function*(r,t,e){const s=(0,D.en)(r);return zt(s,Vt.Z.from(t),{...e}).then(n=>Ct(n.data.attachmentGroups,s.path))}),at.apply(this,arguments)}var Wt=u(90463);function it(){return it=(0,c.Z)(function*(r,t,e){const s=(0,D.en)(r);return(0,bt.executeQueryForExtent)(s,rt.Z.from(t),{...e}).then(n=>({count:n.data.count,extent:Y.Z.fromJSON(n.data.extent)}))}),it.apply(this,arguments)}var Ht=u(24865);function Xt(r,t){const e=r.toJSON();return e.objectIds&&(e.objectIds=e.objectIds.join(",")),e.orderByFields&&(e.orderByFields=e.orderByFields.join(",")),e.outFields&&!t?.returnCountOnly?e.outFields=e.outFields.includes("*")?"*":e.outFields.join(","):delete e.outFields,e.outSpatialReference&&(e.outSR=e.outSR.wkid||JSON.stringify(e.outSR.toJSON()),delete e.outSpatialReference),e.dynamicDataSource&&(e.layer=JSON.stringify({source:e.dynamicDataSource}),delete e.dynamicDataSource),e}function wt(r,t,e){return ut.apply(this,arguments)}function ut(){return ut=(0,c.Z)(function*(r,t,e){const s=yield Tt(r,t,e),n=s.data,i=n.geometryType,l=n.spatialReference,d={};for(const p of n.relatedRecordGroups){const h={fields:void 0,objectIdFieldName:void 0,geometryType:i,spatialReference:l,hasZ:!!n.hasZ,hasM:!!n.hasM,features:p.relatedRecords};if(null!=p.objectId)d[p.objectId]=h;else for(const f in p)p.hasOwnProperty(f)&&"relatedRecords"!==f&&(d[p[f]]=h)}return{...s,data:d}}),ut.apply(this,arguments)}function Yt(r,t,e){return lt.apply(this,arguments)}function lt(){return lt=(0,c.Z)(function*(r,t,e){const s=yield Tt(r,t,e,{returnCountOnly:!0}),n=s.data,i={};for(const l of n.relatedRecordGroups)null!=l.objectId&&(i[l.objectId]=l.count);return{...s,data:i}}),lt.apply(this,arguments)}function Tt(r,t){return dt.apply(this,arguments)}function dt(){return dt=(0,c.Z)(function*(r,t,e={},s){const n=(0,ot.A)({...r.query,f:"json",...s,...Xt(t,s)});return(0,g.default)(r.path+"/queryRelatedRecords",{...e,query:{...e.query,...n}})}),dt.apply(this,arguments)}var z=u(67010);function ct(){return ct=(0,c.Z)(function*(r,t,e){return t=z.Z.from(t),wt((0,D.en)(r),t,e).then(n=>{const i=n.data,l={};return Object.keys(i).forEach(d=>l[d]=et.default.fromJSON(i[d])),l})}),ct.apply(this,arguments)}function pt(){return pt=(0,c.Z)(function*(r,t,e){return t=z.Z.from(t),Yt((0,D.en)(r),t,{...e}).then(n=>n.data)}),pt.apply(this,arguments)}var ee=u(93555),re=u(61515);const jt="Layer does not support extent calculation.";function se(r,t){const e=r.geometry,s=r.toJSON(),n=s;if((0,y.pC)(e)&&(n.geometry=JSON.stringify(e),n.geometryType=(0,xt.Ji)(e),n.inSR=e.spatialReference.wkid||JSON.stringify(e.spatialReference)),s.topFilter?.groupByFields&&(n.topFilter.groupByFields=s.topFilter.groupByFields.join(",")),s.topFilter?.orderByFields&&(n.topFilter.orderByFields=s.topFilter.orderByFields.join(",")),s.topFilter&&(n.topFilter=JSON.stringify(n.topFilter)),s.objectIds&&(n.objectIds=s.objectIds.join(",")),s.orderByFields&&(n.orderByFields=s.orderByFields.join(",")),s.outFields&&!(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?n.outFields=s.outFields.includes("*")?"*":s.outFields.join(","):delete n.outFields,s.outSR?n.outSR=s.outSR.wkid||JSON.stringify(s.outSR):e&&s.returnGeometry&&(n.outSR=n.inSR),s.returnGeometry&&delete s.returnGeometry,s.timeExtent){const i=s.timeExtent,{start:l,end:d}=i;null==l&&null==d||(n.time=l===d?l:`${l??"null"},${d??"null"}`),delete s.timeExtent}return n}function ne(r,t,e,s){return yt.apply(this,arguments)}function yt(){return yt=(0,c.Z)(function*(r,t,e,s){const n=yield V(r,t,"json",s);return(0,re.p)(t,e,n.data),n}),yt.apply(this,arguments)}function oe(r,t,e){return ht.apply(this,arguments)}function ht(){return ht=(0,c.Z)(function*(r,t,e){return(0,y.pC)(t.timeExtent)&&t.timeExtent.isEmpty?{data:{objectIds:[]}}:V(r,t,"json",e,{returnIdsOnly:!0})}),ht.apply(this,arguments)}function ae(r,t,e){return ft.apply(this,arguments)}function ft(){return ft=(0,c.Z)(function*(r,t,e){return(0,y.pC)(t.timeExtent)&&t.timeExtent.isEmpty?{data:{count:0,extent:null}}:V(r,t,"json",e,{returnExtentOnly:!0,returnCountOnly:!0}).then(s=>{const n=s.data;if(n.hasOwnProperty("extent"))return s;if(n.features)throw new Error(jt);if(n.hasOwnProperty("count"))throw new Error(jt);return s})}),ft.apply(this,arguments)}function ie(r,t,e){return(0,y.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):V(r,t,"json",e,{returnIdsOnly:!0,returnCountOnly:!0})}function V(r,t,e,s={},n={}){const i="string"==typeof r?(0,T.mN)(r):r,l=t.geometry?[t.geometry]:[];return s.responseType="pbf"===e?"array-buffer":"json",(0,ee.aX)(l,null,s).then(d=>{const p=d&&d[0];(0,y.pC)(p)&&((t=t.clone()).geometry=p);const h=(0,ot.A)({...i.query,f:e,...n,...se(t,n)});return(0,g.default)((0,T.v_)(i.path,"queryTopFeatures"),{...s,query:{...h,...s.query}})})}var $=u(6871);function mt(){return mt=(0,c.Z)(function*(r,t,e,s){const n=(0,D.en)(r),i={...s},{data:l}=yield ne(n,$.Z.from(t),e,i);return et.default.fromJSON(l)}),mt.apply(this,arguments)}function gt(){return gt=(0,c.Z)(function*(r,t,e){const s=(0,D.en)(r);return(yield oe(s,$.Z.from(t),{...e})).data.objectIds}),gt.apply(this,arguments)}function Ft(){return Ft=(0,c.Z)(function*(r,t,e){const s=(0,D.en)(r),n=yield ae(s,$.Z.from(t),{...e});return{count:n.data.count,extent:Y.Z.fromJSON(n.data.extent)}}),Ft.apply(this,arguments)}function _t(){return _t=(0,c.Z)(function*(r,t,e){const s=(0,D.en)(r);return(yield ie(s,$.Z.from(t),{...e})).data.count}),_t.apply(this,arguments)}var pe=u(14517);let J=class extends pe.Z{constructor(...r){super(...r),this.requestOptions=null,this.url=null}normalizeCtorArgs(r,t){return"string"!=typeof r?r:{url:r,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(r){return(0,T.mN)(r)}_encode(r,t,e){const s={};for(const n in r){if("declaredClass"===n)continue;const i=r[n];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){s[n]=[];for(let l=0;l{const s=new FileReader;s.readAsDataURL(r),s.onload=()=>t((0,T.sJ)(s.result)),s.onerror=n=>e(n)})}),Rt.apply(this,arguments)}const _e=new Set(["Feature Layer","Table"]),Re=new C.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let G=class extends P.Z{constructor(){var r;super(...arguments),r=this,this.type="feature-layer",this.refresh=(0,N.Ds)((0,c.Z)(function*(){yield r.load();const t=r.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{yield r._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==r.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:r.sourceJSON.editingInfo,extent:r.sourceJSON.extent}:null}}))}load(r){const t=(0,y.pC)(r)?r.signal:null;return this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,t)),Promise.resolve(this)}get queryTask(){const{capabilities:{query:{supportsFormatPBF:r}},parsedUrl:t,dynamicDataSource:e,infoFor3D:s,gdbVersion:n,spatialReference:i,fieldsIndex:l}=this.layer,d=(0,v.Z)("featurelayer-pbf")&&r&&(0,y.Wi)(s)?"pbf":"json";return new he({url:t.path,format:d,fieldsIndex:l,infoFor3D:s,dynamicDataSource:e,gdbVersion:n,sourceSpatialReference:i})}addAttachment(r,t){var e=this;return(0,c.Z)(function*(){yield e.load();const s=r.attributes[e.layer.objectIdField],n=e.layer.parsedUrl.path+"/"+s+"/addAttachment",i=e._getLayerRequestOptions(),l=e._getFormDataForAttachment(t,i.query);try{const d=yield(0,g.default)(n,{body:l});return e._createFeatureEditResult(d.data.addAttachmentResult)}catch(d){throw e._createAttachmentErrorResult(s,d)}})()}updateAttachment(r,t,e){var s=this;return(0,c.Z)(function*(){yield s.load();const n=r.attributes[s.layer.objectIdField],i=s.layer.parsedUrl.path+"/"+n+"/updateAttachment",l=s._getLayerRequestOptions({query:{attachmentId:t}}),d=s._getFormDataForAttachment(e,l.query);try{const p=yield(0,g.default)(i,{body:d});return s._createFeatureEditResult(p.data.updateAttachmentResult)}catch(p){throw s._createAttachmentErrorResult(n,p)}})()}applyEdits(r,t){var e=this;return(0,c.Z)(function*(){yield e.load();const s=e.layer.infoFor3D,n=(0,y.pC)(s),i=n||t?.globalIdUsed,l=r.addFeatures.map(S=>e._serializeFeature(S,s)),d=r.updateFeatures.map(S=>e._serializeFeature(S,s)),p=e._getFeatureIds(r.deleteFeatures,i);(0,me.P)(l,d,e.layer.spatialReference);const h=[],f=[],O=[...r.deleteAttachments];for(const S of r.addAttachments)h.push(yield e._serializeAttachment(S));for(const S of r.updateAttachments)f.push(yield e._serializeAttachment(S));const x=h.length||f.length||O.length?{adds:h,updates:f,deletes:O}:null;let R,Q=null;if(n){Q=new Map;const S=[];for(const B of r.addAssets)S.push(e._serializeAssetMapEditAndUploadAssets(B,Q));const K=yield Promise.all(S);R=K.length?{adds:K,updates:[],deletes:[]}:void 0}const A={gdbVersion:t?.gdbVersion||e.layer.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:i,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId};t?.returnServiceEditsOption?(A.edits=JSON.stringify([{id:e.layer.layerId,adds:l,updates:d,deletes:p,attachments:x,assetMaps:(0,y.Wg)(R)}]),A.returnServiceEditsOption=Fe.toJSON(t?.returnServiceEditsOption),A.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(A.adds=l.length?JSON.stringify(l):null,A.updates=d.length?JSON.stringify(d):null,A.deletes=p.length?i?JSON.stringify(p):p.join(","):null,A.attachments=x&&JSON.stringify(x),A.assetMaps=(0,y.pC)(R)?JSON.stringify(R):void 0);const xe=e._getLayerRequestOptions({method:"post",query:A}),Zt=t?.returnServiceEditsOption?e.layer.url:e.layer.parsedUrl.path,W=yield(0,g.default)(Zt+"/applyEdits",xe);if(n&&null!=W.data&&null!=W.data.assetMaps){const S=W.data,K=e.layer.objectIdField,B=[];for(const q of S.addResults)q.success&&B.push(q.objectId);for(const q of S.updateResults)q.success&&B.push(q.objectId);const Se=e._createRequestQueryOptions(),H=yield(0,g.default)(Zt+"/query",{...Se,query:{f:"json",formatOf3DObjects:"3D_glb",where:`OBJECTID IN (${B.join(",")})`,outFields:`${K}`}});if(H&&H.data&&H.data.assetMaps&&(0,y.pC)(Q)){const q=H.data.assetMaps;for(const Ot of q){const X=Q.get(Ot.parentGlobalId).geometry;(0,y.pC)(X)&&"mesh"===X.type&&X.updateExternalSource({source:[{name:Ot.assetName,source:Ot.assetName}],extent:X.extent})}}}return e._createEditsResult(W)})()}deleteAttachments(r,t){var e=this;return(0,c.Z)(function*(){yield e.load();const s=r.attributes[e.layer.objectIdField],n=e.layer.parsedUrl.path+"/"+s+"/deleteAttachments";try{return(yield(0,g.default)(n,e._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(e._createFeatureEditResult)}catch(i){throw e._createAttachmentErrorResult(s,i)}})()}fetchRecomputedExtents(r={}){var t=this;return this.load({signal:r.signal}).then((0,c.Z)(function*(){const s=t._getLayerRequestOptions({...r,query:{returnUpdates:!0}}),{layerId:n,url:i}=t.layer,{data:l}=yield(0,g.default)(`${i}/${n}`,s),{id:d,extent:p,fullExtent:h,timeExtent:f}=l,O=p||h;return{id:d,fullExtent:O&&Y.Z.fromJSON(O),timeExtent:f&&I.Z.fromJSON({start:f[0],end:f[1]})}}))}queryAttachments(r,t={}){var e=this;return(0,c.Z)(function*(){const{parsedUrl:s}=e.layer,n=s.path;yield e.load();const i=e._getLayerRequestOptions(t);if(!e.layer.get("capabilities.operations.supportsQueryAttachments")){const{objectIds:l}=r,d=[];for(const p of l)d.push((0,g.default)(n+"/"+p+"/attachments",i));return Promise.all(d).then(p=>l.map((h,f)=>({parentObjectId:h,attachmentInfos:p[f].data.attachmentInfos}))).then(p=>Ct(p,n))}return e.queryTask.executeAttachmentQuery(r,i)})()}queryFeatures(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.execute(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryFeaturesJSON(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeJSON(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryObjectIds(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeForIds(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryFeatureCount(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeForCount(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryExtent(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeForExtent(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryRelatedFeatures(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeRelationshipQuery(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryRelatedFeaturesCount(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeRelationshipQueryForCount(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryTopFeatures(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeTopFeaturesQuery(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryTopObjectIds(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeForTopIds(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryTopExtents(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeForTopExtents(r,{...t,query:e._createRequestQueryOptions(t)})})()}queryTopCount(r,t){var e=this;return(0,c.Z)(function*(){return yield e.load(),e.queryTask.executeForTopCount(r,{...t,query:e._createRequestQueryOptions(t)})})()}fetchPublishingStatus(){var r=this;return(0,c.Z)(function*(){if(!(0,fe.M8)(r.layer.url))return"unavailable";const t=(0,T.v_)(r.layer.url,"status"),e=yield(0,g.default)(t,{query:{f:"json"}});return Re.fromJSON(e.data.status)})()}_createRequestQueryOptions(r){const t={...this.layer.customParameters,token:this.layer.apiKey,...r?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}_fetchService(r,t){var e=this;return(0,c.Z)(function*(){if(!r){const{data:n}=yield(0,g.default)(e.layer.parsedUrl.path,e._getLayerRequestOptions({query:(0,v.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));r=n}e.sourceJSON=e._patchServiceJSON(r);const s=r.type;if(!_e.has(s))throw new _.Z("feature-layer-source:unsupported-type",`Source type "${s}" is not supported`)})()}_patchServiceJSON(r){if("Table"!==r.type&&r.geometryType&&!r?.drawingInfo?.renderer&&!r.defaultSymbol){const t=(0,At.bU)(r.geometryType).renderer;(0,b.RB)("drawingInfo.renderer",t,r)}return"esriGeometryMultiPatch"===r.geometryType&&r.infoFor3D&&(r.geometryType="mesh"),r}_serializeFeature(r,t){const{geometry:e,attributes:s}=r;if((0,y.pC)(t)&&(0,y.pC)(r.geometry)&&"mesh"===r.geometry.type){const n={...s},i=r.geometry,l=i.origin,d=i.transform;if(n[t.transformFieldRoles.originX]=l.x,n[t.transformFieldRoles.originY]=l.y,n[t.transformFieldRoles.originZ]=l.z,(0,y.pC)(d)){const p=d.translation,h=d.scale,f=d.rotation;n[t.transformFieldRoles.translationX]=p[0],n[t.transformFieldRoles.translationY]=p[1],n[t.transformFieldRoles.translationZ]=p[2],n[t.transformFieldRoles.scaleX]=h[0],n[t.transformFieldRoles.scaleY]=h[1],n[t.transformFieldRoles.scaleZ]=h[2],n[t.transformFieldRoles.rotationX]=f[0],n[t.transformFieldRoles.rotationY]=f[1],n[t.transformFieldRoles.rotationZ]=f[2],n[t.transformFieldRoles.rotationDeg]=f[3]}return{geometry:null,attributes:n}}return(0,y.Wi)(e)?{attributes:s}:"mesh"===e.type||"extent"===e.type?null:{geometry:e.toJSON(),attributes:s}}_serializeAttachment(r){var t=this;return(0,c.Z)(function*(){const{feature:e,attachment:s}=r,{globalId:n,name:i,contentType:l,data:d,uploadId:p}=s,h={globalId:n,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(e&&(h.parentGlobalId="attributes"in e?e.attributes&&e.attributes[t.layer.globalIdField]:e.globalId),p)h.uploadId=p;else if(d){const f=yield Dt(d);h.contentType=f.mediaType,h.data=f.data,d instanceof File&&(h.name=d.name)}return i&&(h.name=i),l&&(h.contentType=l),h})()}_serializeAssetMapEditAndUploadAssets(r,t){var e=this;return(0,c.Z)(function*(){const s=e.layer.url;let n=null;try{const f=new Blob([r.data],{type:r.mimeType}),O=new FormData;O.append("f","json"),O.append("file",f,`${r.assetName}`);const x={body:O,method:"post",responseType:"json"},{data:R}=yield(0,g.default)(`${s}/uploads/upload`,x);if(!R.success)throw new _.Z("feature-layer-source:upload-failure","Expected upload to be successfull.");n={assetType:r.assetType,assetUploadId:R.item.itemID}}catch{n=null}if((0,y.Wi)(n)){const f=yield Dt(new Blob([r.data]));if(!f.isBase64)throw new _.Z("feature-layer-source:uploadAssets-failure","Expected gltf data in base64 format after conversion.");n={assetType:r.assetType,assetData:f.data}}if((0,y.Wi)(n))throw new _.Z("feature-layer-source:uploadAssets-failure","Unable to prepare uploadAsset request options.");const i={method:"post",query:{f:"json",assets:JSON.stringify([n])},responseType:"json"},l=yield(0,g.default)((0,T.v_)(e.layer.parsedUrl.path,"uploadAssets"),i);if(1!==l.data.uploadResults.length||!l.data.uploadResults[0].success)throw new _.Z("feature-layer-source:uploadAssets-failure","Bad response.");const d=l.data.uploadResults[0].assetHash,p=[];r.flags&k.PROJECT_VERTICES&&p.push("PROJECT_VERTICES");const h={globalId:r.assetMapGlobalId,parentGlobalId:r.featureGlobalId,assetName:r.assetName,assetHash:d,flags:p};return t.set(r.featureGlobalId,r.feature),h})()}_getFeatureIds(r,t){const e=r[0];return e?this._canUseGlobalIds(t,r)?this._getGlobalIdsFromFeatureIdentifier(r):"objectId"in e?this._getObjectIdsFromFeatureIdentifier(r):this._getIdsFromFeatures(r):[]}_getIdsFromFeatures(r){const t=this.layer.objectIdField;return r.map(e=>e.attributes&&e.attributes[t])}_canUseGlobalIds(r,t){return r&&"globalId"in t[0]}_getObjectIdsFromFeatureIdentifier(r){return r.map(t=>t.objectId)}_getGlobalIdsFromFeatureIdentifier(r){return r.map(t=>t.globalId)}_createEditsResult(r){const t=r.data,{layerId:e}=this.layer,s=[];let n=null;if(Array.isArray(t))for(const d of t)s.push({id:d.id,editedFeatures:d.editedFeatures}),d.id===e&&(n={addResults:d.addResults,updateResults:d.updateResults,deleteResults:d.deleteResults,attachments:d.attachments,editMoment:d.editMoment});else n=t;const i=n?.attachments,l={addFeatureResults:n.addResults?n.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:n.updateResults?n.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:n.deleteResults?n.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(n.editMoment&&(l.editMoment=n.editMoment),s.length>0){l.editedFeatureResults=[];for(const d of s){const{adds:p,updates:h,deletes:f,spatialReference:O}=d.editedFeatures,x=O?new ge.Z(O):null;l.editedFeatureResults.push({layerId:d.id,editedFeatures:{adds:p?.map(R=>this._createEditedFeature(R,x))||[],updates:h?.map(R=>({original:this._createEditedFeature(R[0],x),current:this._createEditedFeature(R[1],x)}))||[],deletes:f?.map(R=>this._createEditedFeature(R,x))||[],spatialReference:x}})}}return l}_createEditedFeature(r,t){return new j.Z({attributes:r.attributes,geometry:(0,xt.im)({...r.geometry,spatialReference:t})})}_createFeatureEditResult(r){const t=!0===r.success?null:r.error||{code:void 0,description:void 0};return{objectId:r.objectId,globalId:r.globalId,error:t?new _.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(r,t){return{objectId:r,globalId:null,error:new _.Z("feature-layer-source:attachment-failure",t.details.messages&&t.details.messages[0]||t.message,{code:t.details.httpStatus||t.details.messageCode})}}_getFormDataForAttachment(r,t){const e=r instanceof FormData?r:r&&r.elements?new FormData(r):null;if(e)for(const s in t){const n=t[s];null!=n&&(e.set?e.set(s,n):e.append(s,n))}return e}_getLayerRequestOptions(r={}){const{parsedUrl:t,gdbVersion:e,dynamicDataSource:s}=this.layer;return{...r,query:{gdbVersion:e,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(r)},responseType:"json"}}};(0,m._)([(0,F.Cb)()],G.prototype,"type",void 0),(0,m._)([(0,F.Cb)({constructOnly:!0})],G.prototype,"layer",void 0),(0,m._)([(0,F.Cb)({readOnly:!0})],G.prototype,"queryTask",null),G=(0,m._)([(0,w.j)("esri.layers.graphics.sources.FeatureLayerSource")],G);const Oe=G},56554:(L,E,u)=>{u.d(E,{Dm:()=>v,Hq:()=>C,MS:()=>P,bU:()=>g});var c=u(8314),m=u(58817),M=u(87757),j=u(24837);function g(y){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===y||"esriGeometryMultipoint"===y?j.I4:"esriGeometryPolyline"===y?j.ET:j.lF}}}const I=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let _=1;function v(y,b){if((0,c.Z)("esri-csp-restrictions"))return()=>({[b]:null,...y});try{let N=`this.${b} = null;`;for(const F in y)N+=`this${I.test(F)?`.${F}`:`["${F}"]`} = ${JSON.stringify(y[F])};`;const T=new Function(`\n return class AttributesClass$${_++} {\n constructor() {\n ${N};\n }\n }\n `)();return()=>new T}catch{return()=>({[b]:null,...y})}}function C(y={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,m.d9)(y)}}]}function P(y,b){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:y},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:b,supportsDelete:b,supportsEditing:b,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:b,supportsExceedsLimitStatistics:!0},query:M.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:b,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},90463:(L,E,u)=>{u.d(E,{P:()=>g});var c=u(15861),m=u(2618),M=u(20477),j=u(96854);function g(_,v,C){return I.apply(this,arguments)}function I(){return(I=(0,c.Z)(function*(_,v,C){const P=(0,m.en)(_);return(0,M.executeQueryForCount)(P,j.Z.from(v),{...C}).then(y=>y.data.count)})).apply(this,arguments)}},24865:(L,E,u)=>{u.d(E,{G:()=>g});var c=u(15861),m=u(2618),M=u(20477),j=u(96854);function g(_,v,C){return I.apply(this,arguments)}function I(){return(I=(0,c.Z)(function*(_,v,C){const P=(0,m.en)(_);return(0,M.executeQueryForIds)(P,j.Z.from(v),{...C}).then(y=>y.data.objectIds)})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4522.399750530df4617f.js b/apps/n/porrtal-io-app/public/angular/4522.399750530df4617f.js deleted file mode 100644 index 62c76ca2..00000000 --- a/apps/n/porrtal-io-app/public/angular/4522.399750530df4617f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4522],{58774:(Et,nt,V)=>{V.d(nt,{b:()=>s,j:()=>w});var E=V(15861),p=V(54346),G=V(8314);let O=null,H=null;function w(){return S.apply(this,arguments)}function S(){return(S=(0,E.Z)(function*(){return O||(O=k()),O})).apply(this,arguments)}function k(){return t.apply(this,arguments)}function t(){return(t=(0,E.Z)(function*(){H=yield((0,G.Z)("esri-csp-restrictions")?yield V.e(71).then(V.bind(V,10071)).then(r=>r.l):yield V.e(9507).then(V.bind(V,99507)).then(r=>r.l)).load({locateFile:r=>(0,p.V)(`esri/core/libs/libtess/${r}`)})})).apply(this,arguments)}function s(h,r){const n=Math.max(h.length,128e3);return H.triangulate(h,r,n)}},43289:(Et,nt,V)=>{function n(u){return function h(u,f){return(u%=f)>=0?u:u+f}(.7111111111111111*u,256)}function o(u,f,c){return u>=f&&u<=c||u>=c&&u<=f}V.d(nt,{s5:()=>n,vX:()=>o}),Math,Math},47018:(Et,nt,V)=>{V.d(nt,{I:()=>H,b:()=>O});var w,k,E=V(39351),p=V(97938),G=V(43289);class Y{constructor(t,s,h){this.ratio=t,this.x=s,this.y=h}}class O{constructor(t,s,h,r=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=n,this._tileSize=E.I_*r,this._dz=t,this._yPos=s,this._xPos=h}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<>this._dz;s>h&&(s=h),this._margin=s,this._xmin=h*this._xPos-s,this._ymin=h*this._yPos-s,this._xmax=this._xmin+h+2*s,this._ymax=this._ymin+h+2*s}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,s){this._pushLine(),this._prevIsIn=this._isIn(t,s),this._moveTo(t,s,this._prevIsIn),this._prevPt=new p.E(t,s),this._firstPt=new p.E(t,s),this._dist=0}lineTo(t,s){const h=this._isIn(t,s),r=new p.E(t,s),n=p.E.distance(this._prevPt,r);let i,x,l,o,u,f,c,g;if(h)this._prevIsIn?this._lineTo(t,s,!0):(i=this._prevPt,x=r,l=this._intersect(x,i),this._start=this._dist+n*(1-this._r),this._lineTo(l.x,l.y,!0),this._lineTo(x.x,x.y,!0));else if(this._prevIsIn)x=this._prevPt,i=r,l=this._intersect(x,i),this._lineTo(l.x,l.y,!0),this._lineTo(i.x,i.y,!1);else{const y=this._prevPt,a=r;if(y.x<=this._xmin&&a.x<=this._xmin||y.x>=this._xmax&&a.x>=this._xmax||y.y<=this._ymin&&a.y<=this._ymin||y.y>=this._ymax&&a.y>=this._ymax)this._lineTo(a.x,a.y,!1);else{const d=[];if((y.xthis._xmin||y.x>this._xmin&&a.x=this._ymax?f=!0:d.push(new Y(o,this._xmin,g))),(y.xthis._xmax||y.x>this._xmax&&a.x=this._ymax?f=!0:d.push(new Y(o,this._xmax,g))),(y.ythis._ymin||y.y>this._ymin&&a.y=this._xmax?u=!0:d.push(new Y(o,c,this._ymin))),(y.ythis._ymax||y.y>this._ymax&&a.y=this._xmax?u=!0:d.push(new Y(o,c,this._ymax))),0===d.length)this._lineTo(u?this._xmax:this._xmin,f?this._ymax:this._ymin,!0);else if(d.length>1&&d[0].ratio>d[1].ratio)this._start=this._dist+n*d[1].ratio,this._lineTo(d[1].x,d[1].y,!0),this._lineTo(d[0].x,d[0].y,!0);else{this._start=this._dist+n*d[0].ratio;for(let m=0;m2){const t=this._firstPt,s=this._prevPt;t.x===s.x&&t.y===s.y||this.lineTo(t.x,t.y);const h=this._line;let r=h.length;for(;r>=4&&(h[0].x===h[1].x&&h[0].x===h[r-2].x||h[0].y===h[1].y&&h[0].y===h[r-2].y);)h.pop(),h[0].x=h[r-2].x,h[0].y=h[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(this._type===p.V.Polygon&&t&&S.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(this._type!==p.V.LineString)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,s=t.length;if(0===s)return null;const h=[];for(let r=0;r=this._xmin&&t<=this._xmax&&s>=this._ymin&&s<=this._ymax}_intersect(t,s){let h,r,n;if(s.x>=this._xmin&&s.x<=this._xmax)r=s.y<=this._ymin?this._ymin:this._ymax,n=(r-t.y)/(s.y-t.y),h=t.x+n*(s.x-t.x);else if(s.y>=this._ymin&&s.y<=this._ymax)h=s.x<=this._xmin?this._xmin:this._xmax,n=(h-t.x)/(s.x-t.x),r=t.y+n*(s.y-t.y);else{r=s.y<=this._ymin?this._ymin:this._ymax,h=s.x<=this._xmin?this._xmin:this._xmax;const i=(h-t.x)/(s.x-t.x),x=(r-t.y)/(s.y-t.y);i0&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===p.V.LineString?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===p.V.Polygon&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,s,h){this._type!==p.V.Polygon?h&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.push(new p.E(t,s))):(h||(tthis._xmax&&(t=this._xmax),sthis._ymax&&(s=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.push(new p.E(t,s)),this._isH=!1,this._isV=!1)}_lineTo(t,s,h){let r,n;if(this._type!==p.V.Polygon)if(h){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,s)))return;this._line.push(new p.E(t,s))}else this._line&&this._line.length>0&&this._pushLine();else if(h||(tthis._xmax&&(t=this._xmax),sthis._ymax&&(s=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),s=Math.round((s-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];const i=r.x===t,x=r.y===s;if(i&&x)return;this._isH&&i||this._isV&&x?(r.x=t,r.y=s,n=this._line[this._line.length-2],n.x===t&&n.y===s?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===s)):(this._isH=n.x===t,this._isV=n.y===s)):(this._line.push(new p.E(t,s)),this._isH=i,this._isV=x)}else this._line.push(new p.E(t,s))}}class H{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,s){this._line&&this._lines.push(this._line),this._line=[];const h=this._ratio;this._line.push(new p.E(t*h,s*h))}lineTo(t,s){const h=this._ratio;this._line.push(new p.E(t*h,s*h))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}(k=w||(w={}))[k.sideLeft=0]="sideLeft",k[k.sideRight=1]="sideRight",k[k.sideTop=2]="sideTop",k[k.sideBottom=3]="sideBottom";class S{static simplify(t,s,h){if(!h)return;const r=-s,n=t+s,i=-s,x=t+s,l=[],o=[],u=h.length;for(let c=0;cy.y?(l.push(c),l.push(m),l.push(w.sideLeft),l.push(-1)):(o.push(c),o.push(m),o.push(w.sideLeft),o.push(-1))),a.x>=n&&(a.y=x&&(a.x>y.x?(l.push(c),l.push(m),l.push(w.sideBottom),l.push(-1)):(o.push(c),o.push(m),o.push(w.sideBottom),o.push(-1)))),a=y}if(0===l.length||0===o.length)return;S.fillParent(h,o,l),S.fillParent(h,l,o);const f=[];S.calcDeltas(f,o,l),S.calcDeltas(f,l,o),S.addDeltas(f,h)}static fillParent(t,s,h){const r=h.length,n=s.length;for(let i=0;i1&&r[i-2]===n?0:(r.push(n),S.calcDelta(n,h,s,r)+1)}static addDeltas(t,s){const h=t.length;let r=0;for(let n=0;nr&&(r=i)}for(let n=0;n{V.d(nt,{z:()=>r});var E=V(7547),p=V(39351);function G(n,i){return n.x===i.x&&n.y===i.y}function O(n,i){return n.x=i.y,n.y=-i.x,n}function H(n,i){return n.x=-i.y,n.y=i.x,n}function w(n,i){return n.x=i.x,n.y=i.y,n}function S(n,i){return n.x=-i.x,n.y=-i.y,n}function k(n){return Math.sqrt(n.x*n.x+n.y*n.y)}function t(n,i){return n.x*i.y-n.y*i.x}function s(n,i){return n.x*i.x+n.y*i.y}function h(n,i,x,l){return n.x=i.x*x+i.y*l,n.y=i.x*l-i.y*x,n}class r{constructor(i,x,l){this._writeVertex=i,this._writeTriangle=x,this._canUseThinTessellation=l,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(i,x){(function Y(n){if(!n)return;const i=n.length;if(i<=1)return;let x=0;for(let l=1;ll){u=!0;const e=(l-o)/M;M=l-o,a=(1-e)*f+e*a,d=(1-e)*c+e*d,--y}const L=this._writeVertex(f,c,0,0,m,R,R,-m,0,-1,o),P=this._writeVertex(f,c,0,0,m,R,-R,m,0,1,o);o+=M;const ht=this._writeVertex(a,d,0,0,m,R,R,-m,0,-1,o),_=this._writeVertex(a,d,0,0,m,R,-R,m,0,1,o);this._writeTriangle(L,P,ht),this._writeTriangle(P,ht,_),f=a,c=d}}_tessellate(i,x){const o=i[i.length-1],u=G(i[0],o);if(i.length<(u?3:2))return;const c=x.pixelCoordRatio,g=null!=x.capType?x.capType:E.RL.BUTT,y=null!=x.joinType?x.joinType:E.AH.MITER,a=null!=x.miterLimit?Math.min(x.miterLimit,4):2,d=null!=x.roundLimit?Math.min(x.roundLimit,1.05):1.05,m=null!=x.halfWidth?x.halfWidth:2,R=!!x.textured;let M,L,P,ht=null;const _=this._prevNormal,e=this._nextNormal;let lt=-1,it=-1;const v=this._joinNormal;let N,B;const ct=this._textureNormalLeft,mt=this._textureNormalRight,j=this._textureNormal;let U=-1,I=-1;const wt=x.wrapDistance||65535;let D=x.initialDistance||0;const Pt=this._writeVertex,Vt=this._writeTriangle,A=(K,dt,_t,C,Z,$)=>{const J=Pt(L,P,N,B,_t,C,K,dt,Z,$,D);return U>=0&&I>=0&&J>=0&&Vt(U,I,J),U=I,I=J,J};u&&(M=i[i.length-2],e.x=o.x-M.x,e.y=o.y-M.y,it=k(e),e.x/=it,e.y/=it);let rt=!1;for(let K=0;Kwt&&(rt=!0)),rt){const T=(wt-D)/lt;lt=wt-D,M={x:(1-T)*M.x+T*i[K].x,y:(1-T)*M.y+T*i[K].y},--K}else M=i[K];L=M.x,P=M.y;const dt=K<=0&&!rt,_t=K===i.length-1;if(dt||(D+=lt),ht=_t?u?i[1]:null:i[K+1],ht?(e.x=ht.x-L,e.y=ht.y-P,it=k(e),e.x/=it,e.y/=it):(e.x=void 0,e.y=void 0),!u){if(dt){H(v,e),N=v.x,B=v.y,g===E.RL.SQUARE&&(A(-e.y-e.x,e.x-e.y,e.x,e.y,0,-1),A(e.y-e.x,-e.x-e.y,e.x,e.y,0,1)),g===E.RL.ROUND&&(A(-e.y-e.x,e.x-e.y,e.x,e.y,-1,-1),A(e.y-e.x,-e.x-e.y,e.x,e.y,-1,1)),g!==E.RL.ROUND&&g!==E.RL.BUTT||(A(-e.y,e.x,e.x,e.y,0,-1),A(e.y,-e.x,e.x,e.y,0,1));continue}if(_t){O(v,_),N=v.x,B=v.y,g!==E.RL.ROUND&&g!==E.RL.BUTT||(A(_.y,-_.x,-_.x,-_.y,0,-1),A(-_.y,_.x,-_.x,-_.y,0,1)),g===E.RL.SQUARE&&(A(_.y-_.x,-_.x-_.y,-_.x,-_.y,0,-1),A(-_.y-_.x,_.x-_.y,-_.x,-_.y,0,1)),g===E.RL.ROUND&&(A(_.y-_.x,-_.x-_.y,-_.x,-_.y,1,-1),A(-_.y-_.x,_.x-_.y,-_.x,-_.y,1,1));continue}}let C,Z,$=-t(_,e);if(Math.abs($)<.01)s(_,e)>0?(v.x=_.x,v.y=_.y,$=1,C=Number.MAX_VALUE,Z=!0):(H(v,e),$=1,C=1,Z=!1);else{v.x=(_.x+e.x)/$,v.y=(_.y+e.y)/$,C=k(v);const T=(C-1)*m*c;Z=C>4||T>lt&&T>it}N=v.x,B=v.y;let J=y;switch(y){case E.AH.BEVEL:C<1.05&&(J=E.AH.MITER);break;case E.AH.ROUND:Ca&&(J=E.AH.BEVEL)}switch(J){case E.AH.MITER:if(A(v.x,v.y,-_.x,-_.y,0,-1),A(-v.x,-v.y,-_.x,-_.y,0,1),_t)break;if(R){const T=rt?0:D;U=this._writeVertex(L,P,N,B,e.x,e.y,v.x,v.y,0,-1,T),I=this._writeVertex(L,P,N,B,e.x,e.y,-v.x,-v.y,0,1,T)}break;case E.AH.BEVEL:{const T=$<0;let W,X,st,Q;if(T){const b=U;U=I,I=b,W=ct,X=mt}else W=mt,X=ct;if(Z)st=T?H(this._innerPrev,_):O(this._innerPrev,_),Q=T?O(this._innerNext,e):H(this._innerNext,e);else{const b=T?S(this._inner,v):w(this._inner,v);st=b,Q=b}const F=T?O(this._bevelStart,_):H(this._bevelStart,_);A(st.x,st.y,-_.x,-_.y,W.x,W.y);const pt=A(F.x,F.y,-_.x,-_.y,X.x,X.y);if(_t)break;const q=T?H(this._bevelEnd,e):O(this._bevelEnd,e);if(Z){const b=this._writeVertex(L,P,N,B,-_.x,-_.y,0,0,0,0,D);U=this._writeVertex(L,P,N,B,e.x,e.y,Q.x,Q.y,W.x,W.y,D),I=this._writeVertex(L,P,N,B,e.x,e.y,q.x,q.y,X.x,X.y,D),this._writeTriangle(pt,b,I)}else{if(R){const b=this._bevelMiddle;b.x=(F.x+q.x)/2,b.y=(F.y+q.y)/2,h(j,b,-_.x,-_.y),A(b.x,b.y,-_.x,-_.y,j.x,j.y),h(j,b,e.x,e.y),U=this._writeVertex(L,P,N,B,e.x,e.y,b.x,b.y,j.x,j.y,D),I=this._writeVertex(L,P,N,B,e.x,e.y,Q.x,Q.y,W.x,W.y,D)}else{const b=U;U=I,I=b}A(q.x,q.y,e.x,e.y,X.x,X.y)}if(T){const b=U;U=I,I=b}break}case E.AH.ROUND:{const T=$<0;let W,X;if(T){const z=U;U=I,I=z,W=ct,X=mt}else W=mt,X=ct;const st=T?S(this._inner,v):w(this._inner,v);let Q,F;Z?(Q=T?H(this._innerPrev,_):O(this._innerPrev,_),F=T?O(this._innerNext,e):H(this._innerNext,e)):(Q=st,F=st);const pt=T?O(this._roundStart,_):H(this._roundStart,_),q=T?H(this._roundEnd,e):O(this._roundEnd,e),b=A(Q.x,Q.y,-_.x,-_.y,W.x,W.y),ft=A(pt.x,pt.y,-_.x,-_.y,X.x,X.y);if(_t)break;const et=this._writeVertex(L,P,N,B,-_.x,-_.y,0,0,0,0,D);Z||this._writeTriangle(U,I,et);const tt=S(this._outer,st),xt=this._writeVertex(L,P,N,B,e.x,e.y,q.x,q.y,X.x,X.y,D);let yt,ot;const gt=C>2;if(gt){let z;C!==Number.MAX_VALUE?(tt.x/=C,tt.y/=C,z=s(_,tt),z=(C*(z*z-1)+1)/z):z=-1,yt=T?O(this._startBreak,_):H(this._startBreak,_),yt.x+=_.x*z,yt.y+=_.y*z,ot=T?H(this._endBreak,e):O(this._endBreak,e),ot.x+=e.x*z,ot.y+=e.y*z}h(j,tt,-_.x,-_.y);const Tt=this._writeVertex(L,P,N,B,-_.x,-_.y,tt.x,tt.y,j.x,j.y,D);h(j,tt,e.x,e.y);const Rt=R?this._writeVertex(L,P,N,B,e.x,e.y,tt.x,tt.y,j.x,j.y,D):Tt,Mt=et,vt=R?this._writeVertex(L,P,N,B,e.x,e.y,0,0,0,0,D):et;let at=-1,ut=-1;if(gt&&(h(j,yt,-_.x,-_.y),at=this._writeVertex(L,P,N,B,-_.x,-_.y,yt.x,yt.y,j.x,j.y,D),h(j,ot,e.x,e.y),ut=this._writeVertex(L,P,N,B,e.x,e.y,ot.x,ot.y,j.x,j.y,D)),R?gt?(this._writeTriangle(Mt,ft,at),this._writeTriangle(Mt,at,Tt),this._writeTriangle(vt,Rt,ut),this._writeTriangle(vt,ut,xt)):(this._writeTriangle(Mt,ft,Tt),this._writeTriangle(vt,Rt,xt)):gt?(this._writeTriangle(et,ft,at),this._writeTriangle(et,at,ut),this._writeTriangle(et,ut,xt)):(this._writeTriangle(et,ft,Tt),this._writeTriangle(et,Rt,xt)),Z?(U=this._writeVertex(L,P,N,B,e.x,e.y,F.x,F.y,W.x,W.y,D),I=xt):(U=R?this._writeVertex(L,P,N,B,e.x,e.y,F.x,F.y,W.x,W.y,D):b,this._writeTriangle(U,vt,xt),I=xt),T){const z=U;U=I,I=z}break}}}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4578.f8ed66feee398009.js b/apps/n/porrtal-io-app/public/angular/4578.f8ed66feee398009.js deleted file mode 100644 index ea31ac89..00000000 --- a/apps/n/porrtal-io-app/public/angular/4578.f8ed66feee398009.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4578],{24578:(D,L,n)=>{n.r(L),n.d(L,{fromUrl:()=>x});var r=n(15861),v=n(26584),t=n(62208),a=n(21726),M=n(38305),h=n(17196),W=n(30164);function x(e){return c.apply(this,arguments)}function c(){return(c=(0,r.Z)(function*(e){const o=e.properties?.customParameters,l=yield R(e.url,o),u={...e.properties,url:e.url};if(!l.sublayerIds)return null!=l.layerOrTableId&&(u.layerId=l.layerOrTableId,u.sourceJSON=l.sourceJSON),new l.Constructor(u);const y=new((yield n.e(5964).then(n.bind(n,25964))).default)({title:l.parsedUrl.title});return F(y,l,u),y})).apply(this,arguments)}function C(e,o){return e?e.find(l=>l.id===o):null}function F(e,o,l){function u(y,f){const i={...l,layerId:y,sublayerTitleMode:"service-name"};return(0,t.pC)(f)&&(i.sourceJSON=f),new o.Constructor(i)}o.sublayerIds.forEach(y=>{const f=u(y,C(o.sublayerInfos,y));e.add(f)}),o.tableIds.forEach(y=>{const f=u(y,C(o.tableInfos,y));e.tables.add(f)})}function R(e,o){return S.apply(this,arguments)}function S(){return(S=(0,r.Z)(function*(e,o){let l=(0,M.Qc)(e);if((0,t.Wi)(l)&&(l=yield B(e,o)),(0,t.Wi)(l))throw new v.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:u,sublayer:y}=l;let f;const i={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(u){case"MapServer":f=null!=y?"FeatureLayer":V(e,o).then(s=>s?"TileLayer":"MapImageLayer");break;case"ImageServer":f=(0,h.C)(e,{customParameters:o}).then(s=>s.tileInfo?"LERC"!==(s.tileInfo&&s.tileInfo.format)?.toUpperCase()||s.cacheType&&"elevation"!==s.cacheType.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer");break;case"SceneServer":f=(0,h.C)(l.url.path,{customParameters:o}).then(s=>{if(s){if("Voxel"===s?.layerType)return"VoxelLayer";if(s?.layers&&Array.isArray(s.layers)&&s.layers.length>0){const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"},U=s.layers[0]?.layerType;if(null!=g[U])return g[U]}}return"SceneLayer"});break;default:f=i[u]}const Z="FeatureServer"===u,m={parsedUrl:l,Constructor:null,layerOrTableId:Z?y:null,sublayerIds:null,tableIds:null},p=yield f;if({FeatureLayer:!0,SceneLayer:!0}[p]&&null==y){const s=yield G(e,u,o);Z&&(m.sublayerInfos=s.layerInfos,m.tableInfos=s.tableInfos),s.layerIds.length+s.tableIds.length!==1?(m.sublayerIds=s.layerIds,m.tableIds=s.tableIds):Z&&(m.layerOrTableId=s.layerIds[0]??s.tableIds[0],m.sourceJSON=s.layerInfos[0]??s.tableInfos[0])}return m.Constructor=yield N(p),m})).apply(this,arguments)}function B(e,o){return I.apply(this,arguments)}function I(){return(I=(0,r.Z)(function*(e,o){const l=yield(0,h.C)(e,{customParameters:o});let u=null,y=null;const f=l.type;if("Feature Layer"===f||"Table"===f?(u="FeatureServer",y=l.id):"indexedVector"===f?u="VectorTileServer":l.hasOwnProperty("mapName")?u="MapServer":l.hasOwnProperty("bandCount")&&l.hasOwnProperty("pixelSizeX")?u="ImageServer":l.hasOwnProperty("maxRecordCount")&&l.hasOwnProperty("allowGeometryUpdates")?u="FeatureServer":l.hasOwnProperty("streamUrls")?u="StreamServer":E(l)?(u="SceneServer",y=l.id):l.hasOwnProperty("layers")&&E(l.layers?.[0])&&(u="SceneServer"),!u)return null;const i=null!=y?(0,M.DR)(e):null;return{title:(0,t.pC)(i)&&l.name||(0,a.vt)(e),serverType:u,sublayer:y,url:{path:(0,t.pC)(i)?i.serviceUrl:(0,a.mN)(e).path}}})).apply(this,arguments)}function E(e){return e?.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}function G(e,o,l){return P.apply(this,arguments)}function P(){return(P=(0,r.Z)(function*(e,o,l){let u,y=!1;if("FeatureServer"===o){const d=yield(0,h.V)(e,{customParameters:l});y=!!d.layersJSON,u=d.layersJSON||d.serviceJSON}else u=yield(0,h.C)(e,{customParameters:l});const f=u?.layers,i=u?.tables;return{layerIds:f?.map(d=>d.id).reverse()||[],tableIds:i?.map(d=>d.id).reverse()||[],layerInfos:y?f:[],tableInfos:y?i:[]}})).apply(this,arguments)}function N(e){return O.apply(this,arguments)}function O(){return(O=(0,r.Z)(function*(e){return(0,W.T[e])()})).apply(this,arguments)}function V(e,o){return T.apply(this,arguments)}function T(){return(T=(0,r.Z)(function*(e,o){return(yield(0,h.C)(e,{customParameters:o})).tileInfo})).apply(this,arguments)}},30164:(D,L,n)=>{n.d(L,{T:()=>v});var r=n(15861);const v={BingMapsLayer:(t=(0,r.Z)(function*(){return(yield n.e(2248).then(n.bind(n,72248))).default}),function(){return t.apply(this,arguments)}),BuildingSceneLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(157),n.e(9410),n.e(8592),n.e(676)]).then(n.bind(n,6189))).default});return function(){return t.apply(this,arguments)}}(),CSVLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(5625).then(n.bind(n,85625))).default});return function(){return t.apply(this,arguments)}}(),DimensionLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8592),n.e(7614)]).then(n.bind(n,17614))).default});return function(){return t.apply(this,arguments)}}(),ElevationLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8592),n.e(5810)]).then(n.bind(n,75810))).default});return function(){return t.apply(this,arguments)}}(),FeatureLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.resolve().then(n.bind(n,80415))).default});return function(){return t.apply(this,arguments)}}(),GroupLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(5964).then(n.bind(n,25964))).default});return function(){return t.apply(this,arguments)}}(),GeoRSSLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(6306).then(n.bind(n,96306))).default});return function(){return t.apply(this,arguments)}}(),GeoJSONLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(2903).then(n.bind(n,72903))).default});return function(){return t.apply(this,arguments)}}(),ImageryLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(1533),n.e(1913),n.e(9217)]).then(n.bind(n,39217))).default});return function(){return t.apply(this,arguments)}}(),ImageryTileLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(1533),n.e(8594),n.e(1913),n.e(6455),n.e(8592),n.e(6329)]).then(n.bind(n,86329))).default});return function(){return t.apply(this,arguments)}}(),IntegratedMeshLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(157),n.e(7867)]).then(n.bind(n,67867))).default});return function(){return t.apply(this,arguments)}}(),KMLLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(2701).then(n.bind(n,12701))).default});return function(){return t.apply(this,arguments)}}(),LineOfSightLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8592),n.e(8572)]).then(n.bind(n,29457))).default});return function(){return t.apply(this,arguments)}}(),MapImageLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(3130),n.e(8887)]).then(n.bind(n,48887))).default});return function(){return t.apply(this,arguments)}}(),MapNotesLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8592),n.e(9114)]).then(n.bind(n,49114))).default});return function(){return t.apply(this,arguments)}}(),OGCFeatureLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(9628),n.e(2955)]).then(n.bind(n,36554))).default});return function(){return t.apply(this,arguments)}}(),OpenStreetMapLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8592),n.e(1591)]).then(n.bind(n,71591))).default});return function(){return t.apply(this,arguments)}}(),OrientedImageryLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(725).then(n.bind(n,60725))).default});return function(){return t.apply(this,arguments)}}(),PointCloudLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(157),n.e(7155)]).then(n.bind(n,7155))).default});return function(){return t.apply(this,arguments)}}(),RouteLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(403),n.e(4940)]).then(n.bind(n,84940))).default});return function(){return t.apply(this,arguments)}}(),SceneLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(157),n.e(8592),n.e(7559)]).then(n.bind(n,27559))).default});return function(){return t.apply(this,arguments)}}(),StreamLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(289).then(n.bind(n,70289))).default});return function(){return t.apply(this,arguments)}}(),SubtypeGroupLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(465).then(n.bind(n,20465))).default});return function(){return t.apply(this,arguments)}}(),TileLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(3130),n.e(8592),n.e(9735)]).then(n.bind(n,59735))).default});return function(){return t.apply(this,arguments)}}(),UnknownLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(6339).then(n.bind(n,56339))).default});return function(){return t.apply(this,arguments)}}(),UnsupportedLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(6240).then(n.bind(n,16240))).default});return function(){return t.apply(this,arguments)}}(),VectorTileLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8364),n.e(8592),n.e(6445)]).then(n.bind(n,10193))).default});return function(){return t.apply(this,arguments)}}(),VoxelLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(157),n.e(6007)]).then(n.bind(n,26007))).default});return function(){return t.apply(this,arguments)}}(),WebTileLayer:function(){var t=(0,r.Z)(function*(){return(yield n.e(8592).then(n.bind(n,28678))).default});return function(){return t.apply(this,arguments)}}(),WFSLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(3774),n.e(8762)]).then(n.bind(n,98762))).default});return function(){return t.apply(this,arguments)}}(),WMSLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8592),n.e(6894)]).then(n.bind(n,46894))).default});return function(){return t.apply(this,arguments)}}(),WMTSLayer:function(){var t=(0,r.Z)(function*(){return(yield Promise.all([n.e(8592),n.e(4223)]).then(n.bind(n,64223))).default});return function(){return t.apply(this,arguments)}}()};var t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4609.4b54bc6852b34de6.js b/apps/n/porrtal-io-app/public/angular/4609.4b54bc6852b34de6.js deleted file mode 100644 index 61878af1..00000000 --- a/apps/n/porrtal-io-app/public/angular/4609.4b54bc6852b34de6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4609],{24609:(y,s,n)=>{n.r(s),n.d(s,{h:()=>f});var u,h,_,d=n(1719),t={exports:{}};u=t,void 0!==(_=t.exports,Object.defineProperty(_,"__esModule",{value:!0}),h=void(_.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u05dc\u05e1\u05e4\u05d9\u05e8\u05d4",_era_bc:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e1",A:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",P:"\u05d0\u05d7\u05d4\u05f4\u05e6",AM:"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6",PM:"\u05d0\u05d7\u05d4\u05f4\u05e6","A.M.":"\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6","P.M.":"\u05d0\u05d7\u05d4\u05f4\u05e6",January:"\u05d9\u05e0\u05d5\u05d0\u05e8",February:"\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8",March:"\u05de\u05e8\u05e5",April:"\u05d0\u05e4\u05e8\u05d9\u05dc",May:"\u05de\u05d0\u05d9",June:"\u05d9\u05d5\u05e0\u05d9",July:"\u05d9\u05d5\u05dc\u05d9",August:"\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8",September:"\u05e1\u05e4\u05d8\u05de\u05d1\u05e8",October:"\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8",November:"\u05e0\u05d5\u05d1\u05de\u05d1\u05e8",December:"\u05d3\u05e6\u05de\u05d1\u05e8",Jan:"\u05d9\u05e0\u05d5\u05f3",Feb:"\u05e4\u05d1\u05e8\u05f3",Mar:"\u05de\u05e8\u05e5",Apr:"\u05d0\u05e4\u05e8\u05f3","May(short)":"\u05de\u05d0\u05d9",Jun:"\u05d9\u05d5\u05e0\u05d9",Jul:"\u05d9\u05d5\u05dc\u05d9",Aug:"\u05d0\u05d5\u05d2\u05f3",Sep:"\u05e1\u05e4\u05d8\u05f3",Oct:"\u05d0\u05d5\u05e7\u05f3",Nov:"\u05e0\u05d5\u05d1\u05f3",Dec:"\u05d3\u05e6\u05de\u05f3",Sunday:"\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df",Monday:"\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9",Tuesday:"\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9",Wednesday:"\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9",Thursday:"\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9",Friday:"\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9",Saturday:"\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea",Sun:"\u05d9\u05d5\u05dd \u05d0\u05f3",Mon:"\u05d9\u05d5\u05dd \u05d1\u05f3",Tue:"\u05d9\u05d5\u05dd \u05d2\u05f3",Wed:"\u05d9\u05d5\u05dd \u05d3\u05f3",Thu:"\u05d9\u05d5\u05dd \u05d4\u05f3",Fri:"\u05d9\u05d5\u05dd \u05d5\u05f3",Sat:"\u05e9\u05d1\u05ea",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"\u05d4\u05ea\u05de\u05e7\u05d3",Play:"\u05e0\u05d2\u05df",Stop:"\u05e2\u05e6\u05d5\u05e8",Legend:"\u05de\u05e7\u05e8\u05d0","Click, tap or press ENTER to toggle":"",Loading:"\u05d8\u05e2\u05d9\u05e0\u05d4",Home:"\u05d3\u05e3 \u05d4\u05d1\u05d9\u05ea",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u05d4\u05d3\u05e4\u05e1",Image:"\u05ea\u05de\u05d5\u05e0\u05d4",Data:"\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd",Print:"\u05d4\u05d3\u05e4\u05e1","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u05de %1 \u05e2\u05d3 %2","From %1":"\u05de %1","To %1":"\u05e2\u05d3 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(a,_){for(var r=0;r<_.length;r++){const e=_[r];if("string"!=typeof e&&!Array.isArray(e))for(const o in e)if("default"!==o&&!(o in a)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/465.81d4b3863c09eeab.js b/apps/n/porrtal-io-app/public/angular/465.81d4b3863c09eeab.js deleted file mode 100644 index c1b1d612..00000000 --- a/apps/n/porrtal-io-app/public/angular/465.81d4b3863c09eeab.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[465],{20465:(Je,M,i)=>{i.r(M),i.d(M,{default:()=>$e});var y=i(15861),n=i(17626),R=i(46160),S=i(26584),A=i(80542),ee=i(72392),j=i(62208),$=i(99959),B=i(10699),J=i(32917),te=i(95737),H=i(21726),s=i(77712),F=(i(85931),i(90912),i(68653)),G=i(76898),P=i(31283),re=i(44917),ie=i(50085),ne=i(65088),se=i(552),oe=i(50107),le=i(6733),ae=i(87987),de=i(49286),ue=i(6647),pe=i(30346),ye=i(99555),he=i(97941),ce=i(38305),O=i(13812),c=i(26331),Q=i(55911),z=i(36630),fe=i(86810),Y=i(99433),ve=i(67945);let m=class extends fe.wq{constructor(){super(...arguments),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const r of Object.keys(e))t[r]=(0,ve.im)(e[r]);return t}writeDomains(e,t){if(!e)return;const r={};for(const o of Object.keys(e))e[o]&&(r[o]=e[o]?.toJSON());t.domains=r}};(0,n._)([(0,s.Cb)({type:Number,json:{write:!0}})],m.prototype,"code",void 0),(0,n._)([(0,s.Cb)({type:Object,json:{write:!0}})],m.prototype,"defaultValues",void 0),(0,n._)([(0,s.Cb)({json:{write:!0}})],m.prototype,"domains",void 0),(0,n._)([(0,F.r)("domains")],m.prototype,"readDomains",null),(0,n._)([(0,Y.c)("domains")],m.prototype,"writeDomains",null),(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),m=(0,n._)([(0,G.j)("esri.layers.support.Subtype")],m);const me=m;var ge=i(73281),be=i(4832),Ce=(i(49067),i(96794),i(69747),i(40425),i(69357)),D=i(40342),Se=i(73640),Fe=(i(33474),i(8314),i(61996)),I=i(58817),Oe=i(47996),Ie=i(94113),je=i(383),Te=i(27402),K=i(32777),Ze=i(170),Le=i(62667),Pe=i(49430),w=i(8080);const xe=["charts","editingEnabled","formTemplate","labelsVisible","labelingInfo","legendEnabled","minScale","maxScale","opacity","popupEnabled","popupTemplate","renderer","subtypeCode","templates","title","visible"],W={key:"type",base:Ce.Z,errorContext:"renderer",typeMap:{simple:D.Z,"unique-value":Se.Z,"class-breaks":be.Z}},X=(0,Q.v)(),q=(0,je.d)({types:W});let Ee=0;function T(e){const t=e.json.write;return"object"==typeof t?t.ignoreOrigin=!0:e.json.write={ignoreOrigin:!0},e}function Ge(e){switch(e){case"point":case"multipoint":return w.xA.clone();case"polyline":return w.CJ.clone();case"polygon":case"multipatch":return w.z3.clone();default:return null}}function k(e,t){return null==e?null:t.subtypes?.find(r=>r.code===e)}function we(e,t){let r=null;switch(t.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":r="point";break;case"esriGeometryPolyline":r="line";break;case"esriGeometryPolygon":case"esriGeometryMultiPatch":r="polygon";break;default:r=null}const o={},d=k(e,t);if((0,j.pC)(d)){const{defaultValues:a}=d;for(const p in a)o[p]=a[p]}return o[t.subtypeField]=e,new K.Z({name:"New Feature",drawingTool:r,prototype:{attributes:o}})}let l=class extends((0,A.p)((0,$.R)((0,Fe.IG)(Oe.Z)))){constructor(e){super(e),this.charts=null,this.editingEnabled=!0,this.fieldOverrides=null,this.fieldsIndex=null,this.formTemplate=null,this.id=`${Date.now().toString(16)}-subtype-sublayer-${Ee++}`,this.type="subtype-sublayer",this.labelsVisible=!0,this.labelingInfo=null,this.layerType="ArcGISFeatureLayer",this.legendEnabled=!0,this.listMode="show",this.minScale=0,this.maxScale=0,this.opacity=1,this.popupEnabled=!0,this.popupTemplate=null,this.subtypeCode=null,this.templates=null,this.title=null,this.visible=!0}writeFieldOverrides(e,t,r){const{fields:o,parent:d}=this;let a;if(o){a=[];let p=0;o.forEach(({name:h,alias:g,editable:Z,visible:L})=>{if(!L)return;const f=d?.fields?.find(N=>N.name===h);if(!f)return;const b={name:h};let C=!1;g!==f.alias&&(b.alias=g,C=!0),Z!==f.editable&&(b.editable=Z,C=!0),a.push(b),C&&p++}),0===p&&a.length===o.length&&(a=null)}else a=(0,I.d9)(e);a?.length&&(0,Ie.RB)(r,a,t)}get fields(){const{parent:e,fieldOverrides:t,subtypeCode:r}=this,o=e?.fields;if(!o?.length)return null;const{subtypes:d,subtypeField:a}=e,p=d.find(L=>L.code===r),h=p?.defaultValues,g=p?.domains,Z=[];for(const L of o){const f=L.clone(),{name:b}=f,C=t?.find(E=>E.name===b);if(f.visible=!t||!!C,C){const{alias:E,editable:Be}=C;E&&(f.alias=E),!1===Be&&(f.editable=!1)}const N=h?.[b]??null;f.defaultValue=b===a?r:N;const V=g?.[b]??null;f.domain=b===a?null:V?"inherited"===V.type?f.domain:V.clone():null,Z.push(f)}return Z}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,z.YN)(e,this.fieldsIndex),this._override("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const{parent:e}=this;return e&&!e.isTable&&"mesh"!==e.geometryType?function Re(e){return new D.Z({symbol:Ge(e)})}(e.geometryType):null}readRendererFromService(e,t,r){if("Table"===t.type)return null;const o=t.drawingInfo?.renderer,d=q(o,t,r);let a;const{subtypeCode:p}=this;if(null!=p&&function De(e,t){return!(!t||"unique-value"!==e?.type||"string"!=typeof e.field||e.field.toLowerCase()!==t.toLowerCase()||e.field2||e.field3||e.valueExpression)}(d,t.subtypeField)){const h=d.uniqueValueInfos?.find(({value:g})=>(g="number"==typeof g?String(g):g)===String(p));h&&(a=new D.Z({symbol:h.symbol}))}else"simple"!==d?.type||d.visualVariables?.length||(a=d);return a}readRenderer(e,t,r){const o=t?.layerDefinition?.drawingInfo?.renderer;if(o&&!o.visualVariables?.length)return q(o,t,r)||void 0}readTemplatesFromService(e,t){return[we(this.subtypeCode,t)]}readTitleFromService(e,t){const r=k(this.subtypeCode,t);return(0,j.pC)(r)?r.name:null}createPopupTemplate(e){let t=this;const{parent:r,fields:o,title:d}=this;if(r){const{displayField:a,editFieldsInfo:p,objectIdField:h}=r;t={displayField:a,editFieldsInfo:p,fields:o,objectIdField:h,title:d}}return(0,Pe.eZ)(t,e)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e){return this._getLayerDomain(e)}hasUserOverrides(){return xe.some(e=>this.originIdOf(e)===P.s3.USER)}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}};(0,n._)([(0,s.Cb)({json:{write:{ignoreOrigin:!0}}})],l.prototype,"charts",void 0),(0,n._)([(0,s.Cb)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:{ignoreOrigin:!0}}})],l.prototype,"editingEnabled",void 0),(0,n._)([(0,s.Cb)({readOnly:!0,json:{name:"layerDefinition.fieldOverrides",origins:{service:{read:!1}},write:{ignoreOrigin:!0,allowNull:!0}}})],l.prototype,"fieldOverrides",void 0),(0,n._)([(0,Y.c)("fieldOverrides")],l.prototype,"writeFieldOverrides",null),(0,n._)([(0,s.Cb)({...X.fields,readOnly:!0,json:{read:!1}})],l.prototype,"fields",null),(0,n._)([(0,s.Cb)(X.fieldsIndex)],l.prototype,"fieldsIndex",void 0),(0,n._)([(0,s.Cb)({type:Te.Z,json:{name:"formInfo",write:{ignoreOrigin:!0}}})],l.prototype,"formTemplate",void 0),(0,n._)([(0,s.Cb)({type:String,readOnly:!0,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],l.prototype,"id",void 0),(0,n._)([(0,s.Cb)({readOnly:!0,json:{read:!1}})],l.prototype,"type",void 0),(0,n._)([(0,s.Cb)(T((0,I.d9)(O.iR)))],l.prototype,"labelsVisible",void 0),(0,n._)([(0,s.Cb)({type:[Ze.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",origins:{service:{read:!1}},read:{reader:Le.r},write:{ignoreOrigin:!0}}})],l.prototype,"labelingInfo",void 0),(0,n._)([(0,s.Cb)({type:["ArcGISFeatureLayer"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],l.prototype,"layerType",void 0),(0,n._)([(0,s.Cb)(T((0,I.d9)(O.rn)))],l.prototype,"legendEnabled",void 0),(0,n._)([(0,s.Cb)({type:["show","hide"]})],l.prototype,"listMode",void 0),(0,n._)([(0,s.Cb)((()=>{const e=(0,I.d9)(O.rO);return e.json.origins.service.read=!1,T(e)})())],l.prototype,"minScale",void 0),(0,n._)([(0,s.Cb)((()=>{const e=(0,I.d9)(O.u1);return e.json.origins.service.read=!1,T(e)})())],l.prototype,"maxScale",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],l.prototype,"effectiveScaleRange",null),(0,n._)([(0,s.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{write:{ignoreOrigin:!0}}})],l.prototype,"opacity",void 0),(0,n._)([(0,s.Cb)()],l.prototype,"parent",void 0),(0,n._)([(0,s.Cb)(T((0,I.d9)(O.C_)))],l.prototype,"popupEnabled",void 0),(0,n._)([(0,s.Cb)({type:ge.Z,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],l.prototype,"popupTemplate",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],l.prototype,"defaultPopupTemplate",null),(0,n._)([(0,s.Cb)({types:W,json:{write:{target:"layerDefinition.drawingInfo.renderer",ignoreOrigin:!0}}})],l.prototype,"renderer",null),(0,n._)([(0,F.r)("service","renderer",["drawingInfo.renderer","subtypeField","type"])],l.prototype,"readRendererFromService",null),(0,n._)([(0,F.r)("renderer",["layerDefinition.drawingInfo.renderer"])],l.prototype,"readRenderer",null),(0,n._)([(0,s.Cb)({type:Number,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],l.prototype,"subtypeCode",void 0),(0,n._)([(0,s.Cb)({type:[K.Z],json:{name:"layerDefinition.templates",write:{ignoreOrigin:!0}}})],l.prototype,"templates",void 0),(0,n._)([(0,F.r)("service","templates",["geometryType","subtypeField","subtypes","type"])],l.prototype,"readTemplatesFromService",null),(0,n._)([(0,s.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],l.prototype,"title",void 0),(0,n._)([(0,F.r)("service","title",["subtypes"])],l.prototype,"readTitleFromService",null),(0,n._)([(0,s.Cb)({type:Boolean,nonNullable:!0,json:{name:"visibility",write:{ignoreOrigin:!0}}})],l.prototype,"visible",void 0),l=(0,n._)([(0,G.j)("esri.layers.support.SubtypeSublayer")],l);const x=l;var Ne=i(62708),Ve=i(5676),Me=i(96854);const v="SubtypeGroupLayer";function _(e,t){return new S.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}const U=(0,Q.v)();let u=class extends((0,ae.B)((0,le.o1)((0,se.h)((0,he.n)((0,ye.M)((0,pe.Q)((0,ne.Y)((0,de.q)((0,ue.I)((0,$.R)((0,oe.N)((0,ie.V)((0,A.p)(re.Z)))))))))))))){constructor(...e){super(...e),this._handles=new ee.Z,this._sublayersCollectionChanged=!1,this.fields=null,this.fieldsIndex=null,this.outFields=null,this.subtypes=null,this.sublayers=new(R.Z.ofType(x)),this.timeInfo=null,this.title="Layer",this.type="subtype-group",this.addHandles((0,J.YP)(()=>this.sublayers,(t,r)=>this._handleSublayersChange(t,r),J.Z_))}destroy(){this.source?.destroy(),this._handles=(0,j.SC)(this._handles)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){var t=this;const r=(0,j.pC)(e)?e.signal:null,o=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(B.r9).then((0,y.Z)(function*(){if(!t.url)throw new S.Z("subtype-grouplayer:missing-url-or-source","SubtypeGroupLayer must be created with either a url or a portal item");if(null==t.layerId)throw new S.Z("subtype-grouplayer:missing-layerid","layerId is required for a SubtypeGroupLayer created with url");return t._initLayerProperties(yield t.createGraphicsSource(r))})).then(()=>this.finishLoadEditablePortalLayer(e));return this.addResolvingPromise(o),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get parsedUrl(){const e=(0,H.mN)(this.url);return null!=e&&null!=this.layerId&&(e.path=(0,H.v_)(e.path,this.layerId.toString())),e}set source(e){this._get("source")!==e&&this._set("source",e)}readTitleFromService(e,{name:t}){return this.url?(0,ce.a7)(this.url,t):t}addAttachment(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.JD)(r,e,t,v)})()}updateAttachment(e,t,r){var o=this;return(0,y.Z)(function*(){return(0,c.Y5)(o,e,t,r,v)})()}applyEdits(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.Jj)(r,e,t)})()}on(e,t){return super.on(e,t)}createGraphicsSource(e){var t=this;return(0,y.Z)(function*(){const{default:r}=yield(0,B.Hl)(i.e(4516).then(i.bind(i,14516)),e);return new r({layer:t}).load({signal:e})})()}createQuery(){const e=(0,c.rP)(this),t=this.sublayers.map(r=>r.subtypeCode);return e.where=(0,te._)(`${this.subtypeField} IN (${t.join(",")})`,this.definitionExpression),e}deleteAttachments(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.FV)(r,e,t,v)})()}fetchRecomputedExtents(e){var t=this;return(0,y.Z)(function*(){return(0,c.Ci)(t,e,v)})()}getFieldDomain(e,t){return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}queryAttachments(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.SU)(r,e,t,v)})()}queryFeatures(e,t){var r=this;return(0,y.Z)(function*(){const o=yield r.load(),d=Me.Z.from(e)??o.createQuery(),a=(0,j.Pt)(d.outFields,[]);a.includes(r.subtypeField)||(a.push(r.subtypeField),d.outFields=a);const p=yield o.source.queryFeatures(d,t);if(p?.features)for(const h of p.features)h.layer=r._findSublayerForFeature(h),h.sourceLayer=r;return p})()}queryObjectIds(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.tD)(r,e,t,v)})()}queryFeatureCount(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.VG)(r,e,t,v)})()}queryExtent(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.KE)(r,e,t,v)})()}queryRelatedFeatures(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.kp)(r,e,t,v)})()}queryRelatedFeaturesCount(e,t){var r=this;return(0,y.Z)(function*(){return(0,c.C9)(r,e,t,v)})()}write(e,t){const{origin:r,layerContainerType:o,messages:d}=t;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==o)return d?.push(_(this,"using a table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===r&&"tables"===o)return d?.push(_(this,"using a non-table source cannot be written to tables in web maps")),null;return this.sublayers?.length?super.write(e,t):(d?.push(new S.Z("web-document-write:invalid-property",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' has invalid value for 'sublayers' property. 'sublayers' collection should contain at least one sublayer`,{layer:this})),null)}serviceSupportsSpatialReference(e){return!!this.loaded&&(0,Ve.D)(this,e)}_findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),r=e.attributes[t.name];return this.sublayers.find(o=>o.subtypeCode===r)}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_initLayerProperties(e){var t=this;return(0,y.Z)(function*(){t._set("source",e);const{sourceJSON:r}=e;if(r&&(t.sourceJSON=r,t.read(r,{origin:"service",url:t.parsedUrl})),t.isTable)throw new S.Z("subtype-grouplayer:unsupported-source","SubtypeGroupLayer cannot be created using a layer with table source");if(!t.subtypes?.length)throw new S.Z("subtype-grouplayer:missing-subtypes","SubtypeGroupLayer must be created using a layer with subtypes");t._verifyFields(),(0,z.UF)(t.timeInfo,t.fieldsIndex)})()}hasDataChanged(){var e=this;return(0,y.Z)(function*(){return(0,c.gG)(e)})()}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("SubtypeGroupLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(t=>"geometry"===t.type)||console.log("SubtypeGroupLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_handleSublayersChange(e,t){t&&(t.forEach(r=>{r.parent=null}),this.handles.remove("sublayers-owner")),e&&(e.forEach(r=>{r.parent=this}),this._sublayersCollectionChanged=!1,this.handles.add([e.on("after-add",({item:r})=>{r.parent=this}),e.on("after-remove",({item:r})=>{r.parent=null}),e.on("after-changes",()=>{this._sublayersCollectionChanged=!0})],"sublayers-owner"))}};(0,n._)([(0,s.Cb)({readOnly:!0})],u.prototype,"createQueryVersion",null),(0,n._)([(0,s.Cb)({type:Boolean,readOnly:!0})],u.prototype,"editingEnabled",null),(0,n._)([(0,s.Cb)({...U.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],u.prototype,"fields",void 0),(0,n._)([(0,s.Cb)(U.fieldsIndex)],u.prototype,"fieldsIndex",void 0),(0,n._)([(0,s.Cb)(O.id)],u.prototype,"id",void 0),(0,n._)([(0,s.Cb)({type:["show","hide","hide-children"]})],u.prototype,"listMode",void 0),(0,n._)([(0,s.Cb)({value:"SubtypeGroupLayer",type:["SubtypeGroupLayer"]})],u.prototype,"operationalLayerType",void 0),(0,n._)([(0,s.Cb)(U.outFields)],u.prototype,"outFields",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,n._)([(0,s.Cb)()],u.prototype,"source",null),(0,n._)([(0,s.Cb)({type:[me],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],u.prototype,"subtypes",void 0),(0,n._)([(0,s.Cb)({type:R.Z.ofType(x),json:{origins:{service:{read:{source:"subtypes",reader:(e,t,r)=>{const o=e.map(({code:d})=>{const a=new x({subtypeCode:d});return a.read(t,r),a});return new(R.Z.ofType(x))(o)}}}},name:"layers",write:{overridePolicy(e,t,r){const o=this.originOf("sublayers"),d=P.s3.PORTAL_ITEM;let a=!0;if((0,P.M9)(o)===d&&(0,P.M9)(r.origin)>d){const p=e.some(h=>h.hasUserOverrides());a=this._sublayersCollectionChanged||p}return{enabled:a,ignoreOrigin:!0}}}}})],u.prototype,"sublayers",void 0),(0,n._)([(0,s.Cb)({type:Ne.Z})],u.prototype,"timeInfo",void 0),(0,n._)([(0,s.Cb)({json:{origins:{"portal-item":{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],u.prototype,"title",void 0),(0,n._)([(0,F.r)("service","title",["name"])],u.prototype,"readTitleFromService",null),(0,n._)([(0,s.Cb)({json:{read:!1}})],u.prototype,"type",void 0),u=(0,n._)([(0,G.j)("esri.layers.SubtypeGroupLayer")],u);const $e=u}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4766.2772c877c91b79a4.js b/apps/n/porrtal-io-app/public/angular/4766.2772c877c91b79a4.js deleted file mode 100644 index 988d2153..00000000 --- a/apps/n/porrtal-io-app/public/angular/4766.2772c877c91b79a4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4766,7777],{77777:(T,A,l)=>{l.r(A),l.d(A,{hydratedAdapter:()=>m});var n=l(2004),a=l(72854),i=l(72642),g=l(37118),_=l(55214);const m={convertToGEGeometry:function x(o,r){if(null==r)return null;let u="cache"in r?r.cache._geVersion:void 0;return null==u&&(u=o.convertJSONToGeometry(r),"cache"in r&&(r.cache._geVersion=u)),u},exportPoint:function E(o,r,u){const d=o.hasZ(r),G=o.hasM(r),f=new i.Z({x:o.getPointX(r),y:o.getPointY(r),spatialReference:u});return d&&(f.z=o.getPointZ(r)),G&&(f.m=o.getPointM(r)),f.cache._geVersion=r,f},exportPolygon:function M(o,r,u){const d=new g.Z({rings:o.exportPaths(r),hasZ:o.hasZ(r),hasM:o.hasM(r),spatialReference:u});return d.cache._geVersion=r,d},exportPolyline:function P(o,r,u){const d=new _.Z({paths:o.exportPaths(r),hasZ:o.hasZ(r),hasM:o.hasM(r),spatialReference:u});return d.cache._geVersion=r,d},exportMultipoint:function R(o,r,u){const d=new a.Z({hasZ:o.hasZ(r),hasM:o.hasM(r),points:o.exportPoints(r),spatialReference:u});return d.cache._geVersion=r,d},exportExtent:function D(o,r,u){const d=o.hasZ(r),G=o.hasM(r),f=new n.Z({xmin:o.getXMin(r),ymin:o.getYMin(r),xmax:o.getXMax(r),ymax:o.getYMax(r),spatialReference:u});if(d){const h=o.getZExtent(r);f.zmin=h.vmin,f.zmax=h.vmax}if(G){const h=o.getMExtent(r);f.mmin=h.vmin,f.mmax=h.vmax}return f.cache._geVersion=r,f}}},44766:(T,A,l)=>{l.r(A),l.d(A,{buffer:()=>C,changeDefaultSpatialReferenceTolerance:()=>k,clearDefaultSpatialReferenceTolerance:()=>b,clip:()=>_,contains:()=>x,convexHull:()=>h,crosses:()=>E,cut:()=>m,densify:()=>J,difference:()=>w,disjoint:()=>r,distance:()=>M,equals:()=>P,extendedSpatialReferenceInfo:()=>g,flipHorizontal:()=>U,flipVertical:()=>W,generalize:()=>H,geodesicArea:()=>F,geodesicBuffer:()=>B,geodesicDensify:()=>N,geodesicLength:()=>Q,intersect:()=>L,intersectLinesToPoints:()=>$,intersects:()=>R,isSimple:()=>G,nearestCoordinate:()=>I,nearestVertex:()=>j,nearestVertices:()=>z,offset:()=>S,overlaps:()=>u,planarArea:()=>X,planarLength:()=>Y,relate:()=>d,rotate:()=>K,simplify:()=>f,symmetricDifference:()=>Z,touches:()=>D,union:()=>V,within:()=>o});var n=l(4918),a=l(77777);function i(e){return Array.isArray(e)?e[0].spatialReference:e&&e.spatialReference}function g(e){return n.G.extendedSpatialReferenceInfo(e)}function _(e,t){return n.G.clip(a.hydratedAdapter,i(e),e,t)}function m(e,t){return n.G.cut(a.hydratedAdapter,i(e),e,t)}function x(e,t){return n.G.contains(a.hydratedAdapter,i(e),e,t)}function E(e,t){return n.G.crosses(a.hydratedAdapter,i(e),e,t)}function M(e,t,c){return n.G.distance(a.hydratedAdapter,i(e),e,t,c)}function P(e,t){return n.G.equals(a.hydratedAdapter,i(e),e,t)}function R(e,t){return n.G.intersects(a.hydratedAdapter,i(e),e,t)}function D(e,t){return n.G.touches(a.hydratedAdapter,i(e),e,t)}function o(e,t){return n.G.within(a.hydratedAdapter,i(e),e,t)}function r(e,t){return n.G.disjoint(a.hydratedAdapter,i(e),e,t)}function u(e,t){return n.G.overlaps(a.hydratedAdapter,i(e),e,t)}function d(e,t,c){return n.G.relate(a.hydratedAdapter,i(e),e,t,c)}function G(e){return n.G.isSimple(a.hydratedAdapter,i(e),e)}function f(e){return n.G.simplify(a.hydratedAdapter,i(e),e)}function h(e,t=!1){return n.G.convexHull(a.hydratedAdapter,i(e),e,t)}function w(e,t){return n.G.difference(a.hydratedAdapter,i(e),e,t)}function Z(e,t){return n.G.symmetricDifference(a.hydratedAdapter,i(e),e,t)}function L(e,t){return n.G.intersect(a.hydratedAdapter,i(e),e,t)}function V(e,t=null){return n.G.union(a.hydratedAdapter,i(e),e,t)}function S(e,t,c,s,y,O){return n.G.offset(a.hydratedAdapter,i(e),e,t,c,s,y,O)}function C(e,t,c,s=!1){return n.G.buffer(a.hydratedAdapter,i(e),e,t,c,s)}function B(e,t,c,s,y,O){return n.G.geodesicBuffer(a.hydratedAdapter,i(e),e,t,c,s,y,O)}function I(e,t,c=!0){return n.G.nearestCoordinate(a.hydratedAdapter,i(e),e,t,c)}function j(e,t){return n.G.nearestVertex(a.hydratedAdapter,i(e),e,t)}function z(e,t,c,s){return n.G.nearestVertices(a.hydratedAdapter,i(e),e,t,c,s)}function v(e){return"xmin"in e?"center"in e?e.center:null:"x"in e?e:"extent"in e?e.extent?.center??null:null}function K(e,t,c){if(null==e)throw new p;const s=e.spatialReference;if(null==(c=c??v(e)))throw new p;const y=e.constructor.fromJSON(n.G.rotate(e,t,c));return y.spatialReference=s,y}function U(e,t){if(null==e)throw new p;const c=e.spatialReference;if(null==(t=t??v(e)))throw new p;const s=e.constructor.fromJSON(n.G.flipHorizontal(e,t));return s.spatialReference=c,s}function W(e,t){if(null==e)throw new p;const c=e.spatialReference;if(null==(t=t??v(e)))throw new p;const s=e.constructor.fromJSON(n.G.flipVertical(e,t));return s.spatialReference=c,s}function H(e,t,c,s){return n.G.generalize(a.hydratedAdapter,i(e),e,t,c,s)}function J(e,t,c){return n.G.densify(a.hydratedAdapter,i(e),e,t,c)}function N(e,t,c,s=0){return n.G.geodesicDensify(a.hydratedAdapter,i(e),e,t,c,s)}function X(e,t){return n.G.planarArea(a.hydratedAdapter,i(e),e,t)}function Y(e,t){return n.G.planarLength(a.hydratedAdapter,i(e),e,t)}function F(e,t,c){return n.G.geodesicArea(a.hydratedAdapter,i(e),e,t,c)}function Q(e,t,c){return n.G.geodesicLength(a.hydratedAdapter,i(e),e,t,c)}function $(e,t){return n.G.intersectLinesToPoints(a.hydratedAdapter,i(e),e,t)}function k(e,t){n.G.changeDefaultSpatialReferenceTolerance(e,t)}function b(e){n.G.clearDefaultSpatialReferenceTolerance(e)}class p extends Error{constructor(){super("Illegal Argument Exception")}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4786.83d8cc556eafc008.js b/apps/n/porrtal-io-app/public/angular/4786.83d8cc556eafc008.js deleted file mode 100644 index 02722677..00000000 --- a/apps/n/porrtal-io-app/public/angular/4786.83d8cc556eafc008.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4786],{37591:(m,l,r)=>{r.r(l),r.d(l,{CalciteListItem:()=>v,defineCustomElement:()=>p});var u=r(15861),t=r(76210),n=r(46203),c=r(8225),f=r(18564);const s=(0,t.GH)(class extends t.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nonInteractive=!1,this.disabled=!1}componentDidRender(){(0,f.u)(this)}connectedCallback(){(0,c.c)(this)}disconnectedCallback(){(0,c.d)(this)}setFocus(){var a=this;return(0,u.Z)(function*(){var o;null===(o=a.focusEl)||void 0===o||o.focus()})()}renderActionsStart(){const{el:a}=this;return(0,n.b)(a,"actions-start")?(0,t.h)("div",{class:"actions-start"},(0,t.h)("slot",{name:"actions-start"})):null}renderActionsEnd(){const{el:a}=this;return(0,n.b)(a,"actions-end")?(0,t.h)("div",{class:"actions-end"},(0,t.h)("slot",{name:"actions-end"})):null}renderContentStart(){const{el:a}=this;return(0,n.b)(a,"content-start")?(0,t.h)("div",{class:"content-start"},(0,t.h)("slot",{name:"content-start"})):null}renderContentEnd(){const{el:a}=this;return(0,n.b)(a,"content-end")?(0,t.h)("div",{class:"content-end"},(0,t.h)("slot",{name:"content-end"})):null}renderContent(){const{label:a,description:o}=this;return a||o?(0,t.h)("div",{class:"content"},a?(0,t.h)("div",{class:"label"},a):null,o?(0,t.h)("div",{class:"description"},o):null):null}renderContentContainer(){const{description:a,disabled:o,label:E,nonInteractive:y}=this,b=!!E||!!a,_=[this.renderContentStart(),this.renderContent(),this.renderContentEnd()];return y?(0,t.h)("div",{class:{"content-container":!0,"has-center-content":b},ref:()=>this.focusEl=null},_):(0,t.h)("button",{class:{"content-container":!0,"content-container--button":!0,"has-center-content":b},disabled:o,ref:C=>this.focusEl=C},_)}render(){return(0,t.h)(t.AA,{role:"listitem"},(0,t.h)("div",{class:"container"},this.renderActionsStart(),this.renderContentContainer(),this.renderActionsEnd()),(0,t.h)("div",{class:"nested-container"},(0,t.h)("slot",null)))}get el(){return this}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}.container *{box-sizing:border-box}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);outline-color:transparent}.content-container--button{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;text-align:initial}.content-container--button:hover{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content-container--button .content-start,.content-container--button .content-end{pointer-events:none}.content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.has-center-content .content-start,.has-center-content .content-end{flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-inline-start:0.5rem}"}},[1,"calcite-list-item",{nonInteractive:[516,"non-interactive"],description:[1],disabled:[516],label:[1],setFocus:[64]}]);function h(){typeof customElements>"u"||["calcite-list-item"].forEach(o=>{"calcite-list-item"===o&&(customElements.get(o)||customElements.define(o,s))})}h();const v=s,p=h},18564:(m,l,r)=>{function u(){}function t(n,c=!1){if(n.disabled)return n.el.setAttribute("tabindex","-1"),n.el.setAttribute("aria-disabled","true"),n.el.contains(document.activeElement)&&document.activeElement.blur(),void(n.el.click=u);n.el.click=HTMLElement.prototype.click,"function"==typeof c?n.el.setAttribute("tabindex",c.call(n)?"0":"-1"):!0===c?n.el.setAttribute("tabindex","0"):!1===c&&n.el.removeAttribute("tabindex"),n.el.removeAttribute("aria-disabled")}r.d(l,{u:()=>t})},22757:(m,l,r)=>{r.d(l,{c:()=>t});var u=r(76210);function t(c,f,i){if(!u.Z5.isBrowser)return;const e=function n(c){class f extends window.MutationObserver{constructor(e){super(e),this.observedEntry=[],this.callback=e}observe(e,d){return this.observedEntry.push({target:e,options:d}),super.observe(e,d)}unobserve(e){const d=this.observedEntry.filter(s=>s.target!==e);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),d.forEach(s=>this.observe(s.target,s.options))}}return"intersection"===c?window.IntersectionObserver:"mutation"===c?f:window.ResizeObserver}(c);return new e(f,i)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4824.df716fbd3fc1aa78.js b/apps/n/porrtal-io-app/public/angular/4824.df716fbd3fc1aa78.js deleted file mode 100644 index fc9182cb..00000000 --- a/apps/n/porrtal-io-app/public/angular/4824.df716fbd3fc1aa78.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4824],{54824:(_,l,s)=>{s.r(l),s.d(l,{e:()=>g});var d,p,e,c=s(1719),o={exports:{}};d=o,void 0!==(e=o.exports,Object.defineProperty(e,"__esModule",{value:!0}),p=void(e.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"DC",_era_bc:"AC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Enero",February:"Febrero",March:"Marzo",April:"Abril",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre",Jan:"Ene",Feb:"Feb",Mar:"Mar",Apr:"Abr","May(short)":"May",Jun:"Jun",Jul:"Jul",Aug:"Ago",Sep:"Sep",Oct:"Oct",Nov:"Nov",Dec:"Dic",Sunday:"Domingo",Monday:"Lunes",Tuesday:"Martes",Wednesday:"Mi\xe9rcoles",Thursday:"Jueves",Friday:"Viernes",Saturday:"S\xe1bado",Sun:"Dom",Mon:"Lun",Tue:"Mar",Wed:"Mie",Thu:"Jue",Fri:"Vie",Sat:"S\xe1b",_dateOrd:function(t){return"\xba"},"Zoom Out":"Aumentar Zoom",Play:"Reproducir",Stop:"Detener",Legend:"Leyenda","Click, tap or press ENTER to toggle":"Haga clic, toque o presione ENTER para alternar",Loading:"Cargando",Home:"Inicio",Chart:"Gr\xe1fico","Serial chart":"Gr\xe1fico de serie","X/Y chart":"Gr\xe1fico X/Y","Pie chart":"Gr\xe1fico circular","Gauge chart":"Gr\xe1fico de medidor radial","Radar chart":"Gr\xe1fico de radar","Sankey diagram":"Diagrama de sankey","Chord diagram":"Diagrama de cuerdas","Flow diagram":"Diagrama de flujo","TreeMap chart":"Gr\xe1fico de mapa de \xe1rbol",Series:"Series","Candlestick Series":"Series de velas","Column Series":"Series de columnas","Line Series":"Series de l\xedneas","Pie Slice Series":"Series de trozos circular","X/Y Series":"Series de X/Y",Map:"Mapa","Press ENTER to zoom in":"Presione ENTER para aumentar el zoom","Press ENTER to zoom out":"Presione ENTER para disminuir el zoom","Use arrow keys to zoom in and out":"Use los cursores para disminuir o aumentar el zoom","Use plus and minus keys on your keyboard to zoom in and out":"Use las teclas mas o menos en su teclado para disminuir ou aumentar el zoom",Export:"Exportar",Image:"Imagen",Data:"Datos",Print:"Imprimir","Click, tap or press ENTER to open":"Haga clic, toque o presione ENTER para abrir","Click, tap or press ENTER to print.":"Haga clic, toque o presione ENTER para imprimir","Click, tap or press ENTER to export as %1.":"Haga clic, toque o presione ENTER para exportar como %1.",'To save the image, right-click this link and choose "Save picture as..."':'Para guardar la imagen, haga clic en el link con el bot\xf3n derecho y elija "Guardar imagen como..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Para guardar la imagen, haga clic con el bot\xf3n derecho en la miniatura a la izquierda y elija "Guardar imagen como ..."',"(Press ESC to close this message)":"(Presione ESC para cerrar este mensaje)","Image Export Complete":"Exportaci\xf3n de imagen completada","Export operation took longer than expected. Something might have gone wrong.":"La operaci\xf3n de exportaci\xf3n llev\xf3 m\xe1s tiempo de lo esperado. Algo pudo haber salido mal.","Saved from":"Guardado de",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"Use TAB para seleccionar los botones de agarre o las flechas izquierda y derecha para cambiar la selecci\xf3n","Use left and right arrows to move selection":"Use las flechas izquierda y derecha para mover la selecci\xf3n","Use left and right arrows to move left selection":"Use las flechas izquierda y derecha para mover la selecci\xf3n izquierda","Use left and right arrows to move right selection":"Use las flechas izquierda y derecha para mover la selecci\xf3n derecha","Use TAB select grip buttons or up and down arrows to change selection":"Utilice los botones de control de selecci\xf3n TAB o flechas arriba y abajo para cambiar la selecci\xf3n","Use up and down arrows to move selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xf3n","Use up and down arrows to move lower selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xf3n inferior","Use up and down arrows to move upper selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xf3n superior","From %1 to %2":"Desde %1 hasta %2","From %1":"Desde %1","To %1":"Hasta %1","No parser available for file: %1":"No hay analizador disponible para el archivo: %1","Error parsing file: %1":"Error al analizar el archivo: %1","Unable to load file: %1":"No se puede cargar el archivo: %1","Invalid date":"Fecha inv\xe1lida"}))&&(d.exports=p);const g=function h(i,e){for(var t=0;ta[r]})}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,c.g)(o.exports)},[o.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4828.42e4fd77774f10f0.js b/apps/n/porrtal-io-app/public/angular/4828.42e4fd77774f10f0.js deleted file mode 100644 index ef1d849e..00000000 --- a/apps/n/porrtal-io-app/public/angular/4828.42e4fd77774f10f0.js +++ /dev/null @@ -1,149 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4828],{9088:(ee,z,t)=>{t.d(z,{L:()=>U,b:()=>y});var s=t(28347),_=t(43703),P=t(67831),h=t(99770),L=t(47634),M=t(95285),x=t(65787),W=t(17625),A=t(63123),T=t(22355),w=t(16396);function y(I){const f=new T.kG;f.include(L.j,I);const{vertex:S,fragment:V}=f;return S.uniforms.add([new A.g("modelView",(C,m)=>(0,s.v)(v,m.camera.viewMatrix,C.origin)),new A.g("proj",(C,m)=>m.camera.projectionMatrix),new x.p("glowWidth",(C,m)=>C.glowWidth*m.camera.pixelRatio),new M.A("pixelToNDC",(C,m)=>(0,P.s)(d,2/m.camera.fullViewport[2],2/m.camera.fullViewport[3]))]),f.attributes.add(w.T.START,"vec3"),f.attributes.add(w.T.END,"vec3"),f.attributes.add(w.T.UP,"vec3"),f.attributes.add(w.T.EXTRUDE,"vec2"),f.varyings.add("uv","vec2"),f.varyings.add("vViewStart","vec3"),f.varyings.add("vViewEnd","vec3"),f.varyings.add("vViewPlane","vec4"),S.code.add(W.H`void main() { -vec3 pos = mix(start, end, extrude.x); -vec4 viewPos = modelView * vec4(pos, 1); -vec4 projPos = proj * viewPos; -vec2 ndcPos = projPos.xy / projPos.w; -vec3 viewUp = (modelView * vec4(extrude.y * up, 0)).xyz; -vec4 projPosUp = proj * vec4(viewPos.xyz + viewUp, 1); -vec2 projExtrudeDir = normalize(projPosUp.xy / projPosUp.w - ndcPos); -vec2 lxy = abs(sign(projExtrudeDir) - ndcPos); -ndcPos += length(lxy) * projExtrudeDir; -vec3 worldPlaneNormal = normalize(cross(up, normalize(end - start))); -vec3 viewPlaneNormal = (modelView * vec4(worldPlaneNormal, 0)).xyz; -vViewStart = (modelView * vec4(start, 1)).xyz; -vViewEnd = (modelView * vec4(end, 1)).xyz; -vViewPlane = vec4(viewPlaneNormal, -dot(viewPlaneNormal, vViewStart)); -float xPaddingPixels = sign(dot(viewPlaneNormal, viewPos.xyz)) * (extrude.x * 2.0 - 1.0) * glowWidth; -ndcPos.x += xPaddingPixels * pixelToNDC.x; -uv = ndcPos * 0.5 + 0.5; -gl_Position = vec4(ndcPos, 0, 1); -}`),V.uniforms.add(new x.p("perScreenPixelRatio",(C,m)=>m.camera.perScreenPixelRatio)),V.code.add(W.H`float planeDistancePixels(vec4 plane, vec3 pos, vec3 start, vec3 end) { -vec3 origin = mix(start, end, 0.5); -vec3 basis = end - origin; -vec3 posAtOrigin = pos - origin; -float x = dot(normalize(basis), posAtOrigin); -float y = dot(plane.xyz, posAtOrigin); -float dx = max(abs(x) - length(basis), 0.0); -float dy = y; -float dist = length(vec2(dx, dy)); -float width = fwidth(y); -float maxPixelDistance = length(pos) * perScreenPixelRatio * 2.0; -float pixelDist = dist / min(width, maxPixelDistance); -return abs(pixelDist); -} -void main() { -vec3 pos; -vec3 normal; -float depthDiscontinuityAlpha; -if (!laserlineReconstructFromDepth(pos, normal, depthDiscontinuityAlpha)) { -discard; -} -float distance = planeDistancePixels(vViewPlane, pos, vViewStart, vViewEnd); -vec4 color = laserlineProfile(distance); -float alpha = 1.0 - smoothstep(0.995, 0.999, abs(dot(normal, vViewPlane.xyz))); -gl_FragColor = laserlineOutput(color * alpha * depthDiscontinuityAlpha); -}`),f}const d=(0,h.a)(),v=(0,_.c)(),U=Object.freeze(Object.defineProperty({__proto__:null,build:y},Symbol.toStringTag,{value:"Module"}))},66501:(ee,z,t)=>{t.d(z,{L:()=>G,b:()=>C,d:()=>V});var s=t(21286),_=t(67831),P=t(99770),h=t(84161),L=t(28093),M=t(993),x=t(4794),W=t(13777),A=t(90014),T=t(97126),w=t(47634),y=t(98071),d=t(95285),v=t(97139),U=t(69960),I=t(65787),f=t(17625),S=t(22355);const V=(0,s.Vl)(6);function C(o){const b=new S.kG;b.extensions.add("GL_OES_standard_derivatives"),b.include(y.k),b.include(w.j,o);const l=b.fragment;if(o.lineVerticalPlaneEnabled||o.heightManifoldEnabled)if(l.uniforms.add(new I.p("maxPixelDistance",(a,u)=>o.heightManifoldEnabled?2*u.camera.computeScreenPixelSizeAt(a.heightManifoldTarget):2*u.camera.computeScreenPixelSizeAt(a.lineVerticalPlaneSegment.origin))),l.code.add(f.H`float planeDistancePixels(vec4 plane, vec3 pos) { -float dist = dot(plane.xyz, pos) + plane.w; -float width = fwidth(dist); -dist /= min(width, maxPixelDistance); -return abs(dist); -}`),o.spherical){const a=(E,O,ie)=>(0,h.m)(E,O.heightManifoldTarget,ie.camera.viewMatrix),u=(E,O)=>(0,h.m)(E,[0,0,0],O.camera.viewMatrix);l.uniforms.add([new U.N("heightManifoldOrigin",(E,O)=>(a(i,E,O),u(p,O),(0,h.b)(p,p,i),(0,h.n)(n,p),n[3]=(0,h.l)(p),n)),new v.J("globalOrigin",(E,O)=>u(i,O)),new I.p("cosSphericalAngleThreshold",(E,O)=>1-Math.max(2,(0,h.i)(O.camera.eye,E.heightManifoldTarget)*O.camera.perRenderPixelRatio)/(0,h.l)(E.heightManifoldTarget))]),l.code.add(f.H`float globeDistancePixels(float posInGlobalOriginLength) { -float dist = abs(posInGlobalOriginLength - heightManifoldOrigin.w); -float width = fwidth(dist); -dist /= min(width, maxPixelDistance); -return abs(dist); -} -float heightManifoldDistancePixels(vec4 heightPlane, vec3 pos) { -vec3 posInGlobalOriginNorm = normalize(globalOrigin - pos); -float cosAngle = dot(posInGlobalOriginNorm, heightManifoldOrigin.xyz); -vec3 posInGlobalOrigin = globalOrigin - pos; -float posInGlobalOriginLength = length(posInGlobalOrigin); -float sphericalDistance = globeDistancePixels(posInGlobalOriginLength); -float planarDistance = planeDistancePixels(heightPlane, pos); -return cosAngle < cosSphericalAngleThreshold ? sphericalDistance : planarDistance; -}`)}else l.code.add(f.H`float heightManifoldDistancePixels(vec4 heightPlane, vec3 pos) { -return planeDistancePixels(heightPlane, pos); -}`);if(o.pointDistanceEnabled&&(l.uniforms.add(new I.p("maxPixelDistance",(a,u)=>2*u.camera.computeScreenPixelSizeAt(a.pointDistanceTarget))),l.code.add(f.H`float sphereDistancePixels(vec4 sphere, vec3 pos) { -float dist = distance(sphere.xyz, pos) - sphere.w; -float width = fwidth(dist); -dist /= min(width, maxPixelDistance); -return abs(dist); -}`)),o.intersectsLineEnabled&&(l.uniforms.add(new I.p("perScreenPixelRatio",(a,u)=>u.camera.perScreenPixelRatio)),l.code.add(f.H`float lineDistancePixels(vec3 start, vec3 dir, float radius, vec3 pos) { -float dist = length(cross(dir, pos - start)) / (length(pos) * perScreenPixelRatio); -return abs(dist) - radius; -}`)),(o.lineVerticalPlaneEnabled||o.intersectsLineEnabled)&&l.code.add(f.H`bool pointIsWithinLine(vec3 pos, vec3 start, vec3 end) { -vec3 dir = end - start; -float t2 = dot(dir, pos - start); -float l2 = dot(dir, dir); -return t2 >= 0.0 && t2 <= l2; -}`),l.code.add(f.H`void main() { -vec3 pos; -vec3 normal; -float depthDiscontinuityAlpha; -if (!laserlineReconstructFromDepth(pos, normal, depthDiscontinuityAlpha)) { -discard; -} -vec4 color = vec4(0, 0, 0, 0);`),o.heightManifoldEnabled){l.uniforms.add([new d.A("angleCutoff",u=>m(u)),new U.N("heightPlane",(u,E)=>F(u.heightManifoldTarget,u.renderCoordsHelper.worldUpAtPosition(u.heightManifoldTarget,i),E.camera.viewMatrix))]);const a=o.spherical?f.H`normalize(globalOrigin - pos)`:f.H`heightPlane.xyz`;l.code.add(f.H` - { - float heightManifoldAlpha = 1.0 - smoothstep(angleCutoff.x, angleCutoff.y, abs(dot(normal, ${a}))); - vec4 heightManifoldColor = laserlineProfile(heightManifoldDistancePixels(heightPlane, pos)); - color = max(color, heightManifoldColor * heightManifoldAlpha); - } - `)}return o.pointDistanceEnabled&&(l.uniforms.add([new d.A("angleCutoff",a=>m(a)),new U.N("pointDistanceSphere",(a,u)=>function Z(o,b){return(0,h.m)(B,o.pointDistanceOrigin,b.camera.viewMatrix),B[3]=(0,h.i)(o.pointDistanceOrigin,o.pointDistanceTarget),B}(a,u))]),l.code.add(f.H`{ -float pointDistanceSphereDistance = sphereDistancePixels(pointDistanceSphere, pos); -vec4 pointDistanceSphereColor = laserlineProfile(pointDistanceSphereDistance); -float pointDistanceSphereAlpha = 1.0 - smoothstep(angleCutoff.x, angleCutoff.y, abs(dot(normal, normalize(pos - pointDistanceSphere.xyz)))); -color = max(color, pointDistanceSphereColor * pointDistanceSphereAlpha); -}`)),o.lineVerticalPlaneEnabled&&(l.uniforms.add([new d.A("angleCutoff",a=>m(a)),new U.N("lineVerticalPlane",(a,u)=>function Y(o,b){const l=(0,W.KU)(o.lineVerticalPlaneSegment,.5,i),a=o.renderCoordsHelper.worldUpAtPosition(l,r),u=(0,h.n)(p,o.lineVerticalPlaneSegment.vector),E=(0,h.f)(n,a,u);return(0,h.n)(E,E),F(o.lineVerticalPlaneSegment.origin,E,b.camera.viewMatrix)}(a,u)),new v.J("lineVerticalStart",(a,u)=>function H(o,b){const l=(0,h.c)(i,o.lineVerticalPlaneSegment.origin);return o.renderCoordsHelper.setAltitude(l,0),(0,h.m)(l,l,b.camera.viewMatrix)}(a,u)),new v.J("lineVerticalEnd",(a,u)=>function X(o,b){const l=(0,h.a)(i,o.lineVerticalPlaneSegment.origin,o.lineVerticalPlaneSegment.vector);return o.renderCoordsHelper.setAltitude(l,0),(0,h.m)(l,l,b.camera.viewMatrix)}(a,u))]),l.code.add(f.H`{ -if (pointIsWithinLine(pos, lineVerticalStart, lineVerticalEnd)) { -float lineVerticalDistance = planeDistancePixels(lineVerticalPlane, pos); -vec4 lineVerticalColor = laserlineProfile(lineVerticalDistance); -float lineVerticalAlpha = 1.0 - smoothstep(angleCutoff.x, angleCutoff.y, abs(dot(normal, lineVerticalPlane.xyz))); -color = max(color, lineVerticalColor * lineVerticalAlpha); -} -}`)),o.intersectsLineEnabled&&(l.uniforms.add([new d.A("angleCutoff",a=>m(a)),new v.J("intersectsLineStart",(a,u)=>(0,h.m)(i,a.lineStartWorld,u.camera.viewMatrix)),new v.J("intersectsLineEnd",(a,u)=>(0,h.m)(i,a.lineEndWorld,u.camera.viewMatrix)),new v.J("intersectsLineDirection",(a,u)=>((0,h.c)(n,a.intersectsLineSegment.vector),n[3]=0,(0,h.n)(i,(0,M.t)(n,n,u.camera.viewMatrix)))),new I.p("intersectsLineRadius",a=>a.intersectsLineRadius)]),l.code.add(f.H`{ -if (pointIsWithinLine(pos, intersectsLineStart, intersectsLineEnd)) { -float intersectsLineDistance = lineDistancePixels(intersectsLineStart, intersectsLineDirection, intersectsLineRadius, pos); -vec4 intersectsLineColor = laserlineProfile(intersectsLineDistance); -float intersectsLineAlpha = 1.0 - smoothstep(angleCutoff.x, angleCutoff.y, 1.0 - abs(dot(normal, intersectsLineDirection))); -color = max(color, intersectsLineColor * intersectsLineAlpha); -} -}`)),l.code.add(f.H`gl_FragColor = laserlineOutput(color * depthDiscontinuityAlpha); -}`),b}function m(o){return(0,_.s)(Q,Math.cos(o.angleCutoff),Math.cos(Math.max(0,o.angleCutoff-(0,s.Vl)(2))))}function F(o,b,l){return(0,h.m)(D,o,l),(0,h.c)(n,b),n[3]=0,(0,M.t)(n,n,l),(0,A.Yq)(D,n,K)}const Q=(0,P.a)(),i=(0,L.c)(),n=(0,x.c)(),r=(0,L.c)(),p=(0,L.c)(),D=(0,L.c)(),K=(0,A.Ue)(),B=(0,T.c)(),G=Object.freeze(Object.defineProperty({__proto__:null,defaultAngleCutoff:V,build:C},Symbol.toStringTag,{value:"Module"}))},23018:(ee,z,t)=>{t.d(z,{W:()=>O});var s=t(62208),_=t(84161),P=t(28093),h=t(13777),L=t(68604),M=t(85072),x=t(8834),W=t(70562),A=t(59617),T=t(4511),w=t(19625),y=t(15197),d=t(16396),v=t(651),U=t(91056),I=t(12407),f=t(9088),S=t(67969),V=t(2078);class C extends U.A{initializeProgram(e){return new I.$(e.rctx,C.shader.get().build(this.configuration),m)}initializePipeline(){return(0,V.sm)({blending:(0,V.if)(S.zi.ONE,S.zi.ONE_MINUS_SRC_ALPHA),colorWrite:V.BK})}}C.shader=new v.J(f.L,()=>t.e(9689).then(t.bind(t,79689)));const m=new Map([[d.T.START,0],[d.T.END,1],[d.T.UP,2],[d.T.EXTRUDE,3]]);var Z=t(83994);class Y{constructor(e){this._renderCoordsHelper=e,this._buffers=null,this._origin=(0,P.c)(),this._dirty=!1,this._count=0,this._vao=null}set vertices(e){const g=new Float64Array(3*e.length);let c=0;for(const k of e)g[c++]=k[0],g[c++]=k[1],g[c++]=k[2];this.buffers=[g]}set buffers(e){if(this._buffers=e,this._buffers.length>0){const g=this._buffers[0],c=3*Math.floor(g.length/3/2);(0,_.s)(this._origin,g[c+0],g[c+1],g[c+2])}else(0,_.s)(this._origin,0,0,0);this._dirty=!0}get origin(){return this._origin}draw(e){const g=this._ensureVAO(e);(0,s.pC)(g)&&(e.bindVAO(g),e.drawArrays(S.MX.TRIANGLES,0,this._count))}dispose(){(0,s.pC)(this._vao)&&this._vao.dispose()}_ensureVAO(e){return(0,s.Wi)(this._buffers)?null:((0,s.Wi)(this._vao)&&(this._vao=this._createVAO(e,this._buffers)),this._ensureVertexData(this._vao,this._buffers),this._vao)}_createVAO(e,g){const c=this._createDataBuffer(g);return this._dirty=!1,new y.U(e,m,{data:(0,T.K)(F)},{data:Z.f.createVertex(e,S.l1.STATIC_DRAW,c)})}_ensureVertexData(e,g){if(!this._dirty)return;const c=this._createDataBuffer(g);e.vertexBuffers.data.setData(c),this._dirty=!1}_numberOfRenderVertices(e){return 2*(e.length/3-1)*3}_createDataBuffer(e){const g=e.reduce((N,j)=>N+this._numberOfRenderVertices(j),0);this._count=g;const c=F.createBuffer(g),k=this._origin;let se=0,ne=0;for(const N of e){for(let j=0;j0){c.up.setVec(R-2,$),c.up.setVec(R-4,$),c.up.setVec(R-5,$);for(let J=-6;J<0;J++)c.end.setVec(R+J,re)}}se+=this._numberOfRenderVertices(N)}return c.buffer}}const H=(0,P.c)(),X=(0,P.c)(),F=(0,w.U$)().vec3f(d.T.START).vec3f(d.T.END).vec3f(d.T.UP).vec2f(d.T.EXTRUDE);var Q=t(19597),i=t(5894),n=t(57623),r=t(17626),p=t(87601);class D extends p.m{constructor(){super(...arguments),this.contrastControlEnabled=!1}}(0,r._)([(0,p.o)()],D.prototype,"contrastControlEnabled",void 0);var K=t(21286),B=t(17625),G=t(39114),o=t(66501);class b extends B.K{constructor(){super(...arguments),this.innerColor=(0,P.f)(1,1,1),this.innerWidth=1,this.glowColor=(0,P.f)(1,.5,0),this.glowWidth=8,this.glowFalloff=8,this.globalAlpha=.75,this.globalAlphaContrastBoost=2,this.angleCutoff=(0,K.Vl)(6),this.pointDistanceOrigin=(0,P.c)(),this.pointDistanceTarget=(0,P.c)(),this.lineVerticalPlaneSegment=(0,h.Ue)(),this.intersectsLineSegment=(0,h.Ue)(),this.intersectsLineRadius=3,this.heightManifoldTarget=(0,P.c)(),this.lineStartWorld=(0,P.c)(),this.lineEndWorld=(0,P.c)()}}class l extends U.A{initializeProgram(e){return new I.$(e.rctx,l.shader.get().build(this.configuration),G.i)}initializePipeline(){return(0,V.sm)({blending:(0,V.if)(S.zi.ONE,S.zi.ONE_MINUS_SRC_ALPHA),colorWrite:V.BK})}}l.shader=new v.J(o.L,()=>t.e(7794).then(t.bind(t,17794)));class a extends D{constructor(){super(...arguments),this.heightManifoldEnabled=!1,this.pointDistanceEnabled=!1,this.lineVerticalPlaneEnabled=!1,this.intersectsLineEnabled=!1,this.spherical=!1}}(0,r._)([(0,p.o)()],a.prototype,"heightManifoldEnabled",void 0),(0,r._)([(0,p.o)()],a.prototype,"pointDistanceEnabled",void 0),(0,r._)([(0,p.o)()],a.prototype,"lineVerticalPlaneEnabled",void 0),(0,r._)([(0,p.o)()],a.prototype,"intersectsLineEnabled",void 0),(0,r._)([(0,p.o)()],a.prototype,"spherical",void 0);class u{constructor(e,g={contrastControlEnabled:!1}){this._config=g,this._technique=null,this._heightManifoldEnabled=!1,this._pointDistanceEnabled=!1,this._lineVerticalPlaneEnabled=!1,this._intersectsLineEnabled=!1,this._intersectsLineInfinite=!1,this._viewingMode=A.JY.Local,this._pathVerticalPlaneEnabled=!1,this._pathVerticalPlaneData=null,this._pathTechnique=null,this.canRender=!0,this._passParameters=(0,n.Uf)(e,new b)}get renderSlots(){return[this._config.contrastControlEnabled?i.r.LASERLINES_CONTRAST_CONTROL:i.r.LASERLINES]}get needsLinearDepth(){return!0}get heightManifoldEnabled(){return this._heightManifoldEnabled}set heightManifoldEnabled(e){this._heightManifoldEnabled!==e&&(this._heightManifoldEnabled=e,this._requestRender())}get heightManifoldTarget(){return this._passParameters.heightManifoldTarget}set heightManifoldTarget(e){(0,_.c)(this._passParameters.heightManifoldTarget,e),this._requestRender()}get pointDistanceEnabled(){return this._pointDistanceEnabled}set pointDistanceEnabled(e){e!==this._pointDistanceEnabled&&(this._pointDistanceEnabled=e,this._requestRender())}get pointDistanceTarget(){return this._passParameters.pointDistanceTarget}set pointDistanceTarget(e){(0,_.c)(this._passParameters.pointDistanceTarget,e),this._requestRender()}get pointDistanceOrigin(){return this._passParameters.pointDistanceOrigin}set pointDistanceOrigin(e){(0,_.c)(this._passParameters.pointDistanceOrigin,e),this._requestRender()}get lineVerticalPlaneEnabled(){return this._lineVerticalPlaneEnabled}set lineVerticalPlaneEnabled(e){e!==this._lineVerticalPlaneEnabled&&(this._lineVerticalPlaneEnabled=e,this._requestRender())}get lineVerticalPlaneSegment(){return this._passParameters.lineVerticalPlaneSegment}set lineVerticalPlaneSegment(e){(0,h.JG)(e,this._passParameters.lineVerticalPlaneSegment),this._requestRender()}get intersectsLineEnabled(){return this._intersectsLineEnabled}set intersectsLineEnabled(e){e!==this._intersectsLineEnabled&&(this._intersectsLineEnabled=e,this._requestRender())}get intersectsLineSegment(){return this._passParameters.intersectsLineSegment}set intersectsLineSegment(e){(0,h.JG)(e,this._passParameters.intersectsLineSegment),this._requestRender()}get intersectsLineRadius(){return this._passParameters.intersectsLineRadius}set intersectsLineRadius(e){e!==this._passParameters.intersectsLineRadius&&(this._passParameters.intersectsLineRadius=e,this._requestRender())}get intersectsLineInfinite(){return this._intersectsLineInfinite}set intersectsLineInfinite(e){e!==this._intersectsLineInfinite&&(this._intersectsLineInfinite=e,this._requestRender())}get viewingMode(){return this._viewingMode}set viewingMode(e){e!==this._viewingMode&&(this._viewingMode=e,this._requestRender())}get pathVerticalPlaneEnabled(){return this._pathVerticalPlaneEnabled}set pathVerticalPlaneEnabled(e){e!==this._pathVerticalPlaneEnabled&&(this._pathVerticalPlaneEnabled=e,(0,s.pC)(this._pathVerticalPlaneData)&&this._requestRender())}set pathVerticalPlaneVertices(e){(0,s.Wi)(this._pathVerticalPlaneData)&&(this._pathVerticalPlaneData=new Y(this._passParameters.renderCoordsHelper)),this._pathVerticalPlaneData.vertices=e,this.pathVerticalPlaneEnabled&&this._requestRender()}set pathVerticalPlaneBuffers(e){(0,s.Wi)(this._pathVerticalPlaneData)&&(this._pathVerticalPlaneData=new Y(this._passParameters.renderCoordsHelper)),this._pathVerticalPlaneData.buffers=e,this.pathVerticalPlaneEnabled&&this._requestRender()}setParameters(e){(0,n.LO)(this._passParameters,e)&&this._requestRender()}initializeRenderContext(e){this._context=e,this._quadVAO=(0,Q.ow)(e.renderContext.rctx),this._techniqueRepository=e.shaderTechniqueRepository,this._techniqueConfig=new a;const c=new D;c.contrastControlEnabled=this._config.contrastControlEnabled,this._pathTechnique=this._techniqueRepository.acquire(C,c)}uninitializeRenderContext(){this._quadVAO=(0,s.M2)(this._quadVAO),this._technique=(0,s.RY)(this._technique),this._pathVerticalPlaneData=(0,s.M2)(this._pathVerticalPlaneData),this._pathTechnique=(0,s.RY)(this._pathTechnique)}prepareTechnique(){return this.heightManifoldEnabled||this.pointDistanceEnabled||this.lineVerticalPlaneSegment||this.intersectsLineEnabled?(this._techniqueConfig.heightManifoldEnabled=this.heightManifoldEnabled,this._techniqueConfig.lineVerticalPlaneEnabled=this.lineVerticalPlaneEnabled,this._techniqueConfig.pointDistanceEnabled=this.pointDistanceEnabled,this._techniqueConfig.intersectsLineEnabled=this.intersectsLineEnabled,this._techniqueConfig.contrastControlEnabled=this._config.contrastControlEnabled,this._techniqueConfig.spherical=this._viewingMode===A.JY.Global,this._technique=this._techniqueRepository.releaseAndAcquire(l,this._techniqueConfig,this._technique),this._technique):this._pathTechnique}render(e,g){(this.heightManifoldEnabled||this.pointDistanceEnabled||this.lineVerticalPlaneSegment||this.intersectsLineEnabled)&&this._renderUnified(e,g),this.pathVerticalPlaneEnabled&&this._renderPath(e)}_renderUnified(e,g){const c=e.rctx;this._updatePassParameters(e),c.bindTechnique(g,this._passParameters,e.bindParameters),c.bindVAO(this._quadVAO),c.drawArrays(S.MX.TRIANGLE_STRIP,0,4)}_renderPath(e){(0,s.Wi)(this._pathVerticalPlaneData)||(0,s.Wi)(this._pathTechnique)||(e.rctx.bindTechnique(this._pathTechnique,{...this._passParameters,origin:this._pathVerticalPlaneData.origin},e.bindParameters),this._pathVerticalPlaneData.draw(e.rctx))}_updatePassParameters(e){if(!this._intersectsLineEnabled)return;const g=e.bindParameters.camera;if(this._intersectsLineInfinite){if((0,M.iL)((0,W.re)(this._passParameters.intersectsLineSegment.origin,this._passParameters.intersectsLineSegment.vector),E),E.c0=-Number.MAX_VALUE,!(0,x.zq)(g.frustum,E))return;(0,M.Ws)(E,this._passParameters.lineStartWorld),(0,M.S$)(E,this._passParameters.lineEndWorld)}else(0,_.c)(this._passParameters.lineStartWorld,this._passParameters.intersectsLineSegment.origin),(0,_.a)(this._passParameters.lineEndWorld,this._passParameters.intersectsLineSegment.origin,this._passParameters.intersectsLineSegment.vector)}_requestRender(){this._context&&this._context.requestRender()}}const E=(0,M.Ue)();class O extends L.l{constructor(e){super(e.view),this._angleCutoff=o.d,this._style={},this._heightManifoldTarget=(0,P.c)(),this._heightManifoldEnabled=!1,this._intersectsLine=(0,h.Ue)(),this._intersectsLineEnabled=!1,this._intersectsLineInfinite=!1,this._lineVerticalPlaneSegment=null,this._pathVerticalPlaneBuffers=null,this._pointDistanceLine=null,this.applyProps(e)}get testData(){return this._renderer}createResources(){this._ensureRenderer()}destroyResources(){this._disposeRenderer()}updateVisibility(){this._syncRenderer(),this._syncHeightManifold(),this._syncIntersectsLine(),this._syncPathVerticalPlane(),this._syncLineVerticalPlane(),this._syncPointDistance()}get angleCutoff(){return this._angleCutoff}set angleCutoff(e){this._angleCutoff!==e&&(this._angleCutoff=e,this._syncAngleCutoff())}get style(){return this._style}set style(e){this._style=e,this._syncStyle()}get heightManifoldTarget(){return this._heightManifoldEnabled?this._heightManifoldTarget:null}set heightManifoldTarget(e){(0,s.pC)(e)?((0,_.c)(this._heightManifoldTarget,e),this._heightManifoldEnabled=!0):this._heightManifoldEnabled=!1,this._syncRenderer(),this._syncHeightManifold()}set intersectsWorldUpAtLocation(e){if((0,s.Wi)(e))return void(this.intersectsLine=null);const g=this.view.renderCoordsHelper.worldUpAtPosition(e,ie);this.intersectsLine=(0,h.al)(e,g),this.intersectsLineInfinite=!0}get intersectsLine(){return this._intersectsLineEnabled?this._intersectsLine:null}set intersectsLine(e){(0,s.pC)(e)?((0,h.JG)(e,this._intersectsLine),this._intersectsLineEnabled=!0):this._intersectsLineEnabled=!1,this._syncIntersectsLine(),this._syncRenderer()}get intersectsLineInfinite(){return this._intersectsLineInfinite}set intersectsLineInfinite(e){this._intersectsLineInfinite=e,this._syncIntersectsLineInfinite()}get lineVerticalPlaneSegment(){return this._lineVerticalPlaneSegment}set lineVerticalPlaneSegment(e){this._lineVerticalPlaneSegment=(0,s.pC)(e)?(0,h.JG)(e):null,this._syncLineVerticalPlane(),this._syncRenderer()}get pathVerticalPlane(){return this._pathVerticalPlaneBuffers}set pathVerticalPlane(e){this._pathVerticalPlaneBuffers=e,this._syncPathVerticalPlane(),this._syncLineVerticalPlane(),this._syncPointDistance(),this._syncRenderer()}get pointDistanceLine(){return this._pointDistanceLine}set pointDistanceLine(e){this._pointDistanceLine=(0,s.pC)(e)?{origin:(0,P.a)(e.origin),target:(0,P.a)(e.target)}:null,this._syncPointDistance(),this._syncRenderer()}_syncRenderer(){this.attached&&this.visible&&(this._intersectsLineEnabled||this._heightManifoldEnabled||(0,s.pC)(this._pointDistanceLine)||(0,s.pC)(this._pathVerticalPlaneBuffers))?this._ensureRenderer():this._disposeRenderer()}_ensureRenderer(){(0,s.pC)(this._renderer)||(this._renderer=new u({renderCoordsHelper:this.view.renderCoordsHelper},{contrastControlEnabled:!0}),this._renderer.viewingMode=this.view.state.viewingMode,this._syncStyle(),this._syncHeightManifold(),this._syncIntersectsLine(),this._syncIntersectsLineInfinite(),this._syncPathVerticalPlane(),this._syncLineVerticalPlane(),this._syncPointDistance(),this._syncAngleCutoff(),this.view._stage&&this.view._stage.addRenderPlugin(this._renderer.renderSlots,this._renderer))}_syncStyle(){(0,s.Wi)(this._renderer)||(this._renderer.setParameters(this._style),null!=this._style.intersectsLineRadius&&(this._renderer.intersectsLineRadius=this._style.intersectsLineRadius))}_syncAngleCutoff(){(0,s.Wi)(this._renderer)||this._renderer.setParameters({angleCutoff:this._angleCutoff})}_syncHeightManifold(){(0,s.Wi)(this._renderer)||(this._renderer.heightManifoldEnabled=this._heightManifoldEnabled&&this.visible,this._heightManifoldEnabled&&(this._renderer.heightManifoldTarget=this._heightManifoldTarget))}_syncIntersectsLine(){(0,s.Wi)(this._renderer)||(this._renderer.intersectsLineEnabled=this._intersectsLineEnabled&&this.visible,this._intersectsLineEnabled&&(this._renderer.intersectsLineSegment=this._intersectsLine))}_syncIntersectsLineInfinite(){(0,s.Wi)(this._renderer)||(this._renderer.intersectsLineInfinite=this._intersectsLineInfinite)}_syncPathVerticalPlane(){(0,s.Wi)(this._renderer)||(this._renderer.pathVerticalPlaneEnabled=(0,s.pC)(this._pathVerticalPlaneBuffers)&&this.visible,(0,s.pC)(this._pathVerticalPlaneBuffers)&&(this._renderer.pathVerticalPlaneBuffers=this._pathVerticalPlaneBuffers))}_syncLineVerticalPlane(){(0,s.Wi)(this._renderer)||(this._renderer.lineVerticalPlaneEnabled=(0,s.pC)(this._lineVerticalPlaneSegment)&&this.visible,(0,s.pC)(this._lineVerticalPlaneSegment)&&(this._renderer.lineVerticalPlaneSegment=this._lineVerticalPlaneSegment))}_syncPointDistance(){(0,s.Wi)(this._renderer)||(this._renderer.pointDistanceEnabled=(0,s.pC)(this._pointDistanceLine)&&this.visible,(0,s.pC)(this._pointDistanceLine)&&(this._renderer.pointDistanceOrigin=this._pointDistanceLine.origin,this._renderer.pointDistanceTarget=this._pointDistanceLine.target))}_disposeRenderer(){(0,s.pC)(this._renderer)&&this.view._stage&&(this.view._stage.removeRenderPlugin(this._renderer),this._renderer=null)}}const ie=(0,P.c)()},21232:(ee,z,t)=>{t.d(z,{L:()=>Y});var s=t(21286),_=t(62208),P=t(84161),h=t(28093),L=t(993),M=t(4794),x=t(55915),W=t(5548),A=t(26242),T=t(32917),w=t(42743),y=t(24425),d=t(96867),v=t(81695),U=t(34103);class I{constructor(i){this._resourceFactory=i,this._resources=null,this._visible=!0,this._attached=!1}destroy(){this._destroyResources()}get object(){return(0,_.pC)(this._resources)?this._resources.object:null}get resources(){return(0,_.pC)(this._resources)?this._resources.external:null}get visible(){return this._visible}set visible(i){i!==this._visible&&(this._visible=i,this._syncVisible())}get attached(){return this._attached}set attached(i){i!==this._attached&&(this._attached=i,this._createOrDestroyResources())}recreate(){this.attached&&this._createResources()}recreateGeometry(){if(!this._resourceFactory.recreateGeometry)return void this.recreate();const i=this._resourceFactory.view._stage;if((0,_.Wi)(this._resources)||!i)return;const n=this._resources.object;this._resources.external.forEach(p=>{p.type===y.U.Geometry&&i.remove(p)}),n.removeAllGeometries();const r=this._resourceFactory.recreateGeometry(this._resources.external,n,this._resources.layer);i.addMany(r)}_createOrDestroyResources(){this._attached?this._resources||this._createResources():this._destroyResources()}_createResources(){this._destroyResources();const i=this._resourceFactory,n=i.view,r=n._stage;if(!r)return;const p=new U.F({isPickable:!1,updatePolicy:w.jq.SYNC});r.add(p);const D=new d.T({castShadow:!1}),K=i.createResources(D,p);K.forEach(G=>{r.add(G),G instanceof v.x&&r.loadImmediate(G)}),r.add(D),p.add(D);const B=i.cameraChanged?(0,T.YP)(()=>n.state.camera,G=>i.cameraChanged(G),T.nn):null;this._resources={layer:p,object:D,external:K,cameraHandle:B},this._syncVisible()}_destroyResources(){if((0,_.Wi)(this._resources))return;const i=this._resourceFactory.view._stage;i?.remove(this._resources.object),i?.remove(this._resources.layer),this._resources.external.forEach(n=>{i?.remove(n),"dispose"in n&&n.dispose()}),this._resources.object.dispose(),this._resources.cameraHandle&&this._resources.cameraHandle.remove(),this._resources=null}_syncVisible(){(0,_.Wi)(this._resources)||this._resources.object.setVisible(this._visible)}}var f=t(81468),S=t(79112),V=t(8782),C=t(57521),m=t(16396),Z=t(80805);class Y{constructor(i){this.view=null,this._geometry=null,this._size=3,this._color=(0,M.f)(1,0,1,1),this._pixelSnappingEnabled=!0,this._primitive="square",this._outlineSize=1,this._outlineColor=(0,M.f)(1,1,1,1),this._elevationInfo=null,this._resources=new I({view:i.view,createResources:r=>this._createResources(r),recreateGeometry:(r,p)=>(r.geometry=this._recreateGeometry(p,r.material),(0,_.pC)(r.geometry)?[r.geometry]:[])});let n=!0;for(const r in i)r in this?"attached"===r?n=i[r]:this[r]=i[r]:console.error("Cannot set unknown property",r);this.attached=n}destroy(){this._resources.destroy()}get visible(){return this._resources.visible}set visible(i){this._resources.visible=i}get attached(){return this._resources.attached}set attached(i){this._resources.attached=i}get geometry(){return this._geometry}set geometry(i){this._geometry=i,this._resources.recreateGeometry()}get size(){return this._size}set size(i){if(i!==this._size){const n=this._preferredTextureSize;this._size=i,n{t.d(z,{j:()=>A});var s=t(62208),_=t(47923),P=t(39832),h=t(95285),L=t(97139),M=t(65787),x=t(17625),W=t(35387);function A(T,w){T.extensions.add("GL_OES_standard_derivatives");const y=T.fragment;y.include(_.S),T.include(P.G),y.uniforms.add([new M.p("globalAlpha",d=>d.globalAlpha),new L.J("glowColor",d=>d.glowColor),new M.p("glowWidth",(d,v)=>d.glowWidth*v.camera.pixelRatio),new M.p("glowFalloff",d=>d.glowFalloff),new L.J("innerColor",d=>d.innerColor),new M.p("innerWidth",(d,v)=>d.innerWidth*v.camera.pixelRatio),new W.A("depthMap",(d,v)=>v.linearDepthTexture),new h.A("nearFar",(d,v)=>v.camera.nearFar),new W.A("frameColor",(d,v)=>v.mainColorTexture)]),y.code.add(x.H`vec4 blendPremultiplied(vec4 source, vec4 dest) { -float oneMinusSourceAlpha = 1.0 - source.a; -return vec4( -source.rgb + dest.rgb * oneMinusSourceAlpha, -source.a + dest.a * oneMinusSourceAlpha -); -}`),y.code.add(x.H`vec4 premultipliedColor(vec3 rgb, float alpha) { -return vec4(rgb * alpha, alpha); -}`),y.code.add(x.H`vec4 laserlineProfile(float dist) { -if (dist > glowWidth) { -return vec4(0.0); -} -float innerAlpha = (1.0 - smoothstep(0.0, innerWidth, dist)); -float glowAlpha = pow(max(0.0, 1.0 - dist / glowWidth), glowFalloff); -return blendPremultiplied( -premultipliedColor(innerColor, innerAlpha), -premultipliedColor(glowColor, glowAlpha) -); -}`),y.code.add(x.H`bool laserlineReconstructFromDepth(out vec3 pos, out vec3 normal, out float depthDiscontinuityAlpha) { -float depth = linearDepthFromTexture(depthMap, uv, nearFar); -if (-depth == nearFar[0]) { -return false; -} -pos = reconstructPosition(gl_FragCoord.xy, depth); -normal = normalize(cross(dFdx(pos), dFdy(pos))); -float ddepth = fwidth(depth); -depthDiscontinuityAlpha = 1.0 - smoothstep(0.0, 0.01, -ddepth / depth); -return true; -}`),w.contrastControlEnabled?(y.uniforms.add(new M.p("globalAlphaContrastBoost",d=>(0,s.pC)(d.globalAlphaContrastBoost)?d.globalAlphaContrastBoost:1)),y.code.add(x.H`float rgbToLuminance(vec3 color) { -return dot(vec3(0.2126, 0.7152, 0.0722), color); -} -vec4 laserlineOutput(vec4 color) { -float backgroundLuminance = rgbToLuminance(texture2D(frameColor, uv).rgb); -float alpha = clamp(globalAlpha * max(backgroundLuminance * globalAlphaContrastBoost, 1.0), 0.0, 1.0); -return color * alpha; -}`)):y.code.add(x.H`vec4 laserlineOutput(vec4 color) { -return color * globalAlpha; -}`)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/487.41913a1ac5ba53a0.js b/apps/n/porrtal-io-app/public/angular/487.41913a1ac5ba53a0.js new file mode 100644 index 00000000..cea58b93 --- /dev/null +++ b/apps/n/porrtal-io-app/public/angular/487.41913a1ac5ba53a0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[487],{9487:(Dt,ce,b)=>{b.r(ce),b.d(ce,{MarkdownViewerComponent:()=>q,YoutubePlayerComponent:()=>H});var T=b(6895),c=b(4650),U=b(7579),R=b(1135),N=b(9646),te=b(9751),Me=b(576),ue=b(3268);function pe(r,e,t){return t?pe(r,e).pipe((0,ue.Z)(t)):new te.y(n=>{const i=(...a)=>n.next(1===a.length?a[0]:a),s=r(i);return(0,Me.m)(e)?()=>e(i,s):void 0})}var $=b(9841),ne=b(9635),de=b(6451),fe=b(5698),ie=b(8675),O=b(4004),Fe=b(8505),Q=b(2722),Ve=b(3446),ge=b(3900),je=b(5577),se=b(1365),Ye=b(5026),me=b(1884),ye=b(4482);const{isArray:Ze}=Array;function Qe(r){return 1===r.length&&Ze(r[0])?r[0]:r}var He=b(3269);function be(...r){const e=(0,He.jO)(r);return e?(0,ne.z)(be(...r),(0,ue.Z)(e)):(0,ye.e)((t,n)=>{(0,$.l)([t,...Qe(r)])(n)})}var Xe=b(5403),Ge=b(9300);const Je=["youtubeContainer"];let we=(()=>{class r{constructor(t,n){this._ngZone=t,this._youtubeContainer=new U.x,this._destroyed=new U.x,this._playerChanges=new R.X(void 0),this._videoId=new R.X(void 0),this._height=new R.X(390),this._width=new R.X(640),this._startSeconds=new R.X(void 0),this._endSeconds=new R.X(void 0),this._suggestedQuality=new R.X(void 0),this._playerVars=new R.X(void 0),this._disableCookies=new R.X(!1),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=(0,T.NF)(n)}get videoId(){return this._videoId.value}set videoId(t){this._videoId.next(t)}get height(){return this._height.value}set height(t){this._height.next(t||390)}get width(){return this._width.value}set width(t){this._width.next(t||640)}set startSeconds(t){this._startSeconds.next(t)}set endSeconds(t){this._endSeconds.next(t)}set suggestedQuality(t){this._suggestedQuality.next(t)}get playerVars(){return this._playerVars.value}set playerVars(t){this._playerVars.next(t)}get disableCookies(){return this._disableCookies.value}set disableCookies(t){this._disableCookies.next(!!t)}ngOnInit(){if(!this._isBrowser)return;let t=(0,N.of)(!0);if(!window.YT||!window.YT.Player){const s=new U.x;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>s.next(!0))},t=s.pipe((0,fe.q)(1),(0,ie.O)(!1))}const n=this._disableCookies.pipe((0,O.U)(s=>s?"https://www.youtube-nocookie.com":void 0)),i=function tt(r,e,t,n,i,s,a,l){const o=(0,$.a)([e,t,a]).pipe((0,se.M)((0,$.a)([i,s])),(0,O.U)(([g,h])=>{const[y,m,p]=g,[C,S]=h;return y?{videoId:y,playerVars:p,width:C,height:S,host:m}:void 0}));return(0,$.a)([r,o,(0,N.of)(l)]).pipe(function nt(r){return(0,ne.z)(be(r),function We(r){return(0,ye.e)((e,t)=>{let n=!1,i=0;e.subscribe((0,Xe.x)(t,s=>(n||(n=!r(s,i++)))&&t.next(s)))})}(([e,t])=>!t),(0,O.U)(([e])=>e))}(n),(0,Ye.R)(it,void 0),(0,me.x)())}(this._youtubeContainer,this._videoId,n,t,this._width,this._height,this._playerVars,this._ngZone).pipe((0,Fe.b)(s=>{this._playerChanges.next(s)}),function et(r){return(0,je.z)(e=>e?_e(e)?(0,N.of)(e):new te.y(t=>{let n=!1,i=!1;const s=a=>{i=!0,n||(a.target.removeEventListener("onReady",s),t.next(a.target))};return e.addEventListener("onReady",s),()=>{n=!0,i||r(e)}}).pipe((0,fe.q)(1),(0,ie.O)(void 0)):(0,N.of)(void 0))}(s=>{_e(s)||s.destroy()}),(0,Q.R)(this._destroyed),(0,Ve.n)());i.subscribe(s=>{this._player=s,s&&this._pendingPlayerState&&this._initializePlayer(s,this._pendingPlayerState),this._pendingPlayerState=void 0}),function Ke(r,e,t){(0,$.a)([r,e,t]).subscribe(([n,i,s])=>n&&n.setSize(i,s))}(i,this._width,this._height),function qe(r,e){(0,$.a)([r,e]).subscribe(([t,n])=>t&&n&&t.setPlaybackQuality(n))}(i,this._suggestedQuality),function st(r,e,t,n,i,s){const a=(0,$.a)([t,n]).pipe((0,O.U)(([h,y])=>({startSeconds:h,endSeconds:y}))),l=a.pipe(re(r,h=>!!h&&!function rt(r){const e=r.getPlayerState();return e!==YT.PlayerState.UNSTARTED&&e!==YT.PlayerState.CUED}(h))),o=e.pipe(re(r,(h,y)=>!!h&&h.videoId!==y)),g=r.pipe(re((0,$.a)([e,a]),([h,y],m)=>!(!m||h==m.videoId&&!y.startSeconds&&!y.endSeconds)));(0,de.T)(g,o,l).pipe((0,se.M)((0,$.a)([r,e,a,i])),(0,O.U)(([h,y])=>y),(0,Q.R)(s)).subscribe(([h,y,m,p])=>{!y||!h||(h.videoId=y,h.cueVideoById({videoId:y,suggestedQuality:p,...m}))})}(i,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),i.connect()}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=YT.PlayerState.PLAYING}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=YT.PlayerState.PAUSED}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=YT.PlayerState.CUED}seekTo(t,n){this._player?this._player.seekTo(t,n):this._getPendingState().seek={seconds:t,allowSeekAhead:n}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:YT.PlayerState.UNSTARTED}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(t,n){const{playbackState:i,playbackRate:s,volume:a,muted:l,seek:o}=n;switch(i){case YT.PlayerState.PLAYING:t.playVideo();break;case YT.PlayerState.PAUSED:t.pauseVideo();break;case YT.PlayerState.CUED:t.stopVideo()}null!=s&&t.setPlaybackRate(s),null!=a&&t.setVolume(a),null!=l&&(l?t.mute():t.unMute()),null!=o&&t.seekTo(o.seconds,o.allowSeekAhead)}_getLazyEmitter(t){return this._playerChanges.pipe((0,ge.w)(n=>n?pe(i=>{n.addEventListener(t,i)},i=>{try{n.removeEventListener&&n.removeEventListener(t,i)}catch{}}):(0,N.of)()),n=>new te.y(i=>n.subscribe({next:s=>this._ngZone.run(()=>i.next(s)),error:s=>i.error(s),complete:()=>i.complete()})),(0,Q.R)(this._destroyed))}}return r.\u0275fac=function(t){return new(t||r)(c.Y36(c.R0b),c.Y36(c.Lbi))},r.\u0275cmp=c.Xpm({type:r,selectors:[["youtube-player"]],viewQuery:function(t,n){if(1&t&&c.Gf(Je,5),2&t){let i;c.iGM(i=c.CRH())&&(n.youtubeContainer=i.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",disableCookies:"disableCookies",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(t,n){1&t&&c._UZ(0,"div",null,0)},encapsulation:2,changeDetection:0}),r})();function it(r,[e,t,n]){if(r&&t&&(r.playerVars!==t.playerVars||r.host!==t.host))r.destroy();else{if(!t)return void(r&&r.destroy());if(r)return r}const i=n.runOutsideAngular(()=>new YT.Player(e,t));return i.videoId=t.videoId,i.playerVars=t.playerVars,i.host=t.host,i}function _e(r){return"getPlayerStatus"in r}function re(r,e){return(0,ne.z)((0,se.M)(r),(0,Ge.h)(([t,n])=>e(n,t)),(0,O.U)(([t])=>t))}let at=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=c.oAB({type:r}),r.\u0275inj=c.cJS({}),r})(),Se=!1;class H{constructor(){this.width="100%",this.height="100%"}set viewState(e){this.videoId=e&&e.state?e.state.videoId:void 0}ngOnInit(){if(!Se){const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",document.body.appendChild(e),Se=!0}}static#e=this.\u0275fac=function(t){return new(t||H)};static#t=this.\u0275cmp=c.Xpm({type:H,selectors:[["porrtal-youtube-player"]],inputs:{viewState:"viewState"},standalone:!0,features:[c.jDz],decls:1,vars:1,consts:[[3,"videoId"]],template:function(t,n){1&t&&c._UZ(0,"youtube-player",0),2&t&&c.Q6J("videoId",n.videoId)},dependencies:[T.ez,at,we],styles:["[_nghost-%COMP%]{position:relative}youtube-player[_ngcontent-%COMP%] iframe{width:100%;height:100%}"],changeDetection:0})}var lt=b(5963),ot=b(9718),ht=b(4782);class B{constructor(){this._buttonClick$=new U.x,this.copied$=this._buttonClick$.pipe((0,ge.w)(()=>(0,de.T)((0,N.of)(!0),(0,lt.H)(3e3).pipe((0,ot.h)(!1)))),(0,me.x)(),(0,ht.d)(1)),this.copiedText$=this.copied$.pipe((0,ie.O)(!1),(0,O.U)(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static#e=this.\u0275fac=function(t){return new(t||B)};static#t=this.\u0275cmp=c.Xpm({type:B,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,n){1&t&&(c.TgZ(0,"button",0),c.NdJ("click",function(){return n.onCopyToClipboardClick()}),c.ALo(1,"async"),c._uU(2),c.ALo(3,"async"),c.qZA()),2&t&&(c.ekj("copied",c.lcZ(1,3,n.copied$)),c.xp6(2),c.Oqu(c.lcZ(3,5,n.copiedText$)))},dependencies:[T.Ov],encapsulation:2,changeDetection:0})}class X{transform(e,t){return null==e&&(e=""),null==t&&(t=""),"string"!=typeof e?(console.error(`LanguagePipe has been invoked with an invalid value type [${typeof e}]`),e):"string"!=typeof t?(console.error(`LanguagePipe has been invoked with an invalid parameter [${typeof t}]`),e):"```"+t+"\n"+e+"\n```"}static#e=this.\u0275fac=function(t){return new(t||X)};static#t=this.\u0275pipe=c.Yjl({name:"language",type:X,pure:!0})}let M={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Ee=/[&<>"']/,dt=new RegExp(Ee.source,"g"),Ce=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ft=new RegExp(Ce.source,"g"),gt={"&":"&","<":"<",">":">",'"':""","'":"'"},Pe=r=>gt[r];function w(r,e){if(e){if(Ee.test(r))return r.replace(dt,Pe)}else if(Ce.test(r))return r.replace(ft,Pe);return r}const mt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Re(r){return r.replace(mt,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const yt=/(^|[^\[])\^/g;function k(r,e){r="string"==typeof r?r:r.source,e=e||"";const t={replace:(n,i)=>(i=(i=i.source||i).replace(yt,"$1"),r=r.replace(n,i),t),getRegex:()=>new RegExp(r,e)};return t}const bt=/[^\w:]/g,kt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function $e(r,e,t){if(r){let n;try{n=decodeURIComponent(Re(t)).replace(bt,"").toLowerCase()}catch{return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}e&&!kt.test(t)&&(t=function St(r,e){W[" "+r]||(W[" "+r]=xt.test(r)?r+"/":J(r,"/",!0));const t=-1===(r=W[" "+r]).indexOf(":");return"//"===e.substring(0,2)?t?e:r.replace(wt,"$1")+e:"/"===e.charAt(0)?t?e:r.replace(_t,"$1")+e:r+e}(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const W={},xt=/^[^:]+:\/*[^/]*$/,wt=/^([^:]+:)[\s\S]*$/,_t=/^([^:]+:\/*[^/]*)[\s\S]*$/,G={exec:function(){}};function E(r){let t,n,e=1;for(;e{let o=!1,g=a;for(;--g>=0&&"\\"===l[g];)o=!o;return o?"|":" |"}).split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length1;)1&e&&(t+=r),e>>=1,r+=r;return t+r}function Ie(r,e,t,n){const i=e.href,s=e.title?w(e.title):null,a=r[1].replace(/\\([\[\]])/g,"$1");if("!"!==r[0].charAt(0)){n.state.inLink=!0;const l={type:"link",raw:t,href:i,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}return{type:"image",raw:t,href:i,title:s,text:w(a)}}class ae{constructor(e){this.options=e||M}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:J(n,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],i=function Et(r,e){const t=r.match(/^(\s+)(?:```)/);if(null===t)return e;const n=t[1];return e.split("\n").map(i=>{const s=i.match(/^\s+/);if(null===s)return i;const[a]=s;return a.length>=n.length?i.slice(n.length):i}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const i=J(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:s,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,i,s,a,l,o,g,h,y,m,p,C,S=t[1].trim();const L=S.length>1,x={type:"list",raw:"",ordered:L,start:L?+S.slice(0,-1):"",loose:!1,items:[]};S=L?`\\d{1,9}\\${S.slice(-1)}`:`\\${S}`,this.options.pedantic&&(S=L?S:"[*+-]");const _=new RegExp(`^( {0,3}${S})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(C=!1,(t=_.exec(e))&&!this.rules.block.hr.test(e));){if(n=t[0],e=e.substring(n.length),h=t[2].split("\n",1)[0],y=e.split("\n",1)[0],this.options.pedantic?(a=2,p=h.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,p=h.slice(a),a+=t[1].length),o=!1,!h&&/^ *$/.test(y)&&(n+=y+"\n",e=e.substring(y.length+1),C=!0),!C){const D=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),I=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),ee=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;e&&(m=e.split("\n",1)[0],h=m,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(I.test(h)||ee.test(h)||D.test(h)||z.test(e)));){if(h.search(/[^ ]/)>=a||!h.trim())p+="\n"+h.slice(a);else{if(o)break;p+="\n"+h}!o&&!h.trim()&&(o=!0),n+=m+"\n",e=e.substring(m.length+1)}}x.loose||(g?x.loose=!0:/\n *\n *$/.test(n)&&(g=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(p),i&&(s="[ ] "!==i[0],p=p.replace(/^\[[ xX]\] +/,""))),x.items.push({type:"list_item",raw:n,task:!!i,checked:s,loose:!1,text:p}),x.raw+=n}x.items[x.items.length-1].raw=n.trimRight(),x.items[x.items.length-1].text=p.trimRight(),x.raw=x.raw.trimRight();const V=x.items.length;for(l=0;l"space"===I.type),z=D.length>0&&D.some(I=>/\n.*\n/.test(I.raw));x.loose=z}if(x.loose)for(l=0;l$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:ve(t[1]).map(i=>({text:i})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];let s,a,l,o,i=n.align.length;for(s=0;s({text:g}));for(i=n.header.length,a=0;a/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):w(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const a=J(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{const a=function Tt(r,e){if(-1===r.indexOf(e[1]))return-1;const t=r.length;let n=0,i=0;for(;i-1){const o=(0===t[0].indexOf("!")?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],s=a[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i.slice(1):i.slice(1,-1)),Ie(t,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/\s+/g," ");if(i=t[i.toLowerCase()],!i){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Ie(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=i[1]||i[2]||"";if(!s||s&&(""===n||this.rules.inline.punctuation.exec(n))){const a=i[0].length-1;let l,o,g=a,h=0;const y="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(y.lastIndex=0,t=t.slice(-1*e.length+a);null!=(i=y.exec(t));){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(o=l.length,i[3]||i[4]){g+=o;continue}if((i[5]||i[6])&&a%3&&!((a+o)%3)){h+=o;continue}if(g-=o,g>0)continue;o=Math.min(o,o+g+h);const m=e.slice(0,a+i.index+(i[0].length-l.length)+o);if(Math.min(a,o)%2){const C=m.slice(1,-1);return{type:"em",raw:m,text:C,tokens:this.lexer.inlineTokens(C)}}const p=m.slice(2,-2);return{type:"strong",raw:m,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=w(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let i,s;return"@"===n[2]?(i=w(this.options.mangle?t(n[1]):n[1]),s="mailto:"+i):(i=w(n[1]),s=i),{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let i,s;if("@"===n[2])i=w(this.options.mangle?t(n[0]):n[0]),s="mailto:"+i;else{let a;do{a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(a!==n[0]);i=w(n[0]),s="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let i;return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):w(n[0]):n[0]:w(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}}}}const d={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:G,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};d.def=k(d.def).replace("label",d._label).replace("title",d._title).getRegex(),d.bullet=/(?:[*+-]|\d{1,9}[.)])/,d.listItemStart=k(/^( *)(bull) */).replace("bull",d.bullet).getRegex(),d.list=k(d.list).replace(/bull/g,d.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+d.def.source+")").getRegex(),d._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",d._comment=/|$)/,d.html=k(d.html,"i").replace("comment",d._comment).replace("tag",d._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),d.paragraph=k(d._paragraph).replace("hr",d.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",d._tag).getRegex(),d.blockquote=k(d.blockquote).replace("paragraph",d.paragraph).getRegex(),d.normal=E({},d),d.gfm=E({},d.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),d.gfm.table=k(d.gfm.table).replace("hr",d.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",d._tag).getRegex(),d.gfm.paragraph=k(d._paragraph).replace("hr",d.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",d.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",d._tag).getRegex(),d.pedantic=E({},d.normal,{html:k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",d._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:G,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(d.normal._paragraph).replace("hr",d.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",d.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const u={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:G,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}u._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",u.punctuation=k(u.punctuation).replace(/punctuation/g,u._punctuation).getRegex(),u.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,u.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,u._comment=k(d._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),u.emStrong.lDelim=k(u.emStrong.lDelim).replace(/punct/g,u._punctuation).getRegex(),u.emStrong.rDelimAst=k(u.emStrong.rDelimAst,"g").replace(/punct/g,u._punctuation).getRegex(),u.emStrong.rDelimUnd=k(u.emStrong.rDelimUnd,"g").replace(/punct/g,u._punctuation).getRegex(),u._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,u._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,u._email=/[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])?)+(?![-_])/,u.autolink=k(u.autolink).replace("scheme",u._scheme).replace("email",u._email).getRegex(),u._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,u.tag=k(u.tag).replace("comment",u._comment).replace("attribute",u._attribute).getRegex(),u._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,u._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,u._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,u.link=k(u.link).replace("label",u._label).replace("href",u._href).replace("title",u._title).getRegex(),u.reflink=k(u.reflink).replace("label",u._label).replace("ref",d._label).getRegex(),u.nolink=k(u.nolink).replace("ref",d._label).getRegex(),u.reflinkSearch=k(u.reflinkSearch,"g").replace("reflink",u.reflink).replace("nolink",u.nolink).getRegex(),u.normal=E({},u),u.pedantic=E({},u.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",u._label).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",u._label).getRegex()}),u.gfm=E({},u.normal,{escape:k(u.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\o+" ".repeat(g.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>!!(n=l.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const o=e.slice(1);let g;this.options.extensions.startBlock.forEach(function(h){g=h.call({lexer:this},o),"number"==typeof g&&g>=0&&(l=Math.min(l,g))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=t[t.length-1],a&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),a=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,s,l,o,g,a=e;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(a));)h.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+ze("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,l.index)+"["+ze("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,l.index+l[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(o||(g=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>!!(n=h.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,g)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,Oe)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,Oe))){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const y=e.slice(1);let m;this.options.extensions.startInline.forEach(function(p){m=p.call({lexer:this},y),"number"==typeof m&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(s=e.substring(0,h+1))}if(n=this.tokenizer.inlineText(s,Ct)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(g=n.raw.slice(-1)),o=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}return t}}class j{constructor(e){this.options=e||M}code(e,t,n){const i=(t||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,i);null!=s&&s!==e&&(n=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",i?'
'+(n?e:w(e,!0))+"
\n":"
"+(n?e:w(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e){return e}heading(e,t,n,i){return this.options.headerIds?`${e}\n`:`${e}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=$e(this.options.sanitize,this.options.baseUrl,e)))return n;let i='",i}image(e,t,n){if(null===(e=$e(this.options.sanitize,this.options.baseUrl,e)))return n;let i=`${n}":">",i}text(e){return e}}class Le{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class De{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{i++,n=e+"-"+i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class P{constructor(e){this.options=e||M,this.options.renderer=this.options.renderer||new j,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Le,this.slugger=new De}static parse(e,t){return new P(t).parse(e)}static parseInline(e,t){return new P(t).parseInline(e)}parse(e,t=!0){let i,s,a,l,o,g,h,y,m,p,C,S,L,x,_,V,D,z,I,n="";const ee=e.length;for(i=0;i0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=z+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=z+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:z}):x+=z),x+=this.parse(_.tokens,L),m+=this.renderer.listitem(x,D,V);n+=this.renderer.list(m,C,S);continue;case"html":n+=this.renderer.html(p.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(m=p.tokens?this.parseInline(p.tokens):p.text;i+1"u"||null===r)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof r)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected");if("function"==typeof e&&(t=e,e=null),Ae(e=E({},f.defaults,e||{})),t){const i=e.highlight;let s;try{s=v.lex(r,e)}catch(o){return t(o)}const a=function(o){let g;if(!o)try{e.walkTokens&&f.walkTokens(s,e.walkTokens),g=P.parse(s,e)}catch(h){o=h}return e.highlight=i,o?t(o):t(null,g)};if(!i||i.length<3||(delete e.highlight,!s.length))return a();let l=0;return f.walkTokens(s,function(o){"code"===o.type&&(l++,setTimeout(()=>{i(o.text,o.lang,function(g,h){if(g)return a(g);null!=h&&h!==o.text&&(o.text=h,o.escaped=!0),l--,0===l&&a()})},0))}),void(0===l&&a())}function n(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"

    An error occurred:

    "+w(i.message+"",!0)+"
    ";throw i}try{const i=v.lex(r,e);if(e.walkTokens){if(e.async)return Promise.all(f.walkTokens(i,e.walkTokens)).then(()=>P.parse(i,e)).catch(n);f.walkTokens(i,e.walkTokens)}return P.parse(i,e)}catch(i){n(i)}}f.options=f.setOptions=function(r){return E(f.defaults,r),function pt(r){M=r}(f.defaults),f},f.getDefaults=function Te(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},f.defaults=M,f.use=function(...r){const e=f.defaults.extensions||{renderers:{},childTokens:{}};r.forEach(t=>{const n=E({},t);if(n.async=f.defaults.async||n.async,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const s=e.renderers[i.name];e.renderers[i.name]=s?function(...a){let l=i.renderer.apply(this,a);return!1===l&&(l=s.apply(this,a)),l}:i.renderer}if(i.tokenizer){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");e[i.level]?e[i.level].unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&("block"===i.level?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:"inline"===i.level&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),n.extensions=e),t.renderer){const i=f.defaults.renderer||new j;for(const s in t.renderer){const a=i[s];i[s]=(...l)=>{let o=t.renderer[s].apply(i,l);return!1===o&&(o=a.apply(i,l)),o}}n.renderer=i}if(t.tokenizer){const i=f.defaults.tokenizer||new ae;for(const s in t.tokenizer){const a=i[s];i[s]=(...l)=>{let o=t.tokenizer[s].apply(i,l);return!1===o&&(o=a.apply(i,l)),o}}n.tokenizer=i}if(t.walkTokens){const i=f.defaults.walkTokens;n.walkTokens=function(s){let a=[];return a.push(t.walkTokens.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}f.setOptions(n)})},f.walkTokens=function(r,e){let t=[];for(const n of r)switch(t=t.concat(e.call(f,n)),n.type){case"table":for(const i of n.header)t=t.concat(f.walkTokens(i.tokens,e));for(const i of n.rows)for(const s of i)t=t.concat(f.walkTokens(s.tokens,e));break;case"list":t=t.concat(f.walkTokens(n.items,e));break;default:f.defaults.extensions&&f.defaults.extensions.childTokens&&f.defaults.extensions.childTokens[n.type]?f.defaults.extensions.childTokens[n.type].forEach(function(i){t=t.concat(f.walkTokens(n[i],e))}):n.tokens&&(t=t.concat(f.walkTokens(n.tokens,e)))}return t},f.parseInline=function(r,e){if(typeof r>"u"||null===r)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof r)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected");Ae(e=E({},f.defaults,e||{}));try{const t=v.lexInline(r,e);return e.walkTokens&&f.walkTokens(t,e.walkTokens),P.parseInline(t,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"

    An error occurred:

    "+w(t.message+"",!0)+"
    ";throw t}},f.Parser=P,f.parser=P.parse,f.Renderer=j,f.TextRenderer=Le,f.Lexer=v,f.lexer=v.lex,f.Tokenizer=ae,f.Slugger=De,f.parse=f;var le=b(529);class Pt{}class oe{}var Ue=b(1481);const he=new c.OlP("SECURITY_CONTEXT");class A{constructor(e,t,n,i,s,a){this.platform=e,this.securityContext=t,this.http=n,this.clipboardOptions=i,this.sanitizer=a,this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_MARKED_OPTIONS={renderer:new j},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this._reload$=new U.x,this.reload$=this._reload$.asObservable(),this.options=s}get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}parse(e,t=this.DEFAULT_PARSE_OPTIONS,n){const{decodeHtml:i,inline:s,emoji:a,mermaid:l,markedOptions:o}=t,g={...o??{},...n??{}};l&&(this.renderer=this.extendRenderer(g.renderer||new j));const h=this.trimIndentation(e),y=i?this.decodeHtml(h):h,m=a?this.parseEmoji(y):y,p=this.parseMarked(m,g,s);return this.sanitizer.sanitize(this.securityContext,p)||""}render(e,t=this.DEFAULT_RENDER_OPTIONS,n){const{clipboard:i,clipboardOptions:s,katex:a,katexOptions:l,mermaid:o,mermaidOptions:g}=t;i&&this.renderClipboard(e,n,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),o&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...g}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe((0,O.U)(t=>this.handleExtension(e,t)))}highlight(e){if(!(0,T.NF)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,n=>n.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!(0,T.NF)(this.platform))return e;const t=document.createElement("textarea");return t.innerHTML=e,t.value}extendRenderer(e){const t=e;if(!0===t.\u0275NgxMarkdownRendererExtended)return e;const n=e.code;return e.code=function(i,s,a){return"mermaid"===s?`
    ${i}
    `:n.call(this,i,s,a)},t.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,t){const n=e.lastIndexOf("://"),i=n>-1?e.substring(n+4):e,s=i.lastIndexOf("/"),a=s>-1?i.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),o=l>-1?a.substring(l+1):"";return o&&"md"!==o?"```"+o+"\n"+t+"\n```":t}parseMarked(e,t,n=!1){return(0,T.NF)(this.platform)?n?f.parseInline(e,t):f.parse(e,t):e}parseEmoji(e){if(!(0,T.NF)(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,t){if((0,T.NF)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,t)}}renderClipboard(e,t,n){if(!(0,T.NF)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!t)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:s}=n,a=e.querySelectorAll("pre");for(let l=0;lh.style.opacity="1",o.onmouseout=()=>h.style.opacity="0",y=i?t.createComponent(i).hostView:s?t.createEmbeddedView(s):t.createComponent(B).hostView,y.rootNodes.forEach(p=>{p.onmouseover=()=>h.style.opacity="1",h.appendChild(p),m=new ClipboardJS(p,{text:()=>o.innerText})}),y.onDestroy(()=>m.destroy())}}renderMermaid(e,t=this.DEFAULT_MERMAID_OPTIONS){if(!(0,T.NF)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const n=e.querySelectorAll(".mermaid");0!==n.length&&(mermaid.initialize(t),mermaid.init(n))}trimIndentation(e){if(!e)return"";let t;return e.split("\n").map(n=>{let i=t;return n.length>0&&(i=isNaN(i)?n.search(/\S|$/):Math.min(n.search(/\S|$/),i)),isNaN(t)&&(t=i),i?n.substring(i):n}).join("\n")}static#e=this.\u0275fac=function(t){return new(t||A)(c.LFG(c.Lbi),c.LFG(he),c.LFG(le.eN,8),c.LFG(Pt,8),c.LFG(oe,8),c.LFG(Ue.H7))};static#t=this.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac})}var Y=(()=>{return(r=Y||(Y={})).CommandLine="command-line",r.LineHighlight="line-highlight",r.LineNumbers="line-numbers",Y;var r})();const Ot=["*"];class Z{constructor(e,t,n){this.element=e,this.markdownService=t,this.viewContainerRef=n,this.error=new c.vpe,this.load=new c.vpe,this.ready=new c.vpe,this._commandLine=!1,this._clipboard=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new U.x,this.enableBasePath=!1}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,Q.R)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,t=!1){const n={decodeHtml:t,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid},i={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},s=this.enableBasePath&&this.src,a=this.src?new URL(this.src,location.origin).pathname:"",l=s?this.markdownService.parse(e,n,{baseUrl:a}):this.markdownService.parse(e,n);this.element.nativeElement.innerHTML=l,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,i,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Y.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Y.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,t){const n=e.querySelectorAll("pre");for(let i=0;i{const a=t[s];if(a){const l=this.toLispCase(s);n.item(i).setAttribute(l,a.toString())}})}toLispCase(e){const t=e.match(/([A-Z])/g);if(!t)return e;let n=e.toString();for(let i=0,s=t.length;ithis.markdownService.render(this.elementRef.nativeElement,t,this.viewContainerRef)),this.domSanitizer.bypassSecurityTrustHtml(n)}static#e=this.\u0275fac=function(t){return new(t||K)(c.Y36(Ue.H7,16),c.Y36(c.SBq,16),c.Y36(A,16),c.Y36(c.s_b,16),c.Y36(c.R0b,16))};static#t=this.\u0275pipe=c.Yjl({name:"markdown",type:K,pure:!0})}class F{static forRoot(e){return{ngModule:F,providers:[A,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:he,useValue:e&&null!=e.sanitize?e.sanitize:c.q3G.HTML}]}}static forChild(){return{ngModule:F}}static#e=this.\u0275fac=function(t){return new(t||F)};static#t=this.\u0275mod=c.oAB({type:F});static#n=this.\u0275inj=c.cJS({imports:[T.ez]})}!function(r){let e;var i;let t,n;(i=e=r.SecurityLevel||(r.SecurityLevel={})).Strict="strict",i.Loose="loose",i.Antiscript="antiscript",i.Sandbox="sandbox",function(i){i.Base="base",i.Forest="forest",i.Dark="dark",i.Default="default",i.Neutral="neutral"}(t=r.Theme||(r.Theme={})),function(i){i[i.Debug=1]="Debug",i[i.Info=2]="Info",i[i.Warn=3]="Warn",i[i.Error=4]="Error",i[i.Fatal=5]="Fatal"}(n=r.LogLevel||(r.LogLevel={}))}(Ne||(Ne={}));class q{constructor(e,t){this.markdownService=e,this.markedOptions=t,console.log("markedOptions",t),e.options=t}set viewState(e){e&&e.state?(this.content=e.state.content,this.contentUrl=e.state.contentUrl,this.contentIcon=e.state.contentIcon):(this.content=void 0,this.contentUrl=void 0,this.contentIcon=void 0)}static#e=this.\u0275fac=function(t){return new(t||q)(c.Y36(A),c.Y36(oe))};static#t=this.\u0275cmp=c.Xpm({type:q,selectors:[["porrtal-markdown-viewer"]],inputs:{viewState:"viewState"},standalone:!0,features:[c._Bn([A,{provide:he,useValue:c.q3G.HTML},le.eN,{provide:oe,useValue:{baseUrl:"https://raw.githubusercontent.com/angular/angular/main"}}]),c.jDz],decls:3,vars:3,consts:[[3,"src","enableBasePath"]],template:function(t,n){1&t&&(c.TgZ(0,"markdown"),c._uU(1),c.qZA(),c._UZ(2,"markdown",0)),2&t&&(c.xp6(1),c.hij("\n ",n.content,"\n"),c.xp6(1),c.Q6J("src",n.contentUrl)("enableBasePath",!0))},dependencies:[T.ez,F,Z,le.JF],styles:["[_nghost-%COMP%]{margin:15px}"],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4918.de9136e7e94caac6.js b/apps/n/porrtal-io-app/public/angular/4918.de9136e7e94caac6.js deleted file mode 100644 index efd9244b..00000000 --- a/apps/n/porrtal-io-app/public/angular/4918.de9136e7e94caac6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4918],{4918:(di,mt,jt)=>{jt.r(mt),jt.d(mt,{G:()=>kt,g:()=>Dt});var ct,rt,dt={exports:{}};ct=dt,void 0!==(rt=function lt(){function tt(e){if("number"==typeof e)return k.Uc.ah(e);if(null==e)return null;if(null!=Nt[e])return k.Uc.ah(Nt[e]);throw Error("Unrecognised Unit Type")}function ut(e){if("number"==typeof e)return k.Uc.ah(e);if(null==e)return null;if(null!=It[e])return k.Uc.ah(It[e]);throw Error("Unrecognised Unit Type")}function pt(e){if(e)switch(e){case"loxodrome":return 1;case"great-elliptic":return 2;case"normal-section":return 3;case"shape-preserving":return 4}return 0}function Y(e,y,f,r){if(null==f||f.B())return null;switch(f.K()){case k.sn.Point:return e.exportPoint(y,f,r);case k.sn.Polygon:return e.exportPolygon(y,f,r);case k.sn.Polyline:return e.exportPolyline(y,f,r);case k.sn.MultiPoint:return e.exportMultipoint(y,f,r);case k.sn.Envelope:return e.exportExtent(y,f,r)}return null}function wt(e,y,f,r){if(f.K()!==k.sn.Point)throw Error("Geometry not Point");return e.exportPoint(y,f,r)}function G(e,y,f){return e.convertToGEGeometry(y,f)}function T(e){var y=e.wkid;e=e.wkt;var f=at.get(y||e);return null==f&&(-1!==y&&null!=y?(f=k.Gg.create(y),at.set(y,f)):e&&(f=k.Gg.lP(e),at.set(e,f)),ft.has(y||e)&&f.QW(ft.get(y||e))),f}function Ct(e){var y;if(null==e)return null;var f=T(e);return e=f.Id(),f=f.Mn(),(y={}).tolerance=f,y.unitType=null==e?-1:e.pd,y.unitID=null==e?-1:e.Fc(),y.unitBaseFactor=null==e?0:e.ci,y.unitSquareDerivative=null==e?0:k.Uc.WF(e).Fc(),y}function qt(e,y,f,r){return null==f?null:(f=k.ac.clip(G(e,q,f),G(e,q,r),T(y)),Y(e,q,f,y))}function Bt(e,y,f,r){f=k.ac.fl(G(e,q,f),G(e,q,r),T(y)),r=[];for(var n=0;n>6)>>1},r.Tn=function(n){return 0!=(32&n)},r.PS=function(n){return 0!=(128&n)},r.zd=function(n){return 0!=(256&n)},r.zj=function(n){return 0!=(512&n)},r.Ic=function(n){return 0!=(1024&n)},r.prototype.Qf=function(){var n=this.Ja();return this.copyTo(n),n},r.prototype.ng=function(){return null},r.kg=function(n){var t=n.Ja();return n.copyTo(t),t},r.prototype.wc=function(){0<=this.QA&&(this.QA+=2147483649)},r.zx=function(n){var t=n.K();if(r.zj(t))return n.I();if(n.B())return 0;if(197==t)return 4;if(33==t)return 1;if(r.zd(t))return 2;throw e.i.ga("missing type")},r}();e.ba=f})(k||(k={})),nt=k||(k={}),zt=function(){function e(){this.y=this.x=0}return e.construct=function(y,f){var r=new e;return r.x=y,r.y=f,r},e.cl=function(y){var f=new e;return f.x=y.x,f.y=y.y,f},e.prototype.na=function(y,f){this.x=y,this.y=f},e.prototype.N=function(y){this.x=y.x,this.y=y.y},e.prototype.hq=function(y,f){return this.x===y&&this.y===f},e.prototype.Mz=function(y){return 2220446049250313e-31>=Math.abs(this.x-y.x)&&2220446049250313e-31>=Math.abs(this.y-y.y)},e.prototype.rb=function(y){return this.x===y.x&&this.y===y.y},e.prototype.Nb=function(y){return y==this||y instanceof e&&this.x==y.x&&this.y==y.y},e.prototype.sub=function(y){this.x-=y.x,this.y-=y.y},e.prototype.vc=function(y,f){this.x=y.x-f.x,this.y=y.y-f.y},e.prototype.add=function(y,f){void 0!==f?(this.x=y.x+f.x,this.y=y.y+f.y):(this.x+=y.x,this.y+=y.y)},e.prototype.Uq=function(){this.x=-this.x,this.y=-this.y},e.prototype.nt=function(y){this.x=-y.x,this.y=-y.y},e.prototype.IS=function(y,f,r){this.x=y.x*(1-r)+f.x*r,this.y=y.y*(1-r)+f.y*r},e.prototype.Dt=function(y,f){this.x=this.x*y+f.x,this.y=this.y*y+f.y},e.prototype.BW=function(y,f,r){this.x=f.x*y+r.x,this.y=f.y*y+r.y},e.prototype.scale=function(y){this.x*=y,this.y*=y},e.prototype.compare=function(y){return this.yy.y?1:this.xy.x?1:0},e.prototype.normalize=function(){var y=this.length();0==y&&(this.x=1,this.y=0),this.x/=y,this.y/=y},e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.Uk=function(){return this.x*this.x+this.y*this.y},e.ub=function(y,f){return Math.sqrt(this.zc(y,f))},e.Jy=function(y,f,r,n){return y-=r,f-=n,Math.sqrt(y*y+f*f)},e.prototype.Sh=function(y){return this.x*y.x+this.y*y.y},e.prototype.aD=function(y){return Math.abs(this.x*y.x)+Math.abs(this.y*y.y)},e.prototype.yi=function(y){return this.x*y.y-this.y*y.x},e.prototype.Ct=function(y,f){var r=-this.x*f+this.y*y;this.x=this.x*y+this.y*f,this.y=r},e.prototype.Jv=function(){var y=this.x;this.x=-this.y,this.y=y},e.prototype.HG=function(y){this.x=-y.y,this.y=y.x},e.prototype.cr=function(){var y=this.x;this.x=this.y,this.y=-y},e.prototype.su=function(){return 0(y=y.yi(f))?1:0(r=n.value())?-1:0r?-1:0=t?r+(n-r)*t:n-(n-r)*(1-t)},f.JG=function(r,n,t,i){.5>=t?(i.x=r.x+(n.x-r.x)*t,i.y=r.y+(n.y-r.y)*t):(i.x=n.x-(n.x-r.x)*(1-t),i.y=n.y-(n.y-r.y)*(1-t))},f.gT=function(r,n,t,i,h,s){.5>=h?(s.x=r+(t-r)*h,s.y=n+(i-n)*h):(s.x=t-(t-r)*(1-h),s.y=i-(i-n)*(1-h))},f}(),function(e){var y=function(f){function r(){var n=f.call(this)||this;return n.ta=0,n.oa=0,n.qa=0,n.ma=0,n.la=null,n}return J(r,f),r.prototype.bc=function(){return e.h.construct(this.ta,this.oa)},r.prototype.$p=function(n){n.x=this.ta,n.y=this.oa},r.prototype.Ec=function(n){this.gm(0,n)},r.prototype.UB=function(n,t){this.gm(0,e.h.construct(n,t))},r.prototype.Vo=function(n){this.cD(0,n)},r.prototype.setStart=function(n){this.pD(0,n)},r.prototype.yv=function(n,t){return this.Pd(0,n,t)},r.prototype.TB=function(n,t,i){this.vn(0,n,t,i)},r.prototype.xc=function(){return e.h.construct(this.qa,this.ma)},r.prototype.Vr=function(n){n.x=this.qa,n.y=this.ma},r.prototype.Rc=function(n){this.gm(1,n)},r.prototype.Sl=function(n,t){this.gm(1,e.h.construct(n,t))},r.prototype.Ro=function(n){this.cD(1,n)},r.prototype.setEnd=function(n){this.pD(1,n)},r.prototype.jv=function(n,t){return this.Pd(1,n,t)},r.prototype.JB=function(n,t,i){this.vn(1,n,t,i)},r.prototype.Eb=function(){return 1},r.prototype.B=function(){return this.Bc()},r.prototype.Pa=function(){},r.prototype.He=function(){return 0},r.prototype.Fa=function(n,t,i,h,s){return this.FM(n,t,i,h,s)},r.prototype.isIntersecting=function(n,t){return 0!=this.Br(n,t,!1)},r.prototype.ss=function(n,t){return this.tu(n,t,!1)},r.prototype.tu=function(){return null},r.prototype.Bc=function(){return!1},r.prototype.$x=function(n){if(this.wc(),null==this.la&&0=e.sa.Wa(t))throw e.i.de();var h=this.description.Rf(t);return 0<=h?(null!=this.la&&this.$x(this.description.Be.length-2),this.la[r.Ig(this.description,n)+this.description.bk(h)-2+i]):e.sa.te(t)},r.prototype.vn=function(n,t,i,h){if(this.wc(),i>=e.sa.Wa(t))throw e.i.de();var s=this.description.Rf(t);0>s&&(this.se(t),s=this.description.Rf(t)),0==t?0!=n?0!=i?this.ma=h:this.qa=h:0!=i?this.oa=h:this.ta=h:(null==this.la&&this.$x(this.description.Be.length-2),this.la[r.Ig(this.description,n)+this.description.bk(s)-2+i]=h)},r.prototype.copyTo=function(n){if(n.K()!=this.K())throw e.i.O();n.description=this.description,n.$x(this.description.Be.length-2),r.bM(this.la,n.la,2*(this.description.Be.length-2)),n.ta=this.ta,n.oa=this.oa,n.qa=this.qa,n.ma=this.ma,n.wc(),this.qp(n)},r.prototype.Vg=function(n,t){var i=new e.Oc;return this.Bc()?(i.Pa(),i):(i.pa=this.Pd(0,n,t),i.wa=i.pa,i.Nk(this.Pd(1,n,t)),i)},r.prototype.UI=function(n){this.Bc()?n.Pa():(n.pa=this.Pd(0,0,0),n.wa=n.pa,n.Nk(this.Pd(1,0,0)))},r.prototype.Vw=function(n,t){t.Pf(this.description),t.Db(this.ic(n));for(var i=1,h=this.description.Ba;it||t>=this.xa)throw e.i.ga("index out of bounds");this.oc(),i.Pf(this.description),i.B()&&i.wn();for(var h=0;ht||t>=this.I())throw e.i.de();this.oc(),this.Aa[0].uc(2*t,i)},n.prototype.Oa=function(t){var i=new e.h;return this.D(t,i),i},n.prototype.Hc=function(t,i){this.Aa[0].uc(2*t,i)},n.prototype.Db=function(t,i,h){if(0>t||t>=this.xa)throw e.i.de();this.oc();var s=this.Aa[0];void 0!==h?(s.write(2*t,i),s.write(2*t+1,h)):s.Vt(2*t,i),this.Qc(1993)},n.prototype.xz=function(){if(void 0>=this.I())throw e.i.de();this.oc();var t=this.Aa[0],i=new e.Od;return i.x=t.read(NaN),i.y=t.read(NaN),i.z=this.hasAttribute(1)?this.Aa[1].gg(void 0):e.sa.te(1),i},n.prototype.ZB=function(t){if(0>t||t>=this.I())throw e.i.de();this.se(1),this.oc(),this.Qc(1993);var i=this.Aa[0];i.write(2*t,(void 0).x),i.write(2*t+1,(void 0).y),this.Aa[1].rr(t,(void 0).z)},n.prototype.Vc=function(t,i,h){if(0>i||i>=this.xa)throw e.i.de();var s=e.sa.Wa(t);if(h>=s)throw e.i.de();this.oc();var o=this.description.Rf(t);return 0<=o?this.Aa[o].gg(i*s+h):e.sa.te(t)},n.prototype.tF=function(t,i){return this.Vc(t,i,void 0)},n.prototype.setAttribute=function(t,i,h,s){if(0>i||i>=this.xa)throw e.i.de();var o=e.sa.Wa(t);if(h>=o)throw e.i.de();this.se(t),this.oc(),t=this.description.Rf(t),this.Qc(1993),this.Aa[t].rr(i*o+h,s)},n.prototype.vb=function(t){return this.vx(),this.se(t),this.oc(),this.Aa[this.description.Rf(t)]},n.prototype.kn=function(t,i){if(null!=i&&e.sa.Vp(t)!=i.Vp())throw e.i.O();this.se(t),t=this.description.Rf(t),null==this.Aa&&(this.Aa=e.Zc.lI(this.description.Ba)),this.Aa[t]=i,this.Qc(16777215)},n.prototype.un=function(t){var i=null;if(null!=this.Aa){var h=e.fe.Kw(t,this.description);i=[];for(var s=0,o=t.Ba;sthis.xa+5?(5*this.xa+3)/4:this.xa),this.Aa[t].resize(s*h,e.sa.te(i))),st)throw e.i.O();t!=this.xa&&(this.xa=t,this.Qc(65535))},n.prototype.qm=function(t){if(!this.ck(1)){if(!this.ck(2))return 0;if(this.LT>=t)return this.ck(8)?1:2}return-1},n.prototype.Eh=function(t,i){if(this.LT=i,-1==t)this.Nf(1,!0),this.Nf(8,!0);else if(this.Nf(1,!1),this.Nf(8,!0),0==t)this.Nf(2,!1),this.Nf(4,!1);else if(1==t)this.Nf(2,!0),this.Nf(4,!1);else{if(2!=t)throw e.i.ga("internal error.");this.Nf(2,!0),this.Nf(4,!0)}},n.prototype.gM=function(){null!=this.Cb&&(this.Cb=null)},n.prototype.fD=function(t,i,h,s){if(0>t||t>=this.xa||0>i||i>=this.xa)throw e.i.ga("index out of bounds");this.oc(),s.Pf(this.description),s.B()&&s.wn();for(var o=0;ot||t>=this.xa)throw e.i.de();this.oc();var i=new e.Ta;i.Pf(this.description),i.B()&&i.wn();for(var h=0;ht||t>=this.xa)throw e.i.de();if(i.B())throw e.i.O();this.oc();for(var h=i.description,s=0;se.P.XA(this.Vm)>>1:-1!=n)?r=n:i=o,n=!0;;){if(0>i){if(-1==(o=s[7*r])){i=r,t=this.ob.Nl([-1,-1,r,t,this.il(),-1,-1]),(s=this.ob.o)[7*r]=t;break}r=o}else{if(-1==(o=s[7*r+1])){i=s[7*r+6],t=this.ob.Nl([-1,-1,r,t,this.il(),-1,-1]),(s=this.ob.o)[7*r+1]=t;break}r=o}n&&(i*=-1,n=!1)}return this.ky(t,s),-1===s[7*t+2]&&(s[7*h]=t),this.xp(i,t,h,s),t},f.prototype.AF=function(){return this.dR(this.Ne)},f.prototype.wd=function(r,n){n=-1==n?this.Ne:n,this.Tv?this.GP(r,n):this.eY(r,n)},f.prototype.search=function(r,n){for(n=this.uv(n);-1!=n;){var t=this.ao.compare(this,r,n);if(0==t)return n;n=0>t?this.nl(n):this.Zp(n)}return-1},f.prototype.DW=function(r){for(var n=this.uv(-1),t=-1;-1!=n;){var i=r.compare(this,n);if(0==i)return n;0>i?n=this.nl(n):(t=n,n=this.Zp(n))}return t},f.prototype.pJ=function(r){for(var n=this.uv(-1),t=-1;-1!=n;){var i=r.compare(this,n);if(0==i)return n;0>i?(t=n,n=this.nl(n)):n=this.Zp(n)}return t},f.prototype.ka=function(r){return this.ob.U(r,3)},f.prototype.nl=function(r){return this.ob.U(r,0)},f.prototype.Zp=function(r){return this.ob.U(r,1)},f.prototype.getParent=function(r){return this.ob.U(r,2)},f.prototype.lb=function(r){return this.ob.U(r,6)},f.prototype.xe=function(r){return this.ob.U(r,5)},f.prototype.sc=function(r){return this.ml(-1==r?this.Ne:r)},f.prototype.Gc=function(r){return this.bs(-1==r?this.Ne:r)},f.prototype.UR=function(r){return this.XF(-1==r?this.Ne:r)},f.prototype.Uj=function(r,n){this.IB(r,n)},f.prototype.uv=function(r){return this.TF(-1==r?this.Ne:r)},f.prototype.clear=function(){this.ob.oj(!1),this.Ne=-1},f.prototype.size=function(r){return this.VF(-1==r?this.Ne:r)},f.prototype.FN=function(r,n){for(var t=n[7*r],i=n[7*r+1],h=n[7*r+4];-1!=t||-1!=i;){var s=-1!=t?n[7*t+4]:2147483647;if(i=-1!=i?n[7*i+4]:2147483647,h<=Math.min(s,i))break;s<=i?this.nJ(t,n):this.mJ(r,n),t=n[7*r],i=n[7*r+1]}},f.prototype.ky=function(r,n){if(this.Tv)for(var t=n[7*r+4],i=n[7*r+2];-1!=i&&n[7*i+4]>t;)n[7*i]==r?this.nJ(r,n):this.mJ(i,n),i=n[7*r+2]},f.prototype.mJ=function(r,n){var t=n[7*r+1];n[7*t+2]=n[7*r+2],n[7*r+2]=t;var i=n[7*t];n[7*r+1]=i,-1!=i&&(n[7*i+2]=r),n[7*t]=r,-1!=(i=n[7*t+2])&&(n[7*i]==r?n[7*i]=t:n[7*i+1]=t)},f.prototype.nJ=function(r,n){var t=n[7*r+2];n[7*r+2]=n[7*t+2],n[7*t+2]=r;var i=n[7*r+1];n[7*t]=i,-1!=i&&(n[7*i+2]=t),n[7*r+1]=t,-1!=(i=n[7*r+2])&&(n[7*i]===t?n[7*i]=r:n[7*i+1]=r)},f.prototype.Rk=function(r,n){this.ob.T(r,2,n)},f.prototype.OB=function(r,n){this.ob.T(r,0,n)},f.prototype.SB=function(r,n){this.ob.T(r,1,n)},f.prototype.RB=function(r,n){this.ob.T(r,5,n)},f.prototype.fx=function(r,n){this.ob.T(r,6,n)},f.prototype.SJ=function(r,n){this.ob.T(n,0,r)},f.prototype.nX=function(r){this.ob.T(r,4,0)},f.prototype.qX=function(r,n){this.ob.T(n,5,r)},f.prototype.TF=function(r){return-1==r?-1:this.ob.U(r,0)},f.prototype.ml=function(r){return-1==r?-1:this.ob.U(r,1)},f.prototype.bs=function(r){return-1==r?-1:this.ob.U(r,2)},f.prototype.dR=function(r){return-1==r?-1:this.ob.U(r,3)},f.prototype.VF=function(r){return-1==r?0:this.ob.U(r,4)},f.prototype.XF=function(r){return this.ob.U(r,5)},f.prototype.Rw=function(){return this.ob.Nl([-1,-1,-1,void 0,this.il(),-1,-1])},f.prototype.hl=function(r){-1!=r&&this.ob.kd(r)},f.prototype.il=function(){return this.Vm=e.P.XA(this.Vm),1073741823&this.Vm},f.prototype.AD=function(r,n,t){var i=this.ob.o;if(-1==t||-1==i[7*t])return r=this.ob.Nl([-1,-1,-1,r,this.il(),-1,-1]),(i=this.ob.o)[7*t]=r,this.xp(-1,r,t,i),r;for(var h=-1==t?-1:i[7*t];;){var s=-1==n?1:this.ao.compare(this,r,h);if(0>s){if(-1==(s=this.nl(h))){n=h,r=this.ob.Nl([-1,-1,h,r,this.il(),-1,-1]),(i=this.ob.o)[7*h]=r;break}h=s}else{if(1==n&&0==s)return i[7*t+3]=h,-1;if(-1==(s=i[7*h+1])){n=i[7*h+6],r=this.ob.Nl([-1,-1,h,r,this.il(),-1,-1]),(i=this.ob.o)[7*h+1]=r;break}h=s}}return this.ky(r,i),-1===i[7*r+2]&&(i[7*t]=r),this.xp(n,r,t,i),r},f.prototype.xp=function(r,n,t,i){if(-1!=r){var h=i[7*r+5];i[7*r+5]=n}else h=-1==t?-1:i[7*t+2];i[7*n+5]=h,-1!=h&&(i[7*h+6]=n),i[7*n+6]=r,r==(-1==t?-1:i[7*t+1])&&(i[7*t+1]=n),-1==r&&(i[7*t+2]=n),i[7*t+4]=(-1==t?0:i[7*t+4])+1},f.prototype.vB=function(r,n){var t=this.ob.o,i=t[7*r+5];r=t[7*r+6],-1!=i?t[7*i+6]=r:t[7*n+1]=r,-1!=r?t[7*r+5]=i:t[7*n+2]=i,t[7*n+4]=-1===n?-1:t[7*n+4]-1},f.prototype.eY=function(r,n){this.vB(r,n);var t=this.nl(r),i=this.Zp(r),h=this.getParent(r),s=r;if(-1!=t&&-1!=i){this.Vm=e.P.XA(this.Vm);var o=1073741823=r.pa:r.wa>=this.pa},f.prototype.move=function(r){this.B()||(this.pa+=r,this.wa+=r)},f.prototype.normalize=function(){if(!isNaN(this.pa)){if(this.pa>this.wa){var r=this.pa;this.pa=this.wa,this.wa=r}isNaN(this.wa)&&this.Pa()}},f.prototype.Pa=function(){this.wa=this.pa=NaN},f.prototype.B=function(){return isNaN(this.pa)},f.prototype.$b=function(r){"number"==typeof r?this.B()?this.wa=this.pa=r:this.Nk(r):r.B()||(this.B()?(this.pa=r.pa,this.wa=r.wa):(this.pa>r.pa&&(this.pa=r.pa),this.wathis.wa&&this.Pa()))},f.prototype.Nk=function(r){rthis.wa&&(this.wa=r)},f.prototype.contains=function(r){return"number"==typeof r?r>=this.pa&&r<=this.wa:r.pa>=this.pa&&r.wa<=this.wa},f.prototype.Fa=function(r){this.B()||r.B()?this.Pa():(this.par.wa&&(this.wa=r.wa),this.pa>this.wa&&this.Pa())},f.prototype.X=function(r){this.B()||(this.pa-=r,this.wa+=r,this.wan?(this.pa=n,this.wa=r):(this.pa=r,this.wa=n)},f.prototype.Kt=function(r){return e.P.Tk(r,this.pa,this.wa)},f.prototype.S=function(){return this.wa-this.pa},f.prototype.tf=function(){return.5*(this.pa+this.wa)},f.prototype.Nb=function(r){return r==this||r instanceof f&&(!(!this.B()||!r.B())||this.pa==r.pa&&this.wa==r.wa)},f.prototype.dc=function(){return e.P.wj(e.P.wj())},f}();e.Oc=y}(k||(k={})),function(e){var y=new e.Oc,f=new e.Oc,r=function(){this.oe=null,this.pb=-1,this.tb=new e.zb,this.lA=55555555,this.Vv=this.Xv=!1,this.Wf=new e.Oc,this.Wf.FB(0,0)};e.EY=r;var n=function(){function t(i,h,s){this.g=i,this.Jk=NaN,this.IH=this.Mq=0,this.JH=NaN,this.ra=h,this.Pq=10*h,this.KH=this.LH=NaN,this.sg=!1,this.Fm=this.ht=this.No=this.Zs=this.Ys=-1,this.bA=s,this.OA=new r,this.TH=new r,e.P.truncate(3*i.gd/2)}return t.prototype.hG=function(i,h,s,o){i.oe=null===o?null:o[s[5*h]],i.Vv=null!=i.oe,i.Vv||(-1!==(o=s[5*h+2])&&this.g.hW(s[5*h],s[5*o],i.tb),i.oe=i.tb,i.Wf.FB(i.tb.ta,i.tb.qa),i.Wf.wa+=this.ra,i.tb.mI(),i.Xv=i.tb.ma==i.tb.oa,i.Xv||(i.lA=(i.tb.qa-i.tb.ta)/(i.tb.ma-i.tb.oa)))},t.prototype.JO=function(i,h){var s=i.Br(h,this.ra,!0);return 0!=s?2==s?this.Ly():this.zi():(i.$p(ht),i.Vr(et),h.$p(st),h.Vr(ot),Q.na(this.Mq,this.Jk),ht.rb(st)&&this.Jk==ht.y?0>et.compare(ot)?Q.N(et):Q.N(ot):ht.rb(ot)&&this.Jk==ht.y?0>et.compare(st)?Q.N(et):Q.N(st):st.rb(et)&&this.Jk==st.y?0>ht.compare(ot)?Q.N(ht):Q.N(ot):et.rb(ot)&&this.Jk==et.y&&(0>ht.compare(st)?Q.N(ht):Q.N(st)),i.Me(Q.y,Q.x)s&&0>i?-1:0h.qa){if(h.qa>h.ta&&h.ma-h.oa<2*this.ra&&i.xi(h.qa,h.ma,this.ra))return this.zi()}else if((h.ma-h.oa)/(h.qa-h.ta)*(i.qa-i.ta)h.ta&&h.ma-h.oa<2*this.ra&&i.xi(h.qa,h.ma,this.ra))return this.zi()}else if((h.ma-h.oa)/(h.qa-h.ta)*(i.ta-i.qa)o&&0>s?-1:0h+u?s:o.xi(i.ta,i.oa,this.ra)?this.zi():ah+u?s:o.xi(i.qa,i.ma,this.ra)?this.zi():aa?1:0)},t.prototype.Mr=function(){this.sg=!1},t.prototype.tm=function(){return this.Pi},t.prototype.VJ=function(i,h){this.Jk=i,this.Mq=h,this.ht=this.No=this.Zs=this.Ys=-1},t.prototype.compare=function(i,h,s){return this.sg?-1:(i=i.ka(s),this.Fm=s,this.ME(h,h,i,i))},t.prototype.ME=function(i,h,s,o){if(this.No==h)var a=this.OA;else this.No=h,a=this.OA,this.OA.pb=i,this.hG(a,h,this.g.ud.o,this.g.Te);if(null==u){this.ht=o;var u=this.TH;this.TH.pb=s,this.hG(u,o,this.g.ud.o,this.g.Te)}return a.Vv||u.Vv?this.IO(h,o,a,u):a.Wf.wathis.Wf.wa)return 1;if(this.je.oa==this.je.ma)return this.Fm=r,this.sg=!0,0;this.je.mI(),t=this.je.bc(),(n=new e.h).vc(this.je.xc(),t),n.cr();var i=new e.h;return i.vc(this.Iq,t),t=n.Sh(i),(t/=n.length())<10*-this.ra?-1:t>10*this.ra?1:this.je.ss(this.Iq,this.ra)&&((n=Math.abs(t))t?-1:1},f}();e.WL=y}(k||(k={})),function(e){function y(r,n,t,i){t=new Float64Array(r.subarray(t,i)),r.set(t,n)}var f=function(){function r(n){this.Pb=this.rk=!1,this.o=null;var t=n;2>t&&(t=2),this.o=new Float64Array(t),this.size=n}return r.prototype.rotate=function(n,t,i){if(this.Pb)throw e.i.ga("invalid_call");if(ti||n>i)throw e.i.O();n!=t&&i!=t&&(this.pi(n,t-n,1),this.pi(t,i-t,1),this.pi(n,i-n,1))},r.rf=function(n,t){var i=new r(n),h=i.o;if(2>n&&(n=2),0!==t)for(var s=0;st&&(i.size=t),2>(t=i.size)&&(t=2),i.o=new Float64Array(t),i.o.set(n.o.length<=t?n.o:n.o.subarray(0,t),0),i},r.prototype.Jb=function(n){0>=n||(null==this.o?this.o=new Float64Array(n):n<=this.o.length||(0this.o.length&&(i=e.P.truncate(64>n?Math.max(2*n,4):5*n/4),(i=new Float64Array(i)).set(this.o),this.o=i),i=this.o;for(var h=this.size;hthis.o.length)&&this.resize(n),this.rk)throw e.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");this.size=n},r.prototype.rr=function(n,t){this.write(n,t)},r.prototype.Cn=function(n,t,i){for(var h=this.size;th||i>s&&h!=s)return!1;for(i>h&&(i=h);ts||i%s!=0))throw e.i.O();var o=this.size;if(this.resize(o+i),h)this.o.set(n.o.subarray(t,t+i),o);else{h=i;for(var a=0;ao||h%o!=0))throw e.i.O();var u=this.size-a;if(uo&&(o=this.size),this.size+2*h>this.o.length?this.resize(this.size+2*h):this.size+=2*h,y(this.o,n+2*h,n,n+(o-n)),s)for(s=0;sn||0>t||0>h||!s&&(0>=o||t%o!=0)||i.sizethis.size)throw e.i.Hb();0i||t%i!=0)throw e.i.Hb();for(var h=t>>1,s=0;st||0>i||0>t||i+t>this.size)throw e.i.O();for(var h=t;hn||0>t||0>h)throw e.i.O();if(0!=t)for(this.size<(t<<1)+n&&this.resize((t<<1)+n),s||(n+=t-1<<1),s=s?2:-2,t+=h;hn||0>t)throw e.i.O();if(0!=t){this.size<(t<<1)+n&&this.resize((t<<1)+n),t+=0;for(var h=0;hn||0>t||0>h||this.sizen||0>t||this.size<(t>>1)+n)throw e.i.O();if(0!=t){t=0+t;for(var h=0;ht&&(t=2),this.o=new Int32Array(t),this.size=n}return r.prototype.rotate=function(n,t,i){if(this.Pb)throw e.i.ga("invalid_call");if(ti||n>i)throw e.i.O();n!=t&&i!=t&&(this.pi(n,t-n,1),this.pi(t,i-t,1),this.pi(n,i-n,1))},r.rf=function(n,t){var i=new r(n),h=i.o;if(2>n&&(n=2),0!==t)for(var s=0;st&&(i.size=t),2>(t=i.size)&&(t=2),i.o=new Int32Array(t),i.o.set(n.o.length<=t?n.o:n.o.subarray(0,t),0),i},r.prototype.Jb=function(n){0>=n||(null==this.o?this.o=new Int32Array(n):n<=this.o.length||(0this.o.length&&(i=e.P.truncate(64>n?Math.max(2*n,4):5*n/4),(i=new Int32Array(i)).set(this.o),this.o=i),i=this.o;for(var h=this.size;hthis.o.length)&&this.resize(n),this.rk)throw e.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");this.size=n},r.prototype.rr=function(n,t){this.write(n,t)},r.prototype.Cn=function(n,t,i){for(var h=this.size;th||i>s&&h!=s)return!1;for(i>h&&(i=h);ts||i%s!=0))throw e.i.O();var o=this.size;if(this.resize(o+i),h)this.o.set(n.o.subarray(t,t+i),o);else{h=i;for(var a=0;ao||h%o!=0))throw e.i.O();if(y(this.o,n+h,n,n+(a-n)),this.o==t.o&&no&&(o=this.size),this.size+2*h>this.o.length?this.resize(this.size+2*h):this.size+=2*h,y(this.o,n+2*h,n,n+(o-n)),s)for(s=0;sn||0>t||0>h||!s&&(0>=o||t%o!=0)||i.sizethis.size)throw e.i.Hb();0i||t%i!=0)throw e.i.Hb();for(var h=t>>1,s=0;st||0>i||0>t||i+t>this.size)throw e.i.O();for(var h=t;hn||0>t||0>h)throw e.i.O();if(0!=t)for(this.size<(t<<1)+n&&this.resize((t<<1)+n),s||(n+=t-1<<1),s=s?2:-2,t+=h;hn||0>t||0>h||this.sizet-n?r.mG(this.o,n,t,i):r.lB(this.o,n,t-1,i)},r.prototype.Vp=function(){return 2},r.prototype.Gc=function(){return this.o[this.size-1]},r.prototype.Jf=function(){this.resize(this.size-1)},r.prototype.XW=function(n){this.o[this.size-1]=n},r.prototype.NV=function(n){n=t&&0=i))for(;;){if(9>i-t){r.mG(n,t,i+1,h);break}var s=n[t];r.sx(n,t,i);for(var o=t,a=t;a=h(n[a],s)&&(r.sx(n,o,a),o+=1);r.sx(n,o,i),o-tt&&(t=2),this.o=new Int8Array(t),this.size=n}return r.prototype.rotate=function(n,t,i){if(this.Pb)throw e.i.ga("invalid_call");if(ti||n>i)throw e.i.O();n!=t&&i!=t&&(this.pi(n,t-n,1),this.pi(t,i-t,1),this.pi(n,i-n,1))},r.rf=function(n,t){var i=new r(n),h=i.o;if(2>n&&(n=2),0!==t)for(var s=0;st&&(i.size=t),2>(t=i.size)&&(t=2),i.o=new Int8Array(t),i.o.set(n.o.length<=t?n.o:n.o.subarray(0,t),0),i},r.prototype.Jb=function(n){0>=n||(null==this.o?this.o=new Int8Array(n):n<=this.o.length||(0this.o.length&&(i=e.P.truncate(64>n?Math.max(2*n,4):5*n/4),(i=new Int8Array(i)).set(this.o),this.o=i),i=this.o;for(var h=this.size;hthis.o.length)&&this.resize(n),this.rk)throw e.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");this.size=n},r.prototype.rr=function(n,t){this.write(n,t)},r.prototype.Cn=function(n,t,i){for(var h=this.size;th||i>s&&h!=s)return!1;for(i>h&&(i=h);ts||i%s!=0))throw e.i.O();var o=this.size;if(this.resize(o+i),h)this.o.set(n.o.subarray(t,t+i),o);else{h=i;for(var a=0;ao||h%o!=0))throw e.i.O();if(y(this.o,n+h,n,n+(a-n)),this.o==t.o&&no&&(o=this.size),this.size+2*h>this.o.length?this.resize(this.size+2*h):this.size+=2*h,y(this.o,n+2*h,n,n+(o-n)),s)for(s=0;sn||0>t||0>h||!s&&(0>=o||t%o!=0)||i.sizethis.size)throw e.i.Hb();0i||t%i!=0)throw e.i.Hb();for(var h=t>>1,s=0;st||0>i||0>t||i+t>this.size)throw e.i.O();for(var h=t;hn||0>t||0>h)throw e.i.O();if(0!=t)for(this.size<(t<<1)+n&&this.resize((t<<1)+n),s||(n+=t-1<<1),s=s?2:-2,t+=h;hn||0>t||0>h||this.sizer?-r:r},f.vi=function(r){return 3552713678800501e-30>r},f.FC=function(r,n,t){return f.R(r-n)<=t*(1+(f.R(r)+f.R(n))/2)},f.$=function(r,n){return f.FC(r,n,3552713678800501e-30)},f.AL=function(r){return 3552713678800501e-30>=f.R(r)},f.Dd=function(r){return f.AL(r)},f}();e.s=y,e.F=function(){function f(){}return f.ip=function(r,n){var t=0;return(r=y.R(r))+(n=y.R(n))!=0&&(r>n?(t=n/r,t=r*Math.sqrt(1+t*t)):(t=r/n,t=n*Math.sqrt(1+t*t))),t},f.Yq=function(r,n,t,i,h){for(var s=[0,0,0],o=[0,0,0],a=0;2>=a;a++)n[a]-=r[a],t[a]-=n[a];r=-1*((t=s[1]*o[2]-s[2]*o[1])*r[0]+(n=s[2]*o[0]-s[0]*o[2])*r[1]+(s=s[0]*o[1]-s[1]*o[0])*r[2]),i[0]=t,i[1]=n,i[2]=s,i[3]=r,o=f.qn(i),i[0]/=o,i[1]/=o,i[2]/=o,i[3]/=o,0!=h&&(o=y.Dd(s)?y.Dd(r)?y.Mb(1,n):-y.Mb(1,r):y.Mb(1,s),o*=y.Mb(1,h),i[0]*=o,i[1]*=o,i[2]*=o,i[3]*=o)},f.yx=function(r,n,t){t[0]=r[1]*n[2]-n[1]*r[2],t[1]=r[2]*n[0]-n[2]*r[0],t[2]=r[0]*n[1]-n[0]*r[1]},f.Ut=function(r,n){return r[0]*n[0]+r[1]*n[1]+r[2]*n[2]},f.qn=function(r){return f.ip(f.ip(r[0],r[1]),r[2])},f.el=function(r,n,t,i,h,s,o,a){r=f.n(r,n,t);var u=Math.cos(t);s.u=(r+h)*u*Math.cos(i),o.u=(r+h)*u*Math.sin(i),a.u=(r*(1-n)+h)*Math.sin(t)},f.eO=function(r,n,t,i,h,s,o){var a=f.ip(n,t),u=1*Math.sqrt(1-r),c=u/1;if(y.$(a,0))s.u=0,h.u=y.Mb(1.570796326794897,i),o.u=y.R(i)-u;else{s.u=Math.atan2(t,n),t=Math.atan2(1*i,u*a),s=Math.cos(t);var l=Math.sin(t);n=u*r/(1-r),r*=1,t=Math.atan2(i+n*l*l*l,a-r*s*s*s),3.141592653589793r){var t=Math.sqrt(1-r),i=(1-t)/(1+t),h=i*i,s=i*h,o=i*s,a=i*o,u=i*a,c=i*u,l=1.572916666666667*s-3.2578125*a+4.295068359375*c;r=2.142578125*o-6.071484375*u,t=3.129296875*a-11.249837239583334*c;var p=4.775276692708333*u,v=7.958636765252976*c,b=Math.cos(2*n);return n+Math.sin(2*n)*(1.5*i-.84375*s+.525390625*a-.2688395182291667*c-l+t-v+b*(2*(1.3125*h-1.71875*o+1.650146484375*u)-4*r+6*p+b*(4*l-12*t+24*v+b*(8*r-32*p+b*(16*t-80*v+b*(32*p+64*b*v))))))}for(t=1-r,i=r/2,s=(h=y.R(n))*f.av(r)/(1.570796326794897*t),o=9999,u=h,h=0;1e-16h;h++)c=f.w(r,u),a=u-(l=(a=(f.fG(u,r)-i*Math.sin(2*u)/c)/t-s)/(c=1/(c*c*c))),o=y.R(l),u=a;return 0<=n?u:-u},f.lW=function(r,n){return y.vi(n)?r:r*f.av(n)/1.570796326794897},f.ca=function(r){return 0>(r=f.kF(r,6.283185307179586))?r+6.283185307179586:3.141592653589793>y.R(r)||y.$(y.R(r),3.141592653589793)?r:r-6.283185307179586},f.kF=function(r,n){return r-Math.floor(r/n)*n},f.Ch=function(r,n){if(.006884661117170036>n){var t=(n=(1-(n=Math.sqrt(1-n)))/(1+n))*n,i=t*t;return r/(1+n)*(1+.25*t+.015625*i+.00390625*t*i)*1.570796326794897}return r*f.av(n)},f.Xq=function(r,n){var t=y.Mb(1,Math.sin(n));return n=1.570796326794897>=(n=y.R(f.kF(n,3.141592653589793)))?n:3.141592653589793-n,(y.$(n,1.570796326794897)?n:Math.atan(Math.sqrt(1-r)*Math.tan(n)))*t},f.q=function(r,n,t){if(.006884661117170036>n){var i=(n=(1-(n=Math.sqrt(1-n)))/(1+n))*n,h=n*i,s=n*h,o=n*s,a=n*o,u=n*a,c=-.7291666666666666*h+.2278645833333333*o+.03987630208333334*u,l=.615234375*s-.21533203125*a,p=-.54140625*o+.20302734375*u,v=.48876953125*a,b=-.4488699776785715*u,d=Math.cos(2*t);return r/(1+n)*((1+.25*i+.015625*s+.00390625*a)*t+Math.sin(2*t)*(-1.5*n+.1875*h+.0234375*o+.00732421875*u-c+p-b+d*(2*(.9375*i-.234375*s-.03662109375*a)-4*l+6*v+d*(4*c-12*p+24*b+d*(8*l-32*v+d*(16*p-80*b+d*(32*v+64*d*b)))))))}return r*(f.fG(t,n)-.5*n*Math.sin(2*t)/f.w(n,t))},f.w=function(r,n){return n=Math.sin(n),Math.sqrt(1-r*n*n)},f.av=function(r){return y.FC(r,1,2220446049250313e-31)?1:1>r?f.Zw(0,1-r)-r/3*f.Ww(0,1-r):NaN},f.fG=function(r,n){var t=y.Mb(1,r);r=y.R(r);var i=Math.floor(r/1.570796326794897);if(1y.R(i)&&1e-4>y.R(h)&&1e-4>y.R(s));)s=Math.sqrt(a),n+=r/((t=Math.sqrt(u))*(u+(s=Math.sqrt(o)*(s+t)+s*t))),r*=.25,o=.25*(o+s),a=.25*(a+s),u=.25*(u+s);return a=(o=i*h)-(u=s*s),3*n+r*(1+(u=o-6*u)*(.10227272727272728*u-.2142857142857143-.1730769230769231*s*(i=u+a+a))+s*(.1666666666666667*i+s*(-.4090909090909091*a+.1153846153846154*s*o)))/(t*Math.sqrt(t))},f.Zw=function(r,n){for(var t,i,h,s,o=1;i=2-((t=(r+n+o)/3)+r)/t,h=2-(t+n)/t,s=2-(t+o)/t,!(1e-4>y.R(i)&&1e-4>y.R(h)&&1e-4>y.R(s));o=.25*(o+t))t=Math.sqrt(n),i=Math.sqrt(o),r=.25*(r+(t=Math.sqrt(r)*(t+i)+t*i)),n=.25*(n+t);return(1+(.04166666666666666*(r=i*h-s*s)-.1-.06818181818181818*(n=i*h*s))*r+.07142857142857142*n)/Math.sqrt(t)},f.Sw=function(r,n){if(y.vi(r)||0==n||y.$(y.R(n),1.570796326794897))return n;if(.006884661117170036>r){var t=r*r,i=r*t,h=r*i,s=r*h,o=r*s,a=r*o,u=-(.02708333333333333*i+.03430059523809524*h+.03149181547619048*s+.02634359154541446*o+.02156896735835538*a),c=.007669890873015873*h+.01299603174603175*s+.0148051353064374*o+.01454454953803912*a,l=-(.002275545634920635*s+.004830845032667949*o+.006558395368616723*a),p=.0006957236677288761*o+.001775193002406544*a,v=-.000217324089394402*a,b=Math.cos(2*n);return n+Math.sin(2*n)*(-(.5*r+.2083333333333333*t+.09375*i+.04878472222222222*h+.02916666666666667*s+.01938905423280423*o+.01388255931712963*a)-u+l-v+b*(2*(.1041666666666667*t+.0875*i+.06050347222222222*h+.04151785714285714*s+.02958958540013228*o+.02203667534722222*a)-4*c+6*p+b*(4*u-12*l+24*v+b*(8*c-32*p+b*(16*l-80*v+b*(32*p+64*b*v))))))}return 0==n||y.$(y.R(n),1.570796326794897)?t=n:(h=(i=Math.sqrt(r))*Math.sin(n),t=Math.tan(.7853981633974483+n/2)*Math.pow((1-h)/(1+h),i/2),t=2*Math.atan(t)-1.570796326794897),t},f.tO=function(r,n){if(y.vi(r)||0==n||y.$(y.R(n),1.570796326794897))return n;if(.006884661117170036>r){var t=r*(p=r*(l=r*(b=r*r))),i=r*(v=r*t),h=.05833333333333333*l+.07232142857142858*p+.05634300595238095*t+.0355325796406526*v+.020235546186067*i,s=.02653149801587302*p+.04379960317460317*t+.0429211791776896*v+.03255384637546096*i,o=.01294022817460318*t+.02668104344536636*v+.03155651254609588*i,a=.00659454790965208*v+.0163075268674227*i,u=.003463473736911237*i,c=Math.cos(2*n);return n+Math.sin(2*n)*(.5*r+.2083333333333333*b+.08333333333333333*l+.03611111111111111*p+.01875*t+.01195601851851852*v+.008863673941798942*i-h+o-u+c*(2*(.1458333333333333*b+.1208333333333333*l+.07039930555555556*p+.03616071428571429*t+.01839451058201058*v+.01017113095238095*i)-4*s+6*a+c*(4*h-12*o+24*u+c*(8*s-32*a+c*(16*o-80*u+c*(32*a+64*c*u))))))}var l=Math.sqrt(r),p=l/2,v=Math.tan(.7853981633974483+n/2);r=0,h=1;for(var b=n;0!=h;b=i)t=l*Math.sin(b),i=v*Math.pow((1+t)/(1-t),p),i=2*Math.atan(i)-1.570796326794897,r++,(y.$(i,b)||3e4this.Mk&&(this.Mk=0);var t=this.Re.getType();if(this.eH=t==e.Tc.PE_TYPE_PROJCS?2:1,t==e.Tc.PE_TYPE_PROJCS&&!r.loadConstants())throw e.i.O("PeProjcs.loadConstants failed");n=t==e.Tc.PE_TYPE_GEOGCS?this.Re:this.Re.getGeogcs(),t!=e.Tc.PE_TYPE_GEOGCS&&e.qf.getCode(n),this.Go=r.getUnit(),this.MH=n.getPrimem().getLongitude(),this.rH=r=n.getUnit().getUnitFactor(),r=Math.PI/(180*r),1e-10>Math.abs(r-1)&&(r=1),this.BA=r,0!=(t&e.Tc.PE_TYPE_PROJCS)?(this.CA=1/(n=this.Re).getUnit().getUnitFactor(),this.uw=.001/this.Re.getUnit().getUnitFactor(),this.vw=e.Eg.generate(n,e.Eg.PE_PCSINFO_OPTION_NONE),this.Bl=this.vw.isPannableRectangle(),this.Xz=e.Ab.lN(this.vw.getCentralMeridian(),this.BA)):(this.FA=this.Bl=!0,this.CA=0,t=1/n.getUnit().getUnitFactor(),this.uw=.001/n.getDatum().getSpheroid().getAxis()*t,this.Xz=0),this.Bl&&(this.wx(),this.yK(),this.jY(),this.xK(),this.hY(),this.iY())}return f.prototype.cs=function(){return this.Mk},f.prototype.mk=function(){return this.vw},f.Ky=function(r,n){return r==n||null!=r&&null!=n&&0==r.Mk&&0==n.Mk&&r.Cs===n.Cs},f.prototype.Xc=function(){return this.Bl},f.prototype.ih=function(r){r.L(this.uo)},f.prototype.rv=function(){return this.uo.v},f.prototype.qv=function(){return this.uo.C},f.prototype.BR=function(r){r.L(this.ww)},f.prototype.hY=function(){var r=this.Re.getType();if(r==e.Tc.PE_TYPE_PROJCS){r=this.Re;var n=this.mk().getCentralMeridian(),t=r.getGeogcs();if(null==t)throw e.i.ga("internal error");n=[[n+(t=1/t.getUnit().getUnitFactor()*Math.PI),0]],e.gj.geogToProj(r,1,n),n=n[0][0],t=r.getParameters()[e.Tc.PE_PARM_X0].getValue();var i=this.ol();r=new e.l,i.A(r),n=(i=Math.abs(n-t))+t,t=-1*i+t,i=r.H,r=r.G;var h=new e.l;h.L(t,r,n,i),null==this.uo&&(this.uo=h)}else{if(r!=e.Tc.PE_TYPE_GEOGCS)throw e.i.ga("internal error");t=1/this.Re.getUnit().getUnitFactor()*Math.PI,(r=new e.l).L(-t,-t/2,t,t/2),null==this.uo&&(this.uo=r)}},f.prototype.iY=function(){var r=this.Re.getType();if(r==e.Tc.PE_TYPE_PROJCS){var n=this.Re;if(r=this.mk().getCentralMeridian(),null==(n=n.getGeogcs()))throw e.i.ga("internal error");n=1/n.getUnit().getUnitFactor()*Math.PI;var t=this.Xr(),i=new e.l;t.A(i),(t=new e.l).L(r-n,i.G,r+n,i.H),null==this.ww&&(this.ww=t)}else{if(r!=e.Tc.PE_TYPE_GEOGCS)throw e.i.ga("internal error");n=1/this.Re.getUnit().getUnitFactor()*Math.PI,(r=new e.l).L(-n,-n/2,n,n/2),null==this.ww&&(this.ww=r)}},f.prototype.bf=function(){return this.BA},f.prototype.rm=function(){return this.CA},f.prototype.Xr=function(){return this.Bl?this.wl:this.wl??(this.wx(),this.wl)},f.prototype.Yr=function(){return this.Bl?null:(null!=this.wl||this.wx(),this.TG)},f.prototype.wx=function(){if(this.Re.getType()==e.Tc.PE_TYPE_PROJCS){var r=this.Re,n=r.getGeogcs(),t=r.horizonGcsGenerate();if(null!=t){var i=t[0].getNump(),h=t[0].getKind();r=0u&&l.L(t=-400*s,l.G,t+5*a,l.H),t=new e.Hh(l),null==this.wl&&(this.wl=t,this.Kv=r);else{if(u=new e.Ea,a=this.mk().isGcsHorizonMultiOverlap(),l=e.iu.XE(n,e.ju.Integer64),a){for(u=new e.bL,c=e.Ih.local().W(u,l,null),v=0;vthis.us&&(this.us=0),this.Go=n=this.FT.getUnit(),this.DH=1/n.getUnitFactor(),e.qf.getCode(r)}return f.Ky=function(r,n){return r==n||null!=r&&null!=n&&0==r.us&&0==n.us&&r.Cs===n.Cs},f.prototype.cs=function(){return this.us},f}();e.KL=y}(k||(k={})),function(e){e.$g=function(){function y(){}return y.ub=function(f,r,n,t,i,h,s,o){if(null!=h||null!=s||null!=o){t=e.F.ca(t),r=e.F.ca(r),n=e.F.ca(n),i=e.F.ca(i),1.570796326794897n?t:e.F.ca(3.141592653589793-t):Math.atan2(l*b,u*p-c*l*v)),null!=o&&(e.s.$(e.s.R(i),1.570796326794897)?o.u=0>i?r:e.F.ca(3.141592653589793-r):(o.u=Math.atan2(u*b,p*u*v-l*c),o.u=e.F.ca(o.u+3.141592653589793)))}}},y.sf=function(f,r,n,t,i,h,s){if(null!=h||null!=s){r=e.F.ca(r),n=e.F.ca(n),1.570796326794897p?i:e.F.ca(3.141592653589793-i):r:e.s.$(e.s.R(n),1.570796326794897)&&e.s.$(f,3.141592653589793)?0>n?i:e.F.ca(3.141592653589793-i):e.F.ca(r+Math.atan2(l*a,u*t-c*l*o)))}},y}()}(k||(k={})),function(e){e.Yk=function(){function y(){}return y.ub=function(f,r,n,t,i,h,s,o,a){var u=new e.ha(0),c=new e.ha(0),l=[0,0,0],p=[0,0,0],v=[0,0,0],b=new e.ha(0),d=new e.ha(0),g=new e.ha(0),x=new e.ha(0),m=new e.ha(0);if(null!=s||null!=o||null!=a)if(e.s.vi(r))e.$g.ub(f,n,t,i,h,s,o,a);else{i=e.F.ca(i),n=e.F.ca(n);var w=e.F.ca(i-n);if(e.s.$(t,h)&&(e.s.$(n,i)||e.s.$(e.s.R(t),1.570796326794897)))null!=s&&(s.u=0),null!=o&&(o.u=0),null!=a&&(a.u=0);else{if(e.s.$(t,-h)){if(e.s.$(e.s.R(t),1.570796326794897))return null!=s&&(s.u=2*e.F.Ch(f,r)),null!=o&&(o.u=e.F.ca(0w){j=1;var M=n;n=i,i=M,M=t,t=h,h=M}w=e.F.pt(r,t);var A=e.F.pt(r,h);null==o&&null==a||(e.$g.ub(f,n,w,i,A,null,u,c),u=Math.atan2(Math.sin(u.u)*Math.cos(t-w),Math.cos(u.u)),c=Math.atan2(Math.sin(c.u)*Math.cos(h-A),Math.cos(c.u)),0!=j&&(M=u,u=c,c=M),null!=o&&(o.u=u),null!=a&&(a.u=c)),null!=s&&(e.F.el(1,r,t,n,0,g,x,m),l[0]=g.u,l[1]=x.u,l[2]=m.u,e.F.el(1,r,h,i,0,g,x,m),p[0]=g.u,p[1]=x.u,p[2]=m.u,v[0]=l[1]*p[2]-p[1]*l[2],v[1]=-(l[0]*p[2]-p[0]*l[2]),v[2]=l[0]*p[1]-p[0]*l[1],r=1-e.F.w(r,e.F.Xq(r,e.F.Sj(r,Math.acos(v[2]/Math.sqrt(v[0]*v[0]+v[1]*v[1]+v[2]*v[2]))))),r*=2-r,o=Math.atan2(-v[1],-v[0]),v=e.F.ca(o-1.570796326794897),o=e.F.ca(o+1.570796326794897),v=e.s.R(e.F.ca(n-v))<=e.s.R(e.F.ca(n-o))?v:o,e.$g.ub(1,v,0,n,w,b,null,null),e.$g.ub(1,v,0,i,A,d,null,null),3.141592653589793i&&(i=e.s.R(i),h=e.F.ca(h+3.141592653589793)),n=e.F.ca(n),t=e.F.ca(t),1.570796326794897=e.s.R(h)?1:-1);h=e.F.ca(n+Math.atan(Math.tan(h)*-Math.sin(g))),e.$g.ub(f,h,0,n,g,null,c,null),g=e.s.R(1.570796326794897-e.s.R(c.u)),g=e.F.Sj(r,g),g=1-e.F.w(r,e.F.Xq(r,g)),g*=2-g,e.F.el(1,r,0,h,0,v,b,d),l[0]=v.u,l[1]=b.u,l[2]=d.u,e.F.el(1,r,t,n,0,v,b,d),p[0]=v.u,p[1]=b.u,p[2]=d.u,t=Math.acos((l[0]*p[0]+l[1]*p[1]+l[2]*p[2])/Math.sqrt(p[0]*p[0]+p[1]*p[1]+p[2]*p[2])),t=e.F.Sj(g,t),i=0<(t=e.F.q(f,g,t)+i*x)?c.u:e.F.ca(c.u+3.141592653589793),f=e.s.R(t)/e.F.Ch(f,g)*1.570796326794897,f=e.F.Tq(g,f),f=e.F.pt(g,f),e.$g.sf(1,h,0,f,i,s,u),null!=o&&(a=u.u),null!=o&&(o.u=e.F.Sj(r,a))}},y}()}(k||(k={})),function(e){e.eu=function(){function y(){}return y.ub=function(f,r,n,t,i,h,s,o,a){var u=0,c=0,l=0;if(null!=s||null!=o||null!=a)if(e.s.vi(r))e.$g.ub(f,n,t,i,h,s,o,a);else{var p=e.F.ca(i-n);if(e.s.$(t,h)&&(e.s.Dd(p)||e.s.$(e.s.R(t),1.570796326794897)))null!=s&&(s.u=0),null!=o&&(o.u=0),null!=a&&(a.u=0);else{if(e.s.$(t,-h)){if(e.s.$(e.s.R(t),1.570796326794897))return null!=s&&(s.u=2*e.F.Ch(f,r)),null!=o&&(o.u=e.F.ca(0=N&&!e.s.$(I,j));if(0!=z)v=(b*=u)*(256+b*(b*(74-47*b)-128))/1024,null!=s&&(s.u=d*(1+b*(4096+b*(b*(320-175*b)-768))/16384)*(B-v*D*(c+v/4*(P*(2*l-1)-v/6*c*(4*D*D-3)*(4*l-3))))),null!=o&&(o.u=e.s.$(e.s.R(t),1.570796326794897)?0>t?i:e.F.ca(3.141592653589793-i):Math.atan2(m*A,r*w-x*m*M)),null!=a&&(e.s.$(e.s.R(h),1.570796326794897)?a.u=0>h?n:e.F.ca(3.141592653589793-n):(a.u=Math.atan2(r*A,r*w*M-x*m),a.u=e.F.ca(a.u+3.141592653589793)));else{j=e.s.Mb(3.141592653589793,p),P=x*w-r*m,B=Math.acos(P),D=Math.sin(B),u=1,N=C=0;do{l=C,M=1-.25*(C=v*(u*=u)*(1+v+v*v))+.1875*(c=v*v*(M=u*u)*(1+2.25*v))-.1953125*(z=v*v*v*M*u),C=.25*C-.25*c+.29296875*z,A=.03125*c-.05859375*z,z*=.00651041666666667,1=N&&!e.s.$(l,C));null!=s&&(M=1+(b*=u*=u)*(4096+b*(b*(320-175*b)-768))/16384,e.s.$(t,-h)?s.u=3.141592653589793*d*M:(c=P-2*x*w/u,u=Math.acos(c),P=Math.cos(2*u),I=Math.cos(3*u),s.u=d*(M*B+b*(b*(128+b*(35*b-60))-512)/2048*D*c+b*(5*b-4)/6144*b*b*Math.sin(2*B)*P+z*Math.sin(3*B)*I+-762939453125e-16*b*b*b*b*Math.sin(4*B)*Math.cos(4*u)))),null!=o&&(e.s.Dd(t)&&e.s.Dd(h)?(u=Math.sqrt(1-C*C),o.u=Math.acos(u),0>p&&(o.u*=-1)):e.s.$(e.s.R(t),1.570796326794897)?o.u=0>t?i:e.F.ca(3.141592653589793-i):(s=C/r,d=Math.sqrt(1-s*s),0>r*w-x*m*Math.cos(j)&&(d*=-1),o.u=Math.atan2(s,d),e.s.$(t,-h)&&e.s.R(e.F.ca(n-i))>3.141592653589793*(1-v*Math.cos(t))&&(0e.s.R(o.u)||0>t&&1.570796326794897h?n:e.F.ca(3.141592653589793-n):(p=C/m,s=Math.sqrt(1-p*p),d=Math.sin(j/2),0>Math.sin(g-f)-2*r*w*d*d&&(s*=-1),a.u=Math.atan2(p,s),a.u=e.F.ca(a.u+3.141592653589793),e.s.$(t,-h)&&!e.s.Dd(t)&&!e.s.$(e.s.R(t),1.570796326794897)&&e.s.R(e.F.ca(n-i))>3.141592653589793*(1-v*Math.cos(t))&&(null!=o?d=o.u:(s=C/r,d=Math.sqrt(1-s*s),0>r*w-x*m*Math.cos(j)&&(d*=-1),d=Math.atan2(s,d),e.s.$(t,-h)&&e.s.R(e.F.ca(n-i))>3.141592653589793*(1-v*Math.cos(t))&&(0e.s.R(d)||0>t&&1.570796326794897=e.s.R(d)&&1.570796326794897e.s.R(a.u))&&(a.u=-1*e.F.ca(a.u+3.141592653589793))))}}}},y.sf=function(f,r,n,t,i,h,s,o){if(null!=s||null!=o)if(e.s.vi(r))e.$g.sf(f,n,t,i,h,s,o);else if(h=e.F.ca(h),e.s.$(e.s.R(t),1.570796326794897)||e.s.Dd(h)||e.s.$(e.s.R(h),3.141592653589793))e.Yk.sf(f,r,n,t,i,h,s,o);else{var a=1.570796326794897==e.s.R(h)?0:Math.cos(h),u=3.141592653589793==e.s.R(h)?0:Math.sin(h);e.s.$(e.s.R(t),1.570796326794897)&&(n=0),h=1-Math.sqrt(1-r);var c=e.F.Xq(r,t);t=1.570796326794897==e.s.R(c)?0:Math.cos(c);var l=Math.sin(c);c=Math.atan2(Math.tan(c),a);var p=t*u,v=p*p,b=1-v,d=r/(1-r)*b,g=(r=d*(256+d*(d*(74-47*d)-128))/1024)/4,x=r/6,m=i/(f*(1-h)*(1+d*(4096+d*(d*(320-175*d)-768))/16384)),w=m;do{var j=w;i=1.570796326794897==e.s.R(w)?0:Math.cos(w);var M=(d=3.141592653589793==e.s.R(w)?0:Math.sin(w))*d;w=r*d*((f=Math.cos(2*c+w))+g*(i*(2*(w=f*f)-1)-x*f*(4*M-3)*(4*w-3)))+m}while(!e.s.$(j,w));i=1.570796326794897==e.s.R(w)?0:Math.cos(w),d=3.141592653589793==e.s.R(w)?0:Math.sin(w),null!=s&&(u=Math.atan2(d*u,t*i-l*d*a),b=h/16*b*(4+h*(4-3*b)),f=Math.cos(2*c+w),s.u=e.F.ca(n+(u-(1-b)*h*p*(w+b*d*(f+b*i*(2*f*f-1)))))),null!=o&&(b=l*d-t*i*a,b=(1-h)*Math.sqrt(v+b*b),o.u=Math.atan2(l*i+t*d*a,b))}},y}()}(k||(k={})),function(e){e.KC=function(){function y(){}return y.ub=function(f,r,n,t,i,h,s,o,a){var u=e.F.ca(i-n),c=e.s.$(e.s.R(t),1.570796326794897),l=e.s.$(e.s.R(h),1.570796326794897);if(e.s.$(t,h)&&(e.s.Dd(u)||c))null!=s&&(s.u=0),null!=o&&(o.u=0),null!=a&&(a.u=0);else{if(e.s.vi(r)){var p=Math.sin(t),v=Math.sin(h);p=Math.sqrt((1+p)/(1-p)),v=Math.sqrt((1+v)/(1-v)),p=Math.log(v)-Math.log(p),p=Math.atan2(u,p),null!=s&&(s.u=e.s.$(t,h)?e.s.R(f*Math.cos(t)*u):e.s.R((f*h-f*t)/Math.cos(p)))}else v=e.F.Sw(r,h),p=Math.sin(e.F.Sw(r,t)),v=Math.sin(v),p=Math.sqrt((1+p)/(1-p)),v=Math.sqrt((1+v)/(1-v)),p=Math.log(v)-Math.log(p),p=Math.atan2(u,p),null!=s&&(e.s.$(t,h)?s.u=e.s.R(f*u*Math.cos(t)/e.F.w(r,t)):(u=e.F.q(f,r,t),f=e.F.q(f,r,h),s.u=e.s.R((f-u)/Math.cos(p))));null==o&&null==a||(s=e.F.ca(p+3.141592653589793),c&&l||!c&&!l||(c?p=0>t?i:e.F.ca(3.141592653589793-i):l&&(s=0>h?n:e.F.ca(3.141592653589793-n))),null!=o&&(o.u=p),null!=a&&(a.u=s))}},y.sf=function(f,r,n,t,i,h,s,o){h=e.F.ca(h),0>i&&(i=e.s.R(i),h=e.F.ca(h+3.141592653589793)),e.s.vi(r)?e.s.$(e.s.R(t),1.570796326794897)?(n=0>t?h:e.F.ca(3.141592653589793-h),3.141592653589793>=(h=i/f%6.283185307179586)?f=t-e.s.Mb(h,t):(n=e.F.ca(n+3.141592653589793),f=-t+e.s.Mb(h-3.141592653589793,t))):e.s.$(e.s.R(h),1.570796326794897)?(n=e.F.ca(n+e.s.Mb(i,h)/(f*Math.cos(t))),f=t):(f=t+i*Math.cos(h)/f,1.570796326794897t?h:e.F.ca(3.141592653589793-h),h=i/e.F.lW(f,r),3.141592653589793>=(h%=6.283185307179586)?f=t-e.s.Mb(h,t):(n=e.F.ca(n+3.141592653589793),f=-t+e.s.Mb(h-3.141592653589793,t)),f=e.F.Tq(r,f)):e.s.$(e.s.R(h),1.570796326794897)?(n=e.F.ca(n+e.s.Mb(i,h)*e.F.w(r,t)/(f*Math.cos(t))),f=t):(f=1.570796326794897*(i*Math.cos(h)+e.F.q(f,r,t))/e.F.Ch(f,r),1.570796326794897Math.PI||Math.abs(t.y)>.5*Math.PI||Math.abs(i.y)>.5*Math.PI||(Math.abs(t.y)==.5*Math.PI||Math.abs(i.y)==.5*Math.PI)&&t.x!=i.x)return NaN;if(h=r.YA(h,Math.min(t.x,i.x),Math.max(t.x,i.x)),!new e.Oc(t.x,i.x).contains(h))return NaN;var s=y.construct(t);if(i=y.construct(i),s=r.$u(n,s),i=r.$u(n,i),(i=s.YE(i)).z.rg())return t.y;var o=new e.Xb;o.set(i.x),o.lm(i.z),o.Po(-1);var a=new e.Xb;a.set(i.y),a.lm(i.z),a.Po(-1);var u=new e.Xb;return u.set(a),u.Bg(a),(s=new e.Xb).set(o),s.Bg(o),s.add(u),s.sqrt(),s.rg()||o.rg()&&a.rg()?t.y:(t=Math.atan2(a.value(),o.value()),t=Math.atan2(s.value()*Math.cos(t-h),1-n),h=r.yP(n,e.h.construct(h,t)),n=new e.Od(h.x,h.y,-h.z),h=i.value().Sh(h),n=i.value().Sh(n),Math.abs(n)Math.PI||Math.abs(t.y)>.5*Math.PI||Math.abs(i.y)>.5*Math.PI||(Math.abs(t.y)==.5*Math.PI||Math.abs(i.y)==.5*Math.PI)&&t.x!=i.x||Math.abs(h)>=.5*Math.PI||0h&&i.y>h||0>t.y&&0>i.y&&t.yMath.abs(s[1]-t.x)&&(t=s[0],s[0]=s[1],s[1]=t)),h))},r.YA=function(n,t,i){return n>i?n-=2*(t=Math.ceil((n-i)/(2*Math.PI)))*Math.PI:ni.x?(i.x-=i.x%360,-180>i.x&&(i.x+=360)):180i.y&&(i.y=-90);for(var h=-180,s=180,o=(f=40)-1,a=(r=(f+31)/32)-1;0<=a;a--)for(var u=o-32*a,c=Math.min(32,f-32*a),l=1;l=p?(t[a]|=1<=(p=.5*(s+h))?(t[a]|=1<>h&31;if(31<(h+=5)){var a=37-h;o&=(1<r)for(s=0;s=r[0]?r:'"'+r.trim()+'"'}var f=[];e.SC=function(){function r(){}return r.zQ=function(n){try{for(var t=0;tn||n>this.Ba)throw e.i.O();return this.dg[n]},r.prototype.Rf=function(n){return this.wh[n]},r.gz=function(n){return r.EM[n]},r.Vp=function(n){return r.NM[n]},r.Wa=function(n){return r.mM[n]},r.prototype.hasAttribute=function(n){return 0<=this.wh[n]},r.prototype.dG=function(){return this.hasAttribute(1)},r.te=function(n){return r.$C[n]},r.prototype.GR=function(n){return this.Xs[n]},r.yG=function(n,t){return r.$C[n]===t},r.prototype.Nb=function(n){return this===n},r.prototype.Cn=function(){for(var n=e.P.Vh(this.dg[0]),t=1;t++o&&f(s,u,h.gu),c[0]?a?u=o:(c=s.c,u=s.e+u+1):++u;c.lengths.Cd&&c[0]?"-":"")+(1u?"e":"e+")+u:s.toString()}function f(s,o,a,u){var c=s.c,l=s.e+o+1;if(1===a?u=5<=c[l]:2===a?u=5l||void 0!==c[l+1]||1&c[l-1]):3===a?u=u||void 0!==c[l]||0>l:(u=!1,0!==a&&r("!Big.RM!")),1>l||!c[0])u?(s.e=-o,s.c=[1]):s.c=[s.e=0];else{if(c.length=l--,u)for(;9<++c[l];)c[l]=0,l--||(++s.e,c.unshift(1));for(l=c.length;!c[--l];c.pop());}return s}function r(s){throw(s=Error(s)).name="BigError",s}var n=-7,t=21,i=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=function(){function s(o){if(o instanceof s)this.Cd=o.Cd,this.e=o.e,this.c=o.c.slice();else{var a,u,c;for(0===o&&0>1/o?o="-0":i.test(o+="")||r(NaN),this.Cd="-"==o.charAt(0)?(o=o.slice(1),-1):1,-1<(a=o.indexOf("."))&&(o=o.replace(".","")),0<(u=o.search(/e/i))?(0>a&&(a=u),a+=+o.slice(u+1),o=o.substring(0,u)):0>a&&(a=o.length),u=0;"0"==o.charAt(u);u++);if(u==(c=o.length))this.c=[this.e=0];else{for(;"0"==o.charAt(--c););for(this.e=a-u-1,this.c=[],a=0;u<=c;this.c[a++]=+o.charAt(u++));}}}return s.prototype.abs=function(){var o=new s(this);return o.Cd=1,o},s.prototype.cmp=function(o){var a=this.c,u=(o=new s(o)).c,c=this.Cd,l=o.Cd,p=this.e,v=o.e;if(!a[0]||!u[0])return a[0]?c:u[0]?-l:0;if(c!=l)return c;if(o=0>c,p!=v)return p>(v^o)?1:-1;for(c=-1,l=(p=a.length)<(v=u.length)?p:v;++c(u[c]^o)?1:-1;return p==v?0:p>(v^o)?1:-1},s.prototype.lm=function(o){var a=this.c,u=(o=new s(o)).c,c=this.Cd==o.Cd?1:-1,l=s.tr;if((l!==~~l||0>l||1e6A?0:A,b.unshift(0);m++v;v++){if(p!=(m=x.length))var z=p>m?1:-1;else{var N=-1;for(z=0;++Nx[N]?1:-1;break}}if(!(0>z))break;for(o=m==p?u:b;m;){if(x[--m]A&&f(w,l,s.gu,void 0!==x[0]),w},s.prototype.aS=function(){return 0this.cmp(0)},s.prototype.kt=function(o){var a,u=this.Cd,c=(o=new s(o)).Cd;if(u!=c)return o.Cd=-c,this.oI(o);var l=this.c.slice(),p=this.e,v=o.c,b=o.e;if(!l[0]||!v[0])return v[0]?(o.Cd=-c,o):new s(l[0]?this:0);if(u=p-b){for((a=0>u)?(u=-u,p=l):(b=p,p=v),p.reverse(),c=u;c--;p.push(0));p.reverse()}else for(p=((a=l.lengthu;){if(l[--p]c.length-p.length&&(u=p,p=c,c=u),a=p.length,u=0;a;)u=(c[--a]=c[a]+p[a]+u)/10|0,c[a]%=10;for(u&&(c.unshift(u),++l),a=c.length;0==c[--a];c.pop());return o.c=c,o.e=l,o},s.prototype.pow=function(o){var a=this,u=new s(1),c=u,l=0>o;for((o!==~~o||-1e6>o||1e6>=1;)a=a.nr(a);return l?u.lm(c):c},s.prototype.round=function(o,a){var u=this;return null==o?o=0:(o!==~~o||0>o||1e6a&&r(NaN),0==(a=Math.sqrt(this.toString()))||a==1/0?((a=o.join("")).length+u&1||(a+="0"),(o=new s(Math.sqrt(a).toString())).e=((u+1)/2|0)-(0>u||1&u)):o=new s(a.toString()),a=o.e+(s.tr+=4);do{o=c.nr((u=o).oI(this.lm(u)))}while(u.c.slice(0,a).join("")!==o.c.slice(0,a).join(""));return f(o,s.tr-=4,s.gu),o},s.prototype.nr=function(o){var a=this.c,u=(o=new s(o)).c,c=a.length,l=u.length,p=this.e,v=o.e;if(o.Cd=this.Cd==o.Cd?1:-1,!a[0]||!u[0])return new s(0*o.Cd);if(o.e=p+v,cp;)l=b[v]+u[p]*a[v-p-1]+l,b[v--]=l%10,l=l/10|0;b[v]=(b[v]+l)%10}for(l&&++o.e,b[0]||b.shift(),p=b.length;!b[--p];b.pop());return o.c=b,o},s.prototype.toString=function(){var o=this.e,a=this.c.join(""),u=a.length;if(o<=n||o>=t)a=a.charAt(0)+(1o?"e":"e+")+o;else if(0>o){for(;++o;a="0"+a);a="0."+a}else if(0u)for(o-=u;o--;a+="0");else othis.Cd&&this.c[0]?"-"+a:a},s.prototype.toExponential=function(o){return null==o?o=this.c.length-1:(o!==~~o||0>o||1e6=o&&(c=y(this,this.e+o),0>this.Cd&&this.c[0]&&0>c.indexOf("-")&&(c="-"+c));return n=a,t=u,c||r("!toFix!"),c},s.prototype.toPrecision=function(o){return null==o?this.toString():((o!==~~o||1>o||1e6h.get(p)?(h.set(a,2147483647),a=p):h.set(p,2147483647),u++;else{if(0==(1&u))h.set(a,2147483647);else if(n)return null!=t&&(t[0]=!0),null;o.N(l),a=p,u=1}if(0==(1&u))h.set(a,2147483647);else if(n)return null!=t&&(t[0]=!0),null;if(!n)for(h.Wd(0,h.size,function(b,d){return b-d}),p=0,v=h.size;pt-n)i.qr(n,t,r);else{var h=!0;try{for(var s=1/0,o=-1/0,a=n;ao&&(o=u)}if(this.reset(t-n,s,o,t-n)){for(a=n;ah&&i.qr(n+h,n+t,r);100r||t==n||(r=Math.min(f.cL,r),this.zf.Jb(r),this.zf.resize(r),this.zf.Yj(0,0,this.zf.size),this.zH=n,this.As.resize(i),this.Gs=(t-n)/(r-1),0))},f.prototype.uF=function(r){return e.P.truncate((r-this.zH)/this.Gs)},f.cL=65536,f}();e.Zt=y}(k||(k={})),function(e){var y,f;(f=y||(y={}))[f.enum_line=1]="enum_line",f[f.enum_arc=2]="enum_arc",f[f.enum_dummy=4]="enum_dummy",f[f.enum_concave_dip=8]="enum_concave_dip",f[f.enum_connection=3]="enum_connection";var r=function(){function s(){}return s.Su=function(o,a,u,c,l,p){var v=new s;return v.Km=new e.h,v.Xm=new e.h,v.cw=new e.h,v.Km.N(o),v.Xm.N(a),v.cw.N(u),v.Eo=c,v.sh=l,v.uh=p,v},s.construct=function(o,a,u,c){var l=new s;return l.Km=new e.h,l.Xm=new e.h,l.cw=new e.h,l.Km.N(o),l.Xm.N(a),l.cw.Sc(),l.Eo=4,l.sh=u,l.uh=c,l},s}(),n=function(){function s(o,a,u,c,l,p){this.$v=null,this.za=0,this.zA=o,this.XH=this.VH=0,this.La=a,this.Oj=u,this.xk=c,this.Fq=l,this.Vb=p}return s.prototype.next=function(){for(var o=new e.Ta;;){if(this.za==this.zA.I())return null;if(this.zA.we(this.za,o),this.za++,!o.B())break}var a=!1;if(null==this.$v&&(this.VH=o.Ng(),this.XH=o.kh(),this.$v=h.buffer(o,this.La,this.Oj,this.xk,this.Fq,this.Vb),a=!0),this.zac)throw e.i.O();if(o.B())return new e.Ea(o.description);var v=new e.l;return o.yc(v),0=l&&(l=96),p.sb=Math.abs(p.La),p.Mv=0!=p.sb?1/p.sb:0,isNaN(c)||0==c?c=1e-5*p.sb:c>.5*p.sb&&(c=.5*p.sb),12>l&&(l=12),(o=Math.abs(a)*(1-Math.cos(Math.PI/l)))>c?c=o:(o=Math.PI/Math.acos(1-c/Math.abs(a)))(l=e.P.truncate(o))&&(l=12,c=Math.abs(a)*(1-Math.cos(Math.PI/l))),p.xk=c,p.Fq=l,p.oA=Math.min(p.dt,.25*c),p.gE()},s.prototype.ev=function(){if(null==this.Jd)this.Jd=[];else if(0!==this.Jd.length)return;var o=this.lE();o=e.P.truncate((o+3)/4);var a=.5*Math.PI/o;this.jA=a;for(var u=0;u<4*o;u++)this.Jd.push(null);var c=Math.cos(a);a=Math.sin(a);var l=e.h.construct(0,1);for(u=0;u=this.La&&(o=new e.l,this.Y.A(o),o.S()<=2*-this.La||o.da()<=2*this.La))return new e.Ea(this.Y.description)}switch(this.Y.K()){case 33:return this.KN();case 550:return this.JN();case 1607:return this.MN();case 1736:return this.LN();case 197:return this.GN();default:throw e.i.Ra()}},s.prototype.MN=function(){if(this.zG(this.Y)){var o=new e.Ta;this.Y.we(0,o);var a=new e.l;return this.Y.A(a),o.Db(a.tf()),this.Iu(o)}return this.Y=this.RV(this.Y),o=new t(this,this.qq),e.Ih.local().W(o,this.Oj,this.Vb).next()},s.prototype.LN=function(){if(0==this.La)return this.Y;var o=e.$l.local();if(this.ev(),this.Y=o.W(this.Y,null,!1,this.Vb),0>this.La){var a=this.Y;return a=this.ly(a,0,a.ea()),o.W(a,this.Oj,!1,this.Vb)}return this.zG(this.Y)?(o=new e.Ta,this.Y.we(0,o),a=new e.l,this.Y.A(a),o.Db(a.tf()),this.Iu(o)):(o=new i(this),e.Ih.local().W(o,this.Oj,this.Vb).next())},s.prototype.ly=function(o,a,u){for(var c=new e.Ea(o.description);ao.Ka(a))){var l=o.Kr(a),p=new e.l;if(o.Tj(a,p),0=this.La){if(0==this.La)o.bd(this.Y,!1);else{var a=new e.Hh;this.Y.dn(a),a.X(this.La,this.La),o.bd(a,!1)}return o}return o.bd(this.Y,!1),this.Y=o,this.eE(o,0)},s.prototype.eE=function(o,a){this.ev();var u=new e.Ea(o.description),c=new e.h,l=new e.h,p=new e.h,v=new e.h,b=new e.h,d=new e.h,g=new e.h,x=new e.h,m=o.Ka(a),w=o.Ca(a),j=0;for(a=o.Ka(a);jo.Ka(a))return null;if(this.AG(o,a)&&0(o=-1>o?4:2*Math.PI/Math.acos(o)+.5)?o=4:o>this.Fq&&(o=this.Fq),e.P.truncate(o)},s.prototype.BD=function(o,a,u,c,l){this.ev();var p=new e.h;p.vc(u,a),p.scale(this.Mv);var v=new e.h;v.vc(c,a),v.scale(this.Mv),0>(p=Math.atan2(p.y,p.x)/this.jA)&&(p=this.Jd.length+p),p=this.Jd.length-p,0>(v=Math.atan2(v.y,v.x)/this.jA)&&(v=this.Jd.length+v),(v=this.Jd.length-v)p.I(v))return 0>l||(l=o,p=new e.Ta,l.we(l.Ca(a),p),this.Au(u,p)),1;var b=p.Oa(p.Ya(p.Ob(v))),d=new e.Ed;if(d.ig(-b.x,-b.y),p.Pc(d),c&&(this.oQ(p,v,l),2>p.I(v)))return 0>l||(l=o,p=new e.Ta,l.we(l.Ca(a),p),this.Au(u,p)),1;this.$d.length=0;var g=p.Ob(v);a=p.Ya(g);var x=1==l?p.Na(a):p.V(a);o=1==l?p.V(a):p.Na(a);var m=!0;c=new e.h,v=new e.h;var w=new e.h,j=new e.h,M=new e.h,A=new e.h,z=new e.h,N=new e.h,I=new e.h,D=new e.h,P=this.sb;g=p.Ka(g);for(var B=0;Bx||0>m&&0==x?this.$d.push(r.Su(j,M,c,2,this.$d.length+1,this.$d.length-1)):j.rb(M)||(this.$d.push(r.construct(j,c,this.$d.length+1,this.$d.length-1,"dummy")),this.$d.push(r.construct(c,M,this.$d.length+1,this.$d.length-1,"dummy"))),A.add(v,I),this.$d.push(r.Su(M,A,c,1,this.$d.length+1,this.$d.length-1)),j.N(A),D.N(I),w.N(c),c.N(v),N.N(z),x=a,a=o,m=!1,o=1==l?p.V(a):p.Na(a);return this.$d[this.$d.length-1].sh=0,this.$d[0].uh=this.$d.length-1,this.TV(u),d.ig(b.x,b.y),u.TD(d,u.ea()-1),1},s.prototype.TV=function(o){for(var a=this.uO(),u=!0,c=a+1,l=a;c!=a;l=c){var p=this.$d[l];c=-1!=p.sh?p.sh:(l+1)%this.$d.length,0!=p.Eo&&(u&&o.Nt(p.Km),2==p.Eo?this.BD(o,p.cw,p.Km,p.Xm,!0):o.Ei(p.Xm),u=!1)}},s.prototype.uO=function(){null==this.Ms&&(this.Ms=[null,null,null,null,null,null,null,null,null]);for(var o=0,a=0,u=this.$d.length;a=this.sb)return!0}return!1},s.prototype.oQ=function(o,a,u){for(var c=0;1>c;c++){var l=!1,p=o.Ob(a),v=o.Ka(p);if(0==v)break;var b=v;if(3>v)break;!o.ec(p)&&(b=v-1),p=o.Ya(p),v=0F||0>H&&0==F||!this.Hv(j,m,w)||(z.N(w),U=!1,++C,l=!0),U){if(0.5*this.xk?(A.add(j,m),A.scale(.5),D.normalize(),D.cr(),P.N(D),P.scale(B-C),A.add(P),o.mf(v,A)):o.qd(v,!0),C=0}j.N(m),g=p}m.N(w),v=p,p=d,d=0a?(this.qq=!1,o):(this.qq=!0,e.Hg.Ok(o,this.dt,!1,!0,this.Vb))},s.prototype.Au=function(o,a){if(a=a.D(),null!=this.Jd&&0!==this.Jd.length){var u=new e.h;u.N(this.Jd[0]),u.Dt(this.sb,a),o.Nt(u);for(var c=1,l=this.Jd.length;c=t?1:-1;case 1:if(r.G=t?1:-1;case 2:if(r.v>=t&&r.C>t)break;return r.C<=t?1:-1;case 3:if(!(r.G>=t&&r.H>t))return r.H<=t?1:-1}return 0},f.prototype.vy=function(r,n){return 1736==r.K()?this.xy(r,n):this.yy(r)},f.prototype.xy=function(r,n){if(0==this.Da.S()||0==this.Da.da())return r.Ja();var t=new e.l;r.yc(t),this.Y=this.g.Ib(r);var i=new e.l,h=new e.l,s=new e.h,o=new e.h,a=[0,0,0,0,0,0,0,0,0],u=[0,0,0,0,0,0,0,0,0];new e.jg;var c=new e.zb,l=new e.ja(0);l.Jb(Math.min(100,r.I()));for(var p=!1,v=0;!p&&4>v;v++){var b=!1,d=0!=(1&v),g=0;switch(v){case 0:b=t.v<=(g=this.Da.v)&&t.C>=g;break;case 1:b=t.G<=(g=this.Da.G)&&t.H>=g;break;case 2:b=t.v<=(g=this.Da.C)&&t.C>=g;break;case 3:b=t.G<=(g=this.Da.H)&&t.H>=g}if(b)for(p=!0,b=this.g.Ob(this.Y);-1!=b;){var x=-1,m=-1,w=this.g.Ya(b),j=w;do{var M=this.g.cc(j);null==M&&(M=c,this.g.D(j,s),M.Ec(s),this.g.D(this.g.V(j),o),M.Rc(o)),M.A(i);var A=this.Nh(i,v,g),z=0,N=-1;if(-1==A){z=0<(M=M.fq(d,g,a,u))?this.g.Wl(j,u,M):0,z+=1;var I=j,D=this.g.V(I);for(M=0;Mthis.g.Ka(b)?this.g.ar(b):this.g.Sb(b)}}return p?r.Ja():(this.AB(),0u;u++){var c=!1,l=0!=(1&u),p=0;switch(u){case 0:c=a.v<=(p=this.Da.v)&&a.C>=p;break;case 1:c=a.G<=(p=this.Da.G)&&a.H>=p;break;case 2:c=a.v<=(p=this.Da.C)&&a.C>=p;break;case 3:c=a.G<=(p=this.Da.H)&&a.H>=p}if(c){c=o,o=r.Ja(),(c=c.Ha()).aj();for(var v,b=new e.h;c.ab();)for(var d,g=!0;c.Ia();){var x=c.ia();x.A(n);var m=this.Nh(n,u,p);if(-1==m){if(0<(m=x.fq(l,p,i,h))){var w=0;v=x.bc();for(var j=0;j<=m;j++)if(w!=(d=j=(u=e.P.truncate(Math.min(Math.ceil(u/r),2048)))))){for(var c=1;ch.size)){var l=this;h.Wd(0,h.size,function(A,z){return l.Oh(A,z)}),t=new e.h,s=new e.h,o=new e.h,s.Sc();var p=-1;a=new e.ja(0),u=new e.ja(0),c=this.g.Hd();for(var v=this.g.Hd(),b=0,d=h.size;bthis.Oh(p,m)&&(this.g.D(m,t),r?t.y==n:t.x==n)&&(a.add(p),w=!0,this.g.Sa(p,v,1)),0>this.Oh(p,g)&&(this.g.D(g,t),r?t.y==n:t.x==n)&&(w||a.add(p),this.g.Sa(p,c,1))}for(x=0,w=a.size;xthis.Oh(d,x)&&(this.g.D(x,a),r?a.y==n:a.x==n)&&(g=x),x=-1;var m=this.g.Na(d);if(0>this.Oh(d,m)&&(this.g.D(m,a),r?a.y==n:a.x==n)&&(x=m),-1!=g&&-1!=x)this.Mh(d,i,h),this.g.qd(d,!1),this.Mh(g,i,h),this.g.qd(g,!1),l=!0;else if(-1!=g||-1!=x){for(m=b+1;mthis.Oh(w,j)&&(this.g.D(j,a),r?a.y==n:a.x==n)&&(M=j),j=this.g.Na(w);var A=-1;if(0>this.Oh(w,j)&&(this.g.D(j,a),r?a.y==n:a.x==n)&&(A=j),-1!=M&&-1!=A){this.Mh(w,i,h),this.g.qd(w,!1),this.Mh(M,i,h),this.g.qd(M,!1),l=!0;break}if(-1!=g&&-1!=A){this.At(i,d,g,w,A,h),l=!0;break}if(-1!=x&&-1!=M){this.At(i,w,M,d,x,h),l=!0;break}}}if(l)break}}}if(!l)break}p=s,u.N(t)}}this.g.Ud(h)},f.prototype.Mh=function(r,n,t){t=this.g.Qa(r,t),n.set(t,-1),t=this.g.Qa(r,this.li),this.ed.set(t,-1),-1!=(n=this.g.cd(r))&&this.g.Ya(n)==r&&(this.g.Kf(n,-1),this.g.Yg(n,-1))},f.prototype.At=function(r,n,t,i,h,s){this.g.Cc(n,i),this.g.Dc(i,n),this.g.Dc(t,h),this.g.Cc(h,t),this.Mh(i,r,s),this.g.oi(i,!1),this.Mh(h,r,s),this.g.oi(h,!0)},f.prototype.Oy=function(){for(var r=0,n=this.ed.size;r=a?(t=this.g.Qa(o,this.li),this.ed.set(t,-1),o=this.g.qd(o,!1),2==a&&(t=this.g.Qa(o,this.li),this.ed.set(t,-1),this.g.qd(o,!1)),a=s,s=this.g.Sb(s),this.g.Kf(a,-1),this.g.br(a)):(this.g.fp(s,!1),this.g.Yg(s,this.g.Na(o)),this.g.Xj(s,a),h+=a,i++,s=this.g.Sb(s))}}for(r=0,n=this.ed.size;r=a?(t=this.g.Qa(o,this.li),this.ed.set(t,-1),o=this.g.qd(o,!1),2==a&&(0<=(t=this.g.Qa(o,this.li))&&this.ed.set(t,-1),this.g.qd(o,!1)),this.g.Kf(a=s,-1),this.g.br(a)):(this.g.mn(s,!0),this.g.Xj(s,a),this.g.Kf(s,o),this.g.Yg(s,this.g.Na(o)),this.g.fp(s,!1),h+=a,i++)}for(this.g.Tl(this.Y,i),this.g.Vj(this.Y,h),r=0,n=this.g.md;-1!=n;n=this.g.ve(n))r+=this.g.I(n);this.g.XB(r)},f.wy=function(r,n,t){return new f(n).vy(r,t)},f.clip=function(r,n,t,i){if(r.B())return r;if(n.B())return r.Ja();if(33==(t=r.K()))return i=r.D(),n.contains(i)?r:r.Ja();if(197==t)return i=new e.l,r.A(i),i.Fa(n)?(n=new e.Hh,r.copyTo(n),n.Zo(i),n):r.Ja();var h=new e.l;if(r.yc(h),n.contains(h))return r;if(!n.isIntersecting(h))return r.Ja();if(null!=(h=r.Cb)&&null!=(h=h.Hk)){if(1==(h=h.To(n))){if(1736!=t)throw e.i.Ra();return(r=new e.Ea(r.description)).vp(n),r}if(0==h)return r.Ja()}switch(t){case 550:t=null,h=r.I();for(var s=r.vb(0),o=0,a=0;a=t?1:-1;case 1:if(r.G=t?1:-1;case 2:if(r.v>=t&&r.C>t)break;return r.C<=t?1:-1;case 3:if(!(r.G>=t&&r.H>t))return r.H<=t?1:-1}return 0},f.prototype.vy=function(r,n){return 1736==r.K()?this.xy(r,n):this.yy(r)},f.prototype.xy=function(r,n){if(0==this.Da.S()||0==this.Da.da())return r.Ja();var t=new e.l;r.yc(t),this.Y=this.g.Ib(r);var i=new e.l,h=new e.l,s=new e.h,o=new e.h,a=[0,0,0,0,0,0,0,0,0],u=[0,0,0,0,0,0,0,0,0],c=new e.zb,l=new e.ja(0);l.Jb(256);for(var p=!1,v=0;!p&&4>v;v++){var b=!1,d=0!=(1&v),g=0;switch(v){case 0:b=t.v<=(g=this.Da.v)&&t.C>=g;break;case 1:b=t.G<=(g=this.Da.G)&&t.H>=g;break;case 2:b=t.v<=(g=this.Da.C)&&t.C>=g;break;case 3:b=t.G<=(g=this.Da.H)&&t.H>=g}if(b)for(p=!0,b=this.g.Ob(this.Y);-1!=b;){var x=!0,m=-1,w=-1,j=this.g.Ya(b),M=j;do{var A=this.g.cc(M);null==A&&(A=c,this.g.D(M,s),A.Ec(s),this.g.D(this.g.V(M),o),A.Rc(o)),A.A(i);var z=this.Nh(i,v,g),N=0,I=-1;if(-1==z){N=0<(A=A.fq(d,g,a,u))?this.g.HX(M,u,A):0,N+=1;var D=M,P=this.g.V(D);for(A=0;Av;v++){var b=!1,d=0!=(1&v),g=0;switch(v){case 0:b=a.v<=(g=this.Da.v)&&a.C>=g;break;case 1:b=a.G<=(g=this.Da.G)&&a.H>=g;break;case 2:b=a.v<=(g=this.Da.C)&&a.C>=g;break;case 3:b=a.G<=(g=this.Da.H)&&a.H>=g}if(b)for(b=o,o=r.Ja(),(b=b.Ha()).aj();b.ab();)for(var x,m=!0;b.Ia();){var w=b.ia();w.A(n);var j=this.Nh(n,v,g);if(-1==j){if(0<(j=w.fq(d,g,i,h))){var M=0;w.$p(u);for(var A=0;A<=j;A++)if(M!=(x=Ai.x&&(i.x+=r)}else p=n.y-this.Da.G,h.y=e.mc.sign(t.y-n.y),i.y=r*e.mc.En(Math.floor(Math.abs(p/r)),p)+this.Da.G,0>i.y&&(i.y+=r);p=0!=l?t.y-n.y:t.x-n.x;var v=Math.abs(p);if(65536=d||(s[v]=d,v++)}0!=v&&this.g.Wl(u,s,v)}}u=c}while(u!=a)}},f.prototype.Xl=function(r,n){for(var t=-1,i=new e.h,h=null,s=this.g.Ob(this.Y);-1!=s;s=this.g.Sb(s))for(var o=this.g.Ya(s),a=0,u=this.g.Ka(s);ah.size)){var l=this;h.Wd(0,h.size,function(A,z){return l.Oh(A,z)}),t=new e.h,s=new e.h,o=new e.h,s.Sc();var p=-1;a=new e.ja(0),u=new e.ja(0),c=null;for(var v=this.g.Hd(),b=this.g.Hd(),d=0,g=h.size;ds.compare(t)&&(r?t.y==n:t.x==n)&&(a.add(p),j=!0,this.g.Sa(p,b,1)),this.g.D(x,t),0>s.compare(t)&&(r?t.y==n:t.x==n)&&(j||a.add(p),this.g.Sa(p,v,1))}for(m=0,j=a.size;mu.compare(a)&&(r?a.y==n:a.x==n)&&(g=x),x=-1;var m=this.g.Na(d);if(this.g.D(m,a),0>u.compare(a)&&(r?a.y==n:a.x==n)&&(x=m),-1!=g&&-1!=x)this.Mh(d,i,h),this.g.qd(d,!1),this.Mh(g,i,h),this.g.qd(g,!1),l=!0;else if(-1!=g||-1!=x){for(m=b+1;mu.compare(a)&&(r?a.y==n:a.x==n)&&(M=j),j=this.g.Na(w);var A=-1;if(this.g.D(j,a),0>u.compare(a)&&(r?a.y==n:a.x==n)&&(A=j),-1!=M&&-1!=A){this.Mh(w,i,h),this.g.qd(w,!1),this.Mh(M,i,h),this.g.qd(M,!1),l=!0;break}if(-1!=g&&-1!=A){this.At(i,d,g,w,A,h),l=!0;break}if(-1!=x&&-1!=M){this.At(i,w,M,d,x,h),l=!0;break}}}if(l)break}}}if(!l)break}p=s,u.N(t)}this.g.Ud(h)}},f.prototype.Mh=function(r,n,t){t=this.g.Qa(r,t),n.set(t,-1),t=this.g.Qa(r,this.li),this.ed.set(t,-1),-1!=(n=this.g.cd(r))&&this.g.Ya(n)==r&&(this.g.Kf(n,-1),this.g.Yg(n,-1))},f.prototype.At=function(r,n,t,i,h,s){this.g.Cc(n,i),this.g.Dc(i,n),this.g.Dc(t,h),this.g.Cc(h,t),this.Mh(i,r,s),this.g.oi(i,!1),this.Mh(h,r,s),this.g.oi(h,!0)},f.prototype.Oy=function(){for(var r=0,n=this.ed.size;r=a?(t=this.g.Qa(o,this.li),this.ed.set(t,-1),o=this.g.qd(o,!1),2==a&&(0<=(t=this.g.Qa(o,this.li))&&this.ed.set(t,-1),this.g.qd(o,!1)),this.g.Kf(a=s,-1),this.g.br(a)):(this.g.mn(s,!0),this.g.Xj(s,a),this.g.Kf(s,o),this.g.Yg(s,this.g.Na(o)),this.g.fp(s,!1),h+=a,i++)}for(this.g.Tl(this.Y,i),this.g.Vj(this.Y,h),r=0,n=this.g.md;-1!=n;n=this.g.ve(n))r+=this.g.I(n);this.g.XB(r)},f.wy=function(r,n,t,i){return new f(n,i).vy(r,t)},f.clip=function(r,n,t,i,h){return f.Pu(r,n,null,t,i,h)},f.Pu=function(r,n,t,i,h,s){var o=r.K();if(33==o)return h=r.D(),n.contains(h)?r:r.Ja();if(197==o)return h=new e.l,r.A(h),h.Fa(n)?(n=new e.Hh,r.copyTo(n),n.Zo(h),n):r.Ja();if(r.B())return r;if(n.B())return r.Ja();var a=new e.l;if(r.yc(a),n.contains(a))return r;if(!n.isIntersecting(a))return r.Ja();if((null!=t||isNaN(i))&&e.ua.oy(t,n,!1),!e.ba.zj(o))throw e.i.O();if(null!=(t=r.Cb)&&null!=(t=t.Hk)){if(1==(t=t.To(n))){if(1736!=o)throw e.i.ga("internal error");return(r=new e.Ea(r.description)).vp(n),r}if(0==t)return r.Ja()}switch(o){case 550:for(s=null,o=r.I(),t=r.vb(0),i=0,h=new e.h,a=0;a=a;a+=1)for(var u=0;1>=u;u+=1){var c=n.eG(s+a,o+u),l=this.zl.lR(c);-1!=l&&(this.rq[h]=l,this.zs[h]=c,h++)}for(s=h-1;1<=s;s--)for(l=this.rq[s],o=s-1;0<=o;o--)if(l==this.rq[o]){this.zs[o]=-1,s!=--h&&(this.zs[s]=this.zs[h],this.rq[s]=this.rq[h]);break}for(o=0;oo.Eb())throw e.i.O();return 0==a||o.B()?o:((p=new s(p)).mo=o,p.La=a,p.ra=l,p.Mi=u,p.xA=c,p.Qx())},s.prototype.$L=function(){var o=this.mo,a=o.bc(),u=o.xc(),c=new e.h;return c.vc(u,a),c.normalize(),c.Jv(),c.scale(this.La),a.add(c),u.add(c),c=o.Ja(),o.Ec(a),o.Rc(u),c},s.prototype.ZL=function(){var o=this.mo;if(0p&&(0this.La?-f:f,-1d&&(.017453292519943295>(g=2*Math.acos(d))&&(g=.017453292519943295),1<(v=e.P.truncate(f/g+1.5))&&(b/=v)),w=t.Qd(p,this.La,g=w+n),0==o&&(w.type|=1024),this.hc(w,o),d=this.La/Math.cos(b/2),(w=t.Qd(p,d,g+=b/2)).type|=1024,this.hc(w);0<--v;)(w=t.Qd(p,d,g+=b)).type|=1024,this.hc(w);(w=t.Qd(p,this.La,j-n)).type|=1024,this.hc(w)}else if(1==this.Mi)w=t.Qd(p,this.La,w+n),this.hc(w,o),w=t.Qd(p,this.La,j-n),this.hc(w);else if(0==this.Mi)for(d=1-u/Math.abs(this.La),v=1,b=j-n-(w+n),-1d&&(.017453292519943295>(g=2*Math.acos(d))&&(g=.017453292519943295),1<(v=e.P.truncate(Math.abs(b)/g+1.5))&&(b/=v)),d=this.La/Math.cos(.5*b),w=t.Qd(p,d,g=w+n+.5*b),this.hc(w,o);0<--v;)w=t.Qd(p,d,g+=b),this.hc(w);else 2==this.Mi?.99999999<(v=((d=v.x-p.x)*(x=b.x-p.x)+(g=v.y-p.y)*(m=b.y-p.y))/Math.sqrt(d*d+g*g)/Math.sqrt(x*x+m*m))?(w=t.Qd(p,1.4142135623730951*this.La,j-.25*f),this.hc(w,o),w=t.Qd(p,1.4142135623730951*this.La,j+.25*f),this.hc(w)):(v=Math.abs(this.La/Math.sin(.5*Math.acos(v))))>(b=Math.abs(this.xA*this.La))?(d=.5*(j-w),d=this.La/Math.abs(Math.sin(d)),w=t.Qd(p,d,.5*(w+j)),j=e.h.construct(w.x,w.y),w=e.h.construct(p.x,p.y),(p=new e.h).vc(j,w),(j=new e.h).BW(b/p.length(),p,w),w=(v-b)*Math.abs(this.La)/Math.sqrt(v*v-this.La*this.La),0w&&(j-=r),v=w-j(d=1.4142135623730951*this.La)?w+.25*f:w+.75*f,w=t.Qd(p,d,g),this.hc(w,o),w=t.Qd(p,d,g=0>d?j-.25*f:j-.75*f),this.hc(w)):(d=.5*(j-w),d=this.La/Math.abs(Math.sin(d)),ja))for(var u=0;u=c+1;a--)(u=t.cl(o.Oa(a))).type|=1024,this.xg.push(u);if(this.hE())if(2<=this.Zb.length){for(o=-1,(l=0!=(1024&this.Zb[this.gf-1].type))||(o=0),a=1;a=Math.min(u.x,c.x)&&Math.max(u.x,c.x)>=Math.min(o.x,a.x)&&Math.max(o.y,a.y)>=Math.min(u.y,c.y)&&Math.max(u.y,c.y)>=Math.min(o.y,a.y)},s.prototype.sQ=function(o,a,u,c,l){l.XD=!1;var p=(a.y-o.y)*(c.x-u.x)-(a.x-o.x)*(c.y-u.y),v=(u.y-o.y)*(a.x-o.x)-(u.x-o.x)*(a.y-o.y);if(0<=(p=0==p?2:v/p)&&1>=p){var b=p;if(v=(o.y-u.y)*(c.x-u.x)-(o.x-u.x)*(c.y-u.y),0<=(p=0==(p=(c.y-u.y)*(a.x-o.x)-(c.x-u.x)*(a.y-o.y))?2:v/p)&&1>=p)return l.cn=t.OO(o.x+p*(a.x-o.x),o.y+p*(a.y-o.y)),l.cn.Wh=u.Wh+b*(c.Wh-u.Wh),0!=b&&1!=b||0!=p&&1!=p||(l.XD=!0),l.RY=p,l.SY=b,!((0==b||1==b)&&0p||(0==p||1==p)&&0b)}return!1},s.prototype.LO=function(o){for(;this.Zb[o].uho-(s*=2))return!0;h=new e.h;var a=new e.h,u=new e.h;i.uc(s,h),i.uc(s+2,a),i.uc(s+4,u);var c=t.Yu(a,u,h);if(c.rs()||!t.wm(c.value()))return!1;var l=e.h.construct(a.x,a.y),p=new e.h;for(s+=6;so;o++){i.hB(o,s);var a=this.Er(s);if(-1!=a){i.If(o,h);var u=this.g.hc(this.Us,h);this.Ga.Uj(a,u)}}},t.prototype.jN=function(i){var h=new e.Ta,s=i.bc();if(-1!=(s=this.Er(s))){i.Vo(h);var o=this.g.hc(this.Us,h);this.Ga.Uj(s,o)}s=i.xc(),-1!=(s=this.Er(s))&&(i.Ro(h),i=this.g.hc(this.Us,h),this.Ga.Uj(s,i))},t.prototype.iN=function(i){var h=i.D();-1!=(h=this.Er(h))&&(i=this.g.hc(this.Us,i),this.Ga.Uj(h,i))},t.prototype.Er=function(i){var h=-1;if(0==this.Ga.size(-1))return this.Ga.addElement(-4,-1);if(1==this.Ga.size(-1)){var s=this.g.Oa(this.Ga.ka(this.Ga.sc(-1)));return i.Mz(s)||(h=this.Ga.zn(-5)),h}return this.kC(i)},t.prototype.kC=function(i){var h=-1;do{var s=this.Ga.sc(-1),o=this.Ga.Gc(-1),a=this.Ga.ka(s),u=this.Ga.ka(o),c=new e.h,l=new e.h;if(this.Zh.D(a,c),this.Zh.D(u,l),a=e.h.Wq(l,i,c),t.wm(a))h=this.Ga.zn(-1),(c=this.iC(i,o,s))!=s&&this.jC(i,s,this.Ga.xe(c));else if(t.xG(a)){l=this.Ga.uv(-1);var p=this.Ga.sc(-1),v=this.Ga.Gc(-1);for(a=new e.h,u=new e.h;p!=this.Ga.xe(v);){var b=this.Ga.ka(l);this.Zh.D(b,a),b=e.h.Wq(a,i,c),t.xG(b)?(v=l,l=this.Ga.nl(l)):(p=l,l=this.Ga.Zp(l))}if(c=p,b=this.Ga.ka(l=v),p=this.Ga.ka(c),this.Zh.D(b,a),this.Zh.D(p,u),c!=s&&(a=e.h.Wq(u,i,a),!t.wm(a)))continue;h=this.Ga.Bu(c,l,-2,!1),this.jC(i,l,o),this.iC(i,c,s)}else null==this.tb&&(this.tb=new e.zb),this.tb.Ec(l),this.tb.Rc(c),0>(c=this.tb.ge(i,!0))?(c=this.Ga.xe(o),this.Ga.wd(o,-1),h=this.Ga.zn(-3),this.iC(i,c,s)):1i},t.xG=function(i){return 0h)throw e.i.ga("Internal Error: max number of iterations exceeded");var a=this.iM(n);if(i=i||a,this.oH&&(a=0!=this.g.Ip(n,!0,!1),i=i||a),a=!1,(0==s||o||e.bu.fI(!0,this.g,r,null,this.od))&&(a=this.nM(t),i=i||a),!a)break;e.op.Bp(this.od)}return i},f}();e.Vk=y}(k||(k={})),function(e){var y=function(){function r(n){this.ae=this.Nc=null,this.$s=0,this.Vb=n,this.Yz=!0}return r.prototype.wv=function(n,t){var i=this.g.cc(n);if(null==i){if(!this.g.fd(n,t))return null;i=t}return i},r.prototype.Zq=function(){var n;void 0===n&&(n=!1),this.$s++,(n||0==(4095&this.$s))&&(this.$s=0,e.op.Bp(this.Vb))},r.prototype.iP=function(){var n=this.g.$q(!1),t=!1,i=new e.zb,h=new e.zb,s=new e.l;s.Pa();var o=new e.l;o.Pa();for(var a=new e.Ta,u=new e.OC,c=n.next();-1!=c;c=n.next()){e.op.Bp(this.Vb);var l=null,p=!1;if(!e.ba.Tn(this.g.jc(n.ek))){if(null==(l=this.wv(c,i)))continue;if(l.A(s),s.X(this.ra,this.ra),l.Di(this.ra)){if(!l.Di(0))continue;p=!0,l=null}}var v=this.g.$q(n),b=v.next();for(-1!=b&&(b=v.next());-1!=b;b=v.next()){var d=null,g=!1;if(!e.ba.Tn(this.g.jc(v.ek))){if(null==(d=this.wv(b,h)))continue;if(d.A(o),d.Di(this.ra)){if(!d.Di(0))continue;g=!0,d=null}}var x=0,m=0;if(null!=l&&null!=d)s.CG(o)&&(u.Qo(l),u.Qo(d),u.Fa(this.ra,!1),0<(x=u.ql(0))+(m=u.ql(1))&&(this.g.lr(c,u,0,!0),this.g.lr(b,u,1,!0)),u.clear());else if(null!=l){var w=new e.h;if(this.g.D(b,w),s.contains(w)){if(u.Qo(l),this.g.Xi(b,a),u.Fz(this.ra,a,!1),0<(x=u.ql(0)))if(this.g.lr(c,u,0,!0),g){for(g=-1,w=this.g.V(b);-1!=w&&w!=b&&(g=w,null!=(d=this.wv(w,h))&&d.Di(0));w=this.g.V(w));for(w=b;-1!=w&&(this.g.Fh(w,u.Cf),w!=g);w=this.g.V(w));}else this.g.Fh(b,u.Cf);u.clear()}}else{if(null==d)continue;if(w=new e.h,this.g.D(c,w),o.X(this.ra,this.ra),o.contains(w)){if(u.Qo(d),this.g.Xi(c,a),u.Fz(this.ra,a,!1),0<(m=u.ql(0)))if(this.g.lr(b,u,0,!0),p){for(g=-1,w=this.g.V(c);-1!=w&&w!=c&&(g=w,null!=(d=this.wv(w,h))&&d.Di(0));w=this.g.V(w));for(w=c;-1!=w&&(this.g.Fh(w,u.Cf),w!=g);w=this.g.V(w));}else this.g.Fh(c,u.Cf);u.clear()}}if(x+m!=0){if(0!=x){if(null==(l=this.g.cc(c))){if(!this.g.fd(c,i))continue;l=i,i.A(s)}else l.A(s);if(l.Di(this.ra))break}t=!0}}}return t},r.prototype.jP=function(){return this.LU()},r.prototype.LU=function(){return(new e.MC).LX(this.g,this.ra)},r.prototype.gI=function(){var n=!1;null==this.Nc&&(this.Nc=new e.$j);var t=new e.ja(0);t.Jb(this.g.gd+1);for(var i=this.g.$q(),h=i.next();-1!=h;h=i.next())t.add(h);this.g.nx(t,t.size),t.add(-1),i=this.g.Hd(),h=this.g.Hd(),this.ae=new e.PC(this.g,this.ra,!this.Yz),this.Nc.Xo(this.ae);var s=new e.ja(0),o=new e.ja(0),a=0;new e.h;var u=this.g.ud;this.g.wb.oc();for(var c,l,p=this.g.wb.Aa[0].o,v=t.get(a++);-1!=v;){var b=c=p[2*(l=u.U(v,0))],d=l=p[2*l+1];do{var g=u.U(v,2),x=u.U(v,1);if(-1!=g){var m=u.U(g,0),w=p[2*m];0>(d<(m=p[2*m+1])?-1:d>m?1:bw?1:0)&&(o.add(v),o.add(g))}-1!=x&&(w=p[2*(m=u.U(x,0))],0>(d<(m=p[2*m+1])?-1:d>m?1:bw?1:0)&&(o.add(x),o.add(x))),-1!=(w=this.g.Qa(v,i))&&(s.add(w),this.g.Sa(v,i,-1)),-1!=(w=this.g.Qa(v,h))&&(s.add(w),this.g.Sa(v,h,-1)),-1!==(v=t.get(a++))&&(b=p[2*(d=u.U(v,0))],d=p[2*d+1])}while(-1!=v&&b===c&&d===l);for(b=1==s.size&&2==o.size,w=d=-1,g=0,x=s.size;gn.gd?n=t.iP():t.jP())},r.W=function(n,t,i){return r.aQ(n,n.DF(),t,i)},r.fI=function(n,t,i,h,s){if(!r.tE(t))return!1;var o=new r(s);if(o.g=t,o.ra=i,o.Yz=n,o.gI())return h?.Yt(o.Pi),!0;var a=new e.Ed;return a.VB(),t.Pc(a),(o=new r(s)).g=t,o.ra=i,o.Yz=n,n=o.gI(),a.VB(),t.Pc(a),!!n&&(h?.Yt(o.Pi),!0)},r.Ol=function(n,t){return!(16>(n=n.I()))&&2*n+Math.log(n)*Math.LOG10E/Math.log(2)*t<1*n*t},r.gP=function(n,t,i,h){if(e.ba.Ic(t.K()))return new r(h).hP(n,t,i);throw e.i.ga("crack_A_with_B")},r.prototype.hP=function(n,t,i){var h=new e.l;n.yc(h);var s=new e.l;if(t.yc(s),s.X(i,i),!s.isIntersecting(h))return n;var o=n.Cb,a=null;null!=o&&(a=o.Gb),r.Ol(n,n.I())&&(a=e.ua.lj(n,s));var u=null!=a?a.getIterator():null,c=t.Ha();t=n.Ha();var l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(s=[];c.ab();)for(;c.Ia();){var p=c.ia();if(null!=a){for(u.Wo(p,i),o=u.next();-1!=o;o=u.next())if(this.Zq(),t.Wb(a.ka(o),-1),t.Ia()){var v=(o=t.ia()).Fa(p,null,l,null,i);for(o=0;ot.t?1:n.tt.index?1:-1},r}()}(k||(k={})),function(e){var y;(y=e.FK||(e.FK={}))[y.Left=0]="Left",y[y.Right=1]="Right",y[y.Coincident=2]="Coincident",y[y.Undefined=3]="Undefined",y[y.Uncut=4]="Uncut";var f=function(t,i,h,s,o,a,u,c,l,p,v){this.Y=t,this.ct=i,this.Ps=h,this.ug=s,this.Nm=p,this.Cl=v};e.qY=f;var r=function(){function t(i,h){this.EH=i,this.Ji=h}return t.prototype.lM=function(i,h){var s=new e.h;this.Ji.D(i,s);var o=new e.h;return this.Ji.D(h,o),0!=(s=s.compare(o))?s:(i=this.Ji.Qa(i,this.EH))<(h=this.Ji.Qa(h,this.EH))?-1:i==h?0:1},t}(),n=function(t,i,h,s,o,a,u,c,l){this.ug=t,this.Ps=i,this.JA=h,this.PH=s,this.Gi=o,this.Cl=a,this.Nm=u,this.QH=c,this.JT=l};e.pY=n,e.GK=function(){function t(){}return t.EK=function(i,h,s,o,a,u){if(h.B())i=new f(h,4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),a.push(i);else if(s.B())i=new f(h,4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),a.push(i);else{var c=new e.hd;if(c.Ib(h),c.Ib(s),e.Vk.W(c,o,u,!0),0==c.gd)i=new f(h.Ja(),4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),a.push(i);else{for(h=0,s=c.Hd(),o=c.md;-1!=o;o=c.ve(o))for(u=c.Ob(o);-1!=u;u=c.Sb(u))for(var l=c.Ya(u),p=0,v=c.Ka(u);p(d=d.Fa(l,null,v,b,0))&&(o=new n(a,o,v[0],NaN,d,c,u,b[0],NaN),s.push(o),0>(o=h.Qa(a,i))&&h.Sa(a,i,s.length-1)),!0},t.rM=function(i,h,s,o,a,u,c){var l=new e.zb,p=new e.zb,v=[0,0],b=[0,0],d=h.cc(a);return null==d&&(h.fd(a,l),d=l),null==(l=h.cc(c))&&(h.fd(c,p),l=p),2>(d=d.Fa(l,null,v,b,0))&&(o=new n(a,o,v[0],NaN,d,c,u,b[0],NaN),s.push(o),0>(o=h.Qa(a,i))&&h.Sa(a,i,s.length-1),!0)},t.sM=function(i,h,s,o,a,u,c,l){var p=new e.zb,v=new e.zb,b=[0,0],d=[0,0],g=h.cc(a);return null==g&&(h.fd(a,p),g=p),null==(p=h.cc(c))&&(h.fd(c,v),p=v),2==(g=g.Fa(p,null,b,d,0))?(o=new n(a,o,b[0],b[1],g,c,u,d[0],d[1]),s.push(o),0>(o=h.Qa(a,i))&&h.Sa(a,i,s.length-1),!0):(v=!1,a==l&&(o=new n(a,o,b[0],NaN,g,c,u,d[0],NaN),s.push(o),0>(o=h.Qa(a,i))&&h.Sa(a,i,s.length-1),v=!0),v)},t.tM=function(i,h,s,o,a,u,c,l){var p=new e.zb,v=new e.zb,b=[0,0],d=[0,0],g=h.cc(a);return null==g&&(h.fd(a,p),g=p),null==(p=h.cc(c))&&(h.fd(c,v),p=v),2==(g=g.Fa(p,null,b,d,0))?(o=new n(a,o,b[0],b[1],g,c,u,d[0],d[1]),s.push(o),0>(o=h.Qa(a,i))&&h.Sa(a,i,s.length-1),!0):(v=!1,a==l&&(o=new n(a,o,b[0],NaN,g,c,u,d[0],NaN),s.push(o),0>(o=h.Qa(a,i))&&h.Sa(a,i,s.length-1),v=!0),v)},t.YL=function(i,h,s,o){var a=[];a[0]=new e.h,a[1]=new e.h,a[2]=new e.h,a[3]=new e.h;var u=new e.h,c=new e.h,l=new e.h,p=new e.h,v=null;null!=o&&(v=new e.jg).Qr();var b=0,d=null,g=new e.zb;new e.zb;for(var x=s.Ob(s.md);-1!=x;x=s.Sb(x)){for(var m=4,w=-1,j=-1,M=-1,A=-1,z=NaN,N=!0,I=!1,D=!0,P=!0,B=!0,C=0,S=x,F=0,H=s.Ya(x),U=s.Ka(x),$=0;$=h.length-2||h[b+2].Ps!=w)&&(m=0):m=1):((E!=R||L&&0==R)&&(null!=o?(O=new f(d,3,w,K,E,m,S,j,F,X,V,Z,M,A,z),o.push(O)):null.add(C)),m=1):0!=m?((E!=R||L&&0==R)&&(null!=o?(O=new f(d,0,w,K,E,m,S,j,F,X,V,Z,M,A,z),o.push(O)):null.add(C)),it?(b>=h.length-2||h[b+2].Ps!=w)&&(m=1):m=0):((E!=R||L&&0==R)&&(null!=o?(O=new f(d,3,w,K,E,m,S,j,F,X,V,Z,M,A,z),o.push(O)):null.add(C)),m=0),(E!=R||L&&0==R)&&(R=E,S=w,j=K,F=E,M=X,A=V,z=Z,N=D=!1,P=B=!0))}}b++}1!=R&&(B&&(null!=o?d=new e.Ua:C=0),null!=o?(W.dh(R,1,v),d.pc(v.get(),P)):C++,P=B=!1,D=!0)}D&&(E=1,K=s.tj(x),K=s.Na(K),V=X=-1,Z=NaN,N?null!=o?(O=new f(d,4,w,K,E,m,S,j,F,X,V,Z,M,A,z),o.push(O)):null.add(C):(N=1==m?0:0==m?1:3,null!=o?(O=new f(d,N,w,K,E,m,S,j,F,X,V,Z,M,A,z),o.push(O)):null.add(C)))}},t.xM=function(i,h,s,o,a,u){var c=s[o].QH;if(1==c)return t.vM(i,h,s,o,a,u);if(0==c)return t.wM(i,h,s,o,a,u);throw e.i.Ra()},t.vM=function(i,h,s,o,a,u){var c=new e.zb,l=s[o].ug,p=s[o].Nm,v=s[o].Cl,b=-1,d=-1,g=-1,x=-1;if(!i&&0.01*n&&(i*=1+(1+(r=r.yb/n))*r),this.pb=t,this.yb=i+2220446049250313e-31*Math.abs(t)},f.prototype.sqrt=function(){if(0<=this.pb){var r=Math.sqrt(this.pb),n=this.pb>10*this.yb?.5*this.yb/r:this.pb>this.yb?r-Math.sqrt(this.pb-this.yb):Math.max(r,Math.sqrt(this.pb+this.yb)-r);n+=2220446049250313e-31*Math.abs(r)}else this.pb<-1*this.yb?n=r=NaN:(r=0,n=Math.sqrt(this.yb));this.pb=r,this.yb=n},f.prototype.sin=function(r){var n=Math.sin(r.pb),t=Math.cos(r.pb);this.pb=n,n=Math.abs(n),this.yb=(Math.abs(t)+.5*n*r.yb)*r.yb+2220446049250313e-31*n},f.prototype.cos=function(r){var n=Math.sin(r.pb),t=Math.cos(r.pb);this.pb=t,t=Math.abs(t),this.yb=(Math.abs(n)+.5*t*r.yb)*r.yb+2220446049250313e-31*t},f.prototype.rg=function(){return Math.abs(this.pb)<=this.yb},f.prototype.rs=function(){return this.rg()&&0!=this.yb},f}();e.Xb=y}(k||(k={}));var Q=new k.h,ht=new k.h,et=new k.h,st=new k.h,ot=new k.h;(function(e){var y,f;(f=y||(y={}))[f.closedPath=1]="closedPath",f[f.exteriorPath=2]="exteriorPath",f[f.ringAreaValid=4]="ringAreaValid";var r=function(){function n(t,i,h,s,o,a,u){void 0!==i?(this.ib=t,this.ek=i,this.dl=h,this.ki=s,this.za=a,this.cA=u,this.gw=o):(this.ib=t.ib,this.ek=t.ek,this.dl=t.dl,this.ki=t.ki,this.za=t.za,this.cA=t.cA,this.gw=t.gw),this.XG=!0}return n.prototype.next=function(){return this.XG?(this.XG=!1,this.ki):-1!=this.ki?(this.ki=this.ib.V(this.ki),this.za++,-1!=this.ki&&this.ki!=this.gw?this.ki:this.VT()):-1},n.prototype.VT=function(){for(this.dl=this.ib.Sb(this.dl),this.za=0;-1!=this.ek;){for(;-1!=this.dl;this.dl=this.ib.Sb(this.dl))if(this.gw=this.ki=this.ib.Ya(this.dl),-1!=this.ki)return this.ki;if(this.ek=this.ib.ve(this.ek),-1==this.ek)break;this.cA&&!e.ba.Ic(this.ib.jc(this.ek))||(this.dl=this.ib.Ob(this.ek))}return-1},n.vP=function(t,i,h,s,o,a,u){return new n(t,i,h,s,o,a,u)},n}();e.vY=r,y=function(){function n(){this.lo=this.Cm=this.yk=this.dd=this.Ek=this.xo=this.Qi=this.nd=this.di=this.Ug=this.Te=this.Kl=null,this.sw=this.md=-1,this.gd=0,this.aA=!1,this.it=this.jt=this.wb=null}return n.prototype.Uh=function(t){return null!=this.Te?this.Te[t]:null},n.prototype.Zg=function(t,i){if(null==this.Te){if(null==i)return;this.Te=[];for(var h=0,s=this.wb.I();h=this.Qi.size&&(t=16>i?16:e.P.truncate(3*i/2),this.Qi.resize(t),this.xo.resize(t)),this.Qi.set(i,0),this.xo.set(i,0),i},n.prototype.nF=function(t){this.nd.kd(t)},n.prototype.Qy=function(t){this.ud.kd(t),this.gd--},n.prototype.jI=function(t){null==this.nd&&(this.nd=new e.ad(8),this.ud=new e.ad(5),this.Qi=new e.ce(0),this.xo=new e.ce(0));var i=this.ud.De(),h=0<=t?t:i;if(this.ud.T(i,0,h),0>t){if(h>=this.wb.I()){if(t=16>h?16:e.P.truncate(3*h/2),this.wb.resize(t),null!=this.Te)for(var s=0;si.Ka(s))){var a=this.wf(t,-1);this.mn(a,i.ec(s));for(var u=i.Ca(s),c=i.Wc(s);ut.Ka(i))return h;this.Kl.Gd(t,t.Ca(i),t.Wc(i)),this.jt=this.wb.vb(0);var s=this.wf(h,-1);this.mn(s,t.ec(i)||!0);var o=null!=this.Te&&null!=t.Se,a=t.Ca(i);for(i=t.Wc(i);a=i.size&&i.resize(Math.max(e.P.truncate(1.25*t),16),-1),i.write(t,h)},n.prototype.FF=function(t,i){return(t=this.EF(t))<(i=this.yk[i]).size?i.read(t):-1},n.prototype.WE=function(){null==this.yk&&(this.yk=[]);for(var t=0;tl:2>l)?(u=this.ar(u),s=0v){var b=v;null!=c&&(b=0b){var d=b;if(null!=c&&(d=0s||o>this.gd-1)throw e.i.O("invalid call");if(s>o&&!this.ec(t))throw e.i.O("cannot iterate across an open path");for(t=0;i!=h;i=this.V(i))s=this.Va(i),null!=(o=this.Uh(s))?t+=o.Rb():(o=this.Va(this.V(i)),t+=this.wb.Ar(s,o));return t},n.prototype.Fh=function(t,i){var h=this.Va(t);this.wb.It(h,i),null!=(h=this.Uh(h))&&h.setStart(i),-1!=(t=this.Na(t))&&(t=this.Va(t),null!=this.Uh(t)&&h.setEnd(i))},n.prototype.Xi=function(t,i){t=this.Va(t),this.wb.we(t,i)},n.prototype.mf=function(t,i){this.Db(t,i.x,i.y)},n.prototype.Db=function(t,i,h){var s=this.Va(t);this.wb.Db(s,i,h),null!=(s=this.Uh(s))&&s.UB(i,h),-1!=(t=this.Na(t))&&(t=this.Va(t),null!=this.Uh(t)&&s.Sl(i,h))},n.prototype.D=function(t,i){this.wb.D(this.ud.U(t,0),i)},n.prototype.Hc=function(t,i){this.wb.Aa[0].uc(2*this.ud.U(t,0),i)},n.prototype.Oa=function(t){var i=new e.h;return this.wb.D(this.ud.U(t,0),i),i},n.prototype.ZF=function(t,i){this.jt.uc(2*t,i)},n.prototype.Vc=function(t,i,h){return this.wb.Vc(t,this.Va(i),h)},n.prototype.setAttribute=function(t,i,h,s){this.wb.setAttribute(t,this.Va(i),h,s)},n.prototype.Va=function(t){return this.ud.U(t,0)},n.prototype.kh=function(){var t=new e.h;return this.D(void 0,t),t.y},n.prototype.hq=function(t,i){t=this.Va(t),i=this.Va(i);var h=this.wb.Aa[0].o;return h[2*t]===h[2*i]&&h[2*t+1]===h[2*i+1]},n.prototype.Fv=function(t,i){t=this.Va(t);var h=this.wb.Aa[0].o;return h[2*t]===i.x&&h[2*t+1]===i.y},n.prototype.rX=function(t,i){if(1>i&&(i=1),null==this.Ug){if(1==i)return;this.Ug=e.Zc.Fn(this.wb.I(),1)}(t=this.Va(t))>=this.Ug.size&&this.Ug.resize(t+1,1),this.Ug.write(t,i)},n.prototype.YF=function(t){return t=this.Va(t),null==this.Ug||t>=this.Ug.size?1:this.Ug.read(t)},n.prototype.Sa=function(t,i,h){i=this.di[i],t=this.Va(t),i.sizeo?1:ac?1:0})},n.prototype.eS=function(){for(var t=this.md;-1!=t;t=this.ve(t))if(!e.ba.Ic(this.jc(t)))return!0;return!1},n.prototype.cC=function(t,i){for(var h=this.Ob(t),s=this.Ob(i),o=this.mv(t),a=this.mv(i),u=this.Ob(t);-1!=u;u=this.Sb(u))this.gx(u,i);for(u=this.Ob(i);-1!=u;u=this.Sb(u))this.gx(u,t);this.ap(t,s),this.ap(i,h),this.bp(t,a),this.bp(i,o),h=this.I(t),s=this.ea(t),o=this.ea(i),this.Vj(t,this.I(i)),this.Vj(i,h),this.Tl(t,o),this.Tl(i,s),h=this.dd.U(t,2),this.dd.T(t,2,this.dd.U(i,2)),this.dd.T(i,2,h)},n}(),e.hd=y})(k||(k={})),function(e){var y=function(f){function r(n,t,i,h){var s=f.call(this)||this;return s.aa=new e.l,void 0===n?s.PE():"number"==typeof n?s.QO(n,t,i,h):n instanceof e.Ta?void 0!==t?s.Su(n,t,i):s.RO(n):n instanceof e.sa?void 0!==t?s.TO(n,t):s.SO(n):n instanceof e.l?s.PO(n):s.PE(),s}return J(r,f),r.prototype.Su=function(n,t,i){this.description=e.fe.pg(),this.aa.Pa(),n.B()||this.vu(n,t,i)},r.prototype.PO=function(n){this.description=e.fe.pg(),this.aa.L(n),this.aa.normalize()},r.prototype.SO=function(n){if(null==n)throw e.i.O();this.description=n,this.aa.Pa()},r.prototype.TO=function(n,t){if(null==n)throw e.i.O();this.description=n,this.aa.L(t),this.aa.normalize()},r.prototype.PE=function(){this.description=e.fe.pg(),this.aa.Pa()},r.prototype.RO=function(n){this.description=e.fe.pg(),this.aa.Pa(),n.B()||this.vu(n)},r.prototype.QO=function(n,t,i,h){this.description=e.fe.pg(),this.L(n,t,i,h)},r.prototype.L=function(n,t,i,h){if(this.wc(),"number"==typeof n)this.aa.L(n,t,i,h);else for(this.Pa(),t=0,i=n.length;t=e.sa.Wa(t))throw e.i.O();var h=this.description.Rf(t);return this.qu(),0<=h?this.la[this.fR(this.description,n)+this.description.GR(h)-2+i]:e.sa.te(t)},r.prototype.qu=function(){if(this.wc(),null==this.la&&2=e.sa.Wa(t))throw e.i.de();var h=this.description.Rf(t);return 0<=h?(this.qu(),this.la[r.Ig(this.description,n)+this.description.bk(h)-2+i]):e.sa.te(t)},r.prototype.qD=function(n,t,i,h){if(this.wc(),0==t)0!=n?0!=i?this.aa.H=h:this.aa.C=h:0!=i?this.aa.G=h:this.aa.v=h;else{if(i>=e.sa.Wa(t))throw e.i.de();if(!this.hasAttribute(t)){if(e.sa.yG(t,h))return;this.se(t)}t=this.description.Rf(t),this.qu(),this.la[r.Ig(this.description,n)+this.description.bk(t)-2+i]=h}},r.Ig=function(n,t){return t*(n.Be.length-2)},r.prototype.Fa=function(n){this.wc();var t=new e.l;return n.A(t),this.aa.Fa(t)},r.prototype.isIntersecting=function(n){return this.aa.isIntersecting(n instanceof e.l?n:n.aa)},r.prototype.Lu=function(n,t){this.wc(),n.B()?this.Pa():void 0!==t?this.vu(n,t,void 0):this.aa.Lu(n.Ng(),n.kh())},r.prototype.offset=function(n,t){this.wc(),this.aa.offset(n,t)},r.prototype.normalize=function(){this.wc(),this.aa.normalize()},r.prototype.tf=function(n){if(void 0===n){if(n=new e.Ta(this.description),this.B())return n;for(t=this.description.Ba,i=1;ithis.C&&(this.C=i.x),i.ythis.H&&(this.H=i.y)}}else if(null==r||0==r.length)this.Pa();else for(this.L((i=r[0]).x,i.y),t=1;tr?this.v=r:this.Cn?this.G=n:this.Hr?this.v=r:this.Cn?this.G=n:this.Hthis.C||this.G>this.H)&&this.Pa())},f.prototype.scale=function(r){0>r&&this.Pa(),this.B()||(this.v*=r,this.C*=r,this.G*=r,this.H*=r)},f.prototype.zoom=function(r,n){this.B()||this.L(this.tf(),r*this.S(),n*this.da())},f.prototype.isIntersecting=function(r){return!this.B()&&!r.B()&&(this.v<=r.v?this.C>=r.v:r.C>=this.v)&&(this.G<=r.G?this.H>=r.G:r.H>=this.G)},f.prototype.CG=function(r){return(this.v<=r.v?this.C>=r.v:r.C>=this.v)&&(this.G<=r.G?this.H>=r.G:r.H>=this.G)},f.prototype.Fa=function(r){return!this.B()&&!r.B()&&(r.v>this.v&&(this.v=r.v),r.Cthis.G&&(this.G=r.G),r.Hr.length)throw e.i.O();null!=r[0]?r[0].na(this.v,this.G):r[0]=e.h.construct(this.v,this.G),null!=r[1]?r[1].na(this.v,this.H):r[1]=e.h.construct(this.v,this.H),null!=r[2]?r[2].na(this.C,this.H):r[2]=e.h.construct(this.C,this.H),null!=r[3]?r[3].na(this.C,this.G):r[3]=e.h.construct(this.C,this.G)},f.prototype.rF=function(){return this.B()?0:this.S()*this.da()},f.prototype.tR=function(){return this.B()?0:2*(this.S()+this.da())},f.prototype.ik=function(){return(this.C+this.v)/2},f.prototype.Lp=function(){return(this.H+this.G)/2},f.prototype.S=function(){return this.C-this.v},f.prototype.da=function(){return this.H-this.G},f.prototype.move=function(r,n){this.B()||(this.v+=r,this.G+=n,this.C+=r,this.H+=n)},f.prototype.Lu=function(r,n){if(void 0!==n)this.move(r-this.ik(),n-this.Lp());else if(r instanceof e.h)this.Lu(r.x,r.y);else{if(!(r instanceof e.Ta))throw e.i.O();n=(this.C-this.v)/2;var t=(this.H-this.G)/2;this.v=r.Ng()-n,this.C=r.Ng()+n,this.G=r.kh()-t,this.H=r.kh()+t}},f.prototype.offset=function(r,n){this.v+=r,this.C+=r,this.G+=n,this.H+=n},f.prototype.normalize=function(){if(!this.B()){var r=Math.min(this.v,this.C),n=Math.max(this.v,this.C);this.v=r,this.C=n,r=Math.min(this.G,this.H),n=Math.max(this.G,this.H),this.G=r,this.H=n}},f.prototype.fn=function(r){r.na(this.v,this.G)},f.prototype.VI=function(r){r.na(this.C,this.G)},f.prototype.YI=function(r){r.na(this.v,this.H)},f.prototype.gn=function(r){r.na(this.C,this.H)},f.prototype.aT=function(){return this.B()||this.v<=this.C&&this.G<=this.H},f.prototype.tf=function(){return e.h.construct((this.C+this.v)/2,(this.H+this.G)/2)},f.prototype.hz=function(){return e.h.construct(this.v,this.G)},f.prototype.contains=function(r,n){if(void 0!==n)return r>=this.v&&r<=this.C&&n>=this.G&&n<=this.H;if(r instanceof e.Ta)return this.contains(r.Ng(),r.kh());if(r instanceof e.h)return this.contains(r.x,r.y);if(r instanceof f)return r.v>=this.v&&r.C<=this.C&&r.G>=this.G&&r.H<=this.H;throw e.i.O()},f.prototype.jm=function(r,n){if(void 0!==n)return r>this.v&&rthis.G&&nthis.v&&r.Cthis.G&&r.H>>32);var n=e.P.Vh(r);return r=e.P.truncate((r=this.C)^r>>>32),n=e.P.Vh(r,n),r=e.P.truncate((r=this.G)^r>>>32),n=e.P.Vh(r,n),r=e.P.truncate((r=this.H)^r>>>32),e.P.Vh(r,n)},f.prototype.zr=function(){return this.B()?2220446049250313e-29:2220446049250313e-29*(Math.abs(this.v)+Math.abs(this.C)+Math.abs(this.G)+Math.abs(this.H)+1)},f.prototype.uy=function(r,n){var t=this.ak(r),i=this.ak(n);if(0!=(t&i))return 0;if(0==(t|i))return 4;var h=(0!=t?1:0)|(0!=i?2:0);do{var s=n.x-r.x,o=n.y-r.y;if(s>o?0!=(t&f.TC)?(0!=(t&f.lu)?(r.y+=o*(this.v-r.x)/s,r.x=this.v):(r.y+=o*(this.C-r.x)/s,r.x=this.C),t=this.ak(r)):0!=(i&f.TC)?(0!=(i&f.lu)?(n.y+=o*(this.v-n.x)/s,n.x=this.v):(n.y+=o*(this.C-n.x)/s,n.x=this.C),i=this.ak(n)):0!=t?(0!=(t&f.mu)?(r.x+=s*(this.G-r.y)/o,r.y=this.G):(r.x+=s*(this.H-r.y)/o,r.y=this.H),t=this.ak(r)):(0!=(i&f.mu)?(n.x+=s*(this.G-n.y)/o,n.y=this.G):(n.x+=s*(this.H-n.y)/o,n.y=this.H),i=this.ak(n)):0!=(t&f.UC)?(0!=(t&f.mu)?(r.x+=s*(this.G-r.y)/o,r.y=this.G):(r.x+=s*(this.H-r.y)/o,r.y=this.H),t=this.ak(r)):0!=(i&f.UC)?(0!=(i&f.mu)?(n.x+=s*(this.G-n.y)/o,n.y=this.G):(n.x+=s*(this.H-n.y)/o,n.y=this.H),i=this.ak(n)):0!=t?(0!=(t&f.lu)?(r.y+=o*(this.v-r.x)/s,r.x=this.v):(r.y+=o*(this.C-r.x)/s,r.x=this.C),t=this.ak(r)):(0!=(i&f.lu)?(n.y+=o*(this.v-n.x)/s,n.x=this.v):(n.y+=o*(this.C-n.x)/s,n.x=this.C),i=this.ak(n)),0!=(t&i))return 0}while(0!=(t|i));return h},f.prototype.ak=function(r){return(r.xthis.C?1:0)<<1|(r.ythis.H?1:0)<<3},f.prototype.Di=function(r){return!this.B()&&(this.S()<=r||this.da()<=r)},f.prototype.ub=function(r){return r instanceof e.h?Math.sqrt(this.dK(r)):Math.sqrt(this.px(r))},f.prototype.px=function(r){var n=0,t=0,i=this.v-r.C;return i>n&&(n=i),(i=this.G-r.H)>t&&(t=i),(i=r.v-this.C)>n&&(n=i),(i=r.G-this.H)>t&&(t=i),n*n+t*t},f.prototype.dK=function(r){var n=0,t=0,i=this.v-r.x;return i>n&&(n=i),(i=this.G-r.y)>t&&(t=i),(i=r.x-this.C)>n&&(n=i),(i=r.y-this.H)>t&&(t=i),n*n+t*t},f.prototype.en=function(r){this.B()?r.Pa():r.L(this.v,this.C)},f.lu=1,f.mu=4,f.TC=3,f.UC=12,f}();e.l=y}(k||(k={})),function(e){var y,f;(f=y||(y={}))[f.initialize=0]="initialize",f[f.initializeRed=1]="initializeRed",f[f.initializeBlue=2]="initializeBlue",f[f.initializeRedBlue=3]="initializeRedBlue",f[f.sweep=4]="sweep",f[f.sweepBruteForce=5]="sweepBruteForce",f[f.sweepRedBlueBruteForce=6]="sweepRedBlueBruteForce",f[f.sweepRedBlue=7]="sweepRedBlue",f[f.sweepRed=8]="sweepRed",f[f.sweepBlue=9]="sweepBlue",f[f.iterate=10]="iterate",f[f.iterateRed=11]="iterateRed",f[f.iterateBlue=12]="iterateBlue",f[f.iterateBruteForce=13]="iterateBruteForce",f[f.iterateRedBlueBruteForce=14]="iterateRedBlueBruteForce",f[f.resetRed=15]="resetRed",f[f.resetBlue=16]="resetBlue";var r=function(){function n(t,i){this.ei=t,this.ZG=i}return n.prototype.qr=function(t,i,h){this.ei.FX(h,t,i,this.ZG)},n.prototype.bq=function(t){return this.ei.Tr(t,this.ZG)},n}();y=function(){function n(){this.qw=this.qo=this.ff=this.sd=null,this.yq=new e.l,this.Cm=this.Jj=this.Kj=this.Bd=this.Ff=this.Md=this.ew=this.io=this.rd=this.Fb=null,this.Yb=-1,this.ra=0,this.Pk()}return n.prototype.mr=function(){this.Pk(),this.Rv=!0,null==this.Fb?(this.io=new e.ja(0),this.Fb=[]):(this.io.Dh(0),this.Fb.length=0)},n.prototype.bd=function(t,i){if(!this.Rv)throw e.i.Hb();var h=new e.l;h.L(i),this.io.add(t),this.Fb.push(h)},n.prototype.Hp=function(){if(!this.Rv)throw e.i.Hb();this.Rv=!1,null!=this.Fb&&0this.Fb.length)return this.qe=this.Fb.length,this.Yb=5,!0;null==this.sd&&(this.sd=new e.ur(!0),this.qo=this.sd.getIterator(),this.Md=new e.ja(0)),this.sd.mr();for(var t=0;tthis.Fb.length||10>this.rd.length)return this.qe=this.Fb.length,this.Yb=6,!0;null==this.sd&&(this.sd=new e.ur(!0),this.qo=this.sd.getIterator(),this.Md=new e.ja(0)),this.sd.mr();for(var t=0;tthis.Fb.length||10>this.rd.length)return this.qe=this.Fb.length,this.Yb=6,!0;null==this.ff&&(this.ff=new e.ur(!0),this.qw=this.ff.getIterator(),this.Ff=new e.ja(0)),this.ff.mr();for(var t=0;tthis.Fb.length||10>this.rd.length)return this.qe=this.Fb.length,this.Yb=6,!0;null==this.sd&&(this.sd=new e.ur(!0),this.qo=this.sd.getIterator(),this.Md=new e.ja(0)),null==this.ff&&(this.ff=new e.ur(!0),this.qw=this.ff.getIterator(),this.Ff=new e.ja(0)),this.sd.mr();for(var t=0;t>1;return n.gq(t)?(this.sd.remove(i),0!=this.qe||(this.Bf=this.Xf=-1,this.Jc=!0,!1)):(this.qo.zB(this.Fb[i].v,this.Fb[i].C,this.ra),this.Xf=i,this.Yb=10,!0)},n.prototype.MX=function(){return-1==--this.qe?(this.Bf=this.Xf=-1,this.Jc=!0,!1):(this.Tg=this.Xf=this.qe,this.Yb=13,!0)},n.prototype.NX=function(){return-1==--this.qe?(this.Bf=this.Xf=-1,this.Jc=!0,!1):(this.Xf=this.qe,this.Tg=this.rd.length,this.Yb=14,!0)},n.prototype.OX=function(){var t=this.Md.get(this.qe-1),i=this.Ff.get(this.Tg-1),h=this.Tr(t,!0),s=this.Tr(i,!1);return h>s?this.tx():h>1;if(n.gq(t))return-1!=this.Ef&&-1!=this.Kj.get(i)?(this.Bd.kd(this.Ef,this.Kj.get(i)),this.Kj.set(i,-1)):this.sd.remove(i),0!=this.qe||(this.Bf=this.Xf=-1,this.Jc=!0,!1);if(-1!=this.Df&&0>1;if(n.gq(t))return-1!=this.Df&&-1!=this.Jj.get(i)?(this.Bd.kd(this.Df,this.Jj.get(i)),this.Jj.set(i,-1)):this.ff.remove(i),0!=this.Tg||(this.Bf=this.Xf=-1,this.Jc=!0,!1);if(-1!=this.Ef&&0>1;return this.sd.xj(t),this.Yb=4,!0},n.prototype.eT=function(){if(this.Xf=this.qo.next(),-1!=this.Xf)return!1;this.Bf=this.Xf=-1;var t=this.Ff.get(this.Tg)>>1;return this.ff.xj(t),this.Yb=7,!0},n.prototype.bT=function(){if(this.Bf=this.qw.next(),-1!=this.Bf)return!1;var t=this.Md.get(this.qe)>>1;return this.sd.xj(t),this.Yb=7,!0},n.prototype.cT=function(){if(-1==--this.Tg)return this.Yb=5,!0;this.yq.L(this.Fb[this.qe]);var t=this.Fb[this.Tg];return this.yq.X(this.ra,this.ra),!this.yq.isIntersecting(t)||(this.Bf=this.Tg,!1)},n.prototype.dT=function(){if(-1==--this.Tg)return this.Yb=6,!0;this.yq.L(this.Fb[this.qe]);var t=this.rd[this.Tg];return this.yq.X(this.ra,this.ra),!this.yq.isIntersecting(t)||(this.Bf=this.Tg,!1)},n.prototype.fJ=function(){return null==this.sd?(this.Jc=!0,!1):(this.qe=this.Md.size,0>1],n.gq(t)?i.G-h:i.H+h):(i=this.rd[t>>1],n.gq(t)?i.G-h:i.H+h)},n}(),e.sC=y}(k||(k={})),function(e){var y=function(){function f(){}return f.construct=function(r,n,t,i,h,s){var o=new f;return o.v=r,o.G=n,o.Xe=t,o.C=i,o.H=h,o.Dg=s,o},f.prototype.Pa=function(){this.Xe=this.v=NaN},f.prototype.B=function(){return isNaN(this.v)},f.prototype.SS=function(){return isNaN(this.Xe)},f.prototype.L=function(r,n,t,i,h,s){void 0!==i?"number"==typeof r?(this.v=r,this.G=n,this.Xe=t,this.C=i,this.H=h,this.Dg=s):(this.v=r.x-.5*n,this.C=this.v+n,this.G=r.y-.5*t,this.H=this.G+t,this.Xe=r.z-.5*i,this.Dg=this.Xe+i):(this.v=r,this.G=n,this.Xe=t,this.C=r,this.H=n,this.Dg=t)},f.prototype.move=function(r){this.v+=r.x,this.G+=r.y,this.Xe+=r.z,this.C+=r.x,this.H+=r.y,this.Dg+=r.z},f.prototype.copyTo=function(r){r.v=this.v,r.G=this.G,r.C=this.C,r.H=this.H},f.prototype.Nk=function(r,n,t){this.v>r?this.v=r:this.Cn?this.G=n:this.Ht?this.Xe=t:this.Dgr.length)throw e.i.O();r[0]=new e.Od(this.v,this.G,this.Xe),r[1]=new e.Od(this.v,this.H,this.Xe),r[2]=new e.Od(this.C,this.H,this.Xe),r[3]=new e.Od(this.C,this.G,this.Xe),r[4]=new e.Od(this.v,this.G,this.Dg),r[5]=new e.Od(this.v,this.H,this.Dg),r[6]=new e.Od(this.C,this.H,this.Dg),r[7]=new e.Od(this.C,this.G,this.Dg)},f.prototype.bx=function(r){if(null==r||0==r.length)this.Pa();else{var n=r[0];for(this.L(n.x,n.y,n.z),n=1;nthis.AA;){var a=this.td.ia();if(h.N(a.bc()),s.N(a.xc()),h.scale(this.Xa.fc),s.scale(this.Xa.fc),e.ej.Ou(h,s)?h.x=s.x:e.ej.Mu(h,s)&&(s.x=h.x),this.wk.length=0,e.ej.oF(this.Xa.Ub,this.Xa.lc,this.Xa.Ae,h,s,this.Xa.LA,this.Xa.at,o,this.Pj,this.Is,this.wk,this.dw),null!=this.fo&&(a=this.wk.slice(0),this.fo.lG(this.fo.ea()-1,a,a.length-1)),e.ej.Nu(h,s)?(this.sq.Pa(),this.Xa.ny(h,this.ul,this.sq),this.Zn=!0):(this.sq.Pa(),this.Zn=this.sy(o[0],this.sq)),this.Zn){if(this.td.ni(),this.td.zz()){this.td.ni(),this.td.ia();break}this.td.xW();break}null==t&&(t=new e.Ea).$k(null,0),this.JD(t),i++}if(this.dw[0]=0,0=this.Pj[0]){var o=this.fi+1.570796326794897;h=o+3.141592653589793-(this.fi-this.Pj[0])}else h=(o=this.fi+1.570796326794897)+3.141592653589793-(6.283185307179586-(this.Pj[0]-this.fi));var a=!(this.fi>=this.Pj[0]&&3.141592653589793>=this.fi-this.Pj[0]||this.fio;)c-=6.283185307179586;ci.x-this.uk[0]?this.uk[0]-=6.283185307179586:3.141592653589793o?u.tX():u.bo=o,h=t.K(),e.ba.zd(h)?((h=new e.Ua(t.description)).pc(t,!0),t=h,h=1607):197==h&&(h=new e.l,t.A(h),h.S()<=u.ra||h.da()<=u.ra?((h=new e.Ua(t.description)).bd(t,!1),t=h,h=1607):((h=new e.Ea(t.description)).bd(t,!1),t=h,h=1736)),u.uX(),e.ba.Tn(h)||u.vX(),u.sb<=.5*u.bo)return 1736!=h?new e.Ea(t.description):u.Yv?t:e.ej.Sr(t,u.Sg,u.Ae,u.LA,-1,a);if(0>u.La&&1736!=h)return new e.Ea(t.description);if(u.Yv&&e.ba.Ic(h)?(i=e.ej.Sr(t,i,4,NaN,u.bo,a),t=e.cb.Bh(i,u.Sg,u.Kc)):t=e.cb.Bh(t,u.Sg,u.Kc),(t=e.Jh.nj(t,u.Kc)).B())return new e.Ea(t.description);switch(!u.Yv&&e.ba.Ic(h)&&(t=e.ej.kI(u.fc,t)),t=n.GX(t,u.Kc),h){case 1736:i=u.PN(t);break;case 1607:i=u.QN(t);break;case 550:i=u.NN(t);break;case 33:i=u.ON(t);break;default:throw e.i.ga("corrupted_geometry")}return(u=e.cb.Bh(i,u.Kc,u.Sg)).Ll(t.description),u},n.prototype.PN=function(t){var i=new e.Ea;t=new f(this,t,i),t=e.Ih.local().W(t,this.Kc,this.Vb).next(),t=e.kp.pj(t,this.Kc,2);var h=new e.Ed;return h.scale(1/this.fc,1/this.fc),i.Pc(h),i=e.kp.pj(i,this.Kc,2),0<=this.La?e.Ih.local().W(i,t,this.Kc,this.Vb):e.mp.local().W(i,t,this.Kc,this.Vb)},n.prototype.QN=function(t){return t=new f(this,t,null),t=e.Ih.local().W(t,this.Kc,this.Vb).next(),e.kp.pj(t,this.Kc,2)},n.prototype.NN=function(t){return t=new y(this,t),t=e.Ih.local().W(t,this.Kc,this.Vb).next(),e.kp.pj(t,this.Kc,2)},n.prototype.ON=function(t){(t=t.D()).scale(this.fc);var i=new e.Ea;return this.ny(t,!1,i),e.kp.pj(i,this.Kc,2)},n.prototype.sy=function(t,i,h,s,o,a){var u=t[0],c=t[t.length-1],l=u.y>c.y?u.y:c.y,p=e.F.q(this.Ub,this.lc,u.yt.He()&&(this.PV(t),!0)},n.prototype.JI=function(t,i,h){var s=h.I(),o=0a.x?(a=this.Bq,s.ig(-this.Ls,0)):(a=-this.Bq,s.ig(this.Ls,0)),i.add(t,!1),t.Pa(),h.add(i,!1),h.Pc(s),o=new e.l,h.A(o),o.X((this.Ls-o.S())/2,0),o.G=-this.Bq,o.H=this.Bq;for(var c=0;c=u));)e.kb.Ai(t,i,o.x,o.y,s,A,g,x),l?w.na(g.u,x.u):(m.na(g.u,x.u),n.bJ(o.x,m.x,j.x,p),w.na(p[0]+m.x,m.y),j.N(w)),w.scale(h),v.xf(0,-1,w),a=A,A=M++*c}},n.ZI=function(t,i,h,s,o,a,u,c,l,p){var v=new e.h,b=new e.h,d=new e.ha(0),g=new e.ha(0);for(e.kb.Ai(t,i,s.x,s.y,h,o,d,g),v.na(d.u,g.u),e.kb.Ai(t,i,s.x,s.y,h,a,d,g),b.na(d.u,g.u),h=new e.ha(0),e.kb.Sy(t,i,u.x,u.y,v.x,v.y,h),l[0]=h.u,e.kb.Sy(t,i,u.x,u.y,b.x,b.y,h),p[0]=h.u;l[0]<=p[0];)l[0]+=6.283185307179586;for(;l[0]>p[0];)l[0]-=6.283185307179586;for(;l[0]>=c;)l[0]-=6.283185307179586,p[0]-=6.283185307179586;for(;l[0]a[v]?1:0}),i=t.Ja(),c=0;cthis.sb/t&&(t=this.sb/500),.01>t&&(t=.01),this.bo=t},n}();e.QK=r}(k||(k={})),function(e){var y=function(){function f(){}return f.Of=function(r,n){var t=new e.h;t.N(n),r.push(t)},f.wp=function(r,n){r.add(n.x),r.add(n.y)},f.cB=function(r){r.Dh(r.size-2)},f.jB=function(r,n){n.na(r.get(r.size-2),r.get(r.size-1))},f.Sr=function(r,n,t,i,h,s){if(null==r)throw e.i.O();var o=r.K();if(r.B()||e.ba.Tn(o))return r;var a=new f;a.Sg=n,a.Kc=e.cb.tc(n);var u=e.cb.xv(a.Kc);if(a.Vb=s,a.Ub=e.cb.gv(a.Kc),a.lc=u*(2-u),a.fc=a.Kc.Id().ci,a.Cq=a.Kc.Mn(),a.at=a.Cq*a.fc,a.vA=i,a.uA=h,a.Ae=t,197==o?(t=new e.Ea(r.description)).bd(r,!1):e.ba.zd(o)?(t=new e.Ua(r.description)).pc(r,!0):t=r,4!=a.Ae){if((n=0==a.Sg.Nb(a.Kc)?e.cb.Bh(t,a.Sg,a.Kc):e.Jh.nj(t,a.Kc)).B())return n;n=f.kI(a.fc,n),n=a.Uy(n),n=e.kp.pj(n,a.Kc,a.Ae),a=e.cb.Bh(n,a.Kc,a.Sg)}else{if(2==e.Gg.Tb(n)?(r=e.cb.ol(),(n=e.Zj.local().W(t,r,n,s))==r&&(n=new e.Ea,r.copyTo(n))):n=e.Jh.nj(t,a.Kc),n.B())return n;a=a.yX(n)}return a},f.kI=function(r,n){var t=new e.l;if(n.yc(t),3.141592653589793>t.S()*r)return n;var i=!1;t=n.Ha();for(var h=new e.h,s=new e.h;t.ab();)for(;t.Ia();){var o=t.ia();if(h.N(o.bc()),s.N(o.xc()),h.scale(r),s.scale(r),3.141592653589793s.x-h.x)for(;-6.283185307179586>s.x-h.x;)s.x+=6.283185307179586;f.Yi(s.x,NaN,g),p.N(s)}else c.N(s),f.vU(c),f.Yi(c.x,d,g),p.na(g[0]+c.x,c.y);.5>Math.abs(p.x-s.x)&&p.N(s),u?(o.Vw(0,b),v.N(l),v.scale(1/r),b.Db(v),(a=t.xm())?i.nf(b):i.lineTo(b),t.Sn()&&!n.ec(t.gb)&&(o.Vw(1,b),v.N(p),v.scale(1/r),b.Db(v),i.lineTo(b))):((a=t.xm())&&i.Cz(null,0),o=i.ea()-1,v.N(l),v.scale(1/r),i.xf(o,-1,v),t.Sn()&&!n.ec(t.gb)&&(v.N(p),v.scale(1/r),i.xf(o,-1,v)))}return i},f.oF=function(r,n,t,i,h,s,o,a,u,c,l,p){var v=new e.h,b=new e.h,d=0m&&(m+=6.283185307179586),0>(g=g.u)&&(g+=6.283185307179586),null!=u&&(u[0]=x),null!=c&&(c[0]=m),null!=l&&(l[0]=g),c=u=NaN,null!=p&&(u=((c=e.F.Ch(r,n))-(l=e.F.q(r,n,i.y)))/x,c=(c+l)/x),l=f.Ou(i,h),g=f.Mu(i,h),m=l||g;var w=f.AE(i,h,a),j=new e.ha(0),M=new e.ha(0),A=new e.h,z=new e.h,N=new e.h;f.Yi(i.x,NaN,b);var I=[b[0]];if(x<=s)f.Of(v,i),f.Yi(h.x,NaN,b),p?.add(0),m?(l&&f.fB(i,h,p,v),g&&f.dB(i,h,p,v)):w?f.eB(i,h,d,u,c,p,v):0N.x&&(b[0]+=6.283185307179586,N.na(b[0]+A.x,A.y)):P.xo.x?o.x+=6.283185307179586:3.141592653589793S;S++)if(e.kb.qj(r,n,i.x,i.y,(P=D[S]*c+(1-D[S])*u)*h,s,x,m,t),A.na(x.u,m.u),0==S&&(C=P,z.N(A)),f.RW(j,A,M,I),I.ic(I.ge(A,!0),N),e.kb.xd(r,n,A.x,A.y,N.x,N.y,w,null,null,2),w.u>l){B=!0;break}B?(M.N(z),c=C,f.wp(o,M),a.add(c)):(f.cB(o),a.Gn(a.size-1,1,a.size-1),0=o&&W.u<=s&&3.141592653589793>Math.abs(d.x-g.x)||i.Tx(B,C)<=h));I++){var L=U[I]*C+(1-U[I])*B;if(i.ic(L,p),N?x.na(p.x*t,p.y*t):(z[0][0]=p.x,z[0][1]=p.y,e.cb.wt(),x.x=z[0][0]*t,x.y=z[0][1]*t),0==I&&(it=L,b.N(p),w.N(x),0s||3.141592653589793<=Math.abs(d.x-g.x)))){O=!0;break}if(S&&0s||3.141592653589793<=Math.abs(d.x-x.x)){O=!0;break}}else if(0o){O=!0;break}if(S){if(e.kb.xd(r,n,A.x,A.y,m.x,m.y,V,null,null,2),V.u>o){O=!0;break}if(e.kb.xd(r,n,m.x,m.y,x.x,x.y,Z,null,null,2),Z.u>o){O=!0;break}}}}O?(l.N(b),g.N(w),C=it,f.wp(D,l),f.wp(F,g),H.add(C)):(f.cB(D),f.cB(F),H.Gn(H.size-1,1,H.size-1),f.Of(u,l),a?.add(P+=W.u),0Math.abs(n.x-r.x)?(i.Ec(r),i.Sl(3.141592653589793<=t.x-r.x?t.x-6.283185307179586:3.141592653589793<=r.x-t.x?t.x+6.283185307179586:t.x,t.y)):(i.Ec(t),i.Sl(3.141592653589793<=r.x-t.x?r.x-6.283185307179586:3.141592653589793<=t.x-r.x?r.x+6.283185307179586:r.x,r.y))},f.TJ=function(r,n){for(var t=0;tr.x)for(;-3.141592653589793>r.x;)r.x+=6.283185307179586;if(3.141592653589793f.v+i&&sf?-f:f},y.Mb=function(f,r){return 0<=r?y.R(f):-y.R(f)},y.$=function(f,r){return f==r||y.R(f-r)<=y.EC*(1+(y.R(f)+y.R(r))/2)},y.Dd=function(f){return 0==f||y.R(f)<=y.EC},y.Ch=function(f,r){var n=(r=(1-(r=Math.sqrt(1-r)))/(1+r))*r;return f/(1+r)*(1+n*(.25+n*(.015625+1/256*n)))*y.zL},y.zL=1.5707963267948966,y.EC=3552713678800501e-30,y}()}(k||(k={})),function(e){var y=function(r){this.Yf=r,this.Mk=this.Yf.getCode(),0>this.Mk&&(this.Mk=0)};e.zY=y;var f=function(){function r(n){void 0===n&&(n=null),this.Ej=null,this.Wn=!1,null!==n&&(this.Ej=new y(n))}return r.prototype.Fc=function(){return null!=this.Ej?this.Ej.Mk:0},r.prototype.Qf=function(){var n=new r;return this.copyTo(n),n},r.prototype.copyTo=function(n){n.Ej=this.Ej,n.Wn=this.Wn},r.prototype.Lz=function(){this.Wn=!this.Wn},r.prototype.sm=function(){return null!=this.Ej?this.Ej.Yf:null},r.prototype.GJ=function(n){if(0>=n)throw e.i.O();if(n!=this.Fc()){if(null==(n=e.qf.geogtran(n)))throw e.i.O("Geogtran not found.");this.Ej=new y(n)}},r.prototype.wz=function(){return null==this.Ej?null:this.Ej.Yf.toString()},r.prototype.pX=function(n){if(null==n)throw e.i.O();var t=null;try{t=e.qf.fromString(e.Tc.PE_TYPE_GEOGTRAN,n)}catch{throw e.i.O()}this.Ej=new y(t)},r.prototype.Nb=function(n){return n==this||!(!(n instanceof r)||(0>=this.Fc()||this.Fc()!=n.Fc())&&!this.sm().isEqual(n.sm()))&&this.Wn==n.Wn},r.prototype.toString=function(){var n="GeographicTransformation: "+this.wz();return 200r.I())},f.wE=function(r){return!(r.B()||1607!=r.K()&&1736!=r.K()||20>r.I())},f}();e.Wk=y}(k||(k={})),function(e){e.ac=function(){function y(){}return y.OT=function(f){var r=new e.Ea;return r.rx(f.gs(),f.js()),r.Aj(f.gs(),f.hs()),r.Aj(f.fs(),f.hs()),r.Aj(f.fs(),f.js()),r},y.Bh=function(f,r){return null===f?null:e.Gx.local().W(f,r,null)},y.fY=function(f,r){var n=e.Ih.local();return f=new e.$c(f),n.W(f,r,null).next()},y.km=function(f,r,n){return e.mp.local().W(f,r,n,null)},y.gp=function(f,r,n){return e.Jx.local().W(f,r,n,null)},y.RX=function(f,r,n){var t=e.Jx.local();for(f=new e.$c(f),r=new e.$c(r),n=t.W(f,r,n,null),t=[];null!=(r=n.next());)t.push(r);return t},y.Nb=function(f,r,n){return e.fj.local().W(3,f,r,n,null)},y.OP=function(f,r,n){return e.fj.local().W(4,f,r,n,null)},y.MS=function(f,r,n){var t=e.Zj.local();for(f=new e.$c(f),r=new e.$c(r),n=t.W(f,r,n,null),t=[];null!=(r=n.next());)t.push(r);return t},y.LP=function(f,r,n){var t=e.mp.local();for(f=new e.$c(f),r=new e.$c(r),n=t.W(f,r,n,null),t=[];null!=(r=n.next());)t.push(r);return t},y.Fa=function(f,r,n){return e.Zj.local().W(f,r,n,null)},y.LS=function(f,r,n){if(null===(f=e.Zj.local().W(f,r,n,null,1)))return[];if(550===f.K()){for(r=[],n=0;nf.Eb())return 0;var t=null;if(null!=r){if(t=r.Id(),null!=n&&t.Fc()!=n.Fc()&&t.pd!=n.pd)throw e.i.Zk()}else if(null!=n)throw e.i.O();1736==f.K()||197==f.K()?r=f.ng():e.ba.zd(f.K())?(r=new e.Ua(f.description)).pc(f,!0):r=f,f=0,r=r.Ha();for(var i=new e.h,h=new e.h;r.ab();)for(;r.Ia();){var s=r.ia();s.$p(i),s.Vr(h),f+=e.h.ub(i,h)}return null!==t&&null!==n&&(f=e.Uc.Ph(f,t,n)),f},y.aP=function(f){return void 0!==f.points?y.hS(f,void 0!==f.hasZ&&f.hasZ,void 0!==f.hasM&&f.hasM):void 0!==f.rings?y.gG(f.rings,void 0!==f.hasZ&&f.hasZ,void 0!==f.hasM&&f.hasM,"P"):void 0!==f.paths?y.gG(f.paths,void 0!==f.hasZ&&f.hasZ,void 0!==f.hasM&&f.hasM,"L"):void 0!==f.x?y.iS(f):void 0!==f.xmin?y.gS(f):null},y.iS=function(f){if(null==f.x||"NaN"==f.x)return new e.Ta;var r=new e.Ta(f.x,f.y);return null!=f.z&&r.sX(f.z),null!=f.m&&r.cX(f.m),r},y.gS=function(f){if(null==f.xmin||"NaN"==f.xmin)return new e.Hh;var r=new e.Hh(f.xmin,f.ymin,f.xmax,f.ymax);return null!=f.zmin&&r.setInterval(1,0,f.zmin,f.zmax),null!=f.mmin&&r.setInterval(2,0,f.mmin,f.mmax),r},y.hS=function(f,r,n){var t=0,i=new e.ee,h=3*f.points.length;h%2!=0&&h++,2>h&&(h=2);var s=e.P.truncate(3*f.points.length/2);4>s?s=4:16>s&&(s=16),h=e.Zc.Fn(h,0);var o=e.Zc.Fn(s);s=e.Zc.Fn(s);for(var a=0;a=h?(p[v]=!1,c+=1,o.add(u),a.add(i),u+=b):p[v]=!0}for((t=3*u)%2!=0&&t++,2>t&&(t=2),4>(v=e.P.truncate(3*u/2))?v=4:16>v&&(v=16),t=e.Zc.Fn(t,0),i=e.Zc.Fn(v),h=e.Zc.Fn(v),v=b=0;vo)throw e.i.O();this.Si.pa=s-a,this.Si.wa=o+a,this.ji.resize(0),this.ie=0,this.tg[0]=0},h.prototype.Wo=function(s,o){this.Si.pa=s-o,this.Si.wa=s+o,this.ji.resize(0),this.ie=0,this.tg[0]=0},h.prototype.next=function(){if(!this.Za.nq)throw e.i.Hb();if(0>this.ie)return-1;for(var s=!0;s;)switch(this.tg[this.ie]){case 1:s=this.AU();break;case 2:s=this.BU();break;case 3:s=this.CU();break;case 4:s=this.DU();break;case 5:s=this.AW();break;case 6:s=this.fT();break;case 7:s=this.oN();break;case 0:s=this.Bz();break;default:throw e.i.Ra()}return-1!=this.Qg?this.Op()>>1:-1},h.construct=function(s){var o=new h;return o.Za=s,o.ji.Jb(20),o.ie=-1,o},h.prototype.Bz=function(){return this.Qg=this.qH=this.Oi=this.Mc=-1,null!=this.Za.ne&&0=this.Si.pa?(this.gi=this.LR(),!1):(this.ie--,!0)},h.prototype.oN=function(){return this.Qg=this.gi,-1!=this.Qg&&i.iq(this.Op())?(this.gi=this.NF(),!1):(this.ie--,!0)},h.prototype.NF=function(){return this.Za.Uf?this.Za.bg.lb(this.Qg):this.Za.Vi.lb(this.Qg)},h.prototype.LR=function(){return this.Za.Uf?this.Za.bg.xe(this.Qg):this.Za.Vi.xe(this.Qg)},h.prototype.Op=function(){return this.Za.Uf?this.Za.bg.ka(this.Qg):this.Za.Vi.getData(this.Qg)},h}();e.AY=t;var i=function(){function h(s){this.Cm=this.bi=this.bg=this.Vi=this.Mm=this.Gj=this.ne=this.Hj=null,this.Uf=s,this.nq=this.Uv=!1}return h.prototype.mr=function(){this.Pk(!0)},h.prototype.Dr=function(s,o){if(!this.Uv)throw e.i.Hb();this.Hj.push(new e.Oc(s,o))},h.prototype.Hp=function(){if(!this.Uv)throw e.i.ga("invalid call");this.Uv=!1,this.nq=!0,this.Uf||(this.qS(),this.aw=this.Hj.length)},h.prototype.xj=function(s){if(!this.Uf||!this.nq)throw e.i.O("invalid call");if(-1==this.kf){var o=this.Hj.length;if(this.dA){var a=new e.ja(0);a.Jb(2*o),this.XI(a),this.bi.Jb(2*o),this.bi.resize(0),this.WI(a),this.Mm.resize(o,-1),this.Mm.Yj(-1,0,o),this.dA=!1}else this.Mm.Yj(-1,0,o);this.kf=this.Vu()}o=this.kG(s<<1,this.kf),a=this.bg.addElement(1+(s<<1),this.rz(o)),this.QJ(o,a),this.Mm.set(s,o),this.aw++},h.prototype.remove=function(s){if(!this.Uf||!this.nq)throw e.i.ga("invalid call");var o=this.Mm.get(s);if(-1==o)throw e.i.O("the interval does not exist in the interval tree");this.Mm.set(s,-1),this.aw--;var a=this.rz(o),u=this.bg.UR(a);this.bg.wd(this.rR(o),a),this.bg.wd(this.OR(o),a),0==(s=this.bg.size(a))&&(this.bg.HP(a),this.UJ(u,-1)),this.Gj.kd(o),a=this.PF(u);var c=this.sj(u),l=this.nk(u);for(o=0;!(0>1);-1!=c?this.QJ(c,this.Vi.addElement(this.rz(c),u)):(c=this.kG(u,this.kf),a.set(u>>1,c))}},h.prototype.kG=function(s,o){var a=o,u=o,c=-1,l=0,p=this.bi.size-1,v=0,b=s>>1,d=NaN,g=NaN,x=!0,m=this.yR(b);for(b=this.vR(b);x;){lw&&(ww)-1!=o&&(o==a?(u=a,d=w,g=-1!=(o=this.nk(a))?this.Pp(o):NaN):g>1];return h.iq(s)?o.pa:o.wa},h}();e.ur=i}(k||(k={})),function(e){var y=function(){function f(r){if(null==r)throw e.i.ga("Invalid arguement");this.hf=r;var n=r.iR();this.no=n.cS()?r.ef.DG()?e.ui.PannableFold:e.ui.Clip:e.ui.DontClip,this.Sm=n.dS()?r.$f.DG()?e.ui.PannableFold:e.ui.Clip:e.ui.DontClip,this.Dm=n.Lr,this.hH=n.Xu,this.WG=(r=this.hf.nH).ks(2147483648),this.Wv=r.ks(1073741824)}return f.Bh=function(r,n,t){return n.yw.Bh(r,t)},f.Tt=function(r,n,t,i){return r.yw.Tt(n,t,i)},f.St=function(r,n,t,i){if((r=r.yw.Tt(n,t=0>t?n.length:t,i))==t)return r;for(var h=n=0;hh.H){var b=e.l.construct(a.v-1,h.G,a.C+1,h.H);if((v=e.ti.Pu(v,b,t,NaN,0,n)).B())return v}a.S()>2*h.S()&&(v=e.Ab.Jp(v,-2*h.S(),2*h.S(),t,!0,0,!0,n))}a=this.hH,(h=!isNaN(a))&&(v=e.Zl.local().W(v,a,n)),b=c?i.mk():null;var d=NaN;u&&(d=t.Bi());var g=null!=i.Yr();if(this.WG)u&&(e.Ab.wr(t,d,v,o),h&&(u=t.jh(),a*=(d=t.tc().jh())/u)),e.Ab.vr(this.hf,v,p,o),h&&(u=t.tc().jh(),a*=(d=i.tc().jh())/u),t=v;else{var x=new e.Ua(v.description);x.yD(v),u&&(e.Ab.wr(t,d,x,o),h&&(u=t.jh(),a*=(d=t.tc().jh())/u)),e.Ab.vr(this.hf,x,p,o),h&&(u=t.tc().rm(),a*=(d=i.tc().rm())/u),p=NaN,c?(b=i.mk(),p=i.Bi()):isNaN(this.Dm)||(p=this.Dm),u=f.vv(t)|f.vv(i),d=10*l.Yd(0),this.Wv&&(u=3,d=0),t=e.Ab.PQ(v,t,x,l,p,n,u,d)}return g&&(t=e.Ab.SD(t,i,n)),c&&(s||(c=l.Le().S(),t.Vg(0,0).S()>=c-l.Yd(0)&&(l=b.getNorthPoleLocation(),c=b.getSouthPoleLocation(),v=b.getNorthPoleGeometry(),b=b.getSouthPoleGeometry(),p=0,v==e.Eg.PE_POLE_POINT&&l!=e.Eg.PE_POLE_OUTSIDE_BOUNDARY&&(p=1),b==e.Eg.PE_POLE_POINT&&c!=e.Eg.PE_POLE_OUTSIDE_BOUNDARY&&(p|=2),0!==p&&(s=!0))),t=e.Ab.Hz(t,i,this.Sm,n),h&&(t=e.Zl.local().W(t,a,n)),e.Ab.Kx(i,t,o)),t.B()||(s&&(t=e.$l.local().W(t,i,!1,n)),null!=r&&(t=r.al(t,!1),this.yp(r,e.dm.reverse,t),t=r.bl(t,!1))),t},f.vv=function(r){if(2!=r.Tb())return 0;var n=0,t=r.mk();r=t.getNorthPoleLocation();var i=t.getSouthPoleLocation(),h=t.getNorthPoleGeometry();return t=t.getSouthPoleGeometry(),h==e.Eg.PE_POLE_POINT&&r!=e.Eg.PE_POLE_OUTSIDE_BOUNDARY&&(n=1),t==e.Eg.PE_POLE_POINT&&i!=e.Eg.PE_POLE_OUTSIDE_BOUNDARY&&(n|=2),n},f.prototype.cW=function(r,n){var t=this.hf.ef,i=this.hf.$f,h=t.Tb(),s=i.Tb(),o=e.P.Hu(Math.min(r.I(),64)),a=e.Ua.kg(r);3==h&&(h=(t=(r=t.Li).hk()).Tb(),a=r.bl(a,!0),this.yp(r,e.dm.forward,a),a=r.al(a,!0)),r=null,3==s&&(s=(i=(r=i.Li).hk()).Tb());var u=2==h;h=(s=2==s)?i.tc():i;var c=!s&&!this.Wv;if(u){if((a=e.Ab.OI(a,t,this.no,n)).B())return a}else{var l=new e.l;a.yc(l);var p=t.Le();if((l.Gp.H)&&(l=e.l.construct(l.v-1,p.G,l.C+1,p.H),(a=e.ti.Pu(a,l,t,NaN,0,n)).B()))return a}var v=NaN;u&&(v=t.Bi()),l=null!=i.Yr(),p=this.hH;var b=!isNaN(p);if(b&&(a=e.Zl.local().W(a,p,n)),this.WG)u&&e.Ab.wr(t,v,a,o),b&&(u=t.jh(),p*=(v=t.tc().jh())/u),e.Ab.vr(this.hf,a,c,o),b&&(u=t.tc().jh(),p*=(v=i.tc().jh())/u),t=a;else{var d=new e.Ua(a.description);d.yD(a),u&&(e.Ab.wr(t,v,d,o),b&&(u=t.jh(),p*=(v=t.tc().jh())/u)),e.Ab.vr(this.hf,d,c,o),b&&(u=t.tc().jh(),p*=(v=i.tc().jh())/u),c=NaN,s?c=i.Bi():isNaN(this.Dm)||(c=this.Dm),u=f.vv(t)|f.vv(i),v=10*h.Yd(0),this.Wv&&(u=3,v=0),t=e.Ab.QQ(a,t,d,h,c,n,u,v)}return l&&(t=e.Ab.SD(t,i,n)),s&&(t=e.Ab.Hz(t,i,this.Sm,n),b&&(t=e.Zl.local().W(t,p,n)),e.Ab.Kx(i,t,o)),t.B()||null!=r&&(t=r.al(t,!1),this.yp(r,e.dm.reverse,t),t=r.bl(t,!1)),t},f.prototype.$V=function(r,n){var t=(r.da()+r.S())/400;return 0!=t?(t=e.Zl.local().W(r,t,n),t=this.QI(t,n),n=r.Ja(),t.dn(n)):(n=new e.Ta(r.Kp()),t=this.SI(n),n=r.Ja(),t.B()?n.Pa():(r.copyTo(n),r=t.D(),n.L(r.x,r.y,r.x,r.y))),n},f.prototype.aW=function(r,n){r=e.ba.kg(r);var t=this.hf.ef,i=this.hf.$f,h=t.Tb(),s=i.Tb(),o=e.P.Hu(Math.min(r.I(),64));if(3==h){var a=t.Li;h=(t=a.hk()).Tb(),r=a.al(r,!0),this.yp(a,e.dm.forward,r),r=a.bl(r,!0)}if(2==h){if(this.no==e.ui.Clip?r=e.Zj.local().W(r,t.ol(),t,n):t.Xc()&&(h=new e.l,r.yc(h),t.Le().contains(h)||(this.no==e.ui.PannableFold&&(r=e.Ab.nj(r,t)),e.Ab.Lt(r,t.Le(),t.Yd(0),!0),r=e.Ab.Hn(r,t,0,!0,0,n))),r.B())return r;e.Ab.wr(t,0,r,o)}else e.Ab.Lt(r,t.Le(),t.Yd(0),!0);return e.Ab.vr(this.hf,r,!1,o),t=0,h=!1,a=null,3==s&&(h=!0,s=(i=(a=i.Li).hk()).Tb()),(s=2==s)?t=i.Bi():isNaN(this.Dm)||(t=this.Dm),s&&this.Sm!=e.ui.Clip||(r=e.Ab.Hn(r,i.tc(),t,!1,0,n)),s&&(r=e.Ab.Hz(r,i,this.Sm,n),e.Ab.Kx(i,r,o),r.B())||h&&(r=a.al(r,!0),this.yp(a,e.dm.reverse,r),r=a.bl(r,!0)),r},f.prototype.yp=function(r,n,t){var i=t.I();if(0!=i){for(var h=t.vb(0),s=e.P.mg(200,0),o=[],a=0;ah.v+s&&an?this.yv(t,i):this.jv(t,i);case 1:var h=this.yv(t,i);return t=this.jv(t,i),e.mc.jq(h,t,n);case 2:throw e.i.ga("not implemented")}throw e.i.Ra()},r.prototype.ge=function(n,t){var i=this.qa-this.ta,h=this.ma-this.oa,s=i*i+h*h;return 0==s?.5:(n=((n.x-this.ta)*i+(n.y-this.oa)*h)/s,t||(0>n?n=0:1(t=(t-this.oa)/n)||1(t=(t-this.ta)/n)||1(t=8881784197001252e-31*(Math.abs(i.x*t.y)+Math.abs(i.y*t.x)))?-1:n<-t?1:0},r.prototype.tp=function(n,t,i,h){var s=this.ta,o=this.oa,a=n-s,u=t-o;if((a=Math.sqrt(a*a+u*u))<=Math.max(i,6661338147750939e-31*a))return h&&0==a?NaN:0;if(a=n-this.qa,u=t-this.ma,(a=Math.sqrt(a*a+u*u))<=Math.max(i,6661338147750939e-31*a))return h&&0==a?NaN:1;if(a=this.qa-this.ta,u=this.ma-this.oa,0<(h=Math.sqrt(a*a+u*u))){var c=1/h,l=n-s,p=t-o,v=l*(a*=c)+p*(u*=c),b=17763568394002505e-31*(Math.abs(l*a)+Math.abs(p*u)),d=a;if(a=-u,u=d,v<-(b=Math.max(i,b))||v>h+b)return NaN;if(Math.abs(l*a+p*u)<=Math.max(i,17763568394002505e-31*(Math.abs(l*a)+Math.abs(p*u)))&&(.5>=(a=e.P.Tk(v*c,0,1))?(u=this.ta+(this.qa-this.ta)*a,h=this.oa+(this.ma-this.oa)*a):(u=this.qa-(this.qa-this.ta)*(1-a),h=this.ma-(this.ma-this.oa)*(1-a)),e.h.Jy(u,h,n,t)<=i)){if(.5>a){if(e.h.Jy(u,h,s,o)<=i)return 0}else if(e.h.Jy(u,h,this.qa,this.ma)<=i)return 1;return a}}return NaN},r.prototype.Nb=function(n){return null!=n&&(n==this||n.constructor===this.constructor&&this.AM(n))},r.prototype.mD=function(n,t,i){var h=i?this.ta:this.qa;i=i?this.oa:this.ma;var s=new e.h;return s.x=n.qa-h,s.y=n.ma-i,!(t.Sh(s)>6661338147750939e-31*t.aD(s))||(s.x=n.ta-h,s.y=n.oa-i,t.Sh(s)<=6661338147750939e-31*t.aD(s))},r.prototype.lD=function(n){var t=new e.h;return t.x=this.qa-this.ta,t.y=this.ma-this.oa,!!this.mD(n,t,!1)&&(t.Uq(),!!this.mD(n,t,!0))},r.IM=function(n,t){var i=n.wu(t.ta,t.oa),h=n.wu(t.qa,t.ma);return!(0>i&&0>h||0i&&0>h||0(h=t.Rb())?n.lD(t):t.lD(n)))},r.GM=function(n,t,i){var h=e.h.construct(NaN,NaN),s=n.qa-n.ta,o=n.ma-n.oa,a=t.qa-t.ta,u=t.ma-t.oa,c=a*o-s*u;if(0==c)return h;var l=8881784197001252e-31*(Math.abs(a*o)+Math.abs(s*u)),p=t.ta-n.ta,v=t.oa-n.oa,b=a*v-p*u,d=b/c,g=Math.abs(c);return d<-(a=(8881784197001252e-31*(Math.abs(a*v)+Math.abs(p*u))*g+l*Math.abs(b))/(c*c)+2220446049250313e-31*Math.abs(d))||d>1+a||(a=(u=s*v-p*o)/c)<-(s=(8881784197001252e-31*(Math.abs(s*v)+Math.abs(p*o))*g+l*Math.abs(u))/(c*c)+2220446049250313e-31*Math.abs(a))||a>1+s||(d=e.P.Tk(d,0,1),s=e.P.Tk(a,0,1),o=n.ic(d),c=t.ic(s),(l=new e.h).vc(o,c),l.length()>i&&(l.add(o,c),l.scale(.5),d=n.ge(l,!1),s=t.ge(l,!1),n=n.ic(d),t=t.ic(s),n.sub(t),n.length()>i)||h.na(d,s)),h},r.JM=function(n,t,i,h){var s=0;if((n.ta==t.ta&&n.oa==t.oa||n.ta==t.qa&&n.oa==t.ma)&&(s++,!h))return 1;if(n.qa==t.ta&&n.ma==t.oa||n.qa==t.qa&&n.ma==t.ma){if(2==++s)return 2;if(!h)return 1}return t.xi(n.ta,n.oa,i)||t.xi(n.qa,n.ma,i)||n.xi(t.ta,t.oa,i)||n.xi(t.qa,t.ma,i)?1:h&&0!=s||0==r.IM(n,t)?0:1},r.Yx=function(n,t,i,h,s,o){var a=0,u=n.tp(t.ta,t.oa,o,!1),c=n.tp(t.qa,t.ma,o,!1),l=t.tp(n.ta,n.oa,o,!1),p=t.tp(n.qa,n.ma,o,!1);return isNaN(u)||(null!=h&&(h[a]=u),null!=s&&(s[a]=0),null!=i&&(i[a]=e.h.construct(t.ta,t.oa)),a++),isNaN(c)||(null!=h&&(h[a]=c),null!=s&&(s[a]=1),null!=i&&(i[a]=e.h.construct(t.qa,t.ma)),a++),2==a||isNaN(l)||0==u&&0==l||0==c&&1==l||(null!=h&&(h[a]=0),null!=s&&(s[a]=l),null!=i&&(i[a]=e.h.construct(n.ta,n.oa)),a++),2==a||isNaN(p)||1==u&&0==p||1==c&&1==p||(null!=h&&(h[a]=1),null!=s&&(s[a]=p),null!=i&&(i[a]=e.h.construct(t.qa,t.ma)),a++),0h[1]&&(n=h[0],h[0]=h[1],h[1]=n,null!=s&&(h=s[0],s[0]=s[1],s[1]=h),null!=i&&(s=e.h.construct(i[0].x,i[0].y),i[0]=i[1],i[1]=s)),a):(a=r.GM(n,t,o),isNaN(a.x)?0:(null!=i&&(i[0]=n.ic(a.x)),null!=h&&(h[0]=a.x),null!=s&&(s[0]=a.y),1))},r.prototype.$F=function(){return 0},r.prototype.qp=function(){},r.prototype.toString=function(){return"Line: ["+this.ta.toString()+", "+this.oa.toString()+", "+this.qa.toString()+", "+this.ma.toString()+"]"},r}(e.NC);e.zb=y}(k||(k={})),function(e){var y=function(){function f(){this.Lm=[],this.za=-1}return f.prototype.Ma=function(){return this.za},f.prototype.next=function(){if(null!=this.Lm&&0!=this.Lm.length){this.za++;var r=this.Lm[0];return this.Lm=1>=this.Lm.length?[]:this.Lm.slice(1),r}return this.Lm=null},f.prototype.VX=function(r){this.Lm.push(r)},f.prototype.re=function(){},f}();e.bL=y}(k||(k={})),function(e){var y;(y=e.NL||(e.NL={}))[y.enumFillRuleOddEven=0]="enumFillRuleOddEven",y[y.enumFillRuleWinding=1]="enumFillRuleWinding";var f=function(r){function n(t,i){var h=r.call(this)||this;if(h.yf=!1,h.Gq=null,h.uq=0,h.tq=0,h.Cj=null,h.Og=!1,h.nb=null,h.mb=null,h.Se=null,h.Nj=null,h.Td=null,h.vq=0,h.gb=0,h.zq=0,void 0===i)h.yf=t,h.Og=!1,h.vq=0,h.uq=0,h.tq=0,h.xa=0,h.description=e.fe.pg();else{if(null==i)throw e.i.O();h.yf=t,h.Og=!1,h.vq=0,h.uq=0,h.tq=0,h.xa=0,h.description=i}return h.Cj=null,h.gb=0,h}return J(n,r),n.prototype.vm=function(){return 0i)throw e.i.Ra();if(this.ec(t)){if(null==this.mb)throw e.i.Ra();var h=this.xa,s=this.Ca(t),o=this.Wc(t);this.fm(this.xa+1),this.oc();for(var a=0,u=this.description.Ba;at;i--)h=this.nb.read(i),this.nb.write(i,h+1);this.mb.FE(t,1)}},n.prototype.Cp=function(){if(this.vx(),void 0===t){this.Og=!1;var t=this.ea()-1}var i=this.mb.read(t);this.mb.write(t,1|i),null!=this.Se&&(t=this.Wc(t)-1,this.Se.write(t,1),this.Nj.write(t,-1))},n.prototype.ec=function(t){return 0!=(1&this.mb.read(t))},n.prototype.Pn=function(t){if(this.ec(t))return!0;var i=this.Ca(t);return!(i>(t=this.Wc(t)-1))&&(i=this.Oa(i),t=this.Oa(t),i.rb(t))},n.prototype.Av=function(t){return 0!=(2&this.mb.read(t))},n.prototype.pc=function(t,i){if(this.Ll(t.description),322!=t.K())throw e.i.Ra();var h=new e.Ta;(i||this.B())&&(t.Vo(h),this.nf(h)),t.Ro(h),this.lineTo(h)},n.prototype.vp=function(t){var i=0==this.xa;this.rx(t.v,t.G),this.Aj(t.v,t.H),this.Aj(t.C,t.H),this.Aj(t.C,t.G),this.Cp(),this.Og=!1,i&&this.Nf(256,!1)},n.prototype.bd=function(t,i){if(!t.B()){for(var h=0==this.xa,s=new e.Ta(this.description),o=0;4>o;o++)t.If(i?4-o-1:o,s),0==o?this.nf(s):this.lineTo(s);this.Cp(),this.Og=!1,h&&!i&&this.Nf(256,!1)}},n.prototype.add=function(t,i){for(var h=0;hi&&(i=t.ea()-1),i>=t.ea()||0>h||0>s||s>t.tv(i))throw e.i.ga("index out of bounds");if(0!=s){var a=t.ec(i)&&h+s==t.tv(i);if(!a||1!=s){if(this.Og=!1,this.Ll(t.description),h=t.Ca(i)+h+1,o&&(s++,h--),a&&s--,a=this.xa,this.fm(this.xa+s),this.oc(),o){if(0==s)return;this.nb.add(this.xa),o=t.mb.read(i),o&=-5,this.yf&&(o|=1),this.mb.write(this.mb.size-1,o),this.mb.add(0)}else this.nb.write(this.mb.size-1,this.xa);o=0;for(var u=this.description.Ba;op||null==t.Aa[p]?this.Aa[o].Nn(l*a,e.sa.te(c),s*l,l*a):this.Aa[o].On(l*a,t.Aa[p],l*h,s*l,!0,l,l*a)}if(this.vm()||t.Av(i))throw e.i.Ra();this.Qc(1993)}}},n.prototype.jJ=function(){for(var t=0,i=this.ea();t=this.ea())throw e.i.O();var i=this.Ca(t),h=this.Ka(t);t=this.ec(t)?1:0;for(var s=0,o=this.description.Ba;st&&(t=i-1),t>=i)throw e.i.O();for(var h=this.Ca(t),s=this.Ka(t),o=0,a=this.description.Ba;o=i.ea())throw e.i.O();var o=this.ea();if(t>o)throw e.i.O();0>t&&(t=o),0>h&&(h=i.ea()-1),this.Og=!1,this.Ll(i.description),i.oc();var a=i.Ca(h),u=i.Ka(h),c=this.xa,l=i.ec(h)&&!s?1:0;this.fm(this.xa+u),this.oc();for(var p=t=t+1;s--)a=this.nb.read(s-1),this.nb.write(s,a+u);for(i.Av(h),this.mb.add(0),s=o-1;s>=t+1;s--)o=this.mb.read(s),this.mb.write(s+1,o&=-5);o=i.ER().read(h),o&=-5,this.yf&&(o|=1),this.mb.write(t,o)},n.prototype.Cz=function(t,i){var h=-1,s=this.ea();if(h>s)throw e.i.O();0>h&&(h=s),this.Og=!1;var o=this.xa;this.fm(this.xa+i),this.oc();var a=h=h+1;o--)a=this.nb.read(o-1),this.nb.write(o,a+i);for(this.mb.add(0),o=s-1;o>=h+1;o--)i=this.mb.read(o),this.mb.write(o+1,i&=-5);this.yf&&this.mb.write(h,1)},n.prototype.lG=function(t,i,h){var s=-1;if(0>t&&(t=this.ea()),t>this.ea()||s>this.Ka(t)||h>i.length)throw e.i.ga("index out of bounds");if(0!=h){t==this.ea()&&(this.nb.add(this.xa),this.mb.add(this.yf?1:0)),0>s&&(s=this.Ka(t)),this.oc();var o=this.xa;this.fm(this.xa+h),this.oc();for(var a=0,u=this.description.Ba;at&&(t=this.ea()),t>=s||i>this.Ka(t))throw e.i.ga("index out of bounds");t==this.ea()&&(this.nb.add(this.xa),this.mb.add(this.yf?1:0)),0>i&&(i=this.Ka(t));var o=this.xa;this.fm(this.xa+1),this.oc();var a=this.Ca(t);this.Aa[0].xj(2*(a+i),h,2*o),h=1;for(var u=this.description.Ba;ht&&(t=h-1),t>=h||i>=this.Ka(t))throw e.i.ga("index out of bounds");this.oc();var s=this.Ca(t);0>i&&(i=this.Ka(t)-1),i=s+i,s=0;for(var o=this.description.Ba;s=t+1;h--)i=this.nb.read(h),this.nb.write(h,i-1);this.xa--,this.Rg--,this.Qc(1993)},n.prototype.pE=function(t,i,h,s){if(t=this.Ca(t)+i,(h=this.Ca(h)+s)t||h>this.I()-1)throw e.i.O();i=0,(s=this.Ha()).Wb(t);do{for(;s.Ia()&&(t=s.ia(),s.xb()!=h);)i+=t=t.Rb();if(s.xb()==h)break}while(s.ab());return i},n.prototype.aO=function(t,i,h){if(i=this.Ca(t)+i,h=this.Ca(t)+h,0>i||h>this.I()-1)throw e.i.O();var s=this.Ha();if(i>h){if(!this.ec(t))throw e.i.O("cannot iterate across an open path");s.EB()}var o=t=0;s.Wb(i);do{o+=t,t=s.ia().Rb()}while(s.xb()!=h);return o},n.prototype.ng=function(){return e.si.im(this,null)},n.prototype.FS=function(t,i,h){for(var s=t;si){var a=this.vm(),u=0;i=this.xa}else a=this.Av(i),u=this.Ca(i),i=this.Wc(i);for(;u=this.Ca(i))return i;i--}else i++;if(0<=i&&i=this.Ca(i)&&th){for(i=0;ii;){var s=i+(h-i>>1);if(t=(i=this.Wc(s))))return this.gb=s;i=s+1}}return this.gb=i},n.prototype.sz=function(){var t=this.I();if(!this.yf){t-=this.ea();for(var i=0,h=this.ea();ih.MR()))return!0;this.Cb.tD(null)}return h=e.Mx.create(this,t,i),this.Cb.tD(h),!0},n.prototype.dc=function(){var t=r.prototype.dc.call(this);if(!this.Bc()){var i=this.ea();null!=this.nb&&this.nb.Cn(t,0,i+1),null!=this.mb&&this.mb.Cn(t,0,i)}return t},n.prototype.UF=function(t){return null!=this.Se?this.Se.read(t):1},n.prototype.cc=function(t,i,h){var s=this.nz(t);if(t==this.Wc(s)-1&&!this.ec(s))throw e.i.ga("index out of bounds");this.oc();var o=this.Se,a=1;if(null!=o&&(a=7&o.read(t)),1!==a)throw e.i.Ra();if(i.Qr(),(i=i.get()).Pf(h?e.fe.pg():this.description),s=t==this.Wc(s)-1&&this.ec(s)?this.Ca(s):t+1,o=new e.h,this.D(t,o),i.Ec(o),this.D(s,o),i.Rc(o),!h)for(h=1,o=this.description.Ba;h=this.ea())throw e.i.O();if(this.B())i.Pa();else{if(this.Av(t))throw e.i.ga("not implemented");var h=this.vb(0),s=new e.h,o=new e.l;o.Pa();var a=this.Ca(t);for(t=this.Wc(t);athis.I()||(t=e.ua.iE(this),this.Cb.RM(t),0))},n.prototype.cM=function(){if(null==this.Cb&&(this.Cb=new e.Wk),null==this.Cb.Bo){this.Cb.sD(null);var t=e.ua.TN(this);this.Cb.sD(t)}},n.prototype.$o=function(t){this.zq=t},n.prototype.Kn=function(){return this.zq},n.prototype.yD=function(t){if(this==t)throw e.i.ga("MultiPathImpl.add");for(var i=this.ea(),h=0;h=(i=this.Wc(i))||ti?n.I():i,0>t||t>n.I()||it?i:t,0>i||0>t)throw e.i.O();if(0!=t){i=t-0,t=this.xa,this.resize(this.xa+i);for(var h=0;hn||n>=this.I())throw e.i.ga("index out of bounds");this.oc();for(var t=0,i=this.description.Ba;tt||t>=this.xa||in?n:f},y.Vh=function(f,r){var n=5381;return((n=((n=((n=void 0!==r?(r<<5)+r+(255&f):(n<<5)+n+(255&f))<<5)+n+(f>>8&255))<<5)+n+(f>>16&255))<<5)+n+(f>>24&255)&2147483647},y.wj=function(){throw Error("Not Implemented")},y.XA=function(f){return y.WT(f)+12345&2147483647},y.SG=function(f){var r=32,t=f/y.Px|0;return 0==(r&=63)?f:(32>r?(f=(f%y.Px|0)>>>r|t<<32-r,r=t>>r):(f=t>>r-32,r=0<=t?0:-1),r*y.Px+(f>>>0))},y.WT=function(f){return(1103495168*(f|=0)|0)+(20077*f|0)|0},y.truncate=function(f){return 0>f?-1*Math.floor(Math.abs(f)):Math.floor(f)},y.MAX_SAFE_INTEGER=Math.pow(2,53)-1,y.MIN_SAFE_INTEGER=-y.MAX_SAFE_INTEGER,y.Px=(y.QC=65536)*y.QC,y}()}(k||(k={})),function(e){var y;(y=e.xL||(e.xL={}))[y.Project=0]="Project",y[y.Union=1]="Union",y[y.Difference=2]="Difference",y[y.Proximity2D=3]="Proximity2D",y[y.Relate=4]="Relate",y[y.Equals=5]="Equals",y[y.Disjoint=6]="Disjoint",y[y.Intersects=7]="Intersects",y[y.Within=8]="Within",y[y.Contains=9]="Contains",y[y.Crosses=10]="Crosses",y[y.Touches=11]="Touches",y[y.Overlaps=12]="Overlaps",y[y.Buffer=13]="Buffer",y[y.Distance=14]="Distance",y[y.Intersection=15]="Intersection",y[y.Clip=16]="Clip",y[y.Cut=17]="Cut",y[y.DensifyByLength=18]="DensifyByLength",y[y.DensifyByAngle=19]="DensifyByAngle",y[y.LabelPoint=20]="LabelPoint",y[y.GeodesicBuffer=21]="GeodesicBuffer",y[y.GeodeticDensifyByLength=22]="GeodeticDensifyByLength",y[y.ShapePreservingDensify=23]="ShapePreservingDensify",y[y.GeodeticLength=24]="GeodeticLength",y[y.GeodeticArea=25]="GeodeticArea",y[y.Simplify=26]="Simplify",y[y.SimplifyOGC=27]="SimplifyOGC",y[y.Offset=28]="Offset",y[y.Generalize=29]="Generalize",y[y.SymmetricDifference=30]="SymmetricDifference",y[y.ConvexHull=31]="ConvexHull",y[y.Boundary=32]="Boundary",y[y.SimpleRelation=33]="SimpleRelation";var f=function(){function r(){}return r.prototype.K=function(){return null},r.prototype.yn=function(){},r.prototype.Ku=function(){return!1},r}();e.Ge=f}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 13},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.prototype.W=function(n,t,i,h,s){return n instanceof e.ba?(s=new e.$c(n),this.W(s,t,[i],!1,h).next()):!0===h?(i=new e.wC(n,t,i,!1,s),e.Ih.local().W(i,t,s)):new e.wC(n,t,i,!1,s)},r.instance=null,r}(e.Ge);e.vC=y}(k||(k={})),function(e){var y=function(){function f(r,n,t,i,h){this.za=-1,this.Sd=r,this.Vz=n,this.Es=t,this.nT=new e.l,this.nT.Pa(),this.ho=-1,this.Vb=h}return f.prototype.next=function(){for(var r;null!=(r=this.Sd.next());)return this.za=this.Sd.Ma(),this.ho+1=r.I():1==r.ea()&&(2>=r.I()||e.au.EG(r,0)))},f}();e.yC=y}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 17},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.prototype.W=function(n,t,i,h,s){return new e.iL(n,t,i,h,s)},r.instance=null,r}(e.Ge);e.hL=y}(k||(k={})),function(e){var y=function(){function f(r,n,t,i,h){if(this.Vf=null,null==n||null==t)throw e.i.ga("invalid argument");this.kT=r,this.iA=n,this.gH=t,r=e.ua.ov(n,t),this.ra=e.ua.Xd(i,r,!0),this.fH=-1,this.od=h}return f.prototype.Ma=function(){return 0},f.prototype.next=function(){return this.MQ(),++this.fHthis.Vf.length&&(this.Vf.length=0)},f.prototype.NQ=function(){var r=new e.ja(0),n=new e.hd,t=n.WE(),i=n.Ib(this.iA),h=n.Ib(this.gH),s=new e.Hg;try{s.Gt(n,this.ra,this.od),s.fl(t,i,h,r);var o=n.Ke(i),a=new e.Ea,u=new e.Ea;for(this.Vf.length=0,this.Vf.push(a),this.Vf.push(u),i=0;i=t)throw e.i.O();return new e.jL(n,t,i)},r.instance=null,r}(e.Ge);e.Zl=y}(k||(k={})),function(e){var y=function(){function f(r,n){this.za=-1,this.Sd=r,this.Rs=n}return f.prototype.Ma=function(){return this.za},f.prototype.next=function(){var r;return null!=(r=this.Sd.next())?(this.za=this.Sd.Ma(),this.IP(r)):null},f.prototype.IP=function(r){if(r.B()||1>r.Eb())return r;var n=r.K();if(1736==n||1607==n)return this.Iy(r);if(e.ba.zd(n))return this.KP(r);if(197==n)return this.JP(r);throw e.i.Ra()},f.prototype.KP=function(r){if(r.Rb()<=this.Rs)return r;var n=new e.Ua(r.description);return n.pc(r,!0),this.Iy(n)},f.prototype.JP=function(r){var n=new e.Ea(r.description);n.bd(r,!1);var t=new e.l;return r.A(t),r=t.da(),t.S()<=this.Rs&&r<=this.Rs?n:this.Iy(n)},f.prototype.Iy=function(r){for(var n=r.Ja(),t=r.Ha();t.ab();)for(var i=!0;t.Ia();){var h=t.ia();if(322!=h.K())throw e.i.ga("not implemented");var s=t.Qn(),o=h.Rb();if(o>this.Rs){var a=Math.ceil(o/this.Rs);o=new e.Ta(r.description),i&&(h.Vo(o),n.nf(o));var u=i=1/a,c=0;for(--a;co)return n;var a=n.K(),u=t.K(),c=new e.l,l=new e.l,p=new e.l;n.A(c),t.A(l),p.L(c),p.$b(l);var v=(p=e.ua.Xd(i,p,!0))*Math.sqrt(2)*1.00001,b=new e.l;if(b.L(c),b.X(v,v),!b.isIntersecting(l))return n;if(1==s&&2==o)return r.FV(n,t,u,i,h);if(33==a)switch(e.Xk.zd(u)?(i=new e.Ua(t.description),i.pc(t,!0)):i=t,u){case 1736:return r.SU(n,i,p);case 1607:return r.TU(n,i,p);case 550:return r.QU(n,i,p);case 197:return r.PU(n,i,p);case 33:return r.RU(n,i,p);default:throw e.i.O()}else if(550==a)switch(u){case 1736:return r.iU(n,t,p);case 197:return r.gU(n,t,p);case 33:return r.hU(n,t,p)}return e.Hg.km(n,t,i,h)},r.SU=function(n,t,i){return 0==e.jd.FG(t,n,i)?n:n.Ja()},r.TU=function(n,t,i){var h=n.D();t=t.Ha();for(var s=i*Math.sqrt(2)*1.00001,o=s*s,a=new e.l;t.ab();)for(;t.Ia();){var u=t.ia();if(u.A(a),a.X(s,s),a.contains(h)){if(u.ss(h,i))return n.Ja();var c=u.bc();if(e.h.zc(h,c)<=o||(c=u.xc(),e.h.zc(h,c)<=o))return n.Ja()}}return n},r.QU=function(n,t,i){var h=t.vb(0);t=t.I();var s=n.D(),o=new e.h;i=i*Math.sqrt(2)*1.00001,i*=i;for(var a=0;at.I()?this.bE(n,t,i):(this.Pt(),n=this.bE(t,n,i),this.Pt(),n):550==n.K()&&e.ba.Ic(t.K())?(n=this.cE(t,n,i),this.Pt(),n):550==t.K()&&e.ba.Ic(n.K())?this.cE(n,t,i):550==n.K()&&550==t.K()?n.I()>t.I()?this.dE(n,t):(this.Pt(),n=this.dE(t,n),this.Pt(),n):0},r.prototype.bE=function(n,t,i){var h=n.Ha(),s=t.Ha(),o=new e.l,a=new e.l,u=17976931348623157e292;if(!i&&this.lY(n,t,h,s))return 0;for(;h.ab();)for(;h.Ia();)if((n=h.ia()).A(o),!(o.px(this.qh)>u)){for(;s.ab();)for(;s.Ia();)if((t=s.ia()).A(a),o.px(a)o)){for(var l=0;lh))for(var l=0;lr.Ka(n))){var h=r.Ca(n),s=r.Wc(n)-1,o=r.vb(0),a=r.ec(n),u=new e.ja(0);u.Jb(r.Ka(n)+1);var c=new e.ja(0);for(c.Jb(r.Ka(n)+1),u.add(a?h:s),u.add(h),h=new e.h;1this.yH&&a>s&&(h=i,s=a)}return h},f.prototype.re=function(){},f}();e.mL=y}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 29},r.prototype.W=function(n,t,i,h){return n instanceof e.ba?(n=new e.$c(n),this.W(n,t,i,h).next()):new e.mL(n,t,i,h)},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.instance=null,r}(e.Ge);e.zC=y}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 21},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.prototype.W=function(n,t,i,h,s,o,a,u){return n instanceof e.ba?(u=new e.$c(n),this.W(u,t,i,[h],s,o,!1,a).next()):!0===a?(i=new e.BC(n,t,i,h,s,!1,!1,u),e.Ih.local().W(i,t,u)):new e.BC(n,t,i,h,s,!1,!1,u)},r.instance=null,r}(e.Ge);e.AC=y}(k||(k={})),function(e){var y=function(){function f(r,n,t,i,h,s,o,a){if(s)throw e.i.Fe();if(null==n)throw e.i.O();this.za=-1,this.Os=r,this.wg=n,this.Ae=t,this.Es=i,this.bo=h,this.ho=-1,this.Vb=a,this.oT=new e.l,this.oT.Pa()}return f.prototype.next=function(){for(var r;null!=(r=this.Os.next());)return this.za=this.Os.Ma(),this.ho+1n.Eb())return 0;if(4==i)throw e.i.Fe();var h=e.cb.tc(t),s=e.cb.xv(h),o=e.cb.gv(h);s*=2-s;var a=h.Id().ci,u=n.K();if(1736==u||197==u)var c=n.ng();else e.ba.zd(u)?(c=new e.Ua(n.description)).pc(n,!0):c=n;if(0==h.Nb(t)){if(e.cb.Xc(t)){c=e.Jh.nj(c,t),1607==u&&c==n&&(c=e.ba.kg(n)),n=new e.Oc,e.cb.ih(t).en(n),u=0;for(var l=c.I();u=this.Hi||7h||0==t&&550==n&&33==this.Fj?this.iJ():f.CB(r,i);if((-1==this.Hi||4==this.Hi)&&197==n&&197==this.Fj)return t=this.Pe,n=new e.l,r.A(n),i=new e.l,t.A(i),n.Fa(i),t=new e.Hh,r.copyTo(t),t.Zo(n),t;if(197==n&&0==e.ba.uf(this.Fj)||197==this.Fj&&0==e.ba.uf(n))return i=197==n?r:this.Pe,r=197==n?this.Pe:r,n=new e.l,i.A(n),e.Vd.clip(r,n,t,0);if(0==e.ba.uf(n)&&0a&&(a=t.sz()),s=t.I()+i.I(),a*i.I()>Math.log(s)*s*4)return null;s=null,a=i.Ha(),null!=u&&null!=u.Gb&&(s=u.Gb),null==s&&20w){if(null!=s)for(null==i?i=s.qR(j,h):i.Wo(j,h),w=i.next();-1!=w;w=i.next()){a.Wb(s.ka(w)),w=a.ia();var M=j.Fa(w,null,c,null,h);for(w=0;wm?(v=u.xb()-t.Ca(x),b=1,m=0==m?3:2):b++:(r.pc(A,0==m),m=1);break;case 0:m=0,v=-1,b=0;break;default:return null}A=N}}}else{if(0>(w=this.LD(n,j.bc(),h)))return null;1==w?(2>m&&(v=u.xb()-t.Ca(x),m=0==m?3:2),b++):(v=-1,b=0)}l.clear(!1)}else 0!=w&&1==w&&(0==m?(m=3,v=u.xb()-t.Ca(x)):1==m?(m=2,v=u.xb()-t.Ca(x)):b++)}2<=m&&(r.Fr(t,x,v,b,3==m),v=-1)}return r},f.prototype.LD=function(r,n,t){return e.Fg.ym(r,n,t)},f.prototype.MD=function(r,n,t){var i=n.bc();n=n.xc();var h=e.Fg.ym(r,i,t),s=e.Fg.ym(r,n,t);return 1==h&&0==s||0==h&&1==s?-1:0==h||0==s?0:1==h||1==s?1:((h=new e.h).add(i,n),h.scale(.5),0==(r=e.Fg.ym(r,h,t))?0:1==r?1:-1)},f.CB=function(r,n){return n?r:r.Ja()},f.prototype.iJ=function(){return null==this.tH&&(this.tH=this.Pe.Ja()),this.tH},f.prototype.re=function(){},f}();e.CC=y}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 28},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.prototype.W=function(n,t,i,h,s,o,a){return n instanceof e.ba?(n=new e.$c(n),this.W(n,t,i,h,s,o,a).next()):new e.sL(n,t,i,h,s,o,a)},r.instance=null,r}(e.Ge);e.DC=y}(k||(k={})),function(e){var y=function(){function f(r,n,t,i,h,s,o){this.za=-1,this.Sd=r,this.Oj=n,this.La=t,this.Mi=i,this.xA=h,this.pH=s,this.od=o}return f.prototype.next=function(){var r=this.Sd.next();return null!=r?(this.za=this.Sd.Ma(),this.eL(r)):null},f.prototype.Ma=function(){return this.za},f.prototype.eL=function(r){var n=0>=this.pH?e.ua.mj(this.Oj,r,!1):this.pH;return e.DK.W(r,this.La,this.Mi,this.xA,n,this.od)},f.prototype.re=function(){},f}();e.sL=y}(k||(k={})),function(e){var y;(y=e.IK||(e.IK={}))[y.clipToDomainOnly=1]="clipToDomainOnly",y[y.clipWithHorizon=2]="clipWithHorizon",y[y.foldAndClipWithHorizon=3]="foldAndClipWithHorizon";var f=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return J(n,r),n.prototype.K=function(){return 0},n.local=function(){return null===n.instance&&(n.instance=new n),n.instance},n.prototype.W=function(t,i,h){return t instanceof e.ba?(t=new e.$c(t),this.W(t,i,h).next()):new e.tL(t,i,h)},n.prototype.transform=function(t,i,h,s){return e.du.transform(t,i,h,s,!0)},n.prototype.St=function(t,i,h,s){return e.du.St(t,i,h,s)},n.instance=null,n}(e.Ge);e.Gx=f}(k||(k={})),function(e){var y=function(){function f(r,n,t){this.za=-1,this.Sd=r,this.HT=n,this.od=t}return f.prototype.next=function(){var r=this.Sd.next();return null!=r?(this.za=this.Sd.Ma(),e.du.Bh(r,this.HT,this.od)):null},f.prototype.Ma=function(){return this.za},f.prototype.re=function(){},f}();e.tL=y}(k||(k={})),function(e){var y=function(){function r(){}return r.prototype.reset=function(){this.rh=this.zk=-1,this.ws=this.mq=!1},r.prototype.vQ=function(n,t,i){for(n.Wb(t,i);n.Ia();){var h=n.ia();if(0!=(h=h.Rb()))return n.xb()}for(n.Wb(t,i);n.zz();)if(0!=(h=(h=n.ni()).Rb()))return n.xb();return-1},r.prototype.wQ=function(n,t){for(n.Wb(t,-1);n.zz();)if(0!=n.ni().Rb())return n.xb();return-1},r.prototype.uQ=function(n,t){for(n.Wb(t,-1),n.ia();n.Ia();)if(0!=n.ia().Rb())return n.xb();return-1},r.prototype.tQ=function(n,t,i,h){if(this.zk=this.vQ(t,i,h),-1!=this.zk){t.Wb(this.zk,-1);var s=t.ia(),o=s.ic(s.ge(n,!1));if(i=e.h.zc(o,n),(h=new e.h).N(o),h.sub(s.bc()),(o=new e.h).N(n),o.sub(s.bc()),this.mq=0>h.yi(o),this.rh=this.uQ(t,this.zk),-1!=this.rh){t.Wb(this.rh,-1);var a=(s=t.ia()).ge(n,!1);a=s.ic(a);var u=e.h.zc(a,n);u>i?this.rh=-1:(h.N(a),h.sub(s.bc()),o.N(n),o.sub(s.bc()),this.ws=0>h.yi(o))}-1==this.rh&&(this.rh=this.wQ(t,this.zk),-1!=this.rh&&(t.Wb(this.rh,-1),a=(s=t.ia()).ge(n,!1),a=s.ic(a),(u=e.h.zc(a,n))>i?this.rh=-1:(h.N(a),h.sub(s.bc()),o.N(n),o.sub(s.bc()),this.ws=0>h.yi(o),n=this.zk,this.zk=this.rh,this.rh=n,n=this.mq,this.mq=this.ws,this.ws=n)))}},r.prototype.YN=function(n,t,i,h,s){return i=i.Ha(),this.tQ(n,i,h,s),-1!=this.zk&&-1==this.rh?this.mq:-1!=this.zk&&-1!=this.rh?this.mq==this.ws?this.mq:(i.Wb(this.zk,-1),n=i.ia().lg(),i.Wb(this.rh,-1),t=i.ia().lg(),0<=n.yi(t)):t},r}(),f=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return J(n,r),n.local=function(){return null===n.instance&&(n.instance=new n),n.instance},n.prototype.K=function(){return 3},n.prototype.iz=function(t,i,h){var s;if(void 0===s&&(s=!1),t.B())return new e.bm;i=i.D();var o=t,a=t.K();switch(197==a&&((o=new e.Ea).bd(t,!1),a=1736),a){case 33:return this.sI(o,i);case 550:return this.eI(o,i);case 1607:case 1736:return this.XT(o,i,h,s);default:throw e.i.ga("not implemented")}},n.prototype.jz=function(t,i){if(t.B())return new e.bm;i=i.D();var h=t,s=t.K();switch(197==s&&((h=new e.Ea).bd(t,!1),s=1736),s){case 33:return this.sI(h,i);case 550:case 1607:case 1736:return this.eI(h,i);default:throw e.i.ga("not implemented")}},n.prototype.kz=function(t,i,h,s){if(0>s)throw e.i.O();if(t.B())return[];i=i.D();var o=t,a=t.K();switch(197==a&&((o=new e.Ea).bd(t,!1),a=1736),a){case 33:return this.OU(o,i,h,s);case 550:case 1607:case 1736:return this.oU(o,i,h,s);default:throw e.i.ga("not implemented")}},n.prototype.XT=function(t,i,h,s){if(1736==t.K()&&h&&(h=new e.l,t.A(h),h=e.ua.Xd(null,h,!1),0!=e.jd.Zd(t,i,s?0:h))){var o=new e.bm(i,0,0);return s&&o.RJ(!0),o}var a=t.Ha();o=new e.h;for(var u=h=-1,c=17976931348623157e292,l=0;a.ab();)for(;a.Ia();){var p=a.ia();p=p.ic(p.ge(i,!1));var v=e.h.zc(p,i);ve.h.Wq(i,p.bc(),p.xc()),1=i||(t.length=s),t.slice(0)},n.instance=null,n}(e.Ge);e.Hx=f}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 4},r.prototype.W=function(n,t,i,h,s){return e.cm.tB(n,t,i,h,s)},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.prototype.Ku=function(n){return e.Xt.ry(n)},r.prototype.yn=function(n,t,i){e.Xt.xD(n,t,i)},r.instance=null,r}(e.Ge);e.uL=y}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 33},r.prototype.W=function(n,t,i,h,s){return 1073741824===n?!e.vd.uB(t,i,h,4,s):e.vd.uB(t,i,h,n,s)},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.prototype.Ku=function(n){return e.Xt.ry(n)},r.prototype.yn=function(n,t,i){e.Xt.xD(n,t,i)},r.instance=null,r}(e.Ge);e.fj=y}(k||(k={})),function(e){var y=function(){function f(r,n,t,i){if(this.od=i,this.lT=t,this.za=-1,null==r)throw e.i.O();this.Ak=r,this.Oj=n}return f.prototype.next=function(){var r;if(null!=(r=this.Ak.next())){if(this.za=this.Ak.Ma(),null!=this.od&&!this.od.progress(-1,-1))throw e.i.hu("user_canceled");return this.$B(r)}return null},f.prototype.Ma=function(){return this.za},f.prototype.$B=function(r){if(null==r)throw e.i.O();return e.Ix.YJ(r,this.Oj,this.lT,this.od)},f.prototype.re=function(){},f}();e.vL=y}(k||(k={})),function(e){var y=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return J(r,f),r.prototype.K=function(){return 26},r.prototype.W=function(n,t,i,h){return n instanceof e.ba?(n=new e.$c(n),this.W(n,t,i,h).next()):new e.vL(n,t,i,h)},r.prototype.ts=function(n,t,i,h,s){return 0<(void 0!==h?e.Ix.ts(n,t,i,h,s):e.Ix.ts(n,t,!1,null,i))},r.local=function(){return null===r.instance&&(r.instance=new r),r.instance},r.instance=null,r}(e.Ge);e.$l=y}(k||(k={})),function(e){var y=function(){function s(){this.Aq=0}return s.prototype.iX=function(o){this.Aq&=-2,this.Aq|=o?1:0},s.prototype.Yp=function(){return 0!=(1&this.Aq)},s.prototype.SF=function(){return this.Yp()?0:1},s}();e.tY=y;var f=function(){},r=function(s,o,a,u){this.x=s,this.y=o,this.Ci=a,this.zm=u},n=function(){function s(o){this.Ce=o}return s.prototype.compare=function(o,a,u){return o=o.ka(u),a=this.Ce.lf.read(2*a),0>(a-=o=this.Ce.lf.read(2*o))?-1:0p?1:0},s}(),i=function(){function s(o,a){this.TI=new e.h,this.parent=o,this.ZR=a}return s.prototype.qr=function(o,a,u){var c=this.parent,l=this.ZR;u.Wd(o,a,function(p,v){return c.Oh(p,v,l)})},s.prototype.bq=function(o){return o=this.parent.ii.get(o),this.parent.lf.uc(2*(o>>1),this.TI),this.TI.y+(0!=(1&o)?this.parent.Qj:-this.parent.Qj)},s}(),h=function(){function s(o,a,u,c,l){this.iH=o.description,this.Y=o,this.Sg=a,this.Qj=e.ua.mj(this.Sg,o,!1),this.Do=e.ua.mj(this.Sg,o,!0),this.sA=u,this.jT=this.iH.Ba,this.hb=[],this.ro=[],this.oh=new e.lp,this.fb=new e.$j,this.le=new e.Nd,this.UG=this.sl=l}return s.prototype.$S=function(){return this.UG=!0,(!e.ba.Ic(this.Y.K())||this.BE()&&this.yE(!1))&&this.hO()?e.ba.Ic(this.Y.K())?this.kO()?1607==this.Y.K()?this.mO()?2:0:this.nO()?this.oO():0:0:2:0},s.prototype.fC=function(o,a){var u=this.lf.read(2*o);o=this.lf.read(2*o+1);var c=this.lf.read(2*a);return a=this.lf.read(2*a+1),!e.$t.Ev(u,o,c,a,this.Qj*this.Qj)||0!=this.Y.Eb()&&u==c&&o==a},s.prototype.BE=function(){for(var o=this.Y,a=o.yf?3:2,u=0,c=o.ea();uthis.Qj)){if(o&&c){var p=l.yv(1,0);if(l=l.yv(1,0),Math.abs(l-p)>a)continue}return this.le=new e.Nd(2,u.xb(),-1),!1}}return!0},s.prototype.hO=function(){var o=this.Y,a=null;e.ba.Ic(this.Y.K())&&(a=this.Y);var u=(this.UG||this.sl)&&null!=a,c=o.I();this.lf=o.vb(0),this.ii=new e.ja(0),this.ii.Jb(2*c),this.hi=new e.ja(0),this.hi.Jb(2*c),u&&(null==this.Hl&&(this.Hl=new e.ja(0)),this.Hl.Jb(c));for(var l=o=0;l=a.Wc(o);)o++;this.Hl.add(o)}for((new e.Zt).sort(this.hi,0,2*c,new i(this,u)),this.fb.clear(),this.fb.Xo(new n(this)),this.fb.Ee(c),a=0,c*=2;a>1,0==(1&o)){if(o=this.fb.addElement(u,-1),-1!=(l=this.fb.xe(o))&&!this.fC(this.fb.ka(l),u))return this.le=new e.Nd(3,u,this.fb.ka(l)),!1;var p=this.fb.lb(o);if(-1!=p&&!this.fC(this.fb.ka(p),u))return this.le=new e.Nd(3,u,this.fb.ka(p)),!1}else if(o=this.fb.search(u,-1),l=this.fb.xe(o),p=this.fb.lb(o),this.fb.wd(o,-1),-1!=l&&-1!=p&&!this.fC(this.fb.ka(l),this.fb.ka(p)))return this.le=new e.Nd(3,this.fb.ka(l),this.fb.ka(p)),!1;return!0},s.prototype.kO=function(){return 10>this.Y.I()?this.iO():this.jO()},s.prototype.jO=function(){var o=new e.hd;o.Ib(this.Y);var a=new e.Nd;return!e.bu.fI(!1,o,this.Qj,a,this.od)||(a.Lo=o.Va(a.Lo),a.Mo=o.Va(a.Mo),this.le.Yt(a),!1)},s.prototype.iO=function(){var o=this.Y,a=o.Ha();for(o=o.Ha();a.ab();)for(;a.Ia();){var u=a.ia();if(!a.Sn()||!a.VS()){o.wW(a);do{for(;o.Ia();){var c=o.ia();if(0!=(c=u.Br(c,this.Qj,!0)))return this.le=new e.Nd(2==c?5:4,a.xb(),o.xb()),!1}}while(o.ab())}}return!0},s.prototype.nO=function(){var o=this.Y;this.hb.length=0,this.ro.length=0,this.ag=o.Ha(),this.ag.EB();var a=new e.ja(0);a.Jb(10);var u=NaN,c=0,l=0;for(o=2*o.I();l>=1)),b=this.lf.read(2*p+1);if(0!=a.size&&(v!=u||b!=c)){if(!this.LI(a))return!1;a?.clear(!1)}a.add(p),u=v,c=b}}return!!this.LI(a)},s.prototype.mO=function(){for(var o=this.Y,a=Array(o.ea()),u=0,c=o.ea();u>1;this.lf.uc(2*p,l);var v=a[u=this.Hl.get(p)],b=o.Ca(u),d=o.Wc(u)-1;c.gl=p==b||p==d,c.jy=this.sl?!v&&c.gl:c.gl,c.Ci=u,c.x=l.x,c.y=l.y,c.zm=p;for(var g=new f,x=1,m=this.hi.size;x>1),l),(u=this.Hl.get(p))!=c.Ci&&(v=a[u],b=o.Ca(u),d=o.Wc(u)-1);var w=p==b||p==d,j=this.sl?!v&&c.gl:c.gl;if(g.x=l.x,g.y=l.y,g.Ci=u,g.zm=p,g.jy=j,g.gl=w,g.x==c.x&&g.y==c.y)if(this.sl){if(!(g.jy&&c.jy||g.Ci==c.Ci&&(g.gl||c.gl)))return this.le=new e.Nd(8,g.zm,c.zm),!1}else if(!g.gl||!c.gl)return this.le=new e.Nd(5,g.zm,c.zm),!1;u=c,c=g,g=u}return!0},s.prototype.EE=function(){for(var o=this.Y,a=[],u=-1,c=!1,l=0,p=o.ea();l>1;this.lf.uc(2*v,c),l=this.Hl.get(v),u=new r(c.x,c.y,l,v,a[l]),o=[];var b=1;for(p=this.hi.size;b>1),c),l=this.Hl.get(v),(l=new r(c.x,c.y,l,v,a[l])).x==u.x&&l.y==u.y){if(l.Ci==u.Ci)return this.le=new e.Nd(9,l.zm,u.zm),!1;0<=a[l.Ci]&&a[l.Ci]==a[u.Ci]&&(0!=o.length&&o[o.length-1]==u||o.push(u),o.push(l))}u=l}if(0==o.length)return!0;for(l=new e.lp(!0),e.P.bv(a,-1),c=-1,(b=new e.h).Sc(),u=0,p=o.length;u=o.He())return this.le=new e.Nd(6,1==o.ea()?1:-1,-1),0;if(1==o.ea())return this.sl&&!this.EE()?0:2;this.vo=e.ja.rf(o.ea(),0),this.EA=e.ja.rf(o.ea(),-1);for(var a=-1,u=0,c=0,l=o.ea();cp?0:256),0a||u>=1)+1))!=this.Oo&&0!=o.size){if(!this.vt(o))return 0;o?.clear(!1)}o.add(u),this.Oo=c}return 0l.ma){var v=this.ag.xb(),b=this.Uu(l,c,this.ag.gb,!0);0o.Ka(a.gb))){u.yW();for(var g,x,m=!0;a.Ia();){var w=a.ia(),j=u.ni();if(a.xb()>u.xb())break;m&&(b.add(a.xb()),d.add(u.kk()),m=!1),x=b.Gc();var M=a.kk();if(1this.Do?b.add(a.kk()):p&&(g=o.Vc(1,b.Gc(),0),w=w.jv(1,0),Math.abs(w-g)>v&&b.add(a.kk())),x>this.Do?d.add(u.xb()):p&&(g=o.Vc(1,d.Gc(),0),w=j.jv(1,0),Math.abs(w-g)>v&&d.add(u.xb()))}if(b.Gc()d.size?b.Jf():d.Jf():(b.Gc()!=d.Gc()&&d.Jf(),d.Jf()),2<=d.size+b.size){for(m=new e.Ta,j=0,w=b.size;j>1;var l=c>>1,p=new e.h,v=new e.h;return this.lf.uc(2*a,p),p.y+=0!=(1&o)?this.Qj:-this.Qj,this.lf.uc(2*l,v),v.y+=0!=(1&c)?this.Qj:-this.Qj,0==(o=p.compare(v))&&u?0>(u=this.Hl.get(a)-this.Hl.get(l))?-1:0l.x)return 1;if(c.yl.y)return 1;for(c=1;cd)return 1}}return 0},s.prototype.KO=function(o,a){var u=this.Qu(o,a);return 0==u?oa?1:0o?n:t;if(n.B())return t;if(t.B())return n;var a=new e.l,u=new e.l,c=new e.l;return n.A(a),t.A(u),c.L(a),c.$b(u),a=e.ua.Xd(i,c,!0),u=n.K(),c=t.K(),33==u&&33==c?r.WU(n,t,a):u!=c?0o?n:t:550==u?r.dI(n,t,a):r.dI(t,n,a):e.Hg.gp(n,t,i,h)},r.WU=function(n,t,i){i=i*Math.sqrt(2)*1.00001,i*=i;var h=n.D(),s=t.D(),o=new e.ee(n.description);return e.h.zc(h,s)>i&&(o.add(n),o.add(t)),o},r.dI=function(n,t,i){var h=n.vb(0),s=n.I(),o=t.D(),a=n.Ja();i=i*Math.sqrt(2)*1.00001;var u=new e.l;if(n.A(u),u.X(i,i),u.contains(o)){i*=i,u=!1;for(var c=[],l=0;lthis.Bk||0>this.eo)throw e.i.Ra();if(this.vH[this.eo])break}return this.za++,this.aG(this.eo)}return this.za=0,this.eo=this.Bk,this.aG(this.Bk)},n.prototype.Ma=function(){return this.za},n.prototype.lK=function(){if(this.Jc)return!0;var t=null;if(null!=this.Sd&&null==(t=this.Sd.next())&&(this.Jc=!0,this.Sd=null),e.op.Bp(this.Vb),null!=t){var i=t.Eb();this.vH[i]=!0,i>=this.Bk&&!this.eA&&(this.HD(i,!1,t),i>this.Bk&&!this.eA&&this.uW(i))}if(0this.Fo.length)for(var o=0,a=Math.max(2,t+1);oi?e.F.Yq(l,c,u,p,0):e.F.Yq(l,u,c,p,0),b=[0,0,0],d=[0,0,0];var m=[0,0,0];u=[0,0,0],v=[0,0,0];var w=Math.acos(p[2]/1),j=1-r,M=Math.tan(w),A=1+M*M/j,z=2*l[2]*M/j;for(j=(-z+(M=Math.sqrt(z*z-4*A*(l[2]*l[2]/j-1))))/(A*=2),z=(-z-M)/A,l=((A=(M=Math.tan(w))*j+l[2])+(M*z+l[2]))/2,M=e.F.ip(j-(w=(j+z)/2),A-l),j=l/x*1.570796326794897,z=0;100>z&&(A=(A=e.F.w(r,j))*A/Math.cos(j)*(Math.sin(j)-l*A/(1-r)),!e.s.Dd(A));z++)j-=A;l=e.F.n(1,r,j)*Math.cos(j),M=1-M/(l=Math.sqrt((l-w)*(l+w))),M*=2-M,A=e.F.qn(b),w=e.F.qn(d),j=e.F.qn(m);var N=e.F.Ut(m,b);z=e.F.Ut(m,d),e.F.yx(m,b,u),e.F.yx(m,d,v),b=Math.acos(N/(j*A)),d=Math.acos(z/(j*w)),d*=e.s.Mb(1,e.F.Ut(u,v)),(1.570796326794897<=e.s.R(b)&&1.570796326794897<=e.s.R(d)||3.141592653589793v&&0>i)&&(i=e.F.ca(i+3.141592653589793)),null!=s&&(s.u=u),null!=o&&(o.u=v),null!=a&&(a.u=i)}}},y.sf=function(f,r,n,t,i,h,s,o){var a=[0,0,0],u=[0,0,0],c=[0,0,0],l=[0,0,0],p=[0,0,0],v=[0,0,0],b=[0,0,0],d=[0,0,0,0],g=new e.ha(0),x=new e.ha(0),m=new e.ha(0),w=new e.ha(0),j=new e.ha(0),M=new e.ha(0);if(null!=s&&null!=o)if(e.s.vi(r))e.$g.sf(f,n,t,i,h,s,o);else if(e.s.Dd(i))null!=s&&(s.u=n),null!=o&&(o.u=t);else if(h=e.F.ca(h),0>i&&(i=e.s.R(i),h=e.F.ca(h+3.141592653589793)),n=e.F.ca(n),t=e.F.ca(t),1.570796326794897h?e.F.Yq(b,p,a,d,0):e.F.Yq(b,a,p,d,0),a=Math.acos(d[2]/1),d=Math.atan2(-d[1],-d[0]),t=1-r,j=1+(p=Math.tan(a))*p/t,t=(-(w=2*b[2]*p/t)+(p=Math.sqrt(w*w-4*j*(b[2]*b[2]/t-1))))/(j*=2),w=(-w-p)/j,b=((j=(p=Math.tan(a))*t+b[2])+(p*w+b[2]))/2,p=e.F.ip(t-(a=(t+w)/2),j-b),A=b/A*1.570796326794897,t=0;100>t&&(w=(w=e.F.w(r,A))*w/Math.cos(A)*(Math.sin(A)-b*w/(1-r)),!e.s.Dd(w));t++)A-=w;A=e.F.n(1,r,A)*Math.cos(A),b=1-p/(A=Math.sqrt((A-a)*(A+a))),b*=2-b,v=Math.acos(e.F.Ut(v,u)/(e.F.qn(v)*e.F.qn(u))),v*=e.s.Mb(1,u[0]),h=(e.F.q(A,b,e.F.Sj(b,v))+f*e.s.Mb(1,h))/e.F.Ch(A,b),h=e.F.ca(1.570796326794897*h),h=e.F.Tq(b,h),e.F.n(A,b,h),p=e.F.ca(d+n),n=Math.cos(p),h=Math.sin(p),c[0]=l[0]*n+l[1]*-h,c[1]=l[0]*h+l[1]*n,c[2]=l[2],e.F.eO(r,c[0],c[1],c[2],m,x,g),null!=s&&(s.u=x.u),null!=o&&(o.u=m.u)}},y}()}(k||(k={})),function(e){var y=function(){function i(h){this.Za=null,this.xt=new e.h,this.yt=new e.h,this.g=h}return i.prototype.compare=function(h,s,o){return this.g.Hc(s,this.xt),this.g.Hc(h.ka(o),this.yt),this.xt.compare(this.yt)},i}(),f=function(){function i(h){this.Cf=new e.h,this.Fk=new e.h,this.g=h}return i.prototype.Fh=function(h){this.Cf.N(h)},i.prototype.compare=function(h,s){return this.g.Hc(h.ka(s),this.Fk),this.Cf.compare(this.Fk)},i}(),r=function(i){function h(s){var o=i.call(this,s.g,s.ra,!1)||this;return o.ib=s,o}return J(h,i),h.prototype.compare=function(s,o,a){if(this.sg)return-1;var u=this.ib.Rd.Ln(this.ib.Th(o));s=s.ka(a);var c=this.ib.Rd.Ln(this.ib.Th(s));return this.Fm=a,this.ME(o,u,s,c)},h}(e.PC),n=function(i){function h(s){var o=i.call(this,s.g,s.ra)||this;return o.ib=s,o}return J(h,i),h.prototype.compare=function(s,o){return this.sg?-1:(s=this.ib.Rd.Ln(this.ib.Th(s.ka(o))),this.Fm=o,this.NE(o,s))},h}(e.WL),t=function(){function i(){this.Nc=this.df=this.lo=this.Rd=this.nh=this.Ad=this.hb=this.g=null,this.Pg=!1,this.xh=this.Pm=this.je=this.Ik=this.ph=this.Ck=this.Gf=this.ae=null,this.zh=this.Lq=this.PA=this.ra=0,this.Zv=this.Yn=!1,this.Ao=new e.h,this.Ri=new e.h,this.hb=new e.ad(8),this.Ad=new e.ad(5),this.nh=new e.cu,this.Rd=new e.cu,this.Pg=!1,this.xh=new e.h,this.xh.na(0,0),this.ra=0,this.zh=-1,this.Yn=!1,this.g=null,this.df=new e.$j,this.Nc=new e.$j,this.ph=new e.ja(0),this.Ik=new e.OC,this.Gf=new e.ja(0),this.Ck=new e.ja(0),this.lo=new e.Ta}return i.prototype.LX=function(h,s){var o=new e.Ed;return o.VB(),h.Pc(o),this.gr(h),this.Yn=!1,this.ra=s,this.PA=s*s,s=this.eC(),h.Pc(o),s||(this.lQ(),s||this.eC()),-1!=this.zh&&(this.g.Ud(this.zh),this.zh=-1),this.g=null,this.Yn},i.prototype.PX=function(h,s){this.gr(h),this.Yn=!1,this.ra=s,this.PA=s*s,this.Pg=!1,this.eC(),this.Pg||(this.Pg=1==h.Ip(s,!0,!1)),-1!=this.zh&&(this.g.Ud(this.zh),this.zh=-1),this.g=null},i.prototype.qg=function(h,s){return this.hb.U(h,0+s)},i.prototype.GB=function(h,s,o){this.hb.T(h,0+s,o)},i.prototype.Th=function(h){return this.hb.U(h,2)},i.prototype.UW=function(h,s){this.hb.T(h,2,s)},i.prototype.MF=function(h,s){return this.hb.U(h,3+s)},i.prototype.Rp=function(h){return this.hb.U(h,7)},i.prototype.Rl=function(h,s){this.hb.T(h,7,s)},i.prototype.Tp=function(h,s){return this.hb.U(h,3+this.Qp(h,s))},i.prototype.hr=function(h,s,o){this.hb.T(h,3+this.Qp(h,s),o)},i.prototype.IR=function(h,s){return this.hb.U(h,5+this.Qp(h,s))},i.prototype.jr=function(h,s,o){this.hb.T(h,5+this.Qp(h,s),o)},i.prototype.Ur=function(h){return this.Ad.U(h,0)},i.prototype.PW=function(h,s){this.Ad.T(h,0,s)},i.prototype.$y=function(h){return this.Ad.U(h,4)},i.prototype.er=function(h,s){this.Ad.T(h,4,s)},i.prototype.kl=function(h){return this.Ad.U(h,1)},i.prototype.nn=function(h,s){this.Ad.T(h,1,s)},i.prototype.Zy=function(h){return this.Ad.U(h,3)},i.prototype.Ft=function(h,s){this.Ad.T(h,3,s)},i.prototype.$m=function(h){var s=this.Ad.De(),o=this.nh.Rh();return this.PW(s,o),-1!=h?(this.nh.addElement(o,h),this.g.Sa(h,this.zh,s),this.er(s,this.g.Va(h))):this.er(s,-1),s},i.prototype.CP=function(h){this.Ad.kd(h)},i.prototype.FD=function(h,s){this.nh.addElement(this.Ur(h),s),this.g.Sa(s,this.zh,h)},i.prototype.ot=function(h){var s=this.hb.De(),o=this.Rd.Rh();return this.UW(s,o),-1!=h&&this.Rd.addElement(o,h),s},i.prototype.GD=function(h,s){this.Rd.addElement(this.Th(h),s)},i.prototype.Wu=function(h){this.hb.kd(h),0<=(h=this.ph.gF(h))&&this.ph.NV(h)},i.prototype.jj=function(h,s){if(-1==this.qg(h,0))this.GB(h,0,s);else{if(-1!=this.qg(h,1))throw e.i.Ra();this.GB(h,1,s)}this.gy(h,s)},i.prototype.gy=function(h,s){var o=this.kl(s);if(-1!=o){var a=this.Tp(o,s);this.jr(a,s,h),this.hr(h,s,a),this.hr(o,s,h),this.jr(h,s,o)}else this.jr(h,s,h),this.hr(h,s,h),this.nn(s,h)},i.prototype.Qp=function(h,s){return this.qg(h,0)==s?0:1},i.prototype.Zm=function(h,s){var o,a=this.Zy(s);if(-1!=a&&(this.df.wd(a,-1),this.Ft(s,-1)),-1!=(a=this.kl(s))){var u=o=a;do{var c=!1,l=this.Qp(o,s),p=this.MF(o,l);if(this.qg(o,l+1&1)==h){if(this.Zu(o),this.Rd.eh(this.Th(o)),this.Wu(o),o==p){a=-1;break}a==o&&(a=this.kl(s),u=p,c=!0)}o=p}while(o!=u||c);if(-1!=a){do{l=this.Qp(o,s),p=this.MF(o,l),this.GB(o,l,h),o=p}while(o!=u);-1!=(o=this.kl(h))?(u=this.Tp(o,h),c=this.Tp(a,h),u==o?(this.nn(h,a),this.gy(o,h),this.nn(h,o)):c==a&&this.gy(a,h),this.hr(a,h,u),this.jr(u,h,a),this.hr(o,h,c),this.jr(c,h,o)):this.nn(h,a)}}for(a=this.Ur(h),o=this.Ur(s),u=this.nh.sc(o);-1!=u;u=this.nh.lb(u))this.g.Sa(this.nh.ka(u),this.zh,h);this.nh.Cy(a,o),this.CP(s)},i.prototype.PT=function(h,s){var o=this.qg(h,0),a=this.qg(h,1),u=this.qg(s,0),c=this.qg(s,1);this.Rd.Cy(this.Th(h),this.Th(s)),s==this.kl(o)&&this.nn(o,h),s==this.kl(a)&&this.nn(a,h),this.Zu(s),this.Wu(s),o==u&&a==c||a==u&&o==c||(this.Jn(o,this.Ao),this.Jn(u,this.Ri),this.Ao.rb(this.Ri)?(o!=u&&this.Zm(o,u),a!=c&&this.Zm(a,c)):(a!=u&&this.Zm(a,u),o!=c&&this.Zm(o,c)))},i.prototype.Zu=function(h){var s=this.qg(h,1);this.ZE(h,this.qg(h,0)),this.ZE(h,s)},i.prototype.ZE=function(h,s){var o=this.Tp(h,s),a=this.IR(h,s),u=this.kl(s);o!=h?(this.hr(a,s,o),this.jr(o,s,a),u==h&&this.nn(s,o)):this.nn(s,-1)},i.prototype.RD=function(h,s,o){var a=this.Rd.sc(h),u=this.Rd.ka(a);h=this.Ie(u);var c=this.Ie(this.g.V(u));for(this.g.lr(u,s,o,!0),a=this.Rd.lb(a);-1!=a;a=this.Rd.lb(a)){u=this.Rd.ka(a);var l=this.Ie(u)==h;this.g.lr(u,s,o,l)}a=s.Xp(o,0).bc(),s=s.Xp(o,s.ql(o)-1).xc(),this.wK(h,a),this.wK(c,s)},i.prototype.UE=function(h,s,o){var a=this.Th(h),u=this.qg(h,0),c=this.qg(h,1),l=this.ot(-1);for(this.ph.add(l),this.Rl(l,-3),this.Gf.add(l),this.jj(l,u),h=1,s=s.ql(o);hthis.$y(l)&&this.er(l,this.g.Va(c))),l=this.Gf.get(h),h-=2,this.GD(l,c),c=this.g.V(c)}while(0<=h)}this.Gf.clear(!1)},i.prototype.Ie=function(h){return this.g.Qa(h,this.zh)},i.prototype.NI=function(h,s,o){var a=this.qg(s,0),u=new e.h;this.Jn(a,u);var c=new e.h,l=this.qg(s,1);this.Jn(l,c);var p=o.ql(h),v=o.Xp(h,0),b=new e.h;if(v.$p(b),!u.rb(b)){if(!this.Pg){var d=u.compare(this.xh);0>d*(b=b.compare(this.xh))&&(this.Pg=!0)}this.qF(a,this.Gf),this.Ck.add(a)}for(!this.Pg&&1v.compare(this.xh))&&(this.Pg=!0)),h=(v=o.Xp(h,p-1)).xc(),c.rb(h)||(this.Pg||0>(d=c.compare(this.xh))*(b=h.compare(this.xh))&&(this.Pg=!0),this.qF(l,this.Gf),this.Ck.add(l)),this.Gf.add(s),c=0,l=this.Gf.size;cMath.max(100,this.g.gd)){this.ph.clear(!1),this.Pg=!0;break}var h=this.ph.Gc();this.ph.Jf(),this.Rl(h,-1),-1!=this.RS(h)&&this.rS(h),this.Xn=!1}},i.prototype.rS=function(h){if(this.Xn){var s=this.Nc.Bu(this.HH,this.BH,h,!0);this.Xn=!1}else s=this.Nc.ED(h);-1==s?this.PT(this.Nc.ka(this.Nc.AF()),h):(this.Rl(h,s),this.ae.sg&&(this.ae.Mr(),this.jF(this.ae.Fm,s)))},i.prototype.RS=function(h){var s=this.qg(h,0);if(h=this.qg(h,1),this.Jn(s,this.Ao),this.Jn(h,this.Ri),e.h.zc(this.Ao,this.Ri)<=this.PA)return this.Pg=!0,-1;var o=this.Ao.compare(this.xh),a=this.Ri.compare(this.xh);return 0>=o&&0=a&&0h&&(this.se(n),h=this.description.Rf(n)),null==this.la&&this.wn(),this.la[this.description.bk(h)+t]=i},r.prototype.K=function(){return 33},r.prototype.Eb=function(){return 0},r.prototype.Pa=function(){this.wc(),null!=this.la&&(this.la[0]=NaN,this.la[1]=NaN)},r.prototype.un=function(n){if(null!=this.la){for(var t=e.fe.Kw(n,this.description),i=[],h=0,s=0,o=n.Ba;s>>32),n=e.P.Vh(h,n)}return n},r.prototype.ng=function(){return null},r}(e.ba);e.Ta=y}(k||(k={})),function(e){var y=function(){function f(r,n,t){void 0!==r&&(this.x=r,this.y=n,this.z=t)}return f.construct=function(r,n,t){var i=new f;return i.x=r,i.y=n,i.z=t,i},f.prototype.L=function(r,n,t){this.x=r,this.y=n,this.z=t},f.prototype.lx=function(){this.z=this.y=this.x=0},f.prototype.normalize=function(){var r=this.length();0==r&&(this.x/=r,this.y/=r,this.z/=r)},f.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},f.prototype.sub=function(r){return new f(this.x-r.x,this.y-r.y,this.z-r.z)},f.prototype.Bg=function(r){new f(this.x*r,this.y*r,this.z*r)},f.prototype.Sh=function(r){return this.x*r.x+this.y*r.y+this.z*r.z},f}();e.Od=y}(k||(k={})),function(e){var y=function(){function f(r,n,t){this.Iw=this.yA=null,this.Zf=n,this.AT=n.y-t,this.zT=n.y+t,this.Gw=0,this.Zz=r,this.ra=t,this.MT=t*t,this.$z=0!=t,this.Nv=!1}return f.prototype.result=function(){return 0!=this.Gw?1:0},f.prototype.UM=function(r){return r=r.ic(r.ge(this.Zf,!1)),e.h.zc(r,this.Zf)<=this.MT},f.prototype.aF=function(r){if(!this.$z&&(this.Zz&&this.Zf.rb(r.bc())||this.Zf.rb(r.xc())))this.Nv=!0;else if(r.oa==this.Zf.y&&r.oa==r.ma){if(this.Zz&&!this.$z){var n=Math.max(r.ta,r.qa);this.Zf.x>Math.min(r.ta,r.qa)&&this.Zf.xn?t=!0:this.Zf.x>=Math.min(r.ta,r.qa)&&(t=0r.xc().y?1:-1)}}},f.prototype.MI=function(r){var n=r.Vg(0,1);if(n.pa>this.zT||n.wathis.Zf.y||n.wa(r=r.I()))&&2*r+Math.log(r)/Math.log(2)*n<1*r*n},f}();e.Fg=y}(k||(k={})),function(e){var y=function(f){function r(n){return f.call(this,!0,n)||this}return J(r,f),r.prototype.Ja=function(){return new r(this.description)},r.prototype.Eb=function(){return 2},r.prototype.K=function(){return 1736},r.prototype.sG=function(n,t,i){this.ES(n,t,i)},r.prototype.kR=function(){this.AR()},r}(e.Xk);e.Ea=y}(k||(k={})),function(e){(function(y){y[y.PiPOutside=0]="PiPOutside",y[y.PiPInside=1]="PiPInside",y[y.PiPBoundary=2]="PiPBoundary"})(e.ML||(e.ML={})),e.jd=function(){function y(){}return y.FG=function(f,r,n){return 0==(f=e.Fg.XS(f,r,n))?0:1==f?1:2},y.Zd=function(f,r,n){return 0==(f=e.Fg.ym(f,r,n))?0:1==f?1:2},y.SX=function(f,r,n,t,i){if(r.lengthr?(0>r?r+=360:360<=r&&(r-=360),r):(0>(r=e.mc.MK(r))&&(r+=360),r)},f.bP=function(r){return 180<(r=f.cP(r))&&(r-=360),r},f.jW=57.29577951308232,f}();e.sr=y,e.Jh=function(){function f(){}return f.nj=function(r,n){var t=new e.l;r.A(t);var i=e.cb.ih(n),h=new e.l;return h.L(i),h.v=t.v,h.C=t.C,h.X(.01*h.da(),0),n=e.ua.Xd(n,t,!1),h.contains(t)?r:e.Vd.clip(r,h,n,0)},f.ms=function(r,n,t,i,h){if(!e.cb.Xc(n))throw e.i.O();var s=e.ua.mj(n,r,!1),o=e.cb.ih(n),a=e.cb.tc(n),u=a.Id().ci,c=e.cb.xv(a);a=e.cb.gv(a),c*=2-c;var l=new e.Oc;o.en(l);var p=[[0,0],[0,0]];if(2==e.Gg.Tb(n)?i?(p[0][0]=f.an(h,l),p[0][1]=o.Lp(),e.cb.wt(),o=p[0][0]*u):(p[0][0]=o.ik(),p[0][1]=h,e.cb.wt(),o=p[0][1]*u):o=h*u,!i&&0!=o)throw e.i.O();var v=new e.ha,b=new e.hd;r=b.Ib(r);for(var d=[0],g=new e.h,x=new e.h,m=new e.h,w=new e.h,j=new e.h,M=new e.h,A=b.Ob(r);-1!=A;A=b.Sb(A)){var z=b.Ya(A);b.D(z,m);for(var N=!1,I=z=b.V(z);-1!=I;I=b.V(I)){if(I==z){if(N)break;N=!0}if(b.D(I,w),i&&ss||ss||!i&&s<-m.y&&w.y>s||s<-w.y&&m.y>s)do{if(!(Math.abs(m.x-w.x)>=.5*l.S())){if(2==e.Gg.Tb(n)?(p[0][0]=f.an(m.x,l),p[0][1]=m.y,p[1][0]=f.an(w.x,l),p[1][1]=w.y,e.cb.ZV(),j.x=p[0][0]*u,j.y=p[0][1]*u,M.x=p[1][0]*u,M.y=p[1][1]*u):(j.x=m.x*u,j.y=m.y*u,M.x=w.x*u,M.y=w.y*u),M.x=6.283185307179586*(w.x-m.x)/l.S()+j.x,i){if(x.x=o,x.y=f.Iz(a,c,j,M,o,t),isNaN(x.y))break}else{if(x.x=f.Gz(a,c,j,M,t),isNaN(x.x))break;x.y=0}e.kb.xd(a,c,j.x,j.y,M.x,M.y,v,null,null,t);var D=v.u;e.kb.xd(a,c,j.x,j.y,x.x,x.y,v,null,null,t);var P=v.u;2==e.Gg.Tb(n)?(p[0][0]=x.x/u,p[0][1]=x.y/u,e.cb.XQ(),i?(g.y=p[0][1],g.x=h):(g.x=f.qs(p[0][0],m.x,w.x,l),g.y=h)):i?(g.x=h,g.y=x.y/u):(g.x=f.qs(x.x/u,m.x,w.x,l),g.y=h),d[0]=0i.x)var o=i;else o=t,t=i;i=new e.ha(0);var a=new e.ha(0),u=new e.ha(0);e.kb.xd(r,n,o.x,o.y,t.x,t.y,a,i,null,s);var c=a.u,l=0,p=1,v=new e.h;for(v.N(o);c*(p-l)>1e-12*r;){var b=.5*(l+p);if(e.kb.qj(r,n,o.x,o.y,c*b,i.u,a,u,s),v.x=a.u,v.y=u.u,v.x==h)break;if(f.Un(o.x,v.x,h))p=b;else{if(!f.Un(t.x,v.x,h))return NaN;l=b}}return v.y},f.Un=function(r,n,t){return r=y.Ep(r),n=y.mx(r,y.Ep(n)),0==(t=y.mx(r,y.Ep(t)))||0n&&0>t&&t>=n},f.an=function(r,n){var t=n.wa-n.pa;return n.Kt(r-Math.floor((r-n.pa)/t)*t)},f.qs=function(r,n,t,i){var h=new e.Oc;for(h.L(n,t),t=i.S(),r=Math.floor((r-n)/t)*t+r,h=h.tf();Math.abs(r-h)>Math.abs(r+t-h);)r+=t;return r},f.Gz=function(r,n,t,i,h){if(t.y>i.y)var s=i;else s=t,t=i;if((i=new e.Oc).L(s.y,t.y),!i.contains(0)||3.141592653589793<=Math.abs(s.x-t.x))return NaN;if(s.x==t.x)return s.x;var o=new e.ha(0),a=new e.ha(0),u=new e.ha(0);e.kb.xd(r,n,s.x,s.y,t.x,t.y,a,o,null,h);var c=a.u,l=0,p=1,v=new e.h;for(v.N(s);c*(p-l)>1e-12*r;){var b=.5*(l+p);if(e.kb.qj(r,n,s.x,s.y,c*b,o.u,a,u,h),v.x=a.u,v.y=u.u,i.L(s.y,v.y),0==v.y)break;if(i.contains(0))p=b;else{if(i.L(t.y,v.y),!i.contains(0))return NaN;l=b}}return v.x},f.Jp=function(r,n,t,i,h,s,o){var a=new e.l;if(r.A(a),a.B())return r;var u=new e.Oc;a.en(u);var c=new e.Oc;if(c.L(n,n+t),c.contains(u)&&c.wa!=u.wa)return r;var l=new e.l;l.L(a);var p=r.K();if(33==p)return((a=(l=h?r:r.Qf()).Ng())=c.wa||o&&a==c.wa)&&(a+=Math.ceil((c.pa-a)/t)*t,a=c.Kt(a),l.YB(a)),l;if(550==p){for(i=(l=h?r:r.Qf()).vb(0),p=2*l.I(),r=!1,h=0;h=c.wa||o&&a==c.wa)&&(r=!0,a+=Math.ceil((c.pa-a)/t)*t,a=c.Kt(a),i.write(h,a));return r&&l.Qc(1993),l}if(c.contains(u))return r;if(197==p)return t=h?r:r.Qf(),a.Fa(l),t.Zo(a),t;var v=.1*Math.max(a.da(),a.S());for(l.X(0,v),o=r,c=i.Yd(0),r=e.Ih.local(),h=new e.Ed;;){var b=Math.floor((u.pa-n)/t),d=Math.ceil((u.wa-n)/t);if(!(3l.v;)(v=e.Vd.clip(o,l,c,0)).A(u),(1607==p?!v.B()&&(u.S()>c||u.da()>c):!v.B()&&(1736!=p||u.S()>c))&&(v.Pc(h),v.A(u),n.A(s),s.X(c,c),s.isIntersecting(u)&&1736==p?n=r.W(n,v,i,null):n.add(v,!1)),l.move(t,0),h.shift(-t,0);return n},f.RI=function(r,n,t,i){var h=new e.ee(t.description);h.Gd(t,0,-1),h=e.cb.Bh(h,r,n);var s=t.I();if(i.Pa(),!e.cb.Xc(r)||s!=h.I())return!1;var o=new e.l;t.A(o);var a=new e.l;if(h.A(a),o=o.S(),a=a.S(),0!=o&&0!=a){if(a/=o,r=e.cb.ih(n).S()/e.cb.ih(r).S(),1e-10=t[h]?i[h]=t[h].toUpperCase():t[h];return i.join()}return t.toString(e.Tc.PE_STR_AUTH_TOP)},n.wr=function(t,i,h,s){var o=s.length,a=h.I();if(0!=a){var u=h.vb(0),c=Math.min(a,o),l=0,p=t.gh();isNaN(i)&&(i=0);for(var v=t.Xc(),b=179*(t=v?t.tc().Le().S():0)/360;0x*e.mc.sign(m)&&Math.abs(g)>b&&(s[d][0]+=-x*t)}u.pC(l<<1,c,s),l+=c,a-=c,c=Math.min(a,o)}h.Qc(1993)}},n.DL=function(t,i,h,s){var o=0,a=t.gh();isNaN(o)&&(o=0);var u=t.Xc(),c=t.bf();t=360*c,c*=179;for(var l=s.length,p=0;pm*e.mc.sign(g)&&Math.abs(x)>c&&(s[v][0]-=m*t)}e.ua.Dy(i,p,s,b),p+=b}}},n.Kx=function(t,i,h){var s=h.length,o=i.I();if(!(1>o)){var a=i.vb(0),u=Math.min(o,s),c=0,l=t.gh(),p=t.Xc(),v=p?t.Le().S():0,b=179*v/360,d=0;for(p&&(d=t.Bi());0x*e.mc.sign(m)&&Math.abs(g)>b&&(h[t][0]+=-x*v)}a.pC(c<<1,u,h),c+=u,o-=u,u=Math.min(o,s)}i.Qc(1993)}},n.CL=function(t,i,h,s){if(0!=h){var o=t.gh(),a=t.Xc(),u=a?t.Le().S():0,c=179*u/360,l=0;for(a&&(l=t.Bi()),t=0;tg*e.mc.sign(i[b].x-l)&&Math.abs(d)>c&&(s[p][0]-=g*u)}e.ua.Dy(i,t,s,v),t+=v}}}},n.vr=function(t,i,h,s){var o=i.I();if(0!=o){var a=i.vb(0),u=t.ef,c=t.$f,l=u.tc().Sp(),p=c.tc().Sp(),v=u.bf(),b=c.bf();if(null==(t=t.Yf)||0==t.count()){for(h=l/p,s=(u.Wp()-c.Wp())*b,p=-90*v,t=90*v,l=!1,b=1,u=2*o;bw?s[b][1]=w:s[b][1]<-w&&(s[b][1]=-w));for(v=0;vb){if(A){var V=I+(W+11*v&&(A=!1)}A||(E=K+(B-=e.mc.En(p,E-C)),++S,$=0!=B,R.x=E)}else F||e.ua.vG(U,H,R,N)&&(F=!0);$&&D.write(2*W,E),C=E,U.N(H),H.N(R)}0t?u=1:0>=c&&0.99*c&&(u=-1)):u=-1),0!=u&&((i=new e.Ea(o.description)).vp(l),(i=e.Zl.local().W(i,h,a)).add(o,!1),w=!0,o=i),w&&(o=e.$l.local().W(o,s,!1,a)),o},n.qQ=function(t,i,h,s,o){var a=h.I(),u=h.Oa(0),c=h.Oa(a-1);o=(s=n.fv(s,o)).S(),u=e.mc.sign(c.x-u.x);var l=new e.l;h.yc(l);var p=s.ik();if(c=p-o,p+=o,0<=u){var v=Math.ceil((c-l.v)/o);for(v*=o;c>l.v+v;)v+=o;for(;cl.v+v;)v+=o;b=v,720c;)1024<=m&&(m=0),d.move(v,0),g.Lb=v,h.Pc(g),s.v<=(x+=v)&&s.C>=x&&(o=l.I()-1),h.Db(0,b),b=h.Oa(a-1),l.Fr(h,0,0,a-1,!1);return h=new e.Ea(l.description),a=0u?a:!a)?(u=e.h.construct(c.x,s.H),h.Ei(u),u=e.h.construct(s.ik(),s.H),h.Ei(u),s=e.h.construct(t.x,s.H)):(u=e.h.construct(c.x,s.G),h.Ei(u),u=e.h.construct(s.ik(),s.G),h.Ei(u),s=e.h.construct(t.x,s.G)),h.Ei(s),h.sG(0,i,0),h.fO(o),h},n.pQ=function(t,i,h,s,o){var a=new e.Ea(t.description);a.add(t,!1),a.yB(0,a.I()-1);var u=new e.l;a.yc(u);var c=(h=n.fv(i,h)).S(),l=Math.ceil((h.v-u.v)/c);for(l*=c;h.v>u.v+l;)l+=c;for(;h.vu.C)return o&&(o=a.He(),i=(a=e.$l.local().W(a,i,!0,s)).He(),(i=e.mc.sign(o)!=e.mc.sign(i))&&a.jJ()),a;for((t=new e.Ea(t.description)).add(a,!1),o=o||u.S()>c-i.Yd(0);u.v=h){c=!0;break}if(0!=(2&o)&&p.y<=-h){c=!0;break}}if(!c)return!1;a=!1,t&&(a=i.Pn(0)),u=(t=new e.hd).Ib(i),c=t.Ob(u);var v=-1,b=!0,d=new e.h;d.Sc(),l=new e.Ta;for(var g=-1,x=t.Ya(c);-1!=x;x=t.V(x)){p=t.Oa(x);var m=0!=(1&o)&&90<=p.y?1:0;if(m|=0!=(2&o)&&p.y<=-h?2:0,0c){if((new e.l).L(d.v-u,-c,d.C+u,c),(o=e.ti.Pu(o,i,t,NaN,0,s)).B())return o;o.A(d)}if(x&&(i.Hd.H))return o.Ja();if(d.S()>p&&(o=n.Jp(o,v-l,p,t,!0,0,!0,s)).A(d),0!=(c=n.$N(d.v,d.C,i.v,i.C,p))&&d.move(c,0),d.C>i.C||d.vi.C)for(;d.v>=i.C;)d.move(-p,0),c-=p;for(;d.vc;c++){if(m?u=e.ba.Ic(a)?e.ti.clip(o,i,h,b,s):e.ti.clip(o,i,h,0,s):(u=e.Zj.local().W(o,g,t,s))==g&&(u=e.ba.kg(u)),i.v<=d.v&&i.C>=d.C||i.v>=d.v&&i.C<=d.C)return u;x[c]=u,0==c&&(d.move(-p,0),(u=new e.Ed).ig(-p,0),o.Pc(u))}if(550==a)x[0].Gd(x[1],0,-1);else if(e.ba.Ic(a))x[0].add(x[1],!1);else{if(33!=a)throw e.i.ga("intersect_with_GCS_horizon: unexpected geometry type");x[0].B()&&(x[0]=x[1])}return x[0]}if(i.Hd.H)return o;for(a=0;!o.B()&&d.C>i.v;)0!=a&&((u=new e.Ed).ig(a,0),o.Pc(u)),e.fj.local().W(4,o,g,t,s)||g==(o=e.mp.local().W(o,g,t,s))&&(o=e.ba.kg(o)),0!=a&&((b=new e.Ed).ig(-a,0),o.Pc(b)),a-=p,d.move(-p,0);return o},n.tG=function(t,i,h,s){if(0!=i&&s!=y.DontClip)if(s==y.PannableFold){s=h.CR();for(var o=i,a=0;as.H||t[a].yu||t[a].y<-u)&&(t[a].Sc(),o--);if(0!=o){(o=new e.l).bx(t,i),u=h.Xr();var l=h.kv();a=197==u.K();var p=new e.l;if(u.A(p),!l||!(p.Ho.H))if(l)if(n.cv(t,i,p.ik()-c,s),o=i,a)for(a=0;a=p||u&&v==p)&&(v+=Math.ceil((i-v)/h)*h,v=e.P.Tk(v,i,p),s.YB(v)),s}if(t.B()||(v=new e.l,t.A(v),v.B()))return t;var b=new e.Oc;v.en(b);var d=new e.Oc;if(d.L(i,p),d.contains(b))return t;if((p=new e.l).L(v),550===l){for(c=(s=o?t:t.Qf()).vb(0),l=2*s.I(),p=!1,i=0;i=d.wa||u&&v==d.wa)&&(p=!0,v+=Math.ceil((d.pa-v)/h)*h,v=d.Kt(v),c.write(i,v));return p&&s.Qc(1993),s}if(197==l)return h=o?t:t.Qf(),v.Fa(p),h.Zo(v),h;var g=.1*Math.max(v.da(),v.S());for(p.X(0,g),u=t,d=s.Yd(0),t=e.Ih.local(),o=new e.Ed;;){var x=Math.floor((b.pa-i)/h),m=Math.ceil((b.wa-i)/h);if(!(3p.v;)(g=e.ti.clip(u,p,d,0,c)).A(b),(1607==l?!g.B()&&(b.S()>d||b.da()>d):!g.B()&&(1736!=l||b.S()>d))&&(g.Pc(o),g.A(b),i.A(a),a.X(d,d),a.isIntersecting(b)&&1736==l?i=t.W(i,g,s,null):i.add(g,!1)),p.move(h,0),o.shift(-h,0);return i},n.cv=function(t,i,h,s){for(var o=h+s,a=0;ao||u==o)||(u+=Math.ceil((h-u)/s)*s,u=e.P.Tk(u,h,o),t[a].x=u)}},n.Hn=function(t,i,h,s,o,a){if(!i.Xc())throw e.i.ga("fold_into_360_degree_range");if(t.B())return t;if(2==i.Tb()){h=i.rv();var u=i.qv()-h}else{var c=i.bf();u=360*c,h-=180*c}return n.Jp(t,h,u,i,s,o,!0,a)},n.lF=function(t,i,h,s){if(2==h.Tb())s=h.rv(),h=h.qv()-s;else{var o=h.bf();h=360*o,s-=180*o}n.cv(t,i,s,h)},n.nj=function(t,i){var h=i.Le();if(33==t.K()){var s=t.kh();return h.G<=s&&s<=h.H?t:t.Ja()}s=new e.l,t.A(s);var o=new e.l;return o.L(h),o.v=s.v,o.C=s.C,o.X(.01*o.da(),0),h=e.ua.py(i,s),o.contains(s)?t:e.ti.clip(t,o,h,0,null)},n.kr=function(t,i,h){return t>i.C&&t-i.Ch.H?t[o].Sc():t[o].x=n.kr(t[o].x,h,s)},n.Lt=function(t,i,h,s){if(!t.B()){var o=t.K();if(!s||1736!=o)if(e.ba.zj(o)){s=t.vb(0),o=0;for(var a=t.I();os||ss)||!a&&(0!=u||s<-z.y&&N.y>s||s<-N.y&&z.y>s))do{if(!(Math.abs(z.x-N.x)>=.5*b.S())){if(2==h.Tb()?(g[0][0]=n.an(z.x,b),g[0][1]=z.y,g[1][0]=n.an(N.x,b),g[1][1]=N.y,e.gj.projToGeogCenter(d,2,g,0),I.x=g[0][0]*l,I.y=g[0][1]*l,D.y=g[1][1]*l):(I.x=z.x*l,I.y=z.y*l,D.y=N.y*l),D.x=2*(N.x-z.x)*Math.PI/b.S()+I.x,a){if(j.x=c,j.y=n.Iz(p,v,I,D,c,o),isNaN(j.y))break;A[0]=j;var S=1}else if(o==r.GreatElliptic){var F=[0,0];if(0==(S=e.Nx.Jz(v,I,D,c,F)))break;j.x=F[0],j.y=c,A[0]=j,2==S&&(M.x=F[1],M.y=c,A[1]=M)}else{if(j.x=n.Gz(p,v,I,D,o),isNaN(j.x))break;j.y=0,A[0]=j,S=1}var H=-1;for(F=0;Fm[0]||(H=t.Na(C),t.Wl(H,m,1),t.Db(t.V(H),w.x,w.y),H=m[0])}}}while(0);z.N(N)}}},n.an=function(t,i){var h=i.wa-i.pa;return i.Kt(t-Math.floor((t-i.pa)/h)*h)},n.qs=function(t,i,h,s){var o=new e.Oc;for(o.L(i,h),h=s.S(),t=Math.floor((t-i)/h)*h+t,o=o.tf();Math.abs(t-o)>Math.abs(t+h-o);)t+=h;return t},n.Un=function(t,i,h){return t=e.sr.Ep(t),i=e.sr.mx(t,e.sr.Ep(i)),0==(h=e.sr.mx(t,e.sr.Ep(h)))||0i&&0>h&&h>=i},n.Iz=function(t,i,h,s,o,a){if(a==r.GreatElliptic)return e.Nx.NS(i,h,s,o);if(Math.abs(h.x-s.x)>=Math.PI||!n.Un(h.x,s.x,o))return NaN;if(h.x>s.x)var u=s;else u=h,h=s;s=new e.ha;var c=new e.ha,l=new e.ha;e.kb.xd(t,i,u.x,u.y,h.x,h.y,c,s,null,a);var p=c.u,v=0,b=1,d=new e.h;for(d.N(u);p*(b-v)>1e-12*t;){var g=.5*(v+b);if(e.kb.qj(t,i,u.x,u.y,p*g,s.u,c,l,a),d.x=c.u,d.y=l.u,d.x==o)break;if(n.Un(u.x,d.x,o))b=g;else{if(!n.Un(h.x,d.x,o))return NaN;v=g}}return d.y},n.Gz=function(t,i,h,s,o){if(o==r.GreatElliptic)return e.Nx.Jz(i,h,s,0,t=[0,0]),t[0];if(h.y>s.y)var a=s;else a=h,h=s;if((s=new e.Oc).L(a.y,h.y),!s.contains(0)||Math.abs(a.x-h.x)>=Math.PI)return NaN;if(a.x==h.x)return a.x;var u=new e.ha,c=new e.ha,l=new e.ha;e.kb.xd(t,i,a.x,a.y,h.x,h.y,c,u,null,o);var p=c.u,v=0,b=1,d=new e.h;for(d.N(a);p*(b-v)>1e-12*t;){var g=.5*(v+b);if(e.kb.qj(t,i,a.x,a.y,p*g,u.u,c,l,o),d.x=c.u,d.y=l.u,s.L(a.y,d.y),0==d.y)break;if(s.contains(0))b=g;else{if(s.L(h.y,d.y),!s.contains(0))return NaN;v=g}}return d.x},n.RI=function(t,i,h,s){if(!t.ef.Xc())return!1;var o=new e.ee(i.description);if(o.Gd(i,0,-1),s=e.Gx.local().W(o,t,s),o=i.I(),h.Pa(),o!=s.I())return!1;var a=new e.l;i.A(a);var u=new e.l;if(s.A(u),a=a.S(),u=u.S(),0!=a&&0!=u){if(u/=a,t=t.$f.ih().S()/t.ef.ih().S(),1e-10=180*i&&(t-=360*i),t},n.OI=function(t,i,h,s){if(h==y.Clip){var o=i.ol();197==o.K()?(h=new e.l,o.A(h),o=e.ua.py(i,h),t=e.ti.clip(t,h,o,5e4*i.rm(),s)):e.fj.local().W(1,o,t,i,s)||(t=e.Zj.local().W(t,o,i,s))==o&&(t=e.Xk.kg(t))}else i.Xc()&&(s=new e.l,t.yc(s),i.Le().contains(s)||(n.Lt(t,i.Le(),i.Yd(0),!0),h==y.PannableFold&&(t=n.nj(t,i)),t=n.Hn(t,i,0,!0,1e5*i.rm(),null)));return t},n.SD=function(t,i,h){var s=i.Yr();if(null==s)return t;var o=(i=i.tc()).Le().S(),a=new e.l;t.yc(a);var u=new e.Oc;a.en(u),a=s.Ha(),s=null;for(var c=new e.Ed;a.ab();)for(;a.Ia();){var l=a.ia(),p=l.Vg(0,0),v=new e.Oc;for(v.L(p.pa,p.wa),p=0;v.wa>u.pa;)v.move(-o),--p;for(;v.pa<=u.wa;){if(v.isIntersecting(u)){null==s&&(s=new e.Ua);var b=e.zb.YO(l.bc(),l.xc());0!=p&&(c.ig(p*o,0),b.Pc(c)),s.pc(b,!0)}v.move(o),++p}}return null!=s?(i=e.ua.bO(i,s),i=e.ua.Gr(i),e.bu.gP(t,s,i,h)):t},n.$N=function(t,i,h,s,o){return t>=h&&i<=s?0:n.oE(.5*(i+t),h,s,o)},n.oE=function(t,i,h,s){return e.mc.round((.5*(h+i)-t)/s)*s},n.QQ=function(t,i,h,s,o,a,u,c){var l=n.fv(s,o),p=l.S(),v=p/360,b=n.kE*v,d=t.vb(0),g=i.Xc(),x=g?p/i.Le().S():0;i=t.Ja();for(var m=0,w=h.ea();mb){if(j){var X=z+$-1,V=z;(!N||$+11*v&&(g=!1)}j||(K=R+(D-=e.mc.En(p,K-P)),++B,U=0!=D,W.x=K)}else S||e.ua.vG(F,H,W,C)&&(S=!0);U&&I.write(2*$,K),P=K,F.N(H),H.N(W)}0!=B&&M.Qc(1993),j=M.Oa(0),A=M.Oa(A-1),e.h.ub(j,A),M=n.rQ(M,s,isNaN(o)?0:o,a),i.add(M,!1)}return t=s.Yd(0),h=l.S()/180,n.Lt(i,l,.1*t,!1),e.ti.clip(i,l,t,h,a)},n.rQ=function(t,i,h,s){return n.Hn(t,i,h,!0,0,s)},n.JS=function(t,i,h,s){var o=t.K();if(1736==o)for(i=null!=i?i.Yd(0):0,o=0;oh)for(var o=new e.Ta,a=0;ah)for(var o=new e.Ta,a=0;athis.Ko},r.prototype.az=function(){if(this.B())throw e.i.ga("invalid call");return new e.Ta(this.Ds.x,this.Ds.y)},r.prototype.Va=function(){if(this.B())throw e.i.ga("invalid call");return this.Ko},r.prototype.cz=function(){if(this.B())throw e.i.ga("invalid call");return this.La},r.prototype.Nz=function(){return 0!=(1&this.pw)},r.prototype.by=function(n,t,i,h){this.Ds.x=n,this.Ds.y=t,this.Ko=i,this.La=h},r}();e.bm=f}(k||(k={})),function(e){var y=function(){function r(){}return r.prototype.Wo=function(n,t){this.vh.resize(0),this.Ki.length=0,this.vk=-1,n.yc(this.Gk),this.Gk.X(t,t),this.Gk.isIntersecting(this.Gb.Da)?((this.xs=e.ba.zd(n.K()))?(this.OH=n.bc(),this.NH=n.xc(),this.ra=t):this.ra=NaN,this.vh.add(this.Gb.kf),this.Ki.push(this.Gb.Da),this.Ss=this.Gb.Wr(this.Gb.kf)):this.Ss=-1},r.prototype.Zi=function(n,t){this.vh.resize(0),this.Ki.length=0,this.vk=-1,this.Gk.L(n),this.Gk.X(t,t),this.ra=NaN,this.Gk.isIntersecting(this.Gb.Da)?(this.vh.add(this.Gb.kf),this.Ki.push(this.Gb.Da),this.Ss=this.Gb.Wr(this.Gb.kf),this.xs=!1):this.Ss=-1},r.prototype.next=function(){if(0==this.vh.size)return-1;this.vk=this.Ss;var n=null,t=null,i=null,h=null;this.xs&&(n=new e.h,t=new e.h,i=new e.l);for(var s=!1;!s;){for(;-1!=this.vk;){var o=this.Gb.Xy(this.Gb.hv(this.vk));if(o.isIntersecting(this.Gk)){if(!this.xs){s=!0;break}if(n.N(this.OH),t.N(this.NH),i.L(o),i.X(this.ra,this.ra),0a;a++){var u=this.Gb.Np(o,a);if(-1!=u&&0>h);0==s?(t.v=.5*(t.v+t.C),t.G=.5*(t.G+t.H)):1==s?(t.C=.5*(t.v+t.C),t.G=.5*(t.G+t.H)):(2==s?t.C=.5*(t.v+t.C):t.v=.5*(t.v+t.C),t.H=.5*(t.G+t.H))}return t},r.prototype.RR=function(n){return this.vz(n)},r.prototype.qR=function(n,t){return y.XO(this,n,t)},r.prototype.HF=function(n,t){return y.WO(this,n,t)},r.prototype.getIterator=function(){return y.VO(this)},r.prototype.Pk=function(n,t){if(0>t||32<2*t)throw e.i.O("invalid height");this.wT=t,this.Da.L(n),this.kf=this.jf.De(),this.jx(this.kf,0),this.dx(this.kf,0),this.IJ(this.kf,0),this.FJ(this.kf,0)},r.prototype.Bv=function(n,t,i,h,s,o,a){if(!h.contains(t))return 0==i?-1:this.Bv(n,t,0,this.Da,this.kf,o,a);if(!o)for(var u=s;-1!=u;u=this.DR(u))this.jx(u,this.vz(u)+1);(u=new e.l).L(h),h=s;var c=[];for(c[0]=new e.l,c[1]=new e.l,c[2]=new e.l,c[3]=new e.l;ip;p++)if(c[p].contains(t)){l=!0;var v=this.Np(h,p);-1==v&&(v=this.mP(h,p)),this.jx(v,this.vz(v)+1),h=v,u.L(c[p]);break}if(!l)break}return this.nS(n,t,i,u,h,o,s,a)},r.prototype.nS=function(n,t,i,h,s,o,a,u){var c=this.IF(s);if(o){if(s==a)return u;this.NP(u),o=u}else o=this.oP(),this.IB(o,n),this.FW(this.hv(o),t);return this.hX(o,s),-1!=c?(this.hx(o,c),this.ex(c,o)):this.BJ(s,o),this.NB(s,o),this.dx(s,this.nv(s)+1),this.cO(s)&&this.HQ(i,h,s),o},r.prototype.NP=function(n){var t=this.RF(n),i=this.IF(t),h=this.JR(n),s=this.pv(n);this.Wr(t)==n?(-1!=s?this.hx(s,-1):this.NB(t,-1),this.BJ(t,s)):i==n?(this.ex(h,-1),this.NB(t,h)):(this.hx(s,h),this.ex(h,s)),this.hx(n,-1),this.ex(n,-1),this.dx(t,this.nv(t)-1)},r.zJ=function(n,t){var i=.5*(n.v+n.C),h=.5*(n.G+n.H);t[0].L(i,h,n.C,n.H),t[1].L(n.v,h,i,n.H),t[2].L(n.v,n.G,i,h),t[3].L(i,n.G,n.C,h)},r.prototype.cO=function(n){return 8==this.nv(n)&&!this.bG(n)},r.prototype.HQ=function(n,t,i){var h=this.Wr(i);do{var s=this.hv(h),o=this.ai.U(h,0);s=this.Xy(s),this.Bv(o,s,n,t,i,!0,h),h=o=this.pv(h)}while(-1!=h)},r.prototype.dO=function(n){return 8<=this.nv(n)||this.bG(n)},r.prototype.bG=function(n){return-1!=this.Np(n,0)||-1!=this.Np(n,1)||-1!=this.Np(n,2)||-1!=this.Np(n,3)},r.prototype.mP=function(n,t){var i=this.jf.De();return this.JW(n,t,i),this.jx(i,0),this.dx(i,0),this.Rk(i,n),this.FJ(i,this.lv(n)+1),this.IJ(i,t<<2*this.lv(n)|this.LF(n)),i},r.prototype.oP=function(){var n=this.ai.De();if(0>4)]|=this.dH<<2*(15&s)},n}();e.DY=f;var r=function(){function n(t,i,h){this.Xh=null,this.NA=this.Kk=this.YH=this.WH=this.Gs=this.lH=this.Hf=this.Wm=0,this.Ti=this.Lk=this.xl=null,this.Az(t,i,h)}return n.create=function(t,i,h){if(!n.uE(t))throw e.i.O();return n.rP(t,i,h)},n.kW=function(t){switch(t){case 0:t=1024;break;case 1:t=16384;break;case 2:t=262144;break;default:throw e.i.ga("Internal Error")}return t},n.uE=function(t){return!(t.B()||1607!=t.K()&&1736!=t.K())},n.prototype.mQ=function(t,i){i=i.Ha();for(var h=new e.h,s=new e.h;i.ab();)for(;i.Ia();){var o=i.ia();if(322!=o.K())throw e.i.ga("Internal Error");t.Gh(o.bc(),h),t.Gh(o.xc(),s),this.Ti.fy(h.x,h.y,s.x,s.y)}this.Ti.dJ(e.Ox.Bx)},n.prototype.nQ=function(){throw e.i.ga("Internal Error")},n.prototype.My=function(t,i){for(var h=1;4>h;h++)t.fy(i[h-1].x,i[h-1].y,i[h].x,i[h].y);t.fy(i[3].x,i[3].y,i[0].x,i[0].y),this.Ti.dJ(e.Ox.Bx)},n.prototype.mK=function(t,i,h){for(var s=[null,null,null,null],o=0;o(g=o.length());0==g?o.na(1,0):(x||v.N(l),o.scale(h/g),a.na(-o.y,o.x),u.na(o.y,-o.x),c.sub(o),l.add(o),s[0].add(c,a),s[1].add(c,u),s[2].add(l,u),s[3].add(l,a),x?b=!0:this.My(t,s))}else b&&(this.My(t,s),b=!1),d=!0}b&&this.My(t,s)}},n.prototype.nC=function(t){return e.P.truncate(t*this.lH+this.WH)},n.prototype.oC=function(t){return e.P.truncate(t*this.Gs+this.YH)},n.rP=function(t,i,h){return new n(t,i,h)},n.prototype.Az=function(t,i,h){this.Hf=Math.max(e.P.truncate(2*Math.sqrt(h)+.5),64),this.Wm=e.P.truncate((2*this.Hf+31)/32),this.xl=new e.l,this.Kk=i,h=0;for(var s=this.Hf,o=this.Wm;8<=s;)h+=s*o,s=e.P.truncate(s/2),o=e.P.truncate((2*s+31)/32);this.Xh=e.P.mg(h,0),this.Ti=new e.Ox,h=new f(this.Xh,this.Wm,this),this.Ti.wX(this.Hf,this.Hf,h),t.A(this.xl),this.xl.X(i,i),s=new e.l;var a=i*(o=e.l.construct(1,1,this.Hf-2,this.Hf-2)).S();switch(i*=o.da(),s.L(this.xl.tf(),Math.max(a,this.xl.S()),Math.max(i,this.xl.da())),this.NA=this.Kk,this.Lk=new e.Ed,this.Lk.kS(s,o),new e.Ed,t.K()){case 550:h.ax(this.Ti,2),this.nQ();break;case 1607:h.ax(this.Ti,2),this.mK(this.Ti,t,this.NA);break;case 1736:h.ax(this.Ti,1),this.mQ(this.Lk,t),h.ax(this.Ti,2),this.mK(this.Ti,t,this.NA)}this.lH=this.Lk.eb,this.Gs=this.Lk.bb,this.WH=this.Lk.Lb,this.YH=this.Lk.Qb,this.SN()},n.prototype.SN=function(){this.Ti.flush();for(var t=0,i=this.Hf*this.Wm,h=this.Hf,s=e.P.truncate(this.Hf/2),o=this.Wm,a=e.P.truncate((2*s+31)/32);8>4,d=v>>4,g=this.Xh[t+o*u+b]>>(p=2*(15&p))&3;g|=this.Xh[t+o*u+d]>>(v=2*(15&v))&3,g|=this.Xh[t+o*c+b]>>p&3,this.Xh[i+a*h+(l>>4)]|=(g|=this.Xh[t+o*c+d]>>v&3)<<2*(15&l)}o=a,t=i,s=e.P.truncate((h=s)/2),a=e.P.truncate((2*s+31)/32),i=t+o*h}},n.prototype.Uo=function(t,i){return this.xl.contains(t,i)?(t=this.nC(t),i=this.oC(i),0>t||t>=this.Hf||0>i||i>=this.Hf||0==(i=this.Xh[this.Wm*i+(t>>4)]>>2*(15&t)&3)?0:1==i?1:2):0},n.prototype.To=function(t){if(!t.Fa(this.xl))return 0;var i=this.nC(t.v),h=this.nC(t.C),s=this.oC(t.G);if(t=this.oC(t.H),0>i&&(i=0),0>s&&(s=0),h>=this.Hf&&(h=this.Hf-1),t>=this.Hf&&(t=this.Hf-1),i>h||s>t)return 0;for(var o=Math.max(h-i,1)*Math.max(t-s,1),a=0,u=this.Wm,c=this.Hf,l=0;;){if(32>o||16>c){for(o=s;o<=t;o++)for(var p=i;p<=h;p++)if(1<(l=this.Xh[a+u*o+(p>>4)]>>2*(15&p)&3))return 2;if(0==l)return 0;if(1==l)return 1}a+=u*c,c=e.P.truncate(c/2),u=e.P.truncate((2*c+31)/32),i=e.P.truncate(i/2),s=e.P.truncate(s/2),h=e.P.truncate(h/2),t=e.P.truncate(t/2),o=Math.max(h-i,1)*Math.max(t-s,1)}},n.prototype.MR=function(){return this.Hf*this.Wm},n}();e.Mx=r}(k||(k={})),function(e){var y;(y=e.QL||(e.QL={}))[y.contains=1]="contains",y[y.within=2]="within",y[y.equals=3]="equals",y[y.disjoint=4]="disjoint",y[y.touches=8]="touches",y[y.crosses=16]="crosses",y[y.overlaps=32]="overlaps",y[y.unknown=0]="unknown",y[y.intersects=1073741824]="intersects";var f=function(){function n(){}return n.construct=function(t,i,h,s,o,a,u,c){var l=new n;return l.rw=t,l.Om=i,l.Mj=h,l.Ui=s,l.wH=o,l.OY=a,l.PY=u,l.QY=c,l},n}();e.Xt=function(){function n(){}return n.xD=function(t,i,h){if(n.ry(t)){var s=e.ua.mj(i,t,!1);i=!1,e.Wk.xE(t)&&(i=i||t.nu(s,h)),1736!=(s=t.K())&&1607!=s||!e.Wk.vE(t)||0==h||(i=i||t.hj(h)),1736!=s&&1607!=s||!e.Wk.wE(t)||0==h||i||t.cM()}},n.ry=function(t){return e.Wk.xE(t)||e.Wk.vE(t)||e.Wk.wE(t)},n}();var r=function(){function n(){this.th=[]}return n.uB=function(t,i,h,s,o){var a=t.K(),u=i.K();if(197==a){if(197==u)return n.oW(t,i,h,s);if(33==u)return 2==s?s=1:1==s&&(s=2),n.cJ(i,t,h,s)}else if(33==a){if(197==u)return n.cJ(t,i,h,s);if(33==u)return n.qW(t,i,h,s)}if(t.B()||i.B())return 4==s;var c=new e.l;t.A(c);var l=new e.l;i.A(l);var p=new e.l;if(p.L(c),p.$b(l),h=e.ua.Xd(h,p,!1),n.fk(c,l,h))return 4==s;switch(c=!1,e.Xk.zd(a)&&((a=new e.Ua(t.description)).pc(t,!0),t=a,a=1607),e.Xk.zd(u)&&((u=new e.Ua(i.description)).pc(i,!0),i=u,u=1607),197!=a&&197!=u?(t.Eb()4*Math.max(t.I(),i.I())*h)&&n.Rz(t,i,h,!0)))},n.fV=function(t,i,h){var s=n.rc(t,i,!0);return 4==s||1!=s&&2!=s&&1073741824!=s&&n.zI(t,i,h)},n.qV=function(t,i,h){var s=n.rc(t,i,!1);return 4!=s&&1!=s&&2!=s&&n.DI(t,i,h,null)},n.lV=function(t,i,h,s){var o=n.rc(t,i,!1);return 4!=o&&1!=o&&2!=o&&n.AI(t,i,h,s)},n.Uw=function(t,i,h,s){var o=new e.l,a=new e.l;return t.A(o),i.A(a),!!n.Ac(o,a,h)&&4!=(o=n.rc(t,i,!1))&&2!=o&&(1==o||n.wI(t,i,h,s))},n.gV=function(t,i,h){var s=n.rc(t,i,!0);return 4==s||1!=s&&1073741824!=s&&n.zI(t,i,h)},n.rV=function(t,i,h,s){var o=n.rc(t,i,!1);return 4!=o&&1!=o&&n.EI(t,i,h,s)},n.bV=function(t,i,h){var s=n.rc(t,i,!1);return 4!=s&&1!=s&&n.yI(t,i,h,null)},n.aB=function(t,i,h,s){var o=new e.l,a=new e.l;return t.A(o),i.A(a),!!n.Ac(o,a,h)&&4!=(o=n.rc(t,i,!1))&&(1==o||n.xI(t,i,h,s))},n.eV=function(t,i,h){return 0==e.jd.FG(t,i,h)},n.pV=function(t,i,h){return i=i.D(),n.CI(t,i,h)},n.ZU=function(t,i,h){return i=i.D(),n.vI(t,i,h)},n.dV=function(t,i,h){var s=n.rc(t,i,!1);if(4==s)return!0;if(1==s)return!1;s=new e.l,t.A(s),s.X(h,h);for(var o=new e.h,a=0;ah&&a.S()>h||a.da()<=h&&a.S()<=h)&&(o=new e.Ua,a=new e.Ta,i.If(0,a),o.nf(a),i.If(2,a),o.lineTo(a),n.yI(t,o,h,s))},n.DV=function(t,i,h){var s=new e.l,o=new e.l;return t.A(s),i.A(o),!(!n.gk(s,o,h)||4==n.rc(t,i,!1))&&(!!n.ZH(t,i,h)||n.Rz(t,i,h,!1))},n.BV=function(t,i,h){return 4==this.rc(t,i,!1)||!!new e.am(t,i,h,!0).next()&&!this.OG(t,i,h)},n.II=function(t,i,h){if(4==n.rc(t,i,!1))return!1;var s=new e.ce(0);if(0!=n.Sz(t,i,h,s))return!1;for(var o=new e.ee,a=0;ah&&o.S()>h)&&n.gk(s,o,h)},n.yV=function(t,i,h){var s=new e.l,o=new e.l;return t.A(s),i.A(o),!n.Ac(o,s,h)&&!n.NG(t,o,h)},n.JV=function(t,i,h){var s=new e.l,o=new e.l;if(t.A(s),i.A(o),o.da()<=h&&o.S()<=h)return o=i.Kp(),n.Uz(t,o,h);if(o.da()<=h||o.S()<=h)return o=new e.Ua,s=new e.Ta,i.If(0,s),o.nf(s),i.If(2,s),o.lineTo(s),n.II(t,o,h);t=t.Ha(),i=new e.l,s=new e.l,i.L(o),s.L(o),i.X(-h,-h),s.X(h,h),o=!1;for(var a=new e.l,u=new e.l;t.ab();)for(;t.Ia();){if(t.ia().A(a),u.L(i),u.Fa(a),!u.B()&&(u.da()>h||u.S()>h))return!1;u.L(s),u.Fa(a),u.B()||(o=!0)}return o},n.GV=function(t,i,h){var s=new e.l,o=new e.l;return t.A(s),i.A(o),!(n.Ac(s,o,h)||n.Ac(o,s,h)||n.Ac(o,s,h)||o.da()>h&&o.S()>h||o.da()<=h&&o.S()<=h)&&(s=new e.Ua,o=new e.Ta,i.If(0,o),s.nf(o),i.If(2,o),s.lineTo(o),n.QG(t,s,h))},n.MV=function(t,i,h){var s=new e.l,o=new e.l;if(t.A(s),i.A(o),!n.Ac(o,s,h)||o.da()<=h&&o.S()<=h)return!1;if(o.da()<=h||o.S()<=h)return n.Ac(o,s,h);t=t.Ha(),(i=new e.l).L(o),i.X(-h,-h),o=!1,s=new e.l;for(var a=new e.l;t.ab();)for(;t.Ia();)t.ia().A(s),i.jm(s)?o=!0:(a.L(i),a.Fa(s),!a.B()&&(a.da()>h||a.S()>h)&&(o=!0));return o},n.tV=function(t,i,h){var s=new e.l,o=new e.l;return i.A(o),t.A(s),!(!n.Ac(s,o,h)||o.da()>h&&o.S()>h)&&(o.da()<=h&&o.S()<=h?(i=i.Kp(),n.MG(t,i,h)):(s=new e.Ua,o=new e.Ta,i.If(0,o),s.nf(o),i.If(2,o),s.lineTo(o),n.Am(s,t,h,!1)))},n.wV=function(t,i,h){var s=new e.l,o=new e.l;if(t.A(s),i.A(o),n.Ac(o,s,h)||o.da()<=h&&o.S()<=h)return!1;if(o.da()<=h||o.S()<=h)return s=new e.Ua,o=new e.Ta,i.If(0,o),s.nf(o),i.If(2,o),s.lineTo(o),n.GI(t,s,h);t=t.Ha(),i=new e.l,(s=new e.l).L(o),i.L(o),s.X(-h,-h),i.X(h,h);for(var a=o=!1,u=new e.l,c=new e.l;t.ab();)for(;t.Ia();)if(t.ia().A(u),a||i.contains(u)||(a=!0),o||(c.L(s),c.Fa(u),!c.B()&&(c.da()>h||c.S()>h)&&(o=!0)),o&&a)return!0;return!1},n.dU=function(t,i,h){var s=new e.l,o=new e.l;return t.A(s),i.A(o),!!n.gk(s,o,h)&&(!!n.eU(t,i,h)||n.TA(t,i,h,!1,!0,!1))},n.bU=function(t,i,h){return!n.bI(t,i,h)},n.jU=function(t,i,h){return n.TA(t,i,h,!1,!1,!0)},n.$H=function(t,i,h){var s=new e.l,o=new e.l;return t.A(s),i.A(o),!!n.Ac(s,o,h)&&n.TA(i,t,h,!0,!1,!1)},n.Ow=function(t,i,h){h*=h;for(var s=new e.h,o=new e.h,a=0;ah||o.S()>h)&&n.gk(s,o,h)},n.aU=function(t,i,h){var s=new e.l,o=new e.l;if(t.A(s),i.A(o),n.Ac(o,s,h))return!1;for((i=new e.l).L(o),i.X(h,h),h=new e.h,o=0;oh?a.X(0,-h):a.X(-h,0);for(var c=0;ch){if(i.y>a.G&&i.ya.v&&i.xh?s.X(0,-h):s.X(-h,0),a.X(h,h);for(var u=new e.h,c=0;ch?u.y>s.G&&u.ys.v&&u.xh||o.S()>h||(i=i.Kp(),n.lt(t,i,h)))},n.$T=function(t,i,h){var s=new e.l,o=new e.l;if(t.A(s),i.A(o),n.Ac(o,s,h)||o.da()<=h&&o.S()<=h)return!1;if(o.da()<=h||o.S()<=h){i=new e.l,s=new e.l,i.L(o),o.da()>h?i.X(0,-h):i.X(-h,0),s.L(o),s.X(h,h);for(var a=new e.h,u=!1,c=!1,l=0;lh?a.y>i.G&&a.yi.v&&a.xh*h},n.pI=function(t,i,h){return n.rI(t,i,h)},n.qI=function(t,i,h){var s=new e.l;return s.L(t),n.gk(s,i,h)},n.Tw=function(t,i,h){var s=new e.l;return s.L(i),s.X(h,h),!s.contains(t)},n.ZA=function(t,i,h){if(i.da()<=h&&i.S()<=h)return!1;var s=new e.l,o=new e.l;if(s.L(i),s.X(h,h),!s.contains(t))return!1;if(i.da()<=h||i.S()<=h){if(o.L(i),i.da()>h?o.X(0,-h):o.X(-h,0),i.da()>h){if(t.y>o.G&&t.yo.v&&t.xh?s.X(0,-h):s.X(-h,0);var o=!1;return i.da()>h?t.y>s.G&&t.ys.v&&t.xh&&t.S()>h&&(i.da()<=h||i.S()<=h)?s=i:(s=t,t=i),s.da()<=h||s.S()<=h){if(t.da()<=h||t.S()<=h){i=new e.zb;var o=new e.zb,a=[0,0],u=[0,0],c=new e.h;return s.fn(c),i.Ec(c),s.gn(c),i.Rc(c),t.fn(c),o.Ec(c),t.gn(c),o.Rc(c),i.Fa(o,null,a,u,h),1==i.Fa(o,null,null,null,h)&&(0==a[0]||1==a[1]||0==u[0]||1==u[1])}return i=new e.l,o=new e.l,i.L(t),i.X(-h,-h),o.L(i),o.Fa(s),!(!o.B()&&(o.da()>h||o.S()>h))}return t.X(h,h),(o=new e.l).L(s),o.Fa(t),!(o.B()||!o.B()&&o.da()>h&&o.S()>h)},n.XP=function(t,i,h){if(n.Ac(t,i,h)||n.Ac(i,t,h)||t.da()<=h&&t.S()<=h||i.da()<=h&&i.S()<=h)return!1;if(t.da()<=h||t.S()<=h){if(i.da()>h&&i.S()>h)return!1;var s=new e.zb,o=new e.zb,a=[0,0],u=[0,0],c=new e.h;return t.fn(c),s.Ec(c),t.gn(c),s.Rc(c),i.fn(c),o.Ec(c),i.gn(c),o.Rc(c),s.Fa(o,null,a,u,h),2==s.Fa(o,null,null,null,h)&&(0a[1])&&(0u[1])}return!(i.da()<=h||i.S()<=h||((s=new e.l).L(t),s.Fa(i),s.B()||s.da()<=h||s.S()<=h))},n.eF=function(t,i,h){if(!n.Ac(t,i,h))return!1;if(t.da()<=h&&t.S()<=h)return t=t.tf(),n.$A(t,i,h);if(i.da()<=h&&i.S()<=h)return i=i.tf(),n.$A(i,t,h);if(t.da()<=h||t.S()<=h)return n.Ac(t,i,h);if(i.da()<=h||i.S()<=h){var s=new e.l;return s.L(t),s.X(-h,-h),!(!s.jm(i)&&((t=new e.l).L(s),t.Fa(i),t.B()||t.da()<=h&&t.S()<=h))}return n.Ac(t,i,h)},n.WP=function(t,i,h){if(n.Ac(t,i,h)||n.Ac(i,t,h)||t.da()<=h&&t.S()<=h||i.da()<=h&&i.S()<=h||i.da()>h&&i.S()>h&&t.da()>h&&t.S()>h)return!1;if(t.da()>h&&t.S()>h)var s=i;else s=t,t=i;if(t.da()>h&&t.S()>h){i=new e.l;var o=new e.l;return o.L(t),o.X(-h,-h),i.L(o),i.Fa(s),!(i.B()||i.da()<=h&&i.S()<=h)}i=new e.zb,o=new e.zb;var a=[0,0],u=[0,0],c=new e.h;return s.fn(c),i.Ec(c),s.gn(c),i.Rc(c),t.fn(c),o.Ec(c),t.gn(c),o.Rc(c),i.Fa(o,null,a,u,h),1==i.Fa(o,null,null,null,h)&&0a[1]&&0u[1]},n.zI=function(t,i,h){var s=new e.l,o=new e.l,a=new e.am(t,i,h,!0);if(!a.next())return!0;if(this.OG(t,i,h))return!1;var u=t,c=null;1736==i.K()&&(c=i);var l=!1,p=!1;do{var v=a.pl(),b=a.jl();if(b=i.Oa(i.Ca(b)),s.L(a.oz()),s.X(h,h),s.contains(b)&&0!=(b=e.jd.Zd(u,b,0))||1736==i.K()&&(v=t.Oa(t.Ca(v)),o.L(a.Wy()),o.X(h,h),o.contains(v)&&0!=(b=e.jd.Zd(c,v,0))))return!1;l||(!e.Fg.Ol(t,i.ea()-1)||null!=t.Cb&&null!=t.Cb.Gb?u=t:(u=new e.Ea,t.copyTo(u),u.hj(1)),l=!0),1736!=i.K()||p||(!e.Fg.Ol(p=i,t.ea()-1)||null!=i.Cb&&null!=i.Cb.Gb?c=i:(c=new e.Ea,p.copyTo(c),c.hj(1)),p=!0)}while(a.next());return!0},n.Ac=function(t,i,h){var s=new e.l;return s.L(t),s.X(h,h),s.contains(i)},n.ns=function(t,i,h){var s=new e.l;return s.L(i),s.X(h,h),i=new e.h,t.fn(i),!(s.contains(i)&&(t.VI(i),s.contains(i)&&(t.YI(i),s.contains(i)&&(t.gn(i),s.contains(i)))))},n.ZH=function(t,i,h){if(t.ea()!=i.ea()||t.I()!=i.I())return!1;var s=new e.h,o=new e.h,a=!0;h*=h;for(var u=0;uh){a=!1;break}if(!a)break}return!!a},n.eU=function(t,i,h){if(t.I()!=i.I())return!1;var s=new e.h,o=new e.h,a=!0;h*=h;for(var u=0;uh){a=!1;break}return!!a},n.TA=function(t,i,h,s,o,a){var u=!1;if(t.I()>i.I()){s&&(s=!1,u=!0);var c=i}else c=t,t=i;if(i=null,o||a||u){i=new e.rn(t.I());for(var l=0;li.I())var s=i;else s=t,t=i;i=new e.l;var o=new e.l,a=new e.l;s.A(i),t.A(o),i.X(h,h),o.X(h,h),a.L(i),a.Fa(o),o=new e.h;for(var u=new e.h,c=h*h,l=e.ua.jE(t,a),p=l.getIterator(),v=0;vh)return!1;if(w*(1-(M=a.Ui))<=h||1==M)break}if(w*(1-M)>h)return!1;p=0,v.resize(0),b.th.length=0}}return!0},n.QG=function(t,i,h){if(1>n.Sz(t,i,h,null))return!1;var s=new e.l,o=new e.l;t.A(s),i.A(o);var a=n.ns(s,o,h);return s=n.ns(o,s,h),!((!a||!s)&&(a&&!s?n.Am(i,t,h,!1):s&&!a?n.Am(t,i,h,!1):n.Am(t,i,h,!1)||n.Am(i,t,h,!1)))},n.Sz=function(t,i,h,s){function o(H,U){return d.LE(H,U)}if(t.sz()>i.sz())var a=i,u=t;else a=t,u=i;t=a.Ha(),i=u.Ha();var c=[0,0],l=[0,0],p=-1,v=0,b=new e.ja(0),d=new n,g=new e.l,x=new e.l,m=new e.l;a.A(g),u.A(x),g.X(h,h),x.X(h,h),m.L(g),m.Fa(x),a=null,null!=s&&(a=new e.h);var w=x=x=null,j=u.Cb;for(null!=j?(w=j.Bo,null==(x=j.Gb)&&(x=e.ua.lj(u,m))):x=e.ua.lj(u,m),u=x.getIterator(),j=null,null!=w&&(j=w.getIterator());t.ab();)for(w=0;t.Ia();){var M=t.ia();if(M.A(g),g.isIntersecting(m)){if(null!=j&&(j.Zi(g,h),-1==j.next()))continue;var A=M.Rb();u.Wo(M,h);for(var z=u.next();-1!=z;z=u.next()){var N=x.ka(z);i.Wb(N);var I=i.ia(),D=I.Rb(),P=M.Fa(I,null,c,l,h);if(0h)return 1;var S=A*(B-z);if(i.Ia()){if(I=i.ia(),2==(P=M.Fa(I,null,c,null,h))){var F=c[1];if(S+(P=A*(F-(P=c[0])))>h)return 1}i.Wb(N),i.ia()}if(!i.xm()){if(i.ni(),I=i.ni(),2==(P=M.Fa(I,null,c,null,h))&&S+(P=A*((F=c[1])-(P=c[0])))>h)return 1;i.Wb(N),i.ia()}if(t.Ia()){if(N=t.xb(),2==(P=(M=t.ia()).Fa(I,null,c,null,h))&&S+(P=A*((F=c[1])-(P=c[0])))>h)return 1;t.Wb(N),t.ia()}if(!t.xm()){if(N=t.xb(),t.ni(),2==(P=(M=t.ni()).Fa(I,null,c,null,h))&&S+(P=D*((F=c[1])-(P=c[0])))>h)return 1;t.Wb(N),t.ia()}I=f.construct(t.xb(),t.gb,z,B,i.xb(),i.gb,p,C),d.th.push(I),b.add(b.size)}p=0,null!=s&&(M.ic(z,a),s.add(a.x),s.add(a.y))}}if(vh)w=A*(I.Ui-I.Mj),M=I.Ui,z=I.Om;else{if(I.Om!=z?(w=A*(I.Ui-I.Mj),z=I.Om):w+=A*(I.Ui-I.Mj),w>h)return 1;if(1==(M=I.Ui))break}A*(1-M)>h&&(w=0),v=0,b.resize(0),d.th.length=0}}}return p},n.OG=function(t,i,h){var s=t.Ha(),o=i.Ha();for(t=new e.am(t,i,h,!1);t.next();){i=t.pl();var a=t.jl();if(s.Wb(i),o.Wb(a),i=s.ia(),0h)return!1;v=!0}else if(0!=d){if(b=l[0],0<(v=c[0])&&1>v&&0b)return!1;v=!0}}return!!v&&(a=new e.l,u=new e.l,o=new e.l,t.A(a),i.A(u),a.X(1e3*h,1e3*h),u.X(1e3*h,1e3*h),o.L(a),o.Fa(u),!(10h&&(l=!0,p&&v))return!0}else if(0!=w&&(j=x[0],0<(w=g[0])&&1>w&&0j))return!0}if(o=new e.l,b=new e.l,o.L(a),o.X(1e3*h,1e3*h),b.L(u),b.X(1e3*h,1e3*h),c.L(o),c.Fa(b),a="",a=l?a+"**":a+"T*",p){if(10v&&0b)))return s[0]=!0,!1}if(!p){for(s[0]=!0,u=new e.l,t.A(u),u.X(h,h),l=t,p=!1,c=new e.l,s=0,o=i.ea();sp&&0v)return!1;p=!0}}return!!p&&(a=new e.l,u=new e.l,o=new e.l,t.A(a),i.A(u),a.X(1e3*h,1e3*h),u.X(1e3*h,1e3*h),o.L(a),o.Fa(u),!(10p&&0v)return!0;p=!0}}return!!p&&(a=new e.l,u=new e.l,c=new e.l,l=new e.l,o=new e.l,t.A(a),i.A(u),n.ns(u,a,h)?(c.L(a),c.X(1e3*h,1e3*h),l.L(u),l.X(1e3*h,1e3*h),o.L(c),o.Fa(l),!(10a;a++){var u=s.charAt(a);if("*"!=u&&"T"!=u&&"F"!=u&&"0"!=u&&"1"!=u&&"2"!=u)throw e.i.ga("relation string")}if(0!=(a=this.HR(s,t.Eb(),i.Eb())))return e.vd.uB(t,i,h,a,o);a=new e.l,t.A(a),u=new e.l,i.A(u);var c=new e.l;if(c.L(a),c.$b(u),h=e.ua.Xd(h,c,!1),t=this.RE(t,h),i=this.RE(i,h),t.B()||i.B())return this.pW(t,i,s);switch(a=i.K(),u=!1,t.K()){case 1736:switch(a){case 1736:u=this.st(t,i,h,s,o);break;case 1607:u=this.bn(t,i,h,s,o);break;case 33:u=this.rt(t,i,h,s);break;case 550:u=this.qt(t,i,h,s,o)}break;case 1607:switch(a){case 1736:u=this.bn(i,t,h,this.aq(s),o);break;case 1607:u=this.bB(t,i,h,s,o);break;case 33:u=this.ut(t,i,h,s,o);break;case 550:u=this.tt(t,i,h,s,o)}break;case 33:switch(a){case 1736:u=this.rt(i,t,h,this.aq(s));break;case 1607:u=this.ut(i,t,h,this.aq(s),o);break;case 33:u=this.VU(t,i,h,s);break;case 550:u=this.mt(i,t,h,this.aq(s))}break;case 550:switch(a){case 1736:u=this.qt(i,t,h,this.aq(s),o);break;case 1607:u=this.tt(i,t,h,this.aq(s),o);break;case 550:u=this.UA(t,i,h,s,o);break;case 33:u=this.mt(t,i,h,s)}break;default:u=!1}return u},n.st=function(t,i,h,s,o){var a=new n;a.$i(),a.dj(s),a.sJ();var u=new e.l,c=new e.l;return t.A(u),i.A(c),s=!1,e.vd.fk(u,c,h)&&(a.Eu(t,i),s=!0),s||(4==(u=e.vd.rc(t,i,!1))?(a.Eu(t,i),s=!0):1==u?(a.hy(i),s=!0):2==u&&(a.UD(t),s=!0)),s||(t=(s=new e.hd).Ib(t),i=s.Ib(i),a.Yo(s,h,o),a.Dp(t,i),a.j.Wg()),n.hg(a.J,a.Yc)},n.Uw=function(t,i,h,s){var o=new n;o.$i(),o.dj("T*****F**"),o.sJ();var a=new e.l,u=new e.l;t.A(a),i.A(u);var c=!1;return e.vd.fk(a,u,h)&&(o.Eu(t,i),c=!0),c||(4==(a=e.vd.rc(t,i,!1))?(o.Eu(t,i),c=!0):1==a?(o.hy(i),c=!0):2==a&&(o.UD(t),c=!0)),c?this.hg(o.J,o.Yc):(t=(c=new e.hd).Ib(t),a=c.Ib(i),e.Vk.W(c,h,s,!1),h=c.Ke(a).ng(),c.Ip(0,!0,!0),e.tn.W(c,t,-1,!1,s),0!=c.I(t)&&(e.tn.W(c,a,-1,!1,s),o.gr(c,s),(i=0==c.I(a))||(o.Dp(t,a),o.j.Wg(),a=this.hg(o.J,o.Yc))?(t=c.Ke(t),t=(c=new e.hd).Ib(t),a=c.Ib(h),o.gr(c,s),o.me=0,o.$i(),o.dj(i?"T*****F**":"******F**"),o.DB(),o.Dp(t,a),o.j.Wg(),this.hg(o.J,o.Yc)):a))},n.bn=function(t,i,h,s,o){var a=new n;a.$i(),a.dj(s),a.DB();var u=new e.l,c=new e.l;return t.A(u),i.A(c),s=!1,e.vd.fk(u,c,h)&&(a.Fu(t,i),s=!0),s||(4==(u=e.vd.rc(t,i,!1))?(a.Fu(t,i),s=!0):1==u&&(a.VD(i),s=!0)),s||(t=(s=new e.hd).Ib(t),i=s.Ib(i),a.Yo(s,h,o),a.mh=a.j.Fp(),n.Lw(i,a.j,a.mh),a.Dp(t,i),a.j.Gp(a.mh),a.j.Wg()),n.hg(a.J,a.Yc)},n.aB=function(t,i,h,s){var o=new n;o.$i(),o.dj("T*****F**"),o.DB();var a=new e.l,u=new e.l;t.A(a),i.A(u);var c=!1;return e.vd.fk(a,u,h)&&(o.Fu(t,i),c=!0),c||(4==(a=e.vd.rc(t,i,!1))?(o.Fu(t,i),c=!0):1==a&&(o.VD(i),c=!0)),c?this.hg(o.J,o.Yc):(t=(c=new e.hd).Ib(t),i=c.Ib(i),o.Yo(c,h,s),0!=c.I(t)&&(o.Dp(t,i),o.j.Wg(),this.hg(o.J,o.Yc)))},n.qt=function(t,i,h,s,o){var a=new n;a.$i(),a.dj(s),a.tJ();var u=new e.l,c=new e.l;return t.A(u),i.A(c),s=!1,e.vd.fk(u,c,h)&&(a.Gu(t),s=!0),s||(4==(u=e.vd.rc(t,i,!1))?(a.Gu(t),s=!0):1==u&&(a.uN(),s=!0)),s||(t=(s=new e.hd).Ib(t),i=s.Ib(i),a.Yo(s,h,o),a.By(t,i),a.j.Wg()),n.hg(a.J,a.Yc)},n.bB=function(t,i,h,s,o){var a=new n;a.$i(),a.dj(s),a.$W(),s=new e.l;var u=new e.l;t.A(s),i.A(u);var c=!1;return e.vd.fk(s,u,h)&&(a.KG(t,i),c=!0),c||4!=e.vd.rc(t,i,!1)||(a.KG(t,i),c=!0),c||(t=(s=new e.hd).Ib(t),i=s.Ib(i),a.Yo(s,h,o),a.$h=a.j.Fp(),a.mh=a.j.Fp(),n.Lw(t,a.j,a.$h),n.Lw(i,a.j,a.mh),a.Dp(t,i),a.j.Gp(a.$h),a.j.Gp(a.mh),a.j.Wg()),n.hg(a.J,a.Yc)},n.tt=function(t,i,h,s,o){var a=new n;a.$i(),a.dj(s),a.HJ(),s=new e.l;var u=new e.l;t.A(s),i.A(u);var c=!1;return e.vd.fk(s,u,h)&&(a.Qz(t),c=!0),c||4!=e.vd.rc(t,i,!1)||(a.Qz(t),c=!0),c||(t=(s=new e.hd).Ib(t),i=s.Ib(i),a.Yo(s,h,o),a.$h=a.j.Fp(),n.Lw(t,a.j,a.$h),a.By(t,i),a.j.Gp(a.$h),a.j.Wg()),n.hg(a.J,a.Yc)},n.UA=function(t,i,h,s,o){var a=new n;a.$i(),a.dj(s),a.MJ(),s=new e.l;var u=new e.l;t.A(s),i.A(u);var c=!1;return e.vd.fk(s,u,h)&&(a.tI(),c=!0),c||(t=(s=new e.hd).Ib(t),i=s.Ib(i),a.Yo(s,h,o),a.By(t,i),a.j.Wg()),n.hg(a.J,a.Yc)},n.rt=function(t,i,h,s){var o=new n;o.$i(),o.dj(s),o.tJ();var a=new e.l;t.A(a),i=i.D();var u=!1;return e.vd.Tw(i,a,h)&&(o.Gu(t),u=!0),u||(1==(h=e.jd.Zd(t,i,h))?(o.J[0]=0,o.J[2]=2,o.J[3]=-1,o.J[5]=1,o.J[6]=-1):2==h?(o.J[6]=-1,0!=t.He()?(o.J[0]=-1,o.J[3]=0,o.J[2]=2,o.J[5]=1):(o.J[0]=0,o.J[3]=-1,o.J[5]=-1,h=new e.l,t.A(h),o.J[2]=0==h.da()&&0==h.S()?-1:1)):o.Gu(t)),this.hg(o.J,s)},n.ut=function(t,i,h,s,o){var a=new n;a.$i(),a.dj(s),a.HJ();var u=new e.l;t.A(u),s=i.D();var c=!1;if(e.vd.Tw(s,u,h)&&(a.Qz(t),c=!0),!c){u=null;var l=c=!1;(a.fa[0]||a.fa[6])&&(e.vd.Tz(t,s,h)?(a.fa[0]&&(u=e.si.im(t,o),l=!e.vd.lt(u,s,h),c=!0,a.J[0]=l?-1:0),a.J[6]=-1):(a.J[0]=-1,a.J[6]=0)),a.fa[3]&&(null!=u&&u.B()?a.J[3]=-1:(c||(null==u&&(u=e.si.im(t,o)),l=!e.vd.lt(u,s,h),c=!0),a.J[3]=l?0:-1)),a.fa[5]&&(null!=u&&u.B()?a.J[5]=-1:c&&!l?a.J[5]=0:(null==u&&(u=e.si.im(t,o)),o=e.vd.Pw(u,i,h),a.J[5]=o?-1:0)),a.fa[2]&&(0!=t.Rb()?a.J[2]=1:((o=new e.ee(t.description)).Gd(t,0,t.I()),t=e.vd.Pw(o,i,h),a.J[2]=t?-1:0))}return this.hg(a.J,a.Yc)},n.mt=function(t,i,h,s){var o=new n;o.$i(),o.dj(s),o.MJ();var a=new e.l;t.A(a),i=i.D();var u=!1;if(e.vd.Tw(i,a,h)&&(o.tI(),u=!0),!u){a=!1,u=!0,h*=h;for(var c=0;ca;a++)o[a]=-1;return e.h.zc(t,i)<=h*h?o[0]=0:(o[2]=0,o[6]=0),o[8]=2,n.hg(o,s)},n.hg=function(t,i){for(var h=0;9>h;h++)switch(i.charAt(h)){case"T":if(-1==t[h])return!1;break;case"F":if(-1!=t[h])return!1;break;case"0":if(0!=t[h])return!1;break;case"1":if(1!=t[h])return!1;break;case"2":if(2!=t[h])return!1}return!0},n.pW=function(t,i,h){var s=[-1,-1,-1,-1,-1,-1,-1,-1,-1];if(t.B()&&i.B()){for(var o=0;9>o;o++)s[o]=-1;return this.hg(s,h)}return o=!1,t.B()&&(t=i,o=!0),s[0]=-1,s[1]=-1,s[3]=-1,s[4]=-1,s[6]=-1,s[7]=-1,s[8]=2,i=t.K(),e.ba.Ic(i)?1736==i?0!=t.He()?(s[2]=2,s[5]=1):(s[5]=-1,i=new e.l,t.A(i),s[2]=0==i.da()&&0==i.S()?0:1):(i=0!=t.Rb(),s[2]=i?1:0,s[5]=e.si.cq(t)?0:-1):(s[2]=0,s[5]=-1),o&&this.qK(s),this.hg(s,h)},n.HR=function(t,i,h){return n.ZP(t)?3:n.PP(t)?4:n.ZX(t,i,h)?8:n.xP(t,i,h)?16:n.$O(t)?1:n.zU(t,i,h)?32:0},n.ZP=function(t){return"T"==t.charAt(0)&&"*"==t.charAt(1)&&"F"==t.charAt(2)&&"*"==t.charAt(3)&&"*"==t.charAt(4)&&"F"==t.charAt(5)&&"F"==t.charAt(6)&&"F"==t.charAt(7)&&"*"==t.charAt(8)},n.PP=function(t){return"F"==t.charAt(0)&&"F"==t.charAt(1)&&"*"==t.charAt(2)&&"F"==t.charAt(3)&&"F"==t.charAt(4)&&"*"==t.charAt(5)&&"*"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8)},n.ZX=function(t,i,h){return(0!=i||0!=h)&&((2!=i||2!=h)&&("F"==t.charAt(0)&&"*"==t.charAt(1)&&"*"==t.charAt(2)&&"T"==t.charAt(3)&&"*"==t.charAt(4)&&"*"==t.charAt(5)&&"*"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8)||1==i&&1==h&&"F"==t.charAt(0)&&"T"==t.charAt(1)&&"*"==t.charAt(2)&&"*"==t.charAt(3)&&"*"==t.charAt(4)&&"*"==t.charAt(5)&&"*"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8))||0!=h&&"F"==t.charAt(0)&&"*"==t.charAt(1)&&"*"==t.charAt(2)&&"*"==t.charAt(3)&&"T"==t.charAt(4)&&"*"==t.charAt(5)&&"*"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8))},n.xP=function(t,i,h){return i>h?"T"==t.charAt(0)&&"*"==t.charAt(1)&&"*"==t.charAt(2)&&"*"==t.charAt(3)&&"*"==t.charAt(4)&&"*"==t.charAt(5)&&"T"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8):1==i&&1==h&&"0"==t.charAt(0)&&"*"==t.charAt(1)&&"*"==t.charAt(2)&&"*"==t.charAt(3)&&"*"==t.charAt(4)&&"*"==t.charAt(5)&&"*"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8)},n.$O=function(t){return"T"==t.charAt(0)&&"*"==t.charAt(1)&&"*"==t.charAt(2)&&"*"==t.charAt(3)&&"*"==t.charAt(4)&&"*"==t.charAt(5)&&"F"==t.charAt(6)&&"F"==t.charAt(7)&&"*"==t.charAt(8)},n.zU=function(t,i,h){if(i==h){if(1!=i)return"T"==t.charAt(0)&&"*"==t.charAt(1)&&"T"==t.charAt(2)&&"*"==t.charAt(3)&&"*"==t.charAt(4)&&"*"==t.charAt(5)&&"T"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8);if("1"==t.charAt(0)&&"*"==t.charAt(1)&&"T"==t.charAt(2)&&"*"==t.charAt(3)&&"*"==t.charAt(4)&&"*"==t.charAt(5)&&"T"==t.charAt(6)&&"*"==t.charAt(7)&&"*"==t.charAt(8))return!0}return!1},n.Lw=function(t,i,h){t=i.Ma(t);for(var s=i.Oe;-1!=s;s=i.Tf(s))if(0!=(i.yd(s)&t)){var o=i.Je(s);if(-1==o)i.pn(s,h,0);else{var a=o,u=0;do{0!=(i.fh(a)&t)&&u++,a=i.kc(i.ya(a))}while(a!=o);i.pn(s,h,u)}}},n.aq=function(t){var i=""+t.charAt(0);return i+=t.charAt(3),i+=t.charAt(6),i+=t.charAt(1),i+=t.charAt(4),i+=t.charAt(7),i+=t.charAt(2),(i+=t.charAt(5))+t.charAt(8)},n.prototype.$i=function(){for(var t=0;9>t;t++)this.J[t]=-2,this.$a[t]=-2},n.qK=function(t){var i=t[1],h=t[2],s=t[5];t[1]=t[3],t[2]=t[6],t[5]=t[7],t[3]=i,t[6]=h,t[7]=s},n.prototype.dj=function(t){for(this.Yc=t,t=0;9>t;t++)"*"!=this.Yc.charAt(t)?(this.fa[t]=!0,this.me++):this.fa[t]=!1},n.prototype.PJ=function(){for(var t=0;9>t;t++)this.fa[t]&&-2==this.J[t]&&(this.J[t]=-1,this.fa[t]=!1)},n.prototype.qc=function(t){return!(-2==this.J[t]||(-1==this.J[t]?(this.fa[t]=!1,this.me--,0):"T"!=this.Yc.charAt(t)&&"F"!=this.Yc.charAt(t)&&this.J[t]a?1:0},n.prototype.reset=function(){this.tA=-1},n}(),r=function(){function n(){this.Ym=this.Il=null,this.fb=new e.$j,this.fb.MP(),this.ae=new f(this),this.fb.Xo(this.ae)}return n.prototype.CQ=function(){var t=!1;if(this.hw&&(t=this.DQ()),1==this.g.ea(this.Y)){var i=this.g.Ob(this.Y);return t=this.g.qz(i),this.g.KB(i,!0),0>t&&(t=this.g.Ya(i),this.g.kJ(t),this.g.Yg(i,this.g.Na(t)),!0)}for(this.Gl=this.g.Fy(),this.yo=this.g.Fy(),i=this.g.Ob(this.Y);-1!=i;i=this.g.Sb(i))this.g.ir(i,this.Gl,0),this.g.ir(i,this.yo,-1);i=new e.ja(0),this.Ah=NaN;var h=new e.h;this.ft=this.g.ea(this.Y),this.to=this.g.Hd(),this.Ts=this.g.Hd();for(var s=this.Il.sc(this.Il.ke);-1!=s;s=this.Il.lb(s)){var o=this.Il.getData(s);if(this.g.Hc(o,h),h.y!=this.Ah&&0!=i.size&&(t=this.vt(i)||t,this.ae.reset(),i.clear(!1)),i.add(o),this.Ah=h.y,0==this.ft)break}for(0=this.HA.length&&this.HA.push(new e.jg);var n=this.HA[this.Ew];return this.Ew++,n},r.prototype.clear=function(){this.rB(this.oo),this.rB(this.bt),this.rB(this.Aw),this.Ew=0},r.prototype.Qo=function(n){this.oo.push(this.Qw(n))},r.prototype.ql=function(n){return 0==n?this.bt.length:this.Aw.length},r.prototype.Xp=function(n,t){return this.NR(n,t).bj},r.prototype.Fa=function(n,t){if(2!=this.oo.length)throw e.i.Ra();this.ra=n;var i=e.mc.ox(.01*n),h=!1,s=this.oo[0],o=this.oo[1];if(t||0!=(5&s.bj.Br(o.bj,n,!0))){if(322==s.bj.K()){var a=s.bj;if(322==o.bj.K()){var u=e.zb.Yx(a,t=o.bj,null,this.Hq,this.Dk,n);if(0==u)throw e.zb.Yx(a,t,null,this.Hq,this.Dk,n),e.i.Ra();n=Array(9),e.P.bv(n,null);for(var c=0;ci&&(h=!0)):v>d?(a.ic(l,x),l=new e.h,t.ic(p,l),e.h.zc(x,l)>i&&(h=!0)):(t.ic(p,x),v=new e.h,a.ic(l,v),e.h.zc(x,v)>i&&(h=!0)),n[c]=x}for(s=0,o=-1,c=0;c<=u;c++)(g=cthis.Dk[1]&&(g=this.Dk[0],this.Dk[0]=this.Dk[1],this.Dk[1]=g,c=a[0],a[0]=a[1],a[1]=c),s=0,o=-1,c=0;c<=u;c++)(g=c=o;o++){if((t=1>o?this.Hq[o]:1)!=i){var a=this.WA();n.dh(i,t,a),-1!=s&&a.get().Ec(h),1!=o&&a.get().Rc(h),i=t,this.bt.push(this.Qw(a.get()))}s=o}this.Cf.Db(h)}},r}();e.OC=f}(k||(k={})),function(e){var y=function(){function f(r){this.Fs=this.tk=this.tb=null,this.cg=0,this.Bm=!1,this.Af=-1,this.El=this.Kd=0,this.gb=-1,this.ib=r,this.cg=this.Vx(this.El),this.Bm=!1,this.tk=null,this.Fs=new e.h}return f.prototype.wW=function(r){if(this.ib!=r.ib)throw e.i.Hb();this.Af=r.Af,this.Kd=r.Kd,this.gb=r.gb,this.El=r.El,this.cg=r.cg,this.Bm=r.Bm,this.tk=null},f.prototype.ia=function(){if(this.Af!=this.Kd&&this.wD(),this.Bm)this.Kd=(this.Kd+1)%this.cg;else{if(this.Kd==this.cg)throw e.i.de();this.Kd++}return this.tk},f.prototype.ni=function(){if(this.Bm)this.Kd=(this.cg+this.Kd-1)%this.cg;else{if(0==this.Kd)throw e.i.de();this.Kd--}return this.Kd!=this.Af&&this.wD(),this.tk},f.prototype.xW=function(){this.Af=-1,this.Kd=0},f.prototype.yW=function(){this.Kd=this.cg,this.Af=-1},f.prototype.Wb=function(r,n){if(void 0===n&&(n=-1),0<=this.gb&&this.gb=t&&r=this.ib.Ca(n)&&r=this.ib.ea()||(this.Af=-1,this.Kd=0,this.cg=this.Vx(this.gb),this.ib.Ca(this.gb),this.ib.ec(this.gb),this.El++,0))},f.prototype.aj=function(){this.cg=this.Kd=this.Af=-1,this.El=0,this.gb=-1},f.prototype.Vx=function(r){if(this.ib.Bc())return 0;var n=1;return this.ib.ec(r)&&(n=0),this.ib.Ka(r)-n},f.prototype.Qn=function(){return this.Af==this.cg-1&&this.ib.ec(this.gb)},f.prototype.EB=function(){this.Bm=!0},f.prototype.xb=function(){return this.ib.nb.o[this.gb]+this.Af},f.prototype.DM=function(){return this.ib.Ca(this.gb)},f.prototype.kk=function(){return this.Qn()?this.ib.Ca(this.gb):this.xb()+1},f.prototype.xm=function(){return 0==this.Af},f.prototype.Sn=function(){return this.Af==this.cg-1},f.prototype.Ia=function(){return this.Kdthis.Kd||this.Kd>=this.cg)throw e.i.de();this.Af=this.Kd;var r=this.xb();this.ib.oc();var n=this.ib.Se,t=1;switch(null!=n&&(t=7&n.read(r)),n=this.ib.description,t){case 1:null==this.tb&&(this.tb=new e.zb),this.tk=this.tb;break;case 2:throw e.i.ga("internal error");default:throw e.i.Ra()}this.tk.Pf(n),t=this.kk(),this.ib.Hc(r,this.Fs),this.tk.Ec(this.Fs),this.ib.Hc(t,this.Fs),this.tk.Rc(this.Fs);for(var i=1,h=n.Ba;ih&&(s=n,n=i,i=s,s=t,t=h,h=s,s=-1),!(0>h||t>=this.rl)){0>n&&0>i?i=n=-1:n>=this.ri&&i>=this.ri&&(i=n=this.ri);var o=(i-n)/(h-t);h>this.rl&&(i=o*((h=this.rl)-t)+n),0>t&&(n=o*(0-t)+n,t=0);var a=Math.max(this.ri+1,8388607);-8388607>n?(t=(0-n)/o+t,n=0):n>a&&(t=(this.ri-n)/o+t,n=this.ri),-8388607>i?h=(0-n)/o+t:i>a&&(h=(this.ri-n)/o+t),(t=e.P.truncate(t))!=(h=e.P.truncate(h))&&((i=new y).x=e.P.truncate(4294967296*n),i.y=t,i.H=h,i.RP=e.P.truncate(4294967296*o),i.dir=s,null==this.Yl&&(this.Yl=e.P.mg(this.rl,null)),i.next=this.Yl[i.y],this.Yl[i.y]=i,i.ythis.Mw&&(this.Mw=i.H),this.Vq++)}}},r.prototype.nN=function(){if(null!=this.Lh){for(var n=!1,t=null,i=this.Lh;null!=i;)if(i.y++,i.y==i.H){var h=i;i=i.next,null!=t?t.next=i:this.Lh=i,h.next=null}else i.x+=i.RP,null!=t&&t.x>i.x&&(n=!0),t=i,i=i.next;n&&(this.Lh=this.aK(this.Lh))}},r.prototype.gN=function(n){if(!(n>=this.rl)){var t=this.Yl[n];if(null!=t){this.Yl[n]=null,t=this.aK(t),this.Vq-=this.bK,n=this.Lh;for(var i=!0,h=t,s=null;null!=n&&null!=h;)n.x>h.x?(i&&(this.Lh=h),i=h.next,h.next=n,null!=s&&(s.next=h),s=h,h=i):(i=n.next,n.next=h,null!=s&&(s.next=n),s=n,n=i),i=!1;null==this.Lh&&(this.Lh=t)}}},r.$J=function(n,t){return 0>n?0:n>t?t:n},r.prototype.UP=function(){if(null!=this.Lh)for(var n=0,t=this.Lh,i=e.P.truncate(e.P.SG(t.x)),h=t.next;null!=h;h=h.next)if(n=this.fF?1^n:n+h.dir,h.x>t.x){var s=e.P.truncate(e.P.SG(h.x));0!=n&&(t=r.$J(i,this.ri),(i=r.$J(s,this.ri))>t&&tthis.Lf[1].x&&(n=this.Lf[0],this.Lf[0]=this.Lf[1],this.Lf[1]=n):r.vN(this.Lf,t,function(s,o){return s==o?0:s.xo.x?1:0}),n=this.Lf[0],this.Lf[0]=null,i=n,h=1;hthis.Yh.size)break;var u=this;for(this.ye.Wd(0,this.ye.size,function(c,l){return u.kM(c,l)}),t=0,i=this.ye.size;tg?1:xm?1:0)&&(x=(v=u[c*v+3])<(b=u[c*b+3])?-1:v==b?0:1),x}),this.Rq=this.g.Hd(),this.pe=new e.lp,this.MA=this.pe.Rh(0),this.pe.hn(t),h=0;hu;u++){for(c=v[u],l=t[u],p=u-1;0<=p&&v[p]>c;)v[p+1]=v[p],t[p+1]=t[p],p--;v[p+1]=c,t[p+1]=l}return v=0,0!=t[0]&&(v|=1),0!=t[1]&&(v|=2),0!=t[2]&&(v|=4),0!=t[3]&&(v|=8),(5==v||10==v)&&(r==n?r?(this.g.Cc(a,i),this.g.Dc(i,a),this.g.Cc(h,o),this.g.Dc(o,h)):(this.g.Dc(a,i),this.g.Cc(i,a),this.g.Dc(h,o),this.g.Cc(o,h)):r?(this.g.Dc(i,s),this.g.Cc(s,i),this.g.Dc(o,h),this.g.Cc(h,o)):(this.g.Cc(i,s),this.g.Dc(s,i),this.g.Cc(o,h),this.g.Dc(h,o)),!0)},f.prototype.oD=function(r,n,t,i,h,s){this.IY?this.QM():this.PM(r,n,t,i,h,s)},f.prototype.QM=function(){throw e.i.ga("not implemented.")},f.prototype.PM=function(r,n,t,i,h,s){if(r!=n)r?(this.g.Cc(t,h),this.g.Dc(h,t),this.g.Cc(s,i),this.g.Dc(i,s),this.xn(h,t),this.wi(h,!0),this.g.oi(h,!0),this.dk(t),this.xn(s,i),this.wi(s,!0),this.g.oi(s,!1)):(this.g.Cc(h,t),this.g.Dc(t,h),this.g.Cc(i,s),this.g.Dc(s,i),this.xn(h,t),this.wi(h,!0),this.g.oi(h,!1),this.dk(t),this.xn(s,i),this.wi(s,!0),this.g.oi(s,!0)),this.dk(i);else{var o=r?t:i,a=n?h:s;for(r=r?i:t,n=n?s:h,h=!1,this.g.Cc(o,a),this.g.Cc(a,o),this.g.Dc(r,n),this.g.Dc(n,r),s=n;s!=a;)t=this.g.Na(s),i=this.g.V(s),this.g.Dc(s,i),this.g.Cc(s,t),h=h||s==o,s=i;h||(t=this.g.Na(a),i=this.g.V(a),this.g.Dc(a,i),this.g.Cc(a,t)),this.xn(a,o),this.wi(a,!0),this.g.oi(a,!1),this.dk(o),this.xn(n,r),this.wi(n,!0),this.g.oi(n,!1),this.dk(r)}},f.prototype.YC=function(){for(var r=!1,n=this.g.Ob(this.Y);-1!=n;){for(var t=this.g.Ya(n),i=0,h=this.g.Ka(n);ithis.g.Ka(n)){for(r=this.g.Ya(n),i=0,h=this.g.Ka(n);i=n)throw e.i.O("Invalid or unsupported wkid: "+n);var t=new r;return t.fg=n,t},r.lP=function(n){if(null==n||0==n.length)throw e.i.O("Cannot create SpatialReference from null or empty text.");var t=new r;return t.yh=n,t},r.prototype.Nb=function(n){return this==n||null!=n&&this.constructor==n.constructor&&this.fg==n.fg&&(0!=this.fg||this.yh===n.yh)},r.prototype.toString=function(){return"[ tol: "+this.Mn()+"; wkid: "+this.Fc()+"; wkt: "+this.wz()+"]"},r.prototype.dc=function(){if(""!==this.rp)return this.rp;var n=this.toString();if(Array.prototype.reduce)return this.rp="S"+n.split("").reduce(function(h,s){return(h=(h<<5)-h+s.charCodeAt(0))&h},0);var t=0;if(0===n.length)return"";for(var i=0;i=n.length)throw e.i.O();var t=null;try{t=e.IC.fromString(n)}catch{t=null}return null==t?null:r.XC(t,!0)},r.prototype.ay=function(n){this.Ld=n,this.Go=this.Ld.Id()},r.prototype.cy=function(n){this.FH=n,this.NT=null!=this.FH?this.FH.Go:null},r.prototype.Xc=function(){return 0!=this.Tb()&&3!=this.Tb()&&this.Ld.Xc()},r.prototype.DG=function(){return 0!=this.Tb()&&(3==this.Tb()?this.Li.hk().Xc():this.Ld.Xc())},r.prototype.gh=function(){return null!=this.Ld?this.Ld.Re:null},r.prototype.rm=function(){return this.Ld.rm()},r.prototype.bf=function(){return this.Ld.bf()},r.prototype.jh=function(){return null!=this.Ld?this.Ld.uw:NaN},r.prototype.Wp=function(){return this.Ld.Wp()},r.prototype.Yr=function(){return this.Ld.Yr()},r.prototype.mk=function(){return this.Ld.mk()},r.prototype.fS=function(n){return e.JC.Ky(this.Ld,n.Ld)},r.prototype.ol=function(){return this.Ld.ol()},r.prototype.Xr=function(){return this.Ld.Xr()},r.prototype.Bi=function(){return 3==this.Tb()?this.Li.hk().Bi():this.Ld.Bi()},r.prototype.ih=function(){if(!this.Xc())throw e.i.O("!isPannable()");var n=new e.l;return this.Ld.ih(n),n},r.prototype.Le=function(){if(!this.Xc())throw e.i.O("!isPannable()");return this.Ld.uo},r.prototype.CR=function(){if(!this.Xc())throw e.i.O("!isPannable()");var n=new e.l;return this.Ld.BR(n),n},r.prototype.rv=function(){if(!this.Xc())throw e.i.O("!isPannable()");return this.Ld.rv()},r.prototype.qv=function(){if(!this.Xc())throw e.i.O("!isPannable()");return this.Ld.qv()},r.prototype.Zr=function(){return null!=this.Li?this.Li.hk().Zr():this.Ld.Zr()},r.prototype.KQ=function(){return this.Ld.kv()},r.prototype.Sp=function(){return this.Go.getUnitFactor()},r.prototype.pz=function(n){return this.Jq.pz(n)},r.prototype.tc=function(){var n=this.Tb();if(1==n)return this;if(3==n)return this.Li.hk().tc();if(0==n||4===n)throw e.i.ga("invalid call");if(null!==this.lw)return this.lw;if(null==(n=this.gh().getGeogcs()))throw e.i.Ra();return this.lw=r.XE(n,this.Jq.QF())},r.XE=function(n,t){if(null==n)throw e.i.O("null pointer.");var i=new r;return n=r.ou(n,!0),i.Jq.Wx(n,null,t),i.ay(n),i.cy(null),i.fg=n.cs(),i},r.prototype.Tb=function(){var n=this.gh();if(null!=n)switch(n.getType()){case e.Tc.PE_TYPE_GEOGCS:return 1;case e.Tc.PE_TYPE_PROJCS:return 2}return 4},r.prototype.kv=function(){return this.Ld.kv()},r.ou=function(n,t){var i=n.getCode();if(0>=i&&0<(i=e.qf.getCode(n))){if(null==(n=e.qf.coordsys(i)))throw e.i.O("Text to wkid mapping had failed: "+i);return r.ou(n,t)}return t&&0=i?n:e.qf.coordsys(i),n=new e.JC(n),r.gK[t]=n,0=n)throw e.i.O("Invalid or unsupported wkid: "+n);var t=r.qx[n];if(null!=t)return t;if(null==(t=e.qf.coordsys(n)))throw e.i.O("Invalid or unsupported wkid: "+n);return(t=r.ou(t,!1)).cs()!=n&&(r.qx[n]=t),t},r.fM=function(n){if(null==n||void 0===n||0==n.length)throw e.i.O("Cannot create SpatialReference from null or empty text.");var t=null;try{t=e.qf.fromString(e.Tc.PE_TYPE_COORDSYS,n)}catch(i){throw e.i.O("Cannot create SpatialReference from text. "+i.message)}if(null===t)throw e.i.O("Cannot create SpatialReference from text. ");return r.ou(t,!0)},r.XC=function(n,t){var i,h=n.getCode();if(0>=h&&0<(h=e.qf.getCode(n))){if(null===(h=e.qf.vertcs(h)))throw e.i.O();return r.XC(h,t)}if(t&&0=h||(i=e.qf.vertcs(h)),null===i)throw e.i.O();return i=new e.KL(i),r.hK[n]=i,0t&&(this.Rj=t/(h-this.Hm)),(s=e.P.truncate(((i=this.Im+i)-this.Im)*this.Rj))>t&&(this.Rj=t/(i-this.Im))}},n.prototype.WB=function(t){switch(t){case 0:this.Kk=void 0;case 1:this.Oq=void 0;case 2:this.Nq=void 0}},n.prototype.Mn=function(t){switch(t){case 0:return this.Kk;case 1:return this.Oq;case 2:return this.Nq}return 0},n.prototype.pz=function(t){if(this.Tm==y.FloatingPoint)return 0;switch(t){case 0:return 1/this.Rj;case 1:case 2:return 1/this.Ho;default:return 0}},n.prototype.toString=function(){var t="SRPD [m_toleranceXY: "+this.Kk.toString();return(t=(t=(t=(t=(t=(t=(t=(t=(t=t+";m_falseX: "+this.Hm.toString())+";m_falseY: "+this.Im.toString())+";m_unitsXY: "+this.Rj.toString())+";m_falseZ: "+this.nA.toString())+";m_unitsZ: "+this.Ho.toString())+";m_falseM: "+this.mA.toString())+";m_toleranceZ: "+this.Oq.toString())+";m_toleranceM: "+this.Nq.toString())+";m_precision: "+this.Tm.toString())+"] "},n}();e.UL=r}(k||(k={})),function(e){function y(h,s){return 89.99999s&&(s=-89.99999),s*=.017453292519943,[111319.49079327169*h,3189068.5*Math.log((1+Math.sin(s))/(1-Math.sin(s)))]}function f(h,s,o){return h=h/6378137*57.29577951308232,o?[h,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*s/6378137)))]:[h-360*Math.floor((h+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*s/6378137)))]}function r(h,s,o){var a=h.Qf();if(33===h.K())s=s(a.Ng(),a.kh()),a.Db(s[0],s[1]);else if(197===h.K()){var u=s(h.gs(),h.js(),o);s=s(h.fs(),h.hs(),o),a.L(u[0],u[1],s[0],s[1])}else for(u=new e.h,h=0;ho&&(o=637.100877141506);for(var a,u=[],c=0;cthis.Jg&&this.yz(r)},f.prototype.sx=function(r,n){r*=this.Mf,n*=this.Mf;for(var t=0;tthis.ps.wa)return 1;var o=i.oa==i.ma;if((s=h.oa==h.ma)||o){if(s&&o)return 0;if(h.oa==i.oa&&h.ta==i.ta)return s?1:-1;if(h.ma==i.ma&&h.qa==i.qa)return s?-1:1}return(s=h.Me(this.Ah,this.os.pa))==(o=i.Me(this.Ah,this.ps.pa))&&((o=.5*((s=Math.min(h.ma,i.ma))+this.Ah))==this.Ah&&(o=s),s=h.Me(o,this.os.pa),o=i.Me(o,this.ps.pa)),so?1:0},t.prototype.WJ=function(i){this.Ah=i},t}(),n=function(){function t(i){this.ib=i,this.RH=new e.jg,this.Cf=new e.h,this.rA=new e.Oc}return t.prototype.fX=function(i){this.Cf.N(i)},t.prototype.compare=function(i,h){return this.ib.kB(i.ka(h),this.RH),i=this.RH.get(),this.rA.L(i.ta,i.qa),this.Cf.xthis.rA.wa?1:(i=i.Me(this.Cf.y,this.Cf.x),this.Cf.xi?1:0)},t}();y=function(){function t(){this.cH=this.Fi=this.Ii=this.fA=this.$n=this.ze=this.Lc=this.lh=this.he=null,this.Io=this.yg=-1,this.bH=!0,this.kA=!1,this.gA=NaN,this.Pi=new e.Nd,this.XN=2147483647,this.WN=e.P.truncate(-2147483648),this.eg=this.be=this.Jl=this.Eq=this.Em=this.Dq=this.Qs=this.Oe=-1,this.xa=0}return t.prototype.ty=function(i){this.gA=i},t.prototype.$m=function(){null==this.he&&(this.he=new e.ad(8));var i=this.he.De();return this.he.T(i,1,0),i},t.prototype.qU=function(){null==this.Lc&&(this.Lc=new e.ad(8));var i=this.Lc.De();this.Lc.T(i,2,0),this.Lc.T(i,3,0);var h=this.Lc.De();return this.Lc.T(h,2,0),this.Lc.T(h,3,0),this.EJ(i,h),this.EJ(h,i),i},t.prototype.hI=function(){null==this.ze&&(this.ze=new e.ad(8));var i=this.ze.De();return this.ze.T(i,2,0),i},t.prototype.OW=function(i,h){this.he.T(i,7,h)},t.prototype.on=function(i,h){this.he.T(i,2,h)},t.prototype.NW=function(i,h){this.he.T(i,1,h)},t.prototype.gX=function(i,h){this.he.T(i,3,h)},t.prototype.dX=function(i,h){this.he.T(i,4,h)},t.prototype.er=function(i,h){this.he.T(i,5,h)},t.prototype.$Q=function(i){return this.he.U(i,5)},t.prototype.MW=function(i,h){this.he.T(i,6,h)},t.prototype.YM=function(i,h){this.MW(h,i)},t.prototype.DJ=function(i,h){this.Lc.T(i,1,h)},t.prototype.EJ=function(i,h){this.Lc.T(i,4,h)},t.prototype.Vl=function(i,h){this.Lc.T(i,5,h)},t.prototype.Ul=function(i,h){this.Lc.T(i,6,h)},t.prototype.VW=function(i,h){this.Lc.T(i,2,h)},t.prototype.cx=function(i,h){this.Lc.T(i,3,h)},t.prototype.GF=function(i){return this.Lc.U(i,3)},t.prototype.Ht=function(i,h){this.Lc.T(i,7,h)},t.prototype.zK=function(i,h){if(-1!=this.om(i))for(h=h?-1:i,i=this.om(i);-1!=i;i=this.ls(i))this.g.Sa(this.vj(i),this.Eq,h)},t.prototype.xx=function(i,h){-1!=i&&(this.zK(i,h),this.zK(this.ya(i),h))},t.prototype.Et=function(i,h){this.ze.T(i,1,h)},t.prototype.Xg=function(i,h){this.ze.T(i,2,h)},t.prototype.ln=function(i,h){this.ze.T(i,3,h),this.IW(i,this.ZQ(h)),this.HW(h,i)},t.prototype.HW=function(i,h){this.ze.T(i,4,h)},t.prototype.IW=function(i,h){this.ze.T(i,5,h)},t.prototype.yJ=function(i,h){this.ze.T(i,6,h)},t.prototype.wJ=function(i,h){this.ze.T(i,7,h)},t.prototype.vJ=function(i,h){this.$n.write(i,h)},t.prototype.xJ=function(i,h){this.fA.write(i,h)},t.prototype.gY=function(i){var h=0,s=0,o=this.vF(i),a=new e.h,u=new e.h,c=new e.h;this.$r(o,a),u.N(a);var l=o;do{this.nm(l,c),s+=e.h.ub(u,c),this.$e(this.ya(l))!=i&&(h+=(c.x-a.x-(u.x-a.x))*(c.y-a.y+(u.y-a.y))*.5),u.N(c),l=this.kc(l)}while(l!=o);this.$n.write(i,h),this.fA.write(i,s)},t.prototype.KU=function(i,h){var s=new r(this),o=new e.$j;o.Ee(e.P.truncate(this.xa/2)),o.Xo(s);for(var a=new e.ja(0),u=this.bh(),c=null,l=0,p=new e.h,v=this.Oe;-1!=v;v=this.Tf(v)){if(0==(255&++l)&&null!=h&&!h.progress(-1,-1))throw e.i.RC();var b=this.Je(v);if(-1!=b){if(a.Dh(0),!this.cY(o,u,a,b)){this.D(v,p),s.WJ(p.y);var d=b;do{var g=this.Bb(d,u);-1!=g&&(o.wd(g,-1),this.Kb(d,u,-2)),d=this.kc(this.ya(d))}while(b!=d);d=b;do{-1==(g=this.Bb(d,u))&&(g=o.addElement(d,-1),a.add(g)),d=this.kc(this.ya(d))}while(b!=d)}for(b=a.size-1;0<=b;b--)g=a.get(b),d=o.ka(g),this.Kb(this.ya(d),u,g),this.JU(o,g,i)}else-1==this.Yy(v)&&(null==c&&(c=new n(this)),this.D(v,p),c.fX(p),d=o.DW(c),b=this.Jl,-1!=d&&(g=o.ka(d),this.$e(g)==this.$e(this.ya(g))&&(g=this.JF(o,d)),-1!=g&&(b=this.$e(g))),this.YM(b,v))}this.Lg(u)},t.prototype.JU=function(i,h,s){var o=i.ka(h),a=this.$e(o);if(-1==this.In(a)){var u=this.JF(i,h),c=this.ya(o),l=this.$e(c);this.Mp(a),this.Mp(l);var p=this.In(a),v=this.In(l);if(-1==u&&-1==p&&(l==a?(this.ln(l,this.Jl),p=v=this.Jl):(-1==v&&(this.ln(l,this.Jl),v=this.Jl),this.ln(a,l),p=l)),-1!=u){var b=this.$e(u);-1==v&&(0>=this.Mp(b)?(v=this.In(b),this.ln(l,v)):(this.ln(l,b),v=b),l==a&&(p=v))}-1==p&&this.dY(a,l),0==s?this.eW(i,h,o,u,a,l):5==s?this.fW(i,h,o,c,a,l):4==s&&this.dW(o,u,a,l)}},t.prototype.eW=function(i,h,s,o,a,u){var c=this.jk(a);if(-1!=o){var l=this.jk(u),p=this.jk(this.$e(o));o=c&l&p,p^=p&this.fh(s),0!=(p|=o)&&(this.Xg(u,l|p),this.Xg(a,p|c),c=c||p)}for(h=i.lb(h);-1!=h&&(o=i.ka(h),s=this.$e(this.ya(o)),a=this.jk(s),u=this.fh(o),l=this.$e(o),o=a&(p=this.jk(l))&c,c^=c&u,0!=(c|=o));h=i.lb(h))this.Xg(s,a|c),this.Xg(l,p|c)},t.prototype.fW=function(i,h,s,o,a,u){if(a!=u){s=this.Bb(s,this.eg),s+=this.Bb(o,this.eg),o=0;var c=new e.ja(0),l=new e.ja(0);l.add(0);for(var p=i.sc(-1);p!=h;p=i.lb(p)){var v=i.ka(p),b=this.ya(v),d=this.$e(v),g=this.$e(b);if(d!=g){if(v=this.Bb(v,this.eg),o+=v+=this.Bb(b,this.eg),b=!1,0!=c.size&&c.Gc()==g&&(l.Jf(),c.Jf(),b=!0),-1==this.In(g))throw e.i.Ra();b&&this.In(g)==d||(l.add(o),c.add(d))}}o+=s,0!=c.size&&c.Gc()==u&&(l.Jf(),c.Jf()),0!=o?0==l.Gc()&&(i=this.Ma(i=this.g.md),this.Xg(a,i)):0!=l.Gc()&&(i=this.Ma(i=this.g.md),this.Xg(a,i))}},t.prototype.dW=function(i,h,s,o){var a=this.Ma(this.g.md);if(-1==h)this.Xg(o,this.Io),0!=(1&(i=this.Bb(i,this.yg)))?this.Xg(s,a):this.Xg(s,this.Io);else{var u=this.jk(o);0==u?(u=this.jk(this.$e(h)),this.Xg(o,u),0!=(1&(i=this.Bb(i,this.yg)))?this.Xg(s,u==a?this.Io:a):this.Xg(s,u)):0!=(1&(i=this.Bb(i,this.yg)))?this.Xg(s,u==a?this.Io:a):this.Xg(s,u)}},t.prototype.cY=function(i,h,s,o){var a=o,u=-1,c=-1,l=0;do{if(2==l)return!1;var p=this.Bb(a,h);if(-1!=p){if(-1!=u)return!1;u=p}else{if(-1!=c)return!1;c=a}l++,a=this.kc(this.ya(a))}while(o!=a);return-1!=c&&-1!=u&&(this.Kb(i.ka(u),h,-2),i.Uj(u,c),s.add(u),!0)},t.prototype.dY=function(i,h){var s=this.Mp(i);if(0!=s){var o=this.Mp(h);(0o||0>s&&0v.compare(a)?p=1:u=-1,this.Kb(d,this.be,0),this.Kb(b,this.be,0),this.Kb(b,this.eg,p),this.Kb(d,this.eg,u)):7==i?(this.Kb(d,this.be,this.Io),this.Kb(b,this.be,1736==l?c:0)):4==i&&(this.Kb(d,this.be,0),this.Kb(b,this.be,0),this.Kb(b,this.yg,1),this.Kb(d,this.yg,1)),this.cx(b,c|(l=1736==l?this.WN:0)),this.cx(d,c|l)}}}}},t.prototype.QT=function(i,h){var s=this.om(h);if(-1!=s){var o=this.om(i);this.lh.T(s,1,o),this.Ht(i,s),this.Ht(h,-1)}i=this.ya(i),h=this.ya(h),-1!=(s=this.om(h))&&(o=this.om(i),this.lh.T(s,1,o),this.Ht(i,s),this.Ht(h,-1))},t.prototype.EX=function(i){function h(M,A){return o.CO(M,A)}var s=new e.ja(0);s.Jb(10);for(var o=this,a=this.Oe;-1!=a;a=this.Tf(a)){s.clear(!1);var u=this.Je(a);if(-1!=u){var c=u;do{s.add(c),c=this.kc(this.ya(c))}while(c!=u);if(1n.Eb())return f.mi(f.Ue(n.Ja()),r,"&")}return s=new f,o=(h=new e.hd).Ib(f.Ue(r)),n=h.Ib(f.Ue(n)),s.Gt(h,t,i),i=s.Cv(o,n),r=f.mi(h.Ke(i),r,"&"),e.ba.Ic(r.K())&&(r.Eh(2,t),1736==r.K()&&r.hm()),r},f.XV=function(r,n,t){if(r.B()||n.B())return r.Ja();var i=[null],h=[0],s=2==n.Eb();if(1!=n.Eb()&&2!=n.Eb())throw e.i.Ra();return i[0]=r.D(),s?e.jd.nK(n,i,1,t,h):e.jd.oK(n,i,1,t,h),0==h[0]?r.Ja():r},f.prototype.GU=function(r,n,t,i,h){if(r.B())return r;var s=new e.hd;return r=s.Ib(r),this.Ok(s,r,n,t,i,h)},f.prototype.IU=function(r,n,t,i,h,s){if(h&&550!=r.jc(n)){var o=new e.MC;o.PX(r,t),o.Pg?(e.Vk.W(r,t,s,!0),h=!1):this.j.ty(t)}else e.Vk.W(r,t,s,!0),h=!1;if(i&&550!=r.jc(n)?this.j.rJ(r,n,s):this.j.qJ(r,n,s),this.j.kA)return this.j.Wg(),this.j=null,this.Ok(r,n,t,i,!1,s);if(this.j.ty(NaN),s=this.j.Ma(n),this.eq(s+1),this.Ij[s]=!0,1736==r.jc(n)||i&&550!=r.jc(n))return r.$o(n,0),n=this.Qt(n,-1,-1),(r=r.Ke(n)).$o(0),h?r.Eh(1,0):(r.Eh(2,t),r.hm()),r;if(1607==r.jc(n))return n=this.Rt(-1),r=r.Ke(n),h||r.Eh(2,t),r;if(550==r.jc(n))return n=this.pr(),r=r.Ke(n),h||r.Eh(2,t),r;throw e.i.Ra()},f.prototype.Ok=function(r,n,t,i,h,s){this.j=new e.ku;try{return this.IU(r,n,t,i,h,s)}finally{this.j.Wg()}},f.Ok=function(r,n,t,i,h){return(new f).GU(r,n,t,i,h)},f.prototype.HU=function(r,n,t,i){this.Ov=r,this.j=new e.ku,r=n.Kn(t);var h=n.jc(t);if(1!=r||550==h?this.j.qJ(n,t,i):this.j.rJ(n,t,i),!this.j.kA)if(this.j.ty(NaN),i=this.j.Ma(t),this.eq(i+1),this.Ij[i]=!0,1736==n.jc(t)||1==r&&550!=n.jc(t))n.$o(t,0),i=this.Qt(t,-1,-1),n.cC(i,t),n.wB(i);else if(1607==n.jc(t))i=this.Rt(-1),n.cC(i,t),n.wB(i);else{if(550!=n.jc(t))throw e.i.ga("internal error");i=this.pr(),n.cC(i,t),n.wB(i)}},f.prototype.km=function(r,n){var t=e.ba.uf(this.j.g.jc(r)),i=e.ba.uf(this.j.g.jc(n));if(t>i)return r;var h=this.j.Ma(r),s=this.j.Ma(n);if(this.eq(1+(h|s)),this.Ij[this.j.Ma(r)]=!0,2==t&&2==i)return this.Qt(r,n,-1);if(1==t&&2==i||1==t&&1==i)return this.Rt(-1);if(0==t)return this.pr();throw e.i.Ra()},f.prototype.Cv=function(r,n){var t=e.ba.uf(this.j.g.jc(r)),i=e.ba.uf(this.j.g.jc(n)),h=this.j.Ma(r),s=this.j.Ma(n);if(this.eq(1+(h|s)),this.Ij[this.j.Ma(r)|this.j.Ma(n)]=!0,h=-1,1n.Eb())return f.mi(f.Ue(r),r,"-");var h=new e.l;r.A(h);var s=new e.l;if(n.A(s),!h.isIntersecting(s))return f.mi(f.Ue(r),r,"-");var o=new e.l;return o.L(h),o.$b(s),t=e.ua.Xd(t,o,!0),s=new f,o=(h=new e.hd).Ib(f.Ue(r)),n=h.Ib(f.Ue(n)),s.Gt(h,t,i),i=s.km(o,n),i=h.Ke(i),r=f.mi(i,r,"-"),e.ba.Ic(r.K())&&(r.Eh(2,t),1736==r.K()&&r.hm()),r},f.QP=function(r,n,t){if(2>r.length)throw e.i.O("not enough geometries to dissolve");for(var i=0,h=0,s=r.length;hc?f.Ue(r[l]):(r=2==i,n=e.ua.Xd(0==i?n:null,o,!0),(new f).Ok(a,u,n,r,!0,t))},f.Kz=function(r,n,t,i){var h=[null,null,null],s=new e.l;r.A(s);var o=new e.l;n.A(o);var a=new e.l;if(a.L(s),a.$b(o),t=e.ua.Xd(t,a,!0),(a=new e.l).L(o),o=e.ua.Gr(t),a.X(o,o),!s.isIntersecting(a)){if(r.Eb()<=n.Eb())return h[(r=f.mi(f.Ue(r.Ja()),r,"&")).Eb()]=r,h;if(r.Eb()>n.Eb())return h[(r=f.mi(f.Ue(n.Ja()),r,"&")).Eb()]=r,h}for(o=new f,a=(s=new e.hd).Ib(f.Ue(r)),n=s.Ib(f.Ue(n)),o.Gt(s,t,i),i=o.Kz(a,n),n=0;nn.Eb())return f.mi(f.Ue(r),r,"^");if(r.Eb()t;t++)n[t]=new e.h;r.iB(n),this.bY(n,n),r.bx(n,4)}},f.prototype.bY=function(r,n){for(var t=0;t(n=.5*n.Uk())?Math.sqrt(i):Math.sqrt(n))},f.prototype.MB=function(){this.eb=1,this.qb=this.Lb=this.jb=0,this.bb=1,this.Qb=0},f.prototype.isIdentity=function(r){if(void 0!==r){var n=e.h.construct(0,1);return this.Gh(n,n),n.sub(e.h.construct(0,1)),!(n.Uk()>r*r)&&(n.na(0,0),this.Gh(n,n),!(n.Uk()>r*r)&&(n.na(1,0),this.Gh(n,n),n.sub(e.h.construct(1,0)),n.Uk()<=r*r))}return 1==this.eb&&1==this.bb&&0==this.jb&&0==this.Lb&&0==this.qb&&0==this.Qb},f.prototype.Di=function(r){return Math.abs(this.eb*this.bb-this.qb*this.jb)<=2*r*(Math.abs(this.eb*this.bb)+Math.abs(this.qb*this.jb))},f.prototype.ig=function(r,n){this.eb=1,this.jb=0,this.Lb=r,this.qb=0,this.bb=1,this.Qb=n},f.prototype.Jt=function(r,n){void 0!==n?(this.eb=r,this.qb=this.Lb=this.jb=0,this.bb=n,this.Qb=0):this.Jt(r,r)},f.prototype.VB=function(){this.eb=0,this.jb=1,this.Lb=0,this.qb=1,this.Qb=this.bb=0},f.prototype.kX=function(r){this.lX(Math.cos(r),Math.sin(r))},f.prototype.lX=function(r,n){this.eb=r,this.jb=-n,this.Lb=0,this.qb=n,this.bb=r,this.Qb=0},f.prototype.shift=function(r,n){this.Lb+=r,this.Qb+=n},f.prototype.scale=function(r,n){this.eb*=r,this.jb*=r,this.Lb*=r,this.qb*=n,this.bb*=n,this.Qb*=n},f.prototype.flipX=function(r,n){this.eb=-this.eb,this.jb=-this.jb,this.Lb=r+n-this.Lb},f.prototype.flipY=function(r,n){this.qb=-this.qb,this.bb=-this.bb,this.Qb=r+n-this.Qb},f.prototype.rotate=function(r){var n=new f;n.kX(r),this.multiply(n)},f.prototype.inverse=function(r){if(void 0!==r){var n=this.eb*this.bb-this.jb*this.qb;0==n?r.lx():(r.Lb=(this.jb*this.Qb-this.Lb*this.bb)*(n=1/n),r.Qb=(this.Lb*this.qb-this.eb*this.Qb)*n,r.eb=this.bb*n,r.jb=-this.jb*n,r.qb=-this.qb*n,r.bb=this.eb*n)}else this.inverse(this)},f}();e.Ed=y}(k||(k={})),function(e){var y=function(){function f(){}return f.prototype.lx=function(){this.Cg=this.Qb=this.Lb=this.Ze=this.We=this.Ve=this.Ye=this.bb=this.jb=this.pf=this.qb=this.eb=0},f.prototype.Jt=function(r,n){this.eb=r,this.jb=this.pf=this.qb=0,this.bb=n,this.We=this.Ve=this.Ye=0,this.Ze=void 0,this.Cg=this.Qb=this.Lb=0},f.prototype.translate=function(r,n,t){this.Lb+=r,this.Qb+=n,this.Cg+=t},f.prototype.hC=function(r){if(!r.B()){for(var n=new e.Od[8],t=0;8>t;t++)n[t]=new e.Od;r.iB(n),this.transform(n,8,n),r.bx(n)}},f.prototype.transform=function(r,n,t){for(var i=0;ii;i++)t.wh[i]=-1;t.wh[t.dg[0]]=0}return t.lq=!0,t}return J(n,r),n.prototype.se=function(t){this.hasAttribute(t)||(this.wh[t]=0,this.eD())},n.prototype.removeAttribute=function(t){if(0==t)throw e.i.O("Position attribue cannot be removed");this.hasAttribute(t)&&(this.wh[t]=-1,this.eD())},n.prototype.reset=function(){this.dg[0]=0,this.Ba=1;for(var t=0;tt;t++)0<=this.wh[t]&&(this.dg[i]=t,this.wh[t]=i,i++,this.Ba++);this.lq=!0},n.prototype.dc=function(){return this.lq&&(this.yl=this.Cn(),this.lq=!1),this.yl},n.prototype.Nb=function(t){if(null==t)return!1;if(t==this)return!0;if(!(t instanceof n)||t.Ba!=this.Ba)return!1;for(var i=0;is;s++)!t.hasAttribute(s)&&i.hasAttribute(s)&&(null==h&&(h=new n(t)),h.se(s));return null!=h?h.zF():t},n}(e.sa);e.fe=y;var f=function(){function r(){this.map=[];var n=new y;this.add(n),(n=new y).se(1),this.add(n)}return r.fz=function(){return r.XK},r.prototype.VR=function(){return r.gt},r.prototype.add=function(n){var t=n.dc();if(null!=r.gt&&r.gt.dc()==t&&n.BG(r.gt))return r.gt;if(null!=r.Fw&&r.Fw.dc()==t&&n.BG(r.Fw))return r.Fw;var i=null;return void 0!==this.map[t]&&(i=this.map[t]),null==i&&(1==(i=n.oM()).Ba?r.gt=i:2==i.Ba&&1==i.ld(1)?r.Fw=i:this.map[t]=i),i},r.XK=new r,r}()}(k||(k={}));var Nt={feet:9002,kilometers:9036,meters:9001,miles:9093,"nautical-miles":9030,yards:9096},It={acres:109402,ares:109463,hectares:109401,"square-feet":109405,"square-kilometers":109414,"square-meters":109404,"square-miles":109439,"square-yards":109442},at=new(function(){function e(){this.MM=50,this.pp=new Map,this.ij=[]}return e.prototype.clear=function(){this.ij.length=0,this.pp.clear()},e.prototype.delete=function(y){return!!this.pp.delete(y)&&(this.ij.splice(this.ij.indexOf(y),1),!0)},e.prototype.get=function(y){var f=this.pp.get(y);if(void 0!==f)return this.ij[0]!==y&&(this.ij.splice(this.ij.indexOf(y),1),this.ij.unshift(y)),f},e.prototype.has=function(y){return this.pp.has(y)},e.prototype.set=function(y,f){return void 0!==this.get(y)&&this.delete(y),this.ij.unshift(y),this.pp.set(y,f),this.jM(),this},e.prototype.jM=function(){for(;this.ij.length&&this.ij.length>this.MM;){var y=this.ij.pop();this.pp.delete(y)}},e}()),q=((_={}).convertJSONToGeometry=function(e){return k.ac.aP(e)},_.hasM=function(e){return e.hasAttribute(k.Kh.M)},_.hasZ=function(e){return e.hasAttribute(k.Kh.Z)},_.getPointX=function(e){return e.Ng()},_.getPointY=function(e){return e.kh()},_.getPointZ=function(e){return e.XR()},_.getPointM=function(e){return e.uR()},_.getXMin=function(e){return e.gs()},_.getYMin=function(e){return e.js()},_.getXMax=function(e){return e.fs()},_.getYMax=function(e){return e.hs()},_.getZExtent=function(e){return e.Vg(k.Kh.Z,0)},_.getMExtent=function(e){return e.Vg(k.Kh.M,0)},_.exportPaths=function(e){var y=[],f=e.ea(),r=null,n=null,t=e.hasAttribute(k.Kh.Z),i=e.hasAttribute(k.Kh.M);t&&(r=e.vb(k.Kh.Z)),i&&(n=e.vb(k.Kh.M));for(var h=new k.h,s=0;srt[tt]})}}return Object.freeze(Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:kt},[dt.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4937.d7da790d12c9ac4c.js b/apps/n/porrtal-io-app/public/angular/4937.d7da790d12c9ac4c.js deleted file mode 100644 index 467bcb6a..00000000 --- a/apps/n/porrtal-io-app/public/angular/4937.d7da790d12c9ac4c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4937],{54937:(p,o,_)=>{_.r(o),_.d(o,{default:()=>E});var r=_(17626),a=_(77712),t=(_(85931),_(90912),_(76898)),e=_(50126);let s=class extends e.Z{constructor(){super(...arguments),this.type="geojson-3d"}};(0,r._)([(0,a.Cb)()],s.prototype,"layer",void 0),s=(0,r._)([(0,t.j)("esri.views.3d.layers.GeoJSONLayerView3D")],s);const E=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4940.5b69fac9ee916717.js b/apps/n/porrtal-io-app/public/angular/4940.5b69fac9ee916717.js deleted file mode 100644 index 4ba3df30..00000000 --- a/apps/n/porrtal-io-app/public/angular/4940.5b69fac9ee916717.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4940],{52489:(Pe,te,n)=>{n.d(te,{D:()=>t});var M=n(22558);function t(re){re&&re.writtenProperties&&re.writtenProperties.forEach(({target:se,propName:F,newOrigin:Q})=>{(0,M.l)(se)&&Q&&se.originOf(F)!==Q&&se.updateOrigin(F,Q)})}},22558:(Pe,te,n)=>{function M(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(te,{l:()=>M})},84940:(Pe,te,n)=>{n.r(te),n.d(te,{default:()=>Sr});var M=n(15861),t=n(17626),re=n(59318),se=n(29132),F=n(88879),Q=n(73281),I=(n(4832),n(49067),n(96794),n(69747),n(40425),n(69357),n(40342),n(73640),n(33474)),P=n(46160),W=n(26584),bt=n(80542),ke=n(63290),a=n(62208),St=n(99959),Qe=n(94113),wt=n(10699),Ct=n(32917),Bt=n(16730),Se=n(21726),i=n(77712),Tt=(n(85931),n(90912)),L=n(68653),j=n(76898),X=n(99433),Nt=n(52489),Xe=n(2004),He=n(55915),Ye=n(37053),Rt=n(44917),Zt=n(552),Pt=n(49286),Lt=n(6647),At=n(99555),It=n(38305),G=n(20383),U=n(86810),oe=n(57213);let H=class extends U.wq{constructor(e){super(e),this.break=new oe.Z({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new oe.Z({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new oe.Z({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new oe.Z({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new oe.Z({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new oe.Z({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,t._)([(0,i.Cb)({types:G.LB})],H.prototype,"break",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],H.prototype,"first",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],H.prototype,"unlocated",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],H.prototype,"last",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],H.prototype,"middle",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],H.prototype,"waypoint",void 0),H=(0,t._)([(0,j.j)("esri.layers.support.RouteStopSymbols")],H);const qe=H;var Ae=n(52068),jt=n(88493);let V=class extends U.wq{constructor(e){super(e),this.directionLines=new Ae.Z({color:[0,122,194],width:6}),this.directionPoints=new oe.Z({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new oe.Z({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new jt.Z({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new Ae.Z({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new Ae.Z({width:8,color:[20,89,127]}),this.stops=new qe}};(0,t._)([(0,i.Cb)({types:G.LB})],V.prototype,"directionLines",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],V.prototype,"directionPoints",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],V.prototype,"pointBarriers",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],V.prototype,"polygonBarriers",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],V.prototype,"polylineBarriers",void 0),(0,t._)([(0,i.Cb)({types:G.LB})],V.prototype,"routeInfo",void 0),(0,t._)([(0,i.Cb)({type:qe})],V.prototype,"stops",void 0),V=(0,t._)([(0,j.j)("esri.layers.support.RouteSymbols")],V);const et=V;var Dt=n(84687),Ot=n(55463),Mt=n(37281),le=n(84792),ae=n(2618),O=n(55342),R=n(51494);let K=class extends U.wq{constructor(e){super(e),this.dataType=null,this.name=null,this.parameterNames=null,this.restrictionUsageParameterName=null,this.timeNeutralAttributeName=null,this.trafficSupport=null,this.units=null,this.usageType=null}};(0,t._)([(0,i.Cb)({type:String})],K.prototype,"dataType",void 0),(0,t._)([(0,O.J)(R.Ul,{ignoreUnknown:!1})],K.prototype,"name",void 0),(0,t._)([(0,i.Cb)({type:[String]})],K.prototype,"parameterNames",void 0),(0,t._)([(0,i.Cb)({type:String})],K.prototype,"restrictionUsageParameterName",void 0),(0,t._)([(0,O.J)(R.ZI,{ignoreUnknown:!1})],K.prototype,"timeNeutralAttributeName",void 0),(0,t._)([(0,i.Cb)({type:String})],K.prototype,"trafficSupport",void 0),(0,t._)([(0,i.Cb)({type:String})],K.prototype,"units",void 0),(0,t._)([(0,O.J)(R.E2)],K.prototype,"usageType",void 0),K=(0,t._)([(0,j.j)("esri.rest.support.NetworkAttribute")],K);const Jt=K;let ie=class extends U.wq{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,t._)([(0,i.Cb)({type:Number})],ie.prototype,"buildTime",void 0),(0,t._)([(0,i.Cb)({type:String})],ie.prototype,"name",void 0),(0,t._)([(0,i.Cb)({type:[Jt]})],ie.prototype,"networkAttributes",void 0),(0,t._)([(0,i.Cb)()],ie.prototype,"networkSources",void 0),(0,t._)([(0,i.Cb)({type:String})],ie.prototype,"state",void 0),ie=(0,t._)([(0,j.j)("esri.rest.support.NetworkDataset")],ie);const Et=ie;var tt=n(67854);let E=class extends U.wq{constructor(e){super(e),this.accumulateAttributeNames=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}readAccumulateAttributes(e){return(0,a.Wi)(e)?null:e.map(r=>R.Ul.fromJSON(r))}writeAccumulateAttributes(e,r,o){!(0,a.Wi)(e)&&e.length&&(r[o]=e.map(s=>R.Ul.toJSON(s)))}};(0,t._)([(0,i.Cb)()],E.prototype,"accumulateAttributeNames",void 0),(0,t._)([(0,L.r)("accumulateAttributeNames")],E.prototype,"readAccumulateAttributes",null),(0,t._)([(0,X.c)("accumulateAttributeNames")],E.prototype,"writeAccumulateAttributes",null),(0,t._)([(0,i.Cb)()],E.prototype,"currentVersion",void 0),(0,t._)([(0,i.Cb)()],E.prototype,"defaultTravelMode",void 0),(0,t._)([(0,i.Cb)()],E.prototype,"directionsLanguage",void 0),(0,t._)([(0,O.J)(R.GX)],E.prototype,"directionsLengthUnits",void 0),(0,t._)([(0,i.Cb)()],E.prototype,"directionsSupportedLanguages",void 0),(0,t._)([(0,O.J)(R.ZI,{ignoreUnknown:!1})],E.prototype,"directionsTimeAttribute",void 0),(0,t._)([(0,i.Cb)()],E.prototype,"hasZ",void 0),(0,t._)([(0,O.J)(R.Ul,{ignoreUnknown:!1})],E.prototype,"impedance",void 0),(0,t._)([(0,i.Cb)({type:Et})],E.prototype,"networkDataset",void 0),(0,t._)([(0,i.Cb)({type:[tt.Z]})],E.prototype,"supportedTravelModes",void 0),E=(0,t._)([(0,j.j)("esri.rest.support.NetworkServiceDescription")],E);const xt=E,Ut=ke.Z.getLogger("esri.rest.networkService");function we(e,r,o,s){s[o]=[r.length,r.length+e.length],e.forEach(l=>{r.push(l.geometry)})}function Ft(e,r){for(let o=0;o=10.4?_t(e,r,o):Gt(e,o),{defaultTravelMode:d,supportedTravelModes:m}=yield y;return l.defaultTravelMode=d,l.supportedTravelModes=m,xt.fromJSON(l)})).apply(this,arguments)}function Gt(e,r){return je.apply(this,arguments)}function je(){return(je=(0,M.Z)(function*(e,r){const o=(0,ae.lA)({f:"json"},r),{data:s}=yield(0,le.default)(e.replace(/\/rest\/.*$/i,"/info"),o);if(!s||!s.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:l}=s,y=(0,Se.Qj)(l)+"/sharing/rest/portals/self",{data:d}=yield(0,le.default)(y,o),m=(0,Qe.hS)("helperServices.routingUtilities.url",d);if(!m)return{supportedTravelModes:[],defaultTravelMode:null};const h=(0,ae.en)(l),b=/\/solve$/i.test(h.path)?"Route":/\/solveclosestfacility$/i.test(h.path)?"ClosestFacility":"ServiceAreas",c=(0,ae.lA)({f:"json",serviceName:b},r),T=(0,Se.Qj)(m)+"/GetTravelModes/execute",Z=yield(0,le.default)(T,c),C=[];let g=null;if(Z?.data?.results?.length){const S=Z.data.results;for(const N of S)if("supportedTravelModes"===N.paramName){if(N.value?.features)for(const{attributes:p}of N.value.features)if(p){const v=JSON.parse(p.TravelMode);C.push(v)}}else"defaultTravelMode"===N.paramName&&(g=N.value)}return{supportedTravelModes:C,defaultTravelMode:g}})).apply(this,arguments)}function _t(e,r,o){return De.apply(this,arguments)}function De(){return(De=(0,M.Z)(function*(e,r,o){try{const s=(0,ae.lA)({f:"json",token:r},o),l=(0,Se.Qj)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:y,defaultTravelMode:d}}=yield(0,le.default)(l,s);return{supportedTravelModes:y,defaultTravelMode:d}}catch(s){throw new W.Z("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:s})}})).apply(this,arguments)}var Kt=n(93555),ot=n(68171),$=n(17253),it=n(2076);const st=new it.X({esriJobMessageTypeInformative:"informative",esriJobMessageTypeProcessDefinition:"process-definition",esriJobMessageTypeProcessStart:"process-start",esriJobMessageTypeProcessStop:"process-stop",esriJobMessageTypeWarning:"warning",esriJobMessageTypeError:"error",esriJobMessageTypeEmpty:"empty",esriJobMessageTypeAbort:"abort"});let me=class extends U.wq{constructor(e){super(e),this.description=null,this.type=null}};(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],me.prototype,"description",void 0),(0,t._)([(0,i.Cb)({type:String,json:{read:st.read,write:st.write}})],me.prototype,"type",void 0),me=(0,t._)([(0,j.j)("esri.rest.support.GPMessage")],me);const zt=me,nt=new it.X({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let Ce=class extends zt{constructor(e){super(e),this.type=null}};(0,t._)([(0,i.Cb)({type:String,json:{read:nt.read,write:nt.write}})],Ce.prototype,"type",void 0),Ce=(0,t._)([(0,j.j)("esri.rest.support.NAMessage")],Ce);const Vt=Ce;let fe=class extends U.wq{constructor(e){super(e)}};(0,t._)([(0,i.Cb)({json:{read:{source:"string"}}})],fe.prototype,"text",void 0),(0,t._)([(0,O.J)(R.Ks,{name:"stringType"})],fe.prototype,"type",void 0),fe=(0,t._)([(0,j.j)("esri.rest.support.DirectionsString")],fe);const lt=fe;var at=n(72642);let Y=class extends U.wq{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,r){return(0,ot.pQ)(r.ETA,r.arriveTimeUTC)}readGeometry(e,r){return at.Z.fromJSON(r.point)}};(0,t._)([(0,i.Cb)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],Y.prototype,"arriveTime",void 0),(0,t._)([(0,i.Cb)()],Y.prototype,"arriveTimeOffset",void 0),(0,t._)([(0,L.r)("arriveTimeOffset",["arriveTimeUTC","ETA"])],Y.prototype,"readArriveTimeOffset",null),(0,t._)([(0,i.Cb)({type:at.Z})],Y.prototype,"geometry",void 0),(0,t._)([(0,L.r)("geometry",["point"])],Y.prototype,"readGeometry",null),(0,t._)([(0,i.Cb)({type:[lt]})],Y.prototype,"strings",void 0),Y=(0,t._)([(0,j.j)("esri.rest.support.DirectionsEvent")],Y);const $t=Y;var Oe=n(55214);let pe=class extends F.Z{constructor(e){super(e),this.events=null,this.strings=null}readGeometry(e,r){const o=function kt(e){if((0,a.Wi)(e)||""===e)return null;let r=0,o=0,s=0,l=0;const y=[];let d,m,h,b,c,T,Z,C,g=0,S=0,N=0;if(c=e.match(/((\+|\-)[^\+\-\|]+|\|)/g),c||(c=[]),0===parseInt(c[g],32)){g=2;const p=parseInt(c[g],32);g++,T=parseInt(c[g],32),g++,1&p&&(S=c.indexOf("|")+1,Z=parseInt(c[S],32),S++),2&p&&(N=c.indexOf("|",S)+1,C=parseInt(c[N],32),N++)}else T=parseInt(c[g],32),g++;for(;g0,hasM:N>0}}(r.compressedGeometry);return(0,a.pC)(o)?Oe.Z.fromJSON(o):null}};(0,t._)([(0,i.Cb)({type:[$t]})],pe.prototype,"events",void 0),(0,t._)([(0,L.r)("geometry",["compressedGeometry"])],pe.prototype,"readGeometry",null),(0,t._)([(0,i.Cb)({type:[lt]})],pe.prototype,"strings",void 0),pe=(0,t._)([(0,j.j)("esri.rest.support.DirectionsFeature")],pe);const Qt=pe;var q=n(65234);let x=class extends $.default{constructor(e){super(e),this.extent=null,this.features=null,this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,r){if(!e)return[];const o=r.summary.envelope.spatialReference??r.spatialReference,s=o&&q.Z.fromJSON(o);return e.map(l=>{const y=Qt.fromJSON(l);if((0,a.pC)(y.geometry)&&(y.geometry.spatialReference=s),(0,a.pC)(y.events))for(const d of y.events)(0,a.pC)(d.geometry)&&(d.geometry.spatialReference=s);return y})}get mergedGeometry(){return this.features?function Xt(e,r){if(0===e.length)return new Oe.Z({spatialReference:r});const o=[];for(const d of e)for(const m of d.paths)o.push(...m);const s=[];o.forEach((d,m)=>{0!==m&&d[0]===o[m-1][0]&&d[1]===o[m-1][1]||s.push(d)});const{hasM:l,hasZ:y}=e[0];return new Oe.Z({hasM:l,hasZ:y,paths:[s],spatialReference:r})}(this.features.map(({geometry:e})=>(0,a.Wg)(e)),this.extent.spatialReference):null}get strings(){return this.features.map(({strings:e})=>e).flat().filter(a.pC)}};(0,t._)([(0,i.Cb)({type:Xe.Z,json:{read:{source:"summary.envelope"}}})],x.prototype,"extent",void 0),(0,t._)([(0,i.Cb)()],x.prototype,"features",void 0),(0,t._)([(0,L.r)("features")],x.prototype,"readFeatures",null),(0,t._)([(0,i.Cb)()],x.prototype,"geometryType",void 0),(0,t._)([(0,i.Cb)({readOnly:!0})],x.prototype,"mergedGeometry",null),(0,t._)([(0,i.Cb)()],x.prototype,"routeId",void 0),(0,t._)([(0,i.Cb)()],x.prototype,"routeName",void 0),(0,t._)([(0,i.Cb)({value:null,readOnly:!0})],x.prototype,"strings",null),(0,t._)([(0,i.Cb)({json:{read:{source:"summary.totalDriveTime"}}})],x.prototype,"totalDriveTime",void 0),(0,t._)([(0,i.Cb)({json:{read:{source:"summary.totalLength"}}})],x.prototype,"totalLength",void 0),(0,t._)([(0,i.Cb)({json:{read:{source:"summary.totalTime"}}})],x.prototype,"totalTime",void 0),x=(0,t._)([(0,j.j)("esri.rest.support.DirectionsFeatureSet")],x);const Ht=x;let _=class extends U.wq{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null,this.traversedEdges=null,this.traversedJunctions=null,this.traversedTurns=null}};(0,t._)([(0,i.Cb)({type:$.default,json:{write:!0}})],_.prototype,"directionLines",void 0),(0,t._)([(0,i.Cb)({type:$.default,json:{write:!0}})],_.prototype,"directionPoints",void 0),(0,t._)([(0,i.Cb)({type:Ht,json:{write:!0}})],_.prototype,"directions",void 0),(0,t._)([(0,i.Cb)({type:F.Z,json:{write:!0}})],_.prototype,"route",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],_.prototype,"routeName",void 0),(0,t._)([(0,i.Cb)({type:[F.Z],json:{write:!0}})],_.prototype,"stops",void 0),(0,t._)([(0,i.Cb)({type:$.default,json:{write:!0}})],_.prototype,"traversedEdges",void 0),(0,t._)([(0,i.Cb)({type:$.default,json:{write:!0}})],_.prototype,"traversedJunctions",void 0),(0,t._)([(0,i.Cb)({type:$.default,json:{write:!0}})],_.prototype,"traversedTurns",void 0),_=(0,t._)([(0,j.j)("esri.rest.support.RouteResult")],_);const Yt=_;function Me(e){return e&&$.default.fromJSON(e).features.map(r=>r)}let z=class extends U.wq{constructor(e){super(e),this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,r){return Me(r.barriers)}readPolylineBarriers(e){return Me(e)}readPolygonBarriers(e){return Me(e)}};(0,t._)([(0,i.Cb)({type:[Vt]})],z.prototype,"messages",void 0),(0,t._)([(0,i.Cb)({type:[F.Z]})],z.prototype,"pointBarriers",void 0),(0,t._)([(0,L.r)("pointBarriers",["barriers"])],z.prototype,"readPointBarriers",null),(0,t._)([(0,i.Cb)({type:[F.Z]})],z.prototype,"polylineBarriers",void 0),(0,t._)([(0,L.r)("polylineBarriers")],z.prototype,"readPolylineBarriers",null),(0,t._)([(0,i.Cb)({type:[F.Z]})],z.prototype,"polygonBarriers",void 0),(0,t._)([(0,L.r)("polygonBarriers")],z.prototype,"readPolygonBarriers",null),(0,t._)([(0,i.Cb)({type:[Yt]})],z.prototype,"routeResults",void 0),z=(0,t._)([(0,j.j)("esri.rest.support.RouteSolveResult")],z);const qt=z;function Be(e){return e instanceof $.default}function Je(){return(Je=(0,M.Z)(function*(e,r,o){const s=[],l=[],y={},d={},m=(0,ae.en)(e),{path:h}=m;Be(r.stops)&&we(r.stops.features,l,"stops.features",y),Be(r.pointBarriers)&&we(r.pointBarriers.features,l,"pointBarriers.features",y),Be(r.polylineBarriers)&&we(r.polylineBarriers.features,l,"polylineBarriers.features",y),Be(r.polygonBarriers)&&we(r.polygonBarriers.features,l,"polygonBarriers.features",y);const b=yield(0,Kt.aX)(l);for(const C in y){const g=y[C];s.push(C),d[C]=b.slice(g[0],g[1])}if(Wt(d,s)){let C=null;try{C=yield rt(h,r.apiKey,o)}catch{}C&&!C.hasZ&&Ft(d,s)}for(const C in d)d[C].forEach((g,S)=>{r.get(C)[S].geometry=g});const c={...o,query:{...m.query,...(0,ot.Yc)(r),f:"json"}},T=h.endsWith("/solve")?h:`${h}/solve`,{data:Z}=yield(0,le.default)(T,c);return tr(Z)})).apply(this,arguments)}function tr(e){const{barriers:r,directionLines:o,directionPoints:s,directions:l,messages:y,polygonBarriers:d,polylineBarriers:m,routes:h,stops:b,traversedEdges:c,traversedJunctions:T,traversedTurns:Z}=e,C=p=>{const v=S.find(A=>A.routeName===p);if((0,a.pC)(v))return v;const B={routeId:S.length+1,routeName:p};return S.push(B),B},g=p=>{const v=S.find(A=>A.routeId===p);if((0,a.pC)(v))return v;const B={routeId:p,routeName:null};return S.push(B),B},S=[];h?.features.forEach((p,v)=>{p.geometry.spatialReference=h.spatialReference,S.push({routeId:v+1,routeName:p.attributes.Name,route:p})}),l?.forEach(p=>{const{routeName:v}=p;C(v).directions=p});const N=b?.features.every(p=>(0,a.Wi)(p.attributes.RouteName))&&S.length>0?S[0].routeName:null;return b?.features.forEach(p=>{var v;p.geometry&&((v=p.geometry).spatialReference??(v.spatialReference=b.spatialReference));const A=C(N??p.attributes.RouteName);A.stops??(A.stops=[]),A.stops.push(p)}),o?.features.forEach(p=>{const B=g(p.attributes.RouteID),{geometryType:A,spatialReference:ee}=o;B.directionLines??(B.directionLines={features:[],geometryType:A,spatialReference:ee}),B.directionLines.features.push(p)}),s?.features.forEach(p=>{const B=g(p.attributes.RouteID),{geometryType:A,spatialReference:ee}=s;B.directionPoints??(B.directionPoints={features:[],geometryType:A,spatialReference:ee}),B.directionPoints.features.push(p)}),c?.features.forEach(p=>{const B=g(p.attributes.RouteID),{geometryType:A,spatialReference:ee}=c;B.traversedEdges??(B.traversedEdges={features:[],geometryType:A,spatialReference:ee}),B.traversedEdges.features.push(p)}),T?.features.forEach(p=>{const B=g(p.attributes.RouteID),{geometryType:A,spatialReference:ee}=T;B.traversedJunctions??(B.traversedJunctions={features:[],geometryType:A,spatialReference:ee}),B.traversedJunctions.features.push(p)}),Z?.features.forEach(p=>{const B=g(p.attributes.RouteID);B.traversedTurns??(B.traversedTurns={features:[]}),B.traversedTurns.features.push(p)}),qt.fromJSON({routeResults:S,barriers:r,polygonBarriers:d,polylineBarriers:m,messages:y})}var he=n(99683),ve=n(58924),ue=n(53753),ye=n(719),ce=n(17718),Te=n(29739),Ee=n(79608);const rr={type:String,json:{read:{source:"token"},write:{target:"token"}}};var or=n(91179);let k=class extends((0,Ee.J)(U.wq)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.geometry=null,this.geometryType=null,this.name=null,this.spatialRelationship=null,this.type="layer",this.where=null}};(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],k.prototype,"doNotLocateOnRestrictedElements",void 0),(0,t._)([(0,i.Cb)({types:se.qM,json:{read:or.im,write:!0}})],k.prototype,"geometry",void 0),(0,t._)([(0,O.J)(R.KA)],k.prototype,"geometryType",void 0),(0,t._)([(0,i.Cb)({type:String,json:{name:"layerName",write:!0}})],k.prototype,"name",void 0),(0,t._)([(0,O.J)(R.S7,{name:"spatialRel"})],k.prototype,"spatialRelationship",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],k.prototype,"type",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],k.prototype,"where",void 0),k=(0,t._)([(0,j.j)("esri.rest.support.DataLayer")],k);const ir=k;var xe;let Ne=xe=class extends $.default{constructor(e){super(e),this.doNotLocateOnRestrictedElements=null}clone(){return new xe({doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements,...this.cloneProperties()})}};(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],Ne.prototype,"doNotLocateOnRestrictedElements",void 0),Ne=xe=(0,t._)([(0,j.j)("esri.rest.support.NetworkFeatureSet")],Ne);const sr=Ne;let ge=class extends((0,Ee.J)(U.wq)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],ge.prototype,"doNotLocateOnRestrictedElements",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],ge.prototype,"url",void 0),ge=(0,t._)([(0,j.j)("esri.rest.support.NetworkUrl")],ge);const nr=ge;var Ue;function Re(e,r,o){(0,a.pC)(e)&&(r[o]=P.Z.isCollection(e)?{features:e.toArray().map(s=>s.toJSON())}:e.toJSON())}let u=Ue=class extends((0,Ee.J)(U.wq)){constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.geometryPrecision=null,this.geometryPrecisionM=null,this.geometryPrecisionZ=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.overrides=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.preserveObjectID=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,this.returnTraversedEdges=null,this.returnTraversedJunctions=null,this.returnTraversedTurns=null,this.returnZ=!0,this.startTime=null,this.startTimeIsUTC=!0,this.stops=null,this.timeWindowsAreUTC=null,this.travelMode=null,this.useHierarchy=null,this.useTimeWindows=null}static from(e){return(0,Tt.TJ)(Ue,e)}readAccumulateAttributes(e){return(0,a.Wi)(e)?null:e.map(r=>R.Ul.fromJSON(r))}writeAccumulateAttributes(e,r,o){!(0,a.Wi)(e)&&e.length&&(r[o]=e.map(s=>R.Ul.toJSON(s)))}writePointBarriers(e,r,o){Re(e,r,o)}writePolygonBarrier(e,r,o){Re(e,r,o)}writePolylineBarrier(e,r,o){Re(e,r,o)}readRestrictionAttributes(e){return(0,a.Wi)(e)?null:e.map(r=>R.kL.fromJSON(r))}writeRestrictionAttributes(e,r,o){!(0,a.Wi)(e)&&e.length&&(r[o]=e.map(s=>R.kL.toJSON(s)))}readStartTime(e,r){const{startTime:o}=r;return(0,a.Wi)(o)?null:"now"===o?"now":new Date(o)}writeStartTime(e,r){(0,a.Wi)(e)||(r.startTime="now"===e?"now":e.getTime())}readStops(e,r){return function yr(e){return function lr(e){return e&&"type"in e}(e)?ir.fromJSON(e):function pr(e){return e&&"url"in e}(e)?nr.fromJSON(e):function ar(e){return e&&"features"in e&&"doNotLocateOnRestrictedElements"in e}(e)?sr.fromJSON(e):function ur(e){return e&&"features"in e}(e)?$.default.fromJSON(e):null}(r.stops)}writeStops(e,r,o){Re(e,r,o)}};(0,t._)([(0,i.Cb)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],u.prototype,"accumulateAttributes",void 0),(0,t._)([(0,L.r)("accumulateAttributes")],u.prototype,"readAccumulateAttributes",null),(0,t._)([(0,X.c)("accumulateAttributes")],u.prototype,"writeAccumulateAttributes",null),(0,t._)([(0,i.Cb)(rr)],u.prototype,"apiKey",void 0),(0,t._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"attributeParameterValues",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],u.prototype,"directionsLanguage",void 0),(0,t._)([(0,O.J)(R.GX)],u.prototype,"directionsLengthUnits",void 0),(0,t._)([(0,O.J)(R.$7)],u.prototype,"directionsOutputType",void 0),(0,t._)([(0,O.J)(R.WP)],u.prototype,"directionsStyleName",void 0),(0,t._)([(0,O.J)(R.ZI,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],u.prototype,"directionsTimeAttribute",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"findBestSequence",void 0),(0,t._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"geometryPrecision",void 0),(0,t._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"geometryPrecisionM",void 0),(0,t._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"geometryPrecisionZ",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"ignoreInvalidLocations",void 0),(0,t._)([(0,O.J)(R.Ul,{name:"impedanceAttributeName",ignoreUnknown:!1})],u.prototype,"impedanceAttribute",void 0),(0,t._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"outputGeometryPrecision",void 0),(0,t._)([(0,O.J)(R.q$)],u.prototype,"outputGeometryPrecisionUnits",void 0),(0,t._)([(0,O.J)(R.no)],u.prototype,"outputLines",void 0),(0,t._)([(0,i.Cb)({type:q.Z,json:{name:"outSR",write:!0}})],u.prototype,"outSpatialReference",void 0),(0,t._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"overrides",void 0),(0,t._)([(0,i.Cb)({json:{name:"barriers",write:!0}})],u.prototype,"pointBarriers",void 0),(0,t._)([(0,X.c)("pointBarriers")],u.prototype,"writePointBarriers",null),(0,t._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"polygonBarriers",void 0),(0,t._)([(0,X.c)("polygonBarriers")],u.prototype,"writePolygonBarrier",null),(0,t._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"polylineBarriers",void 0),(0,t._)([(0,X.c)("polylineBarriers")],u.prototype,"writePolylineBarrier",null),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"preserveFirstStop",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"preserveLastStop",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"preserveObjectID",void 0),(0,t._)([(0,i.Cb)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],u.prototype,"restrictionAttributes",void 0),(0,t._)([(0,L.r)("restrictionAttributes")],u.prototype,"readRestrictionAttributes",null),(0,t._)([(0,X.c)("restrictionAttributes")],u.prototype,"writeRestrictionAttributes",null),(0,t._)([(0,O.J)(R.ip)],u.prototype,"restrictUTurns",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnBarriers",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnDirections",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnPolygonBarriers",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnPolylineBarriers",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnRoutes",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnStops",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnTraversedEdges",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnTraversedJunctions",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnTraversedTurns",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"returnZ",void 0),(0,t._)([(0,i.Cb)({type:Date,json:{type:Number,write:!0}})],u.prototype,"startTime",void 0),(0,t._)([(0,L.r)("startTime")],u.prototype,"readStartTime",null),(0,t._)([(0,X.c)("startTime")],u.prototype,"writeStartTime",null),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"startTimeIsUTC",void 0),(0,t._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"stops",void 0),(0,t._)([(0,L.r)("stops")],u.prototype,"readStops",null),(0,t._)([(0,X.c)("stops")],u.prototype,"writeStops",null),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"timeWindowsAreUTC",void 0),(0,t._)([(0,i.Cb)({type:tt.Z,json:{write:!0}})],u.prototype,"travelMode",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"useHierarchy",void 0),(0,t._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"useTimeWindows",void 0),u=Ue=(0,t._)([(0,j.j)("esri.rest.support.RouteParameters")],u);const pt=u;var cr=n(47521),de=n(69583),dr=n(72854);function Fe(e){return e.length?e:null}function ut(e){const{defaultTravelMode:r,supportedTravelModes:o}=e;return o?.find(({id:s})=>s===r)}function We(e){switch(e){case"esriGeometryPoint":return{type:"esriSMS",style:"esriSMSCircle",size:12,color:[0,0,0,0],outline:We("esriGeometryPolyline")};case"esriGeometryPolyline":return{type:"esriSLS",style:"esriSLSSolid",width:1,color:[0,0,0,0]};case"esriGeometryPolygon":return{type:"esriSFS",style:"esriSFSNull",outline:We("esriGeometryPolyline")}}}function Ze(e){return"layers"in e}function yt(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,M.Z)(function*(e){const r=q.Z.WGS84;return yield(0,He.iQ)(e.spatialReference,r),(0,He.iV)(e,r)})).apply(this,arguments)}function ne(e,r){switch(r){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function _e(e,r){return"decimal-degrees"===r||"points"===r||"unknown"===r?e:(0,Bt.En)(e,r,"meters")}const gr=P.Z.ofType(he.Z),br=P.Z.ofType(ve.Z),ct=P.Z.ofType(ue.Z),dt=P.Z.ofType(ye.Z),mt=P.Z.ofType(ce.Z),ft=P.Z.ofType(de.Z),ht="esri.layers.RouteLayer",vt=ke.Z.getLogger(ht);let w=class extends((0,Zt.h)((0,At.M)((0,Pt.q)((0,Lt.I)((0,St.R)((0,bt.p)(Rt.Z))))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.defaultSymbols=new et,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new ct,this.polygonBarriers=new dt,this.polylineBarriers=new mt,this.routeInfo=null,this.spatialReference=q.Z.WGS84,this.stops=new ft,this.type="route";const r=()=>{this._setStopSymbol(this.stops)};this.addHandles((0,Ct.on)(()=>this.stops,"change",r,{sync:!0,onListenerAdd:r}))}writeFeatureCollectionWebmap(e,r,o,s){const l=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter(m=>!!m),y=l.map((m,h)=>h);(0,Qe.RB)("web-map"===s.origin?"featureCollection.layers":"layers",l,r),r.opacity=this.opacity,r.visibility=this.visible,r.visibleLayers=y}readDirectionLines(e,r){return this._getNetworkFeatures(r,"DirectionLines",o=>he.Z.fromGraphic(o))}readDirectionPoints(e,r){return this._getNetworkFeatures(r,"DirectionPoints",o=>ve.Z.fromGraphic(o))}get fullExtent(){const e=new Xe.Z({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:q.Z.WGS84});if((0,a.pC)(this.routeInfo)&&(0,a.pC)(this.routeInfo.geometry))return this.routeInfo.geometry.extent??e;if((0,a.Wi)(this.stops))return e;const r=this.stops.filter(l=>(0,a.pC)(l.geometry));if(r.length<2)return e;const{spatialReference:o}=r.getItemAt(0).geometry;if((0,a.Wi)(o))return e;const s=r.toArray().map(l=>{const y=l.geometry;return[y.x,y.y]});return new dr.Z({points:s,spatialReference:o}).extent}readMaxScale(e,r){return(Ze(r)?r.layers:r.featureCollection.layers).find(o=>(0,a.pC)(o.layerDefinition.maxScale))?.layerDefinition.maxScale??0}readMinScale(e,r){return(Ze(r)?r.layers:r.featureCollection.layers).find(o=>(0,a.pC)(o.layerDefinition.minScale))?.layerDefinition.minScale??0}readPointBarriers(e,r){return this._getNetworkFeatures(r,"Barriers",o=>ue.Z.fromGraphic(o))}readPolygonBarriers(e,r){return this._getNetworkFeatures(r,"PolygonBarriers",o=>ye.Z.fromGraphic(o))}readPolylineBarriers(e,r){return this._getNetworkFeatures(r,"PolylineBarriers",o=>ce.Z.fromGraphic(o))}readRouteInfo(e,r){const o=this._getNetworkFeatures(r,"RouteInfo",s=>Te.Z.fromGraphic(s));return o.length>0?o.getItemAt(0):null}readSpatialReference(e,r){const o=Ze(r)?r.layers:r.featureCollection.layers;if(!o.length)return q.Z.WGS84;const{layerDefinition:s,featureSet:l}=o[0],d=(0,a.Wg)(l.features[0]?.geometry)?.spatialReference??l.spatialReference??s.spatialReference??s.extent.spatialReference??Ye.Zn;return q.Z.fromJSON(d)}readStops(e,r){return this._getNetworkFeatures(r,"Stops",o=>de.Z.fromGraphic(o),o=>this._setStopSymbol(o))}get title(){return(0,a.pC)(this.routeInfo)&&(0,a.pC)(this.routeInfo.name)?this.routeInfo.name:"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return re.Z.routeServiceUrl}set url(e){this._set("url",null!=e?(0,It.Nm)(e,vt):re.Z.routeServiceUrl)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}removeAll(){this.removeResult(),this.pointBarriers.removeAll(),this.polygonBarriers.removeAll(),this.polylineBarriers.removeAll(),this.stops.removeAll()}removeResult(){(0,a.pC)(this.directionLines)&&(this.directionLines.removeAll(),this._set("directionLines",null)),(0,a.pC)(this.directionPoints)&&(this.directionPoints.removeAll(),this._set("directionPoints",null)),(0,a.pC)(this.routeInfo)&&this._set("routeInfo",null)}save(){var e=this;return(0,M.Z)(function*(){yield e.load();const{fullExtent:r,portalItem:o}=e;if(!o)throw new W.Z("routelayer:portal-item-not-set","save() requires to the layer to have a portal item");if(!o.id)throw new W.Z("routelayer:portal-item-not-saved","Please use saveAs() first to save the routelayer");if("Feature Collection"!==o.type)throw new W.Z("routelayer:portal-item-wrong-type",'Portal item needs to have type "Feature Collection"');if((0,a.Wi)(e.routeInfo))throw new W.Z("routelayer:route-unsolved","save() requires a solved route");const{portal:s}=o;yield s._signIn(),s.user||(yield o.reload());const{itemUrl:l,itemControl:y}=o;if("admin"!==y&&"update"!==y)throw new W.Z("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");const d={messages:[],origin:"portal-item",portal:s,url:l&&(0,Se.mN)(l),writtenProperties:[]},m=e.write(null,d);return o.extent=yield yt(r),o.title=e.title,yield o.update({data:m}),o})()}saveAs(e,r={}){var o=this;return(0,M.Z)(function*(){if(yield o.load(),(0,a.Wi)(o.routeInfo))throw new W.Z("routelayer:route-unsolved","saveAs() requires a solved route");const s=Ot.default.from(e).clone();s.extent??(s.extent=yield yt(o.fullExtent)),s.id=null,s.portal??(s.portal=Dt.Z.getDefault()),s.title??(s.title=o.title),s.type="Feature Collection",s.typeKeywords=["Data","Feature Collection",Mt.Kz.MULTI_LAYER,"Route Layer"];const{portal:l}=s,y={messages:[],origin:"portal-item",portal:l,url:null,writtenProperties:[]};yield l._signIn();const d=r?.folder,m=o.write(null,y);return yield l.user.addItem({item:s,folder:d,data:m}),o.portalItem=s,(0,Nt.D)(y),y.portalItem=s,s})()}solve(e,r){var o=this;return(0,M.Z)(function*(){const s=e?.stops??o.stops,l=e?.pointBarriers??Fe(o.pointBarriers),y=e?.polylineBarriers??Fe(o.polylineBarriers),d=e?.polygonBarriers??Fe(o.polygonBarriers);if((0,a.Wi)(s))throw new W.Z("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function mr(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(s)||function fr(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(s))&&s.features.length<2||P.Z.isCollection(s)&&s.length<2)throw new W.Z("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");if(P.Z.isCollection(s))for(const v of s)v.routeName=null;const m=e?.apiKey,h=o.url,b=yield o._getServiceDescription(h,m,r),c=ut(b),T=e?.travelMode??c,Z=(0,a.yl)(e?.accumulateAttributes,[]);(0,a.pC)(T)&&(Z.push(T.distanceAttributeName),T.timeAttributeName&&Z.push(T.timeAttributeName));const C={startTime:new Date},g={accumulateAttributes:Z,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:l,polylineBarriers:y,polygonBarriers:d,preserveFirstStop:!0,preserveLastStop:!0,returnBarriers:!!l,returnDirections:!0,returnPolygonBarriers:!!d,returnPolylineBarriers:!!y,returnRoutes:!0,returnStops:!0,stops:s},S=e?pt.from(e):new pt;for(const v in C)null==S[v]&&(S[v]=C[v]);let N;S.set(g);try{N=yield function er(e,r,o){return Je.apply(this,arguments)}(h,S,r)}catch(v){throw(0,wt.D_)(v)?v:new W.Z("routelayer:failed-route-request","the routing request failed",{error:v})}const p=o._toRouteLayerSolution(N);return o._isOverridden("title")||(o.title=(0,a.yl)(p.routeInfo.name,"Route")),function hr(e,r,o){const s=r.networkDataset?.networkAttributes,l=s?.filter(f=>"cost"===f.usageType)??[],y=ut(r),d=o.travelMode??y;if((0,a.Wi)(d))return void vt.warn("route-layer:missing-travel-mode","The routing service must have a default travel mode or one must be specified in the route parameter.");const{timeAttributeName:m,distanceAttributeName:h}=d,b=l.find(f=>f.name===m),c=l.find(f=>f.name===h),T=(0,a.Wg)(o.travelMode)?.impedanceAttributeName??(0,a.Wg)(o.impedanceAttribute)??r.impedance,Z=R.hB.fromJSON(b?.units),C=R.GX.fromJSON(c?.units);if(!Z||!C)throw new W.Z("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const g=o.directionsLanguage??r.directionsLanguage,S=(0,a.Wg)(o.accumulateAttributes)??r.accumulateAttributeNames??[],N=new Set(l.filter(({name:f})=>f===m||f===h||f===T||null!=f&&S.includes(f)).map(({name:f})=>f)),p=f=>{for(const gt in f)N.has(gt)||delete f[gt]};for(const f of e.pointBarriers)(0,a.pC)(f.costs)&&(f.addedCost=f.costs[T]??0,p(f.costs));for(const f of e.polygonBarriers)(0,a.pC)(f.costs)&&(f.scaleFactor=f.costs[T]??1,p(f.costs));for(const f of e.polylineBarriers)(0,a.pC)(f.costs)&&(f.scaleFactor=f.costs[T]??1,p(f.costs));const{routeInfo:v}=e,{findBestSequence:B,preserveFirstStop:A,preserveLastStop:ee,startTimeIsUTC:wr,timeWindowsAreUTC:Cr}=o;v.analysisSettings=new cr.Z({accumulateAttributes:S,directionsLanguage:g,findBestSequence:B,preserveFirstStop:A,preserveLastStop:ee,startTimeIsUTC:wr,timeWindowsAreUTC:Cr,travelMode:d}),v.totalDuration=ne(v.totalCosts[m]??0,Z),v.totalDistance=_e(v.totalCosts[h]??0,C),v.totalLateDuration=ne(v.totalViolations[m]??0,Z),v.totalWaitDuration=ne(v.totalWait[m]??0,Z),(0,a.pC)(v.totalCosts)&&p(v.totalCosts),(0,a.pC)(v.totalViolations)&&p(v.totalViolations),(0,a.pC)(v.totalWait)&&p(v.totalWait);for(const f of e.stops)(0,a.pC)(f.serviceCosts)&&(f.serviceDuration=ne(f.serviceCosts[m]??0,Z),f.serviceDistance=_e(f.serviceCosts[h]??0,C),p(f.serviceCosts)),(0,a.pC)(f.cumulativeCosts)&&(f.cumulativeDuration=ne(f.cumulativeCosts[m]??0,Z),f.cumulativeDistance=_e(f.cumulativeCosts[h]??0,C),p(f.cumulativeCosts)),(0,a.pC)(f.violations)&&(f.lateDuration=ne(f.violations[m]??0,Z),p(f.violations)),(0,a.pC)(f.wait)&&(f.waitDuration=ne(f.wait[m]??0,Z),p(f.wait))}(p,b,S),p})()}update(e){const{stops:r,directionLines:o,directionPoints:s,pointBarriers:l,polylineBarriers:y,polygonBarriers:d,routeInfo:m}=e;this.set({stops:r,pointBarriers:l,polylineBarriers:y,polygonBarriers:d}),this._set("directionLines",o),this._set("directionPoints",s),this._set("routeInfo",m),(0,a.pC)(m.geometry)&&(this.spatialReference=m.geometry.spatialReference)}_getNetworkFeatures(e,r,o,s){const l=(Ze(e)?e.layers:e.featureCollection.layers).find(g=>g.layerDefinition.name===r);if((0,a.Wi)(l))return new P.Z;const{layerDefinition:y,popupInfo:d,featureSet:m}=l,h=y.drawingInfo.renderer,{features:b}=m,c=m.spatialReference??y.spatialReference??y.extent.spatialReference??Ye.Zn,T=h&&(0,I.a)(h),Z=q.Z.fromJSON(c),C=b.map(g=>{const S=F.Z.fromJSON(g);(0,a.pC)(S.geometry)&&(0,a.pC)(g.geometry)&&(0,a.Wi)(g.geometry.spatialReference)&&(S.geometry.spatialReference=Z);const N=o(S);return N.symbol??(N.symbol=T?.getSymbol(S)??this._getNetworkSymbol(r)),N.popupTemplate??(N.popupTemplate=d&&Q.Z.fromJSON(d)),N});return s&&C.some(g=>!g.symbol)&&s(C),new P.Z(C)}_getNetworkSymbol(e){switch(e){case"Barriers":return this.defaultSymbols.pointBarriers;case"DirectionPoints":return this.defaultSymbols.directionPoints;case"DirectionLines":return this.defaultSymbols.directionLines;case"PolylineBarriers":return this.defaultSymbols.polylineBarriers;case"PolygonBarriers":return this.defaultSymbols.polygonBarriers;case"RouteInfo":return this.defaultSymbols.routeInfo;case"Stops":return null}}_getServiceDescription(e,r,o){var s=this;return(0,M.Z)(function*(){if((0,a.pC)(s._cachedServiceDescription)&&s._cachedServiceDescription.url===e)return s._cachedServiceDescription.serviceDescription;const l=yield rt(e,r,o);return s._cachedServiceDescription={serviceDescription:l,url:e},l})()}_setStopSymbol(e){if(!e||0===e.length||(0,a.Wi)(this.defaultSymbols.stops)||e.every(c=>(0,a.pC)(c.symbol)))return;const{first:r,last:o,middle:s,unlocated:l,waypoint:y,break:d}=this.defaultSymbols.stops;if((0,a.Wi)(this.routeInfo)||1===e.length)return void e.forEach((c,T)=>{switch(T){case 0:c.symbol=r;break;case e.length-1:c.symbol=o;break;default:c.symbol=s}});const m=e.map(c=>c.sequence).filter(c=>(0,a.pC)(c)),h=Math.min(...m),b=Math.max(...m);for(const c of e)c.symbol=c.sequence!==h?c.sequence!==b?"ok"===c.status||"not-located-on-closest"===c.status?"waypoint"!==c.locationType?"break"!==c.locationType?s:d:y:l:o:r}_toRouteLayerSolution(e){const r=e.routeResults[0].stops.map(h=>de.Z.fromJSON(h.toJSON()));this._setStopSymbol(r);const o=new ft(r),s=new dt(e.polygonBarriers?.map(h=>{const b=ye.Z.fromJSON(h.toJSON());return b.symbol=this.defaultSymbols.polygonBarriers,b})),l=new mt(e.polylineBarriers?.map(h=>{const b=ce.Z.fromJSON(h.toJSON());return b.symbol=this.defaultSymbols.polylineBarriers,b})),y=new ct(e.pointBarriers?.map(h=>{const b=ue.Z.fromJSON(h.toJSON());return b.symbol=this.defaultSymbols.pointBarriers,b})),d=Te.Z.fromJSON(e.routeResults[0].route.toJSON());d.symbol=this.defaultSymbols.routeInfo;const m=new br(e.routeResults[0].directionPoints?.features.map(h=>{const b=ve.Z.fromJSON(h.toJSON());return b.symbol=this.defaultSymbols.directionPoints,b}));return{directionLines:new gr(e.routeResults[0].directionLines?.features.map(h=>{const b=he.Z.fromJSON(h.toJSON());return b.symbol=this.defaultSymbols.directionLines,b})),directionPoints:m,pointBarriers:y,polygonBarriers:s,polylineBarriers:l,routeInfo:d,stops:o}}_writeDirectionLines(){return this._writeNetworkFeatures(this.directionLines,this.defaultSymbols.directionLines,"esriGeometryPolyline",he.Z.fields,he.Z.popupInfo,"DirectionLines","Direction Lines")}_writeDirectionPoints(){return this._writeNetworkFeatures(this.directionPoints,this.defaultSymbols.directionPoints,"esriGeometryPoint",ve.Z.fields,ve.Z.popupInfo,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,r,o,s,l,y,d){if((0,a.Wi)(e)||!e.length)return null;const m=this.spatialReference.toJSON(),{fullExtent:h,maxScale:b,minScale:c}=this;return{featureSet:{features:e.toArray().map(T=>function vr(e){const{attributes:r,geometry:o,popupTemplate:s,symbol:l}=e.toGraphic().toJSON();return{attributes:r,geometry:o,popupInfo:s,symbol:l}}(T)),geometryType:o,spatialReference:m},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:(0,a.pC)(r)?r.toJSON():We(o)}},extent:h.toJSON(),fields:s,geometryType:o,hasM:!1,hasZ:!1,maxScale:b,minScale:c,name:y,objectIdField:"ObjectID",spatialReference:m,title:d,type:"Feature Layer",typeIdField:""},popupInfo:l}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",ue.Z.fields,ue.Z.popupInfo,"Barriers","Point Barriers")}_writePolygonBarriers(){return this._writeNetworkFeatures(this.polygonBarriers,this.defaultSymbols.polygonBarriers,"esriGeometryPolygon",ye.Z.fields,ye.Z.popupInfo,"PolygonBarriers","Polygon Barriers")}_writePolylineBarriers(){return this._writeNetworkFeatures(this.polylineBarriers,this.defaultSymbols.polylineBarriers,"esriGeometryPolyline",ce.Z.fields,ce.Z.popupInfo,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures((0,a.pC)(this.routeInfo)?new P.Z([this.routeInfo]):null,this.defaultSymbols.routeInfo,"esriGeometryPolyline",Te.Z.fields,Te.Z.popupInfo,"RouteInfo","Route Details")}_writeStops(){const e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",de.Z.fields,de.Z.popupInfo,"Stops","Stops");if((0,a.Wi)(e))return null;const{stops:r}=this.defaultSymbols,o=(0,a.pC)(r)&&(0,a.pC)(r.first)&&r.first.toJSON(),s=(0,a.pC)(r)&&(0,a.pC)(r.middle)&&r.middle.toJSON(),l=(0,a.pC)(r)&&(0,a.pC)(r.last)&&r.last.toJSON();return e.layerDefinition.drawingInfo.renderer={type:"uniqueValue",field1:"Sequence",defaultSymbol:s,uniqueValueInfos:[{value:"1",symbol:o,label:"First Stop"},{value:`${this.stops.length}`,symbol:l,label:"Last Stop"}]},e}};(0,t._)([(0,i.Cb)({readOnly:!0,json:{read:!1,origins:{"portal-item":{write:{allowNull:!0,ignoreOrigin:!0}},"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],w.prototype,"_featureCollection",void 0),(0,t._)([(0,X.c)(["web-map","portal-item"],"_featureCollection")],w.prototype,"writeFeatureCollectionWebmap",null),(0,t._)([(0,i.Cb)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],w.prototype,"_type",void 0),(0,t._)([(0,i.Cb)({nonNullable:!0,type:et})],w.prototype,"defaultSymbols",void 0),(0,t._)([(0,i.Cb)({readOnly:!0})],w.prototype,"directionLines",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],w.prototype,"readDirectionLines",null),(0,t._)([(0,i.Cb)({readOnly:!0})],w.prototype,"directionPoints",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],w.prototype,"readDirectionPoints",null),(0,t._)([(0,i.Cb)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],w.prototype,"featureCollectionType",void 0),(0,t._)([(0,i.Cb)({readOnly:!0})],w.prototype,"fullExtent",null),(0,t._)([(0,i.Cb)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],w.prototype,"legendEnabled",void 0),(0,t._)([(0,i.Cb)({type:["show","hide"]})],w.prototype,"listMode",void 0),(0,t._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],w.prototype,"maxScale",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],w.prototype,"readMaxScale",null),(0,t._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],w.prototype,"minScale",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],w.prototype,"readMinScale",null),(0,t._)([(0,i.Cb)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],w.prototype,"operationalLayerType",void 0),(0,t._)([(0,i.Cb)({nonNullable:!0,type:P.Z.ofType(ue.Z)})],w.prototype,"pointBarriers",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],w.prototype,"readPointBarriers",null),(0,t._)([(0,i.Cb)({nonNullable:!0,type:P.Z.ofType(ye.Z)})],w.prototype,"polygonBarriers",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],w.prototype,"readPolygonBarriers",null),(0,t._)([(0,i.Cb)({nonNullable:!0,type:P.Z.ofType(ce.Z)})],w.prototype,"polylineBarriers",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],w.prototype,"readPolylineBarriers",null),(0,t._)([(0,i.Cb)({readOnly:!0})],w.prototype,"routeInfo",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],w.prototype,"readRouteInfo",null),(0,t._)([(0,i.Cb)({type:q.Z})],w.prototype,"spatialReference",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],w.prototype,"readSpatialReference",null),(0,t._)([(0,i.Cb)({nonNullable:!0,type:P.Z.ofType(de.Z)})],w.prototype,"stops",void 0),(0,t._)([(0,L.r)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],w.prototype,"readStops",null),(0,t._)([(0,i.Cb)()],w.prototype,"title",null),(0,t._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,t._)([(0,i.Cb)()],w.prototype,"url",null),w=(0,t._)([(0,j.j)(ht)],w);const Sr=w},37281:(Pe,te,n)=>{n.d(te,{$o:()=>Ve,Kz:()=>$e,_$:()=>Le,ck:()=>ze,qj:()=>Ke});var M=n(15861),t=n(55915),re=n(65234),se=n(46367);function F(D){return Q.apply(this,arguments)}function Q(){return(Q=(0,M.Z)(function*(D){const J=D.spatialReference;if(J.isWGS84)return D.clone();if(J.isWebMercator)return(0,se.Sx)(D);const I=re.Z.WGS84;return yield(0,t.iQ)(J,I),(0,t.iV)(D,I)})).apply(this,arguments)}function Ke(D,J){if(!Le(D,J)){const I=D.typeKeywords;I?I.push(J):D.typeKeywords=[J]}}function Le(D,J){return!!D.typeKeywords?.includes(J)}function ze(D,J){const I=D.typeKeywords;if(I){const P=I.indexOf(J);P>-1&&I.splice(P,1)}}function Ve(D){return be.apply(this,arguments)}function be(){return(be=(0,M.Z)(function*(D){const J=D.clone().normalize();let I;if(J.length>1)for(const P of J)I?P.width>I.width&&(I=P):I=P;else I=J[0];return F(I)})).apply(this,arguments)}const $e={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4976.64de92743325e09f.js b/apps/n/porrtal-io-app/public/angular/4976.64de92743325e09f.js deleted file mode 100644 index 8332a56a..00000000 --- a/apps/n/porrtal-io-app/public/angular/4976.64de92743325e09f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4976],{64976:(O,i,e)=>{e.r(i),e.d(i,{default:()=>u});var r=e(17626),n=e(26584),d=e(77712),E=(e(85931),e(90912),e(76898)),p=e(19702),h=e(50916),a=e(45611);let o=class extends((0,h.r)((0,p.A)(a.Z))){constructor(){super(...arguments),this.type="elevation-3d"}get tileInfo(){return this.layer.tileInfo}initialize(){const c=this.view?.map?.allLayers,t=c&&c.includes(this.layer),_=this.view?.map?.ground?.layers,s=_&&_.includes(this.layer);if(t&&!s){const l=new n.Z("layerview:elevation-layer-only","3D elevation layer '"+this.layer.id+"' can only be added to layers in map.ground");this.addResolvingPromise(Promise.reject(l))}this._addTilingSchemeMatchPromise()}};(0,r._)([(0,d.Cb)()],o.prototype,"layer",void 0),(0,r._)([(0,d.Cb)()],o.prototype,"tileInfo",null),o=(0,r._)([(0,E.j)("esri.views.3d.layers.ElevationLayerView3D")],o);const u=o},19702:(O,i,e)=>{e.d(i,{A:()=>u});var r=e(15861),n=e(17626),d=e(54024),y=e(10699),v=e(32917),E=e(77712),a=(e(85931),e(90912),e(76898)),o=e(36947);const u=c=>{let t=class extends c{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(_){super.postscript(_),(0,o.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var _=this;return(0,r.Z)(function*(){const s=new AbortController,l=s.signal;_.handles.add((0,d.kB)(()=>s.abort())),yield(0,v.N1)(()=>_.view.defaultsFromMap?.heightModelInfoReady,l),(0,y.k_)(l);const P=(0,o.Wt)(_.layer,_.view.heightModelInfo,_.supportsHeightUnitConversion);if(P)throw P})()}canResume(){const _=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!_||!_.minScale||!_.maxScale||_.minScale>=_.maxScale)}getSuspendInfo(){const _=super.getSuspendInfo(),s=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return s&&s.minScale&&s.maxScale&&s.minScale{e.d(i,{Z:()=>_});var r=e(17626),n=e(14517),d=e(61885),y=e(80542),v=e(61996),E=e(63290),p=e(62208),h=e(60330),a=e(77712),c=(e(85931),e(90912),e(76898));let t=class extends((0,y.p)((0,v.IG)((0,h.v)(d.Z.EventedMixin(n.Z))))){constructor(s){super(s),this.layer=null,this.parent=null}initialize(){this.when().catch(s=>{if("layerview:create-error"!==s.name){const l=this.layer&&this.layer.id||"no id",P=this.layer&&this.layer.title||"no title";E.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${P}', id: '${l}')`,s)}})}get fullOpacity(){return(0,p.Pt)(this.get("layer.opacity"),1)*(0,p.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(s){this._overrideIfSome("visible",s)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const s=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(s.viewNotReady=!0),this.layer&&this.layer.loaded||(s.layerNotLoaded=!0),this.visible||(s.layerInvisible=!0),s}isUpdating(){return!1}};(0,r._)([(0,a.Cb)()],t.prototype,"fullOpacity",null),(0,r._)([(0,a.Cb)()],t.prototype,"layer",void 0),(0,r._)([(0,a.Cb)()],t.prototype,"parent",void 0),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"suspended",null),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"suspendInfo",null),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"legendEnabled",null),(0,r._)([(0,a.Cb)({type:Boolean,readOnly:!0})],t.prototype,"updating",null),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"updatingProgress",null),(0,r._)([(0,a.Cb)()],t.prototype,"visible",null),(0,r._)([(0,a.Cb)()],t.prototype,"view",void 0),t=(0,r._)([(0,c.j)("esri.views.layers.LayerView")],t);const _=t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4978.e231ce8108fd716e.js b/apps/n/porrtal-io-app/public/angular/4978.e231ce8108fd716e.js deleted file mode 100644 index 3d416851..00000000 --- a/apps/n/porrtal-io-app/public/angular/4978.e231ce8108fd716e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4978],{4978:(y,i,n)=>{n.r(i),n.d(i,{u:()=>f});var u,h,e,s=n(1719),r={exports:{}};u=r,void 0!==(e=r.exports,Object.defineProperty(e,"__esModule",{value:!0}),h=void(e.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u043d. \u0435.",_era_bc:"\u0434\u043e \u043d. \u0435.",A:"\u0434\u043f",P:"\u043f\u043f",AM:"\u0434\u043f",PM:"\u043f\u043f","A.M.":"\u0434\u043f","P.M.":"\u043f\u043f",January:"\u0441\u0456\u0447\u043d\u044f",February:"\u043b\u044e\u0442\u043e\u0433\u043e",March:"\u0431\u0435\u0440\u0435\u0437\u043d\u044f",April:"\u043a\u0432\u0456\u0442\u043d\u044f",May:"\u0442\u0440\u0430\u0432\u043d\u044f",June:"\u0447\u0435\u0440\u0432\u043d\u044f",July:"\u043b\u0438\u043f\u043d\u044f",August:"\u0441\u0435\u0440\u043f\u043d\u044f",September:"\u0432\u0435\u0440\u0435\u0441\u043d\u044f",October:"\u0436\u043e\u0432\u0442\u043d\u044f",November:"\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430",December:"\u0433\u0440\u0443\u0434\u043d\u044f",Jan:"\u0441\u0456\u0447.",Feb:"\u043b\u044e\u0442.",Mar:"\u0431\u0435\u0440.",Apr:"\u043a\u0432\u0456\u0442.","May(short)":"\u0442\u0440\u0430\u0432.",Jun:"\u0447\u0435\u0440\u0432.",Jul:"\u043b\u0438\u043f.",Aug:"\u0441\u0435\u0440\u043f.",Sep:"\u0432\u0435\u0440.",Oct:"\u0436\u043e\u0432\u0442.",Nov:"\u043b\u0438\u0441\u0442.",Dec:"\u0433\u0440\u0443\u0434.",Sunday:"\u043d\u0435\u0434\u0456\u043b\u044f",Monday:"\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a",Tuesday:"\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a",Wednesday:"\u0441\u0435\u0440\u0435\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u0435\u0440",Friday:"\u043f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f",Saturday:"\u0441\u0443\u0431\u043e\u0442\u0430",Sun:"\u043d\u0434",Mon:"\u043f\u043d",Tue:"\u0432\u0442",Wed:"\u0441\u0440",Thu:"\u0447\u0442",Fri:"\u043f\u0442",Sat:"\u0441\u0431",_dateOrd:function(a){return""},"Zoom Out":"\u041c\u0430\u0441\u0448\u0442\u0430\u0431\u0443\u0432\u0430\u043d\u043d\u044f",Play:"\u0412\u0456\u0434\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438",Stop:"\u0417\u0443\u043f\u0438\u043d\u043a\u0430",Legend:"\u041b\u0435\u0433\u0435\u043d\u0434\u0430","Click, tap or press ENTER to toggle":"",Loading:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0443\u0454\u0442\u044c\u0441\u044f",Home:"\u0413\u043e\u043b\u043e\u0432\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"\u043a\u0430\u0440\u0442\u0430","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u0414\u0440\u0443\u043a",Image:"\u0417\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f",Data:"\u0414\u0430\u043d\u0456",Print:"\u0414\u0440\u0443\u043a","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u0412\u0456\u0434 %1 \u0434\u043e %2","From %1":"\u0412\u0456\u0434 %1","To %1":"\u0414\u043e %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(t,e){for(var a=0;a_[o]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,s.g)(r.exports)},[r.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/4988.b8590445cf609226.js b/apps/n/porrtal-io-app/public/angular/4988.b8590445cf609226.js deleted file mode 100644 index 02eda67f..00000000 --- a/apps/n/porrtal-io-app/public/angular/4988.b8590445cf609226.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[4988],{78778:(Ve,De,Z)=>{Z.d(De,{P:()=>M});class M{constructor(R){this.source=R}}},9288:(Ve,De,Z)=>{Z.d(De,{s:()=>M});class M{constructor(R,E){this._moduleSingletons=R,this._syntaxModules=E}loadLibrary(R){if(null==this._syntaxModules)return null;const E=this._syntaxModules[R.toLowerCase()];return E?{syntax:E.script,uri:E.uri}:null}}},37780:(Ve,De,Z)=>{Z.d(De,{Z:()=>z});var M=Z(6729);class z extends M.Z{constructor(E){super(),this.declaredClass="esri.arcade.Portal",this.immutable=!1,this.setField("url",E),this.immutable=!0}}},22386:(Ve,De,Z)=>{Z.d(De,{Z:()=>z});var M=Z(6729);class z extends M.Z{constructor(E,f,K,Q,b,F){super(),this.attachmentUrl=b,this.declaredClass="esri.arcade.Attachment",this.immutable=!1,this.setField("id",E),this.setField("name",f),this.setField("contenttype",K),this.setField("size",Q),this.setField("exifinfo",F),this.immutable=!0}}},6729:(Ve,De,Z)=>{Z.d(De,{Z:()=>Q});var M=Z(15861),z=Z(25919),R=Z(98362),E=Z(47562),f=Z(21674);function K(b,F=!1){if(null==b)return null;if((0,E.b)(b))return(0,E.g)(b);if((0,E.a)(b))return(0,E.h)(b);if((0,E.c)(b))return(0,E.j)(b);if((0,E.k)(b))return(0,E.l)(b);if((0,E.m)(b)){const $=[];for(const A of b)$.push(K(A,F));return $}const W=new Q;W.immutable=!1;for(const $ of Object.keys(b)){const A=b[$];void 0!==A&&W.setField($,K(A,F))}return W.immutable=F,W}class Q{constructor(F){this.declaredClass="esri.arcade.Dictionary",this.attributes=null,this.plain=!1,this.immutable=!0,this.attributes=F instanceof Q?F.attributes:F??{}}field(F){const W=F.toLowerCase(),$=this.attributes[F];if(void 0!==$)return $;for(const A in this.attributes)if(A.toLowerCase()===W)return this.attributes[A];throw new z.aV(null,z.rH.FieldNotFound,null,{key:F})}setField(F,W){if(this.immutable)throw new z.aV(null,z.rH.Immutable,null);if((0,E.i)(W))throw new z.aV(null,z.rH.NoFunctionInDictionary,null);const $=F.toLowerCase();if(void 0===this.attributes[F]){for(const A in this.attributes)if(A.toLowerCase()===$)return void(this.attributes[A]=W);this.attributes[F]=W}else this.attributes[F]=W}hasField(F){const W=F.toLowerCase();if(void 0!==this.attributes[F])return!0;for(const $ in this.attributes)if($.toLowerCase()===W)return!0;return!1}keys(){let F=[];for(const W in this.attributes)F.push(W);return F=F.sort(),F}castToText(F=!1){let W="";for(const $ in this.attributes){""!==W&&(W+=",");const A=this.attributes[$];null==A?W+=JSON.stringify($)+":null":(0,E.a)(A)||(0,E.b)(A)||(0,E.c)(A)?W+=JSON.stringify($)+":"+JSON.stringify(A):A instanceof f.Z?W+=JSON.stringify($)+":"+(0,E.t)(A):A instanceof R.Z||A instanceof Array?W+=JSON.stringify($)+":"+(0,E.t)(A,null,F):A instanceof Date?W+=F?JSON.stringify($)+":"+JSON.stringify(A.getTime()):JSON.stringify($)+":"+JSON.stringify(A):null!==A&&"object"==typeof A&&void 0!==A.castToText&&(W+=JSON.stringify($)+":"+A.castToText(F))}return"{"+W+"}"}static convertObjectToArcadeDictionary(F,W=!0){const $=new Q;$.immutable=!1;for(const A in F){const k=F[A];void 0!==k&&$.setField(A.toString(),K(k))}return $.immutable=W,$}static convertJsonToArcade(F,W=!1){return K(F,W)}castAsJson(F=null){const W={};for(let $ in this.attributes){const A=this.attributes[$];void 0!==A&&(F?.keyTranslate&&($=F.keyTranslate($)),W[$]=(0,E.d)(A,F))}return W}castDictionaryValueAsJsonAsync(F,W,$,A=null,k){return(0,M.Z)(function*(){const B=yield(0,E.e)($,A,k);return F[W]=B,B})()}castAsJsonAsync(F=null,W=null){var $=this;return(0,M.Z)(function*(){const A={},k=[];for(let B in $.attributes){const G=$.attributes[B];W?.keyTranslate&&(B=W.keyTranslate(B)),void 0!==G&&((0,E.f)(G)||G instanceof f.Z||G instanceof Date?A[B]=(0,E.d)(G,W):k.push($.castDictionaryValueAsJsonAsync(A,B,G,F,W)))}return k.length>0&&(yield Promise.all(k)),A})()}}},42275:(Ve,De,Z)=>{Z.d(De,{Z:()=>$});var M=Z(15861),z=Z(6729),R=Z(98362),E=Z(47562),f=Z(21674),K=Z(72642),Q=Z(91179),b=Z(82054),F=Z(62208),W=Z(25919);class ${constructor(){this.arcadeDeclaredClass="esri.arcade.Feature",this._optimizedGeomDefinition=null,this._geometry=null,this.attributes=null,this._layer=null,this._datesfixed=!0,this.immutable=!0,this._datefields=null,this.immutable=!0}static createFromGraphic(k){const B=new $;return B._geometry=(0,F.pC)(k.geometry)?k.geometry:null,B.attributes=k.attributes??{},k._sourceLayer?(B._layer=k._sourceLayer,B._datesfixed=!1):k._layer?(B._layer=k._layer,B._datesfixed=!1):k.layer&&"fields"in k.layer?(B._layer=k.layer,B._datesfixed=!1):k.sourceLayer&&"fields"in k.sourceLayer&&(B._layer=k.sourceLayer,B._datesfixed=!1),B}static createFromArcadeFeature(k){const B=new $;return B._datesfixed=k._datesfixed,B.attributes=k.attributes,B._geometry=k._geometry,B._optimizedGeomDefinition=k._optimizedGeomDefinition,k._layer&&(B._layer=k._layer),B}static createFromOptimisedFeature(k,B,G){const H=new $;return H._geometry=k.geometry?{geometry:k.geometry}:null,H._optimizedGeomDefinition=G,H.attributes=k.attributes||{},H._layer=B,H._datesfixed=!1,H}static createFromArcadeDictionary(k){const B=new $;return B.attributes=k.field("attributes"),null!==B.attributes&&B.attributes instanceof z.Z?(B.attributes=B.attributes.attributes,null===B.attributes&&(B.attributes={})):B.attributes={},B._geometry=k.field("geometry"),null!==B._geometry&&(B._geometry instanceof z.Z?B._geometry=$.parseGeometryFromDictionary(B._geometry):B._geometry instanceof f.Z||(B._geometry=null)),B}static createFromGraphicLikeObject(k,B,G=null){const H=new $;return null===B&&(B={}),H.attributes=B,H._geometry=(0,F.pC)(k)?k:null,H._layer=G,H._layer&&(H._datesfixed=!1),H}repurposeFromGraphicLikeObject(k,B,G=null){null===B&&(B={}),this.attributes=B,this._geometry=k||null,this._layer=G,this._datesfixed=!this._layer}castToText(k=!1){let B="";!1===this._datesfixed&&this._fixDates();for(const G in this.attributes){""!==B&&(B+=",");const H=this.attributes[G];null==H?B+=JSON.stringify(G)+":null":(0,E.a)(H)||(0,E.b)(H)||(0,E.c)(H)?B+=JSON.stringify(G)+":"+JSON.stringify(H):H instanceof f.Z?B+=JSON.stringify(G)+":"+(0,E.t)(H):H instanceof R.Z||H instanceof Array?B+=JSON.stringify(G)+":"+(0,E.t)(H,null,k):H instanceof Date?B+=k?JSON.stringify(G)+":"+JSON.stringify(H.getTime()):JSON.stringify(G)+":"+JSON.stringify(H):null!==H&&"object"==typeof H&&void 0!==H.castToText&&(B+=JSON.stringify(G)+":"+H.castToText(k))}return'{"geometry":'+(null===this.geometry()?"null":(0,E.t)(this.geometry()))+',"attributes":{'+B+"}}"}_fixDates(){if(null!==this._datefields)return this._datefields.length>0&&this._fixDateFields(this._datefields),void(this._datesfixed=!0);const k=[],B=this._layer.fields;for(let G=0;G0&&this._fixDateFields(k),this._datesfixed=!0}_fixDateFields(k){this.attributes={...this.attributes};for(let B=0;B{Z.d(De,{Bx:()=>E,Rm:()=>z,Vg:()=>f,aq:()=>R});var M=Z(10699);class z{constructor(){}}function R(K,Q,b){if(K instanceof z&&!(K instanceof f)){const F=new f;return F.fn=K,F.parameterEvaluator=b,F.context=Q,F}return K}class E extends z{constructor(Q){super(),this.fn=Q}createFunction(Q){return(...b)=>this.fn(Q,{preparsed:!0,arguments:b})}call(Q,b){return this.fn(Q,b)}marshalledCall(Q,b,F,W){return W(Q,b,($,A,k)=>{k=k.map(G=>G instanceof z&&!(G instanceof f)?R(G,Q,W):G);const B=this.call(F,{args:k});return(0,M.y8)(B)?B.then(G=>R(G,F,W)):B})}}class f extends z{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(Q){return this.fn.createFunction(this.context)}call(Q,b){return this.fn.marshalledCall(Q,b,this.context,this.parameterEvaluator)}marshalledCall(Q,b,F){return this.fn.marshalledCall(Q,b,this.context,this.parameterEvaluator)}}},98362:(Ve,De,Z)=>{Z.d(De,{Z:()=>M});class M{constructor(R=[]){this._elements=R}length(){return this._elements.length}get(R){return this._elements[R]}toArray(){const R=[];for(let E=0;E{Z.d(De,{Z:()=>R});var M=Z(98362),z=Z(26685);class R extends M.Z{constructor(f,K,Q,b,F){super(f),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=Q,this._hasM=b,this._spRef=K,this._cacheId=F}get(f){if(void 0===this._lazyPath[f]){const K=this._elements[f];if(void 0===K)return;this._lazyPath[f]=new z.Z(K,this._spRef,this._hasZ,this._hasM,this._cacheId,f)}return this._lazyPath[f]}equalityTest(f){return f===this||null!==f&&f instanceof R&&f.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},26685:(Ve,De,Z)=>{Z.d(De,{Z:()=>R});var M=Z(98362),z=Z(72642);class R extends M.Z{constructor(f,K,Q,b,F,W){super(f),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=K,this._hasZ=Q,this._hasM=b,this._cacheId=F,this._partId=W}get(f){if(void 0===this._lazyPt[f]){const K=this._elements[f];if(void 0===K)return;const Q=this._hasZ,b=this._hasM;let F=null;F=Q&&!b?new z.Z(K[0],K[1],K[2],void 0,this._spRef):b&&!Q?new z.Z(K[0],K[1],void 0,K[2],this._spRef):Q&&b?new z.Z(K[0],K[1],K[2],K[3],this._spRef):new z.Z(K[0],K[1],this._spRef),F.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+f.toString(),this._lazyPt[f]=F}return this._lazyPt[f]}equalityTest(f){return f===this||null!==f&&f instanceof R&&f.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},25919:(Ve,De,Z)=>{var M,G;Z.d(De,{Hy:()=>F,OF:()=>Q,TD:()=>$,Tu:()=>k,VO:()=>W,aV:()=>f,kq:()=>b,rH:()=>M}),(G=M||(M={})).AsyncNotEnabled="AsyncNotEnabled",G.ModulesNotSupported="ModulesNotSupported",G.CircularModules="CircularModules",G.NeverReach="NeverReach",G.UnsupportedHashType="UnsupportedHashType",G.InvalidParameter="InvalidParameter",G.UnexpectedToken="UnexpectedToken",G.Unrecognised="Unrecognised",G.UnrecognisedType="UnrecognisedType",G.MaximumCallDepth="MaximumCallDepth",G.BooleanConditionRequired="BooleanConditionRequired",G.TypeNotAllowedInFeature="TypeNotAllowedInFeature",G.KeyMustBeString="KeyMustBeString",G.WrongNumberOfParameters="WrongNumberOfParameters",G.CallNonFunction="CallNonFunction",G.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral",G.NoFunctionInDictionary="NoFunctionInDictionary",G.NoFunctionInArray="NoFunctionInArray",G.AssignModuleFunction="AssignModuleFunction",G.LogicExpressionOrAnd="LogicExpressionOrAnd",G.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean",G.FuncionNotFound="FunctionNotFound",G.InvalidMemberAccessKey="InvalidMemberAccessKey",G.UnsupportedUnaryOperator="UnsupportUnaryOperator",G.InvalidIdentifier="InvalidIdentifier",G.MemberOfNull="MemberOfNull",G.UnsupportedOperator="UnsupportedOperator",G.Cancelled="Cancelled",G.ModuleAccessorMustBeString="ModuleAccessorMustBeString",G.ModuleExportNotFound="ModuleExportNotFound",G.Immutable="Immutable",G.OutOfBounds="OutOfBounds",G.IllegalResult="IllegalResult",G.FieldNotFound="FieldNotFound",G.PortalRequired="PortalRequired",G.LogicError="LogicError",G.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber",G.KeyAccessorMustBeString="KeyAccessorMustBeString",G.WrongSpatialReference="WrongSpatialReference";const z={[M.TypeNotAllowedInFeature]:"Feature attributes only support dates, numbers, strings, guids.",[M.LogicError]:"Logic error - {reason}",[M.NeverReach]:"Encountered unreachable logic",[M.AsyncNotEnabled]:"Async Arcade must be enabled for this script",[M.ModuleAccessorMustBeString]:"Module accessor must be a string",[M.ModuleExportNotFound]:"Module has no export with provided identifier",[M.ModulesNotSupported]:"Current profile does not support modules",[M.ArrayAccessorMustBeNumber]:"Array accessor must be a number",[M.FuncionNotFound]:"Function not found",[M.FieldNotFound]:"Key not found - {key}",[M.CircularModules]:"Circular module dependencies are not allowed",[M.Cancelled]:"Execution cancelled",[M.UnsupportedHashType]:"Type not supported in hash function",[M.IllegalResult]:"Value is not a supported return type",[M.PortalRequired]:"Portal is required",[M.InvalidParameter]:"Invalid parameter",[M.WrongNumberOfParameters]:"Call with wrong number of parameters",[M.Unrecognised]:"Unrecognised code structure",[M.UnrecognisedType]:"Unrecognised type",[M.WrongSpatialReference]:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",[M.BooleanConditionRequired]:"Conditions must use booleans",[M.NoFunctionInDictionary]:"Dictionaries cannot contain functions.",[M.NoFunctionInArray]:"Arrays cannot contain functions.",[M.NoFunctionInTemplateLiteral]:"Template Literals do not expect functions by value.",[M.KeyAccessorMustBeString]:"Accessor must be a string",[M.KeyMustBeString]:"Object keys must be a string",[M.Immutable]:"Object is immutable",[M.InvalidParameter]:"Invalid parameter",[M.UnexpectedToken]:"Unexpected token",[M.MemberOfNull]:"Cannot access property of null object",[M.MaximumCallDepth]:"Exceeded maximum function depth",[M.OutOfBounds]:"Out of bounds",[M.InvalidIdentifier]:"Identifier not recognised",[M.FuncionNotFound]:"Function not found",[M.CallNonFunction]:"Expression is not a function",[M.InvalidMemberAccessKey]:"Cannot access value using a key of this type",[M.AssignModuleFunction]:"Cannot assign function to module variable",[M.UnsupportedUnaryOperator]:"Unsupported unary operator",[M.UnsupportedOperator]:"Unsupported operator",[M.LogicalExpressionOnlyBoolean]:"Logical expressions must be boolean",[M.LogicExpressionOrAnd]:"Logical expression can only be combined with || or &&"};class R extends Error{constructor(...H){super(...H)}}class E extends R{constructor(H,C){super(K(C)+H.message,{cause:H}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,E),C&&C.loc&&(this.loc=C.loc)}}class f extends Error{constructor(H,C,L,S){super("Execution error - "+K(L)+F(z[C],S)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,f),L&&L.loc&&(this.loc=L.loc)}}function K(G){return G&&G.loc?`Line : ${G.loc.start?.line}, ${G.loc.start?.column}: `:""}class Q extends Error{constructor(H,C,L,S){super("Compilation error - "+K(L)+F(z[C],S)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,Q),L&&L.loc&&(this.loc=L.loc)}}class b extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,b)}}function F(G,H){try{if(!H)return G;for(const C in H){let L=H[C];L||(L=""),G=G.replace("{"+C+"}",H[C])}}catch{}return G}function W(G,H,C){return"esri.arcade.arcadeexecutionerror"===C.declaredRootClass||"esri.arcade.arcadecompilationerror"===C.declaredRootClass?null===C.loc&&H&&H.loc?new E(C,{cause:C}):C:H&&H.loc?new E(C,{cause:C}):C}var $;!function(G){G.UnrecognisedUri="UnrecognisedUri",G.UnsupportedUriProtocol="UnsupportedUriProtocol"}($||($={}));const A={[$.UnrecognisedUri]:"Unrecognised uri - {uri}",[$.UnsupportedUriProtocol]:"Unrecognised uri protocol"};class k extends Error{constructor(H,C){super(F(A[H],C)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,k)}}},77132:(Ve,De,Z)=>{Z.d(De,{Bj:()=>R,EI:()=>B,HD:()=>Q,JW:()=>f,Lz:()=>H,Qk:()=>g,SV:()=>G,Sh:()=>K,US:()=>V,dj:()=>E,hd:()=>l,hj:()=>F,q2:()=>y,tI:()=>L,tt:()=>A,yE:()=>w});var R,E,x,M=Z(2004),z=Z(36255);function f(x){return z.Z.fromJSON(x.toJSON())}function K(x){return x.toJSON?x.toJSON():x}function Q(x){return"string"==typeof x||x instanceof String}function F(x){return"number"==typeof x}function $(x){return x instanceof Date}function A(x,j){return x===j||!(!$(x)||!$(j))&&x.getTime()===j.getTime()}function B(x){if(null==x)return null;if("number"==typeof x)return x;switch(x.toLowerCase()){case"meters":case"meter":return 109404;case"miles":case"mile":return 109439;case"kilometers":case"kilometer":case"km":return 109414}return null}function G(x){if(null==x)return null;switch(x.type){case"polygon":case"multipoint":case"polyline":return x.extent;case"point":return new M.Z({xmin:x.x,ymin:x.y,xmax:x.x,ymax:x.y,spatialReference:x.spatialReference});case"extent":return x}return null}function H(x){if(null==x)return null;if("number"==typeof x||"number"==typeof x)return x;switch(x.toLowerCase()){case"meters":case"meter":return 9001;case"miles":case"mile":return 9093;case"kilometers":case"kilometer":case"km":return 9036}return null}(x=R||(R={}))[x.Standardised=0]="Standardised",x[x.StandardisedNoInterval=1]="StandardisedNoInterval",x[x.SqlServer=2]="SqlServer",x[x.Oracle=3]="Oracle",x[x.Postgres=4]="Postgres",x[x.PGDB=5]="PGDB",x[x.FILEGDB=6]="FILEGDB",x[x.NotEvaluated=7]="NotEvaluated",function(x){x[x.InFeatureSet=0]="InFeatureSet",x[x.NotInFeatureSet=1]="NotInFeatureSet",x[x.Unknown=2]="Unknown"}(E||(E={}));const L=1e3,g={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},y={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},w={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"eesriFieldTypeXML",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"eesriFieldTypeXML"};function V(x){return void 0===x?"":x=(x=(x=x.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function l(x,j){j||(j={}),"function"==typeof j&&(j={cmp:j});const X="boolean"==typeof j.cycles&&j.cycles,oe=j.cmp&&(me=j.cmp,function(Fe){return function(se,de){return me({key:se,value:Fe[se]},{key:de,value:Fe[de]})}});var me;const fe=[];return function Fe(se){if(se&&se.toJSON&&"function"==typeof se.toJSON&&(se=se.toJSON()),void 0===se)return;if("number"==typeof se)return isFinite(se)?""+se:"null";if("object"!=typeof se)return JSON.stringify(se);let de,ie;if(Array.isArray(se)){for(ie="[",de=0;de{Z.d(De,{AW:()=>R,Ay:()=>k,B9:()=>S,Es:()=>y,RI:()=>L,_R:()=>K,nB:()=>U,s9:()=>A,ws:()=>g});var M=Z(72642),z=Z(11519);function R(V,l,x){return Math.sqrt((V[0]-l[0])**2+(V[1]-l[1])**2+(void 0!==V[2]&&void 0!==l[2]?(V[2]*x-l[2]*x)**2:0))}const E=[];for(const V of[[9002,56146130,6131,6132,8050,8051,8228],[9003,5702,6358,6359,6360,8052,8053],[9095,5754]]){const l=V[0];for(let x=1;x0?(j.x/=X,j.y/=X,l&&(j.z/=X),x&&(j.m/=X)):(j.x=V[0][0],j.y=V[0][1],l&&(j.z=V[0][2]),x&&l?j.m=V[0][3]:x&&(j.m=V[0][2])),j}function b(V,l,x,j){const X={x:(V[0]+l[0])/2,y:(V[1]+l[1])/2};return x&&(X.z=(V[2]+l[2])/2),x&&j?X.m=(V[3]+l[3])/2:j&&(X.m=(V[2]+l[2])/2),X}function F(V,l){if(V.length<=1)return 0;let x=0;for(let j=1;j0?(x.x/=X,x.y/=X,!0===V.hasZ&&(x.z/=X),!0===V.hasM&&(x.m/=X),new M.Z(x)):j>0?(l.x/=j,l.y/=j,!0===V.hasZ&&(x.z/=j),!0===V.hasM&&(l.m/=j),new M.Z(l)):null}function k(V){if(0===V.points.length)return null;let l=0,x=0,j=0,X=0;for(let me=0;me=j;)V-=l;return V}function C(V,l){return Math.atan2(l.y-V.y,l.x-V.x)}function L(V,l){return H(C(V,l),2*Math.PI)*(180/Math.PI)}function S(V,l){return H(Math.PI/2-C(V,l),2*Math.PI)*(180/Math.PI)}function c(V,l,x){const j={x:V.x-l.x,y:V.y-l.y},X={x:x.x-l.x,y:x.y-l.y};return Math.atan2(function G(V,l){return V.x*l.y-l.x*V.y}(j,X),function B(V,l){return V.x*l.x+V.y*l.y}(j,X))}function g(V,l,x){return H(c(V,l,x),2*Math.PI)*(180/Math.PI)}function y(V,l,x){return H(-1*c(V,l,x),2*Math.PI)*(180/Math.PI)}f[9002]=.3048,f[9003]=.3048006096012192,f[9095]=.3048007491;const w=[0,0];function U(V){for(let l=0;l{Z.d(De,{r:()=>k});var M=Z(47562),z=Z(25919),R=Z(56683),E=Z(21837);function f(B){const G=new Date(B.getTime()),H=G.getFullYear(),C=new Date(0);C.setFullYear(H+1,0,4),C.setHours(0,0,0,0);const L=K(C),S=new Date(0);S.setFullYear(H,0,4),S.setHours(0,0,0,0);const c=K(S);return G.getTime()>=L.getTime()?H+1:G.getTime()>=c.getTime()?H:H-1}function K(B){const H=new Date(B.getTime()),C=H.getDay(),L=(C<1?7:0)+C-1;return H.setDate(H.getDate()-L),H.setHours(0,0,0,0),H}const W=[0,31,59,90,120,151,181,212,243,273,304,334],$=[0,31,60,91,121,152,182,213,244,274,305,335];function A(B){return null===B?B:isNaN(B.getTime())?null:B}function k(B,G){B.today=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,0,0,H,C);const g=new Date;return g.setHours(0,0,0,0),g})},B.now=function(H,C){return G(H,C,(L,S,c)=>((0,M.y)(c,0,0,H,C),new Date))},B.timestamp=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,0,0,H,C);let g=new Date;return g=new Date(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),g})},B.toutc=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?null:new Date(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds())})},B.tolocal=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?null:E.ou.utc(g.getFullYear(),g.getMonth()+1,g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds()).toJSDate()})},B.day=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getDate()})},B.month=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getMonth()})},B.year=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getFullYear()})},B.hour=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getHours()})},B.second=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getSeconds()})},B.millisecond=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getMilliseconds()})},B.minute=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getMinutes()})},B.week=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,2,H,C);const g=(0,M.l)(c[0]);if(null===g)return NaN;const y=(0,M.g)((0,M.A)(c[1],0));if(y<0||y>6)throw new z.aV(H,z.rH.InvalidParameter,C);const w=g.getDate(),U=g.getMonth(),V=g.getFullYear(),l=g.getDay(),x=function b(B,G,H){return B+(function F(B){return B%4==0&&(B%100!=0||B%400==0)}(H)?$:W)[G]}(w,U,V)-1,j=Math.floor(x/7);return l-y+(l-y<0?7:0){(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getDay()})},B.isoweekday=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);if(null===g)return NaN;let y=g.getDay();return 0===y&&(y=7),y})},B.isomonth=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:g.getMonth()+1})},B.isoweek=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);if(null===g)return NaN;const y=K(g).getTime()-function Q(B){const G=f(B),H=new Date(0);return H.setFullYear(G,0,4),H.setHours(0,0,0,0),K(H)}(g).getTime();return Math.round(y/6048e5)+1})},B.isoyear=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,1,1,H,C);const g=(0,M.l)(c[0]);return null===g?NaN:f(g)})},B.date=function(H,C){return G(H,C,(L,S,c)=>{if((0,M.y)(c,0,7,H,C),3===c.length)return A(new Date((0,M.g)(c[0]),(0,M.g)(c[1]),(0,M.g)(c[2]),0,0,0,0));if(4===c.length)return A(new Date((0,M.g)(c[0]),(0,M.g)(c[1]),(0,M.g)(c[2]),(0,M.g)(c[3]),0,0,0));if(5===c.length)return A(new Date((0,M.g)(c[0]),(0,M.g)(c[1]),(0,M.g)(c[2]),(0,M.g)(c[3]),(0,M.g)(c[4]),0,0));if(6===c.length)return A(new Date((0,M.g)(c[0]),(0,M.g)(c[1]),(0,M.g)(c[2]),(0,M.g)(c[3]),(0,M.g)(c[4]),(0,M.g)(c[5]),0));if(7===c.length)return A(new Date((0,M.g)(c[0]),(0,M.g)(c[1]),(0,M.g)(c[2]),(0,M.g)(c[3]),(0,M.g)(c[4]),(0,M.g)(c[5]),(0,M.g)(c[6])));if(2===c.length){let g,y=(0,M.j)(c[1]);return""===y?null:(y=(0,M.C)(y),g="X"===y?E.ou.fromSeconds((0,M.g)(c[0])):"x"===y?E.ou.fromMillis((0,M.g)(c[0])):E.ou.fromFormat((0,M.j)(c[0]),y,{locale:(0,R.Kd)(),numberingSystem:"latn"}),g.isValid?g.toJSDate():null)}if(1===c.length){if((0,M.c)(c[0])){if(""===c[0].replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))return null;if(!0===/^[0-9][0-9][0-9][0-9]$/.test(c[0]))return(0,M.l)(c[0]+"-01-01")}const g=(0,M.g)(c[0]);return!1===isNaN(g)?A(new Date(g)):(0,M.l)(c[0])}return 0===c.length?new Date:void 0})},B.datediff=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,2,3,H,C);const g=(0,M.D)(c[0]),y=(0,M.D)(c[1]);if(null===g||null===y)return NaN;switch((0,M.j)(c[2]).toLowerCase()){case"days":case"day":case"d":return g.diff(y,"days").days;case"months":case"month":return g.diff(y,"months").months;case"minutes":case"minute":case"m":return"M"===c[2]?g.diff(y,"months").months:g.diff(y,"minutes").minutes;case"seconds":case"second":case"s":return g.diff(y,"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return g.diff(y).milliseconds;case"hours":case"hour":case"h":return g.diff(y,"hours").hours;case"years":case"year":case"y":return g.diff(y,"years").years}})},B.dateadd=function(H,C){return G(H,C,(L,S,c)=>{(0,M.y)(c,2,3,H,C);const g=(0,M.D)(c[0]);if(null===g)return null;let y=(0,M.g)(c[1]);if(isNaN(y))return g.toJSDate();let w="milliseconds";switch((0,M.j)(c[2]).toLowerCase()){case"days":case"day":case"d":w="days",y=(0,M.E)(y);break;case"months":case"month":w="months",y=(0,M.E)(y);break;case"minutes":case"minute":case"m":w="M"===c[2]?"months":"minutes";break;case"seconds":case"second":case"s":w="seconds";break;case"milliseconds":case"millisecond":case"ms":w="milliseconds";break;case"hours":case"hour":case"h":w="hours";break;case"years":case"year":case"y":w="years"}return g.plus({[w]:y}).toJSDate()})}}},50818:(Ve,De,Z)=>{Z.d(De,{t:()=>Q});var M=Z(47562);function z(b){let F=0;for(let W=0;W=F&&-1!==F)return W}return W}(F,W);case"avg":case"mean":return z((0,M.V)(F));case"min":return Math.min.apply(Math,(0,M.V)(F));case"sum":return function E(b){let F=0;for(let W=0;W{Z.d(De,{Z:()=>S,r:()=>C});var M=Z(6729),z=Z(42275),R=Z(26685),E=Z(47562),f=Z(2004),K=Z(21674),Q=Z(72854),b=Z(72642),F=Z(37118),W=Z(55214),$=Z(85692),A=Z(91179),k=Z(25919),B=Z(5371),G=Z(25748);function H(c){return c&&"esri.arcade.Feature"===c.arcadeDeclaredClass}function C(c,g){c.ringisclockwise=function(y,w){return g(y,w,(U,V,l)=>{(0,E.y)(l,1,1,y,w);let x=[],j=!1,X=!1;if(null===l[0])return!1;if((0,E.m)(l[0])){for(const oe of l[0]){if(!(oe instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);x.push(oe.hasZ?oe.hasM?[oe.x,oe.y,oe.z,oe.m]:[oe.x,oe.y,oe.z]:[oe.x,oe.y])}x.length>0&&(j=l[0][0].hasZ,X=l[0][0].hasM)}else if(l[0]instanceof R.Z)x=l[0]._elements,x.length>0&&(j=l[0]._hasZ,X=l[0]._hasM);else{if(!(0,E.x)(l[0]))throw new k.aV(y,k.rH.InvalidParameter,w);for(const oe of l[0].toArray()){if(!(oe instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);x.push(oe.hasZ?oe.hasM?[oe.x,oe.y,oe.z,oe.m]:[oe.x,oe.y,oe.z]:[oe.x,oe.y])}x.length>0&&(j=l[0].get(0).hasZ,X=l[0].get(0).hasM)}return!(x.length<3)&&(0,G.bu)(x,X,j)})},c.polygon=function(y,w){return g(y,w,(U,V,l)=>{(0,E.y)(l,1,1,y,w);let x=null;if(l[0]instanceof M.Z){if(x=(0,E.q)(z.Z.parseGeometryFromDictionary(l[0]),y.spatialReference),!(x instanceof F.Z))throw new k.aV(y,k.rH.InvalidParameter,w)}else x=l[0]instanceof F.Z?(0,A.im)(l[0].toJSON()):(0,E.q)(new F.Z(JSON.parse(l[0])),y.spatialReference);if(null!==x&&!1===x.spatialReference.equals(y.spatialReference))throw new k.aV(y,k.rH.WrongSpatialReference,w);return(0,E.F)(x)})},c.polyline=function(y,w){return g(y,w,(U,V,l)=>{(0,E.y)(l,1,1,y,w);let x=null;if(l[0]instanceof M.Z){if(x=(0,E.q)(z.Z.parseGeometryFromDictionary(l[0]),y.spatialReference),!(x instanceof W.Z))throw new k.aV(y,k.rH.InvalidParameter,w)}else x=l[0]instanceof W.Z?(0,A.im)(l[0].toJSON()):(0,E.q)(new W.Z(JSON.parse(l[0])),y.spatialReference);if(null!==x&&!1===x.spatialReference.equals(y.spatialReference))throw new k.aV(y,k.rH.WrongSpatialReference,w);return(0,E.F)(x)})},c.point=function(y,w){return g(y,w,(U,V,l)=>{(0,E.y)(l,1,1,y,w);let x=null;if(l[0]instanceof M.Z){if(x=(0,E.q)(z.Z.parseGeometryFromDictionary(l[0]),y.spatialReference),!(x instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w)}else x=l[0]instanceof b.Z?(0,A.im)(l[0].toJSON()):(0,E.q)(new b.Z(JSON.parse(l[0])),y.spatialReference);if(null!==x&&!1===x.spatialReference.equals(y.spatialReference))throw new k.aV(y,k.rH.WrongSpatialReference,w);return(0,E.F)(x)})},c.multipoint=function(y,w){return g(y,w,(U,V,l)=>{(0,E.y)(l,1,1,y,w);let x=null;if(l[0]instanceof M.Z){if(x=(0,E.q)(z.Z.parseGeometryFromDictionary(l[0]),y.spatialReference),!(x instanceof Q.Z))throw new k.aV(y,k.rH.InvalidParameter,w)}else x=l[0]instanceof Q.Z?(0,A.im)(l[0].toJSON()):(0,E.q)(new Q.Z(JSON.parse(l[0])),y.spatialReference);if(null!==x&&!1===x.spatialReference.equals(y.spatialReference))throw new k.aV(y,k.rH.WrongSpatialReference,w);return(0,E.F)(x)})},c.extent=function(y,w){return g(y,w,(U,V,l)=>{l=(0,E.G)(l),(0,E.y)(l,1,1,y,w);let x=null;if(l[0]instanceof M.Z)x=(0,E.q)(z.Z.parseGeometryFromDictionary(l[0]),y.spatialReference);else if(l[0]instanceof b.Z){const j={xmin:l[0].x,ymin:l[0].y,xmax:l[0].x,ymax:l[0].y,spatialReference:l[0].spatialReference.toJSON()},X=l[0];X.hasZ?(j.zmin=X.z,j.zmax=X.z):X.hasM&&(j.mmin=X.m,j.mmax=X.m),x=(0,A.im)(j)}else x=l[0]instanceof F.Z||l[0]instanceof W.Z||l[0]instanceof Q.Z?(0,A.im)(l[0].extent?.toJSON()):l[0]instanceof f.Z?(0,A.im)(l[0].toJSON()):(0,E.q)(new f.Z(JSON.parse(l[0])),y.spatialReference);if(null!==x&&!1===x.spatialReference.equals(y.spatialReference))throw new k.aV(y,k.rH.WrongSpatialReference,w);return(0,E.F)(x)})},c.geometry=function(y,w){return g(y,w,(U,V,l)=>{(0,E.y)(l,1,1,y,w);let x=null;if(null===l[0])return null;if(x=H(l[0])?(0,E.q)(l[0].geometry(),y.spatialReference):(0,E.q)(l[0]instanceof M.Z?z.Z.parseGeometryFromDictionary(l[0]):(0,A.im)(JSON.parse(l[0])),y.spatialReference),null!==x&&!1===x.spatialReference.equals(y.spatialReference))throw new k.aV(y,k.rH.WrongSpatialReference,w);return(0,E.F)(x)})},c.setgeometry=function(y,w){return g(y,w,(U,V,l)=>{if((0,E.y)(l,2,2,y,w),!H(l[0]))throw new k.aV(y,k.rH.InvalidParameter,w);if(!0===l[0].immutable)throw new k.aV(y,k.rH.Immutable,w);if(!(l[1]instanceof K.Z||null===l[1]))throw new k.aV(y,k.rH.InvalidParameter,w);return l[0]._geometry=l[1],E.v})},c.feature=function(y,w){return g(y,w,(U,V,l)=>{if(0===l.length)throw new k.aV(y,k.rH.WrongNumberOfParameters,w);let x=null;if(1===l.length)if((0,E.c)(l[0]))x=z.Z.fromJson(JSON.parse(l[0]));else if(H(l[0]))x=z.Z.createFromArcadeFeature(l[0]);else if(l[0]instanceof K.Z)x=z.Z.createFromGraphicLikeObject(l[0],null,null);else{if(!(l[0]instanceof M.Z))throw new k.aV(y,k.rH.InvalidParameter,w);{let j=l[0].hasField("geometry")?l[0].field("geometry"):null,X=l[0].hasField("attributes")?l[0].field("attributes"):null;null!==j&&j instanceof M.Z&&(j=z.Z.parseGeometryFromDictionary(j)),null!==X&&(X=z.Z.parseAttributesFromDictionary(X)),x=z.Z.createFromGraphicLikeObject(j,X,null)}}else if(2===l.length){let j=null,X=null;if(null!==l[0])if(l[0]instanceof K.Z)j=l[0];else{if(!(j instanceof M.Z))throw new k.aV(y,k.rH.InvalidParameter,w);j=z.Z.parseGeometryFromDictionary(l[0])}if(null!==l[1]){if(!(l[1]instanceof M.Z))throw new k.aV(y,k.rH.InvalidParameter,w);X=z.Z.parseAttributesFromDictionary(l[1])}x=z.Z.createFromGraphicLikeObject(j,X,null)}else{let j=null;const X={};if(null!==l[0])if(l[0]instanceof K.Z)j=l[0];else{if(!(j instanceof M.Z))throw new k.aV(y,k.rH.InvalidParameter,w);j=z.Z.parseGeometryFromDictionary(l[0])}for(let oe=1;oe{if(0===l.length){const X=new M.Z;return X.immutable=!1,X}if(1===l.length&&(0,E.c)(l[0]))try{const X=JSON.parse(l[0]),oe=M.Z.convertObjectToArcadeDictionary(X,!1);return oe.immutable=!1,oe}catch{throw new k.aV(y,k.rH.InvalidParameter,w)}if(l.length%2!=0)throw new k.aV(y,k.rH.WrongNumberOfParameters,w);const x={};for(let X=0;X{(0,E.y)(l,2,2,y,w);const x=(0,E.j)(l[1]);if(H(l[0])||l[0]instanceof M.Z)return l[0].hasField(x);if(l[0]instanceof K.Z){const j=S(l[0],x,null,null,2);return!j||"notfound"!==j.keystate}throw new k.aV(y,k.rH.InvalidParameter,w)})},c.hasvalue=function(y,w){return g(y,w,(U,V,l)=>{if((0,E.y)(l,2,2,y,w),null===l[0]||null===l[1])return!1;const x=(0,E.j)(l[1]);return(0,E.w)(l[0])||l[0]instanceof M.Z?!!l[0].hasField(x)&&null!==l[0].field(x):l[0]instanceof K.Z&&null!==S(l[0],x,null,null,0)})},c.indexof=function(y,w){return g(y,w,(U,V,l)=>{(0,E.y)(l,2,2,y,w);const x=l[1];if((0,E.m)(l[0])){for(let j=0;j{if(l=(0,E.G)(l),(0,E.y)(l,2,3,y,w),!(l[0]instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);if(!(l[1]instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);if(l.length>2&&!(l[2]instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);return 2===l.length?(0,$.RI)(l[0],l[1]):(0,$.ws)(l[0],l[1],l[2])})},c.bearing=function(y,w){return g(y,w,(U,V,l)=>{if(l=(0,E.G)(l),(0,E.y)(l,2,3,y,w),!(l[0]instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);if(!(l[1]instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);if(l.length>2&&!(l[2]instanceof b.Z))throw new k.aV(y,k.rH.InvalidParameter,w);return 2===l.length?(0,$.B9)(l[0],l[1]):(0,$.Es)(l[0],l[1],l[2])})},c.isselfintersecting=function(y,w){return g(y,w,(U,V,l)=>{l=(0,E.G)(l),(0,E.y)(l,1,1,y,w);let x=l[0];if(x instanceof F.Z)return x.isSelfIntersecting;if(x instanceof W.Z)return x=x.paths,(0,$.nB)(x);if(x instanceof Q.Z){const j=x.points;for(let X=0;X{Z.r(De),Z.d(De,{registerFunctions:()=>L,setGeometryEngine:()=>H});var M=Z(24263),z=Z(27187),R=Z(47562),E=Z(85692),f=Z(2004),K=Z(21674),Q=Z(72854),b=Z(72642),F=Z(37118),W=Z(55214),$=Z(91179),A=Z(25919),k=Z(16730);let B=null;function G(S){return 0===M.i8.indexOf("4.")?F.Z.fromExtent(S):new F.Z({spatialReference:S.spatialReference,rings:[[[S.xmin,S.ymin],[S.xmin,S.ymax],[S.xmax,S.ymax],[S.xmax,S.ymin],[S.xmin,S.ymin]]]})}function H(S){B=S}function C(S,c){if("polygon"!==S.type&&"polyline"!==S.type&&"extent"!==S.type)return 0;let g=1;(S.spatialReference.vcsWkid||S.spatialReference.latestVcsWkid)&&(g=(0,E._R)(S.spatialReference)/(0,k.c9)(S.spatialReference));let y=0;if("polyline"===S.type)for(const U of S.paths)for(let V=1;V(l=(0,R.G)(l),g(y,w,l),null===l[0]||null===l[1]||B.disjoint(l[0],l[1])))},S.intersects=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null!==l[0]&&null!==l[1]&&B.intersects(l[0],l[1])))},S.touches=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null!==l[0]&&null!==l[1]&&B.touches(l[0],l[1])))},S.crosses=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null!==l[0]&&null!==l[1]&&B.crosses(l[0],l[1])))},S.within=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null!==l[0]&&null!==l[1]&&B.within(l[0],l[1])))},S.contains=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null!==l[0]&&null!==l[1]&&B.contains(l[0],l[1])))},S.overlaps=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null!==l[0]&&null!==l[1]&&B.overlaps(l[0],l[1])))},S.equals=function(y,w){return c(y,w,(U,V,l)=>((0,R.y)(l,2,2,y,w),l[0]===l[1]||(l[0]instanceof K.Z&&l[1]instanceof K.Z?B.equals(l[0],l[1]):!(!(0,R.k)(l[0])||!(0,R.k)(l[1]))&&l[0].getTime()===l[1].getTime())))},S.relate=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,3,3,y,w),l[0]instanceof K.Z&&l[1]instanceof K.Z)return B.relate(l[0],l[1],(0,R.j)(l[2]));if(l[0]instanceof K.Z&&null===l[1]||l[1]instanceof K.Z&&null===l[0]||null===l[0]&&null===l[1])return!1;throw new A.aV(y,A.rH.InvalidParameter,w)})},S.intersection=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null===l[0]||null===l[1]?null:B.intersect(l[0],l[1])))},S.union=function(y,w){return c(y,w,(U,V,l)=>{const x=[];if(0===(l=(0,R.G)(l)).length)throw new A.aV(y,A.rH.WrongNumberOfParameters,w);if(1===l.length)if((0,R.m)(l[0])){const j=(0,R.G)(l[0]);for(let X=0;X(l=(0,R.G)(l),g(y,w,l),null!==l[0]&&null===l[1]?(0,z.r1)(l[0]):null===l[0]?null:B.difference(l[0],l[1])))},S.symmetricdifference=function(y,w){return c(y,w,(U,V,l)=>(l=(0,R.G)(l),g(y,w,l),null===l[0]&&null===l[1]?null:null===l[0]?(0,z.r1)(l[1]):null===l[1]?(0,z.r1)(l[0]):B.symmetricDifference(l[0],l[1])))},S.clip=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,2,y,w),!(l[1]instanceof f.Z)&&null!==l[1])throw new A.aV(y,A.rH.InvalidParameter,w);if(null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return null===l[1]?null:B.clip(l[0],l[1])})},S.cut=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,2,y,w),!(l[1]instanceof W.Z)&&null!==l[1])throw new A.aV(y,A.rH.InvalidParameter,w);if(null===l[0])return[];if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return null===l[1]?[(0,z.r1)(l[0])]:B.cut(l[0],l[1])})},S.area=function(y,w){return c(y,w,(U,V,l)=>{if((0,R.y)(l,1,2,y,w),null===(l=(0,R.G)(l))[0])return 0;if((0,R.m)(l[0])||(0,R.x)(l[0])){const x=(0,R.J)(l[0],y.spatialReference);return null===x?0:B.planarArea(x,(0,z.EI)((0,R.A)(l[1],-1)))}if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.planarArea(l[0],(0,z.EI)((0,R.A)(l[1],-1)))})},S.areageodetic=function(y,w){return c(y,w,(U,V,l)=>{if((0,R.y)(l,1,2,y,w),null===(l=(0,R.G)(l))[0])return 0;if((0,R.m)(l[0])||(0,R.x)(l[0])){const x=(0,R.J)(l[0],y.spatialReference);return null===x?0:B.geodesicArea(x,(0,z.EI)((0,R.A)(l[1],-1)))}if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.geodesicArea(l[0],(0,z.EI)((0,R.A)(l[1],-1)))})},S.length=function(y,w){return c(y,w,(U,V,l)=>{if((0,R.y)(l,1,2,y,w),null===(l=(0,R.G)(l))[0])return 0;if((0,R.m)(l[0])||(0,R.x)(l[0])){const x=(0,R.H)(l[0],y.spatialReference);return null===x?0:B.planarLength(x,(0,z.Lz)((0,R.A)(l[1],-1)))}if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.planarLength(l[0],(0,z.Lz)((0,R.A)(l[1],-1)))})},S.length3d=function(y,w){return c(y,w,(U,V,l)=>{if((0,R.y)(l,1,2,y,w),null===(l=(0,R.G)(l))[0])return 0;if((0,R.m)(l[0])||(0,R.x)(l[0])){const x=(0,R.H)(l[0],y.spatialReference);return null===x?0:!0===x.hasZ?C(x,(0,z.Lz)((0,R.A)(l[1],-1))):B.planarLength(x,(0,z.Lz)((0,R.A)(l[1],-1)))}if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return!0===l[0].hasZ?C(l[0],(0,z.Lz)((0,R.A)(l[1],-1))):B.planarLength(l[0],(0,z.Lz)((0,R.A)(l[1],-1)))})},S.lengthgeodetic=function(y,w){return c(y,w,(U,V,l)=>{if((0,R.y)(l,1,2,y,w),null===(l=(0,R.G)(l))[0])return 0;if((0,R.m)(l[0])||(0,R.x)(l[0])){const x=(0,R.H)(l[0],y.spatialReference);return null===x?0:B.geodesicLength(x,(0,z.Lz)((0,R.A)(l[1],-1)))}if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.geodesicLength(l[0],(0,z.Lz)((0,R.A)(l[1],-1)))})},S.distance=function(y,w){return c(y,w,(U,V,l)=>{l=(0,R.G)(l),(0,R.y)(l,2,3,y,w);let x=l[0];((0,R.m)(l[0])||(0,R.x)(l[0]))&&(x=(0,R.K)(l[0],y.spatialReference));let j=l[1];if(((0,R.m)(l[1])||(0,R.x)(l[1]))&&(j=(0,R.K)(l[1],y.spatialReference)),!(x instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);if(!(j instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.distance(x,j,(0,z.Lz)((0,R.A)(l[2],-1)))})},S.distancegeodetic=function(y,w){return c(y,w,(U,V,l)=>{l=(0,R.G)(l),(0,R.y)(l,2,3,y,w);const x=l[0],j=l[1];if(!(x instanceof b.Z))throw new A.aV(y,A.rH.InvalidParameter,w);if(!(j instanceof b.Z))throw new A.aV(y,A.rH.InvalidParameter,w);const X=new W.Z({paths:[],spatialReference:x.spatialReference});return X.addPath([x,j]),B.geodesicLength(X,(0,z.Lz)((0,R.A)(l[2],-1)))})},S.densify=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,3,y,w),null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);const x=(0,R.g)(l[1]);if(isNaN(x))throw new A.aV(y,A.rH.InvalidParameter,w);if(x<=0)throw new A.aV(y,A.rH.InvalidParameter,w);return l[0]instanceof F.Z||l[0]instanceof W.Z?B.densify(l[0],x,(0,z.Lz)((0,R.A)(l[2],-1))):l[0]instanceof f.Z?B.densify(G(l[0]),x,(0,z.Lz)((0,R.A)(l[2],-1))):l[0]})},S.densifygeodetic=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,3,y,w),null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);const x=(0,R.g)(l[1]);if(isNaN(x))throw new A.aV(y,A.rH.InvalidParameter,w);if(x<=0)throw new A.aV(y,A.rH.InvalidParameter,w);return l[0]instanceof F.Z||l[0]instanceof W.Z?B.geodesicDensify(l[0],x,(0,z.Lz)((0,R.A)(l[2],-1))):l[0]instanceof f.Z?B.geodesicDensify(G(l[0]),x,(0,z.Lz)((0,R.A)(l[2],-1))):l[0]})},S.generalize=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,4,y,w),null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);const x=(0,R.g)(l[1]);if(isNaN(x))throw new A.aV(y,A.rH.InvalidParameter,w);return B.generalize(l[0],x,(0,R.h)((0,R.A)(l[2],!0)),(0,z.Lz)((0,R.A)(l[3],-1)))})},S.buffer=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,3,y,w),null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);const x=(0,R.g)(l[1]);if(isNaN(x))throw new A.aV(y,A.rH.InvalidParameter,w);return 0===x?(0,z.r1)(l[0]):B.buffer(l[0],x,(0,z.Lz)((0,R.A)(l[2],-1)))})},S.buffergeodetic=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,3,y,w),null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);const x=(0,R.g)(l[1]);if(isNaN(x))throw new A.aV(y,A.rH.InvalidParameter,w);return 0===x?(0,z.r1)(l[0]):B.geodesicBuffer(l[0],x,(0,z.Lz)((0,R.A)(l[2],-1)))})},S.offset=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,2,6,y,w),null===l[0])return null;if(!(l[0]instanceof F.Z||l[0]instanceof W.Z))throw new A.aV(y,A.rH.InvalidParameter,w);const x=(0,R.g)(l[1]);if(isNaN(x))throw new A.aV(y,A.rH.InvalidParameter,w);const j=(0,R.g)((0,R.A)(l[4],10));if(isNaN(j))throw new A.aV(y,A.rH.InvalidParameter,w);const X=(0,R.g)((0,R.A)(l[5],0));if(isNaN(X))throw new A.aV(y,A.rH.InvalidParameter,w);return B.offset(l[0],x,(0,z.Lz)((0,R.A)(l[2],-1)),(0,R.j)((0,R.A)(l[3],"round")).toLowerCase(),j,X)})},S.rotate=function(y,w){return c(y,w,(U,V,l)=>{l=(0,R.G)(l),(0,R.y)(l,2,3,y,w);let x=l[0];if(null===x)return null;if(!(x instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);x instanceof f.Z&&(x=F.Z.fromExtent(x));const j=(0,R.g)(l[1]);if(isNaN(j))throw new A.aV(y,A.rH.InvalidParameter,w);const X=(0,R.A)(l[2],null);if(null===X)return B.rotate(x,j);if(X instanceof b.Z)return B.rotate(x,j,X);throw new A.aV(y,A.rH.InvalidParameter,w)})},S.centroid=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,1,1,y,w),null===l[0])return null;let x=l[0];if(((0,R.m)(l[0])||(0,R.x)(l[0]))&&(x=(0,R.K)(l[0],y.spatialReference)),null===x)return null;if(!(x instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return x instanceof b.Z?(0,R.q)((0,z.r1)(l[0]),y.spatialReference):x instanceof F.Z?x.centroid:x instanceof W.Z?(0,E.s9)(x):x instanceof Q.Z?(0,E.Ay)(x):x instanceof f.Z?x.center:null})},S.multiparttosinglepart=function(y,w){return c(y,w,(U,V,l)=>{l=(0,R.G)(l),(0,R.y)(l,1,1,y,w);const x=[];if(null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);if(l[0]instanceof b.Z)return[(0,R.q)((0,z.r1)(l[0]),y.spatialReference)];if(l[0]instanceof f.Z)return[(0,R.q)((0,z.r1)(l[0]),y.spatialReference)];const j=B.simplify(l[0]);if(j instanceof F.Z){const X=[],oe=[];for(let me=0;me{if(l=(0,R.G)(l),(0,R.y)(l,1,1,y,w),null===l[0])return!0;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.isSimple(l[0])})},S.simplify=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,1,1,y,w),null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.simplify(l[0])})},S.convexhull=function(y,w){return c(y,w,(U,V,l)=>{if(l=(0,R.G)(l),(0,R.y)(l,1,1,y,w),null===l[0])return null;if(!(l[0]instanceof K.Z))throw new A.aV(y,A.rH.InvalidParameter,w);return B.convexHull(l[0])})}}},46668:(Ve,De,Z)=>{Z.d(De,{a:()=>Q});const M=2654435761,z=2246822519,R=3266489917,E=668265263,f=374761393;function K(b){const F=[];for(let W=0,$=b.length;W<$;W++){let A=b.charCodeAt(W);A<128?F.push(A):A<2048?F.push(192|A>>6,128|63&A):A<55296||A>=57344?F.push(224|A>>12,128|A>>6&63,128|63&A):(W++,A=65536+((1023&A)<<10|1023&b.charCodeAt(W)),F.push(240|A>>18,128|A>>12&63,128|A>>6&63,128|63&A))}return new Uint8Array(F)}class Q{constructor(F){this._seed=F,this._totallen=0,this._bufs=[],this.init()}init(){return this._bufs=[],this._totallen=0,this}updateFloatArray(F){const W=[];for(const $ of F)isNaN($)?W.push("NaN"):W.push($===1/0?"Infinity":$===-1/0?"-Infinity":0===$?"0":$.toString(16));this.update(K(W.join("")))}updateIntArray(F){const W=Int32Array.from(F);this.update(new Uint8Array(W.buffer))}updateUint8Array(F){this.update(Uint8Array.from(F))}updateWithString(F){return this.update(K(F))}update(F){return this._bufs.push(F),this._totallen+=F.length,this}digest(){const F=new Uint8Array(this._totallen);let W=0;for(const $ of this._bufs)F.set($,W),W+=$.length;return this.init(),this._xxHash32(F,this._seed)}_xxHash32(F,W=0){const $=F;let A=W+f&4294967295,k=0;if($.length>=16){const G=[W+M+z&4294967295,W+z&4294967295,W+0&4294967295,W-M&4294967295],H=F,C=H.length-16;let L=0;for(k=0;(4294967280&k)<=C;k+=4){let w=G[L]+((H[k+0]+(H[k+1]<<8))*z+((H[k+2]+(H[k+3]<<8))*z<<16))&4294967295;w=w<<13|w>>>19,G[L]=(65535&w)*M+((w>>>16)*M<<16)&4294967295,L=L+1&3}A=(G[0]<<1|G[0]>>>31)+(G[1]<<7|G[1]>>>25)+(G[2]<<12|G[2]>>>20)+(G[3]<<18|G[3]>>>14)&4294967295}A=A+F.length&4294967295;const B=F.length-4;for(;k<=B;k+=4)A=A+(($[k+0]+($[k+1]<<8))*R+(($[k+2]+($[k+3]<<8))*R<<16))&4294967295,A=A<<17|A>>>15,A=(65535&A)*E+((A>>>16)*E<<16)&4294967295;for(;k<$.length;++k)A+=$[k]*f,A=A<<11|A>>>21,A=(65535&A)*M+((A>>>16)*M<<16)&4294967295;return A^=A>>>15,A=((65535&A)*z&4294967295)+((A>>>16)*z<<16),A^=A>>>13,A=((65535&A)*R&4294967295)+((A>>>16)*R<<16),A^=A>>>16,A<0?A+4294967296:A}}},53840:(Ve,De,Z)=>{Z.d(De,{r:()=>E});var M=Z(47562),z=Z(75327);function R(f,K,Q){return void 0===Q||0==+Q?Math[f](K):(K=+K,Q=+Q,isNaN(K)||"number"!=typeof Q||Q%1!=0?NaN:(K=K.toString().split("e"),+((K=(K=Math[f](+(K[0]+"e"+(K[1]?+K[1]-Q:-Q)))).toString().split("e"))[0]+"e"+(K[1]?+K[1]+Q:Q))))}function E(f,K){function Q(b,F,W){const $=(0,M.g)(b);return isNaN($)?$:isNaN(F)||isNaN(W)||F>W?NaN:$W?W:$}f.number=function(b,F){return K(b,F,(W,$,A)=>{(0,M.y)(A,1,2,b,F);const k=A[0];if((0,M.b)(k))return k;if(null===k)return 0;if((0,M.k)(k)||(0,M.a)(k))return Number(k);if((0,M.m)(k))return NaN;if(""===k||void 0===k)return Number(k);if((0,M.c)(k)){if(void 0!==A[1]){let B=(0,M.L)(A[1],"\u2030","");return B=(0,M.L)(B,"\xa4",""),(0,z.Qc)(k,{pattern:B})}return Number(k.trim())}return Number(k)})},f.abs=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.abs((0,M.g)(A[0]))))},f.acos=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.acos((0,M.g)(A[0]))))},f.asin=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.asin((0,M.g)(A[0]))))},f.atan=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.atan((0,M.g)(A[0]))))},f.atan2=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,2,2,b,F),Math.atan2((0,M.g)(A[0]),(0,M.g)(A[1]))))},f.ceil=function(b,F){return K(b,F,(W,$,A)=>{if((0,M.y)(A,1,2,b,F),2===A.length){let k=(0,M.g)(A[1]);return isNaN(k)&&(k=0),R("ceil",(0,M.g)(A[0]),-1*k)}return Math.ceil((0,M.g)(A[0]))})},f.round=function(b,F){return K(b,F,(W,$,A)=>{if((0,M.y)(A,1,2,b,F),2===A.length){let k=(0,M.g)(A[1]);return isNaN(k)&&(k=0),R("round",(0,M.g)(A[0]),-1*k)}return Math.round((0,M.g)(A[0]))})},f.floor=function(b,F){return K(b,F,(W,$,A)=>{if((0,M.y)(A,1,2,b,F),2===A.length){let k=(0,M.g)(A[1]);return isNaN(k)&&(k=0),R("floor",(0,M.g)(A[0]),-1*k)}return Math.floor((0,M.g)(A[0]))})},f.cos=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.cos((0,M.g)(A[0]))))},f.isnan=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),"number"==typeof A[0]&&isNaN(A[0])))},f.exp=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.exp((0,M.g)(A[0]))))},f.log=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.log((0,M.g)(A[0]))))},f.pow=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,2,2,b,F),(0,M.g)(A[0])**(0,M.g)(A[1])))},f.random=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,0,0,b,F),Math.random()))},f.sin=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.sin((0,M.g)(A[0]))))},f.sqrt=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.sqrt((0,M.g)(A[0]))))},f.tan=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),Math.tan((0,M.g)(A[0]))))},f.defaultvalue=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,2,2,b,F),null===A[0]||""===A[0]||void 0===A[0]?A[1]:A[0]))},f.isempty=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),null===A[0]||""===A[0]||void 0===A[0]))},f.boolean=function(b,F){return K(b,F,(W,$,A)=>((0,M.y)(A,1,1,b,F),(0,M.h)(A[0])))},f.constrain=function(b,F){return K(b,F,(W,$,A)=>{(0,M.y)(A,3,3,b,F);const k=(0,M.g)(A[1]),B=(0,M.g)(A[2]);if((0,M.m)(A[0])){const G=[];for(const H of A[0])G.push(Q(H,k,B));return G}if((0,M.x)(A[0])){const G=[];for(let H=0;H{Z.d(De,{r:()=>f});var M=Z(25919),z=Z(47562),R=Z(50818);function E(K,Q,b,F){if(1===F.length){if((0,z.m)(F[0]))return(0,R.t)(K,F[0],-1);if((0,z.x)(F[0]))return(0,R.t)(K,F[0].toArray(),-1)}return(0,R.t)(K,F,-1)}function f(K,Q){K.stdev=function(b,F){return Q(b,F,(W,$,A)=>E("stdev",0,0,A))},K.variance=function(b,F){return Q(b,F,(W,$,A)=>E("variance",0,0,A))},K.average=function(b,F){return Q(b,F,(W,$,A)=>E("mean",0,0,A))},K.mean=function(b,F){return Q(b,F,(W,$,A)=>E("mean",0,0,A))},K.sum=function(b,F){return Q(b,F,(W,$,A)=>E("sum",0,0,A))},K.min=function(b,F){return Q(b,F,(W,$,A)=>E("min",0,0,A))},K.max=function(b,F){return Q(b,F,(W,$,A)=>E("max",0,0,A))},K.distinct=function(b,F){return Q(b,F,(W,$,A)=>E("distinct",0,0,A))},K.count=function(b,F){return Q(b,F,(W,$,A)=>{if((0,z.y)(A,1,1,b,F),(0,z.m)(A[0])||(0,z.c)(A[0]))return A[0].length;if((0,z.x)(A[0]))return A[0].length();throw new M.aV(b,M.rH.InvalidParameter,F)})}}},32576:(Ve,De,Z)=>{Z.d(De,{r:()=>te});var M=Z(37780),z=Z(22386),R=Z(6729),E=Z(25919),f=Z(47562),K=Z(77132),Q=Z(62208);const b=_=>(v,I,N)=>(N=N||14,+_(v,I).toFixed(N)),F=(_,v)=>_+v,$=(_,v)=>_*v,A=(_,v)=>_/v,k=(_,v,I)=>b(F)(_,v,I),G=(_,v,I)=>b($)(_,v,I),H=(_,v,I)=>b(A)(_,v,I),C=360,S=2*Math.PI,c=3600,w=60,U=180*c/Math.PI,V=60*C*w,l=90*c,x=180*c,X=String.fromCharCode(7501);function me(_){if(!1===(0,f.c)(_))throw new E.aV(null,E.rH.InvalidParameter,null);return _}function fe(_,v){const I=10**v;return Math.round(_*I)/I}function se(_){const v=parseFloat(_.toString().replace(Math.trunc(_).toString(),"0"))*Math.sign(_);return _<0?{fraction:v,integer:Math.ceil(_)}:{fraction:v,integer:Math.floor(_)}}var de,ie,ge,ct,_;function Be(_,v){switch(_){case de.north:return"SHORT"===v?"N":"North";case de.east:return"SHORT"===v?"E":"East";case de.south:return"SHORT"===v?"S":"South";case de.west:return"SHORT"===v?"W":"West"}}function dt(_,v,I){for(;_.length=972e3?de.north:de.south,N=I===de.north?Math.min(V-v,v):Math.abs(v-x);return new Le(I,N,v>x?de.west:de.east)}static createFromAngleMeridianAndDirection(v,I,N){return new Me(new we(Me.secondsQuadrantToNorthAzimuth(v.extractAngularUnits(ie.seconds),I,N)))}static secondsQuadrantToNorthAzimuth(v,I,N){return I===de.north?N===de.east?v:V-v:N===de.east?x-v:x+v}static _convertDirectionFormat(v,I,N){let ne=0;switch(I){case ge.north_azimuth:ne=v;break;case ge.polar:ne=l-v;break;case ge.quadrant:throw new E.aV(null,E.rH.LogicError,null,{reason:"unexpected evaluation"});case ge.south_azimuth:ne=v+x}let re=0;switch(N){case ge.north_azimuth:re=ne;break;case ge.polar:re=l-ne;break;case ge.quadrant:throw new E.aV(null,E.rH.LogicError,null,{reason:"unexpected evaluation"});case ge.south_azimuth:re=ne-x}return re=function Fe(_,v){return _%v}(re,V),re<0?V+re:re}}function rt(_,v,I){let N=null;switch(v){case ie.decimal_degrees:N=G(_,c);break;case ie.seconds:N=_;break;case ie.gradians:N=G(_,3240);break;case ie.radians:N=G(_,U);break;default:throw new E.aV(null,E.rH.LogicError,null,{reason:"unexpected evaluation"})}switch(I){case ie.decimal_degrees:return H(N,c);case ie.seconds:return N;case ie.gradians:return H(N,3240);case ie.radians:return N/U;default:throw new E.aV(null,E.rH.LogicError,null,{reason:"unexpected evaluation"})}}class we{constructor(v){this._seconds=v}static createFromAngleAndUnits(v,I){return new we(rt(v,I,ie.seconds))}extractAngularUnits(v){return rt(this._seconds,ie.seconds,ft(v))}static createFromDegreesMinutesSeconds(v,I,N){return new we(k(k(G(v,c),G(I,w)),N))}}function ft(_){switch((0,Q.O3)(_),_){case ie.decimal_degrees:case ie.truncated_degrees:case ie.degrees_minutes_seconds:return ie.decimal_degrees;case ie.gradians:return ie.gradians;case ie.fractional_degree_minutes:return ie.fractional_degree_minutes;case ie.radians:return ie.radians;case ie.seconds:case ie.fractional_minute_seconds:return ie.seconds}}class at{constructor(v,I,N,ne){this.view=v,this.angle=I,this.merdian=N,this.direction=ne,this._dms=null,this._formattedDms=null}static createFromStringAndBearing(v,I,N){return new at(v,I.getAngle(N),I.getMeridian(N),I.getDirection(N))}fetchAngle(){return this.angle}fetchMeridian(){return this.merdian}fetchDirection(){return this.direction}fetchView(){return this.view}fetchDms(){return null===this._dms&&this._calculateDms(),this._dms}fetchFormattedDms(){return null===this._formattedDms&&this._calculateDms(),this._formattedDms}_calculateDms(){let v=null,I=ie.truncated_degrees,N=0;for(let ne=0;ne0?1:0));case ie.truncated_degrees:case ie.fractional_degree_minutes:return re=Ye(ne.fetchFormattedDms().getField(v),He(v)),dt(re.toFixed(N),"0",I+N+(N>0?1:0));case ie.fractional_minute_seconds:return re=Ye(fe(ne.fetchDms().getField(v),N),He(v)),dt(re.toFixed(N),"0",I+N+(N>0?1:0));default:throw new E.aV(null,E.rH.LogicError,null,{reason:"unexpected evaluation"})}}function Ue(_){switch(_.toUpperCase().trim()){case"N":case"NORTH":return de.north;case"E":case"EAST":return de.east;case"S":case"SOUTH":return de.south;case"W":case"WEST":return de.west}return null}function Ce(_){const v=parseFloat(_);if((0,f.b)(v)){if(isNaN(v))throw new E.aV(null,E.rH.LogicError,null,{reason:"invalid conversion"});return v}throw new E.aV(null,E.rH.LogicError,null,{reason:"invalid conversion"})}function it(_,v,I){const N=I===ge.quadrant;let ne=null,re=null,O=0,ee=0,Y=0;if(N){if(_.length<2)throw new E.aV(null,E.rH.LogicError,null,{reason:"conversion error"});Y=1;const he=function ke(_){switch((0,f.g)(_)){case 1:return{first:de.north,second:de.east};case 2:return{first:de.south,second:de.east};case 3:return{first:de.south,second:de.west};case 4:return{first:de.north,second:de.west}}return null}((0,f.j)(_[_.length-1]));if(he?(ne=he.first,re=he.second):(O=1,ne=Ue((0,f.j)(_[0])),re=Ue((0,f.j)(_[_.length-1]))),null===ne||null===re)throw new E.aV(null,E.rH.LogicError,null,{reason:"invalid conversion"})}switch(v){case ie.decimal_degrees:case ie.radians:case ie.gradians:if(0===_.length)throw new E.aV(null,E.rH.LogicError,null,{reason:"invalid conversion"});return N?Me.createFromAngleMeridianAndDirection(we.createFromAngleAndUnits(Ce(_[O]),ft(v)),ne,re):Me.createFromAngleAndDirection(we.createFromAngleAndUnits(Ce(_[O]),ft(v)),I);case ie.degrees_minutes_seconds:if(ee=_.length-Y-O,3===ee){const he=we.createFromDegreesMinutesSeconds(Ce(_[O]),Ce(_[O+1]),Ce(_[O+2]));return N?Me.createFromAngleMeridianAndDirection(he,ne,re):Me.createFromAngleAndDirection(he,I)}if(1===ee){const he=Ce(_[O]),_e=Xe.numberToDms(he),p=we.createFromDegreesMinutesSeconds(_e.m_degrees,_e.m_minutes,_e.m_seconds);return N?Me.createFromAngleMeridianAndDirection(p,ne,re):Me.createFromAngleAndDirection(p,I)}}throw new E.aV(null,E.rH.LogicError,null,{reason:"invalid conversion"})}function qe(_,v,I){const N={padding:0,rounding:0,newpos:v};let ne=!1;for(;v<_.length;){const re=_[v];if(re===I)ne?N.rounding++:N.padding++,v++;else{if("."!==re)break;ne=!0,v++}}return N.newpos=v-1,N}function Ne(_,v,I){const N={escaped:"",newpos:v};for(v++;v<_.length;){const ne=_[v];if(v++,"]"===ne)break;N.escaped+=ne}return N.newpos=v-1,N}function St(_,v,I){if(!(v instanceof R.Z))throw new E.aV(null,E.rH.InvalidParameter,null);if(!1===v.hasField("directionType"))throw new E.aV(null,E.rH.LogicError,null,{reason:"missing directionType"});if(!1===v.hasField("angleType"))throw new E.aV(null,E.rH.LogicError,null,{reason:"missing angleType"});const N=ht(me(v.field("directiontype"))),ne=function At(_,v,I){if((0,f.b)(_))return function Ct(_,v,I){if(I===ge.quadrant)throw new E.aV(null,E.rH.LogicError,null,{reason:"conversion error"});if(v===ie.degrees_minutes_seconds){const N=Xe.numberToDms(_);return Me.createFromAngleAndDirection(we.createFromDegreesMinutesSeconds(N.m_degrees,N.m_minutes,N.m_seconds),I)}return Me.createFromAngleAndDirection(we.createFromAngleAndUnits(_,ft(v)),I)}((0,f.g)(_),v,I);if((0,f.c)(_))return it(function pt(_){const v=[" ","-","/","'",'"',"\\","^","\xb0",X,"\t","\r","\n","*"];let I="";for(let N=0;N<_.length;N++){const ne=_.charAt(N);v.includes(ne)?I+="RRSPLITRRSPLITRR":I+=ne}return I.split("RRSPLITRRSPLITRR").filter(N=>""!==N)}(_),v,I);if((0,f.m)(_))return it(_,v,I);if((0,f.x)(_))return it(_.toArray(),v,I);throw new E.aV(null,E.rH.LogicError,null,{reason:"conversion error"})}(_,Qe(me(v.field("angletype"))),N);if(!(I instanceof R.Z))throw new E.aV(null,E.rH.InvalidParameter,null);if(!1===I.hasField("directionType"))throw new E.aV(null,E.rH.LogicError,null,{reason:"missing directionType"});if(!1===I.hasField("outputType"))throw new E.aV(null,E.rH.LogicError,null,{reason:"missing angleType"});const re=ht(me(I.field("directiontype"))),O=I.hasField("angleType")?Qe(me(I.field("angletype"))):null,ee=me(I.field("outputType")).toUpperCase().trim();if(!re||!ee)throw new E.aV(null,E.rH.LogicError,null,{reason:"conversion error"});if(!(O||"TEXT"===ee&&I.hasField("format")))throw new E.aV(null,E.rH.LogicError,null,{reason:"invalid unit"});switch(ee){case"VALUE":return re===ge.quadrant||O===ie.degrees_minutes_seconds?function yt(_,v,I){const N=_.getAngle(v);if(v===ge.quadrant&&I===ie.degrees_minutes_seconds){const ne=Xe.secondsToDMS(N.extractAngularUnits(ie.seconds));return[Be(_.getMeridian(v),"SHORT"),ne.m_degrees,ne.m_minutes,ne.m_seconds,Be(_.getDirection(v),"SHORT")]}if(I===ie.degrees_minutes_seconds){const ne=Xe.secondsToDMS(N.extractAngularUnits(ie.seconds));return[ne.m_degrees,ne.m_minutes,ne.m_seconds]}return v===ge.quadrant?[Be(_.getMeridian(v),"SHORT"),N.extractAngularUnits(I),Be(_.getDirection(v),"SHORT")]:[N.extractAngularUnits(I)]}(ne,re,O):function Dt(_,v,I){const N=ft(I);if(N&&I!==ie.degrees_minutes_seconds)return _.getAngle(v).extractAngularUnits(N);throw new E.aV(null,E.rH.LogicError,null,{reason:"conversion error"})}(ne,re,O);case"TEXT":{let Y="";return I.hasField("format")&&(Y=(0,f.j)(I.field("format"))),null!==Y&&""!==Y||(Y=function It(_,v){let I="";switch(_){case ie.decimal_degrees:I=v===ge.quadrant?"DD.DD\xb0":"DDD.DD\xb0";break;case ie.degrees_minutes_seconds:I=v===ge.quadrant?"dd\xb0 mm' ss\"":"ddd\xb0 mm' ss.ss\"";break;case ie.radians:I="R.RR";break;case ie.gradians:I="GGG.GG"+X;break;default:throw new E.aV(null,E.rH.LogicError,null,{reason:"conversion error"})}return v===ge.quadrant&&(I="p "+I+" b"),I}(O,re)),function vt(_,v,I){let N="",ne=null,re=null;const O=at.createFromStringAndBearing(v,_,I),ee={D:ie.decimal_degrees,d:ie.truncated_degrees,m:ie.fractional_degree_minutes,s:ie.fractional_minute_seconds,R:ie.radians,G:ie.gradians};for(let Y=0;Y((0,f.y)(O,1,1,I,N),new M.Z((0,f.j)(O[0]))))},_.typeof=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,1,1,I,N);const ee=(0,f.B)(O[0]);if("Unrecognised Type"===ee)throw new E.aV(I,E.rH.UnrecognisedType,N);return ee})},_.trim=function(I,N){return v(I,N,(ne,re,O)=>((0,f.y)(O,1,1,I,N),(0,f.j)(O[0]).trim()))},_.tohex=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,1,1,I,N);const ee=(0,f.g)(O[0]);return isNaN(ee)?ee:ee.toString(16)})},_.upper=function(I,N){return v(I,N,(ne,re,O)=>((0,f.y)(O,1,1,I,N),(0,f.j)(O[0]).toUpperCase()))},_.proper=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,1,2,I,N);let ee=1;2===O.length&&"firstword"===(0,f.j)(O[1]).toLowerCase()&&(ee=2);const Y=/\s/,he=(0,f.j)(O[0]);let _e="",p=!0;for(let T=0;T((0,f.y)(O,1,1,I,N),(0,f.j)(O[0]).toLowerCase()))},_.guid=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,0,1,I,N),O.length>0)switch((0,f.j)(O[0]).toLowerCase()){case"digits":return(0,f.M)().replace("-","").replace("-","").replace("-","").replace("-","");case"digits-hyphen":return(0,f.M)();case"digits-hyphen-braces":return"{"+(0,f.M)()+"}";case"digits-hyphen-parentheses":return"("+(0,f.M)()+")"}return"{"+(0,f.M)()+"}"})},_.standardizeguid=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,2,2,I,N);let ee=(0,f.j)(O[0]);if(""===ee||null===ee)return"";const Y=/^(\{|\()?(?[0-9a-z]{8})(\-?)(?[0-9a-z]{4})(\-?)(?[0-9a-z]{4})(\-?)(?[0-9a-z]{4})(\-?)(?[0-9a-z]{12})(\}|\))?$/gim.exec(ee);if(!Y)return"";const he=Y.groups;switch(ee=he.partA+"-"+he.partB+"-"+he.partC+"-"+he.partD+"-"+he.partE,(0,f.j)(O[1]).toLowerCase()){case"digits":return ee.replace("-","").replace("-","").replace("-","").replace("-","");case"digits-hyphen":return ee;case"digits-hyphen-braces":return"{"+ee+"}";case"digits-hyphen-parentheses":return"("+ee+")"}return"{"+ee+"}"})},_.console=function(I,N){return v(I,N,(ne,re,O)=>(0===O.length||I.console((0,f.j)(1===O.length?O[0]:O)),f.v))},_.mid=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,2,3,I,N);let ee=(0,f.g)(O[1]);if(isNaN(ee))return"";if(ee<0&&(ee=0),2===O.length)return(0,f.j)(O[0]).substr(ee);let Y=(0,f.g)(O[2]);return isNaN(Y)?"":(Y<0&&(Y=0),(0,f.j)(O[0]).substr(ee,Y))})},_.find=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,2,3,I,N);let ee=0;if(O.length>2){if(ee=(0,f.g)((0,f.A)(O[2],0)),isNaN(ee))return-1;ee<0&&(ee=0)}return(0,f.j)(O[1]).indexOf((0,f.j)(O[0]),ee)})},_.left=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,2,2,I,N);let ee=(0,f.g)(O[1]);return isNaN(ee)?"":(ee<0&&(ee=0),(0,f.j)(O[0]).substr(0,ee))})},_.right=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,2,2,I,N);let ee=(0,f.g)(O[1]);return isNaN(ee)?"":(ee<0&&(ee=0),(0,f.j)(O[0]).substr(-1*ee,ee))})},_.split=function(I,N){return v(I,N,(ne,re,O)=>{let ee;(0,f.y)(O,2,4,I,N);let Y=(0,f.g)((0,f.A)(O[2],-1));const he=(0,f.h)((0,f.A)(O[3],!1));if(-1===Y||null===Y||!0===he?ee=(0,f.j)(O[0]).split((0,f.j)(O[1])):(isNaN(Y)&&(Y=-1),Y<-1&&(Y=-1),ee=(0,f.j)(O[0]).split((0,f.j)(O[1]),Y)),!1===he)return ee;const _e=[];for(let p=0;p=Y);p++)""!==ee[p]&&void 0!==ee[p]&&_e.push(ee[p]);return _e})},_.text=function(I,N){return v(I,N,(ne,re,O)=>((0,f.y)(O,1,2,I,N),(0,f.t)(O[0],O[1])))},_.concatenate=function(I,N){return v(I,N,(ne,re,O)=>{const ee=[];if(O.length<1)return"";if((0,f.m)(O[0])){const Y=(0,f.A)(O[2],"");for(let he=0;he1?O[1]:"")}if((0,f.x)(O[0])){const Y=(0,f.A)(O[2],"");for(let he=0;he1?O[1]:"")}for(let Y=0;Y{if((0,f.y)(O,1,1,I,N),(0,f.m)(O[0])){const ee=O[0].slice(0);return ee.reverse(),ee}if((0,f.x)(O[0])){const ee=O[0].toArray().slice(0);return ee.reverse(),ee}throw new E.aV(I,E.rH.InvalidParameter,N)})},_.replace=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,3,4,I,N);const ee=(0,f.j)(O[0]),Y=(0,f.j)(O[1]),he=(0,f.j)(O[2]);return 4!==O.length||(0,f.h)(O[3])?(0,f.L)(ee,Y,he):ee.replace(Y,he)})},_.schema=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.w)(O[0])){const ee=(0,f.N)(O[0]);return ee?R.Z.convertObjectToArcadeDictionary(ee):null}throw new E.aV(I,E.rH.InvalidParameter,N)})},_.subtypes=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,1,1,I,N),(0,f.w)(O[0])){const ee=(0,f.O)(O[0]);return ee?R.Z.convertObjectToArcadeDictionary(ee):null}throw new E.aV(I,E.rH.InvalidParameter,N)})},_.subtypecode=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,1,1,I,N),(0,f.w)(O[0])){const ee=(0,f.O)(O[0]);if(!ee)return null;if(ee.subtypeField&&O[0].hasField(ee.subtypeField)){const Y=O[0].field(ee.subtypeField);for(const he of ee.subtypes)if(he.code===Y)return he.code;return null}return null}throw new E.aV(I,E.rH.InvalidParameter,N)})},_.subtypename=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,1,1,I,N),(0,f.w)(O[0])){const ee=(0,f.O)(O[0]);if(!ee)return"";if(ee.subtypeField&&O[0].hasField(ee.subtypeField)){const Y=O[0].field(ee.subtypeField);for(const he of ee.subtypes)if(he.code===Y)return he.name;return""}return""}throw new E.aV(I,E.rH.InvalidParameter,N)})},_.gdbversion=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,1,1,I,N),(0,f.w)(O[0]))return O[0].gdbVersion();throw new E.aV(I,E.rH.InvalidParameter,N)})},_.domain=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,2,3,I,N),(0,f.w)(O[0])){const ee=(0,f.P)(O[0],(0,f.j)(O[1]),void 0===O[2]?void 0:(0,f.g)(O[2]));return ee&&ee.domain?R.Z.convertObjectToArcadeDictionary("coded-value"===ee.domain.type||"codedValue"===ee.domain.type?{type:"codedValue",name:ee.domain.name,dataType:K.yE[ee.field.type],codedValues:ee.domain.codedValues.map(Y=>({name:Y.name,code:Y.code}))}:{type:"range",name:ee.domain.name,dataType:K.yE[ee.field.type],min:ee.domain.min,max:ee.domain.max}):null}throw new E.aV(I,E.rH.InvalidParameter,N)})},_.domainname=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,2,4,I,N),(0,f.w)(O[0]))return(0,f.Q)(O[0],(0,f.j)(O[1]),O[2],void 0===O[3]?void 0:(0,f.g)(O[3]));throw new E.aV(I,E.rH.InvalidParameter,N)})},_.domaincode=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,2,4,I,N),(0,f.w)(O[0]))return(0,f.S)(O[0],(0,f.j)(O[1]),O[2],void 0===O[3]?void 0:(0,f.g)(O[3]));throw new E.aV(I,E.rH.InvalidParameter,N)})},_.urlencode=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,1,1,I,N),null===O[0])return"";if(O[0]instanceof R.Z){let ee="";for(const Y of O[0].keys()){const he=O[0].field(Y);""!==ee&&(ee+="&"),ee+=null===he?encodeURIComponent(Y)+"=":encodeURIComponent(Y)+"="+encodeURIComponent(he)}return ee}return encodeURIComponent((0,f.j)(O[0]))})},_.hash=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,1,1,I,N);const ee=new _t.a(0);return We(O[0],ee,{context:I,node:N,map:new Map,currentLength:0}),ee.digest()})},_.convertdirection=function(I,N){return v(I,N,(ne,re,O)=>((0,f.y)(O,3,3,I,N),St(O[0],O[1],O[2])))},_.fromjson=function(I,N){return v(I,N,(ne,re,O)=>{if((0,f.y)(O,1,1,I,N),!1===(0,f.c)(O[0]))throw new E.aV(I,E.rH.InvalidParameter,N);return R.Z.convertJsonToArcade(JSON.parse((0,f.j)(O[0])))})},_.expects=function(I,N){return v(I,N,(ne,re,O)=>{if(O.length<1)throw new E.aV(I,E.rH.WrongNumberOfParameters,N);return f.v})},_.tocharcode=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,1,2,I,N);const ee=(0,f.g)((0,f.A)(O[1],0)),Y=(0,f.j)(O[0]);if(0===Y.length&&1===O.length)return null;if(Y.length<=ee||ee<0)throw new E.aV(I,E.rH.OutOfBounds,N);return Y.charCodeAt(ee)})},_.tocodepoint=function(I,N){return v(I,N,(ne,re,O)=>{(0,f.y)(O,1,2,I,N);const ee=(0,f.g)((0,f.A)(O[1],0)),Y=(0,f.j)(O[0]);if(0===Y.length&&1===O.length)return null;if(Y.length<=ee||ee<0)throw new E.aV(I,E.rH.OutOfBounds,N);return Y.codePointAt(ee)})},_.fromcharcode=function(I,N){return v(I,N,(ne,re,O)=>{if(O.length<1)throw new E.aV(I,E.rH.WrongNumberOfParameters,N);const ee=O.map(Y=>Math.trunc((0,f.g)(Y))).filter(Y=>Y>=0&&Y<=65535);return 0===ee.length?null:String.fromCharCode.apply(null,ee)})},_.fromcodepoint=function(I,N){return v(I,N,(ne,re,O)=>{if(O.length<1)throw new E.aV(I,E.rH.WrongNumberOfParameters,N);let ee;try{ee=O.map(Y=>Math.trunc((0,f.g)(Y))).filter(Y=>Y<=1114111&&Y>>>0===Y)}catch{return null}return 0===ee.length?null:String.fromCodePoint.apply(null,ee)})}}},27187:(Ve,De,Z)=>{Z.d(De,{EI:()=>z,Lz:()=>E,SV:()=>R,r1:()=>K});var M=Z(2004);function z(Q){if(null==Q)return null;if("number"==typeof Q)return Q;let b=Q.toLowerCase();switch(b=b.replace(/\s/g,""),b=b.replace(/-/g,""),b){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return 109404;case"miles":case"mile":case"squaremile":case"squaremiles":return 109439;case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return 109414;case"acres":case"acre":case"ac":return 109402;case"hectares":case"hectare":case"ha":return 109401;case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return 109442;case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return 109405;case"nm":case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return 109409}return null}function R(Q){if(null==Q)return null;switch(Q.type){case"polygon":case"multipoint":case"polyline":return Q.extent;case"point":return new M.Z({xmin:Q.x,ymin:Q.y,xmax:Q.x,ymax:Q.y,spatialReference:Q.spatialReference});case"extent":return Q}return null}function E(Q){if(null==Q)return null;if("number"==typeof Q)return Q;let b=Q.toLowerCase();switch(b=b.replace(/\s/g,""),b=b.replace(/-/g,""),b){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return 9001;case"miles":case"mile":case"squaremile":case"squaremiles":return 9093;case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return 9036;case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return 9096;case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return 9002;case"nm":case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return 9030}return null}function K(Q){if(null==Q)return null;const b=Q.clone();return void 0!==Q.cache._geVersion&&(b.cache._geVersion=Q.cache._geVersion),b}},19927:(Ve,De,Z)=>{Z.d(De,{Kq:()=>B,Vf:()=>H,bV:()=>W,dN:()=>C,gW:()=>Q,mb:()=>k,w8:()=>A,x5:()=>$});const M={all:{min:2,max:2},none:{min:2,max:2},any:{min:2,max:2},reduce:{min:2,max:3},map:{min:2,max:2},filter:{min:2,max:2},fromcodepoint:{min:1,max:-1},fromcharcode:{min:1,max:-1},tocodepoint:{min:1,max:2},tocharcode:{min:1,max:2},concatenate:{min:0,max:-1},expects:{min:1,max:-1},getfeatureset:{min:1,max:2},week:{min:1,max:2},fromjson:{min:1,max:1},length3d:{min:1,max:2},tohex:{min:1,max:1},hash:{min:1,max:1},isoweek:{min:1,max:1},isoweekday:{min:1,max:1},hasvalue:{min:2,max:2},isomonth:{min:1,max:1},isoyear:{min:1,max:1},resize:{min:2,max:3},slice:{min:0,max:-1},splice:{min:0,max:-1},push:{min:2,max:2},pop:{min:1,max:1},includes:{min:2,max:2},array:{min:1,max:2},front:{min:1,max:1},back:{min:1,max:1},insert:{min:3,max:3},erase:{min:2,max:2},split:{min:2,max:4},guid:{min:0,max:1},standardizeguid:{min:2,max:2},today:{min:0,max:0},angle:{min:2,max:3},bearing:{min:2,max:3},urlencode:{min:1,max:1},now:{min:0,max:0},timestamp:{min:0,max:0},day:{min:1,max:1},month:{min:1,max:1},year:{min:1,max:1},hour:{min:1,max:1},second:{min:1,max:1},millisecond:{min:1,max:1},minute:{min:1,max:1},weekday:{min:1,max:1},toutc:{min:1,max:1},tolocal:{min:1,max:1},date:{min:0,max:7},datediff:{min:2,max:3},dateadd:{min:2,max:3},trim:{min:1,max:1},text:{min:1,max:2},left:{min:2,max:2},right:{min:2,max:2},mid:{min:2,max:3},upper:{min:1,max:1},proper:{min:1,max:2},lower:{min:1,max:1},find:{min:2,max:3},iif:{min:3,max:3},decode:{min:2,max:-1},when:{min:2,max:-1},defaultvalue:{min:2,max:2},isempty:{min:1,max:1},domaincode:{min:2,max:4},domainname:{min:2,max:4},polygon:{min:1,max:1},point:{min:1,max:1},polyline:{min:1,max:1},extent:{min:1,max:1},multipoint:{min:1,max:1},ringisclockwise:{min:1,max:1},geometry:{min:1,max:1},count:{min:0,max:-1},number:{min:1,max:2},acos:{min:1,max:1},asin:{min:1,max:1},atan:{min:1,max:1},atan2:{min:2,max:2},ceil:{min:1,max:2},floor:{min:1,max:2},round:{min:1,max:2},cos:{min:1,max:1},exp:{min:1,max:1},log:{min:1,max:1},min:{min:0,max:-1},constrain:{min:3,max:3},console:{min:0,max:-1},max:{min:0,max:-1},pow:{min:2,max:2},random:{min:0,max:0},sqrt:{min:1,max:1},sin:{min:1,max:1},tan:{min:1,max:1},abs:{min:1,max:1},isnan:{min:1,max:1},stdev:{min:0,max:-1},average:{min:0,max:-1},mean:{min:0,max:-1},sum:{min:0,max:-1},variance:{min:0,max:-1},distinct:{min:0,max:-1},first:{min:1,max:1},top:{min:2,max:2},boolean:{min:1,max:1},dictionary:{min:0,max:-1},typeof:{min:1,max:1},reverse:{min:1,max:1},replace:{min:3,max:4},sort:{min:1,max:2},feature:{min:1,max:-1},haskey:{min:2,max:2},indexof:{min:2,max:2},disjoint:{min:2,max:2},intersects:{min:2,max:2},touches:{min:2,max:2},crosses:{min:2,max:2},within:{min:2,max:2},contains:{min:2,max:2},overlaps:{min:2,max:2},equals:{min:2,max:2},relate:{min:3,max:3},intersection:{min:2,max:2},union:{min:1,max:2},difference:{min:2,max:2},symmetricdifference:{min:2,max:2},clip:{min:2,max:2},cut:{min:2,max:2},area:{min:1,max:2},areageodetic:{min:1,max:2},length:{min:1,max:2},lengthgeodetic:{min:1,max:2},distancegeodetic:{min:2,max:3},distance:{min:2,max:3},densify:{min:2,max:3},densifygeodetic:{min:2,max:3},generalize:{min:2,max:4},buffer:{min:2,max:3},buffergeodetic:{min:2,max:3},offset:{min:2,max:6},rotate:{min:2,max:3},issimple:{min:1,max:1},simplify:{min:1,max:1},convexhull:{min:1,max:1},centroid:{min:1,max:1},isselfintersecting:{min:1,max:1},multiparttosinglepart:{min:1,max:1},setgeometry:{min:2,max:2},portal:{min:1,max:1},getuser:{min:0,max:2},subtypes:{min:1,max:1},subtypecode:{min:1,max:1},subtypename:{min:1,max:1},domain:{min:2,max:3},convertdirection:{min:3,max:3},schema:{min:1,max:1}},z={functionDefinitions:new Map,constantDefinitions:new Map},R={functionDefinitions:new Map,constantDefinitions:new Map};for(const S of["pi","infinity"])R.constantDefinitions.set(S,{type:"constant"}),z.constantDefinitions.set(S,{type:"constant"});R.constantDefinitions.set("textformatting",{type:"namespace",key:"textformatting",members:[{key:"backwardslash",type:"constant"},{key:"doublequote",type:"constant"},{key:"forwardslash",type:"constant"},{key:"tab",type:"constant"},{key:"singlequote",type:"constant"},{key:"newline",type:"constant"}]}),z.constantDefinitions.set("textformatting",{type:"namespace",key:"textformatting",members:[{key:"backwardslash",type:"constant"},{key:"tab",type:"constant"},{key:"singlequote",type:"constant"},{key:"doublequote",type:"constant"},{key:"forwardslash",type:"constant"},{key:"newline",type:"constant"}]});for(const S in M){const c=M[S];R.functionDefinitions.set(S,{overloads:[{type:"function",parametersInfo:{min:c.min,max:c.max}}]}),z.functionDefinitions.set(S,{overloads:[{type:"function",parametersInfo:{min:c.min,max:c.max}}]})}const E=["featureset","getuser","featuresetbyid","featuresetbyname","featuresetbyassociation","featuresetbyrelationshipname","featuresetbyurl","getfeatureset","attachments","featuresetbyportalitem"],f=["disjoint","intersects","touches","crosses","within","contains","overlaps","equals","relate","intersection","union","difference","symmetricdifference","clip","cut","area","areageodetic","length","length3d","lengthgeodetic","distance","distancegeodetic","densify","densifygeodetic","generalize","buffer","buffergeodetic","offset","rotate","issimple","convexhull","simplify","multiparttosinglepart"];function K(S){return"string"==typeof S||S instanceof String}function Q(S,c){const g="sync"===c?z:R;g.functionDefinitions.has(S.name.toLowerCase())?g.functionDefinitions.get(S.name.toLowerCase())?.overloads.push({type:"function",parametersInfo:{min:S.min,max:S.max}}):g.functionDefinitions.set(S.name.toLowerCase(),{overloads:[{type:"function",parametersInfo:{min:S.min,max:S.max}}]})}function b(S,c){if(S)for(const g of S)F(g,c)}function F(S,c){if(S&&!1!==c(S))switch(S.type){case"ImportDeclaration":b(S.specifiers,c),F(S.source,c);break;case"ExportNamedDeclaration":F(S.declaration,c);break;case"ArrayExpression":b(S.elements,c);break;case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":F(S.left,c),F(S.right,c);break;case"BlockStatement":case"Program":b(S.body,c);break;case"BreakStatement":case"ContinueStatement":case"EmptyStatement":case"Identifier":case"Literal":break;case"CallExpression":F(S.callee,c),b(S.arguments,c);break;case"ExpressionStatement":F(S.expression,c);break;case"ForInStatement":F(S.left,c),F(S.right,c),F(S.body,c);break;case"ForStatement":F(S.init,c),F(S.test,c),F(S.update,c),F(S.body,c);break;case"WhileStatement":F(S.test,c),F(S.body,c);break;case"FunctionDeclaration":F(S.id,c),b(S.params,c),F(S.body,c);break;case"IfStatement":F(S.test,c),F(S.consequent,c),F(S.alternate,c);break;case"MemberExpression":F(S.object,c),F(S.property,c);break;case"ObjectExpression":b(S.properties,c);break;case"Property":F(S.key,c),F(S.value,c);break;case"ReturnStatement":case"UnaryExpression":case"UpdateExpression":F(S.argument,c);break;case"VariableDeclaration":b(S.declarations,c);break;case"VariableDeclarator":F(S.id,c),F(S.init,c);break;case"TemplateLiteral":b(S.expressions,c),b(S.quasis,c)}}function W(S,c){let g=!1;const y=c.toLowerCase();return F(S,w=>!g&&("Identifier"===w.type&&w.name&&w.name.toLowerCase()===y&&(g=!0),!0)),g}function $(S){const c=[];return F(S,g=>("ImportDeclaration"===g.type&&g.source&&g.source.value&&c.push({libname:g.specifiers[0].local.name.toLowerCase(),source:g.source.value}),!0)),c}function A(S,c){let g=!1;const y=c.toLowerCase();return F(S,w=>!(g||"CallExpression"===w.type&&"Identifier"===w.callee.type&&w.callee.name&&w.callee.name.toLowerCase()===y&&(g=!0,1))),g}function k(S){const c=[];return F(S,g=>"MemberExpression"!==g.type||"Identifier"!==g.object.type||(!1===g.computed&&g.object&&g.object.name&&g.property&&"Identifier"===g.property.type&&g.property.name?c.push(g.object.name.toLowerCase()+"."+g.property.name.toLowerCase()):g.object&&g.object.name&&g.property&&"Literal"===g.property.type&&"string"==typeof g.property.value&&c.push(g.object.name.toLowerCase()+"."+g.property.value?.toString().toLowerCase()),!1)),c}function B(S){const c=[];return F(S,g=>{if("CallExpression"===g.type){if("Identifier"===g.callee.type&&"expects"===g.callee.name.toLowerCase()){let y="";for(let w=0;w<(g.arguments||[]).length;w++)0===w?"Identifier"===g.arguments[w].type&&(y=g.arguments[w].name.toLowerCase()):y&&"Literal"===g.arguments[w].type&&K(g.arguments[w].value)&&c.push(y+"."+g.arguments[w].value.toLowerCase());return!1}if("Identifier"===g.callee.type&&["domainname","domaincode","domain","haskey"].includes(g.callee.name.toLowerCase())&&g.arguments.length>=2){let y="";return"Identifier"===g.arguments[0].type&&(y=g.arguments[0].name.toLowerCase()),y&&"Literal"===g.arguments[1].type&&K(g.arguments[1].value)&&c.push(y+"."+g.arguments[1].value.toLowerCase()),!1}}return"MemberExpression"!==g.type||"Identifier"!==g.object.type||(!1===g.computed&&g.object&&g.object.name&&g.property&&"Identifier"===g.property.type&&g.property.name?c.push(g.object.name.toLowerCase()+"."+g.property.name.toLowerCase()):g.object&&g.object.name&&g.property&&"Literal"===g.property.type&&"string"==typeof g.property.value&&c.push(g.object.name.toLowerCase()+"."+g.property.value?.toString().toLowerCase()),!1)}),c}function H(S){const c=[];return F(S,g=>("CallExpression"===g.type&&"Identifier"===g.callee.type&&c.push(g.callee.name.toLowerCase()),!0)),c}function C(S,c=[]){let g=null;if(void 0===S.usesFeatureSet){null===g&&(g=H(S)),S.usesFeatureSet=!1;for(let y=0;y0)for(const y of c)if(W(S,y)){S.usesFeatureSet=!0,S.isAsync=!0;break}}if(void 0===S.usesModules&&(S.usesModules=!1,$(S).length>0&&(S.usesModules=!0)),void 0===S.usesGeometry){S.usesGeometry=!1,null===g&&(g=H(S));for(let y=0;y{Z.d(De,{A:()=>Q});var M=Z(15861),z=Z(25919),R=Z(98362),E=Z(47562),f=Z(10699);const Q=Object.freeze(Object.defineProperty({__proto__:null,registerFunctions:function K(b){function F(C,L,S){if(C instanceof R.Z)return C.toArray();if((0,E.m)(C))return C;throw new z.aV(L,z.rH.InvalidParameter,S)}function W(C,L){const S=C.length,c=Math.floor(S/2);return 0===S?[]:1===S?[C[0]]:function $(C,L,S){const c=[];for(;C.length>0||L.length>0;)if(C.length>0&&L.length>0){let g=S(C[0],L[0]);isNaN(g)&&(g=0),g<=0?(c.push(C[0]),C=C.slice(1)):(c.push(L[0]),L=L.slice(1))}else C.length>0?(c.push(C[0]),C=C.slice(1)):L.length>0&&(c.push(L[0]),L=L.slice(1));return c}(W(C.slice(0,c),L),W(C.slice(c,S),L),L)}function A(C,L){return k.apply(this,arguments)}function k(){return(k=(0,M.Z)(function*(C,L){const S=C.length,c=Math.floor(S/2);if(0===S)return[];if(1===S)return[C[0]];const g=[yield A(C.slice(0,c),L),yield A(C.slice(c,S),L)];return B(g[0],g[1],L,[])})).apply(this,arguments)}function B(C,L,S,c){return G.apply(this,arguments)}function G(){return(G=(0,M.Z)(function*(C,L,S,c){const g=c;if(!(C.length>0||L.length>0))return c;if(C.length>0&&L.length>0){let y=yield S(C[0],L[0]);return isNaN(y)&&(y=1),y<=0?(g.push(C[0]),C=C.slice(1)):(g.push(L[0]),L=L.slice(1)),B(C,L,S,c)}return C.length>0?(g.push(C[0]),B(C=C.slice(1),L,S,c)):L.length>0?(g.push(L[0]),B(C,L=L.slice(1),S,c)):void 0})).apply(this,arguments)}function H(C,L,S,c){(0,E.y)(S,1,2,C,L);let g=S[0];if((0,E.x)(g)&&(g=g.toArray()),!1===(0,E.m)(g))throw new z.aV(C,z.rH.InvalidParameter,L);if(S.length>1){if(!1===(0,E.i)(S[1]))throw new z.aV(C,z.rH.InvalidParameter,L);let l=g;const x=S[1].createFunction(C);return c?A(l,x):(l=W(l,(j,X)=>x(j,X)),l)}let y=g;if(0===y.length)return[];const w={};for(let l=0;l1||"String"===V?W(y,(l,x)=>{if(null==l||l===E.v)return null==x||x===E.v?0:1;if(null==x||x===E.v)return-1;const j=(0,E.j)(l),X=(0,E.j)(x);return jl-x):"Boolean"===V?W(y,(l,x)=>l===x?0:x?-1:1):"Date"===V?W(y,(l,x)=>x-l):y.slice(0),y}b.functions.array=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{(0,E.y)(g,1,2,C,L);const y=(0,E.g)(g[0]);if(isNaN(y)||!1===(0,E.z)(y))throw new z.aV(C,z.rH.InvalidParameter,L);const w=(0,E.A)(g[1],null),U=new Array(y);return U.fill(w),U})},b.functions.front=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,1,1,C,L),(0,E.x)(g[0])){if(g[0].length()<=0)throw new z.aV(C,z.rH.OutOfBounds,L);return g[0].get(0)}if((0,E.m)(g[0])){if(g[0].length<=0)throw new z.aV(C,z.rH.OutOfBounds,L);return g[0][0]}throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.back=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,1,1,C,L),(0,E.x)(g[0])){if(g[0].length()<=0)throw new z.aV(C,z.rH.OutOfBounds,L);return g[0].get(g[0].length()-1)}if((0,E.m)(g[0])){if(g[0].length<=0)throw new z.aV(C,z.rH.OutOfBounds,L);return g[0][g[0].length-1]}throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.push=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,1,2,C,L),(0,E.m)(g[0]))return g[0][g[0].length]=g[1],g[0].length;throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.pop=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,1,1,C,L),(0,E.m)(g[0])){if(g[0].length<=0)throw new z.aV(C,z.rH.OutOfBounds,L);const y=g[0][g[0].length-1];return g[0].length=g[0].length-1,y}throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.erase=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,2,2,C,L),(0,E.m)(g[0])){let y=(0,E.g)(g[1]);if(isNaN(y)||!1===(0,E.z)(y))throw new z.aV(C,z.rH.InvalidParameter,L);const w=g[0];if(w.length<=0)throw new z.aV(C,z.rH.OutOfBounds,L);if(y<0&&(y=w.length+y),y<0)throw new z.aV(C,z.rH.OutOfBounds,L);if(y>=w.length)throw new z.aV(C,z.rH.OutOfBounds,L);return w.splice(y,1),E.v}throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.insert=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,3,3,C,L),(0,E.m)(g[0])){const y=(0,E.g)(g[1]);if(isNaN(y)||!1===(0,E.z)(y))throw new z.aV(C,z.rH.InvalidParameter,L);const w=g[2],U=g[0];if(y>U.length)throw new z.aV(C,z.rH.OutOfBounds,L);if(y<0&&y<-1*U.length)throw new z.aV(C,z.rH.OutOfBounds,L);return y===U.length?(U[y]=w,E.v):(U.splice(y,0,w),E.v)}throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.resize=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,2,3,C,L),(0,E.m)(g[0])){const y=(0,E.g)(g[1]);if(isNaN(y)||!1===(0,E.z)(y))throw new z.aV(C,z.rH.InvalidParameter,L);if(y<0)throw new z.aV(C,z.rH.InvalidParameter,L);const w=(0,E.A)(g[2],null),U=g[0];if(U.length>=y)return U.length=y,E.v;const V=U.length;U.length=y;for(let l=V;l{if((0,E.y)(g,2,2,C,L),(0,E.m)(g[0])){const y=g[1];return g[0].findIndex(w=>(0,E.s)(w,y))>-1}if((0,E.x)(g[0])){const y=g[1];return g[0].toArray().findIndex(w=>(0,E.s)(w,y))>-1}throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.slice=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{if((0,E.y)(g,1,3,C,L),(0,E.m)(g[0])){const y=(0,E.g)((0,E.A)(g[1],0)),w=(0,E.g)((0,E.A)(g[2],g[0].length));if(isNaN(y)||!1===(0,E.z)(y))throw new z.aV(C,z.rH.InvalidParameter,L);if(isNaN(w)||!1===(0,E.z)(w))throw new z.aV(C,z.rH.InvalidParameter,L);return g[0].slice(y,w)}if((0,E.x)(g[0])){const y=g[0],w=(0,E.g)((0,E.A)(g[1],0)),U=(0,E.g)((0,E.A)(g[2],y.length()));if(isNaN(w)||!1===(0,E.z)(w))throw new z.aV(C,z.rH.InvalidParameter,L);if(isNaN(U)||!1===(0,E.z)(U))throw new z.aV(C,z.rH.InvalidParameter,L);return y.toArray().slice(w,U)}throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.splice=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{const y=[];for(let w=0;w{if((0,E.y)(g,2,2,C,L),(0,E.m)(g[0]))return(0,E.g)(g[1])>=g[0].length?g[0].slice(0):g[0].slice(0,(0,E.g)(g[1]));if((0,E.x)(g[0]))return(0,E.g)(g[1])>=g[0].length()?g[0].slice(0):g[0].slice(0,(0,E.g)(g[1]));throw new z.aV(C,z.rH.InvalidParameter,L)})},b.functions.first=function(C,L){return b.standardFunction(C,L,(S,c,g)=>((0,E.y)(g,1,1,C,L),(0,E.m)(g[0])?0===g[0].length?null:g[0][0]:(0,E.x)(g[0])?0===g[0].length()?null:g[0].get(0):null))},"sync"===b.mode&&(b.functions.sort=function(C,L){return b.standardFunction(C,L,(S,c,g)=>H(C,L,g,!1))},b.functions.any=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{(0,E.y)(g,2,2,C,L);const y=g[1].createFunction(C),w=F(g[0],C,L);for(const U of w){const V=y(U);if((0,E.a)(V)&&!0===V)return!0}return!1})},b.functions.all=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{(0,E.y)(g,2,2,C,L);const y=g[1].createFunction(C),w=F(g[0],C,L);for(const U of w)if(!0!==y(U))return!1;return!0})},b.functions.none=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{(0,E.y)(g,2,2,C,L);const y=g[1].createFunction(C),w=F(g[0],C,L);for(const U of w)if(!0===y(U))return!1;return!0})},b.functions.reduce=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{(0,E.y)(g,2,3,C,L);const y=g[1].createFunction(C),w=F(g[0],C,L);return 2===g.length?0===w.length?null:w.reduce((U,V)=>{const l=y(U,V);return void 0!==l&&l!==E.v?l:null}):w.reduce((U,V)=>{const l=y(U,V);return void 0!==l&&l!==E.v?l:null},g[2])})},b.functions.map=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{(0,E.y)(g,2,2,C,L);const y=g[1].createFunction(C),w=F(g[0],C,L),U=[];for(const V of w){const l=y(V);U.push(void 0!==l&&l!==E.v?l:null)}return U})},b.functions.filter=function(C,L){return b.standardFunction(C,L,(S,c,g)=>{(0,E.y)(g,2,2,C,L);const y=g[1].createFunction(C),w=F(g[0],C,L),U=[];for(const V of w)!0===y(V)&&U.push(V);return U})}),"async"===b.mode&&(b.functions.sort=function(C,L){return b.standardFunctionAsync(C,L,(S,c,g)=>H(C,L,g,!0))},b.functions.any=function(C,L){return b.standardFunctionAsync(C,L,function(){var S=(0,M.Z)(function*(c,g,y){(0,E.y)(y,2,2,C,L);const w=y[1].createFunction(C),U=F(y[0],C,L);for(const V of U){const l=yield w(V);let x=null;if(x=(0,f.y8)(x)?yield l:l,(0,E.a)(x)&&!0===x)return!0}return!1});return function(c,g,y){return S.apply(this,arguments)}}())},b.functions.all=function(C,L){return b.standardFunctionAsync(C,L,function(){var S=(0,M.Z)(function*(c,g,y){(0,E.y)(y,2,2,C,L);const w=y[1].createFunction(C),U=F(y[0],C,L);for(const V of U){const l=yield w(V);let x=null;if(x=(0,f.y8)(x)?yield l:l,!0!==x)return!1}return!0});return function(c,g,y){return S.apply(this,arguments)}}())},b.functions.none=function(C,L){return b.standardFunctionAsync(C,L,function(){var S=(0,M.Z)(function*(c,g,y){(0,E.y)(y,2,2,C,L);const w=y[1].createFunction(C),U=F(y[0],C,L);for(const V of U){const l=yield w(V);let x=null;if(x=(0,f.y8)(x)?yield l:l,!0===x)return!1}return!0});return function(c,g,y){return S.apply(this,arguments)}}())},b.functions.filter=function(C,L){return b.standardFunctionAsync(C,L,function(){var S=(0,M.Z)(function*(c,g,y){(0,E.y)(y,2,2,C,L);const w=y[1].createFunction(C),U=F(y[0],C,L),V=[];for(const l of U){const x=yield w(l);let j=null;j=(0,f.y8)(j)?yield x:x,!0===j&&V.push(l)}return V});return function(c,g,y){return S.apply(this,arguments)}}())},b.functions.reduce=function(C,L){return b.standardFunctionAsync(C,L,(S,c,g)=>{(0,E.y)(g,2,3,C,L);const y=g[1].createFunction(C),w=F(g[0],C,L);let U=null;if(g.length>2){const V=(0,E.A)(g[2],null);U=w.reduce(function(){var l=(0,M.Z)(function*(x,j){let X=yield x;return void 0!==X&&X!==E.v||(X=null),y(X,j)});return function(x,j){return l.apply(this,arguments)}}(),Promise.resolve(V))}else{if(0===w.length)return null;U=w.reduce(function(){var V=(0,M.Z)(function*(l,x,j){if(j<=1)return y(l,x);let X=yield l;return void 0!==X&&X!==E.v||(X=null),y(X,x)});return function(l,x,j){return V.apply(this,arguments)}}())}return U.then(V=>void 0!==V&&V!==E.v?V:null)})},b.functions.map=function(C,L){return b.standardFunctionAsync(C,L,function(){var S=(0,M.Z)(function*(c,g,y){(0,E.y)(y,2,2,C,L);const w=y[1].createFunction(C),U=F(y[0],C,L),V=[];for(const l of U){const x=yield w(l);let j=null;j=(0,f.y8)(j)?yield x:x,V.push(void 0!==j&&j!==E.v?j:null)}return V});return function(c,g,y){return S.apply(this,arguments)}}())})}},Symbol.toStringTag,{value:"Module"}))},47562:(Ve,De,Z)=>{Z.d(De,{A:()=>me,B:()=>fe,C:()=>rt,D:()=>pt,E:()=>Qe,F:()=>It,G:()=>xt,H:()=>Tt,I:()=>y,J:()=>Bt,K:()=>gt,L:()=>x,M:()=>Xe,N:()=>he,O:()=>O,P:()=>re,Q:()=>ee,R:()=>w,S:()=>Y,T:()=>Be,U:()=>dt,V:()=>Ct,W:()=>We,X:()=>Nt,Y:()=>vt,Z:()=>qe,_:()=>Ne,a:()=>se,b:()=>de,c:()=>Fe,d:()=>_,e:()=>N,f:()=>oe,g:()=>Ce,h:()=>Dt,i:()=>j,j:()=>$e,k:()=>He,l:()=>it,m:()=>ge,n:()=>_e,o:()=>V,p:()=>l,q:()=>yt,r:()=>ft,s:()=>at,t:()=>ke,u:()=>te,v:()=>U,w:()=>ct,x:()=>Ye,y:()=>ht,z:()=>ie});var M=Z(15861),z=Z(7652),R=Z(98362),E=Z(5371),f=Z(26685),K=Z(2004),Q=Z(21674),b=Z(72854),F=Z(72642),W=Z(37118),$=Z(55214),A=Z(21837),k=Z(62208),B=Z(75327),G=Z(25748),H=Z(56683),C=Z(77132),L=Z(78778),S=Z(25919);class c{constructor(T){this.value=T}}class g{constructor(T){this.value=T}}const y=g,w=c,U={type:"VOID"},V={type:"BREAK"},l={type:"CONTINUE"};function x(p,T,J){return""===T||null==T||T===J||T===J?p:p=p.split(T).join(J)}function j(p){return p instanceof z.Rm}function X(p){return p instanceof L.P}function oe(p){return!!(Fe(p)||de(p)||He(p)||se(p)||null===p||p===U||"number"==typeof p)}function me(p,T){return void 0===p?T:p}function fe(p){return null==p?"":ge(p)||Ye(p)?"Array":He(p)?"Date":Fe(p)?"String":se(p)?"Boolean":de(p)?"Number":"esri.arcade.Attachment"===p?.declaredClass?"Attachment":"esri.arcade.Portal"===p?.declaredClass?"Portal":"esri.arcade.Dictionary"===p?.declaredClass?"Dictionary":p instanceof L.P?"Module":ct(p)?"Feature":p instanceof F.Z?"Point":p instanceof W.Z?"Polygon":p instanceof $.Z?"Polyline":p instanceof b.Z?"Multipoint":p instanceof K.Z?"Extent":j(p)?"Function":Be(p)?"FeatureSet":dt(p)?"FeatureSetCollection":p===U?"":"number"==typeof p&&isNaN(p)?"Number":"Unrecognised Type"}function Fe(p){return"string"==typeof p||p instanceof String}function se(p){return"boolean"==typeof p}function de(p){return"number"==typeof p}function ie(p){return"number"==typeof p&&isFinite(p)&&Math.floor(p)===p}function ge(p){return p instanceof Array}function ct(p){return"esri.arcade.Feature"===p?.arcadeDeclaredClass}function Be(p){return!0===(p&&p.declaredRootClass&&"esri.arcade.featureset.support.FeatureSet"===p.declaredRootClass)}function dt(p){return!0===(p&&p.declaredRootClass&&"esri.arcade.featureSetCollection"===p.declaredRootClass)}function Ye(p){return p instanceof R.Z}function He(p){return p instanceof Date}function ht(p,T,J,ae,ce){if(p.lengthJ)throw new S.aV(ae,S.rH.WrongNumberOfParameters,ce)}function Qe(p){return p<0?-Math.round(-p):Math.round(p)}function Xe(){let p=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,T=>{const J=(p+16*Math.random())%16|0;return p=Math.floor(p/16),("x"===T?J:3&J|8).toString(16)})}function Le(p,T){return isNaN(p)||null==T||""===T?p.toString():(T=x(T,"\u2030",""),T=x(T,"\xa4",""),(0,B.WU)(p,{pattern:T}))}function Me(p,T){const J=A.ou.fromJSDate(p);return null==T||""===T?J.toISO({suppressMilliseconds:!0}):J.toFormat(rt(T),{locale:(0,H.Kd)(),numberingSystem:"latn"})}function rt(p){p=p.replace(/LTS|LT|LL?L?L?|l{1,4}/g,"[$&]");let T="";const J=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const ae of p.match(J))switch(ae){case"D":T+="d";break;case"DD":T+="dd";break;case"DDD":T+="o";break;case"d":T+="c";break;case"ddd":T+="ccc";break;case"dddd":T+="cccc";break;case"M":T+="L";break;case"MM":T+="LL";break;case"MMM":T+="LLL";break;case"MMMM":T+="LLLL";break;case"YY":T+="yy";break;case"Y":case"YYYY":T+="yyyy";break;case"Q":T+="q";break;case"Z":T+="ZZ";break;case"ZZ":T+="ZZZ";break;case"S":T+="'S'";break;case"SS":T+="'SS'";break;case"SSS":T+="u";break;case"A":case"a":T+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":T+=ae;break;default:ae.length>=2&&"["===ae.slice(0,1)&&"]"===ae.slice(-1)?T+=`'${ae.slice(1,-1)}'`:T+=`'${ae}'`}return T}function we(p,T,J){switch(J){case">":return p>T;case"<":return p=":return p>=T;case"<=":return p<=T}return!1}function ft(p,T,J){if(null===p){if(null===T||T===U)return we(null,null,J);if(de(T))return we(0,T,J);if(Fe(T)||se(T))return we(0,Ce(T),J);if(He(T))return we(0,T.getTime(),J)}if(p===U){if(null===T||T===U)return we(null,null,J);if(de(T))return we(0,T,J);if(Fe(T)||se(T))return we(0,Ce(T),J);if(He(T))return we(0,T.getTime(),J)}else if(de(p)){if(de(T))return we(p,T,J);if(se(T))return we(p,Ce(T),J);if(null===T||T===U)return we(p,0,J);if(Fe(T))return we(p,Ce(T),J);if(He(T))return we(p,T.getTime(),J)}else if(Fe(p)){if(Fe(T))return we($e(p),$e(T),J);if(He(T))return we(Ce(p),T.getTime(),J);if(de(T))return we(Ce(p),T,J);if(null===T||T===U)return we(Ce(p),0,J);if(se(T))return we(Ce(p),Ce(T),J)}else if(He(p)){if(He(T))return we(p,T,J);if(null===T||T===U)return we(p.getTime(),0,J);if(de(T))return we(p.getTime(),T,J);if(se(T)||Fe(T))return we(p.getTime(),Ce(T),J)}else if(se(p)){if(se(T))return we(p,T,J);if(de(T))return we(Ce(p),Ce(T),J);if(He(T))return we(Ce(p),T.getTime(),J);if(null===T||T===U)return we(Ce(p),0,J);if(Fe(T))return we(Ce(p),Ce(T),J)}return!!at(p,T)&&("<="===J||">="===J)}function at(p,T){if(p===T||null===p&&T===U||null===T&&p===U)return!0;if(He(p)&&He(T))return p.getTime()===T.getTime();if(p instanceof E.Z||p instanceof f.Z)return p.equalityTest(T);if(p instanceof F.Z&&T instanceof F.Z){const J=p.cache._arcadeCacheId,ae=T.cache._arcadeCacheId;if(null!=J)return J===ae}return void 0!==p&&void 0!==T&&null!==p&&null!==T&&"object"==typeof p&&"object"==typeof T&&(p._arcadeCacheId===T._arcadeCacheId&&null!=p._arcadeCacheId||p._underlyingGraphic===T._underlyingGraphic&&null!=p._underlyingGraphic)}function $e(p,T){if(Fe(p))return p;if(null===p)return"";if(de(p))return Le(p,T);if(se(p))return p.toString();if(He(p))return Me(p,T);if(p instanceof Q.Z)return JSON.stringify(p.toJSON());if(ge(p)){const J=[];for(let ae=0;aeae.key===ce.key?0:"spatialReference"===ae.key?1:"spatialReference"===ce.key||ae.keyce.key?1:0);if(ge(p)){const ae=[];for(let ce=0;ce0)return p;return null}if(p instanceof $.Z){if(0===p.paths.length)return null;for(const T of p.paths)if(T.length>0)return p;return null}return p instanceof b.Z?0===p.points.length?null:p:p instanceof K.Z?"NaN"===p.xmin||null===p.xmin||isNaN(p.xmin)?null:p:null}function qe(p,T){if(!p||!p.domain)return T;let J=null;if("string"===p.field.type||"esriFieldTypeString"===p.field.type)T=$e(T);else{if(null==T)return null;if(""===T)return T;T=Ce(T)}for(let ae=0;aeTe.id===ae&&(ce=Te.domains&&Te.domains[Pe.name],ce&&"inherited"===ce.type&&(ce=St(Pe.name,T),be=!0),!0)),be||ce||(ce=St(p,T)),{field:Pe,domain:ce}}function St(p,T){let J;return T.fields.some(ae=>(ae.name.toLowerCase()===p.toLowerCase()&&(J=ae.domain),!!J)),J}function _t(p,T){T||(T={}),"function"==typeof T&&(T={cmp:T});const J="boolean"==typeof T.cycles&&T.cycles,ae=T.cmp&&(ce=T.cmp,function(Pe){return function(Te,ze){return ce({key:Te,value:Pe[Te]},{key:ze,value:Pe[ze]})}});var ce;const be=[];return function Pe(Te){if(Te&&Te.toJSON&&"function"==typeof Te.toJSON&&(Te=Te.toJSON()),void 0===Te)return;if("number"==typeof Te)return isFinite(Te)?""+Te:"null";if("object"!=typeof Te)return JSON.stringify(Te);let ze,Ge;if(Array.isArray(Te)){for(Ge="[",ze=0;ze0&&(be=p[0].spatialReference,J=p[0].hasZ,ae=p[0].hasM)}else if(p instanceof f.Z)ce=p._elements,ce.length>0&&(J=p._hasZ,ae=p._hasM,be=p.get(0).spatialReference);else{if(!Ye(p))throw new S.aV(null,S.rH.InvalidParameter,null);for(const Pe of p.toArray())mt(ce,Pe);ce.length>0&&(be=p.get(0).spatialReference,J=!0===p.get(0).hasZ,ae=!0===p.get(0).hasM)}return 0===ce.length?null:((0,G.bu)(ce,ae,J)||(ce=ce.slice(0).reverse()),new W.Z({rings:[ce],spatialReference:be,hasZ:J,hasM:ae}))}return p}function Tt(p,T){if(ge(p)||Ye(p)){let J=!1,ae=!1,ce=[],be=T;if(ge(p)){for(const Pe of p)mt(ce,Pe);ce.length>0&&(be=p[0].spatialReference,J=!0===p[0].hasZ,ae=!0===p[0].hasM)}else if(p instanceof f.Z)ce=p._elements,ce.length>0&&(J=p._hasZ,ae=p._hasM,be=p.get(0).spatialReference);else if(Ye(p)){for(const Pe of p.toArray())mt(ce,Pe);ce.length>0&&(be=p.get(0).spatialReference,J=!0===p.get(0).hasZ,ae=!0===p.get(0).hasM)}return 0===ce.length?null:new $.Z({paths:[ce],spatialReference:be,hasZ:J,hasM:ae})}return p}function gt(p,T){if(ge(p)||Ye(p)){let J=!1,ae=!1,ce=[],be=T;if(ge(p)){for(const Pe of p)mt(ce,Pe);ce.length>0&&(be=p[0].spatialReference,J=!0===p[0].hasZ,ae=!0===p[0].hasM)}else if(p instanceof f.Z)ce=p._elements,ce.length>0&&(J=p._hasZ,ae=p._hasM,be=p.get(0).spatialReference);else if(Ye(p)){for(const Pe of p.toArray())mt(ce,Pe);ce.length>0&&(be=p.get(0).spatialReference,J=!0===p.get(0).hasZ,ae=!0===p.get(0).hasM)}return 0===ce.length?null:new b.Z({points:ce,spatialReference:be,hasZ:J,hasM:ae})}return p}function Nt(p,T=!1){const J=[];if(null===p)return J;if(!0===ge(p)){for(let ae=0;ae{setTimeout(()=>{T(p)},0)})):p}function te(p,T,J){switch(J){case"&":return p&T;case"|":return p|T;case"^":return p^T;case"<<":return p<>":return p>>T;case">>>":return p>>>T}}function _(p,T=null){return null==p?null:se(p)||de(p)||Fe(p)?p:p instanceof Q.Z?!0===T?.keepGeometryType?p:p.toJSON():p instanceof R.Z?p.toArray().map(J=>_(J,T)):p instanceof Array?p.map(J=>_(J,T)):p instanceof Date?p:null!==p&&"object"==typeof p&&void 0!==p.castAsJson?p.castAsJson(T):null}function v(p,T,J,ae,ce){return I.apply(this,arguments)}function I(){return(I=(0,M.Z)(function*(p,T,J,ae,ce){const be=yield N(p,T,J);ce[ae]=be})).apply(this,arguments)}function N(p){return ne.apply(this,arguments)}function ne(){return(ne=(0,M.Z)(function*(p,T=null,J=null){if(p instanceof R.Z&&(p=p.toArray()),null==p)return null;if(oe(p)||p instanceof Q.Z||p instanceof Date)return _(p,J);if(p instanceof Array){const ae=[],ce=[];for(const be of p)null===be||oe(be)||be instanceof Q.Z||be instanceof Date?ce.push(_(be,J)):(ce.push(null),ae.push(v(be,T,J,ce.length-1,ce)));return ae.length>0&&(yield Promise.all(ae)),ce}return null!==p&&"object"==typeof p&&void 0!==p.castAsJsonAsync?p.castAsJsonAsync(T,J):null})).apply(this,arguments)}function re(p,T,J){const ae=p.fullSchema();return null!==ae&&ae.fields?vt(T,ae,p,J):null}function O(p){const T=p.fullSchema();return null===T?null:T.fields&&T.typeIdField?{subtypeField:T.typeIdField,subtypes:T.types?T.types.map(J=>({name:J.name,code:J.id})):[]}:null}function ee(p,T,J,ae){const ce=p.fullSchema();if(null===ce||!ce.fields)return null;const be=vt(T,ce,p,ae);if(void 0===J)try{J=p.field(T)}catch{return null}return qe(be,J)}function Y(p,T,J,ae){const ce=p.fullSchema();if(null===ce||!ce.fields)return null;if(void 0===J){try{J=p.field(T)}catch{return null}return J}return Ne(vt(T,ce,p,ae),J)}function he(p){const T=p.fullSchema();if(null===T||!T.fields)return null;const J=[];for(const ae of T.fields)J.push((0,C.Sh)(ae));return{objectIdField:T.objectIdField,globalIdField:T.globalIdField,geometryType:void 0===C.q2[T.geometryType]?"":C.q2[T.geometryType],fields:J}}const _e=Object.freeze(Object.defineProperty({__proto__:null,ReturnResultE:c,ImplicitResultE:g,ImplicitResult:y,ReturnResult:w,voidOperation:U,breakResult:V,continueResult:l,multiReplace:x,isFunctionParameter:j,isModule:X,isSimpleType:oe,defaultUndefined:me,getType:fe,isString:Fe,isBoolean:se,isNumber:de,isInteger:ie,isArray:ge,isFeature:ct,isFeatureSet:Be,isFeatureSetCollection:dt,isImmutableArray:Ye,isDate:He,pcCheck:ht,absRound:Qe,generateUUID:Xe,formatNumber:Le,formatDate:Me,standardiseDateFormat:rt,greaterThanLessThan:ft,equalityTest:at,toString:$e,toNumberArray:Ct,toStringExplicit:ke,toNumber:Ce,toDate:it,toDateTime:pt,toBoolean:Dt,fixSpatialReference:yt,fixNullGeometry:It,getDomainValue:qe,getDomainCode:Ne,getDomain:vt,stableStringify:_t,autoCastFeatureToGeometry:xt,autoCastArrayOfPointsToPolygon:Bt,autoCastArrayOfPointsToPolyline:Tt,autoCastArrayOfPointsToMultiPoint:gt,toStringArray:Nt,tick:We,binaryOperator:te,castAsJson:_,castAsJsonAsync:N,featureFullDomain:re,featureSubtypes:O,featureDomainValueLookup:ee,featureDomainCodeLookup:Y,featureSchema:he},Symbol.toStringTag,{value:"Module"}))},4988:(Ve,De,Z)=>{Z.r(De),Z.d(De,{Dictionary:()=>R.Z,arcade:()=>pr,arcadeFeature:()=>E.Z,convertFeatureLayerToFeatureSet:()=>Ei,convertJsonToArcade:()=>wi,convertMapToFeatureSetCollection:()=>Sr,convertServiceUrlToWorkspace:()=>xi,createExecContext:()=>qt,createFeature:()=>wr,createFunction:()=>Un,createSyntaxTree:()=>kt,dependsOnView:()=>Zn,enableFeatureSetOperations:()=>Ir,enableGeometryOperations:()=>br,evalSyntaxTree:()=>hn,executeAsyncFunction:()=>Qt,executeFunction:()=>Cr,extractFieldNames:()=>fn,getArcadeType:()=>Er,getViewInfo:()=>vr,hasGeometryFunctions:()=>m,hasGeometryOperations:()=>h,hasVariable:()=>Ar,loadScriptDependencies:()=>Fi,updateExecContext:()=>Fr}),Z(29132);var z=Z(15861),R=Z(6729),E=Z(42275),f=Z(47562),K=Z(19927),Q=Z(67525),b=Z(84228),F=Z(24499),W=Z(63461),$=Z(53840),A=Z(97536),k=Z(32576),B=Z(10699),G=Z(21674),H=Z(65234),C=Z(9288),L=Z(78778),S=Z(7652),c=Z(25919);function w(s,i,a){try{return a(s,null,i.arguments)}catch(o){throw o}}function U(s,i){try{switch(i.type){case"EmptyStatement":return"lc.voidOperation";case"VariableDeclarator":return function He(s,i){let a=null===i.init?null:U(s,i.init);a===f.v&&(a=null);const o=i.id.name.toLowerCase();if(Be(o),null!==s.localScope){if(void 0!==s.localScope[o])return"lscope['"+o+"']="+a+"; ";if(void 0!==s.localScope._SymbolsMap[o])return"lscope['"+s.localScope._SymbolsMap[o]+"']="+a+"; ";{const D=Ue(s);return s.localScope._SymbolsMap[o]=D,s.mangleMap[o]=D,"lscope['"+D+"']="+a+"; "}}if(void 0!==s.globalScope[o])return"gscope['"+o+"']="+a+"; ";if(void 0!==s.globalScope._SymbolsMap[o])return"gscope['"+s.globalScope._SymbolsMap[o]+"']="+a+"; ";if(s.undeclaredGlobalsInFunctions.has(o)){const D=s.undeclaredGlobalsInFunctions.get(o).manglename;return s.globalScope._SymbolsMap[o]=D,s.mangleMap[o]=D,s.undeclaredGlobalsInFunctions.delete(o),"gscope[lang.setAssig('"+D+"', runtimeCtx)]="+a+"; "}const d=Ue(s);return s.globalScope._SymbolsMap[o]=d,s.mangleMap[o]=d,"gscope['"+d+"']="+a+"; "}(s,i);case"VariableDeclaration":return function Ye(s,i){const a=[];for(let o=0;onew gt(xe),prepare(xe,Ee){let Re=xe.spatialReference;null==Re&&(Re=new H.Z({wkid:102100}));const nt=yt(xe.vars,xe.customfunctions,Ee);return{localStack:[],isAsync:Ee,exports:ue,exportmangle:le,gdefs:{},moduleFactory:P,moduleFactoryMap:q,moduleSingletons:xe.moduleSingletons,mangleMap:this.mangles,spatialReference:Re,globalScope:nt,abortSignal:xe.abortSignal??{aborted:!1},localScope:null,services:xe.services,console:xe.console?xe.console:xt,lrucache:xe.lrucache,interceptor:xe.interceptor,symbols:{symbolCounter:0},depthCounter:xe.depthCounter}}};return new Function("context","spatialReference",D).bind(ye)}(o.syntax,{interceptor:s.interceptor,services:s.services,moduleFactory:s.moduleFactory,lrucache:s.lrucache,libraryResolver:s.libraryResolver,customfunctions:s.customfunctions,vars:{}},s.isAsync)),s.moduleFactoryMap[d]=o.uri;let D="";if(D=s.isAsync?"(yield lang.loadModule('"+d+"', runtimeCtx) ); ":"lang.loadModule('"+d+"', runtimeCtx); ",void 0!==s.globalScope[a])return"gscope['"+a+"']="+D;if(void 0!==s.globalScope._SymbolsMap[a])return"gscope['"+s.globalScope._SymbolsMap[a]+"']="+D;let P="";return s.undeclaredGlobalsInFunctions.has(a)?(P=s.undeclaredGlobalsInFunctions.get(a).manglename,s.undeclaredGlobalsInFunctions.delete(a)):P=Ue(s),s.globalScope._SymbolsMap[a]=P,s.mangleMap[a]=P,"gscope[lang.setAssig('"+P+"', runtimeCtx)]="+D}(s,i);case"ExportNamedDeclaration":return function ct(s,i){const a=U(s,i.declaration);if("FunctionDeclaration"===i.declaration.type)s.exports[i.declaration.id.name.toLowerCase()]="function";else if("VariableDeclaration"===i.declaration.type)for(const o of i.declaration.declarations)s.exports[o.id.name.toLowerCase()]="variable";return a}(s,i);case"ReturnStatement":return function ie(s,i){return null===i.argument?"return lc.voidOperation":"return "+U(s,i.argument)}(s,i);case"IfStatement":return se(s,i);case"ExpressionStatement":return function fe(s,i){return"AssignmentExpression"===i.expression.type?"lastStatement = lc.voidOperation; "+U(s,i.expression)+"; \n ":"lastStatement = "+U(s,i.expression)+"; "}(s,i);case"AssignmentExpression":return function me(s,i){const a=U(s,i.right);let o=null,d="";if("MemberExpression"===i.left.type)return o=U(s,i.left.object),!0===i.left.computed?d=U(s,i.left.property):(d="'"+i.left.property.name+"'",Be(i.left.property.name)),"lang.assignmember("+o+","+d+",'"+i.operator+"',"+a+")";if(o=i.left.name.toLowerCase(),Be(o),null!==s.localScope){if(void 0!==s.localScope[o])return"lscope['"+o+"']=lang.assign("+a+",'"+i.operator+"', lscope['"+o+"'])";if(void 0!==s.localScope._SymbolsMap[o])return"lscope['"+s.localScope._SymbolsMap[o]+"']=lang.assign("+a+",'"+i.operator+"', lscope['"+s.localScope._SymbolsMap[o]+"'])"}if(void 0!==s.globalScope[o])return"gscope['"+o+"']=lang.assign("+a+",'"+i.operator+"', gscope['"+o+"'])";if(void 0!==s.globalScope._SymbolsMap[o])return"gscope['"+s.globalScope._SymbolsMap[o]+"']=lang.assign("+a+",'"+i.operator+"', gscope['"+s.globalScope._SymbolsMap[o]+"'])";if(null!==s.localScope){if(s.undeclaredGlobalsInFunctions.has(o))return"gscope[lang.chkAssig('"+s.undeclaredGlobalsInFunctions.get(o).manglename+"',runtimeCtx)]=lang.assign("+a+",'"+i.operator+"', gscope['"+s.undeclaredGlobalsInFunctions.get(o).manglename+"'])";const D={manglename:Ue(s),node:i.argument};return s.undeclaredGlobalsInFunctions.set(o,D),"gscope[lang.chkAssig('"+D.manglename+"',runtimeCtx)]=lang.assign("+a+",'"+i.operator+"', gscope['"+D.manglename+"'])"}throw new c.aV(s,c.rH.InvalidIdentifier,i)}(s,i);case"UpdateExpression":return function X(s,i){let a=null,o="";if("MemberExpression"===i.argument.type)return a=U(s,i.argument.object),!0===i.argument.computed?o=U(s,i.argument.property):(o="'"+i.argument.property.name+"'",Be(i.argument.property.name)),"lang.memberupdate("+a+","+o+",'"+i.operator+"',"+i.prefix+")";if(a=i.argument.name.toLowerCase(),Be(a),null!==s.localScope){if(void 0!==s.localScope[a])return"lang.update(lscope, '"+a+"','"+i.operator+"',"+i.prefix+")";if(void 0!==s.localScope._SymbolsMap[a])return"lang.update(lscope, '"+s.localScope._SymbolsMap[a]+"','"+i.operator+"',"+i.prefix+")"}if(void 0!==s.globalScope[a])return"lang.update(gscope, '"+a+"','"+i.operator+"',"+i.prefix+")";if(void 0!==s.globalScope._SymbolsMap[a])return"lang.update(gscope, '"+s.globalScope._SymbolsMap[a]+"','"+i.operator+"',"+i.prefix+")";if(null!==s.localScope){if(s.undeclaredGlobalsInFunctions.has(a))return"lang.update(gscope,lang.chkAssig( '"+s.undeclaredGlobalsInFunctions.get(a).manglename+"',runtimeCtx),'"+i.operator+"',"+i.prefix+")";const d={manglename:Ue(s),node:i.argument};return s.undeclaredGlobalsInFunctions.set(a,d),"lang.update(gscope, lang.chkAssig('"+d.manglename+"',runtimeCtx),'"+i.operator+"',"+i.prefix+")"}throw new c.aV(s,c.rH.InvalidIdentifier,i)}(s,i);case"BreakStatement":return"break";case"ContinueStatement":return"continue";case"TemplateLiteral":return function Le(s,i){try{const a=[];let o=0;for(const d of i.quasis)a.push(d.value?JSON.stringify(d.value.cooked):JSON.stringify("")),!1===d.tail&&(a.push(i.expressions[o]?"lang.castString(lang.aCheck("+U(s,i.expressions[o])+", 'TemplateLiteral'))":""),o++);return"(["+a.join(",")+"]).join('')"}catch(a){throw a}}(s,i);case"TemplateElement":return JSON.stringify(i.value?i.value.cooked:"");case"ForStatement":return function j(s,i){let a="lastStatement = lc.voidOperation; \n";null!==i.init&&(a+=U(s,i.init)+"; ");const o=Ce(s),d=Ce(s);return a+="var "+o+" = true; ",a+="\n do { ",null!==i.update&&(a+=" if ("+o+"===false) {\n "+U(s,i.update)+" \n}\n "+o+"=false; \n"),null!==i.test&&(a+="var "+d+" = "+U(s,i.test)+"; ",a+="if ("+d+"===false) { break; } else if ("+d+"!==true) { lang.error('"+c.rH.BooleanConditionRequired+"'); }\n"),a+=U(s,i.body),null!==i.update&&(a+="\n "+U(s,i.update)),a+="\n"+o+" = true; \n} while(true); lastStatement = lc.voidOperation; ",a}(s,i);case"ForInStatement":return function x(s,i){const a=Ce(s),o=Ce(s),d=Ce(s);let D="var "+a+" = "+U(s,i.right)+";\n";"VariableDeclaration"===i.left.type&&(D+=U(s,i.left));let P="VariableDeclaration"===i.left.type?i.left.declarations[0].id.name:i.left.name;P=P.toLowerCase(),Be(P);let q="";null!==s.localScope&&(void 0!==s.localScope[P]?q="lscope['"+P+"']":void 0!==s.localScope._SymbolsMap[P]&&(q="lscope['"+s.localScope._SymbolsMap[P]+"']"));let ue="";if(""===q)if(void 0!==s.globalScope[P])q="gscope['"+P+"']";else if(void 0!==s.globalScope._SymbolsMap[P])q="gscope['"+s.globalScope._SymbolsMap[P]+"']";else if(null!==s.localScope)if(s.undeclaredGlobalsInFunctions.has(P))q="gscope['"+s.undeclaredGlobalsInFunctions.get(P).manglename+"']",ue=s.undeclaredGlobalsInFunctions.get(P).manglename;else{const le={manglename:Ue(s),node:i.left};s.undeclaredGlobalsInFunctions.set(P,le),q="gscope['"+le.manglename+"']",ue=le.manglename}return ue&&(D+="lang.chkAssig('"+ue+"',runtimeCtx); \n"),D+="if ("+a+"===null) { lastStatement = lc.voidOperation; }\n ",D+="else if (lc.isArray("+a+") || lc.isString("+a+")) {",D+="var "+o+"="+a+".length; \n",D+="for(var "+d+"=0; "+d+"<"+o+"; "+d+"++) {\n",D+=q+"="+d+";\n",D+=U(s,i.body),D+="\n}\n",D+=" lastStatement = lc.voidOperation; \n",D+=" \n}\n",D+="else if (lc.isImmutableArray("+a+")) {",D+="var "+o+"="+a+".length(); \n",D+="for(var "+d+"=0; "+d+"<"+o+"; "+d+"++) {\n",D+=q+"="+d+";\n",D+=U(s,i.body),D+="\n}\n",D+=" lastStatement = lc.voidOperation; \n",D+=" \n}\n",D+="else if (( "+a+" instanceof lang.Dictionary) || ( "+a+" instanceof lang.Feature)) {",D+="var "+o+"="+a+".keys(); \n",D+="for(var "+d+"=0; "+d+"<"+o+".length; "+d+"++) {\n",D+=q+"="+o+"["+d+"];\n",D+=U(s,i.body),D+="\n}\n",D+=" lastStatement = lc.voidOperation; \n",D+=" \n}\n",s.isAsync&&(D+="else if (lc.isFeatureSet("+a+")) {",D+="var "+o+"="+a+".iterator(runtimeCtx.abortSignal); \n",D+="for(var "+d+"=lang. graphicToFeature( yield "+o+".next(),"+a+"); "+d+"!=null; "+d+"=lang. graphicToFeature( yield "+o+".next(),"+a+")) {\n",D+=q+"="+d+";\n",D+=U(s,i.body),D+="\n}\n",D+=" lastStatement = lc.voidOperation; \n",D+=" \n}\n"),D+="else { lastStatement = lc.voidOperation; } \n",D}(s,i);case"WhileStatement":return function oe(s,i){let a="lastStatement = lc.voidOperation; \n";const o=Ce(s);return a+=`\n var ${o} = true;\n do {\n ${o} = ${U(s,i.test)};\n if (${o}==false) {\n break;\n }\n if (${o}!==true) {\n lang.error('${c.rH.BooleanConditionRequired}');\n }\n ${U(s,i.body)}\n }\n while (${o} !== false);\n lastStatement = lc.voidOperation;\n `,a}(s,i);case"Identifier":return function we(s,i){try{const a=i.name.toLowerCase();if(Be(a),null!==s.localScope){if(void 0!==s.localScope[a])return"lscope['"+a+"']";if(void 0!==s.localScope._SymbolsMap[a])return"lscope['"+s.localScope._SymbolsMap[a]+"']"}if(void 0!==s.globalScope[a])return"gscope['"+a+"']";if(void 0!==s.globalScope._SymbolsMap[a])return"gscope['"+s.globalScope._SymbolsMap[a]+"']";if(null!==s.localScope){if(s.undeclaredGlobalsInFunctions.has(a))return"gscope[lang.chkAssig('"+s.undeclaredGlobalsInFunctions.get(a).manglename+"',runtimeCtx)]";const o={manglename:Ue(s),node:i.argument};return s.undeclaredGlobalsInFunctions.set(a,o),"gscope[lang.chkAssig('"+o.manglename+"',runtimeCtx)]"}throw new c.OF(s,c.rH.InvalidIdentifier,i)}catch(a){throw a}}(s,i);case"MemberExpression":return function ht(s,i){try{let a;return!0===i.computed?a=U(s,i.property):(a="'"+i.property.name+"'",Be(i.property.name)),"lang.member("+U(s,i.object)+","+a+")"}catch(a){throw a}}(s,i);case"Literal":return null==i.value?"null":JSON.stringify(i.value);case"CallExpression":return function ft(s,i){try{if("MemberExpression"===i.callee.type){let d;!0===i.callee.computed?d=U(s,i.callee.property):(d="'"+i.callee.property.name+"'",Be(i.callee.property.name));let D="[";for(let P=0;P0&&(D+=", "),D+=U(s,i.arguments[P]);return D+="]",s.isAsync?"(yield lang.callModuleFunction("+U(s,i.callee.object)+","+D+","+d+",runtimeCtx))":"lang.callModuleFunction("+U(s,i.callee.object)+","+D+","+d+",runtimeCtx)"}if("Identifier"!==i.callee.type)throw new c.OF(s,c.rH.FuncionNotFound,i);const a=i.callee.name.toLowerCase();if("iif"===a)return function at(s,i){try{if(3!==i.arguments.length)throw new c.OF(s,c.rH.WrongNumberOfParameters,i);const a=Ce(s);return`${s.isAsync?"(yield (function() { \n return lang.__awaiter(this, void 0, void 0, function* () {":"function() {"}\n var ${a} = ${U(s,i.arguments[0])};\n \n if (${a} === true) {\n return ${U(s,i.arguments[1])};\n }\n else if (${a} === false) {\n return ${U(s,i.arguments[2])};\n }\n else {\n lang.error('ExecutionErrorCodes.BooleanConditionRequired');\n }\n ${s.isAsync?"})}()))":"}()"}`}catch(a){throw a}}(s,i);if("when"===a)return function $e(s,i){try{if(i.arguments.length<3)throw new c.OF(s,c.rH.WrongNumberOfParameters,i);if(i.arguments.length%2==0)throw new c.OF(s,c.rH.WrongNumberOfParameters,i);const a=Ce(s);let o="var ";for(let d=0;d0&&(d+=", "),d+=U(s,i.arguments[D]);return d+="]",s.isAsync?"(yield lang.callfunc("+o+","+d+",runtimeCtx) )":"lang.callfunc("+o+","+d+",runtimeCtx)"}throw new c.OF(s,c.rH.FuncionNotFound,i)}catch(a){throw a}}(s,i);case"UnaryExpression":return function Qe(s,i){try{return"lang.unary("+U(s,i.argument)+",'"+i.operator+"')"}catch(a){throw a}}(s,i);case"BinaryExpression":return function Me(s,i){try{return"lang.binary("+U(s,i.left)+","+U(s,i.right)+",'"+i.operator+"')"}catch(a){throw a}}(s,i);case"LogicalExpression":return function rt(s,i){try{if("AssignmentExpression"===i.left.type||"UpdateExpression"===i.left.type)throw new c.OF(s,c.rH.LogicalExpressionOnlyBoolean,i);if("AssignmentExpression"===i.right.type||"UpdateExpression"===i.right.type)throw new c.OF(s,c.rH.LogicalExpressionOnlyBoolean,i);if("&&"===i.operator||"||"===i.operator)return"(lang.logicalCheck("+U(s,i.left)+") "+i.operator+" lang.logicalCheck("+U(s,i.right)+"))";throw new c.OF(null,c.rH.LogicExpressionOrAnd,null)}catch(a){throw a}}(s,i);case"ArrayExpression":return function Xe(s,i){try{const a=[];for(let o=0;o0&&(a+=","),a+="lang.strCheck("+("Identifier"===d.key.type?"'"+d.key.name+"'":U(s,d.key))+",'ObjectExpression'),lang.aCheck("+U(s,d.value)+", 'ObjectExpression')"}return a+="])",a}(s,i);case"Property":return function l(s,i){throw new c.OF(s,c.rH.NeverReach,i)}(s,i);case"Array":throw new c.OF(s,c.rH.NeverReach,i);default:throw new c.OF(s,c.rH.Unrecognised,i)}}catch(a){throw a}}function Fe(s,i){return"BlockStatement"===i.type?U(s,i):"ReturnStatement"===i.type||"BreakStatement"===i.type||"ContinueStatement"===i.type?U(s,i)+"; ":"UpdateExpression"===i.type?"lastStatement = "+U(s,i)+"; ":"ExpressionStatement"===i.type?U(s,i):"ObjectExpression"===i.type?"lastStatement = "+U(s,i)+"; ":U(s,i)+"; "}function se(s,i){if("AssignmentExpression"===i.test.type||"UpdateExpression"===i.test.type)throw new c.OF(s,c.rH.BooleanConditionRequired,i);return`if (lang.mustBoolean(${U(s,i.test)}, runtimeCtx) === true) {\n ${Fe(s,i.consequent)}\n } `+(null!==i.alternate?"IfStatement"===i.alternate.type?" else "+se(s,i.alternate):` else {\n ${Fe(s,i.alternate)}\n }\n`:" else {\n lastStatement = lc.voidOperation;\n }\n")}function de(s,i){let a="";for(let o=0;o{throw new c.aV(s,c.rH.Unrecognised,i)})}catch(a){throw a}},ke.decode=function(s,i){try{return w(s,i,(a,o,d)=>{throw new c.aV(s,c.rH.Unrecognised,i)})}catch(a){throw a}},ke.when=function(s,i){try{return w(s,i,(a,o,d)=>{throw new c.aV(s,c.rH.Unrecognised,i)})}catch(a){throw a}};const it={};for(const s in ke)it[s]=new S.Bx(ke[s]);(0,W.registerFunctions)(ke,w);for(const s in ke)ke[s]=new S.Bx(ke[s]);const pt=function(){};pt.prototype=ke;const At=function(){};function Dt(s,i,a){const o={};s||(s={}),a||(a={}),o._SymbolsMap={},o.textformatting=1,o.infinity=1,o.pi=1;for(const d in i)o[d]=1;for(const d in a)o[d]=1;for(const d in s)o[d]=1;return o}function yt(s,i,a){const o=a?new At:new pt;s||(s={}),i||(i={});const d=new R.Z({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});d.immutable=!1,o._SymbolsMap={textformatting:1,infinity:1,pi:1},o.textformatting=d,o.infinity=Number.POSITIVE_INFINITY,o.pi=Math.PI;for(const D in i)o[D]=i[D],o._SymbolsMap[D]=1;for(const D in s)o._SymbolsMap[D]=1,o[D]=s[D]&&"esri.Graphic"===s[D].declaredClass?E.Z.createFromGraphic(s[D]):s[D];return o}function qe(s,i){const a={mode:i,compiled:!0,functions:{},signatures:[],standardFunction:w,standardFunctionAsync:w,evaluateIdentifier:vt};for(let o=0;o0){if("_t"!==a.substr(0,2).toLowerCase()&&void 0!==s.localStack[s.localStack.length-1][a])return s.localStack[s.localStack.length-1][a];const d=s.mangleMap[a];if(void 0!==d&&void 0!==s.localStack[s.localStack.length-1][d])return s.localStack[s.localStack.length-1][d]}if("_t"!==a.substr(0,2).toLowerCase()&&void 0!==s.globalScope[a]||1===s.globalScope._SymbolsMap[a])return s.globalScope[a];const o=s.mangleMap[a];return void 0!==o?s.globalScope[o]:void 0}At.prototype=it,qe([Q.A],"sync"),qe([Q.A],"async");let St=0;const _t={error(s){throw new c.aV(null,s,null)},__awaiter:(s,i,a,o)=>new Promise((d,D)=>{function P(le){try{ue(o.next(le))}catch(ye){D(ye)}}function q(le){try{ue(o.throw(le))}catch(ye){D(ye)}}function ue(le){le.done?d(le.value):le.value&&le.value.then?le.value.then(P,q):(St++,St%100==0?setTimeout(()=>{St=0,P(le.value)},0):P(le.value))}ue((o=o.apply(s,i||[])).next())}),functionDepthchecker:(s,i)=>function(){if(i.depthCounter.depth++,i.localStack.push([]),i.depthCounter.depth>64)throw new c.aV(null,c.rH.MaximumCallDepth,null);const a=s.apply(this,arguments);return(0,B.y8)(a)?a.then(o=>(i.depthCounter.depth--,i.localStack.length=i.localStack.length-1,o)):(i.depthCounter.depth--,i.localStack.length=i.localStack.length-1,a)},chkAssig(s,i){if(void 0===i.gdefs[s])throw new c.aV(i,c.rH.InvalidIdentifier,null);return s},mustBoolean(s,i){if(!0===s||!1===s)return s;throw new c.aV(i,c.rH.BooleanConditionRequired,null)},setAssig:(s,i)=>(i.gdefs[s]=1,s),castString:s=>(0,f.j)(s),aCheck(s,i){if((0,f.i)(s))throw new c.aV(null,"ArrayExpression"===i?c.rH.NoFunctionInArray:"ObjectExpression"===i?c.rH.NoFunctionInDictionary:c.rH.NoFunctionInTemplateLiteral,null);return s===f.v?null:s},Dictionary:R.Z,Feature:E.Z,UserDefinedCompiledFunction:class g extends S.Rm{constructor(i,a){super(),this.paramCount=a,this.fn=i}createFunction(i){return(...a)=>{if(a.length!==this.paramCount)throw new c.aV(i,c.rH.WrongNumberOfParameters,null);return this.fn(...a)}}call(i,a){return this.fn(...a.arguments)}marshalledCall(i,a,o,d){return d(i,a,(D,P,q)=>{q=q.map(le=>!(0,f.i)(le)||le instanceof S.Vg?le:(0,S.aq)(le,i,d));const ue=this.call(o,{arguments:q});return(0,B.y8)(ue)?ue.then(le=>(0,S.aq)(le,o,d)):ue})}},dictionary(s){const i={},a=new Map;for(let d=0;d>":case">>>":case"^":case"&":return(0,f.u)((0,f.g)(s),(0,f.g)(i),a);case"==":case"=":return(0,f.s)(s,i);case"!=":return!(0,f.s)(s,i);case"<":case">":case"<=":case">=":return(0,f.r)(s,i,a);case"+":return(0,f.c)(s)||(0,f.c)(i)?(0,f.j)(s)+(0,f.j)(i):(0,f.g)(s)+(0,f.g)(i);case"-":return(0,f.g)(s)-(0,f.g)(i);case"*":return(0,f.g)(s)*(0,f.g)(i);case"/":return(0,f.g)(s)/(0,f.g)(i);case"%":return(0,f.g)(s)%(0,f.g)(i);default:throw new c.aV(null,c.rH.UnsupportedOperator,null)}},assign(s,i,a){switch(i){case"=":return s===f.v?null:s;case"/=":return(0,f.g)(a)/(0,f.g)(s);case"*=":return(0,f.g)(a)*(0,f.g)(s);case"-=":return(0,f.g)(a)-(0,f.g)(s);case"+=":return(0,f.c)(a)||(0,f.c)(s)?(0,f.j)(a)+(0,f.j)(s):(0,f.g)(a)+(0,f.g)(s);case"%=":return(0,f.g)(a)%(0,f.g)(s);default:throw new c.aV(null,c.rH.UnsupportedOperator,null)}},update(s,i,a,o){const d=(0,f.g)(s[i]);return s[i]="++"===a?d+1:d-1,!1===o?d:"++"===a?d+1:d-1},graphicToFeature:(s,i)=>null===s?null:E.Z.createFromGraphicLikeObject(s.geometry,s.attributes,i),memberupdate(s,i,a,o){let d;if((0,f.m)(s)){if(!(0,f.b)(i))throw new c.aV(null,c.rH.ArrayAccessorMustBeNumber,null);if(i<0&&(i=s.length+i),i<0||i>=s.length)throw new c.aV(null,c.rH.OutOfBounds,null);d=(0,f.g)(s[i]),s[i]="++"===a?d+1:d-1}else if(s instanceof R.Z){if(!1===(0,f.c)(i))throw new c.aV(null,c.rH.KeyAccessorMustBeString,null);if(!0!==s.hasField(i))throw new c.aV(null,c.rH.FieldNotFound,null,{key:i});d=(0,f.g)(s.field(i)),s.setField(i,"++"===a?d+1:d-1)}else if((0,f.w)(s)){if(!1===(0,f.c)(i))throw new c.aV(null,c.rH.KeyAccessorMustBeString,null);if(!0!==s.hasField(i))throw new c.aV(null,c.rH.FieldNotFound,null);d=(0,f.g)(s.field(i)),s.setField(i,"++"===a?d+1:d-1)}else{if((0,f.x)(s))throw new c.aV(null,c.rH.Immutable,null);if(!(s instanceof gt))throw new c.aV(null,c.rH.InvalidIdentifier,null);if(!1===(0,f.c)(i))throw new c.aV(null,c.rH.ModuleAccessorMustBeString,null);if(!0!==s.hasGlobal(i))throw new c.aV(null,c.rH.ModuleExportNotFound,null);d=(0,f.g)(s.global(i)),s.setGlobal(i,"++"===a?d+1:d-1)}return!1===o?d:"++"===a?d+1:d-1},assignmember(s,i,a,o){if((0,f.m)(s)){if(!(0,f.b)(i))throw new c.aV(null,c.rH.ArrayAccessorMustBeNumber,null);if(i<0&&(i=s.length+i),i<0||i>s.length)throw new c.aV(null,c.rH.OutOfBounds,null);if(i===s.length){if("="!==a)throw new c.aV(null,c.rH.OutOfBounds,null);s[i]=this.assign(o,a,s[i])}else s[i]=this.assign(o,a,s[i])}else if(s instanceof R.Z){if(!1===(0,f.c)(i))throw new c.aV(null,c.rH.KeyAccessorMustBeString,null);if(!0===s.hasField(i))s.setField(i,this.assign(o,a,s.field(i)));else{if("="!==a)throw new c.aV(null,c.rH.FieldNotFound,null);s.setField(i,this.assign(o,a,null))}}else if((0,f.w)(s)){if(!1===(0,f.c)(i))throw new c.aV(null,c.rH.KeyAccessorMustBeString,null);if(!0===s.hasField(i))s.setField(i,this.assign(o,a,s.field(i)));else{if("="!==a)throw new c.aV(null,c.rH.FieldNotFound,null);s.setField(i,this.assign(o,a,null))}}else{if((0,f.x)(s))throw new c.aV(null,c.rH.Immutable,null);if(!(s instanceof gt))throw new c.aV(null,c.rH.InvalidIdentifier,null);if(!1===(0,f.c)(i))throw new c.aV(null,c.rH.ModuleAccessorMustBeString,null);if(!s.hasGlobal(i))throw new c.aV(null,c.rH.ModuleExportNotFound,null);s.setGlobal(i,this.assign(o,a,s.global(i)))}},member(s,i){if(null===s)throw new c.aV(null,c.rH.MemberOfNull,null);if(s instanceof R.Z||(0,f.w)(s)){if((0,f.c)(i))return s.field(i);throw new c.aV(null,c.rH.InvalidMemberAccessKey,null)}if(s instanceof G.Z){if((0,f.c)(i))return(0,F.Z)(s,i,null,null);throw new c.aV(null,c.rH.InvalidMemberAccessKey,null)}if((0,f.m)(s)){if((0,f.b)(i)&&isFinite(i)&&Math.floor(i)===i){if(i<0&&(i=s.length+i),i>=s.length||i<0)throw new c.aV(null,c.rH.OutOfBounds,null);return s[i]}throw new c.aV(null,c.rH.InvalidMemberAccessKey,null)}if((0,f.c)(s)){if((0,f.b)(i)&&isFinite(i)&&Math.floor(i)===i){if(i<0&&(i=s.length+i),i>=s.length||i<0)throw new c.aV(null,c.rH.OutOfBounds,null);return s[i]}throw new c.aV(null,c.rH.InvalidMemberAccessKey,null)}if((0,f.x)(s)){if((0,f.b)(i)&&isFinite(i)&&Math.floor(i)===i){if(i<0&&(i=s.length()+i),i>=s.length()||i<0)throw new c.aV(null,c.rH.OutOfBounds,null);return s.get(i)}throw new c.aV(null,c.rH.InvalidMemberAccessKey,null)}if(s instanceof gt){if((0,f.c)(i))return s.global(i);throw new c.aV(null,c.rH.InvalidMemberAccessKey,null)}throw new c.aV(null,c.rH.InvalidMemberAccessKey,null)},callfunc:(s,i,a)=>s.call(a,{arguments:i,preparsed:!0}),loadModule(s,i){const a=i.moduleFactoryMap[s];if(i.moduleSingletons[a])return i.moduleSingletons[a];const o=i.moduleFactory[a]({vars:{},moduleSingletons:i.moduleSingletons,depthCounter:i.depthCounter,console:i.console,abortSignal:i.abortSignal,isAsync:i.isAsync,services:i.services,lrucache:i.lrucache,interceptor:i.interceptor},i.spatialReference);return i.moduleSingletons[a]=o,o},callModuleFunction(s,i,a,o){if(!(s instanceof gt))throw new c.aV(null,c.rH.FuncionNotFound,null);const d=s.global(a);if(!1===(0,f.i)(d))throw new c.aV(null,c.rH.CallNonFunction,null);return d.call(o,{preparsed:!0,arguments:i})}};function xt(s){console.log(s)}function mt(s,i,a=!1){null===i&&(i={vars:{},customfunctions:{}});let o=null;s.usesModules&&(o=new C.s(null,s.loadedModules));const d={isAsync:a,globalScope:Dt(i.vars,a?it:ke,i.customfunctions),moduleFactory:{},moduleFactoryMap:{},undeclaredGlobalsInFunctions:new Map,customfunctions:i.customfunctions,libraryResolver:o,localScope:null,mangleMap:{},depthCounter:{depth:1},exports:{},console:xt,lrucache:i.lrucache,interceptor:i.interceptor,services:i.services,symbols:{symbolCounter:0}};let D=U(d,s);""===D&&(D="lc.voidOperation; "),d.undeclaredGlobalsInFunctions.size>0&&d.undeclaredGlobalsInFunctions.forEach(Ee=>{throw new c.OF(i,c.rH.InvalidIdentifier,Ee.node)});let P="";P=a?"var runtimeCtx=this.prepare(context, true);\n var lc = this.lc; var lang = this.lang; var gscope=runtimeCtx.globalScope; \nreturn lang.__awaiter(this, void 0, void 0, function* () {\n\n function mainBody() {\n var lastStatement=lc.voidOperation;\n return lang.__awaiter(this, void 0, void 0, function* () {\n"+D+"\n return lastStatement; }); } \n return this.postProcess(yield mainBody()); }); ":"var runtimeCtx=this.prepare(context, false);\n var lc = this.lc; var lang = this.lang; var gscope=runtimeCtx.globalScope; \n function mainBody() {\n var lastStatement=lc.voidOperation;\n "+D+"\n return lastStatement; } \n return this.postProcess(mainBody()); ";const q=d.moduleFactory,ue=d.moduleFactoryMap,le=d.exports,ye={};for(const Ee in le)ye[Ee]=void 0!==d.mangleMap[Ee]?d.mangleMap[Ee]:Ee;const xe={lc:f.n,lang:_t,mangles:d.mangleMap,postProcess(Ee){if(Ee instanceof f.R&&(Ee=Ee.value),Ee instanceof f.I&&(Ee=Ee.value),Ee===f.v&&(Ee=null),Ee===f.o)throw new c.aV(null,c.rH.IllegalResult,null);if(Ee===f.p)throw new c.aV(null,c.rH.IllegalResult,null);if((0,f.i)(Ee))throw new c.aV(null,c.rH.IllegalResult,null);return Ee},prepare(Ee,Re){let nt=Ee.spatialReference;null==nt&&(nt=H.Z.WebMercator);const zt=yt(Ee.vars,Ee.customfunctions,Re);return{localStack:[],isAsync:Re,moduleFactory:q,moduleFactoryMap:ue,mangleMap:this.mangles,moduleSingletons:{},exports:le,gdefs:{},exportmangle:ye,spatialReference:nt,globalScope:zt,abortSignal:Ee.abortSignal??{aborted:!1},localScope:null,services:Ee.services,console:Ee.console?Ee.console:xt,lrucache:Ee.lrucache,interceptor:Ee.interceptor,symbols:{symbolCounter:0},depthCounter:{depth:1}}}};return new Function("context","spatialReference",P).bind(xe)}function Bt(){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,z.Z)(function*(){return qe([yield Z.e(8302).then(Z.bind(Z,38302))],"async"),!0})).apply(this,arguments)}class gt extends L.P{constructor(i){super(null),this.moduleContext=i}hasGlobal(i){return void 0===this.moduleContext.exports[i]&&(i=i.toLowerCase()),void 0!==this.moduleContext.exports[i]}setGlobal(i,a){const o=this.moduleContext.globalScope,d=i.toLowerCase();if((0,f.i)(a))throw new c.aV(null,c.rH.AssignModuleFunction,null);o[this.moduleContext.exportmangle[d]]=a}global(i){const a=this.moduleContext.globalScope;i=i.toLowerCase();const o=a[this.moduleContext.exportmangle[i]];if(void 0===o)throw new c.aV(null,c.rH.InvalidIdentifier,null);if((0,f.i)(o)&&!(o instanceof S.Vg)){const d=new S.Vg;return d.fn=o,d.parameterEvaluator=w,d.context=this.moduleContext,a[this.moduleContext.exportmangle[i]]=d,d}return o}}var te,s,Mt=Z(84792),We=Z(84687);(s=te||(te={})).AssignmentExpression="AssignmentExpression",s.ArrayExpression="ArrayExpression",s.BlockComment="BlockComment",s.BlockStatement="BlockStatement",s.BinaryExpression="BinaryExpression",s.BreakStatement="BreakStatement",s.CallExpression="CallExpression",s.ContinueStatement="ContinueStatement",s.EmptyStatement="EmptyStatement",s.ExpressionStatement="ExpressionStatement",s.ExportNamedDeclaration="ExportNamedDeclaration",s.ExportSpecifier="ExportSpecifier",s.ForStatement="ForStatement",s.ForInStatement="ForInStatement",s.FunctionDeclaration="FunctionDeclaration",s.Identifier="Identifier",s.IfStatement="IfStatement",s.ImportDeclaration="ImportDeclaration",s.ImportDefaultSpecifier="ImportDefaultSpecifier",s.LineComment="LineComment",s.Literal="Literal",s.LogicalExpression="LogicalExpression",s.MemberExpression="MemberExpression",s.ObjectExpression="ObjectExpression",s.Program="Program",s.Property="Property",s.ReturnStatement="ReturnStatement",s.TemplateElement="TemplateElement",s.TemplateLiteral="TemplateLiteral",s.UnaryExpression="UnaryExpression",s.UpdateExpression="UpdateExpression",s.VariableDeclaration="VariableDeclaration",s.VariableDeclarator="VariableDeclarator",s.WhileStatement="WhileStatement";const _=["++","--"],v=["-","+","!","~"],I=["=","/=","*=","%=","+=","-="],N=["||","&&"],re={"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10};var O;!function(s){s[s.Unknown=0]="Unknown",s[s.BooleanLiteral=1]="BooleanLiteral",s[s.EOF=2]="EOF",s[s.Identifier=3]="Identifier",s[s.Keyword=4]="Keyword",s[s.NullLiteral=5]="NullLiteral",s[s.NumericLiteral=6]="NumericLiteral",s[s.Punctuator=7]="Punctuator",s[s.StringLiteral=8]="StringLiteral",s[s.Template=10]="Template"}(O||(O={}));const ee=["Unknown","Boolean","","Identifier","Keyword","Null","Numeric","Punctuator","String","RegularExpression","Template"];var Y;!function(s){s.InvalidModuleUri="InvalidModuleUri",s.ForInOfLoopInitializer="ForInOfLoopInitializer",s.IdentiferExpected="IdentiferExpected",s.InvalidEscapedReservedWord="InvalidEscapedReservedWord",s.InvalidExpression="InvalidExpression",s.InvalidFunctionIdentifier="InvalidFunctionIdentifier",s.InvalidHexEscapeSequence="InvalidHexEscapeSequence",s.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment",s.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn",s.InvalidTemplateHead="InvalidTemplateHead",s.InvalidVariableAssignment="InvalidVariableAssignment",s.KeyMustBeString="KeyMustBeString",s.NoFunctionInsideBlock="NoFunctionInsideBlock",s.NoFunctionInsideFunction="NoFunctionInsideFunction",s.ModuleExportRootOnly="ModuleExportRootOnly",s.ModuleImportRootOnly="ModuleImportRootOnly",s.PunctuatorExpected="PunctuatorExpected",s.TemplateOctalLiteral="TemplateOctalLiteral",s.UnexpectedEndOfScript="UnexpectedEndOfScript",s.UnexpectedIdentifier="UnexpectedIdentifier",s.UnexpectedNumber="UnexpectedNumber",s.UnexpectedString="UnexpectedString",s.UnexpectedTemplate="UnexpectedTemplate",s.UnexpectedToken="UnexpectedToken"}(Y||(Y={}));const he={[Y.InvalidModuleUri]:"Module uri must be a string literal",[Y.ForInOfLoopInitializer]:"for-in loop variable declaration may not have an initializer",[Y.IdentiferExpected]:"Identifier expected",[Y.InvalidEscapedReservedWord]:"Keyword cannot contain escaped characters",[Y.InvalidExpression]:"Invalid expression",[Y.InvalidFunctionIdentifier]:"Invalid function identifier",[Y.InvalidHexEscapeSequence]:"Invalid hexadecimal escape sequence",[Y.InvalidLeftHandSideInAssignment]:"Invalid left-hand side in assignment",[Y.InvalidLeftHandSideInForIn]:"Invalid left-hand side in for-in",[Y.InvalidTemplateHead]:"Invalid template structure",[Y.InvalidVariableAssignment]:"Invalid variable assignment",[Y.KeyMustBeString]:"Object keys must be a string",[Y.NoFunctionInsideBlock]:"Functions cannot be declared inside of code blocks",[Y.NoFunctionInsideFunction]:"Functions cannot be declared inside another function",[Y.ModuleExportRootOnly]:"Module exports cannot be declared inside of code blocks",[Y.ModuleImportRootOnly]:"Module import cannot be declared inside of code blocks",[Y.PunctuatorExpected]:"'${value}' expected",[Y.TemplateOctalLiteral]:"Octal literals are not allowed in template strings.",[Y.UnexpectedEndOfScript]:"Unexpected end of script",[Y.UnexpectedIdentifier]:"Unexpected identifier",[Y.UnexpectedNumber]:"Unexpected number",[Y.UnexpectedString]:"Unexpected string",[Y.UnexpectedTemplate]:"Unexpected quasi '${value}'",[Y.UnexpectedToken]:"Unexpected token"};class _e extends Error{constructor({code:i,index:a,line:o,column:d,len:D=0,description:P,data:q}){super(`${P??i}`),this.declaredRootClass="esri.arcade.lib.parsingerror",this.name="ParsingError",this.code=i,this.index=a,this.line=o,this.column=d,this.len=D,this.data=q,this.description=P,this.range={start:{line:o,column:d-1},end:{line:o,column:d+D}},Error.captureStackTrace?.(this,_e)}}function J(s){return s?.type===te.BlockStatement}function ae(s){return s?.type===te.BlockComment}function Pe(s){return s?.type===te.EmptyStatement}function pn(s){return s?.type===te.VariableDeclarator}function yn(s,i){return!!i&&i.loc.end.line===s.loc.start.line&&i.loc.end.column<=s.loc.start.column}function Kn(s,i){return s.range[0]>=i.range[0]&&s.range[1]<=i.range[1]}class Rr{constructor(){this.comments=[],this._nodeStack=[],this._newComments=[]}insertInnerComments(i){if(!J(i)||0!==i.body.length)return;const a=[];for(let o=this._newComments.length-1;o>=0;--o){const d=this._newComments[o];i.range[1]>=d.range[0]&&(a.unshift(d),this._newComments.splice(o,1))}a.length&&(i.innerComments=a)}attachTrailingComments(i){if(!i)return;const a=this._nodeStack[this._nodeStack.length-1];if(J(i)&&Kn(a,i))for(let d=this._newComments.length-1;d>=0;--d){const D=this._newComments[d];Kn(D,i)&&(a.trailingComments=[...a.trailingComments??[],D],this._newComments.splice(d,1))}let o=[];if(this._newComments.length>0)for(let d=this._newComments.length-1;d>=0;--d){const D=this._newComments[d];yn(D,a)?(a.trailingComments=[...a.trailingComments??[],D],this._newComments.splice(d,1)):yn(D,i)&&(o.unshift(D),this._newComments.splice(d,1))}a?.trailingComments&&yn(a.trailingComments[0],i)&&(o=[...o,...a.trailingComments],delete a.trailingComments),o.length>0&&(i.trailingComments=o)}attachLeadingComments(i){if(!i)return;let a;for(;this._nodeStack.length>0;){const D=this._nodeStack[this._nodeStack.length-1];if(!(i.range[0]<=D.range[0]))break;a=D,this._nodeStack.pop()}const o=[],d=[];if(a){for(let D=(a.leadingComments?.length??0)-1;D>=0;--D){const P=a.leadingComments[D];i.range[0]>=P.range[1]?(o.unshift(P),a.leadingComments.splice(D,1)):pn(i)&&!ae(P)&&(d.unshift(P),a.leadingComments.splice(D,1))}return 0===a.leadingComments?.length&&delete a.leadingComments,o.length&&(i.leadingComments=o),void(d.length&&(i.trailingComments=[...d,...i.trailingComments??[]]))}for(let D=this._newComments.length-1;D>=0;--D){const P=this._newComments[D];i.range[0]>=P.range[0]&&(o.unshift(P),this._newComments.splice(D,1))}o.length&&(i.leadingComments=o)}attachComments(i){if(function p(s){return s?.type===te.Program}(i)&&i.body.length>0){const a=this._nodeStack[this._nodeStack.length-1];return a?(a.trailingComments=[...a.trailingComments??[],...this._newComments],this._newComments.length=0,void this._nodeStack.pop()):(i.trailingComments=[...this._newComments],void(this._newComments.length=0))}this.attachTrailingComments(i),this.attachLeadingComments(i),this.insertInnerComments(i),this._nodeStack.push(i)}collectComment(i){this.comments.push(i),this._newComments.push(i)}}function gn(s,i){const a=he[s];return i?a.replace(/\${(.*?)}/g,(o,d)=>i[d]?.toString()??""):a}class Vr{constructor(i=!1){this.tolerant=i,this.errors=[]}recordError(i){this.errors.push(i)}tolerate(i){if(!this.tolerant)throw i;this.recordError(i)}throwError(i){throw i.description=i.description??gn(i.code,i.data),new _e(i)}tolerateError(i){i.description=i.description??gn(i.code,i.data);const a=new _e(i);if(!this.tolerant)throw a;this.recordError(a)}}function Wt(s,i){if(!s)throw new Error("ASSERT: "+i)}const $n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC5F\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},ve={fromCodePoint:s=>s<65536?String.fromCharCode(s):String.fromCharCode(55296+(s-65536>>10))+String.fromCharCode(56320+(s-65536&1023)),isWhiteSpace:s=>32===s||9===s||11===s||12===s||160===s||s>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(s),isLineTerminator:s=>10===s||13===s||8232===s||8233===s,isIdentifierStart:s=>36===s||95===s||s>=65&&s<=90||s>=97&&s<=122||92===s||s>=128&&$n.NonAsciiIdentifierStart.test(ve.fromCodePoint(s)),isIdentifierPart:s=>36===s||95===s||s>=65&&s<=90||s>=97&&s<=122||s>=48&&s<=57||92===s||s>=128&&$n.NonAsciiIdentifierPart.test(ve.fromCodePoint(s)),isDecimalDigit:s=>s>=48&&s<=57,isHexDigit:s=>s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102,isOctalDigit:s=>s>=48&&s<=55};function Jn(s){return"0123456789abcdef".indexOf(s.toLowerCase())}function Dn(s){return"01234567".indexOf(s)}const Oe=[[],[],[]];_.forEach(s=>Oe[s.length-1].push(s)),v.forEach(s=>Oe[s.length-1].push(s)),N.forEach(s=>Oe[s.length-1].push(s)),I.forEach(s=>Oe[s.length-1].push(s)),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach(s=>Oe[s.length-1].push(s));class Ut{constructor(i,a){this.source=i,this.errorHandler=a,this._length=i.length,this.index=0,this.lineNumber=1,this.lineStart=0,this.curlyStack=[]}saveState(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart,curlyStack:this.curlyStack.slice()}}restoreState(i){this.index=i.index,this.lineNumber=i.lineNumber,this.lineStart=i.lineStart,this.curlyStack=i.curlyStack}eof(){return this.index>=this._length}throwUnexpectedToken(i=Y.UnexpectedToken){this.errorHandler.throwError({code:i,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})}tolerateUnexpectedToken(i=Y.UnexpectedToken){this.errorHandler.tolerateError({code:i,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})}skipSingleLineComment(i){const a=[],o=this.index-i,d={start:{line:this.lineNumber,column:this.index-this.lineStart-i},end:{line:0,column:0}};for(;!this.eof();){const D=this.source.charCodeAt(this.index);if(++this.index,ve.isLineTerminator(D))return d&&(d.end={line:this.lineNumber,column:this.index-this.lineStart-1},a.push({multiLine:!1,start:o+i,end:this.index-1,range:[o,this.index-1],loc:d})),13===D&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,a}return d&&(d.end={line:this.lineNumber,column:this.index-this.lineStart},a.push({multiLine:!1,start:o+i,end:this.index,range:[o,this.index],loc:d})),a}skipMultiLineComment(){const i=[],a=this.index-2,o={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{line:0,column:0}};for(;!this.eof();){const d=this.source.charCodeAt(this.index);if(ve.isLineTerminator(d))13===d&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===d){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,o&&(o.end={line:this.lineNumber,column:this.index-this.lineStart},i.push({multiLine:!0,start:a+2,end:this.index-2,range:[a,this.index],loc:o})),i;++this.index}else++this.index}return o&&(o.end={line:this.lineNumber,column:this.index-this.lineStart},i.push({multiLine:!0,start:a+2,end:this.index,range:[a,this.index],loc:o})),this.tolerateUnexpectedToken(),i}scanComments(){let i=[];for(;!this.eof();){let a=this.source.charCodeAt(this.index);if(ve.isWhiteSpace(a))++this.index;else if(ve.isLineTerminator(a))++this.index,13===a&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index;else{if(47!==a)break;if(a=this.source.charCodeAt(this.index+1),47===a){this.index+=2;const o=this.skipSingleLineComment(2);i=[...i,...o]}else{if(42!==a)break;{this.index+=2;const o=this.skipMultiLineComment();i=[...i,...o]}}}}return i}isKeyword(i){switch((i=i.toLowerCase()).length){case 2:return"if"===i||"in"===i;case 3:return"var"===i||"for"===i;case 4:return"else"===i;case 5:return"break"===i||"while"===i;case 6:return"return"===i||"import"===i||"export"===i;case 8:return"function"===i||"continue"===i;default:return!1}}codePointAt(i){let a=this.source.charCodeAt(i);if(a>=55296&&a<=56319){const o=this.source.charCodeAt(i+1);o>=56320&&o<=57343&&(a=1024*(a-55296)+o-56320+65536)}return a}scanHexEscape(i){const a="u"===i?4:2;let o=0;for(let d=0;d1114111||"}"!==i)&&this.throwUnexpectedToken(),ve.fromCodePoint(a)}getIdentifier(){const i=this.index++;for(;!this.eof();){const a=this.source.charCodeAt(this.index);if(92===a)return this.index=i,this.getComplexIdentifier();if(a>=55296&&a<57343)return this.index=i,this.getComplexIdentifier();if(!ve.isIdentifierPart(a))break;++this.index}return this.source.slice(i,this.index)}getComplexIdentifier(){let i,a=this.codePointAt(this.index),o=ve.fromCodePoint(a);for(this.index+=o.length,92===a&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,i=this.scanUnicodeCodePointEscape()):(i=this.scanHexEscape("u"),null!==i&&"\\"!==i&&ve.isIdentifierStart(i.charCodeAt(0))||this.throwUnexpectedToken()),o=i);!this.eof()&&(a=this.codePointAt(this.index),ve.isIdentifierPart(a));)i=ve.fromCodePoint(a),o+=i,this.index+=i.length,92===a&&(o=o.substring(0,o.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,i=this.scanUnicodeCodePointEscape()):(i=this.scanHexEscape("u"),null!==i&&"\\"!==i&&ve.isIdentifierPart(i.charCodeAt(0))||this.throwUnexpectedToken()),o+=i);return o}octalToDecimal(i){let a="0"!==i,o=Dn(i);return!this.eof()&&ve.isOctalDigit(this.source.charCodeAt(this.index))&&(a=!0,o=8*o+Dn(this.source[this.index++]),"0123".includes(i)&&!this.eof()&&ve.isOctalDigit(this.source.charCodeAt(this.index))&&(o=8*o+Dn(this.source[this.index++]))),{code:o,octal:a}}scanIdentifier(){let i;const a=this.index,o=92===this.source.charCodeAt(a)?this.getComplexIdentifier():this.getIdentifier();if(i=1===o.length?O.Identifier:this.isKeyword(o)?O.Keyword:"null"===o.toLowerCase()?O.NullLiteral:"true"===o.toLowerCase()||"false"===o.toLowerCase()?O.BooleanLiteral:O.Identifier,i!==O.Identifier&&a+o.length!==this.index){const d=this.index;this.index=a,this.tolerateUnexpectedToken(Y.InvalidEscapedReservedWord),this.index=d}return{type:i,value:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}}scanPunctuator(){const i=this.index;let a=this.source[this.index];switch(a){case"(":case"{":"{"===a&&this.curlyStack.push("{"),++this.index;break;case".":case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;case"}":++this.index,this.curlyStack.pop();break;default:for(let o=Oe.length;o>0;o--)if(a=this.source.substring(this.index,this.index+o),Oe[o-1].includes(a)){this.index+=o;break}}return this.index===i&&this.throwUnexpectedToken(),{type:O.Punctuator,value:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}}scanHexLiteral(i){let a="";for(;!this.eof()&&ve.isHexDigit(this.source.charCodeAt(this.index));)a+=this.source[this.index++];return 0===a.length&&this.throwUnexpectedToken(),ve.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:O.NumericLiteral,value:parseInt("0x"+a,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}}scanBinaryLiteral(i){let a="";for(;!this.eof();){const o=this.source[this.index];if("0"!==o&&"1"!==o)break;a+=this.source[this.index++]}if(0===a.length&&this.throwUnexpectedToken(),!this.eof()){const o=this.source.charCodeAt(this.index);(ve.isIdentifierStart(o)||ve.isDecimalDigit(o))&&this.throwUnexpectedToken()}return{type:O.NumericLiteral,value:parseInt(a,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}}scanOctalLiteral(i,a){let o="",d=!1;for(ve.isOctalDigit(i.charCodeAt(0))?(d=!0,o="0"+this.source[this.index++]):++this.index;!this.eof()&&ve.isOctalDigit(this.source.charCodeAt(this.index));)o+=this.source[this.index++];return d||0!==o.length||this.throwUnexpectedToken(),(ve.isIdentifierStart(this.source.charCodeAt(this.index))||ve.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:O.NumericLiteral,value:parseInt(o,8),lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}}scanNumericLiteral(){const i=this.index;let a=this.source[i];Wt(ve.isDecimalDigit(a.charCodeAt(0))||"."===a,"Numeric literal must start with a decimal digit or a decimal point");let o="";if("."!==a){if(o=this.source[this.index++],a=this.source[this.index],"0"===o){if("x"===a||"X"===a)return++this.index,this.scanHexLiteral(i);if("b"===a||"B"===a)return++this.index,this.scanBinaryLiteral(i);if("o"===a||"O"===a)return this.scanOctalLiteral(a,i)}for(;ve.isDecimalDigit(this.source.charCodeAt(this.index));)o+=this.source[this.index++];a=this.source[this.index]}if("."===a){for(o+=this.source[this.index++];ve.isDecimalDigit(this.source.charCodeAt(this.index));)o+=this.source[this.index++];a=this.source[this.index]}if("e"===a||"E"===a)if(o+=this.source[this.index++],a=this.source[this.index],"+"!==a&&"-"!==a||(o+=this.source[this.index++]),ve.isDecimalDigit(this.source.charCodeAt(this.index)))for(;ve.isDecimalDigit(this.source.charCodeAt(this.index));)o+=this.source[this.index++];else this.throwUnexpectedToken();return ve.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:O.NumericLiteral,value:parseFloat(o),lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}}scanStringLiteral(){const i=this.index;let a=this.source[i];Wt("'"===a||'"'===a,"String literal must starts with a quote"),++this.index;let o=!1,d="";for(;!this.eof();){let D=this.source[this.index++];if(D===a){a="";break}if("\\"===D)if(D=this.source[this.index++],D&&ve.isLineTerminator(D.charCodeAt(0)))++this.lineNumber,"\r"===D&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(D){case"u":if("{"===this.source[this.index])++this.index,d+=this.scanUnicodeCodePointEscape();else{const P=this.scanHexEscape(D);null===P&&this.throwUnexpectedToken(),d+=P}break;case"x":{const P=this.scanHexEscape(D);null===P&&this.throwUnexpectedToken(Y.InvalidHexEscapeSequence),d+=P;break}case"n":d+="\n";break;case"r":d+="\r";break;case"t":d+="\t";break;case"b":d+="\b";break;case"f":d+="\f";break;case"v":d+="\v";break;case"8":case"9":d+=D,this.tolerateUnexpectedToken();break;default:if(D&&ve.isOctalDigit(D.charCodeAt(0))){const P=this.octalToDecimal(D);o=P.octal||o,d+=String.fromCharCode(P.code)}else d+=D}else{if(ve.isLineTerminator(D.charCodeAt(0)))break;d+=D}}return""!==a&&(this.index=i,this.throwUnexpectedToken()),{type:O.StringLiteral,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}}scanTemplate(){let i="",a=!1;const o=this.index,d="`"===this.source[o];let D=!1,P=2;for(++this.index;!this.eof();){let q=this.source[this.index++];if("`"===q){P=1,D=!0,a=!0;break}if("$"!==q)if("\\"!==q)ve.isLineTerminator(q.charCodeAt(0))?(++this.lineNumber,"\r"===q&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,i+="\n"):i+=q;else if(q=this.source[this.index++],ve.isLineTerminator(q.charCodeAt(0)))++this.lineNumber,"\r"===q&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(q){case"n":i+="\n";break;case"r":i+="\r";break;case"t":i+="\t";break;case"u":if("{"===this.source[this.index])++this.index,i+=this.scanUnicodeCodePointEscape();else{const ue=this.index,le=this.scanHexEscape(q);null!==le?i+=le:(this.index=ue,i+=q)}break;case"x":{const ue=this.scanHexEscape(q);null===ue&&this.throwUnexpectedToken(Y.InvalidHexEscapeSequence),i+=ue;break}case"b":i+="\b";break;case"f":i+="\f";break;case"v":i+="\v";break;default:"0"===q?(ve.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(Y.TemplateOctalLiteral),i+="\0"):ve.isOctalDigit(q.charCodeAt(0))?this.throwUnexpectedToken(Y.TemplateOctalLiteral):i+=q}else{if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,a=!0;break}i+=q}}return a||this.throwUnexpectedToken(),d||this.curlyStack.pop(),{type:O.Template,value:this.source.slice(o+1,this.index-P),cooked:i,head:d,tail:D,lineNumber:this.lineNumber,lineStart:this.lineStart,start:o,end:this.index}}lex(){if(this.eof())return{type:O.EOF,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};const i=this.source.charCodeAt(this.index);return ve.isIdentifierStart(i)?this.scanIdentifier():40===i||41===i||59===i?this.scanPunctuator():39===i||34===i?this.scanStringLiteral():46===i?ve.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():ve.isDecimalDigit(i)?this.scanNumericLiteral():96===i||125===i&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():i>=55296&&i<57343&&ve.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()}}var je,wt;function xn(s,i=0){let a=s.start-s.lineStart,o=s.lineNumber;return a<0&&(a+=i,o--),{index:s.start,line:o,column:a}}function En(s){return[{index:s.range[0],...s.loc.start},{index:s.range[1],...s.loc.end}]}function Yn(s){return re[s]??0}(function(s){s[s.None=0]="None",s[s.Function=1]="Function",s[s.IfClause=2]="IfClause",s[s.ForLoop=4]="ForLoop",s[s.WhileLoop=8]="WhileLoop"})(je||(je={})),function(s){s[s.AsObject=0]="AsObject",s[s.Automatic=1]="Automatic"}(wt||(wt={}));class wn{constructor(i,a={},o){this.delegate=o,this.hasLineTerminator=!1,this.options={tokens:"boolean"==typeof a.tokens&&a.tokens,comments:"boolean"==typeof a.comments&&a.comments,tolerant:"boolean"==typeof a.tolerant&&a.tolerant},this.options.comments&&(this.commentHandler=new Rr),this.errorHandler=new Vr(this.options.tolerant),this.scanner=new Ut(i,this.errorHandler),this.context={isAssignmentTarget:!1,blockContext:je.None,curlyParsingType:wt.AsObject},this.rawToken={type:O.EOF,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.endMarker={index:0,line:this.scanner.lineNumber,column:0},this.readNextRawToken(),this.endMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}throwIfInvalidType(i,a,{validTypes:o,invalidTypes:d}){o?.some(D=>i.type===D)||d?.some(D=>i.type===D)&&this.throwError(Y.InvalidExpression,a)}throwError(i,a,o=this.endMarker){const{index:d,line:D,column:P}=a;this.errorHandler.throwError({code:i,index:d,line:D,column:P+1,len:o.index-d-1})}tolerateError(i,a){throw new Error("######################################### !!!")}unexpectedTokenError(i={}){const{rawToken:a}=i;let o,{code:d,data:D}=i;if(a){if(!d)switch(a.type){case O.EOF:d=Y.UnexpectedEndOfScript;break;case O.Identifier:d=Y.UnexpectedIdentifier;break;case O.NumericLiteral:d=Y.UnexpectedNumber;break;case O.StringLiteral:d=Y.UnexpectedString;break;case O.Template:d=Y.UnexpectedTemplate}o=a.value.toString()}else o="ILLEGAL";d=d??Y.UnexpectedToken,D||(D={value:o});const P=gn(d,D);if(a)return new _e({code:d,index:a.start,line:a.lineNumber,column:a.start-a.lineStart+1,len:a.end-a.start-1,data:D,description:P});const{index:q,line:ue}=this.endMarker;return new _e({code:d,index:q,line:ue,column:this.endMarker.column+1,data:D,description:P})}throwUnexpectedToken(i={}){throw i.rawToken=i.rawToken??this.rawToken,this.unexpectedTokenError(i)}collectComments(i){const{commentHandler:a}=this;a&&i?.length&&i.forEach(o=>{const d={type:o.multiLine?te.BlockComment:te.LineComment,value:this.getSourceValue(o),range:o.range,loc:o.loc};a.collectComment(d)})}peekAhead(i){const o=this.scanner.saveState(),d=i.call(this,()=>(this.scanner.scanComments(),this.scanner.lex()));return this.scanner.restoreState(o),d}getSourceValue(i){return this.scanner.source.slice(i.start,i.end)}convertToToken(i){return{type:ee[i.type],value:this.getSourceValue(i),range:[i.start,i.end],loc:{start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}}}readNextRawToken(){this.endMarker.index=this.scanner.index,this.endMarker.line=this.scanner.lineNumber,this.endMarker.column=this.scanner.index-this.scanner.lineStart;const i=this.rawToken;this.collectComments(this.scanner.scanComments()),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart),this.rawToken=this.scanner.lex(),this.hasLineTerminator=i.lineNumber!==this.rawToken.lineNumber,this.options.tokens&&this.rawToken.type!==O.EOF&&this.tokens.push(this.convertToToken(this.rawToken))}captureStartMarker(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}}getItemLocation(i){return{range:[i.index,this.endMarker.index],loc:{start:{line:i.line,column:i.column},end:{line:this.endMarker.line,column:this.endMarker.column}}}}finalize(i){return(this.delegate||this.commentHandler)&&(this.commentHandler?.attachComments(i),this.delegate?.(i)),i}expectPunctuator(i){const a=this.rawToken;this.matchPunctuator(i)?this.readNextRawToken():this.throwUnexpectedToken({rawToken:a,code:Y.PunctuatorExpected,data:{value:i}})}expectKeyword(i){this.rawToken.type!==O.Keyword||this.rawToken.value.toLowerCase()!==i?this.throwUnexpectedToken({rawToken:this.rawToken}):this.readNextRawToken()}expectContextualKeyword(i){this.rawToken.type!==O.Identifier||this.rawToken.value.toLowerCase()!==i?this.throwUnexpectedToken({rawToken:this.rawToken}):this.readNextRawToken()}matchKeyword(i){return this.rawToken.type===O.Keyword&&this.rawToken.value.toLowerCase()===i}matchContextualKeyword(i){return this.rawToken.type===O.Identifier&&this.rawToken.value===i}matchPunctuator(i){return this.rawToken.type===O.Punctuator&&this.rawToken.value===i}getMatchingPunctuator(i){if("string"==typeof i&&(i=i.split("")),this.rawToken.type===O.Punctuator&&i?.length)return i.find(this.matchPunctuator,this)}isolateCoverGrammar(i){const a=this.context.isAssignmentTarget;this.context.isAssignmentTarget=!0;const o=i.call(this);return this.context.isAssignmentTarget=a,o}inheritCoverGrammar(i){const a=this.context.isAssignmentTarget;this.context.isAssignmentTarget=!0;const o=i.call(this);return this.context.isAssignmentTarget=this.context.isAssignmentTarget&&a,o}withBlockContext(i,a){const o=this.context.blockContext;this.context.blockContext=this.context.blockContext|i;const d=this.context.curlyParsingType;this.context.curlyParsingType=wt.Automatic;const D=a.call(this);return this.context.blockContext=o,this.context.curlyParsingType=d,D}consumeSemicolon(){if(this.matchPunctuator(";"))this.readNextRawToken();else if(!this.hasLineTerminator)return this.rawToken.type===O.EOF||this.matchPunctuator("}")?(this.endMarker.index=this.startMarker.index,this.endMarker.line=this.startMarker.line,void(this.endMarker.column=this.startMarker.column)):void this.throwUnexpectedToken({rawToken:this.rawToken})}parsePrimaryExpression(){const i=this.captureStartMarker(),a=this.rawToken;switch(a.type){case O.Identifier:return this.readNextRawToken(),this.finalize({type:te.Identifier,name:a.value,...this.getItemLocation(i)});case O.NumericLiteral:case O.StringLiteral:return this.context.isAssignmentTarget=!1,this.readNextRawToken(),this.finalize({type:te.Literal,value:a.value,raw:this.getSourceValue(a),isString:"string"==typeof a.value,...this.getItemLocation(i)});case O.BooleanLiteral:return this.context.isAssignmentTarget=!1,this.readNextRawToken(),this.finalize({type:te.Literal,value:"true"===a.value.toLowerCase(),raw:this.getSourceValue(a),isString:!1,...this.getItemLocation(i)});case O.NullLiteral:return this.context.isAssignmentTarget=!1,this.readNextRawToken(),this.finalize({type:te.Literal,value:null,raw:this.getSourceValue(a),isString:!1,...this.getItemLocation(i)});case O.Template:return this.parseTemplateLiteral();case O.Punctuator:switch(a.value){case"(":return this.inheritCoverGrammar(this.parseGroupExpression);case"[":return this.inheritCoverGrammar(this.parseArrayInitializer);case"{":return this.inheritCoverGrammar(this.parseObjectExpression);default:return this.throwUnexpectedToken({rawToken:this.rawToken})}case O.Keyword:return this.context.isAssignmentTarget=!1,this.throwUnexpectedToken({rawToken:this.rawToken});default:return this.throwUnexpectedToken({rawToken:this.rawToken})}}parseArrayInitializer(){const i=this.captureStartMarker();this.expectPunctuator("[");const a=[];for(;!this.matchPunctuator("]");)this.matchPunctuator(",")?(this.readNextRawToken(),a.push(null)):(a.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.matchPunctuator("]")||this.expectPunctuator(","));return this.expectPunctuator("]"),this.finalize({type:te.ArrayExpression,elements:a,...this.getItemLocation(i)})}parseObjectPropertyKey(){const i=this.captureStartMarker(),a=this.rawToken;switch(a.type){case O.StringLiteral:return this.readNextRawToken(),this.finalize({type:te.Literal,value:a.value,raw:this.getSourceValue(a),isString:!0,...this.getItemLocation(i)});case O.Identifier:case O.BooleanLiteral:case O.NullLiteral:case O.Keyword:return this.readNextRawToken(),this.finalize({type:te.Identifier,name:a.value,...this.getItemLocation(i)});default:this.throwError(Y.KeyMustBeString,i)}}parseObjectProperty(){const i=this.rawToken,a=this.captureStartMarker(),o=this.parseObjectPropertyKey();let d=!1,D=null;return this.matchPunctuator(":")?(this.readNextRawToken(),D=this.inheritCoverGrammar(this.parseAssignmentExpression)):i.type===O.Identifier?(d=!0,D=this.finalize({type:te.Identifier,name:i.value,...this.getItemLocation(a)})):this.throwUnexpectedToken({rawToken:this.rawToken}),this.finalize({type:te.Property,kind:"init",key:o,value:D,shorthand:d,...this.getItemLocation(a)})}parseObjectExpression(){const i=this.captureStartMarker();this.expectPunctuator("{");const a=[];for(;!this.matchPunctuator("}");)a.push(this.parseObjectProperty()),this.matchPunctuator("}")||this.expectPunctuator(",");return this.expectPunctuator("}"),this.finalize({type:te.ObjectExpression,properties:a,...this.getItemLocation(i)})}parseTemplateElement(i=!1){const a=this.rawToken;a.type!==O.Template&&this.throwUnexpectedToken({rawToken:a}),i&&!a.head&&this.throwUnexpectedToken({code:Y.InvalidTemplateHead,rawToken:a});const o=this.captureStartMarker();this.readNextRawToken();const{value:d,cooked:D,tail:P}=a,q=this.finalize({type:te.TemplateElement,value:{raw:d,cooked:D},tail:P,...this.getItemLocation(o)});return q.loc.start.column++,q.loc.end.column=q.loc.end.column-(P?1:2),q}parseTemplateLiteral(){const i=this.captureStartMarker(),a=[],o=[];let d=this.parseTemplateElement(!0);for(o.push(d);!d.tail;)a.push(this.parseExpression()),d=this.parseTemplateElement(),o.push(d);return this.finalize({type:te.TemplateLiteral,quasis:o,expressions:a,...this.getItemLocation(i)})}parseGroupExpression(){this.expectPunctuator("(");const i=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.expectPunctuator(")"),i}parseArguments(){this.expectPunctuator("(");const i=[];if(!this.matchPunctuator(")"))for(;;){const a=this.isolateCoverGrammar(this.parseAssignmentExpression);if(i.push(a),this.matchPunctuator(")")||(this.expectPunctuator(","),this.matchPunctuator(")")))break}return this.expectPunctuator(")"),i}parseMemberName(){const i=this.rawToken,a=this.captureStartMarker();return this.readNextRawToken(),i.type!==O.NullLiteral&&i.type!==O.Identifier&&i.type!==O.Keyword&&i.type!==O.BooleanLiteral&&this.throwUnexpectedToken({rawToken:i}),this.finalize({type:te.Identifier,name:i.value,...this.getItemLocation(a)})}parseLeftHandSideExpression(){const i=this.captureStartMarker();let a=this.inheritCoverGrammar(this.parsePrimaryExpression);const o=this.captureStartMarker();let d;for(;d=this.getMatchingPunctuator("([.");)switch(d){case"(":{this.context.isAssignmentTarget=!1,a.type!==te.Identifier&&a.type!==te.MemberExpression&&this.throwError(Y.IdentiferExpected,i,o);const D=this.parseArguments();a=this.finalize({type:te.CallExpression,callee:a,arguments:D,...this.getItemLocation(i)});continue}case"[":{this.context.isAssignmentTarget=!0,this.expectPunctuator("[");const D=this.isolateCoverGrammar(this.parseExpression);this.expectPunctuator("]"),a=this.finalize({type:te.MemberExpression,computed:!0,object:a,property:D,...this.getItemLocation(i)});continue}case".":{this.context.isAssignmentTarget=!0,this.expectPunctuator(".");const D=this.parseMemberName();a=this.finalize({type:te.MemberExpression,computed:!1,object:a,property:D,...this.getItemLocation(i)});continue}}return a}parseUpdateExpression(){const i=this.captureStartMarker();let a=this.getMatchingPunctuator(_);if(a){this.readNextRawToken();const P=this.captureStartMarker(),q=this.inheritCoverGrammar(this.parseUnaryExpression);return q.type!==te.Identifier&&q.type!==te.MemberExpression&&q.type!==te.CallExpression&&this.throwError(Y.InvalidExpression,P),this.context.isAssignmentTarget||this.tolerateError(Y.InvalidLeftHandSideInAssignment,i),this.context.isAssignmentTarget=!1,this.finalize({type:te.UpdateExpression,operator:a,argument:q,prefix:!0,...this.getItemLocation(i)})}const o=this.captureStartMarker(),d=this.inheritCoverGrammar(this.parseLeftHandSideExpression),D=this.captureStartMarker();return this.hasLineTerminator?d:(a=this.getMatchingPunctuator(_),a?(d.type!==te.Identifier&&d.type!==te.MemberExpression&&this.throwError(Y.InvalidExpression,o,D),this.context.isAssignmentTarget||this.tolerateError(Y.InvalidLeftHandSideInAssignment,i),this.readNextRawToken(),this.context.isAssignmentTarget=!1,this.finalize({type:te.UpdateExpression,operator:a,argument:d,prefix:!1,...this.getItemLocation(i)})):d)}parseUnaryExpression(){const i=this.getMatchingPunctuator(v);if(i){const a=this.captureStartMarker();this.readNextRawToken();const o=this.inheritCoverGrammar(this.parseUnaryExpression);return this.context.isAssignmentTarget=!1,this.finalize({type:te.UnaryExpression,operator:i,argument:o,prefix:!0,...this.getItemLocation(a)})}return this.parseUpdateExpression()}parseBinaryExpression(){const i=this.rawToken;let a=this.inheritCoverGrammar(this.parseUnaryExpression);if(this.rawToken.type!==O.Punctuator)return a;const o=this.rawToken.value;let d=Yn(o);if(0===d)return a;this.readNextRawToken(),this.context.isAssignmentTarget=!1;const D=[i,this.rawToken];let P=a,q=this.inheritCoverGrammar(this.parseUnaryExpression);const ue=[P,o,q],le=[d];for(;this.rawToken.type===O.Punctuator&&(d=Yn(this.rawToken.value))>0;){for(;ue.length>2&&d<=le[le.length-1];){q=ue.pop();const Ee=ue.pop();le.pop(),P=ue.pop(),D.pop();const Re=D[D.length-1],nt=xn(Re,Re.lineStart);ue.push(this.finalize(this.createBinaryOrLogicalExpression(nt,Ee,P,q)))}ue.push(this.rawToken.value),le.push(d),D.push(this.rawToken),this.readNextRawToken(),ue.push(this.inheritCoverGrammar(this.parseUnaryExpression))}let ye=ue.length-1;a=ue[ye];let xe=D.pop();for(;ye>1;){const Ee=D.pop();if(!Ee)break;const Re=xe?.lineStart,nt=xn(Ee,Re);a=this.finalize(this.createBinaryOrLogicalExpression(nt,ue[ye-1],ue[ye-2],a)),ye-=2,xe=Ee}return a}createBinaryOrLogicalExpression(i,a,o,d){const D=N.includes(a)?te.LogicalExpression:te.BinaryExpression;return D===te.BinaryExpression||(o.type!==te.AssignmentExpression&&o.type!==te.UpdateExpression||this.throwError(Y.InvalidExpression,...En(o)),d.type!==te.AssignmentExpression&&d.type!==te.UpdateExpression||this.throwError(Y.InvalidExpression,...En(o))),{type:D,operator:a,left:o,right:d,...this.getItemLocation(i)}}parseAssignmentExpression(){const i=this.captureStartMarker(),a=this.inheritCoverGrammar(this.parseBinaryExpression),o=this.captureStartMarker(),d=this.getMatchingPunctuator(I);if(!d)return a;a.type!==te.Identifier&&a.type!==te.MemberExpression&&this.throwError(Y.InvalidExpression,i,o),this.context.isAssignmentTarget||this.tolerateError(Y.InvalidLeftHandSideInAssignment,i),this.matchPunctuator("=")||(this.context.isAssignmentTarget=!1),this.readNextRawToken();const D=this.isolateCoverGrammar(this.parseAssignmentExpression);return this.finalize({type:te.AssignmentExpression,left:a,operator:d,right:D,...this.getItemLocation(i)})}parseExpression(){return this.isolateCoverGrammar(this.parseAssignmentExpression)}parseStatements(i=null){const a=[];for(;this.rawToken.type!==O.EOF&&!this.matchPunctuator(i);){const o=this.parseStatementListItem();Pe(o)||a.push(o)}return a}parseStatementListItem(){return this.context.isAssignmentTarget=!0,this.matchKeyword("function")?this.parseFunctionDeclaration():this.matchKeyword("export")?this.parseExportDeclaration():this.matchKeyword("import")?this.parseImportDeclaration():this.parseStatement()}parseBlock(){const i=this.captureStartMarker();this.expectPunctuator("{");const a=this.parseStatements("}");return this.expectPunctuator("}"),this.finalize({type:te.BlockStatement,body:a,...this.getItemLocation(i)})}parseObjectStatement(){const i=this.captureStartMarker(),a=this.parseObjectExpression();return this.finalize({type:te.ExpressionStatement,expression:a,...this.getItemLocation(i)})}parseBlockOrObjectStatement(){return this.context.curlyParsingType===wt.AsObject||this.peekAhead(i=>{let a=i();return(a.type===O.Identifier||a.type===O.StringLiteral)&&(a=i(),a.type===O.Punctuator&&":"===a.value)})?this.parseObjectStatement():this.parseBlock()}parseIdentifier(){const i=this.rawToken;if(i.type!==O.Identifier)return null;const a=this.captureStartMarker();return this.readNextRawToken(),this.finalize({type:te.Identifier,name:i.value,...this.getItemLocation(a)})}parseVariableDeclarator(){const i=this.captureStartMarker(),a=this.parseIdentifier();a||this.throwUnexpectedToken({code:Y.IdentiferExpected});let o=null;if(this.matchPunctuator("=")){this.readNextRawToken();const d=this.rawToken;try{o=this.isolateCoverGrammar(this.parseAssignmentExpression)}catch{this.throwUnexpectedToken({rawToken:d,code:Y.InvalidVariableAssignment})}}return this.finalize({type:te.VariableDeclarator,id:a,init:o,...this.getItemLocation(i)})}parseVariableDeclarationList(){const i=[this.parseVariableDeclarator()];for(;this.matchPunctuator(",");)this.readNextRawToken(),i.push(this.parseVariableDeclarator());return i}parseVariableDeclaration(){const i=this.captureStartMarker();this.expectKeyword("var");const a=this.parseVariableDeclarationList();return this.consumeSemicolon(),this.finalize({type:te.VariableDeclaration,declarations:a,kind:"var",...this.getItemLocation(i)})}parseEmptyStatement(){const i=this.captureStartMarker();return this.expectPunctuator(";"),this.finalize({type:te.EmptyStatement,...this.getItemLocation(i)})}parseExpressionStatement(){const i=this.captureStartMarker(),a=this.parseExpression();return this.consumeSemicolon(),this.finalize({type:te.ExpressionStatement,expression:a,...this.getItemLocation(i)})}parseIfClause(){return this.withBlockContext(je.IfClause,this.parseStatement)}parseIfStatement(){const i=this.captureStartMarker();this.expectKeyword("if"),this.expectPunctuator("(");const a=this.captureStartMarker(),o=this.parseExpression(),d=this.captureStartMarker();this.expectPunctuator(")"),o.type!==te.AssignmentExpression&&o.type!==te.UpdateExpression||this.throwError(Y.InvalidExpression,a,d);const D=this.parseIfClause();let P=null;return this.matchKeyword("else")&&(this.readNextRawToken(),P=this.parseIfClause()),this.finalize({type:te.IfStatement,test:o,consequent:D,alternate:P,...this.getItemLocation(i)})}parseWhileStatement(){const i=this.captureStartMarker();this.expectKeyword("while"),this.expectPunctuator("(");const a=this.captureStartMarker(),o=this.parseExpression(),d=this.captureStartMarker();this.expectPunctuator(")"),o.type!==te.AssignmentExpression&&o.type!==te.UpdateExpression||this.throwError(Y.InvalidExpression,a,d);const D=this.withBlockContext(je.WhileLoop,this.parseStatement);return this.finalize({type:te.WhileStatement,test:o,body:D,...this.getItemLocation(i)})}parseForStatement(){let i=null,a=null,o=null,d=null,D=null;const P=this.captureStartMarker();if(this.expectKeyword("for"),this.expectPunctuator("("),this.matchPunctuator(";"))this.readNextRawToken();else if(this.matchKeyword("var")){const ue=this.captureStartMarker();this.readNextRawToken();const le=this.parseVariableDeclarationList();1===le.length&&this.matchKeyword("in")?(le[0].init&&this.throwError(Y.ForInOfLoopInitializer,ue),d=this.finalize({type:te.VariableDeclaration,declarations:le,kind:"var",...this.getItemLocation(ue)}),this.readNextRawToken(),D=this.parseExpression()):(this.matchKeyword("in")&&this.throwError(Y.InvalidLeftHandSideInForIn,ue),i=this.finalize({type:te.VariableDeclaration,declarations:le,kind:"var",...this.getItemLocation(ue)}),this.expectPunctuator(";"))}else{const ue=this.context.isAssignmentTarget,le=this.captureStartMarker();i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.matchKeyword("in")?(this.context.isAssignmentTarget||this.tolerateError(Y.InvalidLeftHandSideInForIn,le),i.type!==te.Identifier&&this.throwError(Y.InvalidLeftHandSideInForIn,le),this.readNextRawToken(),d=i,D=this.parseExpression(),i=null):(this.context.isAssignmentTarget=ue,this.expectPunctuator(";"))}d||(this.matchPunctuator(";")||(a=this.isolateCoverGrammar(this.parseExpression)),this.expectPunctuator(";"),this.matchPunctuator(")")||(o=this.isolateCoverGrammar(this.parseExpression))),this.expectPunctuator(")");const q=this.withBlockContext(je.ForLoop,()=>this.isolateCoverGrammar(this.parseStatement));return this.finalize(d&&D?{type:te.ForInStatement,left:d,right:D,body:q,...this.getItemLocation(P)}:{type:te.ForStatement,init:i,test:a,update:o,body:q,...this.getItemLocation(P)})}parseContinueStatement(){const i=this.captureStartMarker();return this.expectKeyword("continue"),this.consumeSemicolon(),this.finalize({type:te.ContinueStatement,...this.getItemLocation(i)})}parseBreakStatement(){const i=this.captureStartMarker();return this.expectKeyword("break"),this.consumeSemicolon(),this.finalize({type:te.BreakStatement,...this.getItemLocation(i)})}parseReturnStatement(){const i=this.captureStartMarker();this.expectKeyword("return");const a=(this.matchPunctuator(";")||this.matchPunctuator("}")||this.hasLineTerminator||this.rawToken.type===O.EOF)&&this.rawToken.type!==O.StringLiteral&&this.rawToken.type!==O.Template?null:this.parseExpression();return this.consumeSemicolon(),this.finalize({type:te.ReturnStatement,argument:a,...this.getItemLocation(i)})}parseStatement(){switch(this.rawToken.type){case O.BooleanLiteral:case O.NullLiteral:case O.NumericLiteral:case O.StringLiteral:case O.Template:case O.Identifier:return this.parseExpressionStatement();case O.Punctuator:return"{"===this.rawToken.value?this.parseBlockOrObjectStatement():"("===this.rawToken.value?this.parseExpressionStatement():";"===this.rawToken.value?this.parseEmptyStatement():this.parseExpressionStatement();case O.Keyword:switch(this.rawToken.value.toLowerCase()){case"break":return this.parseBreakStatement();case"continue":return this.parseContinueStatement();case"for":return this.parseForStatement();case"function":return this.parseFunctionDeclaration();case"if":return this.parseIfStatement();case"return":return this.parseReturnStatement();case"var":return this.parseVariableDeclaration();case"while":return this.parseWhileStatement();default:return this.parseExpressionStatement()}default:return this.throwUnexpectedToken({rawToken:this.rawToken})}}parseFormalParameters(){const i=[];if(this.expectPunctuator("("),!this.matchPunctuator(")"))for(;this.rawToken.type!==O.EOF;){const a=this.parseIdentifier();if(a||this.throwUnexpectedToken({rawToken:this.rawToken,code:Y.IdentiferExpected}),i.push(a),this.matchPunctuator(")")||(this.expectPunctuator(","),this.matchPunctuator(")")))break}return this.expectPunctuator(")"),i}parseFunctionDeclaration(){(this.context.blockContext&je.Function)===je.Function&&this.throwUnexpectedToken({code:Y.NoFunctionInsideFunction}),(this.context.blockContext&je.WhileLoop)!==je.WhileLoop&&(this.context.blockContext&je.IfClause)!==je.IfClause||this.throwUnexpectedToken({code:Y.NoFunctionInsideBlock});const i=this.captureStartMarker();this.expectKeyword("function");const a=this.parseIdentifier();a||this.throwUnexpectedToken({code:Y.InvalidFunctionIdentifier});const o=this.parseFormalParameters(),d=this.context.blockContext;this.context.blockContext=this.context.blockContext|je.Function;const D=this.parseBlock();return this.context.blockContext=d,this.finalize({type:te.FunctionDeclaration,id:a,params:o,body:D,...this.getItemLocation(i)})}parseScript(){const i=this.captureStartMarker(),a=this.parseStatements(),o=this.finalize({type:te.Program,body:a,...this.getItemLocation(i)});return this.options.tokens&&(o.tokens=this.tokens),this.options.tolerant&&(o.errors=this.errorHandler.errors),o}parseExportDeclaration(){this.context.blockContext!==je.None&&this.throwUnexpectedToken({code:Y.ModuleExportRootOnly});let i=null;const a=this.captureStartMarker();return this.expectKeyword("export"),this.matchKeyword("var")?i=this.parseVariableDeclaration():this.matchKeyword("function")?i=this.parseFunctionDeclaration():this.throwUnexpectedToken({code:Y.InvalidExpression}),this.finalize({type:te.ExportNamedDeclaration,declaration:i,specifiers:[],source:null,...this.getItemLocation(a)})}parseModuleSpecifier(){const i=this.captureStartMarker(),a=this.rawToken;if(a.type===O.StringLiteral)return this.readNextRawToken(),this.finalize({type:te.Literal,value:a.value,raw:this.getSourceValue(a),isString:!0,...this.getItemLocation(i)});this.throwError(Y.InvalidModuleUri,i)}parseDefaultSpecifier(){const i=this.captureStartMarker(),a=this.parseIdentifier();return a||this.throwUnexpectedToken({code:Y.InvalidFunctionIdentifier}),this.finalize({type:te.ImportDefaultSpecifier,local:a,...this.getItemLocation(i)})}parseImportDeclaration(){this.context.blockContext!==je.None&&this.throwUnexpectedToken({code:Y.ModuleImportRootOnly});const i=this.captureStartMarker();this.expectKeyword("import");const a=this.parseDefaultSpecifier();this.expectContextualKeyword("from");const o=this.parseModuleSpecifier();return this.finalize({type:te.ImportDeclaration,specifiers:[a],source:o,...this.getItemLocation(i)})}}function en(s,i=[]){const a=function Fn(s,i,a){return new wn(s,i,a).parseScript()}(s);if(null==a.body)throw new _e({index:0,line:0,column:0,data:null,description:"",code:Y.InvalidExpression});if(0===a.body.length)throw new _e({index:0,line:0,column:0,data:null,description:"",code:Y.InvalidExpression});if(0===a.body.length)throw new _e({index:0,line:0,column:0,data:null,description:"",code:Y.InvalidExpression});return a.loadedModules={},(0,K.dN)(a,i),a}class tn{constructor(i){const a=this;a._keys=[],a._values=[],a.length=0,i&&i.forEach(o=>{a.set(o[0],o[1])})}entries(){return[].slice.call(this.keys().map((i,a)=>[i,this._values[a]]))}keys(){return[].slice.call(this._keys)}values(){return[].slice.call(this._values)}has(i){return this._keys.includes(i)}get(i){const a=this._keys.indexOf(i);return a>-1?this._values[a]:null}deepGet(i){if(!i||!i.length)return null;const a=(o,d)=>null==o?null:d.length?a(o instanceof tn?o.get(d[0]):o[d[0]],d.slice(1)):o;return a(this.get(i[0]),i.slice(1))}set(i,a){const o=this,d=this._keys.indexOf(i);return d>-1?o._values[d]=a:(o._keys.push(i),o._values.push(a),o.length=o._values.length),this}sortedSet(i,a,o,d){const D=this,P=this._keys.length,q=o||0,ue=void 0!==d?d:P-1;if(0===P)return D._keys.push(i),D._values.push(a),D;if(i===this._keys[q])return this._values.splice(q,0,a),this;if(i===this._keys[ue])return this._values.splice(ue,0,a),this;if(i>this._keys[ue])return this._keys.splice(ue+1,0,i),this._values.splice(ue+1,0,a),this;if(i=ue)return this;const le=q+Math.floor((ue-q)/2);return ithis._keys[le]?this.sortedSet(i,a,le+1,ue):this}size(){return this.length}clear(){const i=this;return i._keys.length=i.length=i._values.length=0,this}delete(i){const a=this,o=a._keys.indexOf(i);return o>-1&&(a._keys.splice(o,1),a._values.splice(o,1),a.length=a._keys.length,!0)}forEach(i){this._keys.forEach((a,o)=>{i(this._values[o],a,o)})}map(i){return this.keys().map((a,o)=>i(this._values[o],a,o))}filter(i){const a=this;return a._keys.forEach((o,d)=>{!1===i(a._values[d],o,d)&&a.delete(o)}),this}clone(){return new tn(this.entries())}}class qn{constructor(i=20){this._maxEntries=i,this._values=new tn}delete(i){this._values.has(i)&&this._values.delete(i)}get(i){let a=null;return this._values.has(i)&&(a=this._values.get(i),this._values.delete(i),this._values.set(i,a)),a}put(i,a){if(this._values.size()>=this._maxEntries){const o=this._values.keys()[0];this._values.delete(o)}this._values.set(i,a)}}class et{constructor(i){this.portalUri=i}normalizeModuleUri(i){const a=/^[a-z0-9A-Z]+(@[0-9]+\.[0-9]+\.[0-9]+)?([\?|\/].*)?$/gi,o=/(?.+)\/home\/item\.html\?id\=(?.+)$/gi,d=/(?.+)\/sharing\/rest\/content\/users\/[a-zA-Z0-9]+\/items\/(?.+)$/gi,D=/(?.+)\/sharing\/rest\/content\/items\/(?.+)$/gi,P=/(?.*)@(?[0-9]+\.[0-9]+\.[0-9]+)([\?|\/].*)?$/gi;if(i.startsWith("portal+")){let q=i.substring(7),ue="",le=q,ye=!1;for(const Re of[o,D,d]){const nt=Re.exec(q);if(null!==nt){const zt=nt.groups;le=zt.itemid,ue=zt.portalurl,ye=!0;break}}if(!1===ye){if(!a.test(q))throw new c.Tu(c.TD.UnsupportedUriProtocol,{uri:i});le=q,ue=this.portalUri}le.includes("/")&&(le=le.split("/")[0]),le.includes("?")&&(le=le.split("?")[0]);let xe="current";const Ee=P.exec(le);if(null!==Ee){const Re=Ee.groups;le=Re.itemid,xe=Re.versionstring}return q=new We.Z({url:ue}).restUrl+"/content/items/"+le+"/resources/"+xe+".arc",{url:q,scheme:"portal",uri:"PO:"+q}}if(i.startsWith("mock")){if("mock"===i)return{url:"",scheme:"mock",data:'\n export var hello = 1;\n export function helloWorld() {\n return "Hello World " + hello;\n }\n ',uri:"mock"};const q=i.replace("mock:","");if(void 0!==et.mocks[q])return{url:"",scheme:"mock",data:et.mocks[q],uri:i}}throw new c.Tu(c.TD.UnrecognisedUri,{uri:i})}fetchModule(i){var a=this;return(0,z.Z)(function*(){const o=et.cachedModules.getFromCache(i.uri);if(o)return o;const d=a.fetchSource(i);et.cachedModules.addToCache(i.uri,d);let D=null;try{D=yield d}catch(P){throw et.cachedModules.removeFromCache(i.uri),P}return D})()}fetchSource(i){return(0,z.Z)(function*(){if("portal"===i.scheme){const a=yield(0,Mt.default)(i.url,{responseType:"text",query:{}});if(a.data)return en(a.data,[])}if("mock"===i.scheme)return en(i.data??"",[]);throw new c.Tu(c.TD.UnsupportedUriProtocol)})()}static create(i){return new et(i)}static getDefault(){return this._default??(et._default=et._moduleResolverFactory())}static set moduleResolverClass(i){this._moduleResolverFactory=i,this._default=null}}et.mocks={},et.cachedModules=new class Ur{constructor(i=20){this._maxEntries=i,this._cache=new qn(this._maxEntries)}clear(){this._cache=new qn(this._maxEntries)}addToCache(i,a){this._cache.put(i,a)}removeFromCache(i){this._cache.delete(i)}getFromCache(i){return this._cache.get(i)}}(30),et._default=null,et._moduleResolverFactory=()=>{const s=We.Z.getDefault();return new et(s.url)};class Qn extends S.Rm{constructor(i,a){super(),this.definition=null,this.context=null,this.definition=i,this.context=a}createFunction(i){return(...a)=>{const o={spatialReference:this.context.spatialReference,console:this.context.console,lrucache:this.context.lrucache,exports:this.context.exports,libraryResolver:this.context.libraryResolver,interceptor:this.context.interceptor,localScope:{},depthCounter:{depth:i.depthCounter.depth+1},globalScope:this.context.globalScope};if(o.depthCounter.depth>64)throw new c.aV(i,c.rH.MaximumCallDepth,null);return An(this.definition,o,a,null)}}call(i,a){return Ft(i,a,(o,d,D)=>{const P={spatialReference:i.spatialReference,globalScope:i.globalScope,depthCounter:{depth:i.depthCounter.depth+1},libraryResolver:i.libraryResolver,exports:i.exports,console:i.console,lrucache:i.lrucache,interceptor:i.interceptor,localScope:{}};if(P.depthCounter.depth>64)throw new c.aV(i,c.rH.MaximumCallDepth,a);return An(this.definition,P,D,a)})}marshalledCall(i,a,o,d){return d(i,a,(D,P,q)=>{const ue={spatialReference:i.spatialReference,globalScope:o.globalScope,depthCounter:{depth:i.depthCounter.depth+1},libraryResolver:i.libraryResolver,exports:i.exports,console:i.console,lrucache:i.lrucache,interceptor:i.interceptor,localScope:{}};return q=q.map(le=>!(0,f.i)(le)||le instanceof S.Vg?le:(0,S.aq)(le,i,d)),(0,S.aq)(An(this.definition,ue,q,a),o,d)})}}class Zt extends L.P{constructor(i){super(i)}global(i){const a=this.executingContext.globalScope[i.toLowerCase()];if(a.valueset||(a.value=pe(this.executingContext,a.node),a.valueset=!0),(0,f.i)(a.value)&&!(a.value instanceof S.Vg)){const o=new S.Vg;o.fn=a.value,o.parameterEvaluator=Ft,o.context=this.executingContext,a.value=o}return a.value}setGlobal(i,a){if((0,f.i)(a))throw new c.aV(null,c.rH.AssignModuleFunction,null);this.executingContext.globalScope[i.toLowerCase()]={value:a,valueset:!0,node:null}}hasGlobal(i){return void 0===this.executingContext.exports[i]&&(i=i.toLowerCase()),void 0!==this.executingContext.exports[i]}loadModule(i){let a=i.spatialReference;null==a&&(a=new H.Z({wkid:102100})),this.moduleScope=ir({},i.customfunctions),this.executingContext={spatialReference:a,globalScope:this.moduleScope,localScope:null,libraryResolver:new C.s(i.libraryResolver._moduleSingletons,this.source.syntax.loadedModules),exports:{},console:i.console?i.console:sr,lrucache:i.lrucache,interceptor:i.interceptor,depthCounter:{depth:1}},pe(this.executingContext,this.source.syntax)}}function Ft(s,i,a){try{return!0===i.preparsed?a(s,null,i.arguments):a(s,i,function Lt(s,i){const a=[];for(let o=0;oo.length)throw new c.aV(s,c.rH.OutOfBounds,i);if(d===o.length){if("="!==i.operator)throw new c.aV(s,c.rH.OutOfBounds,i);o[d]=bt(a,i.operator,o[d],i,s)}else o[d]=bt(a,i.operator,o[d],i,s)}else if(o instanceof R.Z){if(!1===(0,f.c)(d))throw new c.aV(s,c.rH.KeyAccessorMustBeString,i);if(!0===o.hasField(d))o.setField(d,bt(a,i.operator,o.field(d),i,s));else{if("="!==i.operator)throw new c.aV(s,c.rH.FieldNotFound,i,{key:d});o.setField(d,bt(a,i.operator,null,i,s))}}else if((0,f.w)(o)){if(!1===(0,f.c)(d))throw new c.aV(s,c.rH.KeyAccessorMustBeString,i);if(!0===o.hasField(d))o.setField(d,bt(a,i.operator,o.field(d),i,s));else{if("="!==i.operator)throw new c.aV(s,c.rH.FieldNotFound,i,{key:d});o.setField(d,bt(a,i.operator,null,i,s))}}else{if((0,f.x)(o))throw new c.aV(s,c.rH.Immutable,i);if(!(o instanceof Zt))throw new c.aV(s,c.rH.InvalidIdentifier,i);if(!1===(0,f.c)(d))throw new c.aV(s,c.rH.ModuleAccessorMustBeString,i);if(!0!==o.hasGlobal(d))throw new c.aV(s,c.rH.ModuleExportNotFound,i);o.setGlobal(d,bt(a,i.operator,o.global(d),i,s))}return f.v}if(o=i.left.name.toLowerCase(),null!=s.localScope&&void 0!==s.localScope[o])return s.localScope[o]={value:bt(a,i.operator,s.localScope[o].value,i,s),valueset:!0,node:i.right},f.v;if(void 0!==s.globalScope[o])return s.globalScope[o]={value:bt(a,i.operator,s.globalScope[o].value,i,s),valueset:!0,node:i.right},f.v;throw new c.aV(s,c.rH.InvalidIdentifier,i)}(s,i);case"UpdateExpression":return function Cn(s,i){let a,o=null,d="";if("MemberExpression"===i.argument.type){if(o=pe(s,i.argument.object),!0===i.argument.computed?d=pe(s,i.argument.property):"Identifier"===i.argument.property.type&&(d=i.argument.property.name),(0,f.m)(o)){if(!(0,f.b)(d))throw new c.aV(s,c.rH.ArrayAccessorMustBeNumber,i);if(d<0&&(d=o.length+d),d<0||d>=o.length)throw new c.aV(s,c.rH.OutOfBounds,i);a=(0,f.g)(o[d]),o[d]="++"===i.operator?a+1:a-1}else if(o instanceof R.Z){if(!1===(0,f.c)(d))throw new c.aV(s,c.rH.KeyAccessorMustBeString,i);if(!0!==o.hasField(d))throw new c.aV(s,c.rH.FieldNotFound,i);a=(0,f.g)(o.field(d)),o.setField(d,"++"===i.operator?a+1:a-1)}else if((0,f.w)(o)){if(!1===(0,f.c)(d))throw new c.aV(s,c.rH.KeyAccessorMustBeString,i);if(!0!==o.hasField(d))throw new c.aV(s,c.rH.FieldNotFound,i);a=(0,f.g)(o.field(d)),o.setField(d,"++"===i.operator?a+1:a-1)}else{if((0,f.x)(o))throw new c.aV(s,c.rH.Immutable,i);if(!(o instanceof Zt))throw new c.aV(s,c.rH.InvalidParameter,i);if(!1===(0,f.c)(d))throw new c.aV(s,c.rH.ModuleAccessorMustBeString,i);if(!0!==o.hasGlobal(d))throw new c.aV(s,c.rH.ModuleExportNotFound,i);a=(0,f.g)(o.global(d)),o.setGlobal(d,"++"===i.operator?a+1:a-1)}return!1===i.prefix?a:"++"===i.operator?a+1:a-1}if(o="Identifier"===i.argument.type?i.argument.name.toLowerCase():"",!o)throw new c.aV(s,c.rH.InvalidIdentifier,i);if(null!=s.localScope&&void 0!==s.localScope[o])return a=(0,f.g)(s.localScope[o].value),s.localScope[o]={value:"++"===i.operator?a+1:a-1,valueset:!0,node:i},!1===i.prefix?a:"++"===i.operator?a+1:a-1;if(void 0!==s.globalScope[o])return a=(0,f.g)(s.globalScope[o].value),s.globalScope[o]={value:"++"===i.operator?a+1:a-1,valueset:!0,node:i},!1===i.prefix?a:"++"===i.operator?a+1:a-1;throw new c.aV(s,c.rH.InvalidIdentifier,i)}(s,i);case"BreakStatement":return f.o;case"ContinueStatement":return f.p;case"TemplateElement":return function si(s,i){return i.value?i.value.cooked:""}(0,i);case"TemplateLiteral":return function oi(s,i){let a="",o=0;for(const d of i.quasis)a+=d.value?d.value.cooked:"",!1===d.tail&&(a+=i.expressions[o]?(0,f.j)(ai(pe(s,i.expressions[o]),s,i)):"",o++);return a}(s,i);case"ForStatement":return function Gr(s,i){null!==i.init&&pe(s,i.init);const a={testResult:!0,lastAction:f.v};do{zr(s,i,a)}while(!0===a.testResult);return a.lastAction instanceof f.R?a.lastAction:f.v}(s,i);case"ForInStatement":return function Zr(s,i){const a=pe(s,i.right);"VariableDeclaration"===i.left.type&&pe(s,i.left);let o=null,d="";if("VariableDeclaration"===i.left.type){const D=i.left.declarations[0].id;"Identifier"===D.type&&(d=D.name)}else"Identifier"===i.left.type&&(d=i.left.name);if(!d)throw new c.aV(s,c.rH.InvalidIdentifier,i);if(d=d.toLowerCase(),null!=s.localScope&&void 0!==s.localScope[d]&&(o=s.localScope[d]),null===o&&void 0!==s.globalScope[d]&&(o=s.globalScope[d]),null===o)throw new c.aV(s,c.rH.InvalidIdentifier,i);if((0,f.m)(a)||(0,f.c)(a)){const D=a.length;for(let P=0;P=a.length||o<0)throw new c.aV(s,c.rH.OutOfBounds,i);return a[o]}throw new c.aV(s,c.rH.InvalidMemberAccessKey,i)}if((0,f.c)(a)){if((0,f.b)(o)&&isFinite(o)&&Math.floor(o)===o){if(o<0&&(o=a.length+o),o>=a.length||o<0)throw new c.aV(s,c.rH.OutOfBounds,i);return a[o]}throw new c.aV(s,c.rH.InvalidMemberAccessKey,i)}if((0,f.x)(a)){if((0,f.b)(o)&&isFinite(o)&&Math.floor(o)===o){if(o<0&&(o=a.length()+o),o>=a.length()||o<0)throw new c.aV(s,c.rH.OutOfBounds,i);return a.get(o)}throw new c.aV(s,c.rH.InvalidMemberAccessKey,i)}throw new c.aV(s,c.rH.InvalidMemberAccessKey,i)}}catch(a){throw a}}(s,i);case"Literal":return i.value;case"CallExpression":return function ui(s,i){try{if("MemberExpression"===i.callee.type){const a=pe(s,i.callee.object);if(!(a instanceof Zt))throw new c.aV(s,c.rH.FuncionNotFound,i);const o=!1===i.callee.computed?i.callee.property.name:pe(s,i.callee.property);if(!a.hasGlobal(o))throw new c.aV(s,c.rH.FuncionNotFound,i);const d=a.global(o);if(!(0,f.i)(d))throw new c.aV(s,c.rH.CallNonFunction,i);return d.call(s,i)}if("Identifier"!==i.callee.type)throw new c.aV(s,c.rH.FuncionNotFound,i);if(null!=s.localScope&&void 0!==s.localScope[i.callee.name.toLowerCase()]){const a=s.localScope[i.callee.name.toLowerCase()];if((0,f.i)(a.value))return a.value.call(s,i);throw new c.aV(s,c.rH.CallNonFunction,i)}if(void 0!==s.globalScope[i.callee.name.toLowerCase()]){const a=s.globalScope[i.callee.name.toLowerCase()];if((0,f.i)(a.value))return a.value.call(s,i);throw new c.aV(s,c.rH.CallNonFunction,i)}throw new c.aV(s,c.rH.FuncionNotFound,i)}catch(a){throw a}}(s,i);case"UnaryExpression":return function er(s,i){try{const a=pe(s,i.argument);if((0,f.a)(a)){if("!"===i.operator)return!a;if("-"===i.operator)return-1*(0,f.g)(a);if("+"===i.operator)return 1*(0,f.g)(a);if("~"===i.operator)return~(0,f.g)(a);throw new c.aV(s,c.rH.UnsupportedUnaryOperator,i)}if("~"===i.operator)return~(0,f.g)(a);if("-"===i.operator)return-1*(0,f.g)(a);if("+"===i.operator)return 1*(0,f.g)(a);throw new c.aV(s,c.rH.UnsupportedUnaryOperator,i)}catch(a){throw a}}(s,i);case"BinaryExpression":return function ri(s,i){try{const a=[pe(s,i.left),pe(s,i.right)],o=a[0],d=a[1];switch(i.operator){case"|":case"<<":case">>":case">>>":case"^":case"&":return(0,f.u)((0,f.g)(o),(0,f.g)(d),i.operator);case"==":return(0,f.s)(o,d);case"!=":return!(0,f.s)(o,d);case"<":case">":case"<=":case">=":return(0,f.r)(o,d,i.operator);case"+":return(0,f.c)(o)||(0,f.c)(d)?(0,f.j)(o)+(0,f.j)(d):(0,f.g)(o)+(0,f.g)(d);case"-":return(0,f.g)(o)-(0,f.g)(d);case"*":return(0,f.g)(o)*(0,f.g)(d);case"/":return(0,f.g)(o)/(0,f.g)(d);case"%":return(0,f.g)(o)%(0,f.g)(d);default:throw new c.aV(s,c.rH.UnsupportedOperator,i)}}catch(a){throw a}}(s,i);case"LogicalExpression":return function ii(s,i){try{const a=pe(s,i.left);if((0,f.a)(a))switch(i.operator){case"||":if(!0===a)return a;{const o=pe(s,i.right);if((0,f.a)(o))return o;throw new c.aV(s,c.rH.LogicExpressionOrAnd,i)}case"&&":if(!1===a)return a;{const o=pe(s,i.right);if((0,f.a)(o))return o;throw new c.aV(s,c.rH.LogicExpressionOrAnd,i)}default:throw new c.aV(s,c.rH.LogicExpressionOrAnd,i)}throw new c.aV(s,c.rH.LogicalExpressionOnlyBoolean,i)}catch(a){throw a}}(s,i);case"ArrayExpression":return function ni(s,i){try{const a=[];for(let o=0;o0&&(a=et.getDefault()),i.loadedModules={};for(const P of D){(0,Pt.O3)(a);const q=a.normalizeModuleUri(P.source);if(s.has(q.uri))throw new c.aV(null,c.rH.CircularModules,null);s.add(q.uri);const ue=yield a.fetchModule(q);yield un(s,ue,o,[],d,a),s.delete(q.uri),ue.isAsync&&(i.isAsync=!0),ue.usesFeatureSet&&(i.usesFeatureSet=!0),ue.usesGeometry&&(i.usesGeometry=!0),i.loadedModules[P.libname]={uri:q.uri,script:ue}}}),cn.apply(this,arguments)}function Pn(s){if(st(s))return!0;const i=(0,K.Vf)(s);let a=!1;for(let o=0;o{Vn.test(P)&&(P=P.replace(Vn,""),d.push(P))});const D=d.filter(P=>P.includes("*"));return d=d.filter(P=>!D.includes(P)),i&&D.forEach(P=>{const q=new RegExp(`^${P.split(/\*+/).map(Hn).join(".*")}$`,"i");i.forEach(ue=>q.test(ue)?d.push(ue):null)}),[...new Set(d.sort())]}function Zn(s){return Gt(s,"$view")}function Ar(s,i){return!!s&&Gt(s,i)}function vr(s){if(s&&(null!=s.spatialReference||null!=s.scale&&null!=s.viewingMode))return{view:s.viewingMode&&null!=s.scale?new R.Z({viewingMode:s.viewingMode,scale:s.scale}):null,sr:s.spatialReference}}function xi({url:s,spatialReference:i,lrucache:a,interceptor:o}){const d=Yt();return d?d.createFeatureSetCollectionFromService(s,i,a,o):null}function Ei({layer:s,spatialReference:i,outFields:a,returnGeometry:o,lrucache:d,interceptor:D}){if(null===s)return null;const P=Yt();return P?P.constructFeatureSet(s,i,a,o??!0,d,D):null}function Sr(s){if(null===s?.map)return null;const i=Yt();return i?i.createFeatureSetCollectionFromMap(s.map,s.spatialReference,s.lrucache,s.interceptor):null}function wi(s){return R.Z.convertJsonToArcade(s)}function Fi(s,i,a=[]){return mr(s,i,a)}function br(){return Ie()}function Ir(){return On()}function jt(s,i){if(!s)return!1;if("string"==typeof s)return i(s);const a=s;if(function _r(s){return"simple"===s.type||"class-breaks"===s.type||"unique-value"===s.type||"dot-density"===s.type||"dictionary"===s.type||"pie-chart"===s.type}(a)){if("dot-density"===a.type){const D=a.attributes?.some(P=>i(P.valueExpression));if(D)return D}const o=a.visualVariables,d=!!o&&o.some(D=>{let P=i(D.valueExpression);return"size"===D.type&&((0,dn.iY)(D.minSize)&&(P=P||i(D.minSize.valueExpression)),(0,dn.iY)(D.maxSize)&&(P=P||i(D.maxSize.valueExpression))),P});return!(!("valueExpression"in a)||!i(a.valueExpression))||d}if(function Tr(s){return"esri.layers.support.LabelClass"===s.declaredClass}(a)){const o=a.labelExpressionInfo&&a.labelExpressionInfo.expression;return!(!o||!i(o))||!1}return!!function Se(s){return"esri.PopupTemplate"===s.declaredClass}(a)&&(!!a.expressionInfos&&a.expressionInfos.some(o=>i(o.expression))||Array.isArray(a.content)&&a.content.some(o=>"expression"===o.type&&i(o.expressionInfo?.expression)))}function Ii(s){const i=kt(s);return!!i&&Pn(i)}function m(s){return jt(s,Ii)}function u(s){const i=kt(s);return!!i&&st(i)}function h(s){return jt(s,u)}},21837:(Ve,De,Z)=>{Z.d(De,{ou:()=>Se});class M extends Error{}class z extends M{constructor(u){super(`Invalid DateTime: ${u.toMessage()}`)}}class R extends M{constructor(u){super(`Invalid Interval: ${u.toMessage()}`)}}class E extends M{constructor(u){super(`Invalid Duration: ${u.toMessage()}`)}}class f extends M{}class K extends M{constructor(u){super(`Invalid unit ${u}`)}}class Q extends M{}class b extends M{constructor(){super("Zone is an abstract class")}}const F="numeric",W="short",$="long",A={year:F,month:F,day:F},k={year:F,month:W,day:F},B={year:F,month:W,day:F,weekday:W},G={year:F,month:$,day:F},H={year:F,month:$,day:F,weekday:$},C={hour:F,minute:F},L={hour:F,minute:F,second:F},S={hour:F,minute:F,second:F,timeZoneName:W},c={hour:F,minute:F,second:F,timeZoneName:$},g={hour:F,minute:F,hourCycle:"h23"},y={hour:F,minute:F,second:F,hourCycle:"h23"},w={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:W},U={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:$},V={year:F,month:F,day:F,hour:F,minute:F},l={year:F,month:F,day:F,hour:F,minute:F,second:F},x={year:F,month:W,day:F,hour:F,minute:F},j={year:F,month:W,day:F,hour:F,minute:F,second:F},X={year:F,month:W,day:F,weekday:W,hour:F,minute:F},oe={year:F,month:$,day:F,hour:F,minute:F,timeZoneName:W},me={year:F,month:$,day:F,hour:F,minute:F,second:F,timeZoneName:W},fe={year:F,month:$,day:F,weekday:$,hour:F,minute:F,timeZoneName:$},Fe={year:F,month:$,day:F,weekday:$,hour:F,minute:F,second:F,timeZoneName:$};function se(m){return typeof m>"u"}function de(m){return"number"==typeof m}function ie(m){return"number"==typeof m&&m%1==0}function Be(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Ye(m,u,h){if(0!==m.length)return m.reduce((s,i)=>{const a=[u(i),i];return s&&h(s[0],a[0])===s[0]?s:a},null)[1]}function ht(m,u){return Object.prototype.hasOwnProperty.call(m,u)}function Qe(m,u,h){return ie(m)&&m>=u&&m<=h}function Le(m,u=2){let s;return s=m<0?"-"+(""+-m).padStart(u,"0"):(""+m).padStart(u,"0"),s}function Me(m){if(!se(m)&&null!==m&&""!==m)return parseInt(m,10)}function rt(m){if(!se(m)&&null!==m&&""!==m)return parseFloat(m)}function we(m){if(!se(m)&&null!==m&&""!==m){const u=1e3*parseFloat("0."+m);return Math.floor(u)}}function ft(m,u,h=!1){const s=10**u;return(h?Math.trunc:Math.round)(m*s)/s}function at(m){return m%4==0&&(m%100!=0||m%400==0)}function $e(m){return at(m)?366:365}function Ct(m,u){const h=function Xe(m,u){return m-u*Math.floor(m/u)}(u-1,12)+1;return 2===h?at(m+(u-h)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][h-1]}function ke(m){let u=Date.UTC(m.year,m.month-1,m.day,m.hour,m.minute,m.second,m.millisecond);return m.year<100&&m.year>=0&&(u=new Date(u),u.setUTCFullYear(u.getUTCFullYear()-1900)),+u}function Ue(m){const u=(m+Math.floor(m/4)-Math.floor(m/100)+Math.floor(m/400))%7,h=m-1,s=(h+Math.floor(h/4)-Math.floor(h/100)+Math.floor(h/400))%7;return 4===u||3===s?53:52}function Ce(m){return m>99?m:m>60?1900+m:2e3+m}function it(m,u,h,s=null){const i=new Date(m),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(a.timeZone=s);const o={timeZoneName:u,...a},d=new Intl.DateTimeFormat(h,o).formatToParts(i).find(D=>"timezonename"===D.type.toLowerCase());return d?d.value:null}function pt(m,u){let h=parseInt(m,10);Number.isNaN(h)&&(h=0);const s=parseInt(u,10)||0;return 60*h+(h<0||Object.is(h,-0)?-s:s)}function At(m){const u=Number(m);if("boolean"==typeof m||""===m||Number.isNaN(u))throw new Q(`Invalid unit value ${m}`);return u}function Dt(m,u){const h={};for(const s in m)if(ht(m,s)){const i=m[s];if(null==i)continue;h[u(s)]=At(i)}return h}function yt(m,u){const h=Math.trunc(Math.abs(m/60)),s=Math.trunc(Math.abs(m%60)),i=m>=0?"+":"-";switch(u){case"short":return`${i}${Le(h,2)}:${Le(s,2)}`;case"narrow":return`${i}${h}${s>0?`:${s}`:""}`;case"techie":return`${i}${Le(h,2)}${Le(s,2)}`;default:throw new RangeError(`Value format ${u} is out of range for property format`)}}function It(m){return function He(m,u){return u.reduce((h,s)=>(h[s]=m[s],h),{})}(m,["hour","minute","second","millisecond"])}const qe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,vt=["January","February","March","April","May","June","July","August","September","October","November","December"],St=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],_t=["J","F","M","A","M","J","J","A","S","O","N","D"];function xt(m){switch(m){case"narrow":return[..._t];case"short":return[...St];case"long":return[...vt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const mt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Tt=["M","T","W","T","F","S","S"];function gt(m){switch(m){case"narrow":return[...Tt];case"short":return[...Bt];case"long":return[...mt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Nt=["AM","PM"],Mt=["Before Christ","Anno Domini"],We=["BC","AD"],te=["B","A"];function _(m){switch(m){case"narrow":return[...te];case"short":return[...We];case"long":return[...Mt];default:return null}}function ee(m,u){let h="";for(const s of m)h+=s.literal?s.val:u(s.val);return h}const Y={D:A,DD:k,DDD:G,DDDD:H,t:C,tt:L,ttt:S,tttt:c,T:g,TT:y,TTT:w,TTTT:U,f:V,ff:x,fff:oe,ffff:fe,F:l,FF:j,FFF:me,FFFF:Fe};class he{static create(u,h={}){return new he(u,h)}static parseFormat(u){let h=null,s="",i=!1;const a=[];for(let o=0;o0&&a.push({literal:i,val:s}),h=null,s="",i=!i):i||d===h?s+=d:(s.length>0&&a.push({literal:!1,val:s}),s=d,h=d)}return s.length>0&&a.push({literal:i,val:s}),a}static macroTokenToFormatOpts(u){return Y[u]}constructor(u,h){this.opts=h,this.loc=u,this.systemLoc=null}formatWithSystemDefault(u,h){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(u,{...this.opts,...h}).format()}formatDateTime(u,h={}){return this.loc.dtFormatter(u,{...this.opts,...h}).format()}formatDateTimeParts(u,h={}){return this.loc.dtFormatter(u,{...this.opts,...h}).formatToParts()}resolvedOptions(u,h={}){return this.loc.dtFormatter(u,{...this.opts,...h}).resolvedOptions()}num(u,h=0){if(this.opts.forceSimple)return Le(u,h);const s={...this.opts};return h>0&&(s.padTo=h),this.loc.numberFormatter(s).format(u)}formatDateTimeFromString(u,h){const s="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,a=(ye,xe)=>this.loc.extract(u,ye,xe),o=ye=>u.isOffsetFixed&&0===u.offset&&ye.allowZ?"Z":u.isValid?u.zone.formatOffset(u.ts,ye.format):"",D=(ye,xe)=>s?function N(m,u){return xt(u)[m.month-1]}(u,ye):a(xe?{month:ye}:{month:ye,day:"numeric"},"month"),P=(ye,xe)=>s?function I(m,u){return gt(u)[m.weekday-1]}(u,ye):a(xe?{weekday:ye}:{weekday:ye,month:"long",day:"numeric"},"weekday"),q=ye=>{const xe=he.macroTokenToFormatOpts(ye);return xe?this.formatWithSystemDefault(u,xe):ye},ue=ye=>s?function ne(m,u){return _(u)[m.year<0?0:1]}(u,ye):a({era:ye},"era");return ee(he.parseFormat(h),ye=>{switch(ye){case"S":return this.num(u.millisecond);case"u":case"SSS":return this.num(u.millisecond,3);case"s":return this.num(u.second);case"ss":return this.num(u.second,2);case"uu":return this.num(Math.floor(u.millisecond/10),2);case"uuu":return this.num(Math.floor(u.millisecond/100));case"m":return this.num(u.minute);case"mm":return this.num(u.minute,2);case"h":return this.num(u.hour%12==0?12:u.hour%12);case"hh":return this.num(u.hour%12==0?12:u.hour%12,2);case"H":return this.num(u.hour);case"HH":return this.num(u.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return u.zone.offsetName(u.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return u.zone.offsetName(u.ts,{format:"long",locale:this.loc.locale});case"z":return u.zoneName;case"a":return s?function v(m){return Nt[m.hour<12?0:1]}(u):a({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return i?a({day:"numeric"},"day"):this.num(u.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(u.day,2);case"c":case"E":return this.num(u.weekday);case"ccc":return P("short",!0);case"cccc":return P("long",!0);case"ccccc":return P("narrow",!0);case"EEE":return P("short",!1);case"EEEE":return P("long",!1);case"EEEEE":return P("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(u.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(u.month,2);case"LLL":return D("short",!0);case"LLLL":return D("long",!0);case"LLLLL":return D("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(u.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(u.month,2);case"MMM":return D("short",!1);case"MMMM":return D("long",!1);case"MMMMM":return D("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(u.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(u.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(u.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(u.year,6);case"G":return ue("short");case"GG":return ue("long");case"GGGGG":return ue("narrow");case"kk":return this.num(u.weekYear.toString().slice(-2),2);case"kkkk":return this.num(u.weekYear,4);case"W":return this.num(u.weekNumber);case"WW":return this.num(u.weekNumber,2);case"o":return this.num(u.ordinal);case"ooo":return this.num(u.ordinal,3);case"q":return this.num(u.quarter);case"qq":return this.num(u.quarter,2);case"X":return this.num(Math.floor(u.ts/1e3));case"x":return this.num(u.ts);default:return q(ye)}})}formatDurationFromString(u,h){const s=D=>{switch(D[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=he.parseFormat(h),o=a.reduce((D,{literal:P,val:q})=>P?D:D.concat(q),[]);return ee(a,(D=>P=>{const q=s(P);return q?this.num(D.get(q),P.length):P})(u.shiftTo(...o.map(s).filter(D=>D))))}}class _e{constructor(u,h){this.reason=u,this.explanation=h}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class p{get type(){throw new b}get name(){throw new b}get ianaName(){return this.name}get isUniversal(){throw new b}offsetName(u,h){throw new b}formatOffset(u,h){throw new b}offset(u){throw new b}equals(u){throw new b}get isValid(){throw new b}}let T=null;class J extends p{static get instance(){return null===T&&(T=new J),T}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(u,{format:h,locale:s}){return it(u,h,s)}formatOffset(u,h){return yt(this.offset(u),h)}offset(u){return-new Date(u).getTimezoneOffset()}equals(u){return"system"===u.type}get isValid(){return!0}}let ae={};const be={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let ze={};class Ge extends p{static create(u){return ze[u]||(ze[u]=new Ge(u)),ze[u]}static resetCache(){ze={},ae={}}static isValidSpecifier(u){return this.isValidZone(u)}static isValidZone(u){if(!u)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:u}).format(),!0}catch{return!1}}constructor(u){super(),this.zoneName=u,this.valid=Ge.isValidZone(u)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(u,{format:h,locale:s}){return it(u,h,s,this.name)}formatOffset(u,h){return yt(this.offset(u),h)}offset(u){const h=new Date(u);if(isNaN(h))return NaN;const s=function ce(m){return ae[m]||(ae[m]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ae[m]}(this.name);let[i,a,o,d,D,P,q]=s.formatToParts?function Te(m,u){const h=m.formatToParts(u),s=[];for(let i=0;i=0?xe:1e3+xe,(ke({year:i,month:a,day:o,hour:24===D?0:D,minute:P,second:q,millisecond:0})-ye)/6e4}equals(u){return"iana"===u.type&&u.name===this.name}get isValid(){return this.valid}}let Ht=null;class Je extends p{static get utcInstance(){return null===Ht&&(Ht=new Je(0)),Ht}static instance(u){return 0===u?Je.utcInstance:new Je(u)}static parseSpecifier(u){if(u){const h=u.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(h)return new Je(pt(h[1],h[2]))}return null}constructor(u){super(),this.fixed=u}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${yt(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${yt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(u,h){return yt(this.fixed,h)}get isUniversal(){return!0}offset(){return this.fixed}equals(u){return"fixed"===u.type&&u.fixed===this.fixed}get isValid(){return!0}}class mn extends p{constructor(u){super(),this.zoneName=u}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Et(m,u){if(se(m)||null===m)return u;if(m instanceof p)return m;if(function ge(m){return"string"==typeof m}(m)){const s=m.toLowerCase();return"default"===s?u:"local"===s||"system"===s?J.instance:"utc"===s||"gmt"===s?Je.utcInstance:Je.parseSpecifier(s)||Ge.create(m)}return de(m)?Je.instance(m):"object"==typeof m&&m.offset&&"number"==typeof m.offset?m:new mn(m)}let Lr,Mr=()=>Date.now(),Or="system",kr=null,Br=null,Nr=null;class Ke{static get now(){return Mr}static set now(u){Mr=u}static set defaultZone(u){Or=u}static get defaultZone(){return Et(Or,J.instance)}static get defaultLocale(){return kr}static set defaultLocale(u){kr=u}static get defaultNumberingSystem(){return Br}static set defaultNumberingSystem(u){Br=u}static get defaultOutputCalendar(){return Nr}static set defaultOutputCalendar(u){Nr=u}static get throwOnInvalid(){return Lr}static set throwOnInvalid(u){Lr=u}static resetCaches(){Oe.resetCache(),Ge.resetCache()}}let Pr={},jn={};function zn(m,u={}){const h=JSON.stringify([m,u]);let s=jn[h];return s||(s=new Intl.DateTimeFormat(m,u),jn[h]=s),s}let Wn={},pn={},Xt=null;function Wt(m,u,h,s,i){const a=m.listingMode(h);return"error"===a?null:"en"===a?s(u):i(u)}class ve{constructor(u,h,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:i,floor:a,...o}=s;if(!h||Object.keys(o).length>0){const d={useGrouping:!1,...s};s.padTo>0&&(d.minimumIntegerDigits=s.padTo),this.inf=function vi(m,u={}){const h=JSON.stringify([m,u]);let s=Wn[h];return s||(s=new Intl.NumberFormat(m,u),Wn[h]=s),s}(u,d)}}format(u){if(this.inf){const h=this.floor?Math.floor(u):u;return this.inf.format(h)}return Le(this.floor?Math.floor(u):ft(u,3),this.padTo)}}class Jn{constructor(u,h,s){let i;if(this.opts=s,u.zone.isUniversal){const o=u.offset/60*-1,d=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;0!==u.offset&&Ge.create(d).valid?(i=d,this.dt=u):(i="UTC",this.dt=s.timeZoneName||0===u.offset?u:Se.fromMillis(u.ts+60*u.offset*1e3))}else"system"===u.zone.type?this.dt=u:(this.dt=u,i=u.zone.name);const a={...this.opts};i&&(a.timeZone=i),this.dtf=zn(h,a)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Dn{constructor(u,h,s){this.opts={style:"long",...s},!h&&Be()&&(this.rtf=function Si(m,u={}){const{base:h,...s}=u,i=JSON.stringify([m,s]);let a=pn[i];return a||(a=new Intl.RelativeTimeFormat(m,u),pn[i]=a),a}(u,s))}format(u,h){return this.rtf?this.rtf.format(u,h):function re(m,u,h="always",s=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(m);if("auto"===h&&a){const ue="days"===m;switch(u){case 1:return ue?"tomorrow":`next ${i[m][0]}`;case-1:return ue?"yesterday":`last ${i[m][0]}`;case 0:return ue?"today":`this ${i[m][0]}`}}const o=Object.is(u,-0)||u<0,d=Math.abs(u),D=1===d,P=i[m],q=s?D?P[1]:P[2]||P[1]:D?i[m][0]:m;return o?`${d} ${q} ago`:`in ${d} ${q}`}(h,u,this.opts.numeric,"long"!==this.opts.style)}formatToParts(u,h){return this.rtf?this.rtf.formatToParts(u,h):[]}}class Oe{static fromOpts(u){return Oe.create(u.locale,u.numberingSystem,u.outputCalendar,u.defaultToEN)}static create(u,h,s,i=!1){const a=u||Ke.defaultLocale,o=a||(i?"en-US":function yn(){return Xt||(Xt=(new Intl.DateTimeFormat).resolvedOptions().locale,Xt)}());return new Oe(o,h||Ke.defaultNumberingSystem,s||Ke.defaultOutputCalendar,a)}static resetCache(){Xt=null,jn={},Wn={},pn={}}static fromObject({locale:u,numberingSystem:h,outputCalendar:s}={}){return Oe.create(u,h,s)}constructor(u,h,s,i){const[a,o,d]=function Kn(m){const u=m.indexOf("-u-");if(-1===u)return[m];{let h;const s=m.substring(0,u);try{h=zn(m).resolvedOptions()}catch{h=zn(s).resolvedOptions()}const{numberingSystem:i,calendar:a}=h;return[s,i,a]}}(u);this.locale=a,this.numberingSystem=h||o||null,this.outputCalendar=s||d||null,this.intl=function Rr(m,u,h){return(h||u)&&(m+="-u",h&&(m+=`-ca-${h}`),u&&(m+=`-nu-${u}`)),m}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function $n(m){return(!m.numberingSystem||"latn"===m.numberingSystem)&&("latn"===m.numberingSystem||!m.locale||m.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(m.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(u){return u&&0!==Object.getOwnPropertyNames(u).length?Oe.create(u.locale||this.specifiedLocale,u.numberingSystem||this.numberingSystem,u.outputCalendar||this.outputCalendar,u.defaultToEN||!1):this}redefaultToEN(u={}){return this.clone({...u,defaultToEN:!0})}redefaultToSystem(u={}){return this.clone({...u,defaultToEN:!1})}months(u,h=!1,s=!0){return Wt(this,u,s,xt,()=>{const i=h?{month:u,day:"numeric"}:{month:u},a=h?"format":"standalone";return this.monthsCache[a][u]||(this.monthsCache[a][u]=function gn(m){const u=[];for(let h=1;h<=12;h++){const s=Se.utc(2016,h,1);u.push(m(s))}return u}(o=>this.extract(o,i,"month"))),this.monthsCache[a][u]})}weekdays(u,h=!1,s=!0){return Wt(this,u,s,gt,()=>{const i=h?{weekday:u,year:"numeric",month:"long",day:"numeric"}:{weekday:u},a=h?"format":"standalone";return this.weekdaysCache[a][u]||(this.weekdaysCache[a][u]=function Vr(m){const u=[];for(let h=1;h<=7;h++){const s=Se.utc(2016,11,13+h);u.push(m(s))}return u}(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[a][u]})}meridiems(u=!0){return Wt(this,void 0,u,()=>Nt,()=>{if(!this.meridiemCache){const h={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Se.utc(2016,11,13,9),Se.utc(2016,11,13,19)].map(s=>this.extract(s,h,"dayperiod"))}return this.meridiemCache})}eras(u,h=!0){return Wt(this,u,h,_,()=>{const s={era:u};return this.eraCache[u]||(this.eraCache[u]=[Se.utc(-40,1,1),Se.utc(2017,1,1)].map(i=>this.extract(i,s,"era"))),this.eraCache[u]})}extract(u,h,s){const o=this.dtFormatter(u,h).formatToParts().find(d=>d.type.toLowerCase()===s);return o?o.value:null}numberFormatter(u={}){return new ve(this.intl,u.forceSimple||this.fastNumbers,u)}dtFormatter(u,h={}){return new Jn(u,this.intl,h)}relFormatter(u={}){return new Dn(this.intl,this.isEnglish(),u)}listFormatter(u={}){return function Ai(m,u={}){const h=JSON.stringify([m,u]);let s=Pr[h];return s||(s=new Intl.ListFormat(m,u),Pr[h]=s),s}(this.intl,u)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(u){return this.locale===u.locale&&this.numberingSystem===u.numberingSystem&&this.outputCalendar===u.outputCalendar}}function Ut(...m){const u=m.reduce((h,s)=>h+s.source,"");return RegExp(`^${u}$`)}function je(...m){return u=>m.reduce(([h,s,i],a)=>{const[o,d,D]=a(u,i);return[{...h,...o},d||s,D]},[{},null,1]).slice(0,2)}function wt(m,...u){if(null==m)return[null,null];for(const[h,s]of u){const i=h.exec(m);if(i)return s(i)}return[null,null]}function xn(...m){return(u,h)=>{const s={};let i;for(i=0;ivoid 0!==ye&&(xe||ye&&q)?-ye:ye;return[{years:le(rt(h)),months:le(rt(s)),weeks:le(rt(i)),days:le(rt(a)),hours:le(rt(o)),minutes:le(rt(d)),seconds:le(rt(D),"-0"===D),milliseconds:le(we(P),ue)}]}const zr={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Cn(m,u,h,s,i,a,o){const d={year:2===u.length?Ce(Me(u)):Me(u),month:St.indexOf(h)+1,day:Me(s),hour:Me(i),minute:Me(a)};return o&&(d.second=Me(o)),m&&(d.weekday=m.length>3?mt.indexOf(m)+1:Bt.indexOf(m)+1),d}const bt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Wr(m){const[,u,h,s,i,a,o,d,D,P,q,ue]=m,le=Cn(u,i,s,h,a,o,d);let ye;return ye=D?zr[D]:P?0:pt(q,ue),[le,new Je(ye)]}const $r=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Jr=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Yr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Xn(m){const[,u,h,s,i,a,o,d]=m;return[Cn(u,i,s,h,a,o,d),Je.utcInstance]}function qr(m){const[,u,h,s,i,a,o,d]=m;return[Cn(u,d,h,s,i,a,o),Je.utcInstance]}const Qr=Ut(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Fn),Xr=Ut(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Fn),ei=Ut(/(\d{4})-?(\d{3})/,Fn),ti=Ut(Hr),er=je(function Ft(m,u){return[{year:Lt(m,u),month:Lt(m,u+1,1),day:Lt(m,u+2,1)},null,u+3]},pe,Kt,$t),ni=je(qn,pe,Kt,$t),ri=je(Ur,pe,Kt,$t),ii=je(pe,Kt,$t),ui=je(pe),nr=Ut(/(\d{4})-(\d\d)-(\d\d)/,Zt),rr=Ut(Qn),An=je(pe,Kt,$t),li={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},sr={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...li},ot=365.2425,Ot=30.436875,ar={years:{quarters:4,months:12,weeks:ot/7,days:ot,hours:24*ot,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:ot/28,days:ot/4,hours:24*ot/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Ot/7,days:Ot,hours:24*Ot,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...li},Pt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ci=Pt.slice(0).reverse();function Rt(m,u,h=!1){const s={values:h?u.values:{...m.values,...u.values||{}},loc:m.loc.clone(u.loc),conversionAccuracy:u.conversionAccuracy||m.conversionAccuracy,matrix:u.matrix||m.matrix};return new Ae(s)}function vn(m,u,h,s,i){const a=m[i][h],o=u[h]/a,D=Math.sign(o)!==Math.sign(s[i])&&0!==s[i]&&Math.abs(o)<=1?function di(m){return m<0?Math.floor(m):Math.ceil(m)}(o):Math.trunc(o);s[i]+=D,u[h]-=D*a}class Ae{constructor(u){const h="longterm"===u.conversionAccuracy||!1;let s=h?ar:sr;u.matrix&&(s=u.matrix),this.values=u.values,this.loc=u.loc||Oe.create(),this.conversionAccuracy=h?"longterm":"casual",this.invalid=u.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(u,h){return Ae.fromObject({milliseconds:u},h)}static fromObject(u,h={}){if(null==u||"object"!=typeof u)throw new Q("Duration.fromObject: argument expected to be an object, got "+(null===u?"null":typeof u));return new Ae({values:Dt(u,Ae.normalizeUnit),loc:Oe.fromObject(h),conversionAccuracy:h.conversionAccuracy,matrix:h.matrix})}static fromDurationLike(u){if(de(u))return Ae.fromMillis(u);if(Ae.isDuration(u))return u;if("object"==typeof u)return Ae.fromObject(u);throw new Q(`Unknown duration argument ${u} of type ${typeof u}`)}static fromISO(u,h){const[s]=function tr(m){return wt(m,[Gr,jr])}(u);return s?Ae.fromObject(s,h):Ae.invalid("unparsable",`the input "${u}" can't be parsed as ISO 8601`)}static fromISOTime(u,h){const[s]=function tt(m){return wt(m,[Zr,ui])}(u);return s?Ae.fromObject(s,h):Ae.invalid("unparsable",`the input "${u}" can't be parsed as ISO 8601`)}static invalid(u,h=null){if(!u)throw new Q("need to specify a reason the Duration is invalid");const s=u instanceof _e?u:new _e(u,h);if(Ke.throwOnInvalid)throw new E(s);return new Ae({invalid:s})}static normalizeUnit(u){const h={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[u&&u.toLowerCase()];if(!h)throw new K(u);return h}static isDuration(u){return u&&u.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(u,h={}){const s={...h,floor:!1!==h.round&&!1!==h.floor};return this.isValid?he.create(this.loc,s).formatDurationFromString(this,u):"Invalid Duration"}toHuman(u={}){const h=Pt.map(s=>{const i=this.values[s];return se(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...u,unit:s.slice(0,-1)}).format(i)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:u.listStyle||"narrow",...u}).format(h)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let u="P";return 0!==this.years&&(u+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(u+=this.months+3*this.quarters+"M"),0!==this.weeks&&(u+=this.weeks+"W"),0!==this.days&&(u+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(u+="T"),0!==this.hours&&(u+=this.hours+"H"),0!==this.minutes&&(u+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(u+=ft(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===u&&(u+="T0S"),u}toISOTime(u={}){if(!this.isValid)return null;const h=this.toMillis();if(h<0||h>=864e5)return null;u={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...u};const s=this.shiftTo("hours","minutes","seconds","milliseconds");let i="basic"===u.format?"hhmm":"hh:mm";(!u.suppressSeconds||0!==s.seconds||0!==s.milliseconds)&&(i+="basic"===u.format?"ss":":ss",(!u.suppressMilliseconds||0!==s.milliseconds)&&(i+=".SSS"));let a=s.toFormat(i);return u.includePrefix&&(a="T"+a),a}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(u){if(!this.isValid)return this;const h=Ae.fromDurationLike(u),s={};for(const i of Pt)(ht(h.values,i)||ht(this.values,i))&&(s[i]=h.get(i)+this.get(i));return Rt(this,{values:s},!0)}minus(u){if(!this.isValid)return this;const h=Ae.fromDurationLike(u);return this.plus(h.negate())}mapUnits(u){if(!this.isValid)return this;const h={};for(const s of Object.keys(this.values))h[s]=At(u(this.values[s],s));return Rt(this,{values:h},!0)}get(u){return this[Ae.normalizeUnit(u)]}set(u){return this.isValid?Rt(this,{values:{...this.values,...Dt(u,Ae.normalizeUnit)}}):this}reconfigure({locale:u,numberingSystem:h,conversionAccuracy:s,matrix:i}={}){return Rt(this,{loc:this.loc.clone({locale:u,numberingSystem:h}),matrix:i,conversionAccuracy:s})}as(u){return this.isValid?this.shiftTo(u).get(u):NaN}normalize(){if(!this.isValid)return this;const u=this.toObject();return function or(m,u){ci.reduce((h,s)=>se(u[s])?h:(h&&vn(m,u,h,u,s),s),null)}(this.matrix,u),Rt(this,{values:u},!0)}shiftTo(...u){if(!this.isValid)return this;if(0===u.length)return this;u=u.map(o=>Ae.normalizeUnit(o));const h={},s={},i=this.toObject();let a;for(const o of Pt)if(u.indexOf(o)>=0){a=o;let d=0;for(const P in s)d+=this.matrix[P][o]*s[P],s[P]=0;de(i[o])&&(d+=i[o]);const D=Math.trunc(d);h[o]=D,s[o]=(1e3*d-1e3*D)/1e3;for(const P in i)Pt.indexOf(P)>Pt.indexOf(o)&&vn(this.matrix,i,P,h,o)}else de(i[o])&&(s[o]=i[o]);for(const o in s)0!==s[o]&&(h[a]+=o===a?s[o]:s[o]/this.matrix[a][o]);return Rt(this,{values:h},!0).normalize()}negate(){if(!this.isValid)return this;const u={};for(const h of Object.keys(this.values))u[h]=0===this.values[h]?0:-this.values[h];return Rt(this,{values:u},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(u){if(!this.isValid||!u.isValid||!this.loc.equals(u.loc))return!1;function h(s,i){return void 0===s||0===s?void 0===i||0===i:s===i}for(const s of Pt)if(!h(this.values[s],u.values[s]))return!1;return!0}}const Vt="Invalid Interval";class Ze{constructor(u){this.s=u.start,this.e=u.end,this.invalid=u.invalid||null,this.isLuxonInterval=!0}static invalid(u,h=null){if(!u)throw new Q("need to specify a reason the Interval is invalid");const s=u instanceof _e?u:new _e(u,h);if(Ke.throwOnInvalid)throw new R(s);return new Ze({invalid:s})}static fromDateTimes(u,h){const s=jt(u),i=jt(h),a=function ur(m,u){return m&&m.isValid?u&&u.isValid?uu}isBefore(u){return!!this.isValid&&this.e<=u}contains(u){return!!this.isValid&&this.s<=u&&this.e>u}set({start:u,end:h}={}){return this.isValid?Ze.fromDateTimes(u||this.s,h||this.e):this}splitAt(...u){if(!this.isValid)return[];const h=u.map(jt).filter(o=>this.contains(o)).sort(),s=[];let{s:i}=this,a=0;for(;i+this.e?this.e:o;s.push(Ze.fromDateTimes(i,d)),i=d,a+=1}return s}splitBy(u){const h=Ae.fromDurationLike(u);if(!this.isValid||!h.isValid||0===h.as("milliseconds"))return[];let a,{s}=this,i=1;const o=[];for(;sD*i));a=+d>+this.e?this.e:d,o.push(Ze.fromDateTimes(s,a)),s=a,i+=1}return o}divideEqually(u){return this.isValid?this.splitBy(this.length()/u).slice(0,u):[]}overlaps(u){return this.e>u.s&&this.s=u.e}equals(u){return!(!this.isValid||!u.isValid)&&this.s.equals(u.s)&&this.e.equals(u.e)}intersection(u){if(!this.isValid)return this;const h=this.s>u.s?this.s:u.s,s=this.e=s?null:Ze.fromDateTimes(h,s)}union(u){return this.isValid?Ze.fromDateTimes(this.su.e?this.e:u.e):this}static merge(u){const[h,s]=u.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return s&&h.push(s),h}static xor(u){let h=null,s=0;const i=[],a=u.map(D=>[{time:D.s,type:"s"},{time:D.e,type:"e"}]),d=Array.prototype.concat(...a).sort((D,P)=>D.time-P.time);for(const D of d)s+="s"===D.type?1:-1,1===s?h=D.time:(h&&+h!=+D.time&&i.push(Ze.fromDateTimes(h,D.time)),h=null);return Ze.merge(i)}difference(...u){return Ze.xor([this].concat(u)).map(h=>this.intersection(h)).filter(h=>h&&!h.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Vt}toISO(u){return this.isValid?`${this.s.toISO(u)}/${this.e.toISO(u)}`:Vt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Vt}toISOTime(u){return this.isValid?`${this.s.toISOTime(u)}/${this.e.toISOTime(u)}`:Vt}toFormat(u,{separator:h=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(u)}${h}${this.e.toFormat(u)}`:Vt}toDuration(u,h){return this.isValid?this.e.diff(this.s,u,h):Ae.invalid(this.invalidReason)}mapEndpoints(u){return Ze.fromDateTimes(u(this.s),u(this.e))}}class nn{static hasDST(u=Ke.defaultZone){const h=Se.now().setZone(u).set({month:12});return!u.isUniversal&&h.offset!==h.set({month:6}).offset}static isValidIANAZone(u){return Ge.isValidZone(u)}static normalizeZone(u){return Et(u,Ke.defaultZone)}static months(u="long",{locale:h=null,numberingSystem:s=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||Oe.create(h,s,a)).months(u)}static monthsFormat(u="long",{locale:h=null,numberingSystem:s=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||Oe.create(h,s,a)).months(u,!0)}static weekdays(u="long",{locale:h=null,numberingSystem:s=null,locObj:i=null}={}){return(i||Oe.create(h,s,null)).weekdays(u)}static weekdaysFormat(u="long",{locale:h=null,numberingSystem:s=null,locObj:i=null}={}){return(i||Oe.create(h,s,null)).weekdays(u,!0)}static meridiems({locale:u=null}={}){return Oe.create(u).meridiems()}static eras(u="short",{locale:h=null}={}){return Oe.create(h,null,"gregory").eras(u)}static features(){return{relative:Be()}}}function rn(m,u){const h=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=h(u)-h(m);return Math.floor(Ae.fromMillis(s).as("days"))}const Gt={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},lr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fi=Gt.hanidec.replace(/[\[|\]]/g,"").split("");function st({numberingSystem:m},u=""){return new RegExp(`${Gt[m||"latn"]}${u}`)}function Ie(m,u=(h=>h)){return{regex:m,deser:([h])=>u(function cr(m){let u=parseInt(m,10);if(isNaN(u)){u="";for(let h=0;h=a&&s<=o&&(u+=s-a)}}return parseInt(u,10)}return u}(h))}}const sn=`[ ${String.fromCharCode(160)}]`,an=new RegExp(sn,"g");function In(m){return m.replace(/\./g,"\\.?").replace(an,sn)}function _n(m){return m.replace(/\./g,"").replace(an," ").toLowerCase()}function ut(m,u){return null===m?null:{regex:RegExp(m.map(In).join("|")),deser:([h])=>m.findIndex(s=>_n(h)===_n(s))+u}}function Tn(m,u){return{regex:m,deser:([,h,s])=>pt(h,s),groups:u}}function on(m){return{regex:m,deser:([u])=>u}}function dr(m){return m.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const On={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Bn=null;function un(m,u){return Array.prototype.concat(...m.map(h=>function Nn(m,u){if(m.literal)return m;const s=Ln(he.macroTokenToFormatOpts(m.val),u);return null==s||s.includes(void 0)?m:s}(h,u)))}function ln(m,u,h){const s=un(he.parseFormat(h),m),i=s.map(o=>function Mn(m,u){const h=st(u),s=st(u,"{2}"),i=st(u,"{3}"),a=st(u,"{4}"),o=st(u,"{6}"),d=st(u,"{1,2}"),D=st(u,"{1,3}"),P=st(u,"{1,6}"),q=st(u,"{1,9}"),ue=st(u,"{2,4}"),le=st(u,"{4,6}"),ye=Re=>({regex:RegExp(dr(Re.val)),deser:([nt])=>nt,literal:!0}),Ee=(Re=>{if(m.literal)return ye(Re);switch(Re.val){case"G":return ut(u.eras("short",!1),0);case"GG":return ut(u.eras("long",!1),0);case"y":return Ie(P);case"yy":case"kk":return Ie(ue,Ce);case"yyyy":case"kkkk":return Ie(a);case"yyyyy":return Ie(le);case"yyyyyy":return Ie(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Ie(d);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Ie(s);case"MMM":return ut(u.months("short",!0,!1),1);case"MMMM":return ut(u.months("long",!0,!1),1);case"LLL":return ut(u.months("short",!1,!1),1);case"LLLL":return ut(u.months("long",!1,!1),1);case"o":case"S":return Ie(D);case"ooo":case"SSS":return Ie(i);case"u":return on(q);case"uu":return on(d);case"uuu":case"E":case"c":return Ie(h);case"a":return ut(u.meridiems(),0);case"EEE":return ut(u.weekdays("short",!1,!1),1);case"EEEE":return ut(u.weekdays("long",!1,!1),1);case"ccc":return ut(u.weekdays("short",!0,!1),1);case"cccc":return ut(u.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Tn(new RegExp(`([+-]${d.source})(?::(${s.source}))?`),2);case"ZZZ":return Tn(new RegExp(`([+-]${d.source})(${s.source})?`),2);case"z":return on(/[a-z_+-/]{1,256}?/i);default:return ye(Re)}})(m)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return Ee.token=m,Ee}(o,m)),a=i.find(o=>o.invalidReason);if(a)return{input:u,tokens:s,invalidReason:a.invalidReason};{const[o,d]=function kn(m){return[`^${m.map(h=>h.regex).reduce((h,s)=>`${h}(${s.source})`,"")}$`,m]}(i),D=RegExp(o,"i"),[P,q]=function fr(m,u,h){const s=m.match(u);if(s){const i={};let a=1;for(const o in h)if(ht(h,o)){const d=h[o],D=d.groups?d.groups+1:1;!d.literal&&d.token&&(i[d.token.val[0]]=d.deser(s.slice(a,a+D))),a+=D}return[s,i]}return[s,{}]}(u,D,d),[ue,le,ye]=q?function pi(m){let s,h=null;return se(m.z)||(h=Ge.create(m.z)),se(m.Z)||(h||(h=new Je(m.Z)),s=m.Z),se(m.q)||(m.M=3*(m.q-1)+1),se(m.h)||(m.h<12&&1===m.a?m.h+=12:12===m.h&&0===m.a&&(m.h=0)),0===m.G&&m.y&&(m.y=-m.y),se(m.u)||(m.S=we(m.u)),[Object.keys(m).reduce((a,o)=>{const d=(a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(o);return d&&(a[d]=m[o]),a},{}),h,s]}(q):[null,null,void 0];if(ht(q,"a")&&ht(q,"H"))throw new f("Can't include meridiem when specifying 24-hour format");return{input:u,tokens:s,regex:D,rawMatches:P,matches:q,result:ue,zone:le,specificOffset:ye}}}function Ln(m,u){return m?he.create(u,m).formatDateTimeParts(function mr(){return Bn||(Bn=Se.fromMillis(1555555555555)),Bn}()).map(i=>function hr(m,u,h){const{type:s,value:i}=m;if("literal"===s)return{literal:!0,val:i};let o=On[s];return"object"==typeof o&&(o=o[h[s]]),o?{literal:!1,val:o}:void 0}(i,0,m)):null}const cn=[0,31,59,90,120,151,181,212,243,273,304,334],Pn=[0,31,60,91,121,152,182,213,244,274,305,335];function lt(m,u){return new _e("unit out of range",`you specified ${u} (of type ${typeof u}) as a ${m}, which is invalid`)}function Yt(m,u,h){const s=new Date(Date.UTC(m,u-1,h));m<100&&m>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const i=s.getUTCDay();return 0===i?7:i}function pr(m,u,h){return h+(at(m)?Pn:cn)[u-1]}function yr(m,u){const h=at(m)?Pn:cn,s=h.findIndex(a=>aUe(u)?(d=u+1,o=1):d=u,{weekYear:d,weekNumber:o,weekday:a,...It(m)}}function gr(m){const{weekYear:u,weekNumber:h,weekday:s}=m,i=Yt(u,1,4),a=$e(u);let d,o=7*h+s-i-3;o<1?(d=u-1,o+=$e(d)):o>a?(d=u+1,o-=$e(u)):d=u;const{month:D,day:P}=yr(d,o);return{year:d,month:D,day:P,...It(m)}}function Rn(m){const{year:u,month:h,day:s}=m;return{year:u,ordinal:pr(u,h,s),...It(m)}}function Dr(m){const{year:u,ordinal:h}=m,{month:s,day:i}=yr(u,h);return{year:u,month:s,day:i,...It(m)}}function Vn(m){const u=ie(m.year),h=Qe(m.month,1,12),s=Qe(m.day,1,Ct(m.year,m.month));return u?h?!s&<("day",m.day):lt("month",m.month):lt("year",m.year)}function xr(m){const{hour:u,minute:h,second:s,millisecond:i}=m,a=Qe(u,0,23)||24===u&&0===h&&0===s&&0===i,o=Qe(h,0,59),d=Qe(s,0,59),D=Qe(i,0,999);return a?o?d?!D&<("millisecond",i):lt("second",s):lt("minute",h):lt("hour",u)}const Hn="Invalid DateTime",Er=864e13;function kt(m){return new _e("unsupported zone",`the zone "${m.name}" is not supported`)}function Un(m){return null===m.weekData&&(m.weekData=dn(m.c)),m.weekData}function qt(m,u){const h={ts:m.ts,zone:m.zone,c:m.c,o:m.o,loc:m.loc,invalid:m.invalid};return new Se({...h,...u,old:h})}function wr(m,u,h){let s=m-60*u*1e3;const i=h.offset(s);if(u===i)return[s,u];s-=60*(i-u)*1e3;const a=h.offset(s);return i===a?[s,i]:[m-60*Math.min(i,a)*1e3,Math.max(i,a)]}function Fr(m,u){const h=new Date(m+=60*u*1e3);return{year:h.getUTCFullYear(),month:h.getUTCMonth()+1,day:h.getUTCDate(),hour:h.getUTCHours(),minute:h.getUTCMinutes(),second:h.getUTCSeconds(),millisecond:h.getUTCMilliseconds()}}function hn(m,u,h){return wr(ke(m),u,h)}function Cr(m,u){const h=m.o,s=m.c.year+Math.trunc(u.years),i=m.c.month+Math.trunc(u.months)+3*Math.trunc(u.quarters),a={...m.c,year:s,month:i,day:Math.min(m.c.day,Ct(s,i))+Math.trunc(u.days)+7*Math.trunc(u.weeks)},o=Ae.fromObject({years:u.years-Math.trunc(u.years),quarters:u.quarters-Math.trunc(u.quarters),months:u.months-Math.trunc(u.months),weeks:u.weeks-Math.trunc(u.weeks),days:u.days-Math.trunc(u.days),hours:u.hours,minutes:u.minutes,seconds:u.seconds,milliseconds:u.milliseconds}).as("milliseconds"),d=ke(a);let[D,P]=wr(d,h,m.zone);return 0!==o&&(D+=o,P=m.zone.offset(D)),{ts:D,o:P}}function Qt(m,u,h,s,i,a){const{setZone:o,zone:d}=h;if(m&&0!==Object.keys(m).length){const D=u||d,P=Se.fromObject(m,{...h,zone:D,specificOffset:a});return o?P:P.setZone(d)}return Se.invalid(new _e("unparsable",`the input "${i}" can't be parsed as ${s}`))}function fn(m,u,h=!0){return m.isValid?he.create(Oe.create("en-US"),{allowZ:h,forceSimple:!0}).formatDateTimeFromString(m,u):null}function Zn(m,u){const h=m.c.year>9999||m.c.year<0;let s="";return h&&m.c.year>=0&&(s+="+"),s+=Le(m.c.year,h?6:4),u?(s+="-",s+=Le(m.c.month),s+="-",s+=Le(m.c.day)):(s+=Le(m.c.month),s+=Le(m.c.day)),s}function Ar(m,u,h,s,i,a){let o=Le(m.c.hour);return u?(o+=":",o+=Le(m.c.minute),(0!==m.c.second||!h)&&(o+=":")):o+=Le(m.c.minute),(0!==m.c.second||!h)&&(o+=Le(m.c.second),(0!==m.c.millisecond||!s)&&(o+=".",o+=Le(m.c.millisecond,3))),i&&(m.isOffsetFixed&&0===m.offset&&!a?o+="Z":m.o<0?(o+="-",o+=Le(Math.trunc(-m.o/60)),o+=":",o+=Le(Math.trunc(-m.o%60))):(o+="+",o+=Le(Math.trunc(m.o/60)),o+=":",o+=Le(Math.trunc(m.o%60)))),a&&(o+="["+m.zone.ianaName+"]"),o}const vr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xi={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ei={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Sr=["year","month","day","hour","minute","second","millisecond"],wi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Fi=["year","ordinal","hour","minute","second","millisecond"];function br(m){const u={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[m.toLowerCase()];if(!u)throw new K(m);return u}function Ir(m,u){const h=Et(u.zone,Ke.defaultZone),s=Oe.fromObject(u),i=Ke.now();let a,o;if(se(m.year))a=i;else{for(const P of Sr)se(m[P])&&(m[P]=vr[P]);const d=Vn(m)||xr(m);if(d)return Se.invalid(d);const D=h.offset(i);[a,o]=hn(m,D,h)}return new Se({ts:a,zone:h,loc:s,o})}function _r(m,u,h){const s=!!se(h.round)||h.round,i=(o,d)=>(o=ft(o,s||h.calendary?0:2,!0),u.loc.clone(h).relFormatter(h).format(o,d)),a=o=>h.calendary?u.hasSame(m,o)?0:u.startOf(o).diff(m.startOf(o),o).get(o):u.diff(m,o).get(o);if(h.unit)return i(a(h.unit),h.unit);for(const o of h.units){const d=a(o);if(Math.abs(d)>=1)return i(d,o)}return i(m>u?-0:0,h.units[h.units.length-1])}function Tr(m){let h,u={};return m.length>0&&"object"==typeof m[m.length-1]?(u=m[m.length-1],h=Array.from(m).slice(0,m.length-1)):h=Array.from(m),[u,h]}class Se{constructor(u){const h=u.zone||Ke.defaultZone;let s=u.invalid||(Number.isNaN(u.ts)?new _e("invalid input"):null)||(h.isValid?null:kt(h));this.ts=se(u.ts)?Ke.now():u.ts;let i=null,a=null;if(!s)if(u.old&&u.old.ts===this.ts&&u.old.zone.equals(h))[i,a]=[u.old.c,u.old.o];else{const d=h.offset(this.ts);i=Fr(this.ts,d),s=Number.isNaN(i.year)?new _e("invalid input"):null,i=s?null:i,a=s?null:d}this._zone=h,this.loc=u.loc||Oe.create(),this.invalid=s,this.weekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new Se({})}static local(){const[u,h]=Tr(arguments),[s,i,a,o,d,D,P]=h;return Ir({year:s,month:i,day:a,hour:o,minute:d,second:D,millisecond:P},u)}static utc(){const[u,h]=Tr(arguments),[s,i,a,o,d,D,P]=h;return u.zone=Je.utcInstance,Ir({year:s,month:i,day:a,hour:o,minute:d,second:D,millisecond:P},u)}static fromJSDate(u,h={}){const s=function ct(m){return"[object Date]"===Object.prototype.toString.call(m)}(u)?u.valueOf():NaN;if(Number.isNaN(s))return Se.invalid("invalid input");const i=Et(h.zone,Ke.defaultZone);return i.isValid?new Se({ts:s,zone:i,loc:Oe.fromObject(h)}):Se.invalid(kt(i))}static fromMillis(u,h={}){if(de(u))return u<-Er||u>Er?Se.invalid("Timestamp out of range"):new Se({ts:u,zone:Et(h.zone,Ke.defaultZone),loc:Oe.fromObject(h)});throw new Q(`fromMillis requires a numerical input, but received a ${typeof u} with value ${u}`)}static fromSeconds(u,h={}){if(de(u))return new Se({ts:1e3*u,zone:Et(h.zone,Ke.defaultZone),loc:Oe.fromObject(h)});throw new Q("fromSeconds requires a numerical input")}static fromObject(u,h={}){u=u||{};const s=Et(h.zone,Ke.defaultZone);if(!s.isValid)return Se.invalid(kt(s));const i=Ke.now(),a=se(h.specificOffset)?s.offset(i):h.specificOffset,o=Dt(u,br),d=!se(o.ordinal),D=!se(o.year),P=!se(o.month)||!se(o.day),q=D||P,ue=o.weekYear||o.weekNumber,le=Oe.fromObject(h);if((q||d)&&ue)throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(P&&d)throw new f("Can't mix ordinal dates with month/day");const ye=ue||o.weekday&&!q;let xe,Ee,Re=Fr(i,a);ye?(xe=wi,Ee=xi,Re=dn(Re)):d?(xe=Fi,Ee=Ei,Re=Rn(Re)):(xe=Sr,Ee=vr);let nt=!1;for(const Gn of xe)se(o[Gn])?o[Gn]=nt?Ee[Gn]:Re[Gn]:nt=!0;const zt=ye?function gi(m){const u=ie(m.weekYear),h=Qe(m.weekNumber,1,Ue(m.weekYear)),s=Qe(m.weekday,1,7);return u?h?!s&<("weekday",m.weekday):lt("week",m.week):lt("weekYear",m.weekYear)}(o):d?function Di(m){const u=ie(m.year),h=Qe(m.ordinal,1,$e(m.year));return u?!h&<("ordinal",m.ordinal):lt("year",m.year)}(o):Vn(o),_i=zt||xr(o);if(_i)return Se.invalid(_i);const Ti=ye?gr(o):d?Dr(o):o,[Mi,Oi]=hn(Ti,a,s),Ci=new Se({ts:Mi,zone:s,o:Oi,loc:le});return o.weekday&&q&&u.weekday!==Ci.weekday?Se.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ci.toISO()}`):Ci}static fromISO(u,h={}){const[s,i]=function si(m){return wt(m,[Qr,er],[Xr,ni],[ei,ri],[ti,ii])}(u);return Qt(s,i,h,"ISO 8601",u)}static fromRFC2822(u,h={}){const[s,i]=function ai(m){return wt(function Kr(m){return m.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(m),[bt,Wr])}(u);return Qt(s,i,h,"RFC 2822",u)}static fromHTTP(u,h={}){const[s,i]=function oi(m){return wt(m,[$r,Xn],[Jr,Xn],[Yr,qr])}(u);return Qt(s,i,h,"HTTP",h)}static fromFormat(u,h,s={}){if(se(u)||se(h))throw new Q("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=s,o=Oe.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[d,D,P,q]=function yi(m,u,h){const{result:s,zone:i,specificOffset:a,invalidReason:o}=ln(m,u,h);return[s,i,a,o]}(o,u,h);return q?Se.invalid(q):Qt(d,D,s,`format ${h}`,u,P)}static fromString(u,h,s={}){return Se.fromFormat(u,h,s)}static fromSQL(u,h={}){const[s,i]=function Jt(m){return wt(m,[nr,er],[rr,An])}(u);return Qt(s,i,h,"SQL",u)}static invalid(u,h=null){if(!u)throw new Q("need to specify a reason the DateTime is invalid");const s=u instanceof _e?u:new _e(u,h);if(Ke.throwOnInvalid)throw new z(s);return new Se({invalid:s})}static isDateTime(u){return u&&u.isLuxonDateTime||!1}static parseFormatForOpts(u,h={}){const s=Ln(u,Oe.fromObject(h));return s?s.map(i=>i?i.val:null).join(""):null}static expandFormat(u,h={}){return un(he.parseFormat(u),Oe.fromObject(h)).map(i=>i.val).join("")}get(u){return this[u]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Un(this).weekYear:NaN}get weekNumber(){return this.isValid?Un(this).weekNumber:NaN}get weekday(){return this.isValid?Un(this).weekday:NaN}get ordinal(){return this.isValid?Rn(this.c).ordinal:NaN}get monthShort(){return this.isValid?nn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?nn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?nn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?nn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return at(this.year)}get daysInMonth(){return Ct(this.year,this.month)}get daysInYear(){return this.isValid?$e(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ue(this.weekYear):NaN}resolvedLocaleOptions(u={}){const{locale:h,numberingSystem:s,calendar:i}=he.create(this.loc.clone(u),u).resolvedOptions(this);return{locale:h,numberingSystem:s,outputCalendar:i}}toUTC(u=0,h={}){return this.setZone(Je.instance(u),h)}toLocal(){return this.setZone(Ke.defaultZone)}setZone(u,{keepLocalTime:h=!1,keepCalendarTime:s=!1}={}){if((u=Et(u,Ke.defaultZone)).equals(this.zone))return this;if(u.isValid){let i=this.ts;if(h||s){const a=u.offset(this.ts),o=this.toObject();[i]=hn(o,a,u)}return qt(this,{ts:i,zone:u})}return Se.invalid(kt(u))}reconfigure({locale:u,numberingSystem:h,outputCalendar:s}={}){return qt(this,{loc:this.loc.clone({locale:u,numberingSystem:h,outputCalendar:s})})}setLocale(u){return this.reconfigure({locale:u})}set(u){if(!this.isValid)return this;const h=Dt(u,br),s=!se(h.weekYear)||!se(h.weekNumber)||!se(h.weekday),i=!se(h.ordinal),a=!se(h.year),o=!se(h.month)||!se(h.day);if((a||o||i)&&(h.weekYear||h.weekNumber))throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new f("Can't mix ordinal dates with month/day");let P;s?P=gr({...dn(this.c),...h}):se(h.ordinal)?(P={...this.toObject(),...h},se(h.day)&&(P.day=Math.min(Ct(P.year,P.month),P.day))):P=Dr({...Rn(this.c),...h});const[q,ue]=hn(P,this.o,this.zone);return qt(this,{ts:q,o:ue})}plus(u){return this.isValid?qt(this,Cr(this,Ae.fromDurationLike(u))):this}minus(u){return this.isValid?qt(this,Cr(this,Ae.fromDurationLike(u).negate())):this}startOf(u){if(!this.isValid)return this;const h={},s=Ae.normalizeUnit(u);switch(s){case"years":h.month=1;case"quarters":case"months":h.day=1;case"weeks":case"days":h.hour=0;case"hours":h.minute=0;case"minutes":h.second=0;case"seconds":h.millisecond=0}if("weeks"===s&&(h.weekday=1),"quarters"===s){const i=Math.ceil(this.month/3);h.month=3*(i-1)+1}return this.set(h)}endOf(u){return this.isValid?this.plus({[u]:1}).startOf(u).minus(1):this}toFormat(u,h={}){return this.isValid?he.create(this.loc.redefaultToEN(h)).formatDateTimeFromString(this,u):Hn}toLocaleString(u=A,h={}){return this.isValid?he.create(this.loc.clone(h),u).formatDateTime(this):Hn}toLocaleParts(u={}){return this.isValid?he.create(this.loc.clone(u),u).formatDateTimeParts(this):[]}toISO({format:u="extended",suppressSeconds:h=!1,suppressMilliseconds:s=!1,includeOffset:i=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const o="extended"===u;let d=Zn(this,o);return d+="T",d+=Ar(this,o,h,s,i,a),d}toISODate({format:u="extended"}={}){return this.isValid?Zn(this,"extended"===u):null}toISOWeekDate(){return fn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:u=!1,suppressSeconds:h=!1,includeOffset:s=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended"}={}){return this.isValid?(i?"T":"")+Ar(this,"extended"===o,h,u,s,a):null}toRFC2822(){return fn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return fn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Zn(this,!0):null}toSQLTime({includeOffset:u=!0,includeZone:h=!1,includeOffsetSpace:s=!0}={}){let i="HH:mm:ss.SSS";return(h||u)&&(s&&(i+=" "),h?i+="z":u&&(i+="ZZ")),fn(this,i,!0)}toSQL(u={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(u)}`:null}toString(){return this.isValid?this.toISO():Hn}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(u={}){if(!this.isValid)return{};const h={...this.c};return u.includeConfig&&(h.outputCalendar=this.outputCalendar,h.numberingSystem=this.loc.numberingSystem,h.locale=this.loc.locale),h}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(u,h="milliseconds",s={}){if(!this.isValid||!u.isValid)return Ae.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...s},a=function dt(m){return Array.isArray(m)?m:[m]}(h).map(Ae.normalizeUnit),o=u.valueOf()>this.valueOf(),P=function Sn(m,u,h,s){let[i,a,o,d]=function hi(m,u,h){const s=[["years",(d,D)=>D.year-d.year],["quarters",(d,D)=>D.quarter-d.quarter+4*(D.year-d.year)],["months",(d,D)=>D.month-d.month+12*(D.year-d.year)],["weeks",(d,D)=>{const P=rn(d,D);return(P-P%7)/7}],["days",rn]],i={};let a,o;for(const[d,D]of s)if(h.indexOf(d)>=0){a=d;let P=D(m,u);o=m.plus({[d]:P}),o>u?(m=m.plus({[d]:P-1}),P-=1):m=o,i[d]=P}return[m,i,o,a]}(m,u,h);const D=u-i,P=h.filter(ue=>["hours","minutes","seconds","milliseconds"].indexOf(ue)>=0);0===P.length&&(o0?Ae.fromMillis(D,s).shiftTo(...P).plus(q):q}(o?this:u,o?u:this,a,i);return o?P.negate():P}diffNow(u="milliseconds",h={}){return this.diff(Se.now(),u,h)}until(u){return this.isValid?Ze.fromDateTimes(this,u):this}hasSame(u,h){if(!this.isValid)return!1;const s=u.valueOf(),i=this.setZone(u.zone,{keepLocalTime:!0});return i.startOf(h)<=s&&s<=i.endOf(h)}equals(u){return this.isValid&&u.isValid&&this.valueOf()===u.valueOf()&&this.zone.equals(u.zone)&&this.loc.equals(u.loc)}toRelative(u={}){if(!this.isValid)return null;const h=u.base||Se.fromObject({},{zone:this.zone}),s=u.padding?thish.valueOf(),Math.min)}static max(...u){if(!u.every(Se.isDateTime))throw new Q("max requires all arguments be DateTimes");return Ye(u,h=>h.valueOf(),Math.max)}static fromFormatExplain(u,h,s={}){const{locale:i=null,numberingSystem:a=null}=s;return ln(Oe.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),u,h)}static fromStringExplain(u,h,s={}){return Se.fromFormatExplain(u,h,s)}static get DATE_SHORT(){return A}static get DATE_MED(){return k}static get DATE_MED_WITH_WEEKDAY(){return B}static get DATE_FULL(){return G}static get DATE_HUGE(){return H}static get TIME_SIMPLE(){return C}static get TIME_WITH_SECONDS(){return L}static get TIME_WITH_SHORT_OFFSET(){return S}static get TIME_WITH_LONG_OFFSET(){return c}static get TIME_24_SIMPLE(){return g}static get TIME_24_WITH_SECONDS(){return y}static get TIME_24_WITH_SHORT_OFFSET(){return w}static get TIME_24_WITH_LONG_OFFSET(){return U}static get DATETIME_SHORT(){return V}static get DATETIME_SHORT_WITH_SECONDS(){return l}static get DATETIME_MED(){return x}static get DATETIME_MED_WITH_SECONDS(){return j}static get DATETIME_MED_WITH_WEEKDAY(){return X}static get DATETIME_FULL(){return oe}static get DATETIME_FULL_WITH_SECONDS(){return me}static get DATETIME_HUGE(){return fe}static get DATETIME_HUGE_WITH_SECONDS(){return Fe}}function jt(m){if(Se.isDateTime(m))return m;if(m&&m.valueOf&&de(m.valueOf()))return Se.fromJSDate(m);if(m&&"object"==typeof m)return Se.fromObject(m);throw new Q(`Unknown datetime argument: ${m}, of type ${typeof m}`)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5010.7148301adff11a11.js b/apps/n/porrtal-io-app/public/angular/5010.7148301adff11a11.js deleted file mode 100644 index e4a4d064..00000000 --- a/apps/n/porrtal-io-app/public/angular/5010.7148301adff11a11.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5010],{5010:(c,u,s)=>{s.r(u),s.d(u,{l:()=>y});var k,m,a,d=s(1719),t={exports:{}};k=t,void 0!==(a=t.exports,Object.defineProperty(a,"__esModule",{value:!0}),m=void(a.default={_decimalSeparator:",",_thousandSeparator:" ",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm::ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"yyyy-MM-dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"m.e.",_era_bc:"p.m.e.",A:"R",P:"V",AM:"ryto",PM:"vakaro","A.M.":"ryto","P.M.":"vakaro",January:"sausio",February:"vasario",March:"kovo",April:"baland\u017eio",May:"gegu\u017e\u0117s",June:"bir\u017eelio",July:"liepos",August:"rugpj\u016b\u010dio",September:"rugs\u0117jo",October:"spalio",November:"lapkri\u010dio",December:"gruod\u017eio",Jan:"sau.",Feb:"vas.",Mar:"kov.",Apr:"bal.","May(short)":"geg.",Jun:"bir.",Jul:"lie.",Aug:"rgp.",Sep:"rgs.",Oct:"spa.",Nov:"lap.",Dec:"gruo.",Sunday:"sekmadienis",Monday:"pirmadienis",Tuesday:"antradienis",Wednesday:"tre\u010diadienis",Thursday:"ketvirtadienis",Friday:"penktadienis",Saturday:"\u0161e\u0161tadienis",Sun:"sekm.",Mon:"pirm.",Tue:"antr.",Wed:"tre\u010d.",Thu:"ketv.",Fri:"penk.",Sat:"\u0161e\u0161t.",_dateOrd:function(o){return"-a(s)"},"Zoom Out":"Rodyti visk\u0105",Play:"Paleisti",Stop:"Sustabdyti",Legend:"Legenda","Click, tap or press ENTER to toggle":"Spragtelkite, palieskite arba spauskite ENTER, kad perjungtum\u0117te",Loading:"Kraunama",Home:"Prad\u017eia",Chart:"Grafikas","Serial chart":"Serijinis grafikas","X/Y chart":"X/Y grafikas","Pie chart":"Pyrago tipo grafikas","Gauge chart":"Daviklio tipo grafikas","Radar chart":"Radaro tipo grafikas","Sankey diagram":"Sankey diagrama","Chord diagram":"Chord diagrama","Flow diagram":"Flow diagrama","TreeMap chart":"TreeMap grafikas",Series:"Serija","Candlestick Series":'"Candlestick" tipo grafiko serija',"Column Series":"Stulpelinio grafiko serija","Line Series":"Linijinio grafiko serija","Pie Slice Series":"Pyrago tipo serija","X/Y Series":"X/Y serija",Map:"\u017dem\u0117lapis","Press ENTER to zoom in":"Spauskite ENTER, kad pritrauktum\u0117te vaizd\u0105","Press ENTER to zoom out":"Spauskite ENTER, kad atitolintum\u0117te vaizd\u0105","Use arrow keys to zoom in and out":"Naudokit\u0117s roykl\u0117mis vaizdo pritraukimui ar atitolinimui","Use plus and minus keys on your keyboard to zoom in and out":"Spauskite pliuso arba minuso klavi\u0161us ant klaviat\u016bros, kad pritrautum\u0117te arba atitolintum\u0117te vaizd\u0105",Export:"Eksportuoti",Image:"Paveiksliukas",Data:"Duomenys",Print:"Spausdinti","Click, tap or press ENTER to open":"Spragtelkite arba spauskite ENTER, kad atidarytum\u0117te","Click, tap or press ENTER to print.":"Spragtelkite arba spauskite ENTER, kad spausdintum\u0117te.","Click, tap or press ENTER to export as %1.":"Spragtelkite arba spauskite ENTER, kad eksportuotum\u0117te kaip %1.",'To save the image, right-click this link and choose "Save picture as..."':'Kad i\u0161saugotum\u0117te paveiksliuk\u0105, spauskite de\u0161in\u012f pel\u0117s klavi\u0161\u0105 ir pasirinkite "I\u0161saugoti, kaip paveiksliuk\u0105..."',"(Press ESC to close this message)":"(Spauskite ESC, kad u\u017edarytum\u0117te \u0161\u012f prane\u0161im\u0105)","Image Export Complete":"Paveiksliuko eksportas baigtas","Export operation took longer than expected. Something might have gone wrong.":"Eksportas u\u017etruko ilgiau negu tur\u0117t\u0173. Grei\u010diausiai \u012fvyko klaida.","Saved from":"I\u0161saugota i\u0161",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"Spauskite TAB klavi\u0161\u0105, kad pasirinktum\u0117te \u017eymeklius, arba kair\u0117/de\u0161in\u0117 klavi\u0161us, kad pakeistum\u0117te pasirinkim\u0105","Use left and right arrows to move selection":"Naudokit\u0117s klavi\u0161ais kair\u0117/de\u0161in\u0117, kad pajudintum\u0117te pasirinkim\u0105","Use left and right arrows to move left selection":"Naudokit\u0117s klavi\u0161ais kair\u0117/de\u0161in\u0117, kad pajudintum\u0117te kair\u012f \u017eymekl\u012f","Use left and right arrows to move right selection":"Naudokit\u0117s klavi\u0161ais kair\u0117/de\u0161in\u0117, kad pajudintum\u0117te de\u0161in\u012f \u017eymekl\u012f","Use TAB select grip buttons or up and down arrows to change selection":"Spauskite TAB klavi\u0161\u0105, kad pasirinktum\u0117te \u017eymeklius, arba auk\u0161tyn/\u017eemyn klavi\u0161us, kad pakeistum\u0117te pasirinkim\u0105","Use up and down arrows to move selection":"Naudokit\u0117s klavi\u0161ais auk\u0161tyn/\u017eemyn, kad pajudintum\u0117te pasirinkim\u0105","Use up and down arrows to move lower selection":"Naudokit\u0117s klavi\u0161ais auk\u0161tyn/\u017eemyn, kad pajudintum\u0117te apatin\u012f \u017eymekl\u012f","Use up and down arrows to move upper selection":"Naudokit\u0117s klavi\u0161ais auk\u0161tyn/\u017eemyn, kad pajudintum\u0117te vir\u0161utin\u012f \u017eymekl\u012f","From %1 to %2":"Nuo %1 iki %2","From %1":"Nuo %1","To %1":"Iki %1","No parser available for file: %1":"Failui %1 neturime tinkamo de\u0161ifruotojo","Error parsing file: %1":"Skaitant fail\u0105 %1 \u012fvyko klaida","Unable to load file: %1":"Nepavyko u\u017ekrauti failo %1","Invalid date":"Klaidinga data"}))&&(k.exports=m);const y=function g(r,a){for(var o=0;oe[i]})}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5039.f0bc6dd33471bbbe.js b/apps/n/porrtal-io-app/public/angular/5039.f0bc6dd33471bbbe.js deleted file mode 100644 index af38ecee..00000000 --- a/apps/n/porrtal-io-app/public/angular/5039.f0bc6dd33471bbbe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5039],{35039:(yn,ye,h)=>{h.r(ye),h.d(ye,{executeScript:()=>gn,extend:()=>Me,functionHelper:()=>hn});var d=h(15861),Ce=h(78778),me=h(9288),x=h(6729),o=h(25919),_e=h(42275),m=h(7652),a=h(47562),Ae=h(19927),Oe=h(67525),Fe=h(84228),Ze=h(38302),E=h(24499),Pe=h(53840),De=h(97536),Le=h(32576),ve=h(21674),we=h(65234);function xe(n){return n&&"function"==typeof n.then}const H=100;function R(n,e){return M.apply(this,arguments)}function M(){return(M=(0,d.Z)(function*(n,e){const r=[];for(let t=0;t{const t={spatialReference:this.context.spatialReference,console:this.context.console,lrucache:this.context.lrucache,exports:this.context.exports,libraryResolver:this.context.libraryResolver,interceptor:this.context.interceptor,localScope:{},depthCounter:{depth:e.depthCounter+1},globalScope:this.context.globalScope};if(t.depthCounter.depth>64)throw new o.aV(e,o.rH.MaximumCallDepth,null);return de(this.definition,t,r,null)}}call(e,r){return V(e,r,(t,i,s)=>{const l={spatialReference:e.spatialReference,services:e.services,console:e.console,libraryResolver:e.libraryResolver,exports:e.exports,lrucache:e.lrucache,interceptor:e.interceptor,localScope:{},abortSignal:e.abortSignal,globalScope:e.globalScope,depthCounter:{depth:e.depthCounter.depth+1}};if(l.depthCounter.depth>64)throw new o.aV(e,o.rH.MaximumCallDepth,r);return de(this.definition,l,s,r)})}marshalledCall(e,r,t,i){var s=this;return i(e,r,function(){var l=(0,d.Z)(function*(c,p,f){const y={spatialReference:e.spatialReference,globalScope:t.globalScope,depthCounter:{depth:e.depthCounter.depth+1},libraryResolver:e.libraryResolver,exports:e.exports,console:e.console,abortSignal:e.abortSignal,lrucache:e.lrucache,interceptor:e.interceptor,localScope:{}};return f=f.map(w=>!(0,a.i)(w)||w instanceof m.Vg?w:(0,m.aq)(w,e,i)),(0,m.aq)(yield de(s.definition,y,f,r),t,i)});return function(c,p,f){return l.apply(this,arguments)}}())}}class b extends Ce.P{constructor(e){super(e)}global(e){var r=this;return(0,d.Z)(function*(){const t=r.executingContext.globalScope[e.toLowerCase()];if(t.valueset||(t.value=yield u(r.executingContext,t.node),t.valueset=!0),(0,a.i)(t.value)&&!(t.value instanceof m.Vg)){const i=new m.Vg;i.fn=t.value,i.parameterEvaluator=V,i.context=r.executingContext,t.value=i}return t.value})()}setGlobal(e,r){if((0,a.i)(r))throw new o.aV(null,o.rH.AssignModuleFunction,null);this.executingContext.globalScope[e.toLowerCase()]={value:r,valueset:!0,node:null}}hasGlobal(e){return void 0===this.executingContext.exports[e]&&(e=e.toLowerCase()),void 0!==this.executingContext.exports[e]}loadModule(e){var r=this;return(0,d.Z)(function*(){let t=e.spatialReference;null==t&&(t=new we.Z({wkid:102100})),r.moduleScope=Ee({},e.customfunctions),r.executingContext={spatialReference:t,services:e.services,libraryResolver:new me.s(e.libraryResolver._moduleSingletons,r.source.syntax.loadedModules),exports:{},abortSignal:e.abortSignal??{aborted:!1},globalScope:r.moduleScope,console:e.console?e.console:Re,lrucache:e.lrucache,interceptor:e.interceptor,localScope:null,depthCounter:{depth:1}},yield u(r.executingContext,r.source.syntax)})()}}function V(n,e,r){return A.apply(this,arguments)}function A(){return(A=(0,d.Z)(function*(n,e,r){if(!0===e.preparsed){const i=r(n,null,e.arguments);return xe(i),i}const t=r(n,e,yield R(n,e));return xe(t),t})).apply(this,arguments)}function u(n,e,r){return O.apply(this,arguments)}function O(){return(O=(0,d.Z)(function*(n,e,r){if(e.breakpoint&&!0!==r)return yield e.breakpoint(),u(n,e,!0);try{switch(e?.type){case"VariableDeclarator":return yield rn(n,e);case"ImportDeclaration":return yield en(n,e);case"ExportNamedDeclaration":return yield nn(n,e);case"VariableDeclaration":return yield Se(n,e,0);case"BlockStatement":case"Program":return yield $e(n,e);case"FunctionDeclaration":return yield qe(n,e);case"ReturnStatement":return yield ze(n,e);case"IfStatement":return yield Ye(n,e);case"ExpressionStatement":return yield Xe(n,e);case"UpdateExpression":return yield Je(n,e);case"AssignmentExpression":return yield Qe(n,e);case"ForStatement":return yield Ne(n,e);case"WhileStatement":return yield Te(n,e);case"ForInStatement":return yield Ge(n,e);case"BreakStatement":return a.o;case"EmptyStatement":return a.v;case"ContinueStatement":return a.p;case"TemplateElement":return yield cn(n,e);case"TemplateLiteral":return yield fn(n,e);case"Identifier":return yield ie(n,e);case"MemberExpression":return yield tn(n,e);case"Literal":return e.value;case"CallExpression":return yield un(n,e);case"UnaryExpression":return yield on(n,e);case"BinaryExpression":return yield ln(n,e);case"LogicalExpression":return yield sn(n,e);case"ArrayExpression":return yield an(n,e);case"ObjectExpression":return yield je(n,e);case"Property":return yield Ke(n,e);default:throw new o.aV(n,o.rH.Unrecognised,e)}}catch(t){throw(0,o.VO)(n,e,t)}})).apply(this,arguments)}function je(n,e){return F.apply(this,arguments)}function F(){return(F=(0,d.Z)(function*(n,e){const r=[];for(let l=0;l{try{!0===r.testResult?++s>H?(s=0,setTimeout(()=>{I(n,e,r,t,i,s)},0)):I(n,e,r,t,i,s):t(r.lastAction instanceof a.R?r.lastAction:a.v)}catch(l){i(l)}},l=>{i(l)})}catch(l){i(l)}}function Ne(n,e){try{return null!==e.init?u(n,e.init).then(()=>new Promise((r,t)=>{I(n,e,{testResult:!0,lastAction:a.v},i=>{r(i)},i=>{t(i)},0)})):new Promise((r,t)=>{I(n,e,{testResult:!0,lastAction:a.v},i=>{r(i)},i=>{t(i)},0)})}catch(r){return Promise.reject(r)}}function B(n,e,r,t,i,s,l,c,p,f){try{if(t<=s)return void c(a.v);i.value="k"===l?r[s]:s,u(n,e.body).then(y=>{try{y instanceof a.R?c(y):y===a.o?c(a.v):++f>H?(f=0,setTimeout(()=>{B(n,e,r,t,i,s+1,l,c,p,f)},0)):B(n,e,r,t,i,s+1,l,c,p,f)}catch(w){p(w)}},y=>{p(y)})}catch(y){p(y)}}function j(n,e,r,t,i,s,l,c,p){try{if(r.length()<=i)return void l(a.v);t.value="k"===s?r.get(i):i,u(n,e.body).then(f=>{f instanceof a.R?l(f):f===a.o?l(a.v):++p>H?(p=0,setTimeout(()=>{j(n,e,r,t,i+1,s,l,c,p)},0)):j(n,e,r,t,i+1,s,l,c,p)},f=>{c(f)})}catch(f){c(f)}}function K(n,e,r,t,i,s){try{if(void 0===s&&(s="i"),0===r.length)return void t.resolve(a.v);B(n,e,r,r.length,i,0,s,l=>{t.resolve(l)},l=>{t.reject(l)},0)}catch(l){t.reject(l)}}function We(n,e,r,t,i,s){try{if(void 0===s&&(s="i"),0===r.length)return void t.resolve(a.v);j(n,e,r,i,0,s,l=>{t.resolve(l)},l=>{t.reject(l)},0)}catch(l){t.reject(l)}}function ke(n,e,r,t,i){try{K(n,e,r.keys(),t,i,"k")}catch(s){t.reject(s)}}function T(n,e,r,t,i,s,l,c){try{n.next().then(p=>{try{if(null===p)s(a.v);else{const f=_e.Z.createFromGraphicLikeObject(p.geometry,p.attributes,t);f._underlyingGraphic=p,i.value=f,u(e,r.body).then(y=>{try{y===a.o?s(a.v):y instanceof a.R?s(y):++c>H?(c=0,setTimeout(()=>{T(n,e,r,t,i,s,l,c)},0)):T(n,e,r,t,i,s,l,c)}catch(w){l(w)}},y=>{l(y)})}}catch(f){l(f)}},p=>{l(p)})}catch(p){l(p)}}function Ge(n,e){return U.apply(this,arguments)}function U(){return(U=(0,d.Z)(function*(n,e){return new Promise((r,t)=>{u(n,e.right).then(i=>{try{let s=null;s="VariableDeclaration"===e.left.type?u(n,e.left):Promise.resolve(),s.then(()=>{try{let l="";if("VariableDeclaration"===e.left.type){const p=e.left.declarations[0].id;"Identifier"===p.type&&(l=p.name)}else"Identifier"===e.left.type&&(l=e.left.name);if(!l)throw new o.aV(n,o.rH.InvalidIdentifier,e);l=l.toLowerCase();let c=null;if(null!=n.localScope&&void 0!==n.localScope[l]&&(c=n.localScope[l]),null===c&&void 0!==n.globalScope[l]&&(c=n.globalScope[l]),null===c)return void t(new o.aV(n,o.rH.InvalidIdentifier,e));(0,a.m)(i)||(0,a.c)(i)?K(n,e,i,{reject:t,resolve:r},c):(0,a.x)(i)?We(n,e,i,{reject:t,resolve:r},c):i instanceof x.Z||(0,a.w)(i)?ke(n,e,i,{reject:t,resolve:r},c):(0,a.T)(i)?T(i.iterator(n.abortSignal),n,e,i,c,p=>{r(p)},p=>{t(p)},0):K(n,e,[],{reject:t,resolve:r},c)}catch(l){t(l)}},t)}catch(s){t(s)}},t)})})).apply(this,arguments)}function Je(n,e){return N.apply(this,arguments)}function N(){return(N=(0,d.Z)(function*(n,e){const r=e.argument;if("MemberExpression"===r.type){const s={t:null},l=yield u(n,r.object);let c=null;s.t=l,!0===r.computed?c=yield u(n,r.property):"Identifier"===r.property.type&&(c=r.property.name);const p=s.t;let f;if((0,a.m)(p)){if(!(0,a.b)(c))throw new o.aV(n,o.rH.ArrayAccessorMustBeNumber,e);if(c<0&&(c=p.length+c),c<0||c>=p.length)throw new o.aV(n,o.rH.OutOfBounds,e);f=(0,a.g)(p[c]),p[c]="++"===e.operator?f+1:f-1}else if(p instanceof x.Z){if(!1===(0,a.c)(c))throw new o.aV(n,o.rH.KeyAccessorMustBeString,e);if(!0!==p.hasField(c))throw new o.aV(n,o.rH.FieldNotFound,e,{key:c});f=(0,a.g)(p.field(c)),p.setField(c,"++"===e.operator?f+1:f-1)}else if(p instanceof b){if(!1===(0,a.c)(c))throw new o.aV(n,o.rH.ModuleAccessorMustBeString,e);if(!0!==p.hasGlobal(c))throw new o.aV(n,o.rH.ModuleExportNotFound,e);f=(0,a.g)(yield p.global(c)),p.setGlobal(c,"++"===e.operator?f+1:f-1)}else{if(!(0,a.w)(p))throw(0,a.x)(p)?new o.aV(n,o.rH.Immutable,e):new o.aV(n,o.rH.InvalidParameter,e);if(!1===(0,a.c)(c))throw new o.aV(n,o.rH.KeyAccessorMustBeString,e);if(!0!==p.hasField(c))throw new o.aV(n,o.rH.FieldNotFound,e,{key:c});f=(0,a.g)(p.field(c)),p.setField(c,"++"===e.operator?f+1:f-1)}return!1===e.prefix?f:"++"===e.operator?f+1:f-1}const t="Identifier"===e.argument.type?e.argument.name.toLowerCase():"";if(!t)throw new o.aV(n,o.rH.InvalidIdentifier,e);let i;if(null!=n.localScope&&void 0!==n.localScope[t])return i=(0,a.g)(n.localScope[t].value),n.localScope[t]={value:"++"===e.operator?i+1:i-1,valueset:!0,node:e},!1===e.prefix?i:"++"===e.operator?i+1:i-1;if(void 0!==n.globalScope[t])return i=(0,a.g)(n.globalScope[t].value),n.globalScope[t]={value:"++"===e.operator?i+1:i-1,valueset:!0,node:e},!1===e.prefix?i:"++"===e.operator?i+1:i-1;throw new o.aV(n,o.rH.InvalidIdentifier,e)})).apply(this,arguments)}function _(n,e,r,t,i){switch(e){case"=":return n===a.v?null:n;case"/=":return(0,a.g)(r)/(0,a.g)(n);case"*=":return(0,a.g)(r)*(0,a.g)(n);case"-=":return(0,a.g)(r)-(0,a.g)(n);case"+=":return(0,a.c)(r)||(0,a.c)(n)?(0,a.j)(r)+(0,a.j)(n):(0,a.g)(r)+(0,a.g)(n);case"%=":return(0,a.g)(r)%(0,a.g)(n);default:throw new o.aV(i,o.rH.UnsupportedOperator,t)}}function Qe(n,e){return W.apply(this,arguments)}function W(){return(W=(0,d.Z)(function*(n,e){const r=e.left;if("MemberExpression"===r.type){const i=yield u(n,e.right),s=yield u(n,r.object);let l=null;if(!0===r.computed)l=yield u(n,r.property);else{if("Identifier"!==r.property.type)throw new o.aV(n,o.rH.InvalidIdentifier,e);l=r.property.name}if((0,a.m)(s)){if(!(0,a.b)(l))throw new o.aV(n,o.rH.ArrayAccessorMustBeNumber,e);if(l<0&&(l=s.length+l),l<0||l>s.length)throw new o.aV(n,o.rH.OutOfBounds,e);if(l===s.length){if("="!==e.operator)throw new o.aV(n,o.rH.OutOfBounds,e);s[l]=_(i,e.operator,s[l],e,n)}else s[l]=_(i,e.operator,s[l],e,n)}else if(s instanceof x.Z){if(!1===(0,a.c)(l))throw new o.aV(n,o.rH.KeyAccessorMustBeString,e);if(!0===s.hasField(l))s.setField(l,_(i,e.operator,s.field(l),e,n));else{if("="!==e.operator)throw new o.aV(n,o.rH.FieldNotFound,e,{key:l});s.setField(l,_(i,e.operator,null,e,n))}}else if(s instanceof b){if(!1===(0,a.c)(l))throw new o.aV(n,o.rH.KeyAccessorMustBeString,e);if(!0!==s.hasGlobal(l))throw new o.aV(n,o.rH.ModuleExportNotFound,e);s.setGlobal(l,_(i,e.operator,yield s.global(l),e,n))}else{if(!(0,a.w)(s))throw(0,a.x)(s)?new o.aV(n,o.rH.Immutable,e):new o.aV(n,o.rH.InvalidParameter,e);if(!1===(0,a.c)(l))throw new o.aV(n,o.rH.KeyAccessorMustBeString,e);if(!0===s.hasField(l))s.setField(l,_(i,e.operator,s.field(l),e,n));else{if("="!==e.operator)throw new o.aV(n,o.rH.FieldNotFound,e,{key:l});s.setField(l,_(i,e.operator,null,e,n))}}return a.v}const t=r.name.toLowerCase();if(null!=n.localScope&&void 0!==n.localScope[t]){const i=yield u(n,e.right);return n.localScope[t]={value:_(i,e.operator,n.localScope[t].value,e,n),valueset:!0,node:e.right},a.v}if(void 0!==n.globalScope[t]){const i=yield u(n,e.right);return n.globalScope[t]={value:_(i,e.operator,n.globalScope[t].value,e,n),valueset:!0,node:e.right},a.v}throw new o.aV(n,o.rH.InvalidIdentifier,e)})).apply(this,arguments)}function Xe(n,e){return k.apply(this,arguments)}function k(){return(k=(0,d.Z)(function*(n,e){if("AssignmentExpression"===e.expression.type)return u(n,e.expression);if("CallExpression"===e.expression.type){const t=yield u(n,e.expression);return t===a.v?a.v:new a.I(t)}const r=yield u(n,e.expression);return r===a.v?a.v:new a.I(r)})).apply(this,arguments)}function Ye(n,e){return G.apply(this,arguments)}function G(){return(G=(0,d.Z)(function*(n,e){const r=yield u(n,e.test);if(!0===r)return u(n,e.consequent);if(!1===r)return null!==e.alternate?u(n,e.alternate):a.v;throw new o.aV(n,o.rH.BooleanConditionRequired,e)})).apply(this,arguments)}function $e(n,e){return J.apply(this,arguments)}function J(){return(J=(0,d.Z)(function*(n,e){return Ve(n,e,0)})).apply(this,arguments)}function Ve(n,e,r){return Q.apply(this,arguments)}function Q(){return(Q=(0,d.Z)(function*(n,e,r){if(r>=e.body.length)return a.v;const t=yield u(n,e.body[r]);return t instanceof a.R||t===a.o||t===a.p||r===e.body.length-1?t:Ve(n,e,r+1)})).apply(this,arguments)}function ze(n,e){return X.apply(this,arguments)}function X(){return(X=(0,d.Z)(function*(n,e){if(null===e.argument)return new a.R(a.v);const r=yield u(n,e.argument);return new a.R(r)})).apply(this,arguments)}function qe(n,e){return Y.apply(this,arguments)}function Y(){return(Y=(0,d.Z)(function*(n,e){const r=e.id.name.toLowerCase();return n.globalScope[r]={valueset:!0,node:null,value:new Be(e,n)},a.v})).apply(this,arguments)}function en(n,e){return $.apply(this,arguments)}function $(){return($=(0,d.Z)(function*(n,e){const r=e.specifiers[0].local.name.toLowerCase(),t=n.libraryResolver.loadLibrary(r);let i=null;return n.libraryResolver._moduleSingletons?.has(t.uri)?i=n.libraryResolver._moduleSingletons.get(t.uri):(i=new b(t),yield i.loadModule(n),n.libraryResolver._moduleSingletons?.set(t.uri,i)),n.globalScope[r]={value:i,valueset:!0,node:e},a.v})).apply(this,arguments)}function nn(n,e){return z.apply(this,arguments)}function z(){return(z=(0,d.Z)(function*(n,e){if(yield u(n,e.declaration),"FunctionDeclaration"===e.declaration.type)n.exports[e.declaration.id.name.toLowerCase()]="function";else if("VariableDeclaration"===e.declaration.type)for(const r of e.declaration.declarations)n.exports[r.id.name.toLowerCase()]="variable";return a.v})).apply(this,arguments)}function Se(n,e,r){return q.apply(this,arguments)}function q(){return(q=(0,d.Z)(function*(n,e,r){return r>=e.declarations.length||(yield u(n,e.declarations[r]),r===e.declarations.length-1||(yield Se(n,e,r+1))),a.v})).apply(this,arguments)}function rn(n,e){return ee.apply(this,arguments)}function ee(){return(ee=(0,d.Z)(function*(n,e){let r=null;if(r=null===e.init?null:yield u(n,e.init),null!==n.localScope){if(r===a.v&&(r=null),"Identifier"!==e.id.type)throw new o.aV(n,o.rH.InvalidIdentifier,e);const i=e.id.name.toLowerCase();return null!=n.localScope&&(n.localScope[i]={value:r,valueset:!0,node:e.init}),a.v}if("Identifier"!==e.id.type)throw new o.aV(n,o.rH.InvalidIdentifier,e);const t=e.id.name.toLowerCase();return r===a.v&&(r=null),n.globalScope[t]={value:r,valueset:!0,node:e.init},a.v})).apply(this,arguments)}function tn(n,e){return ne.apply(this,arguments)}function ne(){return(ne=(0,d.Z)(function*(n,e){const r=yield u(n,e.object);if(null===r)throw new o.aV(n,o.rH.MemberOfNull,e);if(!1===e.computed){if("Identifier"===e.property.type){if(r instanceof x.Z||(0,a.w)(r))return r.field(e.property.name);if(r instanceof ve.Z)return(0,E.Z)(r,e.property.name,n,e);if(r instanceof b){if(!r.hasGlobal(e.property.name))throw new o.aV(n,o.rH.InvalidIdentifier,e);return r.global(e.property.name)}throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}let t=yield u(n,e.property);if(r instanceof x.Z||(0,a.w)(r)){if((0,a.c)(t))return r.field(t);throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}if(r instanceof b){if((0,a.c)(t))return r.global(t);throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}if(r instanceof ve.Z){if((0,a.c)(t))return(0,E.Z)(r,t,n,e);throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}if((0,a.m)(r)){if((0,a.b)(t)&&isFinite(t)&&Math.floor(t)===t){if(t<0&&(t=r.length+t),t>=r.length||t<0)throw new o.aV(n,o.rH.OutOfBounds,e);return r[t]}throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}if((0,a.x)(r)){if((0,a.b)(t)&&isFinite(t)&&Math.floor(t)===t){if(t<0&&(t=r.length()+t),t>=r.length()||t<0)throw new o.aV(n,o.rH.OutOfBounds,e);return r.get(t)}throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}if((0,a.c)(r)){if((0,a.b)(t)&&isFinite(t)&&Math.floor(t)===t){if(t<0&&(t=r.length+t),t>=r.length||t<0)throw new o.aV(n,o.rH.OutOfBounds,e);return r[t]}throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)}throw new o.aV(n,o.rH.InvalidMemberAccessKey,e)})).apply(this,arguments)}function on(n,e){return re.apply(this,arguments)}function re(){return(re=(0,d.Z)(function*(n,e){const r=yield u(n,e.argument);if((0,a.a)(r)){if("!"===e.operator)return!r;if("-"===e.operator)return-1*(0,a.g)(r);if("+"===e.operator)return 1*(0,a.g)(r);if("~"===e.operator)return~(0,a.g)(r);throw new o.aV(n,o.rH.UnsupportedUnaryOperator,e)}if("-"===e.operator)return-1*(0,a.g)(r);if("+"===e.operator)return 1*(0,a.g)(r);if("~"===e.operator)return~(0,a.g)(r);throw new o.aV(n,o.rH.UnsupportedUnaryOperator,e)})).apply(this,arguments)}function an(n,e){return te.apply(this,arguments)}function te(){return(te=(0,d.Z)(function*(n,e){const r=[];for(let t=0;t>":case">>>":case"^":case"&":return(0,a.u)((0,a.g)(t),(0,a.g)(i),e.operator);case"==":return(0,a.s)(t,i);case"!=":return!(0,a.s)(t,i);case"<":case">":case"<=":case">=":return(0,a.r)(t,i,e.operator);case"+":return(0,a.c)(t)||(0,a.c)(i)?(0,a.j)(t)+(0,a.j)(i):(0,a.g)(t)+(0,a.g)(i);case"-":return(0,a.g)(t)-(0,a.g)(i);case"*":return(0,a.g)(t)*(0,a.g)(i);case"/":return(0,a.g)(t)/(0,a.g)(i);case"%":return(0,a.g)(t)%(0,a.g)(i);default:throw new o.aV(n,o.rH.UnsupportedOperator,e)}})).apply(this,arguments)}function sn(n,e){return ae.apply(this,arguments)}function ae(){return(ae=(0,d.Z)(function*(n,e){const r=yield u(n,e.left);let t=null;if(!(0,a.a)(r))throw new o.aV(n,o.rH.LogicalExpressionOnlyBoolean,e);switch(e.operator){case"||":if(!0===r)return r;if(t=yield u(n,e.right),(0,a.a)(t))return t;throw new o.aV(n,o.rH.LogicExpressionOrAnd,e);case"&&":if(!1===r)return r;if(t=yield u(n,e.right),(0,a.a)(t))return t;throw new o.aV(n,o.rH.LogicExpressionOrAnd,e);default:throw new o.aV(n,o.rH.LogicExpressionOrAnd,e)}})).apply(this,arguments)}function ie(n,e){return le.apply(this,arguments)}function le(){return(le=(0,d.Z)(function*(n,e){const r=e.name.toLowerCase();if(null!=n.localScope&&void 0!==n.localScope[r]){const t=n.localScope[r];if(!0===t.valueset)return t.value;if(null!==t.d)return t.d;t.d=u(n,t.node);const i=yield t.d;return t.value=i,t.valueset=!0,i}if(void 0!==n.globalScope[r]){const t=n.globalScope[r];if(!0===t.valueset)return t.value;if(null!==t.d)return t.d;t.d=u(n,t.node);const i=yield t.d;return t.value=i,t.valueset=!0,i}throw new o.aV(n,o.rH.InvalidIdentifier,e)})).apply(this,arguments)}function un(n,e){return se.apply(this,arguments)}function se(){return(se=(0,d.Z)(function*(n,e){if("MemberExpression"===e.callee.type){const r=yield u(n,e.callee.object);if(!(r instanceof b))throw new o.aV(n,o.rH.FuncionNotFound,e);const t=!1===e.callee.computed?e.callee.property.name:yield u(n,e.callee.property);if(!r.hasGlobal(t))throw new o.aV(n,o.rH.FuncionNotFound,e);const i=yield r.global(t);if(!(0,a.i)(i))throw new o.aV(n,o.rH.CallNonFunction,e);return i.call(n,e)}if("Identifier"!==e.callee.type)throw new o.aV(n,o.rH.FuncionNotFound,e);if(null!=n.localScope&&void 0!==n.localScope[e.callee.name.toLowerCase()]){const r=n.localScope[e.callee.name.toLowerCase()];if((0,a.i)(r.value))return r.value.call(n,e);throw new o.aV(n,o.rH.CallNonFunction,e)}if(void 0!==n.globalScope[e.callee.name.toLowerCase()]){const r=n.globalScope[e.callee.name.toLowerCase()];if((0,a.i)(r.value))return r.value.call(n,e);throw new o.aV(n,o.rH.CallNonFunction,e)}throw new o.aV(n,o.rH.FuncionNotFound,e)})).apply(this,arguments)}function cn(n,e){return ue.apply(this,arguments)}function ue(){return(ue=(0,d.Z)(function*(n,e){return e.value?e.value.cooked:""})).apply(this,arguments)}function pn(n,e,r){if((0,a.i)(n))throw new o.aV(e,o.rH.NoFunctionInTemplateLiteral,r);return n}function fn(n,e){return ce.apply(this,arguments)}function ce(){return(ce=(0,d.Z)(function*(n,e){const r=[];for(let s=0;s{w.d(q,{Rd:()=>K,Ud:()=>G,VG:()=>Y,Wv:()=>J,Zv:()=>tt});var A=w(15572),X=w(90466);function Y(_,m,g,x=2,k="abbr"){return(0,X.VG)(_,(0,A.nn)(m,g).value,g,x,k)}function K(_,m,g=2,x="abbr"){return(0,X.Rd)(_,m.value,m.unit,g,x)}function J(_,m,g=2,x="abbr"){return(0,X.Wv)(_,m.value,m.unit,g,x)}function G(_,m,g=2,x="abbr"){return(0,X.Ud)(_,m.value,m.unit,g,x)}function tt(_,m,g=2,x="abbr"){return(0,X.Zv)(_,m.value,m.unit,g,x)}},15572:(rt,q,w)=>{w.d(q,{EV:()=>X,ne:()=>F,nn:()=>Z,yG:()=>Y});var A=w(16730);function X(S,T){return{type:(0,A.UF)(T),value:S,unit:T}}function Y(S,T){return{type:(0,A.UF)(T),value:S,unit:T}}function F(S,T){return{type:(0,A.UF)(T),value:S,unit:T}}function Z(S,T){return X((0,A.En)(S.value,S.unit,T),T)}Y(0,"meters"),F(0,"square-meters"),function z(S,T,$="arithmetic"){(0,A.UF)(T)}(0,"radians")},68063:(rt,q,w)=>{w.d(q,{Kc:()=>ft,jB:()=>mt});var A=w(91558),X=w(72392),Y=w(62208),F=w(32917),K=w(23841),z=w(67831),J=w(84161),Z=w(28093),H=w(68604),G=w(25858),I=w(17626),tt=w(14517),C=w(77712),S=(w(85931),w(90912),w(76898));w(50645);let $=d=>({vnodeSelector:"",properties:void 0,children:void 0,text:d.toString(),domNode:null}),B=(d,l,y)=>{for(let P=0,E=l.length;P1||(P.renderToScreen(W,y),0))}_computeLabelPositionFromCorner(l,y,P,E){if(!l)return!1;const R=this.view.state.camera;return lt(l.left,1,R,ot),(0,z.n)(ot,ot),lt(l.right,0,R,dt),(0,z.j)(U,ot,dt),(0,z.n)(U,U),(0,z.f)(U,U),R.projectToRenderScreen(l.left.endRenderSpace,W),!(W[2]<0||W[2]>1||(R.renderToScreen(W,P),(0,z.b)(U,U,y*R.pixelRatio),(0,z.j)(U,U,W),R.renderToScreen(U,E),0))}_computeLabelPositionFromSegment(l,y,P,E,R){if(!l)return!1;const V=l.segment,N=this.view.state.camera;(0,G.CM)(V.startRenderSpace,V.endRenderSpace,N,ot),(0,z.s)(U,-ot[1],ot[0]);let Q=!1;switch(P){case"top":Q=U[1]<0;break;case"bottom":Q=U[1]>0;break;case"left":Q=U[0]>0;break;case"right":Q=U[0]<0}if(Q&&(0,z.n)(U,U),0===(0,z.i)(U))switch(P){case"top":U[1]=1;break;case"bottom":U[1]=-1;break;case"left":U[0]=-1;break;case"right":U[0]=1}return V.eval(Ct[l.sampleLocation],ut),N.projectToRenderScreen(ut,W),!(W[2]<0||W[2]>1||(N.renderToScreen(W,E),(0,z.b)(U,U,y*N.pixelRatio),(0,z.j)(U,U,W),N.renderToScreen(U,R),0))}_updatePosition(l,y){if(y){const P=y[0]-l[0],E=y[1]-l[1];return this._textItem.position=[y[0],y[1]],this._textItem.anchor=Math.abs(P)>Math.abs(E)?P>0?"left":"right":E>0?"top":"bottom",this._calloutItem.startPosition=[l[0],l[1]],this._calloutItem.endPosition=[y[0],y[1]],!0}return this._textItem.position=[l[0],l[1]],this._textItem.anchor="center",!1}createResources(){this._textItem=new nt({visible:!0,text:this._text,fontSize:this._fontSize,backgroundColor:this._backgroundColor,textColor:this._textColor}),this._calloutItem=new m({visible:!0,width:2}),this.updateLabelPosition(),this.view.overlay.items.addMany([this._textItem,this._calloutItem]),this.updatePositionOnCameraMove&&this._handles.add((0,F.YP)(()=>this.view.state.camera,()=>this.updateLabelPosition()))}destroyResources(){this.view.overlay&&!this.view.overlay.destroyed&&this.view.overlay.items.removeMany([this._textItem,this._calloutItem]),this._handles.removeAll()}updateVisibility(l){this._textItem.visible=this._showText&&l,this._calloutItem.visible=this._showCallout&&l}}function lt(d,l,y,P){d.eval(l,at,ct),(0,J.a)(ht,at,ct),y.projectToRenderScreen(at,pt),y.projectToRenderScreen(ht,_t),(0,z.a)(P,bt,yt),(0,z.f)(P,P)}function mt(d){switch(d){case"top":return"bottom";case"right":return"left";case"bottom":return"top";case"left":return"right"}}const at=(0,Z.c)(),ht=(0,Z.c)(),ct=(0,Z.c)(),ot=(0,K.gX)(),dt=(0,K.gX)(),U=(0,K.gX)(),ut=(0,Z.c)(),W=(0,K.J$)(),et=(0,K.s1)(),st=(0,K.s1)(),pt=(0,K.J$)(),yt=pt,_t=(0,K.J$)(),bt=_t,Ct={start:0,center:.5,end:1}},64770:(rt,q,w)=>{w.d(q,{u:()=>Z,y:()=>J});var A=w(84161),X=w(28093),Y=w(55915),F=w(12080),K=w(26242),z=w(98943);class J{constructor(C=(0,X.c)(),j=(0,X.c)()){this.startRenderSpace=C,this.endRenderSpace=j,this.type="euclidean"}eval(C,j,L){return(0,A.h)(j,this.startRenderSpace,this.endRenderSpace,C),L&&((0,A.b)(L,this.endRenderSpace,this.startRenderSpace),(0,A.n)(L,L)),j}createRenderGeometry(C,j){const L=[],S=[],T=(B,O)=>{const M=G;(0,A.b)(M,B,C),L.push([M[0],M[1],M[2]]),S.push([O[0],O[1],O[2]])},$=j.worldUpAtPosition(this.eval(.5,H),K.WM.get());return T(this.startRenderSpace,$),T(this.endRenderSpace,$),{points:L,normals:S}}static fromPositionAndVector(C,j,L=1){return(0,A.g)(H,j,L),(0,A.a)(H,C,H),new J((0,X.a)(C),(0,X.a)(H))}}class Z{constructor(C,j,L){this.startRenderSpace=C,this.endRenderSpace=j,this.renderSpatialReference=L,this.type="geodesic",this._start=(0,X.c)(),this._end=(0,X.c)(),this._pcpf=(0,F.rS)(L),this._project=(0,Y.Up)(L,this._pcpf),this._projectIn(C,this._start),this._projectIn(j,this._end)}_projectIn(C,j){this._project?(0,Y.SH)(C,this.renderSpatialReference,j,this._pcpf):(0,A.c)(j,C)}eval(C,j,L){if(this._project)if(L){const S=G;(0,z.ek)(this._start,this._end,C,j,S),(0,A.a)(I,j,S),(0,Y.SH)(j,this._pcpf,j,this.renderSpatialReference),(0,Y.SH)(I,this._pcpf,I,this.renderSpatialReference),(0,A.b)(L,I,j),(0,A.n)(L,L)}else(0,z.ZA)(this._start,this._end,C,j),(0,Y.SH)(j,this._pcpf,j,this.renderSpatialReference);else(0,A.h)(j,this._start,this._end,C),L&&((0,A.b)(L,this._end,this._start),(0,A.n)(L,L));return j}createRenderGeometry(C,j){const L=[],S=[],T=(B,O)=>{const M=I;(0,A.b)(M,B,C),L.push([M[0],M[1],M[2]]),S.push([O[0],O[1],O[2]])};for(let B=0;B<128;++B){const M=H,D=G;this.eval(B/127,M),j.worldUpAtPosition(M,D),T(M,D)}return{points:L,normals:S}}}const H=(0,X.c)(),G=(0,X.c)(),I=(0,X.c)()},25858:(rt,q,w)=>{w.d(q,{$r:()=>Z,By:()=>tt,CM:()=>J,Rs:()=>I,a7:()=>G});var A=w(23841),X=w(67831),Y=w(84161),F=w(28093),K=w(72642),z=w(60507);function J($,B,O,M){O.projectToRenderScreen($,L),O.projectToRenderScreen(B,S),(0,X.a)(M,S,L),(0,X.f)(M,M)}function Z($,B,O,M,D=(0,F.c)()){const _=B.toXYZ($);return _[2]=(0,z.zx)(M,_,B.spatialReference,O)||0,M.renderCoordsHelper.toRenderCoords(_,B.spatialReference,D),D}function G($,B,O,M){return I(B.toXYZ($),B.spatialReference,O,M)}function I($,B,O,M){return"2d"===M.type?(C.x=$[0],C.y=$[1],C.spatialReference=B,M.toScreen(C)):(function H($,B,O,M,D=(0,F.c)()){const _=(0,Y.c)(j,$);_[2]=(0,z.zx)(M,_,B,O)||0,M.renderCoordsHelper.toRenderCoords(_,B,D)}($,B,O,M,j),M.state.camera.projectToScreen(j,T),(0,A.vW)(T[0],T[1]))}function tt($,B,O,M,D,_,m){if("absolute-height"===M.mode)return Z($,O,M,D,_),void Z(B,O,M,D,m);const g=O.toXYZ($),x=O.toXYZ(B),k=(0,z.zx)(D,g,O.spatialReference,M),it=(0,z.zx)(D,x,O.spatialReference,M),nt=(null==k?it:null==it?k:Math.min(k,it))||0;g[2]=nt,x[2]=nt,D.renderCoordsHelper.toRenderCoords(g,O.spatialReference,_),D.renderCoordsHelper.toRenderCoords(x,O.spatialReference,m)}const C=new K.Z,j=(0,F.c)(),L=(0,A.J$)(),S=(0,A.J$)(),T=(0,A.s1)()}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/505.1104291355551810.js b/apps/n/porrtal-io-app/public/angular/505.1104291355551810.js deleted file mode 100644 index 98a67e25..00000000 --- a/apps/n/porrtal-io-app/public/angular/505.1104291355551810.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[505],{40505:(o,s,_)=>{_.r(s),_.d(s,{CompositingPassParameters:()=>a.C,build:()=>a.b}),_(98071),_(65787),_(17625),_(22355),_(35387);var a=_(70264)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5068.89fa6c1eb4e12520.js b/apps/n/porrtal-io-app/public/angular/5068.89fa6c1eb4e12520.js deleted file mode 100644 index 197fd6ac..00000000 --- a/apps/n/porrtal-io-app/public/angular/5068.89fa6c1eb4e12520.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5068],{5068:(a,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(17625),_(22355),_(35387),_(16396),_(67093);var E=_(39274)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/511.f236fed7bbf85b27.js b/apps/n/porrtal-io-app/public/angular/511.f236fed7bbf85b27.js new file mode 100644 index 00000000..fe518535 --- /dev/null +++ b/apps/n/porrtal-io-app/public/angular/511.f236fed7bbf85b27.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[511],{7511:(y,s,t)=>{t.r(s),t.d(s,{QuickStartComponent:()=>c});var i=t(6895),m=t(3286),e=t(6485),l=t(9266),o=t(4650);const d=[{key:"DocsNav",launchAtStartup:!0,displayText:"Docs Nav",paneType:"nav",displayIcon:"map",componentName:"DocsNavComponent",componentModule:()=>Promise.all([t.e(439),t.e(1)]).then(t.bind(t,7001))},{displayText:"Create Account",displayIcon:"account_box",componentName:"AccountCreateComponent",componentModule:()=>Promise.all([t.e(439),t.e(1)]).then(t.bind(t,7001))},{key:"Account {accountId}",displayText:"Account {accountId}",displayIcon:"account_box",componentName:"AccountDetailComponent",entityType:"account",componentModule:()=>Promise.all([t.e(439),t.e(1)]).then(t.bind(t,7001))},{key:"Billing {accountId}",displayText:"Billing {accountId}",displayIcon:"account_box",componentName:"AccountBillingHistoryComponent",entityType:"account",componentModule:()=>Promise.all([t.e(439),t.e(1)]).then(t.bind(t,7001))},{key:"AccountNav",launchAtStartup:!0,displayText:"Account Navigation",paneType:"nav",displayIcon:"account_box",componentName:"AccountNavComponent",componentModule:()=>Promise.all([t.e(439),t.e(1)]).then(t.bind(t,7001))},{key:"AccountSearch",launchAtStartup:!0,displayText:"Account",paneType:"search",displayIcon:"account_box",componentName:"AccountSearchComponent",componentModule:()=>Promise.all([t.e(439),t.e(1)]).then(t.bind(t,7001))}];class c{constructor(a){this.shellStateService=a,this.reactUiLibrary=(0,l.WG)(),this.angularUiLibrary=(0,l.Cn)(),this.bannerData={...l.s6,displayText:`quick-start ${this.angularUiLibrary?"(":""}${this.angularUiLibrary}${this.angularUiLibrary?")":""}`},d.forEach(n=>a.dispatch({type:"registerView",view:n})),a.dispatch({type:"launchStartupViews"})}static#t=this.\u0275fac=function(n){return new(n||c)(o.Y36(m.vv))};static#n=this.\u0275cmp=o.Xpm({type:c,selectors:[["porrtal-io-quick-start"]],standalone:!0,features:[o.jDz],decls:1,vars:1,consts:[[3,"bannerData"]],template:function(n,p){1&n&&o._UZ(0,"porrtal-shell-layout",0),2&n&&o.Q6J("bannerData",p.bannerData)},dependencies:[i.ez,e.Dg],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5147.8e3ae6656b700300.js b/apps/n/porrtal-io-app/public/angular/5147.8e3ae6656b700300.js deleted file mode 100644 index c76ba4b4..00000000 --- a/apps/n/porrtal-io-app/public/angular/5147.8e3ae6656b700300.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5147],{95147:(a,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(28347),_(43703),_(67831),_(99770),_(84161),_(28093),_(98071),_(62952),_(47923),_(72968),_(39832),_(19278),_(95285),_(97139),_(69960),_(65787),_(17625),_(63123),_(22355),_(35387),_(53319);var E=_(19263)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5171.b27d86c28a2c371f.js b/apps/n/porrtal-io-app/public/angular/5171.b27d86c28a2c371f.js deleted file mode 100644 index e9d20e07..00000000 --- a/apps/n/porrtal-io-app/public/angular/5171.b27d86c28a2c371f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5171],{90512:(ee,$,c)=>{c.d($,{Z:()=>z});var p=c(15861);class z{constructor(){this.declaredRootClass="esri.arcade.featureSetCollection",this._layerById={},this._layerByName={}}add(x,O,N){this._layerById[O]=N,this._layerByName[x]=N}featureSetByName(x,O=!0,N=["*"]){var M=this;return(0,p.Z)(function*(){return void 0===M._layerByName[x]?null:M._layerByName[x]})()}featureSetById(x,O=!0,N=["*"]){var M=this;return(0,p.Z)(function*(){return void 0===M._layerById[x]?null:M._layerById[x]})()}castToText(x=!1){return"object, FeatureSetCollection"}}},85171:(ee,$,c)=>{c.r($),c.d($,{constructAssociationMetaDataFeatureSetFromUrl:()=>Ze,constructFeatureSet:()=>ne,constructFeatureSetFromPortalItem:()=>Ke,constructFeatureSetFromRelationship:()=>je,constructFeatureSetFromUrl:()=>oe,convertToFeatureSet:()=>Ge,createFeatureSetCollectionFromMap:()=>Me,createFeatureSetCollectionFromService:()=>ke,getPortal:()=>Ue,initialiseMetaDataCache:()=>Ae,lookupUser:()=>We});var p=c(15861),z=c(24263),V=c(84792),x=c(90512),O=c(53997),N=c(88879),M=c(47562),F=c(52724),I=c(95896),T=c(49086),P=c(91510),m=c(57366),d=c(77132),C=c(83947),u=c(45333),_=c(47982),b=c(10410);class h{constructor(){this.field="",this.tofieldname="",this.typeofstat="MIN",this.workingexpr=null}clone(){const e=new h;return e.field=this.field,e.tofieldname=this.tofieldname,e.typeofstat=this.typeofstat,e.workingexpr=this.workingexpr,e}static parseStatField(e,t,n){const r=new h;r.field=e;const a=b.WhereClause.create(t,n),s=function v(w){if("function"===w.parseTree.type){if(0===w.parseTree.args.value.length)return{name:w.parseTree.name,expr:null};if(w.parseTree.args.value.length>1)throw new _.eS(_.f.MissingStatisticParameters);const e=b.WhereClause.create((0,C.XF)(w.parseTree.args.value[0],d.Bj.Standardised,w.parameters),w.fieldsIndex);return{name:w.parseTree.name,expr:e}}return null}(a);if(null===s)throw new _.eS(_.f.UnsupportedSqlFunction,{function:""});const l=s.name.toUpperCase().trim();if("MIN"===l){if(r.typeofstat="MIN",r.workingexpr=s.expr,null===a)throw new _.eS(_.f.InvalidFunctionParameters,{function:"min"})}else if("MAX"===l){if(r.typeofstat="MAX",r.workingexpr=s.expr,null===a)throw new _.eS(_.f.InvalidFunctionParameters,{function:"max"})}else if("COUNT"===l)r.typeofstat="COUNT",r.workingexpr=s.expr;else if("STDEV"===l){if(r.typeofstat="STDDEV",r.workingexpr=s.expr,null===a)throw new _.eS(_.f.InvalidFunctionParameters,{function:"stdev"})}else if("SUM"===l){if(r.typeofstat="SUM",r.workingexpr=s.expr,null===a)throw new _.eS(_.f.InvalidFunctionParameters,{function:"sum"})}else if("MEAN"===l){if(r.typeofstat="AVG",r.workingexpr=s.expr,null===a)throw new _.eS(_.f.InvalidFunctionParameters,{function:l})}else if("AVG"===l){if(r.typeofstat="AVG",r.workingexpr=s.expr,null===a)throw new _.eS(_.f.InvalidFunctionParameters,{function:"avg"})}else{if("VAR"!==l)throw new _.eS(_.f.UnsupportedSqlFunction,{function:l});if(r.typeofstat="VAR",r.workingexpr=s.expr,null===a)throw new _.eS(_.f.InvalidFunctionParameters,{function:"var"})}return r}toStatisticsName(){switch(this.typeofstat.toUpperCase()){case"MIN":return"min";case"MAX":return"max";case"SUM":return"sum";case"COUNT":default:return"count";case"VAR":return"var";case"STDDEV":return"stddev";case"AVG":return"avg"}}}var o=c(50011),g=c(65234),D=c(36255),E=c(60466);function S(w){if(!w)return"COUNT";switch(w.toLowerCase()){case"max":return"MAX";case"var":case"variance":return"VAR";case"avg":case"average":case"mean":return"AVG";case"min":return"MIN";case"sum":return"SUM";case"stdev":case"stddev":return"STDDEV";case"count":return"COUNT"}return"COUNT"}class W extends T.Z{constructor(e){super(e),this._decodedStatsfield=[],this._decodedGroupbyfield=[],this._candosimplegroupby=!0,this.phsyicalgroupbyfields=[],this.objectIdField="ROW__ID",this._internalObjectIdField="ROW__ID",this._adaptedFields=[],this.declaredClass="esri.arcade.featureset.actions.Aggregate",this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}_getSet(e){var t=this;return(0,p.Z)(function*(){if(null===t._wset){const n=yield t._getFilteredSet("",null,null,null,e);return t._wset=n,t._wset}return t._wset})()}_isInFeatureSet(){return d.dj.InFeatureSet}_nextUniqueName(e){for(;1===e["T"+this._uniqueIds.toString()];)this._uniqueIds++;const t="T"+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){const e={};let t=!1,n=1;const r=this._parent?this._parent.getFieldsIndex():new E.Z([]);for(this.objectIdField="ROW__ID",this.globalIdField="";!1===t;){let s=!1;for(let l=0;l0)for(const s of this._parent.fields)this._adaptedFields.push(new F.$X(s));for(let s=0;s0&&(f=new F.Xx({parentfeatureset:s._parent,adaptedFields:s._adaptedFields,extraFilter:null})),!0===i.nowhereclause)l=new P.Z(["GETPAGES"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:s._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:"manual",iterator:null,set:[],subfeatureset:new I.Z({parentfeatureset:f,orderbyclause:new m.Z(s.phsyicalgroupbyfields.join(",")+","+s._parent.objectIdField+" ASC")})}});else{let y=f;if(null!==n){let R=null;n&&(R=s._reformulateWhereClauseWithoutGroupByFields(n)),y=new O.Z({parentfeatureset:y,whereclause:R})}l=new P.Z(["GETPAGES"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:s._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:"manual",iterator:null,set:[],subfeatureset:new I.Z({parentfeatureset:y,orderbyclause:new m.Z(s.phsyicalgroupbyfields.join(",")+","+s._parent.objectIdField+" ASC")})}})}return l})()}_reformulateWhereClauseWithoutStatsFields(e){for(const t of this._decodedStatsfield)e=(0,C.bB)(e,t.tofieldname,(0,C.zR)(t.workingexpr,d.Bj.Standardised),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(const t of this._decodedGroupbyfield)t.tofieldname!==t.name&&(e=(0,C.bB)(e,t.tofieldname,(0,C.zR)(t.expression,d.Bj.Standardised),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){const t=[];for(const n of this._decodedGroupbyfield)n.tofieldname!==n.name&&t.push({field:n.tofieldname,newfield:n.name});return t.length>0?e.replaceFields(t):e}_clonePageDefinition(e){return null===e?null:!0===e.aggregatefeaturesetpagedefinition?{aggregatefeaturesetpagedefinition:!0,resultRecordCount:e.resultRecordCount,resultOffset:e.resultOffset,internal:e.internal}:this._parent._clonePageDefinition(e)}_refineSetBlock(e,t,n){var r=this;return(0,p.Z)(function*(){return!0===r._checkIfNeedToExpandCandidatePage(e,r._maxQuery)?(yield r._expandPagedSet(e,r._maxQuery,0,0,n),r._refineSetBlock(e,t,n)):(r._checkCancelled(n),r._refineKnowns(e,t),e)})()}_expandPagedSet(e,t,n,r,a){return this._expandPagedSetFeatureSet(e,t,n,r,a)}_getPhysicalPage(e,t,n){var r=this;return(0,p.Z)(function*(){if(!0===e.pagesDefinition.aggregatefeaturesetpagedefinition)return r._sequentialGetPhysicalItem(e,e.pagesDefinition.resultRecordCount,n,[]);const a=yield r._getAgregagtePhysicalPage(e,t,n);for(const s of a){const l={geometry:s.geometry,attributes:{}};for(const i of r._decodedGroupbyfield)l.attributes[i.tofieldname]=s.attributes[i.name];for(const i of r._decodedStatsfield)l.attributes[i.tofieldname]=s.attributes[i.field];r._featureCache[l.attributes[r.objectIdField]]=new N.Z(l)}return a.length})()}_sequentialGetPhysicalItem(e,t,n,r){return new Promise((a,s)=>{null===e.pagesDefinition.internal.iterator&&(e.pagesDefinition.internal.iterator=e.pagesDefinition.internal.subfeatureset.iterator(n)),!0===e.pagesDefinition.internal.fullyResolved||0===t?a(r.length):this._nextAggregateItem(e,t,n,r,l=>{a(null===l?r.length:this._sequentialGetPhysicalItem(e,t-=1,n,r))},s)})}_nextAggregateItem(e,t,n,r,a,s){try{(0,M.W)(e.pagesDefinition.internal.iterator.next()).then(l=>{if(null===l)if(null!==e.pagesDefinition.internal.workingItem){const i=this._calculateAndAppendAggregateItem(e.pagesDefinition.internal.workingItem);r.push(i),e.pagesDefinition.internal.workingItem=null,e.pagesDefinition.internal.set.push(i.attributes[this.objectIdField]),e.pagesDefinition.internal.fullyResolved=!0,a(null)}else e.pagesDefinition.internal.fullyResolved=!0,a(null);else{const i=this._generateAggregateHash(l);if(null===e.pagesDefinition.internal.workingItem)e.pagesDefinition.internal.workingItem={features:[l],id:i};else{if(i!==e.pagesDefinition.internal.workingItem.id){const f=this._calculateAndAppendAggregateItem(e.pagesDefinition.internal.workingItem);return r.push(f),e.pagesDefinition.internal.workingItem=null,e.pagesDefinition.internal.set.push(f.attributes[this.objectIdField]),t-=1,e.pagesDefinition.internal.workingItem={features:[l],id:i},void a(f)}e.pagesDefinition.internal.workingItem.features.push(l)}this._nextAggregateItem(e,t,n,r,a,s)}},s)}catch(l){s(l)}}_calculateFieldStat(e,t,n){const r=[];for(let a=0;a=10.61&&(this._databaseType=d.Bj.Standardised)):null!=e&&(e>=10.5&&(this._databaseType=d.Bj.StandardisedNoInterval,this._requestStandardised=!0),e>=10.61&&(this._databaseType=d.Bj.Standardised))}this.objectIdField=this._layer.objectIdField;for(const e of this.fields)"global-id"===e.type&&(this.globalIdField=e.name);this.hasM=this._layer.supportsM,this.hasZ=this._layer.supportsZ,this.typeIdField=this._layer.typeIdField??"",this.types=this._layer.types}_isInFeatureSet(){return d.dj.InFeatureSet}_refineSetBlock(e){return(0,p.Z)(function*(){return e})()}_candidateIdTransform(e){return e}_getSet(e){var t=this;return(0,p.Z)(function*(){if(null===t._wset){yield t._ensureLoaded();const n=yield t._getFilteredSet("",null,null,null,e);return t._wset=n,n}return t._wset})()}_runDatabaseProbe(e){var t=this;return(0,p.Z)(function*(){yield t._ensureLoaded();const n=new te.Z;n.where=e.replace("OBJECTID",t._layer.objectIdField);try{return yield t._layer.queryObjectIds(n),!0}catch{return!1}})()}_canUsePagination(){return!(!this._layer.capabilities||!this._layer.capabilities.query||!0!==this._layer.capabilities.query.supportsPagination)}_cacheableFeatureSetSourceKey(){return this._layer.url}pbfSupportedForQuery(e){const t=this._layer?.capabilities?.query;return!e.outStatistics&&!0===t?.supportsFormatPBF&&!0===t?.supportsQuantizationEditMode}queryPBF(e){var t=this;return(0,p.Z)(function*(){e.quantizationParameters={mode:"edit"};const n=yield(0,we.executeQueryPBF)(t._layer.parsedUrl,e,new Re.J({}));return Ce.default.fromJSON((0,G.cn)(n.data)).unquantize()})()}get gdbVersion(){return this._layer&&this._layer.capabilities&&this._layer.capabilities.data&&this._layer.capabilities.data.isVersioned?this._layer.gdbVersion?this._layer.gdbVersion:"SDE.DEFAULT":""}nativeCapabilities(){return{title:this._layer.title??"",source:this,canQueryRelated:!0,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:this._requestStandardised}}executeQuery(e,t){const n="execute"===t?Fe.e:"executeForCount"===t?De.P:be.G,r="execute"===t&&this.pbfSupportedForQuery(e);let a=null;if(this.recentlyUsedQueries){const s=this.convertQueryToLruCacheKey(e);a=this.recentlyUsedQueries.getFromCache(s),null===a&&(a=!0!==r?n(this._layer.parsedUrl.path,e):this.queryPBF(e),this.recentlyUsedQueries.addToCache(s,a),a=a.catch(l=>{throw this.recentlyUsedQueries?.removeFromCache(s),l}))}return this.featureSetQueryInterceptor&&this.featureSetQueryInterceptor.preLayerQueryCallback({layer:this._layer,query:e,method:t}),null===a&&(a=!0!==r?n(this._layer.parsedUrl.path,e):this.queryPBF(e)),a}_getFilteredSet(e,t,n,r,a){var s=this;return(0,p.Z)(function*(){const l=yield s.databaseType();if(s.isTable()&&t&&null!==e&&""!==e)return new P.Z([],[],!0,null);if(s._canUsePagination())return s._getFilteredSetUsingPaging(e,t,n,r,a);let i="",f=!1;null!==r&&s._layer.capabilities&&s._layer.capabilities.query&&!0===s._layer.capabilities.query.supportsOrderBy&&(i=r.constructClause(),f=!0);const y=new te.Z;y.where=null===n?null===t?"1=1":"":(0,C.zR)(n,l),s._requestStandardised&&(y.sqlFormat="standard"),y.spatialRelationship=s._makeRelationshipEnum(e),y.outSpatialReference=s.spatialReference,y.orderByFields=""!==i?i.split(","):null,y.geometry=null===t?null:t,y.relationParameter=s._makeRelationshipParam(e);let R=yield s.executeQuery(y,"executeForIds");return null===R&&(R=[]),s._checkCancelled(a),new P.Z([],R,f,null)})()}_expandPagedSet(e,t,n,r,a){return this._expandPagedSetFeatureSet(e,t,n,r,a)}_getFilteredSetUsingPaging(e,t,n,r,a){var s=this;return(0,p.Z)(function*(){let l="",i=!1;null!==r&&s._layer.capabilities&&s._layer.capabilities.query&&!0===s._layer.capabilities.query.supportsOrderBy&&(l=r.constructClause(),i=!0);const f=yield s.databaseType();let y=null===n?null===t?"1=1":"":(0,C.zR)(n,f);s._layer.definitionExpression&&s._useDefinitionExpression&&(y=""!==y?"(("+s._layer.definitionExpression+") AND ("+y+"))":s._layer.definitionExpression);let R=s._maxQueryRate();const j=s._layer.capabilities?.query.maxRecordCount;void 0!==j&&j=a._maxProcessingRate()-1))break}if(l>=n&&0===s.length)break}if(0===s.length)return"success";const i=new te.Z;a._requestStandardised&&(i.sqlFormat="standard"),i.objectIds=s,i.outFields=null!==a._overrideFields?a._overrideFields:a._fieldsIncludingObjectId(a._layer.outFields?a._layer.outFields:["*"]),i.returnGeometry=!0,!0===a._removeGeometry&&(i.returnGeometry=!1),i.outSpatialReference=a.spatialReference;const f=yield a.executeQuery(i,"execute");if(a._checkCancelled(r),void 0!==f.error)throw new _.EN(_.H9.RequestFailed,{reason:f.error});const y=a._layer.objectIdField;for(let R=0;R=l)break}return 0===H.features.length?i:H.features.length===y._layer.capabilities?.query.maxRecordCount&&i.length"+e.pagesDefinition.internal.lastMaxId.toString()+")":e.pagesDefinition.generatedOid+">"+e.pagesDefinition.internal.lastMaxId.toString());const s=e.pagesDefinition.internal.lastRetrieved,l=s,i=e.pagesDefinition.internal.lastPage,f=new te.Z;if(r._requestStandardised&&(f.sqlFormat="standard"),f.where=a,f.spatialRelationship=e.pagesDefinition.spatialRel,f.relationParameter=e.pagesDefinition.relationParam,f.outFields=e.pagesDefinition.outFields,f.outStatistics=e.pagesDefinition.outStatistics,f.geometry=e.pagesDefinition.geometry,f.groupByFieldsForStatistics=e.pagesDefinition.groupByFieldsForStatistics,f.num=e.pagesDefinition.resultRecordCount,f.start=e.pagesDefinition.internal.lastPage,f.returnGeometry=e.pagesDefinition.returnGeometry,f.orderByFields=""!==e.pagesDefinition.orderByFields?e.pagesDefinition.orderByFields.split(","):null,r.isTable()&&f.geometry&&f.spatialRelationship)return[];const y=yield r.executeQuery(f,"execute");if(r._checkCancelled(n),!y.hasOwnProperty("features"))throw new _.EN(_.H9.InvalidStatResponse);const R=[];if(e.pagesDefinition.internal.lastPage!==i)return[];for(let j=0;j0||n&&n>0)&&(i.size=[t&&t>0?t:0,n&&n>0?n:t+1]),r&&r.length>0&&(i.attachmentTypes=r),s.featureSetQueryInterceptor&&s.featureSetQueryInterceptor.preLayerQueryCallback({layer:s._layer,query:i,method:"attachments"});const f=yield s._layer.queryAttachments(i),y=[];return f&&f[e]&&f[e].forEach(R=>{const j=s._layer.parsedUrl.path+"/"+e.toString()+"/attachments/"+R.id.toString();let k=null;a&&R.exifInfo&&(k=Ee.Z.convertJsonToArcade(R.exifInfo,!0)),y.push(new B.Z(R.id,R.name,R.contentType,R.size,j,k))}),y}return[]})()}queryRelatedFeatures(e){var t=this;return(0,p.Z)(function*(){const n={f:"json",relationshipId:e.relationshipId.toString(),definitionExpression:e.where,outFields:e.outFields?.join(","),returnGeometry:e.returnGeometry.toString()};null!=e.resultOffset&&(n.resultOffset=e.resultOffset.toString()),null!=e.resultRecordCount&&(n.resultRecordCount=e.resultRecordCount.toString()),e.orderByFields&&(n.orderByFields=e.orderByFields.join(",")),e.objectIds&&e.objectIds.length>0&&(n.objectIds=e.objectIds.join(",")),e.outSpatialReference&&(n.outSR=JSON.stringify(e.outSpatialReference.toJSON())),t.featureSetQueryInterceptor&&t.featureSetQueryInterceptor.preRequestCallback({layer:t._layer,queryPayload:n,method:"relatedrecords",url:t._layer.parsedUrl.path+"/queryRelatedRecords"});const r=yield(0,V.default)(t._layer.parsedUrl.path+"/queryRelatedRecords",{responseType:"json",query:n});if(r.data){const a={},s=r.data;if(s&&s.relatedRecordGroups){const l=s.spatialReference;for(const i of s.relatedRecordGroups){const f=i.objectId,y=[];for(const R of i.relatedRecords){R.geometry&&(R.geometry.spatialReference=l);const j=new N.Z({geometry:R.geometry?(0,A.im)(R.geometry):null,attributes:R.attributes});y.push(j)}a[f]={features:y,exceededTransferLimit:!0===s.exceededTransferLimit}}}return a}throw new _.EN(_.H9.InvalidRequest)})()}getFeatureByObjectId(e,t){var n=this;return(0,p.Z)(function*(){const r=new te.Z;r.outFields=t,r.returnGeometry=!1,r.outSpatialReference=n.spatialReference,r.where=n.objectIdField+"="+e.toString(),n.featureSetQueryInterceptor&&n.featureSetQueryInterceptor.preLayerQueryCallback({layer:n._layer,query:r,method:"execute"});const a=yield(0,Fe.e)(n._layer.parsedUrl.path,r);return 1===a.features.length?a.features[0]:null})()}getIdentityUser(){var e=this;return(0,p.Z)(function*(){yield e.load();const t=z.id?.findCredential(e._layer.url);return t?t.userId:null})()}getOwningSystemUrl(){var e=this;return(0,p.Z)(function*(){yield e.load();const t=z.id?.findServerInfo(e._layer.url);if(t)return t.owningSystemUrl;let n=e._layer.url;const r=n.toLowerCase().indexOf("/rest/services");if(n=r>-1?n.substring(0,r):n,n){n+="/rest/info";try{const a=yield(0,V.default)(n,{query:{f:"json"}});let s="";return a.data&&a.data.owningSystemUrl&&(s=a.data.owningSystemUrl),s}catch{return""}}return""})()}getDataSourceFeatureSet(){const e=new ie({layer:this._layer,spatialReference:this.spatialReference??void 0,outFields:this._overrideFields??void 0,includeGeometry:!this._removeGeometry,lrucache:this.recentlyUsedQueries??void 0,interceptor:this.featureSetQueryInterceptor??void 0});return e._useDefinitionExpression=!1,e}}var Te=c(16776);class xe extends T.Z{constructor(e){super(e),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerRelated",this._findObjectId=-1,this._requestStandardised=!1,this._removeGeometry=!1,this._overrideFields=null,this.featureObjectId=null,e.spatialReference&&(this.spatialReference=e.spatialReference),this._transparent=!0,this._maxProcessing=1e3,this._layer=e.layer,this._wset=null,this._findObjectId=e.objectId,this.featureObjectId=e.objectId,this.relationship=e.relationship,this._relatedLayer=e.relatedLayer,void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry)}_maxQueryRate(){return d.tI}end(){return this._layer}optimisePagingFeatureQueries(){}loadImpl(){var e=this;return(0,p.Z)(function*(){return yield Promise.all([e._layer.load(),e._relatedLayer?.load()]),e._initialiseFeatureSet(),e})()}nativeCapabilities(){return this._relatedLayer.nativeCapabilities()}_initialiseFeatureSet(){if(null==this.spatialReference&&(this.spatialReference=this._layer.spatialReference),this.geometryType=this._relatedLayer.geometryType,this.fields=this._relatedLayer.fields.slice(0),null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const t=[],n=[];for(const r of this.fields)if("oid"===r.type)t.push(r),n.push(r.name);else for(const a of this._overrideFields)if(a.toLowerCase()===r.name.toLowerCase()){t.push(r),n.push(r.name);break}this.fields=t,this._overrideFields=n}const e=this._layer.nativeCapabilities();e&&(this._databaseType=e.databaseType,this._requestStandardised=e.requestStandardised),this.objectIdField=this._relatedLayer.objectIdField,this.globalIdField=this._relatedLayer.globalIdField,this.hasM=this._relatedLayer.supportsM,this.hasZ=this._relatedLayer.supportsZ,this.typeIdField=this._relatedLayer.typeIdField,this.types=this._relatedLayer.types}databaseType(){var e=this;return(0,p.Z)(function*(){return yield e._relatedLayer.databaseType(),e._databaseType=e._relatedLayer._databaseType,e._databaseType})()}isTable(){return this._relatedLayer.isTable()}_isInFeatureSet(){return d.dj.InFeatureSet}_candidateIdTransform(e){return e}_getSet(e){var t=this;return(0,p.Z)(function*(){if(null===t._wset){yield t._ensureLoaded();const n=yield t._getFilteredSet("",null,null,null,e);return t._wset=n,n}return t._wset})()}_changeFeature(e){const t={};for(const n of this.fields)t[n.name]=e.attributes[n.name];return new N.Z({geometry:!0===this._removeGeometry?null:e.geometry,attributes:t})}_getFilteredSet(e,t,n,r,a){var s=this;return(0,p.Z)(function*(){if(yield s.databaseType(),s.isTable()&&t&&null!==e&&""!==e)return new P.Z([],[],!0,null);const l=s._layer.nativeCapabilities();if(!1===l.canQueryRelated)return new P.Z([],[],!0,null);if(l.capabilities?.queryRelated&&l.capabilities.queryRelated.supportsPagination)return s._getFilteredSetUsingPaging(e,t,n,r,a);let i="",f=!1;null!==r&&l.capabilities&&l.capabilities.queryRelated&&!0===l.capabilities.queryRelated.supportsOrderBy&&(i=r.constructClause(),f=!0);const y=new Se.Z;y.objectIds=[s._findObjectId];const R=null!==s._overrideFields?s._overrideFields:s._fieldsIncludingObjectId(s._relatedLayer.fields?s._relatedLayer.fields.map(Q=>Q.name):["*"]);y.outFields=R,y.relationshipId=s.relationship.id,y.where="1=1";let j=!0;!0===s._removeGeometry&&(j=!1),y.returnGeometry=j,s._requestStandardised&&(y.sqlFormat="standard"),y.outSpatialReference=s.spatialReference,y.orderByFields=""!==i?i.split(","):null;const k=yield l.source.queryRelatedFeatures(y);s._checkCancelled(a);const K=k[s._findObjectId]?k[s._findObjectId].features:[],J=[];for(let Q=0;QQ.name):["*"]);return J=new P.Z(k||K?["GETPAGES"]:[],k||K?[]:["GETPAGES"],i,{outFields:X.join(","),resultRecordCount:R,resultOffset:0,objectIds:[s._findObjectId],where:"1=1",orderByFields:l,returnGeometry:H,returnIdsOnly:"false",internal:{set:[],lastRetrieved:0,lastPage:0,fullyResolved:!1}}),yield s._expandPagedSet(J,R,0,0,a),J})()}_expandPagedSet(e,t,n,r,a){return this._expandPagedSetFeatureSet(e,t,n,r,a)}_clonePageDefinition(e){return null===e?null:!0!==e.groupbypage?{groupbypage:!1,outFields:e.outFields,resultRecordCount:e.resultRecordCount,resultOffset:e.resultOffset,where:e.where,objectIds:e.objectIds,orderByFields:e.orderByFields,returnGeometry:e.returnGeometry,returnIdsOnly:e.returnIdsOnly,internal:e.internal}:{groupbypage:!0,outFields:e.outFields,resultRecordCount:e.resultRecordCount,useOIDpagination:e.useOIDpagination,generatedOid:e.generatedOid,groupByFieldsForStatistics:e.groupByFieldsForStatistics,resultOffset:e.resultOffset,outStatistics:e.outStatistics,geometry:e.geometry,where:e.where,objectIds:e.objectIds,orderByFields:e.orderByFields,returnGeometry:e.returnGeometry,returnIdsOnly:e.returnIdsOnly,internal:e.internal}}_getPhysicalPage(e,t,n){var r=this;return(0,p.Z)(function*(){const a=e.pagesDefinition.internal.lastRetrieved,s=a,l=e.pagesDefinition.internal.lastPage,i=r._layer.nativeCapabilities(),f=new Se.Z;!0===r._requestStandardised&&(f.sqlFormat="standard"),f.relationshipId=r.relationship.id,f.objectIds=e.pagesDefinition.objectIds,f.resultOffset=e.pagesDefinition.internal.lastPage,f.resultRecordCount=e.pagesDefinition.resultRecordCount,f.outFields=e.pagesDefinition.outFields.split(","),f.where=e.pagesDefinition.where,f.orderByFields=""!==e.pagesDefinition.orderByFields?e.pagesDefinition.orderByFields.split(","):null,f.returnGeometry=e.pagesDefinition.returnGeometry,f.outSpatialReference=r.spatialReference;const y=yield i.source.queryRelatedFeatures(f);if(r._checkCancelled(n),e.pagesDefinition.internal.lastPage!==l)return 0;const R=y[r._findObjectId]?y[r._findObjectId].features:[];for(let k=0;kn)))&&!(i>=n&&0===s.length);f++);if(0===s.length)return"success";throw new _.EN(_.H9.MissingFeatures)})()}_refineSetBlock(e,t,n){return(0,p.Z)(function*(){return e})()}_stat(e,t,n,r,a,s,l){return(0,p.Z)(function*(){return{calculated:!1}})()}get gdbVersion(){return this._relatedLayer.gdbVersion}_canDoAggregates(e,t,n,r,a){return(0,p.Z)(function*(){return!1})()}relationshipMetaData(){return this._relatedLayer.relationshipMetaData()}serviceUrl(){return this._relatedLayer.serviceUrl()}queryAttachments(e,t,n,r,a){return this._relatedLayer.queryAttachments(e,t,n,r,a)}getFeatureByObjectId(e,t){return this._relatedLayer.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._relatedLayer.getOwningSystemUrl()}getIdentityUser(){return this._relatedLayer.getIdentityUser()}getDataSourceFeatureSet(){return this._relatedLayer}}var q=c(53791),Oe=c(84687),Pe=c(55463);function Ae(){null===q.Z.applicationCache&&(q.Z.applicationCache=new q.Z)}function ae(w,e){return le.apply(this,arguments)}function le(){return(le=(0,p.Z)(function*(w,e){if(q.Z.applicationCache){const t=q.Z.applicationCache.getLayerInfo(w);if(t){const a=yield t;return new L.default({url:w,outFields:e,sourceJSON:a})}const n=new L.default({url:w,outFields:e}),r=(0,p.Z)(function*(){return yield n.load(),n.sourceJSON})();if(q.Z.applicationCache){q.Z.applicationCache.setLayerInfo(w,r);try{return yield r,n}catch(a){throw q.Z.applicationCache.clearLayerInfo(w),a}}return yield r,n}return new L.default({url:w,outFields:e})})).apply(this,arguments)}function oe(w,e,t,n,r){return ue.apply(this,arguments)}function ue(){return(ue=(0,p.Z)(function*(w,e,t,n,r,a=null){return ne(yield ae(w,["*"]),e,t,n,r,a)})).apply(this,arguments)}function ne(w,e=null,t=null,n=!0,r=null,a=null){const s={layer:w,spatialReference:e,outFields:t,includeGeometry:n,lrucache:r,interceptor:a};return!0===w._hasMemorySource()?new Te.Z(s):new ie(s)}function Ne(w){return de.apply(this,arguments)}function de(){return(de=(0,p.Z)(function*(w){if(null!==q.Z.applicationCache){const t=q.Z.applicationCache.getLayerInfo(w);if(null!==t)return t}const e=(0,p.Z)(function*(){const t=yield(0,V.default)(w,{responseType:"json",query:{f:"json"}});return t.data?t.data:null})();if(null!==q.Z.applicationCache){q.Z.applicationCache.setLayerInfo(w,e);try{return yield e}catch(t){throw q.Z.applicationCache.clearLayerInfo(w),t}}return e})).apply(this,arguments)}function Le(w,e){return ce.apply(this,arguments)}function ce(){return(ce=(0,p.Z)(function*(w,e){const t="QUERYDATAELEMTS:"+e.toString()+":"+w;if(null!==q.Z.applicationCache){const r=q.Z.applicationCache.getLayerInfo(t);if(null!==r)return r}const n=(0,p.Z)(function*(){const r=yield(0,V.default)(w+"/queryDataElements",{method:"post",responseType:"json",query:{layers:JSON.stringify([e.toString()]),f:"json"}});if(r.data){const a=r.data;if(a.layerDataElements&&a.layerDataElements[0])return a.layerDataElements[0]}throw new _.EN(_.H9.DataElementsNotFound)})();if(null!==q.Z.applicationCache){q.Z.applicationCache.setLayerInfo(t,n);try{return yield n}catch(r){throw q.Z.applicationCache.clearLayerInfo(t),r}}return n})).apply(this,arguments)}function ve(w){return he.apply(this,arguments)}function he(){return(he=(0,p.Z)(function*(w){if(null!==q.Z.applicationCache){const t=q.Z.applicationCache.getLayerInfo(w);if(null!==t)return t}const e=(0,p.Z)(function*(){const t=yield(0,V.default)(w,{responseType:"json",query:{f:"json"}});if(t.data){const n=t.data;return n.layers||(n.layers=[]),n.tables||(n.tables=[]),n}return{layers:[],tables:[]}})();if(null!==q.Z.applicationCache){q.Z.applicationCache.setLayerInfo(w,e);try{return yield e}catch(t){throw q.Z.applicationCache.clearLayerInfo(w),t}}return e})).apply(this,arguments)}function Ze(w,e){return fe.apply(this,arguments)}function fe(){return(fe=(0,p.Z)(function*(w,e){const t={metadata:null,networkId:-1,unVersion:3,terminals:[],queryelem:null,layerNameLkp:{},lkp:null},n=yield ve(w);if(t.metadata=n,n.controllerDatasetLayers&&null!=n.controllerDatasetLayers.utilityNetworkLayerId){if(n.layers)for(const s of n.layers)t.layerNameLkp[s.id]=s.name;if(n.tables)for(const s of n.tables)t.layerNameLkp[s.id]=s.name;const r=n.controllerDatasetLayers.utilityNetworkLayerId;t.networkId=r;const a=yield Le(w,r);if(a){t.queryelem=a,t.queryelem&&t.queryelem.dataElement&&void 0!==t.queryelem.dataElement.schemaGeneration&&(t.unVersion=t.queryelem.dataElement.schemaGeneration),t.lkp={},t.queryelem.dataElement.domainNetworks||(t.queryelem.dataElement.domainNetworks=[]);for(const l of t.queryelem.dataElement.domainNetworks){for(const i of l.edgeSources?l.edgeSources:[]){const f={layerId:i.layerId,sourceId:i.sourceId,className:t.layerNameLkp[i.layerId]?t.layerNameLkp[i.layerId]:null};f.className&&(t.lkp[f.className]=f)}for(const i of l.junctionSources?l.junctionSources:[]){const f={layerId:i.layerId,sourceId:i.sourceId,className:t.layerNameLkp[i.layerId]?t.layerNameLkp[i.layerId]:null};f.className&&(t.lkp[f.className]=f)}}if(t.queryelem.dataElement.terminalConfigurations)for(const l of t.queryelem.dataElement.terminalConfigurations)for(const i of l.terminals)t.terminals.push({terminalId:i.terminalId,terminalName:i.terminalName});const s=yield Ne(w+"/"+r);if(s.systemLayers&&null!=s.systemLayers.associationsTableId){const l=[];t.unVersion>=4&&(l.push("STATUS"),l.push("PERCENTALONG"));let i=yield oe(w+"/"+s.systemLayers.associationsTableId.toString(),e,["OBJECTID","FROMNETWORKSOURCEID","TONETWORKSOURCEID","FROMGLOBALID","TOGLOBALID","TOTERMINALID","FROMTERMINALID","ASSOCIATIONTYPE","ISCONTENTVISIBLE","GLOBALID",...l],!1,null,null);return yield i.load(),t.unVersion>=4&&(i=i.filter(b.WhereClause.create("STATUS NOT IN (1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62,63)",i.getFieldsIndex())),yield i.load()),{lkp:t.lkp,associations:i,unVersion:t.unVersion,terminals:t.terminals}}return{associations:null,unVersion:t.unVersion,lkp:null,terminals:[]}}return{associations:null,unVersion:t.unVersion,lkp:null,terminals:[]}}return{associations:null,unVersion:t.unVersion,lkp:null,terminals:[]}})).apply(this,arguments)}function je(w,e,t){return _e.apply(this,arguments)}function _e(){return(_e=(0,p.Z)(function*(w,e,t,n=null,r=null,a=!0,s=null,l=null){let i=w.serviceUrl();if(!i)return null;i="/"===i.charAt(i.length-1)?i+e.relatedTableId.toString():i+"/"+e.relatedTableId.toString();const f=yield oe(i,n,r,a,s,l);return new xe({layer:w,relatedLayer:f,relationship:e,objectId:t,spatialReference:n,outFields:r,includeGeometry:a,lrucache:s,interceptor:l})})).apply(this,arguments)}O.Z.registerAction(),W.registerAction(),I.Z.registerAction(),U.Z.registerAction(),Z.Z.registerAction();class Be extends x.Z{constructor(e,t=null,n=null,r=null){super(),this._map=e,this._overridespref=t,this._lrucache=n,this._interceptor=r,this._instantLayers=[]}_makeAndAddFeatureSet(e,t=!0,n=null){const r=ne(e,this._overridespref,null===n?["*"]:n,t,this._lrucache,this._interceptor);return this._instantLayers.push({featureset:r,opitem:e,includeGeometry:t,outFields:JSON.stringify(n)}),r}featureSetByName(e,t=!0,n=null){var r=this;return(0,p.Z)(function*(){if(void 0!==r._map.loaded&&void 0!==r._map.load&&!1===r._map.loaded)return yield r._map.load(),r.featureSetByName(e,t,n);null===n&&(n=["*"]),n=(n=n.slice(0)).sort();const a=JSON.stringify(n);for(let l=0;ll instanceof L.default&&l.title===e);if(s)return r._makeAndAddFeatureSet(s,t,n);if(r._map.tables){const l=r._map.tables.find(i=>!!(i.title&&i.title===e||i.title&&i.title===e));if(l){if(l instanceof L.default)return r._makeAndAddFeatureSet(l,t,n);if(!l._materializedTable){const i=l.outFields?l:{...l,outFields:["*"]};l._materializedTable=new L.default(i)}return yield l._materializedTable.load(),r._makeAndAddFeatureSet(l._materializedTable,t,n)}}return null})()}featureSetById(e,t=!0,n=["*"]){var r=this;return(0,p.Z)(function*(){if(void 0!==r._map.loaded&&void 0!==r._map.load&&!1===r._map.loaded)return yield r._map.load(),r.featureSetById(e,t,n);null===n&&(n=["*"]),n=(n=n.slice(0)).sort();const a=JSON.stringify(n);for(let l=0;ll instanceof L.default&&l.id===e);if(s)return r._makeAndAddFeatureSet(s,t,n);if(r._map.tables){const l=r._map.tables.find(i=>i.id===e);if(l){if(l instanceof L.default)return r._makeAndAddFeatureSet(l,t,n);if(!l._materializedTable){const i={...l,outFields:["*"]};l._materializedTable=new L.default(i)}return yield l._materializedTable.load(),r._makeAndAddFeatureSet(l._materializedTable,t,n)}}return null})()}}class pe extends x.Z{constructor(e,t=null,n=null,r=null){super(),this._url=e,this._overridespref=t,this._lrucache=n,this._interceptor=r,this.metadata=null,this._instantLayers=[]}get url(){return this._url}_makeAndAddFeatureSet(e,t=!0,n=null){const r=ne(e,this._overridespref,null===n?["*"]:n,t,this._lrucache);return this._instantLayers.push({featureset:r,opitem:e,includeGeometry:t,outFields:JSON.stringify(n)}),r}_loadMetaData(){var e=this;return(0,p.Z)(function*(){const t=yield ve(e._url);return e.metadata=t,t})()}load(){return this._loadMetaData()}clone(){return new pe(this._url,this._overridespref,this._lrucache,this._interceptor)}featureSetByName(e,t=!0,n=null){var r=this;return(0,p.Z)(function*(){null===n&&(n=["*"]),n=(n=n.slice(0)).sort();const a=JSON.stringify(n);for(let i=0;i{c.d($,{$X:()=>d,QP:()=>C,TO:()=>u,Xx:()=>b,yN:()=>_});var p=c(15861),z=c(88879),V=c(27187),x=c(47982),O=c(49086),N=c(91510),M=c(77132),F=c(83947),I=c(62208),T=c(10410),P=c(65234);class m{constructor(h){this.field=h,this.sqlRewritable=!1}postInitialization(h,o){}}class d extends m{constructor(h){super(h),this.sqlRewritable=!0}extractValue(h){return h.attributes[this.field.name]}rewriteSql(h){return{rewritten:this.sqlRewritable,where:h}}}class C extends m{constructor(h,o,g){super((0,M.JW)(h)),this.originalField=h,this.sqlRewritable=!0,this.field.name=o,this.field.alias=g}rewriteSql(h,o){return{rewritten:this.sqlRewritable,where:(0,F.bB)(h,this.field.name,this.originalField.name,o.getFieldsIndex())}}extractValue(h){return h.attributes[this.originalField.name]}}let u=(()=>{class v extends m{constructor(o,g,D){super(o),this.codefield=g,this.lkp=D,this.reverseLkp={};for(const E in D)this.reverseLkp[D[E]]=E;this.sqlRewritable=!0}rewriteSql(o,g){const D=this.evaluateNodeToWhereClause(o.parseTree,M.Bj.Standardised,this.field.name,this.codefield instanceof T.WhereClause?(0,F.zR)(this.codefield,M.Bj.Standardised):this.codefield,o.parameters);return D.includes(v.BADNESS)?{rewritten:!1,where:o}:{rewritten:this.sqlRewritable,where:T.WhereClause.create(D,(0,I.s3)(g._parent).getFieldsIndex())}}evaluateNodeToWhereClause(o,g,D=null,E=null,S){let W,U,Z,B;switch(o.type){case"interval":return(0,F.TE)(this.evaluateNodeToWhereClause(o.value,g,D,E,S),o.qualifier,o.op);case"case-expression":{let A=" CASE ";"simple"===o.format&&(A+=this.evaluateNodeToWhereClause(o.operand,g,D,v.BADNESS,S));for(let L=0;L":case"=":if("column-reference"===o.left.type&&"string"===o.right.type){if(o.left.column.toUpperCase()===this.field.name.toUpperCase()&&void 0!==this.lkp[o.right.value.toString()])return" ("+E+" "+o.operator+" "+this.lkp[o.right.value.toString()].toString()+") "}else if("column-reference"===o.right.type&&"string"===o.left.type&&o.right.column.toUpperCase()===this.field.name.toUpperCase())return" ("+this.lkp[o.right.value.toString()].toString()+" "+o.operator+" "+E+") ";return" ("+this.evaluateNodeToWhereClause(o.left,g,D,v.BADNESS,S)+" "+o.operator+" "+this.evaluateNodeToWhereClause(o.right,g,D,v.BADNESS,S)+") ";case"<":case">":case">=":case"<=":case"*":case"-":case"+":case"/":return" ("+this.evaluateNodeToWhereClause(o.left,g,D,v.BADNESS,S)+" "+o.operator+" "+this.evaluateNodeToWhereClause(o.right,g,D,v.BADNESS,S)+") "}case"null":return"null";case"boolean":return!0===o.value?"1":"0";case"string":return"'"+o.value.toString().replace(/'/g,"''")+"'";case"timestamp":case"date":return(0,F.oX)(o.value,g);case"number":return o.value.toString();case"current-time":return(0,F.vR)("date"===o.mode,g);case"column-reference":return D&&D.toLowerCase()===o.column.toLowerCase()?"("+E+")":o.column;case"function":{const A=this.evaluateNodeToWhereClause(o.args,g,D,v.BADNESS,S);return(0,F.fz)(o.name,A,g)}}throw new x.eS(x.f.UnsupportedSyntax,{node:o.type})}extractValue(o){return this.codefield instanceof T.WhereClause?this.reverseLkp[this.codefield.calculateValueCompiled(o)]:this.reverseLkp[o.attributes[this.codefield]]}}return v.BADNESS="_!!!_BAD_LKP_!!!!",v})();class _ extends m{constructor(h,o){super(h),this._sql=o}rewriteSql(h,o){return{rewritten:!0,where:(0,F.bB)(h,this.field.name,(0,F.zR)(this._sql,M.Bj.Standardised),o.getFieldsIndex())}}extractValue(h){return this._sql.calculateValueCompiled(h)}}class b extends O.Z{constructor(h){super(h),this._calcFunc=null,this.declaredClass="esri.arcade.featureset.actions.Adapted",this.adaptedFields=[],this._extraFilter=null,this._extraFilter=h.extraFilter,this._parent=h.parentfeatureset,this._maxProcessing=30,this.adaptedFields=h.adaptedFields}static findField(h,o){for(const g of h)if(g.name.toLowerCase()===o.toString().toLowerCase())return g;return null}_initialiseFeatureSet(){null!==this._parent?(this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types):(this.spatialReference=new P.Z({wkid:4326}),this.objectIdField="",this.globalIdField="",this.geometryType=M.Qk.point,this.typeIdField="",this.types=null),this.fields=[];for(const h of this.adaptedFields)h.postInitialization(this,this._parent),this.fields.push(h.field)}_getSet(h){var o=this;return(0,p.Z)(function*(){if(null===o._wset){yield o._ensureLoaded();let g=null;return g=o._extraFilter?yield o._getFilteredSet("",null,null,null,h):yield o._parent?._getSet(h),o._checkCancelled(h),(0,I.O3)(g),o._wset=new N.Z(g._candidates.slice(0),g._known.slice(0),g._ordered,o._clonePageDefinition(g.pagesDefinition)),o._wset}return o._wset})()}_isInFeatureSet(h){return(0,I.s3)(this._parent)._isInFeatureSet(h)}_getFeatures(h,o,g,D){var E=this;return(0,p.Z)(function*(){const S=[];-1!==o&&void 0===E._featureCache[o]&&S.push(o);const W=E._maxQueryRate();if(!0===E._checkIfNeedToExpandKnownPage(h,W))return yield E._expandPagedSet(h,W,0,0,D),E._getFeatures(h,o,g,D);let U=0;for(let A=h._lastFetchedIndex;A=W)));A++);if(0===S.length)return"success";h=new N.Z([],S,h._ordered,null);const Z=Math.min(S.length,g);yield E._parent?._getFeatures(h,-1,Z,D),E._checkCancelled(D);const B=[];for(let A=0;A0&&(D=D.replaceFields(L))}null!==g?null!==S._extraFilter&&(g=(0,F.$e)(S._extraFilter,g)):g=S._extraFilter,yield S._ensureLoaded();const B=yield(0,I.s3)(S._parent)._getFilteredSet(h,o,g,D,E);let A;return S._checkCancelled(E),A=!0===W?new N.Z(B._candidates.slice(0).concat(B._known.slice(0)),[],!0===Z&&B._ordered,S._clonePageDefinition(B.pagesDefinition)):new N.Z(B._candidates.slice(0),B._known.slice(0),!0===Z&&B._ordered,S._clonePageDefinition(B.pagesDefinition)),A})()}_reformulateWithoutAdaptions(h){const o={cannot:!1,where:h};if(null!==h)for(const g of this.adaptedFields)if(!0===(0,F.hq)(h,g.field.name)){const D=g.rewriteSql(h,this);if(!0!==D.rewritten){o.cannot=!0,o.where=null;break}o.where=D.where}return o}_stat(h,o,g,D,E,S,W){var U=this;return(0,p.Z)(function*(){let Z=!1,B=U._reformulateWithoutAdaptions(o);if(Z=B.cannot,o=B.where,B=U._reformulateWithoutAdaptions(E),Z=Z||B.cannot,null!==(E=B.where)?null!==U._extraFilter&&(E=(0,F.$e)(U._extraFilter,E)):E=U._extraFilter,!0===Z)return null===E&&""===g&&null===D?U._manualStat(h,o,S,W):{calculated:!1};const A=yield(0,I.s3)(U._parent)._stat(h,o,g,D,E,S,W);return!1===A.calculated?null===E&&""===g&&null===D?U._manualStat(h,o,S,W):{calculated:!1}:A})()}_canDoAggregates(h,o,g,D,E){var S=this;return(0,p.Z)(function*(){if(null===S._parent)return!1;for(let Z=0;Z{c.d($,{Z:()=>T});var p=c(15861),z=c(47982),V=c(49086),x=c(91510),O=c(77132),N=c(83947),M=c(10699),F=c(10410),I=c(65234);class T extends V.Z{constructor(m){super(m),this.declaredClass="esri.arcade.featureset.actions.AttributeFilter",this._maxProcessing=1e3,this._parent=m.parentfeatureset,m.whereclause instanceof F.WhereClause?(this._whereclause=m.whereclause,this._whereClauseFunction=null):(this._whereClauseFunction=m.whereclause,this._whereclause=null)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types):(this.fields=[],this.typeIdField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new I.Z({wkid:4326}),this.geometryType=O.Qk.point)}_getSet(m){var d=this;return(0,p.Z)(function*(){if(null===d._wset){yield d._ensureLoaded();const C=yield d._parent._getFilteredSet("",null,d._whereclause,null,m);return d._checkCancelled(m),d._wset=null!==d._whereClauseFunction?new x.Z(C._candidates.slice(0).concat(C._known.slice(0)),[],C._ordered,d._clonePageDefinition(C.pagesDefinition)):new x.Z(C._candidates.slice(0),C._known.slice(0),C._ordered,d._clonePageDefinition(C.pagesDefinition)),d._wset}return d._wset})()}_isInFeatureSet(m){let d=this._parent?._isInFeatureSet(m);return d===O.dj.NotInFeatureSet?d:(d=this._idstates[m],void 0===d?O.dj.Unknown:d)}_getFeature(m,d,C){return this._parent._getFeature(m,d,C)}_getFeatures(m,d,C,u){return this._parent._getFeatures(m,d,C,u)}_featureFromCache(m){return this._parent._featureFromCache(m)}executeWhereClause(m){return this._whereclause?.testFeature(m)??!1}executeWhereClauseDeferred(m){var d=this;return(0,p.Z)(function*(){if(null!==d._whereClauseFunction){const C=d._whereClauseFunction(m);return(0,M.y8)(C),C}return d.executeWhereClause(m)})()}_fetchAndRefineFeatures(m,d,C){var u=this;return(0,p.Z)(function*(){const _=new x.Z([],m,!1,null),b=Math.min(d,m.length);if(yield u._parent?._getFeatures(_,-1,b,C),u._checkCancelled(C),null==u._whereClauseFunction){for(let h=0;h{c.d($,{Z:()=>M});var p=c(15861),z=c(47562),V=c(47982),x=c(49086),O=c(91510),N=c(57366);class M extends x.Z{constructor(I){super(I),this._orderbyclause=null,this.declaredClass="esri.arcade.featureset.actions.OrderBy",this._maxProcessing=100,this._orderbyclause=I.orderbyclause,this._parent=I.parentfeatureset}_getSet(I){var T=this;return(0,p.Z)(function*(){if(null===T._wset){yield T._ensureLoaded();const P=yield T._getFilteredSet("",null,null,T._orderbyclause,I);return T._checkCancelled(I),T._wset=P,T._wset}return T._wset})()}manualOrderSet(I,T){var P=this;return(0,p.Z)(function*(){const m=yield P.getIdColumnDictionary(I,[],-1,T);P._orderbyclause?.order(m);const d=new O.Z([],[],!0,null);for(let C=0;C0?(yield(0,z.W)(d._refineSetBlock(I,d._maxProcessingRate(),m)),d._checkCancelled(m),d.getIdColumnDictionary(I,T,P,m)):T})()}_isInFeatureSet(I){return this._parent._isInFeatureSet(I)}_getFeatures(I,T,P,m){return this._parent._getFeatures(I,T,P,m)}_featureFromCache(I){if(void 0===this._featureCache[I]){const T=this._parent._featureFromCache(I);return void 0===T?void 0:null===T?null:(this._featureCache[I]=T,T)}return this._featureCache[I]}_fetchAndRefineFeatures(){return(0,p.Z)(function*(){throw new V.EN(V.H9.NeverReach)})()}_getFilteredSet(I,T,P,m,d){var C=this;return(0,p.Z)(function*(){yield C._ensureLoaded();const u=yield C._parent._getFilteredSet(I,T,P,null===m?C._orderbyclause:m,d);C._checkCancelled(d);const _=new O.Z(u._candidates.slice(0),u._known.slice(0),u._ordered,C._clonePageDefinition(u.pagesDefinition));let b=!0;if(u._candidates.length>0&&(b=!1),!1===_._ordered){let v=yield C.manualOrderSet(_,d);return!1===b&&(null===T&&null===P||(v=new O.Z(v._candidates.slice(0).concat(v._known.slice(0)),[],v._ordered,C._clonePageDefinition(v.pagesDefinition)))),v}return _})()}static registerAction(){x.Z._featuresetFunctions.orderBy=function(I){return""===I?this:new M({parentfeatureset:this,orderbyclause:new N.Z(I)})}}}},79429:(ee,$,c)=>{c.d($,{Z:()=>N});var p=c(15861),z=c(47982),V=c(49086),x=c(91510),O=c(77132);class N extends V.Z{constructor(F){super(F),this._topnum=0,this.declaredClass="esri.arcade.featureset.actions.Top",this._countedin=0,this._maxProcessing=100,this._topnum=F.topnum,this._parent=F.parentfeatureset}_getSet(F){var I=this;return(0,p.Z)(function*(){if(null===I._wset){yield I._ensureLoaded();const T=yield I._parent._getSet(F);return I._wset=new x.Z(T._candidates.slice(0),T._known.slice(0),!1,I._clonePageDefinition(T.pagesDefinition)),I._setKnownLength(I._wset)>I._topnum&&(I._wset._known=I._wset._known.slice(0,I._topnum)),I._setKnownLength(I._wset)>=I._topnum&&(I._wset._candidates=[]),I._wset}return I._wset})()}_setKnownLength(F){return F._known.length>0&&"GETPAGES"===F._known[F._known.length-1]?F._known.length-1:F._known.length}_isInFeatureSet(F){const I=this._parent._isInFeatureSet(F);if(I===O.dj.NotInFeatureSet)return I;const T=this._idstates[F];return T===O.dj.InFeatureSet||T===O.dj.NotInFeatureSet?T:I===O.dj.InFeatureSet&&void 0===T?this._countedind._topnum&&(I=d._topnum),d._countedin>=d._topnum&&F.pagesDefinition.internal.set.length<=F.pagesDefinition.resultOffset){let u=F._known.length;return u>0&&"GETPAGES"===F._known[u-1]&&(F._known.length=u-1),u=F._candidates.length,u>0&&"GETPAGES"===F._candidates[u-1]&&(F._candidates.length=u-1),"success"}const C=yield d._parent._expandPagedSet(F,I,T,P,m);return d._setKnownLength(F)>d._topnum&&(F._known.length=d._topnum),d._setKnownLength(F)>=d._topnum&&(F._candidates.length=0),C})()}_getFeatures(F,I,T,P){var m=this;return(0,p.Z)(function*(){const d=[],C=m._maxQueryRate();if(!0===m._checkIfNeedToExpandKnownPage(F,C))return yield m._expandPagedSet(F,C,0,0,P),m._getFeatures(F,I,T,P);-1!==I&&void 0===m._featureCache[I]&&d.push(I);let u=0;for(let v=F._lastFetchedIndex;vC)));v++);if(0===d.length)return"success";const _=new x.Z([],d,!1,null),b=Math.min(d.length,T);yield m._parent._getFeatures(_,-1,b,P);for(let v=0;v=this._topnum)break}else if(C===O.dj.NotInFeatureSet)null===P?P={start:d,end:d}:P.end===d-1?P.end=d:(m.push(P),P={start:d,end:d}),T+=1;else if(C===O.dj.Unknown)break;if(T>=I)break}null!==P&&m.push(P);for(let d=m.length-1;d>=0;d--)F._candidates.splice(m[d].start,m[d].end-m[d].start+1);this._setKnownLength(F)>this._topnum&&(F._known=F._known.slice(0,this._topnum)),this._setKnownLength(F)>=this._topnum&&(F._candidates=[])}_stat(){return(0,p.Z)(function*(){return{calculated:!1}})()}_canDoAggregates(){return(0,p.Z)(function*(){return!1})()}static registerAction(){V.Z._featuresetFunctions.top=function(F){return new N({parentfeatureset:this,topnum:F})}}}},16776:(ee,$,c)=>{c.d($,{Z:()=>d});var p=c(15861),z=c(88879),V=c(47982),x=c(49086),O=c(91510),N=c(77132),M=c(83947),F=c(21674),I=c(80415),T=c(41638),P=c(36255),m=c(96854);class d extends x.Z{constructor(u){super(u),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerMemory",this._removeGeometry=!1,this._overrideFields=null,this._forceIsTable=!1,u.spatialReference&&(this.spatialReference=u.spatialReference),this._transparent=!0,this._maxProcessing=1e3,this._layer=u.layer,this._wset=null,!0===u.isTable&&(this._forceIsTable=!0),void 0!==u.outFields&&(this._overrideFields=u.outFields),void 0!==u.includeGeometry&&(this._removeGeometry=!1===u.includeGeometry)}_maxQueryRate(){return N.tI}end(){return this._layer}optimisePagingFeatureQueries(){}loadImpl(){var u=this;return(0,p.Z)(function*(){return!0===u._layer.loaded?(u._initialiseFeatureSet(),u):(yield u._layer.load(),u._initialiseFeatureSet(),u)})()}get gdbVersion(){return""}_initialiseFeatureSet(){if(null==this.spatialReference&&(this.spatialReference=this._layer.spatialReference),this.geometryType=this._layer.geometryType,this.fields=this._layer.fields.slice(0),this._layer.outFields&&(1!==this._layer.outFields.length||"*"!==this._layer.outFields[0])){const u=[];for(const _ of this.fields)if("oid"===_.type)u.push(_);else for(const b of this._layer.outFields)if(b.toLowerCase()===_.name.toLowerCase()){u.push(_);break}this.fields=u}if(null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const u=[],_=[];for(const b of this.fields)if("oid"===b.type)u.push(b),_.push(b.name);else for(const v of this._overrideFields)if(v.toLowerCase()===b.name.toLowerCase()){u.push(b),_.push(b.name);break}this.fields=u,this._overrideFields=_}this.objectIdField=this._layer.objectIdField;for(const u of this.fields)"global-id"===u.type&&(this.globalIdField=u.name);this.hasM=this._layer.supportsM,this.hasZ=this._layer.supportsZ,this._databaseType=N.Bj.Standardised,this.typeIdField=this._layer.typeIdField,this.types=this._layer.types}isTable(){return this._forceIsTable||this._layer.isTable||"table"===this._layer.type||!this._layer.geometryType}_isInFeatureSet(){return N.dj.InFeatureSet}_candidateIdTransform(u){return u}_getSet(u){var _=this;return(0,p.Z)(function*(){if(null===_._wset){yield _._ensureLoaded();const b=yield _._getFilteredSet("",null,null,null,u);return _._wset=b,b}return _._wset})()}_changeFeature(u){const _={};for(const b of this.fields)_[b.name]=u.attributes[b.name];return new z.Z({geometry:!0===this._removeGeometry?null:u.geometry,attributes:_})}_getFilteredSet(u,_,b,v,h){var o=this;return(0,p.Z)(function*(){let g="",D=!1;if(null!==v&&(g=v.constructClause(),D=!0),o.isTable()&&_&&null!==u&&""!==u)return new O.Z([],[],!0,null);const E=new m.Z;E.where=null===b?null===_?"1=1":"":(0,M.zR)(b,N.Bj.Standardised),E.spatialRelationship=o._makeRelationshipEnum(u),E.outSpatialReference=o.spatialReference,E.orderByFields=""!==g?g.split(","):null,E.geometry=null===_?null:_,E.returnGeometry=!0,E.relationParameter=o._makeRelationshipParam(u);const S=yield o._layer.queryFeatures(E);if(null===S)return new O.Z([],[],D,null);o._checkCancelled(h);const W=[];return S.features.forEach(U=>{const Z=U.attributes[o._layer.objectIdField];W.push(Z),o._featureCache[Z]=o._changeFeature(U)}),new O.Z([],W,D,null)})()}_makeRelationshipEnum(u){if(u.includes("esriSpatialRelRelation"))return"relation";switch(u){case"esriSpatialRelRelation":return"relation";case"esriSpatialRelIntersects":return"intersects";case"esriSpatialRelContains":return"contains";case"esriSpatialRelOverlaps":return"overlaps";case"esriSpatialRelWithin":return"within";case"esriSpatialRelTouches":return"touches";case"esriSpatialRelCrosses":return"crosses";case"esriSpatialRelEnvelopeIntersects":return"envelope-intersects"}return u}_makeRelationshipParam(u){return u.includes("esriSpatialRelRelation")?u.split(":")[1]:""}_queryAllFeatures(){var u=this;return(0,p.Z)(function*(){if(u._wset)return u._wset;const _=new m.Z;if(_.where="1=1",yield u._ensureLoaded(),u._layer.source&&u._layer.source.items){const h=[];return u._layer.source.items.forEach(o=>{const g=o.attributes[u._layer.objectIdField];h.push(g),u._featureCache[g]=u._changeFeature(o)}),u._wset=new O.Z([],h,!1,null),u._wset}const b=yield u._layer.queryFeatures(_),v=[];return b.features.forEach(h=>{const o=h.attributes[u._layer.objectIdField];v.push(o),u._featureCache[o]=u._changeFeature(h)}),u._wset=new O.Z([],v,!1,null),u._wset})()}_getFeatures(u,_,b){var v=this;return(0,p.Z)(function*(){const h=[];-1!==_&&void 0===v._featureCache[_]&&h.push(_);for(let o=u._lastFetchedIndex;ob)));o++);if(0===h.length)return"success";throw new V.EN(V.H9.MissingFeatures)})()}_refineSetBlock(u){return(0,p.Z)(function*(){return u})()}_stat(){return(0,p.Z)(function*(){return{calculated:!1}})()}_canDoAggregates(){return(0,p.Z)(function*(){return!1})()}relationshipMetaData(){return[]}static _cloneAttr(u){const _={};for(const b in u)_[b]=u[b];return _}nativeCapabilities(){return{title:this._layer.title??"",canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}static create(u,_){let b=u.layerDefinition.objectIdField;const v=u.layerDefinition.typeIdField?u.layerDefinition.typeIdField:"",h=[];if(u.layerDefinition.types)for(const Z of u.layerDefinition.types)h.push(T.Z.fromJSON(Z));let o=u.layerDefinition.geometryType;void 0===o&&(o=u.featureSet.geometryType||"");let g=u.featureSet.features;const D=_.toJSON();if(""===b||void 0===b){let Z=!1;for(const B of u.layerDefinition.fields)if("oid"===B.type||"esriFieldTypeOID"===B.type){b=B.name,Z=!0;break}if(!1===Z){let B="FID",A=!0,L=0;for(;A;){let Y=!0;for(const me of u.layerDefinition.fields)if(me.name===B){Y=!1;break}!0===Y?A=!1:(L++,B="FID"+L.toString())}u.layerDefinition.fields.push({type:"esriFieldTypeOID",name:B,alias:B});const G=[];for(let Y=0;Y{function p(V,x){return V===x?0:null===V?-1:null===x?1:Vz});class z{constructor(x){const O=x.split(",");this._fields=[],this._directions=[];for(let N=0;N{for(let M=0;M{c.d($,{P:()=>O});var p=c(15861),z=c(2618),V=c(20477),x=c(96854);function O(M,F,I){return N.apply(this,arguments)}function N(){return(N=(0,p.Z)(function*(M,F,I){const T=(0,z.en)(M);return(0,V.executeQueryForCount)(T,x.Z.from(F),{...I}).then(P=>P.data.count)})).apply(this,arguments)}},24865:(ee,$,c)=>{c.d($,{G:()=>O});var p=c(15861),z=c(2618),V=c(20477),x=c(96854);function O(M,F,I){return N.apply(this,arguments)}function N(){return(N=(0,p.Z)(function*(M,F,I){const T=(0,z.en)(M);return(0,V.executeQueryForIds)(T,x.Z.from(F),{...I}).then(P=>P.data.objectIds)})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5175.bf1f6dab9e0274fe.js b/apps/n/porrtal-io-app/public/angular/5175.bf1f6dab9e0274fe.js deleted file mode 100644 index 4aa8de3e..00000000 --- a/apps/n/porrtal-io-app/public/angular/5175.bf1f6dab9e0274fe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5175],{15175:(l,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(2166),_(69960),_(65787),_(17625),_(22355),_(16396);var a=_(30750)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5237.3534f29b97eae04b.js b/apps/n/porrtal-io-app/public/angular/5237.3534f29b97eae04b.js deleted file mode 100644 index 343d6b00..00000000 --- a/apps/n/porrtal-io-app/public/angular/5237.3534f29b97eae04b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5237],{55237:(p,s,n)=>{n.r(s),n.d(s,{n:()=>f});var m,h,a,d=n(1719),t={exports:{}};m=t,void 0!==(a=t.exports,Object.defineProperty(a,"__esModule",{value:!0}),h=void(a.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"e.Kr.",_era_bc:"f.Kr.",A:"a",P:"p",AM:"a.m.",PM:"p.m.","A.M.":"a.m.","P.M.":"p.m.",January:"januar",February:"februar",March:"mars",April:"april",May:"mai",June:"juni",July:"juli",August:"august",September:"september",October:"oktober",November:"november",December:"desember",Jan:"jan.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"mai",Jun:"jun.",Jul:"jul.",Aug:"aug.",Sep:"sep.",Oct:"okt.",Nov:"nov.",Dec:"des.",Sunday:"s\xf8ndag",Monday:"mandag",Tuesday:"tirsdag",Wednesday:"onsdag",Thursday:"torsdag",Friday:"fredag",Saturday:"l\xf8rdag",Sun:"s\xf8n.",Mon:"man.",Tue:"tir.",Wed:"ons.",Thu:"tor.",Fri:"fre.",Sat:"l\xf8r.",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Zoom",Play:"Spill av",Stop:"Stopp",Legend:"Tegnforklaring","Click, tap or press ENTER to toggle":"",Loading:"Laster inn",Home:"Hjem",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Skriv ut",Image:"Bilde",Data:"Data",Print:"Skriv ut","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Fra %1 til %2","From %1":"Fra %1","To %1":"Til %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(m.exports=h);const f=function c(_,a){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5265.8ea66d02a3484fc1.js b/apps/n/porrtal-io-app/public/angular/5265.8ea66d02a3484fc1.js deleted file mode 100644 index 6d94b90d..00000000 --- a/apps/n/porrtal-io-app/public/angular/5265.8ea66d02a3484fc1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5265],{5265:(M,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(993),_(4794),_(69960),_(17625),_(22355),_(35387),_(16396);var E=_(17923)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5302.ff3b116d752fadc2.js b/apps/n/porrtal-io-app/public/angular/5302.ff3b116d752fadc2.js deleted file mode 100644 index c73afa72..00000000 --- a/apps/n/porrtal-io-app/public/angular/5302.ff3b116d752fadc2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5302],{85302:(y,s,n)=>{n.r(s),n.d(s,{s:()=>f});var u,h,a,d=n(1719),_={exports:{}};u=_,void 0!==(a=_.exports,Object.defineProperty(a,"__esModule",{value:!0}),h=void(a.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u043d. \u0435.",_era_bc:"\u043f. \u043d. \u0435.",A:"a",P:"p",AM:"\u043f\u0440\u0435 \u043f\u043e\u0434\u043d\u0435",PM:"\u043f\u043e \u043f\u043e\u0434\u043d\u0435","A.M.":"\u043f\u0440\u0435 \u043f\u043e\u0434\u043d\u0435","P.M.":"\u043f\u043e \u043f\u043e\u0434\u043d\u0435",January:"\u0458\u0430\u043d\u0443\u0430\u0440",February:"\u0444\u0435\u0431\u0440\u0443\u0430\u0440",March:"\u043c\u0430\u0440\u0442",April:"\u0430\u043f\u0440\u0438\u043b",May:"\u043c\u0430\u0458",June:"\u0458\u0443\u043d",July:"\u0458\u0443\u043b",August:"\u0430\u0432\u0433\u0443\u0441\u0442",September:"\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440",October:"\u043e\u043a\u0442\u043e\u0431\u0430\u0440",November:"\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440",December:"\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440",Jan:"\u0458\u0430\u043d",Feb:"\u0444\u0435\u0431",Mar:"\u043c\u0430\u0440",Apr:"\u0430\u043f\u0440","May(short)":"\u043c\u0430\u0458",Jun:"\u0458\u0443\u043d",Jul:"\u0458\u0443\u043b",Aug:"\u0430\u0432\u0433",Sep:"\u0441\u0435\u043f",Oct:"\u043e\u043a\u0442",Nov:"\u043d\u043e\u0432",Dec:"\u0434\u0435\u0446",Sunday:"\u043d\u0435\u0434\u0435\u0459\u0430",Monday:"\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a",Tuesday:"\u0443\u0442\u043e\u0440\u0430\u043a",Wednesday:"\u0441\u0440\u0435\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a",Friday:"\u043f\u0435\u0442\u0430\u043a",Saturday:"\u0441\u0443\u0431\u043e\u0442\u0430",Sun:"\u043d\u0435\u0434",Mon:"\u043f\u043e\u043d",Tue:"\u0443\u0442\u043e",Wed:"\u0441\u0440\u0435",Thu:"\u0447\u0435\u0442",Fri:"\u043f\u0435\u0442",Sat:"\u0441\u0443\u0431",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Zumiranje",Play:"Reprodukuj",Stop:"Zaustavi",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"U\u010ditavanje",Home:"Mati\u010dna stranica",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u0160tampaj",Image:"Snimak",Data:"Podaci",Print:"\u0160tampaj","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Iz %1 u %2","From %1":"Iz %1","To %1":"U %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(t,a){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(_.exports)},[_.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5337.d2537bf32f83222b.js b/apps/n/porrtal-io-app/public/angular/5337.d2537bf32f83222b.js deleted file mode 100644 index c2031f60..00000000 --- a/apps/n/porrtal-io-app/public/angular/5337.d2537bf32f83222b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5337],{35337:(e,s,_)=>{_.r(s),_.d(s,{NoiseTextureAtlasPassParameters:()=>a.N,build:()=>a.b}),_(99770),_(64312),_(85755),_(98071),_(95285),_(17625),_(22355);var a=_(42474)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5359.4da92fa3d04e70d3.js b/apps/n/porrtal-io-app/public/angular/5359.4da92fa3d04e70d3.js deleted file mode 100644 index 530a9de4..00000000 --- a/apps/n/porrtal-io-app/public/angular/5359.4da92fa3d04e70d3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5359],{75359:(E,e,_)=>{_.r(e),_.d(e,{SilhouetteCircle:()=>s.b,SimpleAtmospherePassParameters:()=>s.S,build:()=>s.c}),_(99770),_(28093),_(49115),_(24255),_(31166),_(95285),_(97139),_(65787),_(17625),_(63123),_(22355),_(35387),_(16396);var s=_(4300)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5362.aa90b34709712395.js b/apps/n/porrtal-io-app/public/angular/5362.aa90b34709712395.js deleted file mode 100644 index 2048a3df..00000000 --- a/apps/n/porrtal-io-app/public/angular/5362.aa90b34709712395.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5362],{95362:(j,Z,p)=>{p.r(Z),p.d(Z,{applyEdits:()=>C});var m,e,y=p(15861),x=p(88879),f=p(46160),i=p(26584),O=p(58817),h=p(62208),U=p(21726),G=p(35948),L=p(93555),E=p(6733);function T(e){return e&&null!=e.applyEdits}function C(e,t,r){return g.apply(this,arguments)}function g(){return g=(0,y.Z)(function*(e,t,r,n={}){let s,o;const d={edits:r,result:new Promise((a,u)=>{s=a,o=u})};e.emit("apply-edits",d);try{const{results:a,edits:u}=yield B(e,t,r,n),l=M=>M.filter(Y=>!Y.error).map(O.d9),c={edits:u,addedFeatures:l(a.addFeatureResults),updatedFeatures:l(a.updateFeatureResults),deletedFeatures:l(a.deleteFeatureResults),addedAttachments:l(a.addAttachmentResults),updatedAttachments:l(a.updateAttachmentResults),deletedAttachments:l(a.deleteAttachmentResults)};return a.editedFeatureResults?.length&&(c.editedFeatures=a.editedFeatureResults),(c.addedFeatures.length||c.updatedFeatures.length||c.deletedFeatures.length||c.addedAttachments.length||c.updatedAttachments.length||c.deletedAttachments.length)&&(e.emit("edits",c),(0,E.lQ)(e)&&E.dU.emit("edits",{layer:e,event:c})),s(c),a}catch(a){throw o(a),a}}),g.apply(this,arguments)}function B(e,t,r,n){return b.apply(this,arguments)}function b(){return b=(0,y.Z)(function*(e,t,r,n){if(yield e.load(),!T(t))throw new i.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!e.editingEnabled)throw new i.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:s,options:o}=yield D(e,r,n);return s.addFeatures.length||s.updateFeatures.length||s.deleteFeatures.length||s.addAttachments.length||s.updateAttachments.length||s.deleteAttachments.length?{edits:s,results:yield t.applyEdits(s,o)}:{edits:s,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}),b.apply(this,arguments)}function D(e,t,r){return F.apply(this,arguments)}function F(){return F=(0,y.Z)(function*(e,t,r){const n=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),s=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),o=(0,h.pC)(e.infoFor3D);if(!t||!n&&!s)throw new i.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!e.capabilities.data.isVersioned&&r&&r.gdbVersion)throw new i.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!e.capabilities.editing.supportsRollbackOnFailure&&r&&r.rollbackOnFailureEnabled)throw new i.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!e.capabilities.editing.supportsGlobalId&&r&&r.globalIdUsed)throw new i.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!e.capabilities.editing.supportsGlobalId&&s)throw new i.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if((!r||!r.globalIdUsed)&&s)throw new i.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const d={...r};if(null!=d.rollbackOnFailureEnabled||e.capabilities.editing.supportsRollbackOnFailure||(d.rollbackOnFailureEnabled=!0),!1===d.rollbackOnFailureEnabled&&"original-and-current-features"===d.returnServiceEditsOption)throw new i.Z(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true.");if(!e.capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference&&d.returnServiceEditsInSourceSR)throw new i.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(d.returnServiceEditsInSourceSR&&"original-and-current-features"!==d.returnServiceEditsOption)throw new i.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsOption' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const a={...t};if(a.addFeatures=t&&f.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():a.addFeatures||[],a.updateFeatures=t&&f.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():a.updateFeatures||[],a.deleteFeatures=t&&f.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():a.deleteFeatures||[],a.addFeatures.length&&!e.capabilities.operations.supportsAdd)throw new i.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(a.updateFeatures.length&&!e.capabilities.operations.supportsUpdate)throw new i.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(a.deleteFeatures.length&&!e.capabilities.operations.supportsDelete)throw new i.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");a.addAttachments=a.addAttachments||[],a.updateAttachments=a.updateAttachments||[],a.deleteAttachments=a.deleteAttachments||[],a.addFeatures=a.addFeatures.map(S),a.updateFeatures=a.updateFeatures.map(S),a.addAssets=[];const u=r&&r.globalIdUsed||o;return a.addFeatures.forEach(l=>W(l,e,u)),a.updateFeatures.forEach(l=>k(l,e,u)),a.deleteFeatures.forEach(l=>N(l,e,u)),a.addAttachments.forEach(l=>$(l,e)),a.updateAttachments.forEach(l=>$(l,e)),o&&(yield V(a,e)),{edits:yield z(a),options:d}}),F.apply(this,arguments)}function w(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new i.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new i.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&(0,h.pC)(e.geometry)){if(e.geometry.hasZ&&!1===t.capabilities.data.supportsZ)throw new i.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities.data.supportsM)throw new i.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function W(e,t,r){w(e,t,r)}function N(e,t,r){w(e,t,r)}function k(e,t,r){if(w(e,t,r),"geometry"in e&&(0,h.pC)(e.geometry)&&!t.capabilities.editing.supportsGeometryUpdate)throw new i.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}function $(e,t){const{feature:r,attachment:n}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new i.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new i.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!n.globalId)throw new i.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!n.data&&!n.uploadId)throw new i.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(n.data instanceof File&&n.data.name||n.name))throw new i.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities.editing.supportsUploadWithItemId&&n.uploadId)throw new i.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof n.data){const s=(0,U.sJ)(n.data);if(s&&!s.isBase64)throw new i.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}function z(e){return A.apply(this,arguments)}function A(){return A=(0,y.Z)(function*(e){const t=e.addFeatures,r=e.updateFeatures,n=t.concat(r).map(a=>a.geometry),s=yield(0,L.aX)(n),o=t.length,d=r.length;return s.slice(0,o).forEach((a,u)=>e.addFeatures[u].geometry=a),s.slice(o,o+d).forEach((a,u)=>e.updateFeatures[u].geometry=a),e}),A.apply(this,arguments)}function S(e){const t=new x.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function V(e,t){return v.apply(this,arguments)}function v(){return v=(0,y.Z)(function*(e,t){if((0,h.Wi)(t.infoFor3D))return;const{infoFor3D:r}=t;let n=!1;for(const d of r.editFormats)if(d===m.GLTF_BINARY){n=!0;break}const s=[];for(const d of e.addFeatures)s.push(R(d,e,t,n));for(const d of e.updateFeatures)s.push(R(d,e,t,n));const o=yield Promise.allSettled(s);for(const d of o)if("rejected"===d.status)throw d.reason}),v.apply(this,arguments)}function R(e,t,r,n){return I.apply(this,arguments)}function I(){return I=(0,y.Z)(function*(e,t,r,n){if((0,h.Wi)(e.geometry)||"mesh"!==e.geometry.type)return;const s=e.geometry,o=r.globalIdField;if((0,h.pC)(r.parsedUrl)&&(0,h.pC)(s.external)&&Array.isArray(s.external.source)&&1===s.external.source.length&&"source"in s.external.source[0]&&"string"==typeof s.external.source[0].source&&s.external.source[0].source.startsWith(r.parsedUrl.path))return;if(!n)throw new i.Z(`${r.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");const d=yield s.toBinaryGLTF(),a=yield d.buffer(),u=`{${(0,G.D)()}}`,l=`${u}.glb`;t.addAssets.push({featureGlobalId:e.getAttribute(o),assetMapGlobalId:u,assetName:l,flags:0,data:a.data,mimeType:a.type,assetType:m.GLTF_BINARY,feature:e})}),I.apply(this,arguments)}(e=m||(m={})).GLTF_BINARY="3D_glb",e.GLTF_JSON="3D_gltf"}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5425.4c3f98ac4d397c3b.js b/apps/n/porrtal-io-app/public/angular/5425.4c3f98ac4d397c3b.js deleted file mode 100644 index c5e9e5cc..00000000 --- a/apps/n/porrtal-io-app/public/angular/5425.4c3f98ac4d397c3b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5425],{75425:(a,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(17625),_(22355),_(35387),_(16396),_(67093);var E=_(82488)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5439.b0ed19c673a218c2.js b/apps/n/porrtal-io-app/public/angular/5439.b0ed19c673a218c2.js deleted file mode 100644 index 7800f0c1..00000000 --- a/apps/n/porrtal-io-app/public/angular/5439.b0ed19c673a218c2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5439],{27088:function(f,L,m){!function(o){"use strict";o.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,s,r){return n<12?r?"vm":"VM":r?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(m(15439))},52502:function(f,L,m){!function(o){"use strict";var a=function(u){return 0===u?0:1===u?1:2===u?2:u%100>=3&&u%100<=10?3:u%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},s=function(u){return function(c,h,y,w){var v=a(c),S=n[u][a(c)];return 2===v&&(S=S[h?0:1]),S.replace(/%d/i,c)}},r=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(u){return"\u0645"===u},meridiem:function(u,c,h){return u<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},postformat:function(u){return u.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(m(15439))},30128:function(f,L,m){!function(o){"use strict";o.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(m(15439))},84519:function(f,L,m){!function(o){"use strict";var a={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(c){return 0===c?0:1===c?1:2===c?2:c%100>=3&&c%100<=10?3:c%100>=11?4:5},s={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(c){return function(h,y,w,v){var S=n(h),te=s[c][n(h)];return 2===S&&(te=te[y?0:1]),te.replace(/%d/i,h)}},d=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-ly",{months:d,monthsShort:d,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(c){return"\u0645"===c},meridiem:function(c,h,y){return c<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(c){return c.replace(/\u060c/g,",")},postformat:function(c){return c.replace(/\d/g,function(h){return a[h]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(m(15439))},65443:function(f,L,m){!function(o){"use strict";o.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(m(15439))},17642:function(f,L,m){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};o.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(r){return"\u0645"===r},meridiem:function(r,d,u){return r<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(r){return r.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(d){return n[d]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(m(15439))},68592:function(f,L,m){!function(o){"use strict";o.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(m(15439))},17038:function(f,L,m){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},s=function(h){return 0===h?0:1===h?1:2===h?2:h%100>=3&&h%100<=10?3:h%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},d=function(h){return function(y,w,v,S){var te=s(y),k=r[h][s(y)];return 2===te&&(k=k[w?0:1]),k.replace(/%d/i,y)}},u=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar",{months:u,monthsShort:u,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(h){return"\u0645"===h},meridiem:function(h,y,w){return h<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:d("s"),ss:d("s"),m:d("m"),mm:d("m"),h:d("h"),hh:d("h"),d:d("d"),dd:d("d"),M:d("M"),MM:d("M"),y:d("y"),yy:d("y")},preparse:function(h){return h.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(y){return n[y]}).replace(/\u060c/g,",")},postformat:function(h){return h.replace(/\d/g,function(y){return a[y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(m(15439))},51213:function(f,L,m){!function(o){"use strict";var a={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};o.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(s){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(s)},meridiem:function(s,r,d){return s<4?"gec\u0259":s<12?"s\u0259h\u0259r":s<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(s){if(0===s)return s+"-\u0131nc\u0131";var r=s%10;return s+(a[r]||a[s%100-r]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(15439))},69191:function(f,L,m){!function(o){"use strict";function n(r,d,u){return"m"===u?d?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===u?d?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":r+" "+function a(r,d){var u=r.split("_");return d%10==1&&d%100!=11?u[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?u[1]:u[2]}({ss:d?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:d?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:d?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[u],+r)}o.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:n,mm:n,h:n,hh:n,d:"\u0434\u0437\u0435\u043d\u044c",dd:n,M:"\u043c\u0435\u0441\u044f\u0446",MM:n,y:"\u0433\u043e\u0434",yy:n},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(r){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(r)},meridiem:function(r,d,u){return r<4?"\u043d\u043e\u0447\u044b":r<12?"\u0440\u0430\u043d\u0456\u0446\u044b":r<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(r,d){switch(d){case"M":case"d":case"DDD":case"w":case"W":return r%10!=2&&r%10!=3||r%100==12||r%100==13?r+"-\u044b":r+"-\u0456";case"D":return r+"-\u0433\u0430";default:return r}},week:{dow:1,doy:7}})}(m(15439))},90322:function(f,L,m){!function(o){"use strict";o.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var s=n%10,r=n%100;return 0===n?n+"-\u0435\u0432":0===r?n+"-\u0435\u043d":r>10&&r<20?n+"-\u0442\u0438":1===s?n+"-\u0432\u0438":2===s?n+"-\u0440\u0438":7===s||8===s?n+"-\u043c\u0438":n+"-\u0442\u0438"},week:{dow:1,doy:7}})}(m(15439))},28042:function(f,L,m){!function(o){"use strict";o.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(m(15439))},65903:function(f,L,m){!function(o){"use strict";var a={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===d?r<4?r:r+12:"\u09ad\u09cb\u09b0"===d||"\u09b8\u0995\u09be\u09b2"===d?r:"\u09a6\u09c1\u09aa\u09c1\u09b0"===d?r>=3?r:r+12:"\u09ac\u09bf\u0995\u09be\u09b2"===d||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u09b0\u09be\u09a4":r<6?"\u09ad\u09cb\u09b0":r<12?"\u09b8\u0995\u09be\u09b2":r<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<18?"\u09ac\u09bf\u0995\u09be\u09b2":r<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(m(15439))},59620:function(f,L,m){!function(o){"use strict";var a={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===d&&r>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===d&&r<5||"\u09ac\u09bf\u0995\u09be\u09b2"===d?r+12:r},meridiem:function(r,d,u){return r<4?"\u09b0\u09be\u09a4":r<10?"\u09b8\u0995\u09be\u09b2":r<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(m(15439))},69645:function(f,L,m){!function(o){"use strict";var a={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};o.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(r){return r.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===d&&r>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===d&&r<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===d?r+12:r},meridiem:function(r,d,u){return r<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":r<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":r<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":r<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(m(15439))},45020:function(f,L,m){!function(o){"use strict";function a(k,G,fe){return k+" "+function r(k,G){return 2===G?function d(k){var G={m:"v",b:"v",d:"z"};return void 0===G[k.charAt(0)]?k:G[k.charAt(0)]+k.substring(1)}(k):k}({mm:"munutenn",MM:"miz",dd:"devezh"}[fe],k)}function s(k){return k>9?s(k%10):k}var u=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],c=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,S=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];o.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:S,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:S,monthsRegex:c,monthsShortRegex:c,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:u,longMonthsParse:u,shortMonthsParse:u,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:a,h:"un eur",hh:"%d eur",d:"un devezh",dd:a,M:"ur miz",MM:a,y:"ur bloaz",yy:function n(k){switch(s(k)){case 1:case 3:case 4:case 5:case 9:return k+" bloaz";default:return k+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(k){return k+(1===k?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(k){return"g.m."===k},meridiem:function(k,G,fe){return k<12?"a.m.":"g.m."}})}(m(15439))},64792:function(f,L,m){!function(o){"use strict";function a(s,r,d){var u=s+" ";switch(d){case"ss":return u+(1===s?"sekunda":2===s||3===s||4===s?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return u+(1===s?"minuta":2===s||3===s||4===s?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return u+(1===s?"sat":2===s||3===s||4===s?"sata":"sati");case"dd":return u+(1===s?"dan":"dana");case"MM":return u+(1===s?"mjesec":2===s||3===s||4===s?"mjeseca":"mjeseci");case"yy":return u+(1===s?"godina":2===s||3===s||4===s?"godine":"godina")}}o.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(15439))},47980:function(f,L,m){!function(o){"use strict";o.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(n,s){var r=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"\xe8";return("w"===s||"W"===s)&&(r="a"),n+r},week:{dow:1,doy:4}})}(m(15439))},47322:function(f,L,m){!function(o){"use strict";var a={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),s=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function d(h){return h>1&&h<5&&1!=~~(h/10)}function u(h,y,w,v){var S=h+" ";switch(w){case"s":return y||v?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return y||v?S+(d(h)?"sekundy":"sekund"):S+"sekundami";case"m":return y?"minuta":v?"minutu":"minutou";case"mm":return y||v?S+(d(h)?"minuty":"minut"):S+"minutami";case"h":return y?"hodina":v?"hodinu":"hodinou";case"hh":return y||v?S+(d(h)?"hodiny":"hodin"):S+"hodinami";case"d":return y||v?"den":"dnem";case"dd":return y||v?S+(d(h)?"dny":"dn\xed"):S+"dny";case"M":return y||v?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return y||v?S+(d(h)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):S+"m\u011bs\xedci";case"y":return y||v?"rok":"rokem";case"yy":return y||v?S+(d(h)?"roky":"let"):S+"lety"}}o.defineLocale("cs",{months:a,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:u,ss:u,m:u,mm:u,h:u,hh:u,d:u,dd:u,M:u,MM:u,y:u,yy:u},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},90365:function(f,L,m){!function(o){"use strict";o.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(n){return n+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(n)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(n)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(m(15439))},32092:function(f,L,m){!function(o){"use strict";o.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var r="";return n>20?r=40===n||50===n||60===n||80===n||100===n?"fed":"ain":n>0&&(r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][n]),n+r},week:{dow:1,doy:4}})}(m(15439))},77387:function(f,L,m){!function(o){"use strict";o.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},29459:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return r?c[d][0]:c[d][1]}o.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},73694:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return r?c[d][0]:c[d][1]}o.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},54307:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return r?c[d][0]:c[d][1]}o.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},39659:function(f,L,m){!function(o){"use strict";var a=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];o.defineLocale("dv",{months:a,monthsShort:a,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(r){return"\u0789\u078a"===r},meridiem:function(r,d,u){return r<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(m(15439))},3460:function(f,L,m){!function(o){"use strict";o.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(s,r){return s?"string"==typeof r&&/D/.test(r.substring(0,r.indexOf("MMMM")))?this._monthsGenitiveEl[s.month()]:this._monthsNominativeEl[s.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(s,r,d){return s>11?d?"\u03bc\u03bc":"\u039c\u039c":d?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(s){return"\u03bc"===(s+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(s,r){var d=this._calendarEl[s],u=r&&r.hours();return function a(s){return typeof Function<"u"&&s instanceof Function||"[object Function]"===Object.prototype.toString.call(s)}(d)&&(d=d.apply(r)),d.replace("{}",u%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(m(15439))},94369:function(f,L,m){!function(o){"use strict";o.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:0,doy:4}})}(m(15439))},60530:function(f,L,m){!function(o){"use strict";o.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")}})}(m(15439))},9998:function(f,L,m){!function(o){"use strict";o.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(15439))},13391:function(f,L,m){!function(o){"use strict";o.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(15439))},75414:function(f,L,m){!function(o){"use strict";o.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")}})}(m(15439))},19615:function(f,L,m){!function(o){"use strict";o.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:0,doy:6}})}(m(15439))},21248:function(f,L,m){!function(o){"use strict";o.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(15439))},13767:function(f,L,m){!function(o){"use strict";o.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(15439))},84530:function(f,L,m){!function(o){"use strict";o.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,s,r){return n>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(m(15439))},18944:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(15439))},29116:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(m(15439))},83609:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(m(15439))},86866:function(f,L,m){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(m(15439))},96725:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[s+"sekundi",s+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[s+" minuti",s+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[s+" tunni",s+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[s+" kuu",s+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[s+" aasta",s+" aastat"]};return r?c[d][2]?c[d][2]:c[d][1]:u?c[d][0]:c[d][1]}o.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d p\xe4eva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},67931:function(f,L,m){!function(o){"use strict";o.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(15439))},56417:function(f,L,m){!function(o){"use strict";var a={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};o.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(r){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(r)},meridiem:function(r,d,u){return r<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/[\u06f0-\u06f9]/g,function(d){return n[d]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(m(15439))},20944:function(f,L,m){!function(o){"use strict";var a="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",a[7],a[8],a[9]];function s(u,c,h,y){var w="";switch(h){case"s":return y?"muutaman sekunnin":"muutama sekunti";case"ss":w=y?"sekunnin":"sekuntia";break;case"m":return y?"minuutin":"minuutti";case"mm":w=y?"minuutin":"minuuttia";break;case"h":return y?"tunnin":"tunti";case"hh":w=y?"tunnin":"tuntia";break;case"d":return y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":w=y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return y?"kuukauden":"kuukausi";case"MM":w=y?"kuukauden":"kuukautta";break;case"y":return y?"vuoden":"vuosi";case"yy":w=y?"vuoden":"vuotta"}return function r(u,c){return u<10?c?n[u]:a[u]:u}(u,y)+" "+w}o.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},61766:function(f,L,m){!function(o){"use strict";o.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(m(15439))},95867:function(f,L,m){!function(o){"use strict";o.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},16848:function(f,L,m){!function(o){"use strict";o.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,s){switch(s){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}}})}(m(15439))},77773:function(f,L,m){!function(o){"use strict";o.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,s){switch(s){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}})}(m(15439))},1636:function(f,L,m){!function(o){"use strict";var s=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,r=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];o.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(u,c){switch(c){case"D":return u+(1===u?"er":"");default:case"M":case"Q":case"DDD":case"d":return u+(1===u?"er":"e");case"w":case"W":return u+(1===u?"re":"e")}},week:{dow:1,doy:4}})}(m(15439))},14940:function(f,L,m){!function(o){"use strict";var a="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");o.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(r,d){return r?/-MMM-/.test(d)?n[r.month()]:a[r.month()]:a},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(1===r||8===r||r>=20?"ste":"de")},week:{dow:1,doy:4}})}(m(15439))},91402:function(f,L,m){!function(o){"use strict";o.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(c){return c+(1===c?"d":c%10==2?"na":"mh")},week:{dow:1,doy:4}})}(m(15439))},46924:function(f,L,m){!function(o){"use strict";o.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(c){return c+(1===c?"d":c%10==2?"na":"mh")},week:{dow:1,doy:4}})}(m(15439))},16398:function(f,L,m){!function(o){"use strict";o.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return 0===n.indexOf("un")?"n"+n:"en "+n},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(15439))},72457:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[s+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",s+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[s+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",s+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[s+" \u0935\u0930\u093e\u0902\u0928\u0940",s+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[s+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",s+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[s+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",s+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[s+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",s+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return u?c[d][0]:c[d][1]}o.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(s,r){return"D"===r?s+"\u0935\u0947\u0930":s},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(s,r){return 12===s&&(s=0),"\u0930\u093e\u0924\u0940"===r?s<4?s:s+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===r?s:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===r?s>12?s:s+12:"\u0938\u093e\u0902\u091c\u0947"===r?s+12:void 0},meridiem:function(s,r,d){return s<4?"\u0930\u093e\u0924\u0940":s<12?"\u0938\u0915\u093e\u0933\u0940\u0902":s<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":s<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(m(15439))},52545:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c={s:["thoddea sekondamni","thodde sekond"],ss:[s+" sekondamni",s+" sekond"],m:["eka mintan","ek minut"],mm:[s+" mintamni",s+" mintam"],h:["eka voran","ek vor"],hh:[s+" voramni",s+" voram"],d:["eka disan","ek dis"],dd:[s+" disamni",s+" dis"],M:["eka mhoinean","ek mhoino"],MM:[s+" mhoineamni",s+" mhoine"],y:["eka vorsan","ek voros"],yy:[s+" vorsamni",s+" vorsam"]};return u?c[d][0]:c[d][1]}o.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(s,r){return"D"===r?s+"er":s},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(s,r){return 12===s&&(s=0),"rati"===r?s<4?s:s+12:"sokallim"===r?s:"donparam"===r?s>12?s:s+12:"sanje"===r?s+12:void 0},meridiem:function(s,r,d){return s<4?"rati":s<12?"sokallim":s<16?"donparam":s<20?"sanje":"rati"}})}(m(15439))},42641:function(f,L,m){!function(o){"use strict";var a={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};o.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(r){return r.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0ab0\u0abe\u0aa4"===d?r<4?r:r+12:"\u0ab8\u0ab5\u0abe\u0ab0"===d?r:"\u0aac\u0aaa\u0acb\u0ab0"===d?r>=10?r:r+12:"\u0ab8\u0abe\u0a82\u0a9c"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u0ab0\u0abe\u0aa4":r<10?"\u0ab8\u0ab5\u0abe\u0ab0":r<17?"\u0aac\u0aaa\u0acb\u0ab0":r<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(m(15439))},7536:function(f,L,m){!function(o){"use strict";o.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(n){return 2===n?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":n+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(n){return 2===n?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":n+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(n){return 2===n?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":n+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(n){return 2===n?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":n%10==0&&10!==n?n+" \u05e9\u05e0\u05d4":n+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(n){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(n)},meridiem:function(n,s,r){return n<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":n<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":n<12?r?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":n<18?r?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(m(15439))},96335:function(f,L,m){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},s=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];o.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:s,longMonthsParse:s,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(u){return u.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(c){return n[c]})},postformat:function(u){return u.replace(/\d/g,function(c){return a[c]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(u,c){return 12===u&&(u=0),"\u0930\u093e\u0924"===c?u<4?u:u+12:"\u0938\u0941\u092c\u0939"===c?u:"\u0926\u094b\u092a\u0939\u0930"===c?u>=10?u:u+12:"\u0936\u093e\u092e"===c?u+12:void 0},meridiem:function(u,c,h){return u<4?"\u0930\u093e\u0924":u<10?"\u0938\u0941\u092c\u0939":u<17?"\u0926\u094b\u092a\u0939\u0930":u<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(m(15439))},7458:function(f,L,m){!function(o){"use strict";function a(s,r,d){var u=s+" ";switch(d){case"ss":return u+(1===s?"sekunda":2===s||3===s||4===s?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return u+(1===s?"minuta":2===s||3===s||4===s?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return u+(1===s?"sat":2===s||3===s||4===s?"sata":"sati");case"dd":return u+(1===s?"dan":"dana");case"MM":return u+(1===s?"mjesec":2===s||3===s||4===s?"mjeseca":"mjeseci");case"yy":return u+(1===s?"godina":2===s||3===s||4===s?"godine":"godina")}}o.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(15439))},56540:function(f,L,m){!function(o){"use strict";var a="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(d,u,c,h){var y=d;switch(c){case"s":return h||u?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return y+(h||u)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(h||u?" perc":" perce");case"mm":return y+(h||u?" perc":" perce");case"h":return"egy"+(h||u?" \xf3ra":" \xf3r\xe1ja");case"hh":return y+(h||u?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(h||u?" nap":" napja");case"dd":return y+(h||u?" nap":" napja");case"M":return"egy"+(h||u?" h\xf3nap":" h\xf3napja");case"MM":return y+(h||u?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(h||u?" \xe9v":" \xe9ve");case"yy":return y+(h||u?" \xe9v":" \xe9ve")}return""}function s(d){return(d?"":"[m\xfalt] ")+"["+a[this.day()]+"] LT[-kor]"}o.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(d){return"u"===d.charAt(1).toLowerCase()},meridiem:function(d,u,c){return d<12?!0===c?"de":"DE":!0===c?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return s.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return s.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},65283:function(f,L,m){!function(o){"use strict";o.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(n){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(n)},meridiem:function(n){return n<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":n<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":n<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(n,s){switch(s){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-\u056b\u0576":n+"-\u0580\u0564";default:return n}},week:{dow:1,doy:7}})}(m(15439))},98780:function(f,L,m){!function(o){"use strict";o.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,s){return 12===n&&(n=0),"pagi"===s?n:"siang"===s?n>=11?n:n+12:"sore"===s||"malam"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"pagi":n<15?"siang":n<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(m(15439))},14205:function(f,L,m){!function(o){"use strict";function a(r){return r%100==11||r%10!=1}function n(r,d,u,c){var h=r+" ";switch(u){case"s":return d||c?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return a(r)?h+(d||c?"sek\xfandur":"sek\xfandum"):h+"sek\xfanda";case"m":return d?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return a(r)?h+(d||c?"m\xedn\xfatur":"m\xedn\xfatum"):d?h+"m\xedn\xfata":h+"m\xedn\xfatu";case"hh":return a(r)?h+(d||c?"klukkustundir":"klukkustundum"):h+"klukkustund";case"d":return d?"dagur":c?"dag":"degi";case"dd":return a(r)?d?h+"dagar":h+(c?"daga":"d\xf6gum"):d?h+"dagur":h+(c?"dag":"degi");case"M":return d?"m\xe1nu\xf0ur":c?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return a(r)?d?h+"m\xe1nu\xf0ir":h+(c?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):d?h+"m\xe1nu\xf0ur":h+(c?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return d||c?"\xe1r":"\xe1ri";case"yy":return a(r)?h+(d||c?"\xe1r":"\xe1rum"):h+(d||c?"\xe1r":"\xe1ri")}}o.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},29985:function(f,L,m){!function(o){"use strict";o.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(15439))},34211:function(f,L,m){!function(o){"use strict";o.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(15439))},31003:function(f,L,m){!function(o){"use strict";o.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(n,s){return"\u5143"===s[1]?1:parseInt(s[1]||n,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(n){return"\u5348\u5f8c"===n},meridiem:function(n,s,r){return n<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(n){return n.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(n){return this.week()!==n.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(n,s){switch(s){case"y":return 1===n?"\u5143\u5e74":n+"\u5e74";case"d":case"D":case"DDD":return n+"\u65e5";default:return n}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(m(15439))},60420:function(f,L,m){!function(o){"use strict";o.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,s){return 12===n&&(n=0),"enjing"===s?n:"siyang"===s?n>=11?n:n+12:"sonten"===s||"ndalu"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"enjing":n<15?"siyang":n<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(m(15439))},40851:function(f,L,m){!function(o){"use strict";o.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(n){return n.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(s,r,d){return"\u10d8"===d?r+"\u10e8\u10d8":r+d+"\u10e8\u10d8"})},past:function(n){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(n)?n.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(n)?n.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):n},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(n){return 0===n?n:1===n?n+"-\u10da\u10d8":n<20||n<=100&&n%20==0||n%100==0?"\u10db\u10d4-"+n:n+"-\u10d4"},week:{dow:1,doy:7}})}(m(15439))},16074:function(f,L,m){!function(o){"use strict";var a={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};o.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(s){return s+(a[s]||a[s%10]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(15439))},53343:function(f,L,m){!function(o){"use strict";var a={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};o.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(r){return"\u179b\u17d2\u1784\u17b6\u1785"===r},meridiem:function(r,d,u){return r<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(r){return r.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},week:{dow:1,doy:4}})}(m(15439))},44799:function(f,L,m){!function(o){"use strict";var a={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};o.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(r){return r.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===d?r<4?r:r+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===d?r:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===d?r>=10?r:r+12:"\u0cb8\u0c82\u0c9c\u0cc6"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":r<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":r<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":r<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(r){return r+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(m(15439))},13549:function(f,L,m){!function(o){"use strict";o.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\uc77c";case"M":return n+"\uc6d4";case"w":case"W":return n+"\uc8fc";default:return n}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(n){return"\uc624\ud6c4"===n},meridiem:function(n,s,r){return n<12?"\uc624\uc804":"\uc624\ud6c4"}})}(m(15439))},91037:function(f,L,m){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},s=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];o.defineLocale("ku",{months:s,monthsShort:s,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(d){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(d)},meridiem:function(d,u,c){return d<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(d){return d.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(u){return n[u]}).replace(/\u060c/g,",")},postformat:function(d){return d.replace(/\d/g,function(u){return a[u]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(m(15439))},93125:function(f,L,m){!function(o){"use strict";var a={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};o.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(s){return s+(a[s]||a[s%10]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(15439))},69586:function(f,L,m){!function(o){"use strict";function a(u,c,h,y){var w={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return c?w[h][0]:w[h][1]}function r(u){if(u=parseInt(u,10),isNaN(u))return!1;if(u<0)return!0;if(u<10)return 4<=u&&u<=7;if(u<100){var c=u%10;return r(0===c?u/10:c)}if(u<1e4){for(;u>=10;)u/=10;return r(u)}return r(u/=1e3)}o.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function n(u){return r(u.substr(0,u.indexOf(" ")))?"a "+u:"an "+u},past:function s(u){return r(u.substr(0,u.indexOf(" ")))?"viru "+u:"virun "+u},s:"e puer Sekonnen",ss:"%d Sekonnen",m:a,mm:"%d Minutten",h:a,hh:"%d Stonnen",d:a,dd:"%d Deeg",M:a,MM:"%d M\xe9int",y:a,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},32349:function(f,L,m){!function(o){"use strict";o.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(n){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===n},meridiem:function(n,s,r){return n<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(n){return"\u0e97\u0eb5\u0ec8"+n}})}(m(15439))},92400:function(f,L,m){!function(o){"use strict";var a={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function s(h,y,w,v){return y?d(w)[0]:v?d(w)[1]:d(w)[2]}function r(h){return h%10==0||h>10&&h<20}function d(h){return a[h].split("_")}function u(h,y,w,v){var S=h+" ";return 1===h?S+s(0,y,w[0],v):y?S+(r(h)?d(w)[1]:d(w)[0]):v?S+d(w)[1]:S+(r(h)?d(w)[1]:d(w)[2])}o.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function n(h,y,w,v){return y?"kelios sekund\u0117s":v?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:u,m:s,mm:u,h:s,hh:u,d:s,dd:u,M:s,MM:u,y:s,yy:u},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(h){return h+"-oji"},week:{dow:1,doy:4}})}(m(15439))},39991:function(f,L,m){!function(o){"use strict";var a={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(c,h,y){return y?h%10==1&&h%100!=11?c[2]:c[3]:h%10==1&&h%100!=11?c[0]:c[1]}function s(c,h,y){return c+" "+n(a[y],c,h)}function r(c,h,y){return n(a[y],c,h)}o.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function d(c,h){return h?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},28477:function(f,L,m){!function(o){"use strict";var a={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(s,r){return 1===s?r[0]:s>=2&&s<=4?r[1]:r[2]},translate:function(s,r,d){var u=a.words[d];return 1===d.length?r?u[0]:u[1]:s+" "+a.correctGrammaticalCase(s,u)}};o.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mjesec",MM:a.translate,y:"godinu",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(15439))},55118:function(f,L,m){!function(o){"use strict";o.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(15439))},15943:function(f,L,m){!function(o){"use strict";o.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var s=n%10,r=n%100;return 0===n?n+"-\u0435\u0432":0===r?n+"-\u0435\u043d":r>10&&r<20?n+"-\u0442\u0438":1===s?n+"-\u0432\u0438":2===s?n+"-\u0440\u0438":7===s||8===s?n+"-\u043c\u0438":n+"-\u0442\u0438"},week:{dow:1,doy:7}})}(m(15439))},13849:function(f,L,m){!function(o){"use strict";o.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(n,s){return 12===n&&(n=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===s&&n>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===s||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===s?n+12:n},meridiem:function(n,s,r){return n<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":n<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":n<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":n<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(m(15439))},31977:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){switch(d){case"s":return r?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return s+(r?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return s+(r?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return s+(r?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return s+(r?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return s+(r?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return s+(r?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return s}}o.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(s){return"\u04ae\u0425"===s},meridiem:function(s,r,d){return s<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(s,r){switch(r){case"d":case"D":case"DDD":return s+" \u04e9\u0434\u04e9\u0440";default:return s}}})}(m(15439))},66184:function(f,L,m){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function s(d,u,c,h){var y="";if(u)switch(c){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":y="%d \u0924\u093e\u0938";break;case"d":y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":y="%d \u0926\u093f\u0935\u0938";break;case"M":y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(c){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return y.replace(/%d/i,d)}o.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},preparse:function(d){return d.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(u){return n[u]})},postformat:function(d){return d.replace(/\d/g,function(u){return a[u]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(d,u){return 12===d&&(d=0),"\u092a\u0939\u093e\u091f\u0947"===u||"\u0938\u0915\u093e\u0933\u0940"===u?d:"\u0926\u0941\u092a\u093e\u0930\u0940"===u||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===u||"\u0930\u093e\u0924\u094d\u0930\u0940"===u?d>=12?d:d+12:void 0},meridiem:function(d,u,c){return d>=0&&d<6?"\u092a\u0939\u093e\u091f\u0947":d<12?"\u0938\u0915\u093e\u0933\u0940":d<17?"\u0926\u0941\u092a\u093e\u0930\u0940":d<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(m(15439))},64524:function(f,L,m){!function(o){"use strict";o.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,s){return 12===n&&(n=0),"pagi"===s?n:"tengahari"===s?n>=11?n:n+12:"petang"===s||"malam"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(m(15439))},70485:function(f,L,m){!function(o){"use strict";o.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,s){return 12===n&&(n=0),"pagi"===s?n:"tengahari"===s?n>=11?n:n+12:"petang"===s||"malam"===s?n+12:void 0},meridiem:function(n,s,r){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(m(15439))},36681:function(f,L,m){!function(o){"use strict";o.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(15439))},52024:function(f,L,m){!function(o){"use strict";var a={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};o.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(r){return r.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},week:{dow:1,doy:4}})}(m(15439))},42688:function(f,L,m){!function(o){"use strict";o.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},68914:function(f,L,m){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};o.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(r){return r.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0930\u093e\u0924\u093f"===d?r<4?r:r+12:"\u092c\u093f\u0939\u093e\u0928"===d?r:"\u0926\u093f\u0909\u0901\u0938\u094b"===d?r>=10?r:r+12:"\u0938\u093e\u0901\u091d"===d?r+12:void 0},meridiem:function(r,d,u){return r<3?"\u0930\u093e\u0924\u093f":r<12?"\u092c\u093f\u0939\u093e\u0928":r<16?"\u0926\u093f\u0909\u0901\u0938\u094b":r<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(m(15439))},52272:function(f,L,m){!function(o){"use strict";var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(u){return u+(1===u||8===u||u>=20?"ste":"de")},week:{dow:1,doy:4}})}(m(15439))},11758:function(f,L,m){!function(o){"use strict";var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(u,c){return u?/-MMM-/.test(c)?n[u.month()]:a[u.month()]:a},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(u){return u+(1===u||8===u||u>=20?"ste":"de")},week:{dow:1,doy:4}})}(m(15439))},41510:function(f,L,m){!function(o){"use strict";o.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},52797:function(f,L,m){!function(o){"use strict";o.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(n,s){var r=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"\xe8";return("w"===s||"W"===s)&&(r="a"),n+r},week:{dow:1,doy:4}})}(m(15439))},37944:function(f,L,m){!function(o){"use strict";var a={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};o.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(r){return r.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(r,d){return 12===r&&(r=0),"\u0a30\u0a3e\u0a24"===d?r<4?r:r+12:"\u0a38\u0a35\u0a47\u0a30"===d?r:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===d?r>=10?r:r+12:"\u0a38\u0a3c\u0a3e\u0a2e"===d?r+12:void 0},meridiem:function(r,d,u){return r<4?"\u0a30\u0a3e\u0a24":r<10?"\u0a38\u0a35\u0a47\u0a30":r<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":r<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(m(15439))},1605:function(f,L,m){!function(o){"use strict";var a="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(c){return c%10<5&&c%10>1&&~~(c/10)%10!=1}function d(c,h,y){var w=c+" ";switch(y){case"ss":return w+(r(c)?"sekundy":"sekund");case"m":return h?"minuta":"minut\u0119";case"mm":return w+(r(c)?"minuty":"minut");case"h":return h?"godzina":"godzin\u0119";case"hh":return w+(r(c)?"godziny":"godzin");case"ww":return w+(r(c)?"tygodnie":"tygodni");case"MM":return w+(r(c)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return w+(r(c)?"lata":"lat")}}o.defineLocale("pl",{months:function(c,h){return c?/D MMMM/.test(h)?n[c.month()]:a[c.month()]:a},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:d,m:d,mm:d,h:d,hh:d,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:d,M:"miesi\u0105c",MM:d,y:"rok",yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},73840:function(f,L,m){!function(o){"use strict";o.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(m(15439))},54225:function(f,L,m){!function(o){"use strict";o.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(m(15439))},45128:function(f,L,m){!function(o){"use strict";function a(s,r,d){var c=" ";return(s%100>=20||s>=100&&s%100==0)&&(c=" de "),s+c+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[d]}o.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:a,m:"un minut",mm:a,h:"o or\u0103",hh:a,d:"o zi",dd:a,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:a,M:"o lun\u0103",MM:a,y:"un an",yy:a},week:{dow:1,doy:7}})}(m(15439))},35127:function(f,L,m){!function(o){"use strict";function n(d,u,c){return"m"===c?u?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":d+" "+function a(d,u){var c=d.split("_");return u%10==1&&u%100!=11?c[0]:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?c[1]:c[2]}({ss:u?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:u?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[c],+d)}var s=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];o.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(d){if(d.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(d){if(d.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0447\u0430\u0441",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:n,M:"\u043c\u0435\u0441\u044f\u0446",MM:n,y:"\u0433\u043e\u0434",yy:n},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(d){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(d)},meridiem:function(d,u,c){return d<4?"\u043d\u043e\u0447\u0438":d<12?"\u0443\u0442\u0440\u0430":d<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(d,u){switch(u){case"M":case"d":case"DDD":return d+"-\u0439";case"D":return d+"-\u0433\u043e";case"w":case"W":return d+"-\u044f";default:return d}},week:{dow:1,doy:4}})}(m(15439))},32525:function(f,L,m){!function(o){"use strict";var a=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];o.defineLocale("sd",{months:a,monthsShort:a,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,d,u){return r<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(m(15439))},59893:function(f,L,m){!function(o){"use strict";o.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},33123:function(f,L,m){!function(o){"use strict";o.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(n){return n+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(n){return"\u0db4.\u0dc0."===n||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===n},meridiem:function(n,s,r){return n>11?r?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":r?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(m(15439))},59635:function(f,L,m){!function(o){"use strict";var a="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function s(u){return u>1&&u<5}function r(u,c,h,y){var w=u+" ";switch(h){case"s":return c||y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return c||y?w+(s(u)?"sekundy":"sek\xfand"):w+"sekundami";case"m":return c?"min\xfata":y?"min\xfatu":"min\xfatou";case"mm":return c||y?w+(s(u)?"min\xfaty":"min\xfat"):w+"min\xfatami";case"h":return c?"hodina":y?"hodinu":"hodinou";case"hh":return c||y?w+(s(u)?"hodiny":"hod\xedn"):w+"hodinami";case"d":return c||y?"de\u0148":"d\u0148om";case"dd":return c||y?w+(s(u)?"dni":"dn\xed"):w+"d\u0148ami";case"M":return c||y?"mesiac":"mesiacom";case"MM":return c||y?w+(s(u)?"mesiace":"mesiacov"):w+"mesiacmi";case"y":return c||y?"rok":"rokom";case"yy":return c||y?w+(s(u)?"roky":"rokov"):w+"rokmi"}}o.defineLocale("sk",{months:a,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},78106:function(f,L,m){!function(o){"use strict";function a(s,r,d,u){var c=s+" ";switch(d){case"s":return r||u?"nekaj sekund":"nekaj sekundami";case"ss":return c+(1===s?r?"sekundo":"sekundi":2===s?r||u?"sekundi":"sekundah":s<5?r||u?"sekunde":"sekundah":"sekund");case"m":return r?"ena minuta":"eno minuto";case"mm":return c+(1===s?r?"minuta":"minuto":2===s?r||u?"minuti":"minutama":s<5?r||u?"minute":"minutami":r||u?"minut":"minutami");case"h":return r?"ena ura":"eno uro";case"hh":return c+(1===s?r?"ura":"uro":2===s?r||u?"uri":"urama":s<5?r||u?"ure":"urami":r||u?"ur":"urami");case"d":return r||u?"en dan":"enim dnem";case"dd":return c+(1===s?r||u?"dan":"dnem":2===s?r||u?"dni":"dnevoma":r||u?"dni":"dnevi");case"M":return r||u?"en mesec":"enim mesecem";case"MM":return c+(1===s?r||u?"mesec":"mesecem":2===s?r||u?"meseca":"mesecema":s<5?r||u?"mesece":"meseci":r||u?"mesecev":"meseci");case"y":return r||u?"eno leto":"enim letom";case"yy":return c+(1===s?r||u?"leto":"letom":2===s?r||u?"leti":"letoma":s<5?r||u?"leta":"leti":r||u?"let":"leti")}}o.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(15439))},88799:function(f,L,m){!function(o){"use strict";o.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n,s,r){return n<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},52872:function(f,L,m){!function(o){"use strict";var a={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(s,r){return s%10>=1&&s%10<=4&&(s%100<10||s%100>=20)?s%10==1?r[0]:r[1]:r[2]},translate:function(s,r,d,u){var h,c=a.words[d];return 1===d.length?"y"===d&&r?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":u||r?c[0]:c[1]:(h=a.correctGrammaticalCase(s,c),"yy"===d&&r&&"\u0433\u043e\u0434\u0438\u043d\u0443"===h?s+" \u0433\u043e\u0434\u0438\u043d\u0430":s+" "+h)}};o.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(15439))},97949:function(f,L,m){!function(o){"use strict";var a={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(s,r){return s%10>=1&&s%10<=4&&(s%100<10||s%100>=20)?s%10==1?r[0]:r[1]:r[2]},translate:function(s,r,d,u){var h,c=a.words[d];return 1===d.length?"y"===d&&r?"jedna godina":u||r?c[0]:c[1]:(h=a.correctGrammaticalCase(s,c),"yy"===d&&r&&"godinu"===h?s+" godina":s+" "+h)}};o.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(m(15439))},86167:function(f,L,m){!function(o){"use strict";o.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(n,s,r){return n<11?"ekuseni":n<15?"emini":n<19?"entsambama":"ebusuku"},meridiemHour:function(n,s){return 12===n&&(n=0),"ekuseni"===s?n:"emini"===s?n>=11?n:n+12:"entsambama"===s||"ebusuku"===s?0===n?0:n+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(m(15439))},39713:function(f,L,m){!function(o){"use strict";o.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?":e":1===s||2===s?":a":":e")},week:{dow:1,doy:4}})}(m(15439))},41982:function(f,L,m){!function(o){"use strict";o.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(m(15439))},22732:function(f,L,m){!function(o){"use strict";var a={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};o.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(r){return r+"\u0bb5\u0ba4\u0bc1"},preparse:function(r){return r.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(d){return n[d]})},postformat:function(r){return r.replace(/\d/g,function(d){return a[d]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(r,d,u){return r<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":r<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":r<10?" \u0b95\u0bbe\u0bb2\u0bc8":r<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":r<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":r<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(r,d){return 12===r&&(r=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===d?r<2?r:r+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===d||"\u0b95\u0bbe\u0bb2\u0bc8"===d||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===d&&r>=10?r:r+12},week:{dow:0,doy:6}})}(m(15439))},43636:function(f,L,m){!function(o){"use strict";o.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===s?n<4?n:n+12:"\u0c09\u0c26\u0c2f\u0c02"===s?n:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===s?n>=10?n:n+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===s?n+12:void 0},meridiem:function(n,s,r){return n<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":n<10?"\u0c09\u0c26\u0c2f\u0c02":n<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":n<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(m(15439))},2115:function(f,L,m){!function(o){"use strict";o.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(15439))},69801:function(f,L,m){!function(o){"use strict";var a={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};o.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(s,r){return 12===s&&(s=0),"\u0448\u0430\u0431"===r?s<4?s:s+12:"\u0441\u0443\u0431\u04b3"===r?s:"\u0440\u04ef\u0437"===r?s>=11?s:s+12:"\u0431\u0435\u0433\u043e\u04b3"===r?s+12:void 0},meridiem:function(s,r,d){return s<4?"\u0448\u0430\u0431":s<11?"\u0441\u0443\u0431\u04b3":s<16?"\u0440\u04ef\u0437":s<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(s){return s+(a[s]||a[s%10]||a[s>=100?100:null])},week:{dow:1,doy:7}})}(m(15439))},2868:function(f,L,m){!function(o){"use strict";o.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(n){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===n},meridiem:function(n,s,r){return n<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(m(15439))},31310:function(f,L,m){!function(o){"use strict";var a={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};o.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(s,r){switch(r){case"d":case"D":case"Do":case"DD":return s;default:if(0===s)return s+"'unjy";var d=s%10;return s+(a[d]||a[s%100-d]||a[s>=100?100:null])}},week:{dow:1,doy:7}})}(m(15439))},22360:function(f,L,m){!function(o){"use strict";o.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(m(15439))},66645:function(f,L,m){!function(o){"use strict";var a="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(c,h,y,w){var v=function d(c){var h=Math.floor(c%1e3/100),y=Math.floor(c%100/10),w=c%10,v="";return h>0&&(v+=a[h]+"vatlh"),y>0&&(v+=(""!==v?" ":"")+a[y]+"maH"),w>0&&(v+=(""!==v?" ":"")+a[w]),""===v?"pagh":v}(c);switch(y){case"ss":return v+" lup";case"mm":return v+" tup";case"hh":return v+" rep";case"dd":return v+" jaj";case"MM":return v+" jar";case"yy":return v+" DIS"}}o.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function n(c){var h=c;return-1!==c.indexOf("jaj")?h.slice(0,-3)+"leS":-1!==c.indexOf("jar")?h.slice(0,-3)+"waQ":-1!==c.indexOf("DIS")?h.slice(0,-3)+"nem":h+" pIq"},past:function s(c){var h=c;return-1!==c.indexOf("jaj")?h.slice(0,-3)+"Hu\u2019":-1!==c.indexOf("jar")?h.slice(0,-3)+"wen":-1!==c.indexOf("DIS")?h.slice(0,-3)+"ben":h+" ret"},s:"puS lup",ss:r,m:"wa\u2019 tup",mm:r,h:"wa\u2019 rep",hh:r,d:"wa\u2019 jaj",dd:r,M:"wa\u2019 jar",MM:r,y:"wa\u2019 DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},98374:function(f,L,m){!function(o){"use strict";var a={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};o.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(s,r,d){return s<12?d?"\xf6\xf6":"\xd6\xd6":d?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(s){return"\xf6s"===s||"\xd6S"===s},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(s,r){switch(r){case"d":case"D":case"Do":case"DD":return s;default:if(0===s)return s+"'\u0131nc\u0131";var d=s%10;return s+(a[d]||a[s%100-d]||a[s>=100?100:null])}},week:{dow:1,doy:7}})}(m(15439))},256:function(f,L,m){!function(o){"use strict";function n(s,r,d,u){var c={s:["viensas secunds","'iensas secunds"],ss:[s+" secunds",s+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[s+" m\xeduts",s+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[s+" \xfeoras",s+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[s+" ziuas",s+" ziuas"],M:["'n mes","'iens mes"],MM:[s+" mesen",s+" mesen"],y:["'n ar","'iens ar"],yy:[s+" ars",s+" ars"]};return u||r?c[d][0]:c[d][1]}o.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(s){return"d'o"===s.toLowerCase()},meridiem:function(s,r,d){return s>11?d?"d'o":"D'O":d?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(m(15439))},61631:function(f,L,m){!function(o){"use strict";o.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(m(15439))},61595:function(f,L,m){!function(o){"use strict";o.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(m(15439))},6050:function(f,L,m){!function(o){"use strict";o.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===s||"\u0633\u06d5\u06be\u06d5\u0631"===s||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===s?n:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===s||"\u0643\u06d5\u0686"===s?n+12:n>=11?n:n+12},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":d<900?"\u0633\u06d5\u06be\u06d5\u0631":d<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":d<1230?"\u0686\u06c8\u0634":d<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return n+"-\u06be\u06d5\u067e\u062a\u06d5";default:return n}},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(m(15439))},65610:function(f,L,m){!function(o){"use strict";function n(u,c,h){return"m"===h?c?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===h?c?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":u+" "+function a(u,c){var h=u.split("_");return c%10==1&&c%100!=11?h[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?h[1]:h[2]}({ss:c?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:c?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:c?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[h],+u)}function r(u){return function(){return u+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}o.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function s(u,c){var h={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===u?h.nominative.slice(1,7).concat(h.nominative.slice(0,1)):u?h[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(c)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(c)?"genitive":"nominative"][u.day()]:h.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:r("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:r("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:r("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:r("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return r("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:n,y:"\u0440\u0456\u043a",yy:n},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(u){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(u)},meridiem:function(u,c,h){return u<4?"\u043d\u043e\u0447\u0456":u<12?"\u0440\u0430\u043d\u043a\u0443":u<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(u,c){switch(c){case"M":case"d":case"DDD":case"w":case"W":return u+"-\u0439";case"D":return u+"-\u0433\u043e";default:return u}},week:{dow:1,doy:7}})}(m(15439))},86077:function(f,L,m){!function(o){"use strict";var a=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];o.defineLocale("ur",{months:a,monthsShort:a,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,d,u){return r<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(m(15439))},12207:function(f,L,m){!function(o){"use strict";o.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(m(15439))},22862:function(f,L,m){!function(o){"use strict";o.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(m(15439))},48093:function(f,L,m){!function(o){"use strict";o.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(n){return/^ch$/i.test(n)},meridiem:function(n,s,r){return n<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(m(15439))},25590:function(f,L,m){!function(o){"use strict";o.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var s=n%10;return n+(1==~~(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")},week:{dow:1,doy:4}})}(m(15439))},9058:function(f,L,m){!function(o){"use strict";o.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(m(15439))},77908:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:n>=11?n:n+12},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(n){return n.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(n){return this.week()!==n.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u5468";default:return n}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(m(15439))},8867:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e2d\u5348"===s?n>=11?n:n+12:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:void 0},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1200?"\u4e0a\u5348":1200===d?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u9031";default:return n}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(m(15439))},31133:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e2d\u5348"===s?n>=11?n:n+12:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:void 0},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u9031";default:return n}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(m(15439))},83291:function(f,L,m){!function(o){"use strict";o.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,s){return 12===n&&(n=0),"\u51cc\u6668"===s||"\u65e9\u4e0a"===s||"\u4e0a\u5348"===s?n:"\u4e2d\u5348"===s?n>=11?n:n+12:"\u4e0b\u5348"===s||"\u665a\u4e0a"===s?n+12:void 0},meridiem:function(n,s,r){var d=100*n+s;return d<600?"\u51cc\u6668":d<900?"\u65e9\u4e0a":d<1130?"\u4e0a\u5348":d<1230?"\u4e2d\u5348":d<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,s){switch(s){case"d":case"D":case"DDD":return n+"\u65e5";case"M":return n+"\u6708";case"w":case"W":return n+"\u9031";default:return n}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(m(15439))},15439:function(f,L,m){(f=m.nmd(f)).exports=function(){"use strict";var o,G;function a(){return o.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(d(e,t))return!1;return!0}function c(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function w(e,t){var i,_=[],l=e.length;for(i=0;i>>0;for(i=0;i<_;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Pt=a.momentProperties=[],nt=!1;function rt(e,t){var _,i,l,M=Pt.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=k(t)),c(t._locale)||(e._locale=t._locale),M>0)for(_=0;_=0?_?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var ot=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ee=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ut={},Ye={};function g(e,t,_,i){var l=i;"string"==typeof i&&(l=function(){return this[i]()}),e&&(Ye[e]=l),t&&(Ye[t[0]]=function(){return X(l.apply(this,arguments),t[1],t[2])}),_&&(Ye[_]=function(){return this.localeData().ordinal(l.apply(this,arguments),e)})}function Ha(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Fe(e,t){return e.isValid()?(t=Et(t,e.localeData()),ut[t]=ut[t]||function ja(e){var _,i,t=e.match(ot);for(_=0,i=t.length;_=0&&Ee.test(e);)e=e.replace(Ee,i),Ee.lastIndex=0,_-=1;return e}var be={};function R(e,t){var _=e.toLowerCase();be[_]=be[_+"s"]=be[t]=e}function $(e){return"string"==typeof e?be[e]||be[e.toLowerCase()]:void 0}function lt(e){var _,i,t={};for(i in e)d(e,i)&&(_=$(i))&&(t[_]=e[i]);return t}var Ft={};function N(e,t){Ft[e]=t}function ze(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function H(e){var t=+e,_=0;return 0!==t&&isFinite(t)&&(_=B(t)),_}function ye(e,t){return function(_){return null!=_?(zt(this,e,_),a.updateOffset(this,t),this):Re(this,e)}}function Re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function zt(e,t,_){e.isValid()&&!isNaN(_)&&("FullYear"===t&&ze(e.year())&&1===e.month()&&29===e.date()?(_=H(_),e._d["set"+(e._isUTC?"UTC":"")+t](_,e.month(),Ve(_,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](_))}var Ge,Rt=/\d/,C=/\d\d/,Nt=/\d{3}/,mt=/\d{4}/,Ne=/[+-]?\d{6}/,W=/\d\d?/,Jt=/\d\d\d\d?/,It=/\d\d\d\d\d\d?/,Je=/\d{1,3}/,ct=/\d{1,4}/,Ie=/[+-]?\d{1,6}/,pe=/\d+/,Ce=/[+-]?\d+/,Ua=/Z|[+-]\d\d:?\d\d/gi,Ue=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function D(e,t,_){Ge[e]=Q(t)?t:function(i,l){return i&&_?_:t}}function Va(e,t){return d(Ge,e)?Ge[e](t._strict,t._locale):new RegExp(function $a(e){return U(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,_,i,l,M){return _||i||l||M}))}(e))}function U(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ge={};var Mt={};function P(e,t){var _,l,i=t;for("string"==typeof e&&(e=[e]),h(t)&&(i=function(M,Y){Y[t]=H(M)}),l=e.length,_=0;_68?1900:2e3)};var Bt=ye("FullYear",!0);function os(e,t,_,i,l,M,Y){var T;return e<100&&e>=0?(T=new Date(e+400,t,_,i,l,M,Y),isFinite(T.getFullYear())&&T.setFullYear(e)):T=new Date(e,t,_,i,l,M,Y),T}function xe(e){var t,_;return e<100&&e>=0?((_=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,_)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $e(e,t,_){var i=7+t-_;return-(7+xe(e,0,i).getUTCDay()-t)%7+i-1}function Kt(e,t,_,i,l){var b,O,T=1+7*(t-1)+(7+_-i)%7+$e(e,i,l);return T<=0?O=je(b=e-1)+T:T>je(e)?(b=e+1,O=T-je(e)):(b=e,O=T),{year:b,dayOfYear:O}}function Pe(e,t,_){var M,Y,i=$e(e.year(),t,_),l=Math.floor((e.dayOfYear()-i-1)/7)+1;return l<1?M=l+ne(Y=e.year()-1,t,_):l>ne(e.year(),t,_)?(M=l-ne(e.year(),t,_),Y=e.year()+1):(Y=e.year(),M=l),{week:M,year:Y}}function ne(e,t,_){var i=$e(e,t,_),l=$e(e+1,t,_);return(je(e)-i+l)/7}g("w",["ww",2],"wo","week"),g("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),N("week",5),N("isoWeek",5),D("w",W),D("ww",W,C),D("W",W),D("WW",W,C),He(["w","ww","W","WW"],function(e,t,_,i){t[i.substr(0,1)]=H(e)});function ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}g("d",0,"do","day"),g("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),g("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),g("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),g("e",0,0,"weekday"),g("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),D("d",W),D("e",W),D("E",W),D("dd",function(e,t){return t.weekdaysMinRegex(e)}),D("ddd",function(e,t){return t.weekdaysShortRegex(e)}),D("dddd",function(e,t){return t.weekdaysRegex(e)}),He(["dd","ddd","dddd"],function(e,t,_,i){var l=_._locale.weekdaysParse(e,i,_._strict);null!=l?t.d=l:k(_).invalidWeekday=e}),He(["d","e","E"],function(e,t,_,i){t[i]=H(e)});var Ys="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ys="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ps=Se,ks=Se,Ds=Se;function vs(e,t,_){var i,l,M,Y=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)M=S([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(M,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(M,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(M,"").toLocaleLowerCase();return _?"dddd"===t?-1!==(l=F.call(this._weekdaysParse,Y))?l:null:"ddd"===t?-1!==(l=F.call(this._shortWeekdaysParse,Y))?l:null:-1!==(l=F.call(this._minWeekdaysParse,Y))?l:null:"dddd"===t?-1!==(l=F.call(this._weekdaysParse,Y))||-1!==(l=F.call(this._shortWeekdaysParse,Y))||-1!==(l=F.call(this._minWeekdaysParse,Y))?l:null:"ddd"===t?-1!==(l=F.call(this._shortWeekdaysParse,Y))||-1!==(l=F.call(this._weekdaysParse,Y))||-1!==(l=F.call(this._minWeekdaysParse,Y))?l:null:-1!==(l=F.call(this._minWeekdaysParse,Y))||-1!==(l=F.call(this._weekdaysParse,Y))||-1!==(l=F.call(this._shortWeekdaysParse,Y))?l:null}function ft(){function e(I,oe){return oe.length-I.length}var M,Y,T,b,O,t=[],_=[],i=[],l=[];for(M=0;M<7;M++)Y=S([2e3,1]).day(M),T=U(this.weekdaysMin(Y,"")),b=U(this.weekdaysShort(Y,"")),O=U(this.weekdays(Y,"")),t.push(T),_.push(b),i.push(O),l.push(T),l.push(b),l.push(O);t.sort(e),_.sort(e),i.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Lt(){return this.hours()%12||12}function qt(e,t){g(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qt(e,t){return t._meridiemParse}g("H",["HH",2],0,"hour"),g("h",["hh",2],0,Lt),g("k",["kk",2],0,function Ws(){return this.hours()||24}),g("hmm",0,0,function(){return""+Lt.apply(this)+X(this.minutes(),2)}),g("hmmss",0,0,function(){return""+Lt.apply(this)+X(this.minutes(),2)+X(this.seconds(),2)}),g("Hmm",0,0,function(){return""+this.hours()+X(this.minutes(),2)}),g("Hmmss",0,0,function(){return""+this.hours()+X(this.minutes(),2)+X(this.seconds(),2)}),qt("a",!0),qt("A",!1),R("hour","h"),N("hour",13),D("a",Qt),D("A",Qt),D("H",W),D("h",W),D("k",W),D("HH",W,C),D("hh",W,C),D("kk",W,C),D("hmm",Jt),D("hmmss",It),D("Hmm",Jt),D("Hmmss",It),P(["H","HH"],3),P(["k","kk"],function(e,t,_){var i=H(e);t[3]=24===i?0:i}),P(["a","A"],function(e,t,_){_._isPm=_._locale.isPM(e),_._meridiem=e}),P(["h","hh"],function(e,t,_){t[3]=H(e),k(_).bigHour=!0}),P("hmm",function(e,t,_){var i=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i)),k(_).bigHour=!0}),P("hmmss",function(e,t,_){var i=e.length-4,l=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i,2)),t[5]=H(e.substr(l)),k(_).bigHour=!0}),P("Hmm",function(e,t,_){var i=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i))}),P("Hmmss",function(e,t,_){var i=e.length-4,l=e.length-2;t[3]=H(e.substr(0,i)),t[4]=H(e.substr(i,2)),t[5]=H(e.substr(l))});var Fs=ye("Hours",!0);var We,Xt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Qa,monthsShort:Ct,week:{dow:0,doy:6},weekdays:Ys,weekdaysMin:ys,weekdaysShort:Zt,meridiemParse:/[ap]\.?m?\.?/i},E={},Oe={};function Rs(e,t){var _,i=Math.min(e.length,t.length);for(_=0;_0;){if(l=Be(M.slice(0,_).join("-")))return l;if(i&&i.length>=_&&Rs(M,i)>=_-1)break;_--}t++}return We}(e)}function yt(e){var t,_=e._a;return _&&-2===k(e).overflow&&(t=_[1]<0||_[1]>11?1:_[2]<1||_[2]>Ve(_[0],_[1])?2:_[3]<0||_[3]>24||24===_[3]&&(0!==_[4]||0!==_[5]||0!==_[6])?3:_[4]<0||_[4]>59?4:_[5]<0||_[5]>59?5:_[6]<0||_[6]>999?6:-1,k(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),k(e)._overflowWeeks&&-1===t&&(t=7),k(e)._overflowWeekday&&-1===t&&(t=8),k(e).overflow=t),e}var Us=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vs=/Z|[+-]\d\d(?::?\d\d)?/,Ke=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$s=/^\/?Date\((-?\d+)/i,Bs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ks={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ta(e){var t,_,M,Y,T,b,i=e._i,l=Us.exec(i)||Gs.exec(i),O=Ke.length,I=pt.length;if(l){for(k(e).iso=!0,t=0,_=O;t<_;t++)if(Ke[t][1].exec(l[1])){Y=Ke[t][0],M=!1!==Ke[t][2];break}if(null==Y)return void(e._isValid=!1);if(l[3]){for(t=0,_=I;t<_;t++)if(pt[t][1].exec(l[3])){T=(l[2]||" ")+pt[t][0];break}if(null==T)return void(e._isValid=!1)}if(!M&&null!=T)return void(e._isValid=!1);if(l[4]){if(!Vs.exec(l[4]))return void(e._isValid=!1);b="Z"}e._f=Y+(T||"")+(b||""),Dt(e)}else e._isValid=!1}function qs(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function aa(e){var _,t=Bs.exec(function Qs(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(t){if(_=function Zs(e,t,_,i,l,M){var Y=[qs(e),Ct.indexOf(t),parseInt(_,10),parseInt(i,10),parseInt(l,10)];return M&&Y.push(parseInt(M,10)),Y}(t[4],t[3],t[2],t[5],t[6],t[7]),!function Xs(e,t,_){return!e||Zt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(k(_).weekdayMismatch=!0,_._isValid=!1,!1)}(t[1],_,e))return;e._a=_,e._tzm=function en(e,t,_){if(e)return Ks[e];if(t)return 0;var i=parseInt(_,10),l=i%100;return(i-l)/100*60+l}(t[8],t[9],t[10]),e._d=xe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),k(e).rfc2822=!0}else e._isValid=!1}function ke(e,t,_){return e??t??_}function kt(e){var t,_,l,M,Y,i=[];if(!e._d){for(l=function an(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function sn(e){var t,_,i,l,M,Y,T,b,O;null!=(t=e._w).GG||null!=t.W||null!=t.E?(M=1,Y=4,_=ke(t.GG,e._a[0],Pe(A(),1,4).year),i=ke(t.W,1),((l=ke(t.E,1))<1||l>7)&&(b=!0)):(M=e._locale._week.dow,Y=e._locale._week.doy,O=Pe(A(),M,Y),_=ke(t.gg,e._a[0],O.year),i=ke(t.w,O.week),null!=t.d?((l=t.d)<0||l>6)&&(b=!0):null!=t.e?(l=t.e+M,(t.e<0||t.e>6)&&(b=!0)):l=M),i<1||i>ne(_,M,Y)?k(e)._overflowWeeks=!0:null!=b?k(e)._overflowWeekday=!0:(T=Kt(_,i,l,M,Y),e._a[0]=T.year,e._dayOfYear=T.dayOfYear)}(e),null!=e._dayOfYear&&(Y=ke(e._a[0],l[0]),(e._dayOfYear>je(Y)||0===e._dayOfYear)&&(k(e)._overflowDayOfYear=!0),_=xe(Y,0,e._dayOfYear),e._a[1]=_.getUTCMonth(),e._a[2]=_.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=l[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]??(2===t?1:0);24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?xe:os).apply(null,i),M=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==M&&(k(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],k(e).empty=!0;var _,i,l,M,Y,O,I,t=""+e._i,T=t.length,b=0;for(I=(l=Et(e._f,e._locale).match(ot)||[]).length,_=0;_0&&k(e).unusedInput.push(Y),t=t.slice(t.indexOf(i)+i.length),b+=i.length),Ye[M]?(i?k(e).empty=!1:k(e).unusedTokens.push(M),Ba(M,i,e)):e._strict&&!i&&k(e).unusedTokens.push(M);k(e).charsLeftOver=T-b,t.length>0&&k(e).unusedInput.push(t),e._a[3]<=12&&!0===k(e).bigHour&&e._a[3]>0&&(k(e).bigHour=void 0),k(e).parsedDateParts=e._a.slice(0),k(e).meridiem=e._meridiem,e._a[3]=function nn(e,t,_){var i;return null==_?t:null!=e.meridiemHour?e.meridiemHour(t,_):(null!=e.isPM&&((i=e.isPM(_))&&t<12&&(t+=12),!i&&12===t&&(t=0)),t)}(e._locale,e._a[3],e._meridiem),null!==(O=k(e).era)&&(e._a[0]=e._locale.erasConvertYear(O,e._a[0])),kt(e),yt(e)}else aa(e);else ta(e)}function sa(e){var t=e._i,_=e._f;return e._locale=e._locale||re(e._l),null===t||void 0===_&&""===t?Le({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),K(t)?new ve(yt(t)):(y(t)?e._d=t:s(_)?function rn(e){var t,_,i,l,M,Y,T=!1,b=e._f.length;if(0===b)return k(e).invalidFormat=!0,void(e._d=new Date(NaN));for(l=0;lthis?this:e:Le()});function ra(e,t){var _,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return A();for(_=t[0],i=1;i=0?new Date(e+400,t,_)-ha:new Date(e,t,_).valueOf()}function La(e,t,_){return e<100&&e>=0?Date.UTC(e+400,t,_)-ha:Date.UTC(e,t,_)}function bt(e,t){return t.erasAbbrRegex(e)}function St(){var l,M,e=[],t=[],_=[],i=[],Y=this.eras();for(l=0,M=Y.length;l(M=ne(e,i,l))&&(t=M),Wr.call(this,e,t,_,i,l))}function Wr(e,t,_,i,l){var M=Kt(e,t,_,i,l),Y=xe(M.year,0,M.dayOfYear);return this.year(Y.getUTCFullYear()),this.month(Y.getUTCMonth()),this.date(Y.getUTCDate()),this}g("N",0,0,"eraAbbr"),g("NN",0,0,"eraAbbr"),g("NNN",0,0,"eraAbbr"),g("NNNN",0,0,"eraName"),g("NNNNN",0,0,"eraNarrow"),g("y",["y",1],"yo","eraYear"),g("y",["yy",2],0,"eraYear"),g("y",["yyy",3],0,"eraYear"),g("y",["yyyy",4],0,"eraYear"),D("N",bt),D("NN",bt),D("NNN",bt),D("NNNN",function Tr(e,t){return t.erasNameRegex(e)}),D("NNNNN",function vr(e,t){return t.erasNarrowRegex(e)}),P(["N","NN","NNN","NNNN","NNNNN"],function(e,t,_,i){var l=_._locale.erasParse(e,i,_._strict);l?k(_).era=l:k(_).invalidEra=e}),D("y",pe),D("yy",pe),D("yyy",pe),D("yyyy",pe),D("yo",function br(e,t){return t._eraYearOrdinalRegex||pe}),P(["y","yy","yyy","yyyy"],0),P(["yo"],function(e,t,_,i){var l;_._locale._eraYearOrdinalRegex&&(l=e.match(_._locale._eraYearOrdinalRegex)),t[0]=_._locale.eraYearOrdinalParse?_._locale.eraYearOrdinalParse(e,l):parseInt(e,10)}),g(0,["gg",2],0,function(){return this.weekYear()%100}),g(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tt("gggg","weekYear"),tt("ggggg","weekYear"),tt("GGGG","isoWeekYear"),tt("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),D("G",Ce),D("g",Ce),D("GG",W,C),D("gg",W,C),D("GGGG",ct,mt),D("gggg",ct,mt),D("GGGGG",Ie,Ne),D("ggggg",Ie,Ne),He(["gggg","ggggg","GGGG","GGGGG"],function(e,t,_,i){t[i.substr(0,2)]=H(e)}),He(["gg","GG"],function(e,t,_,i){t[i]=a.parseTwoDigitYear(e)}),g("Q",0,"Qo","quarter"),R("quarter","Q"),N("quarter",7),D("Q",Rt),P("Q",function(e,t){t[1]=3*(H(e)-1)}),g("D",["DD",2],"Do","date"),R("date","D"),N("date",9),D("D",W),D("DD",W,C),D("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),P(["D","DD"],2),P("Do",function(e,t){t[2]=H(e.match(W)[0])});var ya=ye("Date",!0);g("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),N("dayOfYear",4),D("DDD",Je),D("DDDD",Nt),P(["DDD","DDDD"],function(e,t,_){_._dayOfYear=H(e)}),g("m",["mm",2],0,"minute"),R("minute","m"),N("minute",14),D("m",W),D("mm",W,C),P(["m","mm"],4);var Fr=ye("Minutes",!1);g("s",["ss",2],0,"second"),R("second","s"),N("second",15),D("s",W),D("ss",W,C),P(["s","ss"],5);var le,pa,zr=ye("Seconds",!1);for(g("S",0,0,function(){return~~(this.millisecond()/100)}),g(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),g(0,["SSS",3],0,"millisecond"),g(0,["SSSS",4],0,function(){return 10*this.millisecond()}),g(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),g(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),g(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),g(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),g(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),N("millisecond",16),D("S",Je,Rt),D("SS",Je,C),D("SSS",Je,Nt),le="SSSS";le.length<=9;le+="S")D(le,pe);function Rr(e,t){t[6]=H(1e3*("0."+e))}for(le="S";le.length<=9;le+="S")P(le,Rr);pa=ye("Milliseconds",!1),g("z",0,0,"zoneAbbr"),g("zz",0,0,"zoneName");var p=ve.prototype;function ka(e){return e}p.add=On,p.calendar=function Nn(e,t){1===arguments.length&&(arguments[0]?An(arguments[0])?(e=arguments[0],t=void 0):zn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var _=e||A(),i=Tt(_,this).startOf("day"),l=a.calendarFormat(this,i)||"sameElse",M=t&&(Q(t[l])?t[l].call(this,_):t[l]);return this.format(M||this.localeData().calendar(l,this,A(_)))},p.clone=function Jn(){return new ve(this)},p.diff=function Bn(e,t,_){var i,l,M;if(!this.isValid())return NaN;if(!(i=Tt(e,this)).isValid())return NaN;switch(l=6e4*(i.utcOffset()-this.utcOffset()),t=$(t)){case"year":M=Qe(this,i)/12;break;case"month":M=Qe(this,i);break;case"quarter":M=Qe(this,i)/3;break;case"second":M=(this-i)/1e3;break;case"minute":M=(this-i)/6e4;break;case"hour":M=(this-i)/36e5;break;case"day":M=(this-i-l)/864e5;break;case"week":M=(this-i-l)/6048e5;break;default:M=this-i}return _?M:B(M)},p.endOf=function nr(e){var t,_;if(void 0===(e=$(e))||"millisecond"===e||!this.isValid())return this;switch(_=this._isUTC?La:fa,e){case"year":t=_(this.year()+1,0,1)-1;break;case"quarter":t=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=_(this.year(),this.month()+1,1)-1;break;case"week":t=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=et-we(t+(this._isUTC?0:this.utcOffset()*De),et)-1;break;case"minute":t=this._d.valueOf(),t+=De-we(t,De)-1;break;case"second":t=this._d.valueOf(),t+=1e3-we(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},p.format=function Qn(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=Fe(this,e);return this.localeData().postformat(t)},p.from=function Xn(e,t){return this.isValid()&&(K(e)&&e.isValid()||A(e).isValid())?q({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},p.fromNow=function er(e){return this.from(A(),e)},p.to=function tr(e,t){return this.isValid()&&(K(e)&&e.isValid()||A(e).isValid())?q({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},p.toNow=function ar(e){return this.to(A(),e)},p.get=function Ia(e){return Q(this[e=$(e)])?this[e]():this},p.invalidAt=function cr(){return k(this).overflow},p.isAfter=function In(e,t){var _=K(e)?e:A(e);return!(!this.isValid()||!_.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()>_.valueOf():_.valueOf()9999?Fe(_,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Q(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Fe(_,"Z")):Fe(_,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},p.inspect=function qn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var _,i,e="moment",t="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),_="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(_+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=function ur(){return this.isValid()?this.toISOString():null},p.toString=function Kn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},p.unix=function _r(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function rr(){return this._d.valueOf()-6e4*(this._offset||0)},p.creationData=function Mr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},p.eraName=function Yr(){var e,t,_,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},p.isLocal=function Sn(){return!!this.isValid()&&!this._isUTC},p.isUtcOffset=function Hn(){return!!this.isValid()&&this._isUTC},p.isUtc=ia,p.isUTC=ia,p.zoneAbbr=function Nr(){return this._isUTC?"UTC":""},p.zoneName=function Jr(){return this._isUTC?"Coordinated Universal Time":""},p.dates=V("dates accessor is deprecated. Use date instead.",ya),p.months=V("months accessor is deprecated. Use month instead",Vt),p.years=V("years accessor is deprecated. Use year instead",Bt),p.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function kn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),p.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function bn(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return rt(e,this),(e=sa(e))._a?(t=e._isUTC?S(e._a):A(e._a),this._isDSTShifted=this.isValid()&&function Yn(e,t,_){var Y,i=Math.min(e.length,t.length),l=Math.abs(e.length-t.length),M=0;for(Y=0;Y0):this._isDSTShifted=!1,this._isDSTShifted});var x=it.prototype;function at(e,t,_,i){var l=re(),M=S().set(i,t);return l[_](M,e)}function Da(e,t,_){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return at(e,t,_,"month");var i,l=[];for(i=0;i<12;i++)l[i]=at(e,i,_,"month");return l}function Ht(e,t,_,i){"boolean"==typeof e?(h(t)&&(_=t,t=void 0),t=t||""):(_=t=e,e=!1,h(t)&&(_=t,t=void 0),t=t||"");var Y,l=re(),M=e?l._week.dow:0,T=[];if(null!=_)return at(t,(_+M)%7,i,"day");for(Y=0;Y<7;Y++)T[Y]=at(t,(Y+M)%7,i,"day");return T}x.calendar=function Sa(e,t,_){var i=this._calendar[e]||this._calendar.sameElse;return Q(i)?i.call(t,_):i},x.longDateFormat=function Pa(e){var t=this._longDateFormat[e],_=this._longDateFormat[e.toUpperCase()];return t||!_?t:(this._longDateFormat[e]=_.match(ot).map(function(i){return"MMMM"===i||"MM"===i||"DD"===i||"dddd"===i?i.slice(1):i}).join(""),this._longDateFormat[e])},x.invalidDate=function Wa(){return this._invalidDate},x.ordinal=function Fa(e){return this._ordinal.replace("%d",e)},x.preparse=ka,x.postformat=ka,x.relativeTime=function Ra(e,t,_,i){var l=this._relativeTime[_];return Q(l)?l(e,t,_,i):l.replace(/%d/i,e)},x.pastFuture=function Na(e,t){var _=this._relativeTime[e>0?"future":"past"];return Q(_)?_(t):_.replace(/%s/i,t)},x.set=function va(e){var t,_;for(_ in e)d(e,_)&&(Q(t=e[_])?this[_]=t:this["_"+_]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},x.eras=function hr(e,t){var _,i,l,M=this._eras||re("en")._eras;for(_=0,i=M.length;_=0)return M[i]},x.erasConvertYear=function Lr(e,t){var _=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*_},x.erasAbbrRegex=function wr(e){return d(this,"_erasAbbrRegex")||St.call(this),e?this._erasAbbrRegex:this._erasRegex},x.erasNameRegex=function Dr(e){return d(this,"_erasNameRegex")||St.call(this),e?this._erasNameRegex:this._erasRegex},x.erasNarrowRegex=function gr(e){return d(this,"_erasNarrowRegex")||St.call(this),e?this._erasNarrowRegex:this._erasRegex},x.months=function ts(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ut).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},x.monthsShort=function as(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ut.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},x.monthsParse=function ns(e,t,_){var i,l,M;if(this._monthsParseExact)return ss.call(this,e,t,_);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(l=S([2e3,i]),_&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(l,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(l,"").replace(".","")+"$","i")),!_&&!this._monthsParse[i]&&(M="^"+this.months(l,"")+"|^"+this.monthsShort(l,""),this._monthsParse[i]=new RegExp(M.replace(".",""),"i")),_&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(_&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!_&&this._monthsParse[i].test(e))return i}},x.monthsRegex=function is(e){return this._monthsParseExact?(d(this,"_monthsRegex")||$t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},x.monthsShortRegex=function _s(e){return this._monthsParseExact?(d(this,"_monthsRegex")||$t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Xa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},x.week=function us(e){return Pe(e,this._week.dow,this._week.doy).week},x.firstDayOfYear=function cs(){return this._week.doy},x.firstDayOfWeek=function ms(){return this._week.dow},x.weekdays=function ws(e,t){var _=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ht(_,this._week.dow):e?_[e.day()]:_},x.weekdaysMin=function Ts(e){return!0===e?ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},x.weekdaysShort=function gs(e){return!0===e?ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},x.weekdaysParse=function bs(e,t,_){var i,l,M;if(this._weekdaysParseExact)return vs.call(this,e,t,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(l=S([2e3,1]).day(i),_&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(l,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(l,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(l,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(M="^"+this.weekdays(l,"")+"|^"+this.weekdaysShort(l,"")+"|^"+this.weekdaysMin(l,""),this._weekdaysParse[i]=new RegExp(M.replace(".",""),"i")),_&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(_&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(_&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!_&&this._weekdaysParse[i].test(e))return i}},x.weekdaysRegex=function xs(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=ps),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},x.weekdaysShortRegex=function Ps(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ks),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},x.weekdaysMinRegex=function Os(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ds),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},x.isPM=function As(e){return"p"===(e+"").toLowerCase().charAt(0)},x.meridiem=function zs(e,t,_){return e>11?_?"pm":"PM":_?"am":"AM"},ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===H(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=V("moment.lang is deprecated. Use moment.locale instead.",ue),a.langData=V("moment.langData is deprecated. Use moment.localeData instead.",re);var _e=Math.abs;function wa(e,t,_,i){var l=q(t,_);return e._milliseconds+=i*l._milliseconds,e._days+=i*l._days,e._months+=i*l._months,e._bubble()}function ga(e){return e<0?Math.floor(e):Math.ceil(e)}function Ta(e){return 4800*e/146097}function jt(e){return 146097*e/4800}function ie(e){return function(){return this.as(e)}}var t_=ie("ms"),a_=ie("s"),s_=ie("m"),n_=ie("h"),r_=ie("d"),__=ie("w"),i_=ie("M"),d_=ie("Q"),o_=ie("y");function he(e){return function(){return this.isValid()?this._data[e]:NaN}}var m_=he("milliseconds"),c_=he("seconds"),M_=he("minutes"),h_=he("hours"),f_=he("days"),L_=he("months"),Y_=he("years");var de=Math.round,ge={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function p_(e,t,_,i,l){return l.relativeTime(t||1,!!_,e,i)}var xt=Math.abs;function Te(e){return(e>0)-(e<0)||+e}function st(){if(!this.isValid())return this.localeData().invalidDate();var i,l,M,Y,b,O,I,oe,e=xt(this._milliseconds)/1e3,t=xt(this._days),_=xt(this._months),T=this.asSeconds();return T?(i=B(e/60),l=B(i/60),e%=60,i%=60,M=B(_/12),_%=12,Y=e?e.toFixed(3).replace(/\.?0+$/,""):"",b=T<0?"-":"",O=Te(this._months)!==Te(T)?"-":"",I=Te(this._days)!==Te(T)?"-":"",oe=Te(this._milliseconds)!==Te(T)?"-":"",b+"P"+(M?O+M+"Y":"")+(_?O+_+"M":"")+(t?I+t+"D":"")+(l||i||e?"T":"")+(l?oe+l+"H":"")+(i?oe+i+"M":"")+(e?oe+Y+"S":"")):"P0D"}var j=Ze.prototype;return j.isValid=function fn(){return this._isValid},j.abs=function Kr(){var e=this._data;return this._milliseconds=_e(this._milliseconds),this._days=_e(this._days),this._months=_e(this._months),e.milliseconds=_e(e.milliseconds),e.seconds=_e(e.seconds),e.minutes=_e(e.minutes),e.hours=_e(e.hours),e.months=_e(e.months),e.years=_e(e.years),this},j.add=function Zr(e,t){return wa(this,e,t,1)},j.subtract=function qr(e,t){return wa(this,e,t,-1)},j.as=function Xr(e){if(!this.isValid())return NaN;var t,_,i=this._milliseconds;if("month"===(e=$(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,_=this._months+Ta(t),e){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(t=this._days+Math.round(jt(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},j.asMilliseconds=t_,j.asSeconds=a_,j.asMinutes=s_,j.asHours=n_,j.asDays=r_,j.asWeeks=__,j.asMonths=i_,j.asQuarters=d_,j.asYears=o_,j.valueOf=function e_(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},j._bubble=function Qr(){var l,M,Y,T,b,e=this._milliseconds,t=this._days,_=this._months,i=this._data;return e>=0&&t>=0&&_>=0||e<=0&&t<=0&&_<=0||(e+=864e5*ga(jt(_)+t),t=0,_=0),i.milliseconds=e%1e3,l=B(e/1e3),i.seconds=l%60,M=B(l/60),i.minutes=M%60,Y=B(M/60),i.hours=Y%24,t+=B(Y/24),_+=b=B(Ta(t)),t-=ga(jt(b)),T=B(_/12),_%=12,i.days=t,i.months=_,i.years=T,this},j.clone=function u_(){return q(this)},j.get=function l_(e){return e=$(e),this.isValid()?this[e+"s"]():NaN},j.milliseconds=m_,j.seconds=c_,j.minutes=M_,j.hours=h_,j.days=f_,j.weeks=function y_(){return B(this.days()/7)},j.months=L_,j.years=Y_,j.humanize=function g_(e,t){if(!this.isValid())return this.localeData().invalidDate();var l,M,_=!1,i=ge;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(_=e),"object"==typeof t&&(i=Object.assign({},ge,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),M=function k_(e,t,_,i){var l=q(e).abs(),M=de(l.as("s")),Y=de(l.as("m")),T=de(l.as("h")),b=de(l.as("d")),O=de(l.as("M")),I=de(l.as("w")),oe=de(l.as("y")),me=M<=_.ss&&["s",M]||M<_.s&&["ss",M]||Y<=1&&["m"]||Y<_.m&&["mm",Y]||T<=1&&["h"]||T<_.h&&["hh",T]||b<=1&&["d"]||b<_.d&&["dd",b];return null!=_.w&&(me=me||I<=1&&["w"]||I<_.w&&["ww",I]),(me=me||O<=1&&["M"]||O<_.M&&["MM",O]||oe<=1&&["y"]||["yy",oe])[2]=t,me[3]=+e>0,me[4]=i,p_.apply(null,me)}(this,!_,i,l=this.localeData()),_&&(M=l.pastFuture(+this,M)),l.postformat(M)},j.toISOString=st,j.toString=st,j.toJSON=st,j.locale=ma,j.localeData=Ma,j.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",st),j.lang=ca,g("X",0,0,"unix"),g("x",0,0,"valueOf"),D("x",Ce),D("X",/[+-]?\d+(\.\d{1,3})?/),P("X",function(e,t,_){_._d=new Date(1e3*parseFloat(e))}),P("x",function(e,t,_){_._d=new Date(H(e))}),a.version="2.29.4",function n(e){o=e}(A),a.fn=p,a.min=function mn(){return ra("isBefore",[].slice.call(arguments,0))},a.max=function cn(){return ra("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=S,a.unix=function Ir(e){return A(1e3*e)},a.months=function Ur(e,t){return Da(e,t,"months")},a.isDate=y,a.locale=ue,a.invalid=Le,a.duration=q,a.isMoment=K,a.weekdays=function Vr(e,t,_){return Ht(e,t,_,"weekdays")},a.parseZone=function Cr(){return A.apply(null,arguments).parseZone()},a.localeData=re,a.isDuration=qe,a.monthsShort=function Gr(e,t){return Da(e,t,"monthsShort")},a.weekdaysMin=function Br(e,t,_){return Ht(e,t,_,"weekdaysMin")},a.defineLocale=Yt,a.updateLocale=function Is(e,t){if(null!=t){var _,i,l=Xt;null!=E[e]&&null!=E[e].parentLocale?E[e].set(_t(E[e]._config,t)):(null!=(i=Be(e))&&(l=i._config),t=_t(l,t),null==i&&(t.abbr=e),(_=new it(t)).parentLocale=E[e],E[e]=_),ue(e)}else null!=E[e]&&(null!=E[e].parentLocale?(E[e]=E[e].parentLocale,e===ue()&&ue(e)):null!=E[e]&&delete E[e]);return E[e]},a.locales=function Cs(){return dt(E)},a.weekdaysShort=function $r(e,t,_){return Ht(e,t,_,"weekdaysShort")},a.normalizeUnits=$,a.relativeTimeRounding=function D_(e){return void 0===e?de:"function"==typeof e&&(de=e,!0)},a.relativeTimeThreshold=function w_(e,t){return void 0!==ge[e]&&(void 0===t?ge[e]:(ge[e]=t,"s"===e&&(ge.ss=t-1),!0))},a.calendarFormat=function Rn(e,t){var _=e.diff(t,"days",!0);return _<-6?"sameElse":_<-1?"lastWeek":_<0?"lastDay":_<1?"sameDay":_<2?"nextDay":_<7?"nextWeek":"sameElse"},a.prototype=p,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()},46700:(f,L,m)=>{var o={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function a(s){var r=n(s);return m(r)}function n(s){if(!m.o(o,s)){var r=new Error("Cannot find module '"+s+"'");throw r.code="MODULE_NOT_FOUND",r}return o[s]}a.keys=function(){return Object.keys(o)},a.resolve=n,f.exports=a,a.id=46700}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5496.db6bcc08e38c6d12.js b/apps/n/porrtal-io-app/public/angular/5496.db6bcc08e38c6d12.js deleted file mode 100644 index f25cbea0..00000000 --- a/apps/n/porrtal-io-app/public/angular/5496.db6bcc08e38c6d12.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5496],{15496:(st,Ve,Re)=>{Re.r(Ve),Re.d(Ve,{validate:()=>nt});var He=Re(26584),Ee=Re(1719),Ne={exports:{}};Ne.exports=function A($,C,e){function l(m,h){if(!C[m]){if(!$[m]){var j="function"==typeof Ee.a&&Ee.a;if(!h&&j)return j(m,!0);if(t)return t(m,!0);var g=new Error("Cannot find module '"+m+"'");throw g.code="MODULE_NOT_FOUND",g}var o=C[m]={exports:{}};$[m][0].call(o.exports,function(c){return l($[m][1][c]||c)},o,o.exports,A,$,C,e)}return C[m].exports}for(var t="function"==typeof Ee.a&&Ee.a,i=0;i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,g=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,o=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,c=/^(?:\/(?:[^~/]|~0|~1)*)*$/,v=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,s=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function u(P){return e.copy(u[P="full"==P?"full":"fast"])}function p(P){var x=P.match(l);if(!x)return!1;var _,S=+x[2],L=+x[3];return 1<=S&&S<=12&&1<=L&&L<=(2!=S||(_=+x[1])%4!=0||_%100==0&&_%400!=0?t[S]:29)}function a(P,x){var _=P.match(i);if(!_)return!1;var n=_[1],S=_[2],L=_[3];return(n<=23&&S<=59&&L<=59||23==n&&59==S&&60==L)&&(!x||_[5])}($.exports=u).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":j,url:g,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:m,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:I,uuid:o,"json-pointer":c,"json-pointer-uri-fragment":v,"relative-json-pointer":s},u.full={date:p,time:a,"date-time":function(P){var x=P.split(b);return 2==x.length&&p(x[0])&&a(x[1],!0)},uri:function(P){return f.test(P)&&h.test(P)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":j,url:g,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:m,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:I,uuid:o,"json-pointer":c,"json-pointer-uri-fragment":v,"relative-json-pointer":s};var b=/t|\s/i,f=/\/|:/,y=/[^\\]\\Z/;function I(P){if(y.test(P))return!1;try{return new RegExp(P),!0}catch{return!1}}},{"./util":10}],5:[function(A,$,C){var e=A("./resolve"),l=A("./util"),t=A("./error_classes"),i=A("fast-json-stable-stringify"),m=A("../dotjs/validate"),h=l.ucs2length,j=A("fast-deep-equal"),g=t.Validation;function c(b,f,y){for(var I=0;I",L=P?">":"<",D=void 0;if(!y&&"number"!=typeof u&&void 0!==u)throw new Error(l+" must be number");if(!n&&void 0!==_&&"number"!=typeof _&&"boolean"!=typeof _)throw new Error(x+" must be number or boolean");n?(h="exclIsNumber"+v,j="' + "+(g="op"+v)+" + '",c+=" var schemaExcl"+v+" = "+e.util.getData(_.$data,s,e.dataPathArr)+"; ",D=x,(o=o||[]).push(c+=" var "+(i="exclusive"+v)+"; var "+(m="exclType"+v)+" = typeof "+(t="schemaExcl"+v)+"; if ("+m+" != 'boolean' && "+m+" != 'undefined' && "+m+" != 'number') { "),c="",!1!==e.createErrors?(c+=" { keyword: '"+(D||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(a)+" , params: {} ",!1!==e.opts.messages&&(c+=" , message: '"+x+" should be boolean' "),e.opts.verbose&&(c+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),c+=" } "):c+=" {} ",E=c,c=o.pop(),c+=!e.compositeRule&&b?e.async?" throw new ValidationError(["+E+"]); ":" validate.errors = ["+E+"]; return false; ":" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+=" } else if ( ",y&&(c+=" ("+I+" !== undefined && typeof "+I+" != 'number') || "),c+=" "+m+" == 'number' ? ( ("+i+" = "+I+" === undefined || "+t+" "+S+"= "+I+") ? "+f+" "+L+"= "+t+" : "+f+" "+L+" "+I+" ) : ( ("+i+" = "+t+" === true) ? "+f+" "+L+"= "+I+" : "+f+" "+L+" "+I+" ) || "+f+" !== "+f+") { var op"+v+" = "+i+" ? '"+S+"' : '"+S+"='; ",void 0===u&&(D=x,a=e.errSchemaPath+"/"+x,I=t,y=n)):(j=S,(h="number"==typeof _)&&y?(g="'"+j+"'",c+=" if ( ",y&&(c+=" ("+I+" !== undefined && typeof "+I+" != 'number') || "),c+=" ( "+I+" === undefined || "+_+" "+S+"= "+I+" ? "+f+" "+L+"= "+_+" : "+f+" "+L+" "+I+" ) || "+f+" !== "+f+") { "):(h&&void 0===u?(i=!0,D=x,a=e.errSchemaPath+"/"+x,I=_,L+="="):(h&&(I=Math[P?"min":"max"](_,u)),_===(!h||I)?(i=!0,D=x,a=e.errSchemaPath+"/"+x,L+="="):(i=!1,j+="=")),g="'"+j+"'",c+=" if ( ",y&&(c+=" ("+I+" !== undefined && typeof "+I+" != 'number') || "),c+=" "+f+" "+L+" "+I+" || "+f+" !== "+f+") { ")),D=D||l,(o=o||[]).push(c),c="",!1!==e.createErrors?(c+=" { keyword: '"+(D||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(a)+" , params: { comparison: "+g+", limit: "+I+", exclusive: "+i+" } ",!1!==e.opts.messages&&(c+=" , message: 'should be "+j+" ",c+=y?"' + "+I:I+"'"),e.opts.verbose&&(c+=" , schema: ",c+=y?"validate.schema"+p:""+u,c+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),c+=" } "):c+=" {} ";var E=c;return c=o.pop(),c+=!e.compositeRule&&b?e.async?" throw new ValidationError(["+E+"]); ":" validate.errors = ["+E+"]; return false; ":" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+=" } ",b&&(c+=" else { "),c}},{}],14:[function(A,$,C){$.exports=function(e,l){var t=" ",i=e.level,m=e.dataLevel,h=e.schema[l],j=e.schemaPath+e.util.getProperty(l),g=e.errSchemaPath+"/"+l,o=!e.opts.allErrors,c="data"+(m||""),v=e.opts.$data&&h&&h.$data,s=v?(t+=" var schema"+i+" = "+e.util.getData(h.$data,m,e.dataPathArr)+"; ","schema"+i):h;if(!v&&"number"!=typeof h)throw new Error(l+" must be number");t+="if ( ",v&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || ");var u=l,p=p||[];p.push(t+=" "+c+".length "+("maxItems"==l?">":"<")+" "+s+") { "),t="",!1!==e.createErrors?(t+=" { keyword: '"+(u||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(g)+" , params: { limit: "+s+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have ",t+="maxItems"==l?"more":"fewer",t+=" than ",t+=v?"' + "+s+" + '":""+h,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",t+=v?"validate.schema"+j:""+h,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var a=t;return t=p.pop(),t+=!e.compositeRule&&o?e.async?" throw new ValidationError(["+a+"]); ":" validate.errors = ["+a+"]; return false; ":" var err = "+a+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",o&&(t+=" else { "),t}},{}],15:[function(A,$,C){$.exports=function(e,l){var t=" ",i=e.level,m=e.dataLevel,h=e.schema[l],j=e.schemaPath+e.util.getProperty(l),g=e.errSchemaPath+"/"+l,o=!e.opts.allErrors,c="data"+(m||""),v=e.opts.$data&&h&&h.$data,s=v?(t+=" var schema"+i+" = "+e.util.getData(h.$data,m,e.dataPathArr)+"; ","schema"+i):h;if(!v&&"number"!=typeof h)throw new Error(l+" must be number");t+="if ( ",v&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=!1===e.opts.unicode?" "+c+".length ":" ucs2length("+c+") ";var p=l,a=a||[];a.push(t+=" "+("maxLength"==l?">":"<")+" "+s+") { "),t="",!1!==e.createErrors?(t+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(g)+" , params: { limit: "+s+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT be ",t+="maxLength"==l?"longer":"shorter",t+=" than ",t+=v?"' + "+s+" + '":""+h,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",t+=v?"validate.schema"+j:""+h,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var b=t;return t=a.pop(),t+=!e.compositeRule&&o?e.async?" throw new ValidationError(["+b+"]); ":" validate.errors = ["+b+"]; return false; ":" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",o&&(t+=" else { "),t}},{}],16:[function(A,$,C){$.exports=function(e,l){var t=" ",i=e.level,m=e.dataLevel,h=e.schema[l],j=e.schemaPath+e.util.getProperty(l),g=e.errSchemaPath+"/"+l,o=!e.opts.allErrors,c="data"+(m||""),v=e.opts.$data&&h&&h.$data,s=v?(t+=" var schema"+i+" = "+e.util.getData(h.$data,m,e.dataPathArr)+"; ","schema"+i):h;if(!v&&"number"!=typeof h)throw new Error(l+" must be number");t+="if ( ",v&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || ");var u=l,p=p||[];p.push(t+=" Object.keys("+c+").length "+("maxProperties"==l?">":"<")+" "+s+") { "),t="",!1!==e.createErrors?(t+=" { keyword: '"+(u||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(g)+" , params: { limit: "+s+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have ",t+="maxProperties"==l?"more":"fewer",t+=" than ",t+=v?"' + "+s+" + '":""+h,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",t+=v?"validate.schema"+j:""+h,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var a=t;return t=p.pop(),t+=!e.compositeRule&&o?e.async?" throw new ValidationError(["+a+"]); ":" validate.errors = ["+a+"]; return false; ":" var err = "+a+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",o&&(t+=" else { "),t}},{}],17:[function(A,$,C){$.exports=function(e,l){var t=" ",i=e.schema[l],m=e.schemaPath+e.util.getProperty(l),h=e.errSchemaPath+"/"+l,j=!e.opts.allErrors,g=e.util.copy(e),o="";g.level++;var c="valid"+g.level,v=g.baseId,s=!0,u=i;if(u)for(var p,a=-1,b=u.length-1;a "+L+") { ",E=c+"["+L+"]",u.schema=O,u.schemaPath=j+"["+L+"]",u.errSchemaPath=g+"/"+L,u.errorPath=e.util.getPathExpr(e.errorPath,L,e.opts.jsonPointers,!0),u.dataPathArr[f]=L,q=e.validate(u),u.baseId=I,e.util.varOccurences(q,y)<2?t+=" "+e.util.varReplace(q,y,E)+" ":t+=" var "+y+" = "+E+"; "+q+" ",t+=" } ",o&&(t+=" if ("+a+") { ",p+="}"))}"object"==typeof n&&(e.opts.strictKeywords?"object"==typeof n&&0 "+h.length+") { for (var "+b+" = "+h.length+"; "+b+" < "+c+".length; "+b+"++) { ",u.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0),E=c+"["+b+"]",u.dataPathArr[f]=b,q=e.validate(u),u.baseId=I,e.util.varOccurences(q,y)<2?t+=" "+e.util.varReplace(q,y,E)+" ":t+=" var "+y+" = "+E+"; "+q+" ",o&&(t+=" if (!"+a+") break; "),t+=" } } ",o&&(t+=" if ("+a+") { ",p+="}"))}else(e.opts.strictKeywords?"object"==typeof h&&0 1e-"+e.opts.multipleOfPrecision+" ":" division"+i+" !== parseInt(division"+i+") ",t+=" ) ",v&&(t+=" ) ");var u=u||[];u.push(t+=" ) { "),t="",!1!==e.createErrors?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(g)+" , params: { multipleOf: "+s+" } ",!1!==e.opts.messages&&(t+=" , message: 'should be multiple of ",t+=v?"' + "+s:s+"'"),e.opts.verbose&&(t+=" , schema: ",t+=v?"validate.schema"+j:""+h,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var p=t;return t=u.pop(),t+=!e.compositeRule&&o?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",o&&(t+=" else { "),t}},{}],30:[function(A,$,C){$.exports=function(e,l){var t=" ",i=e.level,m=e.dataLevel,h=e.schema[l],j=e.schemaPath+e.util.getProperty(l),g=e.errSchemaPath+"/"+l,o=!e.opts.allErrors,c="data"+(m||""),v="errs__"+i,s=e.util.copy(e);s.level++;var u,p,a,b,f="valid"+s.level;return(e.opts.strictKeywords?"object"==typeof h&&0=e.opts.loopRequired,_=e.opts.ownProperties;if(o)if(t+=" var missing"+i+"; ",x){s||(t+=" var "+u+" = validate.schema"+j+"; ");var n="' + "+(O="schema"+i+"["+(E="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,O,e.opts.jsonPointers)),t+=" var "+v+" = true; ",s&&(t+=" if (schema"+i+" === undefined) "+v+" = true; else if (!Array.isArray(schema"+i+")) "+v+" = false; else {"),t+=" for (var "+E+" = 0; "+E+" < "+u+".length; "+E+"++) { "+v+" = "+c+"["+u+"["+E+"]] !== undefined ",_&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", "+u+"["+E+"]) "),t+="; if (!"+v+") break; } ",s&&(t+=" } "),(L=L||[]).push(t+=" if (!"+v+") { "),t="",!1!==e.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(g)+" , params: { missingProperty: '"+n+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+n+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+j+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var S=t;t=L.pop(),t+=!e.compositeRule&&o?e.async?" throw new ValidationError(["+S+"]); ":" validate.errors = ["+S+"]; return false; ":" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var L,D=p;if(D)for(var E=-1,q=D.length-1;E 1) { ",t=e.schema.items&&e.schema.items.type,i=Array.isArray(t),!t||"object"==t||"array"==t||i&&(0<=t.indexOf("object")||0<=t.indexOf("array"))?g+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+a+"[i], "+a+"[j])) { "+b+" = false; break outer; } } } ":(g+=" var itemIndices = {}, item; for (;i--;) { var item = "+a+"[i]; ",g+=" if ("+e.util["checkDataType"+(i?"s":"")](t,"item",e.opts.strictNumbers,!0)+") continue; ",i&&(g+=" if (typeof item == 'string') item = '\"' + item; "),g+=" if (typeof itemIndices[item] == 'number') { "+b+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),g+=" } ",f&&(g+=" } "),(h=h||[]).push(g+=" if (!"+b+") { "),g="",!1!==e.createErrors?(g+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(g+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(g+=" , schema: ",g+=f?"validate.schema"+s:""+v,g+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "),g+=" } "):g+=" {} ",j=g,g=h.pop(),g+=!e.compositeRule&&p?e.async?" throw new ValidationError(["+j+"]); ":" validate.errors = ["+j+"]; return false; ":" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g+=" } ",p&&(g+=" else { ")):p&&(g+=" if (true) { "),g}},{}],38:[function(A,$,C){$.exports=function(e,l){var t="",i=!0===e.schema.$async,m=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),h=e.self._getId(e.schema);if(e.opts.strictKeywords){var j=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(j){var g="unknown keyword: "+j;if("log"!==e.opts.strictKeywords)throw new Error(g);e.logger.warn(g)}}if(e.isTop&&(t+=" var validate = ",i&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",h&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" /*# sourceURL="+h+" */ ")),"boolean"==typeof e.schema||!m&&!e.schema.$ref){var o=e.level,c=e.dataLevel,v=e.schema[l="false schema"],s=e.schemaPath+e.util.getProperty(l),u=e.errSchemaPath+"/"+l,p=!e.opts.allErrors,a="data"+(c||""),b="valid"+o;return!1===e.schema?(e.isTop?p=!0:t+=" var "+b+" = false; ",(Q=Q||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "),t+=" } "):t+=" {} ",N=t,t=Q.pop(),t+=!e.compositeRule&&p?e.async?" throw new ValidationError(["+N+"]); ":" validate.errors = ["+N+"]; return false; ":" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):t+=e.isTop?i?" return data; ":" validate.errors = null; return true; ":" var "+b+" = true; ",e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var f=e.isTop;if(o=e.level=0,c=e.dataLevel=0,a="data",e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[void 0],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var y="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{if(o=e.level,a="data"+((c=e.dataLevel)||""),h&&(e.baseId=e.resolve.url(e.baseId,h)),i&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+o+" = errors;"}b="valid"+o,p=!e.opts.allErrors;var I,P="",x="",_=e.schema.type,n=Array.isArray(_);if(_&&e.opts.nullable&&!0===e.schema.nullable&&(n?-1==_.indexOf("null")&&(_=_.concat("null")):"null"!=_&&(_=[_,"null"],n=!0)),n&&1==_.length&&(_=_[0],n=!1),e.schema.$ref&&m){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(m=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),_){e.opts.coerceTypes&&(I=e.util.coerceToTypes(e.opts.coerceTypes,_));var S=e.RULES.types[_];if(I||n||!0===S||S&&!fe(S)){if(s=e.schemaPath+".type",u=e.errSchemaPath+"/type",s=e.schemaPath+".type",u=e.errSchemaPath+"/type",t+=" if ("+e.util[n?"checkDataTypes":"checkDataType"](_,a,e.opts.strictNumbers,!0)+") { ",I){var D="dataType"+o,E="coerced"+o;t+=" var "+D+" = typeof "+a+"; var "+E+" = undefined; ","array"==e.opts.coerceTypes&&(t+=" if ("+D+" == 'object' && Array.isArray("+a+") && "+a+".length == 1) { "+a+" = "+a+"[0]; "+D+" = typeof "+a+"; if ("+e.util.checkDataType(e.schema.type,a,e.opts.strictNumbers)+") "+E+" = "+a+"; } "),t+=" if ("+E+" !== undefined) ; ";var q=I;if(q)for(var O,M=-1,H=q.length-1;M= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=Math.floor,f=String.fromCharCode;function y(r){throw new RangeError(a[r])}function I(r,d){var w=r.split("@"),T="";return 1>1,r+=b(r/d);455b((v-R)/we)&&y("overflow"),R+=(ge-T)*we,T=ge;var Pe=!0,De=!1,xe=void 0;try{for(var Ge,Me=r[Symbol.iterator]();!(Pe=(Ge=Me.next()).done);Pe=!0){var We=Ge.value;if(Wev&&y("overflow"),We==T){for(var ke=R,Ce=36;;Ce+=36){var ze=Ce<=F?1:F+26<=Ce?26:Ce-F;if(keb((v-T)/B))&&y("overflow"),T+=ie*B;var ge=ee<=F?1:F+26<=ee?26:ee-F;if(ieb(v/se)&&y("overflow"),B*=se}var me=d.length+1;F=_(T-oe,me,0==oe),b(T/me)>v-R&&y("overflow"),R+=b(T/me),T%=me,d.splice(T++,0,R)}return String.fromCodePoint.apply(String,d)}(d.slice(4).toLowerCase()):d})},D={};function E(r){var d=r.charCodeAt(0);return d<16?"%0"+d.toString(16).toUpperCase():d<128?"%"+d.toString(16).toUpperCase():d<2048?"%"+(d>>6|192).toString(16).toUpperCase()+"%"+(63&d|128).toString(16).toUpperCase():"%"+(d>>12|224).toString(16).toUpperCase()+"%"+(d>>6&63|128).toString(16).toUpperCase()+"%"+(63&d|128).toString(16).toUpperCase()}function q(r){for(var d="",w=0,T=r.length;wA-Z\\x5E-\\x7E]",'[\\"\\\\]'),ne=new RegExp(pe,"g"),K=new RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))","g"),fe=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ue),"g"),be=new RegExp(t("[^]",pe,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),le=be;function ce(r){var d=q(r);return d.match(ne)?d:r}var de={scheme:"mailto",parse:function(r,d){var w=r,T=w.to=w.path?w.path.split(","):[];if(w.path=void 0,w.query){for(var R=!1,F={},G=w.query.split("&"),V=0,U=G.length;VDeprecated, use `ground.layers` instead
    1. An array of elevationLayer objects defining the basemaps used in the web scene.',items:{$ref:"#/definitions/elevationLayers_schema.json"},uniqueItems:!0},id:{type:"string",description:"A unique identifying string for the basemap."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents."}},required:["baseMapLayers","title"],additionalProperties:!1},"clippingArea_schema.json":{title:"clippingArea",type:"object",description:"Defines area to be clipped for display.",properties:{clip:{type:"boolean",description:"enable / disable clipping"},geometry:{description:"envelope of clip area",$ref:"#/definitions/extent_schema.json"}}},"ground_schema.json":{title:"Ground",type:"object",description:"Ground defines the main surface of the web scene, based on elevation layers.",properties:{layers:{type:"array",description:"An array of elevationLayer objects defining the elevation of the ground in the web scene.",items:{$ref:"#/definitions/elevationLayers_schema.json"},uniqueItems:!0},navigationConstraint:{description:"Object determining whether the camera is constrained to navigate only above, or also under the ground surface. If not specified, navigation is constrained to above ground.",$ref:"#/definitions/navigationConstraint_schema.json"},surfaceColor:{description:"Defines the color of the ground surface, displayed underneath the basemap. If no color, the default grid is shown.",$ref:"#/definitions/color_schema.json"},transparency:{type:"integer",description:"The transparency of the ground surface. It is used for seeing through the ground, therefore this property also changes the transparency of the basemap. Draped operational layers are not affected by this property. The value has to lie between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100}},required:["layers"],additionalProperties:!1},"heightModelInfo_schema.json":{title:"heightModelInfo",type:"object",description:"An object that defines the characteristics of the vertical coordinate system used by the web scene.",properties:{heightModel:{type:"string",description:"The surface type or height model of the vertical coordinate system.",enum:["ellipsoidal","gravity_related_height"],default:"ellipsoidal"},heightUnit:{type:"string",description:'The unit of the vertical coordinate system.1',enum:["150-kilometers","50-kilometers","benoit-1895-b-chain","clarke-foot","clarke-link","clarke-yard","foot","gold-coast-foot","indian-1937-yard","indian-yard","meter","sears-1922-truncated-chain","sears-chain","sears-foot","sears-yard","us-foot"]},vertCRS:{type:"string",description:"(Optional) The datum realization of the vertical coordinate system."}},required:["heightModel","heightUnit"],additionalProperties:!1},"initialState_schema.json":{title:"initialState",type:"object",description:"An object that provides information about the initial environment settings and viewpoint of the web scene.",properties:{environment:{type:"object",$ref:"#/definitions/environment_schema.json"},viewpoint:{description:"Describes a point of view for a 2D or 3D view. In a 3D view, it is determined using a camera position.",$ref:"#/definitions/viewpoint_schema.json"}},required:["environment","viewpoint"],additionalProperties:!1},"mapFloorInfo_schema.json":{title:"mapFloorInfo",type:"object",description:"Contains floor-awareness information for the web scene. Defines the layers and required fields for each layer that are used for floor filtering.",properties:{facilityLayer:{description:"Defines the layer and field properties for the Facility layer used for floor filtering.",$ref:"#/definitions/facilityLayerInfo_schema.json"},levelLayer:{description:"Defines the layer and field properties for the Level layer used for floor filtering.",$ref:"#/definitions/levelLayerInfo_schema.json"},siteLayer:{description:"Defines the layer and field properties for the Site layer used for floor filtering. This property is optional.",$ref:"#/definitions/siteLayerInfo_schema.json"}},required:["facilityLayer","levelLayer"],additionalProperties:!1},"mapRangeInfo_schema.json":{title:"Map Range Information",description:"Map range information",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",description:"Current range for the active range.",items:{type:"number"},minItems:2,maxItems:2},fullRangeExtent:{type:"array",description:"Full range extent for the active range to be presented in the UI.",items:{type:"number"},minItems:2,maxItems:2}},required:["activeRangeName"],additionalProperties:!1},"operationalLayers_schema.json":{title:"operationalLayers",type:"object",description:"Operational layers contain your data. Usually, a basemap sits beneath your operational layers to give them geographic context.",oneOf:[{$ref:"#/definitions/buildingSceneLayer_schema.json"},{$ref:"#/definitions/csvLayer_schema.json"},{$ref:"#/definitions/dimensionLayer_schema.json"},{$ref:"#/definitions/featureLayer_schema.json"},{$ref:"#/definitions/geojsonLayer_schema.json"},{$ref:"#/definitions/groupLayer_schema.json"},{$ref:"#/definitions/imageServiceLayer_schema.json"},{$ref:"#/definitions/integratedMeshLayer_schema.json"},{$ref:"#/definitions/kmlLayer_schema.json"},{$ref:"#/definitions/lineOfSightLayer_schema.json"},{$ref:"#/definitions/mapServiceLayer_schema.json"},{$ref:"#/definitions/ogcFeatureLayer_schema.json"},{$ref:"#/definitions/pointCloudLayer_schema.json"},{$ref:"#/definitions/rasterDataLayer_schema.json"},{$ref:"#/definitions/sceneLayer_schema.json"},{$ref:"#/definitions/tiledImageServiceLayer_schema.json"},{$ref:"#/definitions/tiledMapServiceLayer_schema.json"},{$ref:"#/definitions/vectorTileLayer_schema.json"},{$ref:"#/definitions/voxelLayer_schema.json"},{$ref:"#/definitions/webTiledLayer_schema.json"},{$ref:"#/definitions/wfsLayer_schema.json"},{$ref:"#/definitions/wmsLayer_schema.json"}]},"presentation_schema.json":{title:"presentation",type:"object",description:"A presentation consists of multiple slides, where each slide is a specific view into the web scene.",properties:{slides:{type:"array",description:"Array of slide objects.",items:{$ref:"#/definitions/slide_schema.json"}}},additionalProperties:!1},"spatialReference_schema.json":{title:"spatialReference",type:"object",description:"The spatialReference object is located at the top level of the JSON hierarchy. In addition to this, it is also available within the operationalLayer and basemap objects.\n\nMany predefined spatial references have already been defined and are available for use. A spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT). The default tolerance and resolution values for the associated coordinate system are used.\n\nA spatial reference can optionally include a definition for a vertical coordinate system (VCS), which is used to interpret the z values of a geometry.",properties:{latestVcsWkid:{type:"integer",description:"(Optional) The current wkid value of the vertical coordinate system."},latestWkid:{type:"integer",description:"(Optional) Identifies the current wkid value associated with the same spatial reference. For example a WKID of '102100' (Web Mercator) has a latestWKid of '3857'."},vcsWkid:{type:"integer",description:"(Optional) The wkid value of the vertical coordinate system."},wkid:{type:"integer",description:"The well-known ID (WKID) of the coordinate system. Specify either WKID or the well-known text (WKT) of the coordinate system."},wkt:{type:"string",description:"The well-known text (WKT) of the coordinate system. Specify either WKT or WKID of the coordinate system."}},oneOf:[{required:["wkt"]},{required:["wkid"]}],additionalProperties:!1},"table_schema.json":{title:"table",type:"object",description:"Root element in the web scene specifying an array of table objects.",properties:{capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: `Create`, `Delete`, `Query`, `Update`, and `Editing`."},customParameters:{$ref:"#/definitions/customParameters_schema.json"},definitionEditor:{description:"Object indicating the definitionEditor used as a layer's interactive filter.",$ref:"#/definitions/definitionEditor_schema.json"},disablePopup:{type:"boolean",description:"Indicates whether to allow a client to ignore popups defined by the service item."},id:{type:"string",description:"Unique string identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{description:"A layerDefinition object defining a definition expression for the table.",$ref:"#/definitions/layerDefinition_schema.json"},path:{type:"string",description:"For offline data, a path to a geodatabase file. A URI format is used starting with `file:` followed by a file system path with a `.geodatabase` extension. A query parameter `itemId` must also be present specifying the ID of a table in the geodatabase's `GDB_ServiceItems` table. A relative path must be from the file which defines the table. For example `file:../p20/northamerica.geodatabase?itemId=5`.",pattern:"^file:.+\\.geodatabase\\?itemId=\\d+$"},popupInfo:{description:"An object defining the content of popup windows when you query a record and the sort option for child related records.",$ref:"#/definitions/popupInfo_schema.json"},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},required:["title","url"],additionalProperties:!1},"transportationNetwork_schema.json":{title:"Transportation Network",type:"object",description:"The transportation network used for routing in the scene.",properties:{name:{type:"string",description:"The name of the transportation network. The name must be unique within a scene."},path:{type:"string",description:"The path to the geodatabase which contains the network.",pattern:"^file:.+\\.geodatabase?$"},title:{type:"string",description:"A title or alias of the network layer. This can be used in the client user interface."}},required:["name","path","title"],additionalProperties:!1},"version_schema.json":{title:"version",type:"string",description:"Root element in the web scene specifying a string value indicating the web scene version.",enum:["1.8","1.9","1.10","1.11","1.12","1.13","1.14","1.15","1.16","1.17","1.18","1.19","1.20","1.21","1.22","1.23","1.24","1.25","1.26","1.27","1.28","1.29"]},"widgets_schema.json":{title:"widgets",type:"object",description:"The widgets object contains widgets that should be exposed to the user.",properties:{floorFilter:{description:"Configurable properties used by the floor filter widget.",$ref:"#/definitions/floorFilter_schema.json"},range:{description:"Active range.",$ref:"#/definitions/range_schema.json"}},additionalProperties:!1},"buildingSceneLayer_filter_schema.json":{title:"Building Scene Layer Filter",type:"object",description:"Filter allows client applications to reduce the drawn elements of a building to specific types and values. Filters on the webscene override the list of existing filters on the service.",properties:{description:{type:"string",description:"Description of the filter."},filterAuthoringInfo:{description:"Metadata about the athoring process for this filter.",$ref:"#/definitions/buildingSceneLayer_filterAuthoringInfoCheckbox_schema.json"},filterBlocks:{type:"array",description:"Array of filter blocks defining the filter. A filter contains at least one filter block.",items:{$ref:"#/definitions/buildingSceneLayer_filterBlock_schema.json"},minItems:1},id:{type:"string",description:"unique filter id (uuid). Either a new id to extend the list of filters, or an existing id to override properties of an existing filter."},name:{type:"string",description:"Name of the filter."}},required:["filterBlocks","id","name"],additionalProperties:!1},"layerDefinition_schema.json":{title:"layerDefinition",type:"object",description:"An object that defines the attribute schema and drawing information for a layer drawn using client-side graphics.",properties:{allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. `Query,Editing`."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},currentVersion:{type:"number",description:"Numeric value indicating the server version of the layer."},defaultVisibility:{type:"boolean",description:"Boolean value indicating whether the layer's visibility is turned on."},definitionExpression:{type:["string","null"],description:"SQL-based definition expression string that narrows the data to be displayed in the layer."},description:{type:"string",description:"String value of the layer as defined in the map service."},displayField:{type:"string",description:"A string value that summarizes the feature."},drawingInfo:{description:"Contains the drawing and labeling information.",$ref:"#/definitions/drawingInfo_schema.json"},elevationInfo:{$ref:"#/definitions/elevationInfo_schema.json"},excludeObjectIds:{type:"array",description:"Excludes features with the given object ids from rendering.",items:{type:"number"}},extent:{description:"An object defining the rectangular area.",oneOf:[{$ref:"#/definitions/extent_schema.json"},{type:"null"}]},featureReduction:{$ref:"#/definitions/featureReduction_schema.json"},fields:{type:"array",description:"An array of field objects containing information about the attribute fields for the feature collection or layer.",items:{$ref:"#/definitions/field_schema.json"},uniqueItems:!0},filters:{type:"array",description:"Filters for PointCloud layers",items:{$ref:"#/definitions/pointCloudFilter_schema.json"}},floorInfo:{description:"Contains floor-awareness information for the layer.",$ref:"#/definitions/layerFloorInfo_schema.json"},geometryType:{type:"string",description:"A string defining the type of geometry. Possible geometry types are: `esriGeometryPoint`, `esriGeometryMultipoint`, `esriGeometryPolyline`, `esriGeometryPolygon`, and `esriGeometryEnvelope`."},globalIdField:{type:"string",description:"The unique identifier for a feature or table row within a geodatabase."},hasAttachments:{type:"boolean",description:"Indicates whether attachments should be loaded for the layer."},hasM:{type:"boolean",description:"Boolean value indicating whether layer has M values."},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},hasZ:{type:"boolean",description:"Boolean value indicating whether layer has Z values."},htmlPopupType:{type:"string",description:"String value indicating the HTML popup type.",enum:["esriServerHTMLPopupTypeAsHTMLText","esriServerHTMLPopupTypeAsURL","esriServerHTMLPopupTypeNone"]},id:{type:"integer",description:"The identifier assigned to the layer."},isDataVersioned:{type:"boolean",description:"Boolean value indicating whether the data is versioned."},maxRecordCount:{type:"integer",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},maxScale:{type:"number",description:"Represents the maximum scale (most zoomed in) at which the layer is visible in the view. If the web scene is zoomed in beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a maximum scale. If set, the maxScale value should always be smaller than the minScale value, and greater than or equal to the service specification."},minScale:{type:"number",description:"Represents the minimum scale (most zoomed out) at which the layer is visible in the view. If the web scene is zoomed out beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a minimum scale. If set, the minScale value should always be larger than the maxScale value, and lesser than or equal to the service specification."},name:{type:"string",description:"Contains a unique name for the layer that can be displayed in a legend."},objectIdField:{type:"string",description:"Indicates the name of the object ID field in the dataset."},overrideSymbols:{type:"boolean",description:"Dictates whether a client can support having an end user modify symbols on individual features."},polygonFilter:{description:"[Polygon filter](polygonFilter.md) for scene layer features.",oneOf:[{$ref:"#/definitions/polygonFilter_schema.json"},{type:"null"}]},rangeInfos:{type:"array",description:"Indicates range information",items:{$ref:"#/definitions/rangeInfo_schema.json"},minItems:1},source:{description:"An object indicating the layerDefinition's layer source.",$ref:"#/definitions/source_schema.json"},spatialReference:{description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry.",$ref:"#/definitions/spatialReference_schema.json"},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsAdvancedQueries:{type:"boolean",description:"Boolean value indicating whether the layer supports orderByFields in a query operation."},supportsAttachmentsByUploadId:{type:"boolean",description:"Boolean value indicating whether the layer supports uploading attachments with the Uploads operation. This can then be used in the Add Attachment and Update Attachment operations."},supportsCalculate:{type:"boolean",description:"Boolean value indicating whether the layer supports the Calculate REST operation when updating features."},supportsRollbackOnFailureParameter:{type:"boolean",description:"Boolean value indicating whether the layer supports rolling back edits made on a feature layer if some of the edits fail."},supportsStatistics:{type:"boolean",description:"Boolean value indicating whether feature layer query operations support statistical functions."},supportsValidateSql:{type:"boolean",description:"Boolean value indicating whether the validateSQL operation is supported across a feature service layer."},type:{type:"string",description:"Indicates whether the layerDefinition applies to a Feature Layer or a Table.",enum:["Feature Layer","Table"],default:"Feature Layer"},typeIdField:{type:"string",description:"Contains the name of the field holding the type ID for the features."},types:{type:"array",description:"Contains information about an attribute field.",items:{$ref:"#/definitions/type_schema.json"},uniqueItems:!0},visibilityField:{type:"string",description:"String value indicating the attribute field that is used to control the visibility of a feature. If applicable, when rendering a feature the client should use this field to control visibility. The field's values are 0 = do not display, 1 = display."}},additionalProperties:!1},"buildingSceneLayer_sublayer_schema.json":{title:"Building Scene Sublayer",type:"object",description:"The BuildingSceneLayer sublayer is a part of a building scene layer.",properties:{disablePopup:{type:"boolean",description:"disablePopups allows a client to ignore popups defined by the service item."},id:{type:"integer",description:"Identifies the sublayer inside the building scene layer."},layerDefinition:{type:"object",description:"Additional properties that can define drawing information and a definition expression for the sublayer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{renderer:{}},additionalProperties:!1}]}},additionalProperties:!1}]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list.",enum:["hide","show"],default:"show"},opacity:{type:"number",description:"The degree of transparency applied to the sublayer on the client side, where 0 is full transparency and 1 is no transparency. This is multiplied with the opacity of the containing layers.",minimum:0,maximum:1,default:1},popupInfo:{description:"A popupInfo object defining the content of pop-up windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},title:{type:"string",description:"A user-friendly string title for the sublayer that can be used in a table of contents."},visibility:{type:"boolean",description:"Boolean property determining whether the sublayer is initially visible in the web scene"}},required:["id"],additionalProperties:!1},"drawingInfo_schema.json":{title:"drawingInfo",type:"object",description:"The drawingInfo object contains drawing information for a feature layer.",properties:{labelingInfo:{type:"array",description:"An array of labelingInfo objects.",items:{$ref:"#/definitions/labelingInfo_schema.json"}},renderer:{$ref:"#/definitions/renderer_schema.json"},showLabels:{type:"boolean",description:"Labels will display if this property is set to `true` and the layer also has a [labelingInfo](labelingInfo.md) property associated with it.",default:!1},transparency:{type:"number",description:"Number value ranging between 0 (no transparency) to 100 (completely transparent).",minimum:0,maximum:100}},additionalProperties:!1},"popupInfo_schema.json":{title:"popupInfo",type:"object",description:"Defines the look and feel of popup windows when a user clicks or queries a feature.",properties:{description:{type:["string"],description:"A string that appears in the body of the popup window as a description. A basic subset of HTML may also be used to enrich the text. The supported HTML for ArcGIS Online can be seen in the [Supported HTML](https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm) page."},expressionInfos:{type:"array",description:"List of Arcade expressions added to the pop-up.",items:{$ref:"#/definitions/popupExpressionInfo_schema.json"}},fieldInfos:{type:"array",description:"Array of fieldInfo information properties. This information is provided by the service layer definition.",items:{$ref:"#/definitions/fieldInfo_schema.json"}},layerOptions:{description:"Additional options that can be defined for the popup layer.",$ref:"#/definitions/popupLayerOptions_schema.json"},mediaInfos:{type:"array",description:"Array of various mediaInfo to display. Can be of type `image`, `piechart`, `barchart`, `columnchart`, or `linechart`. The order given is the order in which it displays.",items:{$ref:"#/definitions/mediaInfo_schema.json"}},popupElements:{type:"array",description:"An array of popupElement objects that represent an ordered list of popup elements.",items:{$ref:"#/definitions/popupElement_schema.json"}},relatedRecordsInfo:{description:"Indicates whether to enable related records if they exist on a layer.",$ref:"#/definitions/relatedRecordsInfo_schema.json"},showAttachments:{type:"boolean",description:"Indicates whether attachments will be loaded for feature layers that have attachments."},showLastEditInfo:{type:"boolean",description:"Indicates whether popup will display information about when and who last edited the feature. Applicable only to layers that have been configured to keep track of such information.",default:!0},title:{type:"string",description:"A string that appears at the top of the popup window as a title."}},additionalProperties:!1},"viewing_schema.json":{title:"viewing",type:"object",description:"View-specific properties of application and UI elements.",properties:{search:{$ref:"#/definitions/search_schema.json"}},additionalProperties:!1},"baseMapLayer_schema.json":{title:"baseMapLayer",type:"object",description:"A basemap layer is a layer that provides geographic context to the scene. The following is a list of possible basemap layer types.",oneOf:[{$ref:"#/definitions/imageServiceLayer_schema.json"},{$ref:"#/definitions/mapServiceLayer_schema.json"},{$ref:"#/definitions/openStreetMapLayer_schema.json"},{$ref:"#/definitions/rasterDataLayer_schema.json"},{$ref:"#/definitions/tiledImageServiceLayer_schema.json"},{$ref:"#/definitions/tiledMapServiceLayer_schema.json"},{$ref:"#/definitions/vectorTileLayer_schema.json"},{$ref:"#/definitions/webTiledLayer_schema.json"},{$ref:"#/definitions/wmsLayer_schema.json"}]},"elevationLayers_schema.json":{title:"elevationLayers",type:"object",description:"Elevation layers provide elevation for the ground.",oneOf:[{$ref:"#/definitions/rasterDataElevationLayer_schema.json"},{$ref:"#/definitions/tiledElevationLayer_schema.json"}]},"extent_schema.json":{title:"extent",type:"object",description:"This object defines the bounding geometry given the lower-left and upper-right corners of the bounding box. A [spatial reference](spatialReference.md) is also required.",properties:{spatialReference:{description:"An object used to specify the spatial reference of the given geometry.",$ref:"#/definitions/spatialReference_schema.json"},xmax:{type:"number",description:"A numeric value indicating the top-right X-coordinate of an extent envelope."},xmin:{description:"A numeric value indicating the bottom-left X-coordinate of an extent envelope.",oneOf:[{type:"number"},{type:"null"},{type:"string",enum:["NaN"]}]},ymax:{type:"number",description:"A numeric value indicating the top-right Y-coordinate of an extent envelope."},ymin:{type:"number",description:"A numeric value indicating the bottom-left Y-coordinate of an extent envelope."}},additionalProperties:!1},"navigationConstraint_schema.json":{title:"Navigation Constraint",type:"object",description:"Object determining whether the camera is constrained to navigate only above, or also under the ground surface.",properties:{type:{type:"string",enum:["none","stayAbove"]}},required:["type"],additionalProperties:!1},"color_schema.json":{title:"color",type:"array",description:"Color is represented as a three or four-element array. The four elements represent values for red, green, blue, and alpha in that order. Values range from 0 through 255. If color is undefined for a symbol, the color value is null.",items:{type:"integer",minimum:0,maximum:255},minItems:3,maxItems:4,additionalProperties:!1},"environment_schema.json":{title:"environment",type:"object",description:"Represents settings that affect the environment in which the web scene is displayed. It is entirely stored as part of the initial state of the web scene, and partially in the slides in the presentation.",properties:{atmosphereEnabled:{type:"boolean",description:"Whether the atmosphere should be visualized. This includes sky and haze effects.",default:!0},background:{description:"The background is what is displayed behind any scene objects, stars and atmosphere.",$ref:"#/definitions/environment_background_color_schema.json"},lighting:{$ref:"#/definitions/lighting_schema.json"},starsEnabled:{type:"boolean",description:"Whether stars should be displayed in the sky.",default:!0},weather:{type:"object",description:"Indicates the type of weather visualization in the scene.",oneOf:[{$ref:"#/definitions/cloudyWeather_schema.json"},{$ref:"#/definitions/foggyWeather_schema.json"},{$ref:"#/definitions/rainyWeather_schema.json"},{$ref:"#/definitions/snowyWeather_schema.json"},{$ref:"#/definitions/sunnyWeather_schema.json"}],default:{$ref:"#/definitions/sunnyWeather_schema.json"}}},additionalProperties:!1},"viewpoint_schema.json":{title:"viewpoint",type:"object",description:"The location or camera position from which to view the scene.",properties:{camera:{$ref:"#/definitions/camera_schema.json"},rotation:{type:"number",description:"The rotation of due north in relation to the top of the view in degrees.",minimum:0,maximum:360},scale:{type:"number",description:"The scale of the viewpoint."},targetGeometry:{description:"The target geometry framed by the viewpoint.",oneOf:[{description:"",$ref:"#/definitions/extent_schema.json"},{description:"",$ref:"#/definitions/geometry_schema.json"}]}},required:["camera"],additionalProperties:!1},"facilityLayerInfo_schema.json":{title:"facilityLayer",type:"object",description:"Defines the layer and field properties for the Facility layer used for floor filtering.",properties:{facilityIdField:{type:"string",description:"The name of the attribute field that contains a facility feature's unique identifier."},layerId:{type:"string",description:"A layer ID that refers to an operational layer in the map. The layer provides access to Facility features to use for floor filtering."},nameField:{type:"string",description:"The name of the attribute field that contains a facility feature's name."},siteIdField:{type:"string",description:"The name of the attribute field that contains a facility feature's site identifier (a foreign key to the Site layer)."}},required:["facilityIdField","layerId","nameField"],additionalProperties:!1},"levelLayerInfo_schema.json":{title:"levelLayer",type:"object",description:"Defines the layer and field properties for the Level layer used for floor filtering.",properties:{facilityIdField:{type:"string",description:"The name of the attribute field that contains a level feature's facility identifier (a foreign key to the Facility layer)."},layerId:{type:"string",description:"A layer ID that refers to an operational layer in the map. The layer provides access to Level features to use for floor filtering."},levelIdField:{type:"string",description:"The name of the attribute field that contains a level feature's unique identifier."},levelNumberField:{type:"string",description:"The name of the attribute field that contains a level feature's level number specific to its facility."},longNameField:{type:"string",description:"The name of the attribute field that contains a level feature's long name."},shortNameField:{type:"string",description:"The name of the attribute field that contains a level feature's short name."},verticalOrderField:{type:"string",description:"The name of the attribute field that contains a level feature's vertical order. The vertical order defines the order of display in the floor filter widget, and it also references the floor levels of an Indoor Positioning System."}},required:["facilityIdField","layerId","levelIdField","levelNumberField","longNameField","shortNameField","verticalOrderField"],additionalProperties:!1},"siteLayerInfo_schema.json":{title:"siteLayer",type:"object",description:"Defines the layer and field properties for the Site layer used for floor filtering.",properties:{layerId:{type:"string",description:"A layer ID that refers to an operational layer in the map. The layer provides access to Site features to use for floor filtering."},nameField:{type:"string",description:"The name of the attribute field that contains a site feature's name."},siteIdField:{type:"string",description:"The name of the attribute field that contains a site feature's unique identifier."}},required:["layerId","nameField","siteIdField"],additionalProperties:!1},"buildingSceneLayer_schema.json":{title:"Building Scene Layer (BuildingSceneLayer)",type:"object",description:"The BuildingSceneLayer is a layer type designed for on-demand streaming and displaying building data.",properties:{activeFilterId:{type:"string",description:"specifies the id of the currently active filter"},filters:{type:"array",description:"A list of filters available for this layer. Overrides filters defined on the service.",items:{$ref:"#/definitions/buildingSceneLayer_filter_schema.json"},uniqueItems:!0},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{type:"object",description:"Additional properties that can define an elevation offset for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{elevationInfo:{},maxScale:{},minScale:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["BuildingSceneLayer"]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list. If the layer has sublayers, selecting `hide-children` will hide them in the layer list.",enum:["hide","hide-children","show"],default:"show"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},sublayers:{type:"array",description:"An array of objects specifying overrides for building scene layer sublayers",items:{$ref:"#/definitions/buildingSceneLayer_sublayer_schema.json"},uniqueItems:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the service."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene",default:!0}},required:["id","layerType","title","url"],additionalProperties:!1},"csvLayer_schema.json":{title:"CSV Layer (CSV)",type:"object",description:"The CSV layer type references a CSV or TXT file from a publicly-accessible web server. It then dynamically loads into the scene at run time. The CSV layer will maintain a reference to the CSV resource.",properties:{columnDelimiter:{type:"string",description:"A string defining the character used to separate columns in a CSV file.",enum:["\t"," ",",",";","|"]},customParameters:{$ref:"#/definitions/customParameters_schema.json"},disablePopup:{type:"boolean",description:"Indicates whether to allow a client to ignore popups defined by the service item."},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Optional string containing the item ID if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{description:"Additional properties that define drawing information and other configurations for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{},transparency:{}},additionalProperties:!1}]},elevationInfo:{},featureReduction:{},fields:{},floorInfo:{},maxScale:{},minScale:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["CSV"]},listMode:{type:"string",description:"To show or hide the layer in the layer list",enum:["hide","show"],default:"show"},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file.",$ref:"#/definitions/locationInfo_schema.json"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},popupInfo:{description:"A popupInfo object defining the content of popup windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},screenSizePerspective:{type:"boolean",description:"Apply [perspective scaling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled) to screen-size symbols.",default:!0},showLabels:{type:"boolean",description:"Labels will display if this property is set to `true` and the layer also has a [labelingInfo](labelingInfo.md) property associated with it.",default:!1},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the layer."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0}},required:["id","layerType","title","url"],additionalProperties:!1},"dimensionLayer_schema.json":{title:"Dimension Layer",type:"object",description:"Dimension layers can be used to visually annotate the lengths between points in a map. They can be created by embedding the dimensions directly in the layer.",properties:{dimensions:{type:"array",description:"A collection of dimension objects embedded in the layer.",items:{$ref:"#/definitions/dimensionLayer_lengthDimension_schema.json"}},id:{type:"string",description:"A unique identifying string for the layer."},layerType:{type:"string",description:"String indicating the layer type.",enum:["ArcGISDimensionLayer"]},listMode:{type:"string",description:"To show or hide the layer in the layer list.",enum:["hide","show"]},style:{description:"Specification of how dimensions and their labels are displayed.",$ref:"#/definitions/dimensionLayer_dimensionSimpleStyle_schema.json"},title:{type:"string",description:"A human readable string title for the layer that can be used in a table of contents."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is visible in the scene.",default:!0}},required:["id","layerType","title"],additionalProperties:!1},"featureLayer_schema.json":{title:"Feature Layer (ArcGISFeatureLayer)",type:"object",description:"Feature layers can be created by referencing a layer from either a map service or a feature service. Use a map service if you just want to retrieve geometries and attributes from the server and symbolize them yourself. Use a feature service if you want to take advantage of symbols from the service's source map document. Also, use a feature service if you plan on doing editing with the feature layer. Feature layers honor any feature templates configured in the source map document. Feature collection objects are used to create a feature layer based on the supplied definition.",properties:{customParameters:{$ref:"#/definitions/customParameters_schema.json"},disablePopup:{type:"boolean",description:"Indicates whether to allow a client to ignore popups defined by the service item."},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{description:"Additional properties that define drawing information and other configurations for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{capabilities:{},definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{},transparency:{}},additionalProperties:!1}]},elevationInfo:{},featureReduction:{},floorInfo:{},maxScale:{},minScale:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["ArcGISFeatureLayer"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},path:{type:"string",description:"For offline data, a path to a geodatabase file. A URI format is used starting with `file:` followed by a file system path with a `.geodatabase` extension. A query parameter `itemId` must also be present specifying the ID of a table in the geodatabase's `GDB_ServiceItems` table. A relative path must be from the file which defines the layer. For example `file:../p20/northamerica.geodatabase?itemId=1`.",pattern:"^file:.+\\.geodatabase\\?itemId=\\d+$"},popupInfo:{description:"A popupInfo object defining the content of popup windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},screenSizePerspective:{type:"boolean",description:"Apply [perspective scaling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled) to screen-size symbols.",default:!0},showLabels:{type:"boolean",description:"Labels will display if this property is set to `true` and the layer also has a [labelingInfo](labelingInfo.md) property associated with it. This property can get stored in the web scene config and in the item/data.",default:!1},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the layer. If the layer is not from a web service but rather a feature collection, then the url property is omitted."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0}},required:["id","layerType","title"],additionalProperties:!1},"geojsonLayer_schema.json":{title:"GeoJSON Layer (GeoJSON)",type:"object",description:"The GeoJSON layer type references a GeoJSON file from a publicly-accessible web server. It then dynamically loads into the scene at run time. The GeoJSON layer will maintain a reference to the GeoJSON resource.",properties:{customParameters:{$ref:"#/definitions/customParameters_schema.json"},disablePopup:{type:"boolean",description:"Indicates whether to allow a client to ignore popups defined by the service item.",default:!1},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Optional string containing the item ID if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{description:"Additional properties that define drawing information and other configurations for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{}},additionalProperties:!1}]},elevationInfo:{},featureReduction:{},fields:{},objectIdField:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["GeoJSON"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},popupInfo:{description:"A popupInfo object defining the content of popup windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled.",default:0},screenSizePerspective:{type:"boolean",description:"Apply [perspective scaling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled) to screen-size symbols.",default:!0},showLabels:{type:"boolean",description:"Labels will display if this property is set to `true` and the layer also has a [labelingInfo](labelingInfo.md) property associated with it. This property can get stored in the web scene config.",default:!1},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the layer.",format:"uri"},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0}},required:["layerType","title","url"],additionalProperties:!1},"groupLayer_schema.json":{title:"Group Layer",type:"object",description:"GroupLayer provides the ability to organize several sublayers into one common layer. Suppose there are several FeatureLayers that all represent water features in different dimensions. For example, wells (points), streams (lines), and lakes (polygons). The GroupLayer provides the functionality to treat them as one layer called Water Features even though they are stored as separate feature layers.

    With respect to scale visibility, sublayers of a group layer will be visible only within the scale range defined for the group layer. A sublayer may further restrict itself to a narrow scale range. In other words, a sublayer will be visible only when the current map scale intersects the scale range of that sublayer as well as the scale range of all its parent group layers.",properties:{blendMode:{$ref:"#/definitions/blendMode_schema.json"},id:{type:"string",description:"A unique identifying string for the layer"},layers:{type:"array",description:"list of child operationalLayers",items:{$ref:"#/definitions/operationalLayers_schema.json"},uniqueItems:!0},layerType:{type:"string",description:"String indicating the layer type",enum:["GroupLayer"]},listMode:{type:"string",description:"To show or hide the group layer in the layer list",enum:["hide","hide-children","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",default:1},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents. If this is not included, a title is derived from the service"},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene",default:!0},visibilityMode:{type:"string",description:"How visibility of children is affected:independent, exclusive, inherited",enum:["exclusive","independent","inherited"]}},required:["id","layerType","title"],additionalProperties:!1},"imageServiceLayer_schema.json":{title:"Image Service Layer (ArcGISImageServiceLayer)",type:"object",description:"An image service provides access to raster data through a web service. Multiple rasters can be served as one image service through mosaic dataset technology, dynamically processed and mosaicked on the fly. An image service supports accessing both the mosaicked image and its catalog, as well as individual rasters in the catalog. Also, image services can be cached (tiled) or uncached (dynamic). This object specifically details properties within uncached image services.",properties:{bandIds:{type:"array",description:"An array of bandIds that are visible for a multispectral dataset. It can specify bands to export or rearrange band order(from image service).",items:{type:"integer"}},compressionQuality:{type:"number",description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service).",minimum:0,maximum:100},compressionTolerance:{type:"number",description:"Controls the tolerance of the lerc compression algorithm. The tolerance defines the maximum possible error of pixel values in the compressed image.",minimum:0,default:.01},customParameters:{$ref:"#/definitions/customParameters_schema.json"},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",description:"String value representing image format.",enum:["bmp","gif","jpg","jpgpng","lerc","png","png24","png32","png8","tiff"],default:"png"},id:{type:"string",description:"A unique identifying string for the layer."},interpolation:{type:"string",description:"The algorithm used for interpolation.",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"]},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{renderer:{},transparency:{}},additionalProperties:!1}]}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["ArcGISImageServiceLayer"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},mosaicRule:{description:"An object representing a subset from multidimensional data. The data is based on slices or ranges in one or more dimensions in [mosaicRule.description](mosaicRule.md). When the [multidimensionalSubset](multidimensionalSubset.md) is defined then the [mosaicRule.multidimensionalDefinition](mosaicRule.md) must be within the defined multidimensionalSubset, otherwise nothing will be displayed.",$ref:"#/definitions/mosaicRule_schema.json"},multidimensionalSubset:{description:"An object representing a subset from multidimensional data. The data is based on slices or ranges in one or more dimensions in [mosaicRule.description](mosaicRule.md). When the [multidimensionalSubset](multidimensionalSubset.md) is defined then the [mosaicRule.multidimensionalDefinition](mosaicRule.md) must be within the defined multidimensionalSubset, otherwise nothing will be displayed.",$ref:"#/definitions/multidimensionalSubset_schema.json"},noData:{type:"integer",description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",description:"A string value of interpretation of noData setting. Default is `esriNoDataMatchAny` when noData is a number, and `esriNoDataMatchAll` when noData is an array.",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],default:"esriNoDataMatchAny"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},pixelType:{type:"string",description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point.",enum:["C128","C64","F32","F64","S16","S32","S8","U1","U16","U2","U32","U4","U8","UNKNOWN"]},popupInfo:{description:"A popupInfo object defining the content of popup windows when you click on the image.",$ref:"#/definitions/popupInfo_schema.json"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered.",$ref:"#/definitions/renderingRule_schema.json"},showLegend:{type:"boolean",description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend control.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the layer."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map.",default:!0}},required:["layerType","title","url"],additionalProperties:!1},"integratedMeshLayer_schema.json":{title:"Integrated Mesh Layer (IntegratedMeshLayer)",type:"object",description:"An integrated mesh can represent built and natural 3D features, such as building walls, trees, valleys, and cliffs, with realistic textures and includes elevation information.",properties:{id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{type:"object",description:"A layerDefinition object defining the attribute schema and drawing information for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{elevationInfo:{},maxScale:{},minScale:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["IntegratedMeshLayer"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},modifications:{type:"string",description:"URL to modifications json file, typically stored in `ITEM/resources`. Content of the file follows the $ref:[Modifications schema](modifications_schema.json)."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},path:{type:"string",description:"For offline data, a path to integrated mesh data in a scene layer package file. A URI format is used, starting with `file:` followed by a file system path with an extension of `.slpk`. A relative path must be from the file which defines the layer. For example `file:../p20/edinburgh.slpk`.",pattern:"^file:.+\\.slpk$"},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents. If this is not included, a title is derived from the service."},url:{type:"string",description:"The URL to the layer. If the layer is not from a web service but rather a feature collection, then the url property is omitted."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0}},anyOf:[{required:["id","layerType","title","url"]},{required:["id","layerType","path","title"]}],additionalProperties:!1},"kmlLayer_schema.json":{title:"KML Layer (KML)",type:"object",description:"Keyhole Markup Language (KML) is an XML-based format for storing geographic data and associated content and is an official Open Geospatial Consortium (OGC) standard. KML is a common format for sharing geographic data with non-GIS users as it can be easily delivered on the Internet.",properties:{id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"A string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",description:"String indicating the layer type.",enum:["KML"]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list.",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},path:{type:"string",description:"For offline data, a path to a KML file. A URI format is used, starting with `file:` followed by a file system path with an extension of `.kml` or `.kmz`. A relative path must be from the file which defines the layer. For example `file:../commondata/kml/paris.kml`.",pattern:"^file:.+\\.km[lz]$"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},showLegend:{type:"boolean",description:"Indicates whether to allow scene authors the ability to control what layers should be shown in a client's legend.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the layer."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0},visibleFolders:{type:"array",description:"Array of numeric IDs of folders that will be made visible.",items:{type:"integer"},uniqueItems:!0}},anyOf:[{required:["id","layerType","title","url"]},{required:["id","layerType","path","title"]}],additionalProperties:!1},"lineOfSightLayer_schema.json":{title:"LineOfSight Layer",type:"object",description:"The LineOfSight layer is a layer for storing line of sight analyses in web scenes.",properties:{id:{type:"string",description:"A unique identifying string for the layer."},layerType:{type:"string",description:"String indicating the layer type.",enum:["LineOfSightLayer"]},listMode:{type:"string",description:"To show or hide the layer in the layer list.",enum:["hide","show"]},observer:{$ref:"#/definitions/lineOfSightObserver_schema.json"},targets:{type:"array",description:"A Collection of LineOfSight target objects used for visibility analysis from observer position.",items:{$ref:"#/definitions/lineOfSightTarget_schema.json"}},title:{type:"string",description:"A human readable string title for the layer that can be used in a table of contents."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is visible in the scene.",default:!0}},required:["id","layerType","observer","targets","title"],additionalProperties:!1},"mapServiceLayer_schema.json":{title:"Map Service Layer (ArcGISMapServiceLayer)",type:"object",description:"Map services can be cached (tiled) or uncached (dynamic). This object specifically details properties within uncached map services.",properties:{customParameters:{$ref:"#/definitions/customParameters_schema.json"},id:{type:"string",description:"A unique identifying string for the layer."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers, or below (false)."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layers:{type:"array",description:"An array of layer objects defining the styling, geometry, and attribute information for the features.",items:{allOf:[{$ref:"#/definitions/layer_schema.json"},{properties:{defaultVisibility:{},disablePopup:{},id:{},layerDefinition:{},listMode:{},maxScale:{},minScale:{},name:{},parentLayerId:{},popupInfo:{},showLegend:{},subLayerIds:{}},additionalProperties:!1}]},uniqueItems:!0},layerType:{type:"string",description:"String indicating the layer type.",enum:["ArcGISMapServiceLayer"]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list. If the layer has sublayers, selecting `hide-children` will hide them in the layer list.",enum:["hide","hide-children","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the layer."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0},visibleLayers:{type:"array",description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled.",items:{type:"integer"},uniqueItems:!0}},required:["id","layerType","title","url"],additionalProperties:!1},"ogcFeatureLayer_schema.json":{title:"OGC Feature Layer",type:"object",description:"OGC Feature Layer is a dynamic feature service that follows the specifications of OGC API - Features.",properties:{collectionId:{type:"string",description:"A unique identifying string for a feature collection."},customParameters:{type:"object",description:"A sequence of parameters used to append custom or vendor specific parameters to all OGC API - Features requests.",patternProperties:{".*":{type:"string"}}},disablePopup:{type:"boolean",description:"Indicates whether popup is enabled or not."},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{description:"Additional properties that define drawing information and other configurations for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{}},additionalProperties:!1}]},elevationInfo:{},featureReduction:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["OGCFeatureLayer"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","hide-children","show"],default:"show"},maxScale:{type:"number",description:"Represents the maximum scale (most zoomed in) at which the layer is visible in the view. If the web scene is zoomed in beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a maximum scale. If set, the maxScale value should always be smaller than the minScale value, and greater than or equal to the service specification."},minScale:{type:"number",description:"Represents the minimum scale (most zoomed out) at which the layer is visible in the view. If the web scene is zoomed out beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a minimum scale. If set, the minScale value should always be larger than the maxScale value, and lesser than or equal to the service specification."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},popupInfo:{description:"A popupInfo object defining the content of popup windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},screenSizePerspective:{type:"boolean",description:"Apply [perspective scaling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled) to screen-size symbols.",default:!0},showLabels:{type:"boolean",description:"Boolean value indicating whether to display labels for this layer.",default:!1},showLegend:{type:"boolean",description:"Boolean value indicating whether to display legend for this layer.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL of the OGC API Features service landing page.",format:"uri"},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map.",default:!0}},required:["layerType","title","url"],additionalProperties:!1},"pointCloudLayer_schema.json":{title:"PointCloud Layer",type:"object",description:"Point cloud data is post-processed spatially organized lidar data that consists of large collections of 3D points. Elevations for the ground, buildings, forest canopy, highway overpasses, and anything else encountered during the lidar survey make up the point cloud data. Point cloud layers allow for fast visualisation of point cloud data in the browser.",properties:{disablePopup:{type:"boolean",description:"disablePopups allows a client to ignore popups defined by the service item."},id:{type:"string",description:"A unique identifying string for the layer"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal"},layerDefinition:{type:"object",description:"A layerDefinition object defining the attribute schema and drawing information for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{renderer:{},transparency:{}},additionalProperties:!1}]},elevationInfo:{},filters:{},maxScale:{},minScale:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type",enum:["PointCloudLayer"]},listMode:{type:"string",description:"To show or hide the layer in the layer list",enum:["hide","show"],default:"show"},path:{type:"string",description:"For offline data, a path to point cloud layer data in a scene layer package file. A URI format is used, starting with `file:` followed by a file system path with an extension of `.slpk`. A relative path must be from the file which defines the layer. For example `file:../p20/zurich.slpk`.",pattern:"^file:.+\\.slpk$"},popupInfo:{description:"A popupInfo object defining the content of pop-up windows when you click a point.",$ref:"#/definitions/popupInfo_schema.json"},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents. If this is not included, a title is derived from the service"},url:{type:"string",description:"The URL to the layer."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible",default:!0}},anyOf:[{required:["id","layerType","title","url"]},{required:["id","layerType","path","title"]}],additionalProperties:!1},"rasterDataLayer_schema.json":{title:"Raster Data Layer",type:"object",description:"A layer for displaying raster data. This layer only applies to offline data.",properties:{copyright:{type:"string",description:"Attribution to the Raster Data Layer provider. It is displayed in the attribution on the scene. Input required by the user when the layer is added to the scene."},id:{type:"string",description:"A unique identifying string for the layer."},layerType:{type:"string",description:"String indicating the layer type.",enum:["RasterDataLayer"]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list.",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},path:{type:"string",description:"For offline data, a path to a raster data file. A URI format is used, starting with `file:` followed by a file system path. A relative path must be from the file which defines the layer. For example `file:../commondata/raster_data/beijing.tif`.",pattern:"^file:.+$"},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the scene.",default:!0}},required:["id","layerType","path","title"],additionalProperties:!1},"sceneLayer_schema.json":{title:"Scene Layer (ArcGISSceneServiceLayer)",type:"object",description:"The SceneLayer is a layer type designed for on-demand streaming and displaying large amounts of data in a SceneView. SceneLayers support two geometry types: Point and 3D Objects (e.g. buildings). The SceneLayer displays data published to a Scene Service. Scene Services can hold large volumes of features in an open format that is suitable for web streaming. The SceneLayer loads these features progressively, starting from coarse representations and refines them to higher detail as necessary for close-up views.",properties:{disablePopup:{type:"boolean",description:"disablePopups allows a client to ignore popups defined by the service item."},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{type:"object",description:"A layerDefinition object defining the attribute schema and drawing information for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{},transparency:{}},additionalProperties:!1}]},elevationInfo:{},excludeObjectIds:{},featureReduction:{},floorInfo:{},maxScale:{},minScale:{},polygonFilter:{},rangeInfos:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["ArcGISSceneServiceLayer"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},path:{type:"string",description:"For offline data, a path to a scene layer package file. A URI format is used, starting with `file:` followed by a file system path with an extension of `.slpk`. A relative path must be from the file which defines the layer. For example `file:../p20/northamerica.slpk`.",pattern:"^file:.+\\.slpk$"},popupInfo:{description:"A popupInfo object defining the content of pop-up windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},screenSizePerspective:{type:"boolean",description:"Apply [perspective scaling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled) to screen-size symbols.",default:!0},showLabels:{type:"boolean",description:"If the layer has a labelingInfo property then labels show on the scene only if the showLabels property it true.",default:!1},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the service."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene",default:!0}},anyOf:[{required:["id","layerType","title","url"]},{required:["id","layerType","path","title"]}],additionalProperties:!1},"tiledImageServiceLayer_schema.json":{title:"Tiled Image Service Layer (ArcGISTiledImageServiceLayer)",type:"object",description:"An ArcGIS Tiled Image Service layer displays content from an ArcGIS Server Image service that has been cached (tiled).",properties:{bandIds:{type:"array",description:"An array of bandIds that are visible for a multispectral dataset. It can specify bands to export or rearrange band order(from image service).",items:{type:"integer"},minItems:1},blendMode:{$ref:"#/definitions/blendMode_schema.json"},customParameters:{$ref:"#/definitions/customParameters_schema.json"},disablePopup:{type:"boolean",description:"Indicates whether to allow a client to ignore popups defined by the service item."},id:{type:"string",description:"A unique identifying string for the layer."},interpolation:{type:"string",description:"String indicating the interpolation type.",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"]},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{renderer:{},transparency:{}},additionalProperties:!1}]}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["ArcGISTiledImageServiceLayer"]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list.",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},multidimensionalDefinition:{type:"array",description:"An array of objects representing a slice from multidimensional data. The dimensional definitions in this array are used to filter display data based on slices in one or more dimensions.",items:{$ref:"#/definitions/multidimensionalDefinition_schema.json"}},multidimensionalSubset:{description:"An object representing a subset from multidimensional data. This includes subsets of both variables and dimensions. When the multidimensionalSubset is defined on a tiled image service layer, the layer's [multidimensionalDefinition](multidimensionalDefinition.md) must be within the defined multidimensionalSubset, otherwise nothing will be displayed.",$ref:"#/definitions/multidimensionalSubset_schema.json"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},popupInfo:{description:"A popupInfo object defining the content of popup windows when you click on the image.",$ref:"#/definitions/popupInfo_schema.json"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"URL to the ArcGIS Server Image Service."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible.",default:!0}},required:["id","layerType","title","url"],additionalProperties:!1},"tiledMapServiceLayer_schema.json":{title:"Tiled Map Service Layer (ArcGISTiledMapServiceLayer)",type:"object",description:"An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled).",properties:{blendMode:{$ref:"#/definitions/blendMode_schema.json"},customParameters:{$ref:"#/definitions/customParameters_schema.json"},id:{type:"string",description:"A unique identifying string for the layer."},isReference:{type:"boolean",description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layers:{type:"array",description:"An array of layer objects defining a URL for queries and the popup window content.",items:{allOf:[{$ref:"#/definitions/layer_schema.json"},{properties:{disablePopup:{},id:{},layerUrl:{},listMode:{},name:{},popupInfo:{},showLegend:{}},additionalProperties:!1}]},uniqueItems:!0},layerType:{type:"string",description:"String indicating the layer type.",enum:["ArcGISTiledMapServiceLayer"]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list. If the layer has sublayers, selecting `hide-children` will hide them in the layer list.",enum:["hide","hide-children","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},path:{type:"string",description:"For offline data, a path to a tile package file. A URI format is used, starting with `file:` followed by a file system path with an extension of `.tpk` or `.tpkx`. A relative path must be from the file which defines the layer. For example `file:../p20/northamerica.tpk`.",pattern:"^file:.+\\.tpkx?$"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents. If this is not included, a title is derived from the service."},url:{type:"string",description:"URL to the ArcGIS Server tiled Map Service"},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the map.",default:!0}},anyOf:[{required:["id","layerType","title","url"]},{required:["id","layerType","path","title"]}],additionalProperties:!1},"vectorTileLayer_schema.json":{title:"Vector Tile Layer (VectorTileLayer)",type:"object",description:"A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.",properties:{blendMode:{$ref:"#/definitions/blendMode_schema.json"},customParameters:{$ref:"#/definitions/customParameters_schema.json"},id:{type:"string",description:"A unique identifying string for the layer."},isReference:{type:"boolean",description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers, or below (false)."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",description:"String indicating the layer type.",enum:["VectorTileLayer"]},listMode:{type:"string",description:"To show or hide the layer in the layer list",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},path:{type:"string",description:"For offline data, a path to a vector tile layer package file. A URI format is used, starting with `file:` followed by a file system path with an extension of `.vtpk`. A relative path must be from the file which defines the layer. For example `file:../p20/northamerica.vtpk`.",pattern:"^file:.+\\.vtpk$"},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible.",default:!0}},anyOf:[{required:["id","layerType","styleUrl","title"]},{required:["id","layerType","path","title"]}],additionalProperties:!1},"voxelLayer_schema.json":{title:"Voxel Layer",type:"object",description:"A voxel layer represents multidimensional spatial and temporal information in a 3D volumetric visualization. You can analyze the volume by slicing, creating sections or isosurfaces. For example, you can visualize atmospheric or oceanic data, a geological underground model, or space-time cubes as voxel layers.",properties:{disablePopup:{type:"boolean",description:"disablePopups allows a client to ignore popups defined by the service item."},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerDefinition:{type:"object",description:"Additional properties that define drawing of a voxel layer.",allOf:[{$ref:"#/definitions/voxelLayerDefinition_schema.json"},{properties:{sections:{},style:{}}}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["Voxel"]},listMode:{type:"string",description:"To show or hide the layer in the layer list.",enum:["hide","show"],default:"show"},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents. If this is not included, a title is derived from the service."},url:{type:"string",description:"The URL to the layer."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible",default:!0}},required:["id","layerType","title","url"]},"webTiledLayer_schema.json":{title:"Web Tiled Layer (WebTiledLayer)",type:"object",description:"A tile layer is a derived from a set of web-accessible tiles which reside on a server. The tiles are accessed by a direct URL request from the web browser. Because the tiles in a tile layer are not available as a service, they must be in a specific format for a web app such as the ArcGIS.com scene viewer to display the layer on a scene.",properties:{blendMode:{$ref:"#/definitions/blendMode_schema.json"},copyright:{type:"string",description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web scene. Input required by the user when the layer is added to the web scene."},fullExtent:{description:"An extent object representing the full extent envelope for the layer.",$ref:"#/definitions/extent_schema.json"},id:{type:"string",description:"A unique identifying string for the layer."},isReference:{type:"boolean",description:"This is applicable if used as a basesceneLayer. A boolean value indicating whether or not the basesceneLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerType:{type:"string",description:"String indicating the layer type.",enum:["WebTiledLayer"]},listMode:{type:"string",description:"To show or hide the layer in the layer list",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{type:"array",description:"If subdomains are detected, they must be specified. The scene viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}.",items:{type:"string"}},templateUrl:{type:"string",description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web scene. The template URL contains a parameterized URL. The URL can contain the following templated parameters: `level`, `col`, `row`, and `subDomain`."},tileInfo:{description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme.",$ref:"#/definitions/tileInfo_schema.json"},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0},wmtsInfo:{description:"Object containing information about the chosen WMTS service layer and tiling schema.",$ref:"#/definitions/wmtsInfo_schema.json"}},required:["id","layerType","title"],additionalProperties:!1},"wfsLayer_schema.json":{title:"Web Feature Service Layer (WFS)",type:"object",description:"OGC Web Feature Service (WFS) is a dynamic feature service that follows the specifications of OGC.",properties:{disablePopup:{type:"boolean",description:"Indicates whether to allow a client to ignore popups defined by the service item."},id:{type:"string",description:"A unique identifying string for the layer."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{},transparency:{}},additionalProperties:!1}]},elevationInfo:{},featureReduction:{},fields:{},geometryType:{},spatialReference:{}},additionalProperties:!1}]},layerType:{type:"string",description:"String indicating the layer type.",enum:["WFS"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"Represents the maximum scale (most zoomed in) at which the layer is visible in the view. If the web scene is zoomed in beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a maximum scale. If set, the maxScale value should always be smaller than the minScale value, and greater than or equal to the service specification."},minScale:{type:"number",description:"Represents the minimum scale (most zoomed out) at which the layer is visible in the view. If the web scene is zoomed out beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a minimum scale. If set, the minScale value should always be larger than the maxScale value, and lesser than or equal to the service specification."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},popupInfo:{description:"A popupInfo object defining the content of popup windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},screenSizePerspective:{type:"boolean",description:"Apply [perspective scaling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled) to screen-size symbols.",default:!0},showLabels:{type:"boolean",description:"Labels will display if this property is set to `true` and the layer also has a [labelingInfo](labelingInfo.md) property associated with it. This property can get stored in the web map config and in the item/data.",default:!1},showLegend:{type:"boolean",description:"Boolean value indicating whether to display legend for this layer.",default:!0},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the layer. If the layer is not from a web service but rather a feature collection, than the url property is omitted."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map.",default:!0},wfsInfo:{description:"Object that defines and provides information about layers in a WFS service.",$ref:"#/definitions/wfsInfo_schema.json"}},required:["layerType","title","url"],additionalProperties:!1},"wmsLayer_schema.json":{title:"WMS Layer (WMS)",type:"object",description:"A layer consuming a Web Map Service (WMS). The WMS specification is an international specification for serving and consuming dynamic maps on the web.",properties:{copyright:{type:"string",description:"A string containing copyright and access information for a WMS layer. This is copied from the capabilities document exposed by the WMS service."},customLayerParameters:{type:"object",description:"A sequence of custom parameters to WMS layer requests. These parameters are applied to `GetMap` and `GetFeatureInfo` requests. The `customLayerParameters` property takes precedence if `customParameters` is also present.",patternProperties:{".*":{type:"string"}}},customParameters:{description:"A sequence of custom parameters to all WMS requests. These parameters are applied to `GetCapabilities`, `GetMap`, and `GetFeatureinfo` requests. If used with the `customLayerParameters` property, `customParameters` will not take precedence.",$ref:"#/definitions/customParameters_schema.json"},extent:{type:"array",description:"The minimum bounding rectangle, in decimal degrees, of the area covered by the layer as specified in the capabilities.",items:{type:"array",items:{type:"number"},minItems:2,maxItems:2},minItems:2,maxItems:2},featureInfoFormat:{type:"string",description:"Format of the feature, e.g.`text/plain`"},featureInfoUrl:{type:"string",description:"The URL for the WMS GetFeatureInfo call."},format:{type:"string",description:"A string containing the image format to be requested from a WMS service. Default is `png`.",enum:["bmp","gif","jpg","png","svg"],default:"png"},id:{type:"string",description:"A unique identifying string for the layer."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers, or below (false)."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layers:{type:"array",description:"An array of layer objects from the WMS service.",items:{$ref:"#/definitions/wmsLayer_layer_schema.json"},uniqueItems:!0},layerType:{type:"string",description:"String indicating the layer type.",enum:["WMS"]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list. If the layer has sublayers, selecting `hide-children` will hide them in the layer list.",enum:["hide","hide-children","show"],default:"show"},mapUrl:{type:"string",description:"A string containing the URL of the WMS map. When using a WMS layer, you should also supply the url property. `mapUrl` is the URL returned by the capabilities to be used for the getMap requests."},maxHeight:{type:"number",description:"A number defining the maximum height, in pixels, that should be requested from the service."},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},maxWidth:{type:"number",description:"A number defining the maximum width, in pixels, that should be requested from the service."},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend.",default:!0},spatialReferences:{type:"array",description:"An array of numbers containing well-known IDs for spatial references supported by the service.",items:{type:"integer",description:"well-known ID"}},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},url:{type:"string",description:"The URL to the WMS service (`getCapabilities` URL)."},version:{type:"string",description:"A string containing the version number of the service."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map.",default:!0},visibleLayers:{type:"array",description:"An array of layers that should appear visible. The array contains the names of the visible layers.",items:{type:"string"},uniqueItems:!0}},required:["layerType","title"],additionalProperties:!1},"slide_schema.json":{title:"slide",type:"object",description:"A slide object used within a presentation.",properties:{baseMap:{description:"The basemap to be displayed on the slide.",allOf:[{$ref:"#/definitions/baseMap_schema.json"},{properties:{baseMapLayers:{},id:{},title:{}},additionalProperties:!1}]},description:{description:"Text description of the individual presentation slide.",$ref:"#/definitions/description_schema.json"},environment:{description:"Represents settings that affect the environment in which the web scene is displayed.",allOf:[{$ref:"#/definitions/environment_schema.json"},{properties:{lighting:{},weather:{}},additionalProperties:!1}]},ground:{description:"The ground properties to be set in the slide.",$ref:"#/definitions/slide_ground_schema.json"},id:{type:"string",description:"The unique id of a slide within the slides property of a Presentation."},thumbnail:{$ref:"#/definitions/thumbnail_schema.json"},title:{$ref:"#/definitions/title_schema.json"},viewpoint:{$ref:"#/definitions/viewpoint_schema.json"},visibleLayers:{type:"array",description:"An array of objects used to indicate the visible layers of the web scene.",items:{$ref:"#/definitions/visibleLayer_schema.json"}}},required:["id","thumbnail","title","viewpoint","visibleLayers"],additionalProperties:!1},"customParameters_schema.json":{title:"customParameters",type:"object",description:"A sequence of custom parameters appended to the URL of all requests related to a layer.",patternProperties:{".*":{type:"string"}}},"definitionEditor_schema.json":{title:"definitionEditor",type:"object",description:"The definitionEditor stores interactive filters at the same level as layerDefinition.",properties:{inputs:{type:"array",description:"An array of input objects.",items:{$ref:"#/definitions/input_schema.json"}},parameterizedExpression:{type:"string",description:"A string value representing the where clause for the interactive filter."}},additionalProperties:!1},"floorFilter_schema.json":{title:"floorFilter",type:"object",description:"Configurable properties used by the floor filter widget.",properties:{enabled:{type:"boolean",description:"Indicates whether the floor filter is actively filtering the displayed content according to the floor filter selection.",default:!1},facility:{type:"string",description:"Contains a facility identifier for the initially selected facility in the floor filter."},level:{type:"string",description:"Contains a level identifier for the initially selected floor, which is used when filtering floor-aware layers."},longNames:{type:"boolean",description:"Indicates whether the floor filter is showing long names instead of short names for floor levels.",default:!1},minimized:{type:"boolean",description:"Indicates whether the floor filter has been minimized to show only the levels list instead of showing the full set of breadcrumbs.",default:!1},pinnedLevels:{type:"boolean",description:"Indicates whether the floor filter has been pinned to show the floor levels list, instead of including the levels as a breadcrumb dropdown.",default:!1},site:{type:"string",description:"Contains a site identifier for the initially selected site in the floor filter."}},additionalProperties:!1},"range_schema.json":{title:"Range",description:"Range object.",properties:{interactionMode:{type:"string",description:"Indicates the mode in which the active range should be presented to the user.",enum:["picker","slider"]},numberOfStops:{type:"integer",description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},oneOf:[{required:["interactionMode","numberOfStops"]},{required:["interactionMode","stopInterval"]}],additionalProperties:!1},"buildingSceneLayer_filterAuthoringInfoCheckbox_schema.json":{title:"Metadata for checkbox based filter UI",type:"object",description:"Client UI with checkbox representation for each filter type and filter value.",properties:{filterBlocks:{type:"array",description:"Array of filter block authoring infos.",items:{$ref:"#/definitions/buildingSceneLayer_filterAuthoringInfo_filterBlock_schema.json"}},type:{type:"string",description:"Type of filter authoring info.",enum:["checkbox"]}},required:["filterBlocks","type"],additionalProperties:!1},"buildingSceneLayer_filterBlock_schema.json":{title:"Building Scene Layer Filter Block",type:"object",description:"A filter block defines what elements will be filtered with a specific filter mode. To ensure performance on client applications, it is not recommended to declare multiple filter blocks with the same filter mode. Filter blocks are contained in a filter for a building scene layer. Each filter includes at least one filter block.",properties:{filterExpression:{type:"string",description:"SQL expression to select features that belong to this filter block."},filterMode:{$ref:"#/definitions/buildingSceneLayer_filterMode_schema.json"},title:{type:"string",description:"Title of the filter block."}},required:["filterExpression","filterMode","title"],additionalProperties:!1},"elevationInfo_schema.json":{title:"elevationInfo",type:"object",description:"Elevation info defines how features are aligned to ground or other layers.",properties:{featureExpression:{type:"object",description:'Deprecated with 1.8, use `featureExpressionInfo` instead. `{"value":0}` ignores geometry z-values.',properties:{value:{type:"number",enum:[0]}},minProperties:1,additionalProperties:!1},featureExpressionInfo:{description:"An object that defines an expression for per-feature elevation. If not set, geometry.z values are used for elevation. `unit` is applied to the resulting expression value.",$ref:"#/definitions/featureExpressionInfo_schema.json"},mode:{type:"string",description:"Determines how the service elevation values are combined with the elevation of the scene.",enum:["absoluteHeight","onTheGround","relativeToGround","relativeToScene"]},offset:{type:"number",description:"Offset is always added to the result of the above logic except for onTheGround where offset is ignored."},unit:{type:"string",description:'A string value indicating the unit for the values in elevationInfo. Applies to both `offset` and `featureExpressionInfo`. Defaults to `meter` if not set. 1',default:"meter"}},required:["mode"],additionalProperties:!1},"featureReduction_schema.json":{title:"Feature Reduction",description:"An object that specifies how features are reduced or aggregated, with the goal of decluttering the view or presenting the user with an aggregate visualization. If unset, every feature is rendered individually.",oneOf:[{$ref:"#/definitions/featureReduction_select_schema.json"},{type:"null"}]},"field_schema.json":{title:"field",type:"object",description:"Contains information about an attribute field.",properties:{alias:{type:"string",description:"A string defining the field alias."},defaultValue:{type:["null","number","string"],description:"The default value set for the field."},domain:{description:"The domain objects if applicable.",$ref:"#/definitions/domain_schema.json"},editable:{type:"boolean",description:"A Boolean defining whether this field is editable."},length:{type:"integer",description:"A number defining how many characters are allowed in a string field."},name:{type:"string",description:"A string defining the field name."},nullable:{type:"boolean",description:"A Boolean defining whether this field can have a null value."},type:{type:"string",description:"A string defining the field type.",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeXML"]}},additionalProperties:!1},"pointCloudFilter_schema.json":{title:"PointCloud Filter",type:"object",description:"Filters applied to the pointCloud which will hide a point.",oneOf:[{$ref:"#/definitions/pointCloudBitfieldFilter_schema.json"},{$ref:"#/definitions/pointCloudReturnFilter_schema.json"},{$ref:"#/definitions/pointCloudValueFilter_schema.json"}]},"layerFloorInfo_schema.json":{title:"floorInfo",type:"object",description:"Contains floor-awareness information for a layer.",properties:{floorField:{type:"string",description:"The name of the attribute field that contains a floor's level ID used for floor filtering."}},required:["floorField"],additionalProperties:!1},"polygonFilter_schema.json":{title:"Polygon filter",type:"object",description:"Filter features using polygons stored in external resources.",properties:{geometries:{type:"string",description:"URL to a polygon filter geometries json file, typically stored in `ITEM/resources`. Content of the file follows the $ref:[polygon filter geometries schema](polygonFilterGeometries_schema.json)."},spatialRelationship:{description:"Specifies the spatial relatonship used for the filter. `disjoint`: Display features that do not intersect any filter polygon. `contains`: Display features completely inside any filter polygon",enum:["contains","disjoint"]}},required:["geometries","spatialRelationship"]},"rangeInfo_schema.json":{title:"Range Information",description:"Range Information.",properties:{currentRangeExtent:{type:"array",description:"Contains the min and max values within which the features are visible.",items:{type:"number"},minItems:2,maxItems:2},field:{type:"string",description:"Field name to used for the range."},fullRangeExtent:{type:"array",description:"Contains the min and max values of all the features for this rangeInfo.",items:{type:"number"},minItems:2,maxItems:2},name:{type:"string",description:"A unique name that can be referenced by webMap.activeRanges."},type:{type:"string",description:"Type of range object.",enum:["rangeInfo"]}},required:["field","name","type"],additionalProperties:!1},"source_schema.json":{title:"source",type:"object",description:"Contains [dynamicDataLayer](dynamicDataLayer_source.md) object and [dynamicMapLayer](dynamicDataLayer_source.md) object. If the service supports dynamic layers, the [layerDefinition's ](layerDefinition.md) source property must be specified.",oneOf:[{$ref:"#/definitions/dynamicDataLayer_source_schema.json"},{$ref:"#/definitions/dynamicMapLayer_source_schema.json"}]},"type_schema.json":{title:"type",type:"object",description:"Contains information about an attribute field.",properties:{domains:{type:"object",description:"A comma-delimited series of domain objects for each domain in the type.",patternProperties:{".*":{$ref:"#/definitions/domain_schema.json"}}},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types.",items:{$ref:"#/definitions/template_schema.json"},uniqueItems:!0}},required:["id"],additionalProperties:!1},"labelingInfo_schema.json":{title:"labelingInfo",type:"object",description:"The labelingInfo object specifies the label definition for a layer.",properties:{labelExpression:{type:"string",description:"Defines the expression for text of labels. Deprecated on FeatureLayer, Use `labelExpressionInfo` instead."},labelExpressionInfo:{$ref:"#/definitions/labelExpressionInfo_schema.json"},labelPlacement:{type:"string",description:"This string property specifies the label placement with respect to that of its feature. A list of label placement values categorized by feature geometry types.",enum:["esriServerLinePlacementAboveAfter","esriServerLinePlacementAboveAlong","esriServerLinePlacementAboveBefore","esriServerLinePlacementAboveEnd","esriServerLinePlacementAboveStart","esriServerLinePlacementBelowAfter","esriServerLinePlacementBelowAlong","esriServerLinePlacementBelowBefore","esriServerLinePlacementBelowEnd","esriServerLinePlacementBelowStart","esriServerLinePlacementCenterAfter","esriServerLinePlacementCenterAlong","esriServerLinePlacementCenterBefore","esriServerLinePlacementCenterEnd","esriServerLinePlacementCenterStart","esriServerPointLabelPlacementAboveCenter","esriServerPointLabelPlacementAboveLeft","esriServerPointLabelPlacementAboveRight","esriServerPointLabelPlacementBelowCenter","esriServerPointLabelPlacementBelowLeft","esriServerPointLabelPlacementBelowRight","esriServerPointLabelPlacementCenterCenter","esriServerPointLabelPlacementCenterLeft","esriServerPointLabelPlacementCenterRight","esriServerPolygonPlacementAlwaysHorizontal"]},maxScale:{type:"number",description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{type:"number",description:"Represents the minimum scale at which the layer definition will be applied."},name:{type:"string",description:"The name of the label class."},symbol:{description:"The text symbol used to label.",$ref:"#/definitions/labelSymbol3D_schema.json"},useCodedValues:{type:"boolean",description:"Boolean value indicating whether to display the coded values for the specified field name(s)."},where:{type:"string",description:"String template used to determine which features to label."}},additionalProperties:!1},"renderer_schema.json":{title:"renderer",type:"object",description:"The renderer object contains the drawing information for the operationalLayer. This is a list of links to all the renderer objects.",oneOf:[{$ref:"#/definitions/classBreaksRenderer_schema.json"},{$ref:"#/definitions/heatmapRenderer_schema.json"},{$ref:"#/definitions/pointCloudRenderers_schema.json"},{$ref:"#/definitions/rasterRenderers_schema.json"},{$ref:"#/definitions/simpleRenderer_schema.json"},{$ref:"#/definitions/uniqueValueFromStyleRenderer_schema.json"},{$ref:"#/definitions/uniqueValueRenderer_schema.json"}]},"popupExpressionInfo_schema.json":{title:"popupExpressionInfo",description:"Arcade expression added to the pop-up.",properties:{expression:{type:"string",description:"The Arcade expression."},name:{type:"string",description:"Unique identifier for the expression."},returnType:{type:"string",description:"Return type of the Arcade expression, can be number or string. Defaults to string value. Number values are assumed to be `double`. This can be determined by the authoring client by executing the expression using a sample feature(s), although it can be corrected by the user. Knowing the returnType allows the authoring client to present fields in relevant contexts. For example, numeric fields in numeric contexts such as charts.",enum:["number","string"]},title:{type:"string",description:"Title of the expression."}},additionalProperties:!1},"fieldInfo_schema.json":{title:"fieldInfo",type:"object",description:"Defines how a field in the dataset participates (or does not participate) in a popup window.",properties:{fieldName:{type:"string",description:"A string containing the field name as defined by the service. Anywhere that a fieldname is referenced as `{field-name} in popupInfo, an Arcade expression can also be referenced as `{expression/}`."},format:{description:"A format object used with numerical or date fields to provide more detail about how the value should be displayed in a popup window.",$ref:"#/definitions/format_schema.json"},isEditable:{type:"boolean",description:"A Boolean determining whether users can edit this field. Not applicable to Arcade expressions.",default:!1},label:{type:"string",description:"A string containing the field alias. This can be overridden by the web map author. Not applicable to Arcade expressions as `title` is used instead."},statisticType:{type:"string",description:"Used in a 1:many or many:many relationship to compute the statistics on the field to show in the popup.",enum:["avg","count","max","min","stddev","sum","var"]},stringFieldOption:{type:"string",description:"A string determining what type of input box editors see when editing the field. Applies only to string fields. Not applicable to Arcade expressions.",enum:["richtext","textarea","textbox"],default:"textbox"},tooltip:{type:"string",description:"A string providing an editing hint for editors of the field. Not applicable to Arcade expressions."},visible:{type:"boolean",description:"A Boolean determining whether the field is visible in the popup window."}},additionalProperties:!1},"popupLayerOptions_schema.json":{title:"Layer Options",type:"object",description:"Additional options available for the popup layer.",properties:{returnTopmostRaster:{type:"boolean",description:"Indicates whether or not only the topmost raster should be displayed."},showNoDataRecords:{type:"boolean",description:"Indicates whether or not the NoData records should be displayed."}}},"mediaInfo_schema.json":{title:"mediaInfo",type:"object",description:"Defines an image or a chart to be displayed in a popup window.",oneOf:[{$ref:"#/definitions/mediaInfo_chart_schema.json"},{$ref:"#/definitions/mediaInfo_image_schema.json"}]},"popupElement_schema.json":{title:"popupElement",type:"object",description:"Popup elements allow users to author popups, using multiple elements such as tabular views, string description, media (charts and images), and attachments of the attributes and control the order in which they appear. Specifically, popupElements do the following: 1) provide the ability to explicitly add a field/ value table in addition to a description, 2) allow adding multiple description elements, and 3) allow a user to author and consume elements of a popup in the order of their choosing.",oneOf:[{$ref:"#/definitions/popupElement_attachments_schema.json"},{$ref:"#/definitions/popupElement_expression_schema.json"},{$ref:"#/definitions/popupElement_fields_schema.json"},{$ref:"#/definitions/popupElement_media_schema.json"},{$ref:"#/definitions/popupElement_relationship_schema.json"},{$ref:"#/definitions/popupElement_text_schema.json"}]},"relatedRecordsInfo_schema.json":{title:"relatedRecordsInfo",type:"object",description:"The sort in the popupInfo for the parent feature. This impacts the sorting order for the returned child records.",properties:{orderByFields:{type:"array",description:"Array of orderByField objects indicating the field display order for the related records and whether they should be sorted in ascending `asc` or descending `desc` order.",items:{$ref:"#/definitions/orderByField_schema.json"}},showRelatedRecords:{type:"boolean",description:"Required boolean value indicating whether to display related records. If true, client should let the user navigate to the related records. Defaults to true if the layer participates in a relationship AND the related layer/table has already been added to the scene (either as an operationalLayer or as a table)."}}},"search_schema.json":{title:"search",type:"object",description:"An object specifying the search parameters set within the web scene.",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether search functionality is enabled in the web scene.",default:!0},hintText:{type:"string",description:"A string value used to indicate the hint provided with the search dialog."},layers:{type:"array",description:"An array of objects that define search fields and search criteria for layers.",items:{$ref:"#/definitions/search_layer_schema.json"},uniqueItems:!0},tables:{type:"array",description:"An array of objects that define search fields and search criteria for tables in the web map.",items:{$ref:"#/definitions/search_table_schema.json"},uniqueItems:!0}},required:[],additionalProperties:!1},"openStreetMapLayer_schema.json":{title:"OpenStreetMap Layer (OpenStreetMap)",type:"object",description:"Allows use of OpenStreetMap data for use in basemaps only.",properties:{blendMode:{$ref:"#/definitions/blendMode_schema.json"},id:{type:"string",description:"An identifying string for the layer, unique per scene."},layerType:{type:"string",description:"String indicating the layer type.",enum:["OpenStreetMap"]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},maxScale:{type:"number",description:"A numeric property used to determine the maximum scale at which the layer is displayed.",minimum:0},minScale:{type:"number",description:"A numeric property used to determine the minimum scale at which the layer is displayed.",minimum:0},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},title:{type:"string",description:"String title for the basemap layer."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible.",default:!0}},required:["id","layerType","title"],additionalProperties:!1},"rasterDataElevationLayer_schema.json":{title:"Raster Data Elevation Layer",type:"object",description:"RasterDataElevationLayer is a single-band raster layer used for rendering elevation.",properties:{id:{type:"string",description:"A unique identifying string for the layer"},layerType:{type:"string",description:"String indicating the layer type",enum:["RasterDataElevationLayer"]},listMode:{type:"string",description:"To show or hide the elevation layer in the layer list",enum:["hide","show"],default:"show"},path:{type:"string",description:"For offline data, a path to an ArcGIS Runtime supported raster data file. A URI format is used, starting with file: followed by a file system path. A relative path must be from the file which defines the layer. For example `file:../commondata/raster_data/beijing.tif`",pattern:"^file:.+$"},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents. If this is not included, a title is derived from the service."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0}},required:["id","layerType","path","title"],additionalProperties:!1},"tiledElevationLayer_schema.json":{title:"Tiled Elevation Layer",type:"object",description:"Tiled Elevation Layer is a tile layer used for rendering elevation.",properties:{id:{type:"string",description:"A unique identifying string for the layer"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",description:"String indicating the layer type",enum:["ArcGISTiledElevationServiceLayer"]},listMode:{type:"string",description:"To show or hide the elevation layer in the layer list",enum:["hide","show"],default:"show"},path:{type:"string",description:"For offline data, a path to a tile package containing elevation data. A URI format is used, starting with `file:` followed by a file system path with an extension of `.tpk` or `.tpkx`. A relative path must be from the file which defines the layer. For example `file:../p20/portland.tpk`.",pattern:"^file:.+\\.tpkx?$"},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents. If this is not included, a title is derived from the service."},url:{type:"string",description:"The URL to the layer.If the layer is not from a web service but rather a feature collection, then the url property is omitted"},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0}},anyOf:[{required:["id","layerType","title","url"]},{required:["id","layerType","path","title"]}],additionalProperties:!1},"environment_background_color_schema.json":{title:"color background",type:"object",description:"Specifies a single color to fill the background of the scene with. The scene background is displayed behind any scene objects, stars and atmosphere.",properties:{color:{$ref:"#/definitions/color_schema.json"},transparency:{type:"integer",description:"The value has to lie between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100},type:{type:"string",description:"The type of background.",enum:["color"]}},default:{type:"color",color:[0,0,0]},required:["color","type"],additionalProperties:!1},"lighting_schema.json":{title:"lighting",type:"object",description:"Object containing information on how the scene is lit.",oneOf:[{$ref:"#/definitions/sunLighting_schema.json"},{$ref:"#/definitions/virtualLighting_schema.json"}]},"cloudyWeather_schema.json":{title:"cloudyWeather",type:"object",description:"Object containing information for changing the weather conditions in the scene to cloudy.",properties:{cloudCover:{type:"number",description:"Specifies the amount of cloud cover in the sky.",minimum:0,maximum:1,default:.5},type:{type:"string",description:"The type of weather.",enum:["cloudy"]}},required:["type"],additionalProperties:!1},"foggyWeather_schema.json":{title:"foggyWeather",type:"object",description:"Object containing information for changing the weather conditions in the scene to foggy.",properties:{fogStrength:{type:"number",description:"Specifies the amount of fog used in the scene.",minimum:0,maximum:1,default:.5},type:{type:"string",description:"The type of weather.",enum:["foggy"]}},required:["type"],additionalProperties:!1},"rainyWeather_schema.json":{title:"rainyWeather",type:"object",description:"Object containing information for changing the weather conditions in the scene to rainy.",properties:{cloudCover:{type:"number",description:"Specifies the amount of cloud cover in the sky.",minimum:0,maximum:1,default:.5},precipitation:{type:"number",description:"Specifies the amount of rainfall in the scene.",minimum:0,maximum:1,default:.5},type:{type:"string",description:"The type of weather.",enum:["rainy"]}},required:["type"],additionalProperties:!1},"snowyWeather_schema.json":{title:"snowyWeather",type:"object",description:"Object containing information for changing the weather conditions in the scene to snowy.",properties:{cloudCover:{type:"number",description:"Specifies the amount of cloud cover in the sky.",minimum:0,maximum:1,default:.5},precipitation:{type:"number",description:"Specifies the amount of snowfall in the scene.",minimum:0,maximum:1,default:.5},snowCover:{type:"string",description:"Display surfaces covered with snow.",enum:["disabled","enabled"],default:"disabled"},type:{type:"string",description:"The type of weather.",enum:["snowy"]}},required:["type"],additionalProperties:!1},"sunnyWeather_schema.json":{title:"sunnyWeather",type:"object",description:"Object containing information for changing the weather conditions in the scene to sunny.",properties:{cloudCover:{type:"number",description:"Specifies the amount of cloud cover in the sky.",minimum:0,maximum:1,default:.5},type:{type:"string",description:"The type of weather.",enum:["sunny"]}},required:["type"],additionalProperties:!1},"camera_schema.json":{title:"Camera",type:"object",description:"The camera defines the position, tilt, and heading of the point from which the SceneView's visible extent is observed.",properties:{heading:{type:"number",description:"The heading of the camera in degrees. Heading is zero when north is the top of the screen. It increases as the view rotates clockwise."},position:{description:"The position of the camera defined by a map point.",$ref:"#/definitions/point_geometry_schema.json"},tilt:{type:"number",description:"The tilt of the camera in degrees with respect to the surface as projected down from the camera position. Tilt is zero when looking straight down at the surface and 90 degrees when the camera is looking parallel to the surface."}},required:["heading","position","tilt"],additionalProperties:!1},"geometry_schema.json":{title:"geometry",type:"object",description:"Please refer to the links below for objects which define the JSON formats of geometry and spatial reference objects.",oneOf:[{$ref:"#/definitions/multipoint_geometry_schema.json"},{$ref:"#/definitions/point_geometry_schema.json"},{$ref:"#/definitions/polygon_geometry_schema.json"},{$ref:"#/definitions/polyline_geometry_schema.json"}]},"locationInfo_schema.json":{title:"locationInfo",type:"object",description:"Defines how location information will be retrieved from a [CSV](csvLayer.md) file referenced through the web, ie. referenced by URL.",properties:{latitudeFieldName:{type:"string",description:"A string defining the field name that holds the latitude (Y) coordinate."},locationType:{type:"string",description:"String value indicating location type.",enum:["coordinates"]},longitudeFieldName:{type:"string",description:"A string defining the field name that holds the longitude (X) coordinate."}},required:["locationType"],additionalProperties:!1},"dimensionLayer_lengthDimension_schema.json":{title:"Length Dimension",type:"object",description:"Defines the shape of a dimension that measures the distance between two points.",properties:{endPoint:{description:"The position of the point that a dimension is measured to (last input point).",$ref:"#/definitions/point_geometry_schema.json"},measureType:{type:"string",description:"Defines whether the horizontal, vertical or direct distance between the start and end points is measured.",enum:["direct","horizontal","vertical"]},offset:{type:"number",description:"The distance of the dimension line from the nearest input point in meters."},orientation:{type:"number",description:"The direction that the offset of a dimension with a 'direct' measureType extends in."},startPoint:{description:"The position of the point that a dimension is measured from (first input point).",$ref:"#/definitions/point_geometry_schema.json"},type:{type:"string",description:"Specifies the type of the dimension.",enum:["length"]}},required:["endPoint","measureType","offset","orientation","startPoint","type"],additionalProperties:!1},"dimensionLayer_dimensionSimpleStyle_schema.json":{title:"Dimension Simple Style",type:"object",description:"Specification of how dimensions and their labels are displayed.",properties:{color:{description:"Color of dimension lines.",$ref:"#/definitions/color_schema.json"},fontSize:{type:"number",description:"Font size of dimension label text in points.",minimum:0},lineSize:{type:"number",description:"Width of dimension lines in points.",minimum:0},textBackgroundColor:{description:"Background color of dimension labels.",$ref:"#/definitions/color_schema.json"},textColor:{description:"Color of dimension label text.",$ref:"#/definitions/color_schema.json"},type:{type:"string",description:"Specifies the type of style used.",enum:["simple"]}},required:["color","fontSize","lineSize","textBackgroundColor","textColor","type"],additionalProperties:!1},"blendMode_schema.json":{title:"blendMode",type:"string",description:"Blend modes are used to create various effects by blending colors of top and background layers. `normal` blend mode is the default.",enum:["average","color","color-burn","color-dodge","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],default:"normal"},"mosaicRule_schema.json":{title:"mosaicRule",type:"object",description:"The image service uses a mosaic rule to mosaick multiple rasters on the fly. The mosaic rule parameter is used by many image service operations, for example, export image and identify operations.",properties:{ascending:{type:"boolean",description:"Indicate whether to use ascending or descending order.",default:!0},fids:{type:"array",description:"A list that defines a subset of rasters used in the mosaic, be aware that the rasters may not be visible at all scales.",items:{type:"integer"}},itemRenderingRule:{description:"The rendering rule applies on items before mosaicking.",$ref:"#/definitions/renderingRule_schema.json"},lockRasterIds:{type:"array",description:"Lock a few rasters in the image service. Used together with `esriMosaicLockRaster`.",items:{type:"integer"}},mosaicMethod:{type:"string",description:"A string value that determines how the selected rasters are ordered.",enum:["esriMosaicAttribute","esriMosaicCenter","esriMosaicLockRaster","esriMosaicNadir","esriMosaicNone","esriMosaicNorthwest","esriMosaicSeamline","esriMosaicViewpoint"]},mosaicOperation:{type:"string",description:"Use the mosaic operation to resolve overlap pixel values: from first or last raster, use the min, max or mean of the pixel values, or blend them.",enum:["MT_BLEND","MT_FIRST","MT_LAST","MT_MAX","MT_MEAN","MT_MIN","MT_SUM"],default:"MT_FIRST"},multidimensionalDefinition:{type:"array",description:"An array of objects representing a slice from multidimensional data or multiple slices that are dynamically mosaicked and processed by the server. The dimensional definitions in this array are used to filter display data based on slices in one or more dimensions.",items:{$ref:"#/definitions/multidimensionalDefinition_schema.json"}},sortField:{type:"string",description:"The field name used together with `esriMosaicAttribute` method."},sortValue:{type:["null","number","string"],description:"The base sort value used together with `esriMosaicAttribute` method and `sortField` parameter.",default:0},viewpoint:{description:"Use a view point along with `esriMosaicViewpoint`.",$ref:"#/definitions/point_geometry_schema.json"},where:{type:"string",description:"Deprecated. Use `layerDefinition.definitionExpression` instead."}},required:["mosaicMethod"],additionalProperties:!1},"multidimensionalSubset_schema.json":{title:"Multidimensional Subset",type:"object",description:"Represents a multidimensional subset of raster data. This includes subsets of both variables and dimensions. When the multidimensionalSubset is defined on a layer, the [layer.multidimensionalDefinition](multidimensionalDefinition.md) or the [mosaicRule.multidimensionalDefinition](mosaicRule.md) must be within the defined multidimensionalSubset, otherwise nothing will be displayed.",properties:{areaOfInterest:{description:"An optional area of interest for the entire multidimensional subset.",oneOf:[{$ref:"#/definitions/extent_schema.json"},{$ref:"#/definitions/polygon_geometry_schema.json"}]},subsetDefinitions:{type:"array",description:"An optional array of objects representing dimension range subsets for selected variables from multidimensional data.",items:{$ref:"#/definitions/multidimensionalDefinition_schema.json"}}},additionalProperties:!1},"renderingRule_schema.json":{title:"renderingRule",type:"object",description:"Specifies the rendering rule for how the requested image should be rendered.",properties:{outputPixelType:{type:"string",description:"the output pixel type defines the output image's pixel type.",enum:["C128","C64","F32","F64","S16","S32","S8","U1","U16","U2","U32","U4","U8","UNKNOWN"],default:"UNKNOWN"},rasterFunction:{type:"string",description:"The raster function name identifies the processing or rendering to be performed. For a list of possible types, please see the [Raster Functions](http://resources.arcgis.com/en/help/arcgis-rest-api/#/Raster_Function_Objects/02r3000000rv000000/) help topic for additional information on this."},rasterFunctionArguments:{type:"object",description:"The arguments for the referenced `rasterFunction`. For a description of arguments per raster function type, please see the [Raster Functions](http://resources.arcgis.com/en/help/arcgis-rest-api/#/Raster_Function_Objects/02r3000000rv000000/) help topic for additional information on this."},variableName:{type:"string",description:"Variable name for the raster function."}},additionalProperties:!1},"lineOfSightObserver_schema.json":{title:"LineOfSight Observer",type:"object",description:"Defines the observer of a line of sight analysis in a LineOfSight layer.",properties:{elevationInfo:{$ref:"#/definitions/elevationInfo_schema.json"},feature:{$ref:"#/definitions/featureReference_schema.json"},position:{description:"Position of the line of sight observer.",$ref:"#/definitions/point_geometry_schema.json"}},required:["position"],additionalProperties:!1},"lineOfSightTarget_schema.json":{title:"LineOfSight Target",type:"object",description:"Defines the target of a line of sight analysis in a LineOfSight layer.",properties:{elevationInfo:{$ref:"#/definitions/elevationInfo_schema.json"},feature:{$ref:"#/definitions/featureReference_schema.json"},position:{description:"Position of the line of sight target.",$ref:"#/definitions/point_geometry_schema.json"}},required:["position"],additionalProperties:!1},"layer_schema.json":{title:"layer",type:"object",description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.",properties:{defaultVisibility:{type:"boolean",description:"Default visibility of the layers in the map service."},disablePopup:{type:"boolean",description:"Indicates whether to allow a client to ignore the popups defined on the layer. The popupInfo object could be saved in the map or item.",default:!1},id:{type:"integer",description:"The layer id, as a numeric value."},layerDefinition:{description:"Additional properties that define drawing information and other configurations for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{},showLabels:{},transparency:{}},additionalProperties:!1}]},source:{}},additionalProperties:!1}]},layerUrl:{type:"string",description:"A URL to a service that should be used for all queries against the layer."},listMode:{type:"string",description:"To show or hide the sublayer in the layer list. If the layer has sublayers, selecting `hide-children` will hide them in the layer list.",enum:["hide","hide-children","show"]},maxScale:{type:"number",description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{type:"number",description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},name:{type:"string",description:"The name of the layer."},parentLayerId:{type:"integer",description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{description:"A popupInfo object defining the popup window content for the layer.",$ref:"#/definitions/popupInfo_schema.json"},showLegend:{type:"boolean",description:"A Boolean indicating if the layer should be shown in the legend in client applications.",default:!0},subLayerIds:{type:"array",description:"If the layer is a parent layer, it will have one or more sub layers included in an array.",items:{type:"integer"}}},additionalProperties:!1},"multidimensionalDefinition_schema.json":{title:"Dimensional Definition",type:"object",description:"The dimensional definition defines a display filter based on one variable and one dimension. It is typically used when filtering data based on slices or ranges in one or more dimensions with [mosaicRule.description](mosaicRule.md). If the [multidimensionalSubset](multidimensionalSubset.md) is defined on the [TiledImageServiceLayer](tiledImageServiceLayer_schema.md) or the [mosaicRule](mosaicRule.md) then the multidimensionalDefinition must be within the defined multidimensionalSubset, otherwise nothing will be displayed.",properties:{dimensionName:{type:"string",description:"Type of dimension being used (ex. StdTime)."},isSlice:{type:"boolean",description:"Is slice?",default:!0},values:{type:"array",description:"Array where every element is either a single value, or an array of two values (lower and upper bound).",items:{oneOf:[{type:"number"},{type:"array",items:{type:"number"},minItems:2,maxItems:2}]}},variableName:{type:"string",description:"Name of the variable."}},anyOf:[{required:["variableName"]},{required:["dimensionName","values"]}],additionalProperties:!1,dependencies:{dimensionName:["values"],values:["dimensionName"]}},"voxelLayerDefinition_schema.json":{title:"voxelLayerDefinition",type:"object",description:"The voxelLayerDefinition contains drawing information for a voxel layer.",properties:{sections:{type:"array",description:"Array of metadata about sections. A section is a static plane through the voxel layer showing the variable the section was created at.",items:{$ref:"#/definitions/voxelSection_schema.json"},minItems:0},style:{description:"Voxel style describes how the layer will be drawn including rendering and voxel representions that will be visible.",$ref:"#/definitions/voxelStyle_schema.json"}},additionalProperties:!1},"tileInfo_schema.json":{title:"tileInfo",type:"object",description:"Tile information, returned from the WMTS OGC Web Service. The tileInfo will contain the spatial reference of the layer. tileInfo is the same json representation as the ArcGIS Map/Image service tileInfo except that it may contain a levelValue on the lod objects that should be used instead of the level in the templateUrl.",properties:{cols:{type:"integer",description:"Requested tile's column."},compressionQuality:{type:"number",description:"Compression quality of the tile.",minimum:0,maximum:100},dpi:{type:"number",description:"The dpi of the tiling scheme."},lods:{type:"array",description:"An array of levels of detail that define the tiling scheme.",items:{$ref:"#/definitions/lod_schema.json"},uniqueItems:!0},origin:{description:"The tiling scheme origin.",$ref:"#/definitions/point_geometry_schema.json"},rows:{type:"integer",description:"Requested tile's row."},spatialReference:{description:"The spatial reference of the tiling schema.",$ref:"#/definitions/spatialReference_schema.json"}},additionalProperties:!1},"wmtsInfo_schema.json":{title:"Web Map Tile Service Info",type:"object",description:"Object defines and provides information about layers in a [WMTSLayer](webTiledLayer.md) service.",properties:{customLayerParameters:{type:"object",description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to `GetTile`. The `customLayerParameters` property takes precedence if `customParameters` is also present.",patternProperties:{".*":{type:"string"}}},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to `GetCapabilities` and `GetTile`. If used with the `customLayerParameters` property, `customParameters` will not take precedence.",$ref:"#/definitions/customParameters_schema.json"},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{type:"string",description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},additionalProperties:!1},"wfsInfo_schema.json":{title:"Web Feature Service Info",type:"object",description:"Object that defines and provides information about layers in a WFS service.",properties:{customParameters:{type:"object",description:"A sequence of parameters used to append custom parameters to all WFS requests. These parameters are applied to `GetCapabilities`, `DescribeFeatureType`, and `GetFeatures`.",patternProperties:{".*":{type:"string"}}},featureUrl:{type:"string",description:"URL of the WFS service operation."},maxFeatures:{type:"integer",description:"Set this to limit the number of requested features that a GetFeature request presents."},name:{type:"string",description:"The name of the WFS layer. This is used to set layer visibility."},supportedSpatialReferences:{type:"array",description:"List of supported spatial reference IDs",items:{type:"integer"}},swapXY:{type:"boolean",description:"Boolean value indicating whether X and Y axis are flipped.",default:!1},version:{type:"string",description:"Value indicating which version of the WFS specification is used."},wfsNamespace:{type:"string",description:"String indicating namespace."}},additionalProperties:!1},"wmsLayer_layer_schema.json":{title:"WMSLayer layer",type:"object",description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service.",properties:{legendUrl:{type:"string",description:"A string URL to a legend graphic for the layer."},name:{type:"string",description:"A string containing a unique name for the layer."},queryable:{type:"boolean",description:"Boolean specifying whether a layer is queryable or not."},showPopup:{type:"boolean",description:"Boolean specifying whether to display popup or not."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."}},additionalProperties:!1},"description_schema.json":{title:"description",type:"object",description:"Description object with text.",properties:{text:{type:"string",description:"Text to display as slide description."}},required:["text"],additionalProperties:!1},"slide_ground_schema.json":{title:"Ground",type:"object",description:"Ground defines the main surface of the web scene, based on elevation layers. This object defines the ground properties to be set in the slides.",properties:{transparency:{type:"integer",description:"The transparency of the ground surface (including basemap). The value has to lie between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100}},additionalProperties:!1},"thumbnail_schema.json":{title:"thumbnail",type:"object",description:"Object containing a thumbnail image.",properties:{url:{type:"string",description:"The URI pointing to the thumbnail image. Can be a URL or a base64-encoded image."}},required:["url"],additionalProperties:!1},"title_schema.json":{title:"title",type:"object",description:"Text for the title of the individual slide.",properties:{text:{type:"string",description:"Text to display as slide title."}},required:["text"],additionalProperties:!1},"visibleLayer_schema.json":{title:"visibleLayer",type:"object",description:"Object with layer id, used to indicate layer visibility in a slide.",properties:{id:{type:"string",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",description:"List of visible sublayer ids, as listed on the service of the layer.",items:{type:"integer"}}},additionalProperties:!1},"input_schema.json":{title:"input",type:"object",description:"The input objects specified by the [definitionEditor](definitionEditor.md).",properties:{hint:{type:"string",description:"A string value representing a hint for the input."},parameters:{type:"array",description:"An array of parameter objects.",items:{$ref:"#/definitions/parameter_schema.json"}},prompt:{type:"string",description:"A string value representing the prompt for the input."}},additionalProperties:!1},"buildingSceneLayer_filterAuthoringInfo_filterBlock_schema.json":{title:"Filter Authoring Info for Filter Blocks",type:"object",description:"The filter authoring info object contains metadata about the authoring process for creating a filter block object. This allows the authoring client to save specific, overridable settings. The next time it is accessed via an authoring client, their selections are remembered. Non-authoring clients can ignore it.",properties:{filterTypes:{type:"array",description:"Array of defined filter types. Each filter type has an array of filter values.",items:{$ref:"#/definitions/buildingSceneLayer_filterAuthoringInfo_filterType_schema.json"}}},required:["filterTypes"],additionalProperties:!1},"buildingSceneLayer_filterMode_schema.json":{title:"Filter Mode",type:"object",description:"Filter mode represents the way elements draw when participating in a filter block.",oneOf:[{$ref:"#/definitions/buildingSceneLayer_filterModeSolid_schema.json"},{$ref:"#/definitions/buildingSceneLayer_filterModeWireFrame_schema.json"},{$ref:"#/definitions/buildingSceneLayer_filterModeXray_schema.json"}]},"featureExpressionInfo_schema.json":{title:"featureExpressionInfo",type:"object",description:"An object that defines an expression for per-feature elevation.",properties:{expression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to a number.",minLength:1},title:{type:"string",description:"Title of the expression.",minLength:1}},required:["expression"],additionalProperties:!1},"featureReduction_select_schema.json":{title:"Feature Reduction: Selection",type:"object",description:"Feature reduction of type `selection` declutters the screen by hiding features that would otherwise intersect with other features on screen. The default behavior of this feature reduction type is to select features by depth order, i.e. hide all features that would otherwise be overlapped by at least one other feature which is closer to the viewer.",properties:{type:{type:"string",description:"A string value indicating the feature reduction type.",enum:["selection"]}}},"domain_schema.json":{title:"domain",type:"object",description:"Domains specify the set of valid values for a field. The links below are the available domains.",oneOf:[{$ref:"#/definitions/codedValue_domain_schema.json"},{$ref:"#/definitions/inherited_domain_schema.json"},{$ref:"#/definitions/range_domain_schema.json"}]},"pointCloudBitfieldFilter_schema.json":{title:"PointCloud Bitfield Filter",type:"object",description:"Filters points based on the value of the specified bitfield attribute.",properties:{field:{type:"string",description:"The name of the field that is used for the filter."},requiredClearBits:{type:"array",description:"List ALL bit numbers that must cleared (=0) for the point to be kept. bit 0 is LSB.",items:{type:"integer"}},requiredSetBits:{type:"array",description:" List ALL bit numbers that must set (=1) for the point to be kept. bit 0 is LSB.",items:{type:"integer"}},type:{type:"string",enum:["pointCloudBitfieldFilter"]}},anyOf:[{required:["requiredClearBits"]},{required:["requiredSetBits"]}],required:["field","type"],additionalProperties:!1},"pointCloudReturnFilter_schema.json":{title:"PointCloud Return Filter",type:"object",description:"Filters points based on the value of the return number/return count.",properties:{field:{type:"string",description:"The name of the field that is used for the filter."},includedReturns:{type:"array",description:"All points with at least one specified return status will be kept. Status values: `last`, `firstOfMany`, `lastOfMany`, `single`",items:{type:"string",enum:["firstOfMany","last","lastOfMany","single"]}},type:{type:"string",enum:["pointCloudReturnFilter"]}},required:["field","includedReturns","type"],additionalProperties:!1},"pointCloudValueFilter_schema.json":{title:"PointCloud Value Filter",type:"object",description:"Filters points based on the value of an specified attribute.",properties:{field:{type:"string",description:"The name of the field that is used for the filter."},mode:{type:"string",description:"Defines if values should be included or excluded.",enum:["exclude","include"]},type:{type:"string",description:"Filters points based on the value of an specified attribute.",enum:["pointCloudValueFilter"]},values:{type:"array",description:"list of values",items:{type:"number"}}},required:["field","mode","type","values"],additionalProperties:!1},"dynamicDataLayer_source_schema.json":{title:"Dynamic data layer",type:"object",description:"A dynamic data layer derived from a registered workspace. More information on this can be found in the [ArcGIS REST API help](http://resources.arcgis.com/en/help/rest/apiref/layersource.html).",properties:{dataSource:{description:"The layer's data source.",$ref:"#/definitions/dataSource_schema.json"},fields:{type:"array",description:"An array of objects specifying information about an attribute field.",items:{$ref:"#/definitions/field_schema.json"},uniqueItems:!0},type:{type:"string",description:"A string value indicating the type.",enum:["dataLayer"]}},required:["dataSource","type"],additionalProperties:!1},"dynamicMapLayer_source_schema.json":{title:"Dynamic map layer",type:"object",description:"A dynamic map layer refers to a layer in the current map service. More information on this can be found in the [ArcGIS REST API help](http://resources.arcgis.com/en/help/rest/apiref/layersource.html).",properties:{gdbVersion:{type:"string",description:"If applicable, specify this to use an alternate geodatabase version."},mapLayerId:{type:"integer",description:"The current map layer's id."},type:{type:"string",description:"A string value indicating the type.",enum:["mapLayer"]}},required:["mapLayerId","type"],additionalProperties:!1},"template_schema.json":{title:"template",type:"object",description:"Templates describe features that can be created in a layer. They are generally used with feature collections and editable web-based CSV layers. Templates are not used with ArcGIS feature services as these already have templates defined in the service. They are also defined as properties of the layer definition when there are no defined types. Otherwise, templates are defined as properties of the types.",properties:{description:{type:"string",description:"A string value containing a detailed description of the template."},drawingTool:{type:"string",description:"An optional string that can define a client-side drawing tool to be used with this feature.",enum:["esriFeatureEditToolAutoCompletePolygon","esriFeatureEditToolCircle","esriFeatureEditToolDownArrow","esriFeatureEditToolEllipse","esriFeatureEditToolFreehand","esriFeatureEditToolLeftArrow","esriFeatureEditToolLine","esriFeatureEditToolNone","esriFeatureEditToolPoint","esriFeatureEditToolPolygon","esriFeatureEditToolRectangle","esriFeatureEditToolRightArrow","esriFeatureEditToolText","esriFeatureEditToolTriangle","esriFeatureEditToolUpArrow"]},name:{type:"string",description:"A string containing a user-friendly name for the template."},prototype:{description:"A feature object representing a prototypical feature for the template.",$ref:"#/definitions/feature_schema.json"}},additionalProperties:!1},"labelExpressionInfo_schema.json":{title:"labelExpressionInfo",type:"object",description:"The labelExpressionInfo allows label text to be read similar to that of Popups's description property.",properties:{expression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to either a string or a number."}},additionalProperties:!1},"labelSymbol3D_schema.json":{title:"LabelSymbol3D",type:"object",description:"LabelSymbol3D is used to render labels for features from a FeatureLayer in a 3D SceneView.",properties:{callout:{$ref:"#/definitions/callout_schema.json"},symbolLayers:{type:"array",description:"A Collection of Symbol3DLayer objects used to visualize the graphic or feature.",items:{oneOf:[{$ref:"#/definitions/textSymbol3DLayer_schema.json"}]}},type:{type:"string",description:"Specifies the type of symbol used.",enum:["LabelSymbol3D"]},verticalOffset:{$ref:"#/definitions/verticalOffset_schema.json"}},required:["symbolLayers","type"],additionalProperties:!1},"classBreaksRenderer_schema.json":{title:"ClassBreaks Renderer",type:"object",description:"A class breaks renderer symbolizes based on the value of some numeric attribute. The classBreakInfo define the values at which the symbology changes.",properties:{authoringInfo:{description:"An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.",$ref:"#/definitions/authoringInfo_schema.json"},backgroundFillSymbol:{description:"Supported only for polygon features.",$ref:"#/definitions/polygonSymbol3D_schema.json"},classBreakInfos:{type:"array",description:"Array of classBreakInfo objects.",items:{$ref:"#/definitions/classBreakInfo_schema.json"}},defaultLabel:{type:"string",description:"Label for the default symbol used to draw unspecified values."},defaultSymbol:{description:"Symbol used when a value cannot be classified.",$ref:"#/definitions/symbol3D_schema.json"},field:{type:"string",description:"Attribute field used for renderer."},legendOptions:{description:"A legend containing one title, which is a string describing the renderer in the legend.",$ref:"#/definitions/rendererLegendOptions_schema.json"},minValue:{type:"number",description:"The minimum numeric data value needed to begin class breaks."},normalizationField:{type:"string",description:"Used when normalizationType is field. The string value indicating the attribute field by which the data value is normalized."},normalizationTotal:{type:"number",description:"Used when normalizationType is percent-of-total, this number property contains the total of all data values."},normalizationType:{type:"string",description:"Determine how the data was normalized.",enum:["esriNormalizeByField","esriNormalizeByLog","esriNormalizeByPercentOfTotal"]},type:{type:"string",description:"Specifies the type of renderer used.",enum:["classBreaks"]},valueExpression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to a number."},valueExpressionTitle:{type:"string",description:"The title identifying and describing the associated [Arcade](https://developers.arcgis.com/arcade/) expression as defined in the `valueExpression` property."},visualVariables:{type:"array",description:"An array of objects used to set rendering properties.",items:{$ref:"#/definitions/visualVariable_schema.json"}}},required:["classBreakInfos","type"],additionalProperties:!1},"heatmapRenderer_schema.json":{title:"Heatmap Renderer",type:"object",description:"The HeatmapRenderer renders point data into a raster visualization that emphasizes areas of higher density or weighted values.",properties:{colorStops:{type:"array",description:"An array of colorStop objects describing the renderer's color ramp with more specificity than just colors.",items:{$ref:"#/definitions/heatmap_colorStop_schema.json"}},field:{type:"string",description:"This is optional as this renderer can be created if no field is specified. Each feature gets the same value/importance/weight or with a field where each feature is weighted by the field's value."},legendOptions:{description:"Options for describing the heatmap in the legend.",allOf:[{$ref:"#/definitions/legendOptions_schema.json"},{properties:{maxLabel:{},minLabel:{},title:{}},additionalProperties:!1}]},maxDensity:{type:"number",description:"The density value assigned to the final color in the `colorStops`."},minDensity:{type:"number",description:"The density value assigned to the first color in the `colorStops`."},radius:{type:"number",description:"The radius (in points) of the circle representing each point."},referenceScale:{type:"number",description:"An optional reference scale to make the heatmap visualization static (i.e. then the heatmap radius is defined as points at this certain view scale). A value of 0 means that the heatmap does not have a fixed reference scale.",default:0},type:{type:"string",description:"Specifies the type of renderer used.",enum:["heatmap"]}},required:["colorStops","type"],additionalProperties:!1},"pointCloudRenderers_schema.json":{title:"PointCloud Renderers",type:"object",description:"Renderers for PointCloud Layers.",oneOf:[{$ref:"#/definitions/pointCloudClassBreaksRenderer_schema.json"},{$ref:"#/definitions/pointCloudRGBRenderer_schema.json"},{$ref:"#/definitions/pointCloudStretchRenderer_schema.json"},{$ref:"#/definitions/pointCloudUniqueValueRenderer_schema.json"}]},"rasterRenderers_schema.json":{title:"Raster Renderers",type:"object",description:"Renderers for Raster Layers.",oneOf:[{$ref:"#/definitions/rasterClassBreaksRenderer_schema.json"},{$ref:"#/definitions/rasterColormapRenderer_schema.json"},{$ref:"#/definitions/rasterShadedReliefRenderer_schema.json"},{$ref:"#/definitions/rasterStretchRenderer_schema.json"},{$ref:"#/definitions/rasterUniqueValueRenderer_schema.json"}]},"simpleRenderer_schema.json":{title:"Simple Renderer",type:"object",description:"A simple renderer is a renderer that uses one symbol only.",properties:{authoringInfo:{description:"An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.",$ref:"#/definitions/authoringInfo_schema.json"},description:{type:"string",description:"Description of the renderer."},label:{type:"string",description:"The text string that is displayed in the table of contents."},symbol:{description:"An object that represents how all features will be drawn.",$ref:"#/definitions/symbol3D_schema.json"},type:{type:"string",description:"Specifies the type of renderer used.",enum:["simple"]},visualVariables:{type:"array",description:"An array of objects used to set rendering properties.",items:{$ref:"#/definitions/visualVariable_schema.json"}}},required:["symbol","type"],additionalProperties:!1},"uniqueValueFromStyleRenderer_schema.json":{title:"UniqueValueFromStyle Renderer",type:"object",description:"This is a special version of UniqueValue Renderer, which loads uniqueValue infos from a style definition.",properties:{defaultLabel:{type:"string",description:"Default string for the default symbol used to draw unspecified values."},defaultSymbol:{description:"The defaultSymbol on the renderer that get assigned to features with no value or features that do not fall within the configured data.",$ref:"#/definitions/symbol3D_schema.json"},field1:{type:"string",description:"String value specifying the first field used to render matching values."},styleName:{type:"string",description:"A registered web style name. Can not be used in conjunction with styleUrl."},styleUrl:{type:"string",description:"URL that points to the web style definition. Can not be used in conjunction with styleName."},type:{type:"string",description:"Specifies the type of renderer used.",enum:["uniqueValue"]},visualVariables:{type:"array",description:"An array of visualVariable objects used for continuous color or size, simple, and unique values with feature opacity.",items:{$ref:"#/definitions/visualVariable_schema.json"}}},oneOf:[{required:["styleName","type"]},{required:["styleUrl","type"]}],additionalProperties:!1},"uniqueValueRenderer_schema.json":{title:"UniqueValue Renderer",type:"object",description:"A unique value renderer symbolizes based on the value of an attribute.",properties:{authoringInfo:{description:"An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.",$ref:"#/definitions/authoringInfo_schema.json"},backgroundFillSymbol:{description:"Used for polygon features. It can only be used for bivariate types and size rendering.",$ref:"#/definitions/polygonSymbol3D_schema.json"},defaultLabel:{type:"string",description:"Default label for the default symbol used to draw unspecified values."},defaultSymbol:{description:"The defaultSymbol on the renderer that get assigned to features with no value or features that do not fall within the configured data.",$ref:"#/definitions/symbol3D_schema.json"},field1:{type:"string",description:"Attribute field renderer uses to match values."},field2:{type:"string",description:"If needed, specify an additional attribute field the renderer uses to match values."},field3:{type:"string",description:"If needed, specify an additional attribute field the renderer uses to match values."},fieldDelimiter:{type:"string",description:"String inserted between the values if multiple attribute fields are specified.",default:", "},legendOptions:{description:"A legend containing one title, which is a string describing the renderer in the legend.",$ref:"#/definitions/rendererLegendOptions_schema.json"},type:{type:"string",description:"Specifies the type of renderer used.",enum:["uniqueValue"]},uniqueValueGroups:{type:"array",description:"An array of uniqueValueGroup objects. If present, then `uniqueValueGroups` should be used in favor of `uniqueValueInfos`.",items:{$ref:"#/definitions/uniqueValueGroup_schema.json"}},uniqueValueInfos:{type:"array",description:"An array of uniqueValueInfo objects. If `uniqueValueGroups` is present, then this property should be ignored on rad. In the future, this property will be deprecated and eventually removed.",items:{$ref:"#/definitions/uniqueValueInfo_schema.json"}},valueExpression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to either a string or a number."},valueExpressionTitle:{type:"string",description:"The title identifying and describing the associated [Arcade](https://developers.arcgis.com/arcade/) expression as defined in the `valueExpression` property."},visualVariables:{type:"array",description:"An array of objects used to set rendering properties.",items:{$ref:"#/definitions/visualVariable_schema.json"}}},required:["type","uniqueValueInfos"],additionalProperties:!1},"format_schema.json":{title:"format",type:"object",description:"The format object can be used with numerical or date fields to provide more detail about how values should be formatted for display.",properties:{dateFormat:{type:"string",description:"A string used with date fields to specify how the date should be formatted.",enum:["dayShortMonthYear","dayShortMonthYearLongTime","dayShortMonthYearLongTime24","dayShortMonthYearShortTime","dayShortMonthYearShortTime24","longDate","longDateLongTime","longDateLongTime24","longDateShortTime","longDateShortTime24","longMonthDayYear","longMonthDayYearLongTime","longMonthDayYearLongTime24","longMonthDayYearShortTime","longMonthDayYearShortTime24","longMonthYear","shortDate","shortDateLE","shortDateLELongTime","shortDateLELongTime24","shortDateLEShortTime","shortDateLEShortTime24","shortDateLongTime","shortDateLongTime24","shortDateShortTime","shortDateShortTime24","shortMonthYear","year"]},digitSeparator:{type:"boolean",description:"A Boolean used with numerical fields. A value of true allows the number to have a digit (or thousands) separator. Depending on the locale, this separator is a decimal point or a comma. A value of false means that no separator will be used."},places:{type:"integer",description:"An integer used with numerical fields to specify the number of decimal places. Any places beyond this value are rounded."}},additionalProperties:!1},"mediaInfo_chart_schema.json":{title:"mediaInfo chart",type:"object",description:"Defines a chart to be displayed in a popup window.",properties:{altText:{type:"string",description:"A string providing the alternate text for the media."},caption:{type:"string",description:"A string caption describing the media."},title:{type:"string",description:"A string title for the media."},type:{type:"string",description:"A string defining the type of media.",enum:["barchart","columnchart","linechart","piechart"]},value:{$ref:"#/definitions/mediaInfo_chart_value_schema.json"}},required:["type","value"],additionalProperties:!1},"mediaInfo_image_schema.json":{title:"mediaInfo image",type:"object",description:"Defines an image to be displayed in a popup window.",properties:{altText:{type:"string",description:"A string providing the alternate text for the media."},caption:{type:"string",description:"A string caption describing the media."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled. If the property does not exist, it's equivalent to having a value of 0."},title:{type:"string",description:"A string title for the media."},type:{type:"string",description:"A string defining the type of media.",enum:["image"]},value:{$ref:"#/definitions/mediaInfo_image_value_schema.json"}},required:["type","value"],additionalProperties:!1},"popupElement_attachments_schema.json":{title:"popupElement attachments",type:"object",description:"Configures attachments in popup elements.",properties:{description:{type:"string",description:"An optional string value describing the element in detail. This property does not apply when the `type` is `text` or `expression`."},displayType:{type:"string",description:"This property applies to elements of type `attachments`. A string value indicating how to display the attachment. If `list` is specified, attachments show as links. If `preview` is specified, attachments expand to the width of the pop-up. Setting the value to `auto` allows applications to choose the most suitable default experience for their application. ",enum:["auto","list","preview"]},title:{type:"string",description:"An optional string value indicating what the element represents. This property does not apply when the `type` is `text` or `expression`."},type:{type:"string",enum:["attachments"]}},required:["type"],additionalProperties:!1},"popupElement_expression_schema.json":{title:"popupElement expression",type:"object",description:"A pop-up element defined by an arcade expression.",properties:{expressionInfo:{description:"This property applies to elements of type `expression` . An Arcade expression that defines the pop-up element content. The return type will always be `dictionary` as outlined [here](https://developers.arcgis.com/arcade/guide/profiles/#popup-element).",$ref:"#/definitions/popupElementExpressionInfo_schema.json"},type:{type:"string",description:"String value indicating which elements to use. When an element is of type `expression` then `expressionInfo` is the only valid property.",enum:["expression"]}}},"popupElement_fields_schema.json":{title:"popupElement fields",type:"object",description:"Configures fields in popup elements.",properties:{attributes:{type:"object",description:"A dictionary of key value pairs representing attributes to be used instead of fields and their values. This property is only used when an element of type `fields` is being returned inside an element of type `expression` and should be returned as part of the arcade expression itself. This property allows passing arcade derived attribute values into `fields` elements. More details can be found [here](https://developers.arcgis.com/arcade/guide/profiles/#popup-element)."},description:{type:"string",description:"An optional string value describing the element in detail. This property does not apply when the `type` is `text` or `expression`."},fieldInfos:{type:"array",description:"It is an array of `fieldInfo` objects representing a field/value pair displayed as a table within the popupElement. If the `fieldInfos` property is not provided, the popupElement will display whatever is specified directly in the `popupInfo.fieldInfos` property.",items:{$ref:"#/definitions/fieldInfo_schema.json"}},title:{type:"string",description:"An optional string value indicating what the element represents. This property does not apply when the `type` is `text` or `expression`."},type:{type:"string",enum:["fields"]}},required:["type"],additionalProperties:!1},"popupElement_media_schema.json":{title:"popupElement media",type:"object",description:"Configures media in popup elements.",properties:{attributes:{type:"object",description:"A dictionary of key value pairs representing attributes to be used instead of fields and their values. This property is only used when an element of type `media` is being returned inside an element of type `expression` and should be returned as part of the arcade expression itself. This property allows passing arcade derived attribute values into `mediaInfos` such as charts. More details can be found [here](https://developers.arcgis.com/arcade/guide/profiles/#popup-element)."},description:{type:"string",description:"An optional string value describing the element in detail. This property does not apply when the `type` is `text` or `expression`."},mediaInfos:{type:"array",description:"An array of `mediaInfo` objects representing an image or chart for display. If no `mediaInfos` property is provided, the popupElement will display whatever is specified in the `popupInfo.mediaInfos` property.",items:{$ref:"#/definitions/mediaInfo_schema.json"}},title:{type:"string",description:"An optional string value indicating what the element represents. This property does not apply when the `type` is `text` or `expression`."},type:{type:"string",enum:["media"]}},required:["type"],additionalProperties:!1},"popupElement_relationship_schema.json":{title:"popupElement relationship",type:"object",description:"Provides the ability to navigate and view related records from a layer or table associated within the pop-up.",properties:{description:{type:"string",description:"A string that describes the element in detail."},displayCount:{type:"integer",description:"An integer that indicates the maximum number of records to display."},displayType:{type:"string",description:"A string that defines how the related records should be displayed.",enum:["list"]},orderByFields:{type:"array",description:"Array of `orderByField` objects indicating the display order for the related records, and whether they should be sorted in ascending `'asc'` or descending `'desc'` order. If `orderByFields` is not provided, the popupElement will display whatever is specified directly in the `popupInfo.relatedRecordsInfo.orderByFields` property.",items:{type:"object",$ref:"#/definitions/orderByField_schema.json"}},relationshipId:{type:"integer",description:"The id of the relationship as defined in the feature layer definition"},title:{type:"string",description:"A string value indicating what the element represents."},type:{type:"string",description:"String value indicating which type of element to use.",enum:["relationship"]}},required:["displayType","relationshipId","type"],additionalProperties:!1},"popupElement_text_schema.json":{title:"popupElement text",type:"object",description:"Configures text in popup elements.",properties:{text:{type:"string",description:"This property applies to elements of type `text`. This is string value indicating the text to be displayed within the popupElement. If no `text` property is provided, the popupElement will display whatever is specified in the [popupInfo.description](popupInfo.md) property."},type:{type:"string",enum:["text"]}},required:["type"],additionalProperties:!1},"orderByField_schema.json":{title:"orderByField",type:"object",description:"Object indicating the field display order for the related records and whether they should be sorted in ascending or descending order.",properties:{field:{type:"string",description:"The attribute value of the field selected that will drive the sorting of related records."},order:{type:"string",description:"Set the ascending or descending sort order of the returned related records.",enum:["asc","desc"]}}},"search_layer_schema.json":{title:"search layer",type:"object",description:"Layer configuration for search.",properties:{field:{$ref:"#/definitions/search_field_schema.json"},id:{type:"string",description:"A string identifying the layer."},subLayer:{type:"integer",description:"Optional index for a sublayer."}},required:["field","id"],additionalProperties:!1},"search_table_schema.json":{title:"search table",type:"object",description:"Search configuration for table.",properties:{field:{$ref:"#/definitions/search_field_schema.json"},id:{type:"string",description:"A string identifying the table."}},required:["field","id"],additionalProperties:!1},"sunLighting_schema.json":{title:"sunLighting",type:"object",description:"Object containing information for the sun lighting type. The position of the light is set to the sun's location.",properties:{datetime:{type:"number",description:"The current date and time of the simulated sun. It is a number representing the number of milliseconds since 1 January, 1970 UTC."},directShadows:{type:"boolean",description:"Indicates whether to show shadows cast by the main light source.",default:!1},displayUTCOffset:{type:"number",description:"UTC offset in decimal hours. Not to be applied to datetime for sun position, only to adjust display of datetime in UI. If displayUTCOffset is null, offset is calculated for the current location (approximate only)."},type:{type:"string",description:"The type of lighting",enum:["sun"],default:"sun"}},additionalProperties:!1},"virtualLighting_schema.json":{title:"virtualLighting",type:"object",description:"Object containing information for the virtual lighting type. The position of the light follows the camera and is set behind the camera with a small offset to the left side.",properties:{directShadows:{type:"boolean",description:"Indicates whether to show shadows cast by the main light source.",default:!1},type:{type:"string",description:"The type of lighting",enum:["virtual"]}},required:["type"],additionalProperties:!1},"point_geometry_schema.json":{title:"pointGeometry",type:"object",description:"Defines the JSON formats of the point and spatial reference objects.",properties:{m:{type:"number",description:"M coordinate which contains measures used for linear referencing."},spatialReference:{description:"The spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT).",$ref:"#/definitions/spatialReference_schema.json"},x:{description:"X coordinate which is measured along the east/west axis.",oneOf:[{type:"number"},{type:"null"},{type:"string",enum:["NaN"]}]},y:{type:"number",description:"Y coordinate which is measured along the north/south axis."},z:{type:"number",description:"Z coordinate which measures height or elevation."}},required:["x"],additionalProperties:!1},"multipoint_geometry_schema.json":{title:"multipointGeometry",type:"object",description:"Contains an array of points, along with a spatial reference field.",properties:{hasM:{type:"boolean",description:"Indicates whether the geometry contains M coordinate values."},hasZ:{type:"boolean",description:"Indicates whether the geometry contains Z coordinate values."},points:{type:"array",description:"An array that corresponds to 2D and 3D points.",items:{type:"array",items:{type:"number"},minItems:2,maxItems:4}},spatialReference:{description:"The spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT).",$ref:"#/definitions/spatialReference_schema.json"}},required:["points"],additionalProperties:!1},"polygon_geometry_schema.json":{title:"polygonGeometry",type:"object",description:"A polygon contains an array of rings and a spatial reference.",properties:{hasM:{type:"boolean",description:"Indicates whether the geometry contains M coordinate values."},hasZ:{type:"boolean",description:"Indicates whether the geometry contains Z coordinate values."},rings:{type:"array",description:"Represents an array of rings. Each ring is an array of points.",items:{type:"array",items:{type:"array",items:{type:"number"},minItems:2,maxItems:4},minItems:3},minItems:1},spatialReference:{description:"The spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT).",$ref:"#/definitions/spatialReference_schema.json"}},required:["rings"],additionalProperties:!1},"polyline_geometry_schema.json":{title:"polylineGeometry",type:"object",description:"Contains an array of paths and a spatialReference.",properties:{hasM:{type:"boolean",description:"Indicates whether the geometry contains M coordinate values."},hasZ:{type:"boolean",description:"Indicates whether the geometry contains Z coordinate values."},paths:{type:"array",description:"Three nested array levels describing a polyline. The first level describes individual paths; the second describes the points of these paths; and the third gives the coordinates of the points.",items:{type:"array",items:{type:"array",items:{type:"number"},minItems:2,maxItems:4},minItems:2}},spatialReference:{description:"The spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT).",$ref:"#/definitions/spatialReference_schema.json"}},required:["paths"],additionalProperties:!1},"featureReference_schema.json":{title:"featureReference",type:"object",description:"References a feature by object and layer id.",properties:{layerId:{type:["number","string"],description:"Identifies the layer to which the feature belongs."},objectId:{type:["string","number"],description:"ObjectId identifying the feature within the layer."}},required:["layerId","objectId"],additionalProperties:!1},"voxelSection_schema.json":{title:"Voxel Section",type:"object",description:"A section that is locked in for a specific variable and/or time. Allowing you to view the section together with other variables. A locked (or static) section is `float32` raster. This JSON object contains the meta-data needed to display (and potentially re-generate) this raster.\n\n When creating a web scene the locked sections must have this information as all properties come the web scene. If no section information is given, it is assumed there are no sections in the web scene.",properties:{enabled:{type:"boolean",description:"Boolean defining section visibility.",default:!0},href:{type:"string",description:"Relative href to the static section raster binary. href is relative to the layer document which contains the href. Inside an SLPK archive, must be of the form `resources/sections/.bin.gz` and the section raster should be gzip-compressed."},id:{type:"integer",description:"The id of the section. Must be unique from other sections in the array."},label:{type:"string",description:"The label for the section."},normal:{type:"array",description:"Normal vector to the plane in voxel space.",items:{type:"number"},minItems:3,maxItems:3},point:{type:"array",description:"Point belonging to the section plane in voxel space.",items:{type:"number"},minItems:3,maxItems:3},sizeInPixel:{type:"array",description:"Array of size 2 which describes the dimension of the raster data in pixels.",items:{type:"integer"},minItems:2,maxItems:2},slices:{type:"array",description:"A copy of the slices that were applied to the volume when the section was created when new UVs are discovered for subsequent time slices.",items:{$ref:"#/definitions/voxelSlice_schema.json"}},timeId:{type:"integer",description:"Time slice id at which the section was created. `timeId` is only applicable when time is the 4th dimension."},variableId:{type:"integer",description:"Id of the variable."}},required:["href","id","normal","point","sizeInPixel","variableId"],additionalProperties:!1},"voxelStyle_schema.json":{title:"Voxel Style",type:"object",description:"A voxel style allows you to define the visualization of the voxel layer. A voxel layer can be represented as volume or surface depending on your analysis needs. You can change the visibility of the different representations and change their drawing options.",properties:{currentVariableId:{type:"integer",description:"Id of the currently visible variable."},enableDynamicSections:{type:"boolean",description:'Enable dynamic section (only if `renderMode = "surfaces"`).'},enableIsosurfaces:{type:"boolean",description:'Enable isosurfaces (only if `renderMode = "surfaces"`).'},enableSections:{type:"boolean",description:"Enable static sections."},enableSlices:{type:"boolean",description:"Enable slices."},renderMode:{type:"string",description:"Current rendering mode for the voxel layer. Depending on the rendering mode different voxel layer representations can be shown. `volume` draws the voxel layer as rectangular cuboid (but any slices defined for the voxel layer will change the volume to the area of interest). `surfaces` will represent the layer as a set of surfaces, for example, dynamic sections can define a plane through the volume or isosurfaces can show a specific value as surface.",enum:["surfaces","volume"]},shading:{description:"Defines the shading properties.",$ref:"#/definitions/voxelShading_schema.json"},variableStyles:{type:"array",description:"Array of variable styles. Each variable can have one variable style.",items:{$ref:"#/definitions/voxelVariableStyle_schema.json"},minItems:1},volumeStyles:{type:"array",description:"Array of volume styles. Currently only one volume style is allowed.",items:{$ref:"#/definitions/voxelVolumeStyle_schema.json"},minItems:1}},required:["currentVariableId"],additionalProperties:!1},"lod_schema.json":{title:"lod",type:"object",properties:{level:{type:"integer",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},additionalProperties:!1},"parameter_schema.json":{title:"parameter",type:"object",description:"Objects defined by a [definitionEditor](definitionEditor.md) input.",properties:{defaultValue:{type:["number","string"],description:"The default value that is automatically given is nothing is provided."},fieldName:{type:"string",description:"A string value representing the name of the field to query."},parameterId:{type:"integer",description:"Number given to uniquely identify the specified parameter."},type:{type:"string",description:"The field type for the specified field parameter.",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeXML"]},utcValue:{type:"integer",description:"An integer value representing exact UNIX time used when `defaultValue` is a date string."}},additionalProperties:!1},"buildingSceneLayer_filterAuthoringInfo_filterType_schema.json":{title:"Filter Type",type:"object",description:"The file authoring information for a filter, including the filter type and its value settings.",properties:{filterType:{type:"string",description:"Represents the filter type name. Name is a unique identifier."},filterValues:{type:"array",description:"Array of filter values. Filter values are the attributes that can be stored for individual fields in a layer.",items:{type:"string"}}},required:["filterType","filterValues"],additionalProperties:!1},"buildingSceneLayer_filterModeSolid_schema.json":{title:"Filter mode solid",type:"object",description:"Draw elements of this filter block in solid mode. This mode does not change the display of features.",properties:{type:{type:"string",description:"Declares filter mode of type solid.",enum:["solid"]}},required:["type"],additionalProperties:!1},"buildingSceneLayer_filterModeWireFrame_schema.json":{title:"Filter mode wire frame",type:"object",description:"Draw elements of this filter block in wireframe mode. This mode draws only the edges of the features with the specified edge style.",properties:{edges:{description:"An object defining edges of a feature.",$ref:"#/definitions/edges_schema.json"},type:{type:"string",description:"Declares filter mode of type wire frame.",enum:["wireFrame"]}},required:["edges","type"],additionalProperties:!1},"buildingSceneLayer_filterModeXray_schema.json":{title:"Filter mode x-ray",type:"object",description:"Draw elements of this filter block in x-ray mode. `x-ray` renders elements semi-transparent with white color.",properties:{type:{type:"string",description:"Declares filter mode of type x-ray.",enum:["x-ray"]}},required:["type"],additionalProperties:!1},"codedValue_domain_schema.json":{title:"codedValue",type:"object",description:"The coded value domain includes both the actual value that is stored in a database and a description of what the code value means.",properties:{codedValues:{type:"array",description:"A set of valid values with unique names.",items:{$ref:"#/definitions/codedValue_schema.json"},uniqueItems:!0},name:{type:"string",description:"The domain name."},type:{type:"string",description:"String value representing the domain type.",enum:["codedValue"]}},required:["codedValues","type"],additionalProperties:!1},"inherited_domain_schema.json":{title:"inheritedDomain",type:"object",description:"This domain applies to domains on subtypes. It implies that the domain for a field at the subtype level is the same as the domain for the field at the layer level.",properties:{name:{type:"string",description:"The domain name."},type:{type:"string",description:"String value representing the domain type.",enum:["inherited"]}},required:["type"],additionalProperties:!1},"range_domain_schema.json":{title:"rangeDomain",type:"object",description:"Range domain specifies a range of valid values for a field.",properties:{name:{type:"string",description:"The domain name."},range:{type:"array",description:"The first element is the minValue and the second element is the maxValue.",items:{type:"number"},minItems:2,maxItems:2,uniqueItems:!0},type:{type:"string",description:"String value representing the domain type.",enum:["range"]}},required:["range","type"],additionalProperties:!1},"dataSource_schema.json":{title:"dataSource",type:"object",description:"This object applies if the [layerDefinition](layerDefinition.md) source is set to `DynamicDataLayer`.",oneOf:[{$ref:"#/definitions/joinTableDataSource_schema.json"},{$ref:"#/definitions/queryTableDataSource_schema.json"},{$ref:"#/definitions/rasterDataSource_schema.json"},{$ref:"#/definitions/tableDataSource_schema.json"}]},"feature_schema.json":{title:"feature",type:"object",description:"Contains information about an attribute field and feature geometry.",properties:{attributes:{type:"object",description:"The feature attributes. A JSON object that contains a dictionary of name-value pairs. The names are the feature field names. The values are the field values, and they can be any of the standard JSON types: string, number, and boolean. Note that date values are encoded as numbers. The number represents the number of milliseconds since epoch (January 1, 1970) in UTC."},geometry:{description:"It can be any of the supported geometry types.",$ref:"#/definitions/geometry_schema.json"},symbol:{description:"Symbol used for drawing the feature.",$ref:"#/definitions/symbol3D_schema.json"}},additionalProperties:!1},"callout_schema.json":{title:"Callout",type:"object",description:"Callout configuration for a symbol.",properties:{border:{$ref:"#/definitions/border_schema.json"},color:{description:"The color of the line.",$ref:"#/definitions/color_schema.json"},size:{type:"number",description:"The width of the line in points.",minimum:0},transparency:{type:"integer",description:"A value between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100},type:{type:"string",description:"The type of the callout. A callout of type `line` connects an offset symbol or label with its location.",enum:["line"]}},required:["color","size","type"],additionalProperties:!1},"textSymbol3DLayer_schema.json":{title:"TextSymbol3DLayer",type:"object",description:"Symbol layer for text and font definitions.",properties:{background:{$ref:"#/definitions/textBackground_schema.json"},enable:{type:"boolean"},font:{$ref:"#/definitions/font_schema.json"},halo:{$ref:"#/definitions/halo_schema.json"},horizontalAlignment:{type:"string",description:"One of the following string values representing the horizontal alignment of the text.",enum:["center","left","right"],default:"center"},lineHeight:{type:"number",description:"Multiplier to scale the vertical distance between the baselines of text with multiple lines.",minimum:.1,maximum:4,default:1},material:{$ref:"#/definitions/material_schema.json"},size:{type:"number",description:"Font size in points, positive only",minimum:0},text:{type:"string",description:"Text content in the label. Typically this property is not set, as text content is read from labeling field."},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Text"]},verticalAlignment:{type:"string",description:"One of the following string values representing the vertical alignment of the text.",enum:["baseline","bottom","middle","top"],default:"baseline"}},required:["type"],additionalProperties:!1},"verticalOffset_schema.json":{title:"verticalOffset",type:"object",description:"Shifts the symbol along the vertical world axis by a given length. The length is set in screen space units.",properties:{maxWorldLength:{type:"number",description:"The maximum vertical symbol lift in world units. It acts as an upper bound to avoid lift becoming too big."},minWorldLength:{type:"number",description:"The minimum vertical symbol lift in world units. It acts as a lower bound to avoid lift becoming too small.",default:0},screenLength:{type:"number",description:"Maximal screen length of lift in points."}},required:["screenLength"],additionalProperties:!1},"authoringInfo_schema.json":{title:"authoringInfo",type:"object",description:"The authoringInfo is an object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via an authoring client, their selections are remembered. Non-authoring clients can ignore it. Properties for color/size/transparency sliders, theme selection, classification information, and additional properties are saved within this object.",properties:{classificationMethod:{type:"string",description:"Used for classed color or size. The default value is `esriClassifyManual`.",enum:["esriClassifyDefinedInterval","esriClassifyEqualInterval","esriClassifyManual","esriClassifyNaturalBreaks","esriClassifyQuantile","esriClassifyStandardDeviation"],default:"esriClassifyManual"},colorRamp:{$ref:"#/definitions/colorRamp_schema.json"},field1:{$ref:"#/definitions/field_authoringInfo_schema.json"},field2:{$ref:"#/definitions/field_authoringInfo_schema.json"},fields:{type:"array",description:"An array of string values representing field names used for creating predominance renderers.",items:{type:"string"}},focus:{type:"string",description:"Optional. Used for Relationship renderer. If not set, the legend will default to being square.",enum:["HH","HL","LH","LL"]},lengthUnit:{type:"string",description:"Unit used in user interfaces to display world/map sizes and distances",enum:["centimeters","decimal-degrees","decimeters","feet","inches","kilometers","meters","miles","millimeters","nautical-miles","yards"]},numClasses:{type:"integer",description:"Number of classes to be associated with the relationship. Used for Relationship renderer.",minimum:2,maximum:4},standardDeviationInterval:{type:"number",description:"Use this property if the classificationMethod is `esriClassifyStandardDeviation`.",enum:[.25,.33,.5,1]},type:{type:"string",enum:["classedColor","classedSize","dotDensity","predominance","relationship","univariateColorSize"]},visualVariables:{type:"array",description:"An array of visualVariable objects containing additional information needed when authoring the renderer.",items:{$ref:"#/definitions/authoringInfo_visualVariable_schema.json"}}},additionalProperties:!1},"polygonSymbol3D_schema.json":{title:"PolygonSymbol3D",type:"object",description:"PolygonSymbol3D is used to render features with Polygon geometry in a 3D SceneView. Polygon features may also be rendered as points with icons or objects at the centroid of each polygon.",properties:{styleOrigin:{$ref:"#/definitions/styleOrigin_schema.json"},symbolLayers:{type:"array",description:"A Collection of Symbol3DLayer objects used to visualize the graphic or feature.",items:{oneOf:[{$ref:"#/definitions/extrudeSymbol3DLayer_schema.json"},{$ref:"#/definitions/fillSymbol3DLayer_schema.json"},{$ref:"#/definitions/iconSymbol3DLayer_schema.json"},{description:"Deprecated, use [fillSymbol3DLayer with outline](fillSymbol3DLayer.md) instead",$ref:"#/definitions/lineSymbol3DLayer_schema.json"},{$ref:"#/definitions/objectSymbol3DLayer_schema.json"},{$ref:"#/definitions/textSymbol3DLayer_schema.json"},{$ref:"#/definitions/waterSymbol3DLayer_schema.json"}]}},type:{type:"string",description:"Specifies the type of symbol used.",enum:["PolygonSymbol3D"]}},required:["symbolLayers","type"],additionalProperties:!1},"classBreakInfo_schema.json":{title:"classBreakInfo",type:"object",description:"The classBreaksInfo object provides information about the class breaks associated with the renderer.",properties:{classMaxValue:{type:"number",description:"A numeric value used to specify the maximum value for a break."},classMinValue:{type:"number",description:"A numeric value used to specify discontinuous class breaks. If this value is null or is missing, the map server will calculate the minimum value based on the preceding class' maximum value."},description:{type:"string",description:"String value used to describe the drawn symbol."},label:{type:"string",description:"String value used to label the drawn symbol."},symbol:{description:"An object used to display the value.",$ref:"#/definitions/symbol3D_schema.json"}},required:["symbol"],additionalProperties:!1},"symbol3D_schema.json":{title:"Symbol3D",type:"object",description:"Symbol3D is the base class for all 3D symbols. It is used to render 2D Point, Polyline, and Polygon features in a FeatureLayer and 3D mesh features in a SceneLayer. All 3D symbols must be used in a SceneView instance; there is no support for 3D rendering in MapViews.",oneOf:[{$ref:"#/definitions/cimSymbolReference_schema.json"},{$ref:"#/definitions/lineSymbol3D_schema.json"},{$ref:"#/definitions/meshSymbol3D_schema.json"},{$ref:"#/definitions/pointSymbol3D_schema.json"},{$ref:"#/definitions/polygonSymbol3D_schema.json"},{$ref:"#/definitions/styleSymbolReference_schema.json"}]},"rendererLegendOptions_schema.json":{title:"Renderer Legend Options",type:"object",description:"Options available for the renderer legend.",properties:{title:{type:"string",description:"The title of the legend."}},additionalProperties:!1},"visualVariable_schema.json":{title:"visualVariable",type:"object",description:"An object used to set rendering options. Please see the individual visual variable for specific information on how it is used.",oneOf:[{$ref:"#/definitions/colorInfo_visualVariable_schema.json"},{$ref:"#/definitions/rotationInfo_visualVariable_schema.json"},{$ref:"#/definitions/sizeInfo_visualVariable_schema.json"},{$ref:"#/definitions/transparencyInfo_visualVariable_schema.json"}]},"heatmap_colorStop_schema.json":{title:"heatmap colorStop",description:"A colorStop object describes the renderer's color ramp and how it is mapped to the intensity values. The color of the first stop (i.e. the stop with the lowest ratio value) must have an alpha value of 0 for the underlying basemap to be visible in the app.",properties:{color:{$ref:"#/definitions/color_schema.json"},ratio:{type:"number",description:"A number between 0-1. Describes what portion along the gradient the colorStop is added."}},required:["color","ratio"],additionalProperties:!1},"legendOptions_schema.json":{title:"Legend Options",type:"object",description:"Options available for the legend.",properties:{maxLabel:{type:"string",description:"Text in the legend that describes the hottest (most dense) part of the heatmap. Only applicable to Heatmap renderers. If not specified, then a localized label, for 'High' will display on the legend."},minLabel:{type:"string",description:"Text in the legend that describes the coldest (least dense) part of the heatmap. Only applicable to Heatmap renderers. If not specified, then a localized label, for 'Low' will display on the legend."},title:{type:"string",description:"The title of the legend."}},additionalProperties:!1},"pointCloudClassBreaksRenderer_schema.json":{title:"PointCloud ClassBreaks Renderer",type:"object",description:"PointCloudClassBreaksRenderer defines the color of each point in a PointCloudLayer based on the value of a numeric attribute. Colors are assigned based on classes or ranges of data. Each point is assigned a symbol based on the class break in which the value of the attribute falls.",properties:{colorClassBreakInfos:{type:"array",description:"Each element in the array is an object that provides information about a class break associated with the renderer.",items:{$ref:"#/definitions/colorClassBreakInfo_schema.json"}},colorModulation:{$ref:"#/definitions/colorModulationInfo_schema.json"},field:{type:"string",description:" The name of the field that is used for the renderer."},fieldTransformType:{type:"string",description:"A transform that is applied to the field value before evaluating the renderer.",enum:["absoluteValue","highFourBit","lowFourBit","moduloTen","none"]},legendOptions:{description:"A legend containing one title, which is a string describing the renderer in the legend.",$ref:"#/definitions/rendererLegendOptions_schema.json"},pointSizeAlgorithm:{$ref:"#/definitions/pointSizeAlgorithm_schema.json"},pointsPerInch:{type:"number",description:"Number of point to draw per display inch."},type:{type:"string",description:"Specifies the type of renderer used.",enum:["pointCloudClassBreaksRenderer"]}},required:["colorClassBreakInfos","field","type"],additionalProperties:!1},"pointCloudRGBRenderer_schema.json":{title:"PointCloud RGB Renderer",type:"object",description:"PointCloudRGBRenderer defines the color of each point in a PointCloudLayer based on the value of a color attribute.",properties:{colorModulation:{$ref:"#/definitions/colorModulationInfo_schema.json"},field:{type:"string",description:"The name of the field that is used for the renderer."},pointSizeAlgorithm:{$ref:"#/definitions/pointSizeAlgorithm_schema.json"},pointsPerInch:{type:"number",description:"Number of point to draw per display inch."},type:{type:"string",description:"Specifies the type of renderer used.",enum:["pointCloudRGBRenderer"]}},required:["field","type"],additionalProperties:!1},"pointCloudStretchRenderer_schema.json":{title:"PointCloud Stretch Renderer",type:"object",description:"PointCloudStretchRenderer defines the color of each point in a PointCloudLayer based on the value of a numeric attribute. They allow you to easily map continuous color ramps to minimum and maximum data values of one of the layer's numeric attribute fields.",properties:{colorModulation:{$ref:"#/definitions/colorModulationInfo_schema.json"},field:{type:"string",description:"The name of the field that is used for the renderer."},fieldTransformType:{type:"string",description:"A transform that is applied to the field value before evaluating the renderer.",enum:["absoluteValue","highFourBit","lowFourBit","moduloTen","none"]},legendOptions:{description:"A legend containing one title, which is a string describing the renderer in the legend.",$ref:"#/definitions/rendererLegendOptions_schema.json"},pointSizeAlgorithm:{$ref:"#/definitions/pointSizeAlgorithm_schema.json"},pointsPerInch:{type:"number",description:"Number of points to draw per display inch."},stops:{type:"array",description:"An array of color value pairs.",items:{$ref:"#/definitions/colorStop_schema.json"}},type:{type:"string",description:"Specifies the type of renderer used.",enum:["pointCloudStretchRenderer"]}},required:["field","stops","type"],additionalProperties:!1},"pointCloudUniqueValueRenderer_schema.json":{title:"PointCloud UniqueValue Renderer",type:"object",description:"PointCloudUniqueValueRenderer allows you to colorize points in a PointCloudLayer based on an attribute. This is done by using unique colors to represent points with equal attribute values.",properties:{colorModulation:{$ref:"#/definitions/colorModulationInfo_schema.json"},colorUniqueValueInfos:{type:"array",description:"Unique value infos.",items:{type:"object",$ref:"#/definitions/colorUniqueValueInfo_schema.json"}},field:{type:"string",description:"The name of the field that is used for the renderer."},fieldTransformType:{type:"string",description:"A transform that is applied to the field value before evaluating the renderer.",enum:["absoluteValue","highFourBit","lowFourBit","moduloTen","none"]},legendOptions:{description:"A legend containing one title, which is a string describing the renderer in the legend.",$ref:"#/definitions/rendererLegendOptions_schema.json"},pointSizeAlgorithm:{$ref:"#/definitions/pointSizeAlgorithm_schema.json"},pointsPerInch:{type:"number",description:"Number of points to draw per display inch."},type:{type:"string",description:"Specifies the type of renderer used.",enum:["pointCloudUniqueValueRenderer"]}},required:["colorUniqueValueInfos","field","type"],additionalProperties:!1},"rasterClassBreaksRenderer_schema.json":{title:"Raster ClassBreaks Renderer",type:"object",description:"Defines the color of each raster cell based on the value of a numeric attribute. Colors are assigned based on classed ranges of data.",properties:{authoringInfo:{description:"An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.",$ref:"#/definitions/authoringInfo_schema.json"},colorClassBreakInfos:{type:"array",description:"Each element in the array is an object that provides information about a class break associated with the renderer.",items:{$ref:"#/definitions/colorClassBreakInfo_schema.json"}},defaultColor:{description:"The defaultColor on the renderer that get assigned to features with no value or features that do not fall within the configured data.",$ref:"#/definitions/color_schema.json"},defaultLabel:{type:"string",description:"Default label for the default symbol used to draw unspecified values."},field:{type:"string",description:"The name of the field that is used for the renderer."},legendOptions:{description:"A legend containing one title, which is a string describing the renderer in the legend.",$ref:"#/definitions/rendererLegendOptions_schema.json"},normalizationField:{type:"string",description:"Used when normalizationType is field. The string value indicating the attribute field by which the data value is normalized."},normalizationTotal:{type:"number",description:"Used when normalizationType is percent-of-total, this number property contains the total of all data values."},normalizationType:{type:"string",description:"Determine how the data was normalized.",enum:["esriNormalizeByField","esriNormalizeByLog","esriNormalizeByPercentOfTotal"]},type:{type:"string",description:"Specifies the type of renderer used.",enum:["rasterClassBreaksRenderer"]}},required:["colorClassBreakInfos","field","type"],additionalProperties:!1},"rasterColormapRenderer_schema.json":{title:"Raster Colormap Renderer",type:"object",description:"A value/color look up table used for rendering raster data only.",properties:{colormapInfos:{type:"array",description:"An array of colormapInfo objects.",items:{$ref:"#/definitions/colormapInfo_schema.json"}},type:{type:"string",description:"Specifies the type of renderer used.",enum:["rasterColormap"]}},required:["colormapInfos","type"],additionalProperties:!1},"rasterShadedReliefRenderer_schema.json":{title:"Raster Shaded Relief Renderer",type:"object",description:"This renderer produces a grayscale or a colored 3D representation of a shaded relief. This renderer can be used on either layers of type: [ImageServiceLayer](imageServiceLayer.md) or [TiledImageServiceLayer](tiledImageServiceLayer.md).",properties:{altitude:{type:"number",description:"Used when the `hillshadeType` is `traditional`. The altitude of the illumination source."},azimuth:{type:"number",description:"Used when the `hillshadeType` is `traditional`. The azimuth of the illumination source."},colorRamp:{description:"The color ramp to display the shaded relief. When not specified, a grayscale hillshade is produced. When this is specified, grayscale hillshade is fused with colorized elevation.",$ref:"#/definitions/colorRamp_schema.json"},hillshadeType:{type:"string",description:"Use single (traditional), or multiple illumination sources to generate hillshade.",enum:["multi-directional","traditional"]},pixelSizeFactor:{type:"number",description:"Accounts for changes in scale as the viewer zooms in and out on the map display."},pixelSizePower:{type:"number",description:"Accounts for the altitude changes (or scale) as the viewer zooms in and out on the map display."},scalingType:{type:"string",description:"Apply a constant or adjusted z-factor based on resolution changes. The `adjusted` type is suitable for worldwide elevation dataset. An adjusted `zFactor` is determined using this equation: `Adjusted Z-Factor = (Z Factor) + (Pixel Size)` (Pixel Size Power) `x Pixel Size Factor`.",enum:["adjusted","none"]},type:{type:"string",description:"Specifies the type of renderer used.",enum:["rasterShadedRelief"]},zFactor:{type:"number",description:"A conversion factor that adjusts the units of measure for the vertical (or elevation) units when they are different from the horizontal coordinate (x,y) units of the input surface. It is the number of ground x,y units in one surface z-unit."}},required:["altitude","azimuth","hillshadeType","scalingType","type","zFactor"],additionalProperties:!1},"rasterStretchRenderer_schema.json":{title:"Raster Stretch Renderer",description:"Displays continuous raster cell values across a gradual ramp of colors. Use this renderer to draw a single band of continuous data. This renderer works well when you have a large range of values to display, such as with imagery or scientific data.",properties:{colorRamp:{$ref:"#/definitions/colorRamp_schema.json"},computeGamma:{type:"boolean",description:"Indicates if gamma values should be computed by default."},dra:{type:"boolean",description:"Indicates if Dynamic Range Adjustment should be applied."},gamma:{type:"array",description:"The list of Gamma value(s).",items:{type:"number"}},max:{type:"number",description:"The current maximum output value."},maxPercent:{type:"number",description:"The current maximum percent value."},min:{type:"number",description:"The current minimum output value."},minPercent:{type:"number",description:"The current minimum percent value."},numberOfStandardDeviations:{type:"number",description:"The number of standard deviations for standard deviation stretch."},sigmoidStrengthLevel:{type:"number",description:"Set this from (1 to 6) to adjust the curvature of Sigmoid curve used in color stretch."},statistics:{type:"array",description:"The custom raster stretch statistics.",items:{type:"array",items:{type:"number",minItems:4,maxItems:4}}},stretchType:{type:"string",description:"The stretch types for stretch raster function.",enum:["histogramEqualization","minMax","none","percentClip","sigmoid","standardDeviation"]},type:{type:"string",description:"Specifies the type of renderer used.",enum:["rasterStretch"]},useGamma:{type:"boolean",description:"Indicates if the renderer applies Gamma stretch."}},additionalProperties:!1},"rasterUniqueValueRenderer_schema.json":{title:"Raster UniqueValue Renderer",type:"object",description:"Defines the color of each raster cell based on an attribute. This is done by using unique colors to represent cells with equal attribute values.",properties:{authoringInfo:{description:"An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.",$ref:"#/definitions/authoringInfo_schema.json"},colorUniqueValueInfos:{type:"array",description:"Unique value infos.",items:{$ref:"#/definitions/colorUniqueValueInfo_schema.json"}},defaultColor:{description:"The defaultColor on the renderer that get assigned to features with no value or features that do not fall within the configured data.",$ref:"#/definitions/color_schema.json"},defaultLabel:{type:"string",description:"Default label for the default symbol used to draw unspecified values."},field:{type:"string",description:"The name of the field that is used for the renderer."},legendOptions:{description:"A legend containing one title, which is a string describing the renderer in the legend.",$ref:"#/definitions/rendererLegendOptions_schema.json"},type:{type:"string",description:"Specifies the type of renderer used.",enum:["rasterUniqueValueRenderer"]}},required:["colorUniqueValueInfos","field","type"],additionalProperties:!1},"uniqueValueGroup_schema.json":{title:"Unique Value Group",type:"object",description:"Represents a group of unique value classes (i.e. symbols). This is used to group symbols under a common heading and/or when representing multiple unique values with a single symbol.",properties:{classes:{type:"array",description:"Specifies the classes (i.e. symbols) to group under a common heading. Classes may be included here without a heading when representing multiple values with a single symbol.",items:{$ref:"#/definitions/uniqueValueClass_schema.json",minItems:1}},heading:{type:"string",description:"The heading to be displayed for the collection of classes defined in this group."}},required:["classes"],additionalProperties:!1},"uniqueValueInfo_schema.json":{title:"uniqueValueInfo",type:"object",description:"Info item for the Unique Value Renderer. Its symbol gets selected if the feature's field matches its value.",properties:{description:{type:"string",description:"String value used to describe the drawn symbol."},label:{type:"string",description:"String value used to label the drawn symbol."},symbol:{description:"An object used to display the value.",$ref:"#/definitions/symbol3D_schema.json"},value:{type:"string",description:"String value indicating the unique value."}},additionalProperties:!1},"mediaInfo_chart_value_schema.json":{title:"mediaInfo chart value",type:"object",description:"The value object contains information for popup windows about how charts should be constructed.",properties:{fields:{type:"array",description:"An array of strings, with each string containing the name of a field to display in the chart.",items:{type:"string"},uniqueItems:!0},normalizeField:{type:"string",description:"An optional string containing the name of a field. The values of all fields in the chart will be normalized (divided) by the value of this field."},tooltipField:{type:"string",description:"String value indicating the tooltip for a chart specified from another field. This field is needed when related records are not used. It is used for showing tooltips from another field in the same layer or related layer/table."}},required:["fields"],additionalProperties:!1},"mediaInfo_image_value_schema.json":{title:"mediaInfo image value",type:"object",description:"The value object contains information for popup windows about how images should be retrieved.",properties:{linkURL:{type:"string",description:"A string containing a URL to be launched in a browser when a user clicks the image."},sourceURL:{type:"string",description:"A string containing the URL to the image."}},required:["sourceURL"],additionalProperties:!1},"popupElementExpressionInfo_schema.json":{title:"popupElementExpressionInfo",description:"An Arcade expression that defines the pop-up element content. The return type will always be a `dictionary` that defines the desired pop-up element as outlined [here](https://developers.arcgis.com/arcade/guide/profiles/#popup-element).",properties:{expression:{type:"string",description:"The Arcade expression."},returnType:{type:"string",description:"Return type of the Arcade expression, the expected return is always `dictionary.`",enum:["dictionary"]},title:{type:"string",description:"Title of the expression."}},additionalProperties:!1},"search_field_schema.json":{title:"search field",type:"object",description:"Contains information about an attribute field in layer and table search configurations.",properties:{exactMatch:{type:"boolean",description:"A Boolean defining whether or not the field is an exact match."},name:{type:"string",description:"A string defining the field name."},type:{type:"string",description:"A string defining the field type.",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeXML"]}},additionalProperties:!1},"voxelSlice_schema.json":{title:"Voxel Slice",type:"object",description:"A slice is a plane through the voxel layer. Slices visually cut the voxel layer by removing portion of it. A slice or a combination of slices can define an area of interest showing only a portion of the original extent or show the entire of a voxel layer.",properties:{enabled:{type:"boolean",description:"Boolean defining slice visibility.",default:!0},label:{type:"string",description:"Label for the slice."},normal:{type:"array",description:"Normal vector to the plane in voxel space. Defining the orientation of the slice.",items:{type:"number"},minItems:3,maxItems:3},point:{type:"array",description:"Point belonging to the section plane in voxel space. Defining the position of the slice.",items:{type:"number"},minItems:3,maxItems:3}},required:["normal","point"],additionalProperties:!1},"voxelShading_schema.json":{title:"Voxel Shading",type:"object",description:"Describes the shading properties of the voxel layer. Voxel layers use a simple shading model which provides specular highlights and diffuse shading proportional to the opacity of the voxel being accumulated during raycasting. Opaque voxels are shaded like a surface while semi-transparent voxels mostly contribute their color.",properties:{diffuseFactor:{type:"number",description:"Diffuse light coefficient.",minimum:0,maximum:1,default:.5},specularFactor:{type:"number",description:"Specular highlight coefficient.",minimum:0,maximum:1,default:.5}},additionalProperties:!1},"voxelVariableStyle_schema.json":{title:"Voxel Variable Style",type:"object",description:"The voxel variable style defines how the voxel layer will render for a variable. A variable can be discrete (integer values) or continuous (float values).",properties:{isosurfaces:{type:"array",description:"Array of styles for isosurfaces. (Only if `variable.originalFormat.continuity = continuous`). An isosurface represents a surface at a specific value. A voxel layer can have up to four isosurfaces.",items:{$ref:"#/definitions/voxelIsosurfaceStyle_schema.json"},minItems:1},label:{type:"string",description:"Label for the variable."},transferFunction:{description:"Defines the stretch rendering of the voxel layer. The transfer function maps voxel values to color and transparency. Scalar field only. (Only if `variable.originalFormat.continuity = continuous`).",$ref:"#/definitions/voxelTransferFunctionStyle_schema.json"},uniqueValues:{type:"array",description:"Defines the unique value rendering as an array of unique value styles (Only if `variable.originalFormat.continuity = discrete`).",items:{$ref:"#/definitions/voxelUniqueValue_schema.json"},minItems:0},variableId:{type:"integer",description:"Id of the variable. The variable styles will be defined for the variable with the given Id. If the `variableId` and the voxel style `currentVariableId` are identical the style will be shown. "}},required:["variableId"],additionalProperties:!1},"voxelVolumeStyle_schema.json":{title:"Volume Style",type:"object",description:"The volume style allows you to define the exaggeration and offset.",properties:{dynamicSections:{type:"array",description:"Array of dynamic sections of the volume. (Only if `style.renderMode = surfaces`). Dynamic sections are planes through the voxel layer used for visual analysis to inspect the voxel layer at specified positions. Sections are visible if the voxel layer shows surfaces. For example, you can define a cross section diagram using dynamic sections.",items:{$ref:"#/definitions/voxelDynamicSection_schema.json"}},exaggerationMode:{type:"string",description:"Determines how the vertical exaggeration is applied. `scale-height` scales from the voxel dataset origin only, for example, if a voxel layer has its minimum at sea level the layer will be exaggerated starting from sea level. `scale-height` is the default. `scale-position` also scales the space between voxel dataset origin in the coordinate system origin. This exaggeration mode is identical with exaggeration applied to other layers like feature layers (use the scale position option if you want to draw the voxel layer together with feature based data).",enum:["scale-height","scale-position"],default:"scale-height"},slices:{type:"array",description:"Array of slices applied to this volume. Slices reduce the voxel volume to an area of interest. Slices are applied to both voxel style renderModes (volume, surfaces).",items:{$ref:"#/definitions/voxelSlice_schema.json"},minItems:1},verticalExaggeration:{type:"number",description:"Vertical exaggeration factor.",default:1},verticalOffset:{type:"number",description:"Vertical offset value in vertical unit of the spatial reference of the voxel layer.",default:0},volumeId:{type:"integer",description:"Id of the volume in the volume array (a maximum of one style per volumeId).",default:0}},additionalProperties:!1},"edges_schema.json":{title:"Edges",type:"object",description:"Specifies an edge visualization style (only applies to MeshSymbol3D). Edges describe the style applied to visually important edges of 3D objects.",oneOf:[{$ref:"#/definitions/sketchEdges_schema.json"},{$ref:"#/definitions/solidEdges_schema.json"}]},"codedValue_schema.json":{title:"codedValue",type:"object",description:"A set of valid coded values with unique names.",properties:{code:{type:["number","string"],description:"The value stored in the feature attribute."},name:{type:"string",description:"User-friendly name for what the code means."}},required:["code","name"],additionalProperties:!1},"joinTableDataSource_schema.json":{title:"Join Table DataSource",type:"object",description:"Join Table data source is the result of a join operation. Nested joins are supported. To use nested joins, set either leftTableSource or rightTableSource to be a joinTable.",properties:{joinType:{type:"string",description:"The type of join (left outer or left inner).",enum:["esriLeftInnerJoin","esriLeftOuterJoin"]},leftTableKey:{type:"string",description:"Field name from the left table."},leftTableSource:{description:"The left source. If the leftTableSource is a table, the resulting joinTable is a table. If the leftTableSource is a layer, the resulting joinTable is a layer.",$ref:"#/definitions/source_schema.json"},rightTableKey:{type:"string",description:"Field name from the right table."},rightTableSource:{description:"The right table source.",$ref:"#/definitions/source_schema.json"},type:{type:"string",description:"String value indicating the type for the dataSource.",enum:["joinTable"]}},required:["type"],additionalProperties:!1},"queryTableDataSource_schema.json":{title:"Query Table DataSource",type:"object",description:"Query table data source is a layer/table that is defined by a SQL query.",properties:{geometryType:{type:"string",description:"The geometry type. When querying a table that does not have a geometry column, do not include geometryType.",enum:["esriGeometryMultipoint","esriGeometryPoint","esriGeometryPolygon","esriGeometryPolyline"]},oidFields:{type:"string",description:"Comma separated list of identifier fields. There are only certain field types that can be used as a unique identifier. These field types include integer, string, GUID, and date. If a single integer field is specified, map server uses the values in that field directly to uniquely identify all features and rows returned from a queryTable. However, if a single string field or a group of fields is used as the unique identifier, map server maps those unique values to an integer."},query:{type:"string",description:"The SQL query."},spatialReference:{description:"The spatial reference of the geometry column. When querying a table that does not have a geometry column, do not include spatialReference.",$ref:"#/definitions/spatialReference_schema.json"},type:{type:"string",description:"String value indicating the type for the dataSource.",enum:["queryTable"]},workspaceId:{type:"string",description:"The unique string value used to identify the datasource's workspace."}},required:["type"],additionalProperties:!1},"rasterDataSource_schema.json":{title:"Raster DataSource",type:"object",description:"Raster data source is a file-based raster that resides in a registered raster workspace.",properties:{dataSourceName:{type:"string",description:"The raster datasource's name."},type:{type:"string",description:"String value indicating the type for the dataSource.",enum:["raster"]},workspaceId:{type:"string",description:"The unique string value used to identify the datasource's workspace."}},required:["type"],additionalProperties:!1},"tableDataSource_schema.json":{title:"Table DataSource",type:"object",description:"Table data source is a table, feature class, or raster that resides in a registered workspace (either a folder or geodatabase). In the case of a geodatabase, if versioned, use version to switch to an alternate geodatabase version. If version is empty or missing, the registered geodatabase version will be used.",properties:{dataSourceName:{type:"string",description:"The fully-qualified string value used to specify where the dataSource is derived."},gdbVersion:{type:"string",description:"If applicable, the value indicating the version of the geodatabase."},type:{type:"string",description:"String value indicating the type for the dataSource. The value for a Table DataSource is `table`.",enum:["table"]},workspaceId:{type:"string",description:"The unique string value used to identify the datasource's workspace."}},required:["type"],additionalProperties:!1},"border_schema.json":{title:"border",type:"object",description:"Optional border on the line that is used to improve the contrast of the line color against various background colors.",properties:{color:{$ref:"#/definitions/color_schema.json"},transparency:{type:"integer",description:"A value between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100}},required:["color"],additionalProperties:!1},"textBackground_schema.json":{title:"text background",type:"object",description:"Text background definition.",properties:{color:{$ref:"#/definitions/color_schema.json"},transparency:{type:"integer",description:"A value between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100}},additionalProperties:!1},"font_schema.json":{title:"font",type:"object",description:"Font used for text symbols.",properties:{decoration:{type:"string",description:"The text decoration.",enum:["line-through","none","underline"],default:"none"},family:{type:"string",description:"The font family."},size:{type:"number",description:"The font size in points. Ignored when font is used on TextSymbol3DLayer."},style:{type:"string",description:"The text style.",enum:["italic","normal","oblique"],default:"normal"},weight:{type:"string",description:"The text weight.",enum:["bold","bolder","lighter","normal"],default:"normal"}},additionalProperties:!1},"halo_schema.json":{title:"halo",type:"object",description:"Halo definition.",properties:{color:{$ref:"#/definitions/color_schema.json"},size:{type:"number",description:"Width of the halo in points."},transparency:{type:"integer",description:"A value between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100}},additionalProperties:!1},"material_schema.json":{title:"Material",type:"object",description:"The material used to shade the geometry.",properties:{color:{$ref:"#/definitions/color_schema.json"},transparency:{type:"integer",description:"A value between `100` (full transparency) and `0` (full opacity). Ignored if no color is specified.",minimum:0,maximum:100}},additionalProperties:!1},"colorRamp_schema.json":{title:"Color Ramp",description:"A colorRamp object is used to specify a range of colors that are applied to a group of symbols.",oneOf:[{$ref:"#/definitions/colorRamp_algorithmic_schema.json"},{$ref:"#/definitions/colorRamp_multipart_schema.json"}]},"field_authoringInfo_schema.json":{title:"AuthoringInfo Field",type:"object",description:"Contains information about an attribute field relating to Relationship renderers.",properties:{classBreakInfos:{type:"array",items:{$ref:"#/definitions/classBreakInfo_authoringInfo_schema.json"}},field:{type:"string",description:"Attribute field used for renderer."},label:{type:"string",description:"The label used to describe the field or attribute in the legend."},normalizationField:{type:"string",description:"Attribute field used to normalize the data."}},additionalProperties:!1},"authoringInfo_visualVariable_schema.json":{title:"AuthoringInfo Visual Variable",type:"object",description:"This visual variable pertains specifically to [authoringInfo](authoringInfo.md) and is different from visual variables directly on the [renderer](renderer.md).",properties:{endTime:{type:["number","string"],description:"A Unix stamp. Both `startTime` or `endTime` can be fields. If this is the case, their names must be different."},field:{type:"string",description:"The attribute field the user chose in the Smart Mapping gallery. Must be the same as in either `startTime` or `endTime`."},maxSliderValue:{type:"number",description:"A numeric value indicating the maximum value displayed."},minSliderValue:{type:"number",description:"A numeric value indicating the minimum value displayed."},startTime:{type:["number","string"],description:"A Unix time stamp. Both `startTime` or `endTime` can be fields. If this is the case, their names must be different."},style:{type:"string",description:"(This property is used for comparison rendering). It is used to map the ratio between two numbers. It is possible to express that relationship as percentages, simple ratios, or an overall percentage.",enum:["percent","percentTotal","ratio"]},theme:{type:"string",description:"Theme to be used only when working with visual variables of type `colorInfo`. Default is `high-to-low`.",enum:["above-and-below","centered-on","extremes","high-to-low"]},type:{type:"string",description:"A string value specifying the type of renderer's visual variable.",enum:["colorInfo","rotationInfo","sizeInfo","transparencyInfo"]},units:{type:"string",description:"(This property is used only with age renderers.) Units for startTime and endTime.",enum:["days","hours","minutes","months","seconds","years"]}},additionalProperties:!1},"styleOrigin_schema.json":{title:"styleOrigin",type:"object",description:"The origin of the style from which the symbol was originally referenced. A reference to the style origin can be either by styleName or by styleUrl (but not both). It may be used to understand where a symbol was originally sourced from, but does not affect actual appearance or rendering of the symbol.",properties:{name:{type:"string",description:"Identifies a symbol in the style by name."},styleName:{type:"string",description:"A registered web style name, such as `EsriThematicShapesStyle`"},styleUrl:{description:"URL to a style definition.",oneOf:[{type:"string",description:"An absolute URL"},{type:"string",description:"A relative path starting with ./",pattern:"^\\./.+$"}]}},oneOf:[{required:["name","styleName"]},{required:["name","styleUrl"]}],additionalProperties:!1},"extrudeSymbol3DLayer_schema.json":{title:"ExtrudeSymbol3DLayer",type:"object",description:"ExtrudeSymbol3DLayer is used to render Polygon geometries by extruding them upward from the ground, creating a 3D volumetric object.",properties:{castShadows:{type:"boolean",description:"Boolean to control the shadow casting behaviour of the rendered geometries.",default:!0},edges:{description:"Specifies an edge visualization style.",$ref:"#/definitions/edges_schema.json"},enable:{type:"boolean"},material:{$ref:"#/definitions/material_schema.json"},size:{type:"number",description:"Extrusion height in meters."},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Extrude"]}},required:["size","type"],additionalProperties:!1},"fillSymbol3DLayer_schema.json":{title:"FillSymbol3DLayer",type:"object",description:"FillSymbol3DLayer is used to render the surfaces of flat 2D Polygon geometries and 3D volumetric meshes in a SceneView.",properties:{castShadows:{type:"boolean",description:"Boolean to control the shadow casting behaviour of the rendered geometries (only applies to MeshSymbol3D).",default:!0},edges:{$ref:"#/definitions/edges_schema.json"},enable:{type:"boolean"},material:{$ref:"#/definitions/materialColorMixMode_schema.json"},outline:{description:"The outline of the symbol layer (only applies to PolygonSymbol3D).",$ref:"#/definitions/outline_schema.json"},pattern:{$ref:"#/definitions/polygonPattern_schema.json"},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Fill"]}},required:["type"],additionalProperties:!1},"iconSymbol3DLayer_schema.json":{title:"IconSymbol3DLayer",type:"object",description:"IconSymbol3DLayer is used to render Point geometries using a flat 2D icon (e.g. a circle) with a PointSymbol3D in a SceneView.",properties:{anchor:{type:"string",enum:["bottom","bottomLeft","bottomRight","center","left","relative","right","top","topLeft","topRight"],default:"center"},anchorPosition:{type:"array",description:"When `anchor` equals `relative`, this property specifies the position within the icon that should coincide with the feature geometry. Otherwise it is ignored. The position is defined as a factor of the icon dimensions that is added to the icon center: `positionInIcon = (0.5 + anchorPosition) * size`, where `size` is the original size of the icon resource.",items:{type:"number"},minItems:2,maxItems:2},enable:{type:"boolean"},material:{$ref:"#/definitions/material_schema.json"},outline:{type:"object",description:"Sets properties of the outline of the IconSymbol3DLayer.",allOf:[{$ref:"#/definitions/outline_schema.json"},{properties:{color:{},size:{},transparency:{}},additionalProperties:!1}]},resource:{$ref:"#/definitions/iconSymbol3DLayer_resource_schema.json"},size:{type:"number",description:"Icon size in points, positive only",minimum:0},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Icon"]}},required:["size","type"],additionalProperties:!1},"lineSymbol3DLayer_schema.json":{title:"LineSymbol3DLayer",type:"object",description:"LineSymbol3DLayer renders Polyline geometries using a flat 2D line with a LineSymbol3D in a 3D SceneView.",properties:{cap:{$ref:"#/definitions/lineCap_schema.json"},enable:{type:"boolean"},join:{type:"string",description:"Shape of the intersection of two line segments.",enum:["bevel","miter","round"],default:"miter"},marker:{$ref:"#/definitions/lineMarker_schema.json"},material:{$ref:"#/definitions/material_schema.json"},pattern:{$ref:"#/definitions/linePattern_schema.json"},size:{type:"number",description:"Line width in points, positive only",minimum:0},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Line"]}},required:["size","type"],additionalProperties:!1},"objectSymbol3DLayer_schema.json":{title:"ObjectSymbol3DLayer",type:"object",description:"ObjectSymbol3DLayer is used to render Point geometries using a volumetric 3D shape (e.g., a sphere or cylinder) with a Symbol3D in a SceneView.",properties:{anchor:{type:"string",description:"The positioning of the object relative to the geometry.",enum:["bottom","center","origin","relative","top"],default:"origin"},anchorPosition:{type:"array",description:"When `anchor` equals `relative`, this property specifies the positioning of the object relative to the geometry as a fraction of the symbol layer's bounding box. Otherwise it is ignored.",items:{type:"number"},minItems:3,maxItems:3},castShadows:{type:"boolean",description:"Boolean to control the shadow casting behaviour of the rendered geometries.",default:!0},depth:{type:"number",description:"Object depth in meters, positive only",minimum:0},enable:{type:"boolean"},heading:{type:"number",description:"Rotation angle around Z axis in degrees. At 0 degrees, the model points in the direction of the Y-axis. Positive values indicate clockwise rotation (when looked at from the top). [Detailed description](static/objectSymbolLayerOrientation.md)."},height:{type:"number",description:"Object height in meters, positive only",minimum:0},material:{$ref:"#/definitions/material_schema.json"},resource:{$ref:"#/definitions/objectSymbol3DLayer_resource_schema.json"},roll:{type:"number",description:"Rotation angle around Y axis in degrees. At 0 degrees, the model is level. A positive value lifts the left part and lowers the right part of the model. [Detailed description](static/objectSymbolLayerOrientation.md)."},tilt:{type:"number",description:"Rotation angle around X axis in degrees. At 0 degrees, the model is level. A positive value lifts the front and lowers the back of the model. [Detailed description](static/objectSymbolLayerOrientation.md)."},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Object"]},width:{type:"number",description:"Object width in meters, positive only",minimum:0}},required:["type"],additionalProperties:!1},"waterSymbol3DLayer_schema.json":{title:"WaterSymbol3DLayer",type:"object",description:"Symbol Layer that describes a water appearance on surfaces in a SceneView.",properties:{color:{description:"The dominant water color.",$ref:"#/definitions/color_schema.json",default:[0,119,190]},enable:{type:"boolean"},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Water"]},waterbodySize:{type:"string",description:"Size of the waterbody the symbol layer represents. Applications will display waves that are appropriate for the chosen body of water, for example ocean versus marina versus swimming pool.",enum:["large","medium","small"],default:"medium"},waveDirection:{type:"number",description:"Azimuthal bearing for direction of the waves. If ommitted, waves appear directionless. The value is interpreted as 'geographic' rotation, i.e. clockwise starting from north.",minimum:0,maximum:360},waveStrength:{type:"string",description:"The magnitude of the waves displayed on the waterbody. Strings roughly follow the [Douglas sea scale](https://en.wikipedia.org/wiki/Douglas_sea_scale), currently limited to lower degrees.",enum:["calm","moderate","rippled","slight"],default:"moderate"}},required:["type"],additionalProperties:!1},"cimSymbolReference_schema.json":{title:"CIMSymbolReference",type:"object",description:"Represents a symbol reference that contains a CIM symbol. In addition to `type` listed below, a symbol reference will contain additional properties. More details on CIM symbol reference and CIM symbols are available on github: [Symbols Overview](https://github.com/Esri/cim-spec/blob/master/docs/v2/Overview-Symbols.md).",properties:{type:{type:"string",description:"Specifies the type of symbol used.",enum:["CIMSymbolReference"]}},required:["type"],additionalProperties:!0},"lineSymbol3D_schema.json":{title:"LineSymbol3D",type:"object",description:"LineSymbol3D is used to render features with Polyline geometry in a 3D SceneView.",properties:{styleOrigin:{$ref:"#/definitions/styleOrigin_schema.json"},symbolLayers:{type:"array",description:"A Collection of Symbol3DLayer objects used to visualize the graphic or feature.",items:{oneOf:[{$ref:"#/definitions/lineSymbol3DLayer_schema.json"},{$ref:"#/definitions/pathSymbol3DLayer_schema.json"}]}},type:{type:"string",description:"Specifies the type of symbol used.",enum:["LineSymbol3D"]}},required:["symbolLayers","type"],additionalProperties:!1},"meshSymbol3D_schema.json":{title:"MeshSymbol3D",type:"object",description:"MeshSymbol3D is used to render 3D mesh features in a SceneLayer in a 3D SceneView.",properties:{styleOrigin:{$ref:"#/definitions/styleOrigin_schema.json"},symbolLayers:{type:"array",description:"A Collection of Symbol3DLayer objects used to visualize the graphic or feature.",items:{oneOf:[{$ref:"#/definitions/fillSymbol3DLayer_schema.json"}]}},type:{type:"string",description:"Specifies the type of symbol used",enum:["MeshSymbol3D"]}},required:["symbolLayers","type"],additionalProperties:!1},"pointSymbol3D_schema.json":{title:"PointSymbol3D",type:"object",description:"PointSymbol3D is used to render features with Point geometry in a 3D SceneView.",properties:{callout:{$ref:"#/definitions/callout_schema.json"},styleOrigin:{$ref:"#/definitions/styleOrigin_schema.json"},symbolLayers:{type:"array",description:"A Collection of Symbol3DLayer objects used to visualize the graphic or feature.",items:{oneOf:[{$ref:"#/definitions/iconSymbol3DLayer_schema.json"},{$ref:"#/definitions/objectSymbol3DLayer_schema.json"},{$ref:"#/definitions/textSymbol3DLayer_schema.json"}]}},type:{type:"string",description:"Specifies the type of symbol used",enum:["PointSymbol3D"]},verticalOffset:{$ref:"#/definitions/verticalOffset_schema.json"}},required:["symbolLayers","type"],additionalProperties:!1},"styleSymbolReference_schema.json":{title:"StyleSymbolReference",type:"object",description:"The StyleSymbolReference is used to reference a symbol from a portal styleItem",properties:{name:{type:"string",description:"Identifies a symbol in the style by name."},styleName:{type:"string",description:"A registered web style name, such as `EsriThematicTreesStyle`"},styleUrl:{type:"string",description:"URL to a style definition."},type:{type:"string",description:"The type of the symbol",enum:["styleSymbolReference"]}},oneOf:[{required:["name","styleUrl","type"]},{required:["name","styleName","type"]}],additionalProperties:!1},"colorInfo_visualVariable_schema.json":{title:"ColorInfo Visual Variable",type:"object",description:"The colorInfo visual variable defines how a continuous color ramp is applied to features based on the values of a numeric field attribute.",properties:{field:{type:"string",description:"Attribute field used for color rendering if no valueExpression is provided."},legendOptions:{type:"object",allOf:[{$ref:"#/definitions/visualVariableLegendOptions_schema.json"},{properties:{showLegend:{},title:{}},additionalProperties:!1}]},normalizationField:{type:"string",description:"Attribute field used to normalize the data."},stops:{type:"array",description:"An array of stop objects.",items:{$ref:"#/definitions/colorStop_schema.json"}},type:{type:"string",description:"Specifies the type of visual variable.",enum:["colorInfo"]},valueExpression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) that computes a value in lieu of a value provided by an attribute `field`."},valueExpressionTitle:{type:"string",description:"The title identifying and describing the associated [Arcade](https://developers.arcgis.com/arcade/) expression as defined in the `valueExpression` property."}},required:["type"],additionalProperties:!1},"rotationInfo_visualVariable_schema.json":{title:"RotationInfo Visual Variable",type:"object",description:"The rotation visual variable defines how features rendered with marker symbols are rotated. The rotation value is determined by a value in a field or an Arcade expression calculating a value. Use either the `field` property or `valueExpression` when specifying rotation values.",properties:{axis:{type:"string",description:"Defines the rotation axis the visual variable should be applied to when rendering features with an ObjectSymbol3DLayer. [Detailed description](static/objectSymbolLayerOrientation.md).",enum:["heading","roll","tilt"],default:"heading"},field:{type:"string",description:"Attribute field used for setting the rotation of a symbol if no `valueExpression` is provided."},legendOptions:{type:"object",allOf:[{$ref:"#/definitions/visualVariableLegendOptions_schema.json"},{properties:{showLegend:{},title:{}},additionalProperties:!1}]},rotationType:{type:"string",description:"Defines the origin and direction of rotation depending on how the angle of rotation was measured. Possible values are `geographic` which rotates the symbol from the north in a clockwise direction and `arithmetic` which rotates the symbol from the east in a counter-clockwise direction.",enum:["arithmetic","geographic"],default:"geographic"},type:{type:"string",description:"A string value indicating the type of visual variable used for the renderer.",enum:["rotationInfo"]},valueExpression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to a number."},valueExpressionTitle:{type:"string",description:"The title identifying and describing the associated [Arcade expression] (https://developers.arcgis.com/arcade/) as defined in the `valueExpression` property."}},required:["type"],additionalProperties:!1},"sizeInfo_visualVariable_schema.json":{title:"SizeInfo Visual Variable",type:"object",description:"The sizeInfo visual variable defines how size is applied to features based on the values of a numeric field attribute. The minimum and maximum values of the data should be indicated along with their respective size values. You must specify either `minSize` and `maxSize`, or `stops`, or `valueUnit` to construct the size ramp. All features with values falling in between the specified min and max data values (or stops) will be scaled proportionally between the provided min and max sizes.",properties:{axis:{type:"string",description:"Defines the axis the size visual variable should be applied to when rendering features with an ObjectSymbol3DLayer.",enum:["all","depth","height","width","widthAndDepth"],default:"all"},field:{type:"string",description:"Attribute field used for size rendering if no valueExpression is provided."},legendOptions:{type:"object",allOf:[{$ref:"#/definitions/visualVariableLegendOptions_schema.json"},{properties:{customValues:{},showLegend:{},title:{}},additionalProperties:!1}]},maxDataValue:{type:"number",description:"The maximum data value."},maxSize:{type:"number",description:"Specifies the maximum size to be applied to the symbol. This is required if valueUnit is set to `unknown`."},minDataValue:{type:"number",description:"The minimum data value."},minSize:{type:"number",description:"Specifies the minimum size to be applied to the symbol. This is required if valueUnit is set to `unknown`."},normalizationField:{type:"string",description:"Attribute field used to normalize the data."},stops:{type:"array",description:"An array of objects that defines the thematic size ramp in a sequence of data or expression stops. At least two stops are required. The stops must be listed in ascending order based on the value of the `value` property in each stop. This property is required if `minDataValue`, `maxDataValue`, `minSize`, and `maxSize` are not defined.",items:{$ref:"#/definitions/sizeStop_schema.json"}},target:{type:"string",description:"Only used when sizeInfo is used for polygon outlines.",enum:["outline"]},type:{type:"string",description:"Specifies the type of visual variable.",enum:["sizeInfo"]},useSymbolValue:{type:"boolean",description:"When setting a size visual variable on a renderer using an ObjectSymbol3DLayer, this property indicates whether to apply the value defined by the height, width, or depth properties to the corresponding axis of this visual variable instead of proportionally scaling this axis' value after other axes."},valueExpression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to a number."},valueExpressionTitle:{type:"string",description:"The title identifying and describing the associated [Arcade](https://developers.arcgis.com/arcade/) expression as defined in the `valueExpression` property."},valueRepresentation:{type:"string",description:"Specifies how to apply the data value when mapping real-world sizes. See table below for supported values.",enum:["area","diameter","distance","radius","width"]},valueUnit:{type:"string",description:"A string value indicating the unit of measurement. Defaults to `meters` if not set.",enum:["centimeters","decimal-degrees","decimeters","feet","inches","kilometers","meters","miles","millimeters","nautical-miles","unknown","yards"],default:"meters"}},required:["type"],additionalProperties:!1},"transparencyInfo_visualVariable_schema.json":{title:"TransparencyInfo Visual Variable",type:"object",description:"The transparencyInfo visual variable defines the transparency, or opacity, of each feature's symbol based on a numeric attribute field value.",properties:{field:{type:"string",description:"Attribute field used for setting the transparency of a feature if no `valueExpression` is provided."},legendOptions:{type:"object",allOf:[{$ref:"#/definitions/visualVariableLegendOptions_schema.json"},{properties:{showLegend:{},title:{}},additionalProperties:!1}]},normalizationField:{type:"string",description:"Attribute field used to normalize the data."},stops:{type:"array",description:"An array of transparencyStop objects.",items:{$ref:"#/definitions/transparencyStop_schema.json"}},type:{type:"string",description:"Specifies the type of visual variable.",enum:["transparencyInfo"]},valueExpression:{type:"string",description:"An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to a number."},valueExpressionTitle:{type:"string",description:"The title identifying and describing the associated [Arcade](https://developers.arcgis.com/arcade/) expression as defined in the `valueExpression` property."}},required:["type"],additionalProperties:!1},"colorClassBreakInfo_schema.json":{title:"colorClassBreakInfo",type:"object",description:"The classBreaksInfo object provides information about the class breaks associated with the renderer.",properties:{classMaxValue:{type:"number",description:"A numeric value used to specify the maximum value for a break."},classMinValue:{type:"number",description:"A numeric value used to specify discontinuous class breaks. If this value is null or is missing, the map server will calculate the minimum value based on the preceding class' maximum value."},color:{$ref:"#/definitions/color_schema.json"},description:{type:"string",description:"String value used to describe the class."},label:{type:"string",description:"String value used to label the class."}},required:["classMaxValue","classMinValue","color"],additionalProperties:!1},"colorModulationInfo_schema.json":{title:"colorModulationInfo",type:"object",description:"Indicates whether modulation should be used to render the point.",properties:{field:{type:"string",description:"the attribute to use as a source for the modulation amplitude"},maxValue:{type:"number",description:"maximum value to compute modulation linear mapping"},minValue:{type:"number",description:"minimum value to compute modulation linear mapping"}},required:["field","maxValue","minValue"],additionalProperties:!1},"pointSizeAlgorithm_schema.json":{title:"PointCloud Size Algorithm",type:"object",description:"Size algorithms for point cloud performance.",oneOf:[{$ref:"#/definitions/pointCloudFixedSizeAlgorithm_schema.json"},{$ref:"#/definitions/pointCloudSplatAlgorithm_schema.json"}]},"colorStop_schema.json":{title:"colorStop",description:"A colorStop object describes the renderer's color ramp with more specificity than just colors.",properties:{color:{description:"A CSS color string or an array of rbga values. The color to place at the stop indicated by either a ratio or value.",$ref:"#/definitions/color_schema.json"},label:{type:"string",description:"Value if a label is needed on the legend for a stop."},value:{type:"number",description:"The pixel intensity value. Describes the pixel intensity value that the color should be associated with. Just like in colorInfo, using value will ignore `maxPixelIntensity` and `minPixelIntensity` properties. It will actually set those properties to maximum and minimum values you set in the colorStops array. The hard values are converted to ratios to create the color gradient that is used in the heatmap calculations. Setting `minPixelIntensity` or `maxPixelIntensity`, after setting colorStops with values, removes the hard link between the color ramp and the pixel intensity values that were used to create it."}},required:["color"]},"colorUniqueValueInfo_schema.json":{title:"colorUniqueValueInfo",type:"object",description:"The colorUniqueValueInfo object matches a unique value with a specific color.",properties:{color:{$ref:"#/definitions/color_schema.json"},description:{type:"string",description:"String value used to describe the class."},label:{type:"string",description:"String value used to label the class."},values:{type:"array",description:"List of string values used to classify points.",items:{oneOf:[{type:"string"}]}}},required:["color","values"],additionalProperties:!1},"colormapInfo_schema.json":{title:"ColormapInfo",type:"object",description:"The colormap information used when rendering raster data.",properties:{color:{description:"The pixel color.",$ref:"#/definitions/color_schema.json"},label:{type:"string",description:"The label used for the pixel value."},value:{type:"number",description:"The raster pixel value."}},required:["color","value"],additionalProperties:!1},"uniqueValueClass_schema.json":{title:"Unique Value Class",type:"object",description:"The following is a list of properties found on the uniqueValueClass object. The uniqueValueClass object contains the symbology for grouped unique values in the renderer.",properties:{description:{type:"string",description:"String value used to describe the drawn symbol."},label:{type:"string",description:"String value used to label the drawn symbol."},symbol:{description:"An object used to display the value.",$ref:"#/definitions/symbol3D_schema.json"},values:{type:"array",description:"A list of unique values that should be rendered with the same symbol. Each item in the list represents a set of value combinations represented by the given symbol. The inner array must contain only one value if only field1 is specified, two values if field1 and field2 are specified, or three values if field1, field2, and field3 are specified. The inner arrays must not contain more than three values.",items:{type:"array",items:{type:"string"}}}},required:["symbol","values"],additionalProperties:!1},"voxelIsosurfaceStyle_schema.json":{title:"Voxel Isosurface Style",type:"object",description:"The isosurface style describes the value and coloring of the isosurface. For example, for a given variable temperature you can define up to four isosurfaces based on a temperature value.",properties:{color:{$ref:"#/definitions/color_schema.json"},enabled:{type:"boolean",description:"Determines if the isosurface should be shown or hidden.",default:!0},label:{type:"string",description:"Label for the isosurface."},value:{type:"number",description:"Value of the variable."}},required:["color","value"],additionalProperties:!1},"voxelTransferFunctionStyle_schema.json":{title:"Voxel Transfer Function Style",type:"object",description:"Defines the mapping between voxel values and color and transparency.",properties:{alphaStops:{type:"array",description:"Describes the transparency stops (transparency mapping).",items:{$ref:"#/definitions/voxelAlphaStop_schema.json"},minItems:2},colorStops:{type:"array",description:"Describes the color stops defining the color ramp.",items:{$ref:"#/definitions/voxelColorStop_schema.json"},minItems:2},interpolation:{type:"string",description:"Interpolation mode",enum:["linear","nearest"]},rangeFilter:{description:"Defines the range of voxels displayed. Voxels with values outside of this range will be discarded.",$ref:"#/definitions/voxelRangeFilter_schema.json"},stretchRange:{type:"array",description:"Describes the low and high point for value-to-color mapping.",items:{type:"number"},minItems:2,maxItems:2}},required:["stretchRange"],additionalProperties:!1},"voxelUniqueValue_schema.json":{title:"Voxel Unique Value",type:"object",description:"Describes the unique value of a variable with a discrete data type.",properties:{color:{$ref:"#/definitions/color_schema.json"},enabled:{type:"boolean",description:"Show or hide all voxels equal to this value.",default:!0},label:{type:"string",description:"Label for the unique value."},value:{type:"integer",description:"Unique value of the variable."}},required:["color","value"],additionalProperties:!1},"voxelDynamicSection_schema.json":{title:"Voxel Dynamic Section",type:"object",description:"A section is a plane through the voxel layer. A section can be moved by changing the position and orientation.",properties:{enabled:{type:"boolean",description:"Boolean defining section visibility.",default:!0},label:{type:"string",description:"The label for the dynamic section."},normal:{type:"array",description:"Normal vector to the plane in voxel space. Defining the orientation of the dynamic section.",items:{type:"number"},minItems:3,maxItems:3},point:{type:"array",description:"Point belonging to the section plane in voxel space. Defining the position of the dynamic section.",items:{type:"number"},minItems:3,maxItems:3}},required:["normal","point"],additionalProperties:!1},"sketchEdges_schema.json":{title:"Sketch Edges",type:"object",description:"The sketch edge rendering configuration of a symbol layer. Edges of type `sketch` are rendered with a hand-drawn look in mind.",properties:{color:{$ref:"#/definitions/color_schema.json"},extensionLength:{type:"number",description:"A size in points by which to extend edges beyond their original end points."},size:{type:"number",description:"Edge size in points, positive only",minimum:0},transparency:{type:"integer",description:"The value has to lie between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100},type:{type:"string",description:"The type of edge visualization.",enum:["sketch"]}},required:["color","type"],additionalProperties:!1},"solidEdges_schema.json":{title:"Solid Edges",type:"object",description:"The solid edge rendering configuration of a symbol layer. Edges of type `solid` are rendered in a single color, unaffected by scene lighting.",properties:{color:{$ref:"#/definitions/color_schema.json"},extensionLength:{type:"number",description:"A size in points by which to extend edges beyond their original end points."},size:{type:"number",description:"Edge size in points, positive only",minimum:0},transparency:{type:"integer",description:"The value has to lie between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100},type:{type:"string",description:"The type of edge visualization.",enum:["solid"]}},required:["color","type"],additionalProperties:!1},"colorRamp_algorithmic_schema.json":{title:"Color Ramp Algorithmic",description:"A colorRamp object is used to specify a range of colors that are applied to a group of symbols.",properties:{algorithm:{type:"string",description:"Algorithm used for calculating the ramp.",enum:["esriCIELabAlgorithm","esriHSVAlgorithm","esriLabLChAlgorithm"]},fromColor:{description:"Array representing the initial color to start the ramp from.",$ref:"#/definitions/color_schema.json"},toColor:{description:"Array representing the final color to end the ramp with.",$ref:"#/definitions/color_schema.json"},type:{type:"string",description:"Value indicating the type of colorRamp.",enum:["algorithmic"]}},additionalProperties:!1},"colorRamp_multipart_schema.json":{title:"Color Ramp Multipart",description:"A colorRamp object is used to specify a range of colors that are applied to a group of symbols.",properties:{colorRamps:{type:"array",description:"A multipart color ramp is defined by a list of constituent color ramps.",items:{$ref:"#/definitions/colorRamp_algorithmic_schema.json"}},type:{type:"string",description:"Value indicating the type of colorRamp.",enum:["multipart"]}},additionalProperties:!1},"classBreakInfo_authoringInfo_schema.json":{title:"AuthoringInfo classBreakInfo",type:"object",description:"The classBreaksInfo object provides information about the class breaks associated with the Relationship renderer.",properties:{maxValue:{type:"number",description:"A numeric value used to specify the maximum value for a break."},minValue:{type:"number",description:"A numeric value used to specify the minimum value for a break."}},additionalProperties:!1},"materialColorMixMode_schema.json":{title:"Material",type:"object",description:"The material used to shade the geometry, including colorMixMode options.",properties:{color:{$ref:"#/definitions/color_schema.json"},colorMixMode:{type:"string",description:"Controls how symbolLayer or visualVariable color is applied onto the underlying geometry color/texture. This property only applies to FillSymbol3DLayer within MeshSymbol3D.
    • `tint`: the feature's appearance (in terms of color) should be altered to match the symbol / visual variable color.
    • `replace`: the feature's color is replaced with the symbol / visual variable color.
    • `multiply`: the feature's color is multiplied with the symbol color.
    ",enum:["multiply","replace","tint"]},transparency:{type:"integer",description:"A value between `100` (full transparency) and `0` (full opacity). Ignored if no color is specified.",minimum:0,maximum:100}},additionalProperties:!1},"outline_schema.json":{title:"Outline",type:"object",description:"The outline of the symbol layer.",properties:{color:{$ref:"#/definitions/color_schema.json"},pattern:{$ref:"#/definitions/linePattern_schema.json"},patternCap:{type:"string",$ref:"#/definitions/lineCap_schema.json"},size:{type:"number",description:"Outline size in points, positive only",minimum:0},transparency:{type:"integer",description:"The value has to lie between `100` (full transparency) and `0` (full opacity).",minimum:0,maximum:100}},required:["color","size"],additionalProperties:!1},"polygonPattern_schema.json":{title:"Pattern",type:"object",description:"The pattern used to render the fill of the polygon (only applies to PolygonSymbol3D).",properties:{style:{type:"string",description:"String value representing predefined styles that can be set as polygon fills.",enum:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"]},type:{type:"string",description:"The type of pattern applied to the polygon fill.",enum:["style"]}},required:["style","type"],additionalProperties:!1},"iconSymbol3DLayer_resource_schema.json":{title:"IconSymbol3DLayer Resource",type:"object",description:"The shape (primitive) or image URL (href) used to visualize the features.",properties:{dataURI:{type:"string",description:"an image encoded as base64 string, starting with `data:image/`",pattern:"^data:image/(.|\\n|\\r)+$"},href:{description:"URL to the returned image.",oneOf:[{type:"string",description:"An absolute URL",pattern:"^https?://.+$"},{type:"string",description:"A relative path starting with ./",pattern:"^\\./.+$"}]},primitive:{type:"string",description:"Specifies the type of symbol used.",enum:["circle","cross","kite","square","triangle","x"]}},oneOf:[{required:["primitive"]},{required:["href"]},{required:["dataURI"]}],additionalProperties:!1},"lineCap_schema.json":{title:"Line cap",type:"string",description:"Shape of the tips at the start and end of each line geometry. This also applies to the tips of each pattern segment along the line.",enum:["butt","round","square"],default:"butt"},"lineMarker_schema.json":{title:"Line marker",type:"object",description:"Represents markers placed at the start and end of each line geometry, or both. Markers size is proportional to the width of the line.",properties:{color:{description:"An option to color the markers differently from the line. By default the markers inherit the line's color.",$ref:"#/definitions/color_schema.json"},placement:{type:"string",description:"Indicates where the marker is placed.",enum:["begin","begin-end","end"]},style:{type:"string",description:"Style of the marker.",enum:["arrow","circle","cross","diamond","square","x"]},type:{type:"string",description:"The type of marker applied to a line.",enum:["style"]}},required:["type"],additionalProperties:!1},"linePattern_schema.json":{title:"Line pattern",type:"object",description:"A pattern used to render a line.",properties:{style:{type:"string",description:"String value representing the pattern used to render a line.",enum:["dash","dash-dot","dash-dot-dot","dot","long-dash","long-dash-dot","null","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]},type:{type:"string",description:"The type of pattern applied to a line.",enum:["style"]}},required:["style","type"],additionalProperties:!1},"objectSymbol3DLayer_resource_schema.json":{title:"ObjectSymbol3DLayer Resource",type:"object",description:"The primitive shape (primitive) or external 3D model (href) used to visualize the points.",properties:{href:{oneOf:[{type:"string",description:"An absolute URL",pattern:"^https?://.+$"},{type:"string",description:"A relative path starting with ./",pattern:"^\\./.+$"}]},primitive:{type:"string",enum:["cone","cube","cylinder","diamond","invertedCone","sphere","tetrahedron"]}},oneOf:[{required:["primitive"]},{required:["href"]}],additionalProperties:!1},"pathSymbol3DLayer_schema.json":{title:"PathSymbol3DLayer",type:"object",description:"PathSymbol3DLayer renders polyline geometries by extruding a 2D profile along the line, resulting in visualizations like tubes, walls, etc.",properties:{anchor:{type:"string",description:"The position of the extrusion profile with respect to the polyline geometry.",enum:["bottom","center","top"],default:"center"},cap:{$ref:"#/definitions/pathCap_schema.json"},castShadows:{type:"boolean",description:"Boolean to control the shadow casting behaviour of the rendered geometries.",default:!0},enable:{type:"boolean"},height:{type:"number",description:"Path height in meters. If unspecified, it is equal to `width`.",minimum:0},join:{type:"string",description:"Shape of the intersection of two line segments.",enum:["bevel","miter","round"],default:"miter"},material:{$ref:"#/definitions/material_schema.json"},profile:{type:"string",description:"The shape which is extruded along the line.",enum:["circle","quad"],default:"circle"},profileRotation:{type:"string",description:"Specifies the axes about which the profile may be rotated at the joins. Constraining the rotation axes leads to a fixed orientation of the profile for the specified directions.",enum:["all","heading"],default:"all"},size:{type:"number",description:"Path size (diameter) in meters. Ignored if either `width` or `height` are present.",minimum:0},type:{type:"string",description:"Specifies the type of symbol used.",enum:["Path"]},width:{type:"number",description:"Path width in meters. If unspecified, it is equal to `height`.",minimum:0}},anyOf:[{required:["size","type"]},{required:["type","width"]},{required:["height","type"]}],additionalProperties:!1},"visualVariableLegendOptions_schema.json":{title:"Visual Variable Legend Options",type:"object",description:"Options available for the legend for visual variables.",properties:{customValues:{type:"array",items:{type:"number"}},showLegend:{type:"boolean",description:"Indicates whether to show the color/size/opacity ramp in the legend."},title:{type:"string",description:"The title of the legend."}}},"sizeStop_schema.json":{title:"sizeStop",description:"A `sizeStop` object describes the size of the symbol at various values of the expression.",properties:{label:{type:"string",description:"Value if a label is needed on the legend for a stop."},size:{type:"number",description:"Specifies the marker size to use for the specified value."},value:{type:"number",description:"The value to be mapped to a size."}},required:["size","value"],additionalProperties:!1},"transparencyStop_schema.json":{title:"transparencyStop",description:"The transparencyStop object defines the thematic opacity ramp in a sequence of stops. At least two stops are required. The stops must be listed in ascending order based on the value of the `value` property in each stop.",properties:{label:{type:"string",description:"A string value used to label the stop in the legend."},transparency:{type:"integer",description:"A numeric transparancy value for a stop ranging from 0-100, where 0 is opaque and 100 is 100% transparent.",minimum:0,maximum:100},value:{type:"number",description:"The pixel intensity value. Describes the pixel intensity value that the color should be associated with."}},required:["transparency","value"],additionalProperties:!1},"pointCloudFixedSizeAlgorithm_schema.json":{title:"PointCloud FixedSize Algorithm",type:"object",description:"Render points with fixed real world or screen space size.",properties:{size:{type:"number",description:"Symbol size in real world units or display unit"},type:{type:"string",enum:["pointCloudFixedSizeAlgorithm"]},useRealWorldSymbolSizes:{type:"boolean",description:" If true symbol size is in meters, display unit (pt) otherwise"}},required:["size","type"],additionalProperties:!1},"pointCloudSplatAlgorithm_schema.json":{title:"PointCloud Splat Algorithm",type:"object",description:"Render points using sizes depending on point density.",properties:{scaleFactor:{type:"number",description:"Scale factor to applied to the computed point size (in real world)"},type:{type:"string",enum:["pointCloudSplatAlgorithm"]}},required:["scaleFactor","type"],additionalProperties:!1},"voxelAlphaStop_schema.json":{title:"Voxel Alpha Stop",type:"object",description:"Defines transparency stop for a transfer function style.",properties:{alpha:{type:"number",description:"Opacity of the stop in [0,1]. 1 is fully opaque.",minimum:0,maximum:1},position:{type:"number",description:"Normalized position of the stop in [0,1].",minimum:0,maximum:1}},required:["alpha","position"],additionalProperties:!1},"voxelColorStop_schema.json":{title:"Voxel Color Stop",type:"object",description:"Defines color stop for a transfer function style.",properties:{color:{$ref:"#/definitions/color_schema.json"},position:{type:"number",description:"Normalized position of the stop in [0,1].",minimum:0,maximum:1}},required:["color","position"],additionalProperties:!1},"voxelRangeFilter_schema.json":{title:"Voxel Range Filter",type:"object",description:"Defines the range to filter values from. Voxel Values outside this range will be discarded.",properties:{enabled:{type:"boolean",description:"Determines if the range filter is enabled.",default:!1},range:{type:"array",description:"Defines the minimum and maximum values of the range. Data outside of the range will be discarded.",items:{type:"number"},minItems:2,maxItems:2}},required:["range"],additionalProperties:!1},"pathCap_schema.json":{title:"Path cap",type:"string",description:"Shape of the tips at the start and end of each path geometry.",enum:["butt","none","round","square"],default:"butt"}},Ye={title:"Building Scene Layer config on layer item",type:"object",properties:{layers:{type:"array",items:{properties:{activeFilterId:{type:"string",description:"specifies the id of the currently active filter"},filters:{type:"array",description:"A list of filters available for this layer. Overrides filters defined on the service.",items:{$ref:"#/definitions/buildingSceneLayer_filter_schema.json"},uniqueItems:!0},id:{type:"integer",description:"ID of the service layer."},layerDefinition:{type:"object",description:"Additional properties that can define an elevation offset for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{elevationInfo:{},maxScale:{},minScale:{}},additionalProperties:!1}]},listMode:{type:"string",description:"To show or hide the sublayer in the layer list. If the layer has sublayers, selecting `hide-children` will hide them in the layer list.",enum:["hide","hide-children","show"],default:"show"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},sublayers:{type:"array",description:"An array of objects specifying overrides for building scene layer sublayers",items:{$ref:"#/definitions/buildingSceneLayer_sublayer_schema.json"},uniqueItems:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene",default:!0}},additionalProperties:!1}}},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema",definitions:Fe},Ze={title:"Integrated Mesh Layer config on layer item",type:"object",properties:{layers:{type:"array",items:{properties:{id:{type:"integer",description:"ID of the service layer."},layerDefinition:{type:"object",description:"A layerDefinition object defining the attribute schema and drawing information for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{elevationInfo:{},maxScale:{},minScale:{}},additionalProperties:!1}]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},modifications:{type:"string",description:"URL to modifications json file, typically stored in `ITEM/resources`. Content of the file follows the $ref:[Modifications schema](modifications_schema.json)."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene.",default:!0}},additionalProperties:!1}}},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema",definitions:Fe},Xe={title:"PointCloud Layer config on layer item",type:"object",properties:{layers:{type:"array",items:{properties:{disablePopup:{type:"boolean",description:"disablePopups allows a client to ignore popups defined by the service item."},id:{type:"integer",description:"ID of the service layer."},layerDefinition:{type:"object",description:"A layerDefinition object defining the attribute schema and drawing information for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{renderer:{},transparency:{}},additionalProperties:!1}]},elevationInfo:{},filters:{},maxScale:{},minScale:{}},additionalProperties:!1}]},listMode:{type:"string",description:"To show or hide the layer in the layer list",enum:["hide","show"],default:"show"},popupInfo:{description:"A popupInfo object defining the content of pop-up windows when you click a point.",$ref:"#/definitions/popupInfo_schema.json"},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible",default:!0}},additionalProperties:!1}}},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema",definitions:Fe},et={title:"Scene Layer config on layer item",type:"object",properties:{layers:{type:"array",items:{properties:{disablePopup:{type:"boolean",description:"disablePopups allows a client to ignore popups defined by the service item."},id:{type:"integer",description:"ID of the service layer."},layerDefinition:{type:"object",description:"A layerDefinition object defining the attribute schema and drawing information for the layer.",allOf:[{$ref:"#/definitions/layerDefinition_schema.json"},{properties:{definitionExpression:{},drawingInfo:{allOf:[{$ref:"#/definitions/drawingInfo_schema.json"},{properties:{labelingInfo:{},renderer:{},transparency:{}},additionalProperties:!1}]},elevationInfo:{},excludeObjectIds:{},featureReduction:{},floorInfo:{},maxScale:{},minScale:{},polygonFilter:{},rangeInfos:{}},additionalProperties:!1}]},listMode:{type:"string",description:"To show or hide layers in the layer list",enum:["hide","show"],default:"show"},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",minimum:0,maximum:1,default:1},popupInfo:{description:"A popupInfo object defining the content of pop-up windows when you click or query a feature.",$ref:"#/definitions/popupInfo_schema.json"},screenSizePerspective:{type:"boolean",description:"Apply [perspective scaling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled) to screen-size symbols.",default:!0},showLabels:{type:"boolean",description:"If the layer has a labelingInfo property then labels show on the scene only if the showLabels property it true.",default:!1},showLegend:{type:"boolean",description:"Boolean value indicating whether to display the layer in the legend. Default value is `true`.",default:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web scene",default:!0}},additionalProperties:!1}}},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema",definitions:Fe};function it(A,$=5){if(function rt(A){return null!=(A&&A.allowedValues)}(A.params)){let C=A.params.allowedValues;if(C){if(C=C.map(e=>JSON.stringify(e)),C.length>$){const e="("+(C.length-$)+" more...)";C=C.slice(0,$),C.push(e)}A.message="should be equal to one of: "+C.join(", ")}}else(function at(A){return null!=(A&&A.additionalProperty)})(A.params)&&(A.message="should NOT have additional property: "+A.params.additionalProperty);return A}const Be=new Je({allErrors:!0,extendRefs:!0});function nt(A,$){return Be.validate(function ot(A){switch(A){case"building-scene":return Ye;case"integrated-mesh":return Ze;case"point-cloud":return Xe;case"scene":return et;default:throw new He.Z("portalitemlayertype:unknown","Can not validate against unknown PortalItemLayerType.")}}($),A),function tt(A,$=10){const C={};let e=A.map(it).map((l,t)=>({e:l,i:t})).sort(({e:l,i:t},{e:i,i:m})=>{const h=l.dataPath?l.dataPath.split(".").length:0,j=i.dataPath?i.dataPath.split(".").length:0;return h===j?t-m:j-h}).map(({e:l})=>`${l.dataPath?l.dataPath+": ":""}${l.message}`).filter(l=>{const t=!C[l];return C[l]=!0,t});if(e.length>$){const l="("+(e.length-$)+" more...)";e=e.slice(0,$),e.push(l)}return e}(Be.errors||[])}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5508.bff4656504bccb5b.js b/apps/n/porrtal-io-app/public/angular/5508.bff4656504bccb5b.js deleted file mode 100644 index 58cca214..00000000 --- a/apps/n/porrtal-io-app/public/angular/5508.bff4656504bccb5b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5508],{55508:(y,s,n)=>{n.r(s),n.d(s,{t:()=>f});var u,h,_,d=n(1719),t={exports:{}};u=t,void 0!==(_=t.exports,Object.defineProperty(_,"__esModule",{value:!0}),h=void(_.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u0e04.\u0e28.",_era_bc:"\u0e01\u0e48\u0e2d\u0e19 \u0e04.\u0e28.",A:"a",P:"p",AM:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",PM:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07","A.M.":"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07","P.M.":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",January:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21",February:"\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c",March:"\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21",April:"\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19",May:"\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21",June:"\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19",July:"\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21",August:"\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21",September:"\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19",October:"\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21",November:"\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19",December:"\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21",Jan:"\u0e21.\u0e04.",Feb:"\u0e01.\u0e1e.",Mar:"\u0e21\u0e35.\u0e04.",Apr:"\u0e40\u0e21.\u0e22.","May(short)":"\u0e1e.\u0e04.",Jun:"\u0e21\u0e34.\u0e22.",Jul:"\u0e01.\u0e04.",Aug:"\u0e2a.\u0e04.",Sep:"\u0e01.\u0e22.",Oct:"\u0e15.\u0e04.",Nov:"\u0e1e.\u0e22.",Dec:"\u0e18.\u0e04.",Sunday:"\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c",Monday:"\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c",Tuesday:"\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23",Wednesday:"\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18",Thursday:"\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35",Friday:"\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c",Saturday:"\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c",Sun:"\u0e2d\u0e32.",Mon:"\u0e08.",Tue:"\u0e2d.",Wed:"\u0e1e.",Thu:"\u0e1e\u0e24.",Fri:"\u0e28.",Sat:"\u0e2a.",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"\u0e02\u0e22\u0e32\u0e22",Play:"\u0e40\u0e25\u0e48\u0e19",Stop:"\u0e2b\u0e22\u0e38\u0e14",Legend:"\u0e04\u0e33\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e2a\u0e31\u0e0d\u0e25\u0e31\u0e01\u0e29\u0e13\u0e4c","Click, tap or press ENTER to toggle":"",Loading:"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e42\u0e2b\u0e25\u0e14",Home:"\u0e2b\u0e19\u0e49\u0e32\u0e2b\u0e25\u0e31\u0e01",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u0e1e\u0e34\u0e21\u0e1e\u0e4c",Image:"\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e",Data:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25",Print:"\u0e1e\u0e34\u0e21\u0e1e\u0e4c","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u0e08\u0e32\u0e01 %1 \u0e16\u0e36\u0e07 %2","From %1":"\u0e08\u0e32\u0e01 %1","To %1":"\u0e16\u0e36\u0e07 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(a,_){for(var r=0;r<_.length;r++){const e=_[r];if("string"!=typeof e&&!Array.isArray(e))for(const o in e)if("default"!==o&&!(o in a)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5566.352483ad5bf1bae8.js b/apps/n/porrtal-io-app/public/angular/5566.352483ad5bf1bae8.js deleted file mode 100644 index f58b0764..00000000 --- a/apps/n/porrtal-io-app/public/angular/5566.352483ad5bf1bae8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5566],{15566:(T,i,t)=>{t.r(i),t.d(i,{FeatureTileTree3DDebugger:()=>_});var r=t(17626),n=(t(29132),t(72392)),l=t(32917),a=t(77712),d=(t(85931),t(90912),t(76898)),E=t(17760),c=t(73187),g=t(37118);let _=class extends c.q{constructor(s){super(s),this._watchUpdatingTracking=new E.t,this._handles=new n.Z}get updating(){return this._watchUpdatingTracking?.updating??!1}initialize(){const{featureTiles:s}=this.view;this._handles.add(s.addClient()),this._watchUpdatingTracking.addOnCollectionChange(()=>s?.tiles,()=>this.update(),l.nn)}destroy(){this._handles&&(this._handles.destroy(),this._handles=null),this._watchUpdatingTracking.destroy()}getTiles(){const s=e=>{const[o,h,p]=e.lij;return g.Z.fromExtent(this.view.featureTiles.tilingScheme.getExtentGeometry(o,h,p))};return this.view.featureTiles.tiles.toArray().sort((e,o)=>e.loadPriority-o.loadPriority).map(e=>({...e,geometry:s(e)}))}};(0,r._)([(0,a.Cb)()],_.prototype,"_watchUpdatingTracking",void 0),(0,r._)([(0,a.Cb)()],_.prototype,"updating",null),(0,r._)([(0,a.Cb)()],_.prototype,"view",void 0),_=(0,r._)([(0,d.j)("esri.views.3d.layers.support.FeatureTileTree3DDebugger")],_)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5625.4ca0272d63a5b0b7.js b/apps/n/porrtal-io-app/public/angular/5625.4ca0272d63a5b0b7.js deleted file mode 100644 index 8d24760e..00000000 --- a/apps/n/porrtal-io-app/public/angular/5625.4ca0272d63a5b0b7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5625],{85625:(I,c,o)=>{o.r(c),o.d(c,{default:()=>A});var a=o(15861),s=o(17626),y=(o(29132),o(26584)),v=o(62208),g=o(10699),S=o(21726),i=o(77712),u=(o(85931),o(90912),o(68653)),p=o(76898),f=o(80415),O=o(8314),h=o(47996),x=o(59289),N=o(17253),T=o(2004);let d=class extends h.Z{constructor(e){var t;super(e),t=this,this.type="csv",this.refresh=(0,g.Ds)(function(){var r=(0,a.Z)(function*(l){yield t.load();const{extent:F,timeExtent:m}=yield t._connection.invoke("refresh",l);return t.sourceJSON.extent=F,m&&(t.sourceJSON.timeInfo.timeExtent=[m.start,m.end]),{dataChanged:!0,updates:{extent:t.sourceJSON.extent,timeInfo:t.sourceJSON.timeInfo}}});return function(l){return r.apply(this,arguments)}}())}load(e){const t=(0,v.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}openPorts(){var e=this;return(0,a.Z)(function*(){return yield e.load(),e._connection.openPorts()})()}queryFeatures(e,t={}){var r=this;return(0,a.Z)(function*(){yield r.load(t);const l=yield r._connection.invoke("queryFeatures",e?e.toJSON():null,t);return N.default.fromJSON(l)})()}queryFeaturesJSON(e,t={}){var r=this;return(0,a.Z)(function*(){return yield r.load(t),r._connection.invoke("queryFeatures",e?e.toJSON():null,t)})()}queryFeatureCount(e,t={}){var r=this;return(0,a.Z)(function*(){return yield r.load(t),r._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)})()}queryObjectIds(e,t={}){var r=this;return(0,a.Z)(function*(){return yield r.load(t),r._connection.invoke("queryObjectIds",e?e.toJSON():null,t)})()}queryExtent(e,t={}){var r=this;return(0,a.Z)(function*(){yield r.load(t);const l=yield r._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:l.count,extent:T.Z.fromJSON(l.extent)}})()}querySnapping(e,t={}){var r=this;return(0,a.Z)(function*(){return yield r.load(t),r._connection.invoke("querySnapping",e,t)})()}_startWorker(e){var t=this;return(0,a.Z)(function*(){t._connection=yield(0,x.bA)("CSVSourceWorker",{strategy:(0,O.Z)("feature-layers-workers")?"dedicated":"local",signal:e});const{url:r,delimiter:l,fields:F,latitudeField:m,longitudeField:L,spatialReference:J,timeInfo:U}=t.loadOptions,b=yield t._connection.invoke("load",{url:r,customParameters:t.customParameters,parsingOptions:{delimiter:l,fields:F?.map(Q=>Q.toJSON()),latitudeField:m,longitudeField:L,spatialReference:J?.toJSON(),timeInfo:U?.toJSON()}},{signal:e});t.locationInfo=b.locationInfo,t.sourceJSON=b.layerDefinition,t.delimiter=b.delimiter})()}};(0,s._)([(0,i.Cb)()],d.prototype,"type",void 0),(0,s._)([(0,i.Cb)()],d.prototype,"loadOptions",void 0),(0,s._)([(0,i.Cb)()],d.prototype,"customParameters",void 0),(0,s._)([(0,i.Cb)()],d.prototype,"locationInfo",void 0),(0,s._)([(0,i.Cb)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,i.Cb)()],d.prototype,"delimiter",void 0),d=(0,s._)([(0,p.j)("esri.layers.graphics.sources.CSVSource")],d);var j=o(56554),C=o(96854),Z=o(29840),M=o(65234);function R(e,t){throw new y.Z(t,`CSVLayer (title: ${e.title}, id: ${e.id}) cannot be saved to a portal item`)}let n=class extends f.default{constructor(...e){super(...e),this.geometryType="point",this.capabilities=(0,j.MS)(!1,!1),this.delimiter=null,this.editingEnabled=!1,this.fields=null,this.latitudeField=null,this.locationType="coordinates",this.longitudeField=null,this.operationalLayerType="CSV",this.outFields=["*"],this.path=null,this.spatialReference=M.Z.WGS84,this.source=null,this.type="csv"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){var t=this;const r=(0,v.pC)(e)?e.signal:null,l=this.loadFromPortal({supportedTypes:["CSV"],supportsData:!1},e).catch(g.r9).then((0,a.Z)(function*(){return t.initLayerProperties(yield t.createGraphicsSource(r))}));return this.addResolvingPromise(l),Promise.resolve(this)}get isTable(){return this.loaded&&null==this.geometryType}readWebMapLabelsVisible(e,t){return null!=t.showLabels?t.showLabels:!!(t.layerDefinition&&t.layerDefinition.drawingInfo&&t.layerDefinition.drawingInfo.labelingInfo)}set url(e){if(!e)return void this._set("url",e);const t=(0,S.mN)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}createGraphicsSource(e){var t=this;return(0,a.Z)(function*(){const r=new d({loadOptions:{delimiter:t.delimiter,fields:t.fields,latitudeField:t.latitudeField,longitudeField:t.longitudeField,spatialReference:t.spatialReference,timeInfo:t.timeInfo,url:t.url},customParameters:t.customParameters});return t._set("source",r),yield r.load({signal:e}),t.read({locationInfo:r.locationInfo,columnDelimiter:r.delimiter},{origin:"service",url:t.parsedUrl}),r})()}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(C.Z.from(e)||this.createQuery())).then(r=>{if(r?.features)for(const l of r.features)l.layer=l.sourceLayer=this;return r})}queryObjectIds(e,t){return this.load().then(()=>this.source.queryObjectIds(C.Z.from(e)||this.createQuery()))}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(C.Z.from(e)||this.createQuery()))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(C.Z.from(e)||this.createQuery()))}read(e,t){super.read(e,t),t&&"service"===t.origin&&this.revert(["latitudeField","longitudeField"],"service")}write(e,t){return super.write(e,{...t,writeLayerSchema:!0})}clone(){throw new y.Z("csv-layer:clone",`CSVLayer (title: ${this.title}, id: ${this.id}) cannot be cloned`)}save(e){var t=this;return(0,a.Z)(function*(){return R(t,"csv-layer:save")})()}saveAs(e,t){var r=this;return(0,a.Z)(function*(){return R(r,"csv-layer:save-as")})()}hasDataChanged(){var e=this;return(0,a.Z)(function*(){try{const{dataChanged:t,updates:r}=yield e.source.refresh(e.customParameters);return(0,v.pC)(r)&&e.read(r,{origin:"service",url:e.parsedUrl,ignoreDefaults:!0}),t}catch{}return!1})()}_verifyFields(){}_verifySource(){}_hasMemorySource(){return!1}};(0,s._)([(0,i.Cb)({readOnly:!0,json:{read:!1,write:!1}})],n.prototype,"capabilities",void 0),(0,s._)([(0,i.Cb)({type:[","," ",";","|","\t"],json:{read:{source:"columnDelimiter"},write:{target:"columnDelimiter",ignoreOrigin:!0}}})],n.prototype,"delimiter",void 0),(0,s._)([(0,i.Cb)({readOnly:!0,type:Boolean,json:{origins:{"web-scene":{read:!1,write:!1}}}})],n.prototype,"editingEnabled",void 0),(0,s._)([(0,i.Cb)({json:{read:{source:"layerDefinition.fields"},write:{target:"layerDefinition.fields"}}})],n.prototype,"fields",void 0),(0,s._)([(0,i.Cb)({type:Boolean,readOnly:!0})],n.prototype,"isTable",null),(0,s._)([(0,u.r)("web-map","labelsVisible",["layerDefinition.drawingInfo.labelingInfo","showLabels"])],n.prototype,"readWebMapLabelsVisible",null),(0,s._)([(0,i.Cb)({type:String,json:{read:{source:"locationInfo.latitudeFieldName"},write:{target:"locationInfo.latitudeFieldName",ignoreOrigin:!0}}})],n.prototype,"latitudeField",void 0),(0,s._)([(0,i.Cb)({type:["show","hide"]})],n.prototype,"listMode",void 0),(0,s._)([(0,i.Cb)({type:["coordinates"],json:{read:{source:"locationInfo.locationType"},write:{target:"locationInfo.locationType",ignoreOrigin:!0,isRequired:!0}}})],n.prototype,"locationType",void 0),(0,s._)([(0,i.Cb)({type:String,json:{read:{source:"locationInfo.longitudeFieldName"},write:{target:"locationInfo.longitudeFieldName",ignoreOrigin:!0}}})],n.prototype,"longitudeField",void 0),(0,s._)([(0,i.Cb)({type:["CSV"]})],n.prototype,"operationalLayerType",void 0),(0,s._)([(0,i.Cb)()],n.prototype,"outFields",void 0),(0,s._)([(0,i.Cb)({type:String,json:{origins:{"web-scene":{read:!1,write:!1}},read:!1,write:!1}})],n.prototype,"path",void 0),(0,s._)([(0,i.Cb)({json:{read:!1},cast:null,type:d,readOnly:!0})],n.prototype,"source",void 0),(0,s._)([(0,i.Cb)({json:{read:!1},value:"csv",readOnly:!0})],n.prototype,"type",void 0),(0,s._)([(0,i.Cb)({json:{read:Z.r,write:{isRequired:!0,ignoreOrigin:!0,writer:Z.w}}})],n.prototype,"url",null),n=(0,s._)([(0,p.j)("esri.layers.CSVLayer")],n);const A=n},87757:(I,c,o)=>{o.d(c,{g:()=>a});const a={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},56554:(I,c,o)=>{o.d(c,{Dm:()=>i,Hq:()=>D,MS:()=>E,bU:()=>v});var a=o(8314),s=o(58817),P=o(87757),y=o(24837);function v(u){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===u||"esriGeometryMultipoint"===u?y.I4:"esriGeometryPolyline"===u?y.ET:y.lF}}}const g=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let S=1;function i(u,p){if((0,a.Z)("esri-csp-restrictions"))return()=>({[p]:null,...u});try{let f=`this.${p} = null;`;for(const h in u)f+=`this${g.test(h)?`.${h}`:`["${h}"]`} = ${JSON.stringify(u[h])};`;const O=new Function(`\n return class AttributesClass$${S++} {\n constructor() {\n ${f};\n }\n }\n `)();return()=>new O}catch{return()=>({[p]:null,...u})}}function D(u={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.d9)(u)}}]}function E(u,p){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:u},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:p,supportsDelete:p,supportsEditing:p,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:p,supportsExceedsLimitStatistics:!0},query:P.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:p,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5627.896d0474a7309b2b.js b/apps/n/porrtal-io-app/public/angular/5627.896d0474a7309b2b.js deleted file mode 100644 index 7d260642..00000000 --- a/apps/n/porrtal-io-app/public/angular/5627.896d0474a7309b2b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5627],{95627:(t,a,_)=>{_.r(a),_.d(a,{default:()=>D});var E=_(17626),o=(_(63290),_(90912),_(85931),_(26584),_(8314),_(76898)),r=_(69759);let s=class extends r.Z{constructor(){super(...arguments),this.type="base-dynamic-3d"}};s=(0,E._)([(0,o.j)("esri.views.3d.layers.BaseDynamicLayerView3D")],s);const D=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5645.850723eb8d4df31f.js b/apps/n/porrtal-io-app/public/angular/5645.850723eb8d4df31f.js deleted file mode 100644 index 92e2a69f..00000000 --- a/apps/n/porrtal-io-app/public/angular/5645.850723eb8d4df31f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5645],{14259:(B,U,t)=>{t.d(U,{q:()=>M});var p,T,A={exports:{}};p=A,void 0!==(T=function(){function d(e,r,_,s,i){for(;s>_;){if(s-_>600){var n=s-_+1,a=r-_+1,h=Math.log(n),u=.5*Math.exp(2*h/3),m=.5*Math.sqrt(h*u*(n-u)/n)*(a-n/2<0?-1:1);d(e,r,Math.max(_,Math.floor(r-a*u/n+m)),Math.min(s,Math.floor(r+(n-a)*u/n+m)),i)}var f=e[r],R=_,O=s;for(P(e,_,r),i(e[s],f)>0&&P(e,_,s);R0;)O--}0===i(e[_],f)?P(e,_,O):P(e,++O,s),O<=r&&(_=O+1),r<=O&&(s=O-1)}}function P(e,r,_){var s=e[r];e[r]=e[_],e[_]=s}function I(e,r){return er?1:0}return function c(e,r,_,s,i){d(e,r,_||0,s||e.length-1,i||I)}}())&&(p.exports=T);const M=A.exports},77044:(B,U,t)=>{t.d(U,{Y:()=>T});var p=t(62208);function E(e,r){return e?r?4:3:r?3:2}function T(e,r,_,s,i){if((0,p.Wi)(r)||!r.lengths.length)return null;const n="upperLeft"===i?.originPosition?-1:1;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const a=e.coords,h=[],u=_?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:m,coords:f}=r,R=E(_,s);let O=0;for(const y of m){const D=A(u,f,O,y,_,s,n);D&&h.push(D),O+=y*R}if(h.sort((y,D)=>{let v=n*y[2]-n*D[2];return 0===v&&_&&(v=y[4]-D[4]),v}),h.length){let y=6*h[0][2];a[0]=h[0][0]/y,a[1]=h[0][1]/y,_&&(y=6*h[0][4],a[2]=0!==y?h[0][3]/y:0),(a[0]u[1]||a[1]u[3]||_&&(a[2]u[5]))&&(a.length=0)}if(!a.length){const y=r.lengths[0]?function M(e,r,_,s,i){const n=E(s,i);let a=r,h=r+n,u=0,m=0,f=0,R=0;for(let O=0,y=_-1;O0?s?[m/u,f/u,R/u]:[m/u,f/u]:_>0?s?[e[r],e[r+1],e[r+2]]:[e[r],e[r+1]]:null}(f,0,m[0],_,s):null;if(!y)return null;a[0]=y[0],a[1]=y[1],_&&y.length>2&&(a[2]=y[2])}return e}function A(e,r,_,s,i,n,a=1){const h=E(i,n);let u=_,m=_+h,f=0,R=0,O=0,y=0,D=0;for(let L=0,j=s-1;Le[1]&&(e[1]=o),le[3]&&(e[3]=l),i&&(ge[5]&&(e[5]=g))}if(y*a>0&&(y*=-1),D*a>0&&(D*=-1),!y)return null;const v=[f,R,.5*y];return i&&(v[3]=O,v[4]=.5*D),v}function c(e,r,_,s){const i=_-e,n=s-r;return Math.sqrt(i*i+n*n)}function d(e,r,_,s,i,n){const a=s-e,h=i-r,u=n-_;return Math.sqrt(a*a+h*h+u*u)}function P(e,r,_,s){return[e+.5*(_-e),r+.5*(s-r)]}function I(e,r,_,s,i,n){return[e+.5*(s-e),r+.5*(i-r),_+.5*(n-_)]}},19702:(B,U,t)=>{t.d(U,{A:()=>r});var p=t(15861),E=t(17626),T=t(54024),A=t(10699),M=t(32917),c=t(77712),I=(t(85931),t(90912),t(76898)),e=t(36947);const r=_=>{let s=class extends _{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(i){super.postscript(i),(0,e.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var i=this;return(0,p.Z)(function*(){const n=new AbortController,a=n.signal;i.handles.add((0,T.kB)(()=>n.abort())),yield(0,M.N1)(()=>i.view.defaultsFromMap?.heightModelInfoReady,a),(0,A.k_)(a);const h=(0,e.Wt)(i.layer,i.view.heightModelInfo,i.supportsHeightUnitConversion);if(h)throw h})()}canResume(){const i=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!i||!i.minScale||!i.maxScale||i.minScale>=i.maxScale)}getSuspendInfo(){const i=super.getSuspendInfo(),n=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return n&&n.minScale&&n.maxScale&&n.minScale{t.r(U),t.d(U,{default:()=>j});var p=t(15861),E=t(17626),T=t(46160),A=t(46882),M=t(62208),c=t(32917),d=t(77712),e=(t(85931),t(90912),t(76898)),r=t(99683),_=t(58924),s=t(53753),i=t(719),n=t(17718),a=t(29739),h=t(69583),u=t(19702),m=t(32400),f=t(89765),R=t(36967),O=t(42743),y=t(45611);let v=class extends((0,u.A)(y.Z)){constructor(){super(...arguments),this.type="route-3d",this.loadedGraphics=new R.g,this._byObjectID=new Map,this.slicePlaneEnabled=!1,this.fullExtentInLocalViewSpatialReference=null}initialize(){this._set("processor",new m.D({owner:this,scaleVisibilityEnabled:!0,frustumVisibilityEnabled:!0})),this.addResolvingPromise(this.processor.initializePromise),this.updatingHandles.addOnCollectionChange(()=>this._routeItems,o=>this._routeItemsChanged(o),c.nn),this.addResolvingPromise((0,f.E)(this).then(o=>this.fullExtentInLocalViewSpatialReference=o)),this.handles.add((0,c.gx)(()=>this.view?.basemapTerrain?.ready,()=>()=>this.notifyChange("updating"),{once:!0}))}destroy(){this.handles.removeAll(),this.updatingHandles.removeAll(),this._set("processor",(0,M.SC)(this.processor)),this._get("_routeItems")?.destroy()}get _routeItems(){return new A.Z({getCollections:()=>[this.layer.pointBarriers,this.layer.polygonBarriers,this.layer.polylineBarriers,this.layer.stops,this.layer.directionLines,this.layer.directionPoints,(0,M.pC)(this.layer.routeInfo)?new T.Z([this.layer.routeInfo]):null]})}_routeItemsChanged(o){if(o.removed.length){this.loadedGraphics.removeMany(o.removed.map(l=>{const g=this._byObjectID.get(l);return this._byObjectID.delete(l),g}));for(const l of o.removed)this.handles.remove(l)}if(o.added.length){this.loadedGraphics.addMany(o.added.map(l=>{const g=l.toGraphic();return this._byObjectID.set(l,g),g}));for(const l of o.added)this.handles.add([(0,c.YP)(()=>l.geometry,(g,C)=>{this._updateGraphic(l,"geometry",g,C)}),(0,c.YP)(()=>l.symbol,(g,C)=>{this._updateGraphic(l,"symbol",g,C)})],l)}}get legendEnabled(){return this.canResume()&&!this.processor?.frustumVisibilitySuspended}getSuspendInfo(){const o=super.getSuspendInfo();return o.outsideScaleRange=this.processor?.scaleVisibilitySuspended??!1,o.outsideOfView=this.processor?.frustumVisibilitySuspended??!1,o}fetchPopupFeatures(o,l){return(0,p.Z)(function*(){return(0,M.pC)(l)?l.clientGraphics:null})()}getHit(o){return this.processor.getHit(o)}whenGraphicBounds(o,l){return this.processor.whenGraphicBounds(o,l)}computeAttachmentOrigin(o,l){return this.processor?.computeAttachmentOrigin(o,l)}getSymbolLayerSize(o,l){return this.processor.getSymbolLayerSize(o,l)}queryGraphics(){var o=this;return(0,p.Z)(function*(){return new T.Z(o.loadedGraphics.toArray())})()}maskOccludee(o){return this.processor.maskOccludee(o)}highlight(o){if(function D(o){return o instanceof r.Z||o instanceof _.Z||o instanceof s.Z||o instanceof i.Z||o instanceof n.Z||o instanceof a.Z||o instanceof h.Z}(o)){const l=this._byObjectID.get(o);return this.processor.highlight(l)}return this.processor.highlight(o)}get updatePolicy(){return this.processor?.graphicsCore.effectiveUpdatePolicy||O.jq.SYNC}canResume(){return super.canResume()&&!this.processor?.scaleVisibilitySuspended}isUpdating(){return!(!this.processor?.updating&&this.view?.basemapTerrain?.ready)}get performanceInfo(){return{displayedNumberOfFeatures:this.loadedGraphics.length,maximumNumberOfFeatures:-1,totalNumberOfFeatures:-1,nodes:0,core:null,updating:this.updating,elevationUpdating:this.processor?.elevationAlignment.updating??!1,visibilityFrustum:!this.processor?.frustumVisibilitySuspended}}_updateGraphic(o,l,g,C){const W=this._byObjectID.get(o);W[l]=g,L.graphic=W,L.property=l,L.oldValue=C,L.newValue=g,this.processor?.graphicsCore.graphicUpdateHandler(L)}};(0,E._)([(0,d.Cb)()],v.prototype,"_routeItems",null),(0,E._)([(0,d.Cb)()],v.prototype,"loadedGraphics",void 0),(0,E._)([(0,d.Cb)({readOnly:!0})],v.prototype,"legendEnabled",null),(0,E._)([(0,d.Cb)()],v.prototype,"layer",void 0),(0,E._)([(0,d.Cb)({readOnly:!0})],v.prototype,"processor",void 0),(0,E._)([(0,d.Cb)({type:Boolean})],v.prototype,"slicePlaneEnabled",void 0),v=(0,E._)([(0,e.j)("esri.views.3d.layers.RouteLayerView3D")],v);const L={graphic:null,property:null,oldValue:null,newValue:null},j=v},89765:(B,U,t)=>{t.d(U,{E:()=>A});var p=t(62208),E=t(46367),T=t(35082);function A(M){const c=M.view.spatialReference,d=M.layer.fullExtent,P=(0,p.pC)(d)&&d.spatialReference;if((0,p.Wi)(d)||!P)return Promise.resolve(null);if(P.equals(c))return Promise.resolve(d.clone());const I=(0,E.iV)(d,c);return(0,p.pC)(I)?Promise.resolve(I):M.view.state.isLocal?(0,T.projectGeometry)(d,c,M.layer.portalItem).then(e=>!M.destroyed&&e?e:void 0).catch(()=>null):Promise.resolve(null)}},36967:(B,U,t)=>{t.d(U,{g:()=>A});var p=t(61885),E=t(73234),T=t(28862);class A extends p.Z{constructor(){super(...arguments),this._set=new Set}clear(){if(this._set.size>0){const c=this.toArray();this._set.clear(),this.emit("after-changes",{type:E.y.REMOVE}),this.emit("change",{added:[],removed:c})}}get length(){return this._set.size}addMany(c){if(0!==c.length){for(const d of c)this._set.add(d);this.emit("after-changes",{type:E.y.ADD}),this.emit("change",{added:c,removed:[]})}}remove(c){this._set.delete(c)&&(this.emit("after-changes",{type:E.y.REMOVE}),this.emit("change",{added:[],removed:[c]}))}removeMany(c){const d=[];for(const P of c)this._set.delete(P)&&d.push(P);d.length>0&&(this.emit("after-changes",{type:E.y.REMOVE}),this.emit("change",{added:[],removed:d}))}toArray(){return[...this._set]}find(c){let d;return(0,T.f)(this._set,P=>!!c(P)&&(d=P,!0)),d}forEach(c){this._set.forEach(d=>c(d))}}},45611:(B,U,t)=>{t.d(U,{Z:()=>i});var p=t(17626),E=t(14517),T=t(61885),A=t(80542),M=t(61996),c=t(63290),d=t(62208),P=t(60330),I=t(77712),_=(t(85931),t(90912),t(76898));let s=class extends((0,A.p)((0,M.IG)((0,P.v)(T.Z.EventedMixin(E.Z))))){constructor(n){super(n),this.layer=null,this.parent=null}initialize(){this.when().catch(n=>{if("layerview:create-error"!==n.name){const a=this.layer&&this.layer.id||"no id",h=this.layer&&this.layer.title||"no title";c.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${h}', id: '${a}')`,n)}})}get fullOpacity(){return(0,d.Pt)(this.get("layer.opacity"),1)*(0,d.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(n){this._overrideIfSome("visible",n)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const n=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(n.viewNotReady=!0),this.layer&&this.layer.loaded||(n.layerNotLoaded=!0),this.visible||(n.layerInvisible=!0),n}isUpdating(){return!1}};(0,p._)([(0,I.Cb)()],s.prototype,"fullOpacity",null),(0,p._)([(0,I.Cb)()],s.prototype,"layer",void 0),(0,p._)([(0,I.Cb)()],s.prototype,"parent",void 0),(0,p._)([(0,I.Cb)({readOnly:!0})],s.prototype,"suspended",null),(0,p._)([(0,I.Cb)({readOnly:!0})],s.prototype,"suspendInfo",null),(0,p._)([(0,I.Cb)({readOnly:!0})],s.prototype,"legendEnabled",null),(0,p._)([(0,I.Cb)({type:Boolean,readOnly:!0})],s.prototype,"updating",null),(0,p._)([(0,I.Cb)({readOnly:!0})],s.prototype,"updatingProgress",null),(0,p._)([(0,I.Cb)()],s.prototype,"visible",null),(0,p._)([(0,I.Cb)()],s.prototype,"view",void 0),s=(0,p._)([(0,_.j)("esri.views.layers.LayerView")],s);const i=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5655.00cd85e6fd0ad5d2.js b/apps/n/porrtal-io-app/public/angular/5655.00cd85e6fd0ad5d2.js deleted file mode 100644 index 2a3eaa48..00000000 --- a/apps/n/porrtal-io-app/public/angular/5655.00cd85e6fd0ad5d2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5655],{35655:(E,s,_)=>{_.r(s),_.d(s,{build:()=>r.b}),_(52382),_(13934),_(78925),_(24255),_(58173),_(54120),_(62952),_(10109),_(33726),_(2166),_(69960),_(65787),_(17625),_(22355),_(44835),_(16396),_(95402);var r=_(66401)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5690.f5ccd8cec2c8d924.js b/apps/n/porrtal-io-app/public/angular/5690.f5ccd8cec2c8d924.js deleted file mode 100644 index 3ae7e4a6..00000000 --- a/apps/n/porrtal-io-app/public/angular/5690.f5ccd8cec2c8d924.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5690],{5690:(g,I,M)=>{M.r(I),M.d(I,{default:()=>N});const N="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjU2IDI1NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEuNSI+PHBhdGggZD0iTTEyOCA4YzY2LjIzIDAgMTIwIDUzLjc3IDEyMCAxMjAgMCA2Ni4yMy01My43NyAxMjAtMTIwIDEyMEM2MS43NyAyNDggOCAxOTQuMjMgOCAxMjggOCA2MS43NyA2MS43NyA4IDEyOCA4Wm0wIDhjNjEuODE0IDAgMTEyIDUwLjE4NiAxMTIgMTEycy01MC4xODYgMTEyLTExMiAxMTJTMTYgMTg5LjgxNCAxNiAxMjggNjYuMTg2IDE2IDEyOCAxNloiIHN0eWxlPSJmaWxsOnVybCgjYSk7c3Ryb2tlOiMwMDA7c3Ryb2tlLW9wYWNpdHk6LjU7c3Ryb2tlLXdpZHRoOi45NnB4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNS4zMzMgLTUuMzMzKSBzY2FsZSgxLjA0MTY3KSIvPjxwYXRoIGQ9Ik0xMjggOGM2Ni4yMyAwIDEyMCA1My43NyAxMjAgMTIwIDAgNjYuMjMtNTMuNzcgMTIwLTEyMCAxMjBDNjEuNzcgMjQ4IDggMTk0LjIzIDggMTI4IDggNjEuNzcgNjEuNzcgOCAxMjggOFptMCA0LjI5OGM2My44NTcgMCAxMTUuNzAyIDUxLjg0NSAxMTUuNzAyIDExNS43MDJTMTkxLjg1NyAyNDMuNzAyIDEyOCAyNDMuNzAyIDEyLjI5OCAxOTEuODU3IDEyLjI5OCAxMjggNjQuMTQzIDEyLjI5OCAxMjggMTIuMjk4WiIgc3R5bGU9ImZpbGw6dXJsKCNiKSIgdHJhbnNmb3JtPSJyb3RhdGUoMTgwIDEyOC41MzQgMTI4LjUzNCkgc2NhbGUoMS4wMDgzNCkiLz48Y2lyY2xlIGN4PSIxMjgiIGN5PSIxMjgiIHI9IjExMiIgc3R5bGU9ImZpbGw6dXJsKCNjKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUuMzMzIC01LjMzMykgc2NhbGUoMS4wNDE2NykiLz48cGF0aCBkPSJNMTI4IDIwYzkxLjg4NCAxLjgxMSAxMDcgODggMTA3IDg4cy00NS4xODYtMjgtMTA3LTI4LTEwNyAyOC0xMDcgMjggMjEuMjQ0LTg5LjY5IDEwNy04OFoiIHN0eWxlPSJmaWxsOnVybCgjZCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC01LjMzMyAtNS4zMzMpIHNjYWxlKDEuMDQxNjcpIi8+PHBhdGggZD0iTTEyOCAxMzEuNTZWMTU4IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDouOTZweDtzdHJva2UtbGluZWNhcDpidXR0IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCAxMzMuMDc0IDEyNy43NCkgc2NhbGUoMS4wNDE2NykiLz48cGF0aCBkPSJNMTI4IDEyOS42NHYyNi40NCIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6Ljk2cHg7c3Ryb2tlLWxpbmVjYXA6YnV0dCIgdHJhbnNmb3JtPSJyb3RhdGUoOTAgMTUwLjA3NCAxNDQuNzQpIHNjYWxlKDEuMDQxNjcpIi8+PHBhdGggZD0iTTEyOCAxMzEuNTZWMTU4IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDouOTZweDtzdHJva2UtbGluZWNhcDpidXR0IiB0cmFuc2Zvcm09InJvdGF0ZSgxODAgMTMwLjY2OCAxMzAuNDA3KSBzY2FsZSgxLjA0MTY3KSIvPjxwYXRoIGQ9Ik0xMjggMTI5LjY0djI2LjQ0IiBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDouOTZweDtzdHJva2UtbGluZWNhcDpidXR0IiB0cmFuc2Zvcm09InJvdGF0ZSgxODAgMTMwLjY2OCAxNDcuNDA3KSBzY2FsZSgxLjA0MTY3KSIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjAiIHkxPSIwIiB4Mj0iMSIgeTI9IjAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0icm90YXRlKDQ3LjYxNyAtMjEuODggNzUuMTU2KSBzY2FsZSgyMzcuODM1KSI+PHN0b3Agb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjp3aGl0ZTtzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6I2RhZGFkYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJyb3RhdGUoNDcuNjE3IC0yMS44OCA3NS4xNTYpIHNjYWxlKDIzNy44MzUpIj48c3RvcCBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOndoaXRlO3N0b3Atb3BhY2l0eToxIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdHlsZT0ic3RvcC1jb2xvcjojOWE5YTlhO3N0b3Atb3BhY2l0eToxIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgxPSIwIiB5MT0iMCIgeDI9IjEiIHkyPSIwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InJvdGF0ZSgtOTAgMTA0IC0yNCkgc2NhbGUoNjAuMDIzNikiPjxzdG9wIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6d2hpdGU7c3RvcC1vcGFjaXR5Oi4wNSIvPjxzdG9wIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6d2hpdGU7c3RvcC1vcGFjaXR5Oi40Ii8+PC9saW5lYXJHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImMiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMTY1IC0xIDEgMTY1IDEyOCAyMTEpIj48c3RvcCBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOndoaXRlO3N0b3Atb3BhY2l0eTouNDQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0eWxlPSJzdG9wLWNvbG9yOndoaXRlO3N0b3Atb3BhY2l0eTowIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PC9zdmc+"}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5795.2241bfa7626df436.js b/apps/n/porrtal-io-app/public/angular/5795.2241bfa7626df436.js deleted file mode 100644 index e97e09a7..00000000 --- a/apps/n/porrtal-io-app/public/angular/5795.2241bfa7626df436.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5795],{15795:(E,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(2166),_(65787),_(17625),_(22355),_(16396);var a=_(81768)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5810.0f6802d70f46c7b4.js b/apps/n/porrtal-io-app/public/angular/5810.0f6802d70f46c7b4.js deleted file mode 100644 index 0d1576f3..00000000 --- a/apps/n/porrtal-io-app/public/angular/5810.0f6802d70f46c7b4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5810],{75810:(S,c,e)=>{e.r(c),e.d(c,{default:()=>U});var d=e(15861),s=e(17626),y=e(84792),v=e(26584),p=e(62208),E=e(99959),h=e(10699),u=e(21726),l=e(77712),D=(e(85931),e(90912),e(68653)),O=e(76898),P=e(79334),M=e(44917),m=e(5143),C=e(65088),T=e(49286),I=e(6647),g=e(13812),L=e(36596);let i=class extends((0,m.Z)((0,C.Y)((0,T.q)((0,I.I)((0,E.R)(M.Z)))))){constructor(...r){super(...r),this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=(0,L.w)()}normalizeCtorArgs(r,t){return"string"==typeof r?{url:r,...t}:r}destroy(){this._lercDecoder=(0,p.RY)(this._lercDecoder)}readVersion(r,t){let a=t.currentVersion;return a||(a=9.3),a}load(r){const t=(0,p.pC)(r)?r.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:a=>{for(let o=0;othis._fetchImageService(t))),Promise.resolve(this)}fetchTile(r,t,a,o){const _=(0,p.pC)((o=o||{signal:null}).signal)?o.signal:o.signal=(new AbortController).signal,f={responseType:"array-buffer",signal:_},j={noDataValue:o.noDataValue,returnFileInfo:!0};return this.load().then(()=>this._fetchTileAvailability(r,t,a,o)).then(()=>(0,y.default)(this.getTileUrl(r,t,a),f)).then(n=>this._lercDecoder.decode(n.data,j,_)).then(n=>({values:n.pixelData,width:n.width,height:n.height,maxZError:n.fileInfo?.maxZError,noDataValue:n.noDataValue,minValue:n.minValue,maxValue:n.maxValue}))}getTileUrl(r,t,a){const _=(0,u.B7)({...this.parsedUrl.query,blankTile:!(!this.tilemapCache&&this.supportsBlankTile)&&null});return`${this.parsedUrl.path}/tile/${r}/${t}/${a}${_?"?"+_:""}`}queryElevation(r,t){var a=this;return(0,d.Z)(function*(){const{ElevationQuery:o}=yield e.e(2493).then(e.bind(e,42493));return(0,h.k_)(t),(new o).query(a,r,t)})()}createElevationSampler(r,t){var a=this;return(0,d.Z)(function*(){const{ElevationQuery:o}=yield e.e(2493).then(e.bind(e,42493));return(0,h.k_)(t),(new o).createSampler(a,r,t)})()}_fetchTileAvailability(r,t,a,o){return this.tilemapCache?this.tilemapCache.fetchAvailability(r,t,a,o):Promise.resolve("unknown")}_fetchImageService(r){var t=this;return(0,d.Z)(function*(){if(t.sourceJSON)return t.sourceJSON;const a={query:{f:"json",...t.parsedUrl.query},responseType:"json",signal:r},o=yield(0,y.default)(t.parsedUrl.path,a);o.ssl&&(t.url=t.url?.replace(/^http:/i,"https:")),t.sourceJSON=o.data,t.read(o.data,{origin:"service",url:t.parsedUrl})})()}get hasOverriddenFetchTile(){return!this.fetchTile.__isDefault__}};(0,s._)([(0,l.Cb)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,s._)([(0,l.Cb)({readOnly:!0,type:P.Z})],i.prototype,"heightModelInfo",void 0),(0,s._)([(0,l.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],i.prototype,"path",void 0),(0,s._)([(0,l.Cb)({type:["show","hide"]})],i.prototype,"listMode",void 0),(0,s._)([(0,l.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],i.prototype,"minScale",void 0),(0,s._)([(0,l.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],i.prototype,"maxScale",void 0),(0,s._)([(0,l.Cb)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],i.prototype,"opacity",void 0),(0,s._)([(0,l.Cb)({type:["ArcGISTiledElevationServiceLayer"]})],i.prototype,"operationalLayerType",void 0),(0,s._)([(0,l.Cb)()],i.prototype,"sourceJSON",void 0),(0,s._)([(0,l.Cb)({json:{read:!1},value:"elevation",readOnly:!0})],i.prototype,"type",void 0),(0,s._)([(0,l.Cb)(g.HQ)],i.prototype,"url",void 0),(0,s._)([(0,l.Cb)()],i.prototype,"version",void 0),(0,s._)([(0,D.r)("version",["currentVersion"])],i.prototype,"readVersion",null),i=(0,s._)([(0,O.j)("esri.layers.ElevationLayer")],i),i.prototype.fetchTile.__isDefault__=!0;const U=i}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/587.6e5788ce83441015.js b/apps/n/porrtal-io-app/public/angular/587.6e5788ce83441015.js deleted file mode 100644 index d819f744..00000000 --- a/apps/n/porrtal-io-app/public/angular/587.6e5788ce83441015.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[587],{10587:(Z,P,a)=>{a.r(P),a.d(P,{addOrUpdateResource:()=>I,contentToBlob:()=>O,fetchResources:()=>R,getSiblingOfSameType:()=>C,getSiblingOfSameTypeI:()=>A,removeAllResources:()=>M,removeResource:()=>D,splitPrefixFileNameAndExtension:()=>f});var i=a(15861),U=a(84792),E=a(26584),o=a(62208),u=a(21726);function R(e){return _.apply(this,arguments)}function _(){return(_=(0,i.Z)(function*(e,t={},n){yield e.load(n);const r=(0,u.v_)(e.itemUrl,"resources"),{start:l=1,num:g=10,sortOrder:p="asc",sortField:c="created"}=t,v={query:{start:l,num:g,sortOrder:p,sortField:c,token:e.apiKey},signal:(0,o.U2)(n,"signal")},s=yield e.portal._request(r,v);return{total:s.total,nextStart:s.nextStart,resources:s.resources.map(({created:b,size:B,resource:F})=>({created:new Date(b),size:B,resource:e.resourceFromPath(F)}))}})).apply(this,arguments)}function I(e,t,n,r){return d.apply(this,arguments)}function d(){return(d=(0,i.Z)(function*(e,t,n,r){if(!e.hasPath())throw new E.Z(`portal-item-resource-${t}:invalid-path`,"Resource does not have a valid path");const l=e.portalItem;yield l.load(r);const g=(0,u.v_)(l.userItemUrl,"add"===t?"addResources":"updateResources"),[p,c]=x(e.path),v=yield O(n),s=new FormData;return p&&"."!==p&&s.append("resourcesPrefix",p),(0,o.pC)(r)&&r.compress&&s.append("compress","true"),s.append("fileName",c),s.append("file",v,c),s.append("f","json"),(0,o.pC)(r)&&r.access&&s.append("access",r.access),yield l.portal._request(g,{method:"post",body:s,signal:(0,o.U2)(r,"signal")}),e})).apply(this,arguments)}function D(e,t,n){return m.apply(this,arguments)}function m(){return(m=(0,i.Z)(function*(e,t,n){if(!t.hasPath())throw new E.Z("portal-item-resources-remove:invalid-path","Resource does not have a valid path");yield e.load(n);const r=(0,u.v_)(e.userItemUrl,"removeResources");yield e.portal._request(r,{method:"post",query:{resource:t.path},signal:(0,o.U2)(n,"signal")}),t.portalItem=null})).apply(this,arguments)}function M(e,t){return h.apply(this,arguments)}function h(){return(h=(0,i.Z)(function*(e,t){yield e.load(t);const n=(0,u.v_)(e.userItemUrl,"removeResources");return e.portal._request(n,{method:"post",query:{deleteAll:!0},signal:(0,o.U2)(t,"signal")})})).apply(this,arguments)}function x(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}function f(e){const[t,n]=function T(e){const t=(0,u.Ml)(e);return(0,o.Wi)(t)?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[r,l]=x(t);return[r,l,n]}function O(e){return y.apply(this,arguments)}function y(){return(y=(0,i.Z)(function*(e){return e instanceof Blob?e:(yield(0,U.default)(e.url,{responseType:"blob"})).data})).apply(this,arguments)}function C(e,t){if(!e.hasPath())return null;const[n,,r]=f(e.path);return e.portalItem.resourceFromPath((0,u.v_)(n,t+r))}function A(e,t){if(!e.hasPath())return null;const[n,,r]=f(e.path);return e.portalItem.resourceFromPath((0,u.v_)(n,t+r))}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5915.f7350332ed57ddd1.js b/apps/n/porrtal-io-app/public/angular/5915.f7350332ed57ddd1.js deleted file mode 100644 index 6a5ccb4a..00000000 --- a/apps/n/porrtal-io-app/public/angular/5915.f7350332ed57ddd1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5915],{45915:(E,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(98071),_(47923),_(39832),_(19278),_(69960),_(65787),_(17625),_(22355),_(35387),_(94195),_(69828);var a=_(82148)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5964.942b54dbef1b73c7.js b/apps/n/porrtal-io-app/public/angular/5964.942b54dbef1b73c7.js deleted file mode 100644 index 796a0cf0..00000000 --- a/apps/n/porrtal-io-app/public/angular/5964.942b54dbef1b73c7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5964],{25964:(U,d,s)=>{s.r(d),s.d(d,{default:()=>f});var _=s(17626),v=s(46882),E=s(47877),p=s(62208),M=s(99959),n=s(32917),r=s(77712),O=(s(85931),s(52323)),c=(s(90912),s(76898)),P=s(99433),b=s(44917),L=s(552),C=s(49286),D=s(6647),u=s(99555),T=s(30164),R=s(38953),j=s(6432),A=s(6119),I=s(32584);let t=class extends((0,L.h)((0,u.M)((0,C.q)((0,D.I)((0,A.Q)((0,j.K)((0,M.R)(b.Z)))))))){constructor(i){super(i),this._visibilityHandles={},this.allLayers=new v.Z({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(0,R.a)(this),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group"}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles((0,n.YP)(()=>this.visible,this._onVisibilityChange.bind(this),n.Z_))}_writeLayers(i,e,a,l){const o=[];if(!i)return o;i.forEach(h=>{const y=(0,I.Nw)(h,l.webmap?l.webmap.getLayerJSONFromResourceInfo(h):null,l);(0,p.pC)(y)&&y.layerType&&o.push(y)}),e.layers=o}set portalItem(i){this._set("portalItem",i)}set visibilityMode(i){const e=this._get("visibilityMode")!==i;this._set("visibilityMode",i),e&&this._enforceVisibility(i,this.visible)}load(i){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"],layerModuleTypeMap:T.T},i)),Promise.resolve(this)}loadAll(){return(0,E.G)(this,i=>{i(this.layers,this.tables)})}layerAdded(i){i.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(i):"inherited"===this.visibilityMode&&(i.visible=this.visible),this._visibilityHandles[i.uid]=(0,n.YP)(()=>i.visible,e=>this._onChildVisibilityChange(i,e),n.Z_)}layerRemoved(i){const e=this._visibilityHandles[i.uid];e&&(e.remove(),delete this._visibilityHandles[i.uid]),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(i){this.layers.forEach(e=>{e!==i&&(e.visible=!1)})}_enforceVisibility(i,e){if(!(0,O.vw)(this).initialized)return;const a=this.layers;let l=a.find(o=>o.visible);switch(i){case"exclusive":a.length&&!l&&(l=a.getItemAt(0),l.visible=!0),this._turnOffOtherLayers(l);break;case"inherited":a.forEach(o=>{o.visible=e})}}_onVisibilityChange(i){"inherited"===this.visibilityMode&&this.layers.forEach(e=>{e.visible=i})}_onChildVisibilityChange(i,e){switch(this.visibilityMode){case"exclusive":e?this._turnOffOtherLayers(i):this._isAnyLayerVisible()||(i.visible=!0);break;case"inherited":i.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some(i=>i.visible)}};(0,_._)([(0,r.Cb)({readOnly:!0,dependsOn:[]})],t.prototype,"allLayers",void 0),(0,_._)([(0,r.Cb)({readOnly:!0})],t.prototype,"allTables",void 0),(0,_._)([(0,r.Cb)()],t.prototype,"fullExtent",void 0),(0,_._)([(0,r.Cb)({json:{read:!0,write:!0}})],t.prototype,"blendMode",void 0),(0,_._)([(0,r.Cb)({json:{read:!1,write:{ignoreOrigin:!0}}})],t.prototype,"layers",void 0),(0,_._)([(0,P.c)("layers")],t.prototype,"_writeLayers",null),(0,_._)([(0,r.Cb)({type:["GroupLayer"]})],t.prototype,"operationalLayerType",void 0),(0,_._)([(0,r.Cb)({json:{origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"portalItem",null),(0,_._)([(0,r.Cb)()],t.prototype,"spatialReference",void 0),(0,_._)([(0,r.Cb)({json:{read:!1},readOnly:!0,value:"group"})],t.prototype,"type",void 0),(0,_._)([(0,r.Cb)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"visibilityMode",null),t=(0,_._)([(0,c.j)("esri.layers.GroupLayer")],t);const f=t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5976.f7ba0b56adf1b232.js b/apps/n/porrtal-io-app/public/angular/5976.f7ba0b56adf1b232.js deleted file mode 100644 index af3df00f..00000000 --- a/apps/n/porrtal-io-app/public/angular/5976.f7ba0b56adf1b232.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5976],{15976:(M,f,e)=>{e.r(f),e.d(f,{default:()=>v});var i=e(15861),l=(e(29132),e(62208)),E=e(98346),a=e(25688),d=e(8614),_=e(79751),P=e(16943),m=e(28594),p=e(17057),u=e(30994),D=e(46572),S=e(99033),h=e(37084),c=e(2004);class v{convertVectorFieldData(t){const s=a.Z.fromJSON(t.pixelBlock),r=(0,u.KC)(s,t.type);return Promise.resolve((0,l.pC)(r)&&r.toJSON())}decode(t){return(0,i.Z)(function*(){const s=yield(0,d.J)(t.data,t.options);return s&&s.toJSON()})()}symbolize(t){t.pixelBlock=a.Z.fromJSON(t.pixelBlock),t.extent=t.extent?c.Z.fromJSON(t.extent):null;const s=this.symbolizer.symbolize(t);return Promise.resolve((0,l.pC)(s)&&s.toJSON())}updateSymbolizer(t){var s=this;return(0,i.Z)(function*(){s.symbolizer=S.Z.fromJSON(t.symbolizerJSON),t.histograms&&"rasterStretch"===s.symbolizer?.rendererJSON.type&&(s.symbolizer.rendererJSON.histograms=t.histograms)})()}updateRasterFunction(t){var s=this;return(0,i.Z)(function*(){s.rasterFunction=(0,P.Ue)(t.rasterFunctionJSON)})()}process(t){var s=this;return(0,i.Z)(function*(){const r=s.rasterFunction.process({extent:c.Z.fromJSON(t.extent),primaryPixelBlocks:t.primaryPixelBlocks.map(o=>(0,l.pC)(o)?a.Z.fromJSON(o):null),primaryRasterIds:t.primaryRasterIds});return(0,l.pC)(r)?r.toJSON():null})()}stretch(t){const s=this.symbolizer.simpleStretch(a.Z.fromJSON(t.srcPixelBlock),t.stretchParams);return Promise.resolve((0,l.pC)(s)&&s.toJSON())}estimateStatisticsHistograms(t){const s=(0,p.Hv)(a.Z.fromJSON(t.srcPixelBlock));return Promise.resolve(s)}split(t){const s=(0,_.Vl)(a.Z.fromJSON(t.srcPixelBlock),t.tileSize,t.maximumPyramidLevel);return s&&s.forEach((r,o)=>{s.set(o,r?.toJSON())}),Promise.resolve(s)}mosaicAndTransform(t){return(0,i.Z)(function*(){const s=t.srcPixelBlocks.map(O=>O?new a.Z(O):null),r=(0,_.us)(s,t.srcMosaicSize,{blockWidths:t.blockWidths,alignmentInfo:t.alignmentInfo,clipOffset:t.clipOffset,clipSize:t.clipSize});let o,n=r;return t.coefs&&(n=(0,_.Uk)(r,t.destDimension,t.coefs,t.sampleSpacing,t.interpolation)),t.projectDirections&&t.gcsGrid&&(o=(0,_.Qh)(t.destDimension,t.gcsGrid),n=(0,l.Wg)((0,u.xQ)(n,t.isUV?"vector-uv":"vector-magdir",o))),{pixelBlock:n?.toJSON(),localNorthDirections:o}})()}createFlowMesh(t,s){return(0,i.Z)(function*(){const r={data:new Float32Array(t.flowData.buffer),mask:new Uint8Array(t.flowData.maskBuffer),width:t.flowData.width,height:t.flowData.height},{vertexData:o,indexData:n}=yield(0,h.GE)(t.meshType,t.simulationSettings,r,s.signal);return{result:{vertexBuffer:o.buffer,indexBuffer:n.buffer},transferList:[o.buffer,n.buffer]}})()}getProjectionOffsetGrid(t){return(0,i.Z)(function*(){const s=c.Z.fromJSON(t.projectedExtent),r=c.Z.fromJSON(t.srcBufferExtent);let o=null;t.datumTransformationSteps&&(o=new E.Z({steps:t.datumTransformationSteps})),(t.includeGCSGrid||(0,m.Mk)(s.spatialReference,r.spatialReference,o))&&(yield(0,m.zD)());const n=t.rasterTransform?(0,D.c)(t.rasterTransform):null;return(0,m.Qp)({...t,projectedExtent:s,srcBufferExtent:r,datumTransformation:o,rasterTransform:n})})()}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5978.5d4f595ae16122f8.js b/apps/n/porrtal-io-app/public/angular/5978.5d4f595ae16122f8.js deleted file mode 100644 index c8f78958..00000000 --- a/apps/n/porrtal-io-app/public/angular/5978.5d4f595ae16122f8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5978],{55978:(y,p,u)=>{u.r(p),u.d(p,{registerFunctions:()=>O});var P=u(15861),i=u(25919),E=u(27187),s=u(47562),d=u(3482),f=u(62074),o=u(21674),l=u(87215);function _(r){return r instanceof o.Z}function c(r,t,a,h){return h(r,t,function(){var R=(0,P.Z)(function*(e,S,n){if(n.length<2)throw new i.aV(r,i.rH.WrongNumberOfParameters,t);if(null===(n=(0,s.G)(n))[0]&&null===n[1])return!1;if((0,s.T)(n[0])){if(n[1]instanceof o.Z)return new d.Z({parentfeatureset:n[0],relation:a,relationGeom:n[1]});if(null===n[1])return new f.Z({parentfeatureset:n[0]});throw new i.aV(r,i.rH.InvalidParameter,t)}if(_(n[0])){if(_(n[1])){switch(a){case"esriSpatialRelEnvelopeIntersects":return(0,l.kK)((0,E.SV)(n[0]),(0,E.SV)(n[1]));case"esriSpatialRelIntersects":return(0,l.kK)(n[0],n[1]);case"esriSpatialRelContains":return(0,l.r3)(n[0],n[1]);case"esriSpatialRelOverlaps":return(0,l.Nm)(n[0],n[1]);case"esriSpatialRelWithin":return(0,l.uh)(n[0],n[1]);case"esriSpatialRelTouches":return(0,l.W4)(n[0],n[1]);case"esriSpatialRelCrosses":return(0,l.jU)(n[0],n[1])}throw new i.aV(r,i.rH.InvalidParameter,t)}if((0,s.T)(n[1]))return new d.Z({parentfeatureset:n[1],relation:a,relationGeom:n[0]});if(null===n[1])return!1;throw new i.aV(r,i.rH.InvalidParameter,t)}if(null!==n[0])throw new i.aV(r,i.rH.InvalidParameter,t);return(0,s.T)(n[1])?new f.Z({parentfeatureset:n[1]}):!(n[1]instanceof o.Z||null===n[1])&&void 0});return function(e,S,n){return R.apply(this,arguments)}}())}function O(r){"async"===r.mode&&(r.functions.intersects=function(t,a){return c(t,a,"esriSpatialRelIntersects",r.standardFunctionAsync)},r.functions.envelopeintersects=function(t,a){return c(t,a,"esriSpatialRelEnvelopeIntersects",r.standardFunctionAsync)},r.signatures.push({name:"envelopeintersects",min:2,max:2}),r.functions.contains=function(t,a){return c(t,a,"esriSpatialRelContains",r.standardFunctionAsync)},r.functions.overlaps=function(t,a){return c(t,a,"esriSpatialRelOverlaps",r.standardFunctionAsync)},r.functions.within=function(t,a){return c(t,a,"esriSpatialRelWithin",r.standardFunctionAsync)},r.functions.touches=function(t,a){return c(t,a,"esriSpatialRelTouches",r.standardFunctionAsync)},r.functions.crosses=function(t,a){return c(t,a,"esriSpatialRelCrosses",r.standardFunctionAsync)},r.functions.relate=function(t,a){return r.standardFunctionAsync(t,a,(h,R,e)=>{if(e=(0,s.G)(e),(0,s.y)(e,3,3,t,a),_(e[0])&&_(e[1]))return(0,l.LV)(e[0],e[1],(0,s.j)(e[2]));if(e[0]instanceof o.Z&&null===e[1]||e[1]instanceof o.Z&&null===e[0])return!1;if((0,s.T)(e[0])&&null===e[1])return new f.Z({parentfeatureset:e[0]});if((0,s.T)(e[1])&&null===e[0])return new f.Z({parentfeatureset:e[1]});if((0,s.T)(e[0])&&e[1]instanceof o.Z)return e[0].relate(e[1],(0,s.j)(e[2]));if((0,s.T)(e[1])&&e[0]instanceof o.Z)return e[1].relate(e[0],(0,s.j)(e[2]));if(null===e[0]&&null===e[1])return!1;throw new i.aV(t,i.rH.InvalidParameter,a)})})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5979.99fc2e2f860f0c02.js b/apps/n/porrtal-io-app/public/angular/5979.99fc2e2f860f0c02.js deleted file mode 100644 index 2ec5696f..00000000 --- a/apps/n/porrtal-io-app/public/angular/5979.99fc2e2f860f0c02.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5979],{85979:(de,vn,hn)=>{hn.r(vn),hn.d(vn,{i:()=>Ln});var rn,en={exports:{}};rn=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,en.exports=function(R){var H,F,t=void 0!==(R=R||{})?R:{};t.ready=new Promise(function(n,r){H=n,F=r});var d,T={};for(d in t)t.hasOwnProperty(d)&&(T[d]=t[d]);var yn="object"==typeof window,q="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process;var tn,C="";(yn||q)&&(q?C=self.location.href:typeof document<"u"&&document.currentScript&&(C=document.currentScript.src),rn&&(C=rn),C=0!==C.indexOf("blob:")?C.substr(0,C.replace(/[?#].*/,"").lastIndexOf("/")+1):"",q&&(tn=function(n){var r=new XMLHttpRequest;return r.open("GET",n,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var V,on,Jn=t.print||console.log.bind(console),U=t.printErr||console.warn.bind(console);for(d in T)T.hasOwnProperty(d)&&(t[d]=T[d]);T=null,t.wasmBinary&&(V=t.wasmBinary),"object"!=typeof WebAssembly&&G("no native wasm support detected");var _n=!1,wn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function bn(n,r,e){for(var o=r+e,a=r;n[a]&&!(a>=o);)++a;if(a-r>16&&n.subarray&&wn)return wn.decode(n.subarray(r,a));for(var u="";r>10,56320|1023&s)}}else u+=String.fromCharCode((31&c)<<6|i)}else u+=String.fromCharCode(c)}return u}function An(n,r){return n?bn(v,n,r):""}var an,j,v,O,L,p,k,Tn,Cn,kn,Pn=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function $n(n,r){for(var e=n,o=e>>1,a=o+r/2;!(o>=a)&&L[o];)++o;if((e=o<<1)-n>32&&Pn)return Pn.decode(v.subarray(n,e));for(var u="",c=0;!(c>=r/2);++c){var i=O[n+2*c>>1];if(0==i)break;u+=String.fromCharCode(i)}return u}function Kn(n,r,e){if(void 0===e&&(e=2147483647),e<2)return 0;for(var o=r,a=(e-=2)<2*n.length?e/2:n.length,u=0;u>1]=c,r+=2}return O[r>>1]=0,r-o}function Qn(n){return 2*n.length}function nr(n,r){for(var e=0,o="";!(e>=r/4);){var a=p[n+4*e>>2];if(0==a)break;if(++e,a>=65536){var u=a-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}else o+=String.fromCharCode(a)}return o}function rr(n,r,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var o=r,a=o+e-4,u=0;u=55296&&c<=57343&&(c=65536+((1023&c)<<10)|1023&n.charCodeAt(++u)),p[r>>2]=c,(r+=4)+4>a)break}return p[r>>2]=0,r-o}function er(n){for(var r=0,e=0;e=55296&&o<=57343&&++e,r+=4}return r}function tr(n,r){return n%r>0&&(n+=r-n%r),n}function En(n){an=n,t.HEAP8=j=new Int8Array(n),t.HEAP16=O=new Int16Array(n),t.HEAP32=p=new Int32Array(n),t.HEAPU8=v=new Uint8Array(n),t.HEAPU16=L=new Uint16Array(n),t.HEAPU32=k=new Uint32Array(n),t.HEAPF32=Tn=new Float32Array(n),t.HEAPF64=Cn=new Float64Array(n)}var A,Wn=[],Sn=[],Rn=[],x=0,M=null;function G(n){t.onAbort&&t.onAbort(n),U(n="Aborted("+n+")"),_n=!0,n+=". Build with -s ASSERTIONS=1 for more info.";var r=new WebAssembly.RuntimeError(n);throw F(r),r}function Fn(n){return n.startsWith("data:application/octet-stream;base64,")}function jn(n){try{if(n==A&&V)return new Uint8Array(V);if(tn)return tn(n);throw"both async and sync fetching of the wasm failed"}catch(r){G(r)}}function un(n){for(;n.length>0;){var r=n.shift();if("function"!=typeof r){var e=r.func;"number"==typeof e?void 0===r.arg?z(e)():z(e)(r.arg):e(void 0===r.arg?null:r.arg)}else r(t)}}t.preloadedImages={},t.preloadedAudios={},Fn(A="i3s.wasm")||(A=function Gn(n){return t.locateFile?t.locateFile(n,C):C+n}(A));var J=[];function z(n){var r=J[n];return r||(n>=J.length&&(J.length=n+1),J[n]=r=kn.get(n)),r}function yr(n){this.excPtr=n,this.ptr=n-16,this.set_type=function(r){p[this.ptr+4>>2]=r},this.get_type=function(){return p[this.ptr+4>>2]},this.set_destructor=function(r){p[this.ptr+8>>2]=r},this.get_destructor=function(){return p[this.ptr+8>>2]},this.set_refcount=function(r){p[this.ptr>>2]=r},this.set_caught=function(r){j[this.ptr+12>>0]=r=r?1:0},this.get_caught=function(){return 0!=j[this.ptr+12>>0]},this.set_rethrown=function(r){j[this.ptr+13>>0]=r=r?1:0},this.get_rethrown=function(){return 0!=j[this.ptr+13>>0]},this.init=function(r,e){this.set_type(r),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){p[this.ptr>>2]=p[this.ptr>>2]+1},this.release_ref=function(){var r=p[this.ptr>>2];return p[this.ptr>>2]=r-1,1===r}}var X={};function xn(n){for(;n.length;){var r=n.pop();n.pop()(r)}}function Y(n){return this.fromWireType(k[n>>2])}var D={},I={},Z={};function cn(n,r){var e=function Tr(n,r){return n=function Ar(n){if(void 0===n)return"_unknown";var r=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?"_"+n:n}(n),function(){return r.apply(this,arguments)}}(r,function(o){this.name=r,this.message=o;var a=new Error(o).stack;void 0!==a&&(this.stack=this.toString()+"\n"+a.replace(/^Error(:[^\n]*)?\n/,""))});return e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var In=void 0;function Un(n){throw new In(n)}function On(n,r,e){function o(i){var f=e(i);f.length!==n.length&&Un("Mismatched type converter count");for(var s=0;s4&&0==--y[n].refcount&&(y[n]=void 0,sn.push(n))}function Wr(){for(var n=0,r=5;r>2])};case 3:return function(e){return this.fromWireType(Cn[e>>3])};default:throw new TypeError("Unknown float type: "+n)}}function Mr(n,r,e){return n.includes("j")?function Vr(n,r,e){var o=t["dynCall_"+n];return e&&e.length?o.apply(null,[r].concat(e)):o.call(null,r)}(n,r,e):z(r).apply(null,e)}function B(n,r){n=h(n);var o=function e(){return n.includes("j")?function zr(n,r){var e=[];return function(){e.length=arguments.length;for(var o=0;o>1]}:function(o){return L[o>>1]};case 2:return e?function(o){return p[o>>2]}:function(o){return k[o>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var Qr={};function ae(n){try{return on.grow(n-an.byteLength+65535>>>16),En(on.buffer),1}catch{}}var K={mappings:{},buffers:[null,[],[]],printChar:function(n,r){var e=K.buffers[n];0===r||10===r?((1===n?Jn:U)(bn(e,0)),e.length=0):e.push(r)},varargs:void 0,get:function(){return K.varargs+=4,p[K.varargs-4>>2]},getStr:function(n){return An(n)},get64:function(n,r){return n}};In=t.InternalError=cn(Error,"InternalError"),function Pr(){for(var n=new Array(256),r=0;r<256;++r)n[r]=String.fromCharCode(r);Dn=n}(),Hn=t.BindingError=cn(Error,"BindingError"),function Rr(){t.count_emval_handles=Wr,t.get_first_emval=Sr}(),Mn=t.UnboundTypeError=cn(Error,"UnboundTypeError");var Bn={__call_sighandler:function hr(n,r){z(n)(r)},__cxa_allocate_exception:function mr(n){return nn(n+16)+16},__cxa_atexit:function gr(n,r){},__cxa_throw:function _r(n,r,e){throw new yr(n).init(r,e),n},_embind_finalize_value_object:function Cr(n){var r=X[n];delete X[n];var e=r.rawConstructor,o=r.rawDestructor,a=r.fields;On([n],a.map(function(u){return u.getterReturnType}).concat(a.map(function(u){return u.setterArgumentType})),function(u){var c={};return a.forEach(function(i,f){var l=u[f],g=i.getter,_=i.getterContext,w=u[f+a.length],W=i.setter,b=i.setterContext;c[i.fieldName]={read:function(N){return l.fromWireType(g(_,N))},write:function(N,dn){var S=[];W(b,N,w.toWireType(S,dn)),xn(S)}}}),[{name:r.name,fromWireType:function(i){var f={};for(var s in c)f[s]=c[s].read(i);return o(i),f},toWireType:function(i,f){for(var s in c)if(!(s in f))throw new TypeError('Missing field: "'+s+'"');var l=e();for(s in c)c[s].write(l,f[s]);return null!==i&&i.push(o,l),l},argPackAdvance:8,readValueFromPointer:Y,destructorFunction:o}]})},_embind_register_bigint:function kr(n,r,e,o,a){},_embind_register_bool:function Er(n,r,e,o,a){var u=fn(e);P(n,{name:r=h(r),fromWireType:function(c){return!!c},toWireType:function(c,i){return i?o:a},argPackAdvance:8,readValueFromPointer:function(c){var i;if(1===e)i=j;else if(2===e)i=O;else{if(4!==e)throw new TypeError("Unknown boolean type size: "+r);i=p}return this.fromWireType(i[c>>u])},destructorFunction:null})},_embind_register_emval:function Fr(n,r){P(n,{name:r=h(r),fromWireType:function(e){var o=function(n){return n||m("Cannot use deleted val. handle = "+n),y[n].value}(e);return Vn(e),o},toWireType:function(e,o){return $_toHandle(o)},argPackAdvance:8,readValueFromPointer:Y,destructorFunction:null})},_embind_register_float:function xr(n,r,e){var o=fn(e);P(n,{name:r=h(r),fromWireType:function(a){return a},toWireType:function(a,u){if("number"!=typeof u&&"boolean"!=typeof u)throw new TypeError('Cannot convert "'+ln(u)+'" to '+this.name);return u},argPackAdvance:8,readValueFromPointer:jr(r,o),destructorFunction:null})},_embind_register_function:function Nr(n,r,e,o,a,u){var c=function Dr(n,r){for(var e=[],o=0;o>2)+o]);return e}(r,e);n=h(n),a=B(o,a),function Or(n,r,e){t.hasOwnProperty(n)?((void 0===e||void 0!==t[n].overloadTable&&void 0!==t[n].overloadTable[e])&&m("Cannot register public name '"+n+"' twice"),function Ur(n,r,e){if(void 0===n[r].overloadTable){var o=n[r];n[r]=function(){return n[r].overloadTable.hasOwnProperty(arguments.length)||m("Function '"+e+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+n[r].overloadTable+")!"),n[r].overloadTable[arguments.length].apply(this,arguments)},n[r].overloadTable=[],n[r].overloadTable[o.argCount]=o}}(t,n,n),t.hasOwnProperty(e)&&m("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),t[n].overloadTable[e]=r):(t[n]=r,void 0!==e&&(t[n].numArguments=e))}(n,function(){!function Br(n,r){var e=[],o={};throw r.forEach(function a(u){o[u]||I[u]||(Z[u]?Z[u].forEach(a):(e.push(u),o[u]=!0))}),new Mn(n+": "+e.map(zn).join([", "]))}("Cannot call "+n+" due to unbound types",c)},r-1),On([],c,function(i){var f=[i[0],null].concat(i.slice(1));return function Hr(n,r,e){t.hasOwnProperty(n)||Un("Replacing nonexistant public symbol"),void 0!==t[n].overloadTable&&void 0!==e?t[n].overloadTable[e]=r:(t[n]=r,t[n].argCount=e)}(n,function Ir(n,r,e,o,a){var u=r.length;u<2&&m("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var c=null!==r[1]&&null!==e,i=!1,f=1;f>>i}}var f=r.includes("unsigned");P(n,{name:r,fromWireType:c,toWireType:function(s,l){if("number"!=typeof l&&"boolean"!=typeof l)throw new TypeError('Cannot convert "'+ln(l)+'" to '+this.name);if(la)throw new TypeError('Passing a number "'+ln(l)+'" from JS side to C/C++ side to an argument of type "'+r+'", which is outside the valid range ['+o+", "+a+"]!");return f?l>>>0:0|l},argPackAdvance:8,readValueFromPointer:qr(r,u,0!==o),destructorFunction:null})},_embind_register_memory_view:function Gr(n,r,e){var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function a(u){var i=k[u>>=2];return new o(an,k[u+1],i)}P(n,{name:e=h(e),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function Jr(n,r){var e="std::string"===(r=h(r));P(n,{name:r,fromWireType:function(o){var a,u=k[o>>2];if(e)for(var c=o+4,i=0;i<=u;++i){var f=o+4+i;if(i==u||0==v[f]){var s=An(c,f-c);void 0===a?a=s:(a+=String.fromCharCode(0),a+=s),c=f+1}}else{var l=new Array(u);for(i=0;i=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++e)),o<=127?++r:r+=o<=2047?2:o<=65535?3:4}return r}(a)}:function(){return a.length})(),i=nn(4+c+1);if(k[i>>2]=c,e&&u)!function Yn(n,r,e){(function Xn(n,r,e,o){if(!(o>0))return 0;for(var a=e,u=e+o-1,c=0;c=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++c)),i<=127){if(e>=u)break;r[e++]=i}else if(i<=2047){if(e+1>=u)break;r[e++]=192|i>>6,r[e++]=128|63&i}else if(i<=65535){if(e+2>=u)break;r[e++]=224|i>>12,r[e++]=128|i>>6&63,r[e++]=128|63&i}else{if(e+3>=u)break;r[e++]=240|i>>18,r[e++]=128|i>>12&63,r[e++]=128|i>>6&63,r[e++]=128|63&i}}r[e]=0})(n,v,r,e)}(a,i+4,c+1);else if(u)for(var f=0;f255&&(E(i),m("String has UTF-16 code units that do not fit in 8 bits")),v[i+4+f]=s}else for(f=0;f>2],g=u(),_=f+4,w=0;w<=l;++w){var W=f+4+w*r;if(w==l||0==g[W>>i]){var b=o(_,W-_);void 0===s?s=b:(s+=String.fromCharCode(0),s+=b),_=W+r}}return E(f),s},toWireType:function(f,s){"string"!=typeof s&&m("Cannot pass non-string to C++ string type "+e);var l=c(s),g=nn(4+l+r);return k[g>>2]=l>>i,a(s,g+4,l+r),null!==f&&f.push(E,g),g},argPackAdvance:8,readValueFromPointer:Y,destructorFunction:function(f){E(f)}})},_embind_register_value_object:function Yr(n,r,e,o,a,u){X[n]={name:h(r),rawConstructor:B(e,o),rawDestructor:B(a,u),fields:[]}},_embind_register_value_object_field:function Zr(n,r,e,o,a,u,c,i,f,s){X[n].fields.push({fieldName:h(r),getterReturnType:e,getter:B(o,a),getterContext:u,setterArgumentType:c,setter:B(i,f),setterContext:s})},_embind_register_void:function $r(n,r){P(n,{isVoid:!0,name:r=h(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,o){}})},_emval_decref:Vn,_emval_incref:function Kr(n){n>4&&(y[n].refcount+=1)},_emval_new_cstring:function re(n){return $_toHandle(function ne(n){var r=Qr[n];return void 0===r?h(n):r}(n))},_emval_take_value:function te(n,r){var e=(n=function ee(n,r){var e=I[n];return void 0===e&&m(r+" has unknown type "+zn(n)),e}(n,"_emval_take_value")).readValueFromPointer(r);return $_toHandle(e)},abort:function oe(){G("")},emscripten_memcpy_big:function ie(n,r,e){v.copyWithin(n,r,r+e)},emscripten_resize_heap:function ue(n){var r=v.length,e=2147483648;if((n>>>=0)>e)return!1;for(var o=1;o<=4;o*=2){var a=r*(1+.2/o);if(a=Math.min(a,n+100663296),ae(Math.min(e,tr(Math.max(n,a),65536))))return!0}return!1},fd_close:function ce(n){return 0},fd_seek:function fe(n,r,e,o,a){},fd_write:function se(n,r,e,o){for(var a=0,u=0;u>2],i=p[r+4>>2];r+=8;for(var f=0;f>2]=a,0},setTempRet0:function le(n){}};(function vr(){var n={env:Bn,wasi_snapshot_preview1:Bn};function r(u,c){t.asm=u.exports,En((on=t.asm.memory).buffer),kn=t.asm.__indirect_function_table,function cr(n){Sn.unshift(n)}(t.asm.__wasm_call_ctors),function lr(n){if(x--,t.monitorRunDependencies&&t.monitorRunDependencies(x),0==x&&M){var r=M;M=null,r()}}()}function e(u){r(u.instance)}function o(u){return function dr(){return V||!yn&&!q||"function"!=typeof fetch?Promise.resolve().then(function(){return jn(A)}):fetch(A,{credentials:"same-origin"}).then(function(n){if(!n.ok)throw"failed to load wasm binary file at '"+A+"'";return n.arrayBuffer()}).catch(function(){return jn(A)})}().then(function(c){return WebAssembly.instantiate(c,n)}).then(function(c){return c}).then(u,function(c){U("failed to asynchronously prepare wasm: "+c),G(c)})}if(function sr(n){x++,t.monitorRunDependencies&&t.monitorRunDependencies(x)}(),t.instantiateWasm)try{return t.instantiateWasm(n,r)}catch(u){return U("Module.instantiateWasm callback failed with error: "+u),!1}(function a(){return V||"function"!=typeof WebAssembly.instantiateStreaming||Fn(A)||"function"!=typeof fetch?o(e):fetch(A,{credentials:"same-origin"}).then(function(u){return WebAssembly.instantiateStreaming(u,n).then(e,function(c){return U("wasm streaming compile failed: "+c),U("falling back to ArrayBuffer instantiation"),o(e)})})})().catch(F)})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.__wasm_call_ctors).apply(null,arguments)};var Q,nn=t._malloc=function(){return(nn=t._malloc=t.asm.malloc).apply(null,arguments)},E=t._free=function(){return(E=t._free=t.asm.free).apply(null,arguments)},Nn=t.___getTypeName=function(){return(Nn=t.___getTypeName=t.asm.__getTypeName).apply(null,arguments)};function pn(n){function r(){Q||(Q=!0,t.calledRun=!0,_n||(function ir(){un(Sn)}(),H(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),function ar(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)n=t.postRun.shift(),Rn.unshift(n);var n;un(Rn)}()))}x>0||(function or(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)n=t.preRun.shift(),Wn.unshift(n);var n;un(Wn)}(),x>0||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),r()},1)):r()))}if(t.___embind_register_native_and_builtin_types=function(){return(t.___embind_register_native_and_builtin_types=t.asm.__embind_register_native_and_builtin_types).apply(null,arguments)},t.___errno_location=function(){return(t.___errno_location=t.asm.__errno_location).apply(null,arguments)},t.stackSave=function(){return(t.stackSave=t.asm.stackSave).apply(null,arguments)},t.stackRestore=function(){return(t.stackRestore=t.asm.stackRestore).apply(null,arguments)},t.stackAlloc=function(){return(t.stackAlloc=t.asm.stackAlloc).apply(null,arguments)},t.dynCall_vij=function(){return(t.dynCall_vij=t.asm.dynCall_vij).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.dynCall_jiji).apply(null,arguments)},M=function n(){Q||pn(),Q||(M=n)},t.run=pn,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return pn(),R.ready};const Ln=function qn(R,H){for(var F=0;Ft[d]})}}return Object.freeze(Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:en.exports},[en.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/5994.f824200003ba112d.js b/apps/n/porrtal-io-app/public/angular/5994.f824200003ba112d.js deleted file mode 100644 index 11c64efc..00000000 --- a/apps/n/porrtal-io-app/public/angular/5994.f824200003ba112d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[5994],{15994:(g,a,r)=>{r.d(a,{N:()=>c});const c={convertToGEGeometry:function p(i,t){return null==t?null:i.convertJSONToGeometry(t)},exportPoint:function m(i,t,s){const e=new u(i.getPointX(t),i.getPointY(t),s),n=i.hasZ(t),o=i.hasM(t);return n&&(e.z=i.getPointZ(t)),o&&(e.m=i.getPointM(t)),e},exportPolygon:function l(i,t,s){return new x(i.exportPaths(t),s,i.hasZ(t),i.hasM(t))},exportPolyline:function M(i,t,s){return new v(i.exportPaths(t),s,i.hasZ(t),i.hasM(t))},exportMultipoint:function f(i,t,s){return new d(i.exportPoints(t),s,i.hasZ(t),i.hasM(t))},exportExtent:function Z(i,t,s){const e=i.hasZ(t),n=i.hasM(t),o=new _(i.getXMin(t),i.getYMin(t),i.getXMax(t),i.getYMax(t),s);if(e){const h=i.getZExtent(t);o.zmin=h.vmin,o.zmax=h.vmax}if(n){const h=i.getMExtent(t);o.mmin=h.vmin,o.mmax=h.vmax}return o}};class u{constructor(t,s,e){this.x=t,this.y=s,this.spatialReference=e,this.z=void 0,this.m=void 0}}class x{constructor(t,s,e,n){this.rings=t,this.spatialReference=s,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)}}class v{constructor(t,s,e,n){this.paths=t,this.spatialReference=s,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)}}class d{constructor(t,s,e,n){this.points=t,this.spatialReference=s,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)}}class _{constructor(t,s,e,n,o){this.xmin=t,this.ymin=s,this.xmax=e,this.ymax=n,this.spatialReference=o,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6007.777ecafc323ef0cd.js b/apps/n/porrtal-io-app/public/angular/6007.777ecafc323ef0cd.js deleted file mode 100644 index 0af77bd4..00000000 --- a/apps/n/porrtal-io-app/public/angular/6007.777ecafc323ef0cd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6007],{40405:(He,he,l)=>{l.d(he,{B:()=>Ce});var t=l(15861),b=l(22558),U=l(21726),me=l(35948),q=l(34117),xe=l(31283),Ve=l(77712);function o(a){return ie[function Be(a){return a instanceof Blob?a.type:function g(a){const u=(0,U.Ml)(a);return H[u]||f}(a.url)}(a)]||Z}const ie={},f="text/plain",Z=ie[f],H={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const a in H)ie[H[a]]=a;var O=l(29840);function Ce(a){const u=a?.origins??[void 0];return(y,S)=>{const p=function je(a,u,y){if("resource"===a?.type)return function we(a,u,y){const S=(0,q.VZ)(u,y);return{type:String,read:(p,j,w)=>{const d=(0,O.r)(p,j,w);return S.type===String?d:"function"==typeof S.type?new S.type({url:d}):void 0},write:{writer(p,j,w,d){if(!d||!d.resources)return"string"==typeof p?void(j[w]=(0,O.t)(p,d)):void(j[w]=p.write({},d));const E=function T(a){return null==a?null:"string"==typeof a?a:a.url}(p),F=(0,O.t)(E,{...d,verifyItemRelativeUrls:d&&d.verifyItemRelativeUrls?{writtenUrls:d.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},O.M.NO),J=S.type!==String&&(!(0,b.l)(this)||d&&d.origin&&this.originIdOf(y)>(0,xe.M9)(d.origin)),I={object:this,propertyName:y,value:p,targetUrl:F,dest:j,targetPropertyName:w,context:d,params:a};d&&d.portalItem&&F&&!(0,U.YP)(F)?J?function ze(a){const{context:u,targetUrl:y,params:S,value:p,dest:j,targetPropertyName:w}=a;if(!u.portalItem)return;const d=u.portalItem.resourceFromPath(y),E=ge(p,y,u),F=o(E),J=(0,U.Ml)(d.path),I=S?.compress??!1;F===J?(u.resources&&be({...a,resource:d,content:E,compress:I,updates:u.resources.toUpdate}),j[w]=y):ve(a)}(I):function Ie({context:a,targetUrl:u,dest:y,targetPropertyName:S}){a.portalItem&&a.resources&&(a.resources.toKeep.push({resource:a.portalItem.resourceFromPath(u),compress:!1}),y[S]=u)}(I):d&&d.portalItem&&(null==F||null!=(0,O.i)(F)||(0,U.jc)(F)||J)?ve(I):j[w]=F}}}}(a,u,y);switch(a?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:S,write:p}=O.a;return{read:S,write:p}}}}(a,y,S);for(const j of u){const w=(0,Ve.CJ)(y,j,S);for(const d in p)w[d]=p[d]}}}function ve(a){const{targetUrl:u,params:y,value:S,context:p,dest:j,targetPropertyName:w}=a;if(!p.portalItem)return;const d=(0,O.p)(u),E=d?.filename??(0,me.D)(),F=y?.prefix??d?.prefix,J=ge(S,u,p),I=(0,U.v_)(F,E),re=`${I}.${o(J)}`,$=p.portalItem.resourceFromPath(re);(0,U.jc)(u)&&p.resources&&p.resources.pendingOperations.push(function ne(a){return A.apply(this,arguments)}(u).then(se=>{$.path=`${I}.${o(se)}`,j[w]=$.itemRelativeUrl}).catch(()=>{}));const B=y?.compress??!1;p.resources&&be({...a,resource:$,content:J,compress:B,updates:p.resources.toAdd}),j[w]=$.itemRelativeUrl}function be({object:a,propertyName:u,updates:y,resource:S,content:p,compress:j}){y.push({resource:S,content:p,compress:j,finish:w=>{!function x(a,u,y){"string"==typeof a[u]?a[u]=y.url:a[u].url=y.url}(a,u,w)}})}function ge(a,u,y){return"string"==typeof a?{url:u}:new Blob([JSON.stringify(a.toJSON(y))],{type:"application/json"})}function A(){return(A=(0,t.Z)(function*(a){const u=(yield Promise.resolve().then(l.bind(l,84792))).default,{data:y}=yield u(a,{responseType:"blob"});return y})).apply(this,arguments)}},26007:(He,he,l)=>{l.r(he),l.d(he,{default:()=>st});var t=l(17626),b=l(46160),U=l(26584),me=l(63290),q=l(62208),xe=l(99959),Ve=l(10699),o=l(77712),g=(l(85931),l(90912)),ie=l(68653),f=l(76898),Z=l(84161),H=l(28093),O=l(2004),Ce=l(44917),je=l(50085),we=l(65088),ve=l(49286),ze=l(6647),Ie=l(99555),be=l(10157),ge=l(38305),ne=l(13812),A=l(79608),T=l(23719),x=l(86810),a=l(40405),u=l(48977),y=l(78451),S=l(39863);const p=(0,H.c)(),j=(0,y.a)(),w=(0,y.a)(),d=(0,y.a)(),E=new Float64Array([0,0,1]),F=new Float64Array([0,1,0]),J=new Float64Array([1,0,0]);function I(e){(0,Z.c)(p,e),(0,Z.n)(p,p);const i=Math.atan2(p[1],p[0]),r=(0,u.s)((0,y.a)(),E,-i);(0,Z.q)(p,p,r);const s=-1*Math.atan2(p[2],p[0]);return[(0,S.a)(i)+270,(0,S.a)(s)+90]}function re(e,i){return(0,u.s)(w,E,(0,S.t)(e-270)),(0,u.s)(d,F,(0,S.t)(i-90)),(0,u.m)(j,w,d),(0,Z.c)(p,J),(0,Z.q)(p,p,j),(0,Z.n)(p,p),[p[0],p[1],p[2]]}var $=l(66656);let B=class extends((0,A.J)(x.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,i]=I(this.normal);return T.BV.normalize((0,g.q9)(e),0,!0)}set orientation(e){const i=re(e,this.tilt);this._set("normal",i),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,i]=I(this.normal);return T.BV.normalize((0,g.q9)(i),0,!0)}set tilt(e){const i=re(this.orientation,e);this._set("normal",i),this._set("tilt",e)}};(0,t._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],B.prototype,"enabled",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],B.prototype,"label",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,$.p)(e=>T.BV.normalize((0,g.q9)(e),0,!0))],B.prototype,"orientation",null),(0,t._)([(0,o.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,$.p)(e=>T.BV.normalize((0,g.q9)(e),0,!0))],B.prototype,"tilt",null),(0,t._)([(0,o.Cb)({type:[Number],json:{write:!0}})],B.prototype,"normal",void 0),(0,t._)([(0,o.Cb)({type:[Number],json:{write:!0}})],B.prototype,"point",void 0),B=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelSlice")],B);const se=B;var Qe=l(29840);let R=class extends((0,A.J)(x.wq)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,i]=I(this.normal);return T.BV.normalize((0,g.q9)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,i]=I(this.normal);return T.BV.normalize((0,g.q9)(i),0,!0)}};(0,t._)([(0,o.Cb)({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"enabled",void 0),(0,t._)([(0,o.Cb)({type:String,json:{origins:{service:{read:Qe.r}},write:{enabled:!0,isRequired:!0}}}),(0,a.B)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],R.prototype,"href",void 0),(0,t._)([(0,o.Cb)({type:g.z8,json:{write:{enabled:!0,isRequired:!0}}})],R.prototype,"id",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],R.prototype,"label",void 0),(0,t._)([(0,o.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],R.prototype,"orientation",null),(0,t._)([(0,o.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],R.prototype,"tilt",null),(0,t._)([(0,o.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],R.prototype,"normal",void 0),(0,t._)([(0,o.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],R.prototype,"point",void 0),(0,t._)([(0,o.Cb)({type:[g.z8],json:{write:{enabled:!0,isRequired:!0}}})],R.prototype,"sizeInPixel",void 0),(0,t._)([(0,o.Cb)({type:[se],json:{write:!0}})],R.prototype,"slices",void 0),(0,t._)([(0,o.Cb)({type:g.z8,json:{default:0,write:!0}})],R.prototype,"timeId",void 0),(0,t._)([(0,o.Cb)({type:g.z8,json:{write:{enabled:!0,isRequired:!0}}})],R.prototype,"variableId",void 0),R=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelSection")],R);const Re=R;let le=class extends x.wq{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,t._)([(0,o.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],le.prototype,"diffuseFactor",void 0),(0,t._)([(0,o.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],le.prototype,"specularFactor",void 0),le=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelSimpleShading")],le);const Me=le;let W=class extends x.wq{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,t._)([(0,o.Cb)({type:["discrete","continuous"],json:{write:!0}})],W.prototype,"continuity",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],W.prototype,"hasNoData",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:!0}})],W.prototype,"noData",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:!0}})],W.prototype,"offset",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:!0}})],W.prototype,"scale",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],W.prototype,"type",void 0),W=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelFormat")],W);const Ue=W;let M=class extends x.wq{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,t._)([(0,o.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"id",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],M.prototype,"description",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"name",void 0),(0,t._)([(0,o.Cb)({type:Ue,json:{write:!0}})],M.prototype,"originalFormat",void 0),(0,t._)([(0,o.Cb)({type:Ue,json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"renderingFormat",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],M.prototype,"unit",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:!0}})],M.prototype,"volumeId",void 0),(0,t._)([(0,o.Cb)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],M.prototype,"type",void 0),M=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelVariable")],M);const Xe=M;var ae=l(58817),k=l(91558);let Q=class extends((0,A.J)(x.wq)){constructor(){super(...arguments),this.color=k.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!0}};(0,t._)([(0,o.Cb)({type:k.Z,json:{type:[g.z8],write:{enabled:!0,isRequired:!0}}})],Q.prototype,"color",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"value",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{default:!0,write:!0}})],Q.prototype,"enabled",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],Q.prototype,"label",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{default:!1}})],Q.prototype,"colorLocked",void 0),Q=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelIsosurface")],Q);const qe=Q;var fe=l(89726),X=l(21286);let pe=class extends((0,A.J)(x.wq)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,t._)([(0,o.Cb)({type:k.Z,json:{type:[g.z8],write:{enabled:!0,isRequired:!0}}})],pe.prototype,"color",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],pe.prototype,"position",void 0),pe=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelColorStop")],pe);const Ne=pe;let ue=class extends((0,A.J)(x.wq)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,t._)([(0,o.Cb)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ue.prototype,"opacity",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelOpacityStop")],ue);const Ze=ue;let ce=class extends((0,A.J)(x.wq)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,t._)([(0,o.Cb)({type:Boolean,json:{default:!1,write:!0}})],ce.prototype,"enabled",void 0),(0,t._)([(0,o.Cb)({type:[Number],json:{write:!0}})],ce.prototype,"range",void 0),ce=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelRangeFilter")],ce);const _e=ce;var L,e;(e=L||(L={}))[e.Color=1]="Color",e[e.Alpha=2]="Alpha",e[e.Both=3]="Both";let G=class extends((0,A.J)(x.wq)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(b.Z.ofType(Ne)),this.opacityStops=new(b.Z.ofType(Ze))}set colorStops(e){this._set("colorStops",(0,fe.Z)(e,this._get("colorStops"),b.Z.ofType(Ne)))}set opacityStops(e){this._set("opacityStops",(0,fe.Z)(e,this._get("opacityStops"),b.Z.ofType(Ze)))}getPreviousNext(e,i,r){let s=e;for(;--s>0&&i[s].type!==r&&i[s].type!==L.Both;);let n=e;const c=i.length;for(;++nv.position{V.color[Pe]=Math.round((0,X.t7)(de[Pe],nt[Pe],z))})}else["r","g","b"].forEach(-1!==C?z=>{V.color[z]=r[C][z]}:z=>{V.color[z]=r[N][z]})}}for(const v of r)i.push({color:v.color,position:v.position})}i[0].position=0,i[i.length-1].position=1;let n=0,c=1;for(let h=0;hi[c].position;)n=c++;const V=(v-i[n].position)/(i[c].position-i[n].position),C=i[n].color,N=i[c].color,z=new k.Z;["r","g","b"].forEach(de=>{z[de]=Math.round((0,X.t7)(C[de],N[de],V))}),z.a=(0,X.uZ)(1-(0,X.t7)(C.a,N.a,V)/255,0,1),e.push(z)}return e}getColorForContinuousDataValue(e,i){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let s=this.stretchRange[0],n=this.stretchRange[1];if(s>n){const h=s;s=n,n=h}e=(0,X.uZ)(e,s,n);const c=r[Math.round((e-s)/(n-s)*(this._colorMapSize-1))].clone();return i||(c.a=1),c}};(0,t._)([(0,o.Cb)({type:["linear","nearest"],json:{write:!0}})],G.prototype,"interpolation",void 0),(0,t._)([(0,o.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"stretchRange",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Ne),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],G.prototype,"colorStops",null),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Ze),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],G.prototype,"opacityStops",null),(0,t._)([(0,o.Cb)({type:_e,json:{write:!0}})],G.prototype,"rangeFilter",void 0),(0,t._)([(0,o.Cb)({type:[k.Z],clonable:!1,json:{read:!1}})],G.prototype,"rasterizedTransferFunction",null),G=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelTransferFunctionStyle")],G);const ke=G;let ee=class extends((0,A.J)(x.wq)){constructor(){super(...arguments),this.color=k.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,t._)([(0,o.Cb)({type:k.Z,json:{type:[g.z8],write:{enabled:!0,isRequired:!0}}})],ee.prototype,"color",void 0),(0,t._)([(0,o.Cb)({type:g.z8,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"value",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{default:!0,write:!0}})],ee.prototype,"enabled",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],ee.prototype,"label",void 0),ee=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelUniqueValue")],ee);const Oe=ee;var Ae;let _=Ae=class extends x.wq{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(b.Z.ofType(Oe)),this.isosurfaces=new(b.Z.ofType(qe))}clone(){return new Ae({variableId:this.variableId,label:this.label,transferFunction:(0,ae.d9)(this.transferFunction),uniqueValues:(0,ae.d9)(this.uniqueValues),isosurfaces:(0,ae.d9)(this.isosurfaces)})}};(0,t._)([(0,o.Cb)({type:g.z8,json:{write:{enabled:!0,isRequired:!0}}})],_.prototype,"variableId",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],_.prototype,"label",void 0),(0,t._)([(0,o.Cb)({type:ke,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],_.prototype,"transferFunction",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Oe),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],_.prototype,"uniqueValues",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(qe),json:{write:{enabled:!0,overridePolicy(){return{enabled:(!this.uniqueValues||this.uniqueValues.length<1)&&!!this.isosurfaces&&this.isosurfaces.length>0}}}}})],_.prototype,"isosurfaces",void 0),_=Ae=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelVariableStyle")],_);const Ee=_;var Fe=l(72642),Je=l(65234),et=l(37053);let Se=class extends x.wq{constructor(){super(...arguments),this.values=null}};(0,t._)([(0,o.Cb)({type:[Number],json:{write:!0}})],Se.prototype,"values",void 0),Se=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelIrregularSpacing")],Se);const tt=Se;let ye=class extends x.wq{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,t._)([(0,o.Cb)({type:Number,json:{write:!0}})],ye.prototype,"scale",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:!0}})],ye.prototype,"offset",void 0),ye=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelRegularSpacing")],ye);const ot=ye;let D=class extends x.wq{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,t._)([(0,o.Cb)({type:tt,json:{write:!0}})],D.prototype,"irregularSpacing",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],D.prototype,"isPositiveUp",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],D.prototype,"isWrappedDateLine",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],D.prototype,"label",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],D.prototype,"name",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],D.prototype,"quantity",void 0),(0,t._)([(0,o.Cb)({type:ot,json:{write:!0}})],D.prototype,"regularSpacing",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{write:!0}})],D.prototype,"size",void 0),(0,t._)([(0,o.Cb)({type:String,json:{write:!0}})],D.prototype,"unit",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{read:!1}})],D.prototype,"isRegular",null),D=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelDimension")],D);const it=D,$e="esri.layers.voxel.VoxelVolume",We=me.Z.getLogger($e);let P=class extends x.wq{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=Je.Z.WGS84}get zDimension(){if(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),i=this.dimensions[1].getRange(),r=this.dimensions[2],s=r.isRegular?r.getRange():[0,r.size];return[e[0],i[0],s[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),i=this.dimensions[1].getRange(),r=this.dimensions[2],s=r.isRegular?r.getRange():[0,r.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let c=0;c<3;++c)n[c]<2?n[c]=1:n[c]-=1;return r.isRegular&&!r.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(i[1]-i[0])/n[1],(s[1]-s[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,i=this.dimensions[3].size>0;if(!e&&i)return"xyt";if(e&&i)return"xyzt"}return"xyz"}get sizeInVoxels(){return this.isValid?[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[this.zDimension].size]:[0,0,0]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return We.error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,et.fS)(this.spatialReference,e.spatialReference))return We.error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const i=(0,H.f)(e.x,e.y,e.z??0);(0,Z.b)(i,i,this.originInLayerSpace3D),(0,Z.C)(i,i,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const s=e.z??0,n=r.irregularSpacing.values,c=r.isPositiveUp?1:-1,h=n.reduce((v,V)=>Math.abs(c*V-s)T.BV.normalize((0,g.q9)(e),0,!0))],Y.prototype,"orientation",null),(0,t._)([(0,o.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,$.p)(e=>T.BV.normalize((0,g.q9)(e),0,!0))],Y.prototype,"tilt",null),(0,t._)([(0,o.Cb)({type:[Number],json:{write:!0}})],Y.prototype,"normal",void 0),(0,t._)([(0,o.Cb)({type:[Number],json:{write:!0}})],Y.prototype,"point",void 0),Y=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelDynamicSection")],Y);const Te=Y;var Le;let K=Le=class extends x.wq{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(b.Z.ofType(se)),this.dynamicSections=new(b.Z.ofType(Te))}set slices(e){this._set("slices",(0,fe.Z)(e,this._get("slices"),b.Z.ofType(se)))}set dynamicSections(e){this._set("dynamicSections",(0,fe.Z)(e,this._get("dynamicSections"),b.Z.ofType(Te)))}clone(){return new Le({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,ae.d9)(this.slices),dynamicSections:(0,ae.d9)(this.dynamicSections)})}};(0,t._)([(0,o.Cb)({type:g.z8,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"volumeId",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{default:1,write:!0}})],K.prototype,"verticalExaggeration",void 0),(0,t._)([(0,o.Cb)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],K.prototype,"exaggerationMode",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{default:0,write:!0}})],K.prototype,"verticalOffset",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(se),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],K.prototype,"slices",null),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Te),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],K.prototype,"dynamicSections",null),K=Le=(0,t._)([(0,f.j)("esri.layers.voxel.VoxelVolumeStyle")],K);const Ye=K,Ke="esri.layers.VoxelLayer",oe=me.Z.getLogger(Ke);let m=class extends((0,be.Vt)((0,we.Y)((0,ve.q)((0,ze.I)((0,Ie.M)((0,xe.R)((0,je.V)(Ce.Z)))))))){constructor(e){super(e),this.serviceRoot="",this.popupEnabled=!0,this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new Me,this.opacity=1,this.variables=new b.Z,this.volumes=new b.Z,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.volumeStyles=new(b.Z.ofType(Ye)),this.variableStyles=new(b.Z.ofType(Ee)),this.sections=new(b.Z.ofType(Re))}set url(e){this._set("url",(0,ge.Nm)(e,oe))}load(e){const i=(0,q.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(Ve.r9).then(()=>this._fetchService(i)).then(()=>this.serviceRoot=this.url);return this.addResolvingPromise(r),Promise.resolve(this)}read(e,i){super.read(e,i);for(const r of this.volumes)r.spatialReference=this.spatialReference}readVersion(e,i){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new U.Z("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new U.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new U.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,i,r){if(null!=e&&"object"==typeof e){const s=O.Z.fromJSON(e,r);if(0===s.zmin&&0===s.zmax&&Array.isArray(i.volumes)){const n=Ge.fromJSON(i.volumes[0]);if(n.isValid&&"xyt"!==n.volumeType){const c=n.dimensions[2];if(c.isRegular){let h=c.regularSpacing.offset,v=c.regularSpacing.offset+c.regularSpacing.scale*(c.size-1);if(h>v){const V=h;h=v,v=V}s.zmin=h,s.zmax=v}}}return s}return null}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index.isValid()?JSON.stringify(e):""}getVariableStyle(e){let i=-1;if(i=(0,q.pC)(e)?e:this.currentVariableId,!this.variableStyles||-1===i)return null;const r=this.variableStyles.findIndex(s=>s.variableId===i);return r<0?null:this.variableStyles.getItemAt(r)}getVariable(e){let i=-1;if(i=(0,q.pC)(e)?e:this.currentVariableId,!this.variables||-1===i)return null;const r=this.variables.findIndex(s=>s.id===i);return r<0?null:this.variables.getItemAt(r)}getVolume(e){const i=this.getVariable(e);return(0,q.pC)(i)?this.volumes.find(({id:r})=>r===i.volumeId):null}getVolumeStyle(e){const i=this.getVariable(e);return(0,q.pC)(i)?this.volumeStyles.find(({volumeId:r})=>r===i.volumeId):null}getColorForContinuousDataValue(e,i,r){const s=this.getVariable(e);if(!(0,q.pC)(s)||"continuous"!==s.renderingFormat.continuity||!this.variableStyles)return null;const n=this.variableStyles.findIndex(h=>h.variableId===e);if(n<0)return null;const c=this.variableStyles.getItemAt(n);return c.transferFunction?c.transferFunction.getColorForContinuousDataValue(i,r):null}getSections(){const e=[];for(const i of this.sections)e.push(new Re({enabled:i.enabled,href:i.href,id:i.id,label:i.label,normal:i.normal,point:i.point,sizeInPixel:i.sizeInPixel,slices:i.slices,timeId:i.timeId,variableId:i.variableId}));return e}getVariableStyles(){const e=[];for(const i of this.variableStyles){const r=this._getVariable(i);if((0,q.pC)(r)){const s=i.clone();s.isosurfaces.length>4&&(s.isosurfaces=s.isosurfaces.slice(0,3),oe.error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const n of s.isosurfaces)if(n.colorLocked){const c=this.getColorForContinuousDataValue(s.variableId,n.value,!1);null===c||c.equals(n.color)||(n.color=c)}if("continuous"===r.renderingFormat.continuity)(null===s.transferFunction||s.transferFunction.colorStops.length<2)&&oe.error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==s.transferFunction&&(Array.isArray(s.transferFunction.stretchRange)&&2===s.transferFunction.stretchRange.length||(oe.error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),s.transferFunction.stretchRange=[0,1],s.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===i.uniqueValues.length)oe.error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const n of i.uniqueValues)null!=n.label||null==n.value||(n.label=n.value.toString());e.push(s)}else oe.error(`VoxelVariable ID=${i.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const i of this.volumeStyles){const r=this._getVolumeFromVolumeId(i.volumeId);if((0,q.pC)(r)){const s=i.clone();for(const n of s.slices)this._isPlaneValid(n,[0,1,r.zDimension],r.dimensions)||(n.enabled=!1,n.label="invalid");for(const n of s.dynamicSections)this._isPlaneValid(n,[0,1,r.zDimension],r.dimensions)||(n.enabled=!1,n.label="invalid");e.push(s)}else oe.error(`VoxelVolume ID=${i.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const i=e.variableId;for(const r of this.variables)if(r.id===i)return r;return null}_getVolumeFromVolumeId(e){for(const i of this.volumes)if(i.id===e)return i;return null}_isPlaneValid(e,i,r){if(!(e.point&&Array.isArray(e.point)&&3===e.point.length&&e.normal&&Array.isArray(e.normal)&&3===e.normal.length))return!1;for(let c=0;c<3;++c){const h=e.point[c];if(h<0||h>=r[i[c]].size)return!1}const s=(0,H.f)(e.normal[0],e.normal[1],e.normal[2]);return(0,Z.n)(s,s),!(Math.abs(s[0])+Math.abs(s[1])+Math.abs(s[2])<1e-6||(e.normal[0]=s[0],e.normal[1]=s[1],e.normal[2]=s[2],0))}};(0,t._)([(0,o.Cb)(ne.C_)],m.prototype,"popupEnabled",void 0),(0,t._)([(0,o.Cb)({type:["Voxel"]})],m.prototype,"operationalLayerType",void 0),(0,t._)([(0,o.Cb)(ne.rn)],m.prototype,"legendEnabled",void 0),(0,t._)([(0,o.Cb)({json:{write:!0}})],m.prototype,"title",void 0),(0,t._)([(0,o.Cb)(ne.HQ)],m.prototype,"url",null),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Re),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],m.prototype,"sections",void 0),(0,t._)([(0,o.Cb)({type:g.z8,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],m.prototype,"currentVariableId",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Ye),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],m.prototype,"volumeStyles",void 0),(0,t._)([(0,o.Cb)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],m.prototype,"renderMode",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Ee),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],m.prototype,"variableStyles",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],m.prototype,"enableSlices",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],m.prototype,"enableSections",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],m.prototype,"enableDynamicSections",void 0),(0,t._)([(0,o.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],m.prototype,"enableIsosurfaces",void 0),(0,t._)([(0,o.Cb)({type:Me,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],m.prototype,"shading",void 0),(0,t._)([(0,o.Cb)({type:["show","hide"]})],m.prototype,"listMode",void 0),(0,t._)([(0,o.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],m.prototype,"opacity",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Xe)})],m.prototype,"variables",void 0),(0,t._)([(0,o.Cb)({type:b.Z.ofType(Ge)})],m.prototype,"volumes",void 0),(0,t._)([(0,o.Cb)({type:rt})],m.prototype,"index",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{name:"layerDefinition.minScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],m.prototype,"minScale",void 0),(0,t._)([(0,o.Cb)({type:Number,json:{name:"layerDefinition.maxScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],m.prototype,"maxScale",void 0),(0,t._)([(0,o.Cb)({json:{read:!1},readOnly:!0})],m.prototype,"type",void 0),(0,t._)([(0,o.Cb)({readOnly:!0,json:{name:"serviceVersion"}})],m.prototype,"version",void 0),(0,t._)([(0,ie.r)("service","version")],m.prototype,"readVersion",null),(0,t._)([(0,o.Cb)({type:O.Z})],m.prototype,"fullExtent",void 0),(0,t._)([(0,ie.r)("service","fullExtent",["fullExtent"])],m.prototype,"readFullExtent",null),m=(0,t._)([(0,f.j)(Ke)],m);const st=m}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6072.89fba89aca1f9f5f.js b/apps/n/porrtal-io-app/public/angular/6072.89fba89aca1f9f5f.js deleted file mode 100644 index 3bc9592a..00000000 --- a/apps/n/porrtal-io-app/public/angular/6072.89fba89aca1f9f5f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6072],{79767:(W,Z,k)=>{k.d(Z,{Z:()=>l});var _=k(17626),P=k(2076),S=k(77712),$=(k(85931),k(90912),k(76898)),N=k(86810),U=k(79023),G=k(10012);const L=new P.X({classBreaksDef:"class-breaks-definition",uniqueValueDef:"unique-value-definition"});let E=class extends N.wq{constructor(){super(...arguments),this.baseSymbol=null,this.colorRamp=null,this.type=null}};(0,_._)([(0,S.Cb)({type:G.Z,json:{write:!0}})],E.prototype,"baseSymbol",void 0),(0,_._)([(0,S.Cb)({types:U.V,json:{read:{reader:U.i},write:!0}})],E.prototype,"colorRamp",void 0),(0,_._)([(0,S.Cb)({json:{read:L.read,write:L.write}})],E.prototype,"type",void 0),E=(0,_._)([(0,$.j)("esri.rest.support.ClassificationDefinition")],E);const A=E,X=new P.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),O=new P.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let C=class extends A{constructor(){super(...arguments),this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null,this.type="class-breaks-definition"}set standardDeviationInterval(r){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",r)}set definedInterval(r){"defined-interval"===this.classificationMethod&&this._set("definedInterval",r)}};(0,_._)([(0,S.Cb)({json:{write:!0}})],C.prototype,"breakCount",void 0),(0,_._)([(0,S.Cb)({json:{write:!0}})],C.prototype,"classificationField",void 0),(0,_._)([(0,S.Cb)({type:String,json:{read:X.read,write:X.write}})],C.prototype,"classificationMethod",void 0),(0,_._)([(0,S.Cb)({json:{write:!0}})],C.prototype,"normalizationField",void 0),(0,_._)([(0,S.Cb)({json:{read:O.read,write:O.write}})],C.prototype,"normalizationType",void 0),(0,_._)([(0,S.Cb)({value:null,json:{write:!0}})],C.prototype,"standardDeviationInterval",null),(0,_._)([(0,S.Cb)({value:null,json:{write:!0}})],C.prototype,"definedInterval",null),(0,_._)([(0,S.Cb)()],C.prototype,"type",void 0),C=(0,_._)([(0,$.j)("esri.rest.support.ClassBreaksDefinition")],C);const l=C},19556:(W,Z,k)=>{k.d(Z,{k:()=>K});const P=k(63290).Z.getLogger("esri.rest.support.generateRendererUtils");function S(l,r){return Number(l.toFixed(r))}function K(l){const{normalizationTotal:r}=l;return{classBreaks:$(l),normalizationTotal:r}}function $(l){const r=l.definition,{classificationMethod:i,breakCount:u,normalizationType:c,definedInterval:g}=r,h=[];let s=l.values;if(0===s.length)return[];s=s.sort((d,V)=>d-V);const y=s[0],T=s[s.length-1];if("equal-interval"===i)if(s.length>=u){const d=(T-y)/u;let V=y;for(let o=1;o{h.push({minValue:d,maxValue:d,label:N(d,d,c)})});else if("natural-breaks"===i){const d=function U(l){const r=[],i=[];let u=Number.MIN_VALUE,c=1,g=-1;for(let h=0;hu&&(i=u);for(let h=0;h0;o--)for(;i[o]!==i[o-1]+1;){i[o]=i[o]-1;const n=C(o-1,i,u,c);y=n.sbMean,h=n.sbSdcm;const m=C(o,i,u,c);if(T=m.sbMean,s=m.sbSdcm,!(h+sm){const w=S(d.uniqueValues[o[m]],6);h.push({minValue:n,maxValue:w,label:N(n,w,c)}),n=w}h.push({minValue:n,maxValue:T,label:N(n,T,c)})}else if("quantile"===i)if(s.length>=u&&y!==T){let d=y,V=Math.ceil(s.length/u),o=0;for(let n=1;ns.length&&(m=s.length-1),m<0&&(m=0),h.push({minValue:d,maxValue:s[m],label:N(d,s[m],c)}),d=s[m],o+=V,V=Math.ceil((s.length-o)/(u-n))}h.push({minValue:d,maxValue:T,label:N(d,T,c)})}else{let d=-1;for(let V=0;V=1?1:g>=.5?.5:.25,g}(y,T,u,d,V)*V;let n=0,m=y;for(let q=u;q>=1;q--){const e=S(d-(q-.5)*o,6);h.push({minValue:m,maxValue:e,label:N(m,e,c)}),m=e,n++}let w=S(d+.5*o,6);h.push({minValue:m,maxValue:w,label:N(m,w,c)}),m=w,n++;for(let q=1;q<=u;q++)w=n===2*u?T:S(d+(q+.5)*o,6),h.push({minValue:m,maxValue:w,label:N(m,w,c)}),m=w,n++}}else if("defined-interval"===i){if(!g)return h;const d=s[0],V=s[s.length-1],o=Math.ceil((V-d)/g);let n=d;for(let m=1;m0&&m!==l[n+1]&&Math.abs(d-y[n])>Math.abs(d-y[n-1]))l[n]=m;else if(nMath.abs(d-y[n+1])){l[n+1]=m-1;break}V=s,s=0,g=[],h=[];for(let n=0;nV){for(let n=0;n{k.d(Z,{DL:()=>o,F_:()=>c,G2:()=>T,H0:()=>X,Lq:()=>l,Qm:()=>s,S5:()=>A,XL:()=>C,eT:()=>g,fk:()=>y,i5:()=>O,oF:()=>n,wk:()=>E});var _=k(79767),P=k(19556);const U=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,G=new Set(["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]),L=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function E(e){return null==e||"string"==typeof e&&!e?"":e}function A(e){return!(null!=e.normalizationField||null!=e.normalizationType||null!=e.minValue||null!=e.maxValue||e.sqlExpression&&e.supportsSQLExpression)}function X(e){const t=e.returnDistinct?[...new Set(e.values)]:e.values,a=t.filter(v=>null!=v).length,f={count:a};return e.supportsNullCount&&(f.nullcount=t.length-a),e.percentileParams&&(f.median=C(t,e.percentileParams)),f}function O(e){const{values:t,useSampleStdDev:a,supportsNullCount:f}=e;let v=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,b=null,x=null,D=null,z=null,M=0;const F=e.minValue??-1/0,B=e.maxValue??1/0;for(const I of t)Number.isFinite(I)?I>=F&&I<=B&&(b+=I,v=Math.min(v,I),p=Math.max(p,I),M++):"string"==typeof I&&M++;if(M&&null!=b){x=b/M;let I=0;for(const R of t)Number.isFinite(R)&&R>=F&&R<=B&&(I+=(R-x)**2);z=a?M>1?I/(M-1):0:M>0?I/M:0,D=Math.sqrt(z)}else v=null,p=null;const j={avg:x,count:M,max:p,min:v,stddev:D,sum:b,variance:z};return f&&(j.nullcount=t.length-M),e.percentileParams&&(j.median=C(t,e.percentileParams)),j}function C(e,t){const{fieldType:a,value:f,orderBy:v,isDiscrete:p}=t,b=l(a,"desc"===v);if(0===(e=[...e].filter(j=>null!=j).sort((j,I)=>b(j,I))).length)return null;if(f<=0)return e[0];if(f>=1)return e[e.length-1];const x=(e.length-1)*f,D=Math.floor(x),z=D+1,M=x%1,F=e[D],B=e[z];return z>=e.length||p||"string"==typeof F||"string"==typeof B?F:F*(1-M)+B*M}function l(e,t){const a=t?1:-1,f=function i(e){return e?(t,a)=>a-t:(t,a)=>t-a}(t),v=r(t);if(!e||!["esriFieldTypeDate","esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...G].includes(e))return(p,b)=>"number"==typeof p&&"number"==typeof b?f(p,b):"string"==typeof p&&"string"==typeof b?v(p,b):a;if("esriFieldTypeDate"===e)return(p,b)=>{const x=new Date(p).getTime(),D=new Date(b).getTime();return isNaN(x)||isNaN(D)?a:f(x,D)};if(G.has(e))return(p,b)=>f(p,b);if("esriFieldTypeString"===e)return(p,b)=>v(p,b);if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e){const p=r(t);return(b,x)=>p(u(b),u(x))}return t?(p,b)=>1:(p,b)=>-1}function r(e){return e?(t,a)=>(t=t?.toUpperCase(),a=a?.toUpperCase(),t>a?-1:t(t=t?.toUpperCase(),a=a?.toUpperCase(),ta?1:0)}function u(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function c(e,t){let a;for(a in e)L.includes(a)&&(Number.isFinite(e[a])||(e[a]=null));return t&&["avg","stddev","variance"].forEach(f=>{null!=e[f]&&(e[f]=Math.ceil(e[f]))}),e}function g(e){const t={};for(let a of e)(null==a||"string"==typeof a&&""===a.trim())&&(a=null),null==t[a]?t[a]={count:1,data:a}:t[a].count++;return{count:t}}function h(e){return"coded-value"!==e?.type?[]:e.codedValues.map(t=>t.code)}function s(e,t,a,f){const v=e.count,p=[];if(a&&t){const b=[],x=h(t[0]);for(const D of x)if(t[1]){const z=h(t[1]);for(const M of z)if(t[2]){const F=h(t[2]);for(const B of F)b.push(`${E(D)}${f}${E(M)}${f}${E(B)}`)}else b.push(`${E(D)}${f}${E(M)}`)}else b.push(D);for(const D of b)v.hasOwnProperty(D)||(v[D]={data:D,count:0})}for(const b in v){const x=v[b];p.push({value:x.data,count:x.count,label:x.label})}return{uniqueValueInfos:p}}function y(e,t,a,f){let v=null;switch(t){case"log":0!==e&&(v=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(f)&&0!==f&&(v=e/f*100);break;case"field":Number.isFinite(a)&&0!==a&&(v=e/a);break;case"natural-log":e>0&&(v=Math.log(e));break;case"square-root":e>0&&(v=e**.5)}return v}function T(e,t){const a=function V(e){const t=e.field,a=e.classificationMethod||"equal-interval",f=e.normalizationType,v=e.normalizationField,p=new _.Z;return p.classificationField=t,p.breakCount=e.breakCount,p.classificationMethod=a,p.standardDeviationInterval="standard-deviation"===a?e.standardDeviationInterval||1:void 0,p.normalizationType=f,p.normalizationField="field"===f?v:void 0,p}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,breakCount:t.numClasses||5});return e=function d(e,t,a){return t=t??-1/0,a=a??1/0,e.filter(f=>Number.isFinite(f)&&f>=t&&f<=a)}(e,t.minValue,t.maxValue),(0,P.k)({definition:a,values:e,normalizationTotal:t.normalizationTotal})}function o(e,t){let a=e.classBreaks;const v=a[0].minValue,p=a[a.length-1].maxValue,b="standard-deviation"===t,x=U;return a=a.map(D=>{const z=D.label,M={minValue:D.minValue,maxValue:D.maxValue,label:z};if(b&&z){const F=z.match(x).map(B=>+B.trim());2===F.length?(M.minStdDev=F[0],M.maxStdDev=F[1],F[0]<0&&F[1]>0&&(M.hasAvg=!0)):1===F.length&&(z.includes("<")?(M.minStdDev=null,M.maxStdDev=F[0]):z.includes(">")&&(M.minStdDev=F[0],M.maxStdDev=null))}return M}),{minValue:v,maxValue:p,classBreakInfos:a,normalizationTotal:e.normalizationTotal}}function n(e,t){const{min:a,max:f,intervals:v}=function m(e,t){const{field:a,classificationMethod:f,standardDeviationInterval:v,normalizationType:p,normalizationField:b,normalizationTotal:x,minValue:D,maxValue:z}=t,M=t.numBins||10;let F=null,B=null,j=null;if(f&&"equal-interval"!==f||p){const{classBreaks:I}=T(e,{field:a,normalizationType:p,normalizationField:b,normalizationTotal:x,classificationMethod:f,standardDeviationInterval:v,minValue:D,maxValue:z,numClasses:M});F=I[0].minValue,B=I[I.length-1].maxValue,j=I.map(R=>[R.minValue,R.maxValue])}else{if(null!=D&&null!=z)F=D,B=z;else{const I=O({values:e,minValue:D,maxValue:z,useSampleStdDev:!p,supportsNullCount:A({normalizationType:p,normalizationField:b,minValue:D,maxValue:z})});F=I.min,B=I.max}j=function q(e,t,a){const f=(t-e)/a,v=[];let p,b=e;for(let x=1;x<=a;x++)p=b+f,p=Number(p.toFixed(16)),v.push([b,x===a?t:p]),b=p;return v}(F,B,M)}return{min:F,max:B,intervals:j}}(e,t),p=v.map((b,x)=>({minValue:v[x][0],maxValue:v[x][1],count:0}));for(const b of e)if(null!=b&&b>=a&&b<=f){const x=w(v,b);x>-1&&p[x].count++}return{bins:p,minValue:a,maxValue:f,normalizationTotal:t.normalizationTotal}}function w(e,t){let a=-1;for(let f=e.length-1;f>=0;f--)if(t>=e[f][0]){a=f;break}return a}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6079.2303ba66ba9a3edc.js b/apps/n/porrtal-io-app/public/angular/6079.2303ba66ba9a3edc.js deleted file mode 100644 index 2077eb2c..00000000 --- a/apps/n/porrtal-io-app/public/angular/6079.2303ba66ba9a3edc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6079],{86079:(h,l,i)=>{i.r(l),i.d(l,{s:()=>f});var p,m,e,d=i(1719),t={exports:{}};p=t,void 0!==(e=t.exports,Object.defineProperty(e,"__esModule",{value:!0}),m=void(e.default={_decimalSeparator:",",_thousandSeparator:" ",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"yyyy-MM-dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"e.Kr.",_era_bc:"f.Kr.",A:"fm",P:"em",AM:"fm",PM:"em","A.M.":"f.m.","P.M.":"e.m.",January:"januari",February:"februari",March:"mars",April:"april",May:"maj",June:"juni",July:"juli",August:"augusti",September:"september",October:"oktober",November:"november",December:"december",Jan:"jan.",Feb:"feb.",Mar:"mars",Apr:"apr.","May(short)":"maj",Jun:"juni",Jul:"juli",Aug:"aug.",Sep:"sep.",Oct:"okt.",Nov:"nov.",Dec:"dec.",Sunday:"s\xf6ndag",Monday:"m\xe5ndag",Tuesday:"tisdag",Wednesday:"onsdag",Thursday:"torsdag",Friday:"fredag",Saturday:"l\xf6rdag",Sun:"s\xf6n",Mon:"m\xe5n",Tue:"tis",Wed:"ons",Thu:"tor",Fri:"fre",Sat:"l\xf6r",_dateOrd:function(n){return""},"Zoom Out":"Zooma ut",Play:"Spela",Stop:"Stoppa",Legend:"Teckenf\xf6rklaring","Click, tap or press ENTER to toggle":"Klicka eller tryck ENTER f\xf6r att \xe4ndra",Loading:"L\xe4ser in",Home:"Hem",Chart:"Diagram","Serial chart":"Seriediagram","X/Y chart":"XY-diagram","Pie chart":"T\xe5rtdiagram","Gauge chart":"Instrumentdiagram","Radar chart":"Radardiagram","Sankey diagram":"Sankeydiagram","Chord diagram":"Str\xe4ngdiagram","Flow diagram":"Fl\xf6desschema","TreeMap chart":"Tr\xe4ddiagram ",Series:"Serier","Candlestick Series":"Candlestick-serier","Column Series":"Kolumnserier","Line Series":"Linjeserier","Pie Slice Series":"T\xe5rtserier","X/Y Series":"X/Y-serier",Map:"Karta","Press ENTER to zoom in":"Tryck RETUR f\xf6r att zooma in","Press ENTER to zoom out":"Tryck RETUR f\xf6r att zooma ut","Use arrow keys to zoom in and out":"Anv\xe4nd pil-knapparna f\xf6r att zooma in och ut","Use plus and minus keys on your keyboard to zoom in and out":"Anv\xe4nd plus- och minus-knapparna f\xf6r att zooma in och ut",Export:"Exportera",Image:"Bild",Data:"Data",Print:"Skriv ut","Click, tap or press ENTER to open":"Klicka eller tryck ENTER f\xf6r att \xf6ppna","Click, tap or press ENTER to print.":"Klicka eller tryck ENTER f\xf6r att skriva ut.","Click, tap or press ENTER to export as %1.":"Klicka eller tryck ENTER f\xf6r att exportera till %1.",'To save the image, right-click this link and choose "Save picture as..."':'F\xf6r att spara bilden, h\xf6ger-klicka l\xe4nken och v\xe4lj "Spara bild som..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'F\xf6r att spara bilden, h\xf6ger-klicka miniatyrbilden till v\xe4nster och v\xe4lj "Spara bild som..."',"(Press ESC to close this message)":"(Tryck ESC f\xf6r att st\xe4nga)","Image Export Complete":"Bildexport klar","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"Sparad fr\xe5n",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"Anv\xe4nd v\xe4nster och h\xf6ger pilknappar f\xf6r att flytta urvalet","Use left and right arrows to move left selection":"Anv\xe4nd v\xe4nster och h\xf6ger pilknappar f\xf6r att flytta v\xe4nsterurval","Use left and right arrows to move right selection":"Anv\xe4nd v\xe4nster och h\xf6ger pilknappar f\xf6r att flytta h\xf6gerurval","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"Anv\xe4nd upp och ner pilknappar f\xf6r att flytta urvalet","Use up and down arrows to move lower selection":"Anv\xe4nd upp och ner pilknappar f\xf6r att flytta nedre urvalet","Use up and down arrows to move upper selection":"Anv\xe4nd upp och ner pilknappar f\xf6r att flytta \xf6vre urvalet","From %1 to %2":"Fr\xe5n %1 till %2","From %1":"Fr\xe5n %1","To %1":"Till %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"Ogiltigt datum"}))&&(p.exports=m);const f=function g(o,e){for(var n=0;nr[a]})}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6212.4c9b2d89bda92aec.js b/apps/n/porrtal-io-app/public/angular/6212.4c9b2d89bda92aec.js deleted file mode 100644 index 1d18ac43..00000000 --- a/apps/n/porrtal-io-app/public/angular/6212.4c9b2d89bda92aec.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6212],{50978:(Ae,K,n)=>{n.d(K,{M:()=>ae,b:()=>U});var o=n(2166),_=n(69960),l=n(65787),d=n(17625),ve=n(22355),I=n(16396);function U(re){const L=new ve.kG,{vertex:D,fragment:Y}=L;(0,o.Sv)(D,re),D.uniforms.add(new l.p("width",g=>g.width)),L.attributes.add(I.T.POSITION,"vec3"),L.attributes.add(I.T.NORMAL,"vec3"),L.attributes.add(I.T.UV0,"vec2"),L.attributes.add(I.T.AUXPOS1,"float"),L.varyings.add("vtc","vec2"),L.varyings.add("vlength","float"),L.varyings.add("vradius","float"),D.code.add(d.H`void main(void) { -vec3 bitangent = normal; -vtc = uv0; -vlength = auxpos1; -vradius = 0.5 * width; -vec4 pos = view * vec4(position + vradius * bitangent * uv0.y, 1.0); -gl_Position = proj * pos; -}`),Y.uniforms.add([new l.p("outlineSize",g=>g.outlineSize),new _.N("outlineColor",g=>g.outlineColor),new l.p("stripeLength",g=>g.stripeLength),new _.N("stripeEvenColor",g=>g.stripeEvenColor),new _.N("stripeOddColor",g=>g.stripeOddColor)]);const M=1/Math.sqrt(2);return Y.code.add(d.H` - const float INV_SQRT2 = ${d.H.float(M)}; - - vec4 arrowColor(vec2 tc, float len) { - float d = INV_SQRT2 * (tc.x - abs(tc.y)); - d = min(d, INV_SQRT2 * (len - tc.x - abs(tc.y))); - d = min(d, 1.0 - abs(tc.y)); - - if (d < 0.0) { - return vec4(0.0); - } else if (d < outlineSize) { - return outlineColor; - } else { - return fract(0.5 / stripeLength * tc.x * vradius) >= 0.5 ? stripeOddColor : stripeEvenColor; - } - } - - void main(void) { - vec2 ntc = vec2(vtc.x / vradius, vtc.y); - vec4 color = arrowColor(ntc, vlength / vradius); - if (color.a == 0.0) { - discard; - } - gl_FragColor = color; - } - `),L}const ae=Object.freeze(Object.defineProperty({__proto__:null,build:U},Symbol.toStringTag,{value:"Module"}))},96212:(Ae,K,n)=>{n.r(K),n.d(K,{default:()=>gt});var o=n(17626),_=n(14517),l=n(62208),d=n(77712),U=(n(85931),n(90912),n(76898)),ae=n(39691),re=n(1437),L=n(74554),D=n(72392),Y=n(63290),M=n(15572),g=n(32917),w=n(84161),P=n(28093),Ee=n(44766),Oe=n(55214),T=n(55915),oe=n(12080),Q=n(10049),pe=n(54865),Me=n(68);const me="esri.views.3d.analysis.DirectLineMeasurement.DirectLineMeasurementController",Ve=Y.Z.getLogger(me);let R=class extends _.Z{constructor(t){super(t),this._unitNormalizer=new Me.D,this._handles=new D.Z,this._tempStartPosition=(0,P.c)(),this._tempEndPosition=(0,P.c)(),this._tempCornerPosition=(0,P.c)()}initialize(){const t=this.view.spatialReference,e=(0,oe.rS)(t),i=e===oe.GG?oe.wY:e;this._sphericalPCPF=i;const s=(0,T.Up)(t,i);this._unitNormalizer.spatialReference=s?i:t,this._handles.add([(0,g.YP)(()=>({viewData:this.viewData,startPoint:this.analysis.startPoint}),({viewData:a,startPoint:r})=>{a.elevationAlignedStartPoint=this._applyProjectionAndElevationAlignment(r)},g.tX),(0,g.YP)(()=>({viewData:this.viewData,endPoint:this.analysis.endPoint}),({viewData:a,endPoint:r})=>{a.elevationAlignedEndPoint=this._applyProjectionAndElevationAlignment(r)},g.tX),(0,g.YP)(()=>({result:this._computedResult,viewData:this.viewData}),({result:a,viewData:r})=>{r.result=a},g.tX)])}destroy(){this._handles=(0,l.SC)(this._handles)}_applyProjectionAndElevationAlignment(t){if((0,l.Wi)(t))return t;const e=(0,pe.G)(t,this.view.spatialReference,this.view.elevationProvider);return(0,l.Wi)(e)?((0,pe.e)(this.analysis,t.spatialReference,Ve),null):e}get _computedResult(){const{elevationAlignedStartPoint:t,elevationAlignedEndPoint:e,measurementMode:i}=this.viewData;if((0,l.Wi)(t)||(0,l.Wi)(e))return null;const s=this._euclideanDistances(t,e),a=this._geodesicDistance(t,e,s.horizontal.value),r=i===L.e.Geodesic||i===L.e.Auto&&s.horizontal.value>1e5?"geodesic":"euclidean";return{mode:r,distance:"euclidean"===r?s.direct:a,directDistance:s.direct,horizontalDistance:s.horizontal,verticalDistance:s.vertical,geodesicDistance:a}}_euclideanDistances(t,e){const i=t.clone();i.z=e.z;const s=this._tempStartPosition,a=this._tempEndPosition,r=this._tempCornerPosition,u=this.view.spatialReference,c=this._sphericalPCPF,h=(0,T.Up)(u,c)?c:u;(0,T.KC)(t,s,h),(0,T.KC)(e,a,h),(0,T.KC)(i,r,h);const v=(0,w.i)(s,a),p=(0,w.i)(r,a),b=Math.abs(e.z-t.z),f=te=>this._unitNormalizer.normalizeDistance(te),S=f(v),H=f(p),ee=f(b);return{direct:(0,M.EV)(S,"meters"),horizontal:(0,M.EV)(H,"meters"),vertical:(0,M.EV)(ee,"meters")}}_geodesicDistance(t,e,i){const s=t.spatialReference,a=new Oe.Z({spatialReference:s});a.addPath([t,e]);const r=s.isGeographic&&(0,Q.Gb)(s)?(0,Q.Jf)([a],"meters")[0]:s.isWebMercator?(0,Ee.geodesicLength)(a,"meters"):null,u=(0,l.pC)(r)?r:this._fallbackGeodesicDistance(t,e,i);return(0,M.EV)(u,"meters")}_fallbackGeodesicDistance(t,e,i){if((0,T.UY)(t,ye)&&(0,T.UY)(e,Ce)){const s=new Q._q;return(0,Q.cA)(s,ye,Ce),s.distance}return i}};(0,o._)([(0,d.Cb)()],R.prototype,"view",void 0),(0,o._)([(0,d.Cb)()],R.prototype,"analysis",void 0),(0,o._)([(0,d.Cb)()],R.prototype,"viewData",void 0),(0,o._)([(0,d.Cb)()],R.prototype,"_computedResult",null),R=(0,o._)([(0,U.j)(me)],R);const ye=(0,P.c)(),Ce=(0,P.c)();var y,O,t,_e=n(15861),j=n(91558),V=(n(52515),n(51819)),W=n(21286),A=n(84600),F=n(23841),be=n(16730),we=n(67831);(t=y||(y={}))[t.None=0]="None",t[t.Direct=1]="Direct",t[t.Triangle=2]="Triangle",t[t.ProjectedGeodesic=3]="ProjectedGeodesic",function(t){t[t.Auto=0]="Auto",t[t.AboveSegment=1]="AboveSegment",t[t.BelowSegment=2]="BelowSegment"}(O||(O={}));var le=n(495),Z=n(68063),J=n(87469),De=n(43703),N=n(4794),$=n(26242),Te=n(53928),Re=n(57521),x=n(40723),xe=n(19625),Ge=n(13934),Ue=n(60881),je=n(5894),z=n(16396),We=n(651),Ne=n(91056),de=n(87601),He=n(39114),Pe=n(88569),Be=n(12407),he=n(44835),Ie=n(41528),Fe=n(50978),Le=n(67969),ce=n(2078);class k extends Ne.A{constructor(e,i,s){super(e,i,s)}initializeProgram(e){return new Be.$(e.rctx,k.shader.get().build(this.configuration),He.i)}_setPipelineState(e){return(0,ce.sm)({blending:this.configuration.transparent?e===he.A.NONE?Pe.wu:(0,Pe.j7)(e):null,polygonOffset:this.configuration.polygonOffsetEnabled&&{factor:0,units:-4},depthTest:{func:Le.wb.LESS},depthWrite:ce.LZ,colorWrite:ce.BK})}initializePipeline(){return this._setPipelineState(this.configuration.transparencyPassType)}get primitiveType(){return Le.MX.TRIANGLE_STRIP}}k.shader=new We.J(Fe.M,()=>n.e(3368).then(n.bind(n,3368)));class q extends Ie.W{constructor(){super(...arguments),this.polygonOffsetEnabled=!1,this.transparent=!1,this.transparencyPassType=he.A.NONE}}(0,o._)([(0,de.o)()],q.prototype,"polygonOffsetEnabled",void 0),(0,o._)([(0,de.o)()],q.prototype,"transparent",void 0),(0,o._)([(0,de.o)({count:he.A.COUNT})],q.prototype,"transparencyPassType",void 0);class Ze extends x.F5{constructor(e){super(e,new Ke),this._configuration=new q}getConfiguration(e,i){return this._configuration.polygonOffsetEnabled=this.parameters.polygonOffset,this._configuration.transparent=this.parameters.stripeEvenColor[3]<1||this.parameters.stripeOddColor[3]<1||this.parameters.outlineColor[3]<1,this._configuration.transparencyPassType=i.transparencyPassType,this._configuration}dispose(){}intersect(){}requiresSlot(e,i){return i===Ge.H.Color&&e===je.r.OPAQUE_MATERIAL}createGLMaterial(e){return new Xe(e)}createBufferWriter(){return new et}}class Xe extends Ue.Z{beginSlot(e){return this.ensureTechnique(k,e)}}class Ke extends x.Mt{constructor(){super(...arguments),this.width=32,this.outlineSize=.2,this.outlineColor=(0,N.f)(1,.5,0,1),this.stripeEvenColor=(0,N.f)(1,1,1,1),this.stripeOddColor=(0,N.f)(1,.5,0,1),this.stripeLength=1,this.polygonOffset=!1}}const Ye=(0,xe.U$)().vec3f(z.T.POSITION).vec3f(z.T.NORMAL).vec2f(z.T.UV0).f32(z.T.AUXPOS1),Qe=(0,P.c)(),Je=(0,P.c)(),$e=(0,P.c)(),ke=(0,P.c)(),qe=(0,P.c)();class et{constructor(){this.vertexBufferLayout=Ye}allocate(e){return this.vertexBufferLayout.createBuffer(e)}elementCount(e){return 2*(e.indices.get(z.T.POSITION).length/2+1)}write(e,i,s,a,r){const u=s.vertexAttributes.get(z.T.POSITION).data,c=s.vertexAttributes.get(z.T.NORMAL).data,h=u.length/3,v=s&&s.indices&&s.indices.get(z.T.POSITION);v&&v.length!==2*(h-1)&&console.warn("MeasurementArrowMaterial does not support indices");const p=Qe,b=Je,f=$e,S=ke,H=qe,ee=a.position,te=a.normal,ie=a.uv0;let se=0;for(let E=0;Ethis.view.state.camera,()=>{this._viewChanged()}))}destroyExternalResources(){this._arrowMaterial=null,this._handles.destroy(),this._handles=null}forEachExternalMaterial(e){e(this._arrowMaterial)}createGeometries(e){if((0,l.Wi)(this._geometry)||(0,l.Wi)(this._geometry.startRenderSpace)||(0,l.Wi)(this._geometry.endRenderSpace))return;const i=this._createArrowGeometry(this._geometry.startRenderSpace,this._geometry.endRenderSpace,this._origin,this._geometry);e.addGeometry(i,this._arrowMaterial,this._originTransform),this._viewChanged()}_createArrowGeometry(e,i,s,a){const r=this.view.renderCoordsHelper,u=[],c=[],h=(v,p)=>{const b=$.WM.get();(0,w.b)(b,v,s),u.push(b),c.push(p)};if("euclidean"===a.type){a.eval(.5,this._arrowCenter);const v=$.WM.get();r.worldUpAtPosition(this._arrowCenter,v),h(e,v),h(i,v)}else{a.eval(.5,this._arrowCenter);const v=this._parameters.arrowSubdivisions+1&-2;for(let p=0;p{const{elevationAlignedStartPoint:r,elevationAlignedEndPoint:u}=this.analysisView,c=this.view;return{view:c,camera:c.state.camera,viewMode:this.viewMode,elevationAlignedStartPoint:r,elevationAlignedEndPoint:u,orientation:this._actualVisualElementsOrientation,visualizedMeasurement:this.actualVisualizedMeasurement,stripeLength:this._measurementArrowStripeLength}},r=>this._updateGeometryAndViewMode(r),g.tX),(0,g.YP)(()=>({visible:this.visible,viewMode:this.viewMode}),r=>this._updateVisualElementVisibility(r),g.tX),(0,g.YP)(()=>({text:this._labelsText,visualizedMeasurement:this.actualVisualizedMeasurement}),r=>this._updateLabelText(r),g.tX),(0,g.YP)(()=>({visible:this.visible,viewMode:this.viewMode}),r=>this._updateLabelVisibility(r),g.tX),(0,g.YP)(()=>this._measurementArrowStripeLength,r=>this._updateSegmentStripeLength(r),g.tX),(0,at.qe)((0,_e.Z)(function*(){return t._updateMessageBundle()}))]),this._updateMessageBundle()}destroy(){this._handles=(0,l.SC)(this._handles),this._segmentVisualElement=(0,l.SC)(this._segmentVisualElement),this._triangleVisualElement=(0,l.SC)(this._triangleVisualElement),this._rightAngleQuad=(0,l.SC)(this._rightAngleQuad),this._projectedGeodesicLine=(0,l.SC)(this._projectedGeodesicLine),this._geodesicStartHint=(0,l.SC)(this._geodesicStartHint),this._geodesicEndHint=(0,l.SC)(this._geodesicEndHint),this._segmentLabel=(0,l.SC)(this._segmentLabel),this._verticalLabel=(0,l.SC)(this._verticalLabel),this._horizontalLabel=(0,l.SC)(this._horizontalLabel),this.set("view",null)}_updateVisualElementVisibility({visible:t,viewMode:e}){if(this._segmentVisualElement.visible=!1,this._triangleVisualElement.visible=!1,this._rightAngleQuad.visible=!1,this._projectedGeodesicLine.visible=!1,this._geodesicStartHint.visible=!1,this._geodesicEndHint.visible=!1,t)switch(e){case y.None:break;case y.Direct:this._segmentVisualElement.visible=!0;break;case y.Triangle:this._segmentVisualElement.visible=!0,this._triangleVisualElement.visible=!0,this._rightAngleQuad.visible=!0;break;case y.ProjectedGeodesic:this._segmentVisualElement.visible=!0,this._projectedGeodesicLine.visible=!0,this._geodesicStartHint.visible=!0,this._geodesicEndHint.visible=!0}}_updateGeometryAndViewMode({view:t,camera:e,viewMode:i,elevationAlignedStartPoint:s,elevationAlignedEndPoint:a,orientation:r,visualizedMeasurement:u,stripeLength:c}){const h=t.renderCoordsHelper;if((0,l.Wi)(h)||(0,l.Wi)(s)||(0,l.Wi)(a)||s.equals(a))return;let v=this._startPosition,p=this._endPosition;h.toRenderCoords(s,v),h.toRenderCoords(a,p);const b=r===O.AboveSegment?1:-1,f=b*(h.getAltitude(p)-h.getAltitude(v));f<0&&(v=this._endPosition,p=this._startPosition);const S="geodesic"===u?new G.u(this._startPosition,this._endPosition,h.spatialReference):new G.y(this._startPosition,this._endPosition);switch(this._segmentVisualElement.geometry=S,this._updateSegmentStripeLength(c),i){case y.Direct:this._updateSegment(S,r);break;case y.Triangle:this._updateSegmentAndTriangle({view:t,camera:e,segment:S,orientation:r,startPosition:v,endPosition:p,deltaSign:b,altitudeDelta:f});break;case y.ProjectedGeodesic:this._updateSegmentAndProjection({view:t,orientation:r,startPosition:v,endPosition:p})}}_updateSegment(t,e){this._segmentLabel.anchor=e===O.AboveSegment?"top":"bottom",this._segmentLabel.geometry={type:"segment",segment:t,sampleLocation:"center"}}_updateSegmentAndTriangle({view:{renderCoordsHelper:t},camera:e,segment:i,orientation:s,startPosition:a,endPosition:r,deltaSign:u,altitudeDelta:c}){const h=this._cornerPosition;t.worldUpAtPosition(a,h),(0,w.g)(h,h,u*Math.abs(c)),(0,w.a)(h,h,a),this._triangleVisualElement.geometry=[[[a[0],a[1],a[2]],[h[0],h[1],h[2]],[r[0],r[1],r[2]]]],this._rightAngleQuad.geometry={previous:a,center:h,next:r};const v=new G.y(a,h),p=new G.y(h,r),b=function ot(t,e,i,s,a){const r=lt,u=dt;a.projectToRenderScreen(i,r),a.projectToRenderScreen(e,u);const c={segment:"bottom",horizontal:"top",vertical:r[0]=fe){const p=Math.sign(h[1])===Math.sign(v[1]);c.segment=p?(0,Z.jB)(c.vertical):c.vertical}else{const p=ut;(0,le.c)(i,e,p,a),(0,we.h)(p,v)>=fe&&(c.segment=Math.sign(p[0])===Math.sign(v[0])?(0,Z.jB)(c.horizontal):c.horizontal)}}if(s===O.BelowSegment){const h=v=>"top"===v?"bottom":"top";c.segment=h(c.segment),c.horizontal=h(c.horizontal),c.vertical=h(c.vertical)}return c}(a,r,h,s,e);this._segmentLabel.anchor=b.segment,this._segmentLabel.geometry={type:"segment",segment:i,sampleLocation:"center"},this._verticalLabel.geometry={type:"segment",segment:v,sampleLocation:"center"},this._verticalLabel.anchor=b.vertical,this._horizontalLabel.geometry={type:"segment",segment:p,sampleLocation:"center"},this._horizontalLabel.anchor=b.horizontal}_updateSegmentAndProjection({view:{renderCoordsHelper:t},orientation:e,startPosition:i,endPosition:s}){t.setAltitude(this._startPositionAtSeaLevel,0,i),t.setAltitude(this._endPositionAtSeaLevel,0,s);const a=new G.u(this._startPositionAtSeaLevel,this._endPositionAtSeaLevel,t.spatialReference);this._projectedGeodesicLine.setGeometryFromSegment(a),this._geodesicStartHint.setGeometryFromSegment(new G.y(this._startPositionAtSeaLevel,i)),this._geodesicEndHint.setGeometryFromSegment(new G.y(this._endPositionAtSeaLevel,s)),this._segmentLabel.geometry={type:"segment",segment:a,sampleLocation:"center"},this._segmentLabel.anchor=e===O.AboveSegment?"top":"bottom"}_updateLabelText({text:t,visualizedMeasurement:e}){(0,l.pC)(t)?(this._segmentLabel.text="euclidean"===e?t.euclideanDistance:t.geodesicDistance,this._horizontalLabel.text=t.horizontalDistance,this._verticalLabel.text=t.verticalDistance):(this._segmentLabel.text=null,this._horizontalLabel.text=null,this._verticalLabel.text=null),this.notifyChange("labels")}_updateLabelVisibility({visible:t,viewMode:e}){const i=this._segmentLabel,s=this._horizontalLabel,a=this._verticalLabel;if(i.visible=!1,s.visible=!1,a.visible=!1,t)switch(e){case y.Direct:i.visible=!0;break;case y.Triangle:i.visible=!0,s.visible=!0,a.visible=!0;break;case y.ProjectedGeodesic:i.visible=!0}}get _labelsText(){if(this.destroyed)return null;const t=this.messages,e=this.analysisView.result;if((0,l.Wi)(e)||(0,l.Wi)(t))return null;const{directDistance:i,horizontalDistance:s,verticalDistance:a,geodesicDistance:r}=e,u=this.analysisView.unit,c=h=>({euclideanDistance:"",geodesicDistance:"",horizontalDistance:"",verticalDistance:"",...h});switch(u){case"metric":return c({euclideanDistance:i&&(0,A.Rd)(t,i),geodesicDistance:r&&(0,A.Rd)(t,r),horizontalDistance:s&&(0,A.Rd)(t,s),verticalDistance:a&&(0,A.Wv)(t,a)});case"imperial":return c({euclideanDistance:i&&(0,A.Ud)(t,i),geodesicDistance:r&&(0,A.Ud)(t,r),horizontalDistance:s&&(0,A.Ud)(t,s),verticalDistance:a&&(0,A.Zv)(t,a)});default:return c({euclideanDistance:i&&(0,A.VG)(t,i,u),geodesicDistance:r&&(0,A.VG)(t,r,u),horizontalDistance:s&&(0,A.VG)(t,s,u),verticalDistance:a&&(0,A.VG)(t,a,u)})}}_updateSegmentStripeLength(t){const e=this._segmentVisualElement;(0,l.pC)(t)?(e.stripeLength=t,e.stripesEnabled=!0):e.stripesEnabled=!1}get _actualVisualElementsOrientation(){if((0,l.pC)(this._triangleOrientationOverride))return this._triangleOrientationOverride;const t=this.visualElementOrientation;return t===O.Auto?this.view.state.camera.aboveGround?O.AboveSegment:O.BelowSegment:t}_requiresGeodesicGuideAt(t){const e=this.view;if(!e?.state)return!1;const s=e.renderCoordsHelper,a=e.state.camera.computeScreenPixelSizeAt(t);return s.getAltitude(t)/a>=10}get _measurementArrowStripeLength(){const{result:t,unit:e}=this.analysisView;if((0,l.Wi)(t))return null;let i=null;const s=t.directDistance;switch(e){case"metric":i=s&&(0,M.nn)(s,"meters");break;case"imperial":i=s&&(0,M.nn)(s,(0,be.FN)(s.value,s.unit));break;default:i=s&&(0,M.nn)(s,e)}return(0,l.Wi)(i)?null:(0,W.sk)(i.value/30)*(0,be.En)(1,i.unit,"meters")}_updateMessageBundle(){this.loadingMessages=!0,(0,rt.ME)("esri/core/t9n/Units").then(t=>{this.messages=t}).finally(()=>{this.loadingMessages=!1})}get testData(){return{labels:this.labels,stripeLength:this._segmentVisualElement?.stripeLength}}};(0,o._)([(0,d.Cb)()],C.prototype,"_triangleOrientationOverride",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"messages",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"view",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"analysis",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"analysisView",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"loadingMessages",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"visible",null),(0,o._)([(0,d.Cb)()],C.prototype,"viewMode",null),(0,o._)([(0,d.Cb)()],C.prototype,"actualVisualizedMeasurement",null),(0,o._)([(0,d.Cb)()],C.prototype,"visualElementOrientation",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"triangleCollapseRatioThreshold",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"allowVisualElementsOrientationChange",null),(0,o._)([(0,d.Cb)()],C.prototype,"labels",null),(0,o._)([(0,d.Cb)()],C.prototype,"_labelsText",null),(0,o._)([(0,d.Cb)()],C.prototype,"_actualVisualElementsOrientation",null),(0,o._)([(0,d.Cb)()],C.prototype,"_measurementArrowStripeLength",null),C=(0,o._)([(0,U.j)("esri.views.3d.analysis.DirectLineMeasurement.DirectLineMeasurementVisualization")],C);const fe=Math.cos((0,W.Vl)(12)),lt=(0,F.J$)(),dt=(0,F.J$)(),ht=(0,F.gX)(),ct=(0,F.gX)(),ut=(0,F.gX)();let m=class extends((0,re.p)(_.Z)){constructor(t){super(t),this.type="direct-line-measurement-view-3d",this.analysis=null,this.result=null,this.measurementMode=L.e.Auto,this.elevationAlignedStartPoint=null,this.elevationAlignedEndPoint=null}initialize(){const t=this.view,e=this.analysis;this._analysisVisualization=new C({view:t,analysis:e,analysisView:this}),this._analysisController=new R({view:t,analysis:e,viewData:this})}destroy(){this._analysisController=(0,l.SC)(this._analysisController),this._analysisVisualization=(0,l.SC)(this._analysisVisualization)}get updating(){return!!this._analysisVisualization?.loadingMessages}get viewMode(){return this._analysisVisualization.viewMode}get actualVisualizedMeasurement(){return this._analysisVisualization.actualVisualizedMeasurement}get visualElementOrientation(){return this._analysisVisualization.visualElementOrientation}set visualElementOrientation(t){this._analysisVisualization.visualElementOrientation=t}get allowVisualElementsOrientationChange(){return this._analysisVisualization.allowVisualElementsOrientationChange}set allowVisualElementsOrientationChange(t){this._analysisVisualization.allowVisualElementsOrientationChange=t}get triangleCollapseRatioThreshold(){return this._analysisVisualization.triangleCollapseRatioThreshold}set triangleCollapseRatioThreshold(t){this._analysisVisualization.triangleCollapseRatioThreshold=t}get directLabelText(){return this._analysisVisualization.labels.direct.text}get horizontalLabelText(){return this._analysisVisualization.labels.horizontal.text}get verticalLabelText(){return this._analysisVisualization.labels.vertical.text}get unit(){return(0,l.Pt)(this.analysis.unit,this._defaultUnit)}get testData(){return this.destroyed?{labels:null,stripeLength:null,visualization:null,controller:null}:{...this._analysisVisualization?.testData,visualization:this._analysisVisualization,controller:this._analysisController}}};(0,o._)([(0,d.Cb)()],m.prototype,"updating",null),(0,o._)([(0,d.Cb)({readOnly:!0})],m.prototype,"type",void 0),(0,o._)([(0,d.Cb)({constructOnly:!0,nonNullable:!0})],m.prototype,"analysis",void 0),(0,o._)([(0,d.Cb)()],m.prototype,"result",void 0),(0,o._)([(0,d.Cb)()],m.prototype,"measurementMode",void 0),(0,o._)([(0,d.Cb)()],m.prototype,"elevationAlignedStartPoint",void 0),(0,o._)([(0,d.Cb)()],m.prototype,"elevationAlignedEndPoint",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],m.prototype,"viewMode",null),(0,o._)([(0,d.Cb)({readOnly:!0})],m.prototype,"actualVisualizedMeasurement",null),(0,o._)([(0,d.Cb)()],m.prototype,"visualElementOrientation",null),(0,o._)([(0,d.Cb)()],m.prototype,"allowVisualElementsOrientationChange",null),(0,o._)([(0,d.Cb)()],m.prototype,"triangleCollapseRatioThreshold",null),(0,o._)([(0,d.Cb)({readOnly:!0})],m.prototype,"directLabelText",null),(0,o._)([(0,d.Cb)({readOnly:!0})],m.prototype,"horizontalLabelText",null),(0,o._)([(0,d.Cb)({readOnly:!0})],m.prototype,"verticalLabelText",null),(0,o._)([(0,d.Cb)()],m.prototype,"_analysisVisualization",void 0),(0,o._)([(0,d.Cb)()],m.prototype,"_analysisController",void 0),(0,o._)([(0,d.Cb)()],m.prototype,"unit",null),(0,o._)([(0,d.Cb)(ae.Y)],m.prototype,"_defaultUnit",void 0),m=(0,o._)([(0,U.j)("esri.views.3d.analysis.DirectLineMeasurementAnalysisView3D")],m);const gt=m}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6240.27fd51956a0d92fe.js b/apps/n/porrtal-io-app/public/angular/6240.27fd51956a0d92fe.js deleted file mode 100644 index 876bdf3c..00000000 --- a/apps/n/porrtal-io-app/public/angular/6240.27fd51956a0d92fe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6240],{16240:(y,n,s)=>{s.r(n),s.d(n,{default:()=>O});var e=s(17626),p=s(26584),i=s(99959),E=s(50618),t=s(77712),d=(s(85931),s(90912),s(76898)),u=s(44917),c=s(6647);let _=class extends((0,c.I)((0,i.R)(u.Z))){constructor(o){super(o),this.resourceInfo=null,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise((o,a)=>{(0,E.Os)(()=>{const r=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let l="Unsupported layer type";r&&(l+=" "+r),a(new p.Z("layer:unsupported-layer-type",l,{layerType:r}))})}))}read(o,a){const r={resourceInfo:o};null!=o.id&&(r.id=o.id),null!=o.title&&(r.title=o.title),super.read(r,a)}write(o){return Object.assign(o||{},this.resourceInfo,{id:this.id})}};(0,e._)([(0,t.Cb)({readOnly:!0})],_.prototype,"resourceInfo",void 0),(0,e._)([(0,t.Cb)({type:["show","hide"]})],_.prototype,"listMode",void 0),(0,e._)([(0,t.Cb)({json:{read:!1},readOnly:!0,value:"unsupported"})],_.prototype,"type",void 0),_=(0,e._)([(0,d.j)("esri.layers.UnsupportedLayer")],_);const O=_}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6259.005f40a32342e36b.js b/apps/n/porrtal-io-app/public/angular/6259.005f40a32342e36b.js deleted file mode 100644 index c09c122b..00000000 --- a/apps/n/porrtal-io-app/public/angular/6259.005f40a32342e36b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6259],{16259:(Ko,He,Ue)=>{Ue.r(He),Ue.d(He,{v:()=>Mr});var Be,Me={exports:{}};Be=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,Me.exports=function(Y){var ue,K,s=void 0!==(Y=Y||{})?Y:{};s.ready=new Promise(function(e,r){ue=e,K=r});var W,ne,qe=Object.assign({},s),Ye="./this.program",X="";typeof document<"u"&&document.currentScript&&(X=document.currentScript.src),Be&&(X=Be),X=0!==X.indexOf("blob:")?X.substr(0,X.replace(/[?#].*/,"").lastIndexOf("/")+1):"",W=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},ne=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)};var le,Ie,ve=s.print||console.log.bind(console),N=s.printErr||console.warn.bind(console);Object.assign(s,qe),qe=null,s.thisProgram&&(Ye=s.thisProgram),s.wasmBinary&&(le=s.wasmBinary),"object"!=typeof WebAssembly&&U("no native wasm support detected");var ge,C,T,H,oe,_,k,ae,Qe,J,Xe=!1,Ke=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function ie(e,r,t){for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Ke)return Ke.decode(e.subarray(r,a));for(var i="";r>10,56320|1023&d)}}else i+=String.fromCharCode((31&u)<<6|l)}else i+=String.fromCharCode(u)}return i}function Z(e,r){return e?ie(T,e,r):""}function Ze(e,r,t,n){if(!(n>0))return 0;for(var a=t,i=t+n-1,u=0;u=55296&&l<=57343&&(l=65536+((1023&l)<<10)|1023&e.charCodeAt(++u)),l<=127){if(t>=i)break;r[t++]=l}else if(l<=2047){if(t+1>=i)break;r[t++]=192|l>>6,r[t++]=128|63&l}else if(l<=65535){if(t+2>=i)break;r[t++]=224|l>>12,r[t++]=128|l>>6&63,r[t++]=128|63&l}else{if(t+3>=i)break;r[t++]=240|l>>18,r[t++]=128|l>>12&63,r[t++]=128|l>>6&63,r[t++]=128|63&l}}return r[t]=0,t-a}function Je(e,r,t){return Ze(e,T,r,t)}function he(e){for(var r=0,t=0;t=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++t)),n<=127?++r:r+=n<=2047?2:n<=65535?3:4}return r}function $e(e){ge=e,s.HEAP8=C=new Int8Array(e),s.HEAP16=H=new Int16Array(e),s.HEAP32=_=new Int32Array(e),s.HEAPU8=T=new Uint8Array(e),s.HEAPU16=oe=new Uint16Array(e),s.HEAPU32=k=new Uint32Array(e),s.HEAPF32=ae=new Float32Array(e),s.HEAPF64=Qe=new Float64Array(e)}var O,j,G,er=[],rr=[],tr=[],$=0,ce=null;function ye(e){$++,s.monitorRunDependencies&&s.monitorRunDependencies($)}function fe(e){if($--,s.monitorRunDependencies&&s.monitorRunDependencies($),0==$&&ce){var r=ce;ce=null,r()}}function U(e){s.onAbort&&s.onAbort(e),N(e="Aborted("+e+")"),Xe=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw K(r),r}function nr(e){return e.startsWith("data:application/octet-stream;base64,")}function or(e){try{if(e==O&&le)return new Uint8Array(le);throw"both async and sync fetching of the wasm failed"}catch(r){U(r)}}function Re(e){for(;e.length>0;)e.shift()(s)}function Kr(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(r){k[this.ptr+4>>2]=r},this.get_type=function(){return k[this.ptr+4>>2]},this.set_destructor=function(r){k[this.ptr+8>>2]=r},this.get_destructor=function(){return k[this.ptr+8>>2]},this.set_refcount=function(r){_[this.ptr>>2]=r},this.set_caught=function(r){C[this.ptr+12>>0]=r=r?1:0},this.get_caught=function(){return 0!=C[this.ptr+12>>0]},this.set_rethrown=function(r){C[this.ptr+13>>0]=r=r?1:0},this.get_rethrown=function(){return 0!=C[this.ptr+13>>0]},this.init=function(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){_[this.ptr>>2]=_[this.ptr>>2]+1},this.release_ref=function(){var r=_[this.ptr>>2];return _[this.ptr>>2]=r-1,1===r},this.set_adjusted_ptr=function(r){k[this.ptr+16>>2]=r},this.get_adjusted_ptr=function(){return k[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Tr(this.get_type()))return k[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}nr(O="vxlLayer.wasm")||(O=function Rr(e){return s.locateFile?s.locateFile(e,X):X+e}(O));var x={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=x.isAbs(e),t="/"===e.substr(-1);return(e=x.normalizeArray(e.split("/").filter(n=>!!n),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=x.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=x.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments,0);return x.normalize(e.join("/"))},join2:(e,r)=>x.normalize(e+"/"+r)},V={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:o.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=x.isAbs(n)}return(r?"/":"")+(e=x.normalizeArray(e.split("/").filter(a=>!!a),!r).join("/"))||"."},relative:(e,r)=>{function t(d){for(var m=0;m=0&&""===d[h];h--);return m>h?[]:d.slice(m,h-m+1)}e=V.resolve(e).substr(1),r=V.resolve(r).substr(1);for(var n=t(e.split("/")),a=t(r.split("/")),i=Math.min(n.length,a.length),u=i,l=0;l0?t:he(e)+1,a=new Array(n),i=Ze(e,a,0,a.length);return r&&(a.length=i),a}var ee={ttys:[],init:function(){},shutdown:function(){},register:function(e,r){ee.ttys[e]={input:[],output:[],ops:r},o.registerDevice(e,ee.stream_ops)},stream_ops:{open:function(e){var r=ee.ttys[e.node.rdev];if(!r)throw new o.ErrnoError(43);e.tty=r,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,r,t,n,a){if(!e.tty||!e.tty.ops.get_char)throw new o.ErrnoError(60);for(var i=0,u=0;u0&&(ve(ie(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,r){null===r||10===r?(N(ie(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},flush:function(e){e.output&&e.output.length>0&&(N(ie(e.output,0)),e.output=[])}}};function ar(e){U()}var w={ops_table:null,mount:function(e){return w.createNode(null,"/",16895,0)},createNode:function(e,r,t,n){if(o.isBlkdev(t)||o.isFIFO(t))throw new o.ErrnoError(63);w.ops_table||(w.ops_table={dir:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr,lookup:w.node_ops.lookup,mknod:w.node_ops.mknod,rename:w.node_ops.rename,unlink:w.node_ops.unlink,rmdir:w.node_ops.rmdir,readdir:w.node_ops.readdir,symlink:w.node_ops.symlink},stream:{llseek:w.stream_ops.llseek}},file:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr},stream:{llseek:w.stream_ops.llseek,read:w.stream_ops.read,write:w.stream_ops.write,allocate:w.stream_ops.allocate,mmap:w.stream_ops.mmap,msync:w.stream_ops.msync}},link:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr,readlink:w.node_ops.readlink},stream:{}},chrdev:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr},stream:o.chrdev_stream_ops}});var a=o.createNode(e,r,t,n);return o.isDir(a.mode)?(a.node_ops=w.ops_table.dir.node,a.stream_ops=w.ops_table.dir.stream,a.contents={}):o.isFile(a.mode)?(a.node_ops=w.ops_table.file.node,a.stream_ops=w.ops_table.file.stream,a.usedBytes=0,a.contents=null):o.isLink(a.mode)?(a.node_ops=w.ops_table.link.node,a.stream_ops=w.ops_table.link.stream):o.isChrdev(a.mode)&&(a.node_ops=w.ops_table.chrdev.node,a.stream_ops=w.ops_table.chrdev.stream),a.timestamp=Date.now(),e&&(e.contents[r]=a,e.timestamp=a.timestamp),a},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var a=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(a.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr:function(e){var r={};return r.dev=o.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,r.size=o.isDir(e.mode)?4096:o.isFile(e.mode)?e.usedBytes:o.isLink(e.mode)?e.link.length:0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&w.resizeFileStorage(e,r.size)},lookup:function(e,r){throw o.genericErrors[44]},mknod:function(e,r,t,n){return w.createNode(e,r,t,n)},rename:function(e,r,t){if(o.isDir(e.mode)){var n;try{n=o.lookupNode(r,t)}catch{}if(n)for(var a in n.contents)throw new o.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink:function(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir:function(e,r){var t=o.lookupNode(e,r);for(var n in t.contents)throw new o.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir:function(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink:function(e,r,t){var n=w.createNode(e,r,41471,0);return n.link=t,n},readlink:function(e){if(!o.isLink(e.mode))throw new o.ErrnoError(28);return e.link}},stream_ops:{read:function(e,r,t,n,a){var i=e.node.contents;if(a>=e.node.usedBytes)return 0;var u=Math.min(e.node.usedBytes-a,n);if(u>8&&i.subarray)r.set(i.subarray(a,a+u),t);else for(var l=0;l0||t+r{if(!(e=V.resolve(o.cwd(),e)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new o.ErrnoError(32);for(var n=x.normalizeArray(e.split("/").filter(m=>!!m),!1),a=o.root,i="/",u=0;u40)throw new o.ErrnoError(32)}}return{path:i,node:a}},getPath:e=>{for(var r;;){if(o.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?t+"/"+r:t+r:t}r=r?e.name+"/"+r:e.name,e=e.parent}},hashName:(e,r)=>{for(var t=0,n=0;n>>0)%o.nameTable.length},hashAddNode:e=>{var r=o.hashName(e.parent.id,e.name);e.name_next=o.nameTable[r],o.nameTable[r]=e},hashRemoveNode:e=>{var r=o.hashName(e.parent.id,e.name);if(o.nameTable[r]===e)o.nameTable[r]=e.name_next;else for(var t=o.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode:(e,r)=>{var t=o.mayLookup(e);if(t)throw new o.ErrnoError(t,e);for(var n=o.hashName(e.id,r),a=o.nameTable[n];a;a=a.name_next)if(a.parent.id===e.id&&a.name===r)return a;return o.lookup(e,r)},createNode:(e,r,t,n)=>{var a=new o.FSNode(e,r,t,n);return o.hashAddNode(a),a},destroyNode:e=>{o.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:e=>{var r=o.flagModes[e];if(void 0===r)throw new Error("Unknown file open mode: "+e);return r},flagsToPermissionString:e=>{var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>o.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup:e=>o.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate:(e,r)=>{try{return o.lookupNode(e,r),20}catch{}return o.nodePermissions(e,"wx")},mayDelete:(e,r,t)=>{var n;try{n=o.lookupNode(e,r)}catch(i){return i.errno}var a=o.nodePermissions(e,"wx");if(a)return a;if(t){if(!o.isDir(n.mode))return 54;if(o.isRoot(n)||o.getPath(n)===o.cwd())return 10}else if(o.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?o.isLink(e.mode)?32:o.isDir(e.mode)&&("r"!==o.flagsToPermissionString(r)||512&r)?31:o.nodePermissions(e,o.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd:(e=0,r=o.MAX_OPEN_FDS)=>{for(var t=e;t<=r;t++)if(!o.streams[t])return t;throw new o.ErrnoError(33)},getStream:e=>o.streams[e],createStream:(e,r,t)=>{o.FSStream||(o.FSStream=function(){this.shared={}},o.FSStream.prototype={},Object.defineProperties(o.FSStream.prototype,{object:{get:function(){return this.node},set:function(a){this.node=a}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(a){this.shared.flags=a}},position:{get:function(){return this.shared.position},set:function(a){this.shared.position=a}}})),e=Object.assign(new o.FSStream,e);var n=o.nextfd(r,t);return e.fd=n,o.streams[n]=e,e},closeStream:e=>{o.streams[e]=null},chrdev_stream_ops:{open:e=>{var r=o.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:()=>{throw new o.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice:(e,r)=>{o.devices[e]={stream_ops:r}},getDevice:e=>o.devices[e],getMounts:e=>{for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs:(e,r)=>{"function"==typeof e&&(r=e,e=!1),o.syncFSRequests++,o.syncFSRequests>1&&N("warning: "+o.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var t=o.getMounts(o.root.mount),n=0;function a(u){return o.syncFSRequests--,r(u)}function i(u){if(u)return i.errored?void 0:(i.errored=!0,a(u));++n>=t.length&&a(null)}t.forEach(u=>{if(!u.type.syncfs)return i(null);u.type.syncfs(u,e,i)})},mount:(e,r,t)=>{var n,a="/"===t,i=!t;if(a&&o.root)throw new o.ErrnoError(10);if(!a&&!i){var u=o.lookupPath(t,{follow_mount:!1});if(t=u.path,o.isMountpoint(n=u.node))throw new o.ErrnoError(10);if(!o.isDir(n.mode))throw new o.ErrnoError(54)}var l={type:e,opts:r,mountpoint:t,mounts:[]},c=e.mount(l);return c.mount=l,l.root=c,a?o.root=c:n&&(n.mounted=l,n.mount&&n.mount.mounts.push(l)),c},unmount:e=>{var r=o.lookupPath(e,{follow_mount:!1});if(!o.isMountpoint(r.node))throw new o.ErrnoError(28);var t=r.node,n=t.mounted,a=o.getMounts(n);Object.keys(o.nameTable).forEach(u=>{for(var l=o.nameTable[u];l;){var c=l.name_next;a.includes(l.mount)&&o.destroyNode(l),l=c}}),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod:(e,r,t)=>{var n=o.lookupPath(e,{parent:!0}).node,a=x.basename(e);if(!a||"."===a||".."===a)throw new o.ErrnoError(28);var i=o.mayCreate(n,a);if(i)throw new o.ErrnoError(i);if(!n.node_ops.mknod)throw new o.ErrnoError(63);return n.node_ops.mknod(n,a,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,o.mknod(e,r|=32768,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,o.mknod(e,r|=16384,0)),mkdirTree:(e,r)=>{for(var t=e.split("/"),n="",a=0;a(void 0===t&&(t=r,r=438),o.mknod(e,r|=8192,t)),symlink:(e,r)=>{if(!V.resolve(e))throw new o.ErrnoError(44);var t=o.lookupPath(r,{parent:!0}).node;if(!t)throw new o.ErrnoError(44);var n=x.basename(r),a=o.mayCreate(t,n);if(a)throw new o.ErrnoError(a);if(!t.node_ops.symlink)throw new o.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename:(e,r)=>{var t,n,a=x.dirname(e),i=x.dirname(r),u=x.basename(e),l=x.basename(r);if(t=o.lookupPath(e,{parent:!0}).node,n=o.lookupPath(r,{parent:!0}).node,!t||!n)throw new o.ErrnoError(44);if(t.mount!==n.mount)throw new o.ErrnoError(75);var c,d=o.lookupNode(t,u),m=V.relative(e,i);if("."!==m.charAt(0))throw new o.ErrnoError(28);if("."!==(m=V.relative(r,a)).charAt(0))throw new o.ErrnoError(55);try{c=o.lookupNode(n,l)}catch{}if(d!==c){var h=o.isDir(d.mode),g=o.mayDelete(t,u,h);if(g)throw new o.ErrnoError(g);if(g=c?o.mayDelete(n,l,h):o.mayCreate(n,l))throw new o.ErrnoError(g);if(!t.node_ops.rename)throw new o.ErrnoError(63);if(o.isMountpoint(d)||c&&o.isMountpoint(c))throw new o.ErrnoError(10);if(n!==t&&(g=o.nodePermissions(t,"w")))throw new o.ErrnoError(g);o.hashRemoveNode(d);try{t.node_ops.rename(d,n,l)}catch(b){throw b}finally{o.hashAddNode(d)}}},rmdir:e=>{var r=o.lookupPath(e,{parent:!0}).node,t=x.basename(e),n=o.lookupNode(r,t),a=o.mayDelete(r,t,!0);if(a)throw new o.ErrnoError(a);if(!r.node_ops.rmdir)throw new o.ErrnoError(63);if(o.isMountpoint(n))throw new o.ErrnoError(10);r.node_ops.rmdir(r,t),o.destroyNode(n)},readdir:e=>{var r=o.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new o.ErrnoError(54);return r.node_ops.readdir(r)},unlink:e=>{var r=o.lookupPath(e,{parent:!0}).node;if(!r)throw new o.ErrnoError(44);var t=x.basename(e),n=o.lookupNode(r,t),a=o.mayDelete(r,t,!1);if(a)throw new o.ErrnoError(a);if(!r.node_ops.unlink)throw new o.ErrnoError(63);if(o.isMountpoint(n))throw new o.ErrnoError(10);r.node_ops.unlink(r,t),o.destroyNode(n)},readlink:e=>{var r=o.lookupPath(e).node;if(!r)throw new o.ErrnoError(44);if(!r.node_ops.readlink)throw new o.ErrnoError(28);return V.resolve(o.getPath(r.parent),r.node_ops.readlink(r))},stat:(e,r)=>{var t=o.lookupPath(e,{follow:!r}).node;if(!t)throw new o.ErrnoError(44);if(!t.node_ops.getattr)throw new o.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>o.stat(e,!0),chmod:(e,r,t)=>{var n;if(!(n="string"==typeof e?o.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new o.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:(e,r)=>{o.chmod(e,r,!0)},fchmod:(e,r)=>{var t=o.getStream(e);if(!t)throw new o.ErrnoError(8);o.chmod(t.node,r)},chown:(e,r,t,n)=>{var a;if(!(a="string"==typeof e?o.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new o.ErrnoError(63);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown:(e,r,t)=>{o.chown(e,r,t,!0)},fchown:(e,r,t)=>{var n=o.getStream(e);if(!n)throw new o.ErrnoError(8);o.chown(n.node,r,t)},truncate:(e,r)=>{if(r<0)throw new o.ErrnoError(28);var t;if(!(t="string"==typeof e?o.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new o.ErrnoError(63);if(o.isDir(t.mode))throw new o.ErrnoError(31);if(!o.isFile(t.mode))throw new o.ErrnoError(28);var n=o.nodePermissions(t,"w");if(n)throw new o.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate:(e,r)=>{var t=o.getStream(e);if(!t)throw new o.ErrnoError(8);if(0==(2097155&t.flags))throw new o.ErrnoError(28);o.truncate(t.node,r)},utime:(e,r,t)=>{var n=o.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open:(e,r,t)=>{if(""===e)throw new o.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?o.modeStringToFlags(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=x.normalize(e);try{n=o.lookupPath(e,{follow:!(131072&r)}).node}catch{}}var a=!1;if(64&r)if(n){if(128&r)throw new o.ErrnoError(20)}else n=o.mknod(e,t,0),a=!0;if(!n)throw new o.ErrnoError(44);if(o.isChrdev(n.mode)&&(r&=-513),65536&r&&!o.isDir(n.mode))throw new o.ErrnoError(54);if(!a){var i=o.mayOpen(n,r);if(i)throw new o.ErrnoError(i)}512&r&&!a&&o.truncate(n,0),r&=-131713;var u=o.createStream({node:n,path:o.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return u.stream_ops.open&&u.stream_ops.open(u),!s.logReadFiles||1&r||(o.readFiles||(o.readFiles={}),e in o.readFiles||(o.readFiles[e]=1)),u},close:e=>{if(o.isClosed(e))throw new o.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(r){throw r}finally{o.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek:(e,r,t)=>{if(o.isClosed(e))throw new o.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new o.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new o.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read:(e,r,t,n,a)=>{if(n<0||a<0)throw new o.ErrnoError(28);if(o.isClosed(e))throw new o.ErrnoError(8);if(1==(2097155&e.flags))throw new o.ErrnoError(8);if(o.isDir(e.node.mode))throw new o.ErrnoError(31);if(!e.stream_ops.read)throw new o.ErrnoError(28);var i=void 0!==a;if(i){if(!e.seekable)throw new o.ErrnoError(70)}else a=e.position;var u=e.stream_ops.read(e,r,t,n,a);return i||(e.position+=u),u},write:(e,r,t,n,a,i)=>{if(n<0||a<0)throw new o.ErrnoError(28);if(o.isClosed(e))throw new o.ErrnoError(8);if(0==(2097155&e.flags))throw new o.ErrnoError(8);if(o.isDir(e.node.mode))throw new o.ErrnoError(31);if(!e.stream_ops.write)throw new o.ErrnoError(28);e.seekable&&1024&e.flags&&o.llseek(e,0,2);var u=void 0!==a;if(u){if(!e.seekable)throw new o.ErrnoError(70)}else a=e.position;var l=e.stream_ops.write(e,r,t,n,a,i);return u||(e.position+=l),l},allocate:(e,r,t)=>{if(o.isClosed(e))throw new o.ErrnoError(8);if(r<0||t<=0)throw new o.ErrnoError(28);if(0==(2097155&e.flags))throw new o.ErrnoError(8);if(!o.isFile(e.node.mode)&&!o.isDir(e.node.mode))throw new o.ErrnoError(43);if(!e.stream_ops.allocate)throw new o.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap:(e,r,t,n,a)=>{if(0!=(2&n)&&0==(2&a)&&2!=(2097155&e.flags))throw new o.ErrnoError(2);if(1==(2097155&e.flags))throw new o.ErrnoError(2);if(!e.stream_ops.mmap)throw new o.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,a)},msync:(e,r,t,n,a)=>e&&e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,a):0,munmap:e=>0,ioctl:(e,r,t)=>{if(!e.stream_ops.ioctl)throw new o.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile:(e,r={})=>{if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error('Invalid encoding type "'+r.encoding+'"');var t,n=o.open(e,r.flags),a=o.stat(e).size,i=new Uint8Array(a);return o.read(n,i,0,a,0),"utf8"===r.encoding?t=ie(i,0):"binary"===r.encoding&&(t=i),o.close(n),t},writeFile:(e,r,t={})=>{t.flags=t.flags||577;var n=o.open(e,t.flags,t.mode);if("string"==typeof r){var a=new Uint8Array(he(r)+1),i=Ze(r,a,0,a.length);o.write(n,a,0,i,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");o.write(n,r,0,r.byteLength,void 0,t.canOwn)}o.close(n)},cwd:()=>o.currentPath,chdir:e=>{var r=o.lookupPath(e,{follow:!0});if(null===r.node)throw new o.ErrnoError(44);if(!o.isDir(r.node.mode))throw new o.ErrnoError(54);var t=o.nodePermissions(r.node,"x");if(t)throw new o.ErrnoError(t);o.currentPath=r.path},createDefaultDirectories:()=>{o.mkdir("/tmp"),o.mkdir("/home"),o.mkdir("/home/web_user")},createDefaultDevices:()=>{o.mkdir("/dev"),o.registerDevice(o.makedev(1,3),{read:()=>0,write:(r,t,n,a,i)=>a}),o.mkdev("/dev/null",o.makedev(1,3)),ee.register(o.makedev(5,0),ee.default_tty_ops),ee.register(o.makedev(6,0),ee.default_tty1_ops),o.mkdev("/dev/tty",o.makedev(5,0)),o.mkdev("/dev/tty1",o.makedev(6,0));var e=function et(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return function(){return crypto.getRandomValues(e),e[0]}}return function(){U("randomDevice")}}();o.createDevice("/dev","random",e),o.createDevice("/dev","urandom",e),o.mkdir("/dev/shm"),o.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{o.mkdir("/proc");var e=o.mkdir("/proc/self");o.mkdir("/proc/self/fd"),o.mount({mount:()=>{var r=o.createNode(e,"fd",16895,73);return r.node_ops={lookup:(t,n)=>{var i=o.getStream(+n);if(!i)throw new o.ErrnoError(8);var u={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>i.path}};return u.parent=u,u}},r}},{},"/proc/self/fd")},createStandardStreams:()=>{s.stdin?o.createDevice("/dev","stdin",s.stdin):o.symlink("/dev/tty","/dev/stdin"),s.stdout?o.createDevice("/dev","stdout",null,s.stdout):o.symlink("/dev/tty","/dev/stdout"),s.stderr?o.createDevice("/dev","stderr",null,s.stderr):o.symlink("/dev/tty1","/dev/stderr"),o.open("/dev/stdin",0),o.open("/dev/stdout",1),o.open("/dev/stderr",1)},ensureErrnoError:()=>{o.ErrnoError||(o.ErrnoError=function(e,r){this.node=r,this.setErrno=function(t){this.errno=t},this.setErrno(e),this.message="FS error"},o.ErrnoError.prototype=new Error,o.ErrnoError.prototype.constructor=o.ErrnoError,[44].forEach(e=>{o.genericErrors[e]=new o.ErrnoError(e),o.genericErrors[e].stack=""}))},staticInit:()=>{o.ensureErrnoError(),o.nameTable=new Array(4096),o.mount(w,{},"/"),o.createDefaultDirectories(),o.createDefaultDevices(),o.createSpecialDirectories(),o.filesystems={MEMFS:w}},init:(e,r,t)=>{o.init.initialized=!0,o.ensureErrnoError(),s.stdin=e||s.stdin,s.stdout=r||s.stdout,s.stderr=t||s.stderr,o.createStandardStreams()},quit:()=>{o.init.initialized=!1;for(var e=0;e{var t=0;return e&&(t|=365),r&&(t|=146),t},findObject:(e,r)=>{var t=o.analyzePath(e,r);return t.exists?t.object:null},analyzePath:(e,r)=>{try{e=(n=o.lookupPath(e,{follow:!r})).path}catch{}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=o.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=x.basename(e),n=o.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(a){t.error=a.errno}return t},createPath:(e,r,t,n)=>{e="string"==typeof e?e:o.getPath(e);for(var a=r.split("/").reverse();a.length;){var i=a.pop();if(i){var u=x.join2(e,i);try{o.mkdir(u)}catch{}e=u}}return u},createFile:(e,r,t,n,a)=>{var i=x.join2("string"==typeof e?e:o.getPath(e),r),u=o.getMode(n,a);return o.create(i,u)},createDataFile:(e,r,t,n,a,i)=>{var u=r;e&&(e="string"==typeof e?e:o.getPath(e),u=r?x.join2(e,r):e);var l=o.getMode(n,a),c=o.create(u,l);if(t){if("string"==typeof t){for(var d=new Array(t.length),m=0,h=t.length;m{var a=x.join2("string"==typeof e?e:o.getPath(e),r),i=o.getMode(!!t,!!n);o.createDevice.major||(o.createDevice.major=64);var u=o.makedev(o.createDevice.major++,0);return o.registerDevice(u,{open:l=>{l.seekable=!1},close:l=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(l,c,d,m,h)=>{for(var g=0,b=0;b{for(var g=0;g{if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!W)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=we(W(e.url),!0),e.usedBytes=e.contents.length}catch{throw new o.ErrnoError(29)}},createLazyFile:(e,r,t,n,a)=>{function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(m){if(!(m>this.length-1||m<0)){var h=m%this.chunkSize;return this.getter(m/this.chunkSize|0)[h]}},i.prototype.setDataGetter=function(m){this.getter=m},i.prototype.cacheLength=function(){var m=new XMLHttpRequest;if(m.open("HEAD",t,!1),m.send(null),!(m.status>=200&&m.status<300||304===m.status))throw new Error("Couldn't load "+t+". Status: "+m.status);var h,g=Number(m.getResponseHeader("Content-length")),b=(h=m.getResponseHeader("Accept-Ranges"))&&"bytes"===h,A=(h=m.getResponseHeader("Content-Encoding"))&&"gzip"===h,D=1048576;b||(D=g);var F=this;F.setDataGetter(f=>{var y=f*D,S=(f+1)*D-1;if(S=Math.min(S,g-1),void 0===F.chunks[f]&&(F.chunks[f]=((f,y)=>{if(f>y)throw new Error("invalid range ("+f+", "+y+") or no bytes requested!");if(y>g-1)throw new Error("only "+g+" bytes available! programmer error!");var S=new XMLHttpRequest;if(S.open("GET",t,!1),g!==D&&S.setRequestHeader("Range","bytes="+f+"-"+y),S.responseType="arraybuffer",S.overrideMimeType&&S.overrideMimeType("text/plain; charset=x-user-defined"),S.send(null),!(S.status>=200&&S.status<300||304===S.status))throw new Error("Couldn't load "+t+". Status: "+S.status);return void 0!==S.response?new Uint8Array(S.response||[]):we(S.responseText||"",!0)})(y,S)),void 0===F.chunks[f])throw new Error("doXHR failed!");return F.chunks[f]}),!A&&g||(D=g=1,g=this.getter(0).length,D=g,ve("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=g,this._chunkSize=D,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var u={isDevice:!1,url:t},l=o.createFile(e,r,u,n,a);u.contents?l.contents=u.contents:u.url&&(l.contents=null,l.url=u.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var c={};function d(m,h,g,b,A){var D=m.node.contents;if(A>=D.length)return 0;var M=Math.min(D.length-A,b);if(D.slice)for(var F=0;F{var h=l.stream_ops[m];c[m]=function(){return o.forceLoadFile(l),h.apply(null,arguments)}}),c.read=(m,h,g,b,A)=>(o.forceLoadFile(l),d(m,h,g,b,A)),c.mmap=(m,h,g,b,A)=>{o.forceLoadFile(l);var D=ar();if(!D)throw new o.ErrnoError(48);return d(m,C,D,h,g),{ptr:D,allocated:!0}},l.stream_ops=c,l},createPreloadedFile:(e,r,t,n,a,i,u,l,c,d)=>{var m=r?V.resolve(x.join2(e,r)):e;function h(g){function b(A){d&&d(),l||o.createDataFile(e,r,A,n,a,c),i&&i(),fe()}Browser.handledByPreloadPlugin(g,m,b,()=>{u&&u(),fe()})||b(g)}ye(),"string"==typeof t?function rt(e,r,t,n){var a=n?"":"al "+e;ne(e,function(i){(function Lr(e,r){e||U(r)})(i,'Loading data file "'+e+'" failed (no arrayBuffer).'),r(new Uint8Array(i)),a&&fe()},function(i){if(!t)throw'Loading data file "'+e+'" failed.';t()}),a&&ye()}(t,g=>h(g),u):h(t)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>"EM_FS_"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(e,r,t)=>{r=r||(()=>{}),t=t||(()=>{});var n=o.indexedDB();try{var a=n.open(o.DB_NAME(),o.DB_VERSION)}catch(i){return t(i)}a.onupgradeneeded=()=>{ve("creating db"),a.result.createObjectStore(o.DB_STORE_NAME)},a.onsuccess=()=>{var i=a.result.transaction([o.DB_STORE_NAME],"readwrite"),u=i.objectStore(o.DB_STORE_NAME),l=0,c=0,d=e.length;function m(){0==c?r():t()}e.forEach(h=>{var g=u.put(o.analyzePath(h).object.contents,h);g.onsuccess=()=>{++l+c==d&&m()},g.onerror=()=>{c++,l+c==d&&m()}}),i.onerror=t},a.onerror=t},loadFilesFromDB:(e,r,t)=>{r=r||(()=>{}),t=t||(()=>{});var n=o.indexedDB();try{var a=n.open(o.DB_NAME(),o.DB_VERSION)}catch(i){return t(i)}a.onupgradeneeded=t,a.onsuccess=()=>{var i=a.result;try{var u=i.transaction([o.DB_STORE_NAME],"readonly")}catch(g){return void t(g)}var l=u.objectStore(o.DB_STORE_NAME),c=0,d=0,m=e.length;function h(){0==d?r():t()}e.forEach(g=>{var b=l.get(g);b.onsuccess=()=>{o.analyzePath(g).exists&&o.unlink(g),o.createDataFile(x.dirname(g),x.basename(g),b.result,!0,!0,!0),++c+d==m&&h()},b.onerror=()=>{d++,c+d==m&&h()}}),u.onerror=t},a.onerror=t}},P={DEFAULT_POLLMASK:5,calculateAt:function(e,r,t){if(x.isAbs(r))return r;var n;if(-100===e)n=o.cwd();else{var a=o.getStream(e);if(!a)throw new o.ErrnoError(8);n=a.path}if(0==r.length){if(!t)throw new o.ErrnoError(44);return n}return x.join2(n,r)},doStat:function(e,r,t){try{var n=e(r)}catch(a){if(a&&a.node&&x.normalize(r)!==x.normalize(o.getPath(a.node)))return-54;throw a}return _[t>>2]=n.dev,_[t+4>>2]=0,_[t+8>>2]=n.ino,_[t+12>>2]=n.mode,_[t+16>>2]=n.nlink,_[t+20>>2]=n.uid,_[t+24>>2]=n.gid,_[t+28>>2]=n.rdev,_[t+32>>2]=0,G=[n.size>>>0,(j=n.size,+Math.abs(j)>=1?j>0?(0|Math.min(+Math.floor(j/4294967296),4294967295))>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],_[t+40>>2]=G[0],_[t+44>>2]=G[1],_[t+48>>2]=4096,_[t+52>>2]=n.blocks,_[t+56>>2]=n.atime.getTime()/1e3|0,_[t+64>>2]=0,_[t+72>>2]=n.mtime.getTime()/1e3|0,_[t+80>>2]=0,_[t+88>>2]=n.ctime.getTime()/1e3|0,_[t+96>>2]=0,G=[n.ino>>>0,(j=n.ino,+Math.abs(j)>=1?j>0?(0|Math.min(+Math.floor(j/4294967296),4294967295))>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],_[t+104>>2]=G[0],_[t+108>>2]=G[1],0},doMsync:function(e,r,t,n,a){var i=T.slice(e,e+t);o.msync(r,i,a,t,n)},varargs:void 0,get:function(){return P.varargs+=4,_[P.varargs-4>>2]},getStr:function(e){return Z(e)},getStreamFromFD:function(e){var r=o.getStream(e);if(!r)throw new o.ErrnoError(8);return r}},Ee={};function ir(e){for(;e.length;){var r=e.pop();e.pop()(r)}}function be(e){return this.fromWireType(_[e>>2])}var se={},re={},ke={};function sr(e,r){return e=function st(e){if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?"_"+e:e}(e),function(){return r.apply(this,arguments)}}function Le(e,r){var t=sr(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;void 0!==a&&(this.stack=this.toString()+"\n"+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var ur=void 0;function lr(e){throw new ur(e)}function cr(e,r,t){function n(l){var c=t(l);c.length!==e.length&&lr("Mismatched type converter count");for(var d=0;d{re.hasOwnProperty(l)?a[c]=re[l]:(i.push(l),se.hasOwnProperty(l)||(se[l]=[]),se[l].push(()=>{a[c]=re[l],++u===i.length&&n(a)}))}),0===i.length&&n(a)}function xe(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var fr=void 0;function B(e){for(var r="",t=e;T[t];)r+=fr[T[t++]];return r}var dr=void 0;function R(e){throw new dr(e)}function z(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=r.name;if(e||R('type "'+n+'" must have a positive integer typeid pointer'),re.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;R("Cannot register type '"+n+"' twice")}if(re[e]=r,delete ke[e],se.hasOwnProperty(e)){var a=se[e];delete se[e],a.forEach(i=>i())}}var Ne=[],L=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function mr(e){e>4&&0==--L[e].refcount&&(L[e]=void 0,Ne.push(e))}function dt(){for(var e=0,r=5;r(e||R("Cannot use deleted val. handle = "+e),L[e].value),Q_toHandle=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var r=Ne.length?Ne.pop():L.length;return L[r]={refcount:1,value:e},r}};function pr(e,r,t){s.hasOwnProperty(e)?((void 0===t||void 0!==s[e].overloadTable&&void 0!==s[e].overloadTable[t])&&R("Cannot register public name '"+e+"' twice"),function vt(e,r,t){if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||R("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[r].overloadTable+")!"),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}}(s,e,e),s.hasOwnProperty(t)&&R("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),s[e].overloadTable[t]=r):(s[e]=r,void 0!==t&&(s[e].numArguments=t))}function gt(e,r,t){switch(r){case 0:return function(n){return this.fromWireType((t?C:T)[n])};case 1:return function(n){return this.fromWireType((t?H:oe)[n>>1])};case 2:return function(n){return this.fromWireType((t?_:k)[n>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function _r(e){var r=Cr(e),t=B(r);return q(r),t}function vr(e,r){var t=re[e];return void 0===t&&R(r+" has unknown type "+_r(e)),t}function wt(e,r){switch(r){case 2:return function(t){return this.fromWireType(ae[t>>2])};case 3:return function(t){return this.fromWireType(Qe[t>>3])};default:throw new TypeError("Unknown float type: "+e)}}var de=[];function Oe(e){var r=de[e];return r||(e>=de.length&&(de.length=e+1),de[e]=r=J.get(e)),r}function St(e,r,t){return e.includes("j")?function Dt(e,r,t){var n=s["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)}(e,r,t):Oe(r).apply(null,t)}function me(e,r){e=B(e);var n=function t(){return e.includes("j")?function At(e,r){var t=[];return function(){return t.length=0,Object.assign(t,arguments),St(e,r,t)}}(e,r):Oe(r)}();return"function"!=typeof n&&R("unknown function pointer with signature "+e+": "+r),n}var gr=void 0;function Pt(e,r,t){switch(r){case 0:return t?function(n){return C[n]}:function(n){return T[n]};case 1:return t?function(n){return H[n>>1]}:function(n){return oe[n>>1]};case 2:return t?function(n){return _[n>>2]}:function(n){return k[n>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var hr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function Mt(e,r){for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&oe[n];)++n;if((t=n<<1)-e>32&&hr)return hr.decode(T.subarray(e,t));for(var i="",u=0;!(u>=r/2);++u){var l=H[e+2*u>>1];if(0==l)break;i+=String.fromCharCode(l)}return i}function It(e,r,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,a=(t-=2)<2*e.length?t/2:e.length,i=0;i>1]=u,r+=2}return H[r>>1]=0,r-n}function Zt(e){return 2*e.length}function Rt(e,r){for(var t=0,n="";!(t>=r/4);){var a=_[e+4*t>>2];if(0==a)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(a)}return n}function Lt(e,r,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,a=n+t-4,i=0;i=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&e.charCodeAt(++i)),_[r>>2]=u,(r+=4)+4>a)break}return _[r>>2]=0,r-n}function Nt(e){for(var r=0,t=0;t=55296&&n<=57343&&++t,r+=4}return r}var Vt={};function rn(e){try{return Ie.grow(e-ge.byteLength+65535>>>16),$e(Ie.buffer),1}catch{}}var p={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,recordError:function(e){p.lastError||(p.lastError=e)},getNewId:function(e){for(var r=p.counter++,t=e.length;t>2]:-1;a+=Z(_[t+4*i>>2],u<0?void 0:u)}return a},createContext:function(e,r){if(s.preinitializedWebGLContext){var t=s.preinitializedWebGLContext;r.majorVersion=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext?2:1}else{if(!e.getContextSafariWebGL2Fixed){let n=function(a,i){var u=e.getContextSafariWebGL2Fixed(a,i);return"webgl"==a==u instanceof WebGLRenderingContext?u:null};e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=n}t=e.getContext("webgl2",r)}return t?p.registerContext(t,r):0},registerContext:function(e,r){var t=p.getNewId(p.contexts),n={handle:t,attributes:r,version:r.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),p.contexts[t]=n,(void 0===r.enableExtensionsByDefault||r.enableExtensionsByDefault)&&p.initExtensions(n),t},makeContextCurrent:function(e){return p.currentContext=p.contexts[e],s.ctx=v=p.currentContext&&p.currentContext.GLctx,!(e&&!v)},getContext:function(e){return p.contexts[e]},deleteContext:function(e){p.currentContext===p.contexts[e]&&(p.currentContext=null),"object"==typeof E&&E.removeAllHandlersOnTarget(p.contexts[e].GLctx.canvas),p.contexts[e]&&p.contexts[e].GLctx.canvas&&(p.contexts[e].GLctx.canvas.GLctxObject=void 0),p.contexts[e]=null},initExtensions:function(e){if(e||(e=p.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var r=e.GLctx;(function nn(e){e.dibvbi=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")})(r),function on(e){e.mdibvbi=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance")}(r),e.version>=2&&(r.disjointTimerQueryExt=r.getExtension("EXT_disjoint_timer_query_webgl2")),(e.version<2||!r.disjointTimerQueryExt)&&(r.disjointTimerQueryExt=r.getExtension("EXT_disjoint_timer_query")),function an(e){e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw")}(r),(r.getSupportedExtensions()||[]).forEach(function(t){t.includes("lose_context")||t.includes("debug")||r.getExtension(t)})}}},E={inEventHandler:0,removeAllEventListeners:function(){for(var e=E.eventHandlers.length-1;e>=0;--e)E._removeHandler(e);E.eventHandlers=[],E.deferredCalls=[]},registerRemoveEventListeners:function(){E.removeEventListenersRegistered||(E.removeEventListenersRegistered=!0)},deferredCalls:[],deferCall:function(e,r,t){function n(u,l){if(u.length!=l.length)return!1;for(var c in u)if(u[c]!=l[c])return!1;return!0}for(var a in E.deferredCalls){var i=E.deferredCalls[a];if(i.targetFunction==e&&n(i.argsList,t))return}E.deferredCalls.push({targetFunction:e,precedence:r,argsList:t}),E.deferredCalls.sort(function(u,l){return u.precedence>7)}var te=void 0,Dr=[];function Sr(e,r){J.set(e,r),de[e]=J.get(e)}var v,Ar=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=o.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n};Object.defineProperties(Ar.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return o.isDir(this.mode)}},isDevice:{get:function(){return o.isChrdev(this.mode)}}}),o.FSNode=Ar,o.staticInit(),s.FS_createPath=o.createPath,s.FS_createDataFile=o.createDataFile,s.FS_createPreloadedFile=o.createPreloadedFile,s.FS_unlink=o.unlink,s.FS_createLazyFile=o.createLazyFile,s.FS_createDevice=o.createDevice,ur=s.InternalError=Le(Error,"InternalError"),function ct(){for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);fr=e}(),dr=s.BindingError=Le(Error,"BindingError"),function pt(){s.count_emval_handles=dt,s.get_first_emval=mt}(),gr=s.UnboundTypeError=Le(Error,"UnboundTypeError");for(var We=0;We<32;++We)yr.push(new Array(We));var Fr={__assert_fail:function Xr(e,r,t,n){U("Assertion failed: "+Z(e)+", at: "+[r?Z(r):"unknown filename",t,n?Z(n):"unknown function"])},__cxa_allocate_exception:function Qr(e){return Pe(e+24)+24},__cxa_throw:function Jr(e,r,t){throw new Kr(e).init(r,t),e},__syscall_fcntl64:function tt(e,r,t){P.varargs=t;try{var n=P.getStreamFromFD(e);switch(r){case 0:return(a=P.get())<0?-28:o.createStream(n,a).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var a=P.get();return n.flags|=a,0;case 5:return a=P.get(),H[a+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return function $r(e){_[Pr()>>2]=e}(28),-1}}catch(i){if(void 0===o||!(i instanceof o.ErrnoError))throw i;return-i.errno}},__syscall_ioctl:function nt(e,r,t){P.varargs=t;try{var n=P.getStreamFromFD(e);switch(r){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var a=P.get();return _[a>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return a=P.get(),o.ioctl(n,r,a);default:U("bad ioctl syscall "+r)}}catch(i){if(void 0===o||!(i instanceof o.ErrnoError))throw i;return-i.errno}},__syscall_openat:function ot(e,r,t,n){P.varargs=n;try{r=P.getStr(r),r=P.calculateAt(e,r);var a=n?P.get():0;return o.open(r,t,a).fd}catch(i){if(void 0===o||!(i instanceof o.ErrnoError))throw i;return-i.errno}},_embind_finalize_value_object:function ut(e){var r=Ee[e];delete Ee[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields;cr([e],a.map(i=>i.getterReturnType).concat(a.map(i=>i.setterArgumentType)),i=>{var u={};return a.forEach((l,c)=>{var m=i[c],h=l.getter,g=l.getterContext,b=i[c+a.length],A=l.setter,D=l.setterContext;u[l.fieldName]={read:M=>m.fromWireType(h(g,M)),write:(M,F)=>{var f=[];A(D,M,b.toWireType(f,F)),ir(f)}}}),[{name:r.name,fromWireType:function(l){var c={};for(var d in u)c[d]=u[d].read(l);return n(l),c},toWireType:function(l,c){for(var d in u)if(!(d in c))throw new TypeError('Missing field: "'+d+'"');var m=t();for(d in u)u[d].write(m,c[d]);return null!==l&&l.push(n,m),m},argPackAdvance:8,readValueFromPointer:be,destructorFunction:n}]})},_embind_register_bigint:function lt(e,r,t,n,a){},_embind_register_bool:function ft(e,r,t,n,a){var i=xe(t);z(e,{name:r=B(r),fromWireType:function(u){return!!u},toWireType:function(u,l){return l?n:a},argPackAdvance:8,readValueFromPointer:function(u){var l;if(1===t)l=C;else if(2===t)l=H;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+r);l=_}return this.fromWireType(l[u>>i])},destructorFunction:null})},_embind_register_emval:function _t(e,r){z(e,{name:r=B(r),fromWireType:function(t){var n=Q_toValue(t);return mr(t),n},toWireType:function(t,n){return Q_toHandle(n)},argPackAdvance:8,readValueFromPointer:be,destructorFunction:null})},_embind_register_enum:function ht(e,r,t,n){var a=xe(t);function i(){}r=B(r),i.values={},z(e,{name:r,constructor:i,fromWireType:function(u){return this.constructor.values[u]},toWireType:function(u,l){return l.value},argPackAdvance:8,readValueFromPointer:gt(r,a,n),destructorFunction:null}),pr(r,i)},_embind_register_enum_value:function yt(e,r,t){var n=vr(e,"enum");r=B(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:sr(n.name+"_"+r,function(){})}});a.values[t]=i,a[r]=i},_embind_register_float:function Et(e,r,t){var n=xe(t);z(e,{name:r=B(r),fromWireType:function(a){return a},toWireType:function(a,i){return i},argPackAdvance:8,readValueFromPointer:wt(r,n),destructorFunction:null})},_embind_register_function:function Ct(e,r,t,n,a,i){var u=function kt(e,r){for(var t=[],n=0;n>2]);return t}(r,t);e=B(e),a=me(n,a),pr(e,function(){!function Ft(e,r){var t=[],n={};throw r.forEach(function a(i){n[i]||re[i]||(ke[i]?ke[i].forEach(a):(t.push(i),n[i]=!0))}),new gr(e+": "+t.map(_r).join([", "]))}("Cannot call "+e+" due to unbound types",u)},r-1),cr([],u,function(l){var c=[l[0],null].concat(l.slice(1));return function xt(e,r,t){s.hasOwnProperty(e)||lr("Replacing nonexistant public symbol"),void 0!==s[e].overloadTable&&void 0!==t?s[e].overloadTable[t]=r:(s[e]=r,s[e].argCount=t)}(e,function bt(e,r,t,n,a){var i=r.length;i<2&&R("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var u=null!==r[1]&&null!==t,l=!1,c=1;cm;if(0===n){var l=32-8*t;u=m=>m<>>l}var c=r.includes("unsigned");z(e,{name:r,fromWireType:u,toWireType:c?function(m,h){return h>>>0}:function(m,h){return h},argPackAdvance:8,readValueFromPointer:Pt(r,i,0!==n),destructorFunction:null})},_embind_register_memory_view:function jt(e,r,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function a(i){var l=k[i>>=2];return new n(ge,k[i+1],l)}z(e,{name:t=B(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function Bt(e,r){var t="std::string"===(r=B(r));z(e,{name:r,fromWireType:function(n){var a,i=k[n>>2],u=n+4;if(t)for(var l=u,c=0;c<=i;++c){var d=u+c;if(c==i||0==T[d]){var m=Z(l,d-l);void 0===a?a=m:(a+=String.fromCharCode(0),a+=m),l=d+1}}else{var h=new Array(i);for(c=0;c>2]=i,t&&u)Je(a,c,i+1);else if(u)for(var d=0;d255&&(q(c),R("String has UTF-16 code units that do not fit in 8 bits")),T[c+d]=m}else for(d=0;doe,l=1):4===r&&(n=Rt,a=Lt,u=Nt,i=()=>k,l=2),z(e,{name:t,fromWireType:function(c){for(var d,m=k[c>>2],h=i(),g=c+4,b=0;b<=m;++b){var A=c+4+b*r;if(b==m||0==h[A>>l]){var D=n(g,A-g);void 0===d?d=D:(d+=String.fromCharCode(0),d+=D),g=A+r}}return q(c),d},toWireType:function(c,d){"string"!=typeof d&&R("Cannot pass non-string to C++ string type "+t);var m=u(d),h=Pe(4+m+r);return k[h>>2]=m>>l,a(d,h+4,m+r),null!==c&&c.push(q,h),h},argPackAdvance:8,readValueFromPointer:be,destructorFunction:function(c){q(c)}})},_embind_register_value_object:function zt(e,r,t,n,a,i){Ee[e]={name:B(r),rawConstructor:me(t,n),rawDestructor:me(a,i),fields:[]}},_embind_register_value_object_field:function Wt(e,r,t,n,a,i,u,l,c,d){Ee[e].fields.push({fieldName:B(r),getterReturnType:t,getter:me(n,a),getterContext:i,setterArgumentType:u,setter:me(l,c),setterContext:d})},_embind_register_void:function Ht(e,r){z(e,{isVoid:!0,name:r=B(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,n){}})},_emscripten_fs_load_embedded_files:function Ut(e){do{var r=k[e>>2],t=k[(e+=4)>>2],n=k[(e+=4)>>2];e+=4;var a=Z(r);o.createPath("/",x.dirname(a),!0,!0),o.createDataFile(a,null,C.subarray(n,n+t),!0,!0,!0)}while(k[e>>2])},_emval_decref:mr,_emval_incref:function Gt(e){e>4&&(L[e].refcount+=1)},_emval_new_cstring:function Yt(e){return Q_toHandle(function qt(e){var r=Vt[e];return void 0===r?B(e):r}(e))},_emval_new_object:function Xt(){return Q_toHandle({})},_emval_set_property:function Qt(e,r,t){e=Q_toValue(e),r=Q_toValue(r),t=Q_toValue(t),e[r]=t},_emval_take_value:function Kt(e,r){var t=(e=vr(e,"_emval_take_value")).readValueFromPointer(r);return Q_toHandle(t)},abort:function Jt(){U("")},emscripten_memcpy_big:function $t(e,r,t){T.copyWithin(e,r,r+t)},emscripten_resize_heap:function tn(e){var u,r=T.length,t=2147483648;if((e>>>=0)>t)return!1;for(var a=1;a<=4;a*=2){var i=r*(1+.2/a);if(i=Math.min(i,e+100663296),rn(Math.min(t,(u=Math.max(e,i))+(65536-u%65536)%65536)))return!0}return!1},emscripten_webgl_create_context:function dn(e,r){var t=r>>2,a={alpha:!!_[t+0],depth:!!_[t+1],stencil:!!_[t+2],antialias:!!_[t+3],premultipliedAlpha:!!_[t+4],preserveDrawingBuffer:!!_[t+5],powerPreference:sn[_[t+6]],failIfMajorPerformanceCaveat:!!_[t+7],majorVersion:_[t+8],minorVersion:_[t+9],enableExtensionsByDefault:_[t+10],explicitSwapControl:_[t+11],proxyContextToMainThread:_[t+12],renderViaOffscreenBackBuffer:_[t+13]},i=function fn(e){return function cn(e){return e=function un(e){return e>2?Z(e):e}(e),ln[e]||document.querySelector(e)}(e)}(e);return i?a.explicitSwapControl?0:p.createContext(i,a):0},emscripten_webgl_init_context_attributes:function pn(e){for(var r=e>>2,t=0;t<14;++t)_[r+t]=0;_[r+0]=_[r+1]=_[r+3]=_[r+4]=_[r+8]=_[r+10]=1},emscripten_webgl_make_context_current:function _n(e){return p.makeContextCurrent(e)?0:-5},environ_get:function hn(e,r){var t=0;return pe().forEach(function(n,a){var i=r+t;k[e+4*a>>2]=i,function gn(e,r,t){for(var n=0;n>0]=e.charCodeAt(n);t||(C[r>>0]=0)}(n,i),t+=n.length+1}),0},environ_sizes_get:function yn(e,r){var t=pe();k[e>>2]=t.length;var n=0;return t.forEach(function(a){n+=a.length+1}),k[r>>2]=n,0},fd_close:function wn(e){try{var r=P.getStreamFromFD(e);return o.close(r),0}catch(t){if(void 0===o||!(t instanceof o.ErrnoError))throw t;return t.errno}},fd_read:function bn(e,r,t,n){try{var a=function En(e,r,t,n){for(var a=0,i=0;i>2],l=k[r+4>>2];r+=8;var c=o.read(e,C,u,l,n);if(c<0)return-1;if(a+=c,c>2]=a,0}catch(i){if(void 0===o||!(i instanceof o.ErrnoError))throw i;return i.errno}},fd_seek:function xn(e,r,t,n,a){try{var i=function kn(e,r){return r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN}(r,t);if(isNaN(i))return 61;var u=P.getStreamFromFD(e);return o.llseek(u,i,n),G=[u.position>>>0,(j=u.position,+Math.abs(j)>=1?j>0?(0|Math.min(+Math.floor(j/4294967296),4294967295))>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],_[a>>2]=G[0],_[a+4>>2]=G[1],u.getdents&&0===i&&0===n&&(u.getdents=null),0}catch(l){if(void 0===o||!(l instanceof o.ErrnoError))throw l;return l.errno}},fd_write:function Sn(e,r,t,n){try{var a=function Dn(e,r,t,n){for(var a=0,i=0;i>2],l=k[r+4>>2];r+=8;var c=o.write(e,C,u,l,n);if(c<0)return-1;a+=c}return a}(P.getStreamFromFD(e),r,t);return k[n>>2]=a,0}catch(i){if(void 0===o||!(i instanceof o.ErrnoError))throw i;return i.errno}},glActiveTexture:function An(e){v.activeTexture(e)},glAttachShader:function Fn(e,r){v.attachShader(p.programs[e],p.shaders[r])},glBindAttribLocation:function Cn(e,r,t){v.bindAttribLocation(p.programs[e],r,Z(t))},glBindBuffer:function Pn(e,r){35051==e?v.currentPixelPackBufferBinding=r:35052==e&&(v.currentPixelUnpackBufferBinding=r),v.bindBuffer(e,p.buffers[r])},glBindBufferBase:function Tn(e,r,t){v.bindBufferBase(e,r,p.buffers[t])},glBindBufferRange:function jn(e,r,t,n,a){v.bindBufferRange(e,r,p.buffers[t],n,a)},glBindFramebuffer:function Bn(e,r){v.bindFramebuffer(e,p.framebuffers[r])},glBindTexture:function Mn(e,r){v.bindTexture(e,p.textures[r])},glBindVertexArray:function In(e){v.bindVertexArray(p.vaos[e])},glBufferData:function Zn(e,r,t,n){t&&r?v.bufferData(e,T,n,t,r):v.bufferData(e,r,n)},glBufferSubData:function Rn(e,r,t,n){t&&v.bufferSubData(e,r,T,n,t)},glClear:function Ln(e){v.clear(e)},glClearBufferfi:function Nn(e,r,t,n){v.clearBufferfi(e,r,t,n)},glClearBufferfv:function On(e,r,t){v.clearBufferfv(e,r,ae,t>>2)},glClearBufferiv:function zn(e,r,t){v.clearBufferiv(e,r,_,t>>2)},glClearBufferuiv:function Wn(e,r,t){v.clearBufferuiv(e,r,k,t>>2)},glClearColor:function Hn(e,r,t,n){v.clearColor(e,r,t,n)},glClearDepthf:function Un(e){v.clearDepth(e)},glClearStencil:function Gn(e){v.clearStencil(e)},glCompileShader:function Vn(e){v.compileShader(p.shaders[e])},glCreateProgram:function qn(){var e=p.getNewId(p.programs),r=v.createProgram();return r.name=e,r.maxUniformLength=r.maxAttributeLength=r.maxUniformBlockNameLength=0,r.uniformIdCounter=1,p.programs[e]=r,e},glCreateShader:function Yn(e){var r=p.getNewId(p.shaders);return p.shaders[r]=v.createShader(e),r},glDeleteBuffers:function Xn(e,r){for(var t=0;t>2],a=p.buffers[n];a&&(v.deleteBuffer(a),a.name=0,p.buffers[n]=null,n==v.currentPixelPackBufferBinding&&(v.currentPixelPackBufferBinding=0),n==v.currentPixelUnpackBufferBinding&&(v.currentPixelUnpackBufferBinding=0))}},glDeleteFramebuffers:function Qn(e,r){for(var t=0;t>2],a=p.framebuffers[n];a&&(v.deleteFramebuffer(a),a.name=0,p.framebuffers[n]=null)}},glDeleteProgram:function Kn(e){if(e){var r=p.programs[e];r?(v.deleteProgram(r),r.name=0,p.programs[e]=null):p.recordError(1281)}},glDeleteQueries:function Jn(e,r){for(var t=0;t>2],a=p.queries[n];a&&(v.deleteQuery(a),p.queries[n]=null)}},glDeleteShader:function $n(e){if(e){var r=p.shaders[e];r?(v.deleteShader(r),p.shaders[e]=null):p.recordError(1281)}},glDeleteTextures:function eo(e,r){for(var t=0;t>2],a=p.textures[n];a&&(v.deleteTexture(a),a.name=0,p.textures[n]=null)}},glDeleteVertexArrays:function ro(e,r){for(var t=0;t>2];v.deleteVertexArray(p.vaos[n]),p.vaos[n]=null}},glDrawArrays:function to(e,r,t){v.drawArrays(e,r,t)},glDrawBuffers:function no(e,r){for(var t=yr[e],n=0;n>2];v.drawBuffers(t)},glDrawElements:function oo(e,r,t,n){v.drawElements(e,r,t,n)},glDrawElementsInstanced:function ao(e,r,t,n,a){v.drawElementsInstanced(e,r,t,n,a)},glEnableVertexAttribArray:function io(e){v.enableVertexAttribArray(e)},glFramebufferTexture2D:function so(e,r,t,n,a){v.framebufferTexture2D(e,r,t,p.textures[n],a)},glGenBuffers:function uo(e,r){_e(e,r,"createBuffer",p.buffers)},glGenFramebuffers:function lo(e,r){_e(e,r,"createFramebuffer",p.framebuffers)},glGenQueries:function co(e,r){_e(e,r,"createQuery",p.queries)},glGenTextures:function fo(e,r){_e(e,r,"createTexture",p.textures)},glGenVertexArrays:function mo(e,r){_e(e,r,"createVertexArray",p.vaos)},glGenerateMipmap:function po(e){v.generateMipmap(e)},glGetIntegerv:function vo(e,r){!function _o(e,r,t){if(r){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=t&&1!=t&&p.recordError(1280));case 34814:case 36345:n=0;break;case 34466:var a=v.getParameter(34467);n=a?a.length:0;break;case 33309:if(p.currentContext.version<2)return void p.recordError(1282);n=2*(v.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(p.currentContext.version<2)return void p.recordError(1280);n=33307==e?3:0}if(void 0===n){var i=v.getParameter(e);switch(typeof i){case"number":n=i;break;case"boolean":n=i?1:0;break;case"string":return void p.recordError(1280);case"object":if(null===i)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:n=0;break;default:return void p.recordError(1280)}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(var u=0;u>2]=i[u];break;case 2:ae[r+4*u>>2]=i[u];break;case 4:C[r+u>>0]=i[u]?1:0}return}try{n=0|i.name}catch(l){return p.recordError(1280),void N("GL_INVALID_ENUM in glGet"+t+"v: Unknown object returned from WebGL getParameter("+e+")! (error: "+l+")")}}break;default:return p.recordError(1280),void N("GL_INVALID_ENUM in glGet"+t+"v: Native code calling glGet"+t+"v("+e+") and it returns "+i+" of type "+typeof i+"!")}}switch(t){case 1:wr(r,n);break;case 0:_[r>>2]=n;break;case 2:ae[r>>2]=n;break;case 4:C[r>>0]=n?1:0}}else p.recordError(1281)}(e,r,0)},glGetQueryObjectui64vEXT:function go(e,r,t){if(t){var n,a=p.queries[e];wr(t,"boolean"==typeof(n=p.currentContext.version<2?v.disjointTimerQueryExt.getQueryObjectEXT(a,r):v.getQueryParameter(a,r))?n?1:0:n)}else p.recordError(1281)},glGetQueryObjectuivEXT:function ho(e,r,t){if(t){var i=v.disjointTimerQueryExt.getQueryObjectEXT(p.queries[e],r);_[t>>2]="boolean"==typeof i?i?1:0:i}else p.recordError(1281)},glGetUniformBlockIndex:function yo(e,r){return v.getUniformBlockIndex(p.programs[e],Z(r))},glGetUniformLocation:function bo(e,r){if(r=Z(r),e=p.programs[e]){!function Eo(e){var r,t,n=e.uniformLocsById,a=e.uniformSizeAndIdsByName;if(!n)for(e.uniformLocsById=n={},e.uniformArrayNamesById={},r=0;r0?u.slice(0,c):u,m=e.uniformIdCounter;for(e.uniformIdCounter+=l,a[d]=[l,m],t=0;t0&&(n=function wo(e){return parseInt(e)}(r.slice(i+1))>>>0,a=r.slice(0,i));var u=e.uniformSizeAndIdsByName[a];if(u&&n>Se(l))}},glShaderSource:function Fo(e,r,t,n){var a=p.getSource(e,r,t,n);v.shaderSource(p.shaders[e],a)},glTexImage3D:function Co(e,r,t,n,a,i,u,l,c,d){if(v.currentPixelUnpackBufferBinding)v.texImage3D(e,r,t,n,a,i,u,l,c,d);else if(d){var m=De(c);v.texImage3D(e,r,t,n,a,i,u,l,c,m,d>>Se(m))}else v.texImage3D(e,r,t,n,a,i,u,l,c,null)},glTexParameteri:function Po(e,r,t){v.texParameteri(e,r,t)},glTexStorage2D:function To(e,r,t,n,a){v.texStorage2D(e,r,t,n,a)},glTexSubImage2D:function jo(e,r,t,n,a,i,u,l,c){if(v.currentPixelUnpackBufferBinding)v.texSubImage2D(e,r,t,n,a,i,u,l,c);else if(c){var d=De(l);v.texSubImage2D(e,r,t,n,a,i,u,l,d,c>>Se(d))}else v.texSubImage2D(e,r,t,n,a,i,u,l,null)},glTexSubImage3D:function Bo(e,r,t,n,a,i,u,l,c,d,m){if(v.currentPixelUnpackBufferBinding)v.texSubImage3D(e,r,t,n,a,i,u,l,c,d,m);else if(m){var h=De(d);v.texSubImage3D(e,r,t,n,a,i,u,l,c,d,h,m>>Se(h))}else v.texSubImage3D(e,r,t,n,a,i,u,l,c,d,null)},glUniform1i:function Io(e,r){v.uniform1i(function Mo(e){var r=v.currentProgram;if(r){var t=r.uniformLocsById[e];return"number"==typeof t&&(r.uniformLocsById[e]=t=v.getUniformLocation(r,r.uniformArrayNamesById[e]+(t>0?"["+t+"]":""))),t}p.recordError(1282)}(e),r)},glUniformBlockBinding:function Zo(e,r,t){v.uniformBlockBinding(e=p.programs[e],r,t)},glUseProgram:function Ro(e){v.useProgram(e=p.programs[e]),v.currentProgram=e},glVertexAttribIPointer:function Lo(e,r,t,n,a){v.vertexAttribIPointer(e,r,t,n,a)},glVertexAttribPointer:function No(e,r,t,n,a,i){v.vertexAttribPointer(e,r,t,!!n,a,i)},setTempRet0:function Oo(e){},strftime_l:function Uo(e,r,t,n){return function Ho(e,r,t,n){var a=_[n+40>>2],i={tm_sec:_[n>>2],tm_min:_[n+4>>2],tm_hour:_[n+8>>2],tm_mday:_[n+12>>2],tm_mon:_[n+16>>2],tm_year:_[n+20>>2],tm_wday:_[n+24>>2],tm_yday:_[n+28>>2],tm_isdst:_[n+32>>2],tm_gmtoff:_[n+36>>2],tm_zone:a?Z(a):""},u=Z(t),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var c in l)u=u.replace(new RegExp(c,"g"),l[c]);var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,y,S){for(var I="number"==typeof f?f.toString():f||"";I.length0?1:0}var I;return 0===(I=S(f.getFullYear()-y.getFullYear()))&&0===(I=S(f.getMonth()-y.getMonth()))&&(I=S(f.getDate()-y.getDate())),I}function A(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function D(f){var y=function Wo(e,r){for(var t=new Date(e.getTime());r>0;){var n=Ae(t.getFullYear()),a=t.getMonth(),i=(n?br:kr)[a];if(!(r>i-t.getDate()))return t.setDate(t.getDate()+r),t;r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t}(new Date(f.tm_year+1900,0,1),f.tm_yday),S=new Date(y.getFullYear(),0,4),I=new Date(y.getFullYear()+1,0,4),je=A(S),Qo=A(I);return b(je,y)<=0?b(Qo,y)<=0?y.getFullYear()+1:y.getFullYear():y.getFullYear()-1}var M={"%a":function(f){return d[f.tm_wday].substring(0,3)},"%A":function(f){return d[f.tm_wday]},"%b":function(f){return m[f.tm_mon].substring(0,3)},"%B":function(f){return m[f.tm_mon]},"%C":function(f){return g((f.tm_year+1900)/100|0,2)},"%d":function(f){return g(f.tm_mday,2)},"%e":function(f){return h(f.tm_mday,2," ")},"%g":function(f){return D(f).toString().substring(2)},"%G":function(f){return D(f)},"%H":function(f){return g(f.tm_hour,2)},"%I":function(f){var y=f.tm_hour;return 0==y?y=12:y>12&&(y-=12),g(y,2)},"%j":function(f){return g(f.tm_mday+function zo(e,r){for(var t=0,n=0;n<=r;t+=e[n++]);return t}(Ae(f.tm_year+1900)?br:kr,f.tm_mon-1),3)},"%m":function(f){return g(f.tm_mon+1,2)},"%M":function(f){return g(f.tm_min,2)},"%n":function(){return"\n"},"%p":function(f){return f.tm_hour>=0&&f.tm_hour<12?"AM":"PM"},"%S":function(f){return g(f.tm_sec,2)},"%t":function(){return"\t"},"%u":function(f){return f.tm_wday||7},"%U":function(f){return g(Math.floor((f.tm_yday+7-f.tm_wday)/7),2)},"%V":function(f){var y=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&y++,y){if(53==y){var S=(f.tm_wday+371-f.tm_yday)%7;4==S||3==S&&Ae(f.tm_year)||(y=1)}}else{y=52;var I=(f.tm_wday+7-f.tm_yday-1)%7;(4==I||5==I&&Ae(f.tm_year%400-1))&&y++}return g(y,2)},"%w":function(f){return f.tm_wday},"%W":function(f){return g(Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7),2)},"%y":function(f){return(f.tm_year+1900).toString().substring(2)},"%Y":function(f){return f.tm_year+1900},"%z":function(f){var y=f.tm_gmtoff,S=y>=0;return y=(y=Math.abs(y)/60)/60*100+y%60,(S?"+":"-")+String("0000"+y).slice(-4)},"%Z":function(f){return f.tm_zone},"%%":function(){return"%"}};for(var c in u=u.replace(/%%/g,"\0\0"),M)u.includes(c)&&(u=u.replace(new RegExp(c,"g"),M[c](i)));var F=we(u=u.replace(/\0\0/g,"%"),!1);return F.length>r?0:(function Yr(e,r){C.set(e,r)}(F,e),F.length-1)}(e,r,t,n)}};(function qr(){var e={env:Fr,wasi_snapshot_preview1:Fr};function r(i,u){s.asm=i.exports,$e((Ie=s.asm.memory).buffer),J=s.asm.__indirect_function_table,function Hr(e){rr.unshift(e)}(s.asm.__wasm_call_ctors),fe()}function t(i){r(i.instance)}function n(i){return function Vr(){return le||"function"!=typeof fetch?Promise.resolve().then(function(){return or(O)}):fetch(O,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+O+"'";return e.arrayBuffer()}).catch(function(){return or(O)})}().then(function(u){return WebAssembly.instantiate(u,e)}).then(function(u){return u}).then(i,function(u){N("failed to asynchronously prepare wasm: "+u),U(u)})}if(ye(),s.instantiateWasm)try{return s.instantiateWasm(e,r)}catch(i){return N("Module.instantiateWasm callback failed with error: "+i),!1}(function a(){return le||"function"!=typeof WebAssembly.instantiateStreaming||nr(O)||"function"!=typeof fetch?n(t):fetch(O,{credentials:"same-origin"}).then(function(i){return WebAssembly.instantiateStreaming(i,e).then(t,function(u){return N("wasm streaming compile failed: "+u),N("falling back to ArrayBuffer instantiation"),n(t)})})})().catch(K)})(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)};var q=s._free=function(){return(q=s._free=s.asm.free).apply(null,arguments)},Pe=s._malloc=function(){return(Pe=s._malloc=s.asm.malloc).apply(null,arguments)};s.__Z16get_new_requestsi=function(){return(s.__Z16get_new_requestsi=s.asm._Z16get_new_requestsi).apply(null,arguments)},s.__Z7respondiiN6i3slib3vxl13Wasm_responseE=function(){return(s.__Z7respondiiN6i3slib3vxl13Wasm_responseE=s.asm._Z7respondiiN6i3slib3vxl13Wasm_responseE).apply(null,arguments)},s.__Z9add_layerRKNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEjjddddbi=function(){return(s.__Z9add_layerRKNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEjjddddbi=s.asm._Z9add_layerRKNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEjjddddbi).apply(null,arguments)},s.__Z12remove_layeri=function(){return(s.__Z12remove_layeri=s.asm._Z12remove_layeri).apply(null,arguments)},s.__Z21initialize_voxel_wasmiiiiiiiiddbbb=function(){return(s.__Z21initialize_voxel_wasmiiiiiiiiddbbb=s.asm._Z21initialize_voxel_wasmiiiiiiiiddbbb).apply(null,arguments)},s.__Z23uninitialize_voxel_wasmv=function(){return(s.__Z23uninitialize_voxel_wasmv=s.asm._Z23uninitialize_voxel_wasmv).apply(null,arguments)},s.__Z15set_view_matrixffffffffffffffff=function(){return(s.__Z15set_view_matrixffffffffffffffff=s.asm._Z15set_view_matrixffffffffffffffff).apply(null,arguments)},s.__Z21set_projection_matrixffffffffffffffff=function(){return(s.__Z21set_projection_matrixffffffffffffffff=s.asm._Z21set_projection_matrixffffffffffffffff).apply(null,arguments)},s.__Z12set_near_fardd=function(){return(s.__Z12set_near_fardd=s.asm._Z12set_near_fardd).apply(null,arguments)},s.__Z4cullv=function(){return(s.__Z4cullv=s.asm._Z4cullv).apply(null,arguments)},s.__Z31update_camera_pos_and_directiondddddd=function(){return(s.__Z31update_camera_pos_and_directiondddddd=s.asm._Z31update_camera_pos_and_directiondddddd).apply(null,arguments)},s.__Z8get_nearv=function(){return(s.__Z8get_nearv=s.asm._Z8get_nearv).apply(null,arguments)},s.__Z7get_farv=function(){return(s.__Z7get_farv=s.asm._Z7get_farv).apply(null,arguments)},s.__Z17begin_color_framebddd=function(){return(s.__Z17begin_color_framebddd=s.asm._Z17begin_color_framebddd).apply(null,arguments)},s.__Z11begin_framev=function(){return(s.__Z11begin_framev=s.asm._Z11begin_framev).apply(null,arguments)},s.__Z32get_texture_units_bound_in_framev=function(){return(s.__Z32get_texture_units_bound_in_framev=s.asm._Z32get_texture_units_bound_in_framev).apply(null,arguments)},s.__Z23get_active_texture_unitv=function(){return(s.__Z23get_active_texture_unitv=s.asm._Z23get_active_texture_unitv).apply(null,arguments)},s.__Z12set_viewportii=function(){return(s.__Z12set_viewportii=s.asm._Z12set_viewportii).apply(null,arguments)},s.__Z4drawv=function(){return(s.__Z4drawv=s.asm._Z4drawv).apply(null,arguments)},s.__Z11set_qualityi=function(){return(s.__Z11set_qualityi=s.asm._Z11set_qualityi).apply(null,arguments)},s.__Z10pick_depthii=function(){return(s.__Z10pick_depthii=s.asm._Z10pick_depthii).apply(null,arguments)},s.__Z11pick_objectii=function(){return(s.__Z11pick_objectii=s.asm._Z11pick_objectii).apply(null,arguments)},s.__Z11set_enabledib=function(){return(s.__Z11set_enabledib=s.asm._Z11set_enabledib).apply(null,arguments)},s.__Z23handle_masked_ui_updateijj=function(){return(s.__Z23handle_masked_ui_updateijj=s.asm._Z23handle_masked_ui_updateijj).apply(null,arguments)},s.__Z21set_scene_time_extentddb=function(){return(s.__Z21set_scene_time_extentddb=s.asm._Z21set_scene_time_extentddb).apply(null,arguments)},s.__Z20set_upscaling_limitsidd=function(){return(s.__Z20set_upscaling_limitsidd=s.asm._Z20set_upscaling_limitsidd).apply(null,arguments)},s.__Z21estimate_memory_usagei=function(){return(s.__Z21estimate_memory_usagei=s.asm._Z21estimate_memory_usagei).apply(null,arguments)},s.__Z16add_generic_meshjjjjjjjj=function(){return(s.__Z16add_generic_meshjjjjjjjj=s.asm._Z16add_generic_meshjjjjjjjj).apply(null,arguments)},s.__Z19remove_generic_meshi=function(){return(s.__Z19remove_generic_meshi=s.asm._Z19remove_generic_meshi).apply(null,arguments)},s.__Z30toggle_full_volume_extent_drawi=function(){return(s.__Z30toggle_full_volume_extent_drawi=s.asm._Z30toggle_full_volume_extent_drawi).apply(null,arguments)},s.__Z21get_layer_epoch_timesii=function(){return(s.__Z21get_layer_epoch_timesii=s.asm._Z21get_layer_epoch_timesii).apply(null,arguments)},s.__Z25get_layer_current_time_idi=function(){return(s.__Z25get_layer_current_time_idi=s.asm._Z25get_layer_current_time_idi).apply(null,arguments)},s.__Z27get_locked_isosurface_coloriid=function(){return(s.__Z27get_locked_isosurface_coloriid=s.asm._Z27get_locked_isosurface_coloriid).apply(null,arguments)};var Cr=s.___getTypeName=function(){return(Cr=s.___getTypeName=s.asm.__getTypeName).apply(null,arguments)};s.___embind_register_native_and_builtin_types=function(){return(s.___embind_register_native_and_builtin_types=s.asm.__embind_register_native_and_builtin_types).apply(null,arguments)};var Pr=s.___errno_location=function(){return(Pr=s.___errno_location=s.asm.__errno_location).apply(null,arguments)};s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)};var Te,Tr=s.___cxa_is_pointer_type=function(){return(Tr=s.___cxa_is_pointer_type=s.asm.__cxa_is_pointer_type).apply(null,arguments)};function jr(e){function r(){Te||(Te=!0,s.calledRun=!0,Xe||(function Or(){s.noFSInit||o.init.initialized||o.init(),o.ignorePermissions=!1,Re(rr)}(),ue(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function zr(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)e=s.postRun.shift(),tr.unshift(e);var e;Re(tr)}()))}$>0||(function Nr(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)e=s.preRun.shift(),er.unshift(e);var e;Re(er)}(),$>0||(s.setStatus?(s.setStatus("Running..."),setTimeout(function(){setTimeout(function(){s.setStatus("")},1),r()},1)):r()))}if(s.dynCall_iij=function(){return(s.dynCall_iij=s.asm.dynCall_iij).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.dynCall_viijii=function(){return(s.dynCall_viijii=s.asm.dynCall_viijii).apply(null,arguments)},s.dynCall_iiiiij=function(){return(s.dynCall_iiiiij=s.asm.dynCall_iiiiij).apply(null,arguments)},s.dynCall_iiiiijj=function(){return(s.dynCall_iiiiijj=s.asm.dynCall_iiiiijj).apply(null,arguments)},s.dynCall_iiiiiijj=function(){return(s.dynCall_iiiiiijj=s.asm.dynCall_iiiiiijj).apply(null,arguments)},s.___emscripten_embedded_file_data=138304,s.stringToUTF8=Je,s.lengthBytesUTF8=he,s.addRunDependency=ye,s.removeRunDependency=fe,s.FS_createPath=o.createPath,s.FS_createDataFile=o.createDataFile,s.FS_createPreloadedFile=o.createPreloadedFile,s.FS_createLazyFile=o.createLazyFile,s.FS_createDevice=o.createDevice,s.FS_unlink=o.unlink,s.addFunction=function Xo(e,r){if(te||(te=new WeakMap,function qo(e,r){if(te)for(var t=e;t0;)s.preInit.pop()();return jr(),Y.ready};const Mr=function Br(Y,ue){for(var K=0;Ks[W]})}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:Me.exports},[Me.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6269.0289357d835558d5.js b/apps/n/porrtal-io-app/public/angular/6269.0289357d835558d5.js deleted file mode 100644 index ae1641ef..00000000 --- a/apps/n/porrtal-io-app/public/angular/6269.0289357d835558d5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6269],{36592:(Y,A,h)=>{h.d(A,{Q:()=>D});var P=h(85931),E=h(62208),S=h(77029),O=h(14259);class D{constructor(e=9,o){this._compareMinX=I,this._compareMinY=l,this._toBBox=n=>n,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),o&&("function"==typeof o?this._toBBox=o:this._initFormat(o)),this.clear()}destroy(){this.clear(),j.prune(),W.prune(),x.prune(),U.prune()}all(e){this._all(this._data,e)}search(e,o){let n=this._data;const a=this._toBBox;if(R(e,n))for(j.clear();n;){for(let t=0,s=n.children.length;t0;){if(n||(n=(0,E.j0)(x.pop()),a=x.data[x.length-1],t=U.pop()??0,s=!0),n.leaf&&(o=(0,P.cq)(n.children,e,n.children.length,n.indexHint),-1!==o))return n.children.splice(o,1),x.push(n),this._condense(x),this;s||n.leaf||!C(n,i)?a?(t++,n=a.children[t],s=!1):n=null:(x.push(n),U.push(t),t=0,a=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,o){let n=e;for(W.clear();n;){if(!0===n.leaf)for(const a of n.children)o(a);else W.pushArray(n.children);n=W.pop()??null}}_build(e,o,n,a){const t=n-o+1;let s=this._maxEntries;if(t<=s){const c=new T(e.slice(o,n+1));return y(c,this._toBBox),c}a||(a=Math.ceil(Math.log(t)/Math.log(s)),s=Math.ceil(t/s**(a-1)));const i=new b([]);i.height=a;const r=Math.ceil(t/s),u=r*Math.ceil(Math.sqrt(s));X(e,o,n,u,this._compareMinX);for(let c=o;c<=n;c+=u){const g=Math.min(c+u-1,n);X(e,c,g,r,this._compareMinY);for(let M=c;M<=g;M+=r){const L=Math.min(M+r-1,g);i.children.push(this._build(e,M,L,a-1))}}return y(i,this._toBBox),i}_chooseSubtree(e,o,n,a){for(;a.push(o),!0!==o.leaf&&a.length-1!==n;){let t,s=1/0,i=1/0;for(let r=0,u=o.children.length;r=0&&x.data[o].children.length>this._maxEntries;)this._split(x,o),o--;this._adjustParentBBoxes(t,x,o)}_split(e,o){const n=e.data[o],a=n.children.length,t=this._minEntries;this._chooseSplitAxis(n,t,a);const s=this._chooseSplitIndex(n,t,a);if(!s)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const i=n.children.splice(s,n.children.length-s),r=n.leaf?new T(i):new b(i);r.height=n.height,y(n,this._toBBox),y(r,this._toBBox),o?e.data[o-1].children.push(r):this._splitRoot(n,r)}_splitRoot(e,o){this._data=new b([e,o]),this._data.height=e.height+1,y(this._data,this._toBBox)}_chooseSplitIndex(e,o,n){let a,t,s;a=t=1/0;for(let i=o;i<=n-o;i++){const r=m(e,0,i,this._toBBox),u=m(e,i,n,this._toBBox),c=B(r,u),g=f(r)+f(u);c=o;u--){const c=e.children[u];v(i,e.leaf?t(c):c),r+=d(i)}return r}_adjustParentBBoxes(e,o,n){for(let a=n;a>=0;a--)v(o.data[a],e)}_condense(e){for(let o=e.length-1;o>=0;o--){const n=e.data[o];if(0===n.children.length)if(o>0){const a=e.data[o-1],t=a.children;t.splice((0,P.cq)(t,n,t.length,a.indexHint),1)}else this.clear();else y(n,this._toBBox)}}_initFormat(e){const o=["return a"," - b",";"];this._compareMinX=new Function("a","b",o.join(e[0])),this._compareMinY=new Function("a","b",o.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function y(_,e){m(_,0,_.children.length,e,_)}function m(_,e,o,n,a){a||(a=new T([])),a.minX=1/0,a.minY=1/0,a.maxX=-1/0,a.maxY=-1/0;for(let t,s=e;s=_.minX&&e.maxY>=_.minY}function X(_,e,o,n,a){const t=[e,o];for(;t.length;){const s=(0,E.j0)(t.pop()),i=(0,E.j0)(t.pop());if(s-i<=n)continue;const r=i+Math.ceil((s-i)/n/2)*n;(0,O.q)(_,r,i,s,a),t.push(i,r,r,s)}}const j=new S.Z,W=new S.Z,x=new S.Z,U=new S.Z({deallocator:void 0});class F{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class K extends F{constructor(){super(...arguments),this.height=1,this.indexHint=new P.SO}}class T extends K{constructor(e){super(),this.children=e,this.leaf=!0}}class b extends K{constructor(e){super(),this.children=e,this.leaf=!1}}},61256:(Y,A,h)=>{h.d(A,{H:()=>v});var P=h(8314),E=h(36592),S=h(65401);const D={minX:0,minY:0,maxX:0,maxY:0};class v{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new E.Q(9,(0,P.Z)("esri-csp-restrictions")?l=>({minX:l[0],minY:l[1],maxX:l[2],maxY:l[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const l=new Array(this._idByBounds.size);let f=0;this._idByBounds.forEach((d,p)=>{l[f++]=p}),this._indexInvalid=!1,this._index.clear(),this._index.load(l)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(l=>this._idByBounds.has(l))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const l=(0,S.cS)();for(const f of this._boundsById.values())f&&(l[0]=Math.min(f[0],l[0]),l[1]=Math.min(f[1],l[1]),l[2]=Math.max(f[2],l[2]),l[3]=Math.max(f[3],l[3]));return l}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(l){const f=this._boundsById.get(l);this._boundsById.delete(l),f&&(this._idByBounds.delete(f),this._indexInvalid||this._index.remove(f))}forEachInBounds(l,f){this._loadIndex(),function m(I,l,f){(function y(I){D.minX=I[0],D.minY=I[1],D.maxX=I[2],D.maxY=I[3]})(l),I.search(D,f)}(this._index,l,d=>f(this._idByBounds.get(d)))}get(l){return this._boundsById.get(l)}has(l){return this._boundsById.has(l)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(l,f){if(!this._indexInvalid){const d=this._boundsById.get(l);d&&(this._index.remove(d),this._idByBounds.delete(d))}this._boundsById.set(l,f),f&&(this._idByBounds.set(f,l),this._indexInvalid||(this._boundsToLoad.push(f),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},3579:(Y,A,h)=>{h.d(A,{Z:()=>l});var P=h(26584),E=h(61885),S=h(63290),O=h(62208),D=h(5548),y=h(65401),m=h(82054),v=h(61256),I=h(92794);class l{constructor(d){this.geometryInfo=d,this._boundsStore=new v.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new E.Z,this.featureAdapter=I.n}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let d=0;return this._featuresById.forEach(p=>{(0,O.pC)(p.geometry)&&p.geometry.coords&&(d+=p.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:d/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(d){this._add(d),this._emitChanged()}addMany(d){for(const p of d)this._add(p);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(d){const p=this._featuresById.get(d);return p?(this._remove(p),this._emitChanged(),p):null}removeManyById(d){this._boundsStore.invalidateIndex();for(const p of d){const B=this._featuresById.get(p);B&&this._remove(B)}this._emitChanged()}forEachBounds(d,p,B){for(const C of d){const R=this._boundsStore.get(C.objectId);R&&p((0,D.JR)(B,R))}}getFeature(d){return this._featuresById.get(d)}has(d){return this._featuresById.has(d)}toArray(){return Array.from(this._featuresById.values())}forEach(d){this._featuresById.forEach(p=>d(p))}forEachInBounds(d,p){this._boundsStore.forEachInBounds(d,B=>{p(this._featuresById.get(B))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let d=!1;this._featuresById.forEach((p,B)=>{this._markedIds.has(B)||(d=!0,this._remove(p))}),this._markedIds.clear(),d&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(d){if(!d)return;const p=d.objectId;if(null==p)return void S.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new P.Z("featurestore:invalid-feature","feature id is missing",{feature:d}));const B=this._featuresById.get(p);let C;if(this._markedIds.add(p),B?(d.displayId=B.displayId,C=this._boundsStore.get(p),this._boundsStore.delete(p)):(0,O.pC)(this.onFeatureAdd)&&this.onFeatureAdd(d),(0,O.Wi)(d.geometry)||!d.geometry.coords||!d.geometry.coords.length)return this._boundsStore.set(p,null),void this._featuresById.set(p,d);C=(0,m.$)((0,O.pC)(C)?C:(0,y.Ue)(),d.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,O.pC)(C)&&this._boundsStore.set(p,C),this._featuresById.set(p,d)}_remove(d){return(0,O.pC)(this.onFeatureRemove)&&this.onFeatureRemove(d),this._markedIds.delete(d.objectId),this._boundsStore.delete(d.objectId),this._featuresById.delete(d.objectId),d}}},92794:(Y,A,h)=>{h.d(A,{n:()=>D});var P=h(62208),E=h(77044),S=h(66385),O=h(88071);const D={getObjectId:y=>y.objectId,getAttributes:y=>y.attributes,getAttribute:(y,m)=>y.attributes[m],cloneWithGeometry:(y,m)=>new S.u_(m,y.attributes,null,y.objectId),getGeometry:y=>y.geometry,getCentroid:(y,m)=>((0,P.Wi)(y.centroid)&&(y.centroid=(0,E.Y)(new O.Z,y.geometry,m.hasZ,m.hasM)),y.centroid)}},66269:(Y,A,h)=>{h.r(A),h.d(A,{GraphicsSnappingSource:()=>n});var P=h(15861),E=h(17626),S=h(14517),O=h(85931),D=h(59213),y=h(80542),m=h(62208),v=h(10699),I=h(32917),l=h(77712),d=(h(90912),h(76898)),p=h(37118),B=h(55915),C=h(65629),R=h(71774),X=h(82054),j=h(66385),W=h(3579),x=h(58175),U=h(60507),F=h(86606),K=h(44725),T=h(4257),b=h(17936),_=h(1520),e=h(83010);const o="graphics-collections";let n=class extends((0,y.p)(S.Z)){constructor(t){super(t),this.availability=1,this._sources={multipoint:null,point:null,polygon:null,polyline:null},this._loadedWkids=new Set,this._loadedWkts=new Set,this._pendingAdds=[],this._extrudedPolygonSymbolsCount=0}get updating(){return this.updatingHandles.updating}get _hasZ(){const t=this.view;return(0,m.pC)(t)&&"3d"===t.type&&"map-notes"!==this.layerSource.layer.type}get _snappingElevationAligner(){const{view:t}=this,{layer:s}=this.layerSource,i=(0,m.pC)(t)&&"3d"===t.type;if(!i||"map-notes"===s.type)return(0,b.p)();const r=function(){var u=(0,P.Z)(function*(c,g){return(yield(0,v.Hl)(t.whenLayerView(s),g)).elevationAlignPointsInFeatures(c,g)});return function(g,M){return u.apply(this,arguments)}}();return(0,b.p)(i,{elevationInfo:s.elevationInfo,alignPointsInFeatures:r,spatialReference:t.spatialReference})}get _snappingElevationFilter(){const{view:t}=this,s=(0,m.pC)(t)&&"3d"===t.type&&"map-notes"!==this.layerSource.layer.type;return(0,_.c)(s)}get _symbologySnappingFetcher(){const{view:t}=this,{layer:s}=this.layerSource,i=(0,m.pC)(t)&&"3d"===t.type,r=this._extrudedPolygonSymbolsCount>0;return i&&"map-notes"!==s.type&&r?(0,e.k)(r,function(){var u=(0,P.Z)(function*(c,g){const M=yield t.whenLayerView(s);return(0,v.k_)(g),M.queryForSymbologySnapping({candidates:c,spatialReference:t.spatialReference},g)});return function(c,g){return u.apply(this,arguments)}}()):(0,e.k)()}destroy(){for(const t of this._pendingAdds)t.task.abort();this._pendingAdds.length=0,this._mapSources(t=>this._destroySource(t))}initialize(){this.updatingHandles.add(()=>this.getGraphicsLayers(),i=>{this.updatingHandles.removeHandles(o);for(const r of i)this._addMany(r.graphics.toArray()),this.handles.add([r.on("graphic-update",u=>this._onGraphicUpdate(u)),this.updatingHandles.addOnCollectionChange(()=>r.graphics,u=>this._onGraphicsChanged(u))],o)},I.nn);const{view:t}=this,{layer:s}=this.layerSource;(0,m.pC)(t)&&"3d"===t.type&&"map-notes"!==s.type&&this.addHandles([t.elevationProvider.on("elevation-change",({context:i})=>{(0,U.W_)(i,s.elevationInfo)&&this._snappingElevationAligner.notifyElevationSourceChange()}),(0,I.YP)(()=>s.elevationInfo,()=>this._snappingElevationAligner.notifyElevationSourceChange(),I.nn)])}fetchCandidates(t,s){var i=this;return(0,P.Z)(function*(){const{point:r,coordinateHelper:u,elevationInfo:c}=t,g=yield(0,v.WW)(i._mapSources(Z=>i._fetchCandidatesForSource(Z,t,s)));(0,v.k_)(s);const M=u.hasZ()?U.jG:c,L=i._getGroundElevation,w=g.flat().map(Z=>(0,T.X)(Z,u,M,L));return(0,K.lQ)(r,w,u),w})()}get _getGroundElevation(){return(0,T.g)(this.view)}_fetchCandidatesForSource(t,s,i){var r=this;return(0,P.Z)(function*(){const u=(0,K.rh)(s),c=yield t.queryEngine.executeQueryForSnapping(u,i);(0,v.k_)(i);const g=yield r._snappingElevationAligner.alignCandidates(c.candidates,i);(0,v.k_)(i);const M=yield r._symbologySnappingFetcher.fetch(g,i);(0,v.k_)(i);const L=0===M.length?g:[...g,...M];return r._snappingElevationFilter.filter(u,L)})()}refresh(){}_onGraphicUpdate(t){if(this.getGraphicsLayers().some(s=>s.graphics.includes(t.graphic)))switch(t.property){case"geometry":case"visible":this._remove(t.graphic),this._addMany([t.graphic])}}_onGraphicsChanged(t){for(const s of t.removed)this._remove(s);this._addMany(t.added)}_addMany(t){const s=[],i=new Map;for(const r of t)(0,m.Wi)(r.geometry)||(this._needsInitializeProjection(r.geometry.spatialReference)?(s.push(r.geometry.spatialReference),i.set(r.uid,r)):this._add(r));this._createPendingAdd(s,i)}_createPendingAdd(t,s){var i=this;if(!t.length)return;const r=(0,D.vr)(function(){var g=(0,P.Z)(function*(M){yield(0,B.iQ)(t.map(L=>({source:L,dest:i.spatialReference})),{signal:M}),i._markLoadedSpatialReferences(t);for(const[,L]of s)i._add(L)});return function(M){return g.apply(this,arguments)}}());this.updatingHandles.addPromise(r.promise);const u={task:r,graphics:s},c=()=>(0,O.e$)(this._pendingAdds,u);r.promise.then(c,c),this._pendingAdds.push(u)}_markLoadedSpatialReferences(t){for(const s of t)null!=s.wkid&&this._loadedWkids.add(s.wkid),null!=s.wkt&&this._loadedWkts.add(s.wkt)}_add(t){if((0,m.Wi)(t.geometry)||!t.visible)return;let s=t.geometry;if("mesh"===s.type)return;"extent"===s.type&&(s=p.Z.fromExtent(s));const i=this._ensureSource(s.type);if((0,m.Wi)(i))return;const r=this._createOptimizedFeature(t.uid,s);(0,m.Wi)(r)||(i.featureStore.add(r),(0,F.QL)(t.symbol)&&this._extrudedPolygonSymbolsCount++)}_needsInitializeProjection(t){return!(null!=t.wkid&&this._loadedWkids.has(t.wkid)||null!=t.wkt&&this._loadedWkts.has(t.wkt)||(0,B.Up)(t,this.spatialReference))}_createOptimizedFeature(t,s){const i=(0,B.iV)((0,C.SR)(s),this.spatialReference);if(!i)return null;const r=this._ensureGeometryHasZ(i),u=(0,X.GH)(r,this._hasZ,!1);return new j.u_(u,{[a]:t},null,t)}_ensureGeometryHasZ(t){if(!this._hasZ)return t;const s=r=>{for(;r.length<3;)r.push(0)},i=t.clone();switch(i.hasZ=!0,i.type){case"point":i.z=i.z??0;break;case"multipoint":i.points.forEach(s);break;case"polyline":i.paths.forEach(r=>r.forEach(s));break;case"polygon":i.rings.forEach(r=>r.forEach(s))}return i}_ensureSource(t){const s=this._sources[t];if((0,m.pC)(s))return s;const i=this._createSource(t);return this._sources[t]=i,i}_createSource(t){const s=R.Mk.toJSON(t),i=this._hasZ,r=new W.Z({geometryType:s,hasZ:i,hasM:!1});return{featureStore:r,queryEngine:new x.q({featureStore:r,fields:[{name:a,type:"esriFieldTypeOID",alias:a}],geometryType:s,hasM:!1,hasZ:i,objectIdField:a,spatialReference:this.spatialReference,scheduler:(0,m.pC)(this.view)&&"3d"===this.view.type?this.view.resourceController.scheduler:null}),type:t}}_remove(t){this._mapSources(s=>this._removeFromSource(s,t));for(const s of this._pendingAdds)s.graphics.delete(t.uid),0===s.graphics.size&&s.task.abort()}_removeFromSource(t,s){t.featureStore.has(s.uid)&&(t.featureStore.removeById(s.uid),(0,F.QL)(s.symbol)&&this._extrudedPolygonSymbolsCount--)}_destroySource(t){t.queryEngine.destroy(),this._sources[t.type]=null}_mapSources(t){const{point:s,polygon:i,polyline:r,multipoint:u}=this._sources,c=[];return(0,m.pC)(s)&&c.push(t(s)),(0,m.pC)(i)&&c.push(t(i)),(0,m.pC)(r)&&c.push(t(r)),(0,m.pC)(u)&&c.push(t(u)),c}};(0,E._)([(0,l.Cb)()],n.prototype,"getGraphicsLayers",void 0),(0,E._)([(0,l.Cb)({constructOnly:!0})],n.prototype,"layerSource",void 0),(0,E._)([(0,l.Cb)({constructOnly:!0})],n.prototype,"spatialReference",void 0),(0,E._)([(0,l.Cb)({constructOnly:!0})],n.prototype,"view",void 0),(0,E._)([(0,l.Cb)({readOnly:!0})],n.prototype,"updating",null),(0,E._)([(0,l.Cb)({readOnly:!0})],n.prototype,"availability",void 0),(0,E._)([(0,l.Cb)()],n.prototype,"_hasZ",null),(0,E._)([(0,l.Cb)()],n.prototype,"_snappingElevationAligner",null),(0,E._)([(0,l.Cb)()],n.prototype,"_snappingElevationFilter",null),(0,E._)([(0,l.Cb)()],n.prototype,"_symbologySnappingFetcher",null),(0,E._)([(0,l.Cb)()],n.prototype,"_extrudedPolygonSymbolsCount",void 0),(0,E._)([(0,l.Cb)()],n.prototype,"_getGroundElevation",null),n=(0,E._)([(0,d.j)("esri.views.interactive.snapping.featureSources.GraphicsSnappingSource")],n);const a="OBJECTID"}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6306.1f8bea0c77af1d9e.js b/apps/n/porrtal-io-app/public/angular/6306.1f8bea0c77af1d9e.js deleted file mode 100644 index 656af5c4..00000000 --- a/apps/n/porrtal-io-app/public/angular/6306.1f8bea0c77af1d9e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6306],{96306:(b,y,e)=>{e.r(y),e.d(y,{default:()=>W});var E=e(15861),s=e(17626),p=e(59318),P=e(84792),M=(e(20383),e(62208)),d=e(99959),O=e(10699),m=e(21726),_=e(77712),v=(e(85931),e(90912),e(68653)),D=e(76898),C=e(2004),h=e(37053),u=e(44917),S=e(552),c=e(49286),R=e(6647),L=e(30346),g=e(99555),n=e(13812),a=e(10012),j=e(52068),f=e(13546),T=e(57213),U=e(88493);const A=["atom","xml"],I={base:a.Z,key:"type",typeMap:{"simple-line":j.Z},errorContext:"symbol"},B={base:a.Z,key:"type",typeMap:{"picture-marker":f.Z,"simple-marker":T.Z},errorContext:"symbol"},K={base:a.Z,key:"type",typeMap:{"simple-fill":U.Z},errorContext:"symbol"};let o=class extends((0,S.h)((0,L.Q)((0,c.q)((0,R.I)((0,g.M)((0,d.R)(u.Z))))))){constructor(...t){super(...t),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(t,r){return"string"==typeof t?{url:t,...r}:t}readFeatureCollections(t,r){return r.featureCollection.layers.forEach(l=>{const i=l.layerDefinition.drawingInfo.renderer.symbol;i&&"esriSFS"===i.type&&i.outline?.style.includes("esriSFS")&&(i.outline.style="esriSLSSolid")}),r.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const t=this._get("title");return t&&"defaults"!==this.originOf("title")?t:this.url?(0,m.vt)(this.url,A)||"GeoRSS":t||""}set title(t){this._set("title",t)}load(t){const r=(0,M.pC)(t)?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},t).catch(O.r9).then(()=>this._fetchService(r)).then(l=>{this.read(l,{origin:"service"})})),Promise.resolve(this)}hasDataChanged(){var t=this;return(0,E.Z)(function*(){const r=yield t._fetchService();return t.read(r,{origin:"service",ignoreDefaults:!0}),!0})()}_fetchService(t){var r=this;return(0,E.Z)(function*(){const l=r.spatialReference,{data:i}=yield(0,P.default)(p.Z.geoRSSServiceUrl,{query:{url:r.url,refresh:!!r.loaded||void 0,outSR:(0,h.oR)(l)?void 0:l.wkid??JSON.stringify(l)},signal:t});return i})()}_hasGeometry(t){return this.featureCollections?.some(r=>r.featureSet?.geometryType===t&&r.featureSet.features?.length>0)??!1}};(0,s._)([(0,_.Cb)()],o.prototype,"description",void 0),(0,s._)([(0,_.Cb)()],o.prototype,"featureCollections",void 0),(0,s._)([(0,v.r)("service","featureCollections",["featureCollection.layers"])],o.prototype,"readFeatureCollections",null),(0,s._)([(0,_.Cb)({type:C.Z,json:{name:"lookAtExtent"}})],o.prototype,"fullExtent",void 0),(0,s._)([(0,_.Cb)(n.id)],o.prototype,"id",void 0),(0,s._)([(0,_.Cb)(n.rn)],o.prototype,"legendEnabled",void 0),(0,s._)([(0,_.Cb)({types:I,json:{write:!0}})],o.prototype,"lineSymbol",void 0),(0,s._)([(0,_.Cb)({type:["show","hide"]})],o.prototype,"listMode",void 0),(0,s._)([(0,_.Cb)({types:B,json:{write:!0}})],o.prototype,"pointSymbol",void 0),(0,s._)([(0,_.Cb)({types:K,json:{write:!0}})],o.prototype,"polygonSymbol",void 0),(0,s._)([(0,_.Cb)({type:["GeoRSS"]})],o.prototype,"operationalLayerType",void 0),(0,s._)([(0,_.Cb)(n.HQ)],o.prototype,"url",void 0),(0,s._)([(0,_.Cb)({json:{origins:{service:{read:{source:"name",reader:t=>t||void 0}}}}})],o.prototype,"title",null),(0,s._)([(0,_.Cb)({readOnly:!0,json:{read:!1},value:"geo-rss"})],o.prototype,"type",void 0),o=(0,s._)([(0,D.j)("esri.layers.GeoRSSLayer")],o);const W=o}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6329.ed08436c8f9c994f.js b/apps/n/porrtal-io-app/public/angular/6329.ed08436c8f9c994f.js deleted file mode 100644 index 59d8ce6d..00000000 --- a/apps/n/porrtal-io-app/public/angular/6329.ed08436c8f9c994f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6329],{86329:(ar,Ue,w)=>{w.r(Ue),w.d(Ue,{default:()=>ir});var Z=w(15861),C=w(17626),dt=w(73281),Me=w(90885),J=w(26584),R=w(62208),mt=w(99959),ge=w(10699),pt=w(32917),F=w(77712),Ge=(w(85931),w(90912)),ht=w(55342),yt=w(68653),re=w(76898),gt=w(44917),xt=w(552),It=w(50107),$e=(w(29132),w(84792)),Ve=w(63290),vt=w(37053),Ye=w(38305),Ne=w(13812),Xe=w(25982),bt=w(11354),St=w(40495),Rt=w(9548),xe=w(2584),Ct=w(86810),Tt=w(60330),Ie=w(27497),se=w(79781),A=w(28594),U=w(72642);const ne=new Map,oe=new class wt{constructor(t=15e3,c=5e3){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=t,this._interval=Math.min(t,c)}decreaseRefCount(t,c){const s=t+"/"+c,a=this._cachedBlocks;if(a.has(s)){const f=a.get(s);return f.refCount--,f.refCount<=0&&(a.delete(s),f.controller&&f.controller.abort()),f.refCount}return 0}getBlock(t,c){const s=t+"/"+c,a=this._cachedBlocks;if(a.has(s)){const f=a.get(s);return f.ts=Date.now(),f.refCount++,a.delete(s),a.set(s,f),f.block}return null}putBlock(t,c,s,a){const f=this._cachedBlocks,u=t+"/"+c;if(f.has(u)){const m=f.get(u);m.ts=Date.now(),m.refCount++}else f.set(u,{block:s,ts:Date.now(),refCount:1,controller:a});this._trim(),this._updateTimer()}deleteBlock(t,c){const s=this._cachedBlocks,a=t+"/"+c;s.has(a)&&s.delete(a)}updateMaxSize(t){this._size=t,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;const t=this._cachedBlocks;this._timer=setInterval(()=>{const c=Array.from(t),s=Date.now();for(let a=0;a=t.size)return;const c=Array.from(t);for(let s=0;su.isResolved=!0).catch(()=>u.isRejected=!0),f[t]?.cache.set(c,u)}var et=w(8614),ce=w(79751),Je=w(30994),X=w(2004);let Q=class extends((0,Tt.v)(Ct.wq)){constructor(){super(...arguments),this.rasterJobHandler=null,this.datasetName=null,this.datasetFormat=null,this.rasterInfo=null,this.ioConfig={sampling:"closest"}}init(){var i=this;return(0,Z.Z)(function*(){const t=(0,A.zD)();i.addResolvingPromise(t),yield i.when()})()}normalizeCtorArgs(i){return i&&i.ioConfig&&(i={...i,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:xe.Z.create(),...i.ioConfig}}),i}get _isGlobalWrappableSource(){const{rasterInfo:i}=this,t=(0,A.ut)(i.spatialReference);return(0,R.pC)(t)&&i.extent.width>=t/2}set url(i){this._set("url",(0,Ye.Nm)(i,Ve.Z.getLogger(this.declaredClass)))}open(i){return(0,Z.Z)(function*(){throw new J.Z("BaseRaster:open-not-implemented","open() is not implemented")})()}fetchTile(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){const f=s.tileInfo||a.rasterInfo.storageInfo.tileInfo,u=a.getTileExtentFromTileInfo(i,t,c,f);return a.fetchPixels(u,f.size[0],f.size[1],s)})()}identify(i,t={}){var c=this;return(0,Z.Z)(function*(){i=(0,Ge.TJ)(U.Z,i).clone().normalize();const{multidimensionalDefinition:s,timeExtent:a}=t,{hasMultidimensionalTranspose:f,multidimensionalInfo:u}=c.rasterInfo;let{transposedVariableName:m}=t;const d=(0,R.pC)(u)&&f&&(null!=a||(0,se.WU)(s));d&&!m&&(m=(0,R.pC)(s)&&s.length>0?s[0].variableName??void 0:u.variables[0].name,t={...t,transposedVariableName:m}),t=c._getRequestOptionsWithSliceId(t);const{spatialReference:p,extent:h}=c.rasterInfo,{datumTransformation:x}=t;let y=(0,A.nF)(i,p,x);if(!h.intersects(y))return{location:y,value:null};if((0,R.pC)(c.rasterInfo.transform)){const z=c.rasterInfo.transform.inverseTransform(y);if(!c.rasterInfo.nativeExtent.intersects(z))return{location:z,value:null};y=z}let g=0;const b=(0,R.pC)(m)&&(0,R.pC)(u)&&c.rasterInfo.hasMultidimensionalTranspose;if(!b)if(t.srcResolution)g=(0,A.kr)(t.srcResolution,c.rasterInfo,c.ioConfig.sampling).pyramidLevel;else if(g=yield c.computeBestPyramidLevelForLocation(i,t),null==g)return{location:y,value:null};const S=c.identifyPixelLocation(y,g,null,b);if(null===S)return{location:y,value:null};const{row:v,col:I,rowOffset:T,colOffset:P,blockWidth:D}=S,E=m??(0,R.Wg)(t.sliceId),B=Ke(c.url,E),k=`${g}/${v}/${I}`;let M=Qe(B,null,k);(0,R.Wi)(M)&&(M=c.fetchRawTile(g,v,I,t),qe(B,null,k,M));const H=yield M;return(0,R.Wi)(H)||!H.pixels?.length?{location:y,value:null}:c._processIdentifyResult(H,{srcLocation:y,position:T*D+P,pyramidLevel:g,useTransposedTile:!!b,requestSomeSlices:d,identifyOptions:t})})()}fetchPixels(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){if(i=(0,A.kZ)(i),(s=a._getRequestOptionsWithSliceId(s)).requestRawData)return a._fetchPixels(i,t,c,s);const f=(0,A.ut)(i.spatialReference),u=(0,A.Hq)(i);if((0,R.Wi)(f)||0===u||1===u&&a._isGlobalWrappableSource)return a._fetchPixels(i,t,c,s);if(u>=3)return{extent:i,pixelBlock:null};const m=[],{xmin:d,xmax:p}=i,h=Math.round(f/(p-d)*t),x=h-Math.round((f/2-d)/(p-d)*t);let y=0;const g=[];for(let I=0;I<=u;I++){const T=new X.Z({xmin:0===I?d:-f/2,xmax:I===u?p-f*I:f/2,ymin:i.ymin,ymax:i.ymax,spatialReference:i.spatialReference}),P=0===I?h-x:I===u?t-y:h;y+=P,g.push(P);const D=s.disableWrapAround&&I>0?null:a._fetchPixels(T,P,c,s);m.push(D)}const b=(yield Promise.all(m)).map(I=>I?.pixelBlock);let S=null;const v={width:t,height:c};return S=a.rasterJobHandler?(yield a.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:b,srcMosaicSize:v,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:g},s)).pixelBlock:(0,ce.us)(b,v,{blockWidths:g}),{extent:i,srcExtent:(0,A.tB)(i,a.rasterInfo.spatialReference,s.datumTransformation),pixelBlock:S}})()}fetchRawPixels(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){t={x:Math.floor(t.x),y:Math.floor(t.y)};const f=yield a._fetchRawTiles(i,t,c,s),{nativeExtent:u,nativePixelSize:m,storageInfo:d}=a.rasterInfo,p=2**i,h=m.x*p,x=m.y*p,y=new X.Z({xmin:u.xmin+h*t.x,xmax:u.xmin+h*(t.x+c.width-1),ymin:u.ymax-x*(t.y+c.height-1),ymax:u.ymax-x*t.y,spatialReference:u.spatialReference});if(!f)return{extent:y,srcExtent:y,pixelBlock:null};const{pixelBlocks:g,mosaicSize:b}=f;if(1===g.length&&(0,R.pC)(g[0])&&g[0].width===c.width&&g[0].height===c.height)return{extent:y,srcExtent:y,pixelBlock:f.pixelBlocks[0]};const I={x:t.x%(i>0?d.pyramidBlockWidth:d.blockWidth),y:t.y%(i>0?d.pyramidBlockHeight:d.blockHeight)};let T;return T=a.rasterJobHandler?(yield a.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:g,srcMosaicSize:b,destDimension:c,clipOffset:I,clipSize:c,coefs:null,sampleSpacing:null,interpolation:s.interpolation,alignmentInfo:null,blockWidths:null},s)).pixelBlock:(0,ce.us)(g,b,{clipOffset:I,clipSize:c}),{extent:y,srcExtent:y,pixelBlock:T}})()}fetchRawTile(i,t,c,s){throw new J.Z("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(i){return(0,A.tB)(this.rasterInfo.extent,i)}decodePixelBlock(i,t){return!this.rasterJobHandler||t.useCanvas?(0,et.J)(i,t):this.rasterJobHandler.decode({data:i,options:t})}request(i,t,c=0){var s=this;return(0,Z.Z)(function*(){const{customFetchParameters:a}=s.ioConfig,{range:f,query:u,headers:m}=t;c=c??t.retryCount??s.ioConfig.retryCount;const d=f?{Range:`bytes=${f.from}-${f.to}`}:null;try{return yield(0,$e.default)(i,{...t,query:{...u,...a},headers:{...m,...d}})}catch(p){if(c>0)return c--,s.request(i,t,c);throw p}})()}getSliceIndex(i){const{multidimensionalInfo:t}=this.rasterInfo;return(0,R.Wi)(t)||(0,R.Wi)(i)||0===i.length?null:(0,se.gk)(i,t)}getTileExtentFromTileInfo(i,t,c,s){const a=(0,R.s3)(s.lodAt(i));return this.getTileExtent({x:a.resolution,y:a.resolution},t,c,s.origin,s.spatialReference,s.size)}updateTileInfo(){const{storageInfo:i,spatialReference:t,extent:c,pixelSize:s}=this.rasterInfo;if(!i.tileInfo){const a=[],f=i.maximumPyramidLevel||0;let u=Math.max(s.x,s.y),m=1/.0254*96*u;for(let p=0;p<=f;p++)a.push({level:f-p,resolution:u,scale:m}),u*=2,m*=2;const d=new U.Z({x:c.xmin,y:c.ymax,spatialReference:t});i.tileInfo=new xe.Z({origin:d,size:[i.blockWidth,i.blockHeight],spatialReference:t,lods:a}),i.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(i,t=512,c=512,s){const{width:a,height:f,nativeExtent:u,pixelSize:m,spatialReference:d}=i,p=new U.Z({x:u.xmin,y:u.ymax,spatialReference:d});null==s&&(s=Math.max(0,Math.round(Math.log(Math.max(a,f))/Math.LN2-8)));const h=this.computeBlockBoundary(u,512,512,{x:u.xmin,y:u.ymax},[m],s);i.storageInfo=new Ie.Z({blockWidth:t,blockHeight:c,pyramidBlockWidth:t,pyramidBlockHeight:c,origin:p,firstPyramidLevel:1,maximumPyramidLevel:s,blockBoundary:h})}computeBestPyramidLevelForLocation(i,t={}){return(0,Z.Z)(function*(){return 0})()}computeBlockBoundary(i,t,c,s,a,f=0,u=2){if(1===a.length&&f>0){a=[...a];let{x:h,y:x}=a[0];for(let y=0;ym)return null;const g=this.getPyramidPixelSize(t),{x:b,y:S}=g,v=(d.y-y.y)/S/x,I=(y.x-d.x)/b/h,T=Math.min(x-1,Math.floor((v-Math.floor(v))*x)),P=Math.min(h-1,Math.floor((I-Math.floor(I))*h));return{pyramidLevel:t,row:Math.floor(v),col:Math.floor(I),rowOffset:T,colOffset:P,blockWidth:h,srcLocation:y}}getTileExtent(i,t,c,s,a,f){const[u,m]=f,d=s.x+c*u*i.x,h=s.y-t*m*i.y;return new X.Z({xmin:d,xmax:d+u*i.x,ymin:h-m*i.y,ymax:h,spatialReference:a})}getBlockWidthHeight(i){return{blockWidth:i>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:i>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(i,t,c){const s=this.rasterInfo.storageInfo.blockBoundary[i];return!s||s.maxRowt||s.minCol>c}_fetchPixels(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){let f=(0,A.Hq)(i);if(f>=2)return{extent:i,pixelBlock:null};const u=a._getSourceDataInfo(i,t,c,s),{pyramidLevel:m,pyramidResolution:d,srcResolution:p,srcExtent:h,srcWidth:x,srcHeight:y}=u;if(0===x||0===y)return{extent:i,srcExtent:h,pixelBlock:null};const g=(0,R.Wg)(a.rasterInfo.transform),b="gcs-shift"===g?.type,S=(0,R.pC)((0,A.ut)(i.spatialReference));!b&&S||(f=(0,A.Hq)(u.srcExtent,b));const v=a.rasterInfo.storageInfo,I={x:Math.floor((h.xmin-v.origin.x)/d.x+.1),y:Math.floor((v.origin.y-h.ymax)/d.y+.1)},T=yield a._fetchRawTiles(m,I,{width:x,height:y,wrapCount:f},s);if(!T)return{extent:i,srcExtent:h,pixelBlock:null};const P=m>0?v.pyramidBlockWidth:v.blockWidth,D=m>0?v.pyramidBlockHeight:v.blockHeight,E=P===x&&D===y&&I.x%P==0&&I.y%D==0,B=new U.Z({x:(i.xmax-i.xmin)/t,y:(i.ymax-i.ymin)/c,spatialReference:i.spatialReference}),k=!i.spatialReference.equals(a.rasterInfo.spatialReference),{datumTransformation:M}=s;if(!k&&E&&1===T.pixelBlocks.length&&P===t&&D===c&&p.x===B.x&&p.y===B.y)return{extent:i,srcExtent:h,pixelBlock:T.pixelBlocks[0]};const H=S&&(0,R.pC)((0,A.ut)(h.spatialReference)),O=s.requestProjectedLocalDirections&&a.rasterInfo.dataType.startsWith("vector");O&&!a.rasterJobHandler&&(yield(0,A.zD)());const z=a.rasterJobHandler?yield a.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:i,srcBufferExtent:T.extent,pixelSize:B.toJSON(),datumTransformation:M,rasterTransform:g,hasWrapAround:f>0||H,isAdaptive:!1!==a.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:O},s):(0,A.Qp)({projectedExtent:i,srcBufferExtent:T.extent,pixelSize:B,datumTransformation:M,rasterTransform:g,hasWrapAround:f>0||H,isAdaptive:!1,includeGCSGrid:O});let N;const W=!s.requestRawData,ee={rows:z.spacing[0],cols:z.spacing[1]},j=(0,R.Wg)(a._getRasterTileAlignmentInfo(m,T.extent.xmin)),{pixelBlocks:V,mosaicSize:Y,isPartiallyFilled:_}=T;let te=null;if(a.rasterJobHandler)({pixelBlock:N,localNorthDirections:te}=yield a.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:V,srcMosaicSize:Y,destDimension:W?{width:t,height:c}:null,coefs:W?z.coefficients:null,sampleSpacing:W?ee:null,projectDirections:O,gcsGrid:O?z.gcsGrid:null,isUV:"vector-uv"===a.rasterInfo.dataType,interpolation:s.interpolation,alignmentInfo:j,blockWidths:null},s));else{const ae=(0,ce.us)(V,Y,{alignmentInfo:j});N=W?(0,ce.Uk)(ae,{width:t,height:c},z.coefficients,ee,s.interpolation):ae,O&&z.gcsGrid&&(te=(0,ce.Qh)({width:t,height:c},z.gcsGrid),N=(0,Je.xQ)(N,a.rasterInfo.dataType,te))}return s.requestRawData||O?{srcExtent:h,pixelBlock:N,transformGrid:z,localNorthDirections:te,extent:i,isPartiallyFilled:_}:{srcExtent:h,extent:i,pixelBlock:N}})()}_fetchRawTiles(i,t,c,s){var a=this;return(0,Z.Z)(function*(){const{origin:f,blockBoundary:u}=a.rasterInfo.storageInfo,{blockWidth:m,blockHeight:d}=a.getBlockWidthHeight(i);let{x:p,y:h}=t,{width:x,height:y,wrapCount:g}=c;const b=a._getRasterTileAlignmentInfo(i,0);s.buffer&&(p-=s.buffer.cols,h-=s.buffer.rows,x+=2*s.buffer.cols,y+=2*s.buffer.rows);let S=0,v=0,I=0;g&&(0,R.pC)(b)&&(({worldColumnCountFromOrigin:v,originColumnOffset:I,rightPadding:S}=b),v*b.blockWidth-S>=p+x&&(S=0));const T=Math.floor(p/m),P=Math.floor(h/d),D=Math.floor((p+x+S-1)/m),E=Math.floor((h+y+S-1)/d),B=u[i];if(!B)return null;const{minRow:k,minCol:M,maxCol:H,maxRow:O}=B;if(0===g&&(EO||T>H))return null;const z=new Array;let N=!1;const W=a.ioConfig.allowPartialFill??s.allowPartialFill;for(let ae=P;ae<=E;ae++)for(let Fe=T;Fe<=D;Fe++){let He=Fe;if(!s.disableWrapAround&&g&&(0,R.pC)(b)&&v<=Fe&&(He=Fe-v-I),ae>=k&&He>=M&&O>=ae&&H>=He){const ut=a._fetchRawTile(i,ae,He,s);z.push(W?new Promise(ft=>{ut.then(sr=>ft(sr)).catch(()=>{N=!0,ft(null)})}):ut)}else z.push(Promise.resolve(null))}if(0===z.length)return null;const ee=yield Promise.all(z),j={height:(E-P+1)*d,width:(D-T+1)*m},{spatialReference:V}=a.rasterInfo,Y=a.getPyramidPixelSize(i),{x:_,y:te}=Y;return{extent:new X.Z({xmin:f.x+T*m*_,xmax:f.x+(D+1)*m*_,ymin:f.y-(E+1)*d*te,ymax:f.y-P*d*te,spatialReference:V}),pixelBlocks:ee,mosaicSize:j,isPartiallyFilled:N}})()}_fetchRawTile(i,t,c,s){const a=this.rasterInfo.storageInfo.blockBoundary[i];if(!a)return Promise.resolve(null);const{minRow:f,minCol:u,maxCol:m,maxRow:d}=a;if(td||c>m)return Promise.resolve(null);const p=Ke(this.url,s.sliceId),h=`${i}/${t}/${c}`;let x=Qe(p,s.registryId,h);if((0,R.Wi)(x)){const y=new AbortController;x=this.fetchRawTile(i,t,c,{...s,signal:y.signal}),qe(p,s.registryId,h,x,y),x.catch(()=>function Ft(i,t,c){const s=ne.get(i);s?null!=t&&null!=s[t]?s[t]?.cache.delete(c):oe.deleteBlock(i,c):null==t&&oe.deleteBlock(i,c)}(p,s.registryId,h))}return s.signal&&(0,ge.fu)(s,()=>{!function Pt(i,t,c){const s=ne.get(i);if(!s)return null==t?oe.decreaseRefCount(i,c):0;if(null==t||null==s[t])return oe.decreaseRefCount(i,c);const a=s[t]?.cache,f=a?.get(c);if(a&&f){if(f.refCount--,0===f.refCount){a.delete(c);for(let u=0;u(p+360)%360);return[i[0],d]}const[a,f]=i,u=[],m=[];for(let d=0;d=16;if(x||d===f&&(p>8||h>8)||0===u||0===m){const y=new U.Z({x:(i.xmax-i.xmin)/t,y:(i.ymax-i.ymin)/c,spatialReference:i.spatialReference});let g=(0,A.VO)(y,this.rasterInfo.spatialReference,i,a.datumTransformation);const b=!g||s.srcResolution&&g.x+g.y=S){const v=2**S;g={x:s.srcResolution.x*v,y:s.srcResolution.y*v}}}g&&(a.srcResolution=g,this._updateSourceDataInfo(i,a))}return(a.srcWidth/t>8||a.srcHeight/c>8)&&(a.srcWidth=0,a.srcHeight=0),a}_updateSourceDataInfo(i,t){t.srcWidth=0,t.srcHeight=0;const c=this.rasterInfo.spatialReference,{srcResolution:s,datumTransformation:a}=t,{pyramidLevel:f,pyramidResolution:u,excessiveReading:m}=(0,A.kr)(s,this.rasterInfo,this.ioConfig.sampling);if(m)return;let d=t.srcExtent||(0,A.tB)(i,c,a);if(null==d)return;const p=(0,R.Wg)(this.rasterInfo.transform);p&&(d=p.inverseTransform(d)),t.srcExtent=d;const h=Math.ceil((d.xmax-d.xmin)/u.x-.1),x=Math.ceil((d.ymax-d.ymin)/u.y-.1);t.pyramidLevel=f,t.pyramidResolution=u,t.srcWidth=h,t.srcHeight=x}_getRequestOptionsWithSliceId(i){return(0,R.pC)(this.rasterInfo.multidimensionalInfo)&&null==i.sliceId&&(i={...i,sliceId:this.getSliceIndex(i.multidimensionalDefinition)}),i}_processIdentifyResult(i,t){const{srcLocation:c,position:s,pyramidLevel:a,useTransposedTile:f}=t,u=i.pixels[0].length/i.width/i.height;if(i.mask&&!i.mask[s])return{location:c,value:null};const{multidimensionalInfo:m}=this.rasterInfo;if((0,R.Wi)(m)||!f){const g=i.pixels.map(v=>v[s]),b={location:c,value:g,pyramidLevel:a},S=this._computeMagDirValues(g.map(v=>[v]));return S?.length&&(b.magdirValue=S.map(v=>v[0])),b}let d=i.pixels.map(g=>Array.prototype.slice.call(g,s*u,s*u+u)),p=this._computeMagDirValues(d);const{requestSomeSlices:h,identifyOptions:x}=t;let y=(0,se.MO)(m,x.transposedVariableName);if(h){const g=(0,se.Ur)(y,(0,R.Wg)(x.multidimensionalDefinition),(0,R.Wg)(x.timeExtent));d=d.map(b=>g.map(S=>b[S])),p=p?.map(b=>g.map(S=>b[S])),y=g.map(b=>y[b])}return{location:c,value:null,dataSeries:y.map((g,b)=>{const S={value:d.map(v=>v[b]),multidimensionalDefinition:g.multidimensionalDefinition.map(v=>new Xe.Z({...v,isSlice:!0}))};return p?.length&&(S.magdirValue=[p[0][b],p[1][b]]),S}),pyramidLevel:a}}};(0,C._)([(0,F.Cb)()],Q.prototype,"_rasterTileAlighmentInfo",void 0),(0,C._)([(0,F.Cb)({readOnly:!0})],Q.prototype,"_isGlobalWrappableSource",null),(0,C._)([(0,F.Cb)(Ne.HQ)],Q.prototype,"url",null),(0,C._)([(0,F.Cb)({type:String,json:{write:!0}})],Q.prototype,"datasetName",void 0),(0,C._)([(0,F.Cb)({type:String,json:{write:!0}})],Q.prototype,"datasetFormat",void 0),(0,C._)([(0,F.Cb)()],Q.prototype,"rasterInfo",void 0),(0,C._)([(0,F.Cb)()],Q.prototype,"ioConfig",void 0),(0,C._)([(0,F.Cb)()],Q.prototype,"sourceJSON",void 0),Q=(0,C._)([(0,re.j)("esri.layers.support.rasterDatasets.BaseRaster")],Q);const ue=Q;let pe=class extends ue{constructor(){super(...arguments),this.datasetFormat="Function",this.tileType="Raster",this.rasterFunction=null,this._primaryRasters=null}open(i){var t=this;return(0,Z.Z)(function*(){yield t.init();const{rasterFunction:c}=t,{rasters:s,rasterIds:a}=c.getPrimaryRasters(),f=s.map(d=>d.rasterInfo?void 0:d.open(i));yield Promise.all(f);const u=s.map(({rasterInfo:d})=>d),m=c.bind({rasterInfos:u,rasterIds:a});if(!m.success)throw new J.Z("raster-function:open",`cannot bind the function: ${m.error??""}`);yield t.syncJobHandler(),t.set("sourceJSON",s[0].sourceJSON),t.set("rasterInfo",c.rasterInfo)})()}syncJobHandler(){var i=this;return(0,Z.Z)(function*(){const{rasterFunction:t}=i;if(i._primaryRasters=t.getPrimaryRasters(),i.rasterJobHandler)return i.rasterJobHandler.updateRasterFunction(t)})()}fetchPixels(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){const{rasters:f,rasterIds:u}=a._primaryRasters,m=f.map(y=>y.fetchPixels(i,t,c,s)),d=yield Promise.all(m),p=d.map(y=>y.pixelBlock);if(p.every(y=>(0,R.Wi)(y)))return d[0];const h=d.find(y=>(0,R.pC)(y.pixelBlock))?.extent??i,x=a.rasterJobHandler?yield a.rasterJobHandler.process({extent:h,primaryPixelBlocks:p,primaryRasterIds:u}):a.rasterFunction.process({extent:h,primaryPixelBlocks:p,primaryRasterIds:u});return{...d[0],pixelBlock:x}})()}};(0,C._)([(0,F.Cb)({type:String,json:{write:!0}})],pe.prototype,"datasetFormat",void 0),(0,C._)([(0,F.Cb)()],pe.prototype,"tileType",void 0),(0,C._)([(0,F.Cb)()],pe.prototype,"rasterFunction",void 0),pe=(0,C._)([(0,re.j)("esri.layers.support.rasterDatasets.FunctionRaster")],pe);const tt=pe;var rt=w(16943),ve=w(8341),Bt=w(99033),kt=w(37084),G=w(65234);const nt=Ve.Z.getLogger("esri.layers.mixins.ImageryTileMixin"),Ot=i=>{let t=class extends i{constructor(){super(...arguments),this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this.bandIds=null,this.copyright=null,this.interpolation="nearest",this.multidimensionalDefinition=null,this.multidimensionalSubset=null,this.raster=null,this.rasterFunction=null,this.sourceJSON=null,this.symbolizer=null}get fullExtent(){return this.rasterInfo?.extent}get rasterInfo(){return this.raster?.rasterInfo}get spatialReference(){return this.rasterInfo?.spatialReference??G.Z.WGS84}get tileInfo(){return this.rasterInfo?.storageInfo.tileInfo}set url(s){this._set("url",(0,Ye.Nm)(s,nt))}set renderer(s){this._set("renderer",s),this.updateRenderer()}convertVectorFieldData(s,a){var f=this;return(0,Z.Z)(function*(){if((0,R.Wi)(s)||!f.rasterInfo)return null;const u=f._rasterJobHandler.instance,m=f.rasterInfo.dataType;return u?u.convertVectorFieldData({pixelBlock:s,dataType:m},a):(0,Je.KC)(s,m)})()}createFlowMesh(s,a){var f=this;return(0,Z.Z)(function*(){const u=f._rasterJobHandler.instance;return u?u.createFlowMesh(s,a):(0,kt.GE)(s.meshType,s.simulationSettings,s.flowData,(0,R.pC)(a.signal)?a.signal:(new AbortController).signal)})()}normalizeRasterFetchOptions(s){const{multidimensionalInfo:a}=this.rasterInfo??{};if((0,R.Wi)(a))return s;let f=s.multidimensionalDefinition||this.multidimensionalDefinition;!(0,R.Wi)(f)&&f.length||(f=(0,se.Tj)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset}));const u=s.timeExtent||this.timeExtent;if((0,R.pC)(f)&&(0,R.pC)(u)&&((0,R.pC)(u.start)||(0,R.pC)(u.end))){f=f.map(S=>S.clone());const m=a.variables.find(({name:S})=>S===f[0].variableName)?.dimensions?.find(({name:S})=>"StdTime"===S),d=f.find(({dimensionName:S})=>"StdTime"===S);if(!m||!d)return{...s,multidimensionalDefinition:null};const{start:p,end:h}=u,x=(0,R.Wi)(p)?null:p.getTime(),y=(0,R.Wi)(h)?null:h.getTime(),g=x??y,b=y??x;if((0,R.pC)(m.values)){const S=m.values.filter(v=>{if(Array.isArray(v)){if(g===b)return v[0]<=g&&v[1]>=g;const T=v[0]>=g&&v[1]<=b||v[0]b;return v[0]<=g&&v[1]>g||v[0]=b||T}return g===b?v===g:v>=g&&v<=b});if(S.length){const v=S.sort((I,T)=>g===b?(I[0]??I)-(T[0]??T):Math.abs((I[1]??I)-b)-Math.abs((T[1]??T)-b))[0];d.values=[v]}else f=null}else if(m.hasRegularIntervals&&m.extent){const[S,v]=m.extent;g>v||b0))return null;let m;yield f.updateRenderer();const d=f._rasterJobHandler.instance,p=f.bandIds??[];return m=d?yield d.symbolize({...s,simpleStretchParams:a,bandIds:p}):f.symbolizer.symbolize({...s,simpleStretchParams:a,bandIds:p}),m})()}getTileUrl(s,a,f){return"RasterTileServer"===this.raster?.datasetFormat?`${this.url}/tile/${s}/${a}/${f}`:""}getCompatibleTileInfo(s,a,f=!1){if(!this.loaded||(0,R.Wi)(a))return null;if(f&&s.equals(this.spatialReference))return this.tileInfo;const u=(0,vt.C5)(s);return xe.Z.create({size:256,spatialReference:s,origin:u?{x:u.origin[0],y:u.origin[1]}:{x:a.xmin,y:a.ymax}})}getCompatibleFullExtent(s){return this.loaded?(this._compatibleFullExtent&&this._compatibleFullExtent.spatialReference.equals(s)||(this._compatibleFullExtent=this.raster.computeExtent(s)),this._compatibleFullExtent):null}fetchTile(s,a,f,u={}){var m=this;return(0,Z.Z)(function*(){if(c(m),u.requestAsImageElement){const d=m.getTileUrl(s,a,f);return(0,$e.default)(d,{responseType:"image",query:{...m.refreshParameters,...m.raster.ioConfig.customFetchParameters},signal:u.signal}).then(p=>p.data)}return(0,R.pC)(m.rasterInfo.multidimensionalInfo)&&(u=m.normalizeRasterFetchOptions(u),(0,R.Wi)(u.multidimensionalDefinition))?{extent:m.raster.getTileExtentFromTileInfo(s,a,f,u.tileInfo||m.rasterInfo.storageInfo.tileInfo),pixelBlock:null}:(yield m._initJobHandler(),yield m._updateRasterFunction(),"raster-shaded-relief"===m.renderer.type&&(u={...u,buffer:{cols:1,rows:1}}),m.raster.fetchTile(s,a,f,u))})()}fetchPixels(s,a,f,u={}){var m=this;return(0,Z.Z)(function*(){return(0,R.pC)(m.rasterInfo.multidimensionalInfo)&&(u=m.normalizeRasterFetchOptions(u),(0,R.Wi)(u.multidimensionalDefinition))?{extent:s,pixelBlock:null}:(yield m._initJobHandler(),yield m._updateRasterFunction(),m.raster.fetchPixels(s,a,f,u))})()}identify(s,a={}){var f=this;return(0,Z.Z)(function*(){return c(f),!(0,R.pC)(f.rasterInfo.multidimensionalInfo)||f.rasterInfo.hasMultidimensionalTranspose&&((0,se.WU)(a.multidimensionalDefinition)||a.transposedVariableName||a.timeExtent)||(a=f.normalizeRasterFetchOptions(a),!(0,R.Wi)(a.multidimensionalDefinition))?f.raster.identify(s,a):{location:s,value:null}})()}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}hasStandardTime(){const s=this.rasterInfo?.multidimensionalInfo;if((0,R.Wi)(s)||"standard-time"!==this.rasterInfo?.dataType)return!1;const a=this.multidimensionalDefinition,f=a?.[0]?.variableName;return s.variables.some(u=>u.name===f&&(!a?.[0].dimensionName||u.dimensions.some(m=>"StdTime"===m.name)))}getStandardTimeValue(s){return new Date(24*(s-25569)*3600*1e3).toString()}getMultidimensionalSubsetVariables(s){return(0,se.jj)(this.multidimensionalSubset,s??this.rasterInfo.multidimensionalInfo)}_configDefaultSettings(){this._configDefaultInterpolation(),this.multidimensionalDefinition||(this.multidimensionalDefinition=(0,se.Tj)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset})),this._configDefaultRenderer()}_initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const s=new Rt.Z;return this._rasterJobHandler.connectionPromise=s.initialize().then(()=>{c(this),this._rasterJobHandler.instance=s,this.raster.rasterJobHandler=s,this.renderer&&this.updateRenderer(),"Function"===this.raster.datasetFormat&&this.raster.syncJobHandler()}).catch(()=>{}),this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null,this.raster&&(this.raster.rasterJobHandler=null)}_configDefaultInterpolation(){if(null==this.interpolation){c(this);const s=(0,ve.In)(this.rasterInfo,this.raster.tileType,this.sourceJSON?.defaultResamplingMethod);this._set("interpolation",s)}}_configDefaultRenderer(){c(this);const s=this.raster.rasterInfo;if(this.bandIds||(this.bandIds=(0,ve.YD)(s)),!this.renderer){const f=(0,ve.Ob)(s,{bandIds:this.bandIds,variableName:(0,R.pC)(this.multidimensionalDefinition)?this.multidimensionalDefinition[0]?.variableName:null});"WCSServer"===this.raster.datasetFormat&&"raster-stretch"===f.type&&((s.statistics?.[0].max??0)>1e24||(s.statistics?.[0].min??0)<-1e24)&&(f.dynamicRangeAdjustment=!0,f.statistics=null,"none"===f.stretchType&&(f.stretchType="min-max")),this.renderer=f}this.symbolizer?(this.symbolizer.rendererJSON=(0,ve.ol)(this.renderer.toJSON()),this.symbolizer.rasterInfo=s):this.symbolizer=new Bt.Z({rendererJSON:this.renderer.toJSON(),rasterInfo:s});const a=this.symbolizer.bind();a.success||nt.warn("imagery-tile-mixin",a.error||"The given renderer is not supported by the layer.")}_updateRasterFunction(){var s=this;return(0,Z.Z)(function*(){if("imagery-tile"!==s.type||JSON.stringify(s.rasterFunction)===JSON.stringify(s._cachedRasterFunctionJson))return;let a=s.raster;"Function"===a?.datasetFormat&&(a=a.rasterFunction.getPrimaryRasters().rasters[0]);const{rasterFunction:f}=s;if(f){const u=(0,rt.Ue)(f.toJSON(),{raster:a}),m=new tt({rasterFunction:u});m.rasterJobHandler=s._rasterJobHandler.instance,yield m.open(),s._cachedRasterFunctionJson=s.rasterFunction?.toJSON(),s.raster=m}else s.raster=a})()}};function c(s){if(!s.raster||!s.rasterInfo)throw new J.Z("imagery-tile","no raster")}return(0,C._)([(0,F.Cb)()],t.prototype,"_cachedRendererJson",void 0),(0,C._)([(0,F.Cb)()],t.prototype,"_cachedRasterFunctionJson",void 0),(0,C._)([(0,F.Cb)()],t.prototype,"_compatibleFullExtent",void 0),(0,C._)([(0,F.Cb)()],t.prototype,"_rasterJobHandler",void 0),(0,C._)([(0,F.Cb)()],t.prototype,"bandIds",void 0),(0,C._)([(0,F.Cb)({json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,C._)([(0,F.Cb)({json:{read:!1}})],t.prototype,"fullExtent",null),(0,C._)([(0,F.Cb)()],t.prototype,"interpolation",void 0),(0,C._)([(0,F.Cb)()],t.prototype,"ioConfig",void 0),(0,C._)([(0,F.Cb)({type:[Xe.Z]})],t.prototype,"multidimensionalDefinition",void 0),(0,C._)([(0,F.Cb)({type:bt.Z,json:{write:!0}})],t.prototype,"multidimensionalSubset",void 0),(0,C._)([(0,F.Cb)()],t.prototype,"raster",void 0),(0,C._)([(0,F.Cb)({type:St.Z})],t.prototype,"rasterFunction",void 0),(0,C._)([(0,F.Cb)()],t.prototype,"rasterInfo",null),(0,C._)([(0,F.Cb)()],t.prototype,"sourceJSON",void 0),(0,C._)([(0,F.Cb)({json:{read:!1}})],t.prototype,"spatialReference",null),(0,C._)([(0,F.Cb)({json:{read:!1}})],t.prototype,"tileInfo",null),(0,C._)([(0,F.Cb)(Ne.HQ)],t.prototype,"url",null),(0,C._)([(0,F.Cb)({types:Me.dr})],t.prototype,"renderer",null),(0,C._)([(0,F.Cb)()],t.prototype,"symbolizer",void 0),t=(0,C._)([(0,re.j)("esri.layers.ImageryTileMixin")],t),t};var Dt=w(49286),Zt=w(6647),zt=w(30346),Et=w(99555),Ht=w(97941),be=w(36255),Nt=w(2939),Se=w(79645),it=w(15365);function Jt(i){const t=i.fields,c=i.records,s=t.some(p=>"oid"===p.name.toLowerCase())?"OBJECTID":"OID",a=[{name:s,type:"esriFieldTypeOID",alias:"OID"}].concat(t.map(p=>({name:p.name,type:"esriFieldType"+p.typeName,alias:p.name}))),f=a.map(p=>p.name),u=[];let m=0,d=0;return c.forEach(p=>{const h={};for(h[s]=m++,d=1;d0)for(;h.lengthu;){const y=[];32===c.getUint8(d)?(d+=1,p.forEach(g=>{if("C"===g.type)y.push((0,it.f)(new Uint8Array(t,d,g.length)).trim());else if("N"===g.type)y.push(parseInt(String.fromCharCode.apply(null,new Uint8Array(t,d,g.length)).trim(),10));else if("F"===g.type)y.push(parseFloat(String.fromCharCode.apply(null,new Uint8Array(t,d,g.length)).trim()));else if("D"===g.type){const b=String.fromCharCode.apply(null,new Uint8Array(t,d,g.length)).trim();y.push(new Date(parseInt(b.substring(0,4),10),parseInt(b.substring(4,6),10)-1,parseInt(b.substring(6,8),10)))}d+=g.length}),h.push(y)):d+=u}}return{header:m,fields:p,records:h,recordSet:Jt({fields:p,records:h})}}}var at=w(46572),ot=w(17253);const fe=new Map;fe.set("int16","esriFieldTypeSmallInteger"),fe.set("int32","esriFieldTypeInteger"),fe.set("int64","esriFieldTypeInteger"),fe.set("float32","esriFieldTypeSingle"),fe.set("float64","esriFieldTypeDouble"),fe.set("text","esriFieldTypeString");let Re=class extends ue{constructor(){super(...arguments),this.storageInfo=null,this.datasetFormat="CRF"}open(i){var t=this;return(0,Z.Z)(function*(){yield t.init();const{data:c}=yield t.request(t.url+"/conf.json",{signal:i?.signal});if(!t._validateHeader(c))throw new J.Z("cloudraster:open","Invalid or unsupported conf.json.");t.datasetName=t.url.slice(t.url.lastIndexOf("/")+1);const{storageInfo:s,rasterInfo:a}=t._parseHeader(c);if("thematic"===a.dataType){const f=yield t._fetchAuxiliaryInformation();a.attributeTable=f}t._set("storageInfo",s),t._set("rasterInfo",a),t.ioConfig.retryCount=t.ioConfig.retryCount||0})()}fetchRawTile(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){const{transposeInfo:f}=a.rasterInfo.storageInfo,{transposedVariableName:u}=s,m=!(!f||!u),d=m?0:a.rasterInfo.storageInfo.maximumPyramidLevel-i;if(d<0)return null;const p=a._buildCacheFilePath(d,t,c,s.multidimensionalDefinition,u),h=a._getIndexRecordFromBundle(t,c,m),x=yield a.request(p,{range:{from:0,to:a.storageInfo.headerSize-1},responseType:"array-buffer",signal:s.signal});if(!x)return null;const y=new Uint8Array(x.data),g=a._getTileEndAndContentType(y,h);if(0===g.recordSize)return null;const b=yield a.request(p,{range:{from:g.position,to:g.position+g.recordSize},responseType:"array-buffer",signal:s.signal});if(!b)return null;const[S,v]=a._getTileSize(m);return a.decodePixelBlock(b.data,{width:S,height:v,planes:null,pixelType:null,returnInterleaved:m})})()}_validateHeader(i){return i&&"RasterInfo"===i.type&&!["origin","extent","geodataXform","LODInfos","blockWidth","blockHeight","bandCount","pixelType","pixelSizeX","pixelSizeY","format","packetSize"].some(c=>!i[c])}_parseHeader(i){const t=["u1","u2","u4","u8","s8","u16","s16","u32","s32","f32","f64"][i.pixelType],{bandCount:c,histograms:s,colormap:a,blockWidth:f,blockHeight:u,firstPyramidLevel:m,maximumPyramidLevel:d}=i,p=i.statistics&&i.statistics.map(_=>({min:_.min,max:_.max,avg:_.mean,stddev:_.standardDeviation,median:_.median,mode:_.mode})),h=i.extent.spatialReference,x=i.geodataXform?.spatialReference,y=new G.Z(h?.wkid||h?.wkt?h:x);let g=new X.Z({xmin:i.extent.xmin,ymin:i.extent.ymin,xmax:i.extent.xmax,ymax:i.extent.ymax,spatialReference:y});const b=new U.Z({x:i.pixelSizeX,y:i.pixelSizeY,spatialReference:y}),S=Math.round((g.xmax-g.xmin)/b.x),v=Math.round((g.ymax-g.ymin)/b.y),I=this._parseTransform(i.geodataXform),T=I?g:null;I&&(g=I.forwardTransform(g),b.x=(g.xmax-g.xmin)/S,b.y=(g.ymax-g.ymin)/v);const P=i.properties??{},D=i.format.toLowerCase().replace("cache/",""),E=new U.Z(i.origin.x,i.origin.y,y);let B,k,M,H;if(a&&a.colors)for(B=[],k=0;k>>24,M<<8>>>24,M>>>24]);const O=i.LODInfos,z=[];for(k=0;k0)for(k=0;ku.data).catch(()=>null),s=t.request(t.url+"/conf.vat.dbf",{responseType:"array-buffer",signal:i}).then(u=>u.data).catch(()=>null),a=yield Promise.all([c,s]);let f;if(a[0]){let u=a[0].fields;const m=a[0].values;if(u&&m){u=u.map(p=>({type:"OID"===p.name?"esriFieldTypeOID":fe.get(p.type),name:p.name,alias:p.alias||p.name}));const d=m.map(p=>({attributes:p}));u&&m&&(f={fields:u,features:d})}}return!f&&a[1]&&(f=st.parse(a[1]).recordSet),ot.default.fromJSON(f)})()}_buildCacheFilePath(i,t,c,s,a){const f=this._getPackageSize(!!a),u=Math.floor(t/f)*f,m=Math.floor(c/f)*f,d="R"+this._toHexString4(u)+"C"+this._toHexString4(m);let p="L";p+=i>=10?i.toString():"0"+i.toString();const{multidimensionalInfo:h}=this.rasterInfo,x=s?.[0];if((0,R.Wi)(h)||!x)return`${this.url}/_alllayers/${p}/${d}.bundle`;let y="_yxs";if(!a){y=h.variables.find(S=>S.name===x.variableName).dimensions[0].values.indexOf(x.values[0]).toString(16);const b=4-y.length;for(let S=0;S0;)t="0"+t}return t}};(0,C._)([(0,F.Cb)({readOnly:!0})],Re.prototype,"storageInfo",void 0),(0,C._)([(0,F.Cb)({type:String,json:{write:!0}})],Re.prototype,"datasetFormat",void 0),Re=(0,C._)([(0,re.j)("esri.layers.support.rasterDatasets.CloudRaster")],Re);const Lt=Re;var Wt=w(8314),ke=w(17057);let Ce=class extends ue{constructor(){super(...arguments),this.datasetFormat="MEMORY",this.data=null}open(i){var t=this;return(0,Z.Z)(function*(){yield t.init();const c=t.data,{pixelBlock:s,statistics:a,histograms:f,name:u,keyProperties:m,nativeExtent:d,transform:p}=t.data,{width:h,height:x,pixelType:y}=s,g=c.extent??new X.Z({xmin:-.5,ymin:.5,xmax:h-.5,ymax:x-.5,spatialReference:new G.Z({wkid:3857})}),v=new Se.Z({width:h,height:x,pixelType:y,extent:g,nativeExtent:d,transform:p,pixelSize:{x:g.width/h,y:g.height/x},spatialReference:g.spatialReference,bandCount:3,keyProperties:m||{},statistics:a,isPseudoSpatialReference:c.isPseudoSpatialReference??!c.extent,histograms:f});t.createRemoteDatasetStorageInfo(v,512,512),t._set("rasterInfo",v),t.updateTileInfo(),yield t._buildInMemoryRaster(s,{width:512,height:512},i),t.datasetName=u,t.url="/InMemory/"+u})()}fetchRawTile(i,t,c,s={}){const a=this._pixelBlockTiles.get(`${i}/${t}/${c}`);return Promise.resolve(a)}_buildInMemoryRaster(i,t,c){var s=this;return(0,Z.Z)(function*(){const a=s.rasterInfo.storageInfo.maximumPyramidLevel,f=s.rasterJobHandler?s.rasterJobHandler.split({pixelBlock:i,tileSize:t,maximumPyramidLevel:a},c):Promise.resolve((0,ce.Vl)(i,t,a)),u=(0,R.pC)(s.rasterInfo.statistics),m=(0,R.pC)(s.rasterInfo.histograms),d=u?Promise.resolve({statistics:null,histograms:null}):s.rasterJobHandler?s.rasterJobHandler.estimateStatisticsHistograms({pixelBlock:i},c):Promise.resolve((0,ke.Hv)(i)),p=yield(0,ge.as)([f,d]);if(!p[0].value&&p[1].value)throw new J.Z("inmemory-raster:open","failed to build in memory raster");s._pixelBlockTiles=p[0].value,u||(s.rasterInfo.statistics=p[1].value?.statistics),m||(s.rasterInfo.histograms=p[1].value?.histograms)})()}};(0,C._)([(0,F.Cb)({type:String,json:{write:!0}})],Ce.prototype,"datasetFormat",void 0),(0,C._)([(0,F.Cb)()],Ce.prototype,"data",void 0),Ce=(0,C._)([(0,re.j)("esri.layers.support.rasterDatasets.InMemoryRaster")],Ce);const At=Ce;function he(i,t){if(!i||!t)return[];let c=t;t.includes("/")?(c=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const s=[];if(t){const f=he(i,c);for(let u=0;us.push(m));return s}const a=i.getElementsByTagNameNS("*",c);if(!a||0===a.length)return[];for(let f=0;f0?t?K(s[0],t):s[0]:null}function q(i,t=null){const c=t?K(i,t):i;let s;return c?(s=c.textContent||c.nodeValue,s?s.trim():null):null}function Oe(i,t){return function _t(i,t){const c=he(i,t),s=[];let a;for(let f=0;fNumber(c))}function de(i,t){const c=q(i,t);return Number(c)}function Le(i,t){const c=i?.nodeName?.toLowerCase(),s=t.toLowerCase();return c.slice(c.lastIndexOf(":")+1)===s}var We=w(85374);function ct(i,t){if(!i||!t)return null;const c=[];for(let s=0;s-1?s:i.indexOf("GEOGCS");if(-1===a)return null;const f=i.slice(a,i.lastIndexOf("]",c)+1).trim(),u=i.slice(c,i.lastIndexOf("]")).trim();t=Ae(f);const m=new G.Z(t?{wkid:t}:{wkt:f}),d=Ae(u);return d&&(m.vcsWkid=d),m}return i.startsWith("GEOGCS")||i.startsWith("PROJCS")?(t=Ae(i),new G.Z(0!==t?{wkid:t}:{wkt:i})):null}function Ae(i){const t=i.replace(/\]/g,"[").replace(/\"/g,"").split("[").map(a=>a.trim()).filter(a=>""!==a),c=t[t.length-1].split(","),s=c[0]?.toLowerCase();if(("epsg"===s||"esri"===s)&&i.endsWith('"]]')){const a=Number(c[1]);if(!isNaN(a)&&0!==a)return a}return 0}function _e(i){if("pamdataset"!==i?.documentElement.tagName?.toLowerCase())return{};const t={spatialReference:null,transform:null,metadata:{},rasterBands:[],statistics:null,histograms:null};i.documentElement.childNodes.forEach(s=>{if(1===s.nodeType)if(Le(s,"SRS")){if(!t.spatialReference){const a=q(s);t.spatialReference=De(a)}}else if(Le(s,"Metadata"))if("xml:ESRI"===s.getAttribute("domain")){const{spatialReference:a,transform:f}=function jt(i){const t=K(i,"GeodataXform"),c=De(de(t,"SpatialReference/WKID")||q(t,"SpatialReference/WKT"));if("typens:PolynomialXform"!==t.getAttribute("xsi:type"))return{spatialReference:c,transform:null};const s=de(t,"PolynomialOrder")??1,a=Oe(t,"CoeffX/Double"),f=Oe(t,"CoeffY/Double"),u=Oe(t,"InverseCoeffX/Double"),m=Oe(t,"InverseCoeffY/Double"),d=ct(a,f),p=ct(u,m);return{spatialReference:c,transform:d&&p&&d.length&&p.length?new We.Z({spatialReference:c,polynomialOrder:s,forwardCoefficients:d,inverseCoefficients:p}):null}}(s);t.transform=f,t.spatialReference||(t.spatialReference=a)}else he(s,"MDI").forEach(a=>t.metadata[a.getAttribute("key")]=q(a));else if(Le(s,"PAMRasterBand")){const a=function Ut(i){const t=de(i,"NoDataValue"),c=K(i,"Histograms/HistItem"),s=de(c,"HistMin"),a=de(c,"HistMax"),f=de(c,"BucketCount"),u=q(c,"HistCounts")?.split("|").map(y=>Number(y));let m,d,p,h;he(i,"Metadata/MDI").forEach(y=>{const g=Number(y.textContent??y.nodeValue);switch(y.getAttribute("key").toUpperCase()){case"STATISTICS_MINIMUM":m=g;break;case"STATISTICS_MAXIMUM":d=g;break;case"STATISTICS_MEAN":p=g;break;case"STATISTICS_STDDEV":h=g}});const x=de(i,"Metadata/SourceBandIndex");return{noDataValue:t,histogram:u?.length&&null!=s&&null!=a?{min:s,max:a,size:f||u.length,counts:u}:null,sourceBandIndex:x,statistics:null!=m&&null!=d?{min:m,max:d,avg:p,stddev:h}:null}}(s);null!=a.sourceBandIndex&&null==t.rasterBands[a.sourceBandIndex]?t.rasterBands[a.sourceBandIndex]=a:t.rasterBands.push(a)}});const c=t.rasterBands;return c.length&&(t.statistics=c[0].statistics?c.map(f=>f.statistics).filter(R.pC):null,t.histograms=c[0].histogram?c.map(f=>f.histogram).filter(R.pC):null),t}let Ze=class extends ue{open(i){var t=this;return(0,Z.Z)(function*(){yield t.init();const c=yield t._fetchData(i);let{spatialReference:s,statistics:a,histograms:f,transform:u}=yield t._fetchAuxiliaryData(i);const m=!s;m&&(s=new G.Z({wkid:3857})),f?.length&&null==a&&(a=(0,ke.Oh)(f));const{width:d,height:p}=c;let h=new X.Z({xmin:-.5,ymin:.5-p,xmax:d-.5,ymax:.5,spatialReference:s});const x=u?u.forwardTransform(h):h;let y=!0;if(u){const b=u.forwardCoefficients;y=b&&0===b[1]&&0===b[2],y&&(u=null,h=x)}const g=new At({data:{extent:x,nativeExtent:h,transform:u,pixelBlock:c,statistics:a,histograms:f,keyProperties:{DateType:"Processed"},isPseudoSpatialReference:m}});yield g.open(),g.data=null,t._set("rasterInfo",g.rasterInfo),t._inMemoryRaster=g})()}fetchRawTile(i,t,c,s={}){return this._inMemoryRaster.fetchRawTile(i,t,c,s)}_fetchData(i){var t=this;return(0,Z.Z)(function*(){const{data:c}=yield t.request(t.url,{responseType:"array-buffer",signal:i?.signal}),s=(0,et.y)(c).toUpperCase();if("JPG"!==s&&"PNG"!==s&&"GIF"!==s&&"BMP"!==s)throw new J.Z("image-aux-raster:open","the data is not a supported format");t._set("datasetFormat",s);const a=s.toLowerCase(),f="gif"===a||"bmp"===a||!(0,Wt.Z)("ios");return yield t.decodePixelBlock(c,{format:a,useCanvas:f,hasNoZlibMask:!0})})()}_fetchAuxiliaryData(i){var t=this;return(0,Z.Z)(function*(){const c=(0,R.Wg)(i?.signal),s=t.ioConfig.skipExtensions??[],a=s.includes("aux.xml")?null:t.request(t.url+".aux.xml",{responseType:"xml",signal:c}),f=t.datasetFormat,u="JPG"===f?"jgw":"PNG"===f?"pgw":"BMP"===f?"bpw":null,m=u&&s.includes(u)?null:t.request(t.url.slice(0,t.url.lastIndexOf("."))+"."+u,{responseType:"text",signal:c}),d=yield(0,ge.as)([a,m]);if(c?.aborted)throw(0,ge.zE)();const p=_e(d[0].value?.data);if(!p.transform){const h=d[1].value?d[1].value.data.split("\n").slice(0,6).map(x=>Number(x)):null;p.transform=6===h?.length?new We.Z({forwardCoefficients:[h[4],h[5],h[0],-h[1],h[2],-h[3]]}):null}return p})()}};(0,C._)([(0,F.Cb)({type:String,json:{write:!0}})],Ze.prototype,"datasetFormat",void 0),Ze=(0,C._)([(0,re.j)("esri.layers.support.rasterDatasets.ImageAuxRaster")],Ze);const ze=Ze;var Gt=w(21726),$t=w(51026),Vt=w(28930),Yt=w(76671),Xt=w(99208);let Te=class extends ue{constructor(){super(...arguments),this._levelOffset=0,this._tilemapCache=null,this._slices=null,this.datasetFormat="RasterTileServer",this.tileType=null}open(i){var t=this;return(0,Z.Z)(function*(){yield t.init();const c=i&&i.signal,s=t.sourceJSON?{data:t.sourceJSON}:yield t.request(t.url,{query:{f:"json"},signal:c});s.ssl&&(t.url=t.url.replace(/^http:/i,"https:"));const a=s.data;if(t.sourceJSON=a,!a)throw new J.Z("imageserverraster:open","cannot initialize tiled image service, missing service info");if(!a.tileInfo)throw new J.Z("imageserverraster:open","use ImageryLayer to open non-tiled image services");t._fixScaleInServiceInfo(),t.tileType=a.cacheType,null==t.tileType&&(t.tileType=["jpg","jpeg","png","png8","png24","png32","mixed"].includes(a.tileInfo.format.toLowerCase())?"Map":"lerc"===a.tileInfo.format.toLowerCase()?"Elevation":"Raster"),t.datasetName=a.name?.slice(a.name.indexOf("/")+1)??"";const u=yield t._fetchRasterInfo({signal:c});if((0,R.Wi)(u))throw new J.Z("image-server-raster:open","cannot initialize image service");const m="Map"===t.tileType?(0,$t.d)(a.tileInfo,a):xe.Z.fromJSON(a.tileInfo);(0,R.O3)(m);const[d,p]=t._computeMinMaxLOD(u,m),{extent:h,pixelSize:x}=u,y=.5/u.width*x.x,g=Math.max(x.x,x.y),{lods:b}=m;("Map"!==t.tileType&&0!==a.maxScale||Math.abs(x.x-x.y)>y||!b.some(B=>Math.abs(B.resolution-g){B.level>=p.level&&B.level<=d.level&&T.push({x:B.resolution,y:B.resolution})}),T.sort((B,k)=>B.x-k.x);const P=t.computeBlockBoundary(h,v,I,m.origin,T,S),D=T.length>1?T.slice(1):null;let E;if(a.transposeInfo&&(E={tileSize:[a.transposeInfo.rows,a.transposeInfo.cols],packetSize:u.keyProperties?._yxs.PacketSize??0}),u.storageInfo=new Ie.Z({blockWidth:m.size[0],blockHeight:m.size[1],pyramidBlockWidth:m.size[0],pyramidBlockHeight:m.size[1],pyramidResolutions:D,compression:m.format,origin:m.origin,firstPyramidLevel:1,maximumPyramidLevel:S,tileInfo:m,transposeInfo:E,blockBoundary:P}),t._fixGCSShift(u),t._set("rasterInfo",u),a.capabilities.toLowerCase().includes("tilemap")){const B={tileInfo:u.storageInfo.tileInfo,parsedUrl:(0,Gt.mN)(t.url),url:t.url,tileServers:[],type:"tile"};t._tilemapCache=new Vt.y({layer:B})}})()}fetchRawTile(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){const{storageInfo:f,extent:u}=a.rasterInfo,{transposeInfo:m}=f,d=(0,R.pC)(m)&&!!s.transposedVariableName;if(a._slices&&!d&&null==s.sliceId)return null;const h=`${a.url}/tile/${d?0:f.maximumPyramidLevel-i+a._levelOffset}/${t}/${c}`,x=a._slices?d?{variable:s.transposedVariableName}:{sliceId:s.sliceId||0}:null,{data:y}=yield a.request(h,{query:x,responseType:"array-buffer",signal:s.signal});if(!y)return null;const g=d?m.tileSize:f.tileInfo.size,b=yield a.decodePixelBlock(y,{width:g[0],height:g[1],planes:null,pixelType:null,isPoint:"Elevation"===a.tileType,returnInterleaved:d}),S=f.blockBoundary[i];if("jpg"!==f.compression||c>S.minCol&&cS.minRow&&t{const f=t.find(u=>a.variableName===u.variableName&&u.dimensionName===a.dimensionName);return!f||(Array.isArray(a.values[0])?`${a.values[0][0]}-${a.values[0][1]}`:a.values[0])!==(Array.isArray(f.values[0])?`${f.values[0][0]}-${f.values[0][1]}`:f.values[0])}))return c}return null}fetchVariableStatisticsHistograms(i,t){var c=this;return(0,Z.Z)(function*(){const s=c.request(c.url+"/statistics",{query:{variable:i,f:"json"},signal:t}).then(u=>u.data?.statistics),a=c.request(c.url+"/histograms",{query:{variable:i,f:"json"},signal:t}).then(u=>u.data?.histograms),f=yield Promise.all([s,a]);return f[0]&&f[0].forEach(u=>{u.avg=u.mean,u.stddev=u.standardDeviation}),{statistics:f[0]||null,histograms:f[1]||null}})()}computeBestPyramidLevelForLocation(i,t={}){var c=this;return(0,Z.Z)(function*(){if(!c._tilemapCache)return 0;let s=c.identifyPixelLocation(i,0,(0,R.Wg)(t.datumTransformation));if(null===s)return null;let a=0;const{maximumPyramidLevel:f}=c.rasterInfo.storageInfo;let u=f-a+c._levelOffset;const m=s.srcLocation;for(;u>=0;){try{if("available"===(yield c._tilemapCache.fetchAvailability(u,s.row,s.col,t)))break}catch{}if(u--,a++,s=c.identifyPixelLocation(m,a,(0,R.Wg)(t.datumTransformation)),null===s)return null}return-1===u||null==s?null:a})()}_fetchRasterInfo(i){var t=this;return(0,Z.Z)(function*(){const c=t.sourceJSON;if("Map"===t.tileType){const m=c.fullExtent||c.extent,d=Math.ceil((m.xmax-m.xmin)/c.pixelSizeX-.1),p=Math.ceil((m.ymax-m.ymin)/c.pixelSizeY-.1),h=G.Z.fromJSON(c.spatialReference||m.spatialReference),x=new U.Z({x:c.pixelSizeX,y:c.pixelSizeY,spatialReference:h});return new Se.Z({width:d,height:p,bandCount:3,extent:X.Z.fromJSON(m),spatialReference:h,pixelSize:x,pixelType:"u8",statistics:null,keyProperties:{DataType:"processed"}})}const{signal:s}=i,a=(0,Xt.g)(t.url,t.sourceJSON,{signal:s,query:t.ioConfig.customFetchParameters}),f=c.hasMultidimensions?t.request(`${t.url}/slices`,{query:{f:"json"},signal:s}).then(m=>m.data&&m.data.slices).catch(()=>null):null,u=yield Promise.all([a,f]);return t._slices=u[1],u[0]})()}_fixScaleInServiceInfo(){const{sourceJSON:i}=this;i.minScale&&i.minScale<0&&(i.minScale=0),i.maxScale&&i.maxScale<0&&(i.maxScale=0)}_fixGCSShift(i){const{extent:t,spatialReference:c}=i;t.xmin>-1&&t.xmax>181&&c?.wkid&&c.isGeographic&&(i.nativeExtent=i.extent,i.transform=new Yt.Z,i.extent=i.transform.forwardTransform(t))}_computeMinMaxLOD(i,t){const{pixelSize:c}=i,s=.5/i.width*c.x,{lods:a}=t,f=t.lodAt(Math.max.apply(null,a.map(y=>y.level))),u=t.lodAt(Math.min.apply(null,a.map(y=>y.level))),{tileType:m}=this;if("Map"===m)return this._levelOffset=a[0].level,[f,u];if("Raster"===m)return[a.find(y=>y.resolution===c.x)??f,u];const{minScale:d,maxScale:p}=this.sourceJSON;let h=f;p>0&&(h=a.find(y=>Math.abs(y.scale-p)y.scale>p).sort((y,g)=>y.scale>g.scale?1:-1)[0]??f));let x=u;return d>0&&(x=a.find(y=>Math.abs(y.scale-d)0&&(t.rasterInfo.storageInfo.firstPyramidLevel=1,t.rasterInfo.storageInfo.maximumPyramidLevel=S),t.updateTileInfo()})()}fetchRawTile(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){const{blockWidth:f,blockHeight:u,blockBoundary:m}=a.rasterInfo.storageInfo,d=m[i];if(!d||d.maxRowt||d.minCol>c)return null;const{bandCount:p,pixelType:h}=a.rasterInfo,{ranges:x,actualTileWidth:y,actualTileHeight:g}=a._getTileLocation(i,t,c);if(!x||0===x.length)return null;if(0===x[0].from&&0===x[0].to){const O=new Uint8Array(f*u);return new Qt.Z({width:f,height:u,pixels:null,mask:O,validPixelCount:0})}const{bandIds:b}=a.ioConfig,S=a._getBandSegmentCount(),v=[];let I=0;for(I=0;I-1)&&v.push(a.request(a._files.data,{range:{from:x[I].from,to:x[I].to},responseType:"array-buffer",signal:s.signal}));const T=yield Promise.all(v),P=T.map(O=>O.data.byteLength).reduce((O,z)=>O+z),D=new Uint8Array(P);let E=0;for(I=0;I1e24)for(I=0;I1e-6&&(N[I]=1);else for(I=0;I0)throw"invalid array buffer must be multiples of 16";let t,c,s,a,f,u;if(qt.f){for(c=new Uint8Array(i),a=new ArrayBuffer(i.byteLength),s=new Uint8Array(a),f=0;fparseFloat(z)))),K(i,"MRF_META/CachedSource"))throw new J.Z("mrf:open","currently does not support MRF referencing other data files");const S=K(i,"MRF_META/GeoTags"),v=K(S,"BoundingBox");let I,T=!1;if(null!=v){const z=parseFloat(v.getAttribute("minx")),N=parseFloat(v.getAttribute("miny")),W=parseFloat(v.getAttribute("maxx")),ee=parseFloat(v.getAttribute("maxy")),j=q(S,"Projection")||"";let V=G.Z.WGS84;if("LOCAL_CS[]"!==j)if(j.toLowerCase().startsWith("epsg:")){const Y=Number(j.slice(5));isNaN(Y)||0===Y||(V=new G.Z({wkid:Y}))}else V=De(j)??G.Z.WGS84;else T=!0,V=new G.Z({wkid:3857});I=new X.Z(z,N,W,ee),I.spatialReference=V}else T=!0,I=new X.Z({xmin:-.5,ymin:.5-a,xmax:s-.5,ymax:.5,spatialReference:new G.Z({wkid:3857})});const P=K(i,"MRF_META/Rsets"),D=parseInt(P&&P.getAttribute("scale")||"2",10),E=I.spatialReference,B=new Ie.Z({origin:new U.Z({x:I.xmin,y:I.ymax,spatialReference:E}),blockWidth:h,blockHeight:x,pyramidBlockWidth:h,pyramidBlockHeight:x,compression:u,pyramidScalingFactor:D}),k=new U.Z({x:I.width/s,y:I.height/a,spatialReference:E}),M=new Se.Z({width:s,height:a,extent:I,isPseudoSpatialReference:T,spatialReference:E,bandCount:f,pixelType:d,pixelSize:k,noDataValue:g,storageInfo:B}),H=q(i,"datafile"),O=q(i,"IndexFile");return{rasterInfo:M,files:{mrf:this.url,index:O||this.url.replace(".mrf",".idx"),data:H||this.url.replace(".mrf",le.get(u).blobExtension)}}}_fetchAuxiliaryData(i){var t=this;return(0,Z.Z)(function*(){try{const{data:c}=yield t.request(t.url+".aux.xml",{responseType:"xml",signal:i?.signal});return _e(c)}catch{return null}})()}};(0,C._)([(0,F.Cb)()],ye.prototype,"_files",void 0),(0,C._)([(0,F.Cb)()],ye.prototype,"_storageIndex",void 0),(0,C._)([(0,F.Cb)({type:String,json:{write:!0}})],ye.prototype,"datasetFormat",void 0),ye=(0,C._)([(0,re.j)("esri.layers.support.rasterIO.MRFRaster")],ye);const er=ye;var we=w(93122),Ee=w(635);const je=(i,t)=>i.get(t)?.values,Pe=(i,t)=>i.get(t)?.values?.[0];let me=class extends ue{constructor(){super(...arguments),this._files=null,this._headerInfo=null,this._bufferSize=1048576,this.datasetFormat="TIFF"}open(i){var t=this;return(0,Z.Z)(function*(){yield t.init();const c=i?(0,R.Wg)(i.signal):null,{data:s}=yield t.request(t.url,{range:{from:0,to:t._bufferSize},responseType:"array-buffer",signal:c});if(!s)throw new J.Z("tiffraster:open","failed to open url "+t.url);t.datasetName=t.url.slice(t.url.lastIndexOf("/")+1);const{littleEndian:a,firstIFDPos:f,isBigTiff:u}=(0,we.cK)(s),m=[];yield t._readIFDs(m,s,a,f,0,u?8:4,c);const{imageInfo:d,rasterInfo:p}=t._parseIFDs(m);if(t._headerInfo={littleEndian:a,isBigTiff:u,ifds:m,...d},t._set("rasterInfo",p),!d.isSupported)throw new J.Z("tiffraster:open","this tiff is not supported: "+d.message);if(!d.tileWidth)throw new J.Z("tiffraster:open","none-tiled tiff is not optimized for access, convert to COG and retry.");const{skipExtensions:h=[]}=t.ioConfig;if(!h.includes("aux.xml")){const x=yield t._fetchAuxiliaryMetaData(i);null!=x&&t._processPAMInfo(x,p)}h.includes("vat.dbf")||1!==p.bandCount||"u8"!==p.pixelType||(p.attributeTable=yield t._fetchAuxiliaryTable(i),(0,R.pC)(p.attributeTable)&&(p.keyProperties.DataType="thematic")),t.updateTileInfo()})()}fetchRawTile(i,t,c,s={}){var a=this;return(0,Z.Z)(function*(){if(!a._headerInfo?.isSupported||a.isBlockOutside(i,t,c))return null;const f=a._getTileLocation(i,t,c);if(!f)return null;const{ranges:u,actualTileWidth:m,actualTileHeight:d,ifd:p}=f,h=u.map(B=>a.request(a.url,{range:B,responseType:"array-buffer",signal:s.signal})),x=yield Promise.all(h),y=x.map(B=>B.data.byteLength).reduce((B,k)=>B+k),g=1===x.length?x[0].data:new ArrayBuffer(y),b=[0],S=[0];if(x.length>1){const B=new Uint8Array(g);for(let k=0,M=0;k3&&O.length%3==0){M=[];const N=O.length/3;for(let W=0;W>>8,O[W+N]>>>8,O[W+2*N]>>>8])}const z=new Se.Z({width:c,height:s,bandCount:u,pixelType:m,pixelSize:B,storageInfo:E,spatialReference:I,isPseudoSpatialReference:T,keyProperties:k,extent:P,colormap:M,statistics:S?S.statistics:null});return b?.length&&(z.nativeExtent=new X.Z({xmin:-.5,ymin:.5-s,xmax:c-.5,ymax:.5,spatialReference:I}),z.transform=new We.Z({polynomialOrder:1,forwardCoefficients:[b[2]+b[0]/2,b[5]-b[3]/2,b[0],b[3],-b[1],-b[4]]}),z.extent=z.transform.forwardTransform(z.nativeExtent),z.pixelSize=new U.Z({x:(P.xmax-P.xmin)/c,y:(P.ymax-P.ymin)/s,spatialReference:I}),E.origin.x=-.5,E.origin.y=.5),{imageInfo:t,rasterInfo:z}}_processPAMInfo(i,t){if(t.statistics=i.statistics??t.statistics,t.histograms=i.histograms,i.histograms&&(0,R.Wi)(t.statistics)&&(t.statistics=(0,ke.Oh)(i.histograms)),i.transform&&(0,R.Wi)(t.transform)){t.transform=i.transform,t.nativeExtent=t.extent;const c=t.transform.forwardTransform(t.nativeExtent);t.pixelSize=new U.Z({x:(c.xmax-c.xmin)/t.width,y:(c.ymax-c.ymin)/t.height,spatialReference:t.spatialReference}),t.extent=c}t.spatialReference||(t.spatialReference=i.spatialReference)}_readIFDs(i,t,c,s,a,f=4,u){var m=this;return(0,Z.Z)(function*(){if(!s)return null;(s>=t.byteLength||s<0)&&(t=(yield m.request(m.url,{range:{from:s+a,to:s+a+m._bufferSize},responseType:"array-buffer",signal:u})).data,a=s+a,s=0);const d=yield m._readIFD(t,c,s,a,Ee.Z.TIFF_TAGS,f,u);if(i.push(d.ifd),!d.nextIFD)return null;yield m._readIFDs(i,t,c,d.nextIFD-a,a,f,u)})()}_readIFD(i,t,c,s,a=Ee.Z.TIFF_TAGS,f=4,u){var m=this;return(0,Z.Z)(function*(){if(!i)return null;const d=(0,we.vr)(i,t,c,s,a,f);if(d.success){const p=[];if(d.ifd?.forEach(h=>{h.values||p.push(h)}),p.length>0){const h=p.map(y=>y.offlineOffsetSize).filter(R.pC),x=Math.min.apply(null,h.map(y=>y[0]));if(Math.min.apply(null,h.map(y=>y[0]+y[1]))-x<=m._bufferSize){const{data:y}=yield m.request(m.url,{range:{from:x,to:x+m._bufferSize},responseType:"array-buffer",signal:u});i=y,s=x,p.forEach(g=>(0,we.Dq)(i,t,g,s))}}if(d.ifd?.has("GEOKEYDIRECTORY")){const h=d.ifd.get("GEOKEYDIRECTORY"),x=h?.values;if(x&&x.length>4){const y=x[0]+"."+x[1]+"."+x[2],g=yield m._readIFD(i,t,h.valueOffset+6-s,s,Ee.Z.GEO_KEYS,2,u);h.data=g.ifd,h.data&&h.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[y]})}}return d}return d.requiredBufferSize&&d.requiredBufferSize!==i.byteLength?(i=(yield m.request(m.url,{range:{from:s,to:s+d.requiredBufferSize+4},responseType:"array-buffer",signal:u})).data).byteLengthy||c>g||tt.add(s)),t}static open(t){var c=this;return(0,Z.Z)(function*(){const{url:s,ioConfig:a,sourceJSON:f}=t;let u=t.datasetFormat;null==u&&s.lastIndexOf(".")&&(u=s.slice(s.lastIndexOf(".")+1).toUpperCase()),"OVR"===u||"TIF"===u?u="TIFF":"JPG"!==u&&"JPEG"!==u&&"JFIF"!==u||(u="JPG"),s.toLowerCase().includes("/imageserver")&&!s.toLowerCase().includes("/wcsserver")&&(u="RasterTileServer");const m={url:s,sourceJSON:f,datasetFormat:u,ioConfig:a??{bandIds:null,sampling:null}};let d,p;if(u&&c.supportedFormats.has(u)){if("CRF"===u&&!a?.enableCRF)throw new J.Z("rasterfactory:open",`cannot open raster: ${s}`);return d=$.get(u).constructor,p=new d(m),yield p.open({signal:t.signal}),p}if(u)throw new J.Z("rasterfactory:open","not a supported format "+u);const h=Array.from($.keys());let x=0;const y=()=>(u=h[x++],u&&("CRF"!==u||a?.enableCRF)?(d=$.get(u).constructor,p=new d(m),p.open({signal:t.signal}).then(()=>p).catch(()=>y())):null);return y()})()}static register(t,c,s){$.has(t.toUpperCase())||$.set(t.toUpperCase(),{desc:c,constructor:s})}}var nr=w(49430);let L=class extends((0,xt.h)((0,Et.M)((0,Dt.q)((0,Zt.I)((0,It.N)(Ot((0,Ht.n)((0,zt.Q)((0,mt.R)(gt.Z)))))))))){constructor(...i){super(...i),this.bandIds=null,this.interpolation=null,this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.title=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null}normalizeCtorArgs(i,t){return"string"==typeof i?{url:i,...t}:i}load(i){const t=(0,R.pC)(i)?i.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},i).catch(ge.r9).then(()=>this._openRaster(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){let i=[new be.Z({name:"Raster.ServicePixelValue",alias:"Pixel Value",domain:null,editable:!1,length:50,type:"string"})];const{rasterInfo:t}=this,{attributeTable:c}=t,s=(0,R.pC)(c)?c.fields:null;if(s){const m=s.filter(d=>"oid"!==d.type&&"value"!==d.name.toLowerCase()).map(d=>{const p=d.clone();return p.name="Raster."+d.name,p});i=i.concat(m)}const{dataType:f,multidimensionalInfo:u}=t;if(("vector-magdir"===f||"vector-uv"===f)&&(0,R.pC)(u)){const m=u.variables[0].unit?.trim();i.push(new be.Z({name:"Raster.Magnitude",alias:"Magnitude"+(m?` (${m})`:""),domain:null,editable:!1,type:"double"})),i.push(new be.Z({name:"Raster.Direction",alias:"Direction (\xb0)",domain:null,editable:!1,type:"double"}))}return i}set renderer(i){this._set("renderer",i),this.updateRenderer()}readRenderer(i,t,c){const a=(0,Me.ij)(t&&t.layerDefinition&&t.layerDefinition.drawingInfo&&t.layerDefinition.drawingInfo.renderer,c)||void 0;if(null!=a)return a}createPopupTemplate(i){return(0,nr.eZ)({fields:this.rasterFields,title:this.title},i)}write(i,t){const{raster:c}=this;return(this.loaded?"RasterTileServer"===c.datasetFormat&&("Raster"===c.tileType||"Map"===c.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))?super.write(i,t):(t&&t.messages&&t.messages.push(new J.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${t.origin}/${t.layerContainerType||"operational-layers"}'`,{layer:this})),null)}_openRaster(i){var t=this;return(0,Z.Z)(function*(){if(t.raster)t.raster.rasterInfo||(yield t.raster.open()),t.url=t.raster.url;else{const s=yield rr.open({url:t.url,sourceJSON:t.sourceJSON,ioConfig:{sampling:"closest",...t.ioConfig,customFetchParameters:t.customParameters},signal:i});if(t.rasterFunction){const a=(0,rt.Ue)(t.rasterFunction.toJSON(),{raster:s}),f=new tt({rasterFunction:a});yield f.open(),t.raster=f}else t.raster=s}const{rasterInfo:c}=t.raster;if(!c)throw new J.Z("imagery-tile-layer:load","cannot load resources on "+t.url);if(t.sourceJSON=t.sourceJSON||t.raster.sourceJSON,null!=t.sourceJSON){const s="Map"===t.raster.tileType&&null!=t.sourceJSON.minLOD&&null!=t.sourceJSON.maxLOD?t.sourceJSON:{...t.sourceJSON,minScale:0,maxScale:0};t.read(s,{origin:"service"})}null==t.title&&(t.title=t.raster.datasetName),"Map"===t.raster.tileType&&(t.popupEnabled=!1),t._configDefaultSettings(),t.addHandles((0,pt.YP)(()=>t.customParameters,s=>{t.raster.ioConfig.customFetchParameters=s}))})()}};(0,C._)([(0,F.Cb)({type:[Ge.z8],json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==this.bandIds?.join(",")}}}}})],L.prototype,"bandIds",void 0),(0,C._)([(0,F.Cb)({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),(0,ht.J)(Nt.c)],L.prototype,"interpolation",void 0),(0,C._)([(0,F.Cb)({json:{write:!0}})],L.prototype,"multidimensionalDefinition",void 0),(0,C._)([(0,F.Cb)(Ne.rn)],L.prototype,"legendEnabled",void 0),(0,C._)([(0,F.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],L.prototype,"isReference",void 0),(0,C._)([(0,F.Cb)({type:["show","hide"]})],L.prototype,"listMode",void 0),(0,C._)([(0,F.Cb)({json:{read:!0,write:!0}})],L.prototype,"blendMode",void 0),(0,C._)([(0,F.Cb)()],L.prototype,"sourceJSON",void 0),(0,C._)([(0,F.Cb)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],L.prototype,"version",void 0),(0,C._)([(0,F.Cb)()],L.prototype,"title",void 0),(0,C._)([(0,F.Cb)({readOnly:!0,json:{read:!1}})],L.prototype,"type",void 0),(0,C._)([(0,F.Cb)({type:["ArcGISTiledImageServiceLayer"]})],L.prototype,"operationalLayerType",void 0),(0,C._)([(0,F.Cb)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(i,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(i,t,c){t[c]=!i}}}})],L.prototype,"popupEnabled",void 0),(0,C._)([(0,F.Cb)({type:dt.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],L.prototype,"popupTemplate",void 0),(0,C._)([(0,F.Cb)({readOnly:!0})],L.prototype,"defaultPopupTemplate",null),(0,C._)([(0,F.Cb)({readOnly:!0,type:[be.Z]})],L.prototype,"fields",void 0),(0,C._)([(0,F.Cb)({readOnly:!0,type:[be.Z]})],L.prototype,"rasterFields",null),(0,C._)([(0,F.Cb)({types:Me.dr,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||!("raster-stretch"===this.renderer?.type&&"none"===this.renderer.stretchType&&!this.renderer.useGamma)}}},origins:{"web-scene":{types:Me.FK,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:i=>({enabled:i&&"vector-field"!==i.type&&"flow"!==i.type})}}}}})],L.prototype,"renderer",null),(0,C._)([(0,yt.r)("renderer")],L.prototype,"readRenderer",null),L=(0,C._)([(0,re.j)("esri.layers.ImageryTileLayer")],L);const ir=L}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6339.23ca905a694c92b3.js b/apps/n/porrtal-io-app/public/angular/6339.23ca905a694c92b3.js deleted file mode 100644 index dbb3b29d..00000000 --- a/apps/n/porrtal-io-app/public/angular/6339.23ca905a694c92b3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6339],{56339:(M,a,_)=>{_.r(a),_.d(a,{default:()=>u});var r=_(17626),E=_(26584),p=_(99959),y=_(50618),e=_(77712),O=(_(85931),_(90912),_(76898)),c=_(44917),P=_(6647);let s=class extends((0,P.I)((0,p.R)(c.Z))){constructor(o){super(o),this.resourceInfo=null,this.type="unknown"}initialize(){this.addResolvingPromise(new Promise((o,t)=>{(0,y.Os)(()=>{const n=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let l="Unknown layer type";n&&(l+=" "+n),t(new E.Z("layer:unknown-layer-type",l,{layerType:n}))})}))}read(o,t){super.read({resourceInfo:o},t)}write(){return null}};(0,r._)([(0,e.Cb)({readOnly:!0})],s.prototype,"resourceInfo",void 0),(0,r._)([(0,e.Cb)({type:["show","hide"]})],s.prototype,"listMode",void 0),(0,r._)([(0,e.Cb)({json:{read:!1},readOnly:!0,value:"unknown"})],s.prototype,"type",void 0),s=(0,r._)([(0,O.j)("esri.layers.UnknownLayer")],s);const u=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6354.0a778c87eb69bea7.js b/apps/n/porrtal-io-app/public/angular/6354.0a778c87eb69bea7.js deleted file mode 100644 index dfa0206c..00000000 --- a/apps/n/porrtal-io-app/public/angular/6354.0a778c87eb69bea7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6354],{36592:(q,L,h)=>{h.d(L,{Q:()=>p});var I=h(85931),E=h(62208),N=h(77029),H=h(14259);class p{constructor(n=9,r){this._compareMinX=Z,this._compareMinY=v,this._toBBox=o=>o,this._maxEntries=Math.max(4,n||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),r&&("function"==typeof r?this._toBBox=r:this._initFormat(r)),this.clear()}destroy(){this.clear(),Y.prune(),V.prune(),D.prune(),Q.prune()}all(n){this._all(this._data,n)}search(n,r){let o=this._data;const l=this._toBBox;if(W(n,o))for(Y.clear();o;){for(let d=0,g=o.children.length;d0;){if(o||(o=(0,E.j0)(D.pop()),l=D.data[D.length-1],d=Q.pop()??0,g=!0),o.leaf&&(r=(0,I.cq)(o.children,n,o.children.length,o.indexHint),-1!==r))return o.children.splice(r,1),D.push(o),this._condense(D),this;g||o.leaf||!w(o,y)?l?(d++,o=l.children[d],g=!1):o=null:(D.push(o),Q.push(d),d=0,l=o,o=o.children[0])}return this}toJSON(){return this._data}fromJSON(n){return this._data=n,this}_all(n,r){let o=n;for(V.clear();o;){if(!0===o.leaf)for(const l of o.children)r(l);else V.pushArray(o.children);o=V.pop()??null}}_build(n,r,o,l){const d=o-r+1;let g=this._maxEntries;if(d<=g){const u=new X(n.slice(r,o+1));return m(u,this._toBBox),u}l||(l=Math.ceil(Math.log(d)/Math.log(g)),g=Math.ceil(d/g**(l-1)));const y=new z([]);y.height=l;const x=Math.ceil(d/g),A=x*Math.ceil(Math.sqrt(g));ee(n,r,o,A,this._compareMinX);for(let u=r;u<=o;u+=A){const R=Math.min(u+A-1,o);ee(n,u,R,x,this._compareMinY);for(let b=u;b<=R;b+=x){const se=Math.min(b+x-1,R);y.children.push(this._build(n,b,se,l-1))}}return m(y,this._toBBox),y}_chooseSubtree(n,r,o,l){for(;l.push(r),!0!==r.leaf&&l.length-1!==o;){let d,g=1/0,y=1/0;for(let x=0,A=r.children.length;x=0&&D.data[r].children.length>this._maxEntries;)this._split(D,r),r--;this._adjustParentBBoxes(d,D,r)}_split(n,r){const o=n.data[r],l=o.children.length,d=this._minEntries;this._chooseSplitAxis(o,d,l);const g=this._chooseSplitIndex(o,d,l);if(!g)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const y=o.children.splice(g,o.children.length-g),x=o.leaf?new X(y):new z(y);x.height=o.height,m(o,this._toBBox),m(x,this._toBBox),r?n.data[r-1].children.push(x):this._splitRoot(o,x)}_splitRoot(n,r){this._data=new z([n,r]),this._data.height=n.height+1,m(this._data,this._toBBox)}_chooseSplitIndex(n,r,o){let l,d,g;l=d=1/0;for(let y=r;y<=o-r;y++){const x=M(n,0,y,this._toBBox),A=M(n,y,o,this._toBBox),u=U(x,A),R=S(x)+S(A);u=r;A--){const u=n.children[A];C(y,n.leaf?d(u):u),x+=c(y)}return x}_adjustParentBBoxes(n,r,o){for(let l=o;l>=0;l--)C(r.data[l],n)}_condense(n){for(let r=n.length-1;r>=0;r--){const o=n.data[r];if(0===o.children.length)if(r>0){const l=n.data[r-1],d=l.children;d.splice((0,I.cq)(d,o,d.length,l.indexHint),1)}else this.clear();else m(o,this._toBBox)}}_initFormat(n){const r=["return a"," - b",";"];this._compareMinX=new Function("a","b",r.join(n[0])),this._compareMinY=new Function("a","b",r.join(n[1])),this._toBBox=new Function("a","return {minX: a"+n[0]+", minY: a"+n[1]+", maxX: a"+n[2]+", maxY: a"+n[3]+"};")}}function m(_,n){M(_,0,_.children.length,n,_)}function M(_,n,r,o,l){l||(l=new X([])),l.minX=1/0,l.minY=1/0,l.maxX=-1/0,l.maxY=-1/0;for(let d,g=n;g=_.minX&&n.maxY>=_.minY}function ee(_,n,r,o,l){const d=[n,r];for(;d.length;){const g=(0,E.j0)(d.pop()),y=(0,E.j0)(d.pop());if(g-y<=o)continue;const x=y+Math.ceil((g-y)/o/2)*o;(0,H.q)(_,x,y,g,l),d.push(y,x,x,g)}}const Y=new N.Z,V=new N.Z,D=new N.Z,Q=new N.Z({deallocator:void 0});class te{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class $ extends te{constructor(){super(...arguments),this.height=1,this.indexHint=new I.SO}}class X extends ${constructor(n){super(),this.children=n,this.leaf=!0}}class z extends ${constructor(n){super(),this.children=n,this.leaf=!1}}},61256:(q,L,h)=>{h.d(L,{H:()=>C});var I=h(8314),E=h(36592),N=h(65401);const p={minX:0,minY:0,maxX:0,maxY:0};class C{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new E.Q(9,(0,I.Z)("esri-csp-restrictions")?v=>({minX:v[0],minY:v[1],maxX:v[2],maxY:v[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const v=new Array(this._idByBounds.size);let S=0;this._idByBounds.forEach((c,F)=>{v[S++]=F}),this._indexInvalid=!1,this._index.clear(),this._index.load(v)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(v=>this._idByBounds.has(v))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const v=(0,N.cS)();for(const S of this._boundsById.values())S&&(v[0]=Math.min(S[0],v[0]),v[1]=Math.min(S[1],v[1]),v[2]=Math.max(S[2],v[2]),v[3]=Math.max(S[3],v[3]));return v}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(v){const S=this._boundsById.get(v);this._boundsById.delete(v),S&&(this._idByBounds.delete(S),this._indexInvalid||this._index.remove(S))}forEachInBounds(v,S){this._loadIndex(),function M(Z,v,S){(function m(Z){p.minX=Z[0],p.minY=Z[1],p.maxX=Z[2],p.maxY=Z[3]})(v),Z.search(p,S)}(this._index,v,c=>S(this._idByBounds.get(c)))}get(v){return this._boundsById.get(v)}has(v){return this._boundsById.has(v)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(v,S){if(!this._indexInvalid){const c=this._boundsById.get(v);c&&(this._index.remove(c),this._idByBounds.delete(c))}this._boundsById.set(v,S),S&&(this._idByBounds.set(S,v),this._indexInvalid||(this._boundsToLoad.push(S),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},3579:(q,L,h)=>{h.d(L,{Z:()=>v});var I=h(26584),E=h(61885),N=h(63290),H=h(62208),p=h(5548),m=h(65401),M=h(82054),C=h(61256),Z=h(92794);class v{constructor(c){this.geometryInfo=c,this._boundsStore=new C.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new E.Z,this.featureAdapter=Z.n}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let c=0;return this._featuresById.forEach(F=>{(0,H.pC)(F.geometry)&&F.geometry.coords&&(c+=F.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:c/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(c){this._add(c),this._emitChanged()}addMany(c){for(const F of c)this._add(F);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(c){const F=this._featuresById.get(c);return F?(this._remove(F),this._emitChanged(),F):null}removeManyById(c){this._boundsStore.invalidateIndex();for(const F of c){const U=this._featuresById.get(F);U&&this._remove(U)}this._emitChanged()}forEachBounds(c,F,U){for(const w of c){const W=this._boundsStore.get(w.objectId);W&&F((0,p.JR)(U,W))}}getFeature(c){return this._featuresById.get(c)}has(c){return this._featuresById.has(c)}toArray(){return Array.from(this._featuresById.values())}forEach(c){this._featuresById.forEach(F=>c(F))}forEachInBounds(c,F){this._boundsStore.forEachInBounds(c,U=>{F(this._featuresById.get(U))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let c=!1;this._featuresById.forEach((F,U)=>{this._markedIds.has(U)||(c=!0,this._remove(F))}),this._markedIds.clear(),c&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(c){if(!c)return;const F=c.objectId;if(null==F)return void N.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new I.Z("featurestore:invalid-feature","feature id is missing",{feature:c}));const U=this._featuresById.get(F);let w;if(this._markedIds.add(F),U?(c.displayId=U.displayId,w=this._boundsStore.get(F),this._boundsStore.delete(F)):(0,H.pC)(this.onFeatureAdd)&&this.onFeatureAdd(c),(0,H.Wi)(c.geometry)||!c.geometry.coords||!c.geometry.coords.length)return this._boundsStore.set(F,null),void this._featuresById.set(F,c);w=(0,M.$)((0,H.pC)(w)?w:(0,m.Ue)(),c.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,H.pC)(w)&&this._boundsStore.set(F,w),this._featuresById.set(F,c)}_remove(c){return(0,H.pC)(this.onFeatureRemove)&&this.onFeatureRemove(c),this._markedIds.delete(c.objectId),this._boundsStore.delete(c.objectId),this._featuresById.delete(c.objectId),c}}},92794:(q,L,h)=>{h.d(L,{n:()=>p});var I=h(62208),E=h(77044),N=h(66385),H=h(88071);const p={getObjectId:m=>m.objectId,getAttributes:m=>m.attributes,getAttribute:(m,M)=>m.attributes[M],cloneWithGeometry:(m,M)=>new N.u_(M,m.attributes,null,m.objectId),getGeometry:m=>m.geometry,getCentroid:(m,M)=>((0,I.Wi)(m.centroid)&&(m.centroid=(0,E.Y)(new H.Z,m.geometry,M.hasZ,M.hasM)),m.centroid)}},86354:(q,L,h)=>{h.r(L),h.d(L,{default:()=>Ee});var I=h(15861),E=h(17626),N=h(61885),H=h(72392),p=h(62208),m=h(10699),M=h(32917),C=h(77712),Z=h(85931),S=(h(90912),h(76898)),c=h(17760),F=h(65234),U=h(3579),w=h(58175),W=h(2584),ee=h(62708),Y=h(96854),V=h(82706),D=h(17936),Q=h(1520),te=h(83010),$=h(14517);let X=class extends $.Z{constructor(){super(...arguments),this.updating=!1,this._pending=[]}push(e,t){this._pending.push({promise:e,callback:t}),1===this._pending.length&&this._process()}_process(){if(!this._pending.length)return void(this.updating=!1);this.updating=!0;const e=this._pending[0];e.promise.then(t=>e.callback(t)).catch(()=>{}).then(()=>{this._pending.shift(),this._process()})}};(0,E._)([(0,C.Cb)()],X.prototype,"updating",void 0),X=(0,E._)([(0,S.j)("esri.core.AsyncSequence")],X);var u,e,z=h(59213),_=h(80542),n=h(54024),r=h(63290),o=h(2004),l=h(65401),d=h(82054),g=h(38305),y=h(98558),x=h(20477);class A{constructor(t,i){this.data=t,this.resolution=i,this.state={type:u.CREATED},this.alive=!0}process(t){switch(this.state.type){case u.CREATED:return this.state=this._gotoFetchCount(this.state,t),this.state.task.promise.then(t.resume,t.resume);case u.FETCH_COUNT:break;case u.FETCHED_COUNT:return this.state=this._gotoFetchFeatures(this.state,t),this.state.task.promise.then(t.resume,t.resume);case u.FETCH_FEATURES:break;case u.FETCHED_FEATURES:this.state=this._goToDone(this.state,t)}return null}get debugInfo(){return{data:this.data,featureCount:this._featureCount,state:this._stateToString}}get _featureCount(){switch(this.state.type){case u.CREATED:case u.FETCH_COUNT:return 0;case u.FETCHED_COUNT:return this.state.featureCount;case u.FETCH_FEATURES:return this.state.previous.featureCount;case u.FETCHED_FEATURES:return this.state.features.length;case u.DONE:return this.state.previous.features.length}}get _stateToString(){switch(this.state.type){case u.CREATED:return"created";case u.FETCH_COUNT:return"fetch-count";case u.FETCHED_COUNT:return"fetched-count";case u.FETCH_FEATURES:return"fetch-features";case u.FETCHED_FEATURES:return"fetched-features";case u.DONE:return"done"}}_gotoFetchCount(t,i){var s=this;return{type:u.FETCH_COUNT,previous:t,task:(0,z.vr)(function(){var a=(0,I.Z)(function*(f){const T=yield(0,z.mt)(i.fetchCount(s,f));s.state.type===u.FETCH_COUNT&&(s.state=s._gotoFetchedCount(s.state,T.ok?T.value:1/0))});return function(f){return a.apply(this,arguments)}}())}}_gotoFetchedCount(t,i){return{type:u.FETCHED_COUNT,featureCount:i,previous:t}}_gotoFetchFeatures(t,i){var s=this;return{type:u.FETCH_FEATURES,previous:t,task:(0,z.vr)(function(){var a=(0,I.Z)(function*(f){const T=yield(0,z.mt)(i.fetchFeatures(s,t.featureCount,f));s.state.type===u.FETCH_FEATURES&&(s.state=s._gotoFetchedFeatures(s.state,T.ok?T.value:[]))});return function(f){return a.apply(this,arguments)}}())}}_gotoFetchedFeatures(t,i){return{type:u.FETCHED_FEATURES,previous:t,features:i}}_goToDone(t,i){return i.finish(this,t.features),{type:u.DONE,previous:t}}reset(){const t=this.state;switch(this.state={type:u.CREATED},t.type){case u.CREATED:case u.FETCHED_COUNT:case u.FETCHED_FEATURES:case u.DONE:break;case u.FETCH_COUNT:case u.FETCH_FEATURES:t.task.abort()}}intersects(t){return!(!(0,p.Wi)(t)&&this.data.extent)||((0,l.oJ)(t,R),(0,l.kK)(this.data.extent,R))}}(e=u||(u={}))[e.CREATED=0]="CREATED",e[e.FETCH_COUNT=1]="FETCH_COUNT",e[e.FETCHED_COUNT=2]="FETCHED_COUNT",e[e.FETCH_FEATURES=3]="FETCH_FEATURES",e[e.FETCHED_FEATURES=4]="FETCHED_FEATURES",e[e.DONE=5]="DONE";const R=(0,l.Ue)();let b=class extends _.r{constructor(e){super(e),this.tilesOfInterest=[],this.availability=0,this._pendingTiles=new Map,this._pendingEdits=new X,this._pendingEditsAbortController=new AbortController}get _minimumVerticesPerFeature(){switch(this.store?.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}set filter(e){const t=this._get("filter"),i=this._filterProperties(e);JSON.stringify(t)!==JSON.stringify(i)&&this._set("filter",i)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get _configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&((0,p.pC)(e)&&(0,p.pC)(t)&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this.updatingExcludingEdits||this._pendingEdits.updating}get updatingExcludingEdits(){return this.updatingHandles.updating}get hasZ(){return this.store.featureStore.hasZ}initialize(){this._initializeFetchExtent(),this.updatingHandles.add(()=>this._configuration,()=>this.refresh()),this.updatingHandles.add(()=>this.tilesOfInterest,(e,t)=>{(0,Z.fS)(e,t,({id:i},{id:s})=>i===s)||this._process()},M.Z_)}destroy(){this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this._pendingEditsAbortController.abort(),this._pendingEditsAbortController=null}refresh(){this.store.refresh(),this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._process()}applyEdits(e){var t=this;this._pendingEdits.push(e,function(){var i=(0,I.Z)(function*(s){if(0===s.addedFeatures.length&&0===s.updatedFeatures.length&&0===s.deletedFeatures.length)return;for(const[,f]of t._pendingTiles)f.reset();const a={...s,deletedFeatures:s.deletedFeatures.map(({objectId:f,globalId:T})=>f&&-1!==f?f:t._lookupObjectIdByGlobalId(T))};yield t.updatingHandles.addPromise(t.store.processEdits(a,(f,T)=>t._queryFeaturesById(f,T),t._pendingEditsAbortController.signal)),t._processPendingTiles()});return function(s){return i.apply(this,arguments)}}())}_initializeFetchExtent(){var e=this;if(!this.capabilities.query.supportsExtent||!(0,g.M8)(this.url))return;const t=(0,z.vr)(function(){var i=(0,I.Z)(function*(s){try{const a=yield(0,x.executeQueryForExtent)(e.url,new Y.Z({where:"1=1",outSpatialReference:e.spatialReference,cacheHint:!!e.capabilities.query.supportsCacheHint||void 0}),{query:e._configuration.customParameters,signal:s});e.store.extent=o.Z.fromJSON(a.data?.extent)}catch(a){(0,m.r9)(a),r.Z.getLogger(e.declaredClass).warn("Failed to fetch data extent",a)}});return function(s){return i.apply(this,arguments)}}());this.updatingHandles.addPromise(t.promise.then(()=>this._process())),this.handles.add((0,n.kB)(()=>t.abort()))}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this._pendingTiles.values()).map(e=>e.debugInfo),storedTiles:this.store.debugInfo}}_process(){this._markTilesNotAlive(),this._createPendingTiles(),this._deletePendingTiles(),this._processPendingTiles()}_markTilesNotAlive(){for(const[,e]of this._pendingTiles)e.alive=!1}_createPendingTiles(){const e=this._collectMissingTilesInfo();if(this._setAvailability((0,p.Wi)(e)?1:e.coveredArea/e.fullArea),!(0,p.Wi)(e))for(const{data:t,resolution:i}of e.missingTiles){const s=this._pendingTiles.get(t.id);s?(s.resolution=i,s.alive=!0):this._createPendingTile(t,i)}}_collectMissingTilesInfo(){let e=null;for(let t=this.tilesOfInterest.length-1;t>=0;t--){const s=this.store.process(this.tilesOfInterest[t],(a,f)=>this._verifyTileComplexity(a,f));(0,p.Wi)(e)?e=s:e.prepend(s)}return e}_deletePendingTiles(){for(const[,e]of this._pendingTiles)e.alive||this._deletePendingTile(e)}_processPendingTiles(){const e={fetchCount:(t,i)=>this._fetchCount(t,i),fetchFeatures:(t,i,s)=>this._fetchFeatures(t,i,s),finish:(t,i)=>this._finishPendingTile(t,i),resume:()=>this._processPendingTiles()};if(this._ensureFetchAllCounts(e))for(const[,t]of this._pendingTiles)this._verifyTileComplexity(this.store.getFeatureCount(t.data),t.resolution)&&this.updatingHandles.addPromise(t.process(e))}_verifyTileComplexity(e,t){return this._verifyVertexComplexity(e)&&this._verifyFeatureDensity(e,t)}_verifyVertexComplexity(e){return e*this._minimumVerticesPerFeature{e===a.attributes[t]&&(s=a.objectId??a.attributes[i])}),(0,p.Wi)(s))throw new Error(`Expected to find a feature with globalId ${e}`);return s}_queryFeaturesById(e,t){const i=this._createFeaturesQuery();return i.objectIds=e,this._queryFeatures(i,t)}_queryFeatures(e,t){return this.capabilities.query.supportsFormatPBF?this._queryFeaturesPBF(e,t):this._queryFeaturesJSON(e,t)}_queryFeaturesPBF(e,t){var i=this;return(0,I.Z)(function*(){const{sourceSpatialReference:s}=i,{data:a}=yield(0,x.executeQueryPBF)(i.url,e,new y.J({sourceSpatialReference:s}),{query:i._configuration.customParameters,timeout:ne,signal:t});return(0,d.lM)(a)})()}_queryFeaturesJSON(e,t){var i=this;return(0,I.Z)(function*(){const{sourceSpatialReference:s}=i,{data:a}=yield(0,x.executeQuery)(i.url,e,s,{query:i._configuration.customParameters,timeout:ne,signal:t});return(0,d.h_)(a,i.objectIdField)})()}_createCountQuery(e){const t=this._createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}_createFeaturesQuery(e=null){const t=this._createBaseQuery(e);return t.outFields=this.globalIdField?[this.globalIdField,this.objectIdField]:[this.objectIdField],t.returnGeometry=!0,(0,p.pC)(e)&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}_createBaseQuery(e){const t=new Y.Z({returnZ:this.hasZ,returnM:!1,geometry:(0,p.pC)(this.tileInfo)&&(0,p.pC)(e)?(0,l.HH)(e.data.extent,this.tileInfo.spatialReference):void 0}),i=this._configuration.filter;return(0,p.pC)(i)&&(t.where=i.where,t.gdbVersion=i.gdbVersion,t.timeExtent=i.timeExtent),t.outSpatialReference=this.spatialReference,t}_setPagingParameters(e,t,i){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:s,supportsCacheHint:a,tileMaxRecordCount:f,maxRecordCount:T,supportsResultType:O}=this.capabilities.query,B=s?Y.Z.MAX_MAX_RECORD_COUNT_FACTOR:1,P=B*((O||a)&&f?f:T||se);return e.start=t,s?(e.maxRecordCountFactor=Math.min(B,Math.ceil(i/P)),e.num=Math.min(i,e.maxRecordCountFactor*P)):e.num=Math.min(i,P),!0}};(0,E._)([(0,C.Cb)({constructOnly:!0})],b.prototype,"url",void 0),(0,E._)([(0,C.Cb)({constructOnly:!0})],b.prototype,"objectIdField",void 0),(0,E._)([(0,C.Cb)({constructOnly:!0})],b.prototype,"globalIdField",void 0),(0,E._)([(0,C.Cb)({constructOnly:!0})],b.prototype,"capabilities",void 0),(0,E._)([(0,C.Cb)({constructOnly:!0})],b.prototype,"sourceSpatialReference",void 0),(0,E._)([(0,C.Cb)({constructOnly:!0})],b.prototype,"spatialReference",void 0),(0,E._)([(0,C.Cb)({constructOnly:!0})],b.prototype,"store",void 0),(0,E._)([(0,C.Cb)({readOnly:!0})],b.prototype,"_minimumVerticesPerFeature",null),(0,E._)([(0,C.Cb)()],b.prototype,"filter",null),(0,E._)([(0,C.Cb)()],b.prototype,"customParameters",null),(0,E._)([(0,C.Cb)({readOnly:!0})],b.prototype,"_configuration",null),(0,E._)([(0,C.Cb)()],b.prototype,"tileInfo",null),(0,E._)([(0,C.Cb)()],b.prototype,"tileSize",null),(0,E._)([(0,C.Cb)()],b.prototype,"tilesOfInterest",void 0),(0,E._)([(0,C.Cb)({readOnly:!0})],b.prototype,"updating",null),(0,E._)([(0,C.Cb)({readOnly:!0})],b.prototype,"updatingExcludingEdits",null),(0,E._)([(0,C.Cb)({readOnly:!0})],b.prototype,"availability",void 0),(0,E._)([(0,C.Cb)()],b.prototype,"hasZ",null),b=(0,E._)([(0,S.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],b);const se=2e3,ne=6e5,ae=1e6,le=25,he=1;var ie=h(27306),ue=h(61256),de=h(68511);class ce{constructor(){this._store=new Map,this._byteSize=0}set(t,i){this.delete(t),this._store.set(t,i),this._byteSize+=i.byteSize}delete(t){const i=this._store.get(t);return!!this._store.delete(t)&&(null!=i&&(this._byteSize-=i.byteSize),!0)}get(t){return this._used(t),this._store.get(t)}has(t){return this._used(t),this._store.has(t)}clear(){this._store.clear()}applyByteSizeLimit(t,i){for(const[s,a]of this._store){if(this._byteSize<=t)break;this.delete(s),i(a)}}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}_used(t){const i=this._store.get(t);i&&(this._store.delete(t),this._store.set(t,i))}}let G=class extends $.Z{constructor(e){super(e),this.tileInfo=null,this.extent=null,this.maximumByteSize=10*ie.Y8.MEGABYTES,this._tileBounds=new ue.H,this._tiles=new ce,this._refCounts=new Map,this._tileFeatureCounts=new Map,this._tmpBoundingRect=(0,l.Ue)()}add(e,t){const i=[];for(const s of t)this._referenceFeature(s.objectId)===K.ADDED&&i.push(s);this._addTileStorage(e,new Set(t.map(({objectId:s})=>s)),function _e(e){return e.reduce((t,i)=>t+function fe(e){return 32+function pe(e){if((0,p.Wi)(e))return 0;const t=(0,ie.do)(e.lengths,4);return 32+(0,ie.do)(e.coords,8)+t}(e.geometry)+(0,ie.f2)(e.attributes)}(i),0)}(t)),this.featureStore.addMany(i),this._tiles.applyByteSizeLimit(this.maximumByteSize,s=>this._removeTileStorage(s))}destroy(){this.clear(),this._tileFeatureCounts.clear()}clear(){this.featureStore.clear(),this._tileBounds.clear(),this._tiles.clear(),this._refCounts.clear()}refresh(){this.clear(),this._tileFeatureCounts.clear()}processEdits(e,t,i){return this._processEditsDelete(e.deletedFeatures.concat(e.updatedFeatures)),this._processEditsRefetch(e.addedFeatures.concat(e.updatedFeatures),t,i)}_addTileStorage(e,t,i){this._tiles.set(e.id,new ge(e,t,i)),this._tileBounds.set(e.id,e.extent),this._tileFeatureCounts.set(e.id,t.size)}_remove({id:e}){const t=this._tiles.get(e);t&&this._removeTileStorage(t)}_removeTileStorage(e){const t=[];for(const s of e.objectIds)this._unreferenceFeature(s)===K.REMOVED&&t.push(s);this.featureStore.removeManyById(t);const i=e.data.id;this._tiles.delete(i),this._tileBounds.delete(i)}_processEditsDelete(e){this.featureStore.removeManyById(e);for(const[,t]of this._tiles){for(const i of e)t.objectIds.delete(i);this._tileFeatureCounts.set(t.data.id,t.objectIds.size)}for(const t of e)this._refCounts.delete(t)}_processEditsRefetch(e,t,i){var s=this;return(0,I.Z)(function*(){const a=(yield t(e,i)).features,{hasZ:f,hasM:T}=s.featureStore;for(const O of a){const B=(0,d.$)(s._tmpBoundingRect,O.geometry,f,T);(0,p.Wi)(B)||s._tileBounds.forEachInBounds(B,P=>{const j=s._tiles.get(P);s.featureStore.add(O),j.objectIds.has(O.objectId)||(j.objectIds.add(O.objectId),s._referenceFeature(O.objectId),s._tileFeatureCounts.set(j.data.id,j.objectIds.size))})}})()}process(e,t=(()=>!0)){if((0,p.Wi)(this.tileInfo)||!e.extent||(0,p.pC)(this.extent)&&!(0,l.kK)((0,l.oJ)(this.extent,this._tmpBoundingRect),e.extent))return new re(e);if(this._tiles.has(e.id))return new re(e);const i=this._createTileTree(e,this.tileInfo);return this._simplify(i,t,null,0,1),this._collectMissingTiles(e,i,this.tileInfo)}get debugInfo(){return Array.from(this._tiles.values()).map(({data:e})=>({data:e,featureCount:this._tileFeatureCounts.get(e.id)||0}))}getFeatureCount(e){return this._tileFeatureCounts.get(e.id)??0}fetchCount(e,t,i,s){var a=this;return(0,I.Z)(function*(){const f=a._tileFeatureCounts.get(e.id);if(null!=f)return f;const T=yield(0,x.executeQueryForCount)(t,i,s);return a._tileFeatureCounts.set(e.id,T.data.count),T.data.count})()}_createTileTree(e,t){const i=new oe(e.level,e.row,e.col);return t.updateTileInfo(i,W.Z.ExtrapolateOptions.POWER_OF_TWO),this._tileBounds.forEachInBounds(e.extent,s=>{const a=this._tiles.get(s).data;this._tilesAreRelated(e,a)&&this._populateChildren(i,a,t,this._tileFeatureCounts.get(a.id)||0)}),i}_tilesAreRelated(e,t){if(!e||!t)return!1;if(e.level===t.level)return e.row===t.row&&e.col===t.col;const i=e.level>a,T=t.col>>a,B=T-(e.col<<1)+(f-(e.row<<1)<<1),P=e.children[B];if((0,p.pC)(P))this._populateChildren(P,t,i,s);else{const j=new oe(e.level+1,f,T);i.updateTileInfo(j,W.Z.ExtrapolateOptions.POWER_OF_TWO),e.children[B]=j,this._populateChildren(j,t,i,s)}}_simplify(e,t,i,s,a){const f=a*a;if(e.isLeaf)return t(this.getFeatureCount(e),a)?0:(this._remove(e),(0,p.pC)(i)&&(i.children[s]=null),f);const T=a/2,O=T*T;let B=0;for(let P=0;P{const a=this._tiles.get(s.id);if(a){i+=a.byteSize;for(const f of a.objectIds)t.has(f)||(t.add(f),this._referenceFeature(f));this._remove(s)}}),this._addTileStorage(e,t,i),e.isLeaf=!0,e.children[0]=e.children[1]=e.children[2]=e.children[3]=null,this._tileFeatureCounts.set(e.id,t.size)}_forEachLeaf(e,t){for(const i of e.children)(0,p.Wi)(i)||(i.isLeaf?t(i):this._forEachLeaf(i,t))}_purge(e){if(!(0,p.Wi)(e))if(e.isLeaf)this._remove(e);else for(let t=0;t>1),(e.col<<1)+(1&a),s):this._collectMissingTilesRecurse(f,t,s)}}_referenceFeature(e){const t=(this._refCounts.get(e)||0)+1;return this._refCounts.set(e,t),1===t?K.ADDED:K.UNCHANGED}_unreferenceFeature(e){const t=(this._refCounts.get(e)||0)-1;return 0===t?(this._refCounts.delete(e),K.REMOVED):(t>0&&this._refCounts.set(e,t),K.UNCHANGED)}get test(){return{tiles:Array.from(this._tiles.values()).map(e=>`${e.data.id}:[${Array.from(e.objectIds)}]`),featureReferences:Array.from(this._refCounts.keys()).map(e=>`${e}:${this._refCounts.get(e)}`)}}};(0,E._)([(0,C.Cb)({constructOnly:!0})],G.prototype,"featureStore",void 0),(0,E._)([(0,C.Cb)()],G.prototype,"tileInfo",void 0),(0,E._)([(0,C.Cb)()],G.prototype,"extent",void 0),(0,E._)([(0,C.Cb)()],G.prototype,"maximumByteSize",void 0),G=(0,E._)([(0,S.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTileStore")],G);class ge{constructor(t,i,s){this.data=t,this.objectIds=i,this.byteSize=s}}class oe{constructor(t,i,s){this.level=t,this.row=i,this.col=s,this.isLeaf=!1,this.extent=null,this.children=[null,null,null,null]}get hasChildren(){return!this.isLeaf&&((0,p.pC)(this.children[0])||(0,p.pC)(this.children[1])||(0,p.pC)(this.children[2])||(0,p.pC)(this.children[3]))}}class re{constructor(t,i=[]){this.missingTiles=i,this.fullArea=0,this.coveredArea=0,this.fullArea=(0,l.SO)(t.extent),this.coveredArea=this.fullArea}prepend(t){this.missingTiles=t.missingTiles.concat(this.missingTiles),this.coveredArea+=t.coveredArea,this.fullArea+=t.fullArea}}class me{constructor(t,i,s){this._tileInfo=t,this._extent=null,this.info=new re(i),(0,p.pC)(s)&&(this._extent=(0,l.oJ)(s))}addMissing(t,i,s,a){const f=new de.f(null,t,i,s);this._tileInfo.updateTileInfo(f,W.Z.ExtrapolateOptions.POWER_OF_TWO),(0,p.Wi)(f.extent)||(0,p.pC)(this._extent)&&!(0,l.kK)(this._extent,f.extent)||(this.info.missingTiles.push({data:f,resolution:a}),this.info.coveredArea-=(0,l.SO)(f.extent))}}const ye=.18751;var K;!function(e){e[e.ADDED=0]="ADDED",e[e.REMOVED=1]="REMOVED",e[e.UNCHANGED=2]="UNCHANGED"}(K||(K={}));let k=class extends N.Z.EventedAccessor{constructor(){var e;super(...arguments),e=this,this._isInitializing=!0,this.remoteClient=null,this._whenSetup=(0,m.dD)(),this._elevationAligner=(0,D.p)(),this._elevationFilter=(0,Q.c)(),this._symbologyCandidatesFetcher=(0,te.k)(),this._handles=new H.Z,this._updatingHandles=new c.t,this._editsUpdatingHandles=new c.t,this._pendingApplyEdits=new Map,this._alignPointsInFeatures=function(){var t=(0,I.Z)(function*(i,s){const a={points:i},f=yield e.remoteClient.invoke("alignElevation",a,{signal:s});return(0,m.k_)(s),f});return function(i,s){return t.apply(this,arguments)}}(),this._getSymbologyCandidates=function(){var t=(0,I.Z)(function*(i,s){const a={candidates:i,spatialReference:e._spatialReference.toJSON()},f=yield e.remoteClient.invoke("getSymbologyCandidates",a,{signal:s});return(0,m.k_)(s),f});return function(i,s){return t.apply(this,arguments)}}()}get updating(){return this.updatingExcludingEdits||this._editsUpdatingHandles.updating||this._featureFetcher.updating}get updatingExcludingEdits(){return this._featureFetcher.updatingExcludingEdits||this._isInitializing||this._updatingHandles.updating}destroy(){this._featureFetcher.destroy(),this._queryEngine.destroy(),this._featureStore.clear(),this._handles.destroy()}setup(e){var t=this;return(0,I.Z)(function*(){const{geometryType:i,objectIdField:s,timeInfo:a,fields:f}=e.serviceInfo,{hasZ:T}=e,O=F.Z.fromJSON(e.spatialReference);t._spatialReference=O,t._featureStore=new U.Z({...e.serviceInfo,hasZ:T,hasM:!1}),t._queryEngine=new w.q({spatialReference:e.spatialReference,featureStore:t._featureStore,geometryType:i,fields:f,hasZ:T,hasM:!1,objectIdField:s,timeInfo:a?ee.Z.fromJSON(a):null}),t._featureFetcher=new b({store:new G({featureStore:t._featureStore}),url:e.serviceInfo.url,objectIdField:e.serviceInfo.objectIdField,globalIdField:e.serviceInfo.globalIdField,capabilities:e.serviceInfo.capabilities,spatialReference:O,sourceSpatialReference:F.Z.fromJSON(e.serviceInfo.spatialReference)});const B="3d"===e.configuration.viewType;return t._elevationAligner=(0,D.p)(B,{elevationInfo:(0,p.pC)(e.elevationInfo)?V.Z.fromJSON(e.elevationInfo):null,alignPointsInFeatures:t._alignPointsInFeatures,spatialReference:O}),t._elevationFilter=(0,Q.c)(B),t._handles.add([(0,M.YP)(()=>t._featureFetcher.availability,P=>t.emit("notify-availability",{availability:P}),M.Z_),(0,M.YP)(()=>t.updating,()=>t._notifyUpdating())]),t._whenSetup.resolve(),t._isInitializing=!1,t.configure(e.configuration)})()}configure(e){var t=this;return(0,I.Z)(function*(){return yield t._updatingHandles.addPromise(t._whenSetup.promise),t._updateFeatureFetcherConfiguration(e),{result:{}}})()}fetchCandidates(e,t){var i=this;return(0,I.Z)(function*(){yield i._whenSetup.promise,(0,m.k_)(t);const s=function ve(e){return{point:e.point,distance:e.distance,types:e.types,query:(0,p.pC)(e.filter)?e.filter:{where:"1=1"}}}(e),a=(0,p.pC)(t)?t.signal:null,f=yield i._queryEngine.executeQueryForSnapping(s,a);(0,m.k_)(a);const T=yield i._elevationAligner.alignCandidates(f.candidates,a);(0,m.k_)(a);const O=yield i._symbologyCandidatesFetcher.fetch(T,a);(0,m.k_)(a);const B=0===O.length?T:T.concat(O);return{result:{candidates:i._elevationFilter.filter(s,B)}}})()}updateTiles(e,t){var i=this;return(0,I.Z)(function*(){return yield i._updatingHandles.addPromise(i._whenSetup.promise),(0,m.k_)(t),i._featureFetcher.tileSize=e.tileSize,i._featureFetcher.tilesOfInterest=e.tiles,i._featureFetcher.tileInfo=(0,p.pC)(e.tileInfo)?W.Z.fromJSON(e.tileInfo):null,J})()}refresh(e,t){var i=this;return(0,I.Z)(function*(){return yield i._updatingHandles.addPromise(i._whenSetup.promise),(0,m.k_)(t),i._featureFetcher.refresh(),J})()}whenNotUpdating(e,t){var i=this;return(0,I.Z)(function*(){return yield i._updatingHandles.addPromise(i._whenSetup.promise),(0,m.k_)(t),yield(0,M.N1)(()=>!i.updatingExcludingEdits,t),(0,m.k_)(t),J})()}getDebugInfo(e,t){var i=this;return(0,I.Z)(function*(){return(0,m.k_)(t),{result:i._featureFetcher.debugInfo}})()}beginApplyEdits(e,t){var i=this;return(0,I.Z)(function*(){i._updatingHandles.addPromise(i._whenSetup.promise),(0,m.k_)(t);const s=(0,m.dD)();return i._pendingApplyEdits.set(e.id,s),i._featureFetcher.applyEdits(s.promise),i._editsUpdatingHandles.addPromise(s.promise),J})()}endApplyEdits(e,t){var i=this;return(0,I.Z)(function*(){const s=i._pendingApplyEdits.get(e.id);return s&&s.resolve(e.edits),(0,m.k_)(t),J})()}notifyElevationSourceChange(e,t){var i=this;return(0,I.Z)(function*(){return i._elevationAligner.notifyElevationSourceChange(),J})()}notifySymbologyChange(e,t){return(0,I.Z)(function*(){return J})()}setSymbologySnappingSupported(e){var t=this;return(0,I.Z)(function*(){return t._symbologyCandidatesFetcher=(0,te.k)(e,t._getSymbologyCandidates),J})()}_updateFeatureFetcherConfiguration(e){this._featureFetcher.filter=(0,p.pC)(e.filter)?Y.Z.fromJSON(e.filter):null,this._featureFetcher.customParameters=e.customParameters}_notifyUpdating(){this.emit("notify-updating",{updating:this.updating})}};(0,E._)([(0,C.Cb)({readOnly:!0})],k.prototype,"updating",null),(0,E._)([(0,C.Cb)({readOnly:!0})],k.prototype,"updatingExcludingEdits",null),(0,E._)([(0,C.Cb)()],k.prototype,"_isInitializing",void 0),k=(0,E._)([(0,S.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceSnappingSourceWorker")],k);const Ee=k,J={result:{}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6373.eae9286cd4b665bf.js b/apps/n/porrtal-io-app/public/angular/6373.eae9286cd4b665bf.js deleted file mode 100644 index 5cb14dc0..00000000 --- a/apps/n/porrtal-io-app/public/angular/6373.eae9286cd4b665bf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6373],{19702:(I,c,e)=>{e.d(c,{A:()=>h});var _=e(15861),d=e(17626),v=e(54024),p=e(10699),E=e(32917),M=e(77712),o=(e(85931),e(90912),e(76898)),P=e(36947);const h=u=>{let t=class extends u{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(r){super.postscript(r),(0,P.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var r=this;return(0,_.Z)(function*(){const s=new AbortController,l=s.signal;r.handles.add((0,v.kB)(()=>s.abort())),yield(0,E.N1)(()=>r.view.defaultsFromMap?.heightModelInfoReady,l),(0,p.k_)(l);const O=(0,P.Wt)(r.layer,r.view.heightModelInfo,r.supportsHeightUnitConversion);if(O)throw O})()}canResume(){const r=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!r||!r.minScale||!r.maxScale||r.minScale>=r.maxScale)}getSuspendInfo(){const r=super.getSuspendInfo(),s=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return s&&s.minScale&&s.maxScale&&s.minScale{e.r(c),e.d(c,{default:()=>O});var _=e(15861),d=e(17626),v=e(46160),p=e(63290),E=e(62208),M=e(32917),y=e(77712),P=(e(85931),e(90912),e(76898)),h=e(72469),u=e(19702),t=e(50916),r=e(45611),s=e(94421);let l=class extends((0,s.Z)((0,t.r)((0,u.A)(r.Z)))){constructor(){super(...arguments),this.type="wmts-3d"}get hasMixedImageFormats(){return!0}_getCompatibleTileInfoMatrixSet(a,i=!1){const n=(0,h.mt)(this.layer);if((0,E.pC)(n)){if(v.Z.isCollection(n))return n.find(f=>{const g=a(f);return(0,E.pC)(g)&&(i?p.Z.getLogger(this.declaredClass).error("The selected tile matrix set is not compatible with the view",g):this.addResolvingPromise(Promise.reject(g))),null==g});const C=a(n);return(0,E.pC)(C)&&(i?p.Z.getLogger(this.declaredClass).error("The selected tile matrix set is not compatible with the view",C):this.addResolvingPromise(Promise.reject(C))),n}return null}initialize(){this._getCompatibleTileInfoMatrixSet(i=>this._getTileInfoSupportError(i.tileInfo,i.fullExtent));const a=(0,M.N1)(()=>this.view?.basemapTerrain?.tilingSchemeLocked).then(()=>{const i=this._getCompatibleTileInfoMatrixSet(n=>this._getTileInfoSupportError(n.tileInfo,n.fullExtent)||this._getTileInfoCompatibilityError(n.tileInfo,this.view.basemapTerrain.tilingScheme));(0,E.Wi)(i)||(this.layer.activeLayer.tileMatrixSetId!==i.id&&(this.layer.activeLayer.tileMatrixSetId=i.id),this.tileInfo=i.tileInfo,this.layer.fullExtent=i.fullExtent)});this.addResolvingPromise(a),this.when(()=>this._postInitialize())}refresh(){this.emit("data-changed")}canResume(){if(!super.canResume())return!1;const a=this.layer.activeLayer.tileMatrixSet;return a&&!this._getTileInfoError(a.tileInfo,a.fullExtent)}doRefresh(){var a=this;return(0,_.Z)(function*(){a.suspended||a.emit("data-changed")})()}_postInitialize(){this.updatingHandles.add(()=>this.layer?.activeLayer?.styleId,()=>this.refresh()),this.updatingHandles.add(()=>this.layer?.activeLayer,a=>{const i=this._getCompatibleTileInfoMatrixSet(n=>this._getTileInfoSupportError(n.tileInfo,n.fullExtent)||this._getTileInfoCompatibilityError(n.tileInfo,this.view.basemapTerrain.tilingScheme),!0);(0,E.pC)(i)&&a.tileMatrixSetId!==i.id&&(this.layer.activeLayer.tileMatrixSetId=i.id),this.notifyChange("suspended"),this.canResume()&&this.refresh()})}_getTileInfoError(a,i){return this._getTileInfoSupportError(a,i)||this._getTileInfoCompatibilityError(a,this.view.basemapTerrain.tilingScheme)}};(0,d._)([(0,y.Cb)({readOnly:!0})],l.prototype,"hasMixedImageFormats",null),(0,d._)([(0,y.Cb)()],l.prototype,"layer",void 0),(0,d._)([(0,y.Cb)()],l.prototype,"suspended",void 0),l=(0,d._)([(0,P.j)("esri.views.3d.layers.WMTSLayerView3d")],l);const O=l},45611:(I,c,e)=>{e.d(c,{Z:()=>r});var _=e(17626),d=e(14517),v=e(61885),p=e(80542),E=e(61996),M=e(63290),y=e(62208),D=e(60330),o=e(77712),u=(e(85931),e(90912),e(76898));let t=class extends((0,p.p)((0,E.IG)((0,D.v)(v.Z.EventedMixin(d.Z))))){constructor(s){super(s),this.layer=null,this.parent=null}initialize(){this.when().catch(s=>{if("layerview:create-error"!==s.name){const l=this.layer&&this.layer.id||"no id",O=this.layer&&this.layer.title||"no title";M.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${O}', id: '${l}')`,s)}})}get fullOpacity(){return(0,y.Pt)(this.get("layer.opacity"),1)*(0,y.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(s){this._overrideIfSome("visible",s)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const s=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(s.viewNotReady=!0),this.layer&&this.layer.loaded||(s.layerNotLoaded=!0),this.visible||(s.layerInvisible=!0),s}isUpdating(){return!1}};(0,_._)([(0,o.Cb)()],t.prototype,"fullOpacity",null),(0,_._)([(0,o.Cb)()],t.prototype,"layer",void 0),(0,_._)([(0,o.Cb)()],t.prototype,"parent",void 0),(0,_._)([(0,o.Cb)({readOnly:!0})],t.prototype,"suspended",null),(0,_._)([(0,o.Cb)({readOnly:!0})],t.prototype,"suspendInfo",null),(0,_._)([(0,o.Cb)({readOnly:!0})],t.prototype,"legendEnabled",null),(0,_._)([(0,o.Cb)({type:Boolean,readOnly:!0})],t.prototype,"updating",null),(0,_._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingProgress",null),(0,_._)([(0,o.Cb)()],t.prototype,"visible",null),(0,_._)([(0,o.Cb)()],t.prototype,"view",void 0),t=(0,_._)([(0,u.j)("esri.views.layers.LayerView")],t);const r=t},94421:(I,c,e)=>{e.d(c,{Z:()=>o});var _=e(17626),d=e(63290),v=e(10699),p=e(32917),E=e(77712),D=(e(85931),e(90912),e(76898));const o=P=>{let h=class extends P{initialize(){this.handles.add((0,p.on)(()=>this.layer,"refresh",u=>{this.doRefresh(u.dataChanged).catch(t=>{(0,v.D_)(t)||d.Z.getLogger(this.declaredClass).error(t)})}),"RefreshableLayerView")}};return(0,_._)([(0,E.Cb)()],h.prototype,"layer",void 0),h=(0,_._)([(0,D.j)("esri.layers.mixins.RefreshableLayerView")],h),h}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6402.385dd8f8ca73ce49.js b/apps/n/porrtal-io-app/public/angular/6402.385dd8f8ca73ce49.js deleted file mode 100644 index 52a5cd24..00000000 --- a/apps/n/porrtal-io-app/public/angular/6402.385dd8f8ca73ce49.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6402,7777,4766],{51819:(ne,L,_)=>{_.d(L,{RN:()=>Y,e9:()=>x,hU:()=>G,uu:()=>F});var a=_(91558),m=_(59318),y=_(85453);function v(f,C){const j=f.a*C;return(0,y.EX)(f)>225?new a.Z([0,0,0,j]):new a.Z([255,255,255,j])}function U(f,C){const j=new a.Z(f);return j.a*=C,j}function x(f=1){return U(m.Z.analysisTheme.accentColor,f)}function Y(f=1){return v(x(),f)}function F(f=1){return U(m.Z.analysisTheme.textColor,f)}function G(f=1){return v(F(),f)}},77777:(ne,L,_)=>{_.r(L),_.d(L,{hydratedAdapter:()=>x});var a=_(2004),m=_(72854),y=_(72642),v=_(37118),U=_(55214);const x={convertToGEGeometry:function Y(R,i){if(null==i)return null;let g="cache"in i?i.cache._geVersion:void 0;return null==g&&(g=R.convertJSONToGeometry(i),"cache"in i&&(i.cache._geVersion=g)),g},exportPoint:function F(R,i,g){const p=R.hasZ(i),w=R.hasM(i),W=new y.Z({x:R.getPointX(i),y:R.getPointY(i),spatialReference:g});return p&&(W.z=R.getPointZ(i)),w&&(W.m=R.getPointM(i)),W.cache._geVersion=i,W},exportPolygon:function G(R,i,g){const p=new v.Z({rings:R.exportPaths(i),hasZ:R.hasZ(i),hasM:R.hasM(i),spatialReference:g});return p.cache._geVersion=i,p},exportPolyline:function f(R,i,g){const p=new U.Z({paths:R.exportPaths(i),hasZ:R.hasZ(i),hasM:R.hasM(i),spatialReference:g});return p.cache._geVersion=i,p},exportMultipoint:function C(R,i,g){const p=new m.Z({hasZ:R.hasZ(i),hasM:R.hasM(i),points:R.exportPoints(i),spatialReference:g});return p.cache._geVersion=i,p},exportExtent:function j(R,i,g){const p=R.hasZ(i),w=R.hasM(i),W=new a.Z({xmin:R.getXMin(i),ymin:R.getYMin(i),xmax:R.getXMax(i),ymax:R.getYMax(i),spatialReference:g});if(p){const O=R.getZExtent(i);W.zmin=O.vmin,W.zmax=O.vmax}if(w){const O=R.getMExtent(i);W.mmin=O.vmin,W.mmax=O.vmax}return W.cache._geVersion=i,W}}},44766:(ne,L,_)=>{_.r(L),_.d(L,{buffer:()=>l,changeDefaultSpatialReferenceTolerance:()=>re,clearDefaultSpatialReferenceTolerance:()=>ee,clip:()=>U,contains:()=>Y,convexHull:()=>O,crosses:()=>F,cut:()=>x,densify:()=>H,difference:()=>N,disjoint:()=>i,distance:()=>G,equals:()=>f,extendedSpatialReferenceInfo:()=>v,flipHorizontal:()=>B,flipVertical:()=>S,generalize:()=>V,geodesicArea:()=>te,geodesicBuffer:()=>M,geodesicDensify:()=>K,geodesicLength:()=>k,intersect:()=>d,intersectLinesToPoints:()=>J,intersects:()=>C,isSimple:()=>w,nearestCoordinate:()=>A,nearestVertex:()=>b,nearestVertices:()=>P,offset:()=>T,overlaps:()=>g,planarArea:()=>X,planarLength:()=>$,relate:()=>p,rotate:()=>Z,simplify:()=>W,symmetricDifference:()=>Q,touches:()=>j,union:()=>E,within:()=>R});var a=_(4918),m=_(77777);function y(s){return Array.isArray(s)?s[0].spatialReference:s&&s.spatialReference}function v(s){return a.G.extendedSpatialReferenceInfo(s)}function U(s,u){return a.G.clip(m.hydratedAdapter,y(s),s,u)}function x(s,u){return a.G.cut(m.hydratedAdapter,y(s),s,u)}function Y(s,u){return a.G.contains(m.hydratedAdapter,y(s),s,u)}function F(s,u){return a.G.crosses(m.hydratedAdapter,y(s),s,u)}function G(s,u,D){return a.G.distance(m.hydratedAdapter,y(s),s,u,D)}function f(s,u){return a.G.equals(m.hydratedAdapter,y(s),s,u)}function C(s,u){return a.G.intersects(m.hydratedAdapter,y(s),s,u)}function j(s,u){return a.G.touches(m.hydratedAdapter,y(s),s,u)}function R(s,u){return a.G.within(m.hydratedAdapter,y(s),s,u)}function i(s,u){return a.G.disjoint(m.hydratedAdapter,y(s),s,u)}function g(s,u){return a.G.overlaps(m.hydratedAdapter,y(s),s,u)}function p(s,u,D){return a.G.relate(m.hydratedAdapter,y(s),s,u,D)}function w(s){return a.G.isSimple(m.hydratedAdapter,y(s),s)}function W(s){return a.G.simplify(m.hydratedAdapter,y(s),s)}function O(s,u=!1){return a.G.convexHull(m.hydratedAdapter,y(s),s,u)}function N(s,u){return a.G.difference(m.hydratedAdapter,y(s),s,u)}function Q(s,u){return a.G.symmetricDifference(m.hydratedAdapter,y(s),s,u)}function d(s,u){return a.G.intersect(m.hydratedAdapter,y(s),s,u)}function E(s,u=null){return a.G.union(m.hydratedAdapter,y(s),s,u)}function T(s,u,D,z,ie,q){return a.G.offset(m.hydratedAdapter,y(s),s,u,D,z,ie,q)}function l(s,u,D,z=!1){return a.G.buffer(m.hydratedAdapter,y(s),s,u,D,z)}function M(s,u,D,z,ie,q){return a.G.geodesicBuffer(m.hydratedAdapter,y(s),s,u,D,z,ie,q)}function A(s,u,D=!0){return a.G.nearestCoordinate(m.hydratedAdapter,y(s),s,u,D)}function b(s,u){return a.G.nearestVertex(m.hydratedAdapter,y(s),s,u)}function P(s,u,D,z){return a.G.nearestVertices(m.hydratedAdapter,y(s),s,u,D,z)}function I(s){return"xmin"in s?"center"in s?s.center:null:"x"in s?s:"extent"in s?s.extent?.center??null:null}function Z(s,u,D){if(null==s)throw new ae;const z=s.spatialReference;if(null==(D=D??I(s)))throw new ae;const ie=s.constructor.fromJSON(a.G.rotate(s,u,D));return ie.spatialReference=z,ie}function B(s,u){if(null==s)throw new ae;const D=s.spatialReference;if(null==(u=u??I(s)))throw new ae;const z=s.constructor.fromJSON(a.G.flipHorizontal(s,u));return z.spatialReference=D,z}function S(s,u){if(null==s)throw new ae;const D=s.spatialReference;if(null==(u=u??I(s)))throw new ae;const z=s.constructor.fromJSON(a.G.flipVertical(s,u));return z.spatialReference=D,z}function V(s,u,D,z){return a.G.generalize(m.hydratedAdapter,y(s),s,u,D,z)}function H(s,u,D){return a.G.densify(m.hydratedAdapter,y(s),s,u,D)}function K(s,u,D,z=0){return a.G.geodesicDensify(m.hydratedAdapter,y(s),s,u,D,z)}function X(s,u){return a.G.planarArea(m.hydratedAdapter,y(s),s,u)}function $(s,u){return a.G.planarLength(m.hydratedAdapter,y(s),s,u)}function te(s,u,D){return a.G.geodesicArea(m.hydratedAdapter,y(s),s,u,D)}function k(s,u,D){return a.G.geodesicLength(m.hydratedAdapter,y(s),s,u,D)}function J(s,u){return a.G.intersectLinesToPoints(m.hydratedAdapter,y(s),s,u)}function re(s,u){a.G.changeDefaultSpatialReferenceTolerance(s,u)}function ee(s){a.G.clearDefaultSpatialReferenceTolerance(s)}class ae extends Error{constructor(){super("Illegal Argument Exception")}}},10049:(ne,L,_)=>{_.d(L,{Gb:()=>p,Jf:()=>W,_q:()=>N,cA:()=>d}),_(29132);var m=_(26584),y=_(16730),v=_(37299),U=_(37053),G=(_(55214),_(37118),_(72642),_(65234));function f(l){if(!l)return null;if((0,U.sT)(l)&&l.wkid){const M=v.Dg[l.wkid];if(M)return M}if(l.wkt){const M=function C(l){const M=v.yB.exec(l);if(!M||2!==M.length)return null;const A=M[1].split(",");if(!A||A.length<3)return null;const b=parseFloat(A[1]),P=parseFloat(A[2]);return isNaN(b)||isNaN(P)?null:{a:b,f:0===P?0:1/P}}(l.wkt);if(M)return M}return null}function p(l){return null!==f(l)}function W(l,M="meters"){if(!l)throw new m.Z("geodesic-lengths:invalid-geometries","the input geometries type is not supported");if(l.some(b=>!p(b.spatialReference)))throw new m.Z("geodesic-lengths:invalid-spatial-reference","the input geometries spatial reference is not supported");const A=[];for(let b=0;b1e-12&&--_e>0);if(0===_e){const me=K,Ee=Math.acos(Math.sin(I)*Math.sin(B)+Math.cos(I)*Math.cos(B)*Math.cos(Z-P))*me,ge=Z-P,Me=Math.sin(ge)*Math.cos(B),ye=Math.cos(I)*Math.sin(B)-Math.sin(I)*Math.cos(B)*Math.cos(ge),ve=Math.atan2(Me,ye);return l.azimuth=ve/v.Yr,l.distance=Ee,l.reverseAzimuth=void 0,l}const ce=s*(S*S-V*V)/(V*V),ue=ce/1024*(256+ce*(ce*(74-47*ce)-128)),fe=V*(1+ce/16384*(4096+ce*(ce*(320-175*ce)-768)))*(ie-ue*u*(D+ue/4*(z*(2*D*D-1)-ue/6*D*(4*u*u-3)*(4*D*D-3)))),de=Math.atan2(ee*Math.sin(oe),J*re-k*ee*Math.cos(oe)),pe=Math.atan2(J*Math.sin(oe),J*re*Math.cos(oe)-k*ee);return l.azimuth=de/v.Yr,l.distance=fe,l.reverseAzimuth=pe/v.Yr,l}},39691:(ne,L,_)=>{_.d(L,{Y:()=>m});var a=_(16730);const m={readOnly:!0,get(){return(0,a.RG)(this.view)}}},60507:(ne,L,_)=>{_.d(L,{BK:()=>Q,Jn:()=>Y,RL:()=>G,VW:()=>x,W_:()=>W,jG:()=>O,tq:()=>p,vQ:()=>R,zx:()=>i});var a=_(62208),m=_(29505);function y(d){return d?O:N}function x(d,E){return function v(d,E){return(0,a.Wi)(E)||!E.mode?y(d).mode:E.mode}(!!(0,a.pC)(d)&&d.hasZ,E)}function Y(d,E){return function U(d,E){return(0,a.pC)(E)?E:y(d)}(!!(0,a.pC)(d)&&d.hasZ,E)}function G(d){const E=function C(d){return d.layer&&"elevationInfo"in d.layer?d.layer.elevationInfo:null}(d),T=x(d.geometry,E);return{mode:T,offset:(0,a.pC)(E)&&"on-the-ground"!==T?(0,a.Pt)(E.offset,0)*(0,m.Z7)((0,a.Pt)(E.unit,"meters")):0}}function R(d,E,T,l=null){return g(d,E.x,E.y,E.hasZ?E.z:0,E.spatialReference,T,l)}function i(d,E,T,l,M=null){return g(d,E[0],E[1],E.length>2?E[2]:0,T,l,M)}function g(d,E,T,l,M,A,b=null){if((0,a.Wi)(A))return;const P=(0,a.pC)(b)?b.mode:"absolute-height";if("on-the-ground"===P)return 0;const{absoluteZ:I}=p(E,T,l,M,d,A);return function w(d,E,T,l,M,A,b,P){const I=(0,a.pC)(b)&&(0,a.pC)(b.offset)?b.offset:0;switch(P){case"absolute-height":return d-I;case"relative-to-ground":return d-((0,a.Pt)(A.elevationProvider.getElevation(E,T,l,M,"ground"),0)+I);case"relative-to-scene":return d-((0,a.Pt)(A.elevationProvider.getElevation(E,T,l,M,"scene"),0)+I)}}(I,E,T,l,M,d,b,P)}function p(d,E,T,l,M,A){const b=(0,a.pC)(A.offset)?A.offset:0;switch(A.mode){case"absolute-height":return{absoluteZ:T+b,elevation:0};case"on-the-ground":{const P=(0,a.Pt)(M.elevationProvider.getElevation(d,E,0,l,"ground"),0);return{absoluteZ:P,elevation:P}}case"relative-to-ground":{const P=(0,a.Pt)(M.elevationProvider.getElevation(d,E,T,l,"ground"),0);return{absoluteZ:T+P+b,elevation:P}}case"relative-to-scene":{const P=(0,a.Pt)(M.elevationProvider.getElevation(d,E,T,l,"scene"),0);return{absoluteZ:T+P+b,elevation:P}}}}function W(d,E){if((0,a.Wi)(E))return!1;const{mode:T}=E;return(0,a.pC)(T)&&("scene"===d&&"relative-to-scene"===T||"ground"===d&&"absolute-height"!==T)}const O={mode:"absolute-height",offset:0},N={mode:"on-the-ground",offset:null};function Q(d,E){return d===E||(0,a.pC)(d)&&(0,a.pC)(E)&&d.mode===E.mode&&d.offset===E.offset}},1437:(ne,L,_)=>{_.d(L,{p:()=>G});var a=_(17626),m=_(54024),y=_(62208),v=_(60330),U=_(77712),F=(_(85931),_(90912),_(76898));const G=f=>{let C=class extends((0,v.v)(f)){constructor(){super(...arguments),this.parent=null,this._userInteractive=!1,this._interactiveViewModelCount=0}get interactive(){return this._interactiveViewModelCount>0||this._userInteractive}set interactive(j){this._userInteractive=j}get updating(){return!1}get visible(){return!(0,y.pC)(this.parent)||this.parent.visible&&!this.parent.suspended}set visible(j){this._overrideIfSome("visible",j)}forceInteractiveForViewModel(){return this._interactiveViewModelCount++,(0,m.kB)(()=>this._interactiveViewModelCount--)}};return(0,a._)([(0,U.Cb)({readOnly:!0})],C.prototype,"type",void 0),(0,a._)([(0,U.Cb)({constructOnly:!0})],C.prototype,"analysis",void 0),(0,a._)([(0,U.Cb)({constructOnly:!0})],C.prototype,"parent",void 0),(0,a._)([(0,U.Cb)({constructOnly:!0})],C.prototype,"view",void 0),(0,a._)([(0,U.Cb)({type:Boolean})],C.prototype,"interactive",null),(0,a._)([(0,U.Cb)()],C.prototype,"_userInteractive",void 0),(0,a._)([(0,U.Cb)({readOnly:!0})],C.prototype,"updating",null),(0,a._)([(0,U.Cb)()],C.prototype,"visible",null),(0,a._)([(0,U.Cb)()],C.prototype,"_interactiveViewModelCount",void 0),C=(0,a._)([(0,F.j)("esri.views.3d.analysis.AnalysisView3D")],C),C}},74554:(ne,L,_)=>{var a,m;_.d(L,{e:()=>a}),(m=a||(a={}))[m.Auto=0]="Auto",m[m.Euclidean=1]="Euclidean",m[m.Geodesic=2]="Geodesic"},68:(ne,L,_)=>{_.d(L,{D:()=>m});var a=_(16730);class m{constructor(v=null){this.spatialReference=v}get spatialReference(){return this._spatialReference}set spatialReference(v){v!==this._spatialReference&&(this._spatialReference=v,this._updateNormalizationFactors())}normalizeDistance(v){return v*this._metersPerDistanceUnit}normalizeElevation(v){return v*this._metersPerElevationUnit}normalizeArea(v){return v*this._squareMetersPerAreaUnit}_updateNormalizationFactors(){this._metersPerDistanceUnit=(0,a.c9)(this._spatialReference,1),this._metersPerElevationUnit=(0,a.c9)(this._spatialReference,1),this._squareMetersPerAreaUnit=this._metersPerDistanceUnit*this._metersPerDistanceUnit}}},54865:(ne,L,_)=>{_.d(L,{G:()=>v,e:()=>U});var a=_(62208),m=_(55915),y=_(53929);function v(x,Y,F,G=!1){const f=(0,m.fM)(x,Y);return(0,a.Wi)(f)?null:(f.hasZ&&!G||!(0,a.pC)(F)||(f.z=(0,a.Pt)((0,y.KO)(F,f),0)),f)}function U(x,Y,F){F.warnOnce(`Failed to project analysis geometry (id: '${x.id}'), projection from spatial reference (wkid: '${Y.wkid}') to view spatial reference is not supported. Projection may be possible after calling projection.load().`)}},495:(ne,L,_)=>{_.d(L,{H:()=>v,c:()=>U});var a=_(23841),m=_(67831),y=_(84161);function v(f,C){if((0,y.s)(C,0,0,0),f.length>0){for(let j=0;j{_.d(L,{r:()=>C});var a=_(62208),m=_(28347),y=_(43703),v=_(84161),U=_(28093),x=_(67709),Y=_(53928),F=_(79020),G=_(40723),f=_(92222);class C extends Y._{constructor(i,g){super(i),this._hasExternalMaterial=!1,this._renderOccluded=G.yD.OccludeAndTransparent,this._width=1,this._color=(0,x.f)(1,0,1,1),this._innerWidth=1,this._innerColor=null,this._stipplePattern=null,this._stippleOffColor=null,this._stipplePreferContinuous=!0,this._writeDepthEnabled=!0,this._falloff=0,this._polygonOffset=!1,this._material=g,this._hasExternalMaterial=(0,a.pC)(g),this.applyProps(i)}setGeometryFromRenderSpacePoint(i,g=1e3){const p=[];p.push([[i[0]-g,i[1]+0,i[2]+0],[i[0]+g,i[1]+0,i[2]+0]]),p.push([[i[0]-0,i[1]-g,i[2]+0],[i[0]+0,i[1]+g,i[2]+0]]),p.push([[i[0]-0,i[1]+0,i[2]-g],[i[0]+0,i[1]+0,i[2]+g]]),this.geometry=p}setGeometryFromExtent(i){const g=this.view.spatialReference,p=(0,U.c)(),w=(0,U.c)(),W=100,O=[];(0,v.s)(p,i[0],i[1],W),this.view.renderCoordsHelper.toRenderCoords(p,g,w),O.push([w[0],w[1],w[2]]),(0,v.s)(p,i[2],i[1],W),this.view.renderCoordsHelper.toRenderCoords(p,g,w),O.push([w[0],w[1],w[2]]),(0,v.s)(p,i[2],i[3],W),this.view.renderCoordsHelper.toRenderCoords(p,g,w),O.push([w[0],w[1],w[2]]),(0,v.s)(p,i[0],i[3],W),this.view.renderCoordsHelper.toRenderCoords(p,g,w),O.push([w[0],w[1],w[2]]),(0,v.s)(p,i[0],i[1],W),this.view.renderCoordsHelper.toRenderCoords(p,g,w),O.push([w[0],w[1],w[2]]),(0,v.s)(p,i[0],i[1],W),this.view.renderCoordsHelper.toRenderCoords(p,g,w),O.push([w[0],w[1],w[2]]),this.geometry=[O]}setGeometryFromFrustum(i){const g=[];i.lines.forEach(p=>{g.push([p.origin[0],p.origin[1],p.origin[2]]),g.push([p.endpoint[0],p.endpoint[1],p.endpoint[2]])}),this.geometry=[g]}setGeometryFromBoundedPlane(i){const g=[],p=i.origin,w=i.basis1,W=i.basis2,O=.5,N=(0,U.c)(),Q=(0,U.c)(),d=(0,U.c)(),E=(0,U.c)();N[0]=p[0]-w[0]*O-W[0]*O,N[1]=p[1]-w[1]*O-W[1]*O,N[2]=p[2]-w[2]*O-W[2]*O,Q[0]=p[0]-w[0]*O+W[0]*O,Q[1]=p[1]-w[1]*O+W[1]*O,Q[2]=p[2]-w[2]*O+W[2]*O,d[0]=p[0]+w[0]*O+W[0]*O,d[1]=p[1]+w[1]*O+W[1]*O,d[2]=p[2]+w[2]*O+W[2]*O,E[0]=p[0]+w[0]*O-W[0]*O,E[1]=p[1]+w[1]*O-W[1]*O,E[2]=p[2]+w[2]*O-W[2]*O,g.push([N[0],N[1],N[2]]),g.push([Q[0],Q[1],Q[2]]),g.push([d[0],d[1],d[2]]),g.push([E[0],E[1],E[2]]),g.push([N[0],N[1],N[2]]),this.geometry=[g]}setGeometryFromSegment(i){const g=i.endRenderSpace;this.transform=(0,m.f)(j,g);const{points:p}=i.createRenderGeometry(g,this.view.renderCoordsHelper);this.geometry=[p]}setGeometryFromSegments(i,g=U.Z){this.transform=(0,m.f)(j,g),this.geometry=i.map(p=>p.createRenderGeometry(g,this.view.renderCoordsHelper).points)}getTransformedGeometry(){return(0,a.Wi)(this._geometry)?null:this._geometry.map(i=>i.map(g=>(0,v.m)((0,U.c)(),g,this.transform)))}get renderOccluded(){return(0,a.pC)(this._material)?this._material.parameters.renderOccluded:this._renderOccluded}set renderOccluded(i){this._renderOccluded=i,(0,a.pC)(this._material)&&this._material.setParameters({renderOccluded:i})}get geometry(){return this._geometry}set geometry(i){this._geometry=i,this.recreateGeometry()}get width(){return(0,a.pC)(this._material)?this._material.parameters.width:this._width}set width(i){this._width=i,(0,a.pC)(this._material)&&this._material.setParameters({width:i})}get color(){return(0,a.pC)(this._material)?this._material.parameters.color:this._color}set color(i){this._color=(0,x.a)(i),(0,a.pC)(this._material)&&this._material.setParameters({color:this._color})}get innerWidth(){return(0,a.pC)(this._material)?this._material.parameters.innerWidth:this._innerWidth}set innerWidth(i){this._innerWidth=i,(0,a.pC)(this._material)&&this._material.setParameters({innerWidth:i})}get innerColor(){return(0,a.pC)(this._material)?this._material.parameters.innerColor:this._innerColor}set innerColor(i){this._innerColor=(0,a.pC)(i)?(0,x.a)(i):i,(0,a.pC)(this._material)&&this._material.setParameters({innerColor:this._innerColor})}get stipplePattern(){return(0,a.pC)(this._material)?this._material.parameters.stipplePattern:this._stipplePattern}set stipplePattern(i){this._stipplePattern=i,(0,a.pC)(this._material)&&this._material.setParameters({stipplePattern:i})}get stippleOffColor(){return(0,a.pC)(this._material)?this._material.parameters.stippleOffColor:this._stippleOffColor}set stippleOffColor(i){this._stippleOffColor=(0,a.pC)(i)?(0,x.a)(i):null,(0,a.pC)(this._material)&&this._material.setParameters({stippleOffColor:this._stippleOffColor})}get stipplePreferContinuous(){return(0,a.pC)(this._material)?this._material.parameters.stipplePreferContinuous:this._stipplePreferContinuous}set stipplePreferContinuous(i){this._stipplePreferContinuous=i,(0,a.pC)(this._material)&&this._material.setParameters({stipplePreferContinuous:i})}get writeDepthEnabled(){return(0,a.pC)(this._material)?this._material.parameters.writeDepth:this._writeDepthEnabled}set writeDepthEnabled(i){this._writeDepthEnabled=i,(0,a.pC)(this._material)&&this._material.setParameters({writeDepth:i})}get falloff(){return(0,a.pC)(this._material)?this._material.parameters.falloff:this._falloff}set falloff(i){this._falloff=i,(0,a.pC)(this._material)&&this._material.setParameters({falloff:i})}get polygonOffset(){return(0,a.pC)(this._material)?this._material.parameters.hasPolygonOffset:this._polygonOffset}set polygonOffset(i){this._polygonOffset=i,(0,a.pC)(this._material)&&this._material.setParameters({hasPolygonOffset:i})}createExternalResources(){this._hasExternalMaterial||(this._material=new f.U({width:this._width,color:this._color,stippleOffColor:this._stippleOffColor,stipplePattern:this._stipplePattern,stipplePreferContinuous:this._stipplePreferContinuous,isClosed:!1,falloff:this._falloff,innerColor:this._innerColor,innerWidth:this._innerWidth,hasPolygonOffset:this._polygonOffset,renderOccluded:this._renderOccluded,writeDepth:this._writeDepthEnabled}))}destroyExternalResources(){this._hasExternalMaterial||(this._material=null)}createGeometries(i){for(const g of(0,F.c0)(this.geometry)){const p=(0,F.YU)(g);i.addGeometry(p,(0,a.Wg)(this._material))}}forEachExternalMaterial(i){this._hasExternalMaterial||i((0,a.Wg)(this._material))}}const j=(0,y.c)()},53928:(ne,L,_)=>{_.d(L,{_:()=>F});var a=_(62208),m=_(28347),y=_(43703),v=_(68604),U=_(42743),x=_(96867),Y=_(34103);class F extends v.l{constructor(f){super(f.view),this._resources=null,this._transform=(0,y.c)()}get object(){return(0,a.pC)(this._resources)?this._resources.object:null}get transform(){return this._transform}set transform(f){(0,m.c)(this._transform,f),(0,a.pC)(this._resources)&&(this._resources.object.transformation=this._transform)}recreate(){this.attached&&this.createResources()}recreateGeometry(){if((0,a.Wi)(this._resources))return;const f=this._resources.object,C=this.view._stage;C.removeMany(f.geometries),f.removeAllGeometries(),this.createGeometries(f),this.visible||f.setVisible(this.visible),C.addMany(f.geometries)}createResources(){this.destroyResources();const f=this.view._stage;if(!f)return;const C=new Y.F({isPickable:!1,updatePolicy:U.jq.SYNC});f.add(C);const j=new x.T({castShadow:!1});j.transformation=this._transform,this.createExternalResources(),this.createGeometries(j),f.addMany(j.geometries),this.forEachExternalMaterial(R=>f.add(R)),f.add(j),C.add(j),this.visible||j.setVisible(!1),this._resources={layer:C,object:j}}destroyResources(){const f=this.view._stage;!(0,a.Wi)(this._resources)&&f&&(f.remove(this._resources.object),f.remove(this._resources.layer),this.forEachExternalMaterial(C=>{f.remove(C),C.dispose()}),f.removeMany(this._resources.object.geometries),this._resources.object.dispose(),this.destroyExternalResources(),this._resources=null)}updateVisibility(f){(0,a.Wi)(this._resources)||this._resources.object.setVisible(f)}}},68604:(ne,L,_)=>{_.d(L,{l:()=>m});var a=_(32917);class m{constructor(v){this._attached=!1,this._resourcesCreated=!1,this._visible=!0,this.view=v,this._handle=(0,a.YP)(()=>this.view.ready,U=>{this._resourcesCreated&&(U?this._createResources():this._destroyResources())})}applyProps(v){let U=!1;for(const x in v)x in this?"attached"===x?U=v[x]:this[x]=v[x]:console.error("Cannot set unknown property",x);this.attached=U}destroy(){this.attached=!1,this._handle.remove()}get attached(){return this._attached}set attached(v){v!==this._attached&&this.view._stage&&(this._attached=v,this._attached&&!this._resourcesCreated?this._createResources():!this._attached&&this._resourcesCreated&&this._destroyResources())}get visible(){return this._visible}set visible(v){v!==this._visible&&(this._visible=v,this.attached&&this.updateVisibility(v))}_createResources(){this.createResources(),this._resourcesCreated=!0,this.visible||this.updateVisibility(!1)}_destroyResources(){this.destroyResources(),this._resourcesCreated=!1}}},85453:(ne,L,_)=>{_.d(L,{EX:()=>F});var a=_(91558);function F(G){const{r:f,g:C,b:j}=function Y(G){let{r:f,g:C,b:j,a:R}=G;return R<1&&(f=Math.round(R*f+255*(1-R)),C=Math.round(R*C+255*(1-R)),j=Math.round(R*j+255*(1-R))),new a.Z({r:f,g:C,b:j})}(G);return.2126*f+.7152*C+.0722*j}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6445.97968aaf26403cfb.js b/apps/n/porrtal-io-app/public/angular/6445.97968aaf26403cfb.js deleted file mode 100644 index e99b8f2f..00000000 --- a/apps/n/porrtal-io-app/public/angular/6445.97968aaf26403cfb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6445],{10193:(Y,C,n)=>{n.r(C),n.d(C,{default:()=>Ot});var f=n(15861),p=n(17626),x=n(84792),M=n(59213),v=n(26584),L=n(58817),Z=n(62208),B=n(99959),T=n(10699),y=n(21726),h=n(77712),j=(n(90912),n(68653)),X=n(76898),V=n(99433),Q=n(2004),F=n(65234),H=n(44917),m=n(50085),I=n(5143),R=n(65088),at=n(552),ut=n(50107),pt=n(49286),ct=n(6647),yt=n(99555);let D=null;var ht=n(63290),_=n(55713);class q{constructor(e,r){this._spriteSource=e,this._maxTextureSize=r,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===e.type&&e.spriteFormat&&(this._spriteImageFormat=e.spriteFormat),e.pixelRatio&&(this.devicePixelRatio=e.pixelRatio),this.baseURL=e.spriteUrl}get spriteNames(){const e=[];for(const r in this._spritesData)e.push(r);return e.sort(),e}getSpriteInfo(e){return this._spritesData?this._spritesData[e]:null}load(e){var r=this;return(0,f.Z)(function*(){if(r.baseURL){r.loadStatus="loading";try{yield r._loadSprites(e),r.loadStatus="loaded"}catch{r.loadStatus="failed"}}else r.loadStatus="failed"})()}_loadSprites(e){var r=this;return(0,f.Z)(function*(){r._isRetina=r.devicePixelRatio>1.15;const{width:l,height:s,data:i,json:o}=yield r._getSpriteData(r._spriteSource,e),a=Object.keys(o);if(!a||0===a.length||!i)return r._spritesData=r.image=null,void(r.width=r.height=0);r._spritesData=o,r.width=l,r.height=s;const u=Math.max(r._maxTextureSize,4096);if(l>u||s>u){const g=`Sprite resource for style ${r.baseURL} is bigger than the maximum allowed of ${u} pixels}`;throw ht.Z.getLogger("esri.layers.support.SpriteSource").error(g),new v.Z("SpriteSource",g)}let c;for(let g=0;gr.data.index)),e._tileIndexPromise})()}dataKey(e,r){var l=this;return(0,f.Z)(function*(){const s=yield l.fetchTileIndex();return(0,T.k_)(r),l._getIndexedDataKey(s,e)})()}_getIndexedDataKey(e,r){const l=[r];if(r.level<0||r.row<0||r.col<0||r.row>>r.level>0||r.col>>r.level>0)return null;let s=r;for(;0!==s.level;)s=new rt.Z(s.level-1,s.row>>1,s.col>>1,s.world),l.push(s);let i,o,a=e,u=l.pop();if(1===a)return u;for(;l.length;)if(i=l.pop(),o=(1&i.col)+((1&i.row)<<1),a){if(0===a[o]){u=null;break}if(1===a[o]){u=i;break}u=i,a=a[o]}return u}}class St{constructor(e,r){this._tilemap=e,this._tileIndexUrl=r}fetchTileIndex(e){var r=this;return(0,f.Z)(function*(){return r._tileIndexPromise||(r._tileIndexPromise=(0,x.default)(r._tileIndexUrl,{query:{...e?.query}}).then(l=>l.data.index)),r._tileIndexPromise})()}dataKey(e,r){const{level:l,row:s,col:i}=e,o=new rt.Z(e);return this._tilemap.fetchAvailabilityUpsample(l,s,i,o,r).then(()=>(o.world=e.world,o)).catch(a=>{if((0,T.D_)(a))throw a;return null})}}const E=new Map;class xt{constructor(e,r,l){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.name=e,this.sourceUrl=r;const s=(0,y.mN)(this.sourceUrl),i=(0,L.d9)(l),o=i.tiles;if(s)for(let A=0;AA.toLowerCase().trim()),u=!0===l?.exportTilesAllowed,c=!0===a?.includes("tilemap"),g=u&&l.hasOwnProperty("maxExportTilesCount")?l.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:u,supportsTileMap:c},exportTiles:u?{maxExportTilesCount:+g}:null},this.tileInfo=(0,ft.d)(i.tileInfo,i,null,{ignoreMinMaxLOD:!0});const S=l.tileMap?(0,y.fl)((0,y.v_)(s.path,l.tileMap),s.query):null;c?(this.type="vector-tile",this.tilemap=new St(new mt.y({layer:{parsedUrl:s,tileInfo:this.tileInfo,type:"vector-tile",tileServers:this.tileServers}}),S)):S&&(this.tilemap=new gt(S)),this.fullExtent=Q.Z.fromJSON(l.fullExtent)}destroy(){}getRefKey(e,r){var l=this;return(0,f.Z)(function*(){return l.tilemap?.dataKey(e,r)??e})()}requestTile(e,r,l,s){return function vt(t,e,r,l,s){return function At(t,e){const r=E.get(t);if(r)return r.then(s=>(0,L.d9)(s));const l=(0,x.default)(t,{responseType:"array-buffer",...e}).then(({data:s})=>(E.delete(t),s)).catch(s=>{throw E.delete(t),s});return E.set(t,l),l}(t.replace(/\{z\}/gi,e.toString()).replace(/\{y\}/gi,r.toString()).replace(/\{x\}/gi,l.toString()),s)}(this.tileServers[r%this.tileServers.length],e,r,l,s)}isCompatibleWith(e){const r=this.tileInfo,l=e.tileInfo;if(!r.spatialReference.equals(l.spatialReference)||!r.origin.equals(l.origin)||Math.round(r.dpi)!==Math.round(l.dpi))return!1;const s=r.lods,i=l.lods,o=Math.min(s.length,i.length);for(let a=0;a=a&&o.push({level:c,scale:i,resolution:s}),s/=2,i/=2;for(const c of t.tiles)P(w(e,c));return{capabilities:"TilesOnly",initialExtent:r,fullExtent:r,minScale:0,maxScale:0,tiles:t.tiles,tileInfo:{rows:512,cols:512,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:o,spatialReference:{wkid:102100}}}}var Pt=n(88755),wt=n(24433),bt=n(29840);const N=1e-6;function Ct(t,e){if(t===e)return!0;if(null==t&&null!=e||null!=t&&null==e||null==t||null==e||!t.spatialReference.equals(e.spatialReference)||t.dpi!==e.dpi)return!1;const r=t.origin,l=e.origin;if(Math.abs(r.x-l.x)>=N||Math.abs(r.y-l.y)>=N)return!1;let s,i;t.lods[0].scale>e.lods[0].scale?(s=t,i=e):(i=t,s=e);for(let o=s.lods[0].scale;o>=i.lods[i.lods.length-1].scale-N;o/=2)if(Math.abs(o-i.lods[0].scale)e.lods[0].scale?t.lods[0]:e.lods[0],S=(t.lods[t.lods.length-1].scale<=e.lods[e.lods.length-1].scale?t.lods[t.lods.length-1]:e.lods[e.lods.length-1]).scale,A=[];let U=a.scale,ot=a.resolution,nt=0;for(;U>S;)A.push({level:nt,resolution:ot,scale:U}),nt++,U/=2,ot/=2;return new K.Z({size:[r,r],dpi:s,format:l||"pbf",origin:i,lods:A,spatialReference:o})}var Mt=n(78364),it=n(31637);let d=class extends((0,at.h)((0,yt.M)((0,I.Z)((0,R.Y)((0,pt.q)((0,ct.I)((0,ut.N)((0,m.V)((0,B.R)(H.Z)))))))))){constructor(...t){super(...t),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.style=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.type="vector-tile",this.url=null,this.showCollisionBoxes="none",this.path=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}destroy(){if(this.sourceNameToSource)for(const t of Object.values(this.sourceNameToSource))t?.destroy();this._spriteSourceMap.clear()}prefetchResources(t){var e=this;return(0,f.Z)(function*(){yield e.loadSpriteSource(globalThis.devicePixelRatio||1,t)})()}load(t){var e=this;const r=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},t).catch(T.r9).then((0,f.Z)(function*(){if(!e.portalItem||!e.portalItem.id)return;const l=`${e.portalItem.itemUrl}/resources/styles/root.json`;(yield(0,x.default)(l,{...t,query:{f:"json",...e.customParameters,token:e.apiKey}})).data&&e.read({url:l},(0,Pt.h)(e.portalItem))})).catch(T.r9).then(()=>this._loadStyle(t));return this.addResolvingPromise(r),Promise.resolve(this)}get attributionDataUrl(){const t=this.currentStyleInfo,e=t&&t.serviceUrl&&(0,y.mN)(t.serviceUrl);if(!e)return null;const r=this._getDefaultAttribution(e.path);return r?(0,y.fl)(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const t=this.primarySource;return t?t.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get parsedUrl(){return this.serviceUrl?(0,y.mN)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null}get spatialReference(){return this.tileInfo&&this.tileInfo.spatialReference||null}get styleUrl(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null}writeStyleUrl(t,e){t&&(0,y.oC)(t)&&(t=`https:${t}`);const r=(0,Z.Wg)((0,wt.a)(t));e.styleUrl=(0,bt.e)(t,r)}get tileInfo(){const t=[];for(const r in this.sourceNameToSource)t.push(this.sourceNameToSource[r]);let e=this.primarySource?.tileInfo||new K.Z;if(t.length>1)for(let r=0;r(r._spriteSourceMap.clear(),r._getSourceAndStyle(l,{signal:s})),e)),r._loadingTask.promise})()}getStyleLayerId(t){return this.styleRepository.getStyleLayerId(t)}getStyleLayerIndex(t){return this.styleRepository.getStyleLayerIndex(t)}getPaintProperties(t){return(0,L.d9)(this.styleRepository.getPaintProperties(t))}setPaintProperties(t,e){const r=this.styleRepository.isPainterDataDriven(t);this.styleRepository.setPaintProperties(t,e);const l=this.styleRepository.isPainterDataDriven(t);this.emit("paint-change",{layer:t,paint:e,isDataDriven:r||l})}getStyleLayer(t){return(0,L.d9)(this.styleRepository.getStyleLayer(t))}setStyleLayer(t,e){this.styleRepository.setStyleLayer(t,e),this.emit("style-layer-change",{layer:t,index:e})}deleteStyleLayer(t){this.styleRepository.deleteStyleLayer(t),this.emit("delete-style-layer",{layer:t})}getLayoutProperties(t){return(0,L.d9)(this.styleRepository.getLayoutProperties(t))}setLayoutProperties(t,e){this.styleRepository.setLayoutProperties(t,e),this.emit("layout-change",{layer:t,layout:e})}setStyleLayerVisibility(t,e){this.styleRepository.setStyleLayerVisibility(t,e),this.emit("style-layer-visibility-change",{layer:t,visibility:e})}getStyleLayerVisibility(t){return this.styleRepository.getStyleLayerVisibility(t)}write(t,e){return e?.origin&&!this.styleUrl?(e.messages&&e.messages.push(new v.Z("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(t,e)}getTileUrl(t,e,r){return null}_getSourceAndStyle(t,e){var r=this;return(0,f.Z)(function*(){if(!t)throw new Error("invalid style!");const l=yield function Ut(t,e){return $.apply(this,arguments)}(t,{...e,query:{...r.customParameters,token:r.apiKey}});"webp"===l.spriteFormat&&((yield function dt(t){if(D)return D;const e={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return D=new Promise(r=>{const l=new Image;l.onload=()=>{l.onload=l.onerror=null,r(l.width>0&&l.height>0)},l.onerror=()=>{l.onload=l.onerror=null,r(!1)},l.src="data:image/webp;base64,"+e[t]}),D}("lossy"))||(l.spriteFormat="png")),r._set("currentStyleInfo",{...l}),"string"==typeof t?(r.url=t,r.style=null):(r.url=null,r.style=t),r._set("sourceNameToSource",l.sourceNameToSource),r._set("primarySource",l.sourceNameToSource[l.primarySourceName]),r._set("styleRepository",new Mt.Z(l.style)),r.read(l.layerDefinition,{origin:"service"}),r.emit("load-style")})()}_getDefaultAttribution(t){const e=t.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i),r=["OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2"];if(!e)return;const l=e[2]&&e[2].toLowerCase();if(!l)return;const s=e[1]||"";for(const i of r)if(i.toLowerCase().includes(l))return(0,y.Fv)(`//static.arcgis.com/attribution/Vector${s}/${i}`)}_loadStyle(t){var e=this;return(0,f.Z)(function*(){return e._loadingTask?.promise??e.loadStyle(null,t)})()}};(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"attributionDataUrl",null),(0,p._)([(0,h.Cb)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,p._)([(0,h.Cb)({json:{read:!0,write:!0}})],d.prototype,"blendMode",void 0),(0,p._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"capabilities",null),(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"currentStyleInfo",void 0),(0,p._)([(0,h.Cb)({json:{read:!1},readOnly:!0,type:Q.Z})],d.prototype,"fullExtent",null),(0,p._)([(0,h.Cb)()],d.prototype,"style",void 0),(0,p._)([(0,h.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],d.prototype,"isReference",void 0),(0,p._)([(0,h.Cb)({type:["VectorTileLayer"]})],d.prototype,"operationalLayerType",void 0),(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"parsedUrl",null),(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"serviceUrl",null),(0,p._)([(0,h.Cb)({type:F.Z,readOnly:!0})],d.prototype,"spatialReference",null),(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"styleRepository",void 0),(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"sourceNameToSource",void 0),(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"primarySource",void 0),(0,p._)([(0,h.Cb)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],d.prototype,"styleUrl",null),(0,p._)([(0,V.c)(["portal-item","web-document"],"styleUrl")],d.prototype,"writeStyleUrl",null),(0,p._)([(0,h.Cb)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:K.Z})],d.prototype,"tileInfo",null),(0,p._)([(0,h.Cb)({json:{read:!1},readOnly:!0,value:"vector-tile"})],d.prototype,"type",void 0),(0,p._)([(0,h.Cb)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],d.prototype,"url",void 0),(0,p._)([(0,h.Cb)({readOnly:!0})],d.prototype,"version",void 0),(0,p._)([(0,j.r)("version",["version","currentVersion"])],d.prototype,"readVersion",null),(0,p._)([(0,h.Cb)({type:String})],d.prototype,"showCollisionBoxes",void 0),(0,p._)([(0,h.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],d.prototype,"path",void 0),d=(0,p._)([(0,X.j)("esri.layers.VectorTileLayer")],d);const Ot=d},88755:(Y,C,n)=>{n.d(C,{Y:()=>M,h:()=>x});var f=n(21726),p=n(84687);function x(v){return{origin:"portal-item",url:(0,f.mN)(v.itemUrl),portal:v.portal||p.Z.getDefault(),portalItem:v,readResourcePaths:[]}}function M(v){return{origin:"portal-item",messages:[],writtenProperties:[],url:v.itemUrl?(0,f.mN)(v.itemUrl):null,portal:v.portal||p.Z.getDefault(),portalItem:v}}},86575:(Y,C,n)=>{n.d(C,{B1:()=>f,DQ:()=>O,DT:()=>B,JJ:()=>p,Or:()=>j,_U:()=>x,k3:()=>V,sX:()=>F});const f=Number.POSITIVE_INFINITY,p=Math.PI,x=2*p,v=128/p,B=p/180,h=1/Math.LN2;function O(m,I){return(m%=I)>=0?m:m+I}function j(m){return O(m*v,256)}function V(m){return Math.log(m)*h}function F(m,I,R){return m*(1-R)+I*R}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6446.c6f2dfcdd9c34db0.js b/apps/n/porrtal-io-app/public/angular/6446.c6f2dfcdd9c34db0.js deleted file mode 100644 index 166cc021..00000000 --- a/apps/n/porrtal-io-app/public/angular/6446.c6f2dfcdd9c34db0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6446],{16446:(c,a,e)=>{e.r(a),e.d(a,{default:()=>n});var r=e(17626),s=e(26584),o=e(62208),i=e(77712),_=(e(85931),e(90912),e(76898)),l=e(55915),p=e(35560),y=e(50126);let t=class extends y.Z{constructor(){super(...arguments),this.type="feature-3d",this.direct3DObjectFeatureLayerDisplayEnabled=(0,p.hq)()}initialize(){"capabilities"in this.layer&&this.layer.capabilities.operations.supportsQuery||this.addResolvingPromise(Promise.reject(new s.Z("featurelayerview:query-not-supported","layer view requires a layer with query capability",{layer:this.layer}))),(0,o.pC)(this.layer.infoFor3D)&&(this.direct3DObjectFeatureLayerDisplayEnabled?this._set("suspendResumeExtentMode","computed"):this.addResolvingPromise(Promise.reject(new s.Z("featurelayerview3d:unsupported-geometry-type",`Unsupported geometry type ${this.layer.geometryType}`)))),"mesh"!==this.layer.geometryType||(0,l.Up)(this.layer.spatialReference,this.view.spatialReference)||this.addResolvingPromise(Promise.reject(new s.Z("layerview:spatial-reference-incompatible","The spatial references of the feature layer is incompatible with the spatial reference of the view")))}get featureSpatialReference(){return this.view.featureTiles?.tilingScheme?.spatialReference}};(0,r._)([(0,i.Cb)({constructOnly:!0})],t.prototype,"direct3DObjectFeatureLayerDisplayEnabled",void 0),(0,r._)([(0,i.Cb)()],t.prototype,"layer",void 0),t=(0,r._)([(0,_.j)("esri.views.3d.layers.FeatureLayerView3D")],t);const n=t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6455.fc5cbd489ff59276.js b/apps/n/porrtal-io-app/public/angular/6455.fc5cbd489ff59276.js deleted file mode 100644 index be7d6953..00000000 --- a/apps/n/porrtal-io-app/public/angular/6455.fc5cbd489ff59276.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6455],{16943:(St,X,f)=>{f.d(X,{Ue:()=>Yn});var j=f(26584),l=f(17626),F=f(62208),p=f(77712),C=(f(85931),f(90912),f(76898)),N=(f(63290),f(8314),f(86810));let H=class extends N.wq{constructor(){super(...arguments),this.raster=void 0}};(0,l._)([(0,p.Cb)({json:{write:!0}})],H.prototype,"raster",void 0),H=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.AspectFunctionArguments")],H);const O=H;var J;let Y=J=class extends O{clone(){return new J({raster:this.raster})}};Y=J=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.AspectFunctionArguments")],Y);const At=Y;var k=f(66656);let Z=class extends N.wq{constructor(){super(...arguments),this.functionArguments=null,this.readingBufferSize=0}bind(t,n=!1){const a=this._getRasterValues();for(let i=0;ithis._readRasterValue(a,t));return this._processPixels({...t,pixelBlocks:n})}getPrimaryRasters(){const t=[],n=[];return this._getPrimaryRasters(this,t,n),{rasters:t,rasterIds:n}}_getOutputPixelType(t){return"unknown"===this.outputPixelType?t:this.outputPixelType??t}_getRasterValues(){const{rasterArgumentNames:t}=this;return"rasters"===t[0]&&Array.isArray(this.functionArguments.rasters)?this.functionArguments.rasters:t.map(n=>this.functionArguments[n])}_getSourceRasterInfos(t){const n=this._getRasterValues(),{rasterInfos:a,rasterIds:i}=t;return n.map(o=>o&&"object"==typeof o&&"bind"in o&&o.rasterInfo?o.rasterInfo:"string"==typeof o&&i.includes(o)?a[i.indexOf(o)]:a[0])}_getPrimaryRasterId(t){return t?.url}_getPrimaryRasters(t,n=[],a=[]){for(let i=0;io),r}return t.process(n)}};(0,l._)([(0,p.Cb)({json:{write:!0}})],Z.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],Z.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],Z.prototype,"rasterArgumentNames",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}}),(0,k.p)(t=>t?.toLowerCase())],Z.prototype,"outputPixelType",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],Z.prototype,"mainPrimaryRasterId",void 0),(0,l._)([(0,p.Cb)()],Z.prototype,"sourceRasters",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],Z.prototype,"sourceRasterInfos",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],Z.prototype,"rasterInfo",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],Z.prototype,"readingBufferSize",void 0),Z=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.BaseRasterFunction")],Z);const m=Z;var w=f(67845);let S=class extends m{constructor(){super(...arguments),this.functionName="Aspect",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){const t=this.sourceRasterInfos[0];this.isGCS=t.spatialReference.isGeographic,this.outputPixelType=this._getOutputPixelType("f32");const n=t.clone();return n.pixelType=this.outputPixelType,n.statistics=null,n.histograms=null,this.rasterInfo=n,{success:!0}}_processPixels(t){const n=t.pixelBlocks?.[0];if((0,F.Wi)(n))return null;const{extent:a}=t;return(0,w.M_)(n,{resolution:a?{x:a.width/n.width,y:a.height/n.height}:{x:1,y:1}})}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],S.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:At,json:{write:!0,name:"rasterFunctionArguments"}})],S.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],S.prototype,"rasterArgumentNames",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],S.prototype,"isGCS",void 0),S=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.AspectFunction")],S);const A=S;var _=f(58817),v=f(55342),R=f(2076),y=f(25688);const M=new Set(["+","-","*","/","(",")"]);function et(t,n,a,i){if("number"==typeof a&&"number"==typeof i)return a+i;let o;if("number"==typeof a){o=i.length;const s=a;(a=new Float32Array(o)).fill(s)}else if(o=a.length,i.constructor===Number){const s=i;(i=new Float32Array(o)).fill(s)}const r=new Float32Array(o);switch(n){case"+":for(let s=0;s-1)a>0&&(o+=n+1);else{for(let s=0;s0&&(o+=n+1)}let r=0;for(let s=0;sh-1),{pixels:r,mask:s}=t;let e;switch(i){case"gndvi":case"nbr":case"ndbi":case"ndvi":case"ndvi-re":case"ndsi":case"ndmi":case"mndwi":e=Vt(s,r[o[0]],r[o[1]]);break;case"ndwi":e=Vt(s,r[o[1]],r[o[0]]);break;case"sr":case"sr-re":case"iron-oxide":case"ferrous-minerals":case"clay-minerals":e=function me(t,n,a){const i=a.length,o=new Float32Array(i);for(let r=0;r0;){const{numIndex:s,opIndex:e}=V(o);if(i=et(t,o[e],r[s],r[s+1]),1===o.length)break;o=D(o,e),r.splice(s,2,i)}return[i]}(s,r,a);break;default:return t}const u=(0,F.pC)(s)?new Uint8Array(s.length):null;(0,F.pC)(s)&&(0,F.pC)(u)&&u.set(s);const c=new y.Z({width:t.width,height:t.height,pixelType:"f32",pixels:e,mask:u});return c.updateStatistics(),c}function Vt(t,n,a){const i=a.length,o=new Float32Array(i);for(let r=0;rparseFloat(r)),equation:i})}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],pt.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:Te,json:{write:!0,name:"rasterFunctionArguments"}})],pt.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],pt.prototype,"rasterArgumentNames",void 0),pt=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.BandArithmeticFunction")],pt);const Ne=pt;var jt,Pe=f(68653),Gt=f(79023);let $=jt=class extends O{readColorRamp(t){return(0,Gt.i)(t)}clone(){return new jt({colormap:(0,_.d9)(this.colormap),colormapName:this.colormapName,colorRamp:this.colorRamp?.clone(),colorRampName:this.colorRampName})}};(0,l._)([(0,p.Cb)({type:[[Number]],json:{write:!0}})],$.prototype,"colormap",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],$.prototype,"colormapName",void 0),(0,l._)([(0,p.Cb)({types:Gt.V,json:{write:!0}})],$.prototype,"colorRamp",void 0),(0,l._)([(0,Pe.r)("colorRamp")],$.prototype,"readColorRamp",null),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],$.prototype,"colorRampName",void 0),$=jt=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.ColormapFunctionArguments")],$);const Be=$;var je=f(70208);let nt=class extends m{constructor(){super(...arguments),this.functionName="Colormap",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1)return{success:!1,error:"colormap-function: source data must be single band"};let{colormap:n,colorRamp:a}=this.functionArguments;if(n?.length||a&&(n=(0,je.XL)(a,256,!0)),!n?.length)return{success:!1,error:"colormap-function: missing colormap argument"};this.outputPixelType=this._getOutputPixelType("u8");const i=t.clone();return i.pixelType=this.outputPixelType,i.colormap=n,this.rasterInfo=i,{success:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],nt.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:Be,json:{write:!0,name:"rasterFunctionArguments"}})],nt.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],nt.prototype,"rasterArgumentNames",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],nt.prototype,"indexedColormap",void 0),nt=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.ColormapFunction")],nt);const Ie=nt;var Mt,It=f(99433);let Ct=Mt=class extends O{writeRasters(t,n){n.rasters=t.map(a=>"number"==typeof a||"string"==typeof a?a:a.toJSON())}clone(){return new Mt({rasters:(0,_.d9)(this.rasters)})}};(0,l._)([(0,p.Cb)({json:{write:!0}})],Ct.prototype,"rasters",void 0),(0,l._)([(0,It.c)("rasters")],Ct.prototype,"writeRasters",null),Ct=Mt=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.CompositeBandFunctionArguments")],Ct);const Me=Ct;let mt=class extends m{constructor(){super(...arguments),this.functionName="CompositeBand",this.functionArguments=null,this.rasterArgumentNames=["rasters"]}_bindSourceRasters(){const{sourceRasterInfos:t}=this,n=t[0];this.outputPixelType=this._getOutputPixelType(n.pixelType);const a=n.clone();if(a.attributeTable=null,a.colormap=null,a.pixelType=this.outputPixelType,a.bandCount=t.map(({bandCount:i})=>i).reduce((i,o)=>i+o),t.every(({statistics:i})=>(0,F.pC)(i)&&i.length)){const i=[];t.forEach(({statistics:o})=>(0,F.pC)(o)&&i.push(...o)),a.statistics=i}if(t.every(({histograms:i})=>(0,F.pC)(i)&&i.length)){const i=[];t.forEach(({histograms:o})=>(0,F.pC)(o)&&i.push(...o)),a.histograms=i}return this.rasterInfo=a,{success:!0}}_processPixels(t){const{pixelBlocks:n}=t;if(!n)return null;const a=n?.[0];return(0,F.Wi)(a)?null:(0,W.Gd)(n)}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],mt.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:Me,json:{write:!0,name:"rasterFunctionArguments"}})],mt.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],mt.prototype,"rasterArgumentNames",void 0),mt=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.CompositeBandFunction")],mt);const Re=mt;var b,t;(t=b||(b={}))[t.UserDefined=-1]="UserDefined",t[t.LineDetectionHorizontal=0]="LineDetectionHorizontal",t[t.LineDetectionVertical=1]="LineDetectionVertical",t[t.LineDetectionLeftDiagonal=2]="LineDetectionLeftDiagonal",t[t.LineDetectionRightDiagonal=3]="LineDetectionRightDiagonal",t[t.GradientNorth=4]="GradientNorth",t[t.GradientWest=5]="GradientWest",t[t.GradientEast=6]="GradientEast",t[t.GradientSouth=7]="GradientSouth",t[t.GradientNorthEast=8]="GradientNorthEast",t[t.GradientNorthWest=9]="GradientNorthWest",t[t.SmoothArithmeticMean=10]="SmoothArithmeticMean",t[t.Smoothing3x3=11]="Smoothing3x3",t[t.Smoothing5x5=12]="Smoothing5x5",t[t.Sharpening3x3=13]="Sharpening3x3",t[t.Sharpening5x5=14]="Sharpening5x5",t[t.Laplacian3x3=15]="Laplacian3x3",t[t.Laplacian5x5=16]="Laplacian5x5",t[t.SobelHorizontal=17]="SobelHorizontal",t[t.SobelVertical=18]="SobelVertical",t[t.Sharpen=19]="Sharpen",t[t.Sharpen2=20]="Sharpen2",t[t.PointSpread=21]="PointSpread",t[t.None=255]="None";const P=new Map;function Ht(t,n,a,i,o,r,s){const e=new Float32Array(n*a),u=r.length,c=s?0:i,h=s?i:0,d=s?1:n;for(let g=c;gs+e);return 0!==r&&1!==r&&(a=a.map(s=>s/r)),function Le(t,n){const a=function De(t){const n=Math.sqrt(t.length),a=t.slice(0,n),i=[1];for(let o=1;ou<0||u>=a))return{success:!1,error:"extract-band-function: invalid bandIDs"};this.outputPixelType=this._getOutputPixelType("f32");const r=n.clone();r.pixelType=this.outputPixelType;const{statistics:s,histograms:e}=r;return(0,F.pC)(s)&&s.length&&(r.statistics=i.map(u=>s[u]||s[s.length-1])),(0,F.pC)(e)&&e.length&&(r.histograms=i.map(u=>e[u]||e[e.length-1])),this.rasterInfo=r,{success:!0}}_processPixels(t){const n=t.pixelBlocks?.[0];if((0,F.Wi)(n))return null;const a=n.pixels.length,i=this.functionArguments.bandIDs.map(o=>o>=a?a-1:o);return n.extractBands(i)}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],ft.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:We,json:{write:!0,name:"rasterFunctionArguments"}})],ft.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],ft.prototype,"rasterArgumentNames",void 0),ft=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.ExtractBandFunction")],ft);const Ve=ft;var Et;let rt=Et=class extends O{constructor(){super(...arguments),this.rasters=[],this.processAsMultiband=!1}writeRasters(t,n){n.rasters=t.map(a=>"number"==typeof a||"string"==typeof a?a:a.toJSON())}clone(){return new Et({method:this.operation,processAsMultiband:this.processAsMultiband,rasters:(0,_.d9)(this.rasters)})}};(0,l._)([(0,p.Cb)({json:{write:!0}})],rt.prototype,"operation",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],rt.prototype,"rasters",void 0),(0,l._)([(0,It.c)("rasters")],rt.prototype,"writeRasters",null),(0,l._)([(0,p.Cb)({json:{write:!0}})],rt.prototype,"processAsMultiband",void 0),rt=Et=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.LocalFunctionArguments")],rt);const Ge=rt;var Nt;function ze(t,n,a){const[i,o]=t,r=i.length,s=y.Z.createEmptyBand(a,r);for(let e=0;e>o[e]);return s}function rn(t,n,a){const[i,o]=t,r=i.length,s=y.Z.createEmptyBand(a,r);for(let e=0;eo[e]?1:0);return s}function fn(t,n,a){const[i,o]=t,r=i.length,s=y.Z.createEmptyBand(a,r);for(let e=0;e=o[e]?1:0);return s}function dn(t,n,a){const[i,o]=t,r=i.length,s=y.Z.createEmptyBand(a,r);for(let e=0;ec[e]&&(s[e]=c[e])}return s}function Qt(t,n,a){const i=t.length;if(i<2)return t[0];const[o]=t,r=o.length,s=y.Z.createEmptyBand(a,r);s.set(o);for(let e=0;eh[e]&&(u=h[e])}s[e]-=u}return s}function qt(t,n,a){const i=t.length;if(i<2)return t[0];const[o]=t,r=o.length,s=y.Z.createEmptyBand(a,r);s.set(o);for(let e=0;ed&&(d=h,c=g);s[u]=c}return s}function re(t,n,a){const i=t.length;if(i<2)return t[0];const[o]=t,r=o.length,s=y.Z.createEmptyBand(a,r),e=new Map;for(let u=0;ur.bandCount!==a))return{success:!1,error:"local-function: input rasters do not have same band count"};this.outputPixelType=this._getOutputPixelType("f32");const o=n.clone();return o.pixelType=this.outputPixelType,o.statistics=null,o.histograms=null,i||(o.bandCount=1),this.rasterInfo=o,{success:!0}}_processPixels(t){const{pixelBlocks:n}=t;return(0,F.Wi)(n)||n.some(a=>(0,F.Wi)(a))?null:function Rn(t,n,a={}){!function Mn(){B.size||(B.set(4,Math.sqrt),B.set(6,Math.acos),B.set(7,Math.asin),B.set(8,Math.atan),B.set(9,Math.atanh),B.set(10,Math.abs),B.set(21,Math.cos),B.set(22,Math.cosh),B.set(25,Math.exp),B.set(30,Math.floor),B.set(35,Math.log),B.set(36,Math.log10),B.set(37,Math.log2),B.set(48,Math.floor),B.set(49,Math.ceil),B.set(51,Math.sin),B.set(52,Math.sinh),B.set(56,Math.tan),B.set(57,Math.tanh),B.set(59,Math.acosh),B.set(60,Math.asinh),B.set(65,Math.floor),Pt.set(5,Math.pow),Pt.set(61,Math.atan2),x.set(1,ze),x.set(2,Xe),x.set(3,Je),x.set(11,tn),x.set(12,Xt),x.set(12,Xt),x.set(13,en),x.set(14,nn),x.set(15,sn),x.set(16,rn),x.set(17,on),x.set(18,an),x.set(19,un),x.set(20,ln),x.set(23,Kt),x.set(24,cn),x.set(26,pn),x.set(27,mn),x.set(28,hn),x.set(29,fn),x.set(31,yn),x.set(32,Ke),x.set(33,dn),x.set(34,gn),x.set(44,_n),x.set(45,xn),x.set(46,An),x.set(64,Ye),x.set(65,$e),x.set(76,Cn),x.set(38,se),x.set(39,Yt),x.set(40,qt),x.set(41,ne),x.set(42,$t),x.set(43,re),x.set(47,Qt),x.set(54,ee),x.set(55,te),x.set(58,oe),x.set(66,Fn),x.set(67,Sn),x.set(68,Bn),x.set(69,jn),x.set(70,Tn),x.set(71,bn),x.set(72,In),x.set(73,Nn),x.set(74,Pn),x.set(75,wn))}();const i=(0,F.Wg)(function He(t){const n=t.map(s=>s.mask).filter(s=>(0,F.pC)(s));if(0===n.length)return null;const a=n[0].length,i=new Uint8Array(a);if(1===n.length)return i.set(n[0]),i;let o,r=n[0];for(let s=1;sT.pixels[h]);let g;if(n===Nt.SetNull){const T=vn(d,i,r);g=T.band,u=T.mask}else x.has(n)?g=x.get(n)(d,i,r):B.has(n)?g=Qe(d,i,r,B.get(n)):Pt.has(n)&&(g=qe(d,i,r,Pt.get(n)));if(null==g)return null;e.push(g)}u||n===Nt.IsNull||(u=i);const c=t[0];return new y.Z({width:c.width,height:c.height,pixelType:r,mask:u,pixels:e})}(n,this.functionArguments.operation,{processAsMultiband:this.functionArguments.processAsMultiband,outputPixelType:this.outputPixelType??void 0})}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],dt.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:Ge,json:{write:!0,name:"rasterFunctionArguments"}})],dt.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],dt.prototype,"rasterArgumentNames",void 0),dt=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.LocalFunction")],dt);const Dn=dt;var Ot;let gt=Ot=class extends O{constructor(){super(...arguments),this.includedRanges=null,this.noDataValues=null,this.noDataInterpretation=W.DX.matchAny}clone(){return new Ot({includedRanges:this.includedRanges?.slice()??[],noDataValues:this.noDataValues?.slice()??[],noDataInterpretation:this.noDataInterpretation})}};(0,l._)([(0,p.Cb)({json:{write:!0}})],gt.prototype,"includedRanges",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],gt.prototype,"noDataValues",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],gt.prototype,"noDataInterpretation",void 0),gt=Ot=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.MaskFunctionArguments")],gt);const En=gt;let ot=class extends m{constructor(){super(...arguments),this.functionName="Mask",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null}_bindSourceRasters(){const t=this.sourceRasterInfos[0].clone(),{pixelType:n}=t;this.outputPixelType=this._getOutputPixelType(n),t.pixelType=this.outputPixelType,this.rasterInfo=t;const{includedRanges:a,noDataValues:i}=this.functionArguments;return a?.length||i?.length?(this.lookup=(0,W.nA)(n,this.functionArguments.includedRanges,this.functionArguments.noDataValues),{success:!0}):{success:!1,error:"missing includedRanges or noDataValues argument"}}_processPixels(t){const n=t.pixelBlocks?.[0];if((0,F.Wi)(n))return null;const{outputPixelType:a,lookup:i}=this,{includedRanges:o,noDataValues:r,noDataInterpretation:s}=this.functionArguments;return(0,W.sS)(n,{includedRanges:o,noDataValues:r,outputPixelType:a,matchAll:s===W.DX.matchAll,lookup:i})}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],ot.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:En,json:{write:!0,name:"rasterFunctionArguments"}})],ot.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],ot.prototype,"rasterArgumentNames",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],ot.prototype,"lookup",void 0),ot=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.MaskFunction")],ot);const On=ot;var Ut;let yt=Ut=class extends O{constructor(){super(...arguments),this.visibleBandID=0,this.infraredBandID=1,this.scaled=!0}clone(){const{visibleBandID:t,infraredBandID:n,scaled:a}=this;return new Ut({visibleBandID:t,infraredBandID:n,scaled:a})}};(0,l._)([(0,p.Cb)({json:{write:!0}})],yt.prototype,"visibleBandID",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],yt.prototype,"infraredBandID",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],yt.prototype,"scaled",void 0),yt=Ut=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.NDVIFunctionArguments")],yt);const Un=yt;let _t=class extends m{constructor(){super(...arguments),this.functionName="NDVI",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const{scaled:t}=this.functionArguments;this.outputPixelType=this._getOutputPixelType(t?"u8":"f32");const n=this.sourceRasterInfos[0].clone();n.pixelType=this.outputPixelType,n.colormap=null,n.histograms=null;const[a,i,o,r]=t?[0,200,100,10]:[-1,1,0,.1];return n.statistics=[{min:a,max:i,avg:o,stddev:r}],this.rasterInfo=n,{success:!0}}_processPixels(t){const n=t.pixelBlocks?.[0];if((0,F.Wi)(n))return null;const{visibleBandID:a,infraredBandID:i,scaled:o}=this.functionArguments;return function pe(t,n,a,i){const{mask:o,pixels:r,width:s,height:e}=t,u=r[a],c=r[n],h=c.length,d=i?new Uint8Array(h):new Float32Array(h),g=i?100:1,T=i?100:0;for(let E=0;Eo[e]?o[e]:r,s=s>o[e]?s:o[e];for(let e=0;e({min:o,max:r,avg:s,stddev:e}))),this.rasterInfo=n,{success:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],ct.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:Hn,json:{write:!0,name:"rasterFunctionArguments"}})],ct.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],ct.prototype,"rasterArgumentNames",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],ct.prototype,"indexedColormap",void 0),ct=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.StatisticsHistogramsFunction")],ct);const zn=ct;var Wt;const Kn=new R.X({0:"none",3:"standard-deviation",4:"histogram-equalization",5:"min-max",6:"percent-clip",7:"sigmoid"},{useNumericKeys:!0});let U=Wt=class extends O{constructor(){super(...arguments),this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.histograms=null,this.statistics=null,this.stretchType="none",this.useGamma=!1}writeStatistics(t,n,a){t?.length&&(Array.isArray(t[0])||(t=t.map(i=>[i.min,i.max,i.avg,i.stddev])),n[a]=t)}clone(){return new Wt({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,_.d9)(this.statistics),gamma:(0,_.d9)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,histograms:(0,_.d9)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment,raster:this.raster})}};(0,l._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],U.prototype,"computeGamma",void 0),(0,l._)([(0,p.Cb)({type:Boolean,json:{name:"dra",write:!0}})],U.prototype,"dynamicRangeAdjustment",void 0),(0,l._)([(0,p.Cb)({type:[Number],json:{write:!0}})],U.prototype,"gamma",void 0),(0,l._)([(0,p.Cb)()],U.prototype,"histograms",void 0),(0,l._)([(0,p.Cb)({type:Number,json:{write:!0}})],U.prototype,"maxPercent",void 0),(0,l._)([(0,p.Cb)({type:Number,json:{write:!0}})],U.prototype,"minPercent",void 0),(0,l._)([(0,p.Cb)({type:Number,json:{write:!0}})],U.prototype,"numberOfStandardDeviations",void 0),(0,l._)([(0,p.Cb)({type:Number,json:{name:"max",write:!0}})],U.prototype,"outputMax",void 0),(0,l._)([(0,p.Cb)({type:Number,json:{name:"min",write:!0}})],U.prototype,"outputMin",void 0),(0,l._)([(0,p.Cb)({type:Number,json:{write:!0}})],U.prototype,"sigmoidStrengthLevel",void 0),(0,l._)([(0,p.Cb)({json:{type:[[Number]],write:!0}})],U.prototype,"statistics",void 0),(0,l._)([(0,It.c)("statistics")],U.prototype,"writeStatistics",null),(0,l._)([(0,v.J)(Kn)],U.prototype,"stretchType",void 0),(0,l._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],U.prototype,"useGamma",void 0),U=Wt=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.StretchFunctionArguments")],U);const Xn=U;var wt=f(17057);let Q=class extends m{constructor(){super(...arguments),this.functionName="Stretch",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null,this.cutOffs=null}_bindSourceRasters(){this.lookup=null,this.cutOffs=null;const t=this.sourceRasterInfos[0],{pixelType:n}=t,{functionArguments:a}=this,{dynamicRangeAdjustment:i,gamma:o,useGamma:r}=a;if(!i&&["u8","u16","s8","s16"].includes(n)){const e=(0,wt.AV)(a.toJSON(),{rasterInfo:t});this.lookup=(0,wt.hE)({pixelType:n,...e,gamma:r?o:null})}else i&&(this.cutOffs=(0,wt.AV)(a.toJSON(),{rasterInfo:t}));this.outputPixelType=this._getOutputPixelType(n);const s=t.clone();return s.pixelType=this.outputPixelType,s.statistics=null,s.histograms=null,"u8"===this.outputPixelType&&(s.keyProperties.DataType="processed"),this.rasterInfo=s,{success:!0}}_processPixels(t){const n=t.pixelBlocks?.[0];if((0,F.Wi)(n))return n;const{lookup:a}=this;if(a)return(0,W.XV)(n,{...a,outputPixelType:this.rasterInfo.pixelType});const{functionArguments:i}=this,o=this.cutOffs||(0,wt.AV)(i.toJSON(),{rasterInfo:this.sourceRasterInfos[0],pixelBlock:n});return(0,wt.dy)(n,{...o,gamma:i.useGamma?i.gamma:null,outputPixelType:this.outputPixelType})}};(0,l._)([(0,p.Cb)({json:{write:!0,name:"rasterFunction"}})],Q.prototype,"functionName",void 0),(0,l._)([(0,p.Cb)({type:Xn,json:{write:!0,name:"rasterFunctionArguments"}})],Q.prototype,"functionArguments",void 0),(0,l._)([(0,p.Cb)()],Q.prototype,"rasterArgumentNames",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],Q.prototype,"lookup",void 0),(0,l._)([(0,p.Cb)({json:{write:!0}})],Q.prototype,"cutOffs",void 0),Q=(0,l._)([(0,C.j)("esri.layers.support.rasterFunctions.StretchFunction")],Q);const Jn=Q,L=new Map;function Yn(t,n){if("rasterFunction"in t)return ie(t,n??{});throw new j.Z("raster-function-helper","unsupported raster function json.")}function ie(t,n){const{rasterFunction:a,rasterFunctionArguments:i}=t,o=t.outputPixelType?.toLowerCase();if(null==a||!L.has(a))throw new j.Z("raster-function-helper",`unsupported raster function: ${a}`);const r=L.get(a),s=("function"==typeof r.ctor?r.ctor:r.ctor.default).fromJSON({...t,outputPixelType:o}),{rasterArgumentNames:e}=s,u=[],c=function $n(t,n){return"rasters"===n[0]&&Array.isArray(t.rasters)?t.rasters:n.map(a=>t[a])}(i,e),h="rasters"===e[0],d=[];for(let g=0;g{f.d(X,{Z:()=>G});var j=f(17626),l=f(86810),F=f(77712),q=(f(85931),f(90912),f(76898));let C=class extends l.wq{get affectsPixelSize(){return!1}forwardTransform(K){return K}inverseTransform(K){return K}};(0,j._)([(0,F.Cb)()],C.prototype,"affectsPixelSize",null),(0,j._)([(0,F.Cb)({json:{write:!0}})],C.prototype,"spatialReference",void 0),C=(0,j._)([(0,q.j)("esri.layers.support.rasterTransforms.BaseRasterTransform")],C);const G=C},76671:(St,X,f)=>{f.d(X,{Z:()=>K});var j=f(17626),l=f(77712),xt=(f(85931),f(90912),f(55342)),q=f(76898),C=f(96504);let G=class extends C.Z{constructor(){super(...arguments),this.type="gcs-shift",this.tolerance=1e-8}forwardTransform(N){return"point"===(N=N.clone()).type?(N.x>180+this.tolerance&&(N.x-=360),N):(N.xmin>=180-this.tolerance?(N.xmax-=360,N.xmin-=360):N.xmax>180+this.tolerance&&(N.xmin=-180,N.xmax=180),N)}inverseTransform(N){return"point"===(N=N.clone()).type?(N.x<-this.tolerance&&(N.x+=360),N):(N.xmin<-this.tolerance&&(N.xmin+=360,N.xmax+=360),N)}};(0,j._)([(0,xt.J)({GCSShiftXform:"gcs-shift"})],G.prototype,"type",void 0),(0,j._)([(0,l.Cb)()],G.prototype,"tolerance",void 0),G=(0,j._)([(0,q.j)("esri.layers.support.rasterTransforms.GCSShiftTransform")],G);const K=G},85374:(St,X,f)=>{f.d(X,{Z:()=>Z});var j=f(17626),F=(f(29132),f(77712)),q=(f(85931),f(90912),f(55342)),C=f(68653),G=f(76898),K=f(99433),N=f(96504),H=f(72642),O=f(2004);function J(m,w,S){const{x:A,y:_}=w;if(S<2)return{x:m[0]+A*m[2]+_*m[4],y:m[1]+A*m[3]+_*m[5]};if(2===S){const V=A*A,Tt=_*_,W=A*_;return{x:m[0]+A*m[2]+_*m[4]+V*m[6]+W*m[8]+Tt*m[10],y:m[1]+A*m[3]+_*m[5]+V*m[7]+W*m[9]+Tt*m[11]}}const v=A*A,R=_*_,y=A*_,M=v*A,tt=v*_,et=A*R,D=_*R;return{x:m[0]+A*m[2]+_*m[4]+v*m[6]+y*m[8]+R*m[10]+M*m[12]+tt*m[14]+et*m[16]+D*m[18],y:m[1]+A*m[3]+_*m[5]+v*m[7]+y*m[9]+R*m[11]+M*m[13]+tt*m[15]+et*m[17]+D*m[19]}}function Y(m,w,S){const{xmin:A,ymin:_,xmax:v,ymax:R,spatialReference:y}=w;let M=[];if(S<2)M.push({x:A,y:R}),M.push({x:v,y:R}),M.push({x:A,y:_}),M.push({x:v,y:_});else{let D=10;for(let V=0;VJ(m,D,S));const tt=M.map(D=>D.x),et=M.map(D=>D.y);return new O.Z({xmin:Math.min.apply(null,tt),xmax:Math.max.apply(null,tt),ymin:Math.min.apply(null,et),ymax:Math.max.apply(null,et),spatialReference:y})}let k=class extends N.Z{constructor(){super(...arguments),this.polynomialOrder=1,this.type="polynomial"}readForwardCoefficients(m,w){const{coeffX:S,coeffY:A}=w;if(!S?.length||!A?.length||S.length!==A.length)return null;const _=[];for(let v=0;v0}forwardTransform(m){if("point"===m.type){const w=J(this.forwardCoefficients,m,this.polynomialOrder);return new H.Z({x:w.x,y:w.y,spatialReference:m.spatialReference})}return Y(this.forwardCoefficients,m,this.polynomialOrder)}inverseTransform(m){if("point"===m.type){const w=J(this.inverseCoefficients,m,this.polynomialOrder);return new H.Z({x:w.x,y:w.y,spatialReference:m.spatialReference})}return Y(this.inverseCoefficients,m,this.polynomialOrder)}};(0,j._)([(0,F.Cb)({json:{write:!0}})],k.prototype,"polynomialOrder",void 0),(0,j._)([(0,F.Cb)()],k.prototype,"forwardCoefficients",void 0),(0,j._)([(0,C.r)("forwardCoefficients",["coeffX","coeffY"])],k.prototype,"readForwardCoefficients",null),(0,j._)([(0,K.c)("forwardCoefficients")],k.prototype,"writeForwardCoefficients",null),(0,j._)([(0,F.Cb)({json:{write:!0}})],k.prototype,"inverseCoefficients",null),(0,j._)([(0,C.r)("inverseCoefficients",["inverseCoeffX","inverseCoeffY"])],k.prototype,"readInverseCoefficients",null),(0,j._)([(0,K.c)("inverseCoefficients")],k.prototype,"writeInverseCoefficients",null),(0,j._)([(0,F.Cb)()],k.prototype,"affectsPixelSize",null),(0,j._)([(0,q.J)({PolynomialXform:"polynomial"})],k.prototype,"type",void 0),k=(0,j._)([(0,G.j)("esri.layers.support.rasterTransforms.PolynomialTransform")],k);const Z=k},46572:(St,X,f)=>{f.d(X,{j:()=>k,c:()=>Z});var j=f(76671),l=f(17626),G=(f(63290),f(90912),f(85931),f(26584),f(8314),f(55342)),K=f(76898),N=f(96504);let H=class extends N.Z{constructor(){super(...arguments),this.type="identity"}};(0,l._)([(0,G.J)({IdentityXform:"identity"})],H.prototype,"type",void 0),H=(0,l._)([(0,K.j)("esri.layers.support.rasterTransforms.IdentityTransform")],H);const O=H;var J=f(85374);const Y={GCSShiftXform:j.Z,IdentityXform:O,PolynomialXform:J.Z},At=Object.keys(Y);function k(m){const w=m?.type;return!m||At.includes(w)}function Z(m){if(!m?.type)return null;const S=Y[m?.type];if(S){const A=new S;return A.read(m),A}return null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6560.aaa6aa3e13f0c6ca.js b/apps/n/porrtal-io-app/public/angular/6560.aaa6aa3e13f0c6ca.js deleted file mode 100644 index 300f7075..00000000 --- a/apps/n/porrtal-io-app/public/angular/6560.aaa6aa3e13f0c6ca.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6560],{36560:(b,s,_)=>{_.r(s),_.d(s,{i:()=>p});var d,h,r,u=_(1719),n={exports:{}};d=n,void 0!==(r=n.exports,Object.defineProperty(r,"__esModule",{value:!0}),h=void(r.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"M",_era_bc:"SM",A:"AM",P:"PM",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"Januari",February:"Februari",March:"Maret",April:"April",May:"Mei",June:"Juni",July:"Juli",August:"Agustus",September:"September",October:"Oktober",November:"November",December:"Desember",Jan:"Jan",Feb:"Feb",Mar:"Mar",Apr:"Apr","May(short)":"Mei",Jun:"Jun",Jul:"Jul",Aug:"Agu",Sep:"Sep",Oct:"Okt",Nov:"Nov",Dec:"Des",Sunday:"Minggu",Monday:"Senin",Tuesday:"Selasa",Wednesday:"Rabu",Thursday:"Kamis",Friday:"Jumat",Saturday:"Sabtu",Sun:"Min",Mon:"Sen",Tue:"Sel",Wed:"Rab",Thu:"Kam",Fri:"Jum",Sat:"Sab",_dateOrd:function(a){var e="th";if(a<11||a>13)switch(a%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Perkecil",Play:"Putar",Stop:"Hentikan",Legend:"Legenda","Click, tap or press ENTER to toggle":"Klik, ketuk atau tekan ENTER untuk beralih",Loading:"Memuat",Home:"Beranda",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"Peta","Press ENTER to zoom in":"Tekan ENTER untuk memperbesar","Press ENTER to zoom out":"Tekan ENTER untuk memperkecil","Use arrow keys to zoom in and out":"Gunakan tombol panah untuk memperbesar dan memperkecil","Use plus and minus keys on your keyboard to zoom in and out":"Gunakan tombol plus dan minus pada keyboard Anda untuk memperbesar dan memperkecil",Export:"Cetak",Image:"Gambar",Data:"Data",Print:"Cetak","Click, tap or press ENTER to open":"Klik, ketuk atau tekan ENTER untuk membuka","Click, tap or press ENTER to print.":"Klik, ketuk atau tekan ENTER untuk mencetak","Click, tap or press ENTER to export as %1.":"Klik, ketuk atau tekan ENTER untuk mengekspor sebagai %1",'To save the image, right-click this link and choose "Save picture as..."':'Untuk menyimpan gambar, klik kanan tautan ini dan pilih "Simpan gambar sebagai"','To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"Tekan ESC untuk menutup pesan ini","Image Export Complete":"Ekspor gambar selesai","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Dari %1 ke %2","From %1":"Dari %1","To %1":"Ke %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(d.exports=h);const p=function c(o,r){for(var a=0;ae[t]})}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,u.g)(n.exports)},[n.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6625.134e651f39c74515.js b/apps/n/porrtal-io-app/public/angular/6625.134e651f39c74515.js deleted file mode 100644 index f386865e..00000000 --- a/apps/n/porrtal-io-app/public/angular/6625.134e651f39c74515.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6625],{76625:(M,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(67831),_(99770),_(78925),_(10109),_(95285),_(69960),_(65787),_(17625),_(22355),_(85930),_(16396),_(57008),_(98828),_(72175),_(98412),_(73105),_(10967),_(82716),_(69276);var E=_(71964)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6651.572aa065f5dc88db.js b/apps/n/porrtal-io-app/public/angular/6651.572aa065f5dc88db.js deleted file mode 100644 index cd94bdfc..00000000 --- a/apps/n/porrtal-io-app/public/angular/6651.572aa065f5dc88db.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6651],{36651:(y,s,n)=>{n.r(s),n.d(s,{j:()=>f});var u,h,_,d=n(1719),t={exports:{}};u=t,void 0!==(_=t.exports,Object.defineProperty(_,"__esModule",{value:!0}),h=void(_.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u897f\u66a6",_era_bc:"\u7d00\u5143\u524d",A:"\u5348\u524d",P:"\u5348\u5f8c",AM:"\u5348\u524d",PM:"\u5348\u5f8c","A.M.":"\u5348\u524d","P.M.":"\u5348\u5f8c",January:"1\u6708",February:"2\u6708",March:"3\u6708",April:"4\u6708",May:"5\u6708",June:"6\u6708",July:"7\u6708",August:"8\u6708",September:"9\u6708",October:"10\u6708",November:"11\u6708",December:"12\u6708",Jan:"1\u6708",Feb:"2\u6708",Mar:"3\u6708",Apr:"4\u6708","May(short)":"5\u6708",Jun:"6\u6708",Jul:"7\u6708",Aug:"8\u6708",Sep:"9\u6708",Oct:"10\u6708",Nov:"11\u6708",Dec:"12\u6708",Sunday:"\u65e5\u66dc\u65e5",Monday:"\u6708\u66dc\u65e5",Tuesday:"\u706b\u66dc\u65e5",Wednesday:"\u6c34\u66dc\u65e5",Thursday:"\u6728\u66dc\u65e5",Friday:"\u91d1\u66dc\u65e5",Saturday:"\u571f\u66dc\u65e5",Sun:"\u65e5",Mon:"\u6708",Tue:"\u706b",Wed:"\u6c34",Thu:"\u6728",Fri:"\u91d1",Sat:"\u571f",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"\u30ba\u30fc\u30e0",Play:"\u518d\u751f",Stop:"\u505c\u6b62",Legend:"\u51e1\u4f8b","Click, tap or press ENTER to toggle":"",Loading:"\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059",Home:"\u30db\u30fc\u30e0",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u5370\u5237",Image:"\u30a4\u30e1\u30fc\u30b8",Data:"\u30c7\u30fc\u30bf",Print:"\u5370\u5237","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u59cb\u70b9 %1 \u7d42\u70b9 %2","From %1":"\u59cb\u70b9 %1","To %1":"\u7d42\u70b9 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(a,_){for(var r=0;r<_.length;r++){const e=_[r];if("string"!=typeof e&&!Array.isArray(e))for(const o in e)if("default"!==o&&!(o in a)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6681.d031e0aff49f3125.js b/apps/n/porrtal-io-app/public/angular/6681.d031e0aff49f3125.js deleted file mode 100644 index a433ec4b..00000000 --- a/apps/n/porrtal-io-app/public/angular/6681.d031e0aff49f3125.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6681],{86681:(_,d,s)=>{s.r(d),s.d(d,{p:()=>S});var m,c,e,u=s(1719),r={exports:{}};m=r,void 0!==(e=r.exports,Object.defineProperty(e,"__esModule",{value:!0}),c=void(e.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"DC",_era_bc:"AC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Janeiro",February:"Fevereiro",March:"Mar\xe7o",April:"Abril",May:"Maio",June:"Junho",July:"Julho",August:"Agosto",September:"Setembro",October:"Outubro",November:"Novembro",December:"Dezembro",Jan:"Jan",Feb:"Fev",Mar:"Mar",Apr:"Abr","May(short)":"Mai",Jun:"Jun",Jul:"Jul",Aug:"Ago",Sep:"Set",Oct:"Out",Nov:"Nov",Dec:"Dez",Sunday:"Domingo",Monday:"Segunda-feira",Tuesday:"Ter\xe7a-feira",Wednesday:"Quarta-feira",Thursday:"Quinta-feira",Friday:"Sexta-feira",Saturday:"S\xe1bado",Sun:"Dom",Mon:"Seg",Tue:"Ter",Wed:"Qua",Thu:"Qui",Fri:"Sex",Sat:"S\xe1b",_dateOrd:function(i){return"\xba"},"Zoom Out":"Reduzir Zoom",Play:"Play",Stop:"Parar",Legend:"Legenda","Click, tap or press ENTER to toggle":"Clique, toque ou pressione ENTER para alternar",Loading:"Carregando",Home:"In\xedcio",Chart:"Gr\xe1fico","Serial chart":"Gr\xe1fico Serial","X/Y chart":"Gr\xe1fico XY","Pie chart":"Gr\xe1fico de Pizza","Gauge chart":"Gr\xe1fico Indicador","Radar chart":"Gr\xe1fico de Radar","Sankey diagram":"Diagrama Sankey","Chord diagram":"Diagram Chord","Flow diagram":"Diagrama Flow","TreeMap chart":"Gr\xe1fico de Mapa de \xc1rvore",Series:"S\xe9ries","Candlestick Series":"S\xe9ries do Candlestick","Column Series":"S\xe9ries de Colunas","Line Series":"S\xe9ries de Linhas","Pie Slice Series":"S\xe9ries de Fatias de Pizza","X/Y Series":"S\xe9ries de XY",Map:"Mapa","Press ENTER to zoom in":"Pressione ENTER para aumentar o zoom","Press ENTER to zoom out":"Pressione ENTER para diminuir o zoom","Use arrow keys to zoom in and out":"Use as setas para diminuir ou aumentar o zoom","Use plus and minus keys on your keyboard to zoom in and out":"Use as teclas mais ou menos no seu teclado para diminuir ou aumentar o zoom",Export:"Exportar",Image:"Imagem",Data:"Dados",Print:"Imprimir","Click, tap or press ENTER to open":"Clique, toque ou pressione ENTER para abrir","Click, tap or press ENTER to print.":"Clique, toque ou pressione ENTER para imprimir","Click, tap or press ENTER to export as %1.":"Clique, toque ou pressione ENTER para exportar como %1.",'To save the image, right-click this link and choose "Save picture as..."':'Para salvar a imagem, clique no link com o bot\xe3o da direira e escolha "Salvar imagem como..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Para salvar, clique na imagem \xe0 esquerda com o bot\xe3o direito e escolha "Salvar imagem como..."',"(Press ESC to close this message)":"(Pressione ESC para fechar esta mensagem)","Image Export Complete":"A exporta\xe7\xe3o da imagem foi completada","Export operation took longer than expected. Something might have gone wrong.":"A exporta\xe7\xe3o da imagem demorou mais do que o experado. Algo deve ter dado errado.","Saved from":"Salvo de",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"Use TAB para selecionar os bot\xf5es ou setas para a direita ou esquerda para mudar a sele\xe7\xe3o","Use left and right arrows to move selection":"Use as setas para a esquerda ou direita para mover a sele\xe7\xe3o","Use left and right arrows to move left selection":"Use as setas para a esquerda ou direita para mover a sele\xe7\xe3o da esquerda","Use left and right arrows to move right selection":"Use as setas para a esquerda ou direita para mover a sele\xe7\xe3o da direita","Use TAB select grip buttons or up and down arrows to change selection":"Use TAB para selecionar os bot\xf5es ou setas para cima ou para baixo para mudar a sele\xe7\xe3o","Use up and down arrows to move selection":"Use as setas para cima ou para baixo para mover a sele\xe7\xe3o","Use up and down arrows to move lower selection":"Use as setas para cima ou para baixo para mover a sele\xe7\xe3o de baixo","Use up and down arrows to move upper selection":"Use as setas para cima ou para baixo para mover a sele\xe7\xe3o de cima","From %1 to %2":"De %1 at\xe9 %2","From %1":"De %1","To %1":"At\xe9 %1","No parser available for file: %1":"N\xe3o h\xe1 um interpretador para este arquivo: %1","Error parsing file: %1":"Erro analizando o arquivo: %1","Unable to load file: %1":"O arquivo n\xe3o p\xf4de ser carregado: %1","Invalid date":"Data inv\xe1lida"}))&&(m.exports=c);const S=function g(t,e){for(var i=0;ia[o]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,u.g)(r.exports)},[r.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6713.ca34466a3c05d53b.js b/apps/n/porrtal-io-app/public/angular/6713.ca34466a3c05d53b.js deleted file mode 100644 index 150424d9..00000000 --- a/apps/n/porrtal-io-app/public/angular/6713.ca34466a3c05d53b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6713],{66713:(E,s,_)=>{_.r(s),_.d(s,{betaRayleigh:()=>a.b,build:()=>a.a}),_(28347),_(43703),_(28093),_(36603),_(47923),_(96896),_(31166),_(95285),_(97139),_(69960),_(65787),_(17625),_(63123),_(22355),_(35387),_(16396);var a=_(56598)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/676.34eef6437be03b0c.js b/apps/n/porrtal-io-app/public/angular/676.34eef6437be03b0c.js deleted file mode 100644 index 5d8a3c21..00000000 --- a/apps/n/porrtal-io-app/public/angular/676.34eef6437be03b0c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[676],{6189:(ne,O,s)=>{s.r(O),s.d(O,{default:()=>Te});var g=s(15861),t=s(17626),v=s(46160),R=s(46882),f=s(26584),u=s(58817),d=s(47877),p=s(63290),B=s(62208),N=s(99959),m=s(10699),T=s(21726),i=s(77712),w=(s(90912),s(68653)),o=s(76898),V=s(65234),b=s(44917),_=s(49410),S=s(20925),ae=s(50085),de=s(65088),ue=s(49286),pe=s(6647),ye=s(99555),K=s(10157),c=s(86810),ce=s(35948);s(85931);let A=class extends c.wq{constructor(){super(...arguments),this.type=null}};(0,t._)([(0,i.Cb)({type:String,readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),A=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterAuthoringInfo")],A);const ee=A;var W;let F=W=class extends c.wq{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new W({filterType:this.filterType,filterValues:(0,u.d9)(this.filterValues)})}};var D;(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],F.prototype,"filterType",void 0),(0,t._)([(0,i.Cb)({type:[String],json:{write:!0}})],F.prototype,"filterValues",void 0),F=W=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterAuthoringInfoType")],F);const ve=v.Z.ofType(F);let E=D=class extends c.wq{clone(){return new D({filterTypes:(0,u.d9)(this.filterTypes)})}};var J;(0,t._)([(0,i.Cb)({type:ve,json:{write:!0}})],E.prototype,"filterTypes",void 0),E=D=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],E);const fe=v.Z.ofType(E);let I=J=class extends ee{constructor(){super(...arguments),this.type="checkbox"}clone(){return new J({filterBlocks:(0,u.d9)(this.filterBlocks)})}};(0,t._)([(0,i.Cb)({type:["checkbox"]})],I.prototype,"type",void 0),(0,t._)([(0,i.Cb)({type:fe,json:{write:!0}})],I.prototype,"filterBlocks",void 0),I=J=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],I);const te=I;let M=class extends c.wq{};(0,t._)([(0,i.Cb)({readOnly:!0,json:{read:!1}})],M.prototype,"type",void 0),M=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterMode")],M);const Z=M;var G;let L=G=class extends Z{constructor(){super(...arguments),this.type="solid"}clone(){return new G}};(0,t._)([(0,i.Cb)({type:["solid"],readOnly:!0,json:{write:!0}})],L.prototype,"type",void 0),L=G=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterModeSolid")],L);const H=L;var X,me=s(55342),be=s(61261);let x=X=class extends Z{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new X({edges:(0,u.d9)(this.edges)})}};(0,t._)([(0,me.J)({wireFrame:"wire-frame"})],x.prototype,"type",void 0),(0,t._)([(0,i.Cb)(be.Z)],x.prototype,"edges",void 0),x=X=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterModeWireFrame")],x);const re=x;var z;let P=z=class extends Z{constructor(){super(...arguments),this.type="x-ray"}clone(){return new z}};(0,t._)([(0,i.Cb)({type:["x-ray"],readOnly:!0,json:{write:!0}})],P.prototype,"type",void 0),P=z=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterModeXRay")],P);const ie=P;var Q;const Se={nonNullable:!0,types:{key:"type",base:Z,typeMap:{solid:H,"wire-frame":re,"x-ray":ie}},json:{read:e=>{switch(e&&e.type){case"solid":return H.fromJSON(e);case"wireFrame":return re.fromJSON(e);case"x-ray":return ie.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let C=Q=class extends c.wq{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new H,this.title=""}clone(){return new Q({filterExpression:this.filterExpression,filterMode:(0,u.d9)(this.filterMode),title:this.title})}};var Y;(0,t._)([(0,i.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],C.prototype,"filterExpression",void 0),(0,t._)([(0,i.Cb)(Se)],C.prototype,"filterMode",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],C.prototype,"title",void 0),C=Q=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilterBlock")],C);const Be=v.Z.ofType(C);let h=Y=class extends c.wq{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,ce.D)(),this.name=null}clone(){return new Y({description:this.description,filterBlocks:(0,u.d9)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,u.d9)(this.filterAuthoringInfo)})}};(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,t._)([(0,i.Cb)({type:Be,json:{write:{enabled:!0,isRequired:!0}}})],h.prototype,"filterBlocks",void 0),(0,t._)([(0,i.Cb)({types:{key:"type",base:ee,typeMap:{checkbox:te}},json:{read:e=>"checkbox"===(e&&e.type)?te.fromJSON(e):null,write:!0}})],h.prototype,"filterAuthoringInfo",void 0),(0,t._)([(0,i.Cb)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],h.prototype,"id",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],h.prototype,"name",void 0),h=Y=(0,t._)([(0,o.j)("esri.layers.support.BuildingFilter")],h);const Fe=h;var Ie=s(84792),xe=s(47996),je=s(60330);let y=class extends c.wq{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,t._)([(0,i.Cb)({type:String})],y.prototype,"fieldName",void 0),(0,t._)([(0,i.Cb)({type:String})],y.prototype,"modelName",void 0),(0,t._)([(0,i.Cb)({type:String})],y.prototype,"label",void 0),(0,t._)([(0,i.Cb)({type:Number})],y.prototype,"min",void 0),(0,t._)([(0,i.Cb)({type:Number})],y.prototype,"max",void 0),(0,t._)([(0,i.Cb)({json:{read:e=>Array.isArray(e)&&(e.every(r=>"string"==typeof r)||e.every(r=>"number"==typeof r))?e.slice():null}})],y.prototype,"mostFrequentValues",void 0),(0,t._)([(0,i.Cb)({type:[Number]})],y.prototype,"subLayerIds",void 0),y=(0,t._)([(0,o.j)("esri.layers.support.BuildingFieldStatistics")],y);let j=class extends(xe.Z.LoadableMixin((0,je.v)(c.wq))){constructor(){super(...arguments),this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.Z.getLogger(this.declaredClass).error("building summary statistics are not loaded"),null)}load(e){const r=(0,B.pC)(e)?e.signal:null;return this.addResolvingPromise(this._fetchService(r)),Promise.resolve(this)}_fetchService(e){var r=this;return(0,g.Z)(function*(){const l=(yield(0,Ie.default)(r.url,{query:{f:"json"},responseType:"json",signal:e})).data;r.read(l,{origin:"service"})})()}};(0,t._)([(0,i.Cb)({constructOnly:!0,type:String})],j.prototype,"url",void 0),(0,t._)([(0,i.Cb)({readOnly:!0,type:[y],json:{read:{source:"summary"}}})],j.prototype,"fields",null),j=(0,t._)([(0,o.j)("esri.layers.support.BuildingSummaryStatistics")],j);const se=j;var $=s(13812),Oe=s(74711);const oe=v.Z.ofType(Fe),k=(0,u.d9)(S.Z.sublayersProperty);k.json.origins["web-scene"]={type:[_.Z],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},k.json.origins["portal-item"]={type:[_.Z],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}};let a=class extends((0,K.Vt)((0,de.Y)((0,ue.q)((0,pe.I)((0,ye.M)((0,N.R)((0,ae.V)(b.Z)))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new R.Z({getCollections:()=>[this.sublayers],getChildrenFunction:r=>"building-group"===r.type?r.sublayers:null}),this.sublayers=null,this._sublayerOverrides=null,this.filters=new oe,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,r,l){const n=S.Z.readSublayers(e,r,l);return S.Z.forEachSublayer(n,q=>q.layer=this),this._sublayerOverrides&&(this.applySublayerOverrides(n,this._sublayerOverrides),this._sublayerOverrides=null),n}applySublayerOverrides(e,{overrides:r,context:l}){S.Z.forEachSublayer(e,n=>n.read(r.get(n.id),l))}readSublayerOverrides(e,r){const l=new Map;for(const n of e)null!=n&&"object"==typeof n&&"number"==typeof n.id?l.set(n.id,n):r.messages?.push(new f.Z("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:n}));return{overrides:l,context:r}}writeSublayerOverrides(e,r,l){const n=[];S.Z.forEachSublayer(this.sublayers,q=>{const le=q.write({},l);Object.keys(le).length>1&&n.push(le)}),n.length>0&&(r.sublayers=n)}writeUnappliedOverrides(e,r){r.sublayers=[],e.overrides.forEach(l=>{r.sublayers.push((0,u.d9)(l))})}write(e,r){return e=super.write(e,r),!r||"web-scene"!==r.origin&&"portal-item"!==r.origin||(this.sublayers?this.writeSublayerOverrides(this.sublayers,e,r):this._sublayerOverrides&&this.writeUnappliedOverrides(this._sublayerOverrides,e)),e}read(e,r){if(super.read(e,r),r&&("web-scene"===r.origin||"portal-item"===r.origin)&&null!=e&&Array.isArray(e.sublayers)){const l=this.readSublayerOverrides(e.sublayers,r);this.sublayers?this.applySublayerOverrides(this.sublayers,l):this._sublayerOverrides=l}}readSummaryStatistics(e,r){if("string"==typeof r.statisticsHRef){const l=(0,T.v_)(this.parsedUrl?.path,r.statisticsHRef);return new se({url:l})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const r=(0,B.pC)(e)?e.signal:null,l=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(m.r9).then(()=>this._fetchService(r)).then(()=>this._fetchAssociatedFeatureService(r));return this.addResolvingPromise(l),Promise.resolve(this)}loadAll(){return(0,d.G)(this,e=>{S.Z.forEachSublayer(this.sublayers,r=>{"building-group"!==r.type&&e(r)}),this.summaryStatistics&&e(this.summaryStatistics)})}saveAs(e,r){var l=this;return(0,g.Z)(function*(){return l._debouncedSaveOperations(K.xp.SAVE_AS,{...r,getTypeKeywords:()=>l._getTypeKeywords(),portalItemLayerType:"building-scene"},e)})()}save(){var e=this;return(0,g.Z)(function*(){const r={getTypeKeywords:()=>e._getTypeKeywords(),portalItemLayerType:"building-scene"};return e._debouncedSaveOperations(K.xp.SAVE,r)})()}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new f.Z("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}_validateElevationInfo(){const e=this.elevationInfo;e&&("absolute-height"!==e.mode&&p.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Building scene layers only support absolute-height elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&p.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Building scene layers do not support featureExpressionInfo"))}_fetchAssociatedFeatureService(e){var r=this;return(0,g.Z)(function*(){const l=new Oe.W(r.parsedUrl,r.portalItem,r.apiKey,e);try{r.associatedFeatureServiceItem=yield l.fetchPortalItem()}catch(n){p.Z.getLogger(r.declaredClass).warn("Associated feature service item could not be loaded",n)}})()}};(0,t._)([(0,i.Cb)({type:["BuildingSceneLayer"]})],a.prototype,"operationalLayerType",void 0),(0,t._)([(0,i.Cb)({readOnly:!0})],a.prototype,"allSublayers",void 0),(0,t._)([(0,i.Cb)(k)],a.prototype,"sublayers",void 0),(0,t._)([(0,w.r)("service","sublayers")],a.prototype,"readSublayers",null),(0,t._)([(0,i.Cb)({type:oe,nonNullable:!0,json:{write:!0}})],a.prototype,"filters",void 0),(0,t._)([(0,i.Cb)({type:String,json:{write:!0}})],a.prototype,"activeFilterId",void 0),(0,t._)([(0,i.Cb)({readOnly:!0,type:se})],a.prototype,"summaryStatistics",void 0),(0,t._)([(0,w.r)("summaryStatistics",["statisticsHRef"])],a.prototype,"readSummaryStatistics",null),(0,t._)([(0,i.Cb)({type:[String],json:{read:!1}})],a.prototype,"outFields",void 0),(0,t._)([(0,i.Cb)($.vg)],a.prototype,"fullExtent",void 0),(0,t._)([(0,i.Cb)({type:["show","hide","hide-children"]})],a.prototype,"listMode",void 0),(0,t._)([(0,i.Cb)((0,$.Lx)(V.Z))],a.prototype,"spatialReference",void 0),(0,t._)([(0,i.Cb)($.PV)],a.prototype,"elevationInfo",null),(0,t._)([(0,i.Cb)({json:{read:!1},readOnly:!0})],a.prototype,"type",void 0),(0,t._)([(0,i.Cb)()],a.prototype,"associatedFeatureServiceItem",void 0),a=(0,t._)([(0,o.j)("esri.layers.BuildingSceneLayer")],a);const Te=a},10023:(ne,O,s)=>{s.d(O,{V:()=>u,e:()=>R});var g=s(15861),t=s(62208),v=s(36630);function R(d){return f.apply(this,arguments)}function f(){return(f=(0,g.Z)(function*(d,p=d.popupTemplate){if((0,t.Wi)(p))return[];const B=yield p.getRequiredFields(d.fieldsIndex),{lastEditInfoEnabled:N}=p,{objectIdField:m,typeIdField:T,globalIdField:i,relationships:U}=d;if(B.includes("*"))return["*"];const w=N?yield(0,v.CH)(d):[],o=(0,v.Q0)(d.fieldsIndex,[...B,...w]);return T&&o.push(T),o&&m&&d.fieldsIndex.has(m)&&!o.includes(m)&&o.push(m),o&&i&&d.fieldsIndex.has(i)&&!o.includes(i)&&o.push(i),U&&U.forEach(V=>{const{keyField:b}=V;o&&b&&d.fieldsIndex.has(b)&&!o.includes(b)&&o.push(b)}),o})).apply(this,arguments)}function u(d,p){return d.popupTemplate?d.popupTemplate:(0,t.pC)(p)&&p.defaultPopupTemplateEnabled&&(0,t.pC)(d.defaultPopupTemplate)?d.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6771.0b93bb257a48c583.js b/apps/n/porrtal-io-app/public/angular/6771.0b93bb257a48c583.js deleted file mode 100644 index 4f8a5a5f..00000000 --- a/apps/n/porrtal-io-app/public/angular/6771.0b93bb257a48c583.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6771],{46771:(a,s,_)=>{_.r(s),_.d(s,{build:()=>E.b,calculateAnchorPosForRendering:()=>E.c}),_(67831),_(99770),_(4794),_(8782),_(13934),_(78925),_(23164),_(35283),_(97347),_(27776),_(62952),_(92836),_(33726),_(19278),_(71850),_(95285),_(69960),_(48565),_(65787),_(7090),_(17625),_(22355),_(35387),_(44835),_(16396),_(41857);var E=_(6467)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6777.bd0fbbde90b8817f.js b/apps/n/porrtal-io-app/public/angular/6777.bd0fbbde90b8817f.js deleted file mode 100644 index 474405ee..00000000 --- a/apps/n/porrtal-io-app/public/angular/6777.bd0fbbde90b8817f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6777],{26777:(a,s,_)=>{_.r(s),_.d(s,{build:()=>r.b,getOverlayNormalTexture:()=>r.g}),_(94425),_(75224),_(75550),_(35357),_(50574),_(52382),_(13934),_(78925),_(26859),_(36603),_(58173),_(21799),_(51040),_(54120),_(62952),_(47923),_(2122),_(29052),_(75819),_(13146),_(31166),_(10109),_(92724),_(37926),_(72968),_(30249),_(93609),_(22799),_(17625),_(22355),_(35387),_(44835);var r=_(15261)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6810.83b9c6e71fae7d02.js b/apps/n/porrtal-io-app/public/angular/6810.83b9c6e71fae7d02.js deleted file mode 100644 index e0168100..00000000 --- a/apps/n/porrtal-io-app/public/angular/6810.83b9c6e71fae7d02.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6810],{26810:(p,o,t)=>{t.r(o),t.d(o,{CalciteTooltip:()=>e,defineCustomElement:()=>a});var l=t(98792);const e=l.T,a=l.d}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6844.da2aef18a274b49c.js b/apps/n/porrtal-io-app/public/angular/6844.da2aef18a274b49c.js deleted file mode 100644 index b37aea06..00000000 --- a/apps/n/porrtal-io-app/public/angular/6844.da2aef18a274b49c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6844],{56844:(y,n,s)=>{s.r(n),s.d(n,{t:()=>f});var u,h,a,d=s(1719),t={exports:{}};u=t,void 0!==(a=t.exports,Object.defineProperty(a,"__esModule",{value:!0}),h=void(a.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:"%",_percentSuffix:null,_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"MS",_era_bc:"M\xd6",A:"\xf6\xf6",P:"\xf6s",AM:"\xd6\xd6",PM:"\xd6S","A.M.":"\xd6\xd6","P.M.":"\xd6S",January:"Ocak",February:"\u015eubat",March:"Mart",April:"Nisan",May:"May\u0131s",June:"Haziran",July:"Temmuz",August:"A\u011fustos",September:"Eyl\xfcl",October:"Ekim",November:"Kas\u0131m",December:"Aral\u0131k",Jan:"Oca",Feb:"\u015eub",Mar:"Mar",Apr:"Nis","May(short)":"May",Jun:"Haz",Jul:"Tem",Aug:"A\u011fu",Sep:"Eyl",Oct:"Eki",Nov:"Kas",Dec:"Ara",Sunday:"Pazar",Monday:"Pazartesi",Tuesday:"Sal\u0131",Wednesday:"\xc7ar\u015famba",Thursday:"Per\u015fembe",Friday:"Cuma",Saturday:"Cumartesi",Sun:"Paz",Mon:"Pzt",Tue:"Sal",Wed:"\xc7ar",Thu:"Per",Fri:"Cum",Sat:"Cmt",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Yak\u0131nla\u015ft\u0131r",Play:"Oynat",Stop:"Durdur",Legend:"G\xf6sterge","Click, tap or press ENTER to toggle":"",Loading:"Y\xfckleniyor",Home:"Giri\u015f Sayfas\u0131",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Yazd\u0131r",Image:"G\xf6r\xfcnt\xfc",Data:"Veri",Print:"Yazd\u0131r","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Kaynak %1 hedef %2","From %1":"Kaynak %1","To %1":"Hedef %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(_,a){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6859.e1a93077459d438a.js b/apps/n/porrtal-io-app/public/angular/6859.e1a93077459d438a.js deleted file mode 100644 index 4ba60521..00000000 --- a/apps/n/porrtal-io-app/public/angular/6859.e1a93077459d438a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6859],{98101:(E,s,_)=>{_.r(s),_.d(s,{TextureOnlyPassParameters:()=>a.T,build:()=>a.b}),_(4794),_(98071),_(69960),_(17625),_(22355),_(35387);var a=_(98361)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6886.09a495eeadba01c5.js b/apps/n/porrtal-io-app/public/angular/6886.09a495eeadba01c5.js deleted file mode 100644 index 484c08a5..00000000 --- a/apps/n/porrtal-io-app/public/angular/6886.09a495eeadba01c5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6886],{26886:(m,_,s)=>{s.r(_),s.d(_,{default:()=>V});var a=s(15861),r=s(17626),g=s(59213),D=s(26584),n=s(62208),p=s(10699),E=s(32917),h=s(77712),y=s(76898),M=s(19702),P=s(46160);s(85931),s(90912);const i=d=>{let o=class extends d{constructor(...l){super(...l),this.layer=null}get interactive(){return!!(0,n.pC)(this.analysisView)&&this.analysisView.interactive}set interactive(l){(0,n.pC)(this.analysisView)&&(this.analysisView.interactive=l)}get results(){return(0,n.pC)(this.analysisView)?this.analysisView.results:new P.Z}get selectedDimension(){return(0,n.pC)(this.analysisView)?this.analysisView.selectedDimension:null}set selectedDimension(l){(0,n.pC)(this.analysisView)&&(this.analysisView.selectedDimension=l)}createLengthDimensions(l){var u=this;return(0,a.Z)(function*(){if(!(0,n.pC)(u.analysisView))throw(0,p.zE)();yield u.analysisView.createLengthDimensions(l)})()}};return(0,r._)([(0,h.Cb)()],o.prototype,"layer",void 0),(0,r._)([(0,h.Cb)()],o.prototype,"interactive",null),(0,r._)([(0,h.Cb)({readOnly:!0})],o.prototype,"results",null),(0,r._)([(0,h.Cb)()],o.prototype,"selectedDimension",null),(0,r._)([(0,h.Cb)()],o.prototype,"analysisView",void 0),o=(0,r._)([(0,y.j)("esri.views.layers.DimensionLayerView")],o),o};var e=s(45611);const c="analysis-view-handles";let v=class extends((0,M.A)(i(e.Z))){constructor(d){super(d),this.type="dimension-3d",this._analysisModule=null}initialize(){this.handles.add((0,E.YP)(()=>this.layer.source,d=>{this._destroyAnalysisView(),(0,n.pC)(d)&&this._createAnalysisView(d)},E.tX),c)}destroy(){this.handles.remove(c),this._destroyAnalysisView()}isUpdating(){return(0,n.pC)(this._createAnalysisViewTask)||(0,n.pC)(this.analysisView)&&this.analysisView.updating}whenAnalysisView(){var d=this;return(0,a.Z)(function*(){if((0,n.pC)(d.analysisView))return d.analysisView;if((0,n.pC)(d._createAnalysisViewTask))return d._createAnalysisViewTask.promise;throw new D.Z("layerview:no-analysisview-for-analysis","The analysis has not been set on the DimensionLayer of this layer view")})()}_createAnalysisView(d){var o=this;const l=(0,g.vr)(function(){var u=(0,a.Z)(function*(C){return o.analysisView=yield o._createAnalysisViewPromise(d,C),o._createAnalysisViewTask===l&&(o._createAnalysisViewTask=null),o.analysisView});return function(C){return u.apply(this,arguments)}}());this.addResolvingPromise(l.promise),this._createAnalysisViewTask=l}_destroyAnalysisView(){this.analysisView=(0,n.SC)(this.analysisView),this._createAnalysisViewTask=(0,n.IM)(this._createAnalysisViewTask)}_createAnalysisViewPromise(d,o){var l=this;return(0,a.Z)(function*(){let u=l._analysisModule;if((0,n.Wi)(u)){const f=yield l._loadAnalysisModule();l._analysisModule=f,u=f}const C=new u.default({analysis:d,view:l.view,parent:l});if(yield C.when(),(0,p.Hc)(o))throw C.destroy(),(0,p.zE)();return C})()}_loadAnalysisModule(){return Promise.all([s.e(410),s.e(6072),s.e(3308),s.e(125),s.e(5043),s.e(4828),s.e(1329),s.e(8592),s.e(73)]).then(s.bind(s,10073))}};(0,r._)([(0,h.Cb)()],v.prototype,"type",void 0),(0,r._)([(0,h.Cb)()],v.prototype,"analysisView",void 0),(0,r._)([(0,h.Cb)()],v.prototype,"_createAnalysisViewTask",void 0),v=(0,r._)([(0,y.j)("esri.views.3d.layers.DimensionLayerView3D")],v);const V=v},19702:(m,_,s)=>{s.d(_,{A:()=>P});var a=s(15861),r=s(17626),g=s(54024),D=s(10699),n=s(32917),p=s(77712),y=(s(85931),s(90912),s(76898)),M=s(36947);const P=O=>{let t=class extends O{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(i){super.postscript(i),(0,M.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var i=this;return(0,a.Z)(function*(){const e=new AbortController,c=e.signal;i.handles.add((0,g.kB)(()=>e.abort())),yield(0,n.N1)(()=>i.view.defaultsFromMap?.heightModelInfoReady,c),(0,D.k_)(c);const v=(0,M.Wt)(i.layer,i.view.heightModelInfo,i.supportsHeightUnitConversion);if(v)throw v})()}canResume(){const i=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!i||!i.minScale||!i.maxScale||i.minScale>=i.maxScale)}getSuspendInfo(){const i=super.getSuspendInfo(),e=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return e&&e.minScale&&e.maxScale&&e.minScale{s.d(_,{Z:()=>i});var a=s(17626),r=s(14517),g=s(61885),D=s(80542),n=s(61996),p=s(63290),E=s(62208),h=s(60330),y=s(77712),O=(s(85931),s(90912),s(76898));let t=class extends((0,D.p)((0,n.IG)((0,h.v)(g.Z.EventedMixin(r.Z))))){constructor(e){super(e),this.layer=null,this.parent=null}initialize(){this.when().catch(e=>{if("layerview:create-error"!==e.name){const c=this.layer&&this.layer.id||"no id",v=this.layer&&this.layer.title||"no title";p.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${v}', id: '${c}')`,e)}})}get fullOpacity(){return(0,E.Pt)(this.get("layer.opacity"),1)*(0,E.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(e){this._overrideIfSome("visible",e)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const e=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(e.viewNotReady=!0),this.layer&&this.layer.loaded||(e.layerNotLoaded=!0),this.visible||(e.layerInvisible=!0),e}isUpdating(){return!1}};(0,a._)([(0,y.Cb)()],t.prototype,"fullOpacity",null),(0,a._)([(0,y.Cb)()],t.prototype,"layer",void 0),(0,a._)([(0,y.Cb)()],t.prototype,"parent",void 0),(0,a._)([(0,y.Cb)({readOnly:!0})],t.prototype,"suspended",null),(0,a._)([(0,y.Cb)({readOnly:!0})],t.prototype,"suspendInfo",null),(0,a._)([(0,y.Cb)({readOnly:!0})],t.prototype,"legendEnabled",null),(0,a._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"updating",null),(0,a._)([(0,y.Cb)({readOnly:!0})],t.prototype,"updatingProgress",null),(0,a._)([(0,y.Cb)()],t.prototype,"visible",null),(0,a._)([(0,y.Cb)()],t.prototype,"view",void 0),t=(0,a._)([(0,O.j)("esri.views.layers.LayerView")],t);const i=t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6894.665b9d461a205bf5.js b/apps/n/porrtal-io-app/public/angular/6894.665b9d461a205bf5.js deleted file mode 100644 index 237e2ad8..00000000 --- a/apps/n/porrtal-io-app/public/angular/6894.665b9d461a205bf5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6894],{46894:(ut,_,p)=>{p.r(_),p.d(_,{default:()=>rt});var Z,G=p(15861),a=p(17626),Ne=p(59318),Fe=p(88879),Re=p(73281),X=p(84792),H=p(46160),Oe=p(46882),Le=p(2076),Ue=p(58817),x=p(62208),ee=p(99959),Pe=p(10699),w=p(32917),j=p(21726),u=p(77712),te=p(90912),E=p(68653),re=p(76898),J=p(99433),Ae=p(36054),O=p(2004),I=p(65234),ne=p(83137),Me=p(37053),Te=p(44917),je=p(552),Ze=p(49286),We=p(6647),Ve=p(30346),Be=p(99555),$e=p(97941),Q=p(22825),De=p(38305),se=p(13812),ie=p(51920),Ge=p(61996),Xe=(p(85931),p(66656));let He=0,h=Z=class extends((0,Ge.IG)(ee.w)){constructor(e){super(e),this.dimensions=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.addHandles([(0,w.on)(()=>this.sublayers,"after-add",({item:t})=>{t.parent=this,t.layer=this.layer},w.Z_),(0,w.on)(()=>this.sublayers,"after-remove",({item:t})=>{t.layer=t.parent=null},w.Z_),(0,w.YP)(()=>this.sublayers,(t,r)=>{if(r)for(const n of r)n.layer=n.parent=null;if(t)for(const n of t)n.parent=this,n.layer=this.layer},w.Z_)])}get description(){return this._get("description")}set description(e){this._set("description",e)}get fullExtent(){return this._get("fullExtent")}set fullExtent(e){this._set("fullExtent",e)}readExtent(e,t){return(e=t.extent)?O.Z.fromJSON(e):null}get id(){return this._get("id")??He++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t?.legendUrl??t?.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get name(){return this._get("name")}set name(e){this._set("name",e)}castSublayers(e){return(0,te.se)(H.Z.ofType(Z),e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get visible(){return this._get("visible")}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new Z;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(t=>t.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map(t=>t.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(t=>t)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,a._)([(0,u.Cb)()],h.prototype,"description",null),(0,a._)([(0,u.Cb)({readOnly:!0})],h.prototype,"dimensions",void 0),(0,a._)([(0,u.Cb)({value:null})],h.prototype,"fullExtent",null),(0,a._)([(0,E.r)("fullExtent",["extent"])],h.prototype,"readExtent",null),(0,a._)([(0,u.Cb)()],h.prototype,"fullExtents",void 0),(0,a._)([(0,u.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],h.prototype,"id",null),(0,a._)([(0,u.Cb)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],h.prototype,"legendUrl",void 0),(0,a._)([(0,E.r)(["web-document"],"legendUrl")],h.prototype,"readLegendUrl",null),(0,a._)([(0,u.Cb)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],h.prototype,"legendEnabled",void 0),(0,a._)([(0,u.Cb)()],h.prototype,"layer",void 0),(0,a._)([(0,u.Cb)()],h.prototype,"maxScale",void 0),(0,a._)([(0,u.Cb)()],h.prototype,"minScale",void 0),(0,a._)([(0,u.Cb)({readOnly:!0})],h.prototype,"effectiveScaleRange",null),(0,a._)([(0,u.Cb)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],h.prototype,"name",null),(0,a._)([(0,u.Cb)()],h.prototype,"parent",void 0),(0,a._)([(0,u.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],h.prototype,"popupEnabled",void 0),(0,a._)([(0,u.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],h.prototype,"queryable",void 0),(0,a._)([(0,u.Cb)()],h.prototype,"sublayers",void 0),(0,a._)([(0,Xe.p)("sublayers")],h.prototype,"castSublayers",null),(0,a._)([(0,u.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],h.prototype,"spatialReferences",void 0),(0,a._)([(0,u.Cb)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],h.prototype,"title",null),(0,a._)([(0,u.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],h.prototype,"visible",null),h=Z=(0,a._)([(0,re.j)("esri.layers.support.WMSSublayer")],h);const z=h;var Je=p(26584);const W={84:4326,83:4269,27:4267};function Qe(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const S=Array.prototype.slice.call(r.childNodes).map(T=>T.textContent).join("\r\n");throw new Je.Z("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",S)}const n=b("Capability",r),s=b("Service",r),l=b("Request",n);if(!n||!s||!l)return null;const i=b("Layer",n);if(!i)return null;const d="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",o=C("Title",s,"")||C("Name",s,""),c=C("AccessConstraints",s,""),y=/^none$/i.test(c)?"":c,f=C("Abstract",s,""),v=parseInt(C("MaxWidth",s,"5000"),10),N=parseInt(C("MaxHeight",s,"5000"),10),F=ue(l,"GetMap"),M=le(l,"GetMap"),g=A(i,d,t);let xe,R,$,q=0;if(Array.prototype.slice.call(n.childNodes).forEach(S=>{"Layer"===S.nodeName&&(0===q?xe=S:(1===q&&g.name&&(g.name="",g.sublayers.push(A(xe,d,t))),g.sublayers.push(A(S,d,t))),q++)}),!g)return null;const nt=g.fullExtents;if(R=g.sublayers,R||(R=[]),0===R.length&&R.push(g),$=g.extent,!$){const S=new O.Z(R[0].extent);g.extent=S.toJSON(),$=g.extent}const st=g.spatialReferences.length>0?g.spatialReferences:ae(g),Se=le(l,"GetFeatureInfo"),it=Se?ue(l,"GetFeatureInfo"):null,we=oe(R),at=g.minScale||0,ot=g.maxScale||0,Ce=g.dimensions,lt=we.reduce((S,T)=>S.concat(T.dimensions),[]),Ee=Ce.concat(lt).filter(Y);let Ie=null;if(Ee.length){const S=Ee.map(T=>{const{extent:k}=T;return function Ke(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(k)?k.map(D=>D.getTime()):k.map(D=>[D.min.getTime(),D.max.getTime()])}).flat(2);Ie={startTimeField:null,endTimeField:null,trackIdField:null,timeExtent:[Math.min(...S),Math.max(...S)]}}return{copyright:y,description:f,dimensions:Ce,extent:$,fullExtents:nt,featureInfoFormats:it,featureInfoUrl:Se,mapUrl:M,maxWidth:v,maxHeight:N,maxScale:ot,minScale:at,layers:we,spatialReferences:st,supportedImageFormatTypes:F,timeInfo:Ie,title:o,version:d}}function ae(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const r=ae(t);if(r.length>0)return r}return[]}function oe(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(oe(r.sublayers)),delete r.sublayers);return t}function V(e,t,r){return t.getAttribute(e)??r}function b(e,t){for(let r=0;rs);const n=[];for(const s of r)if(s.getAttribute("name")===t){const l=B("Format",s);for(const{textContent:i}of l)n.push(i)}return n}function pe(e,t,r){const n=b(t,e);if(!n)return r;const{textContent:s}=n;if(null==s||""===s)return r;const l=Number(s);return isNaN(l)?r:l}function A(e,t,r){if(!e)return null;const n={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},s=b("LatLonBoundingBox",e),l=b("EX_GeographicBoundingBox",e);let i=null;s&&(i=P(s,4326)),l&&(i=new O.Z(0,0,0,0,new I.Z({wkid:4326})),i.xmin=parseFloat(C("westBoundLongitude",l,"0")),i.ymin=parseFloat(C("southBoundLatitude",l,"0")),i.xmax=parseFloat(C("eastBoundLongitude",l,"0")),i.ymax=parseFloat(C("northBoundLatitude",l,"0"))),s||l||(i=new O.Z(-180,-90,180,90,new I.Z({wkid:4326}))),n.minScale=pe(e,"MaxScaleDenominator",0),n.maxScale=pe(e,"MinScaleDenominator",0);const d=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(o=>{if("Name"===o.nodeName)n.name=o.textContent||"";else if("Title"===o.nodeName)n.title=o.textContent||"";else if("Abstract"===o.nodeName)n.description=o.textContent||"";else if("BoundingBox"===o.nodeName){const c=o.getAttribute(d);if(c&&0===c.indexOf("EPSG:")){const f=parseInt(c.substring(5),10);0===f||isNaN(f)||i||(i="1.3.0"===t?P(o,f,(0,Q.A)(f)):P(o,f))}const y=c&&c.indexOf(":");if(y&&y>-1){let f=parseInt(c.substring(y+1,c.length),10);0===f||isNaN(f)||(f=W[f]?W[f]:f);const v="1.3.0"===t?P(o,f,(0,Q.A)(f)):P(o,f);n.fullExtents.push(v)}}else if(o.nodeName===d)o.textContent.split(" ").forEach(c=>{const y=c.includes(":")?parseInt(c.split(":")[1],10):parseInt(c,10);if(0!==y&&!isNaN(y)){const f=W[y]?W[y]:y;n.spatialReferences.includes(f)||n.spatialReferences.push(f)}});else if("Style"!==o.nodeName||n.legendURL){if("Layer"===o.nodeName){const c=A(o,t,r);c&&(c.parentLayerId=n.id,n.sublayers||(n.sublayers=[]),n.sublayers.push(c))}}else{const c=b("LegendURL",o);if(c){const y=b("OnlineResource",c);y&&(n.legendURL=y.getAttribute("xlink:href"))}}}),n.extent=i?.toJSON(),n.dimensions=B("Dimension",e).filter(o=>o.getAttribute("name")&&o.getAttribute("units")&&o.textContent).map(o=>{const c=o.getAttribute("name"),y=o.getAttribute("units"),f=o.textContent,v=o.getAttribute("unitSymbol"),N=o.getAttribute("default"),F="0"!==V("default",o,"0"),M="0"!==V("nearestValue",o,"0"),g="0"!==V("current",o,"0");return Y({name:c,units:y})?{name:"time",units:"ISO8601",extent:ye(f),default:ye(N),multipleValues:F,nearestValue:M,current:g}:function ce(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:c,units:y})?{name:"elevation",units:y,extent:me(f),unitSymbol:v,default:me(N),multipleValues:F,nearestValue:M}:{name:c,units:y,extent:fe(f),unitSymbol:v,default:fe(N),multipleValues:F,nearestValue:M}}),n}function de(e){return e.nodeType===Node.ELEMENT_NODE}function Y(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function me(e){if(!e)return null;const t=e.includes("/"),r=e.split(",");return t?r.map(n=>{const s=n.split("/");return s.length<2?null:{min:parseFloat(s[0]),max:parseFloat(s[1]),resolution:s.length>=3&&"0"!==s[2]?parseFloat(s[2]):void 0}}).filter(n=>n):r.map(n=>parseFloat(n))}function fe(e){if(!e)return null;const t=e.includes("/"),r=e.split(",");return t?r.map(n=>{const s=n.split("/");return s.length<2?null:{min:s[0],max:s[1],resolution:s.length>=3&&"0"!==s[2]?s[2]:void 0}}).filter(n=>n):r}function ye(e){if(!e)return null;const t=e.includes("/"),r=e.split(",");return t?r.map(n=>{const s=n.split("/");return s.length<2?null:{min:new Date(s[0]),max:new Date(s[1]),resolution:s.length>=3&&"0"!==s[2]?ke(s[2]):void 0}}).filter(n=>n):r.map(n=>new Date(n))}function ke(e){const r=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return r?{years:L(r[1]),months:L(r[2]),days:L(r[3]),hours:L(r[4]),minutes:L(r[5]),seconds:L(r[6])}:null}function L(e){if(!e)return 0;const r=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!r)return 0;const n=r[0].replace(",",".");return Number(n)}function U(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const he=new Set([102100,3857,102113,900913]),_e=new Set([3395,54004]),K=new Le.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function ge(e){return"text/html"===e}function be(e){return"text/plain"===e}let m=class extends((0,je.h)((0,$e.n)((0,Ve.Q)((0,Be.M)((0,Ze.q)((0,We.I)((0,ee.R)(Te.Z)))))))){constructor(...e){super(...e),this.allSublayers=new Oe.Z({getCollections:()=>[this.sublayers],getChildrenFunction:t=>t.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.url=null,this.version=null,this.addHandles([(0,w.on)(()=>this.sublayers,"after-add",({item:t})=>{t.parent=t.layer=this},w.Z_),(0,w.on)(()=>this.sublayers,"after-remove",({item:t})=>{t.layer=t.parent=null},w.Z_),(0,w.YP)(()=>this.sublayers,(t,r)=>{if(r)for(const n of r)n.layer=n.parent=null;if(t)for(const n of t)n.parent=n.layer=this},w.Z_)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,x.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(Pe.r9).then(()=>this._fetchService(t))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new O.Z({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return(0,x.Wi)(this.featureInfoFormats)?null:this.featureInfoFormats.find(ge)??this.featureInfoFormats.find(be)??null}set featureInfoFormat(e){(0,x.pC)(e)?(ge(e)||be(e))&&this._override("featureInfoFormat",e):(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat"))}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new I.Z(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter(n=>n!==r),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return ve(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return ve(t.layers,r)}writeSublayers(e,t,r,n){t.layers=[];const s=new Map,l=e.flatten(({sublayers:i})=>i);for(const i of l)if("number"==typeof i.parent?.id){const d=s.get(i.parent.id);null!=d?d.push(i.id):s.set(i.parent.id,[i.id])}for(const i of l){const d={sublayer:i,...n},o=i.write({parentLayerId:"number"==typeof i.parent?.id?i.parent.id:-1},d);if(s.has(i.id)&&(o.sublayerIds=s.get(i.id)),!i.sublayers&&i.name){const c=i.write({},d);delete c.id,t.layers.push(c)}}t.visibleLayers=l.filter(({visible:i,sublayers:d})=>i&&!d).map(({name:i})=>i).toArray()}createExportImageParameters(e,t,r,n){const s=n?.pixelRatio??1,l=(0,ne.yZ)({extent:e,width:t})*s,i=new ie.j({layer:this,scale:l}),{xmin:d,ymin:o,xmax:c,ymax:y,spatialReference:f}=e,v=function et(e,t){let r=e.wkid;return(0,x.Wi)(t)?r:(!t.includes(r)&&e.latestWkid&&(r=e.latestWkid),he.has(r)?t.find(n=>he.has(n))||t.find(n=>_e.has(n))||102100:r)}(f,this.spatialReferences),N="1.3.0"===this.version&&(0,Q.A)(v)?`${o},${d},${y},${c}`:`${d},${o},${c},${y}`,F=i.toJSON();return{bbox:N,["1.3.0"===this.version?"crs":"srs"]:isNaN(v)?void 0:"EPSG:"+v,...F}}fetchImage(e,t,r,n){var s=this;return(0,G.Z)(function*(){const l=s.mapUrl,i=s.createExportImageParameters(e,t,r,n);if(!i.layers){const f=document.createElement("canvas");return f.width=t,f.height=r,f}const d=n?.timeExtent?.start,o=n?.timeExtent?.end,c=(0,x.pC)(d)&&(0,x.pC)(o)?d.getTime()===o.getTime()?U(d):`${U(d)}/${U(o)}`:void 0,y={responseType:"image",query:s._mixCustomParameters({width:t,height:r,...i,time:c,...s.refreshParameters}),signal:n?.signal};return(0,X.default)(l??"",y).then(f=>f.data)})()}fetchImageBitmap(e,t,r,n){var s=this;return(0,G.Z)(function*(){const l=s.mapUrl,i=s.createExportImageParameters(e,t,r,n);if(!i.layers){const v=document.createElement("canvas");return v.width=t,v.height=r,v}const d=n?.timeExtent?.start,o=n?.timeExtent?.end,c=(0,x.pC)(d)&&(0,x.pC)(o)?d.getTime()===o.getTime()?U(d):`${U(d)}/${U(o)}`:void 0,y={responseType:"blob",query:s._mixCustomParameters({width:t,height:r,...i,time:c,...s.refreshParameters}),signal:n?.signal},f=yield(0,X.default)(l??"",y).then(v=>v.data);return createImageBitmap(f)})()}fetchFeatureInfo(e,t,r,n,s){const l=(0,ne.yZ)({extent:e,width:t}),d=function ze(e){const t=e.filter(r=>r.popupEnabled&&r.name&&r.queryable);return t.length?t.map(({name:r})=>r).join():null}(new ie.j({layer:this,scale:l}).visibleSublayers);if((0,x.Wi)(this.featureInfoUrl)||(0,x.Wi)(d))return Promise.resolve([]);if((0,x.Wi)(this.fetchFeatureInfoFunction)&&(0,x.Wi)(this.featureInfoFormat))return Promise.resolve([]);const c={query_layers:d,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,..."1.3.0"===this.version?{I:n,J:s}:{x:n,y:s}},y={...this.createExportImageParameters(e,t,r),...c},f=this._mixCustomParameters(y);return(0,x.pC)(this.fetchFeatureInfoFunction)?this.fetchFeatureInfoFunction(f):this._defaultFetchFeatureInfoFunction((0,j.fl)(this.featureInfoUrl,f))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,De.G)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const r=900913===t?I.Z.WebMercator:new I.Z({wkid:t});return(0,Me.fS)(r,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,j.qg)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new Re.Z({title:this.title,content:t}),n=new Fe.Z({sourceLayer:this,popupTemplate:r});return Promise.resolve([n])}_fetchService(e){var t=this;return(0,G.Z)(function*(){if(!t.resourceInfo){const{path:r,query:n}=t.parsedUrl??{};n?.service&&(n.SERVICE=n.service,delete n.service),n?.request&&(n.REQUEST=n.request,delete n.request);const{data:s}=yield(0,X.default)(r??"",{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...n,...t.customParameters},responseType:"xml",signal:e});t.resourceInfo=Qe(s)}if(t.parsedUrl){const r=new j.R9(t.parsedUrl.path),{httpsDomains:n}=Ne.Z.request;"https"!==r.scheme||r.port&&"443"!==r.port||!r.host||n.includes(r.host)||n.push(r.host)}t.read(t.resourceInfo,{origin:"service"})})()}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function ve(e,t,r){e=e??[];const n=new Map;e.every(l=>null==l.id)&&(e=(0,Ue.d9)(e)).forEach((l,i)=>l.id=i);for(const l of e){const i=new z;i.read(l,t),r&&!r.includes(i.name)&&(i.visible=!1),n.set(i.id,i)}const s=[];for(const l of e){const i=null!=l.id?n.get(l.id):null;if(i)if(null!=l.parentLayerId&&l.parentLayerId>=0){const d=n.get(l.parentLayerId);if(!d)continue;d.sublayers||(d.sublayers=new H.Z),d.sublayers.push(i)}else s.push(i)}return s}(0,a._)([(0,u.Cb)({readOnly:!0})],m.prototype,"allSublayers",void 0),(0,a._)([(0,u.Cb)({json:{type:Object,write:!0}})],m.prototype,"customParameters",void 0),(0,a._)([(0,u.Cb)({json:{type:Object,write:!0}})],m.prototype,"customLayerParameters",void 0),(0,a._)([(0,u.Cb)({type:String,json:{write:!0}})],m.prototype,"copyright",void 0),(0,a._)([(0,u.Cb)()],m.prototype,"description",void 0),(0,a._)([(0,u.Cb)({readOnly:!0})],m.prototype,"dimensions",void 0),(0,a._)([(0,u.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],m.prototype,"fullExtent",void 0),(0,a._)([(0,E.r)(["web-document","portal-item"],"fullExtent",["extent"])],m.prototype,"readFullExtentFromItemOrMap",null),(0,a._)([(0,J.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],m.prototype,"writeFullExtent",null),(0,a._)([(0,u.Cb)()],m.prototype,"fullExtents",void 0),(0,a._)([(0,u.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],m.prototype,"featureInfoFormat",null),(0,a._)([(0,u.Cb)({type:[String],readOnly:!0})],m.prototype,"featureInfoFormats",void 0),(0,a._)([(0,u.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],m.prototype,"featureInfoUrl",void 0),(0,a._)([(0,u.Cb)()],m.prototype,"fetchFeatureInfoFunction",void 0),(0,a._)([(0,u.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:K.jsonValues,read:{reader:K.read,source:"format"},write:{writer:K.write,target:"format"}}}}})],m.prototype,"imageFormat",void 0),(0,a._)([(0,E.r)("imageFormat",["supportedImageFormatTypes"])],m.prototype,"readImageFormat",null),(0,a._)([(0,u.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],m.prototype,"imageMaxHeight",void 0),(0,a._)([(0,u.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],m.prototype,"imageMaxWidth",void 0),(0,a._)([(0,u.Cb)()],m.prototype,"imageTransparency",void 0),(0,a._)([(0,u.Cb)(se.rn)],m.prototype,"legendEnabled",void 0),(0,a._)([(0,u.Cb)({type:["show","hide","hide-children"]})],m.prototype,"listMode",void 0),(0,a._)([(0,u.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],m.prototype,"mapUrl",void 0),(0,a._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],m.prototype,"isReference",void 0),(0,a._)([(0,u.Cb)({type:["WMS"]})],m.prototype,"operationalLayerType",void 0),(0,a._)([(0,u.Cb)()],m.prototype,"resourceInfo",void 0),(0,a._)([(0,u.Cb)({type:I.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],m.prototype,"spatialReference",void 0),(0,a._)([(0,E.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],m.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,a._)([(0,u.Cb)({type:[te.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],m.prototype,"spatialReferences",void 0),(0,a._)([(0,J.c)(["web-document","portal-item"],"spatialReferences")],m.prototype,"writeSpatialReferences",null),(0,a._)([(0,u.Cb)({type:H.Z.ofType(z),json:{write:{target:"layers",overridePolicy(e,t,r){if(function tt(e,t){return e.some(r=>{for(const n in r)if((0,Ae.d)(r,n,null,t))return!0;return!1})}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],m.prototype,"sublayers",void 0),(0,a._)([(0,E.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],m.prototype,"readSublayersFromItemOrMap",null),(0,a._)([(0,E.r)("service","sublayers",["layers"])],m.prototype,"readSublayers",null),(0,a._)([(0,J.c)("sublayers",{layers:{type:[z]},visibleLayers:{type:[String]}})],m.prototype,"writeSublayers",null),(0,a._)([(0,u.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],m.prototype,"type",void 0),(0,a._)([(0,u.Cb)(se.HQ)],m.prototype,"url",void 0),(0,a._)([(0,u.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],m.prototype,"version",void 0),m=(0,a._)([(0,re.j)("esri.layers.WMSLayer")],m);const rt=m}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/6912.0d951f29576ad58f.js b/apps/n/porrtal-io-app/public/angular/6912.0d951f29576ad58f.js deleted file mode 100644 index 1f1c5351..00000000 --- a/apps/n/porrtal-io-app/public/angular/6912.0d951f29576ad58f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[6912],{52489:(M,E,o)=>{o.d(E,{D:()=>c});var i=o(22558);function c(p){p&&p.writtenProperties&&p.writtenProperties.forEach(({target:h,propName:y,newOrigin:f})=>{(0,i.l)(h)&&f&&h.originOf(y)!==f&&h.updateOrigin(y,f)})}},22558:(M,E,o)=>{function i(c){return c&&"getAtOrigin"in c&&"originOf"in c}o.d(E,{l:()=>i})},36912:(M,E,o)=>{o.r(E),o.d(E,{save:()=>ut,saveAll:()=>pt,saveAs:()=>dt});var i=o(15861),c=o(85931),p=o(26584),h=o(63290),y=o(62208),f=o(10699),D=o(52489),I=o(80415),L=o(38305),U=o(17196),O=o(72469),x=o(84687),d=o(55463),u=o(88755),l=o(37281);const P=h.Z.getLogger("esri.layers.FeatureLayer"),A="Feature Service";function v(t,e){return`Layer (title: ${t.title}, id: ${t.id}) of type '${t.declaredClass}' ${e}`}function z(t,e){if(e.type!==A)throw new p.Z("feature-layer:portal-item-wrong-type",v(t,`should have portal item of type "${A}"`))}function G(t){return K.apply(this,arguments)}function K(){return(K=(0,i.Z)(function*(t){if(yield t.load(),(0,O.rQ)(t))throw new p.Z("feature-layer:save",v(t,"using an in-memory source cannot be saved to a portal item"))})).apply(this,arguments)}function q(t,e){let a=(t.messages??[]).filter(({type:r})=>"error"===r).map(({name:r,message:s,details:n})=>new p.Z(r,s,n));if(e?.ignoreUnsupported&&(a=a.filter(({name:r})=>"layer:unsupported"!==r&&"symbol:unsupported"!==r&&"symbol-layer:unsupported"!==r&&"property:unsupported"!==r&&"url:unsupported"!==r)),a.length>0)throw new p.Z("feature-layer:save","Failed to save feature layer due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:a})}function T(t,e,a){return S.apply(this,arguments)}function S(){return(S=(0,i.Z)(function*(t,e,a){"beforeSave"in t&&"function"==typeof t.beforeSave&&(yield t.beforeSave());const r=t.write({},e);return q(e,a),r})).apply(this,arguments)}function Y(t){const{layer:e,layerJSON:a}=t;return e.isTable?{layers:[],tables:[a]}:{layers:[a],tables:[]}}function R(t){(0,l.qj)(t,l.Kz.JSAPI),t.typeKeywords&&(t.typeKeywords=t.typeKeywords.filter((e,a,r)=>r.indexOf(e)===a))}function tt(t){const e=t.portalItem;if(!e)throw P.error("save: requires the portalItem property to be set"),new p.Z("feature-layer:portal-item-not-set",v(t,"requires the portalItem property to be set"));if(!e.loaded)throw new p.Z("feature-layer:portal-item-not-loaded",v(t,"cannot be saved to a portal item that does not exist or is inaccessible"));z(t,e)}function F(t,e){return j.apply(this,arguments)}function j(){return(j=(0,i.Z)(function*(t,e){return/\/\d+\/?$/.test(t.url??"")?Y(e[0]):et(t,e)})).apply(this,arguments)}function et(t,e){return C.apply(this,arguments)}function C(){return(C=(0,i.Z)(function*(t,e){const{layer:{url:a,customParameters:r,apiKey:s}}=e[0];let n=yield t.fetchData("json");n&&null!=n.layers&&null!=n.tables||(n=yield rt(n,{url:a??"",customParameters:r,apiKey:s},e.map(_=>_.layer.layerId)));for(const _ of e)V(_.layer,_.layerJSON,n);return n})).apply(this,arguments)}function rt(t,e,a){return Z.apply(this,arguments)}function Z(){return(Z=(0,i.Z)(function*(t,e,a){var r,s;t||(t={}),(r=t).layers||(r.layers=[]),(s=t).tables||(s.tables=[]);const{url:n,customParameters:_,apiKey:m}=e,{serviceJSON:g,layersJSON:$}=yield(0,U.V)(n,{customParameters:_,apiKey:m}),X=Q(t.layers,g.layers,a),k=Q(t.tables,g.tables,a);t.layers=X.itemResources,t.tables=k.itemResources;const ct=[...X.added,...k.added],ft=$?[...$.layers,...$.tables]:[];return yield at(t,ct,n,ft),t})).apply(this,arguments)}function Q(t,e,a){const r=(0,c.e5)(t,e,(n,_)=>n.id===_.id);t=t.filter(n=>!r.removed.some(_=>_.id===n.id));const s=r.added.map(({id:n})=>({id:n}));return s.forEach(({id:n})=>{t.push({id:n})}),{itemResources:t,added:s.filter(({id:n})=>!a.includes(n))}}function at(t,e,a,r){return B.apply(this,arguments)}function B(){return(B=(0,i.Z)(function*(t,e,a,r){const s=e.map(({id:n})=>new I.default({url:a,layerId:n,sourceJSON:r.find(({id:_})=>_===n)}));yield(0,f.as)(s.map(n=>n.load())),s.forEach(n=>{const{layerId:_,loaded:m,defaultPopupTemplate:g}=n;!m||(0,y.Wi)(g)||V(n,{id:_,popupInfo:g.toJSON()},t)})})).apply(this,arguments)}function V(t,e,a){!function H(t,e){if(!t)return;const a=t.findIndex(({id:r})=>r===e.id);-1===a?t.push(e):t[a]=e}(t.isTable?a.tables:a.layers,e)}function nt(t){const{portalItem:e}=t;return(0,O.y2)(t)&&!t.dynamicDataSource&&!!e?.loaded&&e.type===A}function w(){return(w=(0,i.Z)(function*(t){if(!t?.length)throw new p.Z("feature-layer-utils-saveall:missing-parameters","'layers' array should contain at least one feature layer");yield Promise.all(t.map(r=>r.load()));for(const r of t)if(!nt(r))throw new p.Z("feature-layer-utils-saveall:invalid-parameters",`'layers' array should only contain layers or tables in a feature service loaded from 'Feature Service' item. ${v(r,"does not conform")}`,{layer:r});const e=t.map(r=>r.portalItem.id);if(new Set(e).size>1)throw new p.Z("feature-layer-utils-saveall:invalid-parameters","All layers in the 'layers' array should be loaded from the same portal item");const a=t.map(r=>r.layerId);if(new Set(a).size!==a.length)throw new p.Z("feature-layer-utils-saveall:invalid-parameters","'layers' array should contain only one instance each of layer or table in a feature service")})).apply(this,arguments)}function st(t,e){var a,r;let s=d.default.from(e);return s.id&&(s=s.clone(),s.id=null),(a=s).type??(a.type=A),(r=s).portal??(r.portal=x.Z.getDefault()),z(t,s),s}function lt(t,e){return W.apply(this,arguments)}function W(){return(W=(0,i.Z)(function*(t,e){const{url:a,layerId:r,title:s,fullExtent:n,isTable:_}=t,m=(0,L.Qc)(a),g=(0,y.pC)(m)&&"FeatureServer"===m.serverType;e.url=g?a:`${a}/${r}`,e.title||(e.title=s),e.extent=null,!_&&(0,y.pC)(n)&&(e.extent=yield(0,l.$o)(n)),(0,l.ck)(e,l.Kz.METADATA),(0,l.ck)(e,l.Kz.MULTI_LAYER),(0,l.qj)(e,l.Kz.SINGLE_LAYER),_&&(0,l.qj)(e,l.Kz.TABLE),R(e)})).apply(this,arguments)}function it(t,e,a){return b.apply(this,arguments)}function b(){return(b=(0,i.Z)(function*(t,e,a){const r=t.portal;yield r?._signIn(),yield r?.user?.addItem({item:t,data:e,folder:a?.folder})})).apply(this,arguments)}const ut=(0,f.Ds)(function _t(t,e){return N.apply(this,arguments)});function N(){return(N=(0,i.Z)(function*(t,e){yield G(t),tt(t);const a=t.portalItem,r=(0,u.Y)(a),s=yield T(t,r,e),n=yield F(a,[{layer:t,layerJSON:s}]);return R(a),yield a.update({data:n}),(0,D.D)(r),a})).apply(this,arguments)}const pt=(0,f.Ds)(function(){var t=(0,i.Z)(function*(e,a){yield function ot(t){return w.apply(this,arguments)}(e);const r=e[0].portalItem,s=(0,u.Y)(r),n=yield Promise.all(e.map(m=>T(m,s,a))),_=yield F(r,e.map((m,g)=>({layer:m,layerJSON:n[g]})));return R(r),yield r.update({data:_}),yield Promise.all(e.slice(1).map(m=>m.portalItem.reload())),(0,D.D)(s),r.clone()});return function(e,a){return t.apply(this,arguments)}}()),dt=(0,f.Ds)(function yt(t,e,a){return J.apply(this,arguments)});function J(){return(J=(0,i.Z)(function*(t,e,a){yield G(t);const r=st(t,e),s=(0,u.Y)(r),n=Y({layer:t,layerJSON:yield T(t,s,a)});return yield lt(t,r),yield it(r,n,a),t.portalItem=r,(0,D.D)(s),r})).apply(this,arguments)}},88755:(M,E,o)=>{o.d(E,{Y:()=>h,h:()=>p});var i=o(21726),c=o(84687);function p(y){return{origin:"portal-item",url:(0,i.mN)(y.itemUrl),portal:y.portal||c.Z.getDefault(),portalItem:y,readResourcePaths:[]}}function h(y){return{origin:"portal-item",messages:[],writtenProperties:[],url:y.itemUrl?(0,i.mN)(y.itemUrl):null,portal:y.portal||c.Z.getDefault(),portalItem:y}}},37281:(M,E,o)=>{o.d(E,{$o:()=>U,Kz:()=>x,_$:()=>I,ck:()=>L,qj:()=>D});var i=o(15861),c=o(55915),p=o(65234),h=o(46367);function y(d){return f.apply(this,arguments)}function f(){return(f=(0,i.Z)(function*(d){const u=d.spatialReference;if(u.isWGS84)return d.clone();if(u.isWebMercator)return(0,h.Sx)(d);const l=p.Z.WGS84;return yield(0,c.iQ)(u,l),(0,c.iV)(d,l)})).apply(this,arguments)}function D(d,u){if(!I(d,u)){const l=d.typeKeywords;l?l.push(u):d.typeKeywords=[u]}}function I(d,u){return!!d.typeKeywords?.includes(u)}function L(d,u){const l=d.typeKeywords;if(l){const P=l.indexOf(u);P>-1&&l.splice(P,1)}}function U(d){return O.apply(this,arguments)}function O(){return(O=(0,i.Z)(function*(d){const u=d.clone().normalize();let l;if(u.length>1)for(const P of u)l?P.width>l.width&&(l=P):l=P;else l=u[0];return y(l)})).apply(this,arguments)}const x={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/700.543c1aa7f67dd6d6.js b/apps/n/porrtal-io-app/public/angular/700.543c1aa7f67dd6d6.js deleted file mode 100644 index 00c9a9ad..00000000 --- a/apps/n/porrtal-io-app/public/angular/700.543c1aa7f67dd6d6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[700],{20700:(g,d,s)=>{s.r(d),s.d(d,{e:()=>h});var u,_,t,l=s(1719),a={exports:{}};u=a,void 0!==(t=a.exports,Object.defineProperty(t,"__esModule",{value:!0}),_=void(t.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm::ss SSS",_date_second:"hh:mm:ss a",_date_minute:"hh:mm a",_date_hour:"hh:mm a",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(o){var e="th";if(o<11||o>13)switch(o%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},Play:"",Stop:"","Zoom Out":"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Chord diagram":"","Flow diagram":"","TreeMap chart":"",Series:"","Candlestick Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=_);const h=function m(n,t){for(var o=0;oe[r]})}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,l.g)(a.exports)},[a.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7001.7d027ec6a46cbb62.js b/apps/n/porrtal-io-app/public/angular/7001.7d027ec6a46cbb62.js deleted file mode 100644 index 9a721515..00000000 --- a/apps/n/porrtal-io-app/public/angular/7001.7d027ec6a46cbb62.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7001],{77001:(D,v,a)=>{a.r(v),a.d(v,{AccountBillingHistoryComponent:()=>g,AccountCreateComponent:()=>h,AccountDetailComponent:()=>d,AccountNavComponent:()=>m,AccountSearchComponent:()=>u,DocsNavComponent:()=>p});var i=a(36895),f=a(30878),s=a(97392);const C=[{viewId:"Welcome",displayText:"Welcome !!",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",launchAtStartup:!0,componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/welcome/welcome.md"}},{viewId:"Setup Your Workstation",displayText:"Setup Your Workstation",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/setup-your-workstation/setup-your-workstation.md"}},{viewId:"Create the App",displayText:"Create the App",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-the-app/create-the-app.md"}},{viewId:"Create the Nav Component",displayText:"Create the Nav Componet",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-the-nav-component/create-the-nav-component.md"}},{viewId:"Launch a Component",displayText:"Launch a Component",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/launch-a-component/launch-a-component.md"}},{viewId:"Create an Entity Menu",displayText:"Create an Entity Menu",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-an-entity-menu/create-an-entity-menu.md"}},{viewId:"Create a Search Component",displayText:"Create a Search Component",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/create-a-search-component/create-a-search-component.md"}},{viewId:"Next Steps",displayText:"Next Steps",displayIcon:"auto_awesome",componentName:"MarkdownViewerComponent",paneType:"main",componentModule:()=>a.e(9487).then(a.bind(a,19487)),state:{contentUrl:"/docs/porrtal-components-a-quick-start-material/next-steps/next-steps.md"}}];var t=a(94650);class p{constructor(o){this.shellStateService=o,C.forEach(e=>{this.shellStateService.dispatch({type:"registerView",view:e})}),this.shellStateService.dispatch({type:"launchView",viewId:"Welcome"})}static#t=this.\u0275fac=function(e){return new(e||p)(t.Y36(f.vv))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["porrtal-workspace-docs-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:44,vars:0,consts:[[1,"container"],[1,"title"],[1,"data-container"],[1,"link-button",3,"click"],[2,"margin-left","5px"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2,"Quick Start Docs"),t.qZA(),t.TgZ(3,"div",2)(4,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Welcome"})}),t.TgZ(5,"mat-icon"),t._uU(6,"auto_awesome"),t.qZA(),t.TgZ(7,"span",4),t._uU(8,"Welcome !!"),t.qZA()(),t.TgZ(9,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Setup Your Workstation"})}),t.TgZ(10,"mat-icon"),t._uU(11,"auto_awesome"),t.qZA(),t.TgZ(12,"span",4),t._uU(13,"Setup Your Workstation"),t.qZA()(),t.TgZ(14,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create the App"})}),t.TgZ(15,"mat-icon"),t._uU(16,"auto_awesome"),t.qZA(),t.TgZ(17,"span",4),t._uU(18,"Create the App"),t.qZA()(),t.TgZ(19,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create the Nav Component"})}),t.TgZ(20,"mat-icon"),t._uU(21,"auto_awesome"),t.qZA(),t.TgZ(22,"span",4),t._uU(23,"Create the Nav Component"),t.qZA()(),t.TgZ(24,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Launch a Component"})}),t.TgZ(25,"mat-icon"),t._uU(26,"auto_awesome"),t.qZA(),t.TgZ(27,"span",4),t._uU(28,"Launch a Component"),t.qZA()(),t.TgZ(29,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create an Entity Menu"})}),t.TgZ(30,"mat-icon"),t._uU(31,"auto_awesome"),t.qZA(),t.TgZ(32,"span",4),t._uU(33,"Create an Entity Menu"),t.qZA()(),t.TgZ(34,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Create a Search Component"})}),t.TgZ(35,"mat-icon"),t._uU(36,"auto_awesome"),t.qZA(),t.TgZ(37,"span",4),t._uU(38,"Create a Search Component"),t.qZA()(),t.TgZ(39,"h4",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"Next Steps"})}),t.TgZ(40,"mat-icon"),t._uU(41,"auto_awesome"),t.qZA(),t.TgZ(42,"span",4),t._uU(43,"Next Steps"),t.qZA()()()())},dependencies:[i.ez,s.Ps,s.Hw],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:5px;padding-bottom:4px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#4682b4;text-decoration:underline;cursor:pointer;display:grid;grid-template-columns:auto auto 1fr;align-items:center}"],changeDetection:0})}var T=a(46485);const l=[{accountId:1,name:"Bank of Big Money",orders:[{date:Date.now(),item:"Screen design",amount:1e3},{date:Date.now()+432e6,item:"Screen development",amount:5e3},{date:Date.now()+864e6,item:"Screen testing",amount:3e3}]},{accountId:2,name:"Bill Jones",orders:[{date:Date.now(),item:"Slide development",amount:1e3}]},{accountId:3,name:"Waffles R Us",orders:[{date:Date.now(),item:"Screen design",amount:2e3},{date:Date.now()+432e6,item:"Screen development",amount:8e3},{date:Date.now()+864e6,item:"Screen testing",amount:5e3}]},{accountId:4,name:"Waffle House",orders:[{date:Date.now(),item:"Screen design",amount:500},{date:Date.now()+432e6,item:"Screen development",amount:2e3}]},{accountId:5,name:"Crypto Bank",orders:[{date:Date.now(),item:"Slide work",amount:1e3},{date:Date.now()+432e6,item:"Computer order",amount:15e3},{date:Date.now()+864e6,item:"Programming",amount:21e3}]}],Z=function(c){return{accountId:c}};function w(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"porrtal-entity-menu",7)(2,"span",8)(3,"mat-icon"),t._uU(4,"account_box"),t.qZA(),t.TgZ(5,"span",4),t._uU(6),t.qZA()()(),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"number"),t.qZA(),t.BQk()),2&c){const e=o.$implicit;t.xp6(1),t.Q6J("state",t.VKq(6,Z,e.accountId)),t.xp6(5),t.Oqu(e.name),t.xp6(2),t.hij(" $ ",t.xi3(9,3,e.total,"1.0-0")," ")}}class m{constructor(o){this.shellStateService=o,this.topThreeAccounts=[],this.topThreeAccounts=[...l.map(e=>{const n=e.orders.reduce((r,U)=>r+U.amount,0);return{...e,total:n}}).sort((e,n)=>n.total-e.total).filter((e,n)=>n<3)],console.log("top three accounts",this.topThreeAccounts)}static#t=this.\u0275fac=function(e){return new(e||m)(t.Y36(f.vv))};static#e=this.\u0275cmp=t.Xpm({type:m,selectors:[["porrtal-account-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:11,vars:1,consts:[[1,"container"],[1,"title"],[1,"new-account-container"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto",3,"click"],[2,"margin-left","5px"],[1,"data-container"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2,"Top Three Accounts"),t.qZA(),t.TgZ(3,"div",2)(4,"span",3),t.NdJ("click",function(){return n.shellStateService.dispatch({type:"launchView",viewId:"AccountCreateComponent"})}),t.TgZ(5,"mat-icon"),t._uU(6,"add_circle"),t.qZA(),t.TgZ(7,"span",4),t._uU(8,"New Account"),t.qZA()()(),t.TgZ(9,"div",5),t.YNc(10,w,10,8,"ng-container",6),t.qZA()()),2&e&&(t.xp6(10),t.Q6J("ngForOf",n.topThreeAccounts))},dependencies:[i.ez,i.sg,i.JJ,s.Ps,s.Hw,T.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.new-account-container[_ngcontent-%COMP%]{margin-top:30px}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;align-items:center;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"]})}var x=a(54004),y=a(15439);function A(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.BQk()),2&c){const e=o.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.item),t.xp6(2),t.Oqu(n.formatAmount(e.amount)),t.xp6(2),t.Oqu(n.Moment(e.date).format("YYYY-DD-MM"))}}const S=function(c){return{accountId:c}};function M(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"porrtal-entity-menu",5)(2,"span",6)(3,"mat-icon"),t._uU(4,"account_box"),t.qZA(),t.TgZ(5,"span",7),t._uU(6),t.qZA()()(),t.TgZ(7,"div",8),t.YNc(8,A,7,3,"ng-container",4),t.qZA(),t.BQk()),2&c){const e=o.$implicit;t.xp6(1),t.Q6J("state",t.VKq(3,S,e.accountId)),t.xp6(5),t.Oqu(e.name),t.xp6(2),t.Q6J("ngForOf",e.orders)}}function N(c,o){if(1&c&&(t.ynx(0),t.YNc(1,M,9,5,"ng-container",4),t.BQk()),2&c){const e=o.ngIf;t.xp6(1),t.Q6J("ngForOf",e)}}class u{constructor(o){this.searchStateService=o,this.Moment=y,this.searchText$=o.select("debouncedSearchText"),this.filteredAccounts$=o.select("debouncedSearchText").pipe((0,x.U)(e=>l.filter(n=>JSON.stringify(n).toLowerCase().indexOf(e.toLowerCase())>=0)))}formatAmount(o){return"$"+o.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}static#t=this.\u0275fac=function(e){return new(e||u)(t.Y36(f.tx))};static#e=this.\u0275cmp=t.Xpm({type:u,selectors:[["porrtal-account-search"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:7,vars:6,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngIf"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"],[2,"margin-left","5px"],[1,"orders-data-container"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2),t.ALo(3,"async"),t.qZA(),t.TgZ(4,"div",2),t.YNc(5,N,2,1,"ng-container",3),t.ALo(6,"async"),t.qZA()()),2&e&&(t.xp6(2),t.hij("Account Search: ",t.lcZ(3,2,n.searchText$),""),t.xp6(3),t.Q6J("ngIf",t.lcZ(6,4,n.filteredAccounts$)))},dependencies:[i.ez,i.sg,i.O5,i.Ov,s.Ps,s.Hw,T.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:5px;padding-bottom:4px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px;margin-top:30px}.orders-data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin:15px 15px 15px 45px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}function I(c,o){if(1&c&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.BQk()),2&c){const e=o.$implicit,n=t.oxw();t.xp6(2),t.Oqu(e.item),t.xp6(2),t.hij(" ",e.amountText," "),t.xp6(2),t.Oqu(n.Moment(e.date).format("YYYY-DD-MM"))}}class d{constructor(){this.Moment=y}set viewState(o){if(this._viewState=o,this._viewState?.state&&this._viewState?.state.accountId){const e=this._viewState?.state.accountId;this.account=l.find(n=>n.accountId===e),this.orders=[],this.account&&(this.orders=this.account.orders.map(n=>({...n,amountText:"$"+n.amount.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")})))}}get viewState(){return this._viewState}static#t=this.\u0275fac=function(e){return new(e||d)};static#e=this.\u0275cmp=t.Xpm({type:d,selectors:[["porrtal-account-detail"]],inputs:{viewState:"viewState"},standalone:!0,features:[t.jDz],decls:5,vars:3,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2),t.qZA(),t.TgZ(3,"div",2),t.YNc(4,I,7,3,"ng-container",3),t.qZA()()),2&e&&(t.xp6(2),t.AsE(" ",null==n.account?null:n.account.name," (",null==n.account?null:n.account.accountId,") - Account Detail "),t.xp6(2),t.Q6J("ngForOf",n.orders))},dependencies:[i.ez,i.sg],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class g{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(e){return new(e||g)};static#e=this.\u0275cmp=t.Xpm({type:g,selectors:[["porrtal-account-billing-history"]],standalone:!0,features:[t.jDz],decls:2,vars:0,template:function(e,n){1&e&&(t.TgZ(0,"p"),t._uU(1,"account-billing-history works!"),t.qZA())},dependencies:[i.ez],changeDetection:0})}class h{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(e){return new(e||h)};static#e=this.\u0275cmp=t.Xpm({type:h,selectors:[["porrtal-account-create"]],standalone:!0,features:[t.jDz],decls:2,vars:0,template:function(e,n){1&e&&(t.TgZ(0,"p"),t._uU(1,"account-create works!"),t.qZA())},dependencies:[i.ez],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7016.ab23c90ac351dac0.js b/apps/n/porrtal-io-app/public/angular/7016.ab23c90ac351dac0.js deleted file mode 100644 index febccaa8..00000000 --- a/apps/n/porrtal-io-app/public/angular/7016.ab23c90ac351dac0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7016],{7016:(y,i,d)=>{d.r(i),d.d(i,{k:()=>f});var u,h,_,s=d(1719),t={exports:{}};u=t,void 0!==(_=t.exports,Object.defineProperty(_,"__esModule",{value:!0}),h=void(_.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"AM",P:"PM",AM:"AM",PM:"PM","A.M.":"\uc624\uc804","P.M.":"\uc624\ud6c4",January:"1\uc6d4",February:"2\uc6d4",March:"3\uc6d4",April:"4\uc6d4",May:"5\uc6d4",June:"6\uc6d4",July:"7\uc6d4",August:"8\uc6d4",September:"9\uc6d4",October:"10\uc6d4",November:"11\uc6d4",December:"12\uc6d4",Jan:"1\uc6d4",Feb:"2\uc6d4",Mar:"3\uc6d4",Apr:"4\uc6d4","May(short)":"5\uc6d4",Jun:"6\uc6d4",Jul:"7\uc6d4",Aug:"8\uc6d4",Sep:"9\uc6d4",Oct:"10\uc6d4",Nov:"11\uc6d4",Dec:"12\uc6d4",Sunday:"\uc77c\uc694\uc77c",Monday:"\uc6d4\uc694\uc77c",Tuesday:"\ud654\uc694\uc77c",Wednesday:"\uc218\uc694\uc77c",Thursday:"\ubaa9\uc694\uc77c",Friday:"\uae08\uc694\uc77c",Saturday:"\ud1a0\uc694\uc77c",Sun:"\uc77c",Mon:"\uc6d4",Tue:"\ud654",Wed:"\uc218",Thu:"\ubaa9",Fri:"\uae08",Sat:"\ud1a0",_dateOrd:function(r){var e="\uc77c";if(r<11||r>13)switch(r%10){case 1:case 2:case 3:e="\uc77c"}return e},"Zoom Out":"\ucd95\uc18c",Play:"\uc2dc\uc791",Stop:"\uc815\uc9c0",Legend:"\ubc94\ub840","Click, tap or press ENTER to toggle":"\ucf1c\uace0 \ub044\ub824\uba74 \ud074\ub9ad, \ud0ed \ud639\uc740 \uc5d4\ud130\ub97c \ub20c\ub7ec\uc8fc\uc138\uc694.",Loading:"\ubd88\ub7ec\uc624\ub294 \uc911",Home:"\ud648",Chart:"\ucc28\ud2b8","Serial chart":"\uc2dc\ub9ac\uc5bc \ucc28\ud2b8","X/Y chart":"X/Y \ucc28\ud2b8","Pie chart":"\ud30c\uc774 \ucc28\ud2b8","Gauge chart":"\uac8c\uc774\uc9c0 \ucc28\ud2b8","Radar chart":"\ub808\uc774\ub354 \ucc28\ud2b8","Sankey diagram":"\uc0dd\ud0a4 \ub2e4\uc774\uc5b4\uadf8\ub7a8","Flow diagram":"\ud50c\ub85c\uc6b0 \ub2e4\uc774\uc5b4\uadf8\ub7a8","Chord diagram":"\ucf54\ub4dc \ub2e4\uc774\uc5b4\uadf8\ub7a8","TreeMap chart":"\ud2b8\ub9ac\ub9f5 \ucc28\ud2b8","Force directed tree":"\ud3ec\uc2a4 \ub514\ub809\ud2f0\ub4dc \ud2b8\ub9ac","Sliced chart":"\uc2ac\ub77c\uc774\uc2a4 \ucc28\ud2b8",Series:"\uc2dc\ub9ac\uc988","Candlestick Series":"\uce94\ub4e4\uc2a4\ud2f1 \uc2dc\ub9ac\uc988","OHLC Series":"OHLC \uc2dc\ub9ac\uc988","Column Series":"\uceec\ub7fc \uc2dc\ub9ac\uc988","Line Series":"\ub77c\uc778 \uc2dc\ub9ac\uc988","Pie Slice Series":"\ud30c\uc774 \uc2ac\ub77c\uc774\uc2a4 \uc2dc\ub9ac\uc988","Funnel Series":"\ud37c\ub110 \uc2dc\ub9ac\uc988","Pyramid Series":"\ud53c\ub77c\ubbf8\ub4dc \uc2dc\ub9ac\uc988","X/Y Series":"X/Y \uc2dc\ub9ac\uc988",Map:"\ub9f5","Press ENTER to zoom in":"\ud655\ub300\ud558\ub824\uba74 \uc5d4\ud130\ub97c \ub204\ub974\uc138\uc694.","Press ENTER to zoom out":"\ucd95\uc18c\ud558\ub824\uba74 \uc5d4\ud130\ub97c \ub204\ub974\uc138\uc694.","Use arrow keys to zoom in and out":"\ud655\ub300 \ud639\uc740 \ucd95\uc18c\ud558\ub824\uba74 \ubc29\ud5a5\ud0a4\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use plus and minus keys on your keyboard to zoom in and out":"\ud655\ub300 \ud639\uc740 \ucd95\uc18c\ud558\ub824\uba74 \ud0a4\ubcf4\ub4dc\uc758 +/- \ud0a4\ub97c \uc774\uc6a9\ud558\uc138\uc694.",Export:"\ub0b4\ubcf4\ub0b4\uae30",Image:"\uc774\ubbf8\uc9c0",Data:"\ub370\uc774\ud130",Print:"\uc778\uc1c4","Click, tap or press ENTER to open":"\uc5f4\ub824\uba74, \ud074\ub9ad, \ud0ed \ub610\ub294 \uc5d4\ud130\ub97c \ub204\ub974\uc138\uc694.","Click, tap or press ENTER to print.":"\ucd9c\ub825\ud558\ub824\uba74, \ud074\ub9ad, \ud0ed \ub610\ub294 \uc5d4\ud130\ub97c \ub204\ub974\uc138\uc694.","Click, tap or press ENTER to export as %1.":"%1(\uc73c)\ub85c \ub0b4\ubcf4\ub0b4\ub824\uba74 \ud074\ub9ad, \ud0ed \ub610\ub294 \uc5d4\ud130\ub97c \ub204\ub974\uc138\uc694.",'To save the image, right-click this link and choose "Save picture as..."':'\uc774\ubbf8\uc9c0\ub97c \uc800\uc7a5\ud558\ub824\uba74, \uc774 \ub9c1\ud06c\ub97c \ub9c8\uc6b0\uc2a4\ub85c \uc6b0\ud074\ub9ad\ud558\uc5ec "\ub2e4\ub978 \uc774\ub984\uc73c\ub85c \uc800\uc7a5"\uc744 \uc120\ud0dd\ud558\uc138\uc694.','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'\uc774\ubbf8\uc9c0\ub97c \uc800\uc7a5\ud558\ub824\uba74, \uc88c\uce21 \uc378\ub124\uc77c\uc744 \ub9c8\uc6b0\uc2a4\ub85c \uc6b0\ud074\ub9ad\ud558\uc5ec "\ub2e4\ub978 \uc774\ub984\uc73c\ub85c \uc800\uc7a5"\uc744 \uc120\ud0dd\ud558\uc138\uc694.',"(Press ESC to close this message)":"(\uc774 \uba54\uc2dc\uc9c0\ub97c \ub044\ub824\uba74 ESC\ub97c \ub204\ub974\uc138\uc694.)","Image Export Complete":"\uc774\ubbf8\uc9c0 \ub0b4\ubcf4\ub0b4\uae30 \uc644\ub8cc","Export operation took longer than expected. Something might have gone wrong.":"\ub0b4\ubcf4\ub0b4\uae30\uac00 \uc9c0\uc5f0\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubb38\uc81c\uac00 \uc5c6\ub294\uc9c0 \ud655\uc778\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.","Saved from":"\ub2e4\uc74c\uc73c\ub85c\ubd80\ud130 \uc800\uc7a5\ub428: ",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"\uc120\ud0dd \ubc94\uc704\ub97c \ubcc0\uacbd\ud558\ub824\uba74 \uc120\ud0dd \ubc84\ud2bc\uc774\ub098 \uc88c\uc6b0 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use left and right arrows to move selection":"\uc120\ud0dd \ubc94\uc704\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \uc88c\uc6b0 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use left and right arrows to move left selection":"\uc67c\ucabd \uc120\ud0dd \ubc94\uc704\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \uc88c\uc6b0 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use left and right arrows to move right selection":"\uc624\ub978\ucabd \uc120\ud0dd \ubc94\uc704\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \uc88c\uc6b0 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use TAB select grip buttons or up and down arrows to change selection":"\uc120\ud0dd \ubc94\uc704\ub97c \ubcc0\uacbd\ud558\ub824\uba74 \uc120\ud0dd \ubc84\ud2bc\uc774\ub098 \uc0c1\ud558 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use up and down arrows to move selection":"\uc120\ud0dd \ubc94\uc704\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \uc0c1\ud558 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use up and down arrows to move lower selection":"\ud558\ub2e8 \uc120\ud0dd \ubc94\uc704\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \uc0c1\ud558 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","Use up and down arrows to move upper selection":"\uc0c1\ub2e8 \uc120\ud0dd \ubc94\uc704\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \uc0c1\ud558 \ud654\uc0b4\ud45c\ub97c \uc774\uc6a9\ud558\uc138\uc694.","From %1 to %2":"%1 \ubd80\ud130 %2 \uae4c\uc9c0","From %1":"%1 \ubd80\ud130","To %1":"%1 \uae4c\uc9c0","No parser available for file: %1":"\ud30c\uc77c \ud30c\uc2f1 \ubd88\uac00\ub2a5: %1","Error parsing file: %1":"\ud30c\uc77c \ud30c\uc2f1 \uc624\ub958: %1","Unable to load file: %1":"\ud30c\uc77c \ub85c\ub4dc \ubd88\uac00\ub2a5: %1","Invalid date":"\ub0a0\uc9dc \uc62c\ubc14\ub974\uc9c0 \uc54a\uc74c"}))&&(u.exports=h);const f=function c(a,_){for(var r=0;r<_.length;r++){const e=_[r];if("string"!=typeof e&&!Array.isArray(e))for(const o in e)if("default"!==o&&!(o in a)){const n=Object.getOwnPropertyDescriptor(e,o);n&&Object.defineProperty(a,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,s.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7028.d9d13641d931a3a1.js b/apps/n/porrtal-io-app/public/angular/7028.d9d13641d931a3a1.js deleted file mode 100644 index db7ff4c7..00000000 --- a/apps/n/porrtal-io-app/public/angular/7028.d9d13641d931a3a1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7028],{37028:(g,d,s)=>{s.r(d),s.d(d,{e:()=>h});var u,_,t,l=s(1719),a={exports:{}};u=a,void 0!==(t=a.exports,Object.defineProperty(t,"__esModule",{value:!0}),_=void(t.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm::ss SSS",_date_second:"hh:mm:ss a",_date_minute:"hh:mm a",_date_hour:"hh:mm a",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(o){var e="th";if(o<11||o>13)switch(o%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},Play:"",Stop:"","Zoom Out":"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Chord diagram":"","Flow diagram":"","TreeMap chart":"",Series:"","Candlestick Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=_);const h=function m(n,t){for(var o=0;oe[r]})}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,l.g)(a.exports)},[a.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/71.44c8609a643511aa.js b/apps/n/porrtal-io-app/public/angular/71.44c8609a643511aa.js deleted file mode 100644 index c7e4a500..00000000 --- a/apps/n/porrtal-io-app/public/angular/71.44c8609a643511aa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[71],{10071:(V4,Q0,W0)=>{W0.r(Q0),W0.d(Q0,{l:()=>x1});var d0,z0,p0={exports:{}};d0=p0,void 0!==(z0={load:function z2(t0){const K2=t0.locateFile,u2={};var C=void 0!==C?C:{};const F2=(()=>{let d;return{resolve:g=>d(g),promise:new Promise(g=>d=g)}})();C.locateFile=K2,C.onRuntimeInitialized=()=>{F2.resolve(u2)},u2.Module=C,u2.whenLoaded=()=>F2.promise;var w2,Y2={};for(w2 in C)C.hasOwnProperty(w2)&&(Y2[w2]=C[w2]);var h0,e0,o0,j2,O2,K0="object"==typeof window,N2="function"==typeof importScripts,m0="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,A2="";m0?(A2=N2?require("path").dirname(A2)+"/":__dirname+"/",h0=function(d,g){var I=Q2(d);return I?g?I:I.toString():(j2||(j2=require("fs")),O2||(O2=require("path")),d=O2.normalize(d),j2.readFileSync(d,g?null:"utf8"))},o0=function(d){var g=h0(d,!0);return g.buffer||(g=new Uint8Array(g)),function O1(d,g){d||$2("Assertion failed: "+g)}(g.buffer),g},e0=function(d,g,I){var L=Q2(d);L&&g(L),j2||(j2=require("fs")),O2||(O2=require("path")),d=O2.normalize(d),j2.readFile(d,function(S,U){S?I(S):g(U.buffer)})},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),d0.exports=C,process.on("uncaughtException",function(d){if(!(d instanceof r4))throw d}),process.on("unhandledRejection",$2),C.inspect=function(){return"[Emscripten Module object]"}):(K0||N2)&&(N2?A2=self.location.href:typeof document<"u"&&document.currentScript&&(A2=document.currentScript.src),A2=0!==A2.indexOf("blob:")?A2.substr(0,A2.lastIndexOf("/")+1):"",h0=function(d){try{var g=new XMLHttpRequest;return g.open("GET",d,!1),g.send(null),g.responseText}catch(L){var I=Q2(d);if(I)return function a4(d){for(var g=[],I=0;I255&&(L&=255),g.push(String.fromCharCode(L))}return g.join("")}(I);throw L}},N2&&(o0=function(d){try{var g=new XMLHttpRequest;return g.open("GET",d,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}catch(L){var I=Q2(d);if(I)return I;throw L}}),e0=function(d,g,I){var L=new XMLHttpRequest;L.open("GET",d,!0),L.responseType="arraybuffer",L.onload=function(){if(200==L.status||0==L.status&&L.response)g(L.response);else{var S=Q2(d);S?g(S.buffer):I()}},L.onerror=I,L.send(null)});var U1=C.print||console.log.bind(console),D2=C.printErr||console.warn.bind(console);for(w2 in Y2)Y2.hasOwnProperty(w2)&&(C[w2]=Y2[w2]);Y2=null;var H2,Y0=0;C.wasmBinary&&(H2=C.wasmBinary);var V2,y2={Memory:function(d){this.buffer=new ArrayBuffer(65536*d.initial)},Module:function(d){},Instance:function(d,g){this.exports=function(I){for(var S,U=new Uint8Array(123),O=25;O>=0;--O)U[48+O]=52+O,U[65+O]=O,U[97+O]=26+O;function D(Q,c2,N){for(var p,r2,i=0,w=c2,P2=N.length,x2=c2+(3*P2>>2)-("="==N[P2-2])-("="==N[P2-1]);i>4,w>2),w>>0<=244){if(3&(f=(b=i[614])>>>(a=(r=n>>>0<11?16:n+11&-8)>>>3|0)|0)){n=(e=i[2504+(f=(t=a+(1&(-1^f))|0)<<3)>>2])+8|0,(0|(a=i[e+8>>2]))!=(0|(f=f+2496|0))?(i[a+12>>2]=f,i[f+8>>2]=a):(h=2456,m=f2(t)&b,i[h>>2]=m),i[e+4>>2]=3|(f=t<<3),i[4+(f=f+e|0)>>2]=1|i[f+4>>2];break i}if((A=i[616])>>>0>=r>>>0)break s;if(f){a=n=(f=(0-(n=(0-(n=2<>>12&16,a|=n=(f=f>>>n|0)>>>5&8,a|=n=(f=f>>>n|0)>>>2&4,o=i[2504+(n=(a=((a|=n=(f=f>>>n|0)>>>1&2)|(n=(f=f>>>n|0)>>>1&1))+(f>>>n|0)|0)<<3)>>2],(0|(f=i[o+8>>2]))!=(0|(n=n+2496|0))?(i[f+12>>2]=n,i[n+8>>2]=f):(b=f2(a)&b,i[614]=b),n=o+8|0,i[o+4>>2]=3|r,e=(f=a<<3)-r|0,i[4+(t=o+r|0)>>2]=1|e,i[f+o>>2]=e,A&&(a=2496+((f=A>>>3|0)<<3)|0,o=i[619],(f=1<>2]:(i[614]=f|b,f=a),i[a+8>>2]=o,i[f+12>>2]=o,i[o+12>>2]=a,i[o+8>>2]=f),i[619]=t,i[616]=e;break i}if(!(k=i[615]))break s;for(a=n=(f=(k&0-k)-1|0)>>>12&16,a|=n=(f=f>>>n|0)>>>5&8,a|=n=(f=f>>>n|0)>>>2&4,f=i[2760+(((a|=n=(f=f>>>n|0)>>>1&2)|(n=(f=f>>>n|0)>>>1&1))+(f>>>n|0)<<2)>>2],t=(-8&i[f+4>>2])-r|0,a=f;(n=i[a+16>>2])||(n=i[a+20>>2]);)t=(e=(a=(-8&i[n+4>>2])-r|0)>>>0>>0)?a:t,f=e?n:f,a=n;if((s=f+r|0)>>>0<=f>>>0)break A;if(l=i[f+24>>2],(0|(e=i[f+12>>2]))!=(0|f)){i[(n=i[f+8>>2])+12>>2]=e,i[e+8>>2]=n;break f}if(!(n=i[(a=f+20|0)>>2])){if(!(n=i[f+16>>2]))break o;a=f+16|0}for(;o=a,e=n,(n=i[(a=n+20|0)>>2])||(a=e+16|0,n=i[e+16>>2]););i[o>>2]=0;break f}if(r=-1,!(n>>>0>4294967231)&&(r=-8&(n=n+11|0),s=i[615])){t=0-r|0,b=0,r>>>0<256||(b=31,r>>>0>16777215||(n=n>>>8|0,n<<=o=n+1048320>>>16&8,b=28+((n=((n<<=a=n+520192>>>16&4)<<(f=n+245760>>>16&2)>>>15|0)-(f|a|o)|0)<<1|r>>>n+21&1)|0));k:{r:{if(a=i[2760+(b<<2)>>2])for(n=0,f=r<<(31==(0|b)?0:25-(b>>>1|0)|0);;){if(!((o=(-8&i[a+4>>2])-r|0)>>>0>=t>>>0||(e=a,t=o))){t=0,n=a;break r}if(o=i[a+20>>2],a=i[16+((f>>>29&4)+a|0)>>2],n=o?(0|o)==(0|a)?n:o:n,f<<=1,!a)break}else n=0;if(!(n|e)){if(e=0,!(n=(0-(n=2<>>12&16,a|=n=(f=f>>>n|0)>>>5&8,a|=n=(f=f>>>n|0)>>>2&4,n=i[2760+(((a|=n=(f=f>>>n|0)>>>1&2)|(n=(f=f>>>n|0)>>>1&1))+(f>>>n|0)<<2)>>2]}if(!n)break k}for(;t=(a=(f=(-8&i[n+4>>2])-r|0)>>>0>>0)?f:t,e=a?n:e,n=(f=i[n+16>>2])||i[n+20>>2];);}if(!(!e|i[616]-r>>>0<=t>>>0)){if((k=e+r|0)>>>0<=e>>>0)break A;if(b=i[e+24>>2],(0|e)!=(0|(f=i[e+12>>2]))){i[(n=i[e+8>>2])+12>>2]=f,i[f+8>>2]=n;break a}if(!(n=i[(a=e+20|0)>>2])){if(!(n=i[e+16>>2]))break u;a=e+16|0}for(;o=a,f=n,(n=i[(a=n+20|0)>>2])||(a=f+16|0,n=i[f+16>>2]););i[o>>2]=0;break a}}}if((a=i[616])>>>0>=r>>>0){t=i[619],(f=a-r|0)>>>0>=16?(i[616]=f,i[619]=n=t+r|0,i[n+4>>2]=1|f,i[a+t>>2]=f,i[t+4>>2]=3|r):(i[619]=0,i[616]=0,i[t+4>>2]=3|a,i[4+(n=a+t|0)>>2]=1|i[n+4>>2]),n=t+8|0;break i}if((k=i[617])>>>0>r>>>0){i[617]=f=k-r|0,n=(a=i[620])+r|0,i[620]=n,i[n+4>>2]=1|f,i[a+4>>2]=3|r,n=a+8|0;break i}if(n=0,f=s=r+47|0,i[732]?a=i[734]:(i[735]=-1,i[736]=-1,i[733]=4096,i[734]=4096,i[732]=v+12&-16^1431655768,i[737]=0,i[725]=0,a=4096),(a=(o=f+a|0)&(e=0-a|0))>>>0<=r>>>0||(t=i[724])&&t>>>0<(b=(f=i[722])+a|0)>>>0|f>>>0>=b>>>0)break i;if(4&w[2900])break b;s:{k:{if(t=i[620])for(n=2904;;){if(t>>>0<(f=i[n>>2])+i[n+4>>2]>>>0&&f>>>0<=t>>>0)break k;if(!(n=i[n+8>>2]))break}if(-1==(0|(f=U2(0)))||(b=a,(n=(t=i[733])-1|0)&f&&(b=(a-f|0)+(n+f&0-t)|0),b>>>0<=r>>>0|b>>>0>2147483646)||(t=i[724])&&t>>>0<(e=(n=i[722])+b|0)>>>0|n>>>0>=e>>>0)break e;if((0|f)!=(0|(n=U2(b))))break s;break t}if((b=e&o-k)>>>0>2147483646)break e;if((0|(f=U2(b)))==(i[n>>2]+i[n+4>>2]|0))break c;n=f}if(!(-1==(0|n)|r+48>>>0<=b>>>0)){if((f=(f=i[734])+(s-b|0)&0-f)>>>0>2147483646){f=n;break t}if(-1!=(0|U2(f))){b=f+b|0,f=n;break t}U2(0-b|0);break e}if(f=n,-1!=(0|n))break t;break e}o2()}e=0;break f}f=0;break a}if(-1!=(0|f))break t}i[725]=4|i[725]}if(a>>>0>2147483646||-1==(0|(f=U2(a)))|-1==(0|(n=U2(0)))|n>>>0<=f>>>0||(b=n-f|0)>>>0<=r+40>>>0)break n}i[722]=n=i[722]+b|0,n>>>0>x2[723]&&(i[723]=n);t:{b:{e:{if(o=i[620]){for(n=2904;;){if(((t=i[n>>2])+(a=i[n+4>>2])|0)==(0|f))break e;if(!(n=i[n+8>>2]))break}break b}for((n=i[618])>>>0<=f>>>0&&n||(i[618]=f),n=0,i[727]=b,i[726]=f,i[622]=-1,i[623]=i[732],i[729]=0;a=2496+(t=n<<3)|0,i[t+2504>>2]=a,i[t+2508>>2]=a,32!=(0|(n=n+1|0)););a=(t=b-40|0)-(n=f+8&7?-8-f&7:0)|0,i[617]=a,i[620]=n=n+f|0,i[n+4>>2]=1|a,i[4+(f+t|0)>>2]=40,i[621]=i[736];break t}if(!(8&w[n+12|0]|t>>>0>o>>>0|f>>>0<=o>>>0)){i[n+4>>2]=a+b,a=(n=o+8&7?-8-o&7:0)+o|0,i[620]=a,n=(f=i[617]+b|0)-n|0,i[617]=n,i[a+4>>2]=1|n,i[4+(f+o|0)>>2]=40,i[621]=i[736];break t}}x2[618]>f>>>0&&(i[618]=f),a=f+b|0,n=2904;b:{e:{c:{u:{o:{A:{for(;;){if((0|a)!=i[n>>2]){if(n=i[n+8>>2])continue;break A}break}if(!(8&w[n+12|0]))break o}for(n=2904;;){if((a=i[n>>2])>>>0<=o>>>0&&(e=a+i[n+4>>2]|0)>>>0>o>>>0)break u;n=i[n+8>>2]}}if(i[n>>2]=f,i[n+4>>2]=i[n+4>>2]+b,i[4+(s=(f+8&7?-8-f&7:0)+f|0)>>2]=3|r,a=(b=a+(a+8&7?-8-a&7:0)|0)-(k=r+s|0)|0,(0|o)==(0|b)){i[620]=k,i[617]=n=i[617]+a|0,i[k+4>>2]=1|n;break e}if(i[619]==(0|b)){i[619]=k,i[616]=n=i[616]+a|0,i[k+4>>2]=1|n,i[n+k>>2]=n;break e}if(1==(3&(n=i[b+4>>2]))){o=-8&n;o:if(n>>>0<=255){if(n=n>>>3|0,(0|(f=i[b+12>>2]))==(0|(t=i[b+8>>2]))){h=2456,m=i[614]&f2(n),i[h>>2]=m;break o}i[t+12>>2]=f,i[f+8>>2]=t}else{if(r=i[b+24>>2],(0|b)==(0|(f=i[b+12>>2])))if((t=i[(n=b+20|0)>>2])||(t=i[(n=b+16|0)>>2])){for(;e=n,(t=i[(n=(f=t)+20|0)>>2])||(n=f+16|0,t=i[f+16>>2]););i[e>>2]=0}else f=0;else i[(n=i[b+8>>2])+12>>2]=f,i[f+8>>2]=n;if(r){A:{if(i[(n=2760+((t=i[b+28>>2])<<2)|0)>>2]==(0|b)){if(i[n>>2]=f,f)break A;h=2460,m=i[615]&f2(t),i[h>>2]=m;break o}if(i[r+(i[r+16>>2]==(0|b)?16:20)>>2]=f,!f)break o}i[f+24>>2]=r,(n=i[b+16>>2])&&(i[f+16>>2]=n,i[n+24>>2]=f),(n=i[b+20>>2])&&(i[f+20>>2]=n,i[n+24>>2]=f)}}b=o+b|0,a=a+o|0}if(i[b+4>>2]=-2&i[b+4>>2],i[k+4>>2]=1|a,i[a+k>>2]=a,a>>>0<=255){f=2496+((n=a>>>3|0)<<3)|0,(a=i[614])&(n=1<>2]:(i[614]=n|a,n=f),i[f+8>>2]=k,i[n+12>>2]=k,i[k+12>>2]=f,i[k+8>>2]=n;break e}if(n=31,a>>>0<=16777215&&(n=a>>>8|0,n<<=e=n+1048320>>>16&8,n=28+((n=((n<<=t=n+520192>>>16&4)<<(f=n+245760>>>16&2)>>>15|0)-(f|t|e)|0)<<1|a>>>n+21&1)|0),i[k+28>>2]=n,i[k+16>>2]=0,i[k+20>>2]=0,e=2760+(n<<2)|0,(t=i[615])&(f=1<>>1|0)|0),f=i[e>>2];;){if(t=f,(-8&i[f+4>>2])==(0|a))break c;if(f=n>>>29|0,n<<=1,!(f=i[16+(e=t+(4&f)|0)>>2]))break}i[e+16>>2]=k,i[k+24>>2]=t}else i[615]=f|t,i[e>>2]=k,i[k+24>>2]=e;i[k+12>>2]=k,i[k+8>>2]=k;break e}for(a=(t=b-40|0)-(n=f+8&7?-8-f&7:0)|0,i[617]=a,i[620]=n=n+f|0,i[n+4>>2]=1|a,i[4+(f+t|0)>>2]=40,i[621]=i[736],i[(a=(n=(e+(e-39&7?39-e&7:0)|0)-47|0)>>>0>>0?o:n)+4>>2]=27,n=i[729],i[a+16>>2]=i[728],i[a+20>>2]=n,n=i[727],i[a+8>>2]=i[726],i[a+12>>2]=n,i[728]=a+8,i[727]=b,i[726]=f,i[729]=0,n=a+24|0;i[n+4>>2]=7,f=n+8|0,n=n+4|0,f>>>0>>0;);if((0|a)==(0|o))break t;if(i[a+4>>2]=-2&i[a+4>>2],i[o+4>>2]=1|(e=a-o|0),i[a>>2]=e,e>>>0<=255){f=2496+((n=e>>>3|0)<<3)|0,(a=i[614])&(n=1<>2]:(i[614]=n|a,n=f),i[f+8>>2]=o,i[n+12>>2]=o,i[o+12>>2]=f,i[o+8>>2]=n;break t}if(n=31,i[o+16>>2]=0,i[o+20>>2]=0,e>>>0<=16777215&&(n=e>>>8|0,n<<=t=n+1048320>>>16&8,n=28+((n=((n<<=a=n+520192>>>16&4)<<(f=n+245760>>>16&2)>>>15|0)-(f|a|t)|0)<<1|e>>>n+21&1)|0),i[o+28>>2]=n,t=2760+(n<<2)|0,(a=i[615])&(f=1<>>1|0)|0),f=i[t>>2];;){if(a=f,(0|e)==(-8&i[f+4>>2]))break b;if(f=n>>>29|0,n<<=1,!(f=i[16+(t=a+(4&f)|0)>>2]))break}i[t+16>>2]=o,i[o+24>>2]=a}else i[615]=f|a,i[t>>2]=o,i[o+24>>2]=t;i[o+12>>2]=o,i[o+8>>2]=o;break t}i[(n=i[t+8>>2])+12>>2]=k,i[t+8>>2]=k,i[k+24>>2]=0,i[k+12>>2]=t,i[k+8>>2]=n}n=s+8|0;break i}i[(n=i[a+8>>2])+12>>2]=o,i[a+8>>2]=o,i[o+24>>2]=0,i[o+12>>2]=a,i[o+8>>2]=n}if(!((n=i[617])>>>0<=r>>>0)){i[617]=f=n-r|0,n=(a=i[620])+r|0,i[620]=n,i[n+4>>2]=1|f,i[a+4>>2]=3|r,n=a+8|0;break i}}i[613]=48,n=0;break i}a:if(b){n:{if(i[(n=2760+((a=i[e+28>>2])<<2)|0)>>2]==(0|e)){if(i[n>>2]=f,f)break n;s=f2(a)&s,i[615]=s;break a}if(i[b+(i[b+16>>2]==(0|e)?16:20)>>2]=f,!f)break a}i[f+24>>2]=b,(n=i[e+16>>2])&&(i[f+16>>2]=n,i[n+24>>2]=f),(n=i[e+20>>2])&&(i[f+20>>2]=n,i[n+24>>2]=f)}a:if(t>>>0<=15)n=t+r|0,i[e+4>>2]=3|n,i[4+(n=n+e|0)>>2]=1|i[n+4>>2];else if(i[e+4>>2]=3|r,i[k+4>>2]=1|t,i[t+k>>2]=t,t>>>0<=255)f=2496+((n=t>>>3|0)<<3)|0,(a=i[614])&(n=1<>2]:(i[614]=n|a,n=f),i[f+8>>2]=k,i[n+12>>2]=k,i[k+12>>2]=f,i[k+8>>2]=n;else{n=31,t>>>0<=16777215&&(n=t>>>8|0,n<<=o=n+1048320>>>16&8,n=28+((n=((n<<=a=n+520192>>>16&4)<<(f=n+245760>>>16&2)>>>15|0)-(f|a|o)|0)<<1|t>>>n+21&1)|0),i[k+28>>2]=n,i[k+16>>2]=0,i[k+20>>2]=0,a=2760+(n<<2)|0;n:{if((f=1<>>1|0)|0),r=i[a>>2];;){if((-8&i[(f=r)+4>>2])==(0|t))break n;if(a=n>>>29|0,n<<=1,!(r=i[16+(a=f+(4&a)|0)>>2]))break}i[a+16>>2]=k,i[k+24>>2]=f}else i[615]=f|s,i[a>>2]=k,i[k+24>>2]=a;i[k+12>>2]=k,i[k+8>>2]=k;break a}i[(n=i[f+8>>2])+12>>2]=k,i[f+8>>2]=k,i[k+24>>2]=0,i[k+12>>2]=f,i[k+8>>2]=n}n=e+8|0;break i}f:if(l){a:{if(i[(n=2760+((a=i[f+28>>2])<<2)|0)>>2]==(0|f)){if(i[n>>2]=e,e)break a;h=2460,m=f2(a)&k,i[h>>2]=m;break f}if(i[(i[l+16>>2]==(0|f)?16:20)+l>>2]=e,!e)break f}i[e+24>>2]=l,(n=i[f+16>>2])&&(i[e+16>>2]=n,i[n+24>>2]=e),(n=i[f+20>>2])&&(i[e+20>>2]=n,i[n+24>>2]=e)}t>>>0<=15?(i[f+4>>2]=3|(n=t+r|0),i[4+(n=n+f|0)>>2]=1|i[n+4>>2]):(i[f+4>>2]=3|r,i[s+4>>2]=1|t,i[t+s>>2]=t,A&&(a=2496+((n=A>>>3|0)<<3)|0,e=i[619],(n=1<>2]:(i[614]=n|b,n=a),i[a+8>>2]=e,i[n+12>>2]=e,i[e+12>>2]=a,i[e+8>>2]=n),i[619]=s,i[616]=t),n=f+8|0}return B=v+16|0,0|n}function c1(n,f){var k,E,_,P,x,F,j,Y,a=u(0),t=u(0),e=0,b=u(0),o=u(0),r=0,s=u(0),A=0,l=0,v=0,h=u(0),m=u(0),y=u(0),R=0,q=0,k2=u(0),m2=0,n0=u(0);B=k=B-144|0,_=i[(j=i[(Y=i[i[i[f+4>>2]+8>>2]>>2])>>2])+16>>2],x=i[i[j+4>>2]+16>>2],G(P=i[i[(F=i[f>>2])+4>>2]+16>>2],i[n+72>>2],E=i[F+16>>2])>u(0)&&(a=c[P+28>>2],t=c[P+32>>2],b=c[(e=i[n+72>>2])+28>>2],o=c[e+32>>2],s=c[E+28>>2],X[k+40>>3]=c[E+32>>2],X[k+32>>3]=s,X[k+24>>3]=o,X[k+16>>3]=b,X[k+8>>3]=t,X[k>>3]=a,S1(1098,k));i:{f:{a:if((0|E)!=(0|_)&&!((m=(a=c[E+32>>2])<=(t=c[P+32>>2])?a:t)>((t=c[_+32>>2])>=(b=c[x+32>>2])?t:b))){n:{if(!(!(a<=t)|(b=c[E+28>>2])!=(o=c[_+28>>2]))||bu(0)))break n;break a}if(G(P,_,E)>2])<(t=c[E+28>>2])|(c[A+32>>2]<=c[(l=E)+32>>2]?a==t:0)?(r=l,l=A):r=A,(a=c[(e=_)+28>>2])>(t=c[(v=x)+28>>2])|(c[v+32>>2]<=c[e+32>>2]?a==t:0)?(a=t,A=e,e=v):A=v,a>(t=c[l+28>>2])|(c[l+32>>2]<=c[e+32>>2]?a==t:0)?(t=a,v=A,R=e,A=r,e=l):(v=r,R=l),r=k;n:if((o=c[A+28>>2])>t|(c[R+32>>2]<=c[A+32>>2]?t==o:0))if(h=c[v+28>>2],!(c[A+32>>2]<=c[v+32>>2])|o!=h&&!(h>o))if(t=G(e,R,A),a=G(e,v,A),l=u(t-a)>2])+(s=c[v+28>>2]))*u(.5)),t==u(0))break n;a=u(o+u(u(b/u(b+t))*u(s-o)))}else a=c[v+28>>2],a=u(a+u(u(t/u(b+t))*u(c[R+28>>2]-a)));else{if(a=u(0),s=u(o-t),b=u(t-c[e+28>>2]),(m=u(s+b))>u(0)&&(a=c[((l=b>2],a=u(u(c[R+32>>2]-a)+u(u((l?b:s)/m)*u(a-c[(l?A:e)+32>>2])))),k2=u(-a),m=a,h=u(h-o),(b=u(s+h))>u(0)&&(y=c[((l=s>2],y=u(u(c[A+32>>2]-y)+u(u((l?s:h)/b)*u(y-c[(l?v:R)+32>>2])))),l=u(a+y)>2]=a,(a=c[e+32>>2])<(t=c[A+32>>2])|(c[e+28>>2]<=c[A+28>>2]?a==t:0)?(r=A,A=e):r=e,(t=c[v+32>>2])>(a=c[R+32>>2])|(c[R+28>>2]<=c[v+28>>2]?a==t:0)?(t=a,e=v,v=R):e=R,(a=c[A+32>>2])>2]<=c[v+28>>2]?a==t:0)?(R=e,l=v,e=r,v=A):(R=r,l=A);n:{t:if((o=c[l+32>>2])<(s=c[e+32>>2])|(c[l+28>>2]<=c[e+28>>2]?o==s:0)){if(!(!(c[e+28>>2]<=c[R+28>>2])|s!=(y=c[R+32>>2]))||y>s){if(a=u(0),t=u(0),h=u(s-o),b=u(o-c[v+32>>2]),(m=u(h+b))>u(0)&&(t=c[((r=b>2],t=u(u(c[l+28>>2]-t)+u(u((r?b:h)/m)*u(t-c[(r?e:v)+28>>2])))),n0=u(-t),m=t,y=u(y-s),(b=u(h+y))>u(0)&&(k2=c[e+28>>2],a=c[((e=h>2],a=u(u(k2-a)+u(u((e?h:y)/b)*u(a-c[(e?R:l)+28>>2])))),e=u(t+a)>2]=o+u(h*u(t/u(t+a)));break n}c[k+88>>2]=s+u(u(o-s)*u(a/u(t+a)));break n}if(a=u(0),t=u(0),b=u(s-o),m=u(o-(h=c[v+32>>2])),u(b+m)>u(0)&&(t=u(u(m*u((t=c[l+28>>2])-c[e+28>>2]))+u(b*u(t-c[v+28>>2])))),m=u(-t),b=t,s=u(s-y),h=u(y-h),u(s+h)>u(0)&&(a=u(u(h*u((a=c[R+28>>2])-c[e+28>>2]))+u(s*u(a-c[v+28>>2])))),e=u(t-a)>2]=u(o+y)*u(.5);break n}c[k+88>>2]=o+u(u(y-o)*u(t/u(t+a)));break n}c[k+88>>2]=y+u(u(o-y)*u(a/u(t+a)));break n}c[k+88>>2]=u(o+s)*u(.5)}n:{if((a=c[k+84>>2])<(b=c[(r=i[n+72>>2])+28>>2]))t=c[r+32>>2];else if(a!=b||!((t=c[r+32>>2])>=c[k+88>>2]))break n;c[k+88>>2]=t,c[k+84>>2]=b,a=b}A=e=E,(t=b=c[e+28>>2])<(o=c[_+28>>2])||b==o&&(t=b,A=E,c[e+32>>2]<=c[_+32>>2])||(t=o,A=_),e=A;n:{if(a>t)o=c[e+32>>2];else if(a!=t||!((o=c[e+32>>2])<=c[k+88>>2]))break n;c[k+88>>2]=o,c[k+84>>2]=t,b=c[E+28>>2],a=t}if(c[_+28>>2]!=a|c[k+88>>2]!=c[_+32>>2]&&(c[k+88>>2]!=c[E+32>>2]||a!=b)){n:{a=c[r+28>>2];t:{if(c[P+32>>2]!=c[r+32>>2]||a!=c[P+28>>2]){if(G(P,r,k+56|0)>=u(0))break t;a=c[(r=i[n+72>>2])+28>>2]}if(c[x+32>>2]==c[r+32>>2]&&a==c[x+28>>2]||!(G(x,r,k+56|0)<=u(0)))break n}if((0|(e=i[n+72>>2]))==(0|x)){if(!n2(i[F+4>>2])||!z(i[j+4>>2],F))break i;for(e=i[i[f>>2]+16>>2];(0|e)==i[(A=i[(f=i[i[i[f+4>>2]+4>>2]>>2])>>2])+16>>2];);if(r=f,w[f+15|0]&&(r=0,(e=d2(i[i[i[i[i[f+4>>2]+8>>2]>>2]>>2]+4>>2],i[A+12>>2]))&&$(i[f>>2])&&(i[f>>2]=e,p[f+15|0]=0,i[e+24>>2]=f,r=i[i[i[f+4>>2]+4>>2]>>2])),!r)break i;f=i[(e=i[i[i[r+4>>2]+8>>2]>>2])>>2],a0(n,e,Y),m2=1,T2(n,r,i[i[f+4>>2]+12>>2],f,f,1);break a}if((0|e)==(0|P)){if(!n2(i[j+4>>2])||!z(i[F+12>>2],i[i[j+4>>2]+12>>2]))break i;for(r=i[i[i[f>>2]+4>>2]+16>>2],e=f;(0|r)==i[i[i[(e=i[i[i[e+4>>2]+4>>2]>>2])>>2]+4>>2]+16>>2];);r=i[i[i[i[i[i[e+4>>2]+8>>2]>>2]>>2]+4>>2]+8>>2],i[f>>2]=i[i[j+4>>2]+12>>2],m2=1,T2(n,e,i[a0(n,f,0)+8>>2],i[i[F+4>>2]+8>>2],r,1);break a}if(G(P,e,k+56|0)>=u(0)){if(p[f+14|0]=1,p[i[i[i[f+4>>2]+4>>2]>>2]+14|0]=1,!n2(i[F+4>>2]))break i;c[(r=i[F+16>>2])+28>>2]=c[(e=i[n+72>>2])+28>>2],c[r+32>>2]=c[e+32>>2]}else e=i[n+72>>2];if(!(G(x,e,k+56|0)<=u(0)))break a;if(p[Y+14|0]=1,p[f+14|0]=1,!n2(i[j+4>>2]))break i;c[(f=i[j+16>>2])+28>>2]=c[(n=i[n+72>>2])+28>>2],c[f+32>>2]=c[n+32>>2];break a}if(!n2(i[F+4>>2])||!n2(i[j+4>>2])||!z(i[i[j+4>>2]+12>>2],F))break i;if(c[(e=i[F+16>>2])+28>>2]=c[k+84>>2],c[e+32>>2]=c[k+88>>2],r=d1(i[n+68>>2],e),i[(e=i[F+16>>2])+36>>2]=r,2147483647==(0|r))break f;i[k+112>>2]=i[E+12>>2],i[k+116>>2]=i[P+12>>2],i[k+120>>2]=i[_+12>>2],i[k+124>>2]=i[x+12>>2],i[e+24>>2]=0,i[e+16>>2]=0,i[e+20>>2]=0,m=(t=u(c[P+28>>2]-(a=c[e+28>>2])))>2]-(t=c[e+32>>2])),o=u(m+(b>2]-a))>2]-t),s=u(m+(b>2]=b,o=u(.5*+s/q),c[k+100>>2]=o,s=u(u(u(c[E+16>>2]*b)+u(c[P+16>>2]*o))+u(0)),c[e+16>>2]=s,y=u(u(u(c[E+20>>2]*b)+u(c[P+20>>2]*o))+u(0)),c[e+20>>2]=y,o=u(u(u(c[E+24>>2]*b)+u(c[P+24>>2]*o))+u(0)),c[e+24>>2]=o,m=(b=u(c[_+28>>2]-a))>2]-t),b=u(m+(b>2]-a))>2]-t),a=u(m+(a>2]=a,t=u(.5*+b/q),c[k+108>>2]=t,b=u(s+u(u(c[_+16>>2]*a)+u(c[x+16>>2]*t))),c[e+16>>2]=b,s=u(y+u(u(c[_+20>>2]*a)+u(c[x+20>>2]*t))),c[e+20>>2]=s,a=u(o+u(u(c[_+24>>2]*a)+u(c[x+24>>2]*t))),c[e+24>>2]=a,c[k+140>>2]=a,c[k+136>>2]=s,c[k+132>>2]=b,i[e+12>>2]=0,e=e+12|0,8==(0|(r=i[n+1736>>2]))?M[i[n+76>>2]](k+132|0,k+112|0,k+96|0,e):M[0|r](k+132|0,k+112|0,k+96|0,e,i[n+1896>>2]),i[e>>2]|w[n+60|0]||(11==(0|(e=i[n+1732>>2]))?M[i[n+12>>2]](100156):M[0|e](100156,i[n+1896>>2]),p[n+60|0]=1),p[Y+14|0]=1,p[f+14|0]=1,p[i[i[i[f+4>>2]+4>>2]>>2]+14|0]=1}else M0(n,f)}return B=k+144|0,m2}B0(i[n+68>>2]),i[n+68>>2]=0}b2(n+1740|0,1),o2()}function R0(n,f,a,t,e,b){var k,_,x,o=0,r=0,s=0,A=0,l=0,v=0,h=0,m=0,y=0,E=0,R=0,P=0,F=0,j=0;B=k=B-80|0,i[k+76>>2]=f,x=k+55|0,_=k+56|0,f=0;i:{f:for(;;){(0|m)<0||((2147483647-m|0)<(0|f)?(i[613]=61,m=-1):m=f+m|0);a:{n:{t:{if(o=w[0|(f=A=i[k+76>>2])])for(;;){b:{e:if(o&=255){if(37!=(0|o))break b;for(o=f;;){if(37!=w[f+1|0])break e;if(i[k+76>>2]=r=f+2|0,o=o+1|0,l=w[f+2|0],f=r,37!=(0|l))break}}else o=f;if(f=o-A|0,n&&Z(n,A,f),f)continue f;E=-1,o=1,36!=w[(f=i[k+76>>2])+2|0]|p[i[k+76>>2]+1|0]-48>>>0>=10||(E=p[f+1|0]-48|0,P=1,o=3),i[(r=k)+76>>2]=f=o+f|0,y=0;e:if((r=(s=p[0|f])-32|0)>>>0>31)o=f;else if(o=f,75913&(r=1<>2]=o=f+1|0,y|=r,(r=(s=p[f+1|0])-32|0)>>>0>=32)break e;if(f=o,!(75913&(r=1<>2]}else{if(r=k,p[o+1|0]-48>>>0>=10||36!=w[(f=i[k+76>>2])+2|0]){if(P)break t;P=0,v=0,n&&(i[a>>2]=(f=i[a>>2])+4,v=i[f>>2]),f=i[k+76>>2]+1|0}else i[((p[f+1|0]<<2)+e|0)-192>>2]=10,v=i[((p[f+1|0]<<3)+t|0)-384>>2],P=1,f=f+3|0;if(i[r+76>>2]=f,(0|v)>-1)break e;v=0-v|0,y|=8192}l=-1;e:if(46==w[0|f])if(42!=w[f+1|0])i[k+76>>2]=f+1,l=_1(k+76|0),f=i[k+76>>2];else{if(!(p[f+2|0]-48>>>0>=10)&&36==w[(f=i[k+76>>2])+3|0]){i[((p[f+2|0]<<2)+e|0)-192>>2]=10,l=i[((p[f+2|0]<<3)+t|0)-384>>2],i[k+76>>2]=f=f+4|0;break e}if(P)break t;n?(i[a>>2]=(f=i[a>>2])+4,l=i[f>>2]):l=0,i[k+76>>2]=f=i[k+76>>2]+2|0}for(o=0;;){if(R=o,h=-1,p[0|f]-65>>>0>57)break i;if(i[k+76>>2]=s=f+1|0,o=p[0|f],f=s,!((o=w[1103+(o+W(R,58)|0)|0])-1>>>0<8))break}e:{c:{if(19!=(0|o)){if(!o)break i;if((0|E)>=0){i[(E<<2)+e>>2]=o,o=i[4+(f=(E<<3)+t|0)>>2],i[k+64>>2]=i[f>>2],i[k+68>>2]=o;break c}if(!n)break a;w1(k- -64|0,o,a),s=i[k+76>>2];break e}if((0|E)>-1)break i}if(f=0,!n)continue f}r=-65537&y,o=8192&y?r:y,h=0,E=1024,y=_;e:{c:{u:{o:{A:{s:{k:{r:{l:{v:{d:{p:{h:{m:{w:{switch(f=p[s-1|0],(f=R&&3==(15&f)?-33&f:f)-88|0){case 11:break e;case 9:case 13:case 14:case 15:break c;case 27:break k;case 12:case 17:break v;case 23:break d;case 0:case 32:break p;case 24:break h;case 22:break m;case 29:break w;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 25:case 26:case 28:case 30:case 31:break n}switch(f-65|0){case 0:case 4:case 5:case 6:break c;case 2:break A;case 1:case 3:break n}if(83==(0|f))break s;break n}s=i[k+64>>2],r=i[k+68>>2],E=1024;break l}f=0;m:switch(255&R){case 0:case 1:case 6:i[i[k+64>>2]>>2]=m;continue f;case 2:i[(o=i[k+64>>2])>>2]=m,i[o+4>>2]=m>>31;continue f;case 3:r2[i[k+64>>2]>>1]=m;continue f;case 4:p[i[k+64>>2]]=m;continue f;case 7:break m;default:continue f}i[(o=i[k+64>>2])>>2]=m,i[o+4>>2]=m>>31;continue f}l=l>>>0>8?l:8,o|=8,f=120}if(A=_,F=32&f,(r=R=i[k+68>>2])|(s=i[k+64>>2]))for(;p[0|(A=A-1|0)]=F|w[1632+(15&s)|0],j=!r&s>>>0>15|0!=(0|r),R=r,r=r>>>4|0,s=(15&R)<<28|s>>>4,j;);if(!(i[k+64>>2]|i[k+68>>2])|!(8&o))break r;E=1024+(f>>>4|0)|0,h=2;break r}if(f=_,(r=A=i[k+68>>2])|(s=i[k+64>>2]))for(;p[0|(f=f-1|0)]=7&s|48,R=!r&s>>>0>7|0!=(0|r),A=r,r=r>>>3|0,s=(7&A)<<29|s>>>3,R;);if(A=f,!(8&o))break r;l=(0|(f=_-A|0))<(0|l)?l:f+1|0;break r}r=f=i[k+68>>2],s=i[k+64>>2],(0|f)<-1||(0|f)<=-1?(r=0-(r+(0!=(0|s))|0)|0,i[k+64>>2]=s=0-s|0,i[k+68>>2]=r,h=1,E=1024):2048&o?(h=1,E=1025):E=(h=1&o)?1026:1024}A=q2(s,r,_)}if(o=(0|l)>-1?-65537&o:o,r=f=i[k+68>>2],!(l|0!=(0|(s=i[k+64>>2]))|0!=(0|f))){l=0,A=_;break n}l=(0|(f=!(r|s)+(_-A|0)|0))<(0|l)?l:f;break n}y=0!=(0|(f=l));k:{r:{l:{v:if(!(!(3&(o=A=(o=i[k+64>>2])||1071))|!f))for(;;){if(!w[0|o])break l;if(y=0!=(0|(f=f-1|0)),!(3&(o=o+1|0)))break v;if(!f)break}if(!y)break r}l:if(!(!w[0|o]|f>>>0<4))for(;;){if((-1^(s=i[o>>2]))&s-16843009&-2139062144)break l;if(o=o+4|0,!((f=f-4|0)>>>0>3))break}if(f)for(;;){if(s=o,!w[0|o])break k;if(o=o+1|0,!(f=f-1|0))break}}s=0}y=s||l+A|0,o=r,l=s?s-A|0:l;break n}if(r=i[k+64>>2],l)break o;f=0,i2(n,32,v,0,o);break u}i[k+12>>2]=0,i[k+8>>2]=i[k+64>>2],i[k+64>>2]=k+8,l=-1,r=k+8|0}f=0;o:{for(;;){if(!(A=i[r>>2]))break o;if(!((s=(0|(A=g1(k+4|0,A)))<0)|A>>>0>l-f>>>0)){if(r=r+4|0,l>>>0>(f=f+A|0)>>>0)continue;break o}break}if(h=-1,s)break i}if(i2(n,32,v,f,o),f)for(r=0,s=i[k+64>>2];;){if(!(A=i[s>>2])||(0|(r=(A=g1(k+4|0,A))+r|0))>(0|f))break u;if(Z(n,k+4|0,A),s=s+4|0,!(f>>>0>r>>>0))break}else f=0}i2(n,32,v,f,8192^o),f=(0|f)<(0|v)?v:f;continue f}f=0|M[0|b](n,X[k+64>>3],v,l,o,f);continue f}p[k+55|0]=i[k+64>>2],l=1,A=x,o=r;break n}i[k+76>>2]=r=f+1|0,o=w[f+1|0],f=r}if(h=m,n)break i;if(!P)break a;for(f=1;;){if(n=i[(f<<2)+e>>2]){if(w1((f<<3)+t|0,n,a),h=1,10!=(0|(f=f+1|0)))continue;break i}break}if(h=1,f>>>0>=10)break i;for(;;){if(i[(f<<2)+e>>2])break t;if(10==(0|(f=f+1|0)))break}break i}h=-1;break i}i2(n,32,f=(0|(r=(l=(0|(s=y-A|0))>(0|l)?s:l)+h|0))>(0|v)?r:v,r,o),Z(n,E,h),i2(n,48,f,r,65536^o),i2(n,48,l,s,0),Z(n,A,s),i2(n,32,f,r,8192^o);continue}break}h=0}return B=k+80|0,h}function A0(n,f){var o,a=0,t=0,e=0,b=0,k=u(0),r=0,s=u(0),A=0,l=0,v=0;B=o=B+-64|0,i[n+72>>2]=f,a=e=i[f+8>>2];i:{f:{a:{for(;;){if(t=i[a+24>>2])break a;if((0|e)==(0|(a=i[a+8>>2])))break}for(i[o>>2]=i[e+4>>2],e=a=i[n- -64>>2];(t=i[(e=i[e+4>>2])>>2])&&!(0|M[i[a+16>>2]](i[a+12>>2],o,t)););if(r=i[(e=i[i[i[(t=i[e>>2])+4>>2]+8>>2]>>2])>>2],G(i[i[(b=i[t>>2])+4>>2]+16>>2],f,i[b+16>>2])==u(0)){if(!((k=c[f+28>>2])!=c[(a=i[(e=i[t>>2])+16>>2])+28>>2]|c[a+32>>2]!=c[f+32>>2])){if(t=i[f+8>>2],i[o+40>>2]=0,i[o+44>>2]=0,i[o+32>>2]=0,i[o+36>>2]=0,f=i[287],i[o+24>>2]=i[286],i[o+28>>2]=f,f=i[285],i[o+16>>2]=i[284],i[o+20>>2]=f,i[o+32>>2]=i[a+12>>2],i[o+36>>2]=i[i[t+16>>2]+12>>2],c[o+52>>2]=c[a+16>>2],c[o+56>>2]=c[a+20>>2],c[o+60>>2]=c[a+24>>2],i[a+12>>2]=0,f=a+12|0,8==(0|(a=i[n+1736>>2]))?M[i[n+76>>2]](o+52|0,o+32|0,o+16|0,f):M[0|a](o+52|0,o+32|0,o+16|0,f,i[n+1896>>2]),i[f>>2]||(i[f>>2]=i[o+32>>2]),z(e,t))break f;break i}if(c[(a=i[(b=i[e+4>>2])+16>>2])+32>>2]!=c[f+32>>2]||k!=c[a+28>>2]){if(!n2(b))break i;if(w[t+15|0]){if(!$(i[e+8>>2]))break i;p[t+15|0]=0}if(!z(i[f+8>>2],e))break i;A0(n,f);break f}for(;(0|a)==i[i[i[(t=i[i[i[t+4>>2]+4>>2]>>2])>>2]+4>>2]+16>>2];);if(a=i[(b=i[(r=i[(e=i[i[i[t+4>>2]+8>>2]>>2])>>2])+4>>2])+8>>2],w[e+15|0]){if(i[r+24>>2]=0,h2(i[e+4>>2]),T(e),!$(b))break i;b=i[i[a+4>>2]+12>>2]}if(!z(i[f+8>>2],b))break i;f=a,(k=c[(e=i[i[a+4>>2]+16>>2])+28>>2])<(s=c[(r=i[a+16>>2])+28>>2])|(c[e+32>>2]<=c[r+32>>2]?k==s:0)||(f=0),T2(n,t,A=i[b+8>>2],b=a,f,1);break f}if(l=w[t+12|0],a=t,(k=c[(A=i[(r=i[r+4>>2])+16>>2])+28>>2])<(s=c[(v=i[i[b+4>>2]+16>>2])+28>>2])||k==s&&(a=t,c[A+32>>2]<=c[v+32>>2])||(a=e),w[a+15|0]||l){n:{if((0|a)==(0|t)){if(e=d2(i[i[f+8>>2]+4>>2],i[b+12>>2]))break n;break i}if(!(e=d2(i[i[r+8>>2]+4>>2],i[f+8>>2])))break i;e=i[e+4>>2]}if(w[a+15|0]){if($(i[a>>2])){i[a>>2]=e,p[a+15|0]=0,i[e+24>>2]=a,A0(n,f);break f}break i}if(!(a=H(16))||(i[a>>2]=e,t=P0(i[n- -64>>2],i[t+4>>2],a),i[a+4>>2]=t,!t))break i;p[a+13|0]=0,p[a+14|0]=0,p[a+15|0]=0,i[e+24>>2]=a,b=i[n+56>>2],i[a+8>>2]=e=i[i[a>>2]+28>>2]+i[i[i[t+4>>2]>>2]+8>>2]|0;n:{t:switch(b-100130|0){case 0:t=1&e;break n;case 1:t=0!=(0|e);break n;case 2:t=(0|e)>0;break n;case 3:t=e>>>31|0;break n;case 4:break t;default:break n}t=e+1>>>0>2}p[a+12|0]=t,A0(n,f);break f}T2(a=n,t,n=i[f+8>>2],n,0,1);break f}for(f=i[i[t>>2]+16>>2];(0|f)==i[(a=i[(t=i[i[i[t+4>>2]+4>>2]>>2])>>2])+16>>2];);if(w[t+15|0]&&(!(f=d2(i[i[i[i[i[t+4>>2]+8>>2]>>2]>>2]+4>>2],i[a+12>>2]))||!$(i[t>>2])||(i[t>>2]=f,p[t+15|0]=0,i[f+24>>2]=t,!(t=i[i[i[t+4>>2]+4>>2]>>2]))))break i;if(a=i[(f=i[i[i[t+4>>2]+8>>2]>>2])>>2],f=a0(n,f,0),(0|a)!=(0|(e=i[f+8>>2])))T2(n,t,e,a,a,1);else{if(i[i[(e=i[t>>2])+4>>2]+16>>2]!=i[i[(r=i[(A=i[i[i[t+4>>2]+8>>2]>>2])>>2])+4>>2]+16>>2]&&c1(n,t),v=1,!((k=c[(b=i[n+72>>2])+28>>2])!=c[(l=i[e+16>>2])+28>>2]|c[l+32>>2]!=c[b+32>>2])){if(!z(i[i[a+4>>2]+12>>2],e))break i;for(a=i[i[t>>2]+16>>2];(0|a)==i[(b=i[(t=i[i[i[t+4>>2]+4>>2]>>2])>>2])+16>>2];);if(w[t+15|0]&&(!(a=d2(i[i[i[i[i[t+4>>2]+8>>2]>>2]>>2]+4>>2],i[b+12>>2]))||!$(i[t>>2])||(i[t>>2]=a,p[t+15|0]=0,i[a+24>>2]=t,!(t=i[i[i[t+4>>2]+4>>2]>>2]))))break i;a=i[(b=i[i[i[t+4>>2]+8>>2]>>2])>>2],a0(n,b,A),k=c[(b=i[n+72>>2])+28>>2],v=0}a:{if((s=k)!=(k=c[(l=i[r+16>>2])+28>>2])|c[l+32>>2]!=c[b+32>>2]){if(v)break a}else{if(!z(f,i[i[r+4>>2]+12>>2]))break i;f=a0(n,A,0)}T2(n,t,i[f+8>>2],a,a,1);break f}if(!(c[l+32>>2]<=c[(a=i[e+16>>2])+32>>2])|k!=(s=c[a+28>>2])&&!(s>k)||(e=i[i[r+4>>2]+12>>2]),!(f=d2(i[i[f+8>>2]+4>>2],e)))break i;T2(n,t,f,a=i[f+8>>2],a,0),p[i[i[f+4>>2]+24>>2]+15|0]=1,A1(n,t)}}return void(B=o- -64|0)}b2(n+1740|0,1),o2()}function r1(n){n|=0;var m,f=0,a=0,t=0,e=u(0),b=u(0),o=0,k=0,r=u(0),s=u(0),A=u(0),l=u(0),v=0,h=u(0),y=u(0),E=u(0),R=u(0),_=u(0),P=u(0),x=u(0),F=u(0),j=0,q=0,Y=u(0),k2=u(0),m2=0,n0=0,U0=0,F0=0,j0=0,O0=0,D0=0,H0=0;m=i[n+8>>2],c[8+(f=B-80|0)>>2]=b=c[n+16>>2],c[f+12>>2]=E=c[n+20>>2],c[f+16>>2]=R=c[n+24>>2];i:if(m2=b==u(0)&E==u(0)&R==u(0)){if(i[f+76>>2]=-42943038,i[f+68>>2]=-42943038,i[f+72>>2]=-42943038,i[f+64>>2]=2104540610,i[f+56>>2]=2104540610,i[f+60>>2]=2104540610,n0=(0|(v=i[m>>2]))==(0|m))y=u(-19999999867631625e21),r=u(19999999867631625e21),s=u(19999999867631625e21),h=u(-19999999867631625e21),A=u(19999999867631625e21),l=u(-19999999867631625e21);else{for(_=u(19999999867631625e21),P=u(-19999999867631625e21),x=u(-19999999867631625e21),F=u(19999999867631625e21),Y=u(-19999999867631625e21),k2=u(19999999867631625e21),y=u(-19999999867631625e21),r=u(19999999867631625e21),l=u(-19999999867631625e21),A=u(19999999867631625e21),h=u(-19999999867631625e21),s=u(19999999867631625e21),a=v;y=(t=(e=c[a+24>>2])>y)?e:y,P=t?e:P,r=(j=e>2])>l)?e:l,x=o?e:x,A=(q=e>2])>h)?e:h,Y=k?e:Y,U0=k?a:U0,s=(k=e>2])););i[f+20>>2]=F0,c[f+56>>2]=k2,c[f+68>>2]=Y,i[f+32>>2]=U0,c[f+60>>2]=F,i[f+24>>2]=H0,c[f+72>>2]=x,i[f+36>>2]=D0,c[f+64>>2]=_,i[f+28>>2]=O0,c[f+76>>2]=P,i[f+40>>2]=j0}if(a=2,t=(o=u(l-A)>u(h-s))<<2,t=u(y-r)>u(c[t+(f+68|0)>>2]-c[t+(f+56|0)>>2])?2:o,c[(o=t<<2)+(f+56|0)>>2]>=c[o+(f+68|0)>>2])i[f+8>>2]=0,i[f+12>>2]=0;else{if(a=i[(t<<=2)+(f+20|0)>>2],A=u(c[a+16>>2]-(P=c[(t=i[t+(f+32|0)>>2])+16>>2])),c[f+44>>2]=A,l=u(c[a+20>>2]-(x=c[t+20>>2])),c[f+48>>2]=l,e=u(c[a+24>>2]-(F=c[t+24>>2])),c[f+52>>2]=e,!n0){for(_=u(0),a=v;r=u(c[a+20>>2]-x),s=u(c[a+16>>2]-P),y=u(u(A*r)-u(l*s)),h=u(c[a+24>>2]-F),r=u(u(l*h)-u(e*r)),s=u(u(e*s)-u(A*h)),(h=u(u(y*y)+u(u(r*r)+u(s*s))))>_&&(R=y,E=s,_=h,b=r),(0|m)!=(0|(a=i[a>>2])););if(c[f+16>>2]=R,c[f+12>>2]=E,c[f+8>>2]=b,!(_<=u(0)))break i}i[f+16>>2]=0,i[f+8>>2]=0,i[f+12>>2]=0,a=(l(A>2],a=(e(b>2]=1065353216,R=c[f+16>>2],b=c[f+8>>2],E=c[f+12>>2]}else v=i[m>>2];if(t=(E(b>2],a=n+28|0,t=(R(b>2]=0,i[(k=(t+1>>>0)%3<<2)+a>>2]=1065353216,i[(t=(t+2>>>0)%3<<2)+a>>2]=0,i[(a=n+40|0)+o>>2]=0,f=c[o+(f+8|0)>>2]>u(0),c[a+k>>2]=u(f?-0:0),c[a+t>>2]=u(f?1:-1),!(t=(0|m)==(0|v)))for(a=v;f=i[a+20>>2],i[a+28>>2]=i[a+16>>2],i[a+32>>2]=f,(0|m)!=(0|(a=i[a>>2])););if(m2&&(0|(f=i[m+40>>2]))!=(0|(o=m+40|0))){for(b=u(0);;){if(i[(a=k=i[f+8>>2])+28>>2]>=1)for(;b=u(b+u(u(c[(j=i[a+16>>2])+28>>2]-c[(q=i[i[a+4>>2]+16>>2])+28>>2])*u(c[j+32>>2]+c[q+32>>2]))),(0|k)!=(0|(a=i[a+12>>2])););if((0|o)==(0|(f=i[f>>2])))break}if(b>2]=-c[v+32>>2],(0|(v=i[v>>2]))!=(0|m););c[n+40>>2]=-c[n+40>>2],c[n+44>>2]=-c[n+44>>2],c[n+48>>2]=-c[n+48>>2]}}}function T(n){var f=0,a=0,t=0,e=0,b=0,o=0,k=0,r=0,s=0;i:if(n|=0){b=(t=n-8|0)+(n=-8&(f=i[n-4>>2]))|0;f:if(!(1&f)){if(!(3&f)||(t=t-(f=i[t>>2])|0)>>>0>2])))return i[616]=n,i[b+4>>2]=-2&f,i[t+4>>2]=1|n,void(i[n+t>>2]=n)}else{if(f>>>0<=255){if(f=f>>>3|0,(0|(a=i[t+12>>2]))==(0|(e=i[t+8>>2]))){r=2456,s=i[614]&f2(f),i[r>>2]=s;break f}i[e+12>>2]=a,i[a+8>>2]=e;break f}if(k=i[t+24>>2],(0|t)==(0|(f=i[t+12>>2])))if((a=i[(e=t+20|0)>>2])||(a=i[(e=t+16|0)>>2])){for(;o=e,(a=i[(e=(f=a)+20|0)>>2])||(e=f+16|0,a=i[f+16>>2]););i[o>>2]=0}else f=0;else i[(a=i[t+8>>2])+12>>2]=f,i[f+8>>2]=a;if(!k)break f;a:{if(i[(a=2760+((e=i[t+28>>2])<<2)|0)>>2]==(0|t)){if(i[a>>2]=f,f)break a;r=2460,s=i[615]&f2(e),i[r>>2]=s;break f}if(i[k+(i[k+16>>2]==(0|t)?16:20)>>2]=f,!f)break f}if(i[f+24>>2]=k,(a=i[t+16>>2])&&(i[f+16>>2]=a,i[a+24>>2]=f),!(a=i[t+20>>2]))break f;i[f+20>>2]=a,i[a+24>>2]=f}}if(!(t>>>0>=b>>>0)&&1&(f=i[b+4>>2])){f:{if(!(2&f)){if(i[620]==(0|b)){if(i[620]=t,i[617]=n=i[617]+n|0,i[t+4>>2]=1|n,i[619]!=(0|t))break i;return i[616]=0,void(i[619]=0)}if(i[619]==(0|b))return i[619]=t,i[616]=n=i[616]+n|0,i[t+4>>2]=1|n,void(i[n+t>>2]=n);n=(-8&f)+n|0;a:if(f>>>0<=255){if(f=f>>>3|0,(0|(a=i[b+12>>2]))==(0|(e=i[b+8>>2]))){r=2456,s=i[614]&f2(f),i[r>>2]=s;break a}i[e+12>>2]=a,i[a+8>>2]=e}else{if(k=i[b+24>>2],(0|b)==(0|(f=i[b+12>>2])))if((a=i[(e=b+20|0)>>2])||(a=i[(e=b+16|0)>>2])){for(;o=e,(a=i[(e=(f=a)+20|0)>>2])||(e=f+16|0,a=i[f+16>>2]););i[o>>2]=0}else f=0;else i[(a=i[b+8>>2])+12>>2]=f,i[f+8>>2]=a;if(k){n:{if(i[(a=2760+((e=i[b+28>>2])<<2)|0)>>2]==(0|b)){if(i[a>>2]=f,f)break n;r=2460,s=i[615]&f2(e),i[r>>2]=s;break a}if(i[k+(i[k+16>>2]==(0|b)?16:20)>>2]=f,!f)break a}i[f+24>>2]=k,(a=i[b+16>>2])&&(i[f+16>>2]=a,i[a+24>>2]=f),(a=i[b+20>>2])&&(i[f+20>>2]=a,i[a+24>>2]=f)}}if(i[t+4>>2]=1|n,i[n+t>>2]=n,i[619]!=(0|t))break f;return void(i[616]=n)}i[b+4>>2]=-2&f,i[t+4>>2]=1|n,i[n+t>>2]=n}if(n>>>0<=255)return f=2496+((n=n>>>3|0)<<3)|0,(a=i[614])&(n=1<>2]:(i[614]=n|a,n=f),i[f+8>>2]=t,i[n+12>>2]=t,i[t+12>>2]=f,void(i[t+8>>2]=n);e=31,i[t+16>>2]=0,i[t+20>>2]=0,n>>>0<=16777215&&(f=n>>>8|0,f<<=o=f+1048320>>>16&8,e=28+((f=((f<<=e=f+520192>>>16&4)<<(a=f+245760>>>16&2)>>>15|0)-(a|e|o)|0)<<1|n>>>f+21&1)|0),i[t+28>>2]=e,o=2760+(e<<2)|0;f:{a:{if((a=i[615])&(f=1<>>1|0)|0),f=i[o>>2];;){if(a=f,(-8&i[f+4>>2])==(0|n))break a;if(f=e>>>29|0,e<<=1,!(f=i[16+(o=a+(4&f)|0)>>2]))break}i[o+16>>2]=t,i[t+24>>2]=a}else i[615]=f|a,i[o>>2]=t,i[t+24>>2]=o;i[t+12>>2]=t,i[t+8>>2]=t;break f}i[(n=i[a+8>>2])+12>>2]=t,i[a+8>>2]=t,i[t+24>>2]=0,i[t+12>>2]=a,i[t+8>>2]=n}i[622]=(n=i[622]-1|0)||-1}}}function s1(n,f){var b,a=0,t=0,e=0,o=0,k=0,r=0,s=0;b=n+f|0;i:{f:if(!(1&(a=i[n+4>>2]))){if(!(3&a))break i;f=(a=i[n>>2])+f|0;a:{if((0|(n=n-a|0))!=i[619]){if(a>>>0<=255){if(a=a>>>3|0,(0|(t=i[n+12>>2]))!=(0|(e=i[n+8>>2])))break a;r=2456,s=i[614]&f2(a),i[r>>2]=s;break f}if(k=i[n+24>>2],(0|(a=i[n+12>>2]))==(0|n))if((t=i[(e=n+20|0)>>2])||(t=i[(e=n+16|0)>>2])){for(;o=e,(t=i[(e=(a=t)+20|0)>>2])||(e=a+16|0,t=i[a+16>>2]););i[o>>2]=0}else a=0;else i[(t=i[n+8>>2])+12>>2]=a,i[a+8>>2]=t;if(!k)break f;n:{if(i[(t=2760+((e=i[n+28>>2])<<2)|0)>>2]==(0|n)){if(i[t>>2]=a,a)break n;r=2460,s=i[615]&f2(e),i[r>>2]=s;break f}if(i[k+(i[k+16>>2]==(0|n)?16:20)>>2]=a,!a)break f}if(i[a+24>>2]=k,(t=i[n+16>>2])&&(i[a+16>>2]=t,i[t+24>>2]=a),!(t=i[n+20>>2]))break f;i[a+20>>2]=t,i[t+24>>2]=a;break f}if(3!=(3&(a=i[b+4>>2])))break f;return i[616]=f,i[b+4>>2]=-2&a,i[n+4>>2]=1|f,void(i[b>>2]=f)}i[e+12>>2]=t,i[t+8>>2]=e}f:{if(!(2&(a=i[b+4>>2]))){if(i[620]==(0|b)){if(i[620]=n,i[617]=f=i[617]+f|0,i[n+4>>2]=1|f,i[619]!=(0|n))break i;return i[616]=0,void(i[619]=0)}if(i[619]==(0|b))return i[619]=n,i[616]=f=i[616]+f|0,i[n+4>>2]=1|f,void(i[n+f>>2]=f);f=(-8&a)+f|0;a:if(a>>>0<=255){if(a=a>>>3|0,(0|(t=i[b+12>>2]))==(0|(e=i[b+8>>2]))){r=2456,s=i[614]&f2(a),i[r>>2]=s;break a}i[e+12>>2]=t,i[t+8>>2]=e}else{if(k=i[b+24>>2],(0|b)==(0|(a=i[b+12>>2])))if((e=i[(t=b+20|0)>>2])||(e=i[(t=b+16|0)>>2])){for(;o=t,(e=i[(t=(a=e)+20|0)>>2])||(t=a+16|0,e=i[a+16>>2]););i[o>>2]=0}else a=0;else i[(t=i[b+8>>2])+12>>2]=a,i[a+8>>2]=t;if(k){n:{if(i[(t=2760+((e=i[b+28>>2])<<2)|0)>>2]==(0|b)){if(i[t>>2]=a,a)break n;r=2460,s=i[615]&f2(e),i[r>>2]=s;break a}if(i[k+(i[k+16>>2]==(0|b)?16:20)>>2]=a,!a)break a}i[a+24>>2]=k,(t=i[b+16>>2])&&(i[a+16>>2]=t,i[t+24>>2]=a),(t=i[b+20>>2])&&(i[a+20>>2]=t,i[t+24>>2]=a)}}if(i[n+4>>2]=1|f,i[n+f>>2]=f,i[619]!=(0|n))break f;return void(i[616]=f)}i[b+4>>2]=-2&a,i[n+4>>2]=1|f,i[n+f>>2]=f}if(f>>>0<=255)return a=2496+((f=f>>>3|0)<<3)|0,(t=i[614])&(f=1<>2]:(i[614]=f|t,f=a),i[a+8>>2]=n,i[f+12>>2]=n,i[n+12>>2]=a,void(i[n+8>>2]=f);e=31,i[n+16>>2]=0,i[n+20>>2]=0,f>>>0<=16777215&&(a=f>>>8|0,a<<=o=a+1048320>>>16&8,e=28+((a=((a<<=e=a+520192>>>16&4)<<(t=a+245760>>>16&2)>>>15|0)-(t|e|o)|0)<<1|f>>>a+21&1)|0),i[n+28>>2]=e,o=2760+(e<<2)|0;f:{if((t=i[615])&(a=1<>>1|0)|0),a=i[o>>2];;){if(t=a,(-8&i[a+4>>2])==(0|f))break f;if(a=e>>>29|0,e<<=1,!(a=i[16+(o=t+(4&a)|0)>>2]))break}i[o+16>>2]=n,i[n+24>>2]=t}else i[615]=a|t,i[o>>2]=n,i[n+24>>2]=o;return i[n+12>>2]=n,void(i[n+8>>2]=n)}i[(f=i[t+8>>2])+12>>2]=n,i[t+8>>2]=n,i[n+24>>2]=0,i[n+12>>2]=t,i[n+8>>2]=f}}function M0(n,f){var e,a=0,t=0,b=u(0),o=0,k=0,r=u(0),s=0,A=0,l=0,v=0,h=0,m=0,y=0,E=0,R=0,_=0,P=0,x=0,F=0,j=0;B=e=B-48|0;i:{f:{if(!(!(c[(k=i[(l=i[f>>2])+16>>2])+32>>2]<=c[(t=i[(h=i[(a=i[i[i[f+4>>2]+8>>2]>>2])>>2])+16>>2])+32>>2])|(r=c[k+28>>2])!=(b=c[t+28>>2]))||r>2]+16>>2],k,t)>u(0))break f;if(c[(k=i[l+16>>2])+32>>2]!=c[(t=i[h+16>>2])+32>>2]||c[k+28>>2]!=c[t+28>>2]){if(!n2(i[h+4>>2])||!z(l,i[i[h+4>>2]+12>>2]))break i;_=1,p[a+14|0]=1,p[f+14|0]=1;break f}if(_=1,(0|t)==(0|k))break f;if(o=i[n+68>>2],(0|(f=i[k+36>>2]))>=0){if(k=f,f=i[4+(P=(A=i[(m=i[o>>2])+4>>2])+(f<<3)|0)>>2],i[(s=i[m>>2])+(f<<2)>>2]=E=i[s+((R=i[m+8>>2])<<2)>>2],i[4+(x=(E<<3)+A|0)>>2]=f,i[m+8>>2]=F=R-1|0,(0|f)<(0|R)){a:{if((0|f)<2||(b=c[(a=i[(i[s+(f<<1&-4)>>2]<<3)+A>>2])+28>>2])<(r=c[(y=i[(E<<3)+A>>2])+28>>2])||!(!(c[a+32>>2]<=c[y+32>>2])|r!=b))for(j=(E<<3)+A|0;;){if((0|F)<=(0|(a=f<<1))||(v=i[(i[s+((t=1|a)<<2)>>2]<<3)+A>>2],!(c[v+32>>2]<=c[(o=i[(i[s+(a<<2)>>2]<<3)+A>>2])+32>>2])|(r=c[v+28>>2])!=(b=c[o+28>>2])&&!(r=(0|R)){a=f;break a}if(t=i[(o=((v=i[s+(a<<2)>>2])<<3)+A|0)>>2],(r=c[(y=i[j>>2])+28>>2])<(b=c[t+28>>2])){a=f;break a}if(!(!(c[y+32>>2]<=c[t+32>>2])|r!=b)){a=f;break a}i[s+(f<<2)>>2]=v,i[o+4>>2]=f,f=a}for(;;){if(v=i[s+((a=f>>1)<<2)>>2],t=i[(o=(v<<3)+A|0)>>2],(b=c[t+28>>2])>2]<=c[y+32>>2])|r!=b)){a=f;break a}if(i[s+(f<<2)>>2]=v,i[o+4>>2]=f,!((f=a)>>>0>1))break}}i[s+(a<<2)>>2]=E,i[x+4>>2]=a}i[P>>2]=0,i[P+4>>2]=i[m+16>>2],i[m+16>>2]=k}else{i[i[o+4>>2]+((-1^f)<<2)>>2]=0;a:if(!((0|(f=i[o+12>>2]))<1))for(k=i[o+8>>2];;){if(i[i[k+((a=f-1|0)<<2)>>2]>>2])break a;if(i[o+12>>2]=a,t=(0|f)>1,f=a,!t)break}}if(a=i[i[h+4>>2]+12>>2],i[e+24>>2]=0,i[e+28>>2]=0,i[e+16>>2]=0,i[e+20>>2]=0,f=i[287],i[e+8>>2]=i[286],i[e+12>>2]=f,f=i[285],i[e>>2]=i[284],i[e+4>>2]=f,i[e+16>>2]=i[(f=i[a+16>>2])+12>>2],i[e+20>>2]=i[i[l+16>>2]+12>>2],c[e+36>>2]=c[f+16>>2],c[e+40>>2]=c[f+20>>2],c[e+44>>2]=c[f+24>>2],i[f+12>>2]=0,t=f+12|0,8==(0|(f=i[n+1736>>2]))?M[i[n+76>>2]](e+36|0,e+16|0,e,t):M[0|f](e+36|0,e+16|0,e,t,i[n+1896>>2]),i[t>>2]||(i[t>>2]=i[e+16>>2]),z(a,l))break f;break i}if(!(G(i[i[l+4>>2]+16>>2],t,k)>2]+4>>2]>>2]+14|0]=1,n2(i[l+4>>2])&&z(i[i[h+4>>2]+12>>2],l))))break i}return B=e+48|0,_}b2(n+1740|0,1),o2()}function l0(n,f){var o,s,a=0,t=0,e=0,b=0,k=0,r=0,A=0,l=0,v=0,h=0,m=0;if(!n)return H(f);if(f>>>0>=4294967232)return i[613]=48,0;o=f>>>0<11?16:f+11&-8,e=-8&(s=i[4+(b=n-8|0)>>2]);i:if(3&s){k=e+b|0;f:if(e>>>0>=o>>>0){if((t=e-o|0)>>>0<16)break f;i[b+4>>2]=1&s|o|2,i[4+(a=b+o|0)>>2]=3|t,i[k+4>>2]=1|i[k+4>>2],s1(a,t)}else if(i[620]!=(0|k))if(i[619]!=(0|k)){if(2&(t=i[k+4>>2])||(A=e+(-8&t)|0)>>>0>>0)break i;v=A-o|0;a:if(t>>>0<=255){if(a=t>>>3|0,(0|(t=i[k+12>>2]))==(0|(e=i[k+8>>2]))){h=2456,m=i[614]&f2(a),i[h>>2]=m;break a}i[e+12>>2]=t,i[t+8>>2]=e}else{if(l=i[k+24>>2],(0|(r=i[k+12>>2]))==(0|k))if((a=i[(e=k+20|0)>>2])||(a=i[(e=k+16|0)>>2])){for(;t=e,r=a,(a=i[(e=a+20|0)>>2])||(e=r+16|0,a=i[r+16>>2]););i[t>>2]=0}else r=0;else i[(a=i[k+8>>2])+12>>2]=r,i[r+8>>2]=a;if(l){n:{if(i[(a=2760+((t=i[k+28>>2])<<2)|0)>>2]==(0|k)){if(i[a>>2]=r,r)break n;h=2460,m=i[615]&f2(t),i[h>>2]=m;break a}if(i[(i[l+16>>2]==(0|k)?16:20)+l>>2]=r,!r)break a}i[r+24>>2]=l,(a=i[k+16>>2])&&(i[r+16>>2]=a,i[a+24>>2]=r),(a=i[k+20>>2])&&(i[r+20>>2]=a,i[a+24>>2]=r)}}v>>>0<=15?(i[b+4>>2]=1&s|A|2,i[4+(a=b+A|0)>>2]=1|i[a+4>>2]):(i[b+4>>2]=1&s|o|2,i[4+(t=b+o|0)>>2]=3|v,i[4+(a=b+A|0)>>2]=1|i[a+4>>2],s1(t,v))}else{if((t=e+i[616]|0)>>>0>>0)break i;(a=t-o|0)>>>0>=16?(i[b+4>>2]=1&s|o|2,i[4+(e=b+o|0)>>2]=1|a,i[(t=t+b|0)>>2]=a,i[t+4>>2]=-2&i[t+4>>2]):(i[b+4>>2]=t|1&s|2,i[4+(a=t+b|0)>>2]=1|i[a+4>>2],a=0,e=0),i[619]=e,i[616]=a}else{if((e=e+i[617]|0)>>>0<=o>>>0)break i;i[b+4>>2]=1&s|o|2,i[4+(t=b+o|0)>>2]=1|(a=e-o|0),i[617]=a,i[620]=t}a=b}else{if(o>>>0<256||e>>>0>=o+4>>>0&&(a=b,e-o>>>0<=i[734]<<1>>>0))break i;a=0}return a?a+8|0:(b=H(f))?(l1(b,n,f>>>0>(a=(3&(a=i[n-4>>2])?-4:-8)+(-8&a)|0)>>>0?a:f),T(n),b):0}function A1(n,f){var a=0,t=0,e=0,b=0,o=0,k=0,r=u(0),s=0,A=u(0);for(t=i[i[i[f+4>>2]+8>>2]>>2];;){i:{if(w[t+14|0])for(;t=i[i[i[(f=t)+4>>2]+8>>2]>>2],w[t+14|0];);f:{a:{n:{t:{if(w[f+14|0])a=f;else if(!(a=i[i[i[f+4>>2]+4>>2]>>2])||(t=f,!w[a+14|0]))break t;p[a+14|0]=0;b:if((0|(f=i[i[(e=i[a>>2])+4>>2]+16>>2]))!=i[i[(o=i[t>>2])+4>>2]+16>>2]){e:{if(!(!(c[f+32>>2]<=c[(k=i[i[(b=i[(s=i[i[i[a+4>>2]+8>>2]>>2])>>2])+4>>2]+16>>2])+32>>2])|(r=c[f+28>>2])!=(A=c[k+28>>2]))||r>2])>2]+4>>2]>>2]+14|0]=1,!(f=n2(e)))break f;if(z(i[b+4>>2],f))break e;break i}if(G(k,f,i[b+16>>2])>u(0)){f=a;break b}if(p[s+14|0]=1,p[a+14|0]=1,!(f=n2(b))||!z(i[e+12>>2],i[b+4>>2]))break i;f=i[f+4>>2]}if(p[i[f+20>>2]+21|0]=w[a+12|0],w[t+15|0]){if(i[i[t>>2]+24>>2]=0,h2(i[t+4>>2]),T(t),!$(o))break i;o=i[(t=i[i[i[a+4>>2]+8>>2]>>2])>>2],f=a}else if(w[a+15|0]){if(i[i[a>>2]+24>>2]=0,h2(i[a+4>>2]),T(a),!$(e))break i;e=i[(f=i[i[i[t+4>>2]+4>>2]>>2])>>2]}else f=a}else f=a;if(i[e+16>>2]==i[o+16>>2])break a;if(w[t+15|0]|w[f+15|0]|(0|(a=i[i[e+4>>2]+16>>2]))==(0|(b=i[i[o+4>>2]+16>>2]))||(k=a,(0|(a=i[n+72>>2]))!=(0|b)&&(0|k)!=(0|a)))break n;if(!c1(n,f))break a}return}M0(n,f)}if(i[e+16>>2]!=i[o+16>>2]||i[(b=i[e+4>>2])+16>>2]!=i[(a=i[o+4>>2])+16>>2])continue;if(i[o+28>>2]=i[o+28>>2]+i[e+28>>2],i[a+28>>2]=i[a+28>>2]+i[b+28>>2],i[i[f>>2]+24>>2]=0,h2(i[f+4>>2]),T(f),!$(e))break i;f=i[i[i[t+4>>2]+4>>2]>>2];continue}}break}b2(n+1740|0,1),o2()}function $(n){var o,f=0,a=0,t=0,e=0,b=0;if((0|(o=i[(e=i[n+4>>2])+20>>2]))!=(0|(a=i[n+20>>2]))){for(f=t=i[a+8>>2];i[f+20>>2]=o,(0|t)!=(0|(f=i[f+12>>2])););i[(f=i[a>>2])+4>>2]=t=i[a+4>>2],i[t>>2]=f,T(a)}if((0|(t=i[n+8>>2]))!=(0|n)){if(i[i[(b=i[n+4>>2])+20>>2]+8>>2]=f=i[b+12>>2],i[i[n+16>>2]+8>>2]=t,b=i[f+8>>2],i[i[t+4>>2]+12>>2]=f,i[i[b+4>>2]+12>>2]=n,i[n+8>>2]=b,i[f+8>>2]=t,(0|a)==(0|o)){if(!(a=H(24)))return 0;for(i[a+4>>2]=t=i[(f=i[n+20>>2])+4>>2],i[t>>2]=a,i[a>>2]=f,i[f+4>>2]=a,i[a+12>>2]=0,i[a+16>>2]=0,i[a+8>>2]=n,p[a+20|0]=0,p[a+21|0]=w[f+21|0],f=n;i[f+20>>2]=a,(0|(f=i[f+12>>2]))!=(0|n););}}else{for(f=t=i[(a=i[n+16>>2])+8>>2];i[f+16>>2]=0,(0|t)!=(0|(f=i[f+8>>2])););i[(f=i[a>>2])+4>>2]=t=i[a+4>>2],i[t>>2]=f,T(a)}if((0|(f=i[e+8>>2]))!=(0|e))i[i[n+20>>2]+8>>2]=a=i[i[e+4>>2]+12>>2],i[i[e+16>>2]+8>>2]=f,t=i[a+8>>2],i[i[f+4>>2]+12>>2]=a,i[i[t+4>>2]+12>>2]=e,i[e+8>>2]=t,i[a+8>>2]=f;else{for(f=t=i[(a=i[e+16>>2])+8>>2];i[f+16>>2]=0,(0|t)!=(0|(f=i[f+8>>2])););for(i[(f=i[a>>2])+4>>2]=t=i[a+4>>2],i[t>>2]=f,T(a),f=e=i[(a=i[e+20>>2])+8>>2];i[f+20>>2]=0,(0|e)!=(0|(f=i[f+12>>2])););i[(f=i[a>>2])+4>>2]=e=i[a+4>>2],i[e>>2]=f,T(a)}return f=i[(n=n>>>0>(f=i[n+4>>2])>>>0?f:n)>>2],i[i[f+4>>2]>>2]=a=i[i[n+4>>2]>>2],i[i[a+4>>2]>>2]=f,T(n),1}function d2(n,f){var a,t=0,e=0,b=0,o=0,k=0,r=0,s=0;if(t=0,a=H(64)){if(b=i[(t=n>>>0>(k=i[n+4>>2])>>>0?k:n)+4>>2],i[a+32>>2]=e=i[b>>2],i[i[e+4>>2]>>2]=a,i[a>>2]=t,i[b>>2]=o=a+32|0,i[a+16>>2]=0,i[a+20>>2]=0,i[a+12>>2]=o,i[a+4>>2]=o,i[a+24>>2]=0,i[a+28>>2]=0,i[a+48>>2]=0,i[a+52>>2]=0,i[a+44>>2]=a,i[a+40>>2]=o,i[a+36>>2]=a,i[a+56>>2]=0,i[a+60>>2]=0,i[a+8>>2]=a,(0|(r=i[n+20>>2]))!=(0|(b=i[f+20>>2]))){for(t=e=i[b+8>>2];i[t+20>>2]=r,(0|e)!=(0|(t=i[t+12>>2])););i[(t=i[b>>2])+4>>2]=e=i[b+4>>2],i[e>>2]=t,T(b),k=i[n+4>>2],e=i[a+8>>2],t=i[n+20>>2]}else e=a,t=b;if(s=i[(n=i[n+12>>2])+8>>2],i[i[e+4>>2]+12>>2]=n,i[i[s+4>>2]+12>>2]=a,i[a+8>>2]=s,i[n+8>>2]=e,n=i[f+8>>2],i[i[(e=i[a+40>>2])+4>>2]+12>>2]=f,i[i[n+4>>2]+12>>2]=o,i[a+40>>2]=n,i[f+8>>2]=e,i[a+16>>2]=i[k+16>>2],f=i[f+16>>2],i[a+52>>2]=n=t,i[a+48>>2]=f,i[a+20>>2]=n,i[n+8>>2]=o,t=a,(0|b)==(0|r)&&(t=0,f=H(24))){for(i[f+4>>2]=t=i[n+4>>2],i[t>>2]=f,i[f>>2]=n,i[n+4>>2]=f,i[f+12>>2]=0,i[f+16>>2]=0,i[f+8>>2]=a,p[f+20|0]=0,p[f+21|0]=w[n+21|0],t=a;i[t+20>>2]=f,(0|(t=i[t+12>>2]))!=(0|a););t=a}}return t}function l1(n,f,a){var t=0,e=0;if(a>>>0>=512)g4(0|n,0|f,0|a);else{t=n+a|0;i:if(3&(n^f))if(t>>>0<4)a=n;else if((e=t-4|0)>>>0>>0)a=n;else for(a=n;p[0|a]=w[0|f],p[a+1|0]=w[f+1|0],p[a+2|0]=w[f+2|0],p[a+3|0]=w[f+3|0],f=f+4|0,e>>>0>=(a=a+4|0)>>>0;);else{f:if(3&n)if((0|a)<1)a=n;else for(a=n;;){if(p[0|a]=w[0|f],f=f+1|0,!(3&(a=a+1|0)))break f;if(!(a>>>0>>0))break}else a=n;if(!((n=-4&t)>>>0<64||(e=n+-64|0)>>>0>>0))for(;i[a>>2]=i[f>>2],i[a+4>>2]=i[f+4>>2],i[a+8>>2]=i[f+8>>2],i[a+12>>2]=i[f+12>>2],i[a+16>>2]=i[f+16>>2],i[a+20>>2]=i[f+20>>2],i[a+24>>2]=i[f+24>>2],i[a+28>>2]=i[f+28>>2],i[a+32>>2]=i[f+32>>2],i[a+36>>2]=i[f+36>>2],i[a+40>>2]=i[f+40>>2],i[a+44>>2]=i[f+44>>2],i[a+48>>2]=i[f+48>>2],i[a+52>>2]=i[f+52>>2],i[a+56>>2]=i[f+56>>2],i[a+60>>2]=i[f+60>>2],f=f- -64|0,e>>>0>=(a=a- -64|0)>>>0;);if(n>>>0<=a>>>0)break i;for(;i[a>>2]=i[f>>2],f=f+4|0,n>>>0>(a=a+4|0)>>>0;);}if(a>>>0>>0)for(;p[0|a]=w[0|f],f=f+1|0,(0|t)!=(0|(a=a+1|0)););}}function n2(n){var b,f=0,a=0,t=0,e=0,o=0;if(b=n|=0,n=0,(f=H(64))&&(e=i[(a=(t=i[b+4>>2])>>>0>>0?t:b)+4>>2],i[f+32>>2]=o=i[e>>2],i[i[o+4>>2]>>2]=f,i[f>>2]=a,i[e>>2]=a=f+32|0,i[f+16>>2]=0,i[f+20>>2]=0,i[f+12>>2]=a,i[f+4>>2]=a,i[f+24>>2]=0,i[f+28>>2]=0,i[f+48>>2]=0,i[f+52>>2]=0,i[f+40>>2]=a,i[f+36>>2]=f,i[f+56>>2]=0,i[f+60>>2]=0,i[f+8>>2]=f,o=i[(e=i[b+12>>2])+8>>2],i[f+44>>2]=e,i[i[o+4>>2]+12>>2]=f,i[f+8>>2]=o,i[e+8>>2]=f,i[f+16>>2]=e=i[t+16>>2],t=H(40))){for(i[t+4>>2]=n=i[e+4>>2],i[n>>2]=t,i[t>>2]=e,i[e+4>>2]=t,i[t+12>>2]=0,i[t+8>>2]=a,n=a;i[n+16>>2]=t,(0|a)!=(0|(n=i[n+8>>2])););i[f+20>>2]=n=i[b+20>>2],i[f+52>>2]=n,n=f}return n?(f=i[n+4>>2],t=i[(a=i[i[(n=i[b+4>>2])+4>>2]+12>>2])+8>>2],i[i[(e=i[n+8>>2])+4>>2]+12>>2]=a,i[i[t+4>>2]+12>>2]=n,i[n+8>>2]=t,i[a+8>>2]=e,a=i[f+8>>2],i[i[(t=i[n+8>>2])+4>>2]+12>>2]=f,i[i[a+4>>2]+12>>2]=n,i[n+8>>2]=a,i[f+8>>2]=t,i[n+16>>2]=i[f+16>>2],i[i[(a=i[f+4>>2])+16>>2]+8>>2]=a,i[a+20>>2]=i[n+20>>2],i[f+28>>2]=i[b+28>>2],i[a+28>>2]=i[n+28>>2],0|f):0}function T2(n,f,a,t,e,b){var o=0,k=0,r=0,s=0,A=0;s=f+4|0,r=n- -64|0;i:{for(;;){if(k=i[a+4>>2],!(o=H(16))||(i[o>>2]=k,A=P0(i[r>>2],i[f+4>>2],o),i[o+4>>2]=A,!A))break i;if(p[o+13|0]=0,p[o+14|0]=0,p[o+15|0]=0,i[k+24>>2]=o,(0|t)==(0|(a=i[a+8>>2])))break}if(i[(a=i[i[(o=i[i[i[f+4>>2]+8>>2]>>2])>>2]+4>>2])+16>>2]==i[(e=e||i[a+8>>2])+16>>2])for(r=0;;){if(t=f,f=o,!((0|(o=e))==i[(e=a)+8>>2]||z(i[i[e+4>>2]+12>>2],e)&&z(i[i[o+4>>2]+12>>2],e)))break i;i[f+8>>2]=k=i[t+8>>2]-i[e+28>>2]|0;f:{a:switch(i[n+56>>2]-100130|0){case 0:a=1&k;break f;case 1:a=0!=(0|k);break f;case 2:a=(0|k)>0;break f;case 3:a=k>>>31|0;break f;case 4:break a;default:break f}a=k+1>>>0>2}if(p[f+12|0]=a,p[t+14|0]=1,r&&M0(n,t)&&(i[e+28>>2]=i[e+28>>2]+i[o+28>>2],i[(a=i[e+4>>2])+28>>2]=i[a+28>>2]+i[i[o+4>>2]+28>>2],i[i[t>>2]+24>>2]=0,h2(i[s>>2]),T(t),!$(o)))break i;if(s=f+4|0,r=1,i[(a=i[i[(o=i[i[i[f+4>>2]+8>>2]>>2])>>2]+4>>2])+16>>2]!=i[e+16>>2])break}return p[f+14|0]=1,void(b&&A1(n,f))}b2(n+1740|0,1),o2()}function v1(n){var k,f=0,a=0,t=0,e=0,b=0,o=0,r=0,s=0;if((0|(e=i[40+(n|=0)>>2]))!=(0|(k=n+40|0)))for(;;){if(s=i[e>>2],!w[e+21|0]){for(n=i[(r=i[e+8>>2])+12>>2];;){if(i[n+20>>2]=0,o=i[n+12>>2],!i[(f=i[n+4>>2])+20>>2]){if(t=i[n+16>>2],(0|(a=i[n+8>>2]))!=(0|n))i[t+8>>2]=a,b=i[(t=i[f+12>>2])+8>>2],i[i[a+4>>2]+12>>2]=t,i[i[b+4>>2]+12>>2]=n,i[n+8>>2]=b,i[t+8>>2]=a;else{for(f=a=i[t+8>>2];i[f+16>>2]=0,(0|a)!=(0|(f=i[f+8>>2])););i[(f=i[t>>2])+4>>2]=a=i[t+4>>2],i[a>>2]=f,T(t),f=i[n+4>>2]}if(t=i[f+16>>2],(0|(a=i[f+8>>2]))!=(0|f))i[t+8>>2]=a,b=i[(t=i[i[f+4>>2]+12>>2])+8>>2],i[i[a+4>>2]+12>>2]=t,i[i[b+4>>2]+12>>2]=f,i[f+8>>2]=b,i[t+8>>2]=a;else{for(f=a=i[t+8>>2];i[f+16>>2]=0,(0|a)!=(0|(f=i[f+8>>2])););i[(f=i[t>>2])+4>>2]=a=i[t+4>>2],i[a>>2]=f,T(t),f=i[n+4>>2]}t=i[(f=n>>>0>f>>>0?f:n)>>2],i[i[t+4>>2]>>2]=a=i[i[f+4>>2]>>2],i[i[a+4>>2]>>2]=t,T(f)}if(f=(0|n)!=(0|r),n=o,!f)break}i[(n=i[e>>2])+4>>2]=o=i[e+4>>2],i[o>>2]=n,T(e)}if((0|k)==(0|(e=s)))break}}function z(n,f){var a=0,t=0,e=0,b=0,o=0,k=0;if((0|(n|=0))!=(0|(f|=0))){if((0|(t=i[f+16>>2]))!=(0|(o=i[n+16>>2]))){for(a=e=i[t+8>>2];i[a+16>>2]=o,(0|e)!=(0|(a=i[a+8>>2])););i[(a=i[t>>2])+4>>2]=e=i[t+4>>2],i[e>>2]=a,T(t)}if((0|(k=i[n+20>>2]))!=(0|(e=i[f+20>>2]))){for(a=b=i[e+8>>2];i[a+20>>2]=k,(0|b)!=(0|(a=i[a+12>>2])););i[(a=i[e>>2])+4>>2]=b=i[e+4>>2],i[b>>2]=a,T(e)}if(a=i[n+8>>2],i[i[(b=i[f+8>>2])+4>>2]+12>>2]=n,i[i[a+4>>2]+12>>2]=f,i[f+8>>2]=a,i[n+8>>2]=b,(0|t)==(0|o)){if(!(t=H(40)))return 0;for(i[t+4>>2]=o=i[(a=i[n+16>>2])+4>>2],i[o>>2]=t,i[t>>2]=a,i[a+4>>2]=t,i[t+12>>2]=0,i[t+8>>2]=f,a=f;i[a+16>>2]=t,(0|(a=i[a+8>>2]))!=(0|f););i[i[n+16>>2]+8>>2]=n}if((0|e)==(0|k)){if(!(t=H(24)))return 0;for(i[t+4>>2]=e=i[(a=i[n+20>>2])+4>>2],i[e>>2]=t,i[t>>2]=a,i[a+4>>2]=t,i[t+12>>2]=0,i[t+16>>2]=0,i[t+8>>2]=f,p[t+20|0]=0,p[t+21|0]=w[a+21|0],a=f;i[a+20>>2]=t,(0|(a=i[a+12>>2]))!=(0|f););i[i[n+20>>2]+8>>2]=n}}return 1}function d1(n,f){var a=0,t=0,e=0,b=0,o=0,k=0,r=u(0),s=0,A=0,l=u(0);if(i[n+20>>2]){t=f,i[(a=i[n>>2])+8>>2]=n=i[a+8>>2]+1|0;i:{if(!((0|(f=i[a+12>>2]))>=n<<1)){if(i[a+12>>2]=f<<1,e=i[a+4>>2],f=l0(b=i[a>>2],f<<3|4),i[a>>2]=f,!f){i[a>>2]=b,e=2147483647;break i}if(f=l0(i[a+4>>2],8+(i[a+12>>2]<<3)|0),i[a+4>>2]=f,!f){i[a+4>>2]=e,e=2147483647;break i}}if(b=i[a+4>>2],e=n,(f=i[a+16>>2])&&(i[a+16>>2]=i[4+(b+(f<<3)|0)>>2],e=f),i[(o=i[a>>2])+(n<<2)>>2]=e,i[(k=b+(e<<3)|0)>>2]=t,i[k+4>>2]=n,i[a+20>>2]){f:if(n>>>0<2)f=n;else for(r=c[t+28>>2];;){if(a=i[((f=n>>1)<<2)+o>>2],A=i[(s=b+(a<<3)|0)>>2],(l=c[A+28>>2])>2]<=c[t+32>>2])|r!=l)){f=n;break f}if(i[(n<<2)+o>>2]=a,i[s+4>>2]=n,!((n=f)>>>0>1))break}i[(f<<2)+o>>2]=e,i[k+4>>2]=f}}return e}if(t=(a=i[n+12>>2])+1|0,i[n+12>>2]=t,e=i[n+4>>2],(0|(b=t))<(0|(t=i[n+16>>2])))t=e;else if(i[n+16>>2]=t<<1,t=l0(e,t<<3),i[n+4>>2]=t,!t)return i[n+4>>2]=e,2147483647;return i[(a<<2)+t>>2]=f,-1^a}function f0(n){n|=0;var b,o,f=0,a=0,t=0,e=0,k=0;b=H(40),o=H(40);i:{if(!(t=H(24))||!b|!o){if(b&&T(b),o&&T(o),!t)break i;return T(t),0}if(!(f=H(64)))return 0;for(e=i[(a=(a=i[n+68>>2])>>>0<(e=n- -64|0)>>>0?a:e)+4>>2],i[f+32>>2]=k=i[e>>2],i[i[k+4>>2]>>2]=f,i[f>>2]=a,i[(a=e)>>2]=e=f+32|0,i[f+16>>2]=0,i[f+20>>2]=0,i[f+12>>2]=e,i[f+4>>2]=e,i[f+24>>2]=0,i[f+28>>2]=0,i[f+48>>2]=0,i[f+52>>2]=0,i[f+44>>2]=f,i[f+40>>2]=e,i[f+36>>2]=f,i[f+56>>2]=0,i[f+60>>2]=0,i[f+8>>2]=f,i[b+4>>2]=a=i[n+4>>2],i[a>>2]=b,i[b+12>>2]=0,i[b+8>>2]=f,a=f;i[a+16>>2]=b,(0|(a=i[a+8>>2]))!=(0|f););for(i[o+4>>2]=b,i[b>>2]=o,i[o>>2]=n,i[n+4>>2]=o,i[o+12>>2]=0,i[o+8>>2]=e,a=e;i[a+16>>2]=o,(0|e)!=(0|(a=i[a+8>>2])););for(i[t+4>>2]=a=i[n+44>>2],i[a>>2]=t,i[t>>2]=n+40,i[n+44>>2]=t,i[t+12>>2]=0,i[t+16>>2]=0,i[t+8>>2]=f,p[t+20|0]=0,p[t+21|0]=w[n+61|0],a=f;i[a+20>>2]=t,(0|(a=i[a+12>>2]))!=(0|f););}return 0|f}function I0(n,f){var a=0,t=0,e=0,b=0,o=0,k=0;i[n+8>>2]=i[283],a=i[282],i[n>>2]=i[281],i[n+4>>2]=a;i:if(w[(a=i[f+20>>2])+21|0]){e=f;f:{a:{for(;;){if(w[a+20|0])break i;if(p[a+20|0]=1,i[a+16>>2]=t,w[(t=i[(e=i[i[e+12>>2]+4>>2])+20>>2])+21|0]){if(w[t+20|0])break a;if(p[t+20|0]=1,i[t+16>>2]=a,b=b+2|0,w[(a=i[(e=i[e+8>>2])+20>>2])+21|0])continue;break i}break}b|=1;break f}b|=1}t=a}else e=f;i:if(!(!w[(a=i[(o=i[f+4>>2])+20>>2])+21|0]|w[a+20|0])){f:{a:{for(;;){if(p[a+20|0]=1,i[a+16>>2]=t,w[(t=i[(o=i[(f=i[o+12>>2])+4>>2])+20>>2])+21|0]){if(w[t+20|0])break a;if(p[t+20|0]=1,i[t+16>>2]=a,k=k+2|0,!w[(a=i[(o=i[(f=i[i[o+8>>2]+4>>2])+4>>2])+20>>2])+21|0])break i;if(!w[a+20|0])continue;break i}break}k|=1;break f}k|=1}t=a}i[n>>2]=a=b+k|0;i:{if(1&b){if(!(1&k))break i;i[n>>2]=a-1,f=f+8|0}else f=e+4|0;f=i[f>>2]}if(i[n+4>>2]=f,t)for(;p[t+20|0]=0,t=i[t+16>>2];);}function E2(n,f){var a=0;if((0|(a=i[(n|=0)>>2]))!=(0|(f|=0)))for(;;){i:if(f>>>0>a>>>0){f:switch(0|a){case 0:11==(0|(a=i[n+1732>>2]))?M[i[n+12>>2]](100151):M[0|a](100151,i[n+1896>>2]),i[n>>2]&&E2(n,0),i[n+112>>2]=0,a=1,i[n>>2]=1,p[n+108|0]=0,i[n+1896>>2]=0,i[n+8>>2]=0;break i;case 1:break f;default:break i}if(11==(0|(a=i[n+1732>>2]))?M[i[n+12>>2]](100152):M[0|a](100152,i[n+1896>>2]),1!=i[n>>2]&&E2(n,1),i[n>>2]=2,i[n+4>>2]=0,a=2,i[n+112>>2]<1)break i;p[n+108|0]=1}else{f:switch(a-1|0){case 1:11==(0|(a=i[n+1732>>2]))?M[i[n+12>>2]](100154):M[0|a](100154,i[n+1896>>2]),2!=i[n>>2]&&E2(n,2),a=1,i[n>>2]=1;break i;case 0:break f;default:break i}11==(0|(a=i[n+1732>>2]))?M[i[n+12>>2]](100153):M[0|a](100153,i[n+1896>>2]),(a=i[n+8>>2])&&L0(a),a=0,i[n+8>>2]=0,i[n>>2]=0,i[n+4>>2]=0}if((0|f)==(0|a))break}}function p1(n,f,a){var t=0,e=0,b=0,o=0,k=0,r=0,s=0,A=0,l=0;i:{f:{a:{n:{t:{b:{e:{c:{u:{o:{if(e=f,f){if(!(t=a))break o;break u}n=(n>>>0)/(a>>>0)|0,v2=0;break i}if(!n)break c;break e}if(!(t-1&t))break b;r=0-(k=(s0(t)+33|0)-s0(e)|0)|0;break n}n=(e>>>0)/0|0,v2=0;break i}if((t=32-s0(e)|0)>>>0<31)break t;break a}if(1==(0|t))break f;a=31&(t=t?31-s0(t-1^t)|0:32),(63&t)>>>0>=32?(e=0,n=f>>>a|0):(e=f>>>a|0,n=((1<>>a),v2=e;break i}k=t+1|0,r=63-t|0}if(t=f,b=31&(e=63&k),e>>>0>=32?(e=0,b=t>>>b|0):(e=t>>>b|0,b=((1<>>b),t=31&(r&=63),r>>>0>=32?(f=n<>>32-t|f<>>31)-(A=a&(o=r-((e=e<<1|b>>>31)+(t>>>0>>0)|0)>>31))|0,e=e-(s>>>0>>0)|0,f=f<<1|n>>>31,n=l|n<<1,l=o&=1,k=k-1|0;);v2=f<<1|n>>>31,n=o|n<<1;break i}n=0,f=0}v2=f}return n}function h1(n){var a,e,b,m,f=0,t=0,o=0,k=u(0),r=0,s=u(0),A=0,l=0,v=0,h=0,y=0;if(m=i[(f=(e=i[n+4>>2])+((t=i[(a=i[n>>2])+4>>2])<<3)|0)>>2],!((0|(b=i[n+8>>2]))<1)&&(i[a+4>>2]=A=i[(b<<2)+a>>2],i[4+(l=(A<<3)+e|0)>>2]=1,i[f>>2]=0,i[f+4>>2]=i[n+16>>2],i[n+8>>2]=v=b-1|0,i[n+16>>2]=t,1!=(0|b))){for(y=(A<<3)+e|0,f=1;(0|v)<=(0|(n=f<<1))||(o=i[(i[((t=1|n)<<2)+a>>2]<<3)+e>>2],!(c[o+32>>2]<=c[(r=i[(i[(n<<2)+a>>2]<<3)+e>>2])+32>>2])|(k=c[o+28>>2])!=(s=c[r+28>>2])&&!(k=(0|b)||(t=i[y>>2],k=c[t+28>>2],o=i[(n<<2)+a>>2],h=i[(r=(o<<3)+e|0)>>2],k<(s=c[h+28>>2])|(c[t+32>>2]<=c[h+32>>2]?k==s:0)));)i[(f<<2)+a>>2]=o,i[r+4>>2]=f,f=n;i[(f<<2)+a>>2]=A,i[l+4>>2]=f}return m}function m1(n,f,a){var t=0,e=0;if(a&&(p[(t=n+a|0)-1|0]=f,p[0|n]=f,!(a>>>0<3||(p[t-2|0]=f,p[n+1|0]=f,p[t-3|0]=f,p[n+2|0]=f,a>>>0<7||(p[t-4|0]=f,p[n+3|0]=f,a>>>0<9||(t=(t=n)+(n=0-n&3)|0,e=W(255&f,16843009),i[t>>2]=e,i[(f=(n=a-n&-4)+t|0)-4>>2]=e,n>>>0<9||(i[t+8>>2]=e,i[t+4>>2]=e,i[f-8>>2]=e,i[f-12>>2]=e,n>>>0<25||(i[t+24>>2]=e,i[t+20>>2]=e,i[t+16>>2]=e,i[t+12>>2]=e,i[f-16>>2]=e,i[f-20>>2]=e,i[f-24>>2]=e,i[f-28>>2]=e,(a=n-(f=4&t|24)|0)>>>0<32))))))))for(e=x0(e,0,1,1),n=v2,f=f+t|0;i[f+24>>2]=e,i[f+28>>2]=t=n,i[f+16>>2]=e,i[f+20>>2]=t,i[f+8>>2]=e,i[f+12>>2]=t,i[f>>2]=e,i[f+4>>2]=t,f=f+32|0,(a=a-32|0)>>>0>31;);}function w1(n,f,a){i:if(!(f>>>0>20)){f:switch(f-9|0){case 0:return i[a>>2]=(f=i[a>>2])+4,void(i[n>>2]=i[f>>2]);case 1:return i[a>>2]=(f=i[a>>2])+4,i[n>>2]=f=i[f>>2],void(i[n+4>>2]=f>>31);case 2:return i[a>>2]=(f=i[a>>2])+4,i[n>>2]=i[f>>2],void(i[n+4>>2]=0);case 3:return i[a>>2]=8+(f=i[a>>2]+7&-8),a=i[f+4>>2],i[n>>2]=i[f>>2],void(i[n+4>>2]=a);case 4:return i[a>>2]=(f=i[a>>2])+4,i[n>>2]=f=r2[f>>1],void(i[n+4>>2]=f>>31);case 5:return i[a>>2]=(f=i[a>>2])+4,i[n>>2]=P2[f>>1],void(i[n+4>>2]=0);case 6:return i[a>>2]=(f=i[a>>2])+4,i[n>>2]=f=p[0|f],void(i[n+4>>2]=f>>31);case 7:return i[a>>2]=(f=i[a>>2])+4,i[n>>2]=w[0|f],void(i[n+4>>2]=0);case 8:return i[a>>2]=8+(f=i[a>>2]+7&-8),void(X[n>>3]=X[f>>3]);case 9:break f;default:break i}M[0](n,a)}}function G(n,f,a){var o,t=u(0),e=u(0),b=0,k=u(0),r=u(0),s=0,A=u(0),l=u(0);B=o=B+-64|0,s=(t=c[f+28>>2])>(e=c[n+28>>2]);i:{f:{if(!(!(c[n+32>>2]<=c[f+32>>2])|t!=e)||s){if((k=c[a+28>>2])>t|(c[f+32>>2]<=c[a+32>>2]?t==k:0))break i;if(b=1,s)break f}b=0,t==e&&(b=c[n+32>>2]<=c[f+32>>2])}s=b,b=1,(k=c[a+28>>2])>t||(b=0,t==k&&(b=c[f+32>>2]<=c[a+32>>2])),r=c[n+32>>2],A=c[f+32>>2],l=c[a+32>>2],X[o+40>>3]=k,X[o+24>>3]=t,X[o+48>>3]=l,X[o+32>>3]=A,X[o+16>>3]=r,X[o+8>>3]=e,i[o+4>>2]=b,i[o>>2]=s,S1(1092,o),k=c[a+28>>2],e=c[n+28>>2],t=c[f+28>>2]}return r=u(0),B=o- -64|0,e=u(t-e),t=u(k-t),u(e+t)>u(0)&&(r=u(u((r=e)*u((e=c[f+32>>2])-c[a+32>>2]))+u(t*u(e-c[n+32>>2])))),r}function a0(n,f,a){var t=0,e=0,b=0,o=0;t=i[f>>2];i:{if((0|f)!=(0|a))for(;;){if(p[f+15|0]=0,i[(e=i[(b=i[i[(o=i[f+4>>2])+8>>2]>>2])>>2])+16>>2]!=i[t+16>>2]){if(!w[b+15|0])return n=w[f+12|0],i[(a=i[t+20>>2])+8>>2]=t,p[a+21|0]=n,i[t+24>>2]=0,h2(o),T(f),t;if(!(e=d2(i[i[t+8>>2]+4>>2],i[e+4>>2]))||!$(i[b>>2]))break i;i[b>>2]=e,p[b+15|0]=0,i[e+24>>2]=b}if(!(i[t+8>>2]==(0|e)||z(i[i[e+4>>2]+12>>2],e)&&z(t,e)))break i;if(e=w[f+12|0],i[(o=i[(t=i[f>>2])+20>>2])+8>>2]=t,p[o+21|0]=e,i[t+24>>2]=0,h2(i[f+4>>2]),T(f),t=i[b>>2],(0|a)==(0|(f=b)))break}return t}b2(n+1740|0,1),o2()}function W2(n,f,a){switch(f-100100|0){case 0:return void(i[n+88>>2]=a||15);case 6:return void(i[n+1716>>2]=a||3);case 4:return p[n+80|0]=0!=(0|a),void(i[n+92>>2]=a||14);case 10:return p[n+80|0]=0!=(0|a),void(i[n+1720>>2]=a||4);case 1:return void(i[n+96>>2]=a||13);case 7:return void(i[n+1724>>2]=a||5);case 2:return void(i[n+100>>2]=a||12);case 8:return void(i[n+1728>>2]=a||6);case 3:return void(i[n+12>>2]=a||18);case 9:return void(i[n+1732>>2]=a||11);case 5:return void(i[n+76>>2]=a||17);case 11:return void(i[n+1736>>2]=a||8);case 12:return void(i[n+104>>2]=a||16)}11==(0|(f=i[n+1732>>2]))?M[i[n+12>>2]](100900):M[0|f](100900,i[n+1896>>2])}function Z(n,f,a){var t=0,e=0,b=0;if(!(32&w[0|n]))i:{e=f,t=a;f:{if(!(n=i[(f=n)+16>>2])){if(p[f+74|0]=(n=w[f+74|0])-1|n,8&(n=i[f>>2])?(i[f>>2]=32|n,n=-1):(i[f+4>>2]=0,i[f+8>>2]=0,i[f+28>>2]=n=i[f+44>>2],i[f+20>>2]=n,i[f+16>>2]=n+i[f+48>>2],n=0),n)break f;n=i[f+16>>2]}if(n-(b=i[f+20>>2])>>>0>>0){M[i[f+36>>2]](f,e,a);break i}a:if(!(p[f+75|0]<0)){for(n=a;;){if(t=n,!n)break a;if(10==w[e+(n=t-1|0)|0])break}if(M[i[f+36>>2]](f,e,t)>>>0>>0)break f;e=t+e|0,a=a-t|0,b=i[f+20>>2]}l1(b,e,a),i[f+20>>2]=i[f+20>>2]+a}}}function y1(n,f,a,t){var e,b=0;B=e=B-208|0,i[e+204>>2]=a,m1(e+160|0,0,40),i[e+200>>2]=i[e+204>>2],(0|R0(0,f,e+200|0,e+80|0,e+160|0,t))<0||(a=i[n>>2],p[n+74|0]<=0&&(i[n>>2]=-33&a),b=32&a,i[n+48>>2]?R0(n,f,e+200|0,e+80|0,e+160|0,t):(i[n+48>>2]=80,i[n+16>>2]=e+80,i[n+28>>2]=e,i[n+20>>2]=e,a=i[n+44>>2],i[n+44>>2]=e,R0(n,f,e+200|0,e+80|0,e+160|0,t),a&&(M[i[n+36>>2]](n,0,0),i[n+48>>2]=0,i[n+44>>2]=a,i[n+28>>2]=0,i[n+16>>2]=0,i[n+20>>2]=0)),i[n>>2]=i[n>>2]|b),B=e+208|0}function g1(n,f){if(!n)return 0;i:{f:{if(n){if(f>>>0<=127)break f;if(i[i[493]>>2]){if(f>>>0<=2047){p[n+1|0]=63&f|128,p[0|n]=f>>>6|192,n=2;break i}if(!(57344!=(-8192&f)&&f>>>0>=55296)){p[n+2|0]=63&f|128,p[0|n]=f>>>12|224,p[n+1|0]=f>>>6&63|128,n=3;break i}if(f-65536>>>0<=1048575){p[n+3|0]=63&f|128,p[0|n]=f>>>18|240,p[n+2|0]=f>>>6&63|128,p[n+1|0]=f>>>12&63|128,n=4;break i}}else if(57216==(-128&f))break f;i[613]=25,n=-1}else n=1;break i}p[0|n]=f,n=1}return n}function _0(){var n,f=0,a=0;return(n=H(128))?(i[n+8>>2]=0,i[n+12>>2]=0,i[n+44>>2]=f=n+40|0,i[n+48>>2]=0,i[n+52>>2]=0,i[n+40>>2]=f,r2[n+54>>1]=0,r2[n+56>>1]=0,r2[n+58>>1]=0,r2[n+60>>1]=0,i[n+72>>2]=0,i[n+76>>2]=0,i[n+68>>2]=f=n+96|0,i[n+64>>2]=a=n- -64|0,i[n+80>>2]=0,i[n+84>>2]=0,i[n+88>>2]=0,i[n+92>>2]=0,i[n+104>>2]=0,i[n+108>>2]=0,i[n+100>>2]=a,i[n+96>>2]=f,i[n+112>>2]=0,i[n+116>>2]=0,i[n+120>>2]=0,i[n+124>>2]=0,i[n>>2]=n,i[n+4>>2]=n,0|n):0}function S0(n){var t,b,f=0,a=0,e=0,o=u(0),k=u(0),r=0;if(!(f=i[n+12>>2]))return h1(i[n>>2]);if(t=i[i[((b=i[n+8>>2])+(f<<2)|0)-4>>2]>>2],i[(a=i[n>>2])+8>>2]&&(!(!(c[(e=i[i[a+4>>2]+(i[i[a>>2]+4>>2]<<3)>>2])+32>>2]<=c[t+32>>2])|(o=c[e+28>>2])!=(k=c[t+28>>2]))||o>2]=a,t;if(e=f<<2,f=r=f-1|0,i[i[(e+b|0)-8>>2]>>2])break}return i[n+12>>2]=r,t}function C1(n,f){var a=0,t=0,e=0;(a=H(16))&&(e=f0(i[n+8>>2]))&&(c[(t=i[e+16>>2])+32>>2]=f,i[t+28>>2]=2112929218,c[(t=i[i[e+4>>2]+16>>2])+32>>2]=f,i[t+28>>2]=-34554430,i[n+72>>2]=t,p[a+15|0]=0,p[a+12|0]=0,i[a+8>>2]=0,i[a>>2]=e,p[a+13|0]=1,p[a+14|0]=0,t=a,a=P0(e=i[n+64>>2],e,a),i[t+4>>2]=a,a)||(b2(n+1740|0,1),o2())}function L0(n){var f=0,a=0,t=0;if((0|(f=i[40+(n|=0)>>2]))!=(0|(a=n+40|0)))for(;t=i[f>>2],T(f),(0|a)!=(0|(f=t)););if((0|(f=i[n>>2]))!=(0|n))for(;t=i[f>>2],T(f),(0|(f=t))!=(0|n););if((0|(f=i[n+64>>2]))!=(0|(a=n- -64|0)))for(;t=i[f>>2],T(f),(0|a)!=(0|(f=t)););T(n)}function E1(n){var f=0,a=u(0),t=u(0);return(f=i[n+12>>2])?(f=i[i[(i[n+8>>2]+(f<<2)|0)-4>>2]>>2],i[(n=i[n>>2])+8>>2]&&((a=c[(n=i[i[n+4>>2]+(i[i[n>>2]+4>>2]<<3)>>2])+28>>2])<(t=c[f+28>>2])||a==t&&c[n+32>>2]<=c[f+32>>2])||(n=f),n):i[i[(n=i[n>>2])+4>>2]+(i[i[n>>2]+4>>2]<<3)>>2]}function q2(n,f,a){var t=0,e=0,b=0;if(f>>>0<1)t=n;else for(;t=p1(n,f,10),b=e=v2,e=x0(t,e,10,0),p[0|(a=a-1|0)]=n-e|48,e=f>>>0>9,n=t,f=b,e;);if(t)for(;p[0|(a=a-1|0)]=t-W(n=(t>>>0)/10|0,10)|48,f=t>>>0>9,t=n,f;);return a}function R1(n,f,a,t){var b,e=0,o=0;if(i[610]=b=i[610]+1|0,i[n>>2]=b,t)for(;;){if(!i[(o=(e<<3)+a|0)>>2])return i[o>>2]=b,i[4+(n=(e<<3)+a|0)>>2]=f,i[n+8>>2]=0,K(0|t),a;if((0|(e=e+1|0))==(0|t))break}return e=n,n=t<<1,f=R1(e,f,l0(a,t<<4|8),n),K(0|n),f}function M1(n,f){var t,e,a=0;if(E0(+n),a=0|l2(1),t=0|l2(0),e=a,2047!=(0|(a=a>>>20&2047))){if(!a)return a=f,0==n?f=0:(n=M1(0x10000000000000000*n,f),f=i[f>>2]+-64|0),i[a>>2]=f,n;i[f>>2]=a-1022,b1(0,0|t),b1(1,-2146435073&e|1071644672),n=+function l4(){return r0[0]}()}return n}function I1(n,f,a){var t=u(0),e=u(0),b=u(0),o=u(0),k=u(0);return e=u((t=c[f+28>>2])-c[n+28>>2]),t=u(c[a+28>>2]-t),(b=u(e+t))>u(0)?(k=c[f+32>>2],o=c[((f=t>e)?n:a)+32>>2],t=u(u(k-o)+u(u((f?e:t)/b)*u(o-c[(f?a:n)+32>>2])))):t=u(0),t}function P0(n,f,a){for(var t=0;(t=i[(f=i[f+8>>2])>>2])&&!(0|M[i[n+16>>2]](i[n+12>>2],t,a)););return(n=H(12))?(i[n>>2]=a,i[n+4>>2]=i[f+4>>2],i[i[f+4>>2]+8>>2]=n,i[n+8>>2]=f,i[f+4>>2]=n,n):0}function x0(n,f,a,t){var o,k,r,s,e=0,b=0;return s=W(e=a>>>16|0,b=n>>>16|0),e=(65535&(b=((r=W(o=65535&a,k=65535&n))>>>16|0)+W(b,o)|0))+W(e,k)|0,v2=(W(f,a)+s|0)+W(n,t)+(b>>>16)+(e>>>16)|0,65535&r|e<<16}function i2(n,f,a,t,e){var b;if(B=b=B-256|0,!(73728&e|(0|a)<=(0|t))){if(m1(b,255&f,(t=(a=a-t|0)>>>0<256)?a:256),!t)for(;Z(n,b,256),(a=a-256|0)>>>0>255;);Z(n,b,a)}B=b+256|0}function J(n,f,a){var t=0,e=0;i:if(a)for(;;){if(!(e=i[(t<<3)+f>>2]))break i;if((0|n)==(0|e))return i[4+((t<<3)+f|0)>>2];if((0|(t=t+1|0))==(0|a))break}return 0}function U2(n){var f,a;return(n=(f=i[412])+(a=n+3&-4)|0)>>>0<=f>>>0&&a||n>>>0>L1()<<16>>>0&&!(0|p4(0|n))?(i[613]=48,-1):(i[412]=n,f)}function _1(n){var f=0,a=0,t=0;if(p[i[n>>2]]-48>>>0<10)for(;t=p[0|(f=i[n>>2])],i[n>>2]=f+1,a=(W(a,10)+t|0)-48|0,p[f+1|0]-48>>>0<10;);return a}function B0(n){var f=0;(f=i[n>>2])&&(T(i[f+4>>2]),T(i[f>>2]),T(f)),(f=i[n+8>>2])&&T(f),(f=i[n+4>>2])&&T(f),T(n)}function h2(n){var f;i[(f=i[n+4>>2])+8>>2]=i[n+8>>2],i[i[n+8>>2]+4>>2]=f,T(n)}function S1(n,f){var a;B=a=B-16|0,i[a+12>>2]=f,y1(i[288],n,f,43),B=a+16|0}function f2(n){var f;return(-1>>>(f=31&n)&-2)<>>n}function b2(n,f){n|=0,i[611]||(i[612]=f|=0,i[611]=n),h4()}function v0(n,f){}function R2(n){}function T0(){}S=w,function a2(Q){D(S,1024,"LSsgICAwWDB4AC0wWCswWCAwWC0weCsweCAweABuYW4AaW5mAE5BTgBJTkYALgAobnVsbCkAR290IGVycm9yICVkCgAlZCAlZCAoJWYsJWYpLCglZiwlZiksKCVmLCVmKSAK"),D(S,1132,"BwAAAAAAAD8AAAA/AAAAAAAAAAB4Bg=="),D(S,1168,"EQAKABEREQAAAAAFAAAAAAAACQAAAAALAAAAAAAAAAARAA8KERERAwoHAAEACQsLAAAJBgsAAAsABhEAAAARERE="),D(S,1249,"CwAAAAAAAAAAEQAKChEREQAKAAACAAkLAAAACQALAAAL"),D(S,1307,"DA=="),D(S,1319,"DAAAAAAMAAAAAAkMAAAAAAAMAAAM"),D(S,1365,"Dg=="),D(S,1377,"DQAAAAQNAAAAAAkOAAAAAAAOAAAO"),D(S,1423,"EA=="),D(S,1435,"DwAAAAAPAAAAAAkQAAAAAAAQAAAQAAASAAAAEhIS"),D(S,1490,"EgAAABISEgAAAAAAAAk="),D(S,1539,"Cw=="),D(S,1551,"CgAAAAAKAAAAAAkLAAAAAAALAAAL"),D(S,1597,"DA=="),D(S,1609,"DAAAAAAMAAAAAAkMAAAAAAAMAAAMAAAwMTIzNDU2Nzg5QUJDREVG"),D(S,1648,"4I8AAAAAAAAF"),D(S,1668,"KA=="),D(S,1692,"KQAAACoAAACYCwAAAAQ="),D(S,1716,"AQ=="),D(S,1731,"Cv////8="),D(S,1972,"wA8=")}();var M=function L(Q){return Q.set=function(c2,N){this[c2]=N},Q.get=function(c2){return this[c2]},Q}([null,function D4(n,f,a){f=i[20+(f|=0)>>2],i[f+16>>2]=i[84+(n|=0)>>2],i[n+84>>2]=f,p[f+20|0]=1},function P4(n,f,a){f|=0,a|=0,3==(0|(a=i[1716+(n|=0)>>2]))?M[i[n+88>>2]](6):M[0|a](6,i[n+1896>>2]),5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[f+16>>2]+12>>2]):M[0|a](i[i[f+16>>2]+12>>2],i[n+1896>>2]),5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[i[f+4>>2]+16>>2]+12>>2]):M[0|a](i[i[i[f+4>>2]+16>>2]+12>>2],i[n+1896>>2]);i:if(w[(a=i[f+20>>2])+21|0])for(;;){if(w[a+20|0])break i;if(p[a+20|0]=1,f=i[f+8>>2],5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[i[f+4>>2]+16>>2]+12>>2]):M[0|a](i[i[i[f+4>>2]+16>>2]+12>>2],i[n+1896>>2]),!w[(a=i[f+20>>2])+21|0])break}6==(0|(f=i[n+1728>>2]))?M[i[n+100>>2]]():M[0|f](i[n+1896>>2])},v0,v0,v0,R2,function S4(n,f,a){f|=0,a|=0,3==(0|(a=i[1716+(n|=0)>>2]))?M[i[n+88>>2]](5):M[0|a](5,i[n+1896>>2]),5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[f+16>>2]+12>>2]):M[0|a](i[i[f+16>>2]+12>>2],i[n+1896>>2]),5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[i[f+4>>2]+16>>2]+12>>2]):M[0|a](i[i[i[f+4>>2]+16>>2]+12>>2],i[n+1896>>2]);i:if(w[(a=i[f+20>>2])+21|0])for(;;){if(w[a+20|0]||(p[a+20|0]=1,f=i[i[f+12>>2]+4>>2],5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[f+16>>2]+12>>2]):M[0|a](i[i[f+16>>2]+12>>2],i[n+1896>>2]),!w[(a=i[f+20>>2])+21|0]|w[a+20|0]))break i;if(p[a+20|0]=1,f=i[f+8>>2],5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[i[f+4>>2]+16>>2]+12>>2]):M[0|a](i[i[i[f+4>>2]+16>>2]+12>>2],i[n+1896>>2]),!w[(a=i[f+20>>2])+21|0])break}6==(0|(f=i[n+1728>>2]))?M[i[n+100>>2]]():M[0|f](i[n+1896>>2])},function W4(n,f,a,t,e){},function j4(n,f){n|=0,f|=0;var a=u(0),t=u(0);if((a=c[n+28>>2])<(t=c[f+28>>2]))n=1;else{if(a!=t)return 0;n=c[n+32>>2]<=c[f+32>>2]}return 0|n},function B4(n,f,a){n|=0,f|=0,a|=0;var t,e,b=u(0),o=u(0);return t=i[i[(a=i[a>>2])+4>>2]+16>>2],(0|(e=i[i[(f=i[f>>2])+4>>2]+16>>2]))==(0|(n=i[n+72>>2]))?(0|n)==(0|t)?!(!(c[(f=i[f+16>>2])+32>>2]<=c[(a=i[a+16>>2])+32>>2])|(b=c[f+28>>2])!=(o=c[a+28>>2]))||b=u(0)|0:G(t,n,i[a+16>>2])<=u(0)|0:(f=i[f+16>>2],(0|n)==(0|t)?G(e,n,f)>=u(0)|0:I1(e,n,f)>=I1(i[i[a+4>>2]+16>>2],n,i[a+16>>2])|0)},v0,T0,R2,R2,R2,R2,function q4(n,f,a,t){},R2,E2,function I4(n){n|=0;var f=0,a=0,t=u(0),e=u(0),b=u(0),o=u(0),k=u(0),r=u(0),s=0,A=0,l=0,v=u(0),h=u(0),m=0,y=u(0),E=u(0),R=u(0),_=u(0),P=u(0),x=0,F=0,j=u(0),q=u(0),Y=u(0);i:{f:if(!((0|(l=i[n+112>>2]))<3)){if(s=(F=n+116|0)+(l<<4)|0,k=c[n+16>>2],r=c[n+20>>2],(o=c[n+24>>2])!=u(0)||k!=u(0)|r!=u(0))b=u(c[n+140>>2]-(y=c[n+124>>2])),v=u(c[n+136>>2]-(E=c[n+120>>2])),h=u(c[n+132>>2]-(R=c[n+116>>2]));else{for(a=n+148|0,o=u(0),r=u(0),k=u(0),t=h=u(c[(f=n+132|0)>>2]-(R=c[n+116>>2])),e=v=u(c[n+136>>2]-(E=c[n+120>>2])),_=b=u(c[n+140>>2]-(y=c[n+124>>2]));P=u(c[f+20>>2]-E),j=u(c[a>>2]-R),q=u(u(t*P)-u(e*j)),Y=u(c[f+24>>2]-y),e=u(u(e*Y)-u(_*P)),t=u(u(_*j)-u(t*Y)),u(u(o*q)+u(u(k*e)+u(r*t)))>=u(0)?(r=u(r+t),k=u(k+e),o=u(o+q)):(r=u(r-t),k=u(k-e),o=u(o-q)),t=j,e=P,_=Y,s>>>0>(a=(f=a)+16|0)>>>0;);if((0|l)<3)break f}for(a=n+148|0,f=m=n+132|0;;){t=b,b=v,x=f,e=h,v=u(c[f+20>>2]-E),h=u(c[(f=a)>>2]-R),P=u(o*u(u(e*v)-u(b*h))),_=b,b=u(c[x+24>>2]-y);a:if((t=u(P+u(u(k*u(u(_*b)-u(t*v)))+u(r*u(u(t*h)-u(e*b))))))!=u(0)){if(t>u(0)){if(a=0,x=(0|A)<0,A=1,!x)break a;break i}if(a=0,x=(0|A)>0,A=-1,x)break i}if(!(s>>>0>(a=f+16|0)>>>0))break}switch(a=0,0|A){case 2:break i;case 0:break f}a=1;a:{n:switch(i[n+56>>2]-100132|0){case 0:if((0|A)>=0)break a;break f;case 2:break i;case 1:break n;default:break a}if((0|A)>0)break f}3==(0|(f=i[n+1716>>2]))?M[i[n+88>>2]](w[n+81|0]?2:(0|l)<4?4:6):M[0|f](w[n+81|0]?2:(0|l)<4?4:6,i[n+1896>>2]),5==(0|(f=i[n+1724>>2]))?M[i[n+96>>2]](i[n+128>>2]):M[0|f](i[n+128>>2],i[n+1896>>2]);a:if((0|A)<=0){if(F>>>0>=(f=s-16|0)>>>0)break a;for(;5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[s-4>>2]):M[0|a](i[s-4>>2],i[n+1896>>2]),s=f,F>>>0<(f=f-16|0)>>>0;);}else if(!((0|l)<2))for(;5==(0|(f=i[n+1724>>2]))?M[i[n+96>>2]](i[m+12>>2]):M[0|f](i[m+12>>2],i[n+1896>>2]),(m=m+16|0)>>>0>>0;);6==(0|(f=i[n+1728>>2]))?M[i[n+100>>2]]():M[0|f](i[n+1896>>2])}a=1}return 0|a},_0,f0,n2,z,r1,b2,function E4(n){n|=0;var b,f=0,a=0,t=0,e=0,o=0,k=0,r=0,s=u(0),A=u(0),l=0,v=0,h=0,m=0,y=0,E=0,R=0,_=0,P=0,x=0;B=b=B-48|0,p[n+60|0]=0;i:{if((0|(f=i[(a=i[n+8>>2])+64>>2]))!=(0|(k=a- -64|0)))for(;;){e=i[f>>2];f:{if(!(c[(o=i[f+16>>2])+28>>2]!=c[(t=i[i[f+4>>2]+16>>2])+28>>2]|c[o+32>>2]!=c[t+32>>2]|i[(a=i[f+12>>2])+12>>2]==(0|f))){i[b+24>>2]=0,i[b+28>>2]=0,i[b+16>>2]=0,i[b+20>>2]=0,t=i[287],i[b+8>>2]=i[286],i[b+12>>2]=t,t=i[285],i[b>>2]=i[284],i[b+4>>2]=t,i[b+16>>2]=i[(t=i[a+16>>2])+12>>2],i[b+20>>2]=i[o+12>>2],c[b+36>>2]=c[t+16>>2],c[b+40>>2]=c[t+20>>2],c[b+44>>2]=c[t+24>>2],i[t+12>>2]=0,t=t+12|0,8==(0|(o=i[n+1736>>2]))?M[i[n+76>>2]](b+36|0,b+16|0,b,t):M[0|o](b+36|0,b+16|0,b,t,i[n+1896>>2]),i[t>>2]||(i[t>>2]=i[b+16>>2]);a:{if(z(a,f)){if(!$(f))break a;t=i[a+12>>2];break f}break i}break i}t=a,a=f}if(i[t+12>>2]==(0|a)){if((0|a)!=(0|t)&&(e=i[e+4>>2]!=(0|t)&&(0|t)!=(0|e)?e:i[e>>2],!$(t))||(f=(0|a)==(0|e)|i[e+4>>2]==(0|a)?i[e>>2]:e,!$(a)))break i}else f=e;if((0|f)==(0|k))break}e=n,(f=H(28))?(t=f,(a=H(28))?(i[a+8>>2]=0,i[a+12>>2]=32,o=H(132),i[a>>2]=o,o?(k=H(264),i[a+4>>2]=k,k?(i[a+24>>2]=9,i[a+16>>2]=0,i[a+20>>2]=0,i[o+4>>2]=1,i[k+8>>2]=0):(T(o),T(a),a=0)):(T(a),a=0)):a=0,i[t>>2]=a,a?(t=H(128),i[f+4>>2]=t,t?(i[f+24>>2]=9,i[f+20>>2]=0,i[f+12>>2]=0,i[f+16>>2]=32):(T(i[a+4>>2]),T(i[a>>2]),T(a),T(f),f=0)):(T(f),f=0)):f=0,h=f,i[e+68>>2]=f;f:if(f){a:{n:{if((0|(f=i[(a=i[n+8>>2])>>2]))!=(0|a))for(;;){if(e=d1(h,f),i[f+36>>2]=e,2147483647==(0|e))break n;if((0|a)==(0|(f=i[f>>2])))break}if(B=E=B-400|0,e=H(4+(f=(y=i[h+12>>2])<<2)|0),i[h+8>>2]=e,B=E+400|0,e){if(!((o=(f+e|0)-4|0)>>>0>>0)){if(a=i[h+4>>2],t=1+((k=(y<<2)-4|0)>>>2|0)&7)for(f=e;i[f>>2]=a,f=f+4|0,a=a+4|0,t=t-1|0;);else f=e;if(!(k>>>0<28))for(;i[f>>2]=a,i[f+28>>2]=a+28,i[f+24>>2]=a+24,i[f+20>>2]=a+20,i[f+16>>2]=a+16,i[f+12>>2]=a+12,i[f+8>>2]=a+8,i[f+4>>2]=a+4,a=a+32|0,o>>>0>=(f=f+32|0)>>>0;);}for(i[E+4>>2]=o,i[E>>2]=e,R=2016473283,r=1;;){if((l=i[((r<<3)+E|0)-4>>2])>>>0>(k=i[(m<<3)+E>>2])+40>>>0)for(;;){for(R=W(R,1539415821)+1|0,P=i[(f=((R>>>0)%(1+(l-k>>2)>>>0)<<2)+k|0)>>2],i[f>>2]=i[k>>2],i[k>>2]=P,t=l+4|0,a=k-4|0;;){e=t,o=a,r=f=a+4|0;t:if(!((s=c[(t=i[(v=i[a+4>>2])>>2])+28>>2])<(A=c[(_=i[P>>2])+28>>2]))){for(;;){if(a=f,r=f,c[t+32>>2]<=c[_+32>>2]&&s==A)break t;if(f=a+4|0,o=a,A>(s=c[(t=i[(v=i[a+4>>2])>>2])+28>>2]))break}r=f}a=r,r=i[(t=e-4|0)>>2];t:if(!(A<(s=c[(f=i[r>>2])+28>>2])))for(;;){if(!(!(c[_+32>>2]<=c[f+32>>2])|s!=A))break t;if(e=t,r=i[(t=t-4|0)>>2],A<(s=c[(f=i[r>>2])+28>>2]))break}if(i[a>>2]=r,i[t>>2]=v,!(a>>>0>>0))break}if(f=i[a>>2],i[a>>2]=v,i[t>>2]=f,(a-k|0)<(l-t|0)?(f=e,t=l,l=o):(f=k,t=o,k=e),i[4+(a=(m<<3)+E|0)>>2]=t,i[a>>2]=f,m=m+1|0,!(k+40>>>0>>0))break}if(r=m,l>>>0>=(e=k+4|0)>>>0)for(;;){t=i[e>>2],a=f=e;t:if(!(k>>>0>=f>>>0))for(;;){if(m=i[(a=f-4|0)>>2],(s=c[(o=i[t>>2])+28>>2])<(A=c[(v=i[m>>2])+28>>2])){a=f;break t}if(!(!(c[o+32>>2]<=c[v+32>>2])|s!=A)){a=f;break t}if(i[f>>2]=m,!(k>>>0<(f=a)>>>0))break}if(i[a>>2]=t,!(l>>>0>=(e=e+4|0)>>>0))break}if(m=r-1|0,!((0|r)>=1))break}if(i[h+20>>2]=1,i[h+16>>2]=y,(0|(e=i[(h=i[h>>2])+8>>2]))>=1)for(l=i[h+4>>2],k=i[h>>2],a=e;;){for(t=a,r=l+((m=i[k+(a<<2)>>2])<<3)|0,f=a;(0|e)<=(0|(a=f<<1))||(v=i[l+(i[k+((o=1|a)<<2)>>2]<<3)>>2],!(c[v+32>>2]<=c[(y=i[l+(i[k+(a<<2)>>2]<<3)>>2])+32>>2])|(s=c[v+28>>2])!=(A=c[y+28>>2])&&!(s(0|e)||(o=i[r>>2],s=c[o+28>>2],v=i[k+(a<<2)>>2],R=i[(y=l+(v<<3)|0)>>2],s<(A=c[R+28>>2])|(c[o+32>>2]<=c[R+32>>2]?s==A:0)));)i[k+(f<<2)>>2]=v,i[y+4>>2]=f,f=a;if(i[k+(f<<2)>>2]=m,i[r+4>>2]=f,a=t-1|0,!((0|t)>1))break}i[h+20>>2]=1,f=1}else f=0;if(f)break a}B0(i[n+68>>2]),i[n+68>>2]=0;break f}if(a=n- -64|0,(f=H(20))?(i[f+16>>2]=10,i[f+12>>2]=n,i[f>>2]=0,i[f+8>>2]=f,i[f+4>>2]=f):f=0,i[a>>2]=f,!f)break i;if(C1(n,u(-3999999973526325e22)),C1(n,u(3999999973526325e22)),a=S0(i[n+68>>2]))for(;;){a:if(f=E1(i[n+68>>2]))for(;;){if(c[f+28>>2]!=c[a+28>>2]|c[f+32>>2]!=c[a+32>>2])break a;if(e=i[S0(i[n+68>>2])+8>>2],t=i[a+8>>2],i[b+24>>2]=0,i[b+28>>2]=0,i[b+16>>2]=0,i[b+20>>2]=0,f=i[287],i[b+8>>2]=i[286],i[b+12>>2]=f,f=i[285],i[b>>2]=i[284],i[b+4>>2]=f,i[b+16>>2]=i[(f=i[t+16>>2])+12>>2],i[b+20>>2]=i[i[e+16>>2]+12>>2],c[b+36>>2]=c[f+16>>2],c[b+40>>2]=c[f+20>>2],c[b+44>>2]=c[f+24>>2],i[f+12>>2]=0,f=f+12|0,8==(0|(o=i[n+1736>>2]))?M[i[n+76>>2]](b+36|0,b+16|0,b,f):M[0|o](b+36|0,b+16|0,b,f,i[n+1896>>2]),i[f>>2]||(i[f>>2]=i[b+16>>2]),!z(t,e))break i;if(!(f=E1(i[n+68>>2])))break}if(A0(n,a),!(a=S0(i[n+68>>2])))break}if(f=i[i[i[(e=n- -64|0)>>2]+4>>2]>>2],i[n+72>>2]=i[(a=i[f>>2])+16>>2],i[a+24>>2]=0,h2(i[f+4>>2]),T(f),f=i[i[(a=i[e>>2])+4>>2]>>2])for(;i[i[f>>2]+24>>2]=0,h2(i[f+4>>2]),T(f),f=i[i[(a=i[e>>2])+4>>2]>>2];);if((0|a)!=(0|(f=i[a+4>>2])))for(;T(f),(0|a)!=(0|(f=i[f+4>>2])););if(T(a),B0(i[n+68>>2]),x=1,(0|(a=i[(n=i[n+8>>2])+40>>2]))!=(0|(e=n+40|0)))for(;;){if(n=i[a+8>>2],a=i[a>>2],(0|n)==i[i[n+12>>2]+12>>2]&&(i[(f=i[n+8>>2])+28>>2]=i[f+28>>2]+i[n+28>>2],i[(f=i[f+4>>2])+28>>2]=i[f+28>>2]+i[i[n+4>>2]+28>>2],!$(n))){x=0;break f}if((0|a)==(0|e))break}}return B=b+48|0,0|x}b2(n+1740|0,1),o2()},function T4(n,f,a){f|=0,a|=0;var t=0,e=0,b=0,o=0;b=1;i:if((0|(t=i[64+(n|=0)>>2]))!=(0|(e=n- -64|0))){if(o=0-f|0,!a)for(;;)if(i[t+28>>2]=(0|(n=w[i[t+20>>2]+21|0]))==w[i[i[t+4>>2]+20>>2]+21|0]?0:n?f:o,(0|e)==(0|(t=i[t>>2])))break i;for(;;){if(n=i[t>>2],(0|(a=w[i[t+20>>2]+21|0]))==w[i[i[t+4>>2]+20>>2]+21|0]){if(!$(t)){b=0;break i}}else i[t+28>>2]=a?f:o;if((0|e)==(0|(t=n)))break}}return 0|b},function _4(n){n|=0;var r,f=0,a=0,t=0,e=u(0),b=u(0),o=0,k=0,s=0;if((0|(f=i[n+40>>2]))!=(0|(r=n+40|0)))for(;;){if(n=i[f>>2],w[f+21|0]){for(f=f+8|0;!(!(c[(a=i[i[(f=i[f>>2])+4>>2]+16>>2])+32>>2]<=c[(t=i[f+16>>2])+32>>2])|(e=c[a+28>>2])!=(b=c[t+28>>2]))||e>2]+4|0;for(;!(!(c[t+32>>2]<=c[a+32>>2])|e!=b)||e>b;)b=c[(t=i[(f=i[f+12>>2])+16>>2])+28>>2],e=c[(a=i[i[f+4>>2]+16>>2])+28>>2];i:{f:if((0|(t=i[i[f+8>>2]+4>>2]))!=i[f+12>>2])for(;;){if(!(c[a+32>>2]<=c[(o=i[t+16>>2])+32>>2])|e!=(b=c[o+28>>2])&&!(b>e)){a:if(i[t+12>>2]!=(0|f))for(;;){if(!((e=c[(o=i[(a=i[i[f+8>>2]+4>>2])+16>>2])+28>>2])<(b=c[(k=i[i[a+4>>2]+16>>2])+28>>2])|(c[o+32>>2]<=c[k+32>>2]?e==b:0))){if(!(G(i[i[f+4>>2]+16>>2],i[f+16>>2],o)>=u(0)))break a;a=i[i[f+8>>2]+4>>2]}if(f=d2(f,a),a=0,!f)break i;if((0|(f=i[f+4>>2]))==i[t+12>>2])break}f=i[f+12>>2]}else{a:if((0|(a=i[t+12>>2]))!=(0|f))for(o=t+12|0;;){if(!((e=c[(k=i[i[a+4>>2]+16>>2])+28>>2])<(b=c[(s=i[a+16>>2])+28>>2])|(c[k+32>>2]<=c[s+32>>2]?e==b:0))){if(!(G(i[t+16>>2],i[i[t+4>>2]+16>>2],k)<=u(0)))break a;a=i[o>>2]}if(t=d2(a,t),a=0,!t)break i;if(o=(t=i[t+4>>2])+12|0,(0|(a=i[t+12>>2]))==(0|f))break}t=i[i[t+8>>2]+4>>2]}if(i[f+12>>2]==(0|t))break f;e=c[(a=i[i[f+4>>2]+16>>2])+28>>2]}if(i[(a=i[t+12>>2])+12>>2]!=(0|f))for(;;){if(t=d2(a,t),a=0,!t)break i;if(i[(a=i[(t=i[t+4>>2])+12>>2])+12>>2]==(0|f))break}a=1}if(!a)return 0}if((0|r)==(0|(f=n)))break}return 1},function x4(n,f){n|=0;var t,a=0,e=0;if((0|(a=i[40+(f|=0)>>2]))!=(0|(t=f+40|0)))for(;;){if(w[a+21|0]){for(3==(0|(f=i[n+1716>>2]))?M[i[n+88>>2]](2):M[0|f](2,i[n+1896>>2]),f=i[a+8>>2];5==(0|(e=i[n+1724>>2]))?M[i[n+96>>2]](i[i[f+16>>2]+12>>2]):M[0|e](i[i[f+16>>2]+12>>2],i[n+1896>>2]),(0|(f=i[f+12>>2]))!=i[a+8>>2];);6==(0|(f=i[n+1728>>2]))?M[i[n+100>>2]]():M[0|f](i[n+1896>>2])}if((0|t)==(0|(a=i[a>>2])))break}},function M4(n,f){f|=0;var k,m,a=0,t=0,e=0,b=0,o=0,r=0,s=0,A=0,l=0,v=0,h=0,y=0,E=0,R=0,_=0;if(B=k=B-16|0,i[84+(n|=0)>>2]=0,(0|(s=i[f+40>>2]))!=(0|(m=f+40|0)))for(f=s;p[f+20|0]=0,(0|m)!=(0|(f=i[f>>2])););if((0|s)!=(0|m)){for(;;){if(!(w[s+20|0]|!w[s+21|0])){if(o=i[s+8>>2],w[n+80|0])f=1,a=1;else{e=0,t=0,f=0,b=i[(a=o)+20>>2];i:if(w[b+21|0])for(;;){if(w[(f=b)+20|0]){f=t;break i}if(p[f+20|0]=1,i[f+16>>2]=t,e=e+1|0,t=f,!w[(b=i[(a=i[a+8>>2])+20>>2])+21|0])break}i:{f:if(!w[(b=i[(t=i[o+4>>2])+20>>2])+21|0]|w[b+20|0]){if(E=o,!f)break i}else for(a=f;;){if(p[(f=b)+20|0]=1,i[f+16>>2]=a,e=e+1|0,!w[(b=i[(t=i[(E=i[t+12>>2])+4>>2])+20>>2])+21|0])break f;if(a=f,w[b+20|0])break}for(;p[f+20|0]=0,f=i[f+16>>2];);}R=(0|e)>1,b=0,a=0,f=0,t=i[(r=v=i[o+12>>2])+20>>2];i:if(w[t+21|0])for(;;){if(w[(f=t)+20|0]){f=a;break i}if(p[f+20|0]=1,i[f+16>>2]=a,b=b+1|0,a=f,!w[(t=i[(r=i[r+8>>2])+20>>2])+21|0])break}y=R?e:1;i:{f:if(!w[(e=i[(t=i[v+4>>2])+20>>2])+21|0]|w[e+20|0]){if(!f)break i}else for(a=f;;){if(p[(f=e)+20|0]=1,i[f+16>>2]=a,b=b+1|0,!w[(e=i[(t=i[(v=i[t+12>>2])+4>>2])+20>>2])+21|0])break f;if(a=f,w[e+20|0])break}for(;p[f+20|0]=0,f=i[f+16>>2];);}_=(0|b)>(0|y),e=0,a=0,f=0,t=i[(r=h=i[i[o+8>>2]+4>>2])+20>>2];i:if(w[t+21|0])for(;;){if(w[(f=t)+20|0]){f=a;break i}if(p[f+20|0]=1,i[f+16>>2]=a,e=e+1|0,a=f,!w[(t=i[(r=i[r+8>>2])+20>>2])+21|0])break}A=_?b:y;i:{f:if(!w[(b=i[(t=i[h+4>>2])+20>>2])+21|0]|w[b+20|0]){if(!f)break i}else for(a=f;;){if(p[(f=b)+20|0]=1,i[f+16>>2]=a,e=e+1|0,!w[(b=i[(t=i[(h=i[t+12>>2])+4>>2])+20>>2])+21|0])break f;if(a=f,w[b+20|0])break}for(;p[f+20|0]=0,f=i[f+16>>2];);}I0(k,o),r=i[k+8>>2],y=i[k+4>>2],l=i[k>>2],I0(k,i[o+12>>2]),b=i[k+8>>2],t=i[k+4>>2],a=i[k>>2],I0(k,i[i[o+8>>2]+4>>2]),f=e,(0|(f=(l=(0|(f=(A=(0|(f=(e=(0|e)>(0|A))?f:A))<(0|l))?l:f))<(0|a))?a:f))>=(0|(a=i[k>>2]))?(o=l?t:A?y:e?h:_?v:R?E:o,a=l?b:A?r:e||R|_?2:1):(o=i[k+4>>2],f=a,a=i[k+8>>2])}M[0|a](n,o,f)}if((0|m)==(0|(s=i[s>>2])))break}if(e=i[n+84>>2]){for(3==(0|(f=i[n+1716>>2]))?M[i[n+88>>2]](4):M[0|f](4,i[n+1896>>2]),b=-1;;){for(f=i[e+8>>2];w[n+80|0]&&(0|(a=!(o=w[i[i[f+4>>2]+20>>2]+21|0])))!=(0|b)&&(4==(0|(t=i[n+1720>>2]))?M[i[n+92>>2]](!o):M[0|t](!o,i[n+1896>>2]),b=a),5==(0|(a=i[n+1724>>2]))?M[i[n+96>>2]](i[i[f+16>>2]+12>>2]):M[0|a](i[i[f+16>>2]+12>>2],i[n+1896>>2]),(0|(f=i[f+12>>2]))!=i[e+8>>2];);if(!(e=i[e+16>>2]))break}6==(0|(f=i[n+1728>>2]))?M[i[n+100>>2]]():M[0|f](i[n+1896>>2]),i[n+84>>2]=0}}B=k+16|0},v1,L0,function F4(n,f){n|=0;var a,t=0;(0|(a=i[4+(f|=0)>>2]))>2]&&(t=i[f>>2]+(W(i[f+12>>2],a)<<2)|0,c[t>>2]=c[n>>2],c[t+4>>2]=c[n+4>>2],i[f+4>>2]=a+1)},R2,T0,function U4(n,f,a,t){n|=0,f|=0,a|=0,t|=0,a=0;i:{if(f=i[520]){if(!((a=i[f>>2])>>>0<100001)){f=H(12);break i}}else f=H(1200008),i[f+4>>2]=12,i[f>>2]=0,i[520]=f;i[f>>2]=a+1,f=8+(W(a,12)+f|0)|0}c[f>>2]=c[n>>2],c[f+4>>2]=c[n+4>>2],c[f+8>>2]=c[n+8>>2],i[t>>2]=f},function O4(n){var f;B=f=B-16|0,i[f>>2]=n|=0,B=n=B-16|0,i[n+12>>2]=f,y1(i[288],1078,f,0),B=n+16|0,B=f+16|0},R2,function z4(n){return 0},function L4(n,f,a){f|=0,a|=0;var e,t=0,b=0,o=0,k=0,r=0,s=0;B=e=B-32|0,b=i[28+(n|=0)>>2],i[e+16>>2]=b,t=i[n+20>>2],i[e+28>>2]=a,i[e+24>>2]=f,i[e+20>>2]=f=t-b|0,b=f+a|0,s=2,f=e+16|0;i:{f:{(t=0|u1(i[n+60>>2],e+16|0,2,e+12|0))?(i[613]=t,t=-1):t=0;a:{if(!t)for(;;){if((0|(t=i[e+12>>2]))==(0|b))break a;if((0|t)<=-1)break f;if(o=t-((k=(o=i[f+4>>2])>>>0>>0)?o:0)|0,i[(r=(k<<3)+f|0)>>2]=o+i[r>>2],i[(r=(k?12:4)+f|0)>>2]=i[r>>2]-o,b=b-t|0,(t=0|u1(i[n+60>>2],0|(f=k?f+8|0:f),0|(s=s-k|0),e+12|0))?(i[613]=t,t=-1):t=0,t)break}if(-1!=(0|b))break f}i[n+28>>2]=f=i[n+44>>2],i[n+20>>2]=f,i[n+16>>2]=f+i[n+48>>2],n=a;break i}i[n+28>>2]=0,i[n+16>>2]=0,i[n+20>>2]=0,i[n>>2]=32|i[n>>2],n=0,2!=(0|s)&&(n=a-i[f+4>>2]|0)}return B=e+32|0,0|n},function Q4(n,f,a,t){return v2=0,0},function R4(n,f,a,t,e,b){n|=0,f=+f,a|=0,t|=0,e|=0,b|=0;var s,o=0,k=0,r=0,A=0,l=0,v=0,h=0,m=0,y=0,E=0,R=0,_=0,P=0,x=0,F=0,j=0,q=0,Y=0,k2=0,m2=0;B=s=B-560|0,i[s+44>>2]=0,E0(+f),o=0|l2(1),l2(0),(0|o)<-1||(0|o)<=-1?(x=1,F=1034,E0(+(f=-f)),o=0|l2(1),l2(0)):2048&e?(x=1,F=1037):(F=(x=1&e)?1040:1035,m2=!x);i:if(2146435072!=(2146435072&o)){_=s+16|0;f:{a:{n:{if(f=M1(f,s+44|0),0!=(f+=f)){if(i[s+44>>2]=(o=i[s+44>>2])-1,97!=(0|(j=32|b)))break n;break f}if(97==(0|(j=32|b)))break f;A=i[s+44>>2],v=(0|t)<0?6:t;break a}i[s+44>>2]=A=o-29|0,f*=268435456,v=(0|t)<0?6:t}for(k=E=(0|A)<0?s+48|0:s+336|0;i[(t=k)>>2]=o=f<4294967296&f>=0?~~f>>>0:0,k=k+4|0,0!=(f=1e9*(f-+(o>>>0))););if((0|A)<1)t=A,o=k,r=E;else for(r=E,t=A;;){if(R=(0|t)<29?t:29,!(r>>>0>(o=k-4|0)>>>0)){for(t=R,m=0;Y=m,m=i[o>>2],l=31&t,(63&t)>>>0>=32?(k2=m<>>32-l,l=m<>>0>(m=Y+l|0)>>>0?h+1|0:h,Y=y=o,y=x0(m=p1(l=m,h,1e9),v2,1e9,0),i[Y>>2]=l-y,r>>>0<=(o=o-4|0)>>>0;);(t=m)&&(i[(r=r-4|0)>>2]=t)}for(;r>>>0<(o=k)>>>0&&!i[(k=o-4|0)>>2];);if(i[s+44>>2]=t=i[s+44>>2]-R|0,k=o,!((0|t)>0))break}if(k=(v+25|0)/9|0,(0|t)<=-1)for(R=k+1|0,q=102==(0|j);;){m=(0|t)<-9?9:0-t|0;a:if(o>>>0>r>>>0){for(y=1e9>>>m|0,l=-1<>2]=(Y=t)+((t=i[k>>2])>>>m|0),t=W(y,t&l),(k=k+4|0)>>>0>>0;);if(r=i[r>>2]?r:r+4|0,!t)break a;i[o>>2]=t,o=o+4|0}else r=i[r>>2]?r:r+4|0;if(i[s+44>>2]=t=i[s+44>>2]+m|0,o=(0|R)>2?k+(R<<2)|0:o,!((0|t)<0))break}if(k=0,!(o>>>0<=r>>>0||(k=W(E-r>>2,9),t=10,(l=i[r>>2])>>>0<10)))for(;k=k+1|0,l>>>0>=(t=W(t,10))>>>0;);if((0|(t=(v-(102==(0|j)?0:k)|0)-(103==(0|j)&0!=(0|v))|0))<(W(o-E>>2,9)-9|0)){if(h=(((l=(0|(y=t+9216|0))/9|0)<<2)+((0|A)<0?s+48|4:s+340|0)|0)-4096|0,t=10,(0|(y=y-W(l,9)|0))<=7)for(;t=W(t,10),8!=(0|(y=y+1|0)););if(R=(y=i[h>>2])-W(t,l=(y>>>0)/(t>>>0)|0)|0,((0|(A=h+4|0))!=(0|o)||R)&&(f=(0|o)==(0|A)?1:1.5,P=(A=t>>>1|0)>>>0>R>>>0?.5:(0|A)==(0|R)?f:1.5,f=1&l?9007199254740994:9007199254740992,45!=w[0|F]|m2||(P=-P,f=-f),i[h>>2]=A=y-R|0,f+P!=f)){if(i[h>>2]=t=t+A|0,t>>>0>=1e9)for(;i[h>>2]=0,(h=h-4|0)>>>0>>0&&(i[(r=r-4|0)>>2]=0),i[h>>2]=t=i[h>>2]+1|0,t>>>0>999999999;);if(k=W(E-r>>2,9),t=10,!((A=i[r>>2])>>>0<10))for(;k=k+1|0,A>>>0>=(t=W(t,10))>>>0;);}o=(t=h+4|0)>>>0>>0?t:o}for(;l=o,!(A=o>>>0<=r>>>0)&&!i[(o=l-4|0)>>2];);if(103==(0|j)){if(v=((t=(0|(o=v||1))>(0|k)&(0|k)>-5)?-1^k:-1)+o|0,b=(t?-1:-2)+b|0,!(m=8&e)){if(o=-9,!A&&(A=i[l-4>>2])&&(y=10,o=0,!((A>>>0)%10|0))){for(;t=o,o=o+1|0,!((A>>>0)%((y=W(y,10))>>>0)|0););o=-1^t}t=W(l-E>>2,9),70!=(-33&b)?(m=0,v=(0|(t=(0|(t=((t+k|0)+o|0)-9|0))>0?t:0))>(0|v)?v:t):(m=0,v=(0|(t=(0|(t=(t+o|0)-9|0))>0?t:0))>(0|v)?v:t)}}else m=8&e;if(R=0!=(v|m),t=n,A=a,70==(0|(y=-33&b)))b=(0|k)>0?k:0;else{if((_-(o=q2((o=k>>31)+k^o,0,_))|0)<=1)for(;p[0|(o=o-1|0)]=48,(_-o|0)<2;);p[0|(q=o-2|0)]=b,p[o-1|0]=(0|k)<0?45:43,b=_-q|0}i2(t,32,A,h=1+(b+(R+(v+x|0)|0)|0)|0,e),Z(n,F,x),i2(n,48,a,h,65536^e);a:{n:{t:{if(70==(0|y)){for(t=s+16|8,k=s+16|9,r=b=r>>>0>E>>>0?E:r;;){o=q2(i[r>>2],0,k);b:if((0|b)==(0|r))(0|o)==(0|k)&&(p[s+24|0]=48,o=t);else{if(s+16>>>0>=o>>>0)break b;for(;p[0|(o=o-1|0)]=48,s+16>>>0>>0;);}if(Z(n,o,k-o|0),!(E>>>0>=(r=r+4|0)>>>0))break}if(o=0,!R)break n;if(Z(n,1069,1),(0|v)<1|r>>>0>=l>>>0)break t;for(;;){if((o=q2(i[r>>2],0,k))>>>0>s+16>>>0)for(;p[0|(o=o-1|0)]=48,s+16>>>0>>0;);if(Z(n,o,(0|v)<9?v:9),o=v-9|0,l>>>0<=(r=r+4|0)>>>0)break n;if(t=(0|v)>9,v=o,!t)break}break n}b:if(!((0|v)<0))for(b=r>>>0>>0?l:r+4|0,A=s+16|9,t=s+16|8,k=r;;){(0|A)==(0|(o=q2(i[k>>2],0,A)))&&(p[s+24|0]=48,o=t);e:if((0|k)==(0|r))Z(n,o,1),o=o+1|0,!m&&(0|v)<=0||Z(n,1069,1);else{if(s+16>>>0>=o>>>0)break e;for(;p[0|(o=o-1|0)]=48,s+16>>>0>>0;);}if(Z(n,l=o,(0|(o=A-o|0))<(0|v)?o:v),v=v-o|0,b>>>0<=(k=k+4|0)>>>0)break b;if(!((0|v)>-1))break}i2(n,48,v+18|0,18,0),Z(n,q,_-q|0);break a}o=v}i2(n,48,o+9|0,9,0)}break i}if(E=(A=32&b)?F+9|0:F,!(t>>>0>11)&&(o=12-t|0)){for(P=8;P*=16,o=o-1|0;);f=45!=w[0|E]?f+P-P:-(P+(-f-P))}for((0|_)==(0|(o=q2((k=(o=i[s+44>>2])>>31)^o+k,0,_)))&&(p[s+15|0]=48,o=s+15|0),v=2|x,k=i[s+44>>2],p[0|(l=o-2|0)]=b+15,p[o-1|0]=(0|k)<0?45:43,o=8&e,r=s+16|0;b=r,m=A,k=d4(f)<2147483648?~~f:-2147483648,p[0|r]=m|w[k+1632|0],f=16*(f-+(0|k)),!(o||(0|t)>0|0!=f)|1!=((r=b+1|0)-(s+16|0)|0)||(p[b+1|0]=46,r=b+2|0),0!=f;);i2(b=n,32,o=a,h=(A=!t|((r-s|0)-18|0)>=(0|t)?(_-(l+(s+16|0)|0)|0)+r|0:2+((t+_|0)-l|0)|0)+v|0,e),Z(n,E,v),i2(n,48,a,h,65536^e),Z(n,s+16|0,t=r-(s+16|0)|0),i2(n,48,A-((b=t)+(t=_-l|0)|0)|0,0,0),Z(n,l,t)}else i2(n,32,a,h=x+3|0,-65537&e),Z(n,F,x),t=32&b,Z(n,f!=f?t?1053:1061:t?1057:1065,3);return i2(n,32,a,h,8192^e),B=s+560|0,0|((0|a)>(0|h)?a:h)}]);function L1(){return N.byteLength/65536|0}return{n:T0,o:H,p:T,q:M,r:function C4(n,f,a,t,e,b){n|=0,f|=0,a|=0,t|=0,e|=0,b|=0;for(var o=0,k=0,r=0,s=0,A=0,l=u(0),v=0,h=u(0),m=u(0),y=0,E=0,R=0,_=0,P=0,x=0,F=0,j=0;(r=i[2032+(o=k<<2)>>2])&&(i[r>>2]=0),(r=i[2032+(4|o)>>2])&&(i[r>>2]=0),(r=i[2032+(8|o)>>2])&&(i[r>>2]=0),(o=i[2032+(12|o)>>2])&&(i[o>>2]=0),100!=(0|(k=k+4|0)););if((k=i[608])||(k=H(16),i[608]=k),i[k+8>>2]=b,i[k+4>>2]=0,i[k+12>>2]=t,i[k>>2]=e,(k=i[609])||((e=H(1900))?(i[e+100>>2]=12,i[e+96>>2]=13,i[e+92>>2]=14,i[e+88>>2]=15,r2[e+80>>1]=0,i[e+52>>2]=0,i[e+56>>2]=100130,i[e+16>>2]=0,i[e+20>>2]=0,i[e>>2]=0,i[e+1896>>2]=0,i[e+1736>>2]=8,i[e+1732>>2]=11,i[e+1728>>2]=6,i[e+1724>>2]=5,i[e+1720>>2]=4,i[e+1716>>2]=3,i[e+104>>2]=16,i[e+76>>2]=17,i[e+12>>2]=18,i[e+24>>2]=0):e=0,i[609]=e,W2(e,100107,34),W2(i[609],100100,35),W2(i[609],100102,36),W2(i[609],100105,37),W2(i[609],100103,38),W2(i[609],100104,39),i[i[609]+56>>2]=100130,c[(e=i[609])+16>>2]=0,c[e+24>>2]=1,c[e+20>>2]=0,k=i[609]),e=0,b=i[608],i[k>>2]&&E2(k,0),i[k+112>>2]=0,i[k>>2]=1,p[k+108|0]=0,i[k+1896>>2]=b,i[k+8>>2]=0,(0|a)>0)for(b=0;;){if(y=i[(b<<2)+f>>2],1!=i[(o=i[609])>>2]&&E2(o,1),i[o>>2]=2,i[o+4>>2]=0,i[o+112>>2]>=1&&(p[o+108|0]=1),k=0,(0|y)>0)for(;;){A=E=(W(e+k|0,t)<<2)+n|0,2!=i[(r=i[609])>>2]&&E2(r,2);i:{f:{a:{if(w[r+108|0]){if(o=_0(),i[r+8>>2]=o,!o)break a;if((0|(o=i[r+112>>2]))>=1)for(R=116+(r+(o<<4)|0)|0,s=r+116|0,o=i[r+4>>2];;){j=i[s+12>>2];n:{if(!o){if(!(o=f0(i[r+8>>2])))break a;if(z(o,i[o+4>>2]))break n;break a}if(!n2(o))break a;o=i[o+12>>2]}if(i[(v=i[o+16>>2])+12>>2]=j,c[v+16>>2]=c[s>>2],l=c[s+4>>2],i[v+24>>2]=0,c[v+20>>2]=l,i[o+28>>2]=1,i[i[o+4>>2]+28>>2]=-1,i[r+4>>2]=o,!(R>>>0>(s=s+16|0)>>>0))break}p[r+108|0]=0,i[r+112>>2]=0,i[r+4>>2]=0}s=(P=+(l=(_=+(l=c[A+4>>2]))<-1e37?u(-9999999933815813e21):l))>1e37,v=(F=+(h=(x=+(h=c[A>>2]))<-1e37?u(-9999999933815813e21):h))>1e37,((o=+(m=c[A+8>>2])<-1e37)|(A=+(m=o?u(-9999999933815813e21):m)>1e37)|_<-1e37|P>1e37||F>1e37||x<-1e37)&&(11==(0|(o=i[r+1732>>2]))?M[i[r+12>>2]](100155):M[0|o](100155,i[r+1896>>2])),l=s?u(9999999933815813e21):l,h=v?u(9999999933815813e21):h;n:{if(!i[r+8>>2]){if((0|(s=i[r+112>>2]))<=99){c[124+(o=r+(s<<4)|0)>>2]=A?u(9999999933815813e21):m,c[o+120>>2]=l,c[o+116>>2]=h,i[o+128>>2]=E,i[r+112>>2]=s+1;break i}if(o=_0(),i[r+8>>2]=o,!o)break n;if((0|(o=i[r+112>>2]))>=1)for(v=116+(r+(o<<4)|0)|0,s=r+116|0,o=i[r+4>>2];;){R=i[s+12>>2];t:{if(!o){if(!(o=f0(i[r+8>>2])))break n;if(z(o,i[o+4>>2]))break t;break n}if(!n2(o))break n;o=i[o+12>>2]}if(i[(A=i[o+16>>2])+12>>2]=R,c[A+16>>2]=c[s>>2],m=c[s+4>>2],i[A+24>>2]=0,c[A+20>>2]=m,i[o+28>>2]=1,i[i[o+4>>2]+28>>2]=-1,i[r+4>>2]=o,!(v>>>0>(s=s+16|0)>>>0))break}p[r+108|0]=0,i[r+112>>2]=0}t:{b:{if(!(o=i[r+4>>2])){if(!(o=f0(i[r+8>>2])))break t;if(z(o,i[o+4>>2]))break b;break t}if(!n2(o))break t;o=i[o+12>>2]}c[(s=i[o+16>>2])+16>>2]=h,i[s+12>>2]=E,i[s+24>>2]=0,c[s+20>>2]=l,i[o+28>>2]=1,i[i[o+4>>2]+28>>2]=-1,i[r+4>>2]=o;break i}if(11!=(0|(o=i[r+1732>>2])))break f;M[i[r+12>>2]](100902);break i}if(11!=(0|(o=i[r+1732>>2])))break f;M[i[r+12>>2]](100902);break i}if(11==(0|(o=i[r+1732>>2]))){M[i[r+12>>2]](100902);break i}}M[0|o](100902,i[r+1896>>2])}if((0|y)==(0|(k=k+1|0)))break}if(2!=i[(o=i[609])>>2]&&E2(o,2),i[o>>2]=1,e=e+y|0,(0|(b=b+1|0))==(0|a))break}a=i[609],n=0,f=H(40),i[f>>2]=0,e=R1(r=a+1740|0,1,f,4),b=0|V();i:{f:{a:{n:{t:{b:for(;;){e:{c:{u:{o:{A:{s:{k:{if(n){if(11!=(0|(n=i[a+1732>>2]))){if(f=i[a+1896>>2],i[611]=0,B2(0|n,100902,0|f),n=i[611],i[611]=0,f=-1,!n||!(t=i[612]))break s;if(f=J(i[n>>2],e,b))break k;break t}if(n=i[a+12>>2],i[611]=0,k1(0|n,100902),n=i[611],i[611]=0,f=-1,!n||!(t=i[612]))break o;if(f=J(i[n>>2],e,b))break A;break t}if(1==i[a>>2])break e;if(i[611]=0,B2(19,0|a,1),n=i[611],i[611]=0,f=-1,!n||!(t=i[612]))break c;if(f=J(i[n>>2],e,b))break u;break t}K(0|t)}if(n=0|V(),1==(0|f))continue;break i}K(0|t)}if(n=0|V(),1==(0|f))continue;break i}K(0|t)}if(n=0|V(),1==(0|f))continue}i[a>>2]=0;e:{c:{u:{if(!i[a+8>>2]){if(!(w[a+80|0]|16!=i[a+104>>2])){if(i[611]=0,o=0|i0(20,0|a),n=i[611],i[611]=0,f=-1,n&&(t=i[612])){if(!(f=J(i[n>>2],e,b)))break t;K(0|t)}if(n=0|V(),1==(0|f))continue;if(o){i[a+1896>>2]=0;break i}}if(i[611]=0,t=0|y4(21),n=i[611],i[611]=0,f=-1,n&&(k=i[612])){if(!(f=J(i[n>>2],e,b)))break n;K(0|k)}if(n=0|V(),1==(0|f))continue;if(i[a+8>>2]=t,!t)break u;if((0|(n=i[a+112>>2]))>=1)for(s=116+(a+(n<<4)|0)|0,t=a+116|0,f=i[a+4>>2];;){y=i[t+12>>2];o:{A:{s:{k:{r:{l:{if(!f){if(n=i[a+8>>2],i[611]=0,f=0|i0(22,0|n),n=i[611],i[611]=0,k=-1,!n||!(o=i[612]))break r;if(k=J(i[n>>2],e,b))break l;break a}if(i[611]=0,A=0|i0(23,0|f),n=i[611],i[611]=0,k=-1,!n||!(o=i[612]))break s;if(k=J(i[n>>2],e,b))break k;break a}K(0|o)}if(n=0|V(),1!=(0|k))break A;continue b}K(0|o)}if(n=0|V(),1==(0|k))continue b;if(!A)break u;f=i[f+12>>2];break o}if(!f)break u;if(n=i[f+4>>2],i[611]=0,A=0|w4(24,0|f,0|n),n=i[611],i[611]=0,k=-1,n&&(o=i[612])){if(!(k=J(i[n>>2],e,b)))break a;K(0|o)}if(n=0|V(),1==(0|k))continue b;if(!A)break u}if(i[(n=i[f+16>>2])+12>>2]=y,c[n+16>>2]=c[t>>2],l=c[t+4>>2],i[n+24>>2]=0,c[n+20>>2]=l,i[f+28>>2]=1,i[i[f+4>>2]+28>>2]=-1,i[a+4>>2]=f,!(s>>>0>(t=t+16|0)>>>0))break}p[a+108|0]=0,i[a+112>>2]=0}if(i[611]=0,r1(a),n=i[611],i[611]=0,f=-1,!n||!(t=i[612]))break e;if(f=J(i[n>>2],e,b))break c;break t}if(i[611]=0,B2(26,0|r,1),f=i[611],i[611]=0,f&&(n=i[612])){if(!J(i[f>>2],e,b))break f;K(0|n)}n=0|V();continue}K(0|t)}if(n=0|V(),1!=(0|f)){if(i[611]=0,o=0|i0(27,0|a),n=i[611],i[611]=0,f=-1,n&&(t=i[612])){if(!(f=J(i[n>>2],e,b)))break t;K(0|t)}if(n=0|V(),1!=(0|f)){e:{c:{u:{o:{A:{s:{k:{r:{l:{v:{d:{if(!o){if(i[611]=0,B2(26,0|r,1),f=i[611],i[611]=0,!f||!(n=i[612]))break v;if(J(i[f>>2],e,b))break d;break f}if(f=i[a+8>>2],w[a+60|0])break s;if(w[a+81|0]){if(i[611]=0,k=0|m4(28,0|f,1,1),n=i[611],i[611]=0,t=-1,!n||!(o=i[612]))break k;if(t=J(i[n>>2],e,b))break l;break a}if(i[611]=0,k=0|i0(29,0|f),n=i[611],i[611]=0,t=-1,!n||!(o=i[612]))break k;if(t=J(i[n>>2],e,b))break r;break a}K(0|n)}n=0|V();continue}K(0|o);break k}K(0|o)}if(n=0|V(),1==(0|t))continue;k:{r:{l:{v:{d:{p:{h:{if(!k){if(i[611]=0,B2(26,0|r,1),f=i[611],i[611]=0,!f||!(n=i[612]))break p;if(J(i[f>>2],e,b))break h;break f}if(!(15!=i[a+88>>2]|12!=i[a+100>>2]|13!=i[a+96>>2]|14!=i[a+92>>2]||3!=i[a+1716>>2]|6!=i[a+1728>>2]|5!=i[a+1724>>2]||4!=i[a+1720>>2]))break k;if(w[a+81|0]){if(i[611]=0,B2(30,0|a,0|f),n=i[611],i[611]=0,t=-1,!n||!(k=i[612]))break v;if(t=J(i[n>>2],e,b))break d;break n}if(i[611]=0,B2(31,0|a,0|f),n=i[611],i[611]=0,t=-1,!n||!(k=i[612]))break r;if(t=J(i[n>>2],e,b))break l;break n}K(0|n)}n=0|V();continue}K(0|k)}if(n=0|V(),1==(0|t))continue;break k}K(0|k)}if(n=0|V(),1==(0|t))continue}if(16!=i[a+104>>2]){if(i[611]=0,v1(f),n=i[611],i[611]=0,t=-1,!n||!(k=i[612]))break o;if(t=J(i[n>>2],e,b))break A;break n}}if(i[611]=0,L0(f),n=i[611],i[611]=0,f=-1,!n||!(t=i[612]))break c;if(f=J(i[n>>2],e,b))break u;break t}K(0|k)}if(n=0|V(),1!=(0|t))break e;continue}K(0|t)}if(n=0|V(),1==(0|f))continue;i[a+8>>2]=0,i[a+1896>>2]=0;break i}if(n=i[a+104>>2],i[611]=0,k1(0|n,0|f),n=i[611],i[611]=0,f=-1,n&&(t=i[612])){if(!(f=J(i[n>>2],e,b)))break t;K(0|t)}if(n=0|V(),1!=(0|f))break}}}i[a+1896>>2]=0,i[a+8>>2]=0;break i}b2(n,t),o2()}b2(n,k),o2()}b2(n,o),o2()}b2(f,n),o2()}return T(e),i[i[608]+4>>2]},s:function K4(){return 0|B},t:function Y4(n){B=n|=0},u:function H4(n,f){n|=0,i[611]||(i[612]=f|=0,i[611]=n)}}}(I)}(t1)},instantiate:function(d,g){return{then:function(I){var L=new y2.Module(d);I({instance:new y2.Instance(L)})}}},RuntimeError:Error};H2=[],"object"!=typeof y2&&$2("no native wasm support detected");var G2,J2,Z2,N0=!1,V0=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function G0(d,g,I){for(var L=g+I,S=g;d[S]&&!(S>=L);)++S;if(S-g>16&&d.subarray&&V0)return V0.decode(d.subarray(g,S));for(var U="";g>10,56320|1023&t2)}}else U+=String.fromCharCode((31&O)<<6|D)}else U+=String.fromCharCode(O)}return U}function H1(d,g){return d%g>0&&(d+=g-d%g),d}function J0(d){G2=d,C.HEAP8=new Int8Array(d),C.HEAP16=new Int16Array(d),C.HEAP32=Z2=new Int32Array(d),C.HEAPU8=J2=new Uint8Array(d),C.HEAPU16=new Uint16Array(d),C.HEAPU32=new Uint32Array(d),C.HEAPF32=new Float32Array(d),C.HEAPF64=new Float64Array(d)}var p2,Z0=C.INITIAL_MEMORY||4194304;(V2=C.wasmMemory?C.wasmMemory:new y2.Memory({initial:Z0/65536,maximum:32768}))&&(G2=V2.buffer),Z0=G2.byteLength,J0(G2);var X0=[],$0=[],i1=[],M2=0,X2=null;function $2(d){throw C.onAbort&&C.onAbort(d),D2(d+=""),N0=!0,new y2.RuntimeError(d="abort("+d+"). Build with -s ASSERTIONS=1 for more info.")}C.preloadedImages={},C.preloadedAudios={};var e2,f1="data:application/octet-stream;base64,";function w0(d){return d.startsWith(f1)}function a1(d){return d.startsWith("file://")}function n1(d){try{if(d==e2&&H2)return new Uint8Array(H2);var g=Q2(d);if(g)return g;if(o0)return o0(d);throw"both async and sync fetching of the wasm failed"}catch(I){$2(I)}}function y0(d){for(;d.length>0;){var g=d.shift();if("function"!=typeof g){var I=g.func;"number"==typeof I?void 0===g.arg?p2.get(I)():p2.get(I)(g.arg):I(void 0===g.arg?null:g.arg)}else g(C)}}function $1(d){try{return V2.grow(d-G2.byteLength+65535>>>16),J0(V2.buffer),1}catch{}}w0(e2="libtess-asm.wasm")||(e2=function T1(d){return C.locateFile?C.locateFile(d,A2):A2+d}(e2));var b0={mappings:{},buffers:[null,[],[]],printChar:function(d,g){var I=b0.buffers[d];0===g||10===g?((1===d?U1:D2)(G0(I,0)),I.length=0):I.push(g)},varargs:void 0,get:function(){return b0.varargs+=4,Z2[b0.varargs-4>>2]},getStr:function(d){return function D1(d,g){return d?G0(J2,d,g):""}(d)},get64:function(d,g){return d}},n4="function"==typeof atob?atob:function(d){var g,I,L,S,U,O,D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a2="",t2=0;d=d.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{g=D.indexOf(d.charAt(t2++))<<2|(S=D.indexOf(d.charAt(t2++)))>>4,I=(15&S)<<4|(U=D.indexOf(d.charAt(t2++)))>>2,L=(3&U)<<6|(O=D.indexOf(d.charAt(t2++))),a2+=String.fromCharCode(g),64!==U&&(a2+=String.fromCharCode(I)),64!==O&&(a2+=String.fromCharCode(L))}while(t2>>=0)>I)return!1;for(var L=1;L<=4;L*=2){var S=g*(1+.2/L);if(S=Math.min(S,d+100663296),$1(Math.min(I,H1(Math.max(d,S),65536))))return!0}return!1},g:function f4(d,g,I,L){for(var S=0,U=0;U>2],D=Z2[g+(8*U+4)>>2],a2=0;a2>2]=S,0},c:function(){return Y0},l:function k4(d){var g=I2();try{return p2.get(d)()}catch(I){if(_2(g),I!==I+0&&"longjmp"!==I)throw I;S2(1,0)}},e:function b4(d,g){var I=I2();try{return p2.get(d)(g)}catch(L){if(_2(I),L!==L+0&&"longjmp"!==L)throw L;S2(1,0)}},k:function u4(d,g,I){var L=I2();try{return p2.get(d)(g,I)}catch(S){if(_2(L),S!==S+0&&"longjmp"!==S)throw S;S2(1,0)}},j:function c4(d,g,I,L){var S=I2();try{return p2.get(d)(g,I,L)}catch(U){if(_2(S),U!==U+0&&"longjmp"!==U)throw U;S2(1,0)}},f:function o4(d,g){var I=I2();try{p2.get(d)(g)}catch(L){if(_2(I),L!==L+0&&"longjmp"!==L)throw L;S2(1,0)}},d:function e4(d,g,I){var L=I2();try{p2.get(d)(g,I)}catch(S){if(_2(L),S!==S+0&&"longjmp"!==S)throw S;S2(1,0)}},a:V2,b:function(d){Y0=d}};(function J1(){var d={a:t1};function g(U,O){C.asm=U.exports,p2=C.asm.q,function K1(d){$0.unshift(d)}(C.asm.n),function V1(d){if(M2--,C.monitorRunDependencies&&C.monitorRunDependencies(M2),0==M2&&X2){var g=X2;X2=null,g()}}()}function I(U){g(U.instance)}function L(U){return function G1(){if(!H2&&(K0||N2)){if("function"==typeof fetch&&!a1(e2))return fetch(e2,{credentials:"same-origin"}).then(function(d){if(!d.ok)throw"failed to load wasm binary file at '"+e2+"'";return d.arrayBuffer()}).catch(function(){return n1(e2)});if(e0)return new Promise(function(d,g){e0(e2,function(I){d(new Uint8Array(I))},g)})}return Promise.resolve().then(function(){return n1(e2)})}().then(function(O){return y2.instantiate(O,d)}).then(U,function(O){D2("failed to asynchronously prepare wasm: "+O),$2(O)})}if(function N1(d){M2++,C.monitorRunDependencies&&C.monitorRunDependencies(M2)}(),C.instantiateWasm)try{return C.instantiateWasm(d,g)}catch(U){return D2("Module.instantiateWasm callback failed with error: "+U),!1}!function S(){H2||"function"!=typeof y2.instantiateStreaming||w0(e2)||a1(e2)||"function"!=typeof fetch?L(I):fetch(e2,{credentials:"same-origin"}).then(function(U){return y2.instantiateStreaming(U,d).then(I,function(O){return D2("wasm streaming compile failed: "+O),D2("falling back to ArrayBuffer instantiation"),L(I)})})}()})(),C.___wasm_call_ctors=function(){return(C.___wasm_call_ctors=C.asm.n).apply(null,arguments)},C._malloc=function(){return(C._malloc=C.asm.o).apply(null,arguments)},C._free=function(){return(C._free=C.asm.p).apply(null,arguments)},C._triangulate=function(){return(C._triangulate=C.asm.r).apply(null,arguments)};var k0,I2=C.stackSave=function(){return(I2=C.stackSave=C.asm.s).apply(null,arguments)},_2=C.stackRestore=function(){return(_2=C.stackRestore=C.asm.t).apply(null,arguments)},S2=C._setThrew=function(){return(S2=C._setThrew=C.asm.u).apply(null,arguments)};function r4(d){this.name="ExitStatus",this.message="Program terminated with exit("+d+")",this.status=d}function g0(d){function g(){k0||(k0=!0,C.calledRun=!0,N0||(function W1(){y0($0)}(),C.onRuntimeInitialized&&C.onRuntimeInitialized(),function q1(){if(C.postRun)for("function"==typeof C.postRun&&(C.postRun=[C.postRun]);C.postRun.length;)d=C.postRun.shift(),i1.unshift(d);var d;y0(i1)}()))}M2>0||(function Q1(){if(C.preRun)for("function"==typeof C.preRun&&(C.preRun=[C.preRun]);C.preRun.length;)d=C.preRun.shift(),X0.unshift(d);var d;y0(X0)}(),M2>0||(C.setStatus?(C.setStatus("Running..."),setTimeout(function(){setTimeout(function(){C.setStatus("")},1),g()},1)):g()))}if(X2=function d(){k0||g0(),k0||(X2=d)},C.run=g0,C.preInit)for("function"==typeof C.preInit&&(C.preInit=[C.preInit]);C.preInit.length>0;)C.preInit.pop()();g0();let C0=null,g2=null,L2=null,u0=null;const s2=u2.Module;let o1=0;return u2.triangulate=(d,g,I)=>{C0||(C0=s2._triangulate);let L=s2.HEAPF32;const S=s2.HEAP32.BYTES_PER_ELEMENT,O=L.BYTES_PER_ELEMENT;I>o1&&(o1=I,L2&&(s2._free(L2),L2=0),g2&&(s2._free(g2),g2=0)),L2||(L2=s2._malloc(I*O)),u0||(u0=s2._malloc(4e3*S));const D=2*I;g2||(g2=s2._malloc(D*O)),L=s2.HEAPF32,L.set(d,L2/O),s2.HEAP32.set(g,u0/S);const a2=D/2,t2=C0(L2,u0,Math.min(g.length,4e3),2,g2,a2);L=s2.HEAPF32;const r0=L.slice(g2/O,g2/O+2*t2),l2={};return l2.buffer=r0,l2.vertexCount=t2,l2},u2.whenLoaded()}})&&(d0.exports=z0);const x1=function P1(z2,t0){for(var K2=0;K2u2[C]})}}return Object.freeze(Object.defineProperty(z2,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:p0.exports},[p0.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7112.4ae9fce1f60d02e3.js b/apps/n/porrtal-io-app/public/angular/7112.4ae9fce1f60d02e3.js deleted file mode 100644 index bc9209a9..00000000 --- a/apps/n/porrtal-io-app/public/angular/7112.4ae9fce1f60d02e3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7112],{17112:(xe,M,d)=>{d.r(M),d.d(M,{CalciteFlowItem:()=>ve,defineCustomElement:()=>Ee});var u=d(15861),n=d(76210),h=d(46203);const I=(e,t)=>{const i=`h${e.level}`;return delete e.level,(0,n.h)(i,{...e},t)};function D(e,t){return(e+t)%t}var F=d(23504);function _(e){return"Enter"===e||" "===e}var w=d(48346),x=d(98635),v=d(85589),f=d(80376);const y=new WeakMap;function W(e){e.propertyName===this.openTransitionProp&&e.target===this.transitionEl&&(this.open?this.onBeforeOpen():this.onBeforeClose())}function J(e){e.propertyName===this.openTransitionProp&&e.target===this.transitionEl&&(this.open?this.onOpen():this.onClose())}function O(e){if(z(e),e.transitionEl){const t=W.bind(e),i=J.bind(e);y.set(e,[e.transitionEl,t,i]),e.transitionEl.addEventListener("transitionstart",t),e.transitionEl.addEventListener("transitionend",i)}}function z(e){if(!y.has(e))return;const[t,i,o]=y.get(e);t.removeEventListener("transitionstart",i),t.removeEventListener("transitionend",o),y.delete(e)}const L="aria-controls",R="aria-expanded",T=new class ee{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{const{registeredElements:i}=this,o=t.find(a=>i.has(a));return i.get(o)},this.togglePopovers=t=>{const i=t.composedPath(),o=this.queryPopover(i);o&&!o.triggerDisabled&&o.toggle(),Array.from(this.registeredElements.values()).filter(a=>a!==o&&a.autoClose&&a.open&&!i.includes(a)).forEach(a=>a.toggle(!1))},this.keyHandler=t=>{t.defaultPrevented||!_(t.key)||this.togglePopovers(t)},this.clickHandler=t=>{(0,h.i)(t)&&this.togglePopovers(t)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addListeners(){document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("keydown",this.keyHandler,{capture:!0})}removeListeners(){document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("keydown",this.keyHandler,{capture:!0})}},ie=(0,n.GH)(class extends n.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePopoverBeforeClose=(0,n.yM)(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=(0,n.yM)(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=(0,n.yM)(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=(0,n.yM)(this,"calcitePopoverOpen",6),this.autoClose=!1,this.closeButton=!1,this.dismissible=!1,this.closable=!1,this.disableFlip=!1,this.disablePointer=!1,this.offsetDistance=f.b,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.triggerDisabled=!1,this.intlClose="Close",this.guid=`calcite-popover-${(0,F.g)()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e,O(this)},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?(0,f.f)(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),(0,f.c)(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:i,effectiveReferenceElement:o}=this;e&&i&&!o&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;!e||"setAttribute"in e&&e.setAttribute(R,(0,h.t)(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(L,t),T.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;!e||("removeAttribute"in e&&(e.removeAttribute(L),e.removeAttribute(R)),T.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)}}handleDismissible(e){this.closable=e}handleClosable(e){this.dismissible=e}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(e){e?this.reposition(!0):(0,f.u)(this.el),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}connectedCallback(){this.setFilteredPlacements(),O(this);const e=this.closable||this.dismissible;e&&this.handleDismissible(e),e&&this.handleClosable(e),this.setUpReferenceElement(this.hasLoaded)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),(0,f.a)(this,this.effectiveReferenceElement,this.el),z(this)}reposition(e=!1){var t=this;return(0,u.Z)(function*(){const{el:i,effectiveReferenceElement:o,placement:a,overlayPositioning:s,disableFlip:l,filteredFlipPlacements:m,offsetDistance:E,offsetSkidding:b,arrowEl:k}=t;return(0,f.r)(t,{floatingEl:i,referenceEl:o,overlayPositioning:s,placement:a,disableFlip:l,flipPlacements:m,offsetDistance:E,offsetSkidding:b,includeArrow:!t.disablePointer,arrowEl:k,type:"popover"},e)})()}setFocus(e){var t=this;return(0,u.Z)(function*(){var i;const{closeButtonEl:o}=t;if("close-button"===e&&o)return(0,n.xE)(o),void o.setFocus();null===(i=t.el)||void 0===i||i.focus()})()}toggle(e=!this.open){var t=this;return(0,u.Z)(function*(){t.open=e})()}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?(0,h.q)(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit()}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit()}renderCloseButton(){const{closeButton:e,intlClose:t,heading:i,closable:o}=this;return o||e?(0,n.h)("div",{class:"close-button-container"},(0,n.h)("calcite-action",{class:"close-button",onClick:this.hide,ref:a=>this.closeButtonEl=a,scale:i?"s":"m",text:t},(0,n.h)("calcite-icon",{icon:"x",scale:i?"s":"m"}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,i=e?(0,n.h)(I,{class:"heading",level:t||2},e):null;return i?(0,n.h)("div",{class:"header"},i,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:i,open:o,disablePointer:a}=this,s=e&&o,l=!s,m=a?null:(0,n.h)("div",{class:"arrow",ref:this.storeArrowEl});return(0,n.h)(n.AA,{"aria-hidden":(0,h.t)(l),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":l,id:this.getId(),role:"dialog"},(0,n.h)("div",{class:{[f.F.animation]:!0,[f.F.animationActive]:s},ref:this.setTransitionEl},m,(0,n.h)("div",{class:{"has-header":!!t,container:!0}},this.renderHeader(),(0,n.h)("div",{class:"content"},(0,n.h)("slot",null)),t?null:this.renderCloseButton())))}get el(){return this}static get watchers(){return{dismissible:["handleDismissible"],closable:["handleClosable"],flipPlacements:["flipPlacementsHandler"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}static get style(){return'@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:900}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;visibility:visible;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=left]) .arrow{direction:ltr;inset-inline-end:-4px}:host([data-placement^=right]) .arrow{direction:ltr;inset-inline-start:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}'}},[1,"calcite-popover",{autoClose:[516,"auto-close"],closeButton:[516,"close-button"],dismissible:[1540],closable:[1540],disableFlip:[516,"disable-flip"],disablePointer:[516,"disable-pointer"],flipPlacements:[16],heading:[1],headingLevel:[514,"heading-level"],label:[1],offsetDistance:[514,"offset-distance"],offsetSkidding:[514,"offset-skidding"],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],referenceElement:[1,"reference-element"],triggerDisabled:[516,"trigger-disabled"],intlClose:[1,"intl-close"],effectiveReferenceElement:[32],reposition:[64],setFocus:[64],toggle:[64]}]);function C(){typeof customElements>"u"||["calcite-popover","calcite-action","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-popover":customElements.get(t)||customElements.define(t,ie);break;case"calcite-action":customElements.get(t)||(0,w.d)();break;case"calcite-icon":customElements.get(t)||(0,x.d)();break;case"calcite-loader":customElements.get(t)||(0,v.d)()}})}C();const oe=["ArrowUp","ArrowDown","End","Home"],se=(0,n.GH)(class extends n.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteActionMenuOpenChange=(0,n.yM)(this,"calciteActionMenuOpenChange",6),this.expanded=!1,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.actionElements=[],this.guid=`calcite-action-menu-${(0,F.g)()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.activeMenuItemIndex=-1,this.connectMenuButtonEl=()=>{const{menuButtonId:e,menuId:t,open:i,label:o}=this,a=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==a&&(this.disconnectMenuButtonEl(),this.menuButtonEl=a,this.setTooltipReferenceElement(),a&&(a.active=i,a.setAttribute("aria-controls",t),a.setAttribute("aria-expanded",(0,h.t)(i)),a.setAttribute("aria-haspopup","true"),a.id||(a.id=e),a.label||(a.label=o),a.text||(a.text=o),a.addEventListener("pointerdown",this.menuButtonClick),a.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:e}=this;!e||(e.removeEventListener("pointerdown",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=e=>{const t=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-action"));this.slottedMenuButtonEl=t[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=e=>{this.defaultMenuButtonEl=e,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=e=>{!(0,h.i)(e)||this.toggleOpen()},this.updateTooltip=e=>{const t=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-tooltip"));this.tooltipEl=t[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:e,expanded:t,menuButtonEl:i,open:o}=this;e&&(e.referenceElement=t||o?null:i)},this.updateAction=(e,t)=>{const{guid:i,activeMenuItemIndex:o}=this,a=`${i}-action-${t}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=a),e.active=t===o},this.updateActions=e=>{e?.forEach(this.updateAction)},this.handleDefaultSlotChange=e=>{const t=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-action"));this.actionElements=t},this.menuButtonKeyDown=e=>{const{key:t}=e,{actionElements:i,activeMenuItemIndex:o,open:a}=this;if(i.length){if(_(t)){if(e.preventDefault(),!a)return void this.toggleOpen();const s=i[o];s?s.click():this.toggleOpen(!1)}if("Tab"===t)return void(this.open=!1);if("Escape"===t)return this.toggleOpen(!1),void e.preventDefault();this.handleActionNavigation(e,t,i)}},this.handleActionNavigation=(e,t,i)=>{if(!this.isValidKey(t,oe))return;if(e.preventDefault(),!this.open)return this.toggleOpen(),("Home"===t||"ArrowDown"===t)&&(this.activeMenuItemIndex=0),void(("End"===t||"ArrowUp"===t)&&(this.activeMenuItemIndex=i.length-1));"Home"===t&&(this.activeMenuItemIndex=0),"End"===t&&(this.activeMenuItemIndex=i.length-1);const o=this.activeMenuItemIndex;"ArrowUp"===t&&(this.activeMenuItemIndex=D(Math.max(o-1,-1),i.length)),"ArrowDown"===t&&(this.activeMenuItemIndex=D(o+1,i.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(e=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=e}}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=e),this.calciteActionMenuOpenChange.emit(e),this.setTooltipReferenceElement()}closeCalciteActionMenuOnClick(e){!(0,h.i)(e)||e.composedPath().includes(this.el)||(this.open=!1)}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}setFocus(){var e=this;return(0,u.Z)(function*(){(0,h.f)(e.menuButtonEl)})()}renderMenuButton(){const{label:e,scale:t,expanded:i}=this;return(0,n.h)("slot",{name:"trigger",onSlotchange:this.setMenuButtonEl},(0,n.h)("calcite-action",{class:"default-trigger",icon:"ellipsis",ref:this.setDefaultMenuButtonEl,scale:t,text:e,textEnabled:i}))}renderMenuItems(){const{actionElements:e,activeMenuItemIndex:t,open:i,menuId:o,menuButtonEl:a,label:s,placement:l,overlayPositioning:m,flipPlacements:E}=this;return(0,n.h)("calcite-popover",{disablePointer:!0,flipPlacements:E,label:s,offsetDistance:0,open:i,overlayPositioning:m,placement:l,referenceElement:a},(0,n.h)("div",{"aria-activedescendant":e[t]?.id||null,"aria-labelledby":a?.id,class:"menu",id:o,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},(0,n.h)("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return(0,n.h)(n.HY,null,this.renderMenuButton(),this.renderMenuItems(),(0,n.h)("slot",{name:"tooltip",onSlotchange:this.updateTooltip}))}isValidKey(e,t){return!!t.find(i=>i===e)}get el(){return this}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}"}},[1,"calcite-action-menu",{expanded:[516],flipPlacements:[16],label:[1],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],scale:[513],menuButtonEl:[32],activeMenuItemIndex:[32],setFocus:[64]},[[9,"pointerdown","closeCalciteActionMenuOnClick"]]]);function H(){typeof customElements>"u"||["calcite-action-menu","calcite-action","calcite-icon","calcite-loader","calcite-popover"].forEach(t=>{switch(t){case"calcite-action-menu":customElements.get(t)||customElements.define(t,se);break;case"calcite-action":customElements.get(t)||(0,w.d)();break;case"calcite-icon":customElements.get(t)||(0,x.d)();break;case"calcite-loader":customElements.get(t)||(0,v.d)();break;case"calcite-popover":customElements.get(t)||C()}})}H();var $=d(18564),le=d(22757);const de=(0,n.GH)(class extends n.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.intlLoading="Loading",this.loading=!1}render(){const{el:e,loading:t,intlLoading:i}=this,o=e.innerHTML.trim().length>0,a=t?(0,n.h)("calcite-loader",{active:!0,label:i}):null,s=o?(0,n.h)("div",{class:"content"},(0,n.h)("slot",null)):null;return(0,n.h)("div",{class:"scrim"},a,s)}get el(){return this}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;inset:0px;z-index:700;display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background)}.content{padding:1rem}"}},[1,"calcite-scrim",{intlLoading:[1,"intl-loading"],loading:[516]}]);function P(){typeof customElements>"u"||["calcite-scrim","calcite-loader"].forEach(t=>{switch(t){case"calcite-scrim":customElements.get(t)||customElements.define(t,de);break;case"calcite-loader":customElements.get(t)||(0,v.d)()}})}P();const ue=(0,n.GH)(class extends n.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePanelClose=(0,n.yM)(this,"calcitePanelClose",6),this.calcitePanelDismiss=(0,n.yM)(this,"calcitePanelDismiss",6),this.calcitePanelDismissedChange=(0,n.yM)(this,"calcitePanelDismissedChange",6),this.calcitePanelScroll=(0,n.yM)(this,"calcitePanelScroll",6),this.calcitePanelBackClick=(0,n.yM)(this,"calcitePanelBackClick",6),this.dismissed=!1,this.closed=!1,this.disabled=!1,this.dismissible=!1,this.closable=!1,this.showBackButton=!1,this.loading=!1,this.menuOpen=!1,this.resizeObserver=(0,le.c)("resize",()=>this.resizeHandler()),this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasFooterContent=!1,this.hasFooterActions=!1,this.hasFab=!1,this.resizeHandler=()=>{const{panelScrollEl:e}=this;!e||"number"!=typeof e.scrollHeight||"number"!=typeof e.offsetHeight||(e.tabIndex=e.scrollHeight>e.offsetHeight?0:-1)},this.setContainerRef=e=>{this.containerEl=e},this.setCloseRef=e=>{this.closeButtonEl=e},this.setBackRef=e=>{this.backButtonEl=e},this.panelKeyDownHandler=e=>{this.closable&&"Escape"===e.key&&!e.defaultPrevented&&(this.close(),e.preventDefault())},this.close=()=>{this.closed=!0,this.calcitePanelDismiss.emit(),this.calcitePanelClose.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.backButtonClick=()=>{this.calcitePanelBackClick.emit()},this.handleHeaderActionsStartSlotChange=e=>{const t=e.target.assignedElements({flatten:!0});this.hasStartActions=!!t.length},this.handleHeaderActionsEndSlotChange=e=>{const t=e.target.assignedElements({flatten:!0});this.hasEndActions=!!t.length},this.handleHeaderMenuActionsSlotChange=e=>{const t=e.target.assignedElements({flatten:!0});this.hasMenuItems=!!t.length},this.handleHeaderContentSlotChange=e=>{const t=e.target.assignedElements({flatten:!0});this.hasHeaderContent=!!t.length},this.handleFooterSlotChange=e=>{const t=e.target.assignedElements({flatten:!0});this.hasFooterContent=!!t.length},this.handleFooterActionsSlotChange=e=>{const t=e.target.assignedElements({flatten:!0});this.hasFooterActions=!!t.length},this.handleFabSlotChange=e=>{const t=e.target.assignedElements({flatten:!0});this.hasFab=!!t.length},this.setPanelScrollEl=e=>{var t,i;this.panelScrollEl=e,null===(t=this.resizeObserver)||void 0===t||t.disconnect(),e&&(null===(i=this.resizeObserver)||void 0===i||i.observe(e),this.resizeHandler())}}dismissedHandler(e){this.closed=e,this.calcitePanelDismissedChange.emit()}closedHandler(e){this.dismissed=e}dismissibleHandler(e){this.closable=e}closableHandler(e){this.dismissible=e}componentDidRender(){(0,$.u)(this)}connectedCallback(){const e=this.dismissed||this.closed,t=this.dismissible||this.closable;e&&(this.dismissedHandler(e),this.closedHandler(e)),t&&(this.dismissibleHandler(t),this.closableHandler(t))}disconnectedCallback(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}setFocus(e){var t=this;return(0,u.Z)(function*(){const{backButtonEl:i,closeButtonEl:o,containerEl:a}=t;"back-button"!==e?"dismiss-button"!==e?i?i.setFocus():o?o.setFocus():a?.focus():o?.setFocus():i?.setFocus()})()}scrollContentTo(e){var t=this;return(0,u.Z)(function*(){var i;null===(i=t.panelScrollEl)||void 0===i||i.scrollTo(e)})()}renderBackButton(){const{el:e}=this,t="rtl"===(0,h.c)(e),{showBackButton:i,intlBack:o,backButtonClick:a}=this,s=o||"Back";return i?(0,n.h)("calcite-action",{"aria-label":s,class:"back-button",icon:t?"chevron-right":"chevron-left",key:"back-button",onClick:a,ref:this.setBackRef,scale:"s",slot:"header-actions-start",text:s}):null}renderHeaderContent(){const{heading:e,headingLevel:t,summary:i,description:o,hasHeaderContent:a}=this,s=e?(0,n.h)(I,{class:"heading",level:t||3},e):null,l=o||i?(0,n.h)("span",{class:"description"},o||i):null;return a||!s&&!l?null:(0,n.h)("div",{class:"header-content",key:"header-content"},s,l)}renderHeaderSlottedContent(){return(0,n.h)("div",{class:"header-content",hidden:!this.hasHeaderContent,key:"slotted-header-content"},(0,n.h)("slot",{name:"header-content",onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){const{hasStartActions:e}=this;return(0,n.h)("div",{class:{"header-actions--start":!0,"header-actions":!0},hidden:!e,key:"header-actions-start"},(0,n.h)("slot",{name:"header-actions-start",onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){const{close:e,hasEndActions:t,intlClose:i,closable:o}=this,a=i||"Close",s=o?(0,n.h)("calcite-action",{"aria-label":a,icon:"x",onClick:e,ref:this.setCloseRef,text:a}):null,l=(0,n.h)("slot",{name:"header-actions-end",onSlotchange:this.handleHeaderActionsEndSlotChange});return(0,n.h)("div",{class:{"header-actions--end":!0,"header-actions":!0},hidden:!(t||s),key:"header-actions-end"},l,s)}renderMenu(){const{hasMenuItems:e,intlOptions:t,menuOpen:i}=this;return(0,n.h)("calcite-action-menu",{flipPlacements:["top","bottom"],hidden:!e,key:"menu",label:t||"Options",open:i,placement:"bottom-end"},(0,n.h)("calcite-action",{icon:"ellipsis",slot:"trigger",text:t||"Options"}),(0,n.h)("slot",{name:"header-menu-actions",onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){const{showBackButton:e,hasHeaderContent:t,hasStartActions:i,hasEndActions:o,closable:a,hasMenuItems:s}=this,l=this.renderHeaderContent();return(0,n.h)("header",{class:"header",hidden:!(e||t||l||i||o||a||s)},this.renderBackButton(),this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),l,this.renderHeaderActionsEnd(),this.renderMenu())}renderFooterNode(){const{hasFooterContent:e,hasFooterActions:t}=this;return(0,n.h)("footer",{class:"footer",hidden:!(e||t)},(0,n.h)("slot",{key:"footer-slot",name:"footer",onSlotchange:this.handleFooterSlotChange}),(0,n.h)("slot",{key:"footer-actions-slot",name:"footer-actions",onSlotchange:this.handleFooterActionsSlotChange}))}renderContent(){const{hasFab:e}=this,t=(0,n.h)("slot",{key:"default-slot"}),i=e?(0,n.h)("section",{class:"content-container"},t):t;return(0,n.h)("div",{class:{"content-wrapper":!0,"content-container":!e,"content-height":e},onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i,this.renderFab())}renderFab(){return(0,n.h)("div",{class:"fab-container",hidden:!this.hasFab},(0,n.h)("slot",{name:"fab",onSlotchange:this.handleFabSlotChange}))}render(){const{loading:e,panelKeyDownHandler:t,closed:i,closable:o}=this,a=(0,n.h)("article",{"aria-busy":(0,h.t)(e),class:"container",hidden:i,onKeyDown:t,ref:this.setContainerRef,tabIndex:o?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterNode());return(0,n.h)(n.HY,null,e?(0,n.h)("calcite-scrim",{loading:e}):null,a)}get el(){return this}static get watchers(){return{dismissed:["dismissedHandler"],closed:["closedHandler"],dismissible:["dismissibleHandler"],closable:["closableHandler"]}}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}.header{border-block-end:1px solid;position:sticky;inset-block-start:0px;z-index:400;inline-size:100%;align-items:stretch;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);flex:0 0 auto}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{border-block-start:1px solid;position:sticky;inset-block-end:0px;display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:sticky;inset-block-end:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}[hidden]{display:none}"}},[1,"calcite-panel",{dismissed:[1540],closed:[1540],beforeBack:[16],disabled:[516],dismissible:[1540],closable:[1540],headingLevel:[514,"heading-level"],showBackButton:[516,"show-back-button"],intlBack:[1,"intl-back"],heightScale:[513,"height-scale"],widthScale:[513,"width-scale"],loading:[516],intlClose:[1,"intl-close"],intlOptions:[1,"intl-options"],heading:[1],summary:[1],description:[1],menuOpen:[516,"menu-open"],hasStartActions:[32],hasEndActions:[32],hasMenuItems:[32],hasHeaderContent:[32],hasFooterContent:[32],hasFooterActions:[32],hasFab:[32],setFocus:[64],scrollContentTo:[64]}]);function G(){typeof customElements>"u"||["calcite-panel","calcite-action","calcite-action-menu","calcite-icon","calcite-loader","calcite-popover","calcite-scrim"].forEach(t=>{switch(t){case"calcite-panel":customElements.get(t)||customElements.define(t,ue);break;case"calcite-action":customElements.get(t)||(0,w.d)();break;case"calcite-action-menu":customElements.get(t)||H();break;case"calcite-icon":customElements.get(t)||(0,x.d)();break;case"calcite-loader":customElements.get(t)||(0,v.d)();break;case"calcite-popover":customElements.get(t)||C();break;case"calcite-scrim":customElements.get(t)||P()}})}G();var fe=d(98792);const X=(0,n.GH)(class extends n.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteFlowItemBack=(0,n.yM)(this,"calciteFlowItemBack",6),this.calciteFlowItemBackClick=(0,n.yM)(this,"calciteFlowItemBackClick",6),this.calciteFlowItemScroll=(0,n.yM)(this,"calciteFlowItemScroll",6),this.calciteFlowItemClose=(0,n.yM)(this,"calciteFlowItemClose",6),this.closable=!1,this.closed=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.showBackButton=!1,this.handlePanelScroll=e=>{e.stopPropagation(),this.calciteFlowItemScroll.emit()},this.handlePanelClose=e=>{e.stopPropagation(),this.calciteFlowItemClose.emit()},this.backButtonClick=()=>{this.calciteFlowItemBackClick.emit(),this.calciteFlowItemBack.emit()},this.setBackRef=e=>{this.backButtonEl=e},this.setContainerRef=e=>{this.containerEl=e},this.getBackLabel=()=>this.intlBack||"Back"}componentDidRender(){(0,$.u)(this)}setFocus(){var e=this;return(0,u.Z)(function*(){const{backButtonEl:t,containerEl:i}=e;t?t.setFocus():i?.setFocus()})()}scrollContentTo(e){var t=this;return(0,u.Z)(function*(){var i;yield null===(i=t.containerEl)||void 0===i?void 0:i.scrollContentTo(e)})()}renderBackButton(){const{el:e}=this,t="rtl"===(0,h.c)(e),{showBackButton:i,backButtonClick:o}=this,a=this.getBackLabel();return i?(0,n.h)("calcite-action",{"aria-label":a,class:"back-button",icon:t?"chevron-right":"chevron-left",key:"flow-back-button",onClick:o,ref:this.setBackRef,scale:"s",slot:"header-actions-start",text:a}):null}render(){const{closable:e,closed:t,description:i,disabled:o,heading:a,headingLevel:s,heightScale:l,intlBack:m,intlClose:E,intlOptions:b,loading:k,menuOpen:ke,widthScale:we,backButtonEl:Y}=this,j=this.getBackLabel();return(0,n.h)(n.AA,null,(0,n.h)("calcite-panel",{closable:e,closed:t,description:i,disabled:o,heading:a,headingLevel:s,heightScale:l,intlBack:m,intlClose:E,intlOptions:b,loading:k,menuOpen:ke,onCalcitePanelClose:this.handlePanelClose,onCalcitePanelScroll:this.handlePanelScroll,ref:this.setContainerRef,widthScale:we},this.renderBackButton(),(0,n.h)("slot",{name:"header-actions-start",slot:"header-actions-start"}),(0,n.h)("slot",{name:"header-actions-end",slot:"header-actions-end"}),(0,n.h)("slot",{name:"header-content",slot:"header-content"}),(0,n.h)("slot",{name:"header-menu-actions",slot:"header-menu-actions"}),(0,n.h)("slot",{name:"fab",slot:"fab"}),(0,n.h)("slot",{name:"footer-actions",slot:"footer-actions"}),(0,n.h)("slot",{name:"footer",slot:"footer"}),(0,n.h)("slot",null)),Y?(0,n.h)("calcite-tooltip",{label:j,placement:"auto",referenceElement:Y},j):null)}get el(){return this}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}"}},[1,"calcite-flow-item",{closable:[1540],closed:[1540],beforeBack:[16],description:[1],disabled:[516],heading:[1],headingLevel:[514,"heading-level"],heightScale:[513,"height-scale"],intlBack:[1,"intl-back"],intlClose:[1,"intl-close"],intlOptions:[1,"intl-options"],loading:[516],menuOpen:[516,"menu-open"],showBackButton:[516,"show-back-button"],widthScale:[513,"width-scale"],backButtonEl:[32],setFocus:[64],scrollContentTo:[64]}]);function V(){typeof customElements>"u"||["calcite-flow-item","calcite-action","calcite-action-menu","calcite-icon","calcite-loader","calcite-panel","calcite-popover","calcite-scrim","calcite-tooltip"].forEach(t=>{switch(t){case"calcite-flow-item":customElements.get(t)||customElements.define(t,X);break;case"calcite-action":customElements.get(t)||(0,w.d)();break;case"calcite-action-menu":customElements.get(t)||H();break;case"calcite-icon":customElements.get(t)||(0,x.d)();break;case"calcite-loader":customElements.get(t)||(0,v.d)();break;case"calcite-panel":customElements.get(t)||G();break;case"calcite-popover":customElements.get(t)||C();break;case"calcite-scrim":customElements.get(t)||P();break;case"calcite-tooltip":customElements.get(t)||(0,fe.d)()}})}V();const ve=X,Ee=V}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7127.98c86e5803b93d07.js b/apps/n/porrtal-io-app/public/angular/7127.98c86e5803b93d07.js deleted file mode 100644 index 5b24ca89..00000000 --- a/apps/n/porrtal-io-app/public/angular/7127.98c86e5803b93d07.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7127],{57127:(y,i,s)=>{s.r(i),s.d(i,{h:()=>f});var u,h,t,n=s(1719),a={exports:{}};u=a,void 0!==(t=a.exports,Object.defineProperty(t,"__esModule",{value:!0}),h=void(t.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"i. sz.",_era_bc:"i. e.",A:"de.",P:"du.",AM:"de.",PM:"du.","A.M.":"de.","P.M.":"du.",January:"janu\xe1r",February:"febru\xe1r",March:"m\xe1rcius",April:"\xe1prilis",May:"m\xe1jus",June:"j\xfanius",July:"j\xfalius",August:"augusztus",September:"szeptember",October:"okt\xf3ber",November:"november",December:"december",Jan:"jan.",Feb:"febr.",Mar:"m\xe1rc.",Apr:"\xe1pr.","May(short)":"m\xe1j.",Jun:"j\xfan.",Jul:"j\xfal.",Aug:"aug.",Sep:"szept.",Oct:"okt.",Nov:"nov.",Dec:"dec.",Sunday:"vas\xe1rnap",Monday:"h\xe9tf\u0151",Tuesday:"kedd",Wednesday:"szerda",Thursday:"cs\xfct\xf6rt\xf6k",Friday:"p\xe9ntek",Saturday:"szombat",Sun:"V",Mon:"H",Tue:"K",Wed:"Sze",Thu:"Cs",Fri:"P",Sat:"Szo",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Nagy\xedt\xe1s/kicsiny\xedt\xe9s",Play:"Lej\xe1tsz\xe1s",Stop:"Meg\xe1ll\xf3",Legend:"Jelmagyar\xe1zat","Click, tap or press ENTER to toggle":"",Loading:"Bet\xf6lt\xe9s",Home:"Kezd\u0151lap",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Nyomtat\xe1s",Image:"K\xe9p",Data:"Adatok",Print:"Nyomtat\xe1s","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Ett\u0151l %1 eddig %2","From %1":"Ett\u0151l %1","To %1":"Eddig %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(_,t){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,n.g)(a.exports)},[a.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7155.1a02021ace58c972.js b/apps/n/porrtal-io-app/public/angular/7155.1a02021ace58c972.js deleted file mode 100644 index 7bc75a9b..00000000 --- a/apps/n/porrtal-io-app/public/angular/7155.1a02021ace58c972.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7155],{7155:(D,T,e)=>{e.r(T),e.d(T,{default:()=>se});var r=e(15861),o=e(17626),s=e(73281),P=e(84792),a=e(26584),f=e(58817),l=e(63290),I=e(62208),S=e(99959),v=e(94113),y=e(10699),d=e(21726),n=e(77712),C=e(90912),p=e(68653),m=e(76898),b=e(99433),z=e(44917),w=e(50085),R=e(65088),$=e(49286),N=e(6647),F=e(99555),g=e(10157),x=e(55342),Z=e(86810);e(85931);let E=class extends Z.wq{constructor(t){super(t),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,o._)([(0,n.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],E.prototype,"field",void 0),(0,o._)([(0,n.Cb)({readOnly:!0,nonNullable:!0,json:{read:!1}})],E.prototype,"type",void 0),E=(0,o._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudFilter")],E);const M=E;var K;let V=K=class extends M{constructor(t){super(t),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new K({field:this.field,requiredClearBits:(0,f.d9)(this.requiredClearBits),requiredSetBits:(0,f.d9)(this.requiredSetBits)})}};(0,o._)([(0,n.Cb)({type:[C.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],V.prototype,"requiredClearBits",void 0),(0,o._)([(0,n.Cb)({type:[C.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],V.prototype,"requiredSetBits",void 0),(0,o._)([(0,x.J)({pointCloudBitfieldFilter:"bitfield"})],V.prototype,"type",void 0),V=K=(0,o._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],V);const q=V;var L;let B=L=class extends M{constructor(t){super(t),this.includedReturns=[],this.type="return"}clone(){return new L({field:this.field,includedReturns:(0,f.d9)(this.includedReturns)})}};(0,o._)([(0,n.Cb)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],B.prototype,"includedReturns",void 0),(0,o._)([(0,x.J)({pointCloudReturnFilter:"return"})],B.prototype,"type",void 0),B=L=(0,o._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],B);const k=B;var U;let O=U=class extends M{constructor(t){super(t),this.mode="exclude",this.type="value",this.values=[]}clone(){return new U({field:this.field,mode:this.mode,values:(0,f.d9)(this.values)})}};(0,o._)([(0,n.Cb)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],O.prototype,"mode",void 0),(0,o._)([(0,x.J)({pointCloudValueFilter:"value"})],O.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],O.prototype,"values",void 0),O=U=(0,o._)([(0,m.j)("esri.layers.pointCloudFilters.PointCloudValueFilter")],O);const _={key:"type",base:M,typeMap:{value:O,bitfield:q,return:k}};var G,J=e(13812),W=e(36255),ee=e(55911),X=e(38439),te=e(53776),Y=e(80573);let A=G=class extends Y.Z{constructor(t){super(t),this.type="point-cloud-rgb",this.field=null}clone(){return new G({...this.cloneProperties(),field:(0,f.d9)(this.field)})}};(0,o._)([(0,x.J)({pointCloudRGBRenderer:"point-cloud-rgb"})],A.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:String,json:{write:!0}})],A.prototype,"field",void 0),A=G=(0,o._)([(0,m.j)("esri.renderers.PointCloudRGBRenderer")],A);const oe=A;var re=e(23899),ie=e(98610);const H={key:"type",base:Y.Z,typeMap:{"point-cloud-class-breaks":te.Z,"point-cloud-rgb":oe,"point-cloud-stretch":re.Z,"point-cloud-unique-value":ie.Z},errorContext:"renderer"};var ne=e(49430);const Q=(0,ee.v)();let u=class extends((0,g.Vt)((0,R.Y)((0,$.q)((0,N.I)((0,F.M)((0,S.R)((0,w.V)(z.Z)))))))){constructor(...t){super(...t),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(t,i){return"string"==typeof t?{url:t,...i}:t}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(t){const i=this.fieldsIndex.get(t);return i&&i.domain?i.domain:null}readServiceFields(t,i,c){return Array.isArray(t)?t.map(h=>{const j=new W.Z;return"FieldTypeInteger"===h.type&&((h=(0,f.d9)(h)).type="esriFieldTypeInteger"),j.read(h,c),j}):Array.isArray(i.attributeStorageInfo)?i.attributeStorageInfo.map(h=>new W.Z({name:h.name,type:"ELEVATION"===h.name?"double":"integer"})):null}set elevationInfo(t){this._set("elevationInfo",t),this._validateElevationInfo()}writeRenderer(t,i,c,h){(0,v.RB)("layerDefinition.drawingInfo.renderer",t.write({},h),i)}load(t){const i=(0,I.pC)(t)?t.signal:null,c=this.loadFromPortal({supportedTypes:["Scene Service"]},t).catch(y.r9).then(()=>this._fetchService(i));return this.addResolvingPromise(c),Promise.resolve(this)}createPopupTemplate(t){const i=(0,ne.eZ)(this,t);return i&&(this._formatPopupTemplateReturnsField(i),this._formatPopupTemplateRGBField(i)),i}_formatPopupTemplateReturnsField(t){const i=this.fieldsIndex.get("RETURNS");if(!i)return;const c=t.fieldInfos?.find(j=>j.fieldName===i.name);if(!c)return;const h=new X.Z({name:"pcl-returns-decoded",title:i.alias||i.name,expression:`\n var returnValue = $feature.${i.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});t.expressionInfos=[...t.expressionInfos||[],h],c.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(t){const i=this.fieldsIndex.get("RGB");if(!i)return;const c=t.fieldInfos?.find(j=>j.fieldName===i.name);if(!c)return;const h=new X.Z({name:"pcl-rgb-decoded",title:i.alias||i.name,expression:`\n var rgb = $feature.${i.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});t.expressionInfos=[...t.expressionInfos||[],h],c.fieldName="expression/pcl-rgb-decoded"}queryCachedStatistics(t,i){var c=this;return(0,r.Z)(function*(){if(yield c.load(i),!c.attributeStorageInfo)throw new a.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const h=c.fieldsIndex.get(t);if(!h)throw new a.Z("pointcloudlayer:field-unexisting",`Field '${t}' does not exist on the layer`);for(const j of c.attributeStorageInfo)if(j.name===h.name){const le=(0,d.v_)(c.parsedUrl.path,`./statistics/${j.key}`);return(0,P.default)(le,{query:{f:"json",token:c.apiKey},responseType:"json",signal:i?i.signal:null}).then(ae=>ae.data)}throw new a.Z("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")})()}saveAs(t,i){var c=this;return(0,r.Z)(function*(){return c._debouncedSaveOperations(g.xp.SAVE_AS,{...i,getTypeKeywords:()=>c._getTypeKeywords(),portalItemLayerType:"point-cloud"},t)})()}save(){var t=this;return(0,r.Z)(function*(){const i={getTypeKeywords:()=>t._getTypeKeywords(),portalItemLayerType:"point-cloud"};return t._debouncedSaveOperations(g.xp.SAVE,i)})()}validateLayer(t){if(t.layerType&&"PointCloud"!==t.layerType)throw new a.Z("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:t.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new a.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new a.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(t){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some(i=>i.name===t)}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const t=this.elevationInfo;t&&("absolute-height"!==t.mode&&l.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Point cloud layers only support absolute-height elevation mode"),t.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression&&l.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Point cloud layers do not support featureExpressionInfo"))}};(0,o._)([(0,n.Cb)({type:["PointCloudLayer"]})],u.prototype,"operationalLayerType",void 0),(0,o._)([(0,n.Cb)(J.C_)],u.prototype,"popupEnabled",void 0),(0,o._)([(0,n.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],u.prototype,"popupTemplate",void 0),(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1}})],u.prototype,"defaultPopupTemplate",null),(0,o._)([(0,n.Cb)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],u.prototype,"opacity",void 0),(0,o._)([(0,n.Cb)({type:["show","hide"]})],u.prototype,"listMode",void 0),(0,o._)([(0,n.Cb)({types:[_],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],u.prototype,"filters",void 0),(0,o._)([(0,n.Cb)({type:[W.Z]})],u.prototype,"fields",void 0),(0,o._)([(0,n.Cb)(Q.fieldsIndex)],u.prototype,"fieldsIndex",void 0),(0,o._)([(0,p.r)("service","fields",["fields","attributeStorageInfo"])],u.prototype,"readServiceFields",null),(0,o._)([(0,n.Cb)(Q.outFields)],u.prototype,"outFields",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],u.prototype,"attributeStorageInfo",void 0),(0,o._)([(0,n.Cb)(J.PV)],u.prototype,"elevationInfo",null),(0,o._)([(0,n.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],u.prototype,"path",void 0),(0,o._)([(0,n.Cb)(J.rn)],u.prototype,"legendEnabled",void 0),(0,o._)([(0,n.Cb)({types:H,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:H},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],u.prototype,"renderer",void 0),(0,o._)([(0,b.c)("renderer")],u.prototype,"writeRenderer",null),(0,o._)([(0,n.Cb)({json:{read:!1},readOnly:!0})],u.prototype,"type",void 0),u=(0,o._)([(0,m.j)("esri.layers.PointCloudLayer")],u);const se=u},53776:(D,T,e)=>{e.d(T,{Z:()=>m});var y,r=e(17626),o=e(58817),s=e(77712),P=e(90912),a=e(55342),f=e(76898),l=e(80573),I=e(10914),S=e(91558),v=e(86810);let d=y=class extends v.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new y({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,o.d9)(this.color)})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],d.prototype,"minValue",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],d.prototype,"maxValue",void 0),(0,r._)([(0,s.Cb)({type:S.Z,json:{type:[P.z8],write:!0}})],d.prototype,"color",void 0),d=y=(0,r._)([(0,f.j)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],d);const n=d;var C;let p=C=class extends l.Z{constructor(b){super(b),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new C({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,o.d9)(this.colorClassBreakInfos),legendOptions:(0,o.d9)(this.legendOptions)})}};(0,r._)([(0,a.J)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],p.prototype,"type",void 0),(0,r._)([(0,s.Cb)({json:{write:!0},type:String})],p.prototype,"field",void 0),(0,r._)([(0,s.Cb)({type:I.I,json:{write:!0}})],p.prototype,"legendOptions",void 0),(0,r._)([(0,s.Cb)({type:l.Z.fieldTransformTypeKebabDict.apiValues,json:{type:l.Z.fieldTransformTypeKebabDict.jsonValues,read:l.Z.fieldTransformTypeKebabDict.read,write:l.Z.fieldTransformTypeKebabDict.write}})],p.prototype,"fieldTransformType",void 0),(0,r._)([(0,s.Cb)({type:[n],json:{write:!0}})],p.prototype,"colorClassBreakInfos",void 0),p=C=(0,r._)([(0,f.j)("esri.renderers.PointCloudClassBreaksRenderer")],p);const m=p},80573:(D,T,e)=>{e.d(T,{Z:()=>x});var S,r=e(17626),o=e(2076),s=e(86810),P=e(58817),a=e(77712),l=(e(90912),e(76898));e(85931);let v=S=class extends s.wq{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new S({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],v.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],v.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],v.prototype,"maxValue",void 0),v=S=(0,r._)([(0,l.j)("esri.renderers.support.pointCloud.ColorModulation")],v);const y=v,d=new o.X({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let n=class extends s.wq{};(0,r._)([(0,a.Cb)({type:d.apiValues,readOnly:!0,nonNullable:!0,json:{type:d.jsonValues,read:!1,write:d.write}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.j)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],n);const C=n;var m,p=e(55342);let b=m=class extends C{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new m({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,r._)([(0,p.J)({pointCloudFixedSizeAlgorithm:"fixed-size"})],b.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],b.prototype,"size",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"useRealWorldSymbolSizes",void 0),b=m=(0,r._)([(0,l.j)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],b);const z=b;var w;let R=w=class extends C{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new w({scaleFactor:this.scaleFactor})}};(0,r._)([(0,p.J)({pointCloudSplatAlgorithm:"splat"})],R.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],R.prototype,"scaleFactor",void 0),R=w=(0,r._)([(0,l.j)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],R);const N={key:"type",base:C,typeMap:{"fixed-size":z,splat:R}},F=(0,o.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let g=class extends s.wq{constructor(Z){super(Z),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,P.d9)(this.pointSizeAlgorithm),colorModulation:(0,P.d9)(this.colorModulation),pointsPerInch:(0,P.d9)(this.pointsPerInch)}}};(0,r._)([(0,a.Cb)({type:F.apiValues,readOnly:!0,nonNullable:!0,json:{type:F.jsonValues,read:!1,write:F.write}})],g.prototype,"type",void 0),(0,r._)([(0,a.Cb)({types:N,json:{write:!0}})],g.prototype,"pointSizeAlgorithm",void 0),(0,r._)([(0,a.Cb)({type:y,json:{write:!0}})],g.prototype,"colorModulation",void 0),(0,r._)([(0,a.Cb)({json:{write:!0},nonNullable:!0,type:Number})],g.prototype,"pointsPerInch",void 0),g=(0,r._)([(0,l.j)("esri.renderers.PointCloudRenderer")],g),(g||(g={})).fieldTransformTypeKebabDict=new o.X({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const x=g},23899:(D,T,e)=>{e.d(T,{Z:()=>d});var v,r=e(17626),o=e(58817),s=e(77712),a=(e(90912),e(55342)),f=e(76898),l=e(80573),I=e(10914),S=e(8029);let y=v=class extends l.Z{constructor(n){super(n),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new v({...this.cloneProperties(),field:(0,o.d9)(this.field),fieldTransformType:(0,o.d9)(this.fieldTransformType),stops:(0,o.d9)(this.stops),legendOptions:(0,o.d9)(this.legendOptions)})}};(0,r._)([(0,a.J)({pointCloudStretchRenderer:"point-cloud-stretch"})],y.prototype,"type",void 0),(0,r._)([(0,s.Cb)({json:{write:!0},type:String})],y.prototype,"field",void 0),(0,r._)([(0,s.Cb)({type:I.I,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,r._)([(0,s.Cb)({type:l.Z.fieldTransformTypeKebabDict.apiValues,json:{type:l.Z.fieldTransformTypeKebabDict.jsonValues,read:l.Z.fieldTransformTypeKebabDict.read,write:l.Z.fieldTransformTypeKebabDict.write}})],y.prototype,"fieldTransformType",void 0),(0,r._)([(0,s.Cb)({type:[S.Z],json:{write:!0}})],y.prototype,"stops",void 0),y=v=(0,r._)([(0,f.j)("esri.renderers.PointCloudStretchRenderer")],y);const d=y},98610:(D,T,e)=>{e.d(T,{Z:()=>m});var y,r=e(17626),o=e(58817),s=e(77712),P=e(90912),a=e(55342),f=e(76898),l=e(80573),I=e(10914),S=e(91558),v=e(86810);let d=y=class extends v.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new y({description:this.description,label:this.label,values:(0,o.d9)(this.values),color:(0,o.d9)(this.color)})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r._)([(0,s.Cb)({type:[String],json:{write:!0}})],d.prototype,"values",void 0),(0,r._)([(0,s.Cb)({type:S.Z,json:{type:[P.z8],write:!0}})],d.prototype,"color",void 0),d=y=(0,r._)([(0,f.j)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],d);const n=d;var C;let p=C=class extends l.Z{constructor(b){super(b),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new C({...this.cloneProperties(),field:(0,o.d9)(this.field),fieldTransformType:(0,o.d9)(this.fieldTransformType),colorUniqueValueInfos:(0,o.d9)(this.colorUniqueValueInfos),legendOptions:(0,o.d9)(this.legendOptions)})}};(0,r._)([(0,a.J)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],p.prototype,"type",void 0),(0,r._)([(0,s.Cb)({json:{write:!0},type:String})],p.prototype,"field",void 0),(0,r._)([(0,s.Cb)({type:l.Z.fieldTransformTypeKebabDict.apiValues,json:{type:l.Z.fieldTransformTypeKebabDict.jsonValues,read:l.Z.fieldTransformTypeKebabDict.read,write:l.Z.fieldTransformTypeKebabDict.write}})],p.prototype,"fieldTransformType",void 0),(0,r._)([(0,s.Cb)({type:[n],json:{write:!0}})],p.prototype,"colorUniqueValueInfos",void 0),(0,r._)([(0,s.Cb)({type:I.I,json:{write:!0}})],p.prototype,"legendOptions",void 0),p=C=(0,r._)([(0,f.j)("esri.renderers.PointCloudUniqueValueRenderer")],p);const m=p}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/725.d0ae6acaea8cff30.js b/apps/n/porrtal-io-app/public/angular/725.d0ae6acaea8cff30.js deleted file mode 100644 index 6c814f34..00000000 --- a/apps/n/porrtal-io-app/public/angular/725.d0ae6acaea8cff30.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[725],{60725:(d,_,t)=>{t.r(_),t.d(_,{default:()=>s});var o=t(17626),a=t(26584),r=t(77712),p=(t(85931),t(90912),t(76898)),y=t(80415);let e=class extends y.default{constructor(i){super(i),this.geometryType="point",this.type="oriented-imagery",this.operationalLayerType="OrientedImageryLayer"}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new a.Z("feature-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,o._)([(0,r.Cb)()],e.prototype,"cameraProperties",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"coverage",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"coveragePercent",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"defaultSearchLocation",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"depthImage",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"digitalElevationModel",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"geometryType",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"imageProperties",void 0),(0,o._)([(0,r.Cb)()],e.prototype,"maximumDistance",void 0),(0,o._)([(0,r.Cb)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],e.prototype,"type",void 0),(0,o._)([(0,r.Cb)({type:["OrientedImageryLayer"]})],e.prototype,"operationalLayerType",void 0),e=(0,o._)([(0,p.j)("esri.layers.OrientedImageryLayer")],e);const s=e}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7281.230ad54bb0b2a681.js b/apps/n/porrtal-io-app/public/angular/7281.230ad54bb0b2a681.js deleted file mode 100644 index 59e0f674..00000000 --- a/apps/n/porrtal-io-app/public/angular/7281.230ad54bb0b2a681.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7281],{97281:(o,s,_)=>{_.r(s),_.d(s,{HUDCompositingPassParameters:()=>a.H,build:()=>a.b}),_(98071),_(17625),_(22355),_(35387);var a=_(19982)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7298.dcb22dfb9a1fde15.js b/apps/n/porrtal-io-app/public/angular/7298.dcb22dfb9a1fde15.js deleted file mode 100644 index 74e4d258..00000000 --- a/apps/n/porrtal-io-app/public/angular/7298.dcb22dfb9a1fde15.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7298],{7298:(E,s,_)=>{_.r(s),_.d(s,{BackgroundMode:()=>a.a,build:()=>a.b}),_(89798),_(87191),_(14273),_(97139),_(65787),_(17625),_(22355),_(35387);var a=_(87204)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/73.95b1041108544c56.js b/apps/n/porrtal-io-app/public/angular/73.95b1041108544c56.js deleted file mode 100644 index eaef18e4..00000000 --- a/apps/n/porrtal-io-app/public/angular/73.95b1041108544c56.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[73],{10073:(Le,$,m)=>{m.r($),m.d($,{default:()=>Io});var J,l,A=m(15861),y=m(17626),Y=m(14517),T=m(46160),W=m(63290),g=m(62208),M=m(32917),C=m(77712),ee=(m(85931),m(90912),m(76898)),We=m(1437),B=m(97662),ge=m(72392),Ee=m(16730),F=m(21286),k=m(15572),Q=m(28347),he=m(43703),w=m(84161),R=m(28093),Ne=m(78172),Z=m(26242),Se=m(38114),oe=m(84786),ce=m(64770),me=m(55915),Re=m(37053),be=m(66601);function re(l,o,d){const c=function pe(l,o,d,c){const h=(0,be.m)(d),p=(0,Ee.j5)(h);if((0,g.Wi)(p))return null;const u=o[2]-l[2];if(c===J.Vertical)return{verticalSigned:u,unit:p};if(!(0,me.SH)(l,d,Fe,h)||!(0,me.SH)(o,d,zt,h))return null;if(c===J.Direct)return{direct:(0,w.i)(zt,Fe),unit:p};if((0,w.s)(Ht,l[0],l[1],o[2]),!(0,me.SH)(Ht,d,Ht,h))return null;const f=(0,w.i)(Ht,zt);return c===J.Horizontal?{horizontal:f,unit:p}:{direct:(0,w.i)(zt,Fe),horizontal:f,vertical:Math.abs(u),unit:p}}(l,o,d,J.Direct);return(0,g.pC)(c)?(0,k.yG)(c.direct,c.unit):null}(l=J||(J={}))[l.Direct=0]="Direct",l[l.Horizontal=1]="Horizontal",l[l.Vertical=2]="Vertical";const j=(0,R.c)(),K=(0,R.c)(),Fe=(0,R.c)(),zt=(0,R.c)(),Ht=(0,R.c)();function Vt(l){const{elevationAlignedStartPoint:o,elevationAlignedEndPoint:d,dimension:{offset:c,measureType:h,orientation:p}}=l;return{elevationAlignedStartPoint:o,elevationAlignedEndPoint:d,offset:c,measureType:h,orientation:p}}function It({elevationAlignedStartPoint:l,elevationAlignedEndPoint:o,offset:d,measureType:c,orientation:h},p,u=null){if((0,g.Wi)(l)||(0,g.Wi)(o))return null;const f=Pn((0,g.pC)(u)?u.directSegment:new ce.y,{elevationAlignedStartPoint:l,elevationAlignedEndPoint:o},p),v=(0,g.pC)(u)?u.primaryOffsetAxis:(0,R.c)();Zt(v,{measureType:c,elevationAlignedStartPoint:l,elevationAlignedEndPoint:o,directSegment:f,orientation:h,renderCoordsHelper:p});const S=(0,g.pC)(u)?u.dimensionSegment:new ce.y;return sn({elevationAlignedStartPoint:l,elevationAlignedEndPoint:o})&&c===B.n.Vertical?((0,w.c)(S.startRenderSpace,f.startRenderSpace),(0,w.c)(S.endRenderSpace,f.endRenderSpace)):En(S,{offsetAxis:v,offset:d,relativeToSegment:f,renderCoordsHelper:p}),{directSegment:f,dimensionSegment:S,primaryOffsetAxis:v,spatialReference:p.spatialReference}}function Sn(l,o,d,c){return o===Pt.Start?((0,w.c)(l.startRenderSpace,d.startRenderSpace),(0,w.c)(l.endRenderSpace,c.startRenderSpace)):((0,w.c)(l.startRenderSpace,d.endRenderSpace),(0,w.c)(l.endRenderSpace,c.endRenderSpace)),l}var Pt;function Cn(l,o,d,c){switch(o){case B.n.Direct:return Pn(l,d,c);case B.n.Horizontal:case B.n.Vertical:{const{elevationAlignedStartPoint:h,elevationAlignedEndPoint:p,dimension:u,geometry:f}=d;let v;u.measureType===B.n.Direct?(v=function mi(l,o){const d=l.directSegment.eval(.5,Z.WM.get()),c=o.worldUpAtPosition(d,Z.WM.get()),h=l.dimensionSegment.eval(.5,Z.WM.get()),p=(0,w.y)(Z.WM.get(),h,d);return!(0,w.F)(p,R.Z)&&(0,w.e)(p,c)>0}(f,c)===h.z>p.z,o===B.n.Horizontal&&(v=!v)):v=!function vi(l){const{startRenderSpace:o,endRenderSpace:d}=l.dimensionSegment,{startRenderSpace:c,endRenderSpace:h}=l.directSegment;return(0,w.E)(c,o)<(0,w.E)(h,d)}(f);const[S,P]=v?[h,p]:[p,h],x=(0,oe.WG)(P,_i);return o===B.n.Horizontal?x.z=S.z:(x.x=S.x,x.y=S.y),c.toRenderCoords(S,l.startRenderSpace),c.toRenderCoords(x,l.endRenderSpace),l}}}function Pn(l,o,d){return d.toRenderCoords(o.elevationAlignedStartPoint,l.startRenderSpace),d.toRenderCoords(o.elevationAlignedEndPoint,l.endRenderSpace),l}!function(l){l[l.Start=0]="Start",l[l.End=1]="End"}(Pt||(Pt={}));const _i=(0,Se.Tx)(0,0,0,null),Si=new ce.y;function Zt(l,o){const{measureType:d,elevationAlignedStartPoint:c,elevationAlignedEndPoint:h,directSegment:{startRenderSpace:p,endRenderSpace:u},directSegment:f,renderCoordsHelper:v}=o,S=f.eval(.5,Z.WM.get()),P=v.worldUpAtPosition(S,Z.WM.get()),x=v.worldBasisAtPosition(S,Ne.R.Y,Z.WM.get());switch(d){case B.n.Horizontal:(0,w.c)(l,P);break;case B.n.Vertical:(0,w.e)(p,P)<(0,w.e)(u,P)?(0,w.y)(l,u,p):(0,w.y)(l,p,u),(0,w.f)(l,l,P),(0,w.f)(l,l,P);break;case B.n.Direct:{const L=(0,g.Pt)(o.orientation,0);if(sn({elevationAlignedStartPoint:c,elevationAlignedEndPoint:h}))(0,Q.d)(Wt,-(0,F.Vl)(L),P),(0,w.m)(l,x,Wt);else{const z=(0,w.y)(Z.WM.get(),u,p),V=(0,w.f)(Z.WM.get(),z,P);(0,w.f)(V,V,z),(0,Q.d)(Wt,(0,F.Vl)(L),z),(0,w.m)(l,V,Wt)}break}}return(0,w.F)(l,R.Z)?(0,w.c)(l,x):(0,w.n)(l,l)}const Wt=(0,he.c)();function sn({elevationAlignedStartPoint:l,elevationAlignedEndPoint:o}){return(0,g.pC)(l)&&(0,g.pC)(o)&&l.x===o.x&&l.y===o.y}function En(l,o){const{offsetAxis:d,offset:c,relativeToSegment:{startRenderSpace:h,endRenderSpace:p},relativeToSegment:u,renderCoordsHelper:f}=o,v=c/f.unitInMeters,[S,P]=function Ci(l,o,d,c=0){const h=(0,w.e)(o,d),p=(0,w.e)(l,d),u=Math.abs(h-p)+c;return h>p?[u,c]:[c,u]}(h,p,d,v);return(0,w.z)(l.startRenderSpace,u.startRenderSpace,d,S),(0,w.z)(l.endRenderSpace,u.endRenderSpace,d,P),l}function Ft(l,o,d){const c=o.directSegment.eval(.5,Z.WM.get());return d.worldUpAtPosition(c,l)}function on(l,o){const{startRenderSpace:d,endRenderSpace:c}=o.directSegment;return(0,w.y)(l,c,d)}function rn(l,o,d={invert:!1}){const{startRenderSpace:c,endRenderSpace:h}=o.dimensionSegment;return d.invert?(0,w.y)(l,c,h):(0,w.y)(l,h,c)}function an(l,o){const d=l.directSegment.eval(.5,Z.WM.get());return o.headingAtPosition(d,l.primaryOffsetAxis)}const Ei=(0,R.c)();function Mn(l){const{elevationAlignedStartPoint:o,elevationAlignedEndPoint:d}=l;if((0,g.Wi)(o)||(0,g.Wi)(d))return!1;const c=function _(l,o){const{spatialReference:d}=l;return(0,Re.fS)(d,o.spatialReference)?(j[0]=l.x,j[1]=l.y,j[2]=l.hasZ?l.z:0,K[0]=o.x,K[1]=o.y,K[2]=o.hasZ?o.z:0,re(j,K,d)):null}(o,d);return(0,g.pC)(c)&&(0,k.nn)(c,"meters").value>xn}const xn=1e5;function Et(l){return(0,g.pC)(l.geometry)}let tt=class extends Y.Z{constructor(l){super(l),this._handles=new ge.Z}initialize(){const{computations:l}=this.analysisViewData;for(const o of l)this._addComputation(o);this.addHandles(l.on("change",({added:o,removed:d})=>{for(const c of d)this._removeComputation(c);for(const c of o)this._addComputation(c)}))}destroy(){this._handles=(0,g.SC)(this._handles)}get analysis(){return this.analysisViewData.analysis}get _defaultUnit(){return(0,Ee.RG)(this.view)}_addComputation(l){this._handles.has(l)||this._handles.add((0,M.YP)(()=>Vt(l),o=>{const{measureType:d}=o;if(Mn(o)&&d!==B.n.Direct){const h=Math.round((0,Ee.En)(xn,"meters","kilometers"));return W.Z.getLogger(this.declaredClass).warnOnce(`A ${d} dimension in the analysis (id: '${this.analysis.id}') will not display, because only direct dimensions can measure lengths greater than ${h} km. Update the measureType of the affected dimension to "direct" to display it.`),void(l.geometry=null)}const c=It(o,this.view.renderCoordsHelper,l.geometry);l.geometry=c,l.result.length=function gi(l,o,d){if((0,g.Wi)(l))return null;const p=re(l.dimensionSegment.startRenderSpace,l.dimensionSegment.endRenderSpace,l.spatialReference);if((0,g.Wi)(p))return null;const u=o===B.n.Vertical?(0,Ee.ov)(p.value,p.unit,d):(0,Ee.iS)(p.value,p.unit,d);return(0,k.nn)(p,u)}(c,d,this._defaultUnit)},M.tX),l)}_removeComputation(l){this._handles.remove(l)}};(0,y._)([(0,C.Cb)({constructOnly:!0})],tt.prototype,"analysisViewData",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0})],tt.prototype,"view",void 0),(0,y._)([(0,C.Cb)()],tt.prototype,"analysis",null),(0,y._)([(0,C.Cb)()],tt.prototype,"_defaultUnit",null),tt=(0,y._)([(0,ee.j)("esri.views.3d.analysis.Dimension.support.DimensionController")],tt);var Mi=m(84244),Ve=m(54024),ae=m(91558),ln=(m(29132),m(23719)),Ce=m(23841),Ye=m(90014);const wn={main:new ae.Z([255,127,0])};class xi{constructor(){this.color=wn.main,this.opacity=.5,this.radius=5}}class wi{constructor(){this.color=new ae.Z([127,127,127]),this.opacity=.5,this.radius=5}}class Oi{constructor(){this.lineSizeFraction=.8}}class Ti{constructor(){this.color=wn.main,this.opacity=.5,this.linePaddingPx=4,this.focusedLinePaddingPx=6,this.lengthFraction=.5,this.minLengthMeters=.1}}class Li{constructor(){this.calloutOffsetPx=18,this.calloutOpacity=.5,this.calloutWidth=2,this.discScale=.3,this.focusMultiplier=2}}class Di{constructor(){this.lineSizeFraction=.25}}class Ri{constructor(){this.marginPx=20,this.minScreenLengthFontSizeFactor=5}}class bi{constructor(){this.color=new ae.Z([255,127,0,.5])}}const te=new class Ai{constructor(){this.pointManipulators=new xi,this.offsetManipulator=new Ti,this.orientationManipulator=new Li,this.markers=new Oi,this.labels=new Ri,this.offsetLine=new Di,this.constraint=new bi,this.constraintThresholdPx=10,this.initialOffsetPx=50,this.orientationSnapThresholdDegrees=5,this.disabledPointIndicator=new wi,this.smallScreenLengthLineSizeFactor=2,this.pointerMoveTimeoutMs=2500}};var On=m(45403),Be=m(19142),ct=m(8859),Tn=m(81805),nt=m(57521),Ie=m(30260),ht=m(33786),Mt=m(72642);class zi{constructor(o){this.start=o.start,this.end=o.end,this.offset=o.offset,this.heading=o.heading,this.rotation=o.rotation,this.direct=o.direct,this.horizontal=o.horizontal,this.vertical=o.vertical}manipulatorName(o){return Object.keys(this).find(d=>this.hasOwnProperty(d)&&o===this[d])}values(){return[this.start,this.end,this.offset,this.heading,this.rotation,this.direct,this.horizontal,this.vertical]}forEachMeasureTypeManipulator(o){for(const d of B.V)o(this.manipulatorForMeasureType(d),d)}manipulatorForMeasureType(o){switch(o){case B.n.Direct:return this.direct;case B.n.Horizontal:return this.horizontal;case B.n.Vertical:return this.vertical}}}function Ln(l,{lineSizePt:o,material:d}){const{calloutOffsetPx:c,calloutOpacity:h,calloutWidth:p,discScale:u,focusMultiplier:f}=te.orientationManipulator;return{calloutLength:.25*Tn._Z*te.markers.lineSizeFraction*(0,Ce.F2)(o)+c,calloutOpacity:h,calloutWidth:p,customStateMask:Xe,discScale:u,focusMultiplier:f,material:d,metadata:l}}function Dn(l,o){return(0,Be.Ju)(l,Ln(o.metadata,o))}function Rn(l,o){(0,Be.Bz)(l,Ln(l.metadata,o))}function bn(l){const{cancel:o,computation:d,settingHeading:c,steps:h,view:p}=l;if(!Et(d))return;const{renderCoordsHelper:u}=p,{dimension:f,geometry:v}=d,S=(0,R.c)(),P=Vn((0,R.c)(),v,v.directSegment,u),x=In(Z.WM.get(),{forHeading:c,geometry:v,renderCoordsHelper:u}),L=(0,Ye.Yq)(P,x,(0,Ye.Ue)()),z=(0,g.Pt)(f.orientation,c?()=>an(v,p.renderCoordsHelper):0);h.next((0,ct._N)(p,L)).next(V=>{"start"===V.action&&(0,w.c)(S,V.renderStart);const U=(0,Ye.mJ)(L),X=(0,Be.Gd)(S,V.renderEnd,P,U);let fe=z-(0,F.BV)(X);c||(fe=function Gi(l){const o=ln.BV.normalize(l)%90;return o{"start"===x.action&&(S=(0,Ye.jH)(u,x.renderStart));const L=((0,Ye.jH)(u,x.renderEnd)-S)*l.renderCoordsHelper.unitInMeters;o.offset=f+L,v=x}),x=>(P.execute(x),v)}function zn(l,o){const{directSegment:d}=l,{renderCoordsHelper:c}=o,h=Ft(Z.WM.get(),l,c),p=on(Z.WM.get(),l),u=(0,w.f)(Z.WM.get(),p,h),{viewForward:f}=o.state.camera;(0,w.e)(u,f)>0&&(0,w.g)(u,u,-1);const v=d.eval(.5,Z.WM.get());return c.headingAtPosition(v,u)}function Hn(l,o,d,{forHeading:c}){const{dimension:h,geometry:p}=o,{primaryOffsetAxis:u}=p,f=(0,w.g)(ki,u,h.offset>=0?1:-1),v=In(Ki,{forHeading:c,geometry:p,renderCoordsHelper:d});(0,w.f)(v,v,f);const S=(0,Be.Aq)(f,v,R.Z,Ut);l.modelTransform=S,l.renderLocation=Vn(xt,p,p.dimensionSegment,d)}const ki=(0,R.c)(),Ki=(0,R.c)();function Vn(l,o,d,c){const{startRenderSpace:h,endRenderSpace:p}=d,u=function Ji(l,o){const d=on($i,l),c=Ft(qi,l,o);return(0,w.e)(d,c)>0}(o,c)?h:p;return(0,w.c)(l,u)}function In(l,{forHeading:o,geometry:d,renderCoordsHelper:c}){return o?Ft(l,d,c):rn(l,d,{invert:!0})}const $i=(0,R.c)(),qi=(0,R.c)();function dn(l){return(0,Ce.F2)(l)+te.offsetManipulator.focusedLinePaddingPx}const Xe=ht.jg.Custom1,xt=(0,R.c)(),cn=(0,R.c)(),Ut=(0,he.c)(),Zn=new ce.y;var Ae,ts=m(69186),hn=m(80542),jt=m(58817),it=m(10699);function Gt(l,o){if(Mn(l))return Ae.Direct;const{geometry:d}=l;if((0,g.Wi)(d)||(0,w.k)(d.directSegment.startRenderSpace,d.directSegment.endRenderSpace))return null;const{constraintThresholdPx:c}=te,{camera:h}=o.state,p=Ft(Z.WM.get(),d,o.renderCoordsHelper),u=on(Z.WM.get(),d),f=(0,w.g)(Z.WM.get(),p,(0,w.e)(u,p)),v=(0,w.b)(Z.WM.get(),u,f),S=(0,w.p)(v),P=(0,w.p)(f),{startRenderSpace:x,endRenderSpace:L}=d.directSegment,z=Math.max(h.computeRenderPixelSizeAt(x)*c,h.computeRenderPixelSizeAt(L)*c)**2;return Sthis.view.state.camera,()=>{this._updateGeometry()}));const d=new os.W({view:this.view,attached:this._laserlineEnabled});this._externalResources={material:o,laserline:d}}destroyExternalResources(){(0,g.pC)(this._externalResources)&&this._externalResources.laserline.destroy(),this._externalResources=null,this._handles.removeAll()}forEachExternalMaterial(o){(0,g.pC)(this._externalResources)&&o(this._externalResources.material)}createGeometries(o){const d=[(0,R.c)(),(0,R.c)()],c=this.extensionType===we.FADED;c&&d.push((0,R.c)(),(0,R.c)());const h=c?new Float32Array([1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0]):null,p=(0,nt.rh)(d,null,h);o.addGeometry(p,(0,g.Wg)(this._externalResources).material),this._updateVertices(o)}updateVisibility(o){super.updateVisibility(o),(0,g.pC)(this._externalResources)&&(this._externalResources.laserline.visible=o)}setStartEndFromWorldDownAtLocation(o){this._isWorldDown=!0,(0,w.c)(this._start,o),this.view.renderCoordsHelper.worldUpAtPosition(o,this._end),(0,w.b)(this._end,o,this._end),(0,Yt.zk)(this._start,this._end,this._ray),this._updateGeometry()}get start(){return this._start}set start(o){this._isWorldDown=!1,(0,w.k)(this._start,o)||((0,w.c)(this._start,o),(0,Yt.zk)(this._start,this._end,this._ray),this._updateGeometry())}get end(){return this._end}set end(o){this._isWorldDown=!1,(0,w.k)(this._end,o)||((0,w.c)(this._end,o),(0,Yt.zk)(this._start,this._end,this._ray),this._updateGeometry())}get width(){return this._width}set width(o){o!==this._width&&(this._width=o,this._updateMaterial())}get color(){return this._color}set color(o){(0,Ze.g)(o,this._color)||((0,Ze.c)(this._color,o),this._updateMaterial())}get polygonOffset(){return this._polygonOffset}set polygonOffset(o){o!==this._polygonOffset&&(this._polygonOffset=o,this._updateMaterial())}get writeDepthEnabled(){return this._writeDepthEnabled}set writeDepthEnabled(o){this._writeDepthEnabled!==o&&(this._writeDepthEnabled=o,this._updateMaterial())}get innerWidth(){return this._innerWidth}set innerWidth(o){o!==this._innerWidth&&(this._innerWidth=o,this._updateMaterial())}get innerColor(){return this._innerColor}set innerColor(o){(0,Ze.g)(o,this._innerColor)||((0,Ze.c)(this._innerColor,o),this._updateMaterial())}get stipplePattern(){return this._stipplePattern}set stipplePattern(o){const d=(0,g.pC)(o)!==(0,g.pC)(this._stipplePattern);this._stipplePattern=o,d?this.recreate():this._updateMaterial()}get stippleOffColor(){return this._stippleOffColor}set stippleOffColor(o){((0,g.Wi)(o)||(0,g.Wi)(this._stippleOffColor)||!(0,Ze.g)(o,this._stippleOffColor))&&(this._stippleOffColor=(0,g.pC)(o)?(0,pt.a)(o):null,this._updateMaterial())}get stipplePreferContinuous(){return this._stipplePreferContinuous}set stipplePreferContinuous(o){o!==this._stipplePreferContinuous&&(this._stipplePreferContinuous=o,this._updateMaterial())}get falloff(){return this._falloff}set falloff(o){o!==this._falloff&&(this._falloff=o,this._updateMaterial())}get extensionType(){return this._extensionType}set extensionType(o){o!==this._extensionType&&(this._extensionType=o,this._updateGeometry())}get _laserlineAttached(){return this._laserlineEnabled&&(0,g.pC)(this._laserlineStyle)}get laserlineStyle(){return this._laserlineStyle}set laserlineStyle(o){this._laserlineStyle=o,(0,g.pC)(this._externalResources)&&(this._externalResources.laserline.attached=this._laserlineAttached,(0,g.pC)(o)&&(this._externalResources.laserline.style=o))}get laserlineEnabled(){return this._laserlineEnabled}set laserlineEnabled(o){this._laserlineEnabled!==o&&(this._laserlineEnabled=o,(0,g.pC)(this._externalResources)&&(this._externalResources.laserline.attached=this._laserlineAttached))}get renderOccluded(){return this._renderOccluded}set renderOccluded(o){o!==this._renderOccluded&&(this._renderOccluded=o,this._updateMaterial())}get fadedExtensions(){return this._fadedExtensions}set fadedExtensions(o){this._fadedExtensions=(0,g.Pt)(o,jn),this.recreateGeometry()}_updateMaterial(){(0,g.Wi)(this._externalResources)||this._externalResources.material.setParameters(this.materialParameters)}get materialParameters(){return{width:this._width,color:this._color,stippleOffColor:this._stippleOffColor,stipplePattern:this._stipplePattern,stipplePreferContinuous:this._stipplePreferContinuous,innerWidth:this._innerWidth,innerColor:this._innerColor,falloff:this._falloff,hasPolygonOffset:this._polygonOffset,renderOccluded:this._renderOccluded,writeDepth:this._writeDepthEnabled}}_updateGeometry(){(0,g.pC)(this.object)&&this._updateVertices(this.object)}_updateVertices(o){const d=this._extensionType===we.FADED?this._updateLineSegmentFinite(Fn):this._updateLineSegmentInfinite(this._extensionType,Fn);this._updateVertexAttributes(o,d),(0,g.pC)(this._externalResources)&&(this._externalResources.laserline.intersectsLine=d)}_updateLineSegmentFinite(o){return(0,Ue.zk)(this._start,this._end,o)}_updateLineSegmentInfinite(o,d){const c=this.view.state.camera;switch((0,Nt.iL)(this._ray,Je),o){case we.LINE:Je.c0=-Number.MAX_VALUE;break;case we.RAY:case we.GROUND_RAY:{const u=this._ray.origin,f=(0,g.Pt)(this.view.elevationProvider.getElevation(u[0],u[1],u[2],this.view.renderCoordsHelper.spatialReference,"ground"),0),v=this.view.renderCoordsHelper.getAltitude(u);this._isWorldDown&&vthis.view.state.camera,()=>{this._updateGeometry()})),this._externalResources={material:o}}destroyExternalResources(){this._handles.removeAll(),this._externalResources=null}createGeometries(o){const d=(0,nt.rh)([(0,R.c)(),(0,R.c)()]),c=(0,nt.rh)([(0,R.c)(),(0,R.c)()]),h=(0,g.Wg)(this._externalResources).material;o.addGeometry(d,h),o.addGeometry(c,h),this._updateVertices(o)}forEachExternalMaterial(o){(0,g.pC)(this._externalResources)&&o(this._externalResources.material)}_updateMaterial(){(0,g.Wi)(this._externalResources)||this._externalResources.material.setParameters(this.materialParameters)}get materialParameters(){return{width:this._width,color:this._color,renderOccluded:this._renderOccluded}}_updateGeometry(){const o=this.object;(0,g.Wi)(o)||this._updateVertices(o)}_updateVertices(o){const d=this.view.state.camera;d.projectToScreen(this.location,Xt),(0,w.a)(je,this.location,this.direction),d.projectToScreen(je,ut),(0,le.f)(ut,(0,le.a)(ut,ut,Xt)),this._updateVertexAttributes(d,o,0,Xt,ut,1),this._updateVertexAttributes(d,o,1,Xt,ut,-1)}_updateVertexAttributes(o,d,c,h,p,u){const f=d.geometryRecords[c],v=f.geometry.getMutableAttribute(Wn.T.POSITION).data,S=(0,le.b)(Gn,(0,le.s)(Gn,p[1]*u,p[0]*-u),this.offset+this.width/2),P=(0,le.j)(kt,(0,le.j)(kt,(0,le.j)(kt,h,(0,le.b)(kt,p,this.length/2)),S),S),x=(0,le.j)(Nn,P,(0,le.b)(Nn,p,-this.length));o.unprojectFromScreen(P,je),v[0]=je[0],v[1]=je[1],v[2]=je[2],o.unprojectFromScreen(x,je),v[3]=je[0],v[4]=je[1],v[5]=je[2],d.geometryVertexAttrsUpdated(f)}}const je=(0,R.c)(),Xt=(0,Ce.s1)(),ut=(0,Ce.s1)(),Gn=(0,Ce.s1)(),kt=(0,Ce.s1)(),Nn=(0,Ce.s1)();var Yn=m(21232),ds=m(77603),ie=m(36460),Pe=m(26352),I=m(44725),pn=m(5286);class Kt extends pn.r{constructor(o,d,c=Pe.B.ALL){super(d,c),this.intersectionPoint=o}equals(o){return o instanceof Kt&&(0,I.Xv)(this.intersectionPoint,o.intersectionPoint)}}var ke=m(62160);class Qt extends pn.r{constructor(o,d,c,h=Pe.B.ALL){super(c,h),this.lineStart=o,this.lineEnd=d}equals(o){return o instanceof Qt&&(0,I.Xv)(this.lineStart,o.lineStart)&&(0,I.Xv)(this.lineEnd,o.lineEnd)}}var cs=m(19038);class wt extends pn.r{constructor(o,d,c,h,p=Pe.B.ALL){super(h,p),this.previousVertex=o,this.centerVertex=d,this.nextVertex=c}equals(o){return o instanceof wt&&(0,I.Xv)(this.previousVertex,o.previousVertex)&&(0,I.Xv)(this.centerVertex,o.centerVertex)&&(0,I.Xv)(this.nextVertex,o.nextVertex)}}class hs{draw(o,d){const c=this._getUniqueHints(o),h=[];for(const p of c)p instanceof Kt&&h.push(this.visualizeIntersectionPoint(p,d)),p instanceof ke.w&&h.push(this.visualizeLine(p,d)),p instanceof Qt&&h.push(this.visualizeParallelSign(p,d)),p instanceof wt&&h.push(this.visualizeRightAngleQuad(p,d)),p instanceof cs.n&&h.push(this.visualizePoint(p,d));return(0,Ve.AL)(h)}_getUniqueHints(o){const d=[];for(const c of o){let h=!0;for(const p of d)if(c.equals(p)){h=!1;break}h&&d.push(c)}return d}}var de=m(25858);class ps extends hs{visualizeIntersectionPoint(o,d){const{coordinateHelper:c,view:h}=d;return(0,Ve.ed)(new Yn.L({view:h,primitive:"circle",geometry:c.vectorToPoint(o.intersectionPoint),elevationInfo:(0,g.Pt)(o.elevationInfo,d.elevationInfo),size:20,outlineSize:2,color:[0,0,0,0],outlineColor:ae.Z.toUnitRGBA(ie.c.orange),pixelSnappingEnabled:!1}))}visualizePoint(o,d){const{view:c,coordinateHelper:h}=d,p=this._alignPoint(o.point,o.domain,d);return(0,Ve.ed)(new Yn.L({view:c,primitive:"circle",geometry:h.vectorToPoint(p),elevationInfo:this._hintElevationInfo(o,d),size:20,outlineSize:2,color:[0,0,0,0],outlineColor:ae.Z.toUnitRGBA(ie.c.orange),pixelSnappingEnabled:!1}))}visualizeLine(o,d){const{view:c,coordinateHelper:h}=d,p=this._alignPoint(o.lineStart,o.domain,d),u=this._alignPoint(o.lineEnd,o.domain,d);return(0,Ve.ed)(this._createLineSegmentHintFromMap(o.type,p,u,h,this._hintElevationInfo(o,d),c,o.fadeLeft,o.fadeRight))}visualizeParallelSign(o,d){const{view:c,coordinateHelper:h}=d,p=this._hintElevationInfo(o,d),u=this._alignPoint(o.lineStart,o.domain,d),f=this._alignPoint(o.lineEnd,o.domain,d),v=(0,de.$r)(u,h,p,c),S=(0,de.$r)(f,h,p,c),P=(0,w.h)(S,v,S,.5),x=new ls({view:c,attached:!1,offset:ie.c.parallelLineHintOffset,length:ie.c.parallelLineHintLength,width:ie.c.parallelLineHintWidth,color:ae.Z.toUnitRGBA(ie.c.orange),location:P,renderOccluded:ne.yD.Opaque});return x.setDirectionFromPoints(v,P),x.attached=!0,(0,Ve.ed)(x)}visualizeRightAngleQuad(o,d){const{view:c,coordinateHelper:h}=d,p=this._hintElevationInfo(o,d),u=this._alignPoint(o.previousVertex,o.domain,d),f=this._alignPoint(o.centerVertex,o.domain,d),v=this._alignPoint(o.nextVertex,o.domain,d);return(0,Ve.ed)(new ds.R({view:c,attached:!0,color:ae.Z.toUnitRGBA(ie.c.orange),renderOccluded:ne.yD.Transparent,outlineRenderOccluded:ne.yD.Opaque,outlineColor:ae.Z.toUnitRGBA(ie.c.orange),outlineSize:ie.c.rightAngleHintOutlineSize,size:ie.c.rightAngleHintSize,geometry:{previous:(0,de.$r)(u,h,p,c),center:(0,de.$r)(f,h,p,c),next:(0,de.$r)(v,h,p,c)}}))}_createLineSegmentHintFromMap(o,d,c,h,p,u,f=!0,v=!0){const S=(0,R.c)(),P=(0,R.c)();return(0,de.By)(d,c,h,p,u,S,P),this._createLineSegmentHint(o,u,S,P,f,v)}_createLineSegmentHint(o,d,c,h,p=!0,u=!0){const f=new rs({view:d,extensionType:we.FADED,start:c,end:h,color:ae.Z.toUnitRGBA(ie.c.orange),renderOccluded:ne.yD.Opaque});switch(o){case I.ze.TARGET:f.width=ie.c.lineHintWidthTarget,f.fadedExtensions={start:0,end:ie.c.lineHintFadedExtensions};break;case I.ze.REFERENCE_EXTENSION:f.width=ie.c.lineHintWidthReference,f.fadedExtensions={start:0,end:0};break;case I.ze.REFERENCE:f.width=ie.c.lineHintWidthReference,f.fadedExtensions={start:p?ie.c.lineHintFadedExtensions:0,end:u?ie.c.lineHintFadedExtensions:0}}return f.attached=!0,f}_alignPoint(o,d,c){const h=this._getSelfSnappingZ(d,c);if((0,g.Wi)(h))return o;const p=c.coordinateHelper,u=p.vectorToPoint(o,us);return u.z=h,p.pointToVector(u)}_hintElevationInfo(o,d){return(0,g.pC)(this._getSelfSnappingZ(o.domain,d))?(0,g.Wg)(d.selfSnappingZ).elevationInfo:(0,g.Pt)(o.elevationInfo,d.elevationInfo)}_getSelfSnappingZ(o,{selfSnappingZ:d}){return o===Pe.B.SELF&&(0,g.pC)(d)?d.value:null}}const us=new Mt.Z;var rt=m(87469),Bn=m(78260),gt=m(4794),at=m(54889);const G={main:new ae.Z([255,127,0]),selected:new ae.Z([255,255,255]),staged:new ae.Z([12,207,255]),outline:new ae.Z([0,0,0,.5]),selectedOutline:new ae.Z([255,255,255])};function Ot(l,o){const d=l.clone();return d.a*=o,d}function gs(l,o){const d=l.clone(),c=(0,Bn._Y)(d);c.s*=o;const h=(0,Bn.xr)(c);return d.r=h.r,d.g=h.g,d.b=h.b,d}function ze(l,o){if(o)for(const d in o)l[d]=o[d]}class fs{constructor(o){this.color=G.main,this.height=90,this.coneHeight=40,this.coneWidth=23,this.width=3,this.renderOccluded=ne.yD.Opaque,ze(this,o)}}class un{constructor(o){this.size=11,this.outlineSize=1,this.collisionPadding=9,this.color=G.main,this.outlineColor=G.outline,this.renderOccluded=ne.yD.Opaque,this.hoverOutlineColor=G.selectedOutline,ze(this,o)}apply(o,d){const c=this[o];d.setParameters({color:$e(c),transparent:"color"!==o||c.a<1,renderOccluded:this.renderOccluded})}}class ms{constructor(o){this.size=40,this.height=.2,this.offset=.25,this.collisionPadding=2,this.color=Ot(G.main,.5),this.hoverColor=G.main,this.renderOccluded=ne.yD.Transparent,this.minSquaredEdgeLength=900,ze(this,o)}apply(o,d){const c=this[o];d.setParameters({color:$e(c),transparent:c.a<1,renderOccluded:this.renderOccluded})}}class vs{constructor(o){this.vertex=new un({color:G.main,outlineColor:G.outline}),this.edge=new un({color:gs(Ot(G.main,2/3),.5),outlineColor:Ot(G.outline,.5),size:8,collisionPadding:8}),this.selected=new un({color:G.selected,outlineColor:G.outline}),this.edgeOffset=new ms,ze(this,o)}}class gn{constructor(o){this.color=G.selected,this.width=1.5,this.stipplePattern=(0,at.z5)(5),this.stippleOffColor=G.outline,this.falloff=0,this.innerWidth=1.5,this.innerColor=G.selected,this.renderOccluded=ne.yD.OccludeAndTransparent,ze(this,o)}apply(o){o.color=$e(this.color),o.width=this.width,o.stipplePattern=this.stipplePattern,o.stippleOffColor=$e(this.stippleOffColor),o.falloff=this.falloff,o.innerWidth=this.innerWidth,o.innerColor=$e(this.innerColor),o.renderOccluded=this.renderOccluded}}class _s{constructor(o){this.color=G.selected,this.size=4,this.outlineSize=1,this.outlineColor=G.outline,this.shape="square",ze(this,o)}apply(o){o.color=$e(this.color),o.size=this.size,o.outlineSize=this.outlineSize,o.outlineColor=$e(this.outlineColor),o.primitive=this.shape}}class Jt{constructor(o){this.innerColor=G.selected,this.innerWidth=1,this.glowColor=G.main,this.glowWidth=8,this.glowFalloff=8,this.globalAlpha=.3,this.globalAlphaContrastBoost=1.5,this.radius=3,this.heightFillColor=G.main,ze(this,o)}apply(o,d=1){const c={glowColor:ae.Z.toUnitRGB(this.glowColor),glowFalloff:this.glowFalloff,glowWidth:this.glowWidth,innerColor:ae.Z.toUnitRGB(this.innerColor),innerWidth:this.innerWidth,globalAlpha:this.globalAlpha*d,globalAlphaContrastBoost:this.globalAlphaContrastBoost,intersectsLineRadius:this.radius};"style"in o?o.style=c:o.laserlineStyle=c}}class ys{constructor(o){this.outline=new gn({color:G.outline,renderOccluded:ne.yD.OccludeAndTransparentStencil,stippleOffColor:G.selected,stipplePattern:(0,at.z5)(5),width:1.5,innerWidth:0}),this.staged=new gn({color:G.selected,renderOccluded:ne.yD.OccludeAndTransparentStencil,innerColor:G.staged,stippleOffColor:G.outline,stipplePattern:(0,at.z5)(5),width:1.5}),this.shadowStyle=new Jt({globalAlpha:.3,glowColor:G.main,glowFalloff:8,glowWidth:8,innerColor:G.selected,innerWidth:1}),ze(this,o)}}class Ss{constructor(o){this.outline=new _s({color:G.selected,outlineColor:G.outline,outlineSize:1,shape:"circle",size:4}),this.shadowStyle=new Jt({globalAlpha:.3,glowColor:G.main,glowFalloff:1.5,glowWidth:6,innerColor:G.selected,innerWidth:1,radius:2}),ze(this,o)}}class Cs extends gn{constructor(o){super(),this.extensionType=we.GROUND_RAY,ze(this,o)}}class Ps{constructor(o){this.lineGraphics=new ys,this.pointGraphics=new Ss,this.heightPlane=new Jt({globalAlpha:.3,glowColor:G.main,glowFalloff:8,glowWidth:8,innerColor:G.selected,innerWidth:1}),this.heightBox=new Jt({globalAlpha:.3,glowColor:G.main,glowFalloff:8,glowWidth:8,innerColor:G.selected,innerWidth:0,heightFillColor:G.main}),this.zVerticalLine=new Cs({color:Ot(G.main,.5),falloff:2,innerColor:Ot(G.selected,0),renderOccluded:ne.yD.OccludeAndTransparent,stipplePattern:null,width:5,extensionType:we.GROUND_RAY}),this.laserlineAlphaMultiplier=1.5,this.heightPlaneAngleCutoff=20,ze(this,o)}}function $e(l){return(0,gt.b)(ae.Z.toUnitRGBA(l))}const mt=new class Es{constructor(o){this.visualElements=new Ps,this.reshapeManipulators=new vs,this.zManipulator=new fs,ze(this,o)}colorToVec4(o){return $e(o)}};var Ms=m(79112),xs=m(81468),Xn=m(42743),kn=m(81040);class Os extends Bt._{constructor(o){super(o),this.view=null,this._renderOccluded=ne.yD.OccludeAndTransparent,this._vertices=null,this._spatialReference=null,this._color=mt.colorToVec4(mt.reshapeManipulators.vertex.color),this._size=mt.reshapeManipulators.vertex.size,this._outlineColor=mt.colorToVec4(mt.reshapeManipulators.vertex.outlineColor),this._outlineSize=mt.reshapeManipulators.vertex.outlineSize,this._elevationInfo=null,this.applyProps(o)}get renderOccluded(){return this._renderOccluded}set renderOccluded(o){o!==this._renderOccluded&&(this._renderOccluded=o,this._updateMaterial(),this._updateOutlineMaterial())}get vertices(){return this._vertices}set vertices(o){this._vertices=o,this.recreateGeometry()}get spatialReference(){return this._spatialReference}set spatialReference(o){this._spatialReference=o,this.recreateGeometry()}get color(){return this._color}set color(o){(0,Ze.g)(o,this._color)||((0,Ze.c)(this._color,o),this._updateMaterial())}get size(){return this._size}set size(o){o!==this._size&&(this._size=o,this._updateMaterial())}get outlineColor(){return this._outlineColor}set outlineColor(o){(0,Ze.g)(o,this._outlineColor)||((0,Ze.c)(this._outlineColor,o),this._updateOutlineMaterial())}get outlineSize(){return this._outlineSize}set outlineSize(o){o!==this._outlineSize&&(this._outlineSize=o,this._updateOutlineMaterial())}get elevationInfo(){return this._elevationInfo}set elevationInfo(o){this._elevationInfo=o,this.recreateGeometry()}get _vertexMaterialParameters(){return{color:this._color,transparent:this._color[3]<1,screenSizeScale:this.size,renderOccluded:this._renderOccluded}}get _vertexOutlineMaterialParameters(){return{color:this._outlineColor,transparent:this._outlineColor[3]<1,screenSizeScale:this.size+2*this.outlineSize,renderOccluded:this._renderOccluded}}_updateMaterial(){this.attached&&this._vertexMaterial.setParameters(this._vertexMaterialParameters)}_updateOutlineMaterial(){this.attached&&this._vertexOutlineMaterial.setParameters(this._vertexOutlineMaterialParameters)}_createRenderGeometries(){const o=this.vertices;if((0,g.Wi)(o)||0===o.length)return[];const h=function ws(l,o,d,c,h){const p=new Float64Array(3*l.length),u=new Float64Array(p.length);l.forEach((S,P)=>{p[3*P+0]=S[0],p[3*P+1]=S[1],p[3*P+2]=S.length>2?S[2]:0});const f=(0,xs.rR)(p,o,0,u,0,p,0,p.length/3,d,c,h);return{numVertices:l.length,position:p,mapPosition:u,projectionSuccess:null!=f,sampledElevation:f}}(o,this.spatialReference,this.view.elevationProvider,this.view.renderCoordsHelper,Ms.o.fromElevationInfo(this.elevationInfo)),p=[],u=h.numVertices,f=h.position;for(let v=0;vl.updating)||this.updatingHandles.updating}get snappingSources(){const l=this._get("snappingSources")||new Map,o=new Map;if((0,g.pC)(this.options)&&(0,g.pC)(this.options.featureSources))for(const d of this.options.featureSources.items){const c=d.layer.uid,h=l.get(c);if(h){l.delete(c),o.set(c,h);continue}if(!d.layer.loaded){this.updatingHandles.addPromise(d.layer.load());continue}const p=this._createSourceInfo(d);(0,g.pC)(p)&&o.set(c,p)}for(const[,d]of l)d.destroy();return o}initialize(){this.updatingHandles.add(()=>this.snappingSources,()=>this.notifyChange("updating"),M.Z_),(0,g.pC)(this.view)&&this.handles.add([this.view.on("layerview-create",l=>this._updateLayerView(l.layer,l.layerView)),this.view.on("layerview-destroy",l=>this._updateLayerView(l.layer,null))])}_updateLayerView(l,o){for(const[,d]of this.snappingSources)d.snappingSource.layerSource.layer===l&&(d.layerView=o)}destroy(){this._set("options",null);for(const[,l]of this.snappingSources)l.destroy()}fetchCandidates(l,o,d,c){var h=this;return(0,A.Z)(function*(){if(!(o&h._domain)||(0,g.Wi)(h.options)||!h.options.effectiveFeatureEnabled)return[];const p=[],u=h._computeScreeenSizeDistanceParameters(l,d),f={distance:u,point:l,coordinateHelper:d.coordinateHelper,types:h._types};for(const[,{snappingSource:S,layerView:P}]of h.snappingSources)!S.layerSource.enabled||(0,g.pC)(P)&&P.suspended||p.push(S.fetchCandidates(f,c).then(x=>x.filter(L=>!h._candidateIsExcluded(S,L,d.excludeFeature))));const v=(yield(0,it.WW)(p)).flat();return h._addRightAngleCandidates(v,l,u,d),(0,it.k_)(c),(0,I.lQ)(l,v,d.coordinateHelper),v})()}_addRightAngleCandidates(l,o,d,c){const h=(0,g.pC)(c.vertexHandle)?c.vertexHandle.rightEdge?.rightVertex?.pos:(0,g.pC)(c.editGeometryOperations)&&"polygon"===c.editGeometryOperations.data.type?(0,g.Wg)(c.editGeometryOperations.data.components[0]?.getFirstVertex())?.pos:null,p=(0,g.pC)(c.vertexHandle)?c.vertexHandle.leftEdge?.leftVertex?.pos:(0,g.pC)(c.editGeometryOperations)?(0,g.Wg)(c.editGeometryOperations.data.components[0]?.getLastVertex())?.pos:null,{view:u}=this,f=(0,I.Z_)(h,u,c),v=(0,I.Z_)(p,u,c),S=l.length;for(let P=0;P{this.destroyed||this.notifyChange("snappingSources")})),null;const d=(0,g.pC)(this.view)?this.view.allLayerViews.find(c=>c.layer===l.layer):null;return new Zs(o.source,d)}_createFeatureSnappingSourceType(l){switch(l.layer.type){case"feature":case"geojson":case"csv":case"oriented-imagery":case"subtype-group":case"wfs":return this._createFeatureSnappingSourceFeatureLayer(l);case"graphics":return this._createFeatureSnappingSourceGraphicsLayer(l);case"map-notes":return this._createFeatureSnappingSourceMapNotesLayer(l);case"scene":case"building-scene":return this._createFeatureSnappingSourceSceneLayer(l)}return null}_createFeatureSnappingSourceSceneLayer(l){const{view:o}=this;if((0,g.Wi)(o)||"3d"!==o.type)return null;const d=this._getSourceModule("scene");return(0,g.pC)(d.module)?{source:new d.module.SceneLayerSnappingSource({layerSource:l,view:o})}:{loading:d.loader}}_createFeatureSnappingSourceFeatureLayer(l){switch(l.layer.source.type){case"feature-layer":case"oriented-imagery":{const o=this._getSourceModule("featureService");return(0,g.pC)(o.module)?{source:new o.module.FeatureServiceSnappingSource({spatialReference:this.spatialReference,view:this.view,layerSource:l})}:{loading:o.loader}}case"memory":case"csv":case"geojson":case"wfs":{if("mesh"===l.layer.geometryType)return null;const o=this._getSourceModule("featureCollection");return(0,g.pC)(o.module)?{source:new o.module.FeatureCollectionSnappingSource({layerSource:l,view:this.view})}:{loading:o.loader}}}return null}_createFeatureSnappingSourceGraphicsLayer(l){const o=this._getSourceModule("graphics");return(0,g.pC)(o.module)?{source:new o.module.GraphicsSnappingSource({getGraphicsLayers:()=>[l.layer],spatialReference:this.spatialReference,view:this.view,layerSource:l})}:{loading:o.loader}}_createFeatureSnappingSourceMapNotesLayer(l){const o=this._getSourceModule("notes");return(0,g.pC)(o.module)?{source:new o.module.GraphicsSnappingSource({getGraphicsLayers:()=>(0,g.pC)(l.layer.sublayers)?l.layer.sublayers.toArray():[],spatialReference:this.spatialReference,view:this.view,layerSource:l})}:{loading:o.loader}}_getSourceModule(l){const o=this._sourceModules[l];if((0,g.Wi)(o.loader)){const d=this._loadSourceModule(l).then(c=>{o.module=c});return o.loader=d,{module:o.module,loader:d}}return{module:o.module,loader:o.loader}}_loadSourceModule(l){const o=this.updatingHandles;switch(l){case"featureService":return o.addPromise(Promise.all([m.e(8592),m.e(8740)]).then(m.bind(m,78740)));case"featureCollection":return o.addPromise(Promise.all([m.e(8592),m.e(8176)]).then(m.bind(m,78176)));case"graphics":case"notes":return o.addPromise(Promise.all([m.e(3464),m.e(8592),m.e(6269)]).then(m.bind(m,66269)));case"scene":return o.addPromise(Promise.all([m.e(8592),m.e(7566)]).then(m.bind(m,57566)))}return null}};(0,y._)([(0,C.Cb)({constructOnly:!0})],Ke.prototype,"spatialReference",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0})],Ke.prototype,"view",void 0),(0,y._)([(0,C.Cb)()],Ke.prototype,"options",void 0),(0,y._)([(0,C.Cb)({readOnly:!0})],Ke.prototype,"updating",null),(0,y._)([(0,C.Cb)({readOnly:!0})],Ke.prototype,"snappingSources",null),Ke=(0,y._)([(0,ee.j)("esri.views.interactive.snapping.FeatureSnappingEngine")],Ke);class Zs{constructor(o,d){this.snappingSource=o,this.layerView=d,this.handles=new ge.Z;const c=this.snappingSource.layerSource.layer;"refresh"in c&&this.handles.add(c.on("refresh",()=>o.refresh())),this.handles.add([(0,M.YP)(()=>o.updating,h=>o.layerSource.updating=h,M.tX),(0,M.YP)(()=>o.availability,h=>o.layerSource.availability=h,M.tX)])}destroy(){this.snappingSource.destroy(),this.handles.destroy()}}function fn(l,o,d,c,h,p,{coordinateHelper:u}){const f=(0,w.c)(Fs,o);f[0]+=d,f[1]+=c,f[2]+=h;const v=(0,de.Rs)(f,u.spatialReference,q.jG,p);return(0,I.fG)(v,l)}const Ws=(0,R.c)(),ei=(0,R.c)(),Fs=(0,R.c)();var Us=m(61885);class $t{constructor(o,d){this.view=o,this.options=d,this.squaredShortLineThreshold=ie.c.shortLineThreshold*ie.c.shortLineThreshold}snap(o,d){return(0,g.pC)(d.vertexHandle)?"vertex"!==d.vertexHandle.type?[]:this.snapExistingVertex(o,d):this.snapNewVertex(o,d)}edgeExceedsShortLineThreshold(o,d){return this.exceedsShortLineThreshold(o.leftVertex.pos,o.rightVertex.pos,d)}exceedsShortLineThreshold(o,d,{elevationInfo:c,editGeometryOperations:h}){const p=h.data.coordinateHelper;return 0===this.squaredShortLineThreshold||(0,I.Bb)((0,de.a7)(d,p,c,this.view),(0,de.a7)(o,p,c,this.view))>this.squaredShortLineThreshold}squaredProximityThreshold(o){return"touch"===o?this._squaredTouchProximityThreshold:this._squaredMouseProximityTreshold}get _squaredMouseProximityTreshold(){return this.options.distance*this.options.distance}get _squaredTouchProximityThreshold(){const{distance:o,touchSensitivityMultiplier:d}=this.options,c=o*d;return c*c}}class js extends Tt.j{constructor({coordinateHelper:o,lineStart:d,lineEnd:c,targetPoint:h,elevationInfo:p}){super(o,h,new vt.jg(o,d,c),p,Pe.B.SELF),this._referenceLineHint=new ke.w(I.ze.REFERENCE_EXTENSION,d,c,p,this.domain)}get hints(){return[this._referenceLineHint,new ke.w(I.ze.TARGET,this._lineEndClosestToTarget(),this.targetPoint,this.elevationInfo,this.domain)]}_lineEndClosestToTarget(){return this.constraint.closestEndTo(this.targetPoint)}}var Gs=m(26362),Lt=m(396);class Ns extends $t{snapNewVertex(o,d){const c=d.editGeometryOperations.data.components[0],h=c.edges.length,p=[];if(h<1)return p;const f=(0,de.a7)(o,d.coordinateHelper,q.jG,this.view),{view:v}=this,S=c.edges[h-1];let P=S;do{if(this.edgeExceedsShortLineThreshold(P,d)){const x=(0,I._j)(P,v,d);this._processCandidateProposal(x.left,x.right,o,f,d,p)}P=P.leftVertex.leftEdge}while(P&&P!==S);return p}snapExistingVertex(o,d){const c=[],h=(0,g.Wg)(d.vertexHandle),p=h.component;if(p.edges.length<2)return c;const{view:u}=this,{coordinateHelper:f}=d,v=(0,de.a7)(o,f,q.jG,u),S=h.leftEdge,P=h.rightEdge;S&&P&&this.edgeExceedsShortLineThreshold(S,d)&&this.edgeExceedsShortLineThreshold(P,d)&&this._processCandidateProposal((0,I.Z_)(S.leftVertex.pos,u,d),(0,I.Z_)(P.rightVertex.pos,u,d),o,v,d,c);const x=p.edges[0];let L=x;do{if(L!==h.leftEdge&&L!==h.rightEdge&&this.edgeExceedsShortLineThreshold(L,d)){const z=(0,I._j)(L,u,d);this._processCandidateProposal(z.left,z.right,o,v,d,c)}L=L.rightVertex.rightEdge}while(L&&L!==x);return c}_processCandidateProposal(o,d,c,h,p,u){const{coordinateHelper:f,pointer:v}=p;f.toXYZ(o,ti),f.toXYZ(d,ni);const S=f.toXYZ(c,Bs),P=(0,Gs.ZE)(S,Ys),x=f.fromXYZ(P);(0,I.Bb)(h,(0,de.a7)(x,f,q.jG,this.view))new ke.w(I.ze.REFERENCE,d.edge.left,d.edge.right,o,this.domain,d.fadeLeft,d.fadeRight))]}addReferenceLine(o){const d={edge:o,fadeLeft:!0,fadeRight:!0},{coordinateHelper:c}=this;this._referenceLines.forEach(h=>{c.equals(o.right,h.edge.left)&&(h.fadeLeft=!1,d.fadeRight=!1),c.equals(o.right,h.edge.right)&&(h.fadeRight=!1,d.fadeRight=!1),c.equals(o.left,h.edge.right)&&(h.fadeRight=!1,d.fadeLeft=!1),c.equals(o.left,h.edge.left)&&(h.fadeLeft=!1,d.fadeLeft=!1)}),this._referenceLines.push(d)}}const ks=(0,R.c)(),Ks=(0,R.c)(),Qs=(0,R.c)();class Js extends $t{snapNewVertex(o,d){const c=d.editGeometryOperations.data.components[0],h=c.edges.length,p=c.vertices.length,u=[];if(h<2)return u;const{view:f}=this,v=(0,de.a7)(o,d.coordinateHelper,q.jG,f),S=(0,I.Z_)(c.vertices[p-1].pos,f,d),P=(0,I.Z_)(c.vertices[0].pos,f,d),x=c.edges[h-1];let L=x;do{if(this.edgeExceedsShortLineThreshold(L,d)){const z=(0,I._j)(L,f,d);this._checkEdgeForParalleLines(z,S,o,v,d,u),this._checkEdgeForParalleLines(z,P,o,v,d,u)}L=L.leftVertex.leftEdge}while(L&&L!==x);return u}snapExistingVertex(o,d){const c=[],h=(0,g.Wg)(d.vertexHandle),p=h.component;if(p.edges.length<3)return c;const{view:u}=this,f=(0,de.a7)(o,d.coordinateHelper,q.jG,u),v=h.leftEdge,S=h.rightEdge,P=p.vertices[0],x=(0,I.Z_)(P.pos,u,d),z=p.vertices[p.vertices.length-1],V=(0,I.Z_)(z.pos,u,d),U=p.edges[0];let X=U;do{if(X!==v&&X!==S&&this.edgeExceedsShortLineThreshold(X,d)){const fe=(0,I._j)(X,u,d);v&&this._checkEdgeForParalleLines(fe,(0,I.Z_)(v.leftVertex.pos,u,d),o,f,d,c),S&&this._checkEdgeForParalleLines(fe,(0,I.Z_)(S.rightVertex.pos,u,d),o,f,d,c),h===P?this._checkEdgeForParalleLines(fe,V,o,f,d,c):h===z&&this._checkEdgeForParalleLines(fe,x,o,f,d,c)}X=X.rightVertex.rightEdge}while(X&&X!==U);return c}_checkEdgeForParalleLines(o,d,c,h,p,u){const f=o.left,v=o.right;if((0,Lt.k0)(yt,d,f,v),(0,le.k)(yt,d){const{effectiveFeatureEnabled:l,effectiveSelfEnabled:o,touchSensitivityMultiplier:d,distance:c}=this.options;return{effectiveFeatureEnabled:l,effectiveSelfEnabled:o,touchSensitivityMultiplier:d,distance:c}},()=>{this.doneSnapping(),this.emit("changed")},M.Z_),(0,M.YP)(()=>this.options,l=>{for(const o of this._engines)o.options=l},M.Z_),(0,M.YP)(()=>({viewReady:this.view.ready,viewSpatialReference:this.view.spatialReference,snappingEnginesFactory:this.snappingEnginesFactory}),({viewReady:l,snappingEnginesFactory:o})=>this._recreateEngines(l,o),M.tX)])}destroy(){this._destroyEngines()}get updating(){return this._engines.some(l=>l.updating)}_recreateEngines(l,o){if(this._destroyEngines(),!l)return;const{view:d,options:c}=this;this._engines=o(d,c)}_destroyEngines(){for(const l of this._engines)l.destroy();this._engines=[]}get _squaredMouseProximityTreshold(){return this.options.distance*this.options.distance}get _squaredTouchProximityThreshold(){const{distance:l,touchSensitivityMultiplier:o}=this.options,d=l*o;return d*d}snap(l){var o=this;return(0,A.Z)(function*(){return function lo(l){return(0,g.pC)(l.scenePoint)}(l)?o._snapMultiPoint(l):o._snapSinglePoint(l)})()}update(l){const{point:o,context:d}=l;this._removeVisualization();const c=this._currentMainCandidate;if((0,g.Wi)(c))return o;const h=this._selectUpdateInput(l);if((0,g.Wi)(h))return o;const{coordinateHelper:{spatialReference:p}}=d,u=(0,me.iV)(this._convertPointElevation(h,d),p);if((0,g.Wi)(u))return o;const{view:f}=this,{coordinateHelper:v,elevationInfo:S,visualizer:P}=d,x=[],L=v.pointToVector(u),z=c.constraint.closestTo(L);if(!this._arePointsWithinScreenThreshold(L,z,d))return this._resetSnappingState(),o;c.targetPoint=z,x.push(...c.hints);for(const U of this._currentOtherActiveCandidates)U.targetPoint=z,x.push(...U.hints);(0,g.pC)(P)&&this.handles.add(P.draw(x,{coordinateHelper:v,elevationInfo:ii(d),view:f,selfSnappingZ:d.selfSnappingZ}),en);const V=v.vectorToDehydratedPoint(z);return this._convertPointElevation(V,d,q.jG,S)}doneSnapping(){this._removeVisualization(),this._resetSnappingState()}_selectUpdateInput({point:l,scenePoint:o}){switch(this._currentSnappedType){case Qe.MAIN:return l;case Qe.SCENE:return o}}_resetSnappingState(){this._currentMainCandidate=null,this._currentOtherActiveCandidates=[],this._currentSnappedType=Qe.MAIN}_removeVisualization(){this.handles.remove(en)}_snapSinglePoint({point:l,context:o,signal:d}){var c=this;return(0,A.Z)(function*(){const{coordinateHelper:h}=o,{view:p}=c,u=c._convertPointElevation(l,o),f=h.pointToVector(u),v=yield c._fetchCandidates(f,Pe.B.ALL,o,d);return c._createSnapResult(f,Qe.MAIN,v,p,o,d)})()}_snapMultiPoint({point:l,scenePoint:o,context:d,signal:c}){var h=this;return(0,A.Z)(function*(){const{view:p}=h,{coordinateHelper:u}=d,{spatialReference:f}=u;yield(0,me.iQ)(o.spatialReference,f);const v=(0,me.iV)(h._convertPointElevation(o,d),f),S=u.pointToVector(v),P=yield h._fetchCandidates(S,Pe.B.FEATURE,d,c);if(P.length>0){const V=yield h._fetchCandidates(S,Pe.B.SELF,d,c);return h._createSnapResult(S,Qe.SCENE,[...P,...V],p,d,c)}const x=h._convertPointElevation(l,d),L=u.pointToVector(x),z=yield h._fetchCandidates(L,Pe.B.SELF,d,c);return h._createSnapResult(L,Qe.MAIN,z,p,d,c)})()}_fetchCandidates(l,o,d,c){var h=this;return(0,A.Z)(function*(){return(yield Promise.all(h._engines.map(p=>p.fetchCandidates(l,o,d,c)))).flat()})()}_createSnapResult(l,o,d,c,h,p){return{get valid(){return!(0,it.Hc)(p)},apply:()=>{const{elevationInfo:u,coordinateHelper:f}=h,{snappedPoint:v,hints:S}=this._processCandidates(l,o,d,h);return this._removeVisualization(),(0,g.pC)(h.visualizer)&&this.handles.add(h.visualizer.draw(S,{coordinateHelper:f,elevationInfo:ii(h),view:c,selfSnappingZ:h.selfSnappingZ}),en),this._convertPointElevation(v,h,q.jG,u)}}}_processCandidates(l,o,d,c){const{coordinateHelper:h}=c;if(d.length<1)return this.doneSnapping(),{snappedPoint:h.vectorToDehydratedPoint(l),hints:[]};this._currentSnappedType!==o&&this._resetSnappingState(),(0,I.lQ)(l,d,h);const p=this._currentMainCandidate;if((0,g.pC)(p)){const u=this._findOldConstraintInNewCandidates(p,d);if(u>=0){if(!(d[u]instanceof qt))return this._intersectWithOtherCandidates(u,d,l,o,c);if(this._arePointsWithinScreenThreshold(l,p.targetPoint,c))return this._updateSnappingCandidate(p,o,d,c)}}return this._intersectWithOtherCandidates(0,d,l,o,c)}_findOldConstraintInNewCandidates(l,o){return l instanceof qt?this._findOldCandidateIndex(o,l.first)>=0&&this._findOldCandidateIndex(o,l.second)>=0?0:-1:this._findOldCandidateIndex(o,l)}_intersectWithOtherCandidates(l,o,d,c,h){const{coordinateHelper:p}=h,u=o[l],f=[];for(let v=0;v0&&(f.sort((v,S)=>v[1]-S[1]),f[0][1]!0),cancel:d,snappingManager:c,snappingContext:h,updatingHandles:p,useZ:u=!0}){if((0,g.Wi)(c))return V=>V;let f=null,v=null;const S=()=>{f=(0,g.IM)(f),c.doneSnapping(),(0,g.pC)(v)&&v.frameTask.remove(),v=null};d.next(V=>(S(),V)),this.next=new Ie.hM;const P=this._createSnapFunction(c,u);let x=null,L=null,z=null;return V=>{if(!o(V))return V;if("start"===V.action){const U=this._createFrameTask(c.view);if(v=this._createSnappingInfo(h,V,U),v.context.selfSnappingZ=null,!u&&(0,g.pC)(V.info)){const X=this._extractSelfSnappingZ(h.coordinateHelper,V.info.handle.component);(0,g.pC)(X)&&(v.context.selfSnappingZ={value:X,elevationInfo:h.elevationInfo})}}if((0,g.pC)(v)){const{context:U,originalScenePos:X,originalPos:fe}=v,{mapEnd:ci,mapStart:hi,action:Zo,scenePoints:Wo}=V,_n=this._updatePosition(fe,this._computeMapDelta(ci,hi)),pi=this._computeMapDelta(hi,fe),Fo={...V,action:"update"},Uo=v.context,yn=this._updateScenePosition(X,Wo),ui=c.update({point:_n,scenePoint:yn,context:U});if(z=ui,this._applySnappedUpdate(ci,ui,pi,u),x=_n,L=yn,"end"!==Zo){const{frameTask:jo}=v;(0,g.Wi)(f)&&(f=new AbortController),p.addPromise((0,it.R8)(P({frameTask:jo,event:Fo,context:Uo,point:_n,scenePoint:yn,delta:pi,lastPos:x,lastScenePos:L,lastUpdate:z},f.signal)))}}return"end"===V.action&&S(),V}}_createSnapFunction(o,d){var c=this;return(0,it.Ds)(function(){var h=(0,A.Z)(function*({frameTask:p,point:u,scenePoint:f,context:v,event:S,delta:P,lastPos:x,lastScenePos:L,lastUpdate:z},V){const U=yield p.schedule(()=>o.snap({point:u,scenePoint:f,context:v,signal:V}),V);if(U.valid){let X=yield p.schedule(()=>U.apply(),V);u!==x&&(0,g.pC)(x)&&(X=o.update({point:x,scenePoint:L,context:v})),(0,uo.k)(X,z)||(c._applySnappedUpdate(S.mapEnd,X,P,d),c.next.execute(S))}});return function(p,u){return h.apply(this,arguments)}}())}_createFrameTask(o){return"3d"===o.type?o.resourceController.scheduler.registerTask(nn.T8.SNAPPING):nn.sq}_createSnappingInfo(o,d,c){return{context:new si({editGeometryOperations:o.editGeometryOperations,elevationInfo:o.elevationInfo,pointer:o.pointer,vertexHandle:(0,g.pC)(d.info)?d.info.handle:null,excludeFeature:o.excludeFeature,visualizer:o.visualizer}),originalPos:(0,g.pC)(d.snapOrigin)?o.coordinateHelper.vectorToDehydratedPoint(d.snapOrigin):d.mapStart,originalScenePos:(0,g.pC)(d.scenePoints)?d.scenePoints.sceneStart:null,frameTask:c}}_updatePosition(o,[d,c,h]){const p=(0,oe.WG)(o);return p.x+=d,p.y+=c,p.hasZ&&(p.z+=h),p}_updateScenePosition(o,d){return(0,g.Wi)(o)||(0,g.Wi)(d)?null:this._updatePosition(o,this._computeMapDelta(d.sceneEnd,d.sceneStart))}_computeMapDelta(o,d){return[o.x-d.x,o.y-d.y,o.hasZ&&d.hasZ?o.z-d.z:0]}_applySnappedUpdate(o,d,[c,h,p],u){o.x=d.x+c,o.y=d.y+h,u&&o.hasZ&&d.hasZ&&(o.z=d.z+p)}_extractSelfSnappingZ(o,d){if(!o.hasZ())return null;const c=d.vertices;let h=null;for(const p of c){const u=o.getZ(p.pos);if((0,g.pC)(h)&&Math.abs(u-h)>1e-6)return null;(0,g.Wi)(h)&&(h=u)}return h}}let dt=class extends Y.Z{constructor(l){var o;super(l),o=this,this.constrainResult=d=>d,this._snapPoints=null,this._abortController=null,this._stagedPoint=null,this._snap=(0,it.Ds)(function(){var d=(0,A.Z)(function*(c,h,p,u){const f=yield o._frameTask.schedule(()=>h.snap({...c,context:p,signal:u}),u);f.valid&&(yield o._frameTask.schedule(()=>{o.stagedPoint=f.apply(),c!==o._snapPoints&&(0,g.pC)(o._snapPoints)&&(o.stagedPoint=h.update({...o._snapPoints,context:p}))},u))});return function(c,h,p,u){return d.apply(this,arguments)}}())}get stagedPoint(){return this._stagedPoint}set stagedPoint(l){this._stagedPoint=this.constrainResult(l)}initialize(){const l="3d"===this.view.type?this.view?.resourceController?.scheduler:null;this._frameTask=(0,g.pC)(l)?l.registerTask(nn.T8.SNAPPING):nn.sq}destroy(){this._abortController=(0,g.IM)(this._abortController),this._frameTask=(0,g.hw)(this._frameTask)}snap(l,o,d){var c=this;return(0,A.Z)(function*(){const{point:h,scenePoint:p}=l;return c.stagedPoint=o.update({point:h,scenePoint:p,context:d}),c._snapPoints=l,(0,g.Wi)(c._abortController)&&(c._abortController=new AbortController),c._snap(l,o,d,c._abortController.signal)})()}abort(){this._abortController=(0,g.IM)(this._abortController)}};(0,y._)([(0,C.Cb)({constructOnly:!0})],dt.prototype,"view",void 0),(0,y._)([(0,C.Cb)()],dt.prototype,"stagedPoint",null),(0,y._)([(0,C.Cb)()],dt.prototype,"constrainResult",void 0),(0,y._)([(0,C.Cb)()],dt.prototype,"_stagedPoint",void 0),dt=(0,y._)([(0,ee.j)("esri.views.interactive.snapping.SnappingOperation")],dt);let Me=class extends hn.r{constructor(l){super(l),this._stagedDimension=null,this._computationManipulators=new Map,this._computationHandles=new ge.Z,this._snappingPipeline=new go,this._snappingManagerResult=function co(l){if(!tn.has(l)){const c=function zs(l,o){const d=new Jn({enabled:!0,selfEnabled:!1,featureEnabled:!0,distance:o?.distance??ie.c.distance,touchSensitivityMultiplier:o?.touchSensitivityMultiplier??ie.c.touchSensitivityMultiplier});return{...(0,M.YP)(()=>l.map?.allLayers?.toArray()??[],c=>{d.featureSources=new T.Z(c.map(h=>new Qn({layer:h,enabled:!0})))},M.nn),options:d}}(l,{distance:10}),h=function po(l,o){return new Ge({view:l,options:o,snappingEnginesFactory:(d,c)=>[new Ke({view:l,spatialReference:l.spatialReference,options:c})]})}(l,c.options);tn.set(l,{referenceCount:0,snappingManager:h,remove:()=>{c.remove(),h.destroy()}})}const o=tn.get(l);o.referenceCount++;const d=(0,Ve.kB)(()=>function ho(l,o){o.referenceCount--,o.referenceCount>0||(0,As.Y)(()=>{0===o.referenceCount&&(o.remove(),tn.delete(l))})}(l,o));return{snappingManager:o.snappingManager,...d}}(l.view),this.addHandles(this._snappingManagerResult),this._unfocusedOffsetManipulatorMaterial=mn(),this._focusedOffsetManipulatorMaterial=mn(),this._thinOffsetManipulatorMaterial=mn(),this._thinOffsetManipulatorMaterial.setParameters({stipplePattern:(0,at.z5)(2)}),this._constraintSnappingIndicator=new rt.r({view:l.view,attached:!0,width:1,color:ae.Z.toUnitRGBA(te.constraint.color),renderOccluded:ne.yD.OccludeAndTransparent,stipplePattern:(0,at.z5)(5)});const o=ae.Z.toUnitRGBA(te.disabledPointIndicator.color);o[3]*=te.disabledPointIndicator.opacity,this._stagedStartIndicator=new Os({view:l.view,attached:!1,color:o,size:2*te.disabledPointIndicator.radius,elevationInfo:{mode:"absolute-height",offset:0},spatialReference:l.view.renderCoordsHelper.spatialReference,outlineSize:0,renderOccluded:ne.yD.OccludeAndTransparent})}initialize(){this._snappingOperation=new dt({view:this.view}),this._orientationManipulatorTexture=(0,is.O)(this.view.toolViewManager.textures),this._orientationManipulatorMaterial=new Ls.j({transparent:!0,writeDepth:!1,textureId:this._orientationManipulatorTexture.texture.id,renderOccluded:ne.yD.Opaque});const{computations:l}=this.analysisViewData;for(const o of l)this._addComputation(o);this.addHandles([l.on("after-add",o=>this._addComputation(o.item)),l.on("after-remove",o=>this._removeComputation(o.item))]),this.addHandles([(0,M.YP)(()=>({stagedPoint:this._snappingOperation.stagedPoint,stagedComputation:this._stagedComputation}),({stagedPoint:o,stagedComputation:d})=>{if((0,g.Wi)(d)||(0,g.Wi)(o))return;const c=(0,oe.WG)(o,new Mt.Z);this._applyPointUpdate(d,{endPoint:c})},M.Z_),(0,M.YP)(()=>({stagedDimension:this._stagedDimension,selectedComputation:this.analysisViewData.selectedComputation,firstGrabbedManipulator:this.firstGrabbedManipulator}),(o,d)=>{const{stagedDimension:c,selectedComputation:h,firstGrabbedManipulator:p}=o;if(c===d.stagedDimension&&p===d.firstGrabbedManipulator){for(const u of[h,d.selectedComputation])if((0,g.pC)(u)){const f=this._computationManipulators.get(u);this._updateManipulators(u,f,o)}}else for(const[u,f]of this._computationManipulators)this._updateManipulators(u,f,o)},M.tX),(0,M.YP)(()=>this.analysis.style.lineSize,o=>{this._updateManipulatorStyle(o)},M.nn),(0,M.YP)(()=>this.view.state.camera,()=>{(0,g.pC)(this._stagedComputation)&&this._updateStagedDimensionOffset(this._stagedComputation)}),(0,M.YP)(()=>(0,g.yw)(this._stagedComputation,o=>{const d=o.elevationAlignedStartPoint,c=(0,R.c)();return(0,g.pC)(d)&&this.view.renderCoordsHelper.toRenderCoords(d,c)?c:null}),o=>{(0,g.pC)(o)?(this._stagedStartIndicator.vertices=[o],this._stagedStartIndicator.attached=!0):this._stagedStartIndicator.attached=!1})]),this.addHandles(this._constraintHandles),this.addHandles(this._snappingIndicatorHandles)}destroy(){this._snappingOperation=(0,g.SC)(this._snappingOperation),this._computationHandles.destroy(),this._constraintSnappingIndicator.destroy(),this._stagedStartIndicator.destroy(),this._orientationManipulatorMaterial.dispose(),this._orientationManipulatorTexture.release()}get updating(){return this.updatingHandles.updating||this._snappingManager.updating}get firstGrabbedManipulator(){return this.parentTool.firstGrabbedManipulator}get hasGrabbedManipulators(){return this.parentTool.hasGrabbedManipulators}get _snappingManager(){return this._snappingManagerResult.snappingManager}get _activeComputation(){if((0,g.pC)(this._stagedComputation))return this._stagedComputation;const{selectedComputation:l}=this.analysisViewData;return this.hasGrabbedManipulators&&(0,g.pC)(l)?l:null}get _stagedComputation(){const l=this._stagedDimension,o=this.analysisViewData.computations.at(-1);return(0,g.Wi)(l)||(0,g.Wi)(o)||o.dimension!==l?null:o}get _constraintHandles(){return[(0,M.gx)(()=>this.analysisViewData.selectedComputation,l=>{l.previousConstraint=Gt(l,this.view)},{...M.tX,equals:jt.fS}),(0,M.YP)(()=>{const l=this._activeComputation;if((0,g.Wi)(l))return null;const{measureType:o,orientation:d}=l.dimension;return{measureType:o,orientation:d,computation:l}},(l,o)=>{if((0,g.pC)(l)&&(0,g.Wi)(o)){const{measureType:d,orientation:c,computation:h}=l;switch(h.previousConstraint){case Ae.Horizontal:h.preConstraintProperties={measureType:B.n.Horizontal,orientation:0};break;case Ae.Vertical:h.preConstraintProperties={measureType:B.n.Vertical,orientation:0};break;case Ae.Direct:h.preConstraintProperties={measureType:B.n.Direct,orientation:c};break;default:h.preConstraintProperties={measureType:d,orientation:c}}}(0,g.Wi)(l)&&(0,g.pC)(o)&&(o.computation.preConstraintProperties=null)},M.Z_)]}get _snappingIndicatorHandles(){const l="snapping-indicator-event-handles";return[(0,M.YP)(()=>({stagedComputation:this._stagedComputation,activeComputation:this._activeComputation}),({stagedComputation:o,activeComputation:d})=>{const c=this._constraintSnappingIndicator;if(this.removeHandles(l),(0,g.Wi)(d))c.attached=!1;else if(d===o)c.attached=!0;else{const{start:h,end:p}=this._computationManipulators.get(d),u=()=>{c.attached=h.grabbing||p.grabbing};u(),this.addHandles([h.events.on("grab-changed",u),p.events.on("grab-changed",u)],l)}}),(0,M.YP)(()=>{const o=this._activeComputation;return(0,g.pC)(o)?{geometry:o.geometry,constraint:o.previousConstraint}:{}},({geometry:o,constraint:d})=>{const c=this._constraintSnappingIndicator;(0,g.pC)(o)&&(0,g.pC)(d)&&d!==Ae.Direct?(c.visible=!0,c.setGeometryFromSegment(o.directSegment)):c.visible=!1})]}removeStaged(){return!!(0,g.pC)(this._stagedDimension)&&(this.analysis.dimensions.remove(this._stagedDimension),this._stagedDimension=null,!0)}onDeactivate(){this.removeStaged(),this._resetSnappingState()}onClick(l){const{_stagedDimension:o}=this;if((0,g.Wi)(o)){const d=this._onUnstagedClick(l);return this.analysis.dimensions.add(d),null}return this._onStagedClick(l),o}onPointerMove({mapPoint:l,pointerType:o}){if("touch"===o)return;const d=this._snappingContext(o);this.updatingHandles.addPromise((0,it.R8)(this._snappingOperation.snap({point:l},this._snappingManager,d)))}onManipulatorSelectionChanged(){(0,g.pC)(this.analysisViewData.selectedComputation)&&(this._computationManipulators.get(this.analysisViewData.selectedComputation).offset.selected||(this.analysisViewData.selectedDimension=null))}_onUnstagedClick({mapPoint:l,pointerType:o}){let d=l;if("mouse"===o){const h=this._snappingContext(o);d=this._snappingManager.update({point:l,context:h})}const c=new ts.Z({startPoint:(0,oe.WG)(d,new Mt.Z),endPoint:null,measureType:B.n.Horizontal});return this._stagedDimension=c,this._resetSnappingState(),c}_onStagedClick({mapPoint:l,pointerType:o}){const d=this._stagedComputation;if((0,g.Wi)(d))return;let c=l;if("mouse"===o){const p=this._snappingContext(o);c=this._snappingManager.update({point:l,context:p})}const h=(0,oe.WG)(c,new Mt.Z);this._applyPointUpdate(d,{endPoint:h}),this._stagedDimension=null,this._resetSnappingState()}_resetSnappingState(){this._snappingManager.doneSnapping(),this._snappingOperation.abort(),this._snappingOperation.stagedPoint=null}_addComputation(l){if(this._computationManipulators.has(l))return;const o=this._setupPointManipulator(l,{isStart:!0}),d=this._setupPointManipulator(l,{isStart:!1}),c=this._setupOffsetManipulator(l),h=this._setupHeadingManipulator(l),p=this._setupRotationManipulator(l),u=this._setupMeasureTypeManipulator(l,B.n.Direct),f=this._setupMeasureTypeManipulator(l,B.n.Horizontal),v=this._setupMeasureTypeManipulator(l,B.n.Vertical),S=new zi({start:o,end:d,offset:c,heading:h,rotation:p,direct:u,horizontal:f,vertical:v});this._setupComputationToManipulatorsSync(l,S),this._computationManipulators.set(l,S),this.manipulators.addMany(S.values())}_removeComputation(l){const o=this._computationManipulators.get(l);if(!(0,g.Wi)(o)){this._computationHandles.remove(l),this._computationManipulators.delete(l);for(const d of o.values())this.manipulators.remove(d)}}_setupComputationToManipulatorsSync(l,o){this._computationHandles.add([(0,M.YP)(()=>l.geometry,()=>this._updateManipulators(l,o),{...M.tX,equals:jt.fS})],l)}_setupPointManipulator(l,o){const{view:d}=this,{dimension:c}=l,h=function Hi(l,o){const d=(0,Be.aD)(l,ae.Z.toUnitRGB(te.pointManipulators.color),te.pointManipulators.opacity,Xe);return d.available=!1,d.grabCursor="crosshair",d.radius=te.pointManipulators.radius,d.metadata=o.metadata,d.collisionPriority=1,d}(d,{metadata:c}),p=function Zi(l,{isStart:o,createSnappingPipelineStep:d,dimension:c,onUpdate:h,snappingPipeline:p,view:u}){const f=o?"startPoint":"endPoint";return[(0,Ie.Xd)(l,(S,P,x,L)=>{const z=(0,ct.J4)(S);x=x.next(z).next((0,Ie.di)(c,[f,"measureType","orientation"])),P.next(z).next((0,ct.gv)(u)).next(d(x,L),p.next).next(V=>{const U=(0,oe.WG)(V.mapEnd,new Mt.Z);h("startPoint"===f?{startPoint:U}:{endPoint:U})})})]}(h,{isStart:o.isStart,createSnappingPipelineStep:(u,f)=>this._snappingPipeline.createSnapDragEventPipelineStep({snappingContext:this._snappingContext(f),snappingManager:this._snappingManager,updatingHandles:this.updatingHandles,cancel:u}),dimension:c,onUpdate:u=>{this._applyPointUpdate(l,u)},snappingPipeline:this._snappingPipeline,view:d});return this._computationHandles.add(p,l),h}_setupOffsetManipulator(l){const{view:o}=this,d=function Vi(l,o){const d=[(0,R.f)(-.5,0,0),(0,R.f)(.5,0,0)],{lengthFraction:c}=te.offsetManipulator,h=(0,nt.rh)(d.map(p=>(0,w.g)((0,R.c)(),p,c)));return new On.Z({view:l,renderObjects:[{geometry:h,material:o.unfocusedMaterial,stateMask:ht.Q9.Unfocused|ht.Q9.Selected|Xe},{geometry:h,material:o.focusedMaterial,stateMask:ht.Q9.Focused|Xe}],collisionType:{type:"line",paths:[d]},radius:dn(o.lineSizePt)/2,metadata:o.metadata,available:!1,...Be.X9})}(o,{lineSizePt:this.analysis.style.lineSize,unfocusedMaterial:this._unfocusedOffsetManipulatorMaterial,focusedMaterial:this._focusedOffsetManipulatorMaterial,metadata:l.dimension}),c=function Wi(l,{computation:o,view:d}){return[(0,Ie.Xd)(l,(c,h,p)=>{if(!Et(o)||!c.selected)return;const{geometry:u,dimension:f}=o,v=(0,ct.J4)(c);h.next(v).next(An(d,f,u.dimensionSegment,u.primaryOffsetAxis)),p.next(v).next((0,Ie.di)(f,["offset"]))})]}(d,{computation:l,view:o});return this._computationHandles.add(c,l),d}_setupHeadingManipulator(l){const{view:o}=this,d=Dn(o,{lineSizePt:this.analysis.style.lineSize,material:this._orientationManipulatorMaterial,metadata:l.dimension}),c=function Fi(l,{computation:o,view:d}){return[(0,Ie.Xd)(l,(c,h,p)=>{bn({cancel:p,computation:o,settingHeading:!0,steps:h,view:d})})]}(d,{computation:l,view:o});return this._computationHandles.add(c,l),d}_setupRotationManipulator(l){const{view:o}=this,d=Dn(o,{lineSizePt:this.analysis.style.lineSize,material:this._orientationManipulatorMaterial,metadata:l.dimension}),c=function Ui(l,{computation:o,view:d}){return[(0,Ie.Xd)(l,(c,h,p)=>{bn({cancel:p,computation:o,settingHeading:!1,steps:h,view:d})}),l.events.on("immediate-click",c=>{!function ji(l,o,d){const{dimension:c,geometry:h}=o;if(90===c.orientation||270===c.orientation)return c.orientation=0,void l.stopPropagation();if((0,g.Wi)(h))return;const{renderCoordsHelper:p}=d,u=It({...Vt(o),orientation:90},p),f=It({...Vt(o),orientation:270},p);if((0,g.Wi)(u)||(0,g.Wi)(f))return;const v=an(u,p),S=an(f,p),P=zn(h,d),x=ln.BV.shortestSignedDiff(P,v),L=ln.BV.shortestSignedDiff(P,S);c.orientation=Math.abs(x)(0,w.g)((0,R.c)(),u,c)));return new On.Z({view:l,renderObjects:[{geometry:p,material:o.unfocusedMaterial,stateMask:ht.Q9.Unfocused|Xe},{geometry:p,material:o.focusedMaterial,stateMask:ht.Q9.Focused|Xe},{geometry:h,material:o.thinOffsetManipulatorMaterial,stateMask:Xe}],collisionType:{type:"line",paths:[d]},radius:dn(o.lineSizePt)/2,available:!1,metadata:o.metadata,...Be.X9})}(d,{lineSizePt:this.analysis.style.lineSize,unfocusedMaterial:this._unfocusedOffsetManipulatorMaterial,focusedMaterial:this._focusedOffsetManipulatorMaterial,thinOffsetManipulatorMaterial:this._thinOffsetManipulatorMaterial,metadata:l.dimension}),h=function Ni(l,{computation:o,manipulatorMeasureType:d,view:c}){let h=B.n.Direct,p=0,u=0;return[l.events.on("grab-changed",f=>{if("start"!==f.action||!Et(o))return;const{dimension:v,geometry:S}=o;h=v.measureType,p=v.offset,u=v.orientation;const P=(0,w.c)(Z.WM.get(),l.renderLocation);v.measureType=d,v.offset=function yi(l,o,d,c){const{directSegment:h}=d,p=Zt(Z.WM.get(),{measureType:o,directSegment:h,renderCoordsHelper:c}),u=En(Si,{offsetAxis:p,offset:0,relativeToSegment:h,renderCoordsHelper:c}).eval(.5,Z.WM.get()),f=(0,w.y)(Z.WM.get(),l,u);return(0,w.e)(f,p)*c.unitInMeters}(P,d,S,c.renderCoordsHelper),v.orientation=0}),(0,Ie.Xd)(l,(f,v,S)=>{if(!Et(o))return;const{geometry:P,dimension:x}=o,{renderCoordsHelper:L}=c,z=Cn(Zn,d,o,L),V=Zt(Z.WM.get(),{measureType:d,directSegment:P.directSegment,renderCoordsHelper:L}),U=(0,ct.J4)(f);v.next(U).next(An(c,x,z,V)),S.next(U).next(X=>(x.measureType=h,x.offset=p,x.orientation=u,X))})]}(c,{computation:l,manipulatorMeasureType:o,view:d});return this._computationHandles.add(h,l),c}_updateManipulators(l,o,d={stagedDimension:this._stagedDimension,selectedComputation:this.analysisViewData.selectedComputation,firstGrabbedManipulator:this.firstGrabbedManipulator}){const{stagedDimension:c,selectedComputation:h,firstGrabbedManipulator:p}=d,{start:u,end:f,offset:v,heading:S,rotation:P}=o,x=h===l,L=Et(l),{dimension:z}=l;for(const X of o.values()){const fe=L&&(0,g.Wi)(c)&&((0,g.Wi)(p)||X===p);X===v?(X.available=fe,X.selected=x):X.available=fe&&x}if(!L)return;(0,g.pC)(Gt(l,this.view))?o.forEachMeasureTypeManipulator(X=>X.available=!1):o.manipulatorForMeasureType(z.measureType).available=!1;for(const X of[S,P])z.measureType===B.n.Direct&&0!==z.offset||(X.available=!1);sn(l)?P.available=!1:S.available=!1;const{geometry:V}=l;u.renderLocation=V.directSegment.startRenderSpace,f.renderLocation=V.directSegment.endRenderSpace;const{renderCoordsHelper:U}=this.view;(function Yi(l,o,d){const{dimensionSegment:c,primaryOffsetAxis:h}=o,p=rn(xt,o),u=(0,w.k)(p,R.Z)?(0,Q.i)(Ut):(0,Be.Aq)(p,h,R.Z,Ut),f=Math.max((0,w.l)(p),te.offsetManipulator.minLengthMeters/d.unitInMeters);(0,Q.k)(u,u,(0,w.s)(xt,f,f,f)),l.modelTransform=u,l.renderLocation=c.eval(.5,xt)})(v,V,U),S.available&&function Bi(l,o,d){Hn(l,o,d,{forHeading:!0})}(S,l,U),P.available&&function Xi(l,o,d){Hn(l,o,d,{forHeading:!1})}(P,l,U),o.forEachMeasureTypeManipulator((X,fe)=>{X.available&&function Qi(l,o,d,c){const{geometry:h}=o,p=Cn(Zn,d,o,c),u=Zt(xt,{measureType:d,directSegment:h.directSegment,renderCoordsHelper:c}),f=(0,w.y)(cn,p.endRenderSpace,p.startRenderSpace),v=(0,Be.Aq)(f,u,R.Z,Ut),S=(0,w.l)(f);(0,Q.k)(v,v,(0,w.s)(cn,S,S,S)),l.modelTransform=v,l.renderLocation=p.eval(.5,cn)}(X,l,fe,U)})}_updateManipulatorStyle(l){const o=function es(l){return(0,Ce.F2)(l)+te.offsetManipulator.linePaddingPx}(l),d=dn(l),c={lineSizePt:l,material:this._orientationManipulatorMaterial};for(const{offset:h,heading:p,rotation:u}of this._computationManipulators.values())h.radius=d/2,Rn(p,c),Rn(u,c);this._unfocusedOffsetManipulatorMaterial.setParameters({width:o}),this._focusedOffsetManipulatorMaterial.setParameters({width:d})}_snappingContext(l){return new si({elevationInfo:{mode:"absolute-height",offset:0},pointer:l,editGeometryOperations:new bs.c(new Rs.XE("point",(0,Ds.Y6)(!0,!1,this.view.spatialReference))),visualizer:new ps})}_applyPointUpdate(l,o){const{view:d}=this,c=Vt(l);"startPoint"in o&&(c.elevationAlignedStartPoint=o.startPoint),"endPoint"in o&&(c.elevationAlignedEndPoint=o.endPoint);const h=It(c,d.renderCoordsHelper);if((0,g.Wi)(h))return;const p=Gt({...c,geometry:h},d);(function ns(l,o,d){const{constraint:c,elevationAlignedStartPoint:h,elevationAlignedEndPoint:p,unconstrainedGeometry:u,view:f}=d,{dimension:v,previousConstraint:S,preConstraintProperties:P}=l;if((0,g.Wi)(h)||(0,g.Wi)(p))return;const x=()=>{"startPoint"in o?v.startPoint=o.startPoint:"endPoint"in o&&(v.endPoint=o.endPoint)};if((0,g.Wi)(c))x(),(0,g.pC)(S)&&(0,g.pC)(P)&&(v.measureType=P.measureType,v.orientation=P.orientation);else switch(v.measureType=B.n.Direct,c){case Ae.Horizontal:if(c!==S&&(v.orientation=0),"startPoint"in o){const L=o.startPoint;(0,g.pC)(L)&&(L.z=p.z),v.startPoint=L}else if("endPoint"in o){const L=o.endPoint;(0,g.pC)(L)&&(L.z=h.z),v.endPoint=L}break;case Ae.Vertical:if(c!==S&&(v.orientation=zn(u,f)),"startPoint"in o){const L=o.startPoint;(0,g.pC)(L)&&(L.x=p.x,L.y=p.y),v.startPoint=L}else if("endPoint"in o){const L=o.endPoint;(0,g.pC)(L)&&(L.x=h.x,L.y=h.y),v.endPoint=L}break;case Ae.Direct:c!==S&&(0,g.pC)(P)&&(v.orientation=P.orientation),x()}l.previousConstraint=c})(l,o,{...c,constraint:p,unconstrainedGeometry:h,view:d}),l===this._stagedComputation&&this._updateStagedDimensionOffset(l)}_updateStagedDimensionOffset(l){if((0,g.Wi)(l.geometry))return;l.geometry.directSegment.eval(.5,oi);const o=this.view.state.camera.computeRenderPixelSizeAt(oi);l.dimension.offset=te.initialOffsetPx*o}get testInfo(){const l=o=>this.analysisViewData.computations.find(d=>d.dimension===o);return{getManipulatorsForDimension:o=>this._computationManipulators.get(l(o)),getComputationForDimension:o=>l(o),getConstraintForDimension:o=>{const d=l(o);return(0,g.pC)(d)?Gt(d,this.view):null},stagedDimension:this._stagedDimension,stagedStartIndicator:this._stagedStartIndicator,constraintSnappingIndicator:this._constraintSnappingIndicator,snappingManager:this._snappingManager}}};function mn(){const{color:l,opacity:o}=te.offsetManipulator;return new st.U({color:[...ae.Z.toUnitRGB(l),o],width:1,renderOccluded:ne.yD.OccludeAndTransparent,writeDepth:!1,hasPolygonOffset:!0})}(0,y._)([(0,C.Cb)({constructOnly:!0})],Me.prototype,"analysis",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0})],Me.prototype,"analysisViewData",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0})],Me.prototype,"manipulators",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0})],Me.prototype,"parentTool",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0,nonNullable:!0})],Me.prototype,"view",void 0),(0,y._)([(0,C.Cb)({readOnly:!0})],Me.prototype,"updating",null),(0,y._)([(0,C.Cb)()],Me.prototype,"firstGrabbedManipulator",null),(0,y._)([(0,C.Cb)()],Me.prototype,"hasGrabbedManipulators",null),(0,y._)([(0,C.Cb)()],Me.prototype,"_stagedDimension",void 0),(0,y._)([(0,C.Cb)()],Me.prototype,"_activeComputation",null),(0,y._)([(0,C.Cb)()],Me.prototype,"_stagedComputation",null),Me=(0,y._)([(0,ee.j)("esri.views.3d.analysis.Dimension.LengthDimensionSubTool")],Me);const oi=(0,R.c)();var fo=m(62483),mo=m(67857),vo=m(58997);const ri={redo:"r",undo:"z",center:"Alt",constraint:"Shift",snappingToggle:"Control",cancel:"Escape",delete:["Backspace","Delete"],complete:"Enter",vertexAdd:"f",pan:" "};var Ct,_o=m(41900);!function(l){l.Ready="ready",l.Creating="creating",l.Created="created"}(Ct||(Ct={}));let Te=class extends vo.f{constructor(l){super(l),this.automaticManipulatorSelection=!1,this.removeIncompleteOnCancel=!1,this._pointerMoveTimerMs=te.pointerMoveTimeoutMs,this._prevPointerMoveTimeout=null}initialize(){this._intersector=(0,fo.Z8)(this.view.state.viewingMode),this._intersector.options.store=mo.eC.MIN,this._lengthDimensionSubTool=new Me({analysis:this.analysis,analysisViewData:this.analysisViewData,manipulators:this.manipulators,parentTool:this,view:this.view}),this.addHandles([(0,Ve.ed)(this._lengthDimensionSubTool),(0,Ve.kB)(()=>this._clearPointerMoveTimeout()),(0,M.YP)(()=>this.state,l=>{l===Ct.Created&&this.finishToolCreation()},M.tX),(0,M.gx)(()=>this.firstGrabbedManipulator,l=>{this.selectedDimension=l.metadata},M.tX),(0,M.YP)(()=>this.selectedDimension,()=>this._resetPointerMoveTimeout(),M.tX)])}get state(){return this.analysis.dimensions.some(l=>"length"===l.type)?(0,g.pC)(this._activeSubTool)?Ct.Creating:Ct.Created:Ct.Ready}get updating(){return this._lengthDimensionSubTool.updating}get cursor(){return this.active?"crosshair":null}get selectedDimension(){return this.analysisViewData.selectedDimension}set selectedDimension(l){this.analysisViewData.selectedDimension=l}onInputEvent(l){switch(l.type){case"immediate-click":this._clickHandler(l);break;case"immediate-double-click":this._doubleClickHandler(l);break;case"pointer-move":this._pointerMoveHandler(l);break;case"key-down":if(ri.cancel===l.key){if((0,g.pC)(this._activeSubTool)&&this._activeSubTool.removeStaged())return void l.stopPropagation();this.active||(this.selectedDimension=null)}else ri.delete.includes(l.key)&&this._deleteKeyHandler()}}onActivate(){this._activeSubTool=this._lengthDimensionSubTool}onDeactivate(){(0,g.pC)(this._activeSubTool)&&(this._activeSubTool.onDeactivate(),this._activeSubTool=null)}onShow(){this._resetPointerMoveTimeout()}onManipulatorSelectionChanged(){this._lengthDimensionSubTool.onManipulatorSelectionChanged()}onHide(){this.selectedDimension=null}_clickHandler(l){if(this.hasFocusedManipulators)return void l.stopPropagation();if((0,g.Wi)(this._activeSubTool))return;const o=this._intersectScreen(l);(0,g.Wi)(o)||(this.selectedDimension=this._activeSubTool.onClick({mapPoint:o,pointerType:l.pointerType}),l.stopPropagation())}_doubleClickHandler(l){this.active&&(this.view.activeTool=null,l.stopPropagation())}_pointerMoveHandler(l){if(this._resetPointerMoveTimeout(),(0,g.Wi)(this._activeSubTool)||this.hasFocusedManipulators)return;const o=this._intersectScreen(l);(0,g.Wi)(o)||this._activeSubTool.onPointerMove({mapPoint:o,pointerType:l.pointerType})}_deleteKeyHandler(){(0,g.pC)(this._activeSubTool)&&this._activeSubTool.removeStaged(),this._removeSelected()}_intersectScreen(l){const o=(0,_o.Sj)(l);this.view.sceneIntersectionHelper.intersectToolIntersectorScreen(o,this._intersector);const d=this._intersector.results.min,c=Z.WM.get();return d.getIntersectionPoint(c)?this.view.renderCoordsHelper.fromRenderCoords(c,this.view.spatialReference):null}_removeSelected(){(0,g.pC)(this.selectedDimension)&&(this.analysis.dimensions.remove(this.selectedDimension),this.selectedDimension=null)}_clearPointerMoveTimeout(){this._prevPointerMoveTimeout=(0,g.hw)(this._prevPointerMoveTimeout)}_resetPointerMoveTimeout(){this._clearPointerMoveTimeout(),this.manipulators.forEach(l=>{l.manipulator.state|=Xe}),this._prevPointerMoveTimeout=Mi.m.setTimeout(()=>{this.manipulators.forEach(l=>{l.manipulator.state&=~Xe})},this._pointerMoveTimerMs)}get testInfo(){return{...this._lengthDimensionSubTool.testInfo,setManipulatorAutoHideDelay:l=>{this._pointerMoveTimerMs=l,this._resetPointerMoveTimeout()}}}};(0,y._)([(0,C.Cb)({constructOnly:!0})],Te.prototype,"view",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0})],Te.prototype,"analysis",void 0),(0,y._)([(0,C.Cb)({readOnly:!0})],Te.prototype,"state",null),(0,y._)([(0,C.Cb)({readOnly:!0})],Te.prototype,"updating",null),(0,y._)([(0,C.Cb)({readOnly:!0})],Te.prototype,"cursor",null),(0,y._)([(0,C.Cb)({constructOnly:!0})],Te.prototype,"analysisViewData",void 0),(0,y._)([(0,C.Cb)()],Te.prototype,"selectedDimension",null),(0,y._)([(0,C.Cb)()],Te.prototype,"automaticManipulatorSelection",void 0),(0,y._)([(0,C.Cb)()],Te.prototype,"_activeSubTool",void 0),(0,y._)([(0,C.Cb)()],Te.prototype,"_lengthDimensionSubTool",void 0),Te=(0,y._)([(0,ee.j)("esri.views.3d.analysis.Dimension.DimensionTool")],Te),m(52515);var yo=m(84600),So=m(68063),ai=m(79020),li=m(70591);class Co extends Bt._{constructor(o,d){super(o),this._hasExternalMaterial=!1,this._renderOccluded=ne.yD.OccludeAndTransparent,this._width=1,this._color=(0,pt.f)(1,0,1,1),this._placement="end",this._textureId=null,this._material=d,this._hasExternalMaterial=(0,g.pC)(d),this.applyProps(o)}setGeometryFromSegment(o,d){const c=o.endRenderSpace;this.transform=(0,Q.f)(Po,c),this._normal=d;const{points:h}=o.createRenderGeometry(c,this.view.renderCoordsHelper);this.geometry=[h]}get renderOccluded(){return(0,g.pC)(this._material)?this._material.parameters.renderOccluded:this._renderOccluded}set renderOccluded(o){this._renderOccluded=o,(0,g.pC)(this._material)&&this._material.setParameters({renderOccluded:o})}get geometry(){return this._geometry}set geometry(o){this._geometry=o,this.recreateGeometry()}get normal(){return this._normal}set normal(o){this._normal=o,this.recreateGeometry()}get width(){return(0,g.pC)(this._material)?this._material.parameters.width:this._width}set width(o){this._width=o,(0,g.pC)(this._material)&&this._material.setParameters({width:o})}get color(){return(0,g.pC)(this._material)?this._material.parameters.color:this._color}set color(o){this._color=(0,pt.a)(o),(0,g.pC)(this._material)&&this._material.setParameters({color:this._color})}get placement(){return(0,g.pC)(this._material)?this._material.parameters.placement:this._placement}set placement(o){this._placement=o,(0,g.pC)(this._material)&&this._material.setParameters({placement:this._placement})}get textureId(){return(0,g.pC)(this._material)?this._material.parameters.textureId:this._textureId}set textureId(o){this._textureId=o,(0,g.pC)(this._material)&&this._material.setParameters({textureId:o})}createExternalResources(){this._hasExternalMaterial||(this._material=new li.X({width:this._width,color:this._color,placement:this._placement,renderOccluded:this._renderOccluded,textureId:this._textureId}))}destroyExternalResources(){this._hasExternalMaterial||(this._material=null)}createGeometries(o){for(const d of(0,ai.c0)(this.geometry,this.normal)){const c=(0,ai.YU)(d);o.addGeometry(c,(0,g.Wg)(this._material))}}forEachExternalMaterial(o){this._hasExternalMaterial||o((0,g.Wg)(this._material))}}const Po=(0,he.c)();class Eo{constructor(o){this.destroyed=!1,this._handles=new ge.Z,this._messages=null,this._labelSegment=new ce.y;const{analysis:d,computation:c,view:h,messages:p}=o;this.analysis=d,this.computation=c,this.view=h,this._messages=p;const u=o.visible,f={view:h,attached:u},{fontSize:v,textColor:S,textBackgroundColor:P}=d.style;this._visualElements=new To({marker:new Co(f,o.markerMaterial),dimension:new rt.r(f,o.dimensionLineMaterial),startOffset:new rt.r(f,o.offsetLineMaterial),endOffset:new rt.r(f,o.offsetLineMaterial),dimensionSmall:new rt.r(f,o.smallDimensionLineMaterial),startOffsetSmall:new rt.r(f,o.smallOffsetLineMaterial),endOffsetSmall:new rt.r(f,o.smallOffsetLineMaterial),label:new So.Kc({view:h,attached:u,distance:0,geometry:{type:"segment",sampleLocation:"center",segment:this._labelSegment,callout:!1},fontSize:(0,Ce.F2)(v),textColor:S.clone(),backgroundColor:P.clone()})}),this._handles.add([(0,M.YP)(()=>c.geometry,x=>{this.updateCameraDependentElements(h.state.camera,x,d.style),(0,g.pC)(c.geometry)&&this._updateLines(c.geometry)},{...M.nn,equals:jt.fS}),(0,M.YP)(()=>c.length,x=>this._updateLabelContent(x),M.nn)])}set visible(o){for(const d of this._visualElements.values())d.attached=o}destroy(){this.destroyed=!0,this._handles=(0,g.SC)(this._handles);for(const o of this._visualElements.values())o.destroy()}get testInfo(){return{dimensionVisualElement:this._visualElements.dimension,label:this._visualElements.label}}_updateLines(o){const d=Sn(xo,Pt.Start,o.directSegment,o.dimensionSegment),c=Sn(wo,Pt.End,o.directSegment,o.dimensionSegment),h=this._visualElements;h.marker.setGeometryFromSegment(o.dimensionSegment,o.primaryOffsetAxis),h.dimension.setGeometryFromSegment(o.dimensionSegment),h.startOffset.setGeometryFromSegment(d),h.endOffset.setGeometryFromSegment(c),h.dimensionSmall.setGeometryFromSegment(o.dimensionSegment),h.startOffsetSmall.setGeometryFromSegment(d),h.endOffsetSmall.setGeometryFromSegment(c)}updateCameraDependentElements(o,d,c){const h=this._visualElements;if((0,g.Wi)(d)){for(const U of h.values())U.visible=!1;return}const p=o.computeScreenPixelSizeAt(d.dimensionSegment.eval(.5,Oo)),u=function Pi(l,o){return(0,w.p)(rn(Ei,l))/o**2}(d,p),f=u<((0,Ce.F2)(c.lineSize)*te.smallScreenLengthLineSizeFactor)**2,v=!f;h.marker.visible=v,h.dimension.visible=v,h.startOffset.visible=v,h.endOffset.visible=v,h.dimensionSmall.visible=f,h.startOffsetSmall.visible=f,h.endOffsetSmall.visible=f;const S=(0,Ce.F2)(c.fontSize)*te.labels.minScreenLengthFontSizeFactor,{label:P}=h;if(u=0?1:-1)*function Mo(l){return 1.5*(0,Ce.F2)(l.fontSize)+te.labels.marginPx+(0,Ce.F2)(l.lineSize/2)}(c)*p;(function fi(l,o,d,c){(0,w.z)(l.startRenderSpace,o.startRenderSpace,d,c),(0,w.z)(l.endRenderSpace,o.endRenderSpace,d,c)})(this._labelSegment,x,L,V),P.updateLabelPosition()}updateLabelStyle(o){const{label:d}=this._visualElements;d.fontSize=(0,Ce.F2)(o.fontSize),d.textColor=o.textColor,d.backgroundColor=o.textBackgroundColor}updateUnitsMessages(o){this._messages=o;const{length:d}=this.computation;this._updateLabelContent(d)}_updateLabelContent(o){const{label:d}=this._visualElements;d.text=(0,g.Wi)(o)||(0,g.Wi)(this._messages)?"":(0,yo.VG)(this._messages,o,o.unit)}}const xo=new ce.y,wo=new ce.y,Oo=(0,R.c)();class To{constructor(o){this.marker=o.marker,this.dimension=o.dimension,this.startOffset=o.startOffset,this.endOffset=o.endOffset,this.dimensionSmall=o.dimensionSmall,this.startOffsetSmall=o.startOffsetSmall,this.endOffsetSmall=o.endOffsetSmall,this.label=o.label}values(){return[this.marker,this.dimension,this.startOffset,this.endOffset,this.dimensionSmall,this.startOffsetSmall,this.endOffsetSmall,this.label]}}var Lo=m(52051);class Do{constructor(o,d){this._textures=o,this._textureRepository=d,this._texturesByPrimitive=new Map}acquire(o){if(!this._texturesByPrimitive.has(o)){const d=(0,Tn.uM)(this._textures,o),c=new Lo.T(this._textureRepository,d.texture.id);return this._texturesByPrimitive.set(o,{result:d,reference:c}),d.texture}return this._texturesByPrimitive.get(o).result.texture}destroy(){this._texturesByPrimitive.forEach(({result:o,reference:d})=>{d.dispose(),o.release()}),this._texturesByPrimitive.clear()}}var Ro=m(46359),bo=m(56683),Ao=m(41840);let qe=class extends Y.Z{constructor(l){super(l),this.loadingMessages=!1,this._messages=null,this._dimensionVisualizations=new Map,this._markerMaterial=new li.X({width:1,anchor:Ro.i5.Tip,color:gt.Z,placement:"begin-end",worldSpace:!0,hideOnShortSegments:!0,hasTip:!0,renderOccluded:ne.yD.OccludeAndTransparent}),this._dimensionLineMaterial=new st.U({width:1,color:gt.Z,renderOccluded:ne.yD.OccludeAndTransparent,markerParameters:this._markerMaterial.parameters}),this._offsetLineMaterial=new st.U({width:1,color:gt.Z,renderOccluded:ne.yD.OccludeAndTransparent,stipplePattern:(0,at.z5)(5),stippleScaleWithLineWidth:!0}),this._smallDimensionLineMaterial=new st.U({width:1,color:gt.Z,renderOccluded:ne.yD.OccludeAndTransparent}),this._smallOffsetLineMaterial=new st.U({width:1,color:gt.Z,renderOccluded:ne.yD.OccludeAndTransparent,stipplePattern:(0,at.z5)(5),stippleScaleWithLineWidth:!0})}get analysis(){return this.analysisViewData.analysis}get visible(){return this.analysisViewData.visible}initialize(){const{textures:l}=this.view.sharedSymbolResources;if((0,g.pC)(l)){const{textureRepository:d}=this.view._stage.renderView,c=new Do(l,d),h=c.acquire("triangle");this.addHandles((0,Ve.kB)(()=>c.destroy())),this._markerMaterial.setParameters({textureId:h.id})}for(const d of this._lineMaterials())this.view._stage.add(d),this.addHandles((0,Ve.kB)(()=>{this.view._stage.remove(d),d.dispose()}));const{computations:o}=this.analysisViewData;for(const d of o)this._addComputation(d);this.addHandles([o.on("change",({added:d,removed:c})=>{for(const h of c)this._removeComputation(h);for(const h of d)this._addComputation(h)}),(0,M.YP)(()=>ae.Z.toUnitRGBA(this.analysis.style.color),d=>{for(const c of this._lineMaterials())c.setParameters({color:d})},M.tX),(0,M.YP)(()=>this.analysis.style.lineSize,d=>{const c=(0,Ce.F2)(d);this._markerMaterial.setParameters({width:c*te.markers.lineSizeFraction}),this._dimensionLineMaterial.setParameters({width:c,markerParameters:this._markerMaterial.parameters});const h=Math.max(c*te.offsetLine.lineSizeFraction,1);this._offsetLineMaterial.setParameters({width:h})},M.tX),(0,M.YP)(()=>({camera:this.view.state.camera,style:zo(this.analysis)}),({camera:d,style:c})=>{for(const[h,p]of this._dimensionVisualizations)p.updateCameraDependentElements(d,h.geometry,c),p.updateLabelStyle(c)}),(0,M.YP)(()=>this.visible,d=>{for(const c of this._dimensionVisualizations.values())c.visible=d})]),this.addHandles([(0,bo.qe)(()=>this._updateMessageBundle()),(0,M.gx)(()=>!this.loadingMessages,()=>{for(const d of this._dimensionVisualizations.values())d.updateUnitsMessages(this._messages)},M.Z_)]),this._updateMessageBundle()}destroy(){this._dimensionVisualizations.forEach(l=>{l.destroy()}),this._dimensionVisualizations.clear()}get testInfo(){return{visualizations:Array.from(this._dimensionVisualizations.values()),disablePartialOcclusion:()=>{for(const l of this._lineMaterials())l.setParameters({renderOccluded:ne.yD.Occlude})}}}_addComputation(l){this._dimensionVisualizations.has(l)||this._dimensionVisualizations.set(l,new Eo({analysis:this.analysis,computation:l,view:this.view,visible:this.visible,markerMaterial:this._markerMaterial,dimensionLineMaterial:this._dimensionLineMaterial,offsetLineMaterial:this._offsetLineMaterial,smallDimensionLineMaterial:this._smallDimensionLineMaterial,smallOffsetLineMaterial:this._smallOffsetLineMaterial,messages:this._messages}))}_removeComputation(l){const o=this._dimensionVisualizations.get(l);(0,g.Wi)(o)||(o.destroy(),this._dimensionVisualizations.delete(l))}_lineMaterials(){return[this._markerMaterial,this._dimensionLineMaterial,this._offsetLineMaterial,this._smallDimensionLineMaterial,this._smallOffsetLineMaterial]}_updateMessageBundle(){var l=this;return(0,A.Z)(function*(){l.loadingMessages=!0;try{l._messages=yield(0,Ao.ME)("esri/core/t9n/Units")}finally{l.loadingMessages=!1}})()}};function zo(l){const{fontSize:o,lineSize:d,textColor:c,textBackgroundColor:h}=l.style;return{fontSize:o,lineSize:d,textBackgroundColor:h.clone(),textColor:c.clone()}}(0,y._)([(0,C.Cb)({constructOnly:!0})],qe.prototype,"analysisViewData",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0,nonNullable:!0})],qe.prototype,"view",void 0),(0,y._)([(0,C.Cb)()],qe.prototype,"analysis",null),(0,y._)([(0,C.Cb)()],qe.prototype,"visible",null),(0,y._)([(0,C.Cb)()],qe.prototype,"loadingMessages",void 0),qe=(0,y._)([(0,ee.j)("esri.views.3d.analysis.Dimension.DimensionVisualization")],qe);let bt=class extends Y.Z{constructor(l){super(l),this.dimension=null,this.length=null}};(0,y._)([(0,C.Cb)({constructOnly:!0,nonNullable:!0})],bt.prototype,"dimension",void 0),(0,y._)([(0,C.Cb)()],bt.prototype,"length",void 0),bt=(0,y._)([(0,ee.j)("esri.views.3d.analysis.LengthDimensionResult")],bt);const Ho=bt;let He=class extends Y.Z{constructor(l){super(l),this.geometry=null,this.elevationAlignedStartPoint=null,this.elevationAlignedEndPoint=null}normalizeCtorArgs(l){const{dimension:o,...d}=l;return{result:new Ho({dimension:o}),...d}}initialize(){this.addHandles([(0,M.YP)(()=>this.dimension.startPoint,l=>this.elevationAlignedStartPoint=this.projectAndAlignPoint(l),M.tX),(0,M.YP)(()=>this.dimension.endPoint,l=>this.elevationAlignedEndPoint=this.projectAndAlignPoint(l),M.tX)])}get dimension(){return this.result.dimension}get length(){return this.result.length}};(0,y._)([(0,C.Cb)({constructOnly:!0,nonNullable:!0})],He.prototype,"result",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0,nonNullable:!0})],He.prototype,"projectAndAlignPoint",void 0),(0,y._)([(0,C.Cb)()],He.prototype,"dimension",null),(0,y._)([(0,C.Cb)()],He.prototype,"length",null),(0,y._)([(0,C.Cb)()],He.prototype,"geometry",void 0),(0,y._)([(0,C.Cb)()],He.prototype,"elevationAlignedStartPoint",void 0),(0,y._)([(0,C.Cb)()],He.prototype,"elevationAlignedEndPoint",void 0),(0,y._)([(0,C.Cb)()],He.prototype,"preConstraintProperties",void 0),(0,y._)([(0,C.Cb)()],He.prototype,"previousConstraint",void 0),He=(0,y._)([(0,ee.j)("esri.views.3d.analysis.LengthDimensionComputation")],He);var di=m(54865),vn=m(95925);const Vo=l=>{let o=class extends l{constructor(...d){super(...d),this.analysis=null,this.tool=null,this.selectedDimension=null,this.interactive=!1,this.visible=null}get results(){return new T.Z}createLengthDimensions(d){throw new Error("Method not implemented.")}};return(0,y._)([(0,C.Cb)({constructOnly:!0})],o.prototype,"view",void 0),(0,y._)([(0,C.Cb)({constructOnly:!0,nonNullable:!0})],o.prototype,"analysis",void 0),(0,y._)([(0,C.Cb)()],o.prototype,"tool",void 0),(0,y._)([(0,C.Cb)({readOnly:!0})],o.prototype,"results",null),(0,y._)([(0,C.Cb)()],o.prototype,"selectedDimension",void 0),(0,y._)([(0,C.Cb)()],o.prototype,"interactive",void 0),(0,y._)([(0,C.Cb)()],o.prototype,"visible",void 0),o=(0,y._)([(0,ee.j)("esri.views.analysis.DimensionAnalysisView")],o),o};let xe=class extends(Vo((0,We.p)(Y.Z))){constructor(l){super(l),this.type="dimension-view-3d",this.tool=null,this.computations=new T.Z,this.selectedDimension=null,this._dimensionsToComputations=new Map,this._placementTask=null,this._projectAndAlignPoint=null}initialize(){this._projectAndAlignPoint=l=>{if((0,g.Wi)(l))return null;const{spatialReference:o,elevationProvider:d}=this.view,c=(0,di.G)(l,o,d);return(0,g.Wi)(c)&&(0,di.e)(this.analysis,l.spatialReference,W.Z.getLogger(this.declaredClass)),c},this.addHandles([(0,vn.Lp)(this,Te),(0,M.on)(()=>this.analysis.dimensions,"after-add",l=>this._onDimensionAdd(l.item),{onListenerAdd:l=>{for(const o of l)this._onDimensionAdd(o)},onListenerRemove:()=>{this._onDimensionsClear()}}),(0,M.on)(()=>this.analysis.dimensions,"after-remove",l=>this._onDimensionRemove(l.item))]),this._analysisVisualization=new qe({analysisViewData:this,view:this.view}),this._analysisController=new tt({analysisViewData:this,view:this.view})}destroy(){this._placementTask=(0,g.IM)(this._placementTask),this._analysisVisualization=(0,g.SC)(this._analysisVisualization),(0,vn.Yq)(this)}get updating(){return this._analysisVisualization?.loadingMessages??!1}get results(){return this.analysis.dimensions.map(l=>this._dimensionsToComputations.get(l).result)}get selectedComputation(){const{selectedDimension:l}=this;return(0,g.Wi)(l)?null:this._dimensionsToComputations.get(l)}get testInfo(){return{visualization:this._analysisVisualization,controller:this._analysisController}}createLengthDimensions(l){var o=this;return(0,A.Z)(function*(){return o.selectedDimension=null,o._placementTask=(0,g.IM)(o._placementTask),o._placementTask=(0,vn.Er)(o,l),o._placementTask.promise})()}_onDimensionAdd(l){const{computations:o,_dimensionsToComputations:d}=this;if(d.has(l))return;const c=new He({dimension:l,projectAndAlignPoint:this._projectAndAlignPoint});o.add(c),d.set(l,c)}_onDimensionRemove(l){const{computations:o,_dimensionsToComputations:d}=this,c=o.findIndex(p=>p.dimension===l),h=o.getItemAt(c);h.dimension===this.selectedDimension&&(this.selectedDimension=null),o.removeAt(c),d.delete(l),(0,g.SC)(h)}_onDimensionsClear(){this.computations.drain(l=>l.destroy()),this._dimensionsToComputations.clear()}};(0,y._)([(0,C.Cb)({readOnly:!0})],xe.prototype,"type",void 0),(0,y._)([(0,C.Cb)()],xe.prototype,"tool",void 0),(0,y._)([(0,C.Cb)()],xe.prototype,"updating",null),(0,y._)([(0,C.Cb)({readOnly:!0})],xe.prototype,"results",null),(0,y._)([(0,C.Cb)({readOnly:!0})],xe.prototype,"computations",void 0),(0,y._)([(0,C.Cb)()],xe.prototype,"selectedDimension",void 0),(0,y._)([(0,C.Cb)()],xe.prototype,"selectedComputation",null),(0,y._)([(0,C.Cb)()],xe.prototype,"_analysisVisualization",void 0),(0,y._)([(0,C.Cb)()],xe.prototype,"_analysisController",void 0),(0,y._)([(0,C.Cb)()],xe.prototype,"_dimensionsToComputations",void 0),(0,y._)([(0,C.Cb)()],xe.prototype,"_placementTask",void 0),xe=(0,y._)([(0,ee.j)("esri.views.3d.analysis.DimensionAnalysisView3D")],xe);const Io=xe},52051:(Le,$,m)=>{m.d($,{T:()=>Y});var A=m(62208),y=m(10699);class Y{constructor(W,g){this._textureRep=W,this._disposed=!1;const M=this._textureRep.acquire(g);(0,y.y8)(M)?(M.then(C=>{this._disposed?(0,A.RY)(C):this._textureRef=C}),this.loadPromise=M):this._textureRef=M}dispose(){this._textureRef=(0,A.RY)(this._textureRef),this._disposed=!0}get glTexture(){return(0,A.pC)(this._textureRef)?this._textureRef.glTexture:null}}},36460:(Le,$,m)=>{m.d($,{c:()=>C});var A=m(17626),y=m(91558),Y=m(86810),T=m(77712),W=m(76898);let g=class extends Y.wq{constructor(){super(...arguments),this.enabled=!0}};(0,A._)([(0,T.Cb)({type:Boolean})],g.prototype,"enabled",void 0),g=(0,A._)([(0,W.j)("esri.views.interactive.snapping.Settings.DefaultSnappingAlgorithm")],g);let M=class extends Y.wq{constructor(De){super(De),this.lineSnapper=new g,this.parallelLineSnapper=new g,this.rightAngleSnapper=new g,this.rightAngleTriangleSnapper=new g,this.shortLineThreshold=15,this.distance=5,this.pointThreshold=1e-6,this.intersectionParallelLineThreshold=1e-6,this.parallelLineThreshold=1e-6,this.touchSensitivityMultiplier=1.5,this.pointOnLineThreshold=1e-6,this.orange=new y.Z([255,127,0]),this.lineHintWidthReference=3,this.lineHintWidthTarget=3,this.lineHintFadedExtensions=.3,this.parallelLineHintWidth=2,this.parallelLineHintLength=24,this.parallelLineHintOffset=1.5,this.rightAngleHintSize=24,this.rightAngleHintOutlineSize=1.5}};(0,A._)([(0,T.Cb)({type:g,constructOnly:!0,nonNullable:!0,json:{write:!0}})],M.prototype,"lineSnapper",void 0),(0,A._)([(0,T.Cb)({type:g,constructOnly:!0,nonNullable:!0,json:{write:!0}})],M.prototype,"parallelLineSnapper",void 0),(0,A._)([(0,T.Cb)({type:g,constructOnly:!0,nonNullable:!0,json:{write:!0}})],M.prototype,"rightAngleSnapper",void 0),(0,A._)([(0,T.Cb)({type:g,constructOnly:!0,nonNullable:!0,json:{write:!0}})],M.prototype,"rightAngleTriangleSnapper",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:-1,max:50,step:1},json:{write:!0}})],M.prototype,"shortLineThreshold",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:-1,max:50,step:1},json:{write:!0}})],M.prototype,"distance",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1e-5},json:{write:!0}})],M.prototype,"pointThreshold",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1e-5},json:{write:!0}})],M.prototype,"intersectionParallelLineThreshold",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1e-5},json:{write:!0}})],M.prototype,"parallelLineThreshold",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:10},json:{write:!0}})],M.prototype,"touchSensitivityMultiplier",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1e-5},json:{write:!0}})],M.prototype,"pointOnLineThreshold",void 0),(0,A._)([(0,T.Cb)({type:y.Z,nonNullable:!0})],M.prototype,"orange",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:10},json:{write:!0}})],M.prototype,"lineHintWidthReference",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:10},json:{write:!0}})],M.prototype,"lineHintWidthTarget",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],M.prototype,"lineHintFadedExtensions",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:10},json:{write:!0}})],M.prototype,"parallelLineHintWidth",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:50},json:{write:!0}})],M.prototype,"parallelLineHintLength",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:5},json:{write:!0}})],M.prototype,"parallelLineHintOffset",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:46},json:{write:!0}})],M.prototype,"rightAngleHintSize",void 0),(0,A._)([(0,T.Cb)({type:Number,nonNullable:!0,range:{min:0,max:6},json:{write:!0}})],M.prototype,"rightAngleHintOutlineSize",void 0),M=(0,A._)([(0,W.j)("esri.views.interactive.snapping.Settings.Defaults")],M);const C=new M},33351:(Le,$,m)=>{m.d($,{Bq:()=>ge,Hk:()=>ee,M8:()=>w,UL:()=>F,aU:()=>Q,jg:()=>he,ku:()=>B});var A=m(62208),y=m(67831),Y=m(99770),T=m(84161),W=m(28093),g=m(36460),M=m(44725),C=m(26362),De=m(396);class ye{constructor(_){this.coordinateHelper=_}intersect(_){return function Ne(D,_){let E=[];if(oe(D)){const{pointXYZ:O}=D;ce(_)?E=(0,C.pk)(_.lineLike,O):me(_)?E=(0,C.l0)(_.centerXYZ,_.radius,O):Re(_)?E=(0,C.hm)(_.planeLike,O):be(_)&&(E=Z(_,D))}else if(ce(D)){const{lineLike:O}=D;oe(_)?E=(0,C.pk)(O,_.pointXYZ):ce(_)?E=(0,C.Lh)(O,_.lineLike):me(_)?E=(0,C.UG)(O,_.centerXYZ,_.radius):Re(_)?E=(0,C.fK)(_.planeLike,O):be(_)&&(E=Z(_,D))}else if(me(D)){const{centerXYZ:O,radius:b}=D;ce(_)?E=(0,C.UG)(_.lineLike,O,b):oe(_)?E=(0,C.l0)(O,b,_.pointXYZ):Re(_)?E=(0,C._w)(_.planeLike,O,b):be(_)&&(E=Z(_,D))}else if(Re(D)){const{planeLike:O,coordinateHelper:b}=D;if(Re(_))return(0,C.qi)(O,_.planeLike).map(N=>new Ee(b,b.fromXYZ(N),D,_));oe(_)?E=(0,C.hm)(O,_.pointXYZ):ce(_)?E=(0,C.fK)(O,_.lineLike):me(_)?E=(0,C._w)(O,_.centerXYZ,_.radius):be(_)&&(E=Z(_,D))}else be(D)&&(E=Z(D,_));return function Se(D,_,E){const O=_.coordinateHelper;return D.map(b=>new ge(O,O.fromXYZ(b),_,E))}(E,D,_)}(this,_)}}class ee extends ye{constructor(_,E){super(_),this.point=E,this.pointXYZ=_.toXYZ(E)}equals(_){return oe(_)&&(0,M.Xv)(this.point,_.point)}check(_){const E=this.coordinateHelper.toXYZ(_,J);return(0,T.d)(E,this.pointXYZ)0?O:E}}class Q extends k{constructor(_,E,O){super(_,E,O,C.Jk.HALF_PLANE)}}class he extends k{constructor(_,E,O){super(_,E,O,C.Jk.PLANE)}}class w extends ye{constructor(_,E,O,b){super(_),this.start=E,this.end=O,this.getZ=b,this.planeLike={start:E,end:O,type:C.Jk.HALF_PLANE}}equals(_){return be(_)&&(0,M.Xv)(this.start,_.start)&&(0,M.Xv)(this.end,_.end)&&this.getZ===_.getZ}check(_){const E=this.coordinateHelper.toXYZ(_,J),O=R(this,E);return(0,T.d)(E,O){var A,y;m.d($,{B:()=>A}),(y=A||(A={}))[y.FEATURE=1]="FEATURE",y[y.SELF=2]="SELF",y[y.ALL=3]="ALL"},75897:(Le,$,m)=>{m.d($,{L:()=>W});var A=m(33351),y=m(44725),Y=m(97979),T=m(62160);class W extends Y.a{constructor(M){super({...M,constraint:new A.ku(M.coordinateHelper,M.edgeStart,M.edgeEnd)})}get hints(){return[new T.w(y.ze.REFERENCE,this.constraint.start,this.constraint.end,this.elevationInfo,this.domain)]}}},97979:(Le,$,m)=>{m.d($,{a:()=>Y});var A=m(26352),y=m(22823);class Y extends y.j{constructor({coordinateHelper:W,targetPoint:g,objectId:M,constraint:C,elevationInfo:De}){super(W,g,C,De,A.B.FEATURE),this.objectId=M}}},22823:(Le,$,m)=>{m.d($,{j:()=>A});class A{constructor(Y,T,W,g,M){this.coordinateHelper=Y,this.targetPoint=T,this.constraint=W,this.elevationInfo=g,this.domain=M}}},62160:(Le,$,m)=>{m.d($,{w:()=>g}),m(8314),m(63290);var Y=m(26352),T=m(44725),W=m(5286);class g extends W.r{constructor(C,De,ye,ee,We=Y.B.ALL,B=!0,ge=!0){super(ee,We),this.type=C,this.lineStart=De,this.lineEnd=ye,this.fadeLeft=B,this.fadeRight=ge}equals(C){return C instanceof g&&this.type===C.type&&(0,T.Xv)(this.lineStart,C.lineStart)&&(0,T.Xv)(this.lineEnd,C.lineEnd)&&this.fadeLeft===C.fadeLeft&&this.fadeRight===C.fadeRight}}},19038:(Le,$,m)=>{m.d($,{n:()=>Y});var A=m(44725),y=m(5286);class Y extends y.r{constructor(W,g,M){super(g,M),this.point=W}equals(W){return W instanceof Y&&(0,A.Xv)(this.point,W.point)}}},5286:(Le,$,m)=>{m.d($,{r:()=>A});class A{constructor(Y,T){this.elevationInfo=Y,this.domain=T}}},44725:(Le,$,m)=>{m.d($,{Bb:()=>g,ML:()=>Ee,Xv:()=>W,Z_:()=>B,_j:()=>ge,fG:()=>M,lQ:()=>C,rh:()=>We,ze:()=>ee});var A=m(62208),y=m(84161),Y=m(28093),T=m(60507);function W(F,k){const Q=F.length===k.length&&F[0]===k[0]&&F[1]===k[1];switch(F.length){case 2:return Q;case 3:return Q&&F[2]===k[2];case 4:return Q&&F[2]===k[2]&&F[3]===k[3]}return!1}function g(F,k){const Q=F.x-k.x,he=F.y-k.y;return Q*Q+he*he}function M(F,k){return Math.sqrt(g(F,k))}function C(F,k,Q){const he=Q.toXYZ(F,De);k.sort((w,R)=>{const Ne=Q.toXYZ(w.targetPoint,ye),Z=(0,y.d)(Ne,he),Se=Q.toXYZ(R.targetPoint,ye);return Z-(0,y.d)(Se,he)})}const De=(0,Y.c)(),ye=(0,Y.c)();var ee,F;function We(F,k){return{point:F.coordinateHelper.vectorToPoint(F.point).toJSON(),distance:F.distance,types:F.types,query:(0,A.pC)(k)?k.toJSON():{where:"1=1"}}}function B(F,k,Q,he){const{coordinateHelper:w,elevationInfo:R}=Q;if(!w.hasZ()||(0,A.Wi)(k)||"3d"!==k.type||(0,A.Wi)(F)||(0,T.BK)(R,he))return F;const Ne=(0,T.zx)(k,F,w.spatialReference,R,he),Z=w.clone(F);return Z[2]=Ne,Z}function ge(F,k,Q,he=T.jG){return{left:B(F.leftVertex.pos,k,Q,he),right:B(F.rightVertex.pos,k,Q,he)}}function Ee(F){return F.createQuery()}(F=ee||(ee={}))[F.TARGET=0]="TARGET",F[F.REFERENCE=1]="REFERENCE",F[F.REFERENCE_EXTENSION=2]="REFERENCE_EXTENSION"},26362:(Le,$,m)=>{m.d($,{Ho:()=>Z,Jk:()=>R,Lh:()=>k,Mm:()=>Ee,UG:()=>F,ZE:()=>ge,_w:()=>M,fK:()=>C,hm:()=>De,l0:()=>he,pk:()=>Q,qi:()=>ye,xO:()=>B,xb:()=>We,z9:()=>ee});var R,H,A=m(21286),y=m(67831),Y=m(99770),T=m(84161),W=m(28093),g=m(396);function M({start:H,end:D,type:_},E,O){const b=[],N=E,re=(0,y.a)(Se,D,H),se=(0,y.a)(oe,H,N),ue=(0,y.v)(re),ve=2*(0,y.h)(re,se),_e=ve*ve-4*ue*((0,y.v)(se)-O*O);if(0===_e){const pe=-ve/(2*ue);(_===R.PLANE||pe>=0)&&b.push((0,y.w)((0,W.f)(0,0,E[2]),H,re,pe))}else if(_e>0){const pe=Math.sqrt(_e),j=(-ve+pe)/(2*ue);(_===R.PLANE||j>=0)&&b.push((0,y.w)((0,W.f)(0,0,E[2]),H,re,j));const K=(-ve-pe)/(2*ue);(_===R.PLANE||K>=0)&&b.push((0,y.w)((0,W.f)(0,0,E[2]),H,re,K))}return b}function C(H,D){const _=H.start,O=(0,y.a)(Se,H.end,_),b=(0,T.s)(oe,-O[1],O[0],0),N=D.start,se=(0,T.y)(ce,D.end,N),ue=(0,T.e)(se,b),ve=(0,T.s)(me,_[0],_[1],0),_e=(0,T.y)(Re,ve,N),pe=(0,T.e)(_e,b);if(Math.abs(ue)=0)&&b.push((0,y.w)((0,W.f)(0,0,E[2]),N,se,j))}else if(pe>0){const j=Math.sqrt(pe),K=(-_e+j)/(2*ve);(_===g.SP.LINE||K>=0)&&b.push((0,y.w)((0,W.f)(0,0,E[2]),N,se,K));const Fe=(-_e-j)/(2*ve);(_===g.SP.LINE||Fe>=0)&&b.push((0,y.w)((0,W.f)(0,0,E[2]),N,se,Fe))}}else{const N=(0,T.y)(Se,D,H);if((0,A.W8)(N[2],0,Z))return b;const se=(0,T.z)(oe,H,N,(E[2]-H[2])/N[2]);if(_===g.SP.RAY){const ue=(0,T.y)(ce,se,H);if((0,T.e)(N,ue)<-Z)return b}for(const ue of he(E,O,se))b.push(ue)}return b}function k(H,D){const _=H.start,O=D.start,b=D.end,N=(0,T.y)(Se,H.end,_),re=(0,T.y)(oe,b,O),se=(0,T.y)(ce,O,_),ue=(0,T.f)(me,N,re),ve=(0,T.e)(se,ue);if(!(0,A.W8)(ve,0,Z))return[];const _e=(0,T.D)(ue);if((0,A.W8)(_e,0,Z))return[];const pe=(0,T.f)(Re,se,re),j=(0,T.e)(pe,ue)/_e,K=(0,T.z)(be,_,N,j);if(H.type===g.SP.RAY){const Fe=(0,T.y)(J,K,_);if((0,T.e)(N,Fe)<-Z)return[]}if(D.type===g.SP.RAY){const Fe=(0,T.y)(J,K,O);if((0,T.e)(re,Fe)<-Z)return[]}return[(0,W.a)(K)]}function Q({start:H,end:D,type:_},E){const O=(0,T.y)(Se,E,H),b=(0,T.y)(oe,D,H),N=(0,T.f)(ce,b,O);if((0,T.D)(N)/(0,T.D)(b){V.r(Y),V.d(Y,{default:()=>S});var E=V(21286),A={};A.defaultNoDataValue=(0,E.oK)(-1/0),A.decode=function(i,t){var o=(t=t||{}).encodedMaskData||null===t.encodedMaskData,e=F(i,t.inputOffset||0,o),c=null!=t.noDataValue?(0,E.oK)(t.noDataValue):A.defaultNoDataValue,n=X(e,t.pixelType||Float32Array,t.encodedMaskData,c,t.returnMask),s={width:e.width,height:e.height,pixelData:n.resultPixels,minValue:e.pixels.minValue,maxValue:e.pixels.maxValue,noDataValue:c};return n.resultMask&&(s.maskData=n.resultMask),t.returnEncodedMask&&e.mask&&(s.encodedMaskData=e.mask.bitset?e.mask.bitset:null),t.returnFileInfo&&(s.fileInfo=b(e,c),t.computeUsedBitDepths&&(s.fileInfo.bitDepths=D(e))),s};var X=function(i,t,o,e,c){var n,s,d=0,m=i.pixels.numBlocksX,h=i.pixels.numBlocksY,y=Math.floor(i.width/m),v=Math.floor(i.height/h),p=2*i.maxZError;o=o||(i.mask?i.mask.bitset:null),n=new t(i.width*i.height),c&&o&&(s=new Uint8Array(i.width*i.height));for(var k,g,x=new Float32Array(y*v),B=0;B<=h;B++){var M=B!==h?v:i.height%h;if(0!==M)for(var P=0;P<=m;P++){var r=P!==m?y:i.width%m;if(0!==r){var I,a,f,w,l=B*i.width*v+P*y,U=i.width-r,u=i.pixels.blocks[d];if(u.encoding<2?(0===u.encoding?I=u.rawData:(O(u.stuffedData,u.bitsPerPixel,u.numValidPixels,u.offset,p,x,i.pixels.maxValue),I=x),a=0):f=2===u.encoding?0:u.offset,o)for(g=0;g>3],w<<=7&l),k=0;k>3]),128&w?(s&&(s[l]=1),n[l++]=u.encoding<2?I[a++]:f):(s&&(s[l]=0),n[l++]=e),w<<=1;l+=U}else if(u.encoding<2)for(g=0;g0){var s=new Uint8Array(Math.ceil(e.width*e.height/8)),d=(n=new DataView(i,t,e.mask.numBytes)).getInt16(0,!0),m=2,h=0;do{if(d>0)for(;d--;)s[h++]=n.getUint8(m++);else{var y=n.getUint8(m++);for(d=-d;d--;)s[h++]=y}d=n.getInt16(m,!0),m+=2}while(m0?1:0),g=p+(e.height%p>0?1:0);e.pixels.blocks=new Array(k*g);for(var x=1e9,B=0,M=0;M3)throw"Invalid block encoding ("+a.encoding+")";if(2!==a.encoding){if(0!==f&&2!==f){if(a.offsetType=f>>=6,2===f)a.offset=n.getInt8(1),r++;else if(1===f)a.offset=n.getInt16(1,!0),r+=2;else{if(0!==f)throw"Invalid block offset type";a.offset=n.getFloat32(1,!0),r+=4}if(x=Math.min(a.offset,x),1===a.encoding)if(f=n.getUint8(r),r++,a.bitsPerPixel=63&f,a.numValidPixelsType=f>>=6,2===f)a.numValidPixels=n.getUint8(r),r++;else if(1===f)a.numValidPixels=n.getUint16(r,!0),r+=2;else{if(0!==f)throw"Invalid valid pixel count type";a.numValidPixels=n.getUint32(r,!0),r+=4}}var w;if(t+=r,3!=a.encoding)if(0===a.encoding){var l=(e.pixels.numBytes-1)/4;if(l!==Math.floor(l))throw"uncompressed block has invalid length";w=new ArrayBuffer(4*l),new Uint8Array(w).set(new Uint8Array(i,t,4*l));for(var U=new Float32Array(w),u=0;u=t)m=h>>>p-t&y,p-=t;else{var x=t-p;m=(h&y)<>>(p=32-x)}n[d]=m{t.r(v),t.d(v,{previewCIMSymbol:()=>L});var R=t(15861),s=t(23841),u=t(35909),y=t(52351),U=t(80991),c=t(71131),W=t(34057);const m=new y.CIMSymbolRasterizer(null,!0),r=(0,s.Wz)(c.b_.size),O=(0,s.Wz)(c.b_.maxSize),j=(0,s.Wz)(c.b_.lineWidth);function B(l){const e=l?.size;return"number"==typeof e?{width:e,height:e}:{width:null!=e&&"object"==typeof e&&"width"in e?e.width:null,height:null!=e&&"object"==typeof e&&"height"in e?e.height:null}}function L(l){return d.apply(this,arguments)}function d(){return(d=(0,R.Z)(function*(l,e={}){const{node:w,opacity:D,symbolConfig:f}=e,T="object"==typeof f&&"isSquareFill"in f&&f.isSquareFill,I=e.cimOptions||e,n=I.geometryType||(0,U.JW)(l?.data?.symbol),i=B(e),{feature:b,fieldMap:S}=I;if(null==i.width||null==i.height){const o=yield u.E0.resolveSymbolOverrides(l.data,b,null,S,n);if(!o)return null;(l=l.clone()).data={type:"CIMSymbolReference",symbol:o},l.data.primitiveOverrides=null;const E=[];u.B$.fetchResources(o,m.resourceManager,E),E.length>0&&(yield Promise.all(E));const{width:P,height:C}=u.B$.getEnvelope(o,null,m.resourceManager);i.width="esriGeometryPolygon"===n?r:"esriGeometryPolyline"===n?j:null!=P&&isFinite(P)?Math.min(P,O):r,i.height="esriGeometryPolygon"===n?r:null!=C&&isFinite(C)?Math.max(Math.min(C,O),1):r}const g=yield m.rasterizeCIMSymbolAsync(l,b,i,T||"esriGeometryPolygon"!==n?y.GeometryStyle.Preview:y.GeometryStyle.Legend,S,n);if(!g)return null;const{width:A,height:G}=g,a=document.createElement("canvas");a.width=A,a.height=G,a.getContext("2d").putImageData(g,0,0);const p=(0,s.F2)(i.width),M=(0,s.F2)(i.height),_=new Image(p,M);_.src=a.toDataURL(),null!=D&&(_.style.opacity=`${D}`);let h=_;return null!=e.effectView&&(h=(0,W.w)([[{shape:{type:"image",x:0,y:0,width:p,height:M,src:_.src},fill:null,stroke:null,offset:[0,0]}]],[p,M],{effectView:e.effectView})),w&&h&&w.appendChild(h),h})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7396.0cbd8753fc2d0680.js b/apps/n/porrtal-io-app/public/angular/7396.0cbd8753fc2d0680.js deleted file mode 100644 index 39b8ec17..00000000 --- a/apps/n/porrtal-io-app/public/angular/7396.0cbd8753fc2d0680.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7396],{7396:(p,u,o)=>{o.r(u),o.d(u,{d:()=>h});var l,c,e,d=o(1719),t={exports:{}};l=t,void 0!==(e=t.exports,Object.defineProperty(e,"__esModule",{value:!0}),c=void(e.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"K",_big_number_suffix_6:"Mio",_big_number_suffix_9:"Mrd",_big_number_suffix_12:"Bio",_big_number_suffix_15:"Brd",_big_number_suffix_18:"Trill",_big_number_suffix_21:"Trd",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd. MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"v. Chr.",_era_bc:"n. Chr.",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Januar",February:"Februar",March:"M\xe4rz",April:"April",May:"Mai",June:"Juni",July:"Juli",August:"August",September:"September",October:"Oktober",November:"November",December:"Dezember",Jan:"Jan.",Feb:"Febr.",Mar:"M\xe4rz",Apr:"Apr.","May(short)":"Mai",Jun:"Juni",Jul:"Juli",Aug:"Aug.",Sep:"Sept.",Oct:"Okt.",Nov:"Nov.",Dec:"Dez.",Sunday:"Sonntag",Monday:"Montag",Tuesday:"Dienstag",Wednesday:"Mittwoch",Thursday:"Donnerstag",Friday:"Freitag",Saturday:"Samstag",Sun:"So.",Mon:"Mo.",Tue:"Di.",Wed:"Mi.",Thu:"Do.",Fri:"Fr.",Sat:"Sa.",_dateOrd:function(r){return r+"."},"Zoom Out":"Herauszoomen",Play:"Abspielen",Stop:"Stop",Legend:"Legende","Click, tap or press ENTER to toggle":"Klicken, tippen oder ENTER dr\xfccken zum Umschalten",Loading:"Wird geladen",Home:"Home",Chart:"Diagramm","Serial chart":"Seriendiagramm","X/Y chart":"X-Y-Diagramm","Pie chart":"Kreisdiagramm","Gauge chart":"Messdiagramm","Radar chart":"Netzdiagramm","Sankey diagram":"Sankey-Diagramm","Chord diagram":"","Flow diagram":"Flussdiagramm","TreeMap chart":"Baumdiagramm",Series:"Serie","Candlestick Series":"Kerzendiagramm","Column Series":"Balkendiagramm","Line Series":"Liniendiagramm","Pie Slice Series":"Kreisdiagramm","X/Y Series":"Punktdiagramm",Map:"Karte","Press ENTER to zoom in":"Dr\xfccke ENTER zum Hereinzoomen","Press ENTER to zoom out":"Dr\xfccke ENTER zum Herauszoomen","Use arrow keys to zoom in and out":"Benutze die Pfeiltasten zum Zoomen","Use plus and minus keys on your keyboard to zoom in and out":"Benutze Plus- und Minustasten zum Zoomen",Export:"Export",Image:"Bild",Data:"Daten",Print:"Drucken","Click, tap or press ENTER to open":"Zum \xd6ffnen klicken, tippen oder ENTER dr\xfccken","Click, tap or press ENTER to print.":"Zum Drucken klicken, tippen oder ENTER dr\xfccken.","Click, tap or press ENTER to export as %1.":"Klicken, tippen oder ENTER dr\xfccken um als %1 zu exportieren",'To save the image, right-click this link and choose "Save picture as..."':'Um das Bild zu speichern, Rechtsklicken und "Bild speichern unter ..." ausw\xe4hlen','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Um das Bild zu speichern, Rechtsklick auf das Vorschaubild links und "Bild speichern unter ..." ausw\xe4hlen',"(Press ESC to close this message)":"ESC dr\xfccken um diese Nachricht zu schlie\xdfen","Image Export Complete":"Bildexport komplett","Export operation took longer than expected. Something might have gone wrong.":"Der Export dauert l\xe4nger als geplant. Vielleicht ist etwas schiefgelaufen.","Saved from":"Gespeichert von",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"TAB nutzen, um Ankerpunkte auszuw\xe4hlen oder linke und rechte Pfeiltaste um die Auswahl zu \xe4ndern","Use left and right arrows to move selection":"Linke und rechte Pfeiltaste nutzen um die Auswahl zu verschieben","Use left and right arrows to move left selection":"Linke und rechte Pfeiltaste nutzen um die linke Auswahl zu verschieben","Use left and right arrows to move right selection":"Linke und rechte Pfeiltaste nutzen um die rechte Auswahl zu verschieben","Use TAB select grip buttons or up and down arrows to change selection":"TAB nutzen, um Ankerpunkte auszuw\xe4hlen oder Pfeiltaste nach oben und unten dr\xfccken, um die Auswahl zu \xe4ndern","Use up and down arrows to move selection":"Pfeiltaste nach oben und unten dr\xfccken, um die Auswahl zu verschieben","Use up and down arrows to move lower selection":"Pfeiltaste nach oben und unten dr\xfccken, um die untere Auswahl zu verschieben","Use up and down arrows to move upper selection":"Pfeiltaste nach oben und unten dr\xfccken, um die obere Auswahl zu verschieben","From %1 to %2":"Von %1 bis %2","From %1":"Von %1","To %1":"Bis %1","No parser available for file: %1":"Kein Parser f\xfcr Datei %1 verf\xfcgbar","Error parsing file: %1":"Fehler beim Parsen von Datei %1","Unable to load file: %1":"Datei %1 konnte nicht geladen werden","Invalid date":"Kein Datum"}))&&(l.exports=c);const h=function f(i,e){for(var r=0;rn[a]})}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7419.7cbee73d579ff087.js b/apps/n/porrtal-io-app/public/angular/7419.7cbee73d579ff087.js deleted file mode 100644 index 13a73e2b..00000000 --- a/apps/n/porrtal-io-app/public/angular/7419.7cbee73d579ff087.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7419],{7419:(f,i,n)=>{n.r(i),n.d(i,{s:()=>p});var u,h,e,s=n(1719),a={exports:{}};u=a,void 0!==(e=a.exports,Object.defineProperty(e,"__esModule",{value:!0}),h=void(e.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n. l.",_era_bc:"pr. n. l.",A:"dop.",P:"odp.",AM:"dop.",PM:"odp.","A.M.":"dop.","P.M.":"odp.",January:"janu\xe1ra",February:"febru\xe1ra",March:"marca",April:"apr\xedla",May:"m\xe1ja",June:"j\xfana",July:"j\xfala",August:"augusta",September:"septembra",October:"okt\xf3bra",November:"novembra",December:"decembra",Jan:"jan",Feb:"feb",Mar:"mar",Apr:"apr","May(short)":"m\xe1j",Jun:"j\xfan",Jul:"j\xfal",Aug:"aug",Sep:"sep",Oct:"okt",Nov:"nov",Dec:"dec",Sunday:"nedela",Monday:"pondelok",Tuesday:"utorok",Wednesday:"streda",Thursday:"\u0161tvrtok",Friday:"piatok",Saturday:"sobota",Sun:"ne",Mon:"po",Tue:"ut",Wed:"st",Thu:"\u0161t",Fri:"pi",Sat:"so",_dateOrd:function(_){return"."},"Zoom Out":"Zv\xe4\u010d\u0161enie",Play:"Prehra\u0165",Stop:"Ukon\u010di\u0165 iter\xe1ciu (Stop)",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"Na\u010d\xedtanie",Home:"Domov",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Export",Image:"Obr\xe1zok",Data:"Data",Print:"Tla\u010d","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const p=function c(t,e){for(var _=0;_o[r]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,s.g)(a.exports)},[a.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7434.a25d3d2784bd4723.js b/apps/n/porrtal-io-app/public/angular/7434.a25d3d2784bd4723.js deleted file mode 100644 index 1b147045..00000000 --- a/apps/n/porrtal-io-app/public/angular/7434.a25d3d2784bd4723.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7434],{67434:(W,M,a)=>{a.r(M),a.d(M,{default:()=>v});var p=a(15861),D=a(17626),d=(a(8314),a(62208)),P=(a(63290),a(90912),a(85931),a(26584),a(76898)),f=a(84682),y=a(36859),U=a(39351),K=a(13112),n=a(55376);class i{constructor(t,r){this.offset=t,this.extent=r}}let l=class extends K.Z{constructor(){super(...arguments),this.type="heatmap",this._tileKeyToFeatureSets=new Map}initialize(){this.handles.add([this.tileStore.on("update",this.onTileUpdate.bind(this))])}update(_,t){var r=this;return(0,p.Z)(function*(){const s=t.schema.processors[0];"heatmap"===s.type&&(0,f.Hg)(r._schema,s)&&(_.mesh=!0,r._schema=s)})()}onTileUpdate(_){for(const t of _.removed)this._tileKeyToFeatureSets.delete(t.key.id)}onTileClear(_){return this._tileKeyToFeatureSets.delete(_.key.id),this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:_.id,data:{clear:!0}})}onTileMessage(_,t,r){var s=this;return(0,p.Z)(function*(){s._tileKeyToFeatureSets.has(_.key.id)||s._tileKeyToFeatureSets.set(_.key.id,new Map);const e=s._tileKeyToFeatureSets.get(_.key.id);if((0,d.pC)(t.addOrUpdate)&&t.addOrUpdate.hasFeatures&&e.set(t.addOrUpdate.instance,t),t.end){const o=[],O=function m(_){const t=_.key,r=new Map,s=256,e=U.I_,o=_.tileInfoView.tileInfo.isWrappable;return r.set((0,n.M)(t,-1,-1,o).id,new i([-e,-e],[e-s,e-s,e,e])),r.set((0,n.M)(t,0,-1,o).id,new i([0,-e],[0,e-s,e,e])),r.set((0,n.M)(t,1,-1,o).id,new i([e,-e],[0,e-s,s,e])),r.set((0,n.M)(t,-1,0,o).id,new i([-e,0],[e-s,0,e,e])),r.set((0,n.M)(t,1,0,o).id,new i([e,0],[0,0,s,e])),r.set((0,n.M)(t,-1,1,o).id,new i([-e,e],[e-s,0,e,s])),r.set((0,n.M)(t,0,1,o).id,new i([0,e],[0,0,e,s])),r.set((0,n.M)(t,1,1,o).id,new i([e,e],[0,0,s,s])),r}(_);s._tileKeyToFeatureSets.forEach((u,E)=>{if(E===_.key.id)u.forEach(h=>(0,d.yw)(h.addOrUpdate,c=>o.push(c)));else if(O.has(E)){const h=O.get(E),[c,R]=h.offset;u.forEach(L=>(0,d.yw)(L.addOrUpdate,j=>{const B=j.transform(c,R,1,1);o.push(B)}))}});const T=(0,y.QM)(o,s._schema.mesh,512,512);return s.remoteClient.invoke("tileRenderer.onTileData",{tileKey:_.key.id,intensityInfo:T},{...r,transferList:[T.matrix]})}})()}onTileError(_,t,r){return this.remoteClient.invoke("tileRenderer.onTileError",{tileKey:_.id,error:t},r)}};l=(0,D._)([(0,P.j)("esri.views.2d.layers.features.processors.HeatmapProcessor")],l);const v=l}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7511.2c397948696f7730.js b/apps/n/porrtal-io-app/public/angular/7511.2c397948696f7730.js deleted file mode 100644 index cb0f3e0d..00000000 --- a/apps/n/porrtal-io-app/public/angular/7511.2c397948696f7730.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7511],{87511:(y,s,t)=>{t.r(s),t.d(s,{QuickStartComponent:()=>c});var i=t(36895),m=t(30878),e=t(46485),l=t(9266),o=t(94650);const d=[{key:"DocsNav",launchAtStartup:!0,displayText:"Docs Nav",paneType:"nav",displayIcon:"map",componentName:"DocsNavComponent",componentModule:()=>Promise.all([t.e(5439),t.e(7001)]).then(t.bind(t,77001))},{displayText:"Create Account",displayIcon:"account_box",componentName:"AccountCreateComponent",componentModule:()=>Promise.all([t.e(5439),t.e(7001)]).then(t.bind(t,77001))},{key:"Account {accountId}",displayText:"Account {accountId}",displayIcon:"account_box",componentName:"AccountDetailComponent",entityType:"account",componentModule:()=>Promise.all([t.e(5439),t.e(7001)]).then(t.bind(t,77001))},{key:"Billing {accountId}",displayText:"Billing {accountId}",displayIcon:"account_box",componentName:"AccountBillingHistoryComponent",entityType:"account",componentModule:()=>Promise.all([t.e(5439),t.e(7001)]).then(t.bind(t,77001))},{key:"AccountNav",launchAtStartup:!0,displayText:"Account Navigation",paneType:"nav",displayIcon:"account_box",componentName:"AccountNavComponent",componentModule:()=>Promise.all([t.e(5439),t.e(7001)]).then(t.bind(t,77001))},{key:"AccountSearch",launchAtStartup:!0,displayText:"Account",paneType:"search",displayIcon:"account_box",componentName:"AccountSearchComponent",componentModule:()=>Promise.all([t.e(5439),t.e(7001)]).then(t.bind(t,77001))}];class c{constructor(a){this.shellStateService=a,this.reactUiLibrary=(0,l.WG)(),this.angularUiLibrary=(0,l.Cn)(),this.bannerData={...l.s6,displayText:`quick-start ${this.angularUiLibrary?"(":""}${this.angularUiLibrary}${this.angularUiLibrary?")":""}`},d.forEach(n=>a.dispatch({type:"registerView",view:n})),a.dispatch({type:"launchStartupViews"})}static#t=this.\u0275fac=function(n){return new(n||c)(o.Y36(m.vv))};static#n=this.\u0275cmp=o.Xpm({type:c,selectors:[["porrtal-io-quick-start"]],standalone:!0,features:[o.jDz],decls:1,vars:1,consts:[[3,"bannerData"]],template:function(n,p){1&n&&o._UZ(0,"porrtal-shell-layout",0),2&n&&o.Q6J("bannerData",p.bannerData)},dependencies:[i.ez,e.Dg],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7534.343e185b9f08dc97.js b/apps/n/porrtal-io-app/public/angular/7534.343e185b9f08dc97.js deleted file mode 100644 index 60071933..00000000 --- a/apps/n/porrtal-io-app/public/angular/7534.343e185b9f08dc97.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7534,3705],{30164:(Z,h,t)=>{t.d(h,{T:()=>p});var l=t(15861);const p={BingMapsLayer:(e=(0,l.Z)(function*(){return(yield t.e(2248).then(t.bind(t,72248))).default}),function(){return e.apply(this,arguments)}),BuildingSceneLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(157),t.e(9410),t.e(8592),t.e(676)]).then(t.bind(t,6189))).default});return function(){return e.apply(this,arguments)}}(),CSVLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(5625).then(t.bind(t,85625))).default});return function(){return e.apply(this,arguments)}}(),DimensionLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8592),t.e(7614)]).then(t.bind(t,17614))).default});return function(){return e.apply(this,arguments)}}(),ElevationLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8592),t.e(5810)]).then(t.bind(t,75810))).default});return function(){return e.apply(this,arguments)}}(),FeatureLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.resolve().then(t.bind(t,80415))).default});return function(){return e.apply(this,arguments)}}(),GroupLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(5964).then(t.bind(t,25964))).default});return function(){return e.apply(this,arguments)}}(),GeoRSSLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(6306).then(t.bind(t,96306))).default});return function(){return e.apply(this,arguments)}}(),GeoJSONLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(2903).then(t.bind(t,72903))).default});return function(){return e.apply(this,arguments)}}(),ImageryLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(1533),t.e(1913),t.e(9217)]).then(t.bind(t,39217))).default});return function(){return e.apply(this,arguments)}}(),ImageryTileLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(1533),t.e(8594),t.e(1913),t.e(6455),t.e(8592),t.e(6329)]).then(t.bind(t,86329))).default});return function(){return e.apply(this,arguments)}}(),IntegratedMeshLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(157),t.e(7867)]).then(t.bind(t,67867))).default});return function(){return e.apply(this,arguments)}}(),KMLLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(2701).then(t.bind(t,12701))).default});return function(){return e.apply(this,arguments)}}(),LineOfSightLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8592),t.e(8572)]).then(t.bind(t,29457))).default});return function(){return e.apply(this,arguments)}}(),MapImageLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(3130),t.e(8887)]).then(t.bind(t,48887))).default});return function(){return e.apply(this,arguments)}}(),MapNotesLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8592),t.e(9114)]).then(t.bind(t,49114))).default});return function(){return e.apply(this,arguments)}}(),OGCFeatureLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(9628),t.e(2955)]).then(t.bind(t,36554))).default});return function(){return e.apply(this,arguments)}}(),OpenStreetMapLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8592),t.e(1591)]).then(t.bind(t,71591))).default});return function(){return e.apply(this,arguments)}}(),OrientedImageryLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(725).then(t.bind(t,60725))).default});return function(){return e.apply(this,arguments)}}(),PointCloudLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(157),t.e(7155)]).then(t.bind(t,7155))).default});return function(){return e.apply(this,arguments)}}(),RouteLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(403),t.e(4940)]).then(t.bind(t,84940))).default});return function(){return e.apply(this,arguments)}}(),SceneLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(157),t.e(8592),t.e(7559)]).then(t.bind(t,27559))).default});return function(){return e.apply(this,arguments)}}(),StreamLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(289).then(t.bind(t,70289))).default});return function(){return e.apply(this,arguments)}}(),SubtypeGroupLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(465).then(t.bind(t,20465))).default});return function(){return e.apply(this,arguments)}}(),TileLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(3130),t.e(8592),t.e(9735)]).then(t.bind(t,59735))).default});return function(){return e.apply(this,arguments)}}(),UnknownLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(6339).then(t.bind(t,56339))).default});return function(){return e.apply(this,arguments)}}(),UnsupportedLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(6240).then(t.bind(t,16240))).default});return function(){return e.apply(this,arguments)}}(),VectorTileLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8364),t.e(8592),t.e(6445)]).then(t.bind(t,10193))).default});return function(){return e.apply(this,arguments)}}(),VoxelLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(157),t.e(6007)]).then(t.bind(t,26007))).default});return function(){return e.apply(this,arguments)}}(),WebTileLayer:function(){var e=(0,l.Z)(function*(){return(yield t.e(8592).then(t.bind(t,28678))).default});return function(){return e.apply(this,arguments)}}(),WFSLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(3774),t.e(8762)]).then(t.bind(t,98762))).default});return function(){return e.apply(this,arguments)}}(),WMSLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8592),t.e(6894)]).then(t.bind(t,46894))).default});return function(){return e.apply(this,arguments)}}(),WMTSLayer:function(){var e=(0,l.Z)(function*(){return(yield Promise.all([t.e(8592),t.e(4223)]).then(t.bind(t,64223))).default});return function(){return e.apply(this,arguments)}}()};var e},88755:(Z,h,t)=>{t.d(h,{Y:()=>u,h:()=>e});var l=t(21726),p=t(84687);function e(f){return{origin:"portal-item",url:(0,l.mN)(f.itemUrl),portal:f.portal||p.Z.getDefault(),portalItem:f,readResourcePaths:[]}}function u(f){return{origin:"portal-item",messages:[],writtenProperties:[],url:f.itemUrl?(0,l.mN)(f.itemUrl):null,portal:f.portal||p.Z.getDefault(),portalItem:f}}},83705:(Z,h,t)=>{t.r(h),t.d(h,{getFirstLayerOrTableId:()=>R,getNumLayersAndTables:()=>D,getSubtypeGroupLayerIds:()=>U,load:()=>M,preprocessFSItemData:()=>j});var l=t(15861),p=t(26584),e=t(44917),u=t(38305),f=t(84687),g=t(55463),v=t(88755),O=t(37281),C=t(39683),E=t(45205);function M(r,s){return S.apply(this,arguments)}function S(){return(S=(0,l.Z)(function*(r,s){const n=r.instance.portalItem;if(n&&n.id)return yield n.load(s),c(r),m(r,s)})).apply(this,arguments)}function c(r){const s=r.instance.portalItem;if(!r.supportedTypes.includes(s.type))throw new p.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:s.type,expectedType:r.supportedTypes.join(", ")})}function m(r,s){return d.apply(this,arguments)}function d(){return(d=(0,l.Z)(function*(r,s){const n=r.instance,a=n.portalItem,{url:o,title:i}=a,y=(0,v.h)(a);if("group"===n.type)return n.read({title:i},y),I(n,r);o&&n.read({url:o},y);const L=yield W(r,s);return L&&n.read(L,y),n.resourceReferences={portalItem:a,paths:y.readResourcePaths},"subtype-group"!==n.type&&n.read({title:i},y),(0,C.y)(n,y)})).apply(this,arguments)}function I(r,s){let n;const a=r.portalItem.type,o=s.layerModuleTypeMap,i=(0,O._$)(r.portalItem,"Oriented Imagery Layer")??!1;switch(a){case"Feature Service":n=i?o.OrientedImageryLayer:o.FeatureLayer;break;case"Stream Service":n=o.StreamLayer;break;case"Scene Service":n=o.SceneLayer;break;case"Feature Collection":n=o.FeatureLayer;break;default:throw new p.Z("portal:unsupported-item-type-as-group",`The item type '${a}' is not supported as a 'IGroupLayer'`)}let y;return n().then(L=>(y=L,W(s))).then(function(){var L=(0,l.Z)(function*(P){let K=()=>y;if("Feature Service"===a){if(U(P=yield j(P,r.portalItem.url)).length){const $=o.SubtypeGroupLayer,J=yield $();K=z=>"SubtypeGroupLayer"===z.layerType?J:y}return T(r,K,P)}return D(P)>0?T(r,K,P):function B(r,s){return r.portalItem.url?(0,E.b)(r.portalItem.url).then(n=>{function a(o){return{id:o.id,name:o.name}}n&&T(r,s,{layers:n.layers?.map(a),tables:n.tables?.map(a)})}):Promise.resolve()}(r,K)});return function(P){return L.apply(this,arguments)}}())}function T(r,s,n){let a=n.layers||[];const o=n.tables||[];if("Feature Collection"===r.portalItem.type&&(a.forEach(i=>{"Table"===i?.layerDefinition?.type&&o.push(i)}),a=a.filter(i=>"Table"!==i?.layerDefinition?.type)),"coverage"in n){const i=function x(r){const{coverage:s}=r;if(!s)return null;const n=new URL(s);if(s.toLowerCase().includes("item.html")){const a=n.searchParams.get("id");return e.Z.fromPortalItem({portalItem:new g.default({id:a,url:n.origin})})}if((0,u.B5)(s))return e.Z.fromArcGISServerUrl({url:s});throw new p.Z("portal:oriented-imagery-layer-coverage","the provided coverage url couldn't be loaded as a layer")}(n);r.add(i)}a.reverse().forEach(i=>{const y=A(r,s(i),n,i);r.add(y)}),o.reverse().forEach(i=>{const y=A(r,s(i),n,i);r.tables.add(y)})}function A(r,s,n,a){const o=new s({portalItem:r.portalItem.clone(),layerId:a.id});if("subtype-group"!==o.type&&(o.sublayerTitleMode="service-name"),"Feature Collection"===r.portalItem.type){const i={origin:"portal-item",portal:r.portalItem.portal||f.Z.getDefault()};o.read(a,i);const y=n.showLegend;null!=y&&o.read({showLegend:y},i)}return o}function W(r,s){if(!1===r.supportsData)return Promise.resolve(void 0);const n=r.instance;return n.portalItem.fetchData("json",s).catch(()=>null).then(a=>{if(function F(r){return"stream"!==r.type&&"oriented-imagery"!==r.type&&"layerId"in r}(n)){let o,i=!0;if(a&&D(a)>0){if(null==n.layerId){const y=U(a);n.layerId="subtype-group"===n.type?y?.[0]:R(a)}o=function G(r,s){const{layerId:n}=s,a=r.layers?.find(o=>o.id===n)||r.tables?.find(o=>o.id===n);return a&&function V(r,s){return!("feature"===s.type&&"layerType"in r&&"SubtypeGroupLayer"===r.layerType||"subtype-group"===s.type&&!("layerType"in r))}(a,s)?a:null}(a,n),o&&(1===D(a)&&(i=!1),null!=a.showLegend&&(o.showLegend=a.showLegend))}return i&&"service-name"!==n.sublayerTitleMode&&(n.sublayerTitleMode="item-title-and-service-name"),o}return a})}function j(r,s){return N.apply(this,arguments)}function N(){return(N=(0,l.Z)(function*(r,s){if(null==r?.layers||null==r?.tables){const n=yield(0,E.b)(s);(r=r||{}).layers=r.layers||n?.layers,r.tables=r.tables||n?.tables}return r})).apply(this,arguments)}function R(r){const s=r.layers;if(s&&s.length)return s[0].id;const n=r.tables;return n&&n.length?n[0].id:null}function D(r){return(r?.layers?.length??0)+(r?.tables?.length??0)}function U(r){const s=[];return r?.layers?.forEach(n=>{"SubtypeGroupLayer"===n.layerType&&s.push(n.id)}),s}},37281:(Z,h,t)=>{t.d(h,{$o:()=>E,Kz:()=>S,_$:()=>O,ck:()=>C,qj:()=>v});var l=t(15861),p=t(55915),e=t(65234),u=t(46367);function f(c){return g.apply(this,arguments)}function g(){return(g=(0,l.Z)(function*(c){const m=c.spatialReference;if(m.isWGS84)return c.clone();if(m.isWebMercator)return(0,u.Sx)(c);const d=e.Z.WGS84;return yield(0,p.iQ)(m,d),(0,p.iV)(c,d)})).apply(this,arguments)}function v(c,m){if(!O(c,m)){const d=c.typeKeywords;d?d.push(m):c.typeKeywords=[m]}}function O(c,m){return!!c.typeKeywords?.includes(m)}function C(c,m){const d=c.typeKeywords;if(d){const I=d.indexOf(m);I>-1&&d.splice(I,1)}}function E(c){return M.apply(this,arguments)}function M(){return(M=(0,l.Z)(function*(c){const m=c.clone().normalize();let d;if(m.length>1)for(const I of m)d?I.width>d.width&&(d=I):d=I;else d=m[0];return f(d)})).apply(this,arguments)}const S={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"}},7534:(Z,h,t)=>{t.r(h),t.d(h,{fromItem:()=>O,selectLayerClassPath:()=>E});var l=t(15861),p=t(26584),e=t(30164),u=t(55463),f=t(83705),g=t(37281),v=t(45205);function O(n){return!n.portalItem||n.portalItem instanceof u.default||(n={...n,portalItem:new u.default(n.portalItem)}),function C(n){return n.load().then(E).then(M)}(n.portalItem).then(a=>{const o={portalItem:n.portalItem,...a.properties};return new a.constructor(o)})}function E(n){switch(n.type){case"Map Service":return function S(n){return function V(n){return(0,v.b)(n.url).then(a=>a.tileInfo)}(n).then(a=>a?{className:"TileLayer"}:{className:"MapImageLayer"})}(n);case"Feature Service":return function c(n){return(0,g._$)(n,"Oriented Imagery Layer")?function U(n){return n.load().then(()=>n.fetchData()).then(a=>a.coverage?{className:"GroupLayer"}:{className:"OrientedImageryLayer",properties:a})}(n):r(n).then(a=>{if("object"==typeof a){const o={};return null!=a.id&&(o.layerId=a.id),{className:a.className||"FeatureLayer",properties:o}}return{className:"GroupLayer"}})}(n);case"Feature Collection":return function d(n){return I.apply(this,arguments)}(n);case"Scene Service":return function m(n){return r(n).then(a=>{if("object"==typeof a){const o={};let i;if(null!=a.id?(o.layerId=a.id,i=`${n.url}/layers/${a.id}`):i=n.url,Array.isArray(n.typeKeywords)&&n.typeKeywords.length>0){const y={IntegratedMesh:"IntegratedMeshLayer","3DObject":"SceneLayer",Point:"SceneLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};for(const L of Object.keys(y))if(n.typeKeywords.includes(L))return{className:y[L]}}return(0,v.b)(i).then(y=>{let L="SceneLayer";const P={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};return y&&y.layerType&&P[y.layerType]&&(L=P[y.layerType]),{className:L,properties:o}})}return!1===a?(0,v.b)(n.url).then(o=>"Voxel"===o?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}):{className:"GroupLayer"}})}(n);case"Image Service":return function B(n){return T.apply(this,arguments)}(n);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:return Promise.reject(new p.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:n.type}))}}function M(n){return(0,e.T[n.className])().then(a=>({constructor:a,properties:n.properties}))}function I(){return(I=(0,l.Z)(function*(n){yield n.load();const a=(0,g._$)(n,"Map Notes"),o=(0,g._$)(n,"Markup");if(a||o)return{className:"MapNotesLayer"};if((0,g._$)(n,"Route Layer"))return{className:"RouteLayer"};const i=yield n.fetchData();return 1===(0,f.getNumLayersAndTables)(i)?{className:"FeatureLayer"}:{className:"GroupLayer"}})).apply(this,arguments)}function T(){return(T=(0,l.Z)(function*(n){yield n.load();const a=n.typeKeywords?.map(P=>P.toLowerCase())??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const o=(yield n.fetchData())?.layerType;if("ArcGISTiledImageServiceLayer"===o)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===o)return{className:"ImageryLayer"};const i=yield(0,v.b)(n.url),y=i.cacheType?.toLowerCase(),L=i.capabilities?.toLowerCase().includes("tilesonly");return"map"===y||L?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}})).apply(this,arguments)}function r(n){return!n.url||n.url.match(/\/\d+$/)?Promise.resolve({}):n.load().then(()=>n.fetchData()).then(function(){var a=(0,l.Z)(function*(o){if("Feature Service"===n.type){const i=s(yield(0,f.preprocessFSItemData)(o,n.url));if("object"==typeof i){const y=(0,f.getSubtypeGroupLayerIds)(o);i.className=y.includes(i.id)?"SubtypeGroupLayer":"FeatureLayer"}return i}return(0,f.getNumLayersAndTables)(o)>0?s(o):(0,v.b)(n.url).then(s)});return function(o){return a.apply(this,arguments)}}())}function s(n){return 1===(0,f.getNumLayersAndTables)(n)&&{id:(0,f.getFirstLayerOrTableId)(n)}}},45205:(Z,h,t)=>{t.d(h,{b:()=>e});var l=t(15861),p=t(84792);function e(f){return u.apply(this,arguments)}function u(){return(u=(0,l.Z)(function*(f){const{data:g}=yield(0,p.default)(f,{responseType:"json",query:{f:"json"}});return g})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7559.c0768dd53d265ddd.js b/apps/n/porrtal-io-app/public/angular/7559.c0768dd53d265ddd.js deleted file mode 100644 index 820762db..00000000 --- a/apps/n/porrtal-io-app/public/angular/7559.c0768dd53d265ddd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7559],{40405:($,w,r)=>{r.d(w,{B:()=>c});var i=r(15861),o=r(22558),l=r(21726),J=r(35948),G=r(34117),A=r(31283),f=r(77712);function x(a){return I[function P(a){return a instanceof Blob?a.type:function T(a){const d=(0,l.Ml)(a);return C[d]||D}(a.url)}(a)]||R}const I={},D="text/plain",R=I[D],C={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const a in C)I[C[a]]=a;var F=r(29840);function c(a){const d=a?.origins??[void 0];return(h,S)=>{const g=function b(a,d,h){if("resource"===a?.type)return function O(a,d,h){const S=(0,G.VZ)(d,h);return{type:String,read:(g,L,j)=>{const y=(0,F.r)(g,L,j);return S.type===String?y:"function"==typeof S.type?new S.type({url:y}):void 0},write:{writer(g,L,j,y){if(!y||!y.resources)return"string"==typeof g?void(L[j]=(0,F.t)(g,y)):void(L[j]=g.write({},y));const M=function te(a){return null==a?null:"string"==typeof a?a:a.url}(g),U=(0,F.t)(M,{...y,verifyItemRelativeUrls:y&&y.verifyItemRelativeUrls?{writtenUrls:y.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},F.M.NO),N=S.type!==String&&(!(0,o.l)(this)||y&&y.origin&&this.originIdOf(h)>(0,A.M9)(y.origin)),Z={object:this,propertyName:h,value:g,targetUrl:U,dest:L,targetPropertyName:j,context:y,params:a};y&&y.portalItem&&U&&!(0,l.YP)(U)?N?function ee(a){const{context:d,targetUrl:h,params:S,value:g,dest:L,targetPropertyName:j}=a;if(!d.portalItem)return;const y=d.portalItem.resourceFromPath(h),M=X(g,h,d),U=x(M),N=(0,l.Ml)(y.path),Z=S?.compress??!1;U===N?(d.resources&&K({...a,resource:y,content:M,compress:Z,updates:d.resources.toUpdate}),L[j]=h):v(a)}(Z):function Y({context:a,targetUrl:d,dest:h,targetPropertyName:S}){a.portalItem&&a.resources&&(a.resources.toKeep.push({resource:a.portalItem.resourceFromPath(d),compress:!1}),h[S]=d)}(Z):y&&y.portalItem&&(null==U||null!=(0,F.i)(U)||(0,l.jc)(U)||N)?v(Z):L[j]=U}}}}(a,d,h);switch(a?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:S,write:g}=F.a;return{read:S,write:g}}}}(a,h,S);for(const L of d){const j=(0,f.CJ)(h,L,S);for(const y in g)j[y]=g[y]}}}function v(a){const{targetUrl:d,params:h,value:S,context:g,dest:L,targetPropertyName:j}=a;if(!g.portalItem)return;const y=(0,F.p)(d),M=y?.filename??(0,J.D)(),U=h?.prefix??y?.prefix,N=X(S,d,g),Z=(0,l.v_)(U,M),W=`${Z}.${x(N)}`,V=g.portalItem.resourceFromPath(W);(0,l.jc)(d)&&g.resources&&g.resources.pendingOperations.push(function n(a){return q.apply(this,arguments)}(d).then(se=>{V.path=`${Z}.${x(se)}`,L[j]=V.itemRelativeUrl}).catch(()=>{}));const re=h?.compress??!1;g.resources&&K({...a,resource:V,content:N,compress:re,updates:g.resources.toAdd}),L[j]=V.itemRelativeUrl}function K({object:a,propertyName:d,updates:h,resource:S,content:g,compress:L}){h.push({resource:S,content:g,compress:L,finish:j=>{!function ye(a,d,h){"string"==typeof a[d]?a[d]=h.url:a[d].url=h.url}(a,d,j)}})}function X(a,d,h){return"string"==typeof a?{url:d}:new Blob([JSON.stringify(a.toJSON(h))],{type:"application/json"})}function q(){return(q=(0,i.Z)(function*(a){const d=(yield Promise.resolve().then(r.bind(r,84792))).default,{data:h}=yield d(a,{responseType:"blob"});return h})).apply(this,arguments)}},27559:($,w,r)=>{r.r(w),r.d(w,{default:()=>Ze});var i=r(15861),o=r(17626),l=r(88879),J=r(73281),C=(r(4832),r(49067),r(96794),r(69747),r(40425),r(69357),r(40342),r(73640),r(33474),r(32088)),F=r(84792),c=r(46160),b=r(26584),O=r(63290),v=r(62208),ee=r(99959),Y=r(10699),K=r(32917),X=r(21726),n=r(77712),te=(r(85931),r(52323)),a=(r(90912),r(68653)),d=r(76898),h=r(31283),S=r(44917),g=r(50085),L=r(65088),j=r(6733),y=r(49286),M=r(6647),U=r(99555),N=r(10157),Z=r(59787),W=r(13812),V=r(83989),re=r(47058),se=r(74711),Ie=r(55911),Ce=r(60466),oe=r(36630),H=r(35031),Se=r(170),ce=r(62667),xe=r(2430),ie=r(86810);let Q=class extends ie.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,o._)([(0,n.Cb)({type:String,json:{read:!0,write:!0}})],Q.prototype,"name",void 0),(0,o._)([(0,n.Cb)({type:String,json:{read:!0,write:!0}})],Q.prototype,"field",void 0),(0,o._)([(0,n.Cb)({type:[Number],json:{read:!0,write:!0}})],Q.prototype,"currentRangeExtent",void 0),(0,o._)([(0,n.Cb)({type:[Number],json:{read:!0,write:!0}})],Q.prototype,"fullRangeExtent",void 0),(0,o._)([(0,n.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],Q.prototype,"type",void 0),Q=(0,o._)([(0,d.j)("esri.layers.support.RangeInfo")],Q);var k,Fe=r(72392),Le=r(58817),je=r(40405),he=r(14889),ne=(r(8314),r(37118)),fe=r(55915);let ae=k=class extends((0,ie.eC)(c.Z.ofType(ne.Z))){constructor(e){super(e)}clone(){return new k(this.items.map(e=>e.clone()))}write(e,s){return this.toJSON(s)}toJSON(e){const s=e?.layer?.spatialReference;return s?this.toArray().map(t=>{if(!s.equals(t.spatialReference)){if(!(0,fe.Up)(t.spatialReference,s))return e&&e.messages&&e.messages.push(new he.Z("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const m=new ne.Z;(0,fe.Wt)(t,m,s),t=m}const u=t.toJSON(e);return delete u.spatialReference,u}).filter(t=>null!=t):(e?.messages&&e.messages.push(new he.Z("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map(t=>t.toJSON(e)))}static fromJSON(e,s){const t=new k;return e.forEach(u=>t.add(ne.Z.fromJSON(u,s))),t}};ae=k=(0,o._)([(0,d.j)("esri.layers.support.PolygonCollection")],ae);const pe=ae;var le,Oe=r(29840);let z=le=class extends ie.wq{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new pe,this._geometriesSource=null,this._handles=new Fe.Z}initialize(){this._handles.add((0,K.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,K.Z_))}destroy(){this._handles.destroy()}readGeometries(e,s,t){this._geometriesSource={url:(0,Oe.f)(e,t),context:t}}loadGeometries(e,s){var t=this;return(0,i.Z)(function*(){if((0,v.Wi)(t._geometriesSource))return;const{url:u,context:m}=t._geometriesSource,E=yield(0,F.default)(u,{responseType:"json",signal:(0,v.U2)(s,"signal")}),B=e.toJSON(),de=E.data.map(ue=>({...ue,spatialReference:B}));t.geometries=pe.fromJSON(de,m),t._geometriesSource=null})()}clone(){return new le({geometries:(0,Le.d9)(this.geometries),spatialRelationship:this.spatialRelationship})}};(0,o._)([(0,n.Cb)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],z.prototype,"spatialRelationship",void 0),(0,o._)([(0,n.Cb)({type:pe,nonNullable:!0,json:{write:!0}}),(0,je.B)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries"})],z.prototype,"geometries",void 0),(0,o._)([(0,a.r)(["web-scene","portal-item"],"geometries")],z.prototype,"readGeometries",null),z=le=(0,o._)([(0,d.j)("esri.layers.support.SceneFilter")],z);const Pe=z;var Ee=r(39683),Te=r(96854),Re=r(35560),Ue=r(49430),De=r(42964),me=r(10023),Ae=r(92236);const Ne=["3DObject","Point"],ge=(0,Ie.v)();let p=class extends((0,j.o1)((0,N.Vt)((0,L.Y)((0,y.q)((0,M.I)((0,U.M)((0,ee.R)((0,g.V)(S.Z))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new c.Z,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0}normalizeCtorArgs(e,s){return"string"==typeof e?{url:e,...s}:e}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,s){const t=this.getFeatureType(s?.feature)?.domains?.[e];return t&&"inherited"!==t.type?t:this.getField(e)?.domain??null}getFeatureType(e){return null!=e&&(0,v.pC)(this.associatedLayer)?this.associatedLayer.getFeatureType(e):null}get types(){return(0,v.pC)(this.associatedLayer)?this.associatedLayer.types??[]:[]}get typeIdField(){return(0,v.pC)(this.associatedLayer)?this.associatedLayer.typeIdField:null}get formTemplate(){return(0,v.pC)(this.associatedLayer)?this.associatedLayer.formTemplate:null}get fieldsIndex(){return new Ce.Z(this.fields)}readNodePages(e,s,t){return"Point"===s.layerType&&(e=s.pointNodePages),null==e||"object"!=typeof e?null:H.U4.fromJSON(e,t)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get geometryType(){return we[this.profile]||"mesh"}set renderer(e){(0,oe.YN)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){const e=(0,v.pC)(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:Z.C,{query:s,editing:{supportsGlobalId:t,supportsRollbackOnFailure:u,supportsUploadWithItemId:m,supportsReturnServiceEditsInSourceSpatialReference:E},data:{supportsZ:B,supportsM:de,isVersioned:ue,supportsAttachment:Me},operations:{supportsEditing:Qe,supportsAdd:Be,supportsUpdate:Ge,supportsDelete:We,supportsQuery:Je,supportsQueryAttachments:Ke}}=e,_=e.operations.supportsChangeTracking,be=(0,Re.Rx)();return{query:s,editing:{supportsGlobalId:t,supportsReturnServiceEditsInSourceSpatialReference:E,supportsRollbackOnFailure:u,supportsGeometryUpdate:!1,supportsUploadWithItemId:m},data:{supportsAttachment:Me,supportsZ:B,supportsM:de,isVersioned:ue},operations:{supportsQuery:Je,supportsQueryAttachments:Ke,supportsEditing:Qe&&_,supportsAdd:be&&Be&&_,supportsDelete:be&&We&&_,supportsUpdate:Ge&&_}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return(0,v.pC)(this.associatedLayer)?this.associatedLayer.infoFor3D:null}get defaultPopupTemplate(){return(0,v.pC)(this.associatedLayer)||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,s){return!e&&s.fields&&s.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,s){return!e&&s.fields&&s.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return(0,v.pC)(this.associatedLayer)?this.associatedLayer.displayField:null}readProfile(e,s){const t=s.store.profile;return null!=t&&ve[t]?ve[t]:(O.Z.getLogger(this.declaredClass).error("Unknown or missing profile",{profile:t,layer:this}),"mesh-pyramids")}load(e){const s=(0,v.pC)(e)?e.signal:null,t=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(Y.r9).then(()=>this._fetchService(s)).then(()=>Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,s),this._setAssociatedFeatureLayer(s),(0,v.pC)(this.filter)?this.filter.loadGeometries(this.spatialReference):null])).then(()=>this._validateElevationInfo()).then(()=>this._applyAssociatedLayerOverrides()).then(()=>this._populateFieldUsageInfo()).then(()=>(0,Ee.y)(this,{origin:"service"},s)).then(()=>(0,oe.YN)(this.renderer,this.fieldsIndex)).then(()=>this.finishLoadEditablePortalLayer(e));return this.addResolvingPromise(t),Promise.resolve(this)}beforeSave(){var e=this;return(0,i.Z)(function*(){(0,v.pC)(e.filter)&&(yield e.load())})()}createQuery(){const e=new Te.Z;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,s){return this._getAssociatedLayerForQuery().then(t=>t.queryExtent(e||this.createQuery(),s))}queryFeatureCount(e,s){return this._getAssociatedLayerForQuery().then(t=>t.queryFeatureCount(e||this.createQuery(),s))}queryFeatures(e,s){return this._getAssociatedLayerForQuery().then(t=>t.queryFeatures(e||this.createQuery(),s)).then(t=>{if(t?.features)for(const u of t.features)u.layer=this,u.sourceLayer=this;return t})}queryCachedAttributes(e,s){var t=this;return(0,i.Z)(function*(){const u=(0,oe.Lk)(t.fieldsIndex,yield(0,me.e)(t,(0,me.V)(t)));return(0,De.xe)(t.parsedUrl.path,t.attributeStorageInfo,e,s,u)})()}queryCachedFeature(e,s){var t=this;return(0,i.Z)(function*(){const u=yield t.queryCachedAttributes(e,[s]);if(!u||0===u.length)throw new b.Z("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const m=new l.Z;return m.attributes=u[0],m.layer=t,m.sourceLayer=t,m})()}queryObjectIds(e,s){return this._getAssociatedLayerForQuery().then(t=>t.queryObjectIds(e||this.createQuery(),s))}queryAttachments(e,s){return this._getAssociatedLayerForQuery().then(t=>t.queryAttachments(e,s))}getFieldUsageInfo(e){const s={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||s:(O.Z.getLogger(this.declaredClass).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),s)}createPopupTemplate(e){return(0,Ue.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return(0,v.pC)(e)&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}_loadAssociatedLayerForQuery(){var e=this;return(0,i.Z)(function*(){if(yield e.load(),(0,v.Wi)(e.associatedLayer))throw new b.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:e});try{yield e.associatedLayer.load()}catch(s){throw new b.Z("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:e,error:s})}return e.associatedLayer})()}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(s=>s.name===e)}queryCachedStatistics(e,s){var t=this;return(0,i.Z)(function*(){if(yield t.load(s),!t.statisticsInfo)throw new b.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const u=t.fieldsIndex.get(e);if(!u)throw new b.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const m of t.statisticsInfo)if(m.name===u.name){const E=(0,X.v_)(t.parsedUrl.path,m.href);return(0,F.default)(E,{query:{f:"json",token:t.apiKey},responseType:"json",signal:s?s.signal:null}).then(B=>B.data)}throw new b.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")})()}saveAs(e,s){var t=this;return(0,i.Z)(function*(){return t._debouncedSaveOperations(N.xp.SAVE_AS,{...s,getTypeKeywords:()=>t._getTypeKeywords(),portalItemLayerType:"scene"},e)})()}save(){var e=this;return(0,i.Z)(function*(){const s={getTypeKeywords:()=>e._getTypeKeywords(),portalItemLayerType:"scene"};return e._debouncedSaveOperations(N.xp.SAVE,s)})()}applyEdits(e,s){var t=this;return(0,i.Z)(function*(){const u=yield r.e(5362).then(r.bind(r,95362));if(yield t.load(),(0,v.Wi)(t.associatedLayer))throw new b.Z(`${t.type}-layer:not-editable`,"Service is not editable");return yield t.associatedLayer.load(),u.applyEdits(t,t.associatedLayer.source,e,s)})()}on(e,s){return super.on(e,s)}validateLayer(e){if(e.layerType&&!Ne.includes(e.layerType))throw new b.Z("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new b.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new b.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function s(t,u){let m=!1,E=!1;if(null==t)m=!0,E=!0;else{const B=u&&u.isGeographic;switch(t){case"east-north-up":case"earth-centered":m=!0,E=B;break;case"vertex-reference-frame":m=!0,E=!B;break;default:m=!1}}if(!m)throw new b.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!E)throw new b.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new b.Z("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const s=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some(m=>m.name===e.name)),t=!!((0,v.pC)(this.associatedLayer)&&this.associatedLayer.fields&&this.associatedLayer.fields.some(m=>m&&e.name===m.name));this._fieldUsageInfo[e.name]={supportsLabelingInfo:s,supportsRenderer:s,supportsPopupTemplate:s||t,supportsLayerQuery:t}}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides()}_applyAssociatedLayerFieldsOverrides(){if((0,v.Wi)(this.associatedLayer)||!this.associatedLayer.fields)return;let e=null;for(const s of this.associatedLayer.fields){const t=this.getField(s.name);t?(!t.domain&&s.domain&&(t.domain=s.domain.clone()),t.editable=s.editable,t.nullable=s.nullable,t.length=s.length):(e||(e=this.fields?this.fields.slice():[]),e.push(s.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if((0,v.Wi)(this.associatedLayer))return;const e=["popupTemplate","popupEnabled"],s=(0,te.vw)(this);for(let t=0;te.popupEnabled&&null!=e.popupTemplate);const s=`this SceneLayer: ${e.title}`;null==e.attributeStorageInfo?O.Z.getLogger(e.declaredClass).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${s}`):O.Z.getLogger(e.declaredClass).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${s}`)})()}_validateElevationInfo(){const e=this.elevationInfo;e&&("mesh-pyramids"===this.profile&&"relative-to-scene"===e.mode&&O.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Mesh scene layers don't support relative-to-scene elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&O.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Scene layers do not support featureExpressionInfo"))}};(0,o._)([(0,n.Cb)({types:{key:"type",base:V.B,typeMap:{selection:re.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],p.prototype,"featureReduction",void 0),(0,o._)([(0,n.Cb)({type:[Q],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],p.prototype,"rangeInfos",void 0),(0,o._)([(0,n.Cb)({json:{read:!1}})],p.prototype,"associatedLayer",void 0),(0,o._)([(0,n.Cb)({type:["show","hide"]})],p.prototype,"listMode",void 0),(0,o._)([(0,n.Cb)({type:["ArcGISSceneServiceLayer"]})],p.prototype,"operationalLayerType",void 0),(0,o._)([(0,n.Cb)({json:{read:!1},readOnly:!0})],p.prototype,"type",void 0),(0,o._)([(0,n.Cb)({...ge.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],p.prototype,"fields",void 0),(0,o._)([(0,n.Cb)()],p.prototype,"types",null),(0,o._)([(0,n.Cb)()],p.prototype,"typeIdField",null),(0,o._)([(0,n.Cb)()],p.prototype,"formTemplate",null),(0,o._)([(0,n.Cb)({readOnly:!0})],p.prototype,"fieldsIndex",null),(0,o._)([(0,n.Cb)({type:xe.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],p.prototype,"floorInfo",void 0),(0,o._)([(0,n.Cb)(ge.outFields)],p.prototype,"outFields",void 0),(0,o._)([(0,n.Cb)({type:H.U4,readOnly:!0,json:{read:!1}})],p.prototype,"nodePages",void 0),(0,o._)([(0,a.r)("service","nodePages",["nodePages","pointNodePages"])],p.prototype,"readNodePages",null),(0,o._)([(0,n.Cb)({type:[H.QI],readOnly:!0})],p.prototype,"materialDefinitions",void 0),(0,o._)([(0,n.Cb)({type:[H.Yh],readOnly:!0})],p.prototype,"textureSetDefinitions",void 0),(0,o._)([(0,n.Cb)({type:[H.H3],readOnly:!0})],p.prototype,"geometryDefinitions",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],p.prototype,"serviceUpdateTimeStamp",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],p.prototype,"attributeStorageInfo",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],p.prototype,"statisticsInfo",void 0),(0,o._)([(0,n.Cb)({type:c.Z.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],p.prototype,"excludeObjectIds",void 0),(0,o._)([(0,n.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],p.prototype,"definitionExpression",void 0),(0,o._)([(0,n.Cb)({type:Pe,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],p.prototype,"filter",void 0),(0,o._)([(0,n.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],p.prototype,"path",void 0),(0,o._)([(0,n.Cb)(W.PV)],p.prototype,"elevationInfo",null),(0,o._)([(0,n.Cb)({type:String})],p.prototype,"geometryType",null),(0,o._)([(0,n.Cb)(W.iR)],p.prototype,"labelsVisible",void 0),(0,o._)([(0,n.Cb)({type:[Se.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:ce.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:ce.r},write:!0}})],p.prototype,"labelingInfo",void 0),(0,o._)([(0,n.Cb)(W.rn)],p.prototype,"legendEnabled",void 0),(0,o._)([(0,n.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,s){if("number"==typeof e&&e>=0&&e<=1)return e;const t=s.layerDefinition?.drawingInfo?.transparency;return void 0!==t?(0,Ae.b)(t):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],p.prototype,"opacity",void 0),(0,o._)([(0,n.Cb)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],p.prototype,"priority",void 0),(0,o._)([(0,n.Cb)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],p.prototype,"semantic",void 0),(0,o._)([(0,n.Cb)({types:C.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],p.prototype,"renderer",null),(0,o._)([(0,n.Cb)({json:{read:!1}})],p.prototype,"cachedDrawingInfo",void 0),(0,o._)([(0,a.r)("service","cachedDrawingInfo")],p.prototype,"readCachedDrawingInfo",null),(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"capabilities",null),(0,o._)([(0,n.Cb)({type:Boolean,json:{read:!1}})],p.prototype,"editingEnabled",null),(0,o._)([(0,n.Cb)({readOnly:!0,json:{write:!1,read:!1}})],p.prototype,"infoFor3D",null),(0,o._)([(0,n.Cb)(W.C_)],p.prototype,"popupEnabled",void 0),(0,o._)([(0,n.Cb)({type:J.Z,json:{name:"popupInfo",write:!0}})],p.prototype,"popupTemplate",void 0),(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"defaultPopupTemplate",null),(0,o._)([(0,n.Cb)({type:String,json:{read:!1}})],p.prototype,"objectIdField",void 0),(0,o._)([(0,a.r)("service","objectIdField",["objectIdField","fields"])],p.prototype,"readObjectIdField",null),(0,o._)([(0,n.Cb)({type:String,json:{read:!1}})],p.prototype,"globalIdField",void 0),(0,o._)([(0,a.r)("service","globalIdField",["globalIdField","fields"])],p.prototype,"readGlobalIdField",null),(0,o._)([(0,n.Cb)({readOnly:!0,type:String,json:{read:!1}})],p.prototype,"displayField",null),(0,o._)([(0,n.Cb)({type:String,json:{read:!1}})],p.prototype,"profile",void 0),(0,o._)([(0,a.r)("service","profile",["store.profile"])],p.prototype,"readProfile",null),(0,o._)([(0,n.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],p.prototype,"normalReferenceFrame",void 0),(0,o._)([(0,n.Cb)(W.YI)],p.prototype,"screenSizePerspectiveEnabled",void 0),p=(0,o._)([(0,d.j)("esri.layers.SceneLayer")],p);const ve={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},we={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},Ze=p},35031:($,w,r)=>{r.d(w,{H3:()=>b,QI:()=>I,U4:()=>x,Yh:()=>R});var i=r(17626),o=r(86810),l=r(77712),A=(r(85931),r(90912),r(55342)),f=r(76898);let x=class extends o.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,i._)([(0,l.Cb)({type:Number})],x.prototype,"nodesPerPage",void 0),(0,i._)([(0,l.Cb)({type:Number})],x.prototype,"rootIndex",void 0),(0,i._)([(0,l.Cb)({type:String})],x.prototype,"lodSelectionMetricType",void 0),x=(0,i._)([(0,f.j)("esri.layer.support.I3SNodePageDefinition")],x);let P=class extends o.wq{constructor(){super(...arguments),this.factor=1}};(0,i._)([(0,l.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],P.prototype,"id",void 0),(0,i._)([(0,l.Cb)({type:Number})],P.prototype,"factor",void 0),P=(0,i._)([(0,f.j)("esri.layer.support.I3SMaterialTexture")],P);let T=class extends o.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,i._)([(0,l.Cb)({type:[Number]})],T.prototype,"baseColorFactor",void 0),(0,i._)([(0,l.Cb)({type:P})],T.prototype,"baseColorTexture",void 0),(0,i._)([(0,l.Cb)({type:P})],T.prototype,"metallicRoughnessTexture",void 0),(0,i._)([(0,l.Cb)({type:Number})],T.prototype,"metallicFactor",void 0),(0,i._)([(0,l.Cb)({type:Number})],T.prototype,"roughnessFactor",void 0),T=(0,i._)([(0,f.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],T);let I=class extends o.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,i._)([(0,A.J)({opaque:"opaque",mask:"mask",blend:"blend"})],I.prototype,"alphaMode",void 0),(0,i._)([(0,l.Cb)({type:Number})],I.prototype,"alphaCutoff",void 0),(0,i._)([(0,l.Cb)({type:Boolean})],I.prototype,"doubleSided",void 0),(0,i._)([(0,A.J)({none:"none",back:"back",front:"front"})],I.prototype,"cullFace",void 0),(0,i._)([(0,l.Cb)({type:P})],I.prototype,"normalTexture",void 0),(0,i._)([(0,l.Cb)({type:P})],I.prototype,"occlusionTexture",void 0),(0,i._)([(0,l.Cb)({type:P})],I.prototype,"emissiveTexture",void 0),(0,i._)([(0,l.Cb)({type:[Number]})],I.prototype,"emissiveFactor",void 0),(0,i._)([(0,l.Cb)({type:T})],I.prototype,"pbrMetallicRoughness",void 0),I=(0,i._)([(0,f.j)("esri.layer.support.I3SMaterialDefinition")],I);let D=class extends o.wq{};(0,i._)([(0,l.Cb)({type:String,json:{read:{source:["name","index"],reader:(O,v)=>O??`${v.index}`}}})],D.prototype,"name",void 0),(0,i._)([(0,A.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],D.prototype,"format",void 0),D=(0,i._)([(0,f.j)("esri.layer.support.I3STextureFormat")],D);let R=class extends o.wq{constructor(){super(...arguments),this.atlas=!1}};(0,i._)([(0,l.Cb)({type:[D]})],R.prototype,"formats",void 0),(0,i._)([(0,l.Cb)({type:Boolean})],R.prototype,"atlas",void 0),R=(0,i._)([(0,f.j)("esri.layer.support.I3STextureSetDefinition")],R);let C=class extends o.wq{};(0,i._)([(0,A.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],C.prototype,"type",void 0),(0,i._)([(0,l.Cb)({type:Number})],C.prototype,"component",void 0),C=(0,i._)([(0,f.j)("esri.layer.support.I3SGeometryAttribute")],C);let F=class extends o.wq{};(0,i._)([(0,A.J)({draco:"draco"})],F.prototype,"encoding",void 0),(0,i._)([(0,l.Cb)({type:[String]})],F.prototype,"attributes",void 0),F=(0,i._)([(0,f.j)("esri.layer.support.I3SGeometryCompressedAttributes")],F);let c=class extends o.wq{constructor(){super(...arguments),this.offset=0}};(0,i._)([(0,l.Cb)({type:Number})],c.prototype,"offset",void 0),(0,i._)([(0,l.Cb)({type:C})],c.prototype,"position",void 0),(0,i._)([(0,l.Cb)({type:C})],c.prototype,"normal",void 0),(0,i._)([(0,l.Cb)({type:C})],c.prototype,"uv0",void 0),(0,i._)([(0,l.Cb)({type:C})],c.prototype,"color",void 0),(0,i._)([(0,l.Cb)({type:C})],c.prototype,"uvRegion",void 0),(0,i._)([(0,l.Cb)({type:C})],c.prototype,"featureId",void 0),(0,i._)([(0,l.Cb)({type:C})],c.prototype,"faceRange",void 0),(0,i._)([(0,l.Cb)({type:F})],c.prototype,"compressedAttributes",void 0),c=(0,i._)([(0,f.j)("esri.layer.support.I3SGeometryBuffer")],c);let b=class extends o.wq{};(0,i._)([(0,A.J)({triangle:"triangle"})],b.prototype,"topology",void 0),(0,i._)([(0,l.Cb)()],b.prototype,"geometryBuffers",void 0),b=(0,i._)([(0,f.j)("esri.layer.support.I3SGeometryDefinition")],b)},59787:($,w,r)=>{r.d(w,{C:()=>i});const i={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},10023:($,w,r)=>{r.d(w,{V:()=>A,e:()=>J});var i=r(15861),o=r(62208),l=r(36630);function J(f){return G.apply(this,arguments)}function G(){return(G=(0,i.Z)(function*(f,x=f.popupTemplate){if((0,o.Wi)(x))return[];const P=yield x.getRequiredFields(f.fieldsIndex),{lastEditInfoEnabled:T}=x,{objectIdField:I,typeIdField:D,globalIdField:R,relationships:C}=f;if(P.includes("*"))return["*"];const F=T?yield(0,l.CH)(f):[],c=(0,l.Q0)(f.fieldsIndex,[...P,...F]);return D&&c.push(D),c&&I&&f.fieldsIndex.has(I)&&!c.includes(I)&&c.push(I),c&&R&&f.fieldsIndex.has(R)&&!c.includes(R)&&c.push(R),C&&C.forEach(b=>{const{keyField:O}=b;c&&O&&f.fieldsIndex.has(O)&&!c.includes(O)&&c.push(O)}),c})).apply(this,arguments)}function A(f,x){return f.popupTemplate?f.popupTemplate:(0,o.pC)(x)&&x.defaultPopupTemplateEnabled&&(0,o.pC)(f.defaultPopupTemplate)?f.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7566.e76b8e604b285679.js b/apps/n/porrtal-io-app/public/angular/7566.e76b8e604b285679.js deleted file mode 100644 index 4d9ff797..00000000 --- a/apps/n/porrtal-io-app/public/angular/7566.e76b8e604b285679.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7566],{57566:(P,S,i)=>{i.r(S),i.d(S,{SceneLayerSnappingSource:()=>p});var c=i(15861),s=i(17626),L=i(14517),y=i(62208),C=i(10699),a=i(77712),g=(i(85931),i(90912),i(76898)),w=i(80542),m=i(54024),b=i(14171),k=i(28093),I=i(42930),E=i(97126),H=i(60507),Z=i(75897),O=i(70211);let h=class extends w.r{constructor(e){super(e),this.availability=0,this._ids=new Set,this._tmpP=(0,k.c)()}destroy(){this._workerHandle.destroy(),this._workerHandle=null}initialize(){this._workerHandle=new V(this.schedule,{fetchAllEdgeLocations:(e,t)=>this._fetchAllEdgeLocations(e,t)})}fetchCandidates(e,t){var r=this;return(0,c.Z)(function*(){const n=e.coordinateHelper,o=n.toXYZ(e.point);r.renderCoordsHelper.toRenderCoords(o,n.spatialReference,o);const d=e.distance,v="number"==typeof d?d:d.distance,u=yield r._workerHandle.invoke({bounds:(0,E.f)(o[0],o[1],o[2],v),types:e.types},t);return u.candidates.sort((f,j)=>f.distance-j.distance),u.candidates.map(f=>r._convertCandidate(n,f))})()}add(e,t){var r=this;return(0,c.Z)(function*(){r._ids.add(e.id),yield r._workerHandle.invokeMethod("add",e,t)})()}remove(e,t){var r=this;return(0,c.Z)(function*(){r._ids.delete(e.id),yield r._workerHandle.invokeMethod("remove",e,t)})()}_convertCandidate(e,t){switch(t.type){case"edge":return new Z.L({coordinateHelper:e,objectId:t.objectId,targetPoint:this._convertRenderCoordinate(e,t.target),edgeStart:this._convertRenderCoordinate(e,t.start),edgeEnd:this._convertRenderCoordinate(e,t.end),elevationInfo:H.jG});case"vertex":return new O.x({coordinateHelper:e,objectId:t.objectId,targetPoint:this._convertRenderCoordinate(e,t.target),elevationInfo:H.jG})}}_convertRenderCoordinate(e,t){return this.renderCoordsHelper.fromRenderCoords(t,this._tmpP,e.spatialReference),e.fromXYZ(this._tmpP)}_fetchAllEdgeLocations(e,t){var r=this;return(0,c.Z)(function*(){const n=[],o=[];for(const{id:d,uid:v}of e.components)r._ids.has(d)&&n.push((0,c.Z)(function*(){const u=yield r.fetchEdgeLocations(d,t.signal);return o.push(u.locations.buffer),{id:d,uid:v,objectIds:u.objectIds,locations:u.locations.buffer,origin:u.origin,type:u.type}})());return{result:{components:(yield Promise.all(n)).filter(({id:d})=>r._ids.has(d))},transferList:o}})()}};(0,s._)([(0,a.Cb)({constructOnly:!0})],h.prototype,"renderCoordsHelper",void 0),(0,s._)([(0,a.Cb)({constructOnly:!0})],h.prototype,"fetchEdgeLocations",void 0),(0,s._)([(0,a.Cb)({constructOnly:!0})],h.prototype,"schedule",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],h.prototype,"availability",void 0),h=(0,s._)([(0,g.j)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],h);class V extends I.q{constructor(t,r){super("SceneLayerSnappingSourceWorker","fetchCandidates",{},t,{strategy:"dedicated",client:r})}}let l=class extends w.r{constructor(e){super(e),this.availability=1,this._abortController=new AbortController}get updating(){return this.updatingHandles.updating}destroy(){this._tracker=(0,y.hw)(this._tracker),this._abortController=(0,y.IM)(this._abortController)}initialize(){var e=this;const{view:t}=this,r=t.resourceController;var n;this._edgeWorker=new b.D(n=>r.schedule(n)),this._workerHandle=new h({renderCoordsHelper:this.view.renderCoordsHelper,schedule:n=>r.schedule(n),fetchEdgeLocations:(n=(0,c.Z)(function*(o,d){if((0,y.Wi)(e._tracker))throw new Error("tracker-not-initialized");return e._tracker.fetchEdgeLocations(o,e._edgeWorker,d)}),function(d,v){return n.apply(this,arguments)})}),this.updatingHandles.addPromise(this._setupLayerView()),this.handles.add([(0,m.ed)(this._workerHandle),(0,m.ed)(this._edgeWorker)])}fetchCandidates(e,t){var r=this;return(0,c.Z)(function*(){return r._workerHandle.fetchCandidates(e,t)})()}refresh(){}_setupLayerView(){var e=this;return(0,c.Z)(function*(){if(e.destroyed)return;const t=(0,y.yw)(e._abortController,n=>n.signal),r=yield e.getLayerView();(0,y.Wi)(r)||(0,C.Hc)(t)||(e._tracker=r.trackSnappingSources({add:(n,o)=>{e.updatingHandles.addPromise(e._workerHandle.add({id:n,bounds:o},t))},remove:n=>{e.updatingHandles.addPromise(e._workerHandle.remove({id:n},t))}}))})()}};(0,s._)([(0,a.Cb)({constructOnly:!0})],l.prototype,"getLayerView",void 0),(0,s._)([(0,a.Cb)({constructOnly:!0})],l.prototype,"view",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],l.prototype,"updating",null),(0,s._)([(0,a.Cb)({readOnly:!0})],l.prototype,"availability",void 0),l=(0,s._)([(0,g.j)("esri.views.interactive.snapping.featureSources.I3SSnappingSource")],l);let p=class extends L.Z{constructor(e){super(e),this.availability=1,this._i3sSources=[]}get updating(){return this._i3sSources.some(e=>e.updating)}destroy(){this._i3sSources.forEach(e=>e.destroy()),this._i3sSources.length=0}initialize(){const{view:e}=this,t=this.layerSource.layer;this._i3sSources="building-scene"===t.type?this._getBuildingSceneI3SSources(e,t):[this._getSceneLayerI3SSource(e,t)]}fetchCandidates(e,t){var r=this;return(0,c.Z)(function*(){const n=yield Promise.all(r._i3sSources.map(o=>o.fetchCandidates(e,t)));return(0,C.k_)(t),n.flat()})()}refresh(){this._i3sSources.forEach(e=>e.refresh())}_getBuildingSceneI3SSources(e,t){return t.allSublayers.toArray().map(r=>{return"building-component"===r.type?new l({getLayerView:(n=(0,c.Z)(function*(){return(yield e.whenLayerView(t)).whenSublayerView(r)}),function(){return n.apply(this,arguments)}),view:e}):null;var n}).filter(y.pC)}_getSceneLayerI3SSource(e,t){return new l({getLayerView:(r=(0,c.Z)(function*(){const n=yield e.whenLayerView(t);return"scene-layer-graphics-3d"===n.type?void 0:n}),function(){return r.apply(this,arguments)}),view:e});var r}};(0,s._)([(0,a.Cb)({constructOnly:!0})],p.prototype,"layerSource",void 0),(0,s._)([(0,a.Cb)({constructOnly:!0})],p.prototype,"view",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],p.prototype,"updating",null),(0,s._)([(0,a.Cb)({readOnly:!0})],p.prototype,"availability",void 0),p=(0,s._)([(0,g.j)("esri.views.interactive.snapping.featureSources.SceneLayerSnappingSource")],p)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7614.5790d0f2f16ee887.js b/apps/n/porrtal-io-app/public/angular/7614.5790d0f2f16ee887.js deleted file mode 100644 index 19363914..00000000 --- a/apps/n/porrtal-io-app/public/angular/7614.5790d0f2f16ee887.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7614],{17614:(T,b,n)=>{n.r(b),n.d(b,{default:()=>A});var x=n(15861),e=n(17626),N=n(85840),d=n(91558),S=n(79608),z=n(86810),m=n(23841),i=n(77712),C=(n(85931),n(90912)),v=n(76898);let p=class extends((0,z.eC)(S.j)){constructor(t){super(t),this.type="simple",this.color=new d.Z("black"),this.lineSize=2,this.fontSize=10,this.textColor=new d.Z("black"),this.textBackgroundColor=new d.Z([255,255,255,.6])}};(0,e._)([(0,i.Cb)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,e._)([(0,i.Cb)({type:d.Z,nonNullable:!0,json:{type:[C.z8],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,e._)([(0,i.Cb)({type:Number,cast:m.t_,nonNullable:!0,range:{min:(0,m.Wz)(1)},json:{write:{isRequired:!0}}})],p.prototype,"lineSize",void 0),(0,e._)([(0,i.Cb)({type:Number,cast:m.t_,nonNullable:!0,json:{write:{isRequired:!0}}})],p.prototype,"fontSize",void 0),(0,e._)([(0,i.Cb)({type:d.Z,nonNullable:!0,json:{type:[C.z8],write:{isRequired:!0}}})],p.prototype,"textColor",void 0),(0,e._)([(0,i.Cb)({type:d.Z,nonNullable:!0,json:{type:[C.z8],write:{isRequired:!0}}})],p.prototype,"textBackgroundColor",void 0),p=(0,e._)([(0,v.j)("esri.analysis.DimensionSimpleStyle")],p);const g=p;var P=n(69186),O=n(46160),R=n(89726),s=n(62208),c=n(32917),Z=n(2004),E=n(55915);const f=O.Z.ofType(P.Z);let a=class extends N.Z{constructor(t){super(t),this.type="dimension",this.style=new g,this.extent=null}initialize(){this.addHandles((0,c.YP)(()=>this._computeExtent(),t=>{((0,s.Wi)(t)||(0,s.Wi)(t.pending))&&this._set("extent",(0,s.pC)(t)?t.extent:null)},c.tX))}get dimensions(){return this._get("dimensions")||new f}set dimensions(t){this._set("dimensions",(0,R.Z)(t,this.dimensions,f))}get spatialReference(){for(const t of this.dimensions){if((0,s.pC)(t.startPoint))return t.startPoint.spatialReference;if((0,s.pC)(t.endPoint))return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce((t,o)=>(t.push(o.startPoint,o.endPoint),t),[])}waitComputeExtent(){var t=this;return(0,x.Z)(function*(){const o=t._computeExtent();return(0,s.pC)(o)?(0,s.Wg)(o.pending):null})()}_computeExtent(){const t=this.spatialReference;if((0,s.Wi)(t))return{pending:null,extent:null};const o=[];for(const l of this.dimensions)(0,s.pC)(l.startPoint)&&o.push(l.startPoint),(0,s.pC)(l.endPoint)&&o.push(l.endPoint);const y=(0,E.JY)(o,t);if((0,s.pC)(y.pending))return{pending:y.pending,extent:null};let h=null;return(0,s.pC)(y.geometries)&&(h=y.geometries.reduce((l,u)=>(0,s.Wi)(l)?(0,s.pC)(u)?Z.Z.fromPoint(u):null:(0,s.pC)(u)?l.union(Z.Z.fromPoint(u)):l,null)),{pending:null,extent:h}}clear(){this.dimensions.removeAll()}};(0,e._)([(0,i.Cb)({type:["dimension"]})],a.prototype,"type",void 0),(0,e._)([(0,i.Cb)({cast:R.R,type:f,nonNullable:!0})],a.prototype,"dimensions",null),(0,e._)([(0,i.Cb)({readOnly:!0})],a.prototype,"spatialReference",null),(0,e._)([(0,i.Cb)({types:{key:"type",base:null,typeMap:{simple:g}},nonNullable:!0})],a.prototype,"style",void 0),(0,e._)([(0,i.Cb)({value:null,readOnly:!0})],a.prototype,"extent",void 0),(0,e._)([(0,i.Cb)({readOnly:!0})],a.prototype,"requiredPropertiesForEditing",null),a=(0,e._)([(0,v.j)("esri.analysis.DimensionAnalysis")],a);const j=a;var w=n(99959),D=n(99433),L=n(44917),W=n(49286);let r=class extends((0,W.q)((0,w.R)(L.Z))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new j,this.opacity=1,t){const{source:o,style:y}=t;o&&y&&(o.style=y)}}initialize(){this.addHandles([(0,c.YP)(()=>this.source,(t,o)=>{(0,s.pC)(o)&&o.parent===this&&(o.parent=null),(0,s.pC)(t)&&(t.parent=this)},c.tX)])}load(){var t=this;return(0,x.Z)(function*(){return t.addResolvingPromise(t.source.waitComputeExtent()),t})()}get spatialReference(){return(0,s.Wg)(this.source.spatialReference)}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new j)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,o,y,h){o.dimensions=t.filter(({startPoint:l,endPoint:u})=>(0,s.pC)(l)&&(0,s.pC)(u)).map(l=>l.toJSON(h)).toJSON()}};(0,e._)([(0,i.Cb)({json:{read:!1},readOnly:!0})],r.prototype,"type",void 0),(0,e._)([(0,i.Cb)({type:["ArcGISDimensionLayer"]})],r.prototype,"operationalLayerType",void 0),(0,e._)([(0,i.Cb)({nonNullable:!0})],r.prototype,"source",void 0),(0,e._)([(0,i.Cb)({readOnly:!0})],r.prototype,"spatialReference",null),(0,e._)([(0,i.Cb)({types:{key:"type",base:null,typeMap:{simple:g}},json:{write:{ignoreOrigin:!0}}})],r.prototype,"style",null),(0,e._)([(0,i.Cb)({readOnly:!0})],r.prototype,"fullExtent",null),(0,e._)([(0,i.Cb)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],r.prototype,"opacity",void 0),(0,e._)([(0,i.Cb)({type:["show","hide"]})],r.prototype,"listMode",void 0),(0,e._)([(0,i.Cb)({type:O.Z.ofType(P.Z),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],r.prototype,"dimensions",null),(0,e._)([(0,D.c)("web-scene","dimensions")],r.prototype,"writeDimensions",null),r=(0,e._)([(0,v.j)("esri.layers.DimensionLayer")],r);const A=r}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7708.e62569a04e3c4ba1.js b/apps/n/porrtal-io-app/public/angular/7708.e62569a04e3c4ba1.js deleted file mode 100644 index 95b09928..00000000 --- a/apps/n/porrtal-io-app/public/angular/7708.e62569a04e3c4ba1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7708],{67708:(g,_,s)=>{s.r(_),s.d(_,{i:()=>f});var m,c,e,d=s(1719),o={exports:{}};m=o,void 0!==(e=o.exports,Object.defineProperty(e,"__esModule",{value:!0}),c=void(e.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"HH:mm:ss SSS",_duration_millisecond_day:"d'g' mm:ss SSS",_duration_millisecond_week:"d'g' mm:ss SSS",_duration_millisecond_month:"M'm' dd'g' mm:ss SSS",_duration_millisecond_year:"y'a' MM'm' dd'g' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'g' hh:mm:ss",_duration_second_week:"d'g' hh:mm:ss",_duration_second_month:"M'm' dd'g' hh:mm:ss",_duration_second_year:"y'a' MM'm' dd'g' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'g' hh:mm",_duration_minute_week:"d'g' hh:mm",_duration_minute_month:"M'm' dd'g' hh:mm",_duration_minute_year:"y'a' MM'm' dd'g' hh:mm",_duration_hour:"hh'o'",_duration_hour_day:"d'g' hh'o'",_duration_hour_week:"d'g' hh'o'",_duration_hour_month:"M'm' dd'g' hh'o'",_duration_hour_year:"y'a' MM'm' dd'g' hh'o'",_duration_day:"d'g'",_duration_day_week:"d'g'",_duration_day_month:"M'm' dd'g'",_duration_day_year:"y'a' MM'm' dd'g'",_duration_week:"w's'",_duration_week_month:"w's'",_duration_week_year:"w's'",_duration_month:"M'm'",_duration_month_year:"y'a' MM'm'",_duration_year:"y'a'",_era_ad:"A.C.",_era_bc:"D.C.",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Gennaio",February:"Febbraio",March:"Marzo",April:"Aprile",May:"Maggio",June:"Giugno",July:"Luglio",August:"Agosto",September:"Settembre",October:"Ottobre",November:"Novembre",December:"Dicembre",Jan:"Gen",Feb:"Feb",Mar:"Mar",Apr:"Apr","May(short)":"Mag",Jun:"Giu",Jul:"Lug",Aug:"Ago",Sep:"Set",Oct:"Ott",Nov:"Nov",Dec:"Dic",Sunday:"Domenica",Monday:"Luned\xec",Tuesday:"Marted\xec",Wednesday:"Mercoled\xec",Thursday:"Gioved\xec",Friday:"Venerd\xec",Saturday:"Sabato",Sun:"Dom",Mon:"Lun",Tue:"Mar",Wed:"Mer",Thu:"Gio",Fri:"Ven",Sat:"Sab",_dateOrd:function(a){return a+"\xb0"},"Zoom Out":"Riduci zoom",Play:"Avvia",Stop:"Ferma",Legend:"Legenda","Click, tap or press ENTER to toggle":"Clicca, tappa o premi ENTER per attivare",Loading:"Caricamento",Home:"Home",Chart:"Grafico","Serial chart":"Grafico combinato","X/Y chart":"Grafico X/Y","Pie chart":"Grafico a torta","Gauge chart":"Diagramma di livello","Radar chart":"Grafico radar","Sankey diagram":"Diagramma di Sankey","Flow diagram":"Diagramma di flusso","Chord diagram":"Diagramma a corda","TreeMap chart":"Mappa ad albero","Sliced chart":"Grafico a fette",Series:"Serie","Candlestick Series":"Serie a candele","OHLC Series":"Serie OHLC","Column Series":"Serie a colonne","Line Series":"Serie a linee","Pie Slice Series":"Serie a fetta di torta","Funnel Series":"Serie ad imbuto","Pyramid Series":"Serie a piramide","X/Y Series":"Serie X/Y",Map:"Mappa","Press ENTER to zoom in":"Premi ENTER per ingrandire","Press ENTER to zoom out":"Premi ENTER per ridurre","Use arrow keys to zoom in and out":"Usa le frecce per ingrandire e ridurre","Use plus and minus keys on your keyboard to zoom in and out":"Utilizza i tasti pi\xf9 e meno sulla tastiera per ingrandire e ridurre",Export:"Esporta",Image:"Immagine",Data:"Dati",Print:"Stampa","Click, tap or press ENTER to open":"Clicca, tappa o premi ENTER per aprire","Click, tap or press ENTER to print.":"Clicca, tappa o premi ENTER per stampare.","Click, tap or press ENTER to export as %1.":"Clicca, tappa o premi ENTER per esportare come %1.",'To save the image, right-click this link and choose "Save picture as..."':'Per salvare l\'immagine, fai clic con il pulsante destro del mouse su questo link e seleziona "Salva immagine come ..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Per salvare l\'immagine, fare clic con il tasto destro del mouse sulla miniatura e selezionare "Salva immagine come ..."',"(Press ESC to close this message)":"(Premere ESC per chiudere questo messaggio)","Image Export Complete":"Esportazione immagine completata","Export operation took longer than expected. Something might have gone wrong.":"L'operazione di esportazione ha richiesto pi\xf9 tempo del previsto. Potrebbe esserci qualche problema.","Saved from":"Salvato da",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"Utilizzare TAB per selezionare i punti di ancoraggio o i tasti freccia sinistra e destra per modificare la selezione","Use left and right arrows to move selection":"Utilizzare le frecce sinistra e destra per spostare la selezione","Use left and right arrows to move left selection":"Utilizzare frecce destra e sinistra per spostare la selezione sinistra","Use left and right arrows to move right selection":"Utilizzare frecce destra e sinistra per spostare la selezione destra","Use TAB select grip buttons or up and down arrows to change selection":"Utilizzare TAB per selezionare i punti di ancoraggio o premere le frecce su e gi\xf9 per modificare la selezione","Use up and down arrows to move selection":"Utilizzare le frecce su e gi\xf9 per spostare la selezione","Use up and down arrows to move lower selection":"Utilizzare le frecce su e gi\xf9 per spostare la selezione inferiore","Use up and down arrows to move upper selection":"Utilizzare le frecce su e gi\xf9 per spostare la selezione superiore","From %1 to %2":"Da %1 a %2","From %1":"Da %1","To %1":"a %1","No parser available for file: %1":"Nessun parser disponibile per il file: %1","Error parsing file: %1":"Errore durante l'analisi del file: %1","Unable to load file: %1":"Impossibile caricare il file: %1","Invalid date":"Data non valida"}))&&(m.exports=c);const f=function p(t,e){for(var a=0;ar[i]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(o.exports)},[o.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7728.e87516bc5f5415e4.js b/apps/n/porrtal-io-app/public/angular/7728.e87516bc5f5415e4.js deleted file mode 100644 index 89e44567..00000000 --- a/apps/n/porrtal-io-app/public/angular/7728.e87516bc5f5415e4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7728],{36592:(X,C,u)=>{u.d(C,{Q:()=>j});var R=u(85931),P=u(62208),v=u(77029),B=u(14259);class j{constructor(e=9,t){this._compareMinX=O,this._compareMinY=p,this._toBBox=s=>s,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),L.prune(),W.prune(),T.prune(),Y.prune()}all(e){this._all(this._data,e)}search(e,t){let s=this._data;const o=this._toBBox;if(S(e,s))for(L.clear();s;){for(let r=0,a=s.children.length;r0;){if(s||(s=(0,P.j0)(T.pop()),o=T.data[T.length-1],r=Y.pop()??0,a=!0),s.leaf&&(t=(0,R.cq)(s.children,e,s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),T.push(s),this._condense(T),this;a||s.leaf||!D(s,d)?o?(r++,s=o.children[r],a=!1):s=null:(T.push(s),Y.push(r),r=0,o=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let s=e;for(W.clear();s;){if(!0===s.leaf)for(const o of s.children)t(o);else W.pushArray(s.children);s=W.pop()??null}}_build(e,t,s,o){const r=s-t+1;let a=this._maxEntries;if(r<=a){const h=new c(e.slice(t,s+1));return E(h,this._toBBox),h}o||(o=Math.ceil(Math.log(r)/Math.log(a)),a=Math.ceil(r/a**(o-1)));const d=new y([]);d.height=o;const _=Math.ceil(r/a),M=_*Math.ceil(Math.sqrt(a));K(e,t,s,M,this._compareMinX);for(let h=t;h<=s;h+=M){const g=Math.min(h+M-1,s);K(e,h,g,_,this._compareMinY);for(let A=h;A<=g;A+=_){const w=Math.min(A+_-1,g);d.children.push(this._build(e,A,w,o-1))}}return E(d,this._toBBox),d}_chooseSubtree(e,t,s,o){for(;o.push(t),!0!==t.leaf&&o.length-1!==s;){let r,a=1/0,d=1/0;for(let _=0,M=t.children.length;_=0&&T.data[t].children.length>this._maxEntries;)this._split(T,t),t--;this._adjustParentBBoxes(r,T,t)}_split(e,t){const s=e.data[t],o=s.children.length,r=this._minEntries;this._chooseSplitAxis(s,r,o);const a=this._chooseSplitIndex(s,r,o);if(!a)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const d=s.children.splice(a,s.children.length-a),_=s.leaf?new c(d):new y(d);_.height=s.height,E(s,this._toBBox),E(_,this._toBBox),t?e.data[t-1].children.push(_):this._splitRoot(s,_)}_splitRoot(e,t){this._data=new y([e,t]),this._data.height=e.height+1,E(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let o,r,a;o=r=1/0;for(let d=t;d<=s-t;d++){const _=x(e,0,d,this._toBBox),M=x(e,d,s,this._toBBox),h=b(_,M),g=m(_)+m(M);h=t;M--){const h=e.children[M];F(d,e.leaf?r(h):h),_+=i(d)}return _}_adjustParentBBoxes(e,t,s){for(let o=s;o>=0;o--)F(t.data[o],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const o=e.data[t-1],r=o.children;r.splice((0,R.cq)(r,s,r.length,o.indexHint),1)}else this.clear();else E(s,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function E(n,e){x(n,0,n.children.length,e,n)}function x(n,e,t,s,o){o||(o=new c([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let r,a=e;a=n.minX&&e.maxY>=n.minY}function K(n,e,t,s,o){const r=[e,t];for(;r.length;){const a=(0,P.j0)(r.pop()),d=(0,P.j0)(r.pop());if(a-d<=s)continue;const _=d+Math.ceil((a-d)/s/2)*s;(0,B.q)(n,_,d,a,o),r.push(d,_,_,a)}}const L=new v.Z,W=new v.Z,T=new v.Z,Y=new v.Z({deallocator:void 0});class U{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class l extends U{constructor(){super(...arguments),this.height=1,this.indexHint=new R.SO}}class c extends l{constructor(e){super(),this.children=e,this.leaf=!0}}class y extends l{constructor(e){super(),this.children=e,this.leaf=!1}}},61256:(X,C,u)=>{u.d(C,{H:()=>F});var R=u(8314),P=u(36592),v=u(65401);const j={minX:0,minY:0,maxX:0,maxY:0};class F{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new P.Q(9,(0,R.Z)("esri-csp-restrictions")?p=>({minX:p[0],minY:p[1],maxX:p[2],maxY:p[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const p=new Array(this._idByBounds.size);let m=0;this._idByBounds.forEach((i,f)=>{p[m++]=f}),this._indexInvalid=!1,this._index.clear(),this._index.load(p)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(p=>this._idByBounds.has(p))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const p=(0,v.cS)();for(const m of this._boundsById.values())m&&(p[0]=Math.min(m[0],p[0]),p[1]=Math.min(m[1],p[1]),p[2]=Math.max(m[2],p[2]),p[3]=Math.max(m[3],p[3]));return p}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(p){const m=this._boundsById.get(p);this._boundsById.delete(p),m&&(this._idByBounds.delete(m),this._indexInvalid||this._index.remove(m))}forEachInBounds(p,m){this._loadIndex(),function x(O,p,m){(function E(O){j.minX=O[0],j.minY=O[1],j.maxX=O[2],j.maxY=O[3]})(p),O.search(j,m)}(this._index,p,i=>m(this._idByBounds.get(i)))}get(p){return this._boundsById.get(p)}has(p){return this._boundsById.has(p)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(p,m){if(!this._indexInvalid){const i=this._boundsById.get(p);i&&(this._index.remove(i),this._idByBounds.delete(i))}this._boundsById.set(p,m),m&&(this._idByBounds.set(m,p),this._indexInvalid||(this._boundsToLoad.push(m),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},3579:(X,C,u)=>{u.d(C,{Z:()=>p});var R=u(26584),P=u(61885),v=u(63290),B=u(62208),j=u(5548),E=u(65401),x=u(82054),F=u(61256),O=u(92794);class p{constructor(i){this.geometryInfo=i,this._boundsStore=new F.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new P.Z,this.featureAdapter=O.n}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let i=0;return this._featuresById.forEach(f=>{(0,B.pC)(f.geometry)&&f.geometry.coords&&(i+=f.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:i/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(i){this._add(i),this._emitChanged()}addMany(i){for(const f of i)this._add(f);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(i){const f=this._featuresById.get(i);return f?(this._remove(f),this._emitChanged(),f):null}removeManyById(i){this._boundsStore.invalidateIndex();for(const f of i){const b=this._featuresById.get(f);b&&this._remove(b)}this._emitChanged()}forEachBounds(i,f,b){for(const D of i){const S=this._boundsStore.get(D.objectId);S&&f((0,j.JR)(b,S))}}getFeature(i){return this._featuresById.get(i)}has(i){return this._featuresById.has(i)}toArray(){return Array.from(this._featuresById.values())}forEach(i){this._featuresById.forEach(f=>i(f))}forEachInBounds(i,f){this._boundsStore.forEachInBounds(i,b=>{f(this._featuresById.get(b))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let i=!1;this._featuresById.forEach((f,b)=>{this._markedIds.has(b)||(i=!0,this._remove(f))}),this._markedIds.clear(),i&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(i){if(!i)return;const f=i.objectId;if(null==f)return void v.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new R.Z("featurestore:invalid-feature","feature id is missing",{feature:i}));const b=this._featuresById.get(f);let D;if(this._markedIds.add(f),b?(i.displayId=b.displayId,D=this._boundsStore.get(f),this._boundsStore.delete(f)):(0,B.pC)(this.onFeatureAdd)&&this.onFeatureAdd(i),(0,B.Wi)(i.geometry)||!i.geometry.coords||!i.geometry.coords.length)return this._boundsStore.set(f,null),void this._featuresById.set(f,i);D=(0,x.$)((0,B.pC)(D)?D:(0,E.Ue)(),i.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,B.pC)(D)&&this._boundsStore.set(f,D),this._featuresById.set(f,i)}_remove(i){return(0,B.pC)(this.onFeatureRemove)&&this.onFeatureRemove(i),this._markedIds.delete(i.objectId),this._boundsStore.delete(i.objectId),this._featuresById.delete(i.objectId),i}}},92794:(X,C,u)=>{u.d(C,{n:()=>j});var R=u(62208),P=u(77044),v=u(66385),B=u(88071);const j={getObjectId:E=>E.objectId,getAttributes:E=>E.attributes,getAttribute:(E,x)=>E.attributes[x],cloneWithGeometry:(E,x)=>new v.u_(x,E.attributes,null,E.objectId),getGeometry:E=>E.geometry,getCentroid:(E,x)=>((0,R.Wi)(E.centroid)&&(E.centroid=(0,P.Y)(new B.Z,E.geometry,x.hasZ,x.hasM)),E.centroid)}},7728:(X,C,u)=>{u.r(C),u.d(C,{default:()=>Y});var R=u(15861),P=u(26584),v=u(62208),B=u(91179),j=u(37053),E=u(82054),x=u(1476),F=u(3579),O=u(82959),p=u(58175),m=u(56554),i=u(35775),f=u(60466),b=u(85),D=u(36630);const S=j.Zn,K={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:j.Zn},L={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!1,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0}};function T(U){return(0,B.wp)(U)?null!=U.m:!!U.hasM}class Y{constructor(){this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine&&this._queryEngine&&this._queryEngine.destroy(),this._queryEngine=this._fieldsIndex=this._createDefaultAttributes=null}load(l){var c=this;return(0,R.Z)(function*(){const y=[],{features:n}=l,e=c._inferLayerProperties(n,l.fields),t=l.fields||[],s=null!=l.hasM?l.hasM:e.hasM,o=null!=l.hasZ?l.hasZ:e.hasZ,r=!l.spatialReference&&!e.spatialReference,a=r?S:l.spatialReference||e.spatialReference,d=r?K:null,_=l.geometryType||e.geometryType;let h=l.objectIdField||e.objectIdField,g=l.timeInfo;if(_&&(r&&y.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!_))throw new P.Z("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(!h)throw new P.Z("feature-layer:missing-property","objectIdField not set and couldn't be found in the provided fields");if(e.objectIdField&&h!==e.objectIdField&&(y.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${h}" doesn't match the field name "${e.objectIdField}", found in the provided fields`}),h=e.objectIdField),h&&!e.objectIdField){let I=null;t.some(Z=>Z.name===h&&(I=Z,!0))?(I.type="esriFieldTypeOID",I.editable=!1,I.nullable=!1):t.unshift({alias:h,name:h,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const I of t){if(null==I.name&&(I.name=I.alias),null==I.alias&&(I.alias=I.name),!I.name)throw new P.Z("feature-layer:invalid-field-name","field name is missing",{field:I});if(I.name===h&&(I.type="esriFieldTypeOID"),!b.v.jsonValues.includes(I.type))throw new P.Z("feature-layer:invalid-field-type",`invalid type for field "${I.name}"`,{field:I})}const A={};for(const I of t)if("esriFieldTypeOID"!==I.type&&"esriFieldTypeGlobalID"!==I.type){const Z=(0,D.os)(I);void 0!==Z&&(A[I.name]=Z)}if(c._fieldsIndex=new f.Z(t),c._createDefaultAttributes=(0,m.Dm)(A,h),g){if(g.startTimeField){const I=c._fieldsIndex.get(g.startTimeField);I?(g.startTimeField=I.name,I.type="esriFieldTypeDate"):g.startTimeField=null}if(g.endTimeField){const I=c._fieldsIndex.get(g.endTimeField);I?(g.endTimeField=I.name,I.type="esriFieldTypeDate"):g.endTimeField=null}if(g.trackIdField){const I=c._fieldsIndex.get(g.trackIdField);I?g.trackIdField=I.name:(g.trackIdField=null,y.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:g}}))}g.startTimeField||g.endTimeField||(y.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:g}}),g=null)}const w={warnings:y,featureErrors:[],layerDefinition:{...L,drawingInfo:(0,m.bU)(_),templates:(0,m.Hq)(A),extent:d,geometryType:_,objectIdField:h,fields:t,hasZ:!!o,hasM:!!s,timeInfo:g},assignedObjectIds:{}};if(c._queryEngine=new p.q({fields:t,geometryType:_,hasM:s,hasZ:o,objectIdField:h,spatialReference:a,featureStore:new F.Z({geometryType:_,hasM:s,hasZ:o}),timeInfo:g,cacheSpatialQueries:!0}),!n||!n.length)return c._nextObjectId=x.X,w;const Q=(0,x.S)(h,n);return c._nextObjectId=Q+1,yield(0,O._W)(n,a),c._loadInitialFeatures(w,n)})()}applyEdits(l){var c=this;return(0,R.Z)(function*(){const{spatialReference:y,geometryType:n}=c._queryEngine;return yield Promise.all([(0,i.b)(y,n),(0,O._W)(l.adds,y),(0,O._W)(l.updates,y)]),c._applyEdits(l)})()}queryFeatures(l,c={}){return this._queryEngine.executeQuery(l,c.signal)}queryFeatureCount(l,c={}){return this._queryEngine.executeQueryForCount(l,c.signal)}queryObjectIds(l,c={}){return this._queryEngine.executeQueryForIds(l,c.signal)}queryExtent(l,c={}){return this._queryEngine.executeQueryForExtent(l,c.signal)}querySnapping(l,c={}){return this._queryEngine.executeQueryForSnapping(l,c.signal)}_inferLayerProperties(l,c){let y,n,e=null,t=null,s=null;for(const o of l){const r=o.geometry;if(!(0,v.Wi)(r)&&(e||(e=(0,B.Ji)(r)),t||(t=r.spatialReference),null==y&&(y=(0,B.wp)(U=r)?null!=U.z:!!U.hasZ),null==n&&(n=T(r)),e&&t&&null!=y&&null!=n))break}var U;if(c&&c.length){let o=null;c.some(r=>{const a="esriFieldTypeOID"===r.type,d=!r.type&&r.name&&"objectid"===r.name.toLowerCase();return o=r,a||d})&&(s=o.name)}return{geometryType:e,spatialReference:t,objectIdField:s,hasM:n,hasZ:y}}_loadInitialFeatures(l,c){const{geometryType:y,hasM:n,hasZ:e,objectIdField:t,spatialReference:s,featureStore:o}=this._queryEngine,r=[];for(const a of c){if(null!=a.uid&&(l.assignedObjectIds[a.uid]=-1),a.geometry&&y!==(0,B.Ji)(a.geometry)){l.featureErrors.push((0,i.av)("Incorrect geometry type."));continue}const d=this._createDefaultAttributes(),_=(0,i.O0)(this._fieldsIndex,d,a.attributes,!0,l.warnings);_?l.featureErrors.push(_):(this._assignObjectId(d,a.attributes,!0),a.attributes=d,null!=a.uid&&(l.assignedObjectIds[a.uid]=a.attributes[t]),(0,v.pC)(a.geometry)&&(a.geometry=(0,O.iV)(a.geometry,a.geometry.spatialReference,s)),r.push(a))}if(o.addMany((0,E.Yn)([],r,y,e,n,t)),l.layerDefinition.extent=this._queryEngine.fullExtent,l.layerDefinition.timeInfo){const{start:a,end:d}=this._queryEngine.timeExtent;l.layerDefinition.timeInfo.timeExtent=[a,d]}return l}_applyEdits(l){const{adds:c,updates:y,deletes:n}=l,e={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(c&&c.length&&this._applyAddEdits(e,c),y&&y.length&&this._applyUpdateEdits(e,y),n&&n.length){for(const t of n)e.deleteResults.push((0,i.d1)(t));this._queryEngine.featureStore.removeManyById(n)}return{fullExtent:this._queryEngine.fullExtent,featureEditResults:e}}_applyAddEdits(l,c){const{addResults:y}=l,{geometryType:n,hasM:e,hasZ:t,objectIdField:s,spatialReference:o,featureStore:r}=this._queryEngine,a=[];for(const d of c){if(d.geometry&&n!==(0,B.Ji)(d.geometry)){y.push((0,i.av)("Incorrect geometry type."));continue}const _=this._createDefaultAttributes(),M=(0,i.O0)(this._fieldsIndex,_,d.attributes);if(M)y.push(M);else{if(this._assignObjectId(_,d.attributes),d.attributes=_,null!=d.uid&&(l.uidToObjectId[d.uid]=d.attributes[s]),(0,v.pC)(d.geometry)){const h=d.geometry.spatialReference??o;d.geometry=(0,O.iV)((0,i.og)(d.geometry,h),h,o)}a.push(d),y.push((0,i.d1)(d.attributes[s]))}}r.addMany((0,E.Yn)([],a,n,t,e,s))}_applyUpdateEdits({updateResults:l},c){const{geometryType:y,hasM:n,hasZ:e,objectIdField:t,spatialReference:s,featureStore:o}=this._queryEngine;for(const r of c){const{attributes:a,geometry:d}=r,_=a&&a[t];if(null==_){l.push((0,i.av)(`Identifier field ${t} missing`));continue}if(!o.has(_)){l.push((0,i.av)(`Feature with object id ${_} missing`));continue}const M=(0,E.EI)(o.getFeature(_),y,e,n);if((0,v.pC)(d)){if(y!==(0,B.Ji)(d)){l.push((0,i.av)("Incorrect geometry type."));continue}const h=d.spatialReference??s;M.geometry=(0,O.iV)((0,i.og)(d,h),h,s)}if(a){const h=(0,i.O0)(this._fieldsIndex,M.attributes,a);if(h){l.push(h);continue}}o.add((0,E.XA)(M,y,e,n,t)),l.push((0,i.d1)(_))}}_assignObjectId(l,c,y=!1){const n=this._queryEngine.objectIdField;l[n]=y&&c&&isFinite(c[n])?c[n]:this._nextObjectId++}}},56554:(X,C,u)=>{u.d(C,{Dm:()=>F,Hq:()=>O,MS:()=>p,bU:()=>j});var R=u(8314),P=u(58817),v=u(87757),B=u(24837);function j(m){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===m||"esriGeometryMultipoint"===m?B.I4:"esriGeometryPolyline"===m?B.ET:B.lF}}}const E=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let x=1;function F(m,i){if((0,R.Z)("esri-csp-restrictions"))return()=>({[i]:null,...m});try{let f=`this.${i} = null;`;for(const D in m)f+=`this${E.test(D)?`.${D}`:`["${D}"]`} = ${JSON.stringify(m[D])};`;const b=new Function(`\n return class AttributesClass$${x++} {\n constructor() {\n ${f};\n }\n }\n `)();return()=>new b}catch{return()=>({[i]:null,...m})}}function O(m={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,P.d9)(m)}}]}function p(m,i){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:m},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:i,supportsDelete:i,supportsEditing:i,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:i,supportsExceedsLimitStatistics:!0},query:v.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:i,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7731.d723b1dd95db0df5.js b/apps/n/porrtal-io-app/public/angular/7731.d723b1dd95db0df5.js deleted file mode 100644 index c5108372..00000000 --- a/apps/n/porrtal-io-app/public/angular/7731.d723b1dd95db0df5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7731],{87731:(f,n,s)=>{s.r(n),s.d(n,{h:()=>p});var u,h,r,d=s(1719),t={exports:{}};u=t,void 0!==(r=t.exports,Object.defineProperty(r,"__esModule",{value:!0}),h=void(r.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"po. Kr.",_era_bc:"pr. Kr.",A:"AM",P:"PM",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"sije\u010dnja",February:"velja\u010de",March:"o\u017eujka",April:"travnja",May:"svibnja",June:"lipnja",July:"srpnja",August:"kolovoza",September:"rujna",October:"listopada",November:"studenoga",December:"prosinca",Jan:"sij",Feb:"velj",Mar:"o\u017eu",Apr:"tra","May(short)":"svi",Jun:"lip",Jul:"srp",Aug:"kol",Sep:"ruj",Oct:"lis",Nov:"stu",Dec:"pro",Sunday:"nedjelja",Monday:"ponedjeljak",Tuesday:"utorak",Wednesday:"srijeda",Thursday:"\u010detvrtak",Friday:"petak",Saturday:"subota",Sun:"ned",Mon:"pon",Tue:"uto",Wed:"sri",Thu:"\u010det",Fri:"pet",Sat:"sub",_dateOrd:function(o){var e="th";if(o<11||o>13)switch(o%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Pove\u0107aj",Play:"Reproduciraj",Stop:"Zaustavi",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"U\u010ditavanje",Home:"Po\u010detna",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Ispis",Image:"Slika",Data:"Podaci",Print:"Ispis","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const p=function c(_,r){for(var o=0;oe[a]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/774.32bc4e47ac5a4b4d.js b/apps/n/porrtal-io-app/public/angular/774.32bc4e47ac5a4b4d.js new file mode 100644 index 00000000..17850c2c --- /dev/null +++ b/apps/n/porrtal-io-app/public/angular/774.32bc4e47ac5a4b4d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[774],{9774:(Bc,Yn,mt)=>{mt.r(Yn),mt.d(Yn,{AccountBillingHistoryComponent:()=>ce,AccountCreateComponent:()=>le,AccountDetailComponent:()=>se,AccountNavComponent:()=>ae,AccountSearchComponent:()=>ue,AppointmentCreateComponent:()=>Ve,AppointmentDetailComponent:()=>qe,AppointmentLocationMapComponent:()=>He,AppointmentNavComponent:()=>Pe,AppointmentSearchComponent:()=>Ee,CollapsibleTreeComponent:()=>Be,HierarchicalBarChartComponent:()=>Je,VizNavComponent:()=>Re,ZoomableCirclePackComponent:()=>$e,ZoomableIcicleComponent:()=>We,ZoomableSunburstComponent:()=>Le,ZoomableTreemapComponent:()=>Xe});var X=mt(6895),Pn=mt(6485);const ie=[{accountId:1,name:"Bank of Big Money",orders:[{date:Date.now(),item:"Screen design",amount:1e3},{date:Date.now()+432e6,item:"Screen development",amount:5e3},{date:Date.now()+864e6,item:"Screen testing",amount:3e3}]},{accountId:2,name:"Bill Jones",orders:[{date:Date.now(),item:"Slide development",amount:1e3}]},{accountId:3,name:"Waffles R Us",orders:[{date:Date.now(),item:"Screen design",amount:2e3},{date:Date.now()+432e6,item:"Screen development",amount:8e3},{date:Date.now()+864e6,item:"Screen testing",amount:5e3}]},{accountId:4,name:"Waffle House",orders:[{date:Date.now(),item:"Screen design",amount:500},{date:Date.now()+432e6,item:"Screen development",amount:2e3}]},{accountId:5,name:"Crypto Bank",orders:[{date:Date.now(),item:"Slide work",amount:1e3},{date:Date.now()+432e6,item:"Computer order",amount:15e3},{date:Date.now()+864e6,item:"Programming",amount:21e3}]}];var oe=mt(7392),u=mt(4650);const fi=function(t){return{accountId:t}};function hi(t,e){if(1&t&&(u.ynx(0),u.TgZ(1,"porrtal-entity-menu",4)(2,"span",5)(3,"mat-icon"),u._uU(4,"account_box"),u.qZA(),u.TgZ(5,"span",6),u._uU(6),u.qZA()()(),u.TgZ(7,"span"),u._uU(8),u.ALo(9,"number"),u.qZA(),u.BQk()),2&t){const n=e.$implicit;u.xp6(1),u.Q6J("state",u.VKq(6,fi,n.accountId)),u.xp6(5),u.Oqu(n.name),u.xp6(2),u.hij(" $ ",u.xi3(9,3,n.total,"1.0-0")," ")}}class ae{constructor(){this.topThreeAccounts=[],this.topThreeAccounts=[...ie.map(e=>{const n=e.orders.reduce((r,i)=>r+i.amount,0);return{...e,total:n}}).sort((e,n)=>n.total-e.total).filter((e,n)=>n<3)],console.log("top three accounts",this.topThreeAccounts)}static#t=this.\u0275fac=function(n){return new(n||ae)};static#e=this.\u0275cmp=u.Xpm({type:ae,selectors:[["porrtal-account-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[u.jDz],decls:5,vars:1,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"],[2,"margin-left","5px"]],template:function(n,r){1&n&&(u.TgZ(0,"div",0)(1,"h3",1),u._uU(2,"Top Three Accounts"),u.qZA(),u.TgZ(3,"div",2),u.YNc(4,hi,10,8,"ng-container",3),u.qZA()()),2&n&&(u.xp6(4),u.Q6J("ngForOf",r.topThreeAccounts))},dependencies:[X.ez,X.sg,X.JJ,oe.Ps,oe.Hw,Pn.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;align-items:center;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"]})}var pi=mt(4004),Qe=mt(3286),Ge=mt(5439);function mi(t,e){if(1&t&&(u.ynx(0),u.TgZ(1,"span"),u._uU(2),u.qZA(),u.TgZ(3,"span"),u._uU(4),u.qZA(),u.TgZ(5,"span"),u._uU(6),u.qZA(),u.BQk()),2&t){const n=e.$implicit,r=u.oxw(3);u.xp6(2),u.Oqu(n.item),u.xp6(2),u.Oqu(r.formatAmount(n.amount)),u.xp6(2),u.Oqu(r.Moment(n.date).format("YYYY-DD-MM"))}}const di=function(t){return{accountId:t}};function gi(t,e){if(1&t&&(u.ynx(0),u.TgZ(1,"porrtal-entity-menu",5)(2,"span",6)(3,"mat-icon"),u._uU(4,"account_box"),u.qZA(),u.TgZ(5,"span",7),u._uU(6),u.qZA()()(),u.TgZ(7,"div",8),u.YNc(8,mi,7,3,"ng-container",4),u.qZA(),u.BQk()),2&t){const n=e.$implicit;u.xp6(1),u.Q6J("state",u.VKq(3,di,n.accountId)),u.xp6(5),u.Oqu(n.name),u.xp6(2),u.Q6J("ngForOf",n.orders)}}function yi(t,e){if(1&t&&(u.ynx(0),u.YNc(1,gi,9,5,"ng-container",4),u.BQk()),2&t){const n=e.ngIf;u.xp6(1),u.Q6J("ngForOf",n)}}class ue{constructor(e){this.searchStateService=e,this.Moment=Ge,this.searchText$=e.select("debouncedSearchText"),this.filteredAccounts$=e.select("debouncedSearchText").pipe((0,pi.U)(n=>ie.filter(r=>JSON.stringify(r).toLowerCase().indexOf(n.toLowerCase())>=0)))}formatAmount(e){return"$"+e.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}static#t=this.\u0275fac=function(n){return new(n||ue)(u.Y36(Qe.tx))};static#e=this.\u0275cmp=u.Xpm({type:ue,selectors:[["porrtal-account-search"]],inputs:{viewState:"viewState"},standalone:!0,features:[u.jDz],decls:7,vars:6,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngIf"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"],[2,"margin-left","5px"],[1,"orders-data-container"]],template:function(n,r){1&n&&(u.TgZ(0,"div",0)(1,"h3",1),u._uU(2),u.ALo(3,"async"),u.qZA(),u.TgZ(4,"div",2),u.YNc(5,yi,2,1,"ng-container",3),u.ALo(6,"async"),u.qZA()()),2&n&&(u.xp6(2),u.hij("Account Search: ",u.lcZ(3,2,r.searchText$),""),u.xp6(3),u.Q6J("ngIf",u.lcZ(6,4,r.filteredAccounts$)))},dependencies:[X.ez,X.sg,X.O5,X.Ov,oe.Ps,oe.Hw,Pn.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:5px;padding-bottom:4px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px;margin-top:30px}.orders-data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin:15px 15px 15px 45px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}function vi(t,e){if(1&t&&(u.ynx(0),u.TgZ(1,"span"),u._uU(2),u.qZA(),u.TgZ(3,"span"),u._uU(4),u.qZA(),u.TgZ(5,"span"),u._uU(6),u.qZA(),u.BQk()),2&t){const n=e.$implicit,r=u.oxw();u.xp6(2),u.Oqu(n.item),u.xp6(2),u.hij(" ",n.amountText," "),u.xp6(2),u.Oqu(r.Moment(n.date).format("YYYY-DD-MM"))}}class se{constructor(){this.Moment=Ge}set viewState(e){if(this._viewState=e,this._viewState?.state&&this._viewState?.state.accountId){const n=this._viewState?.state.accountId;this.account=ie.find(r=>r.accountId===n),this.orders=[],this.account&&(this.orders=this.account.orders.map(r=>({...r,amountText:"$"+r.amount.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")})))}}get viewState(){return this._viewState}static#t=this.\u0275fac=function(n){return new(n||se)};static#e=this.\u0275cmp=u.Xpm({type:se,selectors:[["porrtal-account-detail"]],inputs:{viewState:"viewState"},standalone:!0,features:[u.jDz],decls:5,vars:3,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(u.TgZ(0,"div",0)(1,"h3",1),u._uU(2),u.qZA(),u.TgZ(3,"div",2),u.YNc(4,vi,7,3,"ng-container",3),u.qZA()()),2&n&&(u.xp6(2),u.AsE(" ",null==r.account?null:r.account.name," (",null==r.account?null:r.account.accountId,") - Account Detail "),u.xp6(2),u.Q6J("ngForOf",r.orders))},dependencies:[X.ez,X.sg],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class ce{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||ce)};static#e=this.\u0275cmp=u.Xpm({type:ce,selectors:[["porrtal-account-billing-history"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"account-billing-history works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class le{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||le)};static#e=this.\u0275cmp=u.Xpm({type:le,selectors:[["porrtal-account-create"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"account-create works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}new(mt(1135).X)(void 0);const Ke=[{appointmentId:1,accountId:1,date:Date.now()+72e5,item:"Kickoff Meeting",description:"Introduction to the development process.",location:"Baker Street Cafe",duration:18e5},{appointmentId:2,accountId:2,date:Date.now()+0,item:"Slide Review",description:"Review the initial slides.",location:"101 18th Street, Suite 100",duration:36e5},{appointmentId:3,accountId:4,date:Date.now()+144e5,item:"Business Overview",description:"Present the Important Business Use Cases",location:"2357 Smith Drive",duration:36e5},{appointmentId:4,accountId:1,date:Date.now()+864e5,item:"Review Screen Mockups",description:"Review the initial screen mockups for the application",location:"Baker Street Cafe",duration:18e5},{appointmentId:5,accountId:2,date:Date.now()+1008e5,item:"Final Slide Review",description:"Review the slides and receive the PowerPoint files",location:"101 18th Street, Suite 100",duration:72e5},{appointmentId:6,accountId:3,date:Date.now()+1728e5,item:"Development Process Overview",description:"Introduction to the development process",location:"Waffles R Us #6",duration:18e5},{appointmentId:7,accountId:4,date:Date.now()+1764e5,item:"Development Process Overview",description:"Introduction to the development process",location:"Waffle House #27",duration:27e5},{appointmentId:8,accountId:5,date:Date.now()+18e7,item:"Computer Inventory",description:"Review current inventory and plan new orders",location:"512 3rd Street, Suite 1520",duration:18e5},{appointmentId:9,accountId:1,date:Date.now()+2592e5,item:"Screen demo",description:"Show screens and collect feedback",location:"Baker Street Cafe",duration:36e5},{appointmentId:10,accountId:4,date:Date.now()+2664e5,item:"Screen demo",description:"Show screens and collect feedback",location:"Waffle House #27",duration:36e5}];function _i(t){return t}function xi(t){return"translate("+t+",0)"}function bi(t){return"translate(0,"+t+")"}function Ti(t){return e=>+t(e)}function Ci(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Mi(){return!this.__axis}function pe(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",m=1===t||3===t?xi:bi;function p(g){var Y=r??(e.ticks?e.ticks.apply(e,n):e.domain()),H=i??(e.tickFormat?e.tickFormat.apply(e,n):_i),w=Math.max(o,0)+s,y=e.range(),M=+y[0]+c,_=+y[y.length-1]+c,A=(e.bandwidth?Ci:Ti)(e.copy(),c),I=g.selection?g.selection():g,x=I.selectAll(".domain").data([null]),F=I.selectAll(".tick").data(Y,e).order(),E=F.exit(),G=F.enter().append("g").attr("class","tick"),q=F.select("line"),$=F.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),F=F.merge(G),q=q.merge(G.append("line").attr("stroke","currentColor").attr(f+"2",l*o)),$=$.merge(G.append("text").attr("fill","currentColor").attr(f,l*w).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),g!==I&&(x=x.transition(g),F=F.transition(g),q=q.transition(g),$=$.transition(g),E=E.transition(g).attr("opacity",1e-6).attr("transform",function(Q){return isFinite(Q=A(Q))?m(Q+c):this.getAttribute("transform")}),G.attr("opacity",1e-6).attr("transform",function(Q){var L=this.parentNode.__axis;return m((L&&isFinite(L=L(Q))?L:A(Q))+c)})),E.remove(),x.attr("d",4===t||2===t?a?"M"+l*a+","+M+"H"+c+"V"+_+"H"+l*a:"M"+c+","+M+"V"+_:a?"M"+M+","+l*a+"V"+c+"H"+_+"V"+l*a:"M"+M+","+c+"H"+_),F.attr("opacity",1).attr("transform",function(Q){return m(A(Q)+c)}),q.attr(f+"2",l*o),$.attr(f,l*w).text(H),I.filter(Mi).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),I.each(function(){this.__axis=A})}return p.scale=function(g){return arguments.length?(e=g,p):e},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(g){return arguments.length?(n=null==g?[]:Array.from(g),p):n.slice()},p.tickValues=function(g){return arguments.length?(r=null==g?null:Array.from(g),p):r&&r.slice()},p.tickFormat=function(g){return arguments.length?(i=g,p):i},p.tickSize=function(g){return arguments.length?(o=a=+g,p):o},p.tickSizeInner=function(g){return arguments.length?(o=+g,p):o},p.tickSizeOuter=function(g){return arguments.length?(a=+g,p):a},p.tickPadding=function(g){return arguments.length?(s=+g,p):s},p.offset=function(g){return arguments.length?(c=+g,p):c},p}function Ai(){}function tn(t){return null==t?Ai:function(){return this.querySelector(t)}}function Ni(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Ui(){return[]}function Hn(t){return null==t?Ui:function(){return this.querySelectorAll(t)}}function Vn(t){return function(){return this.matches(t)}}function Rn(t){return function(e){return e.matches(t)}}var Zi=Array.prototype.find;function Oi(){return this.firstElementChild}var Pi=Array.prototype.filter;function Ei(){return Array.from(this.children)}function $n(t){return new Array(t.length)}function me(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function $i(t){return function(){return t}}function Li(t,e,n,r,i,o){for(var s,a=0,c=e.length,l=o.length;ae?1:t>=e?0:NaN}me.prototype={constructor:me,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var en="http://www.w3.org/1999/xhtml";const Ln={svg:"http://www.w3.org/2000/svg",xhtml:en,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function de(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ln.hasOwnProperty(e)?{space:Ln[e],local:t}:t}function so(t){return function(){this.removeAttribute(t)}}function co(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lo(t,e){return function(){this.setAttribute(t,e)}}function fo(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ho(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function po(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Xn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function go(t){return function(){this.style.removeProperty(t)}}function yo(t,e,n){return function(){this.style.setProperty(t,e,n)}}function vo(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function It(t,e){return t.style.getPropertyValue(e)||Xn(t).getComputedStyle(t,null).getPropertyValue(e)}function _o(t){return function(){delete this[t]}}function xo(t,e){return function(){this[t]=e}}function bo(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Wn(t){return t.trim().split(/^|\s+/)}function nn(t){return t.classList||new Bn(t)}function Bn(t){this._node=t,this._names=Wn(t.getAttribute("class")||"")}function Jn(t,e){for(var n=nn(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function jo(t){return function(){var e=this.__on;if(e){for(var o,n=0,r=-1,i=e.length;n=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var jn=[null];function ct(t,e){this._groups=t,this._parents=e}function tr(){return new ct([[document.documentElement]],jn)}ct.prototype=tr.prototype={constructor:ct,select:function Di(t){"function"!=typeof t&&(t=tn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=_&&(_=M+1);!(I=w[_])&&++_=0;)(a=r[i])&&(o&&4^a.compareDocumentPosition(o)&&o.parentNode.insertBefore(a,o),o=a);return this},sort:function to(t){function e(m,p){return m&&p?t(m.__data__,p.__data__):!m-!p}t||(t=eo);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?go:"function"==typeof e?vo:yo)(t,e,n??"")):It(this.node(),t)},property:function To(t,e){return arguments.length>1?this.each((null==e?_o:"function"==typeof e?bo:xo)(t,e)):this.node()[t]},classed:function So(t,e){var n=Wn(t+"");if(arguments.length<2){for(var r=nn(this.node()),i=-1,o=n.length;++i{}};function er(){for(var r,t=0,e=arguments.length,n={};t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}function ca(t,e){for(var i,n=0,r=t.length;n0)for(var i,o,n=new Array(i),r=0;r=0&&t._call.call(void 0,e),t=t._next;--zt}()}finally{zt=0,function ma(){for(var t,n,e=ye,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ye=n);Wt=t,on(r)}(),kt=0}}function pa(){var t=Bt.now(),e=t-ve;e>1e3&&(we-=e,ve=t)}function on(t){zt||(Lt&&(Lt=clearTimeout(Lt)),t-kt>24?(t<1/0&&(Lt=setTimeout(ar,t-Bt.now()-we)),Xt&&(Xt=clearInterval(Xt))):(Xt||(ve=Bt.now(),Xt=setInterval(pa,1e3)),zt=1,ir(ar)))}function ur(t,e,n){var r=new _e;return r.restart(i=>{r.stop(),t(i+e)},e=null==e?0:+e,n),r}_e.prototype=or.prototype={constructor:_e,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?rn():+n)+(null==e?0:+e),!this._next&&Wt!==this&&(Wt?Wt._next=this:ye=this,Wt=this),this._call=t,this._time=n,on()},stop:function(){this._call&&(this._call=null,this._time=1/0,on())}};var da=la("start","end","cancel","interrupt"),ga=[];function Te(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function ya(t,e,n){var i,r=t.__transition;function a(l){var f,m,p,g;if(1!==n.state)return c();for(f in r)if((g=r[f]).name===n.name){if(3===g.state)return ur(a);4===g.state?(g.state=6,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete r[f]):+f0)throw new Error("too late; already scheduled");return n}function dt(t,e){var n=ft(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ft(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ht(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Ce,fr=180/Math.PI,cn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hr(t,e,n,r,i,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?f+=360:f-l>180&&(l+=360),p.push({i:m.push(i(m)+"rotate(",null,r)-2,x:ht(l,f)})):f&&m.push(i(m)+"rotate("+f+r)}(l.rotate,f.rotate,m,p),function s(l,f,m,p){l!==f?p.push({i:m.push(i(m)+"skewX(",null,r)-2,x:ht(l,f)}):f&&m.push(i(m)+"skewX("+f+r)}(l.skewX,f.skewX,m,p),function c(l,f,m,p,g,Y){if(l!==m||f!==p){var H=g.push(i(g)+"scale(",null,",",null,")");Y.push({i:H-4,x:ht(l,m)},{i:H-2,x:ht(f,p)})}else(1!==m||1!==p)&&g.push(i(g)+"scale("+m+","+p+")")}(l.scaleX,l.scaleY,f.scaleX,f.scaleY,m,p),l=f=null,function(g){for(var w,Y=-1,H=p.length;++Y>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ke(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ke(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Aa.exec(t))?new st(e[1],e[2],e[3],1):(e=Da.exec(t))?new st(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Na.exec(t))?ke(e[1],e[2],e[3],e[4]):(e=Ua.exec(t))?ke(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ia.exec(t))?xr(e[1],e[2]/100,e[3]/100,1):(e=za.exec(t))?xr(e[1],e[2]/100,e[3]/100,e[4]):dr.hasOwnProperty(t)?vr(dr[t]):"transparent"===t?new st(NaN,NaN,NaN,0):null}function vr(t){return new st(t>>16&255,t>>8&255,255&t,1)}function ke(t,e,n,r){return r<=0&&(t=e=n=NaN),new st(t,e,n,r)}function Oa(t){return t instanceof Jt||(t=St(t)),t?new st((t=t.rgb()).r,t.g,t.b,t.opacity):new st}function Se(t,e,n,r){return 1===arguments.length?Oa(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function wr(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}`}function _r(){const t=Ae(this.opacity);return`${1===t?"rgb(":"rgba("}${At(this.r)}, ${At(this.g)}, ${At(this.b)}${1===t?")":`, ${t})`}`}function Ae(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function At(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Dt(t){return((t=At(t))<16?"0":"")+t.toString(16)}function xr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new pt(t,e,n,r)}function br(t){if(t instanceof pt)return new pt(t.h,t.s,t.l,t.opacity);if(t instanceof Jt||(t=St(t)),!t)return new pt;if(t instanceof pt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&c<1?0:a,new pt(a,s,c,t.opacity)}function pt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Tr(t){return(t=(t||0)%360)<0?t+360:t}function De(t){return Math.max(0,Math.min(1,t||0))}function hn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Cr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}fn(Jt,St,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:gr,formatHex:gr,formatHex8:function Za(){return this.rgb().formatHex8()},formatHsl:function Fa(){return br(this).formatHsl()},formatRgb:yr,toString:yr}),fn(st,Se,mr(Jt,{brighter(t){return t=null==t?Me:Math.pow(Me,t),new st(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new st(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new st(At(this.r),At(this.g),At(this.b),Ae(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wr,formatHex:wr,formatHex8:function Ya(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}${Dt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_r,toString:_r})),fn(pt,function Pa(t,e,n,r){return 1===arguments.length?br(t):new pt(t,e,n,r??1)},mr(Jt,{brighter(t){return t=null==t?Me:Math.pow(Me,t),new pt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new pt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new st(hn(t>=240?t-240:t+120,i,r),hn(t,i,r),hn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new pt(Tr(this.h),De(this.s),De(this.l),Ae(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ae(this.opacity);return`${1===t?"hsl(":"hsla("}${Tr(this.h)}, ${100*De(this.s)}%, ${100*De(this.l)}%${1===t?")":`, ${t})`}`}}));const pn=t=>()=>t;function kr(t,e){var n=e-t;return n?function Mr(t,e){return function(n){return t+n*e}}(t,n):pn(isNaN(t)?e:t)}const Ne=function t(e){var n=function Va(t){return 1==(t=+t)?kr:function(e,n){return n-e?function Ha(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):pn(isNaN(e)?n:e)}}(e);function r(i,o){var a=n((i=Se(i)).r,(o=Se(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),l=kr(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=c(f),i.opacity=l(f),i+""}}return r.gamma=t,r}(1);function Sr(t){return function(e){var a,s,n=e.length,r=new Array(n),i=new Array(n),o=new Array(n);for(a=0;a=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Cr((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,rn&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:ht(r,i)})),n=dn.lastIndex;return n=0&&(e=e.slice(0,n)),!e||"start"===e})}(e)?sn:dt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var bu=$t.prototype.constructor;function Nr(t){return function(){this.style.removeProperty(t)}}function Du(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Nu(t,e,n){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Du(t,a,n)),r}return o._value=e,o}function Fu(t){return function(e){this.textContent=t.call(this,e)}}function Ou(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Fu(i)),e}return r._value=t,r}var qu=0;function yt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ur(){return++qu}var vt=$t.prototype;yt.prototype=function Hu(t){return $t().transition(t)}.prototype={constructor:yt,select:function _u(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=tn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]):o=!1;o&&delete t.__transition}}(this,t)})},$t.prototype.transition=function Lu(t){var e,n;t instanceof yt?(e=t._id,t=t._name):(e=Ur(),(n=Ru).time=rn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;oe?1:t>=e?0:NaN}function ju(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function _n(t){let e,n,r;function i(s,c,l=0,f=s.length){if(l>>1;n(s[m],c)<0?l=m+1:f=m}while(lze(t(s),c),r=(s,c)=>t(s)-c):(e=t===ze||t===ju?t:ts,n=t,r=t),{left:i,center:function a(s,c,l=0,f=s.length){const m=i(s,c,l,f-1);return m>l&&r(s[m-1],c)>-r(s[m],c)?m-1:m},right:function o(s,c,l=0,f=s.length){if(l>>1;n(s[m],c)<=0?l=m+1:f=m}while(l=xn?i*=10:o>=bn?i*=5:o>=Tn&&(i*=2),e(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a(e(o=new Date(+o),null==a?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=null==s?1:Math.floor(s),!(o0))return c;let l;do{c.push(l=new Date(+o)),e(o,s),t(o)}while(lK(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(kn.setTime(+o),Sn.setTime(+a),t(kn),t(Sn),Math.floor(n(kn,Sn))),i.every=o=>(o=Math.floor(o),isFinite(o)&&o>0?o>1?i.filter(r?a=>r(a)%o==0:a=>i.count(0,a)%o==0):i:null)),i}const Ze=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ze.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ze:null);const Yt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*_t)},(t,e)=>(e-t)/_t,t=>t.getUTCSeconds()),An=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*_t)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getMinutes()),Er=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCMinutes()),Dn=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*_t-t.getMinutes()*lt)},(t,e)=>{t.setTime(+t+e*xt)},(t,e)=>(e-t)/xt,t=>t.getHours()),qr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*xt)},(t,e)=>(e-t)/xt,t=>t.getUTCHours()),jt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*lt)/bt,t=>t.getDate()-1),Nn=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/bt,t=>t.getUTCDate()-1),Hr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/bt,t=>Math.floor(t/bt));function Nt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+7*n)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*lt)/Cn)}const Fe=Nt(0),Oe=Nt(1),Pt=(Nt(2),Nt(3),Nt(4));function Ut(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+7*n)},(e,n)=>(n-e)/Cn)}Nt(5),Nt(6);const Un=Ut(0),Ye=Ut(1),Et=(Ut(2),Ut(3),Ut(4)),In=(Ut(5),Ut(6),K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth())),Vr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()),Tt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Tt.every=t=>isFinite(t=Math.floor(t))&&t>0?K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null;const Ct=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Rr(t,e,n,r,i,o){const a=[[Yt,1,_t],[Yt,5,5e3],[Yt,15,15e3],[Yt,30,3e4],[o,1,lt],[o,5,5*lt],[o,15,15*lt],[o,30,30*lt],[i,1,xt],[i,3,3*xt],[i,6,6*xt],[i,12,12*xt],[r,1,bt],[r,2,2*bt],[n,1,Cn],[e,1,Pr],[e,3,3*Pr],[t,1,Mn]];function c(l,f,m){const p=Math.abs(f-l)/m,g=_n(([,,w])=>w).right(a,p);if(g===a.length)return t.every(Yr(l/Mn,f/Mn,m));if(0===g)return Ze.every(Math.max(Yr(l,f,m),1));const[Y,H]=a[p/a[g-1][2]isFinite(t=Math.floor(t))&&t>0?K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null;const[Ol,Yl]=Rr(Ct,Vr,Un,Hr,qr,Er),[ls,fs]=Rr(Tt,In,Fe,jt,Dn,An);function zn(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Zn(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function te(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var qt,ii,$r={"-":"",_:" ",0:"0"},j=/^\s*\d+/,ps=/^%/,ms=/[\\^$*+?|[\]().{}]/g;function P(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[e.toLowerCase(),n]))}function gs(t,e,n){var r=j.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ys(t,e,n){var r=j.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function vs(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ws(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function _s(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=j.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Xr(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function xs(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function bs(t,e,n){var r=j.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ts(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wr(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Cs(t,e,n){var r=j.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ms(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ks(t,e,n){var r=j.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ss(t,e,n){var r=j.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function As(t,e,n){var r=j.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ds(t,e,n){var r=ps.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ns(t,e,n){var r=j.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Us(t,e,n){var r=j.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Jr(t,e){return P(t.getDate(),e,2)}function Is(t,e){return P(t.getHours(),e,2)}function zs(t,e){return P(t.getHours()%12||12,e,2)}function Zs(t,e){return P(1+jt.count(Tt(t),t),e,3)}function Qr(t,e){return P(t.getMilliseconds(),e,3)}function Fs(t,e){return Qr(t,e)+"000"}function Os(t,e){return P(t.getMonth()+1,e,2)}function Ys(t,e){return P(t.getMinutes(),e,2)}function Ps(t,e){return P(t.getSeconds(),e,2)}function Es(t){var e=t.getDay();return 0===e?7:e}function qs(t,e){return P(Fe.count(Tt(t)-1,t),e,2)}function Gr(t){var e=t.getDay();return e>=4||0===e?Pt(t):Pt.ceil(t)}function Hs(t,e){return t=Gr(t),P(Pt.count(Tt(t),t)+(4===Tt(t).getDay()),e,2)}function Vs(t){return t.getDay()}function Rs(t,e){return P(Oe.count(Tt(t)-1,t),e,2)}function $s(t,e){return P(t.getFullYear()%100,e,2)}function Ls(t,e){return P((t=Gr(t)).getFullYear()%100,e,2)}function Xs(t,e){return P(t.getFullYear()%1e4,e,4)}function Ws(t,e){var n=t.getDay();return P((t=n>=4||0===n?Pt(t):Pt.ceil(t)).getFullYear()%1e4,e,4)}function Bs(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+P(e/60|0,"0",2)+P(e%60,"0",2)}function Kr(t,e){return P(t.getUTCDate(),e,2)}function Js(t,e){return P(t.getUTCHours(),e,2)}function Qs(t,e){return P(t.getUTCHours()%12||12,e,2)}function Gs(t,e){return P(1+Nn.count(Ct(t),t),e,3)}function jr(t,e){return P(t.getUTCMilliseconds(),e,3)}function Ks(t,e){return jr(t,e)+"000"}function js(t,e){return P(t.getUTCMonth()+1,e,2)}function tc(t,e){return P(t.getUTCMinutes(),e,2)}function ec(t,e){return P(t.getUTCSeconds(),e,2)}function nc(t){var e=t.getUTCDay();return 0===e?7:e}function rc(t,e){return P(Un.count(Ct(t)-1,t),e,2)}function ti(t){var e=t.getUTCDay();return e>=4||0===e?Et(t):Et.ceil(t)}function ic(t,e){return t=ti(t),P(Et.count(Ct(t),t)+(4===Ct(t).getUTCDay()),e,2)}function oc(t){return t.getUTCDay()}function ac(t,e){return P(Ye.count(Ct(t)-1,t),e,2)}function uc(t,e){return P(t.getUTCFullYear()%100,e,2)}function sc(t,e){return P((t=ti(t)).getUTCFullYear()%100,e,2)}function cc(t,e){return P(t.getUTCFullYear()%1e4,e,4)}function lc(t,e){var n=t.getUTCDay();return P((t=n>=4||0===n?Et(t):Et.ceil(t)).getUTCFullYear()%1e4,e,4)}function fc(){return"+0000"}function ei(){return"%"}function ni(t){return+t}function ri(t){return Math.floor(+t/1e3)}!function dc(t){qt=function hs(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,l=ee(i),f=ne(i),m=ee(o),p=ne(o),g=ee(a),Y=ne(a),H=ee(s),w=ne(s),y=ee(c),M=ne(c),_={a:function b(T){return a[T.getDay()]},A:function D(T){return o[T.getDay()]},b:function k(T){return c[T.getMonth()]},B:function S(T){return s[T.getMonth()]},c:null,d:Jr,e:Jr,f:Fs,g:Ls,G:Ws,H:Is,I:zs,j:Zs,L:Qr,m:Os,M:Ys,p:function U(T){return i[+(T.getHours()>=12)]},q:function z(T){return 1+~~(T.getMonth()/3)},Q:ni,s:ri,S:Ps,u:Es,U:qs,V:Hs,w:Vs,W:Rs,x:null,X:null,y:$s,Y:Xs,Z:Bs,"%":ei},A={a:function it(T){return a[T.getUTCDay()]},A:function W(T){return o[T.getUTCDay()]},b:function tt(T){return c[T.getUTCMonth()]},B:function ot(T){return s[T.getUTCMonth()]},c:null,d:Kr,e:Kr,f:Ks,g:sc,G:lc,H:Js,I:Qs,j:Gs,L:jr,m:js,M:tc,p:function R(T){return i[+(T.getUTCHours()>=12)]},q:function et(T){return 1+~~(T.getUTCMonth()/3)},Q:ni,s:ri,S:ec,u:nc,U:rc,V:ic,w:oc,W:ac,x:null,X:null,y:uc,Y:cc,Z:fc,"%":ei},I={a:function q(T,Z,O){var v=g.exec(Z.slice(O));return v?(T.w=Y.get(v[0].toLowerCase()),O+v[0].length):-1},A:function $(T,Z,O){var v=m.exec(Z.slice(O));return v?(T.w=p.get(v[0].toLowerCase()),O+v[0].length):-1},b:function Q(T,Z,O){var v=y.exec(Z.slice(O));return v?(T.m=M.get(v[0].toLowerCase()),O+v[0].length):-1},B:function L(T,Z,O){var v=H.exec(Z.slice(O));return v?(T.m=w.get(v[0].toLowerCase()),O+v[0].length):-1},c:function h(T,Z,O){return E(T,e,Z,O)},d:Wr,e:Wr,f:As,g:Xr,G:Lr,H:Br,I:Br,j:Cs,L:Ss,m:Ts,M:Ms,p:function G(T,Z,O){var v=l.exec(Z.slice(O));return v?(T.p=f.get(v[0].toLowerCase()),O+v[0].length):-1},q:bs,Q:Ns,s:Us,S:ks,u:ys,U:vs,V:ws,w:gs,W:_s,x:function C(T,Z,O){return E(T,n,Z,O)},X:function d(T,Z,O){return E(T,r,Z,O)},y:Xr,Y:Lr,Z:xs,"%":Ds};function x(T,Z){return function(O){var ut,N,J,v=[],B=-1,V=0,at=T.length;for(O instanceof Date||(O=new Date(+O));++B53)return null;"w"in v||(v.w=1),"Z"in v?(at=(V=Zn(te(v.y,0,1))).getUTCDay(),V=at>4||0===at?Ye.ceil(V):Ye(V),V=Nn.offset(V,7*(v.V-1)),v.y=V.getUTCFullYear(),v.m=V.getUTCMonth(),v.d=V.getUTCDate()+(v.w+6)%7):(at=(V=zn(te(v.y,0,1))).getDay(),V=at>4||0===at?Oe.ceil(V):Oe(V),V=jt.offset(V,7*(v.V-1)),v.y=V.getFullYear(),v.m=V.getMonth(),v.d=V.getDate()+(v.w+6)%7)}else("W"in v||"U"in v)&&("w"in v||(v.w="u"in v?v.u%7:"W"in v?1:0),at="Z"in v?Zn(te(v.y,0,1)).getUTCDay():zn(te(v.y,0,1)).getDay(),v.m=0,v.d="W"in v?(v.w+6)%7+7*v.W-(at+5)%7:v.w+7*v.U-(at+6)%7);return"Z"in v?(v.H+=v.Z/100|0,v.M+=v.Z%100,Zn(v)):zn(v)}}function E(T,Z,O,v){for(var ut,N,B=0,V=Z.length,at=O.length;B=at)return-1;if(37===(ut=Z.charCodeAt(B++))){if(ut=Z.charAt(B++),!(N=I[ut in $r?Z.charAt(B++):ut])||(v=N(T,O,v))<0)return-1}else if(ut!=O.charCodeAt(v++))return-1}return v}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),A.x=x(n,A),A.X=x(r,A),A.c=x(e,A),{format:function(T){var Z=x(T+="",_);return Z.toString=function(){return T},Z},parse:function(T){var Z=F(T+="",!1);return Z.toString=function(){return T},Z},utcFormat:function(T){var Z=x(T+="",A);return Z.toString=function(){return T},Z},utcParse:function(T){var Z=F(T+="",!0);return Z.toString=function(){return T},Z}}}(t),ii=qt.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const yc=_n(ze).right,vc=(_n(function gc(t){return null===t?NaN:+t}),yc);function ai(t,e){var a,n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n);for(a=0;ae&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}(t[0],t[p-1])),s=p>2?Ac:Sc,c=l=null,m}function m(p){return null==p||isNaN(p=+p)?o:(c||(c=s(t.map(r),e,n)))(r(a(p)))}return m.invert=function(p){return a(i((l||(l=s(e,t.map(r),ht)))(p)))},m.domain=function(p){return arguments.length?(t=Array.from(p,Mc),f()):t.slice()},m.range=function(p){return arguments.length?(e=Array.from(p),f()):e.slice()},m.rangeRound=function(p){return e=Array.from(p),n=Tc,f()},m.clamp=function(p){return arguments.length?(a=!!p||Ht,f()):a!==Ht},m.interpolate=function(p){return arguments.length?(n=p,f()):n},m.unknown=function(p){return arguments.length?(o=p,m):o},function(p,g){return r=p,i=g,f()}}()(Ht,Ht)}(),m=f.invert,p=f.domain,g=l(".%L"),Y=l(":%S"),H=l("%I:%M"),w=l("%I %p"),y=l("%a %d"),M=l("%b %d"),_=l("%B"),A=l("%Y");function I(x){return(c(x)r.date>this.startTime&&r.datethis.shellStateService.dispatch({type:"launchView",viewId:"AppointmentDetailComponent",state:{appointmentId:f.appointmentId}})).attr("fill",l=>this.scheduleProps.barStyle.background).attr("x",this.scheduleProps.margin.left).attr("y",l=>o(new Date(l.date))+this.scheduleProps.barStyle.startPadding).attr("height",l=>{const f=o(new Date(l.date));return o(new Date(l.date+l.duration))-f-this.scheduleProps.barStyle.endPadding-this.scheduleProps.barStyle.startPadding}).attr("width",this.scheduleProps.barStyle.width).attr("rx",this.scheduleProps.barStyle.radius)}}}}static#t=this.\u0275fac=function(n){return new(n||Pe)(u.Y36(Qe.vv))};static#e=this.\u0275cmp=u.Xpm({type:Pe,selectors:[["porrtal-appointment-nav"]],viewQuery:function(n,r){if(1&n&&u.Gf($c,5),2&n){let i;u.iGM(i=u.CRH())&&(r.divRef=i.first)}},inputs:{viewState:"viewState"},standalone:!0,features:[u.jDz],decls:5,vars:0,consts:[[1,"container"],[1,"title"],[1,"data-container"],["containerRef",""]],template:function(n,r){1&n&&(u.TgZ(0,"div",0)(1,"h3",1),u._uU(2,"Daily Schedule"),u.qZA(),u._UZ(3,"div",2,3),u.qZA())},dependencies:[X.ez],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class Ee{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||Ee)};static#e=this.\u0275cmp=u.Xpm({type:Ee,selectors:[["porrtal-appointment-search"]],inputs:{viewState:"viewState"},standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"appointment-search works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}function Lc(t,e){if(1&t&&(u.TgZ(0,"div",2)(1,"h3",3),u._uU(2),u.qZA(),u.TgZ(3,"div",4)(4,"h4"),u._uU(5),u.qZA(),u.TgZ(6,"p"),u._uU(7),u.qZA()()()),2&t){const n=u.oxw();let r;u.xp6(2),u.AsE(" ",null==n.appointment?null:n.appointment.item," (",null==n.appointment?null:n.appointment.appointmentId,") - Appointment Detail "),u.xp6(3),u.lnq(" ",n.Moment(null==n.appointment?null:n.appointment.date).format("YYYY-MM-DD, h:mm a")," -"," "," ",(null!==(r=null==n.appointment?null:n.appointment.duration)&&void 0!==r?r:0)/6e4," minutes. "),u.xp6(2),u.Oqu(null==n.appointment?null:n.appointment.description)}}function Xc(t,e){1&t&&(u.ynx(0),u.TgZ(1,"div"),u._uU(2,"loading appointment data..."),u.qZA(),u.BQk())}function Wc(t,e){if(1&t&&(u.ynx(0),u.TgZ(1,"div")(2,"span"),u._uU(3,"appointmentId:\xa0"),u.qZA(),u.TgZ(4,"span"),u._uU(5),u.qZA(),u.TgZ(6,"span"),u._uU(7,"\xa0not found."),u.qZA()(),u.BQk()),2&t){const n=u.oxw();u.xp6(5),u.Oqu(n.appointmentId)}}class qe{constructor(){this.loading=!0,this.notFound=!1,this.Moment=Ge}set viewState(e){console.log("appointment detail - view state",e),this._viewState=e,this._viewState?.state&&this._viewState?.state.appointmentId&&(this.loading=!1,this.appointmentId=this._viewState?.state.appointmentId,this.appointment=Ke.find(n=>n.appointmentId===this.appointmentId),this.appointment||(this.notFound=!0)),console.log(`loading: ${this.loading}, notFound: ${this.notFound}`)}get viewState(){return this._viewState}static#t=this.\u0275fac=function(n){return new(n||qe)};static#e=this.\u0275cmp=u.Xpm({type:qe,selectors:[["porrtal-appointment-detail"]],inputs:{viewState:"viewState"},standalone:!0,features:[u.jDz],decls:3,vars:3,consts:[["class","container",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"title"],[1,"data-container"]],template:function(n,r){1&n&&(u.YNc(0,Lc,8,6,"div",0),u.YNc(1,Xc,3,0,"ng-container",1),u.YNc(2,Wc,8,1,"ng-container",1)),2&n&&(u.Q6J("ngIf",!r.loading&&!r.notFound),u.xp6(1),u.Q6J("ngIf",r.loading),u.xp6(1),u.Q6J("ngIf",r.notFound))},dependencies:[X.ez,X.O5],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{justify-self:start;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class He{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||He)};static#e=this.\u0275cmp=u.Xpm({type:He,selectors:[["porrtal-appointment-location-map"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"appointment-location-map works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class Ve{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||Ve)};static#e=this.\u0275cmp=u.Xpm({type:Ve,selectors:[["porrtal-appointment-create"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"appointment-create works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class Re{constructor(e){this.shellStateService=e}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||Re)(u.Y36(Qe.vv))};static#e=this.\u0275cmp=u.Xpm({type:Re,selectors:[["porrtal-viz-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[u.jDz],decls:31,vars:0,consts:[[1,"container"],[1,"title"],[1,"data-container"],[1,"link-button",3,"click"]],template:function(n,r){1&n&&(u.TgZ(0,"div",0)(1,"h3",1),u._uU(2,"D3JS Charting Demos"),u.qZA(),u.TgZ(3,"div",2)(4,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"ZoomableSunburstComponent"})}),u._uU(5," Zoomable Sunburst Chart "),u.qZA(),u.TgZ(6,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"ZoomableCirclePackComponent"})}),u._uU(7," Zoomable Circle Pack Chart "),u.qZA(),u.TgZ(8,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"ZoomableIcicleComponent"})}),u._uU(9," Zoomable Icicle Chart "),u.qZA(),u.TgZ(10,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"ZoomableTreemapComponent"})}),u._uU(11," Zoomable Treemap Chart "),u.qZA(),u.TgZ(12,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"CollapsibleTreeComponent"})}),u._uU(13," Collapsable Tree Chart "),u.qZA(),u.TgZ(14,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"HierarchicalBarChartComponent"})}),u._uU(15," Hierarchical Bar Chart "),u.qZA()(),u.TgZ(16,"h3",1),u._uU(17,"Learning"),u.qZA(),u.TgZ(18,"div",2)(19,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"YoutubePlayerComponent",state:{videoId:"Z76QlSpYcck"}})}),u._uU(20," YouTube Player "),u.qZA(),u.TgZ(21,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{contentUrl:"https://raw.githubusercontent.com/datumgeek/jersey-rest-test03/master/README.md"}})}),u._uU(22," Markdown Viewer "),u.qZA(),u.TgZ(23,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"html",contentUrl:"docs/relative-image-test.md"}})}),u._uU(24," Markdown with Relative Images "),u.qZA(),u.TgZ(25,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"html",contentUrl:"https://raw.githubusercontent.com/datumgeek/ngx-popperjs/master/projects/ngx-popperjs/src/lib/ngx-popperjs-content/ngx-popperjs-content.component.html"}})}),u._uU(26," Markdown HTML "),u.qZA(),u.TgZ(27,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"scss",contentUrl:"https://raw.githubusercontent.com/datumgeek/ngx-popperjs/master/projects/ngx-popperjs/src/lib/ngx-popperjs-content/ngx-popperjs-content.component.scss"}})}),u._uU(28," Markdown SCSS "),u.qZA(),u.TgZ(29,"h4",3),u.NdJ("click",function(){return r.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"ts",contentUrl:"https://raw.githubusercontent.com/datumgeek/ngx-popperjs/master/projects/ngx-popperjs/src/lib/ngx-popperjs-content/ngx-popper-content.component.ts"}})}),u._uU(30," Markdown TypeScript "),u.qZA()()())},dependencies:[X.ez],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class $e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||$e)};static#e=this.\u0275cmp=u.Xpm({type:$e,selectors:[["porrtal-zoomable-circle-pack"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"zoomable-circle-pack works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class Le{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||Le)};static#e=this.\u0275cmp=u.Xpm({type:Le,selectors:[["porrtal-zoomable-sunburst"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"zoomable-sunburst works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class Xe{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||Xe)};static#e=this.\u0275cmp=u.Xpm({type:Xe,selectors:[["porrtal-zoomable-treemap"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"zoomable-treemap works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class We{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||We)};static#e=this.\u0275cmp=u.Xpm({type:We,selectors:[["porrtal-zoomable-icicle"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"zoomable-icicle works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class Be{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||Be)};static#e=this.\u0275cmp=u.Xpm({type:Be,selectors:[["porrtal-collapsible-tree"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"collapsible-tree works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}class Je{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||Je)};static#e=this.\u0275cmp=u.Xpm({type:Je,selectors:[["porrtal-hierarchical-bar-chart"]],standalone:!0,features:[u.jDz],decls:2,vars:0,template:function(n,r){1&n&&(u.TgZ(0,"p"),u._uU(1,"hierarchical-bar-chart works!"),u.qZA())},dependencies:[X.ez],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7755.7cd7b47f0a407461.js b/apps/n/porrtal-io-app/public/angular/7755.7cd7b47f0a407461.js deleted file mode 100644 index 6a032c7f..00000000 --- a/apps/n/porrtal-io-app/public/angular/7755.7cd7b47f0a407461.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7755],{17002:(Y,W,m)=>{m.d(W,{BN:()=>c,mx:()=>C});var Z=m(15861),S=m(59318);const p="woff2",k=new Map;function C(u){return R.apply(this,arguments)}function R(){return(R=(0,Z.Z)(function*(u){const y=_(u);let U=k.get(y);if(U)return U;const O=new FontFace(u.family,`url('${S.Z.fontsUrl}/woff2/${y}.${p}') format('${p}')`),z=document.fonts;return z.has(O)&&"loading"===O.status?O.loaded:(U=O.load(),k.set(y,U),z.add(O),U)})).apply(this,arguments)}function c(u){if(!u)return"arial-unicode-ms";const y=u.toLowerCase().split(" ").join("-");switch(y){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return y}}function _(u){const y=function D(u){if(!u.weight)return"";switch(u.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(u)+function f(u){if(!u.style)return"";switch(u.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(u);return c(u.family)+(y.length>0?y:"-regular")}},67755:(Y,W,m)=>{m.r(W),m.d(W,{getContrastingBackgroundTheme:()=>te,getRenderSymbolParameters:()=>ee,previewSymbol2D:()=>ie});var Z=m(15861),S=m(91558),A=m(26584),N=m(17002),p=m(23841),k=m(74741),C=m(71131),R=m(34057),c=m(85453);const _="picture-fill",O=C.b_.size,z=C.b_.maxSize,E=C.b_.maxOutlineSize,B=C.b_.lineWidth,X=document.createElement("canvas");function I(n,e){const a=X.getContext("2d"),l=[];return e&&(e.weight&&l.push(e.weight),e.size&&l.push(e.size+"px"),e.family&&l.push(e.family)),a.font=l.join(" "),a.measureText(n).width}function G(n){const e=n?.size;return{width:null!=e&&"object"==typeof e&&"width"in e?(0,p.F2)(e.width):null,height:null!=e&&"object"==typeof e&&"height"in e?(0,p.F2)(e.height):null}}function re(n,e){return H.apply(this,arguments)}function H(){return(H=(0,Z.Z)(function*(n,e){const a=e.fill,l=n.color;if("pattern"===a?.type&&l&&n.type!==_){const v=yield(0,k.Od)(a.src,l.toCss(!0));a.src=v,e.fill=a}})).apply(this,arguments)}function le(n,e,a,l){return J.apply(this,arguments)}function J(){return(J=(0,Z.Z)(function*(n,e,a,l){if(!("font"in n)||!n.font||"text"!==e.shape.type)return;try{yield(0,N.mx)(n.font)}catch{}const{width:v}=G(l),M=/[\uE600-\uE6FF]/.test(e.shape.text);null!=v||M||(a[0]=I(e.shape.text,{weight:e.font.weight,size:e.font.size,family:e.font.family}))})).apply(this,arguments)}function q(n,e){return n>e?"dark":"light"}function ee(n,e){const a="number"==typeof e?.size?e?.size:null,l=null!=a?(0,p.F2)(a):null,v=null!=e?.maxSize?(0,p.F2)(e.maxSize):null,M=null!=e?.rotation?e.rotation:"angle"in n?n.angle:null,T=(0,k._M)(n);let b=(0,k.mx)(n);"dark"!==te(n,245)||e?.ignoreWhiteSymbols||(b={width:.75,...b,color:"#bdc3c7"});const g={shape:null,fill:T,stroke:b,offset:[0,0]};b?.width&&(b.width=Math.min(b.width,E));const x=b?.width||0;let j=null!=e?.size&&(null==e?.scale||e?.scale),s=0,o=0,V=!1;switch(n.type){case"simple-marker":{const h=n.style,{width:d,height:i}=G(e),F=d===i&&null!=d?d:l??Math.min((0,p.F2)(n.size),v||z);switch(s=F,o=F,h){case"circle":g.shape={type:"circle",cx:0,cy:0,r:.5*F},j||(s+=x,o+=x);break;case"cross":g.shape={type:"path",path:[{command:"M",values:[0,.5*o]},{command:"L",values:[s,.5*o]},{command:"M",values:[.5*s,0]},{command:"L",values:[.5*s,o]}]};break;case"diamond":g.shape={type:"path",path:[{command:"M",values:[0,.5*o]},{command:"L",values:[.5*s,0]},{command:"L",values:[s,.5*o]},{command:"L",values:[.5*s,o]},{command:"Z",values:[]}]},j||(s+=x,o+=x);break;case"square":g.shape={type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[s,0]},{command:"L",values:[s,o]},{command:"L",values:[0,o]},{command:"Z",values:[]}]},j||(s+=x,o+=x),M&&(V=!0);break;case"triangle":g.shape={type:"path",path:[{command:"M",values:[.5*s,0]},{command:"L",values:[s,o]},{command:"L",values:[0,o]},{command:"Z",values:[]}]},j||(s+=x,o+=x),M&&(V=!0);break;case"x":g.shape={type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[s,o]},{command:"M",values:[s,0]},{command:"L",values:[0,o]}]},M&&(V=!0);break;case"path":g.shape={type:"path",path:n.path||""},j||(s+=x,o+=x),M&&(V=!0),j=!0}break}case"simple-line":{const{width:h,height:d}=G(e),i=d??l??x,F=h??B;b&&(b.width=i),s=F,o=i;const P=g?.stroke?.cap||"butt",L="round"===P;j=!0,g.stroke&&(g.stroke.cap="butt"===P?"square":P),g.shape={type:"path",path:[{command:"M",values:[L?i/2:0,o/2]},{command:"L",values:[L?s-i/2:s,o/2]}]};break}case _:case"simple-fill":{const h="object"==typeof e?.symbolConfig&&e?.symbolConfig.isSquareFill,{width:d,height:i}=G(e);s=!h&&d!==i||null==d?l??O:d,o=!h&&d!==i||null==i?s:i,j||(s+=x,o+=x),j=!0,g.shape=h?{type:"path",path:[{command:"M",values:[0,0]},{command:"L",values:[s,0]},{command:"L",values:[s,o]},{command:"L",values:[0,o]},{command:"L",values:[0,0]},{command:"Z",values:[]}]}:C.JZ.fill[0];break}case"picture-marker":{const h=Math.min((0,p.F2)(n.width),v||z),d=Math.min((0,p.F2)(n.height),v||z),{width:i,height:F}=G(e),P=i===F&&null!=i?i:l??Math.max(h,d),L=h/d;s=L<=1?Math.ceil(P*L):P,o=L<=1?P:Math.ceil(P/L),g.shape={type:"image",x:-Math.round(s/2),y:-Math.round(o/2),width:s,height:o,src:n.url||""},M&&(V=!0);break}case"text":{const h=n,d=e?.overrideText||h.text||"Aa",i=h.font,{width:F,height:P}=G(e),L=P??l??Math.min((0,p.F2)(i.size),v||z),ue=I(d,{weight:i.weight,size:L,family:i.family}),ne=/[\uE600-\uE6FF]/.test(d);s=F??(ne?L:ue),o=L;let ae=.25*function oe(n){if(0===n.length)return 0;if(n.length>2){const e=(0,p.Wz)(1),a=parseFloat(n);switch(n.slice(-2)){case"px":return a;case"pt":return a*e;case"in":return 72*a*e;case"pc":return 12*a*e;case"mm":return 2.8346456692913384*a*e;case"cm":return 28.346456692913385*a*e}}return parseFloat(n)}((i?L:0).toString());ne&&(ae+=5),g.shape={type:"text",text:d,x:h.xoffset||0,y:h.yoffset||ae,align:"middle",alignBaseline:h.verticalAlignment,decoration:i&&i.decoration,rotated:h.rotated,kerning:h.kerning},g.font=i&&{size:L,style:i.style,decoration:i.decoration,weight:i.weight,family:i.family};break}}return{shapeDescriptor:g,size:[s,o],renderOptions:{node:e?.node,scale:j,opacity:e?.opacity,rotation:M,useRotationSize:V,effectView:e?.effectView}}}function ie(n,e){return Q.apply(this,arguments)}function Q(){return(Q=(0,Z.Z)(function*(n,e){const{shapeDescriptor:a,size:l,renderOptions:v}=ee(n,e);if(!a.shape)throw new A.Z("symbolPreview: renderPreviewHTML2D","symbol not supported.");yield re(n,a),yield le(n,a,l,e);const M=[[a]];if("object"==typeof e?.symbolConfig&&e?.symbolConfig.applyColorModulation){const T=.6*l[0];M.unshift([{...a,offset:[-T,0],fill:(0,C.dc)(a.fill,-.3)}]),M.push([{...a,offset:[T,0],fill:(0,C.dc)(a.fill,.3)}]),l[0]+=2*T,v.scale=!1}return(0,R.w)(M,l,v)})).apply(this,arguments)}function te(n,e=225){const a=(0,k._M)(n),l=(0,k.mx)(n),v=!a||"type"in a?null:new S.Z(a),M=l?.color?new S.Z(l?.color):null,T=v?q((0,c.EX)(v),e):null,b=M?q((0,c.EX)(M),e):null;return b?T?T===b?T:e>=225?"light":"dark":b:T}},85453:(Y,W,m)=>{m.d(W,{EX:()=>R});var Z=m(91558);function R(c){const{r:_,g:w,b:D}=function C(c){let{r:_,g:w,b:D,a:f}=c;return f<1&&(_=Math.round(f*_+255*(1-f)),w=Math.round(f*w+255*(1-f)),D=Math.round(f*D+255*(1-f))),new Z.Z({r:_,g:w,b:D})}(c);return.2126*_+.7152*w+.0722*D}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7765.63f9361d0c659948.js b/apps/n/porrtal-io-app/public/angular/7765.63f9361d0c659948.js deleted file mode 100644 index c8fd3fe8..00000000 --- a/apps/n/porrtal-io-app/public/angular/7765.63f9361d0c659948.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7765],{7765:(E,s,_)=>{_.r(s),_.d(s,{FogHazePassParameters:()=>a.F,build:()=>a.b}),_(28347),_(43703),_(28093),_(36603),_(47923),_(96896),_(95285),_(97139),_(65787),_(17625),_(63123),_(22355),_(35387),_(16396);var a=_(41918)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7777.dbc5fcd10880b595.js b/apps/n/porrtal-io-app/public/angular/7777.dbc5fcd10880b595.js deleted file mode 100644 index cbdc15a8..00000000 --- a/apps/n/porrtal-io-app/public/angular/7777.dbc5fcd10880b595.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7777],{77777:(Z,c,s)=>{s.r(c),s.d(c,{hydratedAdapter:()=>P});var h=s(2004),_=s(72854),M=s(72642),l=s(37118),x=s(55214);const P={convertToGEGeometry:function p(t,e){if(null==e)return null;let a="cache"in e?e.cache._geVersion:void 0;return null==a&&(a=t.convertJSONToGeometry(e),"cache"in e&&(e.cache._geVersion=a)),a},exportPoint:function g(t,e,a){const n=t.hasZ(e),r=t.hasM(e),o=new M.Z({x:t.getPointX(e),y:t.getPointY(e),spatialReference:a});return n&&(o.z=t.getPointZ(e)),r&&(o.m=t.getPointM(e)),o.cache._geVersion=e,o},exportPolygon:function E(t,e,a){const n=new l.Z({rings:t.exportPaths(e),hasZ:t.hasZ(e),hasM:t.hasM(e),spatialReference:a});return n.cache._geVersion=e,n},exportPolyline:function m(t,e,a){const n=new x.Z({paths:t.exportPaths(e),hasZ:t.hasZ(e),hasM:t.hasM(e),spatialReference:a});return n.cache._geVersion=e,n},exportMultipoint:function u(t,e,a){const n=new _.Z({hasZ:t.hasZ(e),hasM:t.hasM(e),points:t.exportPoints(e),spatialReference:a});return n.cache._geVersion=e,n},exportExtent:function f(t,e,a){const n=t.hasZ(e),r=t.hasM(e),o=new h.Z({xmin:t.getXMin(e),ymin:t.getYMin(e),xmax:t.getXMax(e),ymax:t.getYMax(e),spatialReference:a});if(n){const i=t.getZExtent(e);o.zmin=i.vmin,o.zmax=i.vmax}if(r){const i=t.getMExtent(e);o.mmin=i.vmin,o.mmax=i.vmax}return o.cache._geVersion=e,o}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7794.8468bd18cf146f7a.js b/apps/n/porrtal-io-app/public/angular/7794.8468bd18cf146f7a.js deleted file mode 100644 index 8116bc00..00000000 --- a/apps/n/porrtal-io-app/public/angular/7794.8468bd18cf146f7a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7794],{17794:(M,s,_)=>{_.r(s),_.d(s,{build:()=>E.b,defaultAngleCutoff:()=>E.d}),_(21286),_(67831),_(99770),_(84161),_(28093),_(993),_(4794),_(13777),_(90014),_(97126),_(47634),_(98071),_(95285),_(97139),_(69960),_(65787),_(17625),_(22355);var E=_(66501)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7867.2e57d05d7773339a.js b/apps/n/porrtal-io-app/public/angular/7867.2e57d05d7773339a.js deleted file mode 100644 index 8b6ea288..00000000 --- a/apps/n/porrtal-io-app/public/angular/7867.2e57d05d7773339a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7867],{40405:(W,D,t)=>{t.d(D,{B:()=>m});var o=t(15861),l=t(22558),s=t(21726),N=t(35948),j=t(34117),x=t(31283),C=t(77712);function I(r){return v[function y(r){return r instanceof Blob?r.type:function M(r){const i=(0,s.Ml)(r);return u[i]||E}(r.url)}(r)]||P}const v={},E="text/plain",P=v[E],u={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const r in u)v[u[r]]=r;var g=t(29840);function m(r){const i=r?.origins??[void 0];return(p,f)=>{const d=function U(r,i,p){if("resource"===r?.type)return function b(r,i,p){const f=(0,j.VZ)(i,p);return{type:String,read:(d,a,S)=>{const e=(0,g.r)(d,a,S);return f.type===String?e:"function"==typeof f.type?new f.type({url:e}):void 0},write:{writer(d,a,S,e){if(!e||!e.resources)return"string"==typeof d?void(a[S]=(0,g.t)(d,e)):void(a[S]=d.write({},e));const n=function F(r){return null==r?null:"string"==typeof r?r:r.url}(d),c=(0,g.t)(n,{...e,verifyItemRelativeUrls:e&&e.verifyItemRelativeUrls?{writtenUrls:e.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},g.M.NO),O=f.type!==String&&(!(0,l.l)(this)||e&&e.origin&&this.originIdOf(p)>(0,x.M9)(e.origin)),T={object:this,propertyName:p,value:d,targetUrl:c,dest:a,targetPropertyName:S,context:e,params:r};e&&e.portalItem&&c&&!(0,s.YP)(c)?O?function L(r){const{context:i,targetUrl:p,params:f,value:d,dest:a,targetPropertyName:S}=r;if(!i.portalItem)return;const e=i.portalItem.resourceFromPath(p),n=_(d,p,i),c=I(n),O=(0,s.Ml)(e.path),T=f?.compress??!1;c===O?(i.resources&&K({...r,resource:e,content:n,compress:T,updates:i.resources.toUpdate}),a[S]=p):h(r)}(T):function A({context:r,targetUrl:i,dest:p,targetPropertyName:f}){r.portalItem&&r.resources&&(r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(i),compress:!1}),p[f]=i)}(T):e&&e.portalItem&&(null==c||null!=(0,g.i)(c)||(0,s.jc)(c)||O)?h(T):a[S]=c}}}}(r,i,p);switch(r?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:f,write:d}=g.a;return{read:f,write:d}}}}(r,p,f);for(const a of i){const S=(0,C.CJ)(p,a,f);for(const e in d)S[e]=d[e]}}}function h(r){const{targetUrl:i,params:p,value:f,context:d,dest:a,targetPropertyName:S}=r;if(!d.portalItem)return;const e=(0,g.p)(i),n=e?.filename??(0,N.D)(),c=p?.prefix??e?.prefix,O=_(f,i,d),T=(0,s.v_)(c,n),G=`${T}.${I(O)}`,R=d.portalItem.resourceFromPath(G);(0,s.jc)(i)&&d.resources&&d.resources.pendingOperations.push(function Z(r){return B.apply(this,arguments)}(i).then(z=>{R.path=`${T}.${I(z)}`,a[S]=R.itemRelativeUrl}).catch(()=>{}));const J=p?.compress??!1;d.resources&&K({...r,resource:R,content:O,compress:J,updates:d.resources.toAdd}),a[S]=R.itemRelativeUrl}function K({object:r,propertyName:i,updates:p,resource:f,content:d,compress:a}){p.push({resource:f,content:d,compress:a,finish:S=>{!function V(r,i,p){"string"==typeof r[i]?r[i]=p.url:r[i].url=p.url}(r,i,S)}})}function _(r,i,p){return"string"==typeof r?{url:i}:new Blob([JSON.stringify(r.toJSON(p))],{type:"application/json"})}function B(){return(B=(0,o.Z)(function*(r){const i=(yield Promise.resolve().then(t.bind(t,84792))).default,{data:p}=yield i(r,{responseType:"blob"});return p})).apply(this,arguments)}},67867:(W,D,t)=>{t.r(D),t.d(D,{default:()=>S});var i,o=t(15861),l=t(17626),s=t(26584),N=t(72392),j=t(62208),x=t(99959),C=t(10699),I=t(32917),y=t(77712),E=(t(85931),t(90912),t(68653)),P=t(76898),u=t(40405),g=t(44917),m=t(50085),U=t(65088),b=t(49286),h=t(6647),L=t(99555),A=t(10157),K=t(13812),_=t(35031),Z=t(84792),B=t(46160),F=t(86810),V=t(21726),r=t(10439);let p=i=class extends((0,F.eC)(B.Z.ofType(r.Z))){constructor(e){super(e),this.url=null}clone(){return new i({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(n=>n.toJSON(e)).filter(n=>!!n.geometry)}static fromJSON(e,n){const c=new i;for(const O of e)c.add(r.Z.fromJSON(O,n));return c}static fromUrl(e,n,c){return(0,o.Z)(function*(){const O={url:(0,V.mN)(e),origin:"service"},T=yield(0,Z.default)(e,{responseType:"json",signal:(0,j.U2)(c,"signal")}),G=n.toJSON(),R=[];for(const J of T.data)R.push(r.Z.fromJSON({...J,geometry:{...J.geometry,spatialReference:G}},O));return new i({url:e,items:R})})()}};(0,l._)([(0,y.Cb)({type:String})],p.prototype,"url",void 0),p=i=(0,l._)([(0,P.j)("esri.layers.support.SceneModifications")],p);const f=p;var d=t(29840);let a=class extends((0,A.Vt)((0,U.Y)((0,b.q)((0,h.I)((0,L.M)((0,x.R)((0,m.V)(g.Z)))))))){constructor(...e){super(...e),this._handles=new N.Z,this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.elevationInfo=null,this.path=null}destroy(){this._handles.destroy()}initialize(){this._handles.add((0,I.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,I.Z_))}normalizeCtorArgs(e,n){return"string"==typeof e?{url:e,...n}:e}readModifications(e,n,c){this._modificationsSource={url:(0,d.f)(e,c),context:c}}load(e){var n=this;return(0,o.Z)(function*(){return n.addResolvingPromise(n._doLoad(e)),n})()}_doLoad(e){var n=this;return(0,o.Z)(function*(){const c=(0,j.U2)(e,"signal");try{yield n.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(O){(0,C.r9)(O)}if(yield n._fetchService(c),(0,j.pC)(n._modificationsSource)){const O=yield f.fromUrl(n._modificationsSource.url,n.spatialReference,e);n.setAtOrigin("modifications",O,n._modificationsSource.context.origin),n._modificationsSource=null}yield n._fetchIndexAndUpdateExtent(n.nodePages,c)})()}beforeSave(){if(!(0,j.Wi)(this._modificationsSource))return this.load().then(()=>{},()=>{})}saveAs(e,n){var c=this;return(0,o.Z)(function*(){return c._debouncedSaveOperations(A.xp.SAVE_AS,{...n,getTypeKeywords:()=>c._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)})()}save(){var e=this;return(0,o.Z)(function*(){const n={getTypeKeywords:()=>e._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return e._debouncedSaveOperations(A.xp.SAVE,n)})()}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.Z("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}};(0,l._)([(0,y.Cb)({type:String,readOnly:!0})],a.prototype,"geometryType",void 0),(0,l._)([(0,y.Cb)({type:["show","hide"]})],a.prototype,"listMode",void 0),(0,l._)([(0,y.Cb)({type:["IntegratedMeshLayer"]})],a.prototype,"operationalLayerType",void 0),(0,l._)([(0,y.Cb)({json:{read:!1},readOnly:!0})],a.prototype,"type",void 0),(0,l._)([(0,y.Cb)({type:_.U4,readOnly:!0})],a.prototype,"nodePages",void 0),(0,l._)([(0,y.Cb)({type:[_.QI],readOnly:!0})],a.prototype,"materialDefinitions",void 0),(0,l._)([(0,y.Cb)({type:[_.Yh],readOnly:!0})],a.prototype,"textureSetDefinitions",void 0),(0,l._)([(0,y.Cb)({type:[_.H3],readOnly:!0})],a.prototype,"geometryDefinitions",void 0),(0,l._)([(0,y.Cb)({readOnly:!0})],a.prototype,"serviceUpdateTimeStamp",void 0),(0,l._)([(0,y.Cb)({type:f}),(0,u.B)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],a.prototype,"modifications",void 0),(0,l._)([(0,E.r)(["web-scene","portal-item"],"modifications")],a.prototype,"readModifications",null),(0,l._)([(0,y.Cb)(K.PV)],a.prototype,"elevationInfo",void 0),(0,l._)([(0,y.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],a.prototype,"path",void 0),a=(0,l._)([(0,P.j)("esri.layers.IntegratedMeshLayer")],a);const S=a},35031:(W,D,t)=>{t.d(D,{H3:()=>U,QI:()=>v,U4:()=>I,Yh:()=>P});var o=t(17626),l=t(86810),s=t(77712),x=(t(85931),t(90912),t(55342)),C=t(76898);let I=class extends l.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o._)([(0,s.Cb)({type:Number})],I.prototype,"nodesPerPage",void 0),(0,o._)([(0,s.Cb)({type:Number})],I.prototype,"rootIndex",void 0),(0,o._)([(0,s.Cb)({type:String})],I.prototype,"lodSelectionMetricType",void 0),I=(0,o._)([(0,C.j)("esri.layer.support.I3SNodePageDefinition")],I);let y=class extends l.wq{constructor(){super(...arguments),this.factor=1}};(0,o._)([(0,s.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],y.prototype,"id",void 0),(0,o._)([(0,s.Cb)({type:Number})],y.prototype,"factor",void 0),y=(0,o._)([(0,C.j)("esri.layer.support.I3SMaterialTexture")],y);let M=class extends l.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o._)([(0,s.Cb)({type:[Number]})],M.prototype,"baseColorFactor",void 0),(0,o._)([(0,s.Cb)({type:y})],M.prototype,"baseColorTexture",void 0),(0,o._)([(0,s.Cb)({type:y})],M.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,s.Cb)({type:Number})],M.prototype,"metallicFactor",void 0),(0,o._)([(0,s.Cb)({type:Number})],M.prototype,"roughnessFactor",void 0),M=(0,o._)([(0,C.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],M);let v=class extends l.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o._)([(0,x.J)({opaque:"opaque",mask:"mask",blend:"blend"})],v.prototype,"alphaMode",void 0),(0,o._)([(0,s.Cb)({type:Number})],v.prototype,"alphaCutoff",void 0),(0,o._)([(0,s.Cb)({type:Boolean})],v.prototype,"doubleSided",void 0),(0,o._)([(0,x.J)({none:"none",back:"back",front:"front"})],v.prototype,"cullFace",void 0),(0,o._)([(0,s.Cb)({type:y})],v.prototype,"normalTexture",void 0),(0,o._)([(0,s.Cb)({type:y})],v.prototype,"occlusionTexture",void 0),(0,o._)([(0,s.Cb)({type:y})],v.prototype,"emissiveTexture",void 0),(0,o._)([(0,s.Cb)({type:[Number]})],v.prototype,"emissiveFactor",void 0),(0,o._)([(0,s.Cb)({type:M})],v.prototype,"pbrMetallicRoughness",void 0),v=(0,o._)([(0,C.j)("esri.layer.support.I3SMaterialDefinition")],v);let E=class extends l.wq{};(0,o._)([(0,s.Cb)({type:String,json:{read:{source:["name","index"],reader:(b,h)=>b??`${h.index}`}}})],E.prototype,"name",void 0),(0,o._)([(0,x.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],E.prototype,"format",void 0),E=(0,o._)([(0,C.j)("esri.layer.support.I3STextureFormat")],E);let P=class extends l.wq{constructor(){super(...arguments),this.atlas=!1}};(0,o._)([(0,s.Cb)({type:[E]})],P.prototype,"formats",void 0),(0,o._)([(0,s.Cb)({type:Boolean})],P.prototype,"atlas",void 0),P=(0,o._)([(0,C.j)("esri.layer.support.I3STextureSetDefinition")],P);let u=class extends l.wq{};(0,o._)([(0,x.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],u.prototype,"type",void 0),(0,o._)([(0,s.Cb)({type:Number})],u.prototype,"component",void 0),u=(0,o._)([(0,C.j)("esri.layer.support.I3SGeometryAttribute")],u);let g=class extends l.wq{};(0,o._)([(0,x.J)({draco:"draco"})],g.prototype,"encoding",void 0),(0,o._)([(0,s.Cb)({type:[String]})],g.prototype,"attributes",void 0),g=(0,o._)([(0,C.j)("esri.layer.support.I3SGeometryCompressedAttributes")],g);let m=class extends l.wq{constructor(){super(...arguments),this.offset=0}};(0,o._)([(0,s.Cb)({type:Number})],m.prototype,"offset",void 0),(0,o._)([(0,s.Cb)({type:u})],m.prototype,"position",void 0),(0,o._)([(0,s.Cb)({type:u})],m.prototype,"normal",void 0),(0,o._)([(0,s.Cb)({type:u})],m.prototype,"uv0",void 0),(0,o._)([(0,s.Cb)({type:u})],m.prototype,"color",void 0),(0,o._)([(0,s.Cb)({type:u})],m.prototype,"uvRegion",void 0),(0,o._)([(0,s.Cb)({type:u})],m.prototype,"featureId",void 0),(0,o._)([(0,s.Cb)({type:u})],m.prototype,"faceRange",void 0),(0,o._)([(0,s.Cb)({type:g})],m.prototype,"compressedAttributes",void 0),m=(0,o._)([(0,C.j)("esri.layer.support.I3SGeometryBuffer")],m);let U=class extends l.wq{};(0,o._)([(0,x.J)({triangle:"triangle"})],U.prototype,"topology",void 0),(0,o._)([(0,s.Cb)()],U.prototype,"geometryBuffers",void 0),U=(0,o._)([(0,C.j)("esri.layer.support.I3SGeometryDefinition")],U)},10439:(W,D,t)=>{t.d(D,{Z:()=>g});var P,o=t(17626),s=(t(29132),t(86810)),N=t(58817),j=t(14889),x=t(77712),I=(t(90912),t(76898)),y=t(99433),M=t(40405),v=t(55915),E=t(37118);let u=P=class extends s.wq{constructor(m){super(m),this.geometry=null,this.type="clip"}writeGeometry(m,U,b,h){if(h.layer&&h.layer.spatialReference&&!h.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,v.Up)(m.spatialReference,h.layer.spatialReference))return void(h&&h.messages&&h.messages.push(new j.Z("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:h.layer.spatialReference,context:h})));const L=new E.Z;(0,v.Wt)(m,L,h.layer.spatialReference),U[b]=L.toJSON(h)}else U[b]=m.toJSON(h);delete U[b].spatialReference}clone(){return new P({geometry:(0,N.d9)(this.geometry),type:this.type})}};(0,o._)([(0,x.Cb)({type:E.Z}),(0,M.B)()],u.prototype,"geometry",void 0),(0,o._)([(0,y.c)(["web-scene","portal-item"],"geometry")],u.prototype,"writeGeometry",null),(0,o._)([(0,x.Cb)({type:["clip","mask","replace"],nonNullable:!0}),(0,M.B)()],u.prototype,"type",void 0),u=P=(0,o._)([(0,I.j)("esri.layers.support.SceneModification")],u);const g=u}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/7898.420803f84ef451e4.js b/apps/n/porrtal-io-app/public/angular/7898.420803f84ef451e4.js deleted file mode 100644 index bb601920..00000000 --- a/apps/n/porrtal-io-app/public/angular/7898.420803f84ef451e4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[7898],{14259:(S,P,p)=>{p.d(P,{q:()=>V});var C,O,G={exports:{}};C=G,void 0!==(O=function(){function M(r,t,s,n,l){for(;n>s;){if(n-s>600){var e=n-s+1,o=t-s+1,u=Math.log(e),i=.5*Math.exp(2*u/3),g=.5*Math.sqrt(u*i*(e-i)/e)*(o-e/2<0?-1:1);M(r,t,Math.max(s,Math.floor(t-o*i/e+g)),Math.min(n,Math.floor(t+(e-o)*i/e+g)),l)}var I=r[t],N=s,h=n;for(E(r,s,t),l(r[n],I)>0&&E(r,s,n);N0;)h--}0===l(r[s],I)?E(r,s,h):E(r,++h,n),h<=t&&(s=h+1),t<=h&&(n=h-1)}}function E(r,t,s){var n=r[t];r[t]=r[s],r[s]=n}function F(r,t){return rt?1:0}return function d(r,t,s,n,l){M(r,t,s||0,n||r.length-1,l||F)}}())&&(C.exports=O);const V=G.exports},77044:(S,P,p)=>{p.d(P,{Y:()=>O});var C=p(62208);function a(r,t){return r?t?4:3:t?3:2}function O(r,t,s,n,l){if((0,C.Wi)(t)||!t.lengths.length)return null;const e="upperLeft"===l?.originPosition?-1:1;r.lengths.length&&(r.lengths.length=0),r.coords.length&&(r.coords.length=0);const o=r.coords,u=[],i=s?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:g,coords:I}=t,N=a(s,n);let h=0;for(const c of g){const f=G(i,I,h,c,s,n,e);f&&u.push(f),h+=c*N}if(u.sort((c,f)=>{let v=e*c[2]-e*f[2];return 0===v&&s&&(v=c[4]-f[4]),v}),u.length){let c=6*u[0][2];o[0]=u[0][0]/c,o[1]=u[0][1]/c,s&&(c=6*u[0][4],o[2]=0!==c?u[0][3]/c:0),(o[0]i[1]||o[1]i[3]||s&&(o[2]i[5]))&&(o.length=0)}if(!o.length){const c=t.lengths[0]?function V(r,t,s,n,l){const e=a(n,l);let o=t,u=t+e,i=0,g=0,I=0,N=0;for(let h=0,c=s-1;h0?n?[g/i,I/i,N/i]:[g/i,I/i]:s>0?n?[r[t],r[t+1],r[t+2]]:[r[t],r[t+1]]:null}(I,0,g[0],s,n):null;if(!c)return null;o[0]=c[0],o[1]=c[1],s&&c.length>2&&(o[2]=c[2])}return r}function G(r,t,s,n,l,e,o=1){const u=a(l,e);let i=s,g=s+u,I=0,N=0,h=0,c=0,f=0;for(let A=0,Y=n-1;Ar[1]&&(r[1]=T),br[3]&&(r[3]=b),l&&(yr[5]&&(r[5]=y))}if(c*o>0&&(c*=-1),f*o>0&&(f*=-1),!c)return null;const v=[I,N,.5*c];return l&&(v[3]=h,v[4]=.5*f),v}function d(r,t,s,n){const l=s-r,e=n-t;return Math.sqrt(l*l+e*e)}function M(r,t,s,n,l,e){const o=n-r,u=l-t,i=e-s;return Math.sqrt(o*o+u*u+i*i)}function E(r,t,s,n){return[r+.5*(s-r),t+.5*(n-t)]}function F(r,t,s,n,l,e){return[r+.5*(n-r),t+.5*(l-t),s+.5*(e-s)]}},87312:(S,P,p)=>{p.r(P),p.d(P,{default:()=>l});var C=p(15861),a=p(17626),O=p(14517),G=p(61996),V=p(62208),d=p(77712),F=(p(85931),p(90912),p(76898)),r=p(32400);const t=e=>{let o=class extends((0,G.IG)(e)){constructor(){super(...arguments),this.graphics=null,this.renderer=null}};return(0,a._)([(0,d.Cb)()],o.prototype,"graphics",void 0),(0,a._)([(0,d.Cb)()],o.prototype,"renderer",void 0),(0,a._)([(0,d.Cb)()],o.prototype,"updating",void 0),(0,a._)([(0,d.Cb)()],o.prototype,"view",void 0),o=(0,a._)([(0,F.j)("esri.views.layers.GraphicsView")],o),o};let s=class extends(t(O.Z)){constructor(e){super(e),this.processor=null,this.slicePlaneEnabled=!1,this.layer=new n}initialize(){this._set("processor",new r.D({owner:this}))}destroy(){this._set("processor",(0,V.SC)(this.processor))}get graphics(){return this.view.graphics}get loadedGraphics(){return this.graphics}get updating(){return!!this.processor?.updating}get symbolUpdateType(){return this.processor.graphicsCore.symbolUpdateType}getHit(e){return this.processor.getHit(e)}whenGraphicBounds(e,o){return this.processor.whenGraphicBounds(e,o)}graphicChanged(e){this.processor.graphicsCore.graphicUpdateHandler(e)}get updatePolicy(){return this.processor.graphicsCore.effectiveUpdatePolicy}queryGraphics(){var e=this;return(0,C.Z)(function*(){return e.loadedGraphics})()}fetchPopupFeatures(e,o){return(0,C.Z)(function*(){return(0,V.pC)(o)?o.clientGraphics:null})()}highlight(e){return this.processor.highlight(e)}maskOccludee(e){return this.processor.maskOccludee(e)}};(0,a._)([(0,d.Cb)({readOnly:!0})],s.prototype,"graphics",null),(0,a._)([(0,d.Cb)()],s.prototype,"loadedGraphics",null),(0,a._)([(0,d.Cb)({readOnly:!0})],s.prototype,"updating",null),(0,a._)([(0,d.Cb)({constructOnly:!0})],s.prototype,"view",void 0),(0,a._)([(0,d.Cb)()],s.prototype,"processor",void 0),(0,a._)([(0,d.Cb)({type:Boolean})],s.prototype,"slicePlaneEnabled",void 0),(0,a._)([(0,d.Cb)()],s.prototype,"layer",void 0),s=(0,a._)([(0,F.j)("esri.views.3d.layers.GraphicsView3D")],s);class n extends G.Ej{constructor(){super(),this.type="graphics-view-3d-dummy",this.id=this.uid}}const l=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8068.2cddd2b2926ac8ff.js b/apps/n/porrtal-io-app/public/angular/8068.2cddd2b2926ac8ff.js deleted file mode 100644 index 0b201d87..00000000 --- a/apps/n/porrtal-io-app/public/angular/8068.2cddd2b2926ac8ff.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8068],{60595:(H,V,s)=>{s.d(V,{T:()=>A});var v=s(15861),a=s(84792),w=s(26584),x=s(62208);function A(I,h,o,g,y,u){return b.apply(this,arguments)}function b(){return(b=(0,v.Z)(function*(I,h,o,g,y,u){let R=null;if((0,x.pC)(o)){const f=`${I}/nodepages/`,M=f+Math.floor(o.rootIndex/o.nodesPerPage);try{return{type:"page",rootPage:(yield(0,a.default)(M,{query:{f:"json",token:g},responseType:"json",signal:u})).data,rootIndex:o.rootIndex,pageSize:o.nodesPerPage,lodMetric:o.lodSelectionMetricType,urlPrefix:f}}catch(O){(0,x.pC)(y)&&y.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",M,O),R=O}}if(!h)return null;const m=`${I}/nodes/`,U=m+(h&&h.split("/").pop());try{return{type:"node",rootNode:(yield(0,a.default)(U,{query:{f:"json",token:g},responseType:"json",signal:u})).data,urlPrefix:m}}catch(f){throw new w.Z("sceneservice:root-node-missing","Root node missing.",{pageError:R,nodeError:f,url:U})}})).apply(this,arguments)}},81736:(H,V,s)=>{s.r(V),s.d(V,{default:()=>fe});var v=s(15861),a=s(17626),w=s(88879),x=s(14517),A=s(85931),b=s(46160),I=s(54024),h=s(63290),o=s(62208),g=s(10699),y=s(32917),u=s(77712),m=(s(90912),s(76898)),f=(s(20925),s(26584)),M=s(10410),X=(s(49410),s(98624)),F=s(36630),B=s(96854),K=s(61885),$=s(80542),Y=s(61996),J=s(60330);const N=(e,t)=>{let r=class extends((0,J.v)((0,$.p)((0,Y.IG)(K.Z.EventedMixin(e))))){constructor(i){super(i),this.sublayer=null,this.parent=null,this.view=null}initialize(){}get suspended(){return!this.canResume()}get updating(){return!this.suspended&&this.isUpdating()}get visible(){return!!this.sublayer?.visible}set visible(i){this._overrideIfSome("visible",i)}get fullOpacity(){const i=n=>n??1;return i(this.get("sublayer.opacity"))*i(this.get("parent.fullOpacity"))}canResume(){return!this.parent?.suspended&&this.view?.ready&&this.visible||!1}isUpdating(){return!1}};return(0,a._)([(0,u.Cb)()],r.prototype,"sublayer",void 0),(0,a._)([(0,u.Cb)()],r.prototype,"parent",void 0),(0,a._)([(0,u.Cb)({readOnly:!0})],r.prototype,"suspended",null),(0,a._)([(0,u.Cb)({type:Boolean,readOnly:!0})],r.prototype,"updating",null),(0,a._)([(0,u.Cb)()],r.prototype,"view",void 0),(0,a._)([(0,u.Cb)()],r.prototype,"visible",null),(0,a._)([(0,u.Cb)()],r.prototype,"fullOpacity",null),r=(0,a._)([(0,m.j)("esri.views.3d.layers.BuildingSublayerView3D")],r),r};var p,e,q=s(14341),Q=s(52836),k=s(4794),_=s(2180),ee=s(9044);function re(e){switch(e.filterMode.type){case"solid":return{mode:p.Solid};case"wire-frame":return{mode:p.WireFrame,edgeMaterial:(0,_.C8)(e.filterMode.edges,{})};case"x-ray":return{mode:p.XRay}}}function T(e,t){if((0,o.Wi)(t))return e.color[3]=0,e.edgeMaterial=null,void(e.pickable=!1);switch(t.mode){case p.Solid:return;case p.WireFrame:return e.color[3]=0,e.edgeMaterial=t.edgeMaterial,void(e.pickable=!1);case p.XRay:return e.color[0]=1,e.color[1]=1,e.color[2]=1,e.color[3]*=.15,e.colorMixMode=ee.a9.Replace,e.castShadows=!1,e.pickable=!1,void(e.edgeMaterial=function se(e){return(0,o.Wi)(e)?null:(L.lastMaterial!==e&&(L.cachedMaterial=function ie(e){const t=(0,k.d)(e.color);return t[3]*=.075,{...e,color:t}}(e),L.lastMaterial=e),L.cachedMaterial)}(e.edgeMaterial))}}(e=p||(p={}))[e.Solid=0]="Solid",e[e.WireFrame=1]="WireFrame",e[e.XRay=2]="XRay";const L={cachedMaterial:null,lastMaterial:null};var ne=s(2694),j=s(22498),le=s(94443),ae=s(72537),oe=s(41941),W=s(42964),ue=s(89476);s(8314),s(44648),s(2345),s(383);class P extends x.Z{constructor(){super(...arguments),this.sublayer=null}get updating(){return!1}get suspended(){return!1}get availableFields(){return[]}get filter(){return null}set filter(t){throw new Error("Not implemented")}queryFeatures(t,r){throw new Error("Not implemented")}queryObjectIds(t,r){throw new Error("Not implemented")}queryFeatureCount(t,r){throw new Error("Not implemented")}createQuery(){throw new Error("Not implemented")}queryExtent(t,r){throw new Error("Not implemented")}highlight(t){throw new Error("Not implemented")}}(0,a._)([(0,u.Cb)()],P.prototype,"sublayer",void 0),(0,a._)([(0,u.Cb)()],P.prototype,"availableFields",null),(0,a._)([(0,u.Cb)()],P.prototype,"filter",null);var G=s(10023),de=s(87091);let d=class extends((0,ue.l)((0,q.N)(N(P)))){constructor(){super(...arguments),this.type="building-component-sublayer-3d",this.layerView=null,this._elevationContext="scene",this._isIntegratedMesh=!1,this._supportsLabeling=!1,this.requiredFields=[],this.progressiveLoadFactor=1,this._queryEngine=null}get i3slayer(){return this.sublayer}get layerUid(){return this.sublayer.layer.uid}get sublayerUid(){return this.sublayer.uid}get layerId(){return this.sublayer.layer.id}get sublayerId(){return this.sublayer.id}get layerPopupEnabled(){return this.sublayer.popupEnabled}initialize(){this.updatingHandles.add(()=>[this.sublayer.renderer,this.definitionExpressionFields,this.filterExpressionFields],()=>this._updateRequiredFields()),this.updatingHandles.add(()=>this.sublayer.renderer,t=>this._rendererChange(t),y.nn);const e=()=>this._filterChange();this.updatingHandles.add(()=>this.parsedDefinitionExpression,e),this.updatingHandles.add(()=>(0,o.pC)(this._filter)?this._filter.sortedObjectIds:null,e),this.updatingHandles.add(()=>(0,o.pC)(this._filter)?this._filter.parsedWhereClause:null,e),this.updatingHandles.add(()=>[(0,o.pC)(this._filter)?this._filter.parsedGeometry:null,(0,o.pC)(this.filter)?this.filter.spatialRelationship:null],()=>this._geometryFilterChange()),this.updatingHandles.add(()=>this.parsedFilterExpressions,()=>this._updateSymbologyOverride(),y.nn),this.addResolvingPromise(this._updateRequiredFields())}get lodFactor(){return this.view.qualitySettings.sceneService.object.lodFactor}get parsedFilterExpressions(){return"Overview"!==this.sublayer.modelName&&this.layerView?this.layerView.filterExpressions.map(([e,t])=>{let r;try{r=M.WhereClause.create(e,this.sublayer.fieldsIndex)}catch(l){return h.Z.getLogger(this.declaredClass).error("Failed to parse filterExpression: "+l),null}if(!r.isStandardized)return h.Z.getLogger(this.declaredClass).error("filterExpression is using non standard function"),null;const i=[];return(0,W.e8)(r.fieldNames,this.sublayer.fields,{missingFields:i}),i.length>0?(h.Z.getLogger(this.declaredClass).error(`filterExpression references unknown fields: ${i.join(", ")}`),null):[r,t]}).filter(e=>null!=e):[]}get filter(){return(0,o.pC)(this._filter)?this._filter.viewFilter:null}set filter(e){!(0,o.Wi)(e)&&j.z.checkSupport(e)?(0,o.pC)(this._filter)?this._filter.viewFilter=e:this._filter=new j.z({viewFilter:e,layerFieldsIndex:this.sublayer.fieldsIndex,loadAsyncModule:t=>this._loadAsyncModule(t),addSqlFilter:(t,r)=>this.addSqlFilter(t,r,this.logError)}):this._filter=null}isUpdating(){return super.isUpdating()||(0,o.pC)(this._filter)&&this._filter.updating}_updateSymbologyOverride(){const e=this.parsedFilterExpressions;e.length>0?this._setSymbologyOverride((t,r)=>{for(const[i,n]of e)try{if(i.testFeature(t))return T(r,n)}catch(l){this.logError(l)}return T(r,null)},this.filterExpressionFields):this._setSymbologyOverride(null,null)}get filterExpressionFields(){return(0,F.Q0)(this.sublayer.fieldsIndex,this.parsedFilterExpressions.reduce((e,[t])=>e.concat(t.fieldNames),new Array))}get availableFields(){const e=this.sublayer,t=e.fieldsIndex;let r=this.requiredFields;if(e.outFields||e.layer.outFields){const i=[...e.outFields||[],...e.layer.outFields||[]];r=[...(0,F.Lk)(t,i),...r]}return(0,F.Q0)(t,r)}_createLayerGraphic(e){const t=new w.Z(null,null,e);return t.layer=this.sublayer.layer,t.sourceLayer=this.sublayer,t}canResume(){return super.canResume()&&(!this._controller||this._controller.rootNodeVisible)}fetchPopupFeatures(e,t){var r=this;return(0,v.Z)(function*(){const i=r._validateFetchPopupFeatures(t);if(i)throw i;if((0,o.Wi)(t)||!t.clientGraphics||0===t.clientGraphics.length)return[];const n=[],l=[],C=(0,o.pC)(r.sublayer.associatedLayer)?yield r.sublayer.associatedLayer.load():r.sublayer,E=(0,F.Lk)(r.sublayer.fieldsIndex,yield(0,G.e)(C,(0,G.V)(r.sublayer,t))),z=new Set;for(const S of t.clientGraphics)(0,F.Gm)(E,S,z)?l.push(S):n.push(S);return 0===l.length?n:((0,o.pC)(r.sublayer.associatedLayer)&&(yield r.sublayer.associatedLayer.load().catch(()=>h.Z.getLogger(r.declaredClass).warn("Failed to load associated feature layer. Displaying popup attributes from cached attributes."))),r.whenGraphicAttributes(l,Array.from(z)).catch(()=>l).then(S=>n.concat(S)))})()}_updateRequiredFields(){var e=this;return(0,v.Z)(function*(){const t=(0,F.Q0)(e.sublayer.fieldsIndex,[...e.sublayer.renderer?yield e.sublayer.renderer.getRequiredFields(e.sublayer.fieldsIndex):[],...e.definitionExpressionFields||[],...e.filterExpressionFields||[]]);e._set("requiredFields",t)})()}_validateFetchPopupFeatures(e){const{sublayer:t}=this,{popupEnabled:r}=t;return r?(0,G.V)(t,e)?void 0:new f.Z("buildingscenelayerview3d:fetchPopupFeatures","Layer does not define a popup template",{sublayer:t}):new f.Z("buildingscenelayerview3d:fetchPopupFeatures","Popups are disabled",{sublayer:t})}getFilters(){const e=super.getFilters();return this.addSqlFilter(e,this.parsedDefinitionExpression,this.logError),(0,o.pC)(this._filter)&&this._filter.addFilters(e,this.view,this._controller.crsIndex,this._collection),e}createQuery(){const e={outFields:["*"],returnGeometry:!1,outSpatialReference:this.view.spatialReference};return(0,o.pC)(this.filter)?this.filter.createQuery(e):new B.Z(e)}queryExtent(e,t){return this._ensureQueryEngine().executeQueryForExtent(this._ensureQuery(e),t?.signal)}queryFeatureCount(e,t){return this._ensureQueryEngine().executeQueryForCount(this._ensureQuery(e),t?.signal)}queryFeatures(e,t){return this._ensureQueryEngine().executeQuery(this._ensureQuery(e),t?.signal).then(r=>{if(!r?.features)return r;const i=this.sublayer,n=i.layer;for(const l of r.features)l.layer=n,l.sourceLayer=i;return r})}queryObjectIds(e,t){return this._ensureQueryEngine().executeQueryForIds(this._ensureQuery(e),t?.signal)}_ensureQueryEngine(){return(0,o.Wi)(this._queryEngine)&&(this._queryEngine=this._createQueryEngine()),this._queryEngine}_createQueryEngine(){const e=(0,ne.gz)(this.view.spatialReference,this.view.renderSpatialReference,this._collection);return new le.u({layerView:this,priority:de.T8.FEATURE_QUERY_ENGINE,spatialIndex:new oe.I({featureAdapter:new ae.u({objectIdField:this.sublayer.objectIdField,attributeStorageInfo:this.sublayer.attributeStorageInfo,getFeatureExtent:e}),toArray:()=>{const t=new Array;return this._forAllFeatures((r,i,n)=>(t.push({id:r,index:i,meta:n}),Q.K.CONTINUE),null,Q.u.ALL_IN_CLIPPING_AREA),t},forAllFeatures:(t,r)=>this._forAllFeatures((i,n,l)=>t({id:i,index:n,meta:l}),r,Q.u.ALL_IN_CLIPPING_AREA),getFeatureExtent:e,sourceSpatialReference:(0,W.tp)(this.sublayer),viewSpatialReference:this.view.spatialReference})})}_ensureQuery(e){return this._addDefinitionExpressionToQuery((0,o.Wi)(e)?this.createQuery():B.Z.from(e))}};(0,a._)([(0,u.Cb)()],d.prototype,"i3slayer",null),(0,a._)([(0,u.Cb)()],d.prototype,"layerView",void 0),(0,a._)([(0,u.Cb)()],d.prototype,"lodFactor",null),(0,a._)([(0,u.Cb)({readOnly:!0})],d.prototype,"parsedFilterExpressions",null),(0,a._)([(0,u.Cb)({type:X.Z})],d.prototype,"filter",null),(0,a._)([(0,u.Cb)()],d.prototype,"_filter",void 0),(0,a._)([(0,u.Cb)({type:[String],readOnly:!0})],d.prototype,"filterExpressionFields",null),(0,a._)([(0,u.Cb)({type:[String],readOnly:!0})],d.prototype,"requiredFields",void 0),(0,a._)([(0,u.Cb)({type:[String],readOnly:!0})],d.prototype,"availableFields",null),d=(0,a._)([(0,m.j)("esri.views.3d.layers.BuildingComponentSublayerView3D")],d);const he=d;var ye=s(19702),pe=s(41632),ce=s(45611);class Z extends ce.Z{constructor(t){super(t),this.layer=null,this.sublayerViews=null}highlight(t){throw new Error("Not implemented")}}(0,a._)([(0,u.Cb)()],Z.prototype,"layer",void 0),(0,a._)([(0,u.Cb)()],Z.prototype,"sublayerViews",void 0);const ge=N(x.Z);let c=class extends((0,ye.A)(Z)){constructor(e){super(e),this.type="building-scene-3d",this.sublayerViews=new b.Z,this._abortController=new AbortController,this._loadingComponents=0,this._pendingWhenSublayerViews=new Map}get filterExpression(){const e=this.layer.activeFilterId,t=null!=e?this.layer.filters.find(i=>i.id===e):null,r=null!=t?t.filterBlocks?.find(i=>"solid"===i.filterMode.type):null;return r?r.filterExpression:null}get filterExpressions(){const e=this.layer.activeFilterId,t=null!=e?this.layer.filters.find(r=>r.id===e):null;return t&&t.filterBlocks?t.filterBlocks.toArray().map(r=>[r.filterExpression??"",re(r)]):[]}get updatingProgressValue(){const e=this.sublayerViews,t=this._loadingComponents+(e?e.length:0);return e.reduce((r,i)=>r+i.updatingProgress,0)/t}isUpdating(){return this._loadingComponents>0||this.sublayerViews&&this.sublayerViews.some(e=>e.updating)}initialize(){(0,W.Jf)(this.layer.spatialReference,this.view.spatialReference,this.view.viewingMode),this._initializeSubLayerViews(this.layer.sublayers,this)}destroy(){this.sublayerViews&&(this.sublayerViews.forEach(e=>e.destroy()),this.sublayerViews=null),this._abortController=(0,o.IM)(this._abortController)}_initializeSubLayerViews(e,t){const r=this,i=this.view;e.forEach(n=>{if(!n.isEmpty)if("building-group"===n.type){const l=new ge({sublayer:n,view:i,parent:t});this._initializeSubLayerViews(n.sublayers,l)}else"mesh"===n.geometryType&&(this._loadingComponents++,n.load({signal:this._abortController.signal}).then(()=>{const l=new he({sublayer:n,layerView:r,view:i,parent:t});this.sublayerViews.push(l);const C=this._pendingWhenSublayerViews.get(n);if(C){for(const E of C)E.resolve(l);this._pendingWhenSublayerViews.delete(n)}this.handles.add([(0,y.YP)(()=>l.updating,()=>this.notifyChange("updating"),y.tX),(0,y.YP)(()=>l.updatingProgress,()=>this.notifyChange("updatingProgressValue"),y.tX)])}).catch(l=>{(0,g.D_)(l)||h.Z.getLogger(this.declaredClass).error(`Error while creating view for sublayer ${n.id}\nLayer: ${this.layer.url}\n`,l)}).then(()=>{this._loadingComponents--,this.notifyChange("updating"),this.notifyChange("updatingProgressValue")}))})}getGraphicFromIntersectorTarget(e){for(const t of this.sublayerViews.items)if(t.sublayer.uid===e.sublayerUid)return t.getGraphicFromIntersectorTarget(e);return null}fetchPopupFeatures(e,t){var r=this;return(0,v.Z)(function*(){if((0,o.Wi)(t)||!t.clientGraphics||0===t.clientGraphics.length)return[];const i=(0,A.Ms)(t.clientGraphics,l=>l.sourceLayer),n=[];for(const[l,C]of i){const E=r._findComponent(l);(0,o.pC)(E)&&n.push(E.fetchPopupFeatures(e,{...t,clientGraphics:C}))}return(0,g.WW)(n).then(l=>l.flat())})()}whenGraphicBounds(e){const t=this._findComponent(e.sourceLayer);return(0,o.Wi)(t)?Promise.reject():t.whenGraphicBounds(e)}getAABBFromIntersectorTarget(e){for(const t of this.sublayerViews.items)if(t.sublayer.uid===e.sublayerUid)return t.getAABBFromIntersectorTarget(e);return null}whenSublayerView(e){var t=this;return(0,v.Z)(function*(){const r=t._findComponent(e);if((0,o.pC)(r))return r;const i=t._pendingWhenSublayerViews.get(e),n=(0,g.hh)();return i?i.push(n):t._pendingWhenSublayerViews.set(e,[n]),n.promise})()}_findComponent(e){return this.sublayerViews.find(t=>e===t.sublayer)}highlight(e){e instanceof w.Z?e=[e]:e instanceof b.Z&&(e=e.toArray());const t=[];if(Array.isArray(e)&&e.length>0&&e[0]instanceof w.Z){const r=e,i=new Map;for(const n of r){let l=i.get(n.sourceLayer);null==l&&(l=[],i.set(n.sourceLayer,l)),l.push(n)}this.sublayerViews.forEach(n=>{const l=i.get(n.sublayer);l&&t.push(n.highlight(l))})}return(0,I.AL)(t)}getUsedMemory(){return this.sublayerViews.reduce((e,t)=>e+t.getUsedMemory(),0)}getUnloadedMemory(){return this.sublayerViews.reduce((e,t)=>e+t.getUnloadedMemory(),0)}ignoresMemoryFactor(){return!1}};(0,a._)([(0,u.Cb)()],c.prototype,"sublayerViews",void 0),(0,a._)([(0,u.Cb)({readOnly:!0})],c.prototype,"filterExpression",null),(0,a._)([(0,u.Cb)({readOnly:!0})],c.prototype,"filterExpressions",null),(0,a._)([(0,u.Cb)(pe.q)],c.prototype,"updatingProgress",void 0),(0,a._)([(0,u.Cb)({readOnly:!0,dependsOn:[]})],c.prototype,"updatingProgressValue",null),c=(0,a._)([(0,m.j)("esri.views.3d.layers.BuildingSceneLayerView3D")],c);const fe=c}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8073.1a876075b01a413b.js b/apps/n/porrtal-io-app/public/angular/8073.1a876075b01a413b.js deleted file mode 100644 index 1ce63afd..00000000 --- a/apps/n/porrtal-io-app/public/angular/8073.1a876075b01a413b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8073],{88073:(S,d,s)=>{s.r(d),s.d(d,{r:()=>h});var u,_,e,l=s(1719),r={exports:{}};u=r,void 0!==(e=r.exports,Object.defineProperty(e,"__esModule",{value:!0}),_=void(e.default={_decimalSeparator:",",_thousandSeparator:" ",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"\u043d.\u044d.",_era_bc:"\u0434\u043e \u043d.\u044d.",A:"\u0423",P:"\u0412",AM:"\u0443\u0442\u0440\u0430",PM:"\u0432\u0435\u0447\u0435\u0440\u0430","A.M.":"\u0434\u043e \u043f\u043e\u043b\u0443\u0434\u043d\u044f","P.M.":"\u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0434\u043d\u044f",January:"\u044f\u043d\u0432\u0430\u0440\u044f",February:"\u0444\u0435\u0432\u0440\u0430\u043b\u044f",March:"\u043c\u0430\u0440\u0442\u0430",April:"\u0430\u043f\u0440\u0435\u043b\u044f",May:"\u043c\u0430\u044f",June:"\u0438\u044e\u043d\u044f",July:"\u0438\u044e\u043b\u044f",August:"\u0430\u0432\u0433\u0443\u0441\u0442\u0430",September:"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f",October:"\u043e\u043a\u0442\u044f\u0431\u0440\u044f",November:"\u043d\u043e\u044f\u0431\u0440\u044f",December:"\u0434\u0435\u043a\u0430\u0431\u0440\u044f",Jan:"\u044f\u043d\u0432.",Feb:"\u0444\u0435\u0432\u0440.",Mar:"\u043c\u0430\u0440\u0442",Apr:"\u0430\u043f\u0440.","May(short)":"\u043c\u0430\u0439",Jun:"\u0438\u044e\u043d\u044c",Jul:"\u0438\u044e\u043b\u044c",Aug:"\u0430\u0432\u0433.",Sep:"\u0441\u0435\u043d\u0442.",Oct:"\u043e\u043a\u0442.",Nov:"\u043d\u043e\u044f\u0431.",Dec:"\u0434\u0435\u043a.",Sunday:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435",Monday:"\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a",Tuesday:"\u0432\u0442\u043e\u0440\u043d\u0438\u043a",Wednesday:"\u0441\u0440\u0435\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u0435\u0440\u0433",Friday:"\u043f\u044f\u0442\u043d\u0438\u0446\u0430",Saturday:"\u0441\u0443\u0431\u0431\u043e\u0442\u0430",Sun:"\u0432\u0441.",Mon:"\u043f\u043d.",Tue:"\u0432\u0442.",Wed:"\u0441\u0440.",Thu:"\u0447\u0442.",Fri:"\u043f\u0442.",Sat:"\u0441\u0431.",_dateOrd:function(n){return"-\u043e\u0435"},"Zoom Out":"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",Play:"\u0421\u0442\u0430\u0440\u0442",Stop:"\u0421\u0442\u043e\u043f",Legend:"\u041b\u0435\u0433\u0435\u043d\u0434\u0430","Click, tap or press ENTER to toggle":"\u0429\u0435\u043b\u043a\u043d\u0438\u0442\u0435, \u043a\u043e\u0441\u043d\u0438\u0442\u0435\u0441\u044c \u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0412\u0412\u041e\u0414, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",Loading:"\u0418\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430",Home:"\u041d\u0430\u0447\u0430\u043b\u043e",Chart:"\u0413\u0440\u0430\u0444\u0438\u043a","Serial chart":"\u0421\u0435\u0440\u0438\u0439\u043d\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430","X/Y chart":"\u0414\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 X/Y","Pie chart":"\u041a\u0440\u0443\u0433\u043e\u0432\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430","Gauge chart":"\u0414\u0430\u0442\u0447\u0438\u043a-\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430","Radar chart":"\u041b\u0435\u043f\u0435\u0441\u0442\u043a\u043e\u0432\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430","Sankey diagram":"\u0414\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0421\u044d\u043d\u043a\u0438","Chord diagram":"\u0414\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 Chord","Flow diagram":"\u0414\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0444\u043b\u043e\u0443","TreeMap chart":"\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430",Series:"\u0421\u0435\u0440\u0438\u044f","Candlestick Series":"\u0421\u0435\u0440\u0438\u044f-\u043f\u043e\u0434\u0441\u0432\u0435\u0447\u043d\u0438\u043a","Column Series":"\u0421\u0442\u043e\u043b\u0431\u0447\u0430\u0442\u0430\u044f \u0441\u0435\u0440\u0438\u044f","Line Series":"\u041b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0441\u0435\u0440\u0438\u044f","Pie Slice Series":"\u041a\u0440\u0443\u0433\u043e\u0432\u0430\u044f \u0441\u0435\u0440\u0438\u044f","X/Y Series":"X/Y \u0441\u0435\u0440\u0438\u044f",Map:"\u041a\u0430\u0440\u0442\u0430","Press ENTER to zoom in":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0412\u0412\u041e\u0414 \u0447\u0442\u043e\u0431\u0443 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c","Press ENTER to zoom out":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0412\u0412\u041e\u0414 \u0447\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c","Use arrow keys to zoom in and out":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438-\u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c","Use plus and minus keys on your keyboard to zoom in and out":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043f\u043b\u044e\u0441 \u0438 \u043c\u0438\u043d\u0443\u0441 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",Export:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c",Image:"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",Data:"\u0414\u0430\u043d\u043d\u044b\u0435",Print:"\u041f\u0435\u0447\u0430\u0442\u0430\u0442\u044c","Click, tap or press ENTER to open":"\u0429\u0435\u043b\u043a\u043d\u0438\u0442\u0435, \u043a\u043e\u0441\u043d\u0438\u0442\u0435\u0441\u044c \u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0412\u0412\u041e\u0414 \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c","Click, tap or press ENTER to print.":"\u0429\u0435\u043b\u043a\u043d\u0438\u0442\u0435, \u043a\u043e\u0441\u043d\u0438\u0442\u0435\u0441\u044c \u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0412\u0412\u041e\u0414 \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c","Click, tap or press ENTER to export as %1.":"\u0429\u0435\u043b\u043a\u043d\u0438\u0442\u0435, \u043a\u043e\u0441\u043d\u0438\u0442\u0435\u0441\u044c \u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0412\u0412\u041e\u0414 \u0447\u0442\u043e\u0431\u044b \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a %1",'To save the image, right-click this link and choose "Save picture as..."':'\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0449\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0435 \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 "\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u043a..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0449\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 "\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u043a..."',"(Press ESC to close this message)":"(\u041d\u0430\u0436\u043c\u0438\u0442\u0435 ESC \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435)","Image Export Complete":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d","Export operation took longer than expected. Something might have gone wrong.":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043d\u044f\u043b\u043e \u0434\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a.","Saved from":"\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e \u0438\u0437",PNG:"PNG",JPG:"JPG",GIF:"GIF",SVG:"SVG",PDF:"PDF",JSON:"JSON",CSV:"CSV",XLSX:"XLSX","Use TAB to select grip buttons or left and right arrows to change selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0443 TAB, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0443\u043a\u043e\u044f\u0442\u043a\u0438 \u0438\u043b\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0432\u043b\u0435\u0432\u043e \u0438 \u0432\u043f\u0440\u0430\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","Use left and right arrows to move selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0432\u043b\u0435\u0432\u043e-\u0432\u043f\u0440\u0430\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","Use left and right arrows to move left selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0432\u043b\u0435\u0432\u043e-\u0432\u043f\u0440\u0430\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u043b\u0435\u0432\u043e\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","Use left and right arrows to move right selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0432\u043b\u0435\u0432\u043e-\u0432\u043f\u0440\u0430\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u043f\u0440\u0430\u0432\u043e\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","Use TAB select grip buttons or up and down arrows to change selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 TAB, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0443\u043a\u043e\u044f\u0442\u043a\u0438 \u0438\u043b\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0432\u0432\u0435\u0440\u0445-\u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","Use up and down arrows to move selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0432\u0432\u0435\u0440\u0445-\u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","Use up and down arrows to move lower selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0432\u0432\u0435\u0440\u0445-\u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u043d\u0438\u0436\u043d\u0435\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","Use up and down arrows to move upper selection":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0432\u0432\u0435\u0440\u0445-\u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0432\u0435\u0440\u0445\u043d\u0435\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435","From %1 to %2":"\u041e\u0442 %1 \u0434\u043e %2","From %1":"\u041e\u0442 %1","To %1":"\u0414\u043e %1","No parser available for file: %1":"\u041d\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u0430: %1","Error parsing file: %1":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0444\u0430\u0439\u043b\u0430: %1","Unable to load file: %1":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b: %1","Invalid date":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u0434\u0430\u0442\u0430"}))&&(u.exports=_);const h=function m(a,e){for(var n=0;no[t]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,l.g)(r.exports)},[r.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8110.958310f26ffee749.js b/apps/n/porrtal-io-app/public/angular/8110.958310f26ffee749.js deleted file mode 100644 index ceb16e9d..00000000 --- a/apps/n/porrtal-io-app/public/angular/8110.958310f26ffee749.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8110],{48110:(_,d,s)=>{s.r(d),s.d(d,{p:()=>S});var m,c,e,u=s(1719),r={exports:{}};m=r,void 0!==(e=r.exports,Object.defineProperty(e,"__esModule",{value:!0}),c=void(e.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"DC",_era_bc:"AC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Janeiro",February:"Fevereiro",March:"Mar\xe7o",April:"Abril",May:"Maio",June:"Junho",July:"Julho",August:"Agosto",September:"Setembro",October:"Outubro",November:"Novembro",December:"Dezembro",Jan:"Jan",Feb:"Fev",Mar:"Mar",Apr:"Abr","May(short)":"Mai",Jun:"Jun",Jul:"Jul",Aug:"Ago",Sep:"Set",Oct:"Out",Nov:"Nov",Dec:"Dez",Sunday:"Domingo",Monday:"Segunda-feira",Tuesday:"Ter\xe7a-feira",Wednesday:"Quarta-feira",Thursday:"Quinta-feira",Friday:"Sexta-feira",Saturday:"S\xe1bado",Sun:"Dom",Mon:"Seg",Tue:"Ter",Wed:"Qua",Thu:"Qui",Fri:"Sex",Sat:"S\xe1b",_dateOrd:function(i){return"\xba"},"Zoom Out":"Reduzir Zoom",Play:"Play",Stop:"Parar",Legend:"Legenda","Click, tap or press ENTER to toggle":"Clique, toque ou pressione ENTER para alternar",Loading:"Carregando",Home:"In\xedcio",Chart:"Gr\xe1fico","Serial chart":"Gr\xe1fico Serial","X/Y chart":"Gr\xe1fico XY","Pie chart":"Gr\xe1fico de Pizza","Gauge chart":"Gr\xe1fico Indicador","Radar chart":"Gr\xe1fico de Radar","Sankey diagram":"Diagrama Sankey","Chord diagram":"Diagram Chord","Flow diagram":"Diagrama Flow","TreeMap chart":"Gr\xe1fico de Mapa de \xc1rvore",Series:"S\xe9ries","Candlestick Series":"S\xe9ries do Candlestick","Column Series":"S\xe9ries de Colunas","Line Series":"S\xe9ries de Linhas","Pie Slice Series":"S\xe9ries de Fatias de Pizza","X/Y Series":"S\xe9ries de XY",Map:"Mapa","Press ENTER to zoom in":"Pressione ENTER para aumentar o zoom","Press ENTER to zoom out":"Pressione ENTER para diminuir o zoom","Use arrow keys to zoom in and out":"Use as setas para diminuir ou aumentar o zoom","Use plus and minus keys on your keyboard to zoom in and out":"Use as teclas mais ou menos no seu teclado para diminuir ou aumentar o zoom",Export:"Exportar",Image:"Imagem",Data:"Dados",Print:"Imprimir","Click, tap or press ENTER to open":"Clique, toque ou pressione ENTER para abrir","Click, tap or press ENTER to print.":"Clique, toque ou pressione ENTER para imprimir","Click, tap or press ENTER to export as %1.":"Clique, toque ou pressione ENTER para exportar como %1.",'To save the image, right-click this link and choose "Save picture as..."':'Para salvar a imagem, clique no link com o bot\xe3o da direira e escolha "Salvar imagem como..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Para salvar, clique na imagem \xe0 esquerda com o bot\xe3o direito e escolha "Salvar imagem como..."',"(Press ESC to close this message)":"(Pressione ESC para fechar esta mensagem)","Image Export Complete":"A exporta\xe7\xe3o da imagem foi completada","Export operation took longer than expected. Something might have gone wrong.":"A exporta\xe7\xe3o da imagem demorou mais do que o experado. Algo deve ter dado errado.","Saved from":"Salvo de",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"Use TAB para selecionar os bot\xf5es ou setas para a direita ou esquerda para mudar a sele\xe7\xe3o","Use left and right arrows to move selection":"Use as setas para a esquerda ou direita para mover a sele\xe7\xe3o","Use left and right arrows to move left selection":"Use as setas para a esquerda ou direita para mover a sele\xe7\xe3o da esquerda","Use left and right arrows to move right selection":"Use as setas para a esquerda ou direita para mover a sele\xe7\xe3o da direita","Use TAB select grip buttons or up and down arrows to change selection":"Use TAB para selecionar os bot\xf5es ou setas para cima ou para baixo para mudar a sele\xe7\xe3o","Use up and down arrows to move selection":"Use as setas para cima ou para baixo para mover a sele\xe7\xe3o","Use up and down arrows to move lower selection":"Use as setas para cima ou para baixo para mover a sele\xe7\xe3o de baixo","Use up and down arrows to move upper selection":"Use as setas para cima ou para baixo para mover a sele\xe7\xe3o de cima","From %1 to %2":"De %1 at\xe9 %2","From %1":"De %1","To %1":"At\xe9 %1","No parser available for file: %1":"Nenhum interpretador est\xe1 dispon\xedvel para este arquivo: %1","Error parsing file: %1":"Erro ao analizar o arquivo: %1","Unable to load file: %1":"O arquivo n\xe3o p\xf4de ser carregado: %1","Invalid date":"Data inv\xe1lida"}))&&(m.exports=c);const S=function g(t,e){for(var i=0;ia[o]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,u.g)(r.exports)},[r.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8149.d9a8f6e0dae018d1.js b/apps/n/porrtal-io-app/public/angular/8149.d9a8f6e0dae018d1.js deleted file mode 100644 index abf40f21..00000000 --- a/apps/n/porrtal-io-app/public/angular/8149.d9a8f6e0dae018d1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8149],{14259:(L,T,g)=>{g.d(T,{q:()=>y});var w,D,b={exports:{}};w=b,void 0!==(D=function(){function v(r,h,m,u,Y){for(;u>m;){if(u-m>600){var p=u-m+1,B=h-m+1,C=Math.log(p),P=.5*Math.exp(2*C/3),j=.5*Math.sqrt(C*P*(p-P)/p)*(B-p/2<0?-1:1);v(r,h,Math.max(m,Math.floor(h-B*P/p+j)),Math.min(u,Math.floor(h+(p-B)*P/p+j)),Y)}var x=r[h],O=m,E=u;for(_(r,m,h),Y(r[u],x)>0&&_(r,m,u);O0;)E--}0===Y(r[m],x)?_(r,m,E):_(r,++E,u),E<=h&&(m=E+1),h<=E&&(u=E-1)}}function _(r,h,m){var u=r[h];r[h]=r[m],r[m]=u}function c(r,h){return rh?1:0}return function A(r,h,m,u,Y){v(r,h,m||0,u||r.length-1,Y||c)}}())&&(w.exports=D);const y=b.exports},36592:(L,T,g)=>{g.d(T,{Q:()=>y});var w=g(85931),I=g(62208),D=g(77029),b=g(14259);class y{constructor(t=9,n){this._compareMinX=c,this._compareMinY=r,this._toBBox=e=>e,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),P.prune(),j.prune(),x.prune(),O.prune()}all(t){this._all(this._data,t)}search(t,n){let e=this._data;const s=this._toBBox;if(B(t,e))for(P.clear();e;){for(let a=0,o=e.children.length;a0;){if(e||(e=(0,I.j0)(x.pop()),s=x.data[x.length-1],a=O.pop()??0,o=!0),e.leaf&&(n=(0,w.cq)(e.children,t,e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),x.push(e),this._condense(x),this;o||e.leaf||!p(e,l)?s?(a++,e=s.children[a],o=!1):e=null:(x.push(e),O.push(a),a=0,s=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,n){let e=t;for(j.clear();e;){if(!0===e.leaf)for(const s of e.children)n(s);else j.pushArray(e.children);e=j.pop()??null}}_build(t,n,e,s){const a=e-n+1;let o=this._maxEntries;if(a<=o){const f=new S(t.slice(n,e+1));return A(f,this._toBBox),f}s||(s=Math.ceil(Math.log(a)/Math.log(o)),o=Math.ceil(a/o**(s-1)));const l=new U([]);l.height=s;const d=Math.ceil(a/o),M=d*Math.ceil(Math.sqrt(o));C(t,n,e,M,this._compareMinX);for(let f=n;f<=e;f+=M){const X=Math.min(f+M-1,e);C(t,f,X,d,this._compareMinY);for(let R=f;R<=X;R+=d){const W=Math.min(R+d-1,X);l.children.push(this._build(t,R,W,s-1))}}return A(l,this._toBBox),l}_chooseSubtree(t,n,e,s){for(;s.push(n),!0!==n.leaf&&s.length-1!==e;){let a,o=1/0,l=1/0;for(let d=0,M=n.children.length;d=0&&x.data[n].children.length>this._maxEntries;)this._split(x,n),n--;this._adjustParentBBoxes(a,x,n)}_split(t,n){const e=t.data[n],s=e.children.length,a=this._minEntries;this._chooseSplitAxis(e,a,s);const o=this._chooseSplitIndex(e,a,s);if(!o)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const l=e.children.splice(o,e.children.length-o),d=e.leaf?new S(l):new U(l);d.height=e.height,A(e,this._toBBox),A(d,this._toBBox),n?t.data[n-1].children.push(d):this._splitRoot(e,d)}_splitRoot(t,n){this._data=new U([t,n]),this._data.height=t.height+1,A(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let s,a,o;s=a=1/0;for(let l=n;l<=e-n;l++){const d=v(t,0,l,this._toBBox),M=v(t,l,e,this._toBBox),f=Y(d,M),X=h(d)+h(M);f=n;M--){const f=t.children[M];_(l,t.leaf?a(f):f),d+=m(l)}return d}_adjustParentBBoxes(t,n,e){for(let s=e;s>=0;s--)_(n.data[s],t)}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const s=t.data[n-1],a=s.children;a.splice((0,w.cq)(a,e,a.length,s.indexHint),1)}else this.clear();else A(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function A(i,t){v(i,0,i.children.length,t,i)}function v(i,t,n,e,s){s||(s=new S([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let a,o=t;o=i.minX&&t.maxY>=i.minY}function C(i,t,n,e,s){const a=[t,n];for(;a.length;){const o=(0,I.j0)(a.pop()),l=(0,I.j0)(a.pop());if(o-l<=e)continue;const d=l+Math.ceil((o-l)/e/2)*e;(0,b.q)(i,d,l,o,s),a.push(l,d,d,o)}}const P=new D.Z,j=new D.Z,x=new D.Z,O=new D.Z({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class K extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new w.SO}}class S extends K{constructor(t){super(),this.children=t,this.leaf=!0}}class U extends K{constructor(t){super(),this.children=t,this.leaf=!1}}},28149:(L,T,g)=>{g.r(T),g.d(T,{default:()=>A});var w=g(15861),I=g(8314),D=g(62208),b=g(36592),y=g(60853);class A{createIndex(c,r){var h=this;return(0,w.Z)(function*(){const m=new Array;if(!c.vertexAttributes||!c.vertexAttributes.position)return new b.Q;const u=h._createMeshData(c),Y=(0,D.pC)(r)?yield r.invoke("createIndexThread",u,{transferList:m}):h.createIndexThread(u).result;return h._createPooledRBush().fromJSON(Y)})()}createIndexThread(c){const r=new Float64Array(c.position),h=this._createPooledRBush();return c.components?this._createIndexComponentsThread(h,r,c.components.map(m=>new Uint32Array(m))):this._createIndexAllThread(h,r)}_createIndexAllThread(c,r){const h=new Array(r.length/9);let m=0;for(let u=0;u!h.faces)?{position:r}:{position:r,components:c.components.map(h=>h.faces)}}_createPooledRBush(){return new b.Q(9,(0,I.Z)("esri-csp-restrictions")?c=>c:[".minX",".minY",".maxX",".maxY"])}}function v(_,c,r,h){return{minX:Math.min(_[c+0],_[r+0],_[h+0]),maxX:Math.max(_[c+0],_[r+0],_[h+0]),minY:Math.min(_[c+1],_[r+1],_[h+1]),maxY:Math.max(_[c+1],_[r+1],_[h+1]),p0:[_[c+0],_[c+1],_[c+2]],p1:[_[r+0],_[r+1],_[r+2]],p2:[_[h+0],_[h+1],_[h+2]]}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8176.5a06a95c121dbd6e.js b/apps/n/porrtal-io-app/public/angular/8176.5a06a95c121dbd6e.js deleted file mode 100644 index bbe15499..00000000 --- a/apps/n/porrtal-io-app/public/angular/8176.5a06a95c121dbd6e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8176],{78176:(W,v,t)=>{t.r(v),t.d(v,{FeatureCollectionSnappingSource:()=>r});var c=t(15861),i=t(17626),M=t(14517),l=t(62208),u=t(10699),g=t(32917),s=t(77712),A=(t(85931),t(90912),t(76898)),h=t(60507),d=t(44725),C=t(4257),D=t(17936),I=t(1520),P=t(83010);let r=class extends M.Z{constructor(e){super(e),this.view=null,this._layerView3D=null}get availability(){return 1}get updating(){return this.layerSource.updating}get _snappingElevationAligner(){const{view:e}=this,{layer:n}=this.layerSource,o=(0,l.pC)(e)&&"3d"===e.type;if(!o||"subtype-group"===n.type)return(0,D.p)();const a=function(){var _=(0,c.Z)(function*(p,y){return(yield(0,u.Hl)(e.whenLayerView(n),y)).elevationAlignPointsInFeatures(p,y)});return function(y,S){return _.apply(this,arguments)}}();return(0,D.p)(o,{elevationInfo:n.elevationInfo,alignPointsInFeatures:a,spatialReference:e.spatialReference})}get _snappingElevationFilter(){const{view:e}=this,n=(0,l.pC)(e)&&"3d"===e.type&&"subtype-group"!==this.layerSource.layer.type;return(0,I.c)(n)}get _symbologySnappingFetcher(){const{view:e}=this,{layer:n}=this.layerSource;return(0,l.pC)(e)&&"3d"===e.type&&"subtype-group"!==n.type?(0,P.k)(this._symbologySnappingSupported,function(){var o=(0,c.Z)(function*(a,_){const p=yield e.whenLayerView(n);return(0,u.k_)(_),p.queryForSymbologySnapping({candidates:a,spatialReference:e.spatialReference},_)});return function(a,_){return o.apply(this,arguments)}}()):(0,P.k)()}get _symbologySnappingSupported(){return(0,l.pC)(this._layerView3D)&&this._layerView3D.symbologySnappingSupported}initialize(){const{view:e}=this,{layer:n}=this.layerSource;(0,l.pC)(e)&&"3d"===e.type&&"subtype-group"!==n.type&&(e.whenLayerView(n).then(o=>this._layerView3D=o),this.addHandles([e.elevationProvider.on("elevation-change",({context:o})=>{const{elevationInfo:a}=n;(0,h.W_)(o,a)&&this._snappingElevationAligner.notifyElevationSourceChange()}),(0,g.YP)(()=>n.elevationInfo,()=>this._snappingElevationAligner.notifyElevationSourceChange(),g.nn),(0,g.YP)(()=>(0,l.pC)(this._layerView3D)?this._layerView3D.processor?.renderer:null,()=>this._symbologySnappingFetcher.notifySymbologyChange(),g.nn)]))}refresh(){}fetchCandidates(e,n){var o=this;return(0,c.Z)(function*(){const{layer:a}=o.layerSource,{coordinateHelper:_,elevationInfo:p}=e,y=a.source;if(!y.querySnapping)return[];const S=(0,d.ML)(a),O=(0,d.rh)(e,S),U=yield y.querySnapping(O,{signal:n});(0,u.k_)(n);const E=yield o._snappingElevationAligner.alignCandidates(U.candidates,n);(0,u.k_)(n);const f=yield o._symbologySnappingFetcher.fetch(E,n);(0,u.k_)(n);const m=0===f.length?E:[...E,...f],L=o._snappingElevationFilter.filter(O,m),R=_.hasZ()?h.jG:p,j=o._getGroundElevation;return L.map(T=>(0,C.X)(T,_,R,j))})()}get _getGroundElevation(){return(0,C.g)(this.view)}};(0,i._)([(0,s.Cb)({constructOnly:!0})],r.prototype,"layerSource",void 0),(0,i._)([(0,s.Cb)({constructOnly:!0})],r.prototype,"view",void 0),(0,i._)([(0,s.Cb)()],r.prototype,"_snappingElevationAligner",null),(0,i._)([(0,s.Cb)()],r.prototype,"_snappingElevationFilter",null),(0,i._)([(0,s.Cb)()],r.prototype,"_symbologySnappingFetcher",null),(0,i._)([(0,s.Cb)()],r.prototype,"_layerView3D",void 0),(0,i._)([(0,s.Cb)()],r.prototype,"_symbologySnappingSupported",null),(0,i._)([(0,s.Cb)()],r.prototype,"_getGroundElevation",null),r=(0,i._)([(0,A.j)("esri.views.interactive.snapping.featureSources.FeatureCollectionSnappingSource")],r)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8178.04fadb05000e0015.js b/apps/n/porrtal-io-app/public/angular/8178.04fadb05000e0015.js deleted file mode 100644 index a0345684..00000000 --- a/apps/n/porrtal-io-app/public/angular/8178.04fadb05000e0015.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8178],{58178:(g,u,n)=>{n.r(u),n.d(u,{CalciteFlow:()=>l,defineCustomElement:()=>m});var v=n(15861),s=n(76210),_=n(22757);const d=(0,s.GH)(class extends s.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.flowDirection=null,this.itemCount=0,this.items=[],this.itemMutationObserver=(0,_.c)("mutation",()=>this.updateFlowProps()),this.getFlowDirection=(t,i)=>t&&i>1||t>1?i{const{el:t,items:i}=this,e=Array.from(t.querySelectorAll("calcite-flow-item, calcite-panel")).filter(o=>!o.matches("calcite-flow-item calcite-flow-item, calcite-panel calcite-panel")),h=i.length,c=e.length,p=e[c-1],b=e[c-2];if(c&&p&&e.forEach(o=>{o.showBackButton=o===p&&c>1,o.hidden=o!==p}),b&&(b.menuOpen=!1),this.items=e,h!==c){const o=this.getFlowDirection(h,c);this.itemCount=c,this.flowDirection=o}}}back(){var t=this;return(0,v.Z)(function*(){const{items:i}=t,e=i[i.length-1];return e?(e.beforeBack?e.beforeBack:()=>Promise.resolve()).call(e).then(()=>(e.remove(),e)):void 0})()}connectedCallback(){var t;null===(t=this.itemMutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}disconnectedCallback(){var t;null===(t=this.itemMutationObserver)||void 0===t||t.disconnect()}handleItemBackClick(){this.back()}render(){const{flowDirection:t}=this;return(0,s.h)("div",{class:{frame:!0,"frame--advancing":"advancing"===t,"frame--retreating":"retreating"===t}},(0,s.h)("slot",null))}get el(){return this}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}"}},[1,"calcite-flow",{flowDirection:[32],itemCount:[32],items:[32],back:[64]},[[0,"calciteFlowItemBackClick","handleItemBackClick"],[0,"calcitePanelBackClick","handleItemBackClick"]]]);function a(){typeof customElements>"u"||["calcite-flow"].forEach(i=>{"calcite-flow"===i&&(customElements.get(i)||customElements.define(i,d))})}a();const l=d,m=a},22757:(g,u,n)=>{n.d(u,{c:()=>s});var v=n(76210);function s(r,f,d){if(!v.Z5.isBrowser)return;const a=function _(r){class f extends window.MutationObserver{constructor(a){super(a),this.observedEntry=[],this.callback=a}observe(a,l){return this.observedEntry.push({target:a,options:l}),super.observe(a,l)}unobserve(a){const l=this.observedEntry.filter(m=>m.target!==a);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),l.forEach(m=>this.observe(m.target,m.options))}}return"intersection"===r?window.IntersectionObserver:"mutation"===r?f:window.ResizeObserver}(r);return new a(f,d)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8203.f3d8d13fc9dd04c6.js b/apps/n/porrtal-io-app/public/angular/8203.f3d8d13fc9dd04c6.js deleted file mode 100644 index 62c391b4..00000000 --- a/apps/n/porrtal-io-app/public/angular/8203.f3d8d13fc9dd04c6.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8203],{46668:(me,se,r)=>{r.d(se,{a:()=>C});const T=2654435761,a=2246822519,w=3266489917,O=668265263,A=374761393;function l(K){const m=[];for(let h=0,_=K.length;h<_;h++){let u=K.charCodeAt(h);u<128?m.push(u):u<2048?m.push(192|u>>6,128|63&u):u<55296||u>=57344?m.push(224|u>>12,128|u>>6&63,128|63&u):(h++,u=65536+((1023&u)<<10|1023&K.charCodeAt(h)),m.push(240|u>>18,128|u>>12&63,128|u>>6&63,128|63&u))}return new Uint8Array(m)}class C{constructor(m){this._seed=m,this._totallen=0,this._bufs=[],this.init()}init(){return this._bufs=[],this._totallen=0,this}updateFloatArray(m){const h=[];for(const _ of m)isNaN(_)?h.push("NaN"):h.push(_===1/0?"Infinity":_===-1/0?"-Infinity":0===_?"0":_.toString(16));this.update(l(h.join("")))}updateIntArray(m){const h=Int32Array.from(m);this.update(new Uint8Array(h.buffer))}updateUint8Array(m){this.update(Uint8Array.from(m))}updateWithString(m){return this.update(l(m))}update(m){return this._bufs.push(m),this._totallen+=m.length,this}digest(){const m=new Uint8Array(this._totallen);let h=0;for(const _ of this._bufs)m.set(_,h),h+=_.length;return this.init(),this._xxHash32(m,this._seed)}_xxHash32(m,h=0){const _=m;let u=h+A&4294967295,b=0;if(_.length>=16){const y=[h+T+a&4294967295,h+a&4294967295,h+0&4294967295,h-T&4294967295],L=m,S=L.length-16;let G=0;for(b=0;(4294967280&b)<=S;b+=4){let E=y[G]+((L[b+0]+(L[b+1]<<8))*a+((L[b+2]+(L[b+3]<<8))*a<<16))&4294967295;E=E<<13|E>>>19,y[G]=(65535&E)*T+((E>>>16)*T<<16)&4294967295,G=G+1&3}u=(y[0]<<1|y[0]>>>31)+(y[1]<<7|y[1]>>>25)+(y[2]<<12|y[2]>>>20)+(y[3]<<18|y[3]>>>14)&4294967295}u=u+m.length&4294967295;const P=m.length-4;for(;b<=P;b+=4)u=u+((_[b+0]+(_[b+1]<<8))*w+((_[b+2]+(_[b+3]<<8))*w<<16))&4294967295,u=u<<17|u>>>15,u=(65535&u)*O+((u>>>16)*O<<16)&4294967295;for(;b<_.length;++b)u+=_[b]*A,u=u<<11|u>>>21,u=(65535&u)*T+((u>>>16)*T<<16)&4294967295;return u^=u>>>15,u=((65535&u)*a&4294967295)+((u>>>16)*a<<16),u^=u>>>13,u=((65535&u)*w&4294967295)+((u>>>16)*w<<16),u^=u>>>16,u<0?u+4294967296:u}}},88034:(me,se,r)=>{r.d(se,{H:()=>K,b:()=>C});var T=r(98071),a=r(49480),w=r(65787),O=r(17625),A=r(22355),l=r(35387);function C(m){const h=new A.kG;h.include(T.k),h.include(a.f);const{usesHalfFloat:_}=m;return h.fragment.uniforms.add([new l.A("densityMap",u=>u.densityMap),new l.A("tex",u=>u.colorRamp),new w.p("densityNormalizer",u=>1/(u.maxDensity-u.minDensity)),new w.p("minDensity",u=>u.minDensity)]),h.fragment.uniforms.add(new w.p("densityMultiplier",u=>3/(u.searchRadius*u.searchRadius*Math.PI))),_&&h.constants.add("compressionFactor","float",4),h.fragment.code.add(O.H` - void main() { - float density = texture2D(densityMap, uv).r * densityMultiplier${_?O.H` * compressionFactor`:""}; - float densityRatio = (density - minDensity) * densityNormalizer; - - vec4 color = texture2D(tex, vec2(clamp(densityRatio, 0.0, 1.0), 0.5)); - - discardOrAdjustAlpha(color); - gl_FragColor = color; - } - `),h}const K=Object.freeze(Object.defineProperty({__proto__:null,build:C},Symbol.toStringTag,{value:"Module"}))},81768:(me,se,r)=>{r.d(se,{H:()=>C,b:()=>l});var T=r(2166),a=r(65787),w=r(17625),O=r(22355),A=r(16396);function l(K){const m=new O.kG,{vertex:h,fragment:_}=m;(0,T.Sv)(h,K);const{isAttributeDriven:u,usesHalfFloat:b}=K;return m.attributes.add(A.T.POSITION,"vec3"),m.attributes.add(A.T.UV0,"vec2"),u&&(m.attributes.add(A.T.FEATUREATTRIBUTE,"float"),m.varyings.add("attributeValue","float")),b&&m.constants.add("compressionFactor","float",.25),m.varyings.add("unitCirclePos","vec2"),h.uniforms.add(new a.p("radius",({resolutionForScale:P,searchRadius:y},{camera:L,screenToWorldRatio:S})=>2*y*(0===P?1:P/S)*L.pixelRatio/L.fullViewport[2])),h.code.add(w.H` - void main() { - unitCirclePos = uv0; - - vec4 posProj = proj * (view * vec4(${A.T.POSITION}, 1.0)); - vec4 quadOffset = vec4(unitCirclePos * radius, 0.0, 0.0); - - ${u?w.H`attributeValue = ${A.T.FEATUREATTRIBUTE};`:""} - gl_Position = posProj + quadOffset; - } - `),_.code.add(w.H` - void main() { - float radiusRatioSquared = dot(unitCirclePos, unitCirclePos); - if (radiusRatioSquared > 1.0) { - discard; - } - - float oneMinusRadiusRatioSquared = 1.0 - radiusRatioSquared; - float density = oneMinusRadiusRatioSquared * oneMinusRadiusRatioSquared ${u?w.H` * attributeValue`:""} ${b?w.H` * compressionFactor`:""}; - gl_FragColor = vec4(density); - } - `),m}const C=Object.freeze(Object.defineProperty({__proto__:null,build:l},Symbol.toStringTag,{value:"Module"}))},23010:(me,se,r)=>{r.d(se,{g:()=>ae});var T=r(15861),a=r(17626),w=r(14517),O=r(59213),A=r(46160),C=(r(8314),r(26584)),K=r(72392),m=r(58817),h=r(63290),_=r(62208),u=r(60330),b=r(10699),P=r(32917),y=r(77712),S=(r(90912),r(76898)),G=r(17760),I=r(38305),J=r(35082),Q=r(60776),g=r(54984),E=r(88879),N=r(37118),Y=r(9260),oe=r(69852),ne=r(89673),de=r(21716),V=r(23461);const B=[[0,179,255],[117,62,128],[0,104,255],[215,189,166],[32,0,193],[98,162,206],[102,112,129],[52,125,0],[142,118,246],[138,83,0],[92,122,255],[122,55,83],[0,142,255],[81,40,179],[0,200,244],[13,24,127],[0,170,147],[19,58,241],[22,44,35]];class be{constructor(F,U,ie){this._loadingGraphics=new Map,this._loadedGraphics=new Map,this._pendingGraphics=new Map,this._enabled=!0,this._tileFetcher=F,this._view=ie,this._tilingScheme=new V.t(U),this._loadedSymbols=B.map($=>new ne.Z(new Y.Z({material:{color:[$[0],$[1],$[2],.6]},outline:{color:"black",size:1}}))),this._loadingSymbols=[new ne.Z(new Y.Z({material:{color:[200,200,200,.4]},outline:{color:[30,30,30],size:1}}))],this._pendingSymbols=[new ne.Z(new Y.Z({material:{color:[100,100,100,.4]},outline:{color:[30,30,30],size:1}}))],this._dataExtentSymbol=new ne.Z(new Y.Z({material:{color:[0,0,0,0]},outline:{color:"green",size:4}}))}destroy(){this.enabled=!1}get enabled(){return this._enabled}set enabled(F){this._enabled=F,this.update()}update(){this._enabled?(this._synchronizeMaps(this._loadingGraphics,{filter:F=>F.isFetching,symbols:this._loadingSymbols}),this._synchronizeMaps(this._loadedGraphics,{filter:F=>!F.isFetching,symbols:this._loadedSymbols}),this._synchronizeMaps(this._pendingGraphics,{filter:F=>!F.isFetching,symbols:this._pendingSymbols}),this.showDataExtent(this._tileFetcher.filterExtent)):(this._loadingGraphics.forEach(F=>{this._view.graphics.removeMany(F)}),this._loadingGraphics.clear(),this._loadedGraphics.forEach(F=>{this._view.graphics.removeMany(F)}),this._loadedGraphics.clear(),this._pendingGraphics.forEach(F=>{this._view.graphics.removeMany(F)}),this._pendingGraphics.clear(),this._dataExtentGraphic&&(this._view.graphics.remove(this._dataExtentGraphic),this._dataExtentGraphic=null))}showDataExtent(F){if(this._dataExtentGraphic&&(this._view.graphics.remove(this._dataExtentGraphic),this._dataExtentGraphic=null),!F)return;const U=N.Z.fromExtent(F);this._dataExtentGraphic=new E.Z({geometry:U,symbol:this._dataExtentSymbol}),this._view.graphics.add(this._dataExtentGraphic)}_synchronizeMaps(F,U){const ie=[];F.forEach(($,te)=>{const ce=this._tileFetcher.test.getFeatureTileById(te);ce&&U.filter(ce)||(this._view.graphics.removeMany($),ie.push(te))}),ie.forEach($=>F.delete($)),this._tileFetcher.test.forEachFeatureTile($=>{if(U.filter($)&&!F.has($.id)){const[te,ce,Ee]=$.descriptor.lij;this._tilingScheme.ensureMaxLod(te);const Ce=this._tilingScheme.getExtentGeometry(te,ce,Ee),i=[new E.Z({geometry:Ce,symbol:U.symbols[te%U.symbols.length]}),new E.Z({geometry:Ce.center,symbol:new oe.Z({verticalOffset:{screenLength:40/.75},callout:{type:"line",color:"white",border:{color:"black"}},symbolLayers:[new de.Z({text:`${te}/${ce}/${Ee}`,halo:{color:"white",size:1/.75},material:{color:"black"},size:16})]})})];F.set($.id,i),this._view.graphics.addMany(i)}})}}var ve=r(93605);let ae=class extends((0,u.v)(w.Z)){constructor(v){super(v),this.type="feature-tile-3d",this._watchUpdatingTracking=new G.t,this.serviceDataExtent=null,this.serviceDataCount=_e.NO_SERVICE_DATA_COUNT,this.vertexLimitExceeded=!1,this.displayFeatureLimit=null,this._suspended=!1,this._tileFetcher=null,this._handles=new K.Z,this._fetchDataInfoPromise=null,this._fetchDataInfoAbortController=null,this._lifeCycleAbortController=new AbortController}set extent(v){if(v&&!v.spatialReference.equals(this.layerView.view.spatialReference))return void h.Z.getLogger(this.declaredClass).error("#extent=","extent needs to be in the same spatial reference as the view");const F=this._get("extent");if(F===v||F&&v&&F.equals(v))return;const U=v?v.clone():null;this._set("extent",U)}get updating(){return!!((0,_.pC)(this._tileFetcher)&&this._tileFetcher.updating||null!=this._fetchDataInfoPromise||"tiles"===this.mode&&this.layerView.view.featureTiles&&this.layerView.view.featureTiles.updating||this._watchUpdatingTracking&&this._watchUpdatingTracking.updating)}get updatingTotal(){return this.updating&&(0,_.pC)(this._tileFetcher)?this._tileFetcher.updatingTotal:0}get updatingRemaining(){return this.updating&&(0,_.pC)(this._tileFetcher)?this._tileFetcher.updatingRemaining:0}get expectedFeatureDiff(){return this.updating&&(0,_.pC)(this._tileFetcher)?this._tileFetcher.expectedFeatureDiff:0}get memoryForUnusedFeatures(){return(0,_.pC)(this._tileFetcher)?this._tileFetcher.memoryForUnusedFeatures:0}get maximumNumberOfFeaturesExceeded(){return!(!(0,_.pC)(this._tileFetcher)||!this._tileFetcher.maximumNumberOfFeaturesExceeded)}get maximumNumberOfFeatures(){return(0,_.pC)(this.displayFeatureLimit)?this.displayFeatureLimit.maximumNumberOfFeatures:0}set maximumNumberOfFeatures(v){v!==this.maximumNumberOfFeatures&&this._overrideIfSome("maximumNumberOfFeatures",v)}get hasMaximumNumberOfFeaturesOverride(){return this._isOverridden("maximumNumberOfFeatures")}get mode(){const v=this.layerView.layer;if("feature"===v.type&&(0,_.pC)(v.infoFor3D))return"snapshot";if(!1===this.layerView.view.qualitySettings?.graphics3D?.snapshotAvailable||this.serviceDataCount===_e.NO_SERVICE_DATA_COUNT||this.vertexLimitExceeded)return"tiles";const F=this.layerView.view,U=F&&F.featureTiles,ie=U&&U.tilingScheme;if(v&&v.minScale&&this.serviceDataExtent&&ie){const $=this._approximateExtentSizeAtScale(v.minScale,ie);if((this.serviceDataExtent.width/$+this.serviceDataExtent.height/$)/2>_e.MAX_SNAPSHOT_MIN_SCALE_FACTOR)return"tiles"}return!this.maximumNumberOfFeatures||this.serviceDataCount<=this.maximumNumberOfFeatures?"snapshot":"tiles"}get maxTotalSnapshotVertices(){const v=this._get("maxTotalSnapshotVertices")||0,F="snapshot"===this.mode&&(0,_.pC)(this._tileFetcher)&&this._tileFetcher.totalVertices||0;return Math.max(v,F)}_approximateExtentSizeAtScale(v,F){const U=this.layerView.view,ie=Math.ceil((U.width/F.pixelSize+U.height/F.pixelSize)/2),$=F.levels[0];return ie*(($.tileSize[0]/($.scale/v)+$.tileSize[1]/($.scale/v))/2)}get tileDescriptors(){return"snapshot"===this.mode?new A.Z([{id:"dummy-tile-full-extent",lij:[0,0,0]}]):this.layerView.view.featureTiles?this.layerView.view.featureTiles.tiles:new A.Z}get test(){return{fetchDataInfoPromise:this._fetchDataInfoPromise,tileFetcher:this._tileFetcher}}initialize(){this._watchUpdatingTracking.add(()=>this.vertexLimitInfo,()=>this._watchUpdatingTracking.addPromise(this._updateVertexLimitExceeded(null,this._lifeCycleAbortController.signal))),this._watchUpdatingTracking.add(()=>this.mode,()=>this._modeChanged(),P.nn),this.addResolvingPromise(Promise.resolve().then(()=>this._verifyCapabilities()).then(()=>this._watchUpdatingTracking.addPromise(this._fetchServiceDataInfo())).then(()=>this._initializeTileFetcher()))}_verifyCapabilities(){const v=this.layerView.layer;if(!v.get("capabilities.operations.supportsQuery")&&"ogc-feature"!==v.type)throw new C.Z("graphicscontroller:query-capability-required","Service requires query capabilities to be used as a feature layer",{layer:v})}destroy(){this._cancelFetchServiceDataInfo(),this._tileFetcher=(0,_.SC)(this._tileFetcher),this._handles=(0,_.SC)(this._handles),this._tilesHandle=(0,_.hw)(this._tilesHandle),this._lifeCycleAbortController&&(this._lifeCycleAbortController.abort(),this._lifeCycleAbortController=null),this._watchUpdatingTracking.destroy(),this._set("watchUpdatingTracking",null)}suspend(){this._suspended||(this._suspended=!0,(0,_.pC)(this._tileFetcher)&&this._tileFetcher.suspend())}resume(){this._suspended&&(this._suspended=!1,(0,_.pC)(this._tileFetcher)&&this._tileFetcher.resume())}restart(){const v=()=>{(0,_.pC)(this._tileFetcher)&&this._tileFetcher.restart()};this._watchUpdatingTracking.addPromise(this._fetchServiceDataInfo().then(v,v))}refetch(){const v=()=>{(0,_.pC)(this._tileFetcher)&&this._tileFetcher.refetch()};this._watchUpdatingTracking.addPromise(this._fetchServiceDataInfo().then(v,v))}_initializeTileFetcher(){const v=this.layerView.view;if(!v)return;const F=(0,P.N1)(()=>v.featureTiles?.tilingScheme,this._lifeCycleAbortController.signal);this._watchUpdatingTracking.addPromise(F),F.then(()=>{const{layerView:U,tileDescriptors:ie}=this,$=U.layer,te=new g.j({context:this.context,filterExtent:this.extent,tileDescriptors:ie,features:this.graphics});this._tileFetcher=te,this._suspended?this._tileFetcher.suspend():this._tileFetcher.resume();const ce=this.layerView.view.resourceController;ce&&this._handles.add((0,P.YP)(()=>ce.memoryController.memoryFactor,s=>te.memoryFactor=s,P.tX));const Ee="polygon"===this.context.geometryType?"polygonLodFactor":"polyline"===this.context.geometryType?"polylineLodFactor":null;Ee&&this._handles.add((0,P.YP)(()=>this.layerView.view?.qualitySettings?.graphics3D?.[Ee],s=>te.lodFactor=s||1,P.nn)),"ogc-feature"!==$.type&&this._watchUpdatingTracking.add(()=>$.createQueryVersion,()=>this._dataFilterChanged()),this._watchUpdatingTracking.add(()=>U.availableFields,(s,o)=>this._availableFieldsChanged(o,s)),this._watchUpdatingTracking.add(()=>U.requiredFields,(s,o)=>this._requiredFieldsChanged(o,s)),this._handles.add([$.on("apply-edits",s=>this._applyEdits(s)),(0,P.YP)(()=>this.extent,s=>te.filterExtent=s,P.Z_),(0,P.YP)(()=>this.tileDescriptors,s=>te.tileDescriptors=s,P.Z_),(0,P.YP)(()=>this.maximumNumberOfFeatures,s=>{te.maximumNumberOfFeatures=s,te.useTileCount=this.serviceDataCount>s},P.tX),(0,P.YP)(()=>this.serviceDataCount,s=>te.useTileCount=s>this.maximumNumberOfFeatures,P.tX),(0,P.YP)(()=>ve.Z.FEATURE_TILE_FETCH_SHOW_TILES,s=>{s&&te&&!te.debugger?(te.debugger=new be(te,v.featureTiles.tilingScheme.toTileInfo(),v),te.debugger.update()):!s&&this._tileFetcher&&te.debugger&&(te.debugger.destroy(),te.debugger=null)},P.tX)]),this._supportsExceedsLimitQuery||this._watchUpdatingTracking.add(()=>this.maxTotalSnapshotVertices,()=>this._watchUpdatingTracking.addPromise(this._updateVertexLimitExceeded(null,this._lifeCycleAbortController.signal)))}).catch(()=>{})}_modeChanged(){switch(this.mode){case"tiles":this._tilesHandle||(this._tilesHandle=this.layerView.view.featureTiles.addClient());break;default:h.Z.getLogger(this.declaredClass).warn("Unhandled feature layer mode "+this.mode);case"snapshot":(0,_.pC)(this._tilesHandle)&&(this._tilesHandle.remove(),this._tilesHandle=null)}}_dataFilterChanged(){this._set("maxTotalSnapshotVertices",0),this.notifyChange("maxTotalSnapshotVertices"),this.refetch()}_applyEdits(v){(0,_.Wi)(this._tileFetcher)||this._tileFetcher.applyEdits(v).then(F=>{F&&(F.deletedFeatures.length||F.updatedFeatures.length||F.addedFeatures.length)&&this._watchUpdatingTracking.addPromise(this._updateServiceDataExtent(this._lifeCycleAbortController.signal))}).catch(F=>{if(!(0,b.D_)(F))throw F})}_availableFieldsChanged(v,F){(0,_.pC)(this._tileFetcher)&&ee(this._tileFetcher.availableFields,F)&&this.refetch()}_requiredFieldsChanged(v,F){(0,_.pC)(this._tileFetcher)&&ee(this._tileFetcher.availableFields,F)&&this.restart()}_createVertexLimitExceededQuery(v){const F=this.layerView.layer,U=F.createQuery();return U.outStatistics=[new Q.Z({statisticType:"exceedslimit",maxVertexCount:v,outStatisticFieldName:"exceedslimit",maxPointCount:1e8,maxRecordCount:1e8})],F.capabilities.query.supportsCacheHint&&(U.cacheHint=!0),U}_createDataInfoQuery(){const v=this.layerView.layer,F=v.createQuery();return F.outSpatialReference=this.layerView.view.spatialReference,v.capabilities.query.supportsCacheHint&&(F.cacheHint=!0),F}_fullExtentIsAccurate(){const v=this.layerView.layer;if(v.definitionExpression)return!1;switch(v.type){case"feature":case"oriented-imagery":return(0,I.M8)(v.url);case"csv":case"geojson":case"ogc-feature":case"wfs":return!0;default:return}}_updateServiceDataExtent(v){var F=this;return(0,T.Z)(function*(){try{yield F._tryUpdateServiceDataExtent(v)}catch(U){(0,b.D_)(U)||F._set("serviceDataExtent",(0,m.d9)(F.layerView.fullExtentInLocalViewSpatialReference))}})()}_tryUpdateServiceDataExtent(v){var F=this;return(0,T.Z)(function*(){const U=F.layerView,ie=U.layer,$=ie.capabilities.query.supportsExtent,te=(0,m.d9)(U.fullExtentInLocalViewSpatialReference),ce=ie.fullExtent,Ee=F._fullExtentIsAccurate();if($&&F.serviceDataCount<=_e.MAX_FEATURE_COUNT_FOR_EXTENT&&(!te||!Ee)&&"queryExtent"in ie){const i=F._createDataInfoQuery(),s=yield ie.queryExtent(i,{timeout:_e.QUERY_EXTENT_TIMEOUT,signal:v});F._set("serviceDataExtent",s.extent)}else if(te)F._set("serviceDataExtent",te);else if((0,_.pC)(ce)){const i="portalItem"in ie?ie.portalItem:null,s=yield(0,J.projectGeometry)(ce,U.view.spatialReference,i,v);F._set("serviceDataExtent",s)}else F._set("serviceDataExtent",null)})()}_updateServiceDataCount(v){var F=this;return(0,T.Z)(function*(){const U=F.layerView.layer;if(!("queryFeatureCount"in U))return void F._set("serviceDataCount",_e.NO_SERVICE_DATA_COUNT);const ie=yield(0,O.q6)(U.queryFeatureCount(F._createDataInfoQuery(),{timeout:_e.QUERY_STATISTICS_TIMEOUT,signal:v}));if(!0===ie.ok)F._set("serviceDataCount",ie.value);else{if((0,b.D_)(ie.error))throw ie.error;F._set("serviceDataCount",_e.NO_SERVICE_DATA_COUNT)}})()}get vertexLimitInfo(){if((0,_.Wi)(this.displayFeatureLimit)||(0,_.Wi)(this.displayFeatureLimit.averageSymbolComplexity))return null;const{averageSymbolComplexity:v,maximumTotalNumberOfPrimitives:F}=this.displayFeatureLimit,{primitivesPerCoordinate:U,primitivesPerFeature:ie}=v,$=this._get("vertexLimitInfo");return(0,_.Wi)($)||$.maximumTotalNumberOfPrimitives!==F||$.primitivesPerCoordinate!==U||$.primitivesPerFeature!==ie?{primitivesPerCoordinate:U,primitivesPerFeature:ie,maximumTotalNumberOfPrimitives:F}:$}get _supportsExceedsLimitQuery(){const v=this.layerView.layer;return v.capabilities&&v.capabilities.operations&&v.capabilities.operations.supportsExceedsLimitStatistics}get _minimumNumberOfVerticesForGeometry(){switch(this.layerView.layer.geometryType){case"point":case"multipoint":return 1;case"polygon":return 4;case"polyline":return 2;case"multipatch":case"mesh":return 3;default:return 0}}_updateVertexLimitExceeded(v,F){var U=this;return(0,T.Z)(function*(){const ie=U.vertexLimitInfo;if((0,_.Wi)(ie))return void U._set("vertexLimitExceeded",!1);const te=U._minimumNumberOfVerticesForGeometry>1;if(!(ie.primitivesPerFeature<=0||te))return void U._set("vertexLimitExceeded",!1);const{primitivesPerFeature:ce,primitivesPerCoordinate:Ee,maximumTotalNumberOfPrimitives:Ce}=ie;let i;0!==ce&&(0,_.pC)(v)&&(yield v);const s=U.serviceDataCount,o=s!==_e.NO_SERVICE_DATA_COUNT;if(i=Math.ceil(o?(Ce-s*ce)/(Ee||1):Ce/(Ee||1)),te&&(i=Math.min(i,z)),o&&U._minimumNumberOfVerticesForGeometry*s>i)return void U._set("vertexLimitExceeded",!0);if(!U._supportsExceedsLimitQuery)return void U._set("vertexLimitExceeded",U.maxTotalSnapshotVertices>i);const d=yield(0,O.q6)(U.layerView.layer.queryFeatures(U._createVertexLimitExceededQuery(i),{timeout:_e.QUERY_STATISTICS_TIMEOUT,signal:F}));if(!1===d.ok){if((0,b.D_)(d.error))throw d.error;return void U._set("vertexLimitExceeded",!1)}const D=d.value.features[0];U._set("vertexLimitExceeded",!(!D||!D.attributes||!D.attributes.exceedslimit))})()}_fetchServiceDataInfo(){var v=this;return(0,T.Z)(function*(){v._cancelFetchServiceDataInfo();let F=new AbortController;const U=F.signal,ie=v._updateServiceDataCount(U),$=(0,b.as)([ie,v._updateVertexLimitExceeded(ie,U)]),te=$.then(()=>v._updateServiceDataExtent(U)).catch(ce=>{(0,b.D_)(ce)||h.Z.getLogger(v.declaredClass).error("#fetchServiceDataInfo()",ce)}).then(()=>{te===v._fetchDataInfoPromise&&(v._fetchDataInfoPromise=null,v._fetchDataInfoAbortController=null),F=null});return F&&(v._fetchDataInfoPromise=te),v._fetchDataInfoAbortController=F,$.then(()=>{},()=>{})})()}_cancelFetchServiceDataInfo(){const v=this._fetchDataInfoAbortController;v&&(this._fetchDataInfoAbortController=null,this._fetchDataInfoPromise=null,v.abort())}get debug(){return{storedFeatures:(0,_.pC)(this._tileFetcher)?this._tileFetcher.storedFeatures:0,totalFeatures:(0,_.pC)(this._tileFetcher)?this._tileFetcher.totalFeatures:0,totalVertices:(0,_.pC)(this._tileFetcher)?this._tileFetcher.totalVertices:0}}};(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"type",void 0),(0,a._)([(0,y.Cb)({constructOnly:!0})],ae.prototype,"graphics",void 0),(0,a._)([(0,y.Cb)({constructOnly:!0})],ae.prototype,"layerView",void 0),(0,a._)([(0,y.Cb)({constructOnly:!0})],ae.prototype,"context",void 0),(0,a._)([(0,y.Cb)()],ae.prototype,"extent",null),(0,a._)([(0,y.Cb)()],ae.prototype,"updating",null),(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"_watchUpdatingTracking",void 0),(0,a._)([(0,y.Cb)()],ae.prototype,"updatingTotal",null),(0,a._)([(0,y.Cb)()],ae.prototype,"updatingRemaining",null),(0,a._)([(0,y.Cb)()],ae.prototype,"expectedFeatureDiff",null),(0,a._)([(0,y.Cb)()],ae.prototype,"memoryForUnusedFeatures",null),(0,a._)([(0,y.Cb)()],ae.prototype,"maximumNumberOfFeaturesExceeded",null),(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"serviceDataExtent",void 0),(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"serviceDataCount",void 0),(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"vertexLimitExceeded",void 0),(0,a._)([(0,y.Cb)()],ae.prototype,"displayFeatureLimit",void 0),(0,a._)([(0,y.Cb)({type:Number})],ae.prototype,"maximumNumberOfFeatures",null),(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"mode",null),(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"maxTotalSnapshotVertices",null),(0,a._)([(0,y.Cb)({readOnly:!0,dependsOn:["mode"]})],ae.prototype,"tileDescriptors",null),(0,a._)([(0,y.Cb)()],ae.prototype,"_tileFetcher",void 0),(0,a._)([(0,y.Cb)()],ae.prototype,"_fetchDataInfoPromise",void 0),(0,a._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"vertexLimitInfo",null),ae=(0,a._)([(0,S.j)("esri.layers.graphics.controllers.FeatureTileController3D")],ae);const z=5e6;function ee(v,F){if(!F)return!1;for(const U of F)if(!v.has(U))return!0;return!1}var _e,v;(v=_e||(_e={})).NO_SERVICE_DATA_COUNT=1/0,v.MAX_SNAPSHOT_MIN_SCALE_FACTOR=5,v.reset=function F(){v.MAX_FEATURE_COUNT_FOR_EXTENT=1e4,v.QUERY_STATISTICS_TIMEOUT=12e3,v.QUERY_EXTENT_TIMEOUT=1e4},_e.reset()},61256:(me,se,r)=>{r.d(se,{H:()=>K});var T=r(8314),a=r(36592),w=r(65401);const A={minX:0,minY:0,maxX:0,maxY:0};class K{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new a.Q(9,(0,T.Z)("esri-csp-restrictions")?h=>({minX:h[0],minY:h[1],maxX:h[2],maxY:h[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const h=new Array(this._idByBounds.size);let _=0;this._idByBounds.forEach((u,b)=>{h[_++]=b}),this._indexInvalid=!1,this._index.clear(),this._index.load(h)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(h=>this._idByBounds.has(h))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const h=(0,w.cS)();for(const _ of this._boundsById.values())_&&(h[0]=Math.min(_[0],h[0]),h[1]=Math.min(_[1],h[1]),h[2]=Math.max(_[2],h[2]),h[3]=Math.max(_[3],h[3]));return h}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(h){const _=this._boundsById.get(h);this._boundsById.delete(h),_&&(this._idByBounds.delete(_),this._indexInvalid||this._index.remove(_))}forEachInBounds(h,_){this._loadIndex(),function C(m,h,_){(function l(m){A.minX=m[0],A.minY=m[1],A.maxX=m[2],A.maxY=m[3]})(h),m.search(A,_)}(this._index,h,u=>_(this._idByBounds.get(u)))}get(h){return this._boundsById.get(h)}has(h){return this._boundsById.has(h)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(h,_){if(!this._indexInvalid){const u=this._boundsById.get(h);u&&(this._index.remove(u),this._idByBounds.delete(u))}this._boundsById.set(h,_),_&&(this._idByBounds.set(_,h),this._indexInvalid||(this._boundsToLoad.push(_),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},3579:(me,se,r)=>{r.d(se,{Z:()=>h});var T=r(26584),a=r(61885),w=r(63290),O=r(62208),A=r(5548),l=r(65401),C=r(82054),K=r(61256),m=r(92794);class h{constructor(u){this.geometryInfo=u,this._boundsStore=new K.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new a.Z,this.featureAdapter=m.n}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let u=0;return this._featuresById.forEach(b=>{(0,O.pC)(b.geometry)&&b.geometry.coords&&(u+=b.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:u/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(u){this._add(u),this._emitChanged()}addMany(u){for(const b of u)this._add(b);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(u){const b=this._featuresById.get(u);return b?(this._remove(b),this._emitChanged(),b):null}removeManyById(u){this._boundsStore.invalidateIndex();for(const b of u){const P=this._featuresById.get(b);P&&this._remove(P)}this._emitChanged()}forEachBounds(u,b,P){for(const y of u){const L=this._boundsStore.get(y.objectId);L&&b((0,A.JR)(P,L))}}getFeature(u){return this._featuresById.get(u)}has(u){return this._featuresById.has(u)}toArray(){return Array.from(this._featuresById.values())}forEach(u){this._featuresById.forEach(b=>u(b))}forEachInBounds(u,b){this._boundsStore.forEachInBounds(u,P=>{b(this._featuresById.get(P))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let u=!1;this._featuresById.forEach((b,P)=>{this._markedIds.has(P)||(u=!0,this._remove(b))}),this._markedIds.clear(),u&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(u){if(!u)return;const b=u.objectId;if(null==b)return void w.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new T.Z("featurestore:invalid-feature","feature id is missing",{feature:u}));const P=this._featuresById.get(b);let y;if(this._markedIds.add(b),P?(u.displayId=P.displayId,y=this._boundsStore.get(b),this._boundsStore.delete(b)):(0,O.pC)(this.onFeatureAdd)&&this.onFeatureAdd(u),(0,O.Wi)(u.geometry)||!u.geometry.coords||!u.geometry.coords.length)return this._boundsStore.set(b,null),void this._featuresById.set(b,u);y=(0,C.$)((0,O.pC)(y)?y:(0,l.Ue)(),u.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,O.pC)(y)&&this._boundsStore.set(b,y),this._featuresById.set(b,u)}_remove(u){return(0,O.pC)(this.onFeatureRemove)&&this.onFeatureRemove(u),this._markedIds.delete(u.objectId),this._boundsStore.delete(u.objectId),this._featuresById.delete(u.objectId),u}}},60507:(me,se,r)=>{r.d(se,{BK:()=>Q,Jn:()=>C,RL:()=>m,VW:()=>l,W_:()=>G,jG:()=>I,tq:()=>L,vQ:()=>b,zx:()=>P});var T=r(62208),a=r(29505);function w(g){return g?I:J}function l(g,E){return function O(g,E){return(0,T.Wi)(E)||!E.mode?w(g).mode:E.mode}(!!(0,T.pC)(g)&&g.hasZ,E)}function C(g,E){return function A(g,E){return(0,T.pC)(E)?E:w(g)}(!!(0,T.pC)(g)&&g.hasZ,E)}function m(g){const E=function _(g){return g.layer&&"elevationInfo"in g.layer?g.layer.elevationInfo:null}(g),N=l(g.geometry,E);return{mode:N,offset:(0,T.pC)(E)&&"on-the-ground"!==N?(0,T.Pt)(E.offset,0)*(0,a.Z7)((0,T.Pt)(E.unit,"meters")):0}}function b(g,E,N,Y=null){return y(g,E.x,E.y,E.hasZ?E.z:0,E.spatialReference,N,Y)}function P(g,E,N,Y,oe=null){return y(g,E[0],E[1],E.length>2?E[2]:0,N,Y,oe)}function y(g,E,N,Y,oe,ne,de=null){if((0,T.Wi)(ne))return;const V=(0,T.pC)(de)?de.mode:"absolute-height";if("on-the-ground"===V)return 0;const{absoluteZ:B}=L(E,N,Y,oe,g,ne);return function S(g,E,N,Y,oe,ne,de,V){const B=(0,T.pC)(de)&&(0,T.pC)(de.offset)?de.offset:0;switch(V){case"absolute-height":return g-B;case"relative-to-ground":return g-((0,T.Pt)(ne.elevationProvider.getElevation(E,N,Y,oe,"ground"),0)+B);case"relative-to-scene":return g-((0,T.Pt)(ne.elevationProvider.getElevation(E,N,Y,oe,"scene"),0)+B)}}(B,E,N,Y,oe,g,de,V)}function L(g,E,N,Y,oe,ne){const de=(0,T.pC)(ne.offset)?ne.offset:0;switch(ne.mode){case"absolute-height":return{absoluteZ:N+de,elevation:0};case"on-the-ground":{const V=(0,T.Pt)(oe.elevationProvider.getElevation(g,E,0,Y,"ground"),0);return{absoluteZ:V,elevation:V}}case"relative-to-ground":{const V=(0,T.Pt)(oe.elevationProvider.getElevation(g,E,N,Y,"ground"),0);return{absoluteZ:N+V+de,elevation:V}}case"relative-to-scene":{const V=(0,T.Pt)(oe.elevationProvider.getElevation(g,E,N,Y,"scene"),0);return{absoluteZ:N+V+de,elevation:V}}}}function G(g,E){if((0,T.Wi)(E))return!1;const{mode:N}=E;return(0,T.pC)(N)&&("scene"===g&&"relative-to-scene"===N||"ground"===g&&"absolute-height"!==N)}const I={mode:"absolute-height",offset:0},J={mode:"on-the-ground",offset:null};function Q(g,E){return g===E||(0,T.pC)(g)&&(0,T.pC)(E)&&g.mode===E.mode&&g.offset===E.offset}},78448:(me,se,r)=>{r.d(se,{R:()=>dt});var T=r(15861),a=r(17626),w=r(26584),O=r(62208),A=r(32917),l=r(77712),m=(r(85931),r(90912),r(76898)),h=r(84786),_=r(23010),u=r(96854),b=r(86606),P=r(13191),y=r(33816),L=r(34675),S=r(46348),G=r(27306),I=r(80542),J=r(54024),Q=r(63290),g=r(23841),E=r(84161),N=r(28093),Y=r(55915),oe=r(83137),ne=r(38114),de=r(82054),V=r(66385),B=r(88071),be=r(3579),ve=r(36630),ae=r(36859),c=r(62600),Z=r(98667),H=r(64835),z=r(42743),ee=r(59617),_e=r(19597),v=r(14411),F=r(17625),U=r(651),ie=r(91056),$=r(87601),te=r(39114),ce=r(88569),Ee=r(12407),Ce=r(41528),i=r(88034),s=r(67969),o=r(2078);class d extends F.K{constructor(){super(...arguments),this.colorRamp=null,this.densityMap=null,this.searchRadius=1,this.fieldTotal=0,this.minDensity=0,this.maxDensity=100}}class D extends ie.A{constructor(R,f){super(R,f,()=>this.destroy())}initializeProgram(R){return new Ee.$(R.rctx,D.shader.get().build(this.configuration),te.i)}initializePipeline(){return(0,o.sm)({blending:ce.wu,colorWrite:o.BK,depthTest:null,depthWrite:null})}get primitiveType(){return s.MX.TRIANGLE_STRIP}}D.shader=new U.J(i.H,()=>r.e(4194).then(r.bind(r,74194)));class M extends Ce.W{constructor(){super(...arguments),this.usesHalfFloat=!1}}(0,a._)([(0,$.o)()],M.prototype,"usesHalfFloat",void 0);var W=r(85775),re=r(55086),he=r(26906);let le=class extends v.S{constructor(p){super(p),this.pixelRatio=1,this._colorRampData=new Uint8ClampedArray(4),this.type="draped-heatmap",this._heatmapParameters=new d}initialize(){this._densityMap=new W.X(this.rctx,{colorTarget:s.Lm.TEXTURE,depthStencilTarget:s.OU.NONE,width:0,height:0},{target:s.No.TEXTURE_2D,pixelFormat:this.pixelFormat,internalFormat:this.internalFormat,dataType:this.dataType,samplingMode:this.samplingMode,wrapMode:s.e8.CLAMP_TO_EDGE,width:0,height:0}),this._quad=(0,_e.ow)(this.rctx);const f=this._colorRampData;this._colorRamp=new re.x(this.rctx,{target:s.No.TEXTURE_2D,pixelFormat:s.VI.RGBA,dataType:s.Br.UNSIGNED_BYTE,samplingMode:s.cw.LINEAR,wrapMode:s.e8.CLAMP_TO_EDGE,width:f.length/4,height:1},f);const k=new M;k.usesHalfFloat=this.dataType!==s.Br.FLOAT,this._technique=new D({rctx:this.rctx,viewingMode:ee.JY.Local},k),this._heatmapParameters.densityMap=this._densityMap.colorTexture,this.addHandles((0,A.YP)(()=>[this.colorRampData,this.minDensity,this.maxDensity,this.fieldTotal,this.pixelRatio,this.searchRadius],()=>this.rendererContext.notifyContentChanged()))}destroy(){this._technique=(0,O.RY)(this._technique),this._densityMap=(0,O.M2)(this._densityMap),this._quad=(0,O.M2)(this._quad),this._colorRamp=(0,O.M2)(this._colorRamp)}get searchRadius(){return this._heatmapParameters.searchRadius}set searchRadius(p){p!==this._heatmapParameters.searchRadius&&(this._heatmapParameters.searchRadius=p,this.notifyChange("searchRadius"))}get minDensity(){return this._heatmapParameters.minDensity}set minDensity(p){p!==this._heatmapParameters.minDensity&&(this._heatmapParameters.minDensity=p,this.notifyChange("minDensity"))}get maxDensity(){return this._heatmapParameters.maxDensity}set maxDensity(p){p!==this._heatmapParameters.maxDensity&&(this._heatmapParameters.maxDensity=p,this.notifyChange("maxDensity"))}get fieldTotal(){return this._heatmapParameters.fieldTotal}set fieldTotal(p){this._heatmapParameters.fieldTotal=p,this.notifyChange("fieldTotal")}get colorRampData(){return this._colorRampData}set colorRampData(p){const{colorRamp:R}=this._heatmapParameters;if((0,O.pC)(R)&&p!==this._colorRampData){const x=p.length/4;x!==R.descriptor.width&&R.resize(x,1),R.setData(p)}this._colorRampData=p}get _colorRamp(){return this._heatmapParameters.colorRamp}set _colorRamp(p){this._heatmapParameters.colorRamp=p}get hasHighlights(){return!1}get hasWater(){return!1}get rendersOccluded(){return!1}render(p,R){const f=this._sortedMaterialRenderers,x=f.length;if(x<1)return;const k=this.rctx.getBoundFramebufferObject(),j=this.rctx.getViewport(),{pixelRatio:q}=this,ue=Math.ceil(j.width*q),fe=Math.ceil(j.height*q);this._densityMap.resize(ue,fe),this.rctx.bindFramebuffer(this._densityMap),this.rctx.setViewport(0,0,ue,fe),this.rctx.clear(s.lk.COLOR_BUFFER_BIT);let Te=!1;for(let ge=0;ger.e(5795).then(r.bind(r,15795)));class we extends Ce.W{constructor(){super(...arguments),this.isAttributeDriven=!1,this.usesHalfFloat=!1}}(0,a._)([(0,$.o)()],we.prototype,"isAttributeDriven",void 0),(0,a._)([(0,$.o)()],we.prototype,"usesHalfFloat",void 0);class st extends tt{constructor(){super(...arguments),this.isAttributeDriven=!1,this.usesHalfFloats=!1}}class Be extends Ne.F5{constructor(R){super(R,new st),this._configuration=new we}requiresSlot(R,f){return R===qe.r.DRAPED_MATERIAL&&f===$e.H.Color}getConfiguration(){return this._configuration.isAttributeDriven=this.parameters.isAttributeDriven,this._configuration.usesHalfFloat=this.parameters.usesHalfFloats,this._configuration}createGLMaterial(R){return new rt(R)}intersect(R,f,x,k,j,q,ue,fe,Te){if((0,O.Wi)(Te)||!(0,Ye.lM)(q))return;const ge=R.vertexAttributes.get(ye.T.POSITION),{parameters:Re}=this,{searchRadius:De}=Re,{screenToWorldRatio:Le}=R,Ve=De*Le+2*Le,Pe=Ve*Ve,Me=ge.data.length/ge.size;for(let Oe=0;Oethis._loadedPointGraphics.length,setAllFeaturesVisibility:j=>this._setAllFeaturesVisibility(j),clearFeaturesVisibility:()=>this._setAllFeaturesVisibility(!0),updateFeatureVisibilities:j=>this._updateFeatureVisibilities(j)}}),this.updatingHandles.addOnCollectionChange(()=>this._loadedPointGraphics,j=>this._onLoadedFeaturesChange(j),A.nn),this.updatingHandles.addWhen(()=>this._materialParameters,j=>this._forEachMaterial(q=>q.setParameters(j)),A.nn),this.updatingHandles.add(()=>this._rendererParameters,j=>this._drapeSourceRenderer.set(j)),this.updatingHandles.add(()=>this._heatmapRendererField,()=>{this._recreate()},A.Z_),this.updatingHandles.add(()=>({fieldName:this._heatmapRendererFieldName,numeric:this._heatmapRendererFieldIsNumeric}),({fieldName:j,numeric:q})=>{if((0,O.pC)(j)&&q){let ue=0;this._featureStore.forEach(fe=>ue+=fe.attributes[j]??0),this._fieldTotal=ue}else this._fieldTotal=this._featureStore.numFeatures},A.nn),this.handles.add([(0,A.YP)(()=>({fieldName:this._heatmapRendererFieldName,field:this._heatmapRendererField}),({fieldName:j,field:q})=>{j&&!q&&Ae.warn(`Heatmap renderer field '${j}' for layer '${this.layer.title??this.layer.id}' not found`)}),(0,A.YP)(()=>({field:this._heatmapRendererField,numeric:this._heatmapRendererFieldIsNumeric}),({field:j,numeric:q})=>{(0,O.pC)(j)&&!q&&Ae.warn(`Heatmap renderer field '${j.name}' for layer '${this.layer.title??this.layer.id}' does not contain numeric values and cannot be used to drive the heatmap density`)}),(0,J.kB)(()=>this.view.basemapTerrain.overlayManager.unregisterDrapeSource(this))])}destroy(){this._renderGeometries.clear(),this._material=(0,O.M2)(this._material),this._materialWithField=(0,O.M2)(this._materialWithField),this._featureStore.clear(),this._featureStore=null}get layer(){return this.owner.layer}get featureStore(){return this._featureStore}get updating(){return this.updatingHandles.updating||this.filterVisibility.updating}get updatingRemaining(){return 0}get suspendInfo(){return{}}get legendEnabled(){return!0}get filterVisibility(){return this._filterVisibility}get displayFeatureLimit(){const R=this.owner?.view?.qualitySettings,f=R?Math.ceil(R.heatmap.maxTotalNumberOfFeatures*(this.owner?.view?.resourceController?.memoryController?.memoryFactor??1)):0;return{minimumTotalNumberOfFeatures:0,maximumTotalNumberOfFeatures:f,maximumTotalNumberOfPrimitives:2*f,maximumNumberOfFeatures:f}}get hasZ(){return"hasZ"in this.layer&&this.layer.hasZ}get hasM(){return"hasM"in this.layer&&this.layer.hasM}get view(){return this.owner.view}get fullOpacity(){return this.owner.fullOpacity}get updatePolicy(){return this.owner.updatePolicy}get scaleVisibilitySuspended(){if(!this._isScaleRangeActive)return!1;const{minScale:p,maxScale:R}=this.layer.effectiveScaleRange,{scale:f}=this.view;return!(0,Ze.rs)(f,p??0,R??0)}get usedMemory(){const p=this.usedMemoryPerFeature*this._featureStore.numFeatures,R=this._pixelFormat===s.VI.RED?1:4,f=this._dataType===s.Br.FLOAT?4:2,x=Math.ceil(this._overlayRenderer?.overlays[0]?.resolution*this._densityMapPixelRatio)??0;return x*x*R*f+p}get usedMemoryPerFeature(){const p=this._loadedPointGraphics.find(()=>!0);if((0,O.Wi)(p))return 0;const R=(0,G.f2)(p),f=(0,G.G3)();return 6*(0,G.do)([0,0,0],f)+6*(0,G.do)([0,0],f)+(this._heatmapRendererFieldIsNumeric?6*f:0)+R}get loadedFeatures(){return this._featureStore.numFeatures}get unprocessedMemoryEstimate(){return 0}get performanceInfo(){return{core:{visible:this._visibleFeatures,missing:0,pending:0},elevationUpdating:!1,visibilityFrustum:!0,visibilityScale:!0}}get renderer(){return this._heatmapRenderer}get _overlayRenderer(){return this.view.basemapTerrain.overlayManager.renderer}get _overlaySpatialReference(){return(0,O.Wg)(this._overlayRenderer.spatialReference)}get _rendererParameters(){return{...this._radiusParameter,...this._densityParameters,...this._colorRampParameter,...this._pixelRatioParameter}}get _materialParameters(){return{...this._radiusParameter,...this._resolutionForScaleParameter}}get _densityParameters(){const p=this._heatmapRenderer;if((0,O.Wi)(p))return null;const{minDensity:R,maxDensity:f}=p;return{minDensity:R,maxDensity:f,fieldTotal:this._fieldTotal}}get _radiusParameter(){return(0,O.yw)(this._heatmapRenderer,({radius:p})=>({searchRadius:(0,g.F2)(this._clampSearchRadius(p))}))}get _resolutionForScaleParameter(){return(0,O.yw)(this._heatmapRenderer,({referenceScale:p})=>({resolutionForScale:0===p?0:(0,oe.dp)(p,this.view.spatialReference)}))}get _colorRampParameter(){return(0,O.yw)(this._heatmapRenderer,p=>({colorRampData:(0,ae.uI)(p.colorStops)}))}get _pixelRatioParameter(){return{pixelRatio:this._densityMapPixelRatio}}get _densityMapPixelRatio(){return(this.owner?.view?.qualitySettings.heatmap.pixelRatio??1)*Math.sqrt(this.owner?.view?.resourceController?.memoryController?.memoryFactor??1)}get _renderView(){return this.view._stage.renderView}get _featuresArePoints(){return"point"===this.layer.geometryType}get _loadedPointGraphics(){return this.owner.loadedGraphics}get _heatmapRenderer(){const p=this.layer.renderer;return"heatmap"===p?.type?p:null}get _heatmapRendererFieldName(){return(0,O.yw)(this._heatmapRenderer,p=>p.field)}get _heatmapRendererField(){return(0,O.yw)(this._heatmapRendererFieldName,p=>this.layer.fieldsIndex.get(p))}get _heatmapRendererFieldIsNumeric(){const p=this._heatmapRendererField;return!(0,O.Wi)(p)&&(0,ve.H7)(p)}get _isScaleRangeActive(){const{layer:p}=this;if(!("effectiveScaleRange"in p))return!1;const{minScale:R,maxScale:f}=p.effectiveScaleRange;return(0,Ze.Av)(R,f)}get _visibleFeatures(){let p=0;return this._renderGeometries.forEach(R=>{R.instanceParameters.visible&&++p}),p}whenGraphicBounds(){return(0,T.Z)(function*(){return null})()}computeAttachmentOrigin(){return null}highlight(){return Qe}maskOccludee(){return Qe}setObjectIdVisibility(){}refreshFilter(){this.filterVisibility.reapply()}_onLoadedFeaturesChange(p){if(!this._featuresArePoints)return;const{objectIdField:R}=this.layer;this._featureStore.removeManyById(p.removed.map(q=>(0,ne.MS)(q,R))),this._featureStore.addMany(p.added.map(q=>{const ue=new V.u_((0,de.dd)(new B.Z,q.geometry),q.attributes,(0,O.yw)(q.centroid,fe=>(0,de.dd)(new B.Z,fe)),(0,ne.MS)(q,R));return ue.displayId=q.uid,ue}));const f=p.added,x=p.removed;this._fieldTotal+=this._computeFieldTotalChange(f,x);const k=(0,O.e8)(x,({uid:q})=>{const ue=this._renderGeometries.get(q);return this._renderGeometries.delete(q),ue}),j=f.map(q=>{const ue=this._pointGraphicToRenderGeometry(q);return this._renderGeometries.set(q.uid,ue),ue});k.length>0&&this._drapeSourceRenderer.removeGeometries(k,Fe.T.REMOVE),j.length>0&&this._drapeSourceRenderer.addGeometries(j,Fe.T.ADD),(j.length>0||k.length>0)&&(this.filterVisibility.reapply(),this._renderView.requestRender())}_recreate(){if(!this._loadedPointGraphics)return;const p=this._loadedPointGraphics.toArray();this._onLoadedFeaturesChange({added:p,removed:p})}_pointGraphicToRenderGeometry(p){const R=this._heatmapRendererFieldName,f=(0,O.pC)(R)?this._materialWithField:this._material,x=(0,N.c)();(0,Y.KC)(p.geometry,x,this._overlaySpatialReference),x[2]=H.Rn;const k=[[ye.T.POSITION,{data:x,size:x.length}]],j=this._heatmapRendererFieldIsNumeric;(0,O.pC)(R)&&k.push([ye.T.FEATUREATTRIBUTE,{data:[j?p.attributes[R]??0:0],size:1}]);const q=new xe.z(new pe.Z(k,null,z.MX.Point),f,{layerUid:this.layer.uid,graphicUid:p.uid});return(0,E.c)(q.boundingSphere,x),q.instanceParameters.visible=this.filterVisibility.defaultVisibility,q}_forEachMaterial(p){p(this._material),p(this._materialWithField)}_computeFieldTotalChange(p,R){if((0,O.Wi)(this._heatmapRendererFieldName)||!this._heatmapRendererFieldIsNumeric)return p.length-R.length;const f=this._heatmapRendererFieldName,x=(k,j)=>k+(j.attributes[f]??0);return p.reduce(x,0)-R.reduce(x,0)}_clampSearchRadius(p){return p>112&&Ae.warnOnce("SceneView supports a maximum radius of 112 pt for HeatmapRenderer."),Math.min(p,112)}_updateFeatureVisibilities(p){const R=[];this._featureStore.forEach(({objectId:f,displayId:x})=>{const k=p(f),j=this._renderGeometries.get(x);j.instanceParameters.visible!==k&&(R.push(j),j.instanceParameters.visible=k)}),this._drapeSourceRenderer.modifyGeometries(R,Fe.$.VISIBILITIES)}_setAllFeaturesVisibility(p){const R=[];for(const f of this._renderGeometries.values())f.instanceParameters.visible!==p&&(R.push(f),f.instanceParameters.visible=p);this._drapeSourceRenderer.modifyGeometries(R,Fe.$.VISIBILITIES)}get test(){return{visibleFeatureCount:this._visibleFeatures}}};(0,a._)([(0,l.Cb)()],X.prototype,"type",void 0),(0,a._)([(0,l.Cb)({constructOnly:!0})],X.prototype,"owner",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"layer",null),(0,a._)([(0,l.Cb)()],X.prototype,"featureStore",null),(0,a._)([(0,l.Cb)()],X.prototype,"updating",null),(0,a._)([(0,l.Cb)()],X.prototype,"updatingRemaining",null),(0,a._)([(0,l.Cb)()],X.prototype,"suspendInfo",null),(0,a._)([(0,l.Cb)()],X.prototype,"legendEnabled",null),(0,a._)([(0,l.Cb)()],X.prototype,"filterVisibility",null),(0,a._)([(0,l.Cb)()],X.prototype,"displayFeatureLimit",null),(0,a._)([(0,l.Cb)()],X.prototype,"preferredUpdatePolicy",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"hasZ",null),(0,a._)([(0,l.Cb)()],X.prototype,"hasM",null),(0,a._)([(0,l.Cb)()],X.prototype,"dataExtent",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"view",null),(0,a._)([(0,l.Cb)()],X.prototype,"fullOpacity",null),(0,a._)([(0,l.Cb)()],X.prototype,"updatePolicy",null),(0,a._)([(0,l.Cb)()],X.prototype,"drapeSourceType",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"scaleVisibilitySuspended",null),(0,a._)([(0,l.Cb)()],X.prototype,"renderer",null),(0,a._)([(0,l.Cb)()],X.prototype,"_featureStore",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"_filterVisibility",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"_overlayRenderer",null),(0,a._)([(0,l.Cb)()],X.prototype,"_overlaySpatialReference",null),(0,a._)([(0,l.Cb)()],X.prototype,"_rendererParameters",null),(0,a._)([(0,l.Cb)()],X.prototype,"_materialParameters",null),(0,a._)([(0,l.Cb)()],X.prototype,"_densityParameters",null),(0,a._)([(0,l.Cb)()],X.prototype,"_radiusParameter",null),(0,a._)([(0,l.Cb)()],X.prototype,"_resolutionForScaleParameter",null),(0,a._)([(0,l.Cb)()],X.prototype,"_colorRampParameter",null),(0,a._)([(0,l.Cb)()],X.prototype,"_pixelRatioParameter",null),(0,a._)([(0,l.Cb)()],X.prototype,"_densityMapPixelRatio",null),(0,a._)([(0,l.Cb)()],X.prototype,"_renderGeometries",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"_material",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"_materialWithField",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"_renderView",null),(0,a._)([(0,l.Cb)()],X.prototype,"_featuresArePoints",null),(0,a._)([(0,l.Cb)()],X.prototype,"_loadedPointGraphics",null),(0,a._)([(0,l.Cb)()],X.prototype,"_heatmapRenderer",null),(0,a._)([(0,l.Cb)()],X.prototype,"_heatmapRendererFieldName",null),(0,a._)([(0,l.Cb)()],X.prototype,"_heatmapRendererField",null),(0,a._)([(0,l.Cb)()],X.prototype,"_heatmapRendererFieldIsNumeric",null),(0,a._)([(0,l.Cb)()],X.prototype,"_fieldTotal",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"_drapeSourceRenderer",void 0),(0,a._)([(0,l.Cb)()],X.prototype,"_isScaleRangeActive",null),X=(0,a._)([(0,m.j)(ze)],X);const Qe=(0,J.kB)();var ut=r(89765),ht=r(87091);const dt=p=>{let R=class extends p{constructor(){super(...arguments),this.controller=null,this.updatePolicy=z.jq.SYNC,this.suspendResumeExtentMode="computed",this.slicePlaneEnabled=!1,this.fullExtentInLocalViewSpatialReference=null,this.suspendResumeExtent=null,this._controllerCreated=!1,this.clippingExtent=null,this.supportsHeightUnitConversion=!0,this._pendingController=null,this.queryEngine=null}initialize(){var f=this;const x=this.layer;if("isTable"in x&&x.isTable)return void this.addResolvingPromise(Promise.reject(new w.Z("featurelayerview:table-not-supported","table feature layer can't be displayed",{layer:x})));this.addResolvingPromise(this._validateGeometryType()),this.updatingHandles.add(()=>this.layer.renderer,j=>this._recreateProcessor(j),A.nn),this.addResolvingPromise((0,T.Z)(function*(){const j=yield(0,ut.E)(f);f.fullExtentInLocalViewSpatialReference=j,yield f._initializeController()})()),this.updatingHandles.add(()=>this.updatePolicy,j=>this.processor.preferredUpdatePolicy=j);const k=()=>this.processor.featureStore;this.queryEngine=new L.q({context:{spatialReference:this.view.spatialReference,layer:this.layer,scheduler:this.view.resourceController.scheduler,get featureStore(){return k()},hasZ:this.hasZ,hasM:this.hasM},priority:ht.T8.FEATURE_QUERY_ENGINE}),this.notifyChange("updating")}destroy(){this._destroyPendingController(),this.controller=(0,O.SC)(this.controller),this._set("processor",(0,O.SC)(this.processor)),this.queryEngine=(0,O.SC)(this.queryEngine),this.loadedGraphics=null}_destroyPendingController(){this._pendingController=(0,O.SC)(this._pendingController)}get legendEnabled(){return this.canResume()&&this.processor?.legendEnabled}get graphics3DProcessor(){return"graphics-3d"===this.processor?.type?this.processor:null}get heatmapProcessor(){return"heatmap"===this.processor?.type?this.processor:null}get symbologySnappingSupported(){return this.layer?.renderer?.getSymbols()?.some(b.QL)??!1}getHit(f){let x=null;return this.loadedGraphics?.forEach(k=>{k.uid===f&&(x=(0,h.mW)(k,this.layer))}),x?{type:"graphic",graphic:x,layer:x.layer}:null}whenGraphicBounds(f,x){return this.processor?.whenGraphicBounds(f,x)}computeAttachmentOrigin(f,x){return this.processor?.computeAttachmentOrigin(f,x)}elevationAlignPointsInFeatures(f,x){var k=this;return(0,T.Z)(function*(){const j=k.graphics3DProcessor;if((0,O.Wi)(j))throw new w.Z("featurelayerview3d:missing-processor","A Graphics3D processor is needed to resolve graphics elevation.");return(0,P.W)(k.view,k.layer,q=>j.getGraphics3DGraphicByObjectId(q),f,x)})()}queryForSymbologySnapping(f,x){var k=this;return(0,T.Z)(function*(){return k.symbologySnappingSupported?(0,S.c)(k.graphics3DProcessor,f,x):{candidates:[],sourceCandidateIndices:[]}})()}queryFeatures(f,x){return this.queryEngine.executeQuery(this._ensureQuery(f),(0,O.U2)(x,"signal"))}queryObjectIds(f,x){return this.queryEngine.executeQueryForIds(this._ensureQuery(f),(0,O.U2)(x,"signal"))}queryFeatureCount(f,x){return this.queryEngine.executeQueryForCount(this._ensureQuery(f),(0,O.U2)(x,"signal"))}queryExtent(f,x){return this.queryEngine.executeQueryForExtent(this._ensureQuery(f),(0,O.U2)(x,"signal"))}_ensureQuery(f){return(0,O.Wi)(f)?this.createQuery():u.Z.from(f)}highlight(f){return this.processor.highlight(f,this.layer.objectIdField)}maskOccludee(f){return this.processor.maskOccludee(f)}canResume(){return super.canResume()&&!this.processor?.scaleVisibilitySuspended}getSuspendInfo(){const f=super.getSuspendInfo();return this.processor?{...f,...this.processor.suspendInfo}:f}isUpdating(){return!(!this.processor||this.processor.destroyed||this._controllerCreated&&!this.controller?.updating&&this.view?.basemapTerrain?.ready&&!this.processor.updating)}_initializeController(){var f=this;return(0,T.Z)(function*(){const x=f.createController();f._pendingController=x,yield x.when(),f._setControllerWhenInitialized(x)})()}_setControllerWhenInitialized(f){var x=this;return(0,T.Z)(function*(){try{yield x.when()}catch{}x._controllerCreated=!0,x.notifyChange("updating"),x.isResolved()&&!x.destroyed?(yield(0,A.N1)(()=>x.view?.basemapTerrain?.ready),x.beforeSetController(f),x._pendingController=null,x.controller=f,x.loadedGraphics=f.graphics,x.notifyChange("updating")):x._destroyPendingController()})()}_updateClippingExtent(f){if(this.clippingExtent=f,!this.controller)return!1;switch(this.controller.type){case"stream":return!1;case"feature-tile-3d":return this.controller.extent=f,!0}}_validateGeometryType(){var f=this;return(0,T.Z)(function*(){switch(f.layer.geometryType){case"multipatch":case"multipoint":throw new w.Z("featurelayerview3d:unsupported-geometry-type","Unsupported geometry type ${geometryType}",{geometryType:f.layer.geometryType})}})()}_recreateProcessor(f){const x="heatmap"===f?.type,j=this.processor;if(j&&x===("heatmap"===this.processor?.type))return;const q=x?new X({owner:this}):new y.Z({owner:this,frustumVisibilityEnabled:!0,scaleVisibilityEnabled:!0,filterVisibilityEnabled:!0,timeExtentEnabled:!0,elevationAlignmentEnabled:!0,elevationFeatureExpressionEnabled:!0,preferredUpdatePolicy:this.updatePolicy,updateClippingExtent:ue=>this._updateClippingExtent(ue)});this._set("processor",q),j?.destroy(),this.queryEngine?.clear(),this.addResolvingPromise(q.initializePromise)}_getResourceInfo(){const f=this.controller instanceof _.g?this.controller:null;return{displayedNumberOfFeatures:this.loadedGraphics.length,maximumNumberOfFeatures:f?.maximumNumberOfFeatures??-1,totalNumberOfFeatures:f?.serviceDataCount??-1,nodes:0,...this.processor.performanceInfo}}get performanceInfo(){return this._getResourceInfo()}};return(0,a._)([(0,l.Cb)()],R.prototype,"loadedGraphics",void 0),(0,a._)([(0,l.Cb)()],R.prototype,"suspended",void 0),(0,a._)([(0,l.Cb)({readOnly:!0})],R.prototype,"legendEnabled",null),(0,a._)([(0,l.Cb)()],R.prototype,"updating",void 0),(0,a._)([(0,l.Cb)()],R.prototype,"controller",void 0),(0,a._)([(0,l.Cb)()],R.prototype,"processor",void 0),(0,a._)([(0,l.Cb)({readOnly:!0})],R.prototype,"updatePolicy",void 0),(0,a._)([(0,l.Cb)({readOnly:!0})],R.prototype,"suspendResumeExtentMode",void 0),(0,a._)([(0,l.Cb)({type:Boolean})],R.prototype,"slicePlaneEnabled",void 0),(0,a._)([(0,l.Cb)({readOnly:!0})],R.prototype,"suspendInfo",void 0),(0,a._)([(0,l.Cb)()],R.prototype,"graphics3DProcessor",null),(0,a._)([(0,l.Cb)()],R.prototype,"heatmapProcessor",null),(0,a._)([(0,l.Cb)()],R.prototype,"symbologySnappingSupported",null),R=(0,a._)([(0,m.j)("esri.views.3d.layers.FeatureLikeLayerView3D")],R),R}},19702:(me,se,r)=>{r.d(se,{A:()=>_});var T=r(15861),a=r(17626),w=r(54024),O=r(10699),A=r(32917),l=r(77712),m=(r(85931),r(90912),r(76898)),h=r(36947);const _=u=>{let b=class extends u{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(P){super.postscript(P),(0,h.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var P=this;return(0,T.Z)(function*(){const y=new AbortController,L=y.signal;P.handles.add((0,w.kB)(()=>y.abort())),yield(0,A.N1)(()=>P.view.defaultsFromMap?.heightModelInfoReady,L),(0,O.k_)(L);const S=(0,h.Wt)(P.layer,P.view.heightModelInfo,P.supportsHeightUnitConversion);if(S)throw S})()}canResume(){const P=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!P||!P.minScale||!P.maxScale||P.minScale>=P.maxScale)}getSuspendInfo(){const P=super.getSuspendInfo(),y=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return y&&y.minScale&&y.maxScale&&y.minScale{r.d(se,{Z:()=>be});var T=r(15861),a=r(17626),w=r(88879),O=r(46668),A=r(94573),l=r(80542),C=r(62208),K=r(10699),m=r(32917),h=r(77712),b=(r(85931),r(90912),r(76898)),P=r(84682),y=r(46367),L=r(32028),S=r(39256),G=r(96854),I=r(62600),J=r(80960),Q=r(1191),g=r(94991),E=r(83518),N=r(14752),Y=r(67873),oe=r(67225),ne=r(97445),de=r(98667),V=r(42743);let B=class extends l.r{constructor(c){super(c),this.type="graphics-3d",this._randomRotationRenderers=null,this.elevationFeatureExpressionEnabled=!1,this.scaleVisibilityEnabled=!1,this.filterVisibilityEnabled=!1,this.frustumVisibilityEnabled=!1,this.elevationAlignmentEnabled=!1,this.timeExtentEnabled=!1,this.setUidToIdOnAdd=!0,this.dataExtent=null,this.drapeSourceType=I.L.Features,this.preferredUpdatePolicy=V.jq.ASYNC,this._suspendResumeExtent=null}initialize(){const c=this.owner,H=new Q.w({owner:this,layer:this.layer,preferredUpdatePolicy:this.preferredUpdatePolicy,elevationFeatureExpressionEnabled:this.elevationFeatureExpressionEnabled,graphicSymbolSupported:!1,hasZ:c.hasZ,hasM:c.hasM,setUidToIdOnAdd:this.setUidToIdOnAdd,componentFactories:{deconflictor:z=>c.view.deconflictor.addGraphicsOwner(z),labeler:(z,ee)=>c.view.labeler.addGraphicsOwner(z,ee),elevationAlignment:this.elevationAlignmentEnabled?(z,ee)=>new g.Z({graphicsCoreOwner:this,graphicsCore:z,queryGraphicUIDsInExtent:ee,elevationProvider:c.view.elevationProvider}):null,scaleVisibility:this.scaleVisibilityEnabled?(z,ee)=>new Y.Z({graphicsCoreOwner:this,layer:this.layer,queryGraphicUIDsInExtent:ee,graphicsCore:z,basemapTerrain:c.view.basemapTerrain}):null,filterVisibility:(this.filterVisibilityEnabled||this.timeExtentEnabled)&&"multipatch"!==c.layer.geometryType?z=>new de.n({context:{layerView:c,...z}}):null,objectStates:z=>new N.d(z)}});this._set("graphicsCore",H),this.frustumVisibilityEnabled&&this._set("frustumVisibility",new E.Z({graphicsCoreOwner:this})),this.elevationAlignment&&this.updatingHandles.add(()=>this.layer.elevationInfo,(z,ee)=>{(0,P.Hg)(z,ee)&&this.updatingHandles.addPromise(this.graphicsCore.elevationInfoChange())}),this.updatingHandles.add(()=>this.layer.labelsVisible,()=>this.graphicsCore.updateVisibilityInfo()),this.updatingHandles.add(()=>this.layer.labelingInfo,(z,ee)=>{(0,P.Hg)(z,ee)&&this.graphicsCore.updateLabelingInfo()}),this.updatingHandles.add(()=>this.preferredUpdatePolicy,z=>this.graphicsCore.preferredUpdatePolicy=z),this._set("initializePromise",this._initializeAsync()),this.updatingHandles.addPromise(this.initializePromise)}_initializeAsync(){var c=this;return(0,T.Z)(function*(){yield(0,K.U3)(c.graphicsCore.initializePromise);const Z=c.owner;c.updatingHandles.add(()=>c.renderer,H=>c.updatingHandles.addPromise(c.graphicsCore.rendererChange(H))),c.updatingHandles.add(()=>Z.fullOpacity,()=>c.graphicsCore.opacityChange()),c._setupSuspendResumeExtent(),c.updateClippingExtent&&(c.updatingHandles.add(()=>Z.view.clippingArea,()=>c._updateClippingExtent()),c._updateClippingExtent()),c.graphicsCore.startCreateGraphics(),c.graphicsCore.labelsEnabled&&(yield(0,K.U3)(c.graphicsCore.updateLabelingInfo()))})()}destroy(){this.handles.removeAll(),this.updatingHandles.removeAll(),this._set("frustumVisibility",(0,C.SC)(this.frustumVisibility)),this._set("graphicsCore",(0,C.SC)(this.graphicsCore)),this._set("owner",null)}get layer(){return this.owner.layer}get renderer(){const{renderer:c,objectIdField:Z}=this.layer;if(!c||!Z||"heatmap"===c.type||!c.visualVariables)return c;const H=c.visualVariables.findIndex(ee=>"rotation"===ee.type&&null!=ee.valueExpression&&(0,L.v)(ee.valueExpression)===Z&&(null==ee.axis||"heading"===ee.axis)&&"geographic"===ee.rotationType);if(H<0)return c;const z=c.clone();return z.visualVariables.splice(H,1),this._randomRotationRenderers||(this._randomRotationRenderers=new WeakMap),this._randomRotationRenderers.set(z,Z),z}get scaleVisibility(){return this.graphicsCore?.scaleVisibility}get filterVisibility(){return this.graphicsCore?.filterVisibility}get elevationAlignment(){return this.graphicsCore?.elevationAlignment}get objectStates(){return this.graphicsCore?.objectStates}get suspendResumeExtentMode(){return"suspendResumeExtentMode"in this.owner?this.owner.suspendResumeExtentMode:"computed"}get scaleVisibilitySuspended(){return(0,C.pC)(this.scaleVisibility)&&this.scaleVisibility.suspended}get suspended(){return this.owner.suspended}get legendEnabled(){return(0,C.Wi)(this.frustumVisibility)||!this.frustumVisibility.suspended}get suspendInfo(){const c={};return this.scaleVisibilitySuspended&&(c.outsideScaleRange=!0),(0,C.pC)(this.frustumVisibility)&&this.frustumVisibility.suspended&&(c.outsideOfView=!0),c}get updating(){return!!(this.graphicsCore?.updating||(0,C.pC)(this.frustumVisibility)&&this.frustumVisibility.updating||this.updatingHandles?.updating)}get updatingRemaining(){return this.graphicsCore?.updatingRemaining??0}get featureStore(){return this.graphicsCore?.featureStore}get view(){return this.owner.view}get loadedGraphics(){return this.owner.loadedGraphics}get fullOpacity(){return this.owner?.fullOpacity}get filter(){return"filter"in this.owner?this.owner.filter:null}get slicePlaneEnabled(){return this.owner.slicePlaneEnabled}get updatePolicy(){return this.owner.updatePolicy}get featureSpatialReference(){return"featureSpatialReference"in this.owner?this.owner.featureSpatialReference:this.owner.view.spatialReference}get graphics3DGraphics(){return this.graphicsCore?.graphics3DGraphics}get graphics3DGraphicsByObjectID(){return this.graphicsCore?.graphics3DGraphicsByObjectID}get symbolUpdateType(){return this.graphicsCore?.symbolUpdateType}get displayFeatureLimit(){const c=this.view.resourceController.memoryController.memoryFactor,Z=this.graphicsCore?.displayFeatureLimit;if(1===c)return Z;const H=Math.ceil(Z.maximumNumberOfFeatures*c),z=Math.ceil(Z.maximumTotalNumberOfFeatures*c),ee=Math.ceil(Z.minimumTotalNumberOfFeatures*c);return{...Z,maximumNumberOfFeatures:H,maximumTotalNumberOfFeatures:z,minimumTotalNumberOfFeatures:ee}}get usedMemory(){return this.graphicsCore?.usedMemory??0}get loadedFeatures(){return this.graphicsCore?.numberOfGraphics??0}get usedMemoryPerFeature(){return this.graphicsCore?.usedMemoryPerGraphic??0}get unprocessedMemoryEstimate(){return this.graphicsCore?.unprocessedMemoryEstimate??0}get performanceInfo(){return{core:this.graphicsCore.performanceInfo,elevationUpdating:this.elevationAlignment.updating,visibilityFrustum:(0,C.Wi)(this.frustumVisibility)||!this.frustumVisibility.suspended,visibilityScale:!this.scaleVisibilitySuspended}}maskOccludee(c){const{set:Z,handle:H}=this.objectStates.acquireSet(V.V_.MaskOccludee,null);return this.objectStates.setUid(Z,c.uid),H}highlight(c,Z){if(c instanceof G.Z){const{set:H,handle:z}=this.objectStates.acquireSet(V.V_.Highlight,Z);return this.owner.queryObjectIds(c).then(ee=>this.objectStates.setObjectIds(H,ee)),z}if("number"==typeof c||"string"==typeof c)return this.highlight([c],Z);if(c instanceof w.Z)return this.highlight([c],Z);if("toArray"in c&&(c=c.toArray()),Array.isArray(c)&&c.length>0){if(c[0]instanceof w.Z){const H=c;if(null==(0,ne.g)(this.layer.fieldsIndex,H[0].attributes,Z)){const z=H.map(v=>v.uid),{set:ee,handle:_e}=this.objectStates.acquireSet(V.V_.Highlight,null);return this.objectStates.setUids(ee,z),_e}c=H.map(z=>(0,ne.g)(this.layer.fieldsIndex,z.attributes,Z))}if("number"==typeof c[0]||"string"==typeof c[0]){const H=c,{set:z,handle:ee}=this.objectStates.acquireSet(V.V_.Highlight,Z);return this.objectStates.setObjectIds(z,H),ee}}return ae}whenGraphicBounds(c,Z){return this.graphicsCore?.whenGraphicBounds(c,Z)}computeAttachmentOrigin(c,Z){return this.graphicsCore?.computeAttachmentOrigin(c,Z)}notifyGraphicGeometryChanged(c){this.graphicsCore.notifyGraphicGeometryChanged(c)}notifyGraphicVisibilityChanged(c){this.graphicsCore.notifyGraphicVisibilityChanged(c)}getRenderingInfo(c,Z,H){const z=(0,S.Kb)(c,{renderer:Z,arcade:H});if((0,C.pC)(z)&&z.color){const ee=z.color;ee[0]=ee[0]/255,ee[1]=ee[1]/255,ee[2]=ee[2]/255}if((0,C.pC)(z)&&(0,C.pC)(Z)&&this._randomRotationRenderers?.has(Z)){const ee=this._randomRotationRenderers.get(Z),_e=c.attributes[ee],v=new O.a(0);v.updateFloatArray([_e]),v.updateUint8Array([173]),z.heading=8.381e-8*v.digest()}return z}getRenderingInfoAsync(c,Z,H,z){return(0,S.xn)(c,{renderer:Z,arcade:H,...z})}getSymbolLayerSize(c,Z){return this.graphicsCore?.getSymbolLayerSize(c,Z)}setObjectIdVisibility(c,Z){this.graphicsCore?.setObjectIdVisibility(c,Z)}refreshFilter(){(0,C.pC)(this.filterVisibility)&&this.filterVisibility.reapply()}getGraphics3DGraphicByObjectId(c){return this.graphicsCore?.getGraphics3DGraphicByObjectId(c)}_updateClippingExtent(){const c=this.owner.view.clippingArea;this.graphicsCore.setClippingExtent(c,this.owner.view.spatialReference)&&(this.updateClippingExtent(c)||this.graphicsCore.recreateAllGraphics())}_setupSuspendResumeExtent(){(this.frustumVisibility||this.scaleVisibility)&&this.handles.add((0,m.YP)(()=>this.suspendResumeExtentMode,()=>{switch(this.handles.remove(ve),this.suspendResumeExtentMode){case"computed":this.handles.add([(0,m.YP)(()=>this.graphicsCore.computedExtent,c=>this._updateSuspendResumeExtent(c),m.nn),(0,m.YP)(()=>this.graphicsCore.extentPadding,()=>this._updateSuspendResumeExtent(this.graphicsCore.computedExtent))],ve);break;case"data":this.handles.add([(0,m.gx)(()=>this.dataExtent,c=>this._updateSuspendResumeExtent(c),m.nn),(0,m.YP)(()=>this.graphicsCore.extentPadding,()=>this._updateSuspendResumeExtent((0,C.Wg)(this.dataExtent)))],ve);break;default:(0,A.Bg)(this.suspendResumeExtentMode)}},m.nn))}_updateSuspendResumeExtent(c){this._suspendResumeExtentChanged(c?this._extentToSuspendResumeRect(c,this._suspendResumeExtent):null)}_extentToSuspendResumeRect(c,Z){const H=this.owner.view.spatialReference;if(!c.spatialReference.equals(H)){if(!(0,y.Q8)(c,H))return;c=(0,y.iV)(c,H)}return(0,oe.Go)(c,Z,J.Z,this.graphicsCore.extentPadding)}_suspendResumeExtentChanged(c){(0,C.pC)(this.frustumVisibility)&&this.frustumVisibility.setExtent(c),(0,C.pC)(this.scaleVisibility)&&this.scaleVisibility.setExtent(c)}};(0,a._)([(0,h.Cb)()],B.prototype,"type",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"owner",void 0),(0,a._)([(0,h.Cb)()],B.prototype,"layer",null),(0,a._)([(0,h.Cb)()],B.prototype,"renderer",null),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"updateClippingExtent",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"elevationFeatureExpressionEnabled",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"graphicsCore",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"scaleVisibilityEnabled",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"filterVisibilityEnabled",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"frustumVisibilityEnabled",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"elevationAlignmentEnabled",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"timeExtentEnabled",void 0),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"setUidToIdOnAdd",void 0),(0,a._)([(0,h.Cb)()],B.prototype,"scaleVisibility",null),(0,a._)([(0,h.Cb)()],B.prototype,"filterVisibility",null),(0,a._)([(0,h.Cb)()],B.prototype,"elevationAlignment",null),(0,a._)([(0,h.Cb)({constructOnly:!0})],B.prototype,"frustumVisibility",void 0),(0,a._)([(0,h.Cb)()],B.prototype,"objectStates",null),(0,a._)([(0,h.Cb)()],B.prototype,"initializePromise",void 0),(0,a._)([(0,h.Cb)()],B.prototype,"suspendResumeExtentMode",null),(0,a._)([(0,h.Cb)()],B.prototype,"dataExtent",void 0),(0,a._)([(0,h.Cb)()],B.prototype,"scaleVisibilitySuspended",null),(0,a._)([(0,h.Cb)()],B.prototype,"suspended",null),(0,a._)([(0,h.Cb)()],B.prototype,"legendEnabled",null),(0,a._)([(0,h.Cb)()],B.prototype,"suspendInfo",null),(0,a._)([(0,h.Cb)()],B.prototype,"updating",null),(0,a._)([(0,h.Cb)()],B.prototype,"updatingRemaining",null),(0,a._)([(0,h.Cb)()],B.prototype,"featureStore",null),(0,a._)([(0,h.Cb)()],B.prototype,"view",null),(0,a._)([(0,h.Cb)()],B.prototype,"loadedGraphics",null),(0,a._)([(0,h.Cb)()],B.prototype,"fullOpacity",null),(0,a._)([(0,h.Cb)()],B.prototype,"filter",null),(0,a._)([(0,h.Cb)()],B.prototype,"slicePlaneEnabled",null),(0,a._)([(0,h.Cb)()],B.prototype,"drapeSourceType",void 0),(0,a._)([(0,h.Cb)()],B.prototype,"updatePolicy",null),(0,a._)([(0,h.Cb)()],B.prototype,"preferredUpdatePolicy",void 0),(0,a._)([(0,h.Cb)()],B.prototype,"displayFeatureLimit",null),B=(0,a._)([(0,b.j)("esri.views.3d.layers.graphics.Graphics3DFeatureProcessor")],B);const be=B,ve="suspendResumeExtentMode",ae={remove(){},pause(){},resume(){}}},34675:(me,se,r)=>{r.d(se,{q:()=>L});var T=r(15861),a=r(17626),O=(r(29132),r(14517)),A=r(62208),l=r(77712),m=(r(85931),r(90912),r(76898)),h=r(2004),_=r(58175),u=r(17253),b=r(96854),P=r(71774);const y=_.q;let L=class extends O.Z{constructor(S){super(S),this._dataQueryEngineInstance=null}get layer(){return this.context.layer}get spatialReference(){return this.context.spatialReference}get _queryGeometryType(){switch(this.layer.geometryType){case"multipoint":case"point":case"polygon":case"polyline":return this.layer.geometryType;case"mesh":return"polygon";default:return}}get defaultQueryJSON(){return new b.Z({outSpatialReference:this.spatialReference}).toJSON()}get _dataQueryEngine(){return this._ensureDataQueryEngine()}destroy(){this.clear()}clear(){return!!this._dataQueryEngineInstance&&(this._dataQueryEngineInstance.destroy(),this._dataQueryEngineInstance=null,!0)}executeQueryForIdSet(S,G,I){var J=this;return(0,T.Z)(function*(){return J._dataQueryEngine.executeQueryForIdSet(J._ensureQueryJSON(S,G),I)})()}executeQueryForCount(S,G){var I=this;return(0,T.Z)(function*(){return I._dataQueryEngine.executeQueryForCount(I._ensureQueryJSON(S),G)})()}executeQueryForExtent(S,G){var I=this;return(0,T.Z)(function*(){const{count:J,extent:Q}=yield I._dataQueryEngine.executeQueryForExtent(I._ensureQueryJSON(S),G);return{count:J,extent:h.Z.fromJSON(Q)}})()}executeQueryForIds(S,G){var I=this;return(0,T.Z)(function*(){return I._dataQueryEngine.executeQueryForIds(I._ensureQueryJSON(S),G)})()}executeQueryForLatestObservations(S,G){var I=this;return(0,T.Z)(function*(){const J=yield I._dataQueryEngine.executeQueryForLatestObservations(I._ensureQueryJSON(S),G),Q=u.default.fromJSON(J);return Q.features.forEach(g=>{g.layer=I.layer,g.sourceLayer=I.layer}),Q})()}executeQuery(S,G){var I=this;return(0,T.Z)(function*(){const J=yield I._dataQueryEngine.executeQuery(I._ensureQueryJSON(S),G),Q=u.default.fromJSON(J);return Q.features.forEach(g=>{g.layer=I.layer,g.sourceLayer=I.layer}),Q})()}_ensureQueryJSON(S,G){let I=this.defaultQueryJSON;if((0,A.pC)(S)&&("outSpatialReference"in S&&!S.outSpatialReference&&(S.outSpatialReference=this.spatialReference),I=S.toJSON()),(0,A.pC)(G)){const J=G.geometries.map(Q=>Q.toJSON()).reduce((Q,g)=>(Q.rings=Q.rings.concat(g.rings),Q));I={...I,sceneFilter:{...G,geometry:J}}}return I}_ensureDataQueryEngine(){if(this._dataQueryEngineInstance)return this._dataQueryEngineInstance;const S="timeInfo"in this.layer&&this.layer.timeInfo&&this.layer.timeInfo.toJSON()||null,G=this.layer.objectIdField,I=P.Mk.toJSON(this._queryGeometryType),J=this.layer.fields.map(ne=>ne.toJSON()),Q=this.priority,g=this.spatialReference.toJSON(),{hasZ:E,hasM:N,featureStore:Y,scheduler:oe}=this.context;return this._dataQueryEngineInstance=new y({hasZ:E,hasM:N,geometryType:I,fields:J,timeInfo:S,spatialReference:g,objectIdField:G,featureStore:Y,scheduler:oe,priority:Q}),this._dataQueryEngineInstance}};(0,a._)([(0,l.Cb)({constructOnly:!0})],L.prototype,"context",void 0),(0,a._)([(0,l.Cb)({constructOnly:!0})],L.prototype,"priority",void 0),(0,a._)([(0,l.Cb)()],L.prototype,"layer",null),(0,a._)([(0,l.Cb)()],L.prototype,"spatialReference",null),(0,a._)([(0,l.Cb)()],L.prototype,"_queryGeometryType",null),(0,a._)([(0,l.Cb)()],L.prototype,"defaultQueryJSON",null),L=(0,a._)([(0,m.j)("esri.views.3d.layers.graphics.QueryEngine")],L)},13191:(me,se,r)=>{r.d(se,{W:()=>_});var T=r(15861),w=(r(29132),r(62208)),O=r(10699),A=r(38114),l=r(60507),C=r(81468),K=r(79112),m=r(74746),h=r(65234);function _(L,S,G,I,J){return u.apply(this,arguments)}function u(){return(u=(0,T.Z)(function*(L,S,G,I,J){const{elevationProvider:Q,renderCoordsHelper:g,spatialReference:E}=L,{elevationInfo:N}=S,Y=(0,m.WI)(N,!0),oe=yield(0,m.kr)(Y,E,J);(0,O.k_)(J);const ne=[],de=new Set,V=new Set;for(const{objectId:B,points:be}of I){const ve=G(B);if((0,w.Wi)(ve)){for(const c of be)ne.push(c[2]);de.add(B)}else{ve.isDraped&&V.add(B),b.setFromElevationInfo((0,l.Jn)(ve.graphic.geometry,N)),b.updateFeatureExpressionInfoContext(oe,ve.graphic,S),P.spatialReference=L.spatialReference;for(const{x:c,y:Z,z:H}of be)P.x=c,P.y=Z,P.z=H??0,(0,C.qZ)(P,Q,b,g,y),ne.push(y.z)}}return{elevations:ne,drapedObjectIds:V,failedObjectIds:de}})).apply(this,arguments)}const b=new K.o,P=(0,A.Tx)(0,0,0,h.Z.WGS84),y=new C.Lm},46348:(me,se,r)=>{r.d(se,{c:()=>A});var T=r(15861),a=r(62208),w=r(10699),O=r(46679);function A(K,m,h){return l.apply(this,arguments)}function l(){return l=(0,T.Z)(function*(K,m,h){if((0,a.Wi)(K)||0===m.candidates.length)return C;const _=K.graphics3DGraphicsByObjectID??K.graphics3DGraphics,u=[],b=[],{renderer:P}=K,y=(0,a.pC)(P)&&"arcadeRequired"in P&&P.arcadeRequired?(0,O.LC)():null,L=function(){var g=(0,T.Z)(function*(E,{graphic:N,graphics3DSymbol:Y}){const oe=yield y,ne=yield K.getRenderingInfoAsync(N,P,oe,{signal:h});return(0,a.Wi)(ne)?[]:Y.queryForSnapping(E,G,ne,h)});return function(N,Y){return g.apply(this,arguments)}}(),{candidates:S,spatialReference:G}=m;for(let g=0;g{r.d(se,{j:()=>H,A:()=>_e});var T=r(15861),a=r(17626),w=r(14517),O=r(72392),A=r(63290),l=r(88159),C=r(62208),K=r(10699),m=r(32917),h=r(50618),_=r(77712),u=r(85931),P=(r(90912),r(76898)),y=r(65401),L=r(38114),S=r(89621),G=r(96854),I=r(59617),J=r(53639);class Q{constructor(s,o){this._highestResolutionVersion=null,this.versions=[],this.ref(s,o)}get isReferenced(){return 0!==this.versions.length}get isSingle(){return 1===this.versions.length&&1===this.versions[0].refCount}ref(s,o){const d=this.feature;E.oldVersion=d,this.feature&&Object.defineProperty(s,"uid",{value:this.feature.uid,configurable:!0});for(const M of this.versions)if(M.resolution===o){M.refCount++;const W=this._highestResolutionVersion===M&&!(0,J.f)(s,M.feature);return(W||this._highestResolutionVersion!==M)&&(M.feature=s),E.newVersion=W?s:d,E}const D={feature:s,resolution:o,refCount:1};return this.versions.push(D),!this._highestResolutionVersion||o0&&(this._refCount--,!this.isReferenced)?(E.newVersion=null,E):(E.newVersion=this._feature,E)}get feature(){return this._feature}}const E={oldVersion:null,newVersion:null},Y=new Set;class oe{constructor(s){this.descriptor=s,this.fetchStatus=V.FETCH_NEEDED,this._features=null,this._numVertices=0,this._featureLimit=0,this.featuresMissing=!0,this._shuffled=!1,this._numFeatures=ne,this._emptyFeatureRatio=0,this._estimatedSize=-1,this._estimatedUnusedSize=0,this._estimatedUnusedSizeDirty=!1,this._availableFields=Y,this._displayingFeatures=null,this.alive=!0,this.filtered=!1}get displayingFeatures(){return this._displayingFeatures}set displayingFeatures(s){this._displayingFeatures=s,this.extentIncludingBorrowedFeatures=null}get perTileMaximumNumberOfFeaturesExceeded(){return!this.filtered&&(this.featuresMissing||this.features&&this.featureLimit!==this.features.length)}get features(){return this._features}get featureLimit(){return this._featureLimit}set featureLimit(s){this._featureLimit!==s&&(this._featureLimit=s,this._estimatedUnusedSizeDirty=!0)}get availableFields(){return this._availableFields}setFeatures(s,o,d){this._availableFields=(0,C.Pt)(d,Y),this._features=s,this._shuffled=!1,this._estimatedSize=-1,this._estimatedUnusedSizeDirty=!0,s&&s.length>0?(this._emptyFeatureRatio=o/(s.length+o),this._numVertices=s.reduce((D,M)=>D+(0,L.R3)(M.geometry),0)):(this._emptyFeatureRatio=0,this._numVertices=0)}get emptyFeatureRatio(){return this._emptyFeatureRatio}get numFeatures(){return this.hasPreciseFeatureCount?this._numFeatures:this._features?this._features.length:0}set numFeatures(s){this._numFeatures=s}get hasPreciseFeatureCount(){return this._numFeatures>ne}get needsFeatureCount(){return this._numFeatures===ne}get numVertices(){return this._numVertices}get id(){return this.descriptor.id}get estimatedSize(){return this.updateMemoryEstimates(),this._estimatedSize}get estimatedUnusedSize(){return this._estimatedUnusedSize}updateMemoryEstimates(){if(this._estimatedSize<0){if(this._estimatedSize=0,this._estimatedUnusedSize=0,this._features)for(let s=0;s=this.featureLimit&&(this._estimatedUnusedSize+=o)}return!0}if(this._estimatedUnusedSizeDirty){if(this._estimatedUnusedSize=0,this._estimatedUnusedSizeDirty=!1,this._features)for(let s=this.featureLimit;si.length)return!1;for(let d=0;d(0,L.MS)(o,s)-(0,L.MS)(d,s)),(0,u.TV)(this._features,16438),this._shuffled=!0,this._estimatedUnusedSizeDirty=!0}reduceFeatures(s,o,d){if(s<=0)return!1;if(!this._features)return this.featureLimit=0,!1;let D=!1;this.featureLimit=Math.ceil(this.numFeatures*s),this.featureLimit>this._features.length&&(this.featureLimit=this._features.length,this.fetchStatus===V.DONE&&this._features.length>0&&(this.fetchStatus=V.REFETCH_NEEDED,D=!0)),!this._shuffled&&s<1&&this._shuffle(d);const M=Math.max(this.featureLimit,Math.ceil(o*this.numFeatures));return this._features.length>M&&(this._features.length=M,this.featuresMissing=!0,this.fetchStatus===V.FULL&&(this.fetchStatus=V.DONE)),D}get cache(){return{availableFields:this._availableFields,features:this.features,numFeatures:this._numFeatures,emptyFeatureRatio:this._emptyFeatureRatio,fetchStatus:this.fetchStatus,featuresMissing:this.featuresMissing}}set cache(s){this.requestController=null,this._availableFields=s.availableFields,this._features=s.features,this._numFeatures=s.numFeatures,this._emptyFeatureRatio=s.emptyFeatureRatio,this.fetchStatus=s.fetchStatus,this.featuresMissing=s.featuresMissing,this._estimatedSize=-1,this._estimatedUnusedSizeDirty=!0}}const ne=-1;var V,i;(i=V||(V={}))[i.FETCH_NEEDED=0]="FETCH_NEEDED",i[i.REFETCH_NEEDED=1]="REFETCH_NEEDED",i[i.FETCHING=2]="FETCHING",i[i.REFETCHING=3]="REFETCHING",i[i.DONE=4]="DONE",i[i.FULL=5]="FULL";const be=(0,y.Ue)();var ve=r(15076),ae=r(87091);const c="esri.views.3d.layers.support.FeatureTileFetcher3D",Z=A.Z.getLogger(c);let H=class extends w.Z{constructor(i){super(i),this._useTileCount=!1,this.updating=!1,this.updatingTotal=0,this.updatingRemaining=0,this.expectedFeatureDiff=0,this.maximumNumberOfFeaturesExceeded=!1,this.maximumNumberOfFeaturesExceededThrottle=1e3,this._fullRatio=1,this._farRatio=1,this._changes={updates:{adds:new Array,removes:new Array},adds:new Array,removes:new Array},this._handles=new O.Z,this._frameTask=ae.sq,this._dirty=!1,this._featureTiles=new Map,this._displayingFeatureReferences=new Map,this._numDisplayingFeatureReferences=0,this._suspended=!0,this._pendingEdits=null}set maximumNumberOfFeatures(i){i=i||1/0;const s=this._get("maximumNumberOfFeatures");i===s||i<1||(this._set("maximumNumberOfFeatures",i),this._maximumFeaturesUpdated(s,i))}set memoryFactor(i){this.memoryFactor!==i&&(this._set("memoryFactor",i),this._setDirty())}set lodFactor(i){this.lodFactor!==i&&(this._set("lodFactor",i),this._supportsResolution&&this.refetch())}get useTileCount(){return this._useTileCount&&(0,C.pC)(this.context.query.queryFeatureCount)}set useTileCount(i){this._useTileCount=i,this.notifyChange("useTileCount")}get memoryForUnusedFeatures(){let i=0;return this._featureTiles.forEach(s=>i+=s.estimatedUnusedSize),i}get totalVertices(){let i=0;return this._featureTiles.forEach(s=>i+=s.numVertices),i}get totalFeatures(){let i=0;return this._featureTiles.forEach(s=>i+=s.numFeatures),i}set filterExtent(i){if(i&&this.context.tilingScheme&&!i.spatialReference.equals(this.context.tilingScheme.spatialReference))return void Z.error("#filterExtent=","extent needs to be in the same spatial reference as the tiling scheme");const s=this._get("filterExtent");if(s===i||s&&i&&s.equals(i))return;const o=i?i.clone():null;this._set("filterExtent",o),this._reclip(o,s)}initialize(){this._handles.add((0,m.on)(()=>this.tileDescriptors,"change",()=>this._setDirty(),{onListenerAdd:()=>this._setDirty()})),this._objectIdField=this.context.objectIdField,this.FeatureReferenceClass=this.context.capabilities.supportsMultipleResolutions?Q:g;const i=this.context.scheduler;(0,C.pC)(i)&&(this._frameTask=i.registerTask(ae.T8.FEATURE_TILE_FETCHER,this)),this._setDirty()}destroy(){this._frameTask.remove(),this._handles=(0,C.SC)(this._handles),this._featureTiles.forEach(i=>{this._cancelFetchTile(i),this._removeTile(i)}),this._featureTiles.clear(),this._displayingFeatureReferences.clear(),this._pendingEdits&&(this._pendingEdits.controller.abort(),this._pendingEdits=null)}get _paused(){return this._suspended||!!this._pendingEdits}restart(){this._featureTiles.forEach(i=>{this._cancelFetchTile(i),this._clearTile(i),this._resetFetchTile(i)}),(0,C.pC)(this.context.memoryCache)&&this.context.memoryCache.clear(),this._setDirty()}refetch(){this._featureTiles.forEach(i=>{this._cancelFetchTile(i),this._resetFetchTile(i)}),(0,C.pC)(this.context.memoryCache)&&this.context.memoryCache.clear(),this._setDirty()}suspend(){this._suspended||(this._suspended=!0,this._pause(),this._setDirty())}resume(){this._suspended&&(this._suspended=!1,this._unpause())}_pause(){this._paused&&(this._featureTiles.forEach(i=>this._cancelFetchTile(i)),this._updated())}_unpause(){this._paused||(this._setDirty(),this._updated())}get availableFields(){let i=null;return this._featureTiles.forEach(s=>{(0,C.Wi)(s.displayingFeatures)||0===s.displayingFeatures.length||((0,C.Wi)(i)?i=new Set(s.availableFields):i.forEach(o=>{s.availableFields.has(o)||(0,C.Wg)(i).delete(o)}))}),(0,C.pC)(i)?i:new Set}applyEdits(i){this._pendingEdits||(this._pendingEdits={edits:Promise.resolve(),count:0,controller:new AbortController},this._pause());const s=this._pendingEdits;s.count++;const o=s.edits.then(()=>i.result.catch(d=>{if((0,K.D_)(d))throw d;return null}).then(d=>d&&(this._applyEditsDeleteFeatures(d.deletedFeatures),this._applyEditsAddUpdateFeatures(d.addedFeatures,d.updatedFeatures,s.controller.signal).then(()=>d))).then(d=>(0==--s.count&&(this._pendingEdits===s&&(this._pendingEdits=null),(0,C.pC)(this.context.memoryCache)&&this.context.memoryCache.clear(),this._unpause(),this._updated()),d)));return s.edits=o,this._updated(),o}_applyEditsDeleteFeatures(i){if(0===i.length)return;const s=this.context.globalIdField,o=s&&this.availableFields.has(s),d=new Set,D=this._objectIdField;i.forEach(({objectId:M,globalId:W})=>{if((!M||M<0)&&s){o||Z.errorOncePerTick(`Editing the specified service requires the layer's globalIdField, ${s} to be included the layer's outFields for updates to be reflected in the view`);const re=this.features.find(he=>he.attributes&&he.attributes[s]===W);re&&d.add((0,L.MS)(re,D))}else d.add(M)}),this._featureTiles.forEach(M=>{if(!M.features)return;const W=M.features.filter(re=>!d.has((0,L.MS)(re,this._objectIdField)));W.length!==M.features.length&&(M.setFeatures(W,0,M.availableFields),this._invalidateCounts())})}_applyEditsAddUpdateFeatures(i,s,o){var d=this;return(0,T.Z)(function*(){const D=[],M=new Set;if(i.forEach(re=>D.push(re.objectId)),s.forEach(re=>{D.push(re.objectId),M.add(re.objectId)}),0===D.length)return;const W=[];d._featureTiles.forEach(re=>{const he=d._applyEditsAddUpdateTile(re,D,M,o);he&&W.push(he)}),yield(0,K.as)(W)})()}_applyEditsAddUpdateTile(i,s,o,d){var D=this;return(0,T.Z)(function*(){if(!i.features)return;const M=D._createQuery(i);M.resultType=void 0,M.cacheHint=!1,M.objectIds=s;const W=yield D._queryFeatures(M,d);let re=null;if(o.size>0){const he=i.features.filter(le=>!o.has((0,L.MS)(le,D._objectIdField)));he.length!==i.features.length&&(re=he)}if(W.features.length>0){re||(re=i.features.slice());for(const he of W.features)re.push(he)}re&&(i.hasPreciseFeatureCount&&(i.numFeatures=Math.max(i.numFeatures,re.length)),i.setFeatures(re,0,ie(i.availableFields,W.fields)),D._invalidateCounts())})()}_queryFeatures(i,s){return this.context.query.queryFeaturesDehydrated(i,{signal:s,timeout:Ee})}_setDirty(){this._dirty=!0,this._updated()}get running(){return this.updating}runTask(i){if(this._frameTask.processQueue(i),!this._dirty||!this.initialized)return;this._dirty=!1;const s=this._getListOfTiles();if(this._markTilesNotAlive(s),!i.run(()=>this._addTiles(s,i))||!i.run(()=>this._filterExtentTiles(s,i))||!i.run(()=>this._removeTiles(s,i))||i.done)return void this._setDirty();const o=this._sortTiles(s);i.run(()=>this._displayTiles(o,i))&&i.run(()=>this._fetchTiles(o,i))&&i.run(()=>this._updateMemoryEstimates(o,i))||this._setDirty(),this._updated(),this.updating||this._updateMaximumNumberOfFeaturesExceeded()}_markTilesNotAlive(i){for(const s of i)s.alive=!1}_addTiles(i,s){return!this._suspended&&(this.tileDescriptors.forEach(o=>{const d=this._featureTiles.get(o.id);d?d.alive=!0:s.done||(i.push(this._addTile(o)),s.madeProgress())}),s.hasProgressed)}_filterExtentTiles(i,s){for(const o of i){if(s.done)break;o.alive&&(o.filtered=!o.intersects(this.filterExtent),o.filtered&&(this._clearTile(o),s.madeProgress()))}return s.hasProgressed}_removeTiles(i,s){for(let o=i.length-1;o>=0&&!s.done;o--){const d=i[o];d.alive||(this._removeTile(d),o!==i.length-1&&(i[o]=i[i.length-1]),i.pop(),s.madeProgress())}return s.hasProgressed}_sortTiles(i){return i.sort((s,o)=>s.descriptor.loadPriority-o.descriptor.loadPriority),i}_displayTiles(i,s){const o=this._updateRatio(i),d=D=>{const M=this._fullRatio<1?o(D)*this._farRatio:1;return D.reduceFeatures(M,this.memoryFactor,this._objectIdField)&&this._setDirty(),this._showTile(D)};for(const D of i)if(!s.run(()=>d(D))){this._setDirty();break}return s.hasProgressed}_fetchTiles(i,s){if(this._paused)return!1;let o=!1;for(const d of i){if(!d.needsFetching)continue;const D=(0,C.pC)(this.context.memoryCache)?this.context.memoryCache.pop(d.id):null;if((0,C.pC)(D))d.cache=D,this._setDirty(),this._scheduleUpdated(),s.madeProgress();else{if(this._needsNumFeatures(d)){const M=new AbortController,W=this._fetchTileCount(d,M.signal);this._handleRequest(d,W,M,()=>d.numFeatures=-2),o=!0,s.madeProgress()}if(s.done)return!0}}if(o)return s.hasProgressed;for(const d of i)if(d.needsFetching){const D=new AbortController,M=this._fetchTile(d,D.signal);if(this._handleRequest(d,M,D,W=>{d.setFeatures([],0,null),this._invalidateCounts(),d.featuresMissing=!1,this.context.logFetchError(Z,W)}),s.madeProgress(),s.done)return!0}return s.hasProgressed}_updateMemoryEstimates(i,s){return i.some(o=>!s.run(()=>o.updateMemoryEstimates())&&(this._setDirty(),!0)),s.hasProgressed}_reclip(i,s){if(!this.initialized)return;const o=new Array;this._featureTiles.forEach(d=>{(0,C.Wi)(d.displayingFeatures)||0===d.displayingFeatures.length||(d.intersectionIncludingBorrowed(s,te),d.intersectionIncludingBorrowed(i,ce),(0,y.fS)(te,ce)||o.push(d))}),this._refreshDisplayingFeatures(o),this._updated()}_refreshDisplayingFeatures(i){const s=new Set,o=this._changes.updates;for(const d of i)if(!(0,C.Wi)(d.displayingFeatures))for(const D of d.displayingFeatures){const M=(0,L.MS)(D,this._objectIdField);if(s.has(M))continue;s.add(M);const{feature:W}=this._displayingFeatureReferences.get(M);o.removes.push(W),o.adds.push(W)}this._applyChanges()}_updated(){let i=0;this._paused||this._featureTiles.forEach(o=>o.isFetching?++i:0);const s=this._dirty||i>0||!!this._pendingEdits;if(this._set("updating",s),s){let o=0,d=0,D=0,M=0,W=0;const re=this._displayingFeatureReferences.size/this._numDisplayingFeatureReferences;this._featureTiles.forEach(pe=>{if(++d,pe.isFetching&&pe.hasPreciseFeatureCount){const Fe=this._maximumFeaturesForTile(pe)*(1-pe.emptyFeatureRatio),xe=(0,C.pC)(pe.displayingFeatures)?pe.displayingFeatures.length*re:0;W+=Fe-xe}pe.needsFetching?++M:pe.numFeatures>0&&(++D,o+=pe.numFeatures)}),M+=i;let he=0,le=0;o?(le=o,he=Math.min(M*o/D,o)):(le=d,he=M),W=Math.min(this.maximumNumberOfFeatures-this.features.length,W),this._set("updatingTotal",le),this._set("updatingRemaining",he),this._set("expectedFeatureDiff",W)}else this._set("updatingTotal",0),this._set("updatingRemaining",0),this._set("expectedFeatureDiff",0);this.debugger&&this.debugger.update()}_updateMaximumNumberOfFeaturesExceeded(){const i=(0,l.oE)(this._featureTiles,s=>s.perTileMaximumNumberOfFeaturesExceeded);this._set("maximumNumberOfFeaturesExceeded",i)}_updateRatio(i){const s=function ee(i){let s=0;for(const o of i)o.features&&o.features.length>0&&o.alive&&(s=Math.max(s,o.descriptor.lij[0]));return s}(i),o=M=>1/(1<i&&this._featureTiles.forEach(o=>{if(!o.featuresMissing)return;const d=this._maximumFeaturesForTile(o);o.features&&(o.features.length>=d||o.fetchStatus===V.FULL)||(this._cancelFetchTile(o),this._resetFetchTile(o))}),this._setDirty())}_addTile(i){const s=new oe(i);return this._featureTiles.set(s.id,s),this._resetFetchTile(s),this._referenceDisplayingFeaturesFromRelatedTiles(s),s}_referenceDisplayingFeaturesFromRelatedTiles(i){const s=i.descriptor.resolution;this._featureTiles.forEach(o=>{if(!((0,C.Wi)(o.displayingFeatures)||i===o||i.descriptor.lij&&o.descriptor.lij&&!(0,ve.E9)(i.descriptor.lij,o.descriptor.lij))){(0,C.Wi)(i.displayingFeatures)&&(i.displayingFeatures=[]),i.descriptor.extent&&o.descriptor.extent&&((0,C.Wi)(i.extentIncludingBorrowedFeatures)&&(i.extentIncludingBorrowedFeatures=(0,y.d9)(i.descriptor.extent)),(0,y.jn)(i.extentIncludingBorrowedFeatures,o.descriptor.extent,i.extentIncludingBorrowedFeatures));for(const d of o.displayingFeatures){i.displayingFeatures.push(d);const D=this._displayingFeatureReferences.get((0,L.MS)(d,this._objectIdField));D.ref(D.feature,s),this._numDisplayingFeatureReferences++}}}),i.featureLimit=(0,C.pC)(i.displayingFeatures)?i.displayingFeatures.length:0}_removeTile(i){this._clearTile(i),this._featureTiles.delete(i.id)}_resetFetchTile(i){i.filtered=!i.intersects(this.filterExtent),i.filtered?i.needsFetching&&(i.fetchStatus=V.DONE):i.fetchStatus=V.FETCH_NEEDED}_cancelFetchTile(i){const s=i.requestController;(0,C.pC)(s)&&(i.requestController=null,i.resetFetching(),s.abort())}_fetchTileCount(i,s){var o=this;return(0,T.Z)(function*(){return i.numFeatures=yield o._fetchCount(i,s),o._updateRatio(o._getListOfTiles()),i.fetchStatus===V.REFETCHING?V.REFETCH_NEEDED:V.FETCH_NEEDED})()}_fetchTile(i,s){var o=this;return(0,T.Z)(function*(){const d=o._maximumFeaturesForTile(i);if(d<=0)return function F(i){return i.setFeatures([],0,null),i.featuresMissing=!1,V.DONE}(i);const D=o._getMaxRecordCount(i),M=Math.ceil(d/D);if(z(i)||!o.context.capabilities.supportsMaxRecordCountFactor||i.numFeatures<=d&&M>G.Z.MAX_MAX_RECORD_COUNT_FACTOR)return o._fetchPagedTile(i,s);const W=o._createQuery(i);if(W.maxRecordCountFactor=Math.ceil(d/D),i.isRefetching&&i.features&&i.features.length>0){const Fe=Math.ceil(i.features.length/(1-i.emptyFeatureRatio)/D);W.maxRecordCountFactor=Math.max(Fe+1,W.maxRecordCountFactor)}const{features:re,exceededTransferLimit:he,fields:le}=yield o._queryFeatures(W,s),pe=he?W.maxRecordCountFactor>=G.Z.MAX_MAX_RECORD_COUNT_FACTOR?V.FULL:V.DONE:V.FULL;return yield o._frameTask.schedule(()=>{i.featuresMissing=re.length{Fe&&(D+=(0,C.Wg)(pe.num)),W+=xe.length,M+=o._removeEmptyFeatures(xe),i.featuresMissing=D0&&this.context.capabilities.supportsMaxRecordCountFactor?(i.maxRecordCountFactor=Math.ceil(o/d),i.num=Math.min(i.maxRecordCountFactor*d,o)):i.num=Math.min(d),!0)}_getEffectiveTileResolution(i){if(null==i.descriptor.resolution)return null;const s=this.context.viewingMode===I.JY.Global?this.context.tilingScheme.resolutionAtLevel(3):1/0;return Math.min(i.descriptor.resolution,s)/this.lodFactor}get _supportsResolution(){return this.context.capabilities.supportsMultipleResolutions&&"point"!==this.context.geometryType}_setResolutionParams(i,s){if(!this._supportsResolution)return;const o=this._getEffectiveTileResolution(s);null!=o&&(this.context.capabilities.supportsQuantization?i.quantizationParameters=new S.Z({mode:"view",originPosition:"upper-left",tolerance:o,extent:this.context.fullExtent}):"polyline"===this.context.geometryType&&(i.maxAllowableOffset=o))}_removeEmptyFeatures(i){const s=i.length;for(let o=0;o0&&this.context.capabilities.supportsResultType?s:(0,C.pC)(o)&&o>0?o:$}_useTileQuery(i){return(!z(i)||!this.context.capabilities.supportsCacheHint)&&this.context.capabilities.supportsResultType}_handleRequest(i,s,o,d){i.fetchStatus=i.needsRefetching?V.REFETCHING:V.FETCHING,i.requestController=o;let D=!1;s.then(M=>{i.requestController=null,i.fetchStatus=M}).catch(M=>{i.requestController===o&&(i.requestController=null,i.fetchStatus=V.DONE),(0,K.D_)(M)?D=!0:d(M)}).then(()=>{D||this._setDirty(),this._scheduleUpdated()})}_scheduleUpdated(){this._handles&&!this._handles.has("scheduleUpdated")&&this._handles.add((0,h.Os)(()=>{this._handles.remove("scheduleUpdated"),this._updated()}),"scheduleUpdated")}_showTile(i){if((0,C.pC)(i.displayingFeatures)&&!i.needsDisplayUpdate)return!1;const s=i.features;if(0===i.featureLimit||!s){const W=(0,C.pC)(i.displayingFeatures)&&i.displayingFeatures.length>0;return this._hideTileFeatures(i),i.displayingFeatures=[],W}const o=i.descriptor.resolution,d=this._changes.updates,D=this._changes.adds,M=Math.min(i.featureLimit,s.length);i.featureLimit=M;for(let W=0;W0&&(this.features.removeMany(i.removes),i.removes.length=0),i.adds.length>0&&(this.features.addMany(i.adds),i.adds.length=0);const s=this._changes.adds,o=this._changes.removes,d=Math.min(s.length,o.length);let D=0;for(;Dd&&this.features.addMany(0===D?s:s.slice(D)),o.length>d&&this.features.removeMany(0===D?o:o.slice(D)),s.length=0,o.length=0}_clearTile(i){this._hideTile(i),i.features&&(0,C.pC)(this.context.memoryCache)&&this.context.memoryCache.put(i.id,i.cache,16+i.estimatedSize),i.setFeatures(null,0,null),this._invalidateCounts()}_invalidateCounts(){this.notifyChange("totalVertices"),this.notifyChange("totalFeatures"),this.notifyChange("memoryForUnusedFeatures")}_getListOfTiles(){return Array.from(this._featureTiles.values())}get storedFeatures(){return this._getListOfTiles().reduce((i,s)=>i+(s.features?s.features.length:0),0)}_maximumFeaturesForTile(i){const s=i.hasPreciseFeatureCount?i.numFeatures:1/0;return Math.min(Math.ceil((i.hasPreciseFeatureCount?s:this.maximumNumberOfFeatures)*(this._fullRatio<1?this._farRatio:1)/(1-i.emptyFeatureRatio)),s)}get test(){return{process:i=>this.runTask(i),getFeatureTileById:i=>this._featureTiles.get(i),forEachFeatureTile:i=>this._featureTiles.forEach(i)}}};function z(i){return"dummy-tile-full-extent"===i.id}function _e(i){const s=i.capabilities.query;return{supportsMultipleResolutions:v(i),supportsPagination:!(!s||!s.supportsPagination),supportsResultType:!(!s||!s.supportsResultType),supportsCacheHint:!(!s||!s.supportsCacheHint),supportsQuantization:!(!s||!s.supportsQuantization),supportsQuantizationEditMode:!(!s||!s.supportsQuantizationEditMode),supportsMaxRecordCountFactor:!(!s||!s.supportsMaxRecordCountFactor),supportsFormatPBF:!(!s||!s.supportsFormatPBF)}}function v(i){switch(i.geometryType){case"polyline":return!0;case"polygon":return i.capabilities&&i.capabilities.query&&i.capabilities.query.supportsQuantization;default:return!1}}function U(i){return(0,C.Wi)(i)?new Set:new Set(i.map(s=>s.name))}function ie(i,s){if((0,C.Wi)(i)||(0,C.Wi)(s))return U(s);const o=new Set;for(const{name:d}of s)i.has(d)&&o.add(d);return o}(0,a._)([(0,_.Cb)({constructOnly:!0})],H.prototype,"features",void 0),(0,a._)([(0,_.Cb)()],H.prototype,"tileDescriptors",void 0),(0,a._)([(0,_.Cb)({value:1/0})],H.prototype,"maximumNumberOfFeatures",null),(0,a._)([(0,_.Cb)({value:1})],H.prototype,"memoryFactor",null),(0,a._)([(0,_.Cb)({value:1})],H.prototype,"lodFactor",null),(0,a._)([(0,_.Cb)()],H.prototype,"useTileCount",null),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"updating",void 0),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"updatingTotal",void 0),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"updatingRemaining",void 0),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"expectedFeatureDiff",void 0),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"memoryForUnusedFeatures",null),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"maximumNumberOfFeaturesExceeded",void 0),(0,a._)([(0,_.Cb)({constructOnly:!0})],H.prototype,"maximumNumberOfFeaturesExceededThrottle",void 0),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"totalVertices",null),(0,a._)([(0,_.Cb)({readOnly:!0})],H.prototype,"totalFeatures",null),(0,a._)([(0,_.Cb)()],H.prototype,"filterExtent",null),(0,a._)([(0,_.Cb)({constructOnly:!0})],H.prototype,"context",void 0),H=(0,a._)([(0,P.j)(c)],H);const $=2e3,te=(0,y.Ue)(),ce=(0,y.Ue)(),Ee=6e5,Ce=200},98667:(me,se,r)=>{r.d(se,{n:()=>S});var T=r(15861),a=r(17626),w=r(59213),O=r(80542),A=r(63290),l=r(62208),C=r(10699),K=r(32917),m=r(77712),u=(r(85931),r(90912),r(76898)),b=r(98624),P=r(59990),y=r(34675),L=r(87091);let S=class extends O.r{constructor(G){var I;super(G),I=this,this._updateTask=null,this._frameTask=null,this._queryEngine=null,this._updateRequested=!0,this._updateVisibility=function(){var J=(0,T.Z)(function*(Q){if((0,l.Wi)(I._compositedFeatureFilter)&&(0,l.Wi)(I._sceneFilter)||0===I.context.getFeatureCount())return I._frameTask.schedule(()=>I.clear(),Q);try{const g=yield I._queryEngine.executeQueryForIdSet(I._compositedFeatureFilter,I._sceneFilter,Q);return I._frameTask.schedule(()=>{I.context.updateFeatureVisibilities(E=>g.has(E))},Q)}catch(g){return(0,C.r9)(g),A.Z.getLogger(I.declaredClass).warn(`FeatureFilter query failed: ${g}`,{error:g}),I._frameTask.schedule(()=>{I.context.setAllFeaturesVisibility(!0)},Q)}});return function(Q){return J.apply(this,arguments)}}()}initialize(){const G=L.T8.FILTER_VISIBILITY,{layer:I,view:J}=this._layerView,{featureStore:Q}=this.context;this._queryEngine=new y.q({context:{spatialReference:J.spatialReference,layer:I,scheduler:J.resourceController.scheduler,featureStore:Q,hasM:"hasM"in this._layerView&&this._layerView.hasM,hasZ:"hasZ"in this._layerView&&this._layerView.hasZ},priority:G}),this._frameTask=this._layerView.view.resourceController.scheduler.registerTask(G,this),this.updatingHandles.add(()=>[this._compositedFeatureFilter,this._sceneFilter],()=>this.reapply(),K.nn)}destroy(){this._updateRequested=!1,this.handles.removeAll(),this.updatingHandles.removeAll(),this.clear(),this._updateTask=(0,l.IM)(this._updateTask),this._frameTask=(0,l.hw)(this._frameTask),this._queryEngine=(0,l.SC)(this._queryEngine),this._set("context",null)}get updating(){return this.running||this.updatingHandles.updating||(0,l.pC)(this._updateTask)&&!this._updateTask.finished}get running(){return this._updateRequested||this._frameTask.updating}get defaultVisibility(){return(0,l.Wi)(this._compositedFeatureFilter)&&(0,l.Wi)(this._sceneFilter)}get _featureFilter(){return"filter"in this._layerView?this._layerView.filter:null}get _sceneFilter(){return"layerFilter"in this._layerView?this._layerView.layerFilter:null}get _floorFilter(){return(0,P.c)(this._layerView)}get _timeExtent(){return"timeExtent"in this._layerView?this._layerView.timeExtent:null}get _compositedFeatureFilter(){const{_featureFilter:G,_timeExtent:I,_floorFilter:J}=this;if((0,l.Wi)(I)&&(0,l.Wi)(J))return G;const Q=(0,l.pC)(G)?G.clone():new b.Z;if((0,l.pC)(I)&&(Q.timeExtent=(0,l.pC)(Q.timeExtent)?Q.timeExtent.intersection(I):I),(0,l.pC)(J)){const g=(0,l.Wi)(Q.where)||""===Q.where;Q.where=g?J:`(${Q.where}) AND (${J})`}return Q}get _layerView(){return this.context.layerView}reapply(){this._updateRequested=!0}clear(){this._queryEngine.clear(),this.context.clearFeaturesVisibility()}runTask(G){this._updateRequested&&(this._updateTask=(0,l.IM)(this._updateTask),this._updateTask=(0,w.vr)(this._updateVisibility),this._updateRequested=!1,G.madeProgress()),this._frameTask.processQueue(G)}};(0,a._)([(0,m.Cb)({constructOnly:!0})],S.prototype,"context",void 0),(0,a._)([(0,m.Cb)()],S.prototype,"updating",null),(0,a._)([(0,m.Cb)()],S.prototype,"running",null),(0,a._)([(0,m.Cb)()],S.prototype,"defaultVisibility",null),(0,a._)([(0,m.Cb)()],S.prototype,"_featureFilter",null),(0,a._)([(0,m.Cb)()],S.prototype,"_sceneFilter",null),(0,a._)([(0,m.Cb)()],S.prototype,"_floorFilter",null),(0,a._)([(0,m.Cb)()],S.prototype,"_timeExtent",null),(0,a._)([(0,m.Cb)()],S.prototype,"_compositedFeatureFilter",null),(0,a._)([(0,m.Cb)()],S.prototype,"_layerView",null),(0,a._)([(0,m.Cb)()],S.prototype,"_updateTask",void 0),(0,a._)([(0,m.Cb)()],S.prototype,"_updateRequested",void 0),S=(0,a._)([(0,u.j)("esri.views.3d.layers.support.FeatureVisibilityFilter")],S)},97445:(me,se,r)=>{function T(w,O,A){if(!A||null==O)return null;if(!w)return function a(w,O){const A=O.toLowerCase();for(const l in w)if(l.toLowerCase()===A)return w[l];return null}(O,A);const l=w.get(A);return l?O[l.name]:null}r.d(se,{g:()=>T})},89765:(me,se,r)=>{r.d(se,{E:()=>O});var T=r(62208),a=r(46367),w=r(35082);function O(A){const l=A.view.spatialReference,C=A.layer.fullExtent,K=(0,T.pC)(C)&&C.spatialReference;if((0,T.Wi)(C)||!K)return Promise.resolve(null);if(K.equals(l))return Promise.resolve(C.clone());const m=(0,a.iV)(C,l);return(0,T.pC)(m)?Promise.resolve(m):A.view.state.isLocal?(0,w.projectGeometry)(C,l,A.layer.portalItem).then(h=>!A.destroyed&&h?h:void 0).catch(()=>null):Promise.resolve(null)}},36967:(me,se,r)=>{r.d(se,{g:()=>O});var T=r(61885),a=r(73234),w=r(28862);class O extends T.Z{constructor(){super(...arguments),this._set=new Set}clear(){if(this._set.size>0){const l=this.toArray();this._set.clear(),this.emit("after-changes",{type:a.y.REMOVE}),this.emit("change",{added:[],removed:l})}}get length(){return this._set.size}addMany(l){if(0!==l.length){for(const C of l)this._set.add(C);this.emit("after-changes",{type:a.y.ADD}),this.emit("change",{added:l,removed:[]})}}remove(l){this._set.delete(l)&&(this.emit("after-changes",{type:a.y.REMOVE}),this.emit("change",{added:[],removed:[l]}))}removeMany(l){const C=[];for(const K of l)this._set.delete(K)&&C.push(K);C.length>0&&(this.emit("after-changes",{type:a.y.REMOVE}),this.emit("change",{added:[],removed:C}))}toArray(){return[...this._set]}find(l){let C;return(0,w.f)(this._set,K=>!!l(K)&&(C=K,!0)),C}forEach(l){this._set.forEach(C=>l(C))}}},45611:(me,se,r)=>{r.d(se,{Z:()=>P});var T=r(17626),a=r(14517),w=r(61885),O=r(80542),A=r(61996),l=r(63290),C=r(62208),K=r(60330),m=r(77712),u=(r(85931),r(90912),r(76898));let b=class extends((0,O.p)((0,A.IG)((0,K.v)(w.Z.EventedMixin(a.Z))))){constructor(y){super(y),this.layer=null,this.parent=null}initialize(){this.when().catch(y=>{if("layerview:create-error"!==y.name){const L=this.layer&&this.layer.id||"no id",S=this.layer&&this.layer.title||"no title";l.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${S}', id: '${L}')`,y)}})}get fullOpacity(){return(0,C.Pt)(this.get("layer.opacity"),1)*(0,C.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(y){this._overrideIfSome("visible",y)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const y=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(y.viewNotReady=!0),this.layer&&this.layer.loaded||(y.layerNotLoaded=!0),this.visible||(y.layerInvisible=!0),y}isUpdating(){return!1}};(0,T._)([(0,m.Cb)()],b.prototype,"fullOpacity",null),(0,T._)([(0,m.Cb)()],b.prototype,"layer",void 0),(0,T._)([(0,m.Cb)()],b.prototype,"parent",void 0),(0,T._)([(0,m.Cb)({readOnly:!0})],b.prototype,"suspended",null),(0,T._)([(0,m.Cb)({readOnly:!0})],b.prototype,"suspendInfo",null),(0,T._)([(0,m.Cb)({readOnly:!0})],b.prototype,"legendEnabled",null),(0,T._)([(0,m.Cb)({type:Boolean,readOnly:!0})],b.prototype,"updating",null),(0,T._)([(0,m.Cb)({readOnly:!0})],b.prototype,"updatingProgress",null),(0,T._)([(0,m.Cb)()],b.prototype,"visible",null),(0,T._)([(0,m.Cb)()],b.prototype,"view",void 0),b=(0,T._)([(0,u.j)("esri.views.layers.LayerView")],b);const P=b}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8271.ba00942e76307f3b.js b/apps/n/porrtal-io-app/public/angular/8271.ba00942e76307f3b.js deleted file mode 100644 index 4ac97bb0..00000000 --- a/apps/n/porrtal-io-app/public/angular/8271.ba00942e76307f3b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8271],{88271:(a,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(4794),_(81801),_(13934),_(78925),_(24255),_(10109),_(33726),_(2166),_(97139),_(69960),_(17625),_(22355),_(44835),_(16396);var E=_(93310)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8287.1315a0b55f9ee378.js b/apps/n/porrtal-io-app/public/angular/8287.1315a0b55f9ee378.js deleted file mode 100644 index c6017488..00000000 --- a/apps/n/porrtal-io-app/public/angular/8287.1315a0b55f9ee378.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8287],{38287:(rt,D,x)=>{x.r(D),x.d(D,{getClippingRect:()=>it,getElementRects:()=>U,getOffsetParent:()=>O});var _=x(80376);function R(t){return d(t)&&"fixed"!==a(t).position?function j(t){let{offsetParent:n}=t,o=t,i=!1;for(;o&&o!==n;){const{assignedSlot:e}=o;if(e){let s=e.offsetParent;if("contents"===a(e).display){const c=e.hasAttribute("style"),r=e.style.display;e.style.display=a(o).display,s=e.offsetParent,e.style.display=r,c||e.removeAttribute("style")}o=e,n!==s&&(n=s,i=!0)}else if(p(o)&&o.host&&i)break;o=p(o)&&o.host||o.parentNode}return n}(t):null}function U(t){const{reference:n,floating:o,strategy:i}=t;return{reference:G(n,O(o),i),floating:{...Q(o),x:0,y:0}}}function V(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function u(t){if(null==t)return window;if(!V(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function a(t){return u(t).getComputedStyle(t)}function h(t){return V(t)?"":t?(t.nodeName||"").toLowerCase():""}function H(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(n=>n.brand+"/"+n.version).join(" "):navigator.userAgent}function d(t){return t instanceof u(t).HTMLElement}function w(t){return t instanceof u(t).Element}function p(t){return!(typeof ShadowRoot>"u")&&(t instanceof u(t).ShadowRoot||t instanceof ShadowRoot)}function m(t){const{overflow:n,overflowX:o,overflowY:i,display:e}=a(t);return/auto|scroll|overlay|hidden/.test(n+i+o)&&!["inline","contents"].includes(e)}function z(t){return["table","td","th"].includes(h(t))}function S(t){const n=/firefox/i.test(H()),o=a(t);return"none"!==o.transform||"none"!==o.perspective||n&&"filter"===o.willChange||n&&!!o.filter&&"none"!==o.filter||["transform","perspective"].some(i=>o.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const e=o.contain;return null!=e&&e.includes(i)})}function B(){return!/^((?!chrome|android).)*safari/i.test(H())}function E(t){return["html","body","#document"].includes(h(t))}const $=Math.min,v=Math.max,C=Math.round;function y(t,n,o){var i,e,s,c;void 0===n&&(n=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect();let l=1,f=1;n&&d(t)&&(l=t.offsetWidth>0&&C(r.width)/t.offsetWidth||1,f=t.offsetHeight>0&&C(r.height)/t.offsetHeight||1);const N=w(t)?u(t):window,g=!B()&&o,T=(r.left+(g&&null!=(i=null==(e=N.visualViewport)?void 0:e.offsetLeft)?i:0))/l,W=(r.top+(g&&null!=(s=null==(c=N.visualViewport)?void 0:c.offsetTop)?s:0))/f,X=r.width/l,Y=r.height/f;return{width:X,height:Y,top:W,right:T+X,bottom:W+Y,left:T,x:T,y:W}}function b(t){return((function K(t){return t instanceof u(t).Node}(t)?t.ownerDocument:t.document)||window.document).documentElement}function L(t){return w(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(t){return y(b(t)).left+L(t).scrollLeft}function G(t,n,o){const i=d(n),e=b(n),s=y(t,i&&function F(t){const n=y(t);return C(n.width)!==t.offsetWidth||C(n.height)!==t.offsetHeight}(n),"fixed"===o);let c={scrollLeft:0,scrollTop:0};const r={x:0,y:0};if(i||!i&&"fixed"!==o)if(("body"!==h(n)||m(e))&&(c=L(n)),d(n)){const l=y(n,!0);r.x=l.x+n.clientLeft,r.y=l.y+n.clientTop}else e&&(r.x=k(e));return{x:s.left+c.scrollLeft-r.x,y:s.top+c.scrollTop-r.y,width:s.width,height:s.height}}function A(t){return"html"===h(t)?t:t.assignedSlot||t.parentNode||(p(t)?t.host:null)||b(t)}function O(t){const n=u(t);let o=R(t);for(;o&&z(o)&&"static"===a(o).position;)o=R(o);return o&&("html"===h(o)||"body"===h(o)&&"static"===a(o).position&&!S(o))?n:o||function J(t){let n=A(t);for(p(n)&&(n=n.host);d(n)&&!E(n);){if(S(n))return n;{const o=n.parentNode;n=p(o)?o.host:o}}return null}(t)||n}function Q(t){if(d(t))return{width:t.offsetWidth,height:t.offsetHeight};const n=y(t);return{width:n.width,height:n.height}}function M(t){const n=A(t);return E(n)?t.ownerDocument.body:d(n)&&m(n)?n:M(n)}function P(t,n){var o;void 0===n&&(n=[]);const i=M(t),e=i===(null==(o=t.ownerDocument)?void 0:o.body),s=u(i),c=e?[s].concat(s.visualViewport||[],m(i)?i:[]):i,r=n.concat(c);return e?r:r.concat(P(c))}function I(t,n,o){return"viewport"===n?(0,_.e)(function Z(t,n){const o=u(t),i=b(t),e=o.visualViewport;let s=i.clientWidth,c=i.clientHeight,r=0,l=0;if(e){s=e.width,c=e.height;const f=B();(f||!f&&"fixed"===n)&&(r=e.offsetLeft,l=e.offsetTop)}return{width:s,height:c,x:r,y:l}}(t,o)):w(n)?function ot(t,n){const o=y(t,!1,"fixed"===n),i=o.top+t.clientTop,e=o.left+t.clientLeft;return{top:i,left:e,x:e,y:i,right:e+t.clientWidth,bottom:i+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,o):(0,_.e)(function q(t){var n;const o=b(t),i=L(t),e=null==(n=t.ownerDocument)?void 0:n.body,s=v(o.scrollWidth,o.clientWidth,e?e.scrollWidth:0,e?e.clientWidth:0),c=v(o.scrollHeight,o.clientHeight,e?e.scrollHeight:0,e?e.clientHeight:0);let r=-i.scrollLeft+k(t);const l=-i.scrollTop;return"rtl"===a(e||o).direction&&(r+=v(o.clientWidth,e?e.clientWidth:0)-s),{width:s,height:c,x:r,y:l}}(b(t)))}function et(t){const n=P(t),o=function nt(t,n){let o=t;for(;o&&!E(o)&&!n.includes(o)&&(!w(o)||!["absolute","fixed"].includes(a(o).position));){const i=A(o);o=p(i)?i.host:i}return o}(t,n);let i=null;if(o&&d(o)){const e=O(o);m(o)?i=o:d(e)&&(i=e)}return w(i)?n.filter(e=>i&&w(e)&&function tt(t,n){const o=null==n.getRootNode?void 0:n.getRootNode();if(t.contains(n))return!0;if(o&&p(o)){let i=n;do{if(i&&t===i)return!0;i=i.parentNode||i.host}while(i)}return!1}(e,i)&&"body"!==h(e)):[]}function it(t){let{element:n,boundary:o,rootBoundary:i,strategy:e}=t;const c=[..."clippingAncestors"===o?et(n):[].concat(o),i],l=c.reduce((f,N)=>{const g=I(n,N,e);return f.top=v(g.top,f.top),f.right=$(g.right,f.right),f.bottom=$(g.bottom,f.bottom),f.left=v(g.left,f.left),f},I(n,c[0],e));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8302.1ff22d35a7fdb889.js b/apps/n/porrtal-io-app/public/angular/8302.1ff22d35a7fdb889.js deleted file mode 100644 index 72474dcf..00000000 --- a/apps/n/porrtal-io-app/public/angular/8302.1ff22d35a7fdb889.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8302],{38302:(_n,C,w)=>{w.r(C),w.d(C,{registerFunctions:()=>U});var P=w(15861),sn=w(24263),g=w(27187),u=w(47562),V=w(85692),d=w(2004),x=w(21674),f=w(87215),F=w(72854),G=w(72642),H=w(37118),R=w(55214),m=w(91179),l=w(25919),j=w(16730);function M(o){return 0===sn.i8.indexOf("4.")?H.Z.fromExtent(o):new H.Z({spatialReference:o.spatialReference,rings:[[[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin]]]})}function O(o,e,i){if((0,u.y)(o,2,2,e,i),!(o[0]instanceof x.Z&&o[1]instanceof x.Z||o[0]instanceof x.Z&&null===o[1]||o[1]instanceof x.Z&&null===o[0]||null===o[0]&&null===o[1]))throw new l.aV(e,l.rH.InvalidParameter,i)}function N(o,e){return L.apply(this,arguments)}function L(){return(L=(0,P.Z)(function*(o,e){if("polygon"!==o.type&&"polyline"!==o.type&&"extent"!==o.type)return 0;let i=1;(o.spatialReference.vcsWkid||o.spatialReference.latestVcsWkid)&&(i=(0,V._R)(o.spatialReference)/(0,j.c9)(o.spatialReference));let y=0;if("polyline"===o.type)for(const n of o.paths)for(let a=1;a(O(n=(0,u.G)(n),e,i),null===n[0]||null===n[1]||(0,f.ED)(n[0],n[1])))},o.functions.intersects=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null!==n[0]&&null!==n[1]&&(0,f.kK)(n[0],n[1])))},o.functions.touches=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null!==n[0]&&null!==n[1]&&(0,f.W4)(n[0],n[1])))},o.functions.crosses=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null!==n[0]&&null!==n[1]&&(0,f.jU)(n[0],n[1])))},o.functions.within=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null!==n[0]&&null!==n[1]&&(0,f.uh)(n[0],n[1])))},o.functions.contains=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null!==n[0]&&null!==n[1]&&(0,f.r3)(n[0],n[1])))},o.functions.overlaps=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null!==n[0]&&null!==n[1]&&(0,f.Nm)(n[0],n[1])))},o.functions.equals=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>((0,u.y)(n,2,2,e,i),n[0]===n[1]||(n[0]instanceof x.Z&&n[1]instanceof x.Z?(0,f.fS)(n[0],n[1]):!(!(0,u.k)(n[0])||!(0,u.k)(n[1]))&&n[0].getTime()===n[1].getTime())))},o.functions.relate=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,3,3,e,i),n[0]instanceof x.Z&&n[1]instanceof x.Z)return(0,f.LV)(n[0],n[1],(0,u.j)(n[2]));if(n[0]instanceof x.Z&&null===n[1]||n[1]instanceof x.Z&&null===n[0]||null===n[0]&&null===n[1])return!1;throw new l.aV(e,l.rH.InvalidParameter,i)})},o.functions.intersection=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null===n[0]||null===n[1]?null:(0,f.wf)(n[0],n[1])))},o.functions.union=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{const a=[];if(0===(n=(0,u.G)(n)).length)throw new l.aV(e,l.rH.WrongNumberOfParameters,i);if(1===n.length)if((0,u.m)(n[0])){const _=(0,u.G)(n[0]);for(let h=0;h<_.length;h++)if(null!==_[h]){if(!(_[h]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);a.push(_[h])}}else{if(!(0,u.x)(n[0])){if(n[0]instanceof x.Z)return(0,u.q)((0,g.r1)(n[0]),e.spatialReference);if(null===n[0])return null;throw new l.aV(e,l.rH.InvalidParameter,i)}{const _=(0,u.G)(n[0].toArray());for(let h=0;h<_.length;h++)if(null!==_[h]){if(!(_[h]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);a.push(_[h])}}}else for(let _=0;_(O(n=(0,u.G)(n),e,i),null!==n[0]&&null===n[1]?(0,g.r1)(n[0]):null===n[0]?null:(0,f.e5)(n[0],n[1])))},o.functions.symmetricdifference=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>(O(n=(0,u.G)(n),e,i),null===n[0]&&null===n[1]?null:null===n[0]?(0,g.r1)(n[1]):null===n[1]?(0,g.r1)(n[0]):(0,f.Sp)(n[0],n[1])))},o.functions.clip=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,2,e,i),!(n[1]instanceof d.Z)&&null!==n[1])throw new l.aV(e,l.rH.InvalidParameter,i);if(null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return null===n[1]?null:(0,f.oq)(n[0],n[1])})},o.functions.cut=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,2,e,i),!(n[1]instanceof R.Z)&&null!==n[1])throw new l.aV(e,l.rH.InvalidParameter,i);if(null===n[0])return[];if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return null===n[1]?[(0,g.r1)(n[0])]:(0,f.z7)(n[0],n[1])})},o.functions.area=function(e,i){return o.standardFunctionAsync(e,i,function(){var y=(0,P.Z)(function*(p,n,a){if((0,u.y)(a,1,2,e,i),null===(a=(0,u.G)(a))[0])return 0;if((0,u.T)(a[0])){const _=yield a[0].sumArea((0,g.EI)((0,u.A)(a[1],-1)),!1,e.abortSignal);if(e.abortSignal.aborted)throw new l.aV(e,l.rH.Cancelled,i);return _}if((0,u.m)(a[0])||(0,u.x)(a[0])){const _=(0,u.J)(a[0],e.spatialReference);return null===_?0:(0,f.CJ)(_,(0,g.EI)((0,u.A)(a[1],-1)))}if(!(a[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.CJ)(a[0],(0,g.EI)((0,u.A)(a[1],-1)))});return function(p,n,a){return y.apply(this,arguments)}}())},o.functions.areageodetic=function(e,i){return o.standardFunctionAsync(e,i,function(){var y=(0,P.Z)(function*(p,n,a){if((0,u.y)(a,1,2,e,i),null===(a=(0,u.G)(a))[0])return 0;if((0,u.T)(a[0])){const _=yield a[0].sumArea((0,g.EI)((0,u.A)(a[1],-1)),!0,e.abortSignal);if(e.abortSignal.aborted)throw new l.aV(e,l.rH.Cancelled,i);return _}if((0,u.m)(a[0])||(0,u.x)(a[0])){const _=(0,u.J)(a[0],e.spatialReference);return null===_?0:(0,f.Y4)(_,(0,g.EI)((0,u.A)(a[1],-1)))}if(!(a[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.Y4)(a[0],(0,g.EI)((0,u.A)(a[1],-1)))});return function(p,n,a){return y.apply(this,arguments)}}())},o.functions.length=function(e,i){return o.standardFunctionAsync(e,i,function(){var y=(0,P.Z)(function*(p,n,a){if((0,u.y)(a,1,2,e,i),null===(a=(0,u.G)(a))[0])return 0;if((0,u.T)(a[0])){const _=yield a[0].sumLength((0,g.Lz)((0,u.A)(a[1],-1)),!1,e.abortSignal);if(e.abortSignal.aborted)throw new l.aV(e,l.rH.Cancelled,i);return _}if((0,u.m)(a[0])||(0,u.x)(a[0])){const _=(0,u.H)(a[0],e.spatialReference);return null===_?0:(0,f.sz)(_,(0,g.Lz)((0,u.A)(a[1],-1)))}if(!(a[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.sz)(a[0],(0,g.Lz)((0,u.A)(a[1],-1)))});return function(p,n,a){return y.apply(this,arguments)}}())},o.functions.length3d=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if((0,u.y)(n,1,2,e,i),null===(n=(0,u.G)(n))[0])return 0;if((0,u.m)(n[0])||(0,u.x)(n[0])){const a=(0,u.H)(n[0],e.spatialReference);return null===a?0:!0===a.hasZ?N(a,(0,g.Lz)((0,u.A)(n[1],-1))):(0,f.sz)(a,(0,g.Lz)((0,u.A)(n[1],-1)))}if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return!0===n[0].hasZ?N(n[0],(0,g.Lz)((0,u.A)(n[1],-1))):(0,f.sz)(n[0],(0,g.Lz)((0,u.A)(n[1],-1)))})},o.functions.lengthgeodetic=function(e,i){return o.standardFunctionAsync(e,i,function(){var y=(0,P.Z)(function*(p,n,a){if((0,u.y)(a,1,2,e,i),null===(a=(0,u.G)(a))[0])return 0;if((0,u.T)(a[0])){const _=yield a[0].sumLength((0,g.Lz)((0,u.A)(a[1],-1)),!0,e.abortSignal);if(e.abortSignal.aborted)throw new l.aV(e,l.rH.Cancelled,i);return _}if((0,u.m)(a[0])||(0,u.x)(a[0])){const _=(0,u.H)(a[0],e.spatialReference);return null===_?0:(0,f.kQ)(_,(0,g.Lz)((0,u.A)(a[1],-1)))}if(!(a[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.kQ)(a[0],(0,g.Lz)((0,u.A)(a[1],-1)))});return function(p,n,a){return y.apply(this,arguments)}}())},o.functions.distance=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{n=(0,u.G)(n),(0,u.y)(n,2,3,e,i);let a=n[0];((0,u.m)(n[0])||(0,u.x)(n[0]))&&(a=(0,u.K)(n[0],e.spatialReference));let _=n[1];if(((0,u.m)(n[1])||(0,u.x)(n[1]))&&(_=(0,u.K)(n[1],e.spatialReference)),!(a instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);if(!(_ instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.TE)(a,_,(0,g.Lz)((0,u.A)(n[2],-1)))})},o.functions.distancegeodetic=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{n=(0,u.G)(n),(0,u.y)(n,2,3,e,i);const a=n[0],_=n[1];if(!(a instanceof G.Z))throw new l.aV(e,l.rH.InvalidParameter,i);if(!(_ instanceof G.Z))throw new l.aV(e,l.rH.InvalidParameter,i);const h=new R.Z({paths:[],spatialReference:a.spatialReference});return h.addPath([a,_]),(0,f.kQ)(h,(0,g.Lz)((0,u.A)(n[2],-1)))})},o.functions.densify=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,3,e,i),null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);const a=(0,u.g)(n[1]);if(isNaN(a))throw new l.aV(e,l.rH.InvalidParameter,i);if(a<=0)throw new l.aV(e,l.rH.InvalidParameter,i);return n[0]instanceof H.Z||n[0]instanceof R.Z?(0,f.Cz)(n[0],a,(0,g.Lz)((0,u.A)(n[2],-1))):n[0]instanceof d.Z?(0,f.Cz)(M(n[0]),a,(0,g.Lz)((0,u.A)(n[2],-1))):n[0]})},o.functions.densifygeodetic=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,3,e,i),null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);const a=(0,u.g)(n[1]);if(isNaN(a))throw new l.aV(e,l.rH.InvalidParameter,i);if(a<=0)throw new l.aV(e,l.rH.InvalidParameter,i);return n[0]instanceof H.Z||n[0]instanceof R.Z?(0,f.j2)(n[0],a,(0,g.Lz)((0,u.A)(n[2],-1))):n[0]instanceof d.Z?(0,f.j2)(M(n[0]),a,(0,g.Lz)((0,u.A)(n[2],-1))):n[0]})},o.functions.generalize=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,4,e,i),null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);const a=(0,u.g)(n[1]);if(isNaN(a))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.D$)(n[0],a,(0,u.h)((0,u.A)(n[2],!0)),(0,g.Lz)((0,u.A)(n[3],-1)))})},o.functions.buffer=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,3,e,i),null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);const a=(0,u.g)(n[1]);if(isNaN(a))throw new l.aV(e,l.rH.InvalidParameter,i);return 0===a?(0,g.r1)(n[0]):(0,f.f3)(n[0],a,(0,g.Lz)((0,u.A)(n[2],-1)))})},o.functions.buffergeodetic=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,3,e,i),null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);const a=(0,u.g)(n[1]);if(isNaN(a))throw new l.aV(e,l.rH.InvalidParameter,i);return 0===a?(0,g.r1)(n[0]):(0,f.rd)(n[0],a,(0,g.Lz)((0,u.A)(n[2],-1)))})},o.functions.offset=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,2,6,e,i),null===n[0])return null;if(!(n[0]instanceof H.Z||n[0]instanceof R.Z))throw new l.aV(e,l.rH.InvalidParameter,i);const a=(0,u.g)(n[1]);if(isNaN(a))throw new l.aV(e,l.rH.InvalidParameter,i);const _=(0,u.g)((0,u.A)(n[4],10));if(isNaN(_))throw new l.aV(e,l.rH.InvalidParameter,i);const h=(0,u.g)((0,u.A)(n[5],0));if(isNaN(h))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.cv)(n[0],a,(0,g.Lz)((0,u.A)(n[2],-1)),(0,u.j)((0,u.A)(n[3],"round")).toLowerCase(),_,h)})},o.functions.rotate=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{n=(0,u.G)(n),(0,u.y)(n,2,3,e,i);let a=n[0];if(null===a)return null;if(!(a instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);a instanceof d.Z&&(a=H.Z.fromExtent(a));const _=(0,u.g)(n[1]);if(isNaN(_))throw new l.aV(e,l.rH.InvalidParameter,i);const h=(0,u.A)(n[2],null);if(null===h)return(0,f.U1)(a,_);if(h instanceof G.Z)return(0,f.U1)(a,_,h);throw new l.aV(e,l.rH.InvalidParameter,i)})},o.functions.centroid=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,1,1,e,i),null===n[0])return null;let a=n[0];if(((0,u.m)(n[0])||(0,u.x)(n[0]))&&(a=(0,u.K)(n[0],e.spatialReference)),null===a)return null;if(!(a instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return a instanceof G.Z?(0,u.q)((0,g.r1)(n[0]),e.spatialReference):a instanceof H.Z?a.centroid:a instanceof R.Z?(0,V.s9)(a):a instanceof F.Z?(0,V.Ay)(a):a instanceof d.Z?a.center:null})},o.functions.multiparttosinglepart=function(e,i){return o.standardFunctionAsync(e,i,function(){var y=(0,P.Z)(function*(p,n,a){a=(0,u.G)(a),(0,u.y)(a,1,1,e,i);const _=[];if(null===a[0])return null;if(!(a[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);if(a[0]instanceof G.Z)return[(0,u.q)((0,g.r1)(a[0]),e.spatialReference)];if(a[0]instanceof d.Z)return[(0,u.q)((0,g.r1)(a[0]),e.spatialReference)];const h=yield(0,f.og)(a[0]);if(h instanceof H.Z){const v=[],E=[];for(let Z=0;Z{if(n=(0,u.G)(n),(0,u.y)(n,1,1,e,i),null===n[0])return!0;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.Gg)(n[0])})},o.functions.simplify=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,1,1,e,i),null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.og)(n[0])})},o.functions.convexhull=function(e,i){return o.standardFunctionAsync(e,i,(y,p,n)=>{if(n=(0,u.G)(n),(0,u.y)(n,1,1,e,i),null===n[0])return null;if(!(n[0]instanceof x.Z))throw new l.aV(e,l.rH.InvalidParameter,i);return(0,f.JI)(n[0])})})}},87215:(_n,C,w)=>{w.d(C,{CJ:()=>vn,Cz:()=>Zn,D$:()=>Pn,ED:()=>h,G0:()=>hn,Gg:()=>Z,JI:()=>yn,LV:()=>E,Nm:()=>v,Sp:()=>dn,TE:()=>y,U1:()=>wn,W4:()=>a,Y4:()=>Rn,cv:()=>gn,e5:()=>pn,f3:()=>xn,fS:()=>p,j2:()=>En,jU:()=>i,kK:()=>n,kQ:()=>Vn,og:()=>D,oq:()=>N,r3:()=>e,rd:()=>An,sz:()=>In,uh:()=>_,wf:()=>mn,z7:()=>U});var P=w(15861),g=(w(29132),w(59289)),V=(w(72642),w(91179));function d(r){return Array.isArray(r)?r[0]?.spatialReference:r?.spatialReference}function x(r){return r&&(Array.isArray(r)?r.map(x):r.toJSON?r.toJSON():r)}function f(r){return Array.isArray(r)?r.map(c=>(0,V.im)(c)):(0,V.im)(r)}function F(r,c){let s;return Array.isArray(r)?s=r:(s=[],s.push(r),null!=c&&s.push(c)),s}let G;function H(){return R.apply(this,arguments)}function R(){return(R=(0,P.Z)(function*(){return G||(G=(0,g.bA)("geometryEngineWorker",{strategy:"distributed"})),G})).apply(this,arguments)}function m(r,c){return l.apply(this,arguments)}function l(){return(l=(0,P.Z)(function*(r,c){return(yield H()).invoke("executeGEOperation",{operation:r,parameters:x(c)})})).apply(this,arguments)}function N(r,c){return L.apply(this,arguments)}function L(){return(L=(0,P.Z)(function*(r,c){return f(yield m("clip",[d(r),r,c]))})).apply(this,arguments)}function U(r,c){return o.apply(this,arguments)}function o(){return(o=(0,P.Z)(function*(r,c){return f(yield m("cut",[d(r),r,c]))})).apply(this,arguments)}function e(r,c){return m("contains",[d(r),r,c])}function i(r,c){return m("crosses",[d(r),r,c])}function y(r,c,s){return m("distance",[d(r),r,c,s])}function p(r,c){return m("equals",[d(r),r,c])}function n(r,c){return m("intersects",[d(r),r,c])}function a(r,c){return m("touches",[d(r),r,c])}function _(r,c){return m("within",[d(r),r,c])}function h(r,c){return m("disjoint",[d(r),r,c])}function v(r,c){return m("overlaps",[d(r),r,c])}function E(r,c,s){return m("relate",[d(r),r,c,s])}function Z(r){return m("isSimple",[d(r),r])}function D(r){return W.apply(this,arguments)}function W(){return(W=(0,P.Z)(function*(r){return f(yield m("simplify",[d(r),r]))})).apply(this,arguments)}function yn(r){return S.apply(this,arguments)}function S(){return(S=(0,P.Z)(function*(r,c=!1){return f(yield m("convexHull",[d(r),r,c]))})).apply(this,arguments)}function pn(r,c){return K.apply(this,arguments)}function K(){return(K=(0,P.Z)(function*(r,c){return f(yield m("difference",[d(r),r,c]))})).apply(this,arguments)}function dn(r,c){return B.apply(this,arguments)}function B(){return(B=(0,P.Z)(function*(r,c){return f(yield m("symmetricDifference",[d(r),r,c]))})).apply(this,arguments)}function mn(r,c){return J.apply(this,arguments)}function J(){return(J=(0,P.Z)(function*(r,c){return f(yield m("intersect",[d(r),r,c]))})).apply(this,arguments)}function hn(r){return b.apply(this,arguments)}function b(){return(b=(0,P.Z)(function*(r,c=null){const s=F(r,c);return f(yield m("union",[d(s),s]))})).apply(this,arguments)}function gn(r,c,s,A,I,z){return k.apply(this,arguments)}function k(){return(k=(0,P.Z)(function*(r,c,s,A,I,z){return f(yield m("offset",[d(r),r,c,s,A,I,z]))})).apply(this,arguments)}function xn(r,c,s){return Q.apply(this,arguments)}function Q(){return(Q=(0,P.Z)(function*(r,c,s,A=!1){const I=[d(r),r,c,s,A];return f(yield m("buffer",I))})).apply(this,arguments)}function An(r,c,s,A,I,z){return Y.apply(this,arguments)}function Y(){return(Y=(0,P.Z)(function*(r,c,s,A,I,z){const Hn=[d(r),r,c,s,A,I,z];return f(yield m("geodesicBuffer",Hn))})).apply(this,arguments)}function nn(r){return"xmin"in r?r.center:"x"in r?r:r.extent?.center}function wn(r,c,s){return tn.apply(this,arguments)}function tn(){return(tn=(0,P.Z)(function*(r,c,s){if(null==r)throw new T;const A=r.spatialReference;if(null==(s=s??nn(r)))throw new T;const I=r.constructor.fromJSON(yield m("rotate",[A,r,c,s]));return I.spatialReference=A,I})).apply(this,arguments)}function Pn(r,c,s,A){return an.apply(this,arguments)}function an(){return(an=(0,P.Z)(function*(r,c,s,A){return f(yield m("generalize",[d(r),r,c,s,A]))})).apply(this,arguments)}function Zn(r,c,s){return un.apply(this,arguments)}function un(){return(un=(0,P.Z)(function*(r,c,s){return f(yield m("densify",[d(r),r,c,s]))})).apply(this,arguments)}function En(r,c,s){return on.apply(this,arguments)}function on(){return(on=(0,P.Z)(function*(r,c,s,A=0){return f(yield m("geodesicDensify",[d(r),r,c,s,A]))})).apply(this,arguments)}function vn(r,c){return m("planarArea",[d(r),r,c])}function In(r,c){return m("planarLength",[d(r),r,c])}function Rn(r,c,s){return m("geodesicArea",[d(r),r,c,s])}function Vn(r,c,s){return m("geodesicLength",[d(r),r,c,s])}class T extends Error{constructor(){super("Illegal Argument Exception")}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8325.a51485a3d41a2a79.js b/apps/n/porrtal-io-app/public/angular/8325.a51485a3d41a2a79.js deleted file mode 100644 index fa785151..00000000 --- a/apps/n/porrtal-io-app/public/angular/8325.a51485a3d41a2a79.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8325],{19702:(D,y,s)=>{s.d(y,{A:()=>P});var i=s(15861),o=s(17626),u=s(54024),h=s(10699),l=s(32917),E=s(77712),n=(s(85931),s(90912),s(76898)),M=s(36947);const P=p=>{let t=class extends p{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(a){super.postscript(a),(0,M.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var a=this;return(0,i.Z)(function*(){const e=new AbortController,r=e.signal;a.handles.add((0,u.kB)(()=>e.abort())),yield(0,l.N1)(()=>a.view.defaultsFromMap?.heightModelInfoReady,r),(0,h.k_)(r);const _=(0,M.Wt)(a.layer,a.view.heightModelInfo,a.supportsHeightUnitConversion);if(_)throw _})()}canResume(){const a=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!a||!a.minScale||!a.maxScale||a.minScale>=a.maxScale)}getSuspendInfo(){const a=super.getSuspendInfo(),e=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return e&&e.minScale&&e.maxScale&&e.minScale{s.r(y),s.d(y,{default:()=>a});var i=s(15861),o=s(17626),u=s(59213),h=s(26584),l=s(62208),E=s(10699),c=s(32917),d=s(77712),n=s(76898),M=s(19702),P=s(45611);const p="analysis-view-handles";let t=class extends((0,M.A)(P.Z)){constructor(e){super(e),this.type="line-of-sight-3d",this._analysisModule=null}initialize(){this.handles.add((0,c.YP)(()=>this.layer.analysis,e=>{this._destroyAnalysisView(),(0,l.pC)(e)&&this._createAnalysisView(e)},c.tX),p)}destroy(){this.handles.remove(p),this._destroyAnalysisView()}whenAnalysisView(){var e=this;return(0,i.Z)(function*(){if((0,l.pC)(e.analysisView))return e.analysisView;if((0,l.pC)(e._createAnalysisViewTask))return e._createAnalysisViewTask.promise;throw new h.Z("layerview:no-analysisview-for-analysis","The analysis has not been set on the LineOfSightLayer of this layer view")})()}isUpdating(){return(0,l.pC)(this._createAnalysisViewTask)||(0,l.pC)(this.analysisView)&&this.analysisView.updating}_createAnalysisView(e){var r=this;const _=(0,u.vr)(function(){var O=(0,i.Z)(function*(v){return r.analysisView=yield r._createAnalysisViewPromise(e,v),r._createAnalysisViewTask===_&&(r._createAnalysisViewTask=null),r.analysisView});return function(v){return O.apply(this,arguments)}}());this._createAnalysisViewTask=_}_destroyAnalysisView(){this.analysisView=(0,l.SC)(this.analysisView),this._createAnalysisViewTask=(0,l.IM)(this._createAnalysisViewTask)}_createAnalysisViewPromise(e,r){var _=this;return(0,i.Z)(function*(){let O=_._analysisModule;if((0,l.Wi)(O)){const C=yield _._loadAnalysisModule();_._analysisModule=C,O=C}const v=new O.default({analysis:e,view:_.view,parent:_});if(yield v.when(),(0,E.Hc)(r))throw v.destroy(),new h.Z("layerview:no-analysisview-for-analysis","The analysis has not been added to the LineOfSightLayer of this layer view",{analysis:e});return v})()}_loadAnalysisModule(){return Promise.all([s.e(125),s.e(4828),s.e(8592),s.e(9862)]).then(s.bind(s,11467))}};(0,o._)([(0,d.Cb)()],t.prototype,"type",void 0),(0,o._)([(0,d.Cb)()],t.prototype,"layer",void 0),(0,o._)([(0,d.Cb)()],t.prototype,"analysisView",void 0),(0,o._)([(0,d.Cb)()],t.prototype,"_createAnalysisViewTask",void 0),t=(0,o._)([(0,n.j)("esri.views.3d.layers.LineOfSightLayerView3D")],t);const a=t},45611:(D,y,s)=>{s.d(y,{Z:()=>a});var i=s(17626),o=s(14517),u=s(61885),h=s(80542),l=s(61996),E=s(63290),c=s(62208),d=s(60330),n=s(77712),p=(s(85931),s(90912),s(76898));let t=class extends((0,h.p)((0,l.IG)((0,d.v)(u.Z.EventedMixin(o.Z))))){constructor(e){super(e),this.layer=null,this.parent=null}initialize(){this.when().catch(e=>{if("layerview:create-error"!==e.name){const r=this.layer&&this.layer.id||"no id",_=this.layer&&this.layer.title||"no title";E.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${_}', id: '${r}')`,e)}})}get fullOpacity(){return(0,c.Pt)(this.get("layer.opacity"),1)*(0,c.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(e){this._overrideIfSome("visible",e)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const e=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(e.viewNotReady=!0),this.layer&&this.layer.loaded||(e.layerNotLoaded=!0),this.visible||(e.layerInvisible=!0),e}isUpdating(){return!1}};(0,i._)([(0,n.Cb)()],t.prototype,"fullOpacity",null),(0,i._)([(0,n.Cb)()],t.prototype,"layer",void 0),(0,i._)([(0,n.Cb)()],t.prototype,"parent",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"suspended",null),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"suspendInfo",null),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"legendEnabled",null),(0,i._)([(0,n.Cb)({type:Boolean,readOnly:!0})],t.prototype,"updating",null),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"updatingProgress",null),(0,i._)([(0,n.Cb)()],t.prototype,"visible",null),(0,i._)([(0,n.Cb)()],t.prototype,"view",void 0),t=(0,i._)([(0,p.j)("esri.views.layers.LayerView")],t);const a=t}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8346.19dc97a10e48b3ea.js b/apps/n/porrtal-io-app/public/angular/8346.19dc97a10e48b3ea.js deleted file mode 100644 index 7c24bf09..00000000 --- a/apps/n/porrtal-io-app/public/angular/8346.19dc97a10e48b3ea.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8346],{48346:(C,g,n)=>{n.d(g,{A:()=>k,d:()=>z});var o=n(15861),e=n(76210),l=n(22757),m=n(18564),p=n(46203),h=n(98635),s=n(85589);const k=(0,e.GH)(class extends e.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteActionClick=(0,e.yM)(this,"calciteActionClick",6),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.indicator=!1,this.intlLoading="Loading",this.loading=!1,this.scale="m",this.textEnabled=!1,this.mutationObserver=(0,l.c)("mutation",()=>(0,e.xE)(this)),this.handleTooltipSlotChange=a=>{const i=a.target.assignedElements({flatten:!0}).filter(r=>r?.matches("calcite-tooltip"))[0];i&&(i.referenceElement=this.buttonEl)},this.calciteActionClickHandler=()=>{this.disabled||this.calciteActionClick.emit()}}connectedCallback(){var a;null===(a=this.mutationObserver)||void 0===a||a.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){var a;null===(a=this.mutationObserver)||void 0===a||a.disconnect()}componentDidRender(){(0,m.u)(this)}setFocus(){var a=this;return(0,o.Z)(function*(){var t;null===(t=a.buttonEl)||void 0===t||t.focus()})()}renderTextContainer(){const{text:a,textEnabled:t}=this;return a?(0,e.h)("div",{class:{"text-container":!0,"text-container--visible":t},key:"text-container"},a):null}renderIconContainer(){var a;const{loading:t,icon:i,scale:r,el:c,intlLoading:f}=this,y="l"===r?"m":"s",v=t?(0,e.h)("calcite-loader",{active:!0,inline:!0,label:f,scale:"l"===r?"l":"m"}):null,E=i?(0,e.h)("calcite-icon",{icon:i,scale:y}):null,b=v||E,D=b||(null===(a=c.children)||void 0===a?void 0:a.length),O=(0,e.h)("div",{class:{"slot-container":!0,"slot-container--hidden":t}},(0,e.h)("slot",null));return D?(0,e.h)("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},b,O):null}render(){const{compact:a,disabled:t,loading:i,textEnabled:r,label:c,text:f}=this,y=c||f,u={button:!0,"button--text-visible":r,"button--compact":a};return(0,e.h)(e.AA,{onClick:this.calciteActionClickHandler},(0,e.h)("button",{"aria-busy":(0,p.t)(i),"aria-disabled":(0,p.t)(t),"aria-label":y,class:u,disabled:t,ref:v=>this.buttonEl=v},this.renderIconContainer(),this.renderTextContainer()),(0,e.h)("slot",{name:"tooltip",onSlotchange:this.handleTooltipSlotChange}))}get el(){return this}static get style(){return'@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button,:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus,:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus,:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button,:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}'}},[1,"calcite-action",{active:[516],alignment:[513],appearance:[513],compact:[516],disabled:[516],icon:[1],indicator:[516],intlLoading:[1,"intl-loading"],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],setFocus:[64]}]);function z(){typeof customElements>"u"||["calcite-action","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-action":customElements.get(t)||customElements.define(t,k);break;case"calcite-icon":customElements.get(t)||(0,h.d)();break;case"calcite-loader":customElements.get(t)||(0,s.d)()}})}z()},98635:(C,g,n)=>{n.d(g,{I:()=>z,d:()=>a});var o=n(15861),e=n(76210),l=n(46203),m=n(22757);const h={},s={},d={s:16,m:24,l:32};function x(){return(x=(0,o.Z)(function*({icon:t,scale:i}){const r=d[i],c=w(t),f="F"===c.charAt(c.length-1),u=`${f?c.substring(0,c.length-1):c}${r}${f?"F":""}`;if(h[u])return h[u];s[u]||(s[u]=fetch((0,e.K3)(`./assets/icon/${u}.json`)).then(E=>E.json()).catch(()=>(console.error(`"${u}" is not a valid calcite-ui-icon name`),"")));const v=yield s[u];return h[u]=v,v})).apply(this,arguments)}function w(t){const i=!isNaN(Number(t.charAt(0))),r=t.split("-");return 1===r.length?i?`i${t}`:t:r.map((c,f)=>0===f?i?`i${c.toUpperCase()}`:c:c.charAt(0).toUpperCase()+c.slice(1)).join("")}const z=(0,e.GH)(class extends e.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=null,this.flipRtl=!1,this.scale="m",this.visible=!1}connectedCallback(){this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}disconnectedCallback(){var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.intersectionObserver=null}componentWillLoad(){var t=this;return(0,o.Z)(function*(){t.loadIconPathData()})()}render(){const{el:t,flipRtl:i,pathData:r,scale:c,textLabel:f}=this,y=(0,l.c)(t),u=d[c],v=!!f,E=[].concat(r||"");return(0,e.h)(e.AA,{"aria-hidden":(0,l.t)(!v),"aria-label":v?f:null,role:v?"img":null},(0,e.h)("svg",{class:{"flip-rtl":"rtl"===y&&i,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${u} ${u}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},E.map(b=>(0,e.h)("path","string"==typeof b?{d:b}:{d:b.d,opacity:"opacity"in b?b.opacity:1}))))}loadIconPathData(){var t=this;return(0,o.Z)(function*(){const{icon:i,scale:r,visible:c}=t;!e.Z5.isBrowser||!i||!c||(t.pathData=yield function _(t){return x.apply(this,arguments)}({icon:i,scale:r}))})()}waitUntilVisible(t){this.intersectionObserver=(0,m.c)("intersection",i=>{i.forEach(r=>{r.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){block-size:1rem;inline-size:1rem;min-inline-size:1rem;min-block-size:1rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem;min-inline-size:1.5rem;min-block-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem;min-inline-size:2rem;min-block-size:2rem}.flip-rtl{transform:scaleX(-1)}.svg{display:block}"}},[1,"calcite-icon",{icon:[513],flipRtl:[516,"flip-rtl"],scale:[513],textLabel:[1,"text-label"],pathData:[32],visible:[32]}]);function a(){typeof customElements>"u"||["calcite-icon"].forEach(i=>{"calcite-icon"===i&&(customElements.get(i)||customElements.define(i,z))})}a()},18564:(C,g,n)=>{function o(){}function e(l,m=!1){if(l.disabled)return l.el.setAttribute("tabindex","-1"),l.el.setAttribute("aria-disabled","true"),l.el.contains(document.activeElement)&&document.activeElement.blur(),void(l.el.click=o);l.el.click=HTMLElement.prototype.click,"function"==typeof m?l.el.setAttribute("tabindex",m.call(l)?"0":"-1"):!0===m?l.el.setAttribute("tabindex","0"):!1===m&&l.el.removeAttribute("tabindex"),l.el.removeAttribute("aria-disabled")}n.d(g,{u:()=>e})},85589:(C,g,n)=>{n.d(g,{d:()=>p});var o=n(76210),e=n(23504);const m=(0,o.GH)(class extends o.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.active=!1,this.inline=!1,this.scale="m",this.value=0,this.text="",this.noPadding=!1}render(){const{el:h,inline:s,label:d,scale:_,text:x,type:w,value:k}=this,z=h.id||(0,e.g)(),t=s?this.getInlineSize(_):this.getSize(_),i=.45*t,r=`0 0 ${t} ${t}`,c="determinate"===w,f=2*i*Math.PI,y=k/100*f,u=f-y,v=Math.floor(k),b={r:i,cx:t/2,cy:t/2},D={"stroke-dasharray":`${y} ${u}`};return(0,o.h)(o.AA,{"aria-label":d,id:z,role:"progressbar",...c?{"aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,complete:100===v}:{}},(0,o.h)("div",{class:"loader__svgs"},(0,o.h)("svg",{class:"loader__svg loader__svg--1",viewBox:r},(0,o.h)("circle",{...b})),(0,o.h)("svg",{class:"loader__svg loader__svg--2",viewBox:r},(0,o.h)("circle",{...b})),(0,o.h)("svg",{class:"loader__svg loader__svg--3",viewBox:r,...c?{style:D}:{}},(0,o.h)("circle",{...b}))),x&&(0,o.h)("div",{class:"loader__text"},x),c&&(0,o.h)("div",{class:"loader__percentage"},k))}getSize(h){return{s:32,m:56,l:80}[h]}getInlineSize(h){return{s:12,m:16,l:20}[h]}get el(){return this}static get style(){return'@charset "UTF-8";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:none}:host([active]){display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);transform:scale(1, 1)}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}}:host([type=determinate]){animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([active][inline]){display:inline-block}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 2.4)}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.2)}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.867)}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}'}},[1,"calcite-loader",{active:[516],inline:[516],label:[1],scale:[513],type:[513],value:[2],text:[1],noPadding:[516,"no-padding"]}]);function p(){typeof customElements>"u"||["calcite-loader"].forEach(s=>{"calcite-loader"===s&&(customElements.get(s)||customElements.define(s,m))})}p()},22757:(C,g,n)=>{n.d(g,{c:()=>e});var o=n(76210);function e(m,p,h){if(!o.Z5.isBrowser)return;const s=function l(m){class p extends window.MutationObserver{constructor(s){super(s),this.observedEntry=[],this.callback=s}observe(s,d){return this.observedEntry.push({target:s,options:d}),super.observe(s,d)}unobserve(s){const d=this.observedEntry.filter(_=>_.target!==s);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),d.forEach(_=>this.observe(_.target,_.options))}}return"intersection"===m?window.IntersectionObserver:"mutation"===m?p:window.ResizeObserver}(m);return new s(p,h)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8351.99e25a25af31bdb7.js b/apps/n/porrtal-io-app/public/angular/8351.99e25a25af31bdb7.js deleted file mode 100644 index 1965fcbd..00000000 --- a/apps/n/porrtal-io-app/public/angular/8351.99e25a25af31bdb7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8351],{58351:(p,d,i)=>{i.r(d),i.d(d,{p:()=>f});var u,h,a,s=i(1719),t={exports:{}};u=t,void 0!==(a=t.exports,Object.defineProperty(a,"__esModule",{value:!0}),h=void(a.default={_decimalSeparator:",",_thousandSeparator:"\xa0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n.e.",_era_bc:"p.n.e.",A:"a",P:"p",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"stycznia",February:"lutego",March:"marca",April:"kwietnia",May:"maja",June:"czerwca",July:"lipca",August:"sierpnia",September:"wrze\u015bnia",October:"pa\u017adziernika",November:"listopada",December:"grudnia",Jan:"sty",Feb:"lut",Mar:"mar",Apr:"kwi","May(short)":"maj",Jun:"cze",Jul:"lip",Aug:"sie",Sep:"wrz",Oct:"pa\u017a",Nov:"lis",Dec:"gru",Sunday:"niedziela",Monday:"poniedzia\u0142ek",Tuesday:"wtorek",Wednesday:"\u015broda",Thursday:"czwartek",Friday:"pi\u0105tek",Saturday:"sobota",Sun:"niedz.",Mon:"pon.",Tue:"wt.",Wed:"\u015br.",Thu:"czw.",Fri:"pt.",Sat:"sob.",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Zmiana skali",Play:"Odtwarzanie",Stop:"Zatrzymaj",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"Wczytywanie",Home:"Strona g\u0142\xf3wna",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Drukuj",Image:"Obraz",Data:"Dane",Print:"Drukuj","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(_,a){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,s.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8364.0dd29268713e4f9b.js b/apps/n/porrtal-io-app/public/angular/8364.0dd29268713e4f9b.js deleted file mode 100644 index 2ec73fdc..00000000 --- a/apps/n/porrtal-io-app/public/angular/8364.0dd29268713e4f9b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8364],{7547:(Lt,J,L)=>{var R,O,w,u,l,o,h,y,_,v,g,p,S,U,K,wt,Rt,rt,nt,G,it,X,$t,Q,Ht,F,Ot,A,V,C,tt,dt,et,ct,Yt,st,ht,It,Dt,pt,Bt,gt,xt,Nt,ut,M,Ut,Gt,Wt,Ct,Zt,kt,mt,_t,St,ft,yt,Et,bt,Z,Tt,r;L.d(J,{$y:()=>X,AH:()=>O,CS:()=>Ut,DD:()=>y,Dd:()=>V,Em:()=>it,JS:()=>ut,Ky:()=>_,Lh:()=>Gt,Qb:()=>yt,RL:()=>R,RS:()=>bt,TF:()=>G,Tx:()=>l,UR:()=>Rt,UX:()=>ft,bj:()=>M,eZ:()=>h,id:()=>Ht,kP:()=>st,r4:()=>pt,sj:()=>ht,v2:()=>w,zQ:()=>A,zV:()=>wt}),(r=R||(R={}))[r.BUTT=0]="BUTT",r[r.ROUND=1]="ROUND",r[r.SQUARE=2]="SQUARE",r[r.UNKNOWN=4]="UNKNOWN",function(r){r[r.BEVEL=0]="BEVEL",r[r.ROUND=1]="ROUND",r[r.MITER=2]="MITER",r[r.UNKNOWN=4]="UNKNOWN"}(O||(O={})),function(r){r[r.SCREEN=0]="SCREEN",r[r.MAP=1]="MAP"}(w||(w={})),function(r){r[r.Tint=0]="Tint",r[r.Ignore=1]="Ignore",r[r.Multiply=99]="Multiply"}(u||(u={})),function(r){r.Both="Both",r.JustBegin="JustBegin",r.JustEnd="JustEnd",r.None="None"}(l||(l={})),function(r){r[r.Mosaic=0]="Mosaic",r[r.Centered=1]="Centered"}(o||(o={})),function(r){r[r.Normal=0]="Normal",r[r.Superscript=1]="Superscript",r[r.Subscript=2]="Subscript"}(h||(h={})),function(r){r[r.MSSymbol=0]="MSSymbol",r[r.Unicode=1]="Unicode"}(y||(y={})),function(r){r[r.Unspecified=0]="Unspecified",r[r.TrueType=1]="TrueType",r[r.PSOpenType=2]="PSOpenType",r[r.TTOpenType=3]="TTOpenType",r[r.Type1=4]="Type1"}(_||(_={})),function(r){r[r.Display=0]="Display",r[r.Map=1]="Map"}(v||(v={})),function(r){r.None="None",r.Loop="Loop",r.Oscillate="Oscillate"}(g||(g={})),function(r){r[r.Z=0]="Z",r[r.X=1]="X",r[r.Y=2]="Y"}(p||(p={})),function(r){r[r.XYZ=0]="XYZ",r[r.ZXY=1]="ZXY",r[r.YXZ=2]="YXZ"}(S||(S={})),function(r){r[r.Rectangle=0]="Rectangle",r[r.RoundedRectangle=1]="RoundedRectangle",r[r.Oval=2]="Oval"}(U||(U={})),function(r){r[r.None=0]="None",r[r.Alpha=1]="Alpha",r[r.Screen=2]="Screen",r[r.Multiply=3]="Multiply",r[r.Add=4]="Add"}(K||(K={})),function(r){r[r.TTB=0]="TTB",r[r.RTL=1]="RTL",r[r.BTT=2]="BTT"}(wt||(wt={})),function(r){r[r.None=0]="None",r[r.SignPost=1]="SignPost",r[r.FaceNearPlane=2]="FaceNearPlane"}(Rt||(Rt={})),function(r){r[r.Float=0]="Float",r[r.String=1]="String",r[r.Boolean=2]="Boolean"}(rt||(rt={})),function(r){r[r.Intersect=0]="Intersect",r[r.Subtract=1]="Subtract"}(nt||(nt={})),function(r){r.OpenEnded="OpenEnded",r.Block="Block",r.Crossed="Crossed"}(G||(G={})),function(r){r.FullGeometry="FullGeometry",r.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment",r.ReversedFirstSegment="ReversedFirstSegment",r.PerpendicularToSecondSegment="PerpendicularToSecondSegment",r.SecondSegmentWithTicks="SecondSegmentWithTicks",r.DoublePerpendicular="DoublePerpendicular",r.OppositeToFirstSegment="OppositeToFirstSegment",r.TriplePerpendicular="TriplePerpendicular",r.HalfCircleFirstSegment="HalfCircleFirstSegment",r.HalfCircleSecondSegment="HalfCircleSecondSegment",r.HalfCircleExtended="HalfCircleExtended",r.OpenCircle="OpenCircle",r.CoverageEdgesWithTicks="CoverageEdgesWithTicks",r.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks",r.GapExtentMidline="GapExtentMidline",r.Chevron="Chevron",r.PerpendicularWithArc="PerpendicularWithArc",r.ClosedHalfCircle="ClosedHalfCircle",r.TripleParallelExtended="TripleParallelExtended",r.ParallelWithTicks="ParallelWithTicks",r.Parallel="Parallel",r.PerpendicularToFirstSegment="PerpendicularToFirstSegment",r.ParallelOffset="ParallelOffset",r.OffsetOpposite="OffsetOpposite",r.OffsetSame="OffsetSame",r.CircleWithArc="CircleWithArc",r.DoubleJog="DoubleJog",r.PerpendicularOffset="PerpendicularOffset",r.LineExcludingLastSegment="LineExcludingLastSegment",r.MultivertexArrow="MultivertexArrow",r.CrossedArrow="CrossedArrow",r.ChevronArrow="ChevronArrow",r.ChevronArrowOffset="ChevronArrowOffset",r.PartialFirstSegment="PartialFirstSegment",r.Arch="Arch",r.CurvedParallelTicks="CurvedParallelTicks",r.Arc90Degrees="Arc90Degrees"}(it||(it={})),function(r){r.Mitered="Mitered",r.Bevelled="Bevelled",r.Rounded="Rounded",r.Square="Square",r.TrueBuffer="TrueBuffer"}(X||(X={})),function(r){r.ClosePath="ClosePath",r.ConvexHull="ConvexHull",r.RectangularBox="RectangularBox"}($t||($t={})),function(r){r.BeginningOfLine="BeginningOfLine",r.EndOfLine="EndOfLine"}(Q||(Q={})),function(r){r.Mitered="Mitered",r.Bevelled="Bevelled",r.Rounded="Rounded",r.Square="Square"}(Ht||(Ht={})),function(r){r.Fast="Fast",r.Accurate="Accurate"}(F||(F={})),function(r){r.BeginningOfLine="BeginningOfLine",r.EndOfLine="EndOfLine"}(Ot||(Ot={})),function(r){r.Sinus="Sinus",r.Square="Square",r.Triangle="Triangle",r.Random="Random"}(A||(A={})),function(r){r[r.None=0]="None",r[r.Default=1]="Default",r[r.Force=2]="Force"}(V||(V={})),function(r){r[r.Buffered=0]="Buffered",r[r.Left=1]="Left",r[r.Right=2]="Right",r[r.AlongLine=3]="AlongLine"}(C||(C={})),function(r){r[r.Linear=0]="Linear",r[r.Rectangular=1]="Rectangular",r[r.Circular=2]="Circular",r[r.Buffered=3]="Buffered"}(tt||(tt={})),function(r){r[r.Discrete=0]="Discrete",r[r.Continuous=1]="Continuous"}(dt||(dt={})),function(r){r[r.AcrossLine=0]="AcrossLine",r[r.AloneLine=1]="AloneLine"}(et||(et={})),function(r){r[r.Left=0]="Left",r[r.Right=1]="Right",r[r.Center=2]="Center",r[r.Justify=3]="Justify"}(ct||(ct={})),function(r){r[r.Base=0]="Base",r[r.MidPoint=1]="MidPoint",r[r.ThreePoint=2]="ThreePoint",r[r.FourPoint=3]="FourPoint",r[r.Underline=4]="Underline",r[r.CircularCW=5]="CircularCW",r[r.CircularCCW=6]="CircularCCW"}(Yt||(Yt={})),function(r){r.Butt="Butt",r.Round="Round",r.Square="Square"}(st||(st={})),function(r){r.NoConstraint="NoConstraint",r.HalfPattern="HalfPattern",r.HalfGap="HalfGap",r.FullPattern="FullPattern",r.FullGap="FullGap",r.Custom="Custom"}(ht||(ht={})),function(r){r[r.None=-1]="None",r[r.Custom=0]="Custom",r[r.Circle=1]="Circle",r[r.OpenArrow=2]="OpenArrow",r[r.ClosedArrow=3]="ClosedArrow",r[r.Diamond=4]="Diamond"}(It||(It={})),function(r){r[r.ExtraLeading=0]="ExtraLeading",r[r.Multiple=1]="Multiple",r[r.Exact=2]="Exact"}(Dt||(Dt={})),function(r){r.Bevel="Bevel",r.Round="Round",r.Miter="Miter"}(pt||(pt={})),function(r){r[r.Default=0]="Default",r[r.String=1]="String",r[r.Numeric=2]="Numeric"}(Bt||(Bt={})),function(r){r[r.InsidePolygon=0]="InsidePolygon",r[r.PolygonCenter=1]="PolygonCenter",r[r.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"}(gt||(gt={})),function(r){r[r.Tint=0]="Tint",r[r.Replace=1]="Replace",r[r.Multiply=2]="Multiply"}(xt||(xt={})),function(r){r[r.ClipAtBoundary=0]="ClipAtBoundary",r[r.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary",r[r.DoNotTouchBoundary=2]="DoNotTouchBoundary",r[r.DoNotClip=3]="DoNotClip"}(Nt||(Nt={})),function(r){r.NoConstraint="NoConstraint",r.WithMarkers="WithMarkers",r.WithFullGap="WithFullGap",r.WithHalfGap="WithHalfGap",r.Custom="Custom"}(ut||(ut={})),function(r){r.Fixed="Fixed",r.Random="Random",r.RandomFixedQuantity="RandomFixedQuantity"}(M||(M={})),function(r){r.LineMiddle="LineMiddle",r.LineBeginning="LineBeginning",r.LineEnd="LineEnd",r.SegmentMidpoint="SegmentMidpoint"}(Ut||(Ut={})),function(r){r.OnPolygon="OnPolygon",r.CenterOfMass="CenterOfMass",r.BoundingBoxCenter="BoundingBoxCenter"}(Gt||(Gt={})),function(r){r[r.Low=0]="Low",r[r.Medium=1]="Medium",r[r.High=2]="High"}(Wt||(Wt={})),function(r){r[r.MarkerCenter=0]="MarkerCenter",r[r.MarkerBounds=1]="MarkerBounds"}(Ct||(Ct={})),function(r){r[r.None=0]="None",r[r.PropUniform=1]="PropUniform",r[r.PropNonuniform=2]="PropNonuniform",r[r.DifUniform=3]="DifUniform",r[r.DifNonuniform=4]="DifNonuniform"}(Zt||(Zt={})),function(r){r.Tube="Tube",r.Strip="Strip",r.Wall="Wall"}(kt||(kt={})),function(r){r[r.Random=0]="Random",r[r.Increasing=1]="Increasing",r[r.Decreasing=2]="Decreasing",r[r.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"}(mt||(mt={})),function(r){r[r.Relative=0]="Relative",r[r.Absolute=1]="Absolute"}(_t||(_t={})),function(r){r[r.Normal=0]="Normal",r[r.LowerCase=1]="LowerCase",r[r.Allcaps=2]="Allcaps"}(St||(St={})),function(r){r[r.LTR=0]="LTR",r[r.RTL=1]="RTL"}(ft||(ft={})),function(r){r.Draft="Draft",r.Picture="Picture",r.Text="Text"}(yt||(yt={})),function(r){r[r.Top=0]="Top",r[r.Center=1]="Center",r[r.Baseline=2]="Baseline",r[r.Bottom=3]="Bottom"}(Et||(Et={})),function(r){r[r.Right=0]="Right",r[r.Upright=1]="Upright"}(bt||(bt={})),function(r){r[r.Small=0]="Small",r[r.Medium=1]="Medium",r[r.Large=2]="Large"}(Z||(Z={})),function(r){r[r.Calm=0]="Calm",r[r.Rippled=1]="Rippled",r[r.Slight=2]="Slight",r[r.Moderate=3]="Moderate"}(Tt||(Tt={}))},36243:(Lt,J,L)=>{L.d(J,{Z:()=>R});class R{constructor(w){this._array=[],w<=0&&console.error("strideInBytes must be positive!"),this._stride=w}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}static i1616to32(w,u){return 65535&w|u<<16}static i8888to32(w,u,l,o){return 255&w|(255&u)<<8|(255&l)<<16|o<<24}static i8816to32(w,u,l){return 255&w|(255&u)<<8|l<<16}}},1268:(Lt,J,L)=>{L.d(J,{EE:()=>w,R:()=>u,_5:()=>y,aF:()=>l,f2:()=>g,fD:()=>_,fR:()=>O,nR:()=>h,r1:()=>v,vL:()=>o});var O,w,u,l,o,h,y,_,v,p,R=L(7547);(p=O||(O={}))[p.BACKGROUND=0]="BACKGROUND",p[p.FILL=1]="FILL",p[p.LINE=2]="LINE",p[p.SYMBOL=3]="SYMBOL",p[p.CIRCLE=4]="CIRCLE",function(p){p[p.VISIBLE=0]="VISIBLE",p[p.NONE=1]="NONE"}(w||(w={})),function(p){p[p.POINT=0]="POINT",p[p.LINE=1]="LINE",p[p.LINE_CENTER=2]="LINE_CENTER"}(u||(u={})),function(p){p[p.MAP=0]="MAP",p[p.VIEWPORT=1]="VIEWPORT",p[p.AUTO=2]="AUTO"}(l||(l={})),function(p){p[p.AUTO=0]="AUTO",p[p.LEFT=1]="LEFT",p[p.CENTER=2]="CENTER",p[p.RIGHT=3]="RIGHT"}(o||(o={})),function(p){p[p.CENTER=0]="CENTER",p[p.LEFT=1]="LEFT",p[p.RIGHT=2]="RIGHT",p[p.TOP=3]="TOP",p[p.BOTTOM=4]="BOTTOM",p[p.TOP_LEFT=5]="TOP_LEFT",p[p.TOP_RIGHT=6]="TOP_RIGHT",p[p.BOTTOM_LEFT=7]="BOTTOM_LEFT",p[p.BOTTOM_RIGHT=8]="BOTTOM_RIGHT"}(h||(h={})),function(p){p[p.NONE=0]="NONE",p[p.UPPERCASE=1]="UPPERCASE",p[p.LOWERCASE=2]="LOWERCASE"}(y||(y={})),function(p){p[p.MAP=0]="MAP",p[p.VIEWPORT=1]="VIEWPORT"}(_||(_={})),function(p){p[p.HORIZONTAL=0]="HORIZONTAL",p[p.VERTICAL=1]="VERTICAL"}(v||(v={}));class g{}g.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:w.VISIBLE}},g.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:w.VISIBLE}},g.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:w.VISIBLE},"line-cap":{type:"enum",values:["butt","round","square"],default:R.RL.BUTT},"line-join":{type:"enum",values:["bevel","round","miter"],default:R.AH.MITER},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}},g.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:w.VISIBLE},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:u.POINT},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:h.CENTER},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:l.AUTO},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:h.CENTER},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:o.CENTER},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:l.AUTO},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:y.NONE},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[v.HORIZONTAL]}},g.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:w.VISIBLE}},g.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}},g.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:_.MAP}},g.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:_.MAP},"line-width":{type:"number",minimum:0,default:1}},g.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:_.MAP},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:_.MAP}},g.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}},g.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:_.MAP}}},13295:(Lt,J,L)=>{L.d(J,{Et:()=>be,sj:()=>Re,Le:()=>Te,_L:()=>Ie,gf:()=>ve,jG:()=>we,nj:()=>De});var u,l,s,R=L(919),O=L(62208),w=L(36243);(s=u||(u={}))[s.R8_SIGNED=0]="R8_SIGNED",s[s.R8_UNSIGNED=1]="R8_UNSIGNED",s[s.R16_SIGNED=2]="R16_SIGNED",s[s.R16_UNSIGNED=3]="R16_UNSIGNED",s[s.R8G8_SIGNED=4]="R8G8_SIGNED",s[s.R8G8_UNSIGNED=5]="R8G8_UNSIGNED",s[s.R16G16_SIGNED=6]="R16G16_SIGNED",s[s.R16G16_UNSIGNED=7]="R16G16_UNSIGNED",s[s.R8G8B8A8_SIGNED=8]="R8G8B8A8_SIGNED",s[s.R8G8B8A8_UNSIGNED=9]="R8G8B8A8_UNSIGNED",s[s.R8G8B8A8_COLOR=10]="R8G8B8A8_COLOR",s[s.R16G16B16A16_DASHARRAY=11]="R16G16B16A16_DASHARRAY",s[s.R16G16B16A16_PATTERN=12]="R16G16B16A16_PATTERN",function(s){s[s.UNIFORM=0]="UNIFORM",s[s.DATA_DRIVEN=1]="DATA_DRIVEN",s[s.INTERPOLATED_DATA_DRIVEN=2]="INTERPOLATED_DATA_DRIVEN",s[s.UNUSED=3]="UNUSED"}(l||(l={}));var o=L(67969),h=L(40852);class y{constructor(t){this._locations=new Map,this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._layoutInfo||this._buildAttributesInfo(),this._stride}getAttributeLocations(){return 0===this._locations.size&&this._buildAttributesInfo(),this._locations}getLayoutInfo(){return this._layoutInfo||this._buildAttributesInfo(),this._layoutInfo}getEncodingInfos(){return this._propertyEncodingInfo||this._buildAttributesInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildAttributesInfo(),this._uniforms}getShaderHeader(){return this._shaderHeader||this._buildAttributesInfo(),this._shaderHeader}getShaderMain(){return this._shaderMain||this._buildAttributesInfo(),this._shaderMain}setDataUniforms(t,e,n,i,a){const d=this.getUniforms();for(const c of d){const{name:f,type:m,getValue:T}=c,E=T(n,e,i,a);if(null!==E)switch(m){case"float":t.setUniform1f(f,E);break;case"vec2":t.setUniform2fv(f,E);break;case"vec4":t.setUniform4fv(f,E)}}}encodeAttributes(t,e,n,i){const a=this.attributesInfo(),d=this.getEncodingInfos(),c=[];let f=0,m=0;for(const T of Object.keys(d)){const E=d[T],{type:I,precisionFactor:x,isLayout:P}=a[T],lt=P?n.getLayoutProperty(T):n.getPaintProperty(T),$=lt.interpolator?.getInterpolationRange(e);let Y=0;for(const D of E){const{offset:N,bufferElementsToAdd:W}=D;if(W>0){for(let vt=0;vt4)i++,j={dataIndex:i,count:0,offset:0},4!==N&&(n[vt]=j),t.push({location:-1,name:"a_data_"+i,count:N,type:Y,normalized:W}),at=Math.ceil(Math.max(B/4,1));else{const ot=t[j.dataIndex];ot.count+=N,at=Math.ceil(Math.max(ot.count*D/4,1))-Math.ceil(Math.max(j.offset/4,1))}P.push({dataIndex:j.dataIndex,offset:j.offset,bufferElementsToAdd:at}),j.offset+=B,j.count+=N}}for(const E of t)switch(E.type){case o.g.BYTE:case o.g.UNSIGNED_BYTE:E.count=4;break;case o.g.SHORT:case o.g.UNSIGNED_SHORT:E.count+=E.count%2}this._buildVertexBufferLayout(t);let f=0;const m=this._layoutInfo.geometry;for(const E of m)this._locations.set(E.name,f++);const T=this._layoutInfo.opacity;if(T)for(const E of T)this._locations.set(E.name,f++);this._buildShaderInfo(t,e),this._propertyEncodingInfo=e}_buildVertexBufferLayout(t){const e={},n=this.geometryInfo();let i=n[0].stride;if(0===t.length)e.geometry=n;else{const a=[];let d=i;for(const c of t)i+=_(c.type)*c.count;for(const c of n)a.push(new h.G(c.name,c.count,c.type,c.offset,i,c.normalized));for(const c of t)a.push(new h.G(c.name,c.count,c.type,d,i,c.normalized)),d+=_(c.type)*c.count;e.geometry=a}this.opacityInfo()&&(e.opacity=this.opacityInfo()),this._layoutInfo=e,this._stride=i}_buildShaderInfo(t,e){let n="\n",i="\n";const a=[];for(const m of t)n+=`attribute ${this._getType(m.count)} ${m.name};\n`;const d=this.attributes(),c=this.attributesInfo();let f=-1;for(const m of d){f++;const{name:T,type:E,precisionFactor:I,isLayout:x}=c[m],P=I&&1!==I?" * "+1/I:"",{bytesPerElement:lt,count:$}=y._encodingInfo[E],Y=D=>`a_data_${D.dataIndex}${v($,D.offset,lt)}`;switch(this.getAtributeState(f)){case l.UNIFORM:{const D=this._getType($),N=`u_${T}`;a.push({name:N,type:D,getValue:(W,B,vt,j)=>{const at=x?W.getLayoutValue(m,B):W.getPaintValue(m,B);if(E===u.R16G16B16A16_DASHARRAY){const ot=W.getDashKey(at,W.getLayoutValue("line-cap",B)),ee=j.getMosaicItemPosition(ot,!1);if((0,O.Wi)(ee))return null;const{tl:re,br:ye}=ee;return[re[0],ye[1],ye[0],re[1]]}if(E===u.R16G16B16A16_PATTERN){const ot=j.getMosaicItemPosition(at,!m.includes("line-"));if((0,O.Wi)(ot))return null;const{tl:ee,br:re}=ot;return[ee[0],re[1],re[0],ee[1]]}if(E===u.R8G8B8A8_COLOR){const ot=at[3];return[ot*at[0],ot*at[1],ot*at[2],ot]}return at}}),n+=`uniform ${D} ${N};\n`,i+=`${D} ${T} = ${N};\n`}break;case l.DATA_DRIVEN:{const D=Y(e[m][0]);i+=`${this._getType($)} ${T} = ${D}${P};\n`}break;case l.INTERPOLATED_DATA_DRIVEN:{const D=`u_t_${T}`;a.push({name:D,type:"float",getValue:(B,vt,j,at)=>(x?B.getLayoutProperty(m):B.getPaintProperty(m)).interpolator.interpolationUniformValue(j,vt)}),n+=`uniform float ${D};\n`;const N=Y(e[m][0]),W=Y(e[m][1]);i+=`${this._getType($)} ${T} = mix(${N}${P}, ${W}${P}, ${D});\n`}}}this._shaderHeader=n,this._shaderMain=i,this._uniforms=a}_bit(t){return(this._key&1<>t}_getType(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw new Error("Invalid count")}_encodeColor(t){const e=255*t[3];return w.Z.i8888to32(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,n){if(!n||!n.rect)return;const a=n.rect,d=n.width,c=n.height;e[t]=this._encodeShort(a.x+2,0),e[t]|=this._encodeShort(a.y+2+c,16),e[t+1]=this._encodeShort(a.x+2+d,0),e[t+1]|=this._encodeShort(a.y+2,16)}_encodeByte(t,e){return(255&t)<{switch(s){case o.g.FLOAT:case o.g.INT:case o.g.UNSIGNED_INT:return 4;case o.g.SHORT:case o.g.UNSIGNED_SHORT:return 2;case o.g.BYTE:case o.g.UNSIGNED_BYTE:return 1}},v=(s,t,e)=>{const n=t/e;if(1===s)switch(n){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===s)switch(n){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===s)switch(n){case 0:return".xyz";case 1:return".yzw"}return""};class g extends y{constructor(t){super(t)}geometryInfo(){return g.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return g.ATTRIBUTES}attributesInfo(){return g.ATTRIBUTES_INFO}}g.ATTRIBUTES=[],g.GEOMETRY_LAYOUT=[new h.G("a_pos",2,o.g.BYTE,0,2)],g.ATTRIBUTES_INFO={};class p extends y{constructor(t){super(t)}geometryInfo(){return p.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return p.ATTRIBUTES}attributesInfo(){return p.ATTRIBUTES_INFO}}p.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"],p.GEOMETRY_LAYOUT=[new h.G("a_pos",2,o.g.SHORT,0,4)],p.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:u.R8_UNSIGNED},"circle-color":{name:"color",type:u.R8G8B8A8_COLOR},"circle-opacity":{name:"opacity",type:u.R8_UNSIGNED,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:u.R8_UNSIGNED,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:u.R8G8B8A8_COLOR},"circle-stroke-opacity":{name:"stroke_opacity",type:u.R8_UNSIGNED,precisionFactor:100},"circle-blur":{name:"blur",type:u.R8_UNSIGNED,precisionFactor:32}};class S extends y{constructor(t){super(t)}geometryInfo(){return S.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return S.ATTRIBUTES}attributesInfo(){return S.ATTRIBUTES_INFO}}S.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"],S.GEOMETRY_LAYOUT=[new h.G("a_pos",2,o.g.SHORT,0,4)],S.ATTRIBUTES_INFO={"fill-color":{name:"color",type:u.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:u.R8_UNSIGNED,precisionFactor:100},"fill-pattern":{name:"tlbr",type:u.R16G16B16A16_PATTERN,isOptional:!0}};class U extends y{constructor(t,e){super(t),this._usefillColor=e}geometryInfo(){return U.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return this._usefillColor?U.ATTRIBUTES_FILL:U.ATTRIBUTES_OUTLINE}attributesInfo(){return this._usefillColor?U.ATTRIBUTES_INFO_FILL:U.ATTRIBUTES_INFO_OUTLINE}}U.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"],U.ATTRIBUTES_FILL=["fill-color","fill-opacity"],U.GEOMETRY_LAYOUT=[new h.G("a_pos",2,o.g.SHORT,0,8),new h.G("a_offset",2,o.g.BYTE,4,8),new h.G("a_xnormal",2,o.g.BYTE,6,8)],U.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:u.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:u.R8_UNSIGNED,precisionFactor:100}},U.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:u.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:u.R8_UNSIGNED,precisionFactor:100}};class K extends y{constructor(t){super(t)}geometryInfo(){return K.GEOMETRY_LAYOUT}opacityInfo(){return null}attributes(){return K.ATTRIBUTES}attributesInfo(){return K.ATTRIBUTES_INFO}}K.ATTRIBUTES=["line-blur","line-color","line-gap-width","line-offset","line-opacity","line-width","line-pattern","line-dasharray"],K.GEOMETRY_LAYOUT=[new h.G("a_pos",2,o.g.SHORT,0,16),new h.G("a_extrude_offset",4,o.g.BYTE,4,16),new h.G("a_dir_normal",4,o.g.BYTE,8,16),new h.G("a_accumulatedDistance",2,o.g.UNSIGNED_SHORT,12,16)],K.ATTRIBUTES_INFO={"line-width":{name:"width",type:u.R8_UNSIGNED,precisionFactor:2},"line-gap-width":{name:"gap_width",type:u.R8_UNSIGNED,precisionFactor:2},"line-offset":{name:"offset",type:u.R8_SIGNED,precisionFactor:2},"line-color":{name:"color",type:u.R8G8B8A8_COLOR},"line-opacity":{name:"opacity",type:u.R8_UNSIGNED,precisionFactor:100},"line-blur":{name:"blur",type:u.R8_UNSIGNED,precisionFactor:4},"line-pattern":{name:"tlbr",type:u.R16G16B16A16_PATTERN,isOptional:!0},"line-dasharray":{name:"tlbr",type:u.R16G16B16A16_DASHARRAY,isOptional:!0}};const wt=[new h.G("a_pos",2,o.g.SHORT,0,16),new h.G("a_vertexOffset",2,o.g.SHORT,4,16),new h.G("a_texAngleRange",4,o.g.UNSIGNED_BYTE,8,16),new h.G("a_levelInfo",4,o.g.UNSIGNED_BYTE,12,16)],Rt=[new h.G("a_opacityInfo",1,o.g.UNSIGNED_BYTE,0,1)];class rt extends y{constructor(t){super(t)}geometryInfo(){return wt}opacityInfo(){return Rt}attributes(){return rt.ATTRIBUTES}attributesInfo(){return rt.ATTRIBUTES_INFO}}rt.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"],rt.ATTRIBUTES_INFO={"icon-color":{name:"color",type:u.R8G8B8A8_COLOR},"icon-opacity":{name:"opacity",type:u.R8_UNSIGNED,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:u.R8G8B8A8_COLOR},"icon-halo-width":{name:"halo_width",type:u.R8_UNSIGNED,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:u.R8_UNSIGNED,precisionFactor:4},"icon-size":{name:"size",type:u.R8_UNSIGNED,precisionFactor:32,isLayout:!0}};class nt extends y{constructor(t){super(t)}geometryInfo(){return wt}opacityInfo(){return Rt}attributes(){return nt.ATTRIBUTES}attributesInfo(){return nt.ATTRIBUTES_INFO}}nt.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"],nt.ATTRIBUTES_INFO={"text-color":{name:"color",type:u.R8G8B8A8_COLOR},"text-opacity":{name:"opacity",type:u.R8_UNSIGNED,precisionFactor:100},"text-halo-color":{name:"halo_color",type:u.R8G8B8A8_COLOR},"text-halo-width":{name:"halo_width",type:u.R8_UNSIGNED,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:u.R8_UNSIGNED,precisionFactor:4},"text-size":{name:"size",type:u.R8_UNSIGNED,isLayout:!0}};var G=L(91558),it=L(78260);function X(s,t,e,n){const i=3*s,a=3*(e-s)-i,d=1-i-a,c=3*t,f=3*(n-t)-c,m=1-c-f;function T(P){return((d*P+a)*P+i)*P}function I(P){return(3*d*P+2*a)*P+i}return function(P,lt=1e-6){return function E(P){return((m*P+f)*P+c)*P}(function x(P,lt){let $,Y,D,N,W,B;for(D=P,B=0;B<8;B++){if(N=T(D)-P,Math.abs(N)Y)return Y;for(;$N?$=D:Y=D,D=.5*(Y-$)+$}return D}(P,lt))}}const Q={};Q.ease=X(.25,.1,.25,1),Q.linear=X(0,0,1,1),Q.easeIn=Q["ease-in"]=X(.42,0,1,1),Q.easeOut=Q["ease-out"]=X(0,0,.58,1),Q.easeInOut=Q["ease-in-out"]=X(.42,0,.58,1);var F=L(86575);const Ot={kind:"null"},A={kind:"number"},V={kind:"string"},C={kind:"boolean"},tt={kind:"color"},dt={kind:"object"},et={kind:"value"};function ct(s,t){return{kind:"array",itemType:s,n:t}}const Yt=[Ot,A,V,C,tt,dt,ct(et)];function st(s){if("array"===s.kind){const t=st(s.itemType);return"number"==typeof s.n?`array<${t}, ${s.n}>`:"value"===s.itemType.kind?"array":`array<${t}>`}return s.kind}function ht(s){if(null===s)return Ot;if("string"==typeof s)return V;if("boolean"==typeof s)return C;if("number"==typeof s)return A;if(s instanceof G.Z)return tt;if(Array.isArray(s)){let t;for(const e of s){const n=ht(e);if(t){if(t!==n){t=et;break}}else t=n}return ct(t||et,s.length)}return"object"==typeof s?dt:et}function It(s,t){if("array"===t.kind)return"array"===s.kind&&(0===s.n&&"value"===s.itemType.kind||It(s.itemType,t.itemType))&&("number"!=typeof t.n||t.n===s.n);if("value"===t.kind)for(const e of Yt)if(It(s,e))return!0;return t.kind===s.kind}function Dt(s){if(null===s)return"";const t=typeof s;return"string"===t?s:"number"===t||"boolean"===t?String(s):s instanceof G.Z?s.toString():JSON.stringify(s)}var pt=L(97938);class Bt{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class gt{constructor(){this.type=et}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new gt}evaluate(t,e){return t?.id}}class xt{constructor(){this.type=V}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new xt}evaluate(t,e){if(!t)return null;switch(t.type){case pt.V.Point:return"Point";case pt.V.LineString:return"LineString";case pt.V.Polygon:return"Polygon";default:return null}}}class Nt{constructor(){this.type=dt}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new Nt}evaluate(t,e){return t?.values}}class ut{constructor(){this.type=A}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new ut}evaluate(t,e){return e}}class M{constructor(t,e,n){this._lhs=t,this._rhs=e,this._compare=n,this.type=C}static parse(t,e,n){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new M(b(t[1],e),b(t[2],e),n)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class mt{constructor(t){this._arg=t,this.type=C}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new mt(b(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class _t{constructor(t){this._args=t,this.type=C}static parse(t,e){const n=[];for(let i=1;i1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${a[0]}"`)}if(t.length%2!=1)throw new Error(`"${i}" expects an even number of arguments`);const d=b(t[2],e,A);let c;"interpolate-hcl"===i||"interpolate-lab"===i?c=tt:n&&"value"!==n.kind&&(c=n);const f=[];for(let m=3;m=T)throw new Error(`"${i}" requires strictly ascending stop inputs`);const E=b(t[m+1],e,c);c||(c=E.type),f.push([T,E])}if(c&&c!==tt&&c!==A&&("array"!==c.kind||c.itemType!==A))throw new Error(`"${i}" cannot interpolate type ${st(c)}`);return new Z(i,c,a,d,f)}evaluate(t,e){const n=this._stops;if(1===n.length)return n[0][1].evaluate(t,e);const i=this.input.evaluate(t,e);if(i<=n[0][0])return n[0][1].evaluate(t,e);if(i>=n[n.length-1][0])return n[n.length-1][1].evaluate(t,e);let a=0;for(;++a(0,F.sX)(E,T[I],f));if("color"===this.type.kind&&m instanceof G.Z&&T instanceof G.Z){const E=new G.Z(m),I=new G.Z(T);return new G.Z([(0,F.sX)(E.r,I.r,f),(0,F.sX)(E.g,I.g,f),(0,F.sX)(E.b,I.b,f),(0,F.sX)(E.a,I.a,f)])}if("number"===this.type.kind&&"number"==typeof m&&"number"==typeof T)return(0,F.sX)(m,T,f);throw new Error(`"${this._operator}" cannot interpolate type ${st(this.type)}`)}if("interpolate-hcl"===this._operator){const E=(0,it.sJ)(m),I=(0,it.sJ)(T),x=I.h-E.h,P=(0,it.xr)({h:E.h+f*(x>180||x<-180?x-360*Math.round(x/360):x),c:(0,F.sX)(E.c,I.c,f),l:(0,F.sX)(E.l,I.l,f)});return new G.Z({a:(0,F.sX)(m.a,T.a,f),...P})}if("interpolate-lab"===this._operator){const E=(0,it.Y3)(m),I=(0,it.Y3)(T),x=(0,it.xr)({l:(0,F.sX)(E.l,I.l,f),a:(0,F.sX)(E.a,I.a,f),b:(0,F.sX)(E.b,I.b,f)});return new G.Z({a:(0,F.sX)(m.a,T.a,f),...x})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const n=this._stops;if(1===n.length||t>=n[n.length-1][0])return 0;let i=0;for(;++i=n)return[n,n];let i=0;for(;++i1&&(a=1),a}static _exponentialInterpolationRatio(t,e,n,i){const a=i-n;if(0===a)return 0;const d=t-n;return 1===e?d/a:(e**d-1)/(e**a-1)}}class Tt{constructor(t,e,n){this.type=t,this._input=e,this._stops=n}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const n=b(t[1],e,A);let i;const a=[];a.push([-1/0,b(t[2],e)]);for(let d=3;d=c)throw new Error('"step" requires strictly ascending stop inputs');const f=b(t[d+1],e);i||(i=f.type),a.push([c,f])}return new Tt(i,n,a)}evaluate(t,e){const n=this._stops;if(1===n.length)return n[0][1].evaluate(t,e);const i=this._input.evaluate(t,e);let a=0;for(;++a=i.length)throw new Error('"at" index out of bounds');if(n!==Math.floor(n))throw new Error('"at" index must be an integer');return i[n]}}class Mt{constructor(t,e){this._key=t,this._obj=e,this.type=et}static parse(t,e){let n,i;switch(t.length){case 2:return n=b(t[1],e),new Mt(n);case 3:return n=b(t[1],e),i=b(t[2],e),new Mt(n,i);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const n=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[n]:t?.values[n]}}class Ft{constructor(t,e){this._key=t,this._obj=e,this.type=C}static parse(t,e){let n,i;switch(t.length){case 2:return n=b(t[1],e),new Ft(n);case 3:return n=b(t[1],e),i=b(t[2],e),new Ft(n,i);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const n=this._key.evaluate(t,e);return this._obj?n in this._obj.evaluate(t,e):!!t?.values[n]}}class Xt{constructor(t,e){this._key=t,this._vals=e,this.type=C}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new Xt(b(t[1],e),b(t[2],e))}evaluate(t,e){const n=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(n)}}class zt{constructor(t,e,n){this._item=t,this._array=e,this._from=n,this.type=A}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const n=b(t[1],e),i=b(t[2],e);if(4===t.length){const a=b(t[3],e,A);return new zt(n,i,a)}return new zt(n,i)}evaluate(t,e){const n=this._item.evaluate(t,e),i=this._array.evaluate(t,e);if(this._from){const a=this._from.evaluate(t,e);if(a!==Math.floor(a))throw new Error('"index-of" index must be an integer');return i.indexOf(n,a)}return i.indexOf(n)}}class qt{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const n=b(t[1],e);return new qt(n)}evaluate(t,e){const n=this._arg.evaluate(t,e);if("string"==typeof n||Array.isArray(n))return n.length;throw new Error('"length" expects string or array')}}class Vt{constructor(t,e,n,i){this.type=t,this._array=e,this._from=n,this._to=i}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const n=b(t[1],e),i=b(t[2],e,A);if(i.type!==A)throw new Error('"slice" index must return a number');if(4===t.length){const a=b(t[3],e,A);if(a.type!==A)throw new Error('"slice" index must return a number');return new Vt(n.type,n,i,a)}return new Vt(n.type,n,i)}evaluate(t,e){const n=this._array.evaluate(t,e);if(!Array.isArray(n)&&"string"!=typeof n)throw new Error('"slice" input must be an array or a string');const i=this._from.evaluate(t,e);if(i<0||i>=n.length)throw new Error('"slice" index out of bounds');if(i!==Math.floor(i))throw new Error('"slice" index must be an integer');if(this._to){const a=this._to.evaluate(t,e);if(a<0||a>=n.length)throw new Error('"slice" index out of bounds');if(a!==Math.floor(a))throw new Error('"slice" index must be an integer');return n.slice(i,a)}return n.slice(i)}}class Jt{constructor(){this.type=C}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new Jt}evaluate(t,e){return t&&void 0!==t.id}}class H{constructor(t,e){this._args=t,this._calculate=e,this.type=A}static parse(t,e,n){const i=t.slice(1).map(a=>b(a,e));return new H(i,n)}evaluate(t,e){let n;return this._args&&(n=this._args.map(i=>i.evaluate(t,e))),this._calculate(n)}}let z=(()=>{class s{constructor(e,n){this._args=e,this._calculate=n,this.type=A}static parse(e,n){const i=e.slice(1).map(a=>b(a,n));return new s(i,s.ops[e[0]])}evaluate(e,n){let i;return this._args&&(i=this._args.map(a=>a.evaluate(e,n))),this._calculate(i)}}return s.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])},s})();class ie{constructor(t){this._args=t,this.type=V}static parse(t,e){return new ie(t.slice(1).map(n=>b(n,e)))}evaluate(t,e){return this._args.map(n=>n.evaluate(t,e)).join("")}}let pe=(()=>{class s{constructor(e,n){this._arg=e,this._calculate=n,this.type=V}static parse(e,n){if(2!==e.length)throw new Error(`${e[0]} expects 1 argument`);const i=b(e[1],n);return new s(i,s.ops[e[0]])}evaluate(e,n){return this._calculate(this._arg.evaluate(e,n))}}return s.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()},s})();class ae{constructor(t){this._args=t,this.type=tt}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const n=t.slice(1).map(i=>b(i,e));return new ae(n)}evaluate(t,e){const n=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e));return new G.Z({r:n,g:i,b:a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class oe{constructor(t){this._args=t,this.type=tt}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const n=t.slice(1).map(i=>b(i,e));return new oe(n)}evaluate(t,e){const n=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e)),d=this._validateAlpha(this._args[3].evaluate(t,e));return new G.Z({r:n,g:i,b:a,a:d})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class se{constructor(t){this._color=t,this.type=ct(A,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const n=b(t[1],e);return new se(n)}evaluate(t,e){return new G.Z(this._color.evaluate(t,e)).toRgba()}}class Pt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const n=t[0];if(t.length<2)throw new Error(`${n} expects at least one argument`);let i,a=1;if("array"===n){if(t.length>2){switch(t[1]){case"string":i=V;break;case"number":i=A;break;case"boolean":i=C;break;default:throw new Error('"array" type argument must be string, number or boolean')}a++}else i=et;let c;if(t.length>3){if(c=t[2],null!==c&&("number"!=typeof c||c<0||c!==Math.floor(c)))throw new Error('"array" length argument must be a positive integer literal');a++}i=ct(i,c)}else switch(n){case"string":i=V;break;case"number":i=A;break;case"boolean":i=C;break;case"object":i=dt}const d=[];for(;a{class s{constructor(e,n){this.type=e,this._args=n}static parse(e,n){const i=e[0],a=s.types[i];if(a===C||a===V){if(2!==e.length)throw new Error(`${i} expects one argument`)}else if(e.length<2)throw new Error(`${i} expects at least one argument`);const d=[];for(let c=1;cn!==i)}},"<":class Wt extends M{static parse(t,e){return M.parse(t,e,(n,i)=>nn<=i)}},"==":class Ut extends M{static parse(t,e){return M.parse(t,e,(n,i)=>n===i)}},">":class Zt extends M{static parse(t,e){return M.parse(t,e,(n,i)=>n>i)}},">=":class kt extends M{static parse(t,e){return M.parse(t,e,(n,i)=>n>=i)}},all:_t,any:St,case:yt,coalesce:Et,match:bt,within:null,interpolate:Z,"interpolate-hcl":Z,"interpolate-lab":Z,step:Tt,let:r,var:jt,concat:ie,downcase:pe,"is-supported-script":null,"resolved-locale":null,upcase:pe,rgb:ae,rgba:oe,"to-rgba":se,"-":class ce extends H{static parse(t,e){switch(t.length){case 2:return H.parse(t,e,n=>-n[0]);case 3:return H.parse(t,e,n=>n[0]-n[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class he extends H{static parse(t,e){return H.parse(t,e,n=>{let i=1;for(const a of n)i*=a;return i})}},"/":class de extends H{static parse(t,e){if(3===t.length)return H.parse(t,e,n=>n[0]/n[1]);throw new Error('"/" expects 2 arguments')}},"%":class ge extends H{static parse(t,e){if(3===t.length)return H.parse(t,e,n=>n[0]%n[1]);throw new Error('"%" expects 2 arguments')}},"^":class me extends H{static parse(t,e){if(3===t.length)return H.parse(t,e,n=>n[0]**n[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class _e extends H{static parse(t,e){return H.parse(t,e,n=>{let i=0;for(const a of n)i+=a;return i})}},abs:z,acos:z,asin:z,atan:z,ceil:z,cos:z,e:z,floor:z,ln:z,ln2:z,log10:z,log2:z,max:z,min:z,pi:z,round:z,sin:z,sqrt:z,tan:z,zoom:ut,"heatmap-density":null,"has-id":Jt,none:ft};class q{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(n){return console.log(n.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=b(t,null,C);return new q(e)}catch(e){return console.log(e.message),null}}static isLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e":case"<":case">=":case"<=":return q.convertComparison(e,t[1],t[2]);case"in":return q.convertIn(t[1],t.slice(2));case"!in":return q.negate(q.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return q.convertCombining(e,t.slice(1));case"has":return q.convertHas(t[1]);case"!has":return q.negate(q.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,n){switch(e){case"$type":return[t,["geometry-type"],n];case"$id":return[t,["id"],n];default:return[t,["get",e],n]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}var k=L(1268);class ne{constructor(t,e){let n;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":n=!0;break;case"array":n="number"===t.value;break;default:n=!1}if(null==e&&(e=t.default),Array.isArray(e)&&e.length>0&&fe[e[0]]){const a={number:A,color:tt,string:V,boolean:C,enum:V};try{const c=b(e,null,"array"===t.type?ct(a[t.value]||et,t.length):a[t.type]);this.getValue=this._buildExpression(c,t),this.isDataDriven=!0,c instanceof Z&&c.input instanceof ut&&(this.interpolator=c)}catch(d){console.log(d.message),this.getValue=this._buildSimple(t.default)}return}n&&"interval"===e.type&&(n=!1);const i=e&&e.stops&&e.stops.length>0;if(i)for(const a of e.stops)a[1]=this._validate(a[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),i)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=n?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else i?this.getValue=n?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(te.maximum)return e.maximum}else"color"===e.type?t=ne._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(n=>"string"==typeof n?e.values.indexOf(n):n):"string"===e.type&&(t=Dt(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(n,i)=>{try{const a=t.evaluate(i,n);return void 0===a?e.default:this._validate(a,e)}catch(a){return console.log(a.message),e.default}}}_buildIdentity(t,e){return(n,i)=>{let a;return i&&(a=i.values[t.property]),void 0!==a&&(a=this._validate(a,e)),a??(void 0!==t.default?t.default:e.default)}}_buildCategorical(t,e){return(n,i)=>{let a;return i&&(a=i.values[t.property]),a=this._categorical(a,t.stops),void 0!==a?a:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(n,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interval(a,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(n,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interpolate(a,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const n=e.length;for(let i=0;i{L.d(J,{Z:()=>w});var R=L(1268),O=L(13295);class w{constructor(l){if(this._style=l,this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,l.layers||(l.layers=[]),this.version=parseFloat(l.version),this.layers=l.layers.map((o,h,y)=>this._create(o,h,y)).filter(o=>!!o),this.layers){let o;for(let h=0;h=this.layers.length?null:this.layers[l].id}getStyleLayerByUID(l){return this._uidToLayer.get(l)??null}getStyleLayerIndex(l){const o=this._layerByName[l];return o?this.layers.indexOf(o):-1}setStyleLayer(l,o){if(!l||!l.id)return;const h=this._style;null!=o&&o>=this.layers.length&&(o=this.layers.length-1);let y,_=!0;const v=this._layerByName[l.id];if(v){const g=this.layers.indexOf(v);o||(o=g),o===g?(_=!1,y=w._recreateLayer(l,v),this.layers[o]=y,h.layers[o]=l):(this.layers.splice(g,1),h.layers.splice(g,1),y=this._create(l,o,this.layers),this.layers.splice(o,0,y),h.layers.splice(o,0,l))}else y=this._create(l,o,this.layers),!o||o>=this.layers.length?(this.layers.push(y),h.layers.push(l)):(this.layers.splice(o,0,y),h.layers.splice(o,0,l));this._layerByName[l.id]=y,this._uidToLayer.set(y.uid,y),_&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(l){const o=this._layerByName[l];return o?{type:o.typeName,id:o.id,source:o.source,"source-layer":o.sourceLayer,minzoom:o.minzoom,maxzoom:o.maxzoom,filter:o.filter,layout:o.layout,paint:o.paint}:null}deleteStyleLayer(l){const o=this._layerByName[l];if(o){delete this._layerByName[l],this._uidToLayer.delete(o.uid);const h=this.layers.indexOf(o);this.layers.splice(h,1),this._style.layers.splice(h,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(l){return this._layerByName[l]}getLayoutProperties(l){const o=this._layerByName[l];return o?o.layout:null}getPaintProperties(l){const o=this._layerByName[l];return o?o.paint:null}setPaintProperties(l,o){const h=this._layerByName[l];if(!h)return;const _=w._recreateLayer({type:h.typeName,id:h.id,source:h.source,"source-layer":h.sourceLayer,minzoom:h.minzoom,maxzoom:h.maxzoom,filter:h.filter,layout:h.layout,paint:o},h),v=this.layers.indexOf(h);this.layers[v]=_,this._style.layers[v].paint=o,this._layerByName[h.id]=_,this._uidToLayer.set(h.uid,_)}setLayoutProperties(l,o){const h=this._layerByName[l];if(!h)return;const _=w._recreateLayer({type:h.typeName,id:h.id,source:h.source,"source-layer":h.sourceLayer,minzoom:h.minzoom,maxzoom:h.maxzoom,filter:h.filter,layout:o,paint:h.paint},h),v=this.layers.indexOf(h);this.layers[v]=_,this._style.layers[v].layout=o,this._layerByName[h.id]=_,this._uidToLayer.set(h.uid,_)}setStyleLayerVisibility(l,o){const h=this._layerByName[l];if(!h)return;const y=h.layout||{};y.visibility=o;const v=w._recreateLayer({type:h.typeName,id:h.id,source:h.source,"source-layer":h.sourceLayer,minzoom:h.minzoom,maxzoom:h.maxzoom,filter:h.filter,layout:y,paint:h.paint},h),g=this.layers.indexOf(h);this.layers[g]=v,this._style.layers[g].layout=y,this._layerByName[h.id]=v,this._uidToLayer.set(h.uid,v)}getStyleLayerVisibility(l){const o=this._layerByName[l];return o?o.layout?.visibility??"visible":"none"}_recomputeZValues(){const l=this.layers,o=1/(l.length+1);for(let h=0;h_.keyv.key?1:0);const y=l.length;for(let _=0;_{L.d(J,{E:()=>R,V:()=>O});class R{constructor(u,l){this.x=u,this.y=l}clone(){return new R(this.x,this.y)}equals(u,l){return u===this.x&&l===this.y}isEqual(u){return u.x===this.x&&u.y===this.y}setCoords(u,l){this.x=u,this.y=l}normalize(){const u=this.x,l=this.y,o=Math.sqrt(u*u+l*l);this.x/=o,this.y/=o}rightPerpendicular(){const u=this.x;this.x=this.y,this.y=-u}move(u,l){this.x+=u,this.y+=l}assign(u){this.x=u.x,this.y=u.y}assignAdd(u,l){this.x=u.x+l.x,this.y=u.y+l.y}assignSub(u,l){this.x=u.x-l.x,this.y=u.y-l.y}rotate(u,l){const o=this.x,h=this.y;this.x=o*u-h*l,this.y=o*l+h*u}scale(u){this.x*=u,this.y*=u}length(){const u=this.x,l=this.y;return Math.sqrt(u*u+l*l)}static distance(u,l){const o=l.x-u.x,h=l.y-u.y;return Math.sqrt(o*o+h*h)}static add(u,l){return new R(u.x+l.x,u.y+l.y)}static sub(u,l){return new R(u.x-l.x,u.y-l.y)}}var O,w;(w=O||(O={}))[w.Unknown=0]="Unknown",w[w.Point=1]="Point",w[w.LineString=2]="LineString",w[w.Polygon=3]="Polygon"},39351:(Lt,J,L)=>{L.d(J,{AI:()=>w,C1:()=>r,CQ:()=>Kt,CU:()=>mt,Ex:()=>it,I_:()=>o,Ip:()=>Et,Iv:()=>zt,Iw:()=>X,MI:()=>Tt,SD:()=>Vt,Tz:()=>Mt,Uh:()=>jt,V4:()=>kt,XJ:()=>yt,_6:()=>qt,a:()=>_t,aK:()=>gt,e0:()=>Xt,fL:()=>ft,jk:()=>Jt,m4:()=>ut,oK:()=>Ft,pU:()=>Bt,ru:()=>l,tQ:()=>Ct,uG:()=>M,xl:()=>pt,xm:()=>S});const w=1e-30,l=4294967295,o=512,S=29,it=24,X=8,pt=1,Bt=2,gt=3,ut=2,M=1,Ct=1.05,kt=5,mt=6,_t=1.15,ft=2,yt=8,Et=500,Tt=10,r=1024,jt=2,Kt=0,Mt=1,Ft=4,Xt=8,zt=16,qt=4,Vt=1,Jt=4}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8372.b7278a21a2ac10d1.js b/apps/n/porrtal-io-app/public/angular/8372.b7278a21a2ac10d1.js deleted file mode 100644 index e6c8c4eb..00000000 --- a/apps/n/porrtal-io-app/public/angular/8372.b7278a21a2ac10d1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8372],{95058:(p,d,t)=>{t.r(d),t.d(d,{r:()=>f});var m,h,a,s=t(1719),i={exports:{}};m=i,void 0!==(a=i.exports,Object.defineProperty(a,"__esModule",{value:!0}),h=void(a.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"d.Hr.",_era_bc:"\xee.Hr.",A:"a.m.",P:"p.m.",AM:"a.m.",PM:"p.m.","A.M.":"a.m.","P.M.":"p.m.",January:"ianuarie",February:"februarie",March:"martie",April:"aprilie",May:"mai",June:"iunie",July:"iulie",August:"august",September:"septembrie",October:"octombrie",November:"noiembrie",December:"decembrie",Jan:"ian.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"mai",Jun:"iun.",Jul:"iul.",Aug:"aug.",Sep:"sept.",Oct:"oct.",Nov:"nov.",Dec:"dec.",Sunday:"duminic\u0103",Monday:"luni",Tuesday:"mar\u021bi",Wednesday:"miercuri",Thursday:"joi",Friday:"vineri",Saturday:"s\xe2mb\u0103t\u0103",Sun:"dum.",Mon:"lun.",Tue:"mar.",Wed:"mie.",Thu:"joi",Fri:"vin.",Sat:"s\xe2m.",_dateOrd:function(r){var e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Zoom",Play:"Redare",Stop:"Oprire",Legend:"Legend\u0103","Click, tap or press ENTER to toggle":"",Loading:"Se \xeencarc\u0103",Home:"Pagina principal\u0103",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Imprimare",Image:"Imagine",Data:"Date",Print:"Imprimare","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Din %1 la %2","From %1":"Din %1","To %1":"La %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(m.exports=h);const f=function c(_,a){for(var r=0;re[o]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,s.g)(i.exports)},[i.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8460.aa0e68d3732243f9.js b/apps/n/porrtal-io-app/public/angular/8460.aa0e68d3732243f9.js deleted file mode 100644 index 6bee9915..00000000 --- a/apps/n/porrtal-io-app/public/angular/8460.aa0e68d3732243f9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8460],{97938:(li,zt,L)=>{L.d(zt,{E:()=>F,V:()=>J});class F{constructor(E,k){this.x=E,this.y=k}clone(){return new F(this.x,this.y)}equals(E,k){return E===this.x&&k===this.y}isEqual(E){return E.x===this.x&&E.y===this.y}setCoords(E,k){this.x=E,this.y=k}normalize(){const E=this.x,k=this.y,H=Math.sqrt(E*E+k*k);this.x/=H,this.y/=H}rightPerpendicular(){const E=this.x;this.x=this.y,this.y=-E}move(E,k){this.x+=E,this.y+=k}assign(E){this.x=E.x,this.y=E.y}assignAdd(E,k){this.x=E.x+k.x,this.y=E.y+k.y}assignSub(E,k){this.x=E.x-k.x,this.y=E.y-k.y}rotate(E,k){const H=this.x,W=this.y;this.x=H*E-W*k,this.y=H*k+W*E}scale(E){this.x*=E,this.y*=E}length(){const E=this.x,k=this.y;return Math.sqrt(E*E+k*k)}static distance(E,k){const H=k.x-E.x,W=k.y-E.y;return Math.sqrt(H*H+W*W)}static add(E,k){return new F(E.x+k.x,E.y+k.y)}static sub(E,k){return new F(E.x-k.x,E.y-k.y)}}var J,z;(z=J||(J={}))[z.Unknown=0]="Unknown",z[z.Point=1]="Point",z[z.LineString=2]="LineString",z[z.Polygon=3]="Polygon"},18716:(li,zt,L)=>{L.d(zt,{CA:()=>hi,Gq:()=>gt,Xp:()=>ot,a:()=>Ut,dk:()=>q,hF:()=>ce,jj:()=>ci,jy:()=>At,m2:()=>rt,mE:()=>Rt,qr:()=>Bt});var F=L(26584),J=L(40028),z=L(39406);const Vt=Object.keys(z.mD).filter(U=>"number"==typeof z.mD[U]).reduce((U,M)=>({...U,[M]:z.mD[M]}),{});function At(U){return U===z.mD.OUTLINE_FILL||U===z.mD.OUTLINE_FILL_SIMPLE}function ot(U){return function xt(U){return U===z.mD.SIMPLE||U===z.mD.OUTLINE_FILL_SIMPLE}(U.symbologyType)}function hi(U){return At(U.symbologyType)}function ci(U,M){switch(U){case z.LW.FILL:return q.from(M);case z.LW.LINE:return Ut.from(M);case z.LW.MARKER:return Rt.from(M);case z.LW.TEXT:return Bt.from(M);case z.LW.LABEL:return gt.from(M);default:throw new Error(`Unable to createMaterialKey for unknown geometryType ${U}`)}}function ce(U){switch(rt.load(U).geometryType){case z.LW.MARKER:return new Rt(U);case z.LW.FILL:return new q(U);case z.LW.LINE:return new Ut(U);case z.LW.TEXT:return new Bt(U);case z.LW.LABEL:return new gt(U)}}class rt{constructor(M){this._data=0,this._data=M}static load(M){const b=this.shared;return b.data=M,b}set data(M){this._data=M}get data(){return this._data}get geometryType(){return this.bits(8,11)}set geometryType(M){this.setBits(M,8,11)}get mapAligned(){return!!this.bit(20)}set mapAligned(M){this.setBit(20,M)}get sdf(){return!!this.bit(11)}set sdf(M){this.setBit(11,M)}get pattern(){return!!this.bit(12)}set pattern(M){this.setBit(12,M)}get textureBinding(){return this.bits(0,8)}set textureBinding(M){this.setBits(M,0,8)}get symbologyType(){return this.bits(21,26)}set symbologyType(M){this.setBits(M,21,26)}get geometryTypeString(){switch(this.geometryType){case z.LW.FILL:return"fill";case z.LW.MARKER:return"marker";case z.LW.LINE:return"line";case z.LW.TEXT:return"text";case z.LW.LABEL:return"label";default:throw new F.Z(`Unable to handle unknown geometryType: ${this.geometryType}`)}}setBit(M,b){const G=1<>M}setBits(M,b,G){for(let K=b,Ot=0;Kclass extends U{get vvSizeMinMaxValue(){return 0!==this.bit(16)}set vvSizeMinMaxValue(M){this.setBit(16,M)}get vvSizeScaleStops(){return 0!==this.bit(17)}set vvSizeScaleStops(M){this.setBit(17,M)}get vvSizeFieldStops(){return 0!==this.bit(18)}set vvSizeFieldStops(M){this.setBit(18,M)}get vvSizeUnitValue(){return 0!==this.bit(19)}set vvSizeUnitValue(M){this.setBit(19,M)}hasVV(){return super.hasVV()||this.vvSizeMinMaxValue||this.vvSizeScaleStops||this.vvSizeFieldStops||this.vvSizeUnitValue}setVV(M,b){super.setVV(M,b);const G=function E(U,M,b){const G=z.X.SIZE_FIELD_STOPS|z.X.SIZE_MINMAX_VALUE|z.X.SIZE_SCALE_STOPS|z.X.SIZE_UNIT_VALUE,K=(M&(z.mf.FIELD_TARGETS_OUTLINE|z.mf.MINMAX_TARGETS_OUTLINE|z.mf.SCALE_TARGETS_OUTLINE|z.mf.UNIT_TARGETS_OUTLINE))>>>4;return U===z.LW.LINE&&b.isOutline||U===z.LW.FILL&&At(b.symbologyType)?G&K:G&~K}(this.geometryType,M,b)&M;this.vvSizeMinMaxValue=!!(G&z.X.SIZE_MINMAX_VALUE),this.vvSizeFieldStops=!!(G&z.X.SIZE_FIELD_STOPS),this.vvSizeUnitValue=!!(G&z.X.SIZE_UNIT_VALUE),this.vvSizeScaleStops=!!(G&z.X.SIZE_SCALE_STOPS)}},Lt=U=>class extends U{get vvRotation(){return 0!==this.bit(15)}set vvRotation(M){this.setBit(15,M)}hasVV(){return super.hasVV()||this.vvRotation}setVV(M,b){super.setVV(M,b),this.vvRotation=!b.isOutline&&!!(M&z.X.ROTATION)}},nt=U=>class extends U{get vvColor(){return 0!==this.bit(13)}set vvColor(M){this.setBit(13,M)}hasVV(){return super.hasVV()||this.vvColor}setVV(M,b){super.setVV(M,b),this.vvColor=!b.isOutline&&!!(M&z.X.COLOR)}},bt=U=>class extends U{get vvOpacity(){return 0!==this.bit(14)}set vvOpacity(M){this.setBit(14,M)}hasVV(){return super.hasVV()||this.vvOpacity}setVV(M,b){super.setVV(M,b),this.vvOpacity=!b.isOutline&&!!(M&z.X.OPACITY)}};class q extends(nt(bt(ft(rt)))){static load(M){const b=this.shared;return b.data=M,b}static from(M){const{symbologyType:b,vvFlags:G}=M,K=this.load(0);return K.geometryType=z.LW.FILL,K.symbologyType=b,b!==z.mD.DOT_DENSITY&&K.setVV(G,M),K.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvOpacity:this.vvOpacity,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}q.shared=new q(0);class Rt extends(nt(bt(Lt(ft(rt))))){static load(M){const b=this.shared;return b.data=M,b}static from(M){const{symbologyType:b,vvFlags:G}=M,K=this.load(0);return K.geometryType=z.LW.MARKER,K.symbologyType=b,b!==z.mD.HEATMAP&&K.setVV(G,M),K.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvRotation:this.vvRotation,vvOpacity:this.vvOpacity,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}Rt.shared=new Rt(0);class Ut extends(nt(bt(ft(rt)))){static load(M){const b=this.shared;return b.data=M,b}static from(M){const b=this.load(0);return b.geometryType=z.LW.LINE,b.symbologyType=M.symbologyType,b.setVV(M.vvFlags,M),b.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvOpacity:this.vvOpacity,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}Ut.shared=new Ut(0);class Bt extends(nt(bt(Lt(ft(rt))))){static load(M){const b=this.shared;return b.data=M,b}static from(M){const b=this.load(0);return b.geometryType=z.LW.TEXT,b.symbologyType=M.symbologyType,b.setVV(M.vvFlags,M),b.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvOpacity:this.vvOpacity,vvRotation:this.vvRotation,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}Bt.shared=new Bt(0);class gt extends(ft(rt)){static load(M){const b=this.shared;return b.data=M,b}static from(M){const b=this.load(0);return b.geometryType=z.LW.LABEL,b.symbologyType=M.symbologyType,b.setVV(M.vvFlags,M),b.mapAligned=(0,J.NS)(M.placement),b.data}getVariation(){return{...super.getVariation(),vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}gt.shared=new gt(0)},28460:(li,zt,L)=>{L.r(zt),L.d(zt,{default:()=>Sr});var F=L(15861),J=L(17626),z=L(986),E=L(26584),H=(L(8314),L(63290)),W=L(62208),Y=L(10699),Wt=(L(90912),L(85931),L(76898)),Ct=L(84682),le=L(65234),Et=L(99666),O=L(39406),Qt=L(14517),$=L(77712),it=L(67831),$t=L(71251);const Ft=new Set,Vt=[],xt=new Map,At=[0,0];let ot=class extends Qt.Z{constructor(l){super(l),this._keyToItem=new Map,this.concurrency=6,this.strategy="scale-first",this.tileInfoView=null}initialize(){const{concurrency:l,process:r}=this;this._queue=new $t.e({concurrency:l,process:(n,o)=>{const a=this._keyToItem.get(n);return r(a,{signal:o})},peeker:n=>n.values().next().value})}destroy(){this.clear(),this._queue=(0,W.SC)(this._queue)}get length(){return this._queue?this._queue.length:0}get onGoingCount(){return this._keyToItem.size}get updating(){return this.length>0||this.onGoingCount>0}abort(l){this._queue.abort("string"==typeof l?l:l.id)}clear(){this._queue.clear(),this._keyToItem.clear(),this.notifyChange("updating")}has(l){return this._keyToItem.has("string"==typeof l?l:l.id)}isOngoing(l){const r="string"==typeof l?l:l.id;return this.has(r)&&this._queue.isOngoing(r)}pause(){this._queue.pause()}push(l,r){const n=l.key.id+"-"+r;if(this.has(n))return this.get(n);const o=this._queue.push(n),a=()=>{this._keyToItem.delete(n),this.notifyChange("updating")};return this._keyToItem.set(n,l),o.then(a,a),this.notifyChange("updating"),o}reset(){this._queue.reset(),this.notifyChange("updating")}resume(){this._queue.resume()}_peekByScaleFirst(l){if(!this.state)return l.values().next().value;const r=this.tileInfoView;let n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;l.forEach(d=>{const m=this._keyToItem.get(d),_=this.tileInfoView.getTileScale(m.key);xt.has(_)||(xt.set(_,[]),n=Math.max(_,n),o=Math.min(_,o)),xt.get(_).push(m.key),Ft.add(_)});let a=this.state.scale;xt.has(a)||(function he(l,r){l.length=0,r.forEach(n=>l.push(n))}(Vt,Ft),Vt.sort((d,m)=>d-m),a=Vt.reduce((d,m)=>Math.abs(m-a){const _=c.denormalizeCol(d.col,d.world),p=c.denormalizeCol(m.col,m.world);return Math.sqrt((u-_)*(u-_)+(f-d.row)*(f-d.row))-Math.sqrt((u-p)*(u-p)+(f-m.row)*(f-m.row))}),Ft.clear(),xt.clear(),h[0].id}_peekByCenterFirst(l){if(!this.state)return l.values().next().value;const r=this.tileInfoView,n=this.state.center;let o,a=Number.POSITIVE_INFINITY;return l.forEach(h=>{const c=this._keyToItem.get(h);r.getTileCoords(At,c.key);const u=(0,it.d)(At,n);u{const h=this._keyToItem.get(o);return r(h,{signal:a})},peeker:"scale-first"===n?o=>this._peekByScaleFirst(o):o=>this._peekByCenterFirst(o)})}destroy(){this.clear(),this._queue=(0,W.SC)(this._queue)}get length(){return this._queue?this._queue.length:0}get onGoingCount(){return this._keyToItem.size}get updating(){return this.length>0||this.onGoingCount>0}abort(l){this._queue.abort("string"==typeof l?l:l.id)}clear(){this._queue.clear(),this._keyToItem.clear(),this.notifyChange("updating")}has(l){return this._keyToItem.has("string"==typeof l?l:l.id)}isOngoing(l){const r="string"==typeof l?l:l.id;return this.has(r)&&this._queue.isOngoing(r)}pause(){this._queue.pause()}push(l){const r=l.key.id;if(this._queue.has(r))return this._queue.get(r);const n=this._queue.push(r),o=()=>{this._keyToItem.delete(r),this.notifyChange("updating")};return this._keyToItem.set(r,l),n.then(o,o),this.notifyChange("updating"),n}reset(){this._queue.reset()}resume(){this._queue.resume()}_peekByScaleFirst(l){if(!this.state)return l.values().next().value;const r=this.tileInfoView;let n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;l.forEach(d=>{const m=this._keyToItem.get(d),_=this.tileInfoView.getTileScale(m.key);nt.has(_)||(nt.set(_,[]),n=Math.max(_,n),o=Math.min(_,o)),nt.get(_).push(m.key),ft.add(_)});let a=this.state.scale;nt.has(a)||(function rt(l,r){l.length=0,r.forEach(n=>l.push(n))}(Lt,ft),Lt.sort((d,m)=>d-m),a=Lt.reduce((d,m)=>Math.abs(m-a){const _=c.denormalizeCol(d.col,d.world),p=c.denormalizeCol(m.col,m.world);return Math.sqrt((u-_)*(u-_)+(f-d.row)*(f-d.row))-Math.sqrt((u-p)*(u-p)+(f-m.row)*(f-m.row))}),ft.clear(),nt.clear(),h[0].id}_peekByCenterFirst(l){if(!this.state)return l.values().next().value;const r=this.tileInfoView,n=this.state.center;let o,a=Number.POSITIVE_INFINITY;return l.forEach(h=>{const c=this._keyToItem.get(h);r.getTileCoords(bt,c.key);const u=(0,it.d)(bt,n);u=this._buffer.length){const n=this._roundToNearest(1.25*(this._array.byteLength+r*this._buffer.BYTES_PER_ELEMENT),this._buffer.BYTES_PER_ELEMENT),o=new ArrayBuffer(n),a=new this._ctor(o);a.set(this._buffer,0),this._array=o,this._buffer=a,this._i16View=new Int16Array(this._array)}}ensureSize(r){this._ensureSize(r)}writeF32(r){this._ensureSize(1);const n=this._pos;return new Float32Array(this._array,4*this._pos,1)[0]=r,this._pos++,n}push(r){this._ensureSize(1);const n=this._pos;return this._buffer[this._pos++]=r,n}writeFixed(r){this._buffer[this._pos++]=r}setValue(r,n){this._buffer[r]=n}i1616Add(r,n,o){this._i16View[2*r]+=n,this._i16View[2*r+1]+=o}getValue(r){return this._buffer[r]}incr(r){if(this._buffer.length{const h=1<=I.I_-o?41:189)|(n<0+a?224:n>=I.I_-a?7:231))}_getVertexWriter(r){if(!this._data.self.has(r)){const n=this._data.self,o=(0,qt.$_)(r,this._symbologyType).geometry;n.set(r,new ui(r,o,this.hint.records))}return this._data.self.get(r)}}var xi=L(58774),gi=L(21286),P=L(23841),j=L(7547),dt=L(40028),Z=L(81295),w=L(5254),D=L(18716);const lt=100;function vi(l,r,n){return l[0]=r[0]-n[0],l[1]=r[1]-n[1],l}function Mi(l,r){return Math.sqrt(l*l+r*r)}function Si(l){const r=Mi(l[0],l[1]);l[0]/=r,l[1]/=r}function is(l,r){return Mi(l[0]-r[0],l[1]-r[1])}function B(l){return"function"==typeof l}function Ee(l=2){return 1/Math.max(l,1)}function vt(l,r){return[!!l.minScale&&r.scaleToZoom(l.minScale)||0,!!l.maxScale&&r.scaleToZoom(l.maxScale)||lt]}function Ti(l){return l.length-1}function rs(l,r,n=1){const[o,a]=function ss(l,r){return l[r+1]}(l,r);return Math.sqrt(o*o+a*a)*n}class te{constructor(r,n,o,a,h){this._segments=r,this._index=n,this._distance=o,this._xStart=a,this._yStart=h,this._done=!1}static create(r){return new te(r,0,0,r[0][0],r[0][1])}clone(){return new te(this._segments,this._index,this._distance,this.xStart,this.yStart)}equals(r){return this._index===r._index||r._index===this._index-1&&(0===this._distance||1===r._distance)||r._index===this._index+1&&(1===this._distance||0===r._distance)}leq(r){return this._indexr._index||this._index===r._index&&this._distance>=r._distance}get _segment(){return this._segments[this._index+1]}get angle(){const r=this.dy;let o=Math.acos((0*r+-1*-this.dx)/(1*this.length));return r>0&&(o=2*Math.PI-o),o}get xStart(){return this._xStart}get yStart(){return this._yStart}get x(){return this.xStart+this.distance*this.dx}get y(){return this.yStart+this.distance*this.dy}get dx(){return this._segment[0]}get dy(){return this._segment[1]}get xMidpoint(){return this.xStart+.5*this.dx}get yMidpoint(){return this.yStart+.5*this.dy}get xEnd(){return this.xStart+this.dx}get yEnd(){return this.yStart+this.dy}get length(){const{dx:r,dy:n}=this;return Math.sqrt(r*r+n*n)}get remainingLength(){return this.length*(1-this._distance)}get backwardLength(){return this.length*this._distance}get distance(){return this._distance}get done(){return this._done}hasPrev(){return this._index-1>=0}hasNext(){return this._index+1r)return this._seekBackwards(r-a);a+=this.length}return this._distance=0,n?this:null}seek(r,n=!1){if(r<0)return this._seekBackwards(Math.abs(r),n);if(r<=this.remainingLength)return this._distance=(this.backwardLength+r)/this.length,this;let o=this.remainingLength;for(;this.next();){if(o+this.length>r)return this.seek(r-o,n);o+=this.length}return this._distance=1,n?this:null}}function ns(l,r,n,o=!0){const a=function Li(l){let r=0;for(let n=0;n=0&&h.y<512&&h.y>=0&&n(h.clone(),m,c+m*r,a),h.seek(r)}function as(l,r){if(r<=0)return;const o=l.length;if(o<3)return;const a=[];let h=0;a.push(0);for(let _=1;_=0&&!(a[g+1]a[_]+m);g++){const S=m-a[g-1]+a[_],v=a[g]-a[g-1],T=a[g]-a[_]class extends l{constructor(...r){super(...r),this._isCIM=!1,this._vertexBoundsScale=1,this.geometryType=O.LW.TEXT,this._aux=(0,w.Jz)(0,0,this._referenceSize,this._bitset)}bindTextInfo(r,n){this._shapingInfo=r&&r.length?(0,W.yw)(r,o=>(0,cs.Nr)(o,n,{scale:this._scale,angle:this._angle,xOffset:this._xOffset,yOffset:this._yOffset,hAlign:this._xAlignD,vAlign:this._yAlignD,maxLineWidth:Math.max(32,Math.min(this._lineWidth,512)),lineHeight:I.xm*Math.max(.25,Math.min(this._lineHeight,4)),decoration:this._decoration,isCIM:this._isCIM})):null}_write(r,n,o,a){const h=n.getDisplayId();this._writeGeometry(r,n,h,o,a)}_writeGeometry(r,n,o,a,h){const c=this._shapingInfo;if((0,W.Wi)(c))return;if((0,W.pC)(this._textPlacement)){const f=h??n.readLegacyGeometryForDisplay();return this._writePlacedText(r,o,f,c,a)}const u=h?(0,Dt.oB)((0,Dt.GH)(h),2):"esriGeometryPolygon"===n.geometryType?n.readCentroid():n.readGeometryForDisplay();if(!(0,W.Wi)(u)){if(u.isPoint){const[f,d]=u.coords;return!r.hasAggregates&&r.hasPixelBufferEnabled&&(f<0||f>=512||d<0||d>=512)?void 0:this._writeGlyphs(r,o,{x:f,y:d},c)}u.forEachVertex((f,d)=>this._writeGlyphs(r,o,{x:f,y:d},c))}}_writePlacedText(r,n,o,a,h){const c=(0,W.Wg)(this._textPlacement),u=bi.getPlacement(o,c,(0,P.F2)(1),h.geometryEngine);if(!u)return;let f=u.next();for(;null!=f;){const d=-f.getAngle();a.setRotation(d);const m=f.tx,_=-f.ty;m<0||m>=512||_<0||_>=512||(this._writeGlyphs(r,n,{x:m,y:_},a),a.setRotation(-d)),f=u.next()}}_writeGlyphs(r,n,o,a){const h=D.m2.load(this._materialKey),c=(0,w.UJ)(Math.round(8*o.x),Math.round(8*o.y)),u=this._vertexBoundsScale,f=a.bounds,d=2*Math.max(f.width,f.height);for(const m of a.glyphs)h.textureBinding=m.textureBinding,r.recordStart(n,h.data,this.geometryType,!0),r.vertexBounds(o.x+f.x+this._xOffset,o.y+f.y-this._yOffset,d*u,d*u),this._writeVertices(r,n,c,m),r.recordEnd()}_writeGlyph(r,n,o,a,h){const c=D.m2.load(this._materialKey),u=(0,w.UJ)(Math.round(8*o),Math.round(8*a));c.textureBinding=h.textureBinding,r.recordStart(n,c.data,this.geometryType,!0);const f=h.bounds,d=this._vertexBoundsScale;r.vertexBounds(o+f.x*d,a+f.y*d,f.width*d,f.height*d),this._writeVertices(r,n,u,h),r.recordEnd()}_writeVertices(r,n,o,a){const h=r.vertexCount();this._writeVertexCommon(r,n,o,a),r.vertexWrite(a.offsets.upperLeft),r.vertexWrite(a.texcoords.upperLeft),r.vertexEnd(),this._writeVertexCommon(r,n,o,a),r.vertexWrite(a.offsets.upperRight),r.vertexWrite(a.texcoords.upperRight),r.vertexEnd(),this._writeVertexCommon(r,n,o,a),r.vertexWrite(a.offsets.lowerLeft),r.vertexWrite(a.texcoords.lowerLeft),r.vertexEnd(),this._writeVertexCommon(r,n,o,a),r.vertexWrite(a.offsets.lowerRight),r.vertexWrite(a.texcoords.lowerRight),r.vertexEnd(),r.indexWrite(h+0),r.indexWrite(h+1),r.indexWrite(h+2),r.indexWrite(h+1),r.indexWrite(h+3),r.indexWrite(h+2)}_writeVertexCommon(r,n,o,a){const h=this._color,c=this._haloColor,u=(0,w.Jz)(0,0,this._referenceSize,this._bitset),f=(0,w.Jz)(0,0,this._size,this._haloSize);r.vertexWrite(o),r.vertexWrite(n),r.vertexWrite(h),r.vertexWrite(c),r.vertexWrite(f),r.vertexWrite(u),r.vertexWrite(this._minMaxZoom)}};var Ve=L(73608);class ee{bindFeature(r,n,o){}write(r,n,o,a){if((0,W.Wi)(this._effects)||0===this._effects?.length)return this._write(r,n,a);const h=Ve.j.executeEffects(this._effects,n.readLegacyGeometryForDisplay(),a.geometryEngine);let c=Ve.j.next(h);for(;c;)this._write(r,n,a,c),c=Ve.j.next(h)}_write(r,n,o,a){}}class Zt extends(Ii(ee)){constructor(r,n,o,a,h,c,u,f,d,m,_,p,y,x,g,S,v,T,C=!1,V,A){super(),this._xOffset=(0,P.F2)(y),this._yOffset=(0,P.F2)(x),this._decoration=m||"none",this._color=h,this._haloColor=c,this._haloSize=Math.min(Math.floor(5*(0,P.F2)((0,P.t_)(o))),127),this._size=Math.min(Math.round((0,P.F2)(n)),127);const R=Math.min(Math.round((0,P.F2)(a||n)),127);this._referenceSize=Math.round(Math.sqrt(256*R)),this._scale=this._size/I.Ex,this._angle=p,this._justify=(0,dt.Hd)(u||"center"),this._xAlignD=(0,dt.kH)(u||"center"),this._yAlignD=(0,dt.b7)(f||"baseline"),this._baseline="baseline"===(f||"baseline"),this._bitset=(d===j.v2.MAP?1:0)|(_?1:0)<<1;const N=D.m2.load(r);N.sdf=!0,this._materialKey=N.data,this._lineWidth=(0,P.F2)(g)||512,this._lineHeight=S||1,this._textPlacement=v,this._effects=T,this._isCIM=C,this._minMaxZoom=(0,w.UJ)(Math.round(V*I.MI),Math.round(A*I.MI))}static fromText(r,n){const o=new Zt(r.materialKey,r.font.size,r.haloSize||0,r.font.size,r.color&&(0,Z.aH)(r.color)||0,r.haloColor&&(0,Z.aH)(r.haloColor)||0,r.horizontalAlignment,r.verticalAlignment,j.v2.SCREEN,r.font.decoration,!1,r.angle||0,r.xoffset,r.yoffset,r.lineWidth,r.lineHeight,null,null,!1,0,lt),[,a]=(0,z.E)(r.text);return o.bindTextInfo(n,a),o._vertexBoundsScale=r.maxVVSize?r.maxVVSize/r.font.size:1,o}static fromCIMText(r,n,o){const a=r.scaleFactor||1,h=r.size*r.sizeRatio*a,[c,u]=vt(r.scaleInfo,o),f=new Zt(r.materialKey,h,r.outlineSize*r.sizeRatio,r.referenceSize,(0,Z.t2)(r.color),(0,Z.t2)(r.outlineColor),r.horizontalAlignment,r.verticalAlignment,r.alignment,r.decoration,r.colorLocked,r.angle,r.offsetX*r.sizeRatio*a,r.offsetY*r.sizeRatio*a,512,1,r.markerPlacement,r.effects,!0,c,u),[,d]=(0,z.E)(r.text);return f.bindTextInfo(n,d),f._vertexBoundsScale=r.maxVVSize?r.maxVVSize/h:1,f}}const fs=H.Z.getLogger("esri.views.2d.engine.webgl.WGLLabelTemplate"),xs=function ps(l){const r=new Map;return n=>(r.has(n)||r.set(n,l(n)),r.get(n))}(l=>{let r=0;if(0===l)return 1/0;for(;!(l%2);)r++,l/=2;return r}),xe=l=>Math.floor(127*l+127),ie=l=>Math.floor(10*l),Kt=l=>Math.round(l*(254/360));class ge extends Zt{constructor(r,n,o,a){super(r,o.font.size,o.haloSize||0,o.font.size,o.color&&(0,Z.aH)(o.color)||0,o.haloColor&&(0,Z.aH)(o.haloColor)||0,o.horizontalAlignment,o.verticalAlignment,(0,dt.NS)(n.labelPlacement)?j.v2.MAP:j.v2.SCREEN,o.font.decoration,!1,o.angle||0,o.xoffset,o.yoffset,o.lineWidth,o.lineHeight,null,null,null,null,null),this._outLineLabelAngle=0,this._refPlacementPadding=0,this._refPlacementDirX=0,this._refPlacementDirY=0,this._refOffsetX=0,this._refOffsetY=0,this._zoomLevel=0,this.geometryType=O.LW.LABEL,this._allowOverrun=n.allowOverrun??!1,this._repeatLabel=n.repeatLabel??!0,this._labelPosition=n.labelPosition??"curved";const h=function _s(l,r){const n=!!l.minScale&&r.scaleToZoom(l.minScale)||0;return(0,gi.uZ)(n,0,25.5)}(n,a),c=function ys(l,r){const n=!!l.maxScale&&r.scaleToZoom(l.maxScale)||255;return(0,gi.uZ)(n,0,25.5)}(n,a),u=n.labelPlacement,[f,d]=(0,dt.qv)(u);this._xAlignD=f,this._yAlignD=d,this._minZoom=h,this._maxZoom=c,this._refPlacementPadding=(0,P.F2)(o.haloSize)+I.Iw,this._repeatLabelDistance=n.repeatLabelDistance?(0,P.F2)(n.repeatLabelDistance):128;const m=D.Gq.load(r);m.sdf=!0,this._materialKey=m.data}static fromLabelClass(r,n){if("esriServerLinePlacementCenterAlong"===r.labelPlacement){const o=r.symbol;o.xoffset=0,o.yoffset=0,o.angle=0,o.font.decoration="none"}return new ge(r.materialKey,r,r.symbol,n)}get _shapedBox(){return(0,W.Wg)(this._shapingInfo).bounds}setZoomLevel(r){this._zoomLevel=r}bindReferenceTemplate(r){let n=(0,dt.g)(this._xAlignD),o=(0,dt.tf)(this._yAlignD);if(this._refOffsetX=0,this._refOffsetY=0,(0,W.Wi)(r))return void(this._refSymbolAndPlacementOffset=(0,w.Jz)(0,0,xe(n),xe(o)));if("circle"===r.boundsType&&(n||o)){const c=Math.sqrt(n*n+o*o);n/=c,o/=c}const a=Math.max(r.height,r.width);this._refSymbolAndPlacementOffset=(0,w.Jz)(4*this._refPlacementPadding,a,xe(n),xe(o)),this._referenceSize=a,this._refPlacementDirX=n,this._refPlacementDirY=o,this._refOffsetX=r.xOffset,this._refOffsetY=r.yOffset}_write(r,n){if((0,W.Wi)(this._shapingInfo))return;const o=this._shapingInfo,a=n.getDisplayId(),h="esriGeometryPolygon"===n.geometryType?n.readLegacyCentroid():n.readLegacyGeometry();if(h)switch(this._current={out:r,inId:a,inShaping:o,zoomLevel:this._zoomLevel},n.geometryType){case"esriGeometryPolyline":this._placeLineLabels(h);break;case"esriGeometryPoint":case"esriGeometryPolygon":this._placePointLabels(h);break;default:((l,r="mapview-labeling")=>{fs.error(new E.Z(r,"mapview-labeling"))})(0,`Geometry of type ${n.geometryType} is not supported`)}}_isVisible(r,n){const o=ie(this._current.zoomLevel);return ie(r)<=o&&o<=ie(n)}_placePointLabels(r){const{out:n,inId:o,inShaping:a}=this._current;this._writeGlyphs(n,o,r,a)}_placeLineLabels(r){const n=function os(l,r){const n=r;for(let o=0;o=a);)this._placeOnSegment(c,n,u,o,-1,h),u+=c.length+0}_placeForward(r,n,o,a,h){const c=r.clone();let u=r.remainingLength+0;for(;c.next()&&!(u>=a);)this._placeOnSegment(c,n,u,o,1,h),u+=c.length+0}_placeFirst(r,n,o,a=!1){const h=r,c=this._current.inShaping,u=c.glyphs,f=this._current.zoomLevel,{out:d,inId:m}=this._current;for(const _ of u){const p=_.x>c.bounds.x?o:1-o,y=p*r.remainingLength+(1-p)*r.backwardLength,x=Math.abs(_.x+_.width/2-c.bounds.x),g=Math.max(0,f+Math.log2(x/(y+0))),S=Math.max(n,a?0:g);if(_.maxZoom=25,_.angle=r.angle+(1-o)*Math.PI,_.minZoom=S,this._writeGlyph(d,m,h.x,h.y,_),o&&this._isVisible(_.minZoom,_.maxZoom)){const v=_.bounds;d.metricBoxWrite(v.center[0],v.center[1],v.width,v.height)}}}_placeOnSegment(r,n,o,a,h,c){const u=this._current.inShaping.glyphs,{out:f,inId:d}=this._current,m=this._current.inShaping,_=this._current.zoomLevel,x={x:r.x+o*-h*(r.dx/r.length),y:r.y+o*-h*(r.dy/r.length)};for(const g of u){const S=g.x>m.bounds.x?c:1-c;if(!(S&&1===h||!S&&-1===h))continue;const v=Math.abs(g.x+g.width/2-m.bounds.x),T=Math.max(0,_+Math.log2(v/o)-.1),C=Math.max(a,_+Math.log2(v/(o+r.length+0)));if(0!==T&&(g.angle=r.angle+(1-c)*Math.PI,g.minZoom=C,g.maxZoom=T,this._writeGlyph(f,d,x.x,x.y,g),c&&this._isVisible(g.minZoom,g.maxZoom))){const V=g.bounds;f.metricBoxWrite(V.center[0]+(r.x-n.x),V.center[1]+(r.y-n.y),V.width,V.height)}}}_writeGlyphs(r,n,o,a,h=this._minZoom){if(o.x<0||o.x>=512||o.y<0||o.y>=512)return;const c=o.x+this._refOffsetX,u=o.y-this._refOffsetY;for(const _ of a.glyphs)_.minZoom=h,_.maxZoom=this._maxZoom,this._writeGlyph(r,n,c,u,_);const m=a.boundsT;r.metricStart(n,h,c,u,this._refPlacementDirX,this._refPlacementDirY,this._referenceSize,this._materialKey),r.metricBoxWrite(m.center[0],m.center[1],m.width,m.height),r.metricEnd()}_writeVertexCommon(r,n,o,a){const h=this._color,c=this._haloColor,u=(0,w.Jz)(0,0,this._size,this._haloSize),f=Math.max(a.minZoom,this._minZoom),d=Math.min(a.maxZoom,this._maxZoom),m=(0,w.Jz)(ie(f),ie(d),this._outLineLabelAngle,0);r.vertexWrite(o),r.vertexWrite(n),r.vertexWrite(h),r.vertexWrite(c),r.vertexWrite(u),r.vertexWrite(this._refSymbolAndPlacementOffset),r.vertexWrite(m)}}var Ae=L(12225),ve=L(9545),Pi=L(31478);const zi=3.14159265359/180,Ci=l=>class extends l{constructor(...r){super(...r),this.angle=0,this.xOffset=0,this.yOffset=0,this.width=0,this.height=0,this.boundsType="square",this._anchorX=0,this._anchorY=0,this._computedWidth=0,this._computedHeight=0,this._vertexBoundsScaleX=1,this._vertexBoundsScaleY=1,this._offsets={xUpperLeft:0,yUpperLeft:0,xUpperRight:0,yUpperRight:0,xBottomLeft:0,yBottomLeft:0,xBottomRight:0,yBottomRight:0},this.geometryType=O.LW.MARKER}_write(r,n,o,a){const h=n.getDisplayId();r.recordStart(h,this._materialKey,this.geometryType,!0),this._writeGeometry(r,n,h,o,a),r.recordEnd()}_writeGeometry(r,n,o,a,h){if((0,W.pC)(this._markerPlacement))return this._writePlacedMarkers(r,n,a,h);if(!h&&"esriGeometryPoint"===n.geometryType){const u=n.getX(),f=n.getY();return!r.hasAggregates&&r.hasPixelBufferEnabled&&(u<0||u>=513||f<0||f>=513)?void 0:this._writeVertices(r,o,this._getPos(u,f),u,f)}const c=h?(0,Dt.oB)((0,Dt.GH)(h),2):"esriGeometryPolygon"===n.geometryType?n.readCentroid():n.readGeometryForDisplay();if(!(0,W.Wi)(c)){if(c.isPoint){const[u,f]=c.coords;return!r.hasAggregates&&r.hasPixelBufferEnabled&&(u<0||u>=512||f<0||f>=512)?void 0:this._writeVertices(r,o,this._getPos(u,f),u,f)}c.forEachVertex((u,f)=>{const d=2*I.I_;u<-d||u>=d||f<-d||f>=d||this._writeVertices(r,o,this._getPos(u,f),u,f)})}}_writePlacedMarkers(r,n,o,a){const h=a??n.readLegacyGeometryForDisplay(),c=bi.getPlacement(h,(0,W.Wg)(this._markerPlacement),(0,P.F2)(1),o.geometryEngine);if(!c)return;const u=n.getDisplayId(),f=(0,ve.c)(),d=(0,Ae.c)();let p=c.next();for(;null!=p;){const y=p.tx,x=-p.ty;y>=-128&&y<=640&&x>=-128&&x<=640&&(this._applyTransformation(d,f,-p.getAngle()/zi),this._writeVertices(r,u,this._getPos(y,x),y,x)),p=c.next()}}_writeVertices(r,n,o,a,h){const c=D.mE.load(this._materialKey);return c.symbologyType===O.mD.HEATMAP?this._writeHeatmapVertices(r,n,o):this._writeMarkerVertices(r,n,c,o,a,h)}_writeMarkerVertices(r,n,o,a,h,c){const u=o.vvRotation,f=r.vertexCount();let d=this._computedWidth*this._vertexBoundsScaleX,m=this._computedHeight*this._vertexBoundsScaleY;if(this.angle){const _=Math.max(d,m);d=_,m=_}if(u){const _=Math.max(this.xOffset,this.yOffset);d+=_,m+=_}r.vertexBounds(h+this.xOffset,c-this.yOffset,d,m),r.vertexWrite(a),r.vertexWrite(this._offsetUpperLeft),r.vertexWrite(this._texUpperLeft),r.vertexWrite(this._bitestAndDistRatio),r.vertexWrite(n),r.vertexWrite(this._fillColor),r.vertexWrite(this._outlineColor),r.vertexWrite(this._sizeOutlineWidth),r.vertexWrite(this._minMaxZoom),r.vertexEnd(),r.vertexWrite(a),r.vertexWrite(this._offsetUpperRight),r.vertexWrite(this._texUpperRight),r.vertexWrite(this._bitestAndDistRatio),r.vertexWrite(n),r.vertexWrite(this._fillColor),r.vertexWrite(this._outlineColor),r.vertexWrite(this._sizeOutlineWidth),r.vertexWrite(this._minMaxZoom),r.vertexEnd(),r.vertexWrite(a),r.vertexWrite(this._offsetBottomLeft),r.vertexWrite(this._texBottomLeft),r.vertexWrite(this._bitestAndDistRatio),r.vertexWrite(n),r.vertexWrite(this._fillColor),r.vertexWrite(this._outlineColor),r.vertexWrite(this._sizeOutlineWidth),r.vertexWrite(this._minMaxZoom),r.vertexEnd(),r.vertexWrite(a),r.vertexWrite(this._offsetBottomRight),r.vertexWrite(this._texBottomRight),r.vertexWrite(this._bitestAndDistRatio),r.vertexWrite(n),r.vertexWrite(this._fillColor),r.vertexWrite(this._outlineColor),r.vertexWrite(this._sizeOutlineWidth),r.vertexWrite(this._minMaxZoom),r.vertexEnd(),this._writeIndices(r,f)}_writeHeatmapVertices(r,n,o){const a=r.vertexCount();r.vertexWrite(o),r.vertexWrite(this._offsetUpperLeft),r.vertexWrite(n),r.vertexEnd(),r.vertexWrite(o),r.vertexWrite(this._offsetUpperRight),r.vertexWrite(n),r.vertexEnd(),r.vertexWrite(o),r.vertexWrite(this._offsetBottomLeft),r.vertexWrite(n),r.vertexEnd(),r.vertexWrite(o),r.vertexWrite(this._offsetBottomRight),r.vertexWrite(n),r.vertexEnd(),this._writeIndices(r,a)}_writeIndices(r,n){r.indexWrite(n+0),r.indexWrite(n+1),r.indexWrite(n+2),r.indexWrite(n+1),r.indexWrite(n+3),r.indexWrite(n+2)}_applyTransformation(r,n,o=0){(0,Pi.a)(r,(0,ve.f)(this.xOffset,-this.yOffset)),this.angle+o!==0&&(0,Pi.r)(r,r,zi*(this.angle+o));const a=this._computedWidth,h=this._computedHeight,c=-(.5+this._anchorX)*a,u=-(.5-this._anchorY)*h;(0,it.s)(n,c,u),(0,it.t)(n,n,r),this._offsetUpperLeft=(0,w.UJ)(16*n[0],16*n[1]),this._offsets.xUpperLeft=n[0],this._offsets.yUpperLeft=n[1],(0,it.s)(n,c+a,u),(0,it.t)(n,n,r),this._offsetUpperRight=(0,w.UJ)(16*n[0],16*n[1]),this._offsets.xUpperRight=n[0],this._offsets.yUpperRight=n[1],(0,it.s)(n,c,u+h),(0,it.t)(n,n,r),this._offsetBottomLeft=(0,w.UJ)(16*n[0],16*n[1]),this._offsets.xBottomLeft=n[0],this._offsets.yBottomLeft=n[1],(0,it.s)(n,c+a,u+h),(0,it.t)(n,n,r),this._offsetBottomRight=(0,w.UJ)(16*n[0],16*n[1]),this._offsets.xBottomRight=n[0],this._offsets.yBottomRight=n[1]}_getPos(r,n){return(0,w.UJ)(Math.round(8*r),Math.round(8*n))}};class ht extends(Ci(ee)){constructor(r,n,o,a,h,c,u,f,d,m,_,p,y,x,g,S,v,T,C,V,A,R,N){super(),this.angle=a,this.height=u,this.width=c,this.xOffset=n*C,this.yOffset=o*C,this._markerPlacement=V,this._effects=A,this._anchorX=S,this._anchorY=v,this._minMaxZoom=(0,w.UJ)(Math.round(R*I.MI),Math.round(N*I.MI));const X=(x===j.v2.MAP?I.Tz:I.CQ)|(_?I.Uh:0)|(y?I.oK:0)|(p?I.e0:0),pt=g&&g.sdf,St=D.mE.load(r);St.sdf=pt,St.pattern=!0,St.textureBinding=g.textureBinding,this._materialKey=St.data,this._fillColor=h,this._outlineColor=d,this._sizeOutlineWidth=(0,w.Jz)(Math.round(Math.min(Math.sqrt(128*c),255)),Math.round(Math.min(Math.sqrt(128*u),255)),Math.round(Math.min(Math.sqrt(128*m),255)),Math.round(Math.min(Math.sqrt(128*f),255)));const Tt=g.rect.x+I.fL,ut=g.rect.y+I.fL,Yt=Tt+g.width,jt=ut+g.height;this._offsets.xUpperLeft=Tt,this._offsets.yUpperLeft=ut,this._offsets.xUpperRight=Yt,this._offsets.yUpperRight=ut,this._offsets.xBottomLeft=Tt,this._offsets.yBottomLeft=jt,this._offsets.xBottomRight=Yt,this._offsets.yBottomRight=jt,St.symbologyType===O.mD.PIE_CHART?(this._texUpperLeft=(0,w.UJ)(0,1),this._texUpperRight=(0,w.UJ)(1,1),this._texBottomLeft=(0,w.UJ)(0,0),this._texBottomRight=(0,w.UJ)(1,0)):(this._texUpperLeft=(0,w.UJ)(Tt,ut),this._texUpperRight=(0,w.UJ)(Yt,ut),this._texBottomLeft=(0,w.UJ)(Tt,jt),this._texBottomRight=(0,w.UJ)(Yt,jt)),c*=T,u*=T,c*=C,u*=C;const Tr=Math.round(64*T);this._bitestAndDistRatio=(0,w.UJ)(X,Tr),this._computedWidth=c,this._computedHeight=u;const Lr=(0,ve.c)(),br=(0,Ae.c)();this._applyTransformation(br,Lr)}static fromCIMMarker(r,n,o){const c=r.size,u=(n&&n.width||1)/(n&&n.height||1)*r.scaleX,f=r.scaleSymbolsProportionally&&r.frameHeight?c/r.frameHeight:1;let d=(0,Z.t2)(r.color);const m=(0,Z.t2)(r.outlineColor),_=(0,P.F2)(c),p=_*u,y=(0,P.F2)(r.offsetX||0),x=(0,P.F2)(r.offsetY||0),g=(0,P.F2)(r.outlineWidth||0)*f,S=r.alignment||j.v2.SCREEN,v=(0,P.F2)(r.referenceSize),[T,C]=vt(r.scaleInfo,o);n.sdf||0!==d||(d=-1);let V=r.rotation||0;r.rotateClockwise||(V=-V);let A=0,R=0;const N=r.anchorPoint;N&&(r.isAbsoluteAnchorPoint?c&&(A=N.x/(c*u),R=N.y/c):(A=N.x,R=N.y));const X=new ht(r.materialKey,y,x,V,d,p,_,v,m,g,r.colorLocked,r.scaleSymbolsProportionally,!1,S,n,A,R,r.sizeRatio,(0,W.Pt)(r.scaleFactor,1),r.markerPlacement,r.effects,T,C);return X._vertexBoundsScaleX=r.maxVVSize?r.maxVVSize/p:1,X._vertexBoundsScaleY=r.maxVVSize?r.maxVVSize/_:1,X}static fromPictureMarker(r,n){const o=Math.round((0,P.F2)(r.width)),a=Math.round((0,P.F2)(r.height)),h=I.ru,c=Math.round((0,P.F2)(r.xoffset||0)),u=Math.round((0,P.F2)(r.yoffset||0)),f=new ht(r.materialKey,c,u,r.angle,h,o,a,a,0,0,!1,!1,!1,j.v2.SCREEN,n,0,0,1,1,null,null,0,lt);return f._vertexBoundsScaleX=r.maxVVSize?r.maxVVSize/r.width:1,f._vertexBoundsScaleY=r.maxVVSize?r.maxVVSize/r.height:1,f}static fromSimpleMarker(r,n){const o=(0,Z.aH)(r.color),a=Math.round((0,P.F2)(r.size)),h=a,c=Math.round((0,P.F2)(r.xoffset||0)),u=Math.round((0,P.F2)(r.yoffset||0)),f=r.style,d=r.outline,m=0|(d&&d.color&&(0,Z.aH)(d.color)),_=0|(d&&d.width&&Math.round((0,P.F2)(d.width))),p=new ht(r.materialKey,c,u,r.angle,o,a,h,h,m,_,!1,!1,"esriSMSCross"===f||"esriSMSX"===f,j.v2.SCREEN,n,0,0,126/64,1,null,null,0,lt);return p.boundsType="esriSMSCircle"===f?"circle":"square",p._vertexBoundsScaleX=r.maxVVSize?r.maxVVSize/r.size:1,p._vertexBoundsScaleY=r.maxVVSize?r.maxVVSize/r.size:1,p}static fromLineSymbolMarker(r,n){const o=(0,Z.aH)(r.color),h=Math.round((0,P.F2)(6*r.lineWidth)),c=h,u="cross"===r.style||"x"===r.style;let f;switch(r.placement){case"begin-end":f=j.Tx.Both;break;case"begin":f=j.Tx.JustBegin;break;case"end":f=j.Tx.JustEnd;break;default:f=j.Tx.None}const d={type:"CIMMarkerPlacementAtExtremities",angleToLine:!0,offset:0,extremityPlacement:f,offsetAlongLine:0},m=new ht(r.materialKey,0,0,0,o,h,c,c/6,o,u?Math.round((0,P.F2)(r.lineWidth)):0,!1,!1,u,j.v2.MAP,n,0,0,126/64,1,d,null,0,lt);return m.boundsType="circle"===r.style?"circle":"square",m}}var Nt=L(24837),Re=L(43289),gs=(L(11915),L(88071)),Ei=L(97938),Fi=L(47018);function vs(l,r,n,o,a,h,c){Oe=0;const u=(o-n)*h,f=a&&a.length,d=f?(a[0]-n)*h:u;let m,_,p,y,x,g=Vi(r,n,0,0,d,h,!0);if(g&&g.next!==g.prev){if(f&&(g=function Ls(l,r,n,o,a,h){const c=new Array;for(let u=0,f=o.length;u80*h){m=p=r[0+n*h],_=y=r[1+n*h];for(let S=h;S0)for(let f=o;f=o;f-=h)u=Ai(f+r*h,l[f+r*h],l[f+1+r*h],u);return u&&It(u,u.next)&&(ne(u),u=u.next),u}function se(l,r=l){if(!l)return l;let n,o=l;do{if(n=!1,o.steiner||!It(o,o.next)&&0!==Q(o.prev,o,o.next))o=o.next;else{if(ne(o),o=r=o.prev,o===o.next)break;n=!0}}while(n||o!==r);return r}function re(l,r,n,o,a,h,c,u){if(!l)return;!u&&h&&(l=Ri(l,o,a,h));let f=l;for(;l.prev!==l.next;){const d=l.prev,m=l.next;if(h?Ss(l,o,a,h):Ms(l))r.push(d.index/n+c),r.push(l.index/n+c),r.push(m.index/n+c),ne(l),l=m.next,f=m.next;else if((l=m)===f){u?1===u?re(l=Cs(l,r,n,c),r,n,o,a,h,c,2):2===u&&Es(l,r,n,o,a,h,c):re(se(l),r,n,o,a,h,c,1);break}}}function Ms(l){const r=l.prev,n=l,o=l.next;if(Q(r,n,o)>=0)return!1;let a=l.next.next;const h=a;let c=0;for(;a!==l.prev&&(0===c||a!==h);){if(c++,Jt(r.x,r.y,n.x,n.y,o.x,o.y,a.x,a.y)&&Q(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function Ss(l,r,n,o){const a=l.prev,h=l,c=l.next;if(Q(a,h,c)>=0)return!1;const d=a.x>h.x?a.x>c.x?a.x:c.x:h.x>c.x?h.x:c.x,m=a.y>h.y?a.y>c.y?a.y:c.y:h.y>c.y?h.y:c.y,_=Ue(a.x=_&&x&&x.z<=p;){if(y!==l.prev&&y!==l.next&&Jt(a.x,a.y,h.x,h.y,c.x,c.y,y.x,y.y)&&Q(y.prev,y,y.next)>=0||(y=y.prevZ,x!==l.prev&&x!==l.next&&Jt(a.x,a.y,h.x,h.y,c.x,c.y,x.x,x.y)&&Q(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;y&&y.z>=_;){if(y!==l.prev&&y!==l.next&&Jt(a.x,a.y,h.x,h.y,c.x,c.y,y.x,y.y)&&Q(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;x&&x.z<=p;){if(x!==l.prev&&x!==l.next&&Jt(a.x,a.y,h.x,h.y,c.x,c.y,x.x,x.y)&&Q(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Ai(l,r,n,o){const a=Xt.create(l,r,n);return o?(a.next=o.next,a.prev=o,o.next.prev=a,o.next=a):(a.prev=a,a.next=a),a}function ne(l){l.next.prev=l.prev,l.prev.next=l.next,l.prevZ&&(l.prevZ.nextZ=l.nextZ),l.nextZ&&(l.nextZ.prevZ=l.prevZ)}function Ts(l){let r=l,n=l;do{(r.x=n.next.y&&n.next.y!==n.y){const p=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(p<=o&&p>c){if(c=p,p===o){if(a===n.y)return n;if(a===n.next.y)return n.next}h=n.x=n.x&&n.x>=f&&o!==n.x&&Jt(ah.x)&&oe(n,l)&&(h=n,_=m)),n=n.next;return h}(l,r);if(!n)return r;const o=Bi(n,l);return se(o,o.next),se(n,n.next)}function Ri(l,r,n,o){for(let a;a!==l;a=a.next){if(a=a||l,null===a.z&&(a.z=Ue(a.x,a.y,r,n,o)),a.prev.next!==a||a.next.prev!==a)return a.prev.next=a,a.next.prev=a,Ri(l,r,n,o);a.prevZ=a.prev,a.nextZ=a.next}return l.prevZ.nextZ=null,l.prevZ=null,function ws(l){let r,n=1;for(;;){let o,a=l;l=null,r=null;let h=0;for(;a;){h++,o=a;let c=0;for(;c0||u>0&&o;){let f;0===c?(f=o,o=o.nextZ,u--):0!==u&&o?a.z<=o.z?(f=a,a=a.nextZ,c--):(f=o,o=o.nextZ,u--):(f=a,a=a.nextZ,c--),r?r.nextZ=f:l=f,f.prevZ=r,r=f}a=o}if(r.nextZ=null,n*=2,h<2)return l}}(l)}function Q(l,r,n){return(r.y-l.y)*(n.x-r.x)-(r.x-l.x)*(n.y-r.y)}function Ui(l,r,n,o){return!!(It(l,r)&&It(n,o)||It(l,o)&&It(n,r))||Q(l,r,n)>0!=Q(l,r,o)>0&&Q(n,o,l)>0!=Q(n,o,r)>0}function Jt(l,r,n,o,a,h,c,u){return(a-c)*(r-u)-(l-c)*(h-u)>=0&&(l-c)*(o-u)-(n-c)*(r-u)>=0&&(n-c)*(h-u)-(a-c)*(o-u)>=0}function oe(l,r){return Q(l.prev,l,l.next)<0?Q(l,r,l.next)>=0&&Q(l,l.prev,r)>=0:Q(l,r,l.prev)<0||Q(l,l.next,r)<0}function Ue(l,r,n,o,a){return(l=1431655765&((l=858993459&((l=252645135&((l=16711935&((l=32767*(l-n)*a)|l<<8))|l<<4))|l<<2))|l<<1))|(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=32767*(r-o)*a)|r<<8))|r<<4))|r<<2))|r<<1))<<1}function It(l,r){return l.x===r.x&&l.y===r.y}function Ws(l,r){return l.x-r.x}function Cs(l,r,n,o){let a=l;do{const h=a.prev,c=a.next.next;!It(h,c)&&Ui(h,a,a.next,c)&&oe(h,c)&&oe(c,h)&&(r.push(h.index/n+o),r.push(a.index/n+o),r.push(c.index/n+o),ne(a),ne(a.next),a=l=c),a=a.next}while(a!==l);return a}function Es(l,r,n,o,a,h,c){let u=l;do{let f=u.next.next;for(;f!==u.prev;){if(u.index!==f.index&&Fs(u,f)){let d=Bi(u,f);return u=se(u,u.next),d=se(d,d.next),re(u,r,n,o,a,h,c,0),void re(d,r,n,o,a,h,c,0)}f=f.next}u=u.next}while(u!==l)}function Fs(l,r){return l.next.index!==r.index&&l.prev.index!==r.index&&!function Ps(l,r){let n=l;do{if(n.index!==l.index&&n.next.index!==l.index&&n.index!==r.index&&n.next.index!==r.index&&Ui(n,n.next,l,r))return!0;n=n.next}while(n!==l);return!1}(l,r)&&oe(l,r)&&oe(r,l)&&function Vs(l,r){let n=l,o=!1;const a=(l.x+r.x)/2,h=(l.y+r.y)/2;do{n.y>h!=n.next.y>h&&n.next.y!==n.y&&a<(n.next.x-n.x)*(h-n.y)/(n.next.y-n.y)+n.x&&(o=!o),n=n.next}while(n!==l);return o}(l,r)}function Bi(l,r){const n=Xt.create(l.index,l.x,l.y),o=Xt.create(r.index,r.x,r.y),a=l.next,h=r.prev;return l.next=r,r.prev=l,n.next=a,a.prev=n,o.next=n,n.prev=o,h.next=o,o.prev=h,o}class Xt{constructor(){this.index=0,this.x=0,this.y=0,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}static create(r,n,o){const a=Oeclass extends l{constructor(...r){super(...r),this.tessellationProperties={},this._tessellationOptions={halfWidth:0,pixelCoordRatio:1,offset:0},this.geometryType=O.LW.LINE}writeGeometry(r,n,o,a){this._writeGeometry(r,n,o,a)}_initializeTessellator(r){const n=D.a.load(this._materialKey),o=D.dk.load(this._materialKey),a=this._tessellationOptions,c=this.tessellationProperties._halfWidtha||_a){c=!0;continue}f.push({x:m,y:_})}let p=!1;const y=d.length;for(let x=1;xa||_a){p=!0;break}f.push({x:m,y:_})}if(p)c=!0;else{if(c){const x=n.resultWithStarts();if(x)for(const g of x)h.push(g)}else h.push({line:f,start:0});u++,c=!1}}return h=h.filter(f=>f.line.length>1),0===h.length?null:h}(o,n?256:16)}_writeVertices(r,n,o){const a=n.getDisplayId(),h=r.vertexCount(),c=this.tessellationProperties,u=this._tessellationOptions;c.out=r,c.id=a,c.indexCount=0,c.vertexCount=0,c.offset=h,u.capType=this._capType,u.joinType=this._joinType;const f=D.dk.load(this._materialKey);this.tessellationProperties.key=(0,D.CA)(f)?f:D.a.load(this._materialKey);for(const{line:d,start:m}of o)u.initialDistance=m%65535,this._lineTessellator.tessellate(d,u)}},Ks=(l,r,n)=>(o,a,h,c,u,f,d,m,_,p,y)=>{const x=(0,w.UJ)(y,Math.ceil(16*l._halfWidth)),g=(0,w.Jz)(Math.round(16*d),Math.round(16*m),Math.round(16*_),Math.round(16*p)),S=(0,w.Jz)(16*u,16*f,0,l._bitset),v=l.out;return v.vertexBounds(o,a,r,n),v.vertexWrite((0,w.UJ)(8*o,8*a)),v.vertexWrite(l.id),v.vertexWrite(l._fillColor),v.vertexWrite(g),v.vertexWrite(x),v.vertexWrite(l._tl),v.vertexWrite(l._br),v.vertexWrite(S),v.vertexWrite((0,w.UJ)(Math.ceil(16*l._halfReferenceWidth),0)),v.vertexWrite(l.minMaxZoom),v.vertexEnd(),l.offset+l.vertexCount++},Ns=(l,r,n)=>(o,a,h,c,u,f,d,m,_,p,y)=>{const x=(0,w.UJ)(16*l._halfWidth,16*l._halfReferenceWidth),g=(0,w.Jz)(16*d+128,16*m+128,16*_+128,16*p+128),S=l.out,v=l._bitset<<24|l.id;S.vertexBounds(o,a,r,n),S.vertexWrite((0,w.UJ)(8*o,8*a)),S.vertexWrite(v),S.vertexWrite(l._fillColor);const T=(0,D.Xp)(l.key);return T||(S.vertexWrite(0),S.vertexWrite(0)),S.vertexWrite(0),S.vertexWrite(x),S.vertexWrite(g),T||S.vertexWrite(l.minMaxZoom),S.vertexEnd(),l.offset+l.vertexCount++},Js=l=>(r,n,o)=>{const a=l.out;a.indexWrite(r),a.indexWrite(n),a.indexWrite(o),l.indexCount+=3};class mt extends(ki(ee)){constructor(r,n,o,a,h,c,u,f,d,m,_,p,y,x,g,S,v,T,C,V){super();const A=D.a.load(r);n&&(A.sdf=n.sdf,A.pattern=!0,A.textureBinding=n.textureBinding),this._capType=a,this._joinType=h,this._miterLimitCosine=Ee(c),this.tessellationProperties._fillColor=u,this.tessellationProperties._tl=f,this.tessellationProperties._br=d,this._hasPattern=m,this._isDashed=_,this._zOrder=v,this._effects=T,this._minMaxZoom=(0,w.UJ)(Math.round(C*I.MI),Math.round(V*I.MI)),this._materialKey=A.data,this.tessellationProperties._bitset=(y?I.Uh:0)|(x?I.SD:0)|(p?I._6:0)|(g?I.Iv:0),this.tessellationProperties._halfWidth=.5*o,this.tessellationProperties._halfReferenceWidth=.5*S,this.tessellationProperties.offset=0,this._initializeTessellator(!1)}static fromCIMLine(r,n,o){const a=r.color,h=r.scaleFactor||1,c=!!r.dashTemplate;let u=r.cap;c&&u===j.RL.ROUND&&(u=j.RL.SQUARE);const f=r.join,d=(0,P.F2)(r.width)*h,m=(0,P.F2)(r.referenceWidth),_=(0,P.F2)(r.miterLimit),p=a&&(0,Z.t2)(a)||0,[y,x]=vt(r.scaleInfo,o);if(!n)return new mt(r.materialKey,n,d,u,f,_,p,0,0,!1,c,r.scaleDash,r.colorLocked,!1,r.sampleAlphaOnly,m,r.zOrder,r.effects,y,x);const{rect:S,width:v,height:T}=n,C=S.x+I.fL,V=S.y+I.fL,A=C+v,R=V+T,N=(0,w.UJ)(C,V),X=(0,w.UJ)(A,R);return new mt(r.materialKey,n,d,u,f,_,p,N,X,!0,c,r.scaleDash,r.colorLocked,!1,r.sampleAlphaOnly,m,r.zOrder,r.effects,y,x)}static fromFillOutline(r){const n=D.dk.load(r.materialKey);return(0,D.CA)(n)&&r.outline&&"esriSLSSolid"===r.outline?.style?mt.fromSimpleLine({hash:"",materialKey:r.materialKey,...r.outline},null,!0):null}static fromSimpleLine(r,n,o=!1){const{color:a}=r,h="esriSLSSolid"!==r.style&&"esriSLSNull"!==r.style,c=(0,qt.ws)(r.cap||"round"),u=(0,qt.xV)(r.join||"round");let f=a&&"esriSLSNull"!==r.style&&(0,Z.aH)(a)||0;"esriSLSNull"===r.style&&(f=0);const d=(0,P.F2)(r.width),m=r.miterLimit;if(!n)return new mt(r.materialKey,n,d,c,u,m,f,0,0,!1,h,!0,!1,o,!1,d,0,null,0,lt);const{rect:_,width:p,height:y}=n,x=_.x+I.fL,g=_.y+I.fL,S=x+p,v=g+y,T=(0,w.UJ)(x,g),C=(0,w.UJ)(S,v);return new mt(r.materialKey,n,d,c,u,m,f,T,C,!0,h,!0,!1,o,!1,d,0,null,0,lt)}static fromPictureLineSymbol(r,n,o,a){return H.Z.getLogger("esri.views.2d.engine.webgl.WGLLineTemplate").error("PictureLineSymbol support does not exist!"),null}}const Zi=l=>class extends l{constructor(...r){super(...r),this.forceLibtess=!1,this._bitset=0,this._lineTemplate=null,this.geometryType=O.LW.FILL}_maybeAddLineTemplate(r){this._lineTemplate=mt.fromFillOutline(r)}_write(r,n,o,a){const h="esriGeometryPoint"===n.geometryType,c=D.dk.load(this._materialKey);r.recordStart(n.getDisplayId(),this._materialKey,this.geometryType,h),this._writeGeometry(r,n,c,a,h),(0,D.CA)(c)&&(0,W.pC)(this._lineTemplate)&&this._lineTemplate.writeGeometry(r,n,a,h),r.recordEnd()}_writeGeometry(r,n,o,a,h){const c=this._getGeometry(n,a,h);if((0,W.Wi)(c))return;const u=[];if(!(c.maxLength>100)&&!this.forceLibtess&&function Bs(l,r){const{coords:n,lengths:o,hasIndeterminateRingOrder:a}=r,c=l;if(a)return!1;let u=0;for(let f=0;f0))break;_+=v,p.push(u+m),m+=S}const y=c.length;vs(c,n,u,u+m,p,2,0);const x=Us(c,n,y,c.length,0),g=Math.abs(_);if(Math.abs((x-g)/Math.max(1e-7,g))>1e-5)return c.length=0,!1;f=d,u+=m}return!0}(u,c))return void(u.length&&this._writeVertices(r,n,c.coords,c.lengths,o,u));const f=function Os(l){const{coords:r,lengths:n}=l,{buffer:o}=(0,xi.b)(r,n);return o}(c);this._writeVertices(r,n,f,[f.length/2],o)}_writeVertex(r,n,o,a,h,c){const u=(0,w.UJ)(1*a,1*h);if(r.vertexBounds(a,h,0,0),r.vertexWrite(u),r.vertexWrite(n),o.symbologyType===O.mD.DOT_DENSITY)r.vertexWriteF32(1/Math.abs(c.readGeometryArea()));else{r.vertexWrite(this.fillColor);const f=(0,D.Xp)(o);f||(r.vertexWrite(this.tl),r.vertexWrite(this.br)),r.vertexWrite(this.aux21),r.vertexWrite(this.aux22),r.vertexWrite(this.aux3),f||r.vertexWrite(this._minMaxZoom)}}_writeVertices(r,n,o,a,h,c){const u=n.getDisplayId(),f=this._bitset<<24|u,d=a.reduce((y,x)=>y+x),m=(0,qt.$_)(h.geometryType,h.symbologyType).geometry/4,_=r.vertexCount();r.vertexEnsureSize(m*d);let p=0;if(c)for(const y of c)this._writeVertex(r,f,h,o[2*y],o[2*y+1],n),p++;else for(let y=0;yn||fn)return!0}o+=h}return!1}(l,-128,I.I_+128))return l;wt.setPixelMargin(r),wt.reset(Ei.V.Polygon);let n=0;for(let c=0;c0,u=n.readLegacyFeature(),f=n.getObjectId(),d=this._materialCache,m=this._cimLayer.materialHash;if(!m)return Ki.error("A Dynamic mesh template must have a material hash value or function!"),Promise.reject(null);const _="function"==typeof m?m(u,o,a,f):m;if(d.has(_)){const C=d.get(_);return Promise.resolve(C)}const p=this._ongoingMaterialRequestMap.get(_);if(p)return p;const y=this._cimLayer,x=(0,Gi.S)(y.cim,this._cimLayer.materialOverrides);x.mosaicHash=_;const{type:g,url:S}=y,v={cim:x,type:g,mosaicHash:_,url:S,size:null,dashTemplate:null,text:null,fontName:null,objectId:f,animatedSymbolProperties:null};switch(g){case"marker":v.size=(0,Se.hf)(y.size,u,o,a),v.animatedSymbolProperties=(0,Se.hf)(y.animatedSymbolProperties,u,o,a);break;case"line":v.dashTemplate=y.dashTemplate;break;case"text":v.text=(0,Se.hf)(y.text,u,o,a),v.fontName=(0,Se.hf)(y.fontName,u,o,a)}const T=r.getMosaicItem(v,h).then(C=>(c||(this._ongoingMaterialRequestMap.delete(_),d.set(_,C)),C)).catch(C=>(this._ongoingMaterialRequestMap.delete(_),Ki.error(".analyze()",C.message),null));return c||this._ongoingMaterialRequestMap.set(_,T),T}}function st(l,r){if(l&&"name"in l){const n=l;return r&&r.error(new E.Z(n.name,n.message,n.details)),!1}return!0}class Ze extends(Zi(Te)){constructor(r,n,o){if(super(r),this._minMaxZoom=(0,w.UJ)(Math.round(n*I.MI),Math.round(o*I.MI)),B(r.color))this._dynamicPropertyMap.set("fillColor",(_,p,y)=>{const x=r.color(_,p,y);return x&&(0,Z.t2)(x)||0});else{const m=r.color;this.fillColor=m&&(0,Z.t2)(m)||0}const a="CIMMarkerPlacementInsidePolygon"===r.cim.placement?.type&&r.cim.placement.shiftOddRows?2:1,h=r.height;B(h)?this._dynamicPropertyMap.set("_height",(_,p,y)=>h(_,p,y)*a):this._height=(h||0)*a;const c=r.offsetX;B(c)?this._dynamicPropertyMap.set("_offsetX",(_,p,y)=>(0,P.F2)(c(_,p,y))):this._offsetX=(0,P.F2)(c||0);const u=r.offsetY;B(u)?this._dynamicPropertyMap.set("_offsetY",(_,p,y)=>(0,P.F2)(-u(_,p,y))):this._offsetY=(0,P.F2)(-u||0);const f=r.scaleX;B(f)?this._dynamicPropertyMap.set("_scaleX",f):this._scaleX=f||1;const d=r.angle;if(B(d)?this._dynamicPropertyMap.set("_angle",(_,p,y)=>(0,Re.s5)(d(_,p,y))):this._angle=(0,Re.s5)(d)||0,(0,W.pC)(r.effects)){const m=r.effects;B(m)?this._dynamicPropertyMap.set("_effects",m):this._effects=m}this._cimFillLayer=r,this._bitset=(r.colorLocked?I.Uh:0)|(r.applyRandomOffset?I.jk:0)|(r.sampleAlphaOnly?I.Iv:0),this._fillMaterialKey=r.materialKey}static fromCIMFill(r,n){const[o,a]=vt(r.scaleInfo,n);return new Ze(r,o,a)}bindFeature(r,n,o){const a=r.readLegacyFeature();this._dynamicPropertyMap.forEach((m,_)=>{this[_]=m(a,n,o)});const h=D.dk.load(this._fillMaterialKey),c=this._materialCache,u=(0,this._cimFillLayer.materialHash)(a,n,o),f=c.get(u);let d=null;if(f&&st(f.spriteMosaicItem)&&(d=f.spriteMosaicItem),d){const{rect:m,width:_,height:p}=d,y=m.x+I.fL,x=m.y+I.fL,g=y+_,S=x+p;let v=Math.round((0,P.F2)(this._height));v<=0&&(v=S-x);let T=Math.round((0,P.F2)(this._height/p*_||0));T<=0&&(T=g-y);const C=this._scaleX,V=1;this.tl=(0,w.UJ)(y,x),this.br=(0,w.UJ)(g,S),this.aux21=(0,w.UJ)(T,v),this.aux22=(0,w.UJ)(this._offsetX,this._offsetY),this.aux3=(0,w.Jz)(128*C,128*V,this._angle,0),h.sdf=d.sdf,h.pattern=!0,h.textureBinding=d.textureBinding}else this.tl=0,this.br=0,this.aux21=0,this.aux22=0,this.aux3=0,h.sdf=!1,h.pattern=!1,h.textureBinding=0;this._materialKey=h.data}}class Ge extends(ki(Te)){constructor(r,n,o){super(r),this._minMaxZoom=(0,w.UJ)(Math.round(n*I.MI),Math.round(o*I.MI)),this._cimLineLayer=r;let a=0;B(r.width)||(a=.5*(0,P.F2)(r.width)),this._dynamicPropertyMap.set("_halfWidth",(_,p,y)=>B(r.width)?.5*(0,P.F2)(r.width(_,p,y)):a),B(r.cap)?this._dynamicPropertyMap.set("_capType",r.cap):this._capType=r.cap,B(r.join)?this._dynamicPropertyMap.set("_joinType",r.join):this._joinType=r.join;const c=r.color;B(c)?this._dynamicPropertyMap.set("_fillColor",(p,y,x)=>(0,Z.t2)(c(p,y,x))):this._fillColor=c&&(0,Z.t2)(c)||0;const u=r.miterLimit;if(B(u)?this._dynamicPropertyMap.set("_miterLimitCosine",(p,y,x)=>Ee(u(p,y,x))):this._miterLimitCosine=Ee(u),(0,W.pC)(r.effects)){const _=r.effects;B(_)?this._dynamicPropertyMap.set("_effects",_):this._effects=_}this._scaleFactor=r.scaleFactor||1,this._isDashed=null!=r.dashTemplate,this.tessellationProperties._bitset=(r.colorLocked?I.Uh:0)|(r.scaleDash?I._6:0)|(r.sampleAlphaOnly?I.Iv:0),this._materialKey=r.materialKey,this._initializeTessellator(!0)}static fromCIMLine(r,n){const[o,a]=vt(r.scaleInfo,n);return new Ge(r,o,a)}bindFeature(r,n,o){const a=r.readLegacyFeature();this._dynamicPropertyMap.forEach((m,_)=>{this[_]=m(a,n,o)}),this._halfWidth*=this._scaleFactor;const h=this._materialCache,c=(0,this._cimLineLayer.materialHash)(a,n,o),u=h.get(c);let f=null;if(u&&st(u.spriteMosaicItem)&&(f=u.spriteMosaicItem),f){this._hasPattern=!0;const{rect:m,width:_,height:p}=f,y=m.x+I.fL,x=m.y+I.fL,g=y+_,S=x+p;this.tessellationProperties._tl=(0,w.UJ)(y,x),this.tessellationProperties._br=(0,w.UJ)(g,S)}else this._hasPattern=!1,this.tessellationProperties._tl=0,this.tessellationProperties._br=0;this.tessellationProperties._fillColor=this._fillColor,this.tessellationProperties._halfWidth=this._halfWidth,this.tessellationProperties.offset=0,this.tessellationProperties._halfReferenceWidth=this.tessellationProperties._halfWidth;const d=D.a.load(this._materialKey);f&&(d.sdf=f.sdf,d.pattern=!0,d.textureBinding=f.textureBinding),this._materialKey=d.data}}const Hs=(0,ve.c)(),Ys=(0,Ae.c)();class Ke extends(Ci(Te)){constructor(r,n,o){super(r),this._cimMarkerLayer=r,this._minMaxZoom=(0,w.UJ)(Math.round(n*I.MI),Math.round(o*I.MI));const a=r.color;B(a)?this._dynamicPropertyMap.set("_fillColor",(y,x,g)=>(0,Z.t2)(a(y,x,g))):this._fillColor=(0,Z.t2)(a);const h=r.outlineColor;B(h)?this._dynamicPropertyMap.set("_outlineColor",(y,x,g)=>(0,Z.t2)(h(y,x,g))):this._outlineColor=(0,Z.t2)(h);const c=r.size;B(c)?this._dynamicPropertyMap.set("_size",(y,x,g)=>(0,P.F2)(c(y,x,g))):this._size=(0,P.F2)(c)||0;const u=r.scaleX;B(u)?this._dynamicPropertyMap.set("_scaleX",u):this._scaleX=u;const f=r.offsetX;B(f)?this._dynamicPropertyMap.set("xOffset",(y,x,g)=>(0,P.F2)(f(y,x,g))):this.xOffset=(0,P.F2)(f)||0;const d=r.offsetY;B(d)?this._dynamicPropertyMap.set("yOffset",(y,x,g)=>(0,P.F2)(d(y,x,g))):this.yOffset=(0,P.F2)(d)||0;const m=r.outlineWidth;B(m)?this._dynamicPropertyMap.set("_outlineWidth",(y,x,g)=>(0,P.F2)(m(y,x,g))):this._outlineWidth=(0,P.F2)(m)||0;const _=r.rotation;if(B(_)?this._dynamicPropertyMap.set("_angle",_):this._angle=_||0,(0,W.pC)(r.effects)){const p=r.effects;B(p)?this._dynamicPropertyMap.set("_effects",p):this._effects=p}if((0,W.pC)(r.markerPlacement)){const p=r.markerPlacement;B(p)?this._dynamicPropertyMap.set("_markerPlacement",p):this._markerPlacement=p}this._scaleFactor=(0,W.Pt)(r.scaleFactor,1),this._bitSet=(r.alignment===j.v2.MAP?1:0)|(r.colorLocked?1:0)<<1|(r.scaleSymbolsProportionally?1:0)<<3,this._materialKey=r.materialKey}static fromCIMMarker(r,n){const[o,a]=vt(r.scaleInfo,n);return new Ke(r,o,a)}bindFeature(r,n,o){const a=r.readLegacyFeature(),h=r.getObjectId();this._dynamicPropertyMap.forEach((Yt,jt)=>{this[jt]=Yt(a,n,o)});const c=this._cimMarkerLayer.materialHash,u="function"==typeof c?c(a,n,o,h):c,f=this._materialCache.get(u);if(!f||!st(f.spriteMosaicItem)||!f.spriteMosaicItem)return void H.Z.getLogger("esri.views.2d.engine.webgl.WGLDynamicMarkerTemplate").error(new E.Z("mapview-cim","Encountered an error when binding feature"));const d=f.spriteMosaicItem,m=this._cimMarkerLayer.sizeRatio,_=d.width/d.height*this._scaleX,p=this._cimMarkerLayer.rotateClockwise?this._angle:-this._angle;let y=this._size,x=y*_;const g=this.xOffset,S=this.yOffset;this.xOffset*=this._scaleFactor,this.yOffset*=this._scaleFactor;const v=this._cimMarkerLayer.scaleSymbolsProportionally&&this._cimMarkerLayer.frameHeight?this._size/(0,P.F2)(this._cimMarkerLayer.frameHeight):1,T=this._outlineWidth*v,C=(0,P.F2)(this._cimMarkerLayer.referenceSize);let V=0,A=0;const R=this._cimMarkerLayer.anchorPoint;R&&(this._cimMarkerLayer.isAbsoluteAnchorPoint?this._size&&(V=(0,P.F2)(R.x)/(this._size*_),A=(0,P.F2)(R.y)/this._size):(V=R.x,A=R.y)),this._anchorX=V,this._anchorY=A,this._sizeOutlineWidth=(0,w.Jz)(Math.round(Math.min(Math.sqrt(128*x),255)),Math.round(Math.min(Math.sqrt(128*y),255)),Math.round(Math.min(Math.sqrt(128*T),255)),Math.round(Math.min(Math.sqrt(128*C),255))),this.angle=p;const N=Math.round(64*m);this._bitestAndDistRatio=(0,w.UJ)(this._bitSet,N);const X=d.rect.x+I.fL,pt=d.rect.y+I.fL,St=X+d.width,Tt=pt+d.height;this._texUpperLeft=(0,w.UJ)(X,pt),this._texUpperRight=(0,w.UJ)(St,pt),this._texBottomLeft=(0,w.UJ)(X,Tt),this._texBottomRight=(0,w.UJ)(St,Tt);const ut=D.mE.load(this._materialKey);ut.sdf=d.sdf,ut.pattern=!0,ut.textureBinding=d.textureBinding,this._materialKey=ut.data,x*=m,y*=m,x*=this._scaleFactor,y*=this._scaleFactor,x*=d.rect.width/d.width,y*=d.rect.height/d.height,this._computedWidth=x,this._computedHeight=y,this._applyTransformation(Ys,Hs),this.xOffset=g,this.yOffset=S}}function Ne(l){const r=new Array(l.length);for(let n=0;n(0,Z.t2)(h(S,v,T))):this._color=(0,Z.t2)(h);const c=r.outlineColor;let u,d,_;if(B(c)?this._dynamicPropertyMap.set("_haloColor",(S,v,T)=>(0,Z.t2)(c(S,v,T))):this._haloColor=(0,Z.t2)(c),B(r.size)||(u=Math.min(Math.round((0,P.F2)(r.size*r.sizeRatio)),127)),this._dynamicPropertyMap.set("_size",(g,S,v)=>B(r.size)?Math.min(Math.round((0,P.F2)(r.size(g,S,v)*r.sizeRatio)),127):u),B(r.outlineSize)?this._dynamicPropertyMap.set("_haloSize",(S,v,T)=>Math.min(Math.floor(5*(0,P.F2)(r.outlineSize(S,v,T)*r.sizeRatio)),127)):this._haloSize=Math.min(Math.floor(5*(0,P.F2)(r.outlineSize*r.sizeRatio)),127),B(r.offsetX)||(d=Math.round((0,P.F2)(r.offsetX*r.sizeRatio))),this._dynamicPropertyMap.set("_xOffset",(g,S,v)=>B(r.offsetX)?Math.round((0,P.F2)(r.offsetX(g,S,v)*r.sizeRatio)):d),B(r.offsetY)||(_=Math.round((0,P.F2)(r.offsetY*r.sizeRatio))),this._dynamicPropertyMap.set("_yOffset",(g,S,v)=>B(r.offsetY)?Math.round((0,P.F2)(r.offsetY(g,S,v)*r.sizeRatio)):_),B(r.angle)?this._dynamicPropertyMap.set("_angle",r.angle):this._angle=r.angle,B(r.horizontalAlignment)?this._dynamicPropertyMap.set("_horizontalAlignment",r.horizontalAlignment):this._horizontalAlignment=r.horizontalAlignment,B(r.verticalAlignment)?this._dynamicPropertyMap.set("_verticalAlignment",r.verticalAlignment):this._verticalAlignment=r.verticalAlignment,(0,W.pC)(r.effects)){const g=r.effects;B(g)?this._dynamicPropertyMap.set("_effects",g):this._effects=g}if((0,W.pC)(r.markerPlacement)){const g=r.markerPlacement;B(g)?this._dynamicPropertyMap.set("_markerPlacement",g):this._textPlacement=g}B(r.text)?this._dynamicPropertyMap.set("_text",r.text):this._text=r.text,this._scaleFactor=a;const y=Math.min(Math.round((0,P.F2)(r.referenceSize*r.sizeRatio)),127);this._referenceSize=Math.round(Math.sqrt(256*y)),this._materialKey=r.materialKey;const x=D.qr.load(this._materialKey);x.sdf=!0,this._bitset=(r.alignment===j.v2.MAP?1:0)|(r.colorLocked?1:0)<<1,this._materialKey=x.data,this._decoration="none",this._lineHeight=1,this._lineWidth=512,this._isCIM=!0}static fromCIMText(r,n){const[o,a]=vt(r.scaleInfo,n);return new Je(r,o,a)}analyze(r,n,o,a){var h=()=>super.analyze,c=this;return(0,F.Z)(function*(){const u=n.readLegacyFeature(),f=function js(l,r,n,o){return"string"==typeof l.text?l.text:"function"==typeof l.text?l.text(r,n,o):""}(c._cimTextLayer,u,o,a),d=yield h().call(c,r,n,o,a,Ne(f));return d&&d.glyphMosaicItems&&c._textToGlyphs.set(f,d.glyphMosaicItems),d})()}bindFeature(r,n,o){const a=r.readLegacyFeature();if(this._dynamicPropertyMap.forEach((c,u)=>{this[u]=c(a,n,o)}),!this._text||0===this._text.length)return void(this._shapingInfo=null);this._size*=this._scaleFactor,this._scale=this._size/I.Ex,this._xOffset*=this._scaleFactor,this._yOffset*=this._scaleFactor,this._xAlignD=(0,dt.kH)((0,W.Pt)(this._horizontalAlignment,"center")),this._yAlignD=(0,dt.b7)((0,W.Pt)(this._verticalAlignment,"baseline"));const h=this._textToGlyphs.get(this._text);this.bindTextInfo(h,!1)}}class _t extends(Zi(ee)){constructor(r,n,o,a,h,c,u,f,d,m,_,p,y,x,g,S){super(),this._effects=x;const v=D.dk.load(r);n&&(v.sdf=n.sdf,v.pattern=!0,v.textureBinding=n.textureBinding),this.fillColor=o,this.tl=a,this.br=h,this.aux21=(0,w.UJ)(c,u),this.aux22=(0,w.UJ)(f,d),this.aux3=(0,w.Jz)(m,_,p,0),this._bitset=y,this._minMaxZoom=(0,w.UJ)(Math.round(g*I.MI),Math.round(S*I.MI)),this._materialKey=v.data}static fromCIMFill(r,n,o){const a=r.color,h=a&&(0,Z.t2)(a)||0,c=r.materialKey,[u,f]=vt(r.scaleInfo,o),d=(r.colorLocked?I.Uh:0)|(r.applyRandomOffset?I.jk:0)|(r.sampleAlphaOnly?I.Iv:0);if(!n)return new _t(c,null,h,0,0,0,0,0,0,0,0,0,d,r.effects,u,f);const{rect:m,width:_,height:p}=n,y=r.scaleX||1,x=m.x+I.fL,g=m.y+I.fL,S=x+_,v=g+p,T=(0,P.F2)(r.height),C=y*T;let V=Math.round(T);V<=0&&(V=v-g);let A=Math.round(C);A<=0&&(A=S-x);const R=(0,P.F2)(r.offsetX||0),N=(0,P.F2)(-r.offsetY||0),X=(0,w.UJ)(x,g),pt=(0,w.UJ)(S,v);return new _t(c,n,h,X,pt,A,V,R,N,128,128,(0,Re.s5)(r.angle),d,r.effects,u,f)}static fromSimpleFill(r,n,o=!1){const{color:a}=r,h=a&&"esriSFSNull"!==r.style&&(0,Z.aH)(a)||0,c=o?I.Uh:0,u=r.materialKey;let f;if(n){const{rect:d,width:m,height:_,pixelRatio:p}=n,y=d.x+I.fL,x=d.y+I.fL,g=y+m,S=x+_,v=(0,w.UJ)(y,x),T=(0,w.UJ)(g,S);f=new _t(u,n,h,v,T,m/p,_/p,0,0,128,128,0,c,null,0,lt)}else f=new _t(u,null,h,0,0,0,0,0,0,0,0,0,c,null,0,lt);return f._maybeAddLineTemplate(r),f}static fromPictureFill(r,n,o=!1){const a=I.ru,{rect:h,width:c,height:u}=n,f=h.x+I.fL,d=h.y+I.fL,m=f+c,_=d+u,p=(0,w.UJ)(f,d),y=(0,w.UJ)(m,_),x=Math.round((0,P.F2)(r.width)),g=Math.round((0,P.F2)(r.height)),S=(0,P.F2)(r.xoffset),v=(0,P.F2)(-r.yoffset),V=new _t(r.materialKey,n,a,p,y,x,g,S,v,128*r.xscale,128*r.yscale,0,o?I.Uh:0,null,0,lt);return V._maybeAddLineTemplate(r),V}}class Qs{constructor(){this._resolver=null}isHeld(){return!!this._resolver}acquire(){var r=this;return(0,F.Z)(function*(){r._resolver?(yield r._resolver.promise,yield r.acquire()):r._resolver=(0,Y.hh)()})()}release(){const r=this._resolver;this._resolver=null,r?.resolve()}}function Xe(){return(Xe=(0,F.Z)(function*(l,r,n){try{yield l.acquire(),yield r(n),l.release()}catch(o){throw l.release(),o}})).apply(this,arguments)}const qs={marker:O.LW.MARKER,fill:O.LW.FILL,line:O.LW.LINE,text:O.LW.TEXT};class tr{constructor(r,n,o,a){const h={minScale:n?.minScale,maxScale:n?.maxScale},c=function er(l){return l.minScale||l.maxScale?l.minScale+"-"+l.maxScale:""}(h);this.layers=r,this.data=n,this.hash=this._createHash()+c,this.rendererKey=o;const u={isOutline:!1,placement:null,symbologyType:O.mD.DEFAULT,vvFlags:o};for(const f of r){const d=qs[f.type];u.isOutline="line"===f.type&&f.isOutline,f.materialKey=(0,D.jj)(d,u),f.maxVVSize=a,f.scaleInfo=h,f.templateHash+=c}}get type(){return"expanded-cim"}_createHash(){let r="";for(const n of this.layers)r+=n.templateHash;return r}}var Xi=L(83100),ir=L(21726),sr=L(84687),rr=L(29840),Pt=L(71937);function nr(l,r,n){return He.apply(this,arguments)}function He(){return(He=(0,F.Z)(function*(l,r,n){if(!l.name)throw new E.Z("style-symbol-reference-name-missing","Missing name in style symbol reference");if(l.styleName&&"Esri2DPointSymbolsStyle"===l.styleName)return or(l,n);try{return ar(yield(0,Pt.n2)(l,r,n),l.name,r,n)}catch(o){return(0,Y.k_)(o),null}})).apply(this,arguments)}function or(l,r){return Ye.apply(this,arguments)}function Ye(){return(Ye=(0,F.Z)(function*(l,r){const n=Pt.wm.replace(/\{SymbolName\}/gi,l.name);try{const o=yield(0,Pt.EJ)(n,r);return(0,Pt.KV)(o.data)}catch(o){return(0,Y.k_)(o),null}})).apply(this,arguments)}function ar(l,r,n,o){return je.apply(this,arguments)}function je(){return(je=(0,F.Z)(function*(l,r,n,o){const a=l.data,h={portal:n&&(0,W.pC)(n.portal)?n.portal:sr.Z.getDefault(),url:(0,ir.mN)(l.baseUrl),origin:"portal-item"},c=a.items.find(f=>f.name===r);if(!c)throw new E.Z("symbolstyleutils:symbol-name-not-found",`The symbol name '${r}' could not be found`,{symbolName:r});let u=(0,rr.f)((0,Pt.v9)(c,"cimRef"),h);(0,Xi.XO)()&&(u=(0,Xi.pJ)(u));try{const f=yield(0,Pt.EJ)(u,o);return(0,Pt.KV)(f.data)}catch(f){return(0,Y.k_)(f),null}})).apply(this,arguments)}const Hi=function(){var l=(0,F.Z)(function*(r,n,o){return new tr(yield(0,Gi.c)(r.data,n,o),r.data,r.rendererKey,r.maxVVSize)});return function(n,o,a){return l.apply(this,arguments)}}(),ct=function(){var l=(0,F.Z)(function*(r,n,o,a){if(!r)return null;if("cim"===r.type)return Hi(r,n,o);if("web-style"===r.type){const h={type:"cim",data:yield nr(r,null,a),rendererKey:r.rendererKey,maxVVSize:r.maxVVSize};return Hi(h,n,o)}return r});return function(n,o,a,h){return l.apply(this,arguments)}}();function Le(l){if(!l)return null;const{type:r,cim:n,url:o,materialHash:a}=l,h={cim:n,type:r,mosaicHash:a,url:o,size:null,dashTemplate:null,path:null,text:null,fontName:null,animatedSymbolProperties:null};switch(r){case"marker":h.size=l.size,h.path=l.path,h.animatedSymbolProperties=l.animatedSymbolProperties;break;case"line":h.dashTemplate=l.dashTemplate;break;case"text":h.text=l.text,h.fontName=l.fontName}return h}const et=H.Z.getLogger("esri.views.2d.engine.webgl.mesh.templates.WGLTemplateStore"),Yi=new Array,Qe={isOutline:!1,placement:null,symbologyType:O.mD.DEFAULT,vvFlags:0},lr={...Nt.eG,hash:JSON.stringify(Nt.eG),materialKey:(0,D.jj)(O.LW.MARKER,Qe)},hr={...Nt.wW,hash:JSON.stringify(Nt.wW),materialKey:(0,D.jj)(O.LW.LINE,Qe)},cr={...Nt.lj,hash:JSON.stringify(Nt.lj),materialKey:(0,D.jj)(O.LW.FILL,Qe)};function yt(l,r){const n=l.length;return l.push(null),r.then(o=>l[n]=o),l}function ae(l){return!!(1&l)}class fr{constructor(r,n){this._idCounter=1,this._templateIdCounter=1,this._idToTemplateGroup=new Map,this._symbolToTemplate=new Map,this._fetchQueue=[],this._idToResolver=new Map,this._cimTemplateCache=new Map,this._cimAnalyses=[],this._lock=new Qs,this._fetchResource=r,this._tileInfo=n}get _markerError(){return this._errorTemplates.marker[0]}get _fillError(){return this._errorTemplates.fill[0]}get _lineError(){return this._errorTemplates.line[0]}get _textError(){return this._errorTemplates.line[0]}createTemplateGroup(r,n){this._initErrorTemplates();const o=r.hash;if(this._symbolToTemplate.has(o))return this._symbolToTemplate.get(o);const a=new Array;n&&this._createMeshTemplates(a,n,!0),this._createMeshTemplates(a,r,!1);const h=this._createGroupId("expanded-cim"===r.type&&dr(r));return this._idToTemplateGroup.set(h,a),this._symbolToTemplate.set(o,h),h}getTemplateGroup(r){return this._idToTemplateGroup.has(r)?this._idToTemplateGroup.get(r):Yi}getDynamicTemplateGroup(r){return this._idToTemplateGroup.has(r)?(ae(r)||et.error("mapview-template-store",`Id ${r} does not refer to a dynamic template`),this._idToTemplateGroup.get(r)):Yi}getMosaicItem(r,n){const o=this._createTemplateId(),a=new Promise(h=>this._idToResolver.set(o,h));return this._fetchQueue.push({symbol:r,id:o,glyphIds:n}),a}finalize(r){return this._fetchQueue.length||this._lock.isHeld()?function $s(l,r,n){return Xe.apply(this,arguments)}(this._lock,this._fetchAllQueuedResources.bind(this),r):Promise.resolve()}_initErrorTemplates(){this._errorTemplates||(this._errorTemplates={fill:this._createMeshTemplates([],cr,!1),marker:this._createMeshTemplates([],lr,!1),line:this._createMeshTemplates([],hr,!1)})}_fetchAllQueuedResources(r){if(!this._fetchQueue.length)return Promise.resolve();const n=this._fetchQueue,o=this._cimAnalyses;return this._fetchQueue=[],this._cimAnalyses=[],Promise.all(o).then(()=>this._fetchResource(n,r).then(a=>{for(const{id:h,mosaicItem:c}of a)this._idToResolver.get(h)(c),this._idToResolver.delete(h)})).catch(a=>{(0,Y.D_)(a)?this._fetchQueue=this._fetchQueue.concat(n):function ur(l){return"worker:port-closed"===l.name}(a)||et.error(new E.Z("mapview-template-store","Unable to fetch requested texture resources",a))})}_createGroupId(r){return this._idCounter++<<1|(r?1:0)}_createTemplateId(){return this._templateIdCounter++}_createSMS(r){var n=this;return(0,F.Z)(function*(){const{spriteMosaicItem:o}=yield n.getMosaicItem(r);return st(o,et)?ht.fromSimpleMarker(r,o):n._markerError})()}_createPMS(r){var n=this;return(0,F.Z)(function*(){const{spriteMosaicItem:o}=yield n.getMosaicItem(r);return st(o,et)?ht.fromPictureMarker(r,o):n._markerError})()}_createSFS(r,n){var o=this;return(0,F.Z)(function*(){const{spriteMosaicItem:a}=yield o.getMosaicItem(r);return st(a,et)?_t.fromSimpleFill(r,a,n):o._fillError})()}_createPFS(r,n){var o=this;return(0,F.Z)(function*(){const{spriteMosaicItem:a}=yield o.getMosaicItem(r);return st(a,et)?_t.fromPictureFill(r,a,n):o._fillError})()}_createSLS(r,n){var o=this;return(0,F.Z)(function*(){const{spriteMosaicItem:a}=yield o.getMosaicItem(r);return st(a,et)?mt.fromSimpleLine(r,a):o._lineError})()}_createLMS(r){var n=this;return(0,F.Z)(function*(){const{spriteMosaicItem:o}=yield n.getMosaicItem(r);return st(o,et)?ht.fromLineSymbolMarker(r,o):n._markerError})()}_createTS(r){var n=this;return(0,F.Z)(function*(){const{glyphMosaicItems:o}=yield n.getMosaicItem(r);return Zt.fromText(r,o)})()}_createCIMText(r){var n=this;return(0,F.Z)(function*(){const{glyphMosaicItems:o}=yield n.getMosaicItem(Le(r),Ne(r.text));return st(o,et)?Zt.fromCIMText(r,o,n._tileInfo):n._textError})()}_createCIMFill(r){var n=this;return(0,F.Z)(function*(){const{spriteMosaicItem:o}=yield n.getMosaicItem(Le(r));return st(o,et)?_t.fromCIMFill(r,o,n._tileInfo):n._fillError})()}_createCIMLine(r){var n=this;return(0,F.Z)(function*(){const{spriteMosaicItem:o}=yield n.getMosaicItem(Le(r));return st(o,et)?mt.fromCIMLine(r,o,n._tileInfo):n._lineError})()}_createCIMMarker(r){var n=this;return(0,F.Z)(function*(){const{spriteMosaicItem:o}=yield n.getMosaicItem(Le(r));return st(o,et)?ht.fromCIMMarker(r,o,n._tileInfo):n._markerError})()}_createCIM(r){var n=this;return(0,F.Z)(function*(){const o=r.templateHash;if(n._cimTemplateCache.has(o))return n._cimTemplateCache.get(o);let a;switch(r.type){case"marker":a=yield n._createCIMMarker(r);break;case"line":a=yield n._createCIMLine(r);break;case"fill":a=yield n._createCIMFill(r);break;case"text":a=yield n._createCIMText(r)}return n._cimTemplateCache.set(o,a),a})()}_createDynamicCIM(r){var n=this;return(0,F.Z)(function*(){const o=r.templateHash;if(n._cimTemplateCache.has(o))return n._cimTemplateCache.get(o);let a;switch(r.type){case"marker":a=Ke.fromCIMMarker(r,n._tileInfo);break;case"line":a=Ge.fromCIMLine(r,n._tileInfo);break;case"fill":a=Ze.fromCIMFill(r,n._tileInfo);break;case"text":a=Je.fromCIMText(r,n._tileInfo)}return n._cimTemplateCache.set(o,a),a})()}_createPrimitiveMeshTemplates(r,n,o){switch(n.type){case"esriSMS":return yt(r,this._createSMS(n));case"esriPMS":return yt(r,this._createPMS(n));case"esriSFS":return yt(r,this._createSFS(n,o));case"line-marker":return yt(r,this._createLMS(n));case"esriPFS":return yt(r,this._createPFS(n,o));case"esriSLS":return yt(r,this._createSLS(n,!1));case"esriTS":return yt(r,this._createTS(n));default:return et.error("Unable to create mesh template for unknown symbol type {: $ }{symbol.type}"),r}}_createMeshTemplates(r,n,o){if(n.type.includes("3d"))return et.error("3D symbols are not supported with MapView"),r;if("expanded-cim"===n.type){for(const a of n.layers)yt(r,"function"==typeof a.materialHash?this._createDynamicCIM(a):this._createCIM(a));return r}if("composite-symbol"===n.type){for(const a of n.layers)this._createPrimitiveMeshTemplates(r,a,o);return r}return"cim"===n.type||"label"===n.type||"web-style"===n.type?r:this._createPrimitiveMeshTemplates(r,n,o)}}const dr=l=>{if(!l.layers)return!1;for(const r of l.layers)if("function"==typeof r.materialHash)return!0;return!1};class mr{constructor(r,n,o){this._loadPromise=(0,xi.j)(),this._geometryType=r,this._idField=n,this._templateStore=o}update(r,n){(0,W.pC)(r.mesh.labels)&&(this._labelTemplates=this._createLabelTemplates(r.mesh.labels,n)),this._schema=r}_createLabelTemplates(r,n){const o=new Map;if("simple"===r.type){for(const a of r.classes){const h=ge.fromLabelClass(a,n);o.set(a.index,h)}return o}for(const a in r.classes){const h=r.classes[a];for(const c of h){const u=ge.fromLabelClass(c,n);o.set(c.index,u)}}return o}get templates(){return this._templateStore}analyze(r,n,o,a,h,c,u){var f=this;return(0,F.Z)(function*(){if((0,Y.Hc)(u))return;let d;"dictionary"===o.type&&(d=yield o.analyze(f._idField,r.copy(),n,h,c,u));let m=0;for(;r.next();){let _;if(_=d?d[m++]:(0,W.pC)(a)&&(0,Et.nE)(r.getDisplayId())&&1!==r.readAttribute("cluster_count")?a.match(f._idField,r,f._geometryType,h,c):o.match(f._idField,r,f._geometryType,h,c),r.setGroupId(_),ae(_)){const p=f._templateStore.getDynamicTemplateGroup(_);for(const y of p)y&&y.analyze&&y.analyze(f._templateStore,r,h,c)}}return yield f._loadPromise,f._templateStore.finalize(u)})()}analyzeGraphics(r,n,o,a,h,c){var u=this;return(0,F.Z)(function*(){if((0,Y.Hc)(c))return;const f=r.getCursor();for(o&&(yield o.analyze(u._idField,f.copy(),n,a,h,c));f.next();){let d=f.getGroupId();if(null!=d&&-1!==d||(d=o.match(u._idField,f,f.geometryType,a,h),f.setGroupId(d)),ae(d)){const m=u._templateStore.getDynamicTemplateGroup(d);for(const _ of m)_&&_.analyze&&_.analyze(u._templateStore,f,a,h)}f.setGroupId(d)}return yield u._loadPromise,u._templateStore.finalize(c)})()}writeGraphic(r,n,o,a){const h=n.getGroupId(),c=n.getDisplayId(),u=this._templateStore.getTemplateGroup(h);if(r.featureStart(n.insertAfter,0),null!=c){if(ae(h))for(const f of u)f&&f.bindFeature(n,null,null);if(u){for(const f of u)f&&f.write(r,n,o,a);r.featureEnd()}}}writeCursor(r,n,o,a,h,c,u){const f=n.getGroupId(),d=n.getDisplayId(),m=this._templateStore.getTemplateGroup(f),_=this._schema.mesh.sortKey;let p=0;if((0,W.pC)(_)&&(p=null!=_.fieldIndex?n.getComputedNumericAtIndex(_.fieldIndex):n.readAttribute(null!=_.field?_.field:this._idField),p*="asc"===_.order?1:-1),r.featureStart(0,null==p||isNaN(p)?0:p),null!=d&&m){if(ae(f))for(const y of m)y.bindFeature(n,o,a);for(const y of m)y.write(r,n,h,u);if((0,W.pC)(c)&&r.hasRecords){const y=c&&this._findLabelRef(m);this._writeLabels(r,n,c,y,h,u)}r.featureEnd()}}_findLabelRef(r){for(const n of r)if(n instanceof ht)return n;return null}_writeLabels(r,n,o,a,h,c){for(const u of o)if((0,W.pC)(u)&&u){const{glyphs:f,rtl:d,index:m}=u,_=this._labelTemplates.get(m);_.setZoomLevel(h),_.bindReferenceTemplate(a),_.bindTextInfo(f,d),_.write(r,n,null,c)}}}var _r=L(93961),yr=L(46679),pr=L(39236);const $e=H.Z.getLogger("esri/views/2d/engine/webgl/util/Matcher");function qe(l,r,n,o){return ti.apply(this,arguments)}function ti(){return(ti=(0,F.Z)(function*(l,r,n,o){switch(l.type){case"simple":case"heatmap":return Mt.fromBasicRenderer(l,r,n,o);case"map":return ii.fromUVRenderer(l,r,n,o);case"interval":return ei.fromCBRenderer(l,r,n,o);case"dictionary":return oi.fromDictionaryRenderer(l,r,n,o);case"pie-chart":return be.fromPieChartRenderer(l,r,n,o);case"subtype":return be.fromSubtypes(l,r,n,o)}})).apply(this,arguments)}class Mt{constructor(){this.type="feature",this._defaultResult=null}static fromBasicRenderer(r,n,o,a){return(0,F.Z)(function*(){const h=new Mt;if(r.symbol){const c=yield ct(r.symbol,o,a),u=n.createTemplateGroup(c,null);h.setDefault(u)}return h})()}static fromPieChartRenderer(r,n,o,a){return(0,F.Z)(function*(){const h=new Mt;if(r.markerSymbol){const c=yield ct(r.markerSymbol,o,a);let u;r.fillSymbol&&(u=yield ct(r.fillSymbol,o,a));const f=n.createTemplateGroup(c,u);h.setDefault(f)}return h})()}size(){return 1}getDefault(){return this._defaultResult}setDefault(r){this._defaultResult=r}match(r,n,o,a,h){return this.getDefault()}analyze(r,n,o,a,h,c){return(0,F.Z)(function*(){return null})()}}class be extends Mt{constructor(r,n){super(),this._subMatchers=r,this._subtypeField=n}static fromSubtypes(r,n,o,a){return(0,F.Z)(function*(){const h=new Map,c=[];for(const u in r.renderers){const f=parseInt(u,10),d=qe(r.renderers[u],n,o,a).then(m=>h.set(f,m));c.push(d)}return yield Promise.all(c),new be(h,r.subtypeField)})()}match(r,n,o,a,h){const c=n.readAttribute(this._subtypeField),u=this._subMatchers.get(c);return u?u.match(r,n,o,a,h):null}}class ei extends Mt{constructor(r,n,o,a){super(),this.type="interval",this._intervals=[],this._isMaxInclusive=n,this._fieldIndex=a,this._field=r,this._normalizationInfo=o}static fromCBRenderer(r,n,o,a){return(0,F.Z)(function*(){const{isMaxInclusive:h,normalizationField:c,normalizationTotal:u,normalizationType:f}=r,m=new ei(r.field,h,{normalizationField:c,normalizationTotal:u,normalizationType:f},r.fieldIndex),_=yield ct(r.backgroundFillSymbol,o,a);yield Promise.all(r.intervals.map(function(){var y=(0,F.Z)(function*(x){const g=yield ct(x.symbol,o,a),S=yield n.createTemplateGroup(g,_);m.add({min:x.min,max:x.max},S)});return function(x){return y.apply(this,arguments)}}()));const p=yield ct(r.defaultSymbol,o,a);if(p){const y=yield n.createTemplateGroup(p,_);m.setDefault(y)}return m})()}add(r,n){this._intervals.push({interval:r,result:n}),this._intervals.sort((o,a)=>o.interval.min-a.interval.min)}size(){return super.size()+this._intervals.length}match(r,n,o,a,h){if(null==this._fieldIndex&&!this._field)return this.getDefault();const c=null!=this._fieldIndex?n.getComputedNumericAtIndex(this._fieldIndex):this._getValueFromField(n);if(null==c||isNaN(c)||c===1/0||c===-1/0)return this.getDefault();for(let u=0;u=f.min&&_)return d}return this.getDefault()}_needsNormalization(){const r=this._normalizationInfo;return r&&(r.normalizationField||r.normalizationTotal||r.normalizationType)}_getValueFromField(r){const n=r.readAttribute(this._field);if(!this._needsNormalization()||null==n)return n;const{normalizationField:o,normalizationTotal:a,normalizationType:h}=this._normalizationInfo,c=!!o&&r.readAttribute(o);if(h)switch(h){case"esriNormalizeByField":return c?n/c:void 0;case"esriNormalizeByLog":return Math.log(n)*Math.LOG10E;case"esriNormalizeByPercentOfTotal":return n/a*100;default:return void $e.error(`Found unknown normalization type: ${h}`)}else $e.error("Normalization is required, but no type was set!")}}class ii extends Mt{constructor(r,n,o){super(),this.type="map",this._nullResult=null,this._resultsMap=new Map,this._fieldsIndex=o,this._fields=r,this._seperator=n||""}static fromUVRenderer(r,n,o,a){return(0,F.Z)(function*(){const h=r.fieldDelimiter,c=[r.field];r.field2&&c.push(r.field2),r.field3&&c.push(r.field3);const u=yield ct(r.backgroundFillSymbol,o,a),f=new ii(c,h,r.fieldIndex);yield Promise.all(r.map.map(function(){var m=(0,F.Z)(function*(_){const p=yield ct(_.symbol,o,a),y=yield n.createTemplateGroup(p,u);""===_.value?f.setNullResult(y):f.add(_.value,y)});return function(_){return m.apply(this,arguments)}}()));const d=yield ct(r.defaultSymbol,o,a);if(d){const m=yield n.createTemplateGroup(d,u);f.setDefault(m)}return f})()}setNullResult(r){this._nullResult=r}add(r,n){this._resultsMap.set(r.toString(),n)}size(){return super.size()+this._resultsMap.size}match(r,n,o,a,h){if(null==this._fieldsIndex&&!this._fields)return this.getDefault();const c=null!=this._fieldsIndex?n.getComputedStringAtIndex(this._fieldsIndex):this._getValueFromFields(n);if(null!==this._nullResult&&(null==c||""===c||""===c))return this._nullResult;if(null==c)return this.getDefault();const u=c.toString();return this._resultsMap.has(u)?this._resultsMap.get(u):this.getDefault()}_getValueFromFields(r){const n=[];for(const o of this._fields){const a=r.readAttribute(o);n.push(null==a||""===a?"":a)}return n.join(this._seperator)}}function si(){return(si=(0,F.Z)(function*(l,r){const n=l||1;if("number"==typeof n)return(a,h,c)=>n;const o=yield(0,yr.Yi)(n,r.spatialReference,r.fields);return(a,h,c)=>(0,pr.Z)(o,a,{$view:c},r.geometryType,h)||1})).apply(this,arguments)}let ri;function gr(){return ni.apply(this,arguments)}function ni(){return(ni=(0,F.Z)(function*(){return ri||(ri=L.e(3250).then(L.bind(L,3250))),ri})).apply(this,arguments)}class oi extends Mt{constructor(r,n,o,a,h,c){super(),this.type="dictionary",this._groupIdCache=new _r.Z(100),this._loader=r,this._fieldMap=r.fieldMap,this._symbolFields=r.getSymbolFields(),this._templates=n,this._info=o,this._scaleFn=a,this._schemaUtilsModule=h,this._symbolOptions=c}static fromDictionaryRenderer(r,n,o,a){return(0,F.Z)(function*(){const[{DictionaryLoader:h},c]=yield Promise.all([Promise.resolve().then(L.bind(L,29996)),gr()]),u=new h(r.url,r.config,r.fieldMap);yield u.fetchResources({spatialReference:o.spatialReference,fields:o.fields});const f=yield function xr(l,r){return si.apply(this,arguments)}(r.scaleExpression,o);return new oi(u,n,o,f,c,r.symbolOptions)})()}_analyzeFeature(r,n,o,a,h){var c=this;return(0,F.Z)(function*(){const u=r.readLegacyFeature(),f=c._scaleFn(u,o,a),d=c._attributeHash(u)+"-"+f,m=c._groupIdCache.get(d);if(m)return m;const _={...a,spatialReference:c._info.spatialReference,abortOptions:h,fields:c._info.fields},p=yield c._loader.getSymbolAsync(u,_),y=c._schemaUtilsModule.createSymbolSchema(p,c._symbolOptions),x=ct(y,c._info,n,h).then(g=>{if("expanded-cim"!==g.type)return $e.error(new E.Z("mapview-bad-type",`Found unexpected type ${g.type} in dictionary response`)),null;g.hash+="-"+f;for(const S of g.layers)S.scaleFactor=f,S.templateHash+="-"+f;return c._templates.createTemplateGroup(g,null)});return c._groupIdCache.put(d,x,1),x})()}analyze(r,n,o,a,h,c){var u=this;return(0,F.Z)(function*(){const f=n.getCursor(),d=[];for(;f.next();)d.push(u._analyzeFeature(f,o,a,h,c));return Promise.all(d)})()}match(r,n,o,a,h){return null}_attributeHash(r){let n="";for(const o of this._symbolFields){const a=this._fieldMap[o];a&&(n+=r.attributes[a]+"-")}return n}}var vr=L(13112);class Mr{constructor(r){this._remoteClient=r,this._resourceMap=new Map,this._inFlightResourceMap=new Map,this.geometryEngine=null}destroy(){}fetchResource(r,n){var o=this;return(0,F.Z)(function*(){const a=o._resourceMap,h=a.get(r);if(h)return h;let c=o._inFlightResourceMap.get(r);if(c)return c;try{c=o._remoteClient.invoke("tileRenderer.fetchResource",{url:r},{...n}),o._inFlightResourceMap.set(r,c),c.then(u=>(o._inFlightResourceMap.delete(r),a.set(r,u),u))}catch(u){return(0,Y.D_)(u)?null:{width:0,height:0}}return c})()}getResource(r){return this._resourceMap.get(r)??null}}function ji(l,r){return(!l.minScale||l.minScale>=r)&&(!l.maxScale||l.maxScale<=r)}function Qi(l){const r=l.message,n={message:{data:{},tileKey:r.tileKey,tileKeyOrigin:r.tileKeyOrigin,version:r.version},transferList:new Array};for(const o in r.data){const a=r.data[o];if(n.message.data[o]=null,(0,W.pC)(a)){const h=a.stride,c=a.indices.slice(0),u=a.vertices.slice(0),f=a.records.slice(0),d={stride:h,indices:c,vertices:u,records:f,metrics:(0,W.yw)(a.metrics,m=>m.slice(0))};n.transferList.push(c,u,f),n.message.data[o]=d}}return n}let ai=class extends vr.Z{constructor(){super(...arguments),this.type="symbol",this._matchers={feature:null,aggregate:null},this._bufferData=new Map,this._bufferIds=new Map}initialize(){this.handles.add([this.tileStore.on("update",this.onTileUpdate.bind(this))]),this._resourceManagerProxy=new Mr(this.remoteClient)}destroy(){this._resourceManagerProxy.destroy()}get supportsTileUpdates(){return!0}forEachBufferId(l){this._bufferIds.forEach(r=>{r.forEach(l)})}update(l,r){var n=this;return(0,F.Z)(function*(){const o=r.schema.processors[0];if("symbol"!==o.type)return;const a=(0,Ct.Hg)(n._schema,o);((0,Ct.uD)(a,"mesh")||(0,Ct.uD)(a,"target"))&&(l.mesh=!0,l.why.mesh.push("Symbology changed"),n._schema=o,n._factory=n._createFactory(o),n._factory.update(o,n.tileStore.tileScheme.tileInfo))})()}onTileMessage(l,r,n,o){return(0,Y.k_)(o),this._onTileData(l,r,n,o)}onTileClear(l){return this._bufferData.delete(l.key.id),this._bufferIds.delete(l.key.id),this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:l.id,data:{clear:!0}})}onTileError(l,r,n){return this.remoteClient.invoke("tileRenderer.onTileError",{tileKey:l.id,error:r},{signal:n.signal})}onTileUpdate(l){for(const r of l.removed)this._bufferData.has(r.key.id)&&this._bufferData.delete(r.key.id),this._bufferIds.has(r.key.id)&&this._bufferIds.delete(r.key.id);for(const r of l.added)this._bufferData.forEach(n=>{for(const o of n)o.message.tileKey===r.id&&this._updateTileMesh("append",r,Qi(o),[],!1,!1,null)})}_addBufferData(l,r){this._bufferData.has(l)||this._bufferData.set(l,[]),this._bufferData.get(l).push(Qi(r))}_createFactory(l){const{geometryType:r,objectIdField:n,fields:o}=this.service,h={geometryType:r,fields:o,spatialReference:le.Z.fromJSON(this.spatialReference)},c=new fr((d,m)=>this.remoteClient.invoke("tileRenderer.getMaterialItems",d,m),this.tileStore.tileScheme.tileInfo),{matcher:u,aggregateMatcher:f}=l.mesh;return this._store=c,this._matchers.feature=qe(u,c,h,this._resourceManagerProxy),this._matchers.aggregate=(0,W.yw)(f,d=>qe(d,c,h,this._resourceManagerProxy)),new mr(r,n,c)}_onTileData(l,r,n,o){var a=this;return(0,F.Z)(function*(){(0,Y.k_)(o);const{type:h,addOrUpdate:c,remove:u,clear:f,end:d}=r,m=!!a._schema.mesh.sortKey;if(!c)return a.remoteClient.invoke("tileRenderer.onTileData",{tileKey:l.id,data:{type:h,addOrUpdate:null,remove:u,clear:f,end:d,sort:m}},o);const _=a._processFeatures(l,c,n,o,r.status.version);try{const p=yield _;if((0,W.Wi)(p))return a.remoteClient.invoke("tileRenderer.onTileData",{tileKey:l.id,data:{type:h,addOrUpdate:null,remove:u,clear:f,end:d,sort:m}},o);const y=[];for(const x of p){let g=!1;const S=x.message.bufferIds,v=l.key.id,T=x.message.tileKey;if(v!==T&&(0,W.pC)(S)){if(!a.tileStore.get(T)){a._addBufferData(v,x),y.push(x);continue}let C=a._bufferIds.get(T);C||(C=new Set,a._bufferIds.set(T,C));const V=Array.from(S);for(const A of V){if(C.has(A)){g=!0;break}C.add(A)}}g||(a._addBufferData(v,x),y.push(x))}yield Promise.all(y.map(x=>{const g=l.key.id===x.message.tileKey;return a._updateTileMesh(h,l,x,g?r.remove:[],g&&r.end,r.clear,o.signal)}))}catch(p){a._handleError(l,p,o)}})()}_updateTileMesh(l,r,n,o,a,h,c){var u=this;return(0,F.Z)(function*(){const f=l,d=n.message.tileKey,m=!!u._schema.mesh.sortKey;d!==r.key.id&&(a=!1);const _=(0,W.yw)(n,g=>g.message),p=(0,W.yw)(n,g=>g.transferList)||[],y={type:f,addOrUpdate:_,remove:o,clear:h,end:a,sort:m},x={transferList:(0,W.Wg)(p)||[],signal:c};return(0,Y.k_)(x),u.remoteClient.invoke("tileRenderer.onTileData",{tileKey:d,data:y},x)})()}_processFeatures(l,r,n,o,a){var h=this;return(0,F.Z)(function*(){if((0,W.Wi)(r)||!r.hasFeatures)return null;const c={transform:l.transform,hasZ:!1,hasM:!1},u=h._factory,f={viewingMode:"",scale:l.scale},d=yield h._matchers.feature,m=yield h._matchers.aggregate;(0,Y.k_)(o);const _=h._getLabelInfos(l,r);return yield u.analyze(r.getCursor(),h._resourceManagerProxy,d,m,c,f),(0,Y.k_)(o),h._writeFeatureSet(l,r,c,_,u,n,a)})()}_writeFeatureSet(l,r,n,o,a,h,c){const u=r.getSize(),f=this._schema.mesh.matcher.symbologyType,d=new es(l.key.id,{features:u,records:u,metrics:0},f,h,f!==O.mD.HEATMAP,c),m={viewingMode:"",scale:l.scale},_=r.getCursor();for(;_.next();)try{const y=_.getDisplayId(),x=(0,W.pC)(o)?o.get(y):null;a.writeCursor(d,_,n,m,l.level,x,this._resourceManagerProxy)}catch{}return d.serialize(l.tileInfoView.tileInfo.isWrappable)}_handleError(l,r,n){if(!(0,Y.D_)(r))return this.remoteClient.invoke("tileRenderer.onTileError",{tileKey:l.id,error:r.message},{signal:n.signal})}_getLabelingSchemaForScale(l){const r=this._schema.mesh.labels;if((0,W.Wi)(r))return null;if("subtype"===r.type){const o={type:"subtype",classes:{}};let a=!1;for(const h in r.classes){const c=r.classes[h].filter(u=>ji(u,l.scale));a=a||!!c.length,o.classes[h]=c}return a?o:null}const n=r.classes.filter(o=>ji(o,l.scale));return n.length?{type:"simple",classes:n}:null}_getLabels(l,r){if("subtype"===r.type){const o=(0,W.s3)(this.service.subtypeField,"Expected to find subtype Field"),a=l.readAttribute(o);return null==a?[]:r.classes[a]??[]}return r.classes}_getLabelInfos(l,r){const n=this._getLabelingSchemaForScale(l);if((0,W.Wi)(n))return null;const o=new Map,a=r.getCursor();for(;a.next();){const h=a.getDisplayId(),c=[],u=(0,Et.nE)(h),f=u&&1!==a.readAttribute("cluster_count")?"aggregate":"feature",d=this._getLabels(a,n);for(const m of d){if(m.target!==f)continue;const p=a.getStorage().getComputedStringAtIndex(u&&"feature"===f?a.readAttribute("referenceId"):h,m.fieldIndex);if(!p)continue;const y=(0,z.E)(p.toString()),g=y[1];this._store.getMosaicItem(m.symbol,Ne(y[0])).then(S=>{c[m.index]={glyphs:S.glyphMosaicItems,rtl:g,index:m.index}})}o.set(h,c)}return o}};ai=(0,J._)([(0,Wt.j)("esri.views.2d.layers.features.processors.SymbolProcessor")],ai);const Sr=ai}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8472.df0c054c8539906c.js b/apps/n/porrtal-io-app/public/angular/8472.df0c054c8539906c.js deleted file mode 100644 index c6b1b595..00000000 --- a/apps/n/porrtal-io-app/public/angular/8472.df0c054c8539906c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8472],{8472:(y,u,a)=>{a.r(u),a.d(u,{CalciteIcon:()=>i,defineCustomElement:()=>d});var o=a(98635);const i=o.I,d=o.d},98635:(y,u,a)=>{a.d(u,{I:()=>D,d:()=>O});var o=a(15861),i=a(76210),d=a(46203),h=a(22757);const _={},s={},l={s:16,m:24,l:32};function E(){return(E=(0,o.Z)(function*({icon:t,scale:e}){const c=l[e],n=C(t),m="F"===n.charAt(n.length-1),r=`${m?n.substring(0,n.length-1):n}${c}${m?"F":""}`;if(_[r])return _[r];s[r]||(s[r]=fetch((0,i.K3)(`./assets/icon/${r}.json`)).then(g=>g.json()).catch(()=>(console.error(`"${r}" is not a valid calcite-ui-icon name`),"")));const p=yield s[r];return _[r]=p,p})).apply(this,arguments)}function C(t){const e=!isNaN(Number(t.charAt(0))),c=t.split("-");return 1===c.length?e?`i${t}`:t:c.map((n,m)=>0===m?e?`i${n.toUpperCase()}`:n:n.charAt(0).toUpperCase()+n.slice(1)).join("")}const D=(0,i.GH)(class extends i.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=null,this.flipRtl=!1,this.scale="m",this.visible=!1}connectedCallback(){this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}disconnectedCallback(){var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.intersectionObserver=null}componentWillLoad(){var t=this;return(0,o.Z)(function*(){t.loadIconPathData()})()}render(){const{el:t,flipRtl:e,pathData:c,scale:n,textLabel:m}=this,w=(0,d.c)(t),r=l[n],p=!!m,g=[].concat(c||"");return(0,i.h)(i.AA,{"aria-hidden":(0,d.t)(!p),"aria-label":p?m:null,role:p?"img":null},(0,i.h)("svg",{class:{"flip-rtl":"rtl"===w&&e,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${r} ${r}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},g.map(b=>(0,i.h)("path","string"==typeof b?{d:b}:{d:b.d,opacity:"opacity"in b?b.opacity:1}))))}loadIconPathData(){var t=this;return(0,o.Z)(function*(){const{icon:e,scale:c,visible:n}=t;!i.Z5.isBrowser||!e||!n||(t.pathData=yield function f(t){return E.apply(this,arguments)}({icon:e,scale:c}))})()}waitUntilVisible(t){this.intersectionObserver=(0,h.c)("intersection",e=>{e.forEach(c=>{c.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){block-size:1rem;inline-size:1rem;min-inline-size:1rem;min-block-size:1rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem;min-inline-size:1.5rem;min-block-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem;min-inline-size:2rem;min-block-size:2rem}.flip-rtl{transform:scaleX(-1)}.svg{display:block}"}},[1,"calcite-icon",{icon:[513],flipRtl:[516,"flip-rtl"],scale:[513],textLabel:[1,"text-label"],pathData:[32],visible:[32]}]);function O(){typeof customElements>"u"||["calcite-icon"].forEach(e=>{"calcite-icon"===e&&(customElements.get(e)||customElements.define(e,D))})}O()},22757:(y,u,a)=>{a.d(u,{c:()=>i});var o=a(76210);function i(h,v,_){if(!o.Z5.isBrowser)return;const s=function d(h){class v extends window.MutationObserver{constructor(s){super(s),this.observedEntry=[],this.callback=s}observe(s,l){return this.observedEntry.push({target:s,options:l}),super.observe(s,l)}unobserve(s){const l=this.observedEntry.filter(f=>f.target!==s);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),l.forEach(f=>this.observe(f.target,f.options))}}return"intersection"===h?window.IntersectionObserver:"mutation"===h?v:window.ResizeObserver}(h);return new s(v,_)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8562.de53e094f8bdbb47.js b/apps/n/porrtal-io-app/public/angular/8562.de53e094f8bdbb47.js deleted file mode 100644 index 839049ed..00000000 --- a/apps/n/porrtal-io-app/public/angular/8562.de53e094f8bdbb47.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8562],{19702:(R,v,e)=>{e.d(v,{A:()=>y});var r=e(15861),l=e(17626),c=e(54024),p=e(10699),n=e(32917),O=e(77712),o=(e(85931),e(90912),e(76898)),g=e(36947);const y=P=>{let t=class extends P{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(a){super.postscript(a),(0,g.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var a=this;return(0,r.Z)(function*(){const s=new AbortController,u=s.signal;a.handles.add((0,c.kB)(()=>s.abort())),yield(0,n.N1)(()=>a.view.defaultsFromMap?.heightModelInfoReady,u),(0,p.k_)(u);const M=(0,g.Wt)(a.layer,a.view.heightModelInfo,a.supportsHeightUnitConversion);if(M)throw M})()}canResume(){const a=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!a||!a.minScale||!a.maxScale||a.minScale>=a.maxScale)}getSuspendInfo(){const a=super.getSuspendInfo(),s=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return s&&s.minScale&&s.maxScale&&s.minScale{e.r(v),e.d(v,{default:()=>j});var r=e(15861),l=e(17626),c=e(26584),p=e(62208),n=e(77712),f=(e(85931),e(90912),e(76898)),o=e(55915),g=e(19702),y=e(50916),P=e(45611),t=e(94421),a=e(10699),s=e(22264);const u=i=>{let _=class extends i{fetchPopupFeatures(m,U){var L=this;return(0,r.Z)(function*(){const{layer:I}=L;if(!m)throw new c.Z("tilelayerview:fetchPopupFeatures","Nothing to fetch without area",{layer:I});if("tile"!==I.type)throw new c.Z("tilelayerview:fetchPopupFeatures","Layer type should be 'tile'",{type:I.type});const T=L.get("view.scale"),S=I.allSublayers.toArray().filter(d=>d.popupTemplate&&d.popupEnabled&&d.visible&&(0===d.minScale||T<=d.minScale)&&(0===d.maxScale||T>=d.maxScale));return(0,a.as)(S.map(function(){var d=(0,r.Z)(function*(h){const C=h.createQuery(),W=(0,p.pC)(U)?U.event:null,A=(0,s.k)({renderer:h.renderer,event:W});return C.geometry=L.createFetchPopupFeaturesQueryGeometry(m,A),C.outFields=yield h.popupTemplate.getRequiredFields(),(yield h.queryFeatures(C)).features});return function(h){return d.apply(this,arguments)}}())).then(d=>[].concat(...d.map(h=>h.value).filter(Boolean)))})()}};return(0,l._)([(0,n.Cb)()],_.prototype,"layer",void 0),_=(0,l._)([(0,f.j)("esri.layers.mixins.TileLayerView")],_),_};var M=e(94672);let E=class extends((0,t.Z)((0,y.r)(u((0,g.A)(P.Z))))){constructor(){super(...arguments),this.type="tile-3d"}get imageFormatIsOpaque(){return"jpg"===this.layer.tileInfo.format}get hasMixedImageFormats(){return"mixed"===this.layer.tileInfo.format}get tileInfo(){return this.layer?.tileInfo}get dataLevelRange(){if(this.tileInfo){const i=this.tileInfo.lods;return this.levelRangeFromScaleRange(i[0].scale,i[i.length-1].scale)}return{minLevel:0,maxLevel:0}}initialize(){if("web-tile"===this.layer.type){const i=this.layer.get("fullExtent.spatialReference"),_=this.layer.get("tileInfo.spatialReference");if((0,p.Wi)(i)||(0,p.Wi)(_)||!(0,o.Up)(i,_)){const m="defaults"===this.layer.originOf("fullExtent")||(0,p.Wi)(this.layer.fullExtent)?"SceneView requires fullExtent to be specified by the user on WebTileLayer":"SceneView requires fullExtent to be specified in the same spatial reference as tileInfo on WebTileLayer";this.addResolvingPromise(Promise.reject(new c.Z("layerview:incompatible-fullextent",m)))}}this._addTilingSchemeMatchPromise()}createFetchPopupFeaturesQueryGeometry(i,_){return(0,M.K)(i,_,this.view)}doRefresh(){var i=this;return(0,r.Z)(function*(){i.suspended||i.emit("data-changed")})()}};(0,l._)([(0,n.Cb)()],E.prototype,"imageFormatIsOpaque",null),(0,l._)([(0,n.Cb)()],E.prototype,"hasMixedImageFormats",null),(0,l._)([(0,n.Cb)()],E.prototype,"layer",void 0),(0,l._)([(0,n.Cb)()],E.prototype,"tileInfo",null),(0,l._)([(0,n.Cb)()],E.prototype,"dataLevelRange",null),E=(0,l._)([(0,f.j)("esri.views.3d.layers.TileLayerView3D")],E);const j=E},45611:(R,v,e)=>{e.d(v,{Z:()=>a});var r=e(17626),l=e(14517),c=e(61885),p=e(80542),n=e(61996),O=e(63290),D=e(62208),f=e(60330),o=e(77712),P=(e(85931),e(90912),e(76898));let t=class extends((0,p.p)((0,n.IG)((0,f.v)(c.Z.EventedMixin(l.Z))))){constructor(s){super(s),this.layer=null,this.parent=null}initialize(){this.when().catch(s=>{if("layerview:create-error"!==s.name){const u=this.layer&&this.layer.id||"no id",M=this.layer&&this.layer.title||"no title";O.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${M}', id: '${u}')`,s)}})}get fullOpacity(){return(0,D.Pt)(this.get("layer.opacity"),1)*(0,D.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(s){this._overrideIfSome("visible",s)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const s=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(s.viewNotReady=!0),this.layer&&this.layer.loaded||(s.layerNotLoaded=!0),this.visible||(s.layerInvisible=!0),s}isUpdating(){return!1}};(0,r._)([(0,o.Cb)()],t.prototype,"fullOpacity",null),(0,r._)([(0,o.Cb)()],t.prototype,"layer",void 0),(0,r._)([(0,o.Cb)()],t.prototype,"parent",void 0),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"suspended",null),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"suspendInfo",null),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"legendEnabled",null),(0,r._)([(0,o.Cb)({type:Boolean,readOnly:!0})],t.prototype,"updating",null),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingProgress",null),(0,r._)([(0,o.Cb)()],t.prototype,"visible",null),(0,r._)([(0,o.Cb)()],t.prototype,"view",void 0),t=(0,r._)([(0,P.j)("esri.views.layers.LayerView")],t);const a=t},94421:(R,v,e)=>{e.d(v,{Z:()=>o});var r=e(17626),l=e(63290),c=e(10699),p=e(32917),n=e(77712),f=(e(85931),e(90912),e(76898));const o=g=>{let y=class extends g{initialize(){this.handles.add((0,p.on)(()=>this.layer,"refresh",P=>{this.doRefresh(P.dataChanged).catch(t=>{(0,c.D_)(t)||l.Z.getLogger(this.declaredClass).error(t)})}),"RefreshableLayerView")}};return(0,r._)([(0,n.Cb)()],y.prototype,"layer",void 0),y=(0,r._)([(0,f.j)("esri.layers.mixins.RefreshableLayerView")],y),y}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/857.520f0098bac34ce2.js b/apps/n/porrtal-io-app/public/angular/857.520f0098bac34ce2.js deleted file mode 100644 index 704a5277..00000000 --- a/apps/n/porrtal-io-app/public/angular/857.520f0098bac34ce2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[857],{90857:(E,s,_)=>{_.r(s),_.d(s,{build:()=>a.b}),_(84161),_(98071),_(47923),_(32181),_(95285),_(65787),_(17625),_(22355),_(5864),_(35387);var a=_(86962)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8572.11cfb1ef1819db4c.js b/apps/n/porrtal-io-app/public/angular/8572.11cfb1ef1819db4c.js deleted file mode 100644 index 18703de3..00000000 --- a/apps/n/porrtal-io-app/public/angular/8572.11cfb1ef1819db4c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8572],{40405:($,U,p)=>{p.d(U,{B:()=>B});var d=p(15861),y=p(22558),j=p(21726),T=p(35948),A=p(34117),Z=p(31283),S=p(77712);function f(r){return R[function I(r){return r instanceof Blob?r.type:function C(r){const a=(0,j.Ml)(r);return W[a]||H}(r.url)}(r)]||M}const R={},H="text/plain",M=R[H],W={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const r in W)R[W[r]]=r;var P=p(29840);function B(r){const a=r?.origins??[void 0];return(u,m)=>{const g=function N(r,a,u){if("resource"===r?.type)return function O(r,a,u){const m=(0,A.VZ)(a,u);return{type:String,read:(g,b,x)=>{const c=(0,P.r)(g,b,x);return m.type===String?c:"function"==typeof m.type?new m.type({url:c}):void 0},write:{writer(g,b,x,c){if(!c||!c.resources)return"string"==typeof g?void(b[x]=(0,P.t)(g,c)):void(b[x]=g.write({},c));const J=function i(r){return null==r?null:"string"==typeof r?r:r.url}(g),E=(0,P.t)(J,{...c,verifyItemRelativeUrls:c&&c.verifyItemRelativeUrls?{writtenUrls:c.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},P.M.NO),w=m.type!==String&&(!(0,y.l)(this)||c&&c.origin&&this.originIdOf(u)>(0,Z.M9)(c.origin)),L={object:this,propertyName:u,value:g,targetUrl:E,dest:b,targetPropertyName:x,context:c,params:r};c&&c.portalItem&&E&&!(0,j.YP)(E)?w?function D(r){const{context:a,targetUrl:u,params:m,value:g,dest:b,targetPropertyName:x}=r;if(!a.portalItem)return;const c=a.portalItem.resourceFromPath(u),J=s(g,u,a),E=f(J),w=(0,j.Ml)(c.path),L=m?.compress??!1;E===w?(a.resources&&o({...r,resource:c,content:J,compress:L,updates:a.resources.toUpdate}),b[x]=u):z(r)}(L):function F({context:r,targetUrl:a,dest:u,targetPropertyName:m}){r.portalItem&&r.resources&&(r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(a),compress:!1}),u[m]=a)}(L):c&&c.portalItem&&(null==E||null!=(0,P.i)(E)||(0,j.jc)(E)||w)?z(L):b[x]=E}}}}(r,a,u);switch(r?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:m,write:g}=P.a;return{read:m,write:g}}}}(r,u,m);for(const b of a){const x=(0,S.CJ)(u,b,m);for(const c in g)x[c]=g[c]}}}function z(r){const{targetUrl:a,params:u,value:m,context:g,dest:b,targetPropertyName:x}=r;if(!g.portalItem)return;const c=(0,P.p)(a),J=c?.filename??(0,T.D)(),E=u?.prefix??c?.prefix,w=s(m,a,g),L=(0,j.v_)(E,J),G=`${L}.${f(w)}`,K=g.portalItem.resourceFromPath(G);(0,j.jc)(a)&&g.resources&&g.resources.pendingOperations.push(function l(r){return v.apply(this,arguments)}(a).then(Y=>{K.path=`${L}.${f(Y)}`,b[x]=K.itemRelativeUrl}).catch(()=>{}));const V=u?.compress??!1;g.resources&&o({...r,resource:K,content:w,compress:V,updates:g.resources.toAdd}),b[x]=K.itemRelativeUrl}function o({object:r,propertyName:a,updates:u,resource:m,content:g,compress:b}){u.push({resource:m,content:g,compress:b,finish:x=>{!function h(r,a,u){"string"==typeof r[a]?r[a]=u.url:r[a].url=u.url}(r,a,x)}})}function s(r,a,u){return"string"==typeof r?{url:a}:new Blob([JSON.stringify(r.toJSON(u))],{type:"application/json"})}function v(){return(v=(0,d.Z)(function*(r){const a=(yield Promise.resolve().then(p.bind(p,84792))).default,{data:u}=yield a(r,{responseType:"blob"});return u})).apply(this,arguments)}},22558:($,U,p)=>{function d(y){return y&&"getAtOrigin"in y&&"originOf"in y}p.d(U,{l:()=>d})},29457:($,U,p)=>{p.r(U),p.d(U,{default:()=>v});var d=p(15861),y=p(17626),j=p(85840),T=p(61642),A=p(57574),Z=p(46160),S=p(89726),f=p(62208),I=p(32917),C=p(77712),M=(p(85931),p(90912),p(76898)),W=p(55915),P=p(5548),B=p(60507);const N=Z.Z.ofType(A.Z);let O=class extends j.Z{constructor(i){super(i),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,I.YP)(()=>this._computeExtent(),i=>{((0,f.Wi)(i)||(0,f.Wi)(i.pending))&&this._set("extent",(0,f.pC)(i)?i.extent:null)},I.tX))}get targets(){return this._get("targets")||new N}set targets(i){this._set("targets",(0,S.Z)(i,this.targets,N))}get spatialReference(){return(0,f.pC)(this.observer)&&(0,f.pC)(this.observer.position)?this.observer.position.spatialReference:null}get requiredPropertiesForEditing(){return[(0,f.yw)(this.observer,i=>i.position)]}waitComputeExtent(){var i=this;return(0,d.Z)(function*(){const h=i._computeExtent();return(0,f.pC)(h)?(0,f.Wg)(h.pending):null})()}_computeExtent(){const i=this.spatialReference;if((0,f.Wi)(this.observer)||(0,f.Wi)(this.observer.position)||(0,f.Wi)(i))return null;const h=m=>"absolute-height"===(0,B.VW)(m.position,m.elevationInfo),r=this.observer.position,a=(0,P.al)(r.x,r.y,r.z,r.x,r.y,r.z);for(const m of this.targets)if((0,f.pC)(m.position)){const g=(0,W.dz)(m.position,i);if((0,f.pC)(g.pending))return{pending:g.pending,extent:null};if((0,f.pC)(g.geometry)){const{x:b,y:x,z:c}=g.geometry;(0,P.pp)(a,[b,x,c])}}const u=(0,P.HH)(a,i);return h(this.observer)&&this.targets.every(h)||(u.zmin=null,u.zmax=null),{pending:null,extent:u}}clear(){this.observer=null,this.targets.removeAll()}};(0,y._)([(0,C.Cb)({type:["line-of-sight"]})],O.prototype,"type",void 0),(0,y._)([(0,C.Cb)({type:T.Z,json:{read:!0,write:!0}})],O.prototype,"observer",void 0),(0,y._)([(0,C.Cb)({cast:S.R,type:N,nonNullable:!0,json:{read:!0,write:!0}})],O.prototype,"targets",null),(0,y._)([(0,C.Cb)({value:null,readOnly:!0})],O.prototype,"extent",void 0),(0,y._)([(0,C.Cb)({readOnly:!0})],O.prototype,"spatialReference",null),(0,y._)([(0,C.Cb)({readOnly:!0})],O.prototype,"requiredPropertiesForEditing",null),O=(0,y._)([(0,M.j)("esri.analysis.LineOfSightAnalysis")],O);const z=O;var D=p(99959),F=p(44917),o=p(49286);const s=Z.Z.ofType(A.Z);let l=class extends((0,o.q)((0,D.R)(F.Z))){constructor(i){super(i),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new z,this.opacity=1}initialize(){this.addHandles((0,I.YP)(()=>this.analysis,(i,h)=>{(0,f.pC)(h)&&h.parent===this&&(h.parent=null),(0,f.pC)(i)&&(i.parent=this)},I.tX))}load(){var i=this;return(0,d.Z)(function*(){return(0,f.pC)(i.analysis)&&i.addResolvingPromise(i.analysis.waitComputeExtent()),i})()}get observer(){return(0,f.yw)(this.analysis,i=>i.observer)}set observer(i){(0,f.yw)(this.analysis,h=>h.observer=i)}get targets(){return(0,f.pC)(this.analysis)?this.analysis.targets:new Z.Z}set targets(i){(0,S.Z)(i,this.analysis?.targets)}get fullExtent(){return(0,f.pC)(this.analysis)?this.analysis.extent:null}get spatialReference(){return(0,f.pC)(this.analysis)?(0,f.Wg)(this.analysis.spatialReference):null}releaseAnalysis(i){this.analysis===i&&(this.analysis=new z)}};(0,y._)([(0,C.Cb)({json:{read:!1},readOnly:!0})],l.prototype,"type",void 0),(0,y._)([(0,C.Cb)({type:["LineOfSightLayer"]})],l.prototype,"operationalLayerType",void 0),(0,y._)([(0,C.Cb)({type:T.Z,json:{read:!0,write:{ignoreOrigin:!0}}})],l.prototype,"observer",null),(0,y._)([(0,C.Cb)({type:s,json:{read:!0,write:{ignoreOrigin:!0}}})],l.prototype,"targets",null),(0,y._)([(0,C.Cb)({nonNullable:!0,json:{read:!1,write:!1}})],l.prototype,"analysis",void 0),(0,y._)([(0,C.Cb)({readOnly:!0})],l.prototype,"fullExtent",null),(0,y._)([(0,C.Cb)({readOnly:!0})],l.prototype,"spatialReference",null),(0,y._)([(0,C.Cb)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],l.prototype,"opacity",void 0),(0,y._)([(0,C.Cb)({type:["show","hide"]})],l.prototype,"listMode",void 0),l=(0,y._)([(0,M.j)("esri.layers.LineOfSightLayer")],l);const v=l},60507:($,U,p)=>{p.d(U,{BK:()=>F,Jn:()=>S,RL:()=>I,VW:()=>Z,W_:()=>O,jG:()=>z,tq:()=>B,vQ:()=>M,zx:()=>W});var d=p(62208),y=p(29505);function j(o){return o?z:D}function Z(o,s){return function T(o,s){return(0,d.Wi)(s)||!s.mode?j(o).mode:s.mode}(!!(0,d.pC)(o)&&o.hasZ,s)}function S(o,s){return function A(o,s){return(0,d.pC)(s)?s:j(o)}(!!(0,d.pC)(o)&&o.hasZ,s)}function I(o){const s=function R(o){return o.layer&&"elevationInfo"in o.layer?o.layer.elevationInfo:null}(o),l=Z(o.geometry,s);return{mode:l,offset:(0,d.pC)(s)&&"on-the-ground"!==l?(0,d.Pt)(s.offset,0)*(0,y.Z7)((0,d.Pt)(s.unit,"meters")):0}}function M(o,s,l,v=null){return P(o,s.x,s.y,s.hasZ?s.z:0,s.spatialReference,l,v)}function W(o,s,l,v,i=null){return P(o,s[0],s[1],s.length>2?s[2]:0,l,v,i)}function P(o,s,l,v,i,h,r=null){if((0,d.Wi)(h))return;const a=(0,d.pC)(r)?r.mode:"absolute-height";if("on-the-ground"===a)return 0;const{absoluteZ:u}=B(s,l,v,i,o,h);return function N(o,s,l,v,i,h,r,a){const u=(0,d.pC)(r)&&(0,d.pC)(r.offset)?r.offset:0;switch(a){case"absolute-height":return o-u;case"relative-to-ground":return o-((0,d.Pt)(h.elevationProvider.getElevation(s,l,v,i,"ground"),0)+u);case"relative-to-scene":return o-((0,d.Pt)(h.elevationProvider.getElevation(s,l,v,i,"scene"),0)+u)}}(u,s,l,v,i,o,r,a)}function B(o,s,l,v,i,h){const r=(0,d.pC)(h.offset)?h.offset:0;switch(h.mode){case"absolute-height":return{absoluteZ:l+r,elevation:0};case"on-the-ground":{const a=(0,d.Pt)(i.elevationProvider.getElevation(o,s,0,v,"ground"),0);return{absoluteZ:a,elevation:a}}case"relative-to-ground":{const a=(0,d.Pt)(i.elevationProvider.getElevation(o,s,l,v,"ground"),0);return{absoluteZ:l+a+r,elevation:a}}case"relative-to-scene":{const a=(0,d.Pt)(i.elevationProvider.getElevation(o,s,l,v,"scene"),0);return{absoluteZ:l+a+r,elevation:a}}}}function O(o,s){if((0,d.Wi)(s))return!1;const{mode:l}=s;return(0,d.pC)(l)&&("scene"===o&&"relative-to-scene"===l||"ground"===o&&"absolute-height"!==l)}const z={mode:"absolute-height",offset:0},D={mode:"on-the-ground",offset:null};function F(o,s){return o===s||(0,d.pC)(o)&&(0,d.pC)(s)&&o.mode===s.mode&&o.offset===s.offset}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8586.73ac044c3968ad44.js b/apps/n/porrtal-io-app/public/angular/8586.73ac044c3968ad44.js deleted file mode 100644 index 7a40175a..00000000 --- a/apps/n/porrtal-io-app/public/angular/8586.73ac044c3968ad44.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8586],{18586:(a,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(99770),_(13934),_(78925),_(24255),_(10109),_(33726),_(2166),_(95285),_(65787),_(17625),_(22355),_(35387),_(44835),_(16396);var E=_(34013)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8594.f1134cd8c68fe4c1.js b/apps/n/porrtal-io-app/public/angular/8594.f1134cd8c68fe4c1.js deleted file mode 100644 index 00038f44..00000000 --- a/apps/n/porrtal-io-app/public/angular/8594.f1134cd8c68fe4c1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8594],{28594:(zt,_t,O)=>{O.d(_t,{Hq:()=>ht,Mk:()=>V,P_:()=>Ot,Qp:()=>Wt,VO:()=>$,_D:()=>Ct,kZ:()=>kt,kr:()=>Lt,nF:()=>q,tB:()=>nt,ut:()=>k,zD:()=>wt});var Y,t,Mt=O(15861),dt=(O(29132),O(26584)),S=O(62208),B=O(16730),T=O(44956),N=O(55915),z=O(2004),W=O(72642),Rt=O(37118),Pt=O(65234);function V(t,e,s){return!(0,N.Up)(t,e,s)}function A(t,e,s){const l=V(t,e,s);if(l&&!(0,N.kR)())throw new dt.Z("rasterprojectionhelper-project","projection engine is not loaded");return l}(t=Y||(Y={}))[t.None=0]="None",t[t.North=1]="North",t[t.South=2]="South",t[t.Both=3]="Both";const st=(t,e,s,l=0)=>{if(1===s[0])return[0,0];let a=1,i=-1,r=1,m=-1;for(let f=0;ft[f]?t[f]:a,i=i>t[f]?i:t[f],r=r>t[f+1]?t[f+1]:r,m=m>t[f+1]?m:t[f+1]);const{cols:h,rows:u}=e,c=(i-a)/h/s[0],R=(m-r)/u/s[1],_=2*l;let x=0,g=!1,y=[0,0];for(let f=0;fx&&(x=w+C,y=[w,C]),_&&x>_){g=!0;break}}if(g)break}return y},Et={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},X=new Map,H=new Map,K=500;function wt(){return Q.apply(this,arguments)}function Q(){return(Q=(0,Mt.Z)(function*(){(0,N.kR)()||(yield(0,N.zD)())})).apply(this,arguments)}function Ct(t,e,s){return A(t.spatialReference,e)?s?(0,N.rS)(e,t.spatialReference,t):(0,N.rS)(t.spatialReference,e,t):null}function $(t,e,s,l=null){const a=t.spatialReference;if(a.equals(e))return t;A(a,e,l);const i=s.center,r=new z.Z({xmin:i.x-t.x/2,xmax:i.x+t.x/2,ymin:i.y-t.y/2,ymax:i.y+t.y/2,spatialReference:a}),m=(0,N.iV)(r,e,l),h=k(e);let u;if((0,S.Wi)(m)||(0,S.pC)(h)&&m.width>=h){const c=(0,B.c9)(a)/(0,B.c9)(e);u={x:t.x*c,y:t.y*c}}else u={x:m.width,y:m.height};return u}function v(t,e=.01){return(0,B.c9)(t)?e/(0,B.c9)(t):0}function q(t,e,s=null,l=!0){const a=t.spatialReference;if(a.equals(e))return t;A(a,e,s);const i=(0,N.iV)(t,e,s);return l&&i&&rt([t],[i],a,e),i}function rt(t,e,s,l){const a=F(s,!0),i=F(l,!0),r=v(s,K),m=v(l,K);if(r&&(0,S.pC)(a)&&(0,S.pC)(i))for(let h=0;h=i[1]-m&&Math.abs(c-a[0])c>179.9955?1:c<-179.9955?-1:0)),l.steps.forEach(c=>{const R=c.wkid?T.e.geogtran(c.wkid):T.e.fromString(T.f.PE_TYPE_GEOGTRAN,c.wkt);T.h.geogToGeog(R,i.length,i,null,c.isInverse?T.f.PE_TRANSFORM_2_TO_1:T.f.PE_TRANSFORM_1_TO_2)}),h)for(let c=0;c179.9955?1:_<-179.9955?-1:0;R&&x&&R!==x&&(i[c][0]=R>0?_+360:_-360)}}if(!s.isGeographic){const h=j(s,!0),u=(0,S.pC)(h)&&h.isEnvelope?[h.bbox[1],h.bbox[3]]:[-90,90];!function Gt(t,e){const[s,l]=e;for(let a=0;al)&&(t[a]=[NaN,NaN])}}(i,u);const c=s.wkid?T.e.coordsys(s.wkid):T.e.fromString(s.isGeographic?T.f.PE_TYPE_GEOGCS:T.f.PE_TYPE_PROJCS,s.wkt);T.g.geogToProj(c,i.length,i)}let m=i;if(r&&i.length!==r.length){m=[];for(let h=0,u=0;h1===f.getInclusive()&&1===f.getKind());if(!r){if(r=a.find(f=>1===f.getInclusive()&&0===f.getKind()),!r)return null;i=!0}const m=s?0:(2===l.getNorthPoleLocation()?1:0)|(2===l.getSouthPoleLocation()?2:0),h=l.isPannableRectangle(),u=r.getCoord();if(i)return{isEnvelope:i,isPannable:h,vertices:u,coef:null,bbox:[u[0][0]-e,u[0][1]-e,u[1][0]+e,u[1][1]+e],poleLocation:m};let c=0;const R=[];let[_,x]=u[0],[g,y]=u[0];for(let f=0,E=u.length;fd?g:d,y=y>M?y:M}return{isEnvelope:!1,isPannable:h,vertices:u,coef:R,bbox:[_,x,g,y],poleLocation:m}}function tt(t,e){const s=[],{cols:l,rows:a,xres:i,yres:r,usePixelCenter:m}=t;let{xmin:h,ymax:u}=t;if(m&&(h+=i/2,u-=r/2),(0,S.Wi)(e)){for(let x=0;x=x&&M<=y;for(let w=0;w=g&&C<=f&&(s.push([M,C]),c[d]=1)}}return{points:s,mask:c}}const R=e.coef,_=[];for(let x=0;x=w&&g<=C&&(y.push(M*g+P),f.push(G))}let E=y;if(y.length>2){let d=2===f[0]?0:f[0],M=y[0];E=[];for(let P=1;PP-w)}else y[0]>y[1]&&(E=[y[1],y[0]]);_.push(E)}for(let x=0,g=0;x=d[0]&&y<=d[1]&&(s.push([y,E]),c[g]=1);else if(d.length>2){let M=!1;for(let P=0;P=d[P]&&y<=d[P+1]){M=!0;break}M&&(s.push([y,E]),c[g]=1)}}}return{points:s,mask:c}}function ct(t){const e=k(t[0].spatialReference);if(t.length<2||(0,S.Wi)(e))return t[0];let{xmin:s,xmax:l,ymin:a,ymax:i}=t[0];for(let r=1;rc[x][g][0]?c[x][g][0]:l,i=ic[x][g][1]?c[x][g][1]:a,r=rv(a)){const{xmin:u,xmax:c}=t;for(let R=0;R<=i;R++)h[R]=new z.Z({xmin:0===R?u:-r/2,xmax:R===i?c-r*R:r/2,ymin:t.ymin,ymax:t.ymax,spatialReference:a})}return ct(h.map(u=>ft(u,e,s,l)).filter(S.pC))}function ft(t,e,s=null,l=!0,a=!0){const i=t.spatialReference;if(i.equals(e)||!e)return t;A(i,e,s);const r=(0,N.iV)(t,e,s);if(a&&e.isWebMercator&&r&&(r.ymax=Math.min(20037508.342787,r.ymax),r.ymin=Math.max(-20037508.342787,r.ymin),r.ymin>=r.ymax))return null;if(!l||!r)return r;const m=F(i,!0),h=F(e,!0);if((0,S.Wi)(m)||(0,S.Wi)(h))return r;const u=v(i,.001),c=v(i,K),R=v(e,.001);if(Math.abs(r.xmin-h[0])c){r.xmin=h[0];const g=[];g.push(new W.Z(t.xmax,t.ymin,i)),g.push(new W.Z(t.xmax,(t.ymin+t.ymax)/2,i)),g.push(new W.Z(t.xmax,t.ymax,i));const y=g.map(f=>q(f,e,s)).filter(f=>!isNaN(f?.x)).map(f=>f.x);r.xmax=Math.max.apply(null,y)}if(xc){r.xmax=h[1];const g=[];g.push(new W.Z(t.xmin,t.ymin,i)),g.push(new W.Z(t.xmin,(t.ymin+t.ymax)/2,i)),g.push(new W.Z(t.xmin,t.ymax,i));const y=g.map(f=>q(f,e,s)).filter(f=>!isNaN(f?.x)).map(f=>f.x);r.xmin=Math.min.apply(null,y)}}else{const _=v(e,.001);Math.abs(r.xmin-h[0])<_&&(r.xmin=h[0]),Math.abs(r.xmax-h[1])<_&&(r.xmax=h[1])}return r}function k(t,e=!1){return t?t.isWebMercator?2*(e?20037508.342787:20037508.342788905):t.wkid&&t.isGeographic?360:2*Et[t.wkid]||null:null}function F(t,e=!1){if(t.isGeographic)return[-180,180];const s=k(t,e);return(0,S.pC)(s)?[-s/2,s/2]:null}function ut(t,e,s,l){let a=(t-e)/s;return a-Math.floor(a)!=0?a=Math.floor(a):l&&(a-=1),a}function ht(t,e=!1){const s=k(t.spatialReference);if((0,S.Wi)(s))return 0;const l=e?0:-s/2,a=v(t.spatialReference),i=!e&&Math.abs(t.xmax-s/2)0&&l.outofBoundPointCount4)&&(V(h,u,t.datumTransformation)&&(h.isGeographic||(0,S.pC)(j(h))),s=[4,4],l=et({...t,spacing:s}),a={cols:l.size[0]+1,rows:l.size[1]+1},r=st(l.offsets,a,s,4)),l.error=r,s[0]>1&&(l.coefficients=mt(l.offsets,a,i)),t.includeGCSGrid&&!h.isGeographic&&!h.isWebMercator)if(u.isGeographic)l.gcsGrid={offsets:l.offsets,coefficients:l.coefficients,spacing:s};else{const c=j(h);if((0,S.pC)(c)&&!c.isEnvelope){const R=function vt(t){if(!t||t.isGeographic)return t;const e=String(t.wkid||t.wkt);let s;return H.has(e)?s=H.get(e):(s=(t.wkid?T.e.coordsys(t.wkid):T.e.fromString(T.f.PE_TYPE_PROJCS,t.wkt)).getGeogcs().getCode(),H.set(e,s)),new Pt.Z({wkid:s})}(h),_=nt(t.projectedExtent,R),{offsets:x}=et({...t,srcBufferExtent:_,spacing:s}),g=mt(x,a,i);l.gcsGrid={offsets:x,coefficients:g,spacing:s}}}return l}function et(t){const{projectedExtent:e,srcBufferExtent:s,pixelSize:l,datumTransformation:a,rasterTransform:i}=t,r=e.spatialReference,m=s.spatialReference,h=A(r,m),{xmin:u,ymin:c,xmax:R,ymax:_}=e,x=k(m),g=(0,S.pC)(x)&&(t.hasWrapAround||"gcs-shift"===i?.type),y=t.spacing||[32,32],f=y[0]*l.x,E=y[1]*l.y,d=1===y[0],M=Math.ceil((R-u)/f-.1/y[0])+(d?0:1),P=Math.ceil((_-c)/E-.1/y[1])+(d?0:1),w=function St(t){const{inSR:e,outSR:s,datumTransformation:l,preferPE:a}=t;if(e.equals(s)){const{points:i}=tt(t,null);return i}if(e.isWebMercator&&s.isWGS84||e.isWGS84&&s.isWebMercator)return function bt(t){const{cols:e,rows:s,xres:l,yres:a,usePixelCenter:i,inSR:r,outSR:m}=t;let{xmin:h,ymax:u}=t;i&&(h+=l/2,u-=a/2);const c=[],R=[],_=Math.max(e,s);for(let g=0;g<_;g++){const y=h+l*Math.min(e,g),f=u-a*Math.min(s,g),E=(0,N.iV)(new W.Z({x:y,y:f,spatialReference:r}),m);g<=e&&c.push(E.x),g<=s&&R.push(E.y)}const x=[];for(let g=0;gnew W.Z(m[0],m[1],s)),r=(0,N.iV)(i,l,a);return a&&rt(i,r,s,l),r.map(m=>m?[m.x,m.y]:[NaN,NaN])}(t)}({cols:M,rows:P,xmin:u,ymax:_,xres:f,yres:E,inSR:r,outSR:m,datumTransformation:a,preferPE:y[0]<=4,usePixelCenter:d}),C=[];let G,L=0;const xt=d?-1:NaN,{xmin:pt,xmax:it,ymax:Dt,width:jt,height:At}=s,Bt=v(m,K),It=(0,S.pC)(x)&&pt>0&&it>x/2;let gt=!1;if(h){const D=j(r);gt=(0,S.pC)(D)&&D.poleLocation>0}for(let D=0;Dit&&b[0]>x/2-Bt?b[0]-=x:g&&0===D&&b[0]<0&&It&&!i&&(b[0]+=x),!b||isNaN(b[0])||isNaN(b[1]))C.push(xt),C.push(xt),ot.push(null),L++;else{if(i){const yt=i.inverseTransform(new W.Z({x:b[0],y:b[1],spatialReference:m}));b=[yt.x,yt.y]}ot.push(b),D>0&&g&&G[I]&&b[0]it&&b[0]>x&&(b[0]-=x)),C.push((b[0]-pt)/jt),C.push((Dt-b[1])/At)}}G=ot}return{offsets:C,error:null,coefficients:null,outofBoundPointCount:L,spacing:y,size:d?[M,P]:[M-1,P-1]}}function mt(t,e,s){const{cols:l,rows:a}=e,i=new Float32Array((l-1)*(a-1)*2*6),r=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),m=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let h=0;h=g)i=m.length,r=_/g>8;else{let E,d=y;for(let M=1;M<=m.length;M++){if(E=(m[M-1].x+m[M-1].y)/2,_<=E){_===E?i=M:"down"===s?(i=M-1,r=_/d>8):i="up"===s||_-d>E-_||_/d>2?M:M-1;break}d=E}}const f=0===i?a:m[i-1];return r&&Math.min(f.x,f.y)*(0,B.c9)(e.spatialReference)>19567&&(r=!1),{pyramidLevel:i,pyramidResolution:new W.Z({x:f.x,y:f.y,spatialReference:e.spatialReference}),excessiveReading:r}}const h=Math.log(t.x/a.x)/Math.LN2,u=Math.log(t.y/a.y)/Math.LN2,c=e.storageInfo.maximumPyramidLevel||0;i="down"===s?Math.floor(Math.min(h,u)):"up"===s?Math.ceil(Math.max(h,u)):Math.round((h+u)/2),i<0?i=0:i>c&&(r=i>c+3,i=c);const R=2**i;return{pyramidLevel:i,pyramidResolution:new W.Z({x:R*e.nativePixelSize.x,y:R*e.nativePixelSize.y,spatialReference:e.spatialReference}),excessiveReading:r}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/865.651a9bf2047db45a.js b/apps/n/porrtal-io-app/public/angular/865.651a9bf2047db45a.js deleted file mode 100644 index 31b4c7dd..00000000 --- a/apps/n/porrtal-io-app/public/angular/865.651a9bf2047db45a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[865],{70865:(y,s,n)=>{n.r(s),n.d(s,{z:()=>f});var u,h,o,d=n(1719),t={exports:{}};u=t,void 0!==(o=t.exports,Object.defineProperty(o,"__esModule",{value:!0}),h=void(o.default={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u516c\u5143",_era_bc:"\u516c\u5143\u524d",A:"\u4e0a\u5348",P:"\u4e0b\u5348",AM:"\u4e0a\u5348",PM:"\u4e0b\u5348","A.M.":"\u4e0a\u5348","P.M.":"\u4e0b\u5348",January:"\u4e00\u6708",February:"\u4e8c\u6708",March:"\u4e09\u6708",April:"\u56db\u6708",May:"\u4e94\u6708",June:"\u516d\u6708",July:"\u4e03\u6708",August:"\u516b\u6708",September:"\u4e5d\u6708",October:"\u5341\u6708",November:"\u5341\u4e00\u6708",December:"\u5341\u4e8c\u6708",Jan:"1\u6708",Feb:"2\u6708",Mar:"3\u6708",Apr:"4\u6708","May(short)":"5\u6708",Jun:"6\u6708",Jul:"7\u6708",Aug:"8\u6708",Sep:"9\u6708",Oct:"10\u6708",Nov:"11\u6708",Dec:"12\u6708",Sunday:"\u661f\u671f\u65e5",Monday:"\u661f\u671f\u4e00",Tuesday:"\u661f\u671f\u4e8c",Wednesday:"\u661f\u671f\u4e09",Thursday:"\u661f\u671f\u56db",Friday:"\u661f\u671f\u4e94",Saturday:"\u661f\u671f\u516d",Sun:"\u5468\u65e5",Mon:"\u5468\u4e00",Tue:"\u5468\u4e8c",Wed:"\u5468\u4e09",Thu:"\u5468\u56db",Fri:"\u5468\u4e94",Sat:"\u5468\u516d",_dateOrd:function(_){var e="th";if(_<11||_>13)switch(_%10){case 1:case 2:case 3:e="\u65e5"}return e},"Zoom Out":"\u7f29\u653e",Play:"\u64ad\u653e",Stop:"\u505c\u9760\u70b9",Legend:"\u56fe\u4f8b","Click, tap or press ENTER to toggle":"",Loading:"\u52a0\u8f7d",Home:"\u4e3b\u9875",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u6253\u5370",Image:"\u5f71\u50cf",Data:"\u6570\u636e",Print:"\u6253\u5370","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u81ea %1 \u81f3 %2","From %1":"\u81ea %1","To %1":"\u81f3 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const f=function c(a,o){for(var _=0;_e[r]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8698.f6b72c4f5263b8b6.js b/apps/n/porrtal-io-app/public/angular/8698.f6b72c4f5263b8b6.js deleted file mode 100644 index e20c56de..00000000 --- a/apps/n/porrtal-io-app/public/angular/8698.f6b72c4f5263b8b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8698],{78698:(a,E,_)=>{_.r(E),_.d(E,{CloudsDrawParameters:()=>s.a,CloudsPassParameters:()=>s.C,build:()=>s.c}),_(21286),_(550),_(67831),_(99770),_(85073),_(32849),_(85755),_(98071),_(95285),_(65787),_(17625),_(9546),_(22355),_(35387);var s=_(89803)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8704.0daf7b1a7d15500a.js b/apps/n/porrtal-io-app/public/angular/8704.0daf7b1a7d15500a.js deleted file mode 100644 index d8fbb199..00000000 --- a/apps/n/porrtal-io-app/public/angular/8704.0daf7b1a7d15500a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8704],{38704:(c,_,s)=>{s.r(_),s.d(_,{previewWebStyleSymbol:()=>m});var d=s(84792),u=s(23841),r=s(71131);function m(e,i,h){const l=e.thumbnail&&e.thumbnail.url;return l?(0,d.default)(l,{responseType:"image"}).then(t=>{const a=function p(e,i){const h=!/\\.svg$/i.test(e.src)&&i&&i.disableUpsampling,l=Math.max(e.width,e.height);let t=i&&null!=i.maxSize?(0,u.F2)(i.maxSize):r.b_.maxSize;h&&(t=Math.min(l,t));const a="number"==typeof i?.size?i?.size:null,n=Math.min(t,null!=a?(0,u.F2)(a):l);if(n!==l){const o=0!==e.width&&0!==e.height?e.width/e.height:1;o>=1?(e.width=n,e.height=n/o):(e.width=n*o,e.height=n)}return e}(t.data,h);return h&&h.node?(h.node.appendChild(a),h.node):a}):e.fetchSymbol().then(t=>t?i(t,h):null)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8726.ab8ed3e3015f96e1.js b/apps/n/porrtal-io-app/public/angular/8726.ab8ed3e3015f96e1.js deleted file mode 100644 index 69f7f678..00000000 --- a/apps/n/porrtal-io-app/public/angular/8726.ab8ed3e3015f96e1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8726],{68726:(p,r,_)=>{_.r(r),_.d(r,{default:()=>E});var a=_(17626),o=_(77712),t=(_(85931),_(90912),_(76898)),e=_(50126);let s=class extends e.Z{constructor(){super(...arguments),this.type="wfs-3d"}};(0,a._)([(0,o.Cb)()],s.prototype,"layer",void 0),s=(0,a._)([(0,t.j)("esri.views.3d.layers.WFSLayerView3D")],s);const E=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8740.5d9d7bf242d6c5ea.js b/apps/n/porrtal-io-app/public/angular/8740.5d9d7bf242d6c5ea.js deleted file mode 100644 index bfee5d96..00000000 --- a/apps/n/porrtal-io-app/public/angular/8740.5d9d7bf242d6c5ea.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8740],{78740:(ee,F,a)=>{a.r(F),a.d(F,{FeatureServiceSnappingSource:()=>y});var p=a(15861),r=a(17626),b=a(14517),O=a(80542),H=a(54024),u=a(62208),T=a(10699),c=a(32917),s=a(77712),w=(a(85931),a(90912),a(76898)),U=a(84395),Z=a(60507),P=a(68511),M=a(84161),N=a(4794),k=a(41743);function C(e,t){return(0,k.g)(t.extent,E),(0,k.h)(E,(0,M.s)(j,e.x,e.y,0))}const E=(0,k.a)(),j=(0,N.c)();var D=a(93579);let v=class extends b.Z{constructor(e){super(e),this.pointOfInterest=null}get tiles(){const e=this.tilesCoveringView,t=(0,u.pC)(this.pointOfInterest)?this.pointOfInterest:this.view.center;return e.sort((n,i)=>C(t,n)-C(t,i)),e}_scaleEnabled(){return(0,D.rs)(this.view.scale,this.layer.minScale||0,this.layer.maxScale||0)}get tilesCoveringView(){if(!this.view.ready||!this.view.featuresTilingScheme||!this.view.state||(0,u.Wi)(this.tileInfo))return[];if(!this._scaleEnabled)return[];const{spans:e,lodInfo:t}=this.view.featuresTilingScheme.getTileCoverage(this.view.state,0),{level:n}=t,i=[];for(const{row:o,colFrom:l,colTo:h}of e)for(let d=l;d<=h;d++){const g=t.normalizeCol(d),R=new P.f(null,n,o,g);this.tileInfo.updateTileInfo(R),i.push(R)}return i}get tileInfo(){return this.view.featuresTilingScheme?.tileInfo??null}get tileSize(){return(0,u.pC)(this.tileInfo)?this.tileInfo.size[0]:256}initialize(){this.addHandles((0,c.YP)(()=>this.view?.state?.viewpoint,()=>this.notifyChange("tilesCoveringView"),c.Z_))}};(0,r._)([(0,s.Cb)({readOnly:!0})],v.prototype,"tiles",null),(0,r._)([(0,s.Cb)({readOnly:!0})],v.prototype,"_scaleEnabled",null),(0,r._)([(0,s.Cb)({readOnly:!0})],v.prototype,"tilesCoveringView",null),(0,r._)([(0,s.Cb)({readOnly:!0})],v.prototype,"tileInfo",null),(0,r._)([(0,s.Cb)({readOnly:!0})],v.prototype,"tileSize",null),(0,r._)([(0,s.Cb)({constructOnly:!0})],v.prototype,"view",void 0),(0,r._)([(0,s.Cb)({constructOnly:!0})],v.prototype,"layer",void 0),(0,r._)([(0,s.Cb)()],v.prototype,"pointOfInterest",void 0),v=(0,r._)([(0,w.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiles2D")],v);var A=a(27351);let S=class extends O.r{constructor(e){super(e),this.pointOfInterest=null}get tiles(){const e=this.tilesCoveringView,t=this._effectivePointOfInterest;if((0,u.pC)(t)){const n=e.map(i=>C(t,i));for(let i=1;in[i])return e.sort((o,l)=>C(t,o)-C(t,l)),e.slice()}return e}get tilesCoveringView(){return this._filterTiles(this.view.featureTiles?.tiles?.toArray()).map(V)}get tileInfo(){return this.view.featureTiles?.tilingScheme.toTileInfo()??null}get tileSize(){return this.view.featureTiles?.tileSize??256}get _effectivePointOfInterest(){const e=this.pointOfInterest;return(0,u.pC)(e)?e:this.view.pointsOfInterest?.focus.location}initialize(){this.handles.add((0,c.YP)(()=>this.view.featureTiles,e=>{this.handles.remove(_),e&&this.handles.add(e.addClient(),_)},c.nn))}_filterTiles(e){return(0,u.Wi)(e)?[]:e.filter(t=>Math.abs(t.measures.screenRect[3]-t.measures.screenRect[1])>J&&t.measures.visibility===A.E.VISIBLE_ON_SURFACE)}};function V({lij:[e,t,n],extent:i}){return new P.f(`${e}/${t}/${n}`,e,t,n,i)}(0,r._)([(0,s.Cb)({readOnly:!0})],S.prototype,"tiles",null),(0,r._)([(0,s.Cb)({readOnly:!0})],S.prototype,"tilesCoveringView",null),(0,r._)([(0,s.Cb)({readOnly:!0})],S.prototype,"tileInfo",null),(0,r._)([(0,s.Cb)({readOnly:!0})],S.prototype,"tileSize",null),(0,r._)([(0,s.Cb)({constructOnly:!0})],S.prototype,"view",void 0),(0,r._)([(0,s.Cb)()],S.prototype,"pointOfInterest",void 0),(0,r._)([(0,s.Cb)()],S.prototype,"_effectivePointOfInterest",null),S=(0,r._)([(0,w.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiles3D")],S);const J=50,_="feature-tiles";var x=a(4257),W=a(72392),$=a(37118),z=a(65401),L=a(73187);let m=class extends L.q{constructor(e){super(e),this._handles=new W.Z}initialize(){const e=setInterval(()=>this._fetchDebugInfo(),2e3);this._handles.add((0,H.kB)(()=>clearInterval(e)))}destroy(){this._handles.destroy()}getTiles(){if(!this._debugInfo)return[];const e=new Map,t=new Map;this._debugInfo.storedTiles.forEach(o=>{e.set(o.data.id,o.featureCount)}),this._debugInfo.pendingTiles.forEach(o=>{e.set(o.data.id,o.featureCount),t.set(o.data.id,o.state)});const n=o=>{const l=t.get(o),h=e.get(o)??"?";return l?`${l}:${h}\n${o}`:`store:${h}\n${o}`},i=new Map;return this._debugInfo.storedTiles.forEach(o=>{i.set(o.data.id,o.data)}),this._debugInfo.pendingTiles.forEach(o=>{i.set(o.data.id,o.data)}),Array.from(i.values()).map(o=>({lij:[o.level,o.row,o.col],geometry:$.Z.fromExtent((0,z.HH)(o.extent,this.view.spatialReference)),label:n(o.id)}))}_fetchDebugInfo(){this.handle.getDebugInfo(null).then(e=>{this._debugInfo=e,this.update()})}};(0,r._)([(0,s.Cb)({constructOnly:!0})],m.prototype,"handle",void 0),m=(0,r._)([(0,w.j)("esri.views.interactive.snapping.featureSources.WorkerTileTreeDebugger")],m);var Y=a(42930),G=a(71774);let f=class extends O.r{constructor(e){super(e),this.schedule=null,this.hasZ=!1,this.elevationAlignPointsInFeatures=function(){var t=(0,p.Z)(function*(n){const i=[];for(const{points:o}of n)for(const{z:l}of o)i.push(l);return{elevations:i,drapedObjectIds:new Set,failedObjectIds:new Set}});return function(n){return t.apply(this,arguments)}}(),this.queryForSymbologySnapping=(0,p.Z)(function*(){return{candidates:[],sourceCandidateIndices:[]}}),this.availability=0,this._workerHandleUpdating=!0,this._editId=0}get updating(){return this.updatingHandles.updating||this._workerHandleUpdating}destroy(){this._workerHandle.destroy()}initialize(){var t,e=this;this._workerHandle=new B(this.schedule,{alignElevation:(t=(0,p.Z)(function*(n,{signal:i}){return{result:yield e.elevationAlignPointsInFeatures(n.points,i)}}),function(i,o){return t.apply(this,arguments)}),getSymbologyCandidates:function(){var t=(0,p.Z)(function*(n,{signal:i}){return{result:yield e.queryForSymbologySnapping(n,i)}});return function(i,o){return t.apply(this,arguments)}}()}),this.handles.add([this._workerHandle.on("notify-updating",({updating:t})=>this._workerHandleUpdating=t),this._workerHandle.on("notify-availability",({availability:t})=>this._set("availability",t))])}setup(e,t){var n=this;return(0,p.Z)(function*(){const i=n._serviceInfoFromLayer(e.layer);if((0,u.Wi)(i))return;const o={configuration:n._convertConfiguration(e.configuration),serviceInfo:i,spatialReference:e.spatialReference.toJSON(),hasZ:n.hasZ,elevationInfo:e.layer.elevationInfo?.toJSON()};yield n.updatingHandles.addPromise(n._workerHandle.invokeMethod("setup",o,t)),n.updatingHandles.addPromise(n._workerHandle.invokeMethod("whenNotUpdating",{},t))})()}configure(e,t){var n=this;return(0,p.Z)(function*(){const i=n._convertConfiguration(e);yield n.updatingHandles.addPromise(n._workerHandle.invokeMethod("configure",i,t)),n.updatingHandles.addPromise(n._workerHandle.invokeMethod("whenNotUpdating",{},t))})()}refresh(e){var t=this;return(0,p.Z)(function*(){yield t.updatingHandles.addPromise(t._workerHandle.invokeMethod("refresh",{},e)),t.updatingHandles.addPromise(t._workerHandle.invokeMethod("whenNotUpdating",{},e))})()}fetchCandidates(e,t){var n=this;return(0,p.Z)(function*(){const i={distance:e.distance,point:e.coordinateHelper.vectorToPoint(e.point).toJSON(),types:e.types,filter:(0,u.pC)(e.filter)?e.filter.toJSON():null};return n._workerHandle.invoke(i,t)})()}updateTiles(e,t){var n=this;return(0,p.Z)(function*(){const i={tiles:e.tiles,tileInfo:(0,u.pC)(e.tileInfo)?e.tileInfo.toJSON():null,tileSize:e.tileSize};yield n.updatingHandles.addPromise(n._workerHandle.invokeMethod("updateTiles",i,t)),n.updatingHandles.addPromise(n._workerHandle.invokeMethod("whenNotUpdating",{},t))})()}applyEdits(e,t){var n=this;return(0,p.Z)(function*(){const i=n._editId++,o={id:i};yield n.updatingHandles.addPromise(n._workerHandle.invokeMethod("beginApplyEdits",o,t));const l=yield n.updatingHandles.addPromise((0,T.Hl)(e.result,t)),h={id:i,edits:{addedFeatures:l.addedFeatures?.map(({objectId:d})=>d).filter(u.pC)??[],deletedFeatures:l.deletedFeatures?.map(({objectId:d,globalId:g})=>({objectId:d,globalId:g}))??[],updatedFeatures:l.updatedFeatures?.map(({objectId:d})=>d).filter(u.pC)??[]}};yield n.updatingHandles.addPromise(n._workerHandle.invokeMethod("endApplyEdits",h,t)),n.updatingHandles.addPromise(n._workerHandle.invokeMethod("whenNotUpdating",{},t))})()}getDebugInfo(e){return this._workerHandle.invokeMethod("getDebugInfo",{},e)}notifyElevationSourceChange(){var e=this;return(0,p.Z)(function*(){yield e._workerHandle.invokeMethod("notifyElevationSourceChange",{})})()}notifySymbologyChange(){var e=this;return(0,p.Z)(function*(){yield e._workerHandle.invokeMethod("notifySymbologyChange",{})})()}setSymbologySnappingSupported(e){var t=this;return(0,p.Z)(function*(){yield t._workerHandle.invokeMethod("setSymbologySnappingSupported",e)})()}_convertConfiguration(e){return{filter:(0,u.pC)(e.filter)?e.filter.toJSON():null,customParameters:e.customParameters,viewType:e.viewType}}_serviceInfoFromLayer(e){return"multipatch"===e.geometryType||"mesh"===e.geometryType?null:{url:e.parsedUrl?.path??"",fields:e.fields.map(t=>t.toJSON()),geometryType:G.Mk.toJSON(e.geometryType),capabilities:e.capabilities,objectIdField:e.objectIdField,globalIdField:e.globalIdField,spatialReference:e.spatialReference.toJSON(),timeInfo:e.timeInfo?.toJSON()}}};(0,r._)([(0,s.Cb)({constructOnly:!0})],f.prototype,"schedule",void 0),(0,r._)([(0,s.Cb)({constructOnly:!0})],f.prototype,"hasZ",void 0),(0,r._)([(0,s.Cb)({constructOnly:!0})],f.prototype,"elevationAlignPointsInFeatures",void 0),(0,r._)([(0,s.Cb)({constructOnly:!0})],f.prototype,"queryForSymbologySnapping",void 0),(0,r._)([(0,s.Cb)({readOnly:!0})],f.prototype,"updating",null),(0,r._)([(0,s.Cb)({readOnly:!0})],f.prototype,"availability",void 0),(0,r._)([(0,s.Cb)()],f.prototype,"_workerHandleUpdating",void 0),f=(0,r._)([(0,w.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceSnappingSourceWorkerHandle")],f);class B extends Y.q{constructor(t,n){super("FeatureServiceSnappingSourceWorker","fetchCandidates",{},t,{strategy:"dedicated",client:n})}}var K=a(72642),Q=a(72258),X=a(2584);let I=class extends b.Z{constructor(e){super(e),this.pointOfInterest=null}get tiles(){return[new P.f("0/0/0",0,0,0,(0,z.al)(-1e8,-1e8,1e8,1e8))]}get tileInfo(){return new X.Z({origin:new K.Z({x:-1e8,y:1e8,spatialReference:this.layer.spatialReference}),size:[512,512],lods:[new Q.Z({level:0,scale:1,resolution:390625})],spatialReference:this.layer.spatialReference})}get tileSize(){return this.tileInfo.size[0]}};(0,r._)([(0,s.Cb)({readOnly:!0})],I.prototype,"tiles",null),(0,r._)([(0,s.Cb)({readOnly:!0})],I.prototype,"tileInfo",null),(0,r._)([(0,s.Cb)({readOnly:!0})],I.prototype,"tileSize",null),(0,r._)([(0,s.Cb)({constructOnly:!0})],I.prototype,"layer",void 0),(0,r._)([(0,s.Cb)()],I.prototype,"pointOfInterest",void 0),I=(0,r._)([(0,w.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTilesSimple")],I);var q=a(66463);let y=class extends((0,O.p)(b.Z)){constructor(e){super(e)}get _updateTilesParameters(){return{tiles:this._tilesOfInterest.tiles,tileInfo:this._tilesOfInterest.tileInfo,tileSize:this._tilesOfInterest.tileSize}}get updating(){return this._workerHandle.updating||this.updatingHandles.updating}get configuration(){const{view:e}=this,t=(0,u.pC)(e)?e.type:"2d";return{filter:this._layer.createQuery(),customParameters:this._layer.customParameters,viewType:t}}get availability(){return this._workerHandle.availability}get _layer(){return this.layerSource.layer}initialize(){const e=this.view;if((0,u.pC)(e))switch(e.type){case"2d":this._tilesOfInterest=new v({view:e,layer:this._layer}),this._workerHandle=new f;break;case"3d":{const{resourceController:t}=e,n=this._layer,i=e.whenLayerView(n);this._tilesOfInterest=new S({view:e}),this._workerHandle=new f({schedule:l=>t.schedule(l),hasZ:this._layer.hasZ&&(this._layer.returnZ??!0),elevationAlignPointsInFeatures:(l=(0,p.Z)(function*(h,d){const g=yield i;return(0,T.k_)(d),g.elevationAlignPointsInFeatures(h,d)}),function(d,g){return l.apply(this,arguments)}),queryForSymbologySnapping:function(){var l=(0,p.Z)(function*(h,d){const g=yield i;return(0,T.k_)(d),g.queryForSymbologySnapping(h,d)});return function(d,g){return l.apply(this,arguments)}}()});const o=new U.f(null);i.then(l=>o.set(l)),this.addHandles([e.elevationProvider.on("elevation-change",({context:l})=>{const{elevationInfo:h}=n;(0,Z.W_)(l,h)&&this._workerHandle?.notifyElevationSourceChange()}),(0,c.YP)(()=>n.elevationInfo,()=>this._workerHandle?.notifyElevationSourceChange(),c.nn),(0,c.YP)(()=>(0,u.yw)(o.get(),({processor:l})=>l?.renderer),()=>this._workerHandle?.notifySymbologyChange(),c.nn),(0,c.YP)(()=>(0,u.R2)(o.get(),!1,l=>l.symbologySnappingSupported),l=>this._workerHandle?.setSymbologySnappingSupported(l),c.nn)]);break}}else this._tilesOfInterest=new I({layer:this._layer}),this._workerHandle=new f;var l;this.handles.add([(0,H.ed)(this._workerHandle)]),this._workerHandle.setup({layer:this._layer,spatialReference:this.spatialReference,configuration:this.configuration},null),this.updatingHandles.add(()=>this._updateTilesParameters,()=>this._workerHandle.updateTiles(this._updateTilesParameters,null),c.nn),this.handles.add([(0,c.YP)(()=>this.configuration,t=>this._workerHandle.configure(t,null),c.Z_)]),(0,u.pC)(e)&&this.handles.add((0,c.YP)(()=>q.Z.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES,t=>{t&&!this._debug?(this._debug=new m({view:e,handle:this._workerHandle}),this.handles.add((0,H.ed)(this._debug),"debug")):!t&&this._debug&&this.handles.remove("debug")},c.nn)),this.handles.add(this.layerSource.layer.on("apply-edits",t=>{this._workerHandle.applyEdits(t,null)}))}refresh(){this._workerHandle.refresh(null)}fetchCandidates(e,t){var n=this;return(0,p.Z)(function*(){const{coordinateHelper:i,elevationInfo:o,point:l}=e;n._tilesOfInterest.pointOfInterest=i.vectorToPoint(l);const h=i.hasZ()?Z.jG:o,d=n._getGroundElevation;return(yield n._workerHandle.fetchCandidates({...e},t)).candidates.map(g=>(0,x.X)(g,i,h,d))})()}getDebugInfo(e){return this._workerHandle.getDebugInfo(e)}get _getGroundElevation(){return(0,x.g)(this.view)}};(0,r._)([(0,s.Cb)({constructOnly:!0})],y.prototype,"spatialReference",void 0),(0,r._)([(0,s.Cb)({constructOnly:!0})],y.prototype,"layerSource",void 0),(0,r._)([(0,s.Cb)({constructOnly:!0})],y.prototype,"view",void 0),(0,r._)([(0,s.Cb)()],y.prototype,"_tilesOfInterest",void 0),(0,r._)([(0,s.Cb)({readOnly:!0})],y.prototype,"_updateTilesParameters",null),(0,r._)([(0,s.Cb)({readOnly:!0})],y.prototype,"updating",null),(0,r._)([(0,s.Cb)({readOnly:!0})],y.prototype,"configuration",null),(0,r._)([(0,s.Cb)({readOnly:!0})],y.prototype,"availability",null),(0,r._)([(0,s.Cb)()],y.prototype,"_getGroundElevation",null),y=(0,r._)([(0,w.j)("esri.views.interactive.snapping.featureSources.FeatureServiceSnappingSource")],y)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8750.c3fa574c1dbcf1bf.js b/apps/n/porrtal-io-app/public/angular/8750.c3fa574c1dbcf1bf.js deleted file mode 100644 index 4ee1e85e..00000000 --- a/apps/n/porrtal-io-app/public/angular/8750.c3fa574c1dbcf1bf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8750],{88750:(o,s,_)=>{_.r(s),_.d(s,{OITCompositingPassParameters:()=>a.O,build:()=>a.b}),_(98071),_(17625),_(22355),_(35387);var a=_(51764)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8762.8fdd6fa7f6877c8a.js b/apps/n/porrtal-io-app/public/angular/8762.8fdd6fa7f6877c8a.js deleted file mode 100644 index 117d93c2..00000000 --- a/apps/n/porrtal-io-app/public/angular/8762.8fdd6fa7f6877c8a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8762],{98762:(w,g,t)=>{t.r(g),t.d(g,{default:()=>Ce});var l=t(15861),s=t(17626),C=(t(29132),t(73281)),R=(t(4832),t(49067),t(96794),t(69747),t(40425),t(69357),t(40342),t(73640),t(33474),t(32088)),m=t(62208),z=t(99959),V=t(94113),K=t(21726),i=t(77712),W=(t(85931),t(90912)),A=t(76898),q=t(99433),I=t(71774),k=t(44917),_=t(26584),ee=t(80542),te=t(8314),re=t(47996),B=t(10699),se=t(59289),Y=t(56554),F=t(83774),ie=t(17253),G=t(2004);let f=class extends((0,ee.p)(re.Z)){constructor(){var e;super(...arguments),e=this,this._connection=null,this.capabilities=(0,Y.MS)(!1,!1),this.type="wfs",this.refresh=(0,B.Ds)(function(){var r=(0,l.Z)(function*(n){yield e.load();const{extent:a}=yield e._connection.invoke("refresh",n);return a&&(e.sourceJSON.extent=a),{dataChanged:!0,updates:{extent:e.sourceJSON.extent}}});return function(n){return r.apply(this,arguments)}}())}load(e){const r=(0,m.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:r})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}openPorts(){var e=this;return(0,l.Z)(function*(){return yield e.load(),e._connection.openPorts()})()}queryFeatures(e,r={}){var n=this;return(0,l.Z)(function*(){yield n.load(r);const a=yield n._connection.invoke("queryFeatures",e?e.toJSON():null,r);return ie.default.fromJSON(a)})()}queryFeaturesJSON(e,r={}){var n=this;return(0,l.Z)(function*(){return yield n.load(r),n._connection.invoke("queryFeatures",e?e.toJSON():null,r)})()}queryFeatureCount(e,r={}){var n=this;return(0,l.Z)(function*(){return yield n.load(r),n._connection.invoke("queryFeatureCount",e?e.toJSON():null,r)})()}queryObjectIds(e,r={}){var n=this;return(0,l.Z)(function*(){return yield n.load(r),n._connection.invoke("queryObjectIds",e?e.toJSON():null,r)})()}queryExtent(e,r={}){var n=this;return(0,l.Z)(function*(){yield n.load(r);const a=yield n._connection.invoke("queryExtent",e?e.toJSON():null,r);return{count:a.count,extent:G.Z.fromJSON(a.extent)}})()}querySnapping(e,r={}){var n=this;return(0,l.Z)(function*(){return yield n.load(r),n._connection.invoke("querySnapping",e,r)})()}_createLoadOptions(e){var r=this;return(0,l.Z)(function*(){const{url:n,customParameters:a,name:d,namespaceUri:v,spatialReference:p,fields:O,geometryType:T,swapXY:E}=r.layer;if(!n)throw new _.Z("wfs-layer:missing-url","WFSLayer must be created with a url");r.wfsCapabilities||(r.wfsCapabilities=yield(0,F.FU)(n,{customParameters:a,...e}));const c=["fields","geometryType","name","namespaceUri","spatialReference","swapXY"].some(j=>null==r.layer[j])?yield(0,F.be)(r.wfsCapabilities,d,v,{spatialReference:p,customParameters:a,signal:e?.signal}):{...(0,F.eB)(O??[]),geometryType:T,name:d,namespaceUri:v,spatialReference:p,swapXY:E},Fe=(0,m.Wg)((0,F.ft)(r.wfsCapabilities.readFeatureTypes(),c.name,c.namespaceUri)),Se=I.Mk.toJSON(c.geometryType);return{customParameters:a,featureType:Fe,fields:c.fields?.map(j=>j.toJSON())??[],geometryField:c.geometryField,geometryType:Se,getFeatureUrl:r.wfsCapabilities.operations.GetFeature.url,getFeatureOutputFormat:r.wfsCapabilities.operations.GetFeature.outputFormat,objectIdField:c.objectIdField,spatialReference:c.spatialReference.toJSON(),swapXY:!!c.swapXY}})()}_startWorker(e){var r=this;return(0,l.Z)(function*(){const[n,a]=yield(0,B.as)([r._createLoadOptions(e),(0,se.bA)("WFSSourceWorker",{...e,strategy:(0,te.Z)("feature-layers-workers")?"dedicated":"local"})]),d=n.error||a.error||null,v=a.value||null;if(d)throw v&&v.close(),d;const p=n.value;r._connection=a.value;const{extent:O}=yield r._connection.invoke("load",p,e);r.sourceJSON={extent:O,fields:p.fields,geometryType:p.geometryType,objectIdField:p.objectIdField,geometryField:p.geometryField,drawingInfo:(0,Y.bU)(p.geometryType),name:p.featureType.title,wfsInfo:{name:p.featureType.name,featureUrl:p.getFeatureUrl,maxFeatures:3e3,swapXY:p.swapXY,supportedSpatialReferences:p.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:p.featureType.namespaceUri}}})()}};(0,s._)([(0,i.Cb)()],f.prototype,"capabilities",void 0),(0,s._)([(0,i.Cb)({constructOnly:!0})],f.prototype,"layer",void 0),(0,s._)([(0,i.Cb)()],f.prototype,"sourceJSON",void 0),(0,s._)([(0,i.Cb)()],f.prototype,"type",void 0),(0,s._)([(0,i.Cb)()],f.prototype,"wfsCapabilities",void 0),f=(0,s._)([(0,A.j)("esri.layers.graphics.sources.WFSSource")],f);var x,oe=t(552),ne=t(50107),ae=t(35126),pe=t(81380),le=t(49286),ue=t(32629),de=t(6647),ye=t(30346),ce=t(99555),me=t(97941),h=t(13812),X=t(36255),fe=t(55911),P=t(36630),he=t(170),ve=t(62667),S=t(96854),ge=t(49430),H=t(65234);const $=(0,fe.v)();let o=x=class extends((0,ue.c)((0,ne.N)((0,pe.M)((0,ae.b)((0,oe.h)((0,me.n)((0,ye.Q)((0,ce.M)((0,le.q)((0,de.I)((0,z.R)(k.Z)))))))))))){constructor(e){super(e),this.copyright=null,this.customParameters=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxFeatures=3e3,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new f({layer:this}),this.spatialReference=H.Z.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}static fromWFSLayerInfo(e){const{customParameters:r,fields:n,geometryField:a,geometryType:d,name:v,namespaceUri:p,objectIdField:O,spatialReference:T,swapXY:E,url:U,wfsCapabilities:c}=e;return new x({customParameters:r,fields:n,geometryField:a,geometryType:d,name:v,namespaceUri:p,objectIdField:O,spatialReference:T,swapXY:E,url:U,wfsCapabilities:c})}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then(()=>this.source.load(e)).then(()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,P.YN)(this.renderer,this.fieldsIndex),(0,P.UF)(this.timeInfo,this.fieldsIndex)})),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,r,n){const a=e.filter(d=>d.name!==F.M8);this.geometryField&&a.unshift(new X.Z({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,V.RB)(n,a.map(d=>d.toJSON()),r)}get parsedUrl(){return(0,K.mN)(this.url)}set renderer(e){(0,P.YN)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,ge.eZ)(this,e)}createQuery(){const e=new S.Z;e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:r,timeExtent:n}=this;return e.timeExtent=null!=r&&null!=n?n.offset(-r.value,r.unit):n||null,e}getFieldDomain(e,r){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,r){return this.load().then(()=>this.source.queryFeatures(S.Z.from(e)||this.createQuery(),r)).then(n=>{if(n?.features)for(const a of n.features)a.layer=a.sourceLayer=this;return n})}queryObjectIds(e,r){return this.load().then(()=>this.source.queryObjectIds(S.Z.from(e)||this.createQuery(),r))}queryFeatureCount(e,r){return this.load().then(()=>this.source.queryFeatureCount(S.Z.from(e)||this.createQuery(),r))}queryExtent(e,r){return this.load().then(()=>this.source.queryExtent(S.Z.from(e)||this.createQuery(),r))}hasDataChanged(){var e=this;return(0,l.Z)(function*(){try{const{dataChanged:r,updates:n}=yield e.source.refresh(e.customParameters);return(0,m.pC)(n)&&e.read(n,{origin:"service",url:e.parsedUrl,ignoreDefaults:!0}),r}catch{}return!1})()}};(0,s._)([(0,i.Cb)({readOnly:!0})],o.prototype,"capabilities",null),(0,s._)([(0,i.Cb)({type:String})],o.prototype,"copyright",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],o.prototype,"createQueryVersion",null),(0,s._)([(0,i.Cb)({json:{name:"wfsInfo.customParameters",write:{ignoreOrigin:!0}}})],o.prototype,"customParameters",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],o.prototype,"defaultPopupTemplate",null),(0,s._)([(0,i.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],o.prototype,"definitionExpression",void 0),(0,s._)([(0,i.Cb)({type:String})],o.prototype,"displayField",void 0),(0,s._)([(0,i.Cb)(h.PV)],o.prototype,"elevationInfo",void 0),(0,s._)([(0,i.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],o.prototype,"featureUrl",void 0),(0,s._)([(0,i.Cb)({type:[X.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],o.prototype,"fields",void 0),(0,s._)([(0,q.c)("fields")],o.prototype,"writeFields",null),(0,s._)([(0,i.Cb)($.fieldsIndex)],o.prototype,"fieldsIndex",void 0),(0,s._)([(0,i.Cb)({type:G.Z,json:{name:"extent"}})],o.prototype,"fullExtent",void 0),(0,s._)([(0,i.Cb)()],o.prototype,"geometryField",void 0),(0,s._)([(0,i.Cb)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:I.Mk.read},write:{target:"layerDefinition.geometryType",writer:I.Mk.write,ignoreOrigin:!0},origins:{service:{read:I.Mk.read}}}})],o.prototype,"geometryType",void 0),(0,s._)([(0,i.Cb)({type:String})],o.prototype,"id",void 0),(0,s._)([(0,i.Cb)(h.iR)],o.prototype,"labelsVisible",void 0),(0,s._)([(0,i.Cb)({type:[he.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:ve.r},write:!0}})],o.prototype,"labelingInfo",void 0),(0,s._)([(0,i.Cb)(h.rn)],o.prototype,"legendEnabled",void 0),(0,s._)([(0,i.Cb)({type:["show","hide"]})],o.prototype,"listMode",void 0),(0,s._)([(0,i.Cb)({type:String})],o.prototype,"objectIdField",void 0),(0,s._)([(0,i.Cb)({type:["WFS"]})],o.prototype,"operationalLayerType",void 0),(0,s._)([(0,i.Cb)({type:W.z8,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],o.prototype,"maxFeatures",void 0),(0,s._)([(0,i.Cb)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],o.prototype,"mode",void 0),(0,s._)([(0,i.Cb)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],o.prototype,"name",void 0),(0,s._)([(0,i.Cb)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],o.prototype,"namespaceUri",void 0),(0,s._)([(0,i.Cb)(h.bT)],o.prototype,"opacity",void 0),(0,s._)([(0,i.Cb)($.outFields)],o.prototype,"outFields",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],o.prototype,"parsedUrl",null),(0,s._)([(0,i.Cb)(h.C_)],o.prototype,"popupEnabled",void 0),(0,s._)([(0,i.Cb)({type:C.Z,json:{name:"popupInfo",write:!0}})],o.prototype,"popupTemplate",void 0),(0,s._)([(0,i.Cb)({types:R.A,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:R.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],o.prototype,"renderer",null),(0,s._)([(0,i.Cb)(h.YI)],o.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],o.prototype,"source",void 0),(0,s._)([(0,i.Cb)({type:H.Z,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],o.prototype,"spatialReference",void 0),(0,s._)([(0,i.Cb)({readOnly:!0,type:[W.z8],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],o.prototype,"spatialReferences",void 0),(0,s._)([(0,i.Cb)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],o.prototype,"swapXY",void 0),(0,s._)([(0,i.Cb)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],o.prototype,"title",void 0),(0,s._)([(0,i.Cb)({json:{read:!1},readOnly:!0})],o.prototype,"type",void 0),(0,s._)([(0,i.Cb)(h.HQ)],o.prototype,"url",void 0),(0,s._)([(0,i.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],o.prototype,"version",void 0),(0,s._)([(0,i.Cb)()],o.prototype,"wfsCapabilities",null),o=x=(0,s._)([(0,A.j)("esri.layers.WFSLayer")],o);const Ce=o},87757:(w,g,t)=>{t.d(g,{g:()=>l});const l={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},56554:(w,g,t)=>{t.d(g,{Dm:()=>L,Hq:()=>Q,MS:()=>J,bU:()=>D});var l=t(8314),s=t(58817),Z=t(87757),C=t(24837);function D(u){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===u||"esriGeometryMultipoint"===u?C.I4:"esriGeometryPolyline"===u?C.ET:C.lF}}}const M=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let N=1;function L(u,y){if((0,l.Z)("esri-csp-restrictions"))return()=>({[y]:null,...u});try{let b=`this.${y} = null;`;for(const m in u)b+=`this${M.test(m)?`.${m}`:`["${m}"]`} = ${JSON.stringify(u[m])};`;const R=new Function(`\n return class AttributesClass$${N++} {\n constructor() {\n ${b};\n }\n }\n `)();return()=>new R}catch{return()=>({[y]:null,...u})}}function Q(u={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.d9)(u)}}]}function J(u,y){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:u},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:y,supportsDelete:y,supportsEditing:y,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:y,supportsExceedsLimitStatistics:!0},query:Z.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:y,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8765.d6fd3c34acbe0b90.js b/apps/n/porrtal-io-app/public/angular/8765.d6fd3c34acbe0b90.js deleted file mode 100644 index 0a806c3e..00000000 --- a/apps/n/porrtal-io-app/public/angular/8765.d6fd3c34acbe0b90.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8765],{48765:(F,y,e)=>{e.r(y),e.d(y,{default:()=>w});var s=e(17626),l=e(26584),c=(e(63290),e(90912),e(85931),e(8314),e(76898)),v=e(2004),x=e(69759),m=e(77712),f=e(13812),g=e(51920);const P=o=>{let t=class extends o{initialize(){this.exportImageParameters=new g.j({layer:this.layer})}destroy(){this.exportImageParameters.destroy(),this.exportImageParameters=null}get exportImageVersion(){return this.exportImageParameters?.commitProperty("version"),this.commitProperty("timeExtent"),(this._get("exportImageVersion")||0)+1}fetchPopupFeatures(a){const{layer:r}=this;if(!a)return Promise.reject(new l.Z("wmslayerview:fetchPopupFeatures","Nothing to fetch without area",{layer:r}));const{popupEnabled:n}=r;if(!n)return Promise.reject(new l.Z("wmslayerview:fetchPopupFeatures","popupEnabled should be true",{popupEnabled:n}));const p=this.createFetchPopupFeaturesQuery(a);if(!p)return Promise.resolve([]);const{extent:h,width:i,height:d,x:I,y:E}=p;if(!(h&&i&&d))throw new l.Z("wmslayerview:fetchPopupFeatures","WMSLayer does not support fetching features.",{extent:h,width:i,height:d});return r.fetchFeatureInfo(h,i,d,I,E)}};return(0,s._)([(0,m.Cb)()],t.prototype,"exportImageParameters",void 0),(0,s._)([(0,m.Cb)({readOnly:!0})],t.prototype,"exportImageVersion",null),(0,s._)([(0,m.Cb)()],t.prototype,"layer",void 0),(0,s._)([(0,m.Cb)(f.qG)],t.prototype,"timeExtent",void 0),t=(0,s._)([(0,c.j)("esri.layers.mixins.WMSLayerView")],t),t};let u=class extends(P(x.Z)){constructor(){super(...arguments),this.type="wms-3d"}initialize(){this.layer.serviceSupportsSpatialReference(this.view.spatialReference)||this.addResolvingPromise(Promise.reject(new l.Z("layerview:spatial-reference-incompatible","The spatial references supported by this WMS layer are incompatible with the spatial reference of the view"))),this.updatingHandles.add(()=>this.exportImageParameters?.version,()=>{this.updatingHandles.addPromise(this.refreshDebounced())})}createFetchPopupFeaturesQuery(o){const t=this.findExtentInfoAt(o),a=t.extent,r=new v.Z(a[0],a[1],a[2],a[3],this._spatialReference),n=t.imageSize,p=n.width,i=r.width/p;return{extent:r,width:p,height:n.height,x:Math.round((o.x-r.xmin)/i),y:Math.round((r.ymax-o.y)/i)}}getFetchOptions(){return{timeExtent:this.timeExtent}}};u=(0,s._)([(0,c.j)("esri.views.3d.layers.WMSLayerView3D")],u);const w=u}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8792.8d631cdfffa79c81.js b/apps/n/porrtal-io-app/public/angular/8792.8d631cdfffa79c81.js deleted file mode 100644 index 7beab901..00000000 --- a/apps/n/porrtal-io-app/public/angular/8792.8d631cdfffa79c81.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8792],{80376:($t,tt,C)=>{C.d(tt,{F:()=>ae,a:()=>le,b:()=>un,c:()=>fn,e:()=>ot,f:()=>sn,r:()=>cn,u:()=>dn});var L=C(15861),D=C(46203),Q=C(76210),H="object"==typeof global&&global&&global.Object===Object&&global,W="object"==typeof self&&self&&self.Object===Object&&self,F=H||W||Function("return this")(),q=F.Symbol,et=Object.prototype,vt=et.hasOwnProperty,yt=et.toString,N=q?q.toStringTag:void 0,T=Object.prototype.toString,S=q?q.toStringTag:void 0;var de=/\s/,he=/^\s+/;function Tt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^0o[0-7]+$/i,we=parseInt;function Wt(t){if("number"==typeof t)return t;if(function xt(t){return"symbol"==typeof t||function wt(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==function nt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?function ft(t){var e=vt.call(t,N),n=t[N];try{t[N]=void 0;var i=!0}catch{}var o=yt.call(t);return i&&(e?t[N]=n:delete t[N]),o}(t):function c(t){return T.call(t)}(t)}(t)}(t))return NaN;if(Tt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Tt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=function pe(t){return t&&t.slice(0,function me(t){for(var e=t.length;e--&&de.test(t.charAt(e)););return e}(t)+1).replace(he,"")}(t);var n=ve.test(t);return n||ye.test(t)?we(t.slice(2),n?2:8):ge.test(t)?NaN:+t}var Et=function(){return F.Date.now()},xe=Math.max,Te=Math.min;function Y(t){return t.split("-")[0]}function G(t){return t.split("-")[1]}function it(t){return["top","bottom"].includes(Y(t))?"x":"y"}function Ot(t){return"y"===t?"height":"width"}function Ft(t,e,n){let{reference:i,floating:o}=t;const a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,r=it(e),l=Ot(r),u=i[l]/2-o[l]/2,f="x"===r;let m;switch(Y(e)){case"top":m={x:a,y:i.y-o.height};break;case"bottom":m={x:a,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:s};break;case"left":m={x:i.x-o.width,y:s};break;default:m={x:i.x,y:i.y}}switch(G(e)){case"start":m[r]-=u*(n&&f?-1:1);break;case"end":m[r]+=u*(n&&f?-1:1)}return m}const Oe=function(){var t=(0,L.Z)(function*(e,n,i){const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:r}=i,l=yield null==r.isRTL?void 0:r.isRTL(n);let u=yield r.getElementRects({reference:e,floating:n,strategy:a}),{x:p,y:f}=Ft(u,o,l),m=o,g={},h=0;for(let w=0;wCe[e])}function Ut(t,e,n){void 0===n&&(n=!1);const i=G(t),o=it(t),a=Ot(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=dt(s)),{main:s,cross:dt(s)}}const Le={start:"end",end:"start"};function _t(t){return t.replace(/start|end/g,e=>Le[e])}const Vt=["top","right","bottom","left"],ke=Vt.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]),zt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:e=>(0,L.Z)(function*(){var n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:r,elements:l}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",flipAlignment:g=!0,...h}=t,w=Y(i),E=f||(w!==s&&g?function He(t){const e=dt(t);return[_t(t),e,_t(e)]}(s):[dt(s)]),b=[s,...E],P=yield rt(e,h),R=[];let x=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&R.push(P[w]),p){const{main:A,cross:Z}=Ut(i,a,yield null==r.isRTL?void 0:r.isRTL(l.floating));R.push(P[A],P[Z])}if(x=[...x,{placement:i,overflows:R}],!R.every(A=>A<=0)){var v,k;const A=(null!=(v=null==(k=o.flip)?void 0:k.index)?v:0)+1,Z=b[A];if(Z)return{data:{index:A,overflows:x},reset:{placement:Z}};let X="bottom";switch(m){case"bestFit":{var _;const K=null==(_=x.map(J=>[J,J.overflows.filter(B=>B>0).reduce((B,lt)=>B+lt,0)]).sort((J,B)=>J[1]-B[1])[0])?void 0:_[0].placement;K&&(X=K);break}case"initialPlacement":X=s}if(i!==X)return{reset:{placement:X}}}return{}})()}};function Zt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xt(t){return Vt.some(e=>t[e]>=0)}const Me=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",fn:i=>(0,L.Z)(function*(){const{rects:o}=i;switch(e){case"referenceHidden":{const s=Zt(yield rt(i,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xt(s)}}}case"escaped":{const s=Zt(yield rt(i,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:s,escaped:Xt(s)}}}default:return{}}})()}};function At(){return(At=(0,L.Z)(function*(t,e){const{placement:n,platform:i,elements:o}=t,a=yield null==i.isRTL?void 0:i.isRTL(o.floating),s=Y(n),r=G(n),l="x"===it(n),u=["left","top"].includes(s)?-1:1,p=a&&l?-1:1,f="function"==typeof e?e(t):e;let{mainAxis:m,crossAxis:g,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return r&&"number"==typeof h&&(g="end"===r?-1*h:h),l?{x:g*p,y:m*u}:{x:m*u,y:g*p}})).apply(this,arguments)}const Ie=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:e=>(0,L.Z)(function*(){const{x:n,y:i}=e,o=yield function je(t,e){return At.apply(this,arguments)}(e,t);return{x:n+o.x,y:i+o.y,data:o}})()}},Be=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:e=>(0,L.Z)(function*(){const{x:n,y:i,placement:o}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:r={fn:y=>{let{x:E,y:b}=y;return{x:E,y:b}}},...l}=t,u={x:n,y:i},p=yield rt(e,l),f=it(Y(o)),m=function $e(t){return"x"===t?"y":"x"}(f);let g=u[f],h=u[m];a&&(g=Rt(g+p["y"===f?"top":"left"],g,g-p["y"===f?"bottom":"right"])),s&&(h=Rt(h+p["y"===m?"top":"left"],h,h-p["y"===m?"bottom":"right"]));const w=r.fn({...e,[f]:g,[m]:h});return{...w,data:{x:w.x-n,y:w.y-i}}})()}};function Yt(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function j(t){if(null==t)return window;if(!Yt(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function U(t){return j(t).getComputedStyle(t)}function V(t){return Yt(t)?"":t?(t.nodeName||"").toLowerCase():""}function Gt(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function M(t){return t instanceof j(t).HTMLElement}function I(t){return t instanceof j(t).Element}function st(t){return!(typeof ShadowRoot>"u")&&(t instanceof j(t).ShadowRoot||t instanceof ShadowRoot)}function at(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=U(t);return/auto|scroll|overlay|hidden/.test(e+i+n)&&!["inline","contents"].includes(o)}function Fe(t){return["table","td","th"].includes(V(t))}function Kt(t){const e=/firefox/i.test(Gt()),n=U(t);return"none"!==n.transform||"none"!==n.perspective||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(i=>n.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=n.contain;return null!=o&&o.includes(i)})}function Jt(){return!/^((?!chrome|android).)*safari/i.test(Gt())}function Ct(t){return["html","body","#document"].includes(V(t))}const Qt=Math.min,ct=Math.max,mt=Math.round;function $(t,e,n){var i,o,a,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect();let l=1,u=1;e&&M(t)&&(l=t.offsetWidth>0&&mt(r.width)/t.offsetWidth||1,u=t.offsetHeight>0&&mt(r.height)/t.offsetHeight||1);const p=I(t)?j(t):window,f=!Jt()&&n,m=(r.left+(f&&null!=(i=null==(o=p.visualViewport)?void 0:o.offsetLeft)?i:0))/l,g=(r.top+(f&&null!=(a=null==(s=p.visualViewport)?void 0:s.offsetTop)?a:0))/u,h=r.width/l,w=r.height/u;return{width:h,height:w,top:g,right:m+h,bottom:g+w,left:m,x:m,y:g}}function z(t){return((function We(t){return t instanceof j(t).Node}(t)?t.ownerDocument:t.document)||window.document).documentElement}function ht(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(t){return $(z(t)).left+ht(t).scrollLeft}function Ue(t,e,n){const i=M(e),o=z(e),a=$(t,i&&function Ne(t){const e=$(t);return mt(e.width)!==t.offsetWidth||mt(e.height)!==t.offsetHeight}(e),"fixed"===n);let s={scrollLeft:0,scrollTop:0};const r={x:0,y:0};if(i||!i&&"fixed"!==n)if(("body"!==V(e)||at(o))&&(s=ht(e)),M(e)){const l=$(e,!0);r.x=l.x+e.clientLeft,r.y=l.y+e.clientTop}else o&&(r.x=qt(o));return{x:a.left+s.scrollLeft-r.x,y:a.top+s.scrollTop-r.y,width:a.width,height:a.height}}function Lt(t){return"html"===V(t)?t:t.assignedSlot||t.parentNode||(st(t)?t.host:null)||z(t)}function te(t){return M(t)&&"fixed"!==U(t).position?t.offsetParent:null}function kt(t){const e=j(t);let n=te(t);for(;n&&Fe(n)&&"static"===U(n).position;)n=te(n);return n&&("html"===V(n)||"body"===V(n)&&"static"===U(n).position&&!Kt(n))?e:n||function Ve(t){let e=Lt(t);for(st(e)&&(e=e.host);M(e)&&!Ct(e);){if(Kt(e))return e;{const n=e.parentNode;e=st(n)?n.host:n}}return null}(t)||e}function ee(t){if(M(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=$(t);return{width:e.width,height:e.height}}function ne(t){const e=Lt(t);return Ct(e)?t.ownerDocument.body:M(e)&&at(e)?e:ne(e)}function pt(t,e){var n;void 0===e&&(e=[]);const i=ne(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),a=j(i),s=o?[a].concat(a.visualViewport||[],at(i)?i:[]):i,r=e.concat(s);return o?r:r.concat(pt(s))}function ie(t,e,n){return"viewport"===e?ot(function Ze(t,e){const n=j(t),i=z(t),o=n.visualViewport;let a=i.clientWidth,s=i.clientHeight,r=0,l=0;if(o){a=o.width,s=o.height;const u=Jt();(u||!u&&"fixed"===e)&&(r=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:r,y:l}}(t,n)):I(e)?function Ke(t,e){const n=$(t,!1,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:i,left:o,x:o,y:i,right:o+t.clientWidth,bottom:i+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,n):ot(function Xe(t){var e;const n=z(t),i=ht(t),o=null==(e=t.ownerDocument)?void 0:e.body,a=ct(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ct(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let r=-i.scrollLeft+qt(t);const l=-i.scrollTop;return"rtl"===U(o||n).direction&&(r+=ct(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:r,y:l}}(z(t)))}function Je(t){const e=pt(t),n=function Ge(t,e){let n=t;for(;n&&!Ct(n)&&!e.includes(n)&&(!I(n)||!["absolute","fixed"].includes(U(n).position));){const i=Lt(n);n=st(i)?i.host:i}return n}(t,e);let i=null;if(n&&M(n)){const o=kt(n);at(n)?i=n:M(o)&&(i=o)}return I(i)?e.filter(o=>i&&I(o)&&function Ye(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&st(n)){let i=e;do{if(i&&t===i)return!0;i=i.parentNode||i.host}while(i)}return!1}(o,i)&&"body"!==V(o)):[]}const gt={getClippingRect:function Qe(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s=[..."clippingAncestors"===n?Je(e):[].concat(n),i],l=s.reduce((u,p)=>{const f=ie(e,p,o);return u.top=ct(f.top,u.top),u.right=Qt(f.right,u.right),u.bottom=Qt(f.bottom,u.bottom),u.left=ct(f.left,u.left),u},ie(e,s[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function ze(t){let{rect:e,offsetParent:n,strategy:i}=t;const o=M(n),a=z(n);if(n===a)return e;let s={scrollLeft:0,scrollTop:0};const r={x:0,y:0};if((o||!o&&"fixed"!==i)&&(("body"!==V(n)||at(a))&&(s=ht(n)),M(n))){const l=$(n,!0);r.x=l.x+n.clientLeft,r.y=l.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+r.x,y:e.y-s.scrollTop+r.y}},isElement:I,getDimensions:ee,getOffsetParent:kt,getDocumentElement:z,getElementRects:t=>{let{reference:e,floating:n,strategy:i}=t;return{reference:Ue(e,kt(n),i),floating:{...ee(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===U(t).direction};function qe(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=!0,animationFrame:r=!1}=i,l=o&&!r,u=l||a?[...I(t)?pt(t):[],...pt(e)]:[];u.forEach(h=>{l&&h.addEventListener("scroll",n,{passive:!0}),a&&h.addEventListener("resize",n)});let p=null;if(s){let h=!0;p=new ResizeObserver(()=>{h||n(),h=!1}),I(t)&&!r&&p.observe(t),p.observe(e)}let f,m=r?$(t):null;return r&&function g(){const h=$(t);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&n(),m=h,f=requestAnimationFrame(g)}(),n(),()=>{var h;u.forEach(w=>{l&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),null==(h=p)||h.disconnect(),p=null,r&&cancelAnimationFrame(f)}}const tn=(t,e,n)=>Oe(t,e,{platform:gt,...n}),en={floatingUINonChromiumPositioningFix:!0,...globalThis.calciteComponentsConfig},nn=function on(){return St.apply(this,arguments)}();function St(){return(St=(0,L.Z)(function*(){if(Q.Z5.isBrowser&&en.floatingUINonChromiumPositioningFix&&/firefox|safari/i.test(function t(){const e=navigator.userAgentData;return e?.brands?e.brands.map(n=>`${n.brand}/${n.version}`).join(" "):navigator.userAgent}())){const{getClippingRect:e,getElementRects:n,getOffsetParent:i}=yield C.e(8287).then(C.bind(C,38287));gt.getClippingRect=e,gt.getOffsetParent=i,gt.getElementRects=n}})).apply(this,arguments)}const oe="data-placement",se=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],ae={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function rn({placement:t,disableFlip:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:a,type:s}){const r=[Be(),Me()];if("menu"===s)return[...r,zt({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===s||"tooltip"===s){const l=[...r,Ie({mainAxis:"number"==typeof i?i:0,crossAxis:"number"==typeof o?o:0})];return"auto"===t||"auto-start"===t||"auto-end"===t?l.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,fn:e=>(0,L.Z)(function*(){var n,i,o,a,s;const{x:r,y:l,rects:u,middlewareData:p,placement:f,platform:m,elements:g}=e,{alignment:h=null,allowedPlacements:w=ke,autoAlignment:y=!0,...E}=t,b=function Se(t,e,n){return(t?[...n.filter(o=>G(o)===t),...n.filter(o=>G(o)!==t)]:n.filter(o=>Y(o)===o)).filter(o=>!t||G(o)===t||!!e&&_t(o)!==o)}(h,y,w),P=yield rt(e,E),R=null!=(n=null==(i=p.autoPlacement)?void 0:i.index)?n:0,x=b[R];if(null==x)return{};const{main:v,cross:k}=Ut(x,u,yield null==m.isRTL?void 0:m.isRTL(g.floating));if(f!==x)return{x:r,y:l,reset:{placement:b[0]}};const _=[P[Y(x)],P[v],P[k]],A=[...null!=(o=null==(a=p.autoPlacement)?void 0:a.overflows)?o:[],{placement:x,overflows:_}],Z=b[R+1];if(Z)return{data:{index:R+1,overflows:A},reset:{placement:Z}};const X=A.slice().sort((B,lt)=>B.overflows[0]-lt.overflows[0]),J=(null==(s=X.find(B=>{let{overflows:lt}=B;return lt.every(hn=>hn<=0)}))?void 0:s.placement)??X[0].placement;return J!==f?{data:{index:R+1,overflows:A},reset:{placement:J}}:{}})()}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):e||l.push(zt(n?{fallbackPlacements:n}:{})),a&&l.push((t=>({name:"arrow",options:t,fn:e=>(0,L.Z)(function*(){const{element:n,padding:i=0}=t??{},{x:o,y:a,placement:s,rects:r,platform:l}=e;if(null==n)return{};const u=Nt(i),p={x:o,y:a},f=it(s),m=G(s),g=Ot(f),h=yield l.getDimensions(n),w="y"===f?"top":"left",y="y"===f?"bottom":"right",E=r.reference[g]+r.reference[f]-p[f]-r.floating[g],b=p[f]-r.reference[f],P=yield null==l.getOffsetParent?void 0:l.getOffsetParent(n);let R=P?"y"===f?P.clientHeight||0:P.clientWidth||0:0;0===R&&(R=r.floating[g]);const v=u[w],k=R-h[g]-u[y],_=R/2-h[g]/2+(E/2-b/2),A=Rt(v,_,k);return{[f]:p[f]-(("start"===m?u[w]:u[y])>0&&_!==A&&r.reference[g]<=r.floating[g]?_se.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${se.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function an(t,e){const n=["left","right"];return"rtl"===(0,D.c)(t)&&n.reverse(),e.replace(/-leading/gi,"-start").replace(/-trailing/gi,"-end").replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}function cn(t,e){return Dt.apply(this,arguments)}function Dt(){return(Dt=(0,L.Z)(function*(t,e,n=!1){if(t.open)return n?ln(e):ce(e)})).apply(this,arguments)}const ln=function Ee(t,e,n){var i,o,a,s,r,l,u=0,p=!1,f=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(v){var k=i,_=o;return i=o=void 0,u=v,s=t.apply(_,k)}function h(v){return u=v,r=setTimeout(E,e),p?g(v):s}function y(v){var k=v-l;return void 0===l||k>=e||k<0||f&&v-u>=a}function E(){var v=Et();if(y(v))return b(v);r=setTimeout(E,function w(v){var A=e-(v-l);return f?Te(A,a-(v-u)):A}(v))}function b(v){return r=void 0,m&&i?g(v):(i=o=void 0,s)}function x(){var v=Et(),k=y(v);if(i=arguments,o=this,l=v,k){if(void 0===r)return h(l);if(f)return clearTimeout(r),r=setTimeout(E,e),g(l)}return void 0===r&&(r=setTimeout(E,e)),s}return e=Wt(e)||0,Tt(n)&&(p=!!n.leading,a=(f="maxWait"in n)?xe(Wt(n.maxWait)||0,e):a,m="trailing"in n?!!n.trailing:m),x.cancel=function P(){void 0!==r&&clearTimeout(r),u=0,i=l=o=r=void 0},x.flush=function R(){return void 0===r?s:b(Et())},x}(ce,100,{leading:!0,maxWait:100});function ce(t){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,L.Z)(function*({referenceEl:t,floatingEl:e,overlayPositioning:n="absolute",placement:i,disableFlip:o,flipPlacements:a,offsetDistance:s,offsetSkidding:r,includeArrow:l=!1,arrowEl:u,type:p}){var f;if(!t||!e||l&&!u)return null;yield nn;const{x:m,y:g,placement:h,strategy:w,middlewareData:y}=yield tn(t,e,{strategy:n,placement:"auto"===i||"auto-start"===i||"auto-end"===i?void 0:an(e,i),middleware:rn({placement:i,disableFlip:o,flipPlacements:a,offsetDistance:s,offsetSkidding:r,arrowEl:u,type:p})});if(y?.arrow){const{x,y:v}=y.arrow;Object.assign(u.style,{left:null!=x?`${x}px`:"",top:null!=v?`${v}px`:""})}const b=(null===(f=y?.hide)||void 0===f?void 0:f.referenceHidden)?"hidden":null,P=b?"none":null;e.setAttribute(oe,h);const R=`translate(${Math.round(m)}px,${Math.round(g)}px)`;Object.assign(e.style,{visibility:b,pointerEvents:P,position:w,top:"0",left:"0",transform:R})})).apply(this,arguments)}const Mt=new WeakMap;function fn(t,e,n){if(!n||!e)return;le(t,e,n);const i=t.overlayPositioning;n.style.position=i,"absolute"===i&&ue(n),Mt.set(t,(Q.Z5.isBrowser?qe:(a,s,r)=>(r(),()=>{}))(e,n,()=>t.reposition()))}function le(t,e,n){if(!n||!e)return;jt(n).removeEventListener("transitionend",It);const i=Mt.get(t);i&&i(),Mt.delete(t)}const un=Math.ceil(Math.hypot(4,4));function dn(t){!t||"absolute"!==t.style.position||jt(t).addEventListener("transitionend",It)}function jt(t){return t.shadowRoot||t}function It(t){const e=t.target;if("opacity"===t.propertyName&&e.classList.contains(ae.animation)){const n=function mn(t){return(0,D.o)(t,`[${oe}]`)}(e);ue(n),jt(n).removeEventListener("transitionend",It)}}function ue(t){t.style.transform="",t.style.top="-99999px",t.style.left="-99999px"}},23504:($t,tt,C)=>{C.d(tt,{g:()=>D});const D=()=>function L(Q){return Q.map(H=>{let W="";for(let F=0;F{C.d(tt,{T:()=>ft,d:()=>ut});var L=C(15861),D=C(76210),Q=C(23504),H=C(80376),W=C(46203);const et="aria-describedby",N=new class vt{constructor(){this.registeredElements=new WeakMap,this.hoverTimeouts=new WeakMap,this.registeredElementCount=0,this.queryTooltip=c=>{const{registeredElements:d}=this,O=c.find(S=>d.has(S));return d.get(O)},this.keyDownHandler=c=>{if("Escape"===c.key){const{activeTooltipEl:d}=this;d&&(this.clearHoverTimeout(d),this.toggleTooltip(d,!1))}},this.mouseEnterShow=c=>{this.hoverEvent(c,!0)},this.mouseLeaveHide=c=>{this.hoverEvent(c,!1)},this.clickHandler=c=>{if(!(0,W.i)(c))return;const d=this.queryTooltip(c.composedPath());this.clickedTooltip=d,d?.closeOnClick&&(this.toggleTooltip(d,!1),this.clearHoverTimeout(d))},this.focusShow=c=>{this.focusEvent(c,!0)},this.blurHide=c=>{this.focusEvent(c,!1)},this.hoverToggle=(c,d)=>{const{hoverTimeouts:O}=this;O.delete(c),d&&this.closeExistingTooltip(),this.toggleTooltip(c,d)}}registerElement(c,d){this.registeredElementCount++,this.registeredElements.set(c,d),1===this.registeredElementCount&&this.addListeners()}unregisterElement(c){this.registeredElements.delete(c)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addListeners(){document.addEventListener("keydown",this.keyDownHandler),document.addEventListener("pointerover",this.mouseEnterShow,{capture:!0}),document.addEventListener("pointerout",this.mouseLeaveHide,{capture:!0}),document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("focusin",this.focusShow,{capture:!0}),document.addEventListener("focusout",this.blurHide,{capture:!0})}removeListeners(){document.removeEventListener("keydown",this.keyDownHandler),document.removeEventListener("pointerover",this.mouseEnterShow,{capture:!0}),document.removeEventListener("pointerout",this.mouseLeaveHide,{capture:!0}),document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("focusin",this.focusShow,{capture:!0}),document.removeEventListener("focusout",this.blurHide,{capture:!0})}clearHoverTimeout(c){const{hoverTimeouts:d}=this;d.has(c)&&(window.clearTimeout(d.get(c)),d.delete(c))}closeExistingTooltip(){const{activeTooltipEl:c}=this;c&&this.toggleTooltip(c,!1)}focusTooltip(c,d){this.closeExistingTooltip(),d&&this.clearHoverTimeout(c),this.toggleTooltip(c,d)}toggleTooltip(c,d){c.open=d,d&&(this.activeTooltipEl=c)}hoverTooltip(c,d){this.clearHoverTimeout(c);const{hoverTimeouts:O}=this,S=window.setTimeout(()=>this.hoverToggle(c,d),500);O.set(c,S)}activeTooltipHover(c){const{activeTooltipEl:d,hoverTimeouts:O}=this,{type:S}=c;!d||("pointerover"===S&&c.composedPath().includes(d)?this.clearHoverTimeout(d):"pointerout"===S&&!O.has(d)&&this.hoverTooltip(d,!1))}hoverEvent(c,d){const O=this.queryTooltip(c.composedPath());this.activeTooltipHover(c),O&&this.hoverTooltip(O,d)}focusEvent(c,d){const O=this.queryTooltip(c.composedPath());O&&O!==this.clickedTooltip?this.focusTooltip(O,d):this.clickedTooltip=null}},ft=(0,D.GH)(class extends D.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.closeOnClick=!1,this.offsetDistance=H.b,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.guid=`calcite-tooltip-${(0,Q.g)()}`,this.hasLoaded=!1,this.setUpReferenceElement=(T=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),(0,H.c)(this,this.effectiveReferenceElement,this.el);const{el:c,referenceElement:d,effectiveReferenceElement:O}=this;T&&d&&!O&&console.warn(`${c.tagName}: reference-element id "${d}" was not found.`,{el:c}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:T}=this;if(!T)return;const c=this.getId();"setAttribute"in T&&T.setAttribute(et,c),N.registerElement(T,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:T}=this;!T||("removeAttribute"in T&&T.removeAttribute(et),N.unregisterElement(T))}}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(T){T?this.reposition(!0):(0,H.u)(this.el)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){this.setUpReferenceElement(this.hasLoaded)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),(0,H.a)(this,this.effectiveReferenceElement,this.el)}reposition(T=!1){var c=this;return(0,L.Z)(function*(){const{el:d,effectiveReferenceElement:O,placement:S,overlayPositioning:nt,offsetDistance:wt,offsetSkidding:bt,arrowEl:xt}=c;return(0,H.r)(c,{floatingEl:d,referenceEl:O,overlayPositioning:nt,placement:S,offsetDistance:wt,offsetSkidding:bt,includeArrow:!0,arrowEl:xt,type:"tooltip"},T)})()}getReferenceElement(){const{referenceElement:T,el:c}=this;return("string"==typeof T?(0,W.q)(c,{id:T}):T)||null}render(){const{effectiveReferenceElement:T,label:c,open:d}=this,O=T&&d,S=!O;return(0,D.h)(D.AA,{"aria-hidden":(0,W.t)(S),"aria-label":c,"aria-live":"polite","calcite-hydrated-hidden":S,id:this.getId(),role:"tooltip"},(0,D.h)("div",{class:{[H.F.animation]:!0,[H.F.animationActive]:O}},(0,D.h)("div",{class:"arrow",ref:nt=>this.arrowEl=nt}),(0,D.h)("div",{class:"container"},(0,D.h)("slot",null))))}get el(){return this}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}static get style(){return'@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:999}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;visibility:visible;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=left]) .arrow{direction:ltr;inset-inline-end:-4px}:host([data-placement^=right]) .arrow{direction:ltr;inset-inline-start:-4px}.container{position:relative;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}'}},[1,"calcite-tooltip",{closeOnClick:[516,"close-on-click"],label:[1],offsetDistance:[514,"offset-distance"],offsetSkidding:[514,"offset-skidding"],open:[516],overlayPositioning:[513,"overlay-positioning"],placement:[513],referenceElement:[1,"reference-element"],effectiveReferenceElement:[32],reposition:[64]}]);function ut(){typeof customElements>"u"||["calcite-tooltip"].forEach(c=>{"calcite-tooltip"===c&&(customElements.get(c)||customElements.define(c,ft))})}ut()}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/88.62477a3a44b3ef26.js b/apps/n/porrtal-io-app/public/angular/88.62477a3a44b3ef26.js deleted file mode 100644 index a95a8920..00000000 --- a/apps/n/porrtal-io-app/public/angular/88.62477a3a44b3ef26.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[88],{88:(f,i,n)=>{n.r(i),n.d(i,{b:()=>p});var u,h,r,s=n(1719),t={exports:{}};u=t,void 0!==(r=t.exports,Object.defineProperty(r,"__esModule",{value:!0}),h=void(r.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n. e.",_era_bc:"p. n. e.",A:"prijepodne",P:"popodne",AM:"AM",PM:"PM","A.M.":"prijepodne","P.M.":"popodne",January:"januar",February:"februar",March:"mart",April:"april",May:"maj",June:"juni",July:"juli",August:"august",September:"septembar",October:"oktobar",November:"novembar",December:"decembar",Jan:"jan",Feb:"feb",Mar:"mar",Apr:"apr","May(short)":"maj",Jun:"jun",Jul:"jul",Aug:"aug",Sep:"sep",Oct:"okt",Nov:"nov",Dec:"dec",Sunday:"nedjelja",Monday:"ponedjeljak",Tuesday:"utorak",Wednesday:"srijeda",Thursday:"\u010detvrtak",Friday:"petak",Saturday:"subota",Sun:"ned",Mon:"pon",Tue:"uto",Wed:"sri",Thu:"\u010det",Fri:"pet",Sat:"sub",_dateOrd:function(o){var e="th";if(o<11||o>13)switch(o%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Pove\u0107aj",Play:"Reproduciraj",Stop:"Zaustavi",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"U\u010ditavanje",Home:"Po\u010detna",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Ispis",Image:"Slika",Data:"Podaci",Print:"Ispis","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=h);const p=function c(_,r){for(var o=0;oe[a]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,s.g)(t.exports)},[t.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8863.1c84449abf87f6c9.js b/apps/n/porrtal-io-app/public/angular/8863.1c84449abf87f6c9.js deleted file mode 100644 index c3d3db94..00000000 --- a/apps/n/porrtal-io-app/public/angular/8863.1c84449abf87f6c9.js +++ /dev/null @@ -1,5239 +0,0 @@ -(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8863],{8863:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{AccountBillingHistoryComponent:()=>ee,AccountCreateComponent:()=>ie,AccountDetailComponent:()=>Y,AccountNavComponent:()=>H,AccountSearchComponent:()=>re,AppointmentCreateComponent:()=>Pv,AppointmentDetailComponent:()=>Tv,AppointmentLocationMapComponent:()=>Mv,AppointmentNavComponent:()=>bv,AppointmentSearchComponent:()=>Cv,BuildingSceneWithQueryComponent:()=>Wb,CollapsibleTreeComponent:()=>Kb,DigitalElevationMapComponent:()=>Nb,EarthquakeMapComponent:()=>Fb,HierarchicalBarChartComponent:()=>Zb,HurricaneMapComponent:()=>jb,VizNavComponent:()=>Ov,ZoomableCirclePackComponent:()=>Vb,ZoomableIcicleComponent:()=>Gb,ZoomableSunburstComponent:()=>zb,ZoomableTreemapComponent:()=>Hb});var D=v(36895),R=v(46485);const Z=[{accountId:1,name:"Bank of Big Money",orders:[{date:Date.now(),item:"Screen design",amount:1e3},{date:Date.now()+432e6,item:"Screen development",amount:5e3},{date:Date.now()+864e6,item:"Screen testing",amount:3e3}]},{accountId:2,name:"Bill Jones",orders:[{date:Date.now(),item:"Slide development",amount:1e3}]},{accountId:3,name:"Waffles R Us",orders:[{date:Date.now(),item:"Screen design",amount:2e3},{date:Date.now()+432e6,item:"Screen development",amount:8e3},{date:Date.now()+864e6,item:"Screen testing",amount:5e3}]},{accountId:4,name:"Waffle House",orders:[{date:Date.now(),item:"Screen design",amount:500},{date:Date.now()+432e6,item:"Screen development",amount:2e3}]},{accountId:5,name:"Crypto Bank",orders:[{date:Date.now(),item:"Slide work",amount:1e3},{date:Date.now()+432e6,item:"Computer order",amount:15e3},{date:Date.now()+864e6,item:"Programming",amount:21e3}]}];var Q=v(97392),$=v(94650);const W=function(d){return{accountId:d}};function B(d,_){if(1&d&&($.ynx(0),$.TgZ(1,"porrtal-entity-menu",4)(2,"span",5)(3,"mat-icon"),$._uU(4,"account_box"),$.qZA(),$.TgZ(5,"span",6),$._uU(6),$.qZA()()(),$.TgZ(7,"span"),$._uU(8),$.ALo(9,"number"),$.qZA(),$.BQk()),2&d){const T=_.$implicit;$.xp6(1),$.Q6J("state",$.VKq(6,W,T.accountId)),$.xp6(5),$.Oqu(T.name),$.xp6(2),$.hij(" $ ",$.xi3(9,3,T.total,"1.0-0")," ")}}class H{constructor(){this.topThreeAccounts=[],this.topThreeAccounts=[...Z.map(_=>{const T=_.orders.reduce((x,A)=>x+A.amount,0);return{..._,total:T}}).sort((_,T)=>T.total-_.total).filter((_,T)=>T<3)],console.log("top three accounts",this.topThreeAccounts)}static#e=this.\u0275fac=function(T){return new(T||H)};static#t=this.\u0275cmp=$.Xpm({type:H,selectors:[["porrtal-account-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:5,vars:1,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"],[2,"margin-left","5px"]],template:function(T,x){1&T&&($.TgZ(0,"div",0)(1,"h3",1),$._uU(2,"Top Three Accounts"),$.qZA(),$.TgZ(3,"div",2),$.YNc(4,B,10,8,"ng-container",3),$.qZA()()),2&T&&($.xp6(4),$.Q6J("ngForOf",x.topThreeAccounts))},dependencies:[D.ez,D.sg,D.JJ,Q.Ps,Q.Hw,R.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;align-items:center;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"]})}var X=v(54004),te=v(30878),ae=v(15439);function oe(d,_){if(1&d&&($.ynx(0),$.TgZ(1,"span"),$._uU(2),$.qZA(),$.TgZ(3,"span"),$._uU(4),$.qZA(),$.TgZ(5,"span"),$._uU(6),$.qZA(),$.BQk()),2&d){const T=_.$implicit,x=$.oxw(3);$.xp6(2),$.Oqu(T.item),$.xp6(2),$.Oqu(x.formatAmount(T.amount)),$.xp6(2),$.Oqu(x.Moment(T.date).format("YYYY-DD-MM"))}}const le=function(d){return{accountId:d}};function de(d,_){if(1&d&&($.ynx(0),$.TgZ(1,"porrtal-entity-menu",5)(2,"span",6)(3,"mat-icon"),$._uU(4,"account_box"),$.qZA(),$.TgZ(5,"span",7),$._uU(6),$.qZA()()(),$.TgZ(7,"div",8),$.YNc(8,oe,7,3,"ng-container",4),$.qZA(),$.BQk()),2&d){const T=_.$implicit;$.xp6(1),$.Q6J("state",$.VKq(3,le,T.accountId)),$.xp6(5),$.Oqu(T.name),$.xp6(2),$.Q6J("ngForOf",T.orders)}}function se(d,_){if(1&d&&($.ynx(0),$.YNc(1,de,9,5,"ng-container",4),$.BQk()),2&d){const T=_.ngIf;$.xp6(1),$.Q6J("ngForOf",T)}}class re{constructor(_){this.searchStateService=_,this.Moment=ae,this.searchText$=_.select("debouncedSearchText"),this.filteredAccounts$=_.select("debouncedSearchText").pipe((0,X.U)(T=>Z.filter(x=>JSON.stringify(x).toLowerCase().indexOf(T.toLowerCase())>=0)))}formatAmount(_){return"$"+_.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}static#e=this.\u0275fac=function(T){return new(T||re)($.Y36(te.tx))};static#t=this.\u0275cmp=$.Xpm({type:re,selectors:[["porrtal-account-search"]],inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:7,vars:6,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngIf"],[4,"ngFor","ngForOf"],["entityType","account",3,"state"],[1,"link-button",2,"display","grid","grid-template-columns","24px auto"],[2,"margin-left","5px"],[1,"orders-data-container"]],template:function(T,x){1&T&&($.TgZ(0,"div",0)(1,"h3",1),$._uU(2),$.ALo(3,"async"),$.qZA(),$.TgZ(4,"div",2),$.YNc(5,se,2,1,"ng-container",3),$.ALo(6,"async"),$.qZA()()),2&T&&($.xp6(2),$.hij("Account Search: ",$.lcZ(3,2,x.searchText$),""),$.xp6(3),$.Q6J("ngIf",$.lcZ(6,4,x.filteredAccounts$)))},dependencies:[D.ez,D.sg,D.O5,D.Ov,Q.Ps,Q.Hw,R.Ak],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:5px;padding-bottom:4px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px;margin-top:30px}.orders-data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin:15px 15px 15px 45px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}function j(d,_){if(1&d&&($.ynx(0),$.TgZ(1,"span"),$._uU(2),$.qZA(),$.TgZ(3,"span"),$._uU(4),$.qZA(),$.TgZ(5,"span"),$._uU(6),$.qZA(),$.BQk()),2&d){const T=_.$implicit,x=$.oxw();$.xp6(2),$.Oqu(T.item),$.xp6(2),$.hij(" ",T.amountText," "),$.xp6(2),$.Oqu(x.Moment(T.date).format("YYYY-DD-MM"))}}class Y{constructor(){this.Moment=ae}set viewState(_){if(this._viewState=_,this._viewState?.state&&this._viewState?.state.accountId){const T=this._viewState?.state.accountId;this.account=Z.find(x=>x.accountId===T),this.orders=[],this.account&&(this.orders=this.account.orders.map(x=>({...x,amountText:"$"+x.amount.toFixed(0).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")})))}}get viewState(){return this._viewState}static#e=this.\u0275fac=function(T){return new(T||Y)};static#t=this.\u0275cmp=$.Xpm({type:Y,selectors:[["porrtal-account-detail"]],inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:5,vars:3,consts:[[1,"container"],[1,"title"],[1,"data-container"],[4,"ngFor","ngForOf"]],template:function(T,x){1&T&&($.TgZ(0,"div",0)(1,"h3",1),$._uU(2),$.qZA(),$.TgZ(3,"div",2),$.YNc(4,j,7,3,"ng-container",3),$.qZA()()),2&T&&($.xp6(2),$.AsE(" ",null==x.account?null:x.account.name," (",null==x.account?null:x.account.accountId,") - Account Detail "),$.xp6(2),$.Q6J("ngForOf",x.orders))},dependencies:[D.ez,D.sg],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;justify-self:start;gap:10px;grid-template-columns:auto auto auto;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class ee{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||ee)};static#t=this.\u0275cmp=$.Xpm({type:ee,selectors:[["porrtal-account-billing-history"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"account-billing-history works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class ie{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||ie)};static#t=this.\u0275cmp=$.Xpm({type:ie,selectors:[["porrtal-account-create"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"account-create works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}new(v(61135).X)(void 0);const pe=[{appointmentId:1,accountId:1,date:Date.now()+72e5,item:"Kickoff Meeting",description:"Introduction to the development process.",location:"Baker Street Cafe",duration:18e5},{appointmentId:2,accountId:2,date:Date.now()+0,item:"Slide Review",description:"Review the initial slides.",location:"101 18th Street, Suite 100",duration:36e5},{appointmentId:3,accountId:4,date:Date.now()+144e5,item:"Business Overview",description:"Present the Important Business Use Cases",location:"2357 Smith Drive",duration:36e5},{appointmentId:4,accountId:1,date:Date.now()+864e5,item:"Review Screen Mockups",description:"Review the initial screen mockups for the application",location:"Baker Street Cafe",duration:18e5},{appointmentId:5,accountId:2,date:Date.now()+1008e5,item:"Final Slide Review",description:"Review the slides and receive the PowerPoint files",location:"101 18th Street, Suite 100",duration:72e5},{appointmentId:6,accountId:3,date:Date.now()+1728e5,item:"Development Process Overview",description:"Introduction to the development process",location:"Waffles R Us #6",duration:18e5},{appointmentId:7,accountId:4,date:Date.now()+1764e5,item:"Development Process Overview",description:"Introduction to the development process",location:"Waffle House #27",duration:27e5},{appointmentId:8,accountId:5,date:Date.now()+18e7,item:"Computer Inventory",description:"Review current inventory and plan new orders",location:"512 3rd Street, Suite 1520",duration:18e5},{appointmentId:9,accountId:1,date:Date.now()+2592e5,item:"Screen demo",description:"Show screens and collect feedback",location:"Baker Street Cafe",duration:36e5},{appointmentId:10,accountId:4,date:Date.now()+2664e5,item:"Screen demo",description:"Show screens and collect feedback",location:"Waffle House #27",duration:36e5}];function he(d){return d}function be(d){return"translate("+d+",0)"}function Se(d){return"translate(0,"+d+")"}function ye(d){return _=>+d(_)}function ve(d,_){return _=Math.max(0,d.bandwidth()-2*_)/2,d.round()&&(_=Math.round(_)),T=>+d(T)+_}function xe(){return!this.__axis}function ze(d,_){var T=[],x=null,A=null,U=6,ne=6,fe=3,Oe=typeof window<"u"&&window.devicePixelRatio>1?0:.5,we=1===d||4===d?-1:1,Ze=4===d||2===d?"x":"y",it=1===d||3===d?be:Se;function lt(dt){var Tt=x??(_.ticks?_.ticks.apply(_,T):_.domain()),mt=A??(_.tickFormat?_.tickFormat.apply(_,T):he),Mt=Math.max(U,0)+fe,Pt=_.range(),Nt=+Pt[0]+Oe,Bt=+Pt[Pt.length-1]+Oe,Zt=(_.bandwidth?ve:ye)(_.copy(),Oe),nr=dt.selection?dt.selection():dt,Jt=nr.selectAll(".domain").data([null]),Rr=nr.selectAll(".tick").data(Tt,_).order(),Br=Rr.exit(),$r=Rr.enter().append("g").attr("class","tick"),Yr=Rr.select("line"),cs=Rr.select("text");Jt=Jt.merge(Jt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Rr=Rr.merge($r),Yr=Yr.merge($r.append("line").attr("stroke","currentColor").attr(Ze+"2",we*U)),cs=cs.merge($r.append("text").attr("fill","currentColor").attr(Ze,we*Mt).attr("dy",1===d?"0em":3===d?"0.71em":"0.32em")),dt!==nr&&(Jt=Jt.transition(dt),Rr=Rr.transition(dt),Yr=Yr.transition(dt),cs=cs.transition(dt),Br=Br.transition(dt).attr("opacity",1e-6).attr("transform",function(Xr){return isFinite(Xr=Zt(Xr))?it(Xr+Oe):this.getAttribute("transform")}),$r.attr("opacity",1e-6).attr("transform",function(Xr){var os=this.parentNode.__axis;return it((os&&isFinite(os=os(Xr))?os:Zt(Xr))+Oe)})),Br.remove(),Jt.attr("d",4===d||2===d?ne?"M"+we*ne+","+Nt+"H"+Oe+"V"+Bt+"H"+we*ne:"M"+Oe+","+Nt+"V"+Bt:ne?"M"+Nt+","+we*ne+"V"+Oe+"H"+Bt+"V"+we*ne:"M"+Nt+","+Oe+"H"+Bt),Rr.attr("opacity",1).attr("transform",function(Xr){return it(Zt(Xr)+Oe)}),Yr.attr(Ze+"2",we*U),cs.attr(Ze,we*Mt).text(mt),nr.filter(xe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===d?"start":4===d?"end":"middle"),nr.each(function(){this.__axis=Zt})}return lt.scale=function(dt){return arguments.length?(_=dt,lt):_},lt.ticks=function(){return T=Array.from(arguments),lt},lt.tickArguments=function(dt){return arguments.length?(T=null==dt?[]:Array.from(dt),lt):T.slice()},lt.tickValues=function(dt){return arguments.length?(x=null==dt?null:Array.from(dt),lt):x&&x.slice()},lt.tickFormat=function(dt){return arguments.length?(A=dt,lt):A},lt.tickSize=function(dt){return arguments.length?(U=ne=+dt,lt):U},lt.tickSizeInner=function(dt){return arguments.length?(U=+dt,lt):U},lt.tickSizeOuter=function(dt){return arguments.length?(ne=+dt,lt):ne},lt.tickPadding=function(dt){return arguments.length?(fe=+dt,lt):fe},lt.offset=function(dt){return arguments.length?(Oe=+dt,lt):Oe},lt}function Fe(){}function je(d){return null==d?Fe:function(){return this.querySelector(d)}}function He(d){return null==d?[]:Array.isArray(d)?d:Array.from(d)}function Ie(){return[]}function Ge(d){return null==d?Ie:function(){return this.querySelectorAll(d)}}function Me(d){return function(){return this.matches(d)}}function Ne(d){return function(_){return _.matches(d)}}var Xe=Array.prototype.find;function Je(){return this.firstElementChild}var tt=Array.prototype.filter;function et(){return Array.from(this.children)}function _t(d){return new Array(d.length)}function vt(d,_){this.ownerDocument=d.ownerDocument,this.namespaceURI=d.namespaceURI,this._next=null,this._parent=d,this.__data__=_}function Lt(d){return function(){return d}}function jt(d,_,T,x,A,U){for(var fe,ne=0,Oe=_.length,we=U.length;ne_?1:d>=_?0:NaN}vt.prototype={constructor:vt,appendChild:function(d){return this._parent.insertBefore(d,this._next)},insertBefore:function(d,_){return this._parent.insertBefore(d,_)},querySelector:function(d){return this._parent.querySelector(d)},querySelectorAll:function(d){return this._parent.querySelectorAll(d)}};var hr="http://www.w3.org/1999/xhtml";const Tr={svg:"http://www.w3.org/2000/svg",xhtml:hr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Dr(d){var _=d+="",T=_.indexOf(":");return T>=0&&"xmlns"!==(_=d.slice(0,T))&&(d=d.slice(T+1)),Tr.hasOwnProperty(_)?{space:Tr[_],local:d}:d}function Lr(d){return function(){this.removeAttribute(d)}}function Hr(d){return function(){this.removeAttributeNS(d.space,d.local)}}function Qr(d,_){return function(){this.setAttribute(d,_)}}function Jr(d,_){return function(){this.setAttributeNS(d.space,d.local,_)}}function Ss(d,_){return function(){var T=_.apply(this,arguments);null==T?this.removeAttribute(d):this.setAttribute(d,T)}}function Cs(d,_){return function(){var T=_.apply(this,arguments);null==T?this.removeAttributeNS(d.space,d.local):this.setAttributeNS(d.space,d.local,T)}}function ct(d){return d.ownerDocument&&d.ownerDocument.defaultView||d.document&&d||d.defaultView}function At(d){return function(){this.style.removeProperty(d)}}function Kt(d,_,T){return function(){this.style.setProperty(d,_,T)}}function tr(d,_,T){return function(){var x=_.apply(this,arguments);null==x?this.style.removeProperty(d):this.style.setProperty(d,x,T)}}function Or(d,_){return d.style.getPropertyValue(_)||ct(d).getComputedStyle(d,null).getPropertyValue(_)}function gs(d){return function(){delete this[d]}}function Kr(d,_){return function(){this[d]=_}}function qt(d,_){return function(){var T=_.apply(this,arguments);null==T?delete this[d]:this[d]=T}}function Sr(d){return d.trim().split(/^|\s+/)}function fs(d){return d.classList||new at(d)}function at(d){this._node=d,this._names=Sr(d.getAttribute("class")||"")}function bt(d,_){for(var T=fs(d),x=-1,A=_.length;++x=0&&(T=_.slice(x+1),_=_.slice(0,x)),{type:_,name:T}})}function $s(d){return function(){var _=this.__on;if(_){for(var U,T=0,x=-1,A=_.length;T=0&&(this._names.splice(_,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(d){return this._names.indexOf(d)>=0}};var An=[null];function Ki(d,_){this._groups=d,this._parents=_}function _n(){return new Ki([[document.documentElement]],An)}Ki.prototype=_n.prototype={constructor:Ki,select:function Re(d){"function"!=typeof d&&(d=je(d));for(var _=this._groups,T=_.length,x=new Array(T),A=0;A=Bt&&(Bt=Nt+1);!(nr=Mt[Bt])&&++Bt=0;)(ne=x[A])&&(U&&4^ne.compareDocumentPosition(U)&&U.parentNode.insertBefore(ne,U),U=ne);return this},sort:function or(d){function _(it,lt){return it&<?d(it.__data__,lt.__data__):!it-!lt}d||(d=sr);for(var T=this._groups,x=T.length,A=new Array(x),U=0;U1?this.each((null==_?At:"function"==typeof _?tr:Kt)(d,_,T??"")):Or(this.node(),d)},property:function Ir(d,_){return arguments.length>1?this.each((null==_?gs:"function"==typeof _?qt:Kr)(d,_)):this.node()[d]},classed:function us(d,_){var T=Sr(d+"");if(arguments.length<2){for(var x=fs(this.node()),A=-1,U=T.length;++A{}};function Jn(){for(var x,d=0,_=arguments.length,T={};d<_;++d){if(!(x=arguments[d]+"")||x in T||/[\s.]/.test(x))throw new Error("illegal type: "+x);T[x]=[]}return new jl(T)}function jl(d){this._=d}function oc(d,_){return d.trim().split(/^|\s+/).map(function(T){var x="",A=T.indexOf(".");if(A>=0&&(x=T.slice(A+1),T=T.slice(0,A)),T&&!_.hasOwnProperty(T))throw new Error("unknown type: "+T);return{type:T,name:x}})}function Lo(d,_){for(var A,T=0,x=d.length;T0)for(var A,U,T=new Array(A),x=0;x=0&&d._call.call(void 0,_),d=d._next;--cr}()}finally{cr=0,function Ks(){for(var d,T,_=Bn,x=1/0;_;)_._call?(x>_._time&&(x=_._time),d=_,_=_._next):(T=_._next,_._next=null,_=d?d._next=T:Bn=T);cn=d,ri(x)}(),Na=0}}function hs(){var d=It.now(),_=d-Uo;_>1e3&&(Ot-=_,Uo=d)}function ri(d){cr||(ns&&(ns=clearTimeout(ns)),d-Na>24?(d<1/0&&(ns=setTimeout(es,d-It.now()-Ot)),vs&&(vs=clearInterval(vs))):(vs||(Uo=It.now(),vs=setInterval(hs,1e3)),cr=1,Xt(es)))}function Ci(d,_,T){var x=new Mr;return x.restart(A=>{x.stop(),d(A+_)},_=null==_?0:+_,T),x}Mr.prototype=Nr.prototype={constructor:Mr,restart:function(d,_,T){if("function"!=typeof d)throw new TypeError("callback is not a function");T=(null==T?ur():+T)+(null==_?0:+_),!this._next&&cn!==this&&(cn?cn._next=this:Bn=this,cn=this),this._call=d,this._time=T,ri()},stop:function(){this._call&&(this._call=null,this._time=1/0,ri())}};var Qn=Pa("start","end","cancel","interrupt"),hl=[];function eh(d,_,T,x,A,U){var ne=d.__transition;if(ne){if(T in ne)return}else d.__transition={};!function I0(d,_,T){var A,x=d.__transition;function ne(we){var Ze,it,lt,dt;if(1!==T.state)return Oe();for(Ze in x)if((dt=x[Ze]).name===T.name){if(3===dt.state)return Ci(ne);4===dt.state?(dt.state=6,dt.timer.stop(),dt.on.call("interrupt",d,d.__data__,dt.index,dt.group),delete x[Ze]):+Ze<_&&(dt.state=6,dt.timer.stop(),dt.on.call("cancel",d,d.__data__,dt.index,dt.group),delete x[Ze])}if(Ci(function(){3===T.state&&(T.state=4,T.timer.restart(fe,T.delay,T.time),fe(we))}),T.state=2,T.on.call("start",d,d.__data__,T.index,T.group),2===T.state){for(T.state=3,A=new Array(lt=T.tween.length),Ze=0,it=-1;Ze0)throw new Error("too late; already scheduled");return T}function vo(d,_){var T=ac(d,_);if(T.state>3)throw new Error("too late; already running");return T}function ac(d,_){var T=d.__transition;if(!T||!(T=T[_]))throw new Error("transition not found");return T}function aa(d,_){return d=+d,_=+_,function(T){return d*(1-T)+_*T}}var fl,_l=180/Math.PI,up={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ny(d,_,T,x,A,U){var ne,fe,Oe;return(ne=Math.sqrt(d*d+_*_))&&(d/=ne,_/=ne),(Oe=d*T+_*x)&&(T-=d*Oe,x-=_*Oe),(fe=Math.sqrt(T*T+x*x))&&(T/=fe,x/=fe,Oe/=fe),d*x<_*T&&(d=-d,_=-_,Oe=-Oe,ne=-ne),{translateX:A,translateY:U,rotate:Math.atan2(_,d)*_l,skewX:Math.atan(Oe)*_l,scaleX:ne,scaleY:fe}}function Wy(d,_,T,x){function A(we){return we.length?we.pop()+" ":""}return function(we,Ze){var it=[],lt=[];return we=d(we),Ze=d(Ze),function U(we,Ze,it,lt,dt,Tt){if(we!==it||Ze!==lt){var mt=dt.push("translate(",null,_,null,T);Tt.push({i:mt-4,x:aa(we,it)},{i:mt-2,x:aa(Ze,lt)})}else(it||lt)&&dt.push("translate("+it+_+lt+T)}(we.translateX,we.translateY,Ze.translateX,Ze.translateY,it,lt),function ne(we,Ze,it,lt){we!==Ze?(we-Ze>180?Ze+=360:Ze-we>180&&(we+=360),lt.push({i:it.push(A(it)+"rotate(",null,x)-2,x:aa(we,Ze)})):Ze&&it.push(A(it)+"rotate("+Ze+x)}(we.rotate,Ze.rotate,it,lt),function fe(we,Ze,it,lt){we!==Ze?lt.push({i:it.push(A(it)+"skewX(",null,x)-2,x:aa(we,Ze)}):Ze&&it.push(A(it)+"skewX("+Ze+x)}(we.skewX,Ze.skewX,it,lt),function Oe(we,Ze,it,lt,dt,Tt){if(we!==it||Ze!==lt){var mt=dt.push(A(dt)+"scale(",null,",",null,")");Tt.push({i:mt-4,x:aa(we,it)},{i:mt-2,x:aa(Ze,lt)})}else(1!==it||1!==lt)&&dt.push(A(dt)+"scale("+it+","+lt+")")}(we.scaleX,we.scaleY,Ze.scaleX,Ze.scaleY,it,lt),we=Ze=null,function(dt){for(var Mt,Tt=-1,mt=lt.length;++Tt>8&15|_>>4&240,_>>4&15|240&_,(15&_)<<4|15&_,1):8===T?sh(_>>24&255,_>>16&255,_>>8&255,(255&_)/255):4===T?sh(_>>12&15|_>>8&240,_>>8&15|_>>4&240,_>>4&15|240&_,((15&_)<<4|15&_)/255):null):(_=nC.exec(d))?new Qa(_[1],_[2],_[3],1):(_=Vy.exec(d))?new Qa(255*_[1]/100,255*_[2]/100,255*_[3]/100,1):(_=qf.exec(d))?sh(_[1],_[2],_[3],_[4]):(_=Cn.exec(d))?sh(255*_[1]/100,255*_[2]/100,255*_[3]/100,_[4]):(_=oC.exec(d))?$y(_[1],_[2]/100,_[3]/100,1):(_=aC.exec(d))?$y(_[1],_[2]/100,_[3]/100,_[4]):zy.hasOwnProperty(d)?em(zy[d]):"transparent"===d?new Qa(NaN,NaN,NaN,0):null}function em(d){return new Qa(d>>16&255,d>>8&255,255&d,1)}function sh(d,_,T,x){return x<=0&&(d=_=T=NaN),new Qa(d,_,T,x)}function Gy(d){return d instanceof Hi||(d=la(d)),d?new Qa((d=d.rgb()).r,d.g,d.b,d.opacity):new Qa}function B0(d,_,T,x){return 1===arguments.length?Gy(d):new Qa(d,_,T,x??1)}function Qa(d,_,T,x){this.r=+d,this.g=+_,this.b=+T,this.opacity=+x}function Ky(){return`#${Qc(this.r)}${Qc(this.g)}${Qc(this.b)}`}function Zy(){const d=hp(this.opacity);return`${1===d?"rgb(":"rgba("}${sd(this.r)}, ${sd(this.g)}, ${sd(this.b)}${1===d?")":`, ${d})`}`}function hp(d){return isNaN(d)?1:Math.max(0,Math.min(1,d))}function sd(d){return Math.max(0,Math.min(255,Math.round(d)||0))}function Qc(d){return((d=sd(d))<16?"0":"")+d.toString(16)}function $y(d,_,T,x){return x<=0?d=_=T=NaN:T<=0||T>=1?d=_=NaN:_<=0&&(d=NaN),new Fl(d,_,T,x)}function Yy(d){if(d instanceof Fl)return new Fl(d.h,d.s,d.l,d.opacity);if(d instanceof Hi||(d=la(d)),!d)return new Fl;if(d instanceof Fl)return d;var _=(d=d.rgb()).r/255,T=d.g/255,x=d.b/255,A=Math.min(_,T,x),U=Math.max(_,T,x),ne=NaN,fe=U-A,Oe=(U+A)/2;return fe?(ne=_===U?(T-x)/fe+6*(T0&&Oe<1?0:ne,new Fl(ne,fe,Oe,d.opacity)}function Fl(d,_,T,x){this.h=+d,this.s=+_,this.l=+T,this.opacity=+x}function ky(d){return(d=(d||0)%360)<0?d+360:d}function j0(d){return Math.max(0,Math.min(1,d||0))}function tm(d,_,T){return 255*(d<60?_+(T-_)*d/60:d<180?T:d<240?_+(T-_)*(240-d)/60:_)}function pp(d,_,T,x,A){var U=d*d,ne=U*d;return((1-3*d+3*U-ne)*_+(4-6*U+3*ne)*T+(1+3*d+3*U-3*ne)*x+ne*A)/6}U0(Hi,la,{copy(d){return Object.assign(new this.constructor,this,d)},displayable(){return this.rgb().displayable()},hex:Hy,formatHex:Hy,formatHex8:function lC(){return this.rgb().formatHex8()},formatHsl:function cC(){return Yy(this).formatHsl()},formatRgb:Jc,toString:Jc}),U0(Qa,B0,Qf(Hi,{brighter(d){return d=null==d?rh:Math.pow(rh,d),new Qa(this.r*d,this.g*d,this.b*d,this.opacity)},darker(d){return d=null==d?.7:Math.pow(.7,d),new Qa(this.r*d,this.g*d,this.b*d,this.opacity)},rgb(){return this},clamp(){return new Qa(sd(this.r),sd(this.g),sd(this.b),hp(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ky,formatHex:Ky,formatHex8:function uC(){return`#${Qc(this.r)}${Qc(this.g)}${Qc(this.b)}${Qc(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zy,toString:Zy})),U0(Fl,function Xy(d,_,T,x){return 1===arguments.length?Yy(d):new Fl(d,_,T,x??1)},Qf(Hi,{brighter(d){return d=null==d?rh:Math.pow(rh,d),new Fl(this.h,this.s,this.l*d,this.opacity)},darker(d){return d=null==d?.7:Math.pow(.7,d),new Fl(this.h,this.s,this.l*d,this.opacity)},rgb(){var d=this.h%360+360*(this.h<0),_=isNaN(d)||isNaN(this.s)?0:this.s,T=this.l,x=T+(T<.5?T:1-T)*_,A=2*T-x;return new Qa(tm(d>=240?d-240:d+120,A,x),tm(d,A,x),tm(d<120?d+240:d-120,A,x),this.opacity)},clamp(){return new Fl(ky(this.h),j0(this.s),j0(this.l),hp(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const d=hp(this.opacity);return`${1===d?"hsl(":"hsla("}${ky(this.h)}, ${100*j0(this.s)}%, ${100*j0(this.l)}%${1===d?")":`, ${d})`}`}}));const F0=d=>()=>d;function rm(d,_){var T=_-d;return T?function Jy(d,_){return function(T){return d+T*_}}(d,T):F0(isNaN(d)?_:d)}const ml=function d(_){var T=function fC(d){return 1==(d=+d)?rm:function(_,T){return T-_?function pC(d,_,T){return d=Math.pow(d,T),_=Math.pow(_,T)-d,T=1/T,function(x){return Math.pow(d+x*_,T)}}(_,T,d):F0(isNaN(_)?T:_)}}(_);function x(A,U){var ne=T((A=B0(A)).r,(U=B0(U)).r),fe=T(A.g,U.g),Oe=T(A.b,U.b),we=rm(A.opacity,U.opacity);return function(Ze){return A.r=ne(Ze),A.g=fe(Ze),A.b=Oe(Ze),A.opacity=we(Ze),A+""}}return x.gamma=d,x}(1);function sm(d){return function(_){var ne,fe,T=_.length,x=new Array(T),A=new Array(T),U=new Array(T);for(ne=0;ne=1?(T=1,_-1):Math.floor(T*_),A=d[x],U=d[x+1];return pp((T-x/_)*_,x>0?d[x-1]:2*A-U,A,U,x<_-1?d[x+2]:2*U-A)}}),sm(function hC(d){var _=d.length;return function(T){var x=Math.floor(((T%=1)<0?++T:T)*_);return pp((T-x/_)*_,d[(x+_-1)%_],d[x%_],d[(x+1)%_],d[(x+2)%_])}});var N0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,im=new RegExp(N0.source,"g");function nm(d,_){var x,A,U,T=N0.lastIndex=im.lastIndex=0,ne=-1,fe=[],Oe=[];for(d+="",_+="";(x=N0.exec(d))&&(A=im.exec(_));)(U=A.index)>T&&(U=_.slice(T,U),fe[ne]?fe[ne]+=U:fe[++ne]=U),(x=x[0])===(A=A[0])?fe[ne]?fe[ne]+=A:fe[++ne]=A:(fe[++ne]=null,Oe.push({i:ne,x:aa(x,A)})),T=im.lastIndex;return T<_.length&&(U=_.slice(T),fe[ne]?fe[ne]+=U:fe[++ne]=U),fe.length<2?Oe[0]?function ih(d){return function(_){return d(_)+""}}(Oe[0].x):function yC(d){return function(){return d}}(_):(_=Oe.length,function(we){for(var it,Ze=0;Ze<_;++Ze)fe[(it=Oe[Ze]).i]=it.x(we);return fe.join("")})}function W0(d,_){var T;return("number"==typeof _?aa:_ instanceof la?ml:(T=la(_))?(_=T,ml):nm)(d,_)}function V0(d){return function(){this.removeAttribute(d)}}function z0(d){return function(){this.removeAttributeNS(d.space,d.local)}}function Qy(d,_,T){var x,U,A=T+"";return function(){var ne=this.getAttribute(d);return ne===A?null:ne===x?U:U=_(x=ne,T)}}function vC(d,_,T){var x,U,A=T+"";return function(){var ne=this.getAttributeNS(d.space,d.local);return ne===A?null:ne===x?U:U=_(x=ne,T)}}function EC(d,_,T){var x,A,U;return function(){var ne,Oe,fe=T(this);return null==fe?void this.removeAttribute(d):(ne=this.getAttribute(d))===(Oe=fe+"")?null:ne===x&&Oe===A?U:(A=Oe,U=_(x=ne,fe))}}function om(d,_,T){var x,A,U;return function(){var ne,Oe,fe=T(this);return null==fe?void this.removeAttributeNS(d.space,d.local):(ne=this.getAttributeNS(d.space,d.local))===(Oe=fe+"")?null:ne===x&&Oe===A?U:(A=Oe,U=_(x=ne,fe))}}function CC(d,_){return function(T){this.setAttribute(d,_.call(this,T))}}function TC(d,_){return function(T){this.setAttributeNS(d.space,d.local,_.call(this,T))}}function MC(d,_){var T,x;function A(){var U=_.apply(this,arguments);return U!==x&&(T=(x=U)&&TC(d,U)),T}return A._value=_,A}function qy(d,_){var T,x;function A(){var U=_.apply(this,arguments);return U!==x&&(T=(x=U)&&CC(d,U)),T}return A._value=_,A}function OC(d,_){return function(){Jf(this,d).delay=+_.apply(this,arguments)}}function xC(d,_){return _=+_,function(){Jf(this,d).delay=_}}function SC(d,_){return function(){vo(this,d).duration=+_.apply(this,arguments)}}function AC(d,_){return _=+_,function(){vo(this,d).duration=_}}function wC(d,_){if("function"!=typeof _)throw new Error;return function(){vo(this,d).ease=_}}function FC(d,_,T){var x,A,U=function jC(d){return(d+"").trim().split(/^|\s+/).every(function(_){var T=_.indexOf(".");return T>=0&&(_=_.slice(0,T)),!_||"start"===_})}(_)?Jf:vo;return function(){var ne=U(this,d),fe=ne.on;fe!==x&&(A=(x=fe).copy()).on(_,T),ne.on=A}}var WC=Ei.prototype.constructor;function HC(d){return function(){this.style.removeProperty(d)}}function Lx(d,_,T){return function(x){this.style.setProperty(d,_.call(this,x),T)}}function ZC(d,_,T){var x,A;function U(){var ne=_.apply(this,arguments);return ne!==A&&(x=(A=ne)&&Lx(d,ne,T)),x}return U._value=_,U}function Ux(d){return function(_){this.textContent=d.call(this,_)}}function kC(d){var _,T;function x(){var A=d.apply(this,arguments);return A!==T&&(_=(T=A)&&Ux(A)),_}return x._value=d,x}var iv=0;function Nl(d,_,T,x){this._groups=d,this._parents=_,this._name=T,this._id=x}function ov(){return++iv}var Ic=Ei.prototype;Nl.prototype=function nv(d){return Ei().transition(d)}.prototype={constructor:Nl,select:function rv(d){var _=this._name,T=this._id;"function"!=typeof d&&(d=je(d));for(var x=this._groups,A=x.length,U=new Array(A),ne=0;ne2&&x.state<5,x.state=6,x.timer.stop(),x.on.call(A?"interrupt":"cancel",d,d.__data__,x.index,x.group),delete T[ne]):U=!1;U&&delete d.__transition}}(this,d)})},Ei.prototype.transition=function eT(d){var _,T;d instanceof Nl?(_=d._id,d=d._name):(_=ov(),(T=id).time=ur(),d=null==d?null:d+"");for(var x=this._groups,A=x.length,U=0;U_?1:d>=_?0:NaN}function jo(d,_){return null==d||null==_?NaN:_d?1:_>=d?0:NaN}function ld(d){let _,T,x;function A(fe,Oe,we=0,Ze=fe.length){if(we>>1;T(fe[it],Oe)<0?we=it+1:Ze=it}while(wead(d(fe),Oe),x=(fe,Oe)=>d(fe)-Oe):(_=d===ad||d===jo?d:pm,T=d,x=d),{left:A,center:function ne(fe,Oe,we=0,Ze=fe.length){const it=A(fe,Oe,we,Ze-1);return it>we&&x(fe[it-1],Oe)>-x(fe[it],Oe)?it-1:it},right:function U(fe,Oe,we=0,Ze=fe.length){if(we>>1;T(fe[it],Oe)<=0?we=it+1:Ze=it}while(we=_m?A*=10:U>=fm?A*=5:U>=mm&&(A*=2),_(d(U=new Date(+U)),U),A.ceil=U=>(d(U=new Date(U-1)),_(U,1),d(U),U),A.round=U=>{const ne=A(U),fe=A.ceil(U);return U-ne(_(U=new Date(+U),null==ne?1:Math.floor(ne)),U),A.range=(U,ne,fe)=>{const Oe=[];if(U=A.ceil(U),fe=null==fe?1:Math.floor(fe),!(U0))return Oe;let we;do{Oe.push(we=new Date(+U)),_(U,fe),d(U)}while(weOo(ne=>{if(ne>=ne)for(;d(ne),!U(ne);)ne.setTime(ne-1)},(ne,fe)=>{if(ne>=ne)if(fe<0)for(;++fe<=0;)for(;_(ne,-1),!U(ne););else for(;--fe>=0;)for(;_(ne,1),!U(ne););}),T&&(A.count=(U,ne)=>(Vl.setTime(+U),H0.setTime(+ne),d(Vl),d(H0),Math.floor(T(Vl,H0))),A.every=U=>(U=Math.floor(U),isFinite(U)&&U>0?U>1?A.filter(x?ne=>x(ne)%U==0:ne=>A.count(0,ne)%U==0):A:null)),A}const G0=Oo(()=>{},(d,_)=>{d.setTime(+d+_)},(d,_)=>_-d);G0.every=d=>(d=Math.floor(d),isFinite(d)&&d>0?d>1?Oo(_=>{_.setTime(Math.floor(_/d)*d)},(_,T)=>{_.setTime(+_+T*d)},(_,T)=>(T-_)/d):G0:null);const lh=Oo(d=>{d.setTime(d-d.getMilliseconds())},(d,_)=>{d.setTime(+d+_*Bc)},(d,_)=>(_-d)/Bc,d=>d.getUTCSeconds()),Em=Oo(d=>{d.setTime(d-d.getMilliseconds()-d.getSeconds()*Bc)},(d,_)=>{d.setTime(+d+_*gl)},(d,_)=>(_-d)/gl,d=>d.getMinutes()),K0=Oo(d=>{d.setUTCSeconds(0,0)},(d,_)=>{d.setTime(+d+_*gl)},(d,_)=>(_-d)/gl,d=>d.getUTCMinutes()),Z0=Oo(d=>{d.setTime(d-d.getMilliseconds()-d.getSeconds()*Bc-d.getMinutes()*gl)},(d,_)=>{d.setTime(+d+_*eu)},(d,_)=>(_-d)/eu,d=>d.getHours()),Mu=Oo(d=>{d.setUTCMinutes(0,0,0)},(d,_)=>{d.setTime(+d+_*eu)},(d,_)=>(_-d)/eu,d=>d.getUTCHours()),Hn=Oo(d=>d.setHours(0,0,0,0),(d,_)=>d.setDate(d.getDate()+_),(d,_)=>(_-d-(_.getTimezoneOffset()-d.getTimezoneOffset())*gl)/tu,d=>d.getDate()-1),tl=Oo(d=>{d.setUTCHours(0,0,0,0)},(d,_)=>{d.setUTCDate(d.getUTCDate()+_)},(d,_)=>(_-d)/tu,d=>d.getUTCDate()-1),Pu=Oo(d=>{d.setUTCHours(0,0,0,0)},(d,_)=>{d.setUTCDate(d.getUTCDate()+_)},(d,_)=>(_-d)/tu,d=>Math.floor(d/tu));function ud(d){return Oo(_=>{_.setDate(_.getDate()-(_.getDay()+7-d)%7),_.setHours(0,0,0,0)},(_,T)=>{_.setDate(_.getDate()+7*T)},(_,T)=>(T-_-(T.getTimezoneOffset()-_.getTimezoneOffset())*gl)/ym)}const $0=ud(0),vl=ud(1),Ou=(ud(2),ud(3),ud(4));function Eo(d){return Oo(_=>{_.setUTCDate(_.getUTCDate()-(_.getUTCDay()+7-d)%7),_.setUTCHours(0,0,0,0)},(_,T)=>{_.setUTCDate(_.getUTCDate()+7*T)},(_,T)=>(T-_)/ym)}ud(5),ud(6);const J0=Eo(0),hh=Eo(1),ph=(Eo(2),Eo(3),Eo(4)),Xo=(Eo(5),Eo(6),Oo(d=>{d.setDate(1),d.setHours(0,0,0,0)},(d,_)=>{d.setMonth(d.getMonth()+_)},(d,_)=>_.getMonth()-d.getMonth()+12*(_.getFullYear()-d.getFullYear()),d=>d.getMonth())),fv=Oo(d=>{d.setUTCDate(1),d.setUTCHours(0,0,0,0)},(d,_)=>{d.setUTCMonth(d.getUTCMonth()+_)},(d,_)=>_.getUTCMonth()-d.getUTCMonth()+12*(_.getUTCFullYear()-d.getUTCFullYear()),d=>d.getUTCMonth()),ru=Oo(d=>{d.setMonth(0,1),d.setHours(0,0,0,0)},(d,_)=>{d.setFullYear(d.getFullYear()+_)},(d,_)=>_.getFullYear()-d.getFullYear(),d=>d.getFullYear());ru.every=d=>isFinite(d=Math.floor(d))&&d>0?Oo(_=>{_.setFullYear(Math.floor(_.getFullYear()/d)*d),_.setMonth(0,1),_.setHours(0,0,0,0)},(_,T)=>{_.setFullYear(_.getFullYear()+T*d)}):null;const xu=Oo(d=>{d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},(d,_)=>{d.setUTCFullYear(d.getUTCFullYear()+_)},(d,_)=>_.getUTCFullYear()-d.getUTCFullYear(),d=>d.getUTCFullYear());function mv(d,_,T,x,A,U){const ne=[[lh,1,Bc],[lh,5,5e3],[lh,15,15e3],[lh,30,3e4],[U,1,gl],[U,5,5*gl],[U,15,15*gl],[U,30,30*gl],[A,1,eu],[A,3,3*eu],[A,6,6*eu],[A,12,12*eu],[x,1,tu],[x,2,2*tu],[T,1,ym],[_,1,vm],[_,3,3*vm],[d,1,el]];function Oe(we,Ze,it){const lt=Math.abs(Ze-we)/it,dt=ld(([,,Mt])=>Mt).right(ne,lt);if(dt===ne.length)return d.every(pv(we/el,Ze/el,it));if(0===dt)return G0.every(Math.max(pv(we,Ze,it),1));const[Tt,mt]=ne[lt/ne[dt-1][2]isFinite(d=Math.floor(d))&&d>0?Oo(_=>{_.setUTCFullYear(Math.floor(_.getUTCFullYear()/d)*d),_.setUTCMonth(0,1),_.setUTCHours(0,0,0,0)},(_,T)=>{_.setUTCFullYear(_.getUTCFullYear()+T*d)}):null;const[kx,_T]=mv(xu,fv,J0,Pu,Mu,K0),[fT,mT]=mv(ru,Xo,$0,Hn,Z0,Em);function Tm(d){if(0<=d.y&&d.y<100){var _=new Date(-1,d.m,d.d,d.H,d.M,d.S,d.L);return _.setFullYear(d.y),_}return new Date(d.y,d.m,d.d,d.H,d.M,d.S,d.L)}function Q0(d){if(0<=d.y&&d.y<100){var _=new Date(Date.UTC(-1,d.m,d.d,d.H,d.M,d.S,d.L));return _.setUTCFullYear(d.y),_}return new Date(Date.UTC(d.y,d.m,d.d,d.H,d.M,d.S,d.L))}function vp(d,_,T){return{y:d,m:_,d:T,H:0,M:0,S:0,L:0}}var s_,tD,cc={"-":"",_:" ",0:"0"},xo=/^\s*\d+/,Du=/^%/,gv=/[\\^$*+?|[\]().{}]/g;function Zi(d,_,T){var x=d<0?"-":"",A=(x?-d:d)+"",U=A.length;return x+(U[_.toLowerCase(),T]))}function yv(d,_,T){var x=xo.exec(_.slice(T,T+1));return x?(d.w=+x[0],T+x[0].length):-1}function Jx(d,_,T){var x=xo.exec(_.slice(T,T+1));return x?(d.u=+x[0],T+x[0].length):-1}function vv(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.U=+x[0],T+x[0].length):-1}function vT(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.V=+x[0],T+x[0].length):-1}function q0(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.W=+x[0],T+x[0].length):-1}function ft(d,_,T){var x=xo.exec(_.slice(T,T+4));return x?(d.y=+x[0],T+x[0].length):-1}function Te(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.y=+x[0]+(+x[0]>68?1900:2e3),T+x[0].length):-1}function Ue(d,_,T){var x=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_.slice(T,T+6));return x?(d.Z=x[1]?0:-(x[2]+(x[3]||"00")),T+x[0].length):-1}function $e(d,_,T){var x=xo.exec(_.slice(T,T+1));return x?(d.q=3*x[0]-3,T+x[0].length):-1}function st(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.m=x[0]-1,T+x[0].length):-1}function ht(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.d=+x[0],T+x[0].length):-1}function yt(d,_,T){var x=xo.exec(_.slice(T,T+3));return x?(d.m=0,d.d=+x[0],T+x[0].length):-1}function Rt(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.H=+x[0],T+x[0].length):-1}function Ut(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.M=+x[0],T+x[0].length):-1}function er(d,_,T){var x=xo.exec(_.slice(T,T+2));return x?(d.S=+x[0],T+x[0].length):-1}function vr(d,_,T){var x=xo.exec(_.slice(T,T+3));return x?(d.L=+x[0],T+x[0].length):-1}function Pr(d,_,T){var x=xo.exec(_.slice(T,T+6));return x?(d.L=Math.floor(x[0]/1e3),T+x[0].length):-1}function Ur(d,_,T){var x=Du.exec(_.slice(T,T+1));return x?T+x[0].length:-1}function qr(d,_,T){var x=xo.exec(_.slice(T));return x?(d.Q=+x[0],T+x[0].length):-1}function Zr(d,_,T){var x=xo.exec(_.slice(T));return x?(d.s=+x[0],T+x[0].length):-1}function Es(d,_){return Zi(d.getDate(),_,2)}function si(d,_){return Zi(d.getHours(),_,2)}function ei(d,_){return Zi(d.getHours()%12||12,_,2)}function Rs(d,_){return Zi(1+Hn.count(ru(d),d),_,3)}function fi(d,_){return Zi(d.getMilliseconds(),_,3)}function Pi(d,_){return fi(d,_)+"000"}function mn(d,_){return Zi(d.getMonth()+1,_,2)}function Di(d,_){return Zi(d.getMinutes(),_,2)}function qn(d,_){return Zi(d.getSeconds(),_,2)}function xa(d){var _=d.getDay();return 0===_?7:_}function Li(d,_){return Zi($0.count(ru(d)-1,d),_,2)}function Oi(d){var _=d.getDay();return _>=4||0===_?Ou(d):Ou.ceil(d)}function jn(d,_){return d=Oi(d),Zi(Ou.count(ru(d),d)+(4===ru(d).getDay()),_,2)}function Do(d){return d.getDay()}function su(d,_){return Zi(vl.count(ru(d)-1,d),_,2)}function Cp(d,_){return Zi(d.getFullYear()%100,_,2)}function Tp(d,_){return Zi((d=Oi(d)).getFullYear()%100,_,2)}function Mp(d,_){return Zi(d.getFullYear()%1e4,_,4)}function Mm(d,_){var T=d.getDay();return Zi((d=T>=4||0===T?Ou(d):Ou.ceil(d)).getFullYear()%1e4,_,4)}function e_(d){var _=d.getTimezoneOffset();return(_>0?"-":(_*=-1,"+"))+Zi(_/60|0,"0",2)+Zi(_%60,"0",2)}function Ev(d,_){return Zi(d.getUTCDate(),_,2)}function Pm(d,_){return Zi(d.getUTCHours(),_,2)}function Om(d,_){return Zi(d.getUTCHours()%12||12,_,2)}function t_(d,_){return Zi(1+tl.count(xu(d),d),_,3)}function r_(d,_){return Zi(d.getUTCMilliseconds(),_,3)}function Pp(d,_){return r_(d,_)+"000"}function xm(d,_){return Zi(d.getUTCMonth()+1,_,2)}function Op(d,_){return Zi(d.getUTCMinutes(),_,2)}function Dm(d,_){return Zi(d.getUTCSeconds(),_,2)}function Sm(d){var _=d.getUTCDay();return 0===_?7:_}function ET(d,_){return Zi(J0.count(xu(d)-1,d),_,2)}function Am(d){var _=d.getUTCDay();return _>=4||0===_?ph(d):ph.ceil(d)}function bT(d,_){return d=Am(d),Zi(ph.count(xu(d),d)+(4===xu(d).getUTCDay()),_,2)}function CT(d){return d.getUTCDay()}function a5(d,_){return Zi(hh.count(xu(d)-1,d),_,2)}function l5(d,_){return Zi(d.getUTCFullYear()%100,_,2)}function c5(d,_){return Zi((d=Am(d)).getUTCFullYear()%100,_,2)}function u5(d,_){return Zi(d.getUTCFullYear()%1e4,_,4)}function d5(d,_){var T=d.getUTCDay();return Zi((d=T>=4||0===T?ph(d):ph.ceil(d)).getUTCFullYear()%1e4,_,4)}function h5(){return"+0000"}function Qx(){return"%"}function qx(d){return+d}function eD(d){return Math.floor(+d/1e3)}!function m5(d){s_=function gT(d){var _=d.dateTime,T=d.date,x=d.time,A=d.periods,U=d.days,ne=d.shortDays,fe=d.months,Oe=d.shortMonths,we=Ep(A),Ze=bp(A),it=Ep(U),lt=bp(U),dt=Ep(ne),Tt=bp(ne),mt=Ep(fe),Mt=bp(fe),Pt=Ep(Oe),Nt=bp(Oe),Bt={a:function wr(ps){return ne[ps.getDay()]},A:function Gr(ps){return U[ps.getDay()]},b:function zr(ps){return Oe[ps.getMonth()]},B:function rs(ps){return fe[ps.getMonth()]},c:null,d:Es,e:Es,f:Pi,g:Tp,G:Mm,H:si,I:ei,j:Rs,L:fi,m:mn,M:Di,p:function ls(ps){return A[+(ps.getHours()>=12)]},q:function ms(ps){return 1+~~(ps.getMonth()/3)},Q:qx,s:eD,S:qn,u:xa,U:Li,V:jn,w:Do,W:su,x:null,X:null,y:Cp,Y:Mp,Z:e_,"%":Qx},Zt={a:function ss(ps){return ne[ps.getUTCDay()]},A:function Ms(ps){return U[ps.getUTCDay()]},b:function Hs(ps){return Oe[ps.getUTCMonth()]},B:function Js(ps){return fe[ps.getUTCMonth()]},c:null,d:Ev,e:Ev,f:Pp,g:c5,G:d5,H:Pm,I:Om,j:t_,L:r_,m:xm,M:Op,p:function Gs(ps){return A[+(ps.getUTCHours()>=12)]},q:function bs(ps){return 1+~~(ps.getUTCMonth()/3)},Q:qx,s:eD,S:Dm,u:Sm,U:ET,V:bT,w:CT,W:a5,x:null,X:null,y:l5,Y:u5,Z:h5,"%":Qx},nr={a:function Yr(ps,_s,Is){var is=dt.exec(_s.slice(Is));return is?(ps.w=Tt.get(is[0].toLowerCase()),Is+is[0].length):-1},A:function cs(ps,_s,Is){var is=it.exec(_s.slice(Is));return is?(ps.w=lt.get(is[0].toLowerCase()),Is+is[0].length):-1},b:function Xr(ps,_s,Is){var is=Pt.exec(_s.slice(Is));return is?(ps.m=Nt.get(is[0].toLowerCase()),Is+is[0].length):-1},B:function os(ps,_s,Is){var is=mt.exec(_s.slice(Is));return is?(ps.m=Mt.get(is[0].toLowerCase()),Is+is[0].length):-1},c:function br(ps,_s,Is){return Br(ps,_,_s,Is)},d:ht,e:ht,f:Pr,g:Te,G:ft,H:Rt,I:Rt,j:yt,L:vr,m:st,M:Ut,p:function $r(ps,_s,Is){var is=we.exec(_s.slice(Is));return is?(ps.p=Ze.get(is[0].toLowerCase()),Is+is[0].length):-1},q:$e,Q:qr,s:Zr,S:er,u:Jx,U:vv,V:vT,w:yv,W:q0,x:function Vr(ps,_s,Is){return Br(ps,T,_s,Is)},X:function lr(ps,_s,Is){return Br(ps,x,_s,Is)},y:Te,Y:ft,Z:Ue,"%":Ur};function Jt(ps,_s){return function(Is){var ks,ds,qs,is=[],ii=-1,Ys=0,Zs=ps.length;for(Is instanceof Date||(Is=new Date(+Is));++ii53)return null;"w"in is||(is.w=1),"Z"in is?(Zs=(Ys=Q0(vp(is.y,0,1))).getUTCDay(),Ys=Zs>4||0===Zs?hh.ceil(Ys):hh(Ys),Ys=tl.offset(Ys,7*(is.V-1)),is.y=Ys.getUTCFullYear(),is.m=Ys.getUTCMonth(),is.d=Ys.getUTCDate()+(is.w+6)%7):(Zs=(Ys=Tm(vp(is.y,0,1))).getDay(),Ys=Zs>4||0===Zs?vl.ceil(Ys):vl(Ys),Ys=Hn.offset(Ys,7*(is.V-1)),is.y=Ys.getFullYear(),is.m=Ys.getMonth(),is.d=Ys.getDate()+(is.w+6)%7)}else("W"in is||"U"in is)&&("w"in is||(is.w="u"in is?is.u%7:"W"in is?1:0),Zs="Z"in is?Q0(vp(is.y,0,1)).getUTCDay():Tm(vp(is.y,0,1)).getDay(),is.m=0,is.d="W"in is?(is.w+6)%7+7*is.W-(Zs+5)%7:is.w+7*is.U-(Zs+6)%7);return"Z"in is?(is.H+=is.Z/100|0,is.M+=is.Z%100,Q0(is)):Tm(is)}}function Br(ps,_s,Is,is){for(var ks,ds,ii=0,Ys=_s.length,Zs=Is.length;ii=Zs)return-1;if(37===(ks=_s.charCodeAt(ii++))){if(ks=_s.charAt(ii++),!(ds=nr[ks in cc?_s.charAt(ii++):ks])||(is=ds(ps,Is,is))<0)return-1}else if(ks!=Is.charCodeAt(is++))return-1}return is}return Bt.x=Jt(T,Bt),Bt.X=Jt(x,Bt),Bt.c=Jt(_,Bt),Zt.x=Jt(T,Zt),Zt.X=Jt(x,Zt),Zt.c=Jt(_,Zt),{format:function(ps){var _s=Jt(ps+="",Bt);return _s.toString=function(){return ps},_s},parse:function(ps){var _s=Rr(ps+="",!1);return _s.toString=function(){return ps},_s},utcFormat:function(ps){var _s=Jt(ps+="",Zt);return _s.toString=function(){return ps},_s},utcParse:function(ps){var _s=Rr(ps+="",!0);return _s.toString=function(){return ps},_s}}}(d),tD=s_.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const y5=ld(ad).right,v5=(ld(function g5(d){return null===d?NaN:+d}),y5);function sD(d,_){var ne,T=_?_.length:0,x=d?Math.min(T,d.length):0,A=new Array(x),U=new Array(T);for(ne=0;ne_&&(T=d,d=_,_=T),function(x){return Math.max(d,Math.min(_,x))}}(d[0],d[lt-1])),fe=lt>2?S5:D5,Oe=we=null,it}function it(lt){return null==lt||isNaN(lt=+lt)?U:(Oe||(Oe=fe(d.map(x),_,T)))(x(ne(lt)))}return it.invert=function(lt){return ne(A((we||(we=fe(_,d.map(x),aa)))(lt)))},it.domain=function(lt){return arguments.length?(d=Array.from(lt,O5),Ze()):d.slice()},it.range=function(lt){return arguments.length?(_=Array.from(lt),Ze()):_.slice()},it.rangeRound=function(lt){return _=Array.from(lt),T=M5,Ze()},it.clamp=function(lt){return arguments.length?(ne=!!lt||i_,Ze()):ne!==i_},it.interpolate=function(lt){return arguments.length?(T=lt,Ze()):T},it.unknown=function(lt){return arguments.length?(U=lt,it):U},function(lt,dt){return x=lt,A=dt,Ze()}}()(i_,i_)}(),it=Ze.invert,lt=Ze.domain,dt=we(".%L"),Tt=we(":%S"),mt=we("%I:%M"),Mt=we("%I %p"),Pt=we("%a %d"),Nt=we("%b %d"),Bt=we("%B"),Zt=we("%Y");function nr(Jt){return(Oe(Jt)x.date>this.startTime&&x.datethis.shellStateService.dispatch({type:"launchView",viewId:"AppointmentDetailComponent",state:{appointmentId:Ze.appointmentId}})).attr("fill",we=>this.scheduleProps.barStyle.background).attr("x",this.scheduleProps.margin.left).attr("y",we=>U(new Date(we.date))+this.scheduleProps.barStyle.startPadding).attr("height",we=>{const Ze=U(new Date(we.date));return U(new Date(we.date+we.duration))-Ze-this.scheduleProps.barStyle.endPadding-this.scheduleProps.barStyle.startPadding}).attr("width",this.scheduleProps.barStyle.width).attr("rx",this.scheduleProps.barStyle.radius)}}}}static#e=this.\u0275fac=function(T){return new(T||bv)($.Y36(te.vv))};static#t=this.\u0275cmp=$.Xpm({type:bv,selectors:[["porrtal-appointment-nav"]],viewQuery:function(T,x){if(1&T&&$.Gf(K5,5),2&T){let A;$.iGM(A=$.CRH())&&(x.divRef=A.first)}},inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:5,vars:0,consts:[[1,"container"],[1,"title"],[1,"data-container"],["containerRef",""]],template:function(T,x){1&T&&($.TgZ(0,"div",0)(1,"h3",1),$._uU(2,"Daily Schedule"),$.qZA(),$._UZ(3,"div",2,3),$.qZA())},dependencies:[D.ez],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class Cv{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Cv)};static#t=this.\u0275cmp=$.Xpm({type:Cv,selectors:[["porrtal-appointment-search"]],inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"appointment-search works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}function Z5(d,_){if(1&d&&($.TgZ(0,"div",2)(1,"h3",3),$._uU(2),$.qZA(),$.TgZ(3,"div",4)(4,"h4"),$._uU(5),$.qZA(),$.TgZ(6,"p"),$._uU(7),$.qZA()()()),2&d){const T=$.oxw();let x;$.xp6(2),$.AsE(" ",null==T.appointment?null:T.appointment.item," (",null==T.appointment?null:T.appointment.appointmentId,") - Appointment Detail "),$.xp6(3),$.lnq(" ",T.Moment(null==T.appointment?null:T.appointment.date).format("YYYY-MM-DD, h:mm a")," -"," "," ",(null!==(x=null==T.appointment?null:T.appointment.duration)&&void 0!==x?x:0)/6e4," minutes. "),$.xp6(2),$.Oqu(null==T.appointment?null:T.appointment.description)}}function $5(d,_){1&d&&($.ynx(0),$.TgZ(1,"div"),$._uU(2,"loading appointment data..."),$.qZA(),$.BQk())}function Y5(d,_){if(1&d&&($.ynx(0),$.TgZ(1,"div")(2,"span"),$._uU(3,"appointmentId:\xa0"),$.qZA(),$.TgZ(4,"span"),$._uU(5),$.qZA(),$.TgZ(6,"span"),$._uU(7,"\xa0not found."),$.qZA()(),$.BQk()),2&d){const T=$.oxw();$.xp6(5),$.Oqu(T.appointmentId)}}class Tv{constructor(){this.loading=!0,this.notFound=!1,this.Moment=ae}set viewState(_){console.log("appointment detail - view state",_),this._viewState=_,this._viewState?.state&&this._viewState?.state.appointmentId&&(this.loading=!1,this.appointmentId=this._viewState?.state.appointmentId,this.appointment=pe.find(T=>T.appointmentId===this.appointmentId),this.appointment||(this.notFound=!0)),console.log(`loading: ${this.loading}, notFound: ${this.notFound}`)}get viewState(){return this._viewState}static#e=this.\u0275fac=function(T){return new(T||Tv)};static#t=this.\u0275cmp=$.Xpm({type:Tv,selectors:[["porrtal-appointment-detail"]],inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:3,vars:3,consts:[["class","container",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"title"],[1,"data-container"]],template:function(T,x){1&T&&($.YNc(0,Z5,8,6,"div",0),$.YNc(1,$5,3,0,"ng-container",1),$.YNc(2,Y5,8,1,"ng-container",1)),2&T&&($.Q6J("ngIf",!x.loading&&!x.notFound),$.xp6(1),$.Q6J("ngIf",x.loading),$.xp6(1),$.Q6J("ngIf",x.notFound))},dependencies:[D.ez,D.O5],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{justify-self:start;margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}class Mv{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Mv)};static#t=this.\u0275cmp=$.Xpm({type:Mv,selectors:[["porrtal-appointment-location-map"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"appointment-location-map works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Pv{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Pv)};static#t=this.\u0275cmp=$.Xpm({type:Pv,selectors:[["porrtal-appointment-create"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"appointment-create works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Ov{constructor(_){this.shellStateService=_}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Ov)($.Y36(te.vv))};static#t=this.\u0275cmp=$.Xpm({type:Ov,selectors:[["porrtal-viz-nav"]],inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:42,vars:0,consts:[[1,"container"],[1,"title"],[1,"data-container"],[1,"link-button",3,"click"]],template:function(T,x){1&T&&($.TgZ(0,"div",0)(1,"h3",1),$._uU(2,"ESRI Mapping Demos"),$.qZA(),$.TgZ(3,"div",2)(4,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"HurricaneMapComponent"})}),$._uU(5," Hurricanes on the Globe "),$.qZA(),$.TgZ(6,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"EarthquakeMapComponent"})}),$._uU(7," Earthquake Map "),$.qZA(),$.TgZ(8,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"DigitalElevationMapComponent"})}),$._uU(9," Globe with Digital Elevation "),$.qZA(),$.TgZ(10,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"BuildingSceneWithQueryComponent"})}),$._uU(11," Building Scene "),$.qZA()(),$.TgZ(12,"h3",1),$._uU(13,"D3JS Charting Demos"),$.qZA(),$.TgZ(14,"div",2)(15,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"ZoomableSunburstComponent"})}),$._uU(16," Zoomable Sunburst Chart "),$.qZA(),$.TgZ(17,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"ZoomableCirclePackComponent"})}),$._uU(18," Zoomable Circle Pack Chart "),$.qZA(),$.TgZ(19,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"ZoomableIcicleComponent"})}),$._uU(20," Zoomable Icicle Chart "),$.qZA(),$.TgZ(21,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"ZoomableTreemapComponent"})}),$._uU(22," Zoomable Treemap Chart "),$.qZA(),$.TgZ(23,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"CollapsibleTreeComponent"})}),$._uU(24," Collapsable Tree Chart "),$.qZA(),$.TgZ(25,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"HierarchicalBarChartComponent"})}),$._uU(26," Hierarchical Bar Chart "),$.qZA()(),$.TgZ(27,"h3",1),$._uU(28,"Learning"),$.qZA(),$.TgZ(29,"div",2)(30,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"YoutubePlayerComponent",state:{videoId:"Z76QlSpYcck"}})}),$._uU(31," YouTube Player "),$.qZA(),$.TgZ(32,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{contentUrl:"https://raw.githubusercontent.com/datumgeek/jersey-rest-test03/master/README.md"}})}),$._uU(33," Markdown Viewer "),$.qZA(),$.TgZ(34,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"html",contentUrl:"docs/relative-image-test.md"}})}),$._uU(35," Markdown with Relative Images "),$.qZA(),$.TgZ(36,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"html",contentUrl:"https://raw.githubusercontent.com/datumgeek/ngx-popperjs/master/projects/ngx-popperjs/src/lib/ngx-popperjs-content/ngx-popperjs-content.component.html"}})}),$._uU(37," Markdown HTML "),$.qZA(),$.TgZ(38,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"scss",contentUrl:"https://raw.githubusercontent.com/datumgeek/ngx-popperjs/master/projects/ngx-popperjs/src/lib/ngx-popperjs-content/ngx-popperjs-content.component.scss"}})}),$._uU(39," Markdown SCSS "),$.qZA(),$.TgZ(40,"h4",3),$.NdJ("click",function(){return x.shellStateService.dispatch({type:"launchView",viewId:"MarkdownViewerComponent",state:{id:"ts",contentUrl:"https://raw.githubusercontent.com/datumgeek/ngx-popperjs/master/projects/ngx-popperjs/src/lib/ngx-popperjs-content/ngx-popper-content.component.ts"}})}),$._uU(41," Markdown TypeScript "),$.qZA()()())},dependencies:[D.ez],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}.title[_ngcontent-%COMP%]{background-color:#b9c7da;margin:0;padding-top:2px;padding-bottom:2px;padding-left:8px;grid-column:1/-1}.data-container[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px;margin-top:15px}.link-button[_ngcontent-%COMP%]{color:#00f;text-decoration:underline;cursor:pointer}"],changeDetection:0})}var xT,lD=v(80415),Ve=v(17626),PT=v(73386),kr=v(15861),lo=v(91558),On=v(46160),X5=v(89726),Rm=v(94573),ai=v(26584),zl=v(86810),hd=v(58817),OT=v(47996),k5=v(47877),Us=v(63290),ws=v(10699),ke=v(77712),Hl=v(90912),Wr=v(76898),wm=v(99433),pd=v(85931),So=v(8314),xp=v(55342);let xv=xT=class extends zl.wq{constructor(d){super(d),this.type="none"}clone(){return new xT({type:this.type})}};(0,Ve._)([(0,xp.J)({none:"none",stayAbove:"stay-above"})],xv.prototype,"type",void 0),xv=xT=(0,Ve._)([(0,Wr.j)("esri.ground.NavigationConstraint")],xv);var DT,Fo=v(93605),cD=v(92236);let Su=DT=class extends((0,zl.eC)(OT.Z)){constructor(d){super(d),this.opacity=1,this.shading=!Fo.Z.TERRAIN_USE_LEGACY_SHADING,this.surfaceColor=null,this.navigationConstraint=null,this.layers=new On.Z;const _=x=>{x.parent&&x.parent!==this&&"remove"in x.parent&&x.parent.remove(x),x.parent=this,"elevation"!==x.type&&"base-elevation"!==x.type&&Us.Z.getLogger(this.declaredClass).error(`Layer '${x.title}, id:${x.id}' of type '${x.type}' is not supported as a ground layer and will therefore be ignored. Only layers of type 'elevation' are supported.`)};this.layers.on("after-add",x=>_(x.item)),this.layers.on("after-remove",x=>(x=>{x.parent=null})(x.item))}initialize(){this.when().catch(d=>{Us.Z.getLogger(this.declaredClass).error("#load()","Failed to load ground",d)}),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const d=this.layers.removeAll();for(const _ of d)_.destroy();this.layers.destroy()}normalizeCtorArgs(d){return d&&"resourceInfo"in d&&(this._set("resourceInfo",d.resourceInfo),delete(d={...d}).resourceInfo),d}set layers(d){this._set("layers",(0,X5.Z)(d,this._get("layers")))}writeLayers(d,_,T,x){const A=[];d&&(x={...x,layerContainerType:"ground"},d.forEach(U=>{if("write"in U){const ne={};(0,Rm.sM)(U)().write(ne,x)&&A.push(ne)}else x&&x.messages&&x.messages.push(new ai.Z("layer:unsupported",`Layers (${U.title}, ${U.id}) of type '${U.declaredClass}' cannot be persisted in the ground`,{layer:U}))})),_.layers=A}load(d){return this.addResolvingPromise(this._loadFromSource(d)),Promise.resolve(this)}loadAll(){return(0,k5.G)(this,d=>{d(this.layers)})}queryElevation(d,_){var T=this;return(0,kr.Z)(function*(){yield T.load({signal:_?.signal});const{ElevationQuery:x}=yield v.e(2493).then(v.bind(v,42493));(0,ws.k_)(_);const A=new x,U=T.layers.filter(uD).toArray();return A.queryAll(U,d,_)})()}createElevationSampler(d,_){var T=this;return(0,kr.Z)(function*(){yield T.load({signal:_?.signal});const{ElevationQuery:x}=yield v.e(2493).then(v.bind(v,42493));(0,ws.k_)(_);const A=new x,U=T.layers.filter(uD).toArray();return A.createSamplerAll(U,d,_)})()}clone(){const d={opacity:this.opacity,surfaceColor:(0,hd.d9)(this.surfaceColor),navigationConstraint:(0,hd.d9)(this.navigationConstraint),layers:this.layers.slice()};return this.loaded&&(d.loadStatus="loaded"),new DT({resourceInfo:this.resourceInfo}).set(d)}read(d,_){this.resourceInfo||this._set("resourceInfo",{data:d,context:_}),super.read(d,_)}_loadFromSource(d){const _=this.resourceInfo;return _?this._loadLayersFromJSON(_.data,_.context,d):Promise.resolve()}_loadLayersFromJSON(d,_,T){const x=_&&_.origin||"web-scene",A=_&&_.portal||null,U=_&&_.url||null;return Promise.all([v.e(7534),v.e(1074)]).then(v.bind(v,71074)).then(({populateOperationalLayers:ne})=>{(0,ws.k_)(T);const fe=[];return d.layers&&Array.isArray(d.layers)&&fe.push(ne(this.layers,d.layers,{context:{origin:x,url:U,portal:A,layerContainerType:"ground"},defaultLayerType:"ArcGISTiledElevationServiceLayer"})),(0,ws.as)(fe)}).then(()=>{})}};function uD(d){return"elevation"===d.type||function J5(d){return d&&"createElevationSampler"in d}(d)}(0,Ve._)([(0,ke.Cb)({json:{read:!1}})],Su.prototype,"layers",null),(0,Ve._)([(0,wm.c)("layers")],Su.prototype,"writeLayers",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Su.prototype,"resourceInfo",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{type:Hl.z8,read:{reader:cD.b,source:"transparency"},write:{writer:(d,_)=>{_.transparency=(0,cD.a)(d)},target:"transparency"}}})],Su.prototype,"opacity",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,nonNullable:!0,json:{read:!1}})],Su.prototype,"shading",void 0),(0,Ve._)([(0,ke.Cb)({type:lo.Z,json:{type:[Hl.z8],write:(d,_)=>{_.surfaceColor=d.toJSON().slice(0,3)}}})],Su.prototype,"surfaceColor",void 0),(0,Ve._)([(0,ke.Cb)({type:xv,json:{write:!0}})],Su.prototype,"navigationConstraint",void 0),Su=DT=(0,Ve._)([(0,Wr.j)("esri.Ground")],Su);const Dv=Su;var Ns=v(14517),Sv=v(46882),Va=v(61885),Qe=v(62208),ko=v(66656);function Q5(d){return!(!(d&&d.loaded&&"capabilities"in d&&d?.capabilities?.operations&&"supportsEditing"in d.capabilities.operations&&!0===d.capabilities.operations.supportsEditing)||"editingEnabled"in d&&!d.editingEnabled)}var dD=v(59318),ST=v(21726),hD=v(33954);const pD=Us.Z.getLogger("esri.support.basemapUtils");var i4=v(38953);const MD={"world-elevation":{id:"worldElevation",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer",layerType:"ArcGISTiledElevationServiceLayer"},"world-topobathymetry":{id:"worldTopoBathymetry",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/TopoBathy3D/ImageServer",layerType:"ArcGISTiledElevationServiceLayer"}};var o4=v(6432),a4=v(6119);let Au=class extends((0,a4.Q)((0,o4.K)(Va.Z.EventedMixin(Ns.Z)))){constructor(d){super(d),this.allLayers=new Sv.Z({getCollections:()=>[this.basemap?.baseLayers,this.ground?.layers,this.layers,this.basemap?.referenceLayers],getChildrenFunction:_=>"layers"in _?_.layers:null}),this.allTables=(0,i4.a)(this),this.basemap=null,this.editableLayers=new Sv.Z({getCollections:()=>[this.allLayers],itemFilterFunction:Q5}),this.ground=new Dv,this._basemapCache={}}destroy(){this.allLayers.destroy(),this.allTables.destroy(),this.editableLayers.destroy(),this.ground?.destroy(),this.basemap?.destroy(),function e4(d){for(const _ in d){const T=d[_];!1===T?.destroyed&&T.destroy(),delete d[_]}}(this._basemapCache),this._basemapCache=null}castBasemap(d){return function _D(d,_){let T;if("string"==typeof d){if(!(d in hD.s)){const x=Object.entries(hD.s).filter(([A,U])=>dD.Z.apiKey&&!U.classic||!dD.Z.apiKey&&U.classic&&!U.deprecated).map(([A])=>`"${A}"`).join(", ");return pD.warn(`Unable to find basemap definition for: ${d}. Try one of these: ${x}`),null}_&&(T=_[d]),T||(T=PT.default.fromId(d),_&&(_[d]=T))}else T=(0,Hl.se)(PT.default,d);return T?.destroyed&&(pD.warn("The provided basemap is already destroyed",{basemap:T}),T=null),T}(d,this._basemapCache)}castGround(d){const _=function n4(d){let _=null;return"string"==typeof d?d in MD?_=new Dv({resourceInfo:{data:{layers:[MD[d]]}}}):Us.Z.getLogger("esri.support.groundUtils").warn(`Unable to find ground definition for: ${d}. Try "world-elevation"`):_=(0,Hl.se)(Dv,d),_}(d);return(0,Qe.Wi)(_)?this._get("ground"):_}findLayerById(d){return this.allLayers.find(_=>_.id===d)}findTableById(d){return this.allTables.find(_=>_.id===d)}};(0,Ve._)([(0,ke.Cb)({readOnly:!0,dependsOn:[]})],Au.prototype,"allLayers",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Au.prototype,"allTables",void 0),(0,Ve._)([(0,ke.Cb)({type:PT.default})],Au.prototype,"basemap",void 0),(0,Ve._)([(0,ko.p)("basemap")],Au.prototype,"castBasemap",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Au.prototype,"editableLayers",void 0),(0,Ve._)([(0,ke.Cb)({type:Dv,nonNullable:!0})],Au.prototype,"ground",void 0),(0,Ve._)([(0,ko.p)("ground")],Au.prototype,"castGround",null),Au=(0,Ve._)([(0,Wr.j)("esri.Map")],Au);const PD=Au;var OD=v(79608),za=v(23719),xr=v(21286),wT=v(68653),vn=v(72642);let _d=class extends((0,OD.J)(zl.wq)){constructor(...d){super(...d),this.position=new vn.Z([0,0,0]),this.heading=0,this.tilt=0,this.fov=55}normalizeCtorArgs(d,_,T,x){if(d&&"object"==typeof d&&("x"in d||Array.isArray(d))){const A={position:d};return null!=_&&(A.heading=_),null!=T&&(A.tilt=T),null!=x&&(A.fov=x),A}return d}writePosition(d,_,T,x){const A=d.clone();A.x=(0,Hl.q9)(d.x||0),A.y=(0,Hl.q9)(d.y||0),A.z=d.hasZ?(0,Hl.q9)(d.z||0):d.z,_[T]=A.write({},x)}readPosition(d,_){const T=new vn.Z;return T.read(d,_),T.x=(0,Hl.q9)(T.x||0),T.y=(0,Hl.q9)(T.y||0),T.z=T.hasZ?(0,Hl.q9)(T.z||0):T.z,T}equals(d){return!(0,Qe.Wi)(d)&&this.tilt===d.tilt&&this.heading===d.heading&&this.fov===d.fov&&this.position.equals(d.position)}};(0,Ve._)([(0,ke.Cb)({type:vn.Z,json:{write:{isRequired:!0}}})],_d.prototype,"position",void 0),(0,Ve._)([(0,wm.c)("position")],_d.prototype,"writePosition",null),(0,Ve._)([(0,wT.r)("position")],_d.prototype,"readPosition",null),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,ko.p)(d=>za.BV.normalize((0,Hl.q9)(d)))],_d.prototype,"heading",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,ko.p)(d=>(0,xr.uZ)((0,Hl.q9)(d),-180,180))],_d.prototype,"tilt",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],_d.prototype,"fov",void 0),_d=(0,Ve._)([(0,Wr.j)("esri.Camera")],_d);const uc=_d;var IT,l4=v(29132),fd=v(88879),xD=v(91179);let _h=IT=class extends zl.wq{constructor(d){super(d),this.rotation=0,this.scale=0,this.targetGeometry=null,this.camera=null}castRotation(d){return(d%=360)<0&&(d+=360),d}clone(){return new IT({rotation:this.rotation,scale:this.scale,targetGeometry:(0,Qe.pC)(this.targetGeometry)?this.targetGeometry.clone():null,camera:(0,Qe.pC)(this.camera)?this.camera.clone():null})}};function LT(){return{enabled:!this.camera}}(0,Ve._)([(0,ke.Cb)({type:Number,json:{write:!0,origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:LT}}}}})],_h.prototype,"rotation",void 0),(0,Ve._)([(0,ko.p)("rotation")],_h.prototype,"castRotation",null),(0,Ve._)([(0,ke.Cb)({type:Number,json:{write:!0,origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:LT}}}}})],_h.prototype,"scale",void 0),(0,Ve._)([(0,ke.Cb)({types:l4.qM,json:{read:xD.im,write:!0,origins:{"web-scene":{read:xD.im,write:{overridePolicy:LT}}}}})],_h.prototype,"targetGeometry",void 0),(0,Ve._)([(0,ke.Cb)({type:uc,json:{write:!0}})],_h.prototype,"camera",void 0),_h=IT=(0,Ve._)([(0,Wr.j)("esri.Viewpoint")],_h);const iu=_h;var md=v(40764),Dp=v(17770),Sp=v(54024),DD=v(56354),SD=v(73234),Ht=v(32917),gd=v(50618),li=v(23841),c4=v(59289),ir=v(28093),Av=v(28705),AD=v(79334),di=v(55915),Bs=v(65401),nu=v(41743),o_=v(93088),RD=v(83137),wD=v(5437),Gl=v(72469);let a_=class extends Av.a{constructor(d){super(d),this.handles.add(this.on("before-add",_=>{(0,Qe.Wi)(_.item)||_.item.parent===this.owner&&(Us.Z.getLogger(this.declaredClass).warn("Analysis inside the collection must be unique. Not adding this element again."),_.preventDefault())}))}_own(d){d.parent=this.owner}_release(d){d.parent=null}};a_=(0,Ve._)([(0,Wr.j)("esri.support.AnalysesCollection")],a_);var Rv=v(35575),Ji=v(72392);const wv={widthBreakpoint:{getValue(d){const _=d.viewSize[0],T=d.breakpoints,x=this.values;return _<=T.xsmall?x.xsmall:_<=T.small?x.small:_<=T.medium?x.medium:_<=T.large?x.large:x.xlarge},values:{xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge"},valueToClassName:{xsmall:"esri-view-width-xsmall esri-view-width-less-than-small esri-view-width-less-than-medium esri-view-width-less-than-large esri-view-width-less-than-xlarge",small:"esri-view-width-small esri-view-width-greater-than-xsmall esri-view-width-less-than-medium esri-view-width-less-than-large esri-view-width-less-than-xlarge",medium:"esri-view-width-medium esri-view-width-greater-than-xsmall esri-view-width-greater-than-small esri-view-width-less-than-large esri-view-width-less-than-xlarge",large:"esri-view-width-large esri-view-width-greater-than-xsmall esri-view-width-greater-than-small esri-view-width-greater-than-medium esri-view-width-less-than-xlarge",xlarge:"esri-view-width-xlarge esri-view-width-greater-than-xsmall esri-view-width-greater-than-small esri-view-width-greater-than-medium esri-view-width-greater-than-large"}},heightBreakpoint:{getValue(d){const _=d.viewSize[1],T=d.breakpoints,x=this.values;return _<=T.xsmall?x.xsmall:_<=T.small?x.small:_<=T.medium?x.medium:_<=T.large?x.large:x.xlarge},values:{xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge"},valueToClassName:{xsmall:"esri-view-height-xsmall esri-view-height-less-than-small esri-view-height-less-than-medium esri-view-height-less-than-large esri-view-height-less-than-xlarge",small:"esri-view-height-small esri-view-height-greater-than-xsmall esri-view-height-less-than-medium esri-view-height-less-than-large esri-view-height-less-than-xlarge",medium:"esri-view-height-medium esri-view-height-greater-than-xsmall esri-view-height-greater-than-small esri-view-height-less-than-large esri-view-height-less-than-xlarge",large:"esri-view-height-large esri-view-height-greater-than-xsmall esri-view-height-greater-than-small esri-view-height-greater-than-medium esri-view-height-less-than-xlarge",xlarge:"esri-view-height-xlarge esri-view-height-greater-than-xsmall esri-view-height-greater-than-small esri-view-height-greater-than-medium esri-view-height-greater-than-large"}},orientation:{getValue(d){const _=d.viewSize,A=this.values;return _[1]>=_[0]?A.portrait:A.landscape},values:{portrait:"portrait",landscape:"landscape"},valueToClassName:{portrait:"esri-view-orientation-portrait",landscape:"esri-view-orientation-landscape"}}},UT={xsmall:544,small:768,medium:992,large:1200};function BT(d,_){return _?wv[d].valueToClassName[_].split(" "):[]}const d4=d=>{let _=class extends d{constructor(...T){super(...T),this._breakpointsHandles=new Ji.Z,this.orientation=null,this.widthBreakpoint=null,this.heightBreakpoint=null,this.breakpoints=UT}initialize(){this._breakpointsHandles.add((0,Ht.YP)(()=>[this.breakpoints,this.size],()=>this._updateClassNames(),Ht.nn))}destroy(){this.destroyed||(this._removeActiveClassNames(),this._breakpointsHandles=(0,Qe.SC)(this._breakpointsHandles))}set breakpoints(T){if(T===this._get("breakpoints"))return;const x=function u4(d){return d&&d.xsmallx.push(Oe)),BT(A,fe).forEach(Oe=>T.push(Oe)))}U&&(this._applyClassNameChanges(T,x),Rv.Z.release(T),Rv.Z.release(x))}_applyClassNameChanges(T,x){const A=this.container;A&&(x.forEach(U=>A.classList.remove(U)),T.forEach(U=>A.classList.add(U)))}_removeActiveClassNames(){const T=this.container;if(!T)return;let x;for(x in wv)BT(x,this[x]).forEach(A=>T.classList.remove(A))}};return(0,Ve._)([(0,ke.Cb)()],_.prototype,"breakpoints",null),(0,Ve._)([(0,ke.Cb)()],_.prototype,"orientation",void 0),(0,Ve._)([(0,ke.Cb)()],_.prototype,"widthBreakpoint",void 0),(0,Ve._)([(0,ke.Cb)()],_.prototype,"heightBreakpoint",void 0),_=(0,Ve._)([(0,Wr.j)("esri.views.BreakpointsOwner")],_),_};var l_=v(17760),jT=(v(50645),v(62996));let fh=class extends Ns.Z{constructor(){super(...arguments),this.items=new On.Z,this._watchUpdatingTracking=new l_.t,this._callbacks=new Map,this._projector=(0,jT.E)(),this._hiddenProjector=(0,jT.E)()}get needsRender(){return this.items.length>0}get updating(){return this._watchUpdatingTracking?.updating??!1}initialize(){const d=document.createElement("div");d.className="esri-overlay-surface",this._set("surface",d),this._hiddenSurface=document.createElement("div"),this._hiddenSurface.setAttribute("style","visibility: hidden;"),d.appendChild(this._hiddenSurface),this._watchUpdatingTracking.addOnCollectionChange(()=>this.items,_=>{for(const T of _.added){const x=()=>T.render();this._callbacks.set(T,x),this._projector.append(this.surface,x)}for(const T of _.removed){const x=this._projector.detach(this._callbacks.get(T));this.surface.removeChild(x.domNode),this._callbacks.delete(T)}})}addItem(d){this.items.add(d)}removeItem(d){this.items.remove(d)}destroy(){this.items.removeAll(),this._callbacks.forEach(d=>this._projector.detach(d)),this._callbacks=null,this._projector=null,this._watchUpdatingTracking.destroy()}render(){this._projector.renderNow()}computeBoundingRect(d){const _=this._hiddenSurface,T=this._hiddenProjector;let x=null;const A=()=>(x=d.render(),x);T.append(_,A),T.renderNow();const U={left:0,top:0,right:0,bottom:0};if(x&&x.domNode){const ne=x.domNode.getBoundingClientRect();U.left=ne.left,U.top=ne.top,U.right=ne.right,U.bottom=ne.bottom}for(T.detach(A);_.firstChild;)_.removeChild(_.firstChild);return U}overlaps(d,_){const T=this.computeBoundingRect(d),x=this.computeBoundingRect(_);return Math.max(T.left,x.left)<=Math.min(T.right,x.right)&&Math.max(T.top,x.top)<=Math.min(T.bottom,x.bottom)}get hasVisibleItems(){return this.items.some(d=>d.visible)}prepare(){var d=this;return(0,kr.Z)(function*(){yield document.fonts.load(d._fontString()).catch(()=>{})})()}renderCanvas(d){if(!this.items.some(T=>T.visible))return;const _=d.getContext("2d");_.save(),_.font=this._fontString(),this.items.forEach(T=>{_.save(),T.renderCanvas(_),_.restore()}),_.restore()}_fontString(){return`10px ${getComputedStyle(this.surface).fontFamily}`}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],fh.prototype,"surface",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],fh.prototype,"items",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],fh.prototype,"needsRender",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],fh.prototype,"_watchUpdatingTracking",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],fh.prototype,"updating",null),fh=(0,Ve._)([(0,Wr.j)("esri.views.overlay.ViewOverlay")],fh);const ID=fh;function c_(d,_,T,x){let A=null,U=1e3;"number"==typeof _?(U=_,x=T):(A=_??null,U=T);let ne,fe=0;const Oe=()=>{fe=0,d.apply(x,ne)},we=(...Ze)=>{A&&A.apply(x,Ze),ne=Ze,U?fe||(fe=setTimeout(Oe,U)):Oe()};return we.remove=()=>{fe&&(clearTimeout(fe),fe=0)},we.forceUpdate=()=>{fe&&(clearTimeout(fe),Oe())},we.hasPendingUpdates=()=>!!fe,we}v(52515);var ua=v(40915),h4=v(90466),p4=v(87183),LD=v(67736),Im=v(77275),Ap=v(88411),Lm=v(15348),Iv=v(36630),_4=v(66845),UD=v(46679);const BD=Us.Z.getLogger("esri.widgets.Feature.support.featureUtils"),m4=/href=(""|'')/gi,g4=/(\{([^\{\r\n]+)\})/g,y4=/\'/g,jD=/^\s*expression\//i,v4=/(\n)/gi,E4=/[\u00A0-\u9999<>\&]/gim,b4=/href\s*=\s*(?:\"([^\"]+)\"|\'([^\']+)\')/gi,C4=/^(?:mailto:|tel:)/,FD="relationships/",FT=(0,Ap.Ze)("short-date-short-time");function ND(d){if(!(0,Qe.Wi)(d))return d.get("sourceLayer")||d.get("layer")}function Lv(d,_){return NT.apply(this,arguments)}function NT(){return(NT=(0,kr.Z)(function*(d,_){return"function"==typeof d?d.call(null,_):d})).apply(this,arguments)}function WD(d=""){if(d)return!C4.test(d.trim().toLowerCase())}function WT(d){return!!d&&jD.test(d)}function VD(d,_){const T=function T4(d,_){if(!WT(_)||!d)return null;const T=_.replace(jD,"").toLowerCase();let x;return d.some(A=>A.name.toLowerCase()===T&&(x=A,!0)),x}(_,d?.fieldName);return T?T.title||null:d?d.label||d.fieldName:null}function Um(d,_){const T=VT(_,d);return T?T.name:d}function VT(d,_){return d&&"function"==typeof d.getField?d.getField(_):null}function zD(d){return`${d}`.trim()}function Rp({attributes:d,globalAttributes:_,layer:T,text:x,expressionAttributes:A,fieldInfoMap:U}){return x?zT({formattedAttributes:_,template:A4(x,{..._,...A,...d},T),fieldInfoMap:U}):""}function zT({formattedAttributes:d,template:_,fieldInfoMap:T}){return zD(function P4(d){return d.replace(m4,"")}((0,Im.gx)((0,Im.gx)(_,x=>function M4(d,_){const T=_.get(d.toLowerCase());return`{${T&&T.fieldName||d}}`}(x,T)),d)))}function HT(d,_){return d.replace(g4,(T,x,A)=>{const U=VT(_,A);return U?`{${U.name}}`:x})}function A4(d,_,T){const x=HT(d,T);return x&&x.replace(b4,(A,U,ne)=>function S4(d,_,T){const x=(_=zD(_))&&"{"!==_[0];return(0,Im.gx)(d,function D4(d,_=!1){const T={...d};return Object.keys(T).forEach(x=>function x4(d,_,T=!1){const x=_[d];if("string"==typeof x){const A="%27",U=(T?encodeURIComponent(x):x).replace(y4,A);_[d]=U}}(x,T,_)),T}(T,x))}(A,U||ne,_))}function HD(d){return!!d?.layer}function GD(d,_){if(!d||!d.length||!_)return;const T=_.toLowerCase();let x;return d.some(A=>!(!A.fieldName||A.fieldName.toLowerCase()!==T||(x=A,0))),x}function KD(d){const _=[];if(!d)return _;const{fieldInfos:T,content:x}=d;return T&&_.push(...T),x&&Array.isArray(x)&&x.forEach(A=>{if("fields"===A.type){const U=A&&A.fieldInfos;U&&_.push(...U)}}),_}function GT(d){return d.replace(E4,_=>`&#${_.charCodeAt(0)};`)}function Bm(d){return"string"==typeof d?d.replace(v4,'
    '):d}function ZD(d){const{value:_,fieldName:T,fieldInfos:x,fieldInfoMap:A,layer:U,graphic:ne}=d;if(null==_)return"";const fe=function B4({fieldName:d,value:_,graphic:T,layer:x}){if(yd(d)||!x||"function"!=typeof x.getFieldDomain)return null;const A=x.getFieldDomain(d,{feature:T});return A&&"coded-value"===A.type?A.getName(_):null}({fieldName:T,value:_,graphic:ne,layer:U});if(fe)return fe;const Oe=function U4({fieldName:d,graphic:_,layer:T}){if(yd(d)||!T||"function"!=typeof T.getFeatureType)return null;const{typeIdField:x}=T;if(!x||d!==x)return null;const A=T.getFeatureType(_);return A?A.name:null}({fieldName:T,graphic:ne,layer:U});if(Oe)return Oe;if(A.get(T.toLowerCase()))return function L4(d,_){const x=_.fieldName,A=GD(_.fieldInfos,x)?.clone(),U=_.preventPlacesFormatting,ne=_.layer,fe=VT(ne,x);if(A&&"date"===fe?.type){const we=A.format||new _4.Z;we.dateFormat=we.dateFormat||"short-date-short-time",we.dateTimeFormatOptions=!HD(ne)&&function w4(d){return"feature"===d?.type}(ne)&&ne.datesInUnknownTimezone||HD(ne)&&function I4(d){return"map-image"===d?.type}(ne.layer)&&ne.layer.datesInUnknownTimezone?{timeZone:"UTC"}:null,A.format=we}const Oe=A&&A.format;return"string"==typeof d&&(0,Iv.Ec)(x)&&Oe?Oe.formatRasterPixelValue(d):"string"==typeof(d=function R4(d,_){if("string"==typeof d&&_&&null==_.dateFormat&&(null!=_.places||null!=_.digitSeparator)){const T=Number(d);if(!isNaN(T))return T}return d}(d,Oe))||null==d||null==Oe?Bm(d):U?(0,Lm.uf)(d,{...(0,Lm.sh)(Oe),minimumFractionDigits:0,maximumFractionDigits:20}):Oe.format(d)}(_,{fieldInfos:x||Array.from(A.values()),fieldName:T,layer:U});const we=U&&U.fieldsIndex;return we&&we.isDateField(T)?(0,Ap.p6)(_,FT):Bm(_)}function KT({fieldInfos:d,attributes:_,layer:T,graphic:x,fieldInfoMap:A,relatedInfos:U}){const ne={};return U?.forEach(fe=>function H4({attributes:d,relatedInfo:_,fieldInfoMap:T,fieldInfos:x,layer:A}){d&&_&&(_.relatedFeatures&&_.relatedFeatures&&_.relatedFeatures.forEach(U=>$D({attributes:d,graphic:U,relatedInfo:_,fieldInfoMap:T,fieldInfos:x,layer:A})),_.relatedStatsFeatures&&_.relatedStatsFeatures&&_.relatedStatsFeatures.forEach(U=>$D({attributes:d,graphic:U,relatedInfo:_,fieldInfoMap:T,fieldInfos:x,layer:A})))}({attributes:ne,relatedInfo:fe,fieldInfoMap:A,fieldInfos:d,layer:T})),Object.keys(_).forEach(fe=>{ne[fe]=ZD({fieldName:fe,fieldInfos:d,fieldInfoMap:A,layer:T,value:_[fe],graphic:x})}),ne}function N4(d,_){return ZT.apply(this,arguments)}function ZT(){return(ZT=(0,kr.Z)(function*(d,_){const{layer:T,graphic:x,outFields:A,objectIds:U,returnGeometry:ne,spatialReference:fe}=d,Oe=U[0];if("number"!=typeof Oe&&"string"!=typeof Oe)return BD.warn("Could not query required fields for the specified feature. The feature's ID is invalid.",{layer:T,graphic:x,objectId:Oe,requiredFields:A}),null;if(!T.capabilities?.operations?.supportsQuery)return BD.warn("The specified layer cannot be queried. The following fields will not be available.",{layer:T,graphic:x,requiredFields:A,returnGeometry:ne}),null;const we=T.createQuery();return we.objectIds=U,we.outFields=A?.length?A:[T.objectIdField],we.returnGeometry=!!ne,we.returnZ=!!ne,we.returnM=!!ne,we.outSpatialReference=fe,(yield T.queryFeatures(we,_)).features[0]})).apply(this,arguments)}function W4(d){return $T.apply(this,arguments)}function $T(){return($T=(0,kr.Z)(function*(d){if(!d.expressionInfos?.length)return!1;const _=yield(0,UD.LC)(),{arcadeUtils:{hasGeometryFunctions:T}}=_;return T(d)})).apply(this,arguments)}function YT(){return(YT=(0,kr.Z)(function*({graphic:d,popupTemplate:_,layer:T,spatialReference:x},A){if(!T||!_||("function"==typeof T.load&&(yield T.load(A)),!d.attributes))return;const U=d.attributes[T.objectIdField];if(null==U)return;const ne=[U],fe=yield _.getRequiredFields(T.fieldsIndex),Oe=(0,Iv.R9)(fe,d),we=Oe?[]:fe,Ze=_.returnGeometry||(yield W4(_));if(Oe&&!Ze)return;const it=yield N4({layer:T,graphic:d,outFields:we,objectIds:ne,returnGeometry:Ze,spatialReference:x},A);it&&(it.geometry&&(d.geometry=it.geometry),it.attributes&&(d.attributes={...d.attributes,...it.attributes}))})).apply(this,arguments)}function yd(d=""){return!!d&&d.includes(FD)}function $D({attributes:d,graphic:_,relatedInfo:T,fieldInfos:x,fieldInfoMap:A,layer:U}){d&&_&&T&&Object.keys(_.attributes).forEach(ne=>{const fe=function z4(d){return d?`${FD}${d.layerId}/${d.fieldName}`:""}({layerId:T.relation.id.toString(),fieldName:ne});d[fe]=ZD({fieldName:fe,fieldInfos:x,fieldInfoMap:A,layer:U,value:_.attributes[ne],graphic:_})})}const YD=d=>{if(!d)return!1;const _=d.toUpperCase();return _.includes("CURRENT_TIMESTAMP")||_.includes("CURRENT_DATE")||_.includes("CURRENT_TIME")},XD=({layer:d,method:_,query:T,definitionExpression:x})=>{if(!d.capabilities?.query?.supportsCacheHint||"attachments"===_)return;const A=(0,Qe.pC)(T.where)&&T.where,U=(0,Qe.pC)(T.geometry)&&T.geometry;YD(x)||YD(A)||"extent"===U?.type||"tile"===T.resultType||(T.cacheHint=!0)};function kD(d,_,T){return d.find(x=>x!==_&&"feature"===x.type&&x.url===_.url&&x.layerId===T.relatedTableId)}const JD={editing:!1,operations:{add:!0,update:!0,delete:!0}},QD=On.Z.ofType(p4.Z);let Kl=class extends Ns.Z{constructor(d){super(d),this._getAttachmentsPromise=null,this._attachmentLayer=null,this.abilities={...JD},this.activeAttachmentInfo=null,this.activeFileInfo=null,this.attachmentInfos=new QD,this.fileInfos=new On.Z,this.graphic=null,this.mode="view",this.filesEnabled=!1,this.addHandles((0,Ht.YP)(()=>this.graphic,()=>this._graphicChanged(),Ht.nn))}destroy(){this._attachmentLayer=null,this.graphic=null}castAbilities(d){return{...JD,...d}}get state(){return this._getAttachmentsPromise?"loading":this.graphic?"ready":"disabled"}get supportsResizeAttachments(){const{graphic:d}=this;if(!d)return!1;const _=d.layer||d.sourceLayer;return _?.loaded&&"capabilities"in _&&"operations"in _.capabilities&&"supportsResizeAttachments"in _.capabilities.operations&&_.capabilities.operations.supportsResizeAttachments||!1}getAttachments(){var d=this;return(0,kr.Z)(function*(){const{_attachmentLayer:_,attachmentInfos:T}=d;if(!_||"function"!=typeof _.queryAttachments)throw new ai.Z("invalid-layer","getAttachments(): A valid layer is required.");const x=d._getObjectId(),A=new LD.Z({objectIds:[x],returnMetadata:!0}),U=[],ne=_.queryAttachments(A).then(Oe=>Oe[x]||U).catch(()=>U);d._getAttachmentsPromise=ne,d.notifyChange("state");const fe=yield ne;return T.removeAll(),fe.length&&T.addMany(fe),d._getAttachmentsPromise=null,d.notifyChange("state"),fe})()}addAttachment(d,_=this.graphic){var T=this;return(0,kr.Z)(function*(){const{_attachmentLayer:x,attachmentInfos:A,abilities:U}=T;if(!_)throw new ai.Z("invalid-graphic","addAttachment(): A valid graphic is required.",{graphic:_});if(!d)throw new ai.Z("invalid-attachment","addAttachment(): An attachment is required.",{attachment:d});if(!U.operations.add)throw new ai.Z("invalid-abilities","addAttachment(): add abilities are required.");if(!x||"function"!=typeof x.addAttachment)throw new ai.Z("invalid-layer","addAttachment(): A valid layer is required.");const ne=x.addAttachment(_,d).then(Oe=>T._queryAttachment(Oe.objectId,_)),fe=yield ne;return A.add(fe),fe})()}deleteAttachment(d){var _=this;return(0,kr.Z)(function*(){const{_attachmentLayer:T,attachmentInfos:x,graphic:A,abilities:U}=_;if(!d)throw new ai.Z("invalid-attachment-info","deleteAttachment(): An attachmentInfo is required.",{attachmentInfo:d});if(!U.operations.delete)throw new ai.Z("invalid-abilities","deleteAttachment(): delete abilities are required.");if(!T||"function"!=typeof T.deleteAttachments)throw new ai.Z("invalid-layer","deleteAttachment(): A valid layer is required.");const ne=T.deleteAttachments(A,[d.id]).then(()=>d),fe=yield ne;return x.remove(fe),fe})()}updateAttachment(d,_=this.activeAttachmentInfo){var T=this;return(0,kr.Z)(function*(){const{_attachmentLayer:x,attachmentInfos:A,graphic:U,abilities:ne}=T;if(!d)throw new ai.Z("invalid-attachment","updateAttachment(): An attachment is required.",{attachment:d});if(!_)throw new ai.Z("invalid-attachment-info","updateAttachment(): An attachmentInfo is required.",{attachmentInfo:_});if(!ne.operations.update)throw new ai.Z("invalid-abilities","updateAttachment(): Update abilities are required.");const fe=A.findIndex(Ze=>Ze===_);if(!x||"function"!=typeof x.updateAttachment)throw new ai.Z("invalid-layer","updateAttachment(): A valid layer is required.");const Oe=x.updateAttachment(U,_.id,d).then(Ze=>T._queryAttachment(Ze.objectId)),we=yield Oe;return A.splice(fe,1,we),we})()}commitFiles(){var d=this;return(0,kr.Z)(function*(){return yield Promise.all(d.fileInfos.items.map(_=>d.addAttachment(_.form))),d.fileInfos.removeAll(),d.getAttachments()})()}addFile(d,_){if(!d||!_)return null;const T={file:d,form:_};return this.fileInfos.add(T),T}updateFile(d,_,T=this.activeFileInfo){if(!d||!_||!T)return null;const x=this.fileInfos.findIndex(A=>T===A);return x>-1&&this.fileInfos.splice(x,1,{file:d,form:_}),this.fileInfos.items[x]}deleteFile(d){const _=this.fileInfos.find(T=>T.file===d);return this.fileInfos.remove(_)??null}_queryAttachment(d,_){var T=this;return(0,kr.Z)(function*(){if(!d)throw new ai.Z("invalid-attachment-id","Could not query attachment.");const{_attachmentLayer:x}=T,A=T._getObjectId(_),U=new LD.Z({objectIds:[A],attachmentsWhere:`AttachmentId=${d}`,returnMetadata:!0});return x.queryAttachments(U).then(ne=>ne[A][0])})()}_getObjectId(d=this.graphic){return d?.getObjectId()??null}_graphicChanged(){this.graphic&&(this._setAttachmentLayer(),this.getAttachments().catch(()=>{}))}_setAttachmentLayer(){const{graphic:d}=this,_=ND(d);this._attachmentLayer=_?"scene"===_.type&&(0,Qe.pC)(_.associatedLayer)?_.associatedLayer:_:null}};(0,Ve._)([(0,ke.Cb)()],Kl.prototype,"abilities",void 0),(0,Ve._)([(0,ko.p)("abilities")],Kl.prototype,"castAbilities",null),(0,Ve._)([(0,ke.Cb)()],Kl.prototype,"activeAttachmentInfo",void 0),(0,Ve._)([(0,ke.Cb)()],Kl.prototype,"activeFileInfo",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:QD})],Kl.prototype,"attachmentInfos",void 0),(0,Ve._)([(0,ke.Cb)()],Kl.prototype,"fileInfos",void 0),(0,Ve._)([(0,ke.Cb)({type:fd.Z})],Kl.prototype,"graphic",void 0),(0,Ve._)([(0,ke.Cb)()],Kl.prototype,"mode",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Kl.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],Kl.prototype,"filesEnabled",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Kl.prototype,"supportsResizeAttachments",null),Kl=(0,Ve._)([(0,Wr.j)("esri.widgets.Attachments.AttachmentsViewModel")],Kl);const XT=Kl;var Uv=v(54346);function qD(d){const _=d.toLowerCase();return"image/bmp"===_||"image/emf"===_||"image/exif"===_||"image/gif"===_||"image/x-icon"===_||"image/jpeg"===_||"image/png"===_||"image/tiff"===_||"image/x-wmf"===_}var uo=v(38570),Jo=v(25552),Yt=v(94450);const eS={addButton:!0,addSubmitButton:!0,cancelAddButton:!0,cancelUpdateButton:!0,deleteButton:!0,errorMessage:!0,progressBar:!0,updateButton:!0},zs_item="esri-attachments__item",zs_itemButton="esri-attachments__item-button",kT=window.CSS;let rl=class extends ua.Z{constructor(d,_){super(d,_),this.displayType="auto",this.messages=null,this.messagesUnits=null,this.selectedFile=null,this.submitting=!1,this.viewModel=new XT,this.visibleElements={...eS},this._supportsImageOrientation=kT&&kT.supports&&kT.supports("image-orientation","from-image"),this._addAttachmentForm=null,this._updateAttachmentForm=null}initialize(){this.addHandles([(0,Ht.on)(()=>this.viewModel?.attachmentInfos,"change",()=>this.scheduleRender()),(0,Ht.on)(()=>this.viewModel?.fileInfos,"change",()=>this.scheduleRender()),(0,Ht.YP)(()=>this.viewModel?.mode,()=>this._modeChanged(),Ht.nn)])}loadDependencies(){return Promise.all([v.e(8472).then(v.bind(v,8472))])}get abilities(){return this.viewModel.abilities}set abilities(d){this.viewModel.abilities=d}get effectiveDisplayType(){const{displayType:d}=this;return d&&"auto"!==d?d:this.viewModel.supportsResizeAttachments?"preview":"list"}get graphic(){return this.viewModel.graphic}set graphic(d){this.viewModel.graphic=d}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}castVisibleElements(d){return{...eS,...d}}addAttachment(){const{_addAttachmentForm:d,viewModel:_}=this;return this._set("submitting",!0),this._set("error",null),_.addAttachment(d).then(T=>(this._set("submitting",!1),this._set("error",null),_.mode="view",T)).catch(T=>{throw this._set("submitting",!1),this._set("error",new ai.Z("attachments:add-attachment",this.messages.addErrorMessage,T)),T})}deleteAttachment(d){const{viewModel:_}=this;return this._set("submitting",!0),this._set("error",null),_.deleteAttachment(d).then(T=>(this._set("submitting",!1),this._set("error",null),_.mode="view",T)).catch(T=>{throw this._set("submitting",!1),this._set("error",new ai.Z("attachments:delete-attachment",this.messages.deleteErrorMessage,T)),T})}updateAttachment(){const{viewModel:d}=this,{_updateAttachmentForm:_}=this;return this._set("submitting",!0),this._set("error",null),d.updateAttachment(_).then(T=>(this._set("submitting",!1),this._set("error",null),d.mode="view",T)).catch(T=>{throw this._set("submitting",!1),this._set("error",new ai.Z("attachments:update-attachment",this.messages.updateErrorMessage,T)),T})}addFile(){const d=this.viewModel.addFile(this.selectedFile,this._addAttachmentForm);return this.viewModel.mode="view",d}updateFile(){const{viewModel:d}=this,_=d.updateFile(this.selectedFile,this._updateAttachmentForm,d.activeFileInfo);return d.mode="view",_}deleteFile(d){const _=this.viewModel.deleteFile(d||this.viewModel.activeFileInfo.file);return this.viewModel.mode="view",_}render(){const{submitting:d,viewModel:_}=this,{state:T}=_;return(0,Yt.u)("div",{class:this.classes("esri-attachments","esri-widget")},d?this.renderProgressBar():null,"loading"===T?this.renderLoading():this.renderAttachments(),this.renderErrorMessage())}renderErrorMessage(){const{error:d,visibleElements:_}=this;return d&&_.errorMessage?(0,Yt.u)("div",{key:"error-message",class:"esri-attachments__error-message"},d.message):null}renderAttachments(){const{activeFileInfo:d,mode:_,activeAttachmentInfo:T}=this.viewModel;return"add"===_?this.renderAddForm():"edit"===_?this.renderDetailsForm(T||d):this.renderAttachmentContainer()}renderLoading(){return(0,Yt.u)("div",{class:"esri-attachments__loader-container",key:"loader"},(0,Yt.u)("div",{class:"esri-attachments__loader"}))}renderProgressBar(){return this.visibleElements.progressBar?(0,Yt.u)("div",{class:"esri-attachments__progress-bar",key:"progress-bar"}):null}renderAddForm(){const{submitting:d,selectedFile:_}=this,T=d||!_,x=this.visibleElements.cancelAddButton?(0,Yt.u)("button",{type:"button",bind:this,disabled:d,onclick:this._cancelForm,class:this.classes("esri-button","esri-button--tertiary","esri-button--small","esri-button--half",d&&"esri-button--disabled")},this.messages.cancel):null,A=this.visibleElements.addSubmitButton?(0,Yt.u)("button",{type:"submit",disabled:T,class:this.classes("esri-button","esri-button--secondary","esri-button--small","esri-button--half",{"esri-button--disabled":T})},this.messages.add):null,U=_?(0,Yt.u)("span",{key:"file-name",class:"esri-attachments__file-name"},_.name):null,ne=(0,Yt.u)("form",{bind:this,afterCreate:uo.Yo,afterRemoved:uo.pV,"data-node-ref":"_addAttachmentForm",onsubmit:this._submitAddAttachment},(0,Yt.u)("fieldset",{class:"esri-attachments__file-fieldset"},U,(0,Yt.u)("label",{class:this.classes("esri-attachments__file-label","esri-button","esri-button--secondary")},_?this.messages.changeFile:this.messages.selectFile,(0,Yt.u)("input",{class:"esri-attachments__file-input",type:"file",name:"attachment",bind:this,onchange:this._handleFileInputChange}))),A,x);return(0,Yt.u)("div",{key:"add-form-container",class:"esri-attachments__form-node"},ne)}renderDetailsForm(d){const{visibleElements:_,viewModel:T,selectedFile:x,submitting:A}=this,{abilities:U}=T,ne=A||!x;let fe,Oe,we,Ze;x?(fe=x.type,Oe=x.name,we=x.size):"file"in d?(fe=d.file.type,Oe=d.file.name,we=d.file.size):(fe=d.contentType,Oe=d.name,we=d.size,Ze=d.url);const it=U.editing&&U.operations.delete&&_.deleteButton?(0,Yt.u)("button",{key:"delete-button",type:"button",disabled:A,bind:this,onclick:Bt=>this._submitDeleteAttachment(Bt,d),class:this.classes("esri-button","esri-button--small","esri-button--tertiary","esri-attachments__delete-button",{"esri-button--disabled":A})},this.messages.delete):void 0,lt=U.editing&&U.operations.update&&_.updateButton?(0,Yt.u)("button",{disabled:ne,key:"update-button",type:"submit",class:this.classes("esri-button","esri-button--small","esri-button--third",{"esri-button--disabled":ne})},this.messages.update):void 0,dt=this.visibleElements.cancelUpdateButton?(0,Yt.u)("button",{disabled:A,key:"cancel-button",type:"button",bind:this,onclick:this._cancelForm,class:this.classes("esri-button","esri-button--small","esri-button--tertiary","esri-button--third",{"esri-button--disabled":A})},this.messages.cancel):void 0,Tt=U.editing&&U.operations.update?(0,Yt.u)("fieldset",{key:"file",class:"esri-attachments__file-fieldset"},(0,Yt.u)("span",{key:"file-name",class:"esri-attachments__file-name"},Oe),(0,Yt.u)("label",{class:this.classes("esri-attachments__file-label","esri-button","esri-button--secondary")},this.messages.changeFile,(0,Yt.u)("input",{class:"esri-attachments__file-input",type:"file",name:"attachment",bind:this,onchange:this._handleFileInputChange}))):void 0,mt=(0,Yt.u)("fieldset",{key:"size",class:"esri-attachments__metadata-fieldset"},(0,Yt.u)("label",null,(0,h4.sS)(this.messagesUnits,we))),Mt=(0,Yt.u)("fieldset",{key:"content-type",class:"esri-attachments__metadata-fieldset"},(0,Yt.u)("label",null,fe)),Pt=(0,Qe.pC)(Ze)?(0,Yt.u)("a",{class:"esri-attachments__item-link",href:Ze,rel:"noreferrer",target:"_blank"},this.renderImageMask(d,400),(0,Yt.u)("div",{class:"esri-attachments__item-link-overlay"},(0,Yt.u)("span",{class:"esri-attachments__item-link-overlay-icon"},(0,Yt.u)("calcite-icon",{icon:"launch"})))):this.renderImageMask(d,400),Nt=(0,Yt.u)("form",{bind:this,afterCreate:uo.Yo,afterRemoved:uo.pV,"data-node-ref":"_updateAttachmentForm",onsubmit:Bt=>this._submitUpdateAttachment(Bt,d)},(0,Yt.u)("div",{class:"esri-attachments__metadata"},mt,Mt),Tt,(0,Yt.u)("div",{class:"esri-attachments__actions"},it,dt,lt));return(0,Yt.u)("div",{key:"edit-form-container",class:"esri-attachments__form-node"},Pt,Nt)}renderImageMask(d,_){return"file"in d?this.renderGenericImageMask(d.file.name,d.file.type):this.renderImageMaskForAttachment(d,_)}renderGenericImageMask(d,_){const{supportsResizeAttachments:T}=this.viewModel,x=function $4(d){const _=(0,Uv.V)("esri/themes/base/images/files/");return d?"text/plain"===d?`${_}text-32.svg`:"application/pdf"===d?`${_}pdf-32.svg`:"text/csv"===d?`${_}csv-32.svg`:"application/gpx+xml"===d?`${_}gpx-32.svg`:"application/x-dwf"===d?`${_}cad-32.svg`:"application/postscript"===d||"application/json"===d||"text/xml"===d||"model/vrml"===d?`${_}code-32.svg`:"application/x-zip-compressed"===d||"application/x-7z-compressed"===d||"application/x-gzip"===d||"application/x-tar"===d||"application/x-gtar"===d||"application/x-bzip2"===d||"application/gzip"===d||"application/x-compress"===d||"application/x-apple-diskimage"===d||"application/x-rar-compressed"===d||"application/zip"===d?`${_}zip-32.svg`:d.includes("image/")?`${_}image-32.svg`:d.includes("audio/")?`${_}sound-32.svg`:d.includes("video/")?`${_}video-32.svg`:d.includes("msexcel")||d.includes("ms-excel")||d.includes("spreadsheetml")?`${_}excel-32.svg`:d.includes("msword")||d.includes("ms-word")||d.includes("wordprocessingml")?`${_}word-32.svg`:d.includes("powerpoint")||d.includes("presentationml")?`${_}report-32.svg`:`${_}generic-32.svg`:`${_}generic-32.svg`}(_),A={"esri-attachments__image--resizable":T};return(0,Yt.u)("div",{class:this.classes("esri-attachments__item-mask--icon","esri-attachments__item-mask")},(0,Yt.u)("img",{title:d,alt:d,src:x,class:this.classes(A,"esri-attachments__image")}))}renderImageMaskForAttachment(d,_){const{supportsResizeAttachments:T}=this.viewModel,{contentType:x,name:A,url:U}=d;if(!T||!qD(x))return this.renderGenericImageMask(A,x);const ne=this._getCSSTransform(d),fe=ne?{transform:ne,"image-orientation":"none"}:{},Oe=`${U}${U.includes("?")?"&":"?"}w=${_}`,we={"esri-attachments__image--resizable":T};return(0,Yt.u)("div",{class:this.classes("esri-attachments__item-mask")},(0,Yt.u)("img",{styles:fe,alt:A,title:A,src:Oe,class:this.classes(we,"esri-attachments__image")}))}renderFile(d){const{file:_}=d;return(0,Yt.u)("li",{class:zs_item,key:_},(0,Yt.u)("button",{key:"details-button",bind:this,class:zs_itemButton,title:this.messages.attachmentDetails,"aria-label":this.messages.attachmentDetails,onclick:()=>this._startEditFile(d),type:"button"},this.renderImageMask(d),(0,Yt.u)("label",{class:"esri-attachments__label"},(0,Yt.u)("span",{class:"esri-attachments__filename"},_.name||this.messages.noTitle),(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes("esri-attachments__item-chevron-icon",(0,uo.dZ)(this.container)?"esri-icon-left":"esri-icon-right")}))))}renderAttachmentInfo({attachmentInfo:d,displayType:_}){const{viewModel:T,effectiveDisplayType:x}=this,{abilities:A,supportsResizeAttachments:U}=T,{contentType:ne,name:fe,url:Oe}=d,we=this.renderImageMask(d,"list"===_?48:400),Ze=A.editing?(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes("esri-attachments__item-chevron-icon",(0,uo.dZ)(this.container)?"esri-icon-left":"esri-icon-right")}):null,it=[we,"preview"===x&&U&&qD(ne)?null:(0,Yt.u)("label",{class:"esri-attachments__label"},(0,Yt.u)("span",{class:"esri-attachments__filename"},fe||this.messages.noTitle),Ze)],lt=A.editing?(0,Yt.u)("button",{key:"details-button",bind:this,class:zs_itemButton,title:this.messages.attachmentDetails,"aria-label":this.messages.attachmentDetails,"data-attachment-info-id":d.id,onclick:()=>this._startEditAttachment(d),type:"button"},it):(0,Yt.u)("a",{key:"details-link",class:zs_itemButton,href:Oe,target:"_blank"},it);return(0,Yt.u)("li",{class:zs_item,key:d},lt)}renderAttachmentContainer(){const{effectiveDisplayType:d,viewModel:_,visibleElements:T}=this,{attachmentInfos:x,abilities:A,fileInfos:U}=_,ne=!!x?.length,fe=!!U?.length,Oe={"esri-attachments__container--list":"preview"!==d,"esri-attachments__container--preview":"preview"===d},we=A.editing&&A.operations.add&&T.addButton?(0,Yt.u)("button",{bind:this,onclick:()=>this._startAddAttachment(),class:this.classes("esri-button","esri-button--tertiary","esri-attachments__add-attachment-button"),type:"button"},(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes("esri-attachments__item-add-icon","esri-icon-plus")}),this.messages.add):void 0,Ze=ne?(0,Yt.u)("ul",{key:"attachments-list",class:"esri-attachments__items"},x.toArray().map(dt=>this.renderAttachmentInfo({attachmentInfo:dt,displayType:d}))):void 0,it=fe?(0,Yt.u)("ul",{key:"file-list",class:"esri-attachments__items"},U.toArray().map(dt=>this.renderFile(dt))):void 0,lt=fe||ne?void 0:(0,Yt.u)("div",{class:"esri-widget__content--empty"},this.messages.noAttachments);return(0,Yt.u)("div",{key:"attachments-container",class:this.classes("esri-attachments__container",Oe)},Ze,it,lt,we)}_modeChanged(){this._set("error",null),this._set("selectedFile",null)}_handleFileInputChange(d){const _=d.target,T=_&&_.files&&_.files.item(0);this._set("selectedFile",T)}_submitDeleteAttachment(d,_){d.preventDefault(),"file"in _?this.deleteFile(_.file):this.deleteAttachment(_)}_submitAddAttachment(d){d.preventDefault(),this.viewModel.filesEnabled?this.addFile():this.addAttachment()}_submitUpdateAttachment(d,_){d.preventDefault(),"file"in _?this.updateFile():this.updateAttachment()}_startEditAttachment(d){const{viewModel:_}=this;_.activeFileInfo=null,_.activeAttachmentInfo=d,_.mode="edit"}_startEditFile(d){const{viewModel:_}=this;_.activeAttachmentInfo=null,_.activeFileInfo=d,_.mode="edit"}_startAddAttachment(){this.viewModel.mode="add"}_cancelForm(d){d.preventDefault(),this.viewModel.mode="view"}_getCSSTransform(d){const{orientationInfo:_}=d;return!this._supportsImageOrientation&&_?[_.rotation?`rotate(${_.rotation}deg)`:"",_.mirrored?"scaleX(-1)":""].join(" "):""}};(0,Ve._)([(0,ke.Cb)()],rl.prototype,"abilities",null),(0,Ve._)([(0,ke.Cb)()],rl.prototype,"displayType",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],rl.prototype,"effectiveDisplayType",null),(0,Ve._)([(0,ke.Cb)()],rl.prototype,"graphic",null),(0,Ve._)([(0,ke.Cb)()],rl.prototype,"label",null),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Attachments/t9n/Attachments")],rl.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/core/t9n/Units")],rl.prototype,"messagesUnits",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],rl.prototype,"selectedFile",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],rl.prototype,"submitting",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],rl.prototype,"error",void 0),(0,Ve._)([(0,ke.Cb)({type:XT})],rl.prototype,"viewModel",void 0),(0,Ve._)([(0,ke.Cb)()],rl.prototype,"visibleElements",void 0),(0,Ve._)([(0,ko.p)("visibleElements")],rl.prototype,"castVisibleElements",null),rl=(0,Ve._)([(0,Wr.j)("esri.widgets.Attachments")],rl);const Y4=rl;let jm=class extends XT{constructor(d){super(d),this.description=null,this.title=null}};(0,Ve._)([(0,ke.Cb)()],jm.prototype,"description",void 0),(0,Ve._)([(0,ke.Cb)()],jm.prototype,"title",void 0),jm=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureAttachments.FeatureAttachmentsViewModel")],jm);const JT=jm;function wp(d,_){const T=tS(d.level),x=`h${T}`;return delete d.level,(0,Yt.u)(x,{...d,class:(0,uo.Sh)("esri-widget__heading",d.class),role:"heading","aria-level":String(T)},_)}function tS(d){return(0,xr.uZ)(Math.ceil(d),1,6)}function k4(d,_=1){return tS(d+_)}let u_=class extends ua.Z{constructor(d,_){super(d,_),this.description=null,this.headingLevel=2,this.title=null}render(){return(0,Yt.u)("div",{class:"esri-feature-element-info"},this.renderTitle(),this.renderDescription())}renderTitle(){const{title:d}=this;return d?(0,Yt.u)(wp,{level:this.headingLevel,class:"esri-feature-element-info__title"},d):null}renderDescription(){const{description:d}=this;return d?(0,Yt.u)("div",{key:"description",class:"esri-feature-element-info__description"},d):null}};(0,Ve._)([(0,ke.Cb)()],u_.prototype,"description",void 0),(0,Ve._)([(0,ke.Cb)()],u_.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)()],u_.prototype,"title",void 0),u_=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.support.FeatureElementInfo")],u_);const Bv=u_;let Ru=class extends ua.Z{constructor(d,_){super(d,_),this._featureElementInfo=null,this.attachmentsWidget=new Y4,this.headingLevel=2,this.viewModel=new JT}initialize(){this._featureElementInfo=new Bv,this.addHandles([(0,Ht.YP)(()=>[this.viewModel?.description,this.viewModel?.title,this.headingLevel],()=>this._setupFeatureElementInfo(),Ht.nn),(0,Ht.YP)(()=>this.viewModel?.graphic,d=>this.attachmentsWidget.graphic=d,Ht.nn)])}destroy(){this.attachmentsWidget.destroy(),this._featureElementInfo.destroy()}get description(){return this.viewModel.description}set description(d){this.viewModel.description=d}get displayType(){return this.attachmentsWidget.displayType}set displayType(d){this.attachmentsWidget.displayType=d}get graphic(){return this.viewModel.graphic}set graphic(d){this.viewModel.graphic=d}get title(){return this.viewModel.title}set title(d){this.viewModel.title=d}render(){const{attachmentsWidget:d}=this;return(0,Yt.u)("div",{class:"esri-feature-attachments"},this._featureElementInfo?.render(),d?.render())}_setupFeatureElementInfo(){const{description:d,title:_,headingLevel:T}=this;this._featureElementInfo.set({description:d,title:_,headingLevel:T})}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ru.prototype,"attachmentsWidget",void 0),(0,Ve._)([(0,ke.Cb)()],Ru.prototype,"description",null),(0,Ve._)([(0,ke.Cb)()],Ru.prototype,"displayType",null),(0,Ve._)([(0,ke.Cb)()],Ru.prototype,"graphic",null),(0,Ve._)([(0,ke.Cb)()],Ru.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)()],Ru.prototype,"title",null),(0,Ve._)([(0,ke.Cb)({type:JT})],Ru.prototype,"viewModel",void 0),Ru=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureAttachments")],Ru);const Q4=Ru;var Ip=v(80542);let mh=class extends((0,Ip.p)(Ns.Z)){constructor(d){super(d),this._loadingPromise=null,this.created=null,this.creator=null,this.destroyer=null,this.graphic=null,this.handles.add((0,Ht.YP)(()=>this.creator,_=>{this._destroyContent(),this._createContent(_)},Ht.nn))}destroy(){this._destroyContent()}get state(){return this._loadingPromise?"loading":"ready"}_destroyContent(){const{created:d,graphic:_,destroyer:T}=this;d&&(Lv(T,{graphic:_}).catch(()=>null),this._set("created",null))}_createContent(d){var _=this;return(0,kr.Z)(function*(){const{graphic:T}=_,x=Lv(d,{graphic:T}).catch(()=>null);_._loadingPromise=x,_.notifyChange("state");const A=yield x;x===_._loadingPromise&&(_._loadingPromise=null,_.notifyChange("state"),_._set("created",A))})()}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],mh.prototype,"created",void 0),(0,Ve._)([(0,ke.Cb)()],mh.prototype,"creator",void 0),(0,Ve._)([(0,ke.Cb)()],mh.prototype,"destroyer",void 0),(0,Ve._)([(0,ke.Cb)({type:fd.Z})],mh.prototype,"graphic",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],mh.prototype,"state",null),mh=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureContent.FeatureContentViewModel")],mh);const jv=mh;var qT=v(25469);let d_=class extends ua.Z{constructor(d,_){super(d,_),this.viewModel=null,this._addTargetToAnchors=T=>{Array.from(T.querySelectorAll("a")).forEach(x=>{WD(x.href)&&!x.hasAttribute("target")&&x.setAttribute("target","_blank")})}}get creator(){return this.viewModel.creator}set creator(d){this.viewModel.creator=d}get graphic(){return this.viewModel.graphic}set graphic(d){this.viewModel.graphic=d}renderLoading(){return(0,Yt.u)("div",{class:"esri-feature-content__loader-container",key:"loader"},(0,Yt.u)("div",{class:"esri-feature-content__loader"}))}renderCreated(){const d=this.viewModel?.created;return d?d instanceof HTMLElement?(0,Yt.u)("div",{key:d,bind:d,afterCreate:this._attachToNode}):(0,qT.Qd)(d)?(0,Yt.u)("div",{key:d},!d.destroyed&&d.render()):(0,Yt.u)("div",{key:d,innerHTML:d,afterCreate:this._addTargetToAnchors}):null}render(){const d=this.viewModel?.state;return(0,Yt.u)("div",{class:"esri-feature-content"},"loading"===d?this.renderLoading():this.renderCreated())}_attachToNode(d){d.appendChild(this)}};(0,Ve._)([(0,ke.Cb)()],d_.prototype,"creator",null),(0,Ve._)([(0,ke.Cb)()],d_.prototype,"graphic",null),(0,Ve._)([(0,ke.Cb)({type:jv})],d_.prototype,"viewModel",void 0),d_=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureContent")],d_);const Fv=d_;var q4=v(38439),rS=v(25621);let vd=class extends Ns.Z{constructor(d){super(d),this.attributes=null,this.expressionInfos=null,this.description=null,this.fieldInfos=null,this.title=null}get formattedFieldInfos(){const{expressionInfos:d,fieldInfos:_}=this,T=[];return _?.forEach(x=>{if(x.hasOwnProperty("visible")&&!x.visible)return;const A=x.clone();A.label=VD(A,d),T.push(A)}),T}};(0,Ve._)([(0,ke.Cb)()],vd.prototype,"attributes",void 0),(0,Ve._)([(0,ke.Cb)({type:[q4.Z]})],vd.prototype,"expressionInfos",void 0),(0,Ve._)([(0,ke.Cb)()],vd.prototype,"description",void 0),(0,Ve._)([(0,ke.Cb)({type:[rS.Z]})],vd.prototype,"fieldInfos",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],vd.prototype,"formattedFieldInfos",null),(0,Ve._)([(0,ke.Cb)()],vd.prototype,"title",void 0),vd=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureFields.FeatureFieldsViewModel")],vd);const Nv=vd,e6=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/i,target:"_blank",label:"{messages.view}"},{pattern:/^\s*(tel:([^\s]+))\s*$/i,label:"{hierPart}"},{pattern:/^\s*(mailto:([^\s]+))\s*$/i,label:"{hierPart}"},{pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"App Studio Player"},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Collector"},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Explorer"},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Navigator"},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Survey123"},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Trek2There"},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Workforce"},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"iForm"},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"FlowFinity"},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Laserfische"},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Microsoft Power Bi"}];let ou=class extends ua.Z{constructor(d,_){super(d,_),this._featureElementInfo=null,this.viewModel=new Nv,this.messages=null,this.messagesURIUtils=null}initialize(){this._featureElementInfo=new Bv,this.addHandles((0,Ht.YP)(()=>[this.viewModel?.description,this.viewModel?.title],()=>this._setupFeatureElementInfo(),Ht.nn))}destroy(){this._featureElementInfo.destroy()}get attributes(){return this.viewModel.attributes}set attributes(d){this.viewModel.attributes=d}get description(){return this.viewModel.description}set description(d){this.viewModel.description=d}get expressionInfos(){return this.viewModel.expressionInfos}set expressionInfos(d){this.viewModel.expressionInfos=d}get fieldInfos(){return this.viewModel.fieldInfos}set fieldInfos(d){this.viewModel.fieldInfos=d}get title(){return this.viewModel.title}set title(d){this.viewModel.title=d}renderFieldInfo(d,_){const{attributes:T}=this.viewModel,x=d.fieldName,A=d.label||x,U=T?T[x]??"":"",ne=!(!d.format||!d.format.dateFormat),fe="number"!=typeof U||ne?function r6(d,_){if("string"!=typeof _||!_)return _;const T=function t6(d){let _=null;return e6.some(T=>(T.pattern.test(d)&&(_=T),!!_)),_}(_);if(!T)return _;const x=_.match(T.pattern),U=(0,Im.gx)((0,Im.gx)(T.label,{messages:d,hierPart:x&&x[2]}),{appName:T.appName});return _.replace(T.pattern,`${U}
    `)}(this.messagesURIUtils,U):this._forceLTR(U),Oe={"esri-feature-fields__field-data--date":ne};return(0,Yt.u)("tr",{key:`fields-element-info-row-${x}-${_}`},(0,Yt.u)("th",{key:`fields-element-info-row-header-${x}-${_}`,class:"esri-feature-fields__field-header",innerHTML:A}),(0,Yt.u)("td",{key:`fields-element-info-row-data-${x}-${_}`,class:this.classes("esri-feature-fields__field-data",Oe),innerHTML:fe}))}renderFields(){const{formattedFieldInfos:d}=this.viewModel;return d?.length?(0,Yt.u)("table",{class:"esri-widget__table",summary:this.messages.fieldsSummary},(0,Yt.u)("tbody",null,d.map((_,T)=>this.renderFieldInfo(_,T)))):null}render(){return(0,Yt.u)("div",{class:"esri-feature-fields"},this._featureElementInfo?.render(),this.renderFields())}_setupFeatureElementInfo(){const{description:d,title:_}=this;this._featureElementInfo.set({description:d,title:_})}_forceLTR(d){return`‎${d}`}};(0,Ve._)([(0,ke.Cb)()],ou.prototype,"attributes",null),(0,Ve._)([(0,ke.Cb)()],ou.prototype,"description",null),(0,Ve._)([(0,ke.Cb)()],ou.prototype,"expressionInfos",null),(0,Ve._)([(0,ke.Cb)()],ou.prototype,"fieldInfos",null),(0,Ve._)([(0,ke.Cb)()],ou.prototype,"title",null),(0,Ve._)([(0,ke.Cb)({type:Nv,nonNullable:!0})],ou.prototype,"viewModel",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Feature/t9n/Feature")],ou.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/support/t9n/uriUtils")],ou.prototype,"messagesURIUtils",void 0),ou=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureFields")],ou);const sS=ou;var El=v(88159);const s6=/^-?(\d+)(\.(\d+))?$/i;function i6(d,_){return d-_}function n6(d,_){let T,x;return T=Number(d.toFixed(_)),T0;Oe||(fe=Math.abs(fe));const we=Wv(ne);return Oe?(we.integer+=fe,fe>we.fractional?we.fractional=0:we.fractional-=fe):(we.fractional+=fe,fe>we.integer?we.integer=1:we.integer-=fe),we}}return{integer:0,fractional:0}}function Vv(d,_,T,x){const A={previous:null,next:null};if(null!=T){const U=d-T;A.previous=Math.floor(Math.abs(100*(_-T-U)/U))}if(null!=x){const U=x-d;A.next=Math.floor(Math.abs(100*(x-_-U)/U))}return A}function zv(d,_={}){const T=d.slice(0),{tolerance:x=2,strictBounds:A=!1,indexes:U=T.map((ne,fe)=>fe)}=_;U.sort(i6);for(let ne=0;ne ");let U=null;return U=x?(0,Ap.p6)(d,c6):function l6(d){return(0,Lm.uf)(d,a6)}(d),A+U}const u6=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwcdIkqhiWn5fHwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6JrzFUAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwaeIkqhiWl5/HwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6sKxboAAAAASUVORK5CYII=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwadJEqhiWl5fPwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu75+IUcAAAAASUVORK5CYII="];function tM(d){return rM.apply(this,arguments)}function rM(){return(rM=(0,kr.Z)(function*(d){if(!("visualVariables"in d)||!d.visualVariables)return null;const _=d.visualVariables.find(ne=>"color"===ne.type);if(!_)return null;let T=null,x=null;if(_.stops){if(1===_.stops.length)return _.stops[0].color;T=_.stops[0].value,x=_.stops[_.stops.length-1].value}const A=T+(x-T)/2,{getColor:U}=yield Promise.resolve().then(v.bind(v,81808));return U(_,A)})).apply(this,arguments)}function cS(d,_){return sM.apply(this,arguments)}function sM(){return(sM=(0,kr.Z)(function*(d,_){const T=d.trailCap,x=d.trailWidth||1,A=_||(yield tM(d))||d.color;return new nS.Z({cap:T,color:A,width:x})})).apply(this,arguments)}const d6=new lo.Z([64,64,64]);function uS(d,_){const T=[],x=d.length-1;return 5===d.length?T.push(0,2,4):T.push(0,x),d.map((A,U)=>T.includes(U)?lS(A,U,x,_):null)}function iM(d,_,T){return nM.apply(this,arguments)}function nM(){return nM=(0,kr.Z)(function*(d,_,T){let x=!1,A=[],U=[];if(d.stops){const we=d.stops;A=we.map(Ze=>Ze.value),x=we.some(Ze=>!!Ze.label),x&&(U=we.map(Ze=>Ze.label))}if(null==A[0]&&null==A[A.length-1])return null;const Oe=x?null:uS(A,T);return(yield Promise.all(A.map(function(){var we=(0,kr.Z)(function*(Ze,it){return{value:Ze,color:"opacity"===d.type?yield h6(Ze,d,_):(yield Promise.resolve().then(v.bind(v,81808))).getColor(d,Ze),label:x?U[it]:Oe[it]}});return function(Ze,it){return we.apply(this,arguments)}}()))).reverse()}),nM.apply(this,arguments)}function h6(d,_){return oM.apply(this,arguments)}function oM(){return(oM=(0,kr.Z)(function*(d,_,T=d6){const x=new lo.Z(T),A=(yield Promise.resolve().then(v.bind(v,81808))).getOpacity(_,d);return null!=A&&(x.a=A),x})).apply(this,arguments)}function dS(d,_){const{startIndex:T,endIndex:x,weight:A}=function _6(d,_){let T=0,x=_.length-1;return _.some((A,U)=>dx.color?.a>0);let T=_.length-1;if(_&&_[0]){const x=_[T];x&&1!==x.ratio&&(_.push(new m6.Z({ratio:1,color:x.color})),T++)}return _.map((x,A)=>{let U="";return 0===A?U=d.legendOptions?.minLabel||"low":A===T&&(U=d.legendOptions?.maxLabel||"high"),{color:x.color,label:U,ratio:x.ratio}}).reverse()}function dc(d,_,T){return aM.apply(this,arguments)}function aM(){return(aM=(0,kr.Z)(function*(d,_,T){(0,El.s1)(d,_,()=>[]).push(...T)})).apply(this,arguments)}function lM(){return(lM=(0,kr.Z)(function*(d){const _=new Map;if(!d)return _;if("visualVariables"in d&&d.visualVariables){const T=d.visualVariables.filter(x=>"color"===x.type);for(const x of T){const A=(yield iM(x)).map(U=>U.color);yield dc(_,x.field||x.valueExpression,A)}}if("heatmap"===d.type){const T=hS(d).map(x=>x.color);yield dc(_,d.field||d.valueExpression,T)}else if("pie-chart"===d.type){for(const T of d.attributes)yield dc(_,T.field||T.valueExpression,[T.color]);yield dc(_,"default",[d?.othersCategory?.color,(0,da._h)(d.backgroundFillSymbol,null)])}else if("dot-density"===d.type){for(const T of d.attributes)yield dc(_,T.field||T.valueExpression,[T.color]);yield dc(_,"default",[d.backgroundColor])}else if("unique-value"===d.type)if("predominance"===d.authoringInfo?.type)for(const T of d.uniqueValueInfos??[])yield dc(_,T.value.toString(),[(0,da._h)(T.symbol,null)]);else{const T=(d.uniqueValueInfos??[]).map(fe=>(0,da._h)(fe.symbol,null)),{field:x,field2:A,field3:U,valueExpression:ne}=d;(x||ne)&&(yield dc(_,x||ne,T)),A&&(yield dc(_,A,T)),U&&(yield dc(_,U,T))}else if("class-breaks"===d.type){const T=d.classBreakInfos.map(U=>(0,da._h)(U.symbol,null)),{field:x,valueExpression:A}=d;yield dc(_,x??A,T)}else"simple"===d.type&&(yield dc(_,"default",[(0,da._h)(d.symbol,null)]));return"defaultSymbol"in d&&d.defaultSymbol&&(yield dc(_,"default",[(0,da._h)(d.defaultSymbol,null)])),_.forEach((T,x)=>{const A=(0,pd.Tw)(T.filter(Boolean),(U,ne)=>JSON.stringify(U)===JSON.stringify(ne));_.set(x,A)}),_})).apply(this,arguments)}Us.Z.getLogger("esri.renderers.support.utils"),(0,Ap.Ze)("short-date");var M6=v(77891),cM=v(84792),uM=(v(15283),v(2865)),P6=v(24263),dM=v(16730),hc=v(37053),bl=(v(82054),v(2004)),O6=v(21674),hM=(v(72854),v(37118),v(55214),v(93555),v(24192),v(17253),v(96854)),pM=v(67010),x6=(v(6871),v(60776));const fS=Us.Z.getLogger("esri.widgets.Feature.support.relatedFeatureUtils"),mS=new Map;function _M(d){if(!yd(d))return null;const[_,T]=d.split("/").slice(1);return{layerId:_,fieldName:T}}function A6({originRelationship:d,relationships:_,layerId:T}){let x;return _&&_.some(A=>(`${A.relatedTableId}`===T&&A.id===d.id&&(x=A),!!x)),x}function R6(d,_){const T=_.toLowerCase();for(const x in d)if(x.toLowerCase()===T)return d[x];return null}function L6(d,_,T,x){const A=new pM.Z;return A.outFields=["*"],A.relationshipId="number"==typeof _.id?_.id:parseInt(_.id,10),A.objectIds=[d.attributes[T.objectIdField]],T.queryRelatedFeatures(A,x)}function U6(d,_,T){let x=0;const A=[];for(;x<_.length;)A.push(`${d} IN (${_.slice(x,T+x)})`),x+=T;return A.join(" OR ")}function fM(){return(fM=(0,kr.Z)(function*(d,_,T,x){const A=T.layerId.toString(),{layerInfo:U,relation:ne,relatedFields:fe,outStatistics:Oe,url:we,sourceSpatialReference:Ze}=_,it=A6({originRelationship:ne,relationships:U.relationships,layerId:A});if(it.relationshipTableId&&it.keyFieldInRelationshipTable){const dt=(yield L6(d,it,T,x))[d.attributes[T.objectIdField]];if(!dt)return null;const Tt=dt.features.map(mt=>mt.attributes[U.objectIdField]);if(Oe?.length>0&&U.supportsStatistics){const mt=new hM.Z;mt.where=U6(U.objectIdField,Tt,1e3),mt.outFields=fe,mt.outStatistics=Oe,mt.sourceSpatialReference=Ze;const Mt={features:Promise.resolve(dt),statsFeatures:(0,uM.e)(we,mt)};return(0,ws.as)(Mt)}}const lt=it?.keyField;if(lt){const dt=(0,Iv.H7)(V6(U.fields,lt)),Tt=R6(d.attributes,ne.keyField),mt=dt?`${lt}=${Tt}`:`${lt}='${Tt}'`,Mt=(0,uM.e)(we,new hM.Z({where:mt,outFields:_.relatedFields,sourceSpatialReference:Ze}),x),Pt=_.outStatistics&&_.outStatistics.length>0&&U.supportsStatistics?(0,uM.e)(we,new hM.Z({where:mt,outFields:_.relatedFields,outStatistics:_.outStatistics,sourceSpatialReference:Ze}),x):null,Nt={features:Mt};return Pt&&(Nt.statsFeatures=Pt),(0,ws.as)(Nt)}return null})).apply(this,arguments)}function V6(d,_){if(null!=d){_=_.toLowerCase();for(const T of d)if(T&&T.name.toLowerCase()===_)return T}return null}const gS={chartAnimation:!0};let ha=class extends Ns.Z{constructor(d){super(d),this.abilities={...gS},this.activeMediaInfoIndex=0,this.attributes=null,this.description=null,this.fieldInfoMap=null,this.formattedAttributes=null,this.expressionAttributes=null,this.layer=null,this.mediaInfos=null,this.popupTemplate=null,this.relatedInfos=null,this.title=null}castAbilities(d){return{...gS,...d}}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}setActiveMedia(d){this._setContentElementMedia(d)}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}_setContentElementMedia(d){const{formattedMediaInfoCount:_}=this;this.activeMediaInfoIndex=(d+_)%_}_pageContentElementMedia(d){const{activeMediaInfoIndex:_}=this;this._setContentElementMedia(_+d)}_formatMediaInfos(){const{attributes:d,mediaInfos:_,formattedAttributes:T,expressionAttributes:x,fieldInfoMap:A,layer:U}=this;return _?.map(ne=>{const fe=ne?.clone();if(!fe)return null;if(fe.title=Rp({attributes:d,fieldInfoMap:A,globalAttributes:T,expressionAttributes:x,layer:U,text:fe.title}),fe.caption=Rp({attributes:d,fieldInfoMap:A,globalAttributes:T,expressionAttributes:x,layer:U,text:fe.caption}),fe.altText=Rp({attributes:d,fieldInfoMap:A,globalAttributes:T,expressionAttributes:x,layer:U,text:fe.altText}),"image"===fe.type){const{value:Oe}=fe;return this._setImageValue({value:Oe,formattedAttributes:T,layer:U}),fe.value.sourceURL?fe:void 0}if("pie-chart"===fe.type||"line-chart"===fe.type||"column-chart"===fe.type||"bar-chart"===fe.type){const{value:Oe}=fe;return this._setChartValue({value:Oe,chartType:fe.type,attributes:d,formattedAttributes:T,layer:U,expressionAttributes:x}),fe}return null}).filter(Boolean)}_setImageValue(d){const{fieldInfoMap:_}=this,{value:T,formattedAttributes:x,layer:A}=d,{linkURL:U,sourceURL:ne}=T;if(ne){const fe=HT(ne,A);T.sourceURL=zT({formattedAttributes:x,template:fe,fieldInfoMap:_})}if(U){const fe=HT(U,A);T.linkURL=zT({formattedAttributes:x,template:fe,fieldInfoMap:_})}}_setChartValue(d){const{value:_,attributes:T,formattedAttributes:x,chartType:A,layer:U,expressionAttributes:ne}=d,{popupTemplate:fe,relatedInfos:Oe}=this,{fields:we,normalizeField:Ze}=_;if(_.fields=function O4(d,_){return d&&d.map(T=>Um(T,_))}(we,U),Ze&&(_.normalizeField=Um(Ze,U)),!we.some(lt=>!!(null!=x[lt]||yd(lt)&&Oe.size)))return;const it=fe?.fieldInfos;we.forEach(lt=>{if(yd(lt))return void(_.series=[..._.series,...this._getRelatedChartInfos({fieldInfos:it,fieldName:lt,formattedAttributes:x,chartType:A,value:_})]);const dt=this._getChartOption({value:_,attributes:T,chartType:A,formattedAttributes:x,expressionAttributes:ne,fieldName:lt,fieldInfos:it});_.series.push(dt)})}_getRelatedChartInfos(d){const{fieldInfos:_,fieldName:T,formattedAttributes:x,chartType:A,value:U}=d,ne=[],fe=_M(T),{layerId:Oe,fieldName:we}=fe,Ze=this.relatedInfos?.get(Oe.toString());if(!Ze)return ne;const{relatedFeatures:it,relation:lt}=Ze;if(!lt||!it)return ne;const{cardinality:dt}=lt;return it.forEach(Tt=>{const{attributes:mt}=Tt;mt&&Object.keys(mt).forEach(Mt=>{Mt===we&&ne.push(this._getChartOption({value:U,attributes:mt,formattedAttributes:x,fieldName:T,chartType:A,relatedFieldName:Mt,fieldInfos:_}))})}),"one-to-many"===dt||"many-to-many"===dt?ne:[ne[0]]}_getTooltip({label:d,value:_,chartType:T}){return"pie-chart"===T?`${d}`:`${d}: ${_}`}_getChartOption(d){const{value:_,attributes:T,formattedAttributes:x,expressionAttributes:A,fieldName:U,relatedFieldName:ne,fieldInfos:fe,chartType:Oe}=d,{layer:we,fieldInfoMap:Ze}=this,{normalizeField:it,tooltipField:lt}=_,dt=it?yd(it)?T[_M(it).fieldName]:T[it]:null,Tt=WT(U)&&A&&void 0!==A[U]?A[U]:ne&&void 0!==T[ne]?T[ne]:void 0!==T[U]?T[U]:x[U],mt=new M6.Z({fieldName:U,value:void 0===Tt?null:Tt&&dt?Tt/dt:Tt});if(yd(U)){const Zt=Ze.get(U.toLowerCase()),nr=Ze.get(lt.toLowerCase());return mt.tooltip=this._getTooltip({label:x[nr?.fieldName??lt]??Zt?.label??Zt?.fieldName??ne,value:x[Zt?.fieldName??U],chartType:Oe}),mt}const Mt=GD(fe,U),Pt=Um(U,we),Nt=lt&&void 0!==x[lt]?x[lt]:VD(Mt||new rS.Z({fieldName:Pt}),this.popupTemplate?.expressionInfos);return mt.tooltip=this._getTooltip({label:Nt,value:x[Pt],chartType:Oe}),mt}};(0,Ve._)([(0,ke.Cb)()],ha.prototype,"abilities",void 0),(0,Ve._)([(0,ko.p)("abilities")],ha.prototype,"castAbilities",null),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"activeMediaInfoIndex",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ha.prototype,"activeMediaInfo",null),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"attributes",void 0),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"description",void 0),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"fieldInfoMap",void 0),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"formattedAttributes",void 0),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"expressionAttributes",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ha.prototype,"formattedMediaInfos",null),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"layer",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ha.prototype,"formattedMediaInfoCount",null),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"mediaInfos",void 0),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"popupTemplate",void 0),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"relatedInfos",void 0),(0,Ve._)([(0,ke.Cb)()],ha.prototype,"title",void 0),ha=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureMedia.FeatureMediaViewModel")],ha);const Lp=ha;var yS=["#ffffff","#858585","#ffbebe","#ffebbe","#ffebaf","#ffffbe","#e9ffbe","#d3ffbe","#beffe8","#bee8ff","#bed2ff","#e8beff","#ffbee8","#ebebeb","#707070","#ff7f7f","#ffa77f","#ffd37f","#ffff73","#d1ff73","#a3ff73","#73ffdf","#73dfff","#73b2ff","#df73ff","#ff73df","#d6d6d6","#5c5c5c","#ff0000","#ff5500","#ffaa00","#ffff00","#aaff00","#55ff00","#00ffc5","#00c5ff","#0070ff","#c500ff","#ff00c5","#c2c2c2","#474747","#e60000","#e64c00","#e69800","#e6e600","#98e600","#4ce600","#00e6a9","#00a9e6","#005ce6","#a900e6","#e600a9","#adadad","#242424","#a80000","#a83800","#a87000","#a8a800","#70a800","#38a800","#00a884","#0084a8","#004da8","#8400a8","#a80084","#999999","#1a1a1a","#730000","#732600","#734c00","#737300","#4c7300","#267300","#00734c","#004c73","#002673","#4c0073","#73004"],H6=[{name:"default",colors:[].concat(yS.slice(30,39),yS.slice(28,30).reverse())},{name:"cat-dark",colors:["#ed5151","#149ece","#a7c636","#9e559c","#fc921f","#ffde3e","#f789d8","#b7814a","#3caf99","#6b6bd6","#b54779","#7f7f7f"]},{name:"tropical-bliss",colors:["#fce138","#ff9399","#fcd27e","#f1983c","#a553b7","#b1a9d0","#6ecffc","#4c81cd","#fc6f84","#fc3e5a","#6af689","#48885c"]},{name:"desert-blooms",colors:["#102432","#144d59","#ffc730","#ed9310","#a64f1b","#661510","#d9351a","#b31515","#4a0932","#8c213f","#18382e","#2c6954"]},{name:"under-the-sea",colors:["#bf9727","#607100","#00734c","#704489","#01acca","#024e76","#f09100","#ea311f","#c6004b","#7570b3","#666666","#333333"]},{name:"vibrant-rainbow",colors:["#fffb00","#f5cb11","#9fd40c","#46e39c","#32b8a6","#7ff2fa","#ac08cc","#dd33ff","#eb7200","#e8a784","#bf2e2e","#6c7000"]},{name:"ocean-bay",colors:["#191921","#11495c","#78b1c2","#454f4b","#8f8f82","#9be0c0","#87b051","#f7ec88","#ebdcc1","#dbb658","#c43541","#75351e"]},{name:"prairie-summer",colors:["#332424","#751555","#d47013","#d68989","#211173","#82aad6","#7bfaeb","#6ec9a8","#6b6408","#eada40","#ccc54a","#1fc235"]},{name:"pastel-chalk",colors:["#fffd99","#f5e6a4","#c1d48c","#b8e3d0","#a0b8b5","#cbf7fa","#d791f2","#dfc1eb","#f2b983","#e8c4b2","#bf8e8e","#94995c"]},{name:"seq-yellow-orange-red-bright",colors:["#910000","#b1260b","#c0370f","#e05919","#ef6a1d","#ff7b22","#ffa143","#ffb454","#ffda74","#ffed85"]},{name:"seq-reds-bright",colors:["#57453b","#7b4238","#9f4036","#c23d33","#d7483c","#ec5244","#f3696c","#f9816c","#ffc4ae","#fff0dc"]},{name:"seq-purples-bright",colors:["#4e465c","#5a4a78","#695291","#775baa","#8663c3","#946bdc","#aa89e8","#c1a6f3","#d7c4ff","#e6e1ff"]},{name:"seq-blues-bright",colors:["#404d54","#435c6c","#48799d","#4b88b6","#4d96ce","#50a5e7","#74bbed","#98d0f3","#bce6f9","#e6faff"]},{name:"seq-greens-bright",colors:["#39544c","#386757","#368165","#359b73","#33b581","#4bc392","#64d2a2","#7ce0b3","#cbf6d9","#f4ffea"]},{name:"seq-browns-bright",colors:["#524834","#715b38","#8f6e3c","#ae8140","#cc9444","#eba748","#eeb664","#f0c47f","#f9e0b7","#fff8eb"]}],vS=v(56683);const mM=new Map([["ar",()=>v.e(3309).then(v.bind(v,93309)).then(d=>d.a)],["bg-bg",()=>v.e(2504).then(v.bind(v,82504)).then(d=>d.b)],["bs-ba",()=>v.e(88).then(v.bind(v,88)).then(d=>d.b)],["ca-es",()=>v.e(2371).then(v.bind(v,32371)).then(d=>d.c)],["cs-cz",()=>v.e(3690).then(v.bind(v,93690)).then(d=>d.c)],["da-dk",()=>v.e(2125).then(v.bind(v,42125)).then(d=>d.d)],["de-de",()=>v.e(7396).then(v.bind(v,7396)).then(d=>d.d)],["de-ch",()=>v.e(2479).then(v.bind(v,62479)).then(d=>d.d)],["el-gr",()=>v.e(9548).then(v.bind(v,39548)).then(d=>d.e)],["en-us",()=>v.e(700).then(v.bind(v,20700)).then(d=>d.e)],["en-ca",()=>v.e(7028).then(v.bind(v,37028)).then(d=>d.e)],["es-es",()=>v.e(4824).then(v.bind(v,54824)).then(d=>d.e)],["et-ee",()=>v.e(3914).then(v.bind(v,23914)).then(d=>d.e)],["fi-fi",()=>v.e(1299).then(v.bind(v,1299)).then(d=>d.f)],["fr-fr",()=>v.e(9856).then(v.bind(v,39856)).then(d=>d.f)],["he-il",()=>v.e(4609).then(v.bind(v,24609)).then(d=>d.h)],["hr-hr",()=>v.e(7731).then(v.bind(v,87731)).then(d=>d.h)],["hu-hu",()=>v.e(7127).then(v.bind(v,57127)).then(d=>d.h)],["id-id",()=>v.e(6560).then(v.bind(v,36560)).then(d=>d.i)],["it-it",()=>v.e(7708).then(v.bind(v,67708)).then(d=>d.i)],["ja-jp",()=>v.e(6651).then(v.bind(v,36651)).then(d=>d.j)],["ko-kr",()=>v.e(7016).then(v.bind(v,7016)).then(d=>d.k)],["lt-lt",()=>v.e(5010).then(v.bind(v,5010)).then(d=>d.l)],["lv-lv",()=>v.e(2620).then(v.bind(v,92620)).then(d=>d.l)],["nb-no",()=>v.e(5237).then(v.bind(v,55237)).then(d=>d.n)],["nl-nl",()=>v.e(948).then(v.bind(v,948)).then(d=>d.n)],["pl-pl",()=>v.e(8351).then(v.bind(v,58351)).then(d=>d.p)],["pt-br",()=>v.e(6681).then(v.bind(v,86681)).then(d=>d.p)],["pt-pt",()=>v.e(8110).then(v.bind(v,48110)).then(d=>d.p)],["ro-ro",()=>v.e(8372).then(v.bind(v,95058)).then(d=>d.r)],["ru-ru",()=>v.e(8073).then(v.bind(v,88073)).then(d=>d.r)],["sk-sk",()=>v.e(7419).then(v.bind(v,7419)).then(d=>d.s)],["sl-sl",()=>v.e(1218).then(v.bind(v,11218)).then(d=>d.s)],["sr-rs",()=>v.e(5302).then(v.bind(v,85302)).then(d=>d.s)],["sv-se",()=>v.e(6079).then(v.bind(v,86079)).then(d=>d.s)],["th-th",()=>v.e(5508).then(v.bind(v,55508)).then(d=>d.t)],["tr-tr",()=>v.e(6844).then(v.bind(v,56844)).then(d=>d.t)],["uk-ua",()=>v.e(4978).then(v.bind(v,4978)).then(d=>d.u)],["vi-vn",()=>v.e(9202).then(v.bind(v,29202)).then(d=>d.v)],["zh-cn",()=>v.e(865).then(v.bind(v,70865)).then(d=>d.z)],["zh-hk",()=>v.e(3207).then(v.bind(v,3207)).then(d=>d.z)],["zh-tw",()=>v.e(3207).then(v.bind(v,3207)).then(d=>d.z)]]);function K6(d){return d?mM.has(d.toLowerCase())?d.toLowerCase():function G6(d){const _=d.split("-")[0].toLowerCase();let T=null;for(const x of mM.keys())if(x.startsWith(_)){T=x;break}return T}(d)||"en-us":"en-us"}let p_,Wm;function gM(){return(gM=(0,kr.Z)(function*(d=(0,vS.Kd)()){if(d=K6(d),p_&&d===Wm)return p_;p_=v.e(4430).then(v.bind(v,4430)).then(_=>_.i),Wm=d;try{const[_,T]=yield Promise.all([p_,mM.get(Wm)()]);Wm===d&&(_.am4core.options.defaultLocale=T.default),_.am4core.options.suppressWarnings=!0,_.am4core.options.autoDispose=!0}catch{return p_=null,Wm=null,null}return p_})).apply(this,arguments)}const bS="calcite-theme-";function Vm(){return function Y6(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g,"")}().startsWith("dark")}const Ao_mediaIcon="esri-feature-media__icon",Ed="color",gh="tooltip",zm="value",CS="default-line-value";let Zl=class extends ua.Z{constructor(d,_){var T;super(d,_),T=this,this._refreshTimer=null,this._refreshIntervalInfo=null,this._featureElementInfo=null,this.viewModel=new Lp,this.messages=null,this._getChartDependencies=function(){var x=(0,kr.Z)(function*(A){const U=yield function Z6(){return gM.apply(this,arguments)}(),{destroyed:ne,viewModel:fe}=T;if(ne||!fe||!A)return;const{activeMediaInfo:Oe}=fe,we=yield T._getRendererColors(U);T._renderChart({chartDiv:A,mediaInfo:Oe,chartsModule:U,colorMap:we})});return function(A){return x.apply(this,arguments)}}()}initialize(){this._featureElementInfo=new Bv,this.addHandles([(0,Ht.YP)(()=>[this.viewModel?.activeMediaInfo,this.viewModel?.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),Ht.nn),(0,Ht.YP)(()=>[this.viewModel?.description,this.viewModel?.title],()=>this._setupFeatureElementInfo(),Ht.nn)])}destroy(){this._clearMediaRefreshTimer(),this._featureElementInfo.destroy()}get attributes(){return this.viewModel.attributes}set attributes(d){this.viewModel.attributes=d}get activeMediaInfoIndex(){return this.viewModel.activeMediaInfoIndex}set activeMediaInfoIndex(d){this.viewModel.activeMediaInfoIndex=d}get description(){return this.viewModel.description}set description(d){this.viewModel.description=d}get fieldInfoMap(){return this.viewModel.fieldInfoMap}set fieldInfoMap(d){this.viewModel.fieldInfoMap=d}get layer(){return this.viewModel.layer}set layer(d){this.viewModel.layer=d}get mediaInfos(){return this.viewModel.mediaInfos}set mediaInfos(d){this.viewModel.mediaInfos=d}get popupTemplate(){return this.viewModel.popupTemplate}set popupTemplate(d){this.viewModel.popupTemplate=d}get relatedInfos(){return this.viewModel.relatedInfos}set relatedInfos(d){this.viewModel.relatedInfos=d}get title(){return this.viewModel.title}set title(d){this.viewModel.title=d}render(){return(0,Yt.u)("div",{bind:this,class:"esri-feature-media",onkeyup:this._handleMediaKeyup},this._featureElementInfo?.render(),this.renderMedia())}renderMedia(){const{formattedMediaInfoCount:d}=this.viewModel;return d?(0,Yt.u)("div",{key:"media-element-container",class:"esri-feature-media__container"},this.renderMediaPageButton("previous"),this.renderMediaInfo(),this.renderMediaPageButton("next")):null}renderImageMediaInfo(d){const{_refreshIntervalInfo:_}=this,{activeMediaInfoIndex:T,formattedMediaInfoCount:x}=this.viewModel,{value:A,refreshInterval:U,altText:ne,title:fe,type:Oe}=d,{sourceURL:we,linkURL:Ze}=A,it=WD(Ze)?"_blank":"_self",lt="_blank"===it?"noreferrer":"",dt=U?_:null,Mt=(0,Yt.u)("img",{alt:ne||fe,key:`media-${Oe}-${T}-${x}-${dt?dt.timestamp:0}`,src:dt?dt.sourceURL:we});return(Ze?(0,Yt.u)("a",{title:fe,href:Ze,rel:lt,target:it},Mt):null)||Mt}renderChartMediaInfo(d){const{activeMediaInfoIndex:_,formattedMediaInfoCount:T}=this.viewModel;return(0,Yt.u)("div",{key:`media-${d.type}-${_}-${T}`,bind:this,class:"esri-feature-media__chart",afterCreate:this._getChartDependencies})}renderMediaInfoType(){const{activeMediaInfo:d}=this.viewModel;return d?"image"===d.type?this.renderImageMediaInfo(d):d.type.includes("chart")?this.renderChartMediaInfo(d):null:null}renderMediaInfo(){const{activeMediaInfo:d}=this.viewModel;if(!d)return null;const _=d.title?(0,Yt.u)("div",{key:"media-title",class:"esri-feature-media__item-title",innerHTML:d.title}):null,T=d.caption?(0,Yt.u)("div",{key:"media-caption",class:"esri-feature-media__item-caption",innerHTML:d.caption}):null;return(0,Yt.u)("div",{key:"media-container",class:"esri-feature-media__item-container"},(0,Yt.u)("div",{key:"media-item-container",class:"esri-feature-media__item"},this.renderMediaInfoType()),_,T)}renderMediaPageButton(d){if(this.viewModel.formattedMediaInfoCount<2)return null;const _="previous"===d,T=_?this.messages.previous:this.messages.next,x=this.classes("esri-feature-media__button",_?"esri-feature-media__previous":"esri-feature-media__next"),A=_?this.classes(Ao_mediaIcon,"esri-feature-media__previous-icon","esri-icon-left-triangle-arrow"):this.classes(Ao_mediaIcon,"esri-feature-media__next-icon","esri-icon-right-triangle-arrow"),U=_?this.classes(Ao_mediaIcon,"esri-feature-media__previous-icon--rtl","esri-icon-right-triangle-arrow"):this.classes(Ao_mediaIcon,"esri-feature-media__next-icon--rtl","esri-icon-left-triangle-arrow");return(0,Yt.u)("button",{type:"button",key:_?"media-previous":"media-next",title:T,"aria-label":T,tabIndex:0,class:x,bind:this,onclick:_?this._previous:this._next},(0,Yt.u)("span",{"aria-hidden":"true",class:A}),(0,Yt.u)("span",{"aria-hidden":"true",class:U}))}_setupFeatureElementInfo(){const{description:d,title:_}=this;this._featureElementInfo.set({description:d,title:_})}_next(){this.viewModel.next()}_previous(){this.viewModel.previous()}_getRendererColors(d){var _=this;return(0,kr.Z)(function*(){const{am4core:T}=d,x=new Map,A=_.viewModel?.layer?.renderer;if(!A)return x;const ne=yield function E6(d){return lM.apply(this,arguments)}(A);return ne.delete("default"),Array.from(ne.values()).every(fe=>1===fe?.length)&&(x.set(CS,T.color({r:50,g:50,b:50,a:1})),Array.from(ne.keys()).forEach(fe=>{fe&&x.set(fe,T.color(ne.get(fe)[0].toCss(!0)))})),x})()}_handleMediaKeyup(d){const _=(0,Dp.kK)(d);"ArrowLeft"===_&&(d.stopPropagation(),this.viewModel.previous()),"ArrowRight"===_&&(d.stopPropagation(),this.viewModel.next())}_renderChart(d){const{abilities:_}=this.viewModel,{chartsModule:T,chartDiv:x,mediaInfo:A,colorMap:U}=d,{value:ne,type:fe}=A,{am4core:Oe}=T,we=function $6(d,_="default"){const T=H6.find(x=>x.name===_);return T?T.colors.map(x=>d.color(x)):null}(Oe);Vm()&&Oe.useTheme(T.am4themes_dark);const it=window.matchMedia("(prefers-reduced-motion: reduce)");_.chartAnimation&&!it.matches?Oe.useTheme(T.am4themes_animated):Oe.unuseTheme(T.am4themes_animated),Oe.useTheme(function Ze(dt){dt instanceof Oe.ColorSet&&we&&(dt.list=we)});const lt="pie-chart"===fe?this._createPieChart(d):this._createXYChart(d);x.setAttribute("aria-label",A.altText||A.title),lt.data=ne.series.map(dt=>({[gh]:dt.tooltip,[zm]:dt.value,[Ed]:U.get(dt.fieldName)})).filter(dt=>"pie-chart"!==fe||dt.value>0)}_customizeChartTooltip(d,_){d.label.wrap=!0,d.label.maxWidth=200,d.autoTextColor=!1,d.getFillFromObject=!1,d.label.fill=_.color("#ffffff"),d.background.fill=_.color({r:0,g:0,b:0,a:.7})}_createPieChart(d){const{chartDiv:_,chartsModule:T}=d,{am4core:x,am4charts:A}=T,U=x.create(_,A.PieChart);U.rtl=(0,uo.dZ)(this.container);const ne=U.series.push(new A.PieSeries);return ne.labels.template.disabled=!0,ne.ticks.template.disabled=!0,ne.dataFields.value=zm,ne.dataFields.category=gh,this._customizeChartTooltip(ne.tooltip,x),ne.slices.template.propertyFields.fill=Ed,ne.slices.template.propertyFields.stroke=Ed,U}_getMinSeriesValue(d){let _=0;return d.forEach(T=>_=Math.min(T.value,_)),_}_createColumnChart(d,_){const{chartsModule:T,mediaInfo:x}=_,{value:A}=x,{am4core:U,am4charts:ne}=T,fe=d.xAxes.push(new ne.CategoryAxis);fe.dataFields.category=gh,fe.renderer.labels.template.disabled=!0,this._customizeChartTooltip(fe.tooltip,U),fe.tooltip.events.on("sizechanged",()=>{fe.tooltip.dy=-fe.tooltip.contentHeight});const Oe=d.yAxes.push(new ne.ValueAxis),we=Oe.renderer.labels.template;Oe.renderer.minLabelPosition=.05,Oe.renderer.maxLabelPosition=.95,Oe.min=this._getMinSeriesValue(A.series),this._customizeChartTooltip(Oe.tooltip,U),we.wrap=!0;const Ze=d.series.push(new ne.ColumnSeries);Ze.dataFields.valueY=zm,Ze.dataFields.categoryX=gh,Ze.columns.template.propertyFields.fill=Ed,Ze.columns.template.propertyFields.stroke=Ed,d.cursor=new ne.XYCursor,A.series.length>15&&(d.scrollbarX=new U.Scrollbar)}_createBarChart(d,_){const{chartsModule:T,mediaInfo:x}=_,{value:A}=x,{am4core:U,am4charts:ne}=T,fe=d.yAxes.push(new ne.CategoryAxis);fe.dataFields.category=gh,fe.renderer.inversed=!0,fe.renderer.labels.template.disabled=!0,this._customizeChartTooltip(fe.tooltip,U),fe.tooltip.events.on("sizechanged",()=>{fe.tooltip.dx=fe.tooltip.contentWidth});const Oe=d.xAxes.push(new ne.ValueAxis),we=Oe.renderer.labels.template;Oe.renderer.minLabelPosition=.05,Oe.renderer.maxLabelPosition=.95,Oe.min=this._getMinSeriesValue(A.series),this._customizeChartTooltip(Oe.tooltip,U),we.wrap=!0;const Ze=d.series.push(new ne.ColumnSeries);Ze.dataFields.valueX=zm,Ze.dataFields.categoryY=gh,Ze.columns.template.propertyFields.fill=Ed,Ze.columns.template.propertyFields.stroke=Ed,d.cursor=new ne.XYCursor,A.series.length>15&&(d.scrollbarY=new U.Scrollbar)}_createLineChart(d,_){const{chartsModule:T,mediaInfo:x,colorMap:A}=_,{value:U}=x,{am4core:ne,am4charts:fe}=T,Oe=d.xAxes.push(new fe.CategoryAxis);Oe.dataFields.category=gh,Oe.renderer.labels.template.disabled=!0,this._customizeChartTooltip(Oe.tooltip,ne),Oe.tooltip.events.on("sizechanged",()=>{Oe.tooltip.dy=-Oe.tooltip.contentHeight});const we=d.yAxes.push(new fe.ValueAxis),Ze=we.renderer.labels.template;we.renderer.minLabelPosition=.05,we.renderer.maxLabelPosition=.95,we.min=this._getMinSeriesValue(U.series),this._customizeChartTooltip(we.tooltip,ne),Ze.wrap=!0;const it=d.series.push(new fe.LineSeries);it.dataFields.categoryX=gh,it.dataFields.valueY=zm,it.strokeWidth=1;const lt=A.get(CS);lt&&(it.stroke=lt);const dt=it.bullets.push(new fe.CircleBullet);dt.propertyFields.fill=Ed,dt.propertyFields.stroke=Ed,d.cursor=new fe.XYCursor,U.series.length>15&&(d.scrollbarX=new ne.Scrollbar)}_createXYChart(d){const{chartDiv:_,chartsModule:T,mediaInfo:x}=d,{type:A}=x,{am4core:U,am4charts:ne}=T,fe=U.create(_,ne.XYChart);return fe.rtl=(0,uo.dZ)(this.container),"column-chart"===A&&this._createColumnChart(fe,d),"bar-chart"===A&&this._createBarChart(fe,d),"line-chart"===A&&this._createLineChart(fe,d),fe}_clearMediaRefreshTimer(){const{_refreshTimer:d}=this;d&&(clearTimeout(d),this._refreshTimer=null)}_updateMediaInfoTimestamp(d){const _=Date.now();this._refreshIntervalInfo={timestamp:_,sourceURL:this._getImageSource(d,_)},this.scheduleRender()}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();const{activeMediaInfo:d}=this.viewModel;d&&"image"===d.type&&d.refreshInterval&&this._setRefreshTimeout(d)}_setRefreshTimeout(d){const{refreshInterval:_,value:T}=d;if(!_)return;const x=6e4*_;this._updateMediaInfoTimestamp(T.sourceURL);const A=setInterval(()=>{this._updateMediaInfoTimestamp(T.sourceURL)},x);this._refreshTimer=A}_getImageSource(d,_){const T=d.includes("?")?"&":"?",[x,A=""]=d.split("#");return`${x}${T}timestamp=${_}${A?"#":""}${A}`}};(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"attributes",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"activeMediaInfoIndex",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"description",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"fieldInfoMap",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"layer",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"mediaInfos",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"popupTemplate",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"relatedInfos",null),(0,Ve._)([(0,ke.Cb)()],Zl.prototype,"title",null),(0,Ve._)([(0,ke.Cb)({type:Lp})],Zl.prototype,"viewModel",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Feature/t9n/Feature")],Zl.prototype,"messages",void 0),Zl=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureMedia")],Zl);const TS=Zl;v(55664),v(55013),v(16615),v(82561);var Q6=v(75484),q6=v(64531),MS=(v(6785),v(501)),e8=v(38159);const t8=["$datastore","$map","$layer","$aggregatedfeatures"],s8=Us.Z.getLogger("esri.widgets.Feature.support.arcadeFeatureUtils");function i8(d){return"string"==typeof d?Bm(GT(d)):Array.isArray(d)?function n8(d){return`
      ${d.map(_=>`
    • ${"string"==typeof _?Bm(GT(_)):_}
    • `).join("")}
    `}(d):"esri.arcade.Dictionary"===d?.declaredClass?function o8(d){return`${d.keys().map(_=>{const T=d.field(_);return``}).join("")}
    ${_}${"string"==typeof T?Bm(GT(T)):T}
    `}(d):d}function a8({aggregatedFeatures:d,arcadeUtils:_,featureSetVars:T,context:x,viewInfo:A,map:U,graphic:ne,interceptor:fe}){T.forEach(Oe=>{const we=Oe.toLowerCase();if("$map"===we&&(x.vars[we]=_.convertMapToFeatureSetCollection({map:U,spatialReference:A.sr,interceptor:fe})),"$layer"===we&&(x.vars[we]=_.convertFeatureLayerToFeatureSet({layer:ne.sourceLayer,spatialReference:A.sr,interceptor:fe})),"$datastore"===we&&(x.vars[we]=_.convertServiceUrlToWorkspace({url:ne.sourceLayer.url,spatialReference:A.sr,interceptor:fe})),"$aggregatedfeatures"===we){const it=ne.layer,{fields:lt,objectIdField:dt,geometryType:Tt,spatialReference:mt,displayField:Mt}=it,Pt=new lD.default({fields:lt,objectIdField:dt,geometryType:Tt,spatialReference:mt,displayField:Mt,..."feature"===it.type?{templates:it.templates,typeIdField:it.typeIdField,types:it.types}:null,source:d});x.vars[we]=_.convertFeatureLayerToFeatureSet({layer:Pt,spatialReference:A.sr,interceptor:fe})}})}function PS(){return Promise.all([v.e(8592),v.e(4988)]).then(v.bind(v,4988))}function l8(d){return"createQuery"in d&&"queryFeatures"in d}function c8(d){return bM.apply(this,arguments)}function bM(){return(bM=(0,kr.Z)(function*({graphic:d,view:_}){const{isAggregate:T,layer:x}=d;if(!T||!x||"2d"!==_?.type)return[];const A=yield _.whenLayerView(x);if(!l8(A))return[];const U=A.createQuery();U.aggregateIds=[d.getObjectId()];const{features:ne}=yield A.queryFeatures(U);return ne})).apply(this,arguments)}function OS(d){return CM.apply(this,arguments)}function CM(){return(CM=(0,kr.Z)(function*({expressionInfo:d,arcadeUtils:_,interceptor:T,spatialReference:x,map:A,graphic:U,view:ne}){if(!d||!d.expression)return null;const fe=_.createSyntaxTree(d.expression),Oe=t8.filter(dt=>_.hasVariable(fe,dt)),[we]=yield Promise.all([c8({graphic:U,view:ne}),_.loadScriptDependencies(fe,!0,Oe)]),Ze=_.getViewInfo({spatialReference:x}),it=_.createExecContext(U,Ze);it.interceptor=T,it.useAsync=!0,a8({aggregatedFeatures:we,arcadeUtils:_,featureSetVars:Oe,context:it,viewInfo:Ze,map:A,graphic:U,interceptor:T});const lt=_.createFunction(fe,it);return _.executeAsyncFunction(lt,it).catch(dt=>s8.error("arcade-execution-error",{error:dt,graphic:U,expressionInfo:d}))})).apply(this,arguments)}function u8(d){return TM.apply(this,arguments)}function TM(){return(TM=(0,kr.Z)(function*({expressionInfos:d,spatialReference:_,graphic:T,interceptor:x,map:A,view:U}){if(!d||!d.length)return{};const ne=yield PS(),fe={};for(const Ze of d)fe[`expression/${Ze.name}`]=OS({expressionInfo:Ze,arcadeUtils:ne,interceptor:x,spatialReference:_,map:A,graphic:T,view:U});const Oe=yield(0,ws.as)(fe),we={};for(const Ze in Oe)we[Ze]=i8(Oe[Ze].value);return we})).apply(this,arguments)}let pc=class extends((0,Ip.p)(Ns.Z)){constructor(d){var _;super(d),_=this,this._abortController=null,this.expressionInfo=null,this.graphic=null,this.contentElement=null,this.contentElementViewModel=null,this.interceptor=null,this.view=null,this._cancelQuery=()=>{const{_abortController:T}=this;T&&T.abort(),this._abortController=null},this._createVM=()=>{const T=this.contentElement?.type;this.contentElementViewModel?.destroy();const x="fields"===T?new Nv:"media"===T?new Lp:"text"===T?new jv:null;this._set("contentElementViewModel",x)},this._compile=(0,kr.Z)(function*(){_._cancelQuery();const T=new AbortController;_._abortController=T,yield _._compileExpression(),_._abortController===T&&(_._abortController=null)}),this._compileThrottled=c_(this._compile,1,this),this._compileExpression=(0,kr.Z)(function*(){const{expressionInfo:T,graphic:x,interceptor:A,spatialReference:U,map:ne,view:fe,_abortController:Oe}=_;if(!(T&&x&&U&&ne))return void _._set("contentElement",null);const we=yield PS();if(Oe!==_._abortController)return;const Ze=yield OS({arcadeUtils:we,expressionInfo:T,graphic:x,interceptor:A,map:ne,spatialReference:U,view:fe});if(!Ze||"esri.arcade.Dictionary"!==Ze.declaredClass)return void _._set("contentElement",null);const it=yield Ze.castAsJsonAsync(Oe.signal),lt=it?.type,dt="media"===lt?q6.Z.fromJSON(it):"text"===lt?MS.Z.fromJSON(it):"fields"===lt?Q6.Z.fromJSON(it):null;_._set("contentElement",dt)}),this.handles.add([(0,Ht.YP)(()=>[this.expressionInfo,this.graphic,this.map,this.spatialReference,this.view],()=>this._compileThrottled(),Ht.nn),(0,Ht.YP)(()=>[this.contentElement],()=>this._createVM(),Ht.nn)])}destroy(){this._cancelQuery(),this.contentElementViewModel?.destroy(),this._set("contentElementViewModel",null),this._set("contentElement",null)}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(d){this._override("spatialReference",d)}get state(){const{_abortController:d,contentElement:_,contentElementViewModel:T}=this;return d?"loading":_||T?"ready":"disabled"}get map(){return this.view?.map??null}set map(d){this._override("map",d)}};(0,Ve._)([(0,ke.Cb)()],pc.prototype,"_abortController",void 0),(0,Ve._)([(0,ke.Cb)({type:e8.Z})],pc.prototype,"expressionInfo",void 0),(0,Ve._)([(0,ke.Cb)({type:fd.Z})],pc.prototype,"graphic",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],pc.prototype,"contentElement",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],pc.prototype,"contentElementViewModel",void 0),(0,Ve._)([(0,ke.Cb)()],pc.prototype,"interceptor",void 0),(0,Ve._)([(0,ke.Cb)()],pc.prototype,"spatialReference",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],pc.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],pc.prototype,"map",null),(0,Ve._)([(0,ke.Cb)()],pc.prototype,"view",void 0),pc=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureExpression.FeatureExpressionViewModel")],pc);const MM=pc;let Gv=class extends ua.Z{constructor(d,_){super(d,_),this.viewModel=new MM}initialize(){this.addHandles((0,Ht.YP)(()=>this.viewModel?.contentElementViewModel,()=>this._setupExpressionWidget(),Ht.nn))}destroy(){this._destroyContentWidget()}renderLoading(){return(0,Yt.u)("div",{key:"loading-container",class:"esri-feature__loading-container"},(0,Yt.u)("span",{class:this.classes("esri-icon-loading-indicator esri-rotating","esri-feature__loading-spinner")}))}render(){const{state:d}=this.viewModel;return(0,Yt.u)("div",{class:"esri-feature-expression"},"loading"===d?this.renderLoading():"disabled"===d?null:this._contentWidget?.render())}_destroyContentWidget(){const{_contentWidget:d}=this;d&&(d.viewModel=null,d.destroy()),this._contentWidget=null}_setupExpressionWidget(){const{contentElementViewModel:d,contentElement:_}=this.viewModel,T=_?.type;this._destroyContentWidget();const x=d?"fields"===T?new sS({viewModel:d}):"media"===T?new TS({viewModel:d}):"text"===T?new Fv({viewModel:d}):null:null;this._contentWidget=x,this.scheduleRender()}};(0,Ve._)([(0,ke.Cb)({type:MM})],Gv.prototype,"viewModel",void 0),Gv=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureExpression")],Gv);const h8=Gv;var xS=v(61996);let eo=class extends((0,OD.J)((0,xS.IG)((0,Ip.p)(Ns.Z)))){constructor(d){var _;super(d),_=this,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featuresPerPage=10,this.description=null,this.graphic=null,this.layer=null,this.map=null,this.orderByFields=null,this.featureCount=0,this.relationshipId=null,this.showAllEnabled=!1,this.title=null,this._cancelQuery=()=>{const{_queryAbortController:T}=this;T&&T.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{const{_queryFeatureCountAbortController:T}=this;T&&T.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{const{_queryPageAbortController:T}=this;T&&T.abort(),this._queryPageAbortController=null},this._queryController=(0,kr.Z)(function*(){_._cancelQuery();const T=new AbortController;_._queryAbortController=T,yield(0,ws.R8)(_._query()),_._queryAbortController===T&&(_._queryAbortController=null)}),this._queryFeatureCountController=(0,kr.Z)(function*(){_._cancelQueryFeatureCount();const T=new AbortController;_._queryFeatureCountAbortController=T,yield(0,ws.R8)(_._queryFeatureCount()),_._queryFeatureCountAbortController===T&&(_._queryFeatureCountAbortController=null)}),this._queryPageController=(0,kr.Z)(function*(){const T=new AbortController;_._queryPageAbortController=T,yield(0,ws.R8)(_._queryPage()),_._queryPageAbortController===T&&(_._queryPageAbortController=null)}),this._queryThrottled=c_(this._queryController,100,this),this._queryFeatureCountThrottled=c_(this._queryFeatureCountController,100,this),this._queryPageThrottled=c_(this._queryPageController,100,this),this._query=(0,kr.Z)(function*(){const{_queryAbortController:T,relatedFeatures:x}=_;_._destroyRelatedFeatureViewModels(),_.featurePage=1,x.removeAll(),x.addMany(_._sliceFeatures(yield _._queryRelatedFeatures({signal:T?.signal})))}),this.handles.add([(0,Ht.YP)(()=>[this.displayCount,this.graphic,this.layer,this.map,this.orderByFieldsFixedCasing,this.relationshipId,this.featuresPerPage,this.showAllEnabled],()=>this._queryThrottled(),Ht.nn),(0,Ht.YP)(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageThrottled()),(0,Ht.YP)(()=>[this.layer,this.relationshipId,this.objectId],()=>this._queryFeatureCountThrottled())])}destroy(){this._destroyRelatedFeatureViewModels(),this.relatedFeatures.removeAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage()}set featurePage(d){const{featuresPerPage:_,featureCount:T}=this,A=Math.ceil(T/_)||1;this._set("featurePage",Math.min(Math.max(d,1),A))}get featurePage(){return this._get("featurePage")}get orderByFieldsFixedCasing(){const{orderByFields:d,relatedLayer:_}=this;return d&&_?.loaded?d.map(T=>{const x=T.clone(),A=Um(T.field,_);return x.field=A,x}):d}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing?.[0]?.field||null}set displayCount(d){this._set("displayCount",Math.min(Math.max(d,0),10))}get displayCount(){return this._get("displayCount")}get objectId(){return this.graphic?.attributes?.[this.objectIdField]??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedFeatures(){return this._get("relatedFeatures")||new On.Z}get relatedLayer(){const{layer:d,map:_,relationship:T}=this;return d?.loaded?function Z4(d,_,T){return d&&_&&T?kD(d.allLayers,_,T)||kD(d.allTables,_,T):null}(_,d,T):null}get relationship(){const{relationshipId:d,layer:_}=this;return"number"==typeof d?_?.relationships?.find(({id:T})=>T===d)??null:null}get relatedFeatureViewModels(){return this._get("relatedFeatureViewModels")||new On.Z}get state(){const{_queryAbortController:d,_queryFeatureCountAbortController:_,_queryPageAbortController:T,graphic:x,relatedLayer:A}=this;return _?"loading":d||T?"querying":x&&A?"ready":"disabled"}_destroyRelatedFeatureViewModels(){this.relatedFeatureViewModels?.forEach(d=>!d.destroyed&&d.destroy()),this.relatedFeatureViewModels.removeAll()}_queryFeatureCount(){var d=this;return(0,kr.Z)(function*(){const{layer:_,relatedLayer:T,relationshipId:x,objectId:A,_queryFeatureCountAbortController:U}=d;if(yield _?.load(),!T||"number"!=typeof A||!_?.capabilities?.queryRelated?.supportsCount)return void d._set("featureCount",0);yield T.load();const ne=T.createQuery(),Oe=new pM.Z({cacheHint:_.capabilities?.queryRelated?.supportsCacheHint??!1,relationshipId:x,returnGeometry:!1,objectIds:[A],where:ne.where}),we=yield _.queryRelatedFeaturesCount(Oe,{signal:U?.signal});d._set("featureCount",we[A]||0)})()}_sliceFeatures(d){const{showAllEnabled:_,displayCount:T}=this;return _?d:T?d.slice(0,T):[]}_queryPage(){var d=this;return(0,kr.Z)(function*(){const{relatedFeatures:_,featurePage:T,showAllEnabled:x,_queryPageAbortController:A}=d;!x||T<2||_.addMany(yield d._queryRelatedFeatures({signal:A?.signal}))})()}_queryRelatedFeatures(d){var _=this;return(0,kr.Z)(function*(){const{orderByFieldsFixedCasing:T,showAllEnabled:x,featuresPerPage:A,displayCount:U,layer:ne,relationshipId:fe,featurePage:Oe,featureCount:we,relatedLayer:Ze}=_;yield ne?.load();const{relationship:it,objectId:lt}=_;if(!it||"number"!=typeof lt||!ne?.capabilities?.queryRelated?.supportsPagination)return[];const dt=x?((Oe-1)*A+we)%we:0,Tt=x?A:U;if(!Ze)return[];yield Ze.load();const mt=Ze.objectIdField,Mt=[...T?.map(Jt=>Jt.field),mt],Pt=T?.map(Jt=>`${Jt.field} ${Jt.order}`),Nt=ne.capabilities?.queryRelated?.supportsCacheHint||!1,Bt=Ze.createQuery(),Zt=new pM.Z({orderByFields:Pt,start:dt,num:Tt,outFields:Mt,cacheHint:Nt,relationshipId:fe,returnGeometry:!1,objectIds:[lt],where:Bt.where}),nr=(yield ne.queryRelatedFeatures(Zt,{signal:d?.signal}))[lt]?.features||[];return nr.forEach(Jt=>Jt.sourceLayer=Ze),nr})()}};(0,Ve._)([(0,ke.Cb)()],eo.prototype,"_queryAbortController",void 0),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"_queryPageAbortController",void 0),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"_queryFeatureCountAbortController",void 0),(0,Ve._)([(0,ke.Cb)({value:1})],eo.prototype,"featurePage",null),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"featuresPerPage",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"orderByFieldsFixedCasing",null),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"description",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"itemDescriptionFieldName",null),(0,Ve._)([(0,ke.Cb)({value:3})],eo.prototype,"displayCount",null),(0,Ve._)([(0,ke.Cb)({type:fd.Z})],eo.prototype,"graphic",void 0),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"layer",void 0),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"map",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"objectId",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"objectIdField",null),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"orderByFields",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"relatedFeatures",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"relatedLayer",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"relationship",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"featureCount",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"relatedFeatureViewModels",null),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"relationshipId",void 0),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"showAllEnabled",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],eo.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],eo.prototype,"title",void 0),eo=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureRelationship.FeatureRelationshipViewModel")],eo);const OM=eo;var _c=v(97059);const DS={title:!0,description:!0};let Cl=class extends ua.Z{constructor(d,_){super(d,_),this._featureElementInfo=null,this._relatedFeatureIntersectionObserver=new IntersectionObserver(([T])=>{T?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this.headingLevel=2,this.viewModel=new OM,this.messages=null,this.messagesCommon=null,this.visibleElements={...DS},this._increaseFeaturePage=()=>{const{state:T,showAllEnabled:x,relatedFeatures:A,featuresPerPage:U,featurePage:ne}=this.viewModel;"ready"===T&&x&&A.length>=U*ne&&this.viewModel.featurePage++}}initialize(){this._featureElementInfo=new Bv,this.addHandles([(0,Ht.YP)(()=>[this.viewModel.description,this.viewModel.title,this.headingLevel],()=>this._setupFeatureElementInfo(),Ht.nn),(0,Ht.YP)(()=>[this.viewModel.state,this.viewModel.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),(0,Ht.on)(()=>this.viewModel.relatedFeatureViewModels,"change",()=>this._setupRelatedFeatureViewModels())])}loadDependencies(){return Promise.all([v.e(9986).then(v.bind(v,79986)),Promise.all([v.e(8592),v.e(4786)]).then(v.bind(v,37591)),v.e(8472).then(v.bind(v,8472)),Promise.all([v.e(8592),v.e(9325)]).then(v.bind(v,9325))])}destroy(){this._unobserveRelatedFeatureObserver(),this._featureElementInfo=(0,Qe.SC)(this._featureElementInfo)}get displayShowAllButton(){const{showAllEnabled:d,featureCount:_,displayCount:T}=this.viewModel;return!d&&(_>T||0===T)}get displayListItems(){return this.displayShowAllButton||this.viewModel.relatedFeatureViewModels.length>0}get description(){return this.viewModel.description}set description(d){this.viewModel.description=d}get featureCountDescription(){const{messages:d}=this,{featureCount:_}=this.viewModel;return(0,_c.n)(1===_?d?.numberRecord:d?.numberRecords,{number:_})}get title(){return this.viewModel.title}set title(d){this.viewModel.title=d}castVisibleElements(d){return{...DS,...d}}renderStickyLoading(){return"querying"===this.viewModel.state?(0,Yt.u)("div",{key:"sticky-loader",class:"esri-feature__sticky-loading-container"},this.renderLoadingIcon()):null}renderLoadingIcon(){return(0,Yt.u)("span",{class:this.classes("esri-icon-loading-indicator esri-rotating","esri-feature__loading-spinner")})}renderLoading(){return(0,Yt.u)("div",{key:"loading-container",class:"esri-feature__loading-container"},this.renderLoadingIcon())}renderShowAllIconNode(){return(0,Yt.u)("calcite-icon",{scale:"s",icon:"list",slot:"content-end"})}renderChevronIconNode(){const d=(0,uo.dZ)(this.container)?"chevron-left":"chevron-right";return(0,Yt.u)("calcite-icon",{scale:"s",icon:d,slot:"content-end"})}renderRelatedFeature(d){const{itemDescriptionFieldName:_}=this.viewModel,T=d.title;d.description=_&&d.formattedAttributes?.global[_];const x="loading"===d.state;return(0,Yt.u)("calcite-list-item",{key:d.uid,label:x?`${this.messagesCommon?.loading}\u2026`:T,description:x?"\u2026":d.description,onclick:()=>this.emit("select-record",{featureViewModel:d})},this.renderChevronIconNode())}renderShowAllListItem(){return this.displayShowAllButton?(0,Yt.u)("calcite-list-item",{key:"show-all-item",label:this.messages?.showAll,description:this.featureCountDescription,onclick:()=>this.emit("show-all-records")},this.renderShowAllIconNode()):null}renderNoRelatedFeaturesMessage(){return(0,Yt.u)("calcite-notice",{key:"no-related-features-message",icon:"information",open:!0,color:"blue",scale:"s",width:"full"},(0,Yt.u)("div",{slot:"message"},this.messages?.noRelatedFeatures))}renderFeatureObserver(){return(0,Yt.u)("div",{key:"feature-observer",class:"esri-feature__feature-observer",bind:this,afterCreate:this._relatedFeatureIntersectionObserverCreated})}renderList(){const{relatedFeatureViewModels:d}=this.viewModel;return(0,Yt.u)("calcite-list",null,d.toArray().map(_=>this.renderRelatedFeature(_)),this.renderShowAllListItem())}renderRelatedFeatures(){const{displayListItems:d}=this,{state:_}=this.viewModel;return(0,Yt.u)("div",{key:"list-container",class:this.classes("esri-feature-relationship__list",{"esri-feature-relationship__list--querying":"querying"===_})},d?this.renderList():"ready"===_?this.renderNoRelatedFeaturesMessage():null,this.renderStickyLoading(),this.renderFeatureObserver())}renderRelationshipNotFound(){return(0,Yt.u)("calcite-notice",{key:"relationship-not-found",icon:"exclamation-mark-triangle",open:!0,color:"red",scale:"s",width:"full"},(0,Yt.u)("div",{slot:"message"},this.messages?.relationshipNotFound))}render(){const{state:d}=this.viewModel;return(0,Yt.u)("div",{class:this.classes("esri-feature-relationship","esri-widget")},this._featureElementInfo?.render(),"loading"===d?this.renderLoading():"disabled"===d?this.renderRelationshipNotFound():this.renderRelatedFeatures())}_setupRelatedFeatureViewModels(){const{relatedFeatureViewModels:d}=this.viewModel,_="related-feature-viewmodels";this.removeHandles(_),d?.forEach(T=>{this.addHandles((0,Ht.YP)(()=>[T.title,T.state],()=>this.scheduleRender(),Ht.nn),_)}),this.scheduleRender()}_setupFeatureElementInfo(){const{headingLevel:d,visibleElements:_}=this;this._featureElementInfo.set({description:_.description&&this.description,title:_.title&&this.title,headingLevel:d})}_handleRelatedFeatureObserverChange(){var d=this;return(0,kr.Z)(function*(){d._unobserveRelatedFeatureObserver();const{state:_,showAllEnabled:T}=d.viewModel;yield(0,ws.e4)(0),d._relatedFeatureIntersectionObserverNode&&"ready"===_&&T&&d._relatedFeatureIntersectionObserver.observe(d._relatedFeatureIntersectionObserverNode)})()}_relatedFeatureIntersectionObserverCreated(d){this._relatedFeatureIntersectionObserverNode=d}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode)}};(0,Ve._)([(0,ke.Cb)()],Cl.prototype,"_relatedFeatureIntersectionObserverNode",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Cl.prototype,"displayShowAllButton",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Cl.prototype,"displayListItems",null),(0,Ve._)([(0,ke.Cb)()],Cl.prototype,"description",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Cl.prototype,"featureCountDescription",null),(0,Ve._)([(0,ke.Cb)()],Cl.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)()],Cl.prototype,"title",null),(0,Ve._)([(0,ke.Cb)({type:OM})],Cl.prototype,"viewModel",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Feature/t9n/Feature")],Cl.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/t9n/common")],Cl.prototype,"messagesCommon",void 0),(0,Ve._)([(0,ke.Cb)()],Cl.prototype,"visibleElements",void 0),(0,Ve._)([(0,ko.p)("visibleElements")],Cl.prototype,"castVisibleElements",null),Cl=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.FeatureRelationship")],Cl);const SS=Cl;var Hm;const AS="content-view-models",RS="relationship-view-models",wS={attachmentsContent:!0,chartAnimation:!0,customContent:!0,expressionContent:!0,fieldsContent:!0,mediaContent:!0,textContent:!0,relationshipContent:!0};let ho=Hm=class extends((0,xS.IG)(Ns.Z)){constructor(d){super(d),this._handles=new Ji.Z,this._error=null,this._featureAbortController=null,this._graphicChangedThrottled=c_(this._graphicChanged,1,this),this._expressionAttributes=null,this._graphicExpressionAttributes=null,this.abilities={...wS},this.content=null,this.contentViewModels=[],this.description=null,this.defaultPopupTemplateEnabled=!1,this.formattedAttributes=null,this.lastEditInfo=null,this.relatedInfos=new Map,this.title="",this.view=null,this._isAllowedContentType=_=>{const{abilities:T}=this;return"attachments"===_.type&&T.attachmentsContent||"custom"===_.type&&T.customContent||"fields"===_.type&&T.fieldsContent||"media"===_.type&&T.mediaContent||"text"===_.type&&T.textContent||"expression"===_.type&&T.expressionContent||"relationship"===_.type&&T.relationshipContent},this._handles.add((0,Ht.YP)(()=>[this.graphic,this._effectivePopupTemplate,this.abilities],()=>this._graphicChangedThrottled(),Ht.nn))}destroy(){this._clear(),this._cancelFeatureQuery(),this._error=null,this._handles.destroy(),this._handles=null,this.graphic=null,this._destroyContentViewModels(),this.relatedInfos.clear()}get _effectivePopupTemplate(){return(0,Qe.pC)(this.graphic)?this.graphic.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled):null}get _fieldInfoMap(){return function F4(d,_){const T=new Map;return d&&d.forEach(x=>{const A=Um(x.fieldName,_);x.fieldName=A,T.set(A.toLowerCase(),x)}),T}(KD(this._effectivePopupTemplate),this._sourceLayer)}get _sourceLayer(){return ND(this.graphic)}castAbilities(d){return{...wS,...d}}get state(){return this.graphic?this._error?"error":this.waitingForContent?"loading":"ready":"disabled"}set graphic(d){this._set("graphic",d?d.clone():null)}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(d){this._override("spatialReference",d)}get map(){return this.view?.map||null}set map(d){this._override("map",d)}get waitingForContent(){return!!this._featureAbortController}setActiveMedia(d,_){const T=this.contentViewModels[d];T instanceof Lp&&T.setActiveMedia(_)}nextMedia(d){const _=this.contentViewModels[d];_ instanceof Lp&&_.next()}previousMedia(d){const _=this.contentViewModels[d];_ instanceof Lp&&_.previous()}_clear(){this._set("title",""),this._set("content",null),this._set("formattedAttributes",null)}_graphicChanged(){var d=this;return(0,kr.Z)(function*(){d._cancelFeatureQuery(),d._error=null,d._clear();const{graphic:_}=d;if(!_)return;const T=new AbortController;d._featureAbortController=T;try{yield d._queryFeature({signal:T.signal})}catch(x){(0,ws.D_)(x)||(d._error=x,Us.Z.getLogger(d.declaredClass).error("error","The popupTemplate could not be displayed for this feature.",{error:x,graphic:_,popupTemplate:d._effectivePopupTemplate}))}d._featureAbortController===T&&(d._featureAbortController=null)})()}_cancelFeatureQuery(){const{_featureAbortController:d}=this;d&&d.abort(),this._featureAbortController=null}_compileContentElement(d,_){return"attachments"===d.type?this._compileAttachments(d,_):"custom"===d.type?this._compileCustom(d,_):"fields"===d.type?this._compileFields(d,_):"media"===d.type?this._compileMedia(d,_):"text"===d.type?this._compileText(d,_):"expression"===d.type?this._compileExpression(d,_):"relationship"===d.type?this._compileRelationship(d,_):void 0}_compileContent(d){if(this._destroyContentViewModels(),this.graphic)return Array.isArray(d)?d.filter(this._isAllowedContentType).map((_,T)=>this._compileContentElement(_,T)):"string"==typeof d?this._compileText(new MS.Z({text:d}),0).text:d}_destroyContentViewModels(){this._handles?.remove(RS),this._handles?.remove(AS),this.contentViewModels.forEach(d=>d&&!d.destroyed&&d.destroy()),this._set("contentViewModels",[])}_matchesFeature(d,_){const T=d?.graphic?.getObjectId(),x=_?.getObjectId();return(0,Qe.pC)(T)&&(0,Qe.pC)(x)&&T===x}_setRelatedFeaturesViewModels({relatedFeatureViewModels:d,relatedFeatures:_,map:T}){_?.filter(Boolean).forEach(x=>{d.find(A=>this._matchesFeature(A,x))||d.add(new Hm({abilities:{relationshipContent:!1},map:T,graphic:x}))}),d.forEach(x=>{_?.find(U=>this._matchesFeature(x,U))||d.remove(x)})}_setExpressionContentVM(d,_){const{formattedAttributes:T}=this,{contentElement:x,contentElementViewModel:A}=d,U=x?.type;A&&U&&("fields"===U&&(this._createFieldsFormattedAttributes({contentElement:x,contentElementIndex:_,formattedAttributes:T}),A.set(this._createFieldsVMParams(x,_))),"media"===U&&(this._createMediaFormattedAttributes({contentElement:x,contentElementIndex:_,formattedAttributes:T}),A.set(this._createMediaVMParams(x,_))),"text"===U&&A.set(this._createTextVMParams(x)))}_compileRelationship(d,_){const{displayCount:T,orderByFields:x,relationshipId:A,title:U,description:ne}=d,{_sourceLayer:fe,graphic:Oe,map:we}=this,Ze=new OM({displayCount:T,graphic:Oe,orderByFields:x,relationshipId:A,layer:fe,map:we,...this._compileTitleAndDesc({title:U,description:ne})});return this.contentViewModels[_]=Ze,this._handles.add((0,Ht.on)(()=>Ze.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels(Ze)),RS),d}_compileExpression(d,_){const{expressionInfo:T}=d,{graphic:x,map:A,spatialReference:U,view:ne}=this,fe=new MM({expressionInfo:T,graphic:x,interceptor:Hm.interceptor,map:A,spatialReference:U,view:ne});return this.contentViewModels[_]=fe,this._handles.add((0,Ht.YP)(()=>fe.contentElementViewModel,()=>this._setExpressionContentVM(fe,_),Ht.nn),AS),d}_compileAttachments(d,_){const{graphic:T}=this,{description:x,title:A}=d;return this.contentViewModels[_]=new JT({graphic:T,...this._compileTitleAndDesc({title:A,description:x})}),d}_compileCustom(d,_){const{graphic:T}=this,{creator:x,destroyer:A}=d;return this.contentViewModels[_]=new jv({graphic:T,creator:x,destroyer:A}),d}_compileTitleAndDesc({title:d,description:_}){const{_fieldInfoMap:T,_sourceLayer:x,graphic:A,formattedAttributes:U,_expressionAttributes:ne}=this,{attributes:fe}=A,Oe=U.global;return{title:Rp({attributes:fe,fieldInfoMap:T,globalAttributes:Oe,expressionAttributes:ne,layer:x,text:d}),description:Rp({attributes:fe,fieldInfoMap:T,globalAttributes:Oe,expressionAttributes:ne,layer:x,text:_})}}_createFieldsVMParams(d,_){const{_effectivePopupTemplate:T,formattedAttributes:x}=this,A={...x.global,...x.content[_]},U=(d?.fieldInfos||T?.fieldInfos)?.filter(({fieldName:we})=>WT(we)||yd(we)||A.hasOwnProperty(we)),ne=T?.expressionInfos,{description:fe,title:Oe}=d;return{attributes:A,expressionInfos:ne,fieldInfos:U,...this._compileTitleAndDesc({title:Oe,description:fe})}}_compileFields(d,_){const T=d.clone(),x=new Nv(this._createFieldsVMParams(d,_));return this.contentViewModels[_]=x,T.fieldInfos=x.formattedFieldInfos.slice(0),T}_createMediaVMParams(d,_){const{abilities:T,graphic:x,_fieldInfoMap:A,formattedAttributes:U,_effectivePopupTemplate:ne,relatedInfos:fe,_sourceLayer:Oe,_expressionAttributes:we}=this,{attributes:Ze}=x,{description:it,mediaInfos:lt,title:dt}=d;return{abilities:{chartAnimation:T.chartAnimation},activeMediaInfoIndex:d.activeMediaInfoIndex||0,attributes:Ze,layer:Oe,fieldInfoMap:A,formattedAttributes:{...U.global,...U.content[_]},expressionAttributes:we,mediaInfos:lt,popupTemplate:ne,relatedInfos:fe,...this._compileTitleAndDesc({title:dt,description:it})}}_compileMedia(d,_){const T=d.clone(),x=new Lp(this._createMediaVMParams(d,_));return T.mediaInfos=x.formattedMediaInfos.slice(0),this.contentViewModels[_]=x,T}_createTextVMParams(d){const{graphic:_,_fieldInfoMap:T,_sourceLayer:x,_expressionAttributes:A}=this;if(d&&d.text){const{attributes:U}=_;d.text=Rp({attributes:U,fieldInfoMap:T,globalAttributes:this.formattedAttributes.global,expressionAttributes:A,layer:x,text:d.text})}return{graphic:_,creator:d.text}}_compileText(d,_){const T=d.clone();return this.contentViewModels[_]=new jv(this._createTextVMParams(T)),T}_compileLastEditInfo(){const{_effectivePopupTemplate:d,_sourceLayer:_,graphic:T}=this;if(!d)return;const{lastEditInfoEnabled:x}=d,A=_?.editFieldsInfo;return x&&A?function j4(d,_){const{creatorField:T,creationDateField:x,editorField:A,editDateField:U}=d;if(!_)return;const ne=_[U];if("number"==typeof ne){const Oe=_[A];return{type:"edit",date:(0,Ap.p6)(ne,FT),user:Oe}}const fe=_[x];if("number"==typeof fe){const Oe=_[T];return{type:"create",date:(0,Ap.p6)(fe,FT),user:Oe}}return null}(A,T.attributes):void 0}_compileTitle(d){const{_fieldInfoMap:_,_sourceLayer:T,graphic:x,_expressionAttributes:A}=this,{attributes:U}=x;return Rp({attributes:U,fieldInfoMap:_,globalAttributes:this.formattedAttributes.global,expressionAttributes:A,layer:T,text:d})}_getTitle(){var d=this;return(0,kr.Z)(function*(){const{_effectivePopupTemplate:_,graphic:T}=d,x=_?.title;return Lv(x,{graphic:T})})()}_getContent(){var d=this;return(0,kr.Z)(function*(){const{_effectivePopupTemplate:_,graphic:T}=d,x=_?.content;return Lv(x,{graphic:T})})()}_queryFeature(d){var _=this;return(0,kr.Z)(function*(){const{_featureAbortController:T,_sourceLayer:x,graphic:A,_effectivePopupTemplate:U,spatialReference:ne,map:fe,view:Oe}=_;if(T!==_._featureAbortController||!A)return;yield function V4(d,_){return YT.apply(this,arguments)}({graphic:A,popupTemplate:U,layer:x,spatialReference:ne},d);const{content:{value:we},title:{value:Ze}}=yield(0,ws.as)({content:_._getContent(),title:_._getTitle()}),{expressionAttributes:{value:it}}=yield(0,ws.as)({checkForRelatedFeatures:_._checkForRelatedFeatures(d),expressionAttributes:u8({expressionInfos:U?.expressionInfos,spatialReference:ne,graphic:A,map:fe,interceptor:Hm.interceptor,view:Oe})});T===_._featureAbortController&&A&&(_._expressionAttributes=it,_._graphicExpressionAttributes={...A.attributes,...it},_._set("formattedAttributes",_._createFormattedAttributes(we)),_._set("title",_._compileTitle(Ze)),_._set("lastEditInfo",_._compileLastEditInfo()||null),_._set("content",_._compileContent(we)||null))})()}_createMediaFormattedAttributes({contentElement:d,contentElementIndex:_,formattedAttributes:T}){const{_effectivePopupTemplate:x,graphic:A,relatedInfos:U,_sourceLayer:ne,_fieldInfoMap:fe,_graphicExpressionAttributes:Oe}=this;T.content[_]=KT({fieldInfos:x?.fieldInfos,graphic:A,attributes:{...Oe,...d.attributes},layer:ne,fieldInfoMap:fe,relatedInfos:U})}_createFieldsFormattedAttributes({contentElement:d,contentElementIndex:_,formattedAttributes:T}){if(d.fieldInfos){const{graphic:x,relatedInfos:A,_sourceLayer:U,_fieldInfoMap:ne,_graphicExpressionAttributes:fe}=this;T.content[_]=KT({fieldInfos:d.fieldInfos,graphic:x,attributes:{...fe,...d.attributes},layer:U,fieldInfoMap:ne,relatedInfos:A})}}_createFormattedAttributes(d){const{_effectivePopupTemplate:_,graphic:T,relatedInfos:x,_sourceLayer:A,_fieldInfoMap:U,_graphicExpressionAttributes:ne}=this,fe=_?.fieldInfos,Oe={global:KT({fieldInfos:fe,graphic:T,attributes:ne,layer:A,fieldInfoMap:U,relatedInfos:x}),content:[]};return Array.isArray(d)&&d.forEach((we,Ze)=>{"fields"===we.type&&this._createFieldsFormattedAttributes({contentElement:we,contentElementIndex:Ze,formattedAttributes:Oe}),"media"===we.type&&this._createMediaFormattedAttributes({contentElement:we,contentElementIndex:Ze,formattedAttributes:Oe})}),Oe}_checkForRelatedFeatures(d){const{graphic:_,_effectivePopupTemplate:T}=this;return this._queryRelatedInfos(_,KD(T),d)}_queryRelatedInfos(d,_,T){var x=this;return(0,kr.Z)(function*(){const{relatedInfos:A,_sourceLayer:U}=x;A.clear();const ne=(0,Qe.pC)(U.associatedLayer)?yield U.associatedLayer.load(T):U;if(!ne)return;const fe=_.filter(Ze=>Ze&&yd(Ze.fieldName));if(!fe||!fe.length)return;_.forEach(Ze=>x._configureRelatedInfo(Ze,ne));const Oe=yield function F6({relatedInfos:d,layer:_},T){const x={};return d.forEach((A,U)=>{const{relation:ne}=A;if(!ne){const it=new ai.Z("relation-required","A relation is required on a layer to retrieve related records.");throw fS.error(it),it}const{relatedTableId:fe}=ne;if("number"!=typeof fe){const it=new ai.Z("A related table ID is required on a layer to retrieve related records.");throw fS.error(it),it}const Oe=`${_.url}/${fe}`,we=mS.get(Oe),Ze=we||function j6(d,_){return(0,cM.default)(d,{query:{f:"json"},signal:_&&_.signal})}(Oe,T);we||mS.set(Oe,Ze),x[U]=Ze}),(0,ws.as)(x)}({relatedInfos:A,layer:ne},T);Object.keys(Oe).forEach(Ze=>{const it=A.get(Ze.toString()),lt=Oe[Ze]?.value;it&<&&(it.layerInfo=lt.data)});const we=yield function N6({graphic:d,relatedInfos:_,layer:T},x){const A={};return _.forEach((U,ne)=>{U.layerInfo&&(A[ne]=function B6(d,_,T,x){return fM.apply(this,arguments)}(d,U,T,x))}),(0,ws.as)(A)}({graphic:d,relatedInfos:A,layer:ne},T);Object.keys(we).forEach(Ze=>{!function I6(d,_){if(!_||!d)return;const{features:T,statsFeatures:x}=d,A=T&&T.value;_.relatedFeatures=A?A.features:[];const U=x&&x.value;_.relatedStatsFeatures=U?U.features:[]}(we[Ze]?.value,A.get(Ze.toString()))})})()}_configureRelatedInfo(d,_){const{relatedInfos:T}=this,x=_M(d.fieldName);if(!x)return;const{layerId:A,fieldName:U}=x;if(!A)return;const ne=T.get(A.toString())||function w6(d,_){const T=function S6(d,_){if(!_.relationships)return null;let T=null;const{relationships:x}=_;return x.some(A=>A.id===parseInt(d,10)&&(T=A,!0)),T}(d,_);if(T)return{url:`${_.url}/${T.relatedTableId}`,sourceSpatialReference:_.spatialReference,relation:T,relatedFields:[],outStatistics:[]}}(A,_);ne&&(function W6({relatedInfo:d,fieldName:_,fieldInfo:T}){if(d.relatedFields.push(_),T.statisticType){const x=new x6.Z({statisticType:T.statisticType,onStatisticField:_,outStatisticFieldName:_});d.outStatistics.push(x)}}({relatedInfo:ne,fieldName:U,fieldInfo:d}),this.relatedInfos.set(A,ne))}};ho.interceptor=new class p8{constructor(_,T){this.preLayerQueryCallback=_,this.preRequestCallback=T,this.preLayerQueryCallback||(this.preLayerQueryCallback=x=>{}),this.preRequestCallback||(this.preLayerQueryCallback=x=>{})}}(({query:d,layer:_,method:T})=>{XD({layer:_,method:T,query:d,definitionExpression:`${_.definitionExpression} ${_.serviceDefinitionExpression}`})},({queryPayload:d,layer:_,method:T})=>{XD({layer:_,method:T,query:d,definitionExpression:`${_.definitionExpression} ${_.serviceDefinitionExpression}`})}),(0,Ve._)([(0,ke.Cb)()],ho.prototype,"_error",void 0),(0,Ve._)([(0,ke.Cb)()],ho.prototype,"_featureAbortController",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"_effectivePopupTemplate",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"_fieldInfoMap",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"_sourceLayer",null),(0,Ve._)([(0,ke.Cb)()],ho.prototype,"abilities",void 0),(0,Ve._)([(0,ko.p)("abilities")],ho.prototype,"castAbilities",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"content",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"contentViewModels",void 0),(0,Ve._)([(0,ke.Cb)()],ho.prototype,"description",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],ho.prototype,"defaultPopupTemplateEnabled",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"state",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"formattedAttributes",void 0),(0,Ve._)([(0,ke.Cb)({type:fd.Z,value:null})],ho.prototype,"graphic",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"lastEditInfo",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"relatedInfos",void 0),(0,Ve._)([(0,ke.Cb)()],ho.prototype,"spatialReference",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"title",void 0),(0,Ve._)([(0,ke.Cb)()],ho.prototype,"map",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ho.prototype,"waitingForContent",null),(0,Ve._)([(0,ke.Cb)()],ho.prototype,"view",void 0),ho=Hm=(0,Ve._)([(0,Wr.j)("esri.widgets.FeatureViewModel")],ho);const xM=ho,bo_contentNode="esri-feature__content-node",bo_contentElement="esri-feature__content-element",IS=d=>{let _=class extends d{constructor(){super(...arguments),this.renderNodeContent=T=>(0,qT.Qd)(T)&&!T.destroyed?(0,Yt.u)("div",{class:bo_contentNode,key:T},T.render()):T instanceof HTMLElement?(0,Yt.u)("div",{class:bo_contentNode,key:T,bind:T,afterCreate:this._attachToNode}):(0,qT.o)(T)?(0,Yt.u)("div",{class:bo_contentNode,key:T,bind:T.domNode,afterCreate:this._attachToNode}):null}_attachToNode(T){T.appendChild(this)}};return _=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature.ContentMixin")],_),_};var DM;const LS={title:!0,content:!0,lastEditedInfo:!0},US="relationship-handles";let Da=DM=class extends(IS(ua.Z)){constructor(d,_){super(d,_),this._contentWidgets=[],this.flowItems=null,this.headingLevel=2,this.messages=null,this.messagesCommon=null,this.messagesURIUtils=null,this.visibleElements={...LS},this.viewModel=new xM}initialize(){this.addHandles((0,Ht.YP)(()=>this.viewModel?.contentViewModels,()=>this._setupContentWidgets(),Ht.nn))}loadDependencies(){return Promise.all([v.e(8592),v.e(9325)]).then(v.bind(v,9325))}destroy(){this._destroyContentWidgets()}get graphic(){return this.viewModel.graphic}set graphic(d){this.viewModel.graphic=d}get defaultPopupTemplateEnabled(){return this.viewModel.defaultPopupTemplateEnabled}set defaultPopupTemplateEnabled(d){this.viewModel.defaultPopupTemplateEnabled=d}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}get spatialReference(){return this.viewModel.spatialReference}set spatialReference(d){this.viewModel.spatialReference=d}get title(){return this.viewModel.title}castVisibleElements(d){return{...LS,...d}}get map(){return this.viewModel.map}set map(d){this.viewModel.map=d}get view(){return this.viewModel.view}set view(d){this.viewModel.view=d}render(){const{state:d}=this.viewModel,_=(0,Yt.u)("div",{class:"esri-feature__size-container",key:"container"},this.renderTitle(),"error"===d?this.renderError():"loading"===d?this.renderLoading():this.renderContentContainer());return(0,Yt.u)("div",{class:this.classes("esri-feature","esri-widget")},_)}setActiveMedia(d,_){return this.viewModel.setActiveMedia(d,_)}nextMedia(d){return this.viewModel.nextMedia(d)}previousMedia(d){return this.viewModel.previousMedia(d)}renderError(){const{messagesCommon:d,messages:_,visibleElements:T}=this;return(0,Yt.u)("calcite-notice",{active:!0,color:"red",icon:"exclamation-mark-circle",scale:"s"},T.title?(0,Yt.u)("div",{key:"error-title",slot:"title"},d.errorMessage):null,(0,Yt.u)("div",{key:"error-message",slot:"message"},_.loadingError))}renderLoading(){return(0,Yt.u)("div",{key:"loading-container",class:"esri-feature__loading-container"},(0,Yt.u)("span",{class:this.classes("esri-icon-loading-indicator esri-rotating","esri-feature__loading-spinner")}))}renderContentContainer(){const{visibleElements:d}=this;return d.content?(0,Yt.u)("div",{class:"esri-feature__main-container"},[this.renderContent(),this.renderLastEditInfo()]):null}renderTitle(){const{visibleElements:d,title:_}=this;return d.title?(0,Yt.u)(wp,{level:this.headingLevel,class:"esri-feature__title",innerHTML:_}):null}renderContent(){const d=this.viewModel.content,_="content";if(!d)return null;if(Array.isArray(d))return d.length?(0,Yt.u)("div",{class:bo_contentNode,key:`${_}-content-elements`},d.map(this.renderContentElement,this)):null;if("string"==typeof d){const T=this._contentWidgets[0];return!T||T.destroyed?null:(0,Yt.u)("div",{class:bo_contentNode,key:`${_}-content`},T.render())}return this.renderNodeContent(d)}renderContentElement(d,_){const{visibleElements:T}=this;if("boolean"!=typeof T.content&&!T.content[d.type])return null;switch(d.type){case"attachments":return this.renderAttachments(_);case"custom":return this.renderCustom(d,_);case"fields":return this.renderFields(_);case"media":return this.renderMedia(_);case"text":return this.renderText(d,_);case"expression":return this.renderExpression(_);case"relationship":return this.renderRelationship(_);default:return null}}renderAttachments(d){const _=this._contentWidgets[d];if(!_||_.destroyed)return null;const{state:T,attachmentInfos:x}=_.viewModel;return"loading"===T||x.length>0?(0,Yt.u)("div",{key:this._buildKey("attachments-element",d),class:this.classes(bo_contentElement)},_.render()):null}renderRelationship(d){const _=this._contentWidgets[d];return _&&!_.destroyed&&this.flowItems?(0,Yt.u)("div",{key:this._buildKey("relationship-element",d),class:bo_contentElement},_.render()):null}renderExpression(d){const _=this._contentWidgets[d];return!_||_.destroyed?null:(0,Yt.u)("div",{key:this._buildKey("expression-element",d),class:bo_contentElement},_.render())}renderCustom(d,_){const{creator:T}=d,x=this._contentWidgets[_];return!x||x.destroyed?null:T?(0,Yt.u)("div",{key:this._buildKey("custom-element",_),class:bo_contentElement},x.render()):null}renderFields(d){const _=this._contentWidgets[d];return!_||_.destroyed?null:(0,Yt.u)("div",{key:this._buildKey("fields-element",d),class:bo_contentElement},_.render())}renderMedia(d){const _=this._contentWidgets[d];return!_||_.destroyed?null:(0,Yt.u)("div",{key:this._buildKey("media-element",d),class:bo_contentElement},_.render())}renderLastEditInfo(){const{visibleElements:d,messages:_}=this,{lastEditInfo:T}=this.viewModel;if(!T||!d.lastEditedInfo)return null;const{date:x,user:A}=T,ne=(0,_c.n)("edit"===T.type?A?_.lastEditedByUser:_.lastEdited:A?_.lastCreatedByUser:_.lastCreated,{date:x,user:A});return(0,Yt.u)("div",{key:"edit-info-element",class:this.classes("esri-feature__last-edited-info",bo_contentElement)},ne)}renderText(d,_){const x=this._contentWidgets[_];return!x||x.destroyed?null:d.text?(0,Yt.u)("div",{key:this._buildKey("text-element",_),class:this.classes(bo_contentElement,"esri-feature__text")},x.render()):null}_buildKey(d,..._){return`${d}__${this.get("viewModel.graphic.uid")||"0"}-${_.join("-")}`}_destroyContentWidget(d){d&&(d.viewModel=null,!d.destroyed&&d.destroy())}_destroyContentWidgets(){this.removeHandles(US),this._contentWidgets.forEach(d=>this._destroyContentWidget(d)),this._contentWidgets=[]}_addFeatureRelationshipHandles(d){const{flowItems:_,visibleElements:T}=this;this.addHandles([(0,Ht.on)(()=>d,"select-record",({featureViewModel:x})=>{_&&(x.abilities={relationshipContent:!0},_.push(new DM({flowItems:_,viewModel:x,visibleElements:T})))}),(0,Ht.on)(()=>d,"show-all-records",()=>{if(!_)return;const{viewModel:x}=d;x.showAllEnabled=!0;const A=new SS({visibleElements:{title:!1,description:!1},viewModel:x});this._addFeatureRelationshipHandles(A),_.push(A)})],US)}_setupContentWidgets(){this._destroyContentWidgets();const{headingLevel:d,visibleElements:_}=this,T=this.get("viewModel.content"),{contentViewModels:x}=this.viewModel;if(Array.isArray(T))T.forEach((A,U)=>{if("attachments"===A.type&&(this._contentWidgets[U]=new Q4({displayType:A.displayType,headingLevel:_.title?d+1:d,viewModel:x[U]})),"fields"===A.type&&(this._contentWidgets[U]=new sS({viewModel:x[U]})),"media"===A.type&&(this._contentWidgets[U]=new TS({viewModel:x[U]})),"text"===A.type&&(this._contentWidgets[U]=new Fv({viewModel:x[U]})),"custom"===A.type&&(this._contentWidgets[U]=new Fv({viewModel:x[U]})),"expression"===A.type&&(this._contentWidgets[U]=new h8({viewModel:x[U]})),"relationship"===A.type){const ne=new SS({viewModel:x[U]});this._addFeatureRelationshipHandles(ne),this._contentWidgets[U]=ne}},this);else{const A=x[0];A&&!A.destroyed&&(this._contentWidgets[0]=new Fv({viewModel:A}))}this.scheduleRender()}};(0,Ve._)([(0,ke.Cb)()],Da.prototype,"graphic",null),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"defaultPopupTemplateEnabled",null),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"flowItems",void 0),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"label",null),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Feature/t9n/Feature")],Da.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/t9n/common")],Da.prototype,"messagesCommon",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/support/t9n/uriUtils")],Da.prototype,"messagesURIUtils",void 0),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"spatialReference",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Da.prototype,"title",null),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"visibleElements",void 0),(0,Ve._)([(0,ko.p)("visibleElements")],Da.prototype,"castVisibleElements",null),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"map",null),(0,Ve._)([(0,ke.Cb)()],Da.prototype,"view",null),(0,Ve._)([(0,ke.Cb)({type:xM})],Da.prototype,"viewModel",void 0),Da=DM=(0,Ve._)([(0,Wr.j)("esri.widgets.Feature")],Da);const f8=Da;var BS;const Kv=Symbol("anchorHandles");let Up=class extends Va.Z.EventedAccessor{constructor(d){super(d),this[BS]=new Ji.Z,this.location=null,this.screenLocationEnabled=!1,this.view=null,this[Kv].add([(0,Ht.gx)(()=>(0,Qe.yw)(this.screenLocationEnabled?this.view:null,_=>[_.size,"3d"===_.type?_.camera:_.viewpoint]),()=>this.notifyChange("screenLocation")),(0,Ht.YP)(()=>this.screenLocation,(_,T)=>{(0,Qe.pC)(_)&&(0,Qe.pC)(T)&&this.emit("view-change")})])}destroy(){this.view=null,this[Kv]=(0,Qe.SC)(this[Kv])}get screenLocation(){const{location:d,view:_,screenLocationEnabled:T}=this;return T&&(0,Qe.pC)(d)&&(0,Qe.pC)(_)&&_.ready?_.toScreen(d):null}};BS=Kv,(0,Ve._)([(0,ke.Cb)()],Up.prototype,"location",void 0),(0,Ve._)([(0,ke.Cb)()],Up.prototype,"screenLocation",null),(0,Ve._)([(0,ke.Cb)()],Up.prototype,"screenLocationEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],Up.prototype,"view",void 0),Up=(0,Ve._)([(0,Wr.j)("esri.widgets.support.AnchorElementViewModel")],Up);const jS=Up;let Zv=class extends jS{constructor(d){super(d),this.visible=!1}};(0,Ve._)([(0,ke.Cb)()],Zv.prototype,"visible",void 0),Zv=(0,Ve._)([(0,Wr.j)("esri.widgets.CompassViewModel")],Zv);const FS=Zv;let Bp=class extends ua.Z{constructor(d,_){super(d,_),this._animationDelay=500,this._animationPromise=null,this.viewModel=new FS}initialize(){this.addHandles((0,Ht.YP)(()=>this.visible,d=>this._visibleChange(d)))}destroy(){this._animationPromise=null}get location(){return this.viewModel.location}set location(d){this.viewModel.location=d}get view(){return this.viewModel.view}set view(d){this.viewModel.view=d}get visible(){return this.viewModel.visible}set visible(d){this.viewModel.visible=d}show(d){const{location:_,promise:T}=d;_&&(this.viewModel.location=_),this.visible=!0,T&&T.catch(()=>{}).then(()=>this.hide())}hide(){this.visible=!1}render(){const{visible:d}=this,{screenLocation:_}=this.viewModel,T=!!_,U={"esri-spinner--start":d&&T,"esri-spinner--finish":!d&&T},ne=this._getPositionStyles();return(0,Yt.u)("div",{class:this.classes("esri-spinner",U),styles:ne})}_visibleChange(d){if(d)return void(this.viewModel.screenLocationEnabled=!0);const _=(0,ws.e4)(this._animationDelay);this._animationPromise=_,_.catch(()=>{}).then(()=>{this._animationPromise===_&&(this.viewModel.screenLocationEnabled=!1,this._animationPromise=null)})}_getPositionStyles(){const{screenLocation:d,view:_}=this.viewModel;if((0,Qe.Wi)(_)||(0,Qe.Wi)(d))return{};const{padding:T}=_;return{left:d.x-T.left+"px",top:d.y-T.top+"px"}}};(0,Ve._)([(0,ke.Cb)()],Bp.prototype,"location",null),(0,Ve._)([(0,ke.Cb)()],Bp.prototype,"view",null),(0,Ve._)([(0,ke.Cb)({type:FS})],Bp.prototype,"viewModel",void 0),(0,Ve._)([(0,ke.Cb)()],Bp.prototype,"visible",null),Bp=(0,Ve._)([(0,Wr.j)("esri.widgets.Spinner")],Bp);const g8=Bp;var au=v(46367),NS=v(44917),y8=v(59397),Gm=v(48753),v8=v(10671),$v=v(74741),WS=v(71131),VS=v(34057);let __=null;const zS=[255,255,255];function HS(d,_){return Math.floor(Math.random()*(_-d+1)+d)}function jp(d,_={}){const A="horizontal"===_.align,U=A?75:24,ne=A?24:75,{width:fe=U,height:Oe=ne,gradient:we=!0}=_,Ze=window.devicePixelRatio,it=fe*Ze,lt=Oe*Ze,dt=document.createElement("canvas");dt.width=it,dt.height=lt,dt.style.width=`${fe}px`,dt.style.height=`${Oe}px`;const Tt=dt.getContext("2d");if(we){const Nt=Tt.createLinearGradient(0,0,A?it:0,A?0:lt),Bt=d.length,Zt=1===Bt?0:1/(Bt-1);d.forEach((nr,Jt)=>Nt.addColorStop(Jt*Zt,nr.toString())),Tt.fillStyle=Nt,Tt.fillRect(0,0,it,lt)}else{const Nt=A?it/d.length:it,Bt=A?lt:lt/d.length;let Zt=0,nr=0;for(const Jt of d)Tt.fillStyle=Jt.toString(),Tt.fillRect(Zt,nr,Nt,Bt),Zt=A?Zt+Nt:0,nr=A?0:nr+Bt}const Pt=document.createElement("div");return Pt.style.width=`${fe}px`,Pt.style.height=`${Oe}px`,function C8(d,_){if(!_)return;d.style.filter=(0,da.wJ)(_);const T=_.effects;if(T)for(const x of T)if("drop-shadow"===x?.type){x.offsetX<0?d.style.marginLeft=`${Math.abs(x.offsetX)}px`:d.style.marginRight=`${x.offsetX}px`;break}}(Pt,_?.effectList),Pt.appendChild(dt),Pt}function GS(d,_){return AM.apply(this,arguments)}function AM(){return(AM=(0,kr.Z)(function*(d,_){switch(d.type){case"web-style":{const{previewWebStyleSymbol:T}=yield v.e(8704).then(v.bind(v,38704));return T(d,GS,_)}case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":{const{previewSymbol3D:T}=yield Promise.resolve().then(v.bind(v,66960));return T(d,_)}case"simple-marker":case"simple-line":case"simple-fill":case"picture-marker":case"picture-fill":case"text":{const{previewSymbol2D:T}=yield v.e(7755).then(v.bind(v,67755));return T(d,_)}case"cim":{const{previewCIMSymbol:T}=yield Promise.all([v.e(3751),v.e(3678),v.e(8899),v.e(7313)]).then(v.bind(v,27313));return T(d,_)}default:return}})).apply(this,arguments)}function RM(d){return d&&"opacity"in d?d.opacity*RM(d.parent):1}function wM(){return(wM=(0,kr.Z)(function*(d,_){if(!d)return;const T=d.sourceLayer,x=((0,Qe.pC)(_)&&_.useSourceLayer?T:d.layer)??T,A=RM(x);if((0,Qe.pC)(d.symbol)&&(!(0,Qe.pC)(_)||!0!==_.ignoreGraphicSymbol)){const Mt="web-style"===d.symbol.type?yield d.symbol.fetchSymbol({..._,cache:(0,Qe.pC)(_)?_.webStyleCache:null}):d.symbol.clone();return(0,da.tb)(Mt,null,A),Mt}const U=((0,Qe.pC)(_)?_.renderer:null)??(x&&"renderer"in x?x.renderer:null);let ne=U&&"getSymbolAsync"in U?yield U.getSymbolAsync(d,_):null;if(!ne)return;if(ne="web-style"===ne.type?yield ne.fetchSymbol({..._,cache:(0,Qe.pC)(_)?_.webStyleCache:null}):ne.clone(),!(U&&"visualVariables"in U&&U.visualVariables&&U.visualVariables.length))return(0,da.tb)(ne,null,A),ne;if("arcadeRequiredForVisualVariables"in U&&U.arcadeRequiredForVisualVariables&&((0,Qe.Wi)(_)||(0,Qe.Wi)(_.arcade))){const Mt={...(0,Qe.Wg)(_)};Mt.arcade=yield(0,UD.LC)(),_=Mt}const fe=yield Promise.resolve().then(v.bind(v,81808)),Oe=[],we=[],Ze=[],it=[];for(const Mt of U.visualVariables)switch(Mt.type){case"color":Oe.push(Mt);break;case"opacity":we.push(Mt);break;case"rotation":it.push(Mt);break;case"size":Mt.target||Ze.push(Mt)}const lt=!!Oe.length&&Oe[Oe.length-1],dt=lt?fe.getColor(lt,d,_):null,Tt=!!we.length&&we[we.length-1];let mt=Tt?fe.getOpacity(Tt,d,_):null;if(null!=A&&(mt=null!=mt?mt*A:A),(0,da.tb)(ne,dt,mt),Ze.length){const Mt=fe.getAllSizes(Ze,d,_);yield(0,da.e3)(ne,Mt)}for(const Mt of it)(0,da.BR)(ne,fe.getRotationAngle(Mt,d,_),Mt.axis);return ne})).apply(this,arguments)}var Km=v(18547),LM=v(93579);const Yv_iconZoom="esri-icon-zoom-in-magnifying-glass",yh=new Gm.Z({id:"zoom-to-feature",title:"{messages.zoom}",className:Yv_iconZoom}),UM=new Gm.Z({id:"remove-selected-feature",title:"{messages.remove}",className:"esri-icon-trash"}),Fp=new Gm.Z({id:"zoom-to-clustered-features",title:"{messages.zoom}",className:Yv_iconZoom}),Np=new Gm.Z({id:"browse-clustered-features",title:"{messages.browseClusteredFeatures}",className:"esri-icon-table"}),Xv=Us.Z.getLogger("esri.widgets.Popup.PopupViewModel"),P8=d=>{const{event:_,view:T}=d,{action:x}=_,A=T&&T.popup;if(!x)return Promise.reject(new ai.Z("trigger-action:missing-arguments","Event has no action"));if(!A)return Promise.reject(new ai.Z("trigger-action:missing-arguments","view.popup is missing"));const{disabled:U,id:ne}=x;if(!ne)return Promise.reject(new ai.Z("trigger-action:invalid-action","action.id is missing"));if(U)return Promise.reject(new ai.Z("trigger-action:invalid-action","Action is disabled"));if(ne===yh.id)return function x8(d){return jM.apply(this,arguments)}(A.viewModel).catch(ws.H9);if(ne===Fp.id)return function D8(d){return FM.apply(this,arguments)}(A.viewModel);if(ne===Np.id)return A.featureMenuOpen=!A.featureMenuOpen,A.viewModel.browseClusterEnabled=!A.viewModel.browseClusterEnabled,Promise.resolve();if(A.viewModel.browseClusterEnabled=!1,ne===UM.id){A.close();const{selectedFeature:fe}=A;if(!fe)return Promise.reject(new ai.Z(`trigger-action:${UM.id}`,"selectedFeature is required",{selectedFeature:fe}));const{sourceLayer:Oe}=fe;return Oe?Oe.remove(fe):T.graphics.remove(fe),Promise.resolve()}return Promise.resolve()};function KS(d){const{selectedFeature:_,location:T,view:x}=d;return x?"3d"===x.type?_||T:d.get("selectedFeature.geometry")||T:null}function Wp(d){return d?.isAggregate&&"cluster"===d?.sourceLayer?.featureReduction?.type}function O8(d,_){return BM.apply(this,arguments)}function BM(){return(BM=(0,kr.Z)(function*(d,_){if("3d"!==_?.type||!d||"esri.Graphic"!==d.declaredClass)return!0;const T=_.getViewForGraphic(d);if(T&&"whenGraphicBounds"in T){let x;try{x=yield T.whenGraphicBounds(d,{useViewElevation:!0})}catch{}return!x||!x.boundingBox||x.boundingBox[0]===x.boundingBox[3]&&x.boundingBox[1]===x.boundingBox[4]&&x.boundingBox[2]===x.boundingBox[5]}return!0})).apply(this,arguments)}function jM(){return(jM=(0,kr.Z)(function*(d){const{location:_,selectedFeature:T,view:x,zoomFactor:A}=d,U=KS(d);if(!U){const we=new ai.Z("zoom-to:invalid-target-or-view","Cannot zoom to location without a target and view.",{target:U,view:x});throw Xv.error(we),we}const ne=x.scale/A,fe=d.get("selectedFeature.geometry")||_,Oe=fe&&"point"===fe.type&&(yield O8(T,x));yh.active=!0,yh.disabled=!0;try{yield d.zoomTo({target:{target:U,scale:Oe?ne:void 0}})}catch{const Ze=new ai.Z("zoom-to:invalid-graphic","Could not zoom to the location of the graphic.",{graphic:T});Xv.error(Ze)}finally{yh.active=!1,yh.disabled=!1,d.zoomToLocation=null,Oe&&(d.location=fe)}})).apply(this,arguments)}function FM(){return(FM=(0,kr.Z)(function*(d){const{selectedFeature:_,view:T}=d;if("2d"!==T?.type){const fe=new ai.Z("zoomToCluster:invalid-view","View must be 2d MapView.",{view:T});throw Xv.error(fe),fe}if(!Wp(_)){const fe=new ai.Z("zoomToCluster:invalid-selectedFeature","Selected feature must represent an aggregate/cluster graphic.",{selectedFeature:_});throw Xv.error(fe),fe}const x=_.sourceLayer,A=yield T.whenLayerView(x),U=A.createQuery();U.aggregateIds=[_.getObjectId()],Fp.active=!0,Fp.disabled=!0;const{extent:ne}=yield A.queryExtent(U);yield d.zoomTo({target:ne}),Fp.active=!1,Fp.disabled=!1})).apply(this,arguments)}function NM(){return(NM=(0,kr.Z)(function*(d){const{selectedFeature:_,view:T}=d,x=_.sourceLayer,A=yield T.whenLayerView(x),U=A.createQuery();U.aggregateIds=[_.getObjectId()];const{extent:ne}=yield A.queryExtent(U);d.selectedClusterBoundaryFeature.geometry=ne,T.graphics.add(d.selectedClusterBoundaryFeature)})).apply(this,arguments)}function WM(){return(WM=(0,kr.Z)(function*(d){const{selectedFeature:_,view:T}=d,x=_.sourceLayer,A=yield T.whenLayerView(x),U=A.createQuery();U.aggregateIds=[_.getObjectId()],Np.active=!0,Np.disabled=!0;const{features:ne}=yield A.queryFeatures(U);Np.active=!1,Np.disabled=!1,T.popup.open({features:[_].concat(ne),featureMenuOpen:!0})})).apply(this,arguments)}const ZS=d=>{let _=class extends d{constructor(...T){super(...T),this.goToOverride=null,this.view=null}callGoTo(T){const{view:x}=this;return this.goToOverride?this.goToOverride(x,T):x.goTo(T.target,T.options)}};return(0,Ve._)([(0,ke.Cb)()],_.prototype,"goToOverride",void 0),(0,Ve._)([(0,ke.Cb)()],_.prototype,"view",void 0),_=(0,Ve._)([(0,Wr.j)("esri.widgets.support.GoTo")],_),_};var VM=v(88493);const Zm=On.Z.ofType({key:"type",defaultKeyValue:"button",base:y8.Z,typeMap:{button:Gm.Z,toggle:v8.Z}});let tn=class extends(ZS(jS)){constructor(d){super(d),this._handles=new Ji.Z,this._pendingPromises=new Set,this._fetchFeaturesController=null,this._selectedClusterFeature=null,this.featurePage=null,this.actions=new Zm,this.activeFeature=null,this.defaultPopupTemplateEnabled=!1,this.autoCloseEnabled=!1,this.autoOpenEnabled=!0,this.browseClusterEnabled=!1,this.content=null,this.featuresPerPage=20,this.featureViewModelAbilities=null,this.featureViewModels=[],this.highlightEnabled=!0,this.includeDefaultActions=!0,this.selectedClusterBoundaryFeature=new fd.Z({symbol:new VM.Z({outline:{width:1.5,color:"cyan"},style:"none"})}),this.title=null,this.updateLocationEnabled=!1,this.view=null,this.visible=!1,this.zoomFactor=4,this.zoomToLocation=null}get isLoadingFeature(){return this.featureViewModels.some(d=>d.waitingForContent)}initialize(){this._handles.add([(0,Ht.YP)(()=>[this.autoOpenEnabled,this.view],()=>this._autoOpenEnabledChange()),this.on("view-change",()=>this._autoClose()),(0,Ht.YP)(()=>[this.highlightEnabled,this.selectedFeature,this.visible,this.view],()=>this._highlightSelectedFeature()),(0,Ht.YP)(()=>[this.highlightEnabled,this.activeFeature,this.visible,this.view],()=>this._highlightActiveFeature()),(0,Ht.YP)(()=>this.view?.animation?.state,d=>this._animationStateChange(d)),(0,Ht.YP)(()=>this.location,d=>this._locationChange(d)),(0,Ht.YP)(()=>this.selectedFeature,d=>this._selectedFeatureChange(d)),(0,Ht.YP)(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),(0,Ht.YP)(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureViewModels],()=>this._setGraphicOnFeatureViewModels()),(0,Ht.YP)(()=>this.featureViewModels,()=>this._featureViewModelsChange()),this.on("trigger-action",d=>P8({event:d,view:this.view})),(0,Ht.gx)(()=>!this.waitingForResult,()=>this._waitingForResultChange(),Ht.Z_),(0,Ht.YP)(()=>[this.features,this.view?.map,this.view?.spatialReference],()=>this._updateFeatureVMs()),(0,Ht.YP)(()=>this.view?.scale,()=>this._viewScaleChange()),(0,Ht.gx)(()=>!this.visible,()=>this.browseClusterEnabled=!1),(0,Ht.YP)(()=>this.browseClusterEnabled,d=>d?this.enableClusterBrowsing():this.disableClusterBrowsing())])}destroy(){this._cancelFetchingFeatures(),this._handles.destroy(),this._handles=null,this._pendingPromises.clear(),this.browseClusterEnabled=!1,this.view=null}get active(){return!(!this.visible||this.waitingForResult)}get allActions(){const d=this._get("allActions")||new Zm;d.removeAll();const{actions:_,defaultActions:T,defaultPopupTemplateEnabled:x,includeDefaultActions:A,selectedFeature:U}=this,ne=A?T.concat(_):_,fe=U&&("function"==typeof U.getEffectivePopupTemplate&&U.getEffectivePopupTemplate(x)||U.popupTemplate),Oe=fe&&fe.actions,we=fe&&fe.overwriteActions?Oe:Oe?Oe.concat(ne):ne;return we&&we.filter(Boolean).forEach(Ze=>d.add(Ze)),d}get defaultActions(){const d=this._get("defaultActions")||new Zm;return d.removeAll(),d.addMany(Wp(this.selectedFeature)?[Fp.clone(),Np.clone()]:[yh.clone()]),d}get featureCount(){return this.features.length}get features(){return this._get("features")||[]}set features(d){const _=d||[];this._set("features",_);const{pendingPromisesCount:T,promiseCount:x,selectedFeatureIndex:A}=this,U=x&&_.length;U&&T&&-1===A?this.selectedFeatureIndex=0:U&&-1!==A||(this.selectedFeatureIndex=_.length?0:-1)}get location(){return this._get("location")||null}set location(d){const _=this.get("view.spatialReference.isWebMercator");d&&d.get("spatialReference.isWGS84")&&_&&(d=(0,au.$)(d)),this._set("location",d)}get pendingPromisesCount(){return this._pendingPromises.size}get waitingForResult(){return!(!(this._fetchFeaturesController||this.pendingPromisesCount>0)||0!==this.featureCount)}get promiseCount(){return this.promises.length}get promises(){return this._get("promises")||[]}set promises(d){if(this._pendingPromises.clear(),this.features=[],!Array.isArray(d)||!d.length)return this._set("promises",[]),void this.notifyChange("pendingPromisesCount");this._set("promises",d),(d=d.slice(0)).forEach(_=>{this._pendingPromises.add(_),_.then(A=>{this._pendingPromises.has(_)&&this._updateFeatures(A),this._updatePendingPromises(_)},()=>this._updatePendingPromises(_))}),this.notifyChange("pendingPromisesCount")}get selectedFeature(){const{features:d,selectedFeatureIndex:_}=this;return-1===_?null:d[_]||null}get selectedFeatureIndex(){const d=this._get("selectedFeatureIndex");return"number"==typeof d?d:-1}set selectedFeatureIndex(d){const{featureCount:_}=this;d=isNaN(d)||d<-1||!_?-1:(d+_)%_,this.activeFeature=null,this._set("selectedFeatureIndex",d)}get selectedFeatureViewModel(){return this.featureViewModels[this.selectedFeatureIndex]||null}get state(){return this.get("view.ready")?"ready":"disabled"}centerAtLocation(){const{view:d}=this,_=KS(this);return _?this.callGoTo({target:{target:_,scale:d.scale}}):Promise.reject(new ai.Z("center-at-location:invalid-target-or-view","Cannot center at a location without a target and view.",{target:_,view:d}))}zoomTo(d){return this.callGoTo(d)}clear(){this.set({promises:[],features:[],content:null,title:null,location:null,activeFeature:null})}fetchFeatures(d,_){const{view:T}=this;if(!T||!d)throw new ai.Z("fetch-features:invalid-screenpoint-or-view","Cannot fetch features without a screenPoint and view.",{screenPoint:d,view:T});return T.fetchPopupFeatures(d,{event:_&&_.event,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:_&&_.signal})}open(d){const _={updateLocationEnabled:!1,promises:[],fetchFeatures:!1,...d,visible:!0},{fetchFeatures:T}=_;delete _.fetchFeatures,T&&this._setFetchFeaturesPromises(_.location);const x=["actionsMenuOpen","collapsed","featureMenuOpen"];for(const A of x)delete _[A];this.set(_)}triggerAction(d){const _=this.allActions.getItemAt(d);_&&!_.disabled&&this.emit("trigger-action",{action:_})}next(){return this.selectedFeatureIndex=this.selectedFeatureIndex+1,this}previous(){return this.selectedFeatureIndex=this.selectedFeatureIndex-1,this}disableClusterBrowsing(){(function R8(d){const _=d.features.filter(T=>Wp(T));_.length&&(d.features=_)})(this),this._clearBrowsedClusterGraphics()}enableClusterBrowsing(){var d=this;return(0,kr.Z)(function*(){const{view:_,selectedFeature:T}=d;"2d"===_?.type?Wp(T)?(yield function S8(d){return NM.apply(this,arguments)}(d),yield function A8(d){return WM.apply(this,arguments)}(d)):Us.Z.getLogger(d.declaredClass).warn("enableClusterBrowsing:invalid-selectedFeature: Selected feature must represent an aggregate/cluster graphic.",T):Us.Z.getLogger(d.declaredClass).warn("enableClusterBrowsing:invalid-view: View must be 2d MapView.",T)})()}_animationStateChange(d){this.zoomToLocation||(yh.disabled="waiting-for-target"===d)}_clearBrowsedClusterGraphics(){const d=this.view?.graphics;d&&(d.remove(this.selectedClusterBoundaryFeature),d.remove(this._selectedClusterFeature)),this._selectedClusterFeature=null,this.selectedClusterBoundaryFeature.geometry=null}_viewScaleChange(){if(Wp(this.selectedFeature))return this.browseClusterEnabled=!1,this.visible=!1,void this.clear();this.browseClusterEnabled&&(this.features=[this.selectedFeature])}_locationChange(d){const{selectedFeature:_,updateLocationEnabled:T}=this;T&&d&&(!_||_.geometry)&&this.centerAtLocation()}_selectedFeatureIndexChange(){this.featurePage=this.featureCount>1?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null}_featureViewModelsChange(){this.featurePage=this.featureCount>1?1:null}_setGraphicOnFeatureViewModels(){const{features:d,featureCount:_,featurePage:T,featuresPerPage:x,featureViewModels:A}=this;if(null===T)return;const U=((T-1)*x+_)%_;A.slice(U,U+x).forEach((fe,Oe)=>{fe&&!fe.graphic&&(fe.graphic=d[U+Oe])})}_selectedFeatureChange(d){var _=this;return(0,kr.Z)(function*(){if(!d)return;const{location:T,updateLocationEnabled:x,view:A}=_;if(_.browseClusterEnabled)return _._selectedClusterFeature&&(A.graphics.remove(_._selectedClusterFeature),_._selectedClusterFeature=null),Wp(d)?void 0:(d.symbol=yield function T8(d,_){return wM.apply(this,arguments)}(d),_._selectedClusterFeature=d,void A.graphics.add(_._selectedClusterFeature));!x&&T||!d.geometry?x&&!d.geometry&&_.centerAtLocation().then(()=>{_.location=A.center.clone()}):_.location=(0,Qe.Wg)(_._getPointFromGeometry(d.geometry))})()}_waitingForResultChange(){!this.featureCount&&this.promises&&(this.visible=!1)}_setFetchFeaturesPromises(d){return this._fetchFeaturesWithController(this._getScreenPoint(d||this.location)).then(_=>{const{clientOnlyGraphics:T,promisesPerLayerView:x}=_,A=Promise.resolve(T),U=x.map(ne=>ne.promise);this.promises=[A,...U]})}_destroyFeatureVMs(){this.featureViewModels.forEach(d=>d&&!d.destroyed&&d.destroy()),this._set("featureViewModels",[])}_updateFeatureVMs(){const{selectedFeature:d,features:_,featureViewModels:T}=this;if(Wp(d)||(this.browseClusterEnabled=!1),this._destroyFeatureVMs(),!_||!_.length)return;const x=T.slice(0),A=[];_.forEach((U,ne)=>{if(!U)return;let fe=null;if(x.some((Oe,we)=>(Oe&&Oe.graphic===U&&(fe=Oe,x.splice(we,1)),!!fe)),fe)A[ne]=fe;else{const Oe=new xM({abilities:this.featureViewModelAbilities,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:this.view?.spatialReference,graphic:U===d?U:null,map:this.view?.map,view:this.view});A[ne]=Oe}}),x.forEach(U=>U&&!U.destroyed&&U.destroy()),this._set("featureViewModels",A)}_getScreenPoint(d){const{view:_}=this;return _&&d&&"function"==typeof _.toScreen?_.toScreen(d):null}_autoOpenEnabledChange(){const d="auto-fetch-features",{_handles:_,autoOpenEnabled:T}=this;if(_.remove(d),T&&this.view){const x=this.view.on("click",A=>{"mouse"===A.pointerType&&0!==A.button||this._fetchFeaturesAndOpen(A)},Km.f.WIDGET);_.add(x,d)}}_cancelFetchingFeatures(){const d=this._fetchFeaturesController;d&&d.abort(),this._fetchFeaturesController=null,this.notifyChange("waitingForResult")}_fetchFeaturesWithController(d,_){this._cancelFetchingFeatures();const T=new AbortController,{signal:x}=T;this._fetchFeaturesController=T,this.notifyChange("waitingForResult");const A=this.fetchFeatures(d,{signal:x,event:_});return A.catch(()=>{}).then(()=>{this._fetchFeaturesController=null,this.notifyChange("waitingForResult")}),A}_fetchFeaturesAndOpen(d){const{screenPoint:_,mapPoint:T}=d,{view:x}=this;this._fetchFeaturesWithController(_,d).then(A=>{const{clientOnlyGraphics:U,promisesPerLayerView:ne,location:fe}=A,Oe=[Promise.resolve(U),...ne.map(we=>we.promise)];return x.popup.open({location:fe||T,promises:Oe}),A})}_updatePendingPromises(d){d&&this._pendingPromises.has(d)&&(this._pendingPromises.delete(d),this.notifyChange("pendingPromisesCount"))}_autoClose(){this.autoCloseEnabled&&(this.visible=!1)}_getPointFromGeometry(d){return(0,Qe.Wi)(d)?null:"point"===d.type?d:"extent"===d.type?d.center:"polygon"===d.type?d.centroid:"multipoint"===d.type||"polyline"===d.type?d.extent?.center:null}_getLayerView(d,_){return(0,kr.Z)(function*(){return yield d.when(),d.whenLayerView(_)})()}_getHighlightLayer(d){const{layer:_,sourceLayer:T}=d;return T&&"layer"in T&&T.layer?T.layer:"map-notes"===T?.type||"subtype-group"===T?.type?T:_}_getHighlightTarget(d,_){const T="imagery"===_.type?void 0:"objectIdField"in _?_.objectIdField||wD.d:null,x=d.attributes;return x&&T&&x[T]||d}_highlightActiveFeature(){var d=this;return(0,kr.Z)(function*(){const _="highlight-active-feature";d._handles.remove(_);const{highlightEnabled:T,view:x,activeFeature:A,visible:U}=d;if(!(A&&x&&T&&U))return;const ne=d._getHighlightLayer(A);if(!(ne&&ne instanceof NS.Z))return;const fe=d._getLayerView(x,ne);d._highlightActiveFeaturePromise=fe;const Oe=yield fe;if(!(Oe&&(0,LM.tl)(Oe)&&d._highlightActiveFeaturePromise===fe&&d.activeFeature&&d.highlightEnabled))return;const we=Oe.highlight(d._getHighlightTarget(A,ne));d._handles.add(we,_)})()}_highlightSelectedFeature(){var d=this;return(0,kr.Z)(function*(){const _="highlight-selected-feature";d._handles.remove(_);const{selectedFeature:T,highlightEnabled:x,view:A,visible:U}=d;if(!(T&&A&&x&&U))return;const ne=d._getHighlightLayer(T);if(!(ne&&ne instanceof NS.Z))return;const fe=d._getLayerView(A,ne);d._highlightSelectedFeaturePromise=fe;const Oe=yield fe;if(!(Oe&&(0,LM.tl)(Oe)&&d._highlightSelectedFeaturePromise===fe&&d.selectedFeature&&d.highlightEnabled&&d.visible))return;const we=Oe.highlight(d._getHighlightTarget(T,ne));d._handles.add(we,_)})()}_updateFeatures(d){const{features:_}=this;if(!d||!d.length)return;if(!_.length)return void(this.features=d);const T=d.filter(x=>!_.includes(x));this.features=_.concat(T)}};(0,Ve._)([(0,ke.Cb)()],tn.prototype,"featurePage",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"isLoadingFeature",null),(0,Ve._)([(0,ke.Cb)({type:Zm})],tn.prototype,"actions",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"active",null),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"activeFeature",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"allActions",null),(0,Ve._)([(0,ke.Cb)({type:Boolean})],tn.prototype,"defaultPopupTemplateEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"autoCloseEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"autoOpenEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"browseClusterEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"content",void 0),(0,Ve._)([(0,ke.Cb)({type:Zm,readOnly:!0})],tn.prototype,"defaultActions",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"featureCount",null),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"features",null),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"featuresPerPage",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"featureViewModelAbilities",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"featureViewModels",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"highlightEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"includeDefaultActions",void 0),(0,Ve._)([(0,ke.Cb)({type:vn.Z})],tn.prototype,"location",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"pendingPromisesCount",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"selectedClusterBoundaryFeature",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"waitingForResult",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"promiseCount",null),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"promises",null),(0,Ve._)([(0,ke.Cb)({value:null,readOnly:!0})],tn.prototype,"selectedFeature",null),(0,Ve._)([(0,ke.Cb)({value:-1})],tn.prototype,"selectedFeatureIndex",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"selectedFeatureViewModel",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],tn.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"title",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"updateLocationEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"visible",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"zoomFactor",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"zoomToLocation",void 0),(0,Ve._)([(0,ke.Cb)()],tn.prototype,"centerAtLocation",null),tn=(0,Ve._)([(0,Wr.j)("esri.widgets.Popup.PopupViewModel")],tn);const $S=tn;var fc=v(24940);const YS="selected-index",XS="popup-spinner",Ts_shadow="esri-popup--shadow",Ts_button="esri-popup__button",Ts_icon="esri-popup__icon",kS={buttonEnabled:!0,position:"auto",breakpoint:{width:544}},JS="esri-popup";function Cd(d,_){return void 0===_?`${JS}__${d}`:`${JS}__${d}-${_}`}const QS={closeButton:!0,featureNavigation:!0};let hi=class extends(IS(ua.Z)){constructor(d,_){super(d,_),this._blurClose=!1,this._blurContainer=!1,this._containerNode=null,this._mainContainerNode=null,this._featureMenuNode=null,this._actionsMenuNode=null,this._focusClose=!1,this._focusContainer=!1,this._focusDockButton=!1,this._focusFeatureMenuButton=!1,this._focusActionsMenuButton=!1,this._focusFirstFeature=!1,this._focusFirstAction=!1,this._handles=new Ji.Z,this._pointerOffsetInPx=16,this._spinner=null,this._feature=null,this._featureMenuIntersectionObserverCallback=([T])=>{T?.isIntersecting&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._displaySpinnerThrottled=c_(()=>this._displaySpinner(),0),this._exitRelatedRecordsActions=new WeakMap,this._flowItems=new On.Z,this.alignment="auto",this.collapsed=!1,this.collapseEnabled=!0,this.dockEnabled=!1,this.featureMenuOpen=!1,this.headingLevel=2,this.maxInlineActions=3,this.messages=null,this.messagesCommon=null,this.spinnerEnabled=!0,this.viewModel=new $S,this.visibleElements={...QS},this._addSelectedFeatureIndexHandle(),this.addHandles([(0,Ht.YP)(()=>this.viewModel?.screenLocation,()=>this._positionContainer()),(0,Ht.YP)(()=>[this.viewModel?.active,this.dockEnabled],()=>this._toggleScreenLocationEnabled()),(0,Ht.YP)(()=>this.viewModel?.screenLocation,(T,x)=>{!!T!=!!x&&this.reposition()}),(0,Ht.YP)(()=>[this.viewModel?.view?.padding,this.viewModel?.view?.size,this.viewModel?.active,this.viewModel?.location,this.alignment],()=>this.reposition()),(0,Ht.YP)(()=>this.spinnerEnabled,T=>this._spinnerEnabledChange(T)),(0,Ht.YP)(()=>this.viewModel?.view?.size,(T,x)=>this._updateDockEnabledForViewSize(T,x)),(0,Ht.YP)(()=>this.viewModel?.view,(T,x)=>this._viewChange(T,x)),(0,Ht.YP)(()=>this.viewModel?.view?.ready,(T,x)=>this._viewReadyChange(T,x)),(0,Ht.YP)(()=>[this.viewModel?.waitingForResult,this.viewModel?.location],()=>{this._hideSpinner(),this._displaySpinnerThrottled()}),(0,Ht.YP)(()=>this.selectedFeatureWidget,()=>this._destroyFlowItemWidgets()),(0,Ht.YP)(()=>[this.selectedFeatureWidget?.viewModel?.title,this.selectedFeatureWidget?.viewModel?.state],()=>this._setTitleFromFeatureWidget()),(0,Ht.YP)(()=>[this.selectedFeatureWidget?.viewModel?.content,this.selectedFeatureWidget?.viewModel?.state],()=>this._setContentFromFeatureWidget()),(0,Ht.gx)(()=>!this.collapsed,()=>{"xsmall"===this.viewModel?.view?.widthBreakpoint&&this.viewModel.active&&this.collapseEnabled&&this.viewModel.centerAtLocation()}),(0,Ht.on)(()=>this.viewModel?.allActions,"change",()=>this._watchActions()),(0,Ht.YP)(()=>this.viewModel?.allActions,()=>this._watchActions(),Ht.nn),(0,Ht.YP)(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),(0,Ht.on)(()=>this._flowItems,"change",()=>{this.notifyChange("_activeFlowItemWidget"),this.scheduleRender()}),(0,Ht.YP)(()=>[this._activeFlowItemWidget?.viewModel?.state,this._activeFlowItemWidget?.viewModel?.title],()=>this.scheduleRender())])}loadDependencies(){return Promise.all([v.e(8178).then(v.bind(v,58178)),Promise.all([v.e(8792),v.e(8346),v.e(7112)]).then(v.bind(v,17112)),Promise.all([v.e(8346),v.e(2226)]).then(v.bind(v,52573)),Promise.all([v.e(8792),v.e(6810)]).then(v.bind(v,26810)),v.e(8472).then(v.bind(v,8472))])}destroy(){this._destroyFlowItemWidgets(),this._destroySelectedFeatureWidget(),this._destroySpinner(),this._handles?.destroy(),this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserver?.disconnect(),this._handles=null}get actionsMenuId(){return`${this.id}-actions-menu`}get actionsMenuButtonId(){return`${this.id}-actions-menu-button`}get featureMenuId(){return`${this.id}-feature-menu`}get titleId(){return`${this.id}-popup-title`}get contentId(){return`${this.id}-popup-content`}get hasContent(){const{selectedFeatureWidget:d,viewModel:_}=this;if(!d)return!!_?.content;const T=d.viewModel;if(T?.waitingForContent||"error"===T?.state)return!0;const x=T?.content;return Array.isArray(x)?!!x.length:!!x}get featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&this.visibleElements.featureNavigation}get collapsible(){return!!(this.collapseEnabled&&this.viewModel.title&&this.hasContent)}get featureMenuVisible(){return this.featureNavigationVisible&&this.featureMenuOpen}get contentCollapsed(){return this.collapsible&&!this.featureMenuVisible&&this.collapsed}get dividedActions(){return this._divideActions()}get _activeFlowItemWidget(){const{_flowItems:d}=this;return d.getItemAt(d.length-1)||null}get actions(){return this.viewModel.actions}set actions(d){this.viewModel.actions=d}set actionsMenuOpen(d){this._set("actionsMenuOpen",!!d)}get actionsMenuOpen(){return!!this.viewModel.active&&this._get("actionsMenuOpen")}get autoCloseEnabled(){return this.viewModel.autoCloseEnabled}set autoCloseEnabled(d){this.viewModel.autoCloseEnabled=d}get autoOpenEnabled(){return this.viewModel.autoOpenEnabled}set autoOpenEnabled(d){this.viewModel.autoOpenEnabled=d}get defaultPopupTemplateEnabled(){return this.viewModel.defaultPopupTemplateEnabled}set defaultPopupTemplateEnabled(d){this.viewModel.defaultPopupTemplateEnabled=d}get content(){return this.viewModel.content}set content(d){this.viewModel.content=d}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._get("dockOptions")||kS}set dockOptions(d){const _={...kS},T=this.get("viewModel.view.breakpoints"),x={};T&&(x.width=T.xsmall,x.height=T.xsmall);const A={..._,...d},U={..._.breakpoint,...x},{breakpoint:ne}=A;!0===ne?A.breakpoint=U:"object"==typeof ne&&(A.breakpoint={...U,...ne}),this._set("dockOptions",A),this._setCurrentDockPosition(),this.reposition()}get featureCount(){return this.viewModel.featureCount}get features(){return this.viewModel.features}set features(d){this.viewModel.features=d}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(d){this.viewModel.goToOverride=d}get highlightEnabled(){return this.viewModel.highlightEnabled}set highlightEnabled(d){this.viewModel.highlightEnabled=d}get location(){return this.viewModel.location}set location(d){this.viewModel.location=d}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}get promises(){return this.viewModel.promises}set promises(d){this.viewModel.promises=d}get selectedFeature(){return this.viewModel.selectedFeature}get selectedFeatureIndex(){return this.viewModel.selectedFeatureIndex}set selectedFeatureIndex(d){this.viewModel.selectedFeatureIndex=d}get selectedFeatureWidget(){const{_feature:d,visibleElements:_,headingLevel:T,_flowItems:x}=this,{selectedFeatureViewModel:A}=this.viewModel,U={..._,title:!1};return A?(d?(d.viewModel=A,d.visibleElements=U):this._feature=new f8({flowItems:x,headingLevel:T+1,viewModel:A,visibleElements:U}),this._feature):null}get title(){return this.viewModel.title}set title(d){this.viewModel.title=d}get updateLocationEnabled(){return this.viewModel.updateLocationEnabled}set updateLocationEnabled(d){this.viewModel.updateLocationEnabled=d}get view(){return this.viewModel.view}set view(d){this.viewModel.view=d}get visible(){return this.viewModel.visible}set visible(d){this.viewModel.visible=d}castVisibleElements(d){return{...QS,...d}}blur(){const{active:d}=this.viewModel;d||Us.Z.getLogger(this.declaredClass).warn("Popup can only be blurred when currently active."),this.visibleElements.closeButton?this._blurClose=!0:this._blurContainer=!0,this.scheduleRender()}clear(){return this.viewModel.clear()}close(){this.visible=!1}fetchFeatures(d,_){return this.viewModel.fetchFeatures(d,_)}focus(){const{active:d}=this.viewModel;d||Us.Z.getLogger(this.declaredClass).warn("Popup can only be focused when currently active."),this.visibleElements.closeButton?this._focusClose=!0:this._focusContainer=!0,this.scheduleRender()}next(){return this.viewModel.next()}open(d){this._handles.remove(YS);const x={collapsed:!!d&&!!d.collapsed,actionsMenuOpen:!!d&&!!d.actionsMenuOpen,featureMenuOpen:!!d&&!!d.featureMenuOpen};"xsmall"===this.viewModel?.view?.widthBreakpoint&&(x.collapsed=!0),this.set(x),this.viewModel.open(d),this._shouldFocus(d),this._addSelectedFeatureIndexHandle()}previous(){return this.viewModel.previous()}reposition(){this.renderNow(),this._positionContainer(),this._setCurrentAlignment()}triggerAction(d){return this.viewModel.triggerAction(d)}render(){const{actionsMenuOpen:d,dockEnabled:_,featureMenuVisible:T,dividedActions:x,currentAlignment:A,currentDockPosition:U}=this,{active:ne}=this.viewModel,{menuActions:fe}=x,it=this.selectedFeature?.layer?.title,lt=this.selectedFeature?.layer?.id;return(0,Yt.u)("div",{class:this.classes("esri-popup",{"esri-popup--aligned-top-center":"top-center"===A,"esri-popup--aligned-bottom-center":"bottom-center"===A,"esri-popup--aligned-top-left":"top-left"===A,"esri-popup--aligned-bottom-left":"bottom-left"===A,"esri-popup--aligned-top-right":"top-right"===A,"esri-popup--aligned-bottom-right":"bottom-right"===A,"esri-popup--is-docked":ne&&_,[Ts_shadow]:ne&&!_,"esri-popup--is-docked-top-left":"top-left"===U,"esri-popup--is-docked-top-center":"top-center"===U,"esri-popup--is-docked-top-right":"top-right"===U,"esri-popup--is-docked-bottom-left":"bottom-left"===U,"esri-popup--is-docked-bottom-center":"bottom-center"===U,"esri-popup--is-docked-bottom-right":"bottom-right"===U,"esri-popup--feature-menu-open":T,"esri-popup--actions-menu-open":ne&&fe.length>1&&d}),role:"presentation","data-layer-title":it,"data-layer-id":lt,bind:this,afterCreate:this._positionContainer,afterUpdate:this._positionContainer},ne?[this.renderMainContainer(),this.renderPointer()]:null)}renderLoadingIcon(){return(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes(Ts_icon,"esri-icon-loading-indicator","esri-rotating")})}renderNavigationLoading(){const{messagesCommon:d}=this;return this.viewModel.pendingPromisesCount?(0,Yt.u)("div",{key:Cd("loading-container"),role:"presentation",class:"esri-popup__loading-container","aria-label":d.loading,title:d.loading},this.renderLoadingIcon()):null}renderPreviousIcon(){const d=(0,uo.dZ)(this.container);return(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes(Ts_icon,{"esri-icon-right-triangle-arrow":d,"esri-popup__pagination-previous-icon--rtl":d,"esri-icon-left-triangle-arrow":!d,"esri-popup__pagination-previous-icon":!d})})}renderPreviousButton(){const{messages:d}=this;return(0,Yt.u)("div",{role:"button",tabIndex:0,bind:this,onclick:this._previous,onkeydown:this._previous,class:this.classes(Ts_button,"esri-popup__pagination-previous"),"aria-label":d.previous,title:d.previous},this.renderPreviousIcon())}renderNextIcon(){const d=(0,uo.dZ)(this.container);return(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes(Ts_icon,{"esri-icon-left-triangle-arrow":d,"esri-popup__pagination-next-icon--rtl":d,"esri-icon-right-triangle-arrow":!d,"esri-popup__pagination-next-icon":!d})})}renderNextButton(){const{messages:d}=this;return(0,Yt.u)("div",{role:"button",tabIndex:0,bind:this,onclick:this._next,onkeydown:this._next,class:this.classes(Ts_button,"esri-popup__pagination-next"),"aria-label":d.next,title:d.next},this.renderNextIcon())}renderFeatureMenuButton(){const{featureMenuOpen:d,featureMenuId:_,messagesCommon:T}=this,{featureCount:x,selectedFeatureIndex:A}=this.viewModel;return(0,Yt.u)("div",{role:"button",tabIndex:0,bind:this,onclick:this._toggleFeatureMenu,onkeydown:this._toggleFeatureMenu,afterCreate:this._focusFeatureMenuButtonNode,afterUpdate:this._focusFeatureMenuButtonNode,class:this.classes(Ts_button,"esri-popup__feature-menu-button"),"aria-haspopup":"true","aria-controls":_,"aria-expanded":d.toString(),"aria-label":T.menu,title:T.menu},this._getPageText(x,A))}renderNavigationButtons(){return this.featureNavigationVisible?[this.renderPreviousButton(),this.renderNavigationLoading()||this.renderFeatureMenuButton(),this.renderNextButton()]:null}renderDockIcon(){const{dockEnabled:d}=this,_=this._wouldDockTo();return(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes({"esri-icon-minimize":d,"esri-popup__icon--dock-icon":!d,"esri-icon-dock-right":!d&&("top-right"===_||"bottom-right"===_),"esri-icon-dock-left":!d&&("top-left"===_||"bottom-left"===_),"esri-icon-maximize":!d&&"top-center"===_,"esri-icon-dock-bottom":!d&&"bottom-center"===_},Ts_icon)})}renderDockButton(){const{dockEnabled:d,messages:_}=this,T=this.viewModel?.view?.widthBreakpoint,x=d?_.undock:_.dock;return"xsmall"!==T&&this.dockOptions?.buttonEnabled?(0,Yt.u)("div",{role:"button","aria-label":x,title:x,tabIndex:0,bind:this,onclick:this._toggleDockEnabled,onkeydown:this._toggleDockEnabled,afterCreate:this._focusDockButtonNode,afterUpdate:this._focusDockButtonNode,class:this.classes(Ts_button,"esri-popup__button--dock")},this.renderDockIcon()):null}renderTitle(){const{title:d}=this.viewModel,{titleId:_,collapsible:T,contentCollapsed:x,messagesCommon:A}=this,U={"esri-popup__header-container--button":T},ne=(0,Yt.u)(wp,{level:this.headingLevel,class:"esri-popup__header-title",innerHTML:d}),fe=T?(0,Yt.u)("button",{key:`${d}--collapsible`,id:_,title:x?A.expand:A.collapse,bind:this,enterAnimation:this._createFeatureUpdatedAnimation(),class:this.classes("esri-popup__header-container",U),"aria-expanded":x?"false":"true",onclick:this._toggleCollapsed,type:"button"},ne,(0,Yt.u)("calcite-icon",{class:"esri-popup__collapse-icon",key:"collapse-icon",icon:x?"chevron-down":"chevron-up",scale:"m"})):(0,Yt.u)("div",{key:d,id:_,bind:this,enterAnimation:this._createFeatureUpdatedAnimation(),class:this.classes("esri-popup__header-container",U)},ne);return d?fe:null}renderCloseIcon(){return(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes(Ts_icon,"esri-icon-close")})}renderCloseButton(){const{visibleElements:d,messagesCommon:_}=this;return d.closeButton?(0,Yt.u)("div",{role:"button",tabIndex:0,bind:this,onclick:this._close,onkeydown:this._close,class:Ts_button,"aria-label":_.close,title:_.close,afterCreate:this._closeButtonNodeUpdated,afterUpdate:this._closeButtonNodeUpdated},this.renderCloseIcon()):null}renderHeader(){return(0,Yt.u)("header",{class:"esri-popup__header"},this.renderTitle(),(0,Yt.u)("div",{class:"esri-popup__header-buttons"},this.renderDockButton(),this.renderCloseButton()))}renderContentContainer(){const{contentId:d,hasContent:_,contentCollapsed:T,_flowItems:x,messagesCommon:A}=this,{content:U}=this.viewModel,ne=x.toArray(),fe={"esri-content--has-flows":!!ne.length};return _&&!T?(0,Yt.u)("div",{key:U,enterAnimation:this._createFeatureUpdatedAnimation(),id:d,class:this.classes("esri-popup__content",fe)},(0,Yt.u)("calcite-flow",{bind:this,onCalciteFlowItemBack:this._handleBackClick},(0,Yt.u)("calcite-flow-item",{bind:this,"data-node-ref":"_rootFlowItemNode","intl-back":A.back,afterCreate:uo.Yo,key:"root-flow-item"},this.renderContent()),ne.map(Oe=>this.renderFlowItem(Oe))),ne.map(Oe=>this.renderFlowItemTooltip(Oe))):null}renderFlowItem(d){const{messages:_,messagesCommon:T}=this,x=Vm();return(0,Yt.u)("calcite-flow-item",{class:this.classes({"calcite-theme-dark":!x,"calcite-theme-light":x}),heading:d.title,"intl-back":T.back,description:this._getFlowItemDescription(d),key:`flow-item-${d.viewModel.uid}`},(0,Yt.u)("calcite-action",{class:"esri-popup__action--exit",icon:"move-up",label:_?.exitRelatedRecords,text:_?.exitRelatedRecords,slot:"header-actions-start",bind:this,afterCreate:A=>this._storeExitRelatedRecordsAction(d,A),onclick:this._destroyFlowItemWidgets}),(0,Yt.u)("div",{class:this.classes("esri-content__flow-item",{"calcite-theme-dark":x,"calcite-theme-light":!x})},d.render()))}renderFlowItemTooltip(d){const{messages:_,_exitRelatedRecordsActions:T}=this,x=Vm();return(0,Yt.u)("calcite-tooltip",{class:this.classes({"calcite-theme-dark":!x,"calcite-theme-light":x}),key:`exit-related-records-tooltip-${d.viewModel.uid}`,label:_?.exitRelatedRecords,overlayPositioning:"fixed",referenceElement:T.get(d),placement:"top"},_?.exitRelatedRecords)}renderActionsMenuButton(){const{actionsMenuId:d,actionsMenuButtonId:_,actionsMenuOpen:T,dividedActions:x,messagesCommon:A}=this,U=T?A.close:A.open,{menuActions:ne}=x;return ne.length?(0,Yt.u)("div",{key:Cd("actions-menu-button"),class:this.classes(Ts_button,"esri-popup__actions-menu-button"),role:"button",id:_,"aria-haspopup":"true","aria-controls":T?d:null,tabIndex:0,bind:this,onclick:this._toggleActionsMenu,onkeydown:this._toggleActionsMenu,afterCreate:this._focusActionsMenuButtonNode,afterUpdate:this._focusActionsMenuButtonNode,"aria-label":U,title:U},(0,Yt.u)("span",{"aria-hidden":"true",class:"esri-icon-handle-horizontal"})):null}renderMenuActions(){const{actionsMenuId:d,actionsMenuButtonId:_,actionsMenuOpen:T,dividedActions:x}=this,{menuActions:A}=x;return A.length&&T?(0,Yt.u)("ul",{id:d,role:"menu","aria-labelledby":_,key:Cd("actions"),class:"esri-popup__actions",bind:this,onkeyup:this._handleActionMenuKeyup,afterCreate:this._actionsMenuNodeUpdated,afterUpdate:this._actionsMenuNodeUpdated},A.toArray().map(U=>this.renderAction({action:U,type:"menu-item"}))):null}renderInlineActions(){const{inlineActions:d}=this.dividedActions;return!!d.length&&d.toArray().map(_=>this.renderAction({action:_,type:"inline"}))}renderInlineActionsContainer(){const{inlineActions:d,menuActions:_}=this.dividedActions,T=!!d.length,x=!!_.length;return T||x?(0,Yt.u)("div",{key:"inline-actions-container","data-inline-actions":T.toString(),"data-menu-actions":x.toString(),class:"esri-popup__inline-actions-container"},this.renderInlineActions(),this.renderActionsMenuButton(),this.renderMenuActions()):null}renderNavigation(){return this.featureNavigationVisible?(0,Yt.u)("section",{key:Cd("navigation"),class:this.classes("esri-popup__navigation")},this.renderNavigationButtons()):null}renderFooter(){const{featureNavigationVisible:d,dividedActions:_}=this,{inlineActions:T,menuActions:x}=_,A=!!T.length,ne={"esri-popup__footer--has-pagination":d,"esri-popup__footer--has-actions":A,"esri-popup__footer--has-actions-menu":!!x.length};return d||A?(0,Yt.u)("div",{key:Cd("feature-buttons"),class:this.classes("esri-popup__footer",ne)},this.renderInlineActionsContainer(),this.renderNavigation()):null}renderFeatureMenuContainer(){const{messages:d}=this,{featureViewModels:_,isLoadingFeature:T}=this.viewModel,x=(0,_c.n)(d.selectedFeatures,{total:_.length});return(0,Yt.u)("section",{key:Cd("menu"),class:"esri-popup__feature-menu"},(0,Yt.u)("strong",{class:"esri-popup__feature-menu-header"},x),(0,Yt.u)("nav",{bind:this,class:"esri-popup__feature-menu-viewport","data-node-ref":"_featureMenuViewportNode",afterCreate:uo.Yo},this.renderFeatureMenu(),(0,Yt.u)("div",{class:"esri-popup__feature-menu-observer",bind:this,afterCreate:this._featureMenuIntersectionObserverCreated}),T?(0,Yt.u)("div",{class:"esri-popup__feature-menu-loader"},this.renderLoadingIcon()):null))}renderPointer(){return this.dockEnabled?null:(0,Yt.u)("div",{key:Cd("pointer"),class:"esri-popup__pointer",role:"presentation"},(0,Yt.u)("div",{class:this.classes("esri-popup__pointer-direction",Ts_shadow)}))}renderMainContainer(){const{dockEnabled:d,currentAlignment:_,currentDockPosition:T,titleId:x,contentId:A,collapsible:U,hasContent:ne,contentCollapsed:fe,visibleElements:Oe}=this,{title:we}=this.viewModel,Ze="bottom-left"===_||"bottom-center"===_||"bottom-right"===_||"top-left"===T||"top-center"===T||"top-right"===T,it="top-left"===_||"top-center"===_||"top-right"===_||"bottom-left"===T||"bottom-center"===T||"bottom-right"===T;return(0,Yt.u)("div",{class:this.classes("esri-popup__main-container","esri-widget",{[Ts_shadow]:d,"esri-popup--is-collapsible":U,"esri-popup--is-collapsed":fe}),tabIndex:Oe.closeButton?null:-1,role:"dialog","aria-labelledby":we?x:"","aria-describedby":ne&&!fe?A:"",bind:this,onkeyup:this._handleMainKeyup,afterCreate:this._mainContainerNodeUpdated,afterUpdate:this._mainContainerNodeUpdated},Ze?this.renderFooter():null,Ze?this.renderFeatureMenuContainer():null,this.renderHeader(),this.renderContentContainer(),it?this.renderFooter():null,it?this.renderFeatureMenuContainer():null)}renderContent(){const d=this.viewModel?.content;return d?"string"==typeof d?(0,Yt.u)("div",{class:bo_contentNode,key:d,innerHTML:d}):this.renderNodeContent(d):null}renderActionText(d){return(0,Yt.u)("span",{key:"text",class:"esri-popup__action-text"},d)}renderActionIcon(d){const _=this._getActionClass(d),T=this._getActionImage(d),x={"esri-icon-loading-indicator":d.active,"esri-rotating":d.active,[Ts_icon]:!!_,"esri-popup__action-image":!d.active&&!!T};return _&&(x[_]=!d.active),(0,Yt.u)("span",{key:"icon","aria-hidden":"true",class:this.classes(Ts_icon,x),styles:this._getIconStyles(T)})}renderAction(d){const{action:_,type:T}=d,x=this._getActionTitle(_),A={"esri-popup__action":"toggle"!==_.type,"esri-popup__action-toggle":"toggle"===_.type,"esri-popup__action-toggle--on":"toggle"===_.type&&_.value,"esri-popup__button--disabled":_.disabled},U=[this.renderActionIcon(_),this.renderActionText(x)],ne="menu-item"===T?(0,Yt.u)("li",{key:_.uid,role:"menuitem",tabIndex:0,title:x,"aria-label":x,class:this.classes(Ts_button,A),onkeyup:this._handleActionMenuItemKeyup,bind:this,"data-action-uid":_.uid,onclick:this._triggerAction,onkeydown:this._triggerAction},U):(0,Yt.u)("div",{key:_.uid,role:"button",tabIndex:0,title:x,"aria-label":x,class:this.classes(Ts_button,A),onkeyup:this._handleActionMenuItemKeyup,bind:this,"data-action-uid":_.uid,onclick:this._triggerAction,onkeydown:this._triggerAction},U);return _.visible?ne:null}renderFeatureMenuItem(d,_){const{messages:T,messagesCommon:x}=this,{selectedFeatureIndex:A,selectedFeatureViewModel:U}=this.viewModel,ne=d===U,fe={"esri-popup__feature-menu-item--selected":ne},Oe=ne?(0,Yt.u)("span",{key:Cd(`feature-menu-selected-feature-${A}`),title:T.selectedFeature,"aria-label":T.selectedFeature,class:"esri-icon-check-mark"}):null,we=(0,Yt.u)("span",{innerHTML:d.title||x.untitled});return(0,Yt.u)("li",{role:"menuitem",tabIndex:-1,key:Cd(`feature-menu-feature-${A}`),class:this.classes(fe,"esri-popup__feature-menu-item"),bind:this,"data-feature-index":_,onblur:this._removeActiveFeature,onfocus:this._setActiveFeature,onkeyup:this._handleFeatureMenuItemKeyup,onclick:this._selectFeature,onkeydown:this._selectFeature,onmouseover:this._setActiveFeature,onmouseleave:this._removeActiveFeature},(0,Yt.u)("span",{class:"esri-popup__feature-menu-title"},we,Oe))}renderFeatureMenu(){const{featureMenuId:d}=this,{featureViewModels:_}=this.viewModel;return _.length>1?(0,Yt.u)("ol",{class:"esri-popup__feature-menu-list",id:d,bind:this,afterCreate:this._featureMenuNodeUpdated,afterUpdate:this._featureMenuNodeUpdated,onkeyup:this._handleFeatureMenuKeyup,role:"menu"},_.filter(T=>!!T.graphic).map((T,x)=>this.renderFeatureMenuItem(T,x))):null}_storeExitRelatedRecordsAction(d,_){this._exitRelatedRecordsActions.set(d,_),this.scheduleRender()}_getFlowItemDescription(d){return"featureCountDescription"in d?d.featureCountDescription:d.viewModel.description}_destroyFlowItemWidgets(){this._flowItems.removeAll().forEach(d=>{"showAllEnabled"in d.viewModel&&(d.viewModel.showAllEnabled=!1),d.viewModel=null,d.destroy()})}_handleBackClick(){const d=this._flowItems.pop();this._exitRelatedRecordsActions.delete(d),"showAllEnabled"in d.viewModel&&(d.viewModel.showAllEnabled=!1),d&&(d.viewModel=null,d.destroy())}_getActionTitle(d){const{messages:_,selectedFeature:T,messagesCommon:x}=this,{id:A}=d,U=T?.attributes,ne="zoom-to-feature"===A?(0,_c.n)(d.title,{messages:_}):"remove-selected-feature"===A?(0,_c.n)(d.title,{messages:x}):"zoom-to-clustered-features"===A||"browse-clustered-features"===A?(0,_c.n)(d.title,{messages:_}):d.title;return ne&&U?(0,_c.n)(ne,U):ne}_getActionClass(d){const{selectedFeature:_}=this,T=_?.attributes,{className:x,image:A}=d,U=A||x?x:"esri-icon-default-action";return U&&T?(0,_c.n)(U,T):U}_getActionImage(d){const{selectedFeature:_}=this,T=_?.attributes,{image:x}=d;return x&&T?(0,_c.n)(x,T):x}_createFeatureUpdatedAnimation(){return(0,uo.vU)("enter","esri-popup--feature-updated")}_getInlineActionCount(){const{maxInlineActions:d,featureNavigationVisible:_}=this;if("number"!=typeof d)return null;const T=Math.round(d);return Math.max(_?T-1:T,0)}_watchActions(){const{allActions:d}=this.viewModel;this.notifyChange("dividedActions");const _="actions";this._handles.remove(_),d&&d.forEach(T=>{this._handles.add((0,Ht.YP)(()=>[T.uid,T.active,T.className,T.disabled,T.id,T.title,T.image,T.visible],()=>this.scheduleRender()),_)})}_divideActions(){const{allActions:d}=this.viewModel,_=d.filter(U=>U.visible),T=this._getInlineActionCount(),x=null===T,A=0===T;return{inlineActions:x?_.slice(0):A?new On.Z:_.slice(0,T),menuActions:x?new On.Z:_.slice(A?0:T)}}_featureMenuOpenChanged(d){d?this._focusFirstFeature=!0:this._focusFeatureMenuButton=!0}_actionsMenuOpenChanged(d){d?this._focusFirstAction=!0:this._focusActionsMenuButton=!0}_setTitleFromFeatureWidget(){const{selectedFeatureWidget:d,messagesCommon:_}=this;d&&(this.viewModel.title="error"===d.viewModel?.state?_.errorMessage:d.viewModel?.title||"")}_setContentFromFeatureWidget(){const{selectedFeatureWidget:d}=this;d&&(this.viewModel.content=d)}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(d){this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserver.observe(d),this._featureMenuIntersectionObserverNode=d}_handleFeatureMenuKeyup(d){"Escape"===(0,Dp.kK)(d)&&(d.stopPropagation(),this._focusFeatureMenuButton=!0,this.featureMenuOpen=!1,this.scheduleRender())}_handleActionMenuKeyup(d){"Escape"===(0,Dp.kK)(d)&&(d.stopPropagation(),this._focusActionsMenuButton=!0,this.actionsMenuOpen=!1,this.scheduleRender())}_setActiveFeature(d){const{viewModel:_}=this;_.activeFeature=_.features[d.currentTarget["data-feature-index"]]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_handleFeatureMenuItemKeyup(d){const _=(0,Dp.kK)(d),{_featureMenuNode:T}=this,x=d.currentTarget["data-feature-index"];if(!T)return;const A=T.querySelectorAll("li"),U=A.length;"ArrowUp"!==_?"ArrowDown"!==_?"Home"!==_?"End"!==_||(d.stopPropagation(),A[A.length-1].focus()):(d.stopPropagation(),A[0].focus()):(d.stopPropagation(),A[(x+1+U)%U].focus()):(d.stopPropagation(),A[(x-1+U)%U].focus())}_handleActionMenuItemKeyup(d){const _=(0,Dp.kK)(d),{_actionsMenuNode:T}=this,x=d.currentTarget.dataset.actionUid,{menuActions:A}=this.dividedActions,U=A.findIndex(Oe=>Oe.uid===x);if(!T)return;const ne=T.querySelectorAll("li"),fe=ne.length;"ArrowUp"!==_?"ArrowDown"!==_?"Home"!==_?"End"!==_||(d.stopPropagation(),ne[ne.length-1].focus()):(d.stopPropagation(),ne[0].focus()):(d.stopPropagation(),ne[(U+1+fe)%fe].focus()):(d.stopPropagation(),ne[(U-1+fe)%fe].focus())}_handleMainKeyup(d){const _=(0,Dp.kK)(d);"ArrowLeft"===_&&(d.stopPropagation(),this.previous()),"ArrowRight"===_&&(d.stopPropagation(),this.next())}_spinnerEnabledChange(d){if(this._destroySpinner(),!d)return;const _=this.get("viewModel.view");this._createSpinner(_)}_hideSpinner(){const{_spinner:d}=this;d&&(d.location=null,d.hide())}_displaySpinner(){const{_spinner:d}=this;if(!d)return;const{location:_,waitingForResult:T}=this.viewModel;T?d.show({location:_}):d.hide()}_getIconStyles(d){return{"background-image":d?`url(${d})`:""}}_shouldFocus(d){var _=this;return(0,kr.Z)(function*(){d.shouldFocus&&(yield(0,Ht.N1)(()=>!0===_.viewModel?.active),_.focus())})()}_addSelectedFeatureIndexHandle(){const d=(0,Ht.YP)(()=>this.viewModel?.selectedFeatureIndex,(_,T)=>this._selectedFeatureIndexUpdated(_,T));this._handles.add(d,YS)}_selectedFeatureIndexUpdated(d,_){const{featureCount:T}=this;T&&d!==_&&-1!==d&&(this._destroyFlowItemWidgets(),this.actionsMenuOpen=!1,this.featureMenuOpen=!1,this._mainContainerNode&&(this._mainContainerNode.scrollTop=0),this._rootFlowItemNode&&this._rootFlowItemNode.scrollContentTo({top:0}))}_destroySelectedFeatureWidget(){const{_feature:d}=this;d&&(d.viewModel=null,d&&!d.destroyed&&d.destroy()),this._feature=null}_isScreenLocationWithinView(d,_){return d.x>-1&&d.y>-1&&d.x<=_.width&&d.y<=_.height}_isOutsideView(d){const{popupHeight:_,popupWidth:T,screenLocation:x,side:A,view:U}=d;if(isNaN(T)||isNaN(_)||!U||!x)return!1;const ne=U.padding;return"right"===A&&x.x+T/2>U.width-ne.right||"left"===A&&x.x-T/2U.height-ne.bottom}_calculateAutoAlignment(d){if("auto"!==d)return d;const{_pointerOffsetInPx:_,_containerNode:T,_mainContainerNode:x,viewModel:A}=this,{screenLocation:U,view:ne}=A;if((0,Qe.Wi)(U)||!ne||!T)return"top-center";if(!this._isScreenLocationWithinView(U,ne))return this._get("currentAlignment")||"top-center";function fe(Bt){return parseInt(Bt.replace(/[^-\d\.]/g,""),10)}const Oe=x?window.getComputedStyle(x,null):null,we=Oe?fe(Oe.getPropertyValue("max-height")):0,Ze=Oe?fe(Oe.getPropertyValue("height")):0,{height:it,width:lt}=T.getBoundingClientRect(),dt=lt+_,Tt=Math.max(it,we,Ze)+_,mt=this._isOutsideView({popupHeight:Tt,popupWidth:dt,screenLocation:U,side:"right",view:ne}),Mt=this._isOutsideView({popupHeight:Tt,popupWidth:dt,screenLocation:U,side:"left",view:ne}),Pt=this._isOutsideView({popupHeight:Tt,popupWidth:dt,screenLocation:U,side:"top",view:ne}),Nt=this._isOutsideView({popupHeight:Tt,popupWidth:dt,screenLocation:U,side:"bottom",view:ne});return Mt?Pt?"bottom-right":"top-right":mt?Pt?"bottom-left":"top-left":Pt?Nt?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(d){return"function"==typeof d?d.call(this):d}_getCurrentAlignment(){const{alignment:d,dockEnabled:_}=this;return _||!this.viewModel.active?null:this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(d)))}_setCurrentAlignment(){this._set("currentAlignment",this._getCurrentAlignment())}_setCurrentDockPosition(){this._set("currentDockPosition",this._getCurrentDockPosition())}_calculatePositionResult(d){const _=["left","right"];return(0,uo.dZ)(this.container)&&_.reverse(),d.replace(/leading/gi,_[0]).replace(/trailing/gi,_[1])}_callDockPosition(d){return"function"==typeof d?d.call(this):d}_getDockPosition(){return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position)))}_getCurrentDockPosition(){return this.dockEnabled&&this.viewModel.active?this._getDockPosition():null}_wouldDockTo(){return this.dockEnabled?null:this._getDockPosition()}_calculateAutoDockPosition(d){if("auto"!==d)return d;const _=this.viewModel?.view,T=(0,uo.dZ)(this.container)?"top-left":"top-right";if(!_)return T;const x=_.padding||{left:0,right:0,top:0,bottom:0},A=_.width-x.left-x.right,{breakpoints:U}=_;return U&&A<=U.xsmall?"bottom-center":T}_positionContainer(d=this._containerNode){if(d&&(this._containerNode=d),!d)return;const{screenLocation:_}=this.viewModel,{width:T}=d.getBoundingClientRect(),x=this._calculatePositionStyle(_,T);x&&(d.style.top=x.top,d.style.left=x.left,d.style.bottom=x.bottom,d.style.right=x.right)}_calculateFullWidth(d){const{currentAlignment:_,_pointerOffsetInPx:T}=this;return"top-left"===_||"bottom-left"===_||"top-right"===_||"bottom-right"===_?d+T:d}_calculateAlignmentPosition(d,_,T,x){const{currentAlignment:A,_pointerOffsetInPx:U}=this,ne=x/2,fe=T.height-_,Oe=T.width-d,{padding:we}=this.view;return"bottom-center"===A?{top:_+U-we.top,left:d-ne-we.left}:"top-left"===A?{bottom:fe+U-we.bottom,right:Oe+U-we.right}:"bottom-left"===A?{top:_+U-we.top,right:Oe+U-we.right}:"top-right"===A?{bottom:fe+U-we.bottom,left:d+U-we.left}:"bottom-right"===A?{top:_+U-we.top,left:d+U-we.left}:"top-center"===A?{bottom:fe+U-we.bottom,left:d-ne-we.left}:void 0}_calculatePositionStyle(d,_){const{dockEnabled:T,view:x}=this;if(!x)return;if(T)return{left:"",top:"",right:"",bottom:""};if((0,Qe.Wi)(d)||!_)return;const A=this._calculateFullWidth(_),U=this._calculateAlignmentPosition(d.x,d.y,x,A);return U?{top:void 0!==U.top?`${U.top}px`:"auto",left:void 0!==U.left?`${U.left}px`:"auto",bottom:void 0!==U.bottom?`${U.bottom}px`:"auto",right:void 0!==U.right?`${U.right}px`:"auto"}:void 0}_viewChange(d,_){d&&_&&(this.close(),this.clear())}_viewReadyChange(d,_){if(d){const T=this.get("viewModel.view");this._wireUpView(T)}else _&&(this.close(),this.clear())}_wireUpView(d){if(this._destroySpinner(),!d)return;const{spinnerEnabled:_}=this;_&&this._createSpinner(d),this._setDockEnabledForViewSize(this.dockOptions)}_dockingThresholdCrossed(d,_,T){const[x,A]=d,[U,ne]=_,{width:fe,height:Oe}=T;return x<=fe&&U>fe||x>fe&&U<=fe||A<=Oe&&ne>Oe||A>Oe&&ne<=Oe}_updateDockEnabledForViewSize(d,_){if(!d||!_)return;const T=this.get("viewModel.view.padding")||{left:0,right:0,top:0,bottom:0},x=T.left+T.right,A=T.top+T.bottom,U=[],ne=[];U[0]=d[0]-x,U[1]=d[1]-A,ne[0]=_[0]-x,ne[1]=_[1]-A;const{dockOptions:fe}=this;this._dockingThresholdCrossed(U,ne,fe.breakpoint)&&this._setDockEnabledForViewSize(fe),this._setCurrentDockPosition()}_focusDockButtonNode(d){this._focusDockButton&&(this._focusDockButton=!1,d.focus())}_closeButtonNodeUpdated(d){return this._focusClose?(this._focusClose=!1,void d.focus()):this._blurClose?(this._blurClose=!1,void d.blur()):void 0}_mainContainerNodeUpdated(d){return this._mainContainerNode=d,this._focusContainer?(this._focusContainer=!1,void d.focus()):this._blurContainer?(this._blurContainer=!1,void d.blur()):void 0}_featureMenuNodeUpdated(d){if(this._featureMenuNode=d,!d||!this._focusFirstFeature)return;this._focusFirstFeature=!1;const _=d.querySelectorAll("li");_.length&&_[0].focus()}_actionsMenuNodeUpdated(d){if(this._actionsMenuNode=d,!d||!this._focusFirstAction)return;this._focusFirstAction=!1;const _=d.querySelectorAll("li");_.length&&_[0].focus()}_focusFeatureMenuButtonNode(d){this._focusFeatureMenuButton&&(this._focusFeatureMenuButton=!1,d.focus())}_focusActionsMenuButtonNode(d){this._focusActionsMenuButton&&(this._focusActionsMenuButton=!1,d.focus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&(this._featureMenuViewportNode.scrollTop=0)}_toggleScreenLocationEnabled(){const{dockEnabled:d,viewModel:_}=this;_&&(_.screenLocationEnabled=_.active&&!d)}_shouldDockAtCurrentViewSize(d){const _=d.breakpoint,T=this.viewModel?.view?.ui;if(!T)return!1;const{width:x,height:A}=T;if(isNaN(x)||isNaN(A))return!1;const U=_.hasOwnProperty("width")&&x<=_.width,ne=_.hasOwnProperty("height")&&A<=_.height;return U||ne}_setDockEnabledForViewSize(d){d.breakpoint&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(d))}_getPageText(d,_){return this.featureNavigationVisible?(0,_c.n)(this.messages.pageText,{index:_+1,total:d}):null}_destroySpinner(){const{_spinner:d,view:_}=this;d&&(_&&_.ui&&_.ui.remove(this._spinner,XS),d.destroy(),this._spinner=null)}_createSpinner(d){d&&(this._spinner=new g8({view:d}),d.ui.add(this._spinner,{key:XS,position:"manual"}))}_toggleCollapsed(){this.collapsed=!this.collapsed}_close(){this.close(),this.view&&this.view.focus()}_toggleDockEnabled(){this.dockEnabled=!this.dockEnabled,this._focusDockButton=!0,this.scheduleRender()}_toggleFeatureMenu(){const d=!this.featureMenuOpen;this._featureMenuOpenChanged(d),this.actionsMenuOpen=!1,this.featureMenuOpen=d}_toggleActionsMenu(){const d=!this.actionsMenuOpen;this._actionsMenuOpenChanged(d),this.featureMenuOpen=!1,this.actionsMenuOpen=d}_triggerAction(d){const _=d.currentTarget.dataset.actionUid,{allActions:T}=this.viewModel,x=T.findIndex(U=>U.uid===_),A=T.getItemAt(x);A&&"toggle"===A.type&&(A.value=!A.value),this.actionsMenuOpen=!1,this.viewModel.triggerAction(x)}_selectFeature(d){const _=d.currentTarget["data-feature-index"];isNaN(_)||(this.viewModel.selectedFeatureIndex=_),this.featureMenuOpen=!1,this._focusFeatureMenuButton=!0,this.scheduleRender()}_next(){this.next()}_previous(){this.previous()}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"actionsMenuId",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"actionsMenuButtonId",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"featureMenuId",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"titleId",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"contentId",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"hasContent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"featureNavigationVisible",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"collapsible",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"featureMenuVisible",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"contentCollapsed",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"dividedActions",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0,dependsOn:["_flowItems.length"]})],hi.prototype,"_activeFlowItemWidget",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"actions",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"actionsMenuOpen",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"alignment",void 0),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"autoCloseEnabled",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"autoOpenEnabled",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"defaultPopupTemplateEnabled",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"content",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"collapsed",void 0),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"collapseEnabled",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"currentAlignment",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"currentDockPosition",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"dockOptions",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"dockEnabled",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"featureCount",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"featureMenuOpen",void 0),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"features",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"goToOverride",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"highlightEnabled",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"location",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"label",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"maxInlineActions",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Popup/t9n/Popup")],hi.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/t9n/common")],hi.prototype,"messagesCommon",void 0),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"promises",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"selectedFeature",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"selectedFeatureIndex",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],hi.prototype,"selectedFeatureWidget",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"spinnerEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"title",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"updateLocationEnabled",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"view",null),(0,Ve._)([(0,ke.Cb)({type:$S}),function L8(d){return _=>{_.hasOwnProperty("_delegatedEventNames")||(_._delegatedEventNames=_._delegatedEventNames?_._delegatedEventNames.slice():[]);const T=_._delegatedEventNames,x=Array.isArray(d)?d:function U8(d){return d.split(",").map(_=>_.trim())}(d);T.push(...x)}}(["triggerAction","trigger-action"])],hi.prototype,"viewModel",void 0),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"visible",null),(0,Ve._)([(0,ke.Cb)()],hi.prototype,"visibleElements",void 0),(0,Ve._)([(0,ko.p)("visibleElements")],hi.prototype,"castVisibleElements",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_close",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_toggleDockEnabled",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_toggleFeatureMenu",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_toggleActionsMenu",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_triggerAction",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_selectFeature",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_next",null),(0,Ve._)([(0,fc.h)()],hi.prototype,"_previous",null),hi=(0,Ve._)([(0,Wr.j)("esri.widgets.Popup")],hi);const qS=hi,zM=[0,0];function eA(d){d&&((0,md.cS)(d),d.parentNode&&d.parentNode.removeChild(d))}const V8=d=>{let _=class extends d{constructor(...T){super(...T),this._freqInfo={freq:16,time:750},this._overlayRenderTaskHandle=null,this.height=0,this.overlay=null,this.position=null,this.resizing=!1,this.root=null,this.surface=null,this.suspended=!0,this.ui=null,this.userContent=null,this.width=0,this.widthBreakpoint=null,0!==T.length&&void 0!==T[0]?.popup||(this.popup=new qS({view:this})),this.handles.add([(0,Ht.YP)(()=>this.cursor,x=>{const{surface:A}=this;A&&A.setAttribute("data-cursor",x)}),(0,Ht.YP)(()=>this.interacting,x=>{const{surface:A}=this;A&&A.setAttribute("data-interacting",x.toString())})])}initialize(){this.handles.add((0,Ht.YP)(()=>this.ui,(T,x)=>this._handleUIChange(T,x))),this._wireUI(this.ui),this.handles.add([this.on("focus",()=>this.notifyChange("focused")),this.on("blur",()=>this.notifyChange("focused"))])}destroy(){this.destroyed||(this.ui=(0,Qe.SC)(this.ui),this.popup&&!this.popup.destroyed&&this.popup.destroy(),this.container=null)}get container(){return this._get("container")??null}set container(T){const x=this._get("container"),A=(0,md.L7)(T),U=A instanceof HTMLDivElement?A:null;if(U||"string"!=typeof T||Us.Z.getLogger(this.declaredClass).error("#container",`element with id '${T}' not found`),x===U)return;const ne="dom-size";if(this.handles.remove(ne),this._stopMeasuring(),x&&(x.classList.remove("esri-view"),this._overlayRenderTaskHandle&&(this._overlayRenderTaskHandle.remove(),this._overlayRenderTaskHandle=null),this.overlay&&(this.overlay.destroy(),this._set("overlay",null)),this.root&&(eA(this.root),this._set("root",null)),this.userContent&&((0,md.YD)(this.userContent,x),eA(this.userContent),this._set("userContent",null))),!U)return this._set("width",0),this._set("height",0),this._set("position",null),this._set("suspended",!0),this._set("surface",null),void this._set("container",null);U.classList.add("esri-view");const fe=document.createElement("div");fe.className="esri-view-user-storage",(0,md.YD)(U,fe),U.appendChild(fe),this._set("userContent",fe);const Oe=document.createElement("div");Oe.className="esri-view-root",U.insertBefore(Oe,U.firstChild),this._set("root",Oe);const we=document.createElement("div");we.className="esri-view-surface",we.setAttribute("role","application"),we.tabIndex=0,Oe.appendChild(we),this._set("surface",we);const Ze=new ID;Oe.appendChild(Ze.surface),this._set("overlay",Ze),(0,Ht.YP)(()=>Ze.needsRender,it=>{this._overlayRenderTaskHandle=it&&!this._overlayRenderTaskHandle?(0,gd.A)({render:()=>this.overlay?.render()}):(0,Qe.hw)(this._overlayRenderTaskHandle)}),this.forceDOMReadyCycle(),this.handles.add((0,Ht.YP)(()=>this.size,it=>{const[lt,dt]=it,Tt="esri-view-surface--inset-outline";lt>=document.body.clientWidth||dt>=document.body.clientHeight?we.classList.add(Tt):we.classList.remove(Tt)},Ht.nn),ne),this._set("container",U),this._startMeasuring()}get focused(){const T=document.activeElement===this.surface;return document.hasFocus()&&T}set popup(T){const x=this._get("popup");x&&x!==T&&x.destroy(),this._set("popup",T)}get size(){return[this.width,this.height]}blur(){this.surface&&this.surface.blur()}focus(){this.surface&&this.surface.focus()}pageToContainer(T,x,A){const U=this.position;return T-=U?U[0]:0,x-=U?U[1]:0,A?(A[0]=T,A[1]=x):A=[T,x],A}containerToPage(T,x,A){const U=this.position;return T+=U?U[0]:0,x+=U?U[1]:0,A?(A[0]=T,A[1]=x):A=[T,x],A}_handleUIChange(T,x){x&&(this.handles.remove("ui"),x.destroy()),T&&this._wireUI(T),this._set("ui",T)}_wireUI(T){this.handles.remove("ui"),T&&(T.view=this,this.handles.add([(0,Ht.YP)(()=>this.root,x=>{T.container=x?function F8(d){const _=document.createElement("div");return d.appendChild(_),_}(x):null},Ht.nn),(0,Ht.YP)(()=>this.popup,(x,A)=>{const U="popup";A&&T.remove(A,U),x&&(x.view=T.view,T.add(x,{key:U,position:"manual"}))},Ht.nn)],"ui"))}_stopMeasuring(){this.handles.remove("measuring"),this._get("resizing")&&this._set("resizing",!1)}_startMeasuring(){const T=this._freqInfo;T.freq=16,T.time=750,this.handles.add([(()=>{const x=()=>{T.freq=16,T.time=750};return window.addEventListener("resize",x),{remove(){window.removeEventListener("resize",x)}}})(),(0,gd.A)({prepare:x=>{const A=this._measure(),U=this._freqInfo;if(U.time+=x.deltaTime,A&&(U.freq=16,this._get("resizing")||this._set("resizing",!0)),U.time=512&&this._get("resizing")&&this._set("resizing",!1)}})],"measuring"),this._measure(),this._position()}_measure(){const T=this.container,x=T?T.clientWidth:0,A=T?T.clientHeight:0;if(0===x||0===A)return this.suspended||this._set("suspended",!0),!1;const U=this.width,ne=this.height;return x===U&&A===ne?(this.suspended&&this._set("suspended",!1),!1):(this._set("width",x),this._set("height",A),this.suspended&&this._set("suspended",!1),this.emit("resize",{oldWidth:U,oldHeight:ne,width:x,height:A}),!0)}_position(){const T=this.container,x=this.position,A=T&&function j8(d){const _=(d.ownerDocument||window.document).defaultView,T=d.getBoundingClientRect();return zM[0]=T.left+(_?.pageXOffset??0),zM[1]=T.top+(_?.pageYOffset??0),zM}(T);return!(!A||x&&A[0]===x[0]&&A[1]===x[1]||(this._set("position",[A[0],A[1]]),0))}forceDOMReadyCycle(){}};return(0,Ve._)([(0,ke.Cb)()],_.prototype,"container",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"focused",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"height",void 0),(0,Ve._)([(0,ke.Cb)({type:qS})],_.prototype,"popup",null),(0,Ve._)([(0,ke.Cb)({type:ID})],_.prototype,"overlay",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"position",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"resizing",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"root",void 0),(0,Ve._)([(0,ke.Cb)({value:null,readOnly:!0})],_.prototype,"size",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"surface",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"suspended",void 0),(0,Ve._)([(0,ke.Cb)()],_.prototype,"ui",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"userContent",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],_.prototype,"width",void 0),(0,Ve._)([(0,ke.Cb)()],_.prototype,"widthBreakpoint",void 0),_=(0,Ve._)([(0,Wr.j)("esri.views.DOMContainer")],_),_};var to=v(65234),tA=v(33190),z8=v(13762),po=v(10558);let vh=class extends Va.Z.EventedAccessor{constructor(d){super(d),this.demResolution={min:-1,max:-1},this.noDataValue=po.$7}initialize(){this.view.basemapTerrain.on("elevation-change",()=>this.emit("changed",{}))}get extent(){const d=this.view.basemapTerrain;if((0,Qe.Wi)(d.extent)||(0,Qe.Wi)(d.spatialReference))return null;const _=(0,Bs.HH)(d.extent,d.spatialReference);return _.zmin=d.visibleElevationBounds.min,_.zmax=d.visibleElevationBounds.max,_}get spatialReference(){return(0,Qe.Pt)(this.view.basemapTerrain.spatialReference,to.Z.WGS84)}elevationAt(d,_){if((0,Qe.Wi)(this.extent)||!(0,tA.Kv)(this.extent,d,_)){const T=(0,Qe.pC)(this.extent)?`${this.extent.xmin}, ${this.extent.ymin}, ${this.extent.xmax}, ${this.extent.ymax}`:null;return Us.Z.getLogger(this.declaredClass).warn("#elevationAt()",`Point used to sample elevation (${d}, ${_}) is outside of the sampler extent (${T})`),this.noDataValue}return(0,Qe.Pt)(this.view.elevationProvider.getElevation(d,_,0,this.spatialReference,"ground"),this.noDataValue)}queryElevation(d){return(0,z8.G$)(d.clone(),this)}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],vh.prototype,"demResolution",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],vh.prototype,"extent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],vh.prototype,"noDataValue",void 0),(0,Ve._)([(0,ke.Cb)()],vh.prototype,"spatialReference",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],vh.prototype,"view",void 0),vh=(0,Ve._)([(0,Wr.j)("esri.views.support.GroundViewElevationSampler")],vh);const H8=vh;let Eh=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z,this.view=null,this.layerViews=new On.Z}initialize(){this._handles.add((0,Ht.gx)(()=>this.view?.map?.ground,d=>d.load())),this._handles.add(this.layerViews.on("after-changes",()=>this._layerViewsAfterChangesHandler()))}destroy(){this._set("view",null),this._handles&&(this._handles.destroy(),this._handles=null)}get elevationSampler(){return this.view?"2d"===this.view.type?null:this.view.ready&&this.view.basemapTerrain&&this.view.basemapTerrain.ready?new H8({view:this.view}):null:null}get updating(){return!this.suspended&&this.layerViews.some(d=>d.updating)}get suspended(){return!this.view||this.view.suspended}_layerViewsAfterChangesHandler(){this._handles.remove("updating"),this._handles.add(this.layerViews.map(d=>(0,Ht.YP)(()=>d.updating,()=>this._updateUpdating(),Ht.Z_)).toArray(),"updating"),this._updateUpdating()}_updateUpdating(){this.notifyChange("updating")}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Eh.prototype,"elevationSampler",null),(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],Eh.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Eh.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({type:On.Z,readOnly:!0})],Eh.prototype,"layerViews",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Eh.prototype,"suspended",null),Eh=(0,Ve._)([(0,Wr.j)("esri.views.GroundView")],Eh);const G8=Eh,K8=d=>{let _=class extends d{fetchPopupFeatures(T,x){var A=this;return(0,kr.Z)(function*(){yield A.when();const{location:U,queryArea:ne,layerViewsAndGraphics:fe,clientOnlyGraphics:Oe}=yield A._prepareFetchPopupFeatures(T,x),we=Promise.resolve(Oe),Ze=A._queryLayerPopupFeatures(ne,fe,x),it=Ze.map(lt=>lt.promise);return{location:U,clientOnlyGraphics:Oe,allGraphicsPromise:(0,ws.WW)([we,...it]).then(lt=>Array.from(new Set(lt.flat()))),promisesPerLayerView:Ze}})()}_queryLayerPopupFeatures(T,x,A){return x.map(({layerView:U,graphics:ne})=>{const fe={clientGraphics:ne,event:(0,Qe.pC)(A)?A.event:null,signal:(0,Qe.pC)(A)?A.signal:null,defaultPopupTemplateEnabled:!!(0,Qe.pC)(A)&&!!A.defaultPopupTemplateEnabled},Oe=U.fetchPopupFeatures(T,fe);return{layerView:U,promise:Oe}})}_isValidPopupGraphic(T,x){return T&&!!T.getEffectivePopupTemplate((0,Qe.pC)(x)&&x.defaultPopupTemplateEnabled)}_prepareFetchPopupFeatures(T,x){var A=this;return(0,kr.Z)(function*(){const{clientGraphics:U,queryArea:ne,location:fe}=yield A._popupHitTestGraphics(T,x),Oe=A._getFetchPopupLayerViews(),{layerViewsAndGraphics:we,clientOnlyGraphics:Ze}=A._graphicsPerFetchPopupLayerView(U,Oe);return{clientOnlyGraphics:Ze,layerViewsAndGraphics:we,queryArea:ne,location:fe}})()}_popupHitTestGraphics(T,x){var A=this;return(0,kr.Z)(function*(){const{results:U,mapPoint:ne}=yield A.popupHitTest(T),fe=U.filter(we=>"graphic"===we.type&&A._isValidPopupGraphic(we.graphic,x)),Oe=fe.length?fe[0].mapPoint:null;return{clientGraphics:fe.map(we=>we.graphic),queryArea:ne,location:ne||Oe}})()}_getFetchPopupLayerViews(){const T=[];return this.allLayerViews.forEach(x=>{this._isValidPopupLayerView(x)&&T.push(x)}),(0,Qe.pC)(this.graphicsView)&&this._isValidPopupLayerView(this.graphicsView)&&T.push(this.graphicsView),T.reverse()}_isValidPopupLayerView(T){return(0,Qe.pC)(T)&&(!("layer"in T)||!T.suspended)&&"fetchPopupFeatures"in T}_graphicsPerFetchPopupLayerView(T,x){const A=[],U=new Map,ne=x.map(fe=>{const Oe=[];return U.set("layer"in fe?fe.layer:fe.graphics,Oe),{layerView:fe,graphics:Oe}});for(const fe of T){const Oe=U.get(fe.layer)||U.get(fe.sourceLayer)||null;Oe?Oe.push(fe):A.push(fe)}return{layerViewsAndGraphics:ne,clientOnlyGraphics:A}}};return _=(0,Ve._)([(0,Wr.j)("esri.views.PopupView")],_),_};var Z8=v(97478),wu=v(59213),rA=v(60330),sA=v(51815);let bh=class extends Ns.Z{constructor(d){super(d),this.view=null,this.baseLayerViews=new On.Z,this.referenceLayerViews=new On.Z,this._loadingHandle=(0,Ht.YP)(()=>this.view?.map?.basemap,_=>{_&&_.load().catch(()=>{})},Ht.nn)}destroy(){this._set("view",null),this._loadingHandle&&(this._loadingHandle.remove(),this._loadingHandle=null)}get suspended(){return!this.view||this.view.suspended}get updating(){if(this.view&&this.view.suspended)return!1;const d=this.view?.map?.basemap;return!!d&&!!d.loaded&&(this.baseLayerViews.some(_=>_.updating)||this.referenceLayerViews.some(_=>_.updating))}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],bh.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],bh.prototype,"baseLayerViews",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],bh.prototype,"referenceLayerViews",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],bh.prototype,"suspended",null),(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],bh.prototype,"updating",null),bh=(0,Ve._)([(0,Wr.j)("esri.views.BasemapView")],bh);class $8{constructor(_,T,x){this.layer=_,this.view=T,this.layerViewImporter=x,this._controller=new AbortController,this._deferred=(0,ws.dD)(),this._started=!1,this.done=!1,(0,ws.fu)(this._controller.signal,()=>{const A=new ai.Z("cancelled:layerview-create","layerview creation cancelled",{layer:_});this._deferred.reject(A)})}get promise(){return this._deferred.promise}destroy(){this._controller.abort();const{layerView:_}=this;if(!_)return;const{layer:T,view:x}=this;T.emit("layerview-destroy",{view:x,layerView:_}),x.emit("layerview-destroy",{layer:T,layerView:_}),this.done=!0,this.layer=null,this.layerView=null,this.view=null,this.layerViewImporter=null}start(){var _=this;return(0,kr.Z)(function*(){if(_._started)return;_._started=!0;const{_controller:{signal:T},layer:x,view:A}=_;_._map=A.map;try{let U,ne;if(yield x.load({signal:T}),"prefetchResources"in x&&(yield x.prefetchResources({signal:T})),x.createLayerView)U=yield x.createLayerView(A,{signal:T});else{if(!_.layerViewImporter.hasLayerViewModule(x))throw new ai.Z("layer:view-not-supported","No layerview implementation was found");const we=yield _.layerViewImporter.importLayerView(x);(0,ws.k_)(T),U="default"in we?new we.default({layer:x,view:A}):new we({layer:x,view:A})}const fe=()=>{ne=(0,Qe.hw)(ne),U.destroyed||U.destroy(),U.layer=null,U.parent=null,U.view=null,_.done=!0};ne=(0,ws.fu)(T,fe),(0,ws.k_)(T);try{yield U.when()}catch(we){throw fe(),we}if(!_._map?.allLayers?.includes(x))return fe(),void _._deferred.reject(new ai.Z("view:no-layerview-for-layer","The layer has been removed from the map",{layer:x}));_.layerView=U,x.emit("layerview-create",{view:A,layerView:U}),A.emit("layerview-create",{layer:x,layerView:U}),_.done=!0,_._deferred.resolve(U)}catch(U){x.emit("layerview-create-error",{view:A,error:U}),A.emit("layerview-create-error",{layer:x,error:U}),_.done=!0,_._deferred.reject(new ai.Z("layerview:create-error","layerview creation failed",{layer:x,error:U}))}})()}}let jc=class extends Ns.Z{constructor(d){super(d),this._layerLayerViewInfoMap=new Map,this._watchUpdatingTracking=new l_.t,this.supportsGround=!0,this._preloadLayerViewModules=()=>{const _=this.view.map?.allLayers;if(_)for(const T of _)this.layerViewImporter.hasLayerViewModule(T)&&this.layerViewImporter.importLayerView(T)},this._reschedule=()=>((0,Qe.Wi)(this._workPromise)&&(this._workPromise=(0,ws.dD)(),this._workPromise.promise.catch(()=>{})),this.removeHandles("reschedule"),this.addHandles((0,gd.Os)(this._doWork),"reschedule"),this._workPromise.promise),this._doWork=()=>{const _=this.view.map;if(this._map!==_&&(this.clear(),this._map=_),(0,Qe.Wi)(this._workPromise))return void this.notifyChange("updating");this.removeHandles("reschedule"),this.removeHandles("collection-change");const T=[],x=ne=>{if(!(0,Qe.Wi)(ne))for(const fe of ne)fe&&(T.push(fe),this._createLayerView(fe),"layers"in fe&&fe.layers&&x(fe.layers))};for(const ne of this._rootCollectionNames)x(this.get(ne));this._refreshCollections();for(const[ne,fe]of this._layerLayerViewInfoMap)T.includes(ne)||(this._layerLayerViewInfoMap.delete(fe.layer),fe.destroy());const A=T.filter(ne=>"group"===ne.type).map(ne=>ne.layers),U=[_?.ground?.layers,_?.basemap?.baseLayers,_?.basemap?.referenceLayers,_?.layers,...A].filter(ne=>!!ne);this.addHandles(U.map(ne=>this._watchUpdatingTracking.addOnCollectionChange(()=>ne,this._reschedule)),"collection-change"),this._workPromise.resolve(),this._workPromise=null}}initialize(){this.own([(0,Ht.on)(()=>this.view?.map?.allLayers,"change",this._preloadLayerViewModules,{onListenerAdd:this._preloadLayerViewModules}),(0,Ht.YP)(()=>{const d=this.view,_=d?.map;return[_?.basemap,_?.ground,_?.layers,d?.ready]},()=>this._reschedule(),Ht.tX)]),this._preloadLayerViewModules(),this._reschedule()}destroy(){this.clear(),this._watchUpdatingTracking.destroy(),this._map=null,(0,Qe.pC)(this._workPromise)&&(this._workPromise.reject((0,ws.zE)()),this._workPromise=null)}get _layersToLayerViews(){const d=[["view.map.basemap.baseLayers","view.basemapView.baseLayerViews"],["view.map.layers","view.layerViews"],["view.map.basemap.referenceLayers","view.basemapView.referenceLayerViews"]];return this.supportsGround&&d.push(["view.map.ground.layers","view.groundView.layerViews"]),new Map(d)}get _rootCollectionNames(){return Array.from(this._layersToLayerViews.keys())}get updating(){return(0,Qe.pC)(this._workPromise)||this._watchUpdatingTracking.updating||(0,El.oE)(this._layerLayerViewInfoMap,d=>!d.done)}get updatingRemaining(){let d=0;for(const _ of this._layerLayerViewInfoMap.values())_.done||++d;return d}clear(){if(!this.destroyed){for(const d of this._layerLayerViewInfoMap.values())d.destroy();this._layerLayerViewInfoMap.clear(),this._refreshCollections()}}whenLayerView(d){var _=this;return(0,kr.Z)(function*(){if(yield _._reschedule(),!_._layerLayerViewInfoMap.has(d))throw new ai.Z("view:no-layerview-for-layer","No layerview has been found for the layer",{layer:d});return _._layerLayerViewInfoMap.get(d).promise})()}_refreshCollections(){for(const[d,_]of this._layersToLayerViews)this._populateLayerViewsOwners(this.get(d),this.get(_),this.view);this.notifyChange("updating"),this.notifyChange("updatingRemaining")}_populateLayerViewsOwners(d,_,T){if(!d||!_)return void(_&&_.removeAll());let x=0;for(const A of d){const U=this._layerLayerViewInfoMap.get(A);if(!U||!U.layerView)continue;const ne=U.layerView;ne.layer=A,ne.parent=T,_.getItemAt(x)!==ne&&_.splice(x,0,ne),A.layers&&this._populateLayerViewsOwners(A.layers,ne.layerViews,ne),x+=1}x<_.length&&_.splice(x,_.length)}_createLayerView(d){if(this._layerLayerViewInfoMap.has(d))return this.view.ready&&this._layerLayerViewInfoMap.get(d).start(),this.notifyChange("updating"),void this.notifyChange("updatingRemaining");d.load().catch(()=>{}),this.layerViewImporter.hasLayerViewModule(d)&&this.layerViewImporter.importLayerView(d);const _=new $8(d,this.view,this.layerViewImporter);_.promise.then(()=>this._refreshCollections(),T=>{T&&((0,ws.D_)(T)||"cancelled:layerview-create"===T.name)||Us.Z.getLogger(this.declaredClass).error(`Failed to create layerview for layer title:'${d.title??"no title"}', id:'${d.id??"no id"}' of type '${d.type}'.`,{layer:d,error:T}),this._refreshCollections()}),this._layerLayerViewInfoMap.set(d,_),this.view.ready&&_.start(),this.notifyChange("updating"),this.notifyChange("updatingRemaining")}};(0,Ve._)([(0,ke.Cb)()],jc.prototype,"_workPromise",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],jc.prototype,"_watchUpdatingTracking",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],jc.prototype,"_layersToLayerViews",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],jc.prototype,"_rootCollectionNames",null),(0,Ve._)([(0,ke.Cb)()],jc.prototype,"layerViewImporter",void 0),(0,Ve._)([(0,ke.Cb)()],jc.prototype,"supportsGround",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],jc.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],jc.prototype,"updatingRemaining",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],jc.prototype,"view",void 0),jc=(0,Ve._)([(0,Wr.j)("esri.views.LayerViewManager")],jc);const Y8=jc;let mc=class extends Ns.Z{constructor(d){super(d),this.factor=1.5,this.offset=(0,li.vW)(0,0),this.position=null,this.size=120,this.maskUrl=null,this.maskEnabled=!0,this.overlayUrl=null,this.overlayEnabled=!0,this.visible=!0}get version(){return this.commitProperty("factor"),this.commitProperty("offset"),this.commitProperty("position"),this.commitProperty("visible"),this.commitProperty("size"),this.commitProperty("maskUrl"),this.commitProperty("maskEnabled"),this.commitProperty("overlayUrl"),this.commitProperty("overlayEnabled"),(this._get("version")||0)+1}};(0,Ve._)([(0,ke.Cb)({type:Number})],mc.prototype,"factor",void 0),(0,Ve._)([(0,ke.Cb)({nonNullable:!0})],mc.prototype,"offset",void 0),(0,Ve._)([(0,ke.Cb)()],mc.prototype,"position",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,range:{min:0}})],mc.prototype,"size",void 0),(0,Ve._)([(0,ke.Cb)()],mc.prototype,"maskUrl",void 0),(0,Ve._)([(0,ke.Cb)()],mc.prototype,"maskEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],mc.prototype,"overlayUrl",void 0),(0,Ve._)([(0,ke.Cb)()],mc.prototype,"overlayEnabled",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],mc.prototype,"version",null),(0,Ve._)([(0,ke.Cb)({type:Boolean})],mc.prototype,"visible",void 0),mc=(0,Ve._)([(0,Wr.j)("esri.views.Magnifier")],mc);const iA=mc;var Fn=v(87091);let f_=class extends Ns.Z{constructor(d,_){super({}),this._stage=d,this._textureRequests=new Map,this._frameTask=_?.registerTask(Fn.T8.TEXTURE_UNLOAD)??Fn.sq}normalizeCtorArgs(){return{}}destroy(){super.destroy(),this._frameTask.remove(),this._textureRequests.forEach(d=>this._releaseTextureRequest(d)),this._textureRequests.clear()}get updating(){return this._frameTask.updating}fromData(d,_,T){const x=this.makeUid(d);let A=this._textureRequests.get(x);return A||(A={referenceCount:0,texture:_(),textureAsync:null,abortController:null,onRemove:T},this._stage&&(this._stage.add(A.texture),this._stage.loadImmediate(A.texture)),this._textureRequests.set(x,A)),A.referenceCount++,{uid:x,texture:A.texture,release:()=>this._release(x)}}_release(d){const _=this._textureRequests.get(d);_?(_.referenceCount<1&&console.warn("TextureCollection: reference count is < 1 for "+d),_.referenceCount--,_.referenceCount<1&&this._frameTask.schedule(()=>this._releaseNow(d))):console.warn(`TextureCollection: texture doesn't exist: '${d}'`)}get test(){return{textureRequests:this._textureRequests}}_releaseNow(d){if(!this._textureRequests)return;const _=this._textureRequests.get(d);!_||_.referenceCount>0||(this._releaseTextureRequest(_),this._textureRequests.delete(d))}_releaseTextureRequest(d){d.onRemove&&d.onRemove(),d.texture?this._stage?.remove(d.texture):d.abortController&&(d.abortController.abort(),d.abortController=null)}makeUid(d,_=null){return(0,Qe.pC)(_)?`${d}.${_}px`:d}};(0,Ve._)([(0,ke.Cb)()],f_.prototype,"_frameTask",void 0),(0,Ve._)([(0,ke.Cb)()],f_.prototype,"updating",null),f_=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.TextureCollection")],f_);var nA=v(45458),HM=v(33786);function GM(d){return d.visible&&d.getEditableFlag(HM.bH.USER)&&d.getEditableFlag(HM.bH.MANAGER)}var $l=v(41900);class k8{constructor(){this._pointerLocations=new Map,this._hoveredManipulators=new Map,this._grabbedManipulators=new Map,this._draggedManipulators=new Map,this._stopDrag=!1,this._revertToNullActiveTool=!1,this._cursor=null}get cursor(){return this._cursor}handleInputEvent(_,T){const x=()=>_.stopPropagation();switch(_.type){case"pointer-move":oA(_.pointerType)&&this._pointerLocations.set(_.pointerId,{x:_.x,y:_.y,pointerType:_.pointerType});break;case"drag":this._grabbedManipulators.size>0&&(this._stopDrag=!0),this._stopDrag&&(x(),"end"===_.action&&(this._stopDrag=!1));break;case"pointer-down":{if(!aA(_))break;const A=(0,$l.vT)(_),U=this._intersect(A,_.pointerType,T.forEachTool);if((0,Qe.Wi)(U))break;const ne=U.manipulator,fe=U.tool;!((0,Qe.pC)(ne)&&(0,Qe.pC)(fe)&&ne.interactive)||ne.grabbable&&ne.grabbableForEvent(_)||!ne.grabbing||ne.dragging||this._ungrabManipulatorBeforeDragging(ne,_,T),(0,Qe.pC)(ne)&&(0,Qe.pC)(fe)&&ne.interactive&&ne.grabbable&&ne.grabbableForEvent(_)&&!ne.grabbing&&(this._grabbedManipulators.set(_.pointerId,{manipulator:ne,tool:fe,start:A,pointerType:_.pointerType}),1===this._grabbedManipulators.size&&(0,Qe.Wi)(T.activeTool)&&(this._revertToNullActiveTool=!0,T.setActiveTool(U.tool)),ne.grabbing=!0,ne.events.emit("grab-changed",{action:"start",pointerType:_.pointerType,screenPoint:A}),x());break}case"pointer-up":this._draggedManipulators.has(_.pointerId)||this._handlePointerEnd(_,T);break;case"pointer-drag":{if(!aA(_))break;const A=this._grabbedManipulators.get(_.pointerId),U=(0,Qe.yw)(A,({manipulator:Ze})=>Ze),ne=(0,Qe.yw)(A,({tool:Ze})=>Ze);if((0,Qe.Wi)(U)||(0,Qe.Wi)(ne))break;const fe=(0,$l.vT)(_);fe.x=(0,xr.uZ)(fe.x,0,T.view.width),fe.y=(0,xr.uZ)(fe.y,0,T.view.height);const Oe=(0,Qe.Wg)(A).start,we=this._draggedManipulators.get(_.pointerId);switch(_.action){case"start":case"update":"update"!==_.action&&1!==this._grabbedManipulators.size||(U.dragging=!0,U.events.emit("drag",we?{action:"update",start:Oe,screenPoint:fe}:{action:"start",start:Oe,screenPoint:fe,pointerType:_.pointerType}),this._draggedManipulators.set(_.pointerId,{tool:ne,manipulator:U,start:Oe}));break;case"end":U.dragging=!1,we&&U.events.emit("drag",{action:"end",start:Oe,screenPoint:fe}),this._draggedManipulators.delete(_.pointerId),this._handlePointerEnd(_,T)}x();break}case"immediate-click":{const A=(0,$l.vT)(_),U=this._intersect(A,_.pointerType,T.forEachTool);if(function J8(d){return!!d.native.shiftKey}(_)||T.forEachTool(we=>{if((!(0,Qe.pC)(U)||U.tool!==we||we.automaticManipulatorSelection)&&we.manipulators){let Ze=!1;we.manipulators.forEach(({manipulator:it})=>{it.selected&&(it.selected=!1,Ze=!0)}),Ze&&we.onManipulatorSelectionChanged&&we.onManipulatorSelectionChanged()}}),(0,Qe.Wi)(U))break;const{manipulator:ne,tool:fe}=U;if(!ne.interactive)break;ne.selectable&&fe.automaticManipulatorSelection&&(ne.selected=!ne.selected,fe.onManipulatorSelectionChanged&&fe.onManipulatorSelectionChanged()),ne.events.emit("immediate-click",{screenPoint:A,button:_.button,pointerType:_.pointerType,shiftKey:_.native.shiftKey,stopPropagation:x});break}case"click":{const A=(0,$l.vT)(_),U=this._intersect(A,_.pointerType,T.forEachTool),ne=(0,Qe.pC)(U)?U.manipulator:null;if((0,Qe.Wi)(ne)||!ne.interactive)break;ne.events.emit(_.type,{screenPoint:A,button:_.button,pointerType:_.pointerType,shiftKey:_.native.shiftKey}),x();break}case"double-click":{const A=(0,$l.vT)(_),U=this._intersect(A,_.pointerType,T.forEachTool),ne=(0,Qe.pC)(U)?U.manipulator:null;if((0,Qe.Wi)(ne)||!ne.interactive)break;ne.events.emit("double-click",{screenPoint:A,button:_.button,pointerType:_.pointerType,shiftKey:_.native.shiftKey,stopPropagation:x});break}case"immediate-double-click":{const A=(0,$l.vT)(_),U=this._intersect(A,_.pointerType,T.forEachTool),ne=(0,Qe.pC)(U)?U.manipulator:null;if((0,Qe.Wi)(ne)||!ne.interactive)break;ne.events.emit("immediate-double-click",{screenPoint:A,button:_.button,pointerType:_.pointerType,shiftKey:_.native.shiftKey,stopPropagation:x});break}}this._onFocusChange(T.forEachTool)}_ungrabManipulatorBeforeDragging(_,T,x){_.grabbing=!1,_.events.emit("grab-changed",{action:"end",pointerType:T.pointerType,screenPoint:(0,$l.vT)(T)}),this._grabbedManipulators.forEach(({manipulator:A},U)=>{A===_&&this._grabbedManipulators.delete(U)}),this._afterManipulatorUngrab(x.setActiveTool)}_handlePointerEnd(_,T){const x=(0,Qe.yw)(this._grabbedManipulators.get(_.pointerId),({manipulator:A})=>A);(0,Qe.Wi)(x)||x.grabbing&&(x.grabbing=!1,x.events.emit("grab-changed",{action:"end",pointerType:_.pointerType,screenPoint:(0,$l.vT)(_)}),this._grabbedManipulators.delete(_.pointerId),this._afterManipulatorUngrab(T.setActiveTool))}_cursorFromMap(_){let T=null;return(0,El.oE)(_,({manipulator:x})=>!((0,Qe.Wi)(x)||!x.interactive||(x.grabbing&&x.grabCursor?(T=x.grabCursor,0):!x.cursor||(T=x.cursor,0)))),T}_onFocusChange(_){this._updateCursor(),this._updateFocusedManipulatorTools(_)}_updateCursor(){this._cursor=this._grabbedManipulators.size>0?this._cursorFromMap(this._grabbedManipulators)||"grabbing":this._hoveredManipulators.size>0?this._cursorFromMap(this._hoveredManipulators)||"pointer":null}_updateFocusedManipulatorTools(_){const T=new Set,x=new Set;this._grabbedManipulators.forEach(({tool:A})=>{T.add(A)}),this._hoveredManipulators.forEach(({tool:A})=>{x.add(A)}),_(A=>{A.hasGrabbedManipulators=T.has(A),A.hasHoveredManipulators=x.has(A);const U=this._grabbedManipulators.values(),ne=(0,DD.sE)(U,({tool:fe})=>fe===A);A.firstGrabbedManipulator=(0,Qe.pC)(ne)?ne.manipulator:null})}clearPointers(_,{forEachTool:T,setActiveTool:x},A=!0,U){const ne=(fe,Oe)=>fe===_&&((0,Qe.Wi)(U)||U===Oe);this._grabbedManipulators.forEach(({tool:fe,manipulator:Oe,pointerType:we},Ze)=>{ne(fe,Oe)&&(this._grabbedManipulators.delete(Ze),Oe.grabbing=!1,Oe.events.emit("grab-changed",{action:"end",screenPoint:null,pointerType:we}))}),this._draggedManipulators.forEach(({tool:fe,manipulator:Oe},we)=>{ne(fe,Oe)&&(this._draggedManipulators.delete(we),Oe.dragging=!1,Oe.events.emit("drag",{action:"cancel"}))}),A&&this._hoveredManipulators.forEach(({tool:fe,manipulator:Oe},we)=>{ne(fe,Oe)&&(this._hoveredManipulators.delete(we),Oe.hovering=!1)}),this._afterManipulatorUngrab(x),this._onFocusChange(T)}_intersect(_,T,x){let A=null;return x(U=>{if(null==U.manipulators||!GM(U))return!1;const ne=U.manipulators.intersect(_,T);return!(0,Qe.Wi)(ne)&&(A={tool:U,manipulator:ne},!0)}),A}updateHoveredStateFromKnownPointers(_){this._pointerLocations.forEach((T,x)=>{this._updateHoveredStateForPointerAtScreenPosition((0,li.vW)(T.x,T.y),x,T.pointerType,_)})}handleHoverEvent(_,T){"pointer-up"!==_.type&&"immediate-click"!==_.type&&"pointer-move"!==_.type||!oA(_.pointerType)||this._updateHoveredStateForPointerAtScreenPosition((0,$l.vT)(_),_.pointerId,_.pointerType,T)}_updateHoveredStateForPointerAtScreenPosition(_,T,x,A){let U=this._intersect(_,x,A);const ne=(0,Qe.yw)(this._hoveredManipulators.get(T),({manipulator:fe})=>fe);(0,Qe.pC)(U)&&!U.manipulator.interactive&&(U=null),(0,Qe.pC)(U)&&ne===U.manipulator||((0,Qe.pC)(ne)&&(ne.hovering=!1),(0,Qe.pC)(U)?(U.manipulator.hovering=!0,this._hoveredManipulators.set(T,U)):this._hoveredManipulators.delete(T),this._onFocusChange(A))}_afterManipulatorUngrab(_){0===this._grabbedManipulators.size&&this._revertToNullActiveTool&&(_(null),this._revertToNullActiveTool=!1)}}function oA(d){return"mouse"===d}function aA(d){return"mouse"!==d.pointerType||0===d.button}const lA="attached",KM="tools";let Td=class extends Ip.r{constructor(d){super(d),this._manipulatorState=new k8,this.tools=new On.Z,this.cursor=null,this._forEachTool=_=>{for(const T of this.tools.items)if(_(T))return}}initialize(){var d;this.handles.add([this.view.on(nA.uS,d=>{this._handleInputEvent(d)},Km.f.TOOL),...(d=this.tools,[d.on("before-add",_=>{const T=_.item;if(null==T||d.includes(T))return Us.Z.getLogger("esri.views.interactive.interactiveToolUtils").warn("Tool is either already in the list of tools or tool is `null`. Not adding tool."),void _.preventDefault();T.onAdd()}),d.on("after-remove",_=>{const T=_.item;T.active&&(T.view.activeTool=null),T.destroy()})]),this.tools.on("before-add",({item:d})=>{this._updateToolEditableFlag(d)}),this.tools.on("before-remove",({item:d})=>{this._manipulatorState.clearPointers(d,this._manipulatorStateEventArgs),this._updateCursor()}),this.tools.on("change",()=>{this._refreshToolWatchers()})])}destroy(){this.detach(),this.handles.removeAll()}get _manipulatorStateEventArgs(){return{forEachTool:this._forEachTool,activeTool:this.activeTool,setActiveTool:d=>{this.activeTool=d},view:this.view}}set activeTool(d){if((0,Qe.pC)(d)&&!this.view.ready)return void Us.Z.getLogger(this.declaredClass).error("Cannot set active tool while view is not ready.");if(d===this.activeTool)return;const _=this.activeTool;this._set("activeTool",d),(0,Qe.pC)(_)&&_.deactivate(),(0,Qe.pC)(d)&&d.activate(),this._removeIncompleteTools(d);for(const T of this.tools){this._updateToolEditableFlag(T);const x=GM(T);!(0,Qe.Wi)(this.activeTool)&&x||this._manipulatorState.clearPointers(T,this._manipulatorStateEventArgs,!x)}this._updateCursor()}get updating(){return this.updatingHandles.updating||this.tools.some(d=>d.updating)||(this.textures?.updating??!1)}attach(){"3d"===this.view.type?(this._set("textures",new f_(this.view._stage,this.view.resourceController.scheduler)),this.handles.add([(0,Ht.YP)(()=>{const{state:d}=this.view;return"camera"in d&&d.camera},()=>{this._forEachManipulator(d=>{null!=d.onViewChange&&d.onViewChange()})}),this.view.elevationProvider.on("elevation-change",d=>{this._forEachManipulator(_=>{null!=_.onElevationChange&&_.onElevationChange(d)})}),(0,Sp.kB)(()=>this._set("textures",(0,Qe.SC)(this.textures)))],lA)):this.handles.add((0,Ht.YP)(()=>this.view.extent,()=>{this._forEachManipulator(d=>{null!=d.onViewChange&&d.onViewChange()})}))}detach(){(0,Qe.pC)(this.activeTool)&&(this.activeTool=null),this.tools.removeAll(),this.handles.remove(lA)}_forEachManipulator(d){this._forEachTool(_=>{_.manipulators&&_.manipulators.forEach(({manipulator:T})=>d(T,_))})}_handleInputEvent(d){let _=!1;const T={...d,stopPropagation:()=>{_=!0,d.stopPropagation()}};(0,Qe.pC)(this.activeTool)?this.activeTool.handleInputEvent&&this.activeTool.handleInputEvent(T):this._forEachTool(x=>{!_&&x.visible&&x.handleInputEvent(T)}),!_&&"key-down"===d.type&&"Escape"===d.key&&this.activeTool&&(d.stopPropagation(),this.activeTool=null),this._manipulatorState.handleInputEvent(T,this._manipulatorStateEventArgs),!_&&(0,Qe.pC)(this.activeTool)&&this.activeTool.handleInputEventAfter(T),this._manipulatorState.handleHoverEvent(T,this._forEachTool),this._updateCursor()}_refreshToolWatchers(){this.handles.remove(KM),this._forEachTool(d=>{if(d instanceof Ns.Z){const _=(0,Ht.YP)(()=>[d.cursor,d.visible,d.editable],()=>{GM(d)||this._manipulatorState.clearPointers(d,this._manipulatorStateEventArgs),this._updateCursor()});this.handles.add(_,KM)}d.manipulators&&this.handles.add([d.manipulators.on("after-remove",_=>{this._manipulatorState.clearPointers(d,this._manipulatorStateEventArgs,!0,_.item.manipulator)}),d.manipulators.on("change",()=>{this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool),this._updateCursor()})],KM)}),this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool),this._updateCursor()}_updateToolEditableFlag(d){d.setEditableFlag(HM.bH.MANAGER,(0,Qe.Wi)(this.activeTool)||d===this.activeTool)}_updateCursor(){let d=this._manipulatorState.cursor;(0,Qe.Wi)(d)&&this._forEachTool(_=>!(!(0,Qe.pC)(_.cursor)||!_.visible||(d=_.cursor,0))),this._get("cursor")!==d&&this._set("cursor",d)}_removeIncompleteTools(d){this.tools.filter(_=>((0,Qe.Wi)(d)||_!==d)&&!_.created&&_.removeIncompleteOnCancel).forEach(_=>{this.tools.remove(_)})}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0,nonNullable:!0})],Td.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0,nonNullable:!0})],Td.prototype,"textures",void 0),(0,Ve._)([(0,ke.Cb)({value:null})],Td.prototype,"activeTool",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:On.Z})],Td.prototype,"tools",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Td.prototype,"cursor",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Td.prototype,"updating",null),Td=(0,Ve._)([(0,Wr.j)("esri.views.ToolViewManager")],Td);const Q8=Td;let m_=class extends Ns.Z{constructor(d){super(),this.nativeIndex=null,this._detectedDeviceType="unknown",this._detectedDeviceType="standard"===d.mapping?"standard":q8.test(d.id)?"spacemouse":"unknown",this.nativeIndex=d.index}get native(){const d=navigator.getGamepads?navigator.getGamepads():[];return null!=this.nativeIndex&&this.nativeIndex$M=_)),yield YM,(0,ws.k_)(d)})).apply(this,arguments)}function hA(d,_,T,x){return kM.apply(this,arguments)}function kM(){return(kM=(0,kr.Z)(function*(d,_,T,x){if(!d)return null;const A=d.spatialReference;return(0,di.kR)()||(0,di.Up)(A,_)?(0,di.iV)(d,_):$M?$M.projectGeometry(d,_,T,x):(yield Promise.race([sB(x),(0,di.zD)(x)]),hA(d,_,T,x))})).apply(this,arguments)}let Nn=class extends Ns.Z{constructor(d){super(d),this.required={tileInfo:!1,heightModelInfo:!1,extent:!1},this.defaultSpatialReference=null,this.userSpatialReference=null,this.sourcePreloadCount=10,this.priorityCollection=null,this.requiresExtentInSpatialReference=!0,this.suspended=!1,this._projectExtentTask={task:null,input:null,output:null,spatialReference:null}}destroy(){this._projectExtentTask.task&&(this._projectExtentTask.task=(0,Qe.IM)(this._projectExtentTask.task)),this._set("map",null)}get ready(){return!this._spatialReferenceTask.updating&&!this._tileInfoTask.updating&&!this._extentTask.updating}get heightModelInfoReady(){return!this._heightModelInfoTask.updating}get spatialReference(){return(0,Qe.pC)(this.userSpatialReference)?this.userSpatialReference:(0,Qe.Wg)(this._spatialReferenceTask.spatialReference)}get extent(){return(0,Qe.Wg)(this._extentTask.extent)}get heightModelInfo(){return(0,Qe.Wg)(this._heightModelInfoTask.heightModelInfo)}get vcsWkid(){return(0,Qe.Wg)(this._heightModelInfoTask.vcsWkid)}get latestVcsWkid(){return(0,Qe.Wg)(this._heightModelInfoTask.latestVcsWkid)}get viewingMode(){return(0,Qe.Wi)(this.userSpatialReference)||this.userSpatialReference.equals((0,Qe.Wg)(this._spatialReferenceTask.spatialReference))?(0,Qe.Wg)(this._spatialReferenceTask.viewingMode):null}get tileInfo(){return(0,Qe.Wg)(this._tileInfoTask.tileInfo)}get mapCollections(){const d=this.map?.(),_=[];return(0,Qe.pC)(this.priorityCollection)&&_.push(this.priorityCollection),_.push({parent:d?.basemap,layers:d?.basemap?.baseLayers},{layers:d?.layers},{parent:d?.ground,layers:d?.ground?.layers},{parent:d?.basemap,layers:d?.basemap?.referenceLayers}),_}get _allLayers(){return this._collectLayers(this.mapCollections)}get _spatialReferenceTask(){if(this.suspended)return this._get("_spatialReferenceTask")??{updating:!1};const{layers:d,updating:_}=this._allLayers;let T=null;for(const A of d){const U=this._getSupportedSpatialReferences(A);if(U.length>0){const ne=this._narrowDownSpatialReferenceCandidates(T,U);(0,Qe.pC)(ne)&&(T=ne)}if((0,Qe.pC)(T)&&1===T.length)break}if(_&&((0,Qe.Wi)(T)||1!==T.length))return{updating:!0};const x=this._pickSpatialReferenceCandidate(T);return{spatialReference:(0,Qe.pC)(x)?x.spatialReference:null,viewingMode:(0,Qe.pC)(x)?x.viewingMode:null,updating:!1}}get _tileInfoTask(){if(!this.required.tileInfo)return this._get("_tileInfoTask")??{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const{layers:d,updating:_}=this._collectLayers([{parent:this.map?.()?.basemap,layers:this.map?.()?.basemap?.baseLayers},{layers:this.map?.()?.layers}]);if(d&&d.length>0&&"tileInfo"in d[0]){const T=d[0].tileInfo;return{tileInfo:T&&T.spatialReference.equals(this.spatialReference)?T:null,updating:!1}}return{updating:_}}get _heightModelInfoTask(){if(!this.required.heightModelInfo||this.suspended&&this._get("_heightModelInfoTask")?.heightModelInfo)return this._get("_heightModelInfoTask")??{updating:!1};const{layers:d,updating:_}=this._allLayers;for(const T of d)if((0,dA.qC)(T)){const x=(0,dA.Ku)(T);if(x)return{heightModelInfo:x,vcsWkid:T.spatialReference?.vcsWkid,latestVcsWkid:T.spatialReference?.latestVcsWkid,updating:!1}}return{updating:_}}get _extentCandidatesTask(){if(this.suspended||!this.required.extent)return this._get("_extentCandidatesTask")??{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const d=this._allLayers,_=d.updating,T=[];for(const x of d.layers){const A="fullExtents"in x&&x.fullExtents||((0,Qe.pC)(x.fullExtent)?[x.fullExtent]:[]),U=this.requiresExtentInSpatialReference?null:A[0],ne=A.find(fe=>fe.spatialReference.equals(this.spatialReference))??U;if(ne)return{candidates:[{extent:ne,layer:x}],updating:!1};if(this._getSupportedSpatialReferences(x).length>0)for(const fe of A)T.push({extent:fe,layer:x})}return{candidates:T,updating:_}}get _extentTask(){var d=this;const{candidates:_,updating:T}=this._extentCandidatesTask;if(T)return{updating:T};if((0,Qe.Wi)(_)||0===_.length)return{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const x=this._pickExtentCandidate(_),A=this.spatialReference;return x.extent.equals(this._projectExtentTask.input)&&A.equals(this._projectExtentTask.spatialReference)?{extent:this._projectExtentTask.output,updating:(0,Qe.pC)(this._projectExtentTask.task)&&!this._projectExtentTask.task.finished}:((0,Qe.pC)(this._projectExtentTask.task)&&(this._projectExtentTask.task=(0,Qe.IM)(this._projectExtentTask.task)),this._projectExtentTask={input:x.extent.clone(),output:null,spatialReference:A.clone(),task:(0,wu.vr)(function(){var U=(0,kr.Z)(function*(ne){try{const fe=yield hA(x.extent,A,x.layer.portalItem,ne);d._projectExtentTask={...d._projectExtentTask,task:null,output:fe}}catch{if((0,ws.Hc)(ne))return;d._projectExtentTask={...d._projectExtentTask,task:null}}});return function(ne){return U.apply(this,arguments)}}())},{updating:!0})}_narrowDownSpatialReferenceCandidates(d,_){if((0,Qe.Wi)(d))return _;const T=[],x=(A,U)=>(0,Qe.pC)(A)?(0,Qe.pC)(U)?A===U&&A:A:U;for(const A of d)for(const U of _){if(!A.spatialReference.equals(U.spatialReference))continue;const ne=x(A.viewingMode,U.viewingMode);if(!1!==ne){T.push({spatialReference:A.spatialReference,viewingMode:ne});break}}return T.length>0?T:null}_pickSpatialReferenceCandidate(d){const _=this.defaultSpatialReference;return(0,Qe.Wi)(d)||d.length<1?(0,Qe.pC)(_)?{spatialReference:_,viewingMode:null}:null:((0,Qe.pC)(_)&&d.length>1&&d.some(({spatialReference:T})=>T.equals(_))&&(d=d.filter(({spatialReference:T})=>T.equals(_))),d.length>1&&d.some(({viewingMode:T})=>T!==vi.JY.Local)&&(d=d.filter(({viewingMode:T})=>T!==vi.JY.Local)),d[0])}_getSupportedSpatialReferences(d){const _="supportedSpatialReferences"in d&&d.supportedSpatialReferences||(d.spatialReference?[d.spatialReference]:[]);if(0===_.length)return[];const T=[];for(const x of _){const A=this.getSpatialReferenceSupport({spatialReference:x,layer:d});if((0,Qe.pC)(A)){const U=(0,Qe.pC)(A.constraints)?A.constraints:[{spatialReference:x,viewingMode:null}];for(const{spatialReference:ne,viewingMode:fe}of U)(!this.requiresExtentInSpatialReference||(0,Qe.Wi)(this.userSpatialReference)||ne.equals(this.userSpatialReference))&&T.push({spatialReference:ne,viewingMode:fe})}}return T}_pickExtentCandidate(d){const _=this.spatialReference;return d.find(({extent:T})=>_.equals(T.spatialReference))||d[0]}_collectLayers(d){if("loaded"!==this._loadMaybe(this.map?.()))return{layers:[],updating:!0};const _={layers:[],preloading:-1,updating:!1};for(const T of d)if(this._collectCollection(T,_),_.preloading===this.sourcePreloadCount)break;return{layers:_.layers,updating:_.updating}}_collectCollection(d,_){if(d.layers){switch(this._loadMaybe(d.parent)){case"loading":return _.updating=!0,void++_.preloading;case"failed":return}for(const T of d.layers){switch(this._loadMaybe(T)){case"failed":continue;case"loading":_.updating=!0,++_.preloading;break;case"loaded":_.updating||_.layers.push(T),"layers"in T&&this._collectCollection({layers:T.layers},_)}if(_.preloading===this.sourcePreloadCount)break}}}_loadMaybe(d){return d&&"loadStatus"in d?"not-loaded"===d.loadStatus?(d.load().catch(()=>{}),"loading"):d.loadStatus:"loaded"}};var Qv;(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"required",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Nn.prototype,"map",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Nn.prototype,"getSpatialReferenceSupport",void 0),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"defaultSpatialReference",void 0),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"userSpatialReference",void 0),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"sourcePreloadCount",void 0),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"priorityCollection",void 0),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"requiresExtentInSpatialReference",void 0),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"suspended",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"ready",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"heightModelInfoReady",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"spatialReference",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"extent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"heightModelInfo",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"vcsWkid",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"latestVcsWkid",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"viewingMode",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"tileInfo",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"mapCollections",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"_allLayers",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"_spatialReferenceTask",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"_tileInfoTask",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"_heightModelInfoTask",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Nn.prototype,"_extentCandidatesTask",null),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"_extentTask",null),(0,Ve._)([(0,ke.Cb)()],Nn.prototype,"_projectExtentTask",void 0),Nn=(0,Ve._)([(0,Wr.j)("esri.views.support.DefaultsFromMap")],Nn);let Ti=Qv=class extends((0,Ip.p)(Va.Z.EventedMixin((0,rA.v)(Ns.Z)))){constructor(d){super(d),this._userSpatialReference=null,this._cursor=null,this.allLayerViews=new Sv.Z({getCollections:()=>[this.basemapView?.baseLayerViews,this.groundView?.layerViews,this.layerViews,this.basemapView?.referenceLayerViews],getChildrenFunction:_=>_.layerViews}),this.groundView=null,this.basemapView=null,this.fatalError=null,this.graphics=new sA.J,this.analyses=new a_,this.typeSpecificPreconditionsReady=!0,this.layerViews=new On.Z,this.magnifier=new iA,this.padding={left:0,top:0,right:0,bottom:0},this.ready=!1,this.spatialReferenceWarningDelay=1e3,this.supportsGround=!0,this.timeExtent=null,this.type=null,this.scale=null,this.updating=!1,this.initialExtentRequired=!0,this.input=new rB,this.navigation=new uA,this.layerViewManager=null,this.analysisViewManager=null,this.isHeightModelInfoRequired=!1,this.width=null,this.height=null,this.resizing=!1,this.suspended=!1,this.viewEvents=new nA.CE(this),this.persistableViewModels=new On.Z,this._isValid=!1,this._readyCycleForced=!1,this.handles.add((0,Ht.YP)(()=>this.preconditionsReady,_=>{_?(this._currentSpatialReference=this.spatialReference,Qv.views.add(this)):(this._currentSpatialReference=null,Qv.views.remove(this)),this.notifyChange("spatialReference"),!_&&this.ready?(this.toolViewManager?.detach(),(0,Qe.pC)(this.analysisViewManager)&&this.analysisViewManager.detach(),this.layerViewManager?.clear(),this._teardown()):_&&!this.ready&&(this._startup(),(0,Qe.pC)(this.analysisViewManager)&&this.analysisViewManager.attach(),this.toolViewManager.attach())},Ht.Z_))}initialize(){this.addResolvingPromise(this.validate().then(()=>(this._isValid=!0,(0,Ht.N1)(()=>this.ready)))),this.basemapView=new bh({view:this}),this.layerViewManager=new Y8({view:this,layerViewImporter:{importLayerView:d=>this.importLayerView(d),hasLayerViewModule:d=>this.hasLayerViewModule(d)},supportsGround:this.supportsGround}),this.toolViewManager=new Q8({view:this}),this._setupSpatialReferenceLogger(),this.handles.add([(0,Ht.YP)(()=>this.initialExtentRequired,d=>this.defaultsFromMap.required={...this.defaultsFromMap.required,extent:d},{sync:!0,initial:!0}),(0,Ht.YP)(()=>this.ready,d=>{this.defaultsFromMap&&(this.defaultsFromMap.suspended=d,this.defaultsFromMap.userSpatialReference=d?this.spatialReference:this._userSpatialReference)},{sync:!0}),(0,Ht.YP)(()=>this._userSpatialReference,d=>{this.defaultsFromMap&&(this.defaultsFromMap.userSpatialReference=d)},{sync:!0,initial:!0})])}_setupSpatialReferenceLogger(){var d=this;let _=null;this.handles.add([(0,Ht.YP)(()=>this.defaultsFromMap?.ready,T=>{if(T&&!this.spatialReference&&this.map?.allLayers.length>0){if((0,Qe.pC)(_))return;const A=(0,Sp.kB)(()=>_=(0,Qe.IM)(_));_=(0,wu.vr)(function(){var U=(0,kr.Z)(function*(ne){try{yield(0,ws.e4)(d.spatialReferenceWarningDelay,null,ne)}catch{return}finally{_=null}Us.Z.getLogger(d.declaredClass).warn("#spatialReference","no spatial reference could be derived from the currently added map layers")});return function(ne){return U.apply(this,arguments)}}()),this.handles.add(A,"spatial-reference-logger-task")}else this.handles.remove("spatial-reference-logger-task")},{sync:!0})])}destroy(){if(this.destroyed)return;this.viewEvents.destroy(),this.allLayerViews.destroy(),this.navigation&&(this.navigation.destroy(),this._set("navigation",null)),this.graphics=(0,Qe.SC)(this.graphics),this.analyses=(0,Qe.SC)(this.analyses),this.handles.remove("defaultsFromMap"),this.defaultsFromMap.destroy(),this._set("defaultsFromMap",null),(0,Qe.SC)(this.analysisViewManager),this.toolViewManager=(0,Qe.SC)(this.toolViewManager),this.layerViewManager=(0,Qe.SC)(this.layerViewManager),this.basemapView=(0,Qe.SC)(this.basemapView),this.invalidate(),this._emitter.clear(),this.handles.removeAll();const d=this.map;this.map=null,d?.destroy()}_startup(){this._set("ready",!0)}_teardown(){this._set("ready",!1)}whenReady(){return Promise.resolve(this)}toMap(){return Us.Z.getLogger(this.declaredClass).error("#toMap()","Not implemented on this instance of View"),null}get activeTool(){return this.toolViewManager?.activeTool}set activeTool(d){this.toolViewManager&&(this.toolViewManager.activeTool=d)}get animation(){return this._get("animation")}set animation(d){this._set("animation",d)}get _defaultsFromMapSettings(){return{}}get defaultsFromMap(){return new Nn({required:{tileInfo:!1,heightModelInfo:!1,extent:!1},map:()=>this.map,getSpatialReferenceSupport:d=>this.getSpatialReferenceSupport(d),...this._defaultsFromMapSettings})}get extent(){return this._get("extent")}set extent(d){this._set("extent",d)}get heightModelInfo(){return this.getDefaultHeightModelInfo()}get interacting(){return this.navigating}get navigating(){return!1}get preconditionsReady(){return!(this.fatalError||!this._isValid||this._readyCycleForced||!this.map||OT.Z.isLoadable(this.map)&&!this.map.loaded||0===this.width||0===this.height||!this.spatialReference||!this._validateSpatialReference(this.spatialReference)||!this._currentSpatialReference&&!this.defaultsFromMap?.ready||!this.typeSpecificPreconditionsReady)}set map(d){d!==this._get("map")&&(d?.destroyed&&(Us.Z.getLogger(this.declaredClass).warn("#map","The provided map is already destroyed",{map:d}),d=null),OT.Z.isLoadable(d)&&d.load().catch(()=>{}),this.constructed&&(this.forceReadyCycle(),this._currentSpatialReference=null),this._set("map",d))}get spatialReference(){let d=this._userSpatialReference||this._currentSpatialReference||this.getDefaultSpatialReference()||null;return d&&this.defaultsFromMap?.required?.heightModelInfo&&(d=d.clone(),d.vcsWkid=this.defaultsFromMap.vcsWkid,d.latestVcsWkid=this.defaultsFromMap.latestVcsWkid),d}set spatialReference(d){const _=!(0,hc.fS)(d,this._get("spatialReference"));this._set("_userSpatialReference",d),_&&(this._set("spatialReference",d),this._spatialReferenceChanged(d))}_spatialReferenceChanged(d){}get stationary(){return!this.animation&&!this.navigating&&!this.resizing}get tools(){return this.toolViewManager?.tools}get initialExtent(){return this.defaultsFromMap?.extent}get cursor(){const d=this.toolViewManager?this.toolViewManager.cursor:null;return(0,Qe.pC)(d)?d:this._cursor||"default"}set cursor(d){this._cursor=d,this.notifyChange("cursor")}get size(){return[this.width,this.height]}whenLayerView(d){return this.layerViewManager.whenLayerView(d)}getDefaultSpatialReference(){return this.defaultsFromMap?.spatialReference}getDefaultHeightModelInfo(){return(this.map&&"heightModelInfo"in this.map?this.map.heightModelInfo:void 0)??this.defaultsFromMap?.heightModelInfo??null}importLayerView(d){throw new ai.Z("importLayerView() not implemented")}hasLayerViewModule(d){return!1}validate(){return(0,kr.Z)(function*(){})()}invalidate(){this._isValid=!1}getSpatialReferenceSupport(){return{constraints:null}}_validateSpatialReference(d){return(0,Qe.pC)(this.getSpatialReferenceSupport({spatialReference:d}))}when(d,_){return this.isResolved()&&!this.ready&&Us.Z.getLogger(this.declaredClass).warn("#when()","Calling view.when() while the view is no longer ready but was already resolved once will resolve immediately. Use reactiveUtils.whenOnce(() => view.ready).then(...) instead."),super.when(d,_)}forceReadyCycle(){this.ready&&((0,Ht.gx)(()=>!1===this.preconditionsReady,()=>this._readyCycleForced=!1,{once:!0}),this._readyCycleForced=!0)}addAndActivateTool(d){this.toolViewManager.tools.add(d),this.activeTool=d}tryFatalErrorRecovery(){this.fatalError=null}};Ti.views=new On.Z,(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"_userSpatialReference",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"activeTool",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"allLayerViews",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"groundView",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"animation",null),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"basemapView",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"_defaultsFromMapSettings",null),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"defaultsFromMap",null),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"fatalError",void 0),(0,Ve._)([(0,ke.Cb)({type:bl.Z})],Ti.prototype,"extent",null),(0,Ve._)([(0,ke.Cb)((0,Av.z)(sA.J,"graphics"))],Ti.prototype,"graphics",void 0),(0,Ve._)([(0,ke.Cb)((0,Av.z)(a_,"analyses"))],Ti.prototype,"analyses",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:AD.Z})],Ti.prototype,"heightModelInfo",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"interacting",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"navigating",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0,dependsOn:["fatalError","_isValid","_readyCycleForced","map","map.loaded?","width","height","spatialReference","_currentSpatialReference","defaultsFromMap.ready","typeSpecificPreconditionsReady"]})],Ti.prototype,"preconditionsReady",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"typeSpecificPreconditionsReady",void 0),(0,Ve._)([(0,ke.Cb)({type:On.Z,readOnly:!0})],Ti.prototype,"layerViews",void 0),(0,Ve._)([(0,ke.Cb)({type:iA})],Ti.prototype,"magnifier",void 0),(0,Ve._)([(0,ke.Cb)({value:null,type:PD})],Ti.prototype,"map",null),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"padding",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"ready",void 0),(0,Ve._)([(0,ke.Cb)({type:to.Z})],Ti.prototype,"spatialReference",null),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"spatialReferenceWarningDelay",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"stationary",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"supportsGround",void 0),(0,Ve._)([(0,ke.Cb)({type:Z8.Z})],Ti.prototype,"timeExtent",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"tools",null),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"toolViewManager",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Number})],Ti.prototype,"scale",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"updating",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"initialExtentRequired",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"initialExtent",null),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"cursor",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"input",void 0),(0,Ve._)([(0,ke.Cb)({type:uA,nonNullable:!0})],Ti.prototype,"navigation",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"layerViewManager",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"analysisViewManager",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"width",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"height",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"resizing",void 0),(0,Ve._)([(0,ke.Cb)({value:null,readOnly:!0})],Ti.prototype,"size",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"suspended",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"viewEvents",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ti.prototype,"persistableViewModels",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"_isValid",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"_readyCycleForced",void 0),(0,Ve._)([(0,ke.Cb)()],Ti.prototype,"_currentSpatialReference",void 0),Ti=Qv=(0,Ve._)([(0,Wr.j)("esri.views.View")],Ti);const iB=Ti;let Th=class extends rA.D{constructor(d){super(d),this.state="running",this.target=null,this._dfd=null}initialize(){this.addResolvingPromise(new Promise((d,_)=>this._dfd={resolve:d,reject:_}))}get done(){return"finished"===this.state||"stopped"===this.state}stop(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","stopped"),this._dfd?.reject(new ai.Z("ViewAnimation stopped")))}finish(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","finished"),this._dfd?.resolve())}update(d,_){_||(_=(0,ws.y8)(d)?"waiting-for-target":"running"),this._set("target",d),this._set("state",_)}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Th.prototype,"done",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:String})],Th.prototype,"state",void 0),(0,Ve._)([(0,ke.Cb)()],Th.prototype,"target",void 0),Th=(0,Ve._)([(0,Wr.j)("esri.views.ViewAnimation")],Th),(Th||(Th={})).State={RUNNING:"running",STOPPED:"stopped",FINISHED:"finished",WAITING_FOR_TARGET:"waiting-for-target"};const g_=Th,Xm=()=>Promise.all([v.e(8592),v.e(8562)]).then(v.bind(v,8562)),pA=()=>Promise.all([v.e(8592),v.e(4976)]).then(v.bind(v,64976)),_A={"base-dynamic":()=>Promise.all([v.e(9759),v.e(5627)]).then(v.bind(v,95627)),"base-elevation":pA,"base-tile":Xm,"bing-maps":Xm,"building-scene":()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(2144),v.e(4341),v.e(9410),v.e(3279),v.e(8592),v.e(8068)]).then(v.bind(v,81736)),csv:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(4048)]).then(v.bind(v,84048)),dimension:()=>v.e(6886).then(v.bind(v,26886)),elevation:pA,feature:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(6446)]).then(v.bind(v,16446)),geojson:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(4937)]).then(v.bind(v,54937)),graphics:()=>Promise.all([v.e(1832),v.e(8592),v.e(1561)]).then(v.bind(v,62359)),group:()=>v.e(961).then(v.bind(v,961)),imagery:()=>Promise.all([v.e(9759),v.e(4366)]).then(v.bind(v,4366)),"integrated-mesh":()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(2144),v.e(4341),v.e(4186)]).then(v.bind(v,4186)),"line-of-sight":()=>v.e(8325).then(v.bind(v,68325)),"map-image":()=>Promise.all([v.e(9759),v.e(8592),v.e(1955)]).then(v.bind(v,81955)),media:()=>Promise.all([v.e(8592),v.e(9094)]).then(v.bind(v,59094)),"ogc-feature":()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(3835)]).then(v.bind(v,3835)),"open-street-map":Xm,"oriented-imagery":()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(6446)]).then(v.bind(v,16446)),"point-cloud":()=>Promise.all([v.e(4471),v.e(8592),v.e(154)]).then(v.bind(v,61525)),voxel:()=>v.e(9991).then(v.bind(v,19991)),route:()=>Promise.all([v.e(1832),v.e(403),v.e(8592),v.e(5645)]).then(v.bind(v,62124)),scene:d=>null==d.profile||"mesh-pyramids"===d.profile?Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(2144),v.e(4341),v.e(3279),v.e(8592),v.e(15)]).then(v.bind(v,80015)):Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(2144),v.e(8592),v.e(9973)]).then(v.bind(v,39988)),stream:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(9372),v.e(937)]).then(v.bind(v,20937)),tile:Xm,"imagery-tile":()=>Promise.all([v.e(8594),v.e(8592),v.e(342)]).then(v.bind(v,10342)),"vector-tile":()=>Promise.all([v.e(8364),v.e(8592),v.e(921)]).then(v.bind(v,63038)),wcs:()=>Promise.all([v.e(8594),v.e(8592),v.e(342)]).then(v.bind(v,10342)),"web-tile":Xm,wfs:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(1832),v.e(8203),v.e(126),v.e(8726)]).then(v.bind(v,68726)),wms:()=>Promise.all([v.e(9759),v.e(8592),v.e(8765)]).then(v.bind(v,48765)),wmts:()=>Promise.all([v.e(8592),v.e(6373)]).then(v.bind(v,6373)),"geo-rss":null,kml:null,"map-notes":null,"subtype-group":null,unknown:null,unsupported:null},mA="analyses-owner-handles";var y_,zp,d;(d=y_||(y_={}))[d.PENDING=0]="PENDING",d[d.CREATED=1]="CREATED",function(d){d[d.ADDED=0]="ADDED",d[d.REMOVED=1]="REMOVED"}(zp||(zp={}));let Hp=class extends Ip.r{constructor(d){super(d),this._allAnalysisViews=new On.Z,this._creatingViewCount=0,this._items=new Map,this._scheduledUpdateHandle=null,this._attachedToViewResolver=gA(),this._analysisModules={"area-measurement":{module:null},dimension:{module:null},"direct-line-measurement":{module:null},"line-of-sight":{module:null},slice:{module:null}}}destroy(){this._disconnectOwners(),this._attachedToViewResolver.reject((0,ws.zE)("AnalysisViewManager was destroyed"))}attach(){this._connectOwners(),this._attachedToViewResolver.resolve()}detach(){this._disconnectOwners(),this._attachedToViewResolver.reject((0,ws.zE)()),this._attachedToViewResolver=gA()}get updating(){return!this.view.ready||0!==this._creatingViewCount||this._allAnalysisViews.some(d=>d.updating)}get testInfo(){return{allAnalysisViews:this._allAnalysisViews}}whenAnalysisView(d){var _=this;return(0,kr.Z)(function*(){yield _._attachedToViewResolver.promise;const T=_._items.get(d);if((0,Qe.Wi)(T)||T.state.list===zp.REMOVED)throw new ai.Z("AnalysisViewManager:no-analysisview-for-analysis","The analysis has not been added to view.analyses",{analysis:d});return T.createAnalysisViewTask.promise})()}_connectOwners(){this.handles.add(this._connectAnalysesCollection(this.view.analyses),mA)}_disconnectOwners(){this.handles.remove(mA),this._update(),this._creatingViewCount=0}_connectAnalysesCollection(d){for(const x of d)this._addAnalysis(x);const _=d.on("after-add",x=>this._addAnalysis(x.item)),T=d.on("after-remove",x=>this._removeAnalysis(x.item));return{remove:()=>{_.remove(),T.remove();for(const x of d)this._removeAnalysis(x)}}}_addAnalysis(d){const _=this._items.get(d);if(null==_){const T={state:{view:y_.PENDING,list:zp.ADDED},analysis:d,view:null,createAnalysisViewTask:null};this._items.set(d,T),T.createAnalysisViewTask=(0,wu.vr)(x=>this._createAnalysisViewPromise(T,x))}else _.state.list=zp.ADDED}_removeAnalysis(d){const _=this._items.get(d);null!=_?(_.state.list=zp.REMOVED,this._scheduleUpdate()):Us.Z.getLogger(this.declaredClass).error("Trying to remove analysis which was not added")}_scheduleUpdate(){(0,Qe.pC)(this._scheduledUpdateHandle)||(this._scheduledUpdateHandle=(0,gd.Os)(()=>this._update()))}_update(){this._scheduledUpdateHandle=(0,Qe.hw)(this._scheduledUpdateHandle),this._items.forEach(d=>{if(d.state.list===zp.REMOVED)switch(this._items.delete(d.analysis),d.state.view){case y_.PENDING:d.createAnalysisViewTask=(0,Qe.IM)(d.createAnalysisViewTask);break;case y_.CREATED:(0,Qe.pC)(d.view)&&(this._allAnalysisViews.remove(d.view),d.view=(0,Qe.SC)(d.view),d.createAnalysisViewTask=null)}})}_createAnalysisViewPromise(d,_){var T=this;return(0,kr.Z)(function*(){const x=d.analysis,A=x.type,U=T._analysisModules[A];if(T._creatingViewCount+=1,(0,Qe.Wi)(U.module))try{U.module=yield T._loadAnalysisModule(A)}catch(fe){throw T._creatingViewCount-=1,fe}if((0,ws.Hc)(_))throw T._creatingViewCount-=1,(0,ws.zE)("AnalysisView creation aborted");const ne=new U.module.default({analysis:x,view:T.view});try{yield ne.when()}catch(fe){throw T._creatingViewCount-=1,fe}if((0,ws.Hc)(_))throw T._creatingViewCount-=1,ne.destroy(),(0,ws.zE)("AnalysisView creation aborted");return d.view=ne,d.state.view=y_.CREATED,T._allAnalysisViews.add(ne),T._creatingViewCount-=1,ne})()}_loadAnalysisModule(d){switch(d){case"area-measurement":return Promise.all([v.e(4918),v.e(5043),v.e(1329),v.e(6402),v.e(2943)]).then(v.bind(v,32943));case"dimension":return Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(125),v.e(5043),v.e(4828),v.e(1329),v.e(8592),v.e(73)]).then(v.bind(v,10073));case"direct-line-measurement":return Promise.all([v.e(4918),v.e(5043),v.e(6402),v.e(8592),v.e(6212)]).then(v.bind(v,96212));case"line-of-sight":return Promise.all([v.e(125),v.e(4828),v.e(8592),v.e(9862)]).then(v.bind(v,11467));case"slice":return Promise.all([v.e(125),v.e(9410),v.e(8592),v.e(9303)]).then(v.bind(v,47351))}}};function gA(){const d=(0,ws.hh)();return d.promise.catch(()=>{}),d}(0,Ve._)([(0,ke.Cb)()],Hp.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Hp.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)()],Hp.prototype,"_allAnalysisViews",void 0),(0,Ve._)([(0,ke.Cb)()],Hp.prototype,"_creatingViewCount",void 0),Hp=(0,Ve._)([(0,Wr.j)("esri.views.3d.analysis.AnalysisViewManager3D")],Hp);const oB=Hp;var gc=v(94425),sl=v(98943);let Md=class extends Ns.Z{constructor(d){super(d),this.collision=new km,this.distance=1/0,this.minimumPoiDistance=4,this.tilt=null}get altitude(){return this.mode===vi.JY.Local?null:this._get("altitude")||null}set altitude(d){this.mode!==vi.JY.Local?this._set("altitude",d):Us.Z.getLogger(this.declaredClass).warn("Altitude constraint is ignored in local scenes")}clampAltitude(d){return this.altitude?(0,xr.uZ)(d,this.altitude.min,this.altitude.max):d}clampTilt(d,_){if(!this.tilt)return _;const T=this.tilt(d);return(0,xr.uZ)(_,T.min,T.max)}clampDistance(d){return Math.min(d,this.distance)}createDefaultTilt(){return this.mode===vi.JY.Local?this._createDefaultTiltLocal():this._createDefaultTiltGlobal()}createConstantMaxTilt(d){return(_,T=JM)=>(T.min=Sa.min,T.max=d,T)}_createDefaultTiltLocal(){const d=this.collision.enabled?(0,sl.uV)([[4e3,Sa.max],[1e4,(0,xr.Vl)(88)],[6e6,(0,xr.Vl)(88)]]):()=>Sa.max;return(_,T=JM)=>(T.min=Sa.min,T.max=d(_),T)}_createDefaultTiltGlobal(){const d=(0,sl.uV)(this.collision.enabled?[[4e3,Sa.max],[5e4,(0,xr.Vl)(88)],[6e6,(0,xr.Vl)(88)],[2e7,Sa.min]]:[[3e5,Sa.max],[3e6,(0,xr.Vl)(88)],[6e6,(0,xr.Vl)(88)],[2e7,Sa.min]]);return(_,T=JM)=>(T.min=Sa.min,T.max=d(_),T)}};(0,Ve._)([(0,ke.Cb)()],Md.prototype,"altitude",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Md.prototype,"collision",void 0),(0,Ve._)([(0,ke.Cb)()],Md.prototype,"distance",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Md.prototype,"minimumPoiDistance",void 0),(0,Ve._)([(0,ke.Cb)()],Md.prototype,"tilt",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Md.prototype,"mode",void 0),Md=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.Constraints")],Md);const yA=function aB(d){return{min:-2e5,max:4*d.radius}}(gc.sv),Sa={min:(0,xr.Vl)(.5),max:(0,xr.Vl)(179.5)},JM={min:0,max:0};let km=class extends Ns.Z{constructor(){super(...arguments),this.enabled=!0,this.elevationMargin=5}};(0,Ve._)([(0,ke.Cb)({type:Boolean})],km.prototype,"enabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Number})],km.prototype,"elevationMargin",void 0),km=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.Constraints.CollisionConstraint")],km);let v_=class extends Ns.Z{constructor(){super(...arguments),this.min=yA.min,this.max=yA.max}};(0,Ve._)([(0,ke.Cb)({type:Number})],v_.prototype,"min",void 0),(0,Ve._)([(0,ke.Cb)({type:Number})],v_.prototype,"max",void 0),v_=(0,Ve._)([(0,Wr.j)("esri.views.3d.constraints.AltitudeConstraint")],v_);let Pd=class extends Ns.Z{constructor(){super(...arguments),this.mode="auto"}get near(){return this._get("near")}set near(d){this._set("near",d),d>=this._get("far")&&(this.far=d+1e-9),this.mode="manual"}castNear(d){return Math.max(1e-8,d)}get far(){return this._get("far")}set far(d){this._set("far",d),d<=this._get("near")&&(this.near=d-1e-9),this.mode="manual"}castFar(d){return Math.max(1e-8,d)}autoUpdate(d,_){"auto"===this.mode&&(this._get("near")!==d&&this._set("near",d),this._get("far")!==_&&this._set("far",_))}};(0,Ve._)([(0,ke.Cb)({type:Number,value:1e-8})],Pd.prototype,"near",null),(0,Ve._)([(0,ko.p)("near")],Pd.prototype,"castNear",null),(0,Ve._)([(0,ke.Cb)({type:Number,value:1e-8})],Pd.prototype,"far",null),(0,Ve._)([(0,ko.p)("far")],Pd.prototype,"castFar",null),(0,Ve._)([(0,ke.Cb)({type:["auto","manual"]})],Pd.prototype,"mode",void 0),Pd=(0,Ve._)([(0,Wr.j)("esri.views.3d.constraints.ClipDistanceConstraint")],Pd);const QM={min:(0,xr.BV)(Sa.min),max:(0,xr.BV)(Sa.max)};let Gp=class extends Ns.Z{constructor(){super(...arguments),this.mode="auto"}get max(){return this._get("max")}set max(d){this._set("max",d),this.mode="manual"}castMax(d){return(0,xr.uZ)(d,QM.min,QM.max)}autoUpdate(d){"auto"===this.mode&&this._get("max")!==d&&this._set("max",d)}};(0,Ve._)([(0,ke.Cb)({type:["auto","manual"]})],Gp.prototype,"mode",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,value:QM.max})],Gp.prototype,"max",null),(0,Ve._)([(0,ko.p)("max")],Gp.prototype,"castMax",null),Gp=(0,Ve._)([(0,Wr.j)("esri.views.3d.constraints.TiltConstraint")],Gp);let Kp=class extends Ns.Z{constructor(){super(...arguments),this.tilt=new Gp,this.altitude=new v_,this.clipDistance=new Pd}};var qM;(0,Ve._)([(0,ke.Cb)({type:Gp})],Kp.prototype,"tilt",void 0),(0,Ve._)([(0,ke.Cb)({type:v_})],Kp.prototype,"altitude",void 0),(0,Ve._)([(0,ke.Cb)({type:Pd})],Kp.prototype,"clipDistance",void 0),Kp=(0,Ve._)([(0,Wr.j)("esri.views.3d.constraints.Constraints")],Kp);let Fc=qM=class extends zl.wq{constructor(d){super(d),this.type="sun",this.date=null,this.directShadowsEnabled=!1,this.displayUTCOffset=null}readDate(d,_){return null!=_.datetime&&new Date(_.datetime)||null}writeDate(d,_,T){_[T]=d.getTime()}readDirectShadowsEnabled(d,_){return!!_.directShadows}writedirectShadowsEnabled(d,_,T){d&&(_[T]=d)}writeDisplayUTCOffset(d,_){null!=d&&(_.displayUTCOffset=d)}clone(){return new qM(this.cloneConstructProperties())}cloneConstructProperties(){const d={directShadowsEnabled:this.directShadowsEnabled,displayUTCOffset:null!=this.displayUTCOffset?this.displayUTCOffset:null};return null!=this.date&&(d.date=new Date(this.date.getTime())),d}};(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:["sun"],json:{write:!0}})],Fc.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Date,json:{type:Number,write:{target:"datetime"}}})],Fc.prototype,"date",void 0),(0,Ve._)([(0,wT.r)("date",["datetime"])],Fc.prototype,"readDate",null),(0,Ve._)([(0,wm.c)("date")],Fc.prototype,"writeDate",null),(0,Ve._)([(0,ke.Cb)({type:Boolean,json:{default:!1,write:{target:"directShadows"}}})],Fc.prototype,"directShadowsEnabled",void 0),(0,Ve._)([(0,wT.r)("directShadowsEnabled",["directShadows"])],Fc.prototype,"readDirectShadowsEnabled",null),(0,Ve._)([(0,wm.c)("directShadowsEnabled")],Fc.prototype,"writedirectShadowsEnabled",null),(0,Ve._)([(0,ke.Cb)({type:Number,json:{write:!0}})],Fc.prototype,"displayUTCOffset",void 0),(0,Ve._)([(0,wm.c)("displayUTCOffset")],Fc.prototype,"writeDisplayUTCOffset",null),Fc=qM=(0,Ve._)([(0,Wr.j)("esri.webscene.SunLighting")],Fc);const Jm=Fc;var E_;let Iu=E_=class extends(Va.Z.EventedMixin(Jm)){constructor(d){super(d),this.cameraTrackingEnabled=!0,this.ambientOcclusionEnabled=!1,this.waterReflectionEnabled=!1,this.positionTimezoneInfo={hours:0,minutes:0,seconds:0,autoUpdated:!0};const _=(new Date).getFullYear(),T=new Date("March 15, "+_+" 12:00:00 UTC");this._set("defaultDate",T),this._set("date",T)}get defaultDate(){return new Date(this._get("defaultDate").getTime())}static fromWebsceneLighting(d){return new E_(d.cloneConstructProperties())}set defaultDate(d){const _=this._get("date")===this._get("defaultDate");d=new Date(d.getTime()),this._set("defaultDate",d),_&&this._set("date",d)}set date(d){null!=d&&(this.positionTimezoneInfo.autoUpdated=!1,this._set("date",new Date(d.getTime())))}autoUpdate(d,_){const T=E_.calculateTimezoneOffset(this.positionTimezoneInfo);this.positionTimezoneInfo.hours=_.hours,this.positionTimezoneInfo.minutes=_.minutes,this.positionTimezoneInfo.seconds=_.seconds;let x=null;(0,Qe.pC)(d)&&(this.positionTimezoneInfo.autoUpdated=!0,isNaN(d.getTime())?(x=this.defaultDate.getTime(),this._set("date",this.defaultDate)):(x=this.date&&this.date.getTime(),this._set("date",new Date(d.getTime()))));const A=E_.calculateTimezoneOffset(this.positionTimezoneInfo);if(T!==A&&(eP.target=this,eP.timezoneOffset=A,this.emit("timezone-will-change",eP)),(0,Qe.pC)(d))return!!isNaN(d.getTime())||x!==d.getTime()}clone(){const d=this._get("date")===this._get("defaultDate"),_=new E_({...this.cloneConstructProperties(),defaultDate:this.defaultDate,cameraTrackingEnabled:this.cameraTrackingEnabled,ambientOcclusionEnabled:this.ambientOcclusionEnabled,waterReflectionEnabled:this.waterReflectionEnabled});return d&&_._set("date",_._get("defaultDate")),_.positionTimezoneInfo.autoUpdated=this.positionTimezoneInfo.autoUpdated,_.positionTimezoneInfo.hours=this.positionTimezoneInfo.hours,_.positionTimezoneInfo.minutes=this.positionTimezoneInfo.minutes,_.positionTimezoneInfo.seconds=this.positionTimezoneInfo.seconds,_}cloneWithWebsceneLighting(d){const _=this.clone();return null!=d.date&&(_.date=d.date),_.directShadowsEnabled=d.directShadowsEnabled,_.displayUTCOffset=d.displayUTCOffset,_}cloneNonPersistentConstructProperties(){return{ambientOcclusionEnabled:this.ambientOcclusionEnabled,waterReflectionEnabled:this.waterReflectionEnabled,cameraTrackingEnabled:this.cameraTrackingEnabled}}};(0,Ve._)([(0,ke.Cb)({type:Boolean})],Iu.prototype,"cameraTrackingEnabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],Iu.prototype,"ambientOcclusionEnabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],Iu.prototype,"waterReflectionEnabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Date})],Iu.prototype,"defaultDate",null),(0,Ve._)([(0,ke.Cb)({type:Date})],Iu.prototype,"date",null),Iu=E_=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.SunLighting")],Iu),function(d){d.calculateTimezoneOffset=function _({hours:T,minutes:x,seconds:A}){return Math.round(T+x/60+A/3600)}}(Iu||(Iu={}));const eP={target:null,timezoneOffset:0},Mh=Iu;var tP;let Qm=tP=class extends zl.wq{constructor(d){super(d),this.type="virtual",this.directShadowsEnabled=!1}clone(){return new tP(this.cloneConstructProperties())}cloneConstructProperties(){return{directShadowsEnabled:this.directShadowsEnabled}}};(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:["virtual"],json:{write:!0}})],Qm.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,json:{default:!1,name:"directShadows",write:!0}})],Qm.prototype,"directShadowsEnabled",void 0),Qm=tP=(0,Ve._)([(0,Wr.j)("esri.webscene.VirtualLighting")],Qm);const qv=Qm;var e1;let b_=e1=class extends(Va.Z.EventedMixin(qv)){constructor(d){super(d),this.ambientOcclusionEnabled=!1,this.waterReflectionEnabled=!1,this.cameraTrackingEnabled=!0}clone(){return new e1({...this.cloneConstructProperties(),ambientOcclusionEnabled:this.ambientOcclusionEnabled,waterReflectionEnabled:this.waterReflectionEnabled,cameraTrackingEnabled:this.cameraTrackingEnabled})}static fromWebsceneLighting(d){return new e1(d.cloneConstructProperties())}cloneWithWebsceneLighting(d){const _=this.clone();return _.directShadowsEnabled=d.directShadowsEnabled,_}cloneNonPersistentConstructProperties(){return{ambientOcclusionEnabled:this.ambientOcclusionEnabled,waterReflectionEnabled:this.waterReflectionEnabled,cameraTrackingEnabled:this.cameraTrackingEnabled}}};(0,Ve._)([(0,ke.Cb)({type:Boolean})],b_.prototype,"ambientOcclusionEnabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],b_.prototype,"waterReflectionEnabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],b_.prototype,"cameraTrackingEnabled",void 0),b_=e1=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.VirtualLighting")],b_);const qm=b_,lB={key:"type",defaultKeyValue:"sun",base:null,typeMap:{sun:Mh,virtual:qm}};var rP;let eg=rP=class extends Ns.Z{set quality(d){["low","high"].includes(d)&&this._set("quality",d)}clone(){return new rP({quality:this.quality})}};var sP;(0,Ve._)([(0,ke.Cb)({type:["low","high"],value:"low"})],eg.prototype,"quality",null),eg=rP=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.SceneViewAtmosphere")],eg);let tg=sP=class extends zl.wq{constructor(d){super(d),this.type="sunny",this.cloudCover=.5}clone(){return new sP({cloudCover:this.cloudCover})}};(0,Ve._)([(0,xp.J)({sunny:"sunny"})],tg.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],tg.prototype,"cloudCover",void 0),tg=sP=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.SunnyWeather")],tg);const iP=tg;var nP;let rg=nP=class extends zl.wq{constructor(d){super(d),this.type="cloudy",this.cloudCover=.5}clone(){return new nP({cloudCover:this.cloudCover})}};(0,Ve._)([(0,xp.J)({cloudy:"cloudy"})],rg.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],rg.prototype,"cloudCover",void 0),rg=nP=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.CloudyWeather")],rg);const cB=rg;var oP;let sg=oP=class extends zl.wq{constructor(d){super(d),this.type="foggy",this.fogStrength=.5}clone(){return new oP({fogStrength:this.fogStrength})}};(0,Ve._)([(0,xp.J)({foggy:"foggy"})],sg.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],sg.prototype,"fogStrength",void 0),sg=oP=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.FoggyWeather")],sg);const uB=sg;var aP;let C_=aP=class extends zl.wq{constructor(d){super(d),this.type="rainy",this.cloudCover=.5,this.precipitation=.5}clone(){return new aP({cloudCover:this.cloudCover,precipitation:this.precipitation})}};(0,Ve._)([(0,xp.J)({rainy:"rainy"})],C_.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],C_.prototype,"cloudCover",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],C_.prototype,"precipitation",void 0),C_=aP=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.RainyWeather")],C_);const dB=C_;var lP;let Zp=lP=class extends zl.wq{constructor(d){super(d),this.type="snowy",this.cloudCover=.5,this.precipitation=.5,this.snowCover="disabled"}clone(){return new lP({cloudCover:this.cloudCover,precipitation:this.precipitation,snowCover:this.snowCover})}};(0,Ve._)([(0,xp.J)({snowy:"snowy"})],Zp.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],Zp.prototype,"cloudCover",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],Zp.prototype,"precipitation",void 0),(0,Ve._)([(0,ke.Cb)({type:["enabled","disabled"],nonNullable:!0,json:{write:!0}})],Zp.prototype,"snowCover",void 0),Zp=lP=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.SnowyWeather")],Zp);const vA={key:"type",base:iP,typeMap:{sunny:iP,cloudy:cB,rainy:dB,snowy:Zp,foggy:uB}},hB=Object.keys(vA.typeMap),Nc=1e4,_B={key:"type",defaultKeyValue:"sun",base:null,typeMap:{sun:Jm,virtual:qv}};let t1=class extends zl.wq{constructor(d){super(d)}clone(){}};(0,Ve._)([(0,ke.Cb)({readOnly:!0,json:{read:!1}})],t1.prototype,"type",void 0),t1=(0,Ve._)([(0,Wr.j)("esri.webscene.background.Background")],t1);const EA=t1;var cP;const mB={...v(60958).a,nonNullable:!0};let ig=cP=class extends EA{constructor(d){super(d),this.type="color",this.color=new lo.Z([0,0,0,1])}clone(){return new cP(this.cloneProperties())}cloneProperties(){return{color:this.color.clone()}}};(0,Ve._)([(0,xp.J)({color:"color"},{readOnly:!0})],ig.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)(mB)],ig.prototype,"color",void 0),ig=cP=(0,Ve._)([(0,Wr.j)("esri.webscene.background.ColorBackground")],ig);const bA=ig,CA={base:EA,key:"type",typeMap:{color:bA}},yB={types:CA,json:{read:function gB(d){return(_,T,x)=>{if(!_)return _;for(const A in d.typeMap)if(_.type===A){const U=new d.typeMap[A];return U.read(_,x),U}}}(CA),write:{overridePolicy:(d,_,T)=>({enabled:!T||!T.isPresentation})}}};var uP;const TA="esri.webscene.Environment",vB=Us.Z.getLogger(TA),MA=(d,_,T)=>({enabled:!T||!T.isPresentation});let Ph=uP=class extends zl.wq{constructor(d){super(d),this.lighting=new Jm,this.background=null,this.atmosphereEnabled=!0,this.starsEnabled=!0}set weather(d){(function pB(d,_){return!!hB.includes(d)||(_.error(`"${d}" is not a valid weather type`),!1)})(d?.type,vB)&&this._set("weather",d)}clone(){return new uP(this.cloneConstructProperties())}cloneConstructProperties(){return{lighting:this.lighting&&"virtual"===this.lighting.type?qv.prototype.clone.call(this.lighting):Jm.prototype.clone.call(this.lighting),background:(0,hd.d9)(this.background),atmosphereEnabled:this.atmosphereEnabled,starsEnabled:this.starsEnabled,weather:this.weather.clone()}}};(0,Ve._)([(0,ke.Cb)({types:_B,nonNullable:!0,json:{write:!0}})],Ph.prototype,"lighting",void 0),(0,Ve._)([(0,ke.Cb)(yB)],Ph.prototype,"background",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,nonNullable:!0,json:{write:{overridePolicy:MA}}})],Ph.prototype,"atmosphereEnabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,nonNullable:!0,json:{write:{overridePolicy:MA}}})],Ph.prototype,"starsEnabled",void 0),(0,Ve._)([(0,ke.Cb)({types:vA,nonNullable:!0,json:{write:!0},value:new iP})],Ph.prototype,"weather",null),Ph=uP=(0,Ve._)([(0,Wr.j)(TA)],Ph);const PA=Ph;var ng;let T_=ng=class extends PA{constructor(d){super(d),this.atmosphere=new eg,this.lighting=new Mh,this.cachedCameraTrackingEnabled=null}static fromWebsceneEnvironment(d){const _=d.cloneConstructProperties();return new ng({..._,lighting:"virtual"===_.lighting.type?qm.fromWebsceneLighting(_.lighting):Mh.fromWebsceneLighting(_.lighting)})}castLighting(d){return this._convertLighting(d)}applyLighting(d){this.lighting=this._convertLighting(d)}_convertLighting(d){return d?d instanceof Mh||d instanceof qm?d:d instanceof Jm?this.lighting&&"virtual"!==this.lighting.type?this.lighting.cloneWithWebsceneLighting(d):new Mh({...d.cloneConstructProperties(),...this.lighting?.cloneNonPersistentConstructProperties()}):d instanceof qv?this.lighting&&"virtual"===this.lighting.type?this.lighting.cloneWithWebsceneLighting(d):new qm({...d.cloneConstructProperties(),...this.lighting?.cloneNonPersistentConstructProperties()}):(0,Hl.N7)(lB,d):new Mh}clone(){return new ng({lighting:this.lighting.clone(),atmosphere:this.atmosphere.clone(),weather:this.weather.clone(),atmosphereEnabled:this.atmosphereEnabled,starsEnabled:this.starsEnabled,background:(0,hd.d9)(this.background)})}cloneWithWebsceneEnvironment(d){return new ng({atmosphere:this.atmosphere.clone(),weather:this.weather.clone(),atmosphereEnabled:this.atmosphereEnabled,starsEnabled:this.starsEnabled,background:(0,hd.d9)(this.background),...d.cloneConstructProperties(),lighting:this._getLighting(d)})}_getLighting(d){switch(d.lighting.type){case"sun":return this.lighting&&"sun"===this.lighting.type?this.lighting.cloneWithWebsceneLighting(d.lighting):Mh.fromWebsceneLighting(d.lighting);case"virtual":return this.lighting&&"virtual"===this.lighting.type?this.lighting.cloneWithWebsceneLighting(d.lighting):qm.fromWebsceneLighting(d.lighting);default:return(0,Rm.Bg)(d.lighting),Mh.fromWebsceneLighting(d.lighting)}}};(0,Ve._)([(0,ke.Cb)({type:eg,json:{read:!1},nonNullable:!0})],T_.prototype,"atmosphere",void 0),(0,Ve._)([(0,ke.Cb)({nonNullable:!0})],T_.prototype,"lighting",void 0),(0,Ve._)([(0,ko.p)("lighting")],T_.prototype,"castLighting",null),T_=ng=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.SceneViewEnvironment")],T_);const M_=T_;var pa,pt=v(84161),Tn=v(4794),mi=v(27422),En=v(12080);!function(d){d[d.Simple=0]="Simple",d[d.Realistic=1]="Realistic",d[d.Panoramic=2]="Panoramic",d[d.None=3]="None"}(pa||(pa={}));var ti=v(67831),Qo=v(993),Od=v(61343),un=v(99770),EB=v(56598),lu=v(17625),ro=v(651),so=v(91056),io=v(39114),Gn=v(12407),xt=v(67969),Ds=v(2078);class bB extends lu.K{constructor(){super(...arguments),this.heightParameters=(0,Tn.c)(),this.radii=(0,un.a)(),this.innerFadeDistance=0,this.altitudeFade=0,this.hazeStrength=1}}class og extends so.A{initializeProgram(_){return new Gn.$(_.rctx,og.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)(this.configuration.haze?{blending:(0,Ds.wK)(xt.zi.ONE,xt.zi.ZERO,xt.zi.ONE_MINUS_SRC_COLOR,xt.zi.ONE),colorWrite:Ds.BK}:{blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE_MINUS_SRC_ALPHA),depthTest:{func:xt.wb.LEQUAL},colorWrite:Ds.BK})}}og.shader=new ro.J(EB.C,()=>v.e(6713).then(v.bind(v,66713)));var pi=v(87601);class OA extends pi.m{constructor(){super(...arguments),this.haze=!1}}(0,Ve._)([(0,pi.o)()],OA.prototype,"haze",void 0);var P_=v(59631),_a=v(19597);class xA{constructor(_){this._view=_,this.type=pa.Realistic,this._passParameters=new bB,this._rootTileElevationMin=NaN,this._lowerBoundEarthRadius=gc.sv.radius,this._fadeHaze=0,this._updateRadius(gc.sv.radius)}destroy(){this._atmosphereTechnique=(0,Qe.RY)(this._atmosphereTechnique),this._atmosphereHazeTechnique=(0,Qe.RY)(this._atmosphereHazeTechnique),this._vao=(0,Qe.M2)(this._vao),this._handles=(0,Qe.SC)(this._handles)}initializeRenderContext(_){const T=_.renderContext.rctx,x=this._handles=new Ji.Z;this._updateRootTileElevationBounds(),x.add((0,Ht.YP)(()=>this._view.basemapTerrain.rootTileElevationBounds,()=>this._updateRootTileElevationBounds())),x.add((0,Ht.YP)(()=>this._view.basemapTerrain.visibleElevationBounds,()=>this._updateVisibleElevationBounds()));const A=new OA;A.haze=!1,this._atmosphereTechnique=_.shaderTechniqueRepository.acquire(og,A),A.haze=!0,this._atmosphereHazeTechnique=_.shaderTechniqueRepository.acquire(og,A),this._vao=(0,_a.ow)(T,P_.Bn)}render(_){this._render(_,this._atmosphereTechnique,_.offscreenRenderingHelper.depthTexture)}renderHaze(_,T){this._fadeHaze=T,this._render(_,this._atmosphereHazeTechnique,_.offscreenRenderingHelper.linearDepthTexture)}_render(_,T,x){if((0,Qe.Wi)(x))return;this._update(_.bindParameters.camera),this._passParameters.depthTex=x;const A=_.rctx.bindTechnique(T,this._passParameters,_.bindParameters);_.offscreenRenderingHelper.renderDepthDetached(()=>{this._renderCommon(A,_)})}_renderCommon(_,T){(0,Qe.Wi)(this._vao)||(T.rctx.bindVAO(this._vao),_.assertCompatibleVertexAttributeLocations(this._vao),T.rctx.drawArrays(xt.MX.TRIANGLE_STRIP,0,4))}_adjustRadiusForTesselation(_){return _*Math.cos(Math.PI/16/16)}_updateRootTileElevationBounds(){const _=this._view.basemapTerrain.rootTileElevationBounds.min;_!==this._rootTileElevationMin&&(this._rootTileElevationMin=_,this._lowerBoundEarthRadius=gc.sv.radius,this._updateVisibleElevationBounds())}_updateVisibleElevationBounds(){const _=this._adjustRadiusForTesselation(gc.sv.radius+this._view.basemapTerrain.visibleElevationBounds.min);_this.destroy())}initializeProgram(_){return new Gn.$(_.rctx,r1.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.if)(xt.zi.ONE,xt.zi.SRC_ALPHA),depthTest:{func:xt.wb.LEQUAL},colorWrite:Ds.BK})}}r1.shader=new ro.J(CB.C,()=>v.e(2694).then(v.bind(v,32694)));let $p=class extends Ns.Z{constructor(d){super(d),this._technique=new r1(d),this._vao=(0,_a.ow)(d.rctx)}destroy(){this._technique=(0,Qe.RY)(this._technique),this._vao=(0,Qe.M2)(this._vao)}render(d){const _=d.bindParameters.cloudsFade;if((0,Qe.Wi)(this._vao)||(0,Qe.Wi)(_.data))return;if(!this._technique.compiled)return void this.requestRender();const T=d.rctx.bindTechnique(this._technique,TB,d.bindParameters);d.rctx.bindVAO(this._vao),T.assertCompatibleVertexAttributeLocations(this._vao),d.rctx.drawArrays(xt.MX.TRIANGLE_STRIP,0,4)}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],$p.prototype,"rctx",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],$p.prototype,"viewingMode",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],$p.prototype,"planetRadius",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],$p.prototype,"requestRender",void 0),$p=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.CloudsComposition")],$p);const TB=new lu.K;var Wn=v(12015),no=v(75583),Co=v(30217),gi=v(28347),gn=v(43703),Tl=v(14658),dP=v(89803),il=v(85073);class s1 extends so.A{constructor(_,T){super(_,T,()=>this.destroy())}initializeProgram(_){return new Gn.$(_.rctx,s1.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.if)(xt.zi.CONSTANT_COLOR,xt.zi.ONE_MINUS_CONSTANT_COLOR,xt.db.ADD,this.configuration.writeTextureChannels===no.uz.RG?[1,1,0,0]:[0,0,1,1]),depthTest:{func:xt.wb.LEQUAL},colorWrite:Ds.BK})}}s1.shader=new ro.J(dP.b,()=>v.e(8698).then(v.bind(v,78698)));var ag=v(32849),DA=v(42474),Oh=v(64312),O_=v(85755);class lg extends so.A{initializeProgram(_){return new Gn.$(_.rctx,lg.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)({blending:this.configuration.mode===Oh.u.Full?(0,Ds.if)(xt.zi.ONE,xt.zi.ZERO):(0,Ds.wK)(xt.zi.ZERO,xt.zi.ONE,xt.zi.ONE,xt.zi.ZERO),depthTest:{func:xt.wb.ALWAYS},colorWrite:Ds.BK})}}lg.shader=new ro.J(DA.a,()=>v.e(5337).then(v.bind(v,35337)));var Aa=v(85775);let cg=class extends Ns.Z{constructor(d){super(d),this._needsRender=!0,this._passParameters=new DA.N,this._frameBuffer=new Aa.X(d.context.renderContext.rctx,{colorTarget:xt.Lm.TEXTURE,width:O_.IQ,height:O_.IQ},{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:xt.cw.LINEAR,hasMipmap:!1,width:O_.IQ,height:O_.IQ}),this._vao=(0,_a.ow)(d.context.renderContext.rctx)}get _techniqueRepository(){return this.context.shaderTechniqueRepository}get textureAtlas(){return(0,Qe.pC)(this._texture)?(0,Qe.pC)(this._weatherMapTechnique)&&this._weatherMapTechnique.compiled&&this._needsRender&&(this._texture=this._render(Oh.u.WeatherMap)):(0,Qe.pC)(this._fullTechnique)&&this._fullTechnique.compiled&&(this._texture=this._render(Oh.u.Full)),this._texture}_setDirty(){this._needsRender=!0}updateWeatherMap(d){this._passParameters.weatherTile[0]===d[0]&&this._passParameters.weatherTile[1]===d[1]||((0,ti.c)(this._passParameters.weatherTile,d),this._setDirty())}destroy(){this._fullTechniqueCached=(0,Qe.RY)(this._fullTechniqueCached),this._weatherMapTechniqueCached=(0,Qe.RY)(this._weatherMapTechniqueCached),this._frameBuffer=(0,Qe.M2)(this._frameBuffer),this._vao=(0,Qe.M2)(this._vao)}get _fullTechnique(){if((0,Qe.Wi)(this._fullTechniqueCached)){const d=new Oh.i;d.mode=Oh.u.Full,this._fullTechniqueCached=this._techniqueRepository.acquire(lg,d)}return this._fullTechniqueCached}get _weatherMapTechnique(){if((0,Qe.Wi)(this._weatherMapTechniqueCached)){const d=new Oh.i;d.mode=Oh.u.WeatherMap,this._weatherMapTechniqueCached=this._techniqueRepository.acquire(lg,d)}return this._weatherMapTechniqueCached}_render(d){if((0,Qe.Wi)(this._vao)||(0,Qe.Wi)(this._frameBuffer))return null;const _=d===Oh.u.Full?this._fullTechnique:this._weatherMapTechnique,T=this.context.renderContext.rctx,x=T.getViewport();T.setViewport(0,0,O_.IQ,O_.IQ),T.bindFramebuffer(this._frameBuffer);const A=T.bindTechnique(_,this._passParameters,null);return T.bindVAO(this._vao),A.assertCompatibleVertexAttributeLocations(this._vao),T.gl.drawArrays(T.gl.TRIANGLE_STRIP,0,4),T.setViewport(x.x,x.y,x.width,x.height),this._needsRender=!1,this._frameBuffer.colorTexture}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],cg.prototype,"context",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],cg.prototype,"_techniqueRepository",null),cg=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.NoiseTextureAtlas")],cg);var hP=v(74202);let Ml=class extends Ns.Z{constructor(d){super(d),this.runOncePerFrame=!0,this._handles=new Ji.Z,this._techniques=new Array,this._techniqueConfiguration=new ag.t,this._bindParameters=new hP.p(null,null,null),this._passParameters=new dP.C,this._drawParameters=new dP.a,this._weatherTile=(0,un.a)(),this._weatherTileCount=128,this._faceIndex=0,this._tileIndex=0,this.coverage=(0,xr.t7)(il.L.default.coverage[0],il.L.default.coverage[1],.5),this.density=(0,xr.t7)(il.L.default.density[0],il.L.default.density[1],.5),this.absorption=(0,xr.t7)(il.L.default.absorption[0],il.L.default.absorption[1],.5),this.cloudSize=(0,xr.t7)(il.L.default.cloudSize[0],il.L.default.cloudSize[1],.5),this.detailSize=(0,xr.t7)(il.L.default.detailSize[0],il.L.default.detailSize[1],.5),this.smoothness=(0,xr.t7)(il.L.default.smoothness[0],il.L.default.smoothness[1],.5),this.cloudHeight=(0,xr.t7)(il.L.default.cloudHeight[0],il.L.default.cloudHeight[1],.5),this.raymarchingSteps=il.L.default.raymarchingSteps,this._viewMatrix=(0,gn.c)(),this._dirty=!1,this.running=!1}_getTechnique(d){const _=1-this.context.renderContext.bindParameters.cloudsFade.readChannels,T=_===no.uz.RG?2*d:2*d+1;return this._techniques[T]||(this._techniqueConfiguration.writeTextureChannels=_,this._techniqueConfiguration.steps=d,this._techniques[T]=new s1({rctx:this.context.renderContext.rctx,viewingMode:this.view.state.viewingMode},this._techniqueConfiguration),this._techniques[T])}updateWeatherTile(){(0,ti.s)(this._weatherTile,(this.view.camera.position.latitude+90)/180,(this.view.camera.position.longitude+180)/360);const T=Math.floor(this._weatherTileCount*Math.abs(2*this._weatherTile[0]-1));this._weatherTile[0]=Math.floor(2*this._weatherTileCount*this._weatherTile[0]),this._weatherTile[1]=Math.floor(4*(this._weatherTileCount-T)*this._weatherTile[1]);let x=0,A=0;if((0,Qe.pC)(this.view.environment)&&"virtual"!==this.view.environment.lighting.type&&(0,Qe.pC)(this.view.environment.lighting.date)){const U=new Date(this.view.environment.lighting.date);U.setUTCHours(this.view.environment.lighting.date.getUTCHours()+this.view.environment.lighting.displayUTCOffset),x=31*U.getUTCMonth()+U.getUTCDate(),A=U.getUTCFullYear()}this._weatherTile[0]=(this._weatherTile[0]+x)%(2*this._weatherTileCount),this._weatherTile[1]=(this._weatherTile[1]+A%100)%(4*this._weatherTileCount),(0,ti.o)(this._passParameters.weatherTile,this._weatherTile)||this.setDirty()}initialize(){this._vao=(0,_a.ow)(this.context.renderContext.rctx);const d=(0,En.Iu)(this.view.spatialReference);this._passParameters.cloudRadius=.5*d.radius,this.setDirty(),this.updateWeatherTile(),this._handles.add([this.view.resourceController.scheduler.registerTask(Fn.T8.CLOUDS_GENERATOR,this),(0,Ht.YP)(()=>[this.coverage,this.density,this.absorption,this.cloudSize,this.detailSize,this.smoothness,this.cloudHeight,this.raymarchingSteps],()=>this.setDirty(),Ht.nn)])}destroy(){this._handles.destroy(),this._techniques.forEach(d=>(0,Qe.RY)(d)),this._frameBufferCube=(0,Qe.M2)(this._frameBufferCube),this._techniques.length=0,this._vao=(0,Qe.M2)(this._vao),this._passParameters.noiseTexture=(0,Qe.SC)(this._passParameters.noiseTexture)}get _tilesPerFace(){switch(this._techniqueConfiguration.steps){case ag.p.SIXTEEN:return 1;case ag.p.HUNDRED:return 4;case ag.p.COUNT:case ag.p.TWOHUNDRED:return 8}}_ensureNoiseTexture(){return(0,Qe.pC)(this._passParameters.noiseTexture)||(this._passParameters.noiseTexture=new cg({context:this.context})),this._passParameters.noiseTexture.updateWeatherMap(this._passParameters.weatherTile),(0,Qe.pC)(this._passParameters.noiseTexture.textureAtlas)}_ensureFrameBufferCube(d){return(0,Qe.Wi)(this._frameBufferCube)&&(this._frameBufferCube=new Aa.X(this.context.renderContext.rctx,{colorTarget:xt.Lm.CUBEMAP,width:d,height:d},{target:xt.No.TEXTURE_CUBE_MAP,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:xt.cw.LINEAR,hasMipmap:!1,width:d,height:d})),this._frameBufferCube}get cubeMap(){return this._frameBufferCube}destroyFrameBufferCube(){this._frameBufferCube=(0,Qe.M2)(this._frameBufferCube)}applyPreset(d,_){const T=d.median,x=A=>{const U=(0,xr.t7)(A[0],A[1],T);return _<.5?(0,xr.t7)(A[0],U,2*_):(0,xr.t7)(U,A[1],2*(_-.5))};this.coverage=x(d.coverage),this.density=x(d.density),this.absorption=x(d.absorption),this.cloudSize=x(d.cloudSize),this.detailSize=x(d.detailSize),this.smoothness=x(d.smoothness),this.cloudHeight=x(d.cloudHeight),this.raymarchingSteps=d.raymarchingSteps}setDirty(){this._dirty=this.running=!0}runTask(d){if((0,Qe.Wi)(this._vao))return this._dirty=this.running=!1,void(this.context.renderContext.bindParameters.cloudsFade.renderingStage=no.jL.FINISHED_RENDERING);0===this._faceIndex&&0===this._tileIndex&&(this._passParameters.raymarchingSteps=this.raymarchingSteps,this.updateWeatherTile(),(0,ti.c)(this._passParameters.weatherTile,this._weatherTile));const _=this._getTechnique(this._passParameters.raymarchingSteps);if(!_.compiled||!this.context.renderContext.bindParameters.cloudsFade.isCameraPositionFinal||this.context.renderContext.bindParameters.cloudsFade.isFading||!this._ensureNoiseTexture())return;0===this._faceIndex&&0===this._tileIndex&&(this.context.renderContext.bindParameters.cloudsFade.renderingStage=no.jL.RENDERING,this._passParameters.absorption=this.absorption,this._passParameters.density=this.density,this._passParameters.cloudSize=this.cloudSize,this._passParameters.detailSize=this.detailSize,this._passParameters.smoothness=this.smoothness,this._passParameters.cloudHeight=this.cloudHeight,this._passParameters.coverage=this.coverage,this._dirty=!1);const T=this.context.renderContext.rctx,x=T.bindTechnique(_,this._passParameters,this._bindParameters);T.bindVAO(this._vao),x.assertCompatibleVertexAttributeLocations(this._vao);const A=T.getViewport(),U=_.configuration.cubeMapSize,ne=U/this._tilesPerFace;T.setViewport(0,this._tileIndex*ne,U,ne);const Oe=this._ensureFrameBufferCube(U);T.bindFramebuffer(Oe),(0,gi.u)(this._viewMatrix,OB,MB[this._faceIndex],PB[this._faceIndex]),(0,Co.f)(this._drawParameters.viewMatrix,this._viewMatrix),Oe.setColorTextureTarget(xt.No.TEXTURE_CUBE_MAP_POSITIVE_X+this._faceIndex),x.bindDraw(this._drawParameters,this._bindParameters,this._passParameters),T.gl.drawArrays(T.gl.TRIANGLE_STRIP,0,4),T.gl.flush(),T.setViewport(A.x,A.y,A.width,A.height),this.requestRender(),d.madeProgress(),++this._tileIndex,4===this._faceIndex&&this._tileIndex===this._tilesPerFace?(this.running=this._dirty,this._faceIndex=0,this._tileIndex=0,this.context.renderContext.bindParameters.cloudsFade.renderingStage=no.jL.FINISHED_RENDERING):this._tileIndex===this._tilesPerFace&&(++this._faceIndex,this._tileIndex=0)}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ml.prototype,"context",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ml.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ml.prototype,"requestRender",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"coverage",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"density",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"absorption",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"cloudSize",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"detailSize",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"smoothness",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"cloudHeight",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"raymarchingSteps",void 0),(0,Ve._)([(0,ke.Cb)()],Ml.prototype,"running",void 0),Ml=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.CloudsGenerator")],Ml);const MB=[(0,Tl.f)(1,0,0),(0,Tl.f)(-1,0,0),(0,Tl.f)(0,1,0),(0,Tl.f)(0,-1,0),(0,Tl.f)(0,0,1)],PB=[(0,Tl.f)(0,1,0),(0,Tl.f)(0,1,0),(0,Tl.f)(0,0,-1),(0,Tl.f)(0,0,1),(0,Tl.f)(0,1,0)],OB=(0,Tl.z)();var i1=v(41918);class n1 extends so.A{initializeProgram(_){return new Gn.$(_.rctx,n1.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)(this.configuration.haze?{blending:(0,Ds.wK)(xt.zi.ONE,xt.zi.ZERO,xt.zi.ONE_MINUS_SRC_COLOR,xt.zi.ONE),colorWrite:Ds.BK}:{blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ZERO,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE),colorWrite:Ds.BK})}}n1.shader=new ro.J(i1.H,()=>v.e(7765).then(v.bind(v,7765)));class pP extends pi.m{constructor(){super(...arguments),this.haze=!1}}(0,Ve._)([(0,pi.o)()],pP.prototype,"haze",void 0);let ug=class extends Ns.Z{constructor(d){super(d),this._passParameters=new i1.F,this._vao=(0,_a.ow)(d.context.renderContext.rctx,P_.Bn);const T=(0,En.Iu)(d.view.spatialReference);this._planetRadius=T.radius,this._atmosphereRadius=T.radius+Od.k8}destroy(){this._thickFogTechniqueCached=(0,Qe.RY)(this._thickFogTechniqueCached),this._vao=(0,Qe.M2)(this._vao)}get _shaderTechniqueRepository(){return this.context.shaderTechniqueRepository}set strength(d){this._passParameters.fogStrength=d}get strength(){return this._passParameters.fogStrength}get _thickFogTechnique(){if((0,Qe.Wi)(this._thickFogTechniqueCached)){const d=new pP;d.haze=!1,this._thickFogTechniqueCached=this._shaderTechniqueRepository.acquire(n1,d)}return this._thickFogTechniqueCached}render(d,_){if(this._update(d,_),this._passParameters.fogAmount<=0)return;const T=this._thickFogTechnique;if(!T.compiled)return void this.context.requestRender();const x=d.offscreenRenderingHelper;x.renderDepthDetached(()=>{this._passParameters.depthTexture=x.depthTexture;const A=d.rctx.bindTechnique(T,this._passParameters,d.bindParameters);this._renderFog(A,d)})}_renderFog(d,_){if((0,Qe.Wi)(this._vao))return;const T=_.rctx;T.bindVAO(this._vao),d.assertCompatibleVertexAttributeLocations(this._vao),T.drawArrays(xt.MX.TRIANGLE_STRIP,0,4)}_update(d,_){const T=d.bindParameters.camera;(0,pt.n)(SA,T.eye);const x=Math.max(0,(0,pt.e)(SA,d.bindParameters.lighting.mainLight.direction)),A=_.color;(0,pt.g)(AA,A,.1),(0,pt.h)(this._passParameters.fogColor,AA,A,x);const U=(0,pt.l)(T.eye);this._passParameters.atmosphereC=U*U-this._atmosphereRadius*this._atmosphereRadius,this._passParameters.fogAmount=(1-(0,xr.CW)(9500,1*Nc,Math.abs(U-this._planetRadius)))*_.amount,this._passParameters.fogStrength=_.strength}static isSupported(d){return d.capabilities.depthTexture}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ug.prototype,"context",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ug.prototype,"view",void 0),ug=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.Fog")],ug);class SB{constructor(){this.color=(0,ir.c)(),this.strength=0,this.amount=0}}const SA=(0,ir.c)(),AA=(0,ir.c)();var _P=v(4300),Yp=v(49115);class x_ extends so.A{initializeProgram(_){return new Gn.$(_.rctx,x_.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)(this.configuration.geometry===Yp.n.Cylinder?{blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE_MINUS_SRC_ALPHA),culling:Ds.Rd,depthTest:{func:xt.wb.LEQUAL},colorWrite:Ds.BK}:{blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE_MINUS_SRC_ALPHA),depthTest:{func:xt.wb.LEQUAL},colorWrite:Ds.BK})}}x_.shader=new ro.J(_P.a,()=>v.e(5359).then(v.bind(v,75359)));const RA=new Uint8ClampedArray([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,7,0,0,0,7,0,0,0,7,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,10,0,0,0,10,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,11,0,0,0,11,0,0,0,11,0,0,0,12,0,0,0,12,0,0,0,12,0,0,0,12,0,0,0,13,0,0,0,13,0,0,0,13,0,0,0,13,0,0,0,14,0,0,0,14,0,0,0,14,0,0,0,14,0,0,0,15,0,0,0,15,0,0,0,15,0,0,0,15,0,0,0,15,16,0,0,16,16,0,0,16,16,0,0,16,16,0,0,16,15,0,0,17,15,0,0,17,15,0,0,17,15,0,0,17,14,0,0,18,14,0,0,18,14,0,0,18,13,0,0,19,13,0,0,19,13,0,0,19,13,0,0,19,13,0,0,20,13,0,0,20,13,0,0,20,13,0,0,20,12,0,0,21,12,0,0,21,12,0,0,21,12,0,0,21,12,0,0,22,12,0,0,22,12,0,0,22,12,0,0,22,11,0,0,23,11,0,0,23,11,0,0,23,11,0,0,24,11,0,0,24,11,0,0,24,11,0,0,24,10,0,0,25,10,0,0,25,10,0,0,25,10,0,0,26,10,0,0,26,10,0,0,26,10,0,0,26,9,0,0,27,9,0,0,27,9,0,0,27,18,0,0,28,18,0,0,28,18,0,0,28,18,0,0,28,18,0,0,29,18,0,0,29,18,0,0,29,17,0,0,30,17,0,0,30,17,0,0,30,17,0,0,30,16,0,0,31,16,0,0,31,16,0,0,31,16,0,0,32,16,0,0,32,16,0,0,32,15,0,0,33,15,0,0,33,15,0,0,33,15,0,0,34,15,8,0,34,15,8,0,34,15,8,0,34,15,7,0,35,15,7,0,35,15,7,0,35,21,7,0,36,21,7,0,36,21,7,0,36,21,7,0,37,21,7,0,37,21,7,0,37,20,7,0,38,20,7,0,38,20,7,0,38,20,7,0,39,20,7,0,39,20,7,0,39,20,7,0,39,19,6,0,40,19,6,0,40,19,6,0,40,19,6,0,41,19,6,0,41,19,6,0,41,18,6,0,42,18,6,0,42,18,6,0,42,24,6,0,43,24,6,0,43,24,6,0,43,23,6,0,44,23,6,0,44,23,6,0,44,23,6,0,45,23,6,0,45,23,6,0,45,22,6,0,46,22,6,0,46,22,6,0,46,22,5,0,47,22,5,0,47,22,5,0,47,21,5,0,48,21,5,0,48,21,5,0,48,21,5,0,49,21,5,0,49,26,5,0,49,25,5,0,50,25,5,0,50,25,5,0,50,25,5,0,51,25,5,0,51,25,5,0,51,25,5,0,52,25,5,0,52,25,5,0,52,24,5,0,53,24,5,0,53,24,5,0,53,24,9,0,54,28,9,0,54,28,9,0,54,28,9,0,55,28,9,0,55,27,9,0,56,27,9,0,56,27,9,0,56,27,9,4,57,27,9,4,57,27,9,4,57,26,9,4,58,26,9,4,58,26,9,4,58,26,9,4,59,26,9,4,59,26,9,4,59,26,8,4,60,30,8,4,60,30,8,4,60,29,8,4,61,29,8,4,61,29,8,4,62,29,8,4,62,29,8,4,62,28,8,4,63,28,8,4,63,28,8,4,63,28,12,4,64,28,12,4,64,28,12,4,64,27,12,4,65,27,12,8,65,27,12,8,65,31,12,8,66,31,12,8,66,30,11,8,67,30,11,8,67,30,11,8,67,30,11,8,68,30,11,8,68,30,11,8,68,30,15,7,69,30,15,7,69,30,15,7,69,33,15,11,70,33,15,11,70,32,14,11,71,32,14,11,71,32,14,11,71,32,18,14,72,32,18,14,72,32,18,14,72,31,17,14,73,35,17,14,73,34,17,17,74,34,21,17,74,34,21,17,74,34,20,17,75,34,20,20,75,34,20,20,75,34,23,20,76,34,23,20,76,36,23,23,77,36,23,23,77,36,23,23,77,36,23,23,78,36,26,26,78,36,26,26,78,36,26,26,79,36,26,29,79,38,26,29,80,38,29,29,80,38,29,29,80,38,28,31,81,38,28,31,81,38,31,31,81,37,31,34,82,37,31,34,82,37,31,37,83,40,34,37,83,40,34,37,83,39,33,39,84,39,33,39,84,39,36,42,84,39,36,42,85,39,36,42,85,39,36,42,85,39,39,44,86,39,39,44,86,41,38,47,87,41,41,47,87,41,41,50,87,41,41,49,88,41,41,52,88,40,43,52,89,43,43,52,89,43,43,54,89,42,45,54,90,42,45,57,90,42,45,57,90,42,45,59,91,42,48,59,91,44,47,61,92,44,47,61,92,44,50,61,92,44,49,63,93,44,49,63,93,44,52,66,93,43,52,65,94,46,54,68,94,46,54,70,95,46,54,70,95,46,54,70,95,45,56,72,96,45,56,72,96,45,58,74,97,47,58,76,97,47,58,76,97,47,60,78,98,47,60,78,98,47,60,81,98,49,62,80,99,49,62,82,99,48,61,84,100,48,64,84,100,48,64,84,100,50,63,86,101,50,66,86,101,50,66,88,101,50,65,90,102,52,67,89,103,51,69,91,104,51,68,92,105,52,69,93,107,52,71,94,108,54,70,96,109,53,71,96,111,52,73,98,112,54,72,98,114,53,73,100,115,54,72,100,117,54,73,102,118,55,74,104,120,55,76,105,121,56,77,106,123,56,76,107,124,57,79,107,126,58,78,110,128,57,79,111,129,56,80,113,131,58,79,112,132,57,82,114,134,58,81,116,136,60,82,117,137,59,83,117,139,60,83,119,141,59,84,120,142,60,85,122,144,59,86,122,146,60,86,126,148,62,87,127,149,61,88,127,151,62,88,128,153,63,89,130,155,62,90,131,156,63,90,132,158,64,91,134,160,65,91,135,162,64,92,136,163,63,93,138,165,66,95,139,167,65,95,140,169,66,95,142,171,67,96,142,172,66,97,144,174,67,99,145,176,67,97,148,178,67,99,147,180,68,100,149,181,68,100,150,183,69,101,152,185,70,102,153,187,71,103,155,188,70,103,156,190,70,104,157,192,71,105,158,194,71,106,160,195,72,106,161,197,72,108,161,199,73,108,163,200,73,109,164,202,74,109,165,204,74,110,167,206,75,111,168,207,74,112,170,209,75,112,170,210,76,113,171,212,76,114,173,214,77,115,174,215,78,115,175,217,78,116,175,218,78,117,177,220,78,118,178,221,79,118,180,223,80,120,180,224,81,120,181,226,81,120,182,227,82,121,184,229,82,122,185,230,84,123,186,232,83,123,187,233,84,124,189,234,84,125,188,235,85,126,189,237,86,126,190,238,86,127,191,239,87,127,192,240,87,129,193,242,88,129,194,243,89,130,195,244,90,131,196,245,90,132,197,246,91,132,197,247,92,133,198,248,92,134,199,249,93,135,200,250,94,136,201,251,95,137,202,252,96,138,203,253,97,140,204,254,98,141,205,254,99,142,206,255,101,143,207,255,102,144,208,255,103,146,209,255,104,147,209,255,106,148,210,255,107,149,211,255,108,151,212,255,110,152,213,255,111,153,213,255,112,154,214,255,114,156,215,255,115,157,215,255,117,158,216,255,118,160,217,255,120,161,217,255,121,162,218,255,123,164,218,255,124,165,219,255,125,166,219,255,127,167,220,255,129,169,220,255,130,170,221,255,132,171,221,255,133,173,222,255,134,174,222,255,136,175,223,255,139,178,224,255,142,180,224,255,144,182,225,255,147,185,226,255,150,187,226,255,153,189,227,255,155,191,228,255,158,194,228,255,160,196,229,255,163,198,229,255,165,200,230,255,168,202,231,255,170,203,231,255,172,205,232,255,174,207,232,255,176,209,233,255,178,210,234,255,180,212,234,255,182,214,235,255,184,215,236,255,186,217,237,255,188,219,238,255,190,220,238,255,192,221,239,255,193,222,240,255,194,224,240,255,196,225,241,255,197,226,241,255,198,226,242,255,199,227,242,255,200,228,242,255,201,228,243,255,202,229,243,255,203,230,243,255,204,230,244,255,205,231,244,255,207,232,244,255,208,233,245,255,209,233,245,255,211,234,246,255,213,235,246,255,217,238,247,255,222,240,248,255,226,242,249,255,231,245,250,255,236,247,251,255,241,249,252,255,245,251,253,255,249,252,254,255,255,255,255,255]);var xh=v(4511),Xp=v(19625),AB=v(57521),Dh=v(15197),Qi=v(16396),Ra=v(83994),Ro=v(55086),No=v(26906);class RB{constructor(){this.type=pa.Panoramic,this._configuration=new Yp.f,this._passParameters=new _P.S}destroy(){this._passParameters.texture=(0,Qe.M2)(this._passParameters.texture),this._vao=(0,Qe.M2)(this._vao)}initializeRenderContext(_){this._configuration.geometry=Yp.n.Cylinder,this._technique=_.shaderTechniqueRepository.acquire(x_,this._configuration);const T=_.renderContext.rctx;this._vao=this._createVertexArrayObject(T),this._vaoCount=(0,No._V)(this._vao,"geometry"),this._passParameters.texture=new Ro.x(T,{pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:xt.cw.LINEAR,flipped:!0,width:1,height:512},RA),_.requestRender()}render(_){if((0,Qe.Wi)(this._vao)||(0,Qe.Wi)(this._passParameters.texture))return;const T=_.rctx,x=T.bindTechnique(this._technique,this._passParameters,_.bindParameters);(function wB(d,_){(0,gi.c)(d,_),d[12]=0,d[13]=0,d[14]=0,d[15]=1})(wA,_.bindParameters.camera.viewMatrix),x.setUniformMatrix4fv("view",wA),T.bindVAO(this._vao),x.assertCompatibleVertexAttributeLocations(this._vao),T.drawArrays(xt.MX.TRIANGLES,0,this._vaoCount)}renderHaze(){return!1}_createVertexArrayObject(_){const T=(0,AB.mj)(1,2,!1),x=T.indices.get(Qi.T.POSITION);for(let fe=0;fev.e(8954).then(v.bind(v,78954)));const o1=new Map([[Qi.T.POSITION,0],[Qi.T.INSTANCEFEATUREATTRIBUTE,1]]);var a1=v(6067),UB=v(42836);let kp=class extends Ns.Z{constructor(d){super(d),this._numParticles=25e4,this._rainSpeed=.1,this._snowSpeed=.01,this._passParameters=new LB,this._animation=new UB.d,this._updatingTracking=new l_.t,this._passParameters.time=0,this._passParameters.radius=(0,En.Iu)(d.view.spatialReference).radius,this._shaderTechniqueRepository=d.context.shaderTechniqueRepository}destroy(){this._updatingTracking.destroy(),this._numParticles=0,this._snowTechniqueCached=(0,Qe.RY)(this._snowTechniqueCached),this._rainTechniqueCached=(0,Qe.RY)(this._rainTechniqueCached),this._vao=(0,Qe.M2)(this._vao),this._instanceIdBuffer=(0,Qe.M2)(this._instanceIdBuffer)}get updating(){return this._updatingTracking.updating}get _rainTechnique(){if((0,Qe.Wi)(this._rainTechniqueCached)){const d=new a1.Y;d.type=a1.H.Rain,this._rainTechniqueCached=this._shaderTechniqueRepository.acquire(dg,d)}return this._rainTechniqueCached}get _snowTechnique(){if((0,Qe.Wi)(this._snowTechniqueCached)){const d=new a1.Y;d.type=a1.H.Snow,this._snowTechniqueCached=this._shaderTechniqueRepository.acquire(dg,d)}return this._snowTechniqueCached}update(d){return this._animation.advance(d)}render(d,_,T){const x="rainy"===T?this._rainTechnique:this._snowTechnique;if(!x.compiled)return void this.context.requestRender();const A=d.rctx;if(this._ensureResources(A),(0,Qe.Wi)(x)||(0,Qe.Wi)(this._vao)||(0,Qe.Wi)(this._instanceIdBuffer)||((0,Qe.pC)(d.bindParameters.cloudsFade.data)&&(this._passParameters.opacity=1-d.bindParameters.cloudsFade.fadeInOutHeight.factor),this._passParameters.opacity<=0))return;_=_<.5?(0,xr.t7)(0,.35,2*_):(0,xr.t7)(.35,1,2*(_-.5)),this._passParameters.time=("rainy"===T?this._rainSpeed:this._snowSpeed)*(0,mi.D9)(this._animation.time)%1e5;const ne=A.bindTechnique(x,this._passParameters,d.bindParameters);A.bindVAO(this._vao),ne.assertCompatibleVertexAttributeLocations(this._vao),(0,No.XP)(A,o1,this._instanceIdBuffer,LA,0),A.capabilities.instancing.drawArraysInstanced(xt.MX.TRIANGLES,0,3,this._numParticles*_),(0,No.UF)(A,o1,this._instanceIdBuffer,LA)}_ensureResources(d){(0,Qe.Wi)(this._vao)&&(this._vao=this._createVertexArrayObject(d)),(0,Qe.Wi)(this._instanceIdBuffer)&&(this._instanceIdBuffer=this._createInstanceIndices(d))}_createInstanceIndices(d){const _=[];for(let T=0;TT.view.state?.camera,()=>_.requestRender(),Ht.tX),T._vao=T._createRibbon(x),T._vaoCount=(0,No._V)(T._vao,"geometry"),T._fadeVao=(0,_a.ow)(x),T._fadeVaoCount=(0,No._V)(T._fadeVao,"geometry"),T._passParameters.texture=new Ro.x(x,{pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:xt.cw.LINEAR,flipped:!0,width:1,height:512},T._isOnMars?jB:RA),_.requestRender()})()}get _coneTechnique(){if((0,Qe.Wi)(this._coneTechniqueCached)){const _=new Yp.f;_.geometry=Yp.n.Cone,this._coneTechniqueCached=this._shaderTechniqueRepository.acquire(x_,_)}return this._coneTechniqueCached}get _undergroundTechnique(){if((0,Qe.Wi)(this._undergroundTechniqueCached)){const _=new Yp.f;_.geometry=Yp.n.Underground,this._undergroundTechniqueCached=this._shaderTechniqueRepository.acquire(x_,_)}return this._undergroundTechniqueCached}render(_){if((0,Qe.Wi)(this._vao)||(0,Qe.Wi)(this._passParameters.texture))return;this._update(_.bindParameters.camera);const x=_.rctx;this._passParameters.undergroundFadeAlpha<1&&(x.bindTechnique(this._coneTechnique,this._passParameters,_.bindParameters),x.bindVAO(this._vao),x.drawArrays(xt.MX.TRIANGLES,0,this._vaoCount)),this._passParameters.undergroundFadeAlpha>0&&(x.bindTechnique(this._undergroundTechnique,this._passParameters,_.bindParameters),x.bindVAO(this._fadeVao),x.drawArrays(xt.MX.TRIANGLE_STRIP,0,this._fadeVaoCount))}renderHaze(){}_update(_){const T=(0,ir.c)(),x=this._planetRadius,A=(0,pt.l)(_.eye),U=A-x;if(U<0){const dt=Math.min(-U/5e3,1);this._passParameters.undergroundFadeAlpha=dt}else this._passParameters.undergroundFadeAlpha=0;const ne=Math.max(50,U);this._passParameters.innerScale=function VB(d,_,T){return d*d/(Math.sqrt(d*d-_*_)*Math.sqrt(d*d-T*T)+_*T)}(x+ne,x,x+UA)-1,this._passParameters.altitudeFade=(0,Od.yx)(U),(0,pt.g)(T,_.eye,(x+50)/A),jA(T,_.center,_.up,x,this._passParameters.silhouette);const Oe=this._computeScreenRimWidth(_,T,_.up,this._passParameters.silhouette),we=1-511/512,Ze=NB(U);let it=this._texV0+we*this._texVScale,lt=this._texV0+Oe*Ze*this._texVScale;if(U>50){jA(_.eye,_.center,_.up,x,this._passParameters.silhouette);const dt=this._computeScreenRimWidth(_,_.eye,_.up,this._passParameters.silhouette),Tt=(0,xr.uZ)((dt-1.5)/(Oe-1.5),0,1);it=this._texV0+Tt*we*this._texVScale,lt=this._texV0+(0,xr.t7)(this._texV1,Oe*Ze,Tt)*this._texVScale}(0,ti.s)(this._passParameters.texV,it,lt)}_createRibbon(_){const T=new Float32Array(1155),x=new Uint32Array(1920);T[0]=0,T[1]=0,T[2]=-1;for(let ne=0;ne<128;ne++){const fe=9*ne+3;T[fe+0]=ne,T[fe+1]=this._innerRimFactor,T[fe+2]=-1,T[fe+3]=ne,T[fe+4]=this._middleRimFactor,T[fe+5]=0,T[fe+6]=ne,T[fe+7]=this._outerRimFactor,T[fe+8]=1;const Oe=3*ne+1,we=127===ne?1:Oe+3,Ze=15*ne;x[Ze+0]=Oe,x[Ze+1]=Oe+1,x[Ze+2]=we+1,x[Ze+3]=we+1,x[Ze+4]=we,x[Ze+5]=Oe,x[Ze+6]=Oe+1,x[Ze+7]=Oe+2,x[Ze+8]=we+2,x[Ze+9]=we+2,x[Ze+10]=we+1,x[Ze+11]=Oe+1,x[Ze+12]=Oe,x[Ze+13]=we,x[Ze+14]=0}const A=FA.createBuffer(x.length),U=A.position;for(let ne=0;nev.e(7765).then(v.bind(v,7765)));let pg=class extends Ns.Z{constructor(d){super(d),this._passParameters=new i1.F,this._vao=(0,_a.ow)(d.context.renderContext.rctx,P_.Bn);const T=(0,En.Iu)(d.view.spatialReference);this._planetRadius=T.radius,this._atmosphereRadius=T.radius+Od.k8}destroy(){this._hazeTechniqueCached=(0,Qe.RY)(this._hazeTechniqueCached),this._vao=(0,Qe.M2)(this._vao)}get _shaderTechniqueRepository(){return this.context.shaderTechniqueRepository}set strength(d){this._passParameters.hazeStrength=d}get strength(){return this._passParameters.hazeStrength}get _hazeTechnique(){if((0,Qe.Wi)(this._hazeTechniqueCached)){const d=new pP;d.haze=!0,this._hazeTechniqueCached=this._shaderTechniqueRepository.acquire(c1,d)}return this._hazeTechniqueCached}render(d,_){if(0===this.view.basemapTerrain.baseOpacity||(this._update(d,_),this._passParameters.hazeAmount<=0))return;const T=this._hazeTechnique;if(!T.compiled)return void this.context.requestRender();const x=d.offscreenRenderingHelper;x.renderDepthDetached(()=>{this._passParameters.depthTexture=x.depthTexture;const A=d.rctx.bindTechnique(T,this._passParameters,d.bindParameters);this._renderSimpleHaze(A,d)})}_renderSimpleHaze(d,_){if((0,Qe.Wi)(this._vao))return;const T=_.rctx;T.bindVAO(this._vao),d.assertCompatibleVertexAttributeLocations(this._vao),T.drawArrays(xt.MX.TRIANGLE_STRIP,0,4)}_update(d,_){const T=d.bindParameters.camera;(0,pt.n)(NA,T.eye);const x=Math.max(0,(0,pt.e)(NA,d.bindParameters.lighting.mainLight.direction)),A=KB;(0,pt.g)(WA,A,0),(0,pt.h)(this._passParameters.hazeColor,WA,A,x);const U=(0,pt.l)(T.eye);this._passParameters.atmosphereC=U*U-this._atmosphereRadius*this._atmosphereRadius,this._passParameters.hazeAmount=(1-(0,xr.CW)(7e3,1*Nc,Math.abs(U-this._planetRadius)))*_.amount,this._passParameters.fogStrength=_.strength}static isSupported(d){return d.capabilities.depthTexture}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],pg.prototype,"context",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],pg.prototype,"view",void 0),pg=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.SimpleHaze")],pg);class GB{constructor(){this.strength=0,this.amount=0}}const KB=(0,ir.f)(.24,.44,.8),NA=(0,ir.c)(),WA=(0,ir.c)();var ZB=v(45695);class $B extends lu.K{constructor(){super(...arguments),this.modelMatrix=(0,gn.c)()}}class u1 extends so.A{constructor(_){super(_,new pi.m,()=>this.destroy())}initializeProgram(_){return new Gn.$(_.rctx,u1.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE_MINUS_SRC_ALPHA),depthTest:{func:xt.wb.LEQUAL},colorWrite:Ds.BK})}}u1.shader=new ro.J(ZB.S,()=>v.e(1317).then(v.bind(v,61317)));let Sh=class extends Ns.Z{constructor(d){super(d),this._loadDataTask=null,this._numPoints=0,this._renderParameter=new $B,this._updatingTracking=new l_.t}get updating(){return this._updatingTracking.updating||this.loading}get loading(){return(0,Qe.pC)(this._loadDataTask)&&!this._loadDataTask.finished}initialize(){this._loadDataTask=this._createLoadDataTask()}destroy(){this._loadDataTask=(0,Qe.IM)(this._loadDataTask),this._updatingTracking.destroy(),this._numPoints=0,this._technique=(0,Qe.RY)(this._technique),this._vao=(0,Qe.M2)(this._vao)}render(d){const{rctx:_}=d;if(this._ensureResources(_),(0,Qe.Wi)(this._technique)||(0,Qe.Wi)(this._vao))return;if(!this._technique.compiled)return void this.requestRender();const T=_.bindTechnique(this._technique,this._renderParameter,d.bindParameters);_.bindVAO(this._vao),T.assertCompatibleVertexAttributeLocations(this._vao),_.drawArrays(xt.MX.POINTS,0,this._numPoints)}_ensureResources(d){if((0,Qe.pC)(this._technique)||(0,Qe.Wi)(D_))return;this._technique=new u1({rctx:d,viewingMode:this.view.state.viewingMode}),this._numPoints=D_.byteLength/VA;const _=new Float32Array(D_,0,2*this._numPoints),T=new Uint8Array(D_,2*this._numPoints*4,this._numPoints);this._vao=this._createVertexArrayObject(d,_,T,this._numPoints),this._updatingTracking.add(()=>"virtual"!==this.view.environment.lighting.type?this.view.environment.lighting.date:null,x=>this._update(x),Ht.nn)}_computeDayDuration(d){const _=d,T=new Date(d.getFullYear(),0,1,11,58,56);return(+_-+T)/(+new Date(d.getFullYear()+1,0,1,11,58,55)-+T)}_update(d){if(!d)return;const _=(d.getHours()/12+d.getMinutes()/60*(2/24)+d.getSeconds()/60*(2/1440)-.9972222)%2,T=2*this._computeDayDuration(d),x=(0,gi.c)(this._renderParameter.modelMatrix,kB);(0,gi.o)(x,x,-T*Math.PI),(0,gi.m)(x,XB,x),(0,gi.o)(x,x,-_*Math.PI),this.requestRender()}_hexToRGB(d){return[parseInt(d.substring(0,2),16),parseInt(d.substring(2,4),16),parseInt(d.substring(4,6),16)]}_unpackUint8Attributes(d){return d>=192?[2.9,d-192]:d>=160?[2.5,d-160]:d>=128?[2,d-128]:d>=96?[1.5,d-96]:d>=64?[1,d-64]:d>=32?[.7,d-32]:[.4,d]}_createVertexArrayObject(d,_,T,x){const A=zA.createBuffer(x),U=A.position,ne=A.color,fe=A.size;for(let Oe=0;Oe{(0,ws.D_)(T)||Us.Z.getLogger(this.declaredClass).error(T)}).then(()=>{this.destroyed||(this.requestRender(),this.notifyChange("updating"))}),_}_verifyStarData(d){if(!d)throw new ai.Z("stars:no-data-received","Failed to create stars because star catalogue is missing");const _=d.byteLength/VA;if(_%1!=0||_>5e4||_<5e3)throw new ai.Z("stars:invalid-data","Failed to create stars because star catalogue data is invalid")}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Sh.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Sh.prototype,"requestRender",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Sh.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)()],Sh.prototype,"_loadDataTask",void 0),(0,Ve._)([(0,ke.Cb)()],Sh.prototype,"_updatingTracking",void 0),Sh=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.Stars")],Sh);const YB=["9bb2ff","9eb5ff","aabfff","bbccff","ccd8ff ","dae2ff","e4e9ff","eeefff","f8f6ff","fff9fb","fff5ef","fff1e5","ffeddb","ffe9d2","ffe6ca","ffe3c3","ffe0bb","ffddb4","ffdaad","ffd6a5","ffd29c","ffcc8f","ffc178","ffa94b","ff7b00"],XB=(0,gn.f)(1,0,0,0,0,.9174771405229186,.39778850739794974,0,0,-.39778850739794974,.9174771405229186,0,0,0,0,1),kB=(0,gn.f)(1,0,0,0,0,.9174771405229186,-.39778850739794974,0,0,.39778850739794974,.9174771405229186,0,0,0,0,1),VA=9,zA=(0,Xp.U$)().vec3f(Qi.T.POSITION).vec4u8(Qi.T.COLOR).f32(Qi.T.SIZE);let D_=null;var _g=v(89586),Lu=v(90478);function HA(d,_,T,x){const A=d.fadeInOutHeight;if(0!==x){const ne=(T-(A.stage===Wn.hZ.FINISHED?T:d.startTimeHeightFade))/(n9*x);A.factor+=_?-ne:ne}else A.factor=_?0:1;d.startTimeHeightFade=T,A.factor=(0,xr.uZ)(A.factor,0,1),A.stage=Wn.hZ.HEIGHT_FADE}const GA=(0,ir.f)(0,0,1),S_=(0,_g.Ue)(),Uu=(0,ir.c)(),r9=(0,ir.c)(),KA=1,s9=.5,i9=1.3,n9=1;var A_,R_,Xs=v(13934),Mi=v(5894);!function(d){d[d.Immediate=0]="Immediate",d[d.Faded=1]="Faded"}(A_||(A_={}));const o9=[Mi.r.POSTPROCESSING_ENVIRONMENT_OPAQUE,Mi.r.POSTPROCESSING_ENVIRONMENT_TRANSPARENT];let Ha=R_=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z,this._context=null,this._atmosphere=null,this._oldWeatherParameters=new yP,this._newWeatherParameters=new yP,this._fadedWeatherParameters=new yP,this._weatherParameters=this._newWeatherParameters}initialize(){this.view._stage.addRenderPlugin(o9,this)}destroy(){null!=this.view?._stage&&this.view._stage.removeRenderPlugin(this),this._handles=(0,Qe.SC)(this._handles),this._set("view",null)}get atmosphereType(){return(0,Qe.pC)(this._atmosphere)?this._atmosphere.type:pa.None}get canRender(){return!!this.view.basemapTerrain?.renderer.canRender||"global"!==this.view.viewingMode}get needsLinearDepth(){return(0,Qe.pC)(this._atmosphere)&&this._atmosphere.type===pa.Realistic}updateAnimation(d){return!!(0,Qe.pC)(this._precipitation)&&this._precipitation.update(d)}get updating(){return(0,Qe.pC)(this._stars)&&this._stars.updating||(0,Qe.pC)(this._clouds)&&this._clouds.running}get weatherVisible(){return(0,pt.l)(this.view.state.camera.eye)-(0,En.Iu)(this.view.spatialReference).radius<=Nc}get _stars(){const d=this.view,_=d.environment?.starsEnabled??!1,T=this._get("_stars");return!_||(0,Qe.Wi)(this._context)?((0,Qe.SC)(T),null):(0,Qe.pC)(T)?T:new Sh({view:d,requestRender:()=>this._setNeedsRender()})}get _precipitation(){const d=this._get("_precipitation");if(!this._precipitationEnabled||(0,Qe.Wi)(this._context))return(0,Qe.SC)(d),null;const _=this.view,T=this._context;return(0,Qe.pC)(d)&&d.context===T?d:((0,Qe.SC)(d),new kp({context:T,view:_}))}get _clouds(){const d=this._get("_clouds");if(!this.weatherEnabled||(0,Qe.Wi)(this._context))return(0,Qe.SC)(d),null;if((0,Qe.pC)(d))return d;const _=this.view,T=this._context;return(0,Qe.SC)(d),new Ml({context:T,view:_,requestRender:()=>this._setNeedsRender()})}get _cloudsComposition(){const d=this._get("_cloudsComposition");if(!this.weatherEnabled||(0,Qe.Wi)(this._context))return(0,Qe.SC)(d),null;const _=this.view.state.viewingMode,T=this._context.renderContext.rctx,x=(0,En.Iu)(this.view.spatialReference).radius;return(0,Qe.pC)(d)&&d.viewingMode===_&&d.planetRadius===x?d:((0,Qe.SC)(d),new $p({rctx:T,viewingMode:_,planetRadius:x,requestRender:()=>this._setNeedsRender()}))}get _fog(){const d=this._get("_fog");return!this.weatherEnabled||(0,Qe.Wi)(this._context)?((0,Qe.SC)(d),null):(0,Qe.pC)(d)?d:new ug({context:this._context,view:this.view})}get _simpleHaze(){const d=this._get("_simpleHaze");return!this.weatherEnabled||(0,Qe.Wi)(this._context)?((0,Qe.SC)(d),null):(0,Qe.pC)(d)?d:new pg({context:this._context,view:this.view})}get weatherEnabled(){return!!this.view?.environmentManager?.weatherEnabled}get _precipitationEnabled(){return this.weatherEnabled&&("rainy"===this.view.environment.weather.type||"snowy"===this.view.environment.weather.type)}initializeRenderContext(d=null){this._context=d;const _=()=>this._setNeedsRender();this._handles.add([(0,Ht.gx)(()=>this.view?.basemapTerrain,()=>this._updateBasemapTerrain(),Ht.tX),(0,Ht.YP)(()=>({viewingMode:this.view.viewingMode,atmosphereEnabled:this.view.environment.atmosphereEnabled,atmosphereQuality:this.view.environment.atmosphere.quality}),()=>this._updateAtmosphere(),Ht.tX),(0,Ht.YP)(()=>this._stars,_),(0,Ht.YP)(()=>this._precipitation,_),(0,Ht.YP)(()=>this._clouds,()=>this._updateWeather(),Ht.nn),(0,Ht.YP)(()=>this._fog,()=>this._updateFogHaze(),Ht.nn),(0,Ht.YP)(()=>this._simpleHaze,()=>this._updateFogHaze(),Ht.nn),(0,Ht.YP)(()=>this._weatherUpdateParameters,()=>{this._updateWeather(),this._updateFogHaze()},Ht.tX)])}uninitializeRenderContext(){this._context=null,this._atmosphere=(0,Qe.SC)(this._atmosphere),this._set("_stars",(0,Qe.SC)(this._stars)),this._set("_precipitation",(0,Qe.SC)(this._precipitation)),this._set("_clouds",(0,Qe.SC)(this._clouds)),this._set("_cloudsComposition",(0,Qe.SC)(this._cloudsComposition)),this._set("_fog",(0,Qe.SC)(this._fog)),this._set("_simpleHaze",(0,Qe.SC)(this._simpleHaze))}prepareRender(d){d.bindParameters.cloudsFade.data=(0,no.Ck)(this._clouds)?this._clouds:null,"local"!==this.view.viewingMode&&(function e9(d,_,T,x,A){d.renderingStage===no.jL.FINISHED_RENDERING&&(d.renderingStage=no.jL.FADING_TEXTURE_CHANNELS);const U=(0,pt.l)(_.eye);d.fadeInOutHeight.factor<0&&(d.fadeInOutHeight.factor=U-gc.sv.radius>Nc?1:0),d.isCameraPositionFinal=(0,pt.F)(d.cameraPositionLastFrame,_.eye),(0,pt.n)(Uu,_.eye),(0,pt.g)(Uu,Uu,gc.sv.radius);const ne=d.parallax;0===ne.anchorPointClouds[0]&&0===ne.anchorPointClouds[1]&&0===ne.anchorPointClouds[2]&&(0,pt.c)(ne.anchorPointClouds,Uu);const fe=(0,pt.l)((0,pt.b)(r9,ne.anchorPointClouds,Uu));let Oe=!0;fe>d.fadeIn.distanceThresholdFactor*ne.cloudsHeight||d.fadeIn.stage!==Wn.YF.FINISHED?function JB(d,_,T){const x=d.parallax.anchorPointClouds;d.fadeIn.stage===Wn.YF.FINISHED&&(d.fadeIn.factor=0,(0,pt.c)(x,Uu),d.fadeIn.stage=Wn.YF.CHANGE_ANCHOR,d.crossFade.enabled=!1,d.fadeInOut.stage=Wn.co.FINISHED),d.fadeIn.stage===Wn.YF.CHANGE_ANCHOR&&d.isCameraPositionFinal&&((0,no.WU)(d.data)&&d.renderingStage!==no.jL.RENDERING||d.renderingStage===no.jL.FADING_TEXTURE_CHANNELS)&&((0,pt.c)(x,Uu),d.fadeIn.stage=Wn.YF.FADE_IN,d.startTime=_,d.renderingStage===no.jL.FADING_TEXTURE_CHANNELS&&(d.renderingStage=no.jL.SWITCH_CHANNELS)),d.fadeIn.factor<1&&d.fadeIn.stage===Wn.YF.FADE_IN?d.fadeIn.factor=T?(0,xr.uZ)((_-d.startTime)/(KA*T),0,1):1:d.fadeIn.factor>=1&&d.fadeIn.stage===Wn.YF.FADE_IN&&(d.fadeIn.stage=Wn.YF.FINISHED,d.fadeIn.factor=1)}(d,x,A):fe>d.fadeInOut.distanceThresholdFactor*ne.cloudsHeight||d.fadeInOut.stage!==Wn.co.FINISHED?function QB(d,_,T){const{fadeInOut:x,crossFade:A}=d;x.stage===Wn.co.FINISHED&&(d.startTime=_,x.factor=1,x.stage=Wn.co.FADE_OUT),x.factor>0&&x.stage===Wn.co.FADE_OUT?x.factor=T?1-(0,xr.uZ)((_-d.startTime)/(s9*T),0,1):0:(x.factor<=0&&x.stage===Wn.co.FADE_OUT&&(x.factor=0,(0,pt.c)(d.parallax.anchorPointClouds,Uu)),x.factor<=0&&x.stage===Wn.co.FADE_OUT&&d.isCameraPositionFinal&&(x.factor=0,x.stage=Wn.co.SWITCH,d.crossFade.enabled=!1,A.factor=1),x.stage===Wn.co.SWITCH&&((0,no.WU)(d.data)&&d.renderingStage!==no.jL.RENDERING||d.renderingStage===no.jL.FADING_TEXTURE_CHANNELS)&&(d.startTime=_,x.factor=0,x.stage=Wn.co.FADE_IN,(0,pt.c)(d.parallax.anchorPointClouds,Uu),d.crossFade.enabled=!1,A.factor=1,d.renderingStage===no.jL.FADING_TEXTURE_CHANNELS&&(d.renderingStage=no.jL.SWITCH_CHANNELS)),x.factor<1&&x.stage===Wn.co.FADE_IN?x.factor=T?(0,xr.uZ)((_-d.startTime)/(KA*T),0,1):1:x.factor>=1&&x.stage===Wn.co.FADE_IN&&(x.stage=Wn.co.FINISHED,x.factor=1))}(d,x,A):fe>d.crossFade.distanceThresholdFactor*ne.cloudsHeight||d.crossFade.enabled||d.renderingStage===no.jL.FADING_TEXTURE_CHANNELS?function qB(d,_,T,x){const{crossFade:A}=d,U=d.parallax.anchorPointClouds;d.crossFade.enabled&&!x||((0,pt.c)(d.parallaxNew.anchorPointClouds,Uu),d.startTime=_,A.factor=0,d.crossFade.enabled=!0),A.factor<1&&d.crossFade.enabled?A.factor=T?(0,xr.uZ)((_-d.startTime)/(i9*T),0,1):1:A.factor>=1&&d.crossFade.enabled&&(d.crossFade.enabled=!1,A.factor=1,(0,pt.c)(U,d.parallaxNew.anchorPointClouds),d.renderingStage===no.jL.FADING_TEXTURE_CHANNELS&&(d.renderingStage=no.jL.SWITCH_CHANNELS))}(d,x,A,(T!==Lu.n.IDLE||!(0,no.WU)(d.data))&&d.renderingStage!==no.jL.FADING_TEXTURE_CHANNELS):Oe=!1;const we=U-gc.sv.radius;if((we>17e3||we<-Nc)&&d.fadeInOutHeight.factor<1?d.fadeInOutHeight.factor=1:(we>Nc||we<-3500)&&d.fadeInOutHeight.factor<1?HA(d,!1,x,A):we-3500&&d.fadeInOutHeight.factor>0?HA(d,!0,x,A):d.fadeInOutHeight.stage=Wn.hZ.FINISHED,d.renderingStage===no.jL.SWITCH_CHANNELS&&(d.readChannels=1-d.readChannels,d.renderingStage=no.jL.FINISHED),ne.radiusCurvatureCorrectionFactor=.84*Math.sqrt(Math.max(U*U-gc.sv.radius*gc.sv.radius,0))/U,(0,_g.zk)(GA,ne.anchorPointClouds,S_),(0,gi.e)(ne.transform,gn.I,S_[3],(0,_g.ZZ)(S_)),Oe){const{parallaxNew:Ze}=d;(0,_g.zk)(GA,Ze.anchorPointClouds,S_),(0,gi.e)(Ze.transform,gn.I,S_[3],(0,_g.ZZ)(S_))}(0,pt.c)(d.cameraPositionLastFrame,_.eye)}(d.bindParameters.cloudsFade,d.bindParameters.camera,this.view.state.mode,R_.test.time||d.time,this.view.qualitySettings.weatherFadeDuration),this._updateWeatherFading(d.bindParameters),d.bindParameters.cloudsFade.renderingStage===no.jL.FINISHED&&(0,Qe.pC)(this._clouds)&&0===this._clouds.coverage&&!1===this._clouds.running&&this._clouds.destroyFrameBufferCube())}render(d){if(d.output===Xs.H.Color)switch(d.bindParameters.slot){case Mi.r.POSTPROCESSING_ENVIRONMENT_OPAQUE:(0,Qe.pC)(this._stars)&&this._stars.render(d),(0,Qe.pC)(this._atmosphere)&&(this._atmosphere.render(d),(0,Qe.pC)(this._cloudsComposition)&&(0,Qe.pC)(d.bindParameters.cloudsFade.data)&&(this.weatherVisible&&(0,Qe.pC)(this._clouds)&&this._clouds.updateWeatherTile(),this._cloudsComposition.render(d)),function t9(d){return d.crossFade.enabled||d.fadeInOut.stage!==Wn.co.FINISHED||d.fadeIn.stage!==Wn.YF.FINISHED||d.fadeInOutHeight.stage!==Wn.hZ.FINISHED||d.renderingStage!==no.jL.FINISHED}(d.bindParameters.cloudsFade)&&(0,Qe.pC)(this._context)&&this._context.requestRender());break;case Mi.r.POSTPROCESSING_ENVIRONMENT_TRANSPARENT:if((0,Qe.pC)(this._atmosphere)&&(this._atmosphere.renderHaze(d,this._weatherParameters.haze.amount),this._weatherParameters.haze.amount>0&&this._selectAtmosphereType()!==pa.Realistic&&(0,Qe.pC)(this._simpleHaze)&&this._simpleHaze.render(d,this._weatherParameters.haze),this._weatherParameters.fog.amount>0&&(0,Qe.pC)(this._fog)&&this._fog.render(d,this._weatherParameters.fog),(0,Qe.pC)(this._precipitation))){const _=this.view.environment.weather;"rainy"!==_.type&&"snowy"!==_.type||this._precipitation.render(d,_.precipitation,_.type)}}}updateLightSources(d,_,T,x){if((0,Qe.pC)(this._context)){const A=this._context.renderContext;A.bindParameters.oldLighting.copyFrom(A.bindParameters.lighting),A.bindParameters.newLighting.noonFactor=_,A.bindParameters.newLighting.globalFactor=T,A.bindParameters.newLighting.set(d),A.bindParameters.fadeLighting(x===A_.Faded||A.bindParameters.weatherFading?0:1),this._context.requestRender()}}get _weatherUpdateParameters(){const d=this.weatherEnabled?this.view.environment.weather:null;return(0,Qe.Wi)(d)?null:"rainy"===d.type||"snowy"===d.type?{type:d.type,weatherAdjustment:d.cloudCover,effect:d.precipitation}:{type:d.type,weatherAdjustment:"foggy"===d.type?d.fogStrength:d.cloudCover}}_updateWeatherFading(d){if(!d.weatherFading)return;const _=d.cloudsFade;return _.fadeIn.stage===Wn.YF.FADE_IN?(d.fadeLighting(_.fadeIn.factor),void this._fadeWeather(_.fadeIn.factor)):_.fadeInOut.stage===Wn.co.FADE_IN?(d.fadeLighting(_.fadeInOut.factor),void this._fadeWeather(_.fadeInOut.factor)):_.crossFade.enabled?(d.fadeLighting(_.crossFade.factor),void this._fadeWeather(_.crossFade.factor)):(d.fadeLighting(0),void this._fadeWeather(0))}_fadeWeather(d){const{_newWeatherParameters:_,_oldWeatherParameters:T}=this;d>=1?this._weatherParameters=_:(this._fadedWeatherParameters.lerp(T,_,d),this._weatherParameters=this._fadedWeatherParameters)}_updateWeather(){const d=this._weatherUpdateParameters;(0,Qe.Wi)(d)||(0,Qe.Wi)(this._clouds)||(this._clouds.applyPreset(il.L[d.type],d.weatherAdjustment),this._setNeedsRender())}_setNeedsRender(){(0,Qe.pC)(this._context)&&this._context.requestRender()}_updateFogHaze(){const d=this._weatherUpdateParameters;if((0,Qe.Wi)(this._fog)||(0,Qe.Wi)(this._simpleHaze)||(0,Qe.Wi)(d)||(0,Qe.Wi)(this._context))return;const _=this._context.renderContext.bindParameters;switch(this._oldWeatherParameters.copyFrom(this._weatherParameters),d.type){case"foggy":this._newWeatherParameters.fog.strength=(0,xr.t7)(3e-5,.005,d.weatherAdjustment**3),(0,pt.c)(this._newWeatherParameters.fog.color,ZA),this._newWeatherParameters.fog.amount=1,this._newWeatherParameters.haze.strength=0,this._newWeatherParameters.haze.amount=this._selectAtmosphereType()===pa.Realistic?1:0,this._setNeedsRender();break;case"rainy":this._newWeatherParameters.fog.strength=(0,xr.t7)(4e-6,2e-4,d.effect**3),(0,pt.c)(this._newWeatherParameters.fog.color,a9),this._newWeatherParameters.fog.amount=1,this._newWeatherParameters.haze.strength=0,this._newWeatherParameters.haze.amount=0,this._setNeedsRender();break;case"snowy":this._newWeatherParameters.fog.strength=(0,xr.t7)(4e-6,2e-4,d.effect**3),(0,pt.c)(this._newWeatherParameters.fog.color,ZA),this._newWeatherParameters.fog.amount=1,this._newWeatherParameters.haze.strength=0,this._newWeatherParameters.haze.amount=this._selectAtmosphereType()===pa.Realistic?1:0,this._setNeedsRender();break;default:this._newWeatherParameters.fog.strength=0,this._newWeatherParameters.fog.amount=0,this._newWeatherParameters.haze.strength=4e-6,this._newWeatherParameters.haze.amount=1,this._setNeedsRender()}this._fadeWeather(_.weatherFading?0:1)}_updateAtmosphere(){const d=this._selectAtmosphereType();if(this.atmosphereType===d)return;const _=this._getAtmosphereClass();if(!_)return(0,Qe.pC)(this._atmosphere)&&(this._atmosphere.destroy(),this._atmosphere=null,this._setNeedsRender()),void this._updateBasemapTerrain();(0,Qe.pC)(this._context)&&((0,Qe.SC)(this._atmosphere),this._atmosphere=new _(this.view),this._atmosphere.initializeRenderContext(this._context),this._setNeedsRender(),this._updateBasemapTerrain())}_getAtmosphereClass(){switch(this._selectAtmosphereType()){case pa.None:return null;case pa.Realistic:return xA;case pa.Panoramic:return RB;case pa.Simple:return WB;default:return}}_selectAtmosphereType(){const d=this.view.get("environment.atmosphereEnabled"),_=this.view.get("environment.atmosphere.quality"),T=this.view.viewingMode;return!d||null==_||(0,hc.V2)(this.view.spatialReference)?pa.None:"local"===T?pa.Panoramic:"high"===_&&(0,Qe.pC)(this._context)&&xA.isSupported(this._context)&&(0,hc.N$)(this.view.spatialReference)?pa.Realistic:pa.Simple}_updateBasemapTerrain(){this.view.basemapTerrain&&(this.view.basemapTerrain.velvetOverground=(0,Qe.pC)(this._atmosphere)&&this.atmosphereType===pa.Simple)}get test(){return{atmosphere:this._atmosphere,clouds:this._clouds,selectAtmosphereType:()=>this._selectAtmosphereType(),stubGetAtmosphereClass:d=>{$A=R_.prototype._getAtmosphereClass,R_.prototype._getAtmosphereClass=d},restoreGetAtmosphereClass:()=>{R_.prototype._getAtmosphereClass=$A}}}};Ha.test={time:(0,mi.HA)(0)},(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ha.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],Ha.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"weatherVisible",null),(0,Ve._)([(0,ke.Cb)()],Ha.prototype,"_context",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_stars",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_precipitation",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_clouds",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_cloudsComposition",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_fog",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_simpleHaze",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"weatherEnabled",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_precipitationEnabled",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ha.prototype,"_weatherUpdateParameters",null),Ha=R_=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.EnvironmentRenderer")],Ha);class yP{constructor(){this.fog=new SB,this.haze=new GB}copyFrom(_){this.fog.amount=_.fog.amount,this.haze.amount=_.haze.amount,this.fog.strength=_.fog.strength,this.haze.strength=_.haze.strength,(0,pt.c)(this.fog.color,_.fog.color)}lerp(_,T,x){this.fog.amount=(0,xr.t7)(_.fog.amount,T.fog.amount,x),this.haze.amount=(0,xr.t7)(_.haze.amount,T.haze.amount,x),this.fog.strength=(0,xr.t7)(_.fog.strength,T.fog.strength,x),this.haze.strength=(0,xr.t7)(_.haze.strength,T.haze.strength,x),(0,pt.h)(this.fog.color,_.fog.color,T.fog.color,x)}}const a9=(0,ir.f)(.5,.5,.5),ZA=(0,ir.f)(1.5,1.5,1.5);let $A;function YA(d,_,T){if((0,Qe.Wi)(_.longitude)||(0,Qe.Wi)(_.latitude)||(0,Qe.Wi)(T.longitude)||(0,Qe.Wi)(T.latitude))throw new Error("Invalid points: no lon/lat");return function l9(d,_,T,x,A){const U=(0,xr.Vl)(T),ne=(0,xr.Vl)(A),fe=U-ne,Oe=(0,xr.Vl)(_)-(0,xr.Vl)(x),we=Math.sin(fe/2),Ze=Math.sin(Oe/2),it=2*(0,xr.Kt)(Math.sqrt(we*we+Math.cos(U)*Math.cos(ne)*Ze*Ze))*d;return Math.round(1e4*it)/1e4}(d,_.longitude,_.latitude,T.longitude,T.latitude)}function XA(d,_){_||(_={hours:0,minutes:0,seconds:0}),_.hours=function d9(d,_){let T=d/15;return _||(T=Math.round(T)),T}(d[0],!0);const T=_.hours%1;_.hours-=T,_.minutes=60*T;const x=_.minutes%1;return _.minutes-=x,_.seconds=Math.round(60*x),_}var kA,JA,QA,qA={exports:{}};kA=qA,JA=function(){var d=Math.PI,_=Math.sin,T=Math.cos,x=Math.tan,A=Math.asin,U=Math.atan2,ne=Math.acos,fe=d/180,it={dec:0,ra:0};function dt(wr){return new Date(864e5*(wr+.5-2440588))}function Tt(wr){return function lt(wr){return wr.valueOf()/864e5-.5+2440588}(wr)-2451545}var mt=23.4397*fe;function Mt(wr,Gr){return U(_(wr)*T(mt)-x(Gr)*_(mt),T(wr))}function Pt(wr,Gr){return A(_(Gr)*T(mt)+T(Gr)*_(mt)*_(wr))}function Nt(wr,Gr,zr){return U(_(wr),T(wr)*_(Gr)-x(zr)*T(Gr))}function Bt(wr,Gr,zr){return A(_(Gr)*_(zr)+T(Gr)*T(zr)*T(wr))}function Zt(wr,Gr){return fe*(280.16+360.9856235*wr)-Gr}function nr(wr){return fe*(357.5291+.98560028*wr)}function Jt(wr){return fe*(1.9148*_(wr)+.02*_(2*wr)+3e-4*_(3*wr))}function Rr(wr,Gr){return wr+Gr+102.9372*fe+d}function Br(wr,Gr){var zr=nr(wr),rs=Rr(zr,Jt(zr));return Gr||(Gr={dec:0,ra:0}),Gr.dec=Pt(rs,0),Gr.ra=Mt(rs,0),Gr}var $r={PolarException:{NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2},getPosition:function(wr,Gr,zr,rs){var ls=fe*-zr,ms=fe*Gr,ss=Tt(wr),Ms=Br(ss,it),Hs=Zt(ss,ls)-Ms.ra;return rs||(rs={azimuth:0,altitude:0}),rs.azimuth=Nt(Hs,ms,Ms.dec),rs.altitude=Bt(Hs,ms,Ms.dec),rs}},Yr=[[-.83,"sunrise","sunset"]];function os(wr,Gr,zr){return 9e-4+(wr+Gr)/(2*d)+zr}function br(wr,Gr,zr){return 2451545+wr+.0053*_(Gr)-.0069*_(2*zr)}function lr(wr){var Gr=fe*(134.963+13.064993*wr),zr=fe*(93.272+13.22935*wr),rs=fe*(218.316+13.176396*wr)+6.289*fe*_(Gr),ls=5.128*fe*_(zr),ms=385001-20905*T(Gr);return{ra:Mt(rs,ls),dec:Pt(rs,ls),dist:ms}}return $r.addTime=function(wr,Gr,zr){Yr.push([wr,Gr,zr])},$r.getTimes=function(wr,Gr,zr){var rs=fe*-zr,ls=fe*Gr,ms=function Xr(wr,Gr){return Math.round(wr-9e-4-Gr/(2*d))}(Tt(wr),rs),ss=os(0,rs,ms),Ms=nr(ss),Hs=Jt(Ms),Js=Rr(Ms,Hs),Gs=Pt(Js,0),bs=br(ss,Ms,Js);var Is,is,ii,Ys,Zs,ks={solarNoon:dt(bs),nadir:dt(bs-.5),polarException:$r.PolarException.NORMAL};for(Is=0,is=Yr.length;Is1?$r.PolarException.POLAR_NIGHT:$r.PolarException.NORMAL}(Yr[0][0]*fe),ks},$r.getMoonPosition=function(wr,Gr,zr){var rs=fe*-zr,ls=fe*Gr,ms=Tt(wr),ss=lr(ms),Ms=Zt(ms,rs)-ss.ra,Hs=Bt(Ms,ls,ss.dec);return Hs+=.017*fe/x(Hs+10.26*fe/(Hs+5.1*fe)),{azimuth:Nt(Ms,ls,ss.dec),altitude:Hs,distance:ss.dist}},$r.getMoonFraction=function(wr){var Gr=Tt(wr),zr=Br(Gr),rs=lr(Gr),ls=149598e3,ms=ne(_(zr.dec)*_(rs.dec)+T(zr.dec)*T(rs.dec)*T(zr.ra-rs.ra)),ss=U(ls*_(ms),rs.dist-ls*T(ms));return(1+T(ss))/2},$r},void 0!==(QA=JA())&&(kA.exports=QA);const Jp=qA.exports,Bu={local:{altitude:1500,ambientAtNight:.1,ambientAtNoon:.45,ambientAtTwilight:.2,directAtNoon:.65,directAtTwilight:.7},global:{altitude:8e5,ambient:.015,direct:.75},planarDirection:{localAltitude:1e4,globalAltitude:1e6,globalAngles:{azimuth:1.3*Math.PI,altitude:.6*Math.PI}}};function h9(d,_,T,x,A,U){(0,pt.s)(U.ambient.color,1,1,1),U.ambient.intensity=Bu.global.ambient,(0,pt.s)(U.direct.color,1,1,1),U.direct.intensity=Bu.global.direct;const fe=(0,xr.uZ)((Math.abs(_[2])-Bu.local.altitude)/(Bu.global.altitude-Bu.local.altitude),0,1);let Oe;if(U.globalFactor=fe,(0,Qe.pC)(d)&&(Oe=Jp.getTimes(d,_[1],_[0])),fe<1){let we;if((0,Qe.pC)(d))we=function y9(d,_,T){const x=d.valueOf();let A,U;_.polarException===Jp.PolarException.MIDNIGHT_SUN?(A=x-60*(d.getHours()+48)*60*1e3-60*d.getMinutes()*1e3,U=A+432e6):_.polarException===Jp.PolarException.POLAR_NIGHT?(A=x-2,U=x-1):(A=_.sunrise.valueOf(),U=_.sunset.valueOf());const ne=U-A,fe=A+ne/2,Oe=ne/4,we=fe-Oe,Ze=fe+Oe,it=.06*ne,lt=A-it/2,dt=A+it/2,Tt=U-it/2,mt=U+it/2,Mt=Bu.local,Pt=[.01,Mt.ambientAtNight],Nt=[.8,.8,1],Bt=[.01,.01,.01],Zt=[Mt.directAtTwilight,Mt.ambientAtTwilight],nr=[1,.6,.5],Jt=[.8,.8,1],Rr=[.9*Mt.directAtNoon,Mt.ambientAtNoon],Br=[1,.98,.98],$r=[.98,.98,1],Yr=[Mt.directAtNoon,Mt.ambientAtNoon],cs=[1,1,1],Xr=[1,1,1],os=Rr,br=Br,Vr=$r,lr=Zt,wr=nr,Gr=Jt;let zr,rs,ls=[0,0],ms=[0,0,0],ss=[0,0,0];xmt?(ls=Pt,ms=Bt,ss=Nt,rs="night"):x0&&(ms=i3(ms,Ms),ss=i3(ss,Ms));const Hs=(0,ir.f)(ms[0],ms[1],ms[2]),Js=(0,ir.f)(ss[0],ss[1],ss[2]),Gs=s3(T);return{direct:{intensity:ls[0]*Gs.direct,color:Hs},ambient:{intensity:ls[1]*Gs.ambient,color:Js},timeOfDay:rs}}(d,Oe,x);else{const Ze=s3(x);we={direct:{intensity:Bu.local.directAtNoon*Ze.direct,color:(0,ir.f)(1,1,1)},ambient:{intensity:Bu.local.ambientAtNoon*Ze.ambient,color:(0,ir.f)(1,1,1)},timeOfDay:"early afternoon"}}(0,pt.h)(U.ambient.color,we.ambient.color,U.ambient.color,fe),U.ambient.intensity=(0,xr.t7)(we.ambient.intensity,U.ambient.intensity,fe),(0,pt.h)(U.direct.color,we.direct.color,U.direct.color,fe),U.direct.intensity=(0,xr.t7)(we.direct.intensity,U.direct.intensity,fe),U.specularStrength="rainy"===x||"snowy"===x||"foggy"===x?0:1,U.environmentStrength="rainy"===x?.7:"snowy"===x||"foggy"===x?.75:1}U.noonFactor=(0,Qe.pC)(d)?function g9(d,_){const T=d.valueOf();let x,A;return _.polarException===Jp.PolarException.MIDNIGHT_SUN?(x=T-60*(d.getHours()+48)*60*1e3-60*d.getMinutes()*1e3,A=x+432e6):_.polarException===Jp.PolarException.POLAR_NIGHT?(x=T-2,A=T-1):(x=_.sunrise.valueOf(),A=_.sunset.valueOf()),1-(0,xr.uZ)(Math.abs(T-(x+(A-x)/2))/432e5,0,1)}(d,Oe):1,(0,Qe.pC)(d)?function t3(d,_,T,x){const A=m9,U=(0,gi.i)(f9);if(T===vi.JY.Global)Jp.getPosition(d,0,0,A),(0,pt.s)(x,0,0,-1),(0,gi.r)(U,U,-A.azimuth),(0,gi.n)(U,U,-A.altitude),(0,pt.m)(x,x,U);else{const ne=Bu.planarDirection,fe=ne.globalAngles;let we=(Math.abs(_[2])-ne.localAltitude)/(ne.globalAltitude-ne.localAltitude);we=(0,xr.uZ)(we,0,1),we<1?(Jp.getPosition(d,_[1],_[0],A),A.azimuth=(1-we)*A.azimuth+we*fe.azimuth,A.altitude=(1-we)*A.altitude+we*fe.altitude):(A.azimuth=fe.azimuth,A.altitude=fe.altitude),(0,pt.s)(x,0,-1,0),(0,gi.o)(U,U,-A.azimuth),(0,gi.r)(U,U,-A.altitude),(0,pt.m)(x,x,U)}}(d,_,T,U.direct.directionToLightSource):e3(A,T,U.direct.directionToLightSource)}function e3(d,_,T){_===vi.JY.Global?(0,pt.n)(vP,d.eye):(0,pt.s)(vP,0,0,1),(0,pt.g)(EP,d.viewForward,-1);const x=(0,sl.EU)(EP,vP),A=Math.max(x-2*bP,0),ne=Math.max(bP,x-bP-.85*A/(A+1));(0,gi.d)(o3,-ne,d.viewRight),(0,pt.m)(T,EP,o3),(0,pt.a)(T,T,(0,pt.g)(v9,d.viewRight,E9)),(0,pt.n)(T,T)}const _9=(0,ir.f)(.5773502691896258,-.5773502691896258,.5773502691896258);class r3{constructor(){this.ambient={color:(0,ir.f)(1,1,1),intensity:.55},this.direct={color:(0,ir.f)(1,1,1),intensity:.55,directionToLightSource:(0,ir.a)(_9)},this.noonFactor=.5,this.globalFactor=0,this.specularStrength=1,this.environmentStrength=1}}const f9=(0,gn.c)(),m9={azimuth:0,altitude:0};function s3(d){switch(d){case"disabled":case"sunny":case"cloudy":return{direct:1,ambient:1};case"rainy":return{direct:.4,ambient:1.2};case"snowy":return{direct:.5,ambient:1.3};case"foggy":return{direct:.2,ambient:1.6}}}function i3(d,_){const T=(d[0]+d[1]+d[2])/3;for(let x=0;x<3;x++)d[x]=d[x]+(T-d[x])*_;return d}function wa(d,_,T,x){const A=[];for(let U=0;Uthis._updateRenderParameters(),T=()=>this._cameraHandler();this._viewHandles.add([(0,Ht.YP)(()=>d.environment.lighting,x=>this._updateLightingHandler(x),Ht.Z_),(0,Ht.YP)(()=>"virtual"!==d.environment.lighting.type?d.environment.lighting.date:null,x=>this._lightingDateHandler(x),Ht.Z_),(0,Ht.YP)(()=>d.stationary,()=>this._interactingStationaryHandler()),(0,Ht.YP)(()=>d.environment.lighting.directShadowsEnabled,_,Ht.Z_),(0,Ht.YP)(()=>d.environment.lighting.ambientOcclusionEnabled,_,Ht.Z_),(0,Ht.YP)(()=>d.environment.lighting.waterReflectionEnabled,_,Ht.Z_),(0,Ht.YP)(()=>d.environment.background?.color,_,Ht.Z_),(0,Ht.YP)(()=>d.spatialReference,()=>this._resetReferencePosition(!0),Ht.Z_),(0,Ht.YP)(()=>d.environment.weather.type,()=>this._updateLighting(null,A_.Faded),Ht.Z_),(0,Ht.YP)(()=>this.weatherEnabled,()=>this._updateLighting(null,A_.Faded),Ht.Z_),(0,Ht.YP)(()=>d.viewingMode,()=>this._resetReferencePosition(!0),Ht.tX),(0,Ht.YP)(()=>"virtual"!==d.environment.lighting.type&&d.environment.lighting.cameraTrackingEnabled,x=>this._updateCameraTracking(x),Ht.tX),(0,Ht.YP)(()=>d.state.camera,T,Ht.tX),(0,Ht.YP)(()=>this.disableQueries,T)]),this._updateRenderParameters(),this._updateLighting(),this._cameraHandler(),this.notifyChange("updating")}disconnectView(){this._viewHandles.removeAll(),this._resetReferencePosition(),this._renderer=(0,Qe.SC)(this._renderer)}_updateLightingHandler(d){this._updateCameraTracking("virtual"!==d.type&&d.cameraTrackingEnabled),this._lightingDateHandler("virtual"!==d.type?d.date:null),this._updateRenderParameters()}_updateCameraTracking(d){if(this._trackingEnabled=d,d)this._cameraHandler();else{const _=this._view.environment.lighting;"virtual"!==_?.type&&(_.positionTimezoneInfo.autoUpdated=!1)}}_lightingDateHandler(d){const _=this._view.environment.lighting;if("virtual"!==_?.type){if(d){if(!_.positionTimezoneInfo.autoUpdated){if(this._preserveAbsoluteDateTime=!0,!(0,di.jF)(this._view.spatialReference)){const x=this._view.camera.position;if(!this._referencePosMapCoords||!this._referencePosMapCoords.equals(x))return void this._requestReferencePositionUpdate(x)}if(this._preupdateTracking(d),(0,Qe.pC)(this._referencePosWGS84Comparable)){const x=XA(this._referencePosWGS84Comparable,a3);(0,Qe.pC)(x)&&(_.autoUpdate(null,x),this._trackingEnabled&&(_.positionTimezoneInfo.autoUpdated=!0))}}this._updateLighting(d)}}else this._updateLighting()}_preupdateTracking(d){!this._trackingEnabled&&"virtual"!==this._view.environment.lighting.type&&this._view.environment.lighting.cameraTrackingEnabled&&this._cameraHandler(d)}_cameraHandler(d=null){const _=this._view;if(!_.ready)return;const T=_.stateManager.camera;T&&(this._cameraHandlerClientSide(T,d)||this._cameraHandlerServerSide(T))}_cameraHandlerClientSide(d,_){const T=(0,hc.N$)(this._view.spatialReference);if(T&&!(0,di.jF)(this._view.spatialReference))return"virtual"===this._view.environment.lighting.type&&this._updateLighting(),!1;const x=d.position;return(0,Qe.Wi)(this._referencePosWGS84Comparable)&&(this._referencePosWGS84Comparable=(0,ir.c)()),T?(0,di.UY)(x,this._referencePosWGS84Comparable):(0,pt.s)(this._referencePosWGS84Comparable,x.longitude,x.latitude,x.z),this.notifyChange("referencePositionWGS84Comparable"),this._autoUpdateTimezone(this._referencePosWGS84Comparable,_)||this._updateLighting(_),!0}_cameraHandlerServerSide(d){const _=d.position;(!this._referencePosMapCoords||this._referencePosMapCoordsRequested||this._exceedsReferencePosDistThreshold(_))&&this._requestReferencePositionUpdate(_,!0),this._view.mapCoordsHelper&&this._referencePosWGS84Comparable&&(this._referencePosWGS84Comparable[2]=_.z*this._view.mapCoordsHelper.unitInMeters,this._referencePosChanged())}_interactingStationaryHandler(){this._view.stationary&&this._executePendingReferencePositionUpdate()}_updateLighting(d,_=A_.Immediate){const T=this._view;d=d||("virtual"===T.environment.lighting.type?null:T.environment.lighting.date);const x=this._referencePosWGS84Comparable,A=(0,Qe.pC)(x)?b9:C9,U=this.weatherVisible?T.environment.weather.type:"disabled";(0,Qe.pC)(x)?h9(d,x,T.state.viewingMode,U,T.state.camera,A):"virtual"===T.environment.lighting.type&&e3(T.state.camera,T.state.viewingMode,A.direct.directionToLightSource);const ne=this._mainLight,fe=A.direct;(0,pt.g)(ne.intensity,fe.color,fe.intensity*Math.PI),(0,pt.c)(ne.direction,fe.directionToLightSource),ne.specularStrength=A.specularStrength,ne.environmentStrength=A.environmentStrength;const Oe=this._ambientLight;(0,pt.g)(Oe.intensity,A.ambient.color,A.ambient.intensity);const we=this._moonLight;(0,pt.h)(we.intensity,M9,P9,A.globalFactor),(0,pt.g)(we.intensity,we.intensity,(1-.5*A.globalFactor)*(1-.4*A.noonFactor*(1-A.globalFactor))),(0,pt.c)(we.direction,fe.directionToLightSource),this._renderer.updateLightSources([ne,Oe,we],A.noonFactor,A.globalFactor,_),this._updateRenderParameters()}_autoUpdateTimezone(d,_=null){if("virtual"===this._view.environment.lighting.type||!this._view.environment.lighting.cameraTrackingEnabled||(0,Qe.Wi)(d))return!1;const T=T9;T.setTime((_||this._view.environment.lighting.date).getTime());const x=XA(d,a3);if((0,Qe.Wi)(x))return!1;let A=this._view.environment.lighting.positionTimezoneInfo;if(A.autoUpdated){if(A.hours===x.hours&&A.minutes===x.minutes&&A.seconds===x.seconds)return!1}else A=x;const U=T.getUTCHours()-(x.hours-A.hours),ne=T.getUTCMinutes()-(x.minutes-A.minutes),fe=T.getUTCSeconds()-(x.seconds-A.seconds);return T.setUTCHours(U),T.setUTCMinutes(ne),T.setUTCSeconds(fe),!_&&this._view.environment.lighting.autoUpdate(T,x)}_updateRenderParameters(){const d=this._view._stage;if(!d)return;const _=(0,Qe.R2)(this._referencePosWGS84Comparable,!0,A=>function p9(d,_){if(_===vi.JY.Global)return!0;const T=Bu.planarDirection;return Math.abs(d){if(this._referencePosUpdateQuery===T)return this._doReferencePositionUpdateQuery(()=>this._referencePosUpdateQuery!==T)}).catch(A=>{"mapcoordshelper:missing-geometry-service"===A.name&&(this.disableQueries=!0)}).then(()=>{this._referencePosUpdateQuery===T&&(this._referencePosUpdateQuery=null,this._referencePosUpdateTimer||this._executePendingReferencePositionUpdate(),this.notifyChange("updating"))}),x=this._referencePosUpdateTimer=(0,ws.e4)(this._referencePointUpdateInterval).then(()=>{this._referencePosUpdateTimer===x&&(this._referencePosUpdateTimer=null,this._referencePosUpdateQuery||this._executePendingReferencePositionUpdate())});this.notifyChange("updating")}}_doReferencePositionUpdateQuery(d){var _=this;return(0,kr.Z)(function*(){_._referencePosResetPreserveAbsoluteTime&&(_._preserveAbsoluteDateTime=!1),_._referencePosMapCoords?_._referencePosMapCoords.copy(_._referencePosMapCoordsRequested):_._referencePosMapCoords=_._referencePosMapCoordsRequested.clone(),_._referencePosResetPreserveAbsoluteTime=null,_._referencePosMapCoordsRequested=null;const T=yield _._view.mapCoordsHelper.toGeographic(_._referencePosMapCoords);if(!d()&&!isNaN(T[0])&&!isNaN(T[1])){const x=_._referencePosMapCoords.z*_._view.mapCoordsHelper.unitInMeters;_._referencePosWGS84Comparable?(_._referencePosWGS84Comparable[0]=T[0],_._referencePosWGS84Comparable[1]=T[1],_._referencePosWGS84Comparable[2]=x):_._referencePosWGS84Comparable=[T[0],T[1],x],_._referencePosChanged()}})()}_executePendingReferencePositionUpdate(){const d=this._referencePosMapCoordsRequested;d&&this._requestReferencePositionUpdate(d,this._referencePosResetPreserveAbsoluteTime)}_referencePosChanged(){this._preserveAbsoluteDateTime?this._updateLighting():this._autoUpdateTimezone(this._referencePosWGS84Comparable)||this._updateLighting(),this.notifyChange("referencePositionWGS84Comparable")}_exceedsReferencePosDistThreshold(d){if(this._referencePosMapCoords){let _=this._referencePosMapCoords.distance(d);return this._view.mapCoordsHelper&&(_*=this._view.mapCoordsHelper.unitInMeters),_>this._referencePointUpdateDistThreshold}return!0}_cancelReferencePosUpdates(){const d=!!this._referencePosUpdateQuery;return this._referencePosUpdateQuery=null,this._referencePosUpdateTimer=null,d}get test(){const d=this;return{get renderer(){return d._renderer},set referencePointUpdateInterval(_){d._referencePointUpdateInterval=_},set referencePointUpdateDistThreshold(_){d._referencePointUpdateDistThreshold=_},set referencePosUpdateTimer(_){d._referencePosUpdateTimer=_},set referencePointUpdateDelay(_){d._referencePointUpdateDelay=_},set disableWeather(_){d._disableWeather=_}}}};(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],cu.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)()],cu.prototype,"disableQueries",void 0),(0,Ve._)([(0,ke.Cb)()],cu.prototype,"_disableWeather",void 0),(0,Ve._)([(0,ke.Cb)()],cu.prototype,"weatherEnabled",null),(0,Ve._)([(0,ke.Cb)()],cu.prototype,"weatherVisible",null),(0,Ve._)([(0,ke.Cb)()],cu.prototype,"referencePositionWGS84Comparable",null),(0,Ve._)([(0,ke.Cb)()],cu.prototype,"_renderer",void 0),(0,Ve._)([(0,ke.Cb)()],cu.prototype,"_referencePosWGS84Comparable",void 0),cu=(0,Ve._)([(0,Wr.j)("esri.views.3d.environment.SceneViewEnvironmentManager")],cu);const b9=new r3,C9=new r3,T9=new Date,a3={hours:0,minutes:0,seconds:0},M9=(0,ir.f)(.22,.22,.33),P9=(0,ir.f)(.22,.22,.22);var xn,wi,qo,oo=v(97126),yc=v(70562);function fg(d,_){return 0!=(d&_)}function d1(d,_,T,x,A,U){0!==d&&(T?(U.min=Math.min(U.min,_),U.max=Math.max(U.max,_)):null!=x?(U.min-=Math.max(0,(_-U.min)*(1-x)),U.max+=Math.max(0,(_-U.max)*(1-x))):A&&(U.min-=Math.max(0,_-U.min-A),U.max+=Math.max(0,_-U.max-A)))}!function(d){d[d.NONE=0]="NONE",d[d.TILT=1]="TILT",d[d.ALTITUDE=2]="ALTITUDE",d[d.DISTANCE=4]="DISTANCE",d[d.COLLISION=8]="COLLISION",d[d.ALL=15]="ALL",d[d.ALL_EXCEPT_COLLISION=7]="ALL_EXCEPT_COLLISION"}(xn||(xn={})),function(d){d[d.NONE=0]="NONE",d[d.ZOOM=1]="ZOOM",d[d.TUMBLE=2]="TUMBLE",d[d.LOOK_AROUND=3]="LOOK_AROUND",d[d.PAN=4]="PAN",d[d.ASCEND=5]="ASCEND"}(wi||(wi={})),function(d){d[d.TUMBLE=0]="TUMBLE",d[d.LOOK_AROUND=1]="LOOK_AROUND"}(qo||(qo={}));const Ah={selection:xn.NONE,interactionType:wi.NONE,interactionFactor:0,interactionStartCamera:null,interactionDirection:null,tiltMode:qo.TUMBLE};function l3(d,_,T,x){return(0,pt.c)(x,_=_||d.viewForward),(0,pt.g)(x,x,Math.sign((0,pt.e)(_,T))),x}var O9=v(24229);function TP(d,_,T=Ah){if(!function D9(d,_){return!(!d.state.isGlobal||!d.state.constraints.altitude||_.interactionType===wi.TUMBLE&&fg(_.selection,xn.TILT))}(d,T))return 0;const x=function R9(d,_){return _.min=d.min,_.max=d.max,_}(d.state.constraints.altitude,w9);!function S9(d,_,T){const x=_.interactionType;if(x===wi.NONE)return;const{min:A,max:U}=T,{interactionStartCamera:ne,interactionFactor:fe}=_,Oe=x===wi.TUMBLE||x===wi.ZOOM,we=TP(d,ne),Ze=0===we?0:d.renderCoordsHelper.getAltitude(ne.eye);T.min=A,T.max=U,d1(we,Ze,Oe,fe,.05*Ze,T)}(d,T,x);const A=d.renderCoordsHelper.getAltitude(_.eye),U=(0,xr.uZ)(A,x.min,x.max)-A;return Math.abs(U)<=1e-6?0:U}const w9={min:0,max:0},I9=(0,ir.c)(),L9=(0,ir.c)(),U9=(0,ir.c)(),MP=(0,ir.c)();function PP(d,_,T=Ah){if(!d.state.isLocal)return 0;const x=d.state.constraints.distance;if(!d.pointsOfInterest.surfaceOrigin.renderLocation||x===1/0)return 0;h1.min=0,h1.max=x,function j9(d,_,T){const x=_.interactionType;if(x===wi.NONE)return;const{min:A,max:U}=T,{interactionStartCamera:ne,interactionFactor:fe}=_,Oe=x===wi.ZOOM||x===wi.PAN,we=PP(d,ne),Ze=0===we?0:OP(d,ne);T.min=A,T.max=U,d1(we,Ze,Oe,fe,.05*Ze,T)}(d,T,h1);const A=OP(d,_),U=h1.max-A;return U>=-1e-6?0:U}function OP(d,_){return(0,pt.i)(_.eye,d.pointsOfInterest.surfaceOrigin.renderLocation)}const h1={min:0,max:0},N9=(0,ir.c)(),W9=(0,ir.c)(),V9=(0,ir.c)(),z9=(0,ir.c)(),p1=(0,ir.c)();var Ga=v(62483);function c3(d,_,T,x){return(0,Qe.pC)(d.renderCoordsHelper.fromRenderCoords(_.eye,f1,x))&&(0,Bs.BD)(T,f1)}function _1(d,_){return d.elevationProvider?(0,Qe.Pt)(d.elevationProvider.getElevation(_[0],_[1],_[2],d.renderCoordsHelper.spatialReference,"ground"),0):0}function Qp(d,_,T,x){const A=d.state.camera.clone();_&&(A.eye=_,A.center=T,A.up=x),function H9(d,_,T){let x=d3[d.viewingMode];x||(x=(0,Ga.Z8)(d.state.viewingMode),x.options.backfacesTerrain=!d.state.isGlobal,x.options.invisibleTerrain=!0,d3[d.viewingMode]=x);const{isGlobal:A}=d.state;return!(!d.sceneIntersectionHelper.intersectRay(_,x,T)||u3(d,_.origin,T))||!(!d.renderCoordsHelper.intersectManifold(_,0,T)||u3(d,_.origin,T))||!!A&&function G9(d,_,T){const x=(0,pt.e)(d.origin,d.origin)-T*T,A=x>0?Math.sqrt(x)/3:1;return(0,pt.g)(_,d.direction,A/(0,pt.l)(d.direction)),(0,pt.a)(_,_,d.origin),!0}(_,T,(0,En.Iu)(d.spatialReference).radius)}(d,A.ray,Rh)||(0,pt.c)(Rh,A.center);const U=d.state.constraints,ne=U.minimumPoiDistance;if((0,pt.d)(A.eye,Rh)ne}const d3={},f1=(0,ir.c)(),Rh=(0,ir.c)(),qp=(0,ir.c)(),K9={near:0,far:0};function w_(d,_,T=Vc.EYE){const x=d.state.constraints;if(!x.collision.enabled)return!1;const A=_1(d,_.eye),U=d.renderCoordsHelper.getAltitude(_.eye),ne=A+x.collision.elevationMargin;if(U>=ne)return!1;const fe=(0,pt.l)(_.eye);return(0,pt.b)(m1,_.center,_.eye),_.eye=d.renderCoordsHelper.setAltitude(Z9,ne,_.eye),T===Vc.EYE_AND_CENTER?_.center=(0,pt.a)(m1,_.eye,m1):T===Vc.EYE_AND_CENTER_SCALE&&(_.center=(0,pt.g)(m1,_.center,(fe-U+ne)/fe)),!0}var Vc;!function(d){d[d.EYE=0]="EYE",d[d.EYE_AND_CENTER=1]="EYE_AND_CENTER",d[d.EYE_AND_CENTER_SCALE=2]="EYE_AND_CENTER_SCALE"}(Vc||(Vc={}));const m1=(0,ir.c)(),Z9=(0,ir.c)();function wh(d,_,T){d.worldUpAtPosition(_,h3),(0,pt.b)(xP,T,_);const x=(0,pt.l)(xP);return 0===x?0:(0,xr.ZF)((0,pt.e)(xP,h3)/x)}const h3=(0,ir.c)(),xP=(0,ir.c)();function DP(d,_,T=Ah,x=Ah,A){if(!d.state.constraints.tilt)return 0;const ne=d.state.constraints.tilt(_.distance,r7);return function t7(d,_,T){if(_.interactionType===wi.NONE)return;const{interactionStartCamera:x,interactionFactor:A}=_,{min:U,max:ne}=T,fe=DP(d,x,Ah,_),Oe=0===fe?0:wh(d.renderCoordsHelper,x.center,x.eye);T.min=U,T.max=ne,_.interactionType===wi.TUMBLE?(fg(_.selection,xn.ALTITUDE)&&_3(d,x,T),d1(fe,Oe,!0,A,f3,T)):d1(fe,Oe,!1,A,f3,T)}(d,T,ne),x.interactionType===wi.TUMBLE&&fg(x.selection,xn.ALTITUDE)&&_3(d,x.interactionStartCamera,ne),T.tiltMode===qo.LOOK_AROUND||x.tiltMode===qo.LOOK_AROUND?function Y9(d,_,T,x){switch(x&&(x.requiresTwoSteps=!1),d.viewingMode){case"global":return function k9(d,_,T,x){const A=function J9(d,_,T){const x=d.pointsOfInterest.centerOnSurfaceFrequent.estimatedSurfaceAltitude,A=x+(0,En.Iu)(d.spatialReference).radius,U=d.renderCoordsHelper.intersectManifold(_.ray,x,Lh);return T.eyeCenterDistance=_.distance,T.centerIsOnSurface=!1,(0,Qe.pC)(U)?(T.eyeCenterDistance=(0,pt.i)(_.eye,U),T.tiltAtCenter=wh(d.renderCoordsHelper,U,_.eye),T.centerIsOnSurface=!0):d.state.isLocal?T.tiltAtCenter=wh(d.renderCoordsHelper,_.center,_.eye):((0,oo.b)((0,oo.e)(oo.t,A),_.ray,Lh),T.eyeCenterDistance=(0,pt.i)(_.eye,Lh),T.tiltAtCenter=(0,xr.ZF)(-(0,pt.e)(_.viewForward,(0,pt.n)(Lh,Lh)))),T.radius=A,T.eyeRadius=(0,pt.l)(_.eye),T.constraints=d.state.constraints,T}(d,_,s7),U=(0,xr.uZ)(A.tiltAtCenter,T.min,T.max);if(!mg(A.tiltAtCenter-U))return 0;let ne,fe;return A.centerIsOnSurface?(ne=function Q9(d){const{constraints:_,eyeCenterDistance:T,tiltAtCenter:x}=d;let A=x,U=_.clampTilt(T,x);const ne=SP(d,U);if(_.clampTilt(ne,x)===U)return U;let fe=0;for(;fe<10&&mg(U-A);){const Oe=(A+U)/2,we=SP(d,Oe);mg(_.clampTilt(we,Oe)-Oe)?A=Oe:U=Oe,fe++}return U}(A),fe=function q9(d,_){const T=(0,xr.Kt)(d.radius/d.eyeRadius*Math.sin(d.tiltAtCenter)),x=(0,xr.Kt)(d.radius/d.eyeRadius*Math.sin(_));return d.eyeRadius>d.radius?T-x:x-T}(A,ne)):(ne=A.constraints.clampTilt(A.eyeCenterDistance,A.tiltAtCenter),x&&ne1e-4?Oe/we:_.distance}return ne}(d,_,T,x);default:return void(0,Rm.Bg)(d.viewingMode)}}(d,_,ne,A):function $9(d,_,T){const x=wh(d.renderCoordsHelper,_.center,_.eye),A=x-(0,xr.uZ)(x,T.min,T.max);return mg(A)?A:0}(d,_,ne)}function mg(d){return Math.abs(d)>1e-9}function SP(d,_){if(!d.centerIsOnSurface)return d.eyeCenterDistance;const T=Math.PI-(0,xr.uZ)(_,0,Math.PI),x=(0,xr.Kt)(d.radius/d.eyeRadius*Math.sin(T)),A=Math.PI-T-x,U=Math.sin(A)/Math.sin(T);if(d.eyeRadius1){const ne=Math.PI-x,fe=Math.PI-T-ne;return Math.sin(fe)/Math.sin(T)*d.eyeRadius}return U*d.eyeRadius}function _3(d,_,T){if(d.state.isLocal)return;const x=d.state.constraints;if(!x.altitude)return;const A=(0,pt.p)(_.center),U=Math.sqrt(A),ne=_.distance,fe=(0,En.Iu)(d.spatialReference).radius,Oe=x.altitude.min+fe,we=x.altitude.max+fe,Ze=(Oe*Oe-ne*ne-A)/(-2*U*ne);T.min=Math.max(T.min,Math.min(Math.PI-(0,xr.ZF)((we*we-ne*ne-A)/(-2*U*ne)),T.max)),T.max=Math.min(T.max,Math.PI-(0,xr.ZF)(Ze))}const Ih=(0,ir.c)(),g1=(0,gn.c)(),Lh=(0,ir.c)(),f3=(0,xr.Vl)(5),r7={min:0,max:0},s7={constraints:null,radius:0,eyeRadius:0,centerIsOnSurface:!0,eyeCenterDistance:0,tiltAtCenter:0},gg={eyeCenterDistance:0,requiresTwoSteps:!1},y1=d=>d*d,AP=d=>1-y1(1-d),RP=d=>d*d*d,m3=d=>1-RP(1-d),g3=d=>d<.5?RP(2*d)/2:(m3(2*(d-.5))+1)/2,wP=d=>d*d*d*d,y3=d=>1-wP(1-d),IP=d=>d*d*d*d*d,v3=d=>1-IP(1-d),LP=d=>1-Math.cos(d*Math.PI/2),E3=d=>1-LP(1-d),UP=d=>2**(10*(d-1)),yg=d=>1-UP(1-d),BP=d=>-(Math.sqrt(1-d*d)-1),b3=d=>1-BP(1-d);function zc(d){const _=2*(d-Math.sqrt((d-1)*d)),T=_/2/d;return x=>xT<_?_*d(T/_,x):1-d((1-T)/(1-_),x)*(1-_)}const d7=Hc(zc(1),1),h7=Hc(zc(1),0),C3=Hc(zc(1),.5),p7=Hc(zc(2),1),_7=Hc(zc(2),0),f7=Hc(zc(2),.5),m7=Hc(zc(3),1),g7=Hc(zc(3),0),y7=Hc(zc(3),.5),v7=Hc(zc(4),1),E7=Hc(zc(4),0),b7=Hc(zc(4),.5),C7={linear:function i7(d){return d},"in-quad":y1,"out-quad":AP,"in-out-quad":d=>d<.5?y1(2*d)/2:(AP(2*(d-.5))+1)/2,"in-coast-quad":d7,"out-coast-quad":h7,"in-out-coast-quad":C3,"in-cubic":RP,"out-cubic":m3,"in-out-cubic":g3,"in-coast-cubic":p7,"out-coast-cubic":_7,"in-out-coast-cubic":f7,"in-quart":wP,"out-quart":y3,"in-out-quart":d=>d<.5?wP(2*d)/2:(y3(2*(d-.5))+1)/2,"in-coast-quart":m7,"out-coast-quart":g7,"in-out-coast-quart":y7,"in-quint":IP,"out-quint":v3,"in-out-quint":d=>d<.5?IP(2*d)/2:(v3(2*(d-.5))+1)/2,"in-coast-quint":v7,"out-coast-quint":E7,"in-out-coast-quint":b7,"in-sine":LP,"out-sine":E3,"in-out-sine":d=>d<.5?LP(2*d)/2:(E3(2*(d-.5))+1)/2,"in-expo":UP,"out-expo":yg,"in-out-expo":d=>d<.5?UP(2*d)/2:(yg(2*(d-.5))+1)/2,"in-circ":BP,"out-circ":b3,"in-out-circ":d=>d<.5?BP(2*d)/2:(b3(2*(d-.5))+1)/2};function _o(d,_,T=O7,x=_){x!==_&&x.copyFrom(_),x.computeUp(d.state.viewingMode);let A=!1;for(let fe=0;fe=Math.PI&&(x=2*Math.PI-x);const A=Math.abs(_.pitch-this.pitch);return T.rotate=Math.max(x,A),T.sourceZoom=this.distance,T.targetZoom=_.distance,T}interpolate(_,T,x){this.viewingMode===vi.JY.Global?(0,sl.ZA)(_.center,T.center,x.pan,this.center):(0,pt.h)(this.center,_.center,T.center,x.pan),this.distance=isFinite(T.distance)?(0,xr.t7)(_.distance,T.distance,x.zoom):_.distance,this.pitch=(0,xr.t7)(_.pitch,T.pitch,x.rotate);let A=_.yaw;const U=T.yaw;Math.abs(U-A)>=Math.PI&&(A+=2*(A0&&(0,pt.g)(x,x,-1)):(0,pt.c)(x,_),(0,pt.f)(Yl,x,Ec.upward),(0,pt.n)(Yl,Yl),(0,sl.EU)(Ec.sideway,Yl,Ec.upward)}}var $i=v(59856);const v1_minDuration=(0,mi.HA)(500),v1_maxDuration=(0,mi.HA)(8e3);class jP{constructor(_){this._createCamera=_,this.compared={sourceZoom:0,targetZoom:0,pan:0,rotate:0},this.settings={desiredScreenFlow:2},this.source=_(),this.target=_()}clone(){const _=new jP(this._createCamera);return _.copyFrom(this),_}copyFrom(_){this.update(_.source,_.target,_.settings)}update(_,T,x){this.source!==_&&this.source.copyFrom(_),this.target!==T&&this.target.copyFrom(T),this.compared=this.source.compareTo(this.target,this.compared),this.settings.desiredScreenFlow=null!=x.desiredScreenFlow?x.desiredScreenFlow:2,this.desiredPixelFlow=this.settings.desiredScreenFlow*this.target.size,this.halfWindowSize=this.target.size/2}halfWindowPanAtZoom(_){const T=this.target.pixelsPerPanAtZoom(_);return this.halfWindowSize/T}get hasZoom(){return Math.abs(this.compared.sourceZoom-this.compared.targetZoom)>1e-5}get hasPan(){return this.compared.pan>1e-9}get hasRotate(){return this.compared.rotate>1e-9}}class S7{constructor(){this.segments=[]}get time(){return this.segments.reduce((_,T)=>(0,mi._H)(_+T.time),(0,mi._H)(0))}interpolateComponentsAt(_,T){_=Math.min(Math.max(_,0),1),_*=this.time;let x=0,A=0;const U=this.definition;for(let ne=0;neA?1:-1,this._panPixelsAtSource=T.pan*_.source.pixelsPerPanAtZoom(x);const U=(_.source.pixelsPerRotateAtZoom(x)+_.target.pixelsPerRotateAtZoom(A))/2;this._rotatePixels=T.rotate*U}_updatePixelFlow(){const _=this.definition.compared.sourceZoom,T=this.definition.compared.targetZoom,{hasZoom:x,hasPan:A,hasRotate:U}=this.definition;let ne=0,fe=0;x&&(A&&(ne=(T/_-1)/(-1/(this._zoomSign*this.definition.halfWindowSize)*Math.LN2*this._panPixelsAtSource)),U&&(fe=this._zoomSign*(Math.log(_/T)/Math.LN2)*this.definition.halfWindowSize/this._rotatePixels)),this._zoomPixelFlow=0,this._panPixelFlow=0,this._rotatePixelFlow=0;const Oe=this.definition.desiredPixelFlow;if(x&&A&&U){const we=ne+fe+ne*fe;this._zoomPixelFlow=ne*fe/we*Oe,this._panPixelFlow=fe/we*Oe,this._rotatePixelFlow=ne/we*Oe}else if(x&&A){const we=1+ne;this._zoomPixelFlow=ne/we*Oe,this._panPixelFlow=1/we*Oe}else if(x&&U){const we=1+fe;this._zoomPixelFlow=fe/we*Oe,this._rotatePixelFlow=1/we*Oe}else if(A&&U){const we=this._panPixelsAtSource/this._rotatePixels,Ze=1+we;this._panPixelFlow=we/Ze*Oe,this._rotatePixelFlow=1/Ze*Oe}else A?this._panPixelFlow=Oe:x?this._zoomPixelFlow=Oe:U&&(this._rotatePixelFlow=Oe);this._time=U?this.rotateTime:x?this.zoomTime:A?this.panTime:(0,mi._H)(0)}get rotateTime(){return(0,mi._H)(this.definition.hasRotate?this._rotatePixels/this._rotatePixelFlow:0)}get zoomTime(){return(0,mi._H)(this.definition.hasZoom?this._zoomSign*(Math.log(this.definition.compared.sourceZoom/this.definition.compared.targetZoom)/Math.LN2)*this.definition.halfWindowSize/this._zoomPixelFlow:0)}get panTime(){if(this.definition.hasPan){if(this.definition.hasZoom){const _=-1/(this._zoomSign*this.definition.halfWindowSize)*Math.LN2;return(0,mi._H)(Math.log(_*this._panPixelsAtSource*(this._zoomPixelFlow/this._panPixelFlow)+1)/(_*this._zoomPixelFlow))}return(0,mi._H)(this._panPixelsAtSource/this._panPixelFlow)}return(0,mi._H)(0)}_interpolateComponentsZoom(_){if(0===_||1===_)return _;if(this.definition.hasZoom){const T=this.definition.compared.sourceZoom,x=this.definition.compared.targetZoom;return(T*(T/x)**-_-T)/(x-T)}return _}_interpolateComponentsPan(_){if(0===_||1===_)return _;if(this.definition.hasPan&&this.definition.hasZoom){const T=-1/(this._zoomSign*this.definition.halfWindowSize)*this._zoomPixelFlow;return 1/this._panPixelsAtSource*(this._panPixelFlow*(2**(T*_*this._time)-1))/(T*Math.LN2)}return _}_interpolateComponentsRotate(_){return _}interpolateComponentsAt(_,T){_=Math.min(Math.max(_,0),1);const x=this._interpolateComponentsZoom(_),A=this._interpolateComponentsPan(_),U=this._interpolateComponentsRotate(_);return T?(T.zoom=x,T.pan=A,T.rotate=U):T={zoom:x,pan:A,rotate:U},T}}function A7(d,_,T){const A=d.halfWindowPanAtZoom(_-d.compared.sourceZoom);return-d.halfWindowSize*(T.ascensionFactor*Math.LN2*d.compared.pan+A)*Math.log(d.compared.sourceZoom/_)/(d.desiredPixelFlow*Math.LN2*A)}function R7(d,_,T){const x=1/_,A=Math.log(d.compared.sourceZoom*x),U=1/d.desiredPixelFlow,ne=1/Math.LN2,fe=_-d.compared.sourceZoom,Oe=1/fe,we=(T.ascensionFactor*Math.LN2*d.compared.pan+d.halfWindowPanAtZoom(fe))/d.halfWindowPanAtZoom(1);return d.halfWindowSize*x*U*ne*Oe*we-d.halfWindowSize*A*U*ne*Oe+d.halfWindowSize*A*U*ne*we/(fe*fe)}function w7(d,_,T){const x=_-d.compared.sourceZoom,A=1/x,U=1/_,ne=Math.log(d.compared.sourceZoom*U),fe=(T.ascensionFactor*Math.LN2*d.compared.pan+d.halfWindowPanAtZoom(x))/d.halfWindowPanAtZoom(1);return d.halfWindowSize*A*(-2*A*U*fe+2*A*ne+2*U-2*ne*fe/(x*x)-fe/(_*_))/(d.desiredPixelFlow*Math.LN2)}function I7(d,_){return-d.halfWindowSize*Math.log(d.compared.sourceZoom/_)/(d.desiredPixelFlow*Math.LN2)}function L7(d,_){return d.halfWindowSize/(_*d.desiredPixelFlow*Math.LN2)}function U7(d,_){return-d.halfWindowSize/(_*_*d.desiredPixelFlow*Math.LN2)}function N7(d,_,T){return d.halfWindowSize*(-d.halfWindowPanAtZoom(_)-T.descensionFactor*Math.LN2*d.compared.pan+d.halfWindowPanAtZoom(d.compared.targetZoom))*Math.log(_/d.compared.targetZoom)/(d.desiredPixelFlow*Math.LN2*d.halfWindowPanAtZoom(-_+d.compared.targetZoom))}function W7(d,_,T){const x=Math.log(_/d.compared.targetZoom),A=1/d.desiredPixelFlow,U=1/Math.LN2,ne=-_+d.compared.targetZoom,fe=1/ne,Oe=(-d.halfWindowPanAtZoom(_)-T.descensionFactor*Math.LN2*d.compared.pan+d.halfWindowPanAtZoom(d.compared.targetZoom))/d.halfWindowPanAtZoom(1);return-d.halfWindowSize*x*A*U*fe+d.halfWindowSize*x*A*U*Oe/(ne*ne)+d.halfWindowSize*A*U*fe*Oe/_}function V7(d,_,T){const x=_-d.compared.targetZoom,A=1/x,U=1/_,ne=Math.log(_/d.compared.targetZoom),fe=(d.halfWindowPanAtZoom(_)+T.descensionFactor*Math.LN2*d.compared.pan-d.halfWindowPanAtZoom(d.compared.targetZoom))/d.halfWindowPanAtZoom(1);return d.halfWindowSize*A*(-2*A*U*fe-2*A*ne+2*U+2*ne*fe/(x*x)-fe/(_*_))/(d.desiredPixelFlow*Math.LN2)}function z7(d,_){return d.halfWindowSize*Math.log(_/d.compared.targetZoom)/(d.desiredPixelFlow*Math.LN2)}function H7(d,_){return d.halfWindowSize/(_*d.desiredPixelFlow*Math.LN2)}function G7(d,_){return-d.halfWindowSize/(_*_*d.desiredPixelFlow*Math.LN2)}class Y7 extends S7{constructor(_,T){super(),this._preallocSegments=[new FP,new FP,new FP],this.update(_,T)}update(_,T){if(!_)return;this.definition?this.definition.copyFrom(_):this.definition=_.clone();let x=null;T&&T.apex&&(x=function Z7(d,_){let T=function $7(d,_){const T=Math.max(d.compared.sourceZoom,d.compared.targetZoom),x=d.source.zoomAtPixelsPerPan(d.desiredPixelFlow/d.compared.pan)/2;return xne(d,Zt,x)+function B7(d,_,T){return-d.compared.pan*d.halfWindowSize*(T.ascensionFactor+T.descensionFactor-1)/(d.desiredPixelFlow*d.halfWindowPanAtZoom(_))}(d,Zt,x)+we(d,Zt,x),Tt=Zt=>Oe(d,Zt,x)+function F7(d,_,T){return-2*d.compared.pan*d.halfWindowSize*(T.ascensionFactor+T.descensionFactor-1)/(d.desiredPixelFlow*d.halfWindowPanAtZoom(_*_*_))}(d,Zt,x)+it(d,Zt,x);let mt=lt(T);const Mt=function K7(d){const _=Math.LN2*d.compared.pan,x=d.halfWindowPanAtZoom(d.compared.sourceZoom-d.compared.targetZoom),A=d.halfWindowSize*Math.log(d.compared.sourceZoom/d.compared.targetZoom)/(d.desiredPixelFlow*Math.LN2*x);return d.compared.sourceZoom<=d.compared.targetZoom?A*(_-x):A*(_+x)}(d);let Pt;const Nt=_.maximumIterations||20,Bt=null!=_.maximumDistance?_.maximumDistance:1/0;for(Pt=0;Pt=Bt&&nr<0){if(!isFinite(Bt))return null;T=Bt,mt=lt(T);break}if(T-=nr,T.7*Mt||T0&&(A.definition?A.definition.copyFrom(this.definition):A.definition=this.definition.clone(),A.definition.copyFrom(this.definition),A.definition.compared.sourceZoom=_,A.definition.compared.targetZoom=_,A.definition.compared.pan=this.definition.compared.pan*Oe,A.definition.compared.rotate=this.definition.compared.rotate*Oe,A.update(),this.segments.push(A)),U.definition?U.definition.copyFrom(this.definition):U.definition=this.definition.clone(),U.definition.compared.sourceZoom=_,U.definition.compared.pan=this.definition.compared.pan*fe,U.definition.compared.rotate=this.definition.compared.rotate*fe,U.update(),this._descensionSegment=U,this.segments.push(U)}_updateWithoutApex(){const[_]=this._preallocSegments;_.update(this.definition),this.segments.push(_)}}const X7={zoom:0,pan:0,rotate:0};class k7{constructor(_){this._createCamera=_,this._time=(0,mi.HA)(0),this.definition=new jP(_),this.path=new Y7}get time(){return this._time}update(_,T,x){this.definition.update(_,T,x),this.path.update(this.definition,x),this._time=this._applyTimeSettings((0,mi.up)(isFinite(this.path.time)?this.path.time:(0,mi._H)(0)),x),this._easing=x.easing?x.easing:this._time>=1e3?C3:yg}cameraAt(_,T){T=T||this._createCamera(),_=Math.min(Math.max(0,_),1),_=this._normalizedEasing(_);const x=this.path.interpolateComponentsAt(_,X7);return T.interpolate(this.definition.source,this.definition.target,x),T}_normalizedEasing(_){const T=this._easing(0,this._time),x=this._easing(1,this._time);return(this._easing(_,this._time)-T)/(x-T)}_applyTimeSettings(_,T){const x=null!=T.speedFactor?T.speedFactor:1;null!=T.duration?_=T.duration:null!=T.speedFactor&&(_=(0,mi.HA)(_/x));const U=null!=T.maxDuration?T.maxDuration:v1_maxDuration/x;return(0,mi.HA)(Math.min(Math.max(null!=T.minDuration?T.minDuration:v1_minDuration/x,_),U))}}const J7=(0,ir.c)();class Q7{constructor(_){this.currentTime=(0,mi.HA)(0),this._animation=new k7(()=>new M3(_)),this._current=new M3(_)}get finished(){return this.currentTime>=this._animation.time}get time(){return this._animation.time}update(_,T,x){const A=this._animation.definition.source,U=this._animation.definition.target,ne=(0,pt.b)(J7,T.center,_.center),fe=(0,pt.l)(ne);fe>=1e-5?(ne[0]/=fe,ne[1]/=fe,ne[2]/=fe):(ne[0]=0,ne[1]=1,ne[0]=0),(0,pt.c)(A.lookAtDirection,ne),(0,pt.c)(U.lookAtDirection,ne),A.copyFromRenderCamera(_),U.copyFromRenderCamera(T),this._current.copyFrom(A),this._animation.update(A,U,x),this.currentTime=(0,mi.HA)(0),_.almostEquals(T)&&(this.currentTime=this._animation.time)}cameraAt(_,T){return this._animation.cameraAt(_,this._current),T=T||new $i.V,this._current.copyToRenderCamera(T),T}step(_,T){return this.finished||(this.currentTime=(0,mi.HA)(this.currentTime+(0,mi.up)(_)),this.currentTime>=this.time&&(this.currentTime=this.time)),this.cameraAt(this.currentTime/this.time,T)}}var Kn;!function(d){d.Ready="ready",d.Rejected="rejected",d.Running="running",d.Stopped="stopped",d.Finished="finished"}(Kn||(Kn={}));let Dd=class extends Ns.Z{constructor(d){super(d),this.state=Kn.Ready}get active(){return this.state===Kn.Running}get isInteractive(){return!1}get canStop(){return!1}stopController(){return!!this.canStop&&(this.state=Kn.Stopped,!0)}finishController(){this.state=Kn.Finished}get steppingFinished(){return!1}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Dd.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Dd.prototype,"active",null),(0,Ve._)([(0,ke.Cb)()],Dd.prototype,"state",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Dd.prototype,"isInteractive",null),Dd=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.CameraController")],Dd);let vg=class extends Dd{constructor(){super(...arguments),this._asyncResult=null}get canStop(){return!0}set asyncResult(d){this._asyncResult&&(this._asyncResult.reject((0,ws.zE)()),this._asyncResult=null),this.state===Kn.Finished||this.state===Kn.Stopped?((0,Qe.O3)(d),this.state===Kn.Finished?d.resolve():d.reject((0,ws.zE)())):this._asyncResult=d}get asyncResult(){return this._asyncResult}onControllerStart(){this.state=Kn.Running,(0,Qe.pC)(this.viewAnimation)&&this.viewAnimation.when(()=>this.updateStateFromViewAnimation(),()=>this.updateStateFromViewAnimation())}updateStateFromViewAnimation(){!(0,Qe.pC)(this.viewAnimation)||this.state!==Kn.Ready&&this.state!==Kn.Running||(this.viewAnimation.state===g_.State.FINISHED?this.finish():this.viewAnimation.state===g_.State.STOPPED&&(this.state=Kn.Stopped))}onControllerEnd(){(0,Qe.pC)(this.viewAnimation)&&!this.viewAnimation.done&&(this.state===Kn.Finished?this.viewAnimation.finish():this.state===Kn.Stopped&&this.viewAnimation.stop()),this._asyncResult&&(this.state===Kn.Finished?this._asyncResult.resolve():this._asyncResult.reject((0,ws.zE)()))}finish(){this.finishController()}};vg=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.AnimationController")],vg);let Sd=class extends vg{constructor(d){super(d),this.mode="interaction",this._hasTarget=!1}get intersectionHelper(){return this.view.sceneIntersectionHelper}initialize(){this.animation=new Q7(this.view.state.viewingMode),this.viewAnimation="interaction"===this.mode?null:new g_}get isInteractive(){return"interaction"===this.mode}begin(d,_){this._hasTarget=!0;const T=this.animationSettings(_);E1.copyFrom(this.view.state.camera);const x=(0,Ga.Z8)(this.view.state.viewingMode);this.intersectionHelper.intersectRay(E1.ray,x,P3)&&(E1.center=P3),this.animation.update(E1,d,T),this.animation.finished&&this.finish()}finish(){this.animation.currentTime=this.animation.time,super.finish()}get steppingFinished(){return this._hasTarget&&this.animation.finished}stepController(d,_){this._hasTarget&&this.animation.step(d,_)}onControllerEnd(d){this._hasTarget&&(this.animation.cameraAt(this.animation.currentTime/this.animation.time,d),this.animation.currentTime=this.animation.time),super.onControllerEnd(d)}animationSettings(d={}){return{apex:{maximumDistance:this.view.state.constraints.clampAltitude(1/0)/6,ascensionFactor:void 0,descensionFactor:void 0},...d,easing:"string"==typeof d.easing?C7[d.easing]:d.easing}}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Sd.prototype,"mode",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Sd.prototype,"isInteractive",null),Sd=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.PointToPointAnimationController")],Sd);const E1=new $i.V,P3=(0,ir.c)();var q7=v(48977),NP=v(78451),WP=v(34054),Dn=v(26242);function I_(d=tj){return[d[0],d[1],d[2],d[3]]}function Eg(d,_){return function VP(d,_,T,x,A=I_()){return A[0]=d,A[1]=_,A[2]=T,A[3]=x,A}(d[0],d[1],d[2],_,Dn.o6.get())}function zP(d,_,T){return(0,pt.f)(T,d,_),(0,pt.n)(T,T),T[3]=(0,WP.EU)(d,_),T}const tj=[0,0,1,0];(0,NP.a)(),(0,NP.a)();var Rn=v(90014),ju=v(26046);function HP(d,_,T,x){const A=(0,ju.iE)(_,T,rj);return(0,oo.i)(d,A,x)}const rj=(0,yc.Ue)();var L_;!function(d){d[d.Ellipsoid=0]="Ellipsoid",d[d.Silhouette=1]="Silhouette"}(L_||(L_={}));const C1=[1,3e8];function t0(d,_,T){return T[0]=_[0]/(d.fullWidth/d.pixelRatio),T[1]=_[1]/(d.fullHeight/d.pixelRatio),T}function GP(d){for(;d>Math.PI;)d-=2*Math.PI;for(;d<-Math.PI;)d+=2*Math.PI;return d}function Bh(d,_,T){const x=(0,gi.d)(Dn.MP.get(),T[3],T);(0,Qe.Wi)(x)||(0,gi.j)(x,gn.I)||((0,pt.b)(yn,d.eye,_),(0,pt.m)(yn,yn,x),d.eye=(0,pt.a)(yn,yn,_),(0,pt.b)(yn,d.center,_),(0,pt.m)(yn,yn,x),d.center=(0,pt.a)(yn,yn,_),d.up=(0,pt.m)(yn,d.up,x))}function KP(d,_,T,x){return(0,Rn.BR)(d,(0,ju.iE)(_,T,kP),x)}function ZP(d,_,T,x){const A=Dn.WM.get();let U=1-T;(0,pt.b)(A,_,d.eye);const ne=(0,pt.l)(A);let fe=ne*(1-U);U>=0&&fe3e4?fa.Horizontal:T?((0,ju.iE)(d,_,k3),-Math.sign(d.relativeElevation)*(.5*Math.PI+(0,WP.EU)(d.eye,k3.direction))T?-(_-T)/(ne*T):_<-T?Math.PI-(_+T)/(ne*T):(0,xr.ZF)(_/T),U=d>T?-(d-T)/(ne*T):d<-T?Math.PI-(d+T)/(ne*T):(0,xr.ZF)(d/T),(U-A)*T}function V3(d,_,T,x,A,U,ne,fe,Oe,we){(0,pt.f)(L1,d,_),(0,o_.Tz)(U.up,U.eye,x1,D1,S1),(0,o_.Tz)([0,0,1],U.eye,Ad,jh,K3),(0,pt.c)(T,jh),(0,pt.c)(x,Ad),(0,pt.n)(T,T),(0,pt.g)(T,T,(0,pt.l)(L1)),(0,o_.yS)(d,(0,pt.n)(D1,D1),(0,pt.n)(S1,S1),(0,pt.n)(x1,x1),Z3),(0,o_.yS)(_,D1,S1,x1,$3),function ij(d,_,T,x,A,U,ne,fe,Oe,we){const Ze=W3(d[2],_[2],U[3],fe),it=Oe?W3(d[0],_[0],U[3],180):_[0]-d[0],lt=Math.sin(ne)*it-Math.cos(ne)*Ze,dt=Math.cos(ne)*it+Math.sin(ne)*Ze;(0,pt.n)(yn,A);const Tt=Oe?lt/Math.sqrt(Math.abs(U[3]**2-(0,pt.e)(T,yn)**2)):lt/U[3],mt=dt/Math.sqrt(Math.abs(U[3]**2-(0,pt.e)(T,x)**2));(0,ti.s)(we,Tt,mt)}(Z3,$3,d,Ad,jh,ne,fe,Oe,we,A)}function nj(d,_,T,x,A,U,ne){(0,gi.d)(A1,A,x),(0,gi.d)(R1,ne,U),(0,gi.m)(B_,A1,R1),(0,pt.b)(_,d,T),(0,pt.m)(_,_,B_),(0,pt.a)(_,_,T)}function z3(d,_,T,x,A,U){(0,gi.d)(A1,x,T),(0,gi.d)(R1,U,A),(0,gi.m)(B_,A1,R1),(0,pt.b)(yn,d.eye,_),(0,pt.m)(yn,yn,B_),d.eye=(0,pt.a)(yn,yn,_),(0,pt.b)(yn,d.center,_),(0,pt.m)(yn,yn,B_),d.center=(0,pt.a)(yn,yn,_),(0,pt.b)(yn,d.up,_),(0,pt.m)(yn,yn,B_),d.up=(0,pt.a)(yn,yn,_)}function XP(d,_,T,x,A,U){return(Math.abs(x)>Math.PI-M1_Angle||Math.abs(x)T)&&U.aboveGround&&A<45}function H3(d,_,T,x,A,U){if(U)zP(T,x,Y3),Bh(_,d,Y3);else{const ne=F3(T,x,X3,_,d[3],A);Bh(_,d,Eg(X3,ne))}}function G3(d,_,T,x,A,U,ne){const fe=ne?20:1;let we,Ze;(0,pt.c)(r0,x),I1.copyFrom(_);for(let it=0;it1e-12&&(we=(0,pt.d)(T,r0),V3(T,r0,jh,Ad,Cg,I1,d,A,U,ne),z3(I1,d,Ad,Cg[1],jh,Cg[0]),nj(r0,r0,d,Ad,Cg[1],jh,Cg[0]),Ze=(0,pt.d)(T,r0),Ze0,U=!0),this._tmpCamera.copyFrom(T.camera),A?this.intersectionHelper.intersectRay(this._tmpCamera.ray,this._intersector,this._tmpCenter)&&(this._tmpCamera.center=this._tmpCenter):this.intersectionHelper.intersectRay(this._tmpCamera.ray,this._intersector,this._zoomLocation)?this._tmpCamera.center=this._zoomLocation:(0,pt.c)(this._zoomLocation,this._tmpCamera.center),this._updateCamera(this._tmpCamera,d,this._zoomLocation,_,U),this.begin(this._tmpCamera)}animationSettings(){return{apex:null,duration:(0,mi.HA)(600),easing:yg}}_updateCamera(d,_,T,x,A){const ne=P1(d,x,A,(0,En.Iu)(this.view.spatialReference));let fe;this.view.camera.position.hasZ&&(fe=Math.abs(this.view.camera.position.z)),(0,pt.n)(j1,d.eye),(0,pt.g)(j1,j1,-1),(0,ju.iE)(d,x,this._tmpRayDir),(0,pt.n)(this._tmpRayDir.direction,this._tmpRayDir.direction);const Oe=Math.max(Math.min(12,1/Math.abs((0,pt.e)(j1,this._tmpRayDir.direction)))*fe,200);if(ne===fa.Horizontal){let we=.6**_;this._sphere[3]=(0,pt.l)(T),(0,pt.b)(this._tmpViewDir,d.center,d.eye);const Ze=Math.min((0,pt.l)(this._tmpViewDir),Oe);let it=Ze*we;if(we<=1&&it<4&&(it=4,we=it/Ze),Math.abs(Ze-it)<1e-6)return;const lt=(0,pt.l)(d.center);this._sphere[3]!==lt&&(d.center=(0,pt.g)(B1,d.center,(this._sphere[3]+we*(lt-this._sphere[3]))/lt)),(0,pt.g)(this._tmpViewDir,this._tmpViewDir,-we),d.eye=(0,pt.a)(B1,d.center,this._tmpViewDir),_o(this.view,d,this._constraintOptions),(0,pt.d)(T,d.center)>1e-12&&HP(this._sphere,d,x,this._targetOnSphere)&&function oj(d,_,T,x,A,U,ne){XP(T,(0,pt.e)(_.up,T),d[3],-za.Q4.normalize((0,xr.Vl)(A)),U,_)?G3(d,_,T,x,-za.Q4.normalize((0,xr.Vl)(A)),U,ne):H3(d,_,T,x,U,ne)}(this._sphere,d,T,this._targetOnSphere,this.view.camera.heading,this.view.camera.tilt,!0)}else{let we=.6**Math.abs(_);const Ze=_>0?1:-1;(0,pt.b)(this._tmpViewDir,T,d.eye);const it=(0,pt.l)(this._tmpViewDir),lt=this.view._stage.renderView.getMinimalDepthForArea(null,x[0],x[1],this.view.state.camera,60);let dt=(0,Qe.pC)(lt)?Math.min(Oe,lt):Oe;dt=A?Math.min(dt,it):dt,(0,pt.g)(this._tmpRayDir.direction,this._tmpRayDir.direction,dt),(0,pt.a)(T,this._tmpRayDir.origin,this._tmpRayDir.direction);let Tt=dt*we;const mt=Math.max(4,1.01*d.nearFar[0]);if(_>0&&Tt0?(0===this.view.map.ground.opacity?this.intersectionHelper.intersectScreenFreePointFallback(_,this._zoomLocation,Ej):this.intersectionHelper.intersectScreenFreePointFallback(_,this._zoomLocation),this.intersectionHelper.intersectRay(this._tmpCamera.ray,A,this._tmpCenter)&&(this._tmpCamera.center=this._tmpCenter)):this.intersectionHelper.intersectRay(this._tmpCamera.ray,A,this._zoomLocation)?this._tmpCamera.center=this._zoomLocation:(0,pt.c)(this._zoomLocation,this._tmpCamera.center);const U=.6**d;let ne=this.view._stage.renderView.getMinimalDepthForArea(this.view.voxelWasm,_[0],_[1],this.view.state.camera,60);(0,pt.b)(N1,this._tmpCamera.eye,this._zoomLocation),(0,pt.n)(N1,N1);const fe=Math.max(Math.min(14,1/Math.abs((0,pt.e)(vj,N1)))*Math.abs(this.view.camera.position.z),200);if(ne=(0,Qe.pC)(ne)?Math.min(ne,fe):fe,ne){const Oe=(0,ir.c)();(0,pt.b)(Oe,this._zoomLocation,this._tmpCamera.eye),ne<(0,pt.l)(Oe)&&((0,pt.n)(Oe,Oe),(0,pt.a)(this._zoomLocation,this._tmpCamera.eye,(0,pt.g)(Oe,Oe,ne)))}this._updateCamera(this._tmpCamera,U,this._zoomLocation),this.begin(this._tmpCamera)}animationSettings(){return{apex:null,duration:(0,mi.HA)(600),easing:yg}}_updateCamera(d,_,T){(0,pt.b)(this._tmpRayDir,T,d.eye);const x=(0,pt.l)(this._tmpRayDir);let A=x*_;const U=_<=1,ne=Math.max(4,1.01*d.nearFar[0]);0!==A&&(U&&Athis._handleDoubleClick(x))}_handleDoubleClick(_){const T=_.data;if(function bj(d,_){switch(_){case"primary":return"touch"===d.pointerType||0===d.button;case"secondary":return"touch"!==d.pointerType&&2===d.button;case"tertiary":return"touch"!==d.pointerType&&1===d.button}}(T,"primary")){const x=this._view.state.isGlobal?new U1({view:this._view,mode:"animation"}):new F1({view:this._view,mode:"animation"});this._view.state.switchCameraController(x),x.zoomStep(Math.log(.5)/Math.log(.6),(0,li.s1)(T.x,T.y)),_.stopPropagation()}}}class Mj{constructor(_,T){this._elevationProvider=_,this._referenceEllipsoid=(0,En.Iu)(T),this._unitInMeters=(0,dM.c9)(T,this._referenceEllipsoid.metersPerDegree)}compute(_,T,x,A,U){U||(U={near:0,far:0});let ne=_[2]*this._unitInMeters;const Oe=ne-A,we=this._elevationProvider?.visibleElevationBounds;we&&(ne=Oe>=0?ne-this._unitInMeters*we.min:this._unitInMeters*we.max-ne);const Ze={x:(x=(0,Qe.pC)(x)?x:new bl.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0})).xmax-x.xmin,y:x.ymax-x.ymin,z:4*Math.max(x.xmax-x.xmin,x.ymax-x.ymin)},it=Math.max(Ze.x,Ze.y,Ze.z);(0,pt.b)(s0,T,_),j_[0]=s0[0]>0?x.xmax:x.xmin,j_[1]=s0[1]>0?x.ymax:x.ymin,j_[2]=s0[2]>0?it/2:-it/2,(0,pt.b)(j_,j_,_),(0,pt.n)(s0,s0);const lt=1.1*(0,pt.e)(j_,s0)*this._unitInMeters,dt=Math.sqrt(ne*(ne+2*this._referenceEllipsoid.radius)),Tt=Math.max(x.xmax-x.xmin,x.ymax-x.ymin),Mt=Tt*Sj*this._unitInMeters;let Pt=(0,xr.uZ)((ne-Mt)/(Tt*Dj*this._unitInMeters-Mt),0,1);Pt*=Pt*Pt;let Nt=Math.min((0,xr.t7)(dt,lt,Pt),dt);return Nt*=Math.max(Math.log(Math.abs(Oe)),1),Nt=Math.min(Nt,Math.max(34064e4,it)),Nt/=this._unitInMeters,q3(Nt,Oj,this._unitInMeters,U)}}class Pj{constructor(_){this._referenceEllipsoid=(0,En.Iu)(_)}compute(_,T,x,A,U){U||(U={near:0,far:0});const ne=(0,pt.l)(_)-this._referenceEllipsoid.radius,fe=this._referenceEllipsoid.radius+Math.min(0,A),Oe=Math.abs(ne-A),we=Math.max(Oe,Math.abs(ne));return q3(1.2*Math.sqrt(we*(we+2*fe)),(0,xr.uZ)(2e4-(Math.log(we)-7.983)/9.011*19e3,1e3,2e4),1,U)}}function q3(d,_,T,x){const A=xj/T;return d/_>A?(x.far=d,x.near=x.far/_):(x.near=A,x.far=x.near*_),x}const Oj=2e4,xj=2,Dj=.001,Sj=1e-4,j_=(0,ir.c)(),s0=(0,ir.c)();let W1=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z}initialize(){this._handles.add(this.view.basemapTerrain.on("elevation-change",d=>this._handleElevationChangeEvent(d)))}destroy(){this._handles&&(this._handles.destroy(),this._handles=null)}_handleElevationChangeEvent(d){if(this.view.state.cameraController)return;const _=this.view.state.camera;(0,Qe.pC)(d.spatialReference)&&c3(this.view,_,d.extent,d.spatialReference)&&this._applyToCurrentCamera()}_applyToCurrentCamera(){this.view.state.updateCamera(d=>w_(this.view,d,Vc.EYE_AND_CENTER))}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],W1.prototype,"view",void 0),W1=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.ElevationCollisionConstraint")],W1);let Tg=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z,this.nearFarHeuristic=function Tj(d,_,T){return d===vi.JY.Global?new Pj(T):new Mj(_,T)}(d.view.state.viewingMode,d.view.basemapTerrain,d.view.renderCoordsHelper.spatialReference)}initialize(){this._handles.add([(0,Ht.YP)(()=>[this.view.constraints?.clipDistance?.near,this.view.constraints?.clipDistance?.far],()=>this._clipDistanceNearFarChanged()),(0,Ht.YP)(()=>this.view.constraints?.clipDistance?.mode,()=>this._updateNearFar()),this.view.state.events.on("before-camera-change",d=>this._updateCameraNearFar(d.camera)),(0,Ht.YP)(()=>this.view.renderDataExtent,()=>this._updateNearFar(),Ht.Z_),(0,Ht.YP)(()=>[this.view.constraints?.altitude?.min,this.view.constraints?.altitude?.max],()=>this._updateAltitude(),Ht.Z_),(0,Ht.YP)(()=>this.view.constraints?.tilt?.max,()=>this._updateTiltMax(),Ht.Z_),(0,Ht.YP)(()=>this.view.constraints?.tilt?.mode,()=>this._updateTilt(),Ht.Z_),(0,Ht.YP)(()=>this.view.state?.camera,()=>this._updateTiltAutoMax(),Ht.Z_),(0,Ht.YP)(()=>[this.view.map?.ground?.navigationConstraint?.type,this.view.state?.constraints?.collision?.enabled],()=>this._updateCollision(),Ht.Z_)]),this.view.state.isLocal&&this._handles.add((0,Ht.YP)(()=>this.view.renderDataExtent,d=>this._updateLocalSurfaceDistance(d),Ht.nn)),this._updateNearFar(),this.view.state.viewingMode!==vi.JY.Local&&this._updateAltitude(),this._updateTilt(),this._updateCollision(),this._set("surfaceCollisionConstraint",new W1({view:this.view}))}destroy(){this._handles=(0,Qe.SC)(this._handles),this.surfaceCollisionConstraint&&(this.surfaceCollisionConstraint.destroy(),this._set("surfaceCollisionConstraint",null))}_clipDistanceNearFarChanged(){const d=this.view.constraints?.clipDistance;d&&"auto"!==d.mode&&this.view.state.updateCamera(_=>this._updateCameraNearFarManual(_,d))}_updateNearFar(){this.view.state.updateCamera(d=>this._updateCameraNearFar(d))}_updateCameraNearFar(d){const _=this.view.constraints&&this.view.constraints.clipDistance;"manual"===(_?_.mode:"auto")?this._updateCameraNearFarManual(d,_):this._updateCameraNearFarAuto(d,_)}_updateCameraNearFarAuto(d,_){this.nearFarHeuristic.compute(d.eye,d.center,this.view.renderDataExtent,_1(this.view,d.eye),d),_&&_.autoUpdate(d.near,d.far)}_updateCameraNearFarManual(d,_){_&&(d.near=_.near,d.far=_.far)}_updateCollision(){const d=this.view.map?.ground?.navigationConstraint?.type,_=!d||"stay-above"===d,T=this.view.state.constraints.collision;if(_!==T.enabled){T.enabled=_,_&&this._reapplyConstraints(xn.COLLISION);const x=this.view.constraints&&this.view.constraints.tilt;x&&"auto"!==x.mode||this._updateTiltAuto()}}_updateAltitude(){const d=this.view.constraints&&this.view.constraints.altitude;this.view.state.constraints.altitude=d&&this.view.state.viewingMode!==vi.JY.Local?{min:d.min,max:d.max}:null,this._reapplyConstraints()}_updateTiltMax(){const d=this.view.constraints&&this.view.constraints.tilt;d&&"auto"!==d.mode&&(this._updateTiltManual(d),this._reapplyConstraints())}_updateTilt(){const d=this.view.constraints&&this.view.constraints.tilt;"manual"===(d?d.mode:"auto")?this._updateTiltManual(d):this._updateTiltAuto(),this._reapplyConstraints()}_updateTiltManual(d){const _=this.view.state.constraints;_.tilt=_.createConstantMaxTilt((0,xr.Vl)(d.max))}_updateTiltAuto(){const d=this.view.state.constraints;d.tilt=d.createDefaultTilt(),this._updateTiltAutoMax()}_updateTiltAutoMax(){const d=this.view.constraints&&this.view.constraints.tilt;if(!d||"auto"!==d.mode)return;const _=this.view.state.constraints;if(_.tilt){const T=_.tilt(this.view.state.camera.distance).max;d.autoUpdate((0,xr.BV)(T))}}_updateLocalSurfaceDistance(d){if((0,Qe.Wi)(d))return;let _=Math.max(d.width,d.height);if(_<=0)return;d.hasZ&&(_=Math.max(_,d.zmax-d.zmin));const T=this.view.state,x=3*_/Math.atan(T.camera.fov/2);x!==T.constraints.distance&&(T.constraints.distance=x)}_reapplyConstraints(d=xn.ALL){this.view.state.updateCamera(_=>_o(this.view,_,{selection:d,interactionType:wi.NONE,interactionFactor:null,interactionStartCamera:null,interactionDirection:null,tiltMode:qo.TUMBLE}))}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Tg.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Tg.prototype,"surfaceCollisionConstraint",void 0),Tg=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.ConstraintsManager")],Tg);var F_=v(24805);let Mg=class extends Dd{constructor(d){super(d),this._handles=new Ji.Z}set desiredCamera(d){this._set("desiredCamera",d.clone())}get canStop(){return!0}get constraintEnabled(){return this.view.state.constraints.collision.enabled}onControllerStart(){this.state=Kn.Running,this._handles.add(this.view.basemapTerrain.on("elevation-change",d=>this._handleElevationChangeEvent(d))),this._applyCorrection()}onControllerEnd(){this._handles.removeAll()}stepController(){}_handleElevationChangeEvent(d){(0,Qe.pC)(d.spatialReference)&&!c3(this.view,this.desiredCamera,d.extent,d.spatialReference)||this._applyCorrection()}_applyCorrection(){this.view.state.updateCamera(d=>{d.copyViewFrom(this.desiredCamera),w_(this.view,d,Vc.EYE_AND_CENTER)||this.constraintEnabled||(this.state=Kn.Stopped)})}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Mg.prototype,"desiredCamera",null),Mg=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.SurfaceCollisionCorrectionController")],Mg);const Aj=(0,ir.c)(),V1=(0,ir.c)();function qP(){return{direction:(0,ir.c)(),up:(0,ir.c)()}}function eR(d,_,T,x,A){let U=(0,pt.n)(Aj,d),ne=(0,pt.e)(U,x);const fe=ne>0;ne=Math.abs(ne),ne>.99&&(ne=Math.abs((0,pt.e)(_,x)),ne<.99?((0,pt.c)(U,_),fe&&(0,pt.g)(U,U,-1)):U=null);let Oe=0;if(U){(0,pt.g)(V1,x,(0,pt.e)(x,U)),(0,pt.b)(U,U,V1);const Ze=(0,pt.e)(U,A)/((0,pt.l)(U)*(0,pt.l)(A));(0,pt.f)(V1,U,A),Oe=((0,pt.e)(V1,x)>0?1:-1)*(0,xr.BV)((0,xr.ZF)(Ze))}const we=(0,xr.BV)((0,xr.ZF)(-(0,pt.e)(x,d)/(0,pt.l)(d)));return T?(T.heading=Oe,T.tilt=we,T):{heading:Oe,tilt:we}}const tR=(0,ir.f)(0,1,0),rR=(0,ir.f)(0,0,1),Pg=(0,gn.c)(),Rd=(0,ir.c)(),wd=(0,ir.c)();function sR(d,_,T,x=qP()){const{direction:A,up:U}=x;return(0,gi.b)(Pg,-(0,xr.Vl)(_)),(0,gi.r)(Pg,Pg,(0,xr.Vl)(T)),(0,pt.m)(A,rR,Pg),(0,pt.g)(A,A,-1),(0,pt.m)(U,tR,Pg),x}function iR(d,_,T,x,A){const U=d.renderSpatialReference,ne=d.map&&d.spatialReference||_.spatialReference;return(0,di.KC)(_,Rd,U),(0,di.KC)(_,wd,U),Rd[0]-=T/2,wd[0]+=T/2,Rd[1]-=x/2,wd[1]+=x/2,(0,di.SH)(Rd,U,Rd,ne),(0,di.SH)(wd,U,wd,ne),A?(A.xmin=Rd[0],A.ymin=Rd[1],A.xmax=wd[0],A.ymax=wd[1],A.spatialReference=ne):A=new bl.Z(Rd[0],Rd[1],wd[0],wd[1],ne),A}const Uj=Object.freeze(Object.defineProperty({__proto__:null,headingTiltToDirectionUp:sR,directionToHeadingTilt:function Rj(d,_,T,x){return eR(_,T,x,rR,tR)},eyeForCenterWithHeadingTilt:function wj(d,_,T,x){const A=sR(0,T,x),U=(0,ir.c)();return(0,pt.g)(U,A.direction,-_),(0,pt.a)(U,U,d),{up:A.up,eye:U,heading:T,tilt:x}},lookAtTiltToEyeTilt:function Ij(d){return(0,xr.BV)(d)},eyeTiltToLookAtTilt:function Lj(d){return(0,xr.Vl)(d)},toExtent:iR},Symbol.toStringTag,{value:"Module"})),nR=(0,ir.f)(0,0,1),oR=(0,pt.n)((0,ir.c)(),(0,ir.f)(1,1,1)),Bj=new za.pE(-180,180),Og=(0,gn.c)(),Fh=(0,ir.c)(),N_=(0,ir.c)();function aR(d,_,T,x=qP()){(0,pt.f)(Fh,d,nR),0===(0,pt.e)(Fh,Fh)&&(0,pt.f)(Fh,d,oR),(0,gi.d)(Og,-(0,xr.Vl)(_),d),(0,gi.e)(Og,Og,-(0,xr.Vl)(T),Fh);const{up:A,direction:U}=x;return(0,pt.f)(A,Fh,d),(0,pt.n)(A,A),(0,pt.m)(A,A,Og),(0,pt.n)(U,d),(0,pt.o)(U,U),(0,pt.m)(U,U,Og),x}function e2(d){const _=d[1];d[1]=-d[2],d[2]=_}function t2(d,_){const T=aR(_,d.heading,d.tilt);return d.up=T.up,d}function lR(d,_,T,x,A){let U,ne,fe,Oe;const we=_.latitude,Ze=(0,En.Iu)(d.spatialReference).radius,it=_.longitude,lt=function u9(d,_,T){const x=_/T,A=(0,xr.Vl)(d),U=Math.sin(x/2),ne=Math.cos(A),fe=2*(0,xr.Kt)(Math.sqrt(U*U/(ne*ne)));return(0,xr.BV)(fe)}(we,T,Ze)/2;U=it-lt,ne=it+lt;const dt=(0,xr.Vl)(we),Tt=(1+Math.sin(dt))/(1-Math.sin(dt)),mt=(Tt+1)*Math.tan(x/Ze/2);function Pt(Bt){const Zt=Math.PI/2;return(Bt=za.c5.normalize(Bt,-Zt))>Zt&&(Bt=Math.PI-Bt),Bt}if(fe=1.5*Math.PI-2*Math.atan(.5*(mt+Math.sqrt(4*Tt+mt*mt))),Oe=fe+x/Ze,fe=Pt(fe),Oe=Pt(Oe),Oe180){const Bt=(ne-U-180)/2;U+=Bt,ne-=Bt}const Nt=d.spatialReference&&d.spatialReference.isGeographic?d.spatialReference:to.Z.WGS84;return A?(A.xmin=U,A.ymin=fe,A.xmax=ne,A.ymax=Oe,A.spatialReference=Nt):A=new bl.Z(U,fe,ne,Oe,Nt),d.spatialReference&&d.spatialReference.isWebMercator&&(0,au.$)(A,!1,A),A}const Vj=Object.freeze(Object.defineProperty({__proto__:null,headingTiltToDirectionUp:aR,directionToHeadingTilt:function jj(d,_,T,x){const A=Fh,U=N_;return(0,pt.n)(A,d),(0,pt.f)(N_,A,nR),0===(0,pt.e)(N_,N_)&&(0,pt.f)(N_,A,oR),(0,pt.f)(U,N_,A),eR(_,T,x,A,U)},eyeForCenterWithHeadingTilt:function Fj(d,_,T,x){const A={eye:(0,ir.c)(),up:null,tilt:x,heading:T},U=Fh;U[0]=d[0],U[1]=d[2],U[2]=-d[1];const ne=_,fe=(0,xr.Vl)(T),Oe=(0,xr.Vl)(x),we=Math.sin(fe),Ze=Math.cos(fe),it=Math.sin(Oe),lt=Math.cos(Oe),dt=(0,pt.l)(U);let Tt;if(Math.abs(Oe)<1e-8)Tt=ne+dt;else{const lr=dt/it,wr=(0,xr.Kt)(ne/lr),Gr=Math.PI-Oe-wr;Tt=lr*Math.sin(Gr)}const mt=lt*ne,Mt=ne*ne*(it*it),Pt=Ze*Ze*Mt,Nt=Tt-mt,Bt=Nt*Nt,Zt=Pt*(Pt+Bt-U[1]*U[1]);if(Zt<0)return(0,pt.g)(A.eye,U,Tt/dt),A.tilt=0,A;const nr=Math.sqrt(Zt),Jt=U[1]*Nt,Rr=Pt+Bt;let Br;if(Br=Ze>0?-nr+Jt:nr+Jt,Math.abs(Rr)<1e-8)return dt<1e-8?(A.eye[0]=0,A.eye[1]=0,A.eye[2]=ne):(0,pt.g)(A.eye,U,Tt/dt),A.tilt=0,e2(A.eye),t2(A,d);A.eye[1]=Br/Rr;const $r=we*we*Mt,Yr=it*ne,cs=Ze*Yr*A.eye[1],Xr=A.eye[1]*A.eye[1],os=1-Xr,br=Math.sqrt(os),Vr=Pt*Xr+$r-2*cs*br*Nt+os*Bt;return Math.abs(Vr)<1e-8?((0,pt.g)(A.eye,U,Tt/dt),A.tilt=0,e2(A.eye),t2(A,d)):(A.eye[0]=(os*(Tt*U[0]-mt*U[0])-Yr*br*(U[0]*A.eye[1]*Ze+U[2]*we))/Vr,A.eye[2]=(os*(Tt*U[2]-mt*U[2])-Yr*br*(U[2]*A.eye[1]*Ze-U[0]*we))/Vr,(0,pt.g)(A.eye,A.eye,Tt),e2(A.eye),t2(A,d))},lookAtTiltToEyeTilt:function Nj(d,_,T){const x=(0,pt.l)(_),A=Math.sqrt(T*T+x*x-2*T*x*Math.cos(Math.PI-d)),U=(0,xr.Kt)(T/(A/Math.sin(d)));return(0,xr.BV)(d-U)},eyeTiltToLookAtTilt:function Wj(d,_,T){const x=(0,xr.Vl)(d),A=(0,pt.l)(_);return(0,xr.Kt)(T/(A/Math.sin(x)))+x},toExtent:lR},Symbol.toStringTag,{value:"Module"}));var W_=v(53929),r2=v(86080);const cR=Us.Z.getLogger("esri.views.3d.support.cameraUtils"),pR=(0,ir.c)(),z1=(0,ir.c)(),Gj={heading:0,tilt:0},Id=new vn.Z,Kj=new za.pE(-20037508.342788905,20037508.342788905),Zj=new za.pE(-180,180);var Ia;function xg(d){return d.spatialReference||to.Z.WGS84}function V_(d){return"global"===d.viewingMode?Vj:Uj}function Ld(d,_){if((0,Qe.Wi)(_))return null;const T=d.renderSpatialReference,x=V_(d).headingTiltToDirectionUp,A=(0,ir.c)();if(!(0,di.KC)(_.position,A,T))return null;const U=x(A,_.heading,_.tilt);(0,pt.g)(U.direction,U.direction,d.state.camera.distance),(0,pt.a)(U.direction,U.direction,A);const ne=Qp(d,A,U.direction,U.up);return ne.fov=(0,xr.Vl)(_.fov),ne}!function(d){d[d.LOCKED=0]="LOCKED",d[d.ADJUST=1]="ADJUST"}(Ia||(Ia={}));const z_=(0,ir.c)();function H_(d,_,T){const x=d.renderSpatialReference,A=H1(d,_.eye,_.viewForward,_.up,Gj);let U=xg(d);return(0,di.SH)(_.eye,x,z_,U)||(U=to.Z.WGS84,(0,di.SH)(_.eye,x,z_,U)),(0,Qe.Wi)(T)?new uc(new vn.Z(z_,U),A.heading,A.tilt,(0,xr.BV)(_.fov)):(T.position.x=z_[0],T.position.y=z_[1],T.position.z=z_[2],T.position.spatialReference=U,T.heading=A.heading,T.tilt=A.tilt,T.fov=(0,xr.BV)(_.fov),T)}function i2(d,_,T){const x=d.state.camera,A=x.width/2/x.pixelRatio;return d.renderCoordsHelper.viewingMode===vi.JY.Global&&null!=T&&(_*=Math.cos((0,xr.Vl)(T))),A/(96*39.37/(_/=d.renderCoordsHelper.unitInMeters))/Math.tan(x.fovX/2)}function i0(d,_,T){const x=d.state.camera,A=_*Math.tan(x.fovX/2);let ne=96*39.37/(x.width/2/x.pixelRatio/A);return d.renderCoordsHelper.viewingMode===vi.JY.Global&&(ne/=Math.cos((0,xr.Vl)(T))),ne*=d.renderCoordsHelper.unitInMeters,ne}function _R(d,_,T,x,A,U){return fR(d,_,i2(d,T,_.latitude),x,A,U)}function fR(d,_,T,x,A,U){if(n0(U)){const fe=new G_(U.signal);return Dg(d,x.heading,x.tilt,_,T,A,fe),void fe.resolver.promise.then(Oe=>{const we=K1(d,Oe,x.fov);if(!(0,Qe.Wi)(we))return U.resolver.resolve(we);U.resolver.reject()},Oe=>U.resolver.reject(Oe))}const ne=Dg(d,x.heading,x.tilt,_,T,A);return K1(d,ne,x.fov,U)}function H1(d,_,T,x,A){return V_(d).directionToHeadingTilt(_,T,x,A)}function n2(){return n2=(0,kr.Z)(function*(d,_,T){if(!d.renderCoordsHelper.fromRenderCoords(_,Id,d.spatialReference))return!1;const x=yield d.elevationProvider.queryElevation(Id.x,Id.y,Id.z,Id.spatialReference,"ground",T);return(0,Qe.Pt)(x,0)>Id.z-1}),n2.apply(this,arguments)}function o2(){return o2=(0,kr.Z)(function*(d,_,T){const x=(0,ir.c)();if(_)if(_ instanceof vn.Z){if((0,di.KC)(_,x,d.renderSpatialReference),null==_.z&&null!=d.basemapTerrain){const A=yield d.elevationProvider.queryElevation(_.x,_.y,_.z,_.spatialReference,"ground",T);return(0,Qe.pC)(A)&&d.renderCoordsHelper.setAltitude(x,A),x}}else(0,pt.c)(x,_);else(0,pt.c)(x,d.state.camera.center);return x}),o2.apply(this,arguments)}function Dg(d,_,T,x,A,U,ne){const fe=x&&x instanceof vn.Z?x:null;if(n0(ne))return function kj(d,_,T){return o2.apply(this,arguments)}(d,x,ne.signal).then(we=>{a2(d,_,T,fe,we,A,U,ne)},we=>ne.resolver.reject(we)),null;const Oe=function Jj(d,_){const T=(0,ir.c)();if(_&&_ instanceof vn.Z){if((0,di.KC)(_,T,d.renderSpatialReference),null==_.z&&null!=d.basemapTerrain){const x=(0,W_.KO)(d.elevationProvider,_);(0,Qe.pC)(x)&&d.renderCoordsHelper.setAltitude(T,x)}}else(0,pt.c)(T,_||d.state.camera.center);return T}(d,x);return a2(d,_,T,fe,Oe,A,U,ne)}function a2(d,_,T,x,A,U,ne,fe){if((0,Qe.Wi)(x)&&(x=(0,di.fA)(A,d.renderSpatialReference,xg(d)),(0,Qe.Wi)(x)))return null;U=Math.max(U,d.state.constraints.minimumPoiDistance);const Oe=function eF(d,_,T,x,A,U){let ne=0;return U===Ia.ADJUST&&function qj(d,_,T){const x=d.pointsOfInterest.centerOnSurfaceFrequent.distance;if(Math.log(T/x)/Math.LN2>8)return!0;const A=d.renderSpatialReference,U=xg(d),ne=(0,di.fA)(_,A,U),fe=(0,di.fA)(d.pointsOfInterest.centerOnSurfaceFrequent.renderLocation,A,U);if((0,Qe.Wi)(ne)||(0,Qe.Wi)(fe))return!1;const Oe=Math.tan(.5*d.state.camera.fov)*x;return fe.distance(ne)/Oe>5}(d,x,A)?(_=0,ne=function tF(d,_,T,x){const A=d.state.constraints.tilt(_);A.max=Math.min(A.max,.5*Math.PI);const U=A.min*(1-.7)+.7*A.max,ne=l2(d,x,_,T);return Math.min(ne,U)}(d,A,T,x)):ne=l2(d,x,A,T),ne=d.state.constraints.clampTilt(A,ne),{heading:_,tilt:T=mR(d,x,A,ne)}}(d,_,T,A,U,ne),we=(0,V_(d).eyeForCenterWithHeadingTilt)(A,U,Oe.heading,Oe.tilt);if(ne===Ia.ADJUST&&"global"===d.viewingMode&&T>0){const it=()=>{const dt=mR(d,A,U,function rF(d,_,T,x){const A=d.state.constraints.tilt(_);let U=l2(d,x,_,T);return U=Math.min(U,.5*Math.PI),A.min*(1-G1)+U*G1}(d,U,T,A));return a2(d,_,dt,x,A,U,ne=T-dt<1?Ia.LOCKED:Ia.ADJUST,fe)},lt=d.map.ground.navigationConstraint;if(!lt||"stay-above"===lt.type){if(function Yj(d,_){return!!(d.basemapTerrain&&d.renderCoordsHelper.fromRenderCoords(_,Id,d.spatialReference)&&(0,Qe.Pt)((0,W_.KO)(d.elevationProvider,Id),0)>Id.z-1)}(d,we.eye))return it();if(n0(fe))return function Xj(d,_,T){return n2.apply(this,arguments)}(d,we.eye,fe.signal).then(dt=>dt?it():(fe.resolver.resolve({eye:we.eye,up:we.up,center:(0,ir.a)(A),heading:we.heading,tilt:we.tilt}),null)),null}}const Ze=!fe||n0(fe)?{center:(0,ir.c)(),eye:(0,ir.c)(),up:(0,ir.c)(),tilt:0,heading:0}:fe;return Ze.eye=we.eye,Ze.up=we.up,Ze.center=(0,ir.a)(A),Ze.heading=we.heading,Ze.tilt=we.tilt,n0(fe)&&fe.resolver.resolve(Ze),Ze}function Sg(d,_,T,x,A,U=null){const ne=null!=_.zmax&&null!=_.zmin;let fe,Oe,we;if(d.state.isGlobal){if(!(0,r2.D)(_.spatialReference,vi.JY.Global))return n0(U)&&U.resolver.reject(),null;const Pt=new vn.Z(_.xmin,_.ymin,_.spatialReference),Nt=new vn.Z(_.xmax,_.ymax,_.spatialReference),Bt=_.spatialReference.isGeographic?Zj:Kj;fe=new vn.Z({x:Bt.center(Pt.x,Nt.x),y:(Nt.y+Pt.y)/2,z:ne?(_.zmax+_.zmin)/2:null,spatialReference:_.spatialReference});const Zt=(0,En.Iu)(_.spatialReference),nr=function c9(d,_,T){const x=_.spatialReference,A=(0,En.Iu)(x),U=new vn.Z(_.x,d.y,x),ne=new vn.Z(T.x,d.y,x),fe=new vn.Z(d.x,_.y,x),Oe=new vn.Z(d.x,T.y,x);return{lon:YA(A.radius,U,ne),lat:YA(A.radius,fe,Oe)}}(fe,Pt,Nt);Oe=nr.lon,we=nr.lat,Bt.diff(Pt.x,Nt.x)>Bt.range/2&&(Oe+=Zt.halfCircumference),Oe=Math.min(Oe,Zt.halfCircumference),we=Math.min(we,Zt.halfCircumference)}else{const Pt=(0,Qe.Pt)(d.renderSpatialReference,_.spatialReference);Pt.equals(_.spatialReference)||(_=(0,di.iV)(_,Pt)),Oe=_.xmax-_.xmin,we=_.ymax-_.ymin,fe=new vn.Z({x:_.xmin+.5*Oe,y:_.ymin+.5*we,z:ne?(_.zmax+_.zmin)/2:null,spatialReference:Pt})}const Ze=ne?_.zmax-_.zmin:0,it=d.state.camera,lt=1/Math.tan(it.fovX/2),dt=1/Math.tan(it.fovY/2),Tt=1/Math.tan(it.fov/2),mt=Math.max(.5*Oe*lt,.5*we*dt,.5*Ze*Tt)/1;if(n0(U)){const Pt=new G_(U.signal);return Dg(d,T,x,fe,mt,A,Pt),void Pt.resolver.promise.then(Nt=>{const Bt=K1(d,Nt,d.camera.fov);if(!(0,Qe.Wi)(Bt))return U.resolver.resolve(Bt);U.resolver.reject()},Nt=>U.resolver.reject(Nt))}const Mt=Dg(d,T,x,fe,mt,A);return K1(d,Mt,d.camera.fov,U)}const G1=.7;function mR(d,_,T,x){return V_(d).lookAtTiltToEyeTilt(x,_,T)}function l2(d,_,T,x){return V_(d).eyeTiltToLookAtTilt(x,_,T)}function K1(d,_,T,x){if((0,Qe.Wi)(_))return null;const U=(0,di.fA)(_.eye,d.renderSpatialReference,xg(d));return(0,Qe.Wi)(U)?null:(0,Qe.pC)(x)?(x.position=U,x.heading=_.heading,x.tilt=_.tilt,x.fov=T,x):new uc(U,_.heading,_.tilt,T)}function gR(d,_){const T=d.basemapTerrain?.tilingScheme;if(T)return T.scaleAtLevel(_);cR.error("#zoomToScale()","Cannot compute scale from zoom without a tiling scheme")}function yR(d,_,T){const x=d.renderSpatialReference;let A,U;_||(_=d.state.camera);const ne=to.Z.WGS84;return _ instanceof uc?(A=_.position.latitude,(0,di.KC)(_.position,pR,x),(0,di.KC)(T,z1,x),U=(0,pt.i)(pR,z1)):((0,di.SH)(_.center,x,z1,ne),A=z1[1],U=_.distance),i0(d,U,A)}class G_{constructor(_){this.signal=_,this.resolver=(0,ws.hh)()}}function n0(d){return d&&"resolver"in d}var fo=v(5548),rn=v(8834);function vR(d){return 360-za.BV.normalize(d)}function Z1(d){return za.BV.normalize(360-d)}function $1(d){return(0,Qe.pC)(d)&&d.resolver&&d.resolver.reject(),null}function ER(d,_,T,x=null){if(!_)return $1(x);const A=d.spatialReference||to.Z.WGS84;if((0,Qe.pC)(_.camera)){const we=(0,au.iV)(_.camera.position,A);if((0,Qe.Wi)(we))return $1(x);const Ze=_.camera.clone();return Ze.position=we,function nF(d,_){return(0,Qe.pC)(d)&&d.resolver&&d.resolver.resolve(_),_}(x,Ze)}if((0,Qe.Wi)(_.targetGeometry))return $1(x);const U=_.get("targetGeometry.spatialReference");if(U&&!(0,au.Q8)(U,A))return $1(x);const ne=H_(d,d.state.camera);let fe=Ia.ADJUST;if(null!=_.rotation&&(ne.heading=vR(_.rotation),fe=Ia.LOCKED),null!=T&&(ne.tilt=T),"point"===_.targetGeometry.type){const we=_.targetGeometry;let Ze;const it=_.targetGeometry.clone();return Ze=null!=_.scale?i2(d,_.scale,we.latitude):d.state.camera.distance,fR(d,it,Ze,ne,fe,x)}return Sg(d,_.targetGeometry.extent,ne.heading,ne.tilt,fe,x)}function c2(){return c2=(0,kr.Z)(function*(d,_,T){const x=gF(d,_);if(!x)throw new ai.Z("viewpointutils-create:no-target","Missing target for creating viewpoint");const A=new uc({fov:d.camera.fov}),U=new iu({camera:A});if(x.target instanceof iu)return o0(yield uF(d,x.target,x,T,U));if(x.target instanceof uc)return o0(CR(d,x.target,U));const ne=null!=x.scale||null!=x.zoom;if(x.target instanceof bl.Z){const we=x.target.xmin===x.target.xmax||x.target.ymin===x.target.ymax;return o0(ne||we?yield m2(d,x,x.target.center,A,T,U):yield _F(d,x,x.target,A,T,U))}const fe={boundingBox:(0,fo.cS)(),hasZ:!1,screenSpaceObjects:[]},Oe=ne?lF(d,x):void 0;if(yield bR(d,x.target,Oe,fe),isFinite(fe.boundingBox[0])){let we;if((0,fo.be)(fe.boundingBox,mo),Cc.x=mo[0],Cc.y=mo[1],Cc.z=mo[2],Cc.spatialReference=d.spatialReference,isFinite(Cc.z)&&fe.hasZ?we=(0,fo.wp)(fe.boundingBox):(Cc.z=void 0,we=(0,Bs.wp)((0,fo.y8)(fe.boundingBox,vF))),ne||we)return o0(yield m2(d,x,Cc,A,T,U));const Ze=yF(d,fe.screenSpaceObjects);return o0(yield mF(d,x,Cc,fe.boundingBox,Ze,A,T,U))}return o0(x.position?hF(d,x,A,U):yield pF(d,x,A,T,U))}),c2.apply(this,arguments)}function u2(d,_){return null==_.scale&&null!=_.zoom?gR(d,_.zoom):_.scale}function lF(d,_){return(0,RD.DE)(u2(d,_))}function d2(d,_){let T=!1;return null!=_.heading?(d.heading=_.heading,T=!0):null!=_.rotation&&(d.heading=vR(_.rotation),T=!0),null!=_.tilt&&(d.tilt=_.tilt,T=!0),null!=_.fov&&(d.fov=_.fov),T}function h2(d,_,T,x){const A=d.spatialReference||to.Z.WGS84;return _=(0,Qe.pC)(_)?_:Ld(d,T),(0,Qe.Wi)(_)||(x.targetGeometry=(0,di.fA)(_.center,d.renderSpatialReference,A),x.scale=yR(d,_),x.rotation=Z1(T.heading),x.camera=T),x}function Y1(d,_,T){const x=()=>new ai.Z("viewpointutils:invalid-geometry","The target is missing a valid geometry");if(!_)throw x();if(!(0,au.Q8)(_.spatialReference,d.spatialReference))throw new ai.Z("viewpointutils:incompatible-spatialreference",`Spatial reference (${_.spatialReference?_.spatialReference.wkid:"unknown"}) is incompatible with the view (${d.spatialReference.wkid})`,{geometry:_});const A=[];if(!_.hasZ&&d.basemapTerrain){let fe;switch(_.type){case"point":fe=_;break;case"multipoint":case"polyline":fe=_.extent?.center;break;case"mesh":fe=_.origin;break;case"extent":fe=_.center;break;case"polygon":fe=_.centroid}mo[2]=fe&&(0,Qe.pC)(d.basemapTerrain.spatialReference)&&(0,au.Q8)(fe,d.basemapTerrain.spatialReference)?(0,Qe.Pt)((0,W_.KO)(d.elevationProvider,fe),0):0}(0,EF[_.type])(_,fe=>{A.push(fe[0],fe[1],fe[2])},mo);const U=A.length/3;if(0===U)throw x();const ne=new Array(A.length);if((0,di.CM)(A,_.spatialReference,0,ne,d.spatialReference,0,U)){_.hasZ&&(T.hasZ=!0);for(let fe=0;fe{x.screenSpaceObjects.push(we)}),isFinite(Oe[2])&&(x.hasZ=!0)}),p2.apply(this,arguments)}function bR(d,_,T,x){return _2.apply(this,arguments)}function _2(){return _2=(0,kr.Z)(function*(d,_,T,x){if(Array.isArray(_)&&2===_.length){const A=_[0],U=_[1];if("number"==typeof A&&"number"==typeof U)return Cc.x=A,Cc.y=U,Cc.z=void 0,Cc.spatialReference=d.spatialReference.isGeographic?d.spatialReference:to.Z.WGS84,void Y1(d,Cc,x)}_&&"function"==typeof _.map?yield(0,ws.as)(_.map(A=>bR(d,A,T,x))):_ instanceof O6.Z?Y1(d,_,x):_ instanceof fd.Z&&(yield cF(d,_,T,x))}),_2.apply(this,arguments)}function uF(d,_,T,x,A){return f2.apply(this,arguments)}function f2(){return f2=(0,kr.Z)(function*(d,_,T,x,A){if((0,Qe.pC)(_.camera))return CR(d,_.camera,A);A.scale=_.scale,A.rotation=_.rotation,A.targetGeometry=(0,Qe.pC)(_.targetGeometry)?_.targetGeometry.clone():null,A.camera=null,null!=T.heading?A.rotation=Z1(T.heading):null!=T.rotation&&(A.rotation=T.rotation);const U=u2(d,T);null!=U&&(A.scale=U);const ne=new G_(x);return ER(d,A,T.tilt,ne),A.camera=yield ne.resolver.promise,A}),f2.apply(this,arguments)}function CR(d,_,T){const A=(0,au.iV)(_.position,d.spatialReference);return(0,Qe.Wi)(A)?null:((_=_.clone()).fov=d.camera.fov,_.position=A,h2(d,null,_,T))}function dF(d,_,T,x,A,U){const ne=d.renderSpatialReference;return(0,di.KC)(T.position,J1,ne),(0,di.KC)(_,b2,ne),U.targetGeometry=new vn.Z(_),A.position=new vn.Z(T.position),(0,pt.b)(k1,b2,J1),H1(d,J1,k1,x.up,A),U.scale=i0(d,(0,pt.i)(J1,b2),U.targetGeometry.latitude),U.rotation=Z1(A.heading),U.camera=A,U}function m2(d,_,T,x,A,U){return g2.apply(this,arguments)}function g2(){return g2=(0,kr.Z)(function*(d,_,T,x,A,U){if((0,Qe.Wi)(T))throw new ai.Z("createfromcenter","invalid point");U.targetGeometry=T.clone();const ne=Qp(d);if(_.position)return dF(d,U.targetGeometry,_,ne,x,U);if(_.zoomFactor){const Oe=ne.distance/_.zoomFactor,we=(0,pt.g)(mo,ne.viewForward,-Oe);ne.eye=(0,pt.a)(mo,ne.center,we),U.scale=i0(d,Oe,T.latitude)}H_(d,ne,x);const fe=d2(x,_)?Ia.LOCKED:Ia.ADJUST;if(!_.zoomFactor){U.scale=u2(d,_),null==U.scale&&((0,di.KC)(T,mo,d.renderSpatialReference),U.scale=(0,rn.g8)(ne.frustum,mo)?i0(d,(0,pt.i)(ne.eye,mo),T.latitude):yR(d,ne));const Oe=new G_(A);_R(d,U.targetGeometry,U.scale,x,fe,Oe),U.camera=yield Oe.resolver.promise}return U}),g2.apply(this,arguments)}function hF(d,_,T,x){const A=Qp(d);return(0,pt.c)(k1,A.viewForward),H1(d,A.eye,k1,A.up,C2),T.position=new vn.Z(_.position),T.heading=null!=_.heading?_.heading:C2.heading,T.tilt=null!=_.tilt?_.tilt:C2.tilt,h2(d,null,T,x)}function pF(d,_,T,x,A){return y2.apply(this,arguments)}function y2(){return y2=(0,kr.Z)(function*(d,_,T,x,A){const U=Qp(d);return m2(d,_,(0,di.fA)(U.center,d.renderSpatialReference,d.spatialReference),T,x,A)}),y2.apply(this,arguments)}function _F(d,_,T,x,A,U){return v2.apply(this,arguments)}function v2(){return v2=(0,kr.Z)(function*(d,_,T,x,A,U){U.targetGeometry=T.clone(),H_(d,Qp(d),x);const fe=d2(x,_)?Ia.LOCKED:Ia.ADJUST,Oe=new G_(A);return Sg(d,T,x.heading,x.tilt,fe,Oe),U.camera=yield Oe.resolver.promise,U}),v2.apply(this,arguments)}function fF(d,_,T,x,A){let U=0;T.hasZ?U=T.z:d.basemapTerrain&&(U=(0,Qe.Wg)((0,W_.KO)(d.elevationProvider,T))),(0,pt.s)(mo,T.x,T.y,U),(0,di.Bm)(d.spatialReference,mo,TR,d.renderSpatialReference),(0,Co.f)(X1,TR),(0,Co.t)(X1,X1),(0,fo.cS)(Ag);const ne=[[0,1,2],[3,1,2],[0,4,2],[3,4,2],[0,1,5],[3,1,5],[0,4,5],[3,4,5]];for(let Tt=0;Tt{this._resolveCallback=A,this._rejectCallback=U;const ne=new AbortController;(0,Qe.pC)(this.options.signal)&&(0,ws.fu)(this.options.signal,()=>{this.abort()}),this._abortController=ne,this.waitForReady()})}then(_,T){return this._promise.then(_,T)}catch(_){return this._promise.catch(_)}resolve(_){return this.state="finished",this._resolveCallback(_)}reject(_){return this.state="finished",this._rejectCallback(_)}abort(_=!1){switch(this.state){case"pending":case"wait-for-ready":case"wait-for-viewpoint":this.reject((0,ws.zE)());break;case"wait-for-animation-finish":!_&&(0,Qe.pC)(this._animationController)&&this.view.state.cameraController===this._animationController&&this._animationController.active&&this._animationController.stopController(),this.reject((0,ws.zE)())}}waitForReady(){var _=this;return(0,kr.Z)(function*(){if(_.state="wait-for-ready",!_.view.ready)try{yield(0,Ht.N1)(()=>_.view.ready,_._abortController.signal)}catch(T){return _.reject(T)}_.createViewPoint()})()}createViewPoint(){"finished"!==this.state&&(this.state="wait-for-viewpoint",this._animationController=this.options.animate?this._getAnimationController():null,function aF(d,_,T){return c2.apply(this,arguments)}(this.view,this.target,this._abortController.signal).then(_=>{if("finished"===this.state)return;const T=this._getCameraFromViewpoint(_);if(!(0,Qe.Wi)(T))if(this.options.animate){if((0,Qe.Wi)(this._animationController))return;this.startAnimation(T,this._animationController)}else this.view.stateManager.setStateCamera(T.camera,{applyConstraints:!T.isFullySpecified,positionAndOrientationOnly:!0,doNotCancelGoToOperation:!0}),this.resolve()},_=>{this.reject(_)}))}_getCameraFromViewpoint(_){const T=!!(this.target instanceof iu&&this.target.camera||this.target instanceof uc),x=_.camera;if((0,Qe.Wi)(x))return null;if(!this.view.stateManager.isCompatible(x)){const U=x.position,ne=U&&U.spatialReference;return this.reject(new ai.Z("GotoAnimation:incompatible-spatialreference",`Resulting camera has an incompatible spatial reference (camera: ${ne?ne.wkid:"none"}, view: ${this.view.spatialReference.wkid})`,{camera:x})),null}const A=Ld(this.view,x);return(0,Qe.Wi)(A)?(this.reject(new ai.Z("GotoAnimation:invalid-camera","Resulting camera is invalid")),null):{viewpoint:_,camera:A,isFullySpecified:T}}startAnimation(_,T){this.state="wait-for-animation-finish";const x=T.viewAnimation;if((0,Qe.Wi)(x))return void this.reject(new ai.Z("GotoAnimation:missing-animation","Unreachable code in view.stateManager"));if(x.update(_.viewpoint,"running"),!T.active||(0,Qe.Wi)(T.viewAnimation)||T.viewAnimation.target!==_.viewpoint||this.view.state.cameraController!==T)return this.abort();let A;_.isFullySpecified?(A=new Mg({view:this.view,desiredCamera:_.camera}),w_(this.view,_.camera,Vc.EYE_AND_CENTER)):_o(this.view,_.camera),T.begin(_.camera,this.options);const ne=fe=>{if(!(0,Qe.Wi)(this.view.state))switch(T.state){case Kn.Finished:switch(this.state){case"pending":case"wait-for-ready":case"wait-for-viewpoint":case"wait-for-animation-finish":this.resolve()}break;case Kn.Ready:case Kn.Rejected:case Kn.Running:case Kn.Stopped:switch(this.state){case"pending":case"wait-for-ready":case"wait-for-viewpoint":case"wait-for-animation-finish":this.reject(fe)}}};x.when(()=>{const fe=this.view.state.cameraController;A&&(fe&&fe.active?fe instanceof Sd&&(0,Qe.pC)(fe.viewAnimation)&&fe.viewAnimation.target===_.viewpoint&&(this.view.state.cameraController=A):(0,Qe.pC)(T.viewAnimation)&&T.viewAnimation.target===_.viewpoint&&"finished"===T.state&&(this.view.state.cameraController=A))},fe=>ne(fe)),T.asyncResult={resolve:()=>ne(),reject:fe=>ne(fe)}}_getAnimationController(){let _,T=null;const x=this.view.state.cameraController;return x instanceof Sd&&(x.updateStateFromViewAnimation(),x.active&&(_=x,T=_.viewAnimation)),null!=_||(_=new Sd({view:this.view,mode:"animation"}),T=_.viewAnimation,this.view.state.switchCameraController(_))?_:((0,Qe.pC)(T)&&T.stop(),this.reject(new ai.Z("GotoAnimation:goto-cannot-interrupt","Cannot start an animation while interacting")),null)}}var Nh=v(63416);let Ho=class extends Ns.Z{constructor(d){super(d),this._propertiesPool=new Nh.L({frustum:F_.i},this),this._handles=new Ji.Z,this._cameraSetByUser=!1,this._gotoOperation=null,this.ready=!1,this._windowDevicePixelRatio=1,this._devicePixelRatioOverride=null,this._maximumPixelRatioOverride=null,this._cameraChangeTime=0,this.test={contentCameraResetState:new Map,setDevicePixelRatio:_=>this._devicePixelRatioOverride=_,setMaximumPixelRatio:_=>this._maximumPixelRatioOverride=_,renderState:null}}get camera(){const d=this._get("camera");if(!this.ready)return d;const _=H_(this.view,this.view.state.camera,T2);return _&&d&&_.equals(d)?d:_.clone()}set camera(d){this._updatePropertyBeforeReady("camera",d)||(this.view.elevationProvider.enableElevationCache(!0),this.setStateCamera(Ld(this.view,d),{applyConstraints:!1})||Us.Z.getLogger(this.declaredClass).error("#camera=","Invalid camera",d),this.view.elevationProvider.enableElevationCache(!1))}get contentCamera(){const d=this._get("contentCamera");if(!this.ready)return d;const _=H_(this.view,this.view.state.contentCamera,T2);return _&&d&&_.equals(d)?d:_.clone()}set contentCamera(d){if(this._updatePropertyBeforeReady("contentCamera",d))return;const _=Ld(this.view,d);(0,Qe.Wi)(_)?this.view.state.contentCamera=null:(this._updateElevation(_),this.view.state.contentCamera=_)}installContentCameraReset(d){if(this._handles.remove("contentCameraReset"),this.test.contentCameraResetState.clear(),!this.view.state.fixedContentCamera)return!1;const _=this.zoom,T=this.view.state.camera.distance**2,x=(0,ir.d)(this.view.state.camera.center),A=d.sticky?this.contentCamera.clone():null;return this._handles.add([(0,Ht.YP)(()=>this.contentCamera,()=>{d.sticky||(this._handles.remove("contentCameraReset"),this.test.contentCameraResetState.clear())}),(0,Ht.YP)(()=>this.zoom,U=>{this.test.contentCameraResetState.set("view.zoom",Math.abs(U-_)/2),Math.abs(U-_)>2?this.contentCamera=null:this.view.state.fixedContentCamera||(this.contentCamera=A)}),(0,Ht.YP)(()=>this.view.state.camera,U=>{const ne=(0,pt.d)(x,U.center);this.test.contentCameraResetState.set("camera.center",ne/T),ne>T?this.contentCamera=null:this.view.state.fixedContentCamera||(this.contentCamera=A)})],"contentCameraReset"),!0}get center(){return this.ready?this.view.pointsOfInterest.centerOnContent.location:this._get("center")}set center(d){this._updatePropertyBeforeReady("center",d)||(d?this.isCompatible(d)?this.setStateCamera(this._centerToCamera(d),{applyConstraints:!0})?this.view.pointsOfInterest.centerOnContent.runTask():Us.Z.getLogger(this.declaredClass).error("#center=","Invalid center",d):Us.Z.getLogger(this.declaredClass).error("#center=","Center has an incompatible spatial reference (center: "+(d.spatialReference?d.spatialReference.wkid:"none")+", view: "+this.view.spatialReference.wkid+")",d):Us.Z.getLogger(this.declaredClass).error("#center=","Center may not be null or undefined"))}get extent(){if(!this.ready)return this._get("extent");const d=this.view,_=function Qj(d,_,T){const A=(0,di.fA)(T,d.renderSpatialReference,xg(d));if((0,Qe.Wi)(A))return null;const U=Math.tan(_.fovX/2),ne=Math.tan(_.fovY/2),fe=(0,pt.j)(_.eye,T),Oe=2*fe*U*1,we=2*fe*ne*1;return"global"===d.viewingMode?lR(d,A,Oe,we):iR(d,A,Oe,we)}(d,d.state.camera,d.pointsOfInterest.centerOnContent.renderLocation);return(0,Qe.pC)(_)?_:this._get("extent")}set extent(d){this._updatePropertyBeforeReady("extent",d)||(d?this.isCompatible(d)?this.setStateCamera(this._extentToCamera(d),{applyConstraints:!0})||Us.Z.getLogger(this.declaredClass).error("#extent=","Invalid extent",d):Us.Z.getLogger(this.declaredClass).error("#extent=","Extent has an incompatible spatial reference (extent: "+(d.spatialReference?d.spatialReference.wkid:"none")+", view: "+this.view.spatialReference.wkid+")",d):Us.Z.getLogger(this.declaredClass).error("#extent=","Extent may not be null or undefined"))}get frustum(){const d=this._propertiesPool.get("frustum");return d.renderCoordsHelper=this.view.renderCoordsHelper,d.update(this.view.state.camera),d}get hasInitialView(){return!!this.view.get("map.initialViewProperties.viewpoint")}get scale(){if(this.ready){const d=this.view.pointsOfInterest.centerOnContent;return i0(this.view,d.distance,d.location.latitude)}return this._get("scale")}set scale(d){this._updatePropertyBeforeReady("scale",d)||this.setStateCamera(this._scaleToCamera(d),{applyConstraints:!0})||Us.Z.getLogger(this.declaredClass).error("#scale=","Invalid scale",d)}get padding(){if(!this.ready)return this._get("padding");const d=this.view.state.camera,_=d.padding,T=d.pixelRatio,x=this._get("padding"),A=Math.round(_[$i.N.TOP]/T),U=Math.round(_[$i.N.RIGHT]/T),ne=Math.round(_[$i.N.BOTTOM]/T),fe=Math.round(_[$i.N.LEFT]/T);return null!=x&&x.top===A&&x.right===U&&x.bottom===ne&&x.left===fe?x:{top:A,right:U,bottom:ne,left:fe}}set padding(d){this._updatePropertyBeforeReady("padding",d)||(this._paddingToArray(d,this.view.state.camera.pixelRatio,Q1),this.view.state.updateCamera(_=>_.padding=Q1))}_paddingToArray(d,_,T){d?(0,Qo.s)(T,d.top||0,d.right||0,d.bottom||0,d.left||0):(0,Qo.s)(T,0,0,0,0);for(let x=0;x<4;x++)T[x]=Math.round(T[x]*_)}get screenCenter(){const d=this.padding;return(0,li.vW)((this.view.width-(d.left+d.right))/2+d.left,(this.view.height-(d.top+d.bottom))/2+d.top)}get viewpoint(){return this.ready?function oF(d,_,T=null){return(0,Qe.Wi)(T)&&(T=new iu),h2(d,null,_.clone(),T)}(this.view,this.camera):this._get("viewpoint")}set viewpoint(d){if(!this._updatePropertyBeforeReady("viewpoint",d))if(d)if(this.isCompatible(d))this.setStateCamera(this._viewpointToCamera(d),{applyConstraints:!d.camera})||Us.Z.getLogger(this.declaredClass).error("#viewpoint=","Invalid viewpoint",d);else{const _=(0,Qe.pC)(d.camera)?d.camera.position:d.targetGeometry,T=(0,Qe.pC)(_)&&_.spatialReference;Us.Z.getLogger(this.declaredClass).error("#viewpoint=","Viewpoint has an incompatible spatial reference (viewpoint: "+(T?T.wkid:"none")+", view: "+this.view.spatialReference.wkid+")",d)}else Us.Z.getLogger(this.declaredClass).error("#viewpoint=","Viewpoint may not be null or undefined")}get zoom(){return this.ready?function sF(d,_){const T=d.basemapTerrain?.tilingScheme;if(T)return T.levelAtScale(_);cR.error("#scaleToZoom()","Cannot compute zoom from scale without a tiling scheme")}(this.view,this.scale):this._get("zoom")}set zoom(d){this._updatePropertyBeforeReady("zoom",d)||this.setStateCamera(this._zoomToCamera(d),{applyConstraints:!0})||Us.Z.getLogger(this.declaredClass).error("#zoom=","Invalid zoom",d)}get maximumPixelRatio(){if((0,Qe.pC)(this._maximumPixelRatioOverride))return this._maximumPixelRatioOverride;let d=1/0;const{maximumPixelRatio:_,maximumRenderResolution:T}=this.view.qualitySettings;if(null!=_&&(d=Math.min(d,_)),null!=T){const x=T/Math.max(this.view.width,this.view.height);d=Math.min(d,x)}return d}get _devicePixelRatio(){return(0,Qe.Wi)(this._devicePixelRatioOverride)?Math.min(this._windowDevicePixelRatio,this.maximumPixelRatio):this._devicePixelRatioOverride}initialize(){this._cameraChangeTime=performance.now(),this._handles.add([(0,Ht.on)(()=>this.view.state.events,"before-camera-change",d=>this._updateElevation(d.camera)),(0,Ht.YP)(()=>this.view.state?.camera,(d,_)=>this._cameraChangedHandler(d,_),Ht.Z_)]),(0,Ht.gx)(()=>this.view.state?.camera,d=>this._updateElevation(d),{once:!0,sync:!0}),this._handles.add([(0,gd.A)({prepare:()=>this._prepareFrame()}),(0,Ht.YP)(()=>this.view.state.cameraController,()=>{this._cameraSetByUser=!0,this._handles.remove(q1)}),(0,Ht.on)(()=>this.view.state.events,"camera-projection-changed",()=>this.notifyChange("scale"))])}destroy(){this.exit(),this._handles&&(this._handles.destroy(),this._handles=null),this._propertiesPool&&(this._propertiesPool.destroy(),this._propertiesPool=null)}init(){this.constraintsManager=new Tg({view:this.view}),this._prepareFrame();const d=this._getInitialProperties();this._cameraSetByUser=!1,this._set("ready",!0);for(const _ of d)this.set(_.name,_.value);if(!this._cameraSetByUser){const _=this.view.get("map.initialViewProperties.viewpoint")||this.view.initialExtent;_&&this.isCompatible(_)?this._setInitialView(_):this.view.state.viewingMode===vi.JY.Local&&this._handles.add((0,Ht.gx)(()=>this.view.basemapTerrain.ready,()=>{this._handles.remove(q1),this._setInitialView(this.view.dataExtent)},{once:!0,initial:!0}),q1)}}exit(){this._cancelGoToOperation(),this.ready&&(this._override("padding",this.padding),this._set("ready",!1),this._clearOverride("hasInitialView"),this._cameraSetByUser=!1,this._handles.remove(q1),this.constraintsManager&&(this.constraintsManager.destroy(),this.constraintsManager=null))}goTo(d,_){var T=this;return(0,kr.Z)(function*(){const x={animate:!0,..._};return(0,Qe.pC)(T._gotoOperation)&&T._gotoOperation.abort(x.animate),T._gotoOperation=new bF(d,x,T.view),T.view.resourceController.scheduler.stopFrame(),T._gotoOperation})()}debugSetCameraOnContent(){this.setStateCamera(Qp(this.view),{applyConstraints:!1})}step(d){const _=this.view.state,T=_?.cameraController;T&&(_.updateCamera(x=>T.stepController(d,x)),T.steppingFinished&&T.finishController())}_cancelGoToOperation(){(0,Qe.pC)(this._gotoOperation)&&(this._gotoOperation.abort(),this._gotoOperation=null)}_getInitialProperties(){const d=new Set,_=[];for(const{propertyName:T,overrides:x}of TF){const A=d.has(T),U=this._isOverridden(T);!A&&U&&_.push({name:T,value:this._get(T)}),this._clearOverride(T),(A||U)&&x.forEach(ne=>d.add(ne))}return _}_setInitialView(d){if((0,Qe.Wi)(d)||this._cameraSetByUser)return;if(d instanceof uc)return void this.setStateCamera(Ld(this.view,d),{applyConstraints:!1});if(d instanceof iu){if(d.targetGeometry instanceof bl.Z){const A=Sg(this.view,d.targetGeometry,0,.5,Ia.LOCKED);return void((0,Qe.pC)(A)&&this.setStateCamera(Ld(this.view,A),{applyConstraints:!0}))}const T={applyConstraints:!d.camera},x=this._viewpointToCamera(d);return void this.setStateCamera(x,T)}const _=Sg(this.view,d,0,.5,Ia.LOCKED);(0,Qe.pC)(_)&&this.setStateCamera(Ld(this.view,_),{applyConstraints:!0})}_updatePropertyBeforeReady(d,_){return!this.ready&&(this._override(d,_),_&&CF.includes(d)&&this._override("hasInitialView",!0),!0)}isCompatible(d){return!(0,Qe.Wi)(d)&&(d instanceof iu?this.isCompatible(d.camera?d.camera:d.targetGeometry):d instanceof uc?this.isCompatible(d.position):d.spatialReference&&(0,au.Q8)(d.spatialReference,this.view.spatialReference))}_getPreservingHeadingTilt(d=MF){return this._cameraSetByUser?(d.heading=this.camera.heading,d.tilt=this.camera.tilt):(d.heading=0,d.tilt=.5),d}_centerPointAtDistanceToCamera(d,_,T=Wh){const{heading:x,tilt:A}=this._getPreservingHeadingTilt(),U=Dg(this.view,x,A,d,_,Ia.ADJUST);return(0,Qe.Wi)(U)?null:(T.copyFrom(this.view.state.camera),T.eye=U.eye,T.center=U.center,T.up=U.up,T)}_centerToCamera(d){const _=this.view.pointsOfInterest.centerOnContent;return _.runTask(),this._centerPointAtDistanceToCamera(d,_.distance)}_extentToCamera(d){const{heading:_,tilt:T}=this._getPreservingHeadingTilt(),x=Sg(this.view,d,_,T,Ia.ADJUST,T2);return(0,Qe.pC)(x)?Ld(this.view,x):null}_scaleToCamera(d){if(null==d)return null;const _=this.view.pointsOfInterest.centerOnContent;_.runTask();const T=_.renderLocation,A=i2(this.view,d,_.location.latitude);return this._centerPointAtDistanceToCamera(T,A)}_zoomToCamera(d){return this._scaleToCamera(gR(this.view,d))}_viewpointToCamera(d){return Ld(this.view,ER(this.view,d))}setStateCamera(d,_){return!((0,Qe.Wi)(d)||!this.view.state.stopActiveCameraController()||(this._cameraSetByUser=!0,_.doNotCancelGoToOperation||this._cancelGoToOperation(),this.view.state.updateCamera(T=>{_.positionAndOrientationOnly?(T.eye=d.eye,T.center=d.center,T.up=d.up):T.copyFrom(d),_.applyConstraints&&_o(this.view,T)}),_.applyConstraints||(this.view.state.cameraController=new Mg({view:this.view,desiredCamera:d})),0))}_prepareFrame(){const{surface:d,canvas:_}=this.view;if(!d||!_)return;this._windowDevicePixelRatio=window.devicePixelRatio;const T=this._devicePixelRatio,x=Math.round(d.clientWidth*T),A=Math.round(d.clientHeight*T);if(0!==x&&0!==A&&(_.width===x&&_.height===A||(_.width=x,_.height=A),this.view.state)){const U=this.view.state.camera;U.fullWidth===x&&U.fullHeight===A&&U.pixelRatio===T||(Wh.copyFrom(U),Wh.pixelRatio!==T&&(this._paddingToArray(this.padding,T,Q1),Wh.padding=Q1),Wh.fullWidth=x,Wh.fullHeight=A,Wh.pixelRatio=T,this.view.state.camera=Wh),this._updateRenderState()}}_updateElevation(d){const _=this.view.basemapTerrain&&this.view.basemapTerrain.spatialReference,T=this.view.renderCoordsHelper?.getAltitude(d.eye)??0,x=_?_1(this.view,d.eye):0;d.relativeElevation=T-x}_updateRenderState(){(0,Qe.pC)(this.test.renderState)?this.view.state.mode=this.test.renderState:this.view.animation?this.view.state.mode=Lu.n.ANIMATING:this.view.interacting?this.view.state.mode=Lu.n.INTERACTING:(this.view.state.mode===Lu.n.ANIMATING&&(this._cameraChangeTime=0),this.view.state.mode=performance.now()-this._cameraChangeTime<=PF?Lu.n.INTERACTING:Lu.n.IDLE)}_cameraChangedHandler(d,_){d&&_&&d.almostEquals(_)||(this._cameraChangeTime=performance.now(),this._updateRenderState())}};(0,Ve._)([(0,ke.Cb)({type:uc,dependsOn:["view.state.camera","ready"]})],Ho.prototype,"camera",null),(0,Ve._)([(0,ke.Cb)({type:uc,dependsOn:["view.state.contentCamera","ready"]})],Ho.prototype,"contentCamera",null),(0,Ve._)([(0,ke.Cb)({type:vn.Z})],Ho.prototype,"center",null),(0,Ve._)([(0,ke.Cb)({type:bl.Z})],Ho.prototype,"extent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ho.prototype,"frustum",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ho.prototype,"hasInitialView",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:Boolean})],Ho.prototype,"ready",void 0),(0,Ve._)([(0,ke.Cb)({type:Number})],Ho.prototype,"scale",null),(0,Ve._)([(0,ke.Cb)()],Ho.prototype,"padding",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ho.prototype,"screenCenter",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ho.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({type:iu})],Ho.prototype,"viewpoint",null),(0,Ve._)([(0,ke.Cb)({type:Number})],Ho.prototype,"zoom",null),(0,Ve._)([(0,ke.Cb)()],Ho.prototype,"maximumPixelRatio",null),(0,Ve._)([(0,ke.Cb)()],Ho.prototype,"_devicePixelRatio",null),(0,Ve._)([(0,ke.Cb)()],Ho.prototype,"_windowDevicePixelRatio",void 0),(0,Ve._)([(0,ke.Cb)()],Ho.prototype,"_devicePixelRatioOverride",void 0),(0,Ve._)([(0,ke.Cb)()],Ho.prototype,"_maximumPixelRatioOverride",void 0),Ho=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.ViewStateManager")],Ho);const CF=["camera","viewpoint","extent","scale","center","zoom"],TF=[{propertyName:"camera",overrides:["viewpoint"]},{propertyName:"viewpoint",overrides:["extent"]},{propertyName:"extent",overrides:["center","scale"]},{propertyName:"center",overrides:[]},{propertyName:"scale",overrides:["zoom"]},{propertyName:"zoom",overrides:[]},{propertyName:"padding",overrides:[]}],MF={heading:0,tilt:0},T2=new uc,Wh=new $i.V,Q1=(0,Tn.c)(),q1="pending-initial-view",PF=300;let Fu=class extends Dd{constructor(){super(...arguments),this.startCamera=new $i.V,this.currentCamera=new $i.V,this._lastInteraction=0}get isInteractive(){return performance.now()-this._lastInteraction<100}stepController(d,_){_.copyViewFrom(this.currentCamera),this.currentCamera.copyFrom(_)}onControllerStart(d){this.state=Kn.Running,this.startCamera.copyFrom(d),this.currentCamera.copyFrom(d)}onControllerEnd(d){d.copyViewFrom(this.currentCamera)}commitCamera(){this._lastInteraction=performance.now(),setTimeout(()=>this.notifyChange("isInteractive"),100),this.view.state.updateCamera(d=>this.stepController(0,d)),this.steppingFinished&&this.finishController()}};var Xl;(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Fu.prototype,"isInteractive",null),(0,Ve._)([(0,ke.Cb)()],Fu.prototype,"_lastInteraction",void 0),Fu=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.InteractiveController")],Fu),function(d){d[d.CENTER=0]="CENTER",d[d.EYE=1]="EYE"}(Xl||(Xl={}));let Rg=class extends Fu{constructor(d){super(d),this.pivot=Xl.CENTER,this._lastPoint=(0,un.a)(),this._tmpWorldUp=(0,ir.c)(),this._tmpViewDir=(0,ir.c)(),this._tmpRotCurPoint=(0,un.a)(),this._tmpTransf=(0,gn.c)(),this._tmpAxis=(0,ir.c)(),this._tmpPivotPoint=(0,ir.c)(),this._pivotPos=(0,ir.c)(),this._constraintOptions={selection:xn.ALL,interactionType:wi.TUMBLE,interactionFactor:0,interactionStartCamera:null,interactionDirection:null,tiltMode:qo.TUMBLE}}get _intersectionHelper(){return this.view.sceneIntersectionHelper}initialize(){this._rotScale=this.pivot===Xl.CENTER?3:1.5}begin(d){if(this.active){switch(this.pivot){case Xl.EYE:(0,pt.c)(this._pivotPos,this.startCamera.eye),this._constraintOptions.interactionType=wi.LOOK_AROUND,this._constraintOptions.tiltMode=qo.LOOK_AROUND,this._constraintOptions.selection=xn.NONE;break;case Xl.CENTER:{const _=this._intersectionHelper.intersectRayFreePointFallback(this.startCamera.ray,this._pivotPos);_||(0,pt.c)(this._pivotPos,this.startCamera.center),this._constrainPivotPoint(d,_),this.startCamera.center=this._pivotPos,this._constraintOptions.interactionType=wi.TUMBLE,this._constraintOptions.tiltMode=qo.TUMBLE,this._constraintOptions.selection=xn.ALL&~xn.DISTANCE;break}}this._constraintOptions.interactionStartCamera=this.startCamera,t0(this.startCamera,d,this._lastPoint)}}_constrainPivotPoint(d,_){const T=this.startCamera,x=(0,ir.c)();(0,pt.b)(x,this._pivotPos,T.eye);const A=(0,pt.l)(x);let U=Math.min(A,7*Math.abs(this.view.camera.position.z));const ne=(0,En.Iu)(this.view.spatialReference),fe=(0,li.s1)(T.width/T.pixelRatio*.5,T.height/T.pixelRatio*.5),Oe=P1(this.startCamera,fe,!0,ne);let we=this.view._stage.renderView.getMinimalDepthForArea(this.view.voxelWasm,T.fullWidth/T.pixelRatio*.5,T.fullHeight/T.pixelRatio*.5,T,225,90),Ze=this.view._stage.renderView.getMinimalDepthForArea(this.view.voxelWasm,d[0],d[1],T,90);((0,Qe.pC)(we)||(0,Qe.pC)(Ze))&&(we=(0,Qe.Pt)(we,Ze),Ze=(0,Qe.Wi)(Ze)||Oe===fa.Horizontal?we:Ze,U=we>Ze?Ze:we,U=_?Math.min(U,A):U),(0,pt.n)(x,x),(0,pt.c)(this._pivotPos,(0,pt.a)(this._tmpPivotPoint,T.eye,(0,pt.g)(this._tmpPivotPoint,x,U)))}update(d){if(this.active){switch(this.pivot){case Xl.EYE:this.currentCamera.center=this._applyRotation(this.currentCamera,d,this.currentCamera.center,this._pivotPos);break;case Xl.CENTER:this.currentCamera.center=this._pivotPos,this.currentCamera.eye=this._applyRotation(this.currentCamera,d,this.currentCamera.eye,this._pivotPos)}_o(this.view,this.currentCamera,this._constraintOptions),this.commitCamera()}}end(){this.active&&this.finishController()}_applyRotation(d,_,T,x){this.view.renderCoordsHelper.worldUpAtPosition(x,this._tmpWorldUp),t0(d,_,this._tmpRotCurPoint);let A=(this._lastPoint[1]-this._tmpRotCurPoint[1])*this._rotScale,U=(this._tmpRotCurPoint[0]-this._lastPoint[0])*this._rotScale;(0,pt.b)(this._tmpViewDir,T,x);const ne=(0,pt.l)(this._tmpViewDir),fe=(0,xr.ZF)((0,pt.e)(this._tmpViewDir,this._tmpWorldUp)/ne);if(this.pivot===Xl.EYE){A*=-.5;const Oe=.5*Math.PI-fe,we=.5*Math.PI*.99;A=Oe-Math.max(-we,Math.min(we,Oe+A))}return A=(0,xr.uZ)(A+fe,Sa.min,Sa.max)-fe,(0,pt.f)(this._tmpAxis,d.up,this._tmpViewDir),this.pivot===Xl.CENTER&&(U=-U),(0,gi.d)(this._tmpTransf,U,this._tmpWorldUp),(0,gi.e)(this._tmpTransf,this._tmpTransf,A,this._tmpAxis),(0,pt.m)(this._tmpViewDir,this._tmpViewDir,this._tmpTransf),d.up=(0,pt.m)(P2,d.up,this._tmpTransf),(0,pt.a)(P2,x,this._tmpViewDir),(0,ti.c)(this._lastPoint,this._tmpRotCurPoint),P2}};(0,Ve._)([(0,ke.Cb)()],Rg.prototype,"pivot",void 0),Rg=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.RotateController")],Rg);const P2=(0,ir.c)();class O2 extends nl.a{constructor(_,T,x,A){super(!0),this._view=_,this.pointerAction=T,this._pivot=x,this.registerIncoming("drag",A,U=>this._handleDrag(U))}_handleDrag(_){const T=_.data;if(T.pointers.size>1||!QP(_.data,this.pointerAction))return;const x=(0,li.s1)(T.center.x,T.center.y);switch(T.action){case"start":this._cameraController&&(this._cameraController.end(),this._cameraController=null),this._cameraController=new Rg({view:this._view,pivot:this._pivot}),this._view.state.switchCameraController(this._cameraController),this._cameraController.begin(x);break;case"update":this._cameraController&&this._cameraController.update(x);break;case"end":this._cameraController&&(this._cameraController.end(),this._cameraController=null)}_.stopPropagation()}}let x2=class extends Fu{constructor(){super(...arguments),this._pickPoint=(0,ir.c)(),this._tmpP0=(0,un.a)(),this._panAxisAngle=I_(),this._tmpRayDir=(0,ir.c)(),this._tmpRayDirPick=(0,ir.c)(),this._targetOnSphere=(0,ir.c)(),this._tmpRay={origin:(0,ir.c)(),direction:(0,ir.c)()},this.dragBeginPoint=(0,li.s1)(),this._normalizedAnchorPoint=(0,un.a)(),this._constraintOptions={selection:xn.ALL_EXCEPT_COLLISION,interactionType:wi.ZOOM,interactionFactor:0,interactionStartCamera:null,interactionDirection:null,tiltMode:qo.TUMBLE},this._sphere=(0,oo.c)(),this._hasPickPoint=!1}get _intersectionHelper(){return this.view.sceneIntersectionHelper}begin(d){if(!this.active)return;(0,ti.c)(this.dragBeginPoint,d),t0(this.startCamera,d,this._normalizedAnchorPoint);const _=(0,En.Iu)(this.view.spatialReference),T=U3(this._intersectionHelper,this.startCamera,d,_,L_.Ellipsoid,0===this.view.map.ground.opacity?xF:{});if(this._navMode=P1(this.startCamera,d,T.hasGeometryIntersection,_),this._navMode===fa.Horizontal)this._hasPickPoint=!!T.scenePickPoint,this._pickPoint=(0,Qe.Pt)(T.scenePickPoint,this._pickPoint),this._sphere=T.sphere;else{let x,A;(0,ju.iE)(this.startCamera,d,this._tmpRay),(0,pt.n)(this._tmpRay.direction,this._tmpRay.direction),(0,Qe.pC)(T.scenePickPoint)&&((0,pt.b)(this._tmpRayDirPick,this.startCamera.eye,T.scenePickPoint),A=(0,pt.l)(this._tmpRayDirPick)),this.view.camera.position.hasZ&&(x=Math.abs(this.view.camera.position.z));let U=(0,xr.uZ)(30*x,C1[0],C1[1]);const ne=this.view._stage.renderView.getMinimalDepthForArea(null,d[0],d[1],this.view.state.camera,70);U=(0,Qe.pC)(ne)?Math.min(U,ne):U,U=T.scenePickPoint?Math.min(U,A):U,this._hasPickPoint=!0,(0,pt.g)(this._tmpRay.direction,this._tmpRay.direction,U),(0,pt.a)(this._pickPoint,this._tmpRay.origin,this._tmpRay.direction)}this._constraintOptions.interactionStartCamera=this.startCamera}update(d){if(this.active){if(this.currentCamera.eye=this.startCamera.eye,this.currentCamera.center=this.startCamera.center,this.currentCamera.up=this.startCamera.up,this._navMode===fa.Horizontal){(0,pt.b)(this._tmpRayDir,this.currentCamera.center,this.currentCamera.eye);const _=(0,pt.l)(this._tmpRayDir);t0(this.currentCamera,d,this._tmpP0);const T=12*(this._normalizedAnchorPoint[1]-this._tmpP0[1]);let x=_*2**T;const A=this.view.state.constraints.minimumPoiDistance;if(T<0&&x=0&&xthis.startCamera.center[2]?Math.max(this.startCamera.center[2],a0[2]):Math.min(this.startCamera.center[2],a0[2]),this.currentCamera.center=a0,this._constraintOptions.interactionFactor=uu((0,ti.d)(this.dragBeginPoint,d)),_o(this.view,this.currentCamera,this._constraintOptions),this.commitCamera())}end(){this.active&&this.finishController()}};D2=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.local.ZoomController")],D2);const a0=(0,ir.c)(),DF={exclude:new Set([bc.cy])};class SF extends nl.a{constructor(_,T,x){super(!0),this._view=_,this.pointerAction=T,this.registerIncoming("drag",x,A=>this._handleDrag(A))}_handleDrag(_){const T=_.data;if(T.pointers.size>1||!QP(_.data,this.pointerAction))return;const x=(0,li.s1)(T.center.x,T.center.y);switch(T.action){case"start":this._cameraController&&(this._cameraController.end(),this._cameraController=null),this._cameraController=this._view.state.isGlobal?new x2({view:this._view}):new D2({view:this._view}),this._view.state.switchCameraController(this._cameraController),this._cameraController.begin(x);break;case"update":this._cameraController&&this._cameraController.update(x);break;case"end":this._cameraController&&(this._cameraController.end(),this._cameraController=null)}_.stopPropagation()}}function du(d){let _=d*d;return d<0&&(_*=-1),_}function PR(d,_,T){const x=T,A=d.state,U=d.device,ne="forward-down"===_.tiltDirection?1:-1;return"standard"===U.deviceType?(x.translation[0]=du(A.axes[0]),x.translation[1]=du(A.axes[1]),x.translation[2]=du(A.buttons[7])-du(A.buttons[6]),x.heading=du(A.axes[2]),x.tilt=du(A.axes[3])):"spacemouse"===U.deviceType&&(x.translation[0]=1.2*du(A.axes[0]),x.translation[1]=1.2*du(A.axes[1]),x.translation[2]=2*-du(A.axes[2]),x.heading=1.2*du(A.axes[5]),x.tilt=1.2*du(A.axes[3])),x.tilt*=ne,(0,pt.g)(x.translation,x.translation,1),x}function OR(d,_){const T=_;return T.translation[0]=d[1]-d[0],T.translation[1]=d[3]-d[2],T.translation[2]=d[4]-d[5],T.heading=d[7]-d[6],T.tilt=d[8]-d[9],T.zoom=d[10]-d[11],T}function S2(d){return 0===d.translation[0]&&0===d.translation[1]&&0===d.translation[2]&&0===d.heading&&0===d.tilt&&0===d.zoom}let l0=class extends Fu{constructor(d){super(d),this._transformation={translation:[0,0,0],heading:0,tilt:0,zoom:0},this._keysButtonState=[0,0,0,0,0,0,0,0,0,0,0,0],this._tmpCamera=new $i.V,this._constraintOptions={selection:xn.ALL,interactionType:wi.NONE,interactionStartCamera:new $i.V,interactionFactor:0,interactionDirection:null,tiltMode:qo.LOOK_AROUND}}handleEventGamepad(d){const _=PR(d,this.view.navigation.gamepad,this._transformation);("end"===d.action||S2(_))&&this.finishController()}activateDirection(d){this._keysButtonState[d]=1,OR(this._keysButtonState,this._transformation)}deactivateDirection(d){this._keysButtonState[d]=0,S2(OR(this._keysButtonState,this._transformation))&&this.finishController()}onControllerStart(d){this._filteredSurfaceElevation=this.view.pointsOfInterest.cameraOnSurface.location.z,this._headingStart=this.view.camera.heading,super.onControllerStart(d)}_updateFilteredSurfaceElevation(d){this._filteredSurfaceElevation+=1*(this.view.pointsOfInterest.cameraOnSurface.location.z-this._filteredSurfaceElevation)*d}stepController(d,_){this._updateStartHeading(),this._updateFilteredSurfaceElevation(d),this.currentCamera.copyViewFrom(_),this._updateCameraCenter(),this._constraintOptions.interactionStartCamera.copyFrom(this.currentCamera),this._calculateControlTransformation(d,this.currentCamera,c0),this._applyDisabledMovementTypes(c0),this._applyPan(c0.pan),this._applyRotate(c0.rotate),this._applyZoom(c0.zoom),this._applyAscend(c0.ascend),this._constraintOptions.interactionType=wi.NONE,this._constraintOptions.selection=xn.COLLISION,_o(this.view,this.currentCamera,this._constraintOptions),super.stepController(d,_)}_updateStartHeading(){0!==this._transformation.heading&&(this._headingStart=this.view.camera.heading)}_applyRotate(d){if(!d.enabled)return;const _=this.currentCamera;(0,pt.b)(Pl,_.center,_.eye),(0,pt.m)(Pl,Pl,d.matrix),_.center=(0,pt.a)(Pl,Pl,_.eye),_.up=(0,pt.m)(Pl,_.up,d.matrix),this._constraintOptions.interactionType=wi.LOOK_AROUND,this._constraintOptions.selection=xn.ALL_EXCEPT_COLLISION,_o(this.view,_,this._constraintOptions)}_applyPan(d,_=this.currentCamera){!d.enabled||(_.eye=(0,pt.m)(Pl,_.eye,d.matrix),_.center=(0,pt.m)(Pl,_.center,d.matrix),this.view.state.isGlobal&&(_.up=(0,pt.m)(Pl,_.up,d.matrix)),this._constraintOptions.interactionType=wi.PAN,this._constraintOptions.selection=xn.ALL,_o(this.view,_,this._constraintOptions))}_applyZoom(d){if(!d)return;const _=this.currentCamera.viewForward;this.currentCamera.eye=(0,pt.a)(Pl,this.currentCamera.eye,(0,pt.g)(Dn.WM.get(),_,d)),(0,pt.c)(wg,_),(0,pt.o)(wg,wg),this._constraintOptions.interactionDirection=wg,this._constraintOptions.interactionType=wi.ZOOM,this._constraintOptions.selection=xn.ALL_EXCEPT_COLLISION,_o(this.view,this.currentCamera,this._constraintOptions),this._constraintOptions.interactionDirection=null}_applyAscend(d){if(!d)return;const _=this.view.renderCoordsHelper.worldUpAtPosition(this.currentCamera.eye,Dn.WM.get());if(this._constraintOptions.interactionDirection=(0,pt.c)(wg,_),this.view.state.isGlobal){const T=(0,pt.l)(this.currentCamera.eye),x=(T+d)/T;this.currentCamera.eye=(0,pt.g)(Pl,this.currentCamera.eye,x),this.currentCamera.center=(0,pt.g)(Pl,this.currentCamera.center,x)}else{const T=(0,pt.g)(Dn.WM.get(),_,d);this.currentCamera.eye=(0,pt.a)(Pl,this.currentCamera.eye,T),this.currentCamera.center=(0,pt.a)(Pl,this.currentCamera.center,T)}this._updateCameraCenter(),this._constraintOptions.interactionType=wi.ASCEND,this._constraintOptions.selection=xn.COLLISION,_o(this.view,this.currentCamera,this._constraintOptions)&&this._updateCameraCenter(),this._constraintOptions.selection=xn.ALL_EXCEPT_COLLISION,_o(this.view,this.currentCamera,this._constraintOptions),this._constraintOptions.interactionDirection=null}_calculateControlTransformation(d,_,T){!function BF(d){d.zoom=0,d.ascend=0,d.pan.enabled=!1,(0,gi.i)(d.pan.matrix),d.rotate.enabled=!1,(0,gi.i)(d.rotate.matrix)}(T);const x=this._computeVelocities(d);this.view.state.isLocal?this._calculateControlTransformationLocal(x,_,T):this._calculateControlTransformationGlobal(x,_,T)}_updateCameraCenter(){this.currentCamera.center=this.view.renderCoordsHelper.intersectManifoldClosestSilhouette(this.currentCamera.ray,this.view.pointsOfInterest.centerOnSurfaceFrequent.estimatedSurfaceAltitude,Pl)}_calculateControlTransformationLocal(d,_,T){const{viewRight:x,viewForward:A}=_,U=this._transformation,ne=this.view.navigation.gamepad,fe=(0,pt.s)(Dn.WM.get(),A[0],A[1],0);(0,pt.n)(fe,fe);const Oe=U.translation[0]*d.pan;if(0!==Oe){const Tt=(0,pt.g)(Dn.WM.get(),x,Oe);(0,gi.v)(T.pan.matrix,T.pan.matrix,Tt),T.pan.enabled=!0}switch(ne.mode){case"pan":{const Tt=-U.translation[1]*d.pan;if(0!==Tt){const mt=(0,pt.g)(Dn.WM.get(),fe,Tt);(0,gi.v)(T.pan.matrix,T.pan.matrix,mt),T.pan.enabled=!0}T.zoom=U.zoom*d.zoom;break}case"zoom":T.zoom=(-U.translation[1]+U.zoom)*d.zoom;break;default:(0,Rm.Bg)(ne.mode)}T.ascend=U.translation[2]*d.ascend;const Ze=-U.heading*d.rotate;0!==Ze&&((0,gi.e)(T.rotate.matrix,T.rotate.matrix,Ze,this.view.renderCoordsHelper.worldUpAtPosition(_.eye,Dn.WM.get())),T.rotate.enabled=!0);const it=U.tilt*d.rotate,lt=wh(this.view.renderCoordsHelper,_.center,_.eye),dt=(0,xr.uZ)(lt+it,Sa.min,Sa.max)-lt;dt&&((0,gi.e)(T.rotate.matrix,T.rotate.matrix,dt,x),T.rotate.enabled=!0)}_calculateControlTransformationGlobal(d,_,T){const{eye:x,viewRight:A}=_,U=this._transformation,ne=this.view.navigation.gamepad,fe=(0,pt.f)(Dn.WM.get(),A,x);(0,pt.n)(fe,fe),(0,pt.o)(fe,fe),function cj(d,_,T,x,A,U,ne,fe,Oe){XP(d.center,(0,pt.e)(d.up,d.center),(0,pt.l)(d.center),-za.Q4.normalize((0,xr.Vl)(U)),ne,_)?function aj(d,_,T,x,A,U){const{eye:ne}=d;(0,o_.Tz)([0,0,1],ne,Ad,jh,K3);const fe=_.translation[0]*T.pan,Oe="zoom"===A.mode?0:_.translation[1]*T.pan,we=Math.max(Math.sqrt(Math.abs(1-(0,pt.e)(d.center,Ad)**2/(0,pt.l)(d.center)**2)),.5),Ze=(Math.sin(U)*Oe+Math.cos(U)*fe)/we,it=-Math.cos(U)*Oe+Math.sin(U)*fe;switch((0,gi.e)(x.pan.matrix,x.pan.matrix,Ze,Ad),x.pan.enabled=!0,A.mode){case"pan":(0,gi.e)(x.pan.matrix,x.pan.matrix,it,jh),x.pan.enabled=!0;break;case"zoom":x.zoom=-_.translation[1]*T.zoom}}(_,T,x,fe,Oe,-za.Q4.normalize((0,xr.Vl)(A))):function lj(d,_,T,x,A){const{eye:U,viewRight:ne}=d,fe=(0,pt.f)(Dn.WM.get(),ne,U),Oe=_.translation[0]*T.pan;switch(0!==Oe&&((0,gi.e)(x.pan.matrix,x.pan.matrix,-Oe,fe),x.pan.enabled=!0),A.mode){case"pan":{const we=_.translation[1]*T.pan;0!==we&&((0,gi.e)(x.pan.matrix,x.pan.matrix,we,ne),x.pan.enabled=!0);break}case"zoom":x.zoom=-_.translation[1]*T.zoom}}(_,T,x,fe,Oe)}(this.startCamera,_,U,d,this.view.camera.heading,this._headingStart,this.view.camera.tilt,T,ne),this._tmpCamera.copyFrom(this.currentCamera),this._applyPan(c0.pan,this._tmpCamera);const Oe=this.view.pointsOfInterest.centerOnSurfaceFrequent.estimatedSurfaceAltitude;T.ascend=U.translation[2]*d.ascend;const Ze=-U.heading*d.rotate;0!==Ze&&((0,gi.e)(T.rotate.matrix,T.rotate.matrix,Ze,this._tmpCamera.eye),T.rotate.enabled=!0);const lt=this._clampTiltDeltaGlobalToValidRange(U.tilt*d.rotate,_.ray,Oe);0!==lt&&((0,gi.e)(T.rotate.matrix,T.rotate.matrix,lt,this._tmpCamera.viewRight),T.rotate.enabled=!0),T.zoom+=U.zoom*d.zoom}_clampTiltDeltaGlobalToValidRange(d,_,T){const x=(0,En.Iu)(this.view.spatialReference),A=T1(Sa.min,_.origin,T,x);let U=0,ne=0;const fe=Dn.WM.get();return this.view.renderCoordsHelper.intersectManifold(_,T,fe)?(U=T1(wh(this.view.renderCoordsHelper,fe,_.origin),_.origin,T,x),ne=T1(Sa.max,_.origin,T,x)):((0,oo.b)((0,oo.e)(oo.t,T+x.radius),_,fe),U=w3((0,xr.ZF)(-(0,pt.e)(_.direction,(0,pt.n)(fe,fe))),_.origin,T,x),ne=w3(Sa.max,_.origin,T,x)),(0,xr.uZ)(U+d,A,ne)-U}_getPointAbsoluteSurfaceElevation(d,_,T){const{renderCoordsHelper:x}=this.view,A=x.getAltitude(d),U=_+Math.abs(A-_);return x.setAltitude(T,U,d),U}_clampedDistanceToSurface(d,_){const{renderCoordsHelper:T}=this.view,{camera:x}=this.view.state,{direction:A}=function $j(d,_,T,x,A){return V_(d).headingTiltToDirectionUp(_,T,x,A)}(this.view,_,0,xR,UF),U=T.intersectManifoldClosestSilhouette((0,yc.re)(_,A),d,Dn.WM.get()),ne=(0,pt.i)(_,U),fe=T.intersectManifoldClosestSilhouette((0,yc.re)(_,(0,pt.r)(Dn.WM.get(),_,x.center)),d,Dn.WM.get()),Oe=(0,pt.i)(_,fe);return Math.min(ne,Oe)}_computeHeadingRotateRadius(d){const{renderCoordsHelper:_,state:T}=this.view,{camera:x,isGlobal:A}=T,U=_.intersectManifoldClosestSilhouette(x.ray,this._filteredSurfaceElevation,Dn.WM.get());if(A){const ne=(0,pt.b)(Dn.WM.get(),d,U),fe=(0,pt.l)(ne);(0,pt.g)(ne,ne,1/fe);const Oe=(0,pt.n)(Dn.WM.get(),d),we=(0,xr.ZF)((0,pt.e)(Oe,ne));return fe*Math.sin(Math.min(RF,we))}{const ne=(0,pt.c)(Dn.WM.get(),d);return _.setAltitude(ne,this._filteredSurfaceElevation),(0,pt.i)(U,ne)}}_minimumAscendVelocity(){return this.view.state.constraints.collision.enabled?0:wF}_computeVelocities(d){const _=this._filteredSurfaceElevation,T=_+(0,En.Iu)(this.view.spatialReference).radius,{camera:x,isGlobal:A}=this.view.state,U=Dn.WM.get(),ne=this._getPointAbsoluteSurfaceElevation(x.eye,_,U),fe=this._clampedDistanceToSurface(_,U),Oe=x.width/2,we=DR*x.width,Ze=DR*x.width,it=fe*Math.tan(.5*x.fovX)/Oe,lt=it/T,dt=it/this._computeHeadingRotateRadius(U),Tt=ne-_;return{pan:(A?lt:it)*we*d,ascend:Math.max(this._minimumAscendVelocity()*d,2**(we*d/Oe)*Tt-Tt),zoom:2**(we*d/Oe)*fe-fe,rotate:(0,xr.uZ)(dt*Ze,IF,LF)*d}}_applyDisabledMovementTypes(d){!(0,Qe.pC)(this.disableMovements)||void 0!==this.disableMovements.mode&&this.view.state.viewingMode!==this.disableMovements.mode||(d.zoom=this.disableMovements.zoom?0:d.zoom,d.ascend=this.disableMovements.ascend?0:d.ascend,d.pan.enabled=!this.disableMovements.pan,this.disableMovements.pan&&(0,gi.i)(d.pan.matrix),d.rotate.enabled=!this.disableMovements.rotate,this.disableMovements.rotate&&(0,gi.i)(d.rotate.matrix))}static activatesFor(d,_){const T=PR(_,d.navigation.gamepad,AF);return!("end"===_.action||S2(T))}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],l0.prototype,"gamepadDevice",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],l0.prototype,"disableMovements",void 0),l0=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.GamepadKeyboardController")],l0);const AF={translation:[0,0,0],heading:0,tilt:0,zoom:0},xR=80,RF=(0,xr.Vl)(xR),DR=.75,wF=5,IF=(0,xr.Vl)(30),LF=(0,xr.Vl)(80),c0={zoom:0,ascend:0,pan:{enabled:!1,matrix:(0,gn.c)()},rotate:{enabled:!1,matrix:(0,gn.c)()}},Pl=(0,ir.c)(),wg=(0,ir.c)(),UF=qP();class jF extends nl.a{constructor(_){super(!0),this._view=_,this._watchHandles=new Ji.Z,this._handle=this.registerIncoming("gamepad",T=>this._handleEventGamepad(T)),this._handle.pause()}onInstall(_){super.onInstall(_),this._watchHandles.add([(0,Ht.YP)(()=>this._view.navigation.gamepad.enabled,T=>{T?this._handle.resume():(this._handle.pause(),this._cameraControllerGamepad&&(this._cameraControllerGamepad.finishController(),this._cameraControllerGamepad=null))},Ht.nn),(0,Ht.YP)(()=>this._view.navigation.gamepad.device,T=>{this._cameraControllerGamepad&&T&&this._cameraControllerGamepad.gamepadDevice!==T&&(this._cameraControllerGamepad.finishController(),this._cameraControllerGamepad=null)})])}onUninstall(){this._watchHandles.removeAll(),super.onUninstall()}_handleEventGamepad(_){const T=this._view.navigation.gamepad.device;if(T&&_.data.device!==T)return;const x=this._cameraControllerGamepad&&this._cameraControllerGamepad.active;if(x||l0.activatesFor(this._view,_.data)){if(!x){const A=new l0({view:this._view,gamepadDevice:_.data.device});this._view.state.switchCameraController(A)&&(this._cameraControllerGamepad=A)}this._cameraControllerGamepad&&this._cameraControllerGamepad.active&&this._cameraControllerGamepad.gamepadDevice===_.data.device&&this._cameraControllerGamepad.handleEventGamepad(_.data)}}}var kl;!function(d){d[d.LEFT=0]="LEFT",d[d.RIGHT=1]="RIGHT",d[d.FORWARD=2]="FORWARD",d[d.BACKWARD=3]="BACKWARD",d[d.UP=4]="UP",d[d.DOWN=5]="DOWN",d[d.HEADINGLEFT=6]="HEADINGLEFT",d[d.HEADINGRIGHT=7]="HEADINGRIGHT",d[d.TILTUP=8]="TILTUP",d[d.TILTDOWN=9]="TILTDOWN",d[d.ZOOMIN=10]="ZOOMIN",d[d.ZOOMOUT=11]="ZOOMOUT"}(kl||(kl={}));class FF extends nl.a{constructor(_,T){super(!0),this._view=_,this._disableMovements={pan:!0,zoom:!1,ascend:!0,rotate:!1,mode:vi.JY.Local},this._keyToNumber={[T.left]:kl.LEFT,[T.right]:kl.RIGHT,[T.forward]:kl.FORWARD,[T.backward]:kl.BACKWARD,[T.up]:kl.UP,[T.down]:kl.DOWN,[T.headingLeft]:kl.HEADINGLEFT,[T.headingRight]:kl.HEADINGRIGHT,[T.tiltUp]:kl.TILTUP,[T.tiltDown]:kl.TILTDOWN,[T.zoomIn]:kl.ZOOMIN,[T.zoomOut]:kl.ZOOMOUT},this.registerIncoming("key-down",null,x=>this._handleKeyDown(x)),this.registerIncoming("key-up",null,x=>this._handleKeyUp(x)),this.registerIncoming("blur",null,()=>this._handleBlur())}_handleKeyDown(_){if(_.data.native.ctrlKey||_.data.native.metaKey)return;const T=this._keyToNumber[_.data.key];null!=T&&(this._cameraControllerKeyboard&&this._cameraControllerKeyboard.active||(this._cameraControllerKeyboard=new l0({view:this._view,disableMovements:this._disableMovements}),this._view.state.switchCameraController(this._cameraControllerKeyboard)),this._cameraControllerKeyboard.active&&(this._cameraControllerKeyboard.activateDirection(T),_.stopPropagation()))}_handleBlur(){this._cameraControllerKeyboard&&this._cameraControllerKeyboard.active&&(this._cameraControllerKeyboard.finishController(),this._cameraControllerKeyboard=null)}_handleKeyUp(_){if(_.data.native.ctrlKey||_.data.native.metaKey)return;const T=this._keyToNumber[_.data.key];null!=T&&this._cameraControllerKeyboard&&this._cameraControllerKeyboard.active&&(this._cameraControllerKeyboard.deactivateDirection(T),_.stopPropagation())}}class NF extends nl.a{constructor(_,T){super(!0),this._view=_,this.registerIncoming("mouse-wheel",T,x=>this._handleMouseWheel(x))}_handleMouseWheel(_){if(!this._view.navigation.mouseWheelZoomEnabled)return;const T=_.data;this._cameraController&&this._cameraController.active||(this._cameraController=this._view.state.isGlobal?new U1({view:this._view,mode:"interaction"}):new F1({view:this._view,mode:"interaction"}),this._view.state.switchCameraController(this._cameraController)),this._cameraController.zoomStep(-1/60*T.deltaY,(0,li.s1)(T.x,T.y)),_.preventDefault(),_.stopPropagation()}}class tE{constructor(_){this._gain=_}reset(_){this._value=_}set gain(_){this._gain=_}get value(){return void 0===this._value?0:this._value}update(_){this._value=void 0===this._value?_:this._gain*_+(1-this._gain)*this._value}}let u0=class extends vg{constructor(){super(...arguments),this._beginCamera=new $i.V,this._elapsedTimeSec=0,this.constraintOptions={selection:xn.ALL,interactionType:wi.PAN,interactionFactor:0,interactionStartCamera:new $i.V,interactionDirection:null,tiltMode:qo.TUMBLE}}initialize(){this.constraintOptions.interactionType=this.interactionType,this.viewAnimation=new g_}get steppingFinished(){return this.momentum.isFinished(this._elapsedTimeSec)}onControllerStart(d){this._beginCamera.copyFrom(d),this.constraintOptions.interactionStartCamera=this._beginCamera,super.onControllerStart(d)}stepController(d,_){_.copyViewFrom(this._beginCamera),this._elapsedTimeSec+=d,this.momentumStep(this._elapsedTimeSec,_),_o(this.view,_,this.constraintOptions)}};u0=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.momentum.MomentumController")],u0);let Ig=class extends u0{constructor(d){super(d),this.interactionType=wi.PAN,this._tmpPan=(0,ir.c)()}momentumStep(d,_){const T=this.momentum.value(d);(0,pt.g)(this._tmpPan,this.momentum.direction,T),_.eye=(0,pt.b)(SR,_.eye,this._tmpPan),_.center=(0,pt.b)(SR,_.center,this._tmpPan),this.constraintOptions.interactionDirection=this._tmpPan}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ig.prototype,"momentum",void 0),Ig=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.momentum.PanPlanarMomentumController")],Ig);const SR=(0,ir.c)(),WF=(0,ir.c)(),rE=(0,ir.c)();let sE=class extends u0{constructor(d){super(d),this.interactionType=wi.PAN}momentumStep(d,_){const T=this.momentum.value1(d),x=this.momentum.value2(d);(0,pt.c)(rE,_.eye),(0,pt.n)(rE,rE),(0,pt.f)(this.momentum.axis2,rE,this.momentum.axis1),z3(_,WF,this.momentum.axis1,T,this.momentum.axis2,x)}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],sE.prototype,"momentum",void 0),sE=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.momentum.PanSphericalMomentumController")],sE);let d0=class extends u0{constructor(d){super(d),this.interactionType=wi.TUMBLE}set center(d){this._set("center",(0,ir.a)(d))}set axis(d){this._set("axis",(0,ir.a)(d))}momentumStep(d,_){const T=this.momentum.value(d);Bh(_,this.center,Eg(this.axis,T))}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],d0.prototype,"momentum",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],d0.prototype,"center",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],d0.prototype,"axis",null),d0=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.momentum.MomentumController")],d0);let K_=class extends u0{constructor(d){super(d),this.interactionType=wi.ZOOM,this.constraintOptions.interactionDirection=(0,ir.c)()}set zoomCenter(d){this._set("zoomCenter",(0,ir.a)(d))}momentumStep(d,_){(0,pt.c)(this.constraintOptions.interactionDirection,_.eye);const T=this.momentum.valueDelta(0,d);ZP(_,this.zoomCenter,T,this.view.state.constraints.minimumPoiDistance),this.constraintOptions.interactionDirection=(0,pt.r)(this.constraintOptions.interactionDirection,_.eye,this.constraintOptions.interactionDirection)}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],K_.prototype,"momentum",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],K_.prototype,"zoomCenter",null),K_=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.momentum.ZoomPlanarMomentumController")],K_);let h0=class extends u0{constructor(d){super(d),this.interactionType=wi.ZOOM,this.radius=0,this._tmpSceneCenter=(0,ir.c)(),this._tmpZoomAxisAngle=I_(),this._sphere=(0,oo.c)()}set screenCenter(d){this._set("screenCenter",(0,li.s1)(d[0],d[1]))}set sceneCenter(d){this._set("sceneCenter",(0,ir.a)(d))}initialize(){this._sphere[3]=this.radius}momentumStep(d,_){const T=this.momentum.valueDelta(0,d);A3(this._sphere,_,T),this.constraintOptions.interactionType=wi.ZOOM,_o(this.view,_,this.constraintOptions),bg(this._sphere,_,this.screenCenter,this._tmpSceneCenter),zP(this.sceneCenter,this._tmpSceneCenter,this._tmpZoomAxisAngle),Bh(_,this._sphere,this._tmpZoomAxisAngle),this.constraintOptions.interactionType=wi.PAN}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],h0.prototype,"momentum",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],h0.prototype,"screenCenter",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],h0.prototype,"sceneCenter",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],h0.prototype,"radius",void 0),h0=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.momentum.ZoomSphericalMomentumController")],h0);class hu{constructor(_){this._gain=_,this.lastValue=void 0,this.filteredDelta=void 0}update(_){if(this.hasLastValue()){const T=this.computeDelta(_);this._updateDelta(T)}this.lastValue=_}reset(){this.lastValue=void 0,this.filteredDelta=void 0}hasLastValue(){return void 0!==this.lastValue}hasFilteredDelta(){return void 0!==this.filteredDelta}computeDelta(_){return void 0===this.lastValue?NaN:_-this.lastValue}_updateDelta(_){this.filteredDelta=void 0!==this.filteredDelta?(1-this._gain)*this.filteredDelta+this._gain*_:_}}class iE{constructor(_,T,x){this._initialVelocity=_,this._stopVelocity=T,this._friction=x,this._duration=Math.abs(Math.log(Math.abs(this._initialVelocity)/this._stopVelocity)/Math.log(1-this._friction))}get duration(){return this._duration}isFinished(_){return _>this.duration}get friction(){return this._friction}value(_){return this.valueFromInitialVelocity(this._initialVelocity,_)}valueDelta(_,T){const x=this.value(_);return this.value(_+T)-x}valueFromInitialVelocity(_,T){T=Math.min(T,this.duration);const x=1-this.friction;return _*(x**T-1)/Math.log(x)}}class VF extends iE{constructor(_,T,x,A,U){super(_,T,x),this._sceneVelocity=A,this.direction=U}value(_){return super.valueFromInitialVelocity(this._sceneVelocity,_)}}class AR{constructor(_=300,T=12,x=.84){this._minimumInitialVelocity=_,this._stopVelocity=T,this._friction=x,this.enabled=!0,this._time=new hu(.6),this._screen=[new hu(.4),new hu(.4)],this._scene=[new hu(.6),new hu(.6),new hu(.6)],this._tmpDirection=(0,ir.c)()}add(_,T,x){if(this.enabled){if(this._time.hasLastValue()&&this._time.computeDelta(x)<.015)return;this._screen[0].update(_[0]),this._screen[1].update(_[1]),this._scene[0].update(T[0]),this._scene[1].update(T[1]),this._scene[2].update(T[2]),this._time.update(x)}}reset(){this._screen[0].reset(),this._screen[1].reset(),this._scene[0].reset(),this._scene[1].reset(),this._scene[2].reset(),this._time.reset()}evaluateMomentum(){if(!this.enabled||!this._screen[0].hasFilteredDelta()||!this._time.hasFilteredDelta())return null;const _=this._screen[0].filteredDelta,T=this._screen[1].filteredDelta,x=null==_||null==T?0:Math.sqrt(_*_+T*T),A=this._time.filteredDelta,U=null==A||null==x?0:x/A;return Math.abs(U)0&&(0,pt.g)(this._tmpDirection,this._tmpDirection,1/A);const U=this._time.filteredDelta;return new VF(_,T,x,null==U?0:A/U,this._tmpDirection)}}class RR{constructor(_){this._gain=_}update(_){this.filteredValue=void 0!==this.filteredValue?(1-this._gain)*this.filteredValue+this._gain*_:_}reset(){this.filteredValue=void 0}get hasFilteredValue(){return void 0!==this.filteredValue}}class zF extends iE{constructor(_,T,x,A,U,ne=0,fe){super(_,T,x),this._angularVelocity1=A,this.axis1=U,this.angularVelocity2=ne,this.axis2=fe}value1(_){return super.valueFromInitialVelocity(this._angularVelocity1,_)}value2(_){return super.valueFromInitialVelocity(this.angularVelocity2,_)}}class HF{constructor(_=300,T=12,x=.84){this._minimumInitialVelocity=_,this._stopVelocity=T,this._friction=x,this.enabled=!0,this._tmpAxis1=(0,ir.c)(),this._tmpAxis2=(0,ir.c)(),this._tmpAngles=(0,un.a)(),this._time=new hu(.3),this._screen=[new hu(.4),new hu(.4)],this._angle1=new RR(.6),this._angle2=new RR(.6),this._axis1=(0,ir.c)(),this._axis2=(0,ir.c)(),this._lastScene=(0,ir.c)()}addMomentumDirectRotation(_,T,x,A,U,ne){if(this.enabled){if(this._time.hasLastValue()){if(this._time.computeDelta(x)<.01)return;let fe=F3(this._lastScene,T,this._tmpAxis2,A,U,ne);this._angle2.update(0),(0,pt.p)(this._tmpAxis2)<1e-5?fe=0:(0,pt.n)(this._axis1,this._tmpAxis2),this._angle1.update(fe),(0,pt.c)(this._lastScene,T)}this._screen[0].update(_[0]),this._screen[1].update(_[1]),this._time.update(x)}}addMomentumPreserveHeading(_,T,x,A,U,ne,fe){if(this.enabled){if(this._time.hasLastValue()){if(this._time.computeDelta(x)<.01)return;V3(this._lastScene,T,this._tmpAxis2,this._tmpAxis1,this._tmpAngles,A,U,ne,fe,!1),(0,pt.p)(this._tmpAxis2)<1e-5?(this._angle1.update(0),this._angle2.update(0)):(this._angle1.update(this._tmpAngles[1]),this._angle2.update(this._tmpAngles[0]),(0,pt.n)(this._axis1,this._tmpAxis1),(0,pt.n)(this._axis2,this._tmpAxis2)),(0,pt.c)(this._lastScene,T)}this._screen[0].update(_[0]),this._screen[1].update(_[1]),this._time.update(x)}}reset(){this._screen[0].reset(),this._screen[1].reset(),this._angle1.reset(),this._angle2.reset(),this._time.reset()}evaluateMomentum(){if(!this.enabled||!this._screen[0].hasFilteredDelta())return null;const _=this._screen[0].filteredDelta,T=this._screen[1].filteredDelta,x=null==_||null==T?null:Math.sqrt(_*_+T*T),A=this._time.filteredDelta,U=null==x||null==A?0:x/A;return Math.abs(U)Math.PI;)A-=2*Math.PI;for(;A<-Math.PI;)A+=2*Math.PI;_=x+A}super.add(_,T)}}class GF extends iE{constructor(_,T,x){super(_,T,x)}value(_){const T=super.value(_);return Math.exp(T)}valueDelta(_,T){const x=super.value(_),A=super.value(_+T)-x;return Math.exp(A)}}class UR extends IR{constructor(_=2.5,T=.01,x=.95,A=12){super(_,T,x,A)}add(_,T){super.add(Math.log(_),T)}createMomentum(_,T,x){return new GF(_,T,x)}}let A2=class extends Fu{constructor(){super(...arguments),this._smoothRotation=new tE(.05),this._rotationAxis=(0,ir.c)(),this._panningPlane=(0,Rn.Ue)(),this._smoothScaling=new tE(.05),this._zoomCenterScreen=(0,li.s1)(),this._zoomMomentumEstimator=new UR,this._rotationMomentumEstimator=new LR,this._panSphericalMomentumEstimator=new HF,this._panPlanarMomentumEstimator=new AR,this._adjustedSphere=(0,oo.c)(),this._tmp3d=(0,ir.c)(),this._tmpScreenPointArray=(0,li.s1)(),this._beginScreenPoint=(0,li.s1)(),this._beginScenePoint=(0,ir.c)(),this._screenPickPoint=(0,li.s1)(),this._mode=fa.Horizontal,this._tmpInteractionDirection=(0,ir.c)(),this._constraintOptions={selection:xn.ALL,interactionType:wi.NONE,interactionFactor:0,interactionStartCamera:new $i.V,interactionDirection:null,tiltMode:qo.TUMBLE}}get _intersectionHelper(){return this.view.sceneIntersectionHelper}begin(d){if(!this.active)return;const _=this.view.navigation.momentumEnabled;this._zoomMomentumEstimator.enabled=_,this._rotationMomentumEstimator.enabled=_,this._panPlanarMomentumEstimator.enabled=_,this._panSphericalMomentumEstimator.enabled=_,this._beginHeading=-za.Q4.normalize((0,xr.Vl)(this.view.camera.heading)),this._beginRadius=d.radius,this._pointerCount=d.pointers.size,this._beginAngle=d.angle,this._smoothRotation.reset(),(0,li.md)(d.center,this._screenPickPoint),(0,ti.c)(this._beginScreenPoint,this._screenPickPoint);const T=(0,En.Iu)(this.view.spatialReference),x=U3(this._intersectionHelper,this.startCamera,this._screenPickPoint,T,L_.Silhouette);(0,Qe.Wi)(x.scenePickPoint)||(this._scenePickPoint=x.scenePickPoint,this._sphere=x.sphere,(0,pt.c)(this._beginScenePoint,this._scenePickPoint),this._mode=P1(this.startCamera,this._screenPickPoint,x.hasGeometryIntersection,T),this._mode===fa.Vertical&&this._preparePlanarPanMode(d),this._constraintOptions.interactionStartCamera.copyFrom(this.startCamera))}update(d){if(!this.active)return;this.currentCamera.copyFrom(this.startCamera);const _=d.pointers.size>1;this._mode===fa.Horizontal?(_&&this._zoomSpherical(d),this._panningSpherical(d),_&&this._rotateSpherical(d)):(_&&this._zoomPlanar(d),this._panningPlanar(d),_&&this._rotatePlanar(d)),this.commitCamera()}end(d){d.pointers.size===this._pointerCount&&this.update(d),this.finishController();const _=this._zoomMomentumEstimator.evaluateMomentum();if(_)return this._mode===fa.Horizontal?new h0({view:this.view,momentum:_,screenCenter:this._zoomCenterScreen,sceneCenter:this._beginScenePoint,radius:this._sphere[3]}):new K_({view:this.view,momentum:_,zoomCenter:this._beginScenePoint});const T=this._rotationMomentumEstimator.evaluateMomentum();if(T)return new d0({view:this.view,momentum:T,center:this._sphere,axis:this._rotationAxis});if(this._mode===fa.Horizontal){const x=this._panSphericalMomentumEstimator.evaluateMomentum();if(x)return new sE({view:this.view,momentum:x})}else{const x=this._panPlanarMomentumEstimator.evaluateMomentum();if(x)return new Ig({view:this.view,momentum:x})}return null}_preparePlanarPanMode(d){const _=(0,pt.o)(this._tmp3d,this.startCamera.viewForward);(0,Rn.Yq)(this._scenePickPoint,_,this._panningPlane);const T=(0,li.s1)(this._screenPickPoint[0],0),x=(0,ir.c)(),A=(0,pt.l)(this.startCamera.eye);this._adjustedSphere[3]=A=KF_ANGLE_THRESHOLD?fa.Horizontal:fa.Vertical,(0,Rn.T5)(this._planeHorizontal,this._planeHorizontal,T),this.startCamera.aboveGround||(0,Rn.tk)(this._planeHorizontal,this._planeHorizontal),this._panMode===fa.Vertical){(0,pt.g)(U,U,ne),(0,pt.b)(this._planeVertical,A,U),(0,pt.n)(this._planeVertical,this._planeVertical),(0,Rn.T5)(this._planeVertical,this._planeVertical,T);const Oe=(0,ir.c)(),we=(0,ir.c)(),Ze=(0,ir.c)();(0,pt.b)(Oe,T,this.currentCamera.eye);const it=(0,pt.l)(Oe);(0,pt.n)(Oe,Oe);const lt=5*Math.max(Math.abs(this.view.camera.position.z),50),dt=this.view._stage.renderView.getMinimalDepthForArea(this.view.voxelWasm,this._beginCenterScreen[0],this._beginCenterScreen[1],this.view.state.camera,80);let Tt=(0,Qe.pC)(dt)?Math.min(dt,lt):lt;Tt=x?Math.min(Tt,it):Tt,(0,pt.c)(Ze,(0,pt.a)(we,this.currentCamera.eye,(0,pt.g)(we,Oe,Tt))),this._planeVertical[3]=-(0,pt.e)(this._planeVertical,Ze),this._computePlanePoints(d.pointers,this._planeVertical,this.startCamera,this._tmpPoints),$P(this._tmpPoints,this._beginCenter)}else this._computePlanePoints(d.pointers,this._planeHorizontal,this.startCamera,this._tmpPoints),$P(this._tmpPoints,this._beginCenter);this._constraintOptions.interactionStartCamera.copyFrom(this.startCamera)}update(d){if(!this.active)return;this.currentCamera.copyFrom(this.startCamera);const _=d.pointers.size>1,T=this._panMode===fa.Horizontal?this._planeHorizontal:this._planeVertical,x=this._beginCenter;if(_){const A=this._beginRadius/d.radius,U=.001875*Math.min(Math.max(d.radius,40),120);this._scalingValueSmooth.gain=U,this._scalingValueSmooth.update(A),ZP(this.currentCamera,x,this._scalingValueSmooth.value,this.view.state.constraints.minimumPoiDistance),this._zoomMomentumEstimator.add(this._scalingValueSmooth.value,.001*d.timestamp),this._constraintOptions.interactionType=wi.ZOOM,this._constraintOptions.interactionFactor=uu(Math.abs(d.radius-this._beginRadius)),_o(this.view,this.currentCamera,this._constraintOptions)}if(this._computePlanePoints(d.pointers,T,this.currentCamera,this._tmpPoints),$P(this._tmpPoints,this._tmpCentroid3d),(0,li.md)(d.center,this._tmpCentroid2d),B3(this.currentCamera,x,this._tmpCentroid3d),this._panMomentumEstimator.add(this._tmpCentroid2d,this._tmpCentroid3d,.001*d.timestamp),this._constraintOptions.interactionType=wi.PAN,this._constraintOptions.interactionFactor=uu((0,ti.d)(this._beginCenterScreen,this._tmpCentroid2d)),_o(this.view,this.currentCamera,this._constraintOptions),_){const A=this._planeHorizontal,U=x,ne=this._rotationValueSmooth.value,fe=ne+GP(d.angle-ne),Oe=.00125*Math.min(Math.max(d.radius,40),120);this._rotationValueSmooth.gain=Oe,this._rotationValueSmooth.update(fe);const we=this._rotationValueSmooth.value-this._beginAngle;this._rotationMomentumEstimator.add(we,.001*d.timestamp),Bh(this.currentCamera,U,Eg(A,we)),this._constraintOptions.interactionType=wi.TUMBLE,this._constraintOptions.interactionFactor=uu(Math.abs(d.radius*we)),_o(this.view,this.currentCamera,this._constraintOptions)}this.commitCamera()}end(d){d.pointers.size===this._pointerCount&&this.update(d),this.finishController();const _=this._zoomMomentumEstimator.evaluateMomentum();if(_)return new K_({view:this.view,momentum:_,zoomCenter:this._beginCenter});const T=this._rotationMomentumEstimator.evaluateMomentum();if(T)return new d0({view:this.view,momentum:T,center:this._beginCenter,axis:(0,Rn.mJ)(this._planeHorizontal)});const x=this._panMomentumEstimator.evaluateMomentum();return x?new Ig({view:this.view,momentum:x}):null}_computePlanePoints(d,_,T,x){x.length=d.size;const A=this._tmp2d;let U=0;return d.forEach(ne=>{A[0]=ne.x,A[1]=ne.y,void 0===x[U]&&(x[U]=(0,ir.c)()),KP(_,T,A,x[U]),U+=1}),x}get _intersectionHelper(){return this.view.sceneIntersectionHelper}};R2=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.controllers.local.PinchAndPanController")],R2);class jR extends nl.a{constructor(_,T,x){super(!0),this._view=_,this.pointerAction=T,this._lastEndTimestamp=0,this._lastTimestamp=0,this.registerIncoming("drag",x,A=>this._handleDrag(A))}_handleDrag(_){if("mouse"===_.data.pointerType&&!QP(_.data,this.pointerAction))return;const A=this._momentum&&this._momentum.active&&_.timestamp-this._lastEndTimestamp<40;switch(_.data.action){case"start":case"update":if(A)break;this._controller&&this._controller.active?_.data.timestamp-this._lastTimestamp>2&&(this._controller.update(_.data),this._lastTimestamp=_.timestamp):this._startController(_);break;case"end":case"removed":this._endController(_,!0);break;case"added":this._endController(_,!1),this._startController(_)}_.stopPropagation()}_endController(_,T){if(this._controller&&this._controller.active){this._lastEndTimestamp=_.timestamp;const x=this._controller.end(_.data);T&&x&&(this._momentum=x,this._view.state.switchCameraController(this._momentum))}this._controller=null}_startController(_){this._controller=this._createController(),this._view.state.switchCameraController(this._controller),this._controller.begin(_.data),this._lastTimestamp=_.timestamp}_createController(){return this._view.state.isGlobal?new A2({view:this._view}):new R2({view:this._view})}}class $F extends nl.a{constructor(_,T){super(!0),this.view=_,this.registerIncoming("pointer-down",T,()=>this.view.state.stopActiveCameraController())}}class FR extends nl.a{constructor(_,T){super(!0),this.key=_,this.registerIncoming("key-down",T,x=>this._handleKeyDown(x))}_handleKeyDown(_){_.data.key===this.key&&(this.activate(),_.stopPropagation())}}class YF extends FR{constructor(_,T,x){super(T,x),this.view=_}activate(){this.view.goTo({heading:0}).catch(()=>{})}}class XF extends FR{constructor(_,T,x){super(T,x),this.view=_}activate(){this.view.goTo({tilt:0}).catch(()=>{})}}class kF extends nl.a{constructor(_,T=!1){super(!0),this._view=_,this._invert=T,this.registerIncoming("vertical-two-finger-drag",x=>this._handleTwoFinger(x))}_handleTwoFinger(_){const x=(0,li.s1)(0,_.data.delta*(this._invert?-1:1));switch(_.data.action){case"begin":this._cameraController?.end(),this._cameraController=new Rg({view:this._view,pivot:Xl.CENTER}),this._view.state.switchCameraController(this._cameraController),this._cameraController.begin(x);break;case"update":this._cameraController?.update(x);break;case"end":this._cameraController?.end(),this._cameraController=null}}}var JF=v(25441);function NR(d){const _=d.native;return _?{buttons:_.buttons.map(T=>T.pressed?T.value?T.value:1:0),axes:_.axes.map(T=>function eN(d,_){const T=Math.abs(d);return T<_?0:Math.sign(d)*(T-_)/(1-_)}(T,d.axisThreshold))}:{buttons:[],axes:[]}}class tN{constructor(_,T){this._element=_,this._input=T,this._hasEventListeners=!1,this._onConnectGamepad=U=>{this._connectGamepad(U.gamepad)},this._onDisconnectGamepad=U=>{const ne=U.gamepad,fe=ne.index,Oe=this._inputDevices[fe];Oe&&(this._emitGamepadEvent(ne,NR(Oe),!1),this._inputDevices.splice(fe,1),this._latestUpdate.splice(fe,1),this._input.gamepad.devices.remove(Oe),this.ensurePollingState())},this._frameTask=null,this._latestUpdate=new Array,this._inputDevices=new Array,this._callback=null;const x="getGamepads"in window.navigator,A=window.isSecureContext;this.supported=x&&A,this.supported&&(this._forEachGamepad(U=>this._connectGamepad(U)),window.addEventListener("gamepadconnected",this._onConnectGamepad),window.addEventListener("gamepaddisconnected",this._onDisconnectGamepad),this.ensurePollingState())}destroy(){this.hasEventListeners=!1,this.supported&&(window.removeEventListener("gamepadconnected",this._onConnectGamepad),window.removeEventListener("gamepaddisconnected",this._onDisconnectGamepad))}set hasEventListeners(_){this._hasEventListeners!==_&&(this._hasEventListeners=_,this.ensurePollingState())}get _eventsEnabled(){return this.supported&&this._inputDevices.length>0&&this._hasEventListeners}set onEvent(_){this._callback=_}_connectGamepad(_){const T=new ZM(_);"unknown"!==T.deviceType&&(this._inputDevices[_.index]=T,this._input.gamepad.devices.add(T)),this.ensurePollingState()}ensurePollingState(){this._eventsEnabled?this._startPolling():this._stopPolling()}_startPolling(){null==this._frameTask&&(this._frameTask=(0,gd.A)({update:()=>this._readGamepadState()}))}_stopPolling(){null!=this._frameTask&&(this._frameTask.remove(),this._frameTask=null,this._latestUpdate=new Array)}_readGamepadState(){const _=document.hasFocus(),T=this._element.contains(document.activeElement),x="document"===this._input.gamepad.enabledFocusMode&&!_||"view"===this._input.gamepad.enabledFocusMode&&!T;this._forEachGamepad(A=>{const U=this._inputDevices[A.index];if(!U)return;const ne=this._latestUpdate[A.index],fe=NR(U),Oe=x||function qF(d){for(let _=0;_{class d{constructor(T,x){this._input=x,this._active={},this._activePointerCaptures=new Set,this._keyDownState=new Set,this._eventId=1,this._browserTouchPanningEnabled=!1,this._element=T,T.getAttribute("tabindex")||T.setAttribute("tabindex","0"),this._eventHandlers={"key-down":this._handleKey,"key-up":this._handleKey,"pointer-down":this._handlePointer,"pointer-move":this._handlePointerPreventDefault,"pointer-up":this._handlePointerPreventDefault,"pointer-enter":this._handlePointer,"pointer-leave":this._handlePointer,"pointer-cancel":this._handlePointer,"mouse-wheel":this._handleMouseWheel,"pointer-capture-lost":this._handlePointerCaptureLost},this._updateTouchAction(),this._element.addEventListener("keydown",this._preventAltKeyDefault),this._gamepadSource=new tN(T,this._input),this._gamepadSource.onEvent=A=>this._callback("gamepad",A)}destroy(){this._callback=null,this.activeEvents=null,this._activePointerCaptures.forEach(T=>{this._releasePointerCaptureSafe(T)}),this._gamepadSource=(0,Qe.SC)(this._gamepadSource),this._activePointerCaptures=null,this._removeTouchAction(),this._element.removeEventListener("keydown",this._preventAltKeyDefault)}get browserTouchPanningEnabled(){return this._browserTouchPanningEnabled}set browserTouchPanningEnabled(T){this._browserTouchPanningEnabled=T,this._updateTouchAction(),this._updateTouchEventHandling()}set onEventReceived(T){this._callback=T}set activeEvents(T){for(const x in this._active)T&&T.has(x)||(this._element.removeEventListener(w2[x],this._active[x]),delete this._active[x]);T&&T.forEach(x=>{if(!this._active[x]&&w2[x]){const A=(this._eventHandlers[x]||this._handleDefault).bind(this,x);this._element.addEventListener(w2[x],A),this._active[x]=A}}),this._gamepadSource.hasEventListeners=T&&T.has("gamepad")}setPointerCapture(T,x){x?(this._element.setPointerCapture(T.pointerId),this._activePointerCaptures.add(T.pointerId)):(this._releasePointerCaptureSafe(T.pointerId),this._activePointerCaptures.delete(T.pointerId))}_updateTouchAction(){this._element.classList.remove(this._browserTouchPanningEnabled?Z__touchNone:Z__touchPan),this._element.classList.add(this._browserTouchPanningEnabled?Z__touchPan:Z__touchNone)}_updateTouchEventHandling(){this._browserTouchPanningEnabled?this._element.addEventListener("touchmove",this._preventMultiTouchPanning):this._element.removeEventListener("touchmove",this._preventMultiTouchPanning)}_removeTouchAction(){this._element.classList.remove(Z__touchNone),this._element.classList.remove(Z__touchPan),this._element.removeEventListener("touchmove",this._preventMultiTouchPanning)}_releasePointerCaptureSafe(T){try{if(this._element.hasPointerCapture&&!this._element.hasPointerCapture(T))return;this._element.releasePointerCapture(T)}catch{}}_updateNormalizedPointerLikeEvent(T,x){const A=(0,$l.Eu)(this._element,T);return d.test.disableSubpixelCoordinates&&(A.x=Math.round(A.x),A.y=Math.round(A.y)),x.x=A.x,x.y=A.y,x}_handleKey(T,x){const A=(0,JF.kK)(x);A&&"key-up"===T&&this._keyDownState.delete(A);const U={native:x,key:A,repeat:A&&this._keyDownState.has(A)};A&&"key-down"===T&&this._keyDownState.add(U.key),this._callback(T,U)}_handlePointer(T,x){const A=this._updateNormalizedPointerLikeEvent(x,{native:x,x:0,y:0,pointerType:x.pointerType,button:x.button,buttons:x.buttons,eventId:this._eventId++});this._callback(T,A)}_handlePointerPreventDefault(T,x){const A=this._updateNormalizedPointerLikeEvent(x,{native:x,x:0,y:0,pointerType:x.pointerType,button:x.button,buttons:x.buttons,eventId:this._eventId++});x.preventDefault(),this._callback(T,A)}_handleMouseWheel(T,x){let A=x.deltaY;switch(x.deltaMode){case 0:(WR||VR)&&(A=A/document.documentElement.clientHeight*600);break;case 1:A*=30;break;case 2:A*=900}WR||VR?A*=.7:rN||iN?A*=.6:sN&&(A*=1.375);const ne=Math.abs(A);ne>100&&(A=A/ne*200/(1+Math.exp(-.02*(ne-100))));const fe=this._updateNormalizedPointerLikeEvent(x,{native:x,x:0,y:0,deltaY:A});this._callback(T,fe)}_handlePointerCaptureLost(T,x){this._activePointerCaptures.delete(x.pointerId),this._handleDefault(T,x)}_handleDefault(T,x){const A={native:x};x.preventDefault(),this._callback(T,A)}_preventAltKeyDefault(T){"Alt"===T.key&&T.preventDefault()}_preventMultiTouchPanning(T){T.touches.length>1&&T.preventDefault()}}return d.test={disableSubpixelCoordinates:!1},d})();const w2={"key-down":"keydown","key-up":"keyup","pointer-down":"pointerdown","pointer-up":"pointerup","pointer-move":"pointermove","mouse-wheel":"wheel","pointer-capture-got":"gotpointercapture","pointer-capture-lost":"lostpointercapture","context-menu":"contextmenu","pointer-enter":"pointerenter","pointer-leave":"pointerleave","pointer-cancel":"pointercancel",focus:"focus",blur:"blur"};class oN extends nl.a{constructor(){super(!0),this.registerIncoming("context-menu",_=>{_.data.native.preventDefault()})}}function zR(d,_){return Math.abs(_.x-d.x)+Math.abs(_.y-d.y)}function Lg(d){const{native:_}=d,{pointerId:T,button:x,pointerType:A}=_;return"mouse"===A?`${T}:${x}`:`${A}`}class cN extends nl.a{constructor(_){super(!1),this._navigationTouch=_,this._startStateModifiers=new Set,this._activePointerMap=new Map,this._isDragging=!1,this._isCurrentDragSuppressed=!1,this._drag=this.registerOutgoing("drag"),this.registerIncoming("pointer-drag",this._handlePointerDrag.bind(this)),this.registerIncoming("pointer-up",this._handlePointerUpAndPointerLost.bind(this)),this.registerIncoming("pointer-capture-lost",this._handlePointerUpAndPointerLost.bind(this)),this.registerIncoming("pointer-cancel",this._handlePointerUpAndPointerLost.bind(this))}_createPayload(_,T,x,A){return{action:_,pointerType:this._pointerType,button:this._mouseButton,buttons:T.buttons,timestamp:A,pointers:uN(this._activePointerMap),pointer:T,angle:x.angle,radius:x.radius,center:x.center}}_addPointer(_){const T=_.native.pointerId,x=nE(this._activePointerMap).angle,A={event:_,initialAngle:0,lastAngle:0};this._activePointerMap.set(T,A);const U=oE(A,HR(this._activePointerMap));A.initialAngle=U,A.lastAngle=U,this._updatePointerAngles(x)}_updatePointer(_){if(_&&null==_.x&&null==_.y)return;const x=this._activePointerMap.get(_.native.pointerId);x?x.event=_:this._addPointer(_)}_removePointer(_){const T=nE(this._activePointerMap).angle;this._activePointerMap.delete(_),this._updatePointerAngles(T)}_updatePointerAngles(_){const T=nE(this._activePointerMap);this._activePointerMap.forEach(x=>{x.initialAngle=oE(x,T)-_,x.lastAngle=oE(x,T)-_})}_emitEvent(_,T,x){const A=nE(this._activePointerMap);this._drag.emit(this._createPayload(_,T,A,x),void 0,this._startStateModifiers)}_handlePointerUpAndPointerLost(_){const T=_.data.native.pointerId,x=(0,mi.HA)(_.timestamp);this._activePointerMap.get(T)&&(1===this._activePointerMap.size?(this._updatePointer(_.data),!this._isCurrentDragSuppressed&&this._emitEvent("end",_.data,x),this._isDragging=!1,this._isCurrentDragSuppressed=!1,this._removePointer(T)):(this._removePointer(T),this._emitEvent("removed",_.data,(0,mi.HA)(_.timestamp))))}_handlePointerDrag(_){const T=_.data,x=T.currentEvent,A=(0,mi.HA)(_.timestamp);switch(T.action){case"start":case"update":this._isDragging?this._activePointerMap.has(x.native.pointerId)?(this._updatePointer(x),!this._isCurrentDragSuppressed&&this._emitEvent("update",x,A)):(this._addPointer(x),this._emitEvent("added",x,A),this._isCurrentDragSuppressed=this._isSuppressed):(this._updatePointer(x),this._pointerType=_.data.startEvent.pointerType,this._mouseButton=_.data.startEvent.button,this._startStateModifiers=_.modifiers,this._isDragging=!0,this._isCurrentDragSuppressed=this._isSuppressed,!this._isCurrentDragSuppressed&&this._emitEvent("start",x,A))}}get _isSuppressed(){return!!this._navigationTouch&&!this._navigationTouch.browserTouchPanEnabled&&"touch"===this._pointerType&&1===this._activePointerMap.size}}function HR(d){const _=[];return d.forEach(T=>{_.push((0,li.vW)(T.event.x,T.event.y))}),function lN(d,_){if(_?(_.radius=0,_.center.x=0,_.center.y=0):_={radius:0,center:(0,li.vW)()},0===d.length)return _;if(1===d.length)return _.center.x=d[0].x,_.center.y=d[0].y,_;if(2===d.length){const[Bt,Zt]=d,[nr,Jt]=[Zt.x-Bt.x,Zt.y-Bt.y];return _.radius=Math.sqrt(nr*nr+Jt*Jt)/2,_.center.x=(Bt.x+Zt.x)/2,_.center.y=(Bt.y+Zt.y)/2,_}let T=0,x=0;for(let Bt=0;BtBt.x-T),U=d.map(Bt=>Bt.y-x);let ne=0,fe=0,Oe=0,we=0,Ze=0,it=0,lt=0;for(let Bt=0;Bt{let A=oE(x,_),U=A-x.lastAngle;for(;U>Math.PI;)U-=2*Math.PI;for(;U<-Math.PI;)U+=2*Math.PI;A=x.lastAngle+U,x.lastAngle=A,T+=A-x.initialAngle}),T/=d.size||1,{angle:T,radius:_.radius,center:_.center}}function uN(d){const _=new Map;return d.forEach((T,x)=>_.set(x,T.event)),_}function oE(d,_){const T=d.event;return Math.atan2(T.y-_.center.y,T.x-_.center.x)}var GR;!function(d){d[d.Left=0]="Left",d[d.Middle=1]="Middle",d[d.Right=2]="Right",d[d.Back=3]="Back",d[d.Forward=4]="Forward",d[d.Undefined=-1]="Undefined"}(GR||(GR={}));var I2=v(84244);class dN extends nl.a{constructor(_=250,T=10,x=350,A=35,U=I2.m){super(!1),this._maximumDoubleClickDelay=_,this._maximumDoubleClickDistance=T,this._maximumDoubleTouchDelay=x,this._maximumDoubleTouchDistance=A,this._clock=U,this._pointerState=new Map,this._click=this.registerOutgoing("click"),this._doubleClick=this.registerOutgoing("double-click"),this.registerIncoming("immediate-click",this._handleImmediateClick.bind(this)),this.registerIncoming("pointer-down",this._handlePointerDown.bind(this))}onUninstall(){this._pointerState.forEach(_=>_.doubleClickTimer=(0,Qe.hw)(_.doubleClickTimer))}get hasPendingInputs(){return(0,El.oE)(this._pointerState,_=>null!=_.doubleClickTimer)}_clearDoubleClickTimer(_,T){const x=this._pointerState.get(_);x&&(x.doubleClickTimer=(0,Qe.hw)(x.doubleClickTimer),T&&this._click.emit(x.event.data,void 0,x.event.modifiers),this._pointerState.delete(_),this.refreshHasPendingInputs())}_doubleClickTimeoutExceeded(_){const T=this._pointerState.get(_);1===T.pointerDownCount&&this._click.emit(T.event.data,void 0,T.event.modifiers),T.doubleClickTimer=null,this._pointerState.delete(_),this.refreshHasPendingInputs()}_getPointerId(_){const{pointerId:T,pointerType:x,button:A}=_.native;return"mouse"===x?`${T}:${A}`:`${x}`}_handleImmediateClick(_){const T=_.data,{pointerType:x}=T.native,A=this._getPointerId(T);if(!this._pointerState.has(A))return void this._startClick(_);const U=this._pointerState.get(A),{data:ne,modifiers:fe}=U.event,Oe="touch"===x?this._maximumDoubleTouchDistance:this._maximumDoubleClickDistance;zR(ne,T)>Oe?(this._clearDoubleClickTimer(A,!0),this._startClick(_)):(this._clearDoubleClickTimer(A,!1),2===U.pointerDownCount&&this._doubleClick.emit(ne,void 0,fe))}_handlePointerDown(_){const T=Lg(_.data),x=this._pointerState.get(T);x&&(x.pointerDownCount+=1)}_startClick(_){const{data:T}=_,{native:{pointerType:x}}=T,A=Lg(T),ne=this._clock.setTimeout(()=>this._doubleClickTimeoutExceeded(A),"touch"===x?this._maximumDoubleTouchDelay:this._maximumDoubleClickDelay);this._pointerState.set(A,{event:_,doubleClickTimer:ne,pointerDownCount:1}),this.refreshHasPendingInputs()}}class hN extends nl.a{constructor(_=250,T=10,x=350,A=35,U=I2.m){super(!1),this._maximumDoubleClickDelay=_,this._maximumDoubleClickDistance=T,this._maximumDoubleTouchDelay=x,this._maximumDoubleTouchDistance=A,this._clock=U,this._pointerState=new Map,this._immediateDoubleClick=this.registerOutgoing("immediate-double-click"),this.registerIncoming("pointer-down",this._handlePointerDown.bind(this)),this.registerIncoming("pointer-up",this._handlePointerUp.bind(this))}onUninstall(){this._pointerState.forEach(_=>{_.immediateDoubleClick&&_.immediateDoubleClick.timeoutHandle.remove()}),super.onUninstall()}_handlePointerDown(_){const T=_.data,x=Lg(T);this._pointerState.has(x)||(this._pointerState.set(x,{downButton:T.native.button,immediateDoubleClick:null}),this.startCapturingPointer(T.native))}_handlePointerUp(_){const T=_.data,x=Lg(T),A=this._pointerState.get(x);if(A&&A.downButton===T.native.button){const U=A.immediateDoubleClick;if(U){U.timeoutHandle.remove();const ne="touch"===_.data.native.pointerType?this._maximumDoubleTouchDistance:this._maximumDoubleClickDistance;zR(U,_.data)>ne?this._startImmediateDoubleClick(_,A):(this._immediateDoubleClick.emit(_.data,void 0,U.modifiers),this._removeState(T))}else this._startImmediateDoubleClick(_,A)}}_startImmediateDoubleClick(_,T){T.immediateDoubleClick={x:_.data.x,y:_.data.y,modifiers:_.modifiers,timeoutHandle:this._clock.setTimeout(()=>this._removeState(_.data),"touch"===_.data.native.pointerType?this._maximumDoubleTouchDelay:this._maximumDoubleClickDelay)}}_removeState(_){const T=Lg(_);this._pointerState.delete(T),this.stopCapturingPointer(_.native),this.refreshHasPendingInputs()}}class pN extends nl.a{constructor(_=300,T=1.5,x=6,A=6,U=500,ne=I2.m){super(!1),this._maximumClickDelay=_,this._movementUntilMouseDrag=T,this._movementUntilPenDrag=x,this._movementUntilTouchDrag=A,this._holdDelay=U,this._clock=ne,this._pointerState=new Map,this._pointerDrag=this.registerOutgoing("pointer-drag"),this._immediateClick=this.registerOutgoing("immediate-click"),this._pointerHold=this.registerOutgoing("hold"),this.registerIncoming("pointer-down",this._handlePointerDown.bind(this)),this.registerIncoming("pointer-up",fe=>{this._handlePointerLoss(fe,"pointer-up")}),this.registerIncoming("pointer-capture-lost",fe=>{this._handlePointerLoss(fe,"pointer-capture-lost")}),this.registerIncoming("pointer-cancel",fe=>{this._handlePointerLoss(fe,"pointer-cancel")}),this._moveHandle=this.registerIncoming("pointer-move",this._handlePointerMove.bind(this)),this._moveHandle.pause()}onUninstall(){this._pointerState.forEach(_=>{_.holdTimeout=(0,Qe.hw)(_.holdTimeout)}),super.onUninstall()}_handlePointerDown(_){const T=_.data,x=T.native.pointerId;let A=null;0===this._pointerState.size&&(A=this._clock.setTimeout(()=>{const ne=this._pointerState.get(x);ne&&(ne.isDragging||(this._pointerHold.emit(ne.previousEvent,void 0,_.modifiers),ne.holdEmitted=!0),ne.holdTimeout=null)},this._holdDelay)),this._pointerState.set(x,{startEvent:T,previousEvent:T,startTimestamp:_.timestamp,isDragging:!1,downButton:T.native.button,holdTimeout:A,modifiers:new Set}),this.startCapturingPointer(T.native),this._moveHandle.resume(),this._pointerState.size>1&&this._startDragging(_)}_createPointerDragData(_,T,x){return{action:_,startEvent:T.startEvent,previousEvent:T.previousEvent,currentEvent:x}}_handlePointerMove(_){const T=_.data,A=this._pointerState.get(T.native.pointerId);A&&(A.isDragging?this._pointerDrag.emit(this._createPointerDragData("update",A,T),void 0,A.modifiers):function aN(d,_){const T=_.x-d.x,x=_.y-d.y;return Math.sqrt(T*T+x*x)}(T,A.startEvent)>this._getDragThreshold(T.native.pointerType)&&this._startDragging(_),A.previousEvent=T)}_getDragThreshold(_){switch(_){case"touch":return this._movementUntilTouchDrag;case"pen":return this._movementUntilPenDrag;default:return this._movementUntilMouseDrag}}_startDragging(_){const T=_.data,x=T.native.pointerId;this._pointerState.forEach(A=>{null!=A.holdTimeout&&(A.holdTimeout.remove(),A.holdTimeout=null),A.isDragging||(A.modifiers=_.modifiers,A.isDragging=!0,x===A.startEvent.native.pointerId?this._pointerDrag.emit(this._createPointerDragData("start",A,T)):this._pointerDrag.emit(this._createPointerDragData("start",A,A.previousEvent),_.timestamp))})}_handlePointerLoss(_,T){const x=_.data,A=x.native.pointerId,U=this._pointerState.get(A);U&&(null!=U.holdTimeout&&(U.holdTimeout.remove(),U.holdTimeout=null),U.isDragging?this._pointerDrag.emit(this._createPointerDragData("end",U,"pointer-up"===T?x:U.previousEvent),void 0,U.modifiers):"pointer-up"===T&&U.downButton===x.native.button&&_.timestamp-U.startTimestamp<=this._maximumClickDelay&&!U.holdEmitted&&this._immediateClick.emit(x),this._pointerState.delete(A),this.stopCapturingPointer(x.native),0===this._pointerState.size&&this._moveHandle.pause())}}class _N{constructor(_){this._callbacks=_,this._currentCount=0,this._callbacks.condition||(this._callbacks.condition=()=>!0)}handle(_){const T=_.data,x=T.pointers.size;switch(T.action){case"start":this._currentCount=x,this._emitStart(_);break;case"added":this._emitEnd(this._previousEvent),this._currentCount=x,this._emitStart(_);break;case"update":this._emitUpdate(_);break;case"removed":this._startEvent&&this._emitEnd(this._previousEvent),this._currentCount=x,this._emitStart(_);break;case"end":this._emitEnd(_),this._currentCount=0}this._previousEvent=_}_emitStart(_){this._startEvent=_,this._callbacks.condition?.(this._currentCount,_)&&this._callbacks.start(this._currentCount,_,this._startEvent)}_emitUpdate(_){this._callbacks.condition?.(this._currentCount,_)&&this._callbacks.update(this._currentCount,_,this._startEvent)}_emitEnd(_){this._callbacks.condition?.(this._currentCount,_)&&this._callbacks.end(this._currentCount,_,this._startEvent),this._startEvent=null}}class fN extends nl.a{constructor(_=20,T=40){super(!1),this._threshold=_,this._maxDelta=T,this._state="ready",this._emittedArtificalEnd2=!1,this._vertical=this.registerOutgoing("vertical-two-finger-drag"),this._artificalDrag=this.registerOutgoing("drag"),this._dragEventSeparator=new _N({start:(x,A)=>this._observeStart(x,A),update:(x,A,U)=>this._observeUpdate(x,A,U),end:(x,A)=>this._observeEnd(A)}),this.registerIncoming("drag",x=>this._dragEventSeparator.handle(x))}get failed(){return"failed"===this._state}_observeStart(_,T){1===_&&this._emittedArtificalEnd2&&(this._emittedArtificalEnd2=!1,this._artificalDrag.emit({action:"start",button:T.data.button,buttons:T.data.buttons,pointerType:T.data.pointerType,timestamp:T.data.timestamp,pointers:T.data.pointers,pointer:T.data.pointer,angle:T.data.angle,radius:T.data.radius,center:T.data.center}),T.stopPropagation()),this._state=2===_?"ready":"failed"}_observeUpdate(_,T,x){if("failed"!==this._state&&2===_)return"active"===this._state?(this._vertical.emit({delta:T.data.center.y-this._thresholdReachedCenter.y,action:"update"}),void T.stopPropagation()):void(this._checkMovementWithinLimits(T.data,x.data)?this._checkVerticalThresholdReached(T.data,x.data)&&(this._state="active",this._emittedArtificalEnd2=!0,this._thresholdReachedCenter=T.data.center,this._artificalDrag.emit({action:"end",button:T.data.button,buttons:T.data.buttons,pointerType:T.data.pointerType,timestamp:T.data.timestamp,pointers:T.data.pointers,pointer:T.data.pointer,angle:T.data.angle,radius:T.data.radius,center:T.data.center}),this._vertical.emit({delta:T.data.center.y-this._thresholdReachedCenter.y,action:"begin"}),T.stopPropagation()):this._state="failed")}_observeEnd(_){"active"===this._state&&(this._vertical.emit({delta:_.data.center.y-this._thresholdReachedCenter.y,action:"end"}),this._state="ready",_.stopPropagation())}_checkMovementWithinLimits(_,T){let x=-1/0,A=1/0,U=-1/0,ne=1/0;for(const{x:mt,y:Mt}of T.pointers.values())x=Math.max(x,mt),A=Math.min(A,mt),U=Math.max(U,Mt),ne=Math.min(ne,Mt);let fe=-1/0,Oe=1/0,we=-1/0,Ze=1/0;for(const{x:mt,y:Mt}of _.pointers.values())fe=Math.max(fe,mt),Oe=Math.min(Oe,mt),we=Math.max(we,Mt),Ze=Math.min(Ze,Mt);const it=x-A,lt=U-ne,dt=fe-Oe,Tt=we-Ze;return Math.abs(_.center.x-T.center.x){const ne=T.pointers.get(U);x=Math.min(x,Math.abs(A.y-ne.y))}),x>=this._threshold}}let pu=class extends Ns.Z{constructor(){super(...arguments),this._handles=new Ji.Z}destroy(){this._handles&&(this._handles.removeAll(),this._handles=null),this.disconnect()}get primaryDragAction(){return this._get("primaryDragAction")}set primaryDragAction(d){"pan"!==d&&"rotate"!==d||d===this._get("primaryDragAction")||(this._set("primaryDragAction",d),this._updateMode())}get mode(){return this._get("mode")}set mode(d){"default"!==d&&"pro"!==d||d===this._get("mode")||(this._set("mode",d),this._updateMode())}get hasPendingInputs(){return this._inputManager?.hasPendingInputs}get latestPointerType(){return this._inputManager?.latestPointerType}get latestPointerLocation(){return this._inputManager?.latestPointerLocation}get multiTouchActive(){return this._inputManager?.multiTouchActive??!1}disconnect(){this.view.viewEvents.disconnect(),this._inputManager=(0,Qe.SC)(this._inputManager)}connect(){const d=this.view;this._source=new nN(this.view.surface,d.input);const _=[new hN,new pN,new dN,new cN(this.view.navigation),new fN],T=new Km.$({eventSource:this._source,recognizers:_});this._inputManager=T,T.installHandlers("prevent-context-menu",[new oN],Km.f.INTERNAL),this._modeDragPan=new jR(d,"primary"),this._modeDragRotate=new O2(d,"secondary",Xl.CENTER),this._modeDragZoom=new SF(d,"tertiary");T.installHandlers("navigation",[new $F(d),new Cj(d),new jF(d),new FF(d,{left:"ArrowLeft",right:"ArrowRight",forward:"ArrowUp",backward:"ArrowDown",up:"u",down:"j",headingLeft:"a",headingRight:"d",tiltUp:"w",tiltDown:"s",zoomIn:"+",zoomOut:"-"}),new NF(d),new XF(d,"p"),new YF(d,"n"),new O2(d,"primary",Xl.EYE,["b"]),new O2(d,"secondary",Xl.CENTER,["b"]),new jR(d,"tertiary",["b"]),this._modeDragRotate,this._modeDragZoom,this._modeDragPan,new kF(d)],Km.f.INTERNAL),this.view.viewEvents.connect(T),this._updateMode(),this._handles.add((0,Ht.YP)(()=>this.view.navigation?.browserTouchPanEnabled,A=>{this._source.browserTouchPanningEnabled=!A},Ht.nn))}_updateMode(){const _=this.primaryDragAction,T=L2.get(this.mode).get(_);this._modeDragPan&&(this._modeDragPan.pointerAction=T.pan),this._modeDragRotate&&(this._modeDragRotate.pointerAction=T.rotate),this._modeDragZoom&&(this._modeDragZoom.pointerAction=T.zoom)}get test(){return{inputManager:this._inputManager,modeDragPan:this._modeDragPan,modeDragRotate:this._modeDragRotate,modeDragZoom:this._modeDragZoom}}};(0,Ve._)([(0,ke.Cb)()],pu.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({value:"pan"})],pu.prototype,"primaryDragAction",null),(0,Ve._)([(0,ke.Cb)({value:"default"})],pu.prototype,"mode",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],pu.prototype,"hasPendingInputs",null),(0,Ve._)([(0,ke.Cb)()],pu.prototype,"latestPointerType",null),(0,Ve._)([(0,ke.Cb)()],pu.prototype,"latestPointerLocation",null),(0,Ve._)([(0,ke.Cb)()],pu.prototype,"multiTouchActive",null),(0,Ve._)([(0,ke.Cb)()],pu.prototype,"_inputManager",void 0),pu=(0,Ve._)([(0,Wr.j)("esri.views.3d.input.SceneInputManager")],pu);const L2=new Map,U2=new Map,B2=new Map;U2.set("pan",{pan:"primary",rotate:"secondary",zoom:"tertiary"}),U2.set("rotate",{pan:"secondary",rotate:"primary",zoom:"tertiary"}),B2.set("pan",{pan:"primary",rotate:"tertiary",zoom:"secondary"}),B2.set("rotate",{pan:"tertiary",rotate:"primary",zoom:"secondary"}),L2.set("default",U2),L2.set("pro",B2);const mN=pu;var wo=v(77029);let Tc,$_,j2=!1,F2=!1,N2=!1,W2=!1,Bg=null;function KR(){Bg&&(Bg(),Bg=null)}function ZR(d,_,T,x,A){KR();const U=Tc.height,ne=$_;ne.beginPath(),ne.lineWidth=1,ne.strokeStyle=A,ne.moveTo(d,U-T),ne.lineTo(_,U-T),ne.stroke(),ne.lineTo(_,U-x),ne.stroke(),ne.lineTo(_,U-T),ne.stroke(),ne.lineTo(d,U-T),ne.stroke(),ne.lineTo(d,U-T),ne.stroke(),ne.closePath()}function EN(d,_){j2&&(_&&N2||!_&&W2)&&ZR(d.aabr[0],d.aabr[2],d.aabr[1],d.aabr[3],_?"green":"red")}var Go=v(79721),aE=v(17962),$R=v(80805);const Nu=(0,ir.c)(),Y_=(0,Tn.c)(),jg=(0,Tn.c)(),V2=(0,ir.c)(),bN=(0,gn.c)(),CN=(0,oo.c)(),z2=(0,yc.Ue)(),TN=(0,ir.c)(),MN=(0,Bs.Ue)();class PN{constructor(){this.aabr=(0,Bs.Ue)(),this.distance=0,this.culled=!1,this.visible=!1}}class ON{constructor(_,T,x={}){this.graphics3DGraphic=_,this.slicePlaneEnabled=T,this.info=x}}class xN{constructor(){this.active=new Map,this.visible=new Map}clear(){this.active.clear(),this.visible.clear()}}class DN{}class SN{constructor(){this.sortArray=new wo.Z({allocator:_=>_||new DN})}}var Jl;!function(d){d[d.Idle=0]="Idle",d[d.Process=1]="Process",d[d.Sort=2]="Sort",d[d.Deconflict=3]="Deconflict",d[d.NumStates=4]="NumStates"}(Jl||(Jl={}));class YR{constructor(){this.camera=new $i.V,this.slicePlane=(0,nu.a)(),this.slicePlaneEnabled=!1}copyFrom(_){this.camera.copyFrom(_.camera),(0,nu.c)(_.slicePlane,this.slicePlane),this.slicePlaneEnabled=_.slicePlaneEnabled}}let X_=class extends Ns.Z{constructor(d){super(d),this._dirty=!1,this._runningViewState=new YR,this._state=Jl.Idle,this._graphics=new xN,this._iterators=new SN,this._accBinsNumX=15,this._accBinsNumY=20,this._accBinsSizeX=0,this._accBinsSizeY=0,this._accBins=null,this.accNumTests=0}get dirty(){return this._dirty}get state(){return this._state}destroy(){this._graphics.clear(),this._iterators=null}setDirty(){!this._dirty&&this._graphics.active.size>0&&(this._dirty=!0,this.notifyChange("updating"))}get updating(){return this._state!==Jl.Idle||this._dirty}get updatingProgress(){if(!this.updating)return 1;const d=this._state/Jl.NumStates;return this._dirty?.5*d:d}get running(){return this.view.ready&&null!=this.view.state&&this.updating}runTask(d){switch(this._state){case Jl.Idle:this._startUpdate(),d.madeProgress();case Jl.Process:if(this._state=Jl.Process,!this._processActiveGraphics(d))return;case Jl.Sort:if(this._state=Jl.Sort,!this._sortVisibleGraphics(d))return;case Jl.Deconflict:if(this._state=Jl.Deconflict,!this._deconflictVisibleGraphics(d))return;default:(function gN(d,_){if(!F2||!$_)return;KR();const T=$_;let x=0;for(let A=0;Athis.addToActiveGraphics(T):T=>this.removeFromActiveGraphics(T)),this.setDirty()}layerSupportsDeconfliction(d){if((0,Qe.Wi)(d)||"object3d"!==d.type)return!1;const _=d.stageObject;return 1===(_?_.geometryRecords.length:0)&&_.geometryRecords[0].material instanceof $R.A}_startUpdate(){(function yN(d){N2=Fo.Z.DECONFLICTOR_SHOW_VISIBLE,W2=Fo.Z.DECONFLICTOR_SHOW_INVISIBLE,j2=N2||W2,F2=Fo.Z.DECONFLICTOR_SHOW_GRID,Bg=null,j2||F2?Bg=()=>function vN(d){null==Tc&&(Tc=document.createElement("canvas"),Tc.setAttribute("id","canvas2d"),d.surface.parentElement.style.position="relative",d.surface.parentElement.appendChild(Tc));const{state:_}=d,{camera:T,pixelRatio:x}=_,{width:A,height:U}=T,fe=U*x;Tc.setAttribute("width",A*x+"px"),Tc.setAttribute("height",`${fe}px`),Tc.setAttribute("style",`position:absolute;left:0px;top:0px;display:block;pointer-events:none;width:${A}px;height:${U}px`),$_=Tc.getContext("2d"),$_.clearRect(0,0,A,U),$_.font="12px Arial"}(d):Tc&&(Tc.parentElement.removeChild(Tc),Tc=null)})(this.view),this._dirty=!1,this._runningViewState.copyFrom(this.viewState);const{fullWidth:d,fullHeight:_}=this._runningViewState.camera;this._initBins(d,_),this._resetIterators()}addToActiveGraphics(d){d.info[this.visibilityGroup]=new PN,this._graphics.active.set(d.graphics3DGraphic.graphic.uid,d),this.setDirty()}removeFromActiveGraphics(d){this._removeFromVisibleGraphics(d),function AN(d,_){const T=d.graphics3DGraphic;T.destroyed||T.clearVisibilityFlag(Go.P.DECONFLICTION,_)}(d,this.visibilityGroup),delete d.info[this.visibilityGroup],this._graphics.active.delete(d.graphics3DGraphic.graphic.uid),this.setDirty()}_addToVisibleGraphics(d){this._graphics.visible.set(d.graphics3DGraphic.graphic.uid,d)}_removeFromVisibleGraphics(d){this._graphics.visible.delete(d.graphics3DGraphic.graphic.uid)}_processActiveGraphics(d){const _=this._ensureActiveGraphicsIterator(),T=(0,gi.a)(bN,this._runningViewState.camera.projectionMatrix),x="global"===this.view.viewingMode&&1===this.view.map.ground.opacity&&this._runningViewState.camera.relativeElevation>0?CN:null;let A=0;for((0,Qe.pC)(x)&&((0,pt.m)(x,ir.Z,this._runningViewState.camera.viewMatrix),x[3]=(0,En.Iu)(this.view.spatialReference).radius,A=(0,oo.d)(x,ir.Z));!d.done;){d.madeProgress();const U=_.next();if(!0===U.done)return this._resetActiveGraphicsIterator(),!0;const ne=U.value,fe=ne&&ne.info[this.visibilityGroup];fe&&(this._collectGraphics3DGraphics(ne,T,x,A),fe.culled?this._removeFromVisibleGraphics(ne):this._addToVisibleGraphics(ne))}return!1}_sortVisibleGraphics(d){const _=this._ensureSortGraphicsIterator();for(;!d.done;){const T=_.next();if(d.madeProgress(),!0===T.done)return this._resetSortGraphicsIterator(),!0}return!1}_deconflictVisibleGraphics(d){const _=this._ensureVisibleGraphicsIterator(),T=this.visibilityGroup===Go.E.LABEL;for(;!d.done;){d.madeProgress();const x=_.next();if(!0===x.done)return this._resetVisibleGraphicsIterator(),!0;const A=x.value,U=A.info[this.visibilityGroup];if(!U||U.culled)continue;const ne=A.graphics3DGraphic,fe=(!T||ne.isVisible())&&!this._isConflicted(A);fe&&this._addToBins(A),U.visible=fe,this._setGraphicVisibility(A,fe),EN(U,fe)}return!1}_resetIterators(){this._iterators.active=null,this._iterators.visible=null,this._iterators.sort=null}_ensureActiveGraphicsIterator(){return this._iterators.active||(this._iterators.active=XR(this._graphics.active)),this._iterators.active}_resetActiveGraphicsIterator(){this._iterators.active=null}_ensureVisibleGraphicsIterator(){return this._iterators.visible||(this._iterators.visible=XR(this._graphics.visible)),this._iterators.visible}_resetVisibleGraphicsIterator(){this._iterators.visible=null}_ensureSortGraphicsIterator(){return this._iterators.sort||(this._iterators.sort=function*RN(d,_,T){_.clear(),d.forEach((A,U)=>{const ne=_.pushNew();ne.id=U,ne.prio=A.info?-A.info[T].distance:Number.MAX_VALUE}),yield;const x=_.iterableSort((A,U)=>U.prio-A.prio);for(let A=x.next();!A.done;A=x.next())yield;_.forAll(A=>{const U=d.get(A.id);U&&(d.delete(A.id),d.set(A.id,U))}),_.clear()}(this._graphics.visible,this._iterators.sortArray,this.visibilityGroup)),this._iterators.sort}_resetSortGraphicsIterator(){this._iterators.sort=null}_collectGraphics3DGraphics(d,_,T,x){const A=d.graphics3DGraphic;if(A.destroyed)return;const U=d.info[this.visibilityGroup];if(!A.isVisible(Go.E.GRAPHIC,Go.P.DECONFLICTION))return void(U.culled=!0);const ne=this.getGraphicsLayers(A);(0,Bs.cS)(U.aabr);let fe=null;for(const Oe of ne){if(!this.layerSupportsDeconfliction(Oe))continue;const we=Oe.stageObject.geometryRecords[0].material;if((0,Qe.Wi)(fe)){if(fe=this._getProjectionInfo(Oe,_,LN),fe.isOutsideScreen||this._isCulledBySlice(d,Nu)||(0,Qe.pC)(T)&&this._isCulledByHorizon(fe,T,x))return void(U.culled=!0);!Fo.Z.TESTS_DISABLE_OPTIMIZATIONS&&U.visible&&(fe.distance*=.7)}this._expandBoundingRect(U,Oe,we,fe)}(0,Qe.Wi)(fe)?U.culled=!0:(U.distance=fe.distance,U.culled=!1)}_getProjectionInfo(d,_,T){const x=this._runningViewState.camera,A=d.stageObject,U=A.geometryRecords[0],ne=U.material,fe=(0,oo.g)(A.boundingVolumeWorldSpace.bounds);(0,pt.m)(Nu,fe,x.viewMatrix);const Oe=U.geometry.vertexAttributes,we=Oe.get(Qi.T.NORMAL).data,Ze=Oe.get(Qi.T.AUXPOS1).data;return ne.applyShaderOffsetsView(Nu,we,A.transformation,Ze,x,T.scaleInfo,Nu),(0,Qo.s)(Y_,Nu[0],Nu[1],Nu[2],1),(0,Qo.t)(jg,Y_,x.projectionMatrix),(0,pt.g)(T.positionNDC,jg,1/jg[3]),ne.applyShaderOffsetsNDC(T.positionNDC,Ze,x,T.positionNDC,V2),T.distanceWithoutPolygonOffset=x.depthNDCToWorld(V2[2]),T.distance=V2[2]===T.positionNDC[2]?T.distanceWithoutPolygonOffset:x.depthNDCToWorld(T.positionNDC[2]),(0,Qo.s)(jg,T.positionNDC[0],T.positionNDC[1],T.positionNDC[2],1),(0,Qo.t)(Y_,jg,_),(0,Qo.b)(Y_,Y_,1/Y_[3]),(0,pt.s)(T.positionView,Nu[0],Nu[1],Nu[2]),T}_isCulledByHorizon(d,_,T){return(0,pt.c)(z2.direction,d.positionView),(0,pt.s)(z2.origin,0,0,0),!!(0,oo.i)(_,z2,TN)&&d.distanceWithoutPolygonOffset>T}_isCulledBySlice(d,_){return d.slicePlaneEnabled&&this._runningViewState.slicePlaneEnabled&&(0,nu.e)(this._runningViewState.slicePlane,_)}_expandBoundingRect(d,_,T,{positionNDC:x,scaleInfo:A}){const U=this._runningViewState.camera,ne=_.getScreenSize(wN);(0,aE.TU)(ne,A.factor,ne),ne[0]*=U.pixelRatio,ne[1]*=U.pixelRatio;const fe=(0,Bs.cv)(T.calculateRelativeScreenBounds(ne,A.factorAlignment.scale,MN),(0,xr.t7)(0,U.fullWidth,.5+.5*x[0]),(0,xr.t7)(0,U.fullHeight,.5+.5*x[1])),Oe=this.iconMarginFactor;if(0!==Oe){const we=Oe*Math.min((0,Bs.bf)(fe),(0,Bs.Cb)(fe));fe[0]-=we,fe[1]-=we,fe[2]+=we,fe[3]+=we}(0,Bs.jn)(d.aabr,fe,d.aabr)}_isConflicted(d){const _=d.graphics3DGraphic.graphic.uid,T=d.info[this.visibilityGroup];for(let x=Math.floor(T.aabr[0]/this._accBinsSizeX);x<=Math.floor(T.aabr[2]/this._accBinsSizeX);x++)if(!(x<0||x>=this._accBinsNumX))for(let A=Math.floor(T.aabr[1]/this._accBinsSizeY);A<=Math.floor(T.aabr[3]/this._accBinsSizeY);A++){if(A<0||A>=this._accBinsNumY)continue;const U=this._accBins[x][A];for(let ne=0;ne=this._accBinsNumX))for(let fe=A;fe<=U;fe++)fe<0||fe>=this._accBinsNumY||this._accBins[ne][fe].push(d)}_setGraphicVisibility(d,_){const T=d.graphics3DGraphic;T.destroyed||(T.setVisibilityFlag(Go.P.DECONFLICTION,_,this.visibilityGroup),this.visibilityGroup===Go.E.LABEL&&this.view.labeler.setLabelGraphicVisibility(T,_))}};function*XR(d){if(Map.prototype.entries){const _=d.entries();for(let T=_.next();!T.done;T=_.next())yield T.value[1]}else yield*d.values()}(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],X_.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],X_.prototype,"updating",null),X_=(0,Ve._)([(0,Wr.j)("esri.views.3d.layers.graphics.Deconflictor")],X_);const wN=(0,un.a)(),LN=new class IN{constructor(){this.positionView=(0,ir.c)(),this.positionNDC=(0,ir.c)(),this.distance=0,this.distanceWithoutPolygonOffset=0,this.scaleInfo={factor:{scale:0,factor:0,minPixelSize:0,paddingPixels:0},factorAlignment:{scale:0,factor:0,minPixelSize:0,paddingPixels:0}}}get isOutsideScreen(){const _=this.positionNDC;return _[0]<-1||_[1]<-1||_[2]<-1||_[0]>=1||_[1]>=1}};let lE=class extends X_{constructor(d){super(d),this.visibilityGroup=Go.E.LABEL,this.iconMarginFactor=0,this._lastDeconfliction=0}get viewState(){return this.parent.viewState}runTask(d){if(this.parent.running)return;const _=performance.now();(d.state===Lu.n.IDLE||_-this._lastDeconfliction>2e3)&&(super.runTask(d),this.state===Jl.Idle&&(this._lastDeconfliction=_))}enabledChanged(d,_){this.modifyGraphics(_,d.labelsEnabled)}getGraphicsLayers(d){return d.labelGraphics}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],lE.prototype,"parent",void 0),lE=(0,Ve._)([(0,Wr.j)("esri.views.3d.layers.graphics.LabelDeconflictor")],lE);let H2=class extends X_{constructor(){super(...arguments),this._handles=new Ji.Z,this._contexts=new Map,this._viewState=new YR,this.visibilityGroup=Go.E.GRAPHIC,this._iconMarginFactor=-.1}get labels(){return this._labels}get viewState(){return this._viewState}initialize(){this._handles.add([(0,Ht.YP)(()=>this.view?.state?.camera,()=>{this._updateViewState(),this.setDirty()}),(0,Ht.YP)(()=>this.view?.map?.ground?.opacity,(d,_)=>{1!==d&&1!==_||this.setDirty()}),(0,Ht.YP)(()=>this.view?.slicePlane,()=>{this._updateSlicePlane(),this._slicePlaneChanged()},Ht.nn)]),this._frameTask=this.view.resourceController.scheduler.registerTask(Fn.T8.GRAPHICS_DECONFLICTOR,this),this._labels=new lE({view:this.view,parent:this})}destroy(){this._labels.destroy(),this._labels=null,this._handles.destroy(),this._handles=null,this._frameTask&&(this._frameTask.remove(),this._frameTask=null)}get iconMarginFactor(){return this._iconMarginFactor}set iconMarginFactor(d){this._iconMarginFactor=d,this.setDirty()}setDirty(){this._contexts.size>0&&(super.setDirty(),this._labels.setDirty())}runTask(d){super.runTask(d),this.running||this._labels.setDirty()}setInitialIconVisibilityFlag(d,_){const T=!(this._graphicSupportsDeconfliction(_)&&G2(d));_.setVisibilityFlag(Go.P.DECONFLICTION,T,Go.E.GRAPHIC)}_updateViewState(){this.view&&this.view.state&&(this._viewState.camera.copyFrom(this.view.state.camera),this._updateSlicePlane())}_updateSlicePlane(){const d=this.view?this.view.slicePlane:null;(0,Qe.pC)(d)&&(0,nu.t)(d,this._viewState.camera.viewMatrix,this._viewState.slicePlane),this._viewState.slicePlaneEnabled=(0,Qe.pC)(d)}_slicePlaneChanged(){(0,El.oE)(this._contexts,(d,_)=>_.symbolCreationContext.slicePlaneEnabled)&&this.setDirty()}addGraphicsOwner(d){let _=this._contexts.get(d);return null==_&&(_=new Map,this._contexts.set(d,_),this.setDirty()),{addGraphic:T=>this._addGraphic(d,_,T),removeGraphic:T=>this._removeGraphic(_,T),labelingInfoChange:()=>this._labels.enabledChanged(d,_),featureReductionChange:()=>this.enabledChanged(d,_),slicePlaneEnabledChange:()=>this._slicePlaneEnabledChanged(d,_),clear:()=>_.forEach(T=>this._removeGraphic(_,T.graphics3DGraphic))}}removeGraphicsOwner(d){const _=this._contexts.get(d);_&&(_.forEach(T=>this._removeGraphic(_,T.graphics3DGraphic)),this._contexts.delete(d),this.setDirty())}_addGraphic(d,_,T){const x=T.graphic.uid,A=new ON(T,d.symbolCreationContext.slicePlaneEnabled);_.set(x,A),G2(d)&&this.addToActiveGraphics(A),d.labelsEnabled&&this._labels.addToActiveGraphics(A)}_removeGraphic(d,_){const T=_.graphic.uid,x=d.get(T);x&&(this.removeFromActiveGraphics(x),this._labels.removeFromActiveGraphics(x),d.delete(T),this.setDirty())}enabledChanged(d,_){const T=G2(d);T||function BN(d){const _=d.graphics3DGraphics;_&&_.forEach(T=>T.clearVisibilityFlag(Go.P.DECONFLICTION))}(d),this.modifyGraphics(_,T)}_slicePlaneEnabledChanged(d,_){const T=d.symbolCreationContext.slicePlaneEnabled;_.forEach(x=>x.slicePlaneEnabled=T),this.setDirty()}getGraphicsLayers(d){return d.graphics}_graphicSupportsDeconfliction(d){if(d.isDraped)return!1;const _=d.graphics;if(!_||!_.length)return!1;for(const T of _)if(this.layerSupportsDeconfliction(T))return!0;return!1}};function G2(d){const _=d.layer;return!(!_||!_.featureReduction||"selection"!==_.featureReduction.type)}H2=(0,Ve._)([(0,Wr.j)("esri.views.3d.layers.graphics.GraphicsDeconflictor")],H2);var jN=v(84786),FN=v(22445),NN=v(9824),WN=v(18170),VN=v(23641),zN=v(21439),HN=v(13939);function K2(d){return d instanceof HN.Z?d.graphics3DSymbol:d instanceof zN.Z?d:null}const Fg=Us.Z.getLogger("esri.views.3d.layers.graphics.labelPlacement");function GN(d){const _=function qN(d){const _=d.labelClass.labelPlacement,{labelSymbol:T,graphics3DGraphic:x}=d,A=K2(x.graphics3DSymbol),U=(0,Qe.yw)(A,fe=>"point-3d"===fe.symbol.type?fe.symbol:null),ne=_u[_]||cE(d);return(0,Qe.pC)(U)&&U.supportsCallout()&&U.hasVisibleVerticalOffset()&&!x.isDraped?{placement:null,hasLabelVerticalOffset:!1,verticalOffset:JR(U.verticalOffset),anchor:null,normalizedOffset:null}:T&&T.hasVisibleVerticalOffset()&&((0,Qe.Wi)(U)||!U.supportsCallout()||!U.verticalOffset||x.isDraped)?function QN(d){return"above-center"===d}(ne.placement)?{placement:"above-center",verticalOffset:JR(T.verticalOffset),anchor:"bottom",normalizedOffset:[0,ne.normalizedOffset[1],0],hasLabelVerticalOffset:!0}:(Fg.errorOncePerTick("Callouts and vertical offset on labels are currently only supported with 'above-center' label placement (not with "+_+" placement)"),null):{placement:null,verticalOffset:null,anchor:null,normalizedOffset:null,hasLabelVerticalOffset:!1}}(d);if((0,Qe.Wi)(_))return null;const T=function KN(d,_){if(_.anchor)return _;const T=d.labelClass.labelPlacement,x=_u[T],A=x||cE(d);return T&&!x&&Fg.warnOncePerTick(`the requested label placement '${T}' is currently unsupported in SceneView.`),function ZN(d,_){const T=_.graphics3DGraphic.graphic.geometry;if((0,Qe.Wi)(T))return null;if((0,Qe.pC)(_.disablePlacement))return _.labelClass.labelPlacement?(Fg.warnOncePerTick(kR(d.placement,_.disablePlacement.logEntityDescription)),cE(_)):d;const x=T.type;switch(x){case"polyline":case"polygon":case"extent":case"multipoint":if(_.labelClass.labelPlacement)return Fg.warnOncePerTick(kR(d.placement,`'${x}' geometries`)),cE(_);break;case"point":case"mesh":return d}return d}(A,d)}(d,_);if((0,Qe.Wi)(T))return null;const A=!!_.hasLabelVerticalOffset;return function $N(d,_,T){const x=T.graphics3DGraphic.graphic.geometry;if((0,Qe.Wi)(x))return null;switch(x.type){case"point":!function XN(d,_,T){const x=Z2(T);if((0,Qe.Wi)(x))return;const A=T.graphics3DGraphic.graphics[0];switch((0,Qe.pC)(A)?A.getCenterObjectSpace(d.translation):(0,pt.s)(d.translation,0,0,0),x.type){case"icon":case"text":!function kN(d,_,T,x){const{graphics3DGraphic:A}=T,U=(0,Qe.pC)(x)?x.getScreenSize():null;if(!A.isDraped&&(0,Qe.pC)(U)){const ne=function JN(d,_=eW){const{graphics3DGraphic:T}=d,x=T.graphics[0],A=(0,Qe.pC)(x)?x.stageObject.geometryRecords[0].material:null;if(A&&A instanceof $R.A){const U=A.parameters.anchorPosition;_[0]=2*(U[0]-.5),_[1]=2*(U[1]-.5)}else _[0]=0,_[1]=0;return _}(T);Ng[0]=U[0]/2*(_.normalizedOffset[0]-ne[0]),Ng[1]=U[1]/2*(_.normalizedOffset[1]-ne[1]),d.screenOffset[0]=Ng[0],d.hasLabelVerticalOffset?(d.centerOffset[1]=Ng[1],d.centerOffsetUnits="screen"):d.screenOffset[1]=Ng[1]}else d.hasLabelVerticalOffset||"center"===d.anchor||(_u[T.labelClass.labelPlacement]&&Fg.warnOncePerTick(`the requested placement '${_.placement}' is currently unsupported for draped graphics`),d.anchor="center")}(d,_,T,A);break;case"object":$2(d,_,A)}}(d,_,T);break;case"polygon":!function YN(d,_,T){const x=Z2(T);if(!(0,Qe.Wi)(x))switch(x.type){case"extrude":{const A=T.graphics3DGraphic.graphics[0];(0,Qe.pC)(A)?(A.getBoundingBoxObjectSpace(Wg),(0,fo.be)(Wg,d.translation),d.translation[2]=(0,fo.Cb)(Wg)/2):(0,pt.s)(d.translation,0,0,0),$2(d,_,A);break}}}(d,_,T);break;case"mesh":$2(d,_,T.graphics3DGraphic.graphics[0])}return d}({anchor:T.anchor,verticalOffset:_.verticalOffset,screenOffset:(0,un.a)(),centerOffset:(0,Tn.f)(0,0,0,-1),centerOffsetUnits:"world",translation:(0,ir.c)(),elevationOffset:0,hasLabelVerticalOffset:A},T,d)}function Z2(d){const T=K2(d.graphics3DGraphic.graphics3DSymbol);return(0,Qe.pC)(T)?T.symbol.symbolLayers.getItemAt(0):null}function kR(d,_){return`the requested label placement '${d}' is currently unsupported for ${_} in SceneView.`}function cE(d){const _=d.graphics3DGraphic.graphic.geometry;if((0,Qe.Wi)(_))return null;switch(_.type){case"polyline":case"extent":case"multipoint":return{placement:"center-center",normalizedOffset:null,anchor:"center"};case"polygon":{const T=Z2(d);return(0,Qe.pC)(T)&&"extrude"===T.type?_u["above-center"]:{placement:"center-center",normalizedOffset:null,anchor:"center"}}case"point":case"mesh":return _u["above-center"];default:return}}function $2(d,_,T){const x=(0,Qe.pC)(T)?T.getBoundingBoxObjectSpace(Wg):Wg,A=(0,ir.f)(x[3]-x[0],x[4]-x[1],x[5]-x[2]),U=Math.sqrt(A[0]*A[0]+A[1]*A[1]);d.centerOffset[0]=U/2*_.normalizedOffset[0];const ne=d.translation[2],fe=A[2]/2*_.normalizedOffset[1];d.translation[2]=0,d.elevationOffset=ne+fe;const Oe=(0,pt.l)(A);d.centerOffset[2]=Oe/2*_.normalizedOffset[2]}function JR(d){const{screenLength:_,minWorldLength:T,maxWorldLength:x}=d;return{screenLength:_,minWorldLength:T,maxWorldLength:x}}const _u={"above-center":{placement:"above-center",normalizedOffset:[0,1,0],anchor:"bottom"},"above-left":{placement:"above-left",normalizedOffset:[-1,1,0],anchor:"bottom-right"},"above-right":{placement:"above-right",normalizedOffset:[1,1,0],anchor:"bottom-left"},"below-center":{placement:"below-center",normalizedOffset:[0,-1,2],anchor:"top"},"below-left":{placement:"below-left",normalizedOffset:[-1,-1,0],anchor:"top-right"},"below-right":{placement:"below-right",normalizedOffset:[1,-1,0],anchor:"top-left"},"center-center":{placement:"center-center",normalizedOffset:[0,0,1],anchor:"center"},"center-left":{placement:"center-left",normalizedOffset:[-1,0,0],anchor:"right"},"center-right":{placement:"center-right",normalizedOffset:[1,0,0],anchor:"left"}},QR={"above-center":["default","esriServerPointLabelPlacementAboveCenter"],"above-left":["esriServerPointLabelPlacementAboveLeft"],"above-right":["esriServerPointLabelPlacementAboveRight"],"below-center":["esriServerPointLabelPlacementBelowCenter"],"below-left":["esriServerPointLabelPlacementBelowLeft"],"below-right":["esriServerPointLabelPlacementBelowRight"],"center-center":["esriServerPointLabelPlacementCenterCenter"],"center-left":["esriServerPointLabelPlacementCenterLeft"],"center-right":["esriServerPointLabelPlacementCenterRight"]};for(const d in QR){const T=_u[d];QR[d].forEach(x=>{_u[x]=T})}Object.freeze&&(Object.freeze(_u),Object.keys(_u).forEach(d=>{Object.freeze(_u[d]),Object.freeze(_u[d].normalizedOffset)}));const Ng=[0,0],eW=[0,0],Wg=(0,fo.Ue)();var uE=v(75688);class qR{constructor(_){this._stage=_,this._materials=new Map}get(_){return this._materials.get(_)}add(_,T){this._materials.set(_,T),this._stage.add(T)}dispose(){this._stage.removeMany(Array.from(this._materials.values())),this._materials.clear()}}var tW=v(6169),rW=v(65542),dE=v(86236),Y2=v(24425),sW=v(39782);let Vg=class extends Ns.Z{constructor(d){super(d),this.type=Y2.U.Texture,this.id=(0,dE.D)(),this.events=new Va.Z,this._glTexture=null,this._needsClear=!1,this._elementsToAddOrUpdate=new Map,this._elementsToRemove=new Map,this._elementsToRender=new Map,this._elements=new Map,this._stageObjects=new Map,this.updating=!1}initialize(){this._stage=this.view._stage,this._canvas=this._create2DCanvas(),this._ctx=this._canvas.getContext("2d"),this._stage.add(this);const d=this._computeAtlasResolution(this.view.width,this.view.height);this._createAtlasRegion(d),this._update2DCanvasSize(),this._resetAtlasCursor()}unload(){this._glTexture=(0,Qe.M2)(this._glTexture),this.updating=!1,this.events.emit("unloaded")}get width(){return this._atlas.size.width}get height(){return this._atlas.size.height}get requiresFrameUpdates(){return!1}_createDescriptor(d){return{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,flipped:!0,samplingMode:xt.cw.LINEAR_MIPMAP_LINEAR,hasMipmap:!0,preMultiplyAlpha:!0,maxAnisotropy:d.parameters.maxMaxAnisotropy}}get glTexture(){return this._glTexture}load(d){return(0,Qe.pC)(this._glTexture)||(this._glTexture=new Ro.x(d,this._createDescriptor(d),this._canvas),this._frameWorker=this.view.resourceController.scheduler.registerTask(Fn.T8.TEXT_TEXTURE_ATLAS,this),this.setDirty()),this._glTexture}dispose(){this._elements=null,this._elementsToAddOrUpdate=null,this._elementsToRemove=null,this._elementsToRender=null,this._frameWorker=(0,Qe.hw)(this._frameWorker),this._glTexture&&(this._stage.remove(this),this._glTexture=(0,Qe.M2)(this._glTexture)),this._canvas.width=0,this._canvas.height=0,this._canvas=null,this._ctx=null}_create2DCanvas(){const d=document.createElement("canvas");return d.setAttribute("id","canvas2d"),d.setAttribute("style","display:none"),d.setAttribute("width",512..toString()),d.setAttribute("height",512..toString()),d}_update2DCanvasSize(){this._canvas.setAttribute("width",this._atlas.size.width.toString()),this._canvas.setAttribute("height",this._atlas.size.height.toString())}_createAtlasRegion(d=512){this._atlas={size:{width:d,height:d},cursor:{x:0,y:0},lineHeight:0}}_computeAtlasResolution(d,_){let T=Math.max(d,_);return T+=256,T=(0,xr.Sf)(T),T=Math.min(T,4096),T}_resizeAtlas(d,_){_=_||d;const T=this._atlas;T.size.width=d,T.size.height=_,(0,Qe.pC)(this._glTexture)&&this._glTexture.resize(d,_),this._update2DCanvasSize()}_resetAtlasCursor(){const d=this._atlas;d.cursor.x=zg,d.cursor.y=zg+ew,d.lineHeight=0,this._needsClear=!0}_getAtlasUsage(){const d=this._atlas;return(d.cursor.x+d.cursor.y*d.size.width)/(d.size.width*d.size.height)}_getExpectedAtlasUsage(){const d=this._elementsToRemove.size,_=this._elementsToAddOrUpdate.size,T=this._elements.size;return this._getAtlasUsage()/T*(T+_-d)}_addAtlasElement(d,_,T,x){const A=this._atlas,{renderedWidth:U,renderedHeight:ne,displayWidth:fe,displayHeight:Oe}=d.textRenderer;d.placement.offset.x=A.cursor.x,d.placement.offset.y=A.cursor.y,d.placement.size.width=U,d.placement.size.height=ne,d.placement.size.displayWidth=fe,d.placement.size.displayHeight=Oe,d.placement.uvMinMax=[d.placement.offset.x/A.size.width,1-(d.placement.offset.y+ne)/A.size.height,(d.placement.offset.x+U)/A.size.width,1-d.placement.offset.y/A.size.height],A.cursor.x+=T,A.lineHeight=Math.max(A.lineHeight,x),this._elements.set(_,d)}_removeAtlasElement(d){if(d&&this._elements.has(d.textId)){const _=d.placement.offset,T=d.placement.size;this._ctx.clearRect(_.x,_.y,T.width,T.height),this._elements.delete(d.textId)}}_ensureStageObjects(d){const _=this._stageObjects.get(d);if(_)return _;const T=new Set;return this._stageObjects.set(d,T),T}_addStageObject(d,_){this._ensureStageObjects(d).add(_)}_removeStageObject(d,_){const T=this._stageObjects.get(d);T&&T.delete(_)&&(_.geometries[0].vertexAttributes.get(Qi.T.SIZE).data=[0,0],_.geometryVertexAttrsUpdated(_.geometryRecords[0]))}_processAddition(d,_){const T=this._atlas,x=d.textId,ne=d.textRenderer.renderedWidth+zg,fe=d.textRenderer.renderedHeight+zg+ew;if(T.cursor.x+ne.85&&T.size.width<4096;return we&&this._resizeAtlas(2*T.size.width,2*T.size.height),!_||!we&&Oe>.95&&4096===T.size.width?(this._processRemovals(),k_.OK):(this._repack(),k_.REPACK)}T.cursor.x=zg,T.cursor.y+=T.lineHeight,T.lineHeight=0,this._addAtlasElement(d,x,ne,fe),this._elementsToRender.set(x,d),this._elementsToAddOrUpdate.delete(x)}return k_.OK}_processRemovals(){this._elementsToRemove.forEach((d,_)=>{const T=this._stageObjects.get(_);T&&0!==T.size||this._removeAtlasElement(d),T&&0===T.size&&this._stageObjects.delete(_)}),this._elementsToRemove.clear()}_repack(){this._processRemovals(),this._elements.forEach((d,_)=>{d.rendered=!1,this._elementsToAddOrUpdate.set(_,d)}),this._elements.clear(),this._resetAtlasCursor(),this._elementsToRender.clear()}_processRenderingRequest(d){this._ctx.clearRect(d.placement.offset.x,d.placement.offset.y,d.placement.size.width,d.placement.size.height),d.textRenderer.render(this._ctx,d.placement.offset.x,d.placement.offset.y);const _=this._stageObjects.get(d.textId);_&&_.forEach(T=>{T.geometries[0].vertexAttributes.get(Qi.T.UV0).data=new Float32Array(d.placement.uvMinMax),T.geometries[0].vertexAttributes.get(Qi.T.SIZE).data=[d.placement.size.displayWidth,d.placement.size.displayHeight],T.geometryVertexAttrsUpdated(T.geometryRecords[0])}),d.rendered=!0}get running(){return this.updating}runTask(d,_=!0){if(!this._glTexture)return;let T=!1;if((0,El.oE)(this._elementsToAddOrUpdate,(A,U)=>{const ne=this._elements.get(U);if(ne&&ne.rendered){const fe=this._stageObjects.get(U);return fe&&fe.forEach(Oe=>{const we=Oe.geometries[0].vertexAttributes,Ze=this._elements.get(U);we.get(Qi.T.UV0).data=new Float32Array(Ze.placement.uvMinMax),we.get(Qi.T.SIZE).data=new Float32Array([Ze.placement.size.displayWidth,Ze.placement.size.displayHeight]),Oe.geometryVertexAttrsUpdated(Oe.geometryRecords[0])}),this._elementsToAddOrUpdate.delete(U),!1}return this._processAddition(this._elementsToAddOrUpdate.get(U),_)===k_.REPACK&&(T=!0,!0)}),T)return void this.runTask(Fn.G5,!1);let x=!1;this._elementsToRender.size>0&&this._needsClear&&(this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._needsClear=!1),(0,El.oE)(this._elementsToRender,(A,U)=>(this._processRenderingRequest(A),this._elementsToRender.delete(U),x=!0,d.madeProgress(),d.done)),x&&(0,Qe.pC)(this._glTexture)&&this._glTexture.setData(this._canvas),this.updating=this._elementsToRender.size>0,!this.updating&&sW.y.orderedRepackingEnabled&&this.repackOrdered()}addTextTexture(d,_){const T=d.key;this._elementsToAddOrUpdate.has(T)||this._elementsToAddOrUpdate.set(T,{textId:T,placement:{offset:{x:0,y:0},size:{width:0,height:0,displayWidth:0,displayHeight:0},uvMinMax:[]},textRenderer:d,rendered:!1}),this._addStageObject(T,_),this._elementsToRemove.delete(T),this.setDirty()}removeTextTexture(d,_){const T=d.key;this._elementsToRemove.set(T,this._elements.get(T)),this._removeStageObject(T,_)}setDirty(){this._glTexture&&(this.updating=!0)}repackOrdered(){if(0===this._elements.size)return;const d=[];this._elements.forEach((T,x)=>d.push({element:T,key:x}));let _=!0;for(let T=0;T0){_=!1;break}if(!_||this._elementsToRemove.size){d.sort((T,x)=>T.key.localeCompare(x.key)),this._elements.clear();for(const{element:T,key:x}of d)this._elements.set(x,T);this._repack(),this.setDirty()}}get test(){const{_elements:d,_stageObjects:_,_elementsToRemove:T,_atlas:x}=this,A=this;return{elements:d,stageObjects:_,elementsToRemove:T,atlas:x,_resizeAtlas:(U,ne)=>A._resizeAtlas(U,ne),run:(U,ne)=>A.runTask(U,ne)}}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Vg.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],Vg.prototype,"updating",void 0),Vg=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.TextTextureAtlas")],Vg);const zg=2,ew=2;var k_;!function(d){d[d.OK=0]="OK",d[d.REPACK=1]="REPACK"}(k_||(k_={}));var Hg=v(34103);let p0=class extends Ns.Z{constructor(d){super(d),this._dirty=!1,this._labels=new Map,this._labelsToAdd=new Map,this._labelsToRemove=new Map,this._labelingContexts=new Array}setup(){this.dispose(),this._handles=new Ji.Z,this._handles.add([(0,Ht.YP)(()=>this.view.state?.camera,()=>this.setDirty()),(0,Ht.YP)(()=>this.view.state?.pixelRatio,()=>this._resetAllLabels()),this.view.resourceController.scheduler.registerTask(Fn.T8.LABELER,this)]),this._textTextureAtlas=new Vg({view:this.view}),this._hudMaterialCollection=new qR(this.view._stage),this._calloutMaterialCollection=new qR(this.view._stage)}dispose(){this._handles=(0,Qe.SC)(this._handles),this._textTextureAtlas=(0,Qe.M2)(this._textTextureAtlas),this._hudMaterialCollection=(0,Qe.M2)(this._hudMaterialCollection),this._calloutMaterialCollection=(0,Qe.M2)(this._calloutMaterialCollection),this._labelingContexts.length=0,this._labels.clear(),this._labelsToAdd.clear(),this._labelsToRemove.clear()}_activateLabelingContext(d){d.labels.forEach((_,T)=>{this._labels.set(T,_),_.graphics3DGraphic.setVisibilityFlag(Go.P.USER_SETTING,!0,Go.E.LABEL)}),d.active=!0}_deactivateLabelingContext(d){d.labels.forEach((_,T)=>{_.graphics3DGraphic.setVisibilityFlag(Go.P.USER_SETTING,!1,Go.E.LABEL),this.setLabelGraphicVisibility(_.graphics3DGraphic,!1),this._labels.delete(T)}),d.active=!1}_addLabelTextureToAtlas(d){for(const _ of d.graphics3DGraphic.labelGraphics){if(!_._labelClass)continue;const T=d.textTextureResources.textRenderers[_._labelIndex];(0,Qe.pC)(T)&&this._textTextureAtlas.addTextTexture(T,_.stageObject)}d.rendered=!0}_removeLabelTextureFromAtlas(d){for(const _ of d.graphics3DGraphic.labelGraphics){if(!_._labelClass)continue;const T=d.textTextureResources.textRenderers[_._labelIndex];(0,Qe.pC)(T)&&this._textTextureAtlas.removeTextTexture(T,_.stageObject)}d.rendered=!1}get running(){return this.view.ready&&(this._dirty||this._textTextureAtlas?.updating||this.deconflictor.running)}runTask(d){this._updateLabels(d),!this._dirty&&this.deconflictor.running&&this.deconflictor.runTask(d)}_updateLabels(d){if(this._dirty){this._dirty=!1;for(const _ of this._labelingContexts)if(oW(_)){if(!tw(_)){if(aW(_)){this._deactivateLabelingContext(_);continue}if(this._createLabelClassContext(_),J2(_)){this._dirty=!0;continue}if(!tw(_))continue}(0,El.oE)(_.labelsToInitialize,(T,x)=>(this._ensureGraphics3DResources(T)&&(this._labels.set(x,T),this.deconflictor.setDirty(),d.madeProgress()),(T.visible&&T.textTextureResources.initialized||!T.visible&&T.hasGraphics3DResources)&&(_.labelsToInitialize.delete(x),d.madeProgress()),d.done))&&(this._dirty=!0)}this._labelsToRemove.forEach(_=>this._removeLabelTextureFromAtlas(_)),this._labelsToAdd.forEach(_=>this._addLabelTextureToAtlas(_)),this._labelsToRemove.clear(),this._labelsToAdd.clear(),this._dirty||this.notifyChange("updating")}}_createLabelClassContextAsync(d){var _=this;return(0,kr.Z)(function*(){const T=d.labelClassAbortController.signal;yield d.layer.when(),(0,ws.k_)(T),d.scaleVisibility&&d.scaleVisibility.updateScaleRangeActive();const x=d.graphics3DCore,A=x.layer,U=A.labelingInfo&&A.labelingInfo.filter(Oe=>!!Oe.symbol);if(!U||0===U.length)return;const ne=new Array(U.length);let fe=!1;yield(0,wu.Ed)(U,function(){var Oe=(0,kr.Z)(function*(we,Ze){const it=we.symbol,lt=K2(x.getOrCreateGraphics3DSymbol(it));if((0,Qe.Wi)(lt))return void Us.Z.getLogger(_.declaredClass).error("Failed to create Graphics3DSymbol for label");yield lt.load(),(0,ws.k_)(T);let dt=null;(0,NN.Pd)(it)&&it.hasVisibleCallout()&&(dt=(0,WN.S)(it,x.symbolCreationContext),yield dt.load(),(0,ws.k_)(T));const Tt=yield(0,wu.q6)((0,FN.createLabelFunction)(we,d.layer.fieldsIndex,_.view.spatialReference));if((0,ws.k_)(T),!0===Tt.ok){const mt=yield _._createTextRenderParameters(lt.symbol);(0,ws.k_)(T),ne[Ze]={labelClass:we,labelFunction:Tt.value,graphics3DSymbol:lt,graphics3DCalloutSymbolLayer:dt,calloutSymbolLayerIndex:0,textRenderParameters:mt}}else Us.Z.getLogger(_.declaredClass).error(`Label expression failed to evaluate: ${Tt.error}`),fe=!0});return function(we,Ze){return Oe.apply(this,arguments)}}()),(0,ws.k_)(T),fe||(d.labelClassContexts=ne)})()}_createLabelClassContext(d){var _=this;return(0,kr.Z)(function*(){return d.labelClassPromise||(d.labelClassPromise=_._createLabelClassContextAsync(d).catch(T=>{if((0,ws.D_)(T))throw T;d.labelClassContexts=null}).then(()=>{d.labelClassAbortController=null,_.notifyChange("updating")}).catch(()=>{}),_.notifyChange("updating")),d.labelClassPromise})()}_createTextRenderParameters(d){var _=this;return(0,kr.Z)(function*(){const T=d.symbolLayers.getItemAt(0);return T&&"text"===T.type?rW.V.fromSymbol(T,_.view.state.pixelRatio):null})()}_destroyLabelClassContext(d){for(const T of d.labelClassContexts)--T.graphics3DSymbol.referenced,T.graphics3DSymbol=null;const _=d.labelClassAbortController;d.labelClassAbortController=new AbortController,_&&_.abort(),d.labelClassContexts=[],d.labelClassPromise=null,this.notifyChange("updating")}_createTextSymbolGraphic(d,_,T,x,A){const U={text:d.text,centerOffset:T.centerOffset,translation:T.translation,elevationOffset:T.elevationOffset,screenOffset:T.screenOffset,centerOffsetUnits:T.centerOffsetUnits,horizontalPlacement:(0,uE.zi)(T.anchor),verticalPlacement:(0,uE.EP)(T.anchor),verticalOffset:T.verticalOffset,debugDrawLabelBorder:Fo.Z.LABELS_SHOW_BORDER,displayWidth:d.displayWidth,displayHeight:d.displayHeight};return zh.graphic=_,zh.renderingInfo=null,zh.layer=x,A.createLabel(zh,U,this._hudMaterialCollection,this._textTextureAtlas)}_createLineCalloutGraphic(d,_,T,x,A){const U={symbol:_,translation:x.translation,elevationOffset:x.elevationOffset,screenOffset:x.screenOffset,centerOffset:x.centerOffset,centerOffsetUnits:x.centerOffsetUnits,materialCollection:this._calloutMaterialCollection};return zh.graphic=d,zh.renderingInfo=U,zh.layer=A,T.createGraphics3DGraphic(zh)}_ensureGraphics3DResources(d){if(d.hasGraphics3DResources)return!1;const _=d.graphics3DGraphic;if(_.destroyed)return!1;this._ensureTextTextureResources(d);const{textTextureResources:T}=d,x=d.labelingContext,A=x.labelClassContexts;if(!A||0===A.length||!x.emptySymbolLabelSupported&&0===_.graphics.length)return!1;let U=!1;const ne=_.graphic,fe=x.layer,Oe=(0,Gl.C6)(x.layer),we=this.view._stage;for(let Ze=0;Ze{const ne=U.graphics3DGraphic;x.set(ne.graphic.uid,ne)});const A=U=>U.labelGraphics[0];(0,Qe.Wg)(T.graphics3DSymbol.symbolLayers[0]).globalPropertyChanged(d,x,A),T.graphics3DCalloutSymbolLayer&&T.graphics3DCalloutSymbolLayer.globalPropertyChanged(d,x,ne=>ne.labelGraphics[T.calloutSymbolLayerIndex])}}_visibilityInfoChange(d){const _=d.layer.labelsVisible;_&&!d.active&&this._activateLabelingContext(d),!_&&d.active&&this._deactivateLabelingContext(d),this.setDirty()}_resetAllLabels(){for(const d of this._labelingContexts)this._resetLabels(d)}_resetLabels(d){d.labels.forEach((_,T)=>{this._destroyGraphic(_,T),_.visible=!1,_.rendered=!1,d.labelsToInitialize.set(T,_)}),this._destroyLabelClassContext(d),this.setDirty(),this.deconflictor.setDirty()}_findLabelingContext(d){for(const _ of this._labelingContexts)if(_.graphics3DCore===d)return _;return null}addGraphicsOwner(d,_,T){const x=T&&T.emptySymbolLabelSupported||!1,A=T&&T.elevationInfoOverride||null,U=T&&T.disablePlacement||null;if(this._findLabelingContext(d))return;const ne=d.layer,fe={graphics3DCore:d,layer:ne,scaleVisibility:_,emptySymbolLabelSupported:x,elevationInfoOverride:A,disablePlacement:U,active:ne.labelsVisible,labelClassPromise:null,labelClassAbortController:new AbortController,labelClassContexts:[],labels:new Map,labelsToInitialize:new Map,stageLayer:new Hg.F({isPickable:!0},ne.uid)};return this.view._stage.add(fe.stageLayer),this._labelingContexts.push(fe),this.setDirty(),{addGraphic:Oe=>this._addGraphic(fe,Oe),removeGraphic:Oe=>this._removeGraphic(fe,Oe),featureReductionChange:()=>{},layerLabelsEnabled:()=>(0,Gl.C6)(fe.layer),labelingInfoChange:Oe=>this._labelingInfoChange(fe,Oe),elevationInfoChange:()=>this._globalPropertyChanged("elevationInfo",fe),slicePlaneEnabledChange:()=>this._globalPropertyChanged("slicePlaneEnabled",fe),visibilityInfoChange:()=>this._visibilityInfoChange(fe),reset:()=>this._resetLabels(fe),clear:()=>{}}}removeGraphicsOwner(d){const _=this._findLabelingContext(d);if(!_)return;const T=this._labelingContexts.indexOf(_);this._labelingContexts.splice(T,1),_.labels.forEach(x=>this._removeGraphic(_,x.graphics3DGraphic)),this.view._stage.remove(_.stageLayer),_.stageLayer=null,this.setDirty()}setLabelGraphicVisibility(d,_){const T=d.graphic.uid,x=this._labels.get(T);x&&x.visible!==_&&(_&&!x.rendered?(this._labelsToAdd.set(T,x),this._labelsToRemove.delete(T),x.textTextureResources.initialized||x.labelingContext.labelsToInitialize.set(T,x)):!_&&x.rendered&&(this._labelsToRemove.set(T,x),this._labelsToAdd.delete(T)),x.visible=_,this.setDirty())}setDirty(){!this._dirty&&this._labelingContexts.length>0&&(this._dirty=!0,this.notifyChange("updating"))}get updating(){return this._dirty||this._textTextureAtlas?.updating||this.deconflictor.updating||this._labelingContexts.some(d=>J2(d))}get updatingProgress(){if(!this.updating||!this._textTextureAtlas)return 1;const d=this._labelingContexts.length>0?this._labelingContexts.reduce((_,T)=>_+(J2(T)?0:1),0)/this._labelingContexts.length:1;return(this._dirty?0:.3)+(this._textTextureAtlas.updating?0:.1)+.1*d+.5*this.deconflictor.updatingProgress}get test(){return{textTextureAtlas:this._textTextureAtlas,resetAllLabels:()=>this._resetAllLabels()}}};function oW(d){return d.active&&(0,Gl.C6)(d.layer)}function J2(d){return d.labelClassPromise&&!!d.labelClassAbortController}function tw(d){return d.labelClassContexts&&d.labelClassContexts.length}function aW(d){return null===d.labelClassContexts}(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],p0.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],p0.prototype,"deconflictor",void 0),(0,Ve._)([(0,ke.Cb)()],p0.prototype,"_textTextureAtlas",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],p0.prototype,"updating",null),p0=(0,Ve._)([(0,Wr.j)("esri.views.3d.layers.graphics.Labeler")],p0);const zh=new VN.Z(null,null,null);var ma=v(27351),rw=v(11544),Wu=v(27899),lW=v(37810);class cW{constructor(_){this._renderCoordsHelper=_,this._surfaceElevation=0,this._cache=new Map,this._frustum=new F_.i(_),this._extendedFrustum=new F_.i(_),this._intersector=new lW.q({renderCoordsHelper:_}),this._renderCoordsHelper=_}begin(_,T){this._surfaceElevation=T,this._aboveGround=this._renderCoordsHelper.getAltitude(_.eye)>T,this._frustum.update(_),this._shortenFrustumFarPlane(this._frustum),this._updateExtendedFrustum(_)}end(){this._cache.clear()}calculate(_){if(this._allTilesInvisible)return ma.E.INVISIBLE;const T=this._renderCoordsHelper.viewingMode===vi.JY.Global&&_.lij[0]>=uW&&_.lij[0](Math.PI+_.fovY)/2,this._allTilesInvisible||(this._hasExtendedFrustum=x>_.fovY/2,!this._hasExtendedFrustum))return;const A=this._extendedFrustumParameters(),U=this._extendedFrustum.mutablePoints;for(let ne=0;ne<4;ne++){const fe=A.pointIndices[ne],Oe=U[fe],we=this._renderCoordsHelper.getAltitude(Oe);if(A.needsAltitudeAdjustment(we)){switch(this._renderCoordsHelper.worldUpAtPosition(Oe,Mc),fe){case rn.NQ.FAR_BOTTOM_LEFT:case rn.NQ.FAR_TOP_LEFT:case rn.NQ.NEAR_BOTTOM_LEFT:case rn.NQ.NEAR_TOP_LEFT:(0,Rn._l)(this._extendedFrustum.planes[rn.Nu.LEFT],Mc,Mc);break;case rn.NQ.FAR_BOTTOM_RIGHT:case rn.NQ.FAR_TOP_RIGHT:case rn.NQ.NEAR_BOTTOM_RIGHT:case rn.NQ.NEAR_TOP_RIGHT:(0,Rn._l)(this._extendedFrustum.planes[rn.Nu.RIGHT],Mc,Mc)}(0,pt.g)(Mc,Mc,A.direction),this._renderCoordsHelper.intersectInfiniteManifold((0,yc.re)(Oe,Mc),A.zWithMargin,Oe)}}if(this._extendedFrustum.updatePoints(U),(0,Rn.zk)(U[rn.NQ.NEAR_BOTTOM_LEFT],U[rn.NQ.NEAR_BOTTOM_RIGHT],U[rn.NQ.NEAR_TOP_RIGHT],iw),(0,Rn.zk)(U[rn.NQ.NEAR_BOTTOM_RIGHT],U[rn.NQ.NEAR_TOP_RIGHT],U[rn.NQ.NEAR_TOP_LEFT],nw),(0,pt.e)((0,Rn.mJ)(iw),(0,Rn.mJ)(nw))<0){const ne=this._extendedFrustum.mutablePoints;this._aboveGround?[ne[rn.NQ.NEAR_BOTTOM_LEFT],ne[rn.NQ.NEAR_BOTTOM_RIGHT]]=[ne[rn.NQ.NEAR_BOTTOM_RIGHT],ne[rn.NQ.NEAR_BOTTOM_LEFT]]:[ne[rn.NQ.NEAR_TOP_LEFT],ne[rn.NQ.NEAR_TOP_RIGHT]]=[ne[rn.NQ.NEAR_TOP_RIGHT],ne[rn.NQ.NEAR_TOP_LEFT]],this._extendedFrustum.updatePoints(ne)}}_extendedFrustumParameters(){return this._aboveGround?this._extendedFrustumParametersAboveSurface():this._extendedFrustumParametersBelowSurface()}_extendedFrustumParametersAboveSurface(){const _=this._surfaceElevation-sw;return{zWithMargin:_,pointIndices:F_.i.planePointIndices.bottom,direction:-1,needsAltitudeAdjustment:T=>T>_}}_extendedFrustumParametersBelowSurface(){const _=this._surfaceElevation+sw;return{zWithMargin:_,pointIndices:F_.i.planePointIndices.top,direction:1,needsAltitudeAdjustment:T=>T<_}}}const uW=2,dW=6,hW=12,pW=.95,sw=1,Mc=(0,ir.c)(),iw=(0,Rn.Ue)(),nw=(0,Rn.Ue)(),ow=new Wu.Z(Array,d=>{4!==d.length&&(d[0]=new ma.C,d[1]=new ma.C,d[2]=new ma.C,d[3]=new ma.C)},d=>{d[0].release(),d[1].release(),d[2].release(),d[3].release()});class _W{constructor(_){this._camera=new $i.V,this._focusOnMap=[0,0],this._screenRect=(0,Bs.Ue)(),this._tileSize=_.tileSize,this._renderCoordsHelper=_.renderCoordsHelper,this._tilingScheme=_.tilingScheme,this._visibility=new cW(_.renderCoordsHelper)}begin(_,T,x){this._camera.copyFrom(_),this._surfaceElevation=x,this._focusOnMap[0]=T.x,this._focusOnMap[1]=T.y,(0,Bs.al)(0,0,_.fullWidth,_.fullHeight,this._screenRect),this._visibility.begin(this._camera,x)}end(){this._visibility.end()}updateTile(_){_.measures.visibility=this._visibility.calculate(_),_.measures.distance=(0,Bs.TE)(_.extent,this._focusOnMap),_.measures.visibility!==ma.E.INVISIBLE&&this._updateScreenMeasure(_)}_updateScreenMeasure(_){const T=fW,x=1<Ze)return void(_.measures.shouldSplit=!0);_.measures.shouldSplit=!1}_tileSizeWithBias(_){return _.measures.visibility===ma.E.VISIBLE_WHEN_EXTENDED?this._tileSize*mW:this._tileSize}_computeScreenArea(_,T,x,A,U){this._projectToScreen(T,x,A,_.measures.visibility===ma.E.VISIBLE_WHEN_EXTENDED,Hh),(0,Bs.cS)(Q2);for(let fe=0;fe<4;fe++)(0,Bs.Ho)(Q2,Hh[fe]);return(0,Bs.jn)(U,Q2,U),(0,rw.wu)(Hh[0],Hh[1],Hh[2])+(0,rw.wu)(Hh[0],Hh[2],Hh[3])}_projectToScreen(_,T,x,A,U){this._tilingScheme.ensureMaxLod(_),this._tilingScheme.getExtent(_,T,x,Gg),this._toRenderCoords(Gg,0,3,Gh[0]),this._toRenderCoords(Gg,2,3,Gh[1]),this._toRenderCoords(Gg,2,1,Gh[2]),this._toRenderCoords(Gg,0,1,Gh[3]),A&&(this._projectToPlane(Gh,this._camera.frustum[rn.Nu.NEAR]),this._projectToPlane(Gh,this._camera.frustum[rn.Nu.TOP]),this._projectToPlane(Gh,this._camera.frustum[rn.Nu.BOTTOM]));for(let ne=0;ne<4;ne++)this._camera.projectToRenderScreen(Gh[ne],aw),this._camera.renderToScreen(aw,U[ne])}_projectToPlane(_,T){for(let A=0;A<4;A++)Zg[A]=(0,Rn.jH)(T,_[A]);const x=Math.max(Zg[0],Zg[1],Zg[2],Zg[3]);if(x>0){const A=(0,pt.g)(Kg,(0,Rn.mJ)(T),-x);for(let U=0;U<4;U++)(0,pt.a)(_[U],_[U],A)}}_toRenderCoords(_,T,x,A){return Kg[0]=_[T],Kg[1]=_[x],Kg[2]=this._surfaceElevation,this._renderCoordsHelper.toRenderCoords(Kg,this._tilingScheme.spatialReference,A),A}}const Q2=(0,Bs.Ue)(),fW=2,mW=5,Hh=[(0,li.s1)(),(0,li.s1)(),(0,li.s1)(),(0,li.s1)()],Gg=(0,Bs.Ue)(),Kg=(0,ir.c)(),Gh=[(0,ir.c)(),(0,ir.c)(),(0,ir.c)(),(0,ir.c)()],Zg=[0,0,0,0],aw=(0,li.J$)();var lw=v(55745);let ga=class extends Ns.Z{constructor(d){super(d),this.tiles=new On.Z,this.tileSize=512,this._idToTile=new Map,this._handles=new Ji.Z,this._clients=new Set,this._dirty=!1,this._newTiles=new wo.Z}get tilingScheme(){const d=this.tilingSchemeOwner.tilingScheme;return d?d.clone():null}set filterExtent(d){if((0,Qe.pC)(d)&&!d.spatialReference.equals(this.viewState.spatialReference))return void Us.Z.getLogger(this.declaredClass).error("#extent","extent spatial reference needs to be in the same spatial reference as the view");const _=this._get("filterExtent");if(_===d||(0,Qe.pC)(_)&&d&&_.equals(d))return;const T=(0,Qe.pC)(d)?d.clone():null;this._set("filterExtent",T),this._setDirty()}get _filterExtentRect(){if((0,Qe.Wi)(this.filterExtent)||!this.tilingScheme)return null;const d=(0,Bs.Ue)();return(0,lw.G)(this.filterExtent,d,this.tilingScheme.spatialReference),d}get _rootTileIds(){return this._filterExtentRect?this.tilingScheme.rootTilesInExtent(this._filterExtentRect):[[0,0,0]]}set suspended(d){d!==this._get("suspended")&&(this._set("suspended",d),this._setDirty())}get updating(){return this._dirty||!!this._pendingTiles}initialize(){this._handles.add([(0,Ht.YP)(()=>[this.tilingScheme,this.tileSize],()=>this._reset(),Ht.Z_),(0,Ht.YP)(()=>[this.tileSize,this.cameraOnSurface?.location,this.tilingScheme,this.viewState?.contentCamera,this.focus?.location],()=>this._setDirty(),Ht.tX)]),this.scheduler&&(this._frameWorker=this.scheduler.registerTask(Fn.T8.FEATURE_TILE_TREE,this))}destroy(){this._frameWorker=(0,Qe.hw)(this._frameWorker),this._handles=(0,Qe.SC)(this._handles)}addClient(){const d=function yW(){return gW++}();return this._clients.add(d),1===this._clients.size&&this._setDirty(),{remove:()=>this._removeClient(d)}}_removeClient(d){this._clients.delete(d),this._hasClients||this._clear()}get _hasClients(){return this._clients.size>0}_setDirty(){!this._hasClients||this.suspended||this._dirty||(this._frameWorker?(this._dirty=!0,this.notifyChange("updating")):this.runTask(Fn.G5))}_clear(){this.tiles.removeAll(),this._idToTile.clear(),this._reset(),this._dirty=!1,this.notifyChange("updating")}get running(){return this.updating}runTask(d){this._dirty=!1,this._pendingTiles||(this._startUpdate(),(0,Qe.pC)(this._frameWorker)&&(this._frameWorker.priority=Fn.T8.FEATURE_TILE_TREE_ACTIVE)),this._subdivideTilesForView(d),!this._pendingTiles&&(0,Qe.pC)(this._frameWorker)&&(this._frameWorker.priority=Fn.T8.FEATURE_TILE_TREE),this.notifyChange("updating")}_startUpdate(){this.suspended||(this.tilingScheme?(this._tileMeasurements||(this._tileMeasurements=new _W({renderCoordsHelper:this.renderCoordsHelper,tilingScheme:this.tilingScheme,tileSize:this.tileSize})),this._tileMeasurements.begin(this.viewState.contentCamera,this.focus.location,this.cameraOnSurface.location.z),this._pendingTiles=this._getRootTiles()):this._clear())}_reset(){this._newTiles.clear(),this._tileMeasurements=null,this._pendingTiles=null,this._setDirty()}_getRootTiles(){return this._rootTileIds.map(d=>new ma.C(d[0],d[1],d[2],this.tilingScheme))}_purgeHorizonTiles(d){d.sort((_,T)=>{const x=_.measures.screenRect,A=T.measures.screenRect;return x[1]+x[3]-(A[1]+A[3])}),(0,Bs.cS)(hE);for(let _=0;_vW)return d.data.slice(_,d.length);return[]}_subdivideTilesForView(d){if(this._pendingTiles){for(;this._pendingTiles.length>0&&!d.done;){const _=this._pendingTiles.pop();d.madeProgress(),this._filterExtentRect&&!(0,Bs.kK)(this._filterExtentRect,_.extent)||(this._tileMeasurements.updateTile(_),_.measures.visibility!==ma.E.INVISIBLE&&(_.measures.shouldSplit?(this.tilingScheme.ensureMaxLod(_.lij[0]+1),this._pendingTiles.push(..._.getChildren())):this._newTiles.push(_)))}0===this._pendingTiles.length&&(this._updateTiles(this._purgeHorizonTiles(this._newTiles)),this._newTiles.clear(),this._tileMeasurements.end(),this._pendingTiles=null)}}_updateTiles(d){for(const x of this.tiles.items)x.used=!1;const _=d.filter(x=>{const A=this._idToTile.get(x.id);return A?(A.copyMeasurementsFrom(x),A.used=!0):this._idToTile.set(x.id,x),!A}),T=this.tiles.items.filter(x=>!x.used&&(this._idToTile.delete(x.id),!0));this.tiles.removeMany(T),this.tiles.addMany(_),this._sortTiles()}_sortTiles(){this.viewState.fixedContentCamera||this.tiles.sort((d,_)=>d.measures.visibility!==_.measures.visibility?d.measures.visibility===ma.E.VISIBLE_ON_SURFACE?-1:1:d.measures.distance-_.measures.distance),this.tiles.forEach((d,_)=>d.loadPriority=_)}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ga.prototype,"scheduler",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ga.prototype,"renderCoordsHelper",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ga.prototype,"tilingSchemeOwner",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ga.prototype,"cameraOnSurface",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ga.prototype,"focus",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ga.prototype,"viewState",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],ga.prototype,"terrain",void 0),(0,Ve._)([(0,ke.Cb)()],ga.prototype,"tiles",void 0),(0,Ve._)([(0,ke.Cb)()],ga.prototype,"tileSize",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ga.prototype,"tilingScheme",null),(0,Ve._)([(0,ke.Cb)()],ga.prototype,"filterExtent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ga.prototype,"_filterExtentRect",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ga.prototype,"_rootTileIds",null),(0,Ve._)([(0,ke.Cb)({value:!1})],ga.prototype,"suspended",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ga.prototype,"updating",null),ga=(0,Ve._)([(0,Wr.j)("esri.views.3d.layers.support.FeatureTileTree3D")],ga);let gW=0;const hE=(0,Bs.Ue)(),vW=10;var EW=v(30755);let ea=class extends Ns.Z{constructor(){super(...arguments),this._propertiesPool=new Nh.L({camera:$i.V},this),this._lastSeenCameraProjectionValues=new $i.V,this.events=new Va.Z,this.viewingMode=vi.JY.Global,this._cameraChanged=!1,this._updateQueue=new Array,this._processingUpdates=!1}init(d,_){this._set("viewingMode",d),this._set("spatialReference",_),this._set("constraints",new Md({mode:this.viewingMode}))}exit(){this.cameraController=null,this._propertiesPool.destroy(),this._propertiesPool=new Nh.L({camera:$i.V},this)}createInitialCamera(){if(this.viewingMode===vi.JY.Global){const d=(0,En.Iu)(this.spatialReference).radius;this.camera=new $i.V((0,ir.f)(4*d,0,0),(0,ir.f)(d,0,0),(0,ir.f)(0,0,1))}else this.camera=new $i.V((0,ir.f)(0,0,100),(0,ir.f)(0,0,0),(0,ir.f)(0,1,0))}get animation(){return this.cameraController instanceof vg&&(0,Qe.pC)(this.cameraController.viewAnimation)?this.cameraController.viewAnimation:null}get camera(){return this._get("camera")}set camera(d){d!==Gc&&Gc.copyFrom(d),Gc.computeUp(this.viewingMode),cw.camera=Gc,this.events.emit("before-camera-change",cw);const _=this._get("camera");if(this._cameraProjectionChanged(this._lastSeenCameraProjectionValues,Gc)&&(this._lastSeenCameraProjectionValues.copyFrom(Gc),uw.camera=this._lastSeenCameraProjectionValues,this.events.emit("camera-projection-changed",uw)),(!_||!_.equals(Gc))&&(this._set("camera",this._propertiesPool.get("camera").copyFrom(Gc)),this._cameraChanged=!_||!_.almostEquals(Gc),this._cameraChanged)){const T=(0,EW.Fs)(()=>{this._cameraChanged=!1,T.remove()})}}get pixelRatio(){return this.camera.pixelRatio}get contentCamera(){return(0,Qe.pC)(this._contentCamera)?this._contentCamera:this.camera}set contentCamera(d){this._contentCamera=(0,Qe.pC)(d)?d.clone():null}get fixedContentCamera(){return(0,Qe.pC)(this._contentCamera)}get isGlobal(){return this.viewingMode===vi.JY.Global}get isLocal(){return this.viewingMode===vi.JY.Local}get navigating(){return!(!this.cameraController||!this.cameraController.isInteractive)}get stationary(){return!this._cameraChanged&&!this.navigating}get cameraController(){return this._get("cameraController")}set cameraController(d){this.stopActiveCameraController()?(d&&(this.addHandles((0,Ht.gx)(()=>d.state===Kn.Finished||d.state===Kn.Stopped,()=>{this._set("cameraController",null),this.updateCamera(_=>d.onControllerEnd(_))},{sync:!0,once:!0})),d.onControllerStart(this.camera)),this._set("cameraController",d)):d&&(d.state=Kn.Rejected)}switchCameraController(d){return this.cameraController=d,d.state!==Kn.Rejected}stopActiveCameraController(){return!(this.cameraController&&!this.cameraController.stopController())}updateCamera(d){this._updateQueue.push(d),this._processUpdateQueue()}_processUpdateQueue(){if(0===this._updateQueue.length||this._processingUpdates)return;this._processingUpdates=!0;const d=this._updateQueue.shift();Gc.copyFrom(this._get("camera")),d(Gc),this.camera=Gc,this._processingUpdates=!1,this._processUpdateQueue()}_cameraProjectionChanged(d,_){return d.fov!==_.fov||d.fullViewport[0]!==_.fullViewport[0]||d.fullViewport[1]!==_.fullViewport[1]||d.fullViewport[2]!==_.fullViewport[2]||d.fullViewport[3]!==_.fullViewport[3]||d.padding[$i.N.TOP]!==_.padding[$i.N.TOP]||d.padding[$i.N.RIGHT]!==_.padding[$i.N.RIGHT]||d.padding[$i.N.BOTTOM]!==_.padding[$i.N.BOTTOM]||d.padding[$i.N.LEFT]!==_.padding[$i.N.LEFT]}};(0,Ve._)([(0,ke.Cb)()],ea.prototype,"mode",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:g_})],ea.prototype,"animation",null),(0,Ve._)([(0,ke.Cb)({type:$i.V})],ea.prototype,"camera",null),(0,Ve._)([(0,ke.Cb)()],ea.prototype,"pixelRatio",null),(0,Ve._)([(0,ke.Cb)({})],ea.prototype,"_contentCamera",void 0),(0,Ve._)([(0,ke.Cb)({type:$i.V})],ea.prototype,"contentCamera",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ea.prototype,"fixedContentCamera",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ea.prototype,"constraints",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ea.prototype,"events",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ea.prototype,"isGlobal",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ea.prototype,"isLocal",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ea.prototype,"viewingMode",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ea.prototype,"spatialReference",void 0),(0,Ve._)([(0,ke.Cb)()],ea.prototype,"navigating",null),(0,Ve._)([(0,ke.Cb)()],ea.prototype,"stationary",null),(0,Ve._)([(0,ke.Cb)()],ea.prototype,"_cameraChanged",void 0),(0,Ve._)([(0,ke.Cb)()],ea.prototype,"cameraController",null),ea=(0,Ve._)([(0,Wr.j)("esri.views.3d.state.ViewState")],ea);const bW=ea,Gc=new $i.V,cw={camera:null},uw={camera:null};var ya=v(67857),pE=v(91480);class CW{constructor(_,T,x){this.viewingMode=_,this._forEachLayer=T,this._view=x,this._externalIntersectionHandlers=new wo.Z,this._tolerance=Ga.vh,this._tmpRay=(0,yc.Ue)(),this._tmpRegion=(0,Bs.Ue)(),this._validateHUDIntersector=(0,Ga.Z8)(this.viewingMode),this._validateHUDIntersector.options.hud=!1}intersectScreen(_,T,x){return this.intersectRay(this._getPickRay(_,this._tmpRay),dw(this.viewingMode),T,x)}intersectScreenFreePointFallback(_,T,x){return this.intersectRayFreePointFallback(this._getPickRay(_,this._tmpRay),T,x)}intersectRayFreePointFallback(_,T,x){return this.intersectRay(_,dw(this.viewingMode),T,x)||this._intersectRayFreePointLocal(_,T)}intersectRay(_,T,x,A){return T.options.selectionMode=!1,T.options.store=ya.eC.MIN,this.computeIntersection(_,T,A),!!T.results.min&&T.results.min.getIntersectionPoint(x)}getCenterRayWithSubpixelOffset(_,T,x=.5,A=.5){return _.getRenderCenter(mE,x,A),mE[0]+=.0466,mE[1]-=.0123,(0,ju.eW)(_,mE,T)}intersectIntersectorScreen(_,T,x){this.computeIntersection(this._getPickRay(_,this._tmpRay),T,x)}intersectToolIntersectorScreen(_,T,x){const A=this._getPickRay(_,this._tmpRay);this.intersectToolIntersectorRay(A,T,x)}intersectToolIntersectorRay(_,T,x){T.options.selectionMode=!0,this.computeIntersection(_,T,x);const A=T.results.min;this._view.basemapTerrain&&this._view.basemapTerrain.opaque||(0,pE.nn)(A)&&A.intersector!==ya.q7.TERRAIN||(T.options.selectionMode=!1,this.computeIntersection(_,T,x))}setTolerance(_=Ga.vh){this._tolerance=_}addIntersectionHandler(_){this._externalIntersectionHandlers.push(_),this._externalIntersectionHandlers.sort((T,x)=>T.type===ya.q7.TERRAIN?1:x.type===ya.q7.TERRAIN?-1:0)}removeIntersectionHandler(_){null!=this._externalIntersectionHandlers.removeUnordered(_)&&this._externalIntersectionHandlers.sort((T,x)=>T.type===ya.q7.TERRAIN?1:x.type===ya.q7.TERRAIN?-1:0)}_getPickRay(_,T){return(0,ju.u4)(this._view.state.camera,_,T)}_intersectRayFreePointLocal(_,T){if(this.viewingMode!==vi.JY.Local||(0,Qe.Wi)(_))return!1;const x=this._view.renderDataExtent;if((0,Qe.Wi)(x))return(0,pt.a)(T,_.origin,(0,pt.n)(Dn.WM.get(),_.direction)),!0;const A={x:x.xmax-x.xmin,y:x.ymax-x.ymin,z:8*Math.max(x.xmax-x.xmin,x.ymax-x.ymin)},U=Math.max(A.x,A.y,A.z);if(0===U)return(0,pt.a)(T,_.origin,(0,pt.n)(Dn.WM.get(),_.direction)),!0;const ne=this._view.state.camera,fe=Math.max(0,x.xmin-ne.eye[0],ne.eye[0]-x.xmax),Oe=Math.max(0,x.ymin-ne.eye[1],ne.eye[1]-x.ymax),we=Math.sqrt(fe*fe+Oe*Oe),Ze=Math.abs(ne.relativeElevation)+Number.MIN_VALUE,it=Math.max(0,Math.log(U/Ze))**2;let lt=U/Math.max(1,it);lt=Math.max(lt,Math.min(we,U));const dt=(0,pt.l)(_.direction),Tt=(0,pt.g)(Dn.WM.get(),_.direction,0===dt?lt:lt/dt);return(0,pt.a)(T,_.origin,Tt),!0}intersectElevationFromScreen(_,T,x=0,A=null){return this._intersectElevation(this._getPickRay(_,this._tmpRay),T,x,A)}_intersectElevation(_,T,x=0,A=null){if((0,Qe.Wi)(_))return null;const U=(0,Qe.pC)(T)?T.mode:"absolute-height",ne=(0,Qe.pC)(T)?(0,Qe.Pt)(T.offset,0):0,fe="on-the-ground"!==U?ne+x:0,Oe=fe/this._view.renderCoordsHelper.unitInMeters;if("absolute-height"===U){if(this._view.renderCoordsHelper.intersectInfiniteManifold(_,fe,fE)){const Nt=this._view.computeMapPointFromVec3d(fE);return Nt.z-=ne,Nt}return null}const we=this._view.state.camera,Ze=(0,li.Wv)(Dn.WM.get());we.projectToRenderScreen(_.origin,Ze);const it=new hw(null,this._forEachLayer),lt=this._view.slicePlane,dt=(0,Qe.pC)(lt)?(0,pE.e4)(lt):null,Tt=(0,Ga.Z8)(this.viewingMode);Tt.options.store=ya.eC.MIN,Tt.options.verticalOffset=Oe;const mt=_.origin,Mt=(0,pt.a)(Dn.WM.get(),mt,_.direction);Tt.reset(mt,Mt,we),Tt.point=Ze;const Pt=(0,Qe.pC)(A)?"type"in A&&"graphics"===A.type?Nt=>Nt.metadata.layerUid!==A.uid:Nt=>Nt.metadata.graphicUid!==A.uid:null;switch(U){case"relative-to-scene":Tt.intersect(it.layers,Ze,this._tolerance,null,Bt=>((0,Qe.Wi)(Pt)||Pt(Bt))&&Bt.metadata&&Bt.metadata.isElevationSource),this._externalIntersectionHandlers.forAll(Bt=>{Bt.type!==ya.q7.I3S&&Bt.type!==ya.q7.TERRAIN||Bt.intersect(Tt,Bt.slicePlaneEnabled?dt:null,Tt.rayBegin,Tt.rayEnd,Ze)});break;case"on-the-ground":case"relative-to-ground":this._externalIntersectionHandlers.forAll(Nt=>{Nt.isGround&&Nt.intersect(Tt,Nt.slicePlaneEnabled?dt:null,Tt.rayBegin,Tt.rayEnd,Ze)})}if(Tt.results.min.getIntersectionPoint(fE)){const Nt=this._view.computeMapPointFromVec3d(fE);return Nt.z=x,Nt}return null}computeIntersection(_,T,x){if((0,Qe.Wi)(_))return;const A=this._view.state.camera,U=(0,li.Wv)(Dn.WM.get());A.projectToRenderScreen(_.origin,U);const ne=new hw(x,this._forEachLayer);T.options.selectOpaqueTerrainOnly=!x||!("include"in x||"exclude"in x);const fe=_.origin,Oe=(0,pt.a)(Dn.WM.get(),_.origin,_.direction);T.reset(fe,Oe,A),T.intersect(ne.layers,U,this._tolerance);const we=this._view.slicePlane,Ze=(0,Qe.pC)(we)?(0,pE.e4)(we):null;T.intersect(ne.sliceableLayers,U,this._tolerance,Ze);const it=x&&(x.requiresGroundFeedback||x.enableDraped);this._externalIntersectionHandlers.forAll(Tt=>{T.options.isFiltered=!ne.filterLayerUid(Tt.layerUid),(Tt.isGround&&it||!T.options.isFiltered)&&Tt.intersect(T,Tt.slicePlaneEnabled?Ze:null,fe,Oe,U)});const lt=Dn.WM.get(),dt=this._view.basemapTerrain;if(x&&x.enableDraped&&(0,Qe.pC)(dt.spatialReference)&&T.results.ground.getIntersectionPoint(lt)){const Tt=dt.overlayManager.renderer,mt=this._view.renderCoordsHelper.spatialReference,Mt=Dn.WM.get();this._view.renderCoordsHelper.fromRenderCoords(lt,Mt,dt.spatialReference),Mt[2]=(0,Qe.Pt)(this._view.elevationProvider.getElevation(lt[0],lt[1],lt[2],mt,"ground"),0),Tt.intersect(T,Mt,T.results.ground,Pt=>ne.filterRenderGeometry(Pt))}T.sortResults(),this._processHUDResults(T)}_processHUDResults(_){const T=_.results.hud;(0,Bs.JG)(this._tmpRegion,Bs.Gv);const x=this._view.state.camera,A=[],U=this._tmpRegion,ne=Pt=>{const Nt=new MW(Pt);x.projectToRenderScreen(Pt.target.center,Nt.screenPoint),Nt.screenPoint[0]=Math.floor(Nt.screenPoint[0]),Nt.screenPoint[1]=Math.floor(Nt.screenPoint[1]),A.push(Nt),(0,Bs.Ho)(U,Nt.screenPoint)};_.sortResults(T.all),(0,Qe.pC)(T.min.dist)&&ne(T.min);for(const Pt of T.all)T.min.target.object!==Pt.target.object&&T.max.target.object!==Pt.target.object&&ne(Pt);if((0,Qe.pC)(T.max.dist)&&T.max.target.object!==T.min.target.object&&ne(T.max),!A.length)return;U[0]===U[2]&&(U[2]+=1),U[1]===U[3]&&(U[3]+=1);const fe=x.fullWidth,Oe=x.fullHeight,we=Math.max(0,U[0]-$g),Ze=Math.max(0,U[1]-$g),it=Math.min((0,Bs.bf)(U)+2*$g,fe-we),lt=Math.min((0,Bs.Cb)(U)+2*$g,Oe-Ze),dt=new Uint8Array(it*lt*4);this._view._stage.renderView.readHUDVisibility(we,Ze,it,lt,dt);let Tt=!0;const mt=(0,Qe.Wi)(_.results.max.dist);let Mt=0;for(const Pt of A)for(const Nt of TW)if(dt[4*(Math.min(Pt.screenPoint[0]+Nt[0],fe)-U[0]+(Math.min(Pt.screenPoint[1]+Nt[1],Oe)-U[1])*it)]){Tt&&(_.results.min.copy(Pt.result),Tt=!1),mt&&_.results.max.copy(Pt.result),_.options.store===ya.eC.ALL&&_.results.all.splice(Mt++,0,Pt.result);break}}}const $g=1,TW=(()=>{const d=[],_=$g;for(let T=-_;T<=_;T++)for(let x=-_;x<=_;x++)d.push([x+_,T+_]);return d})();class MW{constructor(_){this.result=_,this.screenPoint=(0,li.J$)()}}let _E;function dw(d){return _E&&_E.viewingMode===d||(_E=(0,Ga.Z8)(d)),_E}class hw{constructor(_,T){this.layers=new Array,this.sliceableLayers=new Array,this.include=_?.include,this.exclude=_?.exclude,T(x=>{x.isPickable&&this.filterLayerUid(x.apiLayerUid)&&(x.isSliceable?this.sliceableLayers:this.layers).push(x)})}filterLayerUid(_){const{include:T,exclude:x}=this;return(0,Qe.Wi)(_)?null==T&&null==x:(null==T||T.has(_))&&(null==x||!x.has(_))}filterRenderGeometry(_){return this.filterLayerUid(_.layerUid)}}function pw(d){return"object"==typeof d&&"intersect"in d}const fE=(0,ir.c)(),mE=(0,li.J$)();var PW=v(39912);let Yg=class extends(Va.Z.EventedMixin(Ns.Z)){constructor(d){super(d),this._im=new Array,this._ground=new Array,this._scene=new Array,this._handles=new Map,this.lastElevationQuery=null,this.elevationCacheEnabled=!1}get spatialReference(){return this.view?.basemapTerrain?.spatialReference}destroy(){this._elevationQueryCached=(0,Qe.SC)(this._elevationQueryCached)}get _elevationQuery(){return(0,Qe.Wi)(this._elevationQueryCached)&&(this._elevationQueryCached=new PW.K(this.view.resourceController.scheduler,this.view.spatialReference,()=>this.view.map&&this.view.map.ground,{maximumAutoTileRequests:4})),this._elevationQueryCached}enableElevationCache(d){d||(this.lastElevationQuery=null),this.elevationCacheEnabled=d}getElevation(d,_,T,x,A){if(this.elevationCacheEnabled&&null!=this.lastElevationQuery){const ne=this.lastElevationQuery;if(d===ne.x&&_===ne.y&&T===ne.z&&(0,hc.fS)(x,ne.spatialReference)&&A===ne.queryContext)return ne.result}let U=null;return U=gE(U,this._im,d,_,T,x,A),(0,Qe.Wi)(U)&&(U=gE(U,this._ground,d,_,T,x,A)),"scene"===A&&(U=gE(U,this._scene,d,_,T,x,A)),this.elevationCacheEnabled&&(this.lastElevationQuery={x:d,y:_,z:T,spatialReference:x,queryContext:A,result:U}),U}queryElevation(d,_,T,x,A,U=null,ne=0){const fe=(0,ws.hh)();return this._elevationQuery.queryElevation(d,_,U,ne).then(Oe=>{"scene"===A&&(Oe=gE(Oe,this._scene,d,_,T,x,A)),fe.resolve(Oe)}).catch(Oe=>{(0,ws.D_)(Oe)?fe.reject(Oe):fe.resolve(this.getElevation(d,_,T,x,A))}),fe.promise}register(d,_){this._handles.set(_,_.on("elevation-change",T=>this.emit("elevation-change",T))),this._providersFromContext(d).push(_)}unregister(d){this._handles.has(d)&&(this._handles.get(d).remove(),this._handles.delete(d));for(const _ of[this._im,this._ground,this._scene]){const T=_.indexOf(d);T>-1&&_.splice(T,1)}}_providersFromContext(d){switch(d){case"ground":return this._ground;case"im":return this._im;case"scene":return this._scene}}};function gE(d,_,T,x,A,U,ne){for(const fe of _){const Oe=fe.getElevation(T,x,A,U,ne);(0,Qe.pC)(Oe)&&(d=(0,Qe.pC)(d)?Math.max(Oe,d):Oe)}return d}(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Yg.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)()],Yg.prototype,"spatialReference",null),Yg=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.CombinedElevationProvider")],Yg);class Kh{static isValidProfile(_){return _ in Kh.profiles}static getDefaultProfile(){return(0,So.Z)("trident")||(0,So.Z)("esri-iPhone")?"low":"medium"}static apply(_,T){const x=Kh.profiles[_];T.graphics3D.maxTotalNumberOfFeatures=x.graphics3D.maxTotalNumberOfFeatures,T.graphics3D.maxTotalNumberOfPrimitives=x.graphics3D.maxTotalNumberOfPrimitives,T.graphics3D.polygonLodFactor=x.graphics3D.polygonLodFactor,T.graphics3D.polylineLodFactor=x.graphics3D.polylineLodFactor,T.graphics3D.snapshotAvailable=x.graphics3D.snapshotAvailable,T.graphics3D.skipHighSymbolLods=x.graphics3D.skipHighSymbolLods;{const A=T.sceneService.object,U=x.sceneService.object;A.lodFactor=U.lodFactor,A.lodCrossfadeinDuration=U.lodCrossfadeinDuration,A.lodCrossfadeoutDuration=U.lodCrossfadeoutDuration,A.lodCrossfadeUncoveredDuration=U.lodCrossfadeUncoveredDuration}T.sceneService.point.lodFactor=x.sceneService.point.lodFactor,T.sceneService.integratedMesh.lodFactor=x.sceneService.integratedMesh.lodFactor,T.sceneService.pointCloud.lodFactor=x.sceneService.pointCloud.lodFactor,T.sceneService.uncompressedTextureDownsamplingEnabled=x.sceneService.uncompressedTextureDownsamplingEnabled,T.tiledSurface.lodBias=x.tiledSurface.lodBias,T.tiledSurface.angledSplitBias=x.tiledSurface.angledSplitBias,T.tiledSurface.reduceTileLevelDifferences=x.tiledSurface.reduceTileLevelDifferences,T.tiledSurface.textureFadeDuration=x.tiledSurface.textureFadeDuration,T.heatmap.pixelRatio=x.heatmap.pixelRatio,T.heatmap.maxTotalNumberOfFeatures=x.heatmap.maxTotalNumberOfFeatures,T.weatherFadeDuration=x.weatherFadeDuration,T.antialiasingEnabled=x.antialiasingEnabled,T.physicallyBasedRenderingEnabled=x.physicalBasedRenderingEnabled,T.highQualityTransparency=x.highQualityTransparency,T.memoryLimit=x.memoryLimit,T.additionalCacheMemory=x.additionalCacheMemory,T.frameRate=x.frameRate,T.maximumRenderResolution=x.maximumRenderResolution,T.maximumPixelRatio=x.maximumPixelRatio}}function _w(){const d=!!(0,So.Z)("esri-mobile"),_=!!(0,So.Z)("ios"),T=(0,mi.HA)(400);return{low:{graphics3D:{maxTotalNumberOfFeatures:25e3,maxTotalNumberOfPrimitives:85e4,polygonLodFactor:.5,polylineLodFactor:1,snapshotAvailable:!1,skipHighSymbolLods:!0},heatmap:{pixelRatio:.125,maxTotalNumberOfFeatures:25e3},sceneService:{object:{lodFactor:.2,lodCrossfadeinDuration:(0,mi.HA)(0),lodCrossfadeoutDuration:(0,mi.HA)(0),lodCrossfadeUncoveredDuration:(0,mi.HA)(0)},point:{lodFactor:1},integratedMesh:{lodFactor:.6},pointCloud:{lodFactor:.5},uncompressedTextureDownsamplingEnabled:!0},tiledSurface:{lodBias:-1,angledSplitBias:.5,reduceTileLevelDifferences:!1,textureFadeDuration:(0,mi.HA)(0)},weatherFadeDuration:(0,mi.HA)(0),antialiasingEnabled:!1,physicalBasedRenderingEnabled:!1,highQualityTransparency:!1,memoryLimit:200,additionalCacheMemory:0,frameRate:0,maximumRenderResolution:void 0,maximumPixelRatio:1},medium:{graphics3D:{maxTotalNumberOfFeatures:5e4,maxTotalNumberOfPrimitives:17e5,polygonLodFactor:d?.8:1,polylineLodFactor:d?1.2:1.5,snapshotAvailable:!_,skipHighSymbolLods:!1},heatmap:{pixelRatio:.25,maxTotalNumberOfFeatures:5e4},sceneService:{object:{lodFactor:1,lodCrossfadeinDuration:(0,mi.HA)(0),lodCrossfadeoutDuration:(0,mi.HA)(0),lodCrossfadeUncoveredDuration:T},point:{lodFactor:1},integratedMesh:{lodFactor:1},pointCloud:{lodFactor:1},uncompressedTextureDownsamplingEnabled:d},tiledSurface:{lodBias:0,angledSplitBias:1,reduceTileLevelDifferences:!(0,So.Z)("disable-feature:reduce-map-tile-levels"),textureFadeDuration:T},weatherFadeDuration:T,antialiasingEnabled:!0,physicalBasedRenderingEnabled:!0,highQualityTransparency:!0,memoryLimit:d?600:750,additionalCacheMemory:d?0:150,frameRate:0,maximumRenderResolution:void 0,maximumPixelRatio:1},high:{graphics3D:{maxTotalNumberOfFeatures:5e4,maxTotalNumberOfPrimitives:17e5,polygonLodFactor:d?1.2:2,polylineLodFactor:d?1.2:2,snapshotAvailable:!_,skipHighSymbolLods:!1},heatmap:{pixelRatio:.5,maxTotalNumberOfFeatures:5e4},sceneService:{object:{lodFactor:1,lodCrossfadeinDuration:(0,mi.HA)(0),lodCrossfadeoutDuration:(0,mi.HA)(0),lodCrossfadeUncoveredDuration:T},point:{lodFactor:1},integratedMesh:{lodFactor:1},pointCloud:{lodFactor:1},uncompressedTextureDownsamplingEnabled:!1},tiledSurface:{lodBias:0,angledSplitBias:1,reduceTileLevelDifferences:!(0,So.Z)("disable-feature:reduce-map-tile-levels"),textureFadeDuration:T},weatherFadeDuration:T,antialiasingEnabled:!0,physicalBasedRenderingEnabled:!0,highQualityTransparency:!0,memoryLimit:d?900:1500,additionalCacheMemory:0,frameRate:0,maximumRenderResolution:d?void 0:4096,maximumPixelRatio:d?1:void 0}}}Kh.debug={reset(){const d=_w();for(const _ in d)Kh.profiles[_]=d[_]}},function(d){d.profiles=_w()}(Kh||(Kh={}));const yE=Kh;var Zh=v(67709);let Vu=class extends Ns.Z{constructor(){super(...arguments),this.color=new lo.Z([0,255,255]),this.haloColor=null,this.haloOpacity=1,this.fillOpacity=.25,this.shadowOpacity=.4,this.shadowColor=new lo.Z([0,0,0]),this.shadowDifference=.2}static toEngineOptions(d){const _=lo.Z.toUnitRGBA(d.color),T=(0,Qe.pC)(d.haloColor)?lo.Z.toUnitRGBA(d.haloColor):_,x=lo.Z.toUnitRGBA(d.shadowColor);return{color:(0,Zh.f)(_[0],_[1],_[2],_[3]),haloColor:(0,Zh.f)(T[0],T[1],T[2],T[3]),haloOpacity:d.haloOpacity,haloOpacityOccluded:.25*d.haloOpacity,fillOpacity:d.fillOpacity,fillOpacityOccluded:.25*d.fillOpacity,shadowOpacity:d.shadowOpacity,shadowColor:(0,Tn.f)(x[0],x[1],x[2],x[3]),occludedShadowOpacity:d.shadowOpacity*(1-d.shadowDifference)}}};(0,Ve._)([(0,ke.Cb)({type:lo.Z})],Vu.prototype,"color",void 0),(0,Ve._)([(0,ke.Cb)({type:lo.Z})],Vu.prototype,"haloColor",void 0),(0,Ve._)([(0,ke.Cb)()],Vu.prototype,"haloOpacity",void 0),(0,Ve._)([(0,ke.Cb)()],Vu.prototype,"fillOpacity",void 0),(0,Ve._)([(0,ke.Cb)()],Vu.prototype,"shadowOpacity",void 0),(0,Ve._)([(0,ke.Cb)({type:lo.Z})],Vu.prototype,"shadowColor",void 0),(0,Ve._)([(0,ke.Cb)()],Vu.prototype,"shadowDifference",void 0),Vu=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.HighlightOptions")],Vu);const q2=Vu;var OW=v(35082),xW=v(39636),DW=v(77294);class SW{constructor(_,T){this.spatialReference=T,this.unitInMeters=(0,dM.c9)(this.spatialReference,(0,En.Iu)(this.spatialReference).metersPerDegree),this._geometryServiceURLPromise=(0,OW.getGeometryServiceURL)(_&&_.get("portalItem")).catch(()=>{throw new ai.Z("mapcoordshelper:missing-geometry-service","Must specify geometryService in esri/config")})}toGeographic(_){var T=this;return(0,kr.Z)(function*(){const x=yield T._geometryServiceURLPromise;let A,U=!0;Array.isArray(_[0])&&"number"!=typeof _[0]?A=_:(A=[_],U=!1);const ne=A.map(we=>we instanceof vn.Z?we:new vn.Z(we,T.spatialReference)),fe=new DW.Z({geometries:ne,outSpatialReference:to.Z.WGS84}),Oe=(yield(0,xW.i)(x,fe)).map(we=>"point"===we.type?[we.x,we.y]:void 0);return U?Oe:Oe[0]})()}}let fu=class extends Ns.Z{constructor(){super(...arguments),this.minTotalNumberOfFeatures=2e3,this.maxTotalNumberOfFeatures=5e4,this.maxTotalNumberOfPrimitives=17e5,this.snapshotAvailable=!0,this.polygonLodFactor=1,this.polylineLodFactor=1,this.skipHighSymbolLods=!1}};(0,Ve._)([(0,ke.Cb)()],fu.prototype,"minTotalNumberOfFeatures",void 0),(0,Ve._)([(0,ke.Cb)()],fu.prototype,"maxTotalNumberOfFeatures",void 0),(0,Ve._)([(0,ke.Cb)()],fu.prototype,"maxTotalNumberOfPrimitives",void 0),(0,Ve._)([(0,ke.Cb)()],fu.prototype,"snapshotAvailable",void 0),(0,Ve._)([(0,ke.Cb)()],fu.prototype,"polygonLodFactor",void 0),(0,Ve._)([(0,ke.Cb)()],fu.prototype,"polylineLodFactor",void 0),(0,Ve._)([(0,ke.Cb)()],fu.prototype,"skipHighSymbolLods",void 0),fu=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.QualitySettings.Graphics3DSettings")],fu);let zu=class extends Ns.Z{constructor(){super(...arguments),this.lodFactor=1}};(0,Ve._)([(0,ke.Cb)()],zu.prototype,"lodFactor",void 0),zu=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.QualitySettings.LoDFactorSettings")],zu);let vE=class extends zu{constructor(){super(...arguments),this.lodCrossfadeinDuration=(0,mi.HA)(0),this.lodCrossfadeoutDuration=(0,mi.HA)(0),this.lodCrossfadeUncoveredDuration=(0,mi.HA)(0)}};vE=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.QualitySettings.LoDFactor3DObjectSettings")],vE);let Ud=class extends Ns.Z{constructor(){super(...arguments),this.object=new vE,this.point=new zu,this.integratedMesh=new zu,this.pointCloud=new zu,this.uncompressedTextureDownsamplingEnabled=!1}};(0,Ve._)([(0,ke.Cb)({type:vE})],Ud.prototype,"object",void 0),(0,Ve._)([(0,ke.Cb)({type:zu})],Ud.prototype,"point",void 0),(0,Ve._)([(0,ke.Cb)({type:zu})],Ud.prototype,"integratedMesh",void 0),(0,Ve._)([(0,ke.Cb)({type:zu})],Ud.prototype,"pointCloud",void 0),(0,Ve._)([(0,ke.Cb)()],Ud.prototype,"uncompressedTextureDownsamplingEnabled",void 0),Ud=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.QualitySettings.SceneServiceSettings")],Ud);let $h=class extends Ns.Z{constructor(){super(...arguments),this.lodBias=0,this.angledSplitBias=1,this.reduceTileLevelDifferences=!0,this.textureFadeDuration=(0,mi.HA)(400)}};(0,Ve._)([(0,ke.Cb)()],$h.prototype,"lodBias",void 0),(0,Ve._)([(0,ke.Cb)()],$h.prototype,"angledSplitBias",void 0),(0,Ve._)([(0,ke.Cb)()],$h.prototype,"reduceTileLevelDifferences",void 0),(0,Ve._)([(0,ke.Cb)()],$h.prototype,"textureFadeDuration",void 0),$h=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.QualitySettings.TiledSurfaceSettings")],$h);let J_=class extends Ns.Z{constructor(){super(...arguments),this.pixelRatio=1,this.maxTotalNumberOfFeatures=5e4}};(0,Ve._)([(0,ke.Cb)()],J_.prototype,"pixelRatio",void 0),(0,Ve._)([(0,ke.Cb)()],J_.prototype,"maxTotalNumberOfFeatures",void 0),J_=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.QualitySettings.HeatmapSettings")],J_);let ol=class extends Ns.Z{constructor(){super(...arguments),this.graphics3D=new fu,this.sceneService=new Ud,this.tiledSurface=new $h,this.heatmap=new J_,this.weatherFadeDuration=(0,mi.HA)(400),this.antialiasingEnabled=!0,this.physicallyBasedRenderingEnabled=!1,this.highQualityTransparency=!0,this.memoryLimit=void 0,this.additionalCacheMemory=void 0,this.frameRate=void 0,this.maximumRenderResolution=void 0,this.maximumPixelRatio=void 0}};(0,Ve._)([(0,ke.Cb)({type:fu})],ol.prototype,"graphics3D",void 0),(0,Ve._)([(0,ke.Cb)({type:Ud})],ol.prototype,"sceneService",void 0),(0,Ve._)([(0,ke.Cb)({type:$h})],ol.prototype,"tiledSurface",void 0),(0,Ve._)([(0,ke.Cb)({type:J_})],ol.prototype,"heatmap",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"weatherFadeDuration",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"antialiasingEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"physicallyBasedRenderingEnabled",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"highQualityTransparency",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"memoryLimit",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"additionalCacheMemory",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"frameRate",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"maximumRenderResolution",void 0),(0,Ve._)([(0,ke.Cb)()],ol.prototype,"maximumPixelRatio",void 0),ol=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.QualitySettings.QualitySettings")],ol);const fw=ol;var AW=v(13986),Xg=v(39135),mw=v(1036);function gw(d){return"function"==typeof d.getUsedMemory}let Ol=class extends Ns.Z{constructor(d){super(d),this._quality=1,this._memoryUsed=0,this._updating=!1,this.minQuality=.1,this._stableQuality=0,this._downscaleMemoryUsed=0,this._canFastRecover=!1,this._memoryPredicted=0,this._cacheStorage=new mw.WJ,this._warnMemoryUsage=null,this._numQualityChanges=0,this._maxMemory=500,this._additionalCacheMemory=100}destroy(){this._cacheStorage.destroy()}set maxMemory(d){null==d||d<=0||(this._stableQuality=0,this._canFastRecover=!1,this._maxMemory=0&&(this._additionalCacheMemory=d)}get additionalCacheMemory(){return this._additionalCacheMemory}get memoryFactor(){return this._quality}get updating(){return this._updating}get usedMemory(){return this._memoryUsed}newCache(d,_){return new mw.Xq(d,this._cacheStorage,_)}resetStableQuality(){this._stableQuality=0}disableMemCache(){this.additionalCacheMemory=-4096}update(){if(this._updateMemory(),this._memoryPredicted<=0&&!this._updating)return;let d=this._layersUpdating();this._memoryPredicted<.6&&this._canFastRecover?(this._downscaleMemoryUsed=0,this._stableQuality=0,this._canFastRecover=!1,this._updateQuality(1)):d?(this._memoryPredicted>1.1||this._memoryUsed>1)&&(this._stableQuality>0?(this._downscaleMemoryUsed=0,this._updateQuality(this._stableQuality)):this._quality>this.minQuality&&this._downscaleMemoryUsed1?(this._stableQuality=0,this._canFastRecover=!1,d=this._updateQuality(this._quality/1.3),this._downscaleMemoryUsed=this._memoryPredicted):this._stableQuality!==this._quality&&(this._memoryUsed<.75&&this._quality<1?(this._stableQuality=this._quality,d=this._updateQuality(this._quality+.05)):this._quality<1&&(this._canFastRecover=!0))),this._updating=d}_updateQuality(d){return(d=Math.min(Math.max(d,this.minQuality),1))!==this._quality&&(this._quality=d,++this._numQualityChanges,!0)}_layersUpdating(){return this.view.allLayerViews.some(d=>!!d.updating)}_updateMemory(){let d=0,_=0;this.view.basemapTerrain&&this.view.basemapTerrain.getUsedMemory&&(d+=this.view.basemapTerrain.getUsedMemory());const T=this.view._stage&&this.view._stage.renderView&&this.view._stage.renderView.edgeView;(0,Qe.pC)(T)&&(d+=T.usedMemory),this.view.allLayerViews&&this.view.allLayerViews.forEach(ne=>{if(gw(ne)){const fe=ne.ignoresMemoryFactor()?this._quality:1;d+=ne.getUsedMemory()*fe,_+=ne.getUnloadedMemory()*fe}});const x=(0,Qe.Wi)(this._warnMemoryUsage)||Math.round(10*d)!==Math.round(10*this._warnMemoryUsage),A=1048576*this.maxMemory;if(d>A&&x){this._warnMemoryUsage=d;const ne=Oe=>(Oe/1048576).toLocaleString(void 0,{maximumFractionDigits:1})+" MB",fe=Math.round(100*this._quality);Us.Z.getLogger(this.declaredClass).warn(`Memory Limit exceeded! Limit: ${ne(A)} Current: ${ne(d)} Projected: ${ne(d+_)} Quality: ${fe}%`)}this._memoryUsed=d/A,this._memoryPredicted=(d+_)/A,this._cacheStorage.maxSize=Math.max(0,A-d+1048576*this.additionalCacheMemory)}get test(){const d=this;return{cacheStorage:this._cacheStorage,resetQualityChanges:()=>{const _=d._numQualityChanges;return d._numQualityChanges=0,_}}}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ol.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"maxMemory",null),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"additionalCacheMemory",null),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"memoryFactor",null),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"usedMemory",null),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"_quality",void 0),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"_memoryUsed",void 0),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"_updating",void 0),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"_stableQuality",void 0),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"_maxMemory",void 0),(0,Ve._)([(0,ke.Cb)()],Ol.prototype,"_additionalCacheMemory",void 0),Ol=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.MemoryControllerImpl")],Ol);var tO=v(91540);let bE=class extends Ns.Z{constructor(){super(...arguments),this.updating=!1}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],bE.prototype,"updating",void 0),bE=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.ResourceControllerMain")],bE);let Bd=class extends bE{constructor(){super(...arguments),this._scheduler=null,this._memoryController=null,this._streamDataLoader=null,this._scheduleTask=Fn.sq,this._handles=new Ji.Z,this._frameTask=null}initialize(){this._scheduler=(0,Fn.z4)(),this._memoryController=function RW(d){return new Ol({view:d})}(this.view),this._streamDataLoader=new tO.wu,this._streamDataLoader.setup(Xg.NT,Xg.Ty,this._scheduler),this._handles.add([(0,Ht.YP)(()=>this.view.state?.mode,d=>this._scheduler.state=d,Ht.Z_),(0,Ht.YP)(()=>this.view.stationary,()=>this._stationaryChangedHandler())]),this._frameTask=(0,gd.A)({update:d=>this._frame(d)}),this._scheduleTask=this._scheduler.registerTask(Fn.T8.RESOURCE_CONTROLLER)}destroy(){this._handles=(0,Qe.SC)(this._handles),this._scheduleTask.remove(),this._frameTask=(0,Qe.hw)(this._frameTask),this._streamDataLoader=(0,Qe.SC)(this._streamDataLoader),this._memoryController=(0,Qe.SC)(this._memoryController),this._scheduler=(0,Qe.SC)(this._scheduler)}get updating(){return!!(this._memoryController?.updating||this._streamDataLoader?.updating||this._scheduleTask?.updating)}get scheduler(){return this._scheduler}get memoryController(){return this._memoryController}schedule(d,_,T){return this._scheduleTask.schedule(d,_,T)}createStreamDataRequester(d){const _=this._streamDataLoader;return{request:(T,x,A)=>_.request(T,x,d,A),get busy(){return!_.hasDownloadSlots(d)}}}_frame(d){this.view.suspended||this.view.stateManager&&(this.view.stateManager.step((0,mi.D9)(d.deltaTime)),!this._scheduler)||(this._scheduler.updateBudget(d)?(this._memoryController.update(),this._scheduler.frame()):this._memoryController.updating&&this._memoryController.update())}_stationaryChangedHandler(){this.memoryController.resetStableQuality()}get test(){return{getQueueStats:d=>this._streamDataLoader.test.loadQueue.getStatsForType(d)}}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Bd.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)()],Bd.prototype,"_scheduler",void 0),(0,Ve._)([(0,ke.Cb)()],Bd.prototype,"_memoryController",void 0),(0,Ve._)([(0,ke.Cb)()],Bd.prototype,"_streamDataLoader",void 0),(0,Ve._)([(0,ke.Cb)()],Bd.prototype,"_scheduleTask",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Bd.prototype,"updating",null),Bd=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.ResourceControllerImpl")],Bd);var UW=v(27306),Cr=v(61779);class jW{constructor(_,T){if(this.layer=null,this.memory=0,this.displayedNumberOfFeatures=0,this.maximumNumberOfFeatures=null,this.totalNumberOfFeatures=null,this.layer=_.layer,this.memory=(0,Cr.wP)(_)?T.basemapTerrain.getUsedMemoryForLayerView(_):_.getUsedMemory(),function BW(d){return"performanceInfo"in d}(_)){const x=_.performanceInfo;this.displayedNumberOfFeatures=x.displayedNumberOfFeatures,this.maximumNumberOfFeatures=x.maximumNumberOfFeatures,this.totalNumberOfFeatures=x.totalNumberOfFeatures}}}class FW{constructor(_){if(this.totalMemory=0,this.usedMemory=0,this.quality=1,this.load=0,this.terrainMemory=0,this.edgesMemory=0,this.layerPerformanceInfos=new Array,(0,Qe.pC)(_.resourceController)){const x=_.resourceController.memoryController;this.totalMemory=x.maxMemory*UW.Y8.MEGABYTES,this.usedMemory=Math.round(x.usedMemory*this.totalMemory),this.quality=x.memoryFactor,this.load=_.resourceController.scheduler.load}this.terrainMemory=_.basemapTerrain?_.basemapTerrain.getUsedMemory():0;const T=_._stage&&_._stage.renderView&&_._stage.renderView.edgeView;this.edgesMemory=(0,Qe.pC)(T)?T.usedMemory:0,_.allLayerViews.items.forEach(x=>{(gw(x)||(0,Cr.wP)(x))&&this.layerPerformanceInfos.push(new jW(x,_))}),this.layerPerformanceInfos.sort((x,A)=>A.memory-x.memory)}}var NW=v(9160),WW=v(93831),VW=v(98973);class zW{constructor(_){this._gltfLoading=new Map,this._wosrLoading=new Map,this._gltfMemCache=_("gltf-resources",()=>{}),this._wosrMemCache=_("wosr-resources",()=>{})}destroy(){this._gltfLoading.forEach(_=>_.abortController.abort()),this._wosrLoading.forEach(_=>_.abortController.abort()),this._gltfMemCache.destroy(),this._wosrMemCache.destroy()}loadGLTF(_,T,x){const A=x?`gltfPBR:${_}`:`gltf:${_}`,U=this._gltfMemCache.get(A);return(0,Qe.pC)(U)?Promise.resolve(U):this._loadOnce(this._gltfLoading,this._gltfMemCache,A,ne=>(0,WW.Q)(new NW.C(ne.streamDataRequester),_,ne,x),T)}loadWOSR(_,T){const x=`wosr:${_}:${T.disableTextures}`,A=this._wosrMemCache.get(x);return(0,Qe.pC)(A)?Promise.resolve(A):this._loadOnce(this._wosrLoading,this._wosrMemCache,x,U=>(0,VW.zD)(_,U),T)}_loadOnce(_,T,x,A,U){var ne=this;return(0,kr.Z)(function*(){(0,ws.k_)(U);const fe=(0,ws.fu)(U,()=>ne._abortLoad(_,x));let Oe=_.get(x);if(Oe)Oe.refCount++;else{const we=new AbortController;Oe={refCount:1,abortController:we,promise:A({...U,signal:we.signal})},_.set(x,Oe)}try{const we=yield Oe.promise;return T.put(x,we,we.size),_.delete(x),(0,ws.k_)(U),we}finally{(0,Qe.hw)(fe)}})()}_abortLoad(_,T){const x=_.get(T);(0,Qe.pC)(x)&&--x.refCount>0||(_.delete(T),(0,Qe.pC)(x)&&x.abortController.abort())}}var Fi=v(42743),HW=v(81695);class GW extends f_{constructor(_,T,x,A){super(T,A),this._streamDataRequester=_,this._parameters=x}fromUrl(_,T,x){var A=this;return(0,kr.Z)(function*(){(0,ws.k_)(x);const U=(0,Qe.pC)(x)&&x.signal,ne=A.makeUid(_,T);let fe=A._textureRequests.get(ne);if(!fe){const Oe=new AbortController,we=A._streamDataRequester.request(_,"image",{uid:ne,signal:Oe.signal});fe={referenceCount:0,texture:null,textureAsync:null,abortController:Oe},A._textureRequests.set(ne,fe),fe.textureAsync=we.then(function(){var Ze=(0,kr.Z)(function*(it){const lt=A._createTexture(_,it,T);return fe.texture=lt,fe.abortController=null,A._stage.add(lt),yield A._stage.load(lt),{uid:ne,texture:lt,release:()=>A._release(ne)}});return function(it){return Ze.apply(this,arguments)}}(),Ze=>{throw fe.abortController=null,Ze})}return fe.referenceCount++,new Promise((Oe,we)=>{(0,ws.fu)(U,()=>{we((0,ws.zE)())}),fe.textureAsync.then(Oe,we)}).catch(Oe=>{throw A._release(ne),Oe})})()}_createTexture(_,T,x){const A={...this._parameters,powerOfTwoResizeMode:Fi.CE.PAD};if((0,ST.zd)(_)){if(x||0===T.width&&0===T.height){const U=T.width?T.height/T.width:1;x=x||64,U>1?(T.width=Math.round(x/U),T.height=x):(T.width=x,T.height=Math.round(x*U))}this._stage.renderView&&this._stage.renderView.renderingContext.driverTest.svgAlwaysPremultipliesAlpha&&(A.preMultiplyAlpha=!1)}return A.width=T.width,A.height=T.height,new HW.x(T,A)}}class KW{constructor(_){this.textures=null,this.streamDataRequester=null,this._graphicsOwners=[],this._screenSizePerspectiveHandles=null,this.cimSymbolRasterizer=null,this._viewState=_.viewState,this._view=_.view,this._pointsOfInterest=_.pointsOfInterest,this.streamDataRequester=_.resourceController.createStreamDataRequester(Xg.Bh.SYMBOLOGY),this.objectResourceCache=new zW((x,A)=>_.resourceController.memoryController.newCache(x,A)),this.textures=new GW(this.streamDataRequester,_.view._stage,{preMultiplyAlpha:!0,wrap:{s:xt.e8.CLAMP_TO_EDGE,t:xt.e8.CLAMP_TO_EDGE}},_.resourceController.scheduler);const T=(0,En.Iu)(this._view.spatialReference).radius;this.screenSizePerspectiveSettings=(0,aE.Gw)(_.viewingMode,T),this.screenSizePerspectiveSettingsLabels=(0,aE.n9)(_.viewingMode,T)}destroy(){(0,Qe.SC)(this.textures),this.textures=null,this.streamDataRequester=null}addGraphicsOwner(_){if(!_)return(0,Sp.kB)();this._graphicsOwners.push(_);const T=(0,Ht.YP)(()=>_.layer?.screenSizePerspectiveEnabled,()=>this._updateScreenSizePerspectiveEnabled());return this._updateScreenSizePerspectiveEnabled(),(0,Sp.kB)(()=>{T.remove(),(0,pd.e$)(this._graphicsOwners,_),this._updateScreenSizePerspectiveEnabled()})}_updateScreenSizePerspectiveEnabled(){const _=this._graphicsOwners.some(T=>!0===T.layer?.screenSizePerspectiveEnabled);if(_&&!this._screenSizePerspectiveHandles){this._screenSizePerspectiveHandles=new Ji.Z;const T=()=>this._updateScreenSizePerspectiveSettings();this._screenSizePerspectiveHandles.add([(0,Ht.YP)(()=>this._pointsOfInterest.centerOnSurfaceInfrequent.distance,T,Ht.Z_),this._viewState.events.on("camera-projection-changed",T)]),this._updateScreenSizePerspectiveSettings()}else!_&&this._screenSizePerspectiveHandles&&(this._screenSizePerspectiveHandles.destroy(),this._screenSizePerspectiveHandles=null)}_updateScreenSizePerspectiveSettings(){CE.distance=this._pointsOfInterest.centerOnSurfaceInfrequent.distance,CE.fovY=this._viewState.camera.fovY,this.screenSizePerspectiveSettings.update(CE),this.screenSizePerspectiveSettingsLabels.update(CE),this._view._stage.renderView.requestRender()}get test(){return{screenSizePerspectiveHandles:this._screenSizePerspectiveHandles}}}const CE={distance:0,fovY:0};v(9260),v(89673);var ZW=v(69852),$W=v(26531),YW=v(21716);class Yh{constructor(_,T,x=""){this.graphics=_,this._symbol=new ZW.Z({symbolLayers:[new $W.Z({material:{color:T},outline:{color:[255,255,255],size:1},resource:{primitive:"circle"}}),new YW.Z({text:x,halo:{color:"white",size:1/.75},material:{color:T},size:12})]})}show(_,T){if((0,Qe.Wi)(T))return;this.hide();const x=new vn.Z({x:_[0],y:_[1],z:_[2],spatialReference:T});this._graphic=new fd.Z({geometry:x,symbol:this._symbol}),this.graphics.add(this._graphic)}hide(){(0,Qe.pC)(this._graphic)&&(this.graphics.remove(this._graphic),this._graphic=null)}}let Xh=class extends Ns.Z{constructor(d){super(d),this.handles=new Ji.Z}destroy(){this.handles.destroy()}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Xh.prototype,"renderCoordsHelper",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Xh.prototype,"surface",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Xh.prototype,"state",void 0),Xh=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.PointOfInterest")],Xh);const XW=Array;let Pc=class extends Xh{constructor(d){super(d),this._dirty=!1,this._propertiesPool=new Nh.L({location:vn.Z,renderLocation:XW},this),this._estimatedSurfaceAltitude=0,this._pendingElevationQueryController=null,this.cameraName="camera",this.renderLocation=(0,ir.c)(),this._tmpPoint=new vn.Z}initialize(){if(this.scheduler&&this.handles.add(this.scheduler.registerTask(this.task,this)),this.runTask(),this.map){const d=()=>this._setDirty();this.handles.add((0,Ht.on)(()=>this.map?.ground?.layers,"change",d,{onListenerAdd:d,onListenerRemove:d}))}this._updateRenderLocation()}destroy(){this._cancelPendingRequest(),this._propertiesPool.destroy(),this._propertiesPool=null}get _camera(){return this.state[this.cameraName]}get location(){const d=this._propertiesPool.get("location");return this.renderCoordsHelper.fromRenderCoords(this.renderLocation,d,this.state.spatialReference),d}get scale(){const d=this._camera,_=(0,pt.i)(d.eye,this.renderLocation);return i0({renderCoordsHelper:this.renderCoordsHelper,state:{camera:d}},_,0)}get updating(){return this._dirty||null!=this._pendingElevationQueryController}updateRenderLocation(){this._setDirty(),this._updateRenderLocation()}_setDirty(){this._dirty||(this._dirty=!0,this.notifyChange("updating"))}_cancelPendingRequest(){const d=this._pendingElevationQueryController;d&&(this._pendingElevationQueryController=null,d.abort(),this.notifyChange("updating"))}get running(){return!this._pendingElevationQueryController&&this._dirty}runTask(){if(this._cancelPendingRequest(),this._dirty=!1,this.notifyChange("updating"),!this.map||!this.map.ground)return void this._updateSurfaceAltitude(0);const d=this.state.spatialReference;this.renderCoordsHelper.fromRenderCoords(this._camera.eye,this._tmpPoint,d);const _=this._tmpPoint.z>kW&&this.renderCoordsHelper.viewingMode===vi.JY.Global&&(d.isWGS84||d.isWebMercator);let T=new AbortController;this.map.ground.queryElevation(this._tmpPoint,{signal:T.signal,cache:this.cache,minDemResolution:_?JW:0}).then(x=>this._updateSurfaceAltitude(x.geometry.z)).catch(x=>{(0,ws.D_)(x)||this._updateSurfaceAltitude(0)}).catch(()=>{}).then(()=>{this._pendingElevationQueryController===T&&(this._pendingElevationQueryController=null,this.notifyChange("updating")),T=null}),this._pendingElevationQueryController=T}_updateSurfaceAltitude(d){this._estimatedSurfaceAltitude!==d&&(this._estimatedSurfaceAltitude=d,this._updateRenderLocation())}_updateRenderLocation(){this.renderCoordsHelper.setAltitude(rO,this._estimatedSurfaceAltitude,this._camera.eye),(0,pt.k)(this._get("renderLocation"),rO)||(this._set("renderLocation",(0,pt.c)(this._propertiesPool.get("renderLocation"),rO)),this.notifyChange("renderLocation"))}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Pc.prototype,"scheduler",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Pc.prototype,"cache",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Pc.prototype,"task",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Pc.prototype,"cameraName",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Pc.prototype,"location",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Pc.prototype,"map",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Pc.prototype,"renderLocation",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Pc.prototype,"scale",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Pc.prototype,"updating",null),Pc=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.CameraOnSurface")],Pc);const rO=(0,ir.c)(),kW=1e5,JW=1e6,QW=Array;let Ql=class extends Xh{constructor(d){super(d),this._propertiesPool=new Nh.L({location:vn.Z,renderLocation:QW},this),this._currentSurfaceAltitude=0,this._latestSurfaceAltitude=0,this.cameraName="camera",this.distance=0,this.renderLocation=(0,ir.c)(),this.updating=!1}initialize(){this._frameWorker=this.scheduler.registerTask(this.task,this),this.runTask()}destroy(){this._frameWorker=(0,Qe.hw)(this._frameWorker),this._propertiesPool=(0,Qe.SC)(this._propertiesPool)}get _camera(){return this.state[this.cameraName]}get location(){const d=this._propertiesPool.get("location");return this.renderCoordsHelper.fromRenderCoords(this.renderLocation,d,this.state.spatialReference),d}updateRenderLocation(){this.updating=!0,this._updateRenderLocation()}get estimatedSurfaceAltitude(){return this._latestSurfaceAltitude}get running(){return this.updating}runTask(){this._latestSurfaceAltitude=this.estimateSurfaceAltitudeAtCenter(),this._updateRenderLocation(),this.updating=!1}_updateRenderLocation(){const d=eV;let _=this._calculateSurfaceIntersection(this._currentSurfaceAltitude,d);!_&&this._currentSurfaceAltitude!==this._latestSurfaceAltitude&&(_=this._calculateSurfaceIntersection(this._latestSurfaceAltitude,d),_&&(this._currentSurfaceAltitude=this._latestSurfaceAltitude));const x=tV;_&&this._latestSurfaceAltitudeChangesDistanceSignificantly(d,x)&&((0,pt.c)(d,x),this._currentSurfaceAltitude=this._latestSurfaceAltitude),_?this.distance=(0,pt.i)(this._camera.eye,d):((0,pt.g)(d,this._camera.viewForward,this._get("distance")),(0,pt.a)(d,d,this._camera.eye)),(0,pt.k)(this._get("renderLocation"),d)||this._set("renderLocation",(0,pt.c)(this._propertiesPool.get("renderLocation"),d))}_calculateSurfaceIntersection(d,_){const T=this._camera;if(!this.renderCoordsHelper.intersectManifold(T.ray,d,_))return!1;if(this.state.isGlobal){const x=(0,En.Iu)(this.renderCoordsHelper.spatialReference).radius,A=x+d,U=(0,pt.p)(T.eye),ne=Ux/4){const Oe=A-Math.sqrt(U);return(0,pt.g)(_,T.viewForward,Oe),(0,pt.a)(_,_,T.eye),!0}}else{const x=this.surface.ready?this.surface.extent:null;(0,Qe.pC)(x)&&(0,di.dH)(x,this.surface.spatialReference,kg,this.renderCoordsHelper.spatialReference)&&(_[0]=(0,xr.uZ)(_[0],kg[0],kg[2]),_[1]=(0,xr.uZ)(_[1],kg[1],kg[3]))}return!0}_latestSurfaceAltitudeChangesDistanceSignificantly(d,_){if(this._latestSurfaceAltitude===this._currentSurfaceAltitude||null==d)return!1;if(this._calculateSurfaceIntersection(this._latestSurfaceAltitude,_)){if(Fo.Z.TESTS_DISABLE_OPTIMIZATIONS)return!0;const T=this._camera.eye,x=(0,pt.i)(T,d),A=(0,pt.i)(T,_);if(Math.abs(A-x)/x>qW)return!0}return!1}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ql.prototype,"scheduler",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ql.prototype,"task",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ql.prototype,"cameraName",void 0),(0,Ve._)([(0,ke.Cb)()],Ql.prototype,"distance",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ql.prototype,"estimateSurfaceAltitudeAtCenter",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ql.prototype,"location",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ql.prototype,"renderLocation",void 0),(0,Ve._)([(0,ke.Cb)()],Ql.prototype,"updating",void 0),Ql=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.CenterOnSurface")],Ql);const qW=.05,eV=(0,ir.c)(),tV=(0,ir.c)(),kg=(0,Bs.Ue)();class rV{constructor(_){this._handles=new Ji.Z,this.events=new Va.Z,this._contentLayerViews=_.contentLayerViews,this._handles.add(this._contentLayerViews.on("change",T=>this._layerViewsChanged(T))),this._layerViewsChanged({added:this._contentLayerViews.toArray(),removed:[],moved:[],target:this._contentLayerViews})}destroy(){this._handles&&(this._handles.destroy(),this._handles=null)}_layerViewsChanged(_){_.added.forEach(T=>{"esri.views.3d.layers.SceneLayerView3D"===T.declaredClass&&this._handles.add(T.on("visible-geometry-changed",()=>this._contentChanged()),T.uid)}),_.removed.forEach(T=>this._handles.remove(T.uid))}_contentChanged(){this.events.emit("request-update",sV)}}const sV={},iV=Array;let Hu=class extends Xh{constructor(d){super(d),this._propertiesPool=new Nh.L({location:vn.Z,renderLocation:iV},this),this._dirty=!0,this.renderLocation=this._propertiesPool.get("renderLocation")}initialize(){this.handles.add([(0,Ht.YP)(()=>this.centerOnSurface.renderLocation,()=>this.updateRenderLocation()),(0,Ht.YP)(()=>this.state.contentCamera,()=>this.updateRenderLocation())]),this.scheduler&&this.handles.add(this.scheduler.registerTask(Fn.T8.POINT_OF_INTEREST_FREQUENT,this))}destroy(){this._propertiesPool.destroy(),this._propertiesPool=null}get updating(){return this._dirty||this.centerOnSurface.updating}get location(){const d=this._propertiesPool.get("location");return this.renderCoordsHelper.fromRenderCoords(this.renderLocation,d,this.state.spatialReference),d}get running(){return this._dirty}runTask(){const d=this._get("renderLocation"),_=this.centerOnSurface.renderLocation,T=this.renderCoordsHelper,x=this.state.contentCamera;this._dirty=!1,T.worldUpAtPosition(_,vw);const A=Math.max(0,(Math.acos((0,pt.e)(vw,x.viewForward))-.5*Math.PI)*(x.aboveGround?1:-1));if(Number.isNaN(A)){if(!d||!(0,pt.F)(d,_)){const Oe=this._propertiesPool.get("renderLocation");(0,pt.c)(Oe,_),this._set("renderLocation",Oe)}return}const U=1-(0,xr.uZ)(A/(.5*Math.PI),0,1),ne=U*U*U;this._calculateScreenHorizontalEdgeOnSurface(Ew);const fe=this._propertiesPool.get("renderLocation");(0,pt.h)(fe,_,Ew,ne),d&&(0,pt.F)(d,fe)||this._set("renderLocation",fe)}_calculateScreenHorizontalEdgeOnSurface(d){const _=this.state.contentCamera,T=_.getRenderCenter((0,li.J$)());if(T[1]=_.aboveGround?_.padding[$i.N.BOTTOM]:_.fullHeight-_.padding[$i.N.TOP],this.estimateSurfaceIntersectionAtRenderPoint(T,d))return d;const x=this.renderCoordsHelper.getAltitude(this.centerOnSurface.renderLocation);if(_.unprojectFromRenderScreen(T,Jg)){(0,pt.b)(Jg,Jg,_.eye);const A=(0,pt.n)(Jg,Jg);if(this.renderCoordsHelper.intersectManifold((0,yc.re)(_.eye,A),x,d))return d}return this.renderCoordsHelper.setAltitude(d,x,_.eye)}updateRenderLocation(){this._dirty=!0}};(0,Ve._)([(0,ke.Cb)()],Hu.prototype,"_dirty",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Hu.prototype,"scheduler",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Hu.prototype,"centerOnSurface",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Hu.prototype,"estimateSurfaceIntersectionAtRenderPoint",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Hu.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Hu.prototype,"location",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Hu.prototype,"renderLocation",void 0),Hu=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.pointsOfInterest.Focus")],Hu);const vw=(0,ir.c)(),Jg=(0,ir.c)(),Ew=(0,ir.c)();let jd=class extends Ns.Z{constructor(d){super(d),this.location=null,this._updateController=null,this._handles=new Ji.Z}get surface(){return this.view.map?.ground}get surfaceView(){return this.view.basemapTerrain}get renderLocation(){if(!this.location)return null;const d=(0,ir.c)();return this.view.renderCoordsHelper.toRenderCoords(this.location,d),d}initialize(){this.view.state.isLocal&&(this._handles.add([(0,Ht.YP)(()=>[this.surfaceView?.spatialReference,this.surfaceView?.extent],()=>this._update()),(0,Ht.on)(()=>this.surface?.layers,"change",()=>this._update())]),this._update())}destroy(){this._handles.destroy()}_update(){if(this._updateController&&(this._updateController.abort(),this._updateController=null),!this.surfaceView||(0,Qe.Wi)(this.surfaceView.extent)||(0,Qe.Wi)(this.surfaceView.spatialReference))return void this._set("location",null);const d=(0,Bs.be)(this.surfaceView.extent),_=new vn.Z({x:d[0],y:d[1],z:0,spatialReference:this.surfaceView.spatialReference});this.surface&&this.surface.layers.length>0?(this._set("location",null),this._updateController=new AbortController,this.surface.queryElevation(_,{noDataValue:0,signal:this._updateController.signal,cache:this.cache}).then(T=>{this._updateController=null,this._set("location",T.geometry)}).catch(T=>{(0,ws.D_)(T)||T&&"elevation-query:invalid-layer"===T.name||console.error("StableSurfaceCenter failed to update: ",T)})):this._set("location",_)}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],jd.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],jd.prototype,"cache",void 0),(0,Ve._)([(0,ke.Cb)()],jd.prototype,"surface",null),(0,Ve._)([(0,ke.Cb)()],jd.prototype,"surfaceView",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],jd.prototype,"location",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],jd.prototype,"renderLocation",null),jd=(0,Ve._)([(0,Wr.j)("esri.views.3d.terrain.StableSurfaceCenter")],jd);let Fd=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z,this._tileGeometryUpdateExtent=(0,Bs.cS)(),this._tileGeometryUpdateSpatialReference=null,this.events=new Va.Z,this.updating=!1}initialize(){this._handles.add([this.surface.on("elevation-change",d=>this._tileGeometryChanged(d)),this.scheduler.registerTask(Fn.T8.SURFACE_GEOMETRY_UPDATES,this)])}destroy(){this._handles=(0,Qe.SC)(this._handles)}get running(){return this.updating}runTask(){this.updating&&(this._centerIntersectsExtent(this._tileGeometryUpdateExtent,this._tileGeometryUpdateSpatialReference)&&this.events.emit("request-update",nV),(0,Bs.cS)(this._tileGeometryUpdateExtent),this._set("updating",!1))}_tileGeometryChanged(d){this._tileGeometryUpdateSpatialReference=(0,Qe.Wg)(d.spatialReference),(0,Bs.jn)(this._tileGeometryUpdateExtent,d.extent,this._tileGeometryUpdateExtent),this._set("updating",!0)}_furthestCenterOnSurface(){let d=this.centerOnSurfaces[0];for(let _=1;_d.distance&&(d=T)}return d}_centerIntersectsExtent(d,_){const T=this.state.camera.eye,x=oV,A=this._furthestCenterOnSurface();return this.renderCoordsHelper.fromRenderCoords(T,_0,_),this.renderCoordsHelper.fromRenderCoords(A.renderLocation,f0,_),_0[0]this._estimateSurfaceAltitudeAtCenter(),U=this.view.resourceController.scheduler,ne=(0,Qe.Wg)(this.view.basemapTerrain?.elevationQueryCache),fe={state:d,scheduler:U,surface:_,renderCoordsHelper:T};this._set("centerOnSurfaceInfrequent",new Ql({...fe,task:Fn.T8.POINT_OF_INTEREST_INFREQUENT,estimateSurfaceAltitudeAtCenter:A})),this._set("centerOnSurfaceFrequent",new Ql({...fe,task:Fn.T8.POINT_OF_INTEREST_FREQUENT,estimateSurfaceAltitudeAtCenter:A})),this._set("contentCenterOnSurface",new Ql({...fe,task:Fn.T8.POINT_OF_INTEREST_INFREQUENT,estimateSurfaceAltitudeAtCenter:A,cameraName:"contentCamera"})),this._set("centerOnContent",new Ql({...fe,task:Fn.T8.POINT_OF_INTEREST_FREQUENT,estimateSurfaceAltitudeAtCenter:()=>this._estimateContentAltitudeAtCenter()})),this._set("cameraOnSurface",new Pc({...fe,cache:ne,task:Fn.T8.POINT_OF_INTEREST_INFREQUENT,map:x})),this._set("contentCameraOnSurface",new Pc({...fe,cache:ne,task:Fn.T8.POINT_OF_INTEREST_INFREQUENT,map:x,cameraName:"contentCamera"})),this._set("surfaceGeometryUpdates",new Fd({...fe,centerOnSurfaces:[this.centerOnSurfaceFrequent,this.centerOnContent,this.centerOnSurfaceInfrequent]})),this._set("contentGeometryUpdates",new rV({contentLayerViews:this.view.allLayerViews,renderCoordsHelper:T})),this._set("surfaceOrigin",new jd({cache:ne,view:this.view})),this._set("focus",new Hu({state:d,scheduler:U,surface:_,renderCoordsHelper:T,centerOnSurface:this.contentCenterOnSurface,estimateSurfaceIntersectionAtRenderPoint:(we,Ze)=>this._estimateSurfaceIntersectionAtRenderPoint(we,this.view.state.contentCamera,Ze)})),this._pois.push(this.centerOnContent,this.centerOnSurfaceFrequent,this.centerOnSurfaceInfrequent,this.contentCenterOnSurface,this.cameraOnSurface,this.contentCameraOnSurface,this.focus);const Oe=this.view.graphics;this._debugCenters.set(this.centerOnContent,new Yh(Oe,"red","CenterOnContent")),this._debugCenters.set(this.centerOnSurfaceFrequent,new Yh(Oe,"red","CenterOnSurface")),this._debugCenters.set(this.centerOnSurfaceInfrequent,new Yh(Oe,"red","CenterOnSurface")),this._debugCenters.set(this.contentCenterOnSurface,new Yh(Oe,"red","ContentCenterOnSurface")),this._debugCenters.set(this.cameraOnSurface,new Yh(Oe,"blue","CameraOnSurface")),this._debugCenters.set(this.contentCameraOnSurface,new Yh(Oe,"blue","ContentCameraOnSurface")),this._debugCenters.set(this.focus,new Yh(Oe,"green","Focus")),this._handles.add([(0,Ht.YP)(()=>d.camera,we=>this._cameraChanged(we),Ht.Z_),(0,Ht.YP)(()=>_.extent,()=>this._updateCenterPointsOfInterest()),(0,Ht.gx)(()=>!_.updating,()=>this._updateCenterPointsOfInterest(),Ht.Z_),(0,Ht.on)(()=>this.surfaceGeometryUpdates.events,"request-update",()=>this._updateCenterPointsOfInterest()),(0,Ht.on)(()=>this.contentGeometryUpdates.events,"request-update",()=>this._updateCenterOnContent()),(0,Ht.gx)(()=>Fo.Z.SHOW_POI,we=>this._setDebug(we),Ht.nn)]),this._cameraChanged(this.view.state.camera);for(const we of this._pois)we.runTask()}destroy(){this._setDebug(!1),this._handles.destroy(),this._propertiesPool.destroy();for(const d of this._pois)d.destroy();this.surfaceOrigin.destroy()}get updating(){return!(!this.surfaceGeometryUpdates?.updating&&!this._pois.some(d=>d.updating))}get _centerRay(){return this._centerRayDirty&&(this._centerRayCached=this.view.sceneIntersectionHelper.getCenterRayWithSubpixelOffset(this.view.state.camera,this._tmpRay),this._centerRayDirty=!1),this._centerRayCached}_estimateContentAltitudeAtCenter(){if(!this._contentAltitudeAtCenterDirty)return this._contentAltitudeAtCenter;this._contentAltitudeAtCenterDirty=!1;const d=this._centerRay;return(0,Qe.Wi)(d)||(this._contentAltitudeAtCenter=this.view.sceneIntersectionHelper.intersectRay(d,this._contentIntersector,Q_,cV)?this.view.renderCoordsHelper.getAltitude(Q_):this._estimateSurfaceAltitudeAtCenter()),this._contentAltitudeAtCenter}_estimateSurfaceAltitudeAtCenter(){if(!this.view.basemapTerrain)return 0;if(!this._surfaceAltitudeAtCenterDirty)return this._surfaceAltitudeAtCenter;this._surfaceAltitudeAtCenterDirty=!1;const d=this._centerRay;if((0,Qe.Wi)(d))return this._surfaceAltitudeAtCenter;const _=d.origin,T=(0,pt.a)(Q_,d.origin,d.direction);return this._surfaceIntersector.resetWithRay(d,this.view.state.camera),this.view.basemapTerrain.intersect(this._surfaceIntersector,null,_,T),this._surfaceIntersector.results.min.getIntersectionPoint(Q_)&&(this._surfaceAltitudeAtCenter=this.view.renderCoordsHelper.getAltitude(Q_)),this._surfaceAltitudeAtCenter}_estimateSurfaceIntersectionAtRenderPoint(d,_,T){const x=(0,ju.eW)(_,d,lV);if((0,Qe.Wi)(x))return null;const A=x.origin,U=(0,pt.a)(Q_,x.origin,x.direction);return this._surfaceIntersector.resetWithRay(x,_),this.view.basemapTerrain.intersect(this._surfaceIntersector,null,A,U),this._surfaceIntersector.results.min.getIntersectionPoint(T)?T:null}_cameraChanged(d){this._updateCenterPointsOfInterest();const _=d.eye;(0,pt.k)(this.renderPointOfView,_)||this._set("renderPointOfView",(0,pt.c)(this._propertiesPool.get("renderPointOfView"),_))}_updateCenterPointsOfInterest(){this._centerRayDirty=!0,this._surfaceAltitudeAtCenterDirty=!0,this._contentAltitudeAtCenterDirty=!0;for(const d of this._pois)d.updateRenderLocation()}_updateCenterOnContent(){this._contentAltitudeAtCenterDirty=!0,this.centerOnContent.updateRenderLocation()}_setDebug(d){if(!d)return this._debugCenters.forEach(_=>_.hide()),void this._handles.remove("debug");for(const _ of this._pois)this._handles.add((0,Ht.YP)(()=>_.renderLocation,T=>this._debugCenters.get(_).show(T,_.renderCoordsHelper.spatialReference),Ht.nn),"debug")}get test(){return{update:()=>{this.surfaceGeometryUpdates.runTask();for(const d of this._pois)d.runTask()},surfaceGeometryUpdates:this.surfaceGeometryUpdates}}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"centerOnContent",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"centerOnSurfaceFrequent",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"centerOnSurfaceInfrequent",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"contentCenterOnSurface",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"cameraOnSurface",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"contentCameraOnSurface",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"focus",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"renderPointOfView",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"surfaceOrigin",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"contentGeometryUpdates",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"surfaceGeometryUpdates",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Za.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Za.prototype,"updating",null),Za=(0,Ve._)([(0,Wr.j)("esri.views.3d.support.PointsOfInterest")],Za);const aV=Array,Q_=(0,ir.c)(),lV=(0,yc.Ue)(),cV={exclude:new Set([bc.cy])};var uV=v(30346);class dV{constructor(_){this._store=_}destroy(){this._store.destroy()}get(_){return this._store.get(_)}put(_,T){this._store.put(_,T,T.values.byteLength+256)}}var hV=v(36596),TE=v(54540),pV=v(41632);class q_{constructor(_=0,T=0){this.min=_,this.max=T,this.level=0,this.hasNoDataValues=!1}copyFrom(_){this.min=_.min,this.max=_.max,this.level=_.level,this.hasNoDataValues=_.hasNoDataValues}}var _V=v(80403);class fV{constructor(_,T,x){this.type="elevation",this.level=_[0],this.i=_[1],this.j=_[2],this.extent=T;const A=x.noDataValue,U=x.values;let ne=1/0,fe=-1/0,Oe=!0,we=!1;for(let Ze=0;Zefe?it:fe,Oe=!1):we=!0}Oe&&(ne=0,fe=0),fe=fe>-3e38?fe:0,this.samplerData=new _V.K(x,T),this.bounds=[ne,fe],this.hasNoDataValues=we}release(){this.samplerData=null,this.bounds=null}computeMinMaxValue(_,T,x,A){A.min=1/0,A.max=-1/0,A.hasNoDataValues=!1;const U=_-this.level;if(U<=0)return A;const ne=2**U;if(Math.floor(T/ne)!==this.i||Math.floor(x/ne)!==this.j)return A;let fe=1/0,Oe=-1/0;const we=this.samplerData.width,Ze=this.samplerData.pixelData,it=.5*po.$7;let lt=(we-1)/ne,dt=(x-this.j*ne)*lt,Tt=(T-this.i*ne)*lt;if(lt<1){const mt=Math.floor(dt),Mt=Math.floor(Tt),Pt=mt+Mt*we,Nt=Ze[Pt],Bt=Ze[Pt+1],Zt=Ze[Pt+we],nr=Ze[Pt+we+1];if(Nt+Bt+Zt+nrthis.notifyChange("stencilEnabledExtents"))])}destroy(){this._handles.destroy(),this._handles=null}get layerViewsExtent(){return this._computeLayerViewsExtent()}get tiledLayersExtent(){return this._computeTiledLayersExtent()}get stencilEnabledExtents(){return this._computeStencilEnabledExtents()}_computeStencilEnabledExtents(){const d=[];return this.layerViews.forEach(_=>{const T=_.layer;if("IntegratedMeshLayer"===T.operationalLayerType&&null!=this.viewSpatialReference){const x=bw(T.fullExtent,this.viewSpatialReference);(0,Qe.pC)(x)&&d.push((0,Bs.oJ)(x))}}),d}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Kc.prototype,"layerViewsExtent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Kc.prototype,"tiledLayersExtent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Kc.prototype,"stencilEnabledExtents",null),(0,Ve._)([(0,ke.Cb)()],Kc.prototype,"viewSpatialReference",void 0),(0,Ve._)([(0,ke.Cb)()],Kc.prototype,"tilingScheme",void 0),(0,Ve._)([(0,ke.Cb)()],Kc.prototype,"defaultTiledLayersExtent",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Kc.prototype,"layers",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Kc.prototype,"layerViews",void 0),Kc=(0,Ve._)([(0,Wr.j)("esri.views.3d.terrain.ExtentHelper")],Kc);let sO=class extends Kc{_computeLayerViewsExtent(){return this._globalExtent}_computeTiledLayersExtent(){return this._globalExtent}get _globalExtent(){return this.viewSpatialReference.isWebMercator?po.cy:po.Lz}};sO=(0,Ve._)([(0,Wr.j)("esri.views.3d.terrain.ExtentHelperGlobal")],sO);let iO=class extends Kc{_computeLayerViewsExtent(){const d=(0,Bs.cS)(),_=this.viewSpatialReference;this.layerViews.forEach(A=>{const U=A.layer;if(A.isResolved()&&("graphics"!==U.type||!U.internal)){const ne=bw("fullExtentInLocalViewSpatialReference"in A&&A.fullExtentInLocalViewSpatialReference||A.layer.fullExtent,_);(0,Bs.jn)(d,ne,d)}});const T=(0,Bs.sU)(d)?d:null,x=this._get("layerViewsExtent");return(0,Bs.fS)(T,x)?x:T}_computeTiledLayersExtent(){const d=this.tilingScheme;if(!d)return null;const _=this.viewSpatialReference,T=(0,Bs.cS)();this.layers.forEach(U=>{if(U.loaded&&(0,Gl.iC)(U)){const ne=(0,Cr.E_)(U,_,vi.JY.Local);if((0,Qe.Wi)(ne))return;const{tileInfo:fe,fullExtent:Oe}=ne;(0,Qe.pC)(fe)&&(0,Qe.pC)(Oe)&&((0,Cr.x4)(U)||d.compatibleWith(fe)&&Oe.spatialReference.equals(d.spatialReference))&&(0,Bs.jn)(T,Oe,T)}}),(0,Bs.jn)(T,this.defaultTiledLayersExtent,T);const x=(0,Bs.sU)(T)?T:null,A=this._get("tiledLayersExtent");return(0,Bs.fS)(x,A)?A:x}};function bw(d,_){return(0,Qe.pC)(d)&&!d.spatialReference.equals(_)?(0,di.fi)(d,d.spatialReference,_):d}iO=(0,Ve._)([(0,Wr.j)("esri.views.3d.terrain.ExtentHelperLocal")],iO);var Bi,Vs=v(75224);!function(d){d[d.ELEVATION=0]="ELEVATION",d[d.MAP=1]="MAP"}(Bi||(Bi={}));const m0=[Bi.ELEVATION,Bi.MAP];var Oc=v(61034),nO=v(64835),yV=v(30993),vV=v(14411);function Cw(){const d=globalThis.require?.modules;if(d){const _=Object.keys(d);for(const T of _)-1!==T.search(".glsl")&&delete d[T]}}const EV=[[-.1,-2,3.9,2],[-.1,-3.9,3.9,.1],[-2,-3.9,2,.1],[-3.9,-3.9,.1,.1],[-3.9,-2,.1,2],[-3.9,-.1,.1,3.9],[-2,-.1,2,3.9],[-.1,-.1,3.9,3.9]];let kh,xl=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z,this._spatialReference=null,this._renderSR=null,this._overlaySREqualsRenderSR=!0,this._drapeSources=new Set,this._drapeTargets=new Set,this._placementDirty=!1,this._contentUpdated=!1,this._drawTexturesDirty=!1,this._drawTexturesAnimateDirty=!1,this._hasUnusedRenderTargets=!1,this._longitudeCyclical=null,this._latestOriginId=0,this._maxResolution=(0,So.Z)("esri-mobile")?2048:4096,this._animationTimeLast=0}get running(){return this._placementDirty&&(this._drapeSources.size>0||this._view.graphics.length>0||Fo.Z.OVERLAY_DRAW_DEBUG_TEXTURE)&&!!this._spatialReference&&!this.suspended&&this.surface.ready}get _isSpherical(){return this._view.state.isGlobal}get _worldToPCSRatio(){return(0,Qe.pC)(this._spatialReference)&&this._spatialReference.isGeographic&&!this._view.state.isLocal?(0,En.Iu)(this._spatialReference).metersPerDegree:1}get _view(){return this.surface.view}get suspended(){return this.surface.suspended}get updating(){return this.running||this.renderer.updating||this._contentUpdated}get hasHighlights(){return this.renderer.hasHighlights}get rendersOccluded(){return this.renderer.rendersOccluded}initialize(){const d=this._view;this.renderer=new nO.CB({view:d,worldToPCSRatio:this._worldToPCSRatio,spatialReference:this._spatialReference}),this._groundIntersector=(0,Ga.Z8)(this._view.state.viewingMode),this._groundIntersector.options.backfacesTerrain=!0,this._groundIntersector.options.invisibleTerrain=!0,this._groundIntersector.options.hud=!1,this._handles.add([this.renderer.events.on("has-highlights",()=>{this.setDrawTexturesDirty(),this.notifyChange("hasHighlights")}),this.renderer.events.on("has-water",_=>d._stage?.renderView.setRenderParameters({hasOverlayWater:_})),this.renderer.events.on("renders-occluded",()=>{this.setDrawTexturesDirty(),this.notifyChange("rendersOccluded")}),this.renderer.events.on("content-changed",()=>this.setDrawTexturesDirty()),this.renderer.events.on("textures-disposed",()=>this.updateOverlayResult()),(0,Ht.YP)(()=>[d.pointsOfInterest?.renderPointOfView,d.pointsOfInterest?.centerOnSurfaceFrequent?.location],()=>this.setPlacementDirty()),(0,Ht.YP)(()=>d.state?.pixelRatio,()=>this.setPlacementDirty(),Ht.Z_),this.surface.on("elevation-change",()=>this.setPlacementDirty()),d.on("resize",()=>this.setPlacementDirty()),d.resourceController.scheduler.registerTask(Fn.T8.OVERLAY,this),d._stage.renderView.events.on("force-camera-for-screenshot",_=>{this._updateOverlays(_,Fi.Xx.BACKGROUND),this.renderer.hasOverlays&&this._drawOverlayTextures(this.renderer.overlays,Fi.Xx.BACKGROUND,_)})]),d._stage?.renderView.setRenderParameters({renderOverlay:_=>{this._contentUpdated=!1,this.renderer.processSyncDrapeSources(),this.renderer.hasOverlays&&(this._dispatchAnimationUpdate(_),this._drawOverlayTextures(this.renderer.overlays,Fi.Xx.UPDATE)),this._hasUnusedRenderTargets&&this._collectUnusedRenderTargetMemory()}})}destroy(){this.renderer.dispose(),this._handles&&(this._handles.destroy(),this._handles=null),(0,Qe.pC)(kh)&&(kh.hide(),kh=null)}get hasOverlays(){return this.renderer.hasOverlays}setSpatialReference(d){this._spatialReference=d,this.renderer.spatialReference=d,this._longitudeCyclical=null;const _=this._view.renderSpatialReference;(0,Qe.pC)(d)&&(0,Qe.pC)(_)?(this._renderSR=_,this._overlaySREqualsRenderSR=d.equals(this._renderSR),this._isSpherical&&(this._longitudeCyclical=d.isWebMercator?new za.pE(-20037508.342787,20037508.342787):new za.pE(-180,180),this.renderer.longitudeCyclical=this._longitudeCyclical),this.renderer&&(this.renderer.worldToPCSRatio=this._worldToPCSRatio)):this.renderer.disposeOverlays()}get gpuMemoryUsage(){return this.renderer.gpuMemoryUsage}registerDrapeSource(d,_,T){this._drapeSources.add(d),this.renderer.ensureOverlays(this._drapeTargets,this._drapeSources);const x=this.renderer.createDrapeSourceRenderer(d,_,T);return this._updateDrapeSourceExtent(d),this._setContentDirty(),this.notifyChange("running"),x}registerGeometryDrapeSource(d){return this.registerDrapeSource(d,vV.S)}_updateDrapeSourceExtent(d){2===this.renderer.overlays.length&&(0,Qe.pC)(d.setDrapingExtent)&&(0,Qe.pC)(this._spatialReference)&&d.setDrapingExtent(this.renderer.overlays,this._spatialReference)}unregisterDrapeSource(d){this._drapeSources.has(d)&&(this._drapeSources.delete(d),this.renderer.removeDrapeSourceRenderer(d),this.renderer.ensureDrapeSources(this._drapeSources),this._setContentDirty(),this.notifyChange("running"))}registerDrapeTarget(d){this._drapeTargets.add(d),this.renderer.ensureOverlays(this._drapeTargets,this._drapeSources)}updateOverlayResult(){this._view._stage?.renderView.setRenderParameters({overlays:this.renderer.overlays})}unregisterDrapeTarget(d){this._drapeTargets.delete(d),this.renderer.ensureDrapeTargets(this._drapeTargets)}_setContentDirty(){this.setPlacementDirty(),this.setDrawTexturesDirty()}setPlacementDirty(){this._placementDirty=!0}runTask(){this._updateOverlays(this._view.state.camera,Fi.Xx.UPDATE)}_updateOverlays(d,_){if(!this._spatialReference)return;const T=(0,Oc.Jk)(d.fullWidth,d.fullHeight,this._maxResolution);this._computeOverlayExtents(d,T,Nd);const x=(0,Bs.bf)(Nd.inner)/(0,Bs.bf)(Nd.outer);this.renderer.ensureOverlays(this._drapeTargets,this._drapeSources);const A=this._updateOverlay(Vs.fu.INNER,Nd.inner,T,1*Nd.pixelRatioAdjustment,Nd.mapUnitsPerPixel),U=this._updateOverlay(Vs.fu.OUTER,Nd.outer,T,x*Nd.pixelRatioAdjustment,Nd.mapUnitsPerPixel);A!==Gu.EXTENT&&U!==Gu.EXTENT||(this._drapeSources.forEach(ne=>this._updateDrapeSourceExtent(ne)),this.surface.updateTileOverlayParams(_)),A===Gu.NONE&&U===Gu.NONE||this.setDrawTexturesDirty(),this._placementDirty=!1}_updateOverlay(d,_,T,x,A){if(0===this.renderer.overlays.length)return Gu.NONE;const U=this.renderer.overlays[d],ne=U.mapUnitsPerPixel;if(U.mapUnitsPerPixel=A,U.pixelRatio=x,function bV(d,_){const x=Fo.Z.TESTS_DISABLE_OPTIMIZATIONS?0:1e-5*Math.max(d[2]-d[0],d[3]-d[1],_[2]-_[0],_[3]-_[1]);return Math.abs(_[0]-d[0])<=x&&Math.abs(_[1]-d[1])<=x&&Math.abs(_[2]-d[2])<=x&&Math.abs(_[3]-d[3])<=x}(_,U.extent)&&T===U.resolution)return ne===A?Gu.NONE:Gu.RERENDER_ONLY;(0,Bs.JG)(U.extent,_),U.resolution=T;const fe=(0,Bs.be)(U.extent);return U.renderLocalOrigin=(0,yV.a)(fe[0],fe[1],0,"OV_"+this._latestOriginId++),Gu.EXTENT}setTileParameters(d){const _=d.renderData.overlay;if(this.renderer.overlays.length>0){const T=this.renderer.overlays[Vs.fu.INNER],x=this.renderer.overlays[Vs.fu.OUTER],A=d.extent;this._rectInsideRect(T.extent,A)||this._rectanglesOverlap(A,T.extent)||this._rectanglesOverlap(A,x.extent)?(this._setTileOverlayData(A,Vs.fu.INNER,_),this._setTileOverlayData(A,Vs.fu.OUTER,_)):(this._clearTileOverlayData(Vs.fu.INNER,_),this._clearTileOverlayData(Vs.fu.OUTER,_))}else this._clearTileOverlayData(Vs.fu.INNER,_),this._clearTileOverlayData(Vs.fu.OUTER,_)}overlayPixelSizeInMapUnits(d){if(0===this.renderer.overlays.length)return 0;const _=this.renderer.overlays[Vs.fu.INNER],T=this.renderer.overlays[Vs.fu.OUTER],x=this._pointIsInExtent(d,_.extent)?_:T;return(x.extent[2]-x.extent[0])/x.resolution}_setTileOverlayData(d,_,T){if(0===this.renderer.overlays.length)return;const x=this.renderer.overlays[_].extent,A=(0,Bs.bf)(x),U=(0,Bs.Cb)(x);let ne=d[0];if(this._longitudeCyclical){ne=this._longitudeCyclical.minimalMonotonic(x[0],ne);const fe=this._longitudeCyclical.minimalMonotonic(x[0],d[2]);ne>fe&&(ne=fe-(d[2]-d[0]))}T.setScale(_,(0,Bs.bf)(d)/A,(0,Bs.Cb)(d)/U),T.setOffset(_,(ne-x[0])/A,(d[1]-x[1])/U)}_clearTileOverlayData(d,_){_.setScale(d,-1,-1),_.setOffset(d,-1,-1)}reloadShaders(){var d=this;return(0,kr.Z)(function*(){Cw(),yield d.renderer.reloadShaders(),d.setDrawTexturesDirty(),d.runTask()})()}_dispatchAnimationUpdate(d){const _=(0,mi.HA)(d-this._animationTimeLast);d=(0,Qe.Pt)(this._view.state.forcedAnimationTime,d),(_>=this.surface.view._stage.renderView.animationTimestep||(0,Qe.pC)(this._view.state.forcedAnimationTime)||this._drawTexturesDirty||this._drawTexturesAnimateDirty)&&(this.renderer.updateAnimation({time:d,camera:this._view.state.camera})&&(this._drawTexturesAnimateDirty=!0),this._animationTimeLast=d)}setDrawTexturesDirty(){this.renderer.hasOverlays?(this._contentUpdated=!0,this._drawTexturesDirty=!0,this._view._stage.renderView.requestRender()):this.setPlacementDirty()}_intersectGroundFromView(d,_,T,x){const A=this._view.sceneIntersectionHelper.getCenterRayWithSubpixelOffset(d,MV,_,T);if((0,Qe.Wi)(A))return!1;const U=A.origin,ne=(0,pt.a)(ME,A.origin,A.direction);return this._groundIntersector.reset(U,ne,d),this._groundIntersector.intersect([],null),this._view.basemapTerrain.intersect(this._groundIntersector,null,U,ne),this._groundIntersector.results.min.getIntersectionPoint(x)}_findHorizonBasedPointOfInterest(d,_){let T=.5;const x=.55,A=this._view.renderCoordsHelper.getAltitude(d.eye),U=this._view.pointsOfInterest.centerOnSurfaceFrequent,fe=(0,xr.uZ)(U.estimatedSurfaceAltitude,d.aboveGround?-1/0:A+1e-5,d.aboveGround?A-1e-5:1/0),Oe=d.aboveGround;if("global"===this._view.viewingMode){const we=ME;(0,oo.b)((0,oo.e)(oo.t,(0,En.Iu)(this._view.spatialReference).radius+fe),(0,yc.re)(d.eye,d.viewForward),we),(0,pt.b)(we,we,d.eye);const Ze=za.Q4.normalize((0,WP.cp)(d.viewForward,we,d.viewRight))/d.fovY+.5,it=Ze<=0||Ze>=1?.5:x;T=Oe?it*Ze:Ze+it*(1-Ze)}else{const we=.5*Math.PI-Math.acos(-d.viewForward[2]),Ze=Math.tan(we),it=(0,Tn.f)(0,Ze,1,0),lt=(0,Qo.t)(it,it,d.projectionMatrix)[1],dt=(0,xr.uZ)(.5+.5*lt,0,1);T=1===dt||0===dt?.5:Oe?dt*x:1-(1-dt)*x}return!!this._intersectGroundFromView(d,.5,T,_)&&(0,pt.E)(_,d.eye)=Tt&&(lt=Tt,A[1]=0,this._spatialReference.isWebMercator&&(A[0]=0)));let mt=1;dt&&(mt=1/Math.max(.2,Math.cos(Math.abs((0,xr.Vl)(A[1])))),lt*mt>180&&(mt=180/lt),T.mapUnitsPerPixel*=mt);const Mt=Math.log(2)/12;lt=Math.exp(Math.round(Math.log(lt)/Mt)*Mt);const Pt=lt*mt,Bt=.5*_/(32*Pt),Zt=.5*_/(32*lt);A[0]=Math.round(A[0]*Bt)/Bt,A[1]=Math.round(A[1]*Zt)/Zt;const nr=T.inner;nr[0]=A[0]-Pt,nr[1]=A[1]-lt,nr[2]=A[0]+Pt,nr[3]=A[1]+lt,this._isSpherical&&this._shiftExtentToFitBounds(nr,1/0,Tt);const Jt=T.outer;if(6*Pt>(0,Bs.bf)(Oe))(0,Bs.JG)(Jt,(0,Qe.Wg)(Oe));else if(fe<=.25*Math.PI)Jt[0]=nr[0]-Pt,Jt[1]=nr[1]-lt,Jt[2]=nr[2]+Pt,Jt[3]=nr[3]+lt;else{(0,di.SH)(d.eye,this._renderSR,ME,this._spatialReference),(0,ti.a)(g0,A,ME);let Br=-Math.atan2(g0[1],g0[0])+.125*Math.PI;Br<0&&(Br+=2*Math.PI);const $r=Math.floor(Br/(.25*Math.PI));(0,Qo.b)(g0,EV[$r],2*lt),g0[0]*=mt,g0[2]*=mt,(0,Qo.a)(Jt,nr,g0)}if(this._isSpherical)Jt[0]=this._longitudeCyclical.clamp(Jt[0]),Jt[2]=this._longitudeCyclical.clamp(Jt[2]),Jt[1]=Math.max(Jt[1],-Tt),Jt[3]=Math.min(Jt[3],Tt);else{const Br=(0,Bs.jV)(nr,Oe,CV),$r=(0,Bs.jV)(Jt,Oe,TV);(0,Bs.r3)(Br,$r)&&(Jt[2]=Jt[0],Jt[3]=Jt[1])}const Rr=Math.abs(nr[2]-nr[0])/_;T.mapUnitsPerPixel=Math.max(T.mapUnitsPerPixel,Rr),T.pixelRatioAdjustment=T.mapUnitsPerPixel/Rr}_drawOverlayTextures(d,_,T=this._view.state.camera){if(0===d.length||!this._drawTexturesDirty&&!this._drawTexturesAnimateDirty)return;const x=this._drawTexturesDirty;this._drawTexturesDirty=!1,this._drawTexturesAnimateDirty=!1;const A=this._drawOverlay(d[Vs.fu.INNER],T),U=this._drawOverlay(d[Vs.fu.OUTER],T);A!==Fi.Yg.CHANGED&&U!==Fi.Yg.CHANGED||this.surface.updateTileOverlayParams(Fi.Xx.UPDATE),this._collectUnusedRenderTargetMemory(),this.updateOverlayResult(),x?(this.surface.requestRender(_),_===Fi.Xx.UPDATE&&this.surface.requestUpdate()):this.surface.requestRender(Fi.Xx.BACKGROUND)}_drawOverlay(d,_){return this._longitudeCyclical?d.setupGeometryViewsCyclical(this._longitudeCyclical):d.setupGeometryViewsDirect(),d.draw(this.renderer,_.pixelRatio)}_collectUnusedRenderTargetMemory(){if(this._hasUnusedRenderTargets=!1,this.renderer.hasOverlays){const d=performance.now();this._hasUnusedRenderTargets=this.renderer.collectUnusedRenderTargetMemory(d)}}_rectanglesOverlap(d,_){return!(0,Qe.Wi)(d)&&(this._longitudeCyclical?(this._longitudeCyclical.contains(_[0],_[2],d[0])||this._longitudeCyclical.contains(_[0],_[2],d[2])||this._longitudeCyclical.contains(d[0],d[2],_[0]))&&!(d[1]>_[3]||d[3]<_[1]):(0,Bs.kK)(d,_))}_rectInsideRect(d,_){return!(0,Qe.Wi)(_)&&(this._longitudeCyclical?this._longitudeCyclical.contains(d[0],d[2],_[0])&&this._longitudeCyclical.contains(d[0],d[2],_[2])&&_[1]>d[1]&&_[3]=_[1]&&d.y<=_[3];const T=d.x,x=d.y;return T>_[0]&&T<_[2]&&x>_[1]&&x<_[3]}_shiftExtentToFitBounds(d,_,T){let x=0,A=0;d[0]<-_?x=d[0]+_:d[2]>_&&(x=_-d[2]),d[1]<-T?A=d[1]+T:d[3]>T&&(A=T-d[3]),(0,Bs.cv)(d,x,A)}get test(){return{renderer:this.renderer,update:()=>this.runTask()}}};(0,Ve._)([(0,ke.Cb)()],xl.prototype,"_spatialReference",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],xl.prototype,"running",null),(0,Ve._)([(0,ke.Cb)()],xl.prototype,"_placementDirty",void 0),(0,Ve._)([(0,ke.Cb)()],xl.prototype,"_contentUpdated",void 0),(0,Ve._)([(0,ke.Cb)()],xl.prototype,"_isSpherical",null),(0,Ve._)([(0,ke.Cb)()],xl.prototype,"_worldToPCSRatio",null),(0,Ve._)([(0,ke.Cb)()],xl.prototype,"renderer",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],xl.prototype,"surface",void 0),(0,Ve._)([(0,ke.Cb)()],xl.prototype,"suspended",null),(0,Ve._)([(0,ke.Cb)()],xl.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({type:Boolean})],xl.prototype,"hasHighlights",null),(0,Ve._)([(0,ke.Cb)({type:Boolean})],xl.prototype,"rendersOccluded",null),xl=(0,Ve._)([(0,Wr.j)("esri.views.3d.terrain.OverlayManager")],xl);const g0=(0,Tn.c)(),ME=(0,ir.c)(),Nd={inner:(0,Bs.Ue)(),outer:(0,Bs.Ue)(),mapUnitsPerPixel:0,pixelRatioAdjustment:1},CV=(0,Bs.Ue)(),TV=(0,Bs.Ue)(),MV=(0,yc.Ue)();var Gu;!function(d){d[d.NONE=0]="NONE",d[d.EXTENT=1]="EXTENT",d[d.RERENDER_ONLY=2]="RERENDER_ONLY"}(Gu||(Gu={}));let PV=(()=>{class d{constructor(T,x){this._factoryCallback=T,this._lengthCallback=x,this._pool=new Map}acquire(T){if(!d.test.disabled){const x=this._pool.get(T);if(x&&0!==x.length)return x.pop()}try{return this._factoryCallback(T)}catch(x){const A=window.performance&&window.performance.memory;let U="";throw A&&(U=`\n totalJSHeapSize: ${A.totalJSHeapSize}, usedJSHeapSize: ${A.usedJSHeapSize}, jsHeapSizeLimit: ${A.jsHeapSizeLimit}`),console.log("Array allocation of size "+T+" failed: "+x+U),x}}release(T){if(d.test.disabled)return;const x=this._lengthCallback(T);let A=this._pool.get(x);A||(A=new wo.Z({shrink:!0}),this._pool.set(x,A)),A.push(T)}clear(){this._pool.clear()}get test(){return{size:this._pool.size}}}return d.test={disabled:!1},d})();class OV{constructor(){this.indices=null,this.vertexAttributes=null,this.boundingBox=(0,fo.cS)(),this.indexCount=0,this.numVerticesPerSide=0,this.uvRange=[0,0,1,1],this.outerEdges=[null,null,null,null],this.innerEdges=[null,null,null,null]}}class Tw{constructor(_,T,x,A,U){this.attributes=_,this.localOrigin=T,this.index0=x,this.stride=A,this.count=U}getVertexIndex(_){return this.getAttributeIndex(_)}getAttributeIndex(_){return(0,Cr.Fp)(0<=_&&_=0?1:-1)*(1-Math.abs(x)),d[1]=(x>=0?1:-1)*(1-Math.abs(T))):(d[0]=T,d[1]=x),(0,pt.n)(d,d)}(_,x)}_setNormal(_,T,x,A){Qg(this.attributes.normalCompressed,_,T,x,A)}_setUV(_,T,x){ql(this.attributes.uv0,_,T,x)}setNormalFromValues(_,T,x,A){this._setNormal(this.getAttributeIndex(_),T,x,A)}setVertexFromValuesRawPositionUV(_,T,x,A,U,ne){const fe=this.getAttributeIndex(_);this.attributes.position.setValues(fe,T,x,A),this._setUV(fe,U,ne)}setVertexFromValuesRawPositionUVNormal(_,T,x,A,U,ne,fe,Oe,we){const Ze=this.getAttributeIndex(_);this.attributes.position.setValues(Ze,T,x,A),this._setUV(Ze,U,ne),this._setNormal(Ze,fe,Oe,we)}}const xV=(0,Xp.U$)().vec3f(Qi.T.POSITION).vec2i16(Qi.T.UV0).vec2i16(Qi.T.NORMALCOMPRESSED,{glNormalized:!0}),oO=new PV(d=>xV.createBuffer(d),d=>d.count);function Mw(d){return oO.acquire(d)}function Qg(d,_,T,x,A){const U=1/(Math.abs(T)+Math.abs(x)+Math.abs(A)),ne=T*U,fe=x*U,Oe=A<=0?(ne>=0?1:-1)*(1-Math.abs(fe)):ne,we=A<=0?(fe>=0?1:-1)*(1-Math.abs(ne)):fe;d.setValues(_,Ow(Oe),Ow(we))}function ql(d,_,T,x){d.setValues(_,16384*T,16384*x)}function Ow(d){return(0,xr.uZ)(Math.round(32767*d),-32767,32767)}function xw(d){return(0,xr.uZ)(d/32767,-1,1)}function al(d,_,T,x){dx[3]&&(x[3]=d),_x[4]&&(x[4]=_),Tx[5]&&(x[5]=T)}class PE{constructor(){this.cornerTiles=[null,null,null,null],this.cornerTileSamplerVersions=[-1,-1,-1,-1]}}class wV{constructor(){this.cornerNeighborData=[new PE,new PE,new PE,new PE],this.edgeResolutions=[-1,-1,-1,-1],this.edgePeerNeighbors=[null,null,null,null],this.edgePeerNeighborSamplerVersions=[-1,-1,-1,-1],this.cornerPeerNeighbors=[null,null,null,null]}}class IV{constructor(){this.numVerticesPerSide=0,this.samplerData=null,this.clippingArea=null,this.wireframe=!1,this.shading=!1,this.samplerDataVersion=0,this.neighborData=new wV}}class ef{constructor(_){this._getFadeDuration=_,this._fadeStart=0,this._delayedTime=0}clear(){this._current=(0,Qe.SC)(this._current),this._next=(0,Qe.SC)(this._next),this._waiting=(0,Qe.SC)(this._waiting),this._delayed=(0,Qe.SC)(this._delayed)}get current(){if((0,Qe.Wi)(this._current))return null;if(!this._isFadingEnabled){const T=this._delayed||this._waiting||this._next||this._current;T!==this._current&&(this._current=null,this.clear(),this._current=T)}let _=ef.test.fadeMoment;if((0,Qe.pC)(this._delayed)&&(_=_||performance.now(),_>=this._delayedTime&&(this._push(this._delayed,Wd.Immediate),this._delayed=null)),(0,Qe.pC)(this._next)){_=_||performance.now();const T=this._fadeDuration,x=(0,Qe.pC)(this._current)&&this._next.texture===this._current.texture,A=this._next.type!==Vs.Ns.FADING,U=_-this._fadeStart>=T;(x||A||U)&&((0,Qe.SC)(this._current),this._current=this._next,this._next=this._waiting,this._waiting=null,this._fadeStart=this._alignFadeStart(_))}return this._current}get next(){return this._next}get fadeFactor(){if((0,Qe.Wi)(this._next))return 1;const _=ef.test.fadeMoment||performance.now(),T=Math.max(0,_-this._fadeStart),x=this._fadeDuration;return T>x?0:1-T/x}get isFading(){return(0,Qe.pC)(this._next)||(0,Qe.pC)(this._delayed)}push(_,T=Wd.Immediate){this._delayed=(0,Qe.SC)(this._delayed),this._push(_,T)}_push(_,T){if(this._isFadingEnabled||this.clear(),(0,Qe.Wi)(this._current))return void(this._current=_);const x=ef.test.fadeMoment||performance.now();return T!==Wd.Immediate?(this._delayed=_,void(this._delayedTime=x+T)):(0,Qe.Wi)(this._next)?(this._next=_,void(this._fadeStart=this._alignFadeStart(x))):void((0,Qe.Wi)(_)||((0,Qe.SC)(this._waiting),this._waiting=_))}get _fadeDuration(){return(0,Qe.Wi)(this._waiting)?this._getFadeDuration():.5*this._getFadeDuration()}_alignFadeStart(_){const T=this._getFadeDuration();return _+T-_%T}get _isFadingEnabled(){return this._getFadeDuration()>0}}var Wd;ef.test={fadeMoment:0},function(d){d[d.Immediate=0]="Immediate",d[d.Delayed=5e3]="Delayed"}(Wd||(Wd={}));var OE=v(39863),Ko=v(15076);class aO{get updating(){return!!this._tileRequested}init(_,T,x,A){this.tile=_,this._layerIdx=T,this._layerClass=x,this._suspended=A,this._tileLayerInfo=_.getLayerInfo(T,x),this._tileRequested=null;const U=this._findAncestorWithData();this._setUpsampleTile(U)}startLoading(){return this._requestNext()}dispose(){this._tileRequested&&(this._tileRequested.unrequestLayerData(this._layerIdx,this._layerClass,this),this._tileRequested=null),this.tile=null,this._tileLayerInfo=null}setSuspension(_){_!==this._suspended&&(this._suspended=_,_?this._tileRequested&&(this._tileRequested.unrequestLayerData(this._layerIdx,this._layerClass,this),this._tileRequested=null):this._tileLayerInfo.data||this.update())}update(){const _=this._findAncestorWithData();return this._setUpsampleTile(_),this._requestNext()}dataArrived(_){this._setUpsampleTile(_),this._tileRequested=null,_===this.tile?this.tile.updateRenderData(this._layerClass,Vs.Ns.FADING):this._requestNext()}dataMissing(){this._tileRequested=null,this._tileLayerInfo.data=null,this._requestNext()}_agentDone(){this.tile.agentDone(this._layerIdx,this._layerClass),this.dispose()}_requestNext(){if(this._suspended)return!0;const _=this._findNextDownload();if(this._tileRequested){if(_===this._tileRequested)return!0;this._tileRequested.unrequestLayerData(this._layerIdx,this._layerClass,this),this._tileRequested=null}return(0,Qe.pC)(_)?_.requestLayerData(this._layerIdx,this._layerClass,this)&&(this._tileRequested=_):this._agentDone(),!!this._tileRequested}_findNextDownload(){const _=this._layerIdx,T=this._layerClass,x=this.tile.surface.layerViewByIndex(_,T),A=(0,Cr.RB)(x),{minLevel:U,maxLevel:ne}=x.dataLevelRange,fe=this._desiredMinLevelDelta,Oe=this._progressiveLevelModulo+fe,we=this._scaleRangeEnabled?Ko.yf:()=>!0;let Ze=this.tile;const it=Ze.level;let lt;const dt=this._tileLayerInfo.upsampleInfo,Tt=(0,Qe.pC)(dt)?dt.tile.level:-1,mt=!!(0,Qe.pC)(dt)&&Tt-it>=fe,Mt=(0,Qe.U2)(A,"tilemapCache");for(;Ze&&we(Ze,A,!1)&&Ze.level>=U;){const Pt=Ze.level,Nt=it-Pt,Bt=Ze.layerInfo[T][_];if(Bt.data&&Nt>=fe){(!mt||Pt>Tt)&&this._setUpsampleTile(Ze),Bt.dataInvalidated&&(lt=Ze);break}if(((0,Qe.Wi)(Mt)||"unavailable"!==Mt.getAvailability(Ze.lij[0],Ze.lij[1],Ze.lij[2]))&&Pt<=ne&&!Bt.data&&!Bt.dataMissing&&(((0,Qe.Wi)(lt)||Ze.level===U||Pt%po.Sx==0||it-lt.level=Oe))break;Ze=Ze.parent}return(0,Qe.pC)(lt)&&it-lt.level=T)return A;x=A}return x}_setUpsampleTile(_){this._tileLayerInfo.setUpsampleInfo(this.tile,_),this.tile.updateRenderData(this._layerClass,Vs.Ns.FADING)}get test(){return{findNextDownload:()=>this._findNextDownload(),tileLayerInfo:this._tileLayerInfo}}}const Dw=new Error("Abstract method called on TileAgent"),ec=new class LV extends aO{get _desiredMinLevelDelta(){throw Dw}get _progressiveLevelModulo(){throw Dw}dispose(){}};class Sw extends aO{constructor(){super(...arguments),this._scaleRangeEnabled=!1}get _desiredMinLevelDelta(){return(0,po.L)(this.tile.level)-(this.tile.vlevel-this.tile.level)}get _progressiveLevelModulo(){return 0}}class Aw extends aO{constructor(){super(),this._scaleRangeEnabled=!0}get _desiredMinLevelDelta(){return 0}get _progressiveLevelModulo(){return po.Sx}}var UV=v(80382);class xE{constructor(){this.waitingAgents=new wo.Z,this._upsampleInfo=null,this.loadingAgent=null,this.requestPromise=null,this.requestAbort=null,this.pendingUpdates=0}static acquire(_){const T=lO.acquire();return T._init(_),T}release(){this.dispose(),DE.delete(this),lO.release(this)}dispose(){this.loadingAgent=(0,Qe.M2)(this.loadingAgent),this.abortRequest(),this._unsetUpsampleInfo(),this.pendingUpdates=0,this._data=(0,Cr.z4)(this._data)}static prune(){lO.prune(0)}_init(_){this.waitingAgents.clear(),this._data=(0,Cr.z4)(this._data),this.dataMissing=!1,this.dataInvalidated=!1,this._unsetUpsampleInfo(),this.abortRequest(),this.loadingAgent=null,this.pendingUpdates=0,this._pool=_,this.elevationBounds=null}invalidateSourceData(){this.dataInvalidated=!0,this.dataMissing=!1,this._unsetUpsampleInfo()}abortRequest(){this.requestAbort=(0,Qe.IM)(this.requestAbort),this.requestPromise=null}get upsampleInfo(){return this._upsampleInfo}_unsetUpsampleInfo(){(0,Qe.pC)(this._upsampleInfo)&&(this._upsampleInfo.tile.unrefMapData(),this._pool.release(this._upsampleInfo),this._upsampleInfo=null)}setUpsampleInfo(_,T){if(_===T||(0,Qe.Wi)(T))this._unsetUpsampleInfo();else{if((0,Qe.Wi)(this._upsampleInfo))this._upsampleInfo=this._pool.acquire();else{if(this._upsampleInfo.tile===T)return;this._upsampleInfo.tile.unrefMapData()}T.refMapData(),(0,Ko.QT)(_,T,this._upsampleInfo)}}get data(){return this._data}set data(_){(0,Cr.z4)(this._data),this._data=_}}const lO=new Wu.Z(xE,null,()=>{}),DE=new Map;class tf{constructor(_){this._texture=_,this.type="tile-texture",this._refCount=1}retain(){++this._refCount}release(){--this._refCount,0===this._refCount&&this._texture.dispose()}get texture(){return this._texture}generateMipmap(){this._texture.generateMipmap()}get descriptor(){return this._texture.descriptor}}var ni;!function(d){d[d.NONE=0]="NONE",d[d.NONE_HIT_MAXLOD=1]="NONE_HIT_MAXLOD",d[d.SPLIT=2]="SPLIT",d[d.VSPLITMERGE=4]="VSPLITMERGE",d[d.MERGE=8]="MERGE",d[d.RENDERDATA=16]="RENDERDATA",d[d.GEOMETRY=32]="GEOMETRY",d[d.TEXTURE_NOFADING=64]="TEXTURE_NOFADING",d[d.TEXTURE_FADING=128]="TEXTURE_FADING"}(ni||(ni={}));const cO=(0,ir.c)(),rf=(0,ir.c)(),va=(0,ir.c)();class FV{constructor(){this.fovX=0,this.fovY=0,this.relativeWidthLimit=0,this.relativeHeightLimit=0,this.maxLod=0,this.angledSplitBias=0,this.aboveGround=!0}}class uO{constructor(){this.lij=[0,0,0],this._children=[null,null,null,null],this._pendingUpdates=0,this._dirty=!0,this._previouslyRendered=!1,this.extent=(0,Bs.Ue)(),this._elevationBounds=(0,un.a)(),this.layerInfo=[[],[]],this.extentInRadians=(0,Bs.Ue)(),this.centerAtSeaLevel=(0,ir.c)(),this._center=[(0,ir.c)(),(0,oo.c)(),(0,ir.c)()],this.up=(0,ir.u)(),this._isWithinClippingArea=!0,this._intersectsClippingArea=!0,this._maxTesselation=0,this._usedMemory=null,this._mapTileMemoryInternal=0,this._mapDataRefCount=0,this._screenDepth=0,this.renderOrder=0,this._edgeLen=0,this._edgeLen2=0,this._curvatureHeight=0,this.extentMidX=0,this.extentMidY=0}static prune(){dO.prune(0),hO.prune(0),xE.prune()}get _isCached(){return!this.shouldLoad&&this._mapDataRefCount<=0}get maxTesselation(){return this._maxTesselation}get isWithinClippingArea(){return this._isWithinClippingArea}get intersectsClippingArea(){return this._intersectsClippingArea}get clippingArea(){return this._clippingArea}get parent(){return this._parent}get children(){return this._children}get surface(){return this._surface}get elevationBounds(){return this._elevationBounds}get level(){return this.lij[0]}get key(){return`${this.lij[0]}/${this.lij[1]}/${this.lij[2]}`}get edgeLen(){return this._edgeLen}get radius(){return this._center[ll.MIDDLE][3]}get screenDepth(){return this._screenDepth}get visible(){return this._dirty&&this.computeVisibility(),this._visible}get frustumVisibility(){return this._dirty&&this.computeVisibility(),this._frustumVisibility}computeVisibility(){this._dirty=!1;const _=this.parent?.frustumVisibility??Vs.ir.INTERSECTS;this._frustumVisibility=_===Vs.ir.INSIDE?Vs.ir.INSIDE:_===Vs.ir.OUTSIDE?Vs.ir.OUTSIDE:this._calculateFrustumVisibilityStatus(this.surface.frustum);const T=this._frustumVisibility!==Vs.ir.OUTSIDE&&this._intersectsClippingArea;T!==this._visible&&(this._visible=T,this._surface.emit("tiles-visibility-changed"),this._surface.renderer.setDirty(),this.updateAgentSuspension())}get loadable(){return this.visible||this._surface.view.state.fixedContentCamera}get rendered(){const _=!!this.renderData;return _!==this._previouslyRendered&&(this._surface.emit("tiles-visibility-changed"),this._previouslyRendered=_,this._surface.renderer.setDirty()),_}get shouldLoad(){const _=this._surface.snapLevel;if((0,Qe.pC)(_)){const T=this.level-_;if(0===T)return!0;if(1===T)return!1}return this.isLeaf}init(_,T,x){this.lij[0]=_[0],this.lij[1]=_[1],this.lij[2]=_[2],this.ellipsoid=(0,En.Iu)(x.tilingScheme.spatialReference),x.tilingScheme.getExtent(_[0],_[1],_[2],this.extent),x.tilingScheme.convertExtentToRadians(this.extent,this.extentInRadians),this.extentMidX=.5*(this.extent[0]+this.extent[2]),this.extentMidY=.5*(this.extent[1]+this.extent[3]),this._isWithinClippingArea=!0,this._intersectsClippingArea=!0,this._clippingArea=null,this._mapDataRefCount=0,x.upsampleMapCache.pop(this.key),this._edgeLen=0,this._edgeLen2=0,this._center[ll.MIDDLE][3]=0,this.vlevel=_?_[0]:0,T&&T.elevationBounds?(0,ti.c)(this._elevationBounds,T.elevationBounds):(0,ti.s)(this._elevationBounds,0,0),this._pendingUpdates=0,this.renderData=null,this._screenDepth=0,this._visible=!1,this._previouslyRendered=!1,this._parent=T,this.unsetChildren(),this._surface=x,this.updateVisibility();for(const A of m0){const U=x.numLayers(A),ne=this.layerInfo[A];for(const fe of ne)fe.release();ne.length=U;for(let fe=0;fe0&&this._surface.upsampleMapCache.put(this.key,this,_)}}setMemoryDirty(){this._usedMemory=null}get usedMemory(){return this._ensureUsedMemory()+(this._isCached?0:this._mapTileMemoryInternal)}get _cachedMemory(){return this._isCached?this._mapTileMemory:0}get _mapTileMemory(){return this._ensureUsedMemory(),this.layerInfo[Bi.MAP].reduce((_,T)=>_+(T instanceof TE.i?T.memoryUsage:0),this._mapTileMemoryInternal)}get _cpuImageMemorySize(){const T=this._surface.tilingScheme.pixelSize;return T*T*4}_ensureUsedMemory(){if((0,Qe.pC)(this._usedMemory))return this._usedMemory;this._usedMemory=0,this._mapTileMemoryInternal=0;let _=0;for(const{data:x}of this.layerInfo[Bi.MAP])x instanceof TE.i?_+=this._getTerrainDataMemory(x):this._mapTileMemoryInternal+=this._getTerrainDataMemory(x);const T=this._cpuImageMemorySize;for(const x of this.layerInfo[Bi.ELEVATION])this._usedMemory+=x.data?T:0;return this.renderData&&(this._usedMemory+=this.renderData.estimatedGeometryMemoryUsage,this._mapTileMemoryInternal+=(0,No.un)(this.renderData.textureDescriptor)),this._isCached&&this._surface.upsampleMapCache.updateSize(this.key,this,this._mapTileMemoryInternal+_),this._usedMemory}getUsedMemoryForLayer(_,T){const x=this.layerInfo[_][T];return x?.data?_===Bi.MAP?this._isCached?0:this._getTerrainDataMemory(x.data):_===Bi.ELEVATION?this._cpuImageMemorySize:0:0}_getTerrainDataMemory(_){return _ instanceof tf?(0,No.un)(_.texture):_ instanceof HTMLImageElement||_ instanceof tO.nN?this._cpuImageMemorySize:_ instanceof TE.i||_ instanceof UV.H?_.memoryUsage:0}updateScreenDepth(_){const T=this._center[ll.MIDDLE],A=T[0],U=T[1],ne=T[2],fe=_[2]*A+_[6]*U+_[10]*ne+_[14];this._screenDepth=fe<0?0:fe/(_[3]*A+_[7]*U+_[11]*ne+_[15])}shouldSplit(_,T,x){if(!this.visible||(0,Qe.pC)(_.frustum)&&(!this._intersectsClippingArea||this._calculateFrustumVisibilityStatus(_.frustum)===Vs.ir.OUTSIDE))return ni.NONE;const A=this.level;(0,pt.b)(cO,this._center[ll.MIDDLE],T);let U=(0,pt.p)(cO),ne=ll.MIDDLE;(0,pt.b)(rf,this._center[ll.TOP],T);const fe=(0,pt.p)(rf);feU&&A<_.maxLod)return ni.SPLIT;const we=Math.sqrt(U),it=this._edgeLen/(_.fovX*we*2),lt=()=>{const Mt=A+Math.ceil(-Math.log2(_.relativeWidthLimit/it));return Mt!==this.vlevel?(this.vlevel=Mt,ni.VSPLITMERGE):ni.NONE_HIT_MAXLOD};if((0,Qe.pC)(x)&&x-A==1)return A>=_.maxLod?lt():ni.SPLIT;const dt=(0,pt.e)(this.up,cO),Tt=this._elevationBounds[1]-this._elevationBounds[0],mt=Tt/this.edgeLen;if(_.aboveGround&&dt>0&&mt<.001&&dt/we-Math.sin(this._curvatureHeight/(this.edgeLen*Math.SQRT1_2)*Math.PI)-mt>0)return ni.NONE;if(it<_.relativeWidthLimit)return this.vlevel!==this.level?(this.vlevel=this.level,ni.VSPLITMERGE):ni.NONE;if(A>=_.maxLod)return lt();if(A>6){(0,pt.b)(rf,this._center[ne],T),(0,pt.g)(va,this.up,dt),(0,pt.b)(va,va,rf);const Mt=(0,pt.p)(va);if(Mt>this.radius*this.radius&&((0,pt.g)(va,va,this.radius/Math.sqrt(Mt)),(0,pt.a)(va,va,this._center[ne]),(0,pt.b)(va,T,va),Math.min(1,(Math.abs((0,pt.e)(va,this.up))+.5*Tt+this._curvatureHeight)/(0,pt.l)(va))*(this._edgeLen/(_.fovY*we*2))<.1/_.angledSplitBias*_.relativeHeightLimit))return ni.NONE}return ni.SPLIT}setChildren(_,T,x,A){(0,Cr.wu)(!!(_&&T&&x&&A),"Null child passed"),this._children[0]=_,this._children[1]=T,this._children[2]=x,this._children[3]=A}unsetChildren(){this._children[0]=null,this._children[1]=null,this._children[2]=null,this._children[3]=null}get isLoaded(){return this.renderData?.hasGeometry??!1}load(){this.refMapData();for(const _ of m0)this._createOrUpdateAgents(0,_);this.surface.renderer.loadTile(this)}unload(_){_.unloadTile(this);for(const T of m0){const x=this.layerInfo[T];for(const A of x)A.loadingAgent&&A.loadingAgent!==ec&&(SE(A.loadingAgent),A.loadingAgent=null),A.pendingUpdates=0}this.resetPendingUpdate(ni.GEOMETRY),this.resetPendingUpdate(ni.TEXTURE_NOFADING),this.resetPendingUpdate(ni.TEXTURE_FADING),this.unrefMapData()}unloadMapData(){const _=this.layerInfo[Bi.MAP];for(const T of _)T.loadingAgent&&T.loadingAgent!==ec&&(SE(T.loadingAgent),T.loadingAgent=null),T.pendingUpdates=0;this.renderData&&this.renderData.releaseTexture(),this.setMemoryDirty()}updateClippingStatus(_){if((0,Bs.fS)(_,this._clippingArea))return!1;const T=this._intersectsClippingArea,x=this._isWithinClippingArea;return(0,Qe.pC)(_)?(this._intersectsClippingArea=this.intersectsExtent(_),this._isWithinClippingArea=this._isWithinExtent(_)):(this._intersectsClippingArea=!0,this._isWithinClippingArea=!0),this._clippingArea=_,this.updateVisibility(),!this.renderData||x&&this._isWithinClippingArea||!(x||T||this._isWithinClippingArea||this._intersectsClippingArea)||this.setPendingUpdate(ni.GEOMETRY),!0}updateVisibility(){this._dirty=!0,this._surface.setTileTreeDirty()}getLayerInfo(_,T){return this.layerInfo[T][_]}hasLayerData(_,T){const x=this.layerInfo[T][_];return!(!x||!x.data||x.dataInvalidated)}get updating(){if(this.hasPendingUpdates)return!0;for(const _ of m0){const T=this.layerInfo[_];for(const x of T)if(x.loadingAgent&&x.loadingAgent!==ec&&x.loadingAgent.updating)return!0}return!1}_isSuspended(_){return!!this.hasPendingUpdate(ni.SPLIT)||_!==Bi.ELEVATION&&!this.loadable}get hasPendingUpdates(){return 0!==this._pendingUpdates}hasPendingUpdate(_){return(this._pendingUpdates&_)===_}setPendingUpdate(_){this._pendingUpdates|=_,_===ni.SPLIT||_===ni.MERGE?this._surface.setTileTreeDirty():this._surface.requestUpdate()}resetPendingUpdate(_){return!!this.hasPendingUpdate(_)&&(this._pendingUpdates&=~_,!0)}requestLayerData(_,T,x){const A=this.layerInfo[T][_];if(A.waitingAgents.has(x))return console.warn("agent already requested this piece of map data (tile %s, agent tile %s, layer: %d/%d)",this.lij.toString(),x.tile.lij.toString(),T,_),!0;if(A.waitingAgents.push(x),A.data&&!A.dataInvalidated)return console.warn("agent requested existing data (tile %s, agent tile %s, layer: %d/%d)",this.lij.toString(),x.tile.lij.toString(),T,_),x.dataArrived(this),!0;if(A.requestPromise)return!0;(0,Qe.IM)(A.requestAbort),A.requestAbort=new AbortController;const U=this._surface.requestTileData(this,_,T,A.requestAbort);if(!U)return A.requestAbort=null,!1;const ne=()=>{A.requestPromise===U&&(A.requestPromise=null,A.requestAbort=null)};return A.requestPromise=U,U.then(ne,ne),!0}get isLeaf(){return null==this._children[0]}hasLij(_){return this.lij[0]===_[0]&&this.lij[1]===_[1]&&this.lij[2]===_[2]}findByLij(_){return this.hasLij(_)?this:this.isLeaf?null:this._children[0].findByLij(_)||this._children[1].findByLij(_)||this._children[2].findByLij(_)||this._children[3].findByLij(_)||null}distanceToSquared(_){return(0,pt.p)((0,pt.b)(va,this._center[ll.MIDDLE],_))}containsPoint(_){const T=this.extent;return _[0]>=T[0]&&_[1]>=T[1]&&_[0]<=T[2]&&_[1]<=T[3]}containsPointXY(_,T){const x=this.extent;return _>=x[0]&&T>=x[1]&&_<=x[2]&&T<=x[3]}unrequestLayerData(_,T,x){const A=this.layerInfo[T][_],U=A.waitingAgents,ne=null!=U.removeUnordered(x);(0,Cr.wu)(ne,"agent has not requested this piece of map data"),U.length<1&&(A.abortRequest(),this.setMemoryDirty())}dataArrived(_,T,x){const A=this.layerInfo[T][_];A.data=x,A.dataInvalidated=!1,A.waitingAgents.forAll(U=>U.dataArrived(this)),A.waitingAgents.clear(),this.setMemoryDirty()}dataMissing(_,T,x){x.notInTilemap||console.error(`Tile ${this.lij.toString()} layer ${T}/${_} error ${x}`);const A=this.layerInfo[T][_];A.dataMissing=!0,A.waitingAgents.forAll(U=>U.dataMissing()),A.waitingAgents.clear(),this.setMemoryDirty()}updateRenderData(_,T){switch(_){case Bi.MAP:return this._updateTexture(T);case Bi.ELEVATION:return this._updateGeometry()}}_updateTexture(_){this.renderData&&(this.resetPendingUpdate(_===Vs.Ns.FADING?ni.TEXTURE_NOFADING:ni.TEXTURE_FADING),this.setPendingUpdate(_===Vs.Ns.FADING?ni.TEXTURE_FADING:ni.TEXTURE_NOFADING))}_updateGeometry(){this.setPendingUpdate(ni.GEOMETRY);for(const _ of this.layerInfo[Bi.ELEVATION])_.pendingUpdates|=ni.GEOMETRY}invalidateLayerData(_,T){this.layerInfo[T][_].invalidateSourceData(),this.restartAgents(T)}computeElevationBounds(){const _=this._elevationBounds;(0,ti.s)(_,1/0,-1/0);const T=this.layerInfo[Bi.ELEVATION];let x=!0;for(const A of T)(0,Qe.pC)(A.elevationBounds)&&(_[0]=Math.min(_[0],A.elevationBounds.min),_[1]=Math.max(_[1],A.elevationBounds.max),A.elevationBounds.hasNoDataValues||(x=!1));x&&(_[0]=Math.min(_[0],0),_[1]=Math.max(_[1],0)),this.updateRadiusAndCenter(),this._surface.setTileTreeDirty()}_updateCenter(){const _=this._elevationBounds;(0,pt.g)(va,this.up,.5*(_[0]+_[1])),(0,pt.a)(this._center[ll.MIDDLE],this.centerAtSeaLevel,va),(0,pt.g)(va,this.up,_[0]),(0,pt.a)(this._center[ll.TOP],this.centerAtSeaLevel,va),(0,pt.g)(va,this.up,_[1]),(0,pt.a)(this._center[ll.BOTTOM],this.centerAtSeaLevel,va)}findElevationBoundsForLayer(_,T){const x=this.layerInfo[Bi.ELEVATION][_];if((0,Qe.pC)(x.elevationBounds)&&x.elevationBounds.level>=T)return;const A=this._surface.layerViewByIndex(_,Bi.ELEVATION),U=(0,Cr.RB)(A);if(!(0,Ko.yf)(this,U,!1))return;const ne=WV;let fe=!1;if(x.data){const Oe=x.data;ne.min=Oe.bounds[0],ne.max=Oe.bounds[1],ne.hasNoDataValues=Oe.hasNoDataValues,ne.level=this.level,fe=!0}else{let Oe,we,Ze=0;for(let it=this._parent;it&&(!we||Ze<(0,po.L)(this.level))&&(Ze=this.vlevel-it.level,Oe=we||Oe,we=it.layerInfo[Bi.ELEVATION][_].data,!(!we&&Oe&&Ze>=(0,po.L)(this.level)));it=it.parent);we=we||Oe,we&&(we.computeMinMaxValue(this.lij[0],this.lij[1],this.lij[2],ne),ne.min!==1/0&&(ne.level=we.level,fe=!0))}fe&&((0,Qe.Wi)(x.elevationBounds)&&(x.elevationBounds=new q_),x.elevationBounds.copyFrom(ne))}modifyLayers(_,T,x){const A=this.layerInfo[x];for(const fe of A)fe.loadingAgent&&fe.loadingAgent!==ec&&(SE(fe.loadingAgent),fe.loadingAgent=null),fe.waitingAgents.clear();for(let fe=0;fe-1?U[Oe]:xE.acquire(this._surface.upsampleInfoPool)}this.setMemoryDirty()}restartAgents(_){this.renderData&&(this._createOrUpdateAgents(0,_),this.updateRenderData(_,Vs.Ns.FADING))}updateAgents(_){if(this.renderData){const T=this.layerInfo[_];for(const x of T)x.loadingAgent===ec&&(x.loadingAgent=null);this._createOrUpdateAgents(0,_)}}updateAgentSuspension(){for(const _ of m0){const T=this._isSuspended(_);for(const x of this.layerInfo[_])x.loadingAgent&&x.loadingAgent!==ec&&(x.loadingAgent.setSuspension(T),x.loadingAgent===ec&&this.updateRenderData(_,Vs.Ns.FADING))}}removeLayerAgent(_,T){const x=this.layerInfo[T][_];x.loadingAgent&&x.loadingAgent!==ec&&x.loadingAgent.dispose(),x.loadingAgent=null}agentDone(_,T){const x=this.layerInfo[T][_];x.loadingAgent=ec,!x.data&&(0,Qe.Wi)(x.upsampleInfo)&&this._createOrUpdateAgents(_+1,T)}_hasBlendableAncestor(_){return"normal"!==_.blendMode||(0,Cr.CY)(_.parent)&&this._hasBlendableAncestor(_.parent)}_hasBlendModes(_,T,x){for(let A=_;A=_[0]&&_[2]>=T[2]&&T[1]>=_[1]&&_[3]>=T[3]}intersectsExtent(_){const T=this.extent;return T[2]>=_[0]&&_[2]>=T[0]&&T[3]>=_[1]&&_[3]>=T[1]}getElevationBasedVerticesPerSide(_){const T=this.vlevel-this.level,x=Math.max(this.level-_,(0,po.L)(this.level)-T);return(0,xr.uZ)(1+(this.maxTesselation>>x),2,this.maxTesselation+1)}get test(){return{cachedMemory:this._cachedMemory}}_findLIJ(_,T){if(!_)return null;const x=this.surface.rootTiles;if((0,Qe.pC)(x))for(const A of x)if(VV(A,_)){let U=A,ne=_[0]-U.level-1;for(;ne>=0&&!U.isLeaf&&!T(U);)U=U.children[2*(_[1]>>ne&1)+(_[2]>>ne&1)],ne--;return T(U)?U:null}return null}findNeighborTile(_,T){const x=this.lij,A=this.getNeighborLIJ(x,_);return A?function zV(d,_){return d[0]===_[0]&&d[1]===_[1]&&d[2]===_[2]}(x,A)?T(this)?this:null:this._findLIJ(A,T):null}findCorner(_,T){const x=_===Vs.Xo.NORTH_EAST?1:_===Vs.Xo.NORTH_WEST?0:_===Vs.Xo.SOUTH_WEST?2:3;let A=this;for(;!(A.isLeaf||T&&T(A));)A=A.children[x];return A}findNeighborCornerTileExact(_,T){return this.findNeighborTile(_,x=>T(x)||x.level===this.level)?.findCorner((0,Cr.$v)(_),T)}forAllSubtreeOnSide(_,T){const x=_===Vs.Xo.NORTH?[0,1]:_===Vs.Xo.NORTH_EAST?[1]:_===Vs.Xo.EAST?[1,3]:_===Vs.Xo.SOUTH_EAST?[3]:_===Vs.Xo.SOUTH?[2,3]:_===Vs.Xo.SOUTH_WEST?[2]:_===Vs.Xo.WEST?[0,2]:[0],A=U=>{T(U)||U.isLeaf||x.forEach(ne=>A(U.children[ne]))};A(this)}forallNeighbors(_){Cr.cA.forEach(T=>this.findNeighborCornerTileExact(T,_)),Cr.OC.forEach(T=>this.findNeighborTile(T,x=>x.level===this.level||_(x))?.forAllSubtreeOnSide((0,Cr._F)(T),_))}getNeighborEdgeStartVertexIndex(_,T){if(!T)return 0;const x=this.level-T.level;if((0,Cr.Fp)(!Cr.jt||x>=0),0===x)return 0;const A=2**x,U=1==(1&_),ne=U?0:1,fe=T.lij[ne+1]*A,Oe=this.lij[ne+1],we=Oe-fe,Ze=U?A-1-we:we;return Cr.jt&&((0,Cr.Fp)(fe<=Oe&&OeA.level===T||A.isLoaded;Cr.OC.forEach(A=>{const U=this.findNeighborTile(A,x);null!=U&&U!==this&&U.forAllSubtreeOnSide((0,Cr._F)(A),ne=>!!ne.isLoaded&&(_(ne,A),!0))}),Cr.cA.forEach(A=>{const U=this.findNeighborTile(A,x)?.findCorner((0,Cr.$v)(A),ne=>ne.isLoaded);(0,Cr.Fp)(!U||pO(this,U,A)),U?.isLoaded&&_(U,A)})}getNeighborLIJ(_,T){const x=(0,Cr.Mw)(T)?-1:(0,Cr.uv)(T)?1:0,A=(0,Cr.OD)(T)?-1:(0,Cr.Eu)(T)?1:0,U=[_[0],_[1]+x,_[2]+A];return U[1]<0?null:this.surface.isGlobal?this.wrapLIJ(U):U[2]<0?null:U}wrapLIJ(_){return!_||_[1]<0||_[1]>=2**_[0]?null:this.surface.wrapEastWest(_)}get westNeighborWestExtent(){return this.extent[0]*(this.isWestEnd?-1:1)}get eastNeighborEastExtent(){return this.extent[2]*(this.isEastEnd?-1:1)}get isEastEnd(){return this.lij[2]===this.surface.lijEastEnd(this.level)-1}get isWestEnd(){return 0===this.lij[2]}get isNorthEnd(){return 0===this.lij[1]}get isSouthEnd(){return this.extent[1]+(0,OE.g)()>=this.surface.extent[1]}compareLIJs(_){const T=this.lij,x=T[0],A=_[0];if(x===A)return[T,_];const U=x-A;if(U<0){const ne=2**-U;return[[A,T[1]*ne,T[2]*ne],_]}{const ne=2**U;return[T,[x,_[1]*ne,_[2]*ne]]}}checkGeometryWaterproofness(){Cr.XJ&&((0,Cr.Fp)(this.isLoaded),this.renderData.checkGeometryWaterproofness())}shouldHaveNeighbor(_){const T=this.extent,x=this.surface.rootTilesExtent,A=.25*(T[2]-T[0]);if((0,Cr.Mw)(_)&&T[3]+A>=x[3]||(0,Cr.uv)(_)&&T[1]-A<=x[1])return!1;const U=this.surface.isGlobal;return!(!U&&(0,Cr.OD)(_)&&T[0]-A<=x[0]||!U&&(0,Cr.Eu)(_)&&T[2]+A>=x[2])}}function NV(d,_,T,x){const A=T===Bi.ELEVATION?hO.acquire():dO.acquire();return A.init(d,_,T,x),A}function SE(d){d.dispose(),d instanceof Sw?hO.release(d):d instanceof Aw&&dO.release(d)}const dO=new Wu.Z(Aw),hO=new Wu.Z(Sw),WV=new q_;var ll;function VV(d,_){const T=d.level,x=_[0];if(T>x)return!1;const A=x-T,U=Math.floor(_[1]/2**A),ne=Math.floor(_[2]/2**A);return U===d.lij[1]&&ne===d.lij[2]}function Vd(d,_,T){return Math.abs(d-_)<=T}function pO(d,_,T){return!(0,Qe.Wi)(d)&&!(0,Qe.Wi)(_)&&_!==d&&(d.level>=_.level?Rw(d,_,T):Rw(_,d,(0,Cr.$v)(T)))}function Rw(d,_,T){(0,Cr.Fp)(d.level>=_.level);const x=(0,Cr._0)(T),A=(0,Cr.wt)(T),U=d.extent,ne=_.extent,fe=[x?U[0]:U[2],A?U[3]:U[1]],Oe=[x?ne[2]:ne[0],A?ne[1]:ne[3]],we=1e-5*(U[2]-U[0]),Ze=Vd(fe[0],Oe[0],we)||d.surface.isGlobal&&Vd(fe[0],-Oe[0],we),it=Vd(fe[1],Oe[1],we);if(Ze&&it)return!0;if(d.level===_.level||!Ze&&!it)return(0,Cr.Fp)(!1),!1;const lt=Ze?ww(ne[1],ne[3],U[1],U[3],we):ww(ne[0],ne[2],U[0],U[2],we);return(0,Cr.Fp)(lt),lt}function ww(d,_,T,x,A=(0,OE.g)()){return d-A<=T&&T<=x&&x<=_+A}!function(d){d[d.TOP=0]="TOP",d[d.MIDDLE=1]="MIDDLE",d[d.BOTTOM=2]="BOTTOM"}(ll||(ll={}));class GV{constructor(){this._scales=(0,Tn.f)(-1,-1,-1,-1),this._offsets=(0,Tn.f)(-1,-1,-1,-1)}clear(){this._scales[0]=this._scales[1]=this._scales[2]=this._scales[3]=-1,this._offsets[0]=this._offsets[1]=this._offsets[2]=this._offsets[3]=-1}setScale(_,T,x){this._scales[2*_]=T,this._scales[2*_+1]=x}setOffset(_,T,x){this._offsets[2*_]=T,this._offsets[2*_+1]=x}get scales(){return this._scales}get offsets(){return this._offsets}}var Iw=v(73693),AE=v(64127),cl=v(57596);class RE extends so.A{constructor(){super(...arguments),this.useStencil=!1}initializeConfiguration(_,T){T.hasWebGL2Context=_.rctx.type===cl.zO.WEBGL2,T.spherical=_.viewingMode===vi.JY.Global}initializeProgram(_){return new Gn.$(_.rctx,RE.shader.get().build(this.configuration),Lw)}initializePipeline(){return this._stencilPipelineState=this._createPipeline(!0),this._createPipeline(!1)}_createPipeline(_){const T=this.configuration,x=T.backfaceCullingEnabled&&!T.renderOccluded;return(0,Ds.sm)({blending:T.renderOccluded?(0,Ds.if)(xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA):null,culling:x&&Ds.Rd,depthTest:!T.renderOccluded&&{func:xt.wb.LESS},depthWrite:!T.renderOccluded&&Ds.LZ,colorWrite:Ds.BK,stencilTest:_?(0,AE.iV)(Fi.hU.IntegratedMeshMaskExcluded):null})}getPipelineState(_,T){return this.useStencil?this._stencilPipelineState:super.getPipelineState(_,T)}}RE.shader=new ro.J(Iw.a,()=>v.e(3277).then(v.bind(v,13277)));const Lw=new Map([[Qi.T.POSITION,0],[Qi.T.UV0,1],[Qi.T.NORMALCOMPRESSED,2]]);class KV{constructor(){this.geometryInfo=new OV,this.intersectionData=null,this.geometryState=null,this._textureRef=new ef(()=>this.tile.surface.textureFadeDuration),this.overlay=new GV,this._geometryStateChangedSinceLastUpdate=!0,this._hasGeometry=!1,this._numVerticesPerSideChanged=!1,this._samplerDataChanged=!1,this._clippingAreaChanged=!1,this._wireframeChanged=!1,this._shadingChanged=!1,this._dirtyEdgeResolutions=15,this._dirtyEdges=15,this._dirtyCorners=15}get tile(){return this._tile}init(_){this.clear(),this._tile=_;const T=this.geometryInfo;T.indices=null,T.vertexAttributes=null,(0,fo.cS)(T.boundingBox),T.indexCount=0,T.numVerticesPerSide=0,this.intersectionData=null,this.geometryState=new IV,this.localOrigin=null,this.overlay.clear()}clear(){this._releaseGeometry(),this.releaseTexture(),this._textureRef.clear(),this._tile=null,this.intersectionData=null,this.geometryState=null}updateGeometryIfNeeded(_){if((!this._vao||this._geometryStateChangedSinceLastUpdate||this._wireframeChanged||this._shadingChanged||this._clippingAreaChanged||this._samplerDataChanged||this._numVerticesPerSideChanged||this._dirtyCorners||this._dirtyEdgeResolutions||this._dirtyEdges)&&(this._updateGeometry(_),this._geometryStateChangedSinceLastUpdate=!1),Cr.jt&&this.tile.intersectsClippingArea)for(let T=0;T<4;++T)(0,Cr.Fp)(this.geometryInfo.outerEdges[T].count===this.geometryState.neighborData.edgeResolutions[T]+1)}_calculateEdgeResolution(_,T){const x=this.tile,A=this.geometryState.numVerticesPerSide-1;if(!x.surface.isGlobal){const Oe=x.surface.extent;if((0,Qe.pC)(Oe)&&(0===_&&x.extent[3]>Oe[3]||1===_&&x.extent[2]>Oe[2]||2===_&&x.extent[1]=0),0===Ze?Math.max(we.numVerticesPerSide-1,A):Math.max(1,we.neighborData.edgeResolutions[(_+2)%4]/2**Ze)}(0,Cr.Fp)(!T.isLeaf);let fe=A;return T.forAllSubtreeOnSide((0,Cr._F)(ne),Oe=>Oe===x||(Oe.isLoaded?(fe=Math.max(fe,2**(Oe.level-U)),!0):((0,Cr.Fp)(!Oe.isLeaf),!1))),fe}updateNeighborData(){const _=this.tile;if(!_.intersectsClippingArea)return;const T=_.renderData.geometryState.neighborData,x=fe=>(fe.isLoaded||fe.level===_.level)&&fe?.intersectsClippingArea,A=T.edgePeerNeighbors,U=T.edgePeerNeighborSamplerVersions;for(let fe=0;fe<4;++fe){const Oe=_.findNeighborTile(Cr.OC[fe],x),we=Jh(_,Oe),Ze=we?.renderData?.geometryState.samplerDataVersion??-1,lt=we!==Jh(_,A[fe]),dt=U[fe]!==Ze;A[fe]=Oe,(lt||dt)&&(U[fe]=Ze,this._markEdgeDirty(fe));const Tt=T.edgeResolutions[fe],mt=this._calculateEdgeResolution(fe,Oe);(0,Cr.Fp)((0,xr.wt)(mt)),(0,Cr.Fp)(mt>=1),T.edgeResolutions[fe]=mt,Tt!==mt&&this._markEdgeResolutionDirty(fe)}const ne=T.cornerPeerNeighbors;for(let fe=0;fe<4;++fe){const Oe=_.findNeighborTile(Cr.cA[fe],x);ne[fe]=Oe;const we=Jh(_,A[fe]),Ze=Jh(_,A[(fe+1)%4]),it=Jh(_,Oe);mu[fe]=it,mu[(fe+1)%4]=Ze,mu[(fe+2)%4]=_,mu[(fe+3)%4]=we,(0,Cr.Fp)(mu.some(mt=>mt?.isLoaded||mt===_));const lt=mu.reduce((mt,Mt)=>Math.min(mt,Mt?.level??1/0),1/0);mu.forEach((mt,Mt)=>{mt?.level>lt&&(mu[Mt]=null)}),(0,Cr.Fp)(mu.some(mt=>mt?.isLoaded||mt===_));const dt=T.cornerNeighborData[fe].cornerTiles,Tt=T.cornerNeighborData[fe].cornerTileSamplerVersions;for(let mt=0;mt<4;++mt){const Mt=mu[mt],Pt=Mt?.renderData.geometryState.samplerDataVersion??-1,Nt=dt[mt]!==Mt,Bt=!Nt&&Tt[mt]!==Pt;(Nt||Bt)&&(dt[mt]=Mt,Tt[mt]=Pt,this._markCornerDirty(fe))}(0,Cr.Fp)(dt.some(mt=>mt?.isLoaded||mt===_))}Cr.jt&&(0,Cr.Fp)(this.geometryState.neighborData.edgeResolutions.every(fe=>fe>0));for(let fe=0;fe<4;++fe)mu[fe]=null}_updateGeometry(_){if(!this.tile.intersectsClippingArea)return;Cr.jt&&(0,Cr.Fp)(!this.tile.intersectsClippingArea||this.geometryState.neighborData.edgeResolutions.every(Oe=>Oe>0)),this.intersectionData=null;const T=this.tile,U=!this._vao||!this.geometryInfo.vertexAttributes||this._wireframeChanged||this._shadingChanged||this._numVerticesPerSideChanged||this._samplerDataChanged||this._clippingAreaChanged||this._dirtyEdgeResolutions,ne=!U&&(0!==this._dirtyEdges||0!==this._dirtyEdgeResolutions),fe=!ne&&0!==this._dirtyCorners;U?(this._releaseGeometry(),this._createGeometry(_)):ne||fe?T.updateEdgeElevations():fe?T.updateCornerElevations():console.warn("Update for no reason?"),this._numVerticesPerSideChanged=!1,this._samplerDataChanged=!1,this._dirtyEdgeResolutions=0,this._dirtyEdges=0,this._dirtyCorners=0,this._clippingAreaChanged=!1,this._wireframeChanged=!1}releaseGeometry(){return this._releaseGeometry()}get hasGeometry(){return this._hasGeometry}ensureTexture(_,T){return(0,Qe.pC)(this._texture)&&this._texture.descriptor.width!==_&&this.releaseTexture(),(0,Qe.Wi)(this._texture)&&(this._texture=T(),this.tile.setMemoryDirty()),this._texture}releaseTexture(){(0,Qe.pC)(this._texture)&&(this._texture.release(),this._texture=null,this.tile.setMemoryDirty())}_markCornerDirty(_){this._dirtyCorners|=1<<_}_markEdgeDirty(_){this._dirtyEdges|=1<<_}_markEdgeResolutionDirty(_){const T=1<<_;this._dirtyEdgeResolutions|=T,this._dirtyEdges|=T}_markAllEdgesAndCornersDirty(){this._dirtyCorners=15,this._dirtyEdges=15,this._dirtyEdgeResolutions=15}updateGeometryState(){const _=this._getElevationInfo(),T=this.tile,x=_.samplerData?T.getElevationBasedVerticesPerSide(_.maxTileLevel):T.getDefaultVerticesPerRowOnLevel(),A=Math.max(x,5);let U=T.clippingArea;T.intersectsClippingArea&&!T.isWithinClippingArea||(U=null);const ne=this.geometryState;let fe=!1;ne.numVerticesPerSide!==A&&(this._numVerticesPerSideChanged=!0,ne.numVerticesPerSide=A,ne.samplerDataVersion++,fe=!0),_.changed&&(this._samplerDataChanged=!0,ne.samplerData=_.samplerData,ne.samplerDataVersion++,fe=!0),(0,pd.fS)(ne.clippingArea,U)||(this._clippingAreaChanged=!0,ne.clippingArea=U,fe=!0);const Oe=T.surface,we=Oe.wireframe;ne.wireframe!==we&&(this._wireframeChanged=!0,ne.wireframe=we,fe=!0);const Ze=Oe.shading;return ne.shading!==Ze&&(this._shadingChanged=Ze,ne.shading=Ze,fe=Ze),this._geometryStateChangedSinceLastUpdate||(this._geometryStateChangedSinceLastUpdate=fe),fe&&this._markAllEdgesAndCornersDirty(),this._hasGeometry=!0,this._geometryStateChangedSinceLastUpdate}_createGeometry(_){this.tile.createGeometry();const T=this.geometryInfo.vertexAttributes,x=this.geometryInfo.indices,A=_.gl;this._vao=new Dh.U(_,Lw,{geometry:(0,xh.K)(T.layout)},{geometry:Ra.f.createVertex(_,A.STATIC_DRAW,T.buffer)},Ra.f.createIndex(_,A.STATIC_DRAW,x)),this._hasGeometry=!0}_releaseGeometry(){return this._hasGeometry=!1,this.intersectionData=null,!!this._vao&&(this._vao.dispose(),this._vao=null,function SV(d){oO.release(d.vertexAttributes),d.vertexAttributes=null,d.indices=null}(this.geometryInfo),!0)}get vao(){return this._vao}setTextureReference(_,T=Wd.Immediate){(0,Qe.pC)(_)&&_.texture!==this._texture&&this.releaseTexture(),this._textureRef.push(_,T)}get textureReference(){return this._textureRef.current}get nextTextureReference(){return this._textureRef.next}get textureFadeFactor(){return this._textureRef.fadeFactor}get textureIsFading(){return this._textureRef.isFading}_getElevationInfo(){const _=this.geometryState.samplerData,T=this.tile.layerInfo[Bi.ELEVATION],x=T.length;let A=new Array(x),U=0,ne=0,fe=!1;for(let Oe=0;Oe0?A.length=U:A=null,{changed:fe,samplerData:A,maxTileLevel:ne}}get estimatedGeometryMemoryUsage(){const _=(0,Qe.R2)(this.intersectionData,0,T=>T.estimatedMemoryUsage);return(this.geometryInfo.indices?.byteLength??0)+(this.geometryInfo.vertexAttributes?.byteLength??0)+_}get textureDescriptor(){return(0,Qe.pC)(this._texture)?this._texture.descriptor:null}get test(){return{hasTexture:null!=this._texture}}checkGeometryWaterproofness(){if(!Cr.jt)return;const _=this.tile;if((0,Cr.Fp)(_?.isLoaded),!_.isLoaded||!_.intersectsClippingArea||0===_.level)return;const T=_.surface.extent;if((0,Qe.pC)(T)&&!_.intersectsExtent(T))return;const x=Cr.OC.map((fe,Oe)=>!!(0,Qe.pC)(T)&&(Oe<2?-1:1)*(_.extent[3-Oe]-T[3-Oe])<0),A=_.level;(0,Cr.Fp)(0===this._dirtyCorners),(0,Cr.Fp)(0===this._dirtyEdges),(0,Cr.Fp)(0===this._dirtyEdgeResolutions),(0,Cr.Fp)(!this._numVerticesPerSideChanged),(0,Cr.Fp)(!this._samplerDataChanged),(0,Cr.Fp)(!this._clippingAreaChanged),(0,Cr.Fp)(!this._wireframeChanged);const U=Cr.cA.map(fe=>_.findNeighborCornerTileExact(fe,Oe=>!Oe.intersectsClippingArea||Oe.isLoaded||Oe.level===_.level)??null).map(fe=>fe?.intersectsClippingArea?fe:null),ne=this.geometryState.neighborData;for(let fe=0;fe<4;++fe){const Oe=ne.cornerPeerNeighbors[fe],we=U[fe];(0,Cr.Fp)(we===Oe,`Tile[${_.lij}].corner[${fe}] out of date: cur=[${Oe?.lij}] exp=[${we?.lij}]`)}Cr.OC.forEach((fe,Oe)=>{if(x[Oe])return;const we=_.findNeighborTile(fe,lr=>(lr.level===A||lr?.isLoaded)&&lr?.intersectsClippingArea);if(!we){const lr=!_.surface.updatingRootTiles&&(0,Qe.pC)(_.surface.rootTiles)&&_.surface.rootTiles.length>0&&_.shouldHaveNeighbor(fe);return void(0,Cr.Fp)(!lr)}(0,Cr.Fp)(we.isLoaded||we.level===_.level),(0,Cr.Fp)(we===this.geometryState.neighborData.edgePeerNeighbors[Oe]);const Ze=A-we.level;if(!we.isLoaded)return(0,Cr.Fp)(!we.isLeaf),void(0,Cr.Fp)(0===Ze);(0,Cr.Fp)(function HV(d,_,T){if((0,Qe.Wi)(d)||(0,Qe.Wi)(_))return!1;if(0===d.level&&0===_.level&&(d.isEastEnd&&_.isWestEnd&&T===Vs.Xo.EAST||d.isWestEnd&&_.isEastEnd&&T===Vs.Xo.WEST))return!0;const x=Math.max(1e-6*(d.extent[2]-d.extent[0]),1);switch(T){case Vs.Xo.NORTH:return Vd(d.extent[3],_.extent[1],x);case Vs.Xo.SOUTH:return Vd(d.extent[1],_.extent[3],x);case Vs.Xo.EAST:return Vd(d.extent[2],_.extent[0],x)||Vd(d.extent[2],-_.extent[0],x);case Vs.Xo.WEST:return Vd(d.extent[0],_.extent[2],x)||Vd(d.extent[0],-_.extent[2],x)}}(_,we,fe)),(0,Cr.Fp)(Ze>=0);const it=2**Ze;if(Ze<0)return void(0,Cr.Fp)(!1);const lt=_.renderData.geometryInfo,dt=lt.outerEdges[Oe],Tt=lt.numVerticesPerSide-1,mt=we.renderData.geometryInfo;if(!mt)return void(0,Cr.Fp)(!1);{const lr=this.geometryState.neighborData.edgePeerNeighbors[Oe];(lr?.isLoaded||lr.isLoaded)&&((0,Cr.Fp)(lr==lr),(0,Cr.Fp)(_.renderData.geometryState.neighborData.edgePeerNeighborSamplerVersions[Oe]===lr.renderData.geometryState.samplerDataVersion),(0,Cr.Fp)(this.geometryState.neighborData.edgePeerNeighborSamplerVersions[Oe]===lr.renderData.geometryState.samplerDataVersion))}const Mt=(Oe+2)%4,Pt=mt.outerEdges[Mt],Nt=dt.count-1,Bt=Pt.count-1;(0,Cr.Fp)(Nt*it===Bt,`Tile[${_.lij}]:e${Oe},res=${Nt} edgeRes mismatch with Neighbor[${we.lij}]:e${Mt},res=${Bt} (expected:${Nt*it})`);const Zt=_.extent,nr=fe===Vs.Xo.NORTH||fe===Vs.Xo.SOUTH,Jt=Pt.count-1,Rr=Jt/2**Ze,Br=dt.count-1;if(Rr<1)return void(0,Cr.Fp)(1===Br);(0,Cr.Fp)(Rr===Br),(0,Cr.Fp)((0,xr.wt)(Rr)),(0,Cr.Fp)(Ze>0||Rr===Math.max(mt.numVerticesPerSide-1,Tt));const Yr=_.getNeighborEdgeStartVertexIndex(Oe,we);(0,Cr.Fp)(0<=Yr&&Yr0&&console.warn(` localOrigins: ${_.renderData.localOrigin} vs ${we.renderData.localOrigin} d=${(0,pt.u)(Hs)} [${Hs}]`),(()=>{const Js=(0,ir.a)(Ku),Gs=(0,ir.a)(Zu);_.updateEdgeElevations(),we.updateEdgeElevations(),dt.getVertexPos(Ku,Xr),Pt.getVertexPos(Zu,os);const bs=(0,ir.c)();(0,pt.y)(bs,Ku,Js),(0,pt.u)(bs)>0&&console.warn(` XXX Tile[${_.lij}] edge out of date: ${Js} vs ${Ku} d=${(0,pt.u)(bs)} [${bs}]`),(0,pt.y)(bs,Zu,Gs),(0,pt.u)(bs)>0&&console.warn(` XXX Neighbor[${we.lij}] edge out of date: ${Gs} vs ${Zu} d=${(0,pt.u)(bs)} [${bs}]`)})(),(0,Cr.Fp)(Ms,`Mismatch in tile [${_.lij}].edge[${Oe}][${Xr}/${dt.count}] vs neighbor [${we.lij}].edge[${Mt}][${os}/${Pt.count}] ${(0,Cr.zT)(Ku)} vs ${(0,Cr.zT)(Zu)} dist=${ls} h(t|n|d)=${ms}|${ss}|${ss-ms}`)}if(_.surface.shading){dt.getNormal(sf,Xr),Pt.getNormal(nf,os),(0,pt.n)(Uw,sf),(0,pt.n)(Bw,nf);const Hs=(0,pt.e)(Uw,Bw),Js=!1,Gs=1-Hs<.01||Js||_===we;if(!Gs){const bs=(0,ir.c)();(0,pt.y)(bs,sf,nf);const ps=()=>`Mismatch in tile edge normal ${(0,Cr.sP)(_.lij)} (${Xr}/${dt.count-1}) edge ${Oe} vs neighbor ${(0,Cr.sP)(we.lij)} (${os}/${Pt.count-1}) nedge ${Mt} :${(0,Cr.zT)(sf)} vs ${(0,Cr.zT)(nf)} dot = ${Hs} : ${(0,Cr.zT)(bs)}`;console.warn("Mismatch in tile edge normal: ",ps());{_.updateEdgeElevations(),we.updateEdgeElevations();const _s=(0,ir.c)(),Is=(0,ir.c)();dt.getNormal(_s,Xr),Pt.getNormal(Is,os),(0,pt.F)(sf,_s)||console.warn("Missing update in tile normal: ",(0,Cr.zT)(sf)," => ",(0,Cr.zT)(_s)),(0,pt.F)(nf,Is)||console.warn("Missing update in neighbor normal: ",(0,Cr.zT)(nf)," => ",(0,Cr.zT)(Is))}(0,Cr.Fp)(Gs,ps())}}}Xr+=1,os+=1}})}}const Ku=(0,ir.c)(),Zu=(0,ir.c)(),sf=(0,ir.c)(),nf=(0,ir.c)(),Uw=(0,ir.c)(),Bw=(0,ir.c)(),ZV=1,mu=[null,null,null,null];function Jh(d,_){return _?.isLoaded||_===d?_:null}function jw(d){d.tile.intersectsClippingArea&&(Nw(d),Fw(d))}function Fw(d,_=!1){const T=d.geometryState,x=d.geometryInfo,A=T.neighborData,U=d.tile,ne=U.level,fe=U.extent,Oe=U.ellipsoid.radius,we=U.extentInRadians,Ze=we[0],it=we[2],lt=we[1],dt=we[3],Tt=T.samplerData,mt=fe[0],Mt=fe[2],Pt=fe[1],Nt=fe[3],Bt=_O(d),Zt=x.boundingBox,nr=d.localOrigin,Jt=nr[0],Rr=nr[1],Br=nr[2],$r=U.surface.shading||y0,Yr=x.vertexAttributes,cs=Yr.position,Xr=cs.typedBuffer,os=cs.typedBufferStride,br=Yr.uv0;for(let Vr=0;Vr<4;++Vr){const lr=1===Vr||3===Vr,wr=A.edgeResolutions[Vr];(0,Cr.Fp)((0,xr.wt)(wr));const Gr=wr+1,zr=Jh(U,A.edgePeerNeighbors[Vr]);if(Yw(U,zr,Vr)){Zw(d,Vr);continue}const rs=(0,Qe.pC)(zr);(0,Cr.Fp)(!rs||zr.level===U.level),(0,Cr.Fp)(!rs||(0,Ko.gl)(U,zr)<=0);const ls=zr?.renderData,ms=ls?.geometryState;if(Cr.jt){const _i=U.surface;if(!zr&&_i&&!_i.updatingRootTiles){const bi=Cr.OC[Vr],Ii=U.findNeighborTile(bi,sn=>sn.isLoaded||sn.isLeaf||sn.level===U.level);Ii?Ii.intersectsClippingArea&&((0,Cr.Fp)(!Ii.isLoaded),(0,Cr.Fp)(!Ii.isLeaf),(0,Cr.Fp)(Ii.level===ne)):(0,Cr.Fp)((0,Qe.Wi)(_i?.rootTiles)||!U.shouldHaveNeighbor(bi))}}const ss=1===Vr?fe[2]:fe[0],Ms=zr?.extent,Hs=rs&&lr?1===Vr?Ms[0]:Ms[2]:ss,Js=0===Vr?fe[3]:fe[1],Gs=1===Vr?1:0,bs=0===Vr?1:0,ps=1===Vr?it:Ze,_s=0===Vr?dt:lt,Is=Math.sin(ps),is=Math.cos(ps),ii=Math.sin(_s),Ys=Math.cos(_s),Zs=ms?.samplerData,ks=(_i,bi,Ii)=>wn(_i,bi,Tt),ds=(_i,bi,Ii)=>.5*(wn(_i,bi,Tt)+wn(Ii,bi,Zs)),qs=rs?ds:ks,Ni=x.outerEdges[Vr],Wi=_&&Gr>3?Gr-3:1,Pn=(0,Qe.pC)(Tt)&&Tt.some(_i=>null!=_i),bn=(0,Qe.pC)(Zs)&&Zs.some(_i=>null!=_i),an=Pn||bn,ji=1/wr,dn=Ni.index0;$r?((0,Cr.Fp)(!rs||(0,Cr.Wq)(Ms[2]-Ms[0],fe[2]-fe[0])),(()=>{const _i=1===Vr?-1:3===Vr?1:0,bi=0===Vr?-1:2===Vr?1:0,Ii=(fe[2]-fe[0])*ji,sn=_i*Ii,ln=bi*Ii,Vi=lr?_i*((it-Ze)*ji):0,Ai=lr?0:bi*ji,nn=bs,Vn=lr?ps+Vi:ps,Yi=lr?Math.sin(Vn):Is,Yn=lr?Math.cos(Vn):is,Xn=lr?ps-Vi:ps,Ta=lr?Math.sin(Xn):Is,Ba=lr?Math.cos(Xn):is,ic=lr?_s:Bt(nn+Ai),kc=lr?ii:Math.sin(ic),Sc=lr?Ys:Math.cos(ic),sa=lr?_s:Bt(nn-Ai),$o=lr?ii:Math.sin(sa),co=lr?Ys:Math.cos(sa),ka=(dn+0)*os;let Xi=Xr[ka+0]+Jt,Sn=Xr[ka+1]+Rr,Wo=Xr[ka+2]+Br,go=0,ia=0,Ac=0;{const To=1*ji,Vf=lr?ss:mt*(1-To)+Mt*To,wy=lr?Hs:Vf,Iy=lr?Pt*(1-To)+Nt*To:Js,Ly=lr?ps:Ze*(1-To)+it*To,$b=lr?Is:Math.sin(Ly),Yb=lr?is:Math.cos(Ly),zf=lr?Bt(To):_s,Uy=lr?Math.sin(zf):ii,Hf=lr?Math.cos(zf):Ys,By=Oe+qs(Vf,Iy,wy);go=Yb*Hf*By,ia=$b*Hf*By,Ac=Uy*By}for(let To=1;To{for(let _i=1;_ifunction ez(d,_,T,x){return Ww(d*(1-x)+_*x,T)}(x[1],x[3],A,U)}const T=_.extentInRadians;return x=>function tz(d,_,T){return d*(1-T)+_*T}(T[1],T[3],x)}function Vw(d,_){d.tile.intersectsClippingArea&&(Hw(d),zw(d,!1))}function zw(d,_){const T=d.geometryState,x=T.neighborData,A=d.tile,U=A.surface,ne=U.shading||y0,fe=A.extent,Oe=T.clippingArea,we=(0,Qe.pC)(Oe)?Oe:IE,Ze=fe[0],it=fe[2],lt=fe[1],dt=fe[3],Tt=[dt>we[3],it>we[2],ltds.isLoaded||ds.isLeaf||ds.level===A.level);U.updatingRootTiles||(ks?ks.intersectsClippingArea&&((0,Cr.Fp)(!ks.isLoaded),(0,Cr.Fp)(!ks.isLeaf),(0,Cr.Fp)(ks.level===A.level)):(0,Cr.Fp)((0,Qe.Wi)(U?.rootTiles)||!A.shouldHaveNeighbor(Zs)))}const Hs=(0,xr.uZ)(1===lr?it:Ze,Rr,Br),Js=(0,xr.uZ)(0===lr?dt:lt,$r,Yr),Gs=Ms?.samplerData,bs=mt.outerEdges[lr],ps=_&&zr>3?zr-3:1,_s=(0,xr.uZ)(1===lr?1:0,Bt,nr),Is=(0,xr.uZ)(0===lr?1:0,Zt,Jt),is=(Zs,ks)=>wn(Zs,ks,Vr),ii=(Zs,ks)=>.5*(wn(Zs,ks,Gs)+wn(Zs,ks,Vr)),Ys=ms?ii:is;if(ne){const Zs=(it-Ze)/Gr,ks=wr?1===lr?Zs:-Zs:0,ds=wr?0:0===lr?Zs:-Zs,qs=-ks,Ni=-ds,Wi=bs.attributes.position.typedBuffer,Pn=bs.attributes.position.typedBufferStride,bn=bs.index0,an=bs.stride,ji=bn*Pn;let dn=Wi[ji+0]+Xr,_i=Wi[ji+1]+os,bi=Wi[ji+2]+br,Ii=0,sn=0,ln=0;{const Vi=1/Gr,Ai=wr?Hs:(0,xr.uZ)(Ze*(1-Vi)+it*Vi,Rr,Br),nn=wr?(0,xr.uZ)(lt*(1-Vi)+dt*Vi,$r,Yr):Js,Vn=Ys(Ai,nn),Yi=Ai*Mt,Yn=Pt(nn);Ii=Yi,sn=Yn,ln=Vn}for(let Vi=1;Vifunction lz(d,_){return(Math.PI/2-2*Math.atan(Math.exp(-d/_)))*_}(x,_):x=>function cz(d,_){return d*_}(x,T)}function Gw(d,_,T,x,A,U){const ne=_-1,fe=d.vertexAttributes.count,Oe=2*(Math.min(_-2,x[1])-Math.max(1,x[0]))*(Math.min(_-2,A[1])-Math.max(1,A[0])),we=Cr.OC.map((Nt,Bt)=>0===Bt&&A[1]<_-2||1===Bt&&x[1]<_-2||2===Bt&&A[0]>1||3===Bt&&x[0]>1),Ze=d.outerEdges.reduce((Nt,Bt,Zt)=>Nt+(we[Zt]?0:ne-2+Bt.count-1),0),it=T.reduce((Nt,Bt)=>Nt+ne*(2*(Bt.latitudeResolution-1)+1),0),lt=U?2:1,dt=3*(Oe+Ze+it)*lt,Tt=fe>=65536?new Uint32Array(dt):new Uint16Array(dt);let mt=0;const Mt=_-2,Pt=ne-2;if((0,Cr.Fp)(Pt>=0),U){const Nt=(Zt,nr,Jt)=>{Tt[mt++]=Zt,Tt[mt++]=nr,Tt[mt++]=nr,Tt[mt++]=Jt,Tt[mt++]=Jt,Tt[mt++]=Zt,Cr.jt&&((0,Cr.Fp)(Zt{for(let Zt=Math.max(A[0],1)-1;Zt{for(let Zt=0;Zt<4;++Zt){const nr=mt;if(we[Zt])continue;const Jt=d.outerEdges[Zt],Rr=d.innerEdges[Zt];let Br=0,$r=0;const Yr=Jt.count,cs=Rr.count;(0,Cr.Fp)(cs===ne-1);let Xr=0;const os=1===Zt||2===Zt?(br,Vr,lr)=>Nt(br,Vr,lr):(br,Vr,lr)=>Nt(br,lr,Vr);for(;Br{const nr=d.outerEdges[Zt.connectedOuterEdgeOffset];let Jt=nr.getVertexIndex(0),Rr=nr.stride;for(let Br=0;Br{const Bt=Math.max(A[0],1)-1,Zt=Math.min(A[1],_-2)-1,nr=Math.max(x[0],1)-1,Jt=Math.min(x[1],_-2)-1;for(let Rr=Bt;Rr{for(let Bt=0;Bt<4;++Bt){if(we[Bt])continue;const Zt=d.outerEdges[Bt],nr=d.innerEdges[Bt];let Jt=0,Rr=0;const Br=Zt.count,$r=nr.count;(0,Cr.Fp)($r===ne-1);const Yr=1===Bt||2===Bt,cs=Yr?1:2,Xr=Yr?2:1,os=Zt.index0,br=Zt.stride,Vr=nr.index0,lr=nr.stride;for(;Jt{const Zt=d.outerEdges[Bt.connectedOuterEdgeOffset];let nr=Zt.getVertexIndex(0),Jt=Zt.stride;for(let Rr=0;Rr{const bs=d.geometryState.clippingArea,ps=Oe.extent,_s=(0,Qe.pC)(bs)&&(ps[3]>bs[3]||ps[2]>bs[2]||ps[1]{const Zs=0===is?Yr[0]:Yr[2],ks=0===ii?Yr[1]:Yr[3],ds=_s?(0,xr.uZ)(Zs,bs[0],bs[2]):Zs,qs=_s?(0,xr.uZ)(ks,bs[1],bs[3]):ks,Ni=Ys;dt=ds*lt,Tt=Is(qs),mt=Ni}})():(bs,ps,_s)=>{const Is=it[0===ps?1:3],is=it[0===bs?0:2],ii=Math.cos(Is),Ys=Math.sin(Is),Zs=Math.sin(is),ks=Math.cos(is),ds=Ze+_s;dt=ks*ii*ds,Tt=Zs*ii*ds,mt=Ys*ds};let nr=0,Jt=0,Rr=0;const Br=we&&d.tile.surface.isWebMercatorOnPlateeCarree,$r=(bs,ps,_s,Is)=>{if(we){const is=ps*lt,ii=Br?(Math.PI/2-2*Math.atan(Math.exp(-_s/Ze)))*Ze:_s*lt,Ys=is-dt,Zs=ii-Tt,ks=Is-mt;nr+=-Ys*ks,Jt+=-Zs*ks,Rr+=Ys*Ys+Zs*Zs}else{const is=_O(bs),ii=bs.tile,Ys=ii.extent,Zs=ii.extentInRadians,ks=(ps-Ys[0])/(Ys[2]-Ys[0]),qs=Zs[0]*(1-ks)+Zs[2]*ks,Ni=is((_s-Ys[1])/(Ys[3]-Ys[1])),Wi=Math.cos(Ni),Pn=Math.sin(Ni),bn=Math.sin(qs),an=Math.cos(qs),ji=Ze+Is,dn=an*Wi*ji-dt,_i=bn*Wi*ji-Tt,bi=Pn*ji-mt,Ii=_i*Nt-bi*Pt,sn=bi*Mt-dn*Nt,ln=dn*Pt-_i*Mt;nr+=sn*bi-ln*_i,Jt+=ln*dn-Ii*bi,Rr+=Ii*_i-sn*dn}},Yr=Oe.extent,cs=_.clippingArea,Xr=(0,Qe.pC)(cs)?cs:IE,os=Yr[0],br=Yr[2],Vr=Yr[1],lr=Yr[3],wr=[lr>Xr[3],br>Xr[2],Vr{if(!we){const ds=1/Math.sqrt(dt*dt+Tt*Tt+mt*mt);Mt=dt*ds,Pt=Tt*ds,Nt=mt*ds}const ps=A[bs].cornerTiles;nr=0,Jt=0,Rr=0;let _s=1/0;for(let ds=0;ds<4;++ds)_s=Math.min(_s,ps[ds]?.level??1/0);for(let ds=0;ds<4;++ds){const qs=ps[ds];qg[ds]=qs?.level===_s?qs:null}let Is=1,is=0;for(let ds=0;ds<4;++ds){const qs=qg[ds];qs&&(Is=Math.max(Is,qs?.renderData.geometryState.numVerticesPerSide),is=qs.extent[2]-qs.extent[0])}const ii=is,Ys=Is;(0,Cr.Fp)(Ys>1);const Zs=ii/Ys;for(let ds=0;ds<4;++ds){const qs=qg[(ds+3)%4],Ni=qg[(ds+0)%4];if(!qs&&!Ni)continue;const Wi=0===ds?1:1===ds?2:2===ds?3:0,Pn=0===ds?2:1===ds?3:2===ds?0:1;if(qs&&Ni){const bn=mO[ds][0]*Zs,an=mO[ds][1]*Zs,ji=qs.extent,dn=ji[0===Wi||1===Wi?2:0]+bn,_i=ji[0===Wi||3===Wi?3:1]+an,bi=Ni.extent,Ii=bi[0===Pn||1===Pn?2:0]+bn,sn=bi[0===Pn||3===Pn?3:1]+an,ln=qs.renderData,Vi=Ni.renderData,Ai=wn(dn,_i,ln.geometryState.samplerData),nn=wn(Ii,sn,Vi.geometryState.samplerData);$r(ln,dn,_i,.5*(Ai+nn))}else{const bn=qs??Ni,an=qs?Wi:Pn,ji=bn.extent,dn=mO[ds],_i=ji[0===an||1===an?2:0]+dn[0]*Zs,bi=ji[0===an||3===an?3:1]+dn[1]*Zs,Ii=bn.renderData,sn=wn(_i,bi,Ii.geometryState.samplerData);$r(Ii,_i,bi,sn)}}const ks=1/Math.sqrt(nr*nr+Jt*Jt+Rr*Rr);nr*=ks,Jt*=ks,Rr*=ks};for(let bs=0;bs<4;++bs){const ps=bs,_s=(bs+1)%4,Is=0===bs||1===bs?1:0,is=0===bs||3===bs?1:0,ii=(0,xr.uZ)(Is,ms,Ms),Ys=(0,xr.uZ)(is,ss,Hs),Zs=ne[ps],ks=0===bs||3===bs?Zs.count-1:0,ds=ne[_s],qs=0===bs||1===bs?ds.count-1:0,Ni=A[bs].cornerTiles;let Wi=-1;for(let an=0;an<4;++an){const ji=Ni[an];ji&&(-1===Wi||(0,Ko.gl)(Ni[Wi],ji)>0)&&(Wi=an)}const Pn=Wi,bn=Ni[Pn];if(nr=0,Jt=0,Rr=1,bn!==Oe){const an=Oe.level-bn.level,ji=2**an,dn=[bn.lij[0]+an,bn.lij[1]*ji,bn.lij[2]*ji],_i=[dn[1]+ji===Oe.lij[1],0===bs&&(1===Pn||0===Pn&&bn!==Ni[3])||1===bs&&(0===Pn||1===Pn&&bn!==Ni[2]),dn[1]===Oe.lij[1]+1,2===bs&&(3===Pn||2===Pn&&bn!==Ni[1])||3===bs&&(2===Pn||3===Pn&&bn!==Ni[0])],bi=_i.reduce((Ai,nn)=>Ai+(nn?1:0),0);(0,Cr.Fp)(1===bi||2===bi);let Ii=-1,sn=-1;const ln=bn.renderData;if(1===bi){const Ai=_i.findIndex(Vn=>Vn);(0,Cr.Fp)(0<=Ai&&Ai<=3),Ii=(Ai+2)%4;const nn=d.geometryState.neighborData.edgeResolutions[Ai];sn=Oe.getNeighborEdgeStartVertexIndex(Ai,bn)*nn+nn*(0===Ai&&0===bs||1===Ai&&0===bs||2===Ai&&1===bs||3===Ai&&3===bs?1:0)}else{(0,Cr.Fp)(_i[1]||_i[3]),Ii=_i[1]?3:1;const Ai=ln.geometryState.neighborData.edgeResolutions[Ii];sn=0===bs||3===bs?0:Ai}const Vi=ln.geometryInfo.outerEdges[Ii];{const Ai=Zs.index0+ks*Zs.stride,nn=ds.index0+qs*ds.stride,Vn=Vi.index0+sn*Vi.stride;{const Yi=Vi.attributes.position,Yn=Yi.typedBuffer,Xn=Vn*Yi.typedBufferStride,Ta=d.localOrigin,Ba=Vi.localOrigin,ic=Yn[Xn+0]+Ba[0]-Ta[0],kc=Yn[Xn+1]+Ba[1]-Ta[1],Sc=Yn[Xn+2]+Ba[2]-Ta[2];al(ic,kc,Sc,fe);{const sa=Zs.attributes.position,$o=sa.typedBuffer,co=Ai*sa.typedBufferStride;$o[co+0]=ic,$o[co+1]=kc,$o[co+2]=Sc}{const sa=ds.attributes.position,$o=sa.typedBuffer,co=nn*sa.typedBufferStride;$o[co+0]=ic,$o[co+1]=kc,$o[co+2]=Sc}}ql(Zs.attributes.uv0,Ai,ii,Ys),ql(ds.attributes.uv0,nn,ii,Ys);{const Yi=Vi.attributes.normalCompressed.typedBuffer,Yn=Vn*Vi.attributes.normalCompressed.typedBufferStride;{const Xn=Zs.attributes.normalCompressed,Ta=Xn.typedBuffer,Ba=Ai*Xn.typedBufferStride;Ta[Ba+0]=Yi[Yn+0],Ta[Ba+1]=Yi[Yn+1]}{const Xn=ds.attributes.normalCompressed,Ta=Xn.typedBuffer,Ba=nn*Xn.typedBufferStride;Ta[Ba+0]=Yi[Yn+0],Ta[Ba+1]=Yi[Yn+1]}}}}else{const ji=wr[_s];let dn;dn=wr[ps]||ji?wn((0,xr.uZ)(os*(1-Is)+br*Is,Gr,zr),(0,xr.uZ)(Vr*(1-is)+lr*is,rs,ls),_.samplerData):uz(Ni),Zt(Is,is,dn),(Js||y0)&&Gs(bs);const _i=dt-x[0],bi=Tt-x[1],Ii=mt-x[2];al(_i,bi,Ii,fe),Zs.setVertexFromValuesRawPositionUVNormal(ks,_i,bi,Ii,ii,Ys,nr,Jt,Rr),ds.setVertexFromValuesRawPositionUVNormal(qs,_i,bi,Ii,ii,Ys,nr,Jt,Rr)}}for(let bs=0;bs<4;++bs)qg[bs]=null}function uz(d){const _=d.reduce((U,ne)=>Math.min(U,ne?.level??1/0),1/0);Cr.jt&&((0,Cr.Fp)(!d[0]||!d[2]||pO(d[0],d[2],Vs.Xo.SOUTH_WEST)),(0,Cr.Fp)(!d[1]||!d[3]||pO(d[1],d[3],Vs.Xo.NORTH_WEST)));let T=0,x=0;for(let U=0;U<4;++U){const ne=d[U];if(ne&&ne.level===_){const we=ne.extent,lt=ne.renderData?.geometryState?.samplerData;x+=wn(we[0===U||1===U?0:2],we[0===U||3===U?1:3],lt),T++}}const A=T?x/T:0;return(0,Cr.Fp)(null!=A),A}function wE(d){const T=d.geometryInfo.vertexAttributes.position.typedBuffer;d.vao.vertexBuffers.geometry.setSubData(T,0,0,T.length)}const mO=[[0,1],[1,0],[0,-1],[-1,0]],Io=new class RV{constructor(){this.sinLonLUT=new Array(po.HB+1),this.cosLonLUT=new Array(po.HB+1),this.sinLatLUT=new Array(po.HB+1),this.cosLatLUT=new Array(po.HB+1)}update(_,T,x){const A=T[0],U=T[2];for(let ne=0;ne<=_;ne++){const fe=ne/_,Oe=A*(1-fe)+U*fe;this.sinLonLUT[ne]=Math.sin(Oe),this.cosLonLUT[ne]=Math.cos(Oe);const we=x(fe);this.sinLatLUT[ne]=Math.sin(we),this.cosLatLUT[ne]=Math.cos(we)}}},IE=(0,Bs.al)(-1/0,-1/0,1/0,1/0),qg=[null,null,null,null];function Yw(d,_,T){if(!_)return!1;const x=(0,Ko.gl)(d,_);return x>0||0===x&&T<2}const y0=!0;var v0=v(57623);class dz extends uO{constructor(_,T,x){super(),this._horizontalScaleFactor=1,this._extentInRenderSR=(0,Bs.Ue)(),void 0!==_&&this.init(_,T,x)}get horizontalScale(){return this._horizontalScaleFactor}init(_,T,x){super.init(_,T,x);const A=x.view.renderSpatialReference,U=x.spatialReference,ne=(0,Qe.pC)(A)&&(0,hc.QM)(A)&&(0,Qe.pC)(U)&&U.isGeographic?this.ellipsoid.radius*Math.PI/180:1;this._horizontalScaleFactor=ne;const Oe=this._extentInRenderSR,we=this.extent;if(this.surface.isWebMercatorOnPlateeCarree){const Ze=(0,ir.f)(we[0],we[1],0);(0,di.SH)(Ze,to.Z.WebMercator,Ze,to.Z.PlateCarree);const it=(0,ir.f)(we[2],we[3],0);(0,di.SH)(it,to.Z.WebMercator,it,to.Z.PlateCarree),Oe[0]=Ze[0],Oe[1]=Ze[1],Oe[2]=it[0],Oe[3]=it[1]}else for(let Ze=0;Ze<4;++Ze)Oe[Ze]=we[Ze]*ne;this.centerAtSeaLevel[0]=.5*(Oe[0]+Oe[2]),this.centerAtSeaLevel[1]=.5*(Oe[1]+Oe[3]),this.centerAtSeaLevel[2]=0,this._edgeLen=Math.max(Oe[2]-Oe[0],Oe[3]-Oe[1]),this._edgeLen2=this._edgeLen*this._edgeLen,this.updateRadiusAndCenter()}updateRadiusAndCenter(){this._updateCenter();const _=this._extentInRenderSR,T=.5*(_[2]-_[0]),x=.5*(_[3]-_[1]),A=Math.sqrt(T*T+x*x),ne=Math.max(A,.5*(this.elevationBounds[0]-this.elevationBounds[1]));this._center[ll.MIDDLE][3]=ne}_calculateFrustumVisibilityStatus(_){const T=this._aabb(),x=T[0],A=T[1],U=T[2],ne=T[3],fe=T[4],Oe=T[5];let we=!0;for(let Ze=0;Ze<6;Ze++){const it=_[Ze],lt=it[0],dt=it[1],Tt=it[2],mt=it[3];if(lt*(lt>0?x:ne)+dt*(dt>0?A:fe)+Tt*(Tt>0?U:Oe)+mt>=0)return Vs.ir.OUTSIDE;we=we&<*(lt<0?x:ne)+dt*(dt<0?A:fe)+Tt*(Tt<0?U:Oe)+mt<=0}return we?Vs.ir.INSIDE:Vs.ir.INTERSECTS}_aabb(){const _=this._extentInRenderSR;return(0,fo.re)(_[0],_[1],this.elevationBounds[0],_[2],_[3],this.elevationBounds[1])}intersectsRay(_,T,x,A){return LE[0]=1/T[0],LE[1]=1/T[1],LE[2]=1/T[2],(0,v0.Fw)(this._aabb(),_,LE,x,A)}createGeometry(){(function rz(d,_){const T=d.tile.extent,x=d.geometryState,A=T[0],U=T[1],ne=T[2]-A,fe=T[3]-U,Oe=x.clippingArea,we=(0,Qe.pC)(Oe)?Math.max(0,(Oe[0]-A)/ne):0,Ze=(0,Qe.pC)(Oe)?Math.max(0,(Oe[1]-U)/fe):0,it=(0,Qe.pC)(Oe)?Math.min(1,(Oe[2]-A)/ne):1,lt=(0,Qe.pC)(Oe)?Math.min(1,(Oe[3]-U)/fe):1,dt=x.numVerticesPerSide,Tt=(dt-2)**2,Mt=Mw(Tt+x.neighborData.edgeResolutions.reduce((Bt,Zt)=>Bt+Zt+1,0)),Pt=d.geometryInfo;(0,fo.cS)(Pt.boundingBox),Pt.numVerticesPerSide=x.numVerticesPerSide,Pt.vertexAttributes=Mt,(0,Qo.s)(Pt.uvRange,we,Ze,it,lt),function sz(d){const _=d.tile;_.intersectsClippingArea&&(_.surface.shading?function nz(d){const _=d.tile,T=_.surface;if(!T.shading&&!y0)return;const x=d.geometryState,A=x.samplerData,U=d.localOrigin,ne=T.isWebMercatorOnPlateeCarree,fe=x.clippingArea,Oe=(0,Qe.pC)(fe)?fe:IE,we=_.extent,Ze=we[0],it=we[1],lt=we[2],dt=we[3],Tt=Math.max(Ze,Oe[0]),mt=Math.min(lt,Oe[2]),Mt=Math.max(it,Oe[1]),Pt=Math.min(dt,Oe[3]),Nt=_.ellipsoid.radius,Bt=_.horizontalScale,Zt=x.numVerticesPerSide,nr=Zt-1,Jt=Zt-2,Rr=d.geometryInfo,Br=Rr.vertexAttributes,$r=Br.position,Yr=Br.uv0,cs=Br.normalCompressed,Xr=Rr.uvRange,os=Xr[0],br=Xr[1],Vr=Xr[2],lr=Xr[3],wr=Rr.boundingBox,Gr=U[0],zr=U[1],rs=U[2],ls=$r.typedBuffer,ms=$r.typedBufferStride;let ss=0;const Ms=(0,xr.uZ)(it,Mt,Pt),Hs=ne?(Math.PI/2-2*Math.atan(Math.exp(-Ms/Nt)))*Nt:Ms*Bt,Js=1/nr,Gs=(0,xr.uZ)(it*(1-Js)+dt*Js,Mt,Pt);let bs=Hs,ps=ne?(Math.PI/2-2*Math.atan(Math.exp(-Gs/Nt)))*Nt:Gs*Bt;for(let _s=1;_s<=Jt;_s++){const Is=_s/nr,is=(0,xr.uZ)(it*(1-Is)+dt*Is,Mt,Pt),ii=(0,xr.uZ)(Is,br,lr),Ys=ps,Zs=(_s-1)/nr,ks=(0,xr.uZ)(it*(1-Zs)+dt*Zs,Mt,Pt),ds=bs,qs=(_s+1)/nr,Ni=(0,xr.uZ)(it*(1-qs)+dt*qs,Mt,Pt),Wi=ne?(Math.PI/2-2*Math.atan(Math.exp(-Ni/Nt)))*Nt:Ni*Bt,Pn=(0,xr.uZ)(qs,br,lr);bs=ps,ps=Wi;const bn=(0,xr.uZ)(Ze,Tt,mt);let an=bn*Bt,ji=wn(bn,is,A);const dn=1/nr,_i=(0,xr.uZ)(dn,os,Vr),bi=(0,xr.uZ)(Ze*(1-_i)+lt*_i,Tt,mt);let Ii=_i,sn=bi,ln=bi*Bt,Vi=wn(bi,is,A);if(1===_s){const Ai=ln-Gr,nn=bs-zr,Vn=Vi-rs,Yi=0*ms;ls[Yi+0]=Ai,ls[Yi+1]=nn,ls[Yi+2]=Vn,al(Ai,nn,Vn,wr),ql(Yr,ss,(0,xr.uZ)(dn,os,Vr),ii)}for(let Ai=1;Ai<=Jt;Ai++){const nn=ln,Vn=Vi,Yi=(Ai+1)/nr,Yn=(0,xr.uZ)(Yi,os,Vr),Xn=(0,xr.uZ)(Ze*(1-Yi)+lt*Yi,Tt,mt),Ta=sn;sn=Xn;{const ka=ss+1,Xi=ka*ms;if(1===_s||Ai===Jt){const Sn=Xn*Bt,Wo=Ys,go=wn(Xn,is,A);if(1===_s&&AiBr+$r+1,0),Bt=Mw(lt+Mt+Nt),Zt=d.geometryInfo;Zt.numVerticesPerSide=fe.numVerticesPerSide,Zt.vertexAttributes=Bt;const nr=Zt.boundingBox;(0,fo.cS)(nr);const Jt=_O(d);Io.update(it,A,Jt),function XV(d){const _=d.tile;_.intersectsClippingArea&&(_.surface.shading||y0?function JV(d){const _=d.geometryState,T=_.numVerticesPerSide,x=T-2,A=T-1,U=d.geometryInfo,ne=U.vertexAttributes,fe=ne.position,Oe=ne.uv0,we=ne.normalCompressed,Ze=d.tile,it=Ze.extent,lt=it[0],dt=it[2],Tt=it[1],mt=it[3],Mt=Ze.ellipsoid.radius,Pt=_.samplerData,Nt=d.localOrigin,Bt=Nt[0],Zt=Nt[1],nr=Nt[2],Jt=fe.typedBuffer,Rr=fe.typedBufferStride,Br=1/A,$r=U.boundingBox;let Yr=0;if(1<=x){const cs=Br,Xr=Tt*(1-cs)+mt*cs,os=Io.sinLatLUT[1],br=Io.cosLatLUT[1];for(let Vr=1;Vr<=x;Vr++){const lr=Vr*Br,Gr=Io.sinLonLUT[Vr],zr=Io.cosLonLUT[Vr],rs=Mt+wn(lt*(1-lr)+dt*lr,Xr,Pt),ls=rs*zr*br-Bt,ms=rs*Gr*br-Zt,ss=rs*os-nr;al(ls,ms,ss,$r);const Ms=(Vr-1)*Rr;Jt[Ms+0]=ls,Jt[Ms+1]=ms,Jt[Ms+2]=ss,ql(Oe,Vr-1,lr,cs)}}for(let cs=1;cs<=x;cs++){const Xr=cs*Br,os=Tt*(1-Xr)+mt*Xr,br=Io.sinLatLUT[cs],Vr=Io.cosLatLUT[cs],lr=cs+1,wr=lr*Br,Gr=Tt*(1-wr)+mt*wr,zr=Io.sinLatLUT[lr],rs=Io.cosLatLUT[lr],ls=Io.sinLonLUT[0],ms=Io.cosLonLUT[0],ss=Mt+wn(lt,os,Pt);let Ms=ms*Vr*ss-Bt,Hs=ls*Vr*ss-Zt,Js=br*ss-nr;const Gs=Yr*Rr;let bs=Jt[Gs+0],ps=Jt[Gs+1],_s=Jt[Gs+2];for(let Is=1;Is<=x;Is++){const is=Is*Br,ii=lt*(1-is)+dt*is,Ys=Io.sinLonLUT[Is],Zs=Io.cosLonLUT[Is],ks=Zs*Vr,ds=Ys*Vr,qs=br;let Ni=0,Wi=0,Pn=0;{let an=0,ji=0,dn=0;if(Is1){const _i=(Yr-x)*Rr;an=Jt[_i+0],ji=Jt[_i+1],dn=Jt[_i+2]}else{const _i=Io.sinLatLUT[0],bi=Io.cosLatLUT[0],Ii=Mt+wn(ii,Tt,Pt);an=Zs*bi*Ii-Bt,ji=Ys*bi*Ii-Zt,dn=_i*Ii-nr}{const _i=Mt+wn(ii,Gr,Pt),bi=Zs*rs*_i-Bt,Ii=Ys*rs*_i-Zt,sn=zr*_i-nr;if(cs{let Br=lt+Nt;const $r=ne[0],Yr=ne[1],cs=ne[2],Xr=T.ellipsoid.radius,os=x[1],br=x[3],Vr=(lr,wr)=>{const Gr=wr*Ze;al(-$r,-Yr,lr*Xr-cs,nr),Rr.push({connectedRowOffset:Gr,connectedOuterEdgeOffset:1===lr?0:2,rowOffset:Br,latitudeResolution:6});const zr=Ww(-1===lr?os:br,Xr),rs=lr*Math.PI/2-zr,ls=.99*(1===lr?1:-1),ms=Xr+0,ss=Bt.position,Ms=Bt.uv0,Hs=Bt.normalCompressed;for(let Js=1;Js<=6;++Js){const Gs=zr+rs*(Js/6),bs=Math.cos(Gs),ps=Math.sin(Gs);for(let _s=0;_s<=it;_s++){const Is=_s/it,ii=Io.cosLonLUT[_s]*bs,Ys=Io.sinLonLUT[_s]*bs,Zs=ps,ks=ii*ms-$r,ds=Ys*ms-Yr,qs=Zs*ms-cs;al(ks,ds,qs,nr),ss.setValues(Br,ks,ds,qs),ql(Ms,Br,Is,ls),we&&Qg(Hs,Br,ii,Ys,Zs),++Br}}};dt&&Vr(-1,0),Tt&&Vr(1,it)})(),Gw(Zt,fe.numVerticesPerSide,Rr,[0,Ze-1],[0,Ze-1],fe.wireframe),d.intersectionData=null,Cr.jt)for(let Br=0;Br<4;++Br)(0,Cr.Fp)(Zt.outerEdges[Br].count===Pt.edgeResolutions[Br]+1)})(this.renderData,_),this.setMemoryDirty()}_updateOBB(){const _=this.extentInRadians,T=this._obb;for(let x=0;x<2;x++){const A=this.elevationBounds[x];let U=4*x;(0,di.zP)(T[U++],_[0],_[1],this.ellipsoid.radius+A),(0,di.zP)(T[U++],_[0],_[3],this.ellipsoid.radius+A),(0,di.zP)(T[U++],_[2],_[3],this.ellipsoid.radius+A),(0,di.zP)(T[U++],_[2],_[1],this.ellipsoid.radius+A)}if(this.surface.isWebMercator)switch(this._getPatchType(this.lij[1],this.lij[0])){case Vs.tk.HAS_NORTH_POLE:(0,pt.s)(T[1],0,0,this.ellipsoid.radius),(0,pt.s)(T[2],0,0,this.ellipsoid.radius),(0,pt.s)(T[5],0,0,this.ellipsoid.radius),(0,pt.s)(T[6],0,0,this.ellipsoid.radius);break;case Vs.tk.HAS_SOUTH_POLE:(0,pt.s)(T[0],0,0,-this.ellipsoid.radius),(0,pt.s)(T[3],0,0,-this.ellipsoid.radius),(0,pt.s)(T[4],0,0,-this.ellipsoid.radius),(0,pt.s)(T[7],0,0,-this.ellipsoid.radius)}}_getPatchType(_,T){return _===(1<0;){const _=this._queryQueue.pop();this._queries.push(_)}this._queriesInvPtr=this._queries.length}processQueries(){for(let _=0;_=this._queriesInvPtr),T.callback=null}this._queries.clear()}scaleQueriesForTile(_){const T=_.level;let x=0;for(;x=A.minLevel&&T<=A.maxLevel&&U[0]<=_.extent[2]&&U[2]>=_.extent[0]&&U[1]<=_.extent[3]&&U[3]>=_.extent[1]?(this._queries.swapElements(x,this._queriesInvPtr-1),this._queriesInvPtr--):x++}}}var $u=v(7699);class kw extends pi.m{constructor(){super(...arguments),this.blendMode=$u.iM.Normal}}(0,Ve._)([(0,pi.o)({count:$u.iM.COUNT})],kw.prototype,"blendMode",void 0);var In=v(87191);class af extends kw{constructor(){super(...arguments),this.output=In.lG.Composite,this.baseOpacityMode=In.Iu.NotRequired,this.premultipliedSource=In.m9.Off,this.hasWebGL2Context=!1}}(0,Ve._)([(0,pi.o)({count:In.lG.COUNT})],af.prototype,"output",void 0),(0,Ve._)([(0,pi.o)({count:In.Iu.COUNT})],af.prototype,"baseOpacityMode",void 0),(0,Ve._)([(0,pi.o)()],af.prototype,"premultipliedSource",void 0),(0,Ve._)([(0,pi.o)()],af.prototype,"hasWebGL2Context",void 0);var fz=v(14273),UE=v(87204);class mz extends fz.R{constructor(){super(...arguments),this.opacity=1,this.baseOpacity=1,this.texture=null,this.fboTexture=null,this.backgroundColor=ir.Z}}class BE extends so.A{initializeConfiguration(_,T){T.hasWebGL2Context=_.rctx.type===cl.zO.WEBGL2}initializeProgram(_){return new Gn.$(_.rctx,BE.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.if)(xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA),colorWrite:Ds.BK})}}BE.shader=new ro.J(UE.B,()=>v.e(7298).then(v.bind(v,7298)));class Jw extends af{constructor(){super(...arguments),this.background=UE.a.BelowLayer}}(0,Ve._)([(0,pi.o)()],Jw.prototype,"background",void 0);class gO{constructor(_,T,x,A,U,ne){this.texture=_,this.type=T,_.retain(),this.offsetAndScale=(0,Tn.f)(x.offset[0],x.offset[1],x.scale,x.scale),this.opacities=(0,ir.f)(A,U,ne)}destroy(){this.texture.release()}}var lf=v(62449),Dl=v(31478),gz=v(12225);Object.freeze(Object.defineProperty({__proto__:null,create:function Qh(){return[1,0,0,1,0,0]},clone:function yz(d){return[d[0],d[1],d[2],d[3],d[4],d[5]]},fromValues:function vz(d,_,T,x,A,U){return[d,_,T,x,A,U]},createView:function Ez(d,_){return new Float64Array(d,_,6)}},Symbol.toStringTag,{value:"Module"}));var cf=v(49966),Qw=v(9545),yO=v(75957);Math;function vO(d,_){return _.type?(0,ti.s)(d,_.x,_.y):(0,ti.c)(d,_)}function zd(d,_){const T=d.targetGeometry,x=_.targetGeometry;return T.x=x.x,T.y=x.y,T.spatialReference=x.spatialReference,d.scale=_.scale,d.rotation=_.rotation,d}const Mz=function(){const d=(0,un.a)();return function(_,T,x){const A=T.targetGeometry;vO(d,A);const U=.5*uf(T);return _.xmin=d[0]-U*x[0],_.ymin=d[1]-U*x[1],_.xmax=d[0]+U*x[0],_.ymax=d[1]+U*x[1],_.spatialReference=A.spatialReference,_}}(),sI=function(){const d=(0,un.a)();return function(_,T,x){return(0,ti.e)(_,function Sz(d,_){return(0,ti.b)(d,_,.5)}(_,T),function Tz(d,_,T){return T?(0,ti.s)(d,.5*(_[0]-T.right+T.left),.5*(_[1]-T.bottom+T.top)):(0,ti.b)(d,_,.5)}(d,T,x))}}();!function(){const d=[1,0,0,1,0,0],_=(0,un.a)()}();function uf(d){return d.scale*function xz(d){return(0,Qe.pC)(d)&&(0,hc.JY)(d.spatialReference)?1/(39.37*function rI(d){return(0,dM.c9)(d)}(d.spatialReference)*96):1}(d.targetGeometry)}function TO(d){return(0,OE.t)(d.rotation)||0}const MO=function(){const d=(0,un.a)(),_=(0,un.a)(),T=(0,un.a)();return function(x,A,U,ne,fe,Oe){return(0,ti.n)(d,A),(0,ti.b)(_,U,.5*Oe),(0,ti.s)(T,1/ne*Oe,-1/ne*Oe),(0,Dl.a)(x,_),fe&&(0,Dl.r)(x,x,fe),(0,Dl.s)(x,x,T),(0,Dl.t)(x,x,d),x}}(),PO=function(){const d=(0,un.a)();return function(_,T,x,A){const U=uf(T),ne=TO(T);return vO(d,T.targetGeometry),MO(_,d,x,U,ne,A)}}(),Az=function(){const d=(0,un.a)();return function(_,T,x,A){const U=uf(T);return vO(d,T.targetGeometry),MO(_,d,x,U,0,A)}}();(0,un.a)(),(0,un.a)(),(0,un.a)(),(0,un.a)();(function(){const d=(0,un.a)()})(),function(){const d=(0,un.a)()}();const iI=((0,un.a)(),(0,un.a)(),function(){const d=[1,0,0,1,0,0];return function(_,T,x,A){return(0,ti.t)(_,T,function Pz(d,_,T,x){return PO(d,_,T,x),(0,Dl.c)(d,d)}(d,x,A,1))}}()),nI=function(){const d=[1,0,0,1,0,0];return function(_,T,x,A){return(0,ti.t)(_,T,PO(d,x,A,1))}}(),OO=function(){const d=(0,un.a)(),_=[1,0,0,1,0,0];return function(T,x,A){zd(T,x);const U=uf(x),ne=T.targetGeometry;return(0,Dl.b)(_,TO(x)),(0,Dl.s)(_,_,(0,un.f)(U,U)),(0,ti.t)(d,A,_),ne.x+=d[0],ne.y+=d[1],T}}();var xO;const Hd=[0,0];let qh=xO=class extends zl.wq{constructor(d){super(d),this._viewpoint2D={center:(0,un.a)(),rotation:0,scale:0,spatialReference:null},this.center=[0,0],this.extent=new bl.Z,this.id=0,this.inverseTransform=[1,0,0,1,0,0],this.resolution=0,this.rotation=0,this.scale=0,this.transform=[1,0,0,1,0,0],this.transformNoRotation=[1,0,0,1,0,0],this.displayMat3=(0,cf.c)(),this.displayViewMat3=(0,cf.c)(),this.viewMat3=(0,cf.c)(),this.viewMat2d=(0,gz.c)(),this.worldScreenWidth=0,this.size=[0,0]}set pixelRatio(d){this._set("pixelRatio",d),this._update()}set size(d){this._set("size",d),this._update()}set viewpoint(d){if(d){const _=this._viewpoint2D,T=d.targetGeometry;_.center[0]=T.x,_.center[1]=T.y,_.rotation=d.rotation,_.scale=d.scale,_.spatialReference=T.spatialReference}this._update()}copy(d){const _=this.size,T=this.viewpoint;return T&&_?(this.viewpoint=zd(T,d.viewpoint),this._set("size",(0,ti.c)(_,d.size))):(this.viewpoint=d.viewpoint.clone(),this._set("size",[d.size[0],d.size[1]])),this._set("pixelRatio",d.pixelRatio),this}clone(){return new xO({size:this.size,viewpoint:this.viewpoint.clone(),pixelRatio:this.pixelRatio})}toMap(d,_,T){return(0,yO.lM)(_)?(0,ti.t)(d,_,this.inverseTransform):(Hd[0]=_,Hd[1]=T,(0,ti.t)(d,Hd,this.inverseTransform))}toScreen(d,_,T){return(0,yO.lM)(_)?(0,ti.t)(d,_,this.transform):(Hd[0]=_,Hd[1]=T,(0,ti.t)(d,Hd,this.transform))}toScreenNoRotation(d,_,T){return(0,yO.lM)(_)?(0,ti.t)(d,_,this.transformNoRotation):(Hd[0]=_,Hd[1]=T,(0,ti.t)(d,Hd,this.transformNoRotation))}getScreenTransform(d,_){const{center:T}=this._viewpoint2D,x=this._get("pixelRatio")||1,A=this._get("size");return MO(d,T,A,_,0,x),d}_update(){const{center:d,spatialReference:_,scale:T,rotation:x}=this._viewpoint2D,A=this._get("pixelRatio")||1,U=this._get("size"),ne=new iu({targetGeometry:new vn.Z(d[0],d[1],_),scale:T,rotation:x});if(this._set("viewpoint",ne),!U||!_||!T)return;this.resolution=uf(ne),this.rotation=x,this.scale=T,this.spatialReference=_,(0,ti.c)(this.center,d),(0,Co.s)(this.displayMat3,0!==U[0]?2/U[0]:0,0,0,0,0!==U[1]?-2/U[1]:0,0,-1,1,1);const we=(0,Co.g)(this.viewMat3),Ze=(0,Qw.f)(U[0]/2,U[1]/2),it=(0,Qw.f)(-U[0]/2,-U[1]/2),lt=(0,OE.t)(x);(0,Co.h)(we,we,Ze),(0,Co.r)(we,we,lt),(0,Co.h)(we,we,it),(0,Co.m)(this.displayViewMat3,this.displayMat3,we);const dt=(0,Dl.a)(this.viewMat2d,Ze);return(0,Dl.r)(dt,dt,lt),(0,Dl.t)(dt,dt,it),Mz(this.extent,ne,U),PO(this.transform,ne,U,A),(0,Dl.c)(this.inverseTransform,this.transform),Az(this.transformNoRotation,ne,U,A),this.worldScreenWidth=function wz(d,_){return Math.round(function Rz(d){const _=(0,hc.C5)(d);return _?_.valid[1]-_.valid[0]:0}(d)/_)}(this.spatialReference,this.resolution),this._set("id",this.id+1),this}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],qh.prototype,"id",void 0),(0,Ve._)([(0,ke.Cb)({value:1,json:{write:!0}})],qh.prototype,"pixelRatio",null),(0,Ve._)([(0,ke.Cb)({json:{write:!0}})],qh.prototype,"size",null),(0,Ve._)([(0,ke.Cb)()],qh.prototype,"spatialReference",void 0),(0,Ve._)([(0,ke.Cb)({type:iu,json:{write:!0}})],qh.prototype,"viewpoint",null),qh=xO=(0,Ve._)([(0,Wr.j)("esri.views.2d.ViewState")],qh);const Bz=qh;class Fz{constructor(){this._renderParams={context:null,drawPhase:1,state:new Bz({viewpoint:new iu({targetGeometry:new vn.Z(0,0),scale:1,rotation:0}),size:[256,256]}),stationary:!0,pixelRatio:1,displayLevel:-1,requiredLevel:-1,globalOpacity:1,renderPass:"background",styleLayer:null,styleLayerUID:-1,painter:null,glyphMosaic:null,spriteMosaic:null,profiler:null,renderingOptions:null,requestRender:null,allowDelayedRender:!1,deltaTime:-1,timeline:null,time:0,hasClipping:!1,blendMode:null,dataUploadCounter:0,effects:null,inFadeTransition:!1,requireFBO:!1}}dispose(){this._renderParams=null}render(_,T,x,A,U,ne,fe,Oe,we,Ze){const it=ne.adjustLevel(T[0]),lt=this._renderParams;lt.context=_,lt.painter=A,lt.glyphMosaic=A.glyphMosaic,lt.spriteMosaic=A.spriteMosaic,lt.pixelRatio=Ze,lt.displayLevel=it,lt.requiredLevel=it;const dt=ne.getScale(T[0]),[Tt,mt]=ne.getShift(T,fe*dt),Mt=.125*fe*dt/we,Pt=x.transforms.dvs;Pt[0]=Mt,Pt[4]=-Mt,Pt[6]=-1-Tt-Oe[0]*fe*2,Pt[7]=1+mt+(1-Oe[1])*fe*2-2,lt.state.size[0]=we,lt.state.size[1]=we,x.stage||x.attachWithContext(_),x.triangleCount=0,A.drawTile(lt,x,U)}}var Nz=v(44796);class FE extends so.A{initializeConfiguration(_,T){T.hasWebGL2Context=_.rctx.type===cl.zO.WEBGL2}initializeProgram(_){return new Gn.$(_.rctx,FE.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.if)(xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA),colorWrite:Ds.BK})}}FE.shader=new ro.J(Nz.R,()=>v.e(9903).then(v.bind(v,89903)));class NE extends af{constructor(){super(...arguments),this.colorizerType=lf.U.Stretch,this.stretchType=lf.H.Noop,this.applyColormap=!0}}(0,Ve._)([(0,pi.o)({count:lf.U.COUNT})],NE.prototype,"colorizerType",void 0),(0,Ve._)([(0,pi.o)({count:lf.H.COUNT})],NE.prototype,"stretchType",void 0),(0,Ve._)([(0,pi.o)()],NE.prototype,"applyColormap",void 0);class oI{constructor(_){this._rctx=_,this._fbos=new Map}get(_){return this._getPool(_)}dispose(){this._fbos.forEach(_=>_.dispose()),this._fbos.clear()}_getPool(_){const T=this._fbos.get(_);if(T)return T;const x=new Aa.X(this._rctx,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.DEPTH_RENDER_BUFFER,width:_,height:_});return this._fbos.set(_,x),x}}const Wz=Us.Z.getLogger("esri.views.3d.terrain");class Vz{constructor(_,T){this._rctx=_,this._techniqueRepository=T,this._fbos=[],this._vectorTileHelper=new Fz,this._bindParameters=new hP.p(null,null,null),this._blendLayersTechniqueConfig=new Jw,this._current=0,this._lastUsedIds=new Array,this._lastCreatedBufferId=0,this._onHoldIds=new Array,this._vaoQuad=(0,_a.ow)(this._rctx,P_.Bn)}dispose(){this._fbos.forEach(_=>{_.dispose(),_=null}),this._fbos=null,this._vtFBO=(0,Qe.M2)(this._vtFBO),this._vaoQuad=(0,Qe.M2)(this._vaoQuad),this._vectorTileHelper=(0,Qe.M2)(this._vectorTileHelper),this._backgroundTechnique=(0,Qe.RY)(this._backgroundTechnique),this._applyOpacityTechnique=(0,Qe.RY)(this._applyOpacityTechnique),this._blendLayersTechnique=(0,Qe.RY)(this._blendLayersTechnique)}_getBlendLayersTechnique(_,T,x,A=In.m9.Off,U=UE.a.BelowLayer){return this._blendLayersTechniqueConfig.output=T,this._blendLayersTechniqueConfig.blendMode=_,this._blendLayersTechniqueConfig.baseOpacityMode=x,this._blendLayersTechniqueConfig.premultipliedSource=A,this._blendLayersTechniqueConfig.background=U,this._blendLayersTechnique=this._techniqueRepository.releaseAndAcquire(BE,this._blendLayersTechniqueConfig,this._blendLayersTechnique),this._blendLayersTechnique}drawBackground(_,T){const x=this._getBlendLayersTechnique($u.iM.Normal,T?In.lG.ColorComposite:In.lG.GridComposite,In.Iu.NotRequired,In.m9.Off,UE.a.Only),A=this._rctx.bindTechnique(x,_,this._bindParameters);this._render(A)}_render(_){this._rctx.bindVAO(this._vaoQuad),_.assertCompatibleVertexAttributeLocations(this._vaoQuad),this._rctx.drawArrays(xt.MX.TRIANGLE_STRIP,0,(0,No._V)(this._vaoQuad,"geometry"))}drawGroup(_,T,x,A,U,ne=In.m9.On){T===In.lG.Composite&&(_.fboTexture=this._fbos[this.getLastOnHoldId()].get(x).colorTexture),_.texture=this.currentFBO(x).colorTexture,this.closeGroup(x);const fe=this._getBlendLayersTechnique(A,T,U,ne),Oe=this._rctx.bindTechnique(fe,_,this._bindParameters);this._render(Oe)}drawRasterData(_,T,x,A,U,ne=In.m9.Off){if((0,Qe.Wi)(_.texture))return;_.fboTexture=T===In.lG.GroupBackgroundComposite||A===$u.iM.Normal&&U===In.Iu.NotRequired&&ne===In.m9.Off?null:this.switch(x).colorTexture;const fe=this._getBlendLayersTechnique(A,T,U,ne),Oe=this._rctx.bindTechnique(fe,_,this._bindParameters);this._render(Oe)}drawImageryTileData(_,T,x,A,U,ne){const fe=ne.sourceLayerInfo.data;if(!fe.source||(ne.tile.surface.layerViewByIndex(ne.layerIndex,Bi.MAP).ensureSymbolizerParameters(fe),!fe.bind(this._rctx)))return;_.fboTexture=A===$u.iM.Normal&&U===In.Iu.NotRequired?null:this.switch(x).colorTexture;const Oe=this._getRasterColorizerTechnique(fe,T,A,U);fe.opacity=_.opacity;const we=fe.getUniforms();we.scale=ne.scale,we.offset=ne.offset,we.backgroundColor=_.backgroundColor,we.fboTexture=_.fboTexture,we.baseOpacity=_.baseOpacity;const Ze=this._rctx.bindTechnique(Oe,we,null);this._render(Ze)}_getRasterColorizerTechnique(_,T,x,A){const U=_.symbolizerParameters,ne=["stretch","lut","hillshade"].indexOf(U.type);return(0,Qe.Wi)(this._rasterColorizerConfig)&&(this._rasterColorizerConfig=new NE,this._rctx.gl.getExtension("WEBGL_color_buffer_float"),this._rctx.gl.getExtension("OES_texture_float")),this._rasterColorizerConfig.output=T,this._rasterColorizerConfig.blendMode=x,this._rasterColorizerConfig.baseOpacityMode=A,this._rasterColorizerConfig.colorizerType=ne,this._rasterColorizerConfig.applyColormap=!!U.colormap,this._rasterColorizerConfig.stretchType=_.hasStretchTypeNone()?lf.H.Noop:lf.H.PerBand,this._rasterColorizerTechnique=this._techniqueRepository.releaseAndAcquire(FE,this._rasterColorizerConfig,this._rasterColorizerTechnique),this._rasterColorizerTechnique}drawVectorData(_,T,x,A,U,ne,fe,Oe,we){const Ze=this._rctx,it=ne.sourceLayerInfo.data,lt=ne.tile.surface.layerViewByIndex(ne.layerIndex,Bi.MAP),dt=U===In.Iu.Required||_.opacity<1||A!==$u.iM.Normal||T!==In.lG.Composite,Tt=dt?In.m9.On:In.m9.Off;this._getBlendLayersTechnique(A,T,U,Tt).bindPipelineState(Ze);let mt=null,Mt=null;dt?(Mt=this.currentFBO(x),(0,Qe.Wi)(this._vtFBO)&&(this._vtFBO=new oI(this._rctx)),mt=this._vtFBO.get(x),Ze.bindFramebuffer(mt),this._clearCurrentFBO()):we&&Ze.clearSafe(xt.lk.DEPTH_BUFFER_BIT);try{this._vectorTileHelper.render(Ze,ne.sourceLod,it,lt.painter,lt.layer.styleRepository,lt.schemaHelper,Math.round(1/ne.scale),ne.offset,Oe,fe)}catch(Pt){Wz.warnOnce("A render call containing vector tiles did not resolve correctly.",Pt)}return!(0,Qe.pC)(mt)||(Ze.bindFramebuffer(Mt),_.texture=mt.colorTexture,_.offset=un.Z,_.scale=1,this.drawRasterData(_,T,x,A,U,Tt),we)}copyFBOToTexture(_){const T=this._rctx,x=T.bindTexture(_.texture,Ro.x.TEXTURE_UNIT_FOR_UPDATES),A=_.descriptor;T.gl.copyTexImage2D(xt.No.TEXTURE_2D,0,A.pixelFormat,0,0,A.width,A.height,0),_.generateMipmap(),T.bindTexture(x,Ro.x.TEXTURE_UNIT_FOR_UPDATES)}_clearCurrentFBO(){this._rctx.setClearColor(0,0,0,0),this._rctx.setClearDepth(1),this._rctx.clearSafe(xt.lk.COLOR_BUFFER_BIT|xt.lk.DEPTH_BUFFER_BIT)}_initFBO(_,T,x){this._rctx.bindFramebuffer(_),x&&(this._rctx.setViewport(0,0,T,T),this._clearCurrentFBO())}ensureBuffer(_){this._lastUsedIds.length=0,this._lastUsedIds.push(1),this._lastCreatedBufferId=1,this._onHoldIds.length=0,this.bind(_)}bind(_,T=0,x=!0){if(this._current=T,T>=this._fbos.length)for(let A=this._fbos.length;A<=T;A++)this._fbos.push(new oI(this._rctx));this._initFBO(this._fbos[T].get(_),_,x)}_bindNextFreeBuffer(_){this._lastUsedIds.length>0?this.bind(_,this._lastUsedIds.pop()):(this._lastCreatedBufferId++,this.bind(_,this._lastCreatedBufferId))}openGroup(_){this._onHoldIds.push(this._current),this._bindNextFreeBuffer(_)}switch(_){const T=this.currentFBO(_),x=this._current;return this._bindNextFreeBuffer(_),this._lastUsedIds.push(x),T}getLastOnHoldId(){return this._onHoldIds[this._onHoldIds.length-1]}closeGroup(_){const T=this._current;this._bindNextFreeBuffer(_),this._lastUsedIds.push(T),this._lastUsedIds.push(this._onHoldIds.pop())}unbind(){this._rctx.bindFramebuffer(null)}currentFBO(_){return this._fbos[this._current].get(_)}}class zz{constructor(_,T,x,A){this.start=_,this.end=T,this.blendMode=x,this.opacity=A}}class Hz{constructor(_,T,x){this._rctx=_,this.tileSize=T,this._techniqueRepository=x,this._passParameters=new mz,this._backgroundTexture=null,this._backgroundColor=null,this._backgroundDirty=!1,this._blackTex=null,this._maxAnisotropy=this._rctx.parameters.maxMaxAnisotropy,this._composition=new Vz(this._rctx,this._techniqueRepository),this._blackTex=new tf((0,_a.YO)(this._rctx,[0,0,0,1])),this._ensureBackgroundTexture(this.tileSize)}dispose(){this._composition=(0,Qe.M2)(this._composition),this._backgroundTexture=(0,Qe.RY)(this._backgroundTexture),this._blackTex=(0,Qe.RY)(this._blackTex)}get backgroundIsGrid(){return(0,Qe.Wi)(this._backgroundColor)}get backgroundColor(){return this._backgroundColor}updateTileTexture(_,T){if(!_.renderData)return;const x=_.surface,A=x.baseOpacity;let U=0,ne=0,fe=this.tileSize,Oe=!1;const we=x.view.state.pixelRatio;let Ze=!1;ry.clear(),df.length=0;const it=_.layerInfo[Bi.MAP];let lt=it.length,dt=0;for(;dt=it.length&&(lt=dt),(0,Cr.TK)(Mt)){dI[dt]=Mt.layer.blendMode;let Zt="normal"!==Mt.layer.blendMode;if((0,Cr.CY)(Mt.layer.parent)){const nr=SO(Mt.layer.parent);(0,Qe.pC)(nr)&&""!==nr&&(Zt=aI(Mt.layer.parent)||Zt)}Zt&&(Ze=Zt,Oe=!1)}if(0===Pt&&!Ze){it[dt].pendingUpdates&=~(ni.TEXTURE_NOFADING&ni.TEXTURE_FADING);continue}++ne;const Bt=DO(_,dt);if(Bt){if(it[dt].pendingUpdates&=~(ni.TEXTURE_NOFADING&ni.TEXTURE_FADING),(0,Cr.CY)(Mt.layer.parent)){const Zt=SO(Mt.layer.parent);(0,Qe.pC)(Zt)&&""!==Zt&&lI(Mt.layer.parent,dt)}(0,Cr.Q)(Mt)?fe=Math.max(fe,this.tileSize*we):1===A&&1===Nt&&(Mt.isOpaque||this._dataToTexture(Bt)&&Bt.sourceLayerInfo.data.descriptor.isOpaque)&&(Oe=!0),++U}}fe=function Gz(d){const _=(0,xr.Sf)(d),T=_*_,x=d*d;if(T===x)return d;const A=_/2;return T-x0)&&(x=Wd.Delayed),this._backgroundTexture&&(0,Qe.Wi)(_.renderData.textureReference)&&(x=Wd.Immediate),_.renderData.setTextureReference((0,Qe.pC)(this._backgroundTexture)?new gO(this._backgroundTexture,Vs.Ns.FADING,hI,_.surface.baseOpacity,0,1):null,x)}_useLayerTexture(_,T,x,A){const U=T=0;Nt--){const Bt=DO(_,Nt);if(!Bt||0===U[Nt]&&!it)continue;const Zt=Nt{Yr.start===Nt&&(df.push(Yr),this._composition.openGroup(fe),Jt=!0)});const Rr=0===Mt,Br=Jt?In.lG.GroupBackgroundComposite:we&&Rr?this.backgroundIsGrid?In.lG.GridComposite:In.lG.ColorComposite:In.lG.Composite,$r=$u.pU[ne[Nt]];for((0,Cr.Ke)(Bt)?(this._passParameters.opacity=U[Nt],mt=this._composition.drawVectorData(this._passParameters,Br,fe,$r,nr,Bt,Oe,this.tileSize,mt)):(0,Cr.Ay)(Bt)?(this._passParameters.opacity=U[Nt],this._composition.drawImageryTileData(this._passParameters,Br,fe,$r,nr,Bt),this._hasNearestInterpolation(Bt)&&(Tt=xt.cw.NEAREST)):this._dataToTexture(Bt)&&(this._passParameters.texture=Bt.sourceLayerInfo.data.texture,this._passParameters.offset=Bt.offset,this._passParameters.scale=Bt.scale,this._passParameters.opacity=U[Nt],this._composition.drawRasterData(this._passParameters,Br,fe,$r,nr));df.length>0&&df[df.length-1].end===Nt;){const Yr=df.pop();this._passParameters.opacity=Yr.opacity,this._passParameters.offset=un.Z,this._passParameters.scale=1,this._composition.drawGroup(this._passParameters,we&&Rr?this.backgroundIsGrid?In.lG.GridComposite:In.lG.ColorComposite:In.lG.Composite,fe,$u.pU[Yr.blendMode],nr)}Mt++}const Pt=_.renderData.ensureTexture(fe,()=>this._buildTexture(fe,Tt));this._composition.copyFBOToTexture(Pt),this._composition.unbind(),_.renderData.setTextureReference(new gO(Pt,T,hI,dt?1:lt,0,1))}_hasNearestInterpolation(_){const T=_.sourceLayerInfo.data;return!!T.source&&"nearest"===T.interpolation}_dataToTexture(_){if((0,Cr.L4)(_)){const T=_.sourceLayerInfo;T.data=this._buildTexture(T.data),_.tile.setMemoryDirty()}return(0,Cr.z7)(_)}setBackground(_){this._backgroundColor!==_&&(this._backgroundColor=_,this._backgroundDirty=!0)}_buildTexture(_,T=xt.cw.LINEAR_MIPMAP_LINEAR){if((0,Qe.Wi)(_))return null;const x={target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:T,maxAnisotropy:this._maxAnisotropy,flipped:!0,hasMipmap:!0},A=this._rctx;let U;if("number"==typeof _)x.width=x.height=_,U=new tf(new Ro.x(A,x));else if(_ instanceof tO.nN)x.isOpaque=_.isOpaque,U=new tf(new Ro.x(A,x,_.image)),_.release();else try{x.width=_.width,x.height=_.height,U=new tf(new Ro.x(A,x,_))}catch{U=new tf((0,_a.l_)(A)),console.warn("TileRenderer: failed to execute 'texImage2D', cross-origin image may not be loaded.")}const ne=A.bindTexture(U.texture,Ro.x.TEXTURE_UNIT_FOR_UPDATES);return U.generateMipmap(),A.bindTexture(ne,Ro.x.TEXTURE_UNIT_FOR_UPDATES),U}get test(){return{backgroundTexture:this._backgroundTexture}}}function DO(d,_){xc.layerIndex=_;const T=d.layerInfo[Bi.MAP][_];if((0,Qe.pC)(T.data))return(0,ti.s)(xc.offset,0,0),xc.tile=d,xc.scale=1,xc.sourceLod=d.lij,xc.sourceLayerInfo=T,xc;const x=T.upsampleInfo;if((0,Qe.pC)(x)){const A=x.tile.layerInfo[Bi.MAP][_];return xc.tile=x.tile,(0,ti.c)(xc.offset,x.offset),xc.scale=x.scale,xc.sourceLod=x.tile.lij,xc.sourceLayerInfo=A,xc}return null}function SO(d){return d.get("uid")}function aI(d){let _="normal"!==d.blendMode;return(0,Cr.CY)(d.parent)&&(_=aI(d.parent)||_),_}function lI(d,_){(0,Cr.CY)(d.parent)&&lI(d.parent,_);const T=SO(d);(0,Qe.pC)(T)&&""!==T&&(ry.has(T)?ry.get(T).start=_:ry.set(T,new zz(_,_,d.blendMode,d.opacity)))}const cI=new Array,uI=new Array,dI=new Array,ry=new Map,df=new Array,xc={tile:null,sourceLayerInfo:null,sourceLod:null,offset:[0,0],scale:1,layerIndex:0},hI={offset:[0,0],scale:1},sy=1e-6;class _I{constructor(_,T,x,A,U){this.aabb=_,this.axis=T,this.d=x,this.midStartIndex=A,this.rightStartIndex=U}}let fI=(()=>{class d{constructor(T,x,A,U){this.globalTriangleVertexIndices=T,this.firstTriangleIndex=x,this.positionAttribute=U,this._rayDirection=(0,ir.c)(),this.bspNodeTree=new Array,this.vertexPositionBuffer=U.data,this.vertexPositionStride=U.stride;const ne=A-x,fe=ne<=mI?new Uint16Array(ne):new Uint32Array(ne);this.indices=fe;for(let Oe=0;Oe{const Tt=function kz(d,_,T,x){if(x<=T)return(0,fo.al)(NaN,NaN,NaN,NaN,NaN,NaN);{const A=6*d[T];for(let U=0;U<3;++U)hf[U]=_[A+0+U],pf[U]=_[A+3+U]}for(let A=T+1;AT?_>x?0:T>x?1:2:T>x?1:x>_?2:0;return{axis:A,midValue:(d[A]+d[A+3])/2}}(Tt),Nt=function Xz(d,_,T,x,A,U){let ne=T,fe=x;for(;ne=U?--fe:(d[fe-1]=d[Oe],d[Oe]=we,++Oe)}return{next:ne,mid:Oe}}(fe,Oe,it,lt,Mt,Pt),Bt=(nr,Jt)=>{if(dt>we)return;const Rr=Jt-nr;return Rr<40||Rr>=.8*mt?void 0:Ze(nr,Jt,dt+1)},Zt=new _I(Tt,Mt,Pt,Nt.next,Nt.mid);return this.bspNodeTree.push(Zt),Zt.leftNode=Bt(it,Nt.next),Zt.rightNode=Bt(Nt.mid,lt),Zt};Ze(0,ne,0),this.triangleVertexIndices=function qz(d,_,T,x){const A=x-T;let U=0;for(let fe=T;fe=x)return;const A=this.triangleVertexIndices,U=this.positionAttribute.data,ne=this.positionAttribute.stride,fe=this._rayOrigin,Oe=fe[0],we=fe[1],Ze=fe[2],it=this._rayDirection,lt=it[0],dt=it[1],Tt=it[2];for(let mt=T,Mt=3*T;mt0){if(ls<0||ls>wr)continue}else if(ls>0||ls0){if(Hs<0||ls+Hs>wr)continue}else if(Hs>0||ls+Hs=0){const Gs=this.indices[mt]+this.firstTriangleIndex,bs=(0,v0.Mw)(Br,$r,Yr,cs,Xr,os,Yz);this._callback(Js,bs,Gs,!1)}}}d.numFacesTested+=x-T}intersectRay(T,x){d.numFacesTested=0;const A=(0,ir.f)(T.r0[0],T.r0[1],T.r0[2]),U=(0,ir.f)(T.r1[0],T.r1[1],T.r1[2]),ne=U[0]-A[0],fe=U[1]-A[1],Oe=U[2]-A[2];if(ne*ne+fe*fe+Oe*Oene)return!1}{const Oe=d[fe+3];if(x[fe]>Oe){if(A[fe]>=-sy)return!1;U=Math.max(U,(Oe-x[fe])/A[fe])}else A[fe]>=sy&&(ne=Math.min(ne,(Oe-x[fe])/A[fe]));if(U>ne)return!1}}return!0}(T.aabb,U,ne))return;const fe=T.axis,Oe=T.d;if(U[fe]Oe||ne[fe]>0){const we=T.rightStartIndex,Ze=A;if(weT;)d=d.parent;return d.centerAtSeaLevel}setVisibility(d){this._visible=d,this.setDirty()}getStats(){return{numTilesRendered:this._numTilesRendered,numTilesCulled:this._numTilesCulled,numOriginsRendered:this._numOriginsRendered}}set wireframe(d){this._get("wireframe")!==d&&(this._set("wireframe",d),this.setNeedsRender())}setDirty(d=Fi.Xx.UPDATE){this._patchGroupsDirty=!0,this._context.requestRender(d)}_setSortingDirty(d=Fi.Xx.UPDATE){this._patchSortingDirty=!0,this._context.requestRender(d)}setNeedsRender(d=Fi.Xx.UPDATE){this._context.requestRender(d)}initializeRenderContext(d){this._context=d,this._rctx=d.renderContext.rctx,this._techniqueRepository=d.shaderTechniqueRepository,this._tileRenderer=new Hz(this._rctx,this._tileSize,this._techniqueRepository),this.updateTileBackground(),this._emptyTex=(0,_a.l_)(this._rctx)}uninitializeRenderContext(){this._emptyTex=(0,Qe.M2)(this._emptyTex),this._tileRenderer=(0,Qe.M2)(this._tileRenderer)}intersect(d,_,T,x){if(!this._rootTiles||d.options.selectOpaqueTerrainOnly&&d.options.selectionMode&&this.transparency!==$a.Opaque)return;const A=rH,U=sH;(0,pt.b)(A,x,T),(0,pt.s)(U,1/A[0],1/A[1],1/A[2]);const ne=d.results.min,fe=d.results.max,Oe=d.results.ground,we=d.options.store===ya.eC.MIN,Ze=!!d.results.ground.target,it=(0,bc.lV)(d.verticalOffset),lt=d.tolerance;let dt,Tt=we&&(0,Qe.pC)(ne.dist)?ne.dist:1/0;const mt=Pt=>{const Nt=Pt.renderData;if(!Nt?.vao)return;const Bt=Nt.geometryInfo;(0,fo.t8)(wO,Bt.boundingBox);const Zt=Nt.localOrigin;(0,Qe.pC)(it)&&(it.localOrigin=Zt,it.applyToAabb(wO));const nr=wO;if(ff[0]=T[0]-Zt[0],ff[1]=T[1]-Zt[1],ff[2]=T[2]-Zt[2],!(0,v0.Fw)(nr,ff,U,lt,Tt))return;const Jt=(os,br,Vr)=>{os.set(this.type,Pt,br,Vr,gn.I),Tt=we&&(0,Qe.pC)(ne.dist)?ne.dist:1/0},Rr=(os,br)=>{if((0,Qe.pC)(br)&&os>=0&&(d.options.backfacesTerrain||(0,pt.e)(br,A)<0)&&(d.options.invisibleTerrain||!d.options.selectionMode||null==_||_(T,x,os))){if((null==Oe.dist||osfe.dist)&&Jt(fe,os,br)}},Br=iH;(0,pt.b)(Br,x,Zt);const $r=Bt.indices,Yr=Bt.vertexAttributes,cs={data:Yr.getField(Qi.T.POSITION,of.ct).typedBuffer,size:3,stride:Yr.stride/4},Xr=Bt.indexCount/3;if((0,Qe.Wi)(it)&&Xr>200){const os=Pt.renderData;(0,Qe.Wi)(os.intersectionData)&&(os.intersectionData=new fI($r,0,Xr,cs)),os.intersectionData.intersectRay({r0:ff,r1:Br},Rr)}else(0,v0.CN)(ff,Br,0,Xr,$r,cs,null,it,Rr)},Mt=this._rootTiles;(0,Qe.pC)(Mt)&&(()=>{const Pt=this._tileIterator;Pt.reset(Mt);const Nt=d.options.invisibleTerrain;for(;!Pt.done;){const Bt=Pt.next();!(Bt.visible||Nt&&Bt.intersectsClippingArea)||!(0,Qe.pC)(it)&&!Bt.intersectsRay(T,A,lt,Tt)||Ze&&this._useStencilForTile(Bt)?Pt.skipSubtree():mt(Bt)}})()}prepareTechnique(d){if(d.bindParameters.slot===Mi.r.OCCLUDED_TERRAIN){if(0==(d.renderOccludedMask&nO.Qi))return null}else if(d.bindParameters.slot!==(this.transparency===$a.Opaque?Mi.r.OPAQUE_TERRAIN:Mi.r.TRANSPARENT_TERRAIN))return null;switch(d.output){case Xs.H.Color:return this._techniqueConfiguration.hasScreenSpaceReflections=d.bindParameters.ssr.enabled,this._techniqueConfiguration.hasCloudsReflections=(0,Qe.pC)(d.bindParameters.cloudsFade.data),this._techniqueConfiguration.receiveShadows=d.bindParameters.shadowMap.ready,this._techniqueConfiguration.receiveAmbientOcclusion=d.bindParameters.ssaoHelper.ready,this._techniqueConfiguration.overlayMode=this._overlayRenderer.isEmpty()?iy.gT.Disabled:this._overlayRenderer.hasWater?iy.gT.EnabledWithWater:iy.gT.Enabled,this._updateTechnique(Xs.H.Color,(d.bindParameters.slot===Mi.r.OCCLUDED_TERRAIN?Oc.$e.Occluded:Oc.$e.ColorAndWater)===Oc.$e.Occluded);case Xs.H.Shadow:case Xs.H.ShadowExludeHighlight:return this._castShadows&&1===d.bindParameters.lighting.globalFactor?(this._techniqueConfiguration.receiveShadows=this._techniqueConfiguration.receiveAmbientOcclusion=!1,this._updateTechnique(Xs.H.Shadow,!1)):null;case Xs.H.Depth:return this.transparency===$a.Invisible&&this._overlayRenderer.isEmpty()?null:(this._techniqueConfiguration.receiveShadows=this._techniqueConfiguration.receiveAmbientOcclusion=!1,this._updateTechnique(Xs.H.Depth,!1));case Xs.H.Normal:return this._techniqueConfiguration.receiveShadows=this._techniqueConfiguration.receiveAmbientOcclusion=!1,this._updateTechnique(Xs.H.Normal,!1);case Xs.H.ObjectAndLayerIdColor:return this._updateTechnique(Xs.H.ObjectAndLayerIdColor,!1);case Xs.H.Highlight:return this.needsHighlight?(this._techniqueConfiguration.receiveShadows=this._techniqueConfiguration.receiveAmbientOcclusion=!1,this._updateTechnique(Xs.H.Highlight,!1)):null}return null}render(d,_){const T=1===d.bindParameters.lighting.globalFactor;switch(this._updatePatchGroups(),_.useStencil=!1,d.output){case Xs.H.Color:{const x=d.bindParameters.slot===Mi.r.OCCLUDED_TERRAIN?Oc.$e.Occluded:Oc.$e.ColorAndWater;this.transparency===$a.Opaque?this._renderMaterialPass(d,_,x):d.offscreenRenderingHelper.renderToTargets(()=>this._renderMaterialPass(d,_,x),d.offscreenRenderingHelper.tmpColor,d.offscreenRenderingHelper.mainDepth,[0,0,0,0]);break}case Xs.H.Shadow:case Xs.H.ShadowExludeHighlight:this._castShadows&&T&&this._renderAuxiliaryPass(d,_,Oc.$e.None);break;case Xs.H.Depth:this.transparency===$a.Invisible&&this._overlayRenderer.isEmpty()||this._renderAuxiliaryPass(d,_,Oc.$e.None);break;case Xs.H.Normal:this._renderAuxiliaryPass(d,_,Oc.$e.None);break;case Xs.H.ObjectAndLayerIdColor:this._renderAuxiliaryPass(d,_,Oc.$e.ObjectAndLayerIdColor);break;case Xs.H.Highlight:this.needsHighlight&&this._renderAuxiliaryPass(d,_,Oc.$e.Highlight)}this._scaleRangeQueries.hasPendingQueries()&&this.setNeedsRender()}_renderMaterialPass(d,_,T){const{rctx:x}=d;this._passParameters.overlaySource=T,x.bindTechnique(_,this._passParameters,d.bindParameters),this._numTilesRendered=0,this._numTilesCulled=0,this._numOriginsRendered=0,this._scaleRangeQueries.prepareQueries(),this._renderPatchGroups(d,_,T),this._scaleRangeQueries.processQueries()}_renderAuxiliaryPass(d,_,T){const x=d.rctx;this._passParameters.overlaySource=T,x.bindTechnique(_,this._passParameters,d.bindParameters),this._renderPatchGroupsAuxiliary(d,_,T)}updateTileBackground(d=null){if((0,Qe.Wi)(this._tileRenderer))return;const _=this._tileRenderer;let T=null;if((0,Qe.pC)(d)){const x=lo.Z.toUnitRGBA(d);T=(0,ir.f)(x[0]||0,x[1]||0,x[2]||0)}_.setBackground(T),this._allTiles.forAll(x=>_.updateTileTexture(x,Vs.Ns.FADING)),this._techniqueConfiguration.tileBlendInput=_.backgroundIsGrid?_f.R.GridComposite:(0,Qe.pC)(_.backgroundColor)?_f.R.ColorComposite:_f.R.LayerOnly,this.setNeedsRender()}_updatePatchGroups(){if(this._patchGroupsDirty&&(this._highestVisibleLODTile=null,this._rebuildPatchGroups(),this._patchGroupsDirty=!1,this._patchSortingDirty=!0),this._patchSortingDirty&&this.renderOrder!==ey.NONE){const d=Array.from(this._patchGroups.values());d.forEach(_=>(0,Ko.zW)(this.renderOrder,_,this._stencilEnabledLayerExtents)),d.sort((_,T)=>(0,Ko.dF)(_[0],T[0],this.renderOrder)),this._patchGroups=new Map(d.map(_=>[_[0].renderData.localOrigin,_])),this._patchSortingDirty=!1}}_rebuildPatchGroups(){const d=this._rootTiles;if(!(0,Qe.Wi)(d)){d[0]?.surface.checkAllTilesWaterproofness(),this._patchGroups.clear();for(const _ of d)this._rebuildPatchGroupsForRootTile(_)}}_rebuildPatchGroupsForRootTile(d){const _=this._tileIterator;for(_.resetOne(d);!_.done;){const T=_.next(),x=T.renderData;if(!x||T.visible)if(T.rendered){if(x){const A=this._patchGroups.get(x.localOrigin)||new Array;this._patchGroups.set(x.localOrigin,A),A.push(T),(!this._highestVisibleLODTile||T.vlevel>this._highestVisibleLODTile.vlevel)&&(this._highestVisibleLODTile=T),_.skipSubtree()}}else this._numTilesCulled++;else this._numTilesCulled++,_.skipSubtree()}}_useStencilForTile(d){for(const _ of this._stencilEnabledLayerExtents)if(d.intersectsExtent(_))return!0;return!1}_renderPatchGroupsAuxiliary(d,_,T){const x=this._stencilEnabledLayerExtents.length>0;this._patchGroups.forEach(A=>{_.program.bindDraw(new gI.w(A[0].renderData.localOrigin),d.bindParameters,this._passParameters);for(let ne=0;ne0,ne=T===Oc.$e.Occluded;ne&&(A.bindTexture("tex",this._emptyTex),A.setUniform1f("blend",1),A.setUniform4fv("texOffsetAndScale",Tn.Z));const fe=(0,Qe.pC)(this._tileRenderer)&&(0,Qe.pC)(this._tileRenderer.backgroundColor)?this._tileRenderer.backgroundColor:ir.Z;this._techniqueConfiguration.tileBlendInput===_f.R.ColorComposite&&A.setUniform3fv("backgroundColor",fe);const Oe=this.wireframe?xt.MX.LINES:xt.MX.TRIANGLES;this._techniqueConfiguration.textureFadingEnabled&&A.bindTexture("texNext",this._emptyTex),this._patchGroups.forEach(we=>{_.program.bindDraw(new gI.w(we[0].renderData.localOrigin),d.bindParameters,this._passParameters),this._numOriginsRendered++;for(let it=0;itthis._update())),this._handles.add((0,Ht.YP)(()=>this.extentHelper.layerViewsExtent,()=>this._setAdHocTilingScheme())),this._update(),this.tilingSchemeLocked||this._setAdHocTilingScheme()}destroy(){this._handles=(0,Qe.SC)(this._handles),this._waitTask=null}_update(){if(this._waitTask=null,this.tilingSchemeLocked)return;let d;if(this.layers.some(_=>!(!(0,Gl.iC)(_)||_.isRejected()||_.isFulfilled()&&!function oH(d,_,T){return(0,Qe.pC)((0,Cr.E_)(d,_,T))}(_,this.viewSpatialReference,this.viewingMode)||(d=_,"vector-tile"===_?.type||(0,Cr.x4)(_)))),d)if(d.isResolved()){const _=(0,Cr.E_)(d,this.viewSpatialReference,this.viewingMode);if((0,Qe.pC)(_)){const T=new mf.t(_.tileInfo);this._lockTilingScheme(T)}}else this._updateWhen(d)}_updateWhen(d){const _=d.when().catch(()=>{}).then(()=>{_!==this._waitTask||this.destroyed||this._update()});this._waitTask=_}_lockTilingScheme(d){if(this.viewingMode===vi.JY.Global){const _=d.levels.length-1;d.spatialReference.isWebMercator?d=mf.t.makeWebMercatorAuxiliarySphere(_):(0,di.jF)(d.spatialReference)&&(d=mf.t.makeGCSWithTileSize(d.spatialReference,d.pixelSize,_))}this.tilingSchemeLocked=!0,this.tilingScheme=d,this.extentHelper.tilingScheme=this.tilingScheme,this._updateTiledLayerExtent(),this._handles.removeAll(),this._handles.add((0,Ht.YP)(()=>this.extentHelper.tiledLayersExtent,()=>this._updateTiledLayerExtent()))}_updateTiledLayerExtent(){this._set("extent",this.extentHelper.tiledLayersExtent)}_setAdHocTilingScheme(){if(this.viewingMode===vi.JY.Global){const d=this.extentHelper.viewSpatialReference,_=(0,di.jF)(d)||(0,hc.BZ)(d)||(0,hc.V2)(d);d.isWebMercator?this.tilingScheme=mf.t.WebMercatorAuxiliarySphere:_&&(this.tilingScheme=mf.t.makeGCSWithTileSize(d,256)),this._set("extent",this.extentHelper.layerViewsExtent)}else{const d=this.extentHelper.layerViewsExtent;(0,Qe.pC)(d)&&!(0,Bs.fS)(d,this.extent)&&(this.tilingScheme=mf.t.fromExtent(d,this.extentHelper.viewSpatialReference),this._set("extent",d))}}get test(){return{lockTilingScheme:d=>this._lockTilingScheme(d),done:!this._waitTask}}};(0,Ve._)([(0,ke.Cb)()],Yu.prototype,"tilingScheme",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Yu.prototype,"extent",void 0),(0,Ve._)([(0,ke.Cb)({value:!1})],Yu.prototype,"tilingSchemeLocked",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Yu.prototype,"viewSpatialReference",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Yu.prototype,"layers",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Yu.prototype,"extentHelper",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Yu.prototype,"viewingMode",void 0),Yu=(0,Ve._)([(0,Wr.j)("esri.views.3d.terrain.TilingSchemeLogic")],Yu);class aH{constructor(){this.offset=(0,un.a)(),this.scale=0,this.tile=null}init(_,T,x,A){this.tile=_,this.offset[0]=T,this.offset[1]=x,this.scale=A}dispose(){this.tile=null,this.offset[0]=0,this.offset[1]=0,this.scale=0}}let Ui=class extends(Va.Z.EventedMixin(Ns.Z)){constructor(d){super(d),this._iteratorPool=new Wu.Z(Ko.AA,_=>_.remove=()=>this._iteratorPool.release(_)),this._postorderIterator=new Ko.rv,this._hasPendingUpdates=!1,this._pendingUpdates=0,this._asyncWorkItems=0,this._allTilesDirty=!0,this._allTilesSorted=!0,this._visibleCached=!1,this._usedMemory=null,this._performanceInfo=new nH,this._viewChanged=!1,this._inFrameTask=!1,this._viewChangeUpdateDirty=!1,this._eyePosRenderSR=(0,ir.c)(),this._eyePosSurfaceSR=(0,ir.c)(),this._splitLimits=new FV,this._frustum=(0,rn.Ue)(),this._viewProjectionMatrix=(0,gn.c)(),this._layerViews=[new Array,new Array],this._layerIndexByUid=[new Map,new Map],this._basemapLayerViewHandles=new Map,this._handles=new Ji.Z,this._watchUpdatingTracking=new l_.t,this._frameTask=Fn.sq,this._allTiles=new wo.Z,this._upsampleInfoPool=new Wu.Z(aH),this._rootTilesExtent=(0,Bs.Ue)(),this._maxNumUpdating=1,this.maxTextureScale=1.2,this._spatialReference=to.Z.WebMercator,this.visibleElevationBounds=new q_(1/0,-1/0),this.rootTileElevationBounds=new q_(1/0,-1/0),this._updatingRootTiles=!1,this._pendingTilesForElevationUpdateEvent=new Set,this._pendingTilesToUpdate=new Set,this.totalGeometryUpdates=0,this.totalTileUpdates=0,this.oneBatchPerFrameTask=!0,this._layerViewsDirty=!1,this._shading=!0,this._isWebMercator=!1,this._isWebMercatorOnPlateeCarree=!1,this._isGlobal=!d.view?.state?.isLocal}initialize(){this._lercDecoder=(0,hV.w)(this.view.resourceController),this._tilePool=new Wu.Z(this.view.state.isLocal?dz:hz);const d=this.view.resourceController.memoryController;this._upsampleMapCache=d.newCache("esri.views.3d.terrain.upsample",A=>A.unloadMapData()),this._elevationQueryCache=new dV(d.newCache("elevation-query")),this._set("overlayManager",new xl({surface:this})),this._handles.add([(0,Ht.YP)(()=>this.overlayManager.hasHighlights,A=>this._renderer.setNeedsHighlight(A)),(0,Ht.YP)(()=>this.overlayManager.rendersOccluded,A=>this._renderer.setRenderOccludedOverlay(A))],"overlayManager"),this._renderer=new rc({_overlayRenderer:this.overlayManager.renderer,_ellipsoidRadius:(0,En.Iu)(this.view.spatialReference).radius,_stage:this.view._stage,_allTiles:this._allTiles}),this._handles.add([(0,Ht.YP)(()=>this.baseOpacity,A=>{this._handleLayerViewChanges(),this._updateBaseOpacity(A)},Ht.tX),(0,Ht.YP)(()=>this.hasCompositeBlendMode,()=>{this._updateBaseOpacity(this.baseOpacity)},Ht.tX),(0,Ht.YP)(()=>this.renderingDisabled,()=>this.view?._stage?.renderView.setRenderParameters({terrainRenderingEnabled:!this.renderingDisabled}),Ht.Z_),(0,Ht.YP)(()=>this.backgroundColor,A=>{this._handleLayerViewChanges(),this._renderer.updateTileBackground(A)},Ht.tX),(0,Ht.YP)(()=>this.snapLevel,()=>this._viewChanged=!0,Ht.Z_),(0,Ht.YP)(()=>this.view.pointsOfInterest,A=>{this._renderer.pointsOfInterest=A,this._watchUpdatingTracking.removeAll(),A&&this._watchUpdatingTracking.add(()=>A.focus.renderLocation,()=>this._allTilesSorted=!1)}),(0,Ht.YP)(()=>Fo.Z.TERRAIN_TILE_TREE_SHOW_TILES,A=>{A&&!this._treeDebugger?Promise.all([v.e(8592),v.e(1318)]).then(v.bind(v,21318)).then(({TerrainTileTree3DDebugger:U})=>{!this._treeDebugger&&Fo.Z.TERRAIN_TILE_TREE_SHOW_TILES&&(this._treeDebugger=new U({view:this.view}))}):A||(this._treeDebugger=(0,Qe.SC)(this._treeDebugger))},Ht.nn)]),this._extentHelper=function gV(d,_){return d===vi.JY.Global?new sO(_):new iO(_)}(this.viewingMode,{layers:this.view.map.allLayers,layerViews:this.view.allLayerViews,viewSpatialReference:this.view.spatialReference});const _=new Sv.Z({getCollections:()=>this.view?.defaultsFromMap?.mapCollections?.map(({layers:A})=>A),getChildrenFunction:A=>A&&"layers"in A?A.layers:null}),T=new Yu({layers:_,extentHelper:this._extentHelper,viewingMode:this.viewingMode,viewSpatialReference:this.view.spatialReference});this._set("tilingSchemeLogic",T),this._updateTilingScheme(),this._elevationDataRequester=this.view.resourceController.createStreamDataRequester(Xg.Bh.ELEVATION),this._mapDataRequester=this.view.resourceController.createStreamDataRequester(Xg.Bh.BASEMAP),this._frameTask=this.view.resourceController.scheduler.registerTask(Fn.T8.TERRAIN_SURFACE,this),this._handles.add([(0,Ht.YP)(()=>this._extentHelper.stencilEnabledExtents,A=>this._renderer.setStencilEnabledLayerExtents(A),Ht.nn),(0,Ht.YP)(()=>this.tilingSchemeLogic.tilingScheme,()=>this._updateTilingScheme(),Ht.Z_),(0,Ht.YP)(()=>this.extent,()=>this._updateRootTiles(),Ht.nn),this.view.on("resize",()=>this._viewChangeUpdate()),(0,Ht.YP)(()=>{const A=this.view,U=A.state;return[this._lodBias,this.lodSnapping,A.resourceController?.memoryController?.memoryFactor,U.camera,U.contentCamera,U.fixedContentCamera]},()=>this._viewChangeUpdate(),Ht.tX),(0,Ht.YP)(()=>this.view.qualitySettings?.tiledSurface?.textureFadeDuration,A=>this._renderer.textureFadingEnabled=A>0,Ht.nn),(0,Ht.YP)(()=>this._userClippingExtent,()=>this._updateClippingExtent(),Ht.Z_)]),this._handles.add(this.view.allLayerViews.on("after-changes",()=>this._layerViewsDirty=!0)),this._handles.add([(0,Ht.YP)(()=>this.view?.map.ground.shading,()=>{this._updateShadingIfChanged()})]),this._updateShading(),this._layerViewsDirty=!0,this._handleLayerViewChanges()}destroy(){this._frameTask.remove(),this._handles.destroy(),this._watchUpdatingTracking.destroy(),this._lercDecoder=(0,Qe.RY)(this._lercDecoder),this._removeAllTiles(),this._upsampleMapCache=(0,Qe.SC)(this._upsampleMapCache),this._elevationQueryCache=(0,Qe.SC)(this._elevationQueryCache);const d=this.tilingSchemeLogic.layers;this._set("tilingSchemeLogic",(0,Qe.SC)(this.tilingSchemeLogic)),d.destroy(),this._basemapLayerViewHandles.forEach((_,T)=>this._unregisterTiledLayerView(T)),this._elevationDataRequester=null,this._mapDataRequester=null,this._set("overlayManager",(0,Qe.SC)(this.overlayManager)),this._tilePool=(0,Qe.SC)(this._tilePool),uO.prune(),this._treeDebugger&&(this._treeDebugger.destroy(),this._treeDebugger=null),this._renderer=(0,Qe.SC)(this._renderer),this._iteratorPool=(0,Qe.SC)(this._iteratorPool),this._set("view",null),this._upsampleInfoPool=(0,Qe.SC)(this._upsampleInfoPool),(0,TE.K)(),function BV(){DE.size>0&&(console.log(`${DE.size} live TilePerLayerInfo allocations:`),DE.forEach(d=>console.log(d,"\n")))}()}get renderer(){return this._renderer}get frustum(){return this._frustum}get snapLevel(){if(this.lodSnapping===Vs.VB.ON){const d=this.view,_=this.tilingScheme,T=d.pointsOfInterest?.contentCameraOnSurface?.scale;if(T&&_){const x=d.state.contentCamera;let A=H1(d,x.eye,x.viewForward,x.up).tilt;A>90&&(A=180-A);const U=2*(A/90)**2,ne=_.levelAtScale(T)-U;return Math.round(ne)}}return null}get lodSnapping(){return this.view.qualitySettings.tiledSurface.reduceTileLevelDifferences?Vs.VB.ON:Vs.VB.OFF}get upsampleInfoPool(){return this._upsampleInfoPool}get upsampleMapCache(){return this._upsampleMapCache}get elevationQueryCache(){return this._elevationQueryCache}get mapTileRequester(){return this._mapDataRequester}get _userClippingExtent(){const{spatialReference:d}=this,{clippingArea:_}=this.view;if((0,Qe.Wi)(_)||(0,Qe.Wi)(d))return null;const T=(0,Bs.Ue)(),x=(0,lw.G)(_,T,d)?T:null,A=this._get("extent");return(0,Bs.fS)(x,A)?A:x}get rootTilesExtent(){return this._rootTilesExtent}get extent(){const d=(0,Bs.jV)(this.groundExtent,this._userClippingExtent,(0,Bs.Ue)()),_=this._get("extent");return(0,Bs.fS)(d,_)?_:d}get groundExtent(){return(0,Qe.pC)(this._tilingSchemeExtent)?this._tilingSchemeExtent:this._rootTilesExtent}get _tilingSchemeExtent(){return this.tilingSchemeLogic?.extent}get updating(){return this._hasPendingUpdates||(this._maxNumUpdating=1),!!((this.running||this._watchUpdatingTracking.updating||this._asyncWorkItems>0)&&this.ready&&!this.suspended||this.overlayManager.updating)}get running(){return(this._hasPendingUpdates||this._viewChanged||this._allTilesDirty||!this._allTilesSorted||this._layerViewsDirty||this._frameTask.updating)&&this.ready&&!this.suspended}get updatingProgressValue(){return this._maxNumUpdating=Math.max(this._pendingUpdates,this._maxNumUpdating),1-this._pendingUpdates/this._maxNumUpdating}get baseOpacity(){return this.view.map.ground.opacity}set baseOpacity(d){this.view.map.ground.opacity=d}get viewingMode(){return this.view.state.viewingMode}get ready(){return(0,Qe.pC)(this.rootTiles)}set renderOrder(d){this._renderer.renderOrder=d,this._set("renderOrder",d)}get spatialReference(){return this.tilingScheme?.spatialReference??null}get backgroundColor(){return this.view.map.ground.surfaceColor}set backgroundColor(d){this.view.map.ground.surfaceColor=d}set slicePlaneEnabled(d){this._renderer.slicePlaneEnabled=d,this._set("slicePlaneEnabled",d),this._evaluateTransparency(this.baseOpacity)}get tilingSchemeLocked(){return this.tilingSchemeLogic?.tilingSchemeLocked??!1}set velvetOverground(d){d!==this.velvetOverground&&(this._renderer.velvetOverground=d),this._set("velvetOverground",d)}get wireframe(){return this._renderer.wireframe}set wireframe(d){d!==this._renderer.wireframe&&(this._renderer.wireframe=d,this._updateAllTileGeometries())}set _visible(d){d!==this._visibleCached&&(this._visibleCached=d,this._renderer.setVisibility(d),this.suspended=!d)}get opaque(){return this._renderer.transparency===$a.Opaque}set suspended(d){this._set("suspended",d),this._viewChangeUpdate()}get textureFadeDuration(){return this.view.qualitySettings.tiledSurface.textureFadeDuration??0}intersect(d,_,T,x){this._renderer.intersect(d,_,T,x)}getElevation(d,_,T,x){const A=this.rootTiles;if((0,Qe.Wi)(A)||!A.length||0===A[0].layerInfo[Bi.ELEVATION].length)return null;const U=Sl;return U[0]=d,U[1]=_,U[2]=T,(0,di.SH)(U,x,U,this._spatialReference)?bI(A,U[0],U[1]):(Us.Z.getLogger(this.declaredClass).error("TerrainSurface.getElevation(): could not project given point to tiling scheme coordinate system"),null)}getElevations(d,_,T){const x=this.rootTiles,A=x?x[0].layerInfo[Bi.ELEVATION].length:0;if(!(0,Qe.Wi)(x)&&x.length&&0!==A)for(let U=0;U<_;++U){const ne=3*U;T(U,bI(x,d[ne+0],d[ne+1]))}else for(let U=0;U<_;++U)T(U,null)}getScale(d){if(this.tilingScheme){if(!(0,di.KC)(d,Sl,this.spatialReference))return Us.Z.getLogger(this.declaredClass).error("TerrainSurface.getScale(): could not project given point to tiling scheme coordinate system"),null;const _=this.rootTiles;if((0,Qe.pC)(_))for(let T of _)if(T?.containsPoint(Sl)){for(;!T.isLeaf&&!T.rendered;){let x=0;Sl[0]>T.children[0].extent[2]&&(x+=1),Sl[1]{if(we&&(0,Bs.hr)(we.extent,Sl))if(we.isLeaf||we.rendered)U=Math.min(U,we.elevationBounds[0]),ne=Math.max(ne,we.elevationBounds[1]);else for(const Ze of we.children)fe(Ze)},Oe=this.rootTiles;if((0,Qe.pC)(Oe))for(const we of Oe)fe(we);return{min:U,max:ne}}getSphereScale(d,_){if(!this.tilingScheme)return null;if(!(0,di.KC)(d,Sl,this.spatialReference))return Us.Z.getLogger(this.declaredClass).error("TerrainSurface.getSphereScale(): could not project given point to tiling scheme coordinate system"),null;Sl[3]=_;let T=null;const x=U=>{if(U&&(0,Bs.hr)(U.extent,Sl))if(U.isLeaf||U.rendered){const ne=this._getLodBiasCorrectedScale(U.level);T=null==T?ne:Math.min(T,ne)}else for(const ne of U.children)x(ne)},A=this.rootTiles;if((0,Qe.pC)(A))for(const U of A)x(U);return T}queryVisibleScaleRange(d,_,T,x){const A=_?this.tilingScheme.levelAtScale(_):0,U=T?this.tilingScheme.levelAtScale(T):1/0,ne=this._lodBias;this._renderer.queryVisibleLevelRange(d,A+ne,U+ne,x)}_evaluateTransparency(d){const _=this._renderer.transparency,T=this._allSurfaceLayersTransparent()?$a.Invisible:d>=1&&!this.hasCompositeBlendMode&&!this._renderer.slicePlaneEnabled?$a.Opaque:$a.Semitransparent,x=_!==T;return x&&(this._renderer.transparency=T,this.view?._stage?.renderView.setRenderParameters({terrainTransparency:this._renderer.transparency})),x}_updateBaseOpacity(d){const _=this._evaluateTransparency(d);this._updateTileTextures(_?Vs.Ns.UNFADED:Vs.Ns.IMMEDIATE)}_updateTilingScheme(){const d=this.tilingSchemeLogic.tilingScheme;d!==this.tilingScheme&&((0,Cr.wu)(!!d,"tiling scheme cannot be reset to undefined"),this._isGlobal=!this.view?.state?.isLocal,this.tilingScheme&&this._removeAllTiles(),this._spatialReference=d?.spatialReference??to.Z.WebMercator,this._set("tilingScheme",d),this._updateClippingExtent(),d&&(this._updateTiledLayers(),this._renderer.setTileSize(d.pixelSize),this.overlayManager.setSpatialReference(d.spatialReference),this._updateRootTiles()),this._isWebMercator=!!this.tilingScheme?.spatialReference.isWebMercator,this._isWebMercatorOnPlateeCarree=this._isWebMercator&&(0,hc.QM)(this.view?.renderSpatialReference))}_acquireTile(d,_,T,x){const A=this._tilePool.acquire();return VE[0]=d,VE[1]=_,VE[2]=T,A.init(VE,x,this),A}get updatingRootTiles(){return this._updatingRootTiles}_updateRootTiles(){const{extent:d,tilingScheme:_}=this;if(!_)return;const T=uH;let x=_.rootTilesInExtent(d,T,5*po.$r);if((0,Qe.pC)(this.rootTiles)){if(x.length>po.$r)return void Us.Z.getLogger(this.declaredClass).warn(po.Tg);const A=this.rootTiles.map(ne=>ne.lij),U=(0,pd.e5)(A,x,vI);if(this._updatingRootTiles=!0,U.removed.length>0||U.added.length>0){const ne=this.rootTiles.filter(fe=>!(U.removed.findIndex(Oe=>vI(Oe,fe.lij))>-1&&(this._purgeTile(fe),1)));U.added.forEach(fe=>ne.push(this._newRootTile(fe))),this._setRootTiles(ne)}}else this._updatingRootTiles=!0,x.length>po.$r&&(Us.Z.getLogger(this.declaredClass).warn(po.iU),x=_.rootTilesInExtent(d,T,po.$r)),this._setRootTiles(x.map(A=>this._newRootTile(A)));(0,Bs.fS)(T,this._rootTilesExtent)||(this._rootTilesExtent=(0,Bs.Ue)(T)),this._visible=!0,this._viewChangeUpdate(),this.overlayManager.setPlacementDirty(),this.notifyChange("ready"),this._updateAllTileGeometries(),this._updatingRootTiles=!1,this.checkAllTilesWaterproofness()}_updateAllTileGeometries(){const d=this._allTiles.filter(_=>_.isLoaded&&_.intersectsClippingArea);d.forEach(_=>this._renderer.updateTileGeometryState(_)),d.forEach(_=>_.renderData.updateNeighborData()),this._updateTilesGeometries(d),this._pendingTilesToUpdate.clear()}_updateTilesGeometries(d){if(0===d.length)return;d.sort(Ko.gl);const _=this.renderer;d.forEach(T=>_.updateGeometryIfNeeded(T)),d.forEach(T=>this._pendingTilesForElevationUpdateEvent.add(T))}_shouldSplit(d){return d.shouldSplit(this._splitLimits,this._eyePosRenderSR,this.snapLevel)===ni.SPLIT}_newRootTile(d){const _=this._acquireTile(0,d[1],d[2],null);return this._shouldSplit(_)&&_.setPendingUpdate(ni.SPLIT),this._loadTile(_),this._markTileToUpdate(_),this._updateRootTileElevationBounds(),_}_setRootTiles(d){if(this._set("rootTiles",d),this._allTiles.clear(),(0,Qe.pC)(d)){const _=this._iteratorPool.acquire();for(_.reset(d);!_.done;)this._allTiles.push(_.next());_.remove()}this._renderer.setRootTiles(this.rootTiles),this._updateTilesVisibility(d)}_runViewChangeUpdateIfDirty(){this._viewChangeUpdateDirty&&(this._viewChangeUpdateDirty=!1,this._viewChangeUpdate())}_viewChangeUpdate(){this.view&&!this.suspended&&this.tilingScheme&&this._visibleCached&&(this._inFrameTask?this._viewChangeUpdateDirty=!0:(this._viewChangeUpdateDirty=!1,this._updateViewDependentParameters(),this._updateTilesVisibility(this.rootTiles)))}_updateClippingStatus(d){d.updateClippingStatus(this.extent)&&d.resetPendingUpdate(ni.GEOMETRY)&&this._updateTileGeometryState(d)}_updateTilesVisibility(d){if((0,Qe.Wi)(d))return;const _=(0,Ko.t8)(d),T=this.visibleElevationBounds;let x=_?T.min:1/0,A=_?T.max:-1/0;const U=this.extent,ne=this._viewProjectionMatrix;this.setTileTreeDirty();const fe=this._iteratorPool.acquire();for(fe.reset(d);!fe.done;){const Oe=fe.next();Oe.updateClippingStatus(U)&&Oe.resetPendingUpdate(ni.GEOMETRY)&&this._updateTileGeometryState(Oe),Oe.setPendingUpdate(ni.RENDERDATA),Oe.computeVisibility(),Oe.updateScreenDepth(ne),Oe.renderData&&(x=Math.min(Oe.elevationBounds[0],x),A=Math.max(Oe.elevationBounds[1],A))}fe.remove(),this._viewChanged=!0,this._allTilesDirty=!0,this._batchUpdatePendingTileGeometries(),isFinite(x)&&isFinite(A)&&(T.min!==x||T.max!==A)&&(this.visibleElevationBounds=new q_(x,A))}_updateRootTileElevationBounds(){let d=1/0,_=-1/0;const T=this.rootTiles;(0,Qe.pC)(T)&&T.forEach(({elevationBounds:A})=>{d=Math.min(d,A[0]),_=Math.max(_,A[1])});const x=this.rootTileElevationBounds;x.min===d&&x.max===_||(this.rootTileElevationBounds=new q_(d,_))}_updateViewDependentParameters(){const d=this.view.state.camera,_=this.view.state.contentCamera,T=Math.tan(.5*_.fovX),x=Math.tan(.5*_.fovY),A=this.tilingScheme.pixelSize,U=2**-this._lodBias*d.pixelRatio;this._splitLimits.aboveGround=d.aboveGround,this._splitLimits.fovX=T,this._splitLimits.fovY=x,this._splitLimits.relativeWidthLimit=A/d.width*this.maxTextureScale*U,this._splitLimits.relativeHeightLimit=A/d.height*this.maxTextureScale*U,this._splitLimits.maxLod=this.tilingScheme.getMaxLod(),this._splitLimits.angledSplitBias=this.view.qualitySettings.tiledSurface.angledSplitBias,this.view.state.fixedContentCamera?((0,Qe.Wi)(this._splitLimits.frustum)&&(this._splitLimits.frustum=(0,rn.Ue)()),(0,rn.JG)(this._splitLimits.frustum,_.frustum)):this._splitLimits.frustum=null,(0,rn.JG)(this._frustum,d.frustum),(0,gi.m)(this._viewProjectionMatrix,_.projectionMatrix,_.viewMatrix),(0,pt.c)(this._eyePosRenderSR,_.eye),(0,di.SH)(d.eye,this.view.renderSpatialReference,this._eyePosSurfaceSR,this.spatialReference)}_updateRenderData(d){d.rendered&&!d.shouldLoad&&(EI(d)?this._loadChildren(d):function cH(d){return d.isLeaf&&d.parent&&d.parent.shouldLoad}(d)&&this._loadParent(d))}_updateTileGeometryState(d){d.updateVisibility(),this._renderer.updateTileGeometryState(d)&&this._markTileToUpdate(d),this._usedMemory=null}_markAllTileNeighborsForGeometryUpdate(d){const _=this._pendingTilesToUpdate;d.forEachLoadedNeighbor(T=>{_.add(T)})}_updateTileTexture(d,_){const T=d.resetPendingUpdate(ni.TEXTURE_FADING)?ni.TEXTURE_FADING:!!d.resetPendingUpdate(ni.TEXTURE_NOFADING)&&ni.TEXTURE_NOFADING;T&&(this._renderer.updateTileTexture(d,T),this._usedMemory=null,_.madeProgress())}_emitElevationUpdateEventForTiles(){const d=LO.extent;(0,Bs.cS)(d),this._pendingTilesForElevationUpdateEvent.forEach(_=>(0,Bs.jn)(d,_.extent,d)),this._pendingTilesForElevationUpdateEvent.clear(),LO.spatialReference=this.spatialReference,this.emit("elevation-change",LO)}runTask(d){this._handleLayerViewChanges(d),this._frameTask.processQueue(d),this._inFrameTask=!0,this._pendingUpdates=0,this._hasPendingUpdates=!1,this._updateAllTilesStatus(d),this._sortTiles(d);const _=!this.view.state.fixedContentCamera;this._mergeAndSplit(d,_),this._updateElevation(d),this._updateTextures(d),_||this._mergeAndSplit(d,!0),this._inFrameTask=!1,this._runViewChangeUpdateIfDirty(),this._batchUpdatePendingTileGeometries(),this._emitElevationUpdateEventForTiles(),d.done?this.requestUpdate():this.getUsedMemory(),this.notifyChange("updatingProgressValue")}_updateAllTilesStatus(d){if(!this._viewChanged||!this.rootTiles||d.done)return;this._viewChanged=!1;const _=this._iteratorPool.acquire();_.reset(this.rootTiles);const T=this.snapLevel,x=this._splitLimits,A=this._eyePosRenderSR;for(;!_.done;){const U=_.next(),ne=U.shouldSplit(x,A,T);if(ne!==ni.SPLIT){if(U.resetPendingUpdate(ni.SPLIT)&&U.updateAgentSuspension(),ne===ni.VSPLITMERGE&&U.updateAgents(Bi.ELEVATION),_.skipSubtree(),!U.isLeaf){U.setPendingUpdate(ni.MERGE),U.resetPendingUpdate(ni.SPLIT);const fe=this._iteratorPool.acquire();fe.resetOne(U);const Oe=this._viewProjectionMatrix;for(let we=fe.next();!fe.done;we=fe.next())this._updateClippingStatus(we),we.updateVisibility(),we.updateScreenDepth(Oe);fe.remove()}}else U.resetPendingUpdate(ni.MERGE),U.isLeaf&&(U.setPendingUpdate(ni.SPLIT),_.skipSubtree()),U.rendered&&U.setPendingUpdate(ni.RENDERDATA)}_.remove(),this.requestUpdate(),(this.shortBatches||!this.oneBatchPerFrameTask)&&this._batchUpdatePendingTileGeometries(),d.madeProgress()}_sortTiles(d){d.done||this._allTilesSorted||((0,Ko.b)(this._allTiles,this.view.pointsOfInterest.focus.renderLocation),this._allTilesSorted=!0,this._treeDebugger&&this._treeDebugger.update(),d.madeProgress())}_markTileToUpdate(d){(0,Cr.Fp)(d.isLoaded),d.intersectsClippingArea&&(this._pendingTilesToUpdate.add(d),this._markAllTileNeighborsForGeometryUpdate(d))}_batchUpdatePendingTileGeometries(){const d=this._pendingTilesToUpdate;if(0===d.size)return;const _=Array.from(this._pendingTilesToUpdate.keys()).filter(A=>A.isLoaded&&A.intersectsClippingArea),T=(A,U)=>{!U?.isLoaded||!U.intersectsClippingArea||U.level=U.level&&Ze.forAllSubtreeOnSide((0,Cr._F)(Cr.OC[we]),it=>!(!it.isLoaded||!it.intersectsClippingArea||((0,Cr.Fp)(d.has(it)||(0,Ko.gl)(U,it)<0),T(U,it),0))),T(U,Oe.cornerPeerNeighbors[we]),T(U,Oe.cornerPeerNeighbors[(we+1)%4])}}d.clear(),this._updateTilesGeometries(_),Cr.jt&&Cr.XJ&&this.checkAllTilesWaterproofness()}_mergeAndSplit(d,_){if(this.suspended||d.done||!this._allTilesDirty)return;this._allTilesDirty=!1,this.requestUpdate();let T=!1,x=!1;for(;!d.done;){x=!0;let A=!1;const U=!this._allTiles.some(ne=>{if(!T&&!ne.loadable)return d.done;let fe=ne;if(ne.resetPendingUpdate(ni.MERGE)){if(!_)return ne.setPendingUpdate(ni.MERGE),d.done;for(;fe.parent?.resetPendingUpdate(ni.MERGE);)fe=fe.parent;this._mergeTile(fe),A=!0,d.madeProgress()}else ne.resetPendingUpdate(ni.SPLIT)&&(this._splitTile(ne),A=!0,d.madeProgress());return!d.done&&fe===ne&&ne.resetPendingUpdate(ni.RENDERDATA)&&(this._updateRenderData(ne),d.madeProgress()),d.done});if(A&&(this._allTilesSorted=!1,this._allTilesDirty=!0),U){if(!T){T=!0;continue}if(!A)break}else this._allTilesDirty=!0}x||(this._allTilesDirty=!0),!this.oneBatchPerFrameTask&&this._batchUpdatePendingTileGeometries(),this._sortTiles(d)}_updateElevation(d){d.done||(this._allTiles.some(_=>(_.resetPendingUpdate(ni.GEOMETRY)&&(this._updateTileGeometryState(_),this._updateTileTexture(_,d),this.shortBatches&&this._batchUpdatePendingTileGeometries(),d.madeProgress()),d.done)),!this.oneBatchPerFrameTask&&this._batchUpdatePendingTileGeometries())}_updateTextures(d){d.done||this._allTiles.some(_=>(this._updateTileTexture(_,d),d.done))}_updateClippingExtent(){this.spatialReference&&(this.updateTileOverlayParams(Fi.Xx.UPDATE),this.overlayManager.setPlacementDirty(),this._updateRootTiles())}get _lodBias(){return this.view.qualitySettings.tiledSurface.lodBias-(1-this.view.resourceController.memoryController.memoryFactor)*po.DR}_getLodBiasCorrectedScale(d){const _=this.tilingScheme.levels,T=(0,xr.uZ)(d-this._lodBias,0,_.length-1),x=T-Math.floor(T);return _[Math.floor(T)].scale*(1-x)+_[Math.ceil(T)].scale*x}_removeAllTiles(){(0,Qe.pC)(this.rootTiles)&&(this.rootTiles.forEach(d=>this._purgeTile(d)),this._setRootTiles(null),this.notifyChange("ready")),this._allTiles.clear(),this._visible=!1}_purgeDescendantTiles(d){if(d.isLeaf)return!1;let _=!1;for(let T=0;T<4;++T)_=this._purgeTile(d.children[T])||_;return d.unsetChildren(),_}_purgeTile(d){const _=this._purgeDescendantTiles(d)||d.rendered;return this._allTiles.removeUnordered(d),this._unloadTile(d),this._tilePool.release(d),_}_unloadTile(d){this._pendingTilesToUpdate.delete(d),this._pendingTilesForElevationUpdateEvent.delete(d),d.unload(this._renderer)}_splitTile(d){(0,Cr.wu)(d.isLeaf,"tile that is already split should not be split again!");const _=d.level+1,T=2*d.lij[1],x=2*d.lij[2];d.setChildren(this._createTile(_,T,x,d),this._createTile(_,T,x+1,d),this._createTile(_,T+1,x,d),this._createTile(_,T+1,x+1,d)),d.setPendingUpdate(ni.RENDERDATA),d.updateAgentSuspension(),this._allTiles.pushArray(d.children),this._allTilesDirty=!0,++this._performanceInfo.numSplit}_emitTileScaleChange(d,_=d.level){zE.spatialReference=this.spatialReference,zE.extent=d.extent,zE.scale=this._getLodBiasCorrectedScale(_),this.emit("scale-change",zE)}_createTile(d,_,T,x){(0,Cr.wu)(!!x,"_createTile sanity check");const A=this._acquireTile(d,_,T,x);return A.updateClippingStatus(this.extent),A.updateScreenDepth(this._viewProjectionMatrix),this._shouldSplit(A)&&A.setPendingUpdate(ni.SPLIT),A}get shortBatches(){return this.view.state.mode!==Lu.n.IDLE}_mergeTile(d){(0,Cr.wu)(!d.hasPendingUpdate(ni.SPLIT),"_mergeTile sanity check"),this._purgeDescendantTiles(d)&&((0,Cr.wu)(!d.renderData,"_mergeTile sanity check"),this._loadTile(d),this._markTileToUpdate(d),this._emitTileScaleChange(d),this.shortBatches&&this._batchUpdatePendingTileGeometries()),this._allTilesDirty=!0,++this._performanceInfo.numMerged}_loadChildren(d){(0,Cr.wu)(d.rendered,"parent should be rendered"),this._unloadTile(d);const _=d.children;_.forEach(T=>this._loadTile(T)),_.forEach(T=>this._pendingTilesToUpdate.add(T)),this._markAllTileNeighborsForGeometryUpdate(d),this._emitTileScaleChange(d,d.level+1),this.shortBatches&&this._batchUpdatePendingTileGeometries()}_loadParent(d){const _=d.parent;this._unloadChildren(_),this._loadTile(_),this._markTileToUpdate(_),this._emitTileScaleChange(_,_.level),this.shortBatches&&this._batchUpdatePendingTileGeometries()}_unloadChildren(d){if(!d.isLeaf)for(let _=0;_<4;++_){const T=d.children[_];this._unloadChildren(T),this._unloadTile(T)}}_loadTile(d){d.load(),d.setPendingUpdate(ni.RENDERDATA),this.requestUpdate(),this._allTilesDirty=!0,this.overlayManager&&this.overlayManager.hasOverlays&&this.overlayManager.setTileParameters(d)}_elevationDataArrived(d,_,T){const x=new fV(d.lij,d.extent,T);d.dataArrived(_,Bi.ELEVATION,x);const A=[d],U=d.level,ne=this._iteratorPool.acquire();for(ne.reset(A);!ne.done;){const fe=ne.next();fe.findElevationBoundsForLayer(_,U),fe.computeElevationBounds()}0===U&&this._updateRootTileElevationBounds(),ne.remove(),this._updateTilesVisibility(A)}_handleLayerViewChanges(d=Fn.G5){if(!this._layerViewsDirty)return;this._layerViewsDirty=!1;let _=!1;const T=new Set;let x=-1;for(const A of this.view.allLayerViews.items)if(T.add(A.uid),(0,Cr.wP)(A)||(0,Cr.a_)(A))if(this._basemapLayerViewHandles.has(A.uid)&&!(0,Cr.a_)(A)){const U=this._layerClassFromLayerView(A),ne=this._getLayerIdxByUID(U,A.uid);(0,Qe.pC)(ne)&&((ne{T.has(U)||(this._unregisterTiledLayerView(U),_=!0)}),_&&this._updateTiledLayers(),this._renderer.transparency=this._allSurfaceLayersTransparent()?$a.Invisible:this._renderer.transparency,this.hasCompositeBlendMode=this._hasCompositeBlendMode(),d.madeProgress()}_allSurfaceLayersTransparent(){let d=0===this.view.map?.ground?.opacity;for(const _ of this.view.allLayerViews.items)if((0,Cr.GL)(_)&&!(0,Gl.sy)(_.layer)&&0!==_.fullOpacity)return d=!1,d;return d}_hasCompositeBlendMode(){for(const d of this.view.allLayerViews.items)if(((0,Cr.TK)(d)||(0,Cr.a_)(d))&&(0,$u.MV)($u.pU[d.layer.blendMode]))return!0;return!1}_layerClassFromLayerView(d){return(0,Cr._1)(d)?Bi.ELEVATION:Bi.MAP}_registerTiledLayerView(d){const _=[];if(((0,Cr.TK)(d)||(0,Cr.a_)(d))&&_.push((0,Ht.YP)(()=>d.layer.blendMode,()=>{this.hasCompositeBlendMode=this._hasCompositeBlendMode(),this._updateTileTextures(Vs.Ns.UNFADED)})),(0,Cr.a_)(d))return;const T=this._layerClassFromLayerView(d);_.push((0,Ht.YP)(()=>d.suspended,()=>this._updateTiledLayers())),_.push((0,Ht.YP)(()=>d.fullOpacity,()=>this._updateTileTextures(Vs.Ns.UNFADED))),_.push((0,Ht.YP)(()=>"effectiveScaleRange"in d.layer?d.layer.effectiveScaleRange:null,()=>this._restartAllAgents(T))),d.on("data-changed",()=>{const x=this._getLayerIdxByUID(T,d.uid);(0,Qe.pC)(x)&&this._invalidateLayerData(x,T)}),this._basemapLayerViewHandles.set(d.uid,_)}_unregisterTiledLayerView(d){const _=this._basemapLayerViewHandles.get(d);if(_){for(let T=0;T<_.length;T++)_[T].remove();this._basemapLayerViewHandles.delete(d)}}_updateTiledLayers(){if(!this.tilingScheme||this.view.suspended)return;const _=[[],[]];let T=null;this.view.allLayerViews.forEach(x=>{if(!x.layer||x.suspended||!(0,Cr.wP)(x)||!x.fullExtent)return;const A=this._layerClassFromLayerView(x);if(A===Bi.MAP){const U=x.displayLevelRange.maxLevel;U!==1/0&&(null===T||U>T)&&(T=U)}_[A].push(x)});for(const x of m0){const A=this._layerViews[x],U=_[x];U.reverse();const ne=U.length;let fe=A.length!==ne;const Oe=new Array(ne),we=new Array(A.length);this._layerIndexByUid[x].clear();for(let Ze=0;Ze-1&&(we[lt]=Ze)}if(fe){const Ze=this._postorderIterator;for(Ze.reset(this.rootTiles);!Ze.done;)Ze.next().modifyLayers(we,Oe,x);this._layerViews[x]=U,this._restartAllAgents(x),this._updateTilesVisibility(this.rootTiles)}}this.tilingScheme.ensureMaxLod(T)&&this._viewChangeUpdate()}_restartAllAgents(d){const _=this._postorderIterator;for(_.reset(this.rootTiles);!_.done;){const T=_.next();T.restartAgents(d),d===Bi.ELEVATION&&T.computeElevationBounds()}this._updateRootTileElevationBounds()}layerViewByIndex(d,_){return this._layerViews[_][d]}numLayers(d){return this._layerViews[d].length}_updateTileTextures(d){this._allTiles.forAll(_=>{_.updateAgents(Bi.MAP),d===Vs.Ns.IMMEDIATE?this.renderer.updateTileTexture(_,ni.TEXTURE_NOFADING):_.updateRenderData(Bi.MAP,d)}),this._renderer.transparency=this._allSurfaceLayersTransparent()?$a.Invisible:this._renderer.transparency}_invalidateLayerData(d,_){this._allTiles.forAll(T=>T.removeLayerAgent(d,_)),this._allTiles.forAll(T=>T.invalidateLayerData(d,_))}setTileTreeDirty(){this._allTilesDirty=!0}requestRender(d=Fi.Xx.UPDATE){this.renderer.setNeedsRender(d)}requestUpdate(){1==++this._pendingUpdates&&(this._hasPendingUpdates=!0)}requestTileData(d,_,T,x){const A=this.layerViewByIndex(_,T),U=A.layer;return!U.tilemapCache||(0,Cr.Q)(A)?this._requestTileData(d,T,A,x):(++this._asyncWorkItems,U.tilemapCache.fetchAvailability(d.lij[0],d.lij[1],d.lij[2],{...x,timeout:6e3}).then(()=>--this._asyncWorkItems).catch(ne=>{throw--this._asyncWorkItems,(0,ws.k_)(x),(0,ws.D_)(ne)||this._dataMissing(d,T,A,{notInTilemap:!0}),ne}).then(()=>this._frameTask.schedule(()=>this._requestTileData(d,T,A,x),x.signal)))}_requestTileData(d,_,T,x){return _===Bi.ELEVATION?(0,Cr._1)(T)?this._requestElevationTileData(d,T,x):Promise.reject():(0,Cr.GL)(T)?this._requestMapTileData(d,T,x):Promise.reject()}_requestElevationTileData(d,_,T){++this._asyncWorkItems;const x=ne=>{if((0,ws.Hc)(T))return;const fe=this._layerIndexByUid[Bi.ELEVATION].get(_.uid);null!=fe?(this._usedMemory=null,this.requestUpdate(),this._elevationDataArrived(d,fe,ne)):Us.Z.getLogger(this.declaredClass).warn("TerrainSurface: received data from unknown layer %d %s",Bi.ELEVATION,d.lij.toString())},A=ne=>{(0,ws.D_)(ne)||(this._dataMissing(d,Bi.ELEVATION,_,ne),this.requestUpdate())};if((0,Cr.FZ)(_.layer))return _.layer.fetchTile(d.lij[0],d.lij[1],d.lij[2],{noDataValue:po.$7,signal:T.signal}).then(ne=>{if(!(0,ws.Hc)(T))return this._frameTask.schedule(()=>x(ne),T.signal,A);Us.Z.getLogger(this.declaredClass).warnOnce("A call to fetchTile resolved even though the request was aborted. fetchTile should not resolve if options.signal.aborted is true.")},A).finally(()=>{--this._asyncWorkItems});const U=_.getTileUrl(d.lij[0],d.lij[1],d.lij[2]);return this._elevationDataRequester.request(U,"binary",T).then(ne=>this._lercDecoder.decode(ne,{noDataValue:po.$7},T.signal)).then(ne=>{ne?x({values:ne.pixelData,width:ne.width,height:ne.height,noDataValue:ne.noDataValue,minValue:ne.minValue,maxValue:ne.maxValue}):A(new Error("LERC decoding failed"))},A).finally(()=>{--this._asyncWorkItems})}_requestMapTileData(d,_,T){++this._asyncWorkItems;const x=(we,Ze)=>{--this._asyncWorkItems,(0,Cr.z4)(Ze),(0,ws.Hc)(T)||(this._dataMissing(d,Bi.MAP,_,we),this.requestUpdate())},A=we=>Ze=>x(Ze,we),U=we=>this._frameTask.schedule(()=>{--this._asyncWorkItems,this.requestUpdate(),(0,ws.Hc)(T)?(0,Cr.z4)(we):this._mapTileDataArrived(d,_,we)},T.signal,A(we)).catch(A(we)),ne=(we,Ze=null)=>this._frameTask.schedule(()=>x(we,Ze));if((0,Cr.Q)(_)){const we=_.schemaHelper.getLevelRowColumn(d.lij);return _.fetchTile(we[0],we[1],we[2],T).then(U,ne)}if((0,Cr.sR)(_))return _.fetchTile(d.lij[0],d.lij[1],d.lij[2],T).then(U,ne);if((0,Cr.FH)(_)&&(0,Cr.FZ)(_.layer))return _.layer.fetchTile(d.lij[0],d.lij[1],d.lij[2],T).then(we=>{if((0,ws.Hc)(T))return Us.Z.getLogger(this.declaredClass).warnOnce("A call to fetchTile resolved even though the request was aborted. fetchTile should not resolve if options.signal.aborted is true."),void ne((0,ws.zE)());U(we)},ne);let fe=_.getTileUrl(d.lij[0],d.lij[1],d.lij[2]);return(0,uV.d)(_.layer)&&_.layer.refreshTimestamp&&(fe+=`${fe.includes("?")?"&":"?"}_ts=${_.layer.refreshTimestamp}`),this._mapDataRequester.request(fe,_.hasMixedImageFormats?"image+type":"image",T).then(U,ne)}_mapTileDataArrived(d,_,T){const x=this._getLayerIdxByUID(Bi.MAP,_.uid);(0,Qe.pC)(x)?d.dataArrived(x,Bi.MAP,T):((0,Cr.z4)(T),Us.Z.getLogger(this.declaredClass).warn("TerrainSurface: received data from unknown layer"))}_getLayerIdxByUID(d,_){return this._layerIndexByUid[d].get(_)}_dataMissing(d,_,T,x){const A=this._getLayerIdxByUID(_,T.uid);(0,Qe.pC)(A)?d.dataMissing(A,_,x):Us.Z.getLogger(this.declaredClass).warn("TerrainSurface: received data from unknown layer")}updateTileOverlayParams(d){this.rootTiles&&this.overlayManager&&(this._allTiles.forAll(_=>{_.renderData&&this.overlayManager.setTileParameters(_)}),this._renderer.setNeedsRender(d))}get performanceInfo(){const d=this._performanceInfo;return d.numNodes=this._allTiles.length,d.numLeaves=d.numVisible=d.numRendered=d.numLoadedPerLevel.length=d.numRenderedPerLevel.length=0,this._allTiles.forAll(_=>{_.isLeaf&&d.numLeaves++;const T=_.level;_.renderData&&(d.numLoadedPerLevel[T]=(d.numLoadedPerLevel[T]||0)+1),_.visible&&(d.numVisible++,_.rendered&&(d.numRenderedPerLevel[T]=(d.numRenderedPerLevel[T]||0)+1,d.numRendered++))}),d}getUsedMemory(){return this.tilingScheme?((0,Qe.Wi)(this._usedMemory)&&(this._usedMemory=this._recalculateUsedMemory()),(0,Qe.pC)(this._usedMemory)?this._usedMemory:0):0}_recalculateUsedMemory(){return this.tilingScheme?this._allTiles.reduce((d,_)=>d+_.usedMemory,0):null}getUsedMemoryForLayerView(d){let _=0;const T=this._layerClassFromLayerView(d),x=this._getLayerIdxByUID(T,d.uid);return(0,Qe.pC)(x)&&this._allTiles.forAll(A=>_+=A.getUsedMemoryForLayer(T,x)),_}getTile(d){if((0,Qe.Wi)(d)||(0,Qe.Wi)(this.rootTiles))return null;const _=d.split("/").map(ne=>+ne);if(0===_[0])return this.rootTiles.find(ne=>ne.lij[1]===_[1]&&ne.lij[2]===_[2]);const T=2**_[0],x=Math.floor(_[1]/T),A=Math.floor(_[2]/T);let U;if(this.rootTiles.some(ne=>ne.lij[1]===x&&ne.lij[2]===A&&(U=ne,!0)),U){let ne=1<<_[0]-1;for(;U.lij[0]<_[0];){let fe=_[1]&ne?2:0;if((_[2]&ne)>0&&fe++,!U.children[fe])return null;U=U.children[fe],ne>>=1}return(0,Cr.wu)(U.lij[0]===_[0]&&U.lij[1]===_[1]&&U.lij[2]===_[2],"not the right tile?"),U}return null}get renderPatchBorders(){return this._renderer.renderPatchBorders}set renderPatchBorders(d){this._renderer.renderPatchBorders=d}get visualizeNormals(){return this._renderer.visualizeNormals}set visualizeNormals(d){this._renderer.visualizeNormals=d}get renderingDisabled(){return this._renderer.renderingDisabled}set renderingDisabled(d){this._renderer.renderingDisabled=d}get test(){const d=this;return{renderer:d._renderer,lercDecoder:d._lercDecoder,forceReload:()=>{(0,Qe.pC)(d.rootTiles)&&(d._mergeTile(d.rootTiles[0]),d._viewChangeUpdate())},getTiles:()=>d._allTiles.toArray(),getRenderedTiles(){IO.clear(),d._allTiles.forAll(T=>{T.visible&&T.rendered&&IO.push(T)});const _=IO.toArray();return(0,Ko.zW)(d.renderOrder,_),_},lockTilingScheme(_,T){d._extentHelper.defaultTiledLayersExtent=T,d.tilingSchemeLogic.test.lockTilingScheme(_)}}}checkAllTilesWaterproofness(){if(!Cr.XJ)return;const d=this.rootTiles;if((0,Qe.Wi)(d))return;const _=U=>U?.renderData?.geometryInfo?.indices?.length>0,T=(U,ne)=>{_(U)&&console.error("Tile[",U.lij,"] has geometry although parent[",ne.lij,"] has geom")},x=U=>{if(U.intersectsClippingArea)if(U.renderData&&!U.renderData.geometryState&&console.error("Tile[",U.lij,"] has renderData but not geometryState"),U.renderData&&!U.renderData.geometryInfo&&console.error("Tile[",U.lij,"] has renderData but not geometryInfo"),!U.renderData?.geometryInfo||(U.renderData.geometryInfo.indices?.length??0)>0||console.error("Tile[",U.lij,"] has renderData but no indices - geometryInfo: ",U.renderData.geometryInfo),_(U)){U.checkGeometryWaterproofness();for(const ne of U.children)T(ne,U)}else if(U.isLeaf)console.error("Tile[",U.lij,"] has no geometry and no children, from root to leaf");else for(const ne of U.children)x(ne)},A=U=>{const ne=U.parent?.visible??!0,fe=U.visible;U.computeVisibility();const Oe=U.visible;if(fe!==Oe&&ne&&console.error(" Tile[",U.lij,"] has out of date visibility: ",fe," instead of ",Oe),!U.isLeaf)for(const we of U.children)A(we)};for(const U of d)x(U),A(U)}get isGlobal(){return this._isGlobal}get shading(){return this._shading}_updateShadingIfChanged(){this.view?.map?.ground?.shading!==this._shading&&this._updateShading()}_updateShading(){const d=this.view?.map?.ground?.shading;this._shading=d,this.renderer&&(this.renderer.shading=d,this.renderer.setNeedsRender()),this._updateAllTileGeometries()}get isWebMercator(){return this._isWebMercator}get isWebMercatorOnPlateeCarree(){return this._isWebMercatorOnPlateeCarree}isEastEndWrap(d){return this.isGlobal&&d[2]===this.lijEastEnd(d[0])-1}isWestEndWrap(d){return this.isGlobal&&0===d[2]}lijEastEnd(d){return 2**(d+((0,Qe.pC)(this.spatialReference)&&this.spatialReference.isGeographic?1:0))}wrapEastWest(d){const _=this.lijEastEnd(d[0]),T=d[2];return 0<=T&&T<_?d:this.isGlobal?[d[0],d[1],(T+(T<0?_:0))%_]:null}enableInternalChecks(d){(0,Cr.T9)(d)}enableWaterproofnessChecks(d){(0,Cr.b5)(d)}};(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_renderer",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_hasPendingUpdates",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_asyncWorkItems",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_allTilesDirty",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_allTilesSorted",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_viewChanged",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"_watchUpdatingTracking",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_frameTask",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"snapLevel",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"lodSnapping",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Ui.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_userClippingExtent",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_rootTilesExtent",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"extent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"groundExtent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"_tilingSchemeExtent",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"running",null),(0,Ve._)([(0,ke.Cb)(pV.q)],Ui.prototype,"updatingProgress",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"updatingProgressValue",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_maxNumUpdating",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"baseOpacity",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"hasCompositeBlendMode",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"overlayManager",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"viewingMode",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"maxTextureScale",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"ready",null),(0,Ve._)([(0,ke.Cb)({value:ey.FRONT_TO_BACK})],Ui.prototype,"renderOrder",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"rootTiles",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"spatialReference",null),(0,Ve._)([(0,ke.Cb)({type:lo.Z})],Ui.prototype,"backgroundColor",null),(0,Ve._)([(0,ke.Cb)({value:!1})],Ui.prototype,"slicePlaneEnabled",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"tilingScheme",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"tilingSchemeLocked",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ui.prototype,"tilingSchemeLogic",void 0),(0,Ve._)([(0,ke.Cb)({value:!0})],Ui.prototype,"velvetOverground",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"wireframe",null),(0,Ve._)([(0,ke.Cb)({value:!1})],Ui.prototype,"suspended",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"textureFadeDuration",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"visibleElevationBounds",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"rootTileElevationBounds",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"_layerViewsDirty",void 0),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"renderPatchBorders",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"visualizeNormals",null),(0,Ve._)([(0,ke.Cb)()],Ui.prototype,"renderingDisabled",null),Ui=(0,Ve._)([(0,Wr.j)("esri.views.3d.terrain.TerrainSurface")],Ui);const lH=Ui;function vI(d,_){return d[0]===_[0]&&d[1]===_[1]&&d[2]===_[2]}function EI(d){return!d.isLeaf&&(d.children.some(_=>_.shouldLoad)||d.children.some(_=>EI(_)))}const Sl=(0,Tn.c)(),uH=(0,Bs.Ue)(),VE=[0,0,0],IO=new wo.Z,LO={spatialReference:null,extent:(0,Bs.Ue)(),context:"ground"},zE={spatialReference:null,extent:null,scale:0};function bI(d,_,T){for(const x of d){if(!x.containsPointXY(_,T))continue;let A=x;for(;A&&!A.renderData;)A=A.children[(_>A.extentMidX?1:0)+(Tthis.commitLayer(T,d))}commitLayer(d,_){const T=this._dirtyGeomRecords.get(d);T&&(T.forEach((x,A)=>{const U=this._ensureGeomRecord(d,A);x.forEach(({geometryRecord:ne,operation:fe,states:Oe},we)=>{let Ze=!1;if(fe===Ln.T.UPDATE){const it=U.get(we);if(it){const lt=it.renderGeometry;if(Oe&Ln.$.TRANSFORMATION){const dt=this.model.getObject(A);this.model.updateRenderGeometryTransformation(dt,ne,lt)&&(Ze=!0)}Ze||_.updates.push({renderGeometry:lt,updateType:Oe})}else(0,Wc.hu)(!1,"ModelDirtySet.getAddRemoveListFilteredByLayers: invalid update")}if(fe===Ln.T.REMOVE||Ze){const it=U.get(we);it?(_.removes.push(it.renderGeometry),U.delete(we),it.geometryRecord.disposed&&UO.k.pool.release(it.geometryRecord)):fe===Ln.T.REMOVE&&(0,Wc.hu)(!1,"ModelDirtySet.getAddRemoveListFilteredByLayers: invalid remove")}if(fe===Ln.T.ADD||Ze){const it=this.model.getObject(A);if((0,Qe.pC)(it)){const lt=this.model.getRenderGeometry(it,ne),dt=new hH(ne,lt);_.adds.push(lt),U.set(we,dt)}}}),0===U.size&&this._residentGeomRecords.get(d).delete(A)}),0===this._residentGeomRecords.get(d).size&&this._residentGeomRecords.delete(d),this._dirtyGeomRecords.delete(d))}getResidentRenderGeometries(d,_){const T=this._residentGeomRecords.get(d);T&&T.forEach(x=>x.forEach(A=>_.push(A.renderGeometry)))}_objectStateChanged(d,_){for(const T of _.geometryRecords)this._updateOrCreateDirtyRecord(_,T,null,Ln.T.UPDATE,d)}visibilityChanged(d){this._objectStateChanged(Ln.$.VISIBILITIES,d)}highlightChanged(d){this._objectStateChanged(Ln.$.HIGHLIGHTS,d)}occlusionChanged(d){this._objectStateChanged(Ln.$.OCCLUDEES,d)}vertexAttrsUpdated(d){this._updateOrCreateDirtyRecord(d.object,d.record,null,Ln.T.UPDATE,Ln.$.VERTEXATTRS)}layerAdded(d){d.objects.forAll(_=>this._layerObjectAdded(d,_))}layerRemoved(d){d.objects.forAll(_=>this._layerObjectRemoved(d,_))}layerObjectAdded(d){this._layerObjectAdded(d.layer,d.object)}_layerObjectAdded(d,_){const T=d.id;for(const x of _.geometryRecords)this._objectGeometryAdded(_,x,T)}layerObjectRemoved(d){this._layerObjectRemoved(d.layer,d.object)}layerObjectsAdded(d){for(const _ of d.objects)this._layerObjectAdded(d.layer,_)}layerObjectsRemoved(d){for(const _ of d.objects)this._layerObjectRemoved(d.layer,_)}_layerObjectRemoved(d,_){const T=d.id;for(const x of _.geometryRecords)this._objectGeometryRemoved(_,x,T)}shaderTransformationChanged(d){const _=this._residentGeomRecords.get(d.id);_&&_.forEach((T,x)=>{const A=this.model.getObject(x);A&&A.hasVolativeTransformation()&&T.forEach(U=>{U.renderGeometry.shaderTransformationChanged()})})}objectTransformation(d){const _=this._getParentLayerId(d);this._ensureGeomRecord(_,d.id).forEach(x=>{this._updateOrCreateDirtyRecord(d,x.geometryRecord,_,Ln.T.UPDATE,Ln.$.TRANSFORMATION)})}objectGeometryAdded(d){this._objectGeometryAdded(d.object,d.record)}_objectGeometryAdded(d,_,T=null){this._updateOrCreateDirtyRecord(d,_,T,Ln.T.ADD)}objectGeometryRemoved(d){this._objectGeometryRemoved(d.object,d.record)}_objectGeometryRemoved(d,_,T=null){this._updateOrCreateDirtyRecord(d,_,T,Ln.T.REMOVE)}_updateOrCreateDirtyRecord(d,_,T,x,A=Ln.$.NONE){T=(0,Qe.Pt)(T,this._getParentLayerId(d));const ne=_.id,fe=this._ensureDirtyRecord(T,d.id),Oe=fe.get(ne);if(Oe){const we=Oe.operation;we===Ln.T.REMOVE&&x===Ln.T.ADD&&Oe.states!==Ln.$.NONE?Oe.operation=Ln.T.UPDATE:we===Ln.T.REMOVE&&x===Ln.T.ADD||we===Ln.T.ADD&&x===Ln.T.REMOVE?(fe.delete(ne),Oe.geometryRecord.disposed&&UO.k.pool.release(Oe.geometryRecord)):we!==Ln.T.UPDATE||x!==Ln.T.REMOVE&&x!==Ln.T.UPDATE?((0,Wc.hu)((we===Ln.T.REMOVE||we===Ln.T.ADD)&&x===Ln.T.UPDATE,"ModelDirtySet.objectGeometryAdded: inconsistent state"),Oe.states|=A):(Oe.operation=x,Oe.states|=A)}else fe.set(ne,new pH(x,_,A));this.dirty=this._hasDirtyGeometryRecords}_ensureGeomRecord(d,_){let T=this._residentGeomRecords.get(d);T||(T=new Map,this._residentGeomRecords.set(d,T));let x=T.get(_);return x||(x=new Map,T.set(_,x)),x}get _hasDirtyGeometryRecords(){return(0,El.oE)(this._dirtyGeomRecords,d=>(0,El.oE)(d,_=>_&&_.size>0))}_ensureDirtyRecord(d,_){let T=this._dirtyGeomRecords.get(d);T||(T=new Map,this._dirtyGeomRecords.set(d,T));let x=T.get(_);return x||(x=new Map,T.set(_,x)),x}_getParentLayerId(d){return(0,Qe.pC)(d.parentLayer)?d.parentLayer.id:dE.u}formatDebugInfo(){const d=["ADD","UPD",void 0,"REM"];let _="";return this._dirtyGeomRecords.forEach((T,x)=>{T.forEach((A,U)=>{_.length>0&&(_+="\n"),_+=x+"."+U;const ne=[];A.forEach(fe=>{const Oe=fe.operation;ne[Oe]||(ne[Oe]=[]),ne[Oe].push(fe.geometryRecord.geometry.id)});for(let fe=0;fe_+T.size,0)}}}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],oy.prototype,"model",void 0),(0,Ve._)([(0,ke.Cb)()],oy.prototype,"dirty",void 0),oy=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.ModelDirtySet")],oy);const _H=oy;var fH=v(53855);let HE=class extends Ns.Z{constructor(){super(...arguments),this.dirtySet=new _H({model:this}),this._content=new Map,this._originFactory=new CI.C(null)}getObject(d){return this._content.get(d)}add(d){const _=d.id;(0,Wc.hu)(!this._content.has(_),"Model/Stage already contains object to be added"),this._content.set(_,d),(0,Hg.e)(d)&&this.dirtySet.layerAdded(d)}remove(d){(0,Wc.hu)(this._content.has(d.id),"Model/Stage doesn't contain object to be removed"),this._content.delete(d.id),d.unload(),(0,Hg.e)(d)&&this.dirtySet.layerRemoved(d)}addMany(d){for(const _ of d)(0,Qe.pC)(_)&&((0,Wc.hu)(!this._content.has(_.id),"Model/Stage already contains object to be added"),this._content.set(_.id,_))}removeMany(d){for(const _ of d)(0,Wc.hu)(this._content.has(_.id),"Model/Stage doesn't contain object to be removed"),this._content.delete(_.id),_.unload()}has(d){return this._content.has(d.id)}forEachOfType(d,_){this._content.forEach(T=>{T.type===d&&_(T)})}getRenderGeometry(d,_){const{geometry:T,material:x,id:A,shaderTransformation:U,origin:ne,instanceParameters:fe}=_,Oe=new fH.z(T,x,{id:A,boundingInfo:T.boundingInfo,calculateShaderTransformation:U,castShadow:d.castShadow});return Oe.updateTransformation(we=>d.getCombinedStaticTransformation(_,we)),Oe.origin=(0,Qe.pC)(ne)?ne:this._originFactory.getOrigin(Oe.boundingSphere),Oe.instanceParameters=fe,Oe}updateRenderGeometryTransformation(d,_,T){if((0,Qe.Wi)(d))return!1;T.updateTransformation(A=>d.getCombinedStaticTransformation(_,A));const x=this._originFactory.getOrigin(T.boundingSphere);return T.origin!==x}getStats(){const d={},_=Array.from(this._content.values());for(let T=0;Tx.type===T).length;return{contentTypes:d,dirtySet:this.dirtySet.formatDebugInfo()}}get test(){return{content:Array.from(this._content.values())}}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],HE.prototype,"dirtySet",void 0),HE=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.parts.Model")],HE);var mH=v(79800),TI=v(9554),gH=v(42964),ay=v(9044),ly=v(93394),yH=v(55713);class vH{constructor(_){this._totalCount=_,this._indexRanges=[0,_]}allVisible(){return this.componentCount()===this._totalCount}allInvisible(){return 0===this._indexRanges.length}componentCount(){const _=this._indexRanges;let T=0;for(let x=0;x<_.length;x+=2)T+=_[x+1];return T}reset(_){this._indexRanges="all"===_||_.length===this._totalCount?[0,this._totalCount]:function EH(d){const _=new Array;if(0===d.length)return _;let T=d[0],x=1;for(let A=1;A(d[fe]>0?(U!==fe-1&&(x.length&&x.push(T[U+1]-x[x.length-1]),x.push(T[fe])),U=fe):(ne!==fe-1&&(A.length&&A.push(T[ne+1]-A[A.length-1]),A.push(T[fe])),ne=fe),!0)),x.length&&x.push(T[U+1]-x[x.length-1]),A.length&&A.push(T[ne+1]-A[A.length-1]),{highlightRanges:x,defaultRanges:A}}(this.highlightCounts,this.visibility,this.offsets);this.cachedHighlightRanges=_,this.cachedDefaultRanges=T}}}var GE=v(24225);function TH(d,_,T,x){if(T>=_)return d;null==d&&(d=function MH(d=!0){return{isVisibleBit:!d,data:new Uint32Array(0)}}());const A=d.isVisibleBit;let U=d.data;const ne=PI(U),fe=T/ne|0,Oe=T-ne*fe,we=(_-1)/ne|0,Ze=U,it=x===A;if(!(T{if(!MI(this._components.pickability,Tt))return!0;const mt=this.getComponentAabb(Tt,RH);if((0,Qe.pC)(ne)){const Zt=ne[Tt];(0,Qe.pC)(U)?U.componentOffset=Zt:(_[2]=lt-Zt,T[2]=dt-Zt)}if((0,Qe.pC)(U)&&U.applyToAabb(mt),!(0,v0.Tw)(mt,_,it,x))return!0;const Mt=Ze[Tt]/3,Pt=Ze[Tt+1]/3,Nt=(Zt,nr,Jt)=>{fe(Tt,Zt,(0,pt.t)(nr,nr,A),Jt)},Bt=Pt-Mt;return(0,Qe.Wi)(U)&&Bt>200?(null==this._componentIntersectionData[Tt]&&(this._componentIntersectionData[Tt]=new fI(this._indices,Mt,Pt,Oe)),this._componentIntersectionData[Tt].intersectRay({r0:_,r1:T},Nt)):(0,v0.CN)(_,T,Mt,Pt,we,Oe,void 0,U,Nt),!0})}_computePerComponentAabbs(){const _=this._components.count;this._perComponentAabbs=new Float32Array(6*_);const T=this._indices,x=this._positions.typedBuffer,A=this._positions.typedBufferStride,U=this._components.offsets;let ne=0;for(let fe=0;fe<_;fe++){const we=U[fe+1];let Ze=1/0,it=1/0,lt=1/0,dt=-1/0,Tt=-1/0,mt=-1/0;for(let Mt=U[fe];Mtd||{near:1/0,far:-1/0,mask:0,object:null},deallocator:d=>(d.object=(0,Qe.wN)(d.object),d)}),Gd=cy(),Al=(0,ir.c)(),E0=(0,ir.c)(),UH=new wo.Z({deallocator:null}),BH=new wo.Z({deallocator:null});function jH(d,_,T){T.length=0;const x=_.length-3;jO(Al,_,x);const A=(0,Rn.jH)(d,Al);A<=0&&(T.push(Al[0]),T.push(Al[1]),T.push(Al[2]));let U=0,ne=A;for(;Ud.halfSize[0]?1:0)+3*(Dc[1]<-d.halfSize[1]?-1:Dc[1]>d.halfSize[1]?1:0)+9*(Dc[2]<-d.halfSize[2]?-1:Dc[2]>d.halfSize[2]?1:0)+13),U=xI[A];if(0===U)return U;(0,Co.c)($E,d.quaternion),(0,Co.d)($E,$E,d.halfSize);const ne=(fe,Oe)=>{const we=xI[A+Oe+1];return(0,pt.s)(fe,((1&we)<<1)-1,(2&we)-1,((4&we)>>1)-1),(0,pt.t)(fe,fe,$E),(0,pt.a)(fe,d.center,fe)};return T.length=0,Rl(T,ne(FO,0)),Rl(T,ne(AI,1)),Rl(T,ne(Dc,2)),Rl(T,ne(RI,3)),x(T),1===U||(T.length=0,Rl(T,FO),Rl(T,RI),Rl(T,ne(Dc,4)),Rl(T,ne(wI,5)),x(T),2===U||(T.length=0,Rl(T,FO),Rl(T,wI),Rl(T,ne(Dc,6)),Rl(T,AI),x(T))),U}const xI=(()=>{const d=new Int8Array(216);let _=0;const T=x=>{for(let A=0;Ax.renderable.material.submit(_,T,x))}queryShadowCasterDepthRange(_){return this._objects.visibleObjects.length?function LH(d,_){const T=cy(),{eye:x,frustum:A,viewForward:U}=d;_.forAll(ne=>{const fe=(0,Qe.pC)(ne.offsetObb)?ne.offsetObb:ne.obb,Oe=(0,pt.e)((0,pt.y)(Dc,fe.center,x),U),we=(0,ly.xz)(fe,U);if(KE(T,Oe-we)&&KE(T,Oe+we))return;const Ze=function NH(d,_){let T=0;for(let x=0;x0)return-1;0===A&&(T|=1<{let Ze=BH;for(let it=0;it0;it++){if(0==(fe.mask&1<v.e(6777).then(v.bind(v,26777)));const UI=new Map([[Qi.T.POSITION,0],[Qi.T.NORMAL,1],[Qi.T.NORMALCOMPRESSED,1],[Qi.T.COLOR,2],[Qi.T.UV0,3],[Qi.T.UVREGION,4],[Qi.T.COMPONENTINDEX,5]]);var XE=v(35357),dy=v(50574);class zH extends lu.K{constructor(){super(...arguments),this._dirty=!0}_setDirty(){this._dirty=!0}_setClean(){if(this._dirty=!1,null!=this._parameterBlocks)for(const _ of this._parameterBlocks)this[_]._setClean()}get dirty(){return this._dirty||this._checkParameterBlocksDirty()}_checkParameterBlocksDirty(){if(null==this._parameterBlocks)return!1;for(const _ of this._parameterBlocks)if(this[_].dirty)return!0;return!1}}class NO{constructor(){this._dirty=!0}_setDirty(){this._dirty=!0}_setClean(){this._dirty=!1}get dirty(){return this._dirty}}function ao(d={}){return(_,T)=>{const x=_._parameterCount??0;if(_._parameterCount=x+1,d.vectorOps){const A=d.vectorOps;Object.defineProperty(_,T,{get(){return this[x]},set(U){const ne=this[x];if(null==ne)this[x]=U;else{if(A.equals(ne,U))return;A.copy(ne,U)}this._setDirty()}})}else Object.defineProperty(_,T,{get(){return this[x]},set(A){this[x]!==A&&(d.dispose&&this[x]&&this[x].dispose(),this[x]=A,this._setDirty())}})}}function BI(){return(d,_)=>{const T=d._parameterCount??0;d._parameterCount=T+1,d._parameterBlocks=d._parameterBlocks||[],d._parameterBlocks.push(T),Object.defineProperty(d,_,{get(){return this[T]},set(x){this[T]!==x&&(this[T]=x,this._setDirty())}})}}var Un=v(43553),jI=v(96395),HH=v(67022),GH=v(22799);class kE{constructor(_){this._low=(0,Tl.c)(),this._high=(0,Tl.c)(),_&&this.set(_)}get low(){return this._low}get high(){return this._high}set(_){const T=this._low,x=this._high;(0,pt.c)(T,_),(0,pt.y)(x,_,T)}setElements(_,T,x){(0,pt.s)(FI,_,T,x),this.set(FI)}get(_){return(0,pt.a)(_,this._low,this._high)}getLowScaled(_){return(0,pt.g)(_,this._low,1)}}const FI=(0,ir.c)();class ta extends zH{constructor(_,T){super(),this.toMapSpace=T,this.baseColor=(0,Zh.f)(1,1,1,1),this.usePBR=!1,this.hasParametersFromSource=!1,this.mrrFactors=(0,Tl.f)(1,1,.5),this.emissiveFactor=(0,Tl.f)(0,0,0),this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.emissionTexture=null,this.occlusionTexture=null,this.normalTexture=null,this.objectOpacity=1,this.commonMaterialParameters=new JE,this.componentParameters=new hy,this.textureAlphaCutoff=HH.F,this.alphaDiscardMode=Fi.JJ.Opaque,this.isIntegratedMesh=!1,this.polygonOffsetEnabled=!1,this.ellipsoidMode=GH.U.Earth,this.hasOccludees=!1,this._techniqueConfiguration=new ep._;const x=new kE(_.position),A=(0,cf.a)(_.rotationScale);(0,Co.e)(A,A),this.transformNormalGlobalFromModel=(0,Co.t)(A,A),this.transformWorldFromModelTL=x.low,this.transformWorldFromModelTH=x.high,this.transformWorldFromModelRS=_.rotationScale}dispose(){this._technique=(0,Qe.RY)(this._technique),this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.emissionTexture=null,this.occlusionTexture=null,this.normalTexture=null}get texture(){return(0,Qe.pC)(this.baseColorTexture)?this.baseColorTexture.glTexture:null}get textureMetallicRoughness(){return(0,Qe.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.glTexture:null}get textureEmissive(){return(0,Qe.pC)(this.emissionTexture)?this.emissionTexture.glTexture:null}get textureOcclusion(){return(0,Qe.pC)(this.occlusionTexture)?this.occlusionTexture.glTexture:null}get textureNormal(){return(0,Qe.pC)(this.normalTexture)?this.normalTexture.glTexture:null}prepareTechnique(_,T,x,A){const U=this._techniqueConfiguration;U.hasVertexColors=A.colors,U.hasNormals=A.normals,U.textureCoordinateType=A.textureCoordinates,U.hasMetallicRoughnessTexture=(0,Qe.pC)(this.metallicRoughnessTexture),U.hasEmissionTexture=(0,Qe.pC)(this.emissionTexture),U.hasOcclusionTexture=(0,Qe.pC)(this.occlusionTexture),U.hasNormalTexture=(0,Qe.pC)(this.normalTexture),U.transparencyPassType=T.identifier===Un.o9.Material&&null!=x.transparencyPassType?x.transparencyPassType:Zc.A.NONE,U.hasMultipassTerrain=T.identifier===Un.o9.Material&&null!=x.multipassTerrain&&x.multipassTerrain.enabled,U.cullAboveGround=T.identifier===Un.o9.Material&&null!=x.multipassTerrain&&x.multipassTerrain.cullAboveGround,U.ellipsoidMode=this.ellipsoidMode,U.componentData=this.componentParameters.type,U.cullFace=this.commonMaterialParameters.cullFace,U.doubleSidedMode=this.commonMaterialParameters.doubleSided?jI.q.View:jI.q.None,U.hasBaseColorTexture=(0,Qe.pC)(this.baseColorTexture);const ne=this._computeWhichMaterialPass();U.blendingEnabled=ne===ul.Transparent||ne===ul.OpaqueAndTransparent,U.alphaDiscardMode=this.alphaDiscardMode,U.integratedMeshMode=this.isIntegratedMesh?function $H(d){return 0!==d.overlays.length&&(0,Qe.pC)(d.overlays[Vs.fu.INNER].getColorTextureNoRasterImage())}(x)?(0,II.g)(x)?ep.O.ColorOverlayWithWater:ep.O.ColorOverlay:ep.O.NoOverlay:ep.O.None,U.useLegacyTerrainShading=this.isIntegratedMesh&&Fo.Z.TERRAIN_USE_LEGACY_SHADING,U.hasPolygonOffset=this.polygonOffsetEnabled;const fe=this.hasParametersFromSource&&(0,Qe.Wi)(this.baseColorTexture);return U.pbrMode=U.integratedMeshMode===ep.O.ColorOverlayWithWater?ny.f7.WaterOnIntegratedMesh:this.usePBR?fe?ny.f7.Schematic:ny.f7.Normal:ny.f7.Disabled,U.normalType=U.integratedMeshMode===ep.O.None?U.hasNormals?WE.h.CompressedAttribute:WE.h.ScreenDerivative:WE.h.Ground,U.hasSlicePlane=(0,Qe.pC)(x.slicePlane)&&this.commonMaterialParameters.hasSlicePlane,T.identifier===Un.o9.ShadowMap?(U.output=Xs.H.Shadow,U.vertexDiscardMode=dy.a.None):T.identifier===Un.o9.Highlight?(U.output=Xs.H.Highlight,U.vertexDiscardMode=dy.a.None):(U.vertexDiscardMode=this._computeWhichMaterialPass()===ul.OpaqueAndTransparent?T.transparent?dy.a.Opaque:dy.a.Transparent:dy.a.None,U.output=function KH(d){switch(d){case Un.zp.Color:return Xs.H.Color;case Un.zp.Alpha:return Xs.H.Alpha;case Un.zp.Depth:return Xs.H.Depth;case Un.zp.Normal:return Xs.H.Normal;case Un.zp.ObjectAndLayerIdColor:return Xs.H.ObjectAndLayerIdColor}}(T.subPass),T.subPass===Un.zp.Alpha&&(U.hasOccludees=x.hasOccludees),T.subPass===Un.zp.Color?(U.receiveAmbientOcclusion=x.ssaoHelper.ready,U.hasOccludees=x.hasOccludees,U.receiveShadows=x.shadowMap.ready,U.hasScreenSpaceReflections=x.ssr.enabled,U.hasCloudsReflections=(0,Qe.pC)(x.cloudsFade.data)):(U.receiveAmbientOcclusion=!1,U.receiveShadows=!1),U.snowCover=this.hasSnowCover(x),T.subPass===Un.zp.ObjectAndLayerIdColor&&(U.objectAndLayerIdColor=!0)),this._technique=_.releaseAndAcquire(YE,U,this._technique),this._setClean(),this._technique}hasSnowCover(_){return(0,Qe.pC)(_.weather)&&_.weatherVisible&&"snowy"===_.weather.type&&"enabled"===_.weather.snowCover}submit(_,T,x){if(0===this.objectOpacity)return;const A=x.renderable.geometry,U=x.components,ne=x.renderable.meta.cameraDepthSquared,fe=U.geometryRanges,Oe=U.highlightRanges,we=U.defaultShadowMapRanges;switch(this._computeWhichMaterialPass()){case ul.Opaque:_.materialOpaque.submitDraw(this,A,fe,ne);break;case ul.Transparent:_.materialTransparent.submitDraw(this,A,fe,ne);break;case ul.OpaqueAndTransparent:_.materialOpaque.submitDraw(this,A,fe,ne),_.materialTransparent.submitDraw(this,A,fe,ne);break;case ul.IntegratedMesh:_.materialIntegratedMesh.submitDraw(this,A,fe,ne),function ZH(d){return 0!==d.overlays.length&&(0,Qe.pC)(d.overlays[Vs.fu.INNER].getValidTexture(Vs.NH.Highlight))}(T)&&_.highlightIntegratedMesh.submitDraw(this,A,fe,ne)}const Ze=this.componentParameters.castShadows!==Zo.None;Ze&&_.shadowMap.submitDraw(this,A,fe,ne),(0,Qe.pC)(Oe)&&(_.highlight.submitDraw(this,A,Oe,ne),Ze&&_.highlightShadowMap.submitDraw(this,A,Oe,ne)),Ze&&(0,Qe.pC)(we)&&_.defaultShadowMap.submitDraw(this,A,we,ne)}_computeWhichMaterialPass(){return this.isIntegratedMesh?ul.IntegratedMesh:this.objectOpacity<1?ul.Transparent:this.componentParameters.opaqueOverride===Zo.All?ul.Opaque:this.baseColor[3]<1||this.alphaDiscardMode===Fi.JJ.Blend||this.alphaDiscardMode===Fi.JJ.MaskBlend?ul.Transparent:this.componentParameters.transparent===Zo.None?ul.Opaque:this.componentParameters.transparent===Zo.All?ul.Transparent:ul.OpaqueAndTransparent}}var ul,Zo;(0,Ve._)([ao({vectorOps:Qo.v})],ta.prototype,"baseColor",void 0),(0,Ve._)([ao()],ta.prototype,"usePBR",void 0),(0,Ve._)([ao()],ta.prototype,"hasParametersFromSource",void 0),(0,Ve._)([ao({vectorOps:pt.G})],ta.prototype,"mrrFactors",void 0),(0,Ve._)([ao({vectorOps:pt.G})],ta.prototype,"emissiveFactor",void 0),(0,Ve._)([ao({dispose:!0})],ta.prototype,"baseColorTexture",void 0),(0,Ve._)([ao({dispose:!0})],ta.prototype,"metallicRoughnessTexture",void 0),(0,Ve._)([ao({dispose:!0})],ta.prototype,"emissionTexture",void 0),(0,Ve._)([ao({dispose:!0})],ta.prototype,"occlusionTexture",void 0),(0,Ve._)([ao({dispose:!0})],ta.prototype,"normalTexture",void 0),(0,Ve._)([ao()],ta.prototype,"objectOpacity",void 0),(0,Ve._)([BI()],ta.prototype,"commonMaterialParameters",void 0),(0,Ve._)([BI()],ta.prototype,"componentParameters",void 0),(0,Ve._)([ao()],ta.prototype,"textureAlphaCutoff",void 0),(0,Ve._)([ao()],ta.prototype,"alphaDiscardMode",void 0),(0,Ve._)([ao()],ta.prototype,"isIntegratedMesh",void 0),(0,Ve._)([ao()],ta.prototype,"polygonOffsetEnabled",void 0),(0,Ve._)([ao()],ta.prototype,"ellipsoidMode",void 0),(0,Ve._)([ao()],ta.prototype,"hasOccludees",void 0),function(d){d[d.Opaque=0]="Opaque",d[d.Transparent=1]="Transparent",d[d.OpaqueAndTransparent=2]="OpaqueAndTransparent",d[d.IntegratedMesh=3]="IntegratedMesh"}(ul||(ul={}));class JE extends NO{constructor(){super(...arguments),this.doubleSided=!1,this.cullFace=Fi.Vr.Back,this.hasSlicePlane=!0}}(0,Ve._)([ao()],JE.prototype,"doubleSided",void 0),(0,Ve._)([ao()],JE.prototype,"cullFace",void 0),(0,Ve._)([ao()],JE.prototype,"hasSlicePlane",void 0);class hy extends NO{constructor(){super(...arguments),this.externalColor=(0,Zh.f)(1,1,1,1),this.externalColorMixMode=ay.a9.Multiply,this.castShadows=Zo.All}get transparent(){return this.externalColor[3]<1?Zo.All:Zo.None}get opaqueOverride(){return this.externalColorMixMode===ay.a9.Replace&&1===this.externalColor[3]?Zo.All:Zo.None}get visible(){return this.externalColor[3]>0?Zo.All:Zo.None}get type(){return XE._N.Uniform}}(0,Ve._)([ao({vectorOps:Qo.v})],hy.prototype,"externalColor",void 0),(0,Ve._)([ao()],hy.prototype,"externalColorMixMode",void 0),(0,Ve._)([ao()],hy.prototype,"castShadows",void 0),function(d){d[d.All=0]="All",d[d.Some=1]="Some",d[d.None=2]="None"}(Zo||(Zo={}));class py extends NO{constructor(){super(...arguments),this.texture=null,this.transparent=Zo.None,this.opaqueOverride=Zo.None,this.castShadows=Zo.None}get type(){return XE._N.Varying}}(0,Ve._)([ao()],py.prototype,"texture",void 0),(0,Ve._)([ao()],py.prototype,"transparent",void 0),(0,Ve._)([ao()],py.prototype,"opaqueOverride",void 0),(0,Ve._)([ao()],py.prototype,"castShadows",void 0);var Kd=v(7184),YH=v(17827);class XH{constructor(_){this._maxCount=_,this._nextIndex=0,this._recycledIndices=[]}get activeCount(){return this._nextIndex-this._recycledIndices.length}get availableCount(){return this._recycledIndices.length+this._maxCount-this._nextIndex}acquire(){return this._recycledIndices.length>0?this._recycledIndices.pop():this.availableCount?this._nextIndex++:void 0}release(_){this._recycledIndices.push(_)}}class kH{constructor(_,T=1){this._rctx=_,this._fieldCount=T,this.textureWidth=4096,this._dirty=!0,this._texture=new Ro.x(this._rctx,{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.NEAREST,wrapMode:xt.e8.CLAMP_TO_EDGE,width:this.textureWidth,height:1,flipped:!1}),this._data=new of.mc(new ArrayBuffer(4*this.textureWidth))}dispose(){this._texture.dispose(),this._texture=void 0,this._data=void 0}setData(_,T,x,A,U,ne){const fe=_*this._fieldCount+T;this._dirty=!0,this._data.set(fe,0,x),this._data.set(fe,1,A),this._data.set(fe,2,U),this._data.set(fe,3,ne)}setDataElement(_,T,x,A){const U=_*this._fieldCount+T;this._dirty=!0,this._data.set(U,x,A)}resizeToFit(_){const T=_*this._fieldCount;if(T>=this._data.count){const x=Math.ceil((T+1)/this.textureWidth)*this.textureWidth,A=new of.mc(new ArrayBuffer(4*x));A.typedBuffer.set(this._data.typedBuffer),this._data=A}}updateTexture(){if(!this._dirty)return;const _=this._texture.descriptor.width;this._data.count>_*this._texture.descriptor.height&&this._texture.resize(_,this._data.count/_),this._texture.setData(this._data.typedBuffer),this._dirty=!1}get texture(){return this._texture}}class JH{constructor(_,T=1){this.textureBuffer=new kH(_,T),this._indexManager=new XH(65536)}dispose(){this.textureBuffer.dispose(),this.textureBuffer=void 0}get availableCount(){return this._indexManager.availableCount}get activeCount(){return this._indexManager.activeCount}acquireIndex(){const _=this._indexManager.acquire();return this.textureBuffer.resizeToFit(_),_}releaseIndex(_){this._indexManager.release(_)}}class WI{constructor(_,T=1){this._rctx=_,this._fieldCount=T,this._buffers=[]}garbageCollect(){this._buffers=this._buffers.filter(_=>0!==_.activeCount||(_.dispose(),!1))}destroy(){this._buffers.forEach(_=>_.dispose()),this._buffers=[]}getBuffer(_){for(const x of this._buffers)if(x.availableCount>=_)return x;if(_>65536)return null;const T=new JH(this._rctx,this._fieldCount);return this._buffers.push(T),T}updateTextures(){for(const _ of this._buffers)_.textureBuffer.updateTexture()}}var _y=v(49353);const VI=Us.Z.getLogger("esri.views.3d.webgl-engine.collections.Component.ComponentObjectCollection");class QH{constructor(_,T){this._renderManager=_,this._viewingMode=T,this._objects=[new wo.Z,new wo.Z],this._renderSubmit=new WH(this),this._renderManager.register(this._renderSubmit),this._hasObjectAndLayerId=(0,So.Z)("enable-feature:objectAndLayerId-rendering"),this._componentBufferManager=new WI(_.rctx,2+(this._hasObjectAndLayerId?1:0))}dispose(){(0,Wc.hu)(0===this._objects[GE.Z.Hidden].length&&0===this._objects[GE.Z.Visible].length,"ObjectCollection should be empty upon disposal"),this._componentBufferManager.destroy()}createObject(_){const T=new GE.c;return T.toMapSpace=_.toMapSpace,T.transform=_.transform,T.obb=(0,ly.d9)(_.obb),T.components=new bH(this._componentBufferManager,_.geometry.componentOffsets),T.renderable=this._createRenderable(_,T.components),T.intersectionGeometry=new SH(_.geometry.positionData,T.components),this._objects[T.visible].push(T),T}destroyObject(_){const T=_;this._objects[T.visible].removeUnordered(T),T.dispose(),this._notifyDirty()}setObjectVisibility(_,T){const x=_;T!==x.visible&&(this._objects[x.visible].removeUnordered(x),this._objects[T].push(x),x.visible=T,this._notifyDirty())}preSubmit(_){const T=_.camera.eye;this.visibleObjects.forAll(x=>x.renderable.meta.cameraDepthSquared=(0,pt.d)(T,x.obb.center))}getMaterial(_){return _.renderable.material}updateMaterial(_,T){const x=_.renderable.material;T(x),x.dirty&&this._notifyDirty()}setAllComponentVisibilities(_,T){const x=_;x.components.visibility.reset(T),x.components.visibilityDirty(),this._notifyDirty()}forEachVisibleComponent(_,T){return _.components.visibility.forEachComponent(T)}getComponentCount(_){const T=_,x=T.components.visibility.componentCount();return{visible:x,invisible:T.components.count-x}}setComponentData(_,T){const x=_,A=x.renderable.material,U=x.components,ne=U.materialDataBuffer,fe=U.materialDataIndices,Oe={castShadows:!0,pickable:!0,externalColor:(0,Zh.c)(),externalColorMixMode:ay.a9.Multiply,elevationOffset:0,objectAndLayerIdColor:this._hasObjectAndLayerId?(0,Zh.c)():null},we=ne.textureBuffer,Ze=new Uint8Array(4),it=new Uint32Array(Ze.buffer);let lt=0,dt=0,Tt=0,mt=U.verticalOffsets,Mt=1/0,Pt=-1/0,Nt=!1,Bt=!1,Zt=0;for(let nr=0;nr0&&Zt!==it[0]),Zt=it[0],Bt||(Bt=0!==Oe.elevationOffset),Bt&&(0,Qe.Wi)(mt)&&(mt=new Array(nr).fill(0)),(0,Qe.pC)(mt)&&(mt[nr]=Oe.elevationOffset),Mt=Math.min(Mt,Oe.elevationOffset),Pt=Math.max(Pt,Oe.elevationOffset),(0,XE.nO)(Oe.elevationOffset,Ze),we.setData(fe[nr],1,Ze[0],Ze[1],Ze[2],Ze[3]),this._hasObjectAndLayerId){const Jt=Oe.objectAndLayerIdColor;we.setData(fe[nr],2,Jt[0],Jt[1],Jt[2],Jt[3])}Oe.pickable!==MI(U.pickability,nr)&&(U.pickability=TH(U.pickability,U.count,nr,Oe.pickable))}U.verticalOffsets=Bt?mt:null,x.offsetObb=Bt?(0,gH.gI)(x.obb,Mt,Pt,this._viewingMode,(0,Qe.pC)(x.offsetObb)?x.offsetObb:(0,ly.d9)(x.obb)):null,Nt||Bt||this._hasObjectAndLayerId?(A.componentParameters=new py,A.componentParameters.castShadows=WO(Tt,U.count),A.componentParameters.transparent=WO(lt,U.count),A.componentParameters.opaqueOverride=WO(dt,U.count),A.componentParameters.texture=we,we.updateTexture()):(A.componentParameters=new hy,A.componentParameters.castShadows=Oe.castShadows?Zo.All:Zo.None,A.componentParameters.externalColor=Oe.externalColor,A.componentParameters.externalColorMixMode=Oe.externalColorMixMode),this._notifyDirty()}getComponentAabb(_,T,x,A=!1){_.intersectionGeometry.getComponentAabb(T,x);const U=_,ne=U.components.verticalOffsets;if(A||(0,Qe.Wi)(ne))return x;const fe=ne[T];if(this._viewingMode===vi.JY.Local||0===fe)return x[2]+=fe,x[5]+=fe,x;const Oe=(0,Qe.Wg)((0,bc.iO)(fe));return Oe.localOrigin=U.transform.position,Oe.applyToAabb(x)}getComponentObb(_){return _.obb}getObjectTransform(_){return _.transform}getComponentPositions(_,T,x){return _.intersectionGeometry.getComponentPositions(T,x)}intersect(_,T,x,A,U,ne){const fe=_;(0,Qe.pC)(U)&&(U.localOrigin=fe.transform.position);const Oe=(0,Co.e)(zI,fe.transform.rotationScale);(0,pt.y)(QE,T,fe.transform.position),(0,pt.y)(qE,x,fe.transform.position),(0,pt.t)(QE,QE,Oe),(0,pt.t)(qE,qE,Oe);const we=(0,Co.t)(zI,Oe);return fe.intersectionGeometry.intersect(QE,qE,A,we,U,fe.components.verticalOffsets,ne)}addEdges(_,T,x,A){const U=_,{indices:ne,positions:fe}=U.intersectionGeometry,Oe=U.components.offsets;return T.addComponentObject(_,U.transform,{center:U.obb.center,radius:(0,ly.q0)(U.obb)},fe,ne,Oe,x,A)}extractEdgeInformation(_,T,x){var A=this;return(0,kr.Z)(function*(){const U=_,ne=U.components.visibility;if(ne.allInvisible())return{buffer:YH.n_.createBuffer(0),origin:[0,0,0]};const{indices:fe,positions:Oe}=U.intersectionGeometry,we=U.components.offsets,Ze=Kd.tf.createBuffer(Oe.count);(0,TI.c)(Ze.position,Oe),(0,mH.a)(Ze.position,Ze.position,U.transform.rotationScale),A._setComponentIndices(Ze.componentIndex,fe,we);const lt=A._computeVisibilityIndices(fe,ne,we,Ze.count);return{origin:(0,ir.a)(U.transform.position),buffer:yield T.extractComponentsEdgeLocations({indices:lt,indicesLength:lt.length,skipDeduplicate:!0,data:Ze,writerSettings:{reducedPrecision:!1,variants:0}},x)}})()}_setComponentIndices(_,T,x){let A=0;for(let U=0;U(U+=x[we]-x[Oe],!0));const ne=Array.isArray(_)?new Array(U):2===_?.BYTES_PER_ELEMENT||A<=65536?new Uint16Array(U):new Uint32Array(U);let fe=0;return T.forEachComponentRange((Oe,we)=>{const it=x[we];for(let lt=x[Oe];lt1)return x.highlightCounts[T]=A-1,void(x.highlightCounts[x.count]=U-1);x.highlightCounts[T]=0,x.highlightsDirty(),this._notifyDirty(),1===U?x.highlightCounts=null:x.highlightCounts[x.count]=U-1}else VI.warn("Removing non-existing highlight.")}clearHighlights(_){const T=_.components;(0,Qe.pC)(T.highlightCounts)&&(T.highlightCounts=null,T.highlightsDirty(),this._notifyDirty())}getObjectGPUMemoryUsage(_){return _.renderable.meta.gpuMemoryEstimate}get visibleObjects(){return this._objects[GE.Z.Visible]}_createRenderable(_,T){const x=this._renderManager.rctx,A=_.geometry,U=A.vertices.layoutParameters,ne=Ra.f.createVertex(x,xt.l1.STATIC_DRAW,A.vertices.data),fe=(0,Qe.yw)(A.indices,mt=>Ra.f.createIndex(x,xt.l1.STATIC_DRAW,mt)),Oe=(0,xh.K)((0,VH.N)(U)),we=new Uint16Array(A.vertices.count);for(let mt=0;mtv.e(505).then(v.bind(v,40505)));var GI=v(19982);class tb extends so.A{initializeProgram(_){return new Gn.$(_.rctx,tb.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({colorWrite:{r:!1,g:!0,b:!1,a:!1}})}}tb.shader=new ro.J(GI.a,()=>v.e(7281).then(v.bind(v,97281)));var KI=v(51764);class rb extends so.A{initializeProgram(_){return new Gn.$(_.rctx,rb.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE_MINUS_SRC_ALPHA),colorWrite:Ds.BK})}}rb.shader=new ro.J(KI.a,()=>v.e(8750).then(v.bind(v,88750)));var ZI=v(8651);class sb extends so.A{initializeProgram(_){return new Gn.$(_.rctx,sb.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.if)(xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA),colorWrite:Ds.BK})}}sb.shader=new ro.J(ZI.a,()=>v.e(4207).then(v.bind(v,84207)));class tG{constructor(_,T){this._rctx=_,this._techniqueRepository=T,this._configuration=new VO,this._passParameters=new HI.C,this._oitParameters=new KI.O,this._hudParameters=new GI.H,this._overlayParameters=new ZI.O}dispose(){this._vao=(0,Qe.M2)(this._vao)}compositeOIT(_,T,x,A){this._oitParameters.colorTexture=T,this._oitParameters.alphaTexture=x,this._oitParameters.frontFaceTexture=A;const U=this._rctx,ne=this._techniqueRepository.acquire(rb);U.bindTechnique(ne,this._oitParameters,_);const fe=this._ensureVAO();U.bindVAO(fe),U.drawArrays(xt.MX.TRIANGLE_STRIP,0,(0,No._V)(fe,"geometry")),ne.release()}compositeHUD(_,T){this._hudParameters.texture=T;const x=this._rctx,A=this._techniqueRepository.acquire(tb);x.bindTechnique(A,this._hudParameters,_);const U=this._ensureVAO();x.bindVAO(U),x.drawArrays(xt.MX.TRIANGLE_STRIP,0,(0,No._V)(U,"geometry")),A.release()}compositeOverlay(_,T,x,A){this._overlayParameters.texture=T,this._overlayParameters.opacity=x,this._overlayParameters.overlayIndex=A;const U=this._rctx,ne=this._techniqueRepository.acquire(sb);U.bindTechnique(ne,this._overlayParameters,_);const fe=this._ensureVAO();U.bindVAO(fe),U.drawArrays(xt.MX.TRIANGLE_STRIP,0,(0,No._V)(fe,"geometry")),ne.release()}composite(_,T,x=Ya.None,A=1){const U=this._rctx;this._configuration.alphaMode=x,this._configuration.hasOpacityFactor=1!==A,this._passParameters.texture=T,this._passParameters.opacity=A;const ne=this._techniqueRepository.acquire(eb,this._configuration);U.bindTechnique(ne,this._passParameters,_);const fe=this._ensureVAO();U.bindVAO(fe),U.drawArrays(xt.MX.TRIANGLE_STRIP,0,(0,No._V)(fe,"geometry")),ne.release()}_ensureVAO(){return(0,Qe.Wi)(this._vao)&&(this._vao=(0,_a.ow)(this._rctx)),this._vao}}var ib=v(36161),b0=v(82274);function oG(d,_,T){return(0,ib.v)(_,d)*(T[1]-T[0])+T[0]}function HO(d,_,T){if(!T.isVisible||!(0,rn.hr)(_.frustum,T.boundingVolumeWorldSpace.bounds))return;const x=T.transformation,A=_G;T.geometryRecords.forEach(U=>{(0,gi.m)(A,x,U.getShaderTransformation());const ne=(0,sl.u1)(A);$I(d,_,U.geometry.boundingInfo,A,ne)})}function $I(d,_,T,x,A){if((0,Qe.Wi)(T))return;(0,pt.m)(La,T.center,x);const{eye:U,viewForward:ne}=_,fe=ne[0]*(La[0]-U[0])+ne[1]*(La[1]-U[1])+ne[2]*(La[2]-U[2]);if(La[3]=T.radius*A,!(fe-La[3]>d.near&&fe+La[3]100&&T.getChildren()){const Oe=T.getChildren();for(let we=0;we<8;++we)Oe[we]&&$I(d,_,Oe[we],x,A)}else KO.unionDepthRangeWithAABB(d,_.viewProjectionMatrix,x,T.bbMin,T.bbMax)}function YI(d,_,T){const x=_.eye,A=_.viewForward,U=(T[0]-x[0])*A[0]+(T[1]-x[1])*A[1]+(T[2]-x[2])*A[2];d.near=Math.min(d.near,U-T[3]),d.far=Math.max(d.far,U+T[3])}const GO=[[0,1,3],[2,3,1],[1,5,2],[6,2,5],[5,4,6],[7,6,4],[4,0,7],[3,7,0],[3,2,7],[6,7,2],[4,5,0],[1,0,5]],La=(0,oo.c)(),_G=(0,gn.c)(),$c=cy(),vf=new class dG{constructor(){this._items=new wo.Z({allocator:_=>_||{obj:null,distance:0,near:0,far:0},deallocator:_=>(_.obj=null,_.distance=0,_.near=0,_.far=0,_)})}get length(){return this._items.length}get empty(){return 0===this._items.length}clear(){this._items.clear()}add(_){this._items.pushNew().obj=_}sort(_){const T=_.eye,x=_.viewForward;this._items.forAll(A=>{const U=A.obj.boundingVolumeWorldSpace.bounds,ne=(U[0]-T[0])*x[0]+(U[1]-T[1])*x[1]+(U[2]-T[2])*x[2];A.distance=ne,A.near=ne-U[3],A.far=ne+U[3]}),this._items.sort((A,U)=>A.distance-U.distance)}forEachInDepthRange(_,T,x){if(T===b0.Z.DepthOrder.FRONT_TO_BACK)for(let A=0;A_.far||x(U.obj,U.near,U.far)}else for(let A=this._items.length-1;A>=0;--A){const U=this._items.data[A];U.far<_.near||U.near>_.far||x(U.obj,U.near,U.far)}}},fG=new class hG{constructor(){this._view=(0,gn.c)(),this._viewProj=(0,gn.c)(),this._frustum=(0,rn.Ue)(),this._geometries=[],this._near=[],this._far=[],this._nearCandidates=[],this._farCandidates=[],this._range={near:0,far:0},this._looseRange={near:0,far:0}}compute(_,T){this._reset(),(0,gi.c)(this._view,_.viewMatrix),(0,gi.m)(this._viewProj,_.projectionMatrix,this._view),(0,rn.JG)(this._frustum,_.frustum);const x=this._view,A=x[2],U=x[6],ne=x[10],fe=x[14],Oe=this._range;let we=0;if(T.forEach(dt=>{if(!dt.instanceParameters.visible||!dt.castShadow)return;let Tt;dt.hasShaderTransformation?(dt.computeBoundingSphere(dt.getShaderTransformation(),La,1),Tt=La):Tt=dt.boundingSphere;const mt=A*Tt[0]+U*Tt[1]+ne*Tt[2]+fe,Mt=mt-Tt[3],Pt=mt+Tt[3];this._geometries[we]=dt,this._near[we]=-Pt,this._far[we]=-Mt,++we}),0===this._geometries.length)return Oe;for(let dt=0;dtOe.far&&(Oe.far=this._near[dt]),this._near[dt]>2&&this._far[dt]=Ze.near?Oe.near=this._near[dt]:this._nearCandidates[it++]=dt),this._far[dt]>Oe.far&&(this._far[dt]<=Ze.far?Oe.far=this._far[dt]:this._farCandidates[lt++]=dt);if(0===this._nearCandidates.length&&0===this._farCandidates.length)return Oe;this._nearCandidates.sort((dt,Tt)=>this._near[dt]this._near[Tt]?1:0),this._farCandidates.sort((dt,Tt)=>this._far[dt]this._far[Tt]?-1:0);for(let dt=0;dtOe.far){const mt=this._geometries[Tt];this._includeFarBoundingInfoRec(mt.boundingInfo,mt.getShaderTransformation())}}return Oe}_reset(){this._geometries.length=0,this._near.length=0,this._far.length=0,this._nearCandidates.length=0,this._farCandidates.length=0,this._range.near=Number.MAX_VALUE,this._range.far=-Number.MAX_VALUE}_includeNearBoundingInfoRec(_,T){if((0,Qe.Wi)(_))return;const x=_.getCenter();(0,pt.m)(La,x,T);const A=(0,sl.u1)(T),U=La[0],ne=La[1],fe=La[2],Oe=_.getBSRadius()*A,we=this._frustum;if(we[0][0]*U+we[0][1]*ne+we[0][2]*fe+we[0][3]>Oe||we[1][0]*U+we[1][1]*ne+we[1][2]*fe+we[1][3]>Oe||we[2][0]*U+we[2][1]*ne+we[2][2]*fe+we[2][3]>Oe||we[3][0]*U+we[3][1]*ne+we[3][2]*fe+we[3][3]>Oe)return;const Ze=this._view[2]*U+this._view[6]*ne+this._view[10]*fe+this._view[14],it=Ze+Oe;if(!(-(Ze-Oe)<2||-it>=this._range.near))if(-it>this._looseRange.near)this._range.near=-it;else{if(Oe>100){const lt=_.getChildren();if(void 0!==lt){for(let dt=0;dt<8;++dt)void 0!==lt[dt]&&this._includeNearBoundingInfoRec(lt[dt],T);return}}KO.unionDepthRangeWithAABB(this._range,this._viewProj,T,_.getBBMin(),_.getBBMax())}}_includeFarBoundingInfoRec(_,T){if((0,Qe.Wi)(_))return;let x=_.getBSRadius();const A=_.getCenter();(0,pt.m)(La,A,T);const U=(0,sl.u1)(T),ne=La[0],fe=La[1],Oe=La[2];x*=U;const we=this._frustum;if(we[0][0]*ne+we[0][1]*fe+we[0][2]*Oe+we[0][3]>x||we[1][0]*ne+we[1][1]*fe+we[1][2]*Oe+we[1][3]>x||we[2][0]*ne+we[2][1]*fe+we[2][2]*Oe+we[2][3]>x||we[3][0]*ne+we[3][1]*fe+we[3][2]*Oe+we[3][3]>x)return;const Ze=this._view[2]*ne+this._view[6]*fe+this._view[10]*Oe+this._view[14]-x;if(!(-Ze<=this._range.far))if(-Ze100){const it=_.getChildren();if(void 0!==it){for(let lt=0;lt<8;++lt)void 0!==it[lt]&&this._includeFarBoundingInfoRec(it[lt],T);return}}KO.unionDepthRangeWithAABB(this._range,this._viewProj,T,_.getBBMin(),_.getBBMax())}}},KO=new class pG{constructor(){this._modelViewProj=(0,gn.c)(),this._clipPosition=[(0,Tn.c)(),(0,Tn.c)(),(0,Tn.c)(),(0,Tn.c)(),(0,Tn.c)(),(0,Tn.c)(),(0,Tn.c)(),(0,Tn.c)()]}unionDepthRangeWithAABB(_,T,x,A,U){const ne=this._modelViewProj;(0,gi.m)(ne,T,x);let fe=!1;for(let Oe=0;Oe<8;++Oe){const we=this._clipPosition[Oe],Ze=0===Oe||3===Oe||4===Oe||7===Oe?A[0]:U[0],it=0===Oe||1===Oe||4===Oe||5===Oe?A[1]:U[1],lt=Oe<4?A[2]:U[2];we[0]=ne[0]*Ze+ne[4]*it+ne[8]*lt+ne[12],we[1]=ne[1]*Ze+ne[5]*it+ne[9]*lt+ne[13],we[2]=ne[2]*Ze+ne[6]*it+ne[10]*lt+ne[14],we[3]=ne[3]*Ze+ne[7]*it+ne[11]*lt+ne[15]}for(let Oe=0;Oe<12;++Oe){const lt=this._clipTriangle(this._clipPosition[GO[Oe][0]],this._clipPosition[GO[Oe][1]],this._clipPosition[GO[Oe][2]]);let dt=!0;for(let Tt=0;Tt=2){dt=!1;break}if(!dt){fe=!0;for(let Tt=0;Tt=-_[3]:1===T?_[1]>=-_[3]:2===T?_[0]<=_[3]:3===T?_[1]<=_[3]:void(0,Wc.hu)(!1)}_intersect(_,T,x){let A=0;return 0===x?A=(-_[3]-_[0])/(T[0]-_[0]+T[3]-_[3]):1===x?A=(-_[3]-_[1])/(T[1]-_[1]+T[3]-_[3]):2===x?A=(_[3]-_[0])/(T[0]-_[0]-T[3]+_[3]):3===x&&(A=(_[3]-_[1])/(T[1]-_[1]-T[3]+_[3])),(0,Qo.l)((0,Tn.c)(),_,T,A)}_clipTriangle(_,T,x){let A=[_,T,x];for(let U=0;U<4;++U){const ne=A;A=[];for(let fe=0;fe{this._updateResourceLoading(),this.events.emit("request-render")};(0,Qe.pC)(this._magnifier)&&this._handles.add((0,Ht.YP)(()=>(0,Qe.yw)(this._magnifier,T=>T.version),_)),_()}get enabled(){return(0,Qe.pC)(this._validMagnifier)}get _validMagnifier(){return(0,Qe.pC)(this._magnifier)&&this._magnifier.visible&&(0,Qe.pC)(this._magnifier.position)&&this._magnifier.size>0?this._magnifier:null}get _factor(){return(0,Qe.pC)(this._magnifier)&&this._magnifier.factor||1}dispose(){this._magnifier=null,this._handles.destroy(),(0,Qe.pC)(this._imageLoadTask)&&(this._imageLoadTask.task.abort(),this._imageLoadTask=null),this._disposeResources()}render(d,_){const T=this._validMagnifier;if((0,Qe.Wi)(T))return;const A=Math.ceil(_.camera.pixelRatio*T.size);if(this._updateResources(d,A),(0,Qe.Wi)(this._resources))return;const U=this._passParameters.textures,ne=Math.ceil(1/this._factor*A);U.input.resize(ne,ne),(0,li.md)(T.position,this._tmpScreenPoint);const fe=_.camera.screenToRender(this._tmpScreenPoint,this._tmpRenderPoint),we=_.camera.fullHeight,Ze=.5*ne,it=.5*ne;fe[0]=(0,xr.uZ)(fe[0],Ze,_.camera.fullWidth-Ze-1),fe[1]=(0,xr.uZ)(fe[1],it,we-it-1);const lt=Math.floor(fe[0]-Ze),dt=Math.floor(fe[1]-it),Tt=this._resources.program;Tt.bindTexture("textureInput",U.input),d.gl.copyTexImage2D(U.input.descriptor.target,0,U.input.descriptor.pixelFormat,lt,dt,ne,ne,0),this._passParameters.magnifier=T,d.useProgram(Tt),Tt.bindPass(this._passParameters,_),d.bindVAO(this._resources.vao),d.setPipelineState(this._resources.pipelineState),d.drawArrays(xt.MX.TRIANGLE_STRIP,0,4)}_updateResourceLoading(){var d=this;const _=this._validMagnifier;if((0,Qe.Wi)(_))return;const T=_.maskUrl,x=_.overlayUrl;!(0,Qe.pC)(this._imageLoadTask)||this._imageLoadTask.maskUrl===T&&this._imageLoadTask.overlayUrl===x||(this._imageLoadTask.task.abort(),this._imageLoadTask=null,this._imageSources=null),(0,Qe.pC)(this._imageSources)||(0,Qe.pC)(this._imageLoadTask)||(this._imageLoadTask={maskUrl:T,overlayUrl:x,task:(0,wu.vr)(function(){var A=(0,kr.Z)(function*(U){const ne=(0,Qe.Wi)(T)||(0,Qe.Wi)(x)?function PG(d){return $O.apply(this,arguments)}(U):null,fe=(0,Qe.pC)(T)?(0,C0.t)(T,{signal:U}):ne.then(we=>we.mask),Oe=(0,Qe.pC)(x)?(0,C0.t)(x,{signal:U}):ne.then(we=>we.overlay);d._imageSources={mask:yield fe,overlay:yield Oe},d._disposeResources(),d.events.emit("request-render")});return function(U){return A.apply(this,arguments)}}())},this._imageLoadTask.task.promise.then(()=>this.notifyChange("updating"),()=>this.notifyChange("updating")))}_updateResources(d,_){if(!this.enabled)return void this._disposeResources();if((0,Qe.pC)(this._resources)){if(this._passParameters.textures.size!==_){const x=this._createTextureResources(d,_);if((0,Qe.Wi)(x))return void this._disposeResources();this._disposeTextureResources(this._passParameters.textures),this._passParameters.textures=x}return}const T=this._createTextureResources(d,_);(0,Qe.Wi)(T)||(this._resources={program:this._createProgram(d),vao:(0,_a.ow)(d,P_.QI,this.attributeLocations,0,1),pipelineState:(0,Ds.sm)({blending:(0,Ds.if)(xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA),depthTest:null,depthWrite:null,colorWrite:Ds.BK})},this._passParameters.textures=T)}_disposeResources(){(0,Qe.Wi)(this._resources)||(this._disposeTextureResources(this._passParameters.textures),this._resources.program.dispose(),this._resources.vao.dispose(),this._resources=null)}_disposeTextureResources(d){d.mask.dispose(),d.overlay.dispose(),d.input.dispose()}_createTextureResources(d,_){if((0,Qe.Wi)(this._imageSources))return null;this._imageSources.overlay.width=_,this._imageSources.overlay.height=_,this._imageSources.mask.width=_,this._imageSources.mask.height=_;const T=new Ro.x(d,{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,internalFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:xt.cw.LINEAR,flipped:!0,preMultiplyAlpha:!(0,ST.zd)(this._imageSources.overlay.src)||!d.driverTest.svgAlwaysPremultipliesAlpha},this._imageSources.overlay),x=new Ro.x(d,{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.ALPHA,internalFormat:xt.VI.ALPHA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:xt.cw.LINEAR,flipped:!0},this._imageSources.mask);return{input:new Ro.x(d,{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,internalFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,samplingMode:xt.cw.LINEAR,flipped:!1}),mask:x,overlay:T,size:_}}_createProgram(d){return new Gn.$(d,function bG(){const d=new yG.kG;return d.attributes.add(Qi.T.POSITION,"vec2"),d.vertex.uniforms.add(new gG.N("drawPosition",(_,T)=>function CG(d,_){const T=_.camera.pixelRatio,x=d.magnifier.offset.x*T,A=d.magnifier.offset.y*T;(0,li.md)(d.magnifier.position,kI);const U=_.camera.screenToRender(kI,TG),ne=Math.ceil(T*d.magnifier.size),fe=_.camera.fullWidth,Oe=_.camera.fullHeight;return(0,Qo.s)(MG,(U[0]+x)/fe*2-1,(U[1]-A)/Oe*2-1,ne/fe*2,ne/Oe*2)}(_,T))),d.varyings.add("vUV","vec2"),d.vertex.code.add(lu.H`void main(void) { -vUV = position; -gl_Position = vec4(drawPosition.xy + vec2(position - 0.5) * drawPosition.zw, 0.0, 1.0); -}`),d.fragment.uniforms.add(new ZO.A("textureInput",_=>_.textures.input)),d.fragment.uniforms.add(new ZO.A("textureMask",_=>_.textures.mask)),d.fragment.uniforms.add(new ZO.A("textureOverlay",_=>_.textures.overlay)),d.fragment.uniforms.add(new XI.U("maskEnabled",_=>_.magnifier.maskEnabled)),d.fragment.uniforms.add(new XI.U("overlayEnabled",_=>_.magnifier.overlayEnabled)),d.fragment.code.add(lu.H`const float barrelFactor = 1.1; -vec2 barrel(vec2 uv) { -vec2 uvn = uv * 2.0 - 1.0; -if (uvn.x == 0.0 && uvn.y == 0.0) { -return vec2(0.5, 0.5); -} -float theta = atan(uvn.y, uvn.x); -float r = pow(length(uvn), barrelFactor); -return r * vec2(cos(theta), sin(theta)) * 0.5 + 0.5; -} -void main() { -float mask = maskEnabled ? texture2D(textureMask, vUV).a : 1.0; -vec4 inputColor = texture2D(textureInput, barrel(vUV)) * mask; -vec4 overlayColor = overlayEnabled ? texture2D(textureOverlay, vUV) : vec4(0); -gl_FragColor = overlayColor + (1.0 - overlayColor.a) * inputColor; -}`),d}(),this.attributeLocations)}};(0,Ve._)([(0,ke.Cb)()],Ef.prototype,"_imageSources",void 0),(0,Ve._)([(0,ke.Cb)()],Ef.prototype,"_imageLoadTask",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Ef.prototype,"updating",null),Ef=(0,Ve._)([(0,Wr.j)("esri/views/3d/webgl-engine/lib/MagnifierHelper")],Ef);class OG{constructor(){this.declaredClass="esri.views.3d.webgl-engine.lib.ObjectAndLayerIdRenderHelper",this.colorZero=new of.mc(new ArrayBuffer(4)),this._uidToRenderColor=new Map,this._colorToUID=new Map,this._layerUidToGraphicsUidToObjectId=new Map,this._layerUidToId=new Map,this._layerUidToPopupEnabled=new Map}setUidToObjectAndLayerId(_,T,x,A,U,ne=null,fe=null,Oe=null){if(!(_&&T&&x&&A&&(this._layerUidToId.set(A,x),this._layerUidToPopupEnabled.set(A,U),U)))return;let we=this._layerUidToGraphicsUidToObjectId.get(A);we||(we=new Map,this._layerUidToGraphicsUidToObjectId.set(A,we)),we.set(T,{objectId:_,attributeNodeId:ne,attributeIndex:fe,subLayerId:Oe})}getObjectAndLayerIdColor(_){const T=this.getObjectAndLayerIdColorArray(_);return(0,Tn.f)(T.get(0,1),T.get(0,2),T.get(0,3),255)}getObjectAndLayerIdColorArray(_){if(!_.layerUid||!_.graphicUid)return this.colorZero;const T=this._layerUidToPopupEnabled.get(_.layerUid);if(void 0===T)return Us.Z.getLogger(this.declaredClass).warn("popupEnabled is undefined for layerUid "+_.layerUid),this.colorZero;if(!1===T)return this.colorZero;let x=this._uidToRenderColor.get(_.layerUid);x||(x=new Map,this._uidToRenderColor.set(_.layerUid,x));let A=x.get(_.graphicUid);if(!A){for(;!A;){const ne=Math.floor(16777214*Math.random())+1;this._colorToUID.has(ne)||(A=ne)}if(A>16777215)throw new Error("Object ID Overflow");x.set(_.graphicUid,A),this._colorToUID.set(A,_)}const U=new ArrayBuffer(4);return new DataView(U).setUint32(0,A,!1),new of.mc(U)}getColorToObjectAndLayerIdMapping(){const _=new Map;for(const[T,x]of this._colorToUID.entries()){const A=this._layerUidToGraphicsUidToObjectId.get(x.layerUid);let U=null;A?(U=A.get(x.graphicUid),U||Us.Z.getLogger(this.declaredClass).warn("getColorMapping: no entry found for graphicsId "+x.graphicUid)):Us.Z.getLogger(this.declaredClass).warn("getColorMapping: no entry found for layerUid "+x.layerUid);const ne=this._layerUidToId.get(x.layerUid);ne||Us.Z.getLogger(this.declaredClass).warn("no layerId found for uid "+x.layerUid),U&&ne&&_.set(T,U.attributeNodeId?{type:"object-and-layer-and-i3s-id",oid:U.objectId,lid:ne,attrId:U.attributeNodeId,attrIdx:U.attributeIndex,subLayerId:U.subLayerId}:{type:"object-and-layer-id",oid:U.objectId,lid:ne})}return _}}const JI=(0,mi.HA)(1e3),SG=(0,mi.HA)(1e3/30);var fy;!function(d){d[d.FrontToBack=0]="FrontToBack",d[d.BackToFront=1]="BackToFront"}(fy||(fy={}));class tp{constructor(_,T,x=fy.FrontToBack){this._rctx=_,this._techniqueRepository=T,this._sorting=x,this._draws=new wo.Z({initialSize:32,allocator:A=>A||{material:null,geometry:null,geometryRanges:null,bindDrawParams:null,depthSquaredHint:0,indexType:0}}),this._previouslyBoundDraw=new Map}submitDraw(_,T,x,A){const U=this._draws.pushNew();U.geometry=T,U.geometryRanges=x,U.material=_,U.depthSquaredHint=A,U.indexType=T.indexed?(0,Qe.Wg)(T.vao.indexBuffer).indexType:0}dispatch(_,T){const x=this._rctx;this._previouslyBoundDraw.clear();let A=null;const U=this._draws.map(fe=>fe.material.prepareTechnique(this._techniqueRepository,_,T,fe.geometry.parameters)),ne=this._draws.length;for(let fe=0;fe{const A=_*(T.depthSquaredHint-x.depthSquaredHint);return 0!==A?A:T.geometry.vao.size-x.geometry.vao.size})}get count(){return this._draws.length}}const nb=new Map;nb.set(xt.g.UNSIGNED_BYTE,1),nb.set(xt.g.UNSIGNED_SHORT,2),nb.set(xt.g.UNSIGNED_INT,4);class AG{constructor(_,T){this.rctx=_,this.shaderTechniqueRepository=T,this.canRender=!0,this._materialPassParameters=new Un.SP,this._shadowPassParameters=new Un.kF,this._highlightPassParameters=new Un.T5,this._systems=new Set,this._passes={materialOpaque:new tp(_,T),materialTransparent:new tp(_,T,fy.BackToFront),materialIntegratedMesh:new tp(_,T),shadowMap:new tp(_,T),highlight:new tp(_,T),highlightIntegratedMesh:new tp(_,T),highlightShadowMap:new tp(_,T),defaultShadowMap:new tp(_,T)}}register(_){this._systems.add(_)}prepareRender(_){if(0!==this._systems.size){for(const T of Object.values(this._passes))T.prepareSubmit();this._systems.forEach(T=>T.submit(this._passes,_.bindParameters));for(const T of Object.values(this._passes))T.finishSubmit();this.shaderTechniqueRepository.frameUpdate()}}render(_){if(0!==this._systems.size)switch(this._configure(_),_.bindParameters.slot){case Mi.r.OPAQUE_MATERIAL:switch(_.output){case Xs.H.Color:return this._materialPassParameters.subPass=Un.zp.Color,this._passes.materialOpaque.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Depth:return this._materialPassParameters.subPass=Un.zp.Depth,this._passes.materialOpaque.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Normal:return this._materialPassParameters.subPass=Un.zp.Normal,this._passes.materialOpaque.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Highlight:return this._passes.highlight.dispatch(this._highlightPassParameters,_.bindParameters);case Xs.H.Shadow:return this._passes.shadowMap.dispatch(this._shadowPassParameters,_.bindParameters);case Xs.H.ShadowHighlight:return this._passes.highlightShadowMap.dispatch(this._shadowPassParameters,_.bindParameters);case Xs.H.ShadowExludeHighlight:return this._passes.defaultShadowMap.dispatch(this._shadowPassParameters,_.bindParameters);case Xs.H.ObjectAndLayerIdColor:return this._materialPassParameters.subPass=Un.zp.ObjectAndLayerIdColor,this._passes.materialOpaque.dispatch(this._materialPassParameters,_.bindParameters)}return;case Mi.r.TRANSPARENT_MATERIAL:switch(_.output){case Xs.H.Color:return this._materialPassParameters.subPass=Un.zp.Color,this._passes.materialTransparent.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Alpha:return this._materialPassParameters.subPass=Un.zp.Alpha,this._passes.materialTransparent.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Depth:return this._materialPassParameters.subPass=Un.zp.Depth,this._passes.materialTransparent.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Normal:return this._materialPassParameters.subPass=Un.zp.Normal,this._passes.materialTransparent.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.ObjectAndLayerIdColor:return this._materialPassParameters.subPass=Un.zp.ObjectAndLayerIdColor,this._passes.materialTransparent.dispatch(this._materialPassParameters,_.bindParameters)}return;case Mi.r.INTEGRATED_MESH:switch(_.output){case Xs.H.Color:return this._materialPassParameters.subPass=Un.zp.Color,this._passes.materialIntegratedMesh.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Depth:return this._materialPassParameters.subPass=Un.zp.Depth,this._passes.materialIntegratedMesh.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Normal:return this._materialPassParameters.subPass=Un.zp.Normal,this._passes.materialIntegratedMesh.dispatch(this._materialPassParameters,_.bindParameters);case Xs.H.Highlight:return this._passes.highlightIntegratedMesh.dispatch(this._highlightPassParameters,_.bindParameters);case Xs.H.ObjectAndLayerIdColor:return this._materialPassParameters.subPass=Un.zp.ObjectAndLayerIdColor,this._passes.materialIntegratedMesh.dispatch(this._materialPassParameters,_.bindParameters)}return}}notifyDirty(){this._context.requestRender()}slots(){return[Mi.r.OPAQUE_MATERIAL,Mi.r.TRANSPARENT_MATERIAL,Mi.r.INTEGRATED_MESH]}initializeRenderContext(_){this._context=_}uninitializeRenderContext(){}queryDepthRange(_){const T={near:1/0,far:-1/0};return this._systems.forEach(x=>{const A=x.queryShadowCasterDepthRange(_);(0,Qe.pC)(A)&&gf(T,A,T)}),T}_configure(_){this._updateParameters(_,_.output===Xs.H.Shadow||_.output===Xs.H.ShadowHighlight||_.output===Xs.H.ShadowExludeHighlight?this._shadowPassParameters:_.output===Xs.H.Highlight?this._highlightPassParameters:this._materialPassParameters)}_updateParameters(_,T){const x=_.bindParameters.camera,A=x.viewInverseTransposeMatrix;(0,pt.s)(YO,A[3],A[7],A[11]),XO.set(YO),(0,pt.c)(T.transformWorldFromViewTH,XO.high),(0,pt.c)(T.transformWorldFromViewTL,XO.low),(0,pt.c)(T.slicePlaneLocalOrigin,YO),(0,Co.f)(T.transformViewFromCameraRelativeRS,x.viewMatrix),(0,gi.c)(T.transformProjFromView,x.projectionMatrix),T.identifier===Un.o9.Material&&(this._materialPassParameters.transparent=_.bindParameters.slot===Mi.r.TRANSPARENT_MATERIAL,this._materialPassParameters.integratedMesh=_.bindParameters.slot===Mi.r.INTEGRATED_MESH,(0,Co.t)(QI,T.transformViewFromCameraRelativeRS),(0,Co.e)(T.transformNormalViewFromGlobal,QI))}get needsHighlight(){return this._passes.highlight.count>0||this._passes.highlightIntegratedMesh.count>0}get needsTransparentPass(){return this._passes.materialTransparent.count>0}}const YO=(0,ir.c)(),QI=(0,xd.c)(),XO=new kE;var Zd=v(42309),RG=v(98565),wG=v(17923);class ob extends so.A{initializeProgram(_){return new Gn.$(_.rctx,ob.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE_MINUS_SRC_ALPHA),colorWrite:Ds.BK})}}ob.shader=new ro.J(wG.H,()=>v.e(5265).then(v.bind(v,5265)));var qI=v(47482);class ab extends so.A{initializeProgram(_){return new Gn.$(_.rctx,ab.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({colorWrite:Ds.BK})}}ab.shader=new ro.J(qI.a,()=>v.e(2337).then(v.bind(v,52337)));var eL=v(36227);class lb extends so.A{initializeProgram(_){return new Gn.$(_.rctx,lb.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({colorWrite:Ds.BK})}}lb.shader=new ro.J(eL.a,()=>v.e(4496).then(v.bind(v,14496)));class tL extends lu.K{constructor(){super(...arguments),this.color=(0,Zh.f)(1,0,1,1),this.haloColor=(0,Zh.f)(1,0,1,1),this.haloOpacity=1,this.haloOpacityOccluded=.25,this.fillOpacity=.2,this.fillOpacityOccluded=.05,this.shadowColor=(0,Tn.f)(1,0,1,1),this.shadowOpacity=.15,this.occludedShadowOpacity=.075}}class LG{constructor(_,T){this._techniqueRep=_,this._rctx=T,this._viewportToRestore=(0,Tn.c)(),this._passParameters=new tL,this._downsampleDrawParameters=new eL.H,this._blurDrawParameters=new qI.H,this._grid={coverageMipmap:null,vao:null,verticalCellCount:0,horizontalCellCount:0,cellPixelSize:0,mipmapLevels:0,viewportWidth:0,viewportHeight:0}}_assertResources(){if(this._quadVAO)return;this._quadVAO=(0,_a.ow)(this._rctx);const _={colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.NONE,width:0,height:0},T={target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.LINEAR,wrapMode:xt.e8.CLAMP_TO_EDGE,width:0,height:0};this._blur0Fbo=new Aa.X(this._rctx,_,T),this._blur1Fbo=new Aa.X(this._rctx,_,T),this._blurTechnique=this._techniqueRep.acquire(ab),this._downsampleTechnique=this._techniqueRep.acquire(lb),this._applyTechnique=this._techniqueRep.acquire(ob)}dispose(){if(this._blurTechnique=(0,Qe.RY)(this._blurTechnique),this._downsampleTechnique=(0,Qe.RY)(this._downsampleTechnique),this._applyTechnique=(0,Qe.RY)(this._applyTechnique),this._grid.coverageMipmap)for(let _=1;__.dispose()),this._depthBuffers.clear(),this._depthTextures.forEach(_=>_.dispose()),this._depthTextures.clear(),this._colorTextures.forEach(_=>_.dispose()),this._colorTextures.clear(),this._framebuffers.forEach(_=>_.dispose()),this._framebuffers.clear(),this._activeTargets.clear()}disposeTargetResource(_){const T=_.id;this._activeTargets.has(T)&&(this._activeTargets.delete(T),this._disposeWithFramebuffers(this._depthTextures,T),this._disposeWithFramebuffers(this._depthBuffers,T),this._disposeWithFramebuffers(this._colorTextures,T))}_disposeWithFramebuffers(_,T){const x=_.get(T);x&&(this._framebuffers.forEach((A,U)=>{A.colorAttachment!==x&&A.depthStencilAttachment!==x||(A.detachAll(),A.dispose(),this._framebuffers.delete(U))}),x.dispose(),_.delete(T))}getDepthTexture(_,T){if(!this.depthTextureSupported)return null;let x=this._depthTextures.get(_.id);return!x||x.descriptor.width===T.width&&x.descriptor.height===T.height||(x.dispose(),x=(0,Qe.wN)()),x||(x=new Ro.x(this._rctx,{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.DEPTH_STENCIL,dataType:xt.Br.UNSIGNED_INT_24_8,samplingMode:xt.cw.NEAREST,wrapMode:xt.e8.CLAMP_TO_EDGE,width:T.width,height:T.height}),this._depthTextures.set(_.id,x),this._activeTargets.add(_.id)),x}getAllocatedDepthTexture(_){return this._depthTextures.get(_.id)}getDepthBuffer(_,T){if(this.depthTextureSupported)return null;let x=this._depthBuffers.get(_.id);return x?x.descriptor.width===T.width&&x.descriptor.height===T.height||x.resize(T.width,T.height):(x=new UG.r(this._rctx,{internalFormat:xt.Tg.DEPTH_STENCIL,...T}),this._depthBuffers.set(_.id,x),this._activeTargets.add(_.id)),x}getColorTexture(_,T){let x=this._colorTextures.get(_.id);return x&&(x.descriptor.width===T.width&&x.descriptor.height===T.height||(x.dispose(),x=(0,Qe.wN)())),x||(x=new Ro.x(this._rctx,{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,internalFormat:_.internalFormat,dataType:_.dataType,samplingMode:null!=_.samplingMode?_.samplingMode:xt.cw.LINEAR,wrapMode:xt.e8.CLAMP_TO_EDGE,width:T.width,height:T.height}),this._colorTextures.set(_.id,x),this._activeTargets.add(_.id)),x}getAllocatedColorTexture(_){return this._colorTextures.get(_.id)}registerDepthTarget(_={}){return{id:(0,dE.D)(),...jG,..._}}registerColorTarget(_={}){return{id:(0,dE.D)(),...BG,..._}}getFramebuffer(_,T,x){const A=this._getKey(T,x);let U=this._framebuffers.get(A);const ne=this.getColorTexture(T,_);if(this.depthTextureSupported){const Oe=x?this.getDepthTexture(x,_):void 0;return U?((U.width!==_.width||U.height!==_.height||U.colorTexture!==ne||U.depthStencilTexture!==Oe)&&(U.detachAll(),U.resize(_.width,_.height),U.attachColorTexture(ne),U.attachDepthStencilTexture(Oe)),U):(U=(0,Qe.pC)(x)?new Aa.X(this._rctx,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.DEPTH_STENCIL_TEXTURE},ne,Oe):new Aa.X(this._rctx,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.NONE},ne),this._framebuffers.set(A,U),U)}const fe=x?this.getDepthBuffer(x,_):void 0;return U?((U.width!==_.width||U.height!==_.height||U.colorTexture!==ne)&&(U.detachAll(),U.resize(_.width,_.height),U.attachColorTexture(ne),U.attachDepthStencilBuffer(fe)),U):(U=new Aa.X(this._rctx,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:x?xt.OU.DEPTH_STENCIL_RENDER_BUFFER:xt.OU.NONE},ne,fe),this._framebuffers.set(A,U),U)}_getKey(_,T){return`${_.id}_${T?T.id:"X"}_${_.name}${T?"_"+T.name:""}`}get gpuMemoryUsage(){let _=0;const T=new Set,x=A=>{T.has(A)||(T.add(A),_+=(0,No.un)(A))};return this._depthTextures.forEach(x),this._colorTextures.forEach(x),this._depthBuffers.forEach(x),_}}class NG{constructor(_,T){this._rctx=_,this._compositingHelper=T,this._mainColorTarget=0,this._dimensions={width:4,height:4},this._background={type:"color",color:[0,0,0,1]};const x=_.type===cl.zO.WEBGL2;this._renderTargetHelper=new FG(_);const A=this._renderTargetHelper;this._mainColorTargets=[A.registerColorTarget({name:"mainColorTarget0"}),A.registerColorTarget({name:"mainColorTarget1"})],this.frontFaceTarget=A.registerColorTarget({name:"frontFaceTarget"});const U=ne=>A.registerColorTarget({name:ne,dataType:xt.Br.FLOAT,internalFormat:x?xt.lP.RGBA32F:xt.VI.RGBA,samplingMode:xt.cw.NEAREST});this.colorFloatTarget=U("colorFloatTarget"),this.alphaFloatTarget=U("alphaFloatTarget"),this.mainDepth=A.registerDepthTarget({name:"mainDepth"}),this.linearDepth=A.registerColorTarget({name:"linearDepth",samplingMode:xt.cw.NEAREST}),this.terrainLinearDepth=A.registerColorTarget({name:"terrainLinearDepth"}),this.geometryLinearDepth=A.registerColorTarget({name:"geometryLinearDepth"}),this.normal=A.registerColorTarget({name:"normal"}),this.highlight=A.registerColorTarget({name:"highlight",internalFormat:x?xt.lP.RGBA4:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_SHORT_4_4_4_4}),this.hudVisibility=A.registerColorTarget({name:"hudVisibility",internalFormat:x?xt.lP.RGBA4:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_SHORT_4_4_4_4}),this.tmpColor=A.registerColorTarget({name:"tmpColor"}),this.tmpDepth=A.registerDepthTarget({name:"tmpDepth"}),this.hudColor=A.registerColorTarget({name:"hudColor"})}dispose(){this._renderTargetHelper.dispose()}get width(){return this._dimensions.width}get height(){return this._dimensions.height}set background(_){this._background=_}get background(){return this._background}get currentColorTarget(){return this._mainColorTargets[this._mainColorTarget]}get previousColorTarget(){return this._mainColorTargets[1-this._mainColorTarget]}get framebuffer(){return this.getFramebuffer(this.currentColorTarget,this.mainDepth)}getFramebuffer(_,T){return this._renderTargetHelper.getFramebuffer(this._dimensions,_,T)}get colorTexture(){return this._renderTargetHelper.getAllocatedColorTexture(this.currentColorTarget)}get depthTexture(){return this._renderTargetHelper.getAllocatedDepthTexture(this.mainDepth)}get linearDepthTexture(){return this._renderTargetHelper.getAllocatedColorTexture(this.linearDepth)}get terrainLinearDepthTexture(){return this._renderTargetHelper.getAllocatedColorTexture(this.terrainLinearDepth)}get geometryLinearDepthTexture(){return this._renderTargetHelper.getAllocatedColorTexture(this.geometryLinearDepth)}get lastFrameColorTexture(){return this._renderTargetHelper.getAllocatedColorTexture(this.previousColorTarget)}get normalTexture(){return this._renderTargetHelper.getAllocatedColorTexture(this.normal)}get highlightTexture(){return this._renderTargetHelper.getAllocatedColorTexture(this.highlight)}get hudVisibilityTexture(){return this._getColorTexture(this.hudVisibility)}get tmpColorTexture(){return this._getColorTexture(this.tmpColor)}get hudColorTexture(){return this._getColorTexture(this.hudColor)}get mainColorTexture(){return this._getColorTexture(this.currentColorTarget)}setupRenderTarget(_){_||(this._mainColorTarget=0,this.disposeTarget(this._mainColorTargets[1])),this._mainColorTarget=0===this._mainColorTarget&&_?1:0}initializeFrame(_){const T=this._rctx;this._dimensions.width=_.fullWidth,this._dimensions.height=_.fullHeight,this.bindTarget(this.currentColorTarget,this.mainDepth),T.setClearStencil(0);const x=this._background.color;T.setClearColor(x[0]*x[3],x[1]*x[3],x[2]*x[3],x[3]),T.clearSafe(xt.lk.COLOR_BUFFER_BIT|xt.lk.DEPTH_BUFFER_BIT|xt.lk.STENCIL_BUFFER_BIT)}composite(_){(0,Qe.pC)(this.colorTexture)&&this._compositingHelper.composite(_,this.colorTexture,Ya.None)}renderTmpAndCompositeToMain(_,T,x,A=!1){this.renderToTargets(_,this.tmpColor,A?this.tmpDepth:this.mainDepth,WG),this._compositingHelper.composite(T,this._getColorTexture(this.tmpColor),x)}renderHUDVisibility(_,T=!1){this.renderToTargets(_,this.hudVisibility,T?this.tmpDepth:this.mainDepth,VG)}compositeTransparentTerrainOntoHUDVisibility(_){this.renderToTargets(()=>this._compositingHelper.compositeHUD(_,this._getColorTexture(this.tmpColor)),this.hudVisibility,this.tmpDepth)}renderOITPass(_,T,x){let A,U;switch(T){case Zc.A.Color:A=this.colorFloatTarget,U=[0,0,0,0];break;case Zc.A.Alpha:A=this.alphaFloatTarget,U=[1,1,1,1];break;case Zc.A.FrontFace:A=this.frontFaceTarget,U=[0,0,0,0]}x?this.renderToTargets(_,A,this.tmpDepth,U,!0,!0):this.renderToTargets(_,A,this.mainDepth,U,!1)}compositeTransparentTerrainOntoMain(_){this.bindFramebuffer(),this._compositingHelper.composite(_,this._getColorTexture(this.tmpColor),Ya.PremultipliedAlpha)}compositeOccludedOntoMain(_,T){this.bindFramebuffer(),this._compositingHelper.composite(_,this._getColorTexture(this.tmpColor),Ya.PremultipliedAlpha,T)}compositeTransparentOntoOpaque(_,T){T?(this.bindTarget(this.hudColor,this.tmpDepth),this._rctx.setClearColor(0,0,0,1e-13),this._rctx.clearSafe(xt.lk.COLOR_BUFFER_BIT)):this.bindFramebuffer(),this._compositingHelper.compositeOIT(_,this._getColorTexture(this.colorFloatTarget),this._getColorTexture(this.alphaFloatTarget),this._getColorTexture(this.frontFaceTarget))}bindFramebuffer(){this._rctx.bindFramebuffer(this.framebuffer)}renderDepthDetached(_){this.bindTarget(this.currentColorTarget),_(),this.bindTarget(this.currentColorTarget,this.mainDepth)}disposeTarget(_){this._renderTargetHelper.disposeTargetResource(_)}renderToFBO(_,T,x=!1,A=!1){const U=this._rctx;let ne=0;if(T){const Oe=Math.max(1e-13,T[3]);U.setClearColor(T[0],T[1],T[2],Oe),ne|=xt.lk.COLOR_BUFFER_BIT}x&&(ne|=xt.lk.DEPTH_BUFFER_BIT),!1===A?A=0:(!0===A&&(A=255),ne|=xt.lk.STENCIL_BUFFER_BIT),ne&&U.clearSafe(ne,A),_(),U.gl.flush(),this.bindTarget(this.currentColorTarget,this.mainDepth)}renderToTargets(_,T,x,A,U=!1,ne=!1){const fe=this.bindTarget(T,x);return this.renderToFBO(_,A,U,ne),fe}bindTarget(_,T){const x=this._renderTargetHelper.getFramebuffer(this._dimensions,_,T);return this._rctx.bindFramebuffer(x),x}_getColorTexture(_){return this._renderTargetHelper.getColorTexture(_,this._dimensions)}get gpuMemoryUsage(){let _=0;return this._renderTargetHelper&&(_+=this._renderTargetHelper.gpuMemoryUsage),_}}const WG=[0,0,0,0],VG=[0,1,0,1];var zG=v(64624),HG=v(83196);class GG{constructor(_){this._context=_,this._renderPlugins=new wo.Z,this._slots=[];for(let T=0;T{if(x?.aborted)throw T.uninitializeRenderContext(),(0,ws.zE)();this._renderPlugins.push(T);for(const ne of _)this._slots[ne].push(T);this._context.requestRender()},U=T.initializeRenderContext(this._context,x);if((0,ws.y8)(U))return U.then(A);A()}remove(_){if(null!=this._renderPlugins.removeUnordered(_)){for(let T=0;Tx!==_);_.uninitializeRenderContext(),this._context.requestRender()}}prepareRender(){this._renderPlugins.forAll(_=>{_.prepareRender&&_.prepareRender(this._context.renderContext)})}updateAnimation(_){let T=!1;return this._renderPlugins.forAll(x=>{x.updateAnimation&&(T=x.updateAnimation(_)||T)}),T}render(){const _=this._slots[this._context.renderContext.bindParameters.slot],T=new Array;_.filter(x=>{if(!x.canRender)return!1;if(function KG(d){return"prepareTechnique"in d}(x)){const A=x.prepareTechnique(this._context.renderContext);return!!A&&(T.push(A),!0)}return T.push(null),!0}).forEach((x,A)=>x.render(this._context.renderContext,T[A]))}queryDepthRange(_){const T=ZG;return T.near=1/0,T.far=-1/0,this._renderPlugins.forAll(x=>{if(x.queryDepthRange){const A=x.queryDepthRange(_);A&&gf(T,A,T)}}),T}get needsTransparentPass(){return this._renderPlugins.some(_=>_.needsTransparentPass)}get needsHighlight(){return this._renderPlugins.some(_=>_.needsHighlight)}get needsLinearDepth(){return this._renderPlugins.some(_=>_.needsLinearDepth)}get needsLaserlineWithContrastControl(){const _=this._slots[Mi.r.LASERLINES_CONTRAST_CONTROL];return!!_&&_.length>0}get renderOccludedFlags(){return this._renderPlugins.reduce((_,T)=>_|T.renderOccludedFlags,0)}}const ZG={near:0,far:0};var $G=v(82148);class cb extends so.A{constructor(_,T){super(_,T,()=>this.destroy())}initializeProgram(_){return new Gn.$(_.rctx,cb.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)({blending:yf.wu,colorWrite:Ds.BK,depthTest:null,depthWrite:null})}get primitiveType(){return xt.MX.TRIANGLE_STRIP}}cb.shader=new ro.J($G.S,()=>v.e(5915).then(v.bind(v,45915)));var rL=v(69828);const YG=(0,Tn.f)(.01,0,.25,1),sL=1/512;let ub=class extends Ns.Z{constructor(d,_,T,x){super({}),this._techniqueRepository=d,this._rctx=_,this._shadowAccumulator=T,this._requestRender=x,this._passParameters={shadowCastMap:this._shadowCastTexture,sampleScale:0,color:YG,threshold:.5,bandSize:.1,opacityFromElevation:1,__tagStrict:"NoParameters"},this._techniqueConfig=new rL.l,this._enabled=!1,this._vao=(0,_a.ow)(_),this._techniqueConfig.visualization=rL.w.Gradient}normalizeCtorArgs(){return{}}dispose(){this._stop(),this._vao=(0,Qe.M2)(this._vao),this._techniqueRepository.release(this._technique),this._technique=null,this._shadowAccumulator=null}get _visualizeShadowCastTechnique(){return this._technique=this._techniqueRepository.releaseAndAcquire(cb,this._techniqueConfig,this._technique),this._technique}render(d){if(!this._isRenderingVisualization)return;this._passParameters.sampleScale=1/this._computedSamples;const _=this._visualizeShadowCastTechnique;this._rctx.bindVAO(this._vao),this._rctx.bindTechnique(_,this._passParameters,d),this._rctx.drawArrays(_.primitiveType,0,(0,No._V)(this._vao,"geometry"))}setOptions(d){void 0!==d.enabled&&this._setEnabled(d.enabled),void 0!==d.color&&this._setColor(d.color),void 0!==d.threshold&&(this._threshold=d.threshold),void 0!==d.visualization&&(this._visualization=d.visualization),void 0!==d.bandSize&&(this._bandSize=d.bandSize),void 0!==d.bandsEnabled&&(this._bandsEnabled=d.bandsEnabled)}get opacityFromElevation(){return this._passParameters.opacityFromElevation}set opacityFromElevation(d){this._passParameters.opacityFromElevation!==d&&(this._passParameters.opacityFromElevation=d,this.notifyChange("opacityFromElevation"))}get _isRenderingVisualization(){return this._enabled&&this._computedSamples>0&&this.opacityFromElevation>sL}get _computedSamples(){return this._shadowAccumulator.computedSamples}get _shadowCastTexture(){return this._shadowAccumulator.shadowCastTexture}get _threshold(){return this._passParameters.threshold}set _threshold(d){this._threshold!==d&&(this._passParameters.threshold=d,this._requestRenderIfRunning())}get _visualization(){return this._techniqueConfig.visualization}set _visualization(d){d!==this._visualization&&(this._techniqueConfig.visualization=d,this._techniqueRepository.release(this._technique),this._technique=null,this._requestRenderIfRunning())}get _bandSize(){return this._passParameters.bandSize}set _bandSize(d){d!==this._bandSize&&(this._passParameters.bandSize=d,this._requestRenderIfRunning())}get _bandsEnabled(){return this._techniqueConfig.bandsEnabled}set _bandsEnabled(d){d!==this._bandsEnabled&&(this._techniqueConfig.bandsEnabled=d,this._techniqueRepository.release(this._technique),this._technique=null,this._requestRenderIfRunning())}_setColor(d){(0,Qo.g)(d,this._passParameters.color)||((0,Qo.c)(this._passParameters.color,d),this._requestRenderIfRunning())}_setEnabled(d){d!==this._enabled&&(d?this._start():this._stop())}_requestRenderIfRunning(){this._enabled&&this._requestRender()}_start(){this._enabled=!0,this._requestRender()}_stop(){this._enabled=!1,this._requestRender()}};(0,Ve._)([(0,ke.Cb)()],ub.prototype,"opacityFromElevation",null),ub=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.ShadowCastRenderer")],ub);var my,db=v(53319),kO=v(94195);class hb extends pi.m{constructor(){super(...arguments),this.receiveShadows=!0,this.hasWebGL2Context=!1}}(0,Ve._)([(0,pi.o)()],hb.prototype,"receiveShadows",void 0),(0,Ve._)([(0,pi.o)()],hb.prototype,"hasWebGL2Context",void 0);class pb extends so.A{constructor(_){super(_,new hb,()=>this.destroy())}initializeConfiguration(_,T){T.hasWebGL2Context=_.rctx.type===cl.zO.WEBGL2}initializeProgram(_){return new Gn.$(_.rctx,pb.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.wK)(xt.zi.ONE,xt.zi.ONE,xt.zi.ONE,xt.zi.ONE),colorWrite:Ds.BK,depthTest:null,depthWrite:null})}get primitiveType(){return xt.MX.TRIANGLE_STRIP}}pb.shader=new ro.J(kO.a,()=>v.e(8897).then(v.bind(v,58897)));let Xa=my=class extends Ns.Z{constructor(d,_,T,x,A,U){super({}),this._rctx=d,this._stage=T,this._prepareForShadowMapPass=x,this._renderToShadowMap=A,this._requestRender=U,this._progress=0,this._sampleCount=0,this._passParameters=new kO.S,this._enabledInternal=!1,this._cachedLightDirections=[],this._depthRange=BO,this._previewingCached=!1,this._handles=new Ji.Z,this._cameraForcedForScreenshot=!1,this._bindParameters=new hP.p(new db.l(d,T.viewingMode),null,null),this._bindParameters.shadowMap.enabled=!0,this._bindParameters.camera=new $i.V,this._vao=(0,_a.ow)(d),this._fbo=new Aa.X(d,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.NONE,width:0,height:0},{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.LINEAR,wrapMode:xt.e8.CLAMP_TO_EDGE,width:0,height:0}),this._accumulationRenderer=new ub(_,d,this,U),this._handles.add(this._stage.resourceController.scheduler.registerTask(Fn.T8.SHADOW_ACCUMULATOR,this)),this._handles.add((0,Ht.YP)(()=>T.renderView,we=>{this._handles.remove(my.renderViewHandleKey),(0,Qe.Wi)(we)||this._handles.add(we.events.on("force-camera-for-screenshot",()=>this._cameraForcedForScreenshot=!0),my.renderViewHandleKey)},Ht.tX))}normalizeCtorArgs(){return{}}get computedSamples(){return this._progress}get shadowCastTexture(){return this._fbo.colorTexture}get isAccumulating(){return this._isPreviewing||this._isRefining}get _accumulationTechnique(){return(0,Qe.Wi)(this._accumulationTechniqueCached)&&(this._accumulationTechniqueCached=new pb({rctx:this._rctx,viewingMode:this._stage.viewingMode})),this._accumulationTechniqueCached}get _isRefining(){return this._isActive&&!this._isDoneAccumulating&&!this._previewingCached}get _isPreviewing(){return this._isActive&&this._previewingCached}get _isActive(){return this._enabledInternal&&this._sampleCount>0}get canAccumulate(){return null!==this._passParameters.linearDepthTexture&&this._depthRange!==BO&&this._opacityFromElevation>sL}get _isDoneAccumulating(){return this._progress>=this._sampleCount}get _lightDirectionsInternal(){return this._cachedLightDirections}set _lightDirectionsInternal(d){const _=this._cachedLightDirections;if((0,pd.fS)(_,d,pt.F))return;const T=d.length;_.length=T,this._sampleCount=Math.min(kO.s,T);for(let x=0;x0}runTask(d){for(this._prepareForShadowMapPass(this._bindParameters);!d.done&&!this._isDoneAccumulating;)this._accumulateShadow(),d.madeProgress();this._requestRender()}renderAccumulation(d,_,T,x){if(this._passParameters.linearDepthTexture=d,this._depthRange=_,this._updateCamera(T),this._bindParameters.contentCamera=x,this.notifyChange("canAccumulate"),!this.isAccumulating||!this.canAccumulate)return;(this._previewingCached||0===this._progress||this._cameraForcedForScreenshot)&&this._clear();const A=this._cameraForcedForScreenshot?this._sampleCount:Math.min(my.previewSamples,this._sampleCount-this._progress);for(let U=0;Uthis._fbo.width||_<0||_>this._fbo.height)return 0;const T=JG;return this._fbo.readPixels(d,_,1,1,xt.VI.RGBA,xt.Br.UNSIGNED_BYTE,T),T[0]/this._progress}_start(){this._progress=0,this._enabledInternal=!0}_stop(){this._enabledInternal=!1}_invalidate(){this._progress=0,this._requestRenderIfEnabled()}_clear(){this._rctx.bindFramebuffer(this._fbo),this._rctx.setClearColor(0,0,0,0),this._rctx.clearSafe(xt.lk.COLOR_BUFFER_BIT),this._progress=0}_accumulateShadow(){this._renderToShadowMap(this._bindParameters,this._lightDirectionsInternal[this._progress],this._depthRange),this._passParameters.origin=this._bindParameters.camera.center,this._rctx.bindFramebuffer(this._fbo);const _=this._accumulationTechnique;this._rctx.bindTechnique(_,this._passParameters,this._bindParameters),this._rctx.bindVAO(this._vao),this._rctx.drawArrays(_.primitiveType,0,(0,No._V)(this._vao,"geometry")),this._progress++}_updateCamera(d){d.equals(this._bindParameters.camera)||(this._bindParameters.camera.copyFrom(d),this._fbo.resize(d.fullWidth,d.fullHeight),this._opacityFromElevation=1-(0,xr.CW)(4e4,5e4,d.relativeElevation))}set _enabled(d){d!==this._enabledInternal&&(d?this._start():this._stop())}_requestRenderIfEnabled(){this._enabledInternal&&this._requestRender()}get test(){const d=this;return{lightDirections:this._lightDirectionsInternal,get isDone(){return d._isDoneAccumulating},get isActive(){return d._isActive}}}};Xa.previewSamples=6,Xa.renderViewHandleKey="renderView",(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_progress",void 0),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_sampleCount",void 0),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_enabledInternal",void 0),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_depthRange",void 0),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_previewingCached",void 0),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_accumulationRenderer",void 0),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_isRefining",null),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_isActive",null),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"canAccumulate",null),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_isDoneAccumulating",null),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"_opacityFromElevation",null),(0,Ve._)([(0,ke.Cb)()],Xa.prototype,"running",null),Xa=my=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.ShadowAccumulator")],Xa);const JG=new Uint8Array(4);var QG=v(72968),qG=v(19263);class eK extends lu.K{constructor(){super(...arguments),this.shadowColor=(0,Tn.f)(1,0,1,1),this.shadowOpacity=.2,this.occludedShadowOpacity=.1,this.opacityElevation=1,this.dayNightTerminator=1}}class _b extends so.A{constructor(_){super(_,new hb,()=>this.destroy())}initializeConfiguration(_,T){T.hasWebGL2Context=_.rctx.type===cl.zO.WEBGL2}initializeProgram(_){return new Gn.$(_.rctx,_b.shader.get().build(this.configuration),io.i)}initializePipeline(){return(0,Ds.sm)({blending:(0,Ds.wK)(xt.zi.SRC_ALPHA,xt.zi.ONE,xt.zi.ONE_MINUS_SRC_ALPHA,xt.zi.ONE_MINUS_SRC_ALPHA),colorWrite:Ds.BK,depthTest:null,depthWrite:null})}get primitiveType(){return xt.MX.TRIANGLE_STRIP}}_b.shader=new ro.J(qG.S,()=>v.e(5147).then(v.bind(v,95147)));class iK{constructor(_,T){this._rctx=_,this._viewingMode=T,this._maxOpacity=1,this._passParameters=new eK,this._drawParameters=new QG.ry,this._vao=(0,_a.ow)(this._rctx)}get _technique(){return(0,Qe.Wi)(this._techniqueCached)&&(this._techniqueCached=new _b({rctx:this._rctx,viewingMode:this._viewingMode})),this._techniqueCached}render(_,T){if(!_.shadowMap.enabled||!_.linearDepthTexture||!this.isVisible)return;const x=this._technique;this._drawParameters.origin=_.camera.center,this._rctx.bindFramebuffer(T),this._rctx.bindTechnique(x,this._passParameters,_).bindDraw(this._drawParameters,_,this._passParameters),this._rctx.bindVAO(this._vao),this._rctx.drawArrays(x.primitiveType,0,(0,No._V)(this._vao,"geometry"))}get gpuMemoryUsage(){return this._vao?.size??0}setDefaultOptions(_){this._passParameters={...this._passParameters,..._},this._updateMaxOpacity()}updateParameters(_,T){this._passParameters.opacityElevation=1-(0,xr.CW)(4e4,5e4,_.relativeElevation);const x=this._viewingMode===vi.JY.Global?(0,pt.n)(iL,_.center):(0,pt.s)(iL,0,0,1),A=(0,pt.e)(x,T);this._passParameters.dayNightTerminator=(0,xr.CW)(0,1,(0,xr.uZ)(30*A,0,1))}dispose(){this._vao=(0,Qe.M2)(this._vao),this._techniqueCached=(0,Qe.RY)(this._techniqueCached)}get isVisible(){const{opacityElevation:_,dayNightTerminator:T}=this._passParameters;return this._maxOpacity*_*T>=.001953125}_updateMaxOpacity(){const _=Math.max(this._passParameters.shadowOpacity,this._passParameters.occludedShadowOpacity);this._maxOpacity=_*this._passParameters.shadowColor[3]}}const iL=(0,ir.c)(),nL=(0,nu.a)();class nK{constructor(){this._plane=(0,nu.a)()}get isEnabled(){return!(0,nu.d)(this.plane,nL)}get plane(){return this._plane}set plane(_){(0,nu.c)(_||nL,this._plane)}}var oK=v(64949);class fb extends so.A{initializeProgram(_){return new Gn.$(_.rctx,fb.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({colorWrite:Ds.BK})}}fb.shader=new ro.J(oK.B,()=>v.e(4165).then(v.bind(v,85645)));var aK=v(39274);class mb extends so.A{initializeProgram(_){return new Gn.$(_.rctx,mb.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({colorWrite:Ds.BK})}}mb.shader=new ro.J(aK.B,()=>v.e(5068).then(v.bind(v,5068)));var lK=v(82488);class gb extends so.A{initializeProgram(_){return new Gn.$(_.rctx,gb.shader.get().build(),io.i)}initializePipeline(){return(0,Ds.sm)({colorWrite:Ds.BK})}}gb.shader=new ro.J(lK.E,()=>v.e(5425).then(v.bind(v,75425)));var cK=v(67093);let gy=class extends Ns.Z{constructor(d,_){super({}),this._rctx=d,this._techniqueRep=_,this._passParameters=new cK.PR,this._isEnabled=!1}normalizeCtorArgs(){return{}}dispose(){this._abortController=(0,Qe.IM)(this._abortController),this.disable()}_loadResources(d){if((0,Qe.pC)(this._abortController))return!1;if((0,Qe.pC)(this._passParameters.searchTexture))return!0;this._abortController=new AbortController;const _=this._abortController.signal;return v.e(3129).then(v.bind(v,63129)).then(T=>this._loadTextures(T,_)).then(()=>d()).finally(()=>this._abortController=null),!1}_loadTextures(d,_){return(0,ws.k_)(_),Promise.all([this._loadTextureFromBase64(d.areaTexture,xt.cw.LINEAR,xt.VI.RGB),this._loadTextureFromBase64(d.searchTexure,xt.cw.NEAREST,xt.VI.LUMINANCE)]).then(([T,x])=>{(0,ws.Hc)(_)?(T.dispose(),x.dispose(),(0,ws.k_)(_)):(this._passParameters.areaTexture=T,this._passParameters.searchTexture=x)})}get updating(){return(0,Qe.pC)(this._abortController)}enable(d){if(this._isEnabled)return!0;if(!this._edgeDetectTechnique||!this._blendWeightsTechnique||!this._blurTechnique){const _=new pi.m;this._edgeDetectTechnique=this._techniqueRep.releaseAndAcquire(gb,_,this._edgeDetectTechnique),this._blendWeightsTechnique=this._techniqueRep.releaseAndAcquire(fb,_,this._blendWeightsTechnique),this._blurTechnique=this._techniqueRep.releaseAndAcquire(mb,_,this._blurTechnique)}return!!this._loadResources(d)&&(this._vao=(0,_a.E9)(this._rctx),this._passParameters.edges=new Aa.X(this._rctx,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.NONE},{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGB,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.LINEAR,wrapMode:xt.e8.CLAMP_TO_EDGE,width:4,height:4}),this._passParameters.blend=new Aa.X(this._rctx,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.NONE},{target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.LINEAR,wrapMode:xt.e8.CLAMP_TO_EDGE,width:4,height:4}),this._isEnabled=!0,!0)}disable(){this._isEnabled&&(this._vao=(0,Qe.M2)(this._vao),this._passParameters.areaTexture=(0,Qe.M2)(this._passParameters.areaTexture),this._passParameters.searchTexture=(0,Qe.M2)(this._passParameters.searchTexture),this._passParameters.blend=(0,Qe.M2)(this._passParameters.blend),this._passParameters.edges=(0,Qe.M2)(this._passParameters.edges),this._isEnabled=!1)}get _validPassParameters(){return this._isEnabled?this._passParameters:null}render(d){const _=this._validPassParameters;if((0,Qe.Wi)(_))return;_.colorTexture=d;const T=this._rctx,x=T.getBoundFramebufferObject(),A=d.descriptor.width,U=d.descriptor.height;T.bindVAO(this._vao),T.setViewport(0,0,A,U),_.edges.resize(A,U),T.bindFramebuffer(_.edges),T.setClearColor(0,0,0,1),T.clear(xt.lk.COLOR_BUFFER_BIT),T.bindTechnique(this._edgeDetectTechnique,_,null),T.drawArrays(xt.MX.TRIANGLES,0,3),_.blend.resize(A,U),T.bindFramebuffer(_.blend),T.setClearColor(0,0,1,1),T.clear(xt.lk.COLOR_BUFFER_BIT),T.bindTechnique(this._blendWeightsTechnique,_,null),T.drawArrays(xt.MX.TRIANGLES,0,3),T.bindFramebuffer(x),T.setClearColor(0,1,0,1),T.clear(xt.lk.COLOR_BUFFER_BIT),T.bindTechnique(this._blurTechnique,_,null),T.drawArrays(xt.MX.TRIANGLES,0,3)}_loadTextureFromBase64(d,_,T){return(0,C0.t)(d).then(x=>new Ro.x(this._rctx,{pixelFormat:T,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.CLAMP_TO_EDGE,width:x.width,height:x.height,samplingMode:_},x))}};(0,Ve._)([(0,ke.Cb)()],gy.prototype,"_abortController",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],gy.prototype,"updating",null),gy=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.SmaaRenderPass")],gy);var uK=v(95808);class pK{constructor(_){this._factory=_,this._originData=new Map}acquire(_){return this.register(this._factory.getOrigin(_))}register(_){const T=this._originData.get(_.id)||new _K(_);return T.refCount++,this._originData.has(T.origin.id)||this._originData.set(T.origin.id,T),T}release(_){_.refCount--,0===_.refCount&&this._originData.delete(_.origin.id)}updateViewMatrices(_){this._originData.forEach(T=>{(0,gi.c)(T.viewMatrix,_),function hK(d,_){const T=d[0],x=d[1],A=d[2];_[12]+=T*_[0]+x*_[4]+A*_[8],_[13]+=T*_[1]+x*_[5]+A*_[9],_[14]+=T*_[2]+x*_[6]+A*_[10],_[14]+=T*_[3]+x*_[7]+A*_[11]}(T.origin.vec3,T.viewMatrix)})}}class _K{constructor(_){this.origin=_,this.refCount=0,this.viewMatrix=(0,gn.c)()}}var fK=v(96867),oL=v(89917),aL=v(25558),lL=v(51040);class mK extends lL.su{constructor(_,T){super(),this.distanceFalloffFactor=_,this.transparency=T,this.transformNormalViewFromGlobal=(0,xd.c)()}}class gK extends lL.OU{constructor(){super(...arguments),this.transformNormalViewFromGlobal=(0,xd.c)(),this.slicePlaneLocalOrigin=(0,ir.c)(),this.transformNormalGlobalFromModel=(0,xd.c)()}}var yK=v(71964);class yb extends so.A{initializeConfiguration(_,T){T.hasWebGL2Context=_.rctx.type===cl.zO.WEBGL2}initializeProgram(_){return new Gn.$(_.rctx,yb.shader.get().build(this.configuration),Kd.so)}initializePipeline(_){return(0,Ds.sm)(_.blendMinMax?{blending:(0,Ds.wK)(xt.zi.ONE,xt.zi.ONE,xt.zi.ZERO,xt.zi.ONE,xt.db.ADD,_.blendMinMax.MAX),depthTest:{func:xt.wb.LEQUAL},colorWrite:Ds.BK}:{depthTest:{func:xt.wb.LEQUAL},depthWrite:Ds.LZ,colorWrite:Ds.BK})}}yb.shader=new ro.J(yK.E,()=>v.e(6625).then(v.bind(v,76625)));var yy=v(73105);class Xu extends yI.W{constructor(){super(...arguments),this.mode=yy.Jb.SOLID,this.hasSlicePlane=!1,this.silhouette=!1,this.legacy=!1,this.antialiasing=!1,this.doublePrecisionRequiresObfuscation=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1,this.spherical=!1}}(0,Ve._)([(0,pi.o)({count:yy.Jb.COUNT})],Xu.prototype,"mode",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"hasSlicePlane",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"silhouette",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"legacy",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"antialiasing",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"doublePrecisionRequiresObfuscation",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"hasMultipassTerrain",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"cullAboveGround",void 0),(0,Ve._)([(0,pi.o)()],Xu.prototype,"spherical",void 0);var zi=v(17803);const EK={type:"uber",hasSlicePlane:!1,strokesTexture:null,legacy:!0,spherical:!0},bK={solid:yy.Jb.SOLID,sketch:yy.Jb.SKETCH,uber:yy.Jb.MIXED};class vy{constructor(_,T,x){this._rctx=_,this._shaderTechniqueRepository=T,this._configuration=new Xu,this.refCount=0,this._renderables=new Set,this._sortedRenderables={[zi.i.TRANSPARENT]:{[zi.i.TRANSPARENT]:new wo.Z,[zi.i.OPAQUE]:new wo.Z},[zi.i.OPAQUE]:{[zi.i.TRANSPARENT]:new wo.Z,[zi.i.OPAQUE]:new wo.Z}},this._renderablesDirty=!1,this._drawParameters=new gK,this._settings={...EK,...x},this.key=vy.getKey(this._settings.type,this._settings.hasSlicePlane,this._settings.legacy),this.writerSettings={variants:this._settings.strokesTexture.variants,reducedPrecision:Fo.Z.TESTS_DISABLE_OPTIMIZATIONS},this._configuration.legacy=this._settings.legacy,this._configuration.mode=bK[this._settings.type],this._configuration.silhouette=!1,this._configuration.antialiasing=!!this._rctx.capabilities.blendMinMax,this._configuration.hasSlicePlane=this._settings.hasSlicePlane,this._configuration.doublePrecisionRequiresObfuscation=(0,LI.I)(_),this._configuration.spherical=x.spherical}dispose(){this._technique=(0,Qe.RY)(this._technique)}addRenderable(_){this._renderables.add(_),this._renderablesDirty=!0}removeRenderable(_){this._renderables.delete(_),this._renderablesDirty=!0}setRenderablesDirty(){this._renderablesDirty=!0}forEachRenderable(_,T){this._renderablesDirty&&this._sortRenderables(),this._sortedRenderables[T][zi.i.TRANSPARENT].forAll(_),this._sortedRenderables[T][zi.i.OPAQUE].forAll(_)}updateTechnique(_,T){return this._configuration.hasMultipassTerrain=!!_.multipassTerrain.enabled,this._configuration.cullAboveGround=!!_.multipassTerrain.cullAboveGround,this._configuration.silhouette=T,this._technique=this._shaderTechniqueRepository.releaseAndAcquire(yb,this._configuration,this._technique),this._technique}bindRegularEdges(_,T){return this._lastOriginId=null,this._rctx.bindTechnique(this.updateTechnique(T,!1),_,T)}bindSilhouetteEdges(_,T){return this._lastOriginId=null,this._rctx.bindTechnique(this.updateTechnique(T,!0),_,T)}renderRegularEdges(_,T,x,A,U){this._render(_,T,T.regular.vao,x,A,U)}renderSilhouetteEdges(_,T,x,A,U){this._render(_,T,T.silhouette.vao,x,A,U)}_render(_,T,x,A,U,ne){ne>0&&(this._bindDraw(_,T,A,U),this._rctx.bindVAO(x),this._rctx.capabilities.instancing.drawArraysInstanced(xt.MX.TRIANGLE_FAN,0,4,ne))}_bindDraw(_,T,x,A){if(this._drawParameters.componentDataTexture=T.components.buffer.textureBuffer.texture,this._drawParameters.strokesTexture=this._settings.strokesTexture,"origin"in T.transform)this._lastOriginId!==T.transform.origin.origin.id&&(_.setUniformMatrix4fv("localView",T.transform.origin.viewMatrix),this._lastOriginId=T.transform.origin.origin.id),_.setUniformMatrix4fv("model",T.transform.modelMatrix),this._drawParameters.slicePlaneLocalOrigin=T.transform.origin.origin.vec3;else{const U=new kE(T.transform.position),ne=(0,Co.t)(cL,(0,Co.e)(cL,T.transform.rotationScale));this._drawParameters.transformWorldFromModelTL=U.low,this._drawParameters.transformWorldFromModelTH=U.high,this._drawParameters.transformWorldFromModelRS=T.transform.rotationScale,this._drawParameters.transformNormalGlobalFromModel=ne;const fe=A.camera.viewInverseTransposeMatrix;(0,pt.s)(this._drawParameters.slicePlaneLocalOrigin,fe[3],fe[7],fe[11])}_.bindDraw(this._drawParameters,A,x)}_sortRenderables(){this._renderablesDirty=!1,this._sortedRenderables[zi.i.TRANSPARENT][zi.i.TRANSPARENT].clear(),this._sortedRenderables[zi.i.TRANSPARENT][zi.i.OPAQUE].clear(),this._sortedRenderables[zi.i.OPAQUE][zi.i.TRANSPARENT].clear(),this._sortedRenderables[zi.i.OPAQUE][zi.i.OPAQUE].clear(),this._renderables.forEach(T=>{T.objectTransparency!==zi.i.INVISIBLE&&T.edgeTransparency!==zi.i.INVISIBLE&&this._sortedRenderables[T.objectTransparency][T.edgeTransparency].push(T)});const _=(T,x)=>"origin"in T.transform?"origin"in x.transform?T.transform.origin.origin.idx.transform.origin.origin.id?1:0:1:0;this._sortedRenderables[zi.i.TRANSPARENT][zi.i.TRANSPARENT].sort(_),this._sortedRenderables[zi.i.TRANSPARENT][zi.i.OPAQUE].sort(_),this._sortedRenderables[zi.i.OPAQUE][zi.i.TRANSPARENT].sort(_),this._sortedRenderables[zi.i.OPAQUE][zi.i.OPAQUE].sort(_)}static getKey(_,T,x){return`edges-t:${_}:${T}:${x}`}}const cL=(0,cf.c)();var T0,CK=v(14171);function vb(d,_){if(!d)return null;const T=d.length/2,x=MK*T,A=new Array(T);let U=0;const ne=_===T0.PRESSURE;for(let fe=0;fe0}function OK(d){return d.size*d.color[3]>0}function fL(d,_,T,x){for(let A=0;Athis._discardObjectEntry(d)),this._perObjectData.clear(),this._strokesTexture=(0,Qe.M2)(this._strokesTexture),this._componentColorManager=(0,Qe.SC)(this._componentColorManager),this._workerAbort.abort(),this._worker.destroy(),this._verticesBufferObject=(0,Qe.M2)(this._verticesBufferObject),this._renderers.clear(),this._updatingHandles.destroy())}get updating(){return this._updatingHandles.updating}get usedMemory(){return this._gpuMemoryUsage}shouldRender(){return this._renderers.size>0}addComponentObject(d,_,T,x,A,U,ne,fe){var Oe=this;return(0,kr.Z)(function*(){if(Oe.hasObject(d))return Oe.getObjectMemoryUsage(d);let we;const Ze=new mL(new Promise(lt=>we=lt),T.center,T.radius);Oe._perObjectData.set(d,Ze);const it=yield Oe._updatingHandles.addPromise(Oe._addComponentGeometry(_,Ze,x,A,U,ne,fe));return Oe.setNeedsRender(),we(),it})()}addOrUpdateObject3D(d,_,T,x){var A=this;return(0,kr.Z)(function*(){if(A.destroyed)return void Us.Z.getLogger(A.declaredClass).warn("Attempt to add an object to a destroyed instance");const U=A._perObjectData.get(d);let ne;U?.renderables.length>0&&A._perObjectDataEvictionCache.add(U);const fe=d.boundingVolumeWorldSpace.bounds,Oe=new mL(new Promise(Ze=>ne=Ze),(0,oo.g)(fe),(0,oo.a)(fe));A._perObjectData.set(d,Oe);const we=new Array;if(T.mergeGeometries&&d.geometries.length>1&&function DK(d){let _=null,T=null;for(let x=0;xthis._removeRenderable(_)),this.setNeedsRender()),d.loaded=null)}hasObject(d){return this._perObjectData.has(d)}updateAllComponentOpacities(d,_){var T=this;return(0,kr.Z)(function*(){const x=yield T._updatingHandles.addPromise(T._getObjectEntry(d));if((0,Qe.Wi)(x))return;const A=_ instanceof Array?U=>_[U]:()=>_;x.renderables.forEach(U=>{const ne=U.components.meta.length;for(let fe=0;fex+A.statistics.gpuMemoryUsage,0):0})()}updateAllComponentMaterials(d,_,T,x){var A=this;return(0,kr.Z)(function*(){const U=d instanceof fK.T,ne=!!T.hasSlicePlane,fe=dL(_),Oe=vy.getKey(fe,ne,U),we=yield A._updatingHandles.addPromise(A._getObjectEntry(d));(0,Qe.Wi)(we)||(we.renderables.forEach(Ze=>{if(Oe!==Ze.rendererKey){const it=A._renderers.get(Ze.rendererKey),lt=A._acquireRenderer(fe,ne,U);it.removeRenderable(Ze),--it.refCount,Ze.rendererKey=Oe,lt.addRenderable(Ze)}for(let it=0;it<_.length;it++)Ze.components.meta[it].material=_[it];x&&A._updateComponentBuffer(Ze.components),A._updateTransparency(Ze)}),A.setNeedsRender())})()}updateAllVerticalOffsets(d,_){var T=this;return(0,kr.Z)(function*(){const x=yield T._updatingHandles.addPromise(T._getObjectEntry(d));(0,Qe.Wi)(x)||(x.renderables.forEach(A=>{const U=A.components.meta;for(let ne=0;neA.visible=_),T.setNeedsRender())})()}removeObject(d){const _=this._perObjectData.get(d);_&&(this._perObjectData.delete(d),this._discardObjectEntry(_))}_getObjectEntry(d){var _=this;return(0,kr.Z)(function*(){const T=_._perObjectData.get(d);if(!T)throw"no object";return yield T.loaded,null==T.loaded?null:T})()}render(d,_){if((0,Qe.Wi)(this._componentColorManager))return;this._localOrigins.updateViewMatrices(d.camera.viewMatrix);const T=d.camera.viewInverseTransposeMatrix,x=(0,ir.c)(),A=new kE;let U=0,ne=0;if(this._renderers.forEach(Oe=>{if(0===Oe.refCount)this._renderers.delete(Oe.key),Oe.dispose();else{let we=!0,Ze=!0;Oe.forEachRenderable(it=>{it.visible&&(U+=it.statistics.averageEdgeLength,ne++,we&&it.regular&&(Oe.updateTechnique(d,!1),we=!1),Ze&&it.silhouette&&(Oe.updateTechnique(d,!0),Ze=!1))},_)}}),this._componentColorManager.garbageCollect(),this._componentColorManager.updateTextures(),0===ne)return;const fe=new mK(40*U/ne,_);(0,pt.s)(x,T[3],T[7],T[11]),A.set(x),(0,pt.c)(fe.transformWorldFromViewTH,A.high),(0,pt.c)(fe.transformWorldFromViewTL,A.low),(0,Co.f)(fe.transformViewFromCameraRelativeRS,d.camera.viewMatrix),(0,Co.t)(bL,fe.transformViewFromCameraRelativeRS),(0,Co.e)(fe.transformNormalViewFromGlobal,bL),fe.transformProjFromView=d.camera.projectionMatrix,this._updateObjectCameraDistances(d),this._renderers.forEach(Oe=>{this._renderRegularEdges(Oe,d,fe),this._renderSilhouetteEdges(Oe,d,fe)})}_updateTransparency(d){const _=hL(d.components.meta),T=pL(d.components.meta);_===d.edgeTransparency&&T===d.objectTransparency||(d.edgeTransparency=_,d.objectTransparency=T,this._renderers.get(d.rendererKey).setRenderablesDirty())}_computeModelTransformWithLocalOrigin(d,_,T){d.getCombinedStaticTransformation(_,T);const x=(0,Qe.pC)(_.origin)?this._localOrigins.register(_.origin):this._localOrigins.acquire((0,pt.s)(this._tmpModelPosition,T[12],T[13],T[14]));return _.origin=x.origin,function dK(d,_){const T=-d[0],x=-d[1],A=-d[2],U=_[3],ne=_[7],fe=_[11],Oe=_[15];_[0]+=U*T,_[1]+=U*x,_[2]+=U*A,_[4]+=ne*T,_[5]+=ne*x,_[6]+=ne*A,_[8]+=fe*T,_[9]+=fe*x,_[10]+=fe*A,_[12]+=Oe*T,_[13]+=Oe*x,_[14]+=Oe*A}(x.origin.vec3,T),x}_updateComponentBuffer(d){const{meta:_,buffer:T}=d,x=new Uint8Array(4);for(let A=0;A<_.length;A++){const U=_[A].material,ne=_[A].index,fe=(0,xr.uZ)(Math.round(8*U.size),0,255),Oe=(0,xr.uZ)(U.extensionLength,-128,127)+128,we="solid"===U.type?aL.P.SOLID:aL.P.SKETCH,Ze=255*U.opacity,it=U.color;T.textureBuffer.setData(ne,0,255*it[0],255*it[1],255*it[2],255*it[3]),T.textureBuffer.setData(ne,1,fe,Oe,we,Ze),(0,XE.nO)(_[A].verticalOffset,x),T.textureBuffer.setData(ne,2,x[0],x[1],x[2],x[3])}}_createComponentBuffers(d){if((0,Qe.Wi)(this._componentColorManager))return null;const _=new Array,T=this._componentColorManager.getBuffer(d.length);for(let A=0;A0?new gL(new Dh.U(this.rctx,Kd.so,{vertices:Kd.dx,instances:oL.D9.glLayout},{vertices:this._verticesBufferObject,instances:Ra.f.createVertex(this.rctx,xt.l1.STATIC_DRAW,d.regular.instancesData.buffer)}),d.regular.lodInfo):null,ne=(0,Qe.pC)(this._verticesBufferObject)&&d.silhouette.lodInfo.lengths.length>0?new gL(new Dh.U(this.rctx,Kd.so,{vertices:Kd.dx,instances:oL.qE.glLayout},{vertices:this._verticesBufferObject,instances:Ra.f.createVertex(this.rctx,xt.l1.STATIC_DRAW,d.silhouette.instancesData.buffer)}),d.silhouette.lodInfo):null,fe=((0,Qe.pC)(U)?U.vao.size:0)+((0,Qe.pC)(ne)?ne.vao.size:0);return new RK(U,ne,{gpuMemoryUsage:fe,externalMemoryUsage:A,averageEdgeLength:d.averageEdgeLength},T,hL(_.meta),pL(_.meta),_,x)}_addGeometry(d,_,T,x,A,U,ne){var fe=this;return(0,kr.Z)(function*(){const Oe=T.vertexAttributes.get(Qi.T.POSITION),we=T.indices.get(Qi.T.POSITION),Ze=(0,gn.c)(),it=fe._computeModelTransformWithLocalOrigin(d,x,Ze),lt=new EL(Oe,we,Ze,it);return fe._addPositionData(_,lt,T.edgeIndicesLength,A,U,ne)})()}_addPositionData(d,_,T,x,A,U=!1){var ne=this;return(0,kr.Z)(function*(){if(null==d.loaded)return;const fe=ne._createComponentBuffers([x]);if((0,Qe.Wi)(fe)||T<=0)return;const Oe=ne._acquireRenderer(x.type,!!A.hasSlicePlane,!0),{modelTransform:we,origin:Ze}=_,it=_.indices,lt=_.position,dt=lt.data.length/lt.size,Tt=Kd.tf.createBuffer(dt);for(let Pt=0;Pt=65536?Uint32Array:Uint16Array,it=fe?new Ze(fe):null,lt=[];let dt=0;for(let Nt=0;Nt{(0,pt.y)(x,U.center,_);const ne=(0,pt.e)(x,T),fe=U.radius,Oe=ne<-fe?1/0:newe.distanceToCamera=Oe)};this._perObjectData.forEach(A),this._perObjectDataEvictionCache.forEach(A)}_renderRegularEdges(d,_,T){const x=d.bindRegularEdges(T,_),U=_.camera.perScreenPixelRatio;d.forEachRenderable(ne=>{if(!yL(ne)||!ne.visible)return;const fe=Eb(ne.regular.lod.lengths,ne.distanceToCamera,U);d.renderRegularEdges(x,ne,T,_,fe)},T.transparency)}_renderSilhouetteEdges(d,_,T){const x=d.bindSilhouetteEdges(T,_),U=_.camera.perScreenPixelRatio;d.forEachRenderable(ne=>{if(!vL(ne)||!ne.visible)return;const fe=Eb(ne.silhouette.lod.lengths,ne.distanceToCamera,U);d.renderSilhouetteEdges(x,ne,T,_,fe)},T.transparency)}get test(){return{hasRenderedPrimitives:d=>{let _=!1;const T=d.perScreenPixelRatio,x=(A,U)=>A.forEachRenderable(ne=>{ne.visible&&!_&&(yL(ne)&&(_=Eb(ne.regular.lod.lengths,ne.distanceToCamera,T)>0),!_&&vL(ne)&&(_=Eb(ne.silhouette.lod.lengths,ne.distanceToCamera,T)>0))},U);return this._renderers.forEach(A=>{_||(x(A,zi.i.OPAQUE),x(A,zi.i.TRANSPARENT))}),_}}}};(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],yu.prototype,"rctx",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],yu.prototype,"renderSR",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],yu.prototype,"viewingMode",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],yu.prototype,"techniqueRepository",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],yu.prototype,"setNeedsRender",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],yu.prototype,"schedule",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],yu.prototype,"_updatingHandles",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],yu.prototype,"updating",null),yu=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.edgeRendering.EdgeView")],yu);class mL{constructor(_,T,x){this.center=T,this.radius=x,this.renderables=new Array,this.loaded=_,this.loaded.then(()=>{null!=this.loaded&&(this.loaded=!0)})}}class SK{constructor(_,T){this.buffer=_,this.meta=T}}class gL{constructor(_,T){this.vao=_,this.lod=T}}class AK{constructor(_,T){this.modelMatrix=_,this.origin=T}}class RK{constructor(_,T,x,A,U,ne,fe,Oe){this.regular=_,this.silhouette=T,this.statistics=x,this.transform=A,this.edgeTransparency=U,this.objectTransparency=ne,this.components=fe,this.rendererKey=Oe,this.distanceToCamera=0,this.visible=!0}}function yL(d){return(0,Qe.pC)(d.regular)}function vL(d){return(0,Qe.pC)(d.silhouette)}function Eb(d,_,T){const x=_*T,A=(0,pd.$A)(d,x,!0);return-1===A?x{const A=this._timer.createQuery(),U=this._timer.createQuery();this._queryPool.push(A,U),this._queryResults.set(x,null)})}start(){Yd||(this._currentQuery=this._queryPool.pop(),(0,Qe.Wi)(this._currentQuery)||(this._timer.disjoint(),this._timer.beginTimeElapsed(this._currentQuery)))}stop(_){if(this._timer.disjoint()||(0,Qe.Wi)(this._currentQuery)||!this._queryResults.has(_))return this.abort(),null;this._timer.endTimeElapsed();const T=this._queryResults.get(_);if((0,Qe.Wi)(T))return this._queryResults.set(_,this._currentQuery),this._currentQuery=null,null;if(!this._timer.resultAvailable(T))return this._queryPool.unshift(this._currentQuery),this._currentQuery=null,null;const x=this._timer.getResult(T)/1e6;return this._queryPool.unshift(T),this._queryResults.set(_,this._currentQuery),this._currentQuery=null,x}abort(){(0,Qe.pC)(this._currentQuery)&&(this._timer.deleteQuery(this._currentQuery),this._queryPool.unshift(this._timer.createQuery()),this._currentQuery=null)}dispose(){(0,Qe.pC)(this._currentQuery)&&this._timer.deleteQuery(this._currentQuery),this._queryPool.forEach(_=>{this._timer.deleteQuery(_)}),this._queryResults.forEach(_=>{(0,Qe.Wi)(_)||this._timer.deleteQuery(_)})}}var Mn;!function(d){d.OVERLAY="overlay",d.PREPARE="prepare",d.SHADOW_MAP="shadow map",d.LINEAR_DEPTH="linear depth",d.ACCUMULATED_SHADOWS="accumulated shadows",d.NORMALS="normals",d.OBJECT_AND_LAYER_ID_COLOR="object/layer id color",d.SSAO="SSAO",d.OPAQUE="opaque",d.OPAQUE_EDGES="opaque edges",d.VOXEL="voxel",d.TRANSPARENT="transparent",d.TRANSPARENT_EDGES="transparent edges",d.HUD_VISIBILITY="HUD visibility",d.TRANSPARENT_TERRAIN="transparent terrain",d.ENVIRONMENT="environment",d.LASER_LINE="laser line",d.OCCLUDED="occluded",d.ANTIALIASING="antialiasing",d.HIGHLIGHTS="highlights",d.HUD_OCCLUDED="HUD occluded",d.HUD_NOT_OCCLUDED="HUD not occluded",d.FINISH="finish"}(Mn||(Mn={}));class jK{constructor(_){this._rctx=_,this._startTimeStampCPU=(0,mi.HA)(0),this._lastTimeStampCPU=(0,mi.HA)(0),this._totalCPUTime=new bb.Z("Total"),this._cpuTimeSamplers=new Map(Object.values(Mn).map(T=>[T,new bb.Z(T)])),this._enableGPUTimer=0,this._totalGPUTime=new bb.Z("GPU"),this._gpuTimeSamplers=new Map(Object.values(Mn).map(T=>[T,new bb.Z(T)])),this._totalTime=(0,mi.HA)(0),this._totalFrameCount=0}get totalCPUTimeSampler(){return this._totalCPUTime}get cpuTimeSamplers(){return Array.from(this._cpuTimeSamplers.values())}get totalGPUTimeSampler(){return this._totalGPUTime}get gpuTimeSamplers(){return Array.from(this._gpuTimeSamplers.values())}get gpuSamplingEnabled(){return(0,Qe.pC)(this._gpuTimerPool)}get totalTime(){return this._totalTime}get totalFrameCount(){return this._totalFrameCount}get elapsedTime(){return(0,mi.HA)(performance.now()-this._startTimeStampCPU)}enableGPUPerformanceInfo(){if((0,Qe.Wi)(this._gpuTimerPool)){const _=[...Object.values(Mn),"Total"];this._gpuTimerPool=function UK(d,_){const T=d.capabilities.disjointTimerQuery;return(0,Qe.Wi)(T)?null:new BK(T,_)}(this._rctx,_)}return(0,Qe.Wi)(this._gpuTimerPool)?{hasGPUTimerSupport:!1,remove:()=>{}}:(++this._enableGPUTimer,{hasGPUTimerSupport:!0,remove:(0,IK.IH)(()=>{--this._enableGPUTimer,0===this._enableGPUTimer&&(this._gpuTimerPool=(0,Qe.M2)(this._gpuTimerPool))})})}startFrame(){this._startTimeStampCPU=this._lastTimeStampCPU=(0,mi.HA)(performance.now()),(0,Qe.pC)(this._gpuTimerPool)&&this._gpuTimerPool.start()}advance(_){const T=(0,mi.HA)(performance.now());if(this._cpuTimeSamplers.get(_).record(T-this._lastTimeStampCPU),this._lastTimeStampCPU=T,(0,Qe.pC)(this._gpuTimerPool)){const x=this._gpuTimerPool.stop(_);this._gpuTimeSamplers.get(_).record(x),this._gpuTimerPool.start()}}finishFrame(){if((0,Qe.pC)(this._gpuTimerPool)){const T=this._gpuTimerPool.stop(Mn.FINISH);this._gpuTimeSamplers.get(Mn.FINISH).record(T)}const _=(0,mi.HA)(performance.now()-this._startTimeStampCPU);this._totalTime=(0,mi.HA)(this._totalTime+_),this._totalCPUTime.record(_),(0,Qe.pC)(this._gpuTimerPool)&&this._totalGPUTime.record(this.gpuTimeSamplers.reduce((T,x)=>T+(x.last||0),0)),++this._totalFrameCount}}let Xd=class extends Ns.Z{constructor(d,_,T,x,A,U,ne,fe,Oe){super({}),this._materialRepository=d,this._shaderTechniqueRepository=T,this._rctx=x,this._compositingHelper=A,this._magnifierHelper=U,this._requestRender=ne,this._stage=Oe,this._materialRenderers=new Map,this._needsTransparentPass=!1,this._hasHUDElements=!1,this._hasHighlights=!1,this._hasWater=!1,this._hasOverlayWater=!1,this._renderOverlay=we=>{},this._content=new Map,this._isRendering=!1,this._fallbackDepthStencilTexture=null,this._sliceHelper=new nK,this._antialiasing=!0,this._oitEnabled=!1,this._multipassTerrain=!0,this._terrainRenderingEnabled=!0,this._terrainTransparency=$a.Opaque,this._waterReflectionEnabled=!1,this._hasAnimations=!1,this._animationTimestep=JI,this._handles=new Ji.Z,this._renderHiddenTransparentEdges=()=>{},this._oitUsed=!1,this._smaaPass=new gy(this._rctx,T),this._oitEnabled=this._hasOITSupport,this._requestRender(),this._offscreenRendering=new NG(this._rctx,this._compositingHelper),this.performanceInfo=new jK(this._rctx),this._shadowMap=new db.l(this._rctx,Oe.viewingMode),this._ssaoHelper=new uK.L(T,this._rctx,()=>this._requestRender()),this._highlight=new LG(T,this._rctx),this._shadowHighlight=new iK(this._rctx,Oe.viewingMode),this._shadowAccumulator=new Xa(this._rctx,T,Oe,we=>{const Ze=this.shadowsEnabled;this._shadowMap.enabled=!0,this._prepare(we.camera,we.contentCamera),this._renderPlugins.prepareRender(),this._shadowMap.enabled=Ze},(we,Ze,it)=>{we.shadowMap.start(we.camera,Ze,it),this._renderShadowCascades(Xs.H.Shadow,we.shadowMap),we.camera.setGLViewport(this._rctx),this._prepare(we.camera,we.contentCamera)},()=>this._requestRender()),this._renderContext=new zG.V(this._rctx,this._offscreenRendering,this._shadowMap,this._ssaoHelper,this._sliceHelper),this._renderPlugins=new GG({renderContext:this._renderContext,shaderTechniqueRepository:T,textureRep:_,materialRep:this._materialRepository,requestRender:this._requestRender,schedule:fe}),this.renderPassManager=new AG(this._rctx,this._shaderTechniqueRepository),this._renderPlugins.add(this.renderPassManager.slots(),this.renderPassManager),this._handles.add([(0,Ht.YP)(()=>this._stage.state.camera,()=>this._requestRender(),Ht.tX),(0,Ht.YP)(()=>Fo.Z.EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES,we=>{this._renderHiddenTransparentEdges=we?()=>this._renderEdges(zi.i.TRANSPARENT):()=>{},this._requestRender()},Ht.nn)])}get _bindParameters(){return this._renderContext.bindParameters}get hasWater(){return this._hasWater||this._hasOverlayWater}get hasWaterReflection(){return this.hasWater&&this._waterReflectionEnabled}normalizeCtorArgs(){return{}}dispose(){this._handles.destroy(),this._smaaPass.dispose(),this._materialRenderers.forEach(d=>d.dispose()),this._materialRenderers.clear(),this._edgeView=(0,Qe.SC)(this._edgeView),this._offscreenRendering.dispose(),this._fallbackDepthStencilTexture=(0,Qe.M2)(this._fallbackDepthStencilTexture),this._shadowMap.enabled=!1,this._shadowMap.dispose(),this._ssaoHelper.enabled=!1,this._ssaoHelper.dispose(),this._highlight.dispose(),this._shadowHighlight.dispose(),this._shadowAccumulator.dispose(),RG.j.prune(),this._content.clear()}disposeOffscreenBuffers(){this._offscreenRendering.dispose(),this._shadowMap.dispose(),this._smaaPass.disable(),this._ssaoHelper.disposeOffscreenBuffers()}get updating(){return this._antialiasing&&this._smaaPass.updating||(0,Qe.pC)(this._edgeView)&&this._edgeView.updating||this._shadowAccumulator.running||!this.isCameraFinal}ensureEdgeView(){return(0,Qe.Wi)(this._edgeView)&&(this._edgeView=new yu({rctx:this._rctx,renderSR:this._stage.renderSR,viewingMode:this._stage.viewingMode,techniqueRepository:this._shaderTechniqueRepository,setNeedsRender:()=>this._requestRender(),schedule:d=>this._stage.resourceController.schedule(d)}),this._handles.add((0,Ht.YP)(()=>(0,Qe.yw)(this._edgeView,d=>d.updating),()=>this._requestRender(),Ht.Z_)),this._requestRender()),this._edgeView}get edgeView(){return this._edgeView}get isCameraFinal(){return(0,gi.h)(this._bindParameters.ssr.reprojectionMatrix,gn.I)}set _reprojectionMatrix(d){(0,pd.Vx)(this._bindParameters.ssr.reprojectionMatrix,d)&&this.notifyChange("isCameraFinal")}get shadowsEnabled(){return!!this._shadowMap?.enabled}setRenderParameters(d){const{_shadowMap:_,_ssaoHelper:T,_bindParameters:x}=this;if(void 0!==d.screenSpaceReflectionsEnabled&&x.ssr.enabled!==d.screenSpaceReflectionsEnabled&&(x.ssr.enabled=d.screenSpaceReflectionsEnabled,this._requestRender()),void 0!==d.shadowMap&&_.enabled!==d.shadowMap&&(_.enabled=d.shadowMap,this._requestRender()),void 0!==d.shadowMapMaxCascades&&_.maxCascades!==d.shadowMapMaxCascades&&(_.maxCascades=d.shadowMapMaxCascades,this._requestRender()),(0,Qe.pC)(d.environment)){(0,Qe.pC)(d.environment.weather)&&(this._bindParameters.weather=d.environment.weather,this._bindParameters.weatherVisible=d.weatherVisible),void 0!==d.environment.lighting.ambientOcclusionEnabled&&T.enabled!==d.environment.lighting.ambientOcclusionEnabled&&(T.enabled=d.environment.lighting.ambientOcclusionEnabled,this._requestRender()),void 0!==d.environment.lighting.waterReflectionEnabled&&this._waterReflectionEnabled!==d.environment.lighting.waterReflectionEnabled&&(this._waterReflectionEnabled=d.environment.lighting.waterReflectionEnabled,this._requestRender());const A="virtual"!==d.environment.lighting.type;x.enableFillLights!==A&&(x.enableFillLights=A,this._requestRender())}d.background&&this._offscreenRendering.background!==d.background&&(this._offscreenRendering.background=d.background,this._requestRender()),void 0!==d.antialiasingEnabled&&this._antialiasing!==d.antialiasingEnabled&&(this._antialiasing=d.antialiasingEnabled,this._requestRender()),void 0!==d.highQualityTransparency&&this._multipassTerrain!==d.highQualityTransparency&&(this._multipassTerrain=d.highQualityTransparency,this._oitEnabled=d.highQualityTransparency&&this._hasOITSupport,this._requestRender()),void 0!==d.defaultHighlightOptions&&(this._highlight.setDefaultOptions(d.defaultHighlightOptions),this._shadowHighlight.setDefaultOptions(d.defaultHighlightOptions),this._requestRender()),void 0!==d.overlays&&this._bindParameters.overlays!==d.overlays&&(this._bindParameters.overlays=d.overlays,this._requestRender()),void 0!==d.hasOverlayWater&&this._hasOverlayWater!==d.hasOverlayWater&&(this._hasOverlayWater=d.hasOverlayWater,this._requestRender()),void 0!==d.renderOverlay&&this._renderOverlay!==d.renderOverlay&&(this._renderOverlay=d.renderOverlay,this._requestRender()),void 0!==d.slicePlane&&this._sliceHelper.plane!==d.slicePlane&&(this._sliceHelper.plane=(0,Qe.Wg)(d.slicePlane),this._requestRender()),void 0!==d.terrainRenderingEnabled&&this._terrainRenderingEnabled!==d.terrainRenderingEnabled&&(this._terrainRenderingEnabled=d.terrainRenderingEnabled,this._requestRender()),void 0!==d.terrainTransparency&&this._terrainTransparency!==d.terrainTransparency&&(this._terrainTransparency=d.terrainTransparency,this._requestRender()),void 0!==d.shadowCastOptions&&this._shadowAccumulator.setOptions(d.shadowCastOptions)}get hasSlicePlane(){return!!this._sliceHelper.plane}get renderPlugins(){return this._renderPlugins}get _hasOITSupport(){return this._rctx.driverTest.floatBufferBlendWorking}modify(d){this._isRendering&&console.warn("Renderer.modify called while rendering");const{adds:_,removes:T,updates:x}=d;if(0===_.length&&0===T.length&&0===x.length)return;T.forAll(({id:ne})=>this._content.delete(ne)),_.forAll(ne=>this._content.set(ne.id,ne));const A=(0,HG.q)(d);let U=!1;A.forEach((ne,fe)=>{let Oe=this._materialRenderers.get(fe);if(!Oe){if(!(ne.adds.length>0))return;Oe=new wK.A(this._rctx,this._materialRepository,fe),this._materialRenderers.set(fe,Oe)}Oe.modify(ne),Oe.isEmpty&&(U=!0)}),U&&this._materialRenderers.forEach((ne,fe)=>{ne.isEmpty&&(this._materialRenderers.delete(fe),ne.dispose())}),this._hasHighlights=(0,El.oE)(this._materialRenderers,ne=>ne.hasHighlights),this._bindParameters.hasOccludees=(0,El.oE)(this._materialRenderers,ne=>ne.hasOccludees),this._hasWater=(0,El.oE)(this._materialRenderers,ne=>ne.hasWater),this._hasHUDElements=(0,El.oE)(this._materialRenderers,ne=>ne.requiresSlot(Mi.r.LINE_CALLOUTS_HUD_DEPTH,Xs.H.Color)||ne.requiresSlot(Mi.r.HUD_MATERIAL,Xs.H.Color)||ne.requiresSlot(Mi.r.LABEL_MATERIAL,Xs.H.Color)),this._requestRender()}updateAnimation(d){return this._hasAnimations=!1,this._materialRenderers.forEach(_=>this._hasAnimations=_.updateAnimation(d)||this._hasAnimations),this._hasAnimations=this._renderPlugins.updateAnimation(d)||this._hasAnimations,this._hasAnimations}get animationTimestep(){return this._animationTimestep}render(d,_,T,x,A){this._isRendering=!0;const{camera:U,contentCamera:ne}=T;this._renderContext.time=A,this.performanceInfo.startFrame(),this._renderOverlay(A),this.performanceInfo.advance(Mn.OVERLAY),this._bindParameters.transparencyPassType=Zc.A.NONE;const fe=this._offscreenRendering;fe.setupRenderTarget(this.hasWaterReflection);const Oe=(0,nu.a)(this._sliceHelper.plane);x===Fi.Iq.OFF&&(this._sliceHelper.plane=null),this._rctx.bindFramebuffer(d),U.setGLViewport(this._rctx),this._prepare(U,ne),this._renderPlugins.prepareRender(),this.performanceInfo.advance(Mn.PREPARE);const we=this._computeDepthRange(U);this._renderShadowMap(d,U,this._bindParameters.lighting.mainLight.direction,we),this.performanceInfo.advance(Mn.SHADOW_MAP),fe.initializeFrame(U),this._ensureBindParameters(U,ne),this._renderLinearDepth(),this.performanceInfo.advance(Mn.LINEAR_DEPTH),this._accumulateShadows(we,U,ne),this.performanceInfo.advance(Mn.ACCUMULATED_SHADOWS),this._renderNormal(),this.performanceInfo.advance(Mn.NORMALS),this._ensureBindParametersSSR(),this._renderSSAO(),this.performanceInfo.advance(Mn.SSAO),this._renderContext.output=Xs.H.Color,fe.bindFramebuffer(),this._renderOpaqueGeometry(),this.performanceInfo.advance(Mn.OPAQUE);const Ze=this._terrainRenderingEnabled&&this._terrainTransparency!==$a.Opaque,it=this._multipassTerrain&&Ze;this._renderTerrainLinearDepth(it),this._setMultipassEnabled(it),this._setTerrainCulling(it),this._renderEdges(zi.i.OPAQUE),this.performanceInfo.advance(Mn.OPAQUE_EDGES),this._offscreenRendering.bindTarget(this._offscreenRendering.currentColorTarget,this._offscreenRendering.mainDepth),this._renderSlot(Mi.r.VOXEL),this.performanceInfo.advance(Mn.VOXEL),this._renderHiddenTransparentEdges();const lt=this._needsTransparentPass||this._renderPlugins.needsTransparentPass;lt&&(this._oitEnabled?this._renderOrderIndependentTransparency(()=>this._renderTransparentGeometry(),!1):this._renderTransparentGeometry()),this.performanceInfo.advance(Mn.TRANSPARENT),this._renderGeometryLinearDepth(it);const dt=this._renderHUDVisibility(this._multipassTerrain&&Ze);it||this._renderInternalSlot(Mi.r.LINE_CALLOUTS),this.performanceInfo.advance(Mn.HUD_VISIBILITY),this._renderObjectAndLayerIdColor(_),this.performanceInfo.advance(Mn.OBJECT_AND_LAYER_ID_COLOR),this._renderEdges(zi.i.TRANSPARENT,it),this.performanceInfo.advance(Mn.TRANSPARENT_EDGES),this._renderTransparentTerrain(),Ze&&dt&&(it?this._renderLineCallouts(Zd.v.Occluded):fe.compositeTransparentTerrainOntoHUDVisibility(this._bindParameters),this._renderHUD(Zd.v.Occluded,fe.framebuffer),this.performanceInfo.advance(Mn.HUD_OCCLUDED)),this.performanceInfo.advance(Mn.TRANSPARENT_TERRAIN),this._setTerrainCulling(!1),Ze&&(fe.compositeTransparentTerrainOntoMain(this._bindParameters),it&&(this._renderEdges(zi.i.OPAQUE),this.performanceInfo.advance(Mn.OPAQUE_EDGES),lt&&(this._oitEnabled?this._renderOrderIndependentTransparency(()=>this._renderTransparentGeometry(),!1):this._renderTransparentGeometry()),this.performanceInfo.advance(Mn.TRANSPARENT),this._renderEdges(zi.i.TRANSPARENT),this.performanceInfo.advance(Mn.TRANSPARENT_EDGES))),it&&this._renderLineCallouts(Zd.v.NotOccluded),this._setMultipassEnabled(!1),this._shadowAccumulator.render(this._bindParameters),fe.renderToTargets(()=>{this._renderInternalSlot(Mi.r.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL),this._renderSlot(Mi.r.POSTPROCESSING_ENVIRONMENT_TRANSPARENT),this._renderSlot(Mi.r.LASERLINES)},fe.currentColorTarget,fe.mainDepth),this.performanceInfo.advance(Mn.ENVIRONMENT),this._renderPlugins.needsLaserlineWithContrastControl&&fe.renderTmpAndCompositeToMain(()=>this._renderSlot(Mi.r.LASERLINES_CONTRAST_CONTROL),this._bindParameters,Ya.PremultipliedAlpha),this.performanceInfo.advance(Mn.LASER_LINE),this._renderOccluded(),this.performanceInfo.advance(Mn.OCCLUDED);const Tt=x===Fi.Iq.ON&&this._magnifierHelper.enabled,mt=Tt&&(0,Qe.Wi)(d)?this._offscreenRendering.getFramebuffer(this._offscreenRendering.tmpColor,this._offscreenRendering.tmpDepth):d;this._rctx.bindFramebuffer(mt);const Mt=this._offscreenRendering.colorTexture;!this._renderAntiAliasing(Mt)&&(0,Qe.pC)(Mt)&&this._compositingHelper.composite(this._bindParameters,Mt,Ya.None),this.performanceInfo.advance(Mn.ANTIALIASING),this._renderHUD(Zd.v.NotOccluded,mt),this.performanceInfo.advance(Mn.HUD_NOT_OCCLUDED),this._renderHighlights(mt,this._bindParameters),this.performanceInfo.advance(Mn.HIGHLIGHTS),Tt&&this._magnifierHelper.render(this._rctx,this._bindParameters),mt!==d&&(this._rctx.bindFramebuffer(d),this._compositingHelper.composite(this._bindParameters,this._offscreenRendering.tmpColorTexture,Ya.None)),this._disposeOITBuffers(),this._renderContext.lastFrameCamera.copyFrom(this._bindParameters.camera),this._sliceHelper.plane=Oe,this._isRendering=!1,this.onPostRender&&this.onPostRender(),this.performanceInfo.finishFrame()}_renderObjectAndLayerIdColor(d){(0,Qe.pC)(d)&&(0,So.Z)("enable-feature:objectAndLayerId-rendering")&&(this._rctx.bindFramebuffer(d),this._offscreenRendering.renderToFBO(()=>this._renderGeometryAndTransparentTerrainPass(Xs.H.ObjectAndLayerIdColor),[0,0,0,0],!0,!0),this._rctx.bindFramebuffer(d),this._offscreenRendering.renderToFBO(()=>{this._bindParameters.renderTransparentlyOccludedHUD=Zd.v.NotOccluded,this._renderInternalSlot(Mi.r.HUD_MATERIAL)},null,!0,!0))}finish(d){if(this._hasAnimations||(this._animationTimestep=(0,mi.HA)(0)),d===Fi.Xx.BACKGROUND){let _=0;this.performanceInfo.gpuSamplingEnabled?_=this.performanceInfo.totalGPUTimeSampler.last:this._rctx.gl.getError();const x=Math.max(this.performanceInfo.elapsedTime,_),A=(0,xr.uZ)(x/.5,SG,JI);this._animationTimestep=(0,mi.HA)(.9*this._animationTimestep+A*(1-.9))}}readDepthPixels(d,_,T){const x=this._offscreenRendering.bindTarget(this._offscreenRendering.linearDepth,this._offscreenRendering.tmpDepth);this._needsLinearDepth||(this._ensureBindParameters(d,d),this._bindParameters.camera.setGLViewport(this._rctx),this._rctx.setClearColor(0,0,0,0),this._rctx.clearSafe(xt.lk.COLOR_BUFFER_BIT|xt.lk.DEPTH_BUFFER_BIT|xt.lk.STENCIL_BUFFER_BIT),this._renderGeometryAndTransparentTerrainPass(Xs.H.Depth)),x.readPixels(_[0],_[1],_[2],_[3],xt.VI.RGBA,xt.Br.UNSIGNED_BYTE,T)}readHUDVisibility(d,_,T,x,A){this._offscreenRendering.bindTarget(this._offscreenRendering.hudVisibility).readPixels(d,_,T,x,xt.VI.RGBA,xt.Br.UNSIGNED_BYTE,A)}readAccumulatedShadow(d,_){return this._shadowAccumulator.readAccumulatedShadow(d,_)}_setMultipassEnabled(d){this._bindParameters.multipassTerrain.enabled=this._bindParameters.multipassGeometry.enabled=d}_setTerrainCulling(d){this._bindParameters.multipassTerrain.cullAboveGround=d}_renderSlot(d){this._bindParameters.slot=d,this._renderPlugins.render()}_renderEdges(d,_=!1){const T=this._edgeView;(0,Qe.pC)(T)&&T.shouldRender()&&this._offscreenRendering.renderTmpAndCompositeToMain(()=>T.render(this._bindParameters,d),this._bindParameters,Ya.Alpha,_)}_renderShadowMap(d,_,T,x){const A=this._shadowMap;A.enabled&&(A.start(_,T,x),this._shadowHighlight.updateParameters(_,T),this._needsShadowHighlight?(this._renderShadowCascades(Xs.H.ShadowHighlight,this._shadowMap,U=>A.takeCascadeSnapshotTo(U,db.i.Highlight)),A.clear(),this._renderShadowCascades(Xs.H.ShadowExludeHighlight,this._shadowMap,U=>{A.takeCascadeSnapshotTo(U,db.i.Default),this._renderGeometryAndTransparentTerrainPass(Xs.H.ShadowHighlight)})):this._renderShadowCascades(Xs.H.Shadow),A.finish(d),_.setGLViewport(this._rctx))}_renderShadowCascades(d,_=this._shadowMap,T=(x=>{})){for(const x of _.getCascades())x.camera.setGLViewport(this._rctx),this._prepare(x.camera,x.camera),this._renderGeometryAndTransparentTerrainPass(d),T(x)}get _needsLinearDepth(){return this._ssaoHelper.ready||this._renderPlugins.needsLinearDepth||this._hasWater&&this._waterReflectionEnabled||this._needsShadowHighlight||this._needsShadowCast}_renderLinearDepth(){this._needsLinearDepth?this._offscreenRendering.renderToTargets(()=>this._renderGeometryAndTransparentTerrainPass(Xs.H.Depth),this._offscreenRendering.linearDepth,this._offscreenRendering.tmpDepth,[0,0,0,0],!0,!0):this._offscreenRendering.disposeTarget(this._offscreenRendering.linearDepth),this._bindParameters.linearDepthTexture=this._offscreenRendering.linearDepthTexture}_renderTerrainLinearDepth(d){if(d){const _=this._renderContext.output;this._renderContext.output=Xs.H.Depth,this._offscreenRendering.renderToTargets(()=>this._renderTransparentTerrain(),this._offscreenRendering.terrainLinearDepth,this._offscreenRendering.tmpDepth,[-1e10,-1e10,-1e10,1],!0,!0),this._renderContext.output=_}else this._offscreenRendering.disposeTarget(this._offscreenRendering.terrainLinearDepth);this._bindParameters.multipassTerrain.linearDepthTexture=this._offscreenRendering.terrainLinearDepthTexture}_renderGeometryLinearDepth(d){if(d){const _=this._renderContext.output;this._offscreenRendering.renderToTargets(()=>this._renderGeometryPass(Xs.H.Depth),this._offscreenRendering.geometryLinearDepth,this._offscreenRendering.tmpDepth,[1,1,1,1],!0,!0),this._renderContext.output=_}else this._offscreenRendering.disposeTarget(this._offscreenRendering.geometryLinearDepth);this._bindParameters.multipassGeometry.linearDepthTexture=this._offscreenRendering.geometryLinearDepthTexture}get _needsNormal(){return this._ssaoHelper.ready}_renderNormal(){this._needsNormal?this._offscreenRendering.renderToTargets(()=>{this._renderGeometryAndTransparentTerrainPass(Xs.H.Normal)},this._offscreenRendering.normal,this._offscreenRendering.tmpDepth,[0,0,0,0],!0,!0):this._offscreenRendering.disposeTarget(this._offscreenRendering.normal)}get _needsDepthRange(){return this._shadowMap.enabled||this._needsShadowCast}_computeDepthRange(d){if(!this._needsDepthRange)return BO;const _=function aG(d,_,T){if(_.size<1e4)return fG.compute(d,_);const x=cy();return T.forAll(A=>{A.isVisible&&gf(x,function lG(d,_){if(!_.isVisible)return;const T=cy(),x=_.getSpatialQueryAccelerator();return(0,Qe.pC)(x)?function cG(d,_,T){const x=_.eye,A=_.viewForward,U=_.frustum,ne=Oe=>Oe.isVisible,fe=T.objectCount;if(fe<500)uy($c,_.near,Math.min(d.near,_.far)),T.forEachInDepthRange(x,A,b0.Z.DepthOrder.FRONT_TO_BACK,$c,(Oe,we)=>{HO(d,_,Oe),$c.far=d.near,we.setRange($c)},U,ne),uy($c,Math.max(d.far,_.near),_.far),T.forEachInDepthRange(x,A,b0.Z.DepthOrder.BACK_TO_FRONT,$c,(Oe,we)=>{HO(d,_,Oe),$c.near=d.far,we.setRange($c)},U,ne);else{const Oe=Math.max(Math.min(fe,500),Math.ceil(.1*fe)),we=T.findClosest(A,b0.Z.DepthOrder.FRONT_TO_BACK,U,ne,Oe),Ze=T.findClosest(A,b0.Z.DepthOrder.BACK_TO_FRONT,U,ne,Oe);we&&Ze&&(YI(d,_,we.boundingVolumeWorldSpace.bounds),YI(d,_,Ze.boundingVolumeWorldSpace.bounds))}}(T,d,x):function uG(d,_,T){vf.clear(),T.forAll(x=>{x.isVisible&&0!==x.geometryRecords.length&&vf.add(x)}),vf.empty||(vf.sort(_),uy($c,_.near,Math.min(d.near,_.far)),vf.forEachInDepthRange($c,b0.Z.DepthOrder.FRONT_TO_BACK,(x,A)=>{A{d.far=Math.max(d.far,U)}))}(T,d,_.objects),T}(d,A))}),x}(d,this._content,this._stage.layers);return gf(_,this.renderPlugins.queryDepthRange(d)),_.near=Math.max(d.near,_.near),_.far=Math.min(d.far,_.far),_}_renderGeometryAndTransparentTerrainPass(d){this._renderContext.output=d,this._renderGeometryPass(d),this._renderTransparentTerrain()}_renderGeometryPass(d){this._renderContext.output=d,this._renderOpaqueGeometry(),this._renderTransparentGeometry()}_renderSSAO(){this._ssaoHelper.loading?this._requestRender():this._ssaoHelper.computeSSAO(this._bindParameters,this._offscreenRendering.linearDepthTexture,this._offscreenRendering.normalTexture)}_renderOpaqueGeometry(){this._renderSlot(Mi.r.INTEGRATED_MESH),this._renderSlot(Mi.r.OPAQUE_TERRAIN),this._renderInternalSlot(Mi.r.OPAQUE_MATERIAL),this._renderSlot(Mi.r.OPAQUE_MATERIAL),this._renderSlot(Mi.r.POSTPROCESSING_ENVIRONMENT_OPAQUE)}_renderTransparentGeometry(){this._renderInternalSlot(Mi.r.TRANSPARENT_MATERIAL),this._renderSlot(Mi.r.TRANSPARENT_MATERIAL)}_renderTransparentTerrain(){this._renderSlot(Mi.r.TRANSPARENT_TERRAIN)}_renderHUDVisibility(d){let _=!1;return this._renderContext.offscreenRenderingHelper&&this._renderContext.offscreenRenderingHelper.renderHUDVisibility(()=>{this._bindParameters.hudVisibilityTexture=this._renderContext.offscreenRenderingHelper.hudVisibilityTexture,_=this._renderInternalSlot(Mi.r.OCCLUSION_PIXELS)},d),_}_renderLineCallouts(d){this._bindParameters.renderTransparentlyOccludedHUD=d,d===Zd.v.Occluded?this._offscreenRendering.renderToTargets(()=>this._renderInternalSlot(Mi.r.LINE_CALLOUTS),this._offscreenRendering.currentColorTarget,this._offscreenRendering.tmpDepth,void 0,!0,!0):this._renderInternalSlot(Mi.r.LINE_CALLOUTS)}_renderHUD(d,_){this._hasHUDElements&&(this._oitEnabled?(this._renderOrderIndependentTransparency(()=>this._renderHUDElements(d),!0),this._rctx.bindFramebuffer(_),this._compositingHelper.composite(this._bindParameters,this._offscreenRendering.hudColorTexture,Ya.PremultipliedAlpha)):d===Zd.v.Occluded?this._offscreenRendering.renderToTargets(()=>this._renderHUDElements(Zd.v.Occluded),this._offscreenRendering.currentColorTarget,this._offscreenRendering.tmpDepth,void 0,!0,!0):this._renderHUDElements(d))}_renderHUDElements(d){this._bindParameters.renderTransparentlyOccludedHUD=d,this._renderInternalSlot(Mi.r.LINE_CALLOUTS_HUD_DEPTH),this._renderInternalSlot(Mi.r.HUD_MATERIAL),this._renderInternalSlot(Mi.r.LABEL_MATERIAL)}get _needsHighlight(){return this._hasHighlights||this._renderPlugins.needsHighlight}get _needsShadowHighlight(){return this._shadowMap.enabled&&this._shadowHighlight.isVisible&&this._needsHighlight}_renderHighlights(d,_){if(!this._needsHighlight)return void this._offscreenRendering.disposeTarget(this._offscreenRendering.highlight);const T=this._highlight,x=this._offscreenRendering.renderToTargets(()=>{this._renderGeometryAndTransparentTerrainPass(Xs.H.Highlight),this._rctx.clearSafe(xt.lk.DEPTH_BUFFER_BIT),this._renderHUDElements(Zd.v.Both)},this._offscreenRendering.highlight,this._offscreenRendering.tmpDepth,[0,0,0,0],!0,!0);this._bindParameters.highlightColorTexture=x.colorTexture,this._needsShadowHighlight&&this._shadowHighlight.render(_,d),T.render(this._bindParameters,x,d)}get _needsShadowCast(){return this._shadowAccumulator.isAccumulating}_accumulateShadows(d,_,T){this._needsShadowCast&&this._shadowAccumulator.renderAccumulation(this._offscreenRendering.linearDepthTexture,d,_,T)}_renderOrderIndependentTransparency(d,_){const T=A=>{this._bindParameters.transparencyPassType=A,this._offscreenRendering.renderOITPass(()=>d(),A,_)},x=this._renderContext.output;this._renderContext.output=Xs.H.Alpha,T(Zc.A.Alpha),this._renderContext.output=Xs.H.Color,T(Zc.A.Color),T(Zc.A.FrontFace),this._offscreenRendering.compositeTransparentOntoOpaque(this._bindParameters,_),this._bindParameters.transparencyPassType=Zc.A.NONE,this._renderContext.output=x,this._oitUsed=!0}_disposeOITBuffers(){this._oitUsed||(this._offscreenRendering.disposeTarget(this._offscreenRendering.alphaFloatTarget),this._offscreenRendering.disposeTarget(this._offscreenRendering.colorFloatTarget),this._offscreenRendering.disposeTarget(this._offscreenRendering.frontFaceTarget)),this._oitUsed=!1}_renderOccluded(){let d=0;this._materialRenderers.forEach((U,ne)=>{ne&&ne.isVisible()&&ne.renderOccluded===tc.yD.OccludeAndTransparentStencil&&(d|=ne.renderOccluded,by.push(ne))});const _=this._offscreenRendering,T=(U,ne,fe,Oe,we)=>{0!=(d&ne)&&(_.renderToTargets(fe,_.tmpColor,_.mainDepth,[0,0,0,0],Oe,we),_.compositeOccludedOntoMain(this._bindParameters,U))};0!==by.length&&(this._renderInternalSlot(Mi.r.OCCLUDER_MATERIAL,by),T(.5,tc.yD.OccludeAndTransparentStencil,()=>this._renderInternalSlot(Mi.r.TRANSPARENT_OCCLUDER_MATERIAL,by),!1,!1),by.length=0),this._materialRenderers.forEach((U,ne)=>{ne&&ne.isVisible()&&(ne.renderOccluded===tc.yD.OccludeAndTransparent||ne.renderOccluded===tc.yD.Transparent||ne.renderOccluded===tc.yD.Opaque)&&(d|=ne.renderOccluded,Ey.push(ne))});const x=this._renderPlugins.renderOccludedFlags;if(d|=x,!d)return;const A=U=>{this._renderContext.renderOccludedMask=U,x>tc.yD.Occlude&&this._renderSlot(Mi.r.OCCLUDED_TERRAIN),this._renderInternalSlot(Mi.r.OPAQUE_MATERIAL,Ey),this._renderInternalSlot(Mi.r.TRANSPARENT_MATERIAL,Ey),this._renderInternalSlot(Mi.r.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL,Ey),this._renderContext.resetRenderOccludedMask()};this._renderContext.output=Xs.H.Color,T(.5,tc.yD.OccludeAndTransparent,()=>A(tc.yD.OccludeAndTransparent),!0,Fi.hU.OutlineVisualElementMask),T(.5,tc.yD.Transparent,()=>A(tc.yD.Transparent),!0,Fi.hU.OutlineVisualElementMask),T(1,tc.yD.Opaque,()=>A(tc.yD.Opaque),!0,Fi.hU.OutlineVisualElementMask),Ey.length=0}_renderAntiAliasing(d){if(this._antialiasing){if(this._smaaPass.enable(()=>this._requestRender())&&(0,Qe.pC)(d))return this._smaaPass.render(d),!0}else this._smaaPass.disable();return!1}_prepare(d,_){this._needsTransparentPass=(0,El.oE)(this._materialRenderers,T=>T.requiresSlot(Mi.r.TRANSPARENT_MATERIAL,Xs.H.Color)),this._bindParameters.camera=d,this._bindParameters.contentCamera=_}_ensureBindParameters(d,_){this._bindParameters.camera=d,this._bindParameters.contentCamera=_;const T=this._renderContext.offscreenRenderingHelper;this._bindParameters.hudVisibilityTexture=T.hudVisibilityTexture,this._bindParameters.mainColorTexture=T.mainColorTexture,this._bindParameters.highlightDepthTexture=T.depthTexture??this._getFallbackDepthTexture()}_ensureBindParametersSSR(){this.hasWaterReflection?(this._renderContext.lastFrameCamera.equals(this._bindParameters.camera)?this._reprojectionMatrix=gn.I:((0,gi.a)(OL,this._bindParameters.camera.viewMatrix),(0,gi.a)(PL,this._bindParameters.camera.projectionMatrix),(0,gi.m)(bf,OL,PL),(0,gi.m)(bf,this._renderContext.lastFrameCamera.viewMatrix,bf),(0,gi.m)(bf,this._renderContext.lastFrameCamera.projectionMatrix,bf),this._reprojectionMatrix=bf),this._bindParameters.ssr.lastFrameColorTexture=this._offscreenRendering.lastFrameColorTexture):this._bindParameters.ssr.lastFrameColorTexture=null,this._bindParameters.ssr.enabled=this.hasWaterReflection}_renderInternalSlot(d,_){let T=!1;return this._bindParameters.slot=d,(0,Qe.pC)(_)?_.forEach(x=>{if(!x.shouldRender(this._renderContext))return;const A=this._materialRenderers.get(x);(0,Qe.pC)(A)&&(T=A.render(this._renderContext.output,this._bindParameters)||T)}):this._materialRenderers.forEach((x,A)=>{A.shouldRender(this._renderContext)&&x.render(this._renderContext.output,this._bindParameters)&&(T=!0)}),T}_getFallbackDepthTexture(){return this._fallbackDepthStencilTexture||(this._fallbackDepthStencilTexture=(0,_a.hf)(this._rctx)),this._fallbackDepthStencilTexture}get gpuMemoryUsage(){return{offscreen:this._offscreenRendering?.gpuMemoryUsage??0,highlights:(this._highlight?.gpuMemoryUsage??0)+(this._shadowHighlight?.gpuMemoryUsage??0),shadows:this._shadowMap?.gpuMemoryUsage??0,ssao:this._ssaoHelper?.gpuMemoryUsage??0}}get test(){const d=this;return{offscreen:this._offscreenRendering,shadowMap:this._shadowMap,ssao:this._ssaoHelper,highlight:this._highlight,lighting:this._bindParameters.lighting,materialRenderers:this._materialRenderers,shadowAccumulator:this._shadowAccumulator,weatherIsFading:this._bindParameters.cloudsFade.isFading,getFramebufferTexture:_=>{switch(_){case rp.Color:return d._offscreenRendering.colorTexture;case rp.LinearDepth:return d._offscreenRendering.linearDepthTexture;case rp.Normals:return d._offscreenRendering.normalTexture;case rp.ShadowMap:return d._shadowMap.depthTexture;case rp.HudVisibility:return d._offscreenRendering.hudVisibilityTexture;case rp.Highlight:return d._offscreenRendering.highlightTexture}}}}};var rp;(0,Ve._)([(0,ke.Cb)()],Xd.prototype,"_shadowAccumulator",void 0),(0,Ve._)([(0,ke.Cb)()],Xd.prototype,"_smaaPass",void 0),(0,Ve._)([(0,ke.Cb)()],Xd.prototype,"_antialiasing",void 0),(0,Ve._)([(0,ke.Cb)()],Xd.prototype,"_edgeView",void 0),(0,Ve._)([(0,ke.Cb)()],Xd.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)()],Xd.prototype,"isCameraFinal",null),Xd=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.Renderer")],Xd),function(d){d[d.Color=0]="Color",d[d.LinearDepth=1]="LinearDepth",d[d.Normals=2]="Normals",d[d.ShadowMap=3]="ShadowMap",d[d.HudVisibility=4]="HudVisibility",d[d.Highlight=5]="Highlight"}(rp||(rp={}));const Ey=[],by=[],PL=(0,gn.c)(),OL=(0,gn.c)(),bf=(0,gn.c)();var vu=v(68598);class xL{constructor(){this.blend=!1,this.blendColor={r:0,g:0,b:0,a:0},this.blendFunction={srcRGB:xt.zi.ONE,dstRGB:xt.zi.ZERO,srcAlpha:xt.zi.ONE,dstAlpha:xt.zi.ZERO},this.blendEquation={mode:xt.db.ADD,modeAlpha:xt.db.ADD},this.colorMask={r:!0,g:!0,b:!0,a:!0},this.faceCulling=!1,this.cullFace=xt.LR.BACK,this.frontFace=xt.Wf.CCW,this.scissorTest=!1,this.scissorRect={x:0,y:0,width:0,height:0},this.depthTest=!1,this.depthFunction=xt.wb.LESS,this.clearDepth=1,this.depthWrite=!0,this.depthRange={zNear:0,zFar:1},this.viewport=null,this.stencilTest=!1,this.polygonOffsetFill=!1,this.polygonOffset=[0,0],this.stencilFunction={face:xt.LR.FRONT_AND_BACK,func:xt.wb.ALWAYS,ref:0,mask:1},this.clearStencil=0,this.stencilWriteMask=1,this.stencilOperation={face:xt.LR.FRONT_AND_BACK,fail:xt.xS.KEEP,zFail:xt.xS.KEEP,zPass:xt.xS.KEEP},this.clearColor={r:0,g:0,b:0,a:0},this.program=null,this.vertexBuffer=null,this.indexBuffer=null,this.uniformBuffer=null,this.pixelPackBuffer=null,this.pixelUnpackBuffer=null,this.copyReadBuffer=null,this.copyWriteBuffer=null,this.uniformBufferBindingPoints=new Array,this.readFramebuffer=null,this.drawFramebuffer=null,this.renderbuffer=null,this.activeTexture=0,this.textureUnitMap=new Array,this.vertexArrayObject=null}}class FK{constructor(_){this._allocations=new Map,_?Error.stackTraceLimit=1/0:(this.add=()=>{},this.remove=()=>{})}add(_){this._allocations.set(_,(new Error).stack)}remove(_){this._allocations.delete(_)}print(){if(this._allocations.size>0){console.log(`${this._allocations.size} live object allocations:`);const _=new Map;this._allocations.forEach(T=>{_.set(T,(_.get(T)??0)+1)}),_.forEach((T,x)=>{const A=x.split("\n");A.shift(),A.shift(),console.log(`${T}: ${A.shift()}`),A.forEach(U=>console.log(" ",U))})}}}class WK{constructor(){for(this._current=new Array,this._max=new Array,this._allocations=new FK(false);this._current.length_+T,0)}printResourceCount(){if(this.total>0){console.log("Live objects:");for(let _=0;_0&&console.log(`${xt._g[_]}: ${T}`)}}this._allocations.print()}}var VK=v(1101);const zK=["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uint","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"];var SL,AL={exports:{}};void 0!==(SL=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"])&&(AL.exports=SL);const HK=AL.exports;var _,wL={exports:{}};void 0!==(_=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"])&&(wL.exports=_);const IL=wL.exports;var LL={exports:{}};!function(d){var T;void 0!==(T=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT","textureSize","texelFetch"])&&(d.exports=T)}(LL);const GK=LL.exports;var Eu=999,XK=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"];function QK(d){return function JK(d){var _=function kK(){var d,_,T,x=0,A=0,U=Eu,ne=[],fe=[],Oe=1,we=0,Ze=0,it=!1,lt=!1,dt="";return function(Xr){return fe=[],null!==Xr?function mt(Xr){var os;for(x=0,T=(dt+=Xr).length;d=dt[x],x0)continue;br=Xr.slice(0,1).join("")}return Tt(br),Ze+=br.length,(ne=ne.slice(br.length)).length}}function cs(){if(/[^\d\w_]/.test(d)){var Xr=ne.join("");return U=HK.indexOf(Xr)>-1?8:GK.indexOf(Xr)>-1?7:6,Tt(ne.join("")),U=Eu,x}return ne.push(d),_=d,x+1}}(),T=[];return(T=T.concat(_(d))).concat(_(null))}(d)}const ex=["GL_OES_standard_derivatives","GL_EXT_frag_depth","GL_EXT_draw_buffers","GL_EXT_shader_texture_lod"];function tZ(d,_){for(let T=_-1;T>=0;T--){const x=d[T];if("whitespace"!==x.type&&"block-comment"!==x.type){if("keyword"!==x.type)break;if("attribute"===x.data||"in"===x.data)return!0}}return!1}function Cy(d,_,T,x){x=x||T;for(const A of d)if("ident"===A.type&&A.data===T)return x in _?_[x]++:_[x]=0,Cy(d,_,x+"_"+_[x],x);return T}function VL(d,_,T="afterVersion"){function x(Oe,we){for(let Ze=we;ZeOe=0;--Oe){const we=x[Oe];if("preprocessor"===we.type){const Ze=we.data.match(/\#extension\s+(.*)\:/);if(Ze&&Ze[1]&&ex.includes(Ze[1].trim())){const dt=x[Oe+1];x.splice(Oe,dt&&"whitespace"===dt.type?2:1)}const it=we.data.match(/\#ifdef\s+(.*)/);it&&it[1]&&ex.includes(it[1].trim())&&(we.data="#if 1");const lt=we.data.match(/\#ifndef\s+(.*)/);lt&<[1]&&ex.includes(lt[1].trim())&&(we.data="#if 0")}}return function oZ(d,_){return _}(0,function qK(d){return d.map(_=>"eof"!==_.type?_.data:"").join("")}(x))}class lZ{constructor(_,T,x,A,U=new Map){this._context=_,this._locations=A,this._uniformBlockBindings=U,this._refCount=1,this._compiled=!1,this._nameToUniformLocation={},this._nameToUniform1={},this._nameToUniform1v=new Map,this._nameToUniform2=new Map,this._nameToUniform3=new Map,this._nameToUniform4=new Map,this._nameToUniformMatrix3=new Map,this._nameToUniformMatrix4=new Map,_||console.error("RenderingContext isn't initialized!"),0===T.length&&console.error("Shaders source should not be empty!"),this._context.type===cl.zO.WEBGL2&&(T=zL(T,xt.Ho.VERTEX_SHADER),x=zL(x,xt.Ho.FRAGMENT_SHADER)),this._vShader=GL(this._context,xt.Ho.VERTEX_SHADER,T),this._fShader=GL(this._context,xt.Ho.FRAGMENT_SHADER,x),this._vShader&&this._fShader||console.error("Error loading shaders!"),this._context.instanceCounter.increment(xt._g.Shader,this),(0,vu.CG)()&&(this.vertexShader=T,this.fragmentShader=x)}get glName(){if((0,Qe.pC)(this._glName))return this._glName;if((0,Qe.Wi)(this._vShader))return null;const _=this._context.gl,T=_.createProgram();if(_.attachShader(T,this._vShader),_.attachShader(T,this._fShader),this._locations.forEach((x,A)=>_.bindAttribLocation(T,x,A)),_.linkProgram(T),(0,vu.CG)()&&!_.getProgramParameter(T,_.LINK_STATUS)&&console.error(`Could not link shader\nvalidated: ${_.getProgramParameter(T,_.VALIDATE_STATUS)}, gl error ${_.getError()}, vertex: ${_.getShaderParameter(this._vShader,_.COMPILE_STATUS)}, fragment: ${_.getShaderParameter(this._fShader,_.COMPILE_STATUS)}, info log: ${_.getProgramInfoLog(T)}, vertex source: ${this.vertexShader}, fragment source: ${this.fragmentShader}`),this._context.type===cl.zO.WEBGL2){const x=_;for(const[A,U]of this._uniformBlockBindings){const ne=x.getUniformBlockIndex(T,A);ne<4294967295&&x.uniformBlockBinding(T,ne,U)}}return this._glName=T,this._context.instanceCounter.increment(xt._g.Program,this),T}get hasGLName(){return(0,Qe.pC)(this._glName)}get isCompiled(){if(this._compiled)return!0;const _=this._context.gl.getExtension("KHR_parallel_shader_compile");return null==_?(this._compiled=!0,!0):(this._compiled=!!this._context.gl.getProgramParameter(this.glName,_.COMPLETION_STATUS_KHR),this._compiled)}dispose(){if(--this._refCount>0)return;const _=this._context.gl;this._vShader&&(_.deleteShader(this._vShader),this._vShader=null,this._context.instanceCounter.decrement(xt._g.Shader,this)),this._fShader&&(_.deleteShader(this._fShader),this._fShader=null),this._glName&&(_.deleteProgram(this._glName),this._glName=null,this._context.instanceCounter.decrement(xt._g.Program,this))}ref(){++this._refCount}_getUniformLocation(_){return void 0===this._nameToUniformLocation[_]&&(++tx.numUniforms,this._nameToUniformLocation[_]=this._context.gl.getUniformLocation(this.glName,_)),this._nameToUniformLocation[_]}hasUniform(_){return null!==this._getUniformLocation(_)}setUniform1i(_,T){const x=this._nameToUniform1[_];void 0!==x&&T===x||(this._context.gl.uniform1i(this._getUniformLocation(_),T),this._nameToUniform1[_]=T)}setUniform1iv(_,T){ku(this._nameToUniform1v,_,T)&&this._context.gl.uniform1iv(this._getUniformLocation(_),T)}setUniform2iv(_,T){ku(this._nameToUniform2,_,T)&&this._context.gl.uniform2iv(this._getUniformLocation(_),T)}setUniform3iv(_,T){ku(this._nameToUniform3,_,T)&&this._context.gl.uniform3iv(this._getUniformLocation(_),T)}setUniform4iv(_,T){ku(this._nameToUniform4,_,T)&&this._context.gl.uniform4iv(this._getUniformLocation(_),T)}setUniform1f(_,T){const x=this._nameToUniform1[_];void 0!==x&&T===x||(this._context.gl.uniform1f(this._getUniformLocation(_),T),this._nameToUniform1[_]=T)}setUniform1fv(_,T){ku(this._nameToUniform1v,_,T)&&this._context.gl.uniform1fv(this._getUniformLocation(_),T)}setUniform2f(_,T,x){const A=this._nameToUniform2.get(_);void 0===A?(this._context.gl.uniform2f(this._getUniformLocation(_),T,x),this._nameToUniform2.set(_,[T,x])):T===A[0]&&x===A[1]||(this._context.gl.uniform2f(this._getUniformLocation(_),T,x),A[0]=T,A[1]=x)}setUniform2fv(_,T){ku(this._nameToUniform2,_,T)&&this._context.gl.uniform2fv(this._getUniformLocation(_),T)}setUniform3f(_,T,x,A){const U=this._nameToUniform3.get(_);void 0===U?(this._context.gl.uniform3f(this._getUniformLocation(_),T,x,A),this._nameToUniform3[_]=[T,x,A]):T===U[0]&&x===U[1]&&A===U[2]||(this._context.gl.uniform3f(this._getUniformLocation(_),T,x,A),U[0]=T,U[1]=x,U[2]=A)}setUniform3fv(_,T){ku(this._nameToUniform3,_,T)&&this._context.gl.uniform3fv(this._getUniformLocation(_),T)}setUniform4f(_,T,x,A,U){const ne=this._nameToUniform4.get(_);void 0===ne?(this._context.gl.uniform4f(this._getUniformLocation(_),T,x,A,U),this._nameToUniform4.set(_,[T,x,A,U])):void 0!==ne&&T===ne[0]&&x===ne[1]&&A===ne[2]&&U===ne[3]||(this._context.gl.uniform4f(this._getUniformLocation(_),T,x,A,U),ne[0]=T,ne[1]=x,ne[2]=A,ne[3]=U)}setUniform4fv(_,T){ku(this._nameToUniform4,_,T)&&this._context.gl.uniform4fv(this._getUniformLocation(_),T)}setUniformMatrix3fv(_,T,x=!1){ku(this._nameToUniformMatrix3,_,T)&&this._context.gl.uniformMatrix3fv(this._getUniformLocation(_),x,T)}setUniformMatrix4fv(_,T,x=!1){ku(this._nameToUniformMatrix4,_,T)&&this._context.gl.uniformMatrix4fv(this._getUniformLocation(_),x,T)}stop(){}}function GL(d,_,T){const x=d.gl,A=x.createShader(_);return x.shaderSource(A,T),x.compileShader(A),(0,vu.CG)()&&!x.getShaderParameter(A,x.COMPILE_STATUS)&&(console.error("Compile error in ".concat(_===xt.Ho.VERTEX_SHADER?"vertex":"fragment"," shader")),console.error(x.getShaderInfoLog(A)),console.error(function cZ(d){let _=2;return d.replace(/\n/g,()=>"\n"+function uZ(d){return d>=1e3?d.toString():(" "+d).slice(-3)}(_++)+":")}(T))),tx.enabled&&(tx.compiledLOC+=T.match(/\n/g).length+1),A}function ku(d,_,T){const x=d.get(_);return x?(0,pd.Vx)(x,T):(d.set(_,Array.from(T)),!0)}const tx={compiledLOC:0,numUniforms:0,enabled:!1};class dZ{constructor(_){this._rctx=_,this._store=new VK.r}dispose(){this._store.forEach(_=>_.forEach(T=>T.dispose())),this._store.clear()}acquire(_,T,x,A){const U=this._store.get(_,T);if((0,Qe.pC)(U))return U.ref(),U;const ne=new lZ(this._rctx,_,T,x,A);return ne.ref(),this._store.set(_,T,ne),ne}get test(){let _=0;return this._store.forEach(T=>T.forEach(x=>_+=x.hasGLName?2:1)),{cachedWebGLObjects:_}}}var KL=v(2757),M0=v(40852);function ZL(d,_){d.resetState();const T=new Aa.X(d,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.NONE},{target:xt.No.TEXTURE_2D,wrapMode:xt.e8.CLAMP_TO_EDGE,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.NEAREST,width:1,height:1}),x=Ra.f.createVertex(d,xt.l1.STATIC_DRAW,new Uint16Array([0,0,1,0,0,1,1,1])),A=new _y.U(d,new Map([["position",0]]),{geometry:[new M0.G("position",2,xt.g.UNSIGNED_SHORT,0,4)]},{geometry:x}),U=(0,ir.f)(5633261.287538229,2626832.878767164,1434988.0495278358),ne=(0,ir.f)(5633271.46742708,2626873.6381334523,1434963.231608387),fe=function hZ(d,_,T,x){const ne=d.programCache.acquire(`\n\n precision highp float;\n\n attribute vec2 position;\n\n uniform vec3 u_highA;\n uniform vec3 u_lowA;\n uniform vec3 u_highB;\n uniform vec3 u_lowB;\n\n varying vec4 v_color;\n\n ${x?"#define DOUBLE_PRECISION_REQUIRES_OBFUSCATION":""}\n\n #ifdef DOUBLE_PRECISION_REQUIRES_OBFUSCATION\n\n vec3 dpPlusFrc(vec3 a, vec3 b) {\n return mix(a, a + b, vec3(notEqual(b, vec3(0))));\n }\n\n vec3 dpMinusFrc(vec3 a, vec3 b) {\n return mix(vec3(0), a - b, vec3(notEqual(a, b)));\n }\n\n vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {\n vec3 t1 = dpPlusFrc(hiA, hiB);\n vec3 e = dpMinusFrc(t1, hiA);\n vec3 t2 = dpMinusFrc(hiB, e) + dpMinusFrc(hiA, dpMinusFrc(t1, e)) + loA + loB;\n return t1 + t2;\n }\n\n #else\n\n vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {\n vec3 t1 = hiA + hiB;\n vec3 e = t1 - hiA;\n vec3 t2 = ((hiB - e) + (hiA - (t1 - e))) + loA + loB;\n return t1 + t2;\n }\n\n #endif\n\n const float MAX_RGBA_FLOAT =\n 255.0 / 256.0 +\n 255.0 / 256.0 / 256.0 +\n 255.0 / 256.0 / 256.0 / 256.0 +\n 255.0 / 256.0 / 256.0 / 256.0 / 256.0;\n\n const vec4 FIXED_POINT_FACTORS = vec4(1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0);\n\n vec4 float2rgba(const float value) {\n // Make sure value is in the domain we can represent\n float valueInValidDomain = clamp(value, 0.0, MAX_RGBA_FLOAT);\n\n // Decompose value in 32bit fixed point parts represented as\n // uint8 rgba components. Decomposition uses the fractional part after multiplying\n // by a power of 256 (this removes the bits that are represented in the previous\n // component) and then converts the fractional part to 8bits.\n vec4 fixedPointU8 = floor(fract(valueInValidDomain * FIXED_POINT_FACTORS) * 256.0);\n\n // Convert uint8 values (from 0 to 255) to floating point representation for\n // the shader\n const float toU8AsFloat = 1.0 / 255.0;\n\n return fixedPointU8 * toU8AsFloat;\n }\n\n void main() {\n vec3 val = dpAdd(u_highA, u_lowA, -u_highB, -u_lowB);\n\n v_color = float2rgba(val.z / 25.0);\n\n gl_Position = vec4(position * 2.0 - 1.0, 0.0, 1.0);\n }\n `,"\n precision highp float;\n\n varying vec4 v_color;\n\n void main() {\n gl_FragColor = v_color;\n }\n ",new Map([["position",0]])),fe=new Float32Array(6);(0,KL.LF)(_,fe,3);const Oe=new Float32Array(6);return(0,KL.LF)(T,Oe,3),d.useProgram(ne),ne.setUniform3f("u_highA",fe[0],fe[2],fe[4]),ne.setUniform3f("u_lowA",fe[1],fe[3],fe[5]),ne.setUniform3f("u_highB",Oe[0],Oe[2],Oe[4]),ne.setUniform3f("u_lowB",Oe[1],Oe[3],Oe[5]),ne}(d,U,ne,_);d.bindFramebuffer(T),d.setViewport(0,0,1,1),d.bindVAO(A),d.drawArrays(xt.MX.TRIANGLE_STRIP,0,4);const Oe=new Uint8Array(4);T.readPixels(0,0,1,1,xt.VI.RGBA,xt.Br.UNSIGNED_BYTE,Oe),fe.dispose(),A.dispose(!1),x.dispose(),T.dispose();const we=(U[2]-ne[2])/25,Ze=(0,ib.v)(Oe);return Math.abs(we-Ze)}var $L,XL,kL={exports:{}};$L=kL,void 0!==(XL=function(){var T={enable:{1:{0:!0}},disable:{1:{0:!0}},getParameter:{1:{0:!0}},drawArrays:{3:{0:!0}},drawElements:{4:{0:!0,2:!0}},createShader:{1:{0:!0}},getShaderParameter:{2:{1:!0}},getProgramParameter:{2:{1:!0}},getShaderPrecisionFormat:{2:{0:!0,1:!0}},getVertexAttrib:{2:{1:!0}},vertexAttribPointer:{6:{2:!0}},bindTexture:{2:{0:!0}},activeTexture:{1:{0:!0}},getTexParameter:{2:{0:!0,1:!0}},texParameterf:{3:{0:!0,1:!0}},texParameteri:{3:{0:!0,1:!0,2:!0}},texImage2D:{9:{0:!0,2:!0,6:!0,7:!0},6:{0:!0,2:!0,3:!0,4:!0}},texSubImage2D:{9:{0:!0,6:!0,7:!0},7:{0:!0,4:!0,5:!0}},copyTexImage2D:{8:{0:!0,2:!0}},copyTexSubImage2D:{8:{0:!0}},generateMipmap:{1:{0:!0}},compressedTexImage2D:{7:{0:!0,2:!0}},compressedTexSubImage2D:{8:{0:!0,6:!0}},bindBuffer:{2:{0:!0}},bufferData:{3:{0:!0,2:!0}},bufferSubData:{3:{0:!0}},getBufferParameter:{2:{0:!0,1:!0}},pixelStorei:{2:{0:!0,1:!0}},readPixels:{7:{4:!0,5:!0}},bindRenderbuffer:{2:{0:!0}},bindFramebuffer:{2:{0:!0}},checkFramebufferStatus:{1:{0:!0}},framebufferRenderbuffer:{4:{0:!0,1:!0,2:!0}},framebufferTexture2D:{5:{0:!0,1:!0,2:!0}},getFramebufferAttachmentParameter:{3:{0:!0,1:!0,2:!0}},getRenderbufferParameter:{2:{0:!0,1:!0}},renderbufferStorage:{4:{0:!0,1:!0}},clear:{1:{0:{enumBitwiseOr:["COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","STENCIL_BUFFER_BIT"]}}},depthFunc:{1:{0:!0}},blendFunc:{2:{0:!0,1:!0}},blendFuncSeparate:{4:{0:!0,1:!0,2:!0,3:!0}},blendEquation:{1:{0:!0}},blendEquationSeparate:{2:{0:!0,1:!0}},stencilFunc:{3:{0:!0}},stencilFuncSeparate:{4:{0:!0,1:!0}},stencilMaskSeparate:{2:{0:!0}},stencilOp:{3:{0:!0,1:!0,2:!0}},stencilOpSeparate:{4:{0:!0,1:!0,2:!0,3:!0}},cullFace:{1:{0:!0}},frontFace:{1:{0:!0}},drawArraysInstancedANGLE:{4:{0:!0}},drawElementsInstancedANGLE:{5:{0:!0,2:!0}},blendEquationEXT:{1:{0:!0}}},x=null,A=null;function U(mt){if(null==x)for(var Mt in x={},A={},mt)"number"==typeof mt[Mt]&&(x[mt[Mt]]=Mt,A[Mt]=mt[Mt])}function ne(){if(null==x)throw"WebGLDebugUtils.init(ctx) not called"}function Oe(mt){ne();var Mt=x[mt];return void 0!==Mt?"gl."+Mt:"/*UNKNOWN WebGL ENUM*/ 0x"+mt.toString(16)}function we(mt,Mt,Pt,Nt){var Bt;if(void 0!==(Bt=T[mt])&&void 0!==(Bt=Bt[Mt])&&Bt[Pt]){if("object"==typeof Bt[Pt]&&void 0!==Bt[Pt].enumBitwiseOr){for(var Zt=Bt[Pt].enumBitwiseOr,nr=0,Jt=[],Rr=0;Rr=0&&setTimeout(function(){mt.restoreContext()},cs)},0)}},mt.restoreContext=function(){Jt&&Bt.length&&setTimeout(function(){if(!Yr)throw"can not restore. webglcontestlost listener did not call event.preventDefault";(function rs(){for(var ss=0;ssthis._svgAlwaysPremultipliesAlpha=!T)}get floatBufferBlendWorking(){if((0,Qe.Wi)(this._floatBufferBlendWorking))throw new Error("floatBufferBlendWorking test not yet available");return this._floatBufferBlendWorking}get svgAlwaysPremultipliesAlpha(){if((0,Qe.Wi)(this._svgAlwaysPremultipliesAlpha))throw new Error("svgAlwaysPremultipliesAlpha test not yet available");return this._svgAlwaysPremultipliesAlpha}get doublePrecisionRequiresObfuscation(){if((0,Qe.Wi)(this._doublePrecisionRequiresObfuscation)){const _=ZL(this.context,!1),T=ZL(this.context,!0);this._doublePrecisionRequiresObfuscation=0!==_&&(0===T||_/T>5)}return this._doublePrecisionRequiresObfuscation}get ignoresSamplerPrecision(){return(0,Qe.Wi)(this._ignoresSamplerPrecision)&&(this._ignoresSamplerPrecision=function _Z(d){const _=new Aa.X(d,{colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.NONE},{target:xt.No.TEXTURE_2D,wrapMode:xt.e8.CLAMP_TO_EDGE,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.NEAREST,width:1,height:1}),A=new Uint8Array(4),U=Ra.f.createVertex(d,xt.l1.STATIC_DRAW,new Uint16Array([0,0,1,0,0,1,1,1])),ne=new _y.U(d,new Map([["a_position",0]]),{geometry:[new M0.G("a_position",2,xt.g.SHORT,0,4)]},{geometry:U}),fe=d.programCache.acquire("\nprecision highp float;\nattribute vec2 a_pos;\nuniform highp sampler2D u_texture;\nvarying vec4 v_color;\n\nfloat getBit(in float bitset, in int bitIndex) {\n float offset = pow(2.0, float(bitIndex));\n return mod(floor(bitset / offset), 2.0);\n}\n\nvoid main() {\n vec4 value = texture2D(u_texture, vec2(0.0));\n float bit = getBit(value.x * 255.0, 1);\n\n v_color = bit * vec4(1.0);\n gl_Position = vec4(a_pos * 2.0 - 1.0, 0.0, 1.0);\n}\n","\nprecision highp float;\nvarying vec4 v_color;\n\nvoid main() {\n gl_FragColor = v_color;\n}\n",new Map([["a_pos",0]]));d.useProgram(fe);const Oe=new Ro.x(d,{target:xt.No.TEXTURE_2D,wrapMode:xt.e8.CLAMP_TO_EDGE,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,samplingMode:xt.cw.NEAREST,width:1,height:1},new Uint8Array([2,255,0,0]));fe.setUniform1i("u_texture",0),d.bindTexture(Oe,0);const we=d.getBoundFramebufferObject();d.bindFramebuffer(_),d.useProgram(fe);const{x:Ze,y:it,width:lt,height:dt}=d.getViewport();d.setViewport(0,0,1,1),d.bindVAO(ne),d.drawArrays(xt.MX.TRIANGLE_STRIP,0,4),d.setViewport(Ze,it,lt,dt),_.readPixels(0,0,1,1,xt.VI.RGBA,xt.Br.UNSIGNED_BYTE,A),fe.dispose(),ne.dispose(!1),U.dispose(),_.dispose();const Tt=255!==A[0]||255!==A[1]||255!==A[2]||255!==A[3];return Tt&&Us.Z.getLogger("esri.views.webgl.testSamplerPrecision").warn(`A problem was detected with your graphics driver. Your driver does not appear to honor sampler precision specifiers, which may result in rendering issues due to numerical instability. We recommend ensuring that your drivers have been updated to the latest version. Applying lowp sampler workaround. [${A[0]}.${A[1]}.${A[2]}.${A[3]}]`),d.bindFramebuffer(we),Tt}(this.context)),this._ignoresSamplerPrecision}}function Ty(d,_,T,x,A){if(x&&(0,wl.Z)(d))return!0;if(_[T])return!1;for(const U of A)if(d.getExtension(U))return!0;return!1}class SZ{constructor(_,T){this._gl=_,this._instancing=null,this._vertexArrayObject=null,this._compressedTextureETC=null,this._compressedTextureS3TC=null,this._textureFilterAnisotropic=null,this._textureFloat=null,this._colorBufferFloat=null,this._minMaxBlending=null,this._loseContext=null,this._drawBuffers=null,this._textureNorm16=null,this._depthTexture=null,this._standardDerivatives=null,this._shaderTextureLOD=null,this._fragDepth=null,this._textureFloatLinear=null,this._disabledExtensions=T.disabledExtensions||{},this._debugWebGLExtensions=T.debugWebGLExtensions||{}}get drawBuffers(){return this._drawBuffers||(this._drawBuffers=function yZ(d,_){if(_.disjointTimerQuery)return null;if((0,wl.Z)(d))return{drawBuffers:d.drawBuffers.bind(d),MAX_DRAW_BUFFERS:d.MAX_DRAW_BUFFERS,MAX_COLOR_ATTACHMENTS:d.MAX_COLOR_ATTACHMENTS};if(_.drawBuffers)return null;const T=d.getExtension("WEBGL_draw_buffers");return T?{drawBuffers:T.drawBuffersWEBGL.bind(T),MAX_DRAW_BUFFERS:T.MAX_DRAW_BUFFERS_WEBGL,MAX_COLOR_ATTACHMENTS:T.MAX_COLOR_ATTACHMENTS_WEBGL}:null}(this._gl,this._disabledExtensions)),this._drawBuffers}get instancing(){return this._instancing||(this._instancing=function vZ(d){if((0,wl.Z)(d))return d;const _=d.getExtension("ANGLE_instanced_arrays");return _?{drawArraysInstanced:_.drawArraysInstancedANGLE.bind(_),drawElementsInstanced:_.drawElementsInstancedANGLE.bind(_),vertexAttribDivisor:_.vertexAttribDivisorANGLE.bind(_)}:null}(this._gl)),this._instancing}get vao(){return this._vertexArrayObject||(this._vertexArrayObject=function DZ(d,_){if((0,wl.Z)(d))return{createVertexArray:d.createVertexArray.bind(d),deleteVertexArray:d.deleteVertexArray.bind(d),bindVertexArray:d.bindVertexArray.bind(d)};if(_.vao)return null;const T=d.getExtension("OES_vertex_array_object")||d.getExtension("MOZ_OES_vertex_array_object")||d.getExtension("WEBKIT_OES_vertex_array_object");return T?{createVertexArray:T.createVertexArrayOES.bind(T),deleteVertexArray:T.deleteVertexArrayOES.bind(T),bindVertexArray:T.bindVertexArrayOES.bind(T)}:null}(this._gl,this._disabledExtensions)),this._vertexArrayObject}get compressedTextureETC(){return this._compressedTextureETC||(this._compressedTextureETC=function EZ(d,_){if(_.compressedTextureETC)return null;const T=d.getExtension("WEBGL_compressed_texture_etc");return T?{COMPRESSED_R11_EAC:T.COMPRESSED_R11_EAC,COMPRESSED_SIGNED_R11_EAC:T.COMPRESSED_SIGNED_R11_EAC,COMPRESSED_RG11_EAC:T.COMPRESSED_RG11_EAC,COMPRESSED_SIGNED_RG11_EAC:T.COMPRESSED_SIGNED_RG11_EAC,COMPRESSED_RGB8_ETC2:T.COMPRESSED_RGB8_ETC2,COMPRESSED_SRGB8_ETC2:T.COMPRESSED_SRGB8_ETC2,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:T.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:T.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,COMPRESSED_RGBA8_ETC2_EAC:T.COMPRESSED_RGBA8_ETC2_EAC,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:T.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC}:null}(this._gl,this._disabledExtensions)),this._compressedTextureETC}get compressedTextureS3TC(){return this._compressedTextureS3TC||(this._compressedTextureS3TC=function bZ(d,_){if(_.compressedTextureS3TC)return null;const T=d.getExtension("WEBGL_compressed_texture_s3tc");return T?{COMPRESSED_RGB_S3TC_DXT1:T.COMPRESSED_RGB_S3TC_DXT1_EXT,COMPRESSED_RGBA_S3TC_DXT1:T.COMPRESSED_RGBA_S3TC_DXT1_EXT,COMPRESSED_RGBA_S3TC_DXT3:T.COMPRESSED_RGBA_S3TC_DXT3_EXT,COMPRESSED_RGBA_S3TC_DXT5:T.COMPRESSED_RGBA_S3TC_DXT5_EXT}:null}(this._gl,this._disabledExtensions)),this._compressedTextureS3TC}get textureFilterAnisotropic(){return this._textureFilterAnisotropic||(this._textureFilterAnisotropic=function TZ(d,_){if(_.textureFilterAnisotropic)return null;const T=d.getExtension("EXT_texture_filter_anisotropic")||d.getExtension("MOZ_EXT_texture_filter_anisotropic")||d.getExtension("WEBKIT_EXT_texture_filter_anisotropic");return T?{MAX_TEXTURE_MAX_ANISOTROPY:T.MAX_TEXTURE_MAX_ANISOTROPY_EXT,TEXTURE_MAX_ANISOTROPY:T.TEXTURE_MAX_ANISOTROPY_EXT}:null}(this._gl,this._disabledExtensions)),this._textureFilterAnisotropic}get disjointTimerQuery(){return this._disjointTimerQuery||(this._disjointTimerQuery=function LK(d,_){if(_.disjointTimerQuery)return null;let T=d.getExtension("EXT_disjoint_timer_query_webgl2");return T&&(0,wl.Z)(d)?new CL(()=>d.createQuery(),x=>{d.deleteQuery(x),Yd=!1},x=>d.getQueryParameter(x,d.QUERY_RESULT_AVAILABLE),x=>d.getQueryParameter(x,d.QUERY_RESULT),()=>d.getParameter(T.GPU_DISJOINT_EXT),x=>{Yd||(Yd=!0,d.beginQuery(T.TIME_ELAPSED_EXT,x))},()=>{d.endQuery(T.TIME_ELAPSED_EXT),Yd=!1},x=>T.queryCounterEXT(x,T.TIMESTAMP_EXT),()=>d.getQuery(T.TIMESTAMP_EXT,T.QUERY_COUNTER_BITS_EXT)):(T=d.getExtension("EXT_disjoint_timer_query"),T?new CL(()=>T.createQueryEXT(),x=>{T.deleteQueryEXT(x),Yd=!1},x=>T.getQueryObjectEXT(x,T.QUERY_RESULT_AVAILABLE_EXT),x=>T.getQueryObjectEXT(x,T.QUERY_RESULT_EXT),()=>d.getParameter(T.GPU_DISJOINT_EXT),x=>{Yd||(Yd=!0,T.beginQueryEXT(T.TIME_ELAPSED_EXT,x))},()=>{T.endQueryEXT(T.TIME_ELAPSED_EXT),Yd=!1},x=>T.queryCounterEXT(x,T.TIMESTAMP_EXT),()=>T.getQueryEXT(T.TIMESTAMP_EXT,T.QUERY_COUNTER_BITS_EXT)):null)}(this._gl,this._disabledExtensions)),this._disjointTimerQuery}get textureFloat(){return this._textureFloat||(this._textureFloat=function MZ(d,_){if((0,wl.Z)(d))return{textureFloat:!0,textureFloatLinear:!_.textureFloatLinear&&!!d.getExtension("OES_texture_float_linear"),textureHalfFloat:!0,textureHalfFloatLinear:!0,HALF_FLOAT:d.HALF_FLOAT,R16F:d.R16F,RG16F:d.RG16F,RGBA16F:d.RGBA16F,R32F:d.R32F,RG32F:d.RG32F,RGBA32F:d.RGBA32F,R11F_G11F_B10F:d.R11F_G11F_B10F,RGB16F:d.RGB16F};if(d instanceof WebGLRenderingContext){const T=!_.textureHalfFloat&&d.getExtension("OES_texture_half_float");return{textureFloat:!_.textureFloat&&!!d.getExtension("OES_texture_float"),textureFloatLinear:!_.textureFloatLinear&&!!d.getExtension("OES_texture_float_linear"),textureHalfFloat:!!T,textureHalfFloatLinear:!_.textureHalfFloatLinear&&!!d.getExtension("OES_texture_half_float_linear"),HALF_FLOAT:T?T.HALF_FLOAT_OES:void 0}}return null}(this._gl,this._disabledExtensions)),this._textureFloat}get colorBufferFloat(){return this._colorBufferFloat||(this._colorBufferFloat=function PZ(d,_){if((0,wl.Z)(d)){const T=!_.colorBufferHalfFloat&&d.getExtension("EXT_color_buffer_half_float")||!_.colorBufferFloat&&d.getExtension("EXT_color_buffer_float"),x=!_.colorBufferFloat&&d.getExtension("EXT_color_buffer_float"),A=!_.floatBlend&&!_.colorBufferFloat&&d.getExtension("EXT_float_blend");return T||x||A?{textureFloat:!!x,textureHalfFloat:!!T,floatBlend:!!A,R16F:d.R16F,RG16F:d.RG16F,RGBA16F:d.RGBA16F,R32F:d.R32F,RG32F:d.RG32F,RGBA32F:d.RGBA32F,R11F_G11F_B10F:d.R11F_G11F_B10F,RGB16F:d.RGB16F}:null}if(d instanceof WebGLRenderingContext){const T=!_.colorBufferHalfFloat&&d.getExtension("EXT_color_buffer_half_float"),x=!_.colorBufferFloat&&d.getExtension("WEBGL_color_buffer_float"),A=!_.floatBlend&&!_.colorBufferFloat&&d.getExtension("EXT_float_blend");return T||x||A?{textureFloat:!!x,textureHalfFloat:!!T,floatBlend:!!A,RGBA16F:T?T.RGBA16F_EXT:void 0,RGB16F:T?T.RGB16F_EXT:void 0,RGBA32F:x?x.RGBA32F_EXT:void 0}:null}return null}(this._gl,this._disabledExtensions)),this._colorBufferFloat}get blendMinMax(){return this._minMaxBlending||(this._minMaxBlending=function CZ(d,_){if((0,wl.Z)(d))return{MIN:d.MIN,MAX:d.MAX};if(_.blendMinMax)return null;{const T=d.getExtension("EXT_blend_minmax");return T?{MIN:T.MIN_EXT,MAX:T.MAX_EXT}:null}}(this._gl,this._disabledExtensions)),this._minMaxBlending}get depthTexture(){return null===this._depthTexture&&(this._depthTexture=Ty(this._gl,this._disabledExtensions,"depthTexture",!0,["WEBGL_depth_texture","MOZ_WEBGL_depth_texture","WEBKIT_WEBGL_depth_texture"])),this._depthTexture}get standardDerivatives(){return null===this._standardDerivatives&&(this._standardDerivatives=Ty(this._gl,this._disabledExtensions,"standardDerivatives",!0,["OES_standard_derivatives"])),this._standardDerivatives}get shaderTextureLOD(){return null===this._shaderTextureLOD&&(this._shaderTextureLOD=Ty(this._gl,this._disabledExtensions,"shaderTextureLOD",!0,["EXT_shader_texture_lod"])),this._shaderTextureLOD}get fragDepth(){return null===this._fragDepth&&(this._fragDepth=Ty(this._gl,this._disabledExtensions,"fragDepth",!0,["EXT_frag_depth"])),this._fragDepth}get loseContext(){return this._loseContext||(this._loseContext=function xZ(d,_){const T=_.loseContext&&d.getExtension("WEBGL_lose_context");return T?{loseRenderingContext:()=>T.loseContext()}:null}(this._gl,this._debugWebGLExtensions)),this._loseContext}get textureNorm16(){return this._textureNorm16||(this._textureNorm16=function OZ(d,_){if(!(0,wl.Z)(d)||_.textureNorm16)return null;const T=d.getExtension("EXT_texture_norm16");return T?{R16:T.R16_EXT,RG16:T.RG16_EXT,RGB16:T.RGB16_EXT,RGBA16:T.RGBA16_EXT,R16_SNORM:T.R16_SNORM_EXT,RG16_SNORM:T.RG16_SNORM_EXT,RGB16_SNORM:T.RGB16_SNORM_EXT,RGBA16_SNORM:T.RGBA16_SNORM_EXT}:null}(this._gl,this._disabledExtensions)),this._textureNorm16}get textureFloatLinear(){return null===this._textureFloatLinear&&(this._textureFloatLinear=Ty(this._gl,this._disabledExtensions,"textureFloatLinear",!1,["OES_texture_float_linear"])),this._textureFloatLinear}enable(_){return this[_]}}class AZ{constructor(_,T){this.gl=_,this.instanceCounter=new WK,this.programCache=new dZ(this),this._state=new xL,this._numOfDrawCalls=0,this._numOfTriangles=0,this.type=(0,wl.Z)(_)?cl.zO.WEBGL2:cl.zO.WEBGL1,this._loadExtensions(),this.configure(T)}configure(_){this._capabilities=new SZ(this.gl,_),this._parameters=this._loadParameters(_);const T=this.gl.getParameter(this.gl.VIEWPORT);this._state=new xL,this._state.viewport={x:T[0],y:T[1],width:T[2],height:T[3]},this._stateTracker=new Ds.jp({setBlending:x=>{if(x){this.setBlendingEnabled(!0),this.setBlendEquationSeparate(x.opRgb,x.opAlpha),this.setBlendFunctionSeparate(x.srcRgb,x.dstRgb,x.srcAlpha,x.dstAlpha);const A=x.color;this.setBlendColor(A.r,A.g,A.b,A.a)}else this.setBlendingEnabled(!1)},setCulling:x=>{x?(this.setFaceCullingEnabled(!0),this.setCullFace(x.face),this.setFrontFace(x.mode)):this.setFaceCullingEnabled(!1)},setPolygonOffset:x=>{x?(this.setPolygonOffsetFillEnabled(!0),this.setPolygonOffset(x.factor,x.units)):this.setPolygonOffsetFillEnabled(!1)},setDepthTest:x=>{x?(this.setDepthTestEnabled(!0),this.setDepthFunction(x.func)):this.setDepthTestEnabled(!1)},setStencilTest:x=>{if(x){this.setStencilTestEnabled(!0);const A=x.function;this.setStencilFunction(A.func,A.ref,A.mask);const U=x.operation;this.setStencilOp(U.fail,U.zFail,U.zPass)}else this.setStencilTestEnabled(!1)},setDepthWrite:x=>{x?(this.setDepthWriteEnabled(!0),this.setDepthRange(x.zNear,x.zFar)):this.setDepthWriteEnabled(!1)},setColorWrite:x=>{x?this.setColorMask(x.r,x.g,x.b,x.a):this.setColorMask(!1,!1,!1,!1)},setStencilWrite:x=>{this.setStencilWriteMask(x?x.mask:0)}}),this.enforceState(),this._driverTest=new gZ(this)}get driverTest(){return this._driverTest}get contextAttributes(){return this.gl.getContextAttributes()}get parameters(){return this._parameters}dispose(){this.programCache.dispose(),this.bindVAO(null),this.unbindBuffer(xt.w0.ARRAY_BUFFER),this.unbindBuffer(xt.w0.ELEMENT_ARRAY_BUFFER),(0,wl.Z)(this.gl)&&(this.unbindBuffer(xt.w0.UNIFORM_BUFFER),this._state.uniformBufferBindingPoints.length=0,this.unbindBuffer(xt.w0.PIXEL_PACK_BUFFER),this.unbindBuffer(xt.w0.PIXEL_UNPACK_BUFFER),this.unbindBuffer(xt.w0.COPY_READ_BUFFER),this.unbindBuffer(xt.w0.COPY_WRITE_BUFFER)),this._state.textureUnitMap.length=0,(0,vu.hZ)()&&this.instanceCounter.printResourceCount()}setPipelineState(_){this._stateTracker.setPipeline(_)}setBlendingEnabled(_){this._state.blend!==_&&(!0===_?this.gl.enable(this.gl.BLEND):this.gl.disable(this.gl.BLEND),this._state.blend=_,this._stateTracker.invalidateBlending())}externalProgramUpdate(){this._state.program?.stop(),this._state.program=null}externalTextureUnitUpdate(_,T){for(let x=0;x<_.length;++x)this._state.textureUnitMap[_[x]]=null;T>=0&&(this._state.activeTexture=T)}externalVertexArrayObjectUpdate(){const _=this.capabilities.vao;_&&(_.bindVertexArray(null),this._state.vertexArrayObject=null),this._state.vertexBuffer=null,this._state.indexBuffer=null}externalVertexBufferUpdate(){this._state.vertexBuffer=null}externalIndexBufferUpdate(){this._state.indexBuffer=null}setBlendColor(_,T,x,A){_===this._state.blendColor.r&&T===this._state.blendColor.g&&x===this._state.blendColor.b&&A===this._state.blendColor.a||(this.gl.blendColor(_,T,x,A),this._state.blendColor.r=_,this._state.blendColor.g=T,this._state.blendColor.b=x,this._state.blendColor.a=A,this._stateTracker.invalidateBlending())}setBlendFunction(_,T){_===this._state.blendFunction.srcRGB&&T===this._state.blendFunction.dstRGB||(this.gl.blendFunc(_,T),this._state.blendFunction.srcRGB=_,this._state.blendFunction.srcAlpha=_,this._state.blendFunction.dstRGB=T,this._state.blendFunction.dstAlpha=T,this._stateTracker.invalidateBlending())}setBlendFunctionSeparate(_,T,x,A){this._state.blendFunction.srcRGB===_&&this._state.blendFunction.srcAlpha===x&&this._state.blendFunction.dstRGB===T&&this._state.blendFunction.dstAlpha===A||(this.gl.blendFuncSeparate(_,T,x,A),this._state.blendFunction.srcRGB=_,this._state.blendFunction.srcAlpha=x,this._state.blendFunction.dstRGB=T,this._state.blendFunction.dstAlpha=A,this._stateTracker.invalidateBlending())}setBlendEquation(_){this._state.blendEquation.mode!==_&&(this.gl.blendEquation(_),this._state.blendEquation.mode=_,this._state.blendEquation.modeAlpha=_,this._stateTracker.invalidateBlending())}setBlendEquationSeparate(_,T){this._state.blendEquation.mode===_&&this._state.blendEquation.modeAlpha===T||(this.gl.blendEquationSeparate(_,T),this._state.blendEquation.mode=_,this._state.blendEquation.modeAlpha=T,this._stateTracker.invalidateBlending())}setColorMask(_,T,x,A){this._state.colorMask.r===_&&this._state.colorMask.g===T&&this._state.colorMask.b===x&&this._state.colorMask.a===A||(this.gl.colorMask(_,T,x,A),this._state.colorMask.r=_,this._state.colorMask.g=T,this._state.colorMask.b=x,this._state.colorMask.a=A,this._stateTracker.invalidateColorWrite())}setClearColor(_,T,x,A){this._state.clearColor.r===_&&this._state.clearColor.g===T&&this._state.clearColor.b===x&&this._state.clearColor.a===A||(this.gl.clearColor(_,T,x,A),this._state.clearColor.r=_,this._state.clearColor.g=T,this._state.clearColor.b=x,this._state.clearColor.a=A)}setFaceCullingEnabled(_){this._state.faceCulling!==_&&(!0===_?this.gl.enable(this.gl.CULL_FACE):this.gl.disable(this.gl.CULL_FACE),this._state.faceCulling=_,this._stateTracker.invalidateCulling())}setPolygonOffsetFillEnabled(_){this._state.polygonOffsetFill!==_&&(!0===_?this.gl.enable(this.gl.POLYGON_OFFSET_FILL):this.gl.disable(this.gl.POLYGON_OFFSET_FILL),this._state.polygonOffsetFill=_,this._stateTracker.invalidatePolygonOffset())}setPolygonOffset(_,T){this._state.polygonOffset[0]===_&&this._state.polygonOffset[1]===T||(this._state.polygonOffset[0]=_,this._state.polygonOffset[1]=T,this.gl.polygonOffset(_,T),this._stateTracker.invalidatePolygonOffset())}setCullFace(_){this._state.cullFace!==_&&(this.gl.cullFace(_),this._state.cullFace=_,this._stateTracker.invalidateCulling())}setFrontFace(_){this._state.frontFace!==_&&(this.gl.frontFace(_),this._state.frontFace=_,this._stateTracker.invalidateCulling())}setScissorTestEnabled(_){this._state.scissorTest!==_&&(!0===_?this.gl.enable(this.gl.SCISSOR_TEST):this.gl.disable(this.gl.SCISSOR_TEST),this._state.scissorTest=_)}setScissorRect(_,T,x,A){this._state.scissorRect.x===_&&this._state.scissorRect.y===T&&this._state.scissorRect.width===x&&this._state.scissorRect.height===A||(this.gl.scissor(_,T,x,A),this._state.scissorRect.x=_,this._state.scissorRect.y=T,this._state.scissorRect.width=x,this._state.scissorRect.height=A)}setDepthTestEnabled(_){this._state.depthTest!==_&&(!0===_?this.gl.enable(this.gl.DEPTH_TEST):this.gl.disable(this.gl.DEPTH_TEST),this._state.depthTest=_,this._stateTracker.invalidateDepthTest())}setClearDepth(_){this._state.clearDepth!==_&&(this.gl.clearDepth(_),this._state.clearDepth=_)}setDepthFunction(_){this._state.depthFunction!==_&&(this.gl.depthFunc(_),this._state.depthFunction=_,this._stateTracker.invalidateDepthTest())}setDepthWriteEnabled(_){this._state.depthWrite!==_&&(this.gl.depthMask(_),this._state.depthWrite=_,this._stateTracker.invalidateDepthWrite())}setDepthRange(_,T){this._state.depthRange.zNear===_&&this._state.depthRange.zFar===T||(this.gl.depthRange(_,T),this._state.depthRange.zNear=_,this._state.depthRange.zFar=T,this._stateTracker.invalidateDepthWrite())}setStencilTestEnabled(_){this._state.stencilTest!==_&&(!0===_?this.gl.enable(this.gl.STENCIL_TEST):this.gl.disable(this.gl.STENCIL_TEST),this._state.stencilTest=_,this._stateTracker.invalidateStencilTest())}setClearStencil(_){_!==this._state.clearStencil&&(this.gl.clearStencil(_),this._state.clearStencil=_)}setStencilFunction(_,T,x){this._state.stencilFunction.func===_&&this._state.stencilFunction.ref===T&&this._state.stencilFunction.mask===x||(this.gl.stencilFunc(_,T,x),this._state.stencilFunction.face=xt.LR.FRONT_AND_BACK,this._state.stencilFunction.func=_,this._state.stencilFunction.ref=T,this._state.stencilFunction.mask=x,this._stateTracker.invalidateStencilTest())}setStencilFunctionSeparate(_,T,x,A){this._state.stencilFunction.face===_&&this._state.stencilFunction.func===T&&this._state.stencilFunction.ref===x&&this._state.stencilFunction.mask===A||(this.gl.stencilFuncSeparate(_,T,x,A),this._state.stencilFunction.face=_,this._state.stencilFunction.func=T,this._state.stencilFunction.ref=x,this._state.stencilFunction.mask=A,this._stateTracker.invalidateStencilTest())}setStencilWriteMask(_){this._state.stencilWriteMask!==_&&(this.gl.stencilMask(_),this._state.stencilWriteMask=_,this._stateTracker.invalidateStencilWrite())}setStencilOp(_,T,x){this._state.stencilOperation.face===xt.LR.FRONT_AND_BACK&&this._state.stencilOperation.fail===_&&this._state.stencilOperation.zFail===T&&this._state.stencilOperation.zPass===x||(this.gl.stencilOp(_,T,x),this._state.stencilOperation.face=xt.LR.FRONT_AND_BACK,this._state.stencilOperation.fail=_,this._state.stencilOperation.zFail=T,this._state.stencilOperation.zPass=x,this._stateTracker.invalidateStencilTest())}setStencilOpSeparate(_,T,x,A){this._state.stencilOperation.face===_&&this._state.stencilOperation.fail===T&&this._state.stencilOperation.zFail===x&&this._state.stencilOperation.zPass===A||(this.gl.stencilOpSeparate(_,T,x,A),this._state.stencilOperation.face=_,this._state.stencilOperation.fail=T,this._state.stencilOperation.zFail=x,this._state.stencilOperation.zPass=A,this._stateTracker.invalidateStencilTest())}setActiveTexture(_,T=!1){const x=this._state.activeTexture;return _>=0&&(T||_!==this._state.activeTexture)&&(this.gl.activeTexture(xt.Ld+_),this._state.activeTexture=_),x}clear(_){_&&this.gl.clear(_)}clearSafe(_,T=255){_&&(_&xt.lk.COLOR_BUFFER_BIT&&this.setColorMask(!0,!0,!0,!0),_&xt.lk.DEPTH_BUFFER_BIT&&this.setDepthWriteEnabled(!0),_&xt.lk.STENCIL_BUFFER_BIT&&this.setStencilWriteMask(T),this.gl.clear(_))}drawArrays(_,T,x){if((0,vu.hZ)()&&(this._numOfDrawCalls++,this._numOfTriangles+=JL(_,x)),this.gl.drawArrays(_,T,x),(0,vu.hZ)()){const A=(0,No.HH)(this);A&&console.error("drawArrays:",A)}}drawElements(_,T,x,A){if((0,vu.hZ)()&&(this._numOfDrawCalls++,this._numOfTriangles+=JL(_,T)),this.gl.drawElements(_,T,x,A),(0,vu.hZ)()){const U=(0,No.HH)(this);if(U){const ne=this.getBoundVAO(),fe=ne?.indexBuffer,Oe=ne?.vertexBuffers,we={indexBuffer:fe,vertexBuffers:Oe},Ze={mode:_,count:T,type:x,offset:A},it=(0,Qe.yw)(fe,Tt=>Tt.size)??0,lt=A+T;console.error(`drawElements: ${U}${it=this.parameters.maxTextureImageUnits||T<0)&&console.error("Input texture unit is out of range of available units!");const A=this._state.textureUnitMap[T];return(0,Qe.Wi)(_)||null==_.glName?((0,Qe.pC)(A)&&(this.setActiveTexture(T,x),this.gl.bindTexture(A.descriptor.target,null)),this._state.textureUnitMap[T]=null,A):x||A!==_?(this.setActiveTexture(T,x),this.gl.bindTexture(_.descriptor.target,_.glName),_.applyChanges(),this._state.textureUnitMap[T]=_,A):(_.isDirty&&(this.setActiveTexture(T,x),_.applyChanges()),A)}unbindTexture(_){if(!(0,Qe.Wi)(_))for(let T=0;T=this.parameters.maxUniformBufferBindings||T<0)return console.error("Uniform buffer binding point is out of range!"),null;const x=this._state.uniformBufferBindingPoints;let A=x[T];return(0,Qe.Wi)(A)&&(A={buffer:null,offset:0,size:0},x[T]=A),A}bindBufferBase(_,T,x){const A=this._getBufferBinding(_,T);(0,Qe.Wi)(A)||A.buffer===x&&0===A.offset&&0===A.size||(this.gl.bindBufferBase(_,T,x?x.glName:null),A.buffer=x,A.offset=0,A.size=0)}bindBufferRange(_,T,x,A,U){const ne=this._getBufferBinding(_,T);if(!(0,Qe.Wi)(ne)&&(ne.buffer!==x||ne.offset!==A||ne.size!==U)){if(A%this._parameters.uniformBufferOffsetAlignment!=0)return void console.error("Uniform buffer binding offset is not a multiple of the context offset alignment");this.gl.bindBufferRange(_,T,x.glName,A,U),ne.buffer=x,ne.offset=A,ne.size=U}}bindUBO(_,T,x,A){(0,Qe.Wi)(T)?this.bindBufferBase(xt.w0.UNIFORM_BUFFER,_,null):((0,vu.hZ)()&&(A??T.byteLength)>this._parameters.maxUniformBlockSize&&console.error("Attempting to bind more data than the maximum uniform block size"),T.initialize(),void 0!==x&&void 0!==A?this.bindBufferRange(xt.w0.UNIFORM_BUFFER,_,T.buffer,x,A):this.bindBufferBase(xt.w0.UNIFORM_BUFFER,_,T.buffer))}unbindUBO(_){for(let T=0,x=this._state.uniformBufferBindingPoints.length;T0||super.dispose()}ref(){++this._refCount}bindTechnique(_,T,x,A){return this.useProgram(_.program),_.bindPipelineState(this,x?.slot,A),_.program.bindPass(T,x),_.program}get test(){return this.programCache.test}}var RZ=v(80855),wZ=v(97825);let Cf=class extends Ns.Z{constructor(d,_,T){super({}),this._stage=d,this._techniqueRepository=_,this._rctx=T,this._textures=new Map,this._loadingCount=0,this._frameUpdates=new Map,this.events=new Va.Z,this._frameTask=d.resourceController.scheduler.registerTask(Fn.T8.TEXTURE_UNLOAD)}normalizeCtorArgs(){return{}}dispose(){this._frameTask.remove(),this._stage.forEachOfType(Y2.U.Texture,d=>d.unload())}get updating(){return this._loadingCount>0||this._frameTask.updating}get textureTechnique(){return(0,Qe.Wi)(this._textureTechnique)&&(this._textureTechnique=this._techniqueRepository.acquire(RZ.K,new wZ.V)),this._textureTechnique}acquire(d){const _=this._textures.get(d);return _?(_.ref(),(0,Qe.Pt)(_.loadingPromise,_)):this._createNewRef(d)}update(){let d=!1;this._frameUpdates.forEach(_=>{const T=_.texture.frameUpdate(this._rctx,this.textureTechnique,_.previousToken);T>=0&&T!==_.previousToken&&(_.previousToken=T,d=!0)}),d&&this.events.emit("changed",Fi.Xx.BACKGROUND)}_createNewRef(d){const _=this._stage.getObject(d);if((0,Qe.Wi)(_))return(0,Wc.hu)(void 0!==_),null;const T=_.events.on("unloaded",()=>{T.remove(),this._onTextureUnloaded(d)}),x=new IZ(d,()=>{this._frameTask.schedule(()=>{x.isUnreferenced&&_.unload()})});return this._textures.set(d,x),x.ref(),(0,Qe.pC)(_.glTexture)?(this._updateGLTexture(x,_.glTexture),_.requiresFrameUpdates&&this._frameUpdates.set(d,{texture:_,previousToken:-1}),x):(this._loadingCount++,x.loadingPromise=this._stage.schedule(()=>{const A=_.load(this._rctx,()=>this.textureTechnique),U=fe=>(this._loadingCount--,x.loadingPromise=null,this._updateGLTexture(x,fe),_.requiresFrameUpdates&&this._frameUpdates.set(d,{texture:_,previousToken:-1}),x);return(0,ws.y8)(A)?A.then(U,fe=>(this._loadingCount--,x.loadingPromise=null,(0,ws.D_)(fe)||Us.Z.getLogger(this.declaredClass).error(fe),null)):U(A)}),x.loadingPromise)}_updateGLTexture(d,_){d.glTexture=_,this.events.emit("changed",Fi.Xx.UPDATE)}_onTextureUnloaded(d){this._textures.delete(d),this._frameUpdates.delete(d)}};(0,Ve._)([(0,ke.Cb)()],Cf.prototype,"_loadingCount",void 0),(0,Ve._)([(0,ke.Cb)()],Cf.prototype,"_frameTask",void 0),(0,Ve._)([(0,ke.Cb)()],Cf.prototype,"updating",null),Cf=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.lib.TextureRepository")],Cf);class IZ{constructor(_,T){this.id=_,this._release=T,this._refCount=0}get isUnreferenced(){return 0===this._refCount}ref(){++this._refCount}release(){--this._refCount,this._refCount>0||(0!==this._refCount?(Us.Z.getLogger("esri.views.3d.webgl-engine.lib.TextureRepository.RefCountedTextureImpl").error("Cannot dereference texture that has no references!"),this._refCount=0):this._release())}}var LZ=v(51899);let My=class extends Ns.Z{constructor(){super(...arguments),this._passParameters=new BZ,this._loading=0}get passParameters(){return this._passParameters}dispose(){this._passParameters.waveNormal=(0,Qe.M2)(this._passParameters.waveNormal),this._passParameters.wavePertubation=(0,Qe.M2)(this._passParameters.wavePertubation)}get updating(){return this._loading>0}ensureResources(d){if(this._loading>0)return Fi.Rw.LOADING;if((0,Qe.pC)(this._passParameters.waveNormal)&&(0,Qe.pC)(this._passParameters.wavePertubation))return Fi.Rw.LOADED;const _={target:xt.No.TEXTURE_2D,pixelFormat:xt.VI.RGBA,dataType:xt.Br.UNSIGNED_BYTE,wrapMode:xt.e8.REPEAT,samplingMode:xt.cw.LINEAR_MIPMAP_LINEAR,hasMipmap:!0,maxAnisotropy:8};return++this._loading,(0,C0.t)((0,Uv.V)("esri/images/materials/water/normals.jpg")).then(T=>this._passParameters.waveNormal=new Ro.x(d,{..._,width:T.width,height:T.height},T)).catch(T=>Us.Z.getLogger(this.declaredClass).error("Failed to load water material normal texture.",T)).finally(()=>--this._loading),++this._loading,(0,C0.t)((0,Uv.V)("esri/images/materials/water/perturbation.jpg")).then(T=>this._passParameters.wavePertubation=new Ro.x(d,{..._,width:T.width,height:T.height},T)).catch(T=>Us.Z.getLogger(this.declaredClass).error("Failed to load water material pertubation texture.",T)).finally(()=>--this._loading),Fi.Rw.LOADING}};(0,Ve._)([(0,ke.Cb)()],My.prototype,"_loading",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],My.prototype,"updating",null),My=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.materials.internal.WaterTextureRepository")],My);class BZ extends lu.K{}const jZ=new Map;function WZ(d,_){const{format:T,quality:x,rotation:A,disableDecorations:U}=d||{},ne=nx(d,_.padding),fe=function YZ(d,_){const T={x:0,y:0,width:_.width,height:_.height};if(d&&d.area){null!=d.area.x&&(T.x=Math.floor(d.area.x)),null!=d.area.y&&(T.y=Math.floor(d.area.y));const x=null!=d.area.width?Math.floor(d.area.width):null,A=null!=d.area.height?Math.floor(d.area.height):null;if(T.width=_.width-T.x,T.height=_.height-T.y,null!=x&&null!=A)T.width=Math.min(T.width,x),T.height=Math.min(T.height,A);else if(null==x&&null!=A){const U=Math.min(T.width,x);T.height=U/T.width*T.height,T.width=U}else if(null!=x&&null==A){const U=Math.min(T.height,A);T.width=U/T.height*T.width,T.height=U}}return function XZ(d,_){const T=Math.floor(Math.max(d.x,0)),x=Math.floor(Math.max(d.y,0)),A={x:T,y:x,width:Math.floor(Math.min(d.width,_.width-T)),height:Math.floor(Math.min(d.height,_.height-x))},U=A.width/A.height,ne=d.width/d.height;if(ne===U)return A;if(ne>U){const we=Math.floor(A.width/ne);return{x:A.x,y:Math.floor(A.y+(A.height-we)/2),width:A.width,height:we}}const fe=Math.floor(A.height*ne);return{x:Math.floor(A.x+(A.width-fe)/2),y:A.y,width:fe,height:A.height}}(function kZ(d,_){if(!_||null==_.width||null==_.height)return d;const T=_.width/_.height,x=d.width/d.height;if(x===T)return d;if(x0){const U=255/A;_[x+0]=_[x+0]*U,_[x+1]=_[x+1]*U,_[x+2]=_[x+2]*U}}}(d),T.width=d.width,T.height=d.height;const x=T.getContext("2d");return x.putImageData(d,0,0),_.flipY&&function JZ(d){d.save(),d.globalCompositeOperation="copy",d.scale(1,-1),d.translate(0,-d.canvas.height),d.drawImage(d.canvas,0,0),d.restore()}(x),{ctx:x,canvas:T}}function rU(d){d.width=0,d.height=0}let ix=null;function nx(d,_){return!_||d&&d.ignorePadding?t$:_}const qZ={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg"},e$="png",nU={png:100,jpg:98,jpeg:98},t$={top:0,right:0,bottom:0,left:0};var ox=v(90740);class r${constructor(_,T){this.viewCamera=_,this.frameHasDecorations=T}}class s$ extends Ea.Xn{constructor(_,T,x,A){super(),this._rctx=_,this._renderFunctions=T,this._forceCameraHook=x,this._disposeOffscreenBuffers=A,this.supersample=!0,this._screenshotQueue=new Array}dispose(){this._rctx=null}takeScreenshot(_){var T=this;return(0,kr.Z)(function*(){yield T._renderFunctions.prepareOverlay(),T._renderFunctions.requestRenderScene(Fi.Xx.BACKGROUND);const x=(0,ws.hh)();return T._screenshotQueue.push({settings:_,resolver:x}),x.promise})()}update(_,T){for(const x of this._screenshotQueue){if(this.isDisposed){x.resolver.reject();continue}const A={...x.settings,pixelRatio:x.settings.pixelRatio*_.viewCamera.pixelRatio},U=this._renderScreenshot(_,A,T);x.resolver(U)}this._screenshotQueue.length=0}_renderScreenshotOverlay(_,T,x){_.width=T.width,_.height=T.height;const A=_.getContext("2d"),U=x.pixelRatio;return A.save(),A.translate(0,T.height),A.scale(1,-1),x.region&&A.translate(-x.region.x,-x.region.y),A.scale(U,U),T=this._renderFunctions.renderOverlay(_,T),A.restore(),T}_readbackScreenshot(_,T){return _.resample?this._readbackScreenshotResampled(_,T):this._readbackScreenshotImmediate(_,T)}_readbackScreenshotResampled(_,T){const{framebufferWidth:x,framebufferHeight:A,region:U,resample:ne}=_,fe=this._ensureScreenshotEncodeCanvas();let Oe=(0,ox.r)(x,A,fe);return this._rctx.gl.readPixels(0,0,x,A,xt.VI.RGBA,xt.g.UNSIGNED_BYTE,new Uint8Array(Oe.data.buffer)),T(),Oe=this._renderScreenshotOverlay(fe,Oe,{..._,region:null}),function KZ(d,_,T,x=0,A=0,U=d.width-x,ne=d.height-A,fe=!1){const{data:Oe}=d,{width:we,height:Ze,data:it}=_,lt=U/we,dt=ne/Ze,Tt=Math.ceil(lt/2),mt=Math.ceil(dt/2),Mt=d.width;for(let Pt=0;Pt=1)continue;let Gr=2*wr*wr*wr-3*wr*wr+1;const zr=4*(x+Vr+(A+cs)*Mt);$r+=Gr*Oe[zr+3],nr+=Gr,!T&&Oe[zr+3]<255&&(Gr=Gr*Oe[zr+3]/255),Jt+=Gr*Oe[zr],Rr+=Gr*Oe[zr+1],Br+=Gr*Oe[zr+2],Zt+=Gr}}it[Bt]=Jt/Zt,it[Bt+1]=Rr/Zt,it[Bt+2]=Br/Zt,it[Bt+3]=$r/nr}return _}(Oe,(0,ox.r)(U.width,U.height,fe),!0,ne.region.x,A-(ne.region.y+ne.region.height),ne.region.width,ne.region.height)}_readbackScreenshotImmediate(_,T){const{framebufferHeight:x,region:A}=_,U=this._ensureScreenshotEncodeCanvas(),ne=(0,ox.r)(A.width,A.height,U);return this._rctx.gl.readPixels(A.x,x-(A.y+A.height),A.width,A.height,xt.VI.RGBA,xt.g.UNSIGNED_BYTE,new Uint8Array(ne.data.buffer)),T(),this._renderScreenshotOverlay(U,ne,_)}_renderScreenshot(_,T,x){let A=null,U=null;const ne=_.viewCamera,{framebufferWidth:fe,framebufferHeight:Oe}=T;let we=!1;const dt=fe!==ne.fullWidth||Oe!==ne.fullHeight||T.disableDecorations&&_.frameHasDecorations||T.ignorePadding&&ne.pixelRatio!==T.pixelRatio||T.objectAndLayerIdColor;if(T.objectAndLayerIdColor&&(U=new Aa.X(this._rctx,{width:fe,height:Oe,colorTarget:xt.Lm.TEXTURE,depthStencilTarget:xt.OU.DEPTH_STENCIL_RENDER_BUFFER})),dt){const Pt=ne.clone();if(T.ignorePadding){const Zt=(0,Tn.d)(Pt.padding);for(let nr=0;nr<4;nr++)Zt[nr]=Math.round(Zt[nr]/Pt.pixelRatio*T.pixelRatio);Pt.padding=Zt}Pt.fullWidth=fe,Pt.fullHeight=Oe,Pt.pixelRatio=T.pixelRatio;const Nt=ne.fovX-Pt.fovX,Bt=ne.fovY-Pt.fovY;Nt<0&&Nt{this._rctx.bindFramebuffer(null),(0,Qe.M2)(A)},mt=this._readbackScreenshot(T,Tt);Tt();let Mt=null;if(T.objectAndLayerIdColor){const Pt=()=>{this._rctx.bindFramebuffer(null),(0,Qe.M2)(U)};this._rctx.bindFramebuffer(U),Mt=this._readbackScreenshot(T,Pt),this._rctx.bindFramebuffer(null),Pt()}if(dt&&!this._rctx.contextAttributes.alpha)for(let Pt=3;Ptthis.waterTextureRepository?.updating,()=>this.requestRender(),Ht.nn),this._magnifierHelper.events.on("request-render",()=>this.requestRender()),this._stippleTextureRepository=new LZ.h0(this._rctx),this._shaderTechniqueRepository=new eG.M({rctx:this._rctx,viewingMode:d.viewingMode,stippleTextureRepository:this._stippleTextureRepository,waterTextureRepository:this.waterTextureRepository}),this._textureRepository=new Cf(d,this._shaderTechniqueRepository,this._rctx),this._textureRepository.events.on("changed",T=>this.requestRender(T)),this._materialRepository=new mG.h(this._textureRepository,this._shaderTechniqueRepository,()=>this.requestRender(),()=>this.requestRender()),this._compositingHelper=new tG(this._rctx,this._shaderTechniqueRepository),this._renderer=new Xd(this._materialRepository,this._textureRepository,this._shaderTechniqueRepository,this._rctx,this._compositingHelper,this._magnifierHelper,T=>this.requestRender(T),(T,x)=>d.schedule(T,x),d),this._screenshotManager=new s$(this._rctx,{renderScene:(T,x,A,U,ne)=>this._renderer.render(T,x,{camera:A,contentCamera:A,mode:Lu.n.IDLE},U,ne),requestRenderScene:T=>this.requestRender(T),prepareOverlay:()=>d.options.screenshot.prepareOverlay(),renderOverlay:(T,x)=>d.options.screenshot.renderOverlay(T,x)},T=>this.events.emit("force-camera-for-screenshot",T),()=>this._renderer.disposeOffscreenBuffers()),this._registerFrameTask(d)}normalizeCtorArgs(){return{}}dispose(){this._container.contains(this._canvas)&&this._container.removeChild(this._canvas),this._frameTask=(0,Qe.hw)(this._frameTask),this._shaderTechniqueRepository=(0,Qe.M2)(this._shaderTechniqueRepository),super.dispose(),this._tmpDepthBuffer=null,this._rctx=null}get performanceInfo(){const d=this._rctx.gl;return{renderer:this._renderer.performanceInfo,textureMemory:void 0!==d.getUsedTextureMemory?d.getUsedTextureMemory():void 0,renderbufferMemory:void 0!==d.getUsedRenderbufferMemory?d.getUsedRenderbufferMemory():void 0,VBOMemory:void 0!==d.getUsedVBOMemory?d.getUsedVBOMemory():void 0}}requestRender(d=Fi.Xx.UPDATE){this._needsRender=!0,d===Fi.Xx.UPDATE&&(this._needsUpdate=!0)}get updating(){return this._needsUpdate||this._needsWaterReflectionUpdate||this._renderer.updating||this._textureRepository.updating||this.waterTextureRepository.updating||this._magnifierHelper.updating}ensureEdgeView(){return this._renderer.ensureEdgeView()}get edgeView(){return this._renderer.edgeView}get textureRepository(){return this._textureRepository}get compositingHelper(){return this._compositingHelper}set magnifier(d){this._magnifierHelper.magnifier=d}setRenderParameters(d){void 0!==d.idleSuspend&&this._idleSuspend!==!!d.idleSuspend&&(this._idleSuspend=!!d.idleSuspend,this.requestRender()),this._renderer.setRenderParameters(d)}get renderingContext(){return this._rctx}get capabilities(){return this._rctx.capabilities}modify(d){this._renderer.modify(d),d.clear()}get canvas(){return this._canvas}takeScreenshot(d){return this._screenshotManager.takeScreenshot(d).then(_=>_[0])}takeScreenshotWithOID(d){return d.objectAndLayerIdColor=!0,this._screenshotManager.takeScreenshot(d)}getAlpha(){return this._rctx.contextAttributes.alpha}get shadowsEnabled(){return this._renderer.shadowsEnabled}readAccumulatedShadow(d){return this._renderer.readAccumulatedShadow(d[0],d[1])}readHUDVisibility(d,_,T,x,A){this._renderer.readHUDVisibility(d,_,T,x,A)}getMinimalDepthForArea(d,_,T,x,A,U=A){const ne=x.constrainWindowSize(_,T,A*x.pixelRatio,U*x.pixelRatio),fe=this._ensureDepthBuffer(ne);this._renderer.readDepthPixels(x,ne,fe);let Oe=Number.MAX_VALUE;for(let we=0;weZe&&Ze!==x.nearFar[0]&&Ze!==x.nearFar[1]&&(Oe=Ze)}if((0,Qe.pC)(d)){const we=d.pickDepth(_*x.pixelRatio,T*x.pixelRatio,x);(0,Qe.pC)(we)&&Oe>we&&we!==x.nearFar[0]&&we!==x.nearFar[1]&&(Oe=we)}return Oe===Number.MAX_VALUE?void 0:Oe}_ensureDepthBuffer(d){const _=4*d[2]*d[3];return((0,Qe.Wi)(this._tmpDepthBuffer)||this._tmpDepthBuffer.byteLength<_)&&(this._tmpDepthBuffer=new Uint8Array(_)),this._tmpDepthBuffer}get renderPlugins(){return this._renderer.renderPlugins}get test(){return{renderer:this._renderer}}get gpuMemoryUsage(){return this._renderer.gpuMemoryUsage}reloadShaders(){var d=this;return(0,kr.Z)(function*(){Cw(),yield d._shaderTechniqueRepository.reloadAll(),d.requestRender()})()}get animationTimestep(){return this._renderer.animationTimestep}_registerFrameTask(d){const _=d.state;let T=!1,x=Fi.Xx.BACKGROUND,A=!1;this._frameTask=(0,gd.A)({preRender:({time:ne})=>{T=this.updating,x=this._needsUpdate?Fi.Xx.UPDATE:Fi.Xx.BACKGROUND,d.processSyncLayers(),(ne-this._lastAnimationUpdate>this.animationTimestep||(0,Qe.pC)(_.forcedAnimationTime)||T||this._needsRender)&&(ne=(0,Qe.Pt)(_.forcedAnimationTime,ne),this._renderer.updateAnimation({camera:_.camera,time:ne})&&this.requestRender(Fi.Xx.BACKGROUND),this._lastAnimationUpdate=ne)},render:({time:ne})=>{if((this._needsRender||!this._idleSuspend||!this._renderer.isCameraFinal||this._needsWaterReflectionUpdate)&&_.camera.fullWidth>0&&_.camera.fullHeight>0){const fe=this._needsUpdate&&this._idleSuspend&&this._renderer.isCameraFinal;this._needsRender=!1,this._needsUpdate=!1,this._needsWaterReflectionUpdate=!1,this._renderer.render(null,null,_,Fi.Iq.ON,ne),A=!0,fe&&this._renderer.hasWaterReflection&&(this.requestRender(Fi.Xx.BACKGROUND),this._needsWaterReflectionUpdate=!0)}},update:({time:ne})=>{const fe=new r$(_.camera,this._renderer.hasSlicePlane||this._magnifierHelper.enabled);this._textureRepository.update(),this._screenshotManager.update(fe,ne)},finish:()=>{A&&(this._renderer.finish(_.mode===Lu.n.IDLE?x:Fi.Xx.UPDATE),A=!1)}})}_initializeContext(d){const _=d.options;this._canvas=_.canvas,this._canvas||(this._canvas=document.createElement("canvas")),this._canvas.setAttribute("style","width: 100%; height:100%; display:block;");const x=(0,cl.sj)("3d",this._canvas,{alpha:_.alpha||!1,premultipliedAlpha:!0,antialias:!1,depth:!0,stencil:null==_.stencil||_.stencil,powerPreference:"high-performance",preserveDrawingBuffer:_.preserveDrawingBuffer??!1});if((0,Qe.Wi)(x)){const A=(0,So.Z)("esri-force-webgl");Us.Z.getLogger(this.declaredClass).error(A)}else this._rctx=this._newRenderingContext(x,d),this._loadShaderOnlyExtensions(),!_.alpha&&this._rctx.contextAttributes.alpha&&Us.Z.getLogger(this.declaredClass).error("WebGL context has alpha channel even though no alpha channel was requested"),!this._rctx.contextAttributes.alpha&&(0,So.Z)("safari")>=11&&(this._container.style.backgroundColor="black"),this._container.appendChild(this._canvas)}_newRenderingContext(d,_){const T={disabledExtensions:_.options.deactivatedWebGLExtensions||{},debugWebGLExtensions:_.options.debugWebGLExtensions||{},maxAnisotropy:8},x=(A,U)=>_.resourceController.memoryController.newCache(A,U);return new QL(d,T,x)}_loadShaderOnlyExtensions(){this._rctx.capabilities.enable("standardDerivatives"),this._rctx.capabilities.enable("shaderTextureLOD"),this._rctx.capabilities.enable("textureFloat")}_getObjectAndLayerIdColor(d){return this._objectAndLayerIdRenderHelper?this._objectAndLayerIdRenderHelper.getObjectAndLayerIdColor(d):null}get componentObjectCollection(){return(0,Qe.Wi)(this._componentObjectCollection)&&(this._componentObjectCollection=new QH(this._renderer.renderPassManager,this._viewingMode)),this._componentObjectCollection}set componentObjectCollection(d){this._componentObjectCollection=d}};(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0})],ba.prototype,"updating",null),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_rctx",void 0),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_container",void 0),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_canvas",void 0),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_stippleTextureRepository",void 0),(0,Ve._)([(0,Ea.gT)(),(0,ke.Cb)()],ba.prototype,"waterTextureRepository",void 0),(0,Ve._)([(0,Ea.gT)(),(0,ke.Cb)()],ba.prototype,"_magnifierHelper",void 0),(0,Ve._)([(0,ke.Cb)()],ba.prototype,"_objectAndLayerIdRenderHelper",void 0),(0,Ve._)([(0,Ea.gT)(),(0,ke.Cb)()],ba.prototype,"_textureRepository",void 0),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_compositingHelper",void 0),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_renderer",void 0),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_screenshotManager",void 0),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"componentObjectCollection",null),(0,Ve._)([(0,Ea.gT)()],ba.prototype,"_componentObjectCollection",void 0),(0,Ve._)([(0,ke.Cb)()],ba.prototype,"_needsUpdate",void 0),(0,Ve._)([(0,ke.Cb)()],ba.prototype,"_needsWaterReflectionUpdate",void 0),ba=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.parts.RenderView")],ba);(function qL(){return jZ})();var Tb;let Il=Tb=class extends((0,Ea.TF)(Ns.Z)){constructor(d){super(d),this._handles=new Ji.Z,this._model=new HE,this._layers=new wo.Z,this._changeSet=new dH.as,this._layerSyncSet=new Set}initialize(){this._set("renderView",new ba(this)),this._frameTask=this.resourceController.scheduler.registerTask(Fn.T8.STAGE,this),this._handles.add(this._frameTask)}destroy(){UO.k.pool.prune(0),this._handles.destroy(),this.dispose()}get viewingMode(){return this.state.viewingMode}get updating(){return this._model.dirtySet.dirty||this.renderView.updating||this._frameTask.updating}add(d){this._model.add(d),(0,Hg.e)(d)&&(d.attachStage(this),this._addLayer(d)),this.renderView.requestRender()}remove(d){(0,Qe.Wi)(d)||(this.renderView.requestRender(),this._model.remove(d),(0,Hg.e)(d)&&(this._removeLayer(d),d.detachStage()))}addMany(d){(0,Qe.pC)(d)&&(this._model.addMany(d),this.renderView.requestRender())}removeMany(d){(0,Qe.pC)(d)&&(this._model.removeMany(d),this.renderView.requestRender())}load(d){var _=this;return(0,kr.Z)(function*(){(0,Qe.Wi)(d)||(Array.isArray(d)||(d=[d]),yield Promise.all(d.filter(T=>(0,Qe.Wi)(T.glTexture)).map(T=>_.schedule(()=>_._model.has(T)?T.load(_.renderView.renderingContext,()=>_.renderView.textureRepository.textureTechnique):null))))})()}loadImmediate(d){return d.load(this.renderView.renderingContext,()=>this.renderView.textureRepository.textureTechnique)}forEachOfType(d,_){this._model.forEachOfType(d,_)}handleEvent(d,_){this.destroyed||(this._model.dirtySet[d](_),this.renderView.requestRender())}get running(){return this._model.dirtySet.dirty}runTask(d){this._frameTask.processQueue(d),d.done||this._commit()}_commit(){const d=this._model.dirtySet;Tb.DebugSettings.logDirtySet&&console.log("Dirty set: "+d.formatDebugInfo()),d.commit(this._changeSet),Tb.DebugSettings.logDirtySet&&(console.log("RGs add: "+this._changeSet.adds.map(_=>_.id)),console.log("RGs remove: "+this._changeSet.removes.map(_=>_.id))),this._layerSyncSet.clear(),this.renderView.modify(this._changeSet),this.renderView.requestRender()}schedule(d,_){return this._frameTask.schedule(d,_)}syncLayer(d){this._layerSyncSet.add(d),this.renderView.requestRender()}processSyncLayers(){const d=this._model.dirtySet;this._layers.forAll(_=>{(this._layerSyncSet.has(_.id)||_.updatePolicy===Fi.jq.SYNC)&&(d.commitLayer(_.id,this._changeSet),this._layerSyncSet.delete(_.id))});for(const _ of this._layerSyncSet)d.commitLayer(_,this._changeSet);this._layerSyncSet.clear(),this.renderView.modify(this._changeSet)}getObject(d){return this._model.getObject(d)}get layers(){return this._layers}_addLayer(d){this._layers.includes(d)||this._layers.push(d)}_removeLayer(d){this._commit(),null!=this._layers.removeUnordered(d)&&(this._model.dirtySet.getResidentRenderGeometries(d.id,this._changeSet.removes),this.renderView.modify(this._changeSet))}addRenderPlugin(d,_,T){const x=this.renderView.renderPlugins.add(d,_,T),A=()=>{pw(_)&&this.sceneIntersectionHelper.addIntersectionHandler(_)};if((0,ws.y8)(x))return x.then(A);A()}removeRenderPlugin(d){pw(d)&&this.sceneIntersectionHelper.removeIntersectionHandler(d),this.renderView.renderPlugins.remove(d)}get performanceInfo(){return{renderView:this.renderView.performanceInfo,model:this._model.getStats()}}get test(){const d=this;return{getCount:_=>d._model.test.content.filter(T=>T.type===_).length,model:d._model}}};Il.DebugSettings={endFrameContentValidation:!1,logDirtySet:!1},(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"resourceController",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"options",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"state",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"sceneIntersectionHelper",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Il.prototype,"viewingMode",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"container",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"renderSR",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"_handles",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Il.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Il.prototype,"_model",void 0),(0,Ve._)([(0,Ea.gT)(),(0,ke.Cb)()],Il.prototype,"renderView",void 0),Il=Tb=(0,Ve._)([(0,Wr.j)("esri.views.3d.webgl-engine.Stage")],Il);var Mb=v(55314);function ax(){return ax=(0,kr.Z)(function*(d,_){if("2d"===d.type)return d.hitTest(_);const T=yield d.hitTest(_);if(0===T.results.length)return T;const x=T.results[0],A=(0,Qe.pC)(x.distance)?x.distance*(1+o$):x.distance,U=T.results.findIndex(ne=>ne.distance>A);return-1!==U&&(T.results=T.results.slice(0,U)),T}),ax.apply(this,arguments)}const o$=.05;var a$=v(31637);let P0=class extends Ns.Z{constructor(){super(...arguments),this.widget=null}destroy(){this.widget&&this.widget.destroy(),this.node=null}get id(){return this.get("widget.id")||this.get("node.id")}set node(d){const _=this._get("node");d!==_&&(d&&d.classList.add("esri-component"),_&&_.classList.remove("esri-component"),this._set("node",d))}castNode(d){return d?"string"==typeof d||function c$(d){return d&&"nodeType"in d}(d)?(this._set("widget",null),(0,md.L7)(d)):(function u$(d){return d&&"function"==typeof d.render}(d)&&!d.domNode&&(d.domNode=document.createElement("div")),this._set("widget",d),d.domNode):(this._set("widget",null),null)}};(0,Ve._)([(0,ke.Cb)({dependsOn:[]})],P0.prototype,"id",null),(0,Ve._)([(0,ke.Cb)()],P0.prototype,"node",null),(0,Ve._)([(0,ko.p)("node")],P0.prototype,"castNode",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],P0.prototype,"widget",void 0),P0=(0,Ve._)([(0,Wr.j)("esri.views.ui.Component")],P0);const Pb=P0,d$={left:0,top:0,bottom:0,right:0},cU={bottom:30,top:15,right:15,left:15},lx="manual",Ll_corner="esri-ui-corner";function cx(d){const _=d,T="object"==typeof _&&null!==_&&Object.getPrototypeOf(_);return null!==T&&T!==Object.prototype||!("component"in _||"index"in _||"position"in _)?null:d}function ux(d,{top:_,bottom:T,left:x,right:A}){d.style.top=_,d.style.bottom=T,d.style.left=x,d.style.right=A}let kd=class extends Va.Z.EventedAccessor{constructor(d){super(d),this._cornerNameToContainerLookup={},this._positionNameToContainerLookup={},this._components=new Array,this._componentToKey=new Map,this._handles=new Ji.Z,this.view=null,this._applyViewPadding=()=>{const _=this.container;_&&ux(_,this._toPxPosition(this._getViewPadding()))},this._applyUIPadding=()=>{const _=this._innerContainer;_&&ux(_,this._toPxPosition(this.padding))},this._initContainers()}initialize(){this._handles.add([(0,Ht.YP)(()=>[this.view?.padding,this.container],this._applyViewPadding,Ht.nn),(0,Ht.YP)(()=>this.padding,this._applyUIPadding,Ht.nn)])}destroy(){this.container=null;for(const d of this._components)d.destroy();this._components.length=0,this._handles.destroy(),this._componentToKey.clear()}set container(d){const _=this._get("container");d!==_&&(d&&(d.classList.add("esri-ui"),function k6(d){(function J6(d){Array.from(d.classList).forEach(_=>{_.startsWith(bS)&&d.classList.remove(_)})})(d),d.classList.add(function X6(){return`${bS}${Vm()?"dark":"light"}`}())}(d),this._attachContainers(d)),_&&(_.classList.remove("esri-ui"),ux(_,{top:"",bottom:"",left:"",right:""}),(0,md.cS)(_)),this._set("container",d))}get height(){const d=this.get("view.height")||0;if(0===d)return d;const _=this._getViewPadding();return Math.max(d-(_.top+_.bottom),0)}get padding(){return this._get("padding")}set padding(d){this._overrideIfSome("padding",d)}castPadding(d){return"number"==typeof d?{bottom:d,top:d,right:d,left:d}:{...cU,...d}}get width(){const d=this.get("view.width")||0;if(0===d)return d;const _=this._getViewPadding();return Math.max(d-(_.left+_.right),0)}add(d,_){let T,x;if(Array.isArray(d))return void d.forEach(U=>this.add(U,_));const A=cx(d);A&&({index:T,position:_,component:d,key:x}=A),_&&"object"==typeof _&&({index:T,key:x,position:_}=_),!d||_&&!this._isValidPosition(_)||this._add(d,_,T,x)}remove(d,_){if(!d)return;if(Array.isArray(d))return d.map(x=>this.remove(x,_));const T=this._find(d);if(T){const x=this._componentToKey;if(x.has(d)&&x.get(d)!==_)return;const A=this._components.indexOf(T);return T.node.parentNode&&T.node.parentNode.removeChild(T.node),this._componentToKey.delete(d),this._components.splice(A,1)[0]}}empty(d){return Array.isArray(d)?d.map(_=>this.empty(_)).reduce((_,T)=>_.concat(T)):(d=d||lx)===lx?Array.prototype.slice.call(this._manualContainer.children).filter(_=>!_.classList.contains(Ll_corner)).map(_=>this.remove(_)):this._isValidPosition(d)?Array.prototype.slice.call(this._cornerNameToContainerLookup[d].children).map(this.remove,this):null}move(d,_){if(Array.isArray(d)&&d.forEach(U=>this.move(U,_)),!d)return;let T;const x=cx(d)||cx(_);if(x&&(T=x.index,_=x.position,d=x.component||d),_&&!this._isValidPosition(_))return;const A=this.remove(d);A&&this.add(A,{position:_,index:T})}find(d){if(!d)return null;const _=this._findById(d);return _&&(_.widget||_.node)}getPosition(d){for(const _ in this._positionNameToContainerLookup)if(this._positionNameToContainerLookup[_].contains(d))return _;return null}_add(d,_,T,x){d instanceof Pb||(d=new Pb({node:d})),this._place({component:d,position:_,index:T}),this._components.push(d),x&&this._componentToKey.set(d,x)}_find(d){return d?d instanceof Pb?this._findByComponent(d):"string"==typeof d?this._findById(d):this._findByNode(d.domNode||d):null}_getViewPadding(){return this.get("view.padding")||d$}_attachContainers(d){d.appendChild(this._innerContainer),d.appendChild(this._manualContainer)}_initContainers(){const d=document.createElement("div");d.classList.add("esri-ui-inner-container"),d.classList.add("esri-ui-corner-container");const _=document.createElement("div");_.classList.add("esri-ui-inner-container"),_.classList.add("esri-ui-manual-container");const T=document.createElement("div");T.classList.add("esri-ui-top-left"),T.classList.add(Ll_corner),d.appendChild(T);const x=document.createElement("div");x.classList.add("esri-ui-top-right"),x.classList.add(Ll_corner),d.appendChild(x);const A=document.createElement("div");A.classList.add("esri-ui-bottom-left"),A.classList.add(Ll_corner),d.appendChild(A);const U=document.createElement("div");U.classList.add("esri-ui-bottom-right"),U.classList.add(Ll_corner),d.appendChild(U),this._innerContainer=d,this._manualContainer=_;const ne=(0,uo.dZ)();this._cornerNameToContainerLookup={"top-left":T,"top-right":x,"bottom-left":A,"bottom-right":U,"top-leading":ne?x:T,"top-trailing":ne?T:x,"bottom-leading":ne?U:A,"bottom-trailing":ne?A:U},this._positionNameToContainerLookup={manual:_,...this._cornerNameToContainerLookup}}_isValidPosition(d){return!!this._positionNameToContainerLookup[d]}_place(d){const _=d.component,x=d.index,A=this._positionNameToContainerLookup[d.position||lx],U=x>-1;if(function h$(d){return d&&!d._started&&"function"==typeof d.postMixInProperties&&"function"==typeof d.buildRendering&&"function"==typeof d.postCreate&&"function"==typeof d.startup}(_.widget)&&_.widget.startup(),!U)return void A.appendChild(_.node);const ne=Array.prototype.slice.call(A.children);0!==x?x>=ne.length?A.appendChild(_.node):(0,md.Vt)(_.node,ne[x]):A.firstChild?(0,md.Vt)(_.node,A.firstChild):A.appendChild(_.node)}_toPxPosition(d){return{top:this._toPxUnit(d.top),left:this._toPxUnit(d.left),right:this._toPxUnit(d.right),bottom:this._toPxUnit(d.bottom)}}_toPxUnit(d){return 0===d?"0":d+"px"}_findByComponent(d){let _,T=null;return this._components.some(x=>(_=x===d,_&&(T=x),_)),T}_findById(d){let _,T=null;return this._components.some(x=>(_=x.id===d,_&&(T=x),_)),T}_findByNode(d){let _,T=null;return this._components.some(x=>(_=x.node===d,_&&(T=x),_)),T}};(0,Ve._)([(0,ke.Cb)()],kd.prototype,"container",null),(0,Ve._)([(0,ke.Cb)()],kd.prototype,"height",null),(0,Ve._)([(0,ke.Cb)({value:cU})],kd.prototype,"padding",null),(0,Ve._)([(0,ko.p)("padding")],kd.prototype,"castPadding",null),(0,Ve._)([(0,ke.Cb)()],kd.prototype,"view",void 0),(0,Ve._)([(0,ke.Cb)()],kd.prototype,"width",null),kd=(0,Ve._)([(0,Wr.j)("esri.views.ui.UI")],kd);const p$=kd;function uU(d,_){return d&&"copyright"in d&&(!_||"function"==typeof d.originOf&&"user"===d.originOf("copyright"))}function Ob(d,_,T){!T||!_||d.find(x=>x.layerView===_&&x.text===T)||d.push({text:T,layerView:_})}const sp=[];let Tf=class extends Ip.r{constructor(d){super(d),this._clear=()=>{this._fetchedAttributionData.clear(),this._pendingAttributions.clear(),this.handles.remove("suspension"),this.notifyChange("state")},this._pendingAttributions=new Set,this._fetchedAttributionData=new Map,this.items=new On.Z,this.view=null,this._allLayerViewsChange=_=>{this.handles.remove("suspension");const T=this.get("view.allLayerViews");T&&this.handles.add(T.map(x=>(0,Ht.YP)(()=>[x.suspended,x.layer?.attributionVisible],()=>this._updateAttributionItems())),"suspension"),_&&_.removed&&_.removed.forEach(x=>{this._pendingAttributions.delete(x),this._fetchedAttributionData.delete(x)}),this._updateAttributionItems()},this.handles.add([(0,Ht.on)(()=>this.view?.allLayerViews,"change",_=>this._allLayerViewsChange(_),{onListenerAdd:()=>this._allLayerViewsChange(),onListenerRemove:this._clear}),(0,Ht.gx)(()=>!0===this.view?.stationary,()=>this._updateAttributionItems())])}destroy(){this.view=null,this._fetchedAttributionData.clear(),this._pendingAttributions.clear(),this.items.removeAll()}get state(){return this.get("view.ready")?this._pendingAttributions.size>0?"loading":"ready":"disabled"}_updateAttributionItems(){const d=this.get("view.allLayerViews");sp.length=0,d?(d.forEach(_=>{if(_.suspended||!_.layer?.attributionVisible)return;const T=_.layer;if(uU(T,"user"))return void Ob(sp,_,T.copyright);if(T.hasAttributionData){if(this._fetchedAttributionData.has(_)){const A=this._fetchedAttributionData.get(_);return void(A?Ob(sp,_,this._getDynamicAttribution(A,this.view,T)):uU(T)&&Ob(sp,_,T.copyright))}return void this._fetchAttributionData(_)}const x=T.get("portalItem.accessInformation");Ob(sp,_,x||T.copyright)}),function _$(d,_){return d.length!==_.length||d.some((T,x)=>T.text!==_[x].text)}(this.items,sp)&&(this.items.removeAll(),this.items.addMany(sp)),sp.length=0,this.notifyChange("state")):this._clear()}_fetchAttributionData(d){var _=this;return(0,kr.Z)(function*(){if(_._pendingAttributions.has(d))return;_._pendingAttributions.add(d);const T=yield(0,wu.q6)(d.layer.fetchAttributionData());if(_._pendingAttributions.has(d)){const x=T.ok?_._createContributionIndex(T.value,function f$(d){return"bing-maps"===d.type}(d.layer)):null;_._pendingAttributions.delete(d),_._fetchedAttributionData.set(d,x)}_._updateAttributionItems()})()}_createContributionIndex(d,_){const T=d.contributors,x={};if(!T)return x;for(let A=0;A{const Ze=!Oe[we.id]&&fe&&(0,tA.aV)(we.extent,fe);return Ze&&(Oe[we.id]=!0),Ze}).sort((we,Ze)=>Ze.score-we.score||we.objectId-Ze.objectId).map(we=>we.attribution).join(", "):""}};(0,Ve._)([(0,ke.Cb)({readOnly:!0,type:On.Z})],Tf.prototype,"items",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Tf.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],Tf.prototype,"view",void 0),Tf=(0,Ve._)([(0,Wr.j)("esri.widgets.Attribution.AttributionViewModel")],Tf);const dU=Tf;let Ul=class extends ua.Z{constructor(d,_){super(d,_),this._isOpen=!1,this._attributionTextOverflowed=!1,this._prevSourceNodeHeight=0,this._resizeObserver=new ResizeObserver(T=>T.forEach(({target:x})=>this._checkSourceTextOverflow(x))),this.iconClass="esri-icon-description",this.itemDelimiter=" | ",this.messages=null,this.viewModel=new dU}initialize(){this.addHandles((0,Ht.on)(()=>this.viewModel?.items,"change",()=>this.scheduleRender()))}destroy(){this._resizeObserver?.disconnect()}get _isInteractive(){return this._isOpen||this._attributionTextOverflowed}get attributionText(){return this.viewModel.items.reduce((d,_)=>(d.includes(_.text)||d.push(_.text),d),[]).join(this.itemDelimiter)}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}get view(){return this.viewModel.view}set view(d){this.viewModel.view=d}render(){return(0,Yt.u)("div",{bind:this,class:this.classes("esri-attribution esri-widget",{"esri-attribution--open":this._isOpen}),dir:"ltr",onclick:this._toggleState,onkeydown:this._toggleState},this.renderSourcesNode(),this.renderPoweredBy())}renderPoweredBy(){return(0,Yt.u)("div",{class:"esri-attribution__powered-by"},"Powered by"," ",(0,Yt.u)("a",{class:"esri-attribution__link",href:"http://www.esri.com/",target:"_blank",rel:"noreferrer"},"Esri"))}renderSourcesNode(){const d=this._isOpen,_=this._isInteractive,T=_?"0":"",{attributionText:x}=this;return(0,Yt.u)("div",{afterCreate:this._afterSourcesNodeCreate,bind:this,class:this.classes("esri-attribution__sources",{"esri-attribution__sources--open":d,"esri-interactive":_}),innerHTML:x,tabindex:T})}_afterSourcesNodeCreate(d){this._prevSourceNodeHeight=d.clientWidth,this._resizeObserver.observe(d)}_checkSourceTextOverflow(d){let _=!1;const{clientHeight:T,clientWidth:x,scrollWidth:A}=d,U=A>x,ne=this._attributionTextOverflowed!==U;if(this._attributionTextOverflowed=U,ne&&(_=!0),this._isOpen){const fe=Tthis.view,this._updateRotationWatcher,Ht.nn))}destroy(){this._handles=(0,Qe.hw)(this._handles),this.view=null}get canShowNorth(){const d=this.get("view.spatialReference");return!(!d||!d.isWebMercator&&!d.isGeographic)}get state(){return this.get("view.ready")?this.canShowNorth?"compass":"rotation":"disabled"}reset(){if(!this.get("view.ready"))return;const d={};"2d"===this.view.type?d.rotation=0:d.heading=0,this.callGoTo({target:d})}_updateForRotation(d){null!=d&&(this.orientation={z:d})}_updateForCamera(d){d&&(this.orientation={x:0,y:0,z:-d.heading})}_updateRotationWatcher(d){this._handles.removeAll(),d&&this._handles.add("2d"===d.type?(0,Ht.YP)(()=>d?.rotation,this._updateForRotation,Ht.nn):(0,Ht.YP)(()=>d?.camera,this._updateForCamera,Ht.nn))}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],O0.prototype,"canShowNorth",null),(0,Ve._)([(0,ke.Cb)()],O0.prototype,"orientation",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],O0.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],O0.prototype,"view",void 0),O0=(0,Ve._)([(0,Wr.j)("esri.widgets.CompassViewModel")],O0);const hU=O0;let Ju=class extends ua.Z{constructor(d,_){super(d,_),this.iconClass="esri-icon-locate-circled",this.messages=null,this.viewModel=new hU}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(d){this.viewModel.goToOverride=d}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}get view(){return this.viewModel.view}set view(d){this.viewModel.view=d}reset(){return this.viewModel.reset()}render(){const{orientation:d,state:_}=this.viewModel,T="disabled"===_,x="compass"==("rotation"===_?"rotation":"compass"),A=T?-1:0,U={"esri-disabled":T,"esri-interactive":!T},ne={"esri-icon-compass":x,"esri-icon-dial":!x},{messages:fe}=this;return(0,Yt.u)("div",{bind:this,class:this.classes("esri-compass esri-widget--button esri-widget",U),onclick:this._reset,onkeydown:this._reset,role:"button",tabIndex:A,"aria-label":fe.reset,title:fe.reset},(0,Yt.u)("span",{"aria-hidden":"true",class:this.classes("esri-compass__icon",ne),styles:this._toRotationTransform(d)}),(0,Yt.u)("span",{class:"esri-icon-font-fallback-text"},fe.reset))}_reset(){this.viewModel.reset()}_toRotationTransform(d){return{transform:`rotateZ(${d.z}deg)`}}};(0,Ve._)([(0,ke.Cb)()],Ju.prototype,"goToOverride",null),(0,Ve._)([(0,ke.Cb)()],Ju.prototype,"iconClass",void 0),(0,Ve._)([(0,ke.Cb)()],Ju.prototype,"label",null),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Compass/t9n/Compass")],Ju.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)()],Ju.prototype,"view",null),(0,Ve._)([(0,ke.Cb)({type:hU})],Ju.prototype,"viewModel",void 0),(0,Ve._)([(0,fc.h)()],Ju.prototype,"_reset",null),Ju=(0,Ve._)([(0,Wr.j)("esri.widgets.Compass")],Ju);const y$=Ju;let Mf=class extends Ns.Z{constructor(d){super(d),this.navigationMode="pan",this.view=null}initialize(){this.own((0,Ht.gx)(()=>this.view?.inputManager,()=>this._setNavigationMode()))}destroy(){this.view=null}get state(){return this.get("view.ready")&&"3d"===this.view.type?"ready":"disabled"}toggle(){"disabled"!==this.state&&(this.navigationMode="pan"!==this.navigationMode?"pan":"rotate",this._setNavigationMode())}_setNavigationMode(){this.get("view.inputManager").primaryDragAction="pan"===this.navigationMode?"pan":"rotate"}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Mf.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],Mf.prototype,"navigationMode",void 0),(0,Ve._)([(0,ke.Cb)()],Mf.prototype,"view",void 0),Mf=(0,Ve._)([(0,Wr.j)("esri.widgets.NavigationToggleViewModel")],Mf);const pU=Mf,Yc_button="esri-navigation-toggle__button esri-widget--button";let Qu=class extends ua.Z{constructor(d,_){super(d,_),this.iconClass="esri-icon-pan2",this.messages=null,this.viewModel=new pU}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}set layout(d){"horizontal"!==d&&(d="vertical"),this._set("layout",d)}get view(){return this.viewModel.view}set view(d){this.viewModel.view=d}toggle(){return this.viewModel.toggle()}render(){const d="disabled"===this.get("viewModel.state"),_="pan"===this.get("viewModel.navigationMode"),x={"esri-navigation-toggle__button--active":_},A={"esri-navigation-toggle__button--active":!_},U=d?-1:0,ne=this.messages.toggle;return(0,Yt.u)("div",{bind:this,class:this.classes("esri-navigation-toggle esri-widget",{"esri-disabled":d,"esri-navigation-toggle--horizontal":"horizontal"===this.layout}),onclick:this._toggle,onkeydown:this._toggle,tabIndex:U,"aria-label":ne,title:ne},(0,Yt.u)("div",{class:this.classes(Yc_button,"esri-navigation-toggle__button--pan",x)},(0,Yt.u)("span",{class:"esri-icon-pan"})),(0,Yt.u)("div",{class:this.classes(Yc_button,"esri-navigation-toggle__button--rotate",A)},(0,Yt.u)("span",{class:"esri-icon-rotate"})))}_toggle(){this.toggle()}};(0,Ve._)([(0,ke.Cb)()],Qu.prototype,"iconClass",void 0),(0,Ve._)([(0,ke.Cb)()],Qu.prototype,"label",null),(0,Ve._)([(0,ke.Cb)({value:"vertical"})],Qu.prototype,"layout",null),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/NavigationToggle/t9n/NavigationToggle")],Qu.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)()],Qu.prototype,"view",null),(0,Ve._)([(0,ke.Cb)({type:pU})],Qu.prototype,"viewModel",void 0),(0,Ve._)([(0,fc.h)()],Qu.prototype,"_toggle",null),Qu=(0,Ve._)([(0,Wr.j)("esri.widgets.NavigationToggle")],Qu);const v$=Qu;let op=class extends ua.Z{constructor(){super(...arguments),this.enabled=!0,this.iconClass="",this.title=""}render(){const d=this.enabled?0:-1,T={[this.iconClass]:!!this.iconClass};return(0,Yt.u)("div",{bind:this,class:this.classes("esri-widget--button esri-widget",{"esri-disabled":!this.enabled,"esri-interactive":this.enabled}),onclick:this._triggerAction,onkeydown:this._triggerAction,role:"button",tabIndex:d,title:this.title},(0,Yt.u)("span",{"aria-hidden":"true",role:"presentation",class:this.classes("esri-icon",T)}),(0,Yt.u)("span",{class:"esri-icon-font-fallback-text"},this.title))}_triggerAction(){this.action.call(this)}};(0,Ve._)([(0,ke.Cb)()],op.prototype,"action",void 0),(0,Ve._)([(0,ke.Cb)()],op.prototype,"enabled",void 0),(0,Ve._)([(0,ke.Cb)()],op.prototype,"iconClass",void 0),(0,Ve._)([(0,ke.Cb)()],op.prototype,"title",void 0),(0,Ve._)([(0,fc.h)()],op.prototype,"_triggerAction",null),op=(0,Ve._)([(0,Wr.j)("esri.widgets.IconButton")],op);const _U=op;let Pf=class extends Ns.Z{get canZoomIn(){if(!this.get("view.ready"))return!1;const d=this.get("view.animation.target.scale")||this.get("view.scale"),_=this.get("view.constraints.effectiveMaxScale");return 0===_||d>_}get canZoomOut(){if(!this.get("view.ready"))return!1;const d=this.get("view.animation.target.scale")||this.get("view.scale"),_=this.get("view.constraints.effectiveMinScale");return 0===_||d<_}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Pf.prototype,"canZoomIn",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Pf.prototype,"canZoomOut",null),(0,Ve._)([(0,ke.Cb)()],Pf.prototype,"view",void 0),Pf=(0,Ve._)([(0,Wr.j)("esri.widgets.Zoom.ZoomConditions2D")],Pf);const E$=Pf;let Of=class extends Ns.Z{get canZoomIn(){return!!this.view.ready}get canZoomOut(){return!!this.view.ready}};(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Of.prototype,"canZoomIn",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Of.prototype,"canZoomOut",null),(0,Ve._)([(0,ke.Cb)()],Of.prototype,"view",void 0),Of=(0,Ve._)([(0,Wr.j)("esri.widgets.Zoom.ZoomConditions3D")],Of);const b$=Of;let ap=class extends Ns.Z{constructor(d){super(d)}destroy(){this.view=null}get canZoomIn(){return(0,Qe.pC)(this._zoomConditions)&&this._zoomConditions.canZoomIn}get canZoomOut(){return(0,Qe.pC)(this._zoomConditions)&&this._zoomConditions?.canZoomOut}get state(){return this.view?.ready?"ready":"disabled"}set view(d){d?"2d"===d.type?this._zoomConditions=new E$({view:d}):"3d"===d.type&&(this._zoomConditions=new b$({view:d})):this._zoomConditions=null,this._set("view",d)}zoomIn(){if(!this.canZoomIn)return;const d=this.view;"2d"===d.type?d.mapViewNavigation.zoomIn():(0,ws.R8)(d.goTo({zoomFactor:2}))}zoomOut(){if(!this.canZoomOut)return;const d=this.view;"2d"===d.type?d.mapViewNavigation.zoomOut():(0,ws.R8)(d.goTo({zoomFactor:.5}))}};(0,Ve._)([(0,ke.Cb)()],ap.prototype,"_zoomConditions",void 0),(0,Ve._)([(0,ke.Cb)()],ap.prototype,"canZoomIn",null),(0,Ve._)([(0,ke.Cb)()],ap.prototype,"canZoomOut",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ap.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],ap.prototype,"view",null),ap=(0,Ve._)([(0,Wr.j)("esri.widgets.Zoom.ZoomViewModel")],ap);const fU=ap;let Jd=class extends ua.Z{constructor(d,_){super(d,_),this.iconClass="esri-icon-zoom-in-magnifying-glass",this.messages=null,this.viewModel=new fU}initialize(){this._zoomInButton=new _U({action:this.zoomIn.bind(this),iconClass:"esri-icon-plus"}),this._zoomOutButton=new _U({action:this.zoomOut.bind(this),iconClass:"esri-icon-minus"})}destroy(){this._zoomInButton=(0,Qe.SC)(this._zoomInButton),this._zoomOutButton=(0,Qe.SC)(this._zoomOutButton)}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}set layout(d){"horizontal"!==d&&(d="vertical"),this._set("layout",d)}set view(d){this.viewModel.view=d}get view(){return this.viewModel.view}render(){const d=this.viewModel,_={"esri-zoom--horizontal":"horizontal"===this.layout},{canZoomIn:T,canZoomOut:x}=d;this._zoomInButton.enabled=T,this._zoomOutButton.enabled=x;const{zoomIn:A,zoomOut:U}=this.messages;return this._zoomInButton.title=A,this._zoomOutButton.title=U,(0,Yt.u)("div",{class:this.classes("esri-zoom esri-widget",_)},this._zoomInButton.render(),this._zoomOutButton.render())}zoomIn(){return this.viewModel.zoomIn()}zoomOut(){return this.viewModel.zoomOut()}};(0,Ve._)([(0,ke.Cb)()],Jd.prototype,"iconClass",void 0),(0,Ve._)([(0,ke.Cb)()],Jd.prototype,"label",null),(0,Ve._)([(0,ke.Cb)({value:"vertical"})],Jd.prototype,"layout",null),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Zoom/t9n/Zoom")],Jd.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)()],Jd.prototype,"view",null),(0,Ve._)([(0,ke.Cb)({type:fU})],Jd.prototype,"viewModel",void 0),Jd=(0,Ve._)([(0,Wr.j)("esri.widgets.Zoom")],Jd);const C$=Jd;let xb=class extends p${constructor(d){super(d),this._defaultPositionLookup={attribution:"manual",compass:"top-left","navigation-toggle":"top-left",zoom:"top-left"},this.components=[]}initialize(){this._handles.add([(0,Ht.YP)(()=>this.components,this._componentsWatcher.bind(this),Ht.nn),(0,Ht.YP)(()=>this.view,this._updateViewAwareWidgets.bind(this),Ht.nn)])}_add(d,_,T,x){if("string"==typeof d&&this._defaultPositionLookup[d]){if(this._find(d))return;d=this._createComponent(d)}super._add(d,_,T,x)}_removeComponents(d){d.forEach(_=>{const T=this._find(_);T&&(this.remove(T),T.destroy())})}_updateViewAwareWidgets(d){this.components.forEach(_=>{const T=this._find(_),x=T&&T.widget;(function T$(d){return d&&void 0!==d.view})(x)&&(x.view=d)})}_componentsWatcher(d,_){this._removeComponents(_),this._addComponents(d),this._adjustPadding(d)}_adjustPadding(d){if(!d.includes("attribution")&&!this._isOverridden("padding")){const{top:_}=this.padding;this.padding=_}}_addComponents(d){this.constructed&&d.forEach(_=>this.add(this._createComponent(_),this._defaultPositionLookup[_]))}_createComponent(d){const _=this._createWidget(d);if(_)return new Pb({id:d,node:_})}_createWidget(d){return"attribution"===d?this._createAttribution():"compass"===d?this._createCompass():"navigation-toggle"===d?this._createNavigationToggle():"zoom"===d?this._createZoom():void 0}_createAttribution(){return new m$({view:this.view})}_createCompass(){return new y$({view:this.view})}_createNavigationToggle(){return new v$({view:this.view})}_createZoom(){return new C$({view:this.view})}};(0,Ve._)([(0,ke.Cb)()],xb.prototype,"components",void 0),xb=(0,Ve._)([(0,Wr.j)("esri.views.ui.DefaultUI")],xb);const M$=xb;let Db=class extends M${constructor(d){super(d),this.components=["attribution","zoom","navigation-toggle","compass"]}};(0,Ve._)([(0,ke.Cb)()],Db.prototype,"components",void 0),Db=(0,Ve._)([(0,Wr.j)("esri.views.ui.3d.DefaultUI3D")],Db);const mU=Db;let Qs=class extends(d4(V8(K8(iB)))){constructor(d){var _;super(d),_=this,this._userClippingArea=null,this._clippingArea=null,this._initialDefaultSpatialReference=null,this._defaults={},this._externallySet={environment:!1},this._createGraphicsViewController=null,this._resolveWhenReady=[],this._propertiesPool=new Nh.L({slicePlane:nu.B},this),this._resourceController=function LW(d){return new Bd({view:d})}(this),this._defaultToMapOptions={include:new Set},this._defaultHitTestOptions={exclude:new Set},this.deconflictor=new H2({view:this}),this.labeler=new p0({view:this,deconflictor:this.deconflictor.labels}),this.sharedSymbolResources=null,this.analyses=new a_,this.basemapTerrain=null,this.elevationProvider=null,this.canvas=null,this.constraints=new Kp,this.environmentManager=new cu,this.floors=new On.Z,this.fullOpacity=1,this.graphicsView=null,this.analysisViewManager=new oB({view:this}),this.groundView=null,this.map=null,this.screenSizePerspectiveEnabled=!0,this.state=new bW,this.spatialReference=null,this.alphaCompositingEnabled=!1,this.preserveDrawingBufferEnabled=!1,this.supersampleScreenshotsEnabled=!0,this.type="3d",this.ui=new mU,this._numUpdating=0,this._lastUpdateTime=0,this.updatingProgress=.5,this.highlightOptions=new q2,this.voxelWasm=null,this.voxelWasmPromise=null,(0,c4.j2)(),d&&d.environment||(this._defaults.environment=new M_,this.environment=this._defaults.environment);const T=(x=null)=>{(0,Qe.pC)(x)&&x.type===SD.y.MOVE||(this._updatingChanged(),this.map&&this.map.allLayers.forEach(function(){var A=(0,kr.Z)(function*(U){try{yield U.when()}catch{}_._updatingChanged()});return function(U){return A.apply(this,arguments)}}()))};this.handles.add([(0,Ht.on)(()=>this.map?.allLayers,"after-changes",x=>T(x),{onListenerAdd:()=>T(),onListenerRemove:()=>T(),sync:!0}),this.allLayerViews.on("after-changes",x=>this._updateUpdatingMonitors(x)),(0,Ht.YP)(()=>this.map,x=>{x&&"load"in x&&x.load&&x.load().catch(()=>{})})]),this.inputManager=new mN({view:this}),this.stateManager=new Ho({view:this})}initialize(){this.groundView=new G8({view:this}),this._updateUpdatingMonitors();const d=()=>this._updateDefaultToMapOptions();this.handles.add((0,Ht.on)(()=>this.map?.allLayers,"after-changes",d,{onListenerAdd:d,onListenerRemove:d})),this.updatingHandles.add(()=>this.qualitySettings.memoryLimit,_=>{this.resourceController&&(this.resourceController.memoryController.maxMemory=_)},Ht.nn),this.updatingHandles.add(()=>this.qualitySettings.additionalCacheMemory,_=>{this.resourceController&&(this.resourceController.memoryController.additionalCacheMemory=_)},Ht.nn),this.updatingHandles.add(()=>this.qualitySettings.frameRate,_=>(0,gd.bP)(_>0?1e3/Math.ceil(_):0),Ht.nn),this.updatingHandles.add(()=>this.map?.ground,d,Ht.tX),this.updatingHandles.add(()=>this.map?.ground?.opacity,()=>this._updateDefaultHitTestOptions(),Ht.tX),this.handles.add((0,Ht.YP)(()=>this.spatialReference,()=>this.notifyChange("clippingArea"),Ht.Z_))}destroy(){this.destroyed||(this.invalidate(),this.activeTool=null,this.layerViewManager.clear(),this._exitSurface(),this._disposeGraphicsView(),this.sharedSymbolResources=(0,Qe.SC)(this.sharedSymbolResources),this._set("labeler",(0,Qe.SC)(this.labeler)),this._set("deconflictor",(0,Qe.SC)(this.deconflictor)),this._resourceController=(0,Qe.SC)(this._resourceController),this._set("stateManager",(0,Qe.SC)(this.stateManager)),this._set("inputManager",(0,Qe.SC)(this.inputManager)),this.state.destroy(),this._propertiesPool.destroy(),this.handles.remove("updatingMonitors"),this._set("environmentManager",(0,Qe.SC)(this.environmentManager)),this.groundView=(0,Qe.SC)(this.groundView))}get renderSpatialReference(){return this.renderCoordsHelper&&this.renderCoordsHelper.spatialReference}get basemapSpatialReference(){return this.basemapTerrain?.spatialReference}get animation(){return this.state?.animation}get camera(){return this.stateManager?.camera}set camera(d){this.stateManager&&(this.stateManager.camera=d)}get contentCamera(){return this.stateManager?.contentCamera}set contentCamera(d){this.stateManager&&(this.stateManager.contentCamera=d)}installContentCameraReset(d={sticky:!1}){return this.stateManager.installContentCameraReset(d)}get center(){return this.stateManager?.center}set center(d){this.stateManager&&(this.stateManager.center=d)}get clippingArea(){if("global"===this.viewingMode)return null;let d=this._userClippingArea||this.get("map.clippingArea");return!this._userClippingArea&&!this.get("map.clippingEnabled")||(0,Qe.Wi)(d)?(this._clippingArea=null,null):d instanceof bl.Z?this.spatialReference&&(d=Sb(d,this.spatialReference),(0,Qe.Wi)(d))?(Us.Z.getLogger(this.declaredClass).error("#clippingArea","setting clippingArea with incompatible SpatialReference"),this._clippingArea):(d=d.clone(),(0,Qe.Wi)(d.intersection(this._groundAndLayersExtent))&&(d.xmin=d.xmax,d.ymin=d.ymax),d.zmin=void 0,d.zmax=void 0,d.equals(this._clippingArea)||(this._clippingArea=d),this._clippingArea):(Us.Z.getLogger(this.declaredClass).error("#clippingArea","only clippingArea geometries of type Extent are supported"),this._clippingArea)}set clippingArea(d){this.ready&&"global"===this.viewingMode&&(0,Qe.pC)(d)?Us.Z.getLogger(this.declaredClass).error("#clippingArea=","Clipping area is only supported in local viewingMode"):this._userClippingArea=d}get renderDataExtent(){if(this.state.viewingMode===vi.JY.Global)return null;const d=this.renderSpatialReference,_=this.dataExtent;return(0,Qe.Wi)(_)||(0,Qe.Wi)(d)||_.spatialReference.equals(d)?_:Sb(_,d)}get dataExtent(){let d=this._groundAndLayersExtent;const T=Sb(this.clippingArea,this.spatialReference||to.Z.WGS84);(0,Qe.pC)(T)&&(d=(0,Qe.pC)(d)?d.intersection(T):T);const x=this._get("dataExtent");return(0,Qe.pC)(d)&&d.equals(x)?x:d}get _groundAndLayersExtent(){const d=this.spatialReference||to.Z.WGS84;let _;const T=U=>{const ne=Sb(U,d);(0,Qe.Wi)(ne)||((0,Qe.pC)(_)?_.union(ne):_=ne.clone())},x=this.basemapTerrain;if(x?.spatialReference){const U=x.groundExtent;T(new bl.Z({xmin:U[0],ymin:U[1],zmin:0,xmax:U[2],ymax:U[3],zmax:0,spatialReference:x.spatialReference}))}if(this.map){const U=ne=>{!(0,Qe.pC)(ne.fullExtent)||"graphics"===ne.type&&ne.internal||T(ne.fullExtent)};this.map.allLayers.forEach(ne=>U(ne))}if((0,Qe.Wi)(_))return null;_.hasZ?(_.zmin=Math.min(0,_.zmin),_.zmax=Math.max(0,_.zmax)):(_.zmin=0,_.zmax=0);const A=this._get("_groundAndLayersExtent");return _.equals(A)?A:_}set environment(d){d!==this._defaults.environment&&(this._externallySet.environment=!0),this._set("environment",d)}castEnvironment(d){return d?d instanceof M_?d:d instanceof PA?null!=this.environment?this.environment.cloneWithWebsceneEnvironment(d):M_.fromWebsceneEnvironment(d):(0,Hl.se)(M_,d):new M_}get extent(){return this.stateManager?.extent}set extent(d){this.stateManager&&(this.stateManager.extent=d)}get screenCenter(){return this.stateManager?.screenCenter}get frustum(){return this.stateManager?.frustum}get initialExtentRequired(){return this.stateManager&&!this.stateManager.hasInitialView}get _defaultsFromMapSettings(){return{required:{tileInfo:!1,heightModelInfo:!0,extent:!1}}}get interacting(){return this.navigating||(0,Qe.pC)(this.activeTool)}get stationary(){return!this.animation&&!this.resizing&&((0,Qe.Wi)(this.state)||this.state.stationary)}get navigating(){return this.state?.navigating??!1}get padding(){return this.stateManager?.padding}set padding(d){this.stateManager&&(this.stateManager.padding=d)}set qualityProfile(d){yE.isValidProfile(d)&&(yE.apply(d,this.qualitySettings),this._set("qualityProfile",d))}get qualityProfile(){return this._get("qualityProfile")||yE.getDefaultProfile()}set slicePlane(d){if((0,Qe.pC)(this._stage)&&this._stage.renderView.setRenderParameters({slicePlane:d}),(0,Qe.Wi)(d))return void this._set("slicePlane",null);const _=this._propertiesPool.get("slicePlane");(0,nu.c)(d,_),this._set("slicePlane",_)}get typeSpecificPreconditionsReady(){return!!this.viewingMode}get resolution(){return null!=this.spatialReference?(0,RD.dp)(this.scale,this.spatialReference):0}get scale(){return this.stateManager?.scale}set scale(d){this.stateManager&&(this.stateManager.scale=d)}get heightModelInfo(){const d=this.getDefaultHeightModelInfo();return null!=d?AD.Z.deriveUnitFromSR(d,this.spatialReference):null}get updating(){if(this.destroyed)return!1;let d=0,_=this.layerViewManager.updating,T=_?this.layerViewManager.updatingRemaining:0;this.allLayerViews.forEach(x=>{if(x.isFulfilled()){if(x.updating){if(_=!0,x.suspended||(0,Cr.wP)(x))return;++T,d+=x.updatingProgress}}else++T});for(const x of[this.graphicsView,this.basemapView,this._resourceController,this._stage,this.featureTiles,this.pointsOfInterest,this.environmentManager,this.overlay,this._featureTreeDebugger,this.toolViewManager,this.analysisViewManager])(0,Qe.pC)(x)&&x.updating&&(T+=.1,d+=.05);for(const x of[this.deconflictor,this.labeler,this.basemapTerrain])(0,Qe.pC)(x)&&x.updating&&(++T,d+=x.updatingProgress);if(_=!!(_||T>0||this.updatingHandles.updating||!this.ready||!this.stationary||this._createGraphicsViewController||this.inputManager?.hasPendingInputs||this.map?.allLayers?.some(x=>!x.isFulfilled())),_?(this._numUpdating=Math.max(T,this._numUpdating),d+=this._numUpdating-T):this._numUpdating=0,this._numUpdating>0?d/=this._numUpdating:d=_?0:1,this._get("updatingProgress")!==d){const x=performance.now();if(d<1){const A=Math.min((x-this._lastUpdateTime)/2e3,1);d=this.updatingProgress*(1-A)+d*A}this._set("updatingProgress",d),this._lastUpdateTime=_&&d<1?x:0}return _}get viewingMode(){const d=this._predeterminedViewingMode;if((0,Qe.pC)(d))return(0,vi.M7)(d);const _=this.spatialReference;return _?(0,Qe.pC)(this.defaultsFromMap?.viewingMode)&&_.equals(this.defaultsFromMap.spatialReference)?(0,vi.M7)(this.defaultsFromMap.viewingMode):(0,r2.D)(_,vi.JY.Global)?"global":"local":"global"}set viewingMode(d){this.ready?Us.Z.getLogger(this.declaredClass).error("#viewingMode","viewingMode cannot be set once view is ready"):this._overrideIfSome("viewingMode",d)}get viewpoint(){return this.stateManager?.viewpoint}set viewpoint(d){this.stateManager&&(this.stateManager.viewpoint=d)}get zoom(){return this.stateManager?.zoom}set zoom(d){this.stateManager&&(this.stateManager.zoom=d)}get resourceController(){return this._resourceController}get performanceInfo(){return new FW(this)}on(d,_,T,x){return this.viewEvents.on(d,_,T,x)||super.on(d,_)}hasEventListener(d){return super.hasEventListener(d)||this.viewEvents.hasHandler(d)}toMap(d,_){if(!this.ready)return Us.Z.getLogger(this.declaredClass).error("#toMap()","Scene view cannot be used before it is ready"),null;const T=_?this.externalToInternalIntersectOptions(_):this._defaultToMapOptions,x=(0,Qe.pC)(T.graphics)&&((0,Qe.pC)(T.graphics.include)||(0,Qe.pC)(T.graphics.exclude)),A=(0,$l.Rw)(d)?(0,$l.s6)(this,d):d,U=(0,li.md)(A);T.enableDraped=T.include&&!T.include.has(bc.cy)||T.exclude&&T.exclude.has(bc.cy);const ne=this.sceneIntersectionHelper,fe=(0,Ga.Z8)(this.state.viewingMode);if(fe.options.selectionMode=!0,fe.options.store=x?ya.eC.ALL:ya.eC.MIN,ne.intersectIntersectorScreen(U,fe,T),x){for(const Oe of fe.results.all){const we=(0,Mb.bK)(Oe,this);if((0,Qe.Wi)(we))return this._intersectResultToMapPoint(Oe);if("graphic"!==we.type||this._testGraphicUidFilter(T.graphics,we.graphic))return this._intersectResultToMapPoint(Oe)}return null}return this._intersectResultToMapPoint(fe.results.min)}toScreen(d){if(!this.ready)return Us.Z.getLogger(this.declaredClass).error("#toScreen()","Scene view cannot be used before it is ready"),null;const _=(0,Qe.Pt)(null==d.z&&(0,W_.KO)(this.elevationProvider,d),0);return(0,di.KC)(d,xf,this.renderSpatialReference,_),this.state.camera.projectToScreen(xf,dx),(0,li.vW)(dx[0],dx[1])}pixelSizeAt(d){return this.ready?d?((0,di.KC)(d,xf,this.renderSpatialReference),this.state.camera.computeScreenPixelSizeAt(xf)):0:(Us.Z.getLogger(this.declaredClass).error("#pixelSizeAt()","Scene view cannot be used before it is ready"),null)}overlayPixelSizeInMapUnits(d){const _=this.basemapTerrain.overlayManager;return _?_.overlayPixelSizeInMapUnits(d):1}hitTest(d,_){if(!this.ready)return Us.Z.getLogger(this.declaredClass).error("#hitTest()","Scene view cannot be used before it is ready"),null;const T=(0,$l.Rw)(d)?(0,$l.s6)(this,d):d,x=(0,li.s1)(T.x,T.y),A=_?this.externalToInternalIntersectOptions(_):this._defaultHitTestOptions;A.requiresGroundFeedback=!0,A.enableDraped=!0;const U=(0,Ga.Z8)(this.state.viewingMode);U.options.selectionMode=!0,U.options.store=ya.eC.ALL,this.sceneIntersectionHelper.intersectIntersectorScreen(x,U,A);const ne=this._intersectResultsToHits(U.results.all,A.graphics),fe=U.results.ground,Oe=(0,Mb.J4)(fe,this),we=(0,Qe.pC)(Oe)&&"type"in Oe&&"integrated-mesh"===Oe.type?Oe:null,Ze={screenPoint:T,results:ne,ground:{mapPoint:this._intersectResultToMapPoint(fe),distance:(0,pE.nn)(fe)?fe.distanceInRenderSpace:0,layer:we}};return Fo.Z.SCENEVIEW_HITTEST_RETURN_INTERSECTOR&&(Ze.intersector=U),Promise.resolve(Ze)}popupHitTest(d){var _=this;return(0,kr.Z)(function*(){const{results:T,ground:x}=yield function n$(d,_){return ax.apply(this,arguments)}(_,d);let A=null;return!(0===T.length||Math.abs((0,Qe.Pt)(T[0].distance,0)-x.distance)<1e-5)||x.layer&&"integrated-mesh"===x.layer.type||(A=x.mapPoint),{results:T,screenPoint:d,mapPoint:A}})()}goTo(d,_){return this.updatingHandles.addPromise(this.stateManager.goTo(d,_))}whenAnalysisView(d){var _=this;return(0,kr.Z)(function*(){if((0,Qe.Wi)(d.parent))throw new ai.Z("view:no-analysisview-for-analysis","The analysis has not been added to view.analyses",{analysis:d});switch(d.parent.type){case"line-of-sight":case"dimension":return(yield _.whenLayerView(d.parent)).whenAnalysisView();default:return _.analysisViewManager.whenAnalysisView(d)}})()}whenLayerView(d){return super.whenLayerView(d)}takeScreenshot(d){var _=this;return(0,kr.Z)(function*(){const T=_._completeSettings(d);return yield _.whenReady(),sx(yield _._stage.renderView.takeScreenshot(T),T,_._pixelFormat())})()}_takeScreenshot(d){var _=this;return(0,kr.Z)(function*(){const T=_._completeSettings(d);return yield _.whenReady(),function zZ(d,_){const{ctx:T,canvas:x}=tU(d,_),A=T.getImageData(0,0,d.width,d.height);return rU(x),A}(yield _._stage.renderView.takeScreenshot(T),_._pixelFormat())})()}_completeSettings(d){const _=function VZ(d,_){const T=WZ(d,_),x=T.area,A=T.width/x.width,U=nx(T,_.padding),ne=U.left+U.right,fe=U.top+U.bottom,we=_.height-fe,Ze=Math.floor((_.width-ne)*A+ne),it=Math.floor(we*A+fe),lt=d&&d.layers?d.layers:[],dt=T.ignoreBackground,Tt=T.ignorePadding;return{framebufferWidth:Ze,framebufferHeight:it,region:{x:Math.floor(x.x*A)+U.left,y:Math.floor(x.y*A)+U.top,width:T.width,height:T.height},format:T.format,quality:T.quality,rotation:T.rotation,pixelRatio:A,layers:lt,disableDecorations:T.disableDecorations,ignoreBackground:dt,ignorePadding:Tt,objectAndLayerIdColor:!1}}(d,this);return _.pixelRatio/=this.state.pixelRatio,function ZZ(d,_,T){if(!_)return d;const{framebufferWidth:x,framebufferHeight:A,pixelRatio:U,region:ne}=d,fe=nx(d,T),Oe=fe.left+fe.right,we=fe.top+fe.bottom,Ze=x-Oe,it=A-we,lt=Math.min(8,Math.min((2048-Oe)/Ze,(2048-we)/it));return lt<1.5?d:{...d,framebufferWidth:Math.round(Ze*lt)+Oe,framebufferHeight:Math.round(it*lt)+we,pixelRatio:U*lt,resample:{region:{x:Math.round((ne.x-fe.left)*lt)+fe.left,y:Math.round((ne.y-fe.top)*lt)+fe.top,width:Math.round(ne.width*lt),height:Math.round(ne.height*lt)},width:x,height:A}}}(_,this.supersampleScreenshotsEnabled,this.padding)}_pixelFormat(){return{flipY:!0,premultipliedAlpha:this._stage.renderView.getAlpha()}}get test(){return{takeScreenshot:d=>this._takeScreenshot(d)}}takeScreenshotWithObjectAndLayerId(d){var _=this;return(0,kr.Z)(function*(){if(!(0,So.Z)("enable-feature:objectAndLayerId-rendering"))throw new Error("has enable-feature:objectAndLayerId-rendering must be true");const T=_._completeSettings(d);yield _.whenReady();const x=yield _._stage.renderView.takeScreenshotWithOID(T),A=sx(x[0],T,_._pixelFormat()),U=_._completeSettings(d);return U.format="png",[A,sx(x[1],U,_._pixelFormat())]})()}getColorToObjectAndLayerIdMapping(){if(!(0,So.Z)("enable-feature:objectAndLayerId-rendering"))throw new Error("has enable-feature:objectAndLayerId-rendering must be true");return this._stage.renderView._objectAndLayerIdRenderHelper.getColorToObjectAndLayerIdMapping()}addUpdatingPromise(d){return this.updatingHandles.addPromise(d)}importLayerView(d){return(d=>{const _=_A[d.type];if((0,Qe.Wi)(_))throw function nB(d){const _=d.declaredClass?d.declaredClass.slice(d.declaredClass.lastIndexOf(".")+1):"Unknown",T=_.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return new ai.Z(`${T}:view-not-supported`,`${_} is not supported in 3D`)}(d);return _(d)})(d)}hasLayerViewModule(d){return(d=>(0,Qe.pC)(_A[d.type]))(d)}forceDOMReadyCycle(){this.forceReadyCycle()}getDefaultSpatialReference(){return this.map&&"initialViewProperties"in this.map&&this.map?.initialViewProperties?.spatialReference||this.defaultsFromMap?.spatialReference||this.defaultsFromMap?.ready&&this._initialDefaultSpatialReference||null}validate(){var d=this;return(0,kr.Z)(function*(){let _=function l$(d){const _=(0,a$.hc)(d);if(!_.available)return new ai.Z("webgl:required","WebGL is required but not supported.");if("3d"===d&&_.majorPerformanceCaveat)return new ai.Z("webgl:major-performance-caveat-detected","Your WebGL implementation doesn't seem to support hardware accelerated rendering. Check your browser settings or if your GPU is in a blocklist.");if(!_.supportsHighPrecisionFragment)return new ai.Z("webgl:high-precision-fragment-required","WebGL support for high precision fragment shaders is required but not supported.");if(!_.supportsVertexShaderSamplers)return new ai.Z("webgl:vertex-shader-samplers-required","WebGL support for vertex shader samplers is required but not supported.");if(_.type===cl.zO.WEBGL1){if(!_.supportsElementIndexUint)return new ai.Z("webgl:element-index-uint-required","WebGL support for uint vertex indices is required but not supported.");if(!_.supportsStandardDerivatives)return new ai.Z("webgl:standard-derivatives-required","WebGL support for standard derivatives is required but not supported.");if(!_.supportsInstancedArrays)return new ai.Z("webgl:instanced-arrays-required","WebGL support for instanced rendering is required but not supported.")}return null}(d.type);if((0,So.Z)("safari")&&(0,So.Z)("safari")<9&&(_=new ai.Z("sceneview:browser-not-supported","This browser is not supported by SceneView (Safari < 9)",{type:"safari",requiredVersion:9,detectedVersion:(0,So.Z)("safari")})),(0,Qe.pC)(_))throw Us.Z.getLogger(d.declaredClass).warn("#validate()",_.message),_})()}get _predeterminedViewingMode(){const d=this._isOverridden("viewingMode")?this._get("viewingMode"):(this.map&&"initialViewProperties"in this.map?this.map.initialViewProperties?.viewingMode:null)??null;return(0,Qe.pC)(d)?(0,vi.wg)(d):null}getSpatialReferenceSupport({spatialReference:d,layer:_}){const T=this._predeterminedViewingMode;if((0,Qe.pC)(T))return this._validateSpatialReferenceForViewingMode(d,_,T)?{constraints:this._makeSpatialReferenceConstraints(d,_,T)}:null;const x=this._validateSpatialReferenceForViewingMode(d,_,vi.JY.Local),A=this._validateSpatialReferenceForViewingMode(d,_,vi.JY.Global);return x||A?x&&A?{constraints:this._makeSpatialReferenceConstraints(d,_,null)}:x?{constraints:this._makeSpatialReferenceConstraints(d,_,vi.JY.Local)}:{constraints:this._makeSpatialReferenceConstraints(d,_,vi.JY.Global)}:null}_validateSpatialReferenceForViewingMode(d,_,T){return!(!(0,r2.D)(d,T)||!(0,Qe.Wi)(_)&&!(0,Gl.Am)(_)&&((0,Gl.iC)(_)&&(0,Qe.Wi)((0,Cr.E_)(_,d,T))||(0,Gl.Tv)(_)&&T===vi.JY.Global))}_makeSpatialReferenceConstraints(d,_,T){if((0,Qe.Wi)(_))return[{spatialReference:d,viewingMode:T}];const x=d.isWebMercator,A=d.isWGS84;return(0,Gl.Am)(_)&&(x||A)?A&&T!==vi.JY.Local&&null!==(0,Cr.er)(_.tileInfo,_.fullExtent,d,vi.JY.Global)?[{spatialReference:x?to.Z.WGS84:to.Z.WebMercator,viewingMode:T}]:[{spatialReference:d,viewingMode:T},{spatialReference:to.Z.WebMercator,viewingMode:T}]:(0,Gl.iC)(_)||(0,Gl.Tv)(_)||!x&&!A?(0,Gl.iC)(_)&&x&&T!==vi.JY.Global?[{spatialReference:d,viewingMode:T},{spatialReference:to.Z.WGS84,viewingMode:vi.JY.Local}]:[{spatialReference:d,viewingMode:T}]:[{spatialReference:d,viewingMode:T},{spatialReference:x?to.Z.WGS84:to.Z.WebMercator,viewingMode:T}]}_validateSpatialReference(d){const _=(0,Qe.pC)(this.getSpatialReferenceSupport({spatialReference:d})),T=this._predeterminedViewingMode;return _||((0,Qe.pC)(T)?Us.Z.getLogger(this.declaredClass).warnOnce(`Spatial reference defined on view not supported in ${(0,vi.M7)(T)} viewing mode.`):d.isGeographic&&Us.Z.getLogger(this.declaredClass).warnOnce("Spatial reference is geographic but not supported.")),_}whenReady(){return new Promise(d=>{this.ready?d(this):this._resolveWhenReady.push(d)})}computeMapPointFromVec3d(d,_){let T=this.spatialReference||to.Z.WGS84;return(0,di.SH)(d,this.renderSpatialReference,d,T)||(T=to.Z.WGS84,(0,di.SH)(d,this.renderSpatialReference,d,T)),_?(_.x=d[0],_.y=d[1],_.z=d[2],_.spatialReference=T):_=new vn.Z(d,T),_}trackGraphicState(d){if(!d.graphic)return Us.Z.getLogger(this.declaredClass).error("trackGraphicState","GraphicState.graphic must not be null or undefined to start tracking"),null;const _=this.getViewForGraphic(d.graphic);let T=null,x=!1;const A=U=>{!x&&(0,Qe.pC)(U)&&"processor"in U&&"graphics-3d"===U.processor?.type&&U.processor.graphicsCore&&(T=U.processor.graphicsCore.trackGraphicState(d))};return(0,Qe.pC)(_)?A(_):this.whenViewForGraphic(d.graphic,{waitForLayer:!0}).then(U=>A(U),()=>{}).catch(()=>{}),{remove:()=>{x=!0,(0,Qe.pC)(T)&&(T.remove(),T=null)}}}highlight(d){if(Array.isArray(d))return(0,Sp.AL)(d.map(T=>this.highlight(T)));if(On.Z.isCollection(d))return(0,Sp.AL)(d.toArray().map(T=>this.highlight(T)));const _=this.getViewForGraphic(d);return _&&"highlight"in _?_.highlight(d):(0,Sp.kB)()}maskOccludee(d){if(!d)return Us.Z.getLogger(this.declaredClass).error("maskOccludee","GraphicState.graphic must not be null or undefined to mask an occludee"),null;const _=this.getViewForGraphic(d);let T=null,x=!1;const A=U=>{!x&&(0,Qe.pC)(U)&&(0,LM._1)(U)&&(T=U.maskOccludee(d))};return(0,Qe.pC)(_)?A(_):this.whenViewForGraphic(d,{waitForLayer:!0}).then(U=>A(U),()=>{}).catch(()=>{}),{remove:()=>{x=!0,(0,Qe.pC)(T)&&(T.remove(),T=null)}}}getViewForGraphic(d){return d.layer===this.graphics?this.graphicsView:d.layer?this.allLayerViews.find(_=>_.layer===d.layer):null}graphicChanged(d){(0,Qe.pC)(this.graphicsView)&&this.graphicsView.graphicChanged(d)}whenViewForGraphic(d,_){var T=this;return(0,kr.Z)(function*(){if(d.layer===T)return yield(0,Ht.N1)(()=>T.graphicsView),T.graphicsView;if(!d.layer||!T.map)throw new ai.Z("no-view-for-graphic");return _&&_.waitForLayer&&!T.map.allLayers.includes(d.layer)?new Promise((x,A)=>{const U=T.map.allLayers.on("change",ne=>{ne.added.includes(d.layer)&&(U.remove(),T.whenLayerView(d.layer).then(x,A))})}):T.whenLayerView(d.layer)})()}externalToInternalIntersectOptions(d){const _=this._externalToInternalRenderItems(d.include,Dy.INCLUDE),T=this._externalToInternalRenderItems(d.exclude,Dy.EXCLUDE);return{include:_.layerUids,exclude:T.layerUids,graphics:{include:_.graphicUids,exclude:T.graphicUids}}}_intersectResultToMapPoint(d,_){return d.getIntersectionPoint(xf)?(_=this.computeMapPointFromVec3d(xf,_),d.intersector===ya.q7.TERRAIN&&this.basemapTerrain&&(_.z=(0,Qe.Pt)((0,W_.KO)(this.basemapTerrain,_),0)),_):null}_intersectResultsToHits(d,_){const T=new Array;let x=null;for(let A=0;A{const _=this.basemapTerrain?.extent;if(this.clippingArea||_)if(_&&this.basemapTerrain.spatialReference){const T=(0,Qe.pC)(this.basemapTerrain.extent)&&(0,Qe.pC)(this.basemapTerrain.spatialReference)?(0,di.iV)((0,Bs.HH)(this.basemapTerrain.extent,this.basemapTerrain.spatialReference),this.spatialReference):null;this.featureTiles.filterExtent=(0,Qe.pC)(this.clippingArea)?this.clippingArea.intersection(T):T}else this.featureTiles.filterExtent=this.clippingArea;else this.featureTiles.filterExtent=null};this.handles.add([this.updatingHandles.add(()=>Fo.Z.FEATURE_TILE_TREE_SHOW_TILES,_=>{_&&this.featureTiles&&!this._featureTreeDebugger?this.updatingHandles.addPromise(Promise.all([v.e(8592),v.e(5566)]).then(v.bind(v,15566))).then(({FeatureTileTree3DDebugger:T})=>{!this._featureTreeDebugger&&Fo.Z.FEATURE_TILE_TREE_SHOW_TILES&&(this._featureTreeDebugger=new T({view:this}))}):_||!this._featureTreeDebugger||Fo.Z.FEATURE_TILE_TREE_SHOW_TILES||(this._featureTreeDebugger.destroy(),this._featureTreeDebugger=null)},Ht.tX),this.updatingHandles.add(()=>this.clippingArea,d,Ht.tX),this.updatingHandles.add(()=>this.basemapTerrain.extent,d,Ht.tX)],"feature-tiles"),this.stateManager.init()}_exitGlobe(){this.state&&(this.stateManager.exit(),this.handles.remove("render-coords-helper"),this.handles.remove("feature-tiles"),this.featureTiles.destroy(),this._set("featureTiles",null),this.pointsOfInterest.destroy(),this._set("pointsOfInterest",null),this._exitBasemapTerrain(),this.state.exit(),this._exitCoordinateSystem())}_initCoordinateSystem(){if(this.spatialReference){const d=this.spatialReference;this.mapCoordsHelper&&this.mapCoordsHelper.spatialReference.equals(d)||this._set("mapCoordsHelper",new SW(this.map,d));const _=this.state.isGlobal,T=(0,o_.E2)(_,d);T!==this.renderSpatialReference&&(this._set("renderCoordsHelper",AW.Z.create(this.state.viewingMode,T)),_||this.handles.add((0,Ht.YP)(()=>this.basemapTerrain?.extent,x=>{x&&(0!==x[0]||0!==x[1]||0!==x[2]||0!==x[3])&&(0,di.dH)(x,this.basemapTerrain.spatialReference,gU,this.renderCoordsHelper.spatialReference)&&(this.renderCoordsHelper.extent=gU)},Ht.Z_),"render-coords-helper"),this.sceneIntersectionHelper&&this.sceneIntersectionHelper.setTolerance(Ga.vh/this.renderCoordsHelper.unitInMeters))}else this._set("mapCoordsHelper",null),this._set("renderCoordsHelper",null)}_exitCoordinateSystem(){this.mapCoordsHelper&&(this.handles.remove("render-coords-helper"),this._set("renderCoordsHelper",null),this._set("mapCoordsHelper",null))}_updatingChanged(){this.notifyChange("updating")}_updateUpdatingMonitors(d=null){(0,Qe.pC)(d)&&d.type===SD.y.MOVE||(this.handles.remove("updatingMonitors"),this.allLayerViews.forEach(_=>{_.destroyed||(this.handles.add((0,Ht.YP)(()=>[_.updating,_.updatingProgress],()=>this._updatingChanged(),Ht.Z_),"updatingMonitors"),_.when(()=>this._updatingChanged(),()=>this._updatingChanged()))}),this._updatingChanged())}_prepareScreenshotOverlay(){var d=this;return(0,kr.Z)(function*(){d.overlay&&(yield d.overlay.prepare())})()}_renderScreenshotOverlay(d,_){if(!this.overlay||!this.overlay.hasVisibleItems)return _;const T=d.getContext("2d");return T.putImageData(_,0,0),this.overlay.renderCanvas(d),T.getImageData(0,0,_.width,_.height)}_initStage(){const d={deactivatedWebGLExtensions:this.deactivatedWebGLExtensions,debugWebGLExtensions:this.debugWebGLExtensions,alpha:this.alphaCompositingEnabled,preserveDrawingBuffer:this.preserveDrawingBufferEnabled,canvas:this.renderCanvas,screenshot:{prepareOverlay:()=>this._prepareScreenshotOverlay(),renderOverlay:(fe,Oe)=>this._renderScreenshotOverlay(fe,Oe)}},_=new CW(this.state.viewingMode,fe=>this._stage.layers.forAll(fe),this);this._set("sceneIntersectionHelper",_);const T=(0,md.L7)(this.surface),{resourceController:x,state:A,renderSpatialReference:U}=this;this._stage=new Il({options:d,container:T,resourceController:x,state:A,sceneIntersectionHelper:_,renderSR:U}),this._stage.renderView.setRenderParameters({slicePlane:this.slicePlane}),this._lostWebGLContextHandle=(0,Dp.on)(this._stage.renderView.canvas,"webglcontextlost",()=>this.fatalError=new ai.Z("webgl-context-lost")),this.handles.add([this.updatingHandles.add(()=>this.qualitySettings.antialiasingEnabled,()=>this._stage.renderView.setRenderParameters({antialiasingEnabled:this.qualitySettings.antialiasingEnabled}),Ht.nn),this.updatingHandles.add(()=>this.qualitySettings.highQualityTransparency,()=>this._stage.renderView.setRenderParameters({highQualityTransparency:this.qualitySettings.highQualityTransparency}),Ht.nn),(0,Ht.YP)(()=>this.magnifier,fe=>this._stage.renderView.magnifier=fe,Ht.tX)],"stage");const ne=()=>{this._stage.renderView.setRenderParameters({defaultHighlightOptions:q2.toEngineOptions(this.highlightOptions)})};this.handles.add(this.updatingHandles.add(()=>[this.highlightOptions.color,this.highlightOptions.haloColor,this.highlightOptions.haloOpacity,this.highlightOptions.fillOpacity,this.highlightOptions.shadowOpacity,this.highlightOptions.shadowColor,this.highlightOptions.shadowDifference],ne),"stage"),ne(),this.renderCoordsHelper&&this.sceneIntersectionHelper.setTolerance(Ga.vh/this.renderCoordsHelper.unitInMeters),this._set("canvas",this._stage.renderView.canvas)}_exitStage(){this._set("sceneIntersectionHelper",null),this._stage.destroy(),this._stage=null,this._lostWebGLContextHandle.remove(),this._lostWebGLContextHandle=null,this.handles.remove("stage"),this._set("canvas",null)}_initSurface(d){this._exitSurface(),this.state.init(d,this.spatialReference),this._initStage(),this._initGlobe(),this.sharedSymbolResources=new KW({view:this,viewingMode:d,resourceController:this._resourceController,pointsOfInterest:this.pointsOfInterest,viewState:this.state})}_exitSurface(){this.sharedSymbolResources&&(this.sharedSymbolResources.objectResourceCache.destroy(),this.sharedSymbolResources.destroy(),this.sharedSymbolResources=null,this._exitGlobe(),this._exitStage())}_createGraphicsViewIfNeeded(){if(this.graphicsView||this._createGraphicsViewController||0===this.graphics.length)return;this.handles.remove("graphics-view"),this._createGraphicsViewController=new AbortController;const d=()=>{this._createGraphicsViewController=null,this._updatingChanged()};this._createGraphicsViewAsync(this._createGraphicsViewController.signal).then(d,d),this._updatingChanged()}_createGraphicsViewAsync(d){var _=this;return(0,kr.Z)(function*(){const T=(yield Promise.all([v.e(1832),v.e(8592),v.e(7898)]).then(v.bind(v,87312))).default;(0,ws.k_)(d),yield(0,Ht.N1)(()=>_.basemapTerrain?.ready,d),_._set("graphicsView",new T({view:_}))})()}_disposeGraphicsView(){this._createGraphicsViewController&&(this._createGraphicsViewController.abort(),this._createGraphicsViewController=null),this.handles.remove("graphics-view"),(0,Qe.pC)(this.graphicsView)&&(this.handles.remove(this.graphicsView.processor.layer.id),this.graphicsView.destroy(),this._set("graphicsView",null))}_startup(){const d=(0,vi.wg)(this.viewingMode);if(d===vi.JY.Global&&(this._clippingArea=null),this._initSurface(d),this._set("ready",!0),this.handles.add((0,Ht.on)(()=>this.graphics,"after-changes",()=>this._createGraphicsViewIfNeeded()),"graphics-view"),this._createGraphicsViewIfNeeded(),!this._externallySet.environment){const T=this.get("map.initialViewProperties.environment");T&&(this.environment=T)}this.labeler.setup(),this.environmentManager.connectView(this),this.inputManager.connect();const _=this._resolveWhenReady;this._resolveWhenReady=[],_.forEach(T=>T(this))}_teardown(){this._initialDefaultSpatialReference=null,this.inputManager.disconnect(),this.environmentManager.disconnectView(),this.labeler.dispose(),this._disposeGraphicsView(),this.handles.remove("graphics-view"),this._exitSurface(),this._set("ready",!1)}_updateDefaultToMapOptions(){if(this._defaultToMapOptions.include.clear(),this.map){this.map.ground&&this._defaultToMapOptions.include.add(bc.cy);for(const d of this.map.allLayers.items)"integrated-mesh"===d.type&&this._defaultToMapOptions.include.add(d.uid)}}_updateDefaultHitTestOptions(){if(this._defaultHitTestOptions.exclude.clear(),this.map){this.map.ground&&this.map.ground.opacity<1&&this._defaultHitTestOptions.exclude.add(bc.cy);for(const d of this.map.allLayers.items)"integrated-mesh"===d.type&&d.opacity<1&&this._defaultToMapOptions.exclude.add(d.uid)}}addVoxelLayerViewToWasm(d){return(0,Qe.Wi)(this.voxelWasm)?((0,Qe.Wi)(this.voxelWasmPromise)&&(this.voxelWasmPromise=v.e(3208).then(v.bind(v,23208)).then(_=>(this.voxelWasm=new _.default(this),this.voxelWasm))),this.voxelWasmPromise.then(_=>_.addVoxelLayer(d))):this.voxelWasm.addVoxelLayer(d)}removeVoxelLayerViewFromWasm(d){(0,Qe.pC)(this.voxelWasm)&&this.voxelWasm.removeVoxelLayer(d)<1&&(this.voxelWasm=null,this.voxelWasmPromise=null)}};function xy(d,_){d.layerUids||(d.layerUids=new Set),d.layerUids.add(_)}function Sb(d,_){return(0,Qe.pC)(d)&&(0,di.Up)(d.spatialReference,_)?(0,di.iV)(d,_):null}var Dy;Qs.type="3d",(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"_userClippingArea",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"_resourceController",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"_stage",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"deconflictor",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"labeler",void 0),(0,Ve._)([(0,ke.Cb)((0,Av.z)(a_,"analyses"))],Qs.prototype,"analyses",void 0),(0,Ve._)([(0,ke.Cb)({type:g_,readOnly:!0})],Qs.prototype,"animation",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"basemapTerrain",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"elevationProvider",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"camera",null),(0,Ve._)([(0,ke.Cb)({type:uc})],Qs.prototype,"contentCamera",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"canvas",void 0),(0,Ve._)([(0,ke.Cb)({type:vn.Z})],Qs.prototype,"center",null),(0,Ve._)([(0,ke.Cb)({type:bl.Z})],Qs.prototype,"clippingArea",null),(0,Ve._)([(0,ke.Cb)({type:Kp})],Qs.prototype,"constraints",void 0),(0,Ve._)([(0,ke.Cb)({type:bl.Z,readOnly:!0})],Qs.prototype,"renderDataExtent",null),(0,Ve._)([(0,ke.Cb)({type:bl.Z,readOnly:!0})],Qs.prototype,"dataExtent",null),(0,Ve._)([(0,ke.Cb)({type:bl.Z,readOnly:!0})],Qs.prototype,"_groundAndLayersExtent",null),(0,Ve._)([(0,ke.Cb)({value:null,type:M_})],Qs.prototype,"environment",null),(0,Ve._)([(0,ko.p)("environment")],Qs.prototype,"castEnvironment",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"environmentManager",void 0),(0,Ve._)([(0,ke.Cb)({type:bl.Z})],Qs.prototype,"extent",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"floors",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"screenCenter",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"frustum",null),(0,Ve._)([(0,ke.Cb)({type:Number,readOnly:!0})],Qs.prototype,"fullOpacity",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"graphicsView",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"analysisViewManager",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"groundView",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],Qs.prototype,"initialExtentRequired",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"_defaultsFromMapSettings",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"interacting",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"stationary",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"navigating",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"map",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"mapCoordsHelper",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"padding",null),(0,Ve._)([(0,ke.Cb)({type:Za,readOnly:!0})],Qs.prototype,"pointsOfInterest",void 0),(0,Ve._)([(0,ke.Cb)({type:ga,readOnly:!0})],Qs.prototype,"featureTiles",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"_featureTreeDebugger",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],Qs.prototype,"screenSizePerspectiveEnabled",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Qs.prototype,"deactivatedWebGLExtensions",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Qs.prototype,"debugWebGLExtensions",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Qs.prototype,"renderCanvas",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Qs.prototype,"state",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"inputManager",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"stateManager",void 0),(0,Ve._)([(0,ke.Cb)({type:["low","medium","high"]})],Qs.prototype,"qualityProfile",null),(0,Ve._)([(0,ke.Cb)({type:fw,get(){let d=this._get("qualitySettings");return d||(d=new fw,yE.apply(this.qualityProfile,d)),d}})],Qs.prototype,"qualitySettings",void 0),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"slicePlane",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"typeSpecificPreconditionsReady",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"renderCoordsHelper",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"sceneIntersectionHelper",void 0),(0,Ve._)([(0,ke.Cb)({type:Number,dependsOn:["scale","spatialReference"],readOnly:!0})],Qs.prototype,"resolution",null),(0,Ve._)([(0,ke.Cb)({type:Number})],Qs.prototype,"scale",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"heightModelInfo",null),(0,Ve._)([(0,ke.Cb)()],Qs.prototype,"spatialReference",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,constructOnly:!0})],Qs.prototype,"alphaCompositingEnabled",void 0),(0,Ve._)([(0,ke.Cb)({constructOnly:!0})],Qs.prototype,"preserveDrawingBufferEnabled",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean})],Qs.prototype,"supersampleScreenshotsEnabled",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Qs.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)({type:mU})],Qs.prototype,"ui",void 0),(0,Ve._)([(0,ke.Cb)({type:Boolean,readOnly:!0,dependsOn:["graphicsView.updating","basemapView.updating","basemapTerrain.updating","layerViewManager.updating","layerViewManager.updatingRemaining","_resourceController.updating","_stage.updating","featureTiles.updating","pointsOfInterest.updating","environmentManager.updating","overlay.updating","updatingHandles.updating","featureTreeDebugger.updating","labeler.updating","deconflictor.updating","ready","stationary","inputManager.hasPendingInputs","toolViewManager.updating","analysisViewManager.updating"]})],Qs.prototype,"updating",null),(0,Ve._)([(0,ke.Cb)({type:Number,readOnly:!0,dependsOn:["updating"]})],Qs.prototype,"updatingProgress",void 0),(0,Ve._)([(0,ke.Cb)({type:["global","local"]})],Qs.prototype,"viewingMode",null),(0,Ve._)([(0,ke.Cb)({type:iu})],Qs.prototype,"viewpoint",null),(0,Ve._)([(0,ke.Cb)({type:Number})],Qs.prototype,"zoom",null),(0,Ve._)([(0,ke.Cb)({type:q2})],Qs.prototype,"highlightOptions",void 0),Qs=(0,Ve._)([(0,Wr.j)("esri.views.SceneView")],Qs),function(d){d[d.INCLUDE=0]="INCLUDE",d[d.EXCLUDE=1]="EXCLUDE"}(Dy||(Dy={}));const xf=(0,ir.c)(),dx=(0,li.s1)(),gU=(0,Bs.Ue)(),O$=Qs;var x$=v(2076),Sy=v(31283),D$=v(29538),yU=v(53390);let qu=class extends Ns.Z{constructor(d){super(d),this._from=null,this._to=null,this._final=null,this._current=[],this._time=0,this.duration=(0,So.Z)("mapview-transitions-duration"),this.effects=[]}set effect(d){if(this._get("effect")!==(d=d||"")){this._set("effect",d);try{this._transitionTo(vU(d))}catch(_){this._transitionTo([]),Us.Z.getLogger(this.declaredClass).warn("Invalid Effect",{effect:d,error:_})}}}get hasEffects(){return this.transitioning||!!this.effects.length}set scale(d){this._updateForScale(d)}get transitioning(){return null!==this._to}canTransitionTo(d){try{return this.scale>0&&EU(this._current,vU(d),this.scale)}catch{return!1}}transitionStep(d,_){this._applyTimeTransition(d),this._updateForScale(_)}endTransitions(){this._applyTimeTransition(this.duration)}_transitionTo(d){this.scale>0&&EU(this._current,d,this.scale)?(this._final=d,this._to=(0,hd.d9)(d),function S$(d,_,T){const x=d.length>_.length?d:_,A=d.length>_.length?_:d,U=A[A.length-1],ne=U?.scale??T,fe=U?.effects??[];for(let Oe=A.length;Oe=_[0].scale)A=x=_[0].effects;else if(d<=_[T].scale)A=x=_[T].effects;else for(let ne=0;ne=d&&Oe.scale<=d){U=(d-fe.scale)/(Oe.scale-fe.scale),x=fe.effects,A=Oe.effects;break}}for(let ne=0;ne1||_.length>1)&&T<=0)&&(0,yU.AS)(d[0].effects,_[0].effects)}function A$(d,_,T){return d+(_-d)*T}(0,Ve._)([(0,ke.Cb)()],qu.prototype,"_to",void 0),(0,Ve._)([(0,ke.Cb)()],qu.prototype,"duration",void 0),(0,Ve._)([(0,ke.Cb)({value:""})],qu.prototype,"effect",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],qu.prototype,"effects",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],qu.prototype,"hasEffects",null),(0,Ve._)([(0,ke.Cb)({value:0})],qu.prototype,"scale",null),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],qu.prototype,"transitioning",null),qu=(0,Ve._)([(0,Wr.j)("esri.layers.effects.EffectView")],qu);var w$=v(71149),I$=v(14772),L$=v(33474),U$=v(50134),B$=v(24729),bU=v(56445),j$=v(88115),W$=v(66960);const CU={HH:315,HL:45,LL:135,LH:225},V$={2:[["HL","HH"],["LL","LH"]],3:[["HL","HM","HH"],["ML","MM","MH"],["LL","LM","LH"]],4:[["HL","HM1","HM2","HH"],["M2L","M2M1","M2M2","M2H"],["M1L","M1M1","M1M2","M1H"],["LL","LM1","LM2","LH"]]};function z$(d){if(!d)return;const{type:_}=d;if(_.includes("3d"))return(0,W$.getSymbolLayerFill)(d.symbolLayers.getItemAt(0));if("simple-line"===_){const T=(0,$v.mx)(d);return T&&T.color}if("simple-marker"===d.type&&("x"===d.style||"cross"===d.style)){const T=(0,$v.mx)(d);return T&&T.color}return(0,$v._M)(d)}function H$(d,_){const T=_.HH.label,x=_.LL.label,A=_.HL.label,U=_.LH.label;switch(d){case"HH":default:return{top:T,bottom:x,left:A,right:U};case"HL":return{top:A,bottom:U,left:x,right:T};case"LL":return{top:x,bottom:T,left:U,right:A};case"LH":return{top:U,bottom:A,left:T,right:x}}}function TU(d){let _=CU[d];return d&&null==_&&(_=CU.HH),_||0}var Df=v(57213);const MU=[255,255,255],PU=[200,200,200],Sf=[128,128,128];function J$(d,_){const T=d.length-1;return d.map((x,A)=>lS(x,A,T,_))}function Q$(d,_,T,x,A,U,ne){return _x.apply(this,arguments)}function _x(){return _x=(0,kr.Z)(function*(d,_,T,x,A,U,ne){const fe=_.legendOptions,Oe=fe&&fe.customValues,we=ne||(yield tY(d,T)),dt=_.stops&&_.stops.length>1;if(!we||!Oe&&!(null!=_.minSize&&null!=_.maxSize||dt&&!_.target))return;const mt=(0,da.YW)(we);let Mt=null,Pt=null,Nt=null;Pt=mt&&!dt?zv([_.minDataValue,_.maxDataValue]):Oe||(yield sY(_,we,x,A));const Bt=d?.authoringInfo,Zt="univariate-color-size"===Bt?.type,nr=Zt&&"above-and-below"===Bt?.univariateTheme;if(!Pt&&dt&&(Pt=_.stops.map($r=>$r.value),Mt=_.stops.some($r=>!!$r.label),"flow"===d.type&&(Pt=zv(Pt)),Mt&&(Nt=_.stops.map($r=>$r.label))),mt&&Pt?.length>2&&!nr&&(Pt=[Pt[0],Pt[Pt.length-1]]),!Pt)return null;Zt&&5!==Pt?.length&&(Pt=DU({minSize:Pt[0],maxSize:Pt[Pt.length-1]}));const Jt=mt?q$(d,Pt):null,Rr=(0,da.Y6)(we),Br=Mt?null:J$(Pt,U);return(yield Promise.all(Pt.map(function(){var $r=(0,kr.Z)(function*(Yr,cs){const Xr=mt?Jt[cs]:yield Af(_,we,Yr,x,A);return{value:Yr,symbol:oY(nr&&"class-breaks"===d.type?eY(d,cs):we,Xr),label:Mt?Nt[cs]:Br[cs],size:Xr,outlineSize:Rr}});return function(Yr,cs){return $r.apply(this,arguments)}}()))).reverse()}),_x.apply(this,arguments)}function q$(d,_){const T=d?.authoringInfo,x="univariate-color-size"===T?.type;let A=[12,30];if(x){const U=_[0],ne=_[_.length-1],fe=12,Oe=30;A=_.map(we=>fe+(we-U)/(ne-U)*(Oe-fe))}return x&&"below"===T?.univariateTheme&&A.reverse(),A}function eY(d,_){const T=d.classBreakInfos,x=T.length,A=x<2||!(_>=2)?T[0].symbol.clone():T[x-1].symbol.clone();return d.visualVariables.some(U=>"color"===U.type)&&(A.type.includes("3d")?OU(A):xU(A)),A}function tY(d,_){return fx.apply(this,arguments)}function fx(){return fx=(0,kr.Z)(function*(d,_){if("flow"===d.type)return cS(d,_);if("pie-chart"===d.type)return new Df.Z({color:null,outline:d.outline?.width?d.outline:new nS.Z});let T=null,x=null;if("simple"===d.type)T=d.symbol;else if("class-breaks"===d.type){const A=d.classBreakInfos;T=A&&A[0]&&A[0].symbol,x=A.length>1}else if("unique-value"===d.type){const A=d.uniqueValueInfos;T=A&&A[0]&&A[0].symbol,x=A.length>1}return!T||rY(T)?null:(T=T.clone(),(_||x)&&(T.type.includes("3d")?OU(T):xU(T)),T)}),fx.apply(this,arguments)}function rY(d){return!!d&&((0,iS.dU)(d)?!!d.symbolLayers&&d.symbolLayers.some(_=>_&&"fill"===_.type):d.type.includes("fill"))}function OU(d){d.symbolLayers.forEach("line-3d"===d.type?_=>{_.material={color:Sf}}:_=>{"icon"!==_.type||_.resource&&_.resource.href?_.material={color:PU}:(_.material={color:MU},_.outline={color:Sf,size:1.5})})}function xU(d){const _=Vm();"cim"===d.type?(0,bU.ZB)(d,new lo.Z(PU)):d.type.includes("line")?d.color=Sf:(d.color=_?Sf:MU,"simple-marker"===d.type&&(d.outline?"#ffffff"===d.outline?.color?.toHex()&&(d.outline.color=Sf):d.outline={color:Sf,width:1.5}))}function sY(d,_,T,x){return mx.apply(this,arguments)}function mx(){return mx=(0,kr.Z)(function*(d,_,T,x){const A=(yield Promise.resolve().then(v.bind(v,81808))).getSizeRangeAtScale(d,T,x),U=A&&DU(A);if(!A&&!U)return;let ne=U.map(fe=>iY(fe,d,A));ne=zv(ne);for(let fe=1;fe=A?ne:(d-x)/(A-x)*(ne-U)+U,fe}function nY(d,_,T,x,A,U){return gx.apply(this,arguments)}function gx(){return gx=(0,kr.Z)(function*(d,_,T,x,A,U){const ne=yield Af(d,_,T,A,U),fe=yield Af(d,_,x,A,U),Oe=Wv(T);let it=Oe.integer,lt=null,dt=null;T>0&&T<1&&(lt=10**Oe.fractional,it=Wv(T*=lt).integer);for(let Tt=it-1;Tt>=0;Tt--){const mt=10**Tt;let Mt=Math.floor(T/mt)*mt,Pt=Math.ceil(T/mt)*mt;null!=lt&&(Mt/=lt,Pt/=lt);let Nt=(Mt+Pt)/2;[,Nt]=zv([Mt,Nt,Pt],{indexes:[1]});const Bt=yield Af(d,_,Mt,A,U),Zt=yield Af(d,_,Pt,A,U),nr=yield Af(d,_,Nt,A,U),Jt=Vv(ne,Bt,fe,null),Rr=Vv(ne,Zt,fe,null),Br=Vv(ne,nr,fe,null);let $r=Jt.previous<=20,Yr=Rr.previous<=20;if($r&&Yr&&(Jt.previous<=Rr.previous?($r=!0,Yr=!1):(Yr=!0,$r=!1)),$r?dt=[Mt,Bt]:Yr?dt=[Pt,Zt]:Br.previous<=20&&(dt=[Nt,nr]),dt)break}return dt}),gx.apply(this,arguments)}function Af(d,_,T,x,A){return yx.apply(this,arguments)}function yx(){return yx=(0,kr.Z)(function*(d,_,T,x,A){const{getSize:U}=yield Promise.resolve().then(v.bind(v,81808));return U(d,T,{scale:x,view:A,shape:"simple-marker"===_.type?_.style:null})}),yx.apply(this,arguments)}function oY(d,_){const T=d.clone();if((0,iS.dU)(T))(0,da.YW)(T)||T.symbolLayers.forEach(x=>{"fill"!==x.type&&(x.size=_)});else if(function $$(d){return"esri.symbols.SimpleMarkerSymbol"===d.declaredClass}(T))T.size=_;else if(function Y$(d){return"esri.symbols.PictureMarkerSymbol"===d.declaredClass}(T)){const x=T.width,A=T.height;T.height=_,T.width=_*(x/A)}else!function X$(d){return"esri.symbols.SimpleLineSymbol"===d.declaredClass}(T)?function k$(d){return"esri.symbols.TextSymbol"===d.declaredClass}(T)&&T.font&&(T.font.size=_):T.width=_;return T}const Ab=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i,hY=new x$.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),SU={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34e38,34e38],f64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Rb=new Df.Z({size:6,outline:{color:[128,128,128,.5],width:.5}}),pY=new VM.Z({style:"solid"});function vx(d){return"flow"===d.type}function AU(d){return"vector-field"===d.type}function RU(d){return"raster-colormap"===d.type}function wU(d){return"raster-stretch"===d.type}function IU(d){return"raster-shaded-relief"===d.type}function Rf(d){return"esri.renderers.SimpleRenderer"===d.declaredClass}function wf(d){return"esri.renderers.ClassBreaksRenderer"===d.declaredClass}function wb(d){return"esri.renderers.UniqueValueRenderer"===d.declaredClass}function LU(d){return"esri.renderers.HeatmapRenderer"===d.declaredClass}function Ex(d){return"esri.renderers.PointCloudClassBreaksRenderer"===d.declaredClass}function bx(d){return"esri.renderers.PointCloudStretchRenderer"===d.declaredClass}function Cx(d){return"esri.renderers.PointCloudUniqueValueRenderer"===d.declaredClass}function UU(d){return"esri.renderers.DotDensityRenderer"===d.declaredClass}function BU(d){return"esri.renderers.PieChartRenderer"===d.declaredClass}function jU(d){return"esri.layers.SubtypeGroupLayer"===d.declaredClass}function FU(d){return"esri.layers.MapImageLayer"===d.declaredClass}function If(d){return"esri.layers.ImageryLayer"===d.declaredClass}function Ib(d){return"esri.layers.ImageryTileLayer"===d.declaredClass}const xY=new Df.Z({style:"path",path:"M10,5 L5,0 0,5 M5,0 L5,15",size:15,outline:{width:1,color:[85,85,85,1]}});let Lf={},ra=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z,this._hasColorRamp=!1,this._hasOpacityRamp=!1,this._hasSizeRamp=!1,this._webStyleSymbolCache=new Map,this._dotDensityUrlCache=new Map,this._scaleDrivenSizeVariable=null,this._hasClusterSizeVariable=!1,this.children=new On.Z,this.layerView=null,this.layer=null,this.legendElements=[],this.parent=null,this.hideLayersNotInCurrentView=!1,this.keepCacheOnDestroy=!1,this.respectLayerVisibility=!0,this.sublayerIds=[],this.title=null,this.view=null}initialize(){const d=()=>this.notifyChange("ready");this._handles.add([(0,Ht.on)(()=>this.children,"change",_=>{const{added:T,removed:x}=_,A=this._handles;T.forEach(U=>{const ne=`activeLayerInfo-ready-watcher-${U.layer.uid}`;A.add((0,Ht.YP)(()=>U.ready,d,Ht.nn),ne)}),x.forEach(U=>A.remove(U.layer.uid)),d()})]),this.keepCacheOnDestroy||(Lf={})}destroy(){this._handles.destroy(),this._handles=null,this._webStyleSymbolCache=null,this._dotDensityUrlCache=null,this._scaleDrivenSizeVariable=null,this.keepCacheOnDestroy||(Lf=null)}get effectList(){const d=this.layer;let _=null;return"effect"in d&&d.effect&&(_=new qu,_.effect=d.effect,_.endTransitions(),_.scale=this.scale),_}get opacity(){const d=this.layer.opacity,_=this.parent?.opacity,T=this.layer.parent,x=T&&"uid"in T?this._getParentLayerOpacity(T):null;return null!=_?_*d:null!=x?x*d:d}get ready(){return null===this.layer||(this.children.length>0?this._isGroupActive():this.legendElements.length>0)}get scale(){return this.view&&this.view.scale}get isScaleDriven(){const d=this.layer;if(null===d)return!1;if("effect"in d&&d.effect&&Array.isArray(d.effect))return!0;if("featureReduction"in d&&d.featureReduction){if("cluster"===d.featureReduction.type)return!0;if("binning"===d.featureReduction.type&&"renderer"in d.featureReduction&&d.featureReduction.renderer)return this._isRendererScaleDriven(d.featureReduction.renderer)}return"renderer"in d&&d.renderer?this._isRendererScaleDriven(d.renderer):this._isLayerScaleDriven(this.layer)}get version(){return this._get("version")+1}buildLegendElementsForFeatureCollections(d){var _=this;return(0,kr.Z)(function*(){if(_.hideLayersNotInCurrentView&&!(yield _._isLayerInCurrentView()))return _.legendElements=[],void _.notifyChange("ready");const T=Array.from(d,x=>{if(function CY(d){return"esri.layers.FeatureLayer"===d.declaredClass}(x))return _._getRendererLegendElements(x.renderer,{title:x.title});if(x.featureSet&&x.featureSet.features.length){const A=x.layerDefinition,U=A&&A.drawingInfo,ne=U&&(0,L$.i)(U.renderer),fe=hY.read(A.geometryType);return ne?_._getRendererLegendElements(ne,{title:x.name,geometryType:fe}):(Us.Z.getLogger(_.declaredClass).warn("drawingInfo not available!"),null)}return null});try{const x=[];yield(0,ws.as)(T).then(A=>{A.forEach(({value:U})=>U&&x.push(...U))}),_.legendElements=x,_.notifyChange("ready")}catch(x){Us.Z.getLogger(_.declaredClass).warn("error while building legend for layer!",x)}})()}buildLegendElementsForRenderer(d){var _=this;return(0,kr.Z)(function*(){try{const T=!_.hideLayersNotInCurrentView||(yield _._isLayerInCurrentView());_.legendElements=T?yield _._getRendererLegendElements(d):[],_.notifyChange("ready")}catch(T){Us.Z.getLogger(_.declaredClass).warn("error while building legend for layer!",T)}})()}buildLegendElementsForFeatureReduction(d){var _=this;return(0,kr.Z)(function*(){try{const T=!_.hideLayersNotInCurrentView||(yield _._isLayerInCurrentView());_.legendElements=T?yield _._getLegendElementsForFeatureReduction(d):[],_.notifyChange("ready")}catch(T){Us.Z.getLogger(_.declaredClass).warn("error while building legend for layer!",T)}})()}buildLegendElementsForTools(){var d=this;return(0,kr.Z)(function*(){const _=d.layer;if(function yY(d){return"esri.layers.VoxelLayer"===d.declaredClass}(_))d._constructLegendElementsForVoxellayer();else if(function EY(d){return"esri.layers.WMTSLayer"===d.declaredClass}(_))d._constructLegendElementsForWMTSlayer();else if(function vY(d){return"esri.layers.WMSLayer"===d.declaredClass}(_))yield d._constructLegendElementsForWMSSublayers();else if(function gY(d){return"esri.layers.BuildingSceneLayer"===d.declaredClass}(_))yield d._constructLegendElementsForBuildingSceneLayer();else if(FU(_)||function bY(d){return"esri.layers.TileLayer"===d.declaredClass}(_)||jU(_))yield d._constructLegendElementsForSublayers();else{d._handles.remove("imageryLayers-watcher");let T="default";If(_)&&(T=(_?.renderingRule?.functionName||"default")+"_"+(_.bandIds?.length?_.bandIds.join(""):"###")),yield d._getLegendLayers(`${_.uid}-${T}`).then(function(){var x=(0,kr.Z)(function*(A){d.legendElements=[],d.notifyChange("ready");const U=A.map(function(){var ne=(0,kr.Z)(function*(fe){if(If(_)||Ib(_)){const we=(0,Ht.YP)(()=>["renderingRule"in _&&_.renderingRule,_.bandIds],()=>(0,ws.Ds)((0,kr.Z)(function*(){Lf.default=null,_.renderer?yield d.buildLegendElementsForRenderer(_.renderer):yield d.buildLegendElementsForTools()}))());d._handles.add(we,"imageryLayers-watcher")}const Oe=d._generateSymbolTableElementForLegendLayer(fe);Oe&&Oe.infos.length&&(If(_)&&(Oe.title=_.title),d.legendElements.push(Oe)),d.notifyChange("ready")});return function(fe){return ne.apply(this,arguments)}}());yield(0,ws.as)(U)});return function(A){return x.apply(this,arguments)}}()).catch(x=>{Us.Z.getLogger(d.declaredClass).warn("Request to server for legend has failed!",x)})}})()}_isLayerInCurrentView(){var d=this;return(0,kr.Z)(function*(){const _=d.layer,T=d.layerView,x=T&&"createQuery"in T&&"queryFeatureCount"in T;if(!(x||T&&"createQuery"in _&&"queryFeatureCount"in _))return!0;yield(0,Ht.N1)(()=>!T.updating);const A=x?"createQuery"in T&&T.createQuery():"createQuery"in _&&_.createQuery();return A.geometry=d.view.extent,0!==(x?"queryFeatureCount"in T&&(yield T.queryFeatureCount(A)):"queryFeatureCount"in _&&(yield _.queryFeatureCount(A)))})()}_getParentLayerOpacity(d){let _=1;const T=d.parent;return T&&"uid"in T&&(_=this._getParentLayerOpacity(T)),d.opacity*_}_isGroupActive(){const d=this.children;return!!d.length&&d.some(_=>_.ready)}_isRendererScaleDriven(d){if("dot-density"===d.type)return!0;if(Ab.test("valueExpression"in d&&d.valueExpression))return!0;const T="visualVariables"in d&&d.visualVariables;return!!T&&T.some(x=>this._isScaleDrivenSizeVariable(x))}_isScaleDrivenSizeVariable(d){if(d&&"size"!==d.type)return!1;const _=d,T=_.minSize,x=_.maxSize;return"object"==typeof T&&T?this._isScaleDrivenSizeVariable(T):"object"==typeof x&&x?this._isScaleDrivenSizeVariable(x):!!_.expression||Ab.test(_.valueExpression)}_isLayerScaleDriven(d){if("minScale"in d&&d.minScale>0||"maxScale"in d&&d.maxScale>0)return!0;if("sublayers"in d&&d.sublayers)return d.sublayers.some(T=>this._isLayerScaleDriven(T));const _=d.parent;if(!1===d.loaded&&_&&FU(_)&&"source"in d&&d.source&&"map-layer"===d.source.type)for(const T of _.sourceJSON.layers)if(T.id===d.source.mapLayerId&&(T.minScale>0||T.maxScale>0))return!0;return!1}_constructLegendElementsForVoxellayer(){var d=this;return(0,kr.Z)(function*(){d.legendElements=[],d._handles.remove("voxel-style-watcher"),d._handles.remove("voxel-current-variable");const _=d.layer;d._handles.add((0,Ht.YP)(()=>_.currentVariableId,()=>d._constructLegendElementsForVoxellayer()),"voxel-current-variable"),d._handles.add((0,Ht.YP)(()=>_.getVariableStyles(),()=>d._constructLegendElementsForVoxellayer()),"voxel-style-watcher");const T=(0,Qe.Wg)(_.getVariableStyle(null)),x=[];if(T)if(T.uniqueValues?.length){const ne=[];T.uniqueValues.forEach(fe=>{fe.enabled&&ne.push({label:fe.label||`${fe.value}`,value:fe.value,symbol:new VM.Z({color:fe.color,outline:null})})}),ne.length&&x.push({type:"symbol-table",title:T.label,infos:ne})}else if(T.transferFunction){const{colorStops:ne,stretchRange:fe}=T.transferFunction,Oe=ne.toArray().reverse(),we=fe.map((it,lt)=>`${0===lt?"<":">"} ${function aY(d){const T=Math.floor(Math.log10(Math.abs(d)))+1,x=T<4||T>6?4:T,U=Math.abs(d)>=1e6?"compact":"standard";return(0,Lm.uf)(d,{notation:U,minimumSignificantDigits:2,maximumSignificantDigits:x})}(it)}`).reverse(),Ze=Oe.map(it=>({color:it.color,value:null,label:null}));Ze[0].label=we[0],Ze[Ze.length-1].label=we[1],x.push({type:"color-ramp",title:T.label,infos:Ze,preview:jp(Oe.map(it=>it.color))})}const A=_.opacity,U=x.reduce((ne,fe)=>ne.concat(d._getAllInfos(fe)),[]).filter(ne=>!!ne?.symbol).map(ne=>d._getSymbolPreview(ne,A));yield(0,ws.as)(U),d.legendElements=x,d.notifyChange("ready")})()}_constructLegendElementsForWMTSlayer(){this.legendElements=[],this._handles.remove("wmts-activeLayer-watcher");const d=this.layer.activeLayer;if(this._handles.add((0,Ht.YP)(()=>{const{layer:_}=this;return _&&"activeLayer"in _&&_.activeLayer},()=>this._constructLegendElementsForWMTSlayer()),"wmts-activeLayer-watcher"),d.styleId&&d.styles){let _=null;d.styles.some(T=>d.styleId===T.id&&(_=T.legendUrl,!0)),_&&(this.legendElements=[{type:"symbol-table",title:d.title,infos:[{src:_,opacity:this.opacity}]}])}this.notifyChange("ready")}_constructLegendElementsForWMSSublayers(){var d=this;return(0,kr.Z)(function*(){d.legendElements=[],d._handles.remove("wms-sublayers-watcher");const _=d.layer;let T=null;(_.customParameters||_.customLayerParameters)&&(T={..._.customParameters,..._.customLayerParameters}),d._handles.add((0,Ht.YP)(()=>{const{layer:x}=d;return x&&"sublayers"in x&&x.sublayers},()=>d._constructLegendElementsForWMSSublayers()),"wms-sublayers-watcher"),d.legendElements=yield d._generateLegendElementsForWMSSublayers(_.sublayers,T),d.notifyChange("ready")})()}_generateLegendElementsForWMSSublayers(d,_){var T=this;return(0,kr.Z)(function*(){const x=[];T._handles.add(d.on("change",()=>T._constructLegendElementsForWMSSublayers()),"wms-sublayers-watcher");const A=d.toArray();for(const U of A){const ne=(0,Ht.YP)(()=>[U.title,U.visible,U.legendEnabled],()=>T._constructLegendElementsForWMSSublayers());if(T._handles.add(ne,"wms-sublayers-watcher"),!T.respectLayerVisibility||U.visible&&U.legendEnabled){const fe=yield T._generateSymbolTableElementForWMSSublayer(U,_);fe&&fe.infos.length&&x.unshift(fe)}}return x})()}_generateSymbolTableElementForWMSSublayer(d,_){var T=this;return(0,kr.Z)(function*(){if(!d.legendUrl&&d.sublayers){const x=(yield T._generateLegendElementsForWMSSublayers(d.sublayers,_)).filter(A=>A);return{type:"symbol-table",title:d.title,infos:x}}return T._generateSymbolTableElementForLegendUrl(d,_)})()}_generateSymbolTableElementForLegendUrl(d,_){return(0,kr.Z)(function*(){let T=d.legendUrl;if(!T)return;const x={type:"symbol-table",title:d.title||d.name||d.id&&d.id+"",infos:[]};_&&(T=(0,ST.fl)(T,_));let A=null;const U=d.layer?.opacity;try{A=(yield(0,cM.default)(T,{responseType:"image"})).data,A&&(A.style.opacity=U)}catch{}return x.infos.push({src:T,preview:A,opacity:U}),x})()}_getLegendLayers(d,_){const T=Lf&&Lf[d];return T?Promise.resolve(T):this._legendRequest(_).then(x=>{const A=x.layers;return Lf[d]=A,A})}_legendRequest(d){const _=this.layer;let T={f:"json",dynamicLayers:d};if(If(_)){const A=_.exportImageServiceParameters.renderingRule;if(A&&(T.renderingRule=JSON.stringify(A.rasterFunctionDefinition||A.toJSON())),_.bandIds&&(T.bandIds=_.bandIds.join()),_.raster||_.viewId||_.customParameters){const{raster:U,viewId:ne,customParameters:fe}=_;T={raster:U,viewId:ne,...T,...fe}}}let x=_.url.replace(/(\/)+$/,"");if("version"in _&&_.version>=10.01){const A=x.indexOf("?");A>-1?x=x.substring(0,A)+"/legend"+x.substring(A):x+="/legend"}else{const A=x.toLowerCase().indexOf("/rest/"),U=x.substring(0,A)+x.substring(A+5,x.length);x="https://utility.arcgis.com/sharing/tools/legend?soapUrl="+encodeURI(U)+"&returnbytes=true"}return(0,cM.default)(x,{query:T}).then(A=>A.data)}_constructLegendElementsForBuildingSceneLayer(){var d=this;return(0,kr.Z)(function*(){d.legendElements=[],d._handles.remove("sublayers-watcher");const _=d.layer;d._handles.add((0,Ht.YP)(()=>_.sublayers,()=>d._constructLegendElementsForBuildingSceneLayer()),"sublayers-watcher");try{d.legendElements=yield d._generateLegendElementsForBuildingSublayers(_.sublayers,d.opacity),d.notifyChange("ready")}catch(T){Us.Z.getLogger(d.declaredClass).warn("Request to server for legend has failed!",T)}})()}_generateLegendElementsForBuildingSublayers(d,_){var T=this;return(0,kr.Z)(function*(){let x=[];T._handles.add(d.on("change",()=>T._constructLegendElementsForBuildingSceneLayer()),"sublayers-watcher");const A=d.toArray();for(const U of A){const ne=(0,Ht.YP)(()=>["renderer"in U&&U.renderer,U.opacity,U.title,U.visible],()=>T._constructLegendElementsForBuildingSceneLayer());if(T._handles.add(ne,"sublayers-watcher"),!T.respectLayerVisibility||U.visible){const fe=U&&null!=U.opacity?U.opacity:null,Oe=null!=fe?fe*_:_;if("building-group"===U.type){const we={type:"symbol-table",title:U.title,infos:[]},Ze=yield T._generateLegendElementsForBuildingSublayers(U.sublayers,Oe);we.infos.push(...Ze),x=[we,...x]}else U.renderer&&(x=[...yield T._getRendererLegendElements(U.renderer,{title:U.title,opacity:Oe,sublayer:U}),...x])}}return x.filter(U=>!!U&&(!("infos"in U)||U.infos.length>0))})()}_constructLegendElementsForSublayers(){var d=this;return(0,kr.Z)(function*(){d.legendElements=[],d._handles.remove("sublayers-watcher");const _=d.layer;d._handles.add((0,Ht.YP)(()=>_.sublayers,()=>d._constructLegendElementsForSublayers),"sublayers-watcher");try{d.legendElements=yield d._generateLegendElementsForSublayers(_.sublayers,d.opacity),d.notifyChange("ready")}catch(T){Us.Z.getLogger(d.declaredClass).warn("Request to server for legend has failed!",T)}})()}_generateLegendElementsForSublayers(d,_,T){var x=this;return(0,kr.Z)(function*(){const A=x.layer;let U=[];x._handles.add(d.on("change",()=>x._constructLegendElementsForSublayers()),"sublayers-watcher");let ne=d.toArray();!T&&x.sublayerIds&&x.sublayerIds.length&&(ne=x.sublayerIds.map(fe=>A.findSublayerById(fe)).filter(Boolean));for(const fe of ne){const Oe=(0,Ht.YP)(()=>[fe.renderer,fe.opacity,fe.title,fe.visible,fe.legendEnabled],()=>x._constructLegendElementsForSublayers());if(x._handles.add(Oe,"sublayers-watcher"),!x.respectLayerVisibility||fe.visible&&fe.legendEnabled&&x._isSublayerInScale(fe)){const we=fe&&null!=fe.opacity?fe.opacity:null,Ze=null!=we?we*_:_,it=!!jU(A)||fe.originIdOf("renderer")>Sy.s3.SERVICE;if(fe.renderer&&!fe.sublayers&&it)yield fe.load(),U=[...yield x._getRendererLegendElements(fe.renderer,{title:fe.title,opacity:Ze,sublayer:fe}),...U];else{const lt=yield x._generateSymbolTableElementForSublayer(fe,Ze,T);lt&&U.unshift(lt)}}}return U.filter(fe=>!!fe&&(!("infos"in fe)||fe.infos.length>0))})()}_generateSymbolTableElementForSublayer(d,_,T){var x=this;return(0,kr.Z)(function*(){if(!T){T=new Map;const U=x.layer,ne=d.source;let fe=null;if(ne&&("map-layer"!==ne.type||ne.mapLayerId!==d.id||ne.gdbVersion&&ne.gdbVersion!==("gdbVersion"in U&&U.gdbVersion))||d.originIdOf("renderer")>Sy.s3.SERVICE||d.originIdOf("labelingInfo")>Sy.s3.SERVICE||d.originIdOf("labelsVisible")>Sy.s3.SERVICE){const we=new I$.R({layer:x.layer});fe=we.hasDynamicLayers?we.dynamicLayers:null,we.destroy()}const Oe=fe||`${U.uid}-default`;(yield x._getLegendLayers(Oe,fe)).forEach(we=>T.set(we.layerId,we))}const A=T.get(d.id);if((!A||A?.subLayerIds&&A.defaultVisibility)&&d.sublayers){const U=yield x._generateLegendElementsForSublayers(d.sublayers,_,T);return{type:"symbol-table",title:d.title,infos:U}}return x._generateSymbolTableElementForLegendLayer(A,d,_)})()}_generateSymbolTableElementForLegendLayer(d,_,T){if(!d||!d.legend||this.respectLayerVisibility&&!this._isLegendLayerInScale(d,_))return null;const x=_?.renderer;let A=_?.title||d.layerName;if(x&&(!_||_?.originIdOf("renderer")>Sy.s3.SERVICE)){const fe=_?.title||this._getRendererTitle(x,_);fe&&(A&&"string"!=typeof fe&&"title"in fe&&(fe.title=A),A=fe)}const U={type:"symbol-table",title:A,legendType:d.legendType?d.legendType:null,infos:[]},ne=_?this._sanitizeLegendForSublayer(d.legend.slice(),_):d.legend;return d.legendGroups?.length>0?d.legendGroups.forEach(fe=>{const Oe={type:"symbol-table",title:fe.heading,legendType:d.legendType?d.legendType:null,infos:this._generateSymbolTableElementInfosForLegendLayer(ne.filter(we=>we.groupId===fe.id),d.layerId,T)};Oe.infos?.length>0&&U.infos.push(Oe)}):U.infos=this._generateSymbolTableElementInfosForLegendLayer(ne,d.layerId,T),U.infos.length>0?U:null}_generateSymbolTableElementInfosForLegendLayer(d,_,T){return d.map(x=>{let A=x.url;if(x.imageData&&x.imageData.length>0)A=`data:image/png;base64,${x.imageData}`;else{if(0===A.indexOf("http"))return null;A=(0,P6.Dp)(`${this.layer.url}/${_}/images/${A}`)}return{label:x.label,src:A,opacity:T??this.opacity,width:x.width,height:x.height}}).filter(x=>!!x)}_isSublayerInScale(d){const _=d.minScale||0;return!(_>0&&_this.scale)}_isLegendLayerInScale(d,_){const T=_||this.layer;let x=null,A=null,U=!0;return!T.minScale&&0!==T.minScale||!T.maxScale&&0!==T.maxScale?(0===d.minScale&&T.tileInfo&&(x=T.tileInfo.lods[0].scale),0===d.maxScale&&T.tileInfo&&(A=T.tileInfo.lods[T.tileInfo.lods.length-1].scale)):(x=Math.min(T.minScale,d.minScale)||T.minScale||d.minScale,A=Math.max(T.maxScale,d.maxScale)),(x>0&&xthis.scale)&&(U=!1),U}_sanitizeLegendForSublayer(d,_){if("version"in this.layer&&this.layer.version<10.1||0===d.length)return d;const T=_.renderer,x=d.some(ne=>ne.values);let A=null,U=null;return x&&d.some((ne,fe)=>(ne.values||(A=fe,U=ne,U.label||(U.label="others")),null!=U)),T?"unique-value"===T.type?U&&(d.splice(A,1),d.push(U)):"class-breaks"===T.type&&(U&&d.splice(A,1),d.reverse(),U&&d.push(U)):U&&(d.splice(A,1),d.push(U)),d}_getRendererLegendElements(d,_={}){var T=this;return(0,kr.Z)(function*(){if(!function mY(d,_){return Rf(d)||wf(d)||wb(d)||LU(d)||UU(d)||BU(d)?"2d"===_.type||(0,U$.e)(d):wU(d)||RU(d)||IU(d)||Ex(d)||bx(d)||Cx(d)||AU(d)||vx(d)}(d,T.view))return Us.Z.getLogger(T.declaredClass).warn(`Renderer of type '${d.type}' not supported!`),[];if(function _Y(d){return Ex(d)||bx(d)||Cx(d)||function fY(d){return"esri.renderers.PointCloudRGBRenderer"===d.declaredClass}(d)}(d))return T._constructPointCloudRendererLegendElements(d,_);if(UU(d))return T._constructDotDensityRendererLegendElements(d);const x=yield T._loadRenderer(d);return BU(x)?T._constructPieChartRendererLegendElements(x):T._constructRendererLegendElements(x,_)})()}_getLegendElementsForFeatureReduction(d){var _=this;return(0,kr.Z)(function*(){let T=null;return"binning"===d.type?T=d.renderer:"cluster"===d.type&&(T=_._getClusterRenderer(d)),T?_._getRendererLegendElements(T):[]})()}_getPointCloudRendererTitle(d){return d.legendOptions&&d.legendOptions.title||d.field}_constructPointCloudRendererLegendElements(d,_={}){const T=_.title,x=[];let A=null,U=null;if(Ex(d))A={type:"symbol-table",title:T||this._getPointCloudRendererTitle(d),infos:[]},d.colorClassBreakInfos.forEach(fe=>{A.infos.unshift({label:fe.label||fe.minValue+" - "+fe.maxValue,value:[fe.minValue,fe.maxValue],symbol:this._getAppliedCloneSymbol(Rb,fe.color)})});else if(bx(d)){const fe=d.stops;let Oe=null;if(fe.length&&(1===fe.length&&(Oe=fe[0].color),!Oe)){const Ze=fe[0].value,it=fe[fe.length-1].value;null!=Ze&&null!=it&&(Oe=dS(Ze+(it-Ze)/2,fe))}A={type:"symbol-table",title:null,infos:[{label:null,value:null,symbol:this._getAppliedCloneSymbol(Rb,Oe||Rb.color)}]};const we=function p6(d){let _=!1,T=[],x=[];if(T=d.map(fe=>fe.value),_=d.some(fe=>!!fe.label),_&&(x=d.map(fe=>fe.label)),null==T[0]&&null==T[T.length-1])return null;const ne=_?null:uS(T,!1);return T.map((fe,Oe)=>({value:fe,color:dS(fe,d),label:_?x[Oe]:ne[Oe]})).reverse()}(d.stops);U={type:"color-ramp",title:T||this._getPointCloudRendererTitle(d),infos:we,preview:jp(we.map(Ze=>Ze.color))}}else Cx(d)&&(A={type:"symbol-table",title:T||this._getPointCloudRendererTitle(d),infos:[]},d.colorUniqueValueInfos.forEach(fe=>{A.infos.push({label:fe.label||fe.values.join(", "),value:fe.values.join(", "),symbol:this._getAppliedCloneSymbol(Rb,fe.color)})}));A&&A.infos.length&&x.push(A),U&&U.infos.length&&x.push(U);const ne=x.reduce((fe,Oe)=>fe.concat(Oe.infos),[]).filter(fe=>!!fe.symbol).map(fe=>this._getSymbolPreview(fe,this.opacity,{symbolConfig:{applyColorModulation:!!d.colorModulation}}));return(0,ws.as)(ne).then(()=>x)}_getElementInfoForDotDensity(d,_){const{backgroundColor:T,outline:x,dotSize:A}=d,U=this.effectList?.effects.map(lt=>lt.toJSON()),ne=(0,w$.rM)(U),fe=A+"-"+_+"-"+T+"-"+(x&&JSON.stringify(x.toJSON()))+"-"+ne,Oe=this._dotDensityUrlCache,we=Oe.has(fe)?Oe.get(fe):function E8(d,_,T){const{backgroundColor:x,outline:A,dotSize:U}=d,ne=T&&T.swatchSize||WS.b_.size,Oe=Math.round(ne*ne/U**2*.8),we=window.devicePixelRatio,Ze=document.createElement("canvas"),it=ne*we;Ze.width=it,Ze.height=it,Ze.style.width=Ze.width/we+"px",Ze.style.height=Ze.height/we+"px";const lt=Ze.getContext("2d");if(x&&(lt.fillStyle=x.toCss(!0),lt.fillRect(0,0,it,it),lt.fill()),lt.fillStyle=_.toCss(!0),__&&__.length/2===Oe)for(let Tt=0;Tt<2*Oe;Tt+=2)lt.fillRect(__[Tt],__[Tt+1],U*we,U*we),lt.fill();else{__=[];for(let Tt=0;Tt<2*Oe;Tt+=2){const mt=HS(0,it),Mt=HS(0,it);__.push(mt,Mt),lt.fillRect(mt,Mt,U*we,U*we),lt.fill()}}A&&(A.color&&(lt.strokeStyle=A.color.toCss(!0)),lt.lineWidth=A.width,lt.strokeRect(0,0,it,it));const dt=new Image(ne,ne);return dt.src=Ze.toDataURL(),dt}(d,_);Oe.set(fe,we);const it=(0,VS.w)([[{shape:{type:"image",x:0,y:0,width:we.width,height:we.height,src:we.src},fill:null,stroke:null,offset:[0,0]}]],[we.width,we.height],{effectView:this.effectList});return{opacity:1,src:we.src,preview:it,width:we.width,height:we.height}}_constructDotDensityRendererLegendElements(d){const _=d.calculateDotValue(this.view.scale),T=d.legendOptions&&d.legendOptions.unit,x={type:"symbol-table",title:{value:_&&Math.round(_),unit:T||""},infos:[]};return d.attributes.forEach(A=>{const U=this._getElementInfoForDotDensity(d,A.color);U.label=A.label||A.valueExpressionTitle||A.field,x.infos.push(U)}),Promise.resolve([x])}_constructPieChartRendererLegendElements(d){var _=this;return(0,kr.Z)(function*(){const T=_.layer.opacity,x=[],A="Others",U=d.outline;d.attributes.forEach(we=>{const Ze=new Df.Z({color:we.color,outline:U});x.push({label:we.label||we.valueExpressionTitle||we.field,symbol:Ze})});const ne=x.length?[...x]:[];if(d.othersCategory?.color&&0!==d.othersCategory?.threshold){const we=new Df.Z({color:d.othersCategory.color,outline:U});x.push({label:d.othersCategory.label||A,symbol:we})}if(d.defaultColor?.a){const we=new Df.Z({color:d.defaultColor,outline:U});x.push({label:d.defaultLabel,symbol:we})}const fe=(yield _._getVisualVariableLegendElements(d,_.layer))||[];if(x.length){fe.unshift({type:"symbol-table",title:null,infos:x});const Ze=function b8(d,_={}){const T=_.radius||40,x=2*Math.PI*T,A=d.length,U=x/A,ne=[],fe=(0,$v.mx)(_.outline);null!=fe?.width&&(fe.width*=2),(fe||_.backgroundColor)&&ne.push({shape:{type:"circle",cx:T,cy:T,r:T},fill:_.backgroundColor,stroke:fe,offset:[0,0]});const Oe=_.values,we=Oe&&Oe.length===A&&100===Oe.reduce((Tt,mt)=>Tt+mt,0),Ze=[0];for(let Tt=0;Ttit.label!==A).map(it=>it.symbol.color).filter(Boolean),{holePercentage:d.holePercentage,backgroundColor:d.backgroundFillSymbol?.color,effectList:_.effectList,outline:U});fe.unshift({type:"pie-chart-ramp",title:_._getRendererTitle(d,_.layer),infos:x,preview:Ze})}const Oe=fe.reduce((we,Ze)=>we.concat(_._getAllInfos(Ze)),[]).filter(we=>!!we?.symbol&&!we?.preview).map(we=>_._getSymbolPreview(we,T,{effectList:_.effectList}));return yield(0,ws.as)(Oe),fe})()}_constructRendererLegendElements(d,_={}){var T=this;return(0,kr.Z)(function*(){const{title:x,sublayer:A}=_,U=A||T.layer;T._hasColorRamp=!1,T._hasOpacityRamp=!1,T._hasSizeRamp=!1,T._scaleDrivenSizeVariable=null;const ne=(yield T._getVisualVariableLegendElements(d,U))||[],fe={type:"symbol-table",title:x||T._getRendererTitle(d,U),infos:[]};let Oe=null,we=!1;const Ze=new Set;if(vx(d)&&!T._hasSizeRamp){const Mt=yield cS(d);fe.infos.push({label:null,symbol:Mt})}else if(function PY(d){return"univariate-color-size"===("authoringInfo"in d&&d?.authoringInfo)?.type}(d)){let Mt=x;const Pt=function OY(d){const _="authoringInfo"in d&&d?.authoringInfo;return"univariate-color-size"===_?.type&&"above-and-below"===_?.univariateTheme}(d)?"univariate-above-and-below-ramp":"univariate-color-size-ramp",Nt=ne.findIndex(Rr=>"color-ramp"===Rr.type),Bt=-1!==Nt?ne.splice(Nt,1)[0]:null,Zt=ne.findIndex(Rr=>"size-ramp"===Rr.type),nr=-1!==Zt?ne.splice(Zt,1)[0]:null,Jt=[];Bt&&(Mt=Bt.title,Jt.push(Bt)),nr&&(Mt=nr.title,Jt.push(nr)),Jt.length>0&&ne.push({type:Pt,title:Mt,infos:Jt})}else if(LU(d)){const Mt=hS(d);ne.push({type:"heatmap-ramp",title:x||T._getRendererTitle(d,U),infos:Mt,preview:jp(Mt.map(Pt=>Pt.color),{effectList:T.effectList})})}else if(wb(d)){const Mt=d&&d.authoringInfo;if(Mt&&"relationship"===Mt.type){const{focus:Pt,numClasses:Nt,field1:Bt,field2:Zt}=Mt;if(Nt&&Bt&&Zt){const nr=[Bt,Zt];let Jt=TU(Pt)||0;for(const Br of nr){const{field:$r,normalizationField:Yr,label:cs}=Br,Xr=cs||{field:T._getFieldAlias($r,U),normField:Yr&&T._getFieldAlias(Yr,U)},os=xY.clone();os.angle=Jt,fe.infos.push({label:Xr,symbol:os}),Ze.add(os),Jt+=90}const Rr=function G$(d){const{focus:_,infos:T,numClasses:x}=d,A=V$[x],U={};T.forEach(fe=>{U[fe.value]={label:fe.label,fill:z$(fe.symbol)}});const ne=[];for(let fe=0;fe{Pt.symbol&&fe.infos.push({label:Pt.label||Pt.value,value:Pt.value,symbol:Pt.symbol})});else{const{field:Pt,field2:Nt,field3:Bt,fieldDelimiter:Zt,valueExpression:nr}=d,Jt=!(!Pt&&!nr||!Nt&&!Bt),Rr=[];if(d.uniqueValueGroups.forEach(Br=>{const $r={type:"symbol-table",title:Br.heading,infos:[]};Br.classes.forEach(Yr=>{const{symbol:cs,values:Xr}=Yr;if(cs){const os=[],br=[];for(const wr of Xr){const{value:Gr,value2:zr,value3:rs}=wr,ls=[],ms=[];(Pt||nr)&&(ls.push(Gr),ms.push(T._getDomainName(Pt,Gr,U))),Nt&&(ls.push(zr),ms.push(T._getDomainName(Nt,zr,U))),Bt&&(ls.push(rs),ms.push(T._getDomainName(Bt,rs,U))),os.push(Jt?ls.join(Zt||""):ls[0]),br.push(ms.join(" - "))}const Vr=os.join(", ");let lr=Yr.label;if(!lr){const wr=br.filter(Boolean);lr=wr.length?wr.join(", "):Vr}$r.infos.push({label:lr,value:Vr,symbol:cs})}}),$r.infos.length&&Rr.push($r)}),Rr.length){const Br=Rr[0];1===Rr.length&&"title"in Br&&!Br.title?fe.infos.push(...Br.infos):fe.infos.push(...Rr)}}d.defaultSymbol&&(fe.infos.push({label:d.defaultLabel||"others",symbol:d.defaultSymbol}),we=!0)}else if(wf(d))Oe=T._isUnclassedRenderer(d),(!Oe||!T._hasSizeRamp)&&(d.classBreakInfos.forEach(Mt=>{Mt.symbol&&fe.infos.unshift({label:Mt.label||(Oe?null:Mt.minValue+" - "+Mt.maxValue),value:[Mt.minValue,Mt.maxValue],symbol:Mt.symbol})}),Oe&&(fe.title=null),T._updateInfosforClassedSizeRenderer(d,fe.infos)),d.defaultSymbol&&!Oe&&(fe.infos.push({label:d.defaultLabel||"others",symbol:d.defaultSymbol}),we=!0);else if(wU(d))if(Ib(T.layer)||function TY(d){return"esri.layers.WCSLayer"===d.declaredClass}(T.layer)){const Mt=T._constructTileImageryStretchRendererElements(d);!function MY(d){return"stretch-ramp"===d.type}(Mt)?fe.infos=Mt:ne.push(Mt)}else{const Mt=T.layer;let Pt,Nt;d.statistics&&d.statistics.length&&(Pt=null!=d.statistics[0].min?d.statistics[0].min:d.statistics[0][0],Nt=null!=d.statistics[0].max?d.statistics[0].max:d.statistics[0][1]);let Bt=[];const Zt=(0,Qe.Wg)(Mt.renderingRule?yield Mt.generateRasterInfo(Mt.renderingRule):Mt.serviceRasterInfo),nr=Zt.keyProperties.BandProperties,Jt=SU[Mt.rasterInfo.pixelType.toLowerCase()];1===Zt.bandCount||Mt.bandIds&&1===Mt.bandIds.length?(Pt=Pt??(Zt.statistics?Zt.statistics[Mt.bandIds[0]].min:Jt[0]),Nt=Nt??(Zt.statistics?Zt.statistics[Mt.bandIds[0]].max:Jt[1]),Pt||Nt?ne.push(T._getStretchLegendElements(d,{min:Pt,max:Nt})):T._getServerSideLegend()):Zt.bandCount>=3?nr&&nr.length>=Zt.bandCount?Mt.bandIds&&3===Mt.bandIds.length?(Bt=Mt.bandIds.map(Rr=>nr[Rr].BandName),fe.infos=T._createSymbolTableElementMultiBand(Bt)):"lerc"===Mt.format?(Bt=[0,1,2].map(Rr=>nr[Rr].BandName),fe.infos=T._createSymbolTableElementMultiBand(Bt)):T._getServerSideLegend():"lerc"===Mt.format?(Bt=["band1","band2","band3"],fe.infos=T._createSymbolTableElementMultiBand(Bt)):T._getServerSideLegend():T._getServerSideLegend()}else if(RU(d))d.colormapInfos.forEach(Mt=>{fe.infos.push({label:Mt.label,value:Mt.value,symbol:T._getAppliedCloneSymbol(pY,Mt.color)})});else if(Rf(d)){let Mt=d.symbol;switch(_.geometryType){case"point":Mt="pointSymbol"in U&&U.pointSymbol;break;case"polyline":Mt="lineSymbol"in U&&U.lineSymbol;break;case"polygon":Mt="polygonSymbol"in U&&U.polygonSymbol}const Pt=T._hasClusterSizeVariable&&T._getClusterSymbol()||!T._hasSizeRamp;d.symbol&&Pt&&fe.infos.push({label:d.label,symbol:Mt})}else if(AU(d)){d.outputUnit&&(T.title="("+d.toJSON().outputUnit+")"),fe.title=d.attributeField;const Mt=d.getClassBreakInfos();Mt?.length?Mt.forEach(Pt=>{fe.infos.push({label:Pt.minValue+" - "+Pt.maxValue,symbol:Pt.symbol})}):fe.infos.push({label:d.attributeField,symbol:d.getDefaultSymbol()})}else IU(d)&&ne.push(T._getStretchLegendElements(d,{min:0,max:255}));const it=d.defaultSymbol;!it||we||Rf(d)||Oe&&!T._hasColorRamp&&!T._hasSizeRamp&&!T._hasOpacityRamp||ne.push({type:"symbol-table",infos:[{label:d.defaultLabel||"others",symbol:it}]}),fe.infos.length&&ne.unshift(fe);const lt=_.opacity??T.opacity,dt=T._isTallSymbol("visualVariables"in d&&d.visualVariables),Tt=If(T.layer)||Ib(T.layer),mt=ne.reduce((Mt,Pt)=>Mt.concat(T._getAllInfos(Pt)),[]).filter(Mt=>!!Mt?.symbol).map(Mt=>T._getSymbolPreview(Mt,lt,{isDefault:Mt.symbol===it,applyScaleDrivenSize:!Ze.has(Mt.symbol),symbolConfig:{isTall:dt,isSquareFill:Tt},effectList:Ze.has(Mt.symbol)?null:T.effectList}));return d=null,yield(0,ws.as)(mt),ne})()}_getServerSideLegend(){setTimeout(()=>this.buildLegendElementsForTools(),0)}_getAllInfos(d){const _=d?.infos;return _?_.reduce((T,x)=>T.concat(this._getAllInfos(x)),[]):[d]}_constructTileImageryStretchRendererElements(d){const _=this.layer,T=_.rasterInfo,x=T.bandCount||d.statistics.length;let A,U,ne=[];const fe=T.keyProperties&&T.keyProperties.BandProperties,Oe=d?.statistics?.length?d.statistics:T?.statistics;if(Oe)A=void 0!==Oe[0].min?Oe[0].min:Oe[0][0],U=Oe[0].max||Oe[0][1];else{const Ze=SU[_.rasterInfo.pixelType.toLowerCase()];A=Ze[0],U=Ze[1]}if(_.hasStandardTime()&&(A=_.getStandardTimeValue(A),U=_.getStandardTimeValue(U)),1===T.bandCount||1===_.bandIds?.length)return this._getStretchLegendElements(d,{min:A,max:U});function we(Ze){const it=(_?.bandIds?.length?_.bandIds:Array.from(Array(Math.min(T.bandCount,3)).keys())).map(lt=>Ze&&Ze[lt]&&Ze[lt].BandName||"band"+(lt+1));return it.length<3?it.push(it[1]):it.length>3&&it.splice(3),it}return ne=fe&&fe.length>=x?we(fe):we(),this._createSymbolTableElementMultiBand(ne)}_getStretchLegendElements(d,_){const x=function f6(d,_){let T=[];if(d&&"multipart"===d.type)d.colorRamps.reverse().forEach((x,A)=>{T.push(0===A?{value:_.max,color:new lo.Z(x.toColor),label:"high"}:{value:null,color:new lo.Z(x.toColor),label:""}),T.push(A===d.colorRamps.length-1?{value:_.min,color:new lo.Z(x.fromColor),label:"low"}:{value:null,color:new lo.Z(x.fromColor),label:""})});else{let x,A;d&&"algorithmic"===d.type?(x=d.fromColor,A=d.toColor):(x=[0,0,0,1],A=[255,255,255,1]),T=[{value:_.max,color:new lo.Z(A),label:"high"},{value:_.min,color:new lo.Z(x),label:"low"}]}return T}(d.colorRamp,_);return{type:"stretch-ramp",title:"",infos:x,preview:jp(x.map(A=>A.color))}}_getClusterSymbol(){const d=this.layer,_="featureReduction"in d&&d.featureReduction,T=_&&"symbol"in _&&_.renderer;return T&&!0!==T?.authoringInfo?.isAutoGenerated?null:_&&"symbol"in _&&_.symbol}_getSizeLegendElement(d,_,T,x){var A=this;return(0,kr.Z)(function*(){return{type:"size-ramp",title:A._hasClusterSizeVariable?A._getClusterTitle(_):d,infos:yield Q$(T,_,yield tM(T),A.scale,A.view.type,x,A._hasClusterSizeVariable?A._getClusterSymbol():null)}})()}_createSymbolTableElementMultiBand(d){const _=[],T=["red","green","blue"];return d.forEach((x,A)=>{_.push({label:{colorName:T[A],bandName:x},src:u6[A],opacity:this.opacity??1})}),_}_updateInfosforClassedSizeRenderer(d,_){const T=d.authoringInfo&&"class-breaks-size"===d.authoringInfo.type,x=d.classBreakInfos.some(A=>(0,da.YW)(A.symbol));if(T&&x){const A=30,ne=d.classBreakInfos.length,fe=(A-12)/(ne>1?ne-1:ne);_.forEach((Oe,we)=>{Oe.size=A-fe*we})}}_isTallSymbol(d){let _=!1,T=!1;if(d)for(let x=0;x(d.preview=U,d)).catch(()=>(d.preview=null,d))})()}_getClusterRenderer(d){this._hasClusterSizeVariable=!1;const _="renderer"in this.layer&&this.layer.renderer,T=d.renderer?.clone()||_?.clone(),x=(0,Qe.Wg)(function N$(d,_){if(!d||!("visualVariables"in d)||!d.visualVariables)return null;const T=d.visualVariables.find(A=>"size"===A.type),x=((d,_)=>{const T=d.featuresTilingScheme.getClosestInfoForScale(d.scale).level;return _?.levels?_.levels[T]:null})(_,T);return x?new j$.Z({field:T.field,minSize:x[2].size,minDataValue:x[2].value,maxSize:x[3].size,maxDataValue:x[3].value}):null}(this.layerView._effectiveRenderer,this.view));if(x&&"visualVariables"in T&&!T.visualVariables?.some(U=>"size"===U.type&&"outline"!==U.target&&!Ab.test(U.valueExpression))){if("clusterMinSize"in d&&"clusterMaxSize"in d){const{clusterMinSize:ne,clusterMaxSize:fe}=d;x.legendOptions=new B$.Z({showLegend:ne!==fe})}T.visualVariables=(T.visualVariables||[]).concat([x]),this._hasClusterSizeVariable=!0}return T}_loadRenderer(d){var _=this;return(0,kr.Z)(function*(){const T=[],x=d.clone(),A=yield tM(x);if(wf(x)||wb(x)){const U=(x.classBreakInfos||x.uniqueValueInfos).map(ne=>_._fetchSymbol(ne.symbol,A).then(fe=>{ne.symbol=fe}).catch(()=>{ne.symbol=null}));Array.prototype.push.apply(T,U)}return T.push(_._fetchSymbol(x.symbol||x.defaultSymbol,x.defaultSymbol?null:A).then(U=>{_._applySymbolToRenderer(x,U,Rf(x))}).catch(()=>{_._applySymbolToRenderer(x,null,Rf(x))})),(0,ws.as)(T).then(()=>x)})()}_applySymbolToRenderer(d,_,T){T?d.symbol=_:d.defaultSymbol=_}_fetchSymbol(d,_){var T=this;return(0,kr.Z)(function*(){if(!d)throw new Error;if("web-style"===d.type){const x=T._webStyleSymbolCache;try{const A=yield"2d"===T.view.type?d.fetchCIMSymbol({cache:x}):d.fetchSymbol({cache:x});return T._getAppliedCloneSymbol(A,_)}catch{throw Us.Z.getLogger(T.declaredClass).warn("Fetching web-style failed!"),new Error}}return T._getAppliedCloneSymbol(d,_)})()}_getAppliedCloneSymbol(d,_){if(!d||!_)return d;const T=d.clone(),x=_&&_.toRgba();return T.type.includes("3d")?this._applyColorTo3dSymbol(T,x):"cim"===T.type?(0,bU.ZB)(T,_):T.color&&(T.color=new lo.Z(x||T.color)),T}_applyColorTo3dSymbol(d,_){_&&d.symbolLayers.forEach(T=>{T&&(T.material||(T.material={}),T.material.color=new lo.Z(_))})}_getVisualVariableLegendElements(d,_){var T=this;return(0,kr.Z)(function*(){if(!("visualVariables"in d)||!d.visualVariables||"vector-field"===d.type)return null;const x=d.visualVariables,A=[],U=[],ne=[];for(const it of x)"color"===it.type?A.push(it):"size"===it.type?U.push(it):"opacity"===it.type&&ne.push(it);const fe=[...A,...U,...ne];let Oe,we;if(0===A.length&&wf(d)&&d.classBreakInfos&&1===d.classBreakInfos.length){const it=d.classBreakInfos[0];Oe=it&&it.symbol}if(0===A.length&&Rf(d)&&(Oe=d.symbol),Oe)if(Oe.type.includes("3d")){const it=Oe.symbolLayers.getItemAt(0);"water"===it.type?(0,Qe.pC)(it.color)&&(we=it.color):(0,Qe.pC)(it.material)&&(0,Qe.pC)(it.material.color)&&(we=it.material.color)}else Oe.url||(we=Oe.color);const Ze=T.effectList;return(yield Promise.all(fe.map(function(){var it=(0,kr.Z)(function*(lt){if(!lt.legendOptions||!1!==lt.legendOptions.showLegend){const dt=vx(d)?lt.field:T._getRampTitle(lt,_);let Tt=null;const mt="getField"in _&&_.getField&&_.getField(lt.field),Mt=mt&&(0,Iv.y2)(mt);if("color"===lt.type){const Pt=yield iM(lt,null,Mt);Tt={type:"color-ramp",title:dt,infos:Pt,preview:jp(Pt.map(Nt=>Nt.color),{effectList:Ze})},T._hasColorRamp||(T._hasColorRamp=!(null==Tt.infos||!Tt.infos.length))}else if("size"===lt.type&&"outline"!==lt.target)Ab.test(lt.valueExpression)?T._hasClusterSizeVariable||(T._scaleDrivenSizeVariable=lt):(Tt=yield T._getSizeLegendElement(dt,lt,d,Mt),T._hasSizeRamp||(T._hasSizeRamp=!(null==Tt.infos||!Tt.infos.length)));else if("opacity"===lt.type){const Pt=yield iM(lt,we,Mt);Tt={type:"opacity-ramp",title:dt,infos:Pt,preview:jp(Pt.map(Nt=>Nt.color),{effectList:Ze})},T._hasOpacityRamp||(T._hasOpacityRamp=!(null==Tt.infos||!Tt.infos.length))}return Tt&&Tt.infos?Tt:null}});return function(lt){return it.apply(this,arguments)}}()))).filter(it=>!!it)})()}_getDomainName(d,_,T){if(d&&"function"!=typeof d){const x="getField"in T&&T.getField&&T.getField(d),A=x&&"getFieldDomain"in T&&T.getFieldDomain?T.getFieldDomain(x.name):null;return A&&"coded-value"===A.type?A.getName(_):null}return null}_getClusterTitle(d){const _=this.layer,T=d.field;if("featureReduction"in _&&_.featureReduction&&"cluster"===_.featureReduction.type){const x=_.featureReduction,A="popupTemplate"in x&&x.popupTemplate,U=A&&A.fieldInfos;if(U)for(const ne of U)if(ne.fieldName===T)return"cluster_count"===T?ne.label||{showCount:!0}:ne.label}return{showCount:!0}}_getRampTitle(d,_){let T=d.field,x=d.normalizationField,A=!1,U=!1,ne=!1,fe=null;T="function"==typeof T?null:T,x="function"==typeof x?null:x;const Oe=d.legendOptions&&d.legendOptions.title;if(null!=Oe)fe=Oe;else if(d.valueExpressionTitle)fe=d.valueExpressionTitle;else{if("renderer"in _&&_.renderer&&"authoringInfo"in _.renderer&&_.renderer.authoringInfo&&_.renderer.authoringInfo.visualVariables){const we=_.renderer.authoringInfo.visualVariables;for(let Ze=0;Ze${we}<${this._getFieldAlias(fe,_)}>`,Oe&&(Ze=`${Ze}${we}<${this._getFieldAlias(Oe,_)}>`)),Ze}let ne=null;return(x||A)&&(ne={field:x&&this._getFieldAlias(x,_),normField:A&&this._getFieldAlias(A,_),normByPct:U}),ne}_getFieldAlias(d,_){const T="popupTemplate"in _&&_.popupTemplate,x=T&&T.fieldInfos;let A=null;x&&x.some(Ze=>d===Ze.fieldName&&(A=Ze,!0));let U=null;"getField"in _&&_.getField?U=_.getField(d):"fieldsIndex"in _&&_.fieldsIndex&&(U=_.fieldsIndex.get(d));let ne=null;const fe="featureReduction"in _&&_.featureReduction;fe&&(!A&&"popupTemplate"in fe&&fe.popupTemplate&&fe.popupTemplate.fieldInfos&&fe.popupTemplate.fieldInfos.some(Ze=>d?.toLowerCase()===Ze.fieldName?.toLowerCase()&&(A=Ze,!0)),"fields"in fe&&fe.fields&&(ne=fe.fields.find(Ze=>Ze.name?.toLowerCase()===d?.toLowerCase())));const Oe=A||U||ne;let we=null;return Oe&&(we=A?.label||U?.alias||ne?.alias||"name"in Oe&&Oe.name||"fieldName"in Oe&&Oe.fieldName),we}_isUnclassedRenderer(d){const _=d.visualVariables;let T=!1;return wf(d)&&d.classBreakInfos&&1===d.classBreakInfos.length&&_&&(T=d.field?_.some(x=>!(!x||d.field!==x.field||(d.normalizationField||x.normalizationField)&&d.normalizationField!==x.normalizationField)):!!_.length),T}};(0,Ve._)([(0,ke.Cb)()],ra.prototype,"children",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ra.prototype,"effectList",null),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"layerView",void 0),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"layer",void 0),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"legendElements",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ra.prototype,"opacity",null),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"parent",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0,dependsOn:[]})],ra.prototype,"ready",null),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"hideLayersNotInCurrentView",void 0),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"keepCacheOnDestroy",void 0),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"respectLayerVisibility",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ra.prototype,"scale",null),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"sublayerIds",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],ra.prototype,"isScaleDriven",null),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"title",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0,dependsOn:["ready"],value:0})],ra.prototype,"version",null),(0,Ve._)([(0,ke.Cb)()],ra.prototype,"view",void 0),ra=(0,Ve._)([(0,Wr.j)("esri.widgets.Legend.support.ActiveLayerInfo")],ra);const NU=ra,WU=On.Z.ofType(NU),DY=["esri.layers.BuildingSceneLayer","esri.layers.CSVLayer","esri.layers.FeatureLayer","esri.layers.GeoJSONLayer","esri.layers.GeoRSSLayer","esri.layers.GroupLayer","esri.layers.HeatmapLayer","esri.layers.ImageryLayer","esri.layers.ImageryTileLayer","esri.layers.MapImageLayer","esri.layers.OGCFeatureLayer","esri.layers.PointCloudLayer","esri.layers.StreamLayer","esri.layers.SceneLayer","esri.layers.SubtypeGroupLayer","esri.layers.TileLayer","esri.layers.VoxelLayer","esri.layers.WFSLayer","esri.layers.WMSLayer","esri.layers.WMTSLayer","esri.layers.WCSLayer"],VU="view.basemapView.baseLayerViews",zU="view.groundView.layerViews",HU="view.basemapView.referenceLayerViews",SY=[VU,zU,"view.layerViews",HU];let Xc=class extends Ns.Z{constructor(d){super(d),this._handles=new Ji.Z,this._layerViewByLayerId={},this._layerInfosByLayerViewId={},this._activeLayerInfosByLayerViewId={},this._activeLayerInfosWithNoParent=new On.Z,this.activeLayerInfos=new WU,this.basemapLegendVisible=!1,this.groundLegendVisible=!1,this.hideLayersNotInCurrentView=!1,this.keepCacheOnDestroy=!1,this.respectLayerVisibility=!0,this.layerInfos=[],this.view=null}initialize(){this._handles.add((0,Ht.YP)(()=>this.view,()=>this._viewHandles(),Ht.nn),"view"),this._handles.add((0,vS.qe)(()=>this._refresh()))}destroy(){this._destroyViewActiveLayerInfos(),this._handles.destroy(),this._handles=null,this.view=null}get state(){return this.get("view.ready")?"ready":"disabled"}_viewHandles(){this._handles.remove("state"),this.view&&this._handles.add((0,Ht.YP)(()=>this.state,()=>this._stateHandles(),Ht.nn),"state")}_stateHandles(){this._resetAll(),"ready"===this.state&&this._watchPropertiesAndAllLayerViews()}_resetAll(){this._handles.remove(["all-layer-views","legend-properties"]),this._destroyViewActiveLayerInfos(),this.activeLayerInfos.removeAll()}_destroyViewActiveLayerInfos(){Object.keys(this._activeLayerInfosByLayerViewId).forEach(this._destroyViewActiveLayerInfo,this)}_destroyViewActiveLayerInfo(d){this._handles.remove(d);const _=this._activeLayerInfosByLayerViewId[d];delete this._activeLayerInfosByLayerViewId[d],_&&_.parent&&_.parent.children.remove(_)}_watchPropertiesAndAllLayerViews(){const{allLayerViews:d}=this.view;d.length&&this._refresh(),this._handles.add(d.on("change",_=>this._allLayerViewsChangeHandle(_)),"all-layer-views"),this._handles.add((0,Ht.YP)(()=>[this.layerInfos,this.basemapLegendVisible,this.groundLegendVisible],()=>this._propertiesChangeHandle()),"legend-properties")}_allLayerViewsChangeHandle(d){d.removed.forEach(_=>this._destroyViewActiveLayerInfo(_.uid)),this._refresh()}_propertiesChangeHandle(){this._destroyViewActiveLayerInfos(),this._refresh()}_refresh(){this._layerInfosByLayerViewId={},this.activeLayerInfos.removeAll(),this._generateLayerViews().filter(this._filterLayerViewsByLayerInfos,this).filter(this._isLayerViewSupported,this).forEach(this._generateActiveLayerInfo,this),this._sortActiveLayerInfos(this.activeLayerInfos)}_sortActiveLayerInfos(d){if(d.length<2)return;const _=[];d.forEach(x=>{if(!x.parent){const A=x.layer.parent,U=A&&"uid"in A&&this._layerViewByLayerId[A.uid],ne=U&&this._activeLayerInfosByLayerViewId[U.uid];ne&&d.includes(ne)&&(_.push(x),x.parent=ne,ne.children.add(x),this._sortActiveLayerInfos(ne.children))}}),d.removeMany(_);const T={};this.view.allLayerViews.forEach((x,A)=>T[x.layer.uid]=A),d.sort((x,A)=>(T[A.layer.uid]||0)-(T[x.layer.uid]||0))}_generateLayerViews(){const d=[];return SY.filter(this._filterLayerViews,this).map(this.get,this).filter(_=>null!=_).forEach(this._collectLayerViews("layerViews",d)),d}_filterLayerViews(d){return!(!this.basemapLegendVisible&&(d===VU||d===HU)||!this.groundLegendVisible&&d===zU)}_collectLayerViews(d,_){const T=x=>(x&&x.forEach(A=>{_.push(A),T(A[d])}),_);return T}_filterLayerViewsByLayerInfos(d){const _=this.layerInfos;return!_||!_.length||_.some(T=>this._hasLayerInfo(T,d))}_hasLayerInfo(d,_){const T=this._isLayerUIDMatching(d.layer,_.layer.uid);return T&&(this._layerInfosByLayerViewId[_.uid]=d),T}_isLayerUIDMatching(d,_){return d&&(d.uid===_||this._hasLayerUID(d.layers,_))}_hasLayerUID(d,_){return d&&d.some(T=>this._isLayerUIDMatching(T,_))}_isLayerViewSupported(d){return!!DY.includes(d.layer.declaredClass)&&(this._layerViewByLayerId[d.layer.uid]=d,!0)}_generateActiveLayerInfo(d){this._isLayerActive(d)?this._buildActiveLayerInfo(d):(this._handles.remove(d.uid),this._handles.add((0,Ht.YP)(()=>[d.legendEnabled,d.layer?.legendEnabled],()=>this._layerActiveHandle(d)),d.uid))}_layerActiveHandle(d){this._isLayerActive(d)&&(this._handles.remove(d.uid),this._buildActiveLayerInfo(d))}_isLayerActive(d){return!this.respectLayerVisibility||d.legendEnabled&&d.get("layer.legendEnabled")}_buildActiveLayerInfo(d){const _=d.layer,T=d.uid,x=this._layerInfosByLayerViewId[T];let A=this._activeLayerInfosByLayerViewId[T];if(A||(A=new NU({layer:_,layerView:d,title:x&&void 0!==x.title&&x.layer.uid===_.uid?x.title:_.title,view:this.view,respectLayerVisibility:this.respectLayerVisibility,hideLayersNotInCurrentView:this.hideLayersNotInCurrentView,keepCacheOnDestroy:this.keepCacheOnDestroy,sublayerIds:x&&x.sublayerIds||[]}),this._activeLayerInfosByLayerViewId[T]=A),A.parent=this._activeLayerInfosByLayerViewId[(_.parent&&"uid"in _.parent&&this._layerViewByLayerId[_.parent?.uid])?.uid],!this._handles.has(T)){const ne=[(0,Ht.YP)(()=>_.title,fe=>this._titleHandle(fe,A)),(0,Ht.YP)(()=>[_.opacity,"renderer"in _&&_.renderer,"pointSymbol"in _&&_.pointSymbol,"lineSymbol"in _&&_.lineSymbol,"polygonSymbol"in _&&_.polygonSymbol],()=>this._constructLegendElements(A)),(0,Ht.gx)(()=>!0===this.view?.stationary,()=>this._scaleHandle(A),Ht.nn),(0,Ht.YP)(()=>d._effectiveRenderer,()=>this._constructLegendElements(A)),(0,Ht.YP)(()=>"effect"in _&&_.effect,()=>this._constructLegendElements(A))];if(this.respectLayerVisibility){const fe=(0,Ht.YP)(()=>d.legendEnabled,we=>this._legendEnabledHandle(we,A)),Oe=(0,Ht.YP)(()=>_.legendEnabled,we=>this._legendEnabledHandle(we,A));ne.push(fe,Oe)}this._handles.add(ne,T)}A.isScaleDriven||this._constructLegendElements(A),this._addActiveLayerInfo(A)}_titleHandle(d,_){_.title=d,this._constructLegendElements(_)}_legendEnabledHandle(d,_){d?this._addActiveLayerInfo(_):this._removeActiveLayerInfo(_)}_scaleHandle(d){(d.isScaleDriven||d.hideLayersNotInCurrentView)&&this._constructLegendElements(d)}_addActiveLayerInfo(d){const{layerView:_,layer:T}=d;if(this._isLayerActive(_)&&!this.activeLayerInfos.includes(d)){const x=d.parent;if(x)x.children.includes(d)||x.children.push(d),this._sortActiveLayerInfos(x.children);else{const A=this.layerInfos?.some(U=>U.layer.uid===T.uid);T.parent&&"uid"in T.parent&&!A?this._activeLayerInfosWithNoParent.add(d):(this.activeLayerInfos.add(d),this._sortActiveLayerInfos(this.activeLayerInfos))}if(this._activeLayerInfosWithNoParent.length){const A=[];this._activeLayerInfosWithNoParent.forEach(U=>{const ne=U.layer.parent,Oe=this._activeLayerInfosByLayerViewId[(ne&&"uid"in ne&&this._layerViewByLayerId[ne?.uid])?.uid];Oe&&(A.push(U),U.parent=Oe)}),A.length&&(this._activeLayerInfosWithNoParent.removeMany(A),A.forEach(U=>this._addActiveLayerInfo(U)))}}}_removeActiveLayerInfo(d){const _=d.parent;_?_.children.remove(d):this.activeLayerInfos.remove(d)}_constructLegendElements(d){const _=d.layer;"featureCollections"in _&&_.featureCollections?d.buildLegendElementsForFeatureCollections(_.featureCollections):"featureReduction"in _&&_.featureReduction&&"renderer"in _.featureReduction&&("binning"===_.featureReduction.type||"cluster"===_.featureReduction.type)?d.buildLegendElementsForFeatureReduction(_.featureReduction):"renderer"in _&&_.renderer&&!("sublayers"in _)?d.buildLegendElementsForRenderer(_.renderer):"url"in _&&_.url?d.buildLegendElementsForTools():d.children.forEach(T=>this._constructLegendElements(T))}};(0,Ve._)([(0,ke.Cb)({type:WU})],Xc.prototype,"activeLayerInfos",void 0),(0,Ve._)([(0,ke.Cb)()],Xc.prototype,"basemapLegendVisible",void 0),(0,Ve._)([(0,ke.Cb)()],Xc.prototype,"groundLegendVisible",void 0),(0,Ve._)([(0,ke.Cb)()],Xc.prototype,"hideLayersNotInCurrentView",void 0),(0,Ve._)([(0,ke.Cb)()],Xc.prototype,"keepCacheOnDestroy",void 0),(0,Ve._)([(0,ke.Cb)()],Xc.prototype,"respectLayerVisibility",void 0),(0,Ve._)([(0,ke.Cb)()],Xc.prototype,"layerInfos",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],Xc.prototype,"state",null),(0,Ve._)([(0,ke.Cb)()],Xc.prototype,"view",void 0),Xc=(0,Ve._)([(0,Wr.j)("esri.widgets.Legend.LegendViewModel")],Xc);const AY=Xc;var Qd=v(30695);const $n_squareTableRow="esri-relationship-ramp--square__table-row",$n_squareTableCell="esri-relationship-ramp--square__table-cell",$n_squareTableLabel="esri-relationship-ramp--square__table-label";function GU(d,_,T,x){const{focus:A,labels:U}=d,ne=!!A,fe=function wY(d,_,T,x,A=60){const{focus:U,numClasses:ne,colors:fe,rotation:Oe}=d,we=!!U,Ze=Math.sqrt(A**2+A**2)+(we?0:5),it=[],lt=[],dt=[],Tt=(A||75)/ne;for(let Yr=0;Yr{if(x&&2===U)A.preview=UY(_,T);else{const ne=(0,li.F2)(A.size)+("horizontal"===T?20:10),fe="div"===A.preview.tagName.toLowerCase(),Oe=fe?A.preview:document.createElement("div");Oe.className="esri-univariate-above-and-below-ramp__symbol","horizontal"===T?Oe.style.width=`${ne}px`:Oe.style.height=`${ne}px`,fe||Oe.appendChild(A.preview),A.preview=Oe}})}function Ub(d,_="classic"){const T=d.infos;return"classic"===_?((0,li.F2)(T[0].size)+10)/2:((0,li.F2)(T[0].size)-(0,li.F2)(T[T.length-1].size))/2}function Uf(d,_){if(!d)return null;const T=d.infos.map(A=>A.color),x=jp("full"===_.type?T:"above"===_.type?T.slice(0,3):T.slice(2,5),{width:_.width,height:_.height,align:_.rampAlignment,effectList:_.effectList});return x.className="esri-legend__color-ramp",null!=_.opacity&&(x.style.opacity=_.opacity.toString()),x}function Ox(d,_,T,x="vertical"){let A=0;const U=d.infos,ne=Math.floor(U.length/2),Oe="full"===_||"below"===_?U.length-1:ne;for(let we="full"===_||"above"===_?0:ne;we<=Oe;we++)A+=T&&we===ne?"horizontal"===x?10:20:(0,li.F2)(U[we].size)+("horizontal"===x?20:10);return Math.round(A)}function Bf(d,_,T,x="vertical"){const A=Ox(d,_,T,x),U=d.infos,ne=Math.floor(U.length/2),fe="full"===_||"above"===_?0:ne,Oe="full"===_||"below"===_?U.length-1:ne,Ze=T?"vertical"===x?20:10:0,it="vertical"===x?10*("full"===_?2:1):20*("full"===_?2:1);return Math.round(A-((0,li.F2)("full"===_?U[fe].size+U[Oe].size:"above"===_?U[fe].size:U[Oe].size)/2+Ze/2+it/2))}function YU(d,_,T="vertical"){const x=d.infos;let A=x.find(({type:ne})=>"size-ramp"===ne),U=x.find(({type:ne})=>"color-ramp"===ne);return A&&(A={...A},A.infos=[...A.infos],$U(A,_,T,!0)),U&&(U={...U},U.infos=[...U.infos]),"horizontal"===T&&(A?.infos.reverse(),U?.infos.reverse()),{sizeRampElement:A,colorRampElement:U}}function XU(d,_="vertical"){const T=d.infos;let x=T.find(({type:U})=>"size-ramp"===U),A=T.find(({type:U})=>"color-ramp"===U);return x&&(x={...x},x.infos=[...x.infos],$U(x,null,_,!1)),A&&(A={...A},A.infos=[...A.infos]),"horizontal"===_&&(x?.infos.reverse(),A?.infos.reverse()),{sizeRampElement:x,colorRampElement:A}}function Ca(d){d.appendChild(this)}function jf(d,_,T){if(!_)return;if("string"==typeof _||"number"==typeof _)return _;if("value"in _||"unit"in _)return(0,_c.n)(d.dotValue,_);if("colorName"in _||"bandName"in _)return d[_.colorName]+": "+(d[_.bandName]||_.bandName);if("showCount"in _)return _.showCount?d.clusterCountTitle:null;let x=null;return function BY(d,_){return _}(0,T)?x=_.ratioPercentTotal?"showRatioPercentTotal":_.ratioPercent?"showRatioPercent":_.ratio?"showRatio":_.normField?"showNormField":_.field?"showField":null:kU(0,T)&&(x=_.normField?"showNormField":_.normByPct?"showNormPct":_.field?"showField":null),x?(0,_c.n)("showField"===x?"{field}":d[x],{field:_.field,normField:_.normField}):null}function kU(d,_){return!_}function JU(d,_){return!!(_&&"Stretched"===_&&d.version>=10.3&&"esri.layers.ImageryLayer"===d.declaredClass)}const ci_layerRow="esri-legend--card__layer-row",ci_rampLabel="esri-legend--card__ramp-label",ci_symbol="esri-legend--card__symbol",ci_layerInfo="esri-legend__layer-cell esri-legend__layer-cell--info";var Ry;!function(d){d.Auto="auto",d.Stack="stack",d.SideBySide="side-by-side"}(Ry||(Ry={}));const Ff=window.devicePixelRatio;let bu=class extends ua.Z{constructor(d,_){super(d,_),this._handles=new Ji.Z,this._hasIndicators=!1,this._selectedSectionName=null,this._sectionNames=[],this._sectionMap=new Map,this.activeLayerInfos=null,this.headingLevel=3,this.layout=Ry.Stack,this.messages=null,this.messagesCommon=null,this.type="card",this.view=null}initialize(){this.addHandles((0,Ht.YP)(()=>this.activeLayerInfos,d=>{this._handles.removeAll(),this._watchForSectionChanges(d)}))}destroy(){this._handles.destroy(),this._handles=null}render(){this._hasIndicators=this.layout===Ry.Auto&&this.view.container.clientWidth<=768||this.layout===Ry.Stack;const d=this.activeLayerInfos,_=d&&d.toArray().map(fe=>this._renderLegendForLayer(fe)).filter(fe=>!!fe);this._hasIndicators?this._selectedSectionName&&this._sectionNames.includes(this._selectedSectionName)||(this._selectedSectionName=this._sectionNames&&this._sectionNames[0]):this._selectedSectionName=null;const T=this._sectionNames.length,x=this._sectionNames.map((fe,Oe)=>{const we=(0,_c.n)(this.messagesCommon.pagination.pageText,{index:Oe+1,total:T});return(0,Yt.u)("div",{key:fe,role:"tab",id:fe,"aria-label":we,"aria-controls":`${fe}-panel`,"aria-selected":(this._selectedSectionName===fe).toString(),tabIndex:this._selectedSectionName===fe?0:-1,title:we,onclick:this._selectSection,onkeydown:this._focusSection,bind:this,class:this.classes("esri-legend--card__carousel-indicator",{"esri-legend--card__carousel-indicator--activated":this._selectedSectionName===fe}),"data-section-name":fe})}),A=this._hasIndicators&&T>1?(0,Yt.u)("div",{class:"esri-legend--card__carousel-indicator-container",key:"carousel-navigation",role:"tablist"},x):null,U=this._hasIndicators?this._sectionMap.get(this._selectedSectionName):_&&_.length?_:null;return(0,Yt.u)("div",{class:this.classes("esri-legend--card",{"esri-legend--stacked":this._hasIndicators})},U||(0,Yt.u)("div",{class:"esri-legend--card__message"},this.messages.noLegend),A)}_selectSection(d){const _=d.target.getAttribute("data-section-name");_&&(this._selectedSectionName=_)}_focusSection(d){switch(d.key){case"ArrowLeft":case"ArrowRight":this._switchSectionOnArrowPress(d);break;case"Enter":case" ":this._selectSection(d)}}_switchSectionOnArrowPress(d){const _=d.key,T="ArrowLeft"===_?-1:1,x=d.target.getAttribute("data-section-name"),A=this._sectionNames.indexOf(x),U=this._sectionNames;let ne=null;-1!==A&&(U[A+T]?ne=document.getElementById(U[A+T]):"ArrowLeft"===_?ne=document.getElementById(U[U.length-1]):"ArrowRight"===_&&(ne=document.getElementById(U[0])),ne&&ne.focus())}_watchForSectionChanges(d){if(this._generateSectionNames(),d){d.forEach(T=>{const x=`activeLayerInfo-${T.layer.uid}-version-change`;this._handles.remove(x),this._watchForSectionChanges(T.children),this._handles.add((0,Ht.YP)(()=>T.version,()=>this._generateSectionNames()),x)});const _="activeLayerInfos-collection-change";this._handles.remove(_),this._handles.add(d.on("change",()=>this._watchForSectionChanges(d)),_)}}_generateSectionNames(){this._sectionNames.length=0,this._selectedSectionName=null,this.activeLayerInfos&&this.activeLayerInfos.forEach(this._generateSectionNamesForActiveLayerInfo,this)}_getSectionName(d,_,T){return`${this.id}${d.uid}-type-${_.type}-${T}`}_generateSectionNamesForActiveLayerInfo(d){d.children.forEach(this._generateSectionNamesForActiveLayerInfo,this),d.legendElements&&d.legendElements.forEach((_,T)=>{this._sectionNames.push(this._getSectionName(d.layer,_,T))})}_renderLegendForLayer(d){if(!d.ready)return null;if(d.children.length){const _=d.children.map(T=>this._renderLegendForLayer(T)).toArray();return(0,Yt.u)("div",{key:d.layer.uid,class:this.classes("esri-legend--card__service","esri-legend--card__group-layer")},(0,Yt.u)("div",{class:"esri-legend--card__service-caption-container"},d.title),_)}{const _=d.legendElements;if(_&&!_.length)return null;const T=_.some(U=>"relationship-ramp"===U.type),x=_.map((U,ne)=>this._renderLegendForElement(U,d,ne,T)).filter(U=>!!U);return x.length?(0,Yt.u)("div",{key:d.layer.uid,class:this.classes("esri-legend--card__service",{"esri-legend--card__group-layer-child":!!d.parent})},(0,Yt.u)("div",{class:"esri-legend--card__service-caption-container"},(0,Yt.u)("div",{class:"esri-legend--card__service-caption-text"},d.title)),(0,Yt.u)("div",{class:"esri-legend--card__service-content"},x)):null}}_renderLegendForElement(d,_,T,x=!1,A=!1){const fe="size-ramp"===d.type,Oe=_.layer;let we=null;if("string"==typeof d.title)we=d.title;else if(d.title){const mt=d.title,Mt=jf(this.messages,mt,"color-ramp"===d.type||"opacity-ramp"===d.type);we=mt.title?`${mt.title} (${Mt})`:Mt}const Ze=this._getSectionName(Oe,d,T),it=this._hasIndicators&&!A?(0,Yt.u)("div",null,(0,Yt.u)(wp,{level:this.headingLevel,class:"esri-legend--card__carousel-title"},_.title),(0,Yt.u)(wp,{level:k4(this.headingLevel),class:"esri-legend--card__layer-caption"},we)):we?(0,Yt.u)(wp,{level:this.headingLevel,class:"esri-legend--card__layer-caption"},we):null,lt=_.effectList;let dt=null;if("symbol-table"===d.type){const mt=d.infos.map((Mt,Pt)=>this._renderLegendForElementInfo(Mt,_,d.legendType,Pt)).filter(Mt=>!!Mt);mt.length&&(dt=(0,Yt.u)("div",{class:this.classes({"esri-legend--card__label-container":!(mt[0].properties.classes&&mt[0].properties.classes["esri-legend--card__symbol-row"]||x),"esri-legend--card__relationship-label-container":x})},mt))}else"color-ramp"===d.type||"opacity-ramp"===d.type||"heatmap-ramp"===d.type?dt=this._renderLegendForRamp(d,Oe.opacity,lt):fe?dt=this._renderSizeRamp(d,Oe.opacity):"pie-chart-ramp"===d.type?dt=this._renderPieChartRamp(d):"relationship-ramp"===d.type?dt=GU(d,this.id,Oe.opacity,lt):"univariate-above-and-below-ramp"===d.type?dt=this._renderUnivariateAboveAndBelowRamp(d,Oe.opacity,lt):"univariate-color-size-ramp"===d.type&&(dt=this._renderUnivariateColorSizeRamp(d,Oe.opacity,lt));if(!dt)return null;const Tt=(0,Yt.u)("div",{key:Ze,class:"esri-legend--card__section",id:`${Ze}-panel`,role:"tabpanel","aria-labelledby":Ze,tabIndex:0},[it,dt]);return A||this._sectionMap.set(Ze,Tt),Tt}_renderPieChartRamp(d){return(0,Yt.u)("div",{class:"esri-legend--card__pie-chart-ramp-preview",bind:d.preview,afterCreate:Ca})}_renderUnivariateAboveAndBelowRamp(d,_,T){const{sizeRampElement:x,colorRampElement:A}=YU(d,_,"horizontal");if(!x)return null;const U=Ox(x,"full",!0,"horizontal"),ne=Bf(x,"above",!0,"horizontal"),fe=Bf(x,"below",!0,"horizontal"),we=Uf(A,{width:ne,height:12,rampAlignment:"horizontal",opacity:_,type:"above",effectList:T}),Ze=Uf(A,{width:fe,height:12,rampAlignment:"horizontal",opacity:_,type:"below",effectList:T}),it=Ub(x,"card"),lt=x.infos.map(Bt=>Bt.label),dt=lt.length-1,Tt=lt.map((Bt,Zt)=>0===Zt||Zt===dt?(0,Yt.u)("div",{key:Zt},Bt):null),Pt={marginTop:"3px",display:"flex"};(0,uo.dZ)(this.container)?Pt.marginRight=`${it}px`:Pt.marginLeft=`${it}px`;const Nt={width:`${U}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return(0,Yt.u)("div",{class:ci_layerRow,key:"size-ramp-preview",styles:{display:"flex",flexDirection:"column"}},(0,Yt.u)("div",{class:this.classes("esri-legend--card__symbol-container","esri-legend__size-ramp--horizontal"),styles:{display:"flex",flexDirection:"row"}},x.infos.map((Bt,Zt)=>(0,Yt.u)("div",{key:Zt,class:ci_symbol,bind:Bt.preview,afterCreate:Ca}))),we?(0,Yt.u)("div",{class:"esri-univariate-above-and-below-ramp__color--card",styles:Pt,key:"color-ramp-preview"},(0,Yt.u)("div",{bind:we,afterCreate:Ca}),(0,Yt.u)("div",{bind:Ze,afterCreate:Ca})):null,(0,Yt.u)("div",{class:ci_layerInfo},(0,Yt.u)("div",{class:"esri-legend__ramp-labels",styles:Nt},Tt)))}_renderUnivariateColorSizeRamp(d,_,T){const{sizeRampElement:x,colorRampElement:A}=XU(d,"horizontal");if(!x)return null;const U=Ox(x,"full",!1,"horizontal"),fe=Uf(A,{width:Bf(x,"full",!1,"horizontal"),height:12,rampAlignment:"horizontal",opacity:_,type:"full",effectList:T}),Oe=Ub(x,"card"),we=x.infos.length-1,Ze=x.infos.map((mt,Mt)=>0===Mt||Mt===we?(0,Yt.u)("div",{key:Mt},mt.label):null),dt={marginTop:"3px",display:"flex"};(0,uo.dZ)(this.container)?dt.marginRight=`${Oe}px`:dt.marginLeft=`${Oe}px`;const Tt={width:`${U}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return(0,Yt.u)("div",{class:ci_layerRow,key:"size-ramp-preview",styles:{display:"flex",flexDirection:"column"}},(0,Yt.u)("div",{class:this.classes("esri-legend--card__symbol-container","esri-legend__size-ramp--horizontal"),styles:{display:"flex",flexDirection:"row"}},x.infos.map((mt,Mt)=>(0,Yt.u)("div",{key:Mt,class:ci_symbol,bind:mt.preview,afterCreate:Ca}))),(0,Yt.u)("div",{class:"esri-univariate-above-and-below-ramp__color--card",styles:dt,key:"color-ramp-preview"},(0,Yt.u)("div",{bind:fe,afterCreate:Ca})),(0,Yt.u)("div",{class:ci_layerInfo},(0,Yt.u)("div",{class:"esri-legend__ramp-labels",styles:Tt},Ze)))}_renderLegendForElementInfo(d,_,T,x){const A=_.layer;if(d.type)return this._renderLegendForElement(d,_,x,!1,!0);const U=JU(A,T);if(d.preview){if(!d.symbol||!d.symbol.type.includes("simple-fill")){if(!d.label)return(0,Yt.u)("div",{key:x,bind:d.preview,afterCreate:Ca});const Bt={"esri-legend--card__symbol-cell":this._hasIndicators};return(0,Yt.u)("div",{key:x,class:this.classes(ci_layerRow,{"esri-legend--card__symbol-row":this._hasIndicators})},(0,Yt.u)("div",{class:this.classes(Bt),bind:d.preview,afterCreate:Ca}),(0,Yt.u)("div",{class:this.classes("esri-legend--card__image-label",{"esri-legend--card__label-cell":this._hasIndicators})},jf(this.messages,d.label,!1)||""))}let ne=255,fe=255,Oe=255,we=0,Ze=255,it=255,lt=255,dt=0;const Tt=d.symbol.color&&d.symbol.color.a,mt=d.symbol.outline&&d.symbol.outline.color&&d.symbol.outline.color.a;Tt&&(ne=d.symbol.color.r,fe=d.symbol.color.g,Oe=d.symbol.color.b,we=d.symbol.color.a*A.opacity),mt&&(Ze=d.symbol.outline.color.r,it=d.symbol.outline.color.g,lt=d.symbol.outline.color.b,dt=d.symbol.outline.color.a*A.opacity);const Mt=d.symbol.color?.isBright??!0,Pt=Mt?"rgba(255, 255, 255, .6)":"rgba(0, 0, 0, .6)",Nt={background:Tt?`rgba(${ne}, ${fe}, ${Oe}, ${we})`:"none",color:Mt?"black":"white",textShadow:`-1px -1px 0 ${Pt},\n 1px -1px 0 ${Pt},\n -1px 1px 0 ${Pt},\n 1px 1px 0 ${Pt}`,border:mt?`1px solid rgba(${Ze}, ${it}, ${lt}, ${dt})`:"none",filter:(0,da.wJ)(_.effectList)};return(0,Yt.u)("div",{key:x,class:ci_layerRow},(0,Yt.u)("div",{class:"esri-legend--card__label-element",styles:Nt}," ",d.label," "))}if(d.src){const ne=this._renderImage(d,A,U);return(0,Yt.u)("div",{key:x,class:ci_layerRow},ne,(0,Yt.u)("div",{class:"esri-legend--card__image-label"},d.label||""))}}_renderImage(d,_,T){const{label:x,src:A,opacity:U}=d,ne={"esri-legend--card__imagery-layer-image--stretched":T,[ci_symbol]:!T},fe={opacity:`${U??_.opacity}`};return(0,Yt.u)("img",{alt:jf(this.messages,x,!1),src:A,border:0,width:d.width,height:d.height,class:this.classes(ne),styles:fe})}_renderSizeRampLines(d){const _=d.infos,T=_[0],x=_[_.length-1],A=T.symbol,U=this._hasIndicators,ne=(0,li.F2)(T.size+T.outlineSize)*Ff,fe=(0,li.F2)(x.size+x.outlineSize)*Ff,Oe=U?ne:ne+50*Ff,we=U?ne/2+50*Ff:ne,Ze=function HY(d){if(d){if(d.type.includes("3d")){const _=d.symbolLayers&&d.symbolLayers.length;if(!_)return;const T=d.symbolLayers.getItemAt(_-1).get("resource.primitive");return"triangle"===T||"cone"===T||"tetrahedron"===T}return"triangle"===d.style}}(A),it=function zY(d){if(d){if(d.type.includes("3d")){const _=d.symbolLayers&&d.symbolLayers.length;if(!_)return;const T=d.symbolLayers.getItemAt(_-1),x=T.resource&&T.resource.primitive;return"circle"===x||"cross"===x||"kite"===x||"sphere"===x||"cube"===x||"diamond"===x}{const _=d.style;return"circle"===_||"diamond"===_||"cross"===_}}}(A),lt=document.createElement("canvas");lt.width=Oe,lt.height=we,lt.style.width=lt.width/Ff+"px",lt.style.height=lt.height/Ff+"px";const dt=lt.getContext("2d");if(U){dt.beginPath();const Mt=Oe/2-fe/2,Pt=we;dt.moveTo(0,0),dt.lineTo(Mt,Pt);const Zt=Oe/2+fe/2,nr=we;dt.moveTo(Oe,0),dt.lineTo(Zt,nr)}else{dt.beginPath();const Mt=Oe,Pt=0;dt.moveTo(0,we/2-fe/2),dt.lineTo(Mt,Pt);const Zt=Oe,nr=we;dt.moveTo(0,we/2+fe/2),dt.lineTo(Zt,nr)}return dt.strokeStyle="#ddd",dt.stroke(),(0,Yt.u)("div",{bind:lt,afterCreate:Ca,styles:U?{display:"flex",marginTop:`-${Ze?0:it?ne/2:0}px`,marginBottom:`-${Ze?fe:it?fe/2:0}px`}:{display:"flex",marginRight:`-${Ze?0:it?ne/2:0}px`,marginLeft:`-${Ze?0:it?fe/2:0}px`}})}_renderSizeRamp(d,_){const T=d.infos,x=T[0].label,A=T[T.length-1].label;let U=T[0].preview,ne=T[T.length-1].preview;const fe=this._hasIndicators,Oe={"flex-direction":fe?"column":"row-reverse"};U&&(U=U.cloneNode(!0),U.style.display="flex"),ne&&(ne=ne.cloneNode(!0),ne.style.display="flex");const we={opacity:null!=_?`${_}`:""};return(0,Yt.u)("div",{class:this.classes(ci_layerRow,{"esri-legend--card__size-ramp-row":fe})},(0,Yt.u)("div",{class:ci_rampLabel},fe?x:A),(0,Yt.u)("div",{class:"esri-legend--card__size-ramp-container",styles:Oe},(0,Yt.u)("div",{bind:U,afterCreate:Ca,class:"esri-legend--card__size-ramp-preview",styles:we}),this._renderSizeRampLines(d),(0,Yt.u)("div",{bind:ne,afterCreate:Ca,class:"esri-legend--card__size-ramp-container",styles:we})),(0,Yt.u)("div",{class:ci_rampLabel},fe?A:x))}_renderLegendForRamp(d,_,T){const x=d.infos,A="heatmap-ramp"===d.type,U=x.length-1,fe=U>2&&!A?25*U:100,Oe=fe+20,Ze=x.slice(0).reverse();Ze.forEach((nr,Jt)=>{nr.offset=A?nr.ratio:Jt/U});const it=Ze.length-1,lt=Ze.length%2!=0&&Ze[Ze.length/2|0],dt=lt&&(0,Yt.u)("div",{class:"esri-legend--card__interval-separators-container"},(0,Yt.u)("div",{class:"esri-legend--card__interval-separator"},"|"),(0,Yt.u)("div",{class:ci_rampLabel},lt.label)),Tt=x[x.length-1].label,mt=x[0].label,Pt=(0,Qd.KB)([[{shape:{type:"path",path:"M0 12.5 L10 0 L10 25 Z"},fill:Ze[0].color,stroke:{width:0}},{shape:{type:"rect",x:10,y:0,width:fe,height:25},fill:{type:"linear",x1:10,y1:0,x2:fe+10,y2:0,colors:Ze},stroke:{width:0}},{shape:{type:"path",path:`M${fe+10} 0 L${Oe} 12.5 L${fe+10} 25 Z`},fill:Ze[it].color,stroke:{width:0}}]],Oe,25),{messages:Nt}=this,Bt={filter:(0,da.wJ)(T),opacity:null==_?null:`${_}`};return(0,Yt.u)("div",{class:ci_layerRow,styles:{justifyContent:"center"}},(0,Yt.u)("div",{class:ci_rampLabel},A?Nt[Tt]:Tt),(0,Yt.u)("div",{class:"esri-legend--card__symbol-container"},(0,Yt.u)("div",{styles:Bt},Pt),dt),(0,Yt.u)("div",{class:ci_rampLabel},A?Nt[mt]:mt))}};(0,Ve._)([(0,ke.Cb)()],bu.prototype,"activeLayerInfos",void 0),(0,Ve._)([(0,ke.Cb)()],bu.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)()],bu.prototype,"layout",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Legend/t9n/Legend")],bu.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/t9n/common")],bu.prototype,"messagesCommon",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],bu.prototype,"type",void 0),(0,Ve._)([(0,ke.Cb)()],bu.prototype,"view",void 0),(0,Ve._)([(0,fc.h)()],bu.prototype,"_selectSection",null),bu=(0,Ve._)([(0,Wr.j)("esri.widgets.Legend.styles.Card")],bu);const xx=bu,Si_layerRow="esri-legend__layer-row",Si_layerInfo="esri-legend__layer-cell esri-legend__layer-cell--info",Si_symbolContainer="esri-legend__layer-cell esri-legend__layer-cell--symbols",Si_symbol="esri-legend__symbol",Si_sizeRamp="esri-legend__size-ramp",Si_rampLabel="esri-legend__ramp-label",QU={display:"flex",alignItems:"flex-start"},Dx={marginLeft:"3px"},Nf={display:"table-cell",verticalAlign:"middle"};let D0=class extends ua.Z{constructor(d,_){super(d,_),this.activeLayerInfos=null,this.headingLevel=3,this.messages=null,this.type="classic"}render(){const d=this.activeLayerInfos,_=d&&d.toArray().map(T=>this._renderLegendForLayer(T)).filter(T=>!!T);return(0,Yt.u)("div",null,_&&_.length?_:(0,Yt.u)("div",{class:"esri-legend__message"},this.messages.noLegend))}_renderLegendForLayer(d){if(!d.ready)return null;const _=!!d.children.length,T=`esri-legend__${d.layer.uid}-version-${d.version}`,x=d.title?wp({level:this.headingLevel,class:this.classes("esri-widget__heading","esri-legend__service-label")},d.title):null;if(_){const A=d.children.map(U=>this._renderLegendForLayer(U)).toArray();return(0,Yt.u)("div",{key:T,class:this.classes("esri-legend__service","esri-legend__group-layer")},x,A)}{const A=d.legendElements;if(A&&!A.length)return null;const U=A.map(fe=>this._renderLegendForElement(fe,d.layer,d.effectList)).filter(fe=>!!fe);return U.length?(0,Yt.u)("div",{key:T,class:this.classes("esri-legend__service",{"esri-legend__group-layer-child":!!d.parent}),tabIndex:0},x,(0,Yt.u)("div",{class:"esri-legend__layer"},U)):null}}_renderLegendForElement(d,_,T,x){const A="color-ramp"===d.type,U="opacity-ramp"===d.type,ne="size-ramp"===d.type;let fe=null;if("symbol-table"===d.type||ne){const dt=d.infos.map(Tt=>this._renderLegendForElementInfo(Tt,_,T,ne,d.legendType)).filter(Tt=>!!Tt);dt.length&&(fe=(0,Yt.u)("div",{class:"esri-legend__layer-body"},dt))}else"color-ramp"===d.type||"opacity-ramp"===d.type||"heatmap-ramp"===d.type||"stretch-ramp"===d.type?fe=this._renderLegendForRamp(d,_.opacity):"relationship-ramp"===d.type?fe=GU(d,this.id,_.opacity,T):"pie-chart-ramp"===d.type?fe=this._renderPieChartRamp(d):"univariate-above-and-below-ramp"===d.type?fe=this._renderUnivariateAboveAndBelowRamp(d,_.opacity,T):"univariate-color-size-ramp"===d.type&&(fe=this._renderUnivariateColorSizeRamp(d,_.opacity,T));if(!fe)return null;const Oe=d.title;let we=null;if("string"==typeof Oe)we=Oe;else if(Oe){const dt=jf(this.messages,Oe,A||U);we=kU(0,A||U)&&Oe.title?`${Oe.title} (${dt})`:dt}const Ze=x?"esri-legend__layer-child-table":"esri-legend__layer-table",it=we?(0,Yt.u)("div",{class:"esri-legend__layer-caption"},we):null;return(0,Yt.u)("div",{class:this.classes(Ze,{"esri-legend__layer-table--size-ramp":ne||!x})},it,fe)}_renderPieChartRamp(d){return(0,Yt.u)("div",{bind:d.preview,afterCreate:Ca})}_renderUnivariateAboveAndBelowRamp(d,_,T){const{sizeRampElement:x,colorRampElement:A}=YU(d,_);if(!x)return null;const U=Bf(x,"above",!0),ne=Bf(x,"below",!0),Oe=Uf(A,{width:12,height:U,rampAlignment:"vertical",opacity:_,type:"above",effectList:T}),we=Uf(A,{width:12,height:ne,rampAlignment:"vertical",opacity:_,type:"below",effectList:T}),Ze=Ub(x),it=x.infos.map(Zt=>Zt.label),lt=it.map((Zt,nr)=>0===nr?(0,Yt.u)("div",{key:nr,class:Zt?Oe?"esri-univariate-above-and-below-ramp__label":Si_rampLabel:null},Zt):2===nr?(0,Yt.u)("div",null):null),dt=it.length-1,Tt=Math.floor(it.length/2),mt=it.map((Zt,nr)=>nr===Tt||nr===dt?(0,Yt.u)("div",{key:nr,class:Zt?Oe?"esri-univariate-above-and-below-ramp__label":Si_rampLabel:null},Zt):null),Mt={display:"table-cell",verticalAlign:"middle"},Pt={marginTop:`${Ze}px`},Nt={height:`${U}px`},Bt={height:`${ne}px`};return(0,Yt.u)("div",{key:"univariate-above-and-below-ramp-preview",styles:QU},(0,Yt.u)("div",{class:"esri-legend__layer-body"},x.infos.map((Zt,nr)=>(0,Yt.u)("div",{class:this.classes(Si_layerRow,Si_sizeRamp)},(0,Yt.u)("div",{class:Si_symbol,styles:Mt,bind:Zt.preview,afterCreate:Ca}),Oe||nr%2!=0?null:(0,Yt.u)("div",{class:Si_layerInfo},it[nr])))),Oe?(0,Yt.u)("div",{styles:Pt,key:"color-ramp-preview"},(0,Yt.u)("div",{styles:Dx},(0,Yt.u)("div",{styles:Nf},(0,Yt.u)("div",{class:"esri-legend__ramps",bind:Oe,afterCreate:Ca})),(0,Yt.u)("div",{styles:Nf},(0,Yt.u)("div",{class:"esri-legend__ramp-labels",styles:Nt},lt))),(0,Yt.u)("div",{styles:Dx},(0,Yt.u)("div",{styles:Nf},(0,Yt.u)("div",{class:"esri-legend__ramps",bind:we,afterCreate:Ca})),(0,Yt.u)("div",{styles:Nf},(0,Yt.u)("div",{class:"esri-legend__ramp-labels",styles:Bt},mt)))):null)}_renderUnivariateColorSizeRamp(d,_,T){const{sizeRampElement:x,colorRampElement:A}=XU(d);if(!x)return null;const U=Ub(x),fe=Bf(x,"full",!1),Oe=Uf(A,{width:12,height:fe,rampAlignment:"vertical",opacity:_,type:"full",effectList:T}),we=x.infos.length-1,Ze=x.infos.map((Tt,mt)=>0===mt||mt===we?(0,Yt.u)("div",{key:mt,class:Tt.label?A?"esri-univariate-above-and-below-ramp__label":Si_rampLabel:null},Tt.label):null),it={display:"table-cell",verticalAlign:"middle"},lt={marginTop:`${U}px`},dt={height:`${fe}px`};return(0,Yt.u)("div",{key:"univariate-above-and-below-ramp-preview",styles:QU},(0,Yt.u)("div",{class:"esri-legend__layer-body"},x.infos.map(Tt=>(0,Yt.u)("div",{class:this.classes(Si_layerRow,Si_sizeRamp)},(0,Yt.u)("div",{class:Si_symbol,styles:it,bind:Tt.preview,afterCreate:Ca})))),(0,Yt.u)("div",{styles:lt,key:"color-ramp-preview"},(0,Yt.u)("div",{styles:Dx},(0,Yt.u)("div",{styles:Nf},(0,Yt.u)("div",{class:"esri-legend__ramps",bind:Oe,afterCreate:Ca})),(0,Yt.u)("div",{styles:Nf},(0,Yt.u)("div",{class:"esri-legend__ramp-labels",styles:dt},Ze)))))}_renderLegendForRamp(d,_){const T=d.infos,A="heatmap-ramp"===d.type,U="stretch-ramp"===d.type,ne=d.preview;ne.className="esri-legend__color-ramp "+("opacity-ramp"===d.type?"esri-legend__opacity-ramp":""),null!=_&&(ne.style.opacity=_.toString());const Oe=T.map(it=>(0,Yt.u)("div",{class:it.label?Si_rampLabel:null},A?this.messages[it.label]||it.label:U?this._getStretchStopLabel(it):it.label)),Ze={height:ne.style.height};return(0,Yt.u)("div",{class:Si_layerRow},(0,Yt.u)("div",{class:Si_symbolContainer,styles:{width:"24px"}},(0,Yt.u)("div",{class:"esri-legend__ramps",bind:ne,afterCreate:Ca})),(0,Yt.u)("div",{class:Si_layerInfo},(0,Yt.u)("div",{class:"esri-legend__ramp-labels",styles:Ze},Oe)))}_getStretchStopLabel(d){return d.label?this.messages[d.label]+": "+("string"==typeof d.value?d.value:(0,Lm.uf)(d.value,{style:"decimal",notation:d.value.toString().includes("e")?"scientific":"standard"})):""}_renderLegendForElementInfo(d,_,T,x,A){if(d.type)return this._renderLegendForElement(d,_,T,!0);let U=null;const ne=JU(_,A);if(d.preview?U=(0,Yt.u)("div",{class:Si_symbol,bind:d.preview,afterCreate:Ca}):d.src&&(U=this._renderImage(d,_,ne)),!U)return null;const fe={"esri-legend__imagery-layer-info--stretched":ne};return(0,Yt.u)("div",{class:Si_layerRow},(0,Yt.u)("div",{class:this.classes(Si_symbolContainer,{"esri-legend__imagery-layer-info--stretched":ne,[Si_sizeRamp]:!ne&&x})},U),(0,Yt.u)("div",{class:this.classes(Si_layerInfo,fe)},jf(this.messages,d.label,!1)||""))}_renderImage(d,_,T){const{label:x,src:A,opacity:U}=d,ne={"esri-legend__imagery-layer-image--stretched":T,[Si_symbol]:!T},fe={opacity:`${U??_.opacity}`};return(0,Yt.u)("img",{alt:jf(this.messages,x,!1),src:A,border:0,width:d.width,height:d.height,class:this.classes(ne),styles:fe})}};(0,Ve._)([(0,ke.Cb)()],D0.prototype,"activeLayerInfos",void 0),(0,Ve._)([(0,ke.Cb)()],D0.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Legend/t9n/Legend")],D0.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)({readOnly:!0})],D0.prototype,"type",void 0),D0=(0,Ve._)([(0,Wr.j)("esri.widgets.Legend.styles.Classic")],D0);const Wf=D0;let Ua=class extends ua.Z{constructor(d,_){super(d,_),this._handles=new Ji.Z,this.headingLevel=3,this.iconClass="esri-icon-layer-list",this.messages=null,this.style=new Wf,this.viewModel=new AY}initialize(){this.addHandles([(0,Ht.on)(()=>this.view,"resize",()=>this.scheduleRender()),(0,Ht.on)(()=>this.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this.activeLayerInfos)),(0,Ht.YP)(()=>this.headingLevel,d=>{const{style:_}=this;_&&(_.headingLevel=d)}),(0,Ht.YP)(()=>this.style,(d,_)=>{_&&d!==_&&_.destroy(),d&&(d.activeLayerInfos=this.activeLayerInfos,"card"===d.type&&(d.view=this.view),d.headingLevel=this.headingLevel)},Ht.nn)])}destroy(){this._handles=(0,Qe.SC)(this._handles)}get activeLayerInfos(){return this.viewModel.activeLayerInfos}set activeLayerInfos(d){this.viewModel.activeLayerInfos=d}get basemapLegendVisible(){return this.viewModel.basemapLegendVisible}set basemapLegendVisible(d){this.viewModel.basemapLegendVisible=d}get groundLegendVisible(){return this.viewModel.groundLegendVisible}set groundLegendVisible(d){this.viewModel.groundLegendVisible=d}get hideLayersNotInCurrentView(){return this.viewModel.hideLayersNotInCurrentView}set hideLayersNotInCurrentView(d){this.viewModel.hideLayersNotInCurrentView=d}get keepCacheOnDestroy(){return this.viewModel.keepCacheOnDestroy}set keepCacheOnDestroy(d){this.viewModel.keepCacheOnDestroy=d}get respectLayerVisibility(){return this.viewModel.respectLayerVisibility}set respectLayerVisibility(d){this.viewModel.respectLayerVisibility=d}get label(){return this.messages?.widgetLabel??""}set label(d){this._overrideIfSome("label",d)}get layerInfos(){return this.viewModel.layerInfos}set layerInfos(d){this.viewModel.layerInfos=d}castStyle(d){if(d instanceof xx||d instanceof Wf)return d;if("string"==typeof d)return"card"===d?new xx:new Wf;if(d&&"string"==typeof d.type){const _={...d};return delete _.type,new("card"===d.type?xx:Wf)(_)}return new Wf}get view(){return this.viewModel.view}set view(d){this.viewModel.view=d}render(){return(0,Yt.u)("div",{class:this.classes("esri-legend","esri-widget",this.style instanceof Wf?"esri-widget--panel":null)},this.style.render())}_refreshActiveLayerInfos(d){this._handles.removeAll(),d.forEach(_=>this._renderOnActiveLayerInfoChange(_)),this.scheduleRender()}_renderOnActiveLayerInfoChange(d){const _=(0,Ht.YP)(()=>d.version,()=>this.scheduleRender());this._handles.add(_,`version_${d.layer.uid}`);const T=(0,Ht.on)(()=>d.children,"change",()=>d.children.forEach(x=>this._renderOnActiveLayerInfoChange(x)),Ht.nn);this._handles.add(T,`children_${d.layer.uid}`),d.children.forEach(x=>this._renderOnActiveLayerInfoChange(x))}};(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"activeLayerInfos",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"basemapLegendVisible",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"groundLegendVisible",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"headingLevel",void 0),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"hideLayersNotInCurrentView",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"keepCacheOnDestroy",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"respectLayerVisibility",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"iconClass",void 0),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"label",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"layerInfos",null),(0,Ve._)([(0,ke.Cb)(),(0,Jo.H)("esri/widgets/Legend/t9n/Legend")],Ua.prototype,"messages",void 0),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"style",void 0),(0,Ve._)([(0,ko.p)("style")],Ua.prototype,"castStyle",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"view",null),(0,Ve._)([(0,ke.Cb)()],Ua.prototype,"viewModel",void 0),Ua=(0,Ve._)([(0,Wr.j)("esri.widgets.Legend")],Ua);const ZY=Ua,$Y=["mapRef"];class jb{ngAfterViewInit(){this.initMap()}initMap(){if(this.mapRef){const T=new lD.default({url:"https://sampleserver6.arcgisonline.com/arcgis/rest/services/Hurricanes/MapServer/0",renderer:{type:"simple",symbol:{type:"point-3d",symbolLayers:[{type:"object",resource:{primitive:"cone"},width:5e4}]},label:"hurricane location",visualVariables:[{type:"color",field:"PRESSURE",stops:[{value:950,color:"red"},{value:1020,color:"blue"}]},{type:"size",field:"WINDSPEED",stops:[{value:20,size:6e4},{value:150,size:5e5}],axis:"height"},{type:"size",axis:"width-and-depth",useSymbolValue:!0}]}}),x=new PD({basemap:"oceans",layers:[T]}),U=new O$({map:x,container:this.mapRef.nativeElement,camera:{position:{x:-7094839,y:-113987,z:8032780,spatialReference:{wkid:3857}},heading:358.8,tilt:13.7},environment:{lighting:{type:"virtual"}}}),ne=new ZY({view:U});U.ui.add(ne,"bottom-left")}}static#e=this.\u0275fac=function(T){return new(T||jb)};static#t=this.\u0275cmp=$.Xpm({type:jb,selectors:[["porrtal-hurricane-map"]],viewQuery:function(T,x){if(1&T&&$.Gf($Y,5),2&T){let A;$.iGM(A=$.CRH())&&(x.mapRef=A.first)}},inputs:{viewState:"viewState"},standalone:!0,features:[$.jDz],decls:2,vars:0,consts:[[1,"container"],["mapRef",""]],template:function(T,x){1&T&&$._UZ(0,"div",0,1)},dependencies:[D.ez],styles:['@import"https://js.arcgis.com/4.24/@arcgis/core/assets/esri/themes/light/main.css";.container[_ngcontent-%COMP%]{position:absolute;inset:0}'],changeDetection:0})}class Fb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Fb)};static#t=this.\u0275cmp=$.Xpm({type:Fb,selectors:[["porrtal-earthquake-map"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"earthquake-map works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Nb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Nb)};static#t=this.\u0275cmp=$.Xpm({type:Nb,selectors:[["porrtal-digital-elevation-map"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"digital-elevation-map works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Wb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Wb)};static#t=this.\u0275cmp=$.Xpm({type:Wb,selectors:[["porrtal-building-scene-with-query"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"building-scene-with-query works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Vb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Vb)};static#t=this.\u0275cmp=$.Xpm({type:Vb,selectors:[["porrtal-zoomable-circle-pack"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"zoomable-circle-pack works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class zb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||zb)};static#t=this.\u0275cmp=$.Xpm({type:zb,selectors:[["porrtal-zoomable-sunburst"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"zoomable-sunburst works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Hb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Hb)};static#t=this.\u0275cmp=$.Xpm({type:Hb,selectors:[["porrtal-zoomable-treemap"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"zoomable-treemap works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Gb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Gb)};static#t=this.\u0275cmp=$.Xpm({type:Gb,selectors:[["porrtal-zoomable-icicle"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"zoomable-icicle works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Kb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Kb)};static#t=this.\u0275cmp=$.Xpm({type:Kb,selectors:[["porrtal-collapsible-tree"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"collapsible-tree works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}class Zb{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(T){return new(T||Zb)};static#t=this.\u0275cmp=$.Xpm({type:Zb,selectors:[["porrtal-hierarchical-bar-chart"]],standalone:!0,features:[$.jDz],decls:2,vars:0,template:function(T,x){1&T&&($.TgZ(0,"p"),$._uU(1,"hierarchical-bar-chart works!"),$.qZA())},dependencies:[D.ez],changeDetection:0})}},76210:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z5:()=>re,HY:()=>pn,mv:()=>Ma,AA:()=>Be,yM:()=>rt,xE:()=>Dt,K3:()=>Y,h:()=>We,GH:()=>Gt,YY:()=>ee});var D=v(15861);let Q,$,W,X=!1,te=!1,ae=!1,oe=!1,le=null,se=!1;const re={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},Y=Ot=>{const It=new URL(Ot,Ei.$resourcesUrl$);return It.origin!==An.location.origin?It.href:It.pathname},ee=Ot=>Ei.$resourcesUrl$=Ot,Se="http://www.w3.org/1999/xlink",ye={},Ke=Ot=>"object"==(Ot=typeof Ot)||"function"===Ot,We=(Ot,It,...Xt)=>{let ur=null,Er=null,Mr=null,Nr=!1,ts=!1;const es=[],hs=ri=>{for(let Ci=0;Ciri[Ci]).join(" "))}if("function"==typeof Ot)return Ot(null===It?{}:It,es,je);const Ks=Ce(Ot,null);return Ks.$attrs$=It,es.length>0&&(Ks.$children$=es),Ks.$key$=Er,Ks.$name$=Mr,Ks},Ce=(Ot,It)=>{const Xt={$flags$:0,$tag$:Ot,$text$:It,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return Xt},Be={},Fe=Ot=>Ot&&Ot.$tag$===Be,je={forEach:(Ot,It)=>Ot.map(Re).forEach(It),map:(Ot,It)=>Ot.map(Re).map(It).map(He)},Re=Ot=>({vattrs:Ot.$attrs$,vchildren:Ot.$children$,vkey:Ot.$key$,vname:Ot.$name$,vtag:Ot.$tag$,vtext:Ot.$text$}),He=Ot=>{if("function"==typeof Ot.vtag){const Xt=Object.assign({},Ot.vattrs);return Ot.vkey&&(Xt.key=Ot.vkey),Ot.vname&&(Xt.name=Ot.vname),We(Ot.vtag,Xt,...Ot.vchildren||[])}const It=Ce(Ot.vtag,Ot.vtext);return It.$attrs$=Ot.vattrs,It.$children$=Ot.vchildren,It.$key$=Ot.vkey,It.$name$=Ot.vname,It},rt=(Ot,It,Xt)=>{const ur=Ot;return{emit:Er=>tt(ur,It,{bubbles:!!(4&Xt),composed:!!(2&Xt),cancelable:!!(1&Xt),detail:Er})}},tt=(Ot,It,Xt)=>{const ur=Ei.ce(It,Xt);return Ot.dispatchEvent(ur),ur},et=new WeakMap,ot=(Ot,It,Xt,ur)=>{let Er=_t(It,Xt);const Mr=Po.get(Er);if(Ot=11===Ot.nodeType?Ot:_n,Mr)if("string"==typeof Mr){let ts,Nr=et.get(Ot=Ot.head||Ot);Nr||et.set(Ot,Nr=new Set),Nr.has(Er)||(ts=_n.createElement("style"),ts.innerHTML=Mr,Ot.insertBefore(ts,Ot.querySelector("link")),Nr&&Nr.add(Er))}else!Ot.adoptedStyleSheets.includes(Mr)&&(Ot.adoptedStyleSheets=[...Ot.adoptedStyleSheets,Mr]);return Er},_t=(Ot,It)=>"sc-"+(It&&32&Ot.$flags$?Ot.$tagName$+"-"+It:Ot.$tagName$),vt=(Ot,It,Xt,ur,Er,Mr)=>{if(Xt!==ur){let Nr=js(Ot,It),ts=It.toLowerCase();if("class"===It){const es=Ot.classList,hs=jt(Xt),Ks=jt(ur);es.remove(...hs.filter(ri=>ri&&!Ks.includes(ri))),es.add(...Ks.filter(ri=>ri&&!hs.includes(ri)))}else if("style"===It){for(const es in Xt)(!ur||null==ur[es])&&(es.includes("-")?Ot.style.removeProperty(es):Ot.style[es]="");for(const es in ur)(!Xt||ur[es]!==Xt[es])&&(es.includes("-")?Ot.style.setProperty(es,ur[es]):Ot.style[es]=ur[es])}else if("key"!==It)if("ref"===It)ur&&ur(Ot);else if(Ot.__lookupSetter__(It)||"o"!==It[0]||"n"!==It[1]){{const es=Ke(ur);if((Nr||es&&null!==ur)&&!Er)try{if(Ot.tagName.includes("-"))Ot[It]=ur;else{const Ks=ur??"";"list"===It?Nr=!1:(null==Xt||Ot[It]!=Ks)&&(Ot[It]=Ks)}}catch{}let hs=!1;ts!==(ts=ts.replace(/^xlink\:?/,""))&&(It=ts,hs=!0),null==ur||!1===ur?(!1!==ur||""===Ot.getAttribute(It))&&(hs?Ot.removeAttributeNS(Se,It):Ot.removeAttribute(It)):(!Nr||4&Mr||Er)&&!es&&(ur=!0===ur?"":ur,hs?Ot.setAttributeNS(Se,It,ur):Ot.setAttribute(It,ur))}}else It="-"===It[2]?It.slice(3):js(An,ts)?ts.slice(2):ts[2]+It.slice(3),Xt&&Ei.rel(Ot,It,Xt,!1),ur&&Ei.ael(Ot,It,ur,!1)}},Lt=/\s/,jt=Ot=>Ot?Ot.split(Lt):[],$t=(Ot,It,Xt,ur)=>{const Er=11===It.$elm$.nodeType&&It.$elm$.host?It.$elm$.host:It.$elm$,Mr=Ot&&Ot.$attrs$||ye,Nr=It.$attrs$||ye;for(ur in Mr)ur in Nr||vt(Er,ur,Mr[ur],void 0,Xt,It.$flags$);for(ur in Nr)vt(Er,ur,Mr[ur],Nr[ur],Xt,It.$flags$)},Wt=(Ot,It,Xt,ur)=>{const Er=It.$children$[Xt];let Nr,ts,es,Mr=0;if(!X&&(ae=!0,"slot"===Er.$tag$&&(Q&&ur.classList.add(Q+"-s"),Er.$flags$|=Er.$children$?2:1)),null!==Er.$text$)Nr=Er.$elm$=_n.createTextNode(Er.$text$);else if(1&Er.$flags$)Nr=Er.$elm$=_n.createTextNode("");else{if(!oe&&(oe="svg"===Er.$tag$),Nr=Er.$elm$=_n.createElementNS(oe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Er.$flags$?"slot-fb":Er.$tag$),oe&&"foreignObject"===Er.$tag$&&(oe=!1),$t(null,Er,oe),(Ot=>null!=Ot)(Q)&&Nr["s-si"]!==Q&&Nr.classList.add(Nr["s-si"]=Q),Er.$children$)for(Mr=0;Mr{Ei.$flags$|=1;const Xt=Ot.childNodes;for(let ur=Xt.length-1;ur>=0;ur--){const Er=Xt[ur];Er["s-hn"]!==W&&Er["s-ol"]&&(or(Er).insertBefore(Er,wt(Er)),Er["s-ol"].remove(),Er["s-ol"]=void 0,ae=!0),It&&pr(Er,It)}Ei.$flags$&=-2},gr=(Ot,It,Xt,ur,Er,Mr)=>{let ts,Nr=Ot["s-cr"]&&Ot["s-cr"].parentNode||Ot;for(Nr.shadowRoot&&Nr.tagName===W&&(Nr=Nr.shadowRoot);Er<=Mr;++Er)ur[Er]&&(ts=Wt(null,Xt,Er,Ot),ts&&(ur[Er].$elm$=ts,Nr.insertBefore(ts,wt(It))))},ar=(Ot,It,Xt,ur,Er)=>{for(;It<=Xt;++It)(ur=Ot[It])&&(Er=ur.$elm$,zt(ur),te=!0,Er["s-ol"]?Er["s-ol"].remove():pr(Er,!0),Er.remove())},mr=(Ot,It)=>Ot.$tag$===It.$tag$&&("slot"===Ot.$tag$?Ot.$name$===It.$name$:Ot.$key$===It.$key$),wt=Ot=>Ot&&Ot["s-ol"]||Ot,or=Ot=>(Ot["s-ol"]?Ot["s-ol"]:Ot).parentNode,sr=(Ot,It)=>{const Xt=It.$elm$=Ot.$elm$,ur=Ot.$children$,Er=It.$children$,Mr=It.$tag$,Nr=It.$text$;let ts;null!==Nr?(ts=Xt["s-cr"])?ts.parentNode.textContent=Nr:Ot.$text$!==Nr&&(Xt.data=Nr):(oe="svg"===Mr||"foreignObject"!==Mr&&oe,"slot"===Mr||$t(Ot,It,oe),null!==ur&&null!==Er?((Ot,It,Xt,ur)=>{let hl,oa,Er=0,Mr=0,Nr=0,ts=0,es=It.length-1,hs=It[0],Ks=It[es],ri=ur.length-1,Ci=ur[0],Qn=ur[ri];for(;Er<=es&&Mr<=ri;)if(null==hs)hs=It[++Er];else if(null==Ks)Ks=It[--es];else if(null==Ci)Ci=ur[++Mr];else if(null==Qn)Qn=ur[--ri];else if(mr(hs,Ci))sr(hs,Ci),hs=It[++Er],Ci=ur[++Mr];else if(mr(Ks,Qn))sr(Ks,Qn),Ks=It[--es],Qn=ur[--ri];else if(mr(hs,Qn))("slot"===hs.$tag$||"slot"===Qn.$tag$)&&pr(hs.$elm$.parentNode,!1),sr(hs,Qn),Ot.insertBefore(hs.$elm$,Ks.$elm$.nextSibling),hs=It[++Er],Qn=ur[--ri];else if(mr(Ks,Ci))("slot"===hs.$tag$||"slot"===Qn.$tag$)&&pr(Ks.$elm$.parentNode,!1),sr(Ks,Ci),Ot.insertBefore(Ks.$elm$,hs.$elm$),Ks=It[--es],Ci=ur[++Mr];else{for(Nr=-1,ts=Er;ts<=es;++ts)if(It[ts]&&null!==It[ts].$key$&&It[ts].$key$===Ci.$key$){Nr=ts;break}Nr>=0?(oa=It[Nr],oa.$tag$!==Ci.$tag$?hl=Wt(It&&It[Mr],Xt,Nr,Ot):(sr(oa,Ci),It[Nr]=void 0,hl=oa.$elm$),Ci=ur[++Mr]):(hl=Wt(It&&It[Mr],Xt,Mr,Ot),Ci=ur[++Mr]),hl&&or(hs.$elm$).insertBefore(hl,wt(hs.$elm$))}Er>es?gr(Ot,null==ur[ri+1]?null:ur[ri+1].$elm$,Xt,ur,Mr,ri):Mr>ri&&ar(It,Er,es)})(Xt,ur,It,Er):null!==Er?(null!==Ot.$text$&&(Xt.textContent=""),gr(Xt,null,It,Er,0,Er.length-1)):null!==ur&&ar(ur,0,ur.length-1),oe&&"svg"===Mr&&(oe=!1))},rr=Ot=>{const It=Ot.childNodes;let Xt,ur,Er,Mr,Nr,ts;for(ur=0,Er=It.length;ur{let It,Xt,ur,Er,Mr,Nr,ts=0;const es=Ot.childNodes,hs=es.length;for(;ts=0;Nr--)Xt=ur[Nr],!Xt["s-cn"]&&!Xt["s-nr"]&&Xt["s-hn"]!==It["s-hn"]&&(Ft(Xt,Er)?(Mr=Et.find(Ks=>Ks.$nodeToRelocate$===Xt),te=!0,Xt["s-sn"]=Xt["s-sn"]||Er,Mr?Mr.$slotRefNode$=It:Et.push({$slotRefNode$:It,$nodeToRelocate$:Xt}),Xt["s-sr"]&&Et.map(Ks=>{Ft(Ks.$nodeToRelocate$,Xt["s-sn"])&&(Mr=Et.find(ri=>ri.$nodeToRelocate$===Xt),Mr&&!Ks.$slotRefNode$&&(Ks.$slotRefNode$=Mr.$slotRefNode$))})):Et.some(Ks=>Ks.$nodeToRelocate$===Xt)||Et.push({$nodeToRelocate$:Xt}));1===It.nodeType&&St(It)}},Ft=(Ot,It)=>1===Ot.nodeType?null===Ot.getAttribute("slot")&&""===It||Ot.getAttribute("slot")===It:Ot["s-sn"]===It||""===It,zt=Ot=>{Ot.$attrs$&&Ot.$attrs$.ref&&Ot.$attrs$.ref(null),Ot.$children$&&Ot.$children$.map(zt)},dr=(Ot,It)=>{const Xt=Ot.$hostElement$,ur=Ot.$cmpMeta$,Er=Ot.$vnode$||Ce(null,null),Mr=Fe(It)?It:We(null,null,It);if(W=Xt.tagName,ur.$attrsToReflect$&&(Mr.$attrs$=Mr.$attrs$||{},ur.$attrsToReflect$.map(([Nr,ts])=>Mr.$attrs$[ts]=Xt[Nr])),Mr.$tag$=null,Mr.$flags$|=4,Ot.$vnode$=Mr,Mr.$elm$=Er.$elm$=Xt.shadowRoot||Xt,Q=Xt["s-sc"],$=Xt["s-cr"],X=Jn&&0!=(1&ur.$flags$),te=!1,sr(Er,Mr),Ei.$flags$|=1,ae){St(Mr.$elm$);let Nr,ts,es,hs,Ks,ri,Ci=0;for(;Ci{Ot.$flags$|=16;const Xt=()=>Hr(Ot,It);return Na(Xt)},Hr=(Ot,It)=>{const Xt=Ot.$hostElement$,ur=()=>{},Er=Xt;let Mr;return It?(tr(Xt,"componentWillLoad"),Mr=At(Er,"componentWillLoad")):(tr(Xt,"componentWillUpdate"),Mr=At(Er,"componentWillUpdate")),tr(Xt,"componentWillRender"),Mr=Kt(Mr,()=>At(Er,"componentWillRender")),ur(),Kt(Mr,()=>Qr(Ot,Er,It))},Qr=function(){var Ot=(0,D.Z)(function*(It,Xt,ur){const Er=It.$hostElement$,Mr=()=>{};ur&&(Ot=>{const It=Ot.$cmpMeta$,Xt=Ot.$hostElement$,ur=It.$flags$,Er=()=>{},Mr=ot(Jn&&Xt.shadowRoot?Xt.shadowRoot:Xt.getRootNode(),It,Ot.$modeName$);10&ur&&(Xt["s-sc"]=Mr,Xt.classList.add(Mr+"-h"),2&ur&&Xt.classList.add(Mr+"-s")),Er()})(It);const ts=()=>{};Jr(It,Xt,Er),ts(),Mr(),Cs(It)});return function(Xt,ur,Er){return Ot.apply(this,arguments)}}(),Jr=(Ot,It,Xt)=>{try{le=It,It=It.render&&It.render(),Ot.$flags$&=-17,Ot.$flags$|=2,dr(Ot,It)}catch(ts){Ls(ts,Ot.$hostElement$)}return le=null,null},Cs=Ot=>{const Xt=Ot.$hostElement$,ur=()=>{},Er=Xt;At(Er,"componentDidRender"),tr(Xt,"componentDidRender"),64&Ot.$flags$?(At(Er,"componentDidUpdate"),tr(Xt,"componentDidUpdate"),ur()):(Ot.$flags$|=64,At(Er,"componentDidLoad"),tr(Xt,"componentDidLoad"),ur())},Dt=Ot=>{{const It=Vt(Ot),Xt=It.$hostElement$.isConnected;return Xt&&2==(18&It.$flags$)&&Lr(It,!1),Xt}},At=(Ot,It,Xt)=>{if(Ot&&Ot[It])try{return Ot[It](Xt)}catch(ur){Ls(ur)}},Kt=(Ot,It)=>Ot&&Ot.then?Ot.then(It):It(),tr=(Ot,It)=>{},qt=(Ot,It,Xt)=>{if(It.$members$){Ot.watchers&&(It.$watchers$=Ot.watchers);const ur=Object.entries(It.$members$),Er=Ot.prototype;ur.map(([Mr,[Nr]])=>{(31&Nr||32&Nr)&&Object.defineProperty(Er,Mr,{get(){return((Ot,It)=>Vt(this).$instanceValues$.get(It))(0,Mr)},set(ts){((Ot,It,Xt,ur)=>{const Er=Vt(Ot),Mr=Ot,Nr=Er.$instanceValues$.get(It),ts=Er.$flags$,es=Mr;Xt=((Ot,It)=>null==Ot||Ke(Ot)?Ot:4&It?"false"!==Ot&&(""===Ot||!!Ot):2&It?parseFloat(Ot):1&It?String(Ot):Ot)(Xt,ur.$members$[It][0]);const hs=Number.isNaN(Nr)&&Number.isNaN(Xt);if(Xt!==Nr&&!hs&&(Er.$instanceValues$.set(It,Xt),1)){if(ur.$watchers$&&128&ts){const ri=ur.$watchers$[It];ri&&ri.map(Ci=>{try{es[Ci](Xt,Nr,It)}catch(Qn){Ls(Qn,Mr)}})}if(2==(18&ts)){if(es.componentShouldUpdate&&!1===es.componentShouldUpdate(Xt,Nr,It))return;Lr(Er,!1)}}})(this,Mr,ts,It)},configurable:!0,enumerable:!0})});{const Mr=new Map;Er.attributeChangedCallback=function(Nr,ts,es){Ei.jmp(()=>{const hs=Mr.get(Nr);if(this.hasOwnProperty(hs))es=this[hs],delete this[hs];else if(Er.hasOwnProperty(hs)&&"number"==typeof this[hs]&&this[hs]==es)return;this[hs]=(null!==es||"boolean"!=typeof this[hs])&&es})},Ot.observedAttributes=ur.filter(([Nr,ts])=>15&ts[0]).map(([Nr,ts])=>{const es=ts[1]||Nr;return Mr.set(es,Nr),512&ts[0]&&It.$attrsToReflect$.push([Nr,es]),es})}}return Ot},Ir=function(){var Ot=(0,D.Z)(function*(It,Xt,ur,Er,Mr){if(0==(32&Xt.$flags$)&&(Mr=It.constructor,Xt.$flags$|=32,customElements.whenDefined(ur.$tagName$).then(()=>Xt.$flags$|=128),Mr.style)){let es=Mr.style;"string"!=typeof es&&(es=es[Xt.$modeName$=(Ot=>ja.map(It=>It(Ot)).find(It=>!!It))(It)]);const hs=_t(ur,Xt.$modeName$);if(!Po.has(hs)){const Ks=()=>{};((Ot,It,Xt)=>{let ur=Po.get(Ot);Lo&&Xt?(ur=ur||new CSSStyleSheet,"string"==typeof ur?ur=It:ur.replaceSync(It)):ur=It,Po.set(Ot,ur)})(hs,es,!!(1&ur.$flags$)),Ks()}}const ts=()=>Lr(Xt,!0);ts()});return function(Xt,ur,Er,Mr,Nr){return Ot.apply(this,arguments)}}(),Sr=Ot=>{},at=Ot=>{const It=Ot["s-cr"]=_n.createComment("");It["s-cn"]=!0,Ot.insertBefore(It,Ot.firstChild)},Gt=(Ot,It)=>{const Xt={$flags$:It[0],$tagName$:It[1]};Xt.$members$=It[2],Xt.$listeners$=It[3],Xt.$watchers$=Ot.$watchers$,Xt.$attrsToReflect$=[],!Jn&&1&Xt.$flags$&&(Xt.$flags$|=8);const ur=Ot.prototype.connectedCallback,Er=Ot.prototype.disconnectedCallback;return Object.assign(Ot.prototype,{__registerHost(){ys(this,Xt)},connectedCallback(){(Ot=>{if(0==(1&Ei.$flags$)){const It=Vt(Ot),Xt=It.$cmpMeta$,ur=()=>{};if(1&It.$flags$)Bl(Ot,It,Xt.$listeners$,!1),Sr(It.$lazyInstance$);else{let Er;It.$flags$|=1,!Er&&12&Xt.$flags$&&at(Ot),Xt.$members$&&Object.entries(Xt.$members$).map(([Mr,[Nr]])=>{if(31&Nr&&Ot.hasOwnProperty(Mr)){const ts=Ot[Mr];delete Ot[Mr],Ot[Mr]=ts}}),Ir(Ot,It,Xt)}ur()}})(this),ur&&ur.call(this)},disconnectedCallback(){(Ot=>{if(0==(1&Ei.$flags$)){const It=Vt(Ot);It.$rmListeners$&&(It.$rmListeners$.map(ur=>ur()),It.$rmListeners$=void 0)}})(this),Er&&Er.call(this)},__attachShadow(){Jn?this.attachShadow({mode:"open",delegatesFocus:!!(16&Xt.$flags$)}):this.shadowRoot=this}}),Ot.is=Xt.$tagName$,qt(Ot,Xt)},pn=(Ot,It)=>It,Bl=(Ot,It,Xt,ur)=>{Xt&&Xt.map(([Er,Mr,Nr])=>{const ts=Yo(Ot,Er),es=yo(It,Nr),hs=qi(Er);Ei.ael(ts,Mr,es,hs),(It.$rmListeners$=It.$rmListeners$||[]).push(()=>Ei.rel(ts,Mr,es,hs))})},yo=(Ot,It)=>Xt=>{try{Ot.$hostElement$[It](Xt)}catch(ur){Ls(ur)}},Yo=(Ot,It)=>4&It?_n:8&It?An:16&It?_n.body:Ot,qi=Ot=>jl?{passive:0!=(1&Ot),capture:0!=(2&Ot)}:0!=(2&Ot),Qt=new WeakMap,Vt=Ot=>Qt.get(Ot),ys=(Ot,It)=>{const Xt={$flags$:0,$hostElement$:Ot,$cmpMeta$:It,$instanceValues$:new Map};return Bl(Ot,Xt,It.$listeners$,!1),Qt.set(Ot,Xt)},js=(Ot,It)=>It in Ot,Ls=(Ot,It)=>(0,console.error)(Ot,It),Po=new Map,ja=[],An=typeof window<"u"?window:{},_n=An.document||{head:{}},Ma=An.HTMLElement||class{},Ei={$flags$:0,$resourcesUrl$:"",jmp:Ot=>Ot(),raf:Ot=>requestAnimationFrame(Ot),ael:(Ot,It,Xt,ur)=>Ot.addEventListener(It,Xt,ur),rel:(Ot,It,Xt,ur)=>Ot.removeEventListener(It,Xt,ur),ce:(Ot,It)=>new CustomEvent(Ot,It)},Jn=!0,jl=(()=>{let Ot=!1;try{_n.addEventListener("e",null,Object.defineProperty({},"passive",{get(){Ot=!0}}))}catch{}return Ot})(),Lo=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Fa=[],Pa=[],ns=(Ot,It)=>Xt=>{Ot.push(Xt),se||(se=!0,It&&4&Ei.$flags$?cn(Bn):Ei.raf(Bn))},vs=Ot=>{for(let It=0;It{vs(Fa),vs(Pa),(se=Fa.length>0)&&Ei.raf(Bn)},cn=Ot=>Promise.resolve(void 0).then(Ot),Na=ns(Pa,!0)},41993:nt=>{function Ae(v){return Promise.resolve().then(()=>{var D=new Error("Cannot find module '"+v+"'");throw D.code="MODULE_NOT_FOUND",D})}Ae.keys=()=>[],Ae.resolve=Ae,Ae.id=41993,nt.exports=Ae},73386:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{default:()=>me});var ce,D=v(15861),R=v(17626),G=v(46160),Z=v(89726),Q=v(55538),$=v(86810),W=v(58817),B=v(47996),H=v(47877),X=v(63290),te=v(62208),ae=v(10699),oe=v(21726),le=v(77712),se=(v(90912),v(76898)),re=v(99433),j=v(65234),Y=v(84687),ee=v(55463),ie=v(33954),J=v(32584);let ue=0;const pe="esri.Basemap";let he=ce=class extends((0,$.eC)(B.Z)){constructor(ge){super(ge),this.id=null,this.portalItem=null,this.spatialReference=null,this.thumbnailUrl=null,this.title="Basemap",this.id=Date.now().toString(16)+"-basemap-"+ue++,this.baseLayers=new G.Z,this.referenceLayers=new G.Z;const _e=De=>{De.parent&&De.parent!==this&&"remove"in De.parent&&De.parent.remove(De),De.parent=this,"elevation"===De.type&&X.Z.getLogger(this.declaredClass).error(`Layer '${De.title}, id:${De.id}' of type '${De.type}' is not supported as a basemap layer and will therefore be ignored.`)},Ee=De=>{De.parent=null};this.baseLayers.on("after-add",De=>_e(De.item)),this.referenceLayers.on("after-add",De=>_e(De.item)),this.baseLayers.on("after-remove",De=>Ee(De.item)),this.referenceLayers.on("after-remove",De=>Ee(De.item))}initialize(){this.when().catch(ge=>{X.Z.getLogger(this.declaredClass).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,ge)}),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const ge=this.baseLayers.removeAll();for(const Ee of ge)Ee.destroy();const _e=this.referenceLayers.removeAll();for(const Ee of _e)Ee.destroy();this.baseLayers.destroy(),this.referenceLayers.destroy(),this.portalItem?.destroy(),this.portalItem=null}normalizeCtorArgs(ge){return ge&&"resourceInfo"in ge&&(this._set("resourceInfo",ge.resourceInfo),delete(ge={...ge}).resourceInfo),ge}set baseLayers(ge){this._set("baseLayers",(0,Z.Z)(ge,this._get("baseLayers")))}_writeBaseLayers(ge,_e,Ee){const De=[];ge&&(Ee={...Ee,layerContainerType:"basemap"},this.baseLayers.forEach(be=>{const Se=(0,J.Nw)(be,Ee.webmap?Ee.webmap.getLayerJSONFromResourceInfo(be):null,Ee);(0,te.pC)(Se)&&De.push(Se)}),this.referenceLayers.forEach(be=>{const Se=(0,J.Nw)(be,Ee.webmap?Ee.webmap.getLayerJSONFromResourceInfo(be):null,Ee);(0,te.pC)(Se)&&(Se.isReference=!0,De.push(Se))})),_e.baseMapLayers=De}set referenceLayers(ge){this._set("referenceLayers",(0,Z.Z)(ge,this._get("referenceLayers")))}writeTitle(ge,_e){_e.title=ge||"Basemap"}load(ge){return this.addResolvingPromise(this._loadFromSource(ge)),Promise.resolve(this)}loadAll(){return(0,H.G)(this,ge=>{ge(this.baseLayers,this.referenceLayers)})}clone(){const ge={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.slice(),referenceLayers:this.referenceLayers.slice()};return this.loaded&&(ge.loadStatus="loaded"),new ce({resourceInfo:this.resourceInfo}).set(ge)}read(ge,_e){this.resourceInfo||this._set("resourceInfo",{data:ge,context:_e}),super.read(ge,_e)}write(ge,_e){return ge=ge||{},_e&&_e.origin||(_e={origin:"web-map",..._e}),super.write(ge,_e),!this.loaded&&this.resourceInfo&&this.resourceInfo.data.baseMapLayers&&(ge.baseMapLayers=this.resourceInfo.data.baseMapLayers.map(Ee=>{const De=(0,W.d9)(Ee);return De.url&&(0,oe.oC)(De.url)&&(De.url=`https:${De.url}`),De.templateUrl&&(0,oe.oC)(De.templateUrl)&&(De.templateUrl=`https:${De.templateUrl}`),De})),ge}_loadFromSource(ge){var _e=this;return(0,D.Z)(function*(){const{resourceInfo:Ee,portalItem:De}=_e;(0,ae.k_)(ge);const be=[];Ee?(be.push(_e._loadLayersFromJSON(Ee.data,Ee.context?Ee.context.url:null,ge)),Ee.data.id&&!Ee.data.title&&be.push((0,ie.g)(Ee.data.id).then(ve=>{ve&&_e.read({title:ve},Ee.context)}))):De&&be.push(_e._loadFromItem(De,ge)),yield Promise.all(be)})()}_loadLayersFromJSON(ge,_e,Ee){var De=this;return(0,D.Z)(function*(){const be=De.resourceInfo&&De.resourceInfo.context,Se=De.portalItem&&De.portalItem.portal||be&&be.portal||null,ye=be&&"web-scene"===be.origin?"web-scene":"web-map",{populateOperationalLayers:ve}=yield Promise.all([v.e(7534),v.e(1074)]).then(v.bind(v,71074)),xe=[];if((0,ae.k_)(Ee),ge.baseMapLayers&&Array.isArray(ge.baseMapLayers)){const ze={context:{origin:ye,url:_e,portal:Se,layerContainerType:"basemap"},defaultLayerType:"DefaultTileLayer"},Ke=ve(De.baseLayers,ge.baseMapLayers.filter(Ce=>!Ce.isReference),ze);xe.push(Ke);const We=ve(De.referenceLayers,ge.baseMapLayers.filter(Ce=>Ce.isReference),ze);xe.push(We)}yield(0,ae.as)(xe)})()}_loadFromItem(ge,_e){var Ee=this;return(0,D.Z)(function*(){const De=yield ge.load(_e),be=yield De.fetchData("json",_e),Se=(0,oe.mN)(ge.itemUrl??"");return Ee._set("resourceInfo",{data:be.baseMap??{},context:{origin:"web-map",portal:ge.portal||Y.Z.getDefault(),url:Se}}),Ee.read(Ee.resourceInfo.data,Ee.resourceInfo.context),Ee.read({spatialReference:be.spatialReference},Ee.resourceInfo.context),Ee.read({title:ge.title,thumbnailUrl:ge.thumbnailUrl},{origin:"portal-item",portal:ge.portal||Y.Z.getDefault(),url:Se}),Ee._loadLayersFromJSON(Ee.resourceInfo.data,Se,_e)})()}static fromId(ge){const _e=ie.s[ge];if(_e){if(_e.deprecated){let Ee=null;"dark-gray"===ge?Ee="dark-gray-vector":"gray"===ge?Ee="gray-vector":"streets"===ge?Ee="streets-vector":"topo"===ge&&(Ee="topo-vector"),(0,Q.x9)(X.Z.getLogger(pe),`The ${ge} basemap has entered mature support and is no longer being updated.`,{replacement:Ee,see:"https://arcg.is/1iq8aD",warnOnce:!0})}return ce.fromJSON(_e)}return null}};(0,R._)([(0,le.Cb)({json:{write:{ignoreOrigin:!0,target:"baseMapLayers",writer(ge,_e,Ee,De){this._writeBaseLayers(ge,_e,De)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:G.Z}},writer(ge,_e,Ee,De){this._writeBaseLayers(ge,_e,De)}}}}}})],he.prototype,"baseLayers",null),(0,R._)([(0,le.Cb)({type:String,json:{origins:{"web-scene":{write:!0}}}})],he.prototype,"id",void 0),(0,R._)([(0,le.Cb)({type:ee.default})],he.prototype,"portalItem",void 0),(0,R._)([(0,le.Cb)()],he.prototype,"referenceLayers",null),(0,R._)([(0,le.Cb)({readOnly:!0})],he.prototype,"resourceInfo",void 0),(0,R._)([(0,le.Cb)({type:j.Z})],he.prototype,"spatialReference",void 0),(0,R._)([(0,le.Cb)()],he.prototype,"thumbnailUrl",void 0),(0,R._)([(0,le.Cb)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],he.prototype,"title",void 0),(0,R._)([(0,re.c)("title")],he.prototype,"writeTitle",null),he=ce=(0,R._)([(0,se.j)(pe)],he);const me=he},91558:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var H,X,D=v(20414),R=v(21286),G=v(62208),Z=v(90912);function Q(H){return(0,R.uZ)((0,Z.vU)(H),0,255)}function $(H,X,te){return H=Number(H),isNaN(H)?te:Hte?te:H}class W{constructor(X){this.r=255,this.g=255,this.b=255,this.a=1,X&&this.setColor(X)}static blendColors(X,te,ae,oe=new W){return oe.r=Math.round(X.r+(te.r-X.r)*ae),oe.g=Math.round(X.g+(te.g-X.g)*ae),oe.b=Math.round(X.b+(te.b-X.b)*ae),oe.a=X.a+(te.a-X.a)*ae,oe._sanitize()}static fromRgb(X,te){const ae=X.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(ae){const oe=ae[2].split(/\s*,\s*/),le=ae[1];if("rgb"===le&&3===oe.length||"rgba"===le&&4===oe.length){const de=oe[0];if("%"===de.charAt(de.length-1)){const se=oe.map(re=>2.56*parseFloat(re));return 4===oe.length&&(se[3]=parseFloat(oe[3])),W.fromArray(se,te)}return W.fromArray(oe.map(se=>parseFloat(se)),te)}if("hsl"===le&&3===oe.length||"hsla"===le&&4===oe.length)return W.fromArray((0,D.B7)(parseFloat(oe[0]),parseFloat(oe[1])/100,parseFloat(oe[2])/100,parseFloat(oe[3])),te)}return null}static fromHex(X,te=new W){if(4!==X.length&&7!==X.length||"#"!==X[0])return null;const ae=4===X.length?4:8,oe=(1<{const se=le&oe;le>>=ae,te[de]=4===ae?17*se:se}),te.a=1,te)}static fromArray(X,te=new W){return te._set(Number(X[0]),Number(X[1]),Number(X[2]),Number(X[3])),isNaN(te.a)&&(te.a=1),te._sanitize()}static fromString(X,te){const ae=(0,D.St)(X)?(0,D.h$)(X):null;return ae&&W.fromArray(ae,te)||W.fromRgb(X,te)||W.fromHex(X,te)}static fromJSON(X){return X&&new W([X[0],X[1],X[2],X[3]/255])}static toUnitRGB(X){return(0,G.pC)(X)?[X.r/255,X.g/255,X.b/255]:null}static toUnitRGBA(X){return(0,G.pC)(X)?[X.r/255,X.g/255,X.b/255,null!=X.a?X.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(X){return"string"==typeof X?W.fromString(X,this):Array.isArray(X)?W.fromArray(X,this):(this._set(X.r??0,X.g??0,X.b??0,X.a??1),X instanceof W||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const X=this.r.toString(16),te=this.g.toString(16),ae=this.b.toString(16);return`#${X.length<2?"0"+X:X}${te.length<2?"0"+te:te}${ae.length<2?"0"+ae:ae}`}toCss(X=!1){const te=this.r+", "+this.g+", "+this.b;return X?`rgba(${te}, ${this.a})`:`rgb(${te})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(X=W.AlphaMode.ALWAYS){const te=Q(this.r),ae=Q(this.g),oe=Q(this.b);return X===W.AlphaMode.ALWAYS||1!==this.a?[te,ae,oe,Q(255*this.a)]:[te,ae,oe]}clone(){return new W(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(X){return(0,G.pC)(X)&&X.r===this.r&&X.g===this.g&&X.b===this.b&&X.a===this.a}_sanitize(){return this.r=Math.round($(this.r,0,255)),this.g=Math.round($(this.g,0,255)),this.b=Math.round($(this.b,0,255)),this.a=$(this.a,0,1),this}_set(X,te,ae,oe){this.r=X,this.g=te,this.b=ae,this.a=oe}}W.prototype.declaredClass="esri.Color",(X=(H=W||(W={})).AlphaMode||(H.AlphaMode={}))[X.ALWAYS=0]="ALWAYS",X[X.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const B=W},88879:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>re});var D=v(17626),R=v(29132),G=v(73281),Z=v(20383),Q=v(79608),$=v(86810),W=v(62208),B=v(86236),H=v(77712),ae=(v(85931),v(90912),v(76898)),oe=v(91179);function de(j){if(!(0,W.pC)(j))return null;const Y={};for(const ee in j){const ie=j[ee];ie&&(Y[ee]=ie.toJSON())}return 0!==Object.keys(Y).length?Y:null}let se=class extends((0,Q.J)($.wq)){constructor(...j){super(...j),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,B.D)(),configurable:!0})}normalizeCtorArgs(j,Y,ee,ie){return j&&!j.declaredClass?j:{geometry:j,symbol:Y,attributes:ee,popupTemplate:ie}}set aggregateGeometries(j){const Y=this._get("aggregateGeometries");JSON.stringify(Y)!==JSON.stringify(j)&&this._set("aggregateGeometries",j)}set attributes(j){const Y=this._get("attributes");Y!==j&&(this._set("attributes",j),this._notifyLayer("attributes",Y,j))}set geometry(j){const Y=this._get("geometry");Y!==j&&(this._set("geometry",j),this._notifyLayer("geometry",Y,j))}set symbol(j){const Y=this._get("symbol");Y!==j&&(this._set("symbol",j),this._notifyLayer("symbol",Y,j))}set visible(j){const Y=this._get("visible");Y!==j&&(this._set("visible",j),this._notifyLayer("visible",Y,j))}getEffectivePopupTemplate(j=!1){if(this.popupTemplate)return this.popupTemplate;for(const Y of[this.sourceLayer,this.layer])if(Y){if("popupTemplate"in Y&&Y.popupTemplate)return Y.popupTemplate;if(j&&"defaultPopupTemplate"in Y&&(0,W.pC)(Y.defaultPopupTemplate))return Y.defaultPopupTemplate}return null}getAttribute(j){return this.attributes?.[j]}setAttribute(j,Y){if(this.attributes){const ee=this.getAttribute(j);this.attributes[j]=Y,this._notifyLayer("attributes",ee,Y,j)}else this.attributes={[j]:Y},this._notifyLayer("attributes",void 0,Y,j)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:de(this.aggregateGeometries),geometry:(0,W.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,W.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,W.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(j,Y,ee,ie){if(!this.layer||!("graphicChanged"in this.layer))return;const J={graphic:this,property:j,oldValue:Y,newValue:ee};"attributes"===j&&(J.attributeName=ie),this.layer.graphicChanged(J)}};(0,D._)([(0,H.Cb)({value:null,json:{read:function le(j){if(!j)return null;const Y={};for(const ee in j){const ie=(0,oe.im)(j[ee]);ie&&(Y[ee]=ie)}return 0!==Object.keys(Y).length?Y:null}}})],se.prototype,"aggregateGeometries",null),(0,D._)([(0,H.Cb)({value:null})],se.prototype,"attributes",null),(0,D._)([(0,H.Cb)({value:null,types:R.qM,json:{read:oe.im}})],se.prototype,"geometry",null),(0,D._)([(0,H.Cb)({type:Boolean})],se.prototype,"isAggregate",void 0),(0,D._)([(0,H.Cb)({clonable:"reference"})],se.prototype,"layer",void 0),(0,D._)([(0,H.Cb)({type:G.Z})],se.prototype,"popupTemplate",void 0),(0,D._)([(0,H.Cb)({clonable:"reference"})],se.prototype,"sourceLayer",void 0),(0,D._)([(0,H.Cb)({value:null,types:Z.LB})],se.prototype,"symbol",null),(0,D._)([(0,H.Cb)({type:Boolean,value:!0})],se.prototype,"visible",null),se=(0,D._)([(0,ae.j)("esri.Graphic")],se),(se||(se={})).generateUID=B.D;const re=se},73281:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Pe});var D=v(15861),R=v(17626),G=v(79608),Z=v(46160),Q=v(86810),$=v(58817),W=v(63290),B=v(10699),H=v(77712),X=v(66656),te=v(68653),ae=v(76898),oe=v(99433),le=v(90912),de=v(36630),se=v(55664),re=v(55013),j=v(16615),Y=v(82561),ee=v(75484),ie=v(64531),J=v(6785),ce=v(501);const pe={base:null,key:"type",typeMap:{attachment:se.Z,media:ie.Z,text:ce.Z,expression:Y.Z,field:ee.Z,relationship:J.Z}};var _e,he=v(38439),me=v(25621);v(85931);let Ee=_e=class extends Q.wq{constructor(Le){super(Le),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new _e({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,R._)([(0,H.Cb)({type:Boolean,json:{write:!0}})],Ee.prototype,"returnTopmostRaster",void 0),(0,R._)([(0,H.Cb)({type:Boolean,json:{write:!0}})],Ee.prototype,"showNoDataRecords",void 0),Ee=_e=(0,R._)([(0,ae.j)("esri.popup.LayerOptions")],Ee);const De=Ee;var Se,be=v(51686);let ye=Se=class extends Q.wq{constructor(Le){super(Le),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new Se({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,$.d9)(this.orderByFields):null})}};(0,R._)([(0,H.Cb)({type:Boolean,json:{write:!0}})],ye.prototype,"showRelatedRecords",void 0),(0,R._)([(0,H.Cb)({type:[be.Z],json:{write:!0}})],ye.prototype,"orderByFields",void 0),ye=Se=(0,R._)([(0,ae.j)("esri.popup.RelatedRecordsInfo")],ye);const ve=ye;var xe=v(65560),ze=v(59397),Ke=v(48753),We=v(10671);const Be=W.Z.getLogger("esri.PopupTemplate"),Fe="relationships/",je="expression/",Re=Z.Z.ofType({key:"type",defaultKeyValue:"button",base:ze.Z,typeMap:{button:Ke.Z,toggle:We.Z}}),He={base:re.Z,key:"type",typeMap:{media:ie.Z,custom:j.Z,text:ce.Z,attachments:se.Z,fields:ee.Z,expression:Y.Z,relationship:J.Z}},Ie=["attachments","fields","media","text","expression","relationship"];let Ge=class extends((0,G.J)(Q.wq)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(Le){return Array.isArray(Le)?Le.map(Me=>(0,le.N7)(He,Me)):"string"==typeof Le||"function"==typeof Le||Le instanceof HTMLElement||(0,B.y8)(Le)?Le:(Be.error("content error","unsupported content value",{value:Le}),null)}readContent(Le,Me){const{popupElements:Ne}=Me;return Array.isArray(Ne)&&Ne.length>0?this._readPopupInfoElements(Me.description,Me.mediaInfos,Ne):this._readPopupInfo(Me)}writeContent(Le,Me,Ne,Xe){"string"!=typeof Le?Array.isArray(Le)&&(Me.popupElements=Le.filter(Ye=>Ie.includes(Ye.type)).map(Ye=>Ye&&Ye.toJSON(Xe)),Me.popupElements.forEach(Ye=>{"attachments"===Ye.type?this._writeAttachmentContent(Me):"media"===Ye.type?this._writeMediaContent(Ye,Me):"text"===Ye.type?this._writeTextContent(Ye,Me):"relationship"===Ye.type&&this._writeRelationshipContent(Ye,Me)})):Me.description=Le}writeFieldInfos(Le,Me,Ne,Xe){const{content:Ye}=this,Je=Array.isArray(Ye)?Ye:null;if(Le){const rt=Je?Je.filter(et=>"fields"===et.type):[],tt=rt.length&&rt.every(et=>et.fieldInfos?.length);Me.fieldInfos=Le.filter(Boolean).map(et=>{const qe=et.toJSON(Xe);return tt&&(qe.visible=!1),qe})}if(Je)for(const rt of Je)"fields"===rt.type&&this._writeFieldsContent(rt,Me)}writeLayerOptions(Le,Me,Ne,Xe){Me[Ne]=!Le||null===Le.showNoDataRecords&&null===Le.returnTopmostRaster?null:Le.toJSON(Xe)}writeTitle(Le,Me){Me.title=Le||""}collectRequiredFields(Le,Me){var Ne=this;return(0,D.Z)(function*(){const Xe=Ne.expressionInfos||[];yield Ne._collectExpressionInfoFields(Le,Me,[...Xe,...Ne._getContentExpressionInfos(Ne.content,Xe)]),(0,de.gd)(Le,Me,[...Ne.outFields||[],...Ne._getActionsFields(Ne.actions),...Ne._getTitleFields(Ne.title),...Ne._getContentFields(Ne.content)])})()}getRequiredFields(Le){var Me=this;return(0,D.Z)(function*(){const Ne=new Set;return yield Me.collectRequiredFields(Ne,Le),[...Ne].sort()})()}_writeFieldsContent(Le,Me){if(!Array.isArray(Le.fieldInfos)||!Le.fieldInfos.length)return;const Ne=(0,$.d9)(Le.fieldInfos);Array.isArray(Me.fieldInfos)?Ne.forEach(Xe=>{const Ye=Me.fieldInfos.find(Je=>Je.fieldName.toLowerCase()===Xe.fieldName.toLowerCase());Ye?Ye.visible=!0:Me.fieldInfos.push(Xe)}):Me.fieldInfos=Ne}_writeAttachmentContent(Le){Le.showAttachments||(Le.showAttachments=!0)}_writeRelationshipContent(Le,Me){const Ne=Le.orderByFields?.map(Ye=>this._toFieldOrderJSON(Ye,Le.relationshipId))||[],Xe=[...Me.relatedRecordsInfo?.orderByFields||[],...Ne];Me.relatedRecordsInfo={showRelatedRecords:!0,...Xe?.length&&{orderByFields:Xe}}}_writeTextContent(Le,Me){!Me.description&&Le.text&&(Me.description=Le.text)}_writeMediaContent(Le,Me){if(!Array.isArray(Le.mediaInfos)||!Le.mediaInfos.length)return;const Ne=(0,$.d9)(Le.mediaInfos);Me.mediaInfos=Array.isArray(Me.mediaInfos)?[...Me.mediaInfos,...Ne]:Ne}_readPopupInfoElements(Le,Me,Ne){const Xe={description:!1,mediaInfos:!1};return Ne.map(Ye=>"media"===Ye.type?(Ye.mediaInfos||!Me||Xe.mediaInfos||(Ye.mediaInfos=Me,Xe.mediaInfos=!0),ie.Z.fromJSON(Ye)):"text"===Ye.type?(Ye.text||!Le||Xe.description||(Ye.text=Le,Xe.description=!0),ce.Z.fromJSON(Ye)):"attachments"===Ye.type?se.Z.fromJSON(Ye):"fields"===Ye.type?ee.Z.fromJSON(Ye):"expression"===Ye.type?Y.Z.fromJSON(Ye):"relationship"===Ye.type?J.Z.fromJSON(Ye):void 0).filter(Boolean)}_toRelationshipContent(Le){const{field:Me,order:Ne}=Le;if(!Me?.startsWith(Fe))return null;const Xe=Me.replace(Fe,"").split("/");if(2!==Xe.length)return null;const Ye=parseInt(Xe[0],10),Je=Xe[1];return"number"==typeof Ye&&Je?J.Z.fromJSON({relationshipId:Ye,orderByFields:[{field:Je,order:Ne}]}):null}_toFieldOrderJSON(Le,Me){const{order:Ne,field:Xe}=Le;return{field:`${Fe}${Me}/${Xe}`,order:Ne}}_readPopupInfo({description:Le,mediaInfos:Me,showAttachments:Ne,relatedRecordsInfo:Xe={showRelatedRecords:!1}}){const Ye=[];Ye.push(Le?new ce.Z({text:Le}):new ee.Z),Array.isArray(Me)&&Me.length&&Ye.push(ie.Z.fromJSON({mediaInfos:Me})),Ne&&Ye.push(se.Z.fromJSON({displayType:"auto"}));const{showRelatedRecords:Je,orderByFields:rt}=Xe;return Je&&rt?.length&&rt.forEach(tt=>{const et=this._toRelationshipContent(tt);et&&Ye.push(et)}),Ye.length?Ye:Le}_getContentElementFields(Le){const Me=Le?.type;if("attachments"===Me)return[...this._extractFieldNames(Le.title),...this._extractFieldNames(Le.description)];if("custom"===Me)return Le.outFields||[];if("fields"===Me)return[...this._extractFieldNames(Le.title),...this._extractFieldNames(Le.description),...this._getFieldInfoFields(Le.fieldInfos??this.fieldInfos)];if("media"===Me){const Ne=Le.mediaInfos||[];return[...this._extractFieldNames(Le.title),...this._extractFieldNames(Le.description),...Ne.reduce((Xe,Ye)=>[...Xe,...this._getMediaInfoFields(Ye)],[])]}return"text"===Me?this._extractFieldNames(Le.text):[]}_getMediaInfoFields(Le){const{caption:Me,title:Ne,value:Xe}=Le,Ye=Xe||{},{fields:Je,normalizeField:rt,tooltipField:tt,sourceURL:et,linkURL:qe}=Ye,ot=[...this._extractFieldNames(Ne),...this._extractFieldNames(Me),...this._extractFieldNames(et),...this._extractFieldNames(qe),...Je??[]];return rt&&ot.push(rt),tt&&ot.push(tt),ot}_getContentExpressionInfos(Le,Me){return Array.isArray(Le)?Le.reduce((Ne,Xe)=>[...Ne,..."expression"===Xe.type&&Xe.expressionInfo?[Xe.expressionInfo]:[]],Me):[]}_getContentFields(Le){return"string"==typeof Le?this._extractFieldNames(Le):Array.isArray(Le)?Le.reduce((Me,Ne)=>[...Me,...this._getContentElementFields(Ne)],[]):[]}_collectExpressionInfoFields(Le,Me,Ne){return(0,D.Z)(function*(){Ne&&(yield Promise.all(Ne.map(Xe=>(0,de.io)(Le,Me,Xe.expression))))})()}_getFieldInfoFields(Le){return Le?Le.filter(Me=>void 0===Me.visible||!!Me.visible).map(Me=>Me.fieldName).filter(Me=>!Me.startsWith(Fe)&&!Me.startsWith(je)):[]}_getActionsFields(Le){return Le?Le.toArray().reduce((Me,Ne)=>[...Me,...this._getActionFields(Ne)],[]):[]}_getActionFields(Le){const{className:Me,title:Ne,type:Xe}=Le,Ye="button"===Xe||"toggle"===Xe?Le.image:"";return[...this._extractFieldNames(Ne),...this._extractFieldNames(Me),...this._extractFieldNames(Ye)]}_getTitleFields(Le){return"string"==typeof Le?this._extractFieldNames(Le):[]}_extractFieldNames(Le){if(!Le||"string"!=typeof Le)return[];const Ne=Le.match(/{[^}]*}/g);if(!Ne)return[];const Xe=/\{(\w+):.+\}/,Ye=Ne.filter(Je=>!(0===Je.indexOf(`{${Fe}`)||0===Je.indexOf(`{${je}`))).map(Je=>Je.replace(Xe,"{$1}"));return Ye?Ye.map(Je=>Je.slice(1,-1)):[]}};(0,R._)([(0,H.Cb)({type:Re})],Ge.prototype,"actions",void 0),(0,R._)([(0,H.Cb)()],Ge.prototype,"content",void 0),(0,R._)([(0,X.p)("content")],Ge.prototype,"castContent",null),(0,R._)([(0,te.r)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Ge.prototype,"readContent",null),(0,R._)([(0,oe.c)("content",{popupElements:{type:Z.Z.ofType(pe)},showAttachments:{type:Boolean},mediaInfos:{type:Z.Z.ofType(xe.V)},description:{type:String},relatedRecordsInfo:{type:ve}})],Ge.prototype,"writeContent",null),(0,R._)([(0,H.Cb)({type:[he.Z],json:{write:!0}})],Ge.prototype,"expressionInfos",void 0),(0,R._)([(0,H.Cb)({type:[me.Z]})],Ge.prototype,"fieldInfos",void 0),(0,R._)([(0,oe.c)("fieldInfos")],Ge.prototype,"writeFieldInfos",null),(0,R._)([(0,H.Cb)({type:De})],Ge.prototype,"layerOptions",void 0),(0,R._)([(0,oe.c)("layerOptions")],Ge.prototype,"writeLayerOptions",null),(0,R._)([(0,H.Cb)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Ge.prototype,"lastEditInfoEnabled",void 0),(0,R._)([(0,H.Cb)()],Ge.prototype,"outFields",void 0),(0,R._)([(0,H.Cb)()],Ge.prototype,"overwriteActions",void 0),(0,R._)([(0,H.Cb)()],Ge.prototype,"returnGeometry",void 0),(0,R._)([(0,H.Cb)({json:{type:String}})],Ge.prototype,"title",void 0),(0,R._)([(0,oe.c)("title")],Ge.prototype,"writeTitle",null),Ge=(0,R._)([(0,ae.j)("esri.PopupTemplate")],Ge);const Pe=Ge},97478:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var te,D=v(17626),R=v(86810),G=v(62208),Z=v(28170),Q=v(77712),B=(v(85931),v(90912),v(68653)),H=v(76898),X=v(99433);let ae=te=class extends R.wq{constructor(se){super(se),this.end=null,this.start=null}static get allTime(){return oe}static get empty(){return le}readEnd(se,re){return null!=re.end?new Date(re.end):null}writeEnd(se,re){re.end=se?se.getTime():null}get isAllTime(){return this.equals(te.allTime)}get isEmpty(){return this.equals(te.empty)}readStart(se,re){return null!=re.start?new Date(re.start):null}writeStart(se,re){re.start=se?se.getTime():null}clone(){return new te({end:this.end,start:this.start})}equals(se){if(!se)return!1;const re=(0,G.pC)(this.start)?this.start.getTime():this.start,j=(0,G.pC)(this.end)?this.end.getTime():this.end,Y=(0,G.pC)(se.start)?se.start.getTime():se.start,ee=(0,G.pC)(se.end)?se.end.getTime():se.end;return re===Y&&j===ee}expandTo(se){if(this.isEmpty||this.isAllTime)return this.clone();const re=(0,G.yw)(this.start,Y=>(0,Z.JE)(Y,se)),j=(0,G.yw)(this.end,Y=>{const ee=(0,Z.JE)(Y,se);return Y.getTime()===ee.getTime()?ee:(0,Z.Nm)(ee,1,se)});return new te({start:re,end:j})}intersection(se){if(!se)return this.clone();if(this.isEmpty||se.isEmpty)return te.empty;if(this.isAllTime)return se.clone();if(se.isAllTime)return this.clone();const re=(0,G.R2)(this.start,-1/0,ce=>ce.getTime()),j=(0,G.R2)(this.end,1/0,ce=>ce.getTime()),Y=(0,G.R2)(se.start,-1/0,ce=>ce.getTime()),ee=(0,G.R2)(se.end,1/0,ce=>ce.getTime());let ie,J;if(Y>=re&&Y<=j?ie=Y:re>=Y&&re<=ee&&(ie=re),j>=Y&&j<=ee?J=j:ee>=re&&ee<=j&&(J=ee),null!=ie&&null!=J&&!isNaN(ie)&&!isNaN(J)){const ce=new te;return ce.start=ie===-1/0?null:new Date(ie),ce.end=J===1/0?null:new Date(J),ce}return te.empty}offset(se,re){if(this.isEmpty||this.isAllTime)return this.clone();const j=new te,{start:Y,end:ee}=this;return(0,G.pC)(Y)&&(j.start=(0,Z.Nm)(Y,se,re)),(0,G.pC)(ee)&&(j.end=(0,Z.Nm)(ee,se,re)),j}union(se){if(!se||se.isEmpty)return this.clone();if(this.isEmpty)return se.clone();if(this.isAllTime||se.isAllTime)return oe.clone();const re=(0,G.pC)(this.start)&&(0,G.pC)(se.start)?new Date(Math.min(this.start.getTime(),se.start.getTime())):null,j=(0,G.pC)(this.end)&&(0,G.pC)(se.end)?new Date(Math.max(this.end.getTime(),se.end.getTime())):null;return new te({start:re,end:j})}};(0,D._)([(0,Q.Cb)({type:Date,json:{write:{allowNull:!0}}})],ae.prototype,"end",void 0),(0,D._)([(0,B.r)("end")],ae.prototype,"readEnd",null),(0,D._)([(0,X.c)("end")],ae.prototype,"writeEnd",null),(0,D._)([(0,Q.Cb)({readOnly:!0,json:{read:!1}})],ae.prototype,"isAllTime",null),(0,D._)([(0,Q.Cb)({readOnly:!0,json:{read:!1}})],ae.prototype,"isEmpty",null),(0,D._)([(0,Q.Cb)({type:Date,json:{write:{allowNull:!0}}})],ae.prototype,"start",void 0),(0,D._)([(0,B.r)("start")],ae.prototype,"readStart",null),(0,D._)([(0,X.c)("start")],ae.prototype,"writeStart",null),ae=te=(0,D._)([(0,H.j)("esri.TimeExtent")],ae);const oe=new ae,le=new ae({start:void 0,end:void 0}),de=ae},20849:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(86810),G=v(28170),Z=v(77712),W=(v(85931),v(90912),v(76898)),B=v(58926);let X=H=class extends R.wq{constructor(ae){super(ae),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,G.rJ)(this.value,this.unit,"milliseconds")}clone(){return new H({value:this.value,unit:this.unit})}};(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0},nonNullable:!0})],X.prototype,"value",void 0),(0,D._)([(0,Z.Cb)({type:B.v.apiValues,json:{type:B.v.jsonValues,read:B.v.read,write:B.v.write},nonNullable:!0})],X.prototype,"unit",void 0),X=H=(0,D._)([(0,W.j)("esri.TimeInterval")],X);const te=X},54346:(nt,Ae,v)=>{"use strict";v.d(Ae,{V:()=>B,b:()=>W});var D=v(59318),R=v(84792),G=v(26584),Z=v(63290),Q=v(21726);const $=Z.Z.getLogger("esri.assets");function W(H,X){return(0,R.default)(B(H),X)}function B(H){if(!D.Z.assetsPath)throw $.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new G.Z("assets:path-not-set","config.assetsPath is not set");return(0,Q.v_)(D.Z.assetsPath,H)}},87204:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>te,a:()=>H,b:()=>X});var H,ae,D=v(89798),R=v(87191),G=v(14273),Z=v(97139),Q=v(65787),$=v(17625),W=v(22355),B=v(35387);function X(ae){const oe=new W.kG;if(oe.include(G.T),ae.background===H.Only){const le=ae.output===R.lG.ColorComposite;return le?oe.fragment.uniforms.add(new Z.J("backgroundColor",de=>de.backgroundColor)):(oe.extensions.add("GL_OES_standard_derivatives"),oe.fragment.include(D.H)),oe.fragment.code.add($.H` - void main() { - gl_FragColor = ${le?$.H`vec4(backgroundColor, 1.0)`:$.H`gridColor(uv)`}; - } - `),oe}return oe.include(R.JT,ae),oe.fragment.uniforms.add(new B.A("tex",le=>le.texture)),oe.fragment.uniforms.add(new Q.p("opacity",le=>le.opacity)),oe.fragment.code.add($.H`void main() { -vec4 bgColor = getBackground(uv); -gl_FragColor = blendLayers(bgColor, texture2D(tex, uv), opacity); -}`),oe}(ae=H||(H={}))[ae.BelowLayer=0]="BelowLayer",ae[ae.Only=1]="Only",ae[ae.COUNT=2]="COUNT";const te=Object.freeze(Object.defineProperty({__proto__:null,get BackgroundMode(){return H},build:X},Symbol.toStringTag,{value:"Module"}))},64949:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>B,b:()=>W});var D=v(17625),R=v(22355),G=v(35387),Z=v(16396),Q=v(67093);function W(){const H=new R.kG,{attributes:X,varyings:te,vertex:ae,fragment:oe}=H;return X.add(Z.T.POSITION,"vec2"),te.add("fTexCoord","vec2"),te.add("fOffset[3]","vec4"),te.add("fPixCoord","vec2"),(0,Q.dz)(ae),ae.code.add(D.H` - void SMAABlendingWeightCalculationVS( vec2 texcoord ) { - fPixCoord = texcoord * resolution.zw; - fOffset[0] = texcoord.xyxy + resolution.xyxy * vec4( -0.25, 0.125, 1.25, 0.125 ); - fOffset[1] = texcoord.xyxy + resolution.xyxy * vec4( -0.125, 0.25, -0.125, -1.25 ); - fOffset[2] = vec4( fOffset[0].xz, fOffset[1].yw ) + vec4( -2.0, 2.0, -2.0, 2.0 ) * resolution.xxyy * float( ${D.H.int(8)} ); - } - - void main() { - fTexCoord = (position + 1.0 ) * 0.5; - gl_Position = vec4(position, 0, 1); - SMAABlendingWeightCalculationVS( fTexCoord ); - } - `),oe.uniforms.add(new G.A("tEdges",le=>le.edges.colorTexture)),oe.uniforms.add(new G.A("tArea",le=>le.areaTexture)),oe.uniforms.add(new G.A("tSearch",le=>le.searchTexture)),oe.uniforms.add(new G.A("tColor",le=>le.colorTexture)),(0,Q.dz)(oe),oe.code.add(D.H` - #define SMAA_AREATEX_PIXEL_SIZE ( 1.0 / vec2( 160.0, 560.0 ) ) - #define SMAA_AREATEX_SUBTEX_SIZE ( 1.0 / 7.0 ) - - vec4 SMAASampleLevelZeroOffset(sampler2D texture, vec2 coord, vec2 offset) { - return texture2D(texture, coord + offset.x * resolution.xy, 0.0); - } - - vec2 round( vec2 x ) { - return sign( x ) * floor( abs( x ) + 0.5 ); - } - - float SMAASearchLength( sampler2D searchTex, vec2 e, float bias, float scale ) { - e.r = bias + e.r * scale; - return 255.0 * texture2D( searchTex, e, 0.0 ).r; - } - - float SMAASearchXLeft( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { - vec2 e = vec2( 0.0, 1.0 ); - for ( int i = 0; i < ${D.H.int(8)}; i ++ ) { - e = texture2D( edgesTex, texcoord, 0.0 ).rg; - texcoord -= vec2( 2.0, 0.0 ) * resolution.xy; - if ( ! ( texcoord.x > end && e.g > 0.8281 && e.r == 0.0 ) ) break; - } - texcoord.x += 0.25 * resolution.x; - texcoord.x += resolution.x; - texcoord.x += 2.0 * resolution.x; - texcoord.x -= resolution.x * SMAASearchLength(searchTex, e, 0.0, 0.5); - return texcoord.x; - } - - float SMAASearchXRight( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { - vec2 e = vec2( 0.0, 1.0 ); - for ( int i = 0; i < ${D.H.int(8)}; i ++ ) { - e = texture2D( edgesTex, texcoord, 0.0 ).rg; - texcoord += vec2( 2.0, 0.0 ) * resolution.xy; - if ( ! ( texcoord.x < end && e.g > 0.8281 && e.r == 0.0 ) ) break; - } - texcoord.x -= 0.25 * resolution.x; - texcoord.x -= resolution.x; - texcoord.x -= 2.0 * resolution.x; - texcoord.x += resolution.x * SMAASearchLength( searchTex, e, 0.5, 0.5 ); - return texcoord.x; - } - - float SMAASearchYUp( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { - vec2 e = vec2( 1.0, 0.0 ); - for ( int i = 0; i < ${D.H.int(8)}; i ++ ) { - e = texture2D( edgesTex, texcoord, 0.0 ).rg; - texcoord += vec2( 0.0, 2.0 ) * resolution.xy; - if ( ! ( texcoord.y > end && e.r > 0.8281 && e.g == 0.0 ) ) break; - } - texcoord.y -= 0.25 * resolution.y; - texcoord.y -= resolution.y; - texcoord.y -= 2.0 * resolution.y; - texcoord.y += resolution.y * SMAASearchLength( searchTex, e.gr, 0.0, 0.5 ); - return texcoord.y; - } - - float SMAASearchYDown( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { - vec2 e = vec2( 1.0, 0.0 ); - for ( int i = 0; i < ${D.H.int(8)}; i ++ ) { - e = texture2D( edgesTex, texcoord, 0.0 ).rg; - texcoord -= vec2( 0.0, 2.0 ) * resolution.xy; - if ( ! ( texcoord.y < end && e.r > 0.8281 && e.g == 0.0 ) ) break; - } - texcoord.y += 0.25 * resolution.y; - texcoord.y += resolution.y; - texcoord.y += 2.0 * resolution.y; - texcoord.y -= resolution.y * SMAASearchLength( searchTex, e.gr, 0.5, 0.5 ); - return texcoord.y; - } - - vec2 SMAAArea( sampler2D areaTex, vec2 dist, float e1, float e2, float offset ) { - vec2 texcoord = float( ${D.H.int(16)} ) * round( 4.0 * vec2( e1, e2 ) ) + dist; - texcoord = SMAA_AREATEX_PIXEL_SIZE * texcoord + ( 0.5 * SMAA_AREATEX_PIXEL_SIZE ); - texcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset; - return texture2D( areaTex, texcoord, 0.0 ).rg; - } - - vec4 SMAABlendingWeightCalculationPS( vec2 texcoord, vec2 pixcoord, vec4 offset[ 3 ], sampler2D edgesTex, sampler2D areaTex, sampler2D searchTex, ivec4 subsampleIndices ) { - vec4 weights = vec4( 0.0, 0.0, 0.0, 0.0 ); - vec2 e = texture2D( edgesTex, texcoord ).rg; - if ( e.g > 0.0 ) { - vec2 d; - vec2 coords; - coords.x = SMAASearchXLeft( edgesTex, searchTex, offset[ 0 ].xy, offset[ 2 ].x ); - coords.y = offset[ 1 ].y; - d.x = coords.x; - float e1 = texture2D( edgesTex, coords, 0.0 ).r; - coords.x = SMAASearchXRight( edgesTex, searchTex, offset[ 0 ].zw, offset[ 2 ].y ); - d.y = coords.x; - d = d * resolution.z - pixcoord.x; - vec2 sqrt_d = sqrt( abs( d ) ); - coords.y -= 1.0 * resolution.y; - float e2 = SMAASampleLevelZeroOffset( edgesTex, coords, vec2( 1.0, 0.0 ) ).r; - weights.rg = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.y ) ); - } - - if ( e.r > 0.0 ) { - vec2 d; - vec2 coords; - coords.y = SMAASearchYUp( edgesTex, searchTex, offset[ 1 ].xy, offset[ 2 ].z ); - coords.x = offset[ 0 ].x; - d.x = coords.y; - float e1 = texture2D( edgesTex, coords, 0.0 ).g; - coords.y = SMAASearchYDown( edgesTex, searchTex, offset[ 1 ].zw, offset[ 2 ].w ); - d.y = coords.y; - d = d * resolution.w - pixcoord.y; - vec2 sqrt_d = sqrt( abs( d ) ); - coords.y -= 1.0 * resolution.y; - float e2 = SMAASampleLevelZeroOffset( edgesTex, coords, vec2( 0.0, 1.0 ) ).g; - weights.ba = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.x ) ); - - // for some reason the following lines are necessary to prevent - // texture lookup precision issues on some Intel integrated graphics chips - vec4 dbg = (offset[ 0 ]+offset[ 1 ]+offset[ 2 ] + coords.xyyx); - weights.r += 0.00000001 * dot(vec4(0,1,0,1),dbg); - } - return weights; - } - - void main() { - gl_FragColor = SMAABlendingWeightCalculationPS( fTexCoord, fPixCoord, fOffset, tEdges, tArea, tSearch, ivec4( 0.0 ) ); - } - `),H}const B=Object.freeze(Object.defineProperty({__proto__:null,build:W},Symbol.toStringTag,{value:"Module"}))},39274:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>W,b:()=>$});var D=v(17625),R=v(22355),G=v(35387),Z=v(16396),Q=v(67093);function $(){const B=new R.kG,{attributes:H,varyings:X,vertex:te,fragment:ae}=B;return H.add(Z.T.POSITION,"vec2"),X.add("fTexCoord","vec2"),X.add("fOffset[2]","vec4"),(0,Q.dz)(te),te.code.add(D.H`void SMAANeighborhoodBlendingVS( vec2 texcoord ) { -fOffset[0] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 ); -fOffset[1] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 ); -} -void main() { -fTexCoord = (position + 1.0 ) * 0.5; -gl_Position = vec4(position, 0, 1); -SMAANeighborhoodBlendingVS(fTexCoord); -}`),ae.uniforms.add(new G.A("tBlendWeights",oe=>oe.blend.colorTexture)),ae.uniforms.add(new G.A("tColor",oe=>oe.colorTexture)),(0,Q.dz)(ae),ae.code.add(D.H`vec4 SMAANeighborhoodBlendingPS( vec2 texcoord, vec4 offset[ 2 ], sampler2D colorTex, sampler2D blendTex ) { -vec4 a; -a.xz = texture2D( blendTex, texcoord ).xz; -a.y = texture2D( blendTex, offset[ 1 ].zw ).g; -a.w = texture2D( blendTex, offset[ 1 ].xy ).a; -if ( dot(a, vec4( 1.0, 1.0, 1.0, 1.0 )) < 1e-5 ) { -return texture2D( colorTex, texcoord, 0.0 ); -} else { -vec2 offset; -offset.x = a.a > a.b ? a.a : -a.b; -offset.y = a.g > a.r ? -a.g : a.r; -if ( abs( offset.x ) > abs( offset.y )) { -offset.y = 0.0; -} else { -offset.x = 0.0; -} -vec4 C = texture2D( colorTex, texcoord, 0.0 ); -texcoord += sign( offset ) * resolution.xy; -vec4 Cop = texture2D( colorTex, texcoord, 0.0 ); -float s = abs( offset.x ) > abs( offset.y ) ? abs( offset.x ) : abs( offset.y ); -vec4 mixed = mix(C, Cop, s); -return mixed; -} -} -void main() { -gl_FragColor = SMAANeighborhoodBlendingPS( fTexCoord, fOffset, tColor, tBlendWeights ); -}`),B}const W=Object.freeze(Object.defineProperty({__proto__:null,build:$},Symbol.toStringTag,{value:"Module"}))},56598:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>pe,a:()=>ce,b:()=>j});var D=v(28347),R=v(43703),G=v(28093),Z=v(61343),Q=v(36603),$=v(47923),W=v(96896),B=v(31166),H=v(95285),X=v(97139),te=v(69960),ae=v(65787),oe=v(17625),le=v(63123),de=v(22355),se=v(35387),re=v(16396);const j=(0,G.f)(parseFloat(Number(5802e-9).toFixed(6)),parseFloat(Number(13558e-9).toFixed(6)),parseFloat(Number(331e-7).toFixed(6))),ee=(0,G.f)(3*parseFloat(Number(65e-8).toFixed(6)),3*parseFloat(Number(1881e-9).toFixed(6)),3*parseFloat(Number(85e-9).toFixed(6))),J=(0,G.f)(parseFloat(Number(j[0]+ee[0]).toFixed(6)),parseFloat(Number(j[1]+ee[1]).toFixed(6)),parseFloat(Number(j[2]+ee[2]).toFixed(6)));function ce(he){const me=new de.kG;me.attributes.add(re.T.POSITION,"vec2"),me.include(Q.D,{textureCoordinateType:Q.N.Default}),me.varyings.add("worldRay","vec3"),me.varyings.add("eyeDir","vec3");const{vertex:ge,fragment:_e}=me;return ge.uniforms.add([new le.g("inverseProjectionMatrix",(Ee,De)=>De.camera.inverseProjectionMatrix),new le.g("inverseViewMatrix",(Ee,De)=>(0,D.a)(ue,De.camera.viewMatrix))]),ge.code.add(oe.H`void main(void) { -vec3 posViewNear = (inverseProjectionMatrix * vec4(position, -1, 1)).xyz; -eyeDir = posViewNear; -worldRay = (inverseViewMatrix * vec4(posViewNear, 0)).xyz; -forwardTextureCoordinates(); -gl_Position = vec4(position, 1, 1); -}`),_e.uniforms.add([new H.A("radii",Ee=>Ee.radii),new X.J("cameraPosition",(Ee,De)=>De.camera.eye),new te.N("heightParameters",Ee=>Ee.heightParameters),new ae.p("innerFadeDistance",Ee=>Ee.innerFadeDistance),new ae.p("altitudeFade",Ee=>Ee.altitudeFade),new se.A("depthTex",Ee=>Ee.depthTex),new ae.p("hazeStrength",Ee=>Ee.hazeStrength)]),_e.constants.add("betaRayleigh","vec3",j),_e.constants.add("betaCombined","vec3",J),_e.constants.add("betaMie","float",3996e-9),_e.constants.add("scaleHeight","float",Z.TR*Z.k8),(0,B.Pe)(_e),me.include(W.D),he.haze&&(_e.include($.S),_e.uniforms.add(new H.A("nearFar",(Ee,De)=>De.camera.nearFar))),_e.code.add(oe.H`vec2 sphereIntersect(vec3 start, vec3 dir, float radius, bool planet) { -float a = dot(dir, dir); -float b = 2.0 * dot(dir, start); -float c = planet ? heightParameters[1] - radius * radius : heightParameters[2]; -float d = (b * b) - 4.0 * a * c; -if (d < 0.0) { -return vec2(1e5, -1e5); -} -return vec2((-b - sqrt(d)) / (2.0 * a), (-b + sqrt(d)) / (2.0 * a)); -}`),_e.code.add(oe.H`float chapmanApproximation(float X, float h, float cosZenith) { -float c = sqrt(X + h); -float cExpH = c * exp(-h); -if (cosZenith >= 0.0) { -return cExpH / (c * cosZenith + 1.0); -} else { -float x0 = sqrt(1.0 - cosZenith * cosZenith) * (X + h); -float c0 = sqrt(x0); -return 2.0 * c0 * exp(X - x0) - cExpH / (1.0 - c * cosZenith); -} -}`),_e.code.add(oe.H`float getOpticalDepth(vec3 position, vec3 dir, float h) { -return scaleHeight * chapmanApproximation(radii[0] / scaleHeight, h, dot(normalize(position), dir)); -}`),_e.code.add(oe.H` - const int STEPS = 6; - - float getGlow(float dist, float radius, float intensity) { - return pow(radius / max(dist, 1e-6), intensity); - } - - vec3 getAtmosphereColour(vec3 cameraPos, vec3 rayDir, vec3 lightDir, float terrainDepth) { - float reducedPlanetRadius = radii[0] - 20000.0; - vec2 rayPlanetIntersect = sphereIntersect(cameraPos, rayDir, reducedPlanetRadius, true); - vec2 rayAtmosphereIntersect = sphereIntersect(cameraPos, rayDir, radii[1], false); - bool hitsAtmosphere = (rayAtmosphereIntersect.x <= rayAtmosphereIntersect.y) && rayAtmosphereIntersect.x > 0.0; - bool insideAtmosphere = heightParameters[0] < radii[1]; - - if (!(hitsAtmosphere || insideAtmosphere)) { - return vec3(0); - } - - bool hitsPlanet = (rayPlanetIntersect.x <= rayPlanetIntersect.y) && rayPlanetIntersect.x > 0.0; - - float start = insideAtmosphere ? 0.0 : rayAtmosphereIntersect.x; - - if (heightParameters[0] < reducedPlanetRadius) { - // Long light rays from the night side of the planet lead to numerical instability - // Do not render the atmosphere in such cases - if (dot(rayDir, normalize(cameraPos)) < -0.025) { - return vec3(0); - } - start = rayPlanetIntersect.y; - } - - float end = hitsPlanet ? rayPlanetIntersect.x : rayAtmosphereIntersect.y; - float maxEnd = end; - - ${he.haze?oe.H`if (terrainDepth != -1.0) { end = terrainDepth; }`:""} - - vec3 samplePoint = cameraPos + rayDir * end; - float multiplier = hitsPlanet ? -1.0 : 1.0; - - vec3 scattering = vec3(0); - float scaleFract = (length(samplePoint) - radii[0]) / scaleHeight; - float lastOpticalDepth = getOpticalDepth(samplePoint, rayDir, scaleFract); - float stepSize = (end - start) / float(STEPS); - for (int i = 0; i < STEPS; i++) { - samplePoint -= stepSize * rayDir; - scaleFract = (length(samplePoint) - radii[0]) / scaleHeight; - float opticalDepth = multiplier * getOpticalDepth(samplePoint, rayDir * multiplier, scaleFract); - - if (i > 0) { - scattering *= ${he.haze?oe.H``:" mix(2.5, 1.0, clamp((length(cameraPos) - radii[0]) / 50e3, 0.0, 1.0)) * "} exp(-(mix(betaCombined, betaRayleigh, 0.5) + betaMie) * max(0.0, (opticalDepth - lastOpticalDepth))); - } - - if (dot(normalize(samplePoint), lightDir) > -0.3) { - - float scale = exp(-scaleFract); - float lightDepth = getOpticalDepth(samplePoint, lightDir, scaleFract); - - scattering += scale * exp(-(betaCombined + betaMie) * lightDepth); - ${he.haze?"":oe.H`scattering += scale * exp(-(0.25 * betaCombined ) * lightDepth);`} - } - - lastOpticalDepth = opticalDepth; - - } - - float mu = dot(rayDir, lightDir); - float mumu = 1.0 + mu * mu; - - float phaseRayleigh = 0.0596831 * mumu; - - ${he.haze?oe.H`return 3.0 * scattering * stepSize * phaseRayleigh * betaRayleigh;`:oe.H` - const float g = 0.8; - const float gg = g * g; - float phaseMie = end == maxEnd ? 0.1193662 * ((1.0 - gg) * mumu) / (pow(1.0 + gg - 2.0 * mu * g, 1.5) * (2.0 + gg)) : 0.0; - phaseMie += getGlow(1.0 - mu, 5e-5, 3.0) * smoothstep(0.01, 0.1, length(scattering)); - phaseMie = clamp(phaseMie, 0.0, 128.0); - return 3.0 * scattering * stepSize * (phaseRayleigh * betaRayleigh + 0.025 * phaseMie * betaMie);`} - } - - vec3 tonemapACES(vec3 x) { - return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0); - } - - vec4 applyUndergroundAtmosphere(vec3 rayDir, vec3 lightDirection, vec4 fragColor) { - vec2 rayPlanetIntersect = sphereIntersect(cameraPosition, rayDir, radii[0], true); - if (!((rayPlanetIntersect.x <= rayPlanetIntersect.y) && rayPlanetIntersect.y > 0.0)) { - return fragColor; - } - - float lightAngle = dot(lightDirection, normalize(cameraPosition + rayDir * max(0.0, rayPlanetIntersect.x))); - vec4 surfaceColor = vec4(vec3(max(0.0, (smoothstep(-1.0, 0.8, 2.0 * lightAngle)))), 1.0 - altitudeFade); - float relDist = (rayPlanetIntersect.y - max(0.0, rayPlanetIntersect.x)) / innerFadeDistance; - if (relDist > 1.0) { - return surfaceColor; - } - - return mix(gl_FragColor, surfaceColor, smoothstep(0.0, 1.0, relDist * relDist)); - } - - void main() { - vec3 rayDir = normalize(worldRay); - float terrainDepth = -1.0; - ${he.haze?oe.H` - vec4 depthSample = texture2D(depthTex, vuv0).rgba; - if (depthSample != vec4(0)) { - vec3 cameraSpaceRay = normalize(eyeDir); - cameraSpaceRay /= cameraSpaceRay.z; - cameraSpaceRay *= -linearDepthFromTexture(depthTex, vuv0, nearFar); - terrainDepth = max(0.0, length(cameraSpaceRay)); - }`:oe.H` - float depthSample = texture2D(depthTex, vuv0).r; - if (depthSample != 1.0) { - gl_FragColor = vec4(0); - return; - }`} - - ${he.haze?oe.H` - vec3 col = vec3(0); - float fadeOut = smoothstep(-10000.0, -15000.0, heightParameters[0] - radii[0]); - if(depthSample != vec4(0)){ - col = (1.0 - fadeOut) * hazeStrength * getAtmosphereColour(cameraPosition, rayDir, mainLightDirection, terrainDepth); - } - float alpha = 1.0 - fadeOut;`:oe.H` - vec3 col = getAtmosphereColour(cameraPosition, rayDir, mainLightDirection, terrainDepth);; - float alpha = smoothstep(0.0, mix(0.15, 0.01, heightParameters[3]), length(col));`} - col = tonemapACES(col); - gl_FragColor = delinearizeGamma(vec4(col, alpha)); - ${he.haze?"":oe.H` - if (depthSample == 1.0) { - gl_FragColor = applyUndergroundAtmosphere(rayDir, mainLightDirection, gl_FragColor); - }`} - } - `),me}const ue=(0,R.c)(),pe=Object.freeze(Object.defineProperty({__proto__:null,betaRayleigh:j,build:ce},Symbol.toStringTag,{value:"Module"}))},89803:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>se,a:()=>re,b:()=>ee,c:()=>j});var D=v(21286),R=v(62208),G=v(550),Z=v(67831),Q=v(99770),$=v(85073),W=v(32849),B=v(85755),H=v(98071),X=v(95285),te=v(65787),ae=v(17625),oe=v(9546),le=v(22355),de=v(35387);class se extends ae.K{constructor(){super(...arguments),this.cloudRadius=0,this.cloudSize=0,this.detailSize=0,this.absorption=0,this.density=0,this.smoothness=0,this.cloudHeight=0,this.coverage=0,this.raymarchingSteps=$.L.default.raymarchingSteps,this.weatherTile=(0,Q.a)()}}class re extends ae.K{constructor(){super(...arguments),this.viewMatrix=(0,G.c)()}}function j(ie){const J=new le.kG;J.include(H.k,!1);const ce=J.fragment;return ce.uniforms.add([new te.p("cloudRadius",ue=>ue.cloudRadius),new te.p("power",ue=>(0,D.t7)(35,120,ue.absorption)),new te.p("sigmaE",ue=>1+ue.absorption),new te.p("density",ue=>(0,D.t7)(0,.3,ue.density)),new te.p("cloudSize",ue=>(0,D.t7)(0,.02,Math.max(.01,1-ue.cloudSize))),new te.p("detailSize",ue=>(0,D.t7)(0,.2,Math.max(.01,1-ue.detailSize))),new te.p("smoothness",ue=>(0,D.t7)(0,.5,1-ue.smoothness)),new te.p("cloudHeight",ue=>(0,D.t7)(0,1500,ue.cloudHeight)),new te.p("coverage",ue=>ue.coverage),new oe.j("view",ue=>ue.viewMatrix),new de.A("cloudShapeTexture",ue=>(0,R.pC)(ue.noiseTexture)?ue.noiseTexture.textureAtlas:null),new X.A("cloudVariables",ue=>(0,Z.s)(Y,ue.coverage,ue.absorption))]),ce.constants.add("halfCubeMapSize","float",.5*ie.cubeMapSize),ce.code.add(ae.H` - const int STEPS = ${ie.steps===W.p.SIXTEEN?ae.H`16`:ie.steps===W.p.HUNDRED?ae.H`100`:ae.H`200`}; - const int STEPS_LIGHT = 6; - const float stepL = 300.0 / float(STEPS_LIGHT); - const float cloudStart = 1500.0; - - vec3 rayDirection(vec2 fragCoord) { - vec2 xy = fragCoord - halfCubeMapSize; - return normalize(vec3(-xy, -halfCubeMapSize)); - } - - float remap(float x, float low1, float high1, float low2, float high2) { - return low2 + (x - low1) * (high2 - low2) / (high1 - low1); - } - - float saturate(float x) { - return clamp(x, 0.0, 1.0); - }`),ce.code.add(ae.H` - float getCloudShape(vec3 pos, float pOffset) { - const float textureWidth = ${ae.H.float(B.IQ)}; - const float dataWidth = ${ae.H.float(B.IQ)}; - const float tileRows = ${ae.H.float(B.jy)}; - const vec3 atlasDimensions = vec3(${ae.H.float(B.I_)}, ${ae.H.float(B.I_)}, tileRows * tileRows); - - //Change from Y being height to Z being height - vec3 p = float(${ae.H.float(B.kR)}) * pos.xzy; - - //Pixel coordinates of point in the 3D data - vec3 coord = vec3(mod(p - pOffset * atlasDimensions, atlasDimensions)); - float f = fract(coord.z); - float level = floor(coord.z); - float tileY = floor(level / tileRows); - float tileX = level - tileY * tileRows; - - //The data coordinates are offset by the x and y tile, the two boundary cells between each tile pair and the initial boundary cell on the first row/column - vec2 offset = atlasDimensions.x * vec2(tileX, tileY) + 2.0 * vec2(tileX, tileY) + 1.0; - vec2 pixel = coord.xy + offset; - vec2 data = texture2D(cloudShapeTexture, mod(pixel, dataWidth) / textureWidth).xy; - - return 1.0 - mix(data.x, data.y, f); - } - - float getCloudMap(vec2 p){ - // Non-power-of-two textures can't be tiled using WebGL1 - // Get fractional part of uv to tile - // Shift the texture center to origin to avoid seam artifacts - vec2 uv = fract((${ae.H.float(B.QZ)} * p) / ${ae.H.float(B.IQ)} + 0.5); - - return texture2D(cloudShapeTexture, uv).a; - } - `),ce.code.add(ae.H`float clouds(vec3 p) { -float cloud = saturate(0.5 * mix(0.0, 1.0, min(2.0 * coverage, 1.0))); -if (cloud <= 0.0) { -return 0.0; -} -float cloudMap = getCloudMap(cloudSize * p.xy); -cloud = mix(cloud, min(2.0 * (coverage), 1.0) * cloudMap, min(2.0 * (1.0 - coverage), 1.0)); -if (cloud <= 0.0) { -return 0.0; -} -float shape = getCloudShape(8.0 * cloudSize * p, 0.0); -cloud = saturate(remap(cloud, smoothness * shape, 1.0, 0.0, 1.0)); -if (cloud <= 0.0) { -return 0.0; -} -float heightFraction = saturate((length(p) - cloudRadius - cloudStart) / cloudHeight); -cloud *= saturate(remap(heightFraction, 0.0, 0.25, 0.0, 1.0)) * smoothstep(1.0, 0.25, heightFraction); -if (cloud <= 0.0) { -return 0.0; -} -return density * saturate(remap(cloud, 0.35 * smoothness * getCloudShape(detailSize * p, 0.0), 1.0, 0.0, 1.0)); -}`),ce.code.add(ae.H`vec2 sphereIntersections(vec3 start, vec3 dir, float radius) { -float a = dot(dir, dir); -float b = 2.0 * dot(dir, start); -float c = dot(start, start) - (radius * radius); -float d = (b * b) - 4.0 * a * c; -if (d < 0.0) { -return vec2(1e5, -1e5); -} -return vec2((-b - sqrt(d)) / (2.0 * a), (-b + sqrt(d)) / (2.0 * a)); -} -float HenyeyGreenstein(float g, float costh) { -return (1.0 / (4.0 * 3.1415)) * ((1.0 - g * g) / pow(1.0 + g * g - 2.0 * g * costh, 1.5)); -}`),ce.code.add("\n float multipleOctaves(float extinction, float mu, float stepL) {\n float attenuation = 1.0;\n float contribution = 1.0;\n float phaseAttenuation = 1.0;\n float luminance = 0.0;\n\n for (int i = 0; i < 4; i++) {\n float phase = mix(HenyeyGreenstein(0.0, mu), HenyeyGreenstein(0.3 * phaseAttenuation, mu), 0.7);\n luminance += contribution * phase * exp(-stepL * extinction * sigmaE * attenuation);\n attenuation *= 0.2;\n contribution *= 0.6;\n phaseAttenuation *= 0.5;\n }\n\n return luminance;\n }"),ce.code.add(ae.H`float lightRay(vec3 org, vec3 p, float phaseFunction, float mu, vec3 sunDirection) { -float lightRayDensity = clouds(p); -lightRayDensity += clouds(p + sunDirection * 1.0 * stepL); -lightRayDensity += clouds(p + sunDirection * 2.0 * stepL); -lightRayDensity += clouds(p + sunDirection * 3.0 * stepL); -lightRayDensity += clouds(p + sunDirection * 4.0 * stepL); -lightRayDensity += clouds(p + sunDirection * 5.0 * stepL); -float beersLaw = multipleOctaves(lightRayDensity, mu, stepL); -return mix(beersLaw * 2.0 * (1.0 - (exp(-stepL * lightRayDensity * 2.0 * sigmaE ))), beersLaw, 0.5 + 0.5 * mu); -}`),ce.code.add(ae.H`float mainRay(vec3 org, vec3 dir, vec3 sunDirection, float distToStart, float totalDistance, out float totalTransmittance) { -if (dir.z < 0.0) { -return 0.0; -} -totalTransmittance = 1.0; -float stepS = totalDistance / float(STEPS); -float cameraHeight = length(org); -float mu = 0.5 + 0.5 * dot(sunDirection, dir); -float phaseFunction = mix(HenyeyGreenstein(-0.3, mu), HenyeyGreenstein(0.3, mu), 0.7); -vec3 p = org + distToStart * dir; -float dist = distToStart; -float shading = 0.0; -for (int i = 0; i < STEPS; i++) { -float sampleDensity = clouds(p); -float sampleSigmaE = sampleDensity * sigmaE; -if (sampleDensity > 0.0 ) { -float ambient = mix((1.2), (1.6), saturate((length(p) - cloudRadius - cloudStart) / cloudHeight)); -float luminance = sampleDensity * (ambient + power * phaseFunction * lightRay(org, p, phaseFunction, mu, sunDirection)); -float transmittance = exp(-sampleSigmaE * stepS); -shading += totalTransmittance * (luminance - luminance * transmittance) / sampleSigmaE; -totalTransmittance *= transmittance; -if (totalTransmittance <= 0.001) { -totalTransmittance = 0.0; -break; -} -} -dist += stepS; -p = org + dir * dist; -} -return shading; -}`),ce.code.add(ae.H`void main() { -if (coverage == 0.0) { -gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0); -return; -} -vec3 rayDir = rayDirection(gl_FragCoord.xy); -rayDir = normalize(view * rayDir); -vec3 viewPos = vec3(0, 0, cloudRadius + 1.0); -bool hitsPlanet = rayDir.z < 0.0; -float hazeFactor = smoothstep(-0.01, mix(0.0, 0.075, cloudVariables.x), abs(dot(rayDir, vec3(0, 0, 1)))); -float totalTransmittance = 1.0; -float shading = 0.0; -if (hitsPlanet) { -shading = clamp(1.0 - cloudVariables.y, 0.6, 1.0) * (1.0 - hazeFactor); -totalTransmittance = hazeFactor; -gl_FragColor = vec4(shading, totalTransmittance, shading, totalTransmittance); -return; -} -vec2 rayStartIntersect = sphereIntersections(viewPos, rayDir, cloudRadius + cloudStart); -vec2 rayEndIntersect = sphereIntersections(viewPos, rayDir, cloudRadius + cloudStart + cloudHeight); -float distToStart = rayStartIntersect.y; -float totalDistance = rayEndIntersect.y - distToStart; -vec3 sunDirection = normalize(vec3(0, 0, 1)); -shading = 0.5 * mainRay(viewPos, rayDir, sunDirection, distToStart, totalDistance, totalTransmittance); -shading = mix(clamp(1.0 - cloudVariables.y, 0.6, 1.0), shading, hazeFactor); -totalTransmittance = mix(0.0, totalTransmittance, hazeFactor); -gl_FragColor = vec4(shading, totalTransmittance, shading, totalTransmittance); -}`),J}const Y=(0,Q.a)(),ee=Object.freeze(Object.defineProperty({__proto__:null,CloudsPassParameters:se,CloudsDrawParameters:re,build:j},Symbol.toStringTag,{value:"Module"}))},50722:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>j,b:()=>se});var D=v(28347),R=v(43703),G=v(44965),Z=v(96896),Q=v(31166),$=v(92724),W=v(39337),B=v(69602),H=v(33726),X=v(19278),te=v(97139),ae=v(17625),oe=v(63123),le=v(22355),de=v(16396);function se(){const Y=new le.kG;Y.attributes.add(de.T.POSITION,"vec2"),Y.varyings.add("worldRay","vec3");const{vertex:ee,fragment:ie}=Y;return ee.uniforms.add([new oe.g("inverseProjectionMatrix",(J,ce)=>ce.camera.inverseProjectionMatrix),new oe.g("inverseViewMatrix",(J,ce)=>(0,D.a)(re,ce.camera.viewMatrix))]),ee.code.add(ae.H`void main(void) { -vec3 posViewNear = (inverseProjectionMatrix * vec4(position, -1.0, 1.0)).xyz; -worldRay = (inverseViewMatrix * vec4(posViewNear, 0.0)).xyz; -gl_Position = vec4(position, 1.0, 1.0); -}`),ie.include(H.Y),ie.include(X.n),Y.include(G._,{pbrMode:$.f7.Disabled,lightingSphericalHarmonicsOrder:2}),Y.include(W.e),Y.include(Z.D),Y.include(Q.kR,{useLegacyTerrainShading:!1}),Y.include(B.j,{instancedDoublePrecision:!1,useLegacyTerrainShading:!1}),ie.uniforms.add([new te.J("cameraPosition",(J,ce)=>ce.camera.eye)]),ie.code.add(ae.H`void main() { -vec4 cloudsColor = renderClouds(normalize(worldRay), cameraPosition); -gl_FragColor = vec4((1.0 - totalFadeInOut) * cloudsColor.rgb, cloudsColor.a); -}`),Y}const re=(0,R.c)(),j=Object.freeze(Object.defineProperty({__proto__:null,build:se},Symbol.toStringTag,{value:"Module"}))},89652:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>Y,b:()=>j});var D=v(52382),R=v(13934),G=v(78925),Z=v(24255),Q=v(23164),$=v(58173),W=v(54120),B=v(62952),H=v(10109),X=v(67022),te=v(33726),ae=v(2166),oe=v(69960),le=v(17625),de=v(22355),se=v(44835),re=v(16396);function j(ee){const ie=new de.kG,{vertex:J,fragment:ce}=ie,ue=ee.output===R.H.Depth,pe=ee.hasMultipassTerrain&&(ee.output===R.H.Color||ee.output===R.H.Alpha);return(0,ae.Sv)(J,ee),ie.include(Z.w,ee),ie.include($.c,ee),ie.include(Q.R,ee),ie.attributes.add(re.T.POSITION,"vec3"),ie.varyings.add("vpos","vec3"),pe&&ie.varyings.add("depth","float"),ue&&(ie.include(W.F,ee),(0,D.Zu)(ie),(0,D.Lm)(ie)),J.code.add(le.H` - void main(void) { - vpos = position; - forwardNormalizedVertexColor(); - forwardObjectAndLayerIdColor(); - ${pe?"depth = (view * vec4(vpos, 1.0)).z;":""} - gl_Position = ${ue?le.H`transformPositionWithDepth(proj, view, vpos, nearFar, linearDepth);`:le.H`transformPosition(proj, view, vpos);`} - } - `),ie.include(G.f5,ee),pe&&ie.include(H.l,ee),ce.include(te.Y),ce.uniforms.add(new oe.N("eColor",he=>he.color)),ee.output===R.H.Highlight&&ie.include(B.bA,ee),ce.code.add(le.H` - void main() { - discardBySlice(vpos); - ${pe?"terrainDepthTest(gl_FragCoord, depth);":""} - vec4 fColor = ${ee.hasVertexColors?"vColor * eColor;":"eColor;"} - - if (fColor.a < ${le.H.float(X.b)}) { - discard; - } - - ${ee.output===R.H.Alpha?le.H`gl_FragColor = vec4(fColor.a);`:""} - - ${ee.output===R.H.Color?le.H`gl_FragColor = highlightSlice(fColor, vpos); ${ee.transparencyPassType===se.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""}`:""} - ${ee.output===R.H.Highlight?le.H`outputHighlight();`:""}; - ${ee.output===R.H.Depth?le.H`outputDepth(linearDepth);`:""}; - ${ee.output===R.H.ObjectAndLayerIdColor?le.H`outputObjectAndLayerIdColor();`:""} - } - `),ie}const Y=Object.freeze(Object.defineProperty({__proto__:null,build:j},Symbol.toStringTag,{value:"Module"}))},15261:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>xe,b:()=>ye,g:()=>ve});var D=v(94425),R=v(75224),G=v(75550),Z=v(35357),Q=v(50574),$=v(52382),W=v(13934),B=v(78925),H=v(26859),X=v(36603),te=v(58173),ae=v(21799),oe=v(51040),le=v(54120),de=v(62952),se=v(47923),re=v(2122),j=v(29052),Y=v(75819),ee=v(13146),ie=v(31166),J=v(10109),ce=v(92724),ue=v(37926),pe=v(72968),he=v(30249),me=v(67022),ge=v(93609),_e=v(22799),Ee=v(17625),De=v(22355),be=v(35387),Se=v(44835);function ye(ze){const Ke=new De.kG;Ke.include(oe.up,ze),Ke.include(ae.Bb,ze),Ke.include(te.c,ze),Ke.include(X.D,ze),Ke.include($.qj,ze),Ke.include(Z.AD,ze),Ke.include(ge.o,ze),Ke.include(B.P_,ze),Ke.include(ue.s,ze),Ke.include(Q.z,ze);const{vertex:We,fragment:Ce}=Ke;ze.pbrMode!==ce.f7.Normal&&ze.pbrMode!==ce.f7.Schematic||(Ke.include(ce.jV,ze),ze.hasNormalTexture&&Ke.include(j.Q,ze));const Be=ze.output===W.H.Shadow||ze.output===W.H.ShadowHighlight||ze.output===W.H.ShadowExludeHighlight;We.code.add(Be&&ze.componentData===Z._N.Varying?Ee.H`#define discardShadows(castShadows) { if(!castShadows) { gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`:Ee.H`#define discardShadows(castShadows) {}`);const Fe=ze.integratedMeshMode===G.O.ColorOverlay||ze.integratedMeshMode===G.O.ColorOverlayWithWater,je=Fe&&ze.output===W.H.Color&&ze.pbrMode===ce.f7.WaterOnIntegratedMesh;return Fe&&(Ke.include(ee.XP,ze),Ke.include(he.WB,ze),We.code.add(ze.spherical?Ee.H` - const float invEllipsoidRadius = ${Ee.H.float(1/(ze.ellipsoidMode===_e.U.Earth?D.sv.radius:ze.ellipsoidMode===_e.U.Mars?D.yr.radius:D.Z1.radius))}; - vec2 projectOverlay(vec3 pos) { - return pos.xy / (1.0 + invEllipsoidRadius * pos.z); - } - `:Ee.H`vec2 projectOverlay(vec3 pos) { return pos.xy; }`)),je&&(Ke.varyings.add("tbnTangent","vec3"),Ke.varyings.add("tbnBiTangent","vec3"),Ke.varyings.add("groundNormal","vec3")),We.code.add(Ee.H` - void main() { - bool castShadows; - vec4 externalColor = forwardExternalColor(castShadows); - discardShadows(castShadows); - - vertexDiscardByOpacity(externalColor.a); - - if (externalColor.a < ${Ee.H.float(me.b)}) { - // Discard this vertex - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - } - - forwardPosition(readElevationOffset()); - forwardNormal(); - forwardTextureCoordinates(); - forwardVertexColor(); - forwardLinearDepth(); - ${ze.output===W.H.ObjectAndLayerIdColor?Ee.H`forwardObjectAndLayerIdColor();`:""} - ${je?ze.spherical?Ee.H` - groundNormal = normalize(positionWorld()); - tbnTangent = normalize(cross(vec3(0.0, 0.0, 1.0), groundNormal)); - tbnBiTangent = normalize(cross(groundNormal, tbnTangent));`:Ee.H` - groundNormal = vec3(0.0, 0.0, 1.0); - tbnTangent = vec3(1.0, 0.0, 0.0); - tbnBiTangent = vec3(0.0, 1.0, 0.0);`:""} - ${Fe?Ee.H`setOverlayVTC(projectOverlay(position));`:""} - } - `),ze.output===W.H.Alpha&&(Ce.include(se.S),Ke.include(J.l,ze),Ke.include(re.P,ze),Fe&&Ce.uniforms.add(new be.A("ovColorTex",(Re,He)=>(0,he.Tw)(Re,He))),Ce.code.add(Ee.H` - void main() { - discardBySlice(vPositionWorldCameraRelative); - ${ze.hasMultipassTerrain?Ee.H`terrainDepthTest(gl_FragCoord, vPosition_view.z);`:""} - - vec4 textureColor = readBaseColorTexture(); - discardOrAdjustAlpha(textureColor); - - vec4 externalColor; - int externalColorMixMode; - readExternalColor(externalColor, externalColorMixMode); - - vec4 materialColor = computeMaterialColor( - textureColor, - externalColor, - externalColorMixMode - ); - ${Fe?Ee.H` - vec4 overlayColor = getOverlayColor(ovColorTex, vtcOverlay); - materialColor = materialColor * (1.0 - overlayColor.a) + overlayColor;`:""} - - gl_FragColor = vec4(materialColor.a); - } - `)),ze.output===W.H.Color&&(Ce.include(se.S),Ke.include(J.l,ze),Ke.include(re.P,ze),Ke.include(Y.B,ze),Ke.include(ee.XP,ze),ze.receiveShadows?(Ke.include(pe.hb,ze),Ce.code.add(Ee.H`float evaluateShadow() { -return readShadowMap(vPositionWorldCameraRelative, linearDepth); -}`)):Ce.code.add(Ee.H`float evaluateShadow() { return 0.0; }`),Fe&&Ce.uniforms.add(new be.A("ovColorTex",(Re,He)=>(0,he.Tw)(Re,He))),Ce.code.add(Ee.H` - void main() { - discardBySlice(vPositionWorldCameraRelative); - ${ze.hasMultipassTerrain?Ee.H`terrainDepthTest(gl_FragCoord, vPosition_view.z);`:""} - - vec4 textureColor = readBaseColorTexture(); - discardOrAdjustAlpha(textureColor); - - vec4 externalColor; - int externalColorMixMode; - readExternalColor(externalColor, externalColorMixMode); - - vec4 materialColor = computeMaterialColor( - textureColor, - externalColor, - externalColorMixMode - ); - ${Fe?Ee.H`vec4 overlayColor = getOverlayColor(ovColorTex, vtcOverlay);`:""} - `),ze.pbrMode===ce.f7.Normal||ze.pbrMode===ce.f7.Schematic?((0,ie.F1)(Ce),Ce.code.add(Ee.H` - ${ze.pbrMode===ce.f7.Normal?Ee.H` - applyPBRFactors(); - if (int(externalColorMixMode) == 3) { - mrr = vec3(0.0, 0.6, 0.2); - }`:""} - vec3 normalVertex = shadingNormalWorld(); - float additionalIrradiance = 0.02 * mainLightIntensity[2]; - `),Ce.code.add(ze.hasNormalTexture?Ee.H`mat3 tangentSpace = computeTangentSpace(normalVertex, vPositionWorldCameraRelative, vuv0); -vec3 shadingNormal = computeTextureNormal(tangentSpace, vuv0);`:Ee.H`vec3 shadingNormal = normalVertex;`),Ce.code.add(Ee.H`${ze.spherical?Ee.H`vec3 normalGround = normalize(positionWorld());`:Ee.H`vec3 normalGround = vec3(0.0, 0.0, 1.0);`} - `),Ce.code.add(Ee.H` - vec3 viewDir = normalize(vPositionWorldCameraRelative); - float ssao = 1.0 - occlusion * (1.0 - evaluateAmbientOcclusion()); - - ${ze.snowCover?Ee.H` - vec3 surfaceNormal = normalize(shadingNormalWorld()); - float snow = smoothstep(0.5, 0.55, dot(surfaceNormal, normalize(positionWorld()))); - materialColor.rgb = mix(materialColor.rgb, vec3(1), snow); - - shadingNormal = mix(shadingNormal, surfaceNormal, snow); - ssao = mix(ssao, 0.0, snow); - mrr = mix(mrr, vec3(0.0, 1.0, 0.04), snow); - emission = mix(emission, vec3(0.0), snow);`:""} - - ${Fe?Ee.H` materialColor = materialColor * (1.0 - overlayColor.a) + overlayColor;`:""} - - vec3 additionalLight = evaluateAdditionalLighting(ssao, positionWorld()); - vec4 shadedColor = vec4(evaluateSceneLightingPBR(shadingNormal, materialColor.rgb, evaluateShadow(), ssao, additionalLight, viewDir, normalGround, mrr, emission, additionalIrradiance), materialColor.a); - `)):(ze.receiveShadows?Ce.code.add(Ee.H`float shadow = evaluateShadow();`):ze.spherical?((0,ee.sC)(Ce),Ce.code.add(Ee.H`float additionalAmbientScale = additionalDirectedAmbientLight(positionWorld()); -float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);`)):Ce.code.add(Ee.H`float shadow = 0.0;`),je&&Ce.uniforms.add(new be.A("ovNormalTex",(Re,He)=>ve(He))),ze.snowCover&&(Ke.extensions.add("GL_OES_standard_derivatives"),Ce.code.add(Ee.H`vec3 surfaceNormal = normalize(cross(dFdx(vPositionWorldCameraRelative), dFdy(vPositionWorldCameraRelative))); -float snow = smoothstep(0.5, 0.55, dot(surfaceNormal, normalize(positionWorld()))); -materialColor.rgb = mix(materialColor.rgb, vec3(1), snow);`)),Ce.code.add(Ee.H` - float ambientOcclusion = evaluateAmbientOcclusion(); - vec3 additionalLight = evaluateAdditionalLighting(ambientOcclusion, positionWorld()); - - ${Fe?Ee.H` materialColor = materialColor * (1.0 - overlayColor.a) + overlayColor;`:""} - - vec4 shadedColor = vec4(evaluateSceneLighting(shadingNormalWorld(), materialColor.rgb, shadow, ambientOcclusion, additionalLight), materialColor.a); - ${je?Ee.H` - vec4 overlayWaterMask = getOverlayColor(ovNormalTex, vtcOverlay); - float waterNormalLength = length(overlayWaterMask); - if (waterNormalLength > 0.95) { - mat3 tbnMatrix = mat3(tbnTangent, tbnBiTangent, groundNormal); - vec4 waterColorLinear = getOverlayWaterColor(overlayWaterMask, overlayColor, -normalize(vPositionWorldCameraRelative), shadow, groundNormal, tbnMatrix, vPosition_view, positionWorld()); - vec4 waterColorNonLinear = delinearizeGamma(vec4(waterColorLinear.xyz, 1.0)); - // un-gamma the ground color to mix in linear space - shadedColor = mix(shadedColor, waterColorNonLinear, waterColorLinear.w); - }`:""} - `)),Ce.code.add(Ee.H` - gl_FragColor = highlightSlice(shadedColor, vPositionWorldCameraRelative); - ${ze.transparencyPassType===Se.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - } - `)),(ze.output===W.H.Depth||Be)&&(Ke.include(le.F,ze),Ce.code.add(Ee.H`void main() { -discardBySlice(vPositionWorldCameraRelative); -vec4 textureColor = readBaseColorTexture(); -discardOrAdjustAlpha(textureColor); -outputDepth(linearDepth); -}`)),ze.output===W.H.Normal&&(Ke.include(Y.B,ze),Ce.code.add(Ee.H` - void main() { - discardBySlice(vPositionWorldCameraRelative); - - vec4 textureColor = readBaseColorTexture(); - discardOrAdjustAlpha(textureColor); - - // note: the alpha component needs to be 1.0 in order for this material - // to influence ambient occlusion, see the ssao fragment shader - float alpha = ${ze.normalType===H.h.Ground?"0.0":"1.0"}; - gl_FragColor = vec4(vec3(.5) + .5 * shadingNormal_view(), alpha); - } - `)),ze.output===W.H.ObjectAndLayerIdColor&&Ke.fragment.code.add(Ee.H`void main() { -discardBySlice(vPositionWorldCameraRelative); -vec4 textureColor = readBaseColorTexture(); -discardOrAdjustAlpha(textureColor); -outputObjectAndLayerIdColor(); -}`),ze.output===W.H.Highlight&&(Ke.include(de.bA,ze),Ce.code.add(Ee.H` - void main() { - discardBySlice(vPositionWorldCameraRelative); - - vec4 textureColor = readBaseColorTexture(); - discardOrAdjustAlpha(textureColor); - - ${Fe?Ee.H` - vec4 overlayColor = getCombinedOverlayColor(); - if (overlayColor.a == 0.0) { - gl_FragColor = vec4(0.0); - return; - }`:""} - - outputHighlight(); - } - `)),Ke}function ve(ze){return 0===ze.overlays.length?null:ze.overlays[R.fu.INNER].getValidTexture(R.NH.Water)}const xe=Object.freeze(Object.defineProperty({__proto__:null,build:ye,getOverlayNormalTexture:ve},Symbol.toStringTag,{value:"Module"}))},70264:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>$,a:()=>B,b:()=>W});var D=v(98071),R=v(65787),G=v(17625),Z=v(22355),Q=v(35387);class $ extends G.K{constructor(){super(...arguments),this.opacity=1}}function W(H){const X=new Z.kG;return X.include(D.k),X.fragment.uniforms.add(new Q.A("tex",te=>te.texture)),H.hasOpacityFactor&&X.fragment.uniforms.add(new R.p("opacity",te=>te.opacity)),X.fragment.code.add(G.H` - void main() { - gl_FragColor = texture2D(tex, uv) ${H.hasOpacityFactor?"* opacity":""}; - }`),X}const B=Object.freeze(Object.defineProperty({__proto__:null,CompositingPassParameters:$,build:W},Symbol.toStringTag,{value:"Module"}))},96160:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>Fe,b:()=>Be});var D=v(62208),R=v(43703),G=v(52382),Z=v(73132),Q=v(13934),$=v(78925),W=v(24255),B=v(60355),H=v(26859),X=v(84833),te=v(99579),ae=v(36603),oe=v(58173),le=v(21799),de=v(66085),se=v(58208),re=v(29052),j=v(54662),Y=v(13146),ee=v(31166),ie=v(10109),J=v(96395),ce=v(98898),ue=v(92724),pe=v(72968),he=v(70489),me=v(92836),ge=v(67022),_e=v(93609),Ee=v(28137),De=v(2166),be=v(97139),Se=v(69960),ye=v(65787),ve=v(17625),xe=v(63123),ze=v(22355),Ke=v(35387),We=v(44835),Ce=v(16396);function Be(je){const Re=new ze.kG,{vertex:He,fragment:Ie,varyings:Ge}=Re;return(0,De.Sv)(He,je),Re.include(X.f),Ge.add("vpos","vec3"),Re.include(me.k,je),Re.include(B.f,je),Re.include(de.L,je),je.hasColorTextureTransform&&Re.include(he.av),je.output!==Q.H.Color&&je.output!==Q.H.Alpha||(je.hasNormalTextureTransform&&Re.include(he.NI),je.hasEmissionTextureTransform&&Re.include(he.R5),je.hasOcclusionTextureTransform&&Re.include(he.jF),je.hasMetallicRoughnessTextureTransform&&Re.include(he.DT),(0,De.hY)(He,je),Re.include(H.O,je),Re.include(W.w,je),je.normalType===H.h.Attribute&&je.offsetBackfaces&&Re.include(Z.w),Re.include(re.Q,je),Re.include(le.Bb,je),je.instancedColor&&Re.attributes.add(Ce.T.INSTANCECOLOR,"vec4"),Ge.add("localvpos","vec3"),Re.include(ae.D,je),Re.include(G.qj,je),Re.include(te.R,je),Re.include(oe.c,je),He.uniforms.add(new Se.N("externalColor",Pe=>Pe.externalColor)),Ge.add("vcolorExt","vec4"),je.hasMultipassTerrain&&Ge.add("depth","float"),je.hasModelTransformation&&He.uniforms.add(new xe.g("model",Pe=>(0,D.pC)(Pe.modelTransformation)?Pe.modelTransformation:R.I)),He.code.add(ve.H` - void main(void) { - forwardNormalizedVertexColor(); - vcolorExt = externalColor; - ${je.instancedColor?"vcolorExt *= instanceColor;":""} - vcolorExt *= vvColor(); - vcolorExt *= getSymbolColor(); - forwardColorMixMode(); - - if (vcolorExt.a < ${ve.H.float(ge.b)}) { - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - } else { - vpos = calculateVPos(); - localvpos = vpos - view[3].xyz; - vpos = subtractOrigin(vpos); - ${je.normalType===H.h.Attribute?ve.H`vNormalWorld = dpNormal(vvLocalNormal(normalModel()));`:""} - vpos = addVerticalOffset(vpos, localOrigin); - ${je.hasVertexTangents?"vTangent = dpTransformVertexTangent(tangent);":""} - gl_Position = transformPosition(proj, view, ${je.hasModelTransformation?"model,":""} vpos); - ${je.normalType===H.h.Attribute&&je.offsetBackfaces?"gl_Position = offsetBackfacingClipPosition(gl_Position, vpos, vNormalWorld, cameraPosition);":""} - } - - ${je.hasMultipassTerrain?"depth = (view * vec4(vpos, 1.0)).z;":""} - forwardLinearDepth(); - forwardTextureCoordinates(); - ${je.hasColorTextureTransform?ve.H`forwardColorUV();`:""} - ${je.hasNormalTextureTransform?ve.H`forwardNormalUV();`:""} - ${je.hasEmissionTextureTransform?ve.H`forwardEmissiveUV();`:""} - ${je.hasOcclusionTextureTransform?ve.H`forwardOcclusionUV();`:""} - ${je.hasMetallicRoughnessTextureTransform?ve.H`forwardMetallicRoughnessUV();`:""} - } - `)),je.output===Q.H.Alpha&&(Re.include($.f5,je),Re.include(_e.z,je),Re.include(ie.l,je),Ie.uniforms.add([new ye.p("opacity",Pe=>Pe.opacity),new ye.p("layerOpacity",Pe=>Pe.layerOpacity)]),je.hasColorTexture&&Ie.uniforms.add(new Ke.A("tex",Pe=>Pe.texture)),Ie.include(Ee.y),Ie.code.add(ve.H` - void main() { - discardBySlice(vpos); - ${je.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - ${je.hasColorTexture?ve.H` - vec4 texColor = texture2D(tex, ${je.hasColorTextureTransform?ve.H`colorUV`:ve.H`vuv0`}); - ${je.textureAlphaPremultiplied?"texColor.rgb /= texColor.a;":""} - discardOrAdjustAlpha(texColor);`:ve.H`vec4 texColor = vec4(1.0);`} - ${je.hasVertexColors?ve.H`float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:ve.H`float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`} - gl_FragColor = vec4(opacity_); - } - `)),je.output===Q.H.Color&&(Re.include($.f5,je),Re.include(Y.XP,je),Re.include(j.K,je),Re.include(_e.z,je),Re.include(je.instancedDoublePrecision?pe.hb:pe.XE,je),Re.include(ie.l,je),(0,De.hY)(Ie,je),Ie.uniforms.add([He.uniforms.get("localOrigin"),new be.J("ambient",Pe=>Pe.ambient),new be.J("diffuse",Pe=>Pe.diffuse),new ye.p("opacity",Pe=>Pe.opacity),new ye.p("layerOpacity",Pe=>Pe.layerOpacity)]),je.hasColorTexture&&Ie.uniforms.add(new Ke.A("tex",Pe=>Pe.texture)),Re.include(ue.jV,je),Re.include(ce.T,je),Ie.include(Ee.y),Re.include(J.k,je),(0,Y.PN)(Ie),(0,Y.sC)(Ie),(0,ee.F1)(Ie),Ie.code.add(ve.H` - void main() { - discardBySlice(vpos); - ${je.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - ${je.hasColorTexture?ve.H` - vec4 texColor = texture2D(tex, ${je.hasColorTextureTransform?ve.H`colorUV`:ve.H`vuv0`}); - ${je.textureAlphaPremultiplied?"texColor.rgb /= texColor.a;":""} - discardOrAdjustAlpha(texColor);`:ve.H`vec4 texColor = vec4(1.0);`} - shadingParams.viewDirection = normalize(vpos - cameraPosition); - ${je.normalType===H.h.ScreenDerivative?ve.H` - vec3 normal = screenDerivativeNormal(localvpos);`:ve.H` - shadingParams.normalView = vNormalWorld; - vec3 normal = shadingNormal(shadingParams);`} - ${je.pbrMode===ue.f7.Normal?"applyPBRFactors();":""} - float ssao = evaluateAmbientOcclusionInverse(); - ssao *= getBakedOcclusion(); - - vec3 posWorld = vpos + localOrigin; - - float additionalAmbientScale = additionalDirectedAmbientLight(posWorld); - float shadow = ${je.receiveShadows?"readShadowMap(vpos, linearDepth)":je.spherical?"lightingGlobalFactor * (1.0 - additionalAmbientScale)":"0.0"}; - - vec3 matColor = max(ambient, diffuse); - ${je.hasVertexColors?ve.H` - vec3 albedo = mixExternalColor(vColor.rgb * matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode)); - float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:ve.H` - vec3 albedo = mixExternalColor(matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode)); - float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`} - ${je.hasNormalTexture?ve.H` - mat3 tangentSpace = ${je.hasVertexTangents?"computeTangentSpace(normal);":"computeTangentSpace(normal, vpos, vuv0);"} - vec3 shadingNormal = computeTextureNormal(tangentSpace, vuv0);`:ve.H`vec3 shadingNormal = normal;`} - vec3 normalGround = ${je.spherical?ve.H`normalize(posWorld);`:ve.H`vec3(0.0, 0.0, 1.0);`} - - ${je.snowCover?ve.H` - float snow = smoothstep(0.5, 0.55, dot(normal, normalGround)); - albedo = mix(albedo, vec3(1), snow); - shadingNormal = mix(shadingNormal, normal, snow); - ssao = mix(ssao, 1.0, snow);`:""} - - vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor; - - ${je.pbrMode===ue.f7.Normal||je.pbrMode===ue.f7.Schematic?ve.H` - float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * mainLightIntensity[2]; - ${je.snowCover?ve.H` - mrr = mix(mrr, vec3(0.0, 1.0, 0.04), snow); - emission = mix(emission, vec3(0.0), snow);`:""} - - vec3 shadedColor = evaluateSceneLightingPBR(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight, shadingParams.viewDirection, normalGround, mrr, emission, additionalAmbientIrradiance);`:ve.H`vec3 shadedColor = evaluateSceneLighting(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight);`} - gl_FragColor = highlightSlice(vec4(shadedColor, opacity_), vpos); - ${je.transparencyPassType===We.A.Color?ve.H`gl_FragColor = premultiplyAlpha(gl_FragColor);`:""} - } - `)),Re.include(se.s,je),Re}const Fe=Object.freeze(Object.defineProperty({__proto__:null,build:Be},Symbol.toStringTag,{value:"Module"}))},82488:(nt,Ae,v)=>{"use strict";v.d(Ae,{E:()=>B,b:()=>W});var D=v(17625),R=v(22355),G=v(35387),Z=v(16396),Q=v(67093);function W(){const H=new R.kG,{attributes:X,varyings:te,vertex:ae,fragment:oe}=H;return X.add(Z.T.POSITION,"vec2"),(0,Q.dz)(ae),te.add("fTexCoord","vec2"),te.add("fOffset[3]","vec4"),ae.code.add(D.H`void EdgeDetectEdgeDetectionVS( vec2 texcoord ) { -fOffset[0] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 ); -fOffset[1] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 ); -fOffset[2] = texcoord.xyxy + resolution.xyxy * vec4( -2.0, 0.0, 0.0, 2.0 ); -} -void main() { -fTexCoord = (position + 1.0) * 0.5; -gl_Position = vec4(position, 0, 1); -EdgeDetectEdgeDetectionVS(fTexCoord); -}`),oe.uniforms.add(new G.A("tColor",le=>le.colorTexture)),oe.code.add(D.H` - vec4 EdgeDetectColorEdgeDetectionPS(vec2 texcoord, vec4 offset[3], sampler2D colorTex) { - vec2 threshold = vec2( ${D.H.float(.05)} ); - - // Calculate color deltas: - vec4 delta; - vec3 C = texture2D( colorTex, texcoord ).rgb; - - vec3 Cleft = texture2D( colorTex, offset[0].xy ).rgb; - vec3 t = abs( C - Cleft ); - delta.x = max( max( t.r, t.g ), t.b ); - - vec3 Ctop = texture2D( colorTex, offset[0].zw ).rgb; - t = abs( C - Ctop ); - delta.y = max( max( t.r, t.g ), t.b ); - - // We do the usual threshold: - vec2 edges = step( threshold, delta.xy ); - - // Then discard if there is no edge: - if ( dot( edges, vec2( 1.0, 1.0 ) ) == 0.0 ) - discard; - - // Calculate right and bottom deltas: - vec3 Cright = texture2D( colorTex, offset[1].xy ).rgb; - t = abs( C - Cright ); - delta.z = max( max( t.r, t.g ), t.b ); - - vec3 Cbottom = texture2D( colorTex, offset[1].zw ).rgb; - t = abs( C - Cbottom ); - delta.w = max( max( t.r, t.g ), t.b ); - - // Calculate the maximum delta in the direct neighborhood: - float maxDelta = max( max( max( delta.x, delta.y ), delta.z ), delta.w ); - - // Calculate left-left and top-top deltas: - vec3 Cleftleft = texture2D( colorTex, offset[2].xy ).rgb; - t = abs( C - Cleftleft ); - delta.z = max( max( t.r, t.g ), t.b ); - - vec3 Ctoptop = texture2D( colorTex, offset[2].zw ).rgb; - t = abs( C - Ctoptop ); - delta.w = max( max( t.r, t.g ), t.b ); - - // Calculate the final maximum delta: - maxDelta = max( max( maxDelta, delta.z ), delta.w ); - - // Local contrast adaptation in action: - edges.xy *= step( maxDelta, float(${D.H.float(2)}) * delta.xy ); - - return vec4( edges, 0.0, 0.0 ); - } - - void main() { - gl_FragColor = EdgeDetectColorEdgeDetectionPS(fTexCoord, fOffset, tColor); - } - `),H}const B=Object.freeze(Object.defineProperty({__proto__:null,build:W},Symbol.toStringTag,{value:"Module"}))},71964:(nt,Ae,v)=>{"use strict";v.d(Ae,{E:()=>ce,b:()=>ee});var D=v(67831),R=v(99770),G=v(78925),Z=v(10109),Q=v(95285),$=v(69960),W=v(65787),B=v(17625),H=v(22355),X=v(85930),te=v(16396),ae=v(57008),oe=v(98828),le=v(72175),de=v(98412),se=v(73105),re=v(10967),j=v(82716),Y=v(69276);function ee(ue){const pe=new H.kG,{vertex:he,fragment:me}=pe;return ue.antialiasing&&(he.code.add(B.H`#define ANTIALIASING 1`),me.code.add(B.H`#define ANTIALIASING 1`)),ue.legacy&&he.uniforms.add([new J("model"),new J("localView")]),pe.include(ae.g,ue),pe.include(se.UR,ue),pe.include(re.B,ue),pe.include(Y.H,ue),pe.include(j.N,ue),pe.include(G.f5,ue),pe.include(le.o,ue),pe.include(oe.S,ue),pe.include(de.l,ue),pe.include(Z.l,ue),pe.varyings.add("vColor","vec4"),pe.varyings.add("vRadius","float"),pe.varyings.add("vPosition","vec3"),pe.varyings.add("vWorldPosition","vec3"),pe.varyings.add("vViewPos","vec3"),pe.varyings.add("vLineLengthPixels","float"),pe.varyings.add("vSizeFalloffFactor","float"),he.uniforms.add([new Q.A("pixelToNDC",(ge,_e)=>(0,D.s)(ie,2/_e.camera.fullViewport[2],2/_e.camera.fullViewport[3])),new $.N("viewport",(ge,_e)=>_e.camera.fullViewport),new W.p("pixelRatio",(ge,_e)=>_e.camera.pixelRatio)]),pe.attributes.add(te.T.POSITION0,"vec3"),pe.attributes.add(te.T.POSITION1,"vec3"),pe.attributes.add(te.T.VARIANTOFFSET,"float"),pe.attributes.add(te.T.VARIANTSTROKE,"float"),pe.attributes.add(te.T.VARIANTEXTENSION,"float"),he.code.add(B.H`const float opaqueCutoff = 1.0 / 255.0; -void calculateGeometricOutputs(vec3 viewPosV0, vec3 viewPosV1, vec3 worldPosV0, vec3 worldPosV1, vec3 worldNormal, UnpackedAttributes unpackedAttributes) { -vec2 sideness = unpackedAttributes.sideness; -vec2 sidenessNorm = unpackedAttributes.sidenessNorm; -vWorldPosition = mix(worldPosV0, worldPosV1, sidenessNorm.y).xyz; -vec3 viewPos = mix(viewPosV0, viewPosV1, sidenessNorm.y); -vViewPos = viewPos; -vec4 projPosV0 = projFromViewPosition(viewPosV0); -vec4 projPosV1 = projFromViewPosition(viewPosV1); -vec4 projPos = projFromViewPosition(viewPos); -vec3 screenSpaceLineNDC = (projPosV1.xyz / projPosV1.w - projPosV0.xyz / projPosV0.w); -vec2 ndcToPixel = viewport.zw * 0.5; -vec2 screenSpaceLinePixels = screenSpaceLineNDC.xy * ndcToPixel; -float lineLengthPixels = length(screenSpaceLinePixels); -float dzPerPixel = screenSpaceLineNDC.z / lineLengthPixels; -vec2 screenSpaceDirection = screenSpaceLinePixels / lineLengthPixels; -vec2 perpendicularScreenSpaceDirection = vec2(screenSpaceDirection.y, -screenSpaceDirection.x) * sideness.x; -float falloffFactor = distanceBasedPerspectiveFactor(-viewPos.z) * pixelRatio; -float lineWidthPixels = unpackedAttributes.lineWidthPixels * falloffFactor; -float extensionLengthPixels = calculateExtensionLength(unpackedAttributes.extensionLengthPixels, lineLengthPixels) * falloffFactor; -float lineAmplitudePixels = calculateLineAmplitude(unpackedAttributes) * pixelRatio; -vSizeFalloffFactor = falloffFactor; -float lineWidthAndAmplitudePixels = lineWidthPixels + lineAmplitudePixels + lineAmplitudePixels; -float extendedLineLengthPixels = lineLengthPixels + extensionLengthPixels + extensionLengthPixels; -#ifdef ANTIALIASING -const float aaPaddingPixels = 1.0; -float halfAAPaddedLineWidthAndAmplitudePixels = lineWidthAndAmplitudePixels * 0.5 + aaPaddingPixels; -float aaPaddedRoundedCapSizePixels = lineWidthPixels * 0.5 + aaPaddingPixels; -#else -float halfAAPaddedLineWidthAndAmplitudePixels = max(lineWidthAndAmplitudePixels, 1.0) * 0.5; -float aaPaddedRoundedCapSizePixels = max(lineWidthPixels, 1.0) * 0.5; -#endif -vec2 halfAAPaddedLineWidthAndAmplitudeNDC = halfAAPaddedLineWidthAndAmplitudePixels * pixelToNDC; -vec2 aaPaddedRoundedCapSizeNDC = aaPaddedRoundedCapSizePixels * pixelToNDC; -vec2 extensionLengthNDC = extensionLengthPixels * pixelToNDC; -vec2 ndcOffset = ( -screenSpaceDirection * sideness.y * (aaPaddedRoundedCapSizeNDC + extensionLengthNDC) -+ perpendicularScreenSpaceDirection * halfAAPaddedLineWidthAndAmplitudeNDC -); -projPos.xy += ndcOffset * projPos.w; -projPos.z += (dzPerPixel * (aaPaddedRoundedCapSizePixels + extensionLengthPixels)) * sideness.y * projPos.w; -projPos = adjustProjectedPosition(projPos, worldNormal, 1.0 + max((lineWidthAndAmplitudePixels - 1.0) * 0.5, 0.0)); -float aaPaddedLineWithCapsLengthPixels = extendedLineLengthPixels + aaPaddedRoundedCapSizePixels + aaPaddedRoundedCapSizePixels; -float pixelPositionAlongLine = aaPaddedLineWithCapsLengthPixels * sidenessNorm.y - aaPaddedRoundedCapSizePixels; -vPosition = vec3( -halfAAPaddedLineWidthAndAmplitudePixels * sideness.x, -pixelPositionAlongLine, -pixelPositionAlongLine / extendedLineLengthPixels -); -vRadius = lineWidthPixels * 0.5; -vLineLengthPixels = extendedLineLengthPixels; -discardShortEdges(unpackedAttributes, lineLengthPixels); -gl_Position = projPos; -} -void main() { -ComponentData component = readComponentData(); -UnpackedAttributes unpackedAttributes = unpackAttributes(component); -vec3 worldPosV0, worldPosV1, viewPosV0, viewPosV1; -worldAndViewFromModelPosition(position0, component.verticalOffset, worldPosV0, viewPosV0); -worldAndViewFromModelPosition(position1, component.verticalOffset, worldPosV1, viewPosV1); -vColor = component.color; -if (vColor.a < opaqueCutoff) { -gl_Position = vec4(10.0, 10.0, 10.0, 1.0); -return; -} -if (discardNonSilhouetteEdges(viewPosV0, worldPosV0)) { -return; -} -calculateGeometricOutputs(viewPosV0, viewPosV1, worldPosV0, worldPosV1, worldNormal(), unpackedAttributes); -calculateStyleOutputs(unpackedAttributes); -}`),pe.fragment.code.add(B.H` - vec2 lineWithCapsDistance(float radius, vec2 position, float lineLength) { - float lineOffset = calculateLineOffset(); - float positionX = position.x - lineOffset; - - if (radius < 1.0) { - // Handle this specifically for subpixel sizes: - // 1. Compute correct coverage (note coverage is computed by - // 0.5 - dist, so we make sure that that will lead to correct - // subpixel coverage - // 2. Ignore rounded caps - float coverageX = clamp(min(radius, positionX + 0.5) - max(-radius, positionX - 0.5), 0.0, 1.0); - float coverageY = clamp(min(lineLength, position.y + 0.5) - max(0.0, position.y - 0.5), 0.0, 1.0); - - float coverage = min(coverageX, coverageY); - - return vec2(0.5 - coverage, 0.0); - } - else { - // Between -radius -> 0 for start cap, 0 for line, 0 -> radius - float positionOnCap = position.y - clamp(position.y, 0.0, lineLength); - - vec2 lineToPosition = vec2(positionX, positionOnCap); - return vec2(length(lineToPosition) - radius, positionOnCap / radius); - } - } - - void main() { - ${ue.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, vViewPos.z);":""} - float radius = vRadius * calculateLinePressure(); - - vec2 distance = lineWithCapsDistance(radius, vPosition.xy, vLineLengthPixels); - float coverage = clamp(0.5 - distance.x, 0.0, 1.0); - - discardByCoverage(radius, coverage); - discardBySlice(vWorldPosition); - - float alpha = vColor.a * coverage; - - gl_FragColor = vec4(vColor.rgb, alpha); - - } - `),pe}const ie=(0,R.a)();class J extends X.x{constructor(pe){super(pe,"mat4")}}const ce=Object.freeze(Object.defineProperty({__proto__:null,build:ee},Symbol.toStringTag,{value:"Module"}))},41918:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>de,H:()=>j,b:()=>se});var D=v(28347),R=v(43703),G=v(28093),Z=v(36603),Q=v(47923),$=v(96896),W=v(95285),B=v(97139),H=v(65787),X=v(17625),te=v(63123),ae=v(22355),oe=v(35387),le=v(16396);class de extends X.K{constructor(){super(...arguments),this.fogColor=(0,G.c)(),this.hazeColor=(0,G.c)(),this.fogStrength=4e-6,this.hazeStrength=4e-6,this.atmosphereC=1}}function se(Y){const ee=new ae.kG;ee.attributes.add(le.T.POSITION,"vec2"),ee.include(Z.D,{textureCoordinateType:Z.N.Default}),ee.varyings.add("worldRay","vec3"),ee.varyings.add("eyeDir","vec3");const{vertex:ie,fragment:J}=ee;return ie.uniforms.add([new te.g("inverseProjectionMatrix",(ce,ue)=>ue.camera.inverseProjectionMatrix),new te.g("inverseViewMatrix",(ce,ue)=>(0,D.a)(re,ue.camera.viewMatrix))]),ie.code.add(X.H`void main(void) { -vec3 posViewNear = (inverseProjectionMatrix * vec4(position, -1, 1)).xyz; -eyeDir = posViewNear; -worldRay = (inverseViewMatrix * vec4(posViewNear, 0)).xyz; -forwardTextureCoordinates(); -gl_Position = vec4(position, 1, 1); -}`),J.uniforms.add(new H.p("atmosphereC",ce=>ce.atmosphereC)),J.uniforms.add(new B.J("cameraPosition",(ce,ue)=>ue.camera.eye)),J.uniforms.add(new W.A("nearFar",(ce,ue)=>ue.camera.nearFar)),J.uniforms.add(new oe.A("depthTex",ce=>ce.depthTexture)),J.uniforms.add(new H.p("fogStrength",ce=>Y.haze?ce.hazeStrength:ce.fogStrength)),J.uniforms.add(new H.p("fogAmount",ce=>Y.haze?ce.hazeAmount:ce.fogAmount)),J.uniforms.add(new B.J("fogColor",ce=>Y.haze?ce.hazeColor:ce.fogColor)),ee.include($.D),J.include(Q.S),J.code.add(X.H`vec2 sphereIntersect(vec3 start, vec3 dir) { -float a = dot(dir, dir); -float b = 2.0 * dot(dir, start); -float d = (b * b) - 4.0 * a * atmosphereC; -if (d < 0.0) { -return vec2(1e5, -1e5); -} -return vec2((-b - sqrt(d)) / (2.0 * a), (-b + sqrt(d)) / (2.0 * a)); -}`),J.code.add(X.H`vec4 applyFog(float dist, vec3 rayDir){ -if(dist == -1.0){ -vec2 rayAtmosphereIntersect = sphereIntersect(cameraPosition, rayDir); -dist = 0.055 * rayAtmosphereIntersect.y; -} -float fogAmount = fogAmount * (1.0 - exp(-dist * fogStrength)); -return vec4(fogAmount * fogColor, fogAmount); -}`),J.code.add(X.H` - vec3 tonemapACES(vec3 x) { - return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0); - } - - void main() { - vec3 rayDir = normalize(worldRay); - float terrainDepth = -1.0; - - float depthSample = texture2D(depthTex, vuv0).r; - float zNorm = 2.0 * depthSample - 1.0; - float linDepth = 2.0 * nearFar[0] * nearFar[1] / (nearFar[1] + nearFar[0] - zNorm * (nearFar[1] - nearFar[0])); - if(depthSample < 1.0 && depthSample > 0.0){ - vec3 cameraSpaceRay = normalize(eyeDir); - cameraSpaceRay /= cameraSpaceRay.z; - cameraSpaceRay *= linDepth; - terrainDepth = max(0.0, length(cameraSpaceRay)); - } - - ${Y.haze?X.H` - if(terrainDepth == -1.0){ - gl_FragColor = vec4(0); - return; - }`:""} - - vec4 fog = applyFog(terrainDepth, rayDir); - - gl_FragColor = delinearizeGamma(vec4(tonemapACES(fog.rgb), fog.a)); - } - `),ee}const re=(0,R.c)(),j=Object.freeze(Object.defineProperty({__proto__:null,FogHazePassParameters:de,build:se},Symbol.toStringTag,{value:"Module"}))},19982:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>Q,a:()=>W,b:()=>$});var D=v(98071),R=v(17625),G=v(22355),Z=v(35387);class Q extends R.K{}function $(){const B=new G.kG;return B.include(D.k),B.fragment.uniforms.add(new Z.A("tex",H=>H.texture)),B.fragment.code.add(R.H`void main() { -gl_FragColor = vec4(1.0 - texture2D(tex, uv).a); -}`),B}const W=Object.freeze(Object.defineProperty({__proto__:null,HUDCompositingPassParameters:Q,build:$},Symbol.toStringTag,{value:"Module"}))},6467:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>ye,b:()=>_e,c:()=>De});var D=v(62208),R=v(67831),G=v(99770),Z=v(4794),Q=v(8782),$=v(13934),W=v(78925),B=v(23164),H=v(35283),X=v(97347),te=v(27776),ae=v(62952),oe=v(92836),le=v(67022),de=v(33726),se=v(19278),re=v(71850),j=v(95285),Y=v(69960),ee=v(48565),ie=v(65787),J=v(7090),ce=v(17625),ue=v(22355),pe=v(35387),he=v(44835),me=v(16396),ge=v(41857);function _e(ve){const xe=new ue.kG,ze=ve.signedDistanceFieldEnabled;if(xe.include(H.H),xe.include(X.R,ve),xe.include(W.f5,ve),ve.occlusionPass)return xe.include(te.R,ve),xe;const{vertex:Ke,fragment:We}=xe;xe.include(re.cK),We.include(se.n),We.include(de.Y),xe.include(oe.k,ve),xe.include(B.R,ve),xe.varyings.add("vcolor","vec4"),xe.varyings.add("vtc","vec2"),xe.varyings.add("vsize","vec2"),ve.binaryHighlightOcclusionEnabled&&xe.varyings.add("voccluded","float"),Ke.uniforms.add([new Y.N("viewport",(Re,He)=>He.camera.fullViewport),new j.A("screenOffset",(Re,He)=>(0,R.s)(Se,2*Re.screenOffset[0]*He.camera.pixelRatio,2*Re.screenOffset[1]*He.camera.pixelRatio)),new j.A("anchorPosition",Re=>De(Re)),new Y.N("materialColor",Re=>Re.color),new ie.p("pixelRatio",(Re,He)=>He.camera.pixelRatio)]),ze&&(Ke.uniforms.add(new Y.N("outlineColor",Re=>Re.outlineColor)),We.uniforms.add([new Y.N("outlineColor",Re=>Ee(Re)?Re.outlineColor:Z.Z),new ie.p("outlineSize",Re=>Ee(Re)?Re.outlineSize:0)])),ve.hasScreenSizePerspective&&((0,re.ww)(Ke),(0,re.m8)(Ke)),(ve.debugDrawLabelBorder||ve.binaryHighlightOcclusionEnabled)&&xe.varyings.add("debugBorderCoords","vec4"),xe.attributes.add(me.T.UV0,"vec2"),xe.attributes.add(me.T.COLOR,"vec4"),xe.attributes.add(me.T.SIZE,"vec2"),xe.attributes.add(me.T.AUXPOS2,"vec4"),Ke.code.add(ce.H` - void main(void) { - ProjectHUDAux projectAux; - vec4 posProj = projectPositionHUD(projectAux); - forwardObjectAndLayerIdColor(); - - if (rejectBySlice(projectAux.posModel)) { - // Project outside of clip plane - gl_Position = vec4(1e038, 1e038, 1e038, 1.0); - return; - } - vec2 inputSize; - ${ve.hasScreenSizePerspective?ce.H` - inputSize = screenSizePerspectiveScaleVec2(size, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspective); - vec2 screenOffsetScaled = screenSizePerspectiveScaleVec2(screenOffset, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspectiveAlignment); - `:ce.H` - inputSize = size; - vec2 screenOffsetScaled = screenOffset;`} - - ${ve.vvSize?"inputSize *= vvScale(auxpos2).xx;":""} - - vec2 combinedSize = inputSize * pixelRatio; - vec4 quadOffset = vec4(0.0); - - ${ve.occlusionTestEnabled||ve.binaryHighlightOcclusionEnabled?"bool visible = testVisibilityHUD(posProj);":""} - - ${ve.binaryHighlightOcclusionEnabled?"voccluded = visible ? 0.0 : 1.0;":""} - `);const Ce=ce.H`vec2 uv01 = floor(uv0); -vec2 uv = uv0 - uv01; -quadOffset.xy = ((uv01 - anchorPosition) * 2.0 * combinedSize + screenOffsetScaled) / viewport.zw * posProj.w;`,Be=ve.pixelSnappingEnabled?ze?ce.H`posProj = alignToPixelOrigin(posProj, viewport.zw) + quadOffset;`:ce.H`posProj += quadOffset; -if (inputSize.x == size.x) { -posProj = alignToPixelOrigin(posProj, viewport.zw); -}`:ce.H`posProj += quadOffset;`;ve.vvColor&&Ke.uniforms.add([new ee.b("vvColorColors",Re=>Re.vvColorColors,ge.x),new J.O("vvColorValues",Re=>Re.vvColorValues,ge.x)]),Ke.uniforms.add(new j.A("textureCoordinateScaleFactor",Re=>(0,D.pC)(Re.texture)&&(0,D.pC)(Re.texture.descriptor.textureCoordinateScaleFactor)?Re.texture.descriptor.textureCoordinateScaleFactor:G.O)),Ke.code.add(ce.H` - ${ve.occlusionTestEnabled?"if (visible) {":""} - ${Ce} - ${ve.vvColor?"vcolor = vvGetColor(auxpos2, vvColorValues, vvColorColors) * materialColor;":"vcolor = color / 255.0 * materialColor;"} - - bool alphaDiscard = vcolor.a < ${ce.H.float(le.b)}; - ${ze?`alphaDiscard = alphaDiscard && outlineColor.a < ${ce.H.float(le.b)};`:""} - if (alphaDiscard) { - // "early discard" if both symbol color (= fill) and outline color (if applicable) are transparent - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - } else { - ${Be} - gl_Position = posProj; - } - - vtc = uv * textureCoordinateScaleFactor; - - ${ve.debugDrawLabelBorder?"debugBorderCoords = vec4(uv01, 1.5 / combinedSize);":""} - vsize = inputSize; - ${ve.occlusionTestEnabled?ce.H`} else { vtc = vec2(0.0); - ${ve.debugDrawLabelBorder?"debugBorderCoords = vec4(0.5, 0.5, 1.5 / combinedSize);}":"}"}`:""} - } - `),We.uniforms.add(new pe.A("tex",Re=>Re.texture));const Fe=ve.debugDrawLabelBorder?ce.H`(isBorder > 0.0 ? 0.0 : ${ce.H.float(le.F)})`:ce.H.float(le.F),je=ce.H` - ${ve.debugDrawLabelBorder?ce.H` - float isBorder = float(any(lessThan(debugBorderCoords.xy, debugBorderCoords.zw)) || any(greaterThan(debugBorderCoords.xy, 1.0 - debugBorderCoords.zw)));`:""} - - ${ze?ce.H` - vec4 fillPixelColor = vcolor; - - // Attempt to sample texel centers to avoid that thin cross outlines - // disappear with large symbol sizes. - // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/7058#issuecomment-603041 - const float txSize = ${ce.H.float(Q.Ph)}; - const float texelSize = 1.0 / txSize; - // Calculate how much we have to add/subtract to/from each texel to reach the size of an onscreen pixel - vec2 scaleFactor = (vsize - txSize) * texelSize; - vec2 samplePos = vtc + (vec2(1.0, -1.0) * texelSize) * scaleFactor; - - // Get distance and map it into [-0.5, 0.5] - float d = rgba2float(texture2D(tex, samplePos)) - 0.5; - - // Distance in output units (i.e. pixels) - float dist = d * vsize.x; - - // Create smooth transition from the icon into its outline - float fillAlphaFactor = clamp(0.5 - dist, 0.0, 1.0); - fillPixelColor.a *= fillAlphaFactor; - - if (outlineSize > 0.25) { - vec4 outlinePixelColor = outlineColor; - float clampedOutlineSize = min(outlineSize, 0.5*vsize.x); - - // Create smooth transition around outline - float outlineAlphaFactor = clamp(0.5 - (abs(dist) - 0.5*clampedOutlineSize), 0.0, 1.0); - outlinePixelColor.a *= outlineAlphaFactor; - - if ( - outlineAlphaFactor + fillAlphaFactor < ${Fe} || - fillPixelColor.a + outlinePixelColor.a < ${ce.H.float(le.b)} - ) { - discard; - } - - // perform un-premultiplied over operator (see https://en.wikipedia.org/wiki/Alpha_compositing#Description) - float compositeAlpha = outlinePixelColor.a + fillPixelColor.a * (1.0 - outlinePixelColor.a); - vec3 compositeColor = vec3(outlinePixelColor) * outlinePixelColor.a + - vec3(fillPixelColor) * fillPixelColor.a * (1.0 - outlinePixelColor.a); - - gl_FragColor = vec4(compositeColor, compositeAlpha); - } else { - if (fillAlphaFactor < ${Fe}) { - discard; - } - - gl_FragColor = premultiplyAlpha(fillPixelColor); - } - - // visualize SDF: - // gl_FragColor = vec4(clamp(-dist/vsize.x*2.0, 0.0, 1.0), clamp(dist/vsize.x*2.0, 0.0, 1.0), 0.0, 1.0); - `:ce.H` - vec4 texColor = texture2D(tex, vtc, -0.5); - if (texColor.a < ${Fe}) { - discard; - } - gl_FragColor = texColor * premultiplyAlpha(vcolor); - `} - - // Draw debug border with transparency, so that original texels along border are still partially visible - ${ve.debugDrawLabelBorder?ce.H`gl_FragColor = mix(gl_FragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);`:""} - `;return ve.output===$.H.Alpha&&We.code.add(ce.H` - void main() { - ${je} - gl_FragColor = vec4(gl_FragColor.a); - } - `),ve.output===$.H.ObjectAndLayerIdColor&&We.code.add(ce.H` - void main() { - ${je} - outputObjectAndLayerIdColor(); - } - `),ve.output===$.H.Color&&We.code.add(ce.H` - void main() { - ${je} - ${ve.transparencyPassType===he.A.FrontFace?"gl_FragColor.rgb /= gl_FragColor.a;":""} - } - `),ve.output===$.H.Highlight&&(xe.include(ae.bA,ve),We.code.add(ce.H` - void main() { - ${je} - ${ve.binaryHighlightOcclusionEnabled?ce.H` - if (voccluded == 1.0) { - gl_FragColor = vec4(1.0, 1.0, 0.0, 1.0); - } else { - gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0); - }`:"outputHighlight();"} - } - `)),xe}function Ee(ve){return ve.outlineColor[3]>0&&ve.outlineSize>0}function De(ve,xe=Se){return ve.textureIsSignedDistanceField?function be(ve,xe,ze){(0,D.pC)(xe)?(0,R.s)(ze,ve[0]*(xe[2]-xe[0])+xe[0],ve[1]*(xe[3]-xe[1])+xe[1]):(0,R.s)(ze,0,0)}(ve.anchorPosition,ve.distanceFieldBoundingBox,xe):(0,R.c)(xe,ve.anchorPosition),xe}const Se=(0,G.a)(),ye=Object.freeze(Object.defineProperty({__proto__:null,build:_e,calculateAnchorPosForRendering:De},Symbol.toStringTag,{value:"Module"}))},17923:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>ae,b:()=>X});var D=v(993),R=v(4794),G=v(69960),Z=v(17625),Q=v(22355),$=v(35387),W=v(16396);function X(){const oe=new Q.kG,{vertex:le,fragment:de}=oe,se=le.code,re=de.code;return oe.attributes.add(W.T.POSITION,"vec2"),oe.varyings.add("uv","vec2"),oe.attributes.add(W.T.UV0,"vec2"),le.uniforms.add(new $.A("coverageTex",j=>j.coverageTexture)),se.add(Z.H`void main() { -vec4 cov = texture2D(coverageTex, uv0); -if (cov.r == 0.0) { -gl_Position = vec4(0.0); -return; -} -gl_Position = vec4(position, 0.0, 1.0); -uv = position.xy * 0.5 + vec2(0.5); -}`),de.uniforms.add(new $.A("tex",j=>j.blurColorTexture)),de.uniforms.add(new $.A("origin",j=>j.highlightColorTexture)),de.uniforms.add(new G.N("uColor",j=>j.color)),de.uniforms.add(new G.N("haloColor",j=>j.haloColor)),de.uniforms.add(new G.N("opacities",j=>(0,D.s)(te,j.haloOpacity,j.haloOpacityOccluded,j.fillOpacity,j.fillOpacityOccluded))),de.constants.add("outlineSize","float",8.6),de.constants.add("blurSize","float",.4),re.add(Z.H`void main() { -vec4 blurredHighlightValue = texture2D(tex, uv); -float highlightIntensity = blurredHighlightValue.a; -if (highlightIntensity == 0.0) { -discard; -} -vec4 origin_color = texture2D(origin, uv); -float outlineIntensity; -float fillIntensity; -if (blurredHighlightValue.g > blurredHighlightValue.b) { -outlineIntensity = haloColor.w * opacities[1]; -fillIntensity = uColor.w * opacities[3]; -} -else { -outlineIntensity = haloColor.w * opacities[0]; -fillIntensity = uColor.w * opacities[2]; -} -float inner = 1.0 - outlineSize / 9.0; -float outer = 1.0 - (outlineSize + blurSize) / 9.0; -float outlineFactor = smoothstep(outer, inner, highlightIntensity); -float fillFactor = any(notEqual(origin_color, vec4(0.0, 0.0, 0.0, 0.0))) ? 1.0 : 0.0; -float intensity = outlineIntensity * outlineFactor * (1.0 - fillFactor) + fillIntensity * fillFactor; -gl_FragColor = vec4(mix(haloColor.rgb, uColor.rgb, fillFactor), intensity); -}`),oe}const te=(0,R.c)(),ae=Object.freeze(Object.defineProperty({__proto__:null,build:X},Symbol.toStringTag,{value:"Module"}))},47482:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>B,a:()=>X,b:()=>H});var D=v(99770),R=v(32181),G=v(17625),Z=v(22355),Q=v(5864),$=v(35387),W=v(16396);class B extends G.K{constructor(){super(...arguments),this.blurSize=(0,D.a)()}}function H(){const te=new Z.kG,{vertex:ae,fragment:oe}=te,le=ae.code,de=oe.code;return te.attributes.add(W.T.POSITION,"vec2"),te.attributes.add(W.T.UV0,"vec2"),te.varyings.add("blurCoordinate","vec3"),ae.uniforms.add(new $.A("coverageTex",se=>se.coverageTexture)),oe.uniforms.add(new R.q("blurSize",se=>se.blurSize)),le.add(G.H`void main() { -gl_Position = vec4(position, 0.0, 1.0); -vec4 cov = texture2D(coverageTex, uv0); -if (cov.r == 0.0) { -gl_Position = vec4(0.0); -} -blurCoordinate = vec3(gl_Position.xy * 0.5 + vec2(0.5), max(cov.g, cov.b)); -}`),oe.uniforms.add(new Q.R("tex",se=>se.blurInputTexture)),de.add(G.H`void main() { -vec2 uv = blurCoordinate.xy; -vec4 center = texture2D(tex, uv); -if (blurCoordinate.z == 1.0) { -gl_FragColor = center; -} else { -vec4 sum = vec4(0.0); -sum += center * 0.204164; -sum += texture2D(tex, uv + blurSize * 1.407333) * 0.304005; -sum += texture2D(tex, uv - blurSize * 1.407333) * 0.304005; -sum += texture2D(tex, uv + blurSize * 3.294215) * 0.093913; -sum += texture2D(tex, uv - blurSize * 3.294215) * 0.093913; -gl_FragColor = sum; -} -}`),te}const X=Object.freeze(Object.defineProperty({__proto__:null,HighlightBlurDrawParameters:B,build:H},Symbol.toStringTag,{value:"Module"}))},36227:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>W,a:()=>H,b:()=>B});var D=v(99770),R=v(32181),G=v(17625),Z=v(22355),Q=v(5864),$=v(16396);class W extends G.K{constructor(){super(...arguments),this.invFramebufferDim=(0,D.a)()}}function B(){const X=new Z.kG,{vertex:te,fragment:ae}=X,oe=te.code,le=ae.code;return X.attributes.add($.T.POSITION,"vec2"),oe.add(G.H`void main() { -gl_Position = vec4(vec2(1.0) - position * 2.0, 0.0, 1.0); -}`),ae.uniforms.add(new Q.R("tex",de=>de.inputTexture)),ae.uniforms.add(new R.q("invFramebufferDim",de=>de.invFramebufferDim)),le.add(G.H`void main() { -vec2 coord = gl_FragCoord.xy * invFramebufferDim; -vec4 value = texture2D(tex, coord); -float mx = floor(max(value.g, value.b)); -gl_FragColor = vec4(ceil(value.r), mx, mx, 1.0); -}`),X}const H=Object.freeze(Object.defineProperty({__proto__:null,HighlightDownsampleDrawParameters:W,build:B},Symbol.toStringTag,{value:"Module"}))},76269:(nt,Ae,v)=>{"use strict";v.d(Ae,{L:()=>Y,b:()=>se});var D=v(62208),R=v(67831),G=v(99770),Z=v(4794),Q=v(78925),$=v(35283),W=v(97347),B=v(82793),H=v(71850),X=v(95285),te=v(69960),ae=v(65787),oe=v(17625),le=v(22355),de=v(16396);function se(ee){const ie=new le.kG;ie.include($.H),ie.include(W.R,ee),ie.include(Q.f5,ee),ie.attributes.add(de.T.UV0,"vec2");const{vertex:J,fragment:ce}=ie;return J.uniforms.add([new te.N("viewport",(ue,pe)=>pe.camera.fullViewport),new ae.p("lineSize",(ue,pe)=>Math.ceil(ue.size)*pe.camera.pixelRatio),new X.A("pixelToNDC",(ue,pe)=>(0,R.s)(j,2/pe.camera.fullViewport[2],2/pe.camera.fullViewport[3])),new ae.p("borderSize",(ue,pe)=>(0,D.pC)(ue.borderColor)?pe.camera.pixelRatio:0),new X.A("screenOffset",(ue,pe)=>(0,R.s)(j,ue.screenOffset[0]*pe.camera.pixelRatio,ue.screenOffset[1]*pe.camera.pixelRatio))]),ie.varyings.add("coverageSampling","vec4"),ie.varyings.add("lineSizes","vec2"),ee.hasMultipassGeometry&&ie.varyings.add("depth","float"),ee.hasScreenSizePerspective&&(0,H.m8)(J),J.code.add(oe.H` - void main(void) { - ProjectHUDAux projectAux; - vec4 endPoint = projectPositionHUD(projectAux); - - vec3 vpos = projectAux.posModel; - if (rejectBySlice(vpos)) { - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - } - ${ee.occlusionTestEnabled?oe.H` - if (!testVisibilityHUD(endPoint)) { - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - }`:""} - - ${ee.hasScreenSizePerspective?oe.H` - vec4 perspectiveFactor = screenSizePerspectiveScaleFactor(projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspectiveAlignment); - vec2 screenOffsetScaled = applyScreenSizePerspectiveScaleFactorVec2(screenOffset, perspectiveFactor); - `:oe.H` - vec2 screenOffsetScaled = screenOffset; - `} - // Add view dependent polygon offset to get exact same original starting point. This is mostly - // used to get the correct depth value - vec3 posView = (view * vec4(position, 1.0)).xyz; - ${ee.hasMultipassGeometry?"depth = posView.z;":""} - - applyHUDViewDependentPolygonOffset(auxpos1.w, projectAux.absCosAngle, posView); - vec4 startPoint = proj * vec4(posView, 1.0); - // Apply screen offset to both start and end point - vec2 screenOffsetNorm = screenOffsetScaled * 2.0 / viewport.zw; - startPoint.xy += screenOffsetNorm * startPoint.w; - endPoint.xy += screenOffsetNorm * endPoint.w; - // Align start and end to pixel origin - vec4 startAligned = alignToPixelOrigin(startPoint, viewport.zw); - vec4 endAligned = alignToPixelOrigin(endPoint, viewport.zw); - ${ee.depthHudEnabled?ee.depthHudAlignStartEnabled?oe.H`endAligned = vec4(endAligned.xy / endAligned.w * startAligned.w, startAligned.zw);`:oe.H`startAligned = vec4(startAligned.xy / startAligned.w * endAligned.w, endAligned.zw);`:""} - vec4 projectedPosition = mix(startAligned, endAligned, uv0.y); - // The direction of the line in screen space - vec2 screenSpaceDirection = normalize(endAligned.xy / endAligned.w - startAligned.xy / startAligned.w); - vec2 perpendicularScreenSpaceDirection = vec2(screenSpaceDirection.y, -screenSpaceDirection.x); - ${ee.hasScreenSizePerspective?oe.H` - float lineSizeScaled = applyScreenSizePerspectiveScaleFactorFloat(lineSize, perspectiveFactor); - float borderSizeScaled = applyScreenSizePerspectiveScaleFactorFloat(borderSize, perspectiveFactor); - `:oe.H` - float lineSizeScaled = lineSize; - float borderSizeScaled = borderSize; - `} - float halfPixelSize = lineSizeScaled * 0.5; - // Calculate a pixel offset from the edge of the pixel, s.t. we keep the line aligned - // to pixels if it has a full pixel size. Since pixel aligned biases to the bottom-left, - // we bias the size to the right (for odd sizes) to balance out the bias. Grow sub-pixel - // sizes towards the left or right s.t. there is a smooth transition (e.g. from 2 to 3 px). - float halfWholePixelSize = floor(lineSizeScaled) * 0.5; - float halfPixelSizeInt = floor(halfWholePixelSize); - - // Sub-pixel offset if we need to grow sub-pixels to the left - float subpixelOffset = -fract(lineSizeScaled) * float(halfWholePixelSize > 0.0); - - // Pixel offset aligning to whole pixels and adding subpixel offset if needed - float pixelOffset = -halfPixelSizeInt + subpixelOffset; - - // Compute full ndc offset, adding 1px padding for doing anti-aliasing and the border size - float padding = 1.0 + borderSizeScaled; - vec2 ndcOffset = (pixelOffset - padding + uv0.x * (lineSizeScaled + padding + padding)) * pixelToNDC; - - // Offset x/y from the center of the line in screen space - projectedPosition.xy += perpendicularScreenSpaceDirection * ndcOffset * projectedPosition.w; - - // Compute a coverage varying which we can use in the fragment shader to determine - // how much a pixel is actually covered by the line (i.e. to anti alias the line). - // This works by computing two coordinates that can be linearly interpolated and then - // subtracted to find out how far away from the line edge we are. - float edgeDirection = (uv0.x * 2.0 - 1.0); - - float halfBorderSize = 0.5 * borderSizeScaled; - float halfPixelSizeAndBorder = halfPixelSize + halfBorderSize; - float outerEdgeCoverageSampler = edgeDirection * (halfPixelSizeAndBorder + halfBorderSize + 1.0); - - float isOneSided = float(lineSizeScaled < 2.0 && borderSize < 2.0); - - coverageSampling = vec4( - // Edge coordinate - outerEdgeCoverageSampler, - - // Border edge coordinate - outerEdgeCoverageSampler - halfPixelSizeAndBorder * isOneSided, - - // Line offset - halfPixelSize - 0.5, - - // Border offset - halfBorderSize - 0.5 + halfPixelSizeAndBorder * (1.0 - isOneSided) - ); - - lineSizes = vec2(lineSizeScaled, borderSizeScaled); - - gl_Position = projectedPosition; - } - `),ce.uniforms.add([new te.N("uColor",ue=>re(ue.color)),new te.N("borderColor",ue=>re(ue.borderColor))]),ee.hasMultipassGeometry&&(ce.include(B.S,ee),ce.uniforms.add(new X.A("inverseViewport",(ue,pe)=>pe.inverseViewport))),ce.code.add(oe.H` - void main() { - ${ee.hasMultipassGeometry?"if( geometryDepthTest(gl_FragCoord.xy * inverseViewport, depth) ){ discard; }":""} - - // Mix between line and border coverage offsets depending on whether we need - // a border (based on the sidedness). - vec2 coverage = min(1.0 - clamp(abs(coverageSampling.xy) - coverageSampling.zw, 0.0, 1.0), lineSizes); - - // Mix between border and line color based on the line coverage (conceptually the line - // blends on top of the border background). - // - // Anti-alias by blending final result using the full (including optional border) coverage - // and the color alpha - float borderAlpha = uColor.a * borderColor.a * coverage.y; - float colorAlpha = uColor.a * coverage.x; - - float finalAlpha = mix(borderAlpha, 1.0, colorAlpha); - - ${ee.depthHudEnabled?oe.H` - if (finalAlpha < 0.01) { - discard; - } - `:oe.H` - vec3 finalRgb = mix(borderColor.rgb * borderAlpha, uColor.rgb, colorAlpha); - gl_FragColor = vec4(finalRgb, finalAlpha); - `} - } - `),ie}function re(ee){return(0,D.pC)(ee)?ee:Z.Z}const j=(0,G.a)(),Y=Object.freeze(Object.defineProperty({__proto__:null,build:se},Symbol.toStringTag,{value:"Module"}))},71530:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>te});var H,D=v(17626),R=v(91558),G=v(86810),Z=v(58817),Q=v(77712),W=(v(90912),v(76898)),B=v(60958);let X=H=class extends G.wq{constructor(){super(...arguments),this.color=new R.Z("white")}clone(){return new H({color:(0,Z.d9)(this.color)})}};(0,D._)([(0,Q.Cb)(B.a)],X.prototype,"color",void 0),X=H=(0,D._)([(0,W.j)("esri.symbols.callouts.LineCallout3DBorder")],X);const te=X;Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}))},62718:(nt,Ae,v)=>{"use strict";v.d(Ae,{L:()=>ue,b:()=>ce});var D=v(81805),R=v(52382),G=v(13934),Z=v(78925),Q=v(39645),$=v(54120),W=v(50823),B=v(10109),H=v(67022),X=v(33726),te=v(19278),ae=v(2166),oe=v(95285),le=v(69960),de=v(65787),se=v(17625),re=v(63123),j=v(22355),Y=v(35387),ee=v(44835),ie=v(16396),J=v(46359);function ce(pe){const he=new j.kG,me=pe.hasMultipassTerrain&&(pe.output===G.H.Color||pe.output===G.H.Alpha),ge=pe.space===J.I9.World;pe.hasTip&&ge&&he.extensions.add("GL_OES_standard_derivatives"),he.include(Q.U,pe),he.include(W.Q,pe),pe.output===G.H.Depth&&he.include($.F,pe);const{vertex:_e,fragment:Ee}=he;return Ee.include(te.n),(0,ae.Sv)(_e,pe),he.attributes.add(ie.T.POSITION,"vec3"),he.attributes.add(ie.T.UV0,"vec2"),he.attributes.add(ie.T.AUXPOS1,"vec3"),he.varyings.add("vColor","vec4"),he.varyings.add("vpos","vec3"),he.varyings.add("vUV","vec2"),he.varyings.add("vSize","float"),(0,R.Lm)(he),me&&he.varyings.add("depth","float"),pe.hasTip&&he.varyings.add("vLineWidth","float"),_e.uniforms.add([new oe.A("nearFar",(De,be)=>be.camera.nearFar),new le.N("viewport",(De,be)=>be.camera.fullViewport)]),_e.code.add(se.H`vec4 projectAndScale(vec4 pos) { -vec4 posNdc = proj * pos; -posNdc.xy *= viewport.zw / posNdc.w; -return posNdc; -}`),_e.code.add(se.H`void clip(vec4 pos, inout vec4 prev) { -float vnp = nearFar[0] * 0.99; -if (prev.z > -nearFar[0]) { -float interpolation = (-vnp - pos.z) / (prev.z - pos.z); -prev = mix(pos, prev, interpolation); -} -}`),ge?(he.attributes.add(ie.T.NORMAL,"vec3"),(0,ae._8)(_e),_e.constants.add("tiltThreshold","float",.7),_e.code.add(se.H`vec3 perpendicular(vec3 v) { -vec3 n = (viewNormal * vec4(normal.xyz, 1.0)).xyz; -vec3 n2 = cross(v, n); -vec3 forward = vec3(0.0, 0.0, 1.0); -float tiltDot = dot(forward, n); -return abs(tiltDot) < tiltThreshold ? n : n2; -}`)):_e.code.add(se.H`vec2 perpendicular(vec2 v) { -return vec2(v.y, -v.x); -}`),_e.code.add(se.H` - #define vecN ${ge?"vec3":"vec2"} - - vecN normalizedSegment(vecN pos, vecN prev) { - vecN segment = pos - prev; - float segmentLen = length(segment); - - // normalize or zero if too short - return (segmentLen > 0.001) ? segment / segmentLen : ${ge?"vec3(0.0, 0.0, 0.0)":"vec2(0.0, 0.0)"}; - } - - vecN displace(vecN pos, vecN prev, float displacementLen) { - vecN segment = normalizedSegment(pos, prev); - - vecN displacementDirU = perpendicular(segment); - vecN displacementDirV = segment; - - ${pe.anchor===J.i5.Tip?"pos -= 0.5 * displacementLen * displacementDirV;":""} - - return pos + displacementLen * (uv0.x * displacementDirU + uv0.y * displacementDirV); - } - `),pe.space===J.I9.Screen&&(_e.uniforms.add(new re.g("inverseProjectionMatrix",(De,be)=>be.camera.inverseProjectionMatrix)),_e.code.add(se.H`vec3 inverseProject(vec4 posScreen) { -posScreen.xy = (posScreen.xy / viewport.zw) * posScreen.w; -return (inverseProjectionMatrix * posScreen).xyz; -}`),_e.code.add(se.H`bool rayIntersectPlane(vec3 rayDir, vec3 planeOrigin, vec3 planeNormal, out vec3 intersection) { -float cos = dot(rayDir, planeNormal); -float t = dot(planeOrigin, planeNormal) / cos; -intersection = t * rayDir; -return abs(cos) > 0.001 && t > 0.0; -}`),_e.uniforms.add(new de.p("perScreenPixelRatio",(De,be)=>be.camera.perScreenPixelRatio)),_e.code.add(se.H` - vec4 toFront(vec4 displacedPosScreen, vec3 posLeft, vec3 posRight, vec3 prev, float lineWidth) { - // Project displaced position back to camera space - vec3 displacedPos = inverseProject(displacedPosScreen); - - // Calculate the plane that we want the marker to lie in. Note that this will always be an approximation since ribbon lines are generally - // not planar and we do not know the actual position of the displaced prev vertices (they are offset in screen space, too). - vec3 planeNormal = normalize(cross(posLeft - posRight, posLeft - prev)); - vec3 planeOrigin = posLeft; - - ${pe.hasCap?"\n if(prev.z > posLeft.z) {\n vec2 diff = posLeft.xy - posRight.xy;\n planeOrigin.xy += perpendicular(diff) / 2.0;\n }\n ":""}; - - // Move the plane towards the camera by a margin dependent on the line width (approximated in world space). This tolerance corrects for the - // non-planarity in most cases, but sharp joins can place the prev vertices at arbitrary positions so markers can still clip. - float offset = lineWidth * perScreenPixelRatio; - planeOrigin *= (1.0 - offset); - - // Intersect camera ray with the plane and make sure it is within clip space - vec3 rayDir = normalize(displacedPos); - vec3 intersection; - if (rayIntersectPlane(rayDir, planeOrigin, planeNormal, intersection) && intersection.z < -nearFar[0] && intersection.z > -nearFar[1]) { - return vec4(intersection.xyz, 1.0); - } - - // Fallback: use depth of pos or prev, whichever is closer to the camera - float minDepth = planeOrigin.z > prev.z ? length(planeOrigin) : length(prev); - displacedPos *= minDepth / length(displacedPos); - return vec4(displacedPos.xyz, 1.0); - } - `)),_e.uniforms.add(new de.p("pixelRatio",(De,be)=>be.camera.pixelRatio)),(0,R.bA)(he),_e.code.add(se.H`void main(void) { -if (uv0.y == 0.0) { -gl_Position = vec4(1e038, 1e038, 1e038, 1.0); -} -else { -float lineWidth = getLineWidth(); -float screenMarkerSize = getScreenMarkerSize(); -vec4 pos = view * vec4(position.xyz, 1.0); -vec4 prev = view * vec4(auxpos1.xyz, 1.0); -clip(pos, prev);`),ge?(pe.hideOnShortSegments&&_e.code.add(se.H`if (areWorldMarkersHidden(pos, prev)) { -gl_Position = vec4(1e038, 1e038, 1e038, 1.0); -return; -}`),_e.code.add(se.H`pos.xyz = displace(pos.xyz, prev.xyz, getWorldMarkerSize(pos)); -vec4 displacedPosScreen = projectAndScale(pos);`)):(_e.code.add(se.H`vec4 posScreen = projectAndScale(pos); -vec4 prevScreen = projectAndScale(prev); -vec4 displacedPosScreen = posScreen; -displacedPosScreen.xy = displace(posScreen.xy, prevScreen.xy, screenMarkerSize);`),pe.space===J.I9.Screen&&_e.code.add(se.H`vec2 displacementDirU = perpendicular(normalizedSegment(posScreen.xy, prevScreen.xy)); -vec3 lineRight = inverseProject(posScreen + lineWidth * vec4(displacementDirU.xy, 0.0, 0.0)); -vec3 lineLeft = pos.xyz + (pos.xyz - lineRight); -pos = toFront(displacedPosScreen, lineLeft, lineRight, prev.xyz, lineWidth); -displacedPosScreen = projectAndScale(pos);`)),_e.code.add(se.H` - ${me?"depth = pos.z;":""} - linearDepth = calculateLinearDepth(nearFar,pos.z); - - // Convert back into NDC - displacedPosScreen.xy = (displacedPosScreen.xy / viewport.zw) * displacedPosScreen.w; - - // Convert texture coordinate into [0,1] - vUV = (uv0 + 1.0) / 2.0; - - ${ge?"":"vUV *= displacedPosScreen.w;"} - - ${pe.hasTip?"vLineWidth = lineWidth;":""} - - vSize = screenMarkerSize; - vColor = getColor(); - - // Use camera space for slicing - vpos = pos.xyz; - - gl_Position = displacedPosScreen; - } - } - `),me&&he.include(B.l,pe),he.include(Z.f5,pe),Ee.uniforms.add([new le.N("intrinsicColor",De=>De.color),new Y.A("tex",De=>De.texture)]),Ee.include(X.Y),he.constants.add("texelSize","float",1/D.vT),Ee.code.add(se.H`float markerAlpha(vec2 samplePos) { -samplePos += vec2(0.5, -0.5) * texelSize; -float sdf = rgba2float(texture2D(tex, samplePos)) - 0.5; -float distance = sdf * vSize; -distance -= 0.5; -return clamp(0.5 - distance, 0.0, 1.0); -}`),pe.hasTip&&(he.constants.add("relativeMarkerSize","float",D.Ch/D.vT),he.constants.add("relativeTipLineWidth","float",D.Hl),Ee.code.add(se.H` - float tipAlpha(vec2 samplePos) { - // Convert coordinates s.t. they are in pixels and relative to the tip of an arrow marker - samplePos -= vec2(0.5, 0.5 + 0.5 * relativeMarkerSize); - samplePos *= vSize; - - float halfMarkerSize = 0.5 * relativeMarkerSize * vSize; - float halfTipLineWidth = 0.5 * max(1.0, relativeTipLineWidth * vLineWidth); - - ${ge?"halfTipLineWidth *= fwidth(samplePos.y);":""} - - float distance = max(abs(samplePos.x) - halfMarkerSize, abs(samplePos.y) - halfTipLineWidth); - return clamp(0.5 - distance, 0.0, 1.0); - } - `)),he.constants.add("symbolAlphaCutoff","float",H.b),Ee.code.add(se.H` - void main() { - discardBySlice(vpos); - ${me?"terrainDepthTest(gl_FragCoord, depth);":""} - - vec4 finalColor = intrinsicColor * vColor; - - ${ge?"vec2 samplePos = vUV;":"vec2 samplePos = vUV * gl_FragCoord.w;"} - - ${pe.hasTip?"finalColor.a *= max(markerAlpha(samplePos), tipAlpha(samplePos));":"finalColor.a *= markerAlpha(samplePos);"} - - if (finalColor.a < symbolAlphaCutoff) { - discard; - } - - ${pe.output===G.H.Alpha?se.H`gl_FragColor = vec4(finalColor.a);`:""} - ${pe.output===G.H.Color?se.H`gl_FragColor = highlightSlice(finalColor, vpos);`:""} - ${pe.output===G.H.Color&&pe.transparencyPassType===ee.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - ${pe.output===G.H.Highlight?se.H`gl_FragColor = vec4(1.0);`:""} - ${pe.output===G.H.Depth?se.H`outputDepth(linearDepth);`:""} - } - `),he}const ue=Object.freeze(Object.defineProperty({__proto__:null,build:ce},Symbol.toStringTag,{value:"Module"}))},32616:(nt,Ae,v)=>{"use strict";v.d(Ae,{N:()=>de,b:()=>le});var D=v(13934),R=v(78925),G=v(24255),Z=v(58173),Q=v(62952),$=v(92484),W=v(67022),B=v(2166),H=v(69960),X=v(65787),te=v(17625),ae=v(22355),oe=v(16396);function le(se){const re=new ae.kG,{vertex:j,fragment:Y}=re;return re.include(G.w,se),re.include(Z.c,se),re.include($.q,se),(0,B.Sv)(j,se),se.stippleEnabled&&(re.attributes.add(oe.T.UV0,"vec2"),re.attributes.add(oe.T.AUXPOS1,"vec3"),j.uniforms.add(new H.N("viewport",(ee,ie)=>ie.camera.fullViewport))),re.attributes.add(oe.T.POSITION,"vec3"),re.varyings.add("vpos","vec3"),j.code.add(te.H`void main(void) { -vpos = position; -forwardNormalizedVertexColor(); -gl_Position = transformPosition(proj, view, vpos);`),se.stippleEnabled&&(j.code.add(te.H`vec4 vpos2 = transformPosition(proj, view, auxpos1); -vec2 ndcToPixel = viewport.zw * 0.5; -float lineSegmentPixelSize = length((vpos2.xy / vpos2.w - gl_Position.xy / gl_Position.w) * ndcToPixel);`),se.draped?j.uniforms.add(new X.p("worldToScreenRatio",(ee,ie)=>1/ie.screenToPCSRatio)):j.code.add(te.H`vec3 segmentCenter = (position + auxpos1) * 0.5; -float worldToScreenRatio = computeWorldToScreenRatio(segmentCenter);`),j.code.add(te.H`float discreteWorldToScreenRatio = discretizeWorldToScreenRatio(worldToScreenRatio);`),j.code.add(se.draped?te.H`float startPseudoScreen = uv0.y * discreteWorldToScreenRatio - mix(0.0, lineSegmentPixelSize, uv0.x); -float segmentLengthPseudoScreen = lineSegmentPixelSize;`:te.H`float segmentLengthRender = length(position - auxpos1); -float startPseudoScreen = mix(uv0.y, uv0.y - segmentLengthRender, uv0.x) * discreteWorldToScreenRatio; -float segmentLengthPseudoScreen = segmentLengthRender * discreteWorldToScreenRatio;`),j.uniforms.add(new X.p("stipplePatternPixelSize",ee=>(0,$.C)(ee))),j.code.add(te.H`vec2 stippleDistanceLimits = computeStippleDistanceLimits(startPseudoScreen, segmentLengthPseudoScreen, lineSegmentPixelSize, stipplePatternPixelSize); -vStippleDistance = mix(stippleDistanceLimits.x, stippleDistanceLimits.y, uv0.x); -vStippleDistance *= gl_Position.w;`)),j.code.add(te.H`}`),se.output===D.H.Highlight&&re.include(Q.bA,se),re.include(R.f5,se),Y.uniforms.add(new X.p("alphaCoverage",(ee,ie)=>Math.min(1,ee.width*ie.camera.pixelRatio))),se.hasVertexColors||Y.uniforms.add(new H.N("constantColor",ee=>ee.color)),Y.code.add(te.H` - void main() { - discardBySlice(vpos); - - vec4 color = ${se.hasVertexColors?"vColor":"constantColor"}; - - float stippleAlpha = getStippleAlpha(); - discardByStippleAlpha(stippleAlpha, stippleAlphaColorDiscard); - - vec4 finalColor = blendStipple(vec4(color.rgb, color.a * alphaCoverage), stippleAlpha); - - if (finalColor.a < ${te.H.float(W.b)}) { - discard; - } - - ${se.output===D.H.Color?te.H`gl_FragColor = highlightSlice(finalColor, vpos);`:""} - ${se.output===D.H.Highlight?te.H`outputHighlight();`:""} - } - `),re}const de=Object.freeze(Object.defineProperty({__proto__:null,build:le},Symbol.toStringTag,{value:"Module"}))},42474:(nt,Ae,v)=>{"use strict";v.d(Ae,{N:()=>B,a:()=>X,b:()=>H});var D=v(99770),R=v(64312),G=v(85755),Z=v(98071),Q=v(95285),$=v(17625),W=v(22355);class B extends $.K{constructor(){super(...arguments),this.weatherTile=(0,D.f)(0,0)}}function H(te){const ae=new W.kG;return ae.include(Z.k,!1),ae.fragment.code.add($.H`float remap(float x, float low1, float high1, float low2, float high2) { -return low2 + (x - low1) * (high2 - low2) / (high1 - low1); -}`),te.mode===R.u.Full&&ae.fragment.code.add($.H` - float saturate(float x) { - return clamp(x, 0.0, 1.0); - } - - // Safer modulo for positive and negative values - vec3 modulo(vec3 m, float n){ - return mod(mod(m, n) + n, n); - } - - vec3 hash(vec3 p3, float frequency){ - p3 = modulo(p3, frequency); - p3 = fract(p3 * vec3(0.1031, 0.1030, 0.0973)); - p3 += dot(p3, p3.yxz + 33.33); - return -1.0 + 2.0 * fract((p3.xxy + p3.yxx) * p3.zyx); - } - - // 5th order polynomial interpolation - vec3 fade(vec3 t){ - return (t * t * t) * (t * (t * 6.0 - 15.0) + 10.0); - } - - float gradientNoise(vec3 p, float frequency){ - // Cell point is in - vec3 i = floor(p); - - // Position in the cell in [0, 1] - vec3 f = fract(p); - - // Interpolation value for gradient mixing - vec3 u = fade(f); - - // Trilinear interpolation of gradients at cube vertices around point - return mix( mix( mix( dot( hash( i + vec3(0.0,0.0,0.0), frequency), f - vec3(0.0,0.0,0.0) ), - dot( hash( i + vec3(1.0,0.0,0.0), frequency), f - vec3(1.0,0.0,0.0) ), u.x), - mix( dot( hash( i + vec3(0.0,1.0,0.0), frequency), f - vec3(0.0,1.0,0.0) ), - dot( hash( i + vec3(1.0,1.0,0.0), frequency), f - vec3(1.0,1.0,0.0) ), u.x), u.y), - mix( mix( dot( hash( i + vec3(0.0,0.0,1.0), frequency), f - vec3(0.0,0.0,1.0) ), - dot( hash( i + vec3(1.0,0.0,1.0), frequency), f - vec3(1.0,0.0,1.0) ), u.x), - mix( dot( hash( i + vec3(0.0,1.0,1.0), frequency), f - vec3(0.0,1.0,1.0) ), - dot( hash( i + vec3(1.0,1.0,1.0), frequency), f - vec3(1.0,1.0,1.0) ), u.x), u.y), u.z ); - } - - float getPerlinNoise(vec3 pos, float frequency) { - float octaveFrequencyFactor = 2.0; - float sum = 0.0; - float weightSum = 0.0; - float weight = 1.0; - - for (int oct = 0; oct < 3; oct++) { - vec3 p = pos * frequency; - float val = 0.5 + 0.5 * gradientNoise(p, frequency); - sum += val * weight; - weightSum += weight; - weight *= 0.5; - frequency *= octaveFrequencyFactor; - } - - float noise = (sum / weightSum); - noise = saturate(noise); - return noise; - } - - float worley(vec3 pos, float numCells) { - vec3 p = pos * numCells; - float d = 1.0e10; - - for (int x = -1; x <= 1; x++) { - for (int y = -1; y <= 1; y++) { - for (int z = -1; z <= 1; z++) { - vec3 tp = floor(p) + vec3(x, y, z); - tp = p - tp - (hash(tp, numCells) * 0.5 + 0.5); - d = min(d, dot(tp, tp)); - } - } - } - - return 1.0 - clamp(d, 0.0, 1.0); - } - - vec3 get3Dfrom2D(vec2 uv) { - vec2 tile = floor(uv); - float z = floor(${$.H.float(G.jy)} * tile.y + tile.x); - return vec3(fract(uv), z); - } - - float getTextureForPointPerlinWorley(vec3 p) { - float perlinNoise = getPerlinNoise(p, ${$.H.float(8)}); - - float worley0 = worley(p, ${$.H.float(2)} * 2.0); - float worley1 = worley(p, ${$.H.float(2)} * 8.0); - float worley2 = worley(p, ${$.H.float(2)} * 14.0); - - float worleyFBM = worley0 * 0.625 + worley1 * 0.25 + worley2 * 0.125; - return remap(perlinNoise, 0.0, 1.0, worleyFBM, 1.0); - } - - float getTextureForPointWorley(vec3 p) { - float worley0 = worley(p, ${$.H.float(2)}); - float worley1 = worley(p, ${$.H.float(2)} * 2.0); - float worley2 = worley(p, ${$.H.float(2)} * 4.0); - float worley3 = worley(p, ${$.H.float(2)} * 8.0); - - float FBM0 = worley0 * 0.625 + worley1 * 0.25 + worley2 * 0.125; - float FBM1 = worley1 * 0.625 + worley2 * 0.25 + worley3 * 0.125; - float FBM2 = worley2 * 0.75 + worley3 * 0.25; - - return FBM0 * 0.625 + FBM1 * 0.25 + FBM2 * 0.125; - } - `),ae.fragment.uniforms.add(new Q.A("weatherTile",oe=>oe.weatherTile)),ae.fragment.code.add($.H` - vec2 modulo(vec2 m, float n){ - return mod(mod(m, n) + n, n); - } - - vec2 hash(vec2 p){ - // Get position of p in weather tile - p = modulo(p, ${$.H.float(G.A)}); - - // Get global coordinates of p - p += weatherTile * ${$.H.float(G.A)}; - - // Limit position to avoid numerical instability - p = modulo(p, ${$.H.float(G.iZ)}); - - vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973)); - p3 += dot(p3, p3.yzx + 33.33); - return 2.0 * fract((p3.xx + p3.yz) * p3.zy) - 1.0; - } - - vec2 fade(vec2 t){ - return (t * t * t) * (t * (t * 6.0 - 15.0) + 10.0); - } - - float gradientNoise(vec2 p){ - vec2 i = floor( p ); - vec2 f = fract( p ); - - vec2 u = fade(f); - - // Bilinear interpolation of gradients at cell vertices around point - return mix( - mix(dot( hash( i + vec2(0.0,0.0) ), f - vec2(0.0,0.0) ), - dot( hash( i + vec2(1.0,0.0) ), f - vec2(1.0,0.0) ), u.x), - mix(dot( hash( i + vec2(0.0,1.0) ), f - vec2(0.0,1.0) ), - dot( hash( i + vec2(1.0,1.0) ), f - vec2(1.0,1.0) ), u.x), - u.y); - } - - float worley(vec2 p){ - float d = 1.0e10; - for (int x = -1; x <= 1; x++){ - for (int y = -1; y <= 1; y++){ - vec2 tp = floor(p) + vec2(x, y); - tp = p - tp - (0.5 + 0.5 * hash(tp)); - d = min(d, dot(tp, tp)); - } - } - return 1.0 - clamp(d, 0.0, 1.0); - } - `),ae.fragment.code.add($.H`void main() {`),te.mode===R.u.Full&&ae.fragment.code.add($.H` - float padWidth = 1.0; - float paddedSize = ${$.H.float(G.I_)} + 2.0 * padWidth; - float tileCount = ${$.H.float(G.jy)} * ${$.H.float(G.jy)}; - vec2 tile = floor((gl_FragCoord.xy - 0.5) / paddedSize); - - bool padCell = false; - if (mod(gl_FragCoord.x, paddedSize) == 0.5 || mod(gl_FragCoord.x, paddedSize) == paddedSize - 0.5) { - padCell = true; - } - - if (mod(gl_FragCoord.y, paddedSize) == 0.5 || mod(gl_FragCoord.y, paddedSize) == paddedSize - 0.5) { - padCell = true; - } - - bool startPadX = false; - bool startPadY = false; - bool endPadX = false; - bool endPadY = false; - - if (gl_FragCoord.x == tile.x * paddedSize + 0.5) { - startPadX = true; - } - - if (gl_FragCoord.y == tile.y * paddedSize + 0.5) { - startPadY = true; - } - - if (gl_FragCoord.x == (tile.x + 1.0) * paddedSize - 0.5) { - endPadX = true; - } - - if (gl_FragCoord.y == (tile.y + 1.0) * paddedSize - 0.5) { - endPadY = true; - } - - vec2 padding = vec2(2.0 * padWidth) * tile; - vec2 uv; - - if (padCell) { - vec2 pixel = gl_FragCoord.xy - padWidth - padding; - - if (startPadX) { - pixel.x += ${$.H.float(G.I_)}; - } - - if (startPadY) { - pixel.y += ${$.H.float(G.I_)}; - } - - if (endPadX) { - pixel.x -= ${$.H.float(G.I_)}; - } - - if (endPadY) { - pixel.y -= ${$.H.float(G.I_)}; - } - - uv = vec2(pixel.xy / ${$.H.float(G.I_)}); - } else { - vec2 pixel = gl_FragCoord.xy - padWidth - padding; - uv = vec2(pixel.xy / ${$.H.float(G.I_)}); - } - - vec3 p_ = get3Dfrom2D(uv); - vec3 p = p_; - p.z /= (${$.H.float(G.jy)} * ${$.H.float(G.jy)}); - - float worleyPerlinNoise = getTextureForPointPerlinWorley(p); - float worleyNoise = getTextureForPointWorley(p); - - gl_FragColor.r = saturate(remap(worleyPerlinNoise, worleyNoise, 1.0, 0.0, 1.0)); - - p_ = mod(p_ + 1.0, ${$.H.float(G.jy)} * ${$.H.float(G.jy)}); - p = p_; - p.z /= (${$.H.float(G.jy)} * ${$.H.float(G.jy)}); - - worleyPerlinNoise = getTextureForPointPerlinWorley(p); - worleyNoise = getTextureForPointWorley(p); - - gl_FragColor.g = saturate(remap(worleyPerlinNoise, worleyNoise, 1.0, 0.0, 1.0)); - `),ae.fragment.code.add($.H` - vec2 mapUV = ${$.H.float(G.A)} * (gl_FragCoord.xy / ${$.H.float(G.IQ)}); - float map = abs(gradientNoise(mapUV)); - map = remap(map, 0.25 * (1.0 - worley(8.0 * mapUV)), 1.0, 0.0, 1.0); - - ${te.mode===R.u.Full?$.H`gl_FragColor.ba = vec2(0.0, map);`:$.H`gl_FragColor = vec4(map);`}; - } - `),ae}const X=Object.freeze(Object.defineProperty({__proto__:null,NoiseTextureAtlasPassParameters:B,build:H},Symbol.toStringTag,{value:"Module"}))},51764:(nt,Ae,v)=>{"use strict";v.d(Ae,{O:()=>Q,a:()=>W,b:()=>$});var D=v(98071),R=v(17625),G=v(22355),Z=v(35387);class Q extends R.K{}function $(){const B=new G.kG;return B.include(D.k),B.fragment.uniforms.add([new Z.A("colorTexture",H=>H.colorTexture),new Z.A("alphaTexture",H=>H.alphaTexture),new Z.A("frontFaceTexture",H=>H.frontFaceTexture)]),B.fragment.code.add(R.H`void main() { -vec4 srcColor = texture2D(colorTexture, uv); -if(srcColor.a <= 1e-5){ -discard; -} -float srcAlpha = texture2D(alphaTexture, uv).r; -vec4 frontFace = texture2D(frontFaceTexture, uv); -gl_FragColor = vec4(mix(srcColor.rgb/srcColor.a, frontFace.rgb, frontFace.a), 1.0 - srcAlpha); -}`),B}const W=Object.freeze(Object.defineProperty({__proto__:null,OITCompositingPassParameters:Q,build:$},Symbol.toStringTag,{value:"Module"}))},8651:(nt,Ae,v)=>{"use strict";v.d(Ae,{O:()=>B,a:()=>X,b:()=>H});var D=v(75224),R=v(98071),G=v(65787),Z=v(18952),Q=v(17625),$=v(22355),W=v(35387);class B extends Q.K{constructor(){super(...arguments),this.overlayIndex=D.fu.INNER,this.opacity=1}}function H(){const te=new $.kG;return te.include(R.k),te.fragment.uniforms.add(new W.A("tex",ae=>ae.texture)),te.fragment.uniforms.add(new Z._("overlayIdx",ae=>ae.overlayIndex)),te.fragment.uniforms.add(new G.p("opacity",ae=>ae.opacity)),te.fragment.code.add(Q.H`void main() { -vec2 overlayUV = overlayIdx == 0 ? vec2(uv.x * 0.5, uv.y) : vec2(uv.x * 0.5 + 0.5, uv.y); -gl_FragColor = texture2D(tex, overlayUV) * opacity; -}`),te}const X=Object.freeze(Object.defineProperty({__proto__:null,OverlayCompositingPassParameters:B,build:H},Symbol.toStringTag,{value:"Module"}))},24079:(nt,Ae,v)=>{"use strict";v.d(Ae,{P:()=>ce,b:()=>J});var D=v(52382),R=v(13934),G=v(78925),Z=v(24255),Q=v(68565),$=v(54120),W=v(62952),B=v(54662),H=v(13146),X=v(31166),te=v(10109),ae=v(96395),oe=v(7025),le=v(72968),de=v(33726),se=v(2166),re=v(97139),j=v(65787),Y=v(17625),ee=v(22355),ie=v(44835);function J(ue){const pe=new ee.kG,{vertex:he,fragment:me}=pe;switch((0,se.Sv)(he,ue),pe.varyings.add("vpos","vec3"),pe.include(Q.W,ue),ue.output!==R.H.Color&&ue.output!==R.H.Alpha||(pe.include(Z.w,ue),pe.include(le.XE,ue),pe.include(D.qj,ue),pe.varyings.add("vnormal","vec3"),pe.varyings.add("vcolor","vec4"),ue.hasMultipassTerrain&&pe.varyings.add("depth","float"),he.code.add(Y.H` - void main() { - vpos = calculateVPos(); - vnormal = normalize(localNormal()); - - ${ue.hasMultipassTerrain?"depth = (view * vec4(vpos, 1.0)).z;":""} - gl_Position = transformPosition(proj, view, vpos); - - ${ue.output===R.H.Color?"forwardLinearDepth();":""} - - vcolor = getColor(); - } - `)),pe.include(te.l,ue),ue.output){case R.H.Alpha:pe.include(G.f5,ue),me.uniforms.add(new j.p("opacity",ge=>ge.opacity)),me.code.add(Y.H` - void main() { - discardBySlice(vpos); - ${ue.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - float combinedOpacity = vcolor.a * opacity; - gl_FragColor = vec4(combinedOpacity); - } - `);break;case R.H.Color:pe.include(G.f5,ue),pe.include(H.XP,ue),pe.include(B.K,ue),pe.include(le.XE,ue),pe.include(ae.k,ue),(0,se.hY)(me,ue),(0,H.PN)(me),(0,H.sC)(me),me.uniforms.add([he.uniforms.get("localOrigin"),new re.J("ambient",ge=>ge.ambient),new re.J("diffuse",ge=>ge.diffuse),new re.J("specular",ge=>ge.specular),new j.p("opacity",ge=>ge.opacity)]),me.include(de.Y),(0,X.F1)(me),me.code.add(Y.H` - void main() { - discardBySlice(vpos); - ${ue.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - - shadingParams.viewDirection = normalize(vpos - cameraPosition); - shadingParams.normalView = vnormal; - vec3 normal = shadingNormal(shadingParams); - float ssao = evaluateAmbientOcclusionInverse(); - - float additionalAmbientScale = additionalDirectedAmbientLight(vpos + localOrigin); - vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor; - ${ue.receiveShadows?"float shadow = readShadowMap(vpos, linearDepth);":ue.spherical?"float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);":"float shadow = 0.0;"} - vec3 albedo = vcolor.rgb * max(ambient, diffuse); // combine the old material parameters into a single one - float combinedOpacity = vcolor.a * opacity; - albedo += 0.25 * specular; // don't completely ignore specular for now - - vec3 shadedColor = evaluateSceneLighting(normal, albedo, shadow, 1.0 - ssao, additionalLight); - gl_FragColor = vec4(shadedColor, combinedOpacity); - gl_FragColor = highlightSlice(gl_FragColor, vpos); - ${ue.transparencyPassType===ie.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - } - `);break;case R.H.Depth:case R.H.Shadow:case R.H.ShadowHighlight:case R.H.ShadowExludeHighlight:pe.include(Z.w,ue),(0,D.Zu)(pe),pe.varyings.add("depth","float"),he.code.add(Y.H`void main() { -vpos = calculateVPos(); -gl_Position = transformPositionWithDepth(proj, view, vpos, nearFar, depth); -}`),pe.include(G.f5,ue),pe.include($.F,ue),me.code.add(Y.H`void main() { -discardBySlice(vpos); -outputDepth(depth); -}`);break;case R.H.Normal:pe.include(Z.w,ue),pe.include(oe.n,ue),(0,se._8)(he),pe.varyings.add("vnormal","vec3"),he.code.add(Y.H`void main(void) { -vpos = calculateVPos(); -vnormal = normalize((viewNormal * vec4(localNormal(), 1.0)).xyz); -gl_Position = transformPosition(proj, view, vpos); -}`),pe.include(G.f5,ue),me.code.add(Y.H`void main() { -discardBySlice(vpos); -vec3 normal = normalize(vnormal); -if (gl_FrontFacing == false) normal = -normal; -gl_FragColor = vec4(vec3(0.5) + 0.5 * normal, 1.0); -}`);break;case R.H.Highlight:pe.include(Z.w,ue),pe.include(oe.n,ue),pe.varyings.add("vnormal","vec3"),he.code.add(Y.H`void main(void) { -vpos = calculateVPos(); -gl_Position = transformPosition(proj, view, vpos); -}`),pe.include(G.f5,ue),pe.include(W.bA,ue),me.code.add(Y.H`void main() { -discardBySlice(vpos); -outputHighlight(); -}`)}return pe}const ce=Object.freeze(Object.defineProperty({__proto__:null,build:J},Symbol.toStringTag,{value:"Module"}))},66401:(nt,Ae,v)=>{"use strict";v.d(Ae,{P:()=>ue,b:()=>J});var D=v(52382),R=v(13934),G=v(78925),Z=v(24255),Q=v(58173),$=v(54120),W=v(62952),B=v(10109),H=v(67022),X=v(33726),te=v(2166),ae=v(69960),oe=v(65787),le=v(17625),de=v(22355),se=v(44835),re=v(16396),j=v(95402);const Y=.70710678118,ee=Y;function J(pe){const he=new de.kG,me=pe.hasMultipassTerrain&&(pe.output===R.H.Color||pe.output===R.H.Alpha);pe.draped||he.extensions.add("GL_OES_standard_derivatives");const{vertex:ge,fragment:_e}=he;(0,te.Sv)(ge,pe),he.include(Z.w,pe),he.include(Q.c,pe),pe.draped?ge.uniforms.add(new oe.p("worldToScreenRatio",(be,Se)=>1/Se.screenToPCSRatio)):he.attributes.add(re.T.BOUNDINGRECT,"mat3"),he.attributes.add(re.T.POSITION,"vec3"),he.attributes.add(re.T.UVMAPSPACE,"vec4"),he.varyings.add("vpos","vec3"),he.varyings.add("vuv","vec2"),me&&he.varyings.add("depth","float");const Ee=pe.style===j.b.ForwardDiagonal||pe.style===j.b.BackwardDiagonal||pe.style===j.b.DiagonalCross;Ee&&ge.code.add(le.H` - const mat2 rotate45 = mat2(${le.H.float(Y)}, ${le.H.float(-ee)}, - ${le.H.float(ee)}, ${le.H.float(Y)}); - `),pe.draped||((0,te.hY)(ge,pe),ge.uniforms.add(new oe.p("worldToScreenPerDistanceRatio",(be,Se)=>1/Se.camera.perScreenPixelRatio)),ge.code.add(le.H`vec3 projectPointToLineSegment(vec3 center, vec3 halfVector, vec3 point) { -float projectedLength = dot(halfVector, point - center) / dot(halfVector, halfVector); -return center + halfVector * clamp(projectedLength, -1.0, 1.0); -}`),ge.code.add(le.H`vec3 intersectRayPlane(vec3 rayDir, vec3 rayOrigin, vec3 planeNormal, vec3 planePoint) { -float d = dot(planeNormal, planePoint); -float t = (d - dot(planeNormal, rayOrigin)) / dot(planeNormal, rayDir); -return rayOrigin + t * rayDir; -}`),ge.code.add(le.H` - float boundingRectDistanceToCamera() { - vec3 center = vec3(boundingRect[0][0], boundingRect[0][1], boundingRect[0][2]); - vec3 halfU = vec3(boundingRect[1][0], boundingRect[1][1], boundingRect[1][2]); - vec3 halfV = vec3(boundingRect[2][0], boundingRect[2][1], boundingRect[2][2]); - vec3 n = normalize(cross(halfU, halfV)); - - vec3 viewDir = - vec3(view[0][2], view[1][2], view[2][2]); - - float viewAngle = dot(viewDir, n); - float minViewAngle = ${le.H.float(.08715574274)}; - - if (abs(viewAngle) < minViewAngle) { - // view direction is (almost) parallel to plane -> clamp it to min angle - float normalComponent = sign(viewAngle) * minViewAngle - viewAngle; - viewDir = normalize(viewDir + normalComponent * n); - } - - // intersect view direction with infinite plane that contains bounding rect - vec3 planeProjected = intersectRayPlane(viewDir, cameraPosition, n, center); - - // clip to bounds by projecting to u and v line segments individually - vec3 uProjected = projectPointToLineSegment(center, halfU, planeProjected); - vec3 vProjected = projectPointToLineSegment(center, halfV, planeProjected); - - // use to calculate the closest point to camera on bounding rect - vec3 closestPoint = uProjected + vProjected - center; - - return length(closestPoint - cameraPosition); - } - `)),ge.code.add(le.H` - vec2 scaledUV() { - vec2 uv = uvMapSpace.xy ${Ee?" * rotate45":""}; - vec2 uvCellOrigin = uvMapSpace.zw ${Ee?" * rotate45":""}; - - ${pe.draped?"":le.H` - float distanceToCamera = boundingRectDistanceToCamera(); - float worldToScreenRatio = worldToScreenPerDistanceRatio / distanceToCamera; - `} - - // Logarithmically discretize ratio to avoid jittering - float step = 0.1; - float discreteWorldToScreenRatio = log(worldToScreenRatio); - discreteWorldToScreenRatio = ceil(discreteWorldToScreenRatio / step) * step; - discreteWorldToScreenRatio = exp(discreteWorldToScreenRatio); - - vec2 uvOffset = mod(uvCellOrigin * discreteWorldToScreenRatio, ${le.H.float(pe.patternSpacing)}); - return uvOffset + (uv * discreteWorldToScreenRatio); - } - `);const De=pe.output===R.H.Depth;return De&&(he.include($.F,pe),(0,D.Zu)(he),(0,D.Lm)(he)),ge.code.add(le.H` - void main(void) { - vuv = scaledUV(); - vpos = position; - ${me?"depth = (view * vec4(vpos, 1.0)).z;":""} - forwardNormalizedVertexColor(); - gl_Position = ${De?le.H`transformPositionWithDepth(proj, view, vpos, nearFar, linearDepth);`:le.H`transformPosition(proj, view, vpos);`} - } - `),he.include(G.f5,pe),_e.include(X.Y),pe.draped&&_e.uniforms.add(new oe.p("texelSize",(be,Se)=>1/Se.camera.pixelRatio)),pe.output===R.H.Highlight&&he.include(W.bA,pe),me&&he.include(B.l,pe),pe.output!==R.H.Highlight&&(_e.code.add(le.H` - const float lineWidth = ${le.H.float(pe.lineWidth)}; - const float spacing = ${le.H.float(pe.patternSpacing)}; - const float spacingINV = ${le.H.float(1/pe.patternSpacing)}; - - float coverage(float p, float txlSize) { - p = mod(p, spacing); - - float halfTxlSize = txlSize / 2.0; - - float start = p - halfTxlSize; - float end = p + halfTxlSize; - - float coverage = (ceil(end * spacingINV) - floor(start * spacingINV)) * lineWidth; - coverage -= min(lineWidth, mod(start, spacing)); - coverage -= max(lineWidth - mod(end, spacing), 0.0); - - return coverage / txlSize; - } - `),pe.draped||_e.code.add(le.H`const int maxSamples = 5; -float sample(float p) { -vec2 dxdy = abs(vec2(dFdx(p), dFdy(p))); -float fwidth = dxdy.x + dxdy.y; -ivec2 samples = 1 + ivec2(clamp(dxdy, 0.0, float(maxSamples - 1))); -vec2 invSamples = 1.0 / vec2(samples); -float accumulator = 0.0; -for (int j = 0; j < maxSamples; j++) { -if(j >= samples.y) { -break; -} -for (int i = 0; i < maxSamples; i++) { -if(i >= samples.x) { -break; -} -vec2 step = vec2(i,j) * invSamples - 0.5; -accumulator += coverage(p + step.x * dxdy.x + step.y * dxdy.y, fwidth); -} -} -accumulator /= float(samples.x * samples.y); -return accumulator; -}`)),_e.uniforms.add(new ae.N("uColor",be=>be.color)),_e.code.add(le.H` - void main() { - discardBySlice(vpos); - ${me?"terrainDepthTest(gl_FragCoord, depth);":""} - vec4 color = ${pe.hasVertexColors?"vColor * uColor;":"uColor;"} - color = highlightSlice(color, vpos); - - ${pe.output!==R.H.Highlight?le.H`color.a *= ${function ce(pe){function he(me){return pe.draped?le.H`coverage(vuv.${me}, texelSize)`:le.H`sample(vuv.${me})`}switch(pe.style){case j.b.ForwardDiagonal:case j.b.Horizontal:return he("y");case j.b.BackwardDiagonal:case j.b.Vertical:return he("x");case j.b.DiagonalCross:case j.b.Cross:return le.H` - 1.0 - (1.0 - ${he("x")}) * (1.0 - ${he("y")}) - `;default:return"0.0"}}(pe)};`:""} - - if (color.a < ${le.H.float(H.b)}) { - discard; - } - - ${pe.output===R.H.Alpha?le.H`gl_FragColor = vec4(color.a);`:""} - - ${pe.output===R.H.Color?le.H`gl_FragColor = color; ${pe.transparencyPassType===se.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""}`:""} - ${pe.output===R.H.Highlight?le.H`outputHighlight();`:""} - ${pe.output===R.H.Depth?le.H`outputDepth(linearDepth);`:""}; - } - `),he}const ue=Object.freeze(Object.defineProperty({__proto__:null,build:J},Symbol.toStringTag,{value:"Module"}))},5585:(nt,Ae,v)=>{"use strict";v.d(Ae,{P:()=>j,b:()=>X});var D=v(84161),R=v(28093),G=v(6067),Z=v(97139),Q=v(65787),$=v(17625),W=v(63123),B=v(22355),H=v(16396);function X(Y){const ee=new B.kG;return ee.attributes.add(H.T.POSITION,"vec3"),ee.attributes.add(H.T.INSTANCEFEATUREATTRIBUTE,"float"),ee.vertex.uniforms.add(new Z.J("cameraPosition",(ie,J)=>J.camera.eye)),ee.vertex.uniforms.add(new Z.J("offset",(ie,J)=>function te(Y,ee){const ie=ee.camera.eye,J=.5*Y.width,ce=1/Y.width,ue=(0,D.H)(oe,(0,D.s)(oe,(ie[0]+J)*ce,(ie[1]+J)*ce,(ie[2]+J)*ce));return(0,D.y)(ue,ie,(0,D.g)(ue,ue,Y.width))}(ie,J))),ee.vertex.uniforms.add(new Q.p("width",ie=>ie.width)),ee.vertex.uniforms.add(new W.g("proj",(ie,J)=>J.camera.projectionMatrix)),ee.vertex.uniforms.add(new W.g("view",(ie,J)=>J.camera.viewMatrix)),ee.vertex.uniforms.add(new Q.p("time",ie=>ie.time)),ee.varyings.add("vUv","vec2"),ee.vertex.code.add($.H` - vec3 hash31(float p){ - vec3 p3 = fract(vec3(p) * vec3(0.1031, 0.1030, 0.0973)); - p3 += dot(p3, p3.yzx + 33.33); - return fract((p3.xxy + p3.yzz) * p3.zyx); - } - - float hash11(float p){ - p = fract(p * 0.1031); - p *= p + 33.33; - p *= p + p; - return fract(p); - } - - //https://www.geeks3d.com/20141201/how-to-rotate-a-vertex-by-a-quaternion-in-glsl/ - vec3 rotateVectorByQuaternion(vec3 v, vec4 q){ - return 2.0 * cross(q.xyz, v * q.w + cross(q.xyz, v)) + v; - } - - void main(void) { - - vUv = position.xz; - - vec3 rand = hash31(instanceFeatureAttribute); - - // Set random position for all particles - // The hash function space is not high resolution so offset particles by an additional random value - // This creates grids of 1000 particles which are shifted by random hundreths of the tile width - // overlaying multiple identical but offset grids - vec3 randomPosition = 2.0 * (rand + (0.01 + 0.01 * rand) * floor(0.001 * instanceFeatureAttribute)) - 1.0; - - // Random orientation of rain drops - float angle = 3.1415 * hash11(instanceFeatureAttribute); - - vec3 up = vec3(0, 0, 1); - - // Gravity and wind direction - vec3 direction = normalize(cameraPosition); - - vec3 tangent = normalize(cross(direction, up)); - - // Gravity - vec3 animatedPos = randomPosition + direction * -time; - - // Rain particles fall straight down and are randomly oriented - // Snow particles have random sinusoid trajectories and are rotated to face the camera - ${Y.type===G.H.Rain?$.H` - // Random rotation for particle - vec3 rotationAxis = up; - vec4 quat = vec4(rotationAxis * sin(angle), cos(angle)); - vec3 transformedPos = rotateVectorByQuaternion(vec3(0.2, 0.2, 4.0) * (position - vec3(0.5, 0.0, 0.5)), quat); - - // Rotate particle to planetary position - rotationAxis = tangent; - angle = 0.5 * -acos(dot(direction, up)); - quat = vec4(rotationAxis * sin(angle), cos(angle)); - transformedPos = rotateVectorByQuaternion(transformedPos, quat); - - vec4 pos = mat4(mat3(view)) * vec4(transformedPos + (mod(width * animatedPos - offset, width) - 0.5 * width), 1.0); - gl_Position = proj * pos; - `:$.H` - vec3 rotationAxis = direction; - vec4 quat = vec4(rotationAxis * sin(angle), cos(angle)); - - tangent = rotateVectorByQuaternion(tangent, quat); - // Random sinusoid from friction - animatedPos += tangent * 0.25 * sin(dot(animatedPos, direction)); - vec4 pos = mat4(mat3(view)) * vec4((mod(width * animatedPos - offset, width) - 0.5 * width), 1.0); - gl_Position = proj * (0.5 * vec4(position.xzy, 0.0) + pos); - `} - } - `),ee.fragment.uniforms.add([new Q.p("opacity",ie=>ie.opacity),new Z.J("particleColor",(ie,J)=>function ae(Y,ee){const ie=ee.type===G.H.Rain?se:de,J=(0,D.g)(oe,ie,re);(0,D.n)(le,Y.camera.eye);const ue=Math.max(0,(0,D.e)(le,Y.lighting.mainLight.direction));return(0,D.h)(J,J,ie,ue)}(J,Y))]),ee.fragment.code.add($.H` - void main() { - - // Cut off corners of the triangle - if(vUv.x < 0.0 || vUv.y < 0.0){ - discard; - } - - float d = length(vUv - vec2(0.5)); - - ${Y.type===G.H.Rain?$.H`d = 0.35 * smoothstep(0.5, 0.0, d);`:$.H`d = smoothstep(0.5, 0.1, d);`} - gl_FragColor = opacity * vec4(particleColor * d, d); - } - `),ee}const oe=(0,R.c)(),le=(0,R.c)(),de=(0,R.f)(1,1,1),se=(0,R.f)(.85,.85,.85),re=.7,j=Object.freeze(Object.defineProperty({__proto__:null,build:X},Symbol.toStringTag,{value:"Module"}))},44796:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>se,R:()=>ce,a:()=>re,b:()=>j,c:()=>Y});var D=v(28093),R=v(62449),G=v(3802),Z=v(76301),Q=v(87191),$=v(14273),W=v(33726),B=v(78038),H=v(95285),X=v(65787),te=v(7090),ae=v(18952),oe=v(17625),le=v(22355),de=v(35387);class se extends Z.J{constructor(pe,he,me,ge,_e,Ee){super(pe,ge,_e),this.colormap=he,this.symbolizer=me,this.u_colormap=Ee,this.backgroundColor=D.Z,this.fboTexture=null,this.baseOpacity=1}}class re extends se{}class j extends se{}function Y(ue){const pe=new le.kG;return pe.include($.T),pe.include(Z.G,ue),pe.include(G.i,ue),pe.include(Q.JT,ue),pe.fragment.code.add(oe.H`vec4 applyBackgroundBlend(vec4 layerColor) { -vec4 bgColor = getBackground(vuv); -return blendLayers(bgColor, layerColor, u_opacity); -}`),ue.colorizerType===R.U.Stretch?function ie(ue,pe){ue.fragment.uniforms.add([new ae._("u_bandCount",me=>me.symbolizer.u_bandCount),new te.O("u_minCutOff",me=>me.symbolizer.u_minCutOff,3),new te.O("u_maxCutOff",me=>me.symbolizer.u_maxCutOff,3),new te.O("u_factor",me=>me.symbolizer.u_factor,3),new X.p("u_minOutput",me=>me.symbolizer.u_minOutput),new X.p("u_maxOutput",me=>me.symbolizer.u_maxOutput),new B.U("u_useGamma",me=>me.symbolizer.u_useGamma),new te.O("u_gamma",me=>me.symbolizer.u_gamma,3),new te.O("u_gammaCorrection",me=>me.symbolizer.u_gammaCorrection,3),new X.p("u_opacity",me=>me.common.u_opacity)]),ue.fragment.code.add(oe.H`float stretchOneValue(float val, float minCutOff, float maxCutOff, float minOutput, float maxOutput, float factor, bool useGamma, float gamma, float gammaCorrection) { -if (val >= maxCutOff) { -return maxOutput; -} else if (val <= minCutOff) { -return minOutput; -} -float stretchedVal; -if (useGamma) { -float tempf = 1.0; -float outRange = maxOutput - minOutput; -float relativeVal = (val - minCutOff) / (maxCutOff - minCutOff); -if (gamma > 1.0) { -tempf -= pow(1.0 / outRange, relativeVal * gammaCorrection); -} -stretchedVal = (tempf * outRange * pow(relativeVal, 1.0 / gamma) + minOutput) / 255.0; -} else { -stretchedVal = minOutput + (val - minCutOff) * factor; -} -return stretchedVal; -}`);const he=pe.applyColormap?oe.H`gl_FragColor = applyBackgroundBlend(colormap(vec4(grayVal, grayVal, grayVal, currentPixel.a), !u_useGamma));`:oe.H`gl_FragColor = applyBackgroundBlend(vec4(grayVal, grayVal, grayVal, currentPixel.a));`;ue.fragment.code.add(oe.H` - void main() { - vec2 pixelLocation = getPixelLocation(uv); - if (isOutside(pixelLocation)) { - gl_FragColor = applyBackgroundBlend(vec4(0.0, 0.0, 0.0, 0.0)); - return; - } - - vec4 currentPixel = getPixel(pixelLocation); - ${pe.stretchType===R.H.Noop?oe.H` - gl_FragColor = applyBackgroundBlend(currentPixel);`:oe.H` - if (currentPixel.a == 0.0) { - gl_FragColor = applyBackgroundBlend(vec4(0.0, 0.0, 0.0, 0.0)); - return; - } - if (u_bandCount == 1) { - float grayVal = stretchOneValue(currentPixel.r, u_minCutOff[0], u_maxCutOff[0], u_minOutput, u_maxOutput, u_factor[0], u_useGamma, u_gamma[0], u_gammaCorrection[0]); - ${he} - } else { - float redVal = stretchOneValue(currentPixel.r, u_minCutOff[0], u_maxCutOff[0], u_minOutput, u_maxOutput, u_factor[0], u_useGamma, u_gamma[0], u_gammaCorrection[0]); - float greenVal = stretchOneValue(currentPixel.g, u_minCutOff[1], u_maxCutOff[1], u_minOutput, u_maxOutput, u_factor[1], u_useGamma, u_gamma[1], u_gammaCorrection[1]); - float blueVal = stretchOneValue(currentPixel.b, u_minCutOff[2], u_maxCutOff[2], u_minOutput, u_maxOutput, u_factor[2], u_useGamma, u_gamma[2], u_gammaCorrection[2]); - gl_FragColor = applyBackgroundBlend(vec4(redVal, greenVal, blueVal, currentPixel.a)); - }`} - }`)}(pe,ue):ue.colorizerType===R.U.Lut?function ee(ue){ue.fragment.code.add(oe.H`void main() { -vec2 pixelLocation = getPixelLocation(uv); -if (isOutside(pixelLocation)) { -gl_FragColor = applyBackgroundBlend(vec4(0.0, 0.0, 0.0, 0.0)); -return; -} -vec4 currentPixel = getPixel(pixelLocation); -gl_FragColor = applyBackgroundBlend(colormap(currentPixel, true)); -}`)}(pe):ue.colorizerType===R.U.Hillshade&&function J(ue,pe){const he=ue.fragment;he.uniforms.add([new de.A("u_image",ge=>ge.u_image),new ae._("u_hillshadeType",ge=>ge.symbolizer.u_hillshadeType),new te.O("u_sinZcosAs",ge=>ge.symbolizer.u_sinZcosAs,6),new te.O("u_sinZsinAs",ge=>ge.symbolizer.u_sinZsinAs,6),new te.O("u_cosZs",ge=>ge.symbolizer.u_cosZs,6),new te.O("u_weights",ge=>ge.symbolizer.u_weights,6),new H.A("u_factor",ge=>ge.symbolizer.u_factor),new X.p("u_minValue",ge=>ge.symbolizer.u_minValue),new X.p("u_maxValue",ge=>ge.symbolizer.u_maxValue),new H.A("u_srcImageSize",ge=>ge.common.u_srcImageSize)]),he.include(W.Y),he.code.add(oe.H`vec4 overlay(float val, float minValue, float maxValue, float hillshade, float alpha) { -val = clamp((val - minValue) / (maxValue - minValue), 0.0, 1.0); -vec3 hsv = rgb2hsv(colormap(vec4(val, val, val, 1.0), false).rgb); -hsv.z = hillshade; -return vec4(hsv2rgb(hsv) * alpha, alpha); -}`),he.code.add(oe.H`float getNeighborHoodAlpha(float a, float b, float c, float d, float e, float f, float g, float h, float i){ -if (a == 0.0 || a == 0.0 || a==0.0 || a == 0.0 || a == 0.0 || a==0.0 || a == 0.0 || a == 0.0 || a==0.0) { -return 0.0; -} else { -return e; -} -}`);const me=pe.applyColormap?oe.H`gl_FragColor = applyBackgroundBlend(overlay(ve.r, u_minValue, u_maxValue, hillshade, alpha));`:oe.H`hillshade *= alpha; -gl_FragColor = applyBackgroundBlend(vec4(hillshade, hillshade, hillshade, alpha));`;he.code.add(oe.H` - void main() { - vec2 pixelLocation = getPixelLocation(uv); - if (isOutside(pixelLocation)) { - gl_FragColor = applyBackgroundBlend(vec4(0.0, 0.0, 0.0, 0.0)); - return; - } - - vec4 currentPixel = getPixel(pixelLocation); - if (currentPixel.a == 0.0) { - gl_FragColor = applyBackgroundBlend(vec4(0.0, 0.0, 0.0, 0.0)); - return; - } - - //mirror edge pixels - vec2 axy = vec2(-1.0, -1.0); - vec2 bxy = vec2(0.0, -1.0); - vec2 cxy = vec2(1.0, -1.0); - vec2 dxy = vec2(-1.0, 0.0); - vec2 fxy = vec2(1.0, 0.0); - vec2 gxy = vec2(-1.0, 1.0); - vec2 hxy = vec2(0.0, 1.0); - vec2 ixy = vec2(1.0, 1.0); - vec2 onePixel = 1.0 / u_srcImageSize; - if (pixelLocation.s < onePixel.s) { - axy[0] = 1.0; - dxy[0] = 1.0; - gxy[0] = 1.0; - } - if (pixelLocation.t < onePixel.t) { - axy[1] = 1.0; - bxy[1] = 1.0; - cxy[1] = 1.0; - } - if (pixelLocation.s > 1.0 - onePixel.s) { - cxy[0] = -1.0; - fxy[0] = -1.0; - ixy[0] = -1.0; - } - if (pixelLocation.t > 1.0 - onePixel.t) { - gxy[1] = -1.0; - hxy[1] = -1.0; - ixy[1] = -1.0; - } - - // calculate hillshade - vec4 va = texture2D(u_image, pixelLocation + onePixel * axy); - vec4 vb = texture2D(u_image, pixelLocation + onePixel * bxy); - vec4 vc = texture2D(u_image, pixelLocation + onePixel * cxy); - vec4 vd = texture2D(u_image, pixelLocation + onePixel * dxy); - vec4 ve = texture2D(u_image, pixelLocation); - vec4 vf = texture2D(u_image, pixelLocation + onePixel * fxy); - vec4 vg = texture2D(u_image, pixelLocation + onePixel * gxy); - vec4 vh = texture2D(u_image, pixelLocation + onePixel * hxy); - vec4 vi = texture2D(u_image, pixelLocation + onePixel * ixy); - - // calculate the rate of z change along the x, y, and diagonal direction - float dzx = (vc + 2.0 * vf + vi - va - 2.0 * vd - vg).r * u_factor.s; - float dzy = (vg + 2.0 * vh + vi - va - 2.0 * vb - vc).r * u_factor.t; - float dzd = sqrt(1.0 + dzx * dzx + dzy * dzy); - float hillshade = 0.0; - - // traditional single light source - if (u_hillshadeType == 0){ - float cosDelta = u_sinZsinAs[0] * dzy - u_sinZcosAs[0] * dzx; - float z = (u_cosZs[0] + cosDelta) / dzd; - if (z < 0.0) z = 0.0; - hillshade = z; - } else { - // multi-directional with 6 light sources - for (int k = 0; k < 6; k++) { - float cosDelta = u_sinZsinAs[k] * dzy - u_sinZcosAs[k] * dzx; - float z = (u_cosZs[k] + cosDelta) / dzd; - if (z < 0.0) z = 0.0; - hillshade = hillshade + z * u_weights[k]; - if (k == 5) break; - } - } - - // set color - float alpha = getNeighborHoodAlpha(va.a, vb.a, vc.a, vd.a, ve.a, vf.a, vg.a, vh.a, vi.a); - alpha *= u_opacity; - ${me} - } - `)}(pe,ue),pe}const ce=Object.freeze(Object.defineProperty({__proto__:null,ColorizerUniforms:se,ColorizerStretchUniforms:re,ColorizerHillshadeUniforms:j,build:Y},Symbol.toStringTag,{value:"Module"}))},77133:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>ve,b:()=>ye});var D=v(52382),R=v(73132),G=v(13934),Z=v(78925),Q=v(24255),$=v(60355),W=v(26859),B=v(84833),H=v(99579),X=v(36603),te=v(58173),ae=v(66085),oe=v(58208),le=v(54662),de=v(13146),se=v(31166),re=v(10109),j=v(98898),Y=v(92724),ee=v(72968),ie=v(92836),J=v(67022),ce=v(93609),ue=v(28137),pe=v(2166),he=v(97139),me=v(69960),ge=v(65787),_e=v(17625),Ee=v(22355),De=v(35387),be=v(44835),Se=v(16396);function ye(xe){const ze=new Ee.kG,{vertex:Ke,fragment:We,varyings:Ce}=ze;return(0,pe.Sv)(Ke,xe),ze.include(B.f),Ce.add("vpos","vec3"),ze.include(ie.k,xe),ze.include($.f,xe),ze.include(ae.L,xe),xe.output!==G.H.Color&&xe.output!==G.H.Alpha||((0,pe.hY)(ze.vertex,xe),ze.include(W.O,xe),ze.include(Q.w,xe),xe.offsetBackfaces&&ze.include(R.w),xe.instancedColor&&ze.attributes.add(Se.T.INSTANCECOLOR,"vec4"),Ce.add("vNormalWorld","vec3"),Ce.add("localvpos","vec3"),xe.hasMultipassTerrain&&Ce.add("depth","float"),ze.include(X.D,xe),ze.include(D.qj,xe),ze.include(H.R,xe),ze.include(te.c,xe),Ke.uniforms.add(new me.N("externalColor",Be=>Be.externalColor)),Ce.add("vcolorExt","vec4"),Ke.code.add(_e.H` - void main(void) { - forwardNormalizedVertexColor(); - vcolorExt = externalColor; - ${xe.instancedColor?"vcolorExt *= instanceColor;":""} - vcolorExt *= vvColor(); - vcolorExt *= getSymbolColor(); - forwardColorMixMode(); - - if (vcolorExt.a < ${_e.H.float(J.b)}) { - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - } else { - vpos = calculateVPos(); - localvpos = vpos - view[3].xyz; - vpos = subtractOrigin(vpos); - vNormalWorld = dpNormal(vvLocalNormal(normalModel())); - vpos = addVerticalOffset(vpos, localOrigin); - gl_Position = transformPosition(proj, view, vpos); - ${xe.offsetBackfaces?"gl_Position = offsetBackfacingClipPosition(gl_Position, vpos, vNormalWorld, cameraPosition);":""} - } - ${xe.hasMultipassTerrain?_e.H`depth = (view * vec4(vpos, 1.0)).z;`:""} - forwardLinearDepth(); - forwardTextureCoordinates(); - } - `)),xe.output===G.H.Alpha&&(ze.include(Z.f5,xe),ze.include(ce.z,xe),ze.include(re.l,xe),We.uniforms.add([new ge.p("opacity",Be=>Be.opacity),new ge.p("layerOpacity",Be=>Be.layerOpacity)]),xe.hasColorTexture&&We.uniforms.add(new De.A("tex",Be=>Be.texture)),We.include(ue.y),We.code.add(_e.H` - void main() { - discardBySlice(vpos); - ${xe.hasMultipassTerrain?_e.H`terrainDepthTest(gl_FragCoord, depth);`:""} - ${xe.hasColorTexture?_e.H` - vec4 texColor = texture2D(tex, ${xe.hasColorTextureTransform?_e.H`colorUV`:_e.H`vuv0`}); - ${xe.textureAlphaPremultiplied?"texColor.rgb /= texColor.a;":""} - discardOrAdjustAlpha(texColor);`:_e.H`vec4 texColor = vec4(1.0);`} - ${xe.hasVertexColors?_e.H`float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:_e.H`float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`} - - gl_FragColor = vec4(opacity_); - } - `)),xe.output===G.H.Color&&(ze.include(Z.f5,xe),ze.include(de.XP,xe),ze.include(le.K,xe),ze.include(ce.z,xe),ze.include(xe.instancedDoublePrecision?ee.hb:ee.XE,xe),ze.include(re.l,xe),(0,pe.hY)(ze.fragment,xe),(0,se.Pe)(We),(0,de.PN)(We),(0,de.sC)(We),We.uniforms.add([Ke.uniforms.get("localOrigin"),Ke.uniforms.get("view"),new he.J("ambient",Be=>Be.ambient),new he.J("diffuse",Be=>Be.diffuse),new ge.p("opacity",Be=>Be.opacity),new ge.p("layerOpacity",Be=>Be.layerOpacity)]),xe.hasColorTexture&&We.uniforms.add(new De.A("tex",Be=>Be.texture)),ze.include(Y.jV,xe),ze.include(j.T,xe),We.include(ue.y),ze.extensions.add("GL_OES_standard_derivatives"),(0,se.F1)(We),We.code.add(_e.H` - void main() { - discardBySlice(vpos); - ${xe.hasMultipassTerrain?_e.H`terrainDepthTest(gl_FragCoord, depth);`:""} - ${xe.hasColorTexture?_e.H` - vec4 texColor = texture2D(tex, ${xe.hasColorTextureTransform?_e.H`colorUV`:_e.H`vuv0`}); - ${xe.textureAlphaPremultiplied?"texColor.rgb /= texColor.a;":""} - discardOrAdjustAlpha(texColor);`:_e.H`vec4 texColor = vec4(1.0);`} - vec3 viewDirection = normalize(vpos - cameraPosition); - ${xe.pbrMode===Y.f7.Normal?"applyPBRFactors();":""} - float ssao = evaluateAmbientOcclusionInverse(); - ssao *= getBakedOcclusion(); - - float additionalAmbientScale = additionalDirectedAmbientLight(vpos + localOrigin); - vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor; - ${xe.receiveShadows?"float shadow = readShadowMap(vpos, linearDepth);":xe.spherical?"float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);":"float shadow = 0.0;"} - vec3 matColor = max(ambient, diffuse); - ${xe.hasVertexColors?_e.H` - vec3 albedo = mixExternalColor(vColor.rgb * matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode)); - float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:_e.H` - vec3 albedo = mixExternalColor(matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode)); - float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`} - ${xe.snowCover?_e.H`albedo = mix(albedo, vec3(1), 0.9);`:_e.H``} - ${_e.H` - vec3 shadingNormal = normalize(vNormalWorld); - albedo *= 1.2; - vec3 viewForward = vec3(view[0][2], view[1][2], view[2][2]); - float alignmentLightView = clamp(dot(viewForward, -mainLightDirection), 0.0, 1.0); - float transmittance = 1.0 - clamp(dot(viewForward, shadingNormal), 0.0, 1.0); - float treeRadialFalloff = vColor.r; - float backLightFactor = 0.5 * treeRadialFalloff * alignmentLightView * transmittance * (1.0 - shadow); - additionalLight += backLightFactor * mainLightIntensity;`} - ${xe.pbrMode===Y.f7.Normal||xe.pbrMode===Y.f7.Schematic?xe.spherical?_e.H`vec3 normalGround = normalize(vpos + localOrigin);`:_e.H`vec3 normalGround = vec3(0.0, 0.0, 1.0);`:_e.H``} - ${xe.pbrMode===Y.f7.Normal||xe.pbrMode===Y.f7.Schematic?_e.H` - float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * mainLightIntensity[2]; - ${xe.snowCover?_e.H` - mrr = vec3(0.0, 1.0, 0.04); - emission = vec3(0.0);`:""} - - vec3 shadedColor = evaluateSceneLightingPBR(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight, viewDirection, normalGround, mrr, emission, additionalAmbientIrradiance);`:_e.H`vec3 shadedColor = evaluateSceneLighting(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight);`} - gl_FragColor = highlightSlice(vec4(shadedColor, opacity_), vpos); - ${xe.transparencyPassType===be.A.Color?_e.H`gl_FragColor = premultiplyAlpha(gl_FragColor);`:_e.H``} - } - `)),ze.include(oe.s,xe),ze}const ve=Object.freeze(Object.defineProperty({__proto__:null,build:ye},Symbol.toStringTag,{value:"Module"}))},3393:(nt,Ae,v)=>{"use strict";v.d(Ae,{N:()=>pe,R:()=>me,b:()=>he});var D=v(62208),R=v(52382),G=v(13934),Z=v(78925),Q=v(23164),$=v(39645),W=v(54120),B=v(92484),H=v(50823),X=v(10109),te=v(39337),ae=v(67022),oe=v(33726),le=v(2166),de=v(95285),se=v(69960),re=v(65787),j=v(17625),Y=v(63123),ee=v(22355),ie=v(44835),J=v(16396),ce=v(46359),ue=v(39401);const pe=1;function he(ge){const _e=new ee.kG,{vertex:Ee,fragment:De}=_e,be=ge.hasMultipassTerrain&&(ge.output===G.H.Color||ge.output===G.H.Alpha);_e.include(te.e),_e.include($.U,ge),_e.include(B.q,ge);const Se=ge.applyMarkerOffset&&!ge.draped;Se&&(Ee.uniforms.add(new re.p("markerScale",Be=>Be.markerScale)),_e.include(H.Q,{space:ce.I9.World})),ge.output===G.H.Depth&&_e.include(W.F,ge),_e.include(Q.R,ge),(0,le.Sv)(Ee,ge),Ee.uniforms.add([new Y.g("inverseProjectionMatrix",(Be,Fe)=>Fe.camera.inverseProjectionMatrix),new de.A("nearFar",(Be,Fe)=>Fe.camera.nearFar),new re.p("miterLimit",Be=>"miter"!==Be.join?0:Be.miterLimit),new se.N("viewport",(Be,Fe)=>Fe.camera.fullViewport)]),Ee.constants.add("LARGE_HALF_FLOAT","float",65500),_e.attributes.add(J.T.POSITION,"vec3"),_e.attributes.add(J.T.SUBDIVISIONFACTOR,"float"),_e.attributes.add(J.T.UV0,"vec2"),_e.attributes.add(J.T.AUXPOS1,"vec3"),_e.attributes.add(J.T.AUXPOS2,"vec3"),_e.varyings.add("vColor","vec4"),_e.varyings.add("vpos","vec3"),(0,R.Lm)(_e),be&&_e.varyings.add("depth","float");const ye=ge.capType===ue.R.ROUND,ve=ge.stippleEnabled&&ge.stippleScaleWithLineWidth||ye;ve&&_e.varyings.add("vLineWidth","float");const xe=ge.stippleEnabled&&ge.stippleScaleWithLineWidth;xe&&_e.varyings.add("vLineSizeInv","float");const ze=ge.innerColorEnabled||ye;ze&&_e.varyings.add("vLineDistance","float");const Ke=ge.stippleEnabled&&ye,We=ge.falloffEnabled||Ke;return We&&_e.varyings.add("vLineDistanceNorm","float"),ye&&(_e.varyings.add("vSegmentSDF","float"),_e.varyings.add("vReverseSegmentSDF","float")),Ee.code.add(j.H`#define PERPENDICULAR(v) vec2(v.y, -v.x); -float interp(float ncp, vec4 a, vec4 b) { -return (-ncp - a.z) / (b.z - a.z); -} -vec2 rotate(vec2 v, float a) { -float s = sin(a); -float c = cos(a); -mat2 m = mat2(c, -s, s, c); -return m * v; -}`),Ee.code.add(j.H`vec4 projectAndScale(vec4 pos) { -vec4 posNdc = proj * pos; -posNdc.xy *= viewport.zw / posNdc.w; -return posNdc; -}`),(0,R.bA)(_e),Ee.code.add(j.H` - void clipAndTransform(inout vec4 pos, inout vec4 prev, inout vec4 next, in bool isStartVertex) { - float vnp = nearFar[0] * 0.99; - - if(pos.z > -nearFar[0]) { - //current pos behind ncp --> we need to clip - if (!isStartVertex) { - if(prev.z < -nearFar[0]) { - //previous in front of ncp - pos = mix(prev, pos, interp(vnp, prev, pos)); - next = pos; - } else { - pos = vec4(0.0, 0.0, 0.0, 1.0); - } - } else { - if(next.z < -nearFar[0]) { - //next in front of ncp - pos = mix(pos, next, interp(vnp, pos, next)); - prev = pos; - } else { - pos = vec4(0.0, 0.0, 0.0, 1.0); - } - } - } else { - //current position visible - if (prev.z > -nearFar[0]) { - //previous behind ncp - prev = mix(pos, prev, interp(vnp, pos, prev)); - } - if (next.z > -nearFar[0]) { - //next behind ncp - next = mix(next, pos, interp(vnp, next, pos)); - } - } - - ${be?"depth = pos.z;":""} - linearDepth = calculateLinearDepth(nearFar,pos.z); - - pos = projectAndScale(pos); - next = projectAndScale(next); - prev = projectAndScale(prev); - } - `),Ee.uniforms.add(new re.p("pixelRatio",(Be,Fe)=>Fe.camera.pixelRatio)),Ee.code.add(j.H` - void main(void) { - // unpack values from uv0.y - bool isStartVertex = abs(abs(uv0.y)-3.0) == 1.0; - - float coverage = 1.0; - - // Check for special value of uv0.y which is used by the Renderer when graphics - // are removed before the VBO is recompacted. If this is the case, then we just - // project outside of clip space. - if (uv0.y == 0.0) { - // Project out of clip space - gl_Position = vec4(1e038, 1e038, 1e038, 1.0); - } - else { - bool isJoin = abs(uv0.y) < 3.0; - - float lineSize = getSize(); - float lineWidth = lineSize * pixelRatio; - - ${ve?j.H`vLineWidth = lineWidth;`:""} - ${xe?j.H`vLineSizeInv = 1.0 / lineSize;`:""} - - // convert sub-pixel coverage to alpha - if (lineWidth < 1.0) { - coverage = lineWidth; - lineWidth = 1.0; - }else{ - // Ribbon lines cannot properly render non-integer sizes. Round width to integer size if - // larger than one for better quality. Note that we do render < 1 pixels more or less correctly - // so we only really care to round anything larger than 1. - lineWidth = floor(lineWidth + 0.5); - } - - vec4 pos = view * vec4(position.xyz, 1.0); - vec4 prev = view * vec4(auxpos1.xyz, 1.0); - vec4 next = view * vec4(auxpos2.xyz, 1.0); - `),Se&&Ee.code.add(j.H`vec4 other = isStartVertex ? next : prev; -bool markersHidden = areWorldMarkersHidden(pos, other); -if(!isJoin && !markersHidden) { -pos.xyz += normalize(other.xyz - pos.xyz) * getWorldMarkerSize(pos) * 0.5; -}`),Ee.code.add(j.H`clipAndTransform(pos, prev, next, isStartVertex); -vec2 left = (pos.xy - prev.xy); -vec2 right = (next.xy - pos.xy); -float leftLen = length(left); -float rightLen = length(right);`),(ge.stippleEnabled||ye)&&Ee.code.add(j.H` - float isEndVertex = float(!isStartVertex); - vec2 segmentOrigin = mix(pos.xy, prev.xy, isEndVertex); - vec2 segment = mix(right, left, isEndVertex); - ${ye?j.H`vec2 segmentEnd = mix(next.xy, pos.xy, isEndVertex);`:""} - `),Ee.code.add(j.H`left = (leftLen > 0.001) ? left/leftLen : vec2(0.0, 0.0); -right = (rightLen > 0.001) ? right/rightLen : vec2(0.0, 0.0); -vec2 capDisplacementDir = vec2(0, 0); -vec2 joinDisplacementDir = vec2(0, 0); -float displacementLen = lineWidth; -if (isJoin) { -bool isOutside = (left.x * right.y - left.y * right.x) * uv0.y > 0.0; -joinDisplacementDir = normalize(left + right); -joinDisplacementDir = PERPENDICULAR(joinDisplacementDir); -if (leftLen > 0.001 && rightLen > 0.001) { -float nDotSeg = dot(joinDisplacementDir, left); -displacementLen /= length(nDotSeg * left - joinDisplacementDir); -if (!isOutside) { -displacementLen = min(displacementLen, min(leftLen, rightLen)/abs(nDotSeg)); -} -} -if (isOutside && (displacementLen > miterLimit * lineWidth)) {`),Ee.code.add(ge.roundJoins?j.H` - vec2 startDir = leftLen < 0.001 ? right : left; - startDir = PERPENDICULAR(startDir); - - vec2 endDir = rightLen < 0.001 ? left : right; - endDir = PERPENDICULAR(endDir); - - float factor = ${ge.stippleEnabled?j.H`min(1.0, subdivisionFactor * ${j.H.float((pe+2)/(pe+1))})`:j.H`subdivisionFactor`}; - - float rotationAngle = acos(clamp(dot(startDir, endDir), -1.0, 1.0)); - joinDisplacementDir = rotate(startDir, -sign(uv0.y) * factor * rotationAngle); - `:j.H`if (leftLen < 0.001) { -joinDisplacementDir = right; -} -else if (rightLen < 0.001) { -joinDisplacementDir = left; -} -else { -joinDisplacementDir = (isStartVertex || subdivisionFactor > 0.0) ? right : left; -} -joinDisplacementDir = PERPENDICULAR(joinDisplacementDir);`),Ee.code.add(j.H` - displacementLen = lineWidth; - } - } else { - // CAP handling --------------------------------------------------- - joinDisplacementDir = isStartVertex ? right : left; - joinDisplacementDir = PERPENDICULAR(joinDisplacementDir); - - ${ge.capType!==ue.R.BUTT?j.H`capDisplacementDir = isStartVertex ? -right : left;`:""} - } - `),Ee.code.add(j.H` - // Displacement (in pixels) caused by join/or cap - vec2 dpos = joinDisplacementDir * sign(uv0.y) * displacementLen + capDisplacementDir * displacementLen; - - ${We||ze?j.H`float lineDistNorm = sign(uv0.y) * pos.w;`:""} - - ${ze?j.H`vLineDistance = lineWidth * lineDistNorm;`:""} - ${We?j.H`vLineDistanceNorm = lineDistNorm;`:""} - - pos.xy += dpos; - `),ye&&Ee.code.add(j.H`vec2 segmentDir = normalize(segment); -vSegmentSDF = (isJoin && isStartVertex) ? LARGE_HALF_FLOAT : (dot(pos.xy - segmentOrigin, segmentDir) * pos.w) ; -vReverseSegmentSDF = (isJoin && !isStartVertex) ? LARGE_HALF_FLOAT : (dot(pos.xy - segmentEnd, -segmentDir) * pos.w);`),ge.stippleEnabled&&(ge.draped?Ee.uniforms.add(new re.p("worldToScreenRatio",(Be,Fe)=>1/Fe.screenToPCSRatio)):Ee.code.add(j.H`vec3 segmentCenter = mix((auxpos2 + position) * 0.5, (position + auxpos1) * 0.5, isEndVertex); -float worldToScreenRatio = computeWorldToScreenRatio(segmentCenter);`),Ee.code.add(j.H`float segmentLengthScreenDouble = length(segment); -float segmentLengthScreen = segmentLengthScreenDouble * 0.5; -float discreteWorldToScreenRatio = discretizeWorldToScreenRatio(worldToScreenRatio); -float segmentLengthRender = length(mix(auxpos2 - position, position - auxpos1, isEndVertex)); -vStipplePatternStretch = worldToScreenRatio / discreteWorldToScreenRatio;`),Ee.code.add(ge.draped?j.H`float segmentLengthPseudoScreen = segmentLengthScreen / pixelRatio * discreteWorldToScreenRatio / worldToScreenRatio; -float startPseudoScreen = uv0.x * discreteWorldToScreenRatio - mix(0.0, segmentLengthPseudoScreen, isEndVertex);`:j.H`float startPseudoScreen = mix(uv0.x, uv0.x - segmentLengthRender, isEndVertex) * discreteWorldToScreenRatio; -float segmentLengthPseudoScreen = segmentLengthRender * discreteWorldToScreenRatio;`),Ee.uniforms.add(new re.p("stipplePatternPixelSize",Be=>(0,B.C)(Be))),Ee.code.add(j.H` - float patternLength = ${ge.stippleScaleWithLineWidth?"lineSize * ":""} stipplePatternPixelSize; - - // Compute the coordinates at both start and end of the line segment, because we need both to clamp to in the fragment shader - vStippleDistanceLimits = computeStippleDistanceLimits(startPseudoScreen, segmentLengthPseudoScreen, segmentLengthScreen, patternLength); - - vStippleDistance = mix(vStippleDistanceLimits.x, vStippleDistanceLimits.y, isEndVertex); - - // Adjust the coordinate to the displaced position (the pattern is shortened/overextended on the in/outside of joins) - if (segmentLengthScreenDouble >= 0.001) { - // Project the actual vertex position onto the line segment. Note that the resulting factor is within [0..1] at the - // original vertex positions, and slightly outside of that range at the displaced positions - vec2 stippleDisplacement = pos.xy - segmentOrigin; - float stippleDisplacementFactor = dot(segment, stippleDisplacement) / (segmentLengthScreenDouble * segmentLengthScreenDouble); - - // Apply this offset to the actual vertex coordinate (can be screen or pseudo-screen space) - vStippleDistance += (stippleDisplacementFactor - isEndVertex) * (vStippleDistanceLimits.y - vStippleDistanceLimits.x); - } - - // Cancel out perspective correct interpolation because we want this length the really represent the screen distance - vStippleDistanceLimits *= pos.w; - vStippleDistance *= pos.w; - - // Disable stipple distance limits on caps - vStippleDistanceLimits = isJoin ? - vStippleDistanceLimits : - isStartVertex ? - vec2(-1e038, vStippleDistanceLimits.y) : - vec2(vStippleDistanceLimits.x, 1e038); - `)),Ee.code.add(j.H` - // Convert back into NDC - pos.xy = (pos.xy / viewport.zw) * pos.w; - - vColor = getColor(); - vColor.a *= coverage; - - ${ge.wireframe&&!ge.draped?"pos.z -= 0.001 * pos.w;":""} - - // transform final position to camera space for slicing - vpos = (inverseProjectionMatrix * pos).xyz; - gl_Position = pos; - forwardObjectAndLayerIdColor(); - } - } - `),be&&_e.include(X.l,ge),_e.include(Z.f5,ge),De.include(oe.Y),De.code.add(j.H` - void main() { - discardBySlice(vpos); - ${be?"terrainDepthTest(gl_FragCoord, depth);":""} - `),ge.wireframe?De.code.add(j.H`vec4 finalColor = vec4(1.0, 0.0, 1.0, 1.0);`):(ye&&De.code.add(j.H` - float sdf = min(vSegmentSDF, vReverseSegmentSDF); - vec2 fragmentPosition = vec2( - min(sdf, 0.0), - vLineDistance - ) * gl_FragCoord.w; - - float fragmentRadius = length(fragmentPosition); - float fragmentCapSDF = (fragmentRadius - vLineWidth) * 0.5; // Divide by 2 to transform from double pixel scale - float capCoverage = clamp(0.5 - fragmentCapSDF, 0.0, 1.0); - - if (capCoverage < ${j.H.float(ae.b)}) { - discard; - } - `),De.code.add(Ke?j.H` - vec2 stipplePosition = vec2( - min(getStippleSDF() * 2.0 - 1.0, 0.0), - vLineDistanceNorm * gl_FragCoord.w - ); - float stippleRadius = length(stipplePosition * vLineWidth); - float stippleCapSDF = (stippleRadius - vLineWidth) * 0.5; // Divide by 2 to transform from double pixel scale - float stippleCoverage = clamp(0.5 - stippleCapSDF, 0.0, 1.0); - float stippleAlpha = step(${j.H.float(ae.b)}, stippleCoverage); - `:j.H`float stippleAlpha = getStippleAlpha();`),De.uniforms.add(new se.N("intrinsicColor",Be=>Be.color)),De.code.add(j.H`discardByStippleAlpha(stippleAlpha, stippleAlphaColorDiscard); -vec4 color = intrinsicColor * vColor;`),ge.innerColorEnabled&&(De.uniforms.add(new se.N("innerColor",Be=>(0,D.Pt)(Be.innerColor,Be.color))),De.uniforms.add(new re.p("innerWidth",(Be,Fe)=>Be.innerWidth*Fe.camera.pixelRatio)),De.code.add(j.H`float distToInner = abs(vLineDistance * gl_FragCoord.w) - innerWidth; -float innerAA = clamp(0.5 - distToInner, 0.0, 1.0); -float innerAlpha = innerColor.a + color.a * (1.0 - innerColor.a); -color = mix(color, vec4(innerColor.rgb, innerAlpha), innerAA);`)),De.code.add(j.H`vec4 finalColor = blendStipple(color, stippleAlpha);`),ge.falloffEnabled&&(De.uniforms.add(new re.p("falloff",Be=>Be.falloff)),De.code.add(j.H`finalColor.a *= pow(max(0.0, 1.0 - abs(vLineDistanceNorm * gl_FragCoord.w)), falloff);`))),De.code.add(j.H` - if (finalColor.a < ${j.H.float(ae.b)}) { - discard; - } - - ${ge.output===G.H.Alpha?j.H`gl_FragColor = vec4(finalColor.a);`:""} - ${ge.output===G.H.Color?j.H`gl_FragColor = highlightSlice(finalColor, vpos);`:""} - ${ge.output===G.H.Color&&ge.transparencyPassType===ie.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - ${ge.output===G.H.Highlight?j.H`gl_FragColor = vec4(1.0);`:""} - ${ge.output===G.H.Depth?j.H`outputDepth(linearDepth);`:""} - ${ge.output===G.H.ObjectAndLayerIdColor?j.H`outputObjectAndLayerIdColor();`:""} - } - `),_e}const me=Object.freeze(Object.defineProperty({__proto__:null,NUM_ROUND_JOIN_SUBDIVISIONS:pe,build:he},Symbol.toStringTag,{value:"Module"}))},52376:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>re,b:()=>le});var D=v(62208),R=v(67831),G=v(99770),Z=v(98071),Q=v(47923),$=v(39832),W=v(95285),B=v(65787),H=v(17625),X=v(22355),te=v(35387);function le(){const j=new X.kG,Y=j.fragment;return j.include(Z.k),Y.include(Q.S),j.include($.G),Y.uniforms.add(new B.p("radius",(ee,ie)=>de(ie))),Y.code.add(H.H`vec3 sphere[16]; -void fillSphere() { -sphere[0] = vec3(0.186937, 0.0, 0.0); -sphere[1] = vec3(0.700542, 0.0, 0.0); -sphere[2] = vec3(-0.864858, -0.481795, -0.111713); -sphere[3] = vec3(-0.624773, 0.102853, -0.730153); -sphere[4] = vec3(-0.387172, 0.260319, 0.007229); -sphere[5] = vec3(-0.222367, -0.642631, -0.707697); -sphere[6] = vec3(-0.01336, -0.014956, 0.169662); -sphere[7] = vec3(0.122575, 0.1544, -0.456944); -sphere[8] = vec3(-0.177141, 0.85997, -0.42346); -sphere[9] = vec3(-0.131631, 0.814545, 0.524355); -sphere[10] = vec3(-0.779469, 0.007991, 0.624833); -sphere[11] = vec3(0.308092, 0.209288,0.35969); -sphere[12] = vec3(0.359331, -0.184533, -0.377458); -sphere[13] = vec3(0.192633, -0.482999, -0.065284); -sphere[14] = vec3(0.233538, 0.293706, -0.055139); -sphere[15] = vec3(0.417709, -0.386701, 0.442449); -} -float fallOffFunction(float vv, float vn, float bias) { -float f = max(radius * radius - vv, 0.0); -return f * f * f * max(vn-bias, 0.0); -}`),Y.code.add(H.H`float aoValueFromPositionsAndNormal(vec3 C, vec3 n_C, vec3 Q) { -vec3 v = Q - C; -float vv = dot(v, v); -float vn = dot(normalize(v), n_C); -return fallOffFunction(vv, vn, 0.1); -}`),Y.uniforms.add([new W.A("nearFar",(ee,ie)=>ie.camera.nearFar),new te.A("normalMap",ee=>ee.normalTexture),new te.A("depthMap",ee=>ee.depthTexture),new W.A("zScale",(ee,ie)=>(0,$.R)(ie)),new B.p("projScale",ee=>ee.projScale),new te.A("rnm",ee=>ee.noiseTexture),new W.A("rnmScale",(ee,ie)=>(0,R.s)(se,ie.camera.fullWidth/(0,D.Wg)(ee.noiseTexture).descriptor.width,ie.camera.fullHeight/(0,D.Wg)(ee.noiseTexture).descriptor.height)),new B.p("intensity",(ee,ie)=>2/de(ie)**6),new W.A("screenSize",(ee,ie)=>(0,R.s)(se,ie.camera.fullWidth,ie.camera.fullHeight))]),Y.code.add(H.H` - void main(void) { - fillSphere(); - vec3 fres = normalize((texture2D(rnm, uv * rnmScale).xyz * 2.0) - vec3(1.0)); - float currentPixelDepth = linearDepthFromTexture(depthMap, uv, nearFar); - - if (-currentPixelDepth>nearFar.y || -currentPixelDepth screenSize.x || tc.y > screenSize.y) continue; - vec2 tcTap = tc / screenSize; - float occluderFragmentDepth = linearDepthFromTexture(depthMap, tcTap, nearFar); - - if (isTerrain) { - bool isTerrainTap = texture2D(normalMap, tcTap).w<0.5; - if (isTerrainTap) { - continue; - } - } - - tapPixelPos = reconstructPosition(tc, occluderFragmentDepth); - - sum+= aoValueFromPositionsAndNormal(currentPixelPos, norm, tapPixelPos); - } - - // output the result - float A = max(1.0 - sum * intensity / float(${H.H.int(16)}),0.0); - - // Anti-tone map to reduce contrast and drag dark region farther: (x^0.2 + 1.2 * x^4)/2.2 - A = (pow(A, 0.2) + 1.2 * A*A*A*A) / 2.2; - gl_FragColor = vec4(A); - } - `),j}function de(j){return Math.max(10,20*j.camera.computeRenderPixelSizeAtDist(Math.abs(4*j.camera.relativeElevation)))}const se=(0,G.a)(),re=Object.freeze(Object.defineProperty({__proto__:null,build:le},Symbol.toStringTag,{value:"Module"}))},86962:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>oe,b:()=>ae});var D=v(84161),R=v(98071),G=v(47923),Z=v(32181),Q=v(95285),$=v(65787),W=v(17625),B=v(22355),H=v(5864),X=v(35387);function ae(){const le=new B.kG,de=le.fragment;return le.include(R.k),de.include(G.S),de.uniforms.add([new X.A("depthMap",j=>j.depthTexture),new H.R("tex",j=>j.colorTexture),new Z.q("blurSize",j=>j.blurSize),new $.p("projScale",(j,Y)=>{const ee=(0,D.i)(Y.camera.eye,Y.camera.center);return ee>5e4?Math.max(0,j.projScale-(ee-5e4)):j.projScale}),new Q.A("nearFar",(j,Y)=>Y.camera.nearFar)]),de.code.add(W.H` - void blurFunction(vec2 uv, float r, float center_d, float sharpness, inout float wTotal, inout float bTotal) { - float c = texture2D(tex, uv).r; - float d = linearDepthFromTexture(depthMap, uv, nearFar); - - float ddiff = d - center_d; - - float w = exp(-r * r * ${W.H.float(.08)} - ddiff * ddiff * sharpness); - wTotal += w; - bTotal += w * c; - } - `),de.code.add(W.H` - void main(void) { - float b = 0.0; - float w_total = 0.0; - - float center_d = linearDepthFromTexture(depthMap, uv, nearFar); - - float sharpness = -0.05 * projScale / center_d; - for (int r = -${W.H.int(4)}; r <= ${W.H.int(4)}; ++r) { - float rf = float(r); - vec2 uvOffset = uv + rf * blurSize; - blurFunction(uvOffset, rf, center_d, sharpness, w_total, b); - } - - gl_FragColor = vec4(b / w_total); - } - `),le}const oe=Object.freeze(Object.defineProperty({__proto__:null,build:ae},Symbol.toStringTag,{value:"Module"}))},94195:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>oe,a:()=>j,b:()=>se,s:()=>le});var D=v(28347),R=v(43703),G=v(98071),Z=v(47923),Q=v(72968),$=v(39832),W=v(19278),B=v(95285),H=v(17625),X=v(63123),te=v(22355),ae=v(35387);class oe extends Q.ry{}const le=255,de=1/le;function se(Y){const ee=new te.kG,ie=ee.fragment;return ie.include(W.n),ie.include(Z.S),ee.include($.G),ee.include(G.k),ee.include(Q.hb,Y),ie.uniforms.add([new ae.A("depthMap",J=>J.linearDepthTexture),new X.g("inverseViewMatrix",(J,ce)=>(0,D.a)(re,(0,D.v)(re,ce.camera.viewMatrix,ce.camera.center))),new B.A("nearFar",(J,ce)=>ce.camera.nearFar)]),ie.constants.add("sampleValue","float",de),ie.code.add(H.H`void main(void) { -float depth = rgba2float(texture2D(depthMap, uv)); -if (depth == 0.0) { -discard; -} -float currentPixelDepth = linearDepthFromFloat(depth, nearFar); -if (-currentPixelDepth > nearFar.y || -currentPixelDepth < nearFar.x) { -discard; -} -vec4 currentPixelPos = vec4(reconstructPosition(gl_FragCoord.xy, currentPixelDepth), 1.0); -vec4 worldSpacePos = inverseViewMatrix * currentPixelPos; -mat4 shadowMatrix; -float linearDepth = -currentPixelDepth; -int i = chooseCascade(linearDepth, shadowMatrix); -if (i >= numCascades) { -discard; -} -vec3 lvpos = lightSpacePosition(worldSpacePos.xyz, shadowMatrix); -if (lvpos.z >= 1.0 || lvpos.x < 0.0 || lvpos.x > 1.0 || lvpos.y < 0.0 || lvpos.y > 1.0) { -discard; -} -vec2 uvShadow = cascadeCoordinates(i, lvpos); -float depthShadow = readShadowMapDepth(uvShadow, shadowMapTex); -bool shadow = depthShadow < lvpos.z; -if (!shadow) { -discard; -} -gl_FragColor = vec4(sampleValue); -}`),ee}const re=(0,R.c)(),j=Object.freeze(Object.defineProperty({__proto__:null,ShadowCastAccumulatePassParameters:oe,shadowCastMaxSamples:le,build:se},Symbol.toStringTag,{value:"Module"}))},82148:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>oe,b:()=>ae});var D=v(98071),R=v(47923),G=v(39832),Z=v(19278),Q=v(69960),$=v(65787),W=v(17625),B=v(22355),H=v(35387),X=v(94195),te=v(69828);function ae(le){const de=new B.kG,se=de.fragment;se.include(Z.n),se.include(R.S),de.include(G.G),de.include(D.k);const{visualization:re,bandsEnabled:j}=le;se.constants.add("inverseSampleValue","float",X.s),se.uniforms.add([new H.A("shadowCastMap",ie=>ie.shadowCastMap),new $.p("sampleScale",ie=>ie.sampleScale),new $.p("opacityFromElevation",ie=>ie.opacityFromElevation),new Q.N("uColor",ie=>ie.color)]);const Y=re===te.w.Gradient,ee=re===te.w.Threshold;return Y&&j?se.uniforms.add(new $.p("bandSize",ie=>ie.bandSize)):ee&&se.uniforms.add(new $.p("threshold",ie=>ie.threshold)),se.code.add(W.H` - void main(void) { - vec4 record = texture2D(shadowCastMap, uv); - float pixelSamples = record.r * inverseSampleValue; - if (pixelSamples < 1.0) { - discard; - } - - float strength = pixelSamples * sampleScale; - - ${ee?W.H` - if (strength <= threshold) { - discard; - }`:""} - - ${Y&&j?W.H`strength = ceil(strength / bandSize) * bandSize;`:""} - - gl_FragColor = vec4(uColor.xyz, uColor.a * opacityFromElevation ${Y?W.H`* strength`:""}); - } - `),de}const oe=Object.freeze(Object.defineProperty({__proto__:null,build:ae},Symbol.toStringTag,{value:"Module"}))},19263:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>ge,b:()=>ue});var D=v(62208),R=v(28347),G=v(43703),Z=v(67831),Q=v(99770),$=v(84161),W=v(28093),B=v(98071),H=v(62952),X=v(47923),te=v(72968),ae=v(39832),oe=v(19278),le=v(95285),de=v(97139),se=v(69960),re=v(65787),j=v(17625),Y=v(63123),ee=v(22355),ie=v(35387),J=v(53319);function ue(_e){const Ee=new ee.kG;Ee.include(te.XE,_e);const De=Ee.fragment;return De.include(oe.n),De.include(X.S),Ee.include(ae.G),Ee.include(B.k),De.uniforms.add([new ie.A("defaultDepthTex",(be,Se)=>Se.shadowMap.getSnapshot(J.i.Default)),new ie.A("highlightDepthTex",(be,Se)=>Se.shadowMap.getSnapshot(J.i.Highlight)),new ie.A("depthMap",(be,Se)=>Se.linearDepthTexture),new ie.A("highlightMap",(be,Se)=>Se.highlightColorTexture),new se.N("uColor",be=>be.shadowColor),new le.A("nearFar",(be,Se)=>Se.camera.nearFar),new re.p("opacity",be=>be.shadowOpacity),new re.p("occludedOpacity",be=>be.occludedShadowOpacity),new re.p("terminationFactor",be=>be.opacityElevation*be.dayNightTerminator),new de.J("lightingMainDirectionView",(be,Se)=>(0,$.n)(he,(0,$.m)(he,Se.lighting.mainLight.direction,Se.camera.viewInverseTransposeMatrix))),new le.A("texelSize",(be,Se)=>(0,D.pC)(Se.linearDepthTexture)?(0,Z.s)(me,1/Se.linearDepthTexture.descriptor.width,1/Se.linearDepthTexture.descriptor.height):Q.Z),new Y.g("inverseViewMatrix",(be,Se)=>(0,R.a)(pe,(0,R.v)(pe,Se.camera.viewMatrix,Se.camera.center)))]),De.constants.add("unoccludedHighlightFlag","vec4",H.ck).add("highlightedThreshold","float",.99999).add("selfShadowThreshold","float",.025),De.code.add(j.H`vec3 normalFromDepth(vec3 pixelPos, vec2 fragCoord, vec2 uv, vec2 texelSize, sampler2D depthMap, vec2 nearFar) { -float leftPixelDepth = linearDepthFromTexture(depthMap, uv + vec2(-1.0, 0.0) * texelSize, nearFar); -float rightPixelDepth = linearDepthFromTexture(depthMap, uv + vec2(1.0, 0.0) * texelSize, nearFar); -float bottomPixelDepth = linearDepthFromTexture(depthMap, uv + vec2(0.0, -1.0) * texelSize, nearFar); -float topPixelDepth = linearDepthFromTexture(depthMap, uv + vec2(0.0, 1.0) * texelSize, nearFar); -bool pickLeft = abs(pixelPos.z - leftPixelDepth) < abs(pixelPos.z - rightPixelDepth); -bool pickBottom = abs(pixelPos.z - bottomPixelDepth) < abs(pixelPos.z - topPixelDepth); -vec3 fragCoordHorizontal = pickLeft -? vec3(fragCoord + vec2(-1.0, 0.0), leftPixelDepth) -: vec3(fragCoord + vec2(1.0, 0.0), rightPixelDepth); -vec3 fragCoordVertical = pickBottom -? vec3(fragCoord + vec2(0.0, -1.0), bottomPixelDepth) -: vec3(fragCoord + vec2(0.0, 1.0), topPixelDepth); -vec3 verticalPixelPos = reconstructPosition(fragCoordHorizontal.xy, fragCoordHorizontal.z); -vec3 horizontalPixelPos = reconstructPosition(fragCoordVertical.xy, fragCoordVertical.z); -vec3 normal = normalize(cross(verticalPixelPos - pixelPos, horizontalPixelPos - pixelPos)); -return pickLeft == pickBottom ? normal : -normal; -}`),De.code.add(j.H`void main(void) { -vec4 highlightInfo = texture2D(highlightMap, uv); -float visiblyHighlighted = (1.0 - clamp(distance(unoccludedHighlightFlag, highlightInfo), 0.0, 1.0)) * highlightInfo.a; -if (visiblyHighlighted > highlightedThreshold) { -discard; -} -float depth = rgba2float(texture2D(depthMap, uv)); -if (depth == 0.0) { -discard; -} -float currentPixelDepth = linearDepthFromFloat(depth, nearFar); -if (-currentPixelDepth>nearFar.y || -currentPixelDepth= numCascades) { -discard; -} -vec3 lvpos = lightSpacePosition(worldSpacePos.xyz, shadowMatrix); -if (lvpos.z >= 1.0 || lvpos.x < 0.0 || lvpos.x > 1.0 || lvpos.y < 0.0 || lvpos.y > 1.0) { -discard; -} -vec2 uvShadow = cascadeCoordinates(i, lvpos); -float depthHighlight = readShadowMapDepth(uvShadow, highlightDepthTex); -bool shadowHighlight = depthHighlight < lvpos.z; -if (!shadowHighlight) { -discard; -} -float depthDefault = readShadowMapDepth(uvShadow, defaultDepthTex); -bool shadowDefault = depthDefault < lvpos.z; -vec3 normal = normalFromDepth(currentPixelPos.xyz, gl_FragCoord.xy, uv, texelSize, depthMap, nearFar); -bool shaded = dot(normal, lightingMainDirectionView) < selfShadowThreshold; -float fragOpacity = (shadowDefault || shaded) ? occludedOpacity : opacity; -gl_FragColor = vec4(uColor.rgb, uColor.a * fragOpacity * terminationFactor); -}`),Ee}const pe=(0,G.c)(),he=(0,W.c)(),me=(0,Q.a)(),ge=Object.freeze(Object.defineProperty({__proto__:null,build:ue},Symbol.toStringTag,{value:"Module"}))},4300:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>le,a:()=>re,b:()=>de,c:()=>se});var D=v(99770),R=v(28093),G=v(49115),Z=v(24255),Q=v(31166),$=v(95285),W=v(97139),B=v(65787),H=v(17625),X=v(63123),te=v(22355),ae=v(35387),oe=v(16396);class le extends H.K{constructor(){super(...arguments),this.texV=(0,D.a)(),this.altitudeFade=0,this.innerScale=0,this.undergroundFadeAlpha=0,this.silhouette=new de}}class de{constructor(){this.center=(0,R.c)(),this.v1=(0,R.c)(),this.v2=(0,R.c)()}}function se(j){const Y=new te.kG,{vertex:ee,fragment:ie}=Y;if((0,Q.Pe)(ee),j.geometry===G.n.Underground)Y.attributes.add(oe.T.POSITION,"vec2"),Y.varyings.add("color","vec4"),ee.uniforms.add([new W.J("cameraPosition",(J,ce)=>ce.camera.eye),new B.p("undergroundFadeAlpha",J=>J.undergroundFadeAlpha)]),ee.code.add(H.H`void main(void) { -float ndotl = dot(normalize(cameraPosition), mainLightDirection); -float lighting = max(0.0, smoothstep(-1.0, 0.8, 2.0 * ndotl)); -color = vec4(vec3(lighting), undergroundFadeAlpha); -gl_Position = vec4(position.xy, 1.0, 1.0); -}`),ie.code.add(H.H`void main() { -gl_FragColor = color; -}`);else{Y.include(Z.w,j),Y.attributes.add(oe.T.POSITION,"vec3"),Y.varyings.add("vtc","vec2"),Y.varyings.add("falloff","float");const J=j.geometry===G.n.Cylinder;ee.uniforms.add([new X.g("proj",(pe,he)=>he.camera.projectionMatrix),new X.g("view",(pe,he)=>he.camera.viewMatrix)]),J||(Y.varyings.add("innerFactor","float"),ee.uniforms.add(new W.J("silCircleCenter",pe=>pe.silhouette.center)),ee.uniforms.add(new W.J("silCircleV1",pe=>pe.silhouette.v1)),ee.uniforms.add(new W.J("silCircleV2",pe=>pe.silhouette.v2)),ee.uniforms.add(new $.A("texV",pe=>pe.texV)),ee.uniforms.add(new B.p("innerScale",pe=>pe.innerScale)));const ce=6.2831853,ue=1/128;ee.code.add(H.H` - void main(void) { - ${J?H.H` - vec3 pos = position; - float ndotl = mainLightDirection.z; - vtc = vec2(0.0, position.z + 0.05);`:H.H` - innerFactor = clamp(-position.z, 0.0, 1.0); - float scale = position.y * (1.0 + innerFactor * innerScale); - float phi = position.x * ${H.H.float(ce*ue)} + 1.0; - vec3 pos = (silCircleCenter + sin(phi) * silCircleV1 + cos(phi) * silCircleV2) * scale; - float ndotl = dot(normalize(position.y > 0.0 ? pos: silCircleCenter), mainLightDirection); - vtc.x = position.x * ${H.H.float(ue)}; - vtc.y = texV.x * (1.0 - position.z) + texV.y * position.z; - `} - falloff = max(0.0, smoothstep(-1.0, 0.8, 2.0 * ndotl)); - - gl_Position = transformPosition(proj, view, pos); - gl_Position.z = gl_Position.w; // project atmosphere onto the far plane - } - `),ie.uniforms.add(new ae.A("tex",pe=>pe.texture)),J||ie.uniforms.add(new B.p("altitudeFade",pe=>pe.altitudeFade)),ie.code.add(H.H` - void main() { - vec4 atmosphereColor = texture2D(tex, vtc) * falloff; - ${J?H.H`gl_FragColor = atmosphereColor;`:H.H` - vec4 innerColor = vec4(atmosphereColor.rgb, 1.0 - altitudeFade); - gl_FragColor = mix(atmosphereColor, innerColor, smoothstep(0.0, 1.0, innerFactor)); - `} - }`)}return Y}const re=Object.freeze(Object.defineProperty({__proto__:null,SimpleAtmospherePassParameters:le,SilhouetteCircle:de,build:se},Symbol.toStringTag,{value:"Module"}))},45695:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>oe,b:()=>X});var D=v(28347),R=v(43703),G=v(35283),Z=v(69960),Q=v(65787),$=v(17625),W=v(63123),B=v(22355),H=v(16396);function X(){const le=new B.kG;return le.attributes.add(H.T.POSITION,"vec3"),le.attributes.add(H.T.COLOR,"vec4"),le.attributes.add(H.T.SIZE,"float"),le.varyings.add("vcolor","vec4"),le.varyings.add("vsize","float"),le.vertex.uniforms.add([new W.g("transform",(de,se)=>function te(le,de){return(0,D.c)(ae,de.camera.projectionMatrix),ae[10]=24e-8-1,ae[11]=-1,ae[14]=(24e-8-2)*de.camera.near,(0,D.m)(ae,ae,de.camera.viewMatrix),(0,D.m)(ae,ae,le.modelMatrix)}(de,se)),new Z.N("viewport",(de,se)=>se.camera.fullViewport),new Q.p("pixelRatio",(de,se)=>se.camera.pixelRatio)]),le.include(G.H),le.vertex.code.add($.H`void main(void) { -vec4 posProj = transform * vec4(position, 0); -gl_Position = alignToPixelCenter(posProj, viewport.zw); -vcolor = color / 1.2; -vsize = size * 5.0 * pixelRatio; -gl_PointSize = vsize; -}`),le.fragment.code.add($.H`void main() { -float cap = 0.7; -float scale = 1.0 / cap; -float helper = clamp(length(abs(gl_PointCoord - vec2(0.5))), 0.0, cap); -float alpha = clamp((cap - helper) * scale, 0.0, 1.0); -float intensity = alpha * alpha * alpha; -if (vsize < 3.0) { -intensity *= 0.5; -} -gl_FragColor = vec4(vcolor.xyz, intensity); -}`),le}const ae=(0,R.c)(),oe=Object.freeze(Object.defineProperty({__proto__:null,build:X},Symbol.toStringTag,{value:"Module"}))},73693:(nt,Ae,v)=>{"use strict";v.d(Ae,{T:()=>De,a:()=>ve,b:()=>be});var D=v(28347),R=v(43703),G=v(84161),Z=v(28093),Q=v(75224),$=v(52382),W=v(13934),B=v(78925),H=v(24255),X=v(26859),te=v(84833),ae=v(36603),oe=v(43880),le=v(54120),de=v(62952),se=v(54662),re=v(13146),j=v(31166),Y=v(7025),ee=v(92724),ie=v(72968),J=v(30249),ce=v(91528),ue=v(2166),pe=v(43177),he=v(97139),me=v(17625),ge=v(47205),_e=v(22355),Ee=v(35387);class De extends ce.uS{}function be(xe){const ze=new _e.kG,{vertex:Ke,fragment:We,varyings:Ce}=ze;ze.include(te.f),ze.include(X.O,xe),ze.include(ae.D,xe);const Be=()=>{ze.include(Y.n,xe),Ke.code.add(me.H` - vec3 decodeNormalTerrain(vec2 e) { - float z = 1.0 - abs(e.x) - abs(e.y); - vec3 n = vec3(e + vec2(e.x >= 0.0 ? 1.0 : -1.0, e.y >= 0.0 ? 1.0 : -1.0) * min(z,0.0),z); - return normalize(n); - } - - vec3 getNormal() { - return ${xe.shading?me.H`normalize(decodeNormalTerrain(normalCompressed))`:me.H`getLocalUp(position, localOrigin)`}; - } - `)};(0,ue.Sv)(Ke,xe),ze.include(H.w,xe);const Fe=xe.overlayMode!==J.gT.Disabled;switch(xe.output){case W.H.Color:{ze.include(ce.EK,xe),ze.include(re.XP,xe);const je=xe.overlayMode===J.gT.EnabledWithWater;Fe&&ze.include(ce.yl,{...xe,pbrMode:ee.f7.Water}),je&&ze.include(oe.M,xe),Ce.add("vnormal","vec3"),Ce.add("vpos","vec3"),Be(),(xe.atmosphere||xe.screenSizePerspective)&&(0,ue._8)(Ke);const Re=xe.receiveShadows&&!xe.renderOccluded;Re&&ze.include($.qj,xe),xe.atmosphere&&Ce.add("wnormal","vec3"),xe.screenSizePerspective&&(Ce.add("screenSizeDistanceToCamera","float"),Ce.add("screenSizeCosAngle","float")),Ke.code.add(me.H` - void main(void) { - //Position - vpos = position; - vec3 positionWorld = position + localOrigin; - gl_Position = transformPosition(proj, view, vpos); - - //Normal - vnormal = getNormal(); - - ${je?me.H`forwardVertexTangent(vnormal);`:me.H``} - - ${xe.atmosphere?me.H` - wnormal = normalize((viewNormal * vec4(normalize(positionWorld), 1.0)).xyz);`:""} - - //Texture UV - vec2 uv = getUV0(); - forwardTextureCoordinatesWithTransform(uv); - ${Fe?me.H`setOverlayVTC(uv);`:""} - ${xe.tileBorders?me.H`forwardTextureCoordinates();`:""} - - ${xe.screenSizePerspective?me.H` - vec3 viewPos = (view * vec4(vpos, 1.0)).xyz; - screenSizeDistanceToCamera = length(viewPos); - vec3 viewSpaceNormal = (viewNormal * vec4(normalize(positionWorld), 1.0)).xyz; - screenSizeCosAngle = abs(viewSpaceNormal.z);`:""} - - ${Re?me.H`forwardLinearDepth();`:""} - - } - `),ze.extensions.add("GL_OES_standard_derivatives"),ze.extensions.add("GL_EXT_shader_texture_lod"),ze.include(B.f5,xe),ze.include(re.XP,xe),ze.include(se.K,xe),ze.include(ie.XE,xe),je&&(0,ue.hY)(We,xe),(0,re.PN)(We),(0,re.sC)(We),We.uniforms.add([Ke.uniforms.get("localOrigin"),new he.J("viewDirection",(He,Ie)=>(0,G.n)(ye,(0,G.s)(ye,Ie.camera.viewMatrix[12],Ie.camera.viewMatrix[13],Ie.camera.viewMatrix[14])))]),je&&We.uniforms.add([new Ee.A("ovWaterTex",(He,Ie)=>0===Ie.overlays.length?null:Ie.overlays[Q.fu.INNER].getNormalTexture(He.overlaySource)),new ge.K("view",(He,Ie)=>(0,D.v)(Se,Ie.camera.viewMatrix,He.origin))]),We.code.add(me.H`const float sliceOpacity = 0.2; -float lum(vec3 c) { -return (min(min(c.r, c.g), c.b) + max(max(c.r, c.g), c.b)) * 0.5; -}`),(0,j.Pe)(We),(0,j.F1)(We),We.code.add(me.H` - void main() { - vec3 normal = normalize(vnormal); - float vndl = dot(normal, mainLightDirection); - - float additionalAmbientScale = smoothstep(0.0, 1.0, clamp(vndl*2.5, 0.0, 1.0)); - float shadow = ${xe.receiveShadows&&!xe.renderOccluded?"readShadowMap(vpos, linearDepth)":xe.spherical&&xe.shading?"lightingGlobalFactor * (1.0 - additionalAmbientScale)":"0.0"}; - - float ssao = evaluateAmbientOcclusionInverse(); - vec4 tileColor = getTileColor(); - - ${Fe?me.H` - vec4 overlayColorOpaque = getOverlayColor(ovColorTex, vtcOverlay); - vec4 overlayColor = overlayOpacity * overlayColorOpaque; - ${xe.transparent?me.H`if (overlayColor.a == 0.0) { discard; }`:""} - vec4 groundColor = tileColor; - tileColor = tileColor * (1.0 - overlayColor.a) + overlayColor;`:""} - if (rejectBySlice(vpos)) { - tileColor *= sliceOpacity; - } - ${xe.atmosphere?me.H` - float ndotl = clamp(vndl, 0.0, 1.0); - vec3 atm = vec3(clamp(1.0 - dot(-viewDirection, wnormal), 0.0, 1.0)); - atm *= clamp(1.0 - lum(tileColor.rgb) * 1.5, 0.0, 1.0); // avoid atmosphere on bright base maps - atm *= clamp(ndotl * 2.0, 0.0, 1.0); // avoid atmosphere on dark side of the globe - atm *= tileColor.a; // premultiply with tile alpha`:""} - - vec3 albedo = ${xe.atmosphere?me.H`atm + tileColor.rgb;`:me.H`tileColor.rgb;`} - - // heuristic shading function used in the old terrain, now used to add ambient lighting - - vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor; - - gl_FragColor = vec4(evaluateSceneLighting(normal, albedo, shadow, 1.0 - ssao, additionalLight), tileColor.a); - ${je?me.H` - vec4 overlayWaterMask = getOverlayColor(ovWaterTex, vtcOverlay); - float waterNormalLength = length(overlayWaterMask); - if (waterNormalLength > 0.95) { - mat3 tbnMatrix = mat3(tbnTangent, tbnBiTangent, vnormal); - vec4 waterOverlayColor = vec4(overlayColor.w > 0.0 ? overlayColorOpaque.xyz/overlayColor.w : vec3(1.0), overlayColor.w); - vec4 viewPosition = view*vec4(vpos, 1.0); - vec4 waterColorLinear = getOverlayWaterColor(overlayWaterMask, waterOverlayColor, -normalize(vpos - cameraPosition), shadow, vnormal, tbnMatrix, viewPosition.xyz, vpos + localOrigin); - vec4 waterColorNonLinear = delinearizeGamma(vec4(waterColorLinear.xyz, 1.0)); - // un-gamma the ground color to mix in linear space - gl_FragColor = mix(groundColor, waterColorNonLinear, waterColorLinear.w); - }`:""} - ${xe.screenSizePerspective?me.H` - float perspectiveScale = screenSizePerspectiveScaleFloat(1.0, screenSizeCosAngle, screenSizeDistanceToCamera, vec4(0.0, 0.0, 0.0, 0.0)); - if (perspectiveScale <= 0.25) { - gl_FragColor = mix(gl_FragColor, vec4(1.0, 0.0, 0.0, 1.0), perspectiveScale * 4.0); - } - else if (perspectiveScale <= 0.5) { - gl_FragColor = mix(gl_FragColor, vec4(0.0, 0.0, 1.0, 1.0), (perspectiveScale - 0.25) * 4.0); - } - else if (perspectiveScale >= 0.99) { - gl_FragColor = mix(gl_FragColor, vec4(0.0, 1.0, 0.0, 1.0), 0.2); - } - else { - gl_FragColor = mix(gl_FragColor, vec4(1.0, 0.0, 1.0, 1.0), (perspectiveScale - 0.5) * 2.0); - }`:""} - ${xe.visualizeNormals?xe.spherical?me.H` - vec3 localUp = normalize(vpos + localOrigin); - vec3 right = normalize(cross(vec3(0.0,0.0,1.0),localUp)); - vec3 forward = normalize(cross(localUp,right)); - mat3 tbn = mat3(right, forward, localUp); - vec3 tNormal = normalize(normal* tbn); - gl_FragColor = vec4(vec3(0.5) + 0.5 * tNormal, 0.0); - `:me.H` - vec3 tNormal = normalize(normal); - gl_FragColor = vec4(vec3(0.5) + 0.5 * tNormal, 0.0); - `:""} - ${xe.tileBorders?me.H` - vec2 dVuv = fwidth(vuv0); - vec2 edgeFactors = smoothstep(vec2(0.0), 1.5 * dVuv, min(vuv0, 1.0 - vuv0)); - float edgeFactor = 1.0 - min(edgeFactors.x, edgeFactors.y); - gl_FragColor = mix(gl_FragColor, vec4(1.0, 0.0, 0.0, 1.0), edgeFactor);`:""} - gl_FragColor = highlightSlice(gl_FragColor, vpos); - } - `)}break;case W.H.Depth:ze.include(ce.yl,xe),ze.include(le.F,xe),(0,$.Lm)(ze),(0,$.Zu)(ze),Ke.code.add(me.H` - void main(void) { - ${Fe?me.H`setOverlayVTC(getUV0());`:""} - gl_Position = transformPositionWithDepth(proj, view, position, nearFar, linearDepth); - } - `),We.code.add(me.H` - void main() { - ${Fe?me.H` - vec4 overlayColor = getCombinedOverlayColor(); - ${xe.transparent?me.H`if (overlayColor.a == 0.0) { discard; }`:""}`:""} - outputDepth(linearDepth); - } - `);break;case W.H.Shadow:case W.H.ShadowHighlight:case W.H.ShadowExludeHighlight:ze.include(le.F,xe),(0,$.Lm)(ze),(0,$.Zu)(ze),Ke.code.add(me.H`void main(void) { -gl_Position = transformPositionWithDepth(proj, view, position, nearFar, linearDepth); -}`),We.code.add(me.H`void main() { -outputDepth(linearDepth); -}`);break;case W.H.Normal:Ce.add("vnormal","vec3"),(0,ue._8)(Ke),Be(),Ke.code.add(me.H`void main(void) { -vec3 normal = getNormal(); -gl_Position = transformPosition(proj, view, position); -vnormal = normalize((viewNormal * vec4(normal, 1.0)).xyz); -}`),We.code.add(me.H`void main() { -vec3 normal = normalize(vnormal); -if (gl_FrontFacing == false) { -normal = -normal; -} -gl_FragColor = vec4(vec3(0.5) + 0.5 * normal, 0.0); -}`);break;case W.H.Highlight:ze.include(ce.yl,xe),Ke.code.add(me.H`void main() { -setOverlayVTC(getUV0()); -gl_Position = transformPosition(proj, view, position); -}`),ze.include(de.bA,xe),We.code.add(me.H`void main() { -vec4 overlayColor = getCombinedOverlayColor(); -if (overlayColor.a == 0.0) { -discard; -} -outputHighlight(); -}`)}return xe.output===W.H.ObjectAndLayerIdColor&&(ze.include(ce.yl,{...xe,pbrMode:ee.f7.Disabled}),Ke.code.add(me.H`void main(void) { -gl_Position = transformPosition(proj, view, position); -setOverlayVTC(getUV0()); -}`),We.code.add(me.H` - void main() { - vec2 texDim = ${(0,pe.w_)(xe,"ovColorTex")}; - gl_FragColor = ${(0,pe.b6)(xe,"ovColorTex","vec2(vtcOverlay.x * 0.5, vtcOverlay.y)*texDim")}; - } - `)),ze}const Se=(0,R.c)(),ye=(0,Z.c)(),ve=Object.freeze(Object.defineProperty({__proto__:null,TerrainPassParameters:De,build:be},Symbol.toStringTag,{value:"Module"}))},98361:(nt,Ae,v)=>{"use strict";v.d(Ae,{T:()=>W,a:()=>H,b:()=>B});var D=v(4794),R=v(98071),G=v(69960),Z=v(17625),Q=v(22355),$=v(35387);class W extends Z.K{constructor(){super(...arguments),this.color=(0,D.f)(1,1,1,1)}}function B(){const X=new Q.kG;return X.include(R.k),X.fragment.uniforms.add([new $.A("tex",te=>te.texture),new G.N("uColor",te=>te.color)]),X.fragment.code.add(Z.H`void main() { -vec4 texColor = texture2D(tex, uv); -gl_FragColor = texColor * uColor; -}`),X}const H=Object.freeze(Object.defineProperty({__proto__:null,TextureOnlyPassParameters:W,build:B},Symbol.toStringTag,{value:"Module"}))},61584:(nt,Ae,v)=>{"use strict";v.d(Ae,{W:()=>ue,b:()=>ce});var D=v(52382),R=v(13934),G=v(78925),Z=v(24255),Q=v(62952),$=v(44965),W=v(31166),B=v(10109),H=v(7025),X=v(92724),te=v(72968),ae=v(69117),oe=v(45780),le=v(67022),de=v(33726),se=v(2166),re=v(69960),j=v(65787),Y=v(17625),ee=v(22355),ie=v(44835),J=v(16396);function ce(pe){const he=new ee.kG,{vertex:me,fragment:ge}=he;(0,se.Sv)(me,pe),he.include(Z.w,pe),he.attributes.add(J.T.POSITION,"vec3"),he.attributes.add(J.T.UV0,"vec2");const _e=new re.N("waterColor",Ee=>Ee.color);if(pe.output===R.H.Color&&pe.isDraped)return he.varyings.add("vpos","vec3"),me.uniforms.add(_e),me.code.add(Y.H` - void main(void) { - if (waterColor.a < ${Y.H.float(le.b)}) { - // Discard this vertex - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - } - - vpos = position; - gl_Position = transformPosition(proj, view, vpos); - } - `),ge.uniforms.add(_e),ge.code.add(Y.H`void main() { -gl_FragColor = waterColor; -}`),he;switch(pe.output!==R.H.Color&&pe.output!==R.H.Alpha||(he.include(H.n,pe),he.include(D.qj,pe),he.varyings.add("vuv","vec2"),he.varyings.add("vpos","vec3"),he.varyings.add("vnormal","vec3"),he.varyings.add("vtbnMatrix","mat3"),pe.hasMultipassTerrain&&he.varyings.add("depth","float"),me.uniforms.add(_e),me.code.add(Y.H` - void main(void) { - if (waterColor.a < ${Y.H.float(le.b)}) { - // Discard this vertex - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - } - - vuv = uv0; - vpos = position; - - vnormal = getLocalUp(vpos, localOrigin); - vtbnMatrix = getTBNMatrix(vnormal); - - ${pe.hasMultipassTerrain?"depth = (view * vec4(vpos, 1.0)).z;":""} - - gl_Position = transformPosition(proj, view, vpos); - ${pe.output===R.H.Color?"forwardLinearDepth();":""} - } - `)),he.include(B.l,pe),pe.output){case R.H.Alpha:he.include(G.f5,pe),ge.uniforms.add(_e),ge.code.add(Y.H` - void main() { - discardBySlice(vpos); - ${pe.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - - gl_FragColor = vec4(waterColor.a); - } - `);break;case R.H.Color:he.include(W.kR,pe),he.include($._,{pbrMode:X.f7.Disabled,lightingSphericalHarmonicsOrder:2}),he.include(oe.M),he.include(G.f5,pe),he.include(te.XE,pe),he.include(ae.B,pe),ge.uniforms.add([_e,new j.p("timeElapsed",Ee=>Ee.timeElapsed),me.uniforms.get("view"),me.uniforms.get("localOrigin")]),(0,se.hY)(ge,pe),ge.include(de.Y),(0,W.Pe)(ge),(0,W.F1)(ge),ge.code.add(Y.H` - void main() { - discardBySlice(vpos); - ${pe.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - vec3 localUp = vnormal; - // the created normal is in tangent space - vec4 tangentNormalFoam = getSurfaceNormalAndFoam(vuv, timeElapsed); - - // we rotate the normal according to the tangent-bitangent-normal-Matrix - vec3 n = normalize(vtbnMatrix * tangentNormalFoam.xyz); - vec3 v = -normalize(vpos - cameraPosition); - float shadow = ${pe.receiveShadows?Y.H`1.0 - readShadowMap(vpos, linearDepth)`:"1.0"}; - vec4 vPosView = view * vec4(vpos, 1.0); - vec4 final = vec4(getSeaColor(n, v, mainLightDirection, waterColor.rgb, mainLightIntensity, localUp, shadow, tangentNormalFoam.w, vPosView.xyz, vpos + localOrigin), waterColor.w); - - // gamma correction - gl_FragColor = delinearizeGamma(final); - gl_FragColor = highlightSlice(gl_FragColor, vpos); - ${pe.transparencyPassType===ie.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - } - `);break;case R.H.Normal:he.include(H.n,pe),he.include(oe.M,pe),he.include(G.f5,pe),he.varyings.add("vpos","vec3"),he.varyings.add("vuv","vec2"),me.uniforms.add(_e),me.code.add(Y.H` - void main(void) { - if (waterColor.a < ${Y.H.float(le.b)}) { - // Discard this vertex - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - } - - vuv = uv0; - vpos = position; - - gl_Position = transformPosition(proj, view, vpos); - } - `),ge.uniforms.add(new j.p("timeElapsed",Ee=>Ee.timeElapsed)),ge.code.add(Y.H`void main() { -discardBySlice(vpos); -vec4 tangentNormalFoam = getSurfaceNormalAndFoam(vuv, timeElapsed); -tangentNormalFoam.xyz = normalize(tangentNormalFoam.xyz); -gl_FragColor = vec4((tangentNormalFoam.xyz + vec3(1.0)) * 0.5, tangentNormalFoam.w); -}`);break;case R.H.Highlight:he.include(Q.bA,pe),he.varyings.add("vpos","vec3"),me.uniforms.add(_e),me.code.add(Y.H` - void main(void) { - if (waterColor.a < ${Y.H.float(le.b)}) { - // Discard this vertex - gl_Position = vec4(1e38, 1e38, 1e38, 1.0); - return; - } - - vpos = position; - gl_Position = transformPosition(proj, view, vpos); - } - `),he.include(G.f5,pe),ge.code.add(Y.H`void main() { -discardBySlice(vpos); -outputHighlight(); -}`)}return he}const ue=Object.freeze(Object.defineProperty({__proto__:null,build:ce},Symbol.toStringTag,{value:"Module"}))},1719:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>G,c:()=>D,g:()=>R});var D=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}function G(Z){throw new Error('Could not dynamically require "'+Z+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},41743:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>se,a:()=>re,b:()=>et,c:()=>Y,d:()=>We,e:()=>ve,f:()=>ie,g:()=>pe,h:()=>Se,i:()=>he,n:()=>Fe,r:()=>Be,t:()=>Ce,u:()=>J}),v(8314);var R=v(63290),G=v(21286),Z=v(97535),Q=v(28347),$=v(43703),W=v(84161),B=v(28093),H=v(78172),X=v(13777),te=v(90014),ae=v(70562),oe=v(34054),le=v(26242);const de=R.Z.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");class se{constructor(){this.plane=(0,te.Ue)(),this.origin=(0,B.c)(),this.basis1=(0,B.c)(),this.basis2=(0,B.c)()}}function re(qe=Le){return{plane:(0,te.Ue)(qe.plane),origin:(0,B.a)(qe.origin),basis1:(0,B.a)(qe.basis1),basis2:(0,B.a)(qe.basis2)}}function Y(qe,ot=re()){return ie(qe.origin,qe.basis1,qe.basis2,ot)}function ie(qe,ot,ut,_t=re()){return(0,W.c)(_t.origin,qe),(0,W.c)(_t.basis1,ot),(0,W.c)(_t.basis2,ut),J(_t),function Ge(qe,ot){Math.abs((0,W.e)(qe.basis1,qe.basis2)/((0,W.l)(qe.basis1)*(0,W.l)(qe.basis2)))>1e-6&&de.warn(ot,"Provided basis vectors are not perpendicular"),Math.abs((0,W.e)(qe.basis1,Fe(qe)))>1e-6&&de.warn(ot,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,W.e)(Fe(qe),qe.origin)-qe.plane[3])>1e-6&&de.warn(ot,"Plane offset is not consistent with plane origin")}(_t,"fromValues()"),_t}function J(qe){(0,te.my)(qe.basis2,qe.basis1,qe.origin,qe.plane)}function ce(qe,ot,ut){qe!==ut&&Y(qe,ut);const _t=(0,W.g)(le.WM.get(),Fe(qe),ot);return(0,W.a)(ut.origin,ut.origin,_t),ut.plane[3]-=ot,ut}function pe(qe,ot=re()){const ut=(qe[2]-qe[0])/2,_t=(qe[3]-qe[1])/2;return(0,W.s)(ot.origin,qe[0]+ut,qe[1]+_t,0),(0,W.s)(ot.basis1,ut,0,0),(0,W.s)(ot.basis2,0,_t,0),(0,te.al)(0,0,1,0,ot.plane),ot}function he(qe,ot,ut){return!!(0,te.BR)(qe.plane,ot,ut)&&Re(qe,ut)}function ge(qe,ot,ut){const _t=Me.get();Pe(qe,ot,_t,Me.get());let Ct=Number.POSITIVE_INFINITY;for(const vt of Je){const Lt=Ie(qe,vt,Ne.get()),jt=le.WM.get();if((0,te.rx)(_t,Lt,jt)){const $t=(0,W.r)(le.WM.get(),ot.origin,jt),Wt=Math.abs((0,G.ZF)((0,W.e)(ot.direction,$t)));Wtre()),Je=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],rt=(0,$.c)(),tt=(0,$.c)(),et=Object.freeze(Object.defineProperty({__proto__:null,BoundedPlaneClass:se,create:re,wrap:function j(qe,ot,ut){const _t=Ye.get();return _t.origin=qe,_t.basis1=ot,_t.basis2=ut,_t.plane=(0,te.re)(0,0,0,0),J(_t),_t},copy:Y,copyWithoutVerify:function ee(qe,ot){(0,W.c)(ot.origin,qe.origin),(0,W.c)(ot.basis1,qe.basis1),(0,W.c)(ot.basis2,qe.basis2),(0,te.JG)(ot.plane,qe.plane)},fromValues:ie,updateUnboundedPlane:J,elevate:ce,setExtent:function ue(qe,ot,ut){return pe(ot,ut),ce(ut,ze(qe,qe.origin),ut),ut},fromAABoundingRect:pe,intersectRay:he,intersectRayClosestSilhouette:function me(qe,ot,ut){if(he(qe,ot,ut))return ut;const _t=ge(qe,ot,le.WM.get());return(0,W.a)(ut,ot.origin,(0,W.g)(le.WM.get(),ot.direction,(0,W.i)(ot.origin,_t)/(0,W.l)(ot.direction))),ut},closestPointOnSilhouette:ge,closestPoint:_e,projectPoint:Ee,projectPointLocal:De,distance2:be,distance:Se,distanceToSilhouette:function ye(qe,ot){let ut=Number.NEGATIVE_INFINITY;for(const _t of Je){const Ct=Ie(qe,_t,Ne.get()),vt=(0,X.Jk)(Ct,ot);vt>ut&&(ut=vt)}return Math.sqrt(ut)},extrusionContainsPoint:ve,axisAt:function xe(qe,ot,ut,_t){return function je(qe,ot,ut){switch(ot){case H.R.X:(0,W.c)(ut,qe.basis1),(0,W.n)(ut,ut);break;case H.R.Y:(0,W.c)(ut,qe.basis2),(0,W.n)(ut,ut);break;case H.R.Z:(0,W.c)(ut,Fe(qe))}return ut}(qe,ut,_t)},altitudeAt:ze,setAltitudeAt:function Ke(qe,ot,ut,_t){const Ct=ze(qe,ot),vt=(0,W.g)(Xe,Fe(qe),ut-Ct);return(0,W.a)(_t,ot,vt),_t},equals:We,transform:Ce,rotate:Be,normal:Fe,UP:Le},Symbol.toStringTag,{value:"Module"}))},39863:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>Z,a:()=>B,g:()=>R,t:()=>W});let D=1e-6;function R(){return D}const Z=Math.random,Q=Math.PI/180,$=180/Math.PI;function W(te){return te*Q}function B(te){return te*$}Object.freeze(Object.defineProperty({__proto__:null,getEpsilon:R,setEpsilon:function G(te){D=te},RANDOM:Z,toRadian:W,toDegree:B,equals:function H(te,ae){return Math.abs(te-ae)<=D*Math.max(1,Math.abs(te),Math.abs(ae))}},Symbol.toStringTag,{value:"Module"}))},11915:(nt,Ae,v)=>{"use strict";v.d(Ae,{e:()=>Q});var D,G,Z={exports:{}};D=Z,void 0!==(G=function(){function $(We,Ce,Be){Be=Be||2;var Fe,je,Re,He,Ie,Ge,Pe,Le=Ce&&Ce.length,Me=Le?Ce[0]*Be:We.length,Ne=W(We,0,Me,Be,!0),Xe=[];if(!Ne||Ne.next===Ne.prev)return Xe;if(Le&&(Ne=function le(We,Ce,Be,Fe){var je,Re,He,Ie=[];for(je=0,Re=Ce.length;je80*Be){Fe=Re=We[0],je=He=We[1];for(var Ye=Be;YeRe&&(Re=Ie),Ge>He&&(He=Ge);Pe=0!==(Pe=Math.max(Re-Fe,He-je))?1/Pe:0}return H(Ne,Xe,Be,Fe,je,Pe),Xe}function W(We,Ce,Be,Fe,je){var Re,He;if(je===Ke(We,Ce,Be,Fe)>0)for(Re=Ce;Re=Ce;Re-=Fe)He=ve(Re,We[Re],We[Re+1],He);if(He&&me(He,He.next)){var Ie=He.next;xe(He),He=Ie}return He}function B(We,Ce){if(!We)return We;Ce||(Ce=We);var Be,Fe=We;do{if(Be=!1,Fe.steiner||!me(Fe,Fe.next)&&0!==he(Fe.prev,Fe,Fe.next))Fe=Fe.next;else{var je=Fe.prev;if(xe(Fe),(Fe=Ce=je)===Fe.next)break;Be=!0}}while(Be||Fe!==Ce);return Ce}function H(We,Ce,Be,Fe,je,Re,He){if(We){!He&&Re&&function ee(We,Ce,Be,Fe){var je=We;do{null===je.z&&(je.z=J(je.x,je.y,Ce,Be,Fe)),je.prevZ=je.prev,je.nextZ=je.next,je=je.next}while(je!==We);je.prevZ.nextZ=null,je.prevZ=null,function ie(We){var Ce,Be,Fe,je,Re,He,Ie,Ge,Pe=1;do{for(Be=We,We=null,Re=null,He=0;Be;){for(He++,Fe=Be,Ie=0,Ce=0;Ce0||Ge>0&&Fe;)0!==Ie&&(0===Ge||!Fe||Be.z<=Fe.z)?(je=Be,Be=Be.nextZ,Ie--):(je=Fe,Fe=Fe.nextZ,Ge--),Re?Re.nextZ=je:We=je,je.prevZ=Re,Re=je;Be=Fe}Re.nextZ=null,Pe*=2}while(He>1)}(je)}(We,Fe,je,Re);for(var Ie,Ge,Pe=We;We.prev!==We.next;)if(Ie=We.prev,Ge=We.next,Re?te(We,Fe,je,Re):X(We))Ce.push(Ie.i/Be),Ce.push(We.i/Be),Ce.push(Ge.i/Be),xe(We),We=Ge.next,Pe=Ge.next;else if((We=Ge)===Pe){He?1===He?H(We=ae(B(We),Ce,Be),Ce,Be,Fe,je,Re,2):2===He&&oe(We,Ce,Be,Fe,je,Re):H(B(We),Ce,Be,Fe,je,Re,1);break}}}function X(We){var Ce=We.prev,Be=We,Fe=We.next;if(he(Ce,Be,Fe)>=0)return!1;for(var je=We.next.next;je!==We.prev;){if(ue(Ce.x,Ce.y,Be.x,Be.y,Fe.x,Fe.y,je.x,je.y)&&he(je.prev,je,je.next)>=0)return!1;je=je.next}return!0}function te(We,Ce,Be,Fe){var je=We.prev,Re=We,He=We.next;if(he(je,Re,He)>=0)return!1;for(var Pe=je.x>Re.x?je.x>He.x?je.x:He.x:Re.x>He.x?Re.x:He.x,Le=je.y>Re.y?je.y>He.y?je.y:He.y:Re.y>He.y?Re.y:He.y,Me=J(je.x=Me&&Ye&&Ye.z<=Ne;){if(Xe!==We.prev&&Xe!==We.next&&ue(je.x,je.y,Re.x,Re.y,He.x,He.y,Xe.x,Xe.y)&&he(Xe.prev,Xe,Xe.next)>=0||(Xe=Xe.prevZ,Ye!==We.prev&&Ye!==We.next&&ue(je.x,je.y,Re.x,Re.y,He.x,He.y,Ye.x,Ye.y)&&he(Ye.prev,Ye,Ye.next)>=0))return!1;Ye=Ye.nextZ}for(;Xe&&Xe.z>=Me;){if(Xe!==We.prev&&Xe!==We.next&&ue(je.x,je.y,Re.x,Re.y,He.x,He.y,Xe.x,Xe.y)&&he(Xe.prev,Xe,Xe.next)>=0)return!1;Xe=Xe.prevZ}for(;Ye&&Ye.z<=Ne;){if(Ye!==We.prev&&Ye!==We.next&&ue(je.x,je.y,Re.x,Re.y,He.x,He.y,Ye.x,Ye.y)&&he(Ye.prev,Ye,Ye.next)>=0)return!1;Ye=Ye.nextZ}return!0}function ae(We,Ce,Be){var Fe=We;do{var je=Fe.prev,Re=Fe.next.next;!me(je,Re)&&ge(je,Fe,Fe.next,Re)&&be(je,Re)&&be(Re,je)&&(Ce.push(je.i/Be),Ce.push(Fe.i/Be),Ce.push(Re.i/Be),xe(Fe),xe(Fe.next),Fe=We=Re),Fe=Fe.next}while(Fe!==We);return B(Fe)}function oe(We,Ce,Be,Fe,je,Re){var He=We;do{for(var Ie=He.next.next;Ie!==He.prev;){if(He.i!==Ie.i&&pe(He,Ie)){var Ge=ye(He,Ie);return He=B(He,He.next),Ge=B(Ge,Ge.next),H(He,Ce,Be,Fe,je,Re),void H(Ge,Ce,Be,Fe,je,Re)}Ie=Ie.next}He=He.next}while(He!==We)}function de(We,Ce){return We.x-Ce.x}function se(We){if(We.next.prev===We)return We;let Ce=We;for(;;){const Be=Ce.next;if(Be.prev===Ce||Be===Ce||Be===We)break;Ce=Be}return Ce}function re(We,Ce){var Be=function j(We,Ce){var Be,Fe=Ce,je=We.x,Re=We.y,He=-1/0;do{if(Re<=Fe.y&&Re>=Fe.next.y&&Fe.next.y!==Fe.y){var Ie=Fe.x+(Re-Fe.y)*(Fe.next.x-Fe.x)/(Fe.next.y-Fe.y);if(Ie<=je&&Ie>He){if(He=Ie,Ie===je){if(Re===Fe.y)return Fe;if(Re===Fe.next.y)return Fe.next}Be=Fe.x=Fe.x&&Fe.x>=Le&&je!==Fe.x&&ue(ReBe.x||Fe.x===Be.x&&Y(Be,Fe)))&&(Be=Fe,Ne=Ge)),Fe=Fe.next}while(Fe!==Pe);return Be}(We,Ce);if(!Be)return Ce;var Fe=ye(Be,We),je=B(Be,Be.next);let Re=se(Fe);return B(Re,Re.next),je=se(je),se(Ce===Be?je:Ce)}function Y(We,Ce){return he(We.prev,We,Ce.prev)<0&&he(Ce.next,We,We.next)<0}function J(We,Ce,Be,Fe,je){return(We=1431655765&((We=858993459&((We=252645135&((We=16711935&((We=32767*(We-Be)*je)|We<<8))|We<<4))|We<<2))|We<<1))|(Ce=1431655765&((Ce=858993459&((Ce=252645135&((Ce=16711935&((Ce=32767*(Ce-Fe)*je)|Ce<<8))|Ce<<4))|Ce<<2))|Ce<<1))<<1}function ce(We){var Ce=We,Be=We;do{(Ce.x=0&&(We-He)*(Fe-Ie)-(Be-He)*(Ce-Ie)>=0&&(Be-He)*(Re-Ie)-(je-He)*(Fe-Ie)>=0}function pe(We,Ce){return We.next.i!==Ce.i&&We.prev.i!==Ce.i&&!function De(We,Ce){var Be=We;do{if(Be.i!==We.i&&Be.next.i!==We.i&&Be.i!==Ce.i&&Be.next.i!==Ce.i&&ge(Be,Be.next,We,Ce))return!0;Be=Be.next}while(Be!==We);return!1}(We,Ce)&&(be(We,Ce)&&be(Ce,We)&&function Se(We,Ce){var Be=We,Fe=!1,je=(We.x+Ce.x)/2,Re=(We.y+Ce.y)/2;do{Be.y>Re!=Be.next.y>Re&&Be.next.y!==Be.y&&je<(Be.next.x-Be.x)*(Re-Be.y)/(Be.next.y-Be.y)+Be.x&&(Fe=!Fe),Be=Be.next}while(Be!==We);return Fe}(We,Ce)&&(he(We.prev,We,Ce.prev)||he(We,Ce.prev,Ce))||me(We,Ce)&&he(We.prev,We,We.next)>0&&he(Ce.prev,Ce,Ce.next)>0)}function he(We,Ce,Be){return(Ce.y-We.y)*(Be.x-Ce.x)-(Ce.x-We.x)*(Be.y-Ce.y)}function me(We,Ce){return We.x===Ce.x&&We.y===Ce.y}function ge(We,Ce,Be,Fe){var je=Ee(he(We,Ce,Be)),Re=Ee(he(We,Ce,Fe)),He=Ee(he(Be,Fe,We)),Ie=Ee(he(Be,Fe,Ce));return je!==Re&&He!==Ie||!(0!==je||!_e(We,Be,Ce))||!(0!==Re||!_e(We,Fe,Ce))||!(0!==He||!_e(Be,We,Fe))||!(0!==Ie||!_e(Be,Ce,Fe))}function _e(We,Ce,Be){return Ce.x<=Math.max(We.x,Be.x)&&Ce.x>=Math.min(We.x,Be.x)&&Ce.y<=Math.max(We.y,Be.y)&&Ce.y>=Math.min(We.y,Be.y)}function Ee(We){return We>0?1:We<0?-1:0}function be(We,Ce){return he(We.prev,We,We.next)<0?he(We,Ce,We.next)>=0&&he(We,We.prev,Ce)>=0:he(We,Ce,We.prev)<0||he(We,We.next,Ce)<0}function ye(We,Ce){var Be=new ze(We.i,We.x,We.y),Fe=new ze(Ce.i,Ce.x,Ce.y),je=We.next,Re=Ce.prev;return We.next=Ce,Ce.prev=We,Be.next=je,je.prev=Be,Fe.next=Be,Be.prev=Fe,Re.next=Fe,Fe.prev=Re,Fe}function ve(We,Ce,Be,Fe){var je=new ze(We,Ce,Be);return Fe?(je.next=Fe.next,je.prev=Fe,Fe.next.prev=je,Fe.next=je):(je.prev=je,je.next=je),je}function xe(We){We.next.prev=We.prev,We.prev.next=We.next,We.prevZ&&(We.prevZ.nextZ=We.nextZ),We.nextZ&&(We.nextZ.prevZ=We.prevZ)}function ze(We,Ce,Be){this.i=We,this.x=Ce,this.y=Be,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ke(We,Ce,Be,Fe){for(var je=0,Re=Ce,He=Be-Fe;Re0&&Be.holes.push(Fe+=We[je-1].length)}return Be},$}())&&(D.exports=G);const Q=Z.exports},31478:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>oe,b:()=>te,c:()=>Q,f:()=>ae,i:()=>G,m:()=>W,r:()=>B,s:()=>H,t:()=>X});var D=v(39863);function G(pe){return pe[0]=1,pe[1]=0,pe[2]=0,pe[3]=1,pe[4]=0,pe[5]=0,pe}function Q(pe,he){const me=he[0],ge=he[1],_e=he[2],Ee=he[3],De=he[4],be=he[5];let Se=me*Ee-ge*_e;return Se?(Se=1/Se,pe[0]=Ee*Se,pe[1]=-ge*Se,pe[2]=-_e*Se,pe[3]=me*Se,pe[4]=(_e*be-Ee*De)*Se,pe[5]=(ge*De-me*be)*Se,pe):null}function W(pe,he,me){const ge=he[0],_e=he[1],Ee=he[2],De=he[3],be=he[4],Se=he[5],ye=me[0],ve=me[1],xe=me[2],ze=me[3],Ke=me[4],We=me[5];return pe[0]=ge*ye+Ee*ve,pe[1]=_e*ye+De*ve,pe[2]=ge*xe+Ee*ze,pe[3]=_e*xe+De*ze,pe[4]=ge*Ke+Ee*We+be,pe[5]=_e*Ke+De*We+Se,pe}function B(pe,he,me){const ge=he[0],_e=he[1],Ee=he[2],De=he[3],be=he[4],Se=he[5],ye=Math.sin(me),ve=Math.cos(me);return pe[0]=ge*ve+Ee*ye,pe[1]=_e*ve+De*ye,pe[2]=ge*-ye+Ee*ve,pe[3]=_e*-ye+De*ve,pe[4]=be,pe[5]=Se,pe}function H(pe,he,me){const _e=he[1],Ee=he[2],De=he[3],be=he[4],Se=he[5],ye=me[0],ve=me[1];return pe[0]=he[0]*ye,pe[1]=_e*ye,pe[2]=Ee*ve,pe[3]=De*ve,pe[4]=be,pe[5]=Se,pe}function X(pe,he,me){const ge=he[0],_e=he[1],Ee=he[2],De=he[3],be=he[4],Se=he[5],ye=me[0],ve=me[1];return pe[0]=ge,pe[1]=_e,pe[2]=Ee,pe[3]=De,pe[4]=ge*ye+Ee*ve+be,pe[5]=_e*ye+De*ve+Se,pe}function te(pe,he){const me=Math.sin(he),ge=Math.cos(he);return pe[0]=ge,pe[1]=me,pe[2]=-me,pe[3]=ge,pe[4]=0,pe[5]=0,pe}function ae(pe,he){return pe[0]=he[0],pe[1]=0,pe[2]=0,pe[3]=he[1],pe[4]=0,pe[5]=0,pe}function oe(pe,he){return pe[0]=1,pe[1]=0,pe[2]=0,pe[3]=1,pe[4]=he[0],pe[5]=he[1],pe}function re(pe,he,me){return pe[0]=he[0]-me[0],pe[1]=he[1]-me[1],pe[2]=he[2]-me[2],pe[3]=he[3]-me[3],pe[4]=he[4]-me[4],pe[5]=he[5]-me[5],pe}Object.freeze(Object.defineProperty({__proto__:null,copy:function R(pe,he){return pe[0]=he[0],pe[1]=he[1],pe[2]=he[2],pe[3]=he[3],pe[4]=he[4],pe[5]=he[5],pe},identity:G,set:function Z(pe,he,me,ge,_e,Ee,De){return pe[0]=he,pe[1]=me,pe[2]=ge,pe[3]=_e,pe[4]=Ee,pe[5]=De,pe},invert:Q,determinant:function $(pe){return pe[0]*pe[3]-pe[1]*pe[2]},multiply:W,rotate:B,scale:H,translate:X,fromRotation:te,fromScaling:ae,fromTranslation:oe,str:function le(pe){return"mat2d("+pe[0]+", "+pe[1]+", "+pe[2]+", "+pe[3]+", "+pe[4]+", "+pe[5]+")"},frob:function de(pe){return Math.sqrt(pe[0]**2+pe[1]**2+pe[2]**2+pe[3]**2+pe[4]**2+pe[5]**2+1)},add:function se(pe,he,me){return pe[0]=he[0]+me[0],pe[1]=he[1]+me[1],pe[2]=he[2]+me[2],pe[3]=he[3]+me[3],pe[4]=he[4]+me[4],pe[5]=he[5]+me[5],pe},subtract:re,multiplyScalar:function j(pe,he,me){return pe[0]=he[0]*me,pe[1]=he[1]*me,pe[2]=he[2]*me,pe[3]=he[3]*me,pe[4]=he[4]*me,pe[5]=he[5]*me,pe},multiplyScalarAndAdd:function Y(pe,he,me,ge){return pe[0]=he[0]+me[0]*ge,pe[1]=he[1]+me[1]*ge,pe[2]=he[2]+me[2]*ge,pe[3]=he[3]+me[3]*ge,pe[4]=he[4]+me[4]*ge,pe[5]=he[5]+me[5]*ge,pe},exactEquals:function ee(pe,he){return pe[0]===he[0]&&pe[1]===he[1]&&pe[2]===he[2]&&pe[3]===he[3]&&pe[4]===he[4]&&pe[5]===he[5]},equals:function ie(pe,he){const me=pe[0],ge=pe[1],_e=pe[2],Ee=pe[3],De=pe[4],be=pe[5],Se=he[0],ye=he[1],ve=he[2],xe=he[3],ze=he[4],Ke=he[5],We=(0,D.g)();return Math.abs(me-Se)<=We*Math.max(1,Math.abs(me),Math.abs(Se))&&Math.abs(ge-ye)<=We*Math.max(1,Math.abs(ge),Math.abs(ye))&&Math.abs(_e-ve)<=We*Math.max(1,Math.abs(_e),Math.abs(ve))&&Math.abs(Ee-xe)<=We*Math.max(1,Math.abs(Ee),Math.abs(xe))&&Math.abs(De-ze)<=We*Math.max(1,Math.abs(De),Math.abs(ze))&&Math.abs(be-Ke)<=We*Math.max(1,Math.abs(be),Math.abs(Ke))},mul:W,sub:re},Symbol.toStringTag,{value:"Module"}))},12225:(nt,Ae,v)=>{"use strict";function D(){const B=new Float32Array(6);return B[0]=1,B[3]=1,B}function Q(B,H,X,te){const ae=H[te],oe=H[te+1];B[te]=X[0]*ae+X[2]*oe+X[4],B[te+1]=X[1]*ae+X[3]*oe+X[5]}function $(B,H,X,te=0,ae=0,oe=2){const le=ae||H.length/oe;for(let de=te;deD,t:()=>$}),Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:function R(B){const H=new Float32Array(6);return H[0]=B[0],H[1]=B[1],H[2]=B[2],H[3]=B[3],H[4]=B[4],H[5]=B[5],H},fromValues:function G(B,H,X,te,ae,oe){const le=new Float32Array(6);return le[0]=B,le[1]=H,le[2]=X,le[3]=te,le[4]=ae,le[5]=oe,le},createView:function Z(B,H){return new Float32Array(B,H,6)},transform:Q,transformMany:$},Symbol.toStringTag,{value:"Module"}))},30217:(nt,Ae,v)=>{"use strict";v.d(Ae,{b:()=>ie,c:()=>Y,d:()=>oe,e:()=>W,f:()=>R,g:()=>Q,h:()=>te,i:()=>De,m:()=>X,n:()=>ee,r:()=>ae,s:()=>Z,t:()=>$});var D=v(39863);function R(ve,xe){return ve[0]=xe[0],ve[1]=xe[1],ve[2]=xe[2],ve[3]=xe[4],ve[4]=xe[5],ve[5]=xe[6],ve[6]=xe[8],ve[7]=xe[9],ve[8]=xe[10],ve}function Z(ve,xe,ze,Ke,We,Ce,Be,Fe,je,Re){return ve[0]=xe,ve[1]=ze,ve[2]=Ke,ve[3]=We,ve[4]=Ce,ve[5]=Be,ve[6]=Fe,ve[7]=je,ve[8]=Re,ve}function Q(ve){return ve[0]=1,ve[1]=0,ve[2]=0,ve[3]=0,ve[4]=1,ve[5]=0,ve[6]=0,ve[7]=0,ve[8]=1,ve}function $(ve,xe){if(ve===xe){const ze=xe[1],Ke=xe[2],We=xe[5];ve[1]=xe[3],ve[2]=xe[6],ve[3]=ze,ve[5]=xe[7],ve[6]=Ke,ve[7]=We}else ve[0]=xe[0],ve[1]=xe[3],ve[2]=xe[6],ve[3]=xe[1],ve[4]=xe[4],ve[5]=xe[7],ve[6]=xe[2],ve[7]=xe[5],ve[8]=xe[8];return ve}function W(ve,xe){const ze=xe[0],Ke=xe[1],We=xe[2],Ce=xe[3],Be=xe[4],Fe=xe[5],je=xe[6],Re=xe[7],He=xe[8],Ie=He*Be-Fe*Re,Ge=-He*Ce+Fe*je,Pe=Re*Ce-Be*je;let Le=ze*Ie+Ke*Ge+We*Pe;return Le?(Le=1/Le,ve[0]=Ie*Le,ve[1]=(-He*Ke+We*Re)*Le,ve[2]=(Fe*Ke-We*Be)*Le,ve[3]=Ge*Le,ve[4]=(He*ze-We*je)*Le,ve[5]=(-Fe*ze+We*Ce)*Le,ve[6]=Pe*Le,ve[7]=(-Re*ze+Ke*je)*Le,ve[8]=(Be*ze-Ke*Ce)*Le,ve):null}function X(ve,xe,ze){const Ke=xe[0],We=xe[1],Ce=xe[2],Be=xe[3],Fe=xe[4],je=xe[5],Re=xe[6],He=xe[7],Ie=xe[8],Ge=ze[0],Pe=ze[1],Le=ze[2],Me=ze[3],Ne=ze[4],Xe=ze[5],Ye=ze[6],Je=ze[7],rt=ze[8];return ve[0]=Ge*Ke+Pe*Be+Le*Re,ve[1]=Ge*We+Pe*Fe+Le*He,ve[2]=Ge*Ce+Pe*je+Le*Ie,ve[3]=Me*Ke+Ne*Be+Xe*Re,ve[4]=Me*We+Ne*Fe+Xe*He,ve[5]=Me*Ce+Ne*je+Xe*Ie,ve[6]=Ye*Ke+Je*Be+rt*Re,ve[7]=Ye*We+Je*Fe+rt*He,ve[8]=Ye*Ce+Je*je+rt*Ie,ve}function te(ve,xe,ze){const Ke=xe[0],We=xe[1],Ce=xe[2],Be=xe[3],Fe=xe[4],je=xe[5],Re=xe[6],He=xe[7],Ie=xe[8],Ge=ze[0],Pe=ze[1];return ve[0]=Ke,ve[1]=We,ve[2]=Ce,ve[3]=Be,ve[4]=Fe,ve[5]=je,ve[6]=Ge*Ke+Pe*Be+Re,ve[7]=Ge*We+Pe*Fe+He,ve[8]=Ge*Ce+Pe*je+Ie,ve}function ae(ve,xe,ze){const Ke=xe[0],We=xe[1],Ce=xe[2],Be=xe[3],Fe=xe[4],je=xe[5],Re=xe[6],He=xe[7],Ie=xe[8],Ge=Math.sin(ze),Pe=Math.cos(ze);return ve[0]=Pe*Ke+Ge*Be,ve[1]=Pe*We+Ge*Fe,ve[2]=Pe*Ce+Ge*je,ve[3]=Pe*Be-Ge*Ke,ve[4]=Pe*Fe-Ge*We,ve[5]=Pe*je-Ge*Ce,ve[6]=Re,ve[7]=He,ve[8]=Ie,ve}function oe(ve,xe,ze){const Ke=ze[0],We=ze[1],Ce=ze[2];return ve[0]=Ke*xe[0],ve[1]=Ke*xe[1],ve[2]=Ke*xe[2],ve[3]=We*xe[3],ve[4]=We*xe[4],ve[5]=We*xe[5],ve[6]=Ce*xe[6],ve[7]=Ce*xe[7],ve[8]=Ce*xe[8],ve}function Y(ve,xe){const ze=xe[0],Ke=xe[1],We=xe[2],Ce=xe[3],Be=ze+ze,Fe=Ke+Ke,je=We+We,Re=ze*Be,He=Ke*Be,Ie=Ke*Fe,Ge=We*Be,Pe=We*Fe,Le=We*je,Me=Ce*Be,Ne=Ce*Fe,Xe=Ce*je;return ve[0]=1-Ie-Le,ve[3]=He-Xe,ve[6]=Ge+Ne,ve[1]=He+Xe,ve[4]=1-Re-Le,ve[7]=Pe-Me,ve[2]=Ge-Ne,ve[5]=Pe+Me,ve[8]=1-Re-Ie,ve}function ee(ve,xe){const ze=xe[0],Ke=xe[1],We=xe[2],Ce=xe[4],Be=xe[5],Fe=xe[6],je=xe[8],Re=xe[9],He=xe[10],Ie=He*Be-Fe*Re,Ge=-He*Ce+Fe*je,Pe=Re*Ce-Be*je,Le=ze*Ie+Ke*Ge+We*Pe;if(!Le)return null;const Me=1/Le;return ve[0]=Ie*Me,ve[1]=(-He*Ke+We*Re)*Me,ve[2]=(Fe*Ke-We*Be)*Me,ve[3]=Ge*Me,ve[4]=(He*ze-We*je)*Me,ve[5]=(-Fe*ze+We*Ce)*Me,ve[6]=Pe*Me,ve[7]=(-Re*ze+Ke*je)*Me,ve[8]=(Be*ze-Ke*Ce)*Me,ve}function ie(ve,xe){const ze=xe[0],Ke=xe[1],We=xe[2],Ce=xe[3],Be=xe[4],Fe=xe[5],je=xe[6],Re=xe[7],He=xe[8],Ie=xe[9],Ge=xe[10],Pe=xe[11],Le=xe[12],Me=xe[13],Ne=xe[14],Xe=xe[15],Ye=ze*Fe-Ke*Be,Je=ze*je-We*Be,rt=ze*Re-Ce*Be,tt=Ke*je-We*Fe,et=Ke*Re-Ce*Fe,qe=We*Re-Ce*je,ot=He*Me-Ie*Le,ut=He*Ne-Ge*Le,_t=He*Xe-Pe*Le,Ct=Ie*Ne-Ge*Me,vt=Ie*Xe-Pe*Me,Lt=Ge*Xe-Pe*Ne;let jt=Ye*Lt-Je*vt+rt*Ct+tt*_t-et*ut+qe*ot;return jt?(jt=1/jt,ve[0]=(Fe*Lt-je*vt+Re*Ct)*jt,ve[1]=(je*_t-Be*Lt-Re*ut)*jt,ve[2]=(Be*vt-Fe*_t+Re*ot)*jt,ve[3]=(We*vt-Ke*Lt-Ce*Ct)*jt,ve[4]=(ze*Lt-We*_t+Ce*ut)*jt,ve[5]=(Ke*_t-ze*vt-Ce*ot)*jt,ve[6]=(Me*qe-Ne*et+Xe*tt)*jt,ve[7]=(Ne*rt-Le*qe-Xe*Je)*jt,ve[8]=(Le*et-Me*rt+Xe*Ye)*jt,ve):null}function he(ve,xe,ze){return ve[0]=xe[0]-ze[0],ve[1]=xe[1]-ze[1],ve[2]=xe[2]-ze[2],ve[3]=xe[3]-ze[3],ve[4]=xe[4]-ze[4],ve[5]=xe[5]-ze[5],ve[6]=xe[6]-ze[6],ve[7]=xe[7]-ze[7],ve[8]=xe[8]-ze[8],ve}function De(ve){const xe=(0,D.g)(),ze=ve[0],Ke=ve[1],We=ve[2],Ce=ve[3],Be=ve[4],Fe=ve[5],je=ve[6],Re=ve[7],He=ve[8];return Math.abs(1-(ze*ze+Ce*Ce+je*je))<=xe&&Math.abs(1-(Ke*Ke+Be*Be+Re*Re))<=xe&&Math.abs(1-(We*We+Fe*Fe+He*He))<=xe}Object.freeze(Object.defineProperty({__proto__:null,fromMat4:R,copy:function G(ve,xe){return ve[0]=xe[0],ve[1]=xe[1],ve[2]=xe[2],ve[3]=xe[3],ve[4]=xe[4],ve[5]=xe[5],ve[6]=xe[6],ve[7]=xe[7],ve[8]=xe[8],ve},set:Z,identity:Q,transpose:$,invert:W,adjoint:function B(ve,xe){const ze=xe[0],Ke=xe[1],We=xe[2],Ce=xe[3],Be=xe[4],Fe=xe[5],je=xe[6],Re=xe[7],He=xe[8];return ve[0]=Be*He-Fe*Re,ve[1]=We*Re-Ke*He,ve[2]=Ke*Fe-We*Be,ve[3]=Fe*je-Ce*He,ve[4]=ze*He-We*je,ve[5]=We*Ce-ze*Fe,ve[6]=Ce*Re-Be*je,ve[7]=Ke*je-ze*Re,ve[8]=ze*Be-Ke*Ce,ve},determinant:function H(ve){const We=ve[3],Ce=ve[4],Be=ve[5],Fe=ve[6],je=ve[7],Re=ve[8];return ve[0]*(Re*Ce-Be*je)+ve[1]*(-Re*We+Be*Fe)+ve[2]*(je*We-Ce*Fe)},multiply:X,translate:te,rotate:ae,scale:oe,scaleByVec2:function le(ve,xe,ze){const Ke=ze[0],We=ze[1];return ve[0]=Ke*xe[0],ve[1]=Ke*xe[1],ve[2]=Ke*xe[2],ve[3]=We*xe[3],ve[4]=We*xe[4],ve[5]=We*xe[5],ve},fromTranslation:function de(ve,xe){return ve[0]=1,ve[1]=0,ve[2]=0,ve[3]=0,ve[4]=1,ve[5]=0,ve[6]=xe[0],ve[7]=xe[1],ve[8]=1,ve},fromRotation:function se(ve,xe){const ze=Math.sin(xe),Ke=Math.cos(xe);return ve[0]=Ke,ve[1]=ze,ve[2]=0,ve[3]=-ze,ve[4]=Ke,ve[5]=0,ve[6]=0,ve[7]=0,ve[8]=1,ve},fromScaling:function re(ve,xe){return ve[0]=xe[0],ve[1]=0,ve[2]=0,ve[3]=0,ve[4]=xe[1],ve[5]=0,ve[6]=0,ve[7]=0,ve[8]=1,ve},fromMat2d:function j(ve,xe){return ve[0]=xe[0],ve[1]=xe[1],ve[2]=0,ve[3]=xe[2],ve[4]=xe[3],ve[5]=0,ve[6]=xe[4],ve[7]=xe[5],ve[8]=1,ve},fromQuat:Y,normalFromMat4Legacy:ee,normalFromMat4:ie,projection:function J(ve,xe,ze){return ve[0]=2/xe,ve[1]=0,ve[2]=0,ve[3]=0,ve[4]=-2/ze,ve[5]=0,ve[6]=-1,ve[7]=1,ve[8]=1,ve},str:function ce(ve){return"mat3("+ve[0]+", "+ve[1]+", "+ve[2]+", "+ve[3]+", "+ve[4]+", "+ve[5]+", "+ve[6]+", "+ve[7]+", "+ve[8]+")"},frob:function ue(ve){return Math.sqrt(ve[0]**2+ve[1]**2+ve[2]**2+ve[3]**2+ve[4]**2+ve[5]**2+ve[6]**2+ve[7]**2+ve[8]**2)},add:function pe(ve,xe,ze){return ve[0]=xe[0]+ze[0],ve[1]=xe[1]+ze[1],ve[2]=xe[2]+ze[2],ve[3]=xe[3]+ze[3],ve[4]=xe[4]+ze[4],ve[5]=xe[5]+ze[5],ve[6]=xe[6]+ze[6],ve[7]=xe[7]+ze[7],ve[8]=xe[8]+ze[8],ve},subtract:he,multiplyScalar:function me(ve,xe,ze){return ve[0]=xe[0]*ze,ve[1]=xe[1]*ze,ve[2]=xe[2]*ze,ve[3]=xe[3]*ze,ve[4]=xe[4]*ze,ve[5]=xe[5]*ze,ve[6]=xe[6]*ze,ve[7]=xe[7]*ze,ve[8]=xe[8]*ze,ve},multiplyScalarAndAdd:function ge(ve,xe,ze,Ke){return ve[0]=xe[0]+ze[0]*Ke,ve[1]=xe[1]+ze[1]*Ke,ve[2]=xe[2]+ze[2]*Ke,ve[3]=xe[3]+ze[3]*Ke,ve[4]=xe[4]+ze[4]*Ke,ve[5]=xe[5]+ze[5]*Ke,ve[6]=xe[6]+ze[6]*Ke,ve[7]=xe[7]+ze[7]*Ke,ve[8]=xe[8]+ze[8]*Ke,ve},exactEquals:function _e(ve,xe){return ve[0]===xe[0]&&ve[1]===xe[1]&&ve[2]===xe[2]&&ve[3]===xe[3]&&ve[4]===xe[4]&&ve[5]===xe[5]&&ve[6]===xe[6]&&ve[7]===xe[7]&&ve[8]===xe[8]},equals:function Ee(ve,xe){const ze=ve[0],Ke=ve[1],We=ve[2],Ce=ve[3],Be=ve[4],Fe=ve[5],je=ve[6],Re=ve[7],He=ve[8],Ie=xe[0],Ge=xe[1],Pe=xe[2],Le=xe[3],Me=xe[4],Ne=xe[5],Xe=xe[6],Ye=xe[7],Je=xe[8],rt=(0,D.g)();return Math.abs(ze-Ie)<=rt*Math.max(1,Math.abs(ze),Math.abs(Ie))&&Math.abs(Ke-Ge)<=rt*Math.max(1,Math.abs(Ke),Math.abs(Ge))&&Math.abs(We-Pe)<=rt*Math.max(1,Math.abs(We),Math.abs(Pe))&&Math.abs(Ce-Le)<=rt*Math.max(1,Math.abs(Ce),Math.abs(Le))&&Math.abs(Be-Me)<=rt*Math.max(1,Math.abs(Be),Math.abs(Me))&&Math.abs(Fe-Ne)<=rt*Math.max(1,Math.abs(Fe),Math.abs(Ne))&&Math.abs(je-Xe)<=rt*Math.max(1,Math.abs(je),Math.abs(Xe))&&Math.abs(Re-Ye)<=rt*Math.max(1,Math.abs(Re),Math.abs(Ye))&&Math.abs(He-Je)<=rt*Math.max(1,Math.abs(He),Math.abs(Je))},isOrthoNormal:De,mul:X,sub:he},Symbol.toStringTag,{value:"Module"}))},49966:(nt,Ae,v)=>{"use strict";function D(){const $=new Float32Array(9);return $[0]=1,$[4]=1,$[8]=1,$}function R($){const W=new Float32Array(9);return W[0]=$[0],W[1]=$[1],W[2]=$[2],W[3]=$[3],W[4]=$[4],W[5]=$[5],W[6]=$[6],W[7]=$[7],W[8]=$[8],W}function G($,W,B,H,X,te,ae,oe,le){const de=new Float32Array(9);return de[0]=$,de[1]=W,de[2]=B,de[3]=H,de[4]=X,de[5]=te,de[6]=ae,de[7]=oe,de[8]=le,de}v.d(Ae,{a:()=>R,c:()=>D,f:()=>G}),Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:G,createView:function Z($,W){return new Float32Array($,W,9)}},Symbol.toStringTag,{value:"Module"}))},550:(nt,Ae,v)=>{"use strict";function D(){return[1,0,0,0,1,0,0,0,1]}function Z($,W){return new Float64Array($,W,9)}v.d(Ae,{a:()=>Z,c:()=>D}),Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:function R($){return[$[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],$[8]]},fromValues:function G($,W,B,H,X,te,ae,oe,le){return[$,W,B,H,X,te,ae,oe,le]},createView:Z},Symbol.toStringTag,{value:"Module"}))},28347:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>he,C:()=>j,D:()=>De,a:()=>W,b:()=>J,c:()=>G,d:()=>Y,e:()=>oe,f:()=>re,g:()=>_e,h:()=>He,i:()=>Q,j:()=>Re,k:()=>ae,l:()=>me,m:()=>X,n:()=>de,o:()=>se,p:()=>be,q:()=>xe,r:()=>le,s:()=>Z,t:()=>$,u:()=>ze,v:()=>te,w:()=>ve,x:()=>Ie,y:()=>ee});var D=v(28093),R=v(39863);function G(Me,Ne){return Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[3]=Ne[3],Me[4]=Ne[4],Me[5]=Ne[5],Me[6]=Ne[6],Me[7]=Ne[7],Me[8]=Ne[8],Me[9]=Ne[9],Me[10]=Ne[10],Me[11]=Ne[11],Me[12]=Ne[12],Me[13]=Ne[13],Me[14]=Ne[14],Me[15]=Ne[15],Me}function Z(Me,Ne,Xe,Ye,Je,rt,tt,et,qe,ot,ut,_t,Ct,vt,Lt,jt,$t){return Me[0]=Ne,Me[1]=Xe,Me[2]=Ye,Me[3]=Je,Me[4]=rt,Me[5]=tt,Me[6]=et,Me[7]=qe,Me[8]=ot,Me[9]=ut,Me[10]=_t,Me[11]=Ct,Me[12]=vt,Me[13]=Lt,Me[14]=jt,Me[15]=$t,Me}function Q(Me){return Me[0]=1,Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=1,Me[6]=0,Me[7]=0,Me[8]=0,Me[9]=0,Me[10]=1,Me[11]=0,Me[12]=0,Me[13]=0,Me[14]=0,Me[15]=1,Me}function $(Me,Ne){if(Me===Ne){const Xe=Ne[1],Ye=Ne[2],Je=Ne[3],rt=Ne[6],tt=Ne[7],et=Ne[11];Me[1]=Ne[4],Me[2]=Ne[8],Me[3]=Ne[12],Me[4]=Xe,Me[6]=Ne[9],Me[7]=Ne[13],Me[8]=Ye,Me[9]=rt,Me[11]=Ne[14],Me[12]=Je,Me[13]=tt,Me[14]=et}else Me[0]=Ne[0],Me[1]=Ne[4],Me[2]=Ne[8],Me[3]=Ne[12],Me[4]=Ne[1],Me[5]=Ne[5],Me[6]=Ne[9],Me[7]=Ne[13],Me[8]=Ne[2],Me[9]=Ne[6],Me[10]=Ne[10],Me[11]=Ne[14],Me[12]=Ne[3],Me[13]=Ne[7],Me[14]=Ne[11],Me[15]=Ne[15];return Me}function W(Me,Ne){const Xe=Ne[0],Ye=Ne[1],Je=Ne[2],rt=Ne[3],tt=Ne[4],et=Ne[5],qe=Ne[6],ot=Ne[7],ut=Ne[8],_t=Ne[9],Ct=Ne[10],vt=Ne[11],Lt=Ne[12],jt=Ne[13],$t=Ne[14],Wt=Ne[15],pr=Xe*et-Ye*tt,gr=Xe*qe-Je*tt,ar=Xe*ot-rt*tt,Fr=Ye*qe-Je*et,mr=Ye*ot-rt*et,wt=Je*ot-rt*qe,or=ut*jt-_t*Lt,sr=ut*$t-Ct*Lt,rr=ut*Wt-vt*Lt,Et=_t*$t-Ct*jt,St=_t*Wt-vt*jt,Ft=Ct*Wt-vt*$t;let zt=pr*Ft-gr*St+ar*Et+Fr*rr-mr*sr+wt*or;return zt?(zt=1/zt,Me[0]=(et*Ft-qe*St+ot*Et)*zt,Me[1]=(Je*St-Ye*Ft-rt*Et)*zt,Me[2]=(jt*wt-$t*mr+Wt*Fr)*zt,Me[3]=(Ct*mr-_t*wt-vt*Fr)*zt,Me[4]=(qe*rr-tt*Ft-ot*sr)*zt,Me[5]=(Xe*Ft-Je*rr+rt*sr)*zt,Me[6]=($t*ar-Lt*wt-Wt*gr)*zt,Me[7]=(ut*wt-Ct*ar+vt*gr)*zt,Me[8]=(tt*St-et*rr+ot*or)*zt,Me[9]=(Ye*rr-Xe*St-rt*or)*zt,Me[10]=(Lt*mr-jt*ar+Wt*pr)*zt,Me[11]=(_t*ar-ut*mr-vt*pr)*zt,Me[12]=(et*sr-tt*Et-qe*or)*zt,Me[13]=(Xe*Et-Ye*sr+Je*or)*zt,Me[14]=(jt*gr-Lt*Fr-$t*pr)*zt,Me[15]=(ut*Fr-_t*gr+Ct*pr)*zt,Me):null}function X(Me,Ne,Xe){const Ye=Ne[0],Je=Ne[1],rt=Ne[2],tt=Ne[3],et=Ne[4],qe=Ne[5],ot=Ne[6],ut=Ne[7],_t=Ne[8],Ct=Ne[9],vt=Ne[10],Lt=Ne[11],jt=Ne[12],$t=Ne[13],Wt=Ne[14],pr=Ne[15];let gr=Xe[0],ar=Xe[1],Fr=Xe[2],mr=Xe[3];return Me[0]=gr*Ye+ar*et+Fr*_t+mr*jt,Me[1]=gr*Je+ar*qe+Fr*Ct+mr*$t,Me[2]=gr*rt+ar*ot+Fr*vt+mr*Wt,Me[3]=gr*tt+ar*ut+Fr*Lt+mr*pr,gr=Xe[4],ar=Xe[5],Fr=Xe[6],mr=Xe[7],Me[4]=gr*Ye+ar*et+Fr*_t+mr*jt,Me[5]=gr*Je+ar*qe+Fr*Ct+mr*$t,Me[6]=gr*rt+ar*ot+Fr*vt+mr*Wt,Me[7]=gr*tt+ar*ut+Fr*Lt+mr*pr,gr=Xe[8],ar=Xe[9],Fr=Xe[10],mr=Xe[11],Me[8]=gr*Ye+ar*et+Fr*_t+mr*jt,Me[9]=gr*Je+ar*qe+Fr*Ct+mr*$t,Me[10]=gr*rt+ar*ot+Fr*vt+mr*Wt,Me[11]=gr*tt+ar*ut+Fr*Lt+mr*pr,gr=Xe[12],ar=Xe[13],Fr=Xe[14],mr=Xe[15],Me[12]=gr*Ye+ar*et+Fr*_t+mr*jt,Me[13]=gr*Je+ar*qe+Fr*Ct+mr*$t,Me[14]=gr*rt+ar*ot+Fr*vt+mr*Wt,Me[15]=gr*tt+ar*ut+Fr*Lt+mr*pr,Me}function te(Me,Ne,Xe){const Ye=Xe[0],Je=Xe[1],rt=Xe[2];if(Ne===Me)Me[12]=Ne[0]*Ye+Ne[4]*Je+Ne[8]*rt+Ne[12],Me[13]=Ne[1]*Ye+Ne[5]*Je+Ne[9]*rt+Ne[13],Me[14]=Ne[2]*Ye+Ne[6]*Je+Ne[10]*rt+Ne[14],Me[15]=Ne[3]*Ye+Ne[7]*Je+Ne[11]*rt+Ne[15];else{const tt=Ne[0],et=Ne[1],qe=Ne[2],ot=Ne[3],ut=Ne[4],_t=Ne[5],Ct=Ne[6],vt=Ne[7],Lt=Ne[8],jt=Ne[9],$t=Ne[10],Wt=Ne[11];Me[0]=tt,Me[1]=et,Me[2]=qe,Me[3]=ot,Me[4]=ut,Me[5]=_t,Me[6]=Ct,Me[7]=vt,Me[8]=Lt,Me[9]=jt,Me[10]=$t,Me[11]=Wt,Me[12]=tt*Ye+ut*Je+Lt*rt+Ne[12],Me[13]=et*Ye+_t*Je+jt*rt+Ne[13],Me[14]=qe*Ye+Ct*Je+$t*rt+Ne[14],Me[15]=ot*Ye+vt*Je+Wt*rt+Ne[15]}return Me}function ae(Me,Ne,Xe){const Ye=Xe[0],Je=Xe[1],rt=Xe[2];return Me[0]=Ne[0]*Ye,Me[1]=Ne[1]*Ye,Me[2]=Ne[2]*Ye,Me[3]=Ne[3]*Ye,Me[4]=Ne[4]*Je,Me[5]=Ne[5]*Je,Me[6]=Ne[6]*Je,Me[7]=Ne[7]*Je,Me[8]=Ne[8]*rt,Me[9]=Ne[9]*rt,Me[10]=Ne[10]*rt,Me[11]=Ne[11]*rt,Me[12]=Ne[12],Me[13]=Ne[13],Me[14]=Ne[14],Me[15]=Ne[15],Me}function oe(Me,Ne,Xe,Ye){let Je,rt,tt,et,qe,ot,ut,_t,Ct,vt,Lt,jt,$t,Wt,pr,gr,ar,Fr,mr,wt,or,sr,rr,Et,St=Ye[0],Ft=Ye[1],zt=Ye[2],dr=Math.sqrt(St*St+Ft*Ft+zt*zt);return dr<(0,R.g)()?null:(dr=1/dr,St*=dr,Ft*=dr,zt*=dr,Je=Math.sin(Xe),rt=Math.cos(Xe),tt=1-rt,et=Ne[0],qe=Ne[1],ot=Ne[2],ut=Ne[3],_t=Ne[4],Ct=Ne[5],vt=Ne[6],Lt=Ne[7],jt=Ne[8],$t=Ne[9],Wt=Ne[10],pr=Ne[11],gr=St*St*tt+rt,ar=Ft*St*tt+zt*Je,Fr=zt*St*tt-Ft*Je,mr=St*Ft*tt-zt*Je,wt=Ft*Ft*tt+rt,or=zt*Ft*tt+St*Je,sr=St*zt*tt+Ft*Je,rr=Ft*zt*tt-St*Je,Et=zt*zt*tt+rt,Me[0]=et*gr+_t*ar+jt*Fr,Me[1]=qe*gr+Ct*ar+$t*Fr,Me[2]=ot*gr+vt*ar+Wt*Fr,Me[3]=ut*gr+Lt*ar+pr*Fr,Me[4]=et*mr+_t*wt+jt*or,Me[5]=qe*mr+Ct*wt+$t*or,Me[6]=ot*mr+vt*wt+Wt*or,Me[7]=ut*mr+Lt*wt+pr*or,Me[8]=et*sr+_t*rr+jt*Et,Me[9]=qe*sr+Ct*rr+$t*Et,Me[10]=ot*sr+vt*rr+Wt*Et,Me[11]=ut*sr+Lt*rr+pr*Et,Ne!==Me&&(Me[12]=Ne[12],Me[13]=Ne[13],Me[14]=Ne[14],Me[15]=Ne[15]),Me)}function le(Me,Ne,Xe){const Ye=Math.sin(Xe),Je=Math.cos(Xe),rt=Ne[4],tt=Ne[5],et=Ne[6],qe=Ne[7],ot=Ne[8],ut=Ne[9],_t=Ne[10],Ct=Ne[11];return Ne!==Me&&(Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[3]=Ne[3],Me[12]=Ne[12],Me[13]=Ne[13],Me[14]=Ne[14],Me[15]=Ne[15]),Me[4]=rt*Je+ot*Ye,Me[5]=tt*Je+ut*Ye,Me[6]=et*Je+_t*Ye,Me[7]=qe*Je+Ct*Ye,Me[8]=ot*Je-rt*Ye,Me[9]=ut*Je-tt*Ye,Me[10]=_t*Je-et*Ye,Me[11]=Ct*Je-qe*Ye,Me}function de(Me,Ne,Xe){const Ye=Math.sin(Xe),Je=Math.cos(Xe),rt=Ne[0],tt=Ne[1],et=Ne[2],qe=Ne[3],ot=Ne[8],ut=Ne[9],_t=Ne[10],Ct=Ne[11];return Ne!==Me&&(Me[4]=Ne[4],Me[5]=Ne[5],Me[6]=Ne[6],Me[7]=Ne[7],Me[12]=Ne[12],Me[13]=Ne[13],Me[14]=Ne[14],Me[15]=Ne[15]),Me[0]=rt*Je-ot*Ye,Me[1]=tt*Je-ut*Ye,Me[2]=et*Je-_t*Ye,Me[3]=qe*Je-Ct*Ye,Me[8]=rt*Ye+ot*Je,Me[9]=tt*Ye+ut*Je,Me[10]=et*Ye+_t*Je,Me[11]=qe*Ye+Ct*Je,Me}function se(Me,Ne,Xe){const Ye=Math.sin(Xe),Je=Math.cos(Xe),rt=Ne[0],tt=Ne[1],et=Ne[2],qe=Ne[3],ot=Ne[4],ut=Ne[5],_t=Ne[6],Ct=Ne[7];return Ne!==Me&&(Me[8]=Ne[8],Me[9]=Ne[9],Me[10]=Ne[10],Me[11]=Ne[11],Me[12]=Ne[12],Me[13]=Ne[13],Me[14]=Ne[14],Me[15]=Ne[15]),Me[0]=rt*Je+ot*Ye,Me[1]=tt*Je+ut*Ye,Me[2]=et*Je+_t*Ye,Me[3]=qe*Je+Ct*Ye,Me[4]=ot*Je-rt*Ye,Me[5]=ut*Je-tt*Ye,Me[6]=_t*Je-et*Ye,Me[7]=Ct*Je-qe*Ye,Me}function re(Me,Ne){return Me[0]=1,Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=1,Me[6]=0,Me[7]=0,Me[8]=0,Me[9]=0,Me[10]=1,Me[11]=0,Me[12]=Ne[0],Me[13]=Ne[1],Me[14]=Ne[2],Me[15]=1,Me}function j(Me,Ne){return Me[0]=Ne[0],Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=Ne[1],Me[6]=0,Me[7]=0,Me[8]=0,Me[9]=0,Me[10]=Ne[2],Me[11]=0,Me[12]=0,Me[13]=0,Me[14]=0,Me[15]=1,Me}function Y(Me,Ne,Xe){if(0===Ne)return Q(Me);let Ye,Je,rt,tt=Xe[0],et=Xe[1],qe=Xe[2],ot=Math.sqrt(tt*tt+et*et+qe*qe);return ot<(0,R.g)()?null:(ot=1/ot,tt*=ot,et*=ot,qe*=ot,Ye=Math.sin(Ne),Je=Math.cos(Ne),rt=1-Je,Me[0]=tt*tt*rt+Je,Me[1]=et*tt*rt+qe*Ye,Me[2]=qe*tt*rt-et*Ye,Me[3]=0,Me[4]=tt*et*rt-qe*Ye,Me[5]=et*et*rt+Je,Me[6]=qe*et*rt+tt*Ye,Me[7]=0,Me[8]=tt*qe*rt+et*Ye,Me[9]=et*qe*rt-tt*Ye,Me[10]=qe*qe*rt+Je,Me[11]=0,Me[12]=0,Me[13]=0,Me[14]=0,Me[15]=1,Me)}function ee(Me,Ne){const Xe=Math.sin(Ne),Ye=Math.cos(Ne);return Me[0]=1,Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=Ye,Me[6]=Xe,Me[7]=0,Me[8]=0,Me[9]=-Xe,Me[10]=Ye,Me[11]=0,Me[12]=0,Me[13]=0,Me[14]=0,Me[15]=1,Me}function J(Me,Ne){const Xe=Math.sin(Ne),Ye=Math.cos(Ne);return Me[0]=Ye,Me[1]=Xe,Me[2]=0,Me[3]=0,Me[4]=-Xe,Me[5]=Ye,Me[6]=0,Me[7]=0,Me[8]=0,Me[9]=0,Me[10]=1,Me[11]=0,Me[12]=0,Me[13]=0,Me[14]=0,Me[15]=1,Me}function ce(Me,Ne,Xe){const Ye=Ne[0],Je=Ne[1],rt=Ne[2],tt=Ne[3],et=Ye+Ye,qe=Je+Je,ot=rt+rt,ut=Ye*et,_t=Ye*qe,Ct=Ye*ot,vt=Je*qe,Lt=Je*ot,jt=rt*ot,$t=tt*et,Wt=tt*qe,pr=tt*ot;return Me[0]=1-(vt+jt),Me[1]=_t+pr,Me[2]=Ct-Wt,Me[3]=0,Me[4]=_t-pr,Me[5]=1-(ut+jt),Me[6]=Lt+$t,Me[7]=0,Me[8]=Ct+Wt,Me[9]=Lt-$t,Me[10]=1-(ut+vt),Me[11]=0,Me[12]=Xe[0],Me[13]=Xe[1],Me[14]=Xe[2],Me[15]=1,Me}const pe=(0,D.c)();function he(Me,Ne){return Me[0]=Ne[12],Me[1]=Ne[13],Me[2]=Ne[14],Me}function me(Me,Ne){const Xe=Ne[0],Ye=Ne[1],Je=Ne[2],rt=Ne[4],tt=Ne[5],et=Ne[6],qe=Ne[8],ot=Ne[9],ut=Ne[10];return Me[0]=Math.sqrt(Xe*Xe+Ye*Ye+Je*Je),Me[1]=Math.sqrt(rt*rt+tt*tt+et*et),Me[2]=Math.sqrt(qe*qe+ot*ot+ut*ut),Me}function _e(Me,Ne,Xe,Ye){const Je=Ne[0],rt=Ne[1],tt=Ne[2],et=Ne[3],qe=Je+Je,ot=rt+rt,ut=tt+tt,_t=Je*qe,Ct=Je*ot,vt=Je*ut,Lt=rt*ot,jt=rt*ut,$t=tt*ut,Wt=et*qe,pr=et*ot,gr=et*ut,ar=Ye[0],Fr=Ye[1],mr=Ye[2];return Me[0]=(1-(Lt+$t))*ar,Me[1]=(Ct+gr)*ar,Me[2]=(vt-pr)*ar,Me[3]=0,Me[4]=(Ct-gr)*Fr,Me[5]=(1-(_t+$t))*Fr,Me[6]=(jt+Wt)*Fr,Me[7]=0,Me[8]=(vt+pr)*mr,Me[9]=(jt-Wt)*mr,Me[10]=(1-(_t+Lt))*mr,Me[11]=0,Me[12]=Xe[0],Me[13]=Xe[1],Me[14]=Xe[2],Me[15]=1,Me}function De(Me,Ne){const Xe=Ne[0],Ye=Ne[1],Je=Ne[2],rt=Ne[3],tt=Xe+Xe,et=Ye+Ye,qe=Je+Je,ot=Xe*tt,ut=Ye*tt,_t=Ye*et,Ct=Je*tt,vt=Je*et,Lt=Je*qe,jt=rt*tt,$t=rt*et,Wt=rt*qe;return Me[0]=1-_t-Lt,Me[1]=ut+Wt,Me[2]=Ct-$t,Me[3]=0,Me[4]=ut-Wt,Me[5]=1-ot-Lt,Me[6]=vt+jt,Me[7]=0,Me[8]=Ct+$t,Me[9]=vt-jt,Me[10]=1-ot-_t,Me[11]=0,Me[12]=0,Me[13]=0,Me[14]=0,Me[15]=1,Me}function be(Me,Ne,Xe,Ye,Je,rt,tt){const et=1/(Xe-Ne),qe=1/(Je-Ye),ot=1/(rt-tt);return Me[0]=2*rt*et,Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=2*rt*qe,Me[6]=0,Me[7]=0,Me[8]=(Xe+Ne)*et,Me[9]=(Je+Ye)*qe,Me[10]=(tt+rt)*ot,Me[11]=-1,Me[12]=0,Me[13]=0,Me[14]=tt*rt*2*ot,Me[15]=0,Me}function ve(Me,Ne,Xe,Ye,Je,rt,tt){const et=1/(Ne-Xe),qe=1/(Ye-Je),ot=1/(rt-tt);return Me[0]=-2*et,Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=-2*qe,Me[6]=0,Me[7]=0,Me[8]=0,Me[9]=0,Me[10]=2*ot,Me[11]=0,Me[12]=(Ne+Xe)*et,Me[13]=(Je+Ye)*qe,Me[14]=(tt+rt)*ot,Me[15]=1,Me}function xe(Me,Ne,Xe,Ye){let Je,rt,tt,et,qe,ot,ut,_t,Ct,vt;const Lt=Ne[0],jt=Ne[1],$t=Ne[2],Wt=Ye[0],pr=Ye[1],gr=Ye[2],ar=Xe[0],Fr=Xe[1],mr=Xe[2],wt=(0,R.g)();return Math.abs(Lt-ar)0&&(vt=1/Math.sqrt(vt),ut*=vt,_t*=vt,Ct*=vt);let Lt=qe*Ct-ot*_t,jt=ot*ut-et*Ct,$t=et*_t-qe*ut;return vt=Lt*Lt+jt*jt+$t*$t,vt>0&&(vt=1/Math.sqrt(vt),Lt*=vt,jt*=vt,$t*=vt),Me[0]=Lt,Me[1]=jt,Me[2]=$t,Me[3]=0,Me[4]=_t*$t-Ct*jt,Me[5]=Ct*Lt-ut*$t,Me[6]=ut*jt-_t*Lt,Me[7]=0,Me[8]=ut,Me[9]=_t,Me[10]=Ct,Me[11]=0,Me[12]=Je,Me[13]=rt,Me[14]=tt,Me[15]=1,Me}function Be(Me,Ne,Xe){return Me[0]=Ne[0]-Xe[0],Me[1]=Ne[1]-Xe[1],Me[2]=Ne[2]-Xe[2],Me[3]=Ne[3]-Xe[3],Me[4]=Ne[4]-Xe[4],Me[5]=Ne[5]-Xe[5],Me[6]=Ne[6]-Xe[6],Me[7]=Ne[7]-Xe[7],Me[8]=Ne[8]-Xe[8],Me[9]=Ne[9]-Xe[9],Me[10]=Ne[10]-Xe[10],Me[11]=Ne[11]-Xe[11],Me[12]=Ne[12]-Xe[12],Me[13]=Ne[13]-Xe[13],Me[14]=Ne[14]-Xe[14],Me[15]=Ne[15]-Xe[15],Me}function Re(Me,Ne){return Me[0]===Ne[0]&&Me[1]===Ne[1]&&Me[2]===Ne[2]&&Me[3]===Ne[3]&&Me[4]===Ne[4]&&Me[5]===Ne[5]&&Me[6]===Ne[6]&&Me[7]===Ne[7]&&Me[8]===Ne[8]&&Me[9]===Ne[9]&&Me[10]===Ne[10]&&Me[11]===Ne[11]&&Me[12]===Ne[12]&&Me[13]===Ne[13]&&Me[14]===Ne[14]&&Me[15]===Ne[15]}function He(Me,Ne){if(Me===Ne)return!0;const Xe=Me[0],Ye=Me[1],Je=Me[2],rt=Me[3],tt=Me[4],et=Me[5],qe=Me[6],ot=Me[7],ut=Me[8],_t=Me[9],Ct=Me[10],vt=Me[11],Lt=Me[12],jt=Me[13],$t=Me[14],Wt=Me[15],pr=Ne[0],gr=Ne[1],ar=Ne[2],Fr=Ne[3],mr=Ne[4],wt=Ne[5],or=Ne[6],sr=Ne[7],rr=Ne[8],Et=Ne[9],St=Ne[10],Ft=Ne[11],zt=Ne[12],dr=Ne[13],hr=Ne[14],Tr=Ne[15],Dr=(0,R.g)();return Math.abs(Xe-pr)<=Dr*Math.max(1,Math.abs(Xe),Math.abs(pr))&&Math.abs(Ye-gr)<=Dr*Math.max(1,Math.abs(Ye),Math.abs(gr))&&Math.abs(Je-ar)<=Dr*Math.max(1,Math.abs(Je),Math.abs(ar))&&Math.abs(rt-Fr)<=Dr*Math.max(1,Math.abs(rt),Math.abs(Fr))&&Math.abs(tt-mr)<=Dr*Math.max(1,Math.abs(tt),Math.abs(mr))&&Math.abs(et-wt)<=Dr*Math.max(1,Math.abs(et),Math.abs(wt))&&Math.abs(qe-or)<=Dr*Math.max(1,Math.abs(qe),Math.abs(or))&&Math.abs(ot-sr)<=Dr*Math.max(1,Math.abs(ot),Math.abs(sr))&&Math.abs(ut-rr)<=Dr*Math.max(1,Math.abs(ut),Math.abs(rr))&&Math.abs(_t-Et)<=Dr*Math.max(1,Math.abs(_t),Math.abs(Et))&&Math.abs(Ct-St)<=Dr*Math.max(1,Math.abs(Ct),Math.abs(St))&&Math.abs(vt-Ft)<=Dr*Math.max(1,Math.abs(vt),Math.abs(Ft))&&Math.abs(Lt-zt)<=Dr*Math.max(1,Math.abs(Lt),Math.abs(zt))&&Math.abs(jt-dr)<=Dr*Math.max(1,Math.abs(jt),Math.abs(dr))&&Math.abs($t-hr)<=Dr*Math.max(1,Math.abs($t),Math.abs(hr))&&Math.abs(Wt-Tr)<=Dr*Math.max(1,Math.abs(Wt),Math.abs(Tr))}function Ie(Me){const Ne=(0,R.g)(),Xe=Me[0],Ye=Me[1],Je=Me[2],rt=Me[4],tt=Me[5],et=Me[6],qe=Me[8],ot=Me[9],ut=Me[10];return Math.abs(1-(Xe*Xe+rt*rt+qe*qe))<=Ne&&Math.abs(1-(Ye*Ye+tt*tt+ot*ot))<=Ne&&Math.abs(1-(Je*Je+et*et+ut*ut))<=Ne}Object.freeze(Object.defineProperty({__proto__:null,copy:G,set:Z,identity:Q,transpose:$,invert:W,adjoint:function B(Me,Ne){const Xe=Ne[0],Ye=Ne[1],Je=Ne[2],rt=Ne[3],tt=Ne[4],et=Ne[5],qe=Ne[6],ot=Ne[7],ut=Ne[8],_t=Ne[9],Ct=Ne[10],vt=Ne[11],Lt=Ne[12],jt=Ne[13],$t=Ne[14],Wt=Ne[15];return Me[0]=et*(Ct*Wt-vt*$t)-_t*(qe*Wt-ot*$t)+jt*(qe*vt-ot*Ct),Me[1]=-(Ye*(Ct*Wt-vt*$t)-_t*(Je*Wt-rt*$t)+jt*(Je*vt-rt*Ct)),Me[2]=Ye*(qe*Wt-ot*$t)-et*(Je*Wt-rt*$t)+jt*(Je*ot-rt*qe),Me[3]=-(Ye*(qe*vt-ot*Ct)-et*(Je*vt-rt*Ct)+_t*(Je*ot-rt*qe)),Me[4]=-(tt*(Ct*Wt-vt*$t)-ut*(qe*Wt-ot*$t)+Lt*(qe*vt-ot*Ct)),Me[5]=Xe*(Ct*Wt-vt*$t)-ut*(Je*Wt-rt*$t)+Lt*(Je*vt-rt*Ct),Me[6]=-(Xe*(qe*Wt-ot*$t)-tt*(Je*Wt-rt*$t)+Lt*(Je*ot-rt*qe)),Me[7]=Xe*(qe*vt-ot*Ct)-tt*(Je*vt-rt*Ct)+ut*(Je*ot-rt*qe),Me[8]=tt*(_t*Wt-vt*jt)-ut*(et*Wt-ot*jt)+Lt*(et*vt-ot*_t),Me[9]=-(Xe*(_t*Wt-vt*jt)-ut*(Ye*Wt-rt*jt)+Lt*(Ye*vt-rt*_t)),Me[10]=Xe*(et*Wt-ot*jt)-tt*(Ye*Wt-rt*jt)+Lt*(Ye*ot-rt*et),Me[11]=-(Xe*(et*vt-ot*_t)-tt*(Ye*vt-rt*_t)+ut*(Ye*ot-rt*et)),Me[12]=-(tt*(_t*$t-Ct*jt)-ut*(et*$t-qe*jt)+Lt*(et*Ct-qe*_t)),Me[13]=Xe*(_t*$t-Ct*jt)-ut*(Ye*$t-Je*jt)+Lt*(Ye*Ct-Je*_t),Me[14]=-(Xe*(et*$t-qe*jt)-tt*(Ye*$t-Je*jt)+Lt*(Ye*qe-Je*et)),Me[15]=Xe*(et*Ct-qe*_t)-tt*(Ye*Ct-Je*_t)+ut*(Ye*qe-Je*et),Me},determinant:function H(Me){const Ne=Me[0],Xe=Me[1],Ye=Me[2],Je=Me[3],rt=Me[4],tt=Me[5],et=Me[6],qe=Me[7],ot=Me[8],ut=Me[9],_t=Me[10],Ct=Me[11],vt=Me[12],Lt=Me[13],jt=Me[14],$t=Me[15];return(Ne*tt-Xe*rt)*(_t*$t-Ct*jt)-(Ne*et-Ye*rt)*(ut*$t-Ct*Lt)+(Ne*qe-Je*rt)*(ut*jt-_t*Lt)+(Xe*et-Ye*tt)*(ot*$t-Ct*vt)-(Xe*qe-Je*tt)*(ot*jt-_t*vt)+(Ye*qe-Je*et)*(ot*Lt-ut*vt)},multiply:X,translate:te,scale:ae,rotate:oe,rotateX:le,rotateY:de,rotateZ:se,fromTranslation:re,fromScaling:j,fromRotation:Y,fromXRotation:ee,fromYRotation:function ie(Me,Ne){const Xe=Math.sin(Ne),Ye=Math.cos(Ne);return Me[0]=Ye,Me[1]=0,Me[2]=-Xe,Me[3]=0,Me[4]=0,Me[5]=1,Me[6]=0,Me[7]=0,Me[8]=Xe,Me[9]=0,Me[10]=Ye,Me[11]=0,Me[12]=0,Me[13]=0,Me[14]=0,Me[15]=1,Me},fromZRotation:J,fromRotationTranslation:ce,fromQuat2:function ue(Me,Ne){const Xe=pe,Ye=-Ne[0],Je=-Ne[1],rt=-Ne[2],tt=Ne[3],et=Ne[4],qe=Ne[5],ot=Ne[6],ut=Ne[7],_t=Ye*Ye+Je*Je+rt*rt+tt*tt;return _t>0?(Xe[0]=2*(et*tt+ut*Ye+qe*rt-ot*Je)/_t,Xe[1]=2*(qe*tt+ut*Je+ot*Ye-et*rt)/_t,Xe[2]=2*(ot*tt+ut*rt+et*Je-qe*Ye)/_t):(Xe[0]=2*(et*tt+ut*Ye+qe*rt-ot*Je),Xe[1]=2*(qe*tt+ut*Je+ot*Ye-et*rt),Xe[2]=2*(ot*tt+ut*rt+et*Je-qe*Ye)),ce(Me,Ne,Xe),Me},getTranslation:he,getScaling:me,getRotation:function ge(Me,Ne){const Xe=Ne[0]+Ne[5]+Ne[10];let Ye=0;return Xe>0?(Ye=2*Math.sqrt(Xe+1),Me[3]=.25*Ye,Me[0]=(Ne[6]-Ne[9])/Ye,Me[1]=(Ne[8]-Ne[2])/Ye,Me[2]=(Ne[1]-Ne[4])/Ye):Ne[0]>Ne[5]&&Ne[0]>Ne[10]?(Ye=2*Math.sqrt(1+Ne[0]-Ne[5]-Ne[10]),Me[3]=(Ne[6]-Ne[9])/Ye,Me[0]=.25*Ye,Me[1]=(Ne[1]+Ne[4])/Ye,Me[2]=(Ne[8]+Ne[2])/Ye):Ne[5]>Ne[10]?(Ye=2*Math.sqrt(1+Ne[5]-Ne[0]-Ne[10]),Me[3]=(Ne[8]-Ne[2])/Ye,Me[0]=(Ne[1]+Ne[4])/Ye,Me[1]=.25*Ye,Me[2]=(Ne[6]+Ne[9])/Ye):(Ye=2*Math.sqrt(1+Ne[10]-Ne[0]-Ne[5]),Me[3]=(Ne[1]-Ne[4])/Ye,Me[0]=(Ne[8]+Ne[2])/Ye,Me[1]=(Ne[6]+Ne[9])/Ye,Me[2]=.25*Ye),Me},fromRotationTranslationScale:_e,fromRotationTranslationScaleOrigin:function Ee(Me,Ne,Xe,Ye,Je){const rt=Ne[0],tt=Ne[1],et=Ne[2],qe=Ne[3],ot=rt+rt,ut=tt+tt,_t=et+et,Ct=rt*ot,vt=rt*ut,Lt=rt*_t,jt=tt*ut,$t=tt*_t,Wt=et*_t,pr=qe*ot,gr=qe*ut,ar=qe*_t,Fr=Ye[0],mr=Ye[1],wt=Ye[2],or=Je[0],sr=Je[1],rr=Je[2],Et=(1-(jt+Wt))*Fr,St=(vt+ar)*Fr,Ft=(Lt-gr)*Fr,zt=(vt-ar)*mr,dr=(1-(Ct+Wt))*mr,hr=($t+pr)*mr,Tr=(Lt+gr)*wt,Dr=($t-pr)*wt,Lr=(1-(Ct+jt))*wt;return Me[0]=Et,Me[1]=St,Me[2]=Ft,Me[3]=0,Me[4]=zt,Me[5]=dr,Me[6]=hr,Me[7]=0,Me[8]=Tr,Me[9]=Dr,Me[10]=Lr,Me[11]=0,Me[12]=Xe[0]+or-(Et*or+zt*sr+Tr*rr),Me[13]=Xe[1]+sr-(St*or+dr*sr+Dr*rr),Me[14]=Xe[2]+rr-(Ft*or+hr*sr+Lr*rr),Me[15]=1,Me},fromQuat:De,frustum:be,perspective:function Se(Me,Ne,Xe,Ye,Je){const rt=1/Math.tan(Ne/2);let tt;return Me[0]=rt/Xe,Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=rt,Me[6]=0,Me[7]=0,Me[8]=0,Me[9]=0,Me[11]=-1,Me[12]=0,Me[13]=0,Me[15]=0,null!=Je&&Je!==1/0?(tt=1/(Ye-Je),Me[10]=(Je+Ye)*tt,Me[14]=2*Je*Ye*tt):(Me[10]=-1,Me[14]=-2*Ye),Me},perspectiveFromFieldOfView:function ye(Me,Ne,Xe,Ye){const Je=Math.tan(Ne.upDegrees*Math.PI/180),rt=Math.tan(Ne.downDegrees*Math.PI/180),tt=Math.tan(Ne.leftDegrees*Math.PI/180),et=Math.tan(Ne.rightDegrees*Math.PI/180),qe=2/(tt+et),ot=2/(Je+rt);return Me[0]=qe,Me[1]=0,Me[2]=0,Me[3]=0,Me[4]=0,Me[5]=ot,Me[6]=0,Me[7]=0,Me[8]=-(tt-et)*qe*.5,Me[9]=(Je-rt)*ot*.5,Me[10]=Ye/(Xe-Ye),Me[11]=-1,Me[12]=0,Me[13]=0,Me[14]=Ye*Xe/(Xe-Ye),Me[15]=0,Me},ortho:ve,lookAt:xe,targetTo:ze,str:function Ke(Me){return"mat4("+Me[0]+", "+Me[1]+", "+Me[2]+", "+Me[3]+", "+Me[4]+", "+Me[5]+", "+Me[6]+", "+Me[7]+", "+Me[8]+", "+Me[9]+", "+Me[10]+", "+Me[11]+", "+Me[12]+", "+Me[13]+", "+Me[14]+", "+Me[15]+")"},frob:function We(Me){return Math.sqrt(Me[0]**2+Me[1]**2+Me[2]**2+Me[3]**2+Me[4]**2+Me[5]**2+Me[6]**2+Me[7]**2+Me[8]**2+Me[9]**2+Me[10]**2+Me[11]**2+Me[12]**2+Me[13]**2+Me[14]**2+Me[15]**2)},add:function Ce(Me,Ne,Xe){return Me[0]=Ne[0]+Xe[0],Me[1]=Ne[1]+Xe[1],Me[2]=Ne[2]+Xe[2],Me[3]=Ne[3]+Xe[3],Me[4]=Ne[4]+Xe[4],Me[5]=Ne[5]+Xe[5],Me[6]=Ne[6]+Xe[6],Me[7]=Ne[7]+Xe[7],Me[8]=Ne[8]+Xe[8],Me[9]=Ne[9]+Xe[9],Me[10]=Ne[10]+Xe[10],Me[11]=Ne[11]+Xe[11],Me[12]=Ne[12]+Xe[12],Me[13]=Ne[13]+Xe[13],Me[14]=Ne[14]+Xe[14],Me[15]=Ne[15]+Xe[15],Me},subtract:Be,multiplyScalar:function Fe(Me,Ne,Xe){return Me[0]=Ne[0]*Xe,Me[1]=Ne[1]*Xe,Me[2]=Ne[2]*Xe,Me[3]=Ne[3]*Xe,Me[4]=Ne[4]*Xe,Me[5]=Ne[5]*Xe,Me[6]=Ne[6]*Xe,Me[7]=Ne[7]*Xe,Me[8]=Ne[8]*Xe,Me[9]=Ne[9]*Xe,Me[10]=Ne[10]*Xe,Me[11]=Ne[11]*Xe,Me[12]=Ne[12]*Xe,Me[13]=Ne[13]*Xe,Me[14]=Ne[14]*Xe,Me[15]=Ne[15]*Xe,Me},multiplyScalarAndAdd:function je(Me,Ne,Xe,Ye){return Me[0]=Ne[0]+Xe[0]*Ye,Me[1]=Ne[1]+Xe[1]*Ye,Me[2]=Ne[2]+Xe[2]*Ye,Me[3]=Ne[3]+Xe[3]*Ye,Me[4]=Ne[4]+Xe[4]*Ye,Me[5]=Ne[5]+Xe[5]*Ye,Me[6]=Ne[6]+Xe[6]*Ye,Me[7]=Ne[7]+Xe[7]*Ye,Me[8]=Ne[8]+Xe[8]*Ye,Me[9]=Ne[9]+Xe[9]*Ye,Me[10]=Ne[10]+Xe[10]*Ye,Me[11]=Ne[11]+Xe[11]*Ye,Me[12]=Ne[12]+Xe[12]*Ye,Me[13]=Ne[13]+Xe[13]*Ye,Me[14]=Ne[14]+Xe[14]*Ye,Me[15]=Ne[15]+Xe[15]*Ye,Me},exactEquals:Re,equals:He,isOrthoNormal:Ie,mul:X,sub:Be},Symbol.toStringTag,{value:"Module"}))},55494:(nt,Ae,v)=>{"use strict";function D(){const W=new Float32Array(16);return W[0]=1,W[5]=1,W[10]=1,W[15]=1,W}v.d(Ae,{c:()=>D});const Q=D();Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:function R(W){const B=new Float32Array(16);return B[0]=W[0],B[1]=W[1],B[2]=W[2],B[3]=W[3],B[4]=W[4],B[5]=W[5],B[6]=W[6],B[7]=W[7],B[8]=W[8],B[9]=W[9],B[10]=W[10],B[11]=W[11],B[12]=W[12],B[13]=W[13],B[14]=W[14],B[15]=W[15],B},fromValues:function G(W,B,H,X,te,ae,oe,le,de,se,re,j,Y,ee,ie,J){const ce=new Float32Array(16);return ce[0]=W,ce[1]=B,ce[2]=H,ce[3]=X,ce[4]=te,ce[5]=ae,ce[6]=oe,ce[7]=le,ce[8]=de,ce[9]=se,ce[10]=re,ce[11]=j,ce[12]=Y,ce[13]=ee,ce[14]=ie,ce[15]=J,ce},createView:function Z(W,B){return new Float32Array(W,B,16)},IDENTITY:Q},Symbol.toStringTag,{value:"Module"}))},43703:(nt,Ae,v)=>{"use strict";function D(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function R(W){return[W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]]}function G(W,B,H,X,te,ae,oe,le,de,se,re,j,Y,ee,ie,J){return[W,B,H,X,te,ae,oe,le,de,se,re,j,Y,ee,ie,J]}function Z(W,B){return new Float64Array(W,B,16)}v.d(Ae,{I:()=>Q,a:()=>Z,b:()=>R,c:()=>D,f:()=>G});const Q=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:G,createView:Z,IDENTITY:Q},Symbol.toStringTag,{value:"Module"}))},44956:(nt,Ae,v)=>{"use strict";v.d(Ae,{e:()=>X,f:()=>H,g:()=>B,h:()=>le,i:()=>Q,j:()=>Y,l:()=>W,p:()=>he});var D=v(54346),R=v(8314);let G,Z=null;function Q(){return!!Z}function W(){return G||(G=v.e(3714).then(v.bind(v,73714)).then(me=>me.p).then(({default:me})=>me({locateFile:ge=>(0,D.V)(`esri/geometry/support/${ge}`)})).then(me=>{ie(me)}),G)}var B,H,X,me;(function(me){function ge(be,Se,ye){Z.ensureCache.prepare();const ve=ue(ye),xe=ye===ve,ze=Z.ensureFloat64(ve),Ke=Z._pe_geog_to_proj(Z.getPointer(be),Se,ze);return Ke&&pe(ye,Se,ze,xe),Ke}function Ee(be,Se,ye){return De(be,Se,ye,0)}function De(be,Se,ye,ve){Z.ensureCache.prepare();const xe=ue(ye),ze=ye===xe,Ke=Z.ensureFloat64(xe),We=Z._pe_proj_to_geog_center(Z.getPointer(be),Se,Ke,ve);return We&&pe(ye,Se,Ke,ze),We}me.geogToProj=ge,me.projGeog=function _e(be,Se,ye,ve){switch(ve){case H.PE_TRANSFORM_P_TO_G:return Ee(be,Se,ye);case H.PE_TRANSFORM_G_TO_P:return ge(be,Se,ye)}return 0},me.projToGeog=Ee,me.projToGeogCenter=De})(B||(B={})),(me=H||(H={})).init=function ge(){me.PE_BUFFER_MAX=Z.PeDefs.prototype.PE_BUFFER_MAX,me.PE_NAME_MAX=Z.PeDefs.prototype.PE_NAME_MAX,me.PE_MGRS_MAX=Z.PeDefs.prototype.PE_MGRS_MAX,me.PE_USNG_MAX=Z.PeDefs.prototype.PE_USNG_MAX,me.PE_DD_MAX=Z.PeDefs.prototype.PE_DD_MAX,me.PE_DDM_MAX=Z.PeDefs.prototype.PE_DDM_MAX,me.PE_DMS_MAX=Z.PeDefs.prototype.PE_DMS_MAX,me.PE_UTM_MAX=Z.PeDefs.prototype.PE_UTM_MAX,me.PE_PARM_MAX=Z.PeDefs.prototype.PE_PARM_MAX,me.PE_TYPE_NONE=Z.PeDefs.prototype.PE_TYPE_NONE,me.PE_TYPE_GEOGCS=Z.PeDefs.prototype.PE_TYPE_GEOGCS,me.PE_TYPE_PROJCS=Z.PeDefs.prototype.PE_TYPE_PROJCS,me.PE_TYPE_GEOGTRAN=Z.PeDefs.prototype.PE_TYPE_GEOGTRAN,me.PE_TYPE_COORDSYS=Z.PeDefs.prototype.PE_TYPE_COORDSYS,me.PE_TYPE_UNIT=Z.PeDefs.prototype.PE_TYPE_UNIT,me.PE_TYPE_LINUNIT=Z.PeDefs.prototype.PE_TYPE_LINUNIT,me.PE_STR_OPTS_NONE=Z.PeDefs.prototype.PE_STR_OPTS_NONE,me.PE_STR_AUTH_NONE=Z.PeDefs.prototype.PE_STR_AUTH_NONE,me.PE_STR_AUTH_TOP=Z.PeDefs.prototype.PE_STR_AUTH_TOP,me.PE_STR_NAME_CANON=Z.PeDefs.prototype.PE_STR_NAME_CANON,me.PE_PARM_X0=Z.PeDefs.prototype.PE_PARM_X0,me.PE_PARM_ND=Z.PeDefs.prototype.PE_PARM_ND,me.PE_TRANSFORM_1_TO_2=Z.PeDefs.prototype.PE_TRANSFORM_1_TO_2,me.PE_TRANSFORM_2_TO_1=Z.PeDefs.prototype.PE_TRANSFORM_2_TO_1,me.PE_TRANSFORM_P_TO_G=Z.PeDefs.prototype.PE_TRANSFORM_P_TO_G,me.PE_TRANSFORM_G_TO_P=Z.PeDefs.prototype.PE_TRANSFORM_G_TO_P,me.PE_HORIZON_RECT=Z.PeDefs.prototype.PE_HORIZON_RECT,me.PE_HORIZON_POLY=Z.PeDefs.prototype.PE_HORIZON_POLY,me.PE_HORIZON_LINE=Z.PeDefs.prototype.PE_HORIZON_LINE,me.PE_HORIZON_DELTA=Z.PeDefs.prototype.PE_HORIZON_DELTA},function(me){const ge={},_e={},Ee=Ce=>{if(Ce){const Be=Ce.getType();switch(Be){case H.PE_TYPE_GEOGCS:Ce=Z.castObject(Ce,Z.PeGeogcs);break;case H.PE_TYPE_PROJCS:Ce=Z.castObject(Ce,Z.PeProjcs);break;case H.PE_TYPE_GEOGTRAN:Ce=Z.castObject(Ce,Z.PeGeogtran);break;default:Be&H.PE_TYPE_UNIT&&(Ce=Z.castObject(Ce,Z.PeUnit))}}return Ce};function Se(Ce,Be){let Fe=null,je=ge[Ce];if(je||(je={},ge[Ce]=je),je.hasOwnProperty(String(Be)))Fe=je[Be];else{const Re=Z.PeFactory.prototype.factoryByType(Ce,Be);Z.compare(Re,Z.NULL)||(Fe=Re,je[Be]=Fe)}return Fe=Ee(Fe),Fe}me.initialize=function De(){Z.PeFactory.prototype.initialize(null)},me.coordsys=function be(Ce){return Se(H.PE_TYPE_COORDSYS,Ce)},me.factoryByType=Se,me.fromString=function ye(Ce,Be){let Fe=null,je=_e[Ce];if(je||(je={},_e[Ce]=je),je.hasOwnProperty(Be))Fe=je[Be];else{const Re=Z.PeFactory.prototype.fromString(Ce,Be);Z.compare(Re,Z.NULL)||(Fe=Re,je[Be]=Fe)}return Fe=Ee(Fe),Fe},me.geogcs=function ve(Ce){return Se(H.PE_TYPE_GEOGCS,Ce)},me.geogtran=function xe(Ce){return Se(H.PE_TYPE_GEOGTRAN,Ce)},me.getCode=function ze(Ce){return Z.PeFactory.prototype.getCode(Ce)},me.projcs=function Ke(Ce){return Se(H.PE_TYPE_PROJCS,Ce)},me.unit=function We(Ce){return Se(H.PE_TYPE_UNIT,Ce)}}(X||(X={}));let te=null;var ae,oe,le,de,se,re,j,Y,ee;function ie(me){function ge(be,Se,ye){be[Se]=ye(be[Se])}Z=me,H.init(),ae.init(),se.init(),j.init(),Y.init(),te=class extends Z.PeGCSExtent{destroy(){Z.destroy(this)}};const _e=[Z.PeDatum,Z.PeGeogcs,Z.PeGeogtran,Z.PeObject,Z.PeParameter,Z.PePrimem,Z.PeProjcs,Z.PeSpheroid,Z.PeUnit];for(const be of _e)ge(be.prototype,"getName",Se=>function(){return Se.call(this,new Array(H.PE_NAME_MAX))});for(const be of[Z.PeGeogtran,Z.PeProjcs])ge(be.prototype,"getParameters",Se=>function(){const ye=new Array(H.PE_PARM_MAX);let ve=Se.call(this);for(let xe=0;xefunction(){const Se=this.getSize();if(!Se)return null;const ye=[];return pe(ye,Se,be.call(this)),ye}),ge(Z.PeGTlistExtendedEntry.prototype,"getEntries",be=>{const Se=Z._pe_getPeGTlistExtendedGTsSize();return function(){let ye=null;const ve=be.call(this);if(!Z.compare(ve,Z.NULL)){ye=[ve];const xe=this.getSteps();if(xe>1){const ze=Z.getPointer(ve);for(let Ke=1;Kefunction(){let Se=this._cache;if(Se||(Se=new Map,this._cache=Se),Se.has(be))return Se.get(be);let ye=null;const ve=be.call(this);if(!Z.compare(ve,Z.NULL)){ye=[ve];const xe=ve.getNump();if(xe>1){const ze=Z.getPointer(ve);for(let Ke=1;Ke{ge.push(_e[0],_e[1])})):ge=me,ge}function pe(me,ge,_e,Ee=!1){if(Ee)for(let De=0;De<2*ge;De++)me[De]=Z.getValue(_e+De*Float64Array.BYTES_PER_ELEMENT,"double");else{const De=0===me.length;for(let be=0;be1)){const Ce=Z.getPointer(We);for(let Be=1;Be{J(De);const be=De.getGeogtran();J(be),be.getParameters().forEach(J),[be.getGeogcs1(),be.getGeogcs2()].forEach(Se=>{J(Se);const ye=Se.getDatum();J(ye),J(ye.getSpheroid()),J(Se.getPrimem()),J(Se.getUnit())})});Z.PeGTlistExtendedEntry.prototype.Delete(_e[0])}}}(oe||(oe={})),function(me){me.geogToGeog=function ge(_e,Ee,De,be,Se){Z.ensureCache.prepare();const ye=ue(De),ve=De===ye,xe=Z.ensureFloat64(ye);let ze=0;be&&(ze=Z.ensureFloat64(be));const Ke=Z._pe_geog_to_geog(Z.getPointer(_e),Ee,xe,ze,Se);return Ke&&pe(De,Ee,xe,ve),Ke}}(le||(le={})),function(me){const ge=(xe,ze,Ke,We,Ce,Be)=>{let Fe,je;switch(Z.ensureCache.prepare(),xe){case"dd":Fe=Z._pe_geog_to_dd,je=H.PE_DD_MAX;break;case"ddm":Fe=Z._pe_geog_to_ddm,je=H.PE_DDM_MAX;break;case"dms":Fe=Z._pe_geog_to_dms,je=H.PE_DMS_MAX}let Re=0;ze&&(Re=Z.getPointer(ze));const He=ue(We),Ie=Z.ensureFloat64(He),Ge=ce(Ke,je),Pe=Fe(Re,Ke,Ie,Ce,Z.ensureInt32(Ge));if(Pe)for(let Le=0;Le{let Be;switch(Z.ensureCache.prepare(),xe){case"dd":Be=Z._pe_dd_to_geog;break;case"ddm":Be=Z._pe_ddm_to_geog;break;case"dms":Be=Z._pe_dms_to_geog}let Fe=0;ze&&(Fe=Z.getPointer(ze));const je=We.map(Ge=>Z.ensureString(Ge)),Re=Z.ensureInt32(je),He=Z.ensureFloat64(new Array(2*Ke)),Ie=Be(Fe,Ke,Re,He);return Ie&&pe(Ce,Ke,He),Ie};me.geogToDms=function Ee(xe,ze,Ke,We,Ce){return ge("dms",xe,ze,Ke,We,Ce)},me.dmsToGeog=function De(xe,ze,Ke,We){return _e("dms",xe,ze,Ke,We)},me.geogToDdm=function be(xe,ze,Ke,We,Ce){return ge("ddm",xe,ze,Ke,We,Ce)},me.ddmToGeog=function Se(xe,ze,Ke,We){return _e("ddm",xe,ze,Ke,We)},me.geogToDd=function ye(xe,ze,Ke,We,Ce){return ge("dd",xe,ze,Ke,We,Ce)},me.ddToGeog=function ve(xe,ze,Ke,We){return _e("dd",xe,ze,Ke,We)}}(de||(de={})),function(me){me.init=function ge(){me.PE_MGRS_STYLE_NEW=Z.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,me.PE_MGRS_STYLE_OLD=Z.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,me.PE_MGRS_STYLE_AUTO=Z.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,me.PE_MGRS_180_ZONE_1_PLUS=Z.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,me.PE_MGRS_ADD_SPACES=Z.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},me.geogToMgrsExtended=function _e(De,be,Se,ye,ve,xe,ze){Z.ensureCache.prepare();let Ke=0;De&&(Ke=Z.getPointer(De));const We=ue(Se),Ce=Z.ensureFloat64(We),Be=ce(be,H.PE_MGRS_MAX),Fe=Z.ensureInt32(Be),je=Z._pe_geog_to_mgrs_extended(Ke,be,Ce,ye,ve,xe,Fe);if(je)for(let Re=0;ReZ.ensureString(Be)),Ke=Z.ensureInt32(ze),We=Z.ensureFloat64(new Array(2*be)),Ce=Z._pe_mgrs_to_geog_extended(xe,be,Ke,ye,We);return Ce&&pe(ve,be,We),Ce}}(se||(se={})),function(me){me.geogToUsng=function ge(Ee,De,be,Se,ye,ve,xe){Z.ensureCache.prepare();let ze=0;Ee&&(ze=Z.getPointer(Ee));const Ke=ue(be),We=Z.ensureFloat64(Ke),Ce=ce(De,H.PE_MGRS_MAX),Be=Z.ensureInt32(Ce),Fe=Z._pe_geog_to_usng(ze,De,We,Se,ye,ve,Be);if(Fe)for(let je=0;jeZ.ensureString(We)),xe=Z.ensureInt32(ve),ze=Z.ensureFloat64(new Array(2*De)),Ke=Z._pe_usng_to_geog(ye,De,xe,ze);return Ke&&pe(Se,De,ze),Ke}}(re||(re={})),function(me){me.init=function ge(){me.PE_UTM_OPTS_NONE=Z.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,me.PE_UTM_OPTS_ADD_SPACES=Z.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,me.PE_UTM_OPTS_NS=Z.PeNotationUtm.prototype.PE_UTM_OPTS_NS},me.geogToUtm=function _e(De,be,Se,ye,ve){Z.ensureCache.prepare();let xe=0;De&&(xe=Z.getPointer(De));const ze=ue(Se),Ke=Z.ensureFloat64(ze),We=ce(be,H.PE_UTM_MAX),Ce=Z.ensureInt32(We),Be=Z._pe_geog_to_utm(xe,be,Ke,ye,Ce);if(Be)for(let Fe=0;FeZ.ensureString(Be)),Ke=Z.ensureInt32(ze),We=Z.ensureFloat64(new Array(2*be)),Ce=Z._pe_utm_to_geog(xe,be,Ke,ye,We);return Ce&&pe(ve,be,We),Ce}}(j||(j={})),function(me){const ge=new Map;me.init=function _e(){me.PE_PCSINFO_OPTION_NONE=Z.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,me.PE_PCSINFO_OPTION_DOMAIN=Z.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,me.PE_POLE_OUTSIDE_BOUNDARY=Z.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,me.PE_POLE_POINT=Z.PePCSInfo.prototype.PE_POLE_POINT},me.generate=function Ee(De,be=me.PE_PCSINFO_OPTION_DOMAIN){let Se=null,ye=null;return ge.has(De)&&(ye=ge.get(De),ye[be]&&(Se=ye[be])),Se||(Se=Z.PePCSInfo.prototype.generate(De,be),ye||(ye=[],ge.set(De,ye)),ye[be]=Se),Se}}(Y||(Y={})),function(me){me.versionString=function ge(){return Z.PeVersion.prototype.version_string()}}(ee||(ee={}));const he=Object.freeze(Object.defineProperty({__proto__:null,get _pe(){return Z},isLoaded:Q,isSupported:function $(){return!!(0,R.Z)("esri-wasm")},load:W,get PeCSTransformations(){return B},get PeDefs(){return H},get PeFactory(){return X},get PeGCSExtent(){return te},get PeGTlistExtended(){return ae},get PeGTlistExtendedEntry(){return oe},get PeGTTransformations(){return le},get PeNotationDms(){return de},get PeNotationMgrs(){return se},get PeNotationUsng(){return re},get PeNotationUtm(){return j},get PePCSInfo(){return Y},get PeVersion(){return ee},_init:ie},Symbol.toStringTag,{value:"Module"}))},29840:(nt,Ae,v)=>{"use strict";v.d(Ae,{M:()=>oe,a:()=>le,e:()=>te,f:()=>G,i:()=>H,p:()=>X,r:()=>Q,t:()=>Z,w:()=>$});var D=v(62208),R=v(21726);function G(de,se){const re=se&&se.url&&se.url.path;if(de&&re&&(de=(0,R.hF)(de,re,{preserveProtocolRelative:!0}),se.portalItem&&se.readResourcePaths)){const j=(0,R.PF)(de,se.portalItem.itemUrl);null!=j&&B.test(j)&&se.readResourcePaths.push(se.portalItem.resourceFromPath(j).path)}return ae(de,se&&se.portal)}function Z(de,se,re=oe.YES){if(null==de)return de;!(0,R.YP)(de)&&se&&se.blockedRelativeUrls&&se.blockedRelativeUrls.push(de);let j=(0,R.hF)(de);if(se){const Y=se.verifyItemRelativeUrls&&se.verifyItemRelativeUrls.rootPath||se.url&&se.url.path;if(Y){const ee=ae(Y,se.portal);j=(0,R.PF)(ae(j,se.portal),ee,ee),null!=j&&j!==de&&se.verifyItemRelativeUrls&&se.verifyItemRelativeUrls.writtenUrls.push(j)}}return j=te(j,se?.portal),(0,R.YP)(j)&&(j=(0,R.Fv)(j)),se?.resources&&se?.portalItem&&!(0,R.YP)(j)&&!(0,R.HK)(j)&&re===oe.YES&&se.resources.toKeep.push({resource:se.portalItem.resourceFromPath(j),compress:!1}),j}function Q(de,se,re){return G(de,re)}function $(de,se,re,j){const Y=Z(de,j);void 0!==Y&&(se[re]=Y)}const W=/\/items\/([^\/]+)\/resources\/(.*)/,B=/^\.\/resources\//;function H(de){return(de?.match(W)??null)?.[1]??null}function X(de){const se=de?.match(W)??null;if(null==se)return null;const re=se[2],j=re.lastIndexOf("/");if(-1===j){const{path:ie,extension:J}=(0,R.fZ)(re);return{prefix:null,filename:ie,extension:(0,D.Wg)(J)}}const{path:Y,extension:ee}=(0,R.fZ)(re.slice(j+1));return{prefix:re.slice(0,j),filename:Y,extension:(0,D.Wg)(ee)}}function te(de,se){return se&&!se.isPortal&&se.urlKey&&se.customBaseUrl?(0,R.Ie)(de,`${se.urlKey}.${se.customBaseUrl}`,se.portalHostname):de}function ae(de,se){if(!se||se.isPortal||!se.urlKey||!se.customBaseUrl)return de;const re=`${se.urlKey}.${se.customBaseUrl}`,j=(0,R.TI)();return(0,R.D6)(j,`${j.scheme}://${re}`)?(0,R.Ie)(de,se.portalHostname,re):(0,R.Ie)(de,re,se.portalHostname)}var oe,de;(de=oe||(oe={}))[de.YES=0]="YES",de[de.NO=1]="NO";const le=Object.freeze(Object.defineProperty({__proto__:null,fromJSON:G,toJSON:Z,read:Q,write:$,itemIdFromResourceUrl:H,prefixAndFilenameFromResourceUrl:X,ensureMainOnlineDomain:te,get MarkKeep(){return oe}},Symbol.toStringTag,{value:"Module"}))},48977:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>J,c:()=>j,g:()=>H,j:()=>ye,k:()=>ee,m:()=>X,r:()=>xe,s:()=>B});var D=v(550),R=v(78451),G=v(28093),Z=v(39863),Q=v(84161),$=v(993);function B(Ie,Ge,Pe){Pe*=.5;const Le=Math.sin(Pe);return Ie[0]=Le*Ge[0],Ie[1]=Le*Ge[1],Ie[2]=Le*Ge[2],Ie[3]=Math.cos(Pe),Ie}function H(Ie,Ge){const Pe=2*Math.acos(Ge[3]),Le=Math.sin(Pe/2);return Le>(0,Z.g)()?(Ie[0]=Ge[0]/Le,Ie[1]=Ge[1]/Le,Ie[2]=Ge[2]/Le):(Ie[0]=1,Ie[1]=0,Ie[2]=0),Pe}function X(Ie,Ge,Pe){const Le=Ge[0],Me=Ge[1],Ne=Ge[2],Xe=Ge[3],Ye=Pe[0],Je=Pe[1],rt=Pe[2],tt=Pe[3];return Ie[0]=Le*tt+Xe*Ye+Me*rt-Ne*Je,Ie[1]=Me*tt+Xe*Je+Ne*Ye-Le*rt,Ie[2]=Ne*tt+Xe*rt+Le*Je-Me*Ye,Ie[3]=Xe*tt-Le*Ye-Me*Je-Ne*rt,Ie}function de(Ie,Ge,Pe,Le){const Me=Ge[0],Ne=Ge[1],Xe=Ge[2],Ye=Ge[3];let Je,rt,tt,et,qe,ot=Pe[0],ut=Pe[1],_t=Pe[2],Ct=Pe[3];return rt=Me*ot+Ne*ut+Xe*_t+Ye*Ct,rt<0&&(rt=-rt,ot=-ot,ut=-ut,_t=-_t,Ct=-Ct),1-rt>(0,Z.g)()?(Je=Math.acos(rt),tt=Math.sin(Je),et=Math.sin((1-Le)*Je)/tt,qe=Math.sin(Le*Je)/tt):(et=1-Le,qe=Le),Ie[0]=et*Me+qe*ot,Ie[1]=et*Ne+qe*ut,Ie[2]=et*Xe+qe*_t,Ie[3]=et*Ye+qe*Ct,Ie}function j(Ie,Ge){return Ie[0]=-Ge[0],Ie[1]=-Ge[1],Ie[2]=-Ge[2],Ie[3]=Ge[3],Ie}function Y(Ie,Ge){const Pe=Ge[0]+Ge[4]+Ge[8];let Le;if(Pe>0)Le=Math.sqrt(Pe+1),Ie[3]=.5*Le,Le=.5/Le,Ie[0]=(Ge[5]-Ge[7])*Le,Ie[1]=(Ge[6]-Ge[2])*Le,Ie[2]=(Ge[1]-Ge[3])*Le;else{let Me=0;Ge[4]>Ge[0]&&(Me=1),Ge[8]>Ge[3*Me+Me]&&(Me=2);const Ne=(Me+1)%3,Xe=(Me+2)%3;Le=Math.sqrt(Ge[3*Me+Me]-Ge[3*Ne+Ne]-Ge[3*Xe+Xe]+1),Ie[Me]=.5*Le,Le=.5/Le,Ie[3]=(Ge[3*Ne+Xe]-Ge[3*Xe+Ne])*Le,Ie[Ne]=(Ge[3*Ne+Me]+Ge[3*Me+Ne])*Le,Ie[Xe]=(Ge[3*Xe+Me]+Ge[3*Me+Xe])*Le}return Ie}function ee(Ie,Ge,Pe,Le){const Me=.5*Math.PI/180;Ge*=Me,Pe*=Me,Le*=Me;const Ne=Math.sin(Ge),Xe=Math.cos(Ge),Ye=Math.sin(Pe),Je=Math.cos(Pe),rt=Math.sin(Le),tt=Math.cos(Le);return Ie[0]=Ne*Je*tt-Xe*Ye*rt,Ie[1]=Xe*Ye*tt+Ne*Je*rt,Ie[2]=Xe*Je*rt-Ne*Ye*tt,Ie[3]=Xe*Je*tt+Ne*Ye*rt,Ie}const J=$.c,ce=$.s,ue=$.a,pe=X,he=$.b,me=$.d,ge=$.l,_e=$.e,Ee=_e,De=$.f,be=De,Se=$.n,ye=$.g,ve=$.h;function xe(Ie,Ge,Pe){const Le=(0,Q.e)(Ge,Pe);return Le<-.999999?((0,Q.f)(ze,Ke,Ge),(0,Q.u)(ze)<1e-6&&(0,Q.f)(ze,We,Ge),(0,Q.n)(ze,ze),B(Ie,ze,Math.PI),Ie):Le>.999999?(Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Ie):((0,Q.f)(ze,Ge,Pe),Ie[0]=ze[0],Ie[1]=ze[1],Ie[2]=ze[2],Ie[3]=1+Le,Se(Ie,Ie))}const ze=(0,G.c)(),Ke=(0,G.f)(1,0,0),We=(0,G.f)(0,1,0),Be=(0,R.a)(),Fe=(0,R.a)(),Re=(0,D.c)();Object.freeze(Object.defineProperty({__proto__:null,identity:function W(Ie){return Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Ie},setAxisAngle:B,getAxisAngle:H,multiply:X,rotateX:function te(Ie,Ge,Pe){Pe*=.5;const Le=Ge[0],Me=Ge[1],Ne=Ge[2],Xe=Ge[3],Ye=Math.sin(Pe),Je=Math.cos(Pe);return Ie[0]=Le*Je+Xe*Ye,Ie[1]=Me*Je+Ne*Ye,Ie[2]=Ne*Je-Me*Ye,Ie[3]=Xe*Je-Le*Ye,Ie},rotateY:function ae(Ie,Ge,Pe){Pe*=.5;const Le=Ge[0],Me=Ge[1],Ne=Ge[2],Xe=Ge[3],Ye=Math.sin(Pe),Je=Math.cos(Pe);return Ie[0]=Le*Je-Ne*Ye,Ie[1]=Me*Je+Xe*Ye,Ie[2]=Ne*Je+Le*Ye,Ie[3]=Xe*Je-Me*Ye,Ie},rotateZ:function oe(Ie,Ge,Pe){Pe*=.5;const Le=Ge[0],Me=Ge[1],Ne=Ge[2],Xe=Ge[3],Ye=Math.sin(Pe),Je=Math.cos(Pe);return Ie[0]=Le*Je+Me*Ye,Ie[1]=Me*Je-Le*Ye,Ie[2]=Ne*Je+Xe*Ye,Ie[3]=Xe*Je-Ne*Ye,Ie},calculateW:function le(Ie,Ge){const Pe=Ge[0],Le=Ge[1],Me=Ge[2];return Ie[0]=Pe,Ie[1]=Le,Ie[2]=Me,Ie[3]=Math.sqrt(Math.abs(1-Pe*Pe-Le*Le-Me*Me)),Ie},slerp:de,random:function se(Ie){const Ge=Z.R,Pe=Ge(),Le=Ge(),Me=Ge(),Ne=Math.sqrt(1-Pe),Xe=Math.sqrt(Pe);return Ie[0]=Ne*Math.sin(2*Math.PI*Le),Ie[1]=Ne*Math.cos(2*Math.PI*Le),Ie[2]=Xe*Math.sin(2*Math.PI*Me),Ie[3]=Xe*Math.cos(2*Math.PI*Me),Ie},invert:function re(Ie,Ge){const Pe=Ge[0],Le=Ge[1],Me=Ge[2],Ne=Ge[3],Xe=Pe*Pe+Le*Le+Me*Me+Ne*Ne,Ye=Xe?1/Xe:0;return Ie[0]=-Pe*Ye,Ie[1]=-Le*Ye,Ie[2]=-Me*Ye,Ie[3]=Ne*Ye,Ie},conjugate:j,fromMat3:Y,fromEuler:ee,str:function ie(Ie){return"quat("+Ie[0]+", "+Ie[1]+", "+Ie[2]+", "+Ie[3]+")"},copy:J,set:ce,add:ue,mul:pe,scale:he,dot:me,lerp:ge,length:_e,len:Ee,squaredLength:De,sqrLen:be,normalize:Se,exactEquals:ye,equals:ve,rotationTo:xe,sqlerp:function Ce(Ie,Ge,Pe,Le,Me,Ne){return de(Be,Ge,Me,Ne),de(Fe,Pe,Le,Ne),de(Ie,Be,Fe,2*Ne*(1-Ne)),Ie},setAxes:function je(Ie,Ge,Pe,Le){const Me=Re;return Me[0]=Pe[0],Me[3]=Pe[1],Me[6]=Pe[2],Me[1]=Le[0],Me[4]=Le[1],Me[7]=Le[2],Me[2]=-Ge[0],Me[5]=-Ge[1],Me[8]=-Ge[2],Se(Ie,Y(Ie,Me))}},Symbol.toStringTag,{value:"Module"}))},56729:(nt,Ae,v)=>{"use strict";function D(){const $=new Float32Array(4);return $[3]=1,$}function R($){const W=new Float32Array(4);return W[0]=$[0],W[1]=$[1],W[2]=$[2],W[3]=$[3],W}function Z($,W){return new Float32Array($,W,4)}v.d(Ae,{a:()=>Z,b:()=>R,c:()=>D}),Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:function G($,W,B,H){const X=new Float32Array(4);return X[0]=$,X[1]=W,X[2]=B,X[3]=H,X},createView:Z},Symbol.toStringTag,{value:"Module"}))},78451:(nt,Ae,v)=>{"use strict";function D(){return[0,0,0,1]}function R(W){return[W[0],W[1],W[2],W[3]]}function Z(W,B){return new Float64Array(W,B,4)}v.d(Ae,{I:()=>Q,a:()=>D,b:()=>R,c:()=>Z});const Q=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:function G(W,B,H,X){return[W,B,H,X]},createView:Z,IDENTITY:Q},Symbol.toStringTag,{value:"Module"}))},98148:(nt,Ae,v)=>{"use strict";function R(Z,Q){const $=Z.count;Q||(Q=new Z.TypedArrayConstructor($));for(let W=0;W<$;W++)Q[W]=Z.get(W);return Q}v.d(Ae,{m:()=>R}),Object.freeze(Object.defineProperty({__proto__:null,copy:function D(Z,Q,$){const W=Z.typedBuffer,B=Z.typedBufferStride,H=Q.typedBuffer,X=Q.typedBufferStride,te=$?$.count:Q.count;let ae=($&&$.dstIndex?$.dstIndex:0)*B,oe=($&&$.srcIndex?$.srcIndex:0)*X;for(let le=0;le{"use strict";v.d(Ae,{a:()=>ee,b:()=>_e,c:()=>le,d:()=>be,e:()=>Y,f:()=>J,g:()=>ie,h:()=>de,i:()=>pe,j:()=>me,k:()=>se,l:()=>j,m:()=>Ke,s:()=>Be,t:()=>Ce,w:()=>re}),v(8314);var R=v(63290),G=v(21286),Z=v(62208),Q=v(28347),$=v(84161),W=v(28093),B=v(993),H=v(4794),X=v(78172),te=v(70562),ae=v(34054),oe=v(26242);function le(){return(0,H.c)()}function de(Fe,je=le()){return(0,B.c)(je,Fe)}function se(Fe,je){return(0,H.f)(Fe[0],Fe[1],Fe[2],je)}function re(Fe){return Fe}function j(Fe){Fe[0]=Fe[1]=Fe[2]=Fe[3]=0}function Y(Fe,je){return Fe[0]=Fe[1]=Fe[2]=0,Fe[3]=je,Fe}function ee(Fe){return Fe[3]}function ie(Fe){return Fe}function J(Fe,je,Re,He){return(0,H.f)(Fe,je,Re,He)}function pe(Fe,je,Re){if((0,Z.Wi)(je))return!1;const{origin:He,direction:Ie}=je,Ge=he;Ge[0]=He[0]-Fe[0],Ge[1]=He[1]-Fe[1],Ge[2]=He[2]-Fe[2];const Pe=Ie[0]*Ie[0]+Ie[1]*Ie[1]+Ie[2]*Ie[2];if(0===Pe)return!1;const Le=2*(Ie[0]*Ge[0]+Ie[1]*Ge[1]+Ie[2]*Ge[2]),Me=Le*Le-4*Pe*(Ge[0]*Ge[0]+Ge[1]*Ge[1]+Ge[2]*Ge[2]-Fe[3]*Fe[3]);if(Me<0)return!1;const Ne=Math.sqrt(Me);let Xe=(-Le-Ne)/(2*Pe);const Ye=(-Le+Ne)/(2*Pe);return(Xe<0||Ye0)&&(Xe=Ye),!(Xe<0||(Re&&(Re[0]=He[0]+Ie[0]*Xe,Re[1]=He[1]+Ie[1]*Xe,Re[2]=He[2]+Ie[2]*Xe),0))}const he=(0,W.c)();function me(Fe,je){return pe(Fe,je,null)}function _e(Fe,je,Re){const He=oe.WM.get(),Ie=oe.MP.get();(0,$.f)(He,je.origin,je.direction);const Ge=ee(Fe);(0,$.f)(Re,He,je.origin),(0,$.g)(Re,Re,1/(0,$.l)(Re)*Ge);const Pe=Se(Fe,je.origin),Le=(0,ae.EU)(je.origin,Re);return(0,Q.d)(Ie,Le+Pe,He),(0,$.m)(Re,Re,Ie),Re}function De(Fe,je,Re){const He=(0,$.b)(oe.WM.get(),je,Fe),Ie=(0,$.g)(oe.WM.get(),He,Fe[3]/(0,$.l)(He));return(0,$.a)(Re,Ie,Fe)}function be(Fe,je){const Re=(0,$.b)(oe.WM.get(),je,Fe),He=(0,$.p)(Re);return Math.sqrt(Math.abs(He-Fe[3]*Fe[3]))}function Se(Fe,je){const Re=(0,$.b)(oe.WM.get(),je,Fe),He=(0,$.l)(Re),Ie=ee(Fe),Ge=Ie+Math.abs(Ie-He);return(0,G.ZF)(Ie/Ge)}const ye=(0,W.c)();function ve(Fe,je,Re,He){const Ie=(0,$.b)(ye,je,Fe);switch(Re){case X.R.X:{const Ge=(0,G.jE)(Ie,ye)[2];return(0,$.s)(He,-Math.sin(Ge),Math.cos(Ge),0)}case X.R.Y:{const Ge=(0,G.jE)(Ie,ye),Pe=Ge[1],Le=Ge[2],Me=Math.sin(Pe);return(0,$.s)(He,-Me*Math.cos(Le),-Me*Math.sin(Le),Math.cos(Pe))}case X.R.Z:return(0,$.n)(He,Ie);default:return}}function xe(Fe,je){const Re=(0,$.b)(We,je,Fe);return(0,$.l)(Re)-Fe[3]}function Ke(Fe,je){const Re=(0,$.d)(Fe,je),He=ee(Fe);return Re<=He*He}const We=(0,W.c)(),Ce=le(),Be=Object.freeze(Object.defineProperty({__proto__:null,create:le,copy:de,fromCenterAndRadius:se,wrap:re,clear:j,fromRadius:Y,getRadius:ee,getCenter:ie,fromValues:J,elevate:function ce(Fe,je,Re){return Fe!==Re&&(0,$.c)(Re,Fe),Re[3]=Fe[3]+je,Re},setExtent:function ue(Fe,je,Re){return R.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),Fe===Re?Re:de(Fe,Re)},intersectRay:pe,intersectsRay:me,intersectRayClosestSilhouette:function ge(Fe,je,Re){if(pe(Fe,je,Re))return Re;const He=_e(Fe,je,oe.WM.get());return(0,$.a)(Re,je.origin,(0,$.g)(oe.WM.get(),je.direction,(0,$.i)(je.origin,He)/(0,$.l)(je.direction))),Re},closestPointOnSilhouette:_e,closestPoint:function Ee(Fe,je,Re){return pe(Fe,je,Re)?Re:((0,te.JI)(je,Fe,Re),De(Fe,Re,Re))},projectPoint:De,distanceToSilhouette:be,angleToSilhouette:Se,axisAt:ve,altitudeAt:xe,setAltitudeAt:function ze(Fe,je,Re,He){const Ie=xe(Fe,je),Ge=ve(Fe,je,X.R.Z,We),Pe=(0,$.g)(We,Ge,Re-Ie);return(0,$.a)(He,je,Pe)},containsPoint:Ke,tmpSphere:Ce},Symbol.toStringTag,{value:"Module"}))},17626:(nt,Ae,v)=>{"use strict";function D(R,G,Z,Q){var $,W=arguments.length,B=W<3?G:null===Q?Q=Object.getOwnPropertyDescriptor(G,Z):Q;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(R,G,Z,Q);else for(var H=R.length-1;H>=0;H--)($=R[H])&&(B=(W<3?$(B):W>3?$(G,Z,B):$(G,Z))||B);return W>3&&B&&Object.defineProperty(G,Z,B),B}v.d(Ae,{_:()=>D})},67831:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>Q,b:()=>oe,c:()=>R,d:()=>de,e:()=>ze,f:()=>ie,g:()=>ce,h:()=>J,i:()=>re,j:()=>Z,k:()=>se,l:()=>ue,m:()=>Se,n:()=>Y,o:()=>ye,p:()=>Ce,q:()=>he,r:()=>Ee,s:()=>G,t:()=>me,u:()=>ve,v:()=>j,w:()=>le});var D=v(39863);function R(Re,He){return Re[0]=He[0],Re[1]=He[1],Re}function G(Re,He,Ie){return Re[0]=He,Re[1]=Ie,Re}function Z(Re,He,Ie){return Re[0]=He[0]+Ie[0],Re[1]=He[1]+Ie[1],Re}function Q(Re,He,Ie){return Re[0]=He[0]-Ie[0],Re[1]=He[1]-Ie[1],Re}function $(Re,He,Ie){return Re[0]=He[0]*Ie[0],Re[1]=He[1]*Ie[1],Re}function W(Re,He,Ie){return Re[0]=He[0]/Ie[0],Re[1]=He[1]/Ie[1],Re}function oe(Re,He,Ie){return Re[0]=He[0]*Ie,Re[1]=He[1]*Ie,Re}function le(Re,He,Ie,Ge){return Re[0]=He[0]+Ie[0]*Ge,Re[1]=He[1]+Ie[1]*Ge,Re}function de(Re,He){const Ie=He[0]-Re[0],Ge=He[1]-Re[1];return Math.sqrt(Ie*Ie+Ge*Ge)}function se(Re,He){const Ie=He[0]-Re[0],Ge=He[1]-Re[1];return Ie*Ie+Ge*Ge}function re(Re){const He=Re[0],Ie=Re[1];return Math.sqrt(He*He+Ie*Ie)}function j(Re){const He=Re[0],Ie=Re[1];return He*He+Ie*Ie}function Y(Re,He){return Re[0]=-He[0],Re[1]=-He[1],Re}function ie(Re,He){const Ie=He[0],Ge=He[1];let Pe=Ie*Ie+Ge*Ge;return Pe>0&&(Pe=1/Math.sqrt(Pe),Re[0]=He[0]*Pe,Re[1]=He[1]*Pe),Re}function J(Re,He){return Re[0]*He[0]+Re[1]*He[1]}function ce(Re,He,Ie){const Ge=He[0]*Ie[1]-He[1]*Ie[0];return Re[0]=Re[1]=0,Re[2]=Ge,Re}function ue(Re,He,Ie,Ge){const Pe=He[0],Le=He[1];return Re[0]=Pe+Ge*(Ie[0]-Pe),Re[1]=Le+Ge*(Ie[1]-Le),Re}function he(Re,He,Ie){const Ge=He[0],Pe=He[1];return Re[0]=Ie[0]*Ge+Ie[2]*Pe,Re[1]=Ie[1]*Ge+Ie[3]*Pe,Re}function me(Re,He,Ie){const Ge=He[0],Pe=He[1];return Re[0]=Ie[0]*Ge+Ie[2]*Pe+Ie[4],Re[1]=Ie[1]*Ge+Ie[3]*Pe+Ie[5],Re}function Ee(Re,He,Ie,Ge){const Pe=He[0]-Ie[0],Le=He[1]-Ie[1],Me=Math.sin(Ge),Ne=Math.cos(Ge);return Re[0]=Pe*Ne-Le*Me+Ie[0],Re[1]=Pe*Me+Le*Ne+Ie[1],Re}function Se(Re,He){return Re[0]===He[0]&&Re[1]===He[1]}function ye(Re,He){const Ie=Re[0],Ge=Re[1],Pe=He[0],Le=He[1],Me=(0,D.g)();return Math.abs(Ie-Pe)<=Me*Math.max(1,Math.abs(Ie),Math.abs(Pe))&&Math.abs(Ge-Le)<=Me*Math.max(1,Math.abs(Ge),Math.abs(Le))}function ve(Re,He,Ie,Ge,Pe){let Le=He[0]-Ie[0],Me=He[1]-Ie[1];const Ne=(Ge[0]*Le+Ge[1]*Me)*(Pe-1);return Le=Ge[0]*Ne,Me=Ge[1]*Ne,Re[0]=He[0]+Le,Re[1]=He[1]+Me,Re}const ze=Q,Ce=de;Object.freeze(Object.defineProperty({__proto__:null,copy:R,set:G,add:Z,subtract:Q,multiply:$,divide:W,ceil:function B(Re,He){return Re[0]=Math.ceil(He[0]),Re[1]=Math.ceil(He[1]),Re},floor:function H(Re,He){return Re[0]=Math.floor(He[0]),Re[1]=Math.floor(He[1]),Re},min:function X(Re,He,Ie){return Re[0]=Math.min(He[0],Ie[0]),Re[1]=Math.min(He[1],Ie[1]),Re},max:function te(Re,He,Ie){return Re[0]=Math.max(He[0],Ie[0]),Re[1]=Math.max(He[1],Ie[1]),Re},round:function ae(Re,He){return Re[0]=Math.round(He[0]),Re[1]=Math.round(He[1]),Re},scale:oe,scaleAndAdd:le,distance:de,squaredDistance:se,length:re,squaredLength:j,negate:Y,inverse:function ee(Re,He){return Re[0]=1/He[0],Re[1]=1/He[1],Re},normalize:ie,dot:J,cross:ce,lerp:ue,random:function pe(Re,He){He=He||1;const Ie=2*(0,D.R)()*Math.PI;return Re[0]=Math.cos(Ie)*He,Re[1]=Math.sin(Ie)*He,Re},transformMat2:he,transformMat2d:me,transformMat3:function ge(Re,He,Ie){const Ge=He[0],Pe=He[1];return Re[0]=Ie[0]*Ge+Ie[3]*Pe+Ie[6],Re[1]=Ie[1]*Ge+Ie[4]*Pe+Ie[7],Re},transformMat4:function _e(Re,He,Ie){const Ge=He[0],Pe=He[1];return Re[0]=Ie[0]*Ge+Ie[4]*Pe+Ie[12],Re[1]=Ie[1]*Ge+Ie[5]*Pe+Ie[13],Re},rotate:Ee,angle:function De(Re,He){const Ie=Re[0],Ge=Re[1],Pe=He[0],Le=He[1];let Me=Ie*Ie+Ge*Ge;Me>0&&(Me=1/Math.sqrt(Me));let Ne=Pe*Pe+Le*Le;Ne>0&&(Ne=1/Math.sqrt(Ne));const Xe=(Ie*Pe+Ge*Le)*Me*Ne;return Xe>1?0:Xe<-1?Math.PI:Math.acos(Xe)},str:function be(Re){return"vec2("+Re[0]+", "+Re[1]+")"},exactEquals:Se,equals:ye,projectAndScale:ve,len:re,sub:ze,mul:$,div:W,dist:Ce,sqrDist:se,sqrLen:j},Symbol.toStringTag,{value:"Module"}))},35995:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>Z,n:()=>G});var D=v(81096);function R($,W,B){const H=$.typedBuffer,X=$.typedBufferStride,te=W.typedBuffer,ae=W.typedBufferStride,oe=B?B.count:W.count;let le=(B&&B.dstIndex?B.dstIndex:0)*X,de=(B&&B.srcIndex?B.srcIndex:0)*ae;for(let se=0;se{"use strict";function D(){return new Float32Array(2)}function G(le,de){const se=new Float32Array(2);return se[0]=le,se[1]=de,se}function Q(){return D()}function $(){return G(1,1)}function W(){return G(1,0)}function B(){return G(0,1)}v.d(Ae,{O:()=>X,Z:()=>H,c:()=>D,f:()=>G});const H=Q(),X=$(),te=W(),ae=B();Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:function R(le){const de=new Float32Array(2);return de[0]=le[0],de[1]=le[1],de},fromValues:G,createView:function Z(le,de){return new Float32Array(le,de,2)},zeros:Q,ones:$,unitX:W,unitY:B,ZEROS:H,ONES:X,UNIT_X:te,UNIT_Y:ae},Symbol.toStringTag,{value:"Module"}))},99770:(nt,Ae,v)=>{"use strict";function D(){return[0,0]}function R(de){return[de[0],de[1]]}function G(de,se){return[de,se]}function Z(de){const se=[0,0],re=Math.min(2,de.length);for(let j=0;jte,Z:()=>X,a:()=>D,b:()=>Z,c:()=>Q,d:()=>R,f:()=>G});const X=[0,0],te=W(),ae=B(),oe=H();Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:G,fromArray:Z,createView:Q,zeros:function $(){return[0,0]},ones:W,unitX:B,unitY:H,ZEROS:X,ONES:te,UNIT_X:ae,UNIT_Y:oe},Symbol.toStringTag,{value:"Module"}))},84161:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>oe,B:()=>B,C:()=>H,D:()=>Me,E:()=>Pe,F:()=>Fe,G:()=>Ne,H:()=>te,a:()=>$,b:()=>W,c:()=>Z,d:()=>ee,e:()=>pe,f:()=>he,g:()=>re,h:()=>me,i:()=>Y,j:()=>Ge,k:()=>Be,l:()=>G,m:()=>De,n:()=>ue,o:()=>J,p:()=>ie,q:()=>Se,r:()=>je,s:()=>Q,t:()=>be,u:()=>Le,v:()=>ze,w:()=>ae,x:()=>le,y:()=>Re,z:()=>j});var D=v(28093),R=v(39863);function G(Xe){const Ye=Xe[0],Je=Xe[1],rt=Xe[2];return Math.sqrt(Ye*Ye+Je*Je+rt*rt)}function Z(Xe,Ye){return Xe[0]=Ye[0],Xe[1]=Ye[1],Xe[2]=Ye[2],Xe}function Q(Xe,Ye,Je,rt){return Xe[0]=Ye,Xe[1]=Je,Xe[2]=rt,Xe}function $(Xe,Ye,Je){return Xe[0]=Ye[0]+Je[0],Xe[1]=Ye[1]+Je[1],Xe[2]=Ye[2]+Je[2],Xe}function W(Xe,Ye,Je){return Xe[0]=Ye[0]-Je[0],Xe[1]=Ye[1]-Je[1],Xe[2]=Ye[2]-Je[2],Xe}function B(Xe,Ye,Je){return Xe[0]=Ye[0]*Je[0],Xe[1]=Ye[1]*Je[1],Xe[2]=Ye[2]*Je[2],Xe}function H(Xe,Ye,Je){return Xe[0]=Ye[0]/Je[0],Xe[1]=Ye[1]/Je[1],Xe[2]=Ye[2]/Je[2],Xe}function te(Xe,Ye){return Xe[0]=Math.floor(Ye[0]),Xe[1]=Math.floor(Ye[1]),Xe[2]=Math.floor(Ye[2]),Xe}function ae(Xe,Ye){return Xe[0]=Math.abs(Ye[0]),Xe[1]=Math.abs(Ye[1]),Xe[2]=Math.abs(Ye[2]),Xe}function oe(Xe,Ye){return Xe[0]=Math.sign(Ye[0]),Xe[1]=Math.sign(Ye[1]),Xe[2]=Math.sign(Ye[2]),Xe}function le(Xe,Ye,Je){return Xe[0]=Math.min(Ye[0],Je[0]),Xe[1]=Math.min(Ye[1],Je[1]),Xe[2]=Math.min(Ye[2],Je[2]),Xe}function re(Xe,Ye,Je){return Xe[0]=Ye[0]*Je,Xe[1]=Ye[1]*Je,Xe[2]=Ye[2]*Je,Xe}function j(Xe,Ye,Je,rt){return Xe[0]=Ye[0]+Je[0]*rt,Xe[1]=Ye[1]+Je[1]*rt,Xe[2]=Ye[2]+Je[2]*rt,Xe}function Y(Xe,Ye){const Je=Ye[0]-Xe[0],rt=Ye[1]-Xe[1],tt=Ye[2]-Xe[2];return Math.sqrt(Je*Je+rt*rt+tt*tt)}function ee(Xe,Ye){const Je=Ye[0]-Xe[0],rt=Ye[1]-Xe[1],tt=Ye[2]-Xe[2];return Je*Je+rt*rt+tt*tt}function ie(Xe){const Ye=Xe[0],Je=Xe[1],rt=Xe[2];return Ye*Ye+Je*Je+rt*rt}function J(Xe,Ye){return Xe[0]=-Ye[0],Xe[1]=-Ye[1],Xe[2]=-Ye[2],Xe}function ue(Xe,Ye){const Je=Ye[0],rt=Ye[1],tt=Ye[2];let et=Je*Je+rt*rt+tt*tt;return et>0&&(et=1/Math.sqrt(et),Xe[0]=Ye[0]*et,Xe[1]=Ye[1]*et,Xe[2]=Ye[2]*et),Xe}function pe(Xe,Ye){return Xe[0]*Ye[0]+Xe[1]*Ye[1]+Xe[2]*Ye[2]}function he(Xe,Ye,Je){const rt=Ye[0],tt=Ye[1],et=Ye[2],qe=Je[0],ot=Je[1],ut=Je[2];return Xe[0]=tt*ut-et*ot,Xe[1]=et*qe-rt*ut,Xe[2]=rt*ot-tt*qe,Xe}function me(Xe,Ye,Je,rt){const tt=Ye[0],et=Ye[1],qe=Ye[2];return Xe[0]=tt+rt*(Je[0]-tt),Xe[1]=et+rt*(Je[1]-et),Xe[2]=qe+rt*(Je[2]-qe),Xe}function De(Xe,Ye,Je){const rt=Ye[0],tt=Ye[1],et=Ye[2];return Xe[0]=Je[0]*rt+Je[4]*tt+Je[8]*et+Je[12],Xe[1]=Je[1]*rt+Je[5]*tt+Je[9]*et+Je[13],Xe[2]=Je[2]*rt+Je[6]*tt+Je[10]*et+Je[14],Xe}function be(Xe,Ye,Je){const rt=Ye[0],tt=Ye[1],et=Ye[2];return Xe[0]=rt*Je[0]+tt*Je[3]+et*Je[6],Xe[1]=rt*Je[1]+tt*Je[4]+et*Je[7],Xe[2]=rt*Je[2]+tt*Je[5]+et*Je[8],Xe}function Se(Xe,Ye,Je){const rt=Je[0],tt=Je[1],et=Je[2],ot=Ye[0],ut=Ye[1],_t=Ye[2];let Ct=tt*_t-et*ut,vt=et*ot-rt*_t,Lt=rt*ut-tt*ot,jt=tt*Lt-et*vt,$t=et*Ct-rt*Lt,Wt=rt*vt-tt*Ct;const pr=2*Je[3];return Ct*=pr,vt*=pr,Lt*=pr,jt*=2,$t*=2,Wt*=2,Xe[0]=ot+Ct+jt,Xe[1]=ut+vt+$t,Xe[2]=_t+Lt+Wt,Xe}function ze(Xe,Ye){Z(Ke,Xe),Z(We,Ye),ue(Ke,Ke),ue(We,We);const Je=pe(Ke,We);return Je>1?0:Je<-1?Math.PI:Math.acos(Je)}const Ke=(0,D.c)(),We=(0,D.c)();function Be(Xe,Ye){return Xe[0]===Ye[0]&&Xe[1]===Ye[1]&&Xe[2]===Ye[2]}function Fe(Xe,Ye){if(Xe===Ye)return!0;const Je=Xe[0],rt=Xe[1],tt=Xe[2],et=Ye[0],qe=Ye[1],ot=Ye[2],ut=(0,R.g)();return Math.abs(Je-et)<=ut*Math.max(1,Math.abs(Je),Math.abs(et))&&Math.abs(rt-qe)<=ut*Math.max(1,Math.abs(rt),Math.abs(qe))&&Math.abs(tt-ot)<=ut*Math.max(1,Math.abs(tt),Math.abs(ot))}function je(Xe,Ye,Je){const rt=Je[0]-Ye[0],tt=Je[1]-Ye[1],et=Je[2]-Ye[2];let qe=rt*rt+tt*tt+et*et;return qe>0?(qe=1/Math.sqrt(qe),Xe[0]=rt*qe,Xe[1]=tt*qe,Xe[2]=et*qe,Xe):(Xe[0]=0,Xe[1]=0,Xe[2]=0,Xe)}const Re=W,Ge=Y,Pe=ee,Le=G,Me=ie,Ne=Object.freeze(Object.defineProperty({__proto__:null,length:G,copy:Z,set:Q,add:$,subtract:W,multiply:B,divide:H,ceil:function X(Xe,Ye){return Xe[0]=Math.ceil(Ye[0]),Xe[1]=Math.ceil(Ye[1]),Xe[2]=Math.ceil(Ye[2]),Xe},floor:te,abs:ae,sign:oe,min:le,max:function de(Xe,Ye,Je){return Xe[0]=Math.max(Ye[0],Je[0]),Xe[1]=Math.max(Ye[1],Je[1]),Xe[2]=Math.max(Ye[2],Je[2]),Xe},round:function se(Xe,Ye){return Xe[0]=Math.round(Ye[0]),Xe[1]=Math.round(Ye[1]),Xe[2]=Math.round(Ye[2]),Xe},scale:re,scaleAndAdd:j,distance:Y,squaredDistance:ee,squaredLength:ie,negate:J,inverse:function ce(Xe,Ye){return Xe[0]=1/Ye[0],Xe[1]=1/Ye[1],Xe[2]=1/Ye[2],Xe},normalize:ue,dot:pe,cross:he,lerp:me,hermite:function ge(Xe,Ye,Je,rt,tt,et){const qe=et*et,ot=qe*(2*et-3)+1,ut=qe*(et-2)+et,_t=qe*(et-1),Ct=qe*(3-2*et);return Xe[0]=Ye[0]*ot+Je[0]*ut+rt[0]*_t+tt[0]*Ct,Xe[1]=Ye[1]*ot+Je[1]*ut+rt[1]*_t+tt[1]*Ct,Xe[2]=Ye[2]*ot+Je[2]*ut+rt[2]*_t+tt[2]*Ct,Xe},bezier:function _e(Xe,Ye,Je,rt,tt,et){const qe=1-et,ot=qe*qe,ut=et*et,_t=ot*qe,Ct=3*et*ot,vt=3*ut*qe,Lt=ut*et;return Xe[0]=Ye[0]*_t+Je[0]*Ct+rt[0]*vt+tt[0]*Lt,Xe[1]=Ye[1]*_t+Je[1]*Ct+rt[1]*vt+tt[1]*Lt,Xe[2]=Ye[2]*_t+Je[2]*Ct+rt[2]*vt+tt[2]*Lt,Xe},random:function Ee(Xe,Ye){Ye=Ye||1;const Je=R.R,rt=2*Je()*Math.PI,tt=2*Je()-1,et=Math.sqrt(1-tt*tt)*Ye;return Xe[0]=Math.cos(rt)*et,Xe[1]=Math.sin(rt)*et,Xe[2]=tt*Ye,Xe},transformMat4:De,transformMat3:be,transformQuat:Se,rotateX:function ye(Xe,Ye,Je,rt){const tt=[],et=[];return tt[0]=Ye[0]-Je[0],tt[1]=Ye[1]-Je[1],tt[2]=Ye[2]-Je[2],et[0]=tt[0],et[1]=tt[1]*Math.cos(rt)-tt[2]*Math.sin(rt),et[2]=tt[1]*Math.sin(rt)+tt[2]*Math.cos(rt),Xe[0]=et[0]+Je[0],Xe[1]=et[1]+Je[1],Xe[2]=et[2]+Je[2],Xe},rotateY:function ve(Xe,Ye,Je,rt){const tt=[],et=[];return tt[0]=Ye[0]-Je[0],tt[1]=Ye[1]-Je[1],tt[2]=Ye[2]-Je[2],et[0]=tt[2]*Math.sin(rt)+tt[0]*Math.cos(rt),et[1]=tt[1],et[2]=tt[2]*Math.cos(rt)-tt[0]*Math.sin(rt),Xe[0]=et[0]+Je[0],Xe[1]=et[1]+Je[1],Xe[2]=et[2]+Je[2],Xe},rotateZ:function xe(Xe,Ye,Je,rt){const tt=[],et=[];return tt[0]=Ye[0]-Je[0],tt[1]=Ye[1]-Je[1],tt[2]=Ye[2]-Je[2],et[0]=tt[0]*Math.cos(rt)-tt[1]*Math.sin(rt),et[1]=tt[0]*Math.sin(rt)+tt[1]*Math.cos(rt),et[2]=tt[2],Xe[0]=et[0]+Je[0],Xe[1]=et[1]+Je[1],Xe[2]=et[2]+Je[2],Xe},angle:ze,str:function Ce(Xe){return"vec3("+Xe[0]+", "+Xe[1]+", "+Xe[2]+")"},exactEquals:Be,equals:Fe,direction:je,sub:Re,mul:B,div:H,dist:Ge,sqrDist:Pe,len:Le,sqrLen:Me},Symbol.toStringTag,{value:"Module"}))},79800:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>G,b:()=>$,n:()=>Q,s:()=>Z,t:()=>R});var D=v(96286);function R(B,H,X){if(B.count!==H.count)return void D.c.error("source and destination buffers need to have the same number of elements");const te=B.count,ae=X[0],oe=X[1],le=X[2],de=X[4],se=X[5],re=X[6],j=X[8],Y=X[9],ee=X[10],ie=X[12],J=X[13],ce=X[14],ue=B.typedBuffer,pe=B.typedBufferStride,he=H.typedBuffer,me=H.typedBufferStride;for(let ge=0;ge0){const J=1/Math.sqrt(ie);te[se]=J*j,te[se+1]=J*Y,te[se+2]=J*ee}}}function $(B,H,X){const te=Math.min(B.count,H.count),ae=B.typedBuffer,oe=B.typedBufferStride,le=H.typedBuffer,de=H.typedBufferStride;for(let se=0;se>X,ae[re+1]=le[j+1]>>X,ae[re+2]=le[j+2]>>X}}Object.freeze(Object.defineProperty({__proto__:null,transformMat4:R,transformMat3:G,scale:Z,normalize:Q,shiftRight:$},Symbol.toStringTag,{value:"Module"}))},9554:(nt,Ae,v)=>{"use strict";function D(Z,Q,$){const W=Z.typedBuffer,B=Z.typedBufferStride,H=Q.typedBuffer,X=Q.typedBufferStride,te=$?$.count:Q.count;let ae=($&&$.dstIndex?$.dstIndex:0)*B,oe=($&&$.srcIndex?$.srcIndex:0)*X;for(let le=0;leD,f:()=>R}),Object.freeze(Object.defineProperty({__proto__:null,copy:D,fill:R},Symbol.toStringTag,{value:"Module"}))},14658:(nt,Ae,v)=>{"use strict";function D(){return new Float32Array(3)}function R(se){const re=new Float32Array(3);return re[0]=se[0],re[1]=se[1],re[2]=se[2],re}function G(se,re,j){const Y=new Float32Array(3);return Y[0]=se,Y[1]=re,Y[2]=j,Y}function Z(se,re){return new Float32Array(se,re,3)}function Q(){return D()}function $(){return G(1,1,1)}function W(){return G(1,0,0)}function B(){return G(0,1,0)}function H(){return G(0,0,1)}v.d(Ae,{a:()=>Z,b:()=>R,c:()=>D,f:()=>G,z:()=>Q});const X=Q(),te=$(),ae=W(),oe=B(),le=H();Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:G,createView:Z,zeros:Q,ones:$,unitX:W,unitY:B,unitZ:H,ZEROS:X,ONES:te,UNIT_X:ae,UNIT_Y:oe,UNIT_Z:le},Symbol.toStringTag,{value:"Module"}))},28093:(nt,Ae,v)=>{"use strict";function D(){return[0,0,0]}function R(re){return[re[0],re[1],re[2]]}function G(re,j,Y){return[re,j,Y]}function Z(re){const j=[0,0,0],Y=Math.min(3,re.length);for(let ee=0;eeae,U:()=>de,Z:()=>te,a:()=>R,b:()=>Q,c:()=>D,d:()=>Z,f:()=>G,u:()=>X});const te=[0,0,0],ae=W(),oe=B(),le=H(),de=X();Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:G,fromArray:Z,createView:Q,zeros:function $(){return[0,0,0]},ones:W,unitX:B,unitY:H,unitZ:X,ZEROS:te,ONES:ae,UNIT_X:oe,UNIT_Y:le,UNIT_Z:de},Symbol.toStringTag,{value:"Module"}))},993:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>Z,b:()=>oe,c:()=>R,d:()=>J,e:()=>re,f:()=>j,g:()=>ge,h:()=>_e,i:()=>se,l:()=>ce,n:()=>ie,s:()=>G,t:()=>pe,v:()=>ze});var D=v(39863);function R(Ke,We){return Ke[0]=We[0],Ke[1]=We[1],Ke[2]=We[2],Ke[3]=We[3],Ke}function G(Ke,We,Ce,Be,Fe){return Ke[0]=We,Ke[1]=Ce,Ke[2]=Be,Ke[3]=Fe,Ke}function Z(Ke,We,Ce){return Ke[0]=We[0]+Ce[0],Ke[1]=We[1]+Ce[1],Ke[2]=We[2]+Ce[2],Ke[3]=We[3]+Ce[3],Ke}function Q(Ke,We,Ce){return Ke[0]=We[0]-Ce[0],Ke[1]=We[1]-Ce[1],Ke[2]=We[2]-Ce[2],Ke[3]=We[3]-Ce[3],Ke}function $(Ke,We,Ce){return Ke[0]=We[0]*Ce[0],Ke[1]=We[1]*Ce[1],Ke[2]=We[2]*Ce[2],Ke[3]=We[3]*Ce[3],Ke}function W(Ke,We,Ce){return Ke[0]=We[0]/Ce[0],Ke[1]=We[1]/Ce[1],Ke[2]=We[2]/Ce[2],Ke[3]=We[3]/Ce[3],Ke}function oe(Ke,We,Ce){return Ke[0]=We[0]*Ce,Ke[1]=We[1]*Ce,Ke[2]=We[2]*Ce,Ke[3]=We[3]*Ce,Ke}function de(Ke,We){const Ce=We[0]-Ke[0],Be=We[1]-Ke[1],Fe=We[2]-Ke[2],je=We[3]-Ke[3];return Math.sqrt(Ce*Ce+Be*Be+Fe*Fe+je*je)}function se(Ke,We){const Ce=We[0]-Ke[0],Be=We[1]-Ke[1],Fe=We[2]-Ke[2],je=We[3]-Ke[3];return Ce*Ce+Be*Be+Fe*Fe+je*je}function re(Ke){const We=Ke[0],Ce=Ke[1],Be=Ke[2],Fe=Ke[3];return Math.sqrt(We*We+Ce*Ce+Be*Be+Fe*Fe)}function j(Ke){const We=Ke[0],Ce=Ke[1],Be=Ke[2],Fe=Ke[3];return We*We+Ce*Ce+Be*Be+Fe*Fe}function ie(Ke,We){const Ce=We[0],Be=We[1],Fe=We[2],je=We[3];let Re=Ce*Ce+Be*Be+Fe*Fe+je*je;return Re>0&&(Re=1/Math.sqrt(Re),Ke[0]=Ce*Re,Ke[1]=Be*Re,Ke[2]=Fe*Re,Ke[3]=je*Re),Ke}function J(Ke,We){return Ke[0]*We[0]+Ke[1]*We[1]+Ke[2]*We[2]+Ke[3]*We[3]}function ce(Ke,We,Ce,Be){const Fe=We[0],je=We[1],Re=We[2],He=We[3];return Ke[0]=Fe+Be*(Ce[0]-Fe),Ke[1]=je+Be*(Ce[1]-je),Ke[2]=Re+Be*(Ce[2]-Re),Ke[3]=He+Be*(Ce[3]-He),Ke}function pe(Ke,We,Ce){const Be=We[0],Fe=We[1],je=We[2],Re=We[3];return Ke[0]=Ce[0]*Be+Ce[4]*Fe+Ce[8]*je+Ce[12]*Re,Ke[1]=Ce[1]*Be+Ce[5]*Fe+Ce[9]*je+Ce[13]*Re,Ke[2]=Ce[2]*Be+Ce[6]*Fe+Ce[10]*je+Ce[14]*Re,Ke[3]=Ce[3]*Be+Ce[7]*Fe+Ce[11]*je+Ce[15]*Re,Ke}function ge(Ke,We){return Ke[0]===We[0]&&Ke[1]===We[1]&&Ke[2]===We[2]&&Ke[3]===We[3]}function _e(Ke,We){const Ce=Ke[0],Be=Ke[1],Fe=Ke[2],je=Ke[3],Re=We[0],He=We[1],Ie=We[2],Ge=We[3],Pe=(0,D.g)();return Math.abs(Ce-Re)<=Pe*Math.max(1,Math.abs(Ce),Math.abs(Re))&&Math.abs(Be-He)<=Pe*Math.max(1,Math.abs(Be),Math.abs(He))&&Math.abs(Fe-Ie)<=Pe*Math.max(1,Math.abs(Fe),Math.abs(Ie))&&Math.abs(je-Ge)<=Pe*Math.max(1,Math.abs(je),Math.abs(Ge))}const ze=Object.freeze(Object.defineProperty({__proto__:null,copy:R,set:G,add:Z,subtract:Q,multiply:$,divide:W,ceil:function B(Ke,We){return Ke[0]=Math.ceil(We[0]),Ke[1]=Math.ceil(We[1]),Ke[2]=Math.ceil(We[2]),Ke[3]=Math.ceil(We[3]),Ke},floor:function H(Ke,We){return Ke[0]=Math.floor(We[0]),Ke[1]=Math.floor(We[1]),Ke[2]=Math.floor(We[2]),Ke[3]=Math.floor(We[3]),Ke},min:function X(Ke,We,Ce){return Ke[0]=Math.min(We[0],Ce[0]),Ke[1]=Math.min(We[1],Ce[1]),Ke[2]=Math.min(We[2],Ce[2]),Ke[3]=Math.min(We[3],Ce[3]),Ke},max:function te(Ke,We,Ce){return Ke[0]=Math.max(We[0],Ce[0]),Ke[1]=Math.max(We[1],Ce[1]),Ke[2]=Math.max(We[2],Ce[2]),Ke[3]=Math.max(We[3],Ce[3]),Ke},round:function ae(Ke,We){return Ke[0]=Math.round(We[0]),Ke[1]=Math.round(We[1]),Ke[2]=Math.round(We[2]),Ke[3]=Math.round(We[3]),Ke},scale:oe,scaleAndAdd:function le(Ke,We,Ce,Be){return Ke[0]=We[0]+Ce[0]*Be,Ke[1]=We[1]+Ce[1]*Be,Ke[2]=We[2]+Ce[2]*Be,Ke[3]=We[3]+Ce[3]*Be,Ke},distance:de,squaredDistance:se,length:re,squaredLength:j,negate:function Y(Ke,We){return Ke[0]=-We[0],Ke[1]=-We[1],Ke[2]=-We[2],Ke[3]=-We[3],Ke},inverse:function ee(Ke,We){return Ke[0]=1/We[0],Ke[1]=1/We[1],Ke[2]=1/We[2],Ke[3]=1/We[3],Ke},normalize:ie,dot:J,lerp:ce,random:function ue(Ke,We){const Ce=D.R;let Be,Fe,je,Re,He,Ie;We=We||1;do{Be=2*Ce()-1,Fe=2*Ce()-1,He=Be*Be+Fe*Fe}while(He>=1);do{je=2*Ce()-1,Re=2*Ce()-1,Ie=je*je+Re*Re}while(Ie>=1);const Ge=Math.sqrt((1-He)/Ie);return Ke[0]=We*Be,Ke[1]=We*Fe,Ke[2]=We*je*Ge,Ke[3]=We*Re*Ge,Ke},transformMat4:pe,transformQuat:function he(Ke,We,Ce){const Be=We[0],Fe=We[1],je=We[2],Re=Ce[0],He=Ce[1],Ie=Ce[2],Ge=Ce[3],Pe=Ge*Be+He*je-Ie*Fe,Le=Ge*Fe+Ie*Be-Re*je,Me=Ge*je+Re*Fe-He*Be,Ne=-Re*Be-He*Fe-Ie*je;return Ke[0]=Pe*Ge+Ne*-Re+Le*-Ie-Me*-He,Ke[1]=Le*Ge+Ne*-He+Me*-Re-Pe*-Ie,Ke[2]=Me*Ge+Ne*-Ie+Pe*-He-Le*-Re,Ke[3]=We[3],Ke},str:function me(Ke){return"vec4("+Ke[0]+", "+Ke[1]+", "+Ke[2]+", "+Ke[3]+")"},exactEquals:ge,equals:_e,sub:Q,mul:$,div:W,dist:de,sqrDist:se,len:re,sqrLen:j},Symbol.toStringTag,{value:"Module"}))},63657:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>$,n:()=>Z,s:()=>Q,t:()=>G});var D=v(96286);function G(B,H,X){if(B.count!==H.count)return void D.c.error("source and destination buffers need to have the same number of elements");const te=B.count,ae=X[0],oe=X[1],le=X[2],de=X[3],se=X[4],re=X[5],j=X[6],Y=X[7],ee=X[8],ie=B.typedBuffer,J=B.typedBufferStride,ce=H.typedBuffer,ue=H.typedBufferStride;for(let pe=0;pe0){const J=1/Math.sqrt(ie);te[se]=J*j,te[se+1]=J*Y,te[se+2]=J*ee}}}function Q(B,H,X){const te=Math.min(B.count,H.count),ae=B.typedBuffer,oe=B.typedBufferStride,le=H.typedBuffer,de=H.typedBufferStride;for(let se=0;se>X,ae[re+1]=le[j+1]>>X,ae[re+2]=le[j+2]>>X,ae[re+3]=le[j+3]>>X}}Object.freeze(Object.defineProperty({__proto__:null,transformMat4:function R(B,H,X){if(B.count!==H.count)return void D.c.error("source and destination buffers need to have the same number of elements");const te=B.count,ae=X[0],oe=X[1],le=X[2],de=X[3],se=X[4],re=X[5],j=X[6],Y=X[7],ee=X[8],ie=X[9],J=X[10],ce=X[11],ue=X[12],pe=X[13],he=X[14],me=X[15],ge=B.typedBuffer,_e=B.typedBufferStride,Ee=H.typedBuffer,De=H.typedBufferStride;for(let be=0;be{"use strict";function D(Z,Q,$){const W=Z.typedBuffer,B=Z.typedBufferStride,H=Q.typedBuffer,X=Q.typedBufferStride,te=$?$.count:Q.count;let ae=($&&$.dstIndex?$.dstIndex:0)*B,oe=($&&$.srcIndex?$.srcIndex:0)*X;for(let le=0;leD,f:()=>R}),Object.freeze(Object.defineProperty({__proto__:null,copy:D,fill:R},Symbol.toStringTag,{value:"Module"}))},67709:(nt,Ae,v)=>{"use strict";function D(){return new Float32Array(4)}function R(j){const Y=new Float32Array(4);return Y[0]=j[0],Y[1]=j[1],Y[2]=j[2],Y[3]=j[3],Y}function G(j,Y,ee,ie){const J=new Float32Array(4);return J[0]=j,J[1]=Y,J[2]=ee,J[3]=ie,J}function Q(){return D()}function $(){return G(1,1,1,1)}function W(){return G(1,0,0,0)}function B(){return G(0,1,0,0)}function H(){return G(0,0,1,0)}function X(){return G(0,0,0,1)}v.d(Ae,{a:()=>R,c:()=>D,f:()=>G});const te=Q(),ae=$(),oe=W(),le=B(),de=H(),se=X();Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:G,createView:function Z(j,Y){return new Float32Array(j,Y,4)},zeros:Q,ones:$,unitX:W,unitY:B,unitZ:H,unitW:X,ZEROS:te,ONES:ae,UNIT_X:oe,UNIT_Y:le,UNIT_Z:de,UNIT_W:se},Symbol.toStringTag,{value:"Module"}))},4794:(nt,Ae,v)=>{"use strict";function D(){return[0,0,0,0]}function R(Y){return[Y[0],Y[1],Y[2],Y[3]]}function G(Y,ee,ie,J){return[Y,ee,ie,J]}function Z(Y){const ee=[0,0,0,0],ie=Math.min(4,Y.length);for(let J=0;Joe,Z:()=>ae,a:()=>Q,b:()=>Z,c:()=>D,d:()=>R,f:()=>G});const ae=[0,0,0,0],oe=W(),le=B(),de=H(),se=X(),re=te();Object.freeze(Object.defineProperty({__proto__:null,create:D,clone:R,fromValues:G,fromArray:Z,createView:Q,zeros:function $(){return[0,0,0,0]},ones:W,unitX:B,unitY:H,unitZ:X,unitW:te,ZEROS:ae,ONES:oe,UNIT_X:le,UNIT_Y:de,UNIT_Z:se,UNIT_W:re},Symbol.toStringTag,{value:"Module"}))},20414:(nt,Ae,v)=>{"use strict";v.d(Ae,{B7:()=>$,St:()=>R,VL:()=>Z,h$:()=>G,rW:()=>W});const D={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function R(B){return D[B]||D[B.toLowerCase()]}function G(B){return D[B]??D[B.toLowerCase()]}function Z(B){return[...G(B)]}function Q(B,H,X){X<0&&++X,X>1&&--X;const te=6*X;return te<1?B+(H-B)*te:2*X<1?H:3*X<2?B+(H-B)*(2/3-X)*6:B}function $(B,H,X,te=1){const ae=(B%360+360)%360/360,oe=X<=.5?X*(H+1):X+H-X*H,le=2*X-oe;return[Math.round(255*Q(le,oe,ae+1/3)),Math.round(255*Q(le,oe,ae)),Math.round(255*Q(le,oe,ae-1/3)),te]}function W(B){const H=B.length>5,X=H?8:4,te=(1<>=X,de[3]=ae*se/255),se=le&te,le>>=X,de[2]=ae*se,se=le&te,le>>=X,de[1]=ae*se,se=le&te,le>>=X,de[0]=ae*se,de}},59318:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>G}),v(8314);var R=v(94113);const G={analysisTheme:{accentColor:[255,128,0],textColor:"white"},apiKey:void 0,applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,R.RH)(G,globalThis.esriConfig,!0),delete G.has),G.assetsPath||(G.assetsPath=`https://js.arcgis.com/${"4.25.5".slice(0,-2)}/@arcgis/core/assets`,G.defaultAssetsPath=G.assetsPath)},14517:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>be});var D=v(72392),R=v(62208),G=v(34595),Z=v(34117),$=(v(8314),v(58817)),W=v(63290),B=v(27899),H=v(44648),X=v(31283),te=v(36082),ae=v(2345),oe=v(12196);class le{constructor(ye,ve,xe){this.properties=ye,this.propertyName=ve,this.metadata=xe,this._observers=null,this._accessed=null,this._handles=null,this.flags=ae.v.Dirty|(xe.nonNullable?ae.v.NonNullable:0)|(xe.hasOwnProperty("value")?ae.v.HasDefaultValue:0)|(void 0===xe.get?ae.v.DepTrackingInitialized:0)|(void 0===xe.dependsOn?ae.v.AutoTracked:0)}destroy(){if(this.flags&ae.v.Dirty&&this._observers){const ye=this._observers.slice();for(const ve of ye)ve.onCommitted()}this._accessed=null,this._observers=null,this._clearObservationHandles()}getComputed(){(0,te.it)(this);const ye=this.properties.store,ve=this.propertyName,xe=this.flags,ze=ye.get(ve);if(xe&ae.v.Computing||~xe&ae.v.Dirty&&ye.has(ve))return ze;this.flags|=ae.v.Computing;const Ke=this.properties.host;let We;xe&ae.v.AutoTracked?We=(0,te.LJ)(this,this.metadata.get,Ke):((0,te.GF)(Ke,this),We=this.metadata.get.call(Ke)),ye.set(ve,We,X.s3.COMPUTED);const Ce=ye.get(ve);return Ce===ze?this.flags&=~ae.v.Dirty:(0,te.gb)(this.commit,this),this.flags&=~ae.v.Computing,Ce}onObservableAccessed(ye){ye!==this&&(null===this._accessed&&(this._accessed=[]),this._accessed.includes(ye)||this._accessed.push(ye))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=ae.v.DepTrackingInitialized;const ye=this._accessed;if(null===ye)return;let ve=this._handles;null===ve&&(ve=this._handles=[]);for(let xe=0;xe{ye&&ye.has(ze)||ve.set(ze,(0,$.d9)(xe))}),ve}get(ye){return this._values.get(ye)}originOf(){return X.s3.USER}keys(){return[...this._values.keys()]}set(ye,ve){this._values.set(ye,ve)}delete(ye){this._values.delete(ye)}has(ye){return this._values.has(ye)}forEach(ye){this._values.forEach(ye)}}var se=v(52323);function re(Se,ye,ve){return void 0!==Se}function j(Se,ye,ve,xe){return!(void 0===Se||null==ve&&Se.flags&ae.v.NonNullable)}W.Z.getLogger("esri.core.accessorSupport.Properties");class ee{constructor(ye){this.host=ye,this.properties=new Map,this.ctorArgs=null,this.destroyed=!1,this.lifecycle=H.F.INITIALIZING,this.store=new de,this._origin=X.s3.USER;const ve=this.host.constructor.__accessorMetadata__,xe=ve.properties;for(const ze in xe){const Ke=new le(this,ze,xe[ze]);this.properties.set(ze,Ke)}this.metadatas=xe,this._autoDestroy=ve.autoDestroy}initialize(){this.lifecycle=H.F.CONSTRUCTING}constructed(){this.lifecycle=H.F.CONSTRUCTED}destroy(){if(this.destroyed=!0,this._autoDestroy)for(const[ye,ve]of this.properties){const xe=this.internalGet(ye);xe&&(Se=xe)&&"function"==typeof Se.destroy&&(xe.destroy(),~ve.flags&ae.v.NonNullable&&this._internalSet(ve,null)),ve.destroy()}else for(const[ye,ve]of this.properties)ve.destroy();var Se}get initialized(){return this.lifecycle!==H.F.INITIALIZING}get(ye){const ve=this.properties.get(ye);if(ve.metadata.get)return ve.getComputed();(0,te.it)(ve);const xe=this.store;return xe.has(ye)?xe.get(ye):ve.metadata.value}originOf(ye){const ve=this.store.originOf(ye);if(void 0===ve){const xe=this.properties.get(ye);if(void 0!==xe&&xe.flags&ae.v.HasDefaultValue)return"defaults"}return(0,X.x3)(ve)}has(ye){return!!this.properties.has(ye)&&this.store.has(ye)}keys(){return[...this.properties.keys()]}internalGet(ye){const ve=this.properties.get(ye);if(re(ve))return this.store.has(ye)?this.store.get(ye):ve.metadata.value}internalSet(ye,ve){const xe=this.properties.get(ye);re(xe)&&this._internalSet(xe,ve)}getDependsInfo(ye,ve,xe){const ze=this.properties.get(ve);if(!re(ze))return"";const Ke=new Set,We=(0,te.LJ)({onObservableAccessed:Be=>Ke.add(Be),onTrackingEnd:()=>{}},()=>ze.metadata.get?.call(ye));let Ce=`${xe}${ye.declaredClass.split(".").pop()}.${ve}: ${We}\n`;if(0===Ke.size)return Ce;xe+=" ";for(const Be of Ke){if(!(Be instanceof le))continue;const Fe=Be.properties.host,je=Be.propertyName,Re=(0,se.vw)(Fe);Ce+=Re?Re.getDependsInfo(Fe,je,xe):`${xe}${je}: undefined\n`}return Ce}setAtOrigin(ye,ve,xe){const ze=this.properties.get(ye);if(re(ze))return this._setAtOrigin(ze,ve,xe)}isOverridden(ye){const ve=this.properties.get(ye);return void 0!==ve&&!!(ve.flags&ae.v.Overriden)}clearOverride(ye){const ve=this.properties.get(ye);void 0!==ve&&ve.flags&ae.v.Overriden&&(ve.flags&=~ae.v.Overriden,ve.notifyChange())}override(ye,ve){const xe=this.properties.get(ye);if(!j(xe,0,ve))return;const ze=xe.metadata.cast;if(ze){const Ke=this._cast(ze,ve),{valid:We,value:Ce}=Ke;if(J.release(Ke),!We)return;ve=Ce}xe.flags|=ae.v.Overriden,this._internalSet(xe,ve)}set(ye,ve){const xe=this.properties.get(ye);if(!j(xe,0,ve))return;const ze=xe.metadata.cast;if(ze){const We=this._cast(ze,ve),{valid:Ce,value:Be}=We;if(J.release(We),!Ce)return;ve=Be}const Ke=xe.metadata.set;Ke?Ke.call(this.host,ve):this._internalSet(xe,ve)}setDefaultOrigin(ye){this._origin=(0,X.M9)(ye)}getDefaultOrigin(){return(0,X.x3)(this._origin)}notifyChange(ye){const ve=this.properties.get(ye);void 0!==ve&&ve.notifyChange()}invalidate(ye){const ve=this.properties.get(ye);void 0!==ve&&ve.invalidate()}commit(ye){const ve=this.properties.get(ye);void 0!==ve&&ve.commit()}_internalSet(ye,ve){this._setAtOrigin(ye,ve,this.lifecycle!==H.F.INITIALIZING?this._origin:X.s3.DEFAULTS)}_setAtOrigin(ye,ve,xe){const ze=this.store,Ke=ye.propertyName;ze.has(Ke,xe)&&(0,$.fS)(ve,ze.get(Ke))&&~ye.flags&ae.v.Overriden&&xe===ze.originOf(Ke)||(ye.invalidate(),ze.set(Ke,ve,xe),ye.commit(),(0,te.mS)(this.host,ye))}_cast(ye,ve){const xe=J.acquire();return xe.valid=!0,xe.value=ve,ye&&(xe.value=ye.call(this.host,ve,xe)),xe}}const J=new B.Z(class ie{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var me,ge,ce=v(82255),ue=v(30755),pe=v(77712),he=v(76898);function _e(Se){if(null==Se)return{value:Se};if(Array.isArray(Se))return{type:[Se[0]],value:null};switch(typeof Se){case"object":return Se.constructor?.__accessorMetadata__||Se instanceof Date?{type:Se.constructor,value:Se}:Se;case"boolean":return{type:Boolean,value:Se};case"string":return{type:String,value:Se};case"number":return{type:Number,value:Se};case"function":return{type:Se,value:null};default:return}}const Ee=Symbol("Accessor-Handles"),De=Symbol("Accessor-Initialized");class be{constructor(...ye){if(this[me]=null,this[ge]=!1,this.constructor===be)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");Object.defineProperty(this,"__accessor__",{enumerable:!1,value:new ee(this)}),ye.length>0&&this.normalizeCtorArgs&&(this.__accessor__.ctorArgs=this.normalizeCtorArgs.apply(this,ye))}static createSubclass(ye={}){if(Array.isArray(ye))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:ve,declaredClass:xe,constructor:ze}=ye;delete ye.declaredClass,delete ye.properties,delete ye.constructor;const Ke=this;class We extends Ke{constructor(...Be){super(...Be),this.inherited=null,ze&&ze.apply(this,Be)}}(0,Z.JT)(We.prototype);for(const Ce in ye){const Be=ye[Ce];We.prototype[Ce]="function"==typeof Be?function(...Fe){const je=this.inherited;let Re;this.inherited=function(...He){if(Ke.prototype[Ce])return Ke.prototype[Ce].apply(this,He)};try{Re=Be.apply(this,Fe)}catch(He){throw this.inherited=je,He}return this.inherited=je,Re}:ye[Ce]}for(const Ce in ve){const Be=_e(ve[Ce]);(0,pe.Cb)(Be)(We.prototype,Ce)}return(0,he.j)(xe)(We)}postscript(ye){const ve=this.__accessor__,xe=ve.ctorArgs||ye;ve.initialize(),xe&&(this.set(xe),ve.ctorArgs=null),ve.constructed(),this.initialize(),this[De]=!0}initialize(){}destroy(){this.destroyed||(this[Ee]=(0,R.SC)(this[Ee]),(0,ue.BT)(this),this.__accessor__.destroy())}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[De]}get destroyed(){return this.__accessor__&&this.__accessor__.destroyed||!1}commitProperty(ye){this.get(ye)}get(ye){return(0,G.U2)(this,ye)}hasOwnProperty(ye){return this.__accessor__?this.__accessor__.has(ye):Object.prototype.hasOwnProperty.call(this,ye)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(ye,ve){return(0,ce.t)(this,ye,ve),this}watch(ye,ve,xe){return(0,ue.YP)(this,ye,ve,xe)}own(ye){this.addHandles(ye)}addHandles(ye,ve){let xe=this[Ee];(0,R.Wi)(xe)&&(xe=this[Ee]=new D.Z),xe.add(ye,ve)}removeHandles(ye){const ve=this[Ee];(0,R.Wi)(ve)||ve.remove(ye)}hasHandles(ye){const ve=this[Ee];return!!(0,R.pC)(ve)&&ve.has(ye)}_override(ye,ve){void 0===ve?this.__accessor__.clearOverride(ye):this.__accessor__.override(ye,ve)}_clearOverride(ye){return this.__accessor__.clearOverride(ye)}_overrideIfSome(ye,ve){null==ve?this.__accessor__.clearOverride(ye):this.__accessor__.override(ye,ve)}_isOverridden(ye){return this.__accessor__.isOverridden(ye)}notifyChange(ye){this.__accessor__.notifyChange(ye)}_get(ye){return this.__accessor__.internalGet(ye)}_set(ye,ve){return this.__accessor__.internalSet(ye,ve),this}}me=Ee,ge=De},35575:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>G});var D=v(27899);function R(Q){Q.length=0}class G{constructor($=50,W=50){this._pool=new D.Z(Array,void 0,R,W,$)}acquire(){return this._pool.acquire()}release($){this._pool.release($)}prune(){this._pool.prune(0)}static acquire(){return Z.acquire()}static release($){return Z.release($)}static prune(){Z.prune()}}const Z=new G(100)},79608:(nt,Ae,v)=>{"use strict";v.d(Ae,{J:()=>X,j:()=>te});var D=v(17626),R=v(14517),Z=(v(8314),v(58817)),$=(v(63290),v(62208)),W=v(31283),B=v(52323),H=v(76898);const X=ae=>{let oe=class extends ae{clone(){const le=(0,$.s3)((0,B.vw)(this),"unable to clone instance of non-accessor class"),de=le.metadatas,se=le.store,re={},j=new Map;for(const ee in de){const ie=de[ee],J=se?.originOf(ee),ce=ie.clonable;if(ie.readOnly||!1===ce||J!==W.s3.USER&&J!==W.s3.DEFAULTS&&J!==W.s3.WEB_MAP&&J!==W.s3.WEB_SCENE)continue;const ue=this[ee];let pe=null;pe="function"==typeof ce?ce(ue):"reference"===ce?ue:(0,Z.Vo)(ue),null!=ue&&null==pe||(J===W.s3.DEFAULTS?j.set(ee,pe):re[ee]=pe)}const Y=new(Object.getPrototypeOf(this).constructor)(re);if(j.size){const ee=(0,B.vw)(Y)?.store;if(ee)for(const[ie,J]of j)ee.set(ie,J,W.s3.DEFAULTS)}return Y}};return oe=(0,D._)([(0,H.j)("esri.core.Clonable")],oe),oe};let te=class extends(X(R.Z)){};te=(0,D._)([(0,H.j)("esri.core.Clonable")],te)},46160:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>_e});var de,D=v(17626),R=v(35575),G=v(61885),Z=v(58817),Q=v(62208),$=v(27899),W=v(73234),B=v(50618),H=v(77712),X=v(90912),te=v(61039),ae=v(76898),oe=v(36082),le=v(48902);const re=new $.Z(class se{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(De){this.defaultPrevented=!1,this.item=De}},void 0,Ee=>{Ee.item=null,Ee.target=null,Ee.defaultPrevented=!1,Ee.cancellable=!1}),j=()=>{};function Y(Ee){return Ee?Ee instanceof ge?Ee.toArray():Ee.length?Array.prototype.slice.apply(Ee):[]:[]}function ee(Ee){if(Ee&&Ee.length)return Ee[0]}function ie(Ee,De,be,Se){const ye=Math.min(Ee.length-be,De.length-Se);let ve=0;for(;ve{Ee.push(ye),J(Ee,be.call(Se,ye,ve,xe),be,Se)})}const ce=new Set,ue=new Set,pe=new Set,he=new Map;let me=0,ge=de=class extends G.Z.EventedAccessor{constructor(Ee){super(Ee),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new le.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:me++})}static isCollection(Ee){return null!=Ee&&Ee instanceof de}normalizeCtorArgs(Ee){return Ee?Array.isArray(Ee)||Ee instanceof de?{items:Ee}:Ee:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,oe.it)(this._observable),this._items}set items(Ee){this._emitBeforeChanges(W.y.ADD)||(this._splice(0,this.length,Y(Ee)),this._emitAfterChanges(W.y.ADD))}hasEventListener(Ee){return"change"===Ee?this._chgListeners.length>0:this._emitter.hasEventListener(Ee)}on(Ee,De){if("change"===Ee){const be=this._chgListeners,Se={removed:!1,callback:De};return be.push(Se),this._notifications&&this._notifications.push({listeners:be.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=j,Se.removed=!0,be.splice(be.indexOf(Se),1)}}}return this._emitter.on(Ee,De)}once(Ee,De){const be=this.on(Ee,De);return{remove(){be.remove()}}}add(Ee,De){if((0,oe.it)(this._observable),this._emitBeforeChanges(W.y.ADD))return this;const be=this.getNextIndex(De??null);return this._splice(be,0,[Ee]),this._emitAfterChanges(W.y.ADD),this}addMany(Ee,De=this._items.length){if((0,oe.it)(this._observable),!Ee||!Ee.length)return this;if(this._emitBeforeChanges(W.y.ADD))return this;const be=this.getNextIndex(De);return this._splice(be,0,Y(Ee)),this._emitAfterChanges(W.y.ADD),this}at(Ee){if((0,oe.it)(this._observable),(Ee=Math.trunc(Ee)||0)<0&&(Ee+=this.length),!(Ee<0||Ee>=this.length))return this._items[Ee]}removeAll(){if((0,oe.it)(this._observable),!this.length||this._emitBeforeChanges(W.y.REMOVE))return[];const Ee=this._splice(0,this.length)||[];return this._emitAfterChanges(W.y.REMOVE),Ee}clone(){return(0,oe.it)(this._observable),this._createNewInstance({items:this._items.map(Z.d9)})}concat(...Ee){(0,oe.it)(this._observable);const De=Ee.map(Y);return this._createNewInstance({items:this._items.concat(...De)})}drain(Ee,De){if((0,oe.it)(this._observable),!this.length||this._emitBeforeChanges(W.y.REMOVE))return;const be=(0,Q.j0)(this._splice(0,this.length)),Se=be.length;for(let ye=0;yeDe&&(Ee=De),Ee}includes(Ee,De=0){return(0,oe.it)(this._observable),this._items.includes(Ee,De)}indexOf(Ee,De=0){return(0,oe.it)(this._observable),this._items.indexOf(Ee,De)}join(Ee=","){return(0,oe.it)(this._observable),this._items.join(Ee)}lastIndexOf(Ee,De=this.length-1){return(0,oe.it)(this._observable),this._items.lastIndexOf(Ee,De)}map(Ee,De){(0,oe.it)(this._observable);const be=this._items.map(Ee,De);return new de({items:be})}reorder(Ee,De=this.length-1){(0,oe.it)(this._observable);const be=this.indexOf(Ee);if(-1!==be){if(De<0?De=0:De>=this.length&&(De=this.length-1),be!==De){if(this._emitBeforeChanges(W.y.MOVE))return Ee;this._splice(be,1),this._splice(De,0,[Ee]),this._emitAfterChanges(W.y.MOVE)}return Ee}}pop(){if((0,oe.it)(this._observable),!this.length||this._emitBeforeChanges(W.y.REMOVE))return;const Ee=ee(this._splice(this.length-1,1));return this._emitAfterChanges(W.y.REMOVE),Ee}push(...Ee){return(0,oe.it)(this._observable),this._emitBeforeChanges(W.y.ADD)||(this._splice(this.length,0,Ee),this._emitAfterChanges(W.y.ADD)),this.length}reduce(Ee,De){(0,oe.it)(this._observable);const be=this._items;return 2===arguments.length?be.reduce(Ee,De):be.reduce(Ee)}reduceRight(Ee,De){(0,oe.it)(this._observable);const be=this._items;return 2===arguments.length?be.reduceRight(Ee,De):be.reduceRight(Ee)}remove(Ee){return(0,oe.it)(this._observable),this.removeAt(this.indexOf(Ee))}removeAt(Ee){if((0,oe.it)(this._observable),Ee<0||Ee>=this.length||this._emitBeforeChanges(W.y.REMOVE))return;const De=ee(this._splice(Ee,1));return this._emitAfterChanges(W.y.REMOVE),De}removeMany(Ee){if((0,oe.it)(this._observable),!Ee||!Ee.length||this._emitBeforeChanges(W.y.REMOVE))return[];const De=Ee instanceof de?Ee.toArray():Ee,be=this._items,Se=[],ye=De.length;for(let ve=0;ve-1){const Ke=1+ie(De,be,ve+1,ze+1),We=this._splice(ze,Ke);We&&We.length>0&&Se.push.apply(Se,We),ve+=Ke-1}}return this._emitAfterChanges(W.y.REMOVE),Se}reverse(){if((0,oe.it)(this._observable),this._emitBeforeChanges(W.y.MOVE))return this;const Ee=this._splice(0,this.length);return Ee&&(Ee.reverse(),this._splice(0,0,Ee)),this._emitAfterChanges(W.y.MOVE),this}shift(){if((0,oe.it)(this._observable),!this.length||this._emitBeforeChanges(W.y.REMOVE))return;const Ee=ee(this._splice(0,1));return this._emitAfterChanges(W.y.REMOVE),Ee}slice(Ee=0,De=this.length){return(0,oe.it)(this._observable),this._createNewInstance({items:this._items.slice(Ee,De)})}some(Ee,De){return(0,oe.it)(this._observable),this._items.some(Ee,De)}sort(Ee){if((0,oe.it)(this._observable),!this.length||this._emitBeforeChanges(W.y.MOVE))return this;const De=(0,Q.j0)(this._splice(0,this.length));return arguments.length?De.sort(Ee):De.sort(),this._splice(0,0,De),this._emitAfterChanges(W.y.MOVE),this}splice(Ee,De,...be){(0,oe.it)(this._observable);const Se=(De?W.y.REMOVE:0)|(be.length?W.y.ADD:0);if(this._emitBeforeChanges(Se))return[];const ye=this._splice(Ee,De,be)||[];return this._emitAfterChanges(Se),ye}toArray(){return(0,oe.it)(this._observable),this._items.slice()}toJSON(){return(0,oe.it)(this._observable),this.toArray()}toLocaleString(){return(0,oe.it)(this._observable),this._items.toLocaleString()}toString(){return(0,oe.it)(this._observable),this._items.toString()}unshift(...Ee){return(0,oe.it)(this._observable),!Ee.length||this._emitBeforeChanges(W.y.ADD)||(this._splice(0,0,Ee),this._emitAfterChanges(W.y.ADD)),this.length}_createNewInstance(Ee){return new this.constructor(Ee)}_splice(Ee,De,be){const Se=this._items,ye=this.itemType;let ve,xe;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,B.Os)(()=>this._dispatchChange())),De){if(xe=Se.splice(Ee,De),this.hasEventListener("before-remove")){const ze=re.acquire();ze.target=this,ze.cancellable=!0;for(let Ke=0,We=xe.length;Ke{Se.push(Ke)});const ye=R.Z.acquire();ue.forEach(Ke=>{ye.push(Ke)});const ve=this._items,xe=De.items,ze=R.Z.acquire();if(pe.forEach(Ke=>{xe.indexOf(Ke)!==ve.indexOf(Ke)&&ze.push(Ke)}),De.listeners&&(Se.length||ye.length||ze.length)){const Ke={target:this,added:Se,removed:ye,moved:ze},We=De.listeners.length;for(let Ce=0;Ce{if(!Ee)return de;if(he.has(Ee))return he.get(Ee);let De=null;if("function"==typeof Ee)De=Ee.prototype.declaredClass;else if(Ee.base)De=Ee.base.prototype.declaredClass;else for(const Se in Ee.typeMap){const ye=Ee.typeMap[Se].prototype.declaredClass;De?De+=` | ${ye}`:De=ye}let be=class extends de{};return(0,D._)([(0,te.c)({Type:Ee,ensureType:"function"==typeof Ee?(0,X.se)(Ee):(0,X.N7)(Ee)})],be.prototype,"itemType",void 0),be=(0,D._)([(0,ae.j)(`esri.core.Collection<${De}>`)],be),he.set(Ee,be),be},(0,D._)([(0,H.Cb)()],ge.prototype,"length",void 0),(0,D._)([(0,H.Cb)()],ge.prototype,"items",null),ge=de=(0,D._)([(0,ae.j)("esri.core.Collection")],ge);const _e=ge},46882:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var D=v(17626),R=v(46160),G=v(62208),B=(v(8314),v(26584),v(63290),v(30755),v(21352)),H=v(77712),ae=(v(85931),v(90912),v(76898));let oe=class extends R.Z{constructor(de){super(de),this.getCollections=null}initialize(){this.own((0,B.EH)(()=>this._refresh()))}destroy(){this.getCollections=null}_refresh(){const de=(0,G.pC)(this.getCollections)?this.getCollections():null;if((0,G.Wi)(de))return void this.removeAll();let se=0;for(const re of de)(0,G.pC)(re)&&(se=this._processCollection(se,re));this.splice(se,this.length)}_createNewInstance(de){return new R.Z(de)}_processCollection(de,se){if(!se)return de;const re=this.itemFilterFunction?this.itemFilterFunction:j=>!!j;for(const j of se)if(j){if(re(j)){const Y=this.indexOf(j,de);Y>=0?Y!==de&&this.reorder(j,de):this.add(j,de),++de}if(this.getChildrenFunction){const Y=this.getChildrenFunction(j);if(Array.isArray(Y))for(const ee of Y)de=this._processCollection(de,ee);else de=this._processCollection(de,Y)}}return de}};(0,D._)([(0,H.Cb)()],oe.prototype,"getCollections",void 0),(0,D._)([(0,H.Cb)()],oe.prototype,"getChildrenFunction",void 0),(0,D._)([(0,H.Cb)()],oe.prototype,"itemFilterFunction",void 0),oe=(0,D._)([(0,ae.j)("esri.core.CollectionFlattener")],oe);const le=oe},23719:(nt,Ae,v)=>{"use strict";v.d(Ae,{BV:()=>$,Q4:()=>Q,c5:()=>Z,pE:()=>R});var D=v(21286);class R{constructor(B,H){this.min=B,this.max=H,this.range=H-B}ndiff(B,H=0){return Math.ceil((B-H)/this.range)*this.range+H}_normalize(B,H,X,te=0,ae=!1){return(X-=te)H&&(X-=this.ndiff(X-H)),ae&&X===H&&(X=B),X+te}normalize(B,H=0,X=!1){return this._normalize(this.min,this.max,B,H,X)}clamp(B,H=0){return(0,D.uZ)(B-H,this.min,this.max)+H}monotonic(B,H,X){return BB&&X{"use strict";v.d(Ae,{Z:()=>Z});var D=v(58817),R=v(63290),G=v(90888);class Z extends G.Z{constructor($,W,B){if(super($,W,B),!(this instanceof Z))return new Z($,W,B)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,($,W)=>{if(W&&"object"==typeof W&&"function"==typeof W.toJSON)return W;try{return(0,D.d9)(W)}catch{return"[object]"}}))}}catch($){throw R.Z.getLogger("esri.core.Error").error($),$}return{name:this.name,message:this.message,details:this.details}}static fromJSON($){return new Z($.name,$.message,$.details)}}Z.prototype.type="error"},61885:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>$});var D=v(17626),R=v(14517),G=v(54024),Z=v(76898);class Q{constructor(){this._emitter=new Q.EventEmitter(this)}emit(B,H){return this._emitter.emit(B,H)}on(B,H){return this._emitter.on(B,H)}once(B,H){return this._emitter.once(B,H)}hasEventListener(B){return this._emitter.hasEventListener(B)}}!function(W){class B{constructor(te=null){this._target=te,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(te,ae){const oe=this._listenersMap&&this._listenersMap.get(te);if(!oe)return!1;const le=this._target||this;return[...oe].forEach(de=>{de.call(le,ae)}),oe.length>0}on(te,ae){if(Array.isArray(te)){const le=te.map(de=>this.on(de,ae));return(0,G.AL)(le)}if(te.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const oe=this._listenersMap.get(te)||[];return oe.push(ae),this._listenersMap.set(te,oe),{remove:()=>{const le=this._listenersMap&&this._listenersMap.get(te)||[],de=le.indexOf(ae);de>=0&&le.splice(de,1)}}}once(te,ae){const oe=this.on(te,le=>{oe.remove(),ae.call(null,le)});return oe}hasEventListener(te){const ae=this._listenersMap&&this._listenersMap.get(te);return null!=ae&&ae.length>0}}W.EventEmitter=B,W.EventedMixin=X=>{let te=class extends X{constructor(){super(...arguments),this._emitter=new B}destroy(){this._emitter.clear()}emit(ae,oe){return this._emitter.emit(ae,oe)}on(ae,oe){return this._emitter.on(ae,oe)}once(ae,oe){return this._emitter.once(ae,oe)}hasEventListener(ae){return this._emitter.hasEventListener(ae)}};return te=(0,D._)([(0,Z.j)("esri.core.Evented")],te),te};let H=class extends R.Z{constructor(){super(...arguments),this._emitter=new Q.EventEmitter(this)}destroy(){this._emitter.clear()}emit(X,te){return this._emitter.emit(X,te)}on(X,te){return this._emitter.on(X,te)}once(X,te){return this._emitter.once(X,te)}hasEventListener(X){return this._emitter.hasEventListener(X)}};H=(0,D._)([(0,Z.j)("esri.core.Evented")],H),W.EventedAccessor=H}(Q||(Q={}));const $=Q},80542:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>W,r:()=>B});var D=v(17626),R=v(14517),G=v(72392),Z=v(77712),Q=v(76898),$=v(17760);const W=H=>{let X=class extends H{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new G.Z}get updatingHandles(){return this._get("updatingHandles")||new $.t}};return(0,D._)([(0,Z.Cb)({readOnly:!0})],X.prototype,"handles",null),(0,D._)([(0,Z.Cb)({readOnly:!0})],X.prototype,"updatingHandles",null),X=(0,D._)([(0,Q.j)("esri.core.HandleOwner")],X),X};let B=class extends(W(R.Z)){};B=(0,D._)([(0,Q.j)("esri.core.HandleOwner")],B)},72392:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>G});var D=v(56354),R=v(62208);class G{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let Q=0;return this._groups.forEach($=>{Q+=$.length}),Q}add(Q,$){if((0,D.TW)(Q)){const W=this._getOrCreateGroup($);for(const B of Q)this._isHandle(B)&&W.push(B)}else this._isHandle(Q)&&this._getOrCreateGroup($).push(Q);return this}forEach(Q,$){if("function"==typeof Q)this._groups.forEach(W=>W.forEach(Q));else{const W=this._getGroup(Q);W&&$&&W.forEach($)}}has(Q){return this._groups.has(this._ensureGroupKey(Q))}remove(Q){if("string"!=typeof Q&&(0,D.TW)(Q)){for(const $ of Q)this.remove($);return this}return this.has(Q)?(this._removeAllFromGroup(this._getGroup(Q)),this._groups.delete(this._ensureGroupKey(Q)),this):this}removeAll(){return this._groups.forEach(Q=>this._removeAllFromGroup(Q)),this._groups.clear(),this}_isHandle(Q){return Q&&!!Q.remove}_getOrCreateGroup(Q){if(this.has(Q))return this._getGroup(Q);const $=[];return this._groups.set(this._ensureGroupKey(Q),$),$}_getGroup(Q){return(0,R.j0)(this._groups.get(this._ensureGroupKey(Q)))}_ensureGroupKey(Q){return Q||"_default_"}_removeAllFromGroup(Q){Q.forEach($=>$.remove())}}},61996:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ej:()=>$,IG:()=>Z});var D=v(17626),R=v(76898);let G=0;const Z=W=>{let B=class extends W{constructor(...H){super(...H),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+G++})}};return B=(0,D._)([(0,R.j)("esri.core.Identifiable")],B),B};let $=class extends(Z(class{})){};$=(0,D._)([(0,R.j)("esri.core.Identifiable")],$)},78498:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>R});var D=v(1036);class R{constructor(Z,Q){this._storage=new D.WJ,this._storage.maxSize=Z,Q&&this._storage.registerRemoveFunc("",Q)}put(Z,Q){this._storage.put(Z,Q,1,1)}pop(Z){return this._storage.pop(Z)}get(Z){return this._storage.get(Z)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},86810:(nt,Ae,v)=>{"use strict";v.d(Ae,{wq:()=>se,eC:()=>oe});var D=v(17626),R=v(14517),G=v(62208),Z=v(58817),Q=v(31283);class ${constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(j){const Y=new $;return this._values.forEach((ee,ie)=>{j&&j.has(ie)||Y.set(ie,(0,Z.d9)(ee.value),ee.origin)}),Y}get(j,Y){Y=this._normalizeOrigin(Y);const ee=this._values.get(j);return null==Y||ee?.origin===Y?ee?.value:void 0}originOf(j){return this._values.get(j)?.origin??Q.s3.USER}keys(j){j=this._normalizeOrigin(j);const Y=[...this._values.keys()];return null==j?Y:Y.filter(ee=>this._values.get(ee)?.origin===j)}set(j,Y,ee){if((ee=this._normalizeOrigin(ee))===Q.s3.DEFAULTS){const ie=this._values.get(j);if(ie&&null!=ie.origin&&ie.origin>ee)return}this._values.set(j,new W(Y,ee))}delete(j,Y){null!=(Y=this._normalizeOrigin(Y))&&this._values.get(j)?.origin!==Y||this._values.delete(j)}has(j,Y){return null!=(Y=this._normalizeOrigin(Y))?this._values.get(j)?.origin===Y:this._values.has(j)}forEach(j){this._values.forEach(({value:Y},ee)=>j(Y,ee))}_normalizeOrigin(j){if(null!=j)return j===Q.s3.DEFAULTS?j:Q.s3.USER}}class W{constructor(j,Y){this.value=j,this.origin=Y}}var B=v(12590),H=v(29338),X=v(52323),te=v(36054),ae=v(76898);const oe=re=>{let j=class extends re{constructor(...Y){super(...Y);const ee=(0,G.j0)((0,X.vw)(this)),ie=ee.store,J=new $;ee.store=J,(0,B.M)(ee,ie,J)}read(Y,ee){(0,H.i)(this,Y,ee)}write(Y={},ee){return(0,te.c)(this,Y,ee)}toJSON(Y){return this.write({},Y)}static fromJSON(Y,ee){return le.call(this,Y,ee)}};return j=(0,D._)([(0,ae.j)("esri.core.JSONSupport")],j),j.prototype.toJSON.isDefaultToJSON=!0,j};function le(re,j){if(!re)return null;if(re.declaredClass)throw new Error("JSON object is already hydrated");const Y=new this;return Y.read(re,j),Y}let se=class extends(oe(R.Z)){};se=(0,D._)([(0,ae.j)("esri.core.JSONSupport")],se)},93961:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>R});var D=v(1036);class R{constructor(Z,Q){this._storage=new D.WJ,this._storage.maxSize=Z,Q&&this._storage.registerRemoveFunc("",Q)}put(Z,Q,$){this._storage.put(Z,Q,$,1)}pop(Z){return this._storage.pop(Z)}get(Z){return this._storage.get(Z)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}get maxSize(){return this._storage.maxSize}set maxSize(Z){this._storage.maxSize=Z}}},47996:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var D=v(17626),R=v(26584),G=v(60330),Z=v(10699),Q=v(14889),$=v(77712),W=v(76898);const ae=de=>{let se=class extends de{constructor(...re){super(...re),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(j=>{const Y=this.load.bind(this);this.load=ee=>{const ie=new Promise((J,ce)=>{const ue=(0,Z.$F)(ee,ce);this.destroyed&&ce(new R.Z("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this._promiseProps.when(J,ce).finally(()=>{ue&&ue.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const J=this._loadController=new AbortController;Y({signal:J.signal}),(0,Z.fu)(J.signal,()=>{this._promiseProps.abort()})}return j(),ie}})),this.when(()=>{this._set("loadStatus","loaded"),this._loadController=null},j=>{this._set("loadStatus","failed"),this._set("loadError",j),this._loadController=null})}get loaded(){return"loaded"===this.loadStatus}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new R.Z("load:cancelled","Cancelled")),this._loadController?.abort()),this}};return(0,D._)([(0,$.Cb)({readOnly:!0})],se.prototype,"loaded",null),(0,D._)([(0,$.Cb)({readOnly:!0})],se.prototype,"loadError",void 0),(0,D._)([(0,$.Cb)({clonable:!1})],se.prototype,"loadStatus",void 0),(0,D._)([(0,$.Cb)({type:[Q.Z],readOnly:!0})],se.prototype,"loadWarnings",null),se=(0,D._)([(0,W.j)("esri.core.Loadable")],se),se};let oe=class extends(ae(G.D)){};var de;oe=(0,D._)([(0,W.j)("esri.core.Loadable")],oe),(de=oe||(oe={})).LoadableMixin=ae,de.isLoadable=function se(re){return!(!re||!re.load)};const le=oe},63290:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>$});var D=v(59318),G=(v(8314),v(62208)),Z=v(77275);const Q={info:0,warn:1,error:2,none:3};class ${constructor(B){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=B.level&&(this.level=B.level),null!=B.writer&&(this.writer=B.writer),this._module=B.module,$._loggers[this.module]=this;const H=this.module.lastIndexOf(".");-1!==H&&(this._parent=$.getLogger(this.module.slice(0,H)))}get module(){return this._module}get parent(){return this._parent}error(...B){this._log("error","always",...B)}warn(...B){this._log("warn","always",...B)}info(...B){this._log("info","always",...B)}errorOnce(...B){this._log("error","once",...B)}warnOnce(...B){this._log("warn","once",...B)}infoOnce(...B){this._log("info","once",...B)}errorOncePerTick(...B){this._log("error","oncePerTick",...B)}warnOncePerTick(...B){this._log("warn","oncePerTick",...B)}infoOncePerTick(...B){this._log("info","oncePerTick",...B)}get test(){const B=this;return{loggedMessages:B._loggedMessages,clearLoggedWarnings:()=>B._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(B={}){const H=$._loggers;return $._loggers=B,H},set throttlingDisabled(B){$._throttlingDisabled=B}}}static getLogger(B){let H=$._loggers[B];return H||(H=new $({module:B})),H}_log(B,H,...X){if(this._matchLevel(B)){if("always"!==H&&!$._throttlingDisabled){const te=this._argsToKey(X),ae=this._loggedMessages[B].get(te);if("once"===H&&null!=ae||"oncePerTick"===H&&ae&&ae>=$._tickCounter)return;this._loggedMessages[B].set(te,$._tickCounter),$._scheduleTickCounterIncrement()}for(const te of D.Z.log.interceptors)if(te(B,this.module,...X))return;this._inheritedWriter()(B,this.module,...X)}}_parentWithMember(B,H){let X=this;for(;(0,G.pC)(X);){const te=X[B];if((0,G.pC)(te))return te;X=X.parent}return H}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(B,H,...X){console[B](`[${H}]`,...X)}_matchLevel(B){return Q[this._parentWithMember("level",D.Z.log.level?D.Z.log.level:"warn")]<=Q[B]}_argsToKey(...B){return(0,Z.hP)(JSON.stringify(B,(X,te)=>"object"!=typeof te||Array.isArray(te)?te:"[Object]"))}static _scheduleTickCounterIncrement(){$._tickCounterScheduled||($._tickCounterScheduled=!0,Promise.resolve().then(()=>{$._tickCounter++,$._tickCounterScheduled=!1}))}}$._loggers={},$._tickCounter=0,$._tickCounterScheduled=!1,$._throttlingDisabled=!1},50011:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>se,M:()=>D});const D={Base64:0,Hex:1,String:2,Raw:3};function Z(re,j){const Y=(65535&re)+(65535&j);return(re>>16)+(j>>16)+(Y>>16)<<16|65535&Y}function X(re,j,Y,ee,ie,J){return Z(function H(re,j){return re<>>32-j}(Z(Z(j,re),Z(ee,J)),ie),Y)}function te(re,j,Y,ee,ie,J,ce){return X(j&Y|~j&ee,re,j,ie,J,ce)}function ae(re,j,Y,ee,ie,J,ce){return X(j&ee|Y&~ee,re,j,ie,J,ce)}function oe(re,j,Y,ee,ie,J,ce){return X(j^Y^ee,re,j,ie,J,ce)}function le(re,j,Y,ee,ie,J,ce){return X(Y^(j|~ee),re,j,ie,J,ce)}function se(re,j=D.Hex){const Y=j||D.Base64,ee=function de(re,j){re[j>>5]|=128<>>9<<4)]=j;let Y=1732584193,ee=-271733879,ie=-1732584194,J=271733878;for(let ce=0;ce>5]|=(255&re.charCodeAt(Y/8))<>2]>>ee%4*8+4&15)+j.charAt(re[ee>>2]>>ee%4*8&15));return Y.join("")}(ee);case D.String:return function $(re){const j=[];for(let Y=0,ee=32*re.length;Y>5]>>>Y%32&255));return j.join("")}(ee);case D.Base64:return function B(re){const ee=[];for(let ie=0,J=4*re.length;ie>2]>>ie%4*8&255)<<16|(re[ie+1>>2]>>(ie+1)%4*8&255)<<8|re[ie+2>>2]>>(ie+2)%4*8&255;for(let ue=0;ue<4;ue++)ee.push(8*ie+6*ue>32*re.length?"=":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ce>>6*(3-ue)&63))}return ee.join("")}(ee)}}},88159:(nt,Ae,v)=>{"use strict";function D(Q,$){for(const[W,B]of Q)if($(B,W))return!0;return!1}function R(Q,$){for(const[W,B]of Q)if($(B,W))return B;return null}function G(Q,$,W){const B=Q.get($);if(void 0!==B)return B;const H=W();return Q.set($,H),H}v.d(Ae,{fQ:()=>R,oE:()=>D,s1:()=>G})},1036:(nt,Ae,v)=>{"use strict";v.d(Ae,{WJ:()=>$,Xq:()=>Q,an:()=>G,lN:()=>Z});var D=v(62208),R=v(77029);const G=-3;var Z,W;(W=Z||(Z={}))[W.ALL=0]="ALL",W[W.SOME=1]="SOME";class Q{constructor(B,H,X){this._namespace=B,this._storage=H,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",X&&(this._storage.registerRemoveFunc(this._namespace,X),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(B,H,X,te=0){this._storage.put(this._namespace+B,H,X,te)}get(B){const H=this._storage.get(this._namespace+B);return void 0===H?++this._miss:++this._hit,H}pop(B){const H=this._storage.pop(this._namespace+B);return void 0===H?++this._miss:++this._hit,H}updateSize(B,H,X){this._storage.updateSize(this._namespace+B,H,X)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class ${constructor(B=10485760){this._maxSize=B,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new R.Z,this._users=new R.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(B){this._users.push(B)}deregister(B){this._users.removeUnordered(B)}registerRemoveFunc(B,H){this._removeFuncs.push([B,H])}deregisterRemoveFunc(B){this._removeFuncs.filterInPlace(H=>H[0]!==B)}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(B){this._maxSize=Math.max(B,0),this._checkSizeLimit()}put(B,H,X,te){const ae=this._db.get(B);if(ae&&(this._size-=ae.size,this._db.delete(B),ae.entry!==H&&this._notifyRemove(B,ae.entry,Z.ALL)),X>this._maxSize)return void this._notifyRemove(B,H,Z.ALL);if(void 0===H)return void console.warn("Refusing to cache undefined entry ");if(!X||X<0)return void console.warn("Refusing to cache entry with invalid size "+X);const oe=1+Math.max(te,G)-G;this._db.set(B,{entry:H,size:X,lifetime:oe,lives:oe}),this._size+=X,this._checkSizeLimit()}updateSize(B,H,X){const te=this._db.get(B);if(te&&te.entry===H){for(this._size-=te.size;X>this._maxSize;){const ae=this._notifyRemove(B,H,Z.SOME);if(!((0,D.pC)(ae)&&ae>0))return void this._db.delete(B);X=ae}te.size=X,this._size+=X,this._checkSizeLimit()}}pop(B){const H=this._db.get(B);if(H)return this._size-=H.size,this._db.delete(B),++this._hit,H.entry;++this._miss}get(B){const H=this._db.get(B);if(void 0!==H)return this._db.delete(B),H.lives=H.lifetime,this._db.set(B,H),++this._hit,H.entry;++this._miss}getStats(){const B={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},H={},X=new Array;this._db.forEach((oe,le)=>{const de=oe.lifetime;X[de]=(X[de]||0)+oe.size,this._users.forAll(se=>{const re=se.namespace;le.startsWith(re)&&(H[re]=(H[re]||0)+oe.size)})});const te={};this._users.forAll(oe=>{const le=oe.namespace;!isNaN(oe.hitRate)&&oe.hitRate>0?(H[le]=H[le]||0,te[le]=Math.round(100*oe.hitRate)+"%"):te[le]="0%"});const ae=Object.keys(H);ae.sort((oe,le)=>H[le]-H[oe]),ae.forEach(oe=>B[oe]=Math.round(H[oe]/2**20)+"MB / "+te[oe]);for(let oe=X.length-1;oe>=0;--oe){const le=X[oe];le&&(B["Priority "+(oe+G-1)]=Math.round(le/this.size*100)+"%")}return B}resetStats(){this._hit=this._miss=0,this._users.forAll(B=>B.resetHitRate())}clear(B){this._db.forEach((H,X)=>{X.startsWith(B)&&(this._size-=H.size,this._db.delete(X),this._notifyRemove(X,H.entry,Z.ALL))})}clearAll(){this._db.forEach((B,H)=>this._notifyRemove(H,B.entry,Z.ALL)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(B,H,X){let te;return this._removeFuncs.some(ae=>{if(B.startsWith(ae[0])){const oe=ae[1](H,X);return"number"==typeof oe&&(te=oe),!0}return!1}),te}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[B,H]of this._db){if(this._db.delete(B),H.lives<=1){this._size-=H.size;const X=this._notifyRemove(B,H.entry,Z.SOME);(0,D.pC)(X)&&X>0&&(this._size+=X,H.lives=H.lifetime,H.size=X,this._db.set(B,H))}else--H.lives,this._db.set(B,H);if(this._size<=.9*this.maxSize)return}}}},90888:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>G});var D=v(94113);class G{constructor(Q,$,W){this.name=Q,this.details=W,this instanceof G&&(this.message=($&&function R(Z,Q){return Z.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,($,W)=>{if(""===W)return"$";const H=(0,D.hS)(W,Q)??"";if(void 0===H)throw new Error(`could not find key "${W}" in template`);return H.toString()})}($,W))??"")}toString(){return"["+this.name+"]: "+this.message}}},99959:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>re,w:()=>j});var D=v(17626),R=v(14517),G=v(62208),Z=v(12590),Q=v(58817),$=v(31283);class W{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array($.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(ee){const ie=new W,J=this._originStores[$.s3.DEFAULTS];J&&J.forEach((ce,ue)=>{ie.set(ue,(0,Q.d9)(ce),$.s3.DEFAULTS)});for(let ce=$.s3.SERVICE;ce<$.kk;ce++){const ue=this._originStores[ce];ue&&ue.forEach((pe,he)=>{ee&&ee.has(he)||ie.set(he,(0,Q.d9)(pe),ce)})}return ie}get(ee,ie){const J=void 0===ie?this._values:this._originStores[ie];return J?J.get(ee):void 0}keys(ee){const ie=null==ee?this._values:this._originStores[ee];return ie?[...ie.keys()]:[]}set(ee,ie,J=$.s3.USER){let ce=this._originStores[J];if(ce||(ce=new Map,this._originStores[J]=ce),ce.set(ee,ie),!this._values.has(ee)||(0,G.j0)(this._propertyOriginMap.get(ee))<=J){const ue=this._values.get(ee);return this._values.set(ee,ie),this._propertyOriginMap.set(ee,J),ue!==ie}return!1}delete(ee,ie=$.s3.USER){const J=this._originStores[ie];if(!J)return;const ce=J.get(ee);if(J.delete(ee),this._values.has(ee)&&this._propertyOriginMap.get(ee)===ie){this._values.delete(ee);for(let ue=ie-1;ue>=0;ue--){const pe=this._originStores[ue];if(pe&&pe.has(ee)){this._values.set(ee,pe.get(ee)),this._propertyOriginMap.set(ee,ue);break}}}return ce}has(ee,ie){const J=void 0===ie?this._values:this._originStores[ie];return!!J&&J.has(ee)}revert(ee,ie){for(;ie>0&&!this.has(ee,ie);)--ie;const J=this._originStores[ie],ce=J&&J.get(ee),ue=this._values.get(ee);return this._values.set(ee,ce),this._propertyOriginMap.set(ee,ie),ue!==ce}originOf(ee){return this._propertyOriginMap.get(ee)||$.s3.DEFAULTS}forEach(ee){this._values.forEach(ee)}}var B=v(29338),H=v(52323),X=v(76898);const te=Y=>{let ee=class extends Y{constructor(...ie){super(...ie);const J=(0,G.j0)((0,H.vw)(this)),ce=J.store,ue=new W;J.store=ue,(0,Z.M)(J,ce,ue)}read(ie,J){(0,B.i)(this,ie,J)}getAtOrigin(ie,J){const ce=ae(this),ue=(0,$.M9)(J);if("string"==typeof ie)return ce.get(ie,ue);const pe={};return ie.forEach(he=>{pe[he]=ce.get(he,ue)}),pe}originOf(ie){return(0,$.x3)(this.originIdOf(ie))}originIdOf(ie){return ae(this).originOf(ie)}revert(ie,J){const ce=ae(this),ue=(0,$.M9)(J),pe=(0,H.vw)(this);let he;he="string"==typeof ie?"*"===ie?ce.keys(ue):[ie]:ie,he.forEach(me=>{pe.invalidate(me),ce.revert(me,ue),pe.commit(me)})}};return ee=(0,D._)([(0,X.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],ee),ee};function ae(Y){return(0,H.vw)(Y).store}let oe=class extends(te(R.Z)){};oe=(0,D._)([(0,X.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],oe);var le=v(36054);const de=Y=>{let ee=class extends Y{constructor(...ie){super(...ie)}clear(ie,J="user"){return se(this).delete(ie,(0,$.M9)(J))}write(ie={},J){return(0,le.c)(this,ie=ie||{},J),ie}setAtOrigin(ie,J,ce){(0,H.vw)(this).setAtOrigin(ie,J,(0,$.M9)(ce))}removeOrigin(ie){const J=se(this),ce=(0,$.M9)(ie),ue=J.keys(ce);for(const pe of ue)J.originOf(pe)===ce&&J.set(pe,J.get(pe,ce),$.s3.USER)}updateOrigin(ie,J){const ce=se(this),ue=(0,$.M9)(J),pe=this.get(ie);for(let he=ue+1;he<$.kk;++he)ce.delete(ie,he);ce.set(ie,pe,ue)}toJSON(ie){return this.write({},ie)}};return ee=(0,D._)([(0,X.j)("esri.core.WriteableMultiOriginJSONSupport")],ee),ee.prototype.toJSON.isDefaultToJSON=!0,ee};function se(Y){return(0,H.vw)(Y).store}const re=Y=>{let ee=class extends(de(te(Y))){constructor(...ie){super(...ie)}};return ee=(0,D._)([(0,X.j)("esri.core.MultiOriginJSONSupport")],ee),ee};let j=class extends(re(R.Z)){};j=(0,D._)([(0,X.j)("esri.core.MultiOriginJSONSupport")],j)},1101:(nt,Ae,v)=>{"use strict";v.d(Ae,{r:()=>D});class D{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get(G,Z){return this._outer.get(G)?.get(Z)}set(G,Z,Q){const $=this._outer.get(G);$?$.set(Z,Q):this._outer.set(G,new Map([[Z,Q]]))}delete(G,Z){const Q=this._outer.get(G);Q&&(Q.delete(Z),0===Q.size&&this._outer.delete(G))}forEach(G){this._outer.forEach((Z,Q)=>G(Z,Q))}}},27899:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>G});let G=(()=>{class Z{constructor($,W,B,H=1,X=0){if(this._ctor=$,this._acquireFunction=W,this._releaseFunction=B,this.allocationSize=H,this._pool=new Array(X),this._initialSize=X,this._ctor)for(let te=0;te=this._pool.length)){for(let W=$;W{"use strict";v.d(Ae,{x:()=>R});var D=v(79682);class R{constructor(Q){this._allocator=Q,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,D.Y)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const Q=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*G);this._items.length=Math.min(Q,this._items.length),this._itemsPtr=0}_grow(){for(let Q=0;Q{"use strict";var D,R;v.d(Ae,{y:()=>D}),(R=D||(D={}))[R.ADD=1]="ADD",R[R.REMOVE=2]="REMOVE",R[R.MOVE=4]="MOVE"},73362:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>R});var D=v(62208);class R{constructor(Z,Q=30){this.name=Z,this._counter=0,this._samples=new Array(Q)}record(Z){(0,D.pC)(Z)&&(this._samples[++this._counter%this._samples.length]=Z)}get median(){return this._samples.slice().sort((Z,Q)=>Z-Q)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((Z,Q)=>Z+Q,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}},77029:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>$});var R,D=v(85931);!function(B){const H=(oe,le,de,se)=>{let re=le,j=le;const Y=de>>>1,ee=oe[re-1];for(;j<=Y;){j=re<<1,joele?1:0;B.sort=function te(oe,le,de,se){void 0===le&&(le=0),void 0===de&&(de=oe.length),void 0===se&&(se=X);for(let j=de>>>1;j>le;j--)H(oe,j,de,se);const re=le+1;for(let j=de-1;j>le;j--){const Y=oe[le];oe[le]=oe[j],oe[j]=Y,H(oe,re,j,se)}},B.iterableSort=function*ae(oe,le,de,se){void 0===le&&(le=0),void 0===de&&(de=oe.length),void 0===se&&(se=X);for(let j=de>>>1;j>le;j--)H(oe,j,de,se),yield;const re=le+1;for(let j=de-1;j>le;j--){const Y=oe[le];oe[le]=oe[j],oe[j]=Y,H(oe,re,j,se),yield}}}(R||(R={}));const G=R;class ${constructor(H){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new D.SO,H&&(H.initialSize&&(this.data=new Array(H.initialSize)),H.allocator&&(this._allocator=H.allocator),void 0!==H.deallocator&&(this._deallocator=H.deallocator),H.shrink&&(this._shrink=()=>W(this)))}toArray(){return this.data.slice(0,this.length)}filter(H){const X=new Array;for(let te=0;te=this._length))return this.data[H]}includes(H,X){const te=this.data.indexOf(H,X);return-1!==te&&tethis._length){if(this._allocator){for(;this._length=this.length||H<0))return this.swapElements(H,this.length-1),this.pop()}removeUnorderedMany(H,X=H.length,te){this.length=(0,D.FY)(this.data,H,this.length,X,this._hint,te),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(H,X){if(H>=this.length||X>=this.length||H===X)return;const te=this.data[H];this.data[H]=this.data[X],this.data[X]=te}sort(H){G.sort(this.data,0,this.length,H)}iterableSort(H){return G.iterableSort(this.data,0,this.length,H)}some(H,X){for(let te=0;te1.5*B.length&&(B.data.length=Math.floor(1.1*B.length))}},60330:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>H,v:()=>B});var $,X,D=v(17626),R=v(14517),G=v(62208),Z=v(10699),Q=v(76898);(X=$||($={}))[X.PENDING=0]="PENDING",X[X.RESOLVED=1]="RESOLVED",X[X.REJECTED=2]="REJECTED";class W{constructor(te){this.instance=te,this._resolver=(0,Z.dD)(),this._status=$.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=$.RESOLVED,this._cleanUp()},()=>{this._status=$.REJECTED,this._cleanUp()})}addResolvingPromise(te){this._resolvingPromises.push(te),this._tryResolve()}isResolved(){return this._status===$.RESOLVED}isRejected(){return this._status===$.REJECTED}isFulfilled(){return this._status!==$.PENDING}abort(){this._resolver.reject((0,Z.zE)())}when(te,ae){return this._resolver.promise.then(te,ae)}_cleanUp(){this._allPromise=this._resolvingPromises=this._allPromise=null}_tryResolve(){if(this.isFulfilled())return;const te=(0,Z.dD)(),ae=[...this._resolvingPromises,(0,G.j0)(te.promise)],oe=this._allPromise=Promise.all(ae);oe.then(()=>{this.isFulfilled()||this._allPromise!==oe||this._resolver.resolve(this.instance)},le=>{this.isFulfilled()||this._allPromise!==oe||(0,Z.D_)(le)||this._resolver.reject(le)}),te.resolve()}}const B=X=>{let te=class extends X{constructor(...ae){super(...ae),this._promiseProps=new W(this),this.addResolvingPromise(Promise.resolve())}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(ae,oe){return new Promise((le,de)=>{this._promiseProps.when(le,de)}).then(ae,oe)}catch(ae){return this.when(null,ae)}addResolvingPromise(ae){ae&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in ae?ae.when():ae)}};return te=(0,D._)([(0,Q.j)("esri.core.Promise")],te),te};let H=class extends(B(R.Z)){};H=(0,D._)([(0,Q.j)("esri.core.Promise")],H)},35133:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>R});var D=v(62208);class R{constructor(Z=(Q=>Q.values().next().value)){this._peeker=Z,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let Z;for(Z of this._items);return Z}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(Z){this.contains(Z)||this._items.add(Z)}contains(Z){return this._items.has(Z)}pop(){if(0===this.length)return;const Z=this.peek();return this._items.delete((0,D.j0)(Z)),Z}popLast(){if(0===this.length)return;const Z=this.last();return this._items.delete((0,D.j0)(Z)),Z}remove(Z){this._items.delete(Z)}filter(Z){return this._items.forEach(Q=>{Z(Q)||this._items.delete(Q)}),this}}},4619:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>D});class D{constructor(G=1){this._seed=G}set seed(G){this._seed=G??Math.random()*D._m}getInt(){return this._seed=(D._a*this._seed+D._c)%D._m,this._seed}getFloat(){return this.getInt()/(D._m-1)}getIntRange(G,Z){return Math.round(this.getFloatRange(G,Z))}getFloatRange(G,Z){const Q=Z-G;return G+this.getInt()/D._m*Q}}D._m=2147483647,D._a=48271,D._c=0},94530:(nt,Ae,v)=>{"use strict";v.d(Ae,{e:()=>G});var D=v(62208),R=v(27899);class G extends R.Z{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=(0,D.wN)(this._set)}acquire(...Q){const $=super.acquire(...Q);return this._set.delete($),$}release(Q){Q&&!this._set.has(Q)&&(super.release(Q),this._set.add(Q))}_dispose(Q){this._set.delete(Q),super._dispose(Q)}}},28862:(nt,Ae,v)=>{"use strict";function D(G,Z){for(const Q of G.entries())if(Z(Q[0]))return!0;return!1}v.d(Ae,{f:()=>D})},10349:(nt,Ae,v)=>{"use strict";v.d(Ae,{G:()=>R});var D=v(26584);class R{constructor(Z,Q,$=""){this.major=Z,this.minor=Q,this._context=$}lessThan(Z,Q){return this.major{"use strict";v.d(Ae,{Z:()=>R});var D=v(90888);class R extends D.Z{constructor(Z,Q,$){if(super(Z,Q,$),!(this instanceof R))return new R(Z,Q,$)}}R.prototype.type="warning"},31283:(nt,Ae,v)=>{"use strict";v.d(Ae,{M9:()=>Z,Wm:()=>W,kk:()=>G,s3:()=>R,x3:()=>Q});var R,X,D=v(62208);(X=R||(R={}))[X.DEFAULTS=0]="DEFAULTS",X[X.COMPUTED=1]="COMPUTED",X[X.SERVICE=2]="SERVICE",X[X.PORTAL_ITEM=3]="PORTAL_ITEM",X[X.WEB_SCENE=4]="WEB_SCENE",X[X.WEB_MAP=5]="WEB_MAP",X[X.USER=6]="USER";const G=R.USER+1;function Z(X){switch(X){case"defaults":return R.DEFAULTS;case"service":return R.SERVICE;case"portal-item":return R.PORTAL_ITEM;case"web-scene":return R.WEB_SCENE;case"web-map":return R.WEB_MAP;case"user":return R.USER;default:return null}}function Q(X){switch(X){case R.DEFAULTS:return"defaults";case R.SERVICE:return"service";case R.PORTAL_ITEM:return"portal-item";case R.WEB_SCENE:return"web-scene";case R.WEB_MAP:return"web-map";case R.USER:return"user"}return(0,D.j0)(void 0)}function W(X){return Q(X)}},66656:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>W});var D=v(90912),R=v(34117);const G=Object.prototype.toString;function Z(B){const H="__accessorMetadata__"in B?(0,D.se)(B):B;return function(...X){if(X.push(H),"number"==typeof X[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return Q.apply(this,X)}}function Q(B,H,X,te){(0,R.VZ)(B,H).cast=te}function W(...B){if(3!==B.length||"string"!=typeof B[1])return 1===B.length&&"[object Function]"===G.call(B[0])?Z(B[0]):1===B.length&&"string"==typeof B[0]?function $(B){return(H,X)=>{(0,R.VZ)(H,B).cast=H[X]}}(B[0]):void 0}},55342:(nt,Ae,v)=>{"use strict";v.d(Ae,{J:()=>G});var D=v(2076),R=v(77712);function G(Z,Q={}){const $=Z instanceof D.X?Z:new D.X(Z,Q),W={type:Q?.ignoreUnknown??1?$.apiValues:String,json:{type:$.jsonValues,read:!Q?.readOnly&&{reader:$.read},write:{writer:$.write}}};return void 0!==Q?.readOnly&&(W.readOnly=!!Q.readOnly),void 0!==Q?.default&&(W.json.default=Q.default),void 0!==Q?.name&&(W.json.name=Q.name),(0,R.Cb)(W)}},77712:(nt,Ae,v)=>{"use strict";v.d(Ae,{CJ:()=>W,Cb:()=>$,Eg:()=>H});var D=v(63290),R=v(90912),G=v(34595),Z=v(34117),Q=v(82255);function $(X={}){return(te,ae)=>{if(te===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${te.name}.${ae}. Accessor does not support static properties.`);const oe=Object.getOwnPropertyDescriptor(te,ae),le=(0,Z.VZ)(te,ae);oe&&(oe.get||oe.set?(le.get=oe.get||le.get,le.set=oe.set||le.set):"value"in oe&&("value"in X&&D.Z.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${ae}" on "${te.constructor.name}" already defined in the metadata`,X),le.value=X.value=oe.value)),null!=X.readOnly&&(le.readOnly=X.readOnly);const de=X.aliasOf;if(de){const j="string"==typeof de?de:de.source,Y="string"==typeof de?null:!0===de.overridable;let ee;le.dependsOn=[j],le.get=function(){let ie=(0,G.U2)(this,j);if("function"==typeof ie){ee||(ee=j.split(".").slice(0,-1).join("."));const J=(0,G.U2)(this,ee);J&&(ie=ie.bind(J))}return ie},le.readOnly||(le.set=Y?function(ie){this._override(ae,ie)}:function(ie){(0,Q.t)(this,j,ie)})}const se=X.type,re=X.types;le.cast||(se?le.cast=function B(X){let te=0,ae=X;if((0,R.AY)(X))return(0,R.sY)(X);for(;Array.isArray(ae)&&1===ae.length&&"string"!=typeof ae[0]&&"number"!=typeof ae[0];)ae=ae[0],te++;const oe=ae;if((0,R.gB)(oe))return 0===te?(0,R.i$)(oe):(0,R.Iu)((0,R.i$)(oe),te);if(1===te)return(0,R.rY)(oe);if(te>1)return(0,R.di)(oe,te);return X.from?X.from:(0,R.se)(X)}(se):re&&(le.cast=Array.isArray(re)?(0,R.Ls)((0,R.N7)(re[0])):(0,R.N7)(re))),(0,Z.tz)(le,X),X.range&&(le.cast=H(le.cast,X.range))}}function W(X,te,ae){const oe=(0,Z.VZ)(X,ae);oe.json||(oe.json={});let le=oe.json;return void 0!==te&&(le.origins||(le.origins={}),le.origins[te]||(le.origins[te]={}),le=le.origins[te]),le}function H(X,te){return ae=>{let oe=+X(ae);return null!=te.step&&(oe=Math.round(oe/te.step)*te.step),null!=te.min&&(oe=Math.max(te.min,oe)),null!=te.max&&(oe=Math.min(te.max,oe)),oe}}},68653:(nt,Ae,v)=>{"use strict";v.d(Ae,{r:()=>R});var D=v(77712);function R(G,Z,Q){let $,W;return void 0===Z||Array.isArray(Z)?(W=G,Q=Z,$=[void 0]):(W=Z,$=Array.isArray(G)?G:[G]),(B,H)=>{const X=B.constructor.prototype;$.forEach(te=>{const ae=(0,D.CJ)(B,te,W);ae.read&&"object"==typeof ae.read||(ae.read={}),ae.read.reader=X[H],Q&&(ae.read.source=(ae.read.source||[]).concat(Q))})}}},61039:(nt,Ae,v)=>{"use strict";function D(R){return(G,Z)=>{G[Z]=R}}v.d(Ae,{c:()=>D})},76898:(nt,Ae,v)=>{"use strict";v.d(Ae,{j:()=>B}),v(8314);var R=v(44648),G=v(34117),Z=v(36082),Q=v(33794);const $=new Set,W=new Set;function B(te){return ae=>{ae.prototype.declaredClass=te,function X(te){const oe=(0,G.JT)(te.prototype).properties,le={};for(const de of Object.getOwnPropertyNames(oe)){const se=oe[de];(0,Q.OM)(se),le[de]={enumerable:!0,configurable:!0,get:H(de,se),set(re){const j=this.__accessor__;if(void 0!==j){if(!Object.isFrozen(this)){if(j.initialized&&se.readOnly)throw new TypeError(`[accessor] cannot assign to read-only property '${de}' of ${this.declaredClass}`);if(j.lifecycle===R.F.CONSTRUCTED&&se.constructOnly)throw new TypeError(`[accessor] cannot assign to construct-only property '${de}' of ${this.declaredClass}`);j.set(de,re)}}else Object.defineProperty(this,de,{enumerable:!0,configurable:!0,writable:!0,value:re})}}}Object.defineProperties(te.prototype,le)}(ae);const oe=[],le=[];let de=ae.prototype;for(;de;)de.hasOwnProperty("initialize")&&!$.has(de.initialize)&&($.add(de.initialize),oe.push(de.initialize)),de.hasOwnProperty("destroy")&&!W.has(de.destroy)&&(W.add(de.destroy),le.push(de.destroy)),de=Object.getPrototypeOf(de);$.clear(),W.clear();class se extends ae{constructor(...j){if(super(...j),this.constructor===se&&"function"==typeof this.postscript){if(oe.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let Y=oe.length-1;Y>=0;Y--)oe[Y].call(this)}}),le.length){let Y=!1;Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!Y){Y=!0;for(let ee=0;ee{"use strict";v.d(Ae,{c:()=>R});var D=v(77712);function R(G,Z,Q){let $,W;return void 0===Z?(W=G,$=[void 0]):"string"!=typeof Z?(W=G,$=[void 0],Q=Z):(W=Z,$=Array.isArray(G)?G:[G]),(B,H)=>{const X=B.constructor.prototype;for(const te of $){const ae=(0,D.CJ)(B,te,W);ae.write&&"object"==typeof ae.write||(ae.write={}),Q&&(ae.write.target=Q),ae.write.writer=X[H]}}}},12590:(nt,Ae,v)=>{"use strict";v.d(Ae,{M:()=>R});var D=v(31283);function R(G,Z,Q){Z.keys().forEach(W=>{Q.set(W,Z.get(W),D.s3.DEFAULTS)}),Object.keys(G.metadatas).forEach(W=>{G.internalGet(W)&&Q.set(W,G.internalGet(W),D.s3.DEFAULTS)})}},84682:(nt,Ae,v)=>{"use strict";v.d(Ae,{Hg:()=>le,V7:()=>oe,uD:()=>ae,xb:()=>de});var D=v(14517),R=v(46160),G=v(62208),Z=v(52323);const Q=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function $(se){return se instanceof D.Z}function W(se){return se instanceof R.Z?Object.keys(se.items):$(se)?(0,Z.vw)(se).keys():se?Object.keys(se):[]}function B(se,re){return se instanceof R.Z?se.items[re]:se[re]}function X(se){return se?se.declaredClass:null}function te(se,re){const j=se.diff;if(j&&"function"==typeof j)return j(se,re);const Y=W(se),ee=W(re);if(0===Y.length&&0===ee.length)return;if(!Y.length||!ee.length||function H(se,re){return!(!Array.isArray(se)||!Array.isArray(re))&&se.length!==re.length}(se,re))return{type:"complete",oldValue:se,newValue:re};const ie=ee.filter(me=>!Y.includes(me)),J=Y.filter(me=>!ee.includes(me)),ce=Y.filter(me=>ee.includes(me)&&B(se,me)!==B(re,me)).concat(ie,J).sort(),ue=X(se);if(ue&&Q.includes(ue)&&ce.length)return{type:"complete",oldValue:se,newValue:re};let pe;const he=$(se)&&$(re);for(const me of ce){const ge=B(se,me),_e=B(re,me);let Ee;if((he||"function"!=typeof ge&&"function"!=typeof _e)&&ge!==_e&&(null!=ge||null!=_e)){if(j&&j[me]&&"function"==typeof j[me])Ee=j[me](ge,_e);else if(ge instanceof Date&&_e instanceof Date){if(ge.getTime()===_e.getTime())continue;Ee={type:"complete",oldValue:ge,newValue:_e}}else Ee="object"==typeof ge&&"object"==typeof _e&&X(ge)===X(_e)?te(ge,_e):{type:"complete",oldValue:ge,newValue:_e};(0,G.pC)(Ee)&&((0,G.pC)(pe)?pe.diff[me]=Ee:pe={type:"partial",diff:{[me]:Ee}})}}return pe}function ae(se,re){if((0,G.Wi)(se))return!1;const j=re.split(".");let Y=se;for(const ee of j){if("complete"===Y.type)return!0;if("partial"!==Y.type)return!1;{const ie=Y.diff[ee];if(!ie)return!1;Y=ie}}return!0}function oe(se,re){for(const j of re)if(ae(se,j))return!0;return!1}function le(se,re){if(!("function"==typeof se||"function"==typeof re||(0,G.Wi)(se)&&(0,G.Wi)(re)))return(0,G.Wi)(se)||(0,G.Wi)(re)||"object"==typeof se&&"object"==typeof re&&X(se)!==X(re)?{type:"complete",oldValue:se,newValue:re}:te(se,re)}function de(se){if((0,G.Wi)(se))return!0;switch(se.type){case"complete":return!1;case"collection":{const re=se;for(const j of re.added)if(!de(j))return!1;for(const j of re.removed)if(!de(j))return!1;for(const j of re.changed)if(!de(j))return!1;return!0}case"partial":for(const re in se.diff)if(!de(se.diff[re]))return!1;return!0}}},90912:(nt,Ae,v)=>{"use strict";v.d(Ae,{AY:()=>De,Iu:()=>ue,Ls:()=>ie,N7:()=>ge,TJ:()=>se,V5:()=>Ee,Zs:()=>W,di:()=>pe,gB:()=>he,i$:()=>me,q9:()=>B,rY:()=>J,sY:()=>be,se:()=>ee,vU:()=>H,z8:()=>_e}),v(8314);var R=v(63290),G=v(88159);const Z=R.Z.getLogger("esri.core.accessorSupport.ensureTypes");function Q(xe){return null==xe?xe:new Date(xe)}function $(xe){return null==xe?xe:!!xe}function W(xe){return null==xe?xe:xe.toString()}function B(xe){return null==xe?xe:(xe=parseFloat(xe),isNaN(xe)?0:xe)}function H(xe){return null==xe?xe:Math.round(parseFloat(xe))}function X(xe){return xe&&xe.constructor&&void 0!==xe.constructor.__accessorMetadata__}function te(xe,ze){return null!=ze&&xe&&!(ze instanceof xe)}function ae(xe){return xe&&"isCollection"in xe}function oe(xe){return xe&&xe.Type?"function"==typeof xe.Type?xe.Type:xe.Type.base:null}function de(xe,ze){return!!X(ze)&&(Z.error("Accessor#set","Assigning an instance of '"+(ze.declaredClass||"unknown")+"' which is not a subclass of '"+re(xe)+"'"),!0)}function se(xe,ze){return null==ze?ze:ae(xe)?function le(xe,ze){if(!ze||!ze.constructor||!ae(ze.constructor))return de(xe,ze)?ze:new xe(ze);const Ke=oe(xe.prototype.itemType),We=oe(ze.constructor.prototype.itemType);return Ke?We?Ke===We?ze:Ke.prototype.isPrototypeOf(We.prototype)?new xe(ze):(de(xe,ze),ze):new xe(ze):ze}(xe,ze):te(xe,ze)?de(xe,ze)?ze:new xe(ze):ze}function re(xe){return xe&&xe.prototype&&xe.prototype.declaredClass||"unknown"}const j=new WeakMap;function Y(xe){switch(xe){case Number:return B;case _e:return H;case Boolean:return $;case String:return W;case Date:return Q;default:return(0,G.s1)(j,xe,()=>se.bind(null,xe))}}function ee(xe,ze){const Ke=Y(xe);return 1===arguments.length?Ke:Ke(ze)}function ie(xe,ze,Ke){return 1===arguments.length?ie.bind(null,xe):ze&&(Array.isArray(ze)?ze.map(We=>xe(We,Ke)):[xe(ze,Ke)])}function J(xe,ze){return 1===arguments.length?ie(ee.bind(null,xe)):ie(ee.bind(null,xe),ze)}function ce(xe,ze,Ke){return 0!==ze&&Array.isArray(Ke)?Ke.map(We=>ce(xe,ze-1,We)):xe(Ke)}function ue(xe,ze,Ke){if(2===arguments.length)return ue.bind(null,xe,ze);if(!Ke)return Ke;let We=ze,Ce=Ke=ce(xe,ze,Ke);for(;We>0&&Array.isArray(Ce);)We--,Ce=Ce[0];if(void 0!==Ce)for(let Be=0;Be{const Ke=typeof ze;return!("string"===Ke||"number"===Ke||"function"===Ke&&xe.length>1)})}function me(xe,ze){if(2===arguments.length)return me(xe).call(null,ze);const Ke=new Set,We=xe.filter(je=>"function"!=typeof je),Ce=xe.filter(je=>"function"==typeof je);for(const je of xe)"string"!=typeof je&&"number"!=typeof je||Ke.add(je);let Be=null,Fe=null;return(je,Re)=>{if(null==je)return je;const He=typeof je,Ie="string"===He||"number"===He;return Ie&&(Ke.has(je)||Ce.some(Ge=>"string"===He&&Ge===String||"number"===He&&Ge===Number))||"object"===He&&Ce.some(Ge=>!te(je,Ge))?je:(Ie&&We.length?(Be||(Be=We.map(Ge=>"string"==typeof Ge?`'${Ge}'`:`${Ge}`).join(", ")),Z.error("Accessor#set",`'${je}' is not a valid value for this property, only the following values are valid: ${Be}`)):"object"==typeof je&&Ce.length?(Fe||(Fe=Ce.map(Ge=>re(Ge)).join(", ")),Z.error("Accessor#set",`'${je}' is not a valid value for this property, value must be one of ${Fe}`)):Z.error("Accessor#set",`'${je}' is not a valid value for this property`),Re&&(Re.valid=!1),null)}}function ge(xe,ze){if(2===arguments.length)return ge(xe).call(null,ze);const Ke={},We=[],Ce=[];for(const Re in xe.typeMap){const He=xe.typeMap[Re];Ke[Re]=ee(He),We.push(re(He)),Ce.push(Re)}const Be=()=>`'${We.join("', '")}'`,Fe=()=>`'${Ce.join("', '")}'`,je="string"==typeof xe.key?Re=>Re[xe.key]:xe.key;return Re=>{if(xe.base&&!te(xe.base,Re)||null==Re)return Re;const He=je(Re)||xe.defaultKeyValue,Ie=Ke[He];if(!Ie)return Z.error("Accessor#set",`Invalid property value, value needs to be one of ${Be()}, or a plain object that can autocast (having .type = ${Fe()})`),null;if(!te(xe.typeMap[He],Re))return Re;if("string"==typeof xe.key&&!X(Re)){const Ge={};for(const Pe in Re)Pe!==xe.key&&(Ge[Pe]=Re[Pe]);return Ie(Ge)}return Ie(Re)}}class _e{}const Ee={native:xe=>({type:"native",value:xe}),array:xe=>({type:"array",value:xe}),oneOf:xe=>({type:"one-of",values:xe})};function De(xe){if(!xe||!("type"in xe))return!1;switch(xe.type){case"native":case"array":case"one-of":return!0}return!1}function be(xe){switch(xe.type){case"native":return ee(xe.value);case"array":return ie(be(xe.value));case"one-of":return function Se(xe){let ze=null;return(Ke,We)=>ve(Ke,xe)?Ke:(null==ze&&(ze=ye(xe)),Z.error("Accessor#set",`Invalid property value, value needs to be of type ${ze}`),We&&(We.valid=!1),null)}(xe);default:return null}}function ye(xe){switch(xe.type){case"native":switch(xe.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case _e:return"integer";case Date:return"date";default:return re(xe.value)}case"array":return`array of ${ye(xe.value)}`;case"one-of":{const ze=xe.values.map(Ke=>ye(Ke));return`one of ${ze.slice(0,ze.length-1)} or ${ze[ze.length-1]}`}}return"unknown"}function ve(xe,ze){if(null==xe)return!0;switch(ze.type){case"native":switch(ze.value){case Number:case _e:return"number"==typeof xe;case Boolean:return"boolean"==typeof xe;case String:return"string"==typeof xe}return xe instanceof ze.value;case"array":return!!Array.isArray(xe)&&!xe.some(Ke=>!ve(Ke,ze.value));case"one-of":return ze.values.some(Ke=>ve(xe,Ke))}}},33794:(nt,Ae,v)=>{"use strict";v.d(Ae,{hk:()=>te,HS:()=>H,Ah:()=>X,OM:()=>re});var D=v(90912),G=v(383);function Q(j){j.name&&(j.read&&"object"==typeof j.read?void 0===j.read.source&&(j.read.source=j.name):j.read={source:j.name},j.write&&"object"==typeof j.write?void 0===j.write.target&&(j.write.target=j.name):j.write={target:j.name})}function $(j){"boolean"==typeof j.read?j.read={enabled:j.read}:"function"==typeof j.read?j.read={enabled:!0,reader:j.read}:j.read&&"object"==typeof j.read&&void 0===j.read.enabled&&(j.read.enabled=!0)}function W(j){"boolean"==typeof j.write?j.write={enabled:j.write}:"function"==typeof j.write?j.write={enabled:!0,writer:j.write}:j.write&&"object"==typeof j.write&&void 0===j.write.enabled&&(j.write.enabled=!0)}var B=v(23025);function H(j,Y){return te(j,"read",Y)}function X(j,Y){return te(j,"write",Y)}function te(j,Y,ee){let ie=j&&j.json;if(j&&j.json&&j.json.origins&&ee){const J=ee.origin&&j.json.origins[ee.origin];J&&("any"===Y||Y in J)&&(ie=J)}return ie}function le(j){return j.type?de(j):se(j)}function de(j){if(!j.type)return;let Y=0,ee=j.type;for(;Array.isArray(ee)&&!(0,D.gB)(ee);)ee=ee[0],Y++;return{type:ee,ndimArray:Y}}function se(j){if(!j.types)return;let Y=0,ee=j.types;for(;Array.isArray(ee);)ee=ee[0],Y++;return{types:ee,ndimArray:Y}}function re(j){(function Z(j){if(j.json||(j.json={}),$(j.json),W(j.json),Q(j.json),j.json.origins)for(const Y in j.json.origins)$(j.json.origins[Y]),W(j.json.origins[Y]),Q(j.json.origins[Y]);return!0})(j)&&(function R(j){if(j.json&&j.json.origins){const Y=j.json.origins,ee={"web-document":["web-scene","web-map"]};for(const ie in ee)if(Y[ie]){const J=Y[ie];ee[ie].forEach(ce=>{Y[ce]=J}),delete Y[ie]}}}(j),function ae(j){const Y=function oe(j){return j.json.types?se(j.json):j.type?de(j):se(j)}(j);if(j.json.origins)for(const ee in j.json.origins){const ie=j.json.origins[ee],J=ie.types?le(ie):Y;(0,G.U)(J,ie,!1),ie.types&&!ie.write&&j.json.write&&j.json.write.enabled&&(ie.write={...j.json.write}),(0,B.U)(J,ie)}(0,G.U)(Y,j.json,!0),(0,B.U)(Y,j.json)}(j))}},383:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>W,d:()=>B});var D=v(63290),R=v(94113),G=v(14889),Z=v(34117),Q=v(94056);const $=D.Z.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function W(ee,ie,J){ee&&(!J&&!ie.read||ie.read?.reader||!1===ie.read?.enabled||function de(ee){return"types"in ee?re(ee.types):se(ee.type)}(ee)&&(0,R.RB)("read.reader",B(ee),ie))}function B(ee){const ie=ee.ndimArray??0;if(ie>1)return function ae(ee){const ie=H(ee),J=te.bind(null,ie),ce=ee.ndimArray??0;return(ue,pe,he)=>{if(null==ue)return ue;ue=J(ue,he,ce);let me=ce,ge=ue;for(;me>0&&Array.isArray(ge);)me--,ge=ge[0];if(void 0!==ge)for(let _e=0;_e{const me=ce(ue,pe,he);return me&&new ee.type(me)}}return H(ee)}function H(ee){return"type"in ee?function X(ee){return ee.prototype.read?(ie,J,ce)=>{if(null==ie)return ie;const ue=typeof ie;if("object"!==ue)return void $.error(`Expected JSON value of type 'object' to deserialize type '${ee.prototype.declaredClass}', but got '${ue}'`);const pe=new ee;return pe.read(ie,ce),pe}:ee.fromJSON}(ee.type):function j(ee){let ie=null;const J=ee.errorContext??"type";return(ce,ue,pe)=>{if(null==ce)return ce;const he=typeof ce;if("object"!==he)return void $.error(`Expected JSON value of type 'object' to deserialize, but got '${he}'`);ie||(ie=function Y(ee){const ie={};for(const J in ee.typeMap){const ce=ee.typeMap[J],ue=(0,Z.JT)(ce.prototype);if("function"==typeof ee.key)continue;const pe=ue.properties[ee.key];if(!pe)continue;pe.json?.type&&Array.isArray(pe.json.type)&&1===pe.json.type.length&&"string"==typeof pe.json.type[0]&&(ie[pe.json.type[0]]=ce);const he=pe.json?.write;if(!he||!he.writer){ie[J]=ce;continue}const me=he.target,ge="string"==typeof me?me:ee.key,_e={};he.writer(J,_e,ge),_e[ge]&&(ie[_e[ge]]=ce)}return ie}(ee));const me=ee.key;if("string"!=typeof me)return;const ge=ce[me],_e=ge?ie[ge]:ee.defaultKeyValue?ee.typeMap[ee.defaultKeyValue]:void 0;if(!_e){const De=`Type '${ge||"unknown"}' is not supported`;return pe&&pe.messages&&ce&&pe.messages.push(new G.Z(`${J}:unsupported`,De,{definition:ce,context:pe})),void $.error(De)}const Ee=new _e;return Ee.read(ce,pe),Ee}}(ee.types)}function te(ee,ie,J,ce){return 0!==ce&&Array.isArray(ie)?ie.map(ue=>te(ee,ue,J,ce-1)):ee(ie,void 0,J)}function oe(ee){const ie=H(ee);return(J,ce,ue)=>{if(null==J)return J;if(Array.isArray(J)){const he=[];for(const me of J){const ge=ie(me,void 0,ue);void 0!==ge&&he.push(ge)}return he}const pe=ie(J,void 0,ue);return void 0!==pe?[pe]:void 0}}function le(ee){if(!(0,Q.u)(ee))return!1;const ie=ee.prototype.itemType;return!(!ie||!ie.Type)&&("function"==typeof ie.Type?se(ie.Type):re(ie.Type))}function se(ee){return!Array.isArray(ee)&&!!ee&&ee.prototype&&("read"in ee.prototype||"fromJSON"in ee||le(ee))}function re(ee){for(const ie in ee.typeMap)if(!se(ee.typeMap[ie]))return!1;return!0}},94056:(nt,Ae,v)=>{"use strict";function D(R){return!!R&&R.prototype&&R.prototype.declaredClass&&0===R.prototype.declaredClass.indexOf("esri.core.Collection")}v.d(Ae,{u:()=>D})},23025:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>Q,k:()=>te});var D=v(26584),R=v(63290),G=v(94113),Z=v(94056);function Q(de,se){if(!se.write||se.write.writer||!1===se.write.enabled&&!se.write.overridePolicy)return;const re=de?.ndimArray??0;se.write.writer=de&&(1===re||"type"in de&&(0,Z.u)(de.type))?ae:re>1?function le(de){return(se,re,j,Y)=>{let ee;if(null===se)ee=null;else{ee=oe(se,Y,de);let ie=de,J=ee;for(;ie>0&&Array.isArray(J);)ie--,J=J[0];if(void 0!==J)for(let ce=0;cese&&Array.isArray(se)?H(se.filter(ee=>W(ee,de,Y)),re,j,Y):H(se,re,j,Y)}(se.types[0]):function $(de){return(se,re,j,Y)=>se?W(se,de,Y)?H(se,re,j,Y):void 0:H(se,re,j,Y)}(se.types):H}function W(de,se,re){for(const j in se.typeMap)if(de instanceof se.typeMap[j])return!0;if(re?.messages){const j=se.errorContext??"type",Y=`Values of type '${("function"!=typeof se.key?de[se.key]:de.declaredClass)??"Unknown"}' cannot be written`;re&&re.messages&&de&&re.messages.push(new D.Z(`${j}:unsupported`,Y,{definition:de,context:re})),R.Z.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(Y)}return!1}function H(de,se,re,j){(0,G.RB)(re,X(de,j),se)}function X(de,se){return de&&"function"==typeof de.write?de.write({},se):de&&"function"==typeof de.toJSON?de.toJSON():"number"==typeof de?te(de):de}function te(de){return de===-1/0?-Number.MAX_VALUE:de===1/0?Number.MAX_VALUE:isNaN(de)?null:de}function ae(de,se,re,j){let Y;null===de?Y=null:de&&"function"==typeof de.map?(Y=de.map(ee=>X(ee,j)),"function"==typeof Y.toArray&&(Y=Y.toArray())):Y=[X(de,j)],(0,G.RB)(re,Y,se)}function oe(de,se,re){return 0!==re&&Array.isArray(de)?de.map(j=>oe(j,se,re-1)):X(de,se)}},34595:(nt,Ae,v)=>{"use strict";v.d(Ae,{$z:()=>Z,Gg:()=>$,U2:()=>Q});var D=v(52323);function R(W,B){const H="?"===W[W.length-1]?W.slice(0,-1):W;if(null!=B.getItemAt||Array.isArray(B)){const te=parseInt(H,10);if(!isNaN(te))return Array.isArray(B)?B[te]:B.getItemAt(te)}const X=(0,D.vw)(B);return(0,D.b6)(X,H)?X.get(H):B[H]}function G(W,B,H){if(null==W)return W;const X=R(B[H],W);return!X&&H{"use strict";var D,R;v.d(Ae,{F:()=>D}),(R=D||(D={}))[R.INITIALIZING=0]="INITIALIZING",R[R.CONSTRUCTING=1]="CONSTRUCTING",R[R.CONSTRUCTED=2]="CONSTRUCTED"},34117:(nt,Ae,v)=>{"use strict";v.d(Ae,{JT:()=>Q,VZ:()=>W,tz:()=>X});var D=v(58817),R=v(62208),G=v(52323);class Z{constructor(se){this.autoDestroy=!1,this.properties=se}}function Q(de){let se=de.constructor.__accessorMetadata__;const re=Object.prototype.hasOwnProperty.call(de.constructor,"__accessorMetadata__");if(se){if(!re){const j=Object.create(se.properties),Y=se.autoDestroy;for(const ee in j)j[ee]=(0,D.d9)(j[ee]);se=new Z(j),se.autoDestroy=Y,Object.defineProperty(de.constructor,"__accessorMetadata__",{value:se,enumerable:!1,configurable:!0,writable:!0})}}else se=new Z({}),Object.defineProperty(de.constructor,"__accessorMetadata__",{value:se,enumerable:!1,configurable:!0,writable:!0});return(0,R.j0)(de.constructor.__accessorMetadata__)}function W(de,se){const re=function $(de){return Q(de).properties}(de);let j=re[se];return j||(j=re[se]={}),j}function X(de,se){return(0,G.TS)(de,se,ae)}const te=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function ae(de){return te.test(de)?"replace":"merge"}},29338:(nt,Ae,v)=>{"use strict";v.d(Ae,{$:()=>X,i:()=>H});var D=v(34595),R=v(52323),G=v(33794);function Z(te,ae,oe){if(!te||!te.read||!1===te.read.enabled||!te.read.source)return!1;const le=te.read.source;if("string"==typeof le){if(le===ae||le.includes(".")&&0===le.indexOf(ae)&&(0,D.Gg)(le,oe))return!0}else for(const de of le)if(de===ae||de.includes(".")&&0===de.indexOf(ae)&&(0,D.Gg)(de,oe))return!0;return!1}function $(te,ae,oe,le,de){let se=(0,G.HS)(ae[oe],de);(function Q(te){return te&&(!te.read||!1!==te.read.enabled&&!te.read.source)})(se)&&(te[oe]=!0);for(const re of Object.getOwnPropertyNames(ae))se=(0,G.HS)(ae[re],de),Z(se,oe,le)&&(te[re]=!0)}function W(te,ae,oe,le){const se=(0,G.hk)(oe.metadatas[ae],"any",le),re=se&&se.default;if(void 0===re)return;const j="function"==typeof re?re.call(te,ae,le):re;void 0!==j&&oe.set(ae,j)}const B={origin:"service"};function H(te,ae,oe=B){if(!ae||"object"!=typeof ae)return;const le=(0,R.vw)(te),de=le.metadatas,se={};for(const re of Object.getOwnPropertyNames(ae))$(se,de,re,ae,oe);le.setDefaultOrigin(oe.origin);for(const re of Object.getOwnPropertyNames(se)){const j=(0,G.HS)(de[re],oe).read,Y=j&&j.source;let ee;ee=Y&&"string"==typeof Y?(0,D.$z)(ae,Y):ae[re],j&&j.reader&&(ee=j.reader.call(te,ee,ae,oe)),void 0!==ee&&le.set(re,ee)}if(!oe||!oe.ignoreDefaults){le.setDefaultOrigin("defaults");for(const re of Object.getOwnPropertyNames(de))se[re]||W(te,re,le,oe)}le.setDefaultOrigin("user")}function X(te,ae,oe,le=B){const de={...le,messages:[]};oe(de),de.messages?.forEach(se=>{"warning"!==se.type||te.loaded?le&&le.messages&&le.messages.push(se):te.loadWarnings.push(se)})}},82255:(nt,Ae,v)=>{"use strict";v.d(Ae,{t:()=>Q});var D=v(26584),R=v(8314),Z=(v(63290),v(34595));function Q(H,X,te){if(H&&X)if("object"==typeof X)for(const ae of Object.getOwnPropertyNames(X))Q(H,ae,X[ae]);else{if(X.includes(".")){const oe=X.split("."),le=oe.splice(oe.length-1,1)[0];return void Q((0,Z.U2)(H,oe),le,te)}const ae=H.__accessor__;null!=ae&&function $(H,X){if((0,R.Z)("esri-unknown-property-errors")&&!function W(H,X){return null!=X.metadatas[H]}(H,X))throw new D.Z("set:unknown-property",function B(H,X){return"setting unknown property '"+H+"' on instance of "+X.host.declaredClass}(H,X))}(X,ae),H[X]=te}}},36082:(nt,Ae,v)=>{"use strict";v.d(Ae,{GF:()=>j,LJ:()=>te,gb:()=>ae,it:()=>B,mS:()=>se}),v(8314);var R=v(63290),G=v(52323),Z=v(2345);const Q={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},$=[];let W=Q;function B(ee){W.onObservableAccessed(ee)}let H=!1,X=!1;function te(ee,ie,J){if(H)return oe(ee,ie,J);le(ee);const ce=ie.call(J);return de(),ce}function ae(ee,ie){return te(Q,ee,ie)}function oe(ee,ie,J){const ce=H;H=!0,le(ee);let ue=null;try{ue=ie.call(J)}catch(pe){X&&R.Z.getLogger("esri.core.accessorSupport.tracking").error(pe)}return de(),H=ce,ue}function le(ee){W=ee,$.push(ee)}function de(){const ee=$.length;if(ee>1){const ie=$.pop();W=$[ee-2],ie.onTrackingEnd()}else if(1===ee){const ie=$.pop();W=Q,ie.onTrackingEnd()}else W=Q}function se(ee,ie){if(ie.flags&Z.v.DepTrackingInitialized)return;const J=X;X=!1,ie.flags&Z.v.AutoTracked?oe(ie,ie.metadata.get,ee):j(ee,ie),X=J}const re=[];function j(ee,ie){ie.flags&Z.v.ExplicitlyTracking||(ie.flags|=Z.v.ExplicitlyTracking,oe(ie,()=>{const J=ie.metadata.dependsOn||re;for(const ce of J)if("string"!=typeof ce||ce.includes(".")){const ue=(0,G.NI)(ce);for(let pe=0,he=ee;pe{"use strict";var D,R;v.d(Ae,{v:()=>D}),(R=D||(D={}))[R.Dirty=1]="Dirty",R[R.Overriden=2]="Overriden",R[R.Computing=4]="Computing",R[R.NonNullable=8]="NonNullable",R[R.HasDefaultValue=16]="HasDefaultValue",R[R.DepTrackingInitialized=32]="DepTrackingInitialized",R[R.AutoTracked=64]="AutoTracked",R[R.ExplicitlyTracking=128]="ExplicitlyTracking"},84395:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>G});var D=v(36082),R=v(48902);class G{constructor(Q){this._observable=new R.s,this._value=Q}get(){return(0,D.it)(this._observable),this._value}set(Q){Q!==this._value&&(this._value=Q,this._observable.notify())}}},12196:(nt,Ae,v)=>{"use strict";v.d(Ae,{X:()=>R});var D=v(85931);class R{constructor(Z,Q){this._observers=Z,this._observer=Q}remove(){(0,D.Od)(this._observers,this._observer)}}},48902:(nt,Ae,v)=>{"use strict";v.d(Ae,{s:()=>R});var D=v(12196);class R{constructor(){this._observers=[]}observe(Z){return this._observers.includes(Z)||this._observers.push(Z),new D.X(this._observers,Z)}notify(){const Z=this._observers.slice();for(let Q=0;Q{"use strict";v.d(Ae,{M:()=>D});class D{constructor(G){this._notify=G,this._accessed=[],this._handles=[],this._invalidCount=0}destroy(){this._accessed.length=0,this.clear()}onInvalidated(){this._invalidCount++}onCommitted(){const G=this._invalidCount;if(1===G)return this._invalidCount=0,void this._notify();this._invalidCount=G>0?G-1:0}onObservableAccessed(G){this._accessed.includes(G)||this._accessed.push(G)}onTrackingEnd(){const G=this._handles,Z=this._accessed;for(let Q=0;Q{"use strict";v.d(Ae,{EH:()=>W,U5:()=>Q,Xz:()=>$});var D=v(36082),R=v(819);let G=!1;const Z=[];function Q(X,te){let ae=new R.M(function de(){if(!ae||le)return;if(G)return void B(de);const re=oe;ae.clear(),G=!0,le=!0,oe=(0,D.LJ)(ae,X),le=!1,G=!1,te(oe,re),H()}),oe=null,le=!1;return le=!0,oe=(0,D.LJ)(ae,X),le=!1,{remove:function se(){ae&&(ae.destroy(),ae=null,oe=null)}}}function $(X,te){let ae=new R.M(function le(){te(oe,se)}),oe=null;function se(){return ae?(ae.clear(),oe=(0,D.LJ)(ae,X),oe):null}return se(),{remove:function de(){ae&&(ae.destroy(),ae=null),oe=null}}}function W(X){let te=new R.M(function oe(){te&&!ae&&(G?B(oe):(te.clear(),G=!0,ae=!0,(0,D.LJ)(te,X),ae=!1,G=!1,H()))}),ae=!1;return ae=!0,(0,D.LJ)(te,X),ae=!1,{remove:function le(){te&&(te.destroy(),te=null)}}}function B(X){Z.includes(X)||Z.unshift(X)}function H(){for(;Z.length;)Z.pop()()}},52323:(nt,Ae,v)=>{"use strict";v.d(Ae,{IH:()=>de,NI:()=>X,Qc:()=>le,TS:()=>W,b6:()=>Q,vw:()=>Z});var D=v(54024),R=v(58817),G=v(62208);function Z(se){return se?se.__accessor__?se.__accessor__:se.propertyInvalidated?se:null:null}function Q(se,re){return null!=se&&se.metadatas&&null!=se.metadatas[re]}function W(se,re,j){return B(se,re,j?{policy:j,path:""}:null)}function B(se,re,j){return re?Object.keys(re).reduce((Y,ee)=>{let ie=null,J="merge";if(j&&(ie=j.path?`${j.path}.${ee}`:ee,J=j.policy(ie)),"replace"===J)return Y[ee]=re[ee],Y;if(void 0===Y[ee])return Y[ee]=(0,R.d9)(re[ee]),Y;let ce=Y[ee],ue=re[ee];if(ce===ue)return Y;if(Array.isArray(ue)||Array.isArray(Y))ce=Y[ee]=ce?Array.isArray(ce)?ce.concat():[ce]:[],ue&&(Array.isArray(ue)||(ue=[ue]),ue.forEach(pe=>{ce.includes(pe)||ce.push(pe)}));else if(ue&&"object"==typeof ue)if(j){const pe=j.path;j.path=(0,G.j0)(ie),Y[ee]=B(ce,ue,j),j.path=pe}else Y[ee]=B(ce,ue,null);else Y.hasOwnProperty(ee)&&!re.hasOwnProperty(ee)||(Y[ee]=ue);return Y},se||{}):se}function X(se){return Array.isArray(se)?se:se.split(".")}function te(se){return se.includes(",")?se.split(",").map(re=>re.trim()):[se.trim()]}function le(se,re,j,Y){const ee=function ae(se){if(Array.isArray(se)){const re=[];for(const j of se)re.push(...te(j));return re}return te(se)}(re);if(1!==ee.length){const ie=ee.map(J=>Y(se,J,j));return(0,D.AL)(ie)}return Y(se,ee[0],j)}function de(se){let re=!1;return()=>{re||(re=!0,se())}}},30755:(nt,Ae,v)=>{"use strict";v.d(Ae,{BT:()=>re,Fs:()=>ie,NC:()=>ge,YP:()=>ue,aQ:()=>me});var X,_e,D=v(35575),R=v(58817),G=v(94530),Z=v(50618),Q=v(28862),$=v(86236),W=v(34595),B=v(21352),H=v(52323);(_e=X||(X={}))[_e.Untracked=0]="Untracked",_e[_e.Tracked=1]="Tracked";class te{constructor(){this.uid=(0,$.D)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(Ee,De,be,Se,ye){return this.pool.acquire(X.Untracked,Ee,De,be,Se,ye,R.fS)}static acquireTracked(Ee,De,be,Se){return this.pool.acquire(X.Tracked,Ee,De,be,null,null,Se)}notify(Ee,De){this.type===X.Untracked?this.callback.call(this.target,Ee,De,this.path,this.target):this.callback.call(null,Ee,De)}acquire(Ee,De,be,Se,ye,ve,xe){this.uid=(0,$.D)(),this.removed=!1,this.type=Ee,this.oldValue=De,this.callback=be,this.getValue=Se,this.target=ye,this.path=ve,this.equals=xe}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,$.D)(),this.removed=!0}}te.pool=new G.e(te);const ae=new D.Z,oe=new Set;let le;function de(_e){oe.delete(_e),oe.add(_e),le||(le=(0,Z.Os)(j))}function se(_e){if(_e.removed)return;const Ee=_e.oldValue,De=_e.getValue();_e.equals(Ee,De)||(_e.oldValue=De,_e.notify(De,Ee))}function re(_e){for(const Ee of oe.values())Ee.target===_e&&(Ee.removed=!0)}function j(){let _e=10;for(;le&&_e--;){le=null;const Ee=Y(),De=ae.acquire();for(const be of Ee){const Se=be.uid;se(be),Se===be.uid&&be.removed&&De.push(be)}for(const be of oe)be.removed&&(De.push(be),oe.delete(be));for(const be of De)te.pool.release(be);ae.release(De),ae.release(Ee),ee.forEach(be=>be())}}function Y(){const _e=ae.acquire();_e.length=oe.size;let Ee=0;for(const De of oe)_e[Ee]=De,++Ee;return oe.clear(),_e}const ee=new Set;function ie(_e){return ee.add(_e),{remove(){ee.delete(_e)}}}function ue(_e,Ee,De,be=!1){return!_e.__accessor__||_e.__accessor__.destroyed?{remove(){}}:be?function ce(_e,Ee,De){const be=(0,H.Qc)(_e,Ee,De,(Se,ye,ve)=>{let xe=!1;return(0,B.U5)(()=>(0,W.$z)(Se,ye),(ze,Ke)=>{Se.__accessor__.destroyed?be.remove():xe||(xe=!0,(0,R.fS)(Ke,ze)||ve.call(Se,ze,Ke,ye,Se),xe=!1)})});return be}(_e,Ee,De):function J(_e,Ee,De){let be=(0,H.Qc)(_e,Ee,De,(Se,ye,ve)=>{let xe,ze,Ke=(0,B.Xz)(()=>(0,W.$z)(Se,ye),(We,Ce)=>{Se.__accessor__.destroyed||xe&&xe.uid!==ze?be.remove():(xe||(xe=te.acquireUntracked(We,ve,Ce,Se,ye),ze=xe.uid),de(xe))});return{remove:(0,H.IH)(()=>{Ke.remove(),xe&&(xe.uid!==ze||xe.removed||(xe.removed=!0,de(xe)),xe=null),be=Ke=null})}});return be}(_e,Ee,De)}function me(_e,Ee,De=!1,be=R.y7){return De?function he(_e,Ee,De){let be=!1;return(0,B.U5)(_e,(Se,ye)=>{be||(be=!0,De(ye,Se)||Ee(Se,ye),be=!1)})}(_e,Ee,be):function pe(_e,Ee,De){let be,Se,ye=(0,B.Xz)(_e,(ve,xe)=>{be&&be.uid!==Se?ye.remove():(be||(be=te.acquireTracked(ve,Ee,xe,De),Se=be.uid),de(be))});return{remove:(0,H.IH)(()=>{ye.remove(),be&&(be.uid!==Se||be.removed||(be.removed=!0,de(be)),be=null),ye=null})}}(_e,Ee,be)}function ge(_e){return(0,Q.f)(oe,Ee=>Ee.oldValue===_e)}},36054:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>te,d:()=>X});var D=v(85931),R=v(26584),G=v(63290),Z=v(31283),Q=v(52323),$=v(33794);function W(ae,oe,le,de,se){const re={};return oe.write?.writer?.call(ae,de,re,le,se),re}function B(ae,oe,le,de,se,re){if(!de||!de.write)return!1;const j=ae.get(le);if(!se&&de.write.overridePolicy){const Y=de.write.overridePolicy.call(ae,j,le,re);void 0!==Y&&(se=Y)}if(se||(se=de.write),!se||!1===se.enabled)return!1;if((null===j&&!se.allowNull&&!se.writerEnsuresNonNull||void 0===j)&&se.isRequired){const Y=new R.Z("web-document-write:property-required",`Missing value for required property '${le}' on '${ae.declaredClass}'`,{propertyName:le,target:ae});return Y&&re&&re.messages?re.messages.push(Y):Y&&!re&&G.Z.getLogger("esri.core.accessorSupport.write").error(Y.name,Y.message),!1}return!(void 0===j||null===j&&!se.allowNull&&!se.writerEnsuresNonNull||(!oe.store.multipleOriginsSupported||oe.store.originOf(le)===Z.s3.DEFAULTS)&&function H(ae,oe,le,de,se){const re=de.default;if(void 0===re)return!1;if(null!=de.defaultEquals)return de.defaultEquals(se);if("function"==typeof re){if(Array.isArray(se)){const j=re.call(ae,oe,le);return(0,D.fS)(j,se)}return!1}return re===se}(ae,le,re,de,j)||!se.ignoreOrigin&&re&&re.origin&&oe.store.multipleOriginsSupported&&oe.store.originOf(le)<(0,Z.M9)(re.origin))}function X(ae,oe,le,de){const se=(0,Q.vw)(ae),j=(0,$.Ah)(se.metadatas[oe],de);return!!j&&B(ae,se,oe,j,le,de)}function te(ae,oe,le){if(ae&&"function"==typeof ae.toJSON&&(!ae.toJSON.isDefaultToJSON||!ae.write))return(0,Q.TS)(oe,ae.toJSON(le));const de=(0,Q.vw)(ae),se=de.metadatas;for(const re in se){const j=(0,$.Ah)(se[re],le);if(!B(ae,de,re,j,void 0,le))continue;const Y=ae.get(re),ee=W(ae,j,j.write&&"string"==typeof j.write.target?j.write.target:re,Y,le);Object.keys(ee).length>0&&(oe=(0,Q.TS)(oe,ee),le?.resources?.pendingOperations?.length&&Promise.all(le.resources.pendingOperations).then(()=>(0,Q.TS)(oe,ee)),le&&le.writtenProperties&&le.writtenProperties.push({target:ae,propName:re,oldOrigin:(0,Z.Wm)(de.store.originOf(re)),newOrigin:le.origin}))}return oe}},85931:(nt,Ae,v)=>{"use strict";v.d(Ae,{$A:()=>j,FY:()=>pe,Ms:()=>De,Od:()=>Ee,SO:()=>ee,TV:()=>ge,Tw:()=>B,Vx:()=>X,a9:()=>se,cq:()=>J,e$:()=>ce,e5:()=>te,fS:()=>H,vr:()=>le,w6:()=>re,zG:()=>oe});var D=v(62208),R=v(4619);function B(be,Se){return be.filter(Se?(ye,ve,xe)=>xe.findIndex(Se.bind(null,ye))===ve:(ye,ve,xe)=>xe.indexOf(ye)===ve)}function H(be,Se,ye){if((0,D.Wi)(be)&&(0,D.Wi)(Se))return!0;if((0,D.Wi)(be)||(0,D.Wi)(Se)||be.length!==Se.length)return!1;if(ye){for(let ve=0;ve!be.some(Ke=>ye(Ke,ze))),xe=be.filter(ze=>!Se.some(Ke=>ye(Ke,ze)))):(ve=Se.filter(ze=>!be.includes(ze)),xe=be.filter(ze=>!Se.includes(ze))),{added:ve,removed:xe}}function oe(be){return be&&"number"==typeof be.length}function le(be,Se){const ye=be.length;if(0===ye)return[];const ve=[];for(let xe=0;xebe[We]?xe=We+1:ze=We}const Ke=be[xe];return ye?Se>=be[ve-1]?-1:Ke===Se?xe:xe-1:Ke===Se?xe:-1}class ee{constructor(){this.last=0}}const ie=new ee;function J(be,Se,ye,ve){ve=ve||ie;const xe=Math.max(0,ve.last-10);for(let Ke=xe;Ke_e.getFloat()):Math.random}(Se);for(let ve=be.length-1;ve>0;ve--){const xe=Math.floor(ye()*(ve+1)),ze=be[ve];be[ve]=be[xe],be[xe]=ze}return be}const _e=new R.Z;function Ee(be,Se){const ye=be.indexOf(Se);return-1!==ye?(be.splice(ye,1),Se):null}function De(be,Se){const ye=new Map,ve=be.length;for(let xe=0;xe{"use strict";v.d(Ae,{Ed:()=>X,UI:()=>te,mt:()=>Y,q6:()=>re,vr:()=>J,w6:()=>ie});var D=v(15861),R=v(17626),G=v(14517),Z=v(62208),Q=v(10699),$=v(77712),H=(v(85931),v(90912),v(76898));function X(ue,pe,he){return(0,Q.as)(ue.map((me,ge)=>pe.apply(he,[me,ge])))}function te(ue,pe,he){return ae.apply(this,arguments)}function ae(){return(ae=(0,D.Z)(function*(ue,pe,he){return(yield(0,Q.as)(ue.map((me,ge)=>pe.apply(he,[me,ge])))).map(me=>me.value)})).apply(this,arguments)}function oe(ue){return{ok:!0,value:ue}}function le(ue){return{ok:!1,error:ue}}function re(ue){return j.apply(this,arguments)}function j(){return(j=(0,D.Z)(function*(ue){if((0,Z.Wi)(ue))return{ok:!1,error:new Error("no promise provided")};try{return oe(yield ue)}catch(pe){return le(pe)}})).apply(this,arguments)}function Y(ue){return ee.apply(this,arguments)}function ee(){return(ee=(0,D.Z)(function*(ue){try{return oe(yield ue)}catch(pe){return(0,Q.r9)(pe),le(pe)}})).apply(this,arguments)}function ie(ue){if(!0===ue.ok)return ue.value;throw ue.error}function J(ue,pe){return new ce(ue,pe)}let ce=class extends G.Z{constructor(ue,pe){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,Z.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:he}=this._abortController;this.promise=ue(he),this.promise.then(me=>{this._result=oe(me),this._cleanup()},me=>{this._result=le(me),this._cleanup()}),this._abortHandle=(0,Q.fu)(pe,this.abort)}get value(){return function de(ue){return(0,Z.pC)(ue)&&!0===ue.ok?ue.value:null}(this._result)}get error(){return function se(ue){return(0,Z.pC)(ue)&&!1===ue.ok?ue.error:null}(this._result)}get finished(){return(0,Z.pC)(this._result)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,Z.hw)(this._abortHandle),this._abortController=null}};(0,R._)([(0,$.Cb)()],ce.prototype,"value",null),(0,R._)([(0,$.Cb)()],ce.prototype,"error",null),(0,R._)([(0,$.Cb)()],ce.prototype,"finished",null),(0,R._)([(0,$.Cb)()],ce.prototype,"promise",void 0),(0,R._)([(0,$.Cb)()],ce.prototype,"_result",void 0),ce=(0,R._)([(0,H.j)("esri.core.asyncUtils.ReactiveTask")],ce)},27306:(nt,Ae,v)=>{"use strict";function D(te){return 32+te.length}function R(te){return 16}function G(te){if(!te)return 0;let ae=B;for(const oe in te)if(te.hasOwnProperty(oe)){const le=te[oe];switch(typeof le){case"string":ae+=D(le);break;case"number":ae+=16;break;case"boolean":ae+=4}}return ae}function Z(te){if(!te)return 0;if(Array.isArray(te))return function Q(te){const ae=te.length;if(0===ae||"number"==typeof te[0])return 32+8*ae;let oe=H;for(let le=0;leR,Ul:()=>Z,Y8:()=>X,do:()=>W,f2:()=>G,hH:()=>D});const B=32,H=32;var X,te;(te=X||(X={}))[te.KILOBYTES=1024]="KILOBYTES",te[te.MEGABYTES=1048576]="MEGABYTES",te[te.GIGABYTES=1073741824]="GIGABYTES"},84244:(nt,Ae,v)=>{"use strict";v.d(Ae,{m:()=>R});const R=function D(G){return{setTimeout:(Z,Q)=>{const $=G.setTimeout(Z,Q);return{remove:()=>G.clearTimeout($)}}}}(globalThis)},89726:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>G,Z:()=>R});var D=v(46160);function R(Q,$,W=D.Z){return $||($=new W),$===Q||($.removeAll(),function Z(Q){return Q&&(Array.isArray(Q)||"items"in Q&&Array.isArray(Q.items))}(Q)?$.addMany(Q):Q&&$.add(Q)),$}function G(Q){return Q}},78260:(nt,Ae,v)=>{"use strict";function R(me){return"h"in me&&"s"in me&&"v"in me}function G(me){return"l"in me&&"a"in me&&"b"in me}function Z(me){return"l"in me&&"c"in me&&"h"in me}v.d(Ae,{Y3:()=>ce,_Y:()=>J,sJ:()=>ue,xr:()=>ie});const $=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],W=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function B(me,ge){const _e=[];let Ee,De;if(me[0].length!==ge.length)throw"dimensions do not match";const be=me.length,Se=me[0].length;let ye=0;for(Ee=0;EeEe<=.04045?Ee/12.92:((Ee+.055)/1.055)**2.4),_e=B($,ge);return{x:100*_e[0],y:100*_e[1],z:100*_e[2]}}function X(me){const ge=B(W,[me.x/100,me.y/100,me.z/100]).map(_e=>Math.min(1,Math.max(_e<=.0031308?12.92*_e:1.055*_e**.4166666666666667-.055,0)));return{r:Math.round(255*ge[0]),g:Math.round(255*ge[1]),b:Math.round(255*ge[2])}}function te(me){const ge=[me.x/95.047,me.y/100,me.z/108.883].map(_e=>_e>.008856451679035631?_e**.3333333333333333:7.787037037037035*_e+.13793103448275862);return{l:116*ge[1]-16,a:500*(ge[0]-ge[1]),b:200*(ge[1]-ge[2])}}function ae(me){const ge=me.l,_e=[(ge+16)/116+me.a/500,(ge+16)/116,(ge+16)/116-me.b/200].map(Ee=>Ee>6/29?Ee**3:3*(6/29)**2*(Ee-4/29));return{x:95.047*_e[0],y:100*_e[1],z:108.883*_e[2]}}function ie(me){return function D(me){return"r"in me&&"g"in me&&"b"in me}(me)?me:Z(me)?function j(me){return X(ae(function le(me){const _e=me.c,Ee=me.h;return{l:me.l,a:_e*Math.cos(Ee),b:_e*Math.sin(Ee)}}(me)))}(me):G(me)?function se(me){return X(ae(me))}(me):function Q(me){return"x"in me&&"y"in me&&"z"in me}(me)?X(me):R(me)?function ee(me){const ge=(me.h+360)%360/60,Ee=me.v/100*255,De=Ee*(me.s/100),be=De*(1-Math.abs(ge%2-1));let Se;switch(Math.floor(ge)){case 0:Se={r:De,g:be,b:0};break;case 1:Se={r:be,g:De,b:0};break;case 2:Se={r:0,g:De,b:be};break;case 3:Se={r:0,g:be,b:De};break;case 4:Se={r:be,g:0,b:De};break;case 5:case 6:Se={r:De,g:0,b:be};break;default:Se={r:0,g:0,b:0}}return Se.r=Math.round(Se.r+Ee-De),Se.g=Math.round(Se.g+Ee-De),Se.b=Math.round(Se.b+Ee-De),Se}(me):me}function J(me){return R(me)?me:function Y(me){const ge=me.r,_e=me.g,Ee=me.b,De=Math.max(ge,_e,Ee),be=De-Math.min(ge,_e,Ee);let Se=De,ye=0===be?0:De===ge?(_e-Ee)/be%6:De===_e?(Ee-ge)/be+2:(ge-_e)/be+4,ve=0===be?0:be/Se;return ye<0&&(ye+=6),ye*=60,ve*=100,Se*=100/255,{h:ye,s:ve,v:Se}}(ie(me))}function ce(me){return G(me)?me:function de(me){return te(H(me))}(ie(me))}function ue(me){return Z(me)?me:function re(me){return function oe(me){const ge=me.l,_e=me.a,Ee=me.b,De=Math.sqrt(_e*_e+Ee*Ee);let be=Math.atan2(Ee,_e);return be=be>0?be:be+2*Math.PI,{l:ge,c:De,h:be}}(te(H(me)))}(ie(me))}},94573:(nt,Ae,v)=>{"use strict";function R(Q){}function Z(Q){return()=>Q}v.d(Ae,{Bg:()=>R,sM:()=>Z}),v(8314)},55538:(nt,Ae,v)=>{"use strict";v.d(Ae,{Mr:()=>$,x9:()=>W});var D=v(8314);const R=new Set;function $(B,H,X={}){if((0,D.Z)("esri-deprecation-warnings")){const{moduleName:te}=X;W(B,"Property: "+(te?te+"::":"")+H,X)}}function W(B,H,X={}){if((0,D.Z)("esri-deprecation-warnings")){const{replacement:te,version:ae,see:oe,warnOnce:le}=X;let de=H;te&&(de+=`\n\t\u{1f6e0}\ufe0f Replacement: ${te}`),ae&&(de+=`\n\t\u2699\ufe0f Version: ${ae}`),oe&&(de+=`\n\t\u{1f517} See ${oe} for more details.`),function G(B,H,X=!1){X&&R.has(H)||(X&&R.add(H),B.warn(`\u{1f6d1} DEPRECATED - ${H}`))}(B,de,le)}}},83100:(nt,Ae,v)=>{"use strict";function D(H){return H=H||globalThis.location.hostname,B.some(X=>null!=H?.match(X))}function R(H,X){return H&&(X=X||globalThis.location.hostname)?null!=X.match(Z)||null!=X.match($)?H.replace("static.arcgis.com","staticdev.arcgis.com"):null!=X.match(Q)||null!=X.match(W)?H.replace("static.arcgis.com","staticqa.arcgis.com"):H:H}v.d(Ae,{XO:()=>D,pJ:()=>R});const Z=/^devext.arcgis.com$/,Q=/^qaext.arcgis.com$/,$=/^[\w-]*\.mapsdevext.arcgis.com$/,W=/^[\w-]*\.mapsqa.arcgis.com$/,B=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local.esri.com$/,Z,Q,/^jsapps.esri.com$/,$,W]},40764:(nt,Ae,v)=>{"use strict";function D(B){return"string"==typeof B?document.getElementById(B):B??null}function R(B){for(;B.hasChildNodes();)B.removeChild(B.firstChild)}function Z(B,H){const X=H.parentNode;X&&X.insertBefore(B,H)}function Q(B,H){for(;;){const X=B.firstChild;if(!X)break;H.appendChild(X)}}v.d(Ae,{L7:()=>D,Vt:()=>Z,YD:()=>Q,cS:()=>R}),(()=>{if("function"==typeof Element.prototype.closest)return(H,X)=>H.closest(X);Element.prototype.matches||Element})()},17770:(nt,Ae,v)=>{"use strict";function D(W){return W&&("function"==typeof W.on||"function"==typeof W.addEventListener)}function R(W,B,H){if(!D(W))throw new TypeError("target is not a Evented or EventTarget object");if("on"in W)return W.on(B,H);if(Array.isArray(B)){const X=B.slice();for(const te of X)W.addEventListener(te,H);return{remove(){for(const te of X)W.removeEventListener(te,H)}}}return W.addEventListener(B,H),{remove(){W.removeEventListener(B,H)}}}function G(W,B,H){if(!D(W))throw new TypeError("target is not a Evented or EventTarget object");if("once"in W)return W.once(B,H);const X=R(W,B,te=>{X.remove(),H.call(W,te)});return{remove(){X.remove()}}}v.d(Ae,{IH:()=>G,kK:()=>$,on:()=>R,vT:()=>D});const Q={Win:"Meta",Scroll:"ScrollLock",Spacebar:" ",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Del:"Delete",Apps:"ContextMenu",Esc:"Escape",Multiply:"*",Add:"+",Subtract:"-",Decimal:".",Divide:"/"};function $({key:W}){return Q[W]||W}},36161:(nt,Ae,v)=>{"use strict";v.d(Ae,{I:()=>R,v:()=>G});var D=v(21286);function R(B,H,X=0){const te=(0,D.uZ)(B,0,$);for(let ae=0;ae<4;ae++)H[X+ae]=Math.floor(256*W(te*Z[ae]))}function G(B,H=0){let X=0;for(let te=0;te<4;te++)X+=B[H+te]*Q[te];return X}const Z=[1,256,65536,16777216],Q=[1/256,1/65536,1/16777216,1/4294967296],$=G(new Uint8ClampedArray([255,255,255,255]));function W(B){return B-Math.floor(B)}},54024:(nt,Ae,v)=>{"use strict";v.d(Ae,{AL:()=>R,ed:()=>Q,kB:()=>G});var D=v(62208);function R(B){return G(()=>B.forEach(H=>(0,D.pC)(H)&&H.remove()))}function G(B){return{remove:()=>{B&&(B(),B=void 0)}}}function Q(B){return G((0,D.pC)(B)?()=>B.destroy():void 0)}},8314:(nt,Ae,v)=>{"use strict";let D;function R(G){return"function"==typeof D[G]?D[G]=D[G](globalThis):D[G]}v.d(Ae,{Z:()=>R}),D=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},R.add=(G,Z,Q,$)=>(($||void 0===D[G])&&(D[G]=Z),Q&&R(G)),R.cache=D,R.add("esri-deprecation-warnings",!0),(()=>{R.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const G=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(R.add("host-browser",G),R.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),R.add("dom",G),R("host-browser")){const Z=navigator,Q=Z.userAgent,$=Z.appVersion,W=parseFloat($);if(R.add("wp",parseFloat(Q.split("Windows Phone")[1])||void 0),R.add("msapp",parseFloat(Q.split("MSAppHost/")[1])||void 0),R.add("khtml",$.includes("Konqueror")?W:void 0),R.add("edge",parseFloat(Q.split("Edge/")[1])||void 0),R.add("opr",parseFloat(Q.split("OPR/")[1])||void 0),R.add("webkit",!R("wp")&&!R("edge")&&parseFloat(Q.split("WebKit/")[1])||void 0),R.add("chrome",!R("edge")&&!R("opr")&&parseFloat(Q.split("Chrome/")[1])||void 0),R.add("android",!R("wp")&&parseFloat(Q.split("Android ")[1])||void 0),R.add("safari",!$.includes("Safari")||R("wp")||R("chrome")||R("android")||R("edge")||R("opr")?void 0:parseFloat($.split("Version/")[1])),R.add("mac",$.includes("Macintosh")),!R("wp")&&Q.match(/(iPhone|iPod|iPad)/)){const B=RegExp.$1.replace(/P/,"p"),H=Q.match(/OS ([\d_]+)/)?RegExp.$1:"1",X=parseFloat(H.replace(/_/,".").replace(/_/g,""));R.add(B,X),R.add("ios",X)}R.add("trident",parseFloat($.split("Trident/")[1])||void 0),R("webkit")||(!Q.includes("Gecko")||R("wp")||R("khtml")||R("trident")||R("edge")||R.add("mozilla",W),R("mozilla")&&R.add("ff",parseFloat(Q.split("Firefox/")[1]||Q.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const G=navigator.userAgent,Z=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(G),Q=/iPhone/i.test(G);Z&&R.add("esri-mobile",Z),Q&&R.add("esri-iPhone",Q),R.add("esri-geolocation",!!navigator.geolocation)}R.add("esri-canvas-svg-support",!R("trident")),R.add("esri-wasm","WebAssembly"in globalThis),R.add("esri-shared-array-buffer",()=>{const G="SharedArrayBuffer"in globalThis,Z=!1===globalThis.crossOriginIsolated;return G&&!Z}),R.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),R.add("esri-atomics","Atomics"in globalThis),R.add("esri-workers","Worker"in globalThis),R.add("web-feat:cache","caches"in globalThis),R.add("esri-workers-arraybuffer-transfer",!R("safari")||Number(R("safari"))>=12),R.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),R.add("featurelayer-simplify-payload-size-factors",[1,1,4]),R.add("featurelayer-snapshot-enabled",!0),R.add("featurelayer-snapshot-point-min-threshold",8e4),R.add("featurelayer-snapshot-point-max-threshold",4e5),R.add("featurelayer-snapshot-point-coverage",.1),R.add("featurelayer-advanced-symbols",!1),R.add("featurelayer-pbf",!0),R.add("featurelayer-pbf-statistics",!1),R.add("feature-layers-workers",!0),R.add("feature-polyline-generalization-factor",1),R.add("mapview-transitions-duration",200),R.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),R.add("mapserver-pbf-enabled",!1),R.add("mapimagelayer-popup-identify-max-tolerance",20),R.add("heatmap-allow-raster-fallback",!0),R.add("heatmap-force-raster",!1),R("host-webworker")||R("host-browser")&&(R.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),R.add("esri-image-decode",()=>{if("decode"in new Image){const G=new Image;return G.src='data:image/svg+xml;charset=UTF-8,',void G.decode().then(()=>{R.add("esri-image-decode",!0,!0,!0)}).catch(()=>{R.add("esri-image-decode",!1,!0,!0)})}return!1}),R.add("esri-url-encodes-apostrophe",()=>{const G=window.document.createElement("a");return G.href="?'",G.href.includes("?%27")}))})()},90740:(nt,Ae,v)=>{"use strict";v.d(Ae,{J:()=>Z,r:()=>G});let D=null,R=!0;function G(W,B,H){if(!W||!B)throw new Error("Cannot construct image data without dimensions");if(R)try{return new ImageData(W,B)}catch{R=!1}return $(W,B,H)}function Z(W,B,H,X){if(!B||!H)throw new Error("Cannot construct image data without dimensions");if(R)try{return new ImageData(W,B,H)}catch{R=!1}const te=$(B,H,X);return te.data.set(W,0),te}function $(W,B,H){return H||(H=function Q(){return D||(D=document.createElement("canvas"),D.width=1,D.height=1),D}()),H.getContext("2d").createImageData(W,B)}},56354:(nt,Ae,v)=>{"use strict";function D(Z){const Q=[];return function*(){yield*Q;for(const $ of Z)Q.push($),yield $}}function R(Z,Q){for(const $ of Z)if(null!=$&&Q($))return $}function G(Z){return null!=Z&&"function"==typeof Z[Symbol.iterator]}v.d(Ae,{Fs:()=>D,TW:()=>G,sE:()=>R})},2076:(nt,Ae,v)=>{"use strict";v.d(Ae,{X:()=>R,w:()=>G});var D=v(94113);class R{constructor(Q,$={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=Q,this._options=$,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(Q),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=W=>this.fromJSON(W),this.write=(W,B,H)=>{const X=this.toJSON(W);void 0!==X&&(0,D.RB)(H,X,B)},this.write.isJSONMapWriter=!0}toJSON(Q){if(this._apiToJSON.hasOwnProperty(Q)){const $=this._apiToJSON[Q];return this._options.useNumericKeys?+$:$}return this._options.ignoreUnknown?void 0:Q}fromJSON(Q){return this._jsonToAPI.hasOwnProperty(Q)?this._jsonToAPI[Q]:this._options.ignoreUnknown?void 0:Q}_invertMap(Q){const $={};for(const W in Q)$[Q[W]]=W;return $}_getKeysSorted(Q){const $=[];for(const W in Q)$.push(W);return $.sort(),$}}function G(){return function(Z,Q){return new R(Z,{ignoreUnknown:!0,...Q})}}},58817:(nt,Ae,v)=>{"use strict";v.d(Ae,{Vo:()=>$,d9:()=>Q,fS:()=>ae,y7:()=>oe,yd:()=>Z});var D=v(85931),R=v(62208),G=v(55713);function Z(re,j){let Y;if(j)for(Y in re)re.hasOwnProperty(Y)&&(void 0===re[Y]?delete re[Y]:re[Y]instanceof Object&&Z(re[Y],!0));else for(Y in re)re.hasOwnProperty(Y)&&void 0===re[Y]&&delete re[Y];return re}function Q(re){if(!re||"object"!=typeof re||"function"==typeof re)return re;const j=te(re);if((0,R.pC)(j))return j;if(W(re))return re.clone();if(B(re))return re.map(Q);if(H(re))return re.clone();const Y={};for(const ee of Object.getOwnPropertyNames(re))Y[ee]=Q(re[ee]);return Y}function $(re){if(!re||"object"!=typeof re||"function"==typeof re||"HTMLElement"in globalThis&&re instanceof HTMLElement)return re;const j=te(re);if((0,R.pC)(j))return j;if(B(re)){let Y=!0;const ee=re.map(ie=>{const J=$(ie);return null!=ie&&null==J&&(Y=!1),J});return Y?ee:null}if(W(re))return re.clone();if(!H(re)){const Y=new(Object.getPrototypeOf(re).constructor);for(const ee of Object.getOwnPropertyNames(re)){const ie=re[ee],J=$(ie);if(null!=ie&&null==J)return null;Y[ee]=J}return Y}return null}function W(re){return"function"==typeof re.clone}function B(re){return"function"==typeof re.map&&"function"==typeof re.forEach}function H(re){return"function"==typeof re.notifyChange&&"function"==typeof re.watch}function X(re){if("[object Object]"!==Object.prototype.toString.call(re))return!1;const j=Object.getPrototypeOf(re);return null===j||j===Object.prototype}function te(re){if((0,G.W0)(re)||(0,G.lq)(re)||(0,G.KZ)(re)||(0,G.z3)(re)||(0,G.Uc)(re)||(0,G.Hx)(re)||(0,G.ZY)(re)||(0,G.xZ)(re)||(0,G.fS)(re))return(0,G.tP)(re);if(re instanceof Date)return new Date(re.getTime());if(re instanceof ArrayBuffer)return re.slice(0,re.byteLength);if(re instanceof Map){const j=new Map;for(const[Y,ee]of re)j.set(Y,Q(ee));return j}if(re instanceof Set){const j=new Set;for(const Y of re)j.add(Q(Y));return j}return null}function ae(re,j){return re===j||"number"==typeof re&&isNaN(re)&&"number"==typeof j&&isNaN(j)||"function"==typeof(re||{}).getTime&&"function"==typeof(j||{}).getTime&&re.getTime()===j.getTime()||!1}function oe(re,j){return re===j||(null==re||"string"==typeof re?re===j:"number"==typeof re?re===j||"number"==typeof j&&isNaN(re)&&isNaN(j):re instanceof Date?j instanceof Date&&re.getTime()===j.getTime():Array.isArray(re)?Array.isArray(j)&&(0,D.fS)(re,j):re instanceof Set?j instanceof Set&&function de(re,j){if(re.size!==j.size)return!1;for(const Y of re)if(!j.has(Y))return!1;return!0}(re,j):re instanceof Map?j instanceof Map&&function se(re,j){if(re.size!==j.size)return!1;for(const[Y,ee]of re){const ie=j.get(Y);if(ie!==ee||void 0===ie&&!j.has(Y))return!1}return!0}(re,j):!!X(re)&&X(j)&&function le(re,j){if(null===re||null===j)return!1;const Y=Object.keys(re);if(null===j||Object.keys(j).length!==Y.length)return!1;for(const ee of Y)if(re[ee]!==j[ee]||!Object.prototype.hasOwnProperty.call(j,ee))return!1;return!0}(re,j))}},75957:(nt,Ae,v)=>{"use strict";function G(Z){return function D(Z){return Z instanceof Float32Array&&Z.length>=2}(Z)||function R(Z){return Array.isArray(Z)&&Z.length>=2}(Z)}v.d(Ae,{lM:()=>G})},47877:(nt,Ae,v)=>{"use strict";v.d(Ae,{G:()=>$,w:()=>B});var D=v(15861),R=v(59213),G=v(46160),Z=v(47996),Q=v(62208);function $(te,ae){return W.apply(this,arguments)}function W(){return(W=(0,D.Z)(function*(te,ae){return yield te.load(),B(te,ae)})).apply(this,arguments)}function B(te,ae){return H.apply(this,arguments)}function H(){return H=(0,D.Z)(function*(te,ae){const oe=[],le=(...se)=>{for(const re of se)(0,Q.Wi)(re)||(Array.isArray(re)?le(...re):G.Z.isCollection(re)?re.forEach(j=>le(j)):Z.Z.isLoadable(re)&&oe.push(re))};ae(le);let de=null;if(yield(0,R.UI)(oe,function(){var se=(0,D.Z)(function*(re){!1!==(yield(0,R.q6)(X(re)?re.loadAll():re.load())).ok||de||(de=re)});return function(re){return se.apply(this,arguments)}}()),de)throw de.loadError;return te}),H.apply(this,arguments)}function X(te){return"loadAll"in te&&"function"==typeof te.loadAll}},21286:(nt,Ae,v)=>{"use strict";v.d(Ae,{BV:()=>oe,CW:()=>_e,H:()=>be,Kt:()=>se,Sf:()=>Z,Vl:()=>ae,W8:()=>re,Y8:()=>pe,ZF:()=>de,_3:()=>ye,b_:()=>le,fp:()=>B,jE:()=>Ee,oK:()=>he,oc:()=>Se,sk:()=>H,t7:()=>X,uZ:()=>Q,wt:()=>W});var D=v(84161),R=v(993);const G=new Float32Array(1);function Z(ve){--ve;for(let xe=1;xe<32;xe<<=1)ve|=ve>>xe;return ve+1}function Q(ve,xe,ze){return Math.min(Math.max(ve,xe),ze)}function W(ve){return 0==(ve&ve-1)}function B(ve){return ve--,ve|=ve>>1,ve|=ve>>2,ve|=ve>>4,ve|=ve>>8,ve|=ve>>16,++ve}function H(ve){return 10**Math.ceil(Math.LOG10E*Math.log(ve))}function X(ve,xe,ze){return ve+(xe-ve)*ze}function ae(ve){return ve*Math.PI/180}function oe(ve){return 180*ve/Math.PI}function le(ve,xe=1e-6){return(ve<0?-1:1)/Math.max(Math.abs(ve),xe)}function de(ve){return Math.acos(Q(ve,-1,1))}function se(ve){return Math.asin(Q(ve,-1,1))}function re(ve,xe,ze=1e-6){return ve===xe||!(!Number.isFinite(ve)||!Number.isFinite(xe))&&(ve>xe?ve-xe:xe-ve)<=ze}const j=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const ie=BigInt("1000000");function pe(ve,xe,ze=1e-6){if(ve===xe)return!0;if(!Number.isFinite(ve)||!Number.isFinite(xe))return!1;const Ke=Math.abs(ve-xe),We=Math.abs(ve),Ce=Math.abs(xe);if(0===ve||0===xe||We<1e-12&&Ce<1e-12){if(Ke>.01*ze)return!1}else if(Ke/(We+Ce)>ze)return!1;return!0}function he(ve){return me(Math.max(-ye,Math.min(ve,ye)))}function me(ve){return G[0]=ve,G[0]}function _e(ve,xe,ze){const Ke=Q((ze-ve)/(xe-ve),0,1);return Ke*Ke*(3-2*Ke)}function Ee(ve,xe){const ze=(0,D.l)(ve),Ke=se(ve[2]/ze),We=Math.atan2(ve[1]/ze,ve[0]/ze);return(0,D.s)(xe,ze,Ke,We),xe}function be(ve,xe,ze){return(0,R.s)(ve,xe[0],xe[1],xe[2],xe[3]*ze)}function Se(ve){const ze=ve[3]*ve[3]+ve[4]*ve[4]+ve[5]*ve[5],Ke=ve[6]*ve[6]+ve[7]*ve[7]+ve[8]*ve[8];return!(re(ve[0]*ve[0]+ve[1]*ve[1]+ve[2]*ve[2],1)&&re(ze,1)&&re(Ke,1))}!function ce(ve){const xe=function Y(ve){return j.setFloat64(0,ve),j.getBigInt64(0)}(ve=Math.abs(ve)),ze=function ee(ve){return j.setBigInt64(0,ve),j.getFloat64(0)}(xe<=ie?ie:xe-ie);return Math.abs(ve-ze)}(1);const ye=me(34028234663852886e22)},62208:(nt,Ae,v)=>{"use strict";v.d(Ae,{Fd:()=>Y,IM:()=>le,JR:()=>ee,M2:()=>ae,O3:()=>B,Pt:()=>H,R2:()=>ie,RY:()=>de,SC:()=>te,U2:()=>ue,Wg:()=>$,Wi:()=>G,YP:()=>D,_W:()=>se,e8:()=>j,hw:()=>oe,j0:()=>pe,lV:()=>ce,pC:()=>R,s3:()=>W,wN:()=>re,yl:()=>X,yw:()=>Q});const D=null;function R(he){return null!=he}function G(he){return null==he}function Q(he,me){return R(he)?me(he):D}function $(he){return he}function W(he,me){return B(he,me),he}function B(he,me){if(G(he))throw new Error(me??"value is None")}function H(he,me){return R(he)?he:"function"==typeof me?me():me}function X(he,me){return R(he)?he:me}function te(he){return R(he)&&he.destroy(),null}function ae(he){return R(he)&&he.dispose(),null}function oe(he){return R(he)&&he.remove(),null}function le(he){return R(he)&&he.abort(),null}function de(he){return R(he)&&he.release(),null}function se(he,me,ge){return R(he)&&R(me)?R(ge)?ge(he,me):he.equals(me):he===me}function re(he){return null}function j(he,me){const ge=new Array;return he.forEach(_e=>{const Ee=me(_e);R(Ee)&&ge.push(Ee)}),ge}function Y(he,me){const ge=new Array;for(const _e of he)ge.push(ie(_e,null,me));return ge}function ee(he,me){for(const ge of he)Q(ge,me)}function ie(he,me,ge){return R(he)?ge(he):me}function ce(he){return he.filter(me=>R(me))}function ue(he,...me){let ge=he;for(let _e=0;_e{"use strict";v.d(Ae,{Y:()=>R});const D=[];function R(G){D.push(G),1===D.length&&queueMicrotask(()=>{const Z=D.slice();D.length=0;for(const Q of Z)Q()})}},94113:(nt,Ae,v)=>{"use strict";v.d(Ae,{RB:()=>Z,RH:()=>R,hS:()=>G});var D=v(58817);function R(W,B,H=!1){return $(W,B,H)}function G(W,B){if(null!=B)return B[W]||Q(W.split("."),!1,B)}function Z(W,B,H){const X=W.split("."),te=X.pop(),ae=Q(X,!0,H);ae&&te&&(ae[te]=B)}function Q(W,B,H){let X=H;for(const te of W){if(null==X)return;if(!(te in X)){if(!B)return;X[te]={}}X=X[te]}return X}function $(W,B,H){return B?Object.keys(B).reduce((X,te)=>{let ae=X[te],oe=B[te];return ae===oe?X:void 0===ae?(X[te]=(0,D.d9)(oe),X):(Array.isArray(oe)||Array.isArray(X)?(ae=X[te]=ae?Array.isArray(ae)?ae.concat():[ae]:[],oe&&(Array.isArray(oe)||(oe=[oe]),H?oe.forEach(le=>{ae.includes(le)||ae.push(le)}):X[te]=oe.concat())):oe&&"object"==typeof oe?X[te]=$(ae,oe,H):X.hasOwnProperty(te)&&!B.hasOwnProperty(te)||(X[te]=oe),X)},W||{}):W}},24192:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>W});var G,B,D=v(8314),R=v(27899);(B=G||(G={}))[B.varint=0]="varint",B[B.fixed64=1]="fixed64",B[B.delimited=2]="delimited",B[B.fixed32=5]="fixed32",B[B.unknown=99]="unknown";const Z=4294967296,Q=new TextDecoder("utf-8"),$=(0,D.Z)("safari")||(0,D.Z)("ios")?6:(0,D.Z)("ff")?12:32;class W{constructor(H,X,te=0,ae=(H?H.byteLength:0)){this._tag=0,this._dataType=G.unknown,this._init(H,X,te,ae)}_init(H,X,te,ae){this._data=H,this._dataView=X,this._pos=te,this._end=ae}asUnsafe(){return this}clone(){return new W(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(H){this._pos=H}nextTag(H){for(;;){if(this._pos===this._end)return!1;const X=this._decodeVarint();if(this._tag=X>>3,this._dataType=7&X,!H||H===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const H=this._decodeVarint();return this._tag=H>>3,this._dataType=7&H,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let H=4294967295;return H=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?H:(H=(H|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?H:(H=(H|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?H:(H=(H|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?H:(H=(H|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?H:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const H=this.getUInt32();if(void 0!==H)return H>>>1^-(1&H)|0}getSInt64(){return this._decodeSVarint()}getBool(){const H=0!==this._data[this._pos];return this._skip(1),H}getEnum(){return this._decodeVarint()}getFixed64(){const H=this._dataView,X=this._pos,te=H.getUint32(X,!0)+H.getUint32(X+4,!0)*Z;return this._skip(8),te}getSFixed64(){const H=this._dataView,X=this._pos,te=H.getUint32(X,!0)+H.getInt32(X+4,!0)*Z;return this._skip(8),te}getDouble(){const H=this._dataView.getFloat64(this._pos,!0);return this._skip(8),H}getFixed32(){const H=this._dataView.getUint32(this._pos,!0);return this._skip(4),H}getSFixed32(){const H=this._dataView.getInt32(this._pos,!0);return this._skip(4),H}getFloat(){const H=this._dataView.getFloat32(this._pos,!0);return this._skip(4),H}getString(){const H=this._getLength(),X=this._pos,te=this._toString(this._data,X,X+H);return this._skip(H),te}getBytes(){const H=this._getLength(),X=this._pos,te=this._toBytes(this._data,X,X+H);return this._skip(H),te}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(H,X,te,ae){const oe=this.getMessage(),le=H(oe,X,te,ae);return oe.release(),le}processMessage(H){const X=this.getMessage(),te=H(X);return X.release(),te}getMessage(){const H=this._getLength(),X=W.pool.acquire();return X._init(this._data,this._dataView,this._pos,this._pos+H),this._skip(H),X}release(){W.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case G.varint:this._decodeVarint();break;case G.fixed64:this._skip(8);break;case G.delimited:this._skip(this._getLength());break;case G.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(H){this._skip(H)}_skip(H){if(this._pos+H>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=H}_decodeVarint(){const H=this._data;let X=this._pos,te=0,ae=0;if(this._end-X>=10)do{if(ae=H[X++],te|=127&ae,0==(128&ae)||(ae=H[X++],te|=(127&ae)<<7,0==(128&ae))||(ae=H[X++],te|=(127&ae)<<14,0==(128&ae))||(ae=H[X++],te|=(127&ae)<<21,0==(128&ae))||(ae=H[X++],te+=268435456*(127&ae),0==(128&ae))||(ae=H[X++],te+=34359738368*(127&ae),0==(128&ae))||(ae=H[X++],te+=4398046511104*(127&ae),0==(128&ae))||(ae=H[X++],te+=562949953421312*(127&ae),0==(128&ae))||(ae=H[X++],te+=72057594037927940*(127&ae),0==(128&ae))||(ae=H[X++],te+=0x8000000000000000*(127&ae),0==(128&ae)))break;throw new Error("Varint too long!")}while(0);else{let oe=1;for(;X!==this._end&&(ae=H[X],0!=(128&ae));)++X,te+=(127&ae)*oe,oe*=128;if(X===this._end)throw new Error("Varint overrun!");++X,te+=ae*oe}return this._pos=X,te}_decodeSVarint(){const H=this._data;let X=this._pos,te=0,ae=0;const oe=1&H[X];if(this._end-X>=10)do{if(ae=H[X++],te|=127&ae,0==(128&ae)||(ae=H[X++],te|=(127&ae)<<7,0==(128&ae))||(ae=H[X++],te|=(127&ae)<<14,0==(128&ae))||(ae=H[X++],te|=(127&ae)<<21,0==(128&ae))||(ae=H[X++],te+=268435456*(127&ae),0==(128&ae))||(ae=H[X++],te+=34359738368*(127&ae),0==(128&ae))||(ae=H[X++],te+=4398046511104*(127&ae),0==(128&ae))||(ae=H[X++],te+=562949953421312*(127&ae),0==(128&ae))||(ae=H[X++],te+=72057594037927940*(127&ae),0==(128&ae))||(ae=H[X++],te+=0x8000000000000000*(127&ae),0==(128&ae)))break;throw new Error("Varint too long!")}while(0);else{let le=1;for(;X!==this._end&&(ae=H[X],0!=(128&ae));)++X,te+=(127&ae)*le,le*=128;if(X===this._end)throw new Error("Varint overrun!");++X,te+=ae*le}return this._pos=X,oe?-(te+1)/2:te/2}_getLength(){if(this._dataType!==G.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(H,X,te){if((te=Math.min(this._end,te))-X>$){const le=H.subarray(X,te);return Q.decode(le)}let ae="",oe="";for(let le=X;le{B._data=null,B._dataView=null})},10699:(nt,Ae,v)=>{"use strict";v.d(Ae,{$F:()=>j,Bx:()=>ze,D_:()=>ie,Ds:()=>ve,H9:()=>se,Hc:()=>le,Hl:()=>Y,R8:()=>J,U3:()=>ue,WW:()=>_e,Yn:()=>Ke,as:()=>me,dD:()=>he,e4:()=>De,fu:()=>re,gx:()=>ye,hh:()=>xe,k_:()=>ae,r9:()=>de,y8:()=>Se,zE:()=>te});var D=v(15861),R=v(84244),Z=(v(55538),v(26584)),Q=v(17770),$=v(63290),W=v(62208);function te(Ce="Aborted"){return new Z.Z("AbortError",Ce)}function ae(Ce,Be="Aborted"){if(le(Ce))throw te(Be)}function oe(Ce){return(0,W.pC)(Ce)?"aborted"in Ce?Ce:Ce.signal:Ce}function le(Ce){const Be=oe(Ce);return(0,W.pC)(Be)&&Be.aborted}function de(Ce){if(ie(Ce))throw Ce}function se(Ce){if(!ie(Ce))throw Ce}function re(Ce,Be){const Fe=oe(Ce);if(!(0,W.Wi)(Fe)){if(!Fe.aborted)return(0,Q.IH)(Fe,"abort",()=>Be());Be()}}function j(Ce,Be){const Fe=oe(Ce);if(!(0,W.Wi)(Fe))return ae(Fe),(0,Q.IH)(Fe,"abort",()=>Be(te()))}function Y(Ce,Be){const Fe=oe(Be);return(0,W.Wi)(Fe)?Ce:new Promise((je,Re)=>{let He=re(Be,()=>Re(te()));const Ie=()=>He=(0,W.hw)(He);Ce.then(Ie,Ie),Ce.then(je,Re)})}function ie(Ce){return"AbortError"===Ce?.name}function J(Ce){return ce.apply(this,arguments)}function ce(){return(ce=(0,D.Z)(function*(Ce){try{return yield Ce}catch(Be){if(!ie(Be))throw Be;return}})).apply(this,arguments)}function ue(Ce){return pe.apply(this,arguments)}function pe(){return(pe=(0,D.Z)(function*(Ce,Be=$.Z.getLogger("esri")){try{return yield Ce}catch(Fe){ie(Fe)||Be.error(Fe)}})).apply(this,arguments)}function he(){let Ce=null;const Be=new Promise((Fe,je)=>{Ce={promise:void 0,resolve:Fe,reject:je}});return Ce.promise=Be,Ce}function me(Ce){return ge.apply(this,arguments)}function ge(){return(ge=(0,D.Z)(function*(Ce){if(!Ce)return;if("function"!=typeof Ce.forEach){const Fe=Object.keys(Ce),je=Fe.map(Ie=>Ce[Ie]),Re=yield me(je),He={};return Fe.map((Ie,Ge)=>He[Ie]=Re[Ge]),He}const Be=Ce;return new Promise(Fe=>{const je=[];let Re=Be.length;0===Re&&Fe(je),Be.forEach(He=>{const Ie={promise:He||Promise.resolve(He)};je.push(Ie),Ie.promise.then(Ge=>{Ie.value=Ge}).catch(Ge=>{Ie.error=Ge}).then(()=>{--Re,0===Re&&Fe(je)})})})})).apply(this,arguments)}function _e(Ce){return Ee.apply(this,arguments)}function Ee(){return(Ee=(0,D.Z)(function*(Ce){return(yield me(Ce)).filter(Be=>!!Be.value).map(Be=>Be.value)})).apply(this,arguments)}function De(Ce,Be,Fe){const je=new AbortController;return re(Fe,()=>je.abort()),new Promise((Re,He)=>{let Ie=setTimeout(()=>{Ie=0,Re(Be)},Ce);re(je,()=>{Ie&&(clearTimeout(Ie),He(te()))})})}function Se(Ce){return Ce&&"function"==typeof Ce.then}function ye(Ce){return Se(Ce)?Ce:Promise.resolve(Ce)}function ve(Ce,Be=-1){let Fe,je,Re,He,Ie=null;const Ge=(...Pe)=>{if(Fe){je=Pe,He&&He.reject(te()),He=he();const Xe=(0,W.j0)(He.promise);if(Ie){const Ye=Ie;Ie=null,Ye.abort()}return Xe}if(Re=He||he(),He=null,Be>0){const Xe=new AbortController;Fe=ye(Ce(...Pe,Xe.signal));const Ye=Fe;De(Be).then(()=>{Fe===Ye&&(He?Xe.abort():Ie=Xe)})}else Fe=1,Fe=ye(Ce(...Pe));const Le=()=>{const Xe=je;je=Re=Fe=Ie=null,null!=Xe&&Ge(...Xe)},Me=Fe,Ne=Re;return Me.then(Le,Le),Me.then(Ne.resolve,Ne.reject),(0,W.j0)(Ne.promise)};return Ge}function xe(){let Ce,Be;const Fe=new Promise((Re,He)=>{Ce=Re,Be=He}),je=Re=>{Ce(Re)};return je.resolve=Re=>Ce(Re),je.reject=Re=>Be(Re),je.timeout=(Re,He)=>R.m.setTimeout(()=>je.reject(He),Re),je.promise=Fe,je}function ze(Ce,Be){return Ce.then(Be,Be)}function Ke(Ce){return We.apply(this,arguments)}function We(){return(We=(0,D.Z)(function*(Ce){yield Promise.resolve(),ae(Ce)})).apply(this,arguments)}},32917:(nt,Ae,v)=>{"use strict";v.d(Ae,{N1:()=>ae,YP:()=>W,Z_:()=>re,gx:()=>B,nn:()=>j,on:()=>X,tX:()=>Y});var D=v(17770),R=v(54024),G=v(62208),Z=v(10699),Q=v(30755);function W(ee,ie,J={}){return H(ee,ie,J,le)}function B(ee,ie,J={}){return H(ee,ie,J,de)}function H(ee,ie,J={},ce){let ue=null;const pe=J.once?(he,me)=>{ce(he)&&((0,G.hw)(ue),ie(he,me))}:(he,me)=>{ce(he)&&ie(he,me)};if(ue=(0,Q.aQ)(ee,pe,J.sync,J.equals),J.initial){const he=ee();pe(he,he)}return ue}function X(ee,ie,J,ce={}){let ue=null,pe=null,he=null;function me(){ue&&pe&&(pe.remove(),ce.onListenerRemove?.(ue),ue=null,pe=null)}function ge(Ee){ce.once&&ce.once&&(0,G.hw)(he),J(Ee)}const _e=W(ee,(Ee,De)=>{me(),(0,D.vT)(Ee)&&(ue=Ee,pe=(0,D.on)(Ee,ie,ge),ce.onListenerAdd?.(Ee))},{sync:ce.sync,initial:!0});return he=(0,R.kB)(()=>{_e.remove(),me()}),he}function ae(ee,ie){return function oe(ee,ie,J){if((0,Z.Hc)(J))return Promise.reject((0,Z.zE)());const ce=ee();if(ie?.(ce))return Promise.resolve(ce);let ue=null;function pe(){ue=(0,G.hw)(ue)}return new Promise((he,me)=>{ue=(0,R.AL)([(0,Z.fu)(J,()=>{pe(),me((0,Z.zE)())}),H(ee,ge=>{pe(),he(ge)},{sync:!1,once:!0},ie??le)])})}(ee,de,ie)}function le(ee){return!0}function de(ee){return!!ee}v(21352);const re={sync:!0},j={initial:!0},Y={sync:!0,initial:!0}},50618:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>j,MU:()=>me,Os:()=>re,bP:()=>ie});var D=v(62208),R=v(79682),G=v(73362),Z=v(77029),Q=v(10699),$=v(27422);class W{constructor(be){this.phases=be,this.paused=!1,this.ticks=-1,this.removed=!1}}class B{constructor(be){this.callback=be,this.isActive=!0}remove(){this.isActive=!1}}let H=0,X=0;const te={time:(0,$.HA)(0),deltaTime:(0,$.HA)(0),elapsedFrameTime:(0,$.HA)(0),frameDuration:(0,$.HA)(0)},ae=["prepare","preRender","render","postRender","update","finish"],oe=[],le=new Z.Z;class de{constructor(be){this._task=be}remove(){this._task.removed=!0}pause(){this._task.paused=!0}resume(){this._task.paused=!1}}const se={frameTasks:le,willDispatch:!1,clearFrameTasks:function ee(De=!1){le.forAll(be=>{be.removed=!0}),De&&pe()},dispatch:he,executeFrameTasks:function ce(De){const be=(0,$.HA)(De-H);H=De;const Se=X>0?X:1e3/60,ye=Math.max(0,be-Se);for(let ve=0;ve{Ke.paused||Ke.removed||(0===ve&&Ke.ticks++,Ke.phases[ze]&&(te.time=De,te.deltaTime=0===Ke.ticks?(0,$.HA)(0):be,te.elapsedFrameTime=(0,$.HA)(performance.now()-De),te.frameDuration=(0,$.HA)(Se-ye),Ke.phases[ze]?.call(Ke,te)))}),_e[ve].record(performance.now()-xe)}pe(),Ee.record(performance.now()-De)}};function re(De){const be=new B(De);return oe.push(be),se.willDispatch||(se.willDispatch=!0,(0,R.Y)(he)),be}function j(De){const be=new W(De);return le.push(be),null==Y&&(H=performance.now(),Y=requestAnimationFrame(J)),new de(be)}let Y=null;function ie(De){X=Math.max(0,De)}function J(){const De=performance.now();Y=null,Y=le.length>0?requestAnimationFrame(J):null,se.executeFrameTasks(De)}const ue=new Z.Z;function pe(){le.forAll(De=>{De.removed&&ue.push(De)}),le.removeUnorderedMany(ue.data,ue.length),ue.clear()}function he(){for(;oe.length;){const De=(0,D.j0)(oe.shift());De.isActive&&De.callback()}se.willDispatch=!1}function me(De=1,be){const Se=(0,Q.hh)(),ye=()=>{(0,Q.Hc)(be)?Se.reject((0,Q.zE)()):0===De?Se():(--De,(0,R.Y)(()=>ye()))};return ye(),Se.promise}const _e=ae.map(De=>new G.Z(De)),Ee=new G.Z("total")},23841:(nt,Ae,v)=>{"use strict";v.d(Ae,{F2:()=>Z,J$:()=>te,So:()=>ae,Wv:()=>oe,Wz:()=>Q,c$:()=>le,gX:()=>X,md:()=>se,s1:()=>B,t_:()=>$,vW:()=>W});const D=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function Z(re){return re?re/72*96:0}function Q(re){return re?72*re/96:0}function $(re){if("string"==typeof re){const j=re.match(D);if(j){const Y=Number(j[1]),ee=j[3]&&j[3].toLowerCase(),ie="-"===re.charAt(0),J="px"===ee?Q(Y):Y;return ie?-J:J}return console.warn("screenUtils.toPt: input not recognized!"),null}return re}function W(re=0,j=0){return{x:re,y:j}}function B(re=0,j=0){return[re,j]}function X(re=0,j=0){return[re,j]}function te(re=0,j=0,Y=0){return[re,j,Y]}function ae(re){return re}function oe(re){return re}function le(re){return re}function se(re,j){return j?(j[0]=re.x,j[1]=re.y,j.length>2&&(j[2]=0),j):[re.x,re.y]}},95737:(nt,Ae,v)=>{"use strict";v.d(Ae,{E:()=>G,_:()=>Q});var D=v(15861),R=v(62208);function G($,W){return Z.apply(this,arguments)}function Z(){return(Z=(0,D.Z)(function*($,W){const{WhereClause:B}=yield v.e(410).then(v.bind(v,10410));return B.create($,W)})).apply(this,arguments)}function Q($,W){return(0,R.pC)($)?(0,R.pC)(W)?`(${$}) AND (${W})`:$:W}},77275:(nt,Ae,v)=>{"use strict";v.d(Ae,{Cb:()=>W,Qs:()=>Q,gx:()=>Z,hP:()=>$});var D=v(94113);const R=/\{([^\}]+)\}/g;function G(B){return B??""}function Z(B,H){return B.replace(R,"object"==typeof H?(X,te)=>G((0,D.hS)(te,H)):(X,te)=>G(H(te)))}function Q(B,H){return B.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,X=>H&&H.includes(X)?X:`\\${X}`)}function $(B){let H=0;for(let X=0;X{"use strict";v.d(Ae,{a:()=>ae,z:()=>oe});var D=v(17626),R=v(46160),G=v(89726),Z=v(80542),W=(v(8314),v(63290),v(62208)),B=v(77712),te=(v(85931),v(90912),v(76898));let ae=class extends((0,Z.p)(R.Z)){constructor(le){super(le),this.handles.add([this.on("before-add",de=>{(0,W.Wi)(de.item)&&de.preventDefault()}),this.on("after-add",de=>this._own(de.item)),this.on("after-remove",de=>this._release(de.item))])}get owner(){return this._get("owner")}set owner(le){le!==this._get("owner")&&(this._releaseAll(),this._set("owner",le),this._ownAll())}_ownAll(){for(const le of this.items)this._own(le)}_releaseAll(){for(const le of this.items)this._release(le)}_createNewInstance(le){return this.itemType?new(R.Z.ofType(this.itemType.Type))(le):new R.Z(le)}};function oe(le,de){return{type:le,cast:G.R,set(se){const re=(0,G.Z)(se,this._get(de),le);re.owner=this,this._set(de,re)}}}(0,D._)([(0,B.Cb)()],ae.prototype,"owner",null),ae=(0,D._)([(0,te.j)("esri.core.support.OwningCollection")],ae)},17760:(nt,Ae,v)=>{"use strict";v.d(Ae,{t:()=>H});var D=v(17626),R=v(14517),G=v(72392),Z=v(62208),Q=v(32917),$=v(50618),W=v(77712),B=v(76898);let H=class extends R.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new G.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(te,ae,oe={}){return this._installWatch(te,ae,oe,Q.YP)}addWhen(te,ae,oe={}){return this._installWatch(te,ae,oe,Q.gx)}addOnCollectionChange(te,ae,{initial:oe=!1,final:le=!1}={}){const de=++this._handleId;return this._handles.add([(0,Q.on)(te,"after-changes",this._createSyncUpdatingCallback(),Q.Z_),(0,Q.on)(te,"change",ae,{onListenerAdd:oe?se=>ae({added:se.toArray(),removed:[]}):void 0,onListenerRemove:le?se=>ae({added:[],removed:se.toArray()}):void 0})],de),{remove:()=>this._handles.remove(de)}}addPromise(te){if((0,Z.Wi)(te))return te;const ae=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(te)&&(0!==this._pendingPromises.size||this._handles.has(X)||this._set("updating",!1))}},ae),this._pendingPromises.add(te),this._set("updating",!0);const oe=()=>this._handles.remove(ae);return te.then(oe,oe),te}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(te,ae,oe={},le){const de=++this._handleId;oe.sync||this._installSyncUpdatingWatch(te,de);const se=le(te,ae,oe);return this._handles.add(se,de),{remove:()=>this._handles.remove(de)}}_installSyncUpdatingWatch(te,ae){const oe=this._createSyncUpdatingCallback(),le=(0,Q.YP)(te,oe,{sync:!0,equals:()=>!1});return this._handles.add(le,ae),le}_createSyncUpdatingCallback(){return()=>{this._handles.remove(X),++this._scheduleHandleId;const te=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,$.Os)(()=>{te===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(X))}),X)}}};(0,D._)([(0,W.Cb)({readOnly:!0})],H.prototype,"updating",void 0),H=(0,D._)([(0,B.j)("esri.core.support.WatchUpdatingTracking")],H);const X=-42},27422:(nt,Ae,v)=>{"use strict";function D(Q){return Q}function R(Q){return 1e3*Q}function G(Q){return Q}function Z(Q){return.001*Q}v.d(Ae,{D9:()=>Z,HA:()=>D,_H:()=>G,up:()=>R})},28170:(nt,Ae,v)=>{"use strict";v.d(Ae,{JE:()=>W,Nm:()=>Q,rJ:()=>ae}),v(8314);const R={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},G={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function Q(oe,le,de){const se=new Date(oe.getTime());if(le&&de){const re=G[de],{getter:j,setter:Y,multiplier:ee}=re;if("months"===de){const ie=function Z(oe,le){const de=new Date(oe,le+1,1);return de.setDate(0),de.getDate()}(se.getFullYear(),se.getMonth()+le);se.getDate()>ie&&se.setDate(ie)}se[Y](se[j]()+le*ee)}return se}function W(oe,le){switch(le){case"milliseconds":return new Date(oe.getTime());case"seconds":return new Date(oe.getFullYear(),oe.getMonth(),oe.getDate(),oe.getHours(),oe.getMinutes(),oe.getSeconds());case"minutes":return new Date(oe.getFullYear(),oe.getMonth(),oe.getDate(),oe.getHours(),oe.getMinutes());case"hours":return new Date(oe.getFullYear(),oe.getMonth(),oe.getDate(),oe.getHours());case"days":return new Date(oe.getFullYear(),oe.getMonth(),oe.getDate());case"weeks":return new Date(oe.getFullYear(),oe.getMonth(),oe.getDate()-oe.getDay());case"months":return new Date(oe.getFullYear(),oe.getMonth(),1);case"years":return new Date(oe.getFullYear(),0,1);case"decades":return new Date(oe.getFullYear()-oe.getFullYear()%10,0,1);case"centuries":return new Date(oe.getFullYear()-oe.getFullYear()%100,0,1);default:return new Date}}function ae(oe,le,de){return 0===oe?0:oe*R[le]/R[de]}},55713:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ed:()=>R,Hx:()=>X,KZ:()=>W,Uc:()=>H,W0:()=>Q,Xw:()=>de,ZY:()=>te,eP:()=>Z,fS:()=>oe,lq:()=>$,qo:()=>le,tP:()=>G,xZ:()=>ae,z3:()=>B});var D=v(62208);function R(se,re){if(se.forEach)se.forEach(re);else for(let j=0;j{"use strict";v.d(Ae,{D:()=>G,u:()=>R});let D=0;const R=0;function G(){return++D}},90466:(nt,Ae,v)=>{"use strict";v.d(Ae,{Rd:()=>X,Ud:()=>le,VG:()=>B,Wv:()=>ae,Zv:()=>se,sS:()=>_e});var D=v(27306),G=(v(23719),v(21286)),Z=v(77275),Q=v(16730),$=v(15348);function B(Ee,De,be,Se=2,ye="abbr"){return`${(0,$.uf)(De,{minimumFractionDigits:Se,maximumFractionDigits:Se,signDisplay:De>0?"never":"exceptZero"})} ${function W(Ee,De,be){return Ee.units[De][be]}(Ee,be,ye)}`}function X(Ee,De,be,Se=2,ye="abbr"){const ve=(0,Q.KU)(De,be);return B(Ee,(0,Q.En)(De,be,ve),ve,Se,ye)}function ae(Ee,De,be,Se=2,ye="abbr"){const ve=(0,Q.OG)(De,be);return B(Ee,(0,Q.En)(De,be,ve),ve,Se,ye)}function le(Ee,De,be,Se=2,ye="abbr"){const ve=(0,Q.FN)(De,be);return B(Ee,(0,Q.En)(De,be,ve),ve,Se,ye)}function se(Ee,De,be,Se=2,ye="abbr"){const ve=(0,Q.qv)(De,be);return B(Ee,(0,Q.En)(De,be,ve),ve,Se,ye)}const ge=["B","kB","MB","GB","TB"];function _e(Ee,De){let be=0===De?0:Math.floor(Math.log(De)/Math.log(D.Y8.KILOBYTES));be=(0,G.uZ)(be,0,ge.length-1);const Se=(0,$.uf)(De/D.Y8.KILOBYTES**be,{maximumFractionDigits:2});return(0,Z.gx)(Ee.units.bytes[ge[be]],{fileSize:Se})}},16730:(nt,Ae,v)=>{"use strict";v.d(Ae,{$C:()=>Ce,En:()=>_e,FN:()=>ve,Jo:()=>_t,KU:()=>Se,OG:()=>ye,RG:()=>et,UF:()=>pe,Yl:()=>Ke,_R:()=>Fe,c9:()=>Re,cM:()=>je,gV:()=>ut,hd:()=>B,iS:()=>Ee,j5:()=>Le,ov:()=>De,qE:()=>Pe,qv:()=>xe,tQ:()=>ze,ty:()=>We}),v(8314);var R=v(2076),G=v(62208),Z=v(12080),Q=v(94425),$=v(37053),W=v(84029);const B=39.37,H=Q.sv.radius*Math.PI/200,X=/UNIT\[([^\]]+)\]\]$/i,te=W.Z,ae=/UNIT\[([^\]]+)\]/i,oe=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),le=(0,R.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),de=vt=>vt*vt,se=vt=>vt*vt*vt,re={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:de(.001)},"square-centimeters":{inBaseUnits:de(.01)},"square-decimeters":{inBaseUnits:de(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:de(1e3)},"square-inches":{inBaseUnits:de(.0254)},"square-feet":{inBaseUnits:de(.3048)},"square-yards":{inBaseUnits:de(.9144)},"square-miles":{inBaseUnits:de(1609.344)},"square-us-feet":{inBaseUnits:de(1200/3937)},acres:{inBaseUnits:.0015625*de(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*se(.001)},"cubic-centimeters":{inBaseUnits:1e3*se(.01)},"cubic-decimeters":{inBaseUnits:1e3*se(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*se(1e3)},"cubic-inches":{inBaseUnits:1e3*se(.0254)},"cubic-feet":{inBaseUnits:1e3*se(.3048)},"cubic-yards":{inBaseUnits:1e3*se(.9144)},"cubic-miles":{inBaseUnits:1e3*se(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},j=(()=>{const vt={};for(const Lt in re)for(const jt in re[Lt].units)vt[jt]=Lt;return vt})(),J=["metric","imperial","inches","feet","yards","miles","nautical-miles","us-feet","meters","kilometers"];function pe(vt){const Lt=j[vt];if(!Lt)throw new Error("unknown type");return Lt}function ge(vt,Lt=null){return Lt=Lt||pe(vt),re[Lt].baseUnit===vt}function _e(vt,Lt,jt){if(Lt===jt)return vt;const $t=pe(Lt);if($t!==pe(jt))throw new Error("incompatible units");const Wt=ge(Lt,$t)?vt:function Y(vt,Lt,jt){return vt*re[jt].units[Lt].inBaseUnits}(vt,Lt,$t);return ge(jt,$t)?Wt:function ee(vt,Lt,jt){return vt/re[jt].units[Lt].inBaseUnits}(Wt,jt,$t)}function Ee(vt,Lt,jt){switch(jt){case"metric":return Se(vt,Lt);case"imperial":return ve(vt,Lt);default:return jt}}function De(vt,Lt,jt){switch(jt){case"metric":return ye(vt,Lt);case"imperial":return xe(vt,Lt);default:return jt}}function Se(vt,Lt){const jt=_e(vt,Lt,"meters");return Math.abs(jt)<3e3?"meters":"kilometers"}function ye(vt,Lt){const jt=_e(vt,Lt,"meters");return Math.abs(jt)<1e5?"meters":"kilometers"}function ve(vt,Lt){const jt=_e(vt,Lt,"feet");return Math.abs(jt)<1e3?"feet":"miles"}function xe(vt,Lt){const jt=_e(vt,Lt,"feet");return Math.abs(jt)<1e5?"feet":"miles"}function ze(vt,Lt){const jt=_e(vt,Lt,"square-meters");return Math.abs(jt)<3e6?"square-meters":"square-kilometers"}function Ke(vt,Lt){const jt=_e(vt,Lt,"square-feet");return Math.abs(jt)<1e6?"square-feet":"square-miles"}function We(vt,Lt,jt){return _e(vt,Lt,"meters")/(jt*Math.PI/180)}function Ce(vt){return le.fromJSON(vt.toLowerCase())||null}function Fe(vt){if((0,G.pC)(vt)&&!(0,$.N$)(vt))return 1;const Lt=Re(vt);return Lt>1e5?1:Lt}function je(vt){return Re(vt)>=(0,Z.Iu)(vt).metersPerDegree?"meters":Pe(vt)}function Re(vt,Lt=Q.sv.metersPerDegree){return(0,G.Pt)(function He(vt,Lt=!1){const jt=(0,G.pC)(vt)?vt.wkid:null,$t=(0,G.pC)(vt)?vt.wkt:null;let Wt=null;if(jt){if((0,$.o$)(jt))return Q.yr.metersPerDegree;if((0,$.ME)(jt))return Q.Z1.metersPerDegree;Wt=te.values[te[jt]],!Wt&&Lt&&oe.has(jt)&&(Wt=H)}else $t&&(Ye($t)?Wt=Ie(X.exec($t),Wt):Xe($t)&&(Wt=Ie(ae.exec($t),Wt)));return Wt}(vt,!0),Lt)}function Ie(vt,Lt){return vt&&vt[1]?Ge(vt[1]):Lt}function Ge(vt){return parseFloat(vt.split(",")[1])}function Pe(vt){const Lt=(0,G.pC)(vt)?vt.wkid:null,jt=(0,G.pC)(vt)?vt.wkt:null;let $t=null;if(Lt)$t=te.units[te[Lt]];else if(jt){const Wt=Ye(jt)?X:Xe(jt)?ae:null;if(Wt){const pr=Wt.exec(jt);pr&&pr[1]&&($t=function rt(vt){const Lt=/[\\"\\']{1}([^\\"\\']+)/.exec(vt);let jt=Lt&&Lt[1];if(!jt||!te.units.includes(jt)){const $t=Ge(vt);jt=null;const Wt=te.values;for(let pr=0;pr{"use strict";v.d(Ae,{$U:()=>jt,AH:()=>Ne,B7:()=>_e,D6:()=>Ce,Fv:()=>He,HK:()=>Me,Hu:()=>Dr,Ie:()=>dr,L:()=>ce,Ml:()=>Jr,P$:()=>Ge,PF:()=>Re,Qj:()=>Et,R9:()=>se,TI:()=>J,YP:()=>Pe,Yd:()=>or,ZN:()=>Lr,_l:()=>rt,b7:()=>Ee,ed:()=>xe,fZ:()=>Ss,fl:()=>Hr,hF:()=>je,hO:()=>gr,io:()=>qe,jc:()=>Le,kl:()=>Be,mN:()=>he,oC:()=>vt,oh:()=>We,qg:()=>De,rS:()=>Xe,sJ:()=>Je,tD:()=>ve,tm:()=>ze,u0:()=>me,v_:()=>Ie,vt:()=>sr,zd:()=>Tr});var D=v(59318),R=v(26584),G=v(63290),Z=v(62208);const Q=G.Z.getLogger("esri.core.urlUtils"),$=D.Z.request,W="esri/config: esriConfig.request.proxyUrl is not set.",B=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,H=/^\s*http:/i,X=/^\s*https:/i,te=/^\s*file:/i,ae=/:\d+$/,oe=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,le=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),de=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class se{constructor(At=""){this.uri=At,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let Kt=(0,Z.j0)(this.uri.match(le));this.scheme=Kt[2]||(Kt[1]?"":null),this.authority=Kt[4]||(Kt[3]?"":null),this.path=Kt[5],this.query=Kt[7]||(Kt[6]?"":null),this.fragment=Kt[9]||(Kt[8]?"":null),null!=this.authority&&(Kt=(0,Z.j0)(this.authority.match(de)),this.user=Kt[3]||null,this.password=Kt[4]||null,this.host=Kt[6]||Kt[7],this.port=Kt[9]||null)}toString(){return this.uri}}const re={};let Y=new se(D.Z.applicationUrl);let ie=function ue(){const ct=(0,Z.j0)(Y.path),At=ct.substring(0,ct.lastIndexOf(ct.split("/")[ct.split("/").length-1]));return`${Y.scheme}://${Y.host}${null!=Y.port?`:${Y.port}`:""}${At}`}();const J=()=>Y,ce=()=>ie;function he(ct){if(!ct)return null;const At={path:null,query:null},Kt=new se(ct),tr=ct.indexOf("?");return null===Kt.query?At.path=ct:(At.path=ct.substring(0,tr),At.query=me(Kt.query)),Kt.fragment&&(At.hash=Kt.fragment,null===Kt.query&&(At.path=At.path.substring(0,At.path.length-(Kt.fragment.length+1)))),At}function me(ct){const At=ct.split("&"),Kt={};for(const tr of At){if(!tr)continue;const _r=tr.indexOf("=");let Or,gs;_r<0?(Or=decodeURIComponent(tr),gs=""):(Or=decodeURIComponent(tr.slice(0,_r)),gs=decodeURIComponent(tr.slice(_r+1)));let Kr=Kt[Or];"string"==typeof Kr&&(Kr=Kt[Or]=[Kr]),Array.isArray(Kr)?Kr.push(gs):Kt[Or]=gs}return Kt}function ge(ct){return ct&&"object"==typeof ct&&"toJSON"in ct&&"function"==typeof ct.toJSON}function _e(ct,At){return ct?At&&"function"==typeof At?Object.keys(ct).map(Kt=>encodeURIComponent(Kt)+"="+encodeURIComponent(At(Kt,ct[Kt]))).join("&"):Object.keys(ct).map(Kt=>{const tr=ct[Kt];if(null==tr)return"";const _r=encodeURIComponent(Kt)+"=",Or=At&&At[Kt];return Or?_r+encodeURIComponent(Or(tr)):Array.isArray(tr)?tr.map(gs=>ge(gs)?_r+encodeURIComponent(JSON.stringify(gs)):_r+encodeURIComponent(gs)).join("&"):ge(tr)?_r+encodeURIComponent(JSON.stringify(tr)):_r+encodeURIComponent(tr)}).filter(Kt=>Kt).join("&"):""}function Ee(ct=!1){let At,Kt=$.proxyUrl;if("string"==typeof ct){At=jt(ct);const tr=xe(ct);tr&&(Kt=tr.proxyUrl)}else At=!!ct;if(!Kt)throw Q.warn(W),new R.Z("urlutils:proxy-not-set",W);return At&&Fr()&&(Kt=gr(Kt)),he(Kt)}function De(ct){const At=xe(ct);let Kt,tr;if(At){const _r=Se(At.proxyUrl);Kt=_r.path,tr=_r.query?me(_r.query):null}if(Kt){const _r=he(ct);ct=Kt+"?"+_r.path;const Or=_e({...tr,..._r.query});Or&&(ct=`${ct}?${Or}`)}return ct}const be={path:"",query:""};function Se(ct){const At=ct.indexOf("?");return-1!==At?(be.path=ct.slice(0,At),be.query=ct.slice(At+1)):(be.path=ct,be.query=null),be}function ye(ct){return(ct=mr(ct=function rr(ct){return ct&&"/"===ct[ct.length-1]?ct:`${ct}/`}(ct=Se(ct).path),!0)).toLowerCase()}function ve(ct){const At={proxyUrl:ct.proxyUrl,urlPrefix:ye(ct.urlPrefix)},Kt=$.proxyRules,tr=At.urlPrefix;let _r=Kt.length;for(let Or=0;Or0?ct.substring(0,At):ct.replace(/\/+$/,"")}function We(ct){const At=tr=>null==tr||tr instanceof RegExp&&tr.test(ct)||"string"==typeof tr&&ct.startsWith(tr),Kt=$.interceptors;if(Kt)for(const tr of Kt)if(Array.isArray(tr.urls)){if(tr.urls.some(At))return tr}else if(At(tr.urls))return tr;return null}function Ce(ct,At,Kt=!1){if(!ct||!At)return!1;const tr=hr(ct),_r=hr(At);return!(!Kt&&tr.scheme!==_r.scheme)&&null!=tr.host&&null!=_r.host&&tr.host.toLowerCase()===_r.host.toLowerCase()&&tr.port===_r.port}function Be(ct){if("string"==typeof ct){if(!Pe(ct))return!0;ct=hr(ct)}if(Ce(ct,Y))return!0;const At=$.trustedServers||[];for(let Kt=0;Kt-1===(bt=fs.indexOf(at,bt))?fs.length:bt;let qt=Kr(_r,"/",_r.indexOf("//")+2),Ir=-1;for(;_r.slice(0,qt+1)===Or.slice(0,qt)+"/"&&(Ir=qt+1,qt!==_r.length);)qt=Kr(_r,"/",qt+1);if(-1===Ir||gs&&Ir0)for(let fs=0;fstr===_r||tr.endsWith(`.${_r}`))||Fr()&&!xe(ct))&&(ct=gr(ct)),ct}(ct=function Ft(ct){return ct.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(ct=function St(ct){if(/^https?:\/\//i.test(ct)){const At=Se(ct);ct=(ct=At.path.replace(/\/{2,}/g,"/")).replace("/","//"),At.query&&(ct+=`?${At.query}`)}return ct}(ct=je(ct=ct.trim()))))}function Ie(...ct){const At=ct.filter(Z.pC);if(!At||!At.length)return;const Kt=[];if(Pe(At[0])){const _r=At[0],Or=_r.indexOf("//");-1!==Or&&(Kt.push(_r.slice(0,Or+1)),function Wt(ct){return null!=ct&&te.test(ct)}(At[0])&&(Kt[0]+="/"),At[0]=_r.slice(Or+2))}else"/"===At[0][0]&&Kt.push("");const tr=At.reduce((_r,Or)=>Or?_r.concat(Or.split("/")):_r,[]);for(let _r=0;_r0&&".."!==Kt[Kt.length-1]?Kt.pop():(!Or&&_r===tr.length-1||Or&&("."!==Or||0===Kt.length))&&Kt.push(Or)}return Kt.join("/")}function Ge(ct,At=!1){if(null==ct||Le(ct)||Me(ct))return null;let Kt=ct.indexOf("://");if(-1===Kt&&vt(ct))Kt=2;else{if(-1===Kt)return null;Kt+=3}const tr=ct.indexOf("/",Kt);return-1!==tr&&(ct=ct.slice(0,tr)),At&&(ct=mr(ct,!0)),ct}function Pe(ct){return vt(ct)||Lt(ct)}function Le(ct){return null!=ct&&"blob:"===ct.slice(0,5)}function Me(ct){return null!=ct&&"data:"===ct.slice(0,5)}function Ne(ct){const At=Je(ct);if(!At||!At.isBase64)return null;const Kt=atob(At.data),tr=new Uint8Array(Kt.length);for(let _r=0;_r1&&"/"===ct[0]&&"/"===ct[1]&&(ct=ct.slice(2)),ct)}function or(ct){let At=0;if(Pe(ct)){const tr=ct.indexOf("//");-1!==tr&&(At=tr+2)}const Kt=ct.lastIndexOf("/");return Kt0&&At&&At.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${tr.join(", ")}.`),Kt.path}function Lr(ct,At,Kt){const tr=he(ct),_r=tr.query||{};return _r[At]=String(Kt),`${tr.path}?${_e(_r)}`}function Hr(ct,At){const Kt=he(ct),tr=Kt.query||{};for(const Or in At)tr[Or]=At[Or];const _r=_e(tr);return _r?`${Kt.path}?${_r}`:Kt.path}function Jr(ct){if((0,Z.Wi)(ct))return null;const At=ct.match(Cs);return At?At[2]:null}function Ss(ct){if((0,Z.Wi)(ct))return null;const At=ct.match(Cs);return At?{path:At[1],extension:At[2]}:{path:ct,extension:null}}const Cs=/([^.]*)\.([^\/]*)$/,Dt=/(^data:image\/svg|\.svg$)/i},35948:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>R});const D="randomUUID"in crypto;function R(){if(D)return crypto.randomUUID();const G=crypto.getRandomValues(new Uint16Array(8));G[3]=4095&G[3]|16384,G[4]=16383&G[4]|32768;const Z=Q=>G[Q].toString(16).padStart(4,"0");return Z(0)+Z(1)+"-"+Z(2)+"-"+Z(3)+"-"+Z(4)+"-"+Z(5)+Z(6)+Z(7)}},93662:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>$});var D=v(54024),R=v(63290),G=v(10699),Z=v(35133),Q=v(89951);class ${constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new Z.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(B,H){return new Promise((X,te)=>{let ae=!0;const oe=le=>{(0,G.k_)(H.signal),ae&&(ae=!1,le())};this._clients.length=B.length,this._clientPromises.length=B.length,this._inUseClients.length=B.length;for(let le=0;le(this._clients[le]=new Q.Z(se,H,()=>this._ongoingJobsQueue.pop()??null),oe(X),this._clients[le]),()=>(oe(te),null)):(this._clients[le]=new Q.Z(de,H,()=>this._ongoingJobsQueue.pop()??null),this._clientPromises[le]=Promise.resolve(this._clients[le]),oe(X))}})}broadcast(B,H,X){const te=new Array(this._clientPromises.length);for(let ae=0;aele?.invoke(B,H,X));return te}close(){let B;for(;B=this._ongoingJobsQueue.pop();)B.deferred.reject((0,G.zE)(`Worker closing, aborting job calling '${B.methodName}'`));for(const H of this._clientPromises)H.then(X=>X?.close());this._clients.length=0,this._clientPromises.length=0}invoke(B,H,X){let te;Array.isArray(X)?(R.Z.getLogger("esri.core.workers.Connection").warn("invoke()","The transferList parameter is deprecated, use the options object instead"),te={transferList:X}):te=X;const ae=(0,G.dD)();this._ongoingJobsQueue.push({methodName:B,data:H,invokeOptions:te,deferred:ae});for(let oe=0;oede?.jobAdded())}return ae.promise}on(B,H){return Promise.all(this._clientPromises).then(()=>(0,D.AL)(this._clients.map(X=>X.on(B,H))))}openPorts(){return new Promise(B=>{const H=new Array(this._clientPromises.length);let X=H.length;for(let te=0;te{ae&&(H[te]=ae.openPort()),0==--X&&B(H)})})}get test(){return{numClients:this._clients.length}}}},89951:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>re});var D=v(24263),R=v(26584),G=v(17770),Z=v(62208),Q=v(10699),$=v(13126),W=v(38365);const B={statsWorker:()=>Promise.all([v.e(6072),v.e(4135)]).then(v.bind(v,44135)),geometryEngineWorker:()=>Promise.all([v.e(4918),v.e(8592),v.e(1843)]).then(v.bind(v,77692)),CSVSourceWorker:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(8592),v.e(9155)]).then(v.bind(v,39155)),EdgeProcessingWorker:()=>v.e(1563).then(v.bind(v,81563)),ElevationSamplerWorker:()=>Promise.all([v.e(8592),v.e(8149)]).then(v.bind(v,28149)),FeatureServiceSnappingSourceWorker:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(8592),v.e(6354)]).then(v.bind(v,86354)),GeoJSONSourceWorker:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(8592),v.e(4079)]).then(v.bind(v,84079)),LercWorker:()=>v.e(7300).then(v.bind(v,57300)),MemorySourceWorker:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(8592),v.e(7728)]).then(v.bind(v,7728)),PBFDecoderWorker:()=>v.e(4287).then(v.bind(v,84287)),Pipeline:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(9372),v.e(9628),v.e(8592),v.e(1288)]).then(v.bind(v,11288)),PointCloudWorker:()=>Promise.all([v.e(4471),v.e(4056)]).then(v.bind(v,44056)),RasterWorker:()=>Promise.all([v.e(1533),v.e(8594),v.e(6455),v.e(5976)]).then(v.bind(v,15976)),SceneLayerSnappingSourceWorker:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(1269)]).then(v.bind(v,21269)),SceneLayerWorker:()=>v.e(375).then(v.bind(v,30375)),WFSSourceWorker:()=>Promise.all([v.e(410),v.e(6072),v.e(3308),v.e(3464),v.e(3774),v.e(8592),v.e(2305)]).then(v.bind(v,62305)),WorkerTileHandler:()=>Promise.all([v.e(3751),v.e(8364),v.e(4522),v.e(195)]).then(v.bind(v,90195))},{CLOSE:H,ABORT:X,INVOKE:te,RESPONSE:ae,OPEN_PORT:oe,ON:le}=$.Cs;class se{constructor(Y){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=Y,this._timer=null,this._process=this._process.bind(this)}push(Y){Y.type===$.Cs.ABORT?this._cancelledJobIds.add(Y.jobId):(this._invokeMessages.push(Y),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const Y of this._invokeMessages)this._cancelledJobIds.has(Y.jobId)||this._invoke(Y);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class re{constructor(Y,ee,ie){this._port=Y,this._getNextJob=ie,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new se(J=>this._onInvokeMessage(J)),this._client=ee.client,this._onMessage=this._onMessage.bind(this),this._channel=ee.channel,this._schedule=ee.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(Y){const ee=new MessageChannel;let ie;ie="function"==typeof Y?new Y:"default"in Y&&"function"==typeof Y.default?new Y.default:Y;const J=new re(ee.port1,{channel:ee,client:ie},()=>null);return"object"==typeof ie&&"remoteClient"in ie&&(ie.remoteClient=J),re.clients.set(J,ie),ee.port2}static loadWorker(Y){const ee=B[Y];return ee?ee():Promise.resolve(null)}close(){this._post({type:H}),this._close()}isBusy(){return this._outJobs.size>0}invoke(Y,ee,ie){const J=ie&&ie.signal,ce=ie&&ie.transferList;if(!this._port)return Promise.reject(new R.Z("worker:port-closed",`Cannot call invoke('${Y}'), port is closed`,{methodName:Y,data:ee}));const ue=(0,$.jt)();return new Promise((pe,he)=>{if((0,Q.Hc)(J))return this._processWork(),void he((0,Q.zE)());const me=(0,Q.fu)(J,()=>{const _e=this._outJobs.get(ue);_e&&(this._outJobs.delete(ue),this._processWork(),(0,Z.hw)(_e.abortHandle),this._post({type:X,jobId:ue}),he((0,Q.zE)()))});this._outJobs.set(ue,{resolve:pe,reject:he,abortHandle:me,debugInfo:Y}),this._post({type:te,jobId:ue,methodName:Y,abortable:null!=J},ee,ce)})}on(Y,ee){const ie=new MessageChannel;function J(ce){ee(ce.data)}return this._port.postMessage({type:$.Cs.ON,eventType:Y,port:ie.port2},[ie.port2]),ie.port1.addEventListener("message",J),ie.port1.start(),{remove(){ie.port1.postMessage({type:$.Cs.CLOSE}),ie.port1.close(),ie.port1.removeEventListener("message",J)}}}jobAdded(){this._processWork()}openPort(){const Y=new MessageChannel;return this._post({type:oe,port:Y.port2}),Y.port1}_processWork(){if(this._outJobs.size>=2)return;const Y=this._getNextJob();if(!Y)return;const{methodName:ee,data:ie,invokeOptions:J,deferred:ce}=Y;this.invoke(ee,ie,J).then(ue=>ce.resolve(ue)).catch(ue=>ce.reject(ue))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(Y=>{(0,Z.hw)(Y.abortHandle),Y.reject((0,Q.zE)(`Worker closing, aborting job calling '${Y.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(Y){(0,Z.pC)(this._schedule)?this._schedule(()=>this._processMessage(Y)):this._processMessage(Y)}_processMessage(Y){const ee=(0,$.QM)(Y);if(ee)switch(ee.type){case ae:this._onResponseMessage(ee);break;case te:this._invokeQueue.push(ee);break;case X:this._onAbortMessage(ee);break;case H:this._onCloseMessage();break;case oe:this._onOpenPortMessage(ee);break;case le:this._onOnMessage(ee)}}_onAbortMessage(Y){const ee=this._inJobs,ie=Y.jobId,J=ee.get(ie);this._invokeQueue.push(Y),J&&(J.controller&&J.controller.abort(),ee.delete(ie))}_onCloseMessage(){const Y=this._client;this._close(),Y&&"destroy"in Y&&re.clients.get(this)===Y&&Y.destroy(),re.clients.delete(this),Y&&Y.remoteClient&&(Y.remoteClient=null)}_onInvokeMessage(Y){const{methodName:ee,jobId:ie,data:J,abortable:ce}=Y,ue=ce?new AbortController:null,pe=this._inJobs;let he,me=this._client,ge=me[ee];try{if(!ge&&ee&&ee.includes(".")){const _e=ee.split(".");for(let Ee=0;Ee<_e.length-1;Ee++)me=me[_e[Ee]],ge=me[_e[Ee+1]]}if("function"!=typeof ge)throw new TypeError(`${ee} is not a function`);he=ge.call(me,J,{client:this,signal:ue?ue.signal:null})}catch(_e){return void this._post({type:ae,jobId:ie,error:(0,$.AB)(_e)})}(0,Q.y8)(he)?(pe.set(ie,{controller:ue,promise:he}),he.then(_e=>{pe.has(ie)&&(pe.delete(ie),this._post({type:ae,jobId:ie},_e))},_e=>{pe.has(ie)&&(pe.delete(ie),(0,Q.D_)(_e)||this._post({type:ae,jobId:ie,error:(0,$.AB)(_e||{message:`Error encountered at method ${ee}`})}))})):this._post({type:ae,jobId:ie},he)}_onOpenPortMessage(Y){new re(Y.port,{client:this._client},()=>null)}_onOnMessage(Y){const{port:ee}=Y,ie=this._client.on(Y.eventType,ce=>{ee.postMessage(ce)}),J=(0,G.on)(Y.port,"message",ce=>{(0,$.QM)(ce)?.type===$.Cs.CLOSE&&(J.remove(),ie.remove(),ee.close())})}_onResponseMessage(Y){const{jobId:ee,error:ie,data:J}=Y,ce=this._outJobs;if(!ce.has(ee))return;const ue=ce.get(ee);ce.delete(ee),this._processWork(),(0,Z.hw)(ue.abortHandle),ie?ue.reject(R.Z.fromJSON(JSON.parse(ie))):ue.resolve(J)}_post(Y,ee,ie){return(0,$.oi)(this._port,Y,ee,ie)}}re.kernelInfo={revision:W.$,version:D.i8,buildDate:W.r},re.clients=new Map},42930:(nt,Ae,v)=>{"use strict";v.d(Ae,{q:()=>W});var D=v(85931),R=v(54024),G=v(63290),Z=v(62208),Q=v(10699),$=v(59289);class W{constructor(H,X,te,ae,oe={}){this._mainMethod=X,this._transferLists=te,this._listeners=[],this._promise=(0,$.bA)(H,{...oe,schedule:ae}).then(le=>{if(void 0===this._thread){this._thread=le,this._promise=null,oe.hasInitialize&&this.broadcast({},"initialize");for(const de of this._listeners)this._connectListener(de)}else le.close()}),this._promise.catch(le=>G.Z.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${H} worker: ${le}`))}on(H,X){const te={removed:!1,eventName:H,callback:X,threadHandle:null};return this._listeners.push(te),this._connectListener(te),(0,R.kB)(()=>{te.removed=!0,(0,D.Od)(this._listeners,te),this._thread&&(0,Z.pC)(te.threadHandle)&&te.threadHandle.remove()})}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null}invoke(H,X){return this.invokeMethod(this._mainMethod,H,X)}invokeMethod(H,X,te){if(this._thread){const ae=this._transferLists[H],oe=ae?ae(X):[];return this._thread.invoke(H,X,{transferList:oe,signal:te})}return this._promise?this._promise.then(()=>((0,Q.k_)(te),this.invokeMethod(H,X,te))):Promise.reject(null)}broadcast(H,X){return this._thread?Promise.all(this._thread.broadcast(X,H)).then(()=>{}):this._promise?this._promise.then(()=>this.broadcast(H,X)):Promise.reject()}get promise(){return this._promise}_connectListener(H){this._thread&&this._thread.on(H.eventName,H.callback).then(X=>{H.removed||(H.threadHandle=X)})}}},13126:(nt,Ae,v)=>{"use strict";v.d(Ae,{AB:()=>$,Cs:()=>R,QM:()=>B,jt:()=>Z,oi:()=>W});var R,te,D=v(8314);(te=R||(R={}))[te.HANDSHAKE=0]="HANDSHAKE",te[te.OPEN=1]="OPEN",te[te.OPENED=2]="OPENED",te[te.RESPONSE=3]="RESPONSE",te[te.INVOKE=4]="INVOKE",te[te.ABORT=5]="ABORT",te[te.CLOSE=6]="CLOSE",te[te.OPEN_PORT=7]="OPEN_PORT",te[te.ON=8]="ON";let G=0;function Z(){return G++}function $(te){return te?"string"==typeof te?JSON.stringify({name:"message",message:te}):te.toJSON?JSON.stringify(te):JSON.stringify({name:te.name,message:te.message,details:te.details||{stack:te.stack}}):null}function W(te,ae,oe,le){if(ae.type===R.OPEN_PORT)return void te.postMessage(ae,[ae.port]);if(ae.type!==R.INVOKE&&ae.type!==R.RESPONSE)return void te.postMessage(ae);let de;if(function Q(te){return te&&"object"==typeof te&&("result"in te||"transferList"in te)}(oe)?(de=H(oe.transferList),ae.data=oe.result):(de=H(le),ae.data=oe),de){if((0,D.Z)("ff"))for(const se of de)if("byteLength"in se&&se.byteLength>267386880){const re="Worker call with large ArrayBuffer would crash Firefox";switch(ae.type){case R.INVOKE:throw re;case R.RESPONSE:return void W(te,{type:R.RESPONSE,jobId:ae.jobId,error:$(re)})}}te.postMessage(ae,de)}else te.postMessage(ae)}function B(te){if(!te)return null;const ae=te.data;return ae?"string"==typeof ae?JSON.parse(ae):ae:null}function H(te){if(!te||!te.length)return null;if((0,D.Z)("esri-workers-arraybuffer-transfer"))return te;const ae=te.filter(oe=>!function X(te){return te instanceof ArrayBuffer||te&&te.constructor&&"ArrayBuffer"===te.constructor.name}(oe));return ae.length?ae:null}},59289:(nt,Ae,v)=>{"use strict";v.d(Ae,{j2:()=>He,bA:()=>Le});var D=v(15861),R=v(26584),G=v(8314),Z=v(10699),Q=v(93662),$=v(89951),W=v(24263),B=v(63290),H=v(62208),X=v(13126),te=v(54346),ae=v(59318),le=(v(52515),v(21726));const se={};var Y=v(79682);class ee{constructor(){const et=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(qe=>{this[qe]=(...ot)=>et[qe](...ot)})}}class ie{constructor(){this._dispatcher=new ee,this._workerPostMessage({type:X.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(et){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=et,et&&this.addEventListener("message",et)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(et){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=et,et&&this.addEventListener("messageerror",et)}get onerror(){return this._onerrorHandler}set onerror(et){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=et,et&&this.addEventListener("error",et)}postMessage(et){(0,Y.Y)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:et}))})}dispatchEvent(et){return this._dispatcher.dispatchEvent(et)}addEventListener(et,qe,ot){this._dispatcher.addEventListener(et,qe,ot)}removeEventListener(et,qe,ot){this._dispatcher.removeEventListener(et,qe,ot)}_workerPostMessage(et){(0,Y.Y)(()=>{this.dispatchEvent(new MessageEvent("message",{data:et}))})}_workerMessageHandler(et){var qe=this;return(0,D.Z)(function*(){const ot=(0,X.QM)(et);if(ot&&ot.type===X.Cs.OPEN){const{modulePath:ut,jobId:_t}=ot;let Ct=yield $.Z.loadWorker(ut);Ct||(Ct=yield import(ut));const vt=$.Z.connect(Ct);qe._workerPostMessage({type:X.Cs.OPENED,jobId:_t,data:vt})}})()}}var J=v(56683),ce=v(38365);const ue=B.Z.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:pe}=X.Cs,he='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,version:r}=configuration.kernelInfo,{revision:t,version:n}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS API for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const i=outgoing.get(r);outgoing.delete(r),o.error?i.reject(JSON.parse(o.error)):i.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});';let me,ge;const _e="Failed to create Worker. Fallback to execute module in main thread";function De(){return(De=(0,D.Z)(function*(){if(!(0,G.Z)("esri-workers")||((0,G.Z)("mozilla"),0))return be(new ie);if(!me&&!ge)try{const et=he.split('"{CONFIGURATION}"').join(`'${ye()}'`);me=URL.createObjectURL(new Blob([et],{type:"text/javascript"}))}catch(et){ge=et||{}}let tt;if(me)try{tt=new Worker(me,{name:"esri-worker-"+ve++})}catch{ue.warn(_e,ge),tt=new ie}else ue.warn(_e,ge),tt=new ie;return be(tt)})).apply(this,arguments)}function be(tt){return Se.apply(this,arguments)}function Se(){return(Se=(0,D.Z)(function*(tt){return new Promise(et=>{function qe(ut){const _t=(0,X.QM)(ut);_t&&_t.type===pe&&(tt.removeEventListener("message",qe),tt.removeEventListener("error",ot),et(tt))}function ot(ut){ut.preventDefault(),tt.removeEventListener("message",qe),tt.removeEventListener("error",ot),ue.warn("Failed to create Worker. Fallback to execute module in main thread",ut),(tt=new ie).addEventListener("message",qe),tt.addEventListener("error",ot)}tt.addEventListener("message",qe),tt.addEventListener("error",ot)})})).apply(this,arguments)}function ye(){let tt;if(null!=ae.Z.default){const ut={...ae.Z};delete ut.default,tt=JSON.parse(JSON.stringify(ut))}else tt=JSON.parse(JSON.stringify(ae.Z));tt.assetsPath=(0,le.hF)(tt.assetsPath),tt.defaultAssetsPath=tt.defaultAssetsPath?(0,le.hF)(tt.defaultAssetsPath):void 0,tt.request.interceptors=[],tt.log.interceptors=[],tt.locale=(0,J.Kd)(),tt.has={"esri-csp-restrictions":(0,G.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,G.Z)("esri-2d-update-debug"),"featurelayer-pbf":(0,G.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,G.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,G.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,G.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,G.Z)("esri-atomics"),"esri-shared-array-buffer":(0,G.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,G.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,G.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,G.Z)("feature-polyline-generalization-factor"),"host-webworker":1,"polylabel-placement-enabled":(0,G.Z)("polylabel-placement-enabled")},tt.workers.loaderUrl&&(tt.workers.loaderUrl=(0,le.hF)(tt.workers.loaderUrl)),tt.workers.workerPath=(0,le.hF)(tt.workers.workerPath?tt.workers.workerPath:(0,te.V)("esri/core/workers/RemoteClient.js")),tt.workers.useDynamicImport=!1;const et=ae.Z.workers.loaderConfig,qe=function j(tt){const et={async:tt.async,isDebug:tt.isDebug,locale:tt.locale,baseUrl:tt.baseUrl,has:{...tt.has},map:{...tt.map},packages:tt.packages&&tt.packages.concat()||[],paths:{...tt.paths}};return tt.hasOwnProperty("async")||(et.async=!0),tt.hasOwnProperty("isDebug")||(et.isDebug=!1),tt.baseUrl||(et.baseUrl=se.baseUrl),se.packages?.forEach(qe=>{!function re(tt,et){for(const qe of tt)if(qe.name===et.name)return;tt.push(et)}(et.packages??[],qe)}),et}({baseUrl:et?.baseUrl,locale:(0,J.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...et?.has},map:{...et?.map},paths:{...et?.paths},packages:et?.packages||[]});return JSON.stringify({esriConfig:tt,loaderConfig:qe,kernelInfo:{version:W.i8,buildDate:ce.r,revision:ce.$}})}let ve=0;const{ABORT:xe,INVOKE:ze,OPEN:Ke,OPENED:We,RESPONSE:Ce}=X.Cs;class Be{constructor(et,qe){this._outJobs=new Map,this._inJobs=new Map,this.worker=et,this.id=qe,et.addEventListener("message",this._onMessage.bind(this)),et.addEventListener("error",ot=>{ot.preventDefault(),B.Z.getLogger("esri.core.workers.WorkerOwner").error(ot)})}static create(et){return(0,D.Z)(function*(){const qe=yield function Ee(){return De.apply(this,arguments)}();return new Be(qe,et)})()}terminate(){this.worker.terminate()}open(et,qe={}){var ot=this;return(0,D.Z)(function*(){const{signal:ut}=qe,_t=(0,X.jt)();return new Promise((Ct,vt)=>{const Lt={resolve:Ct,reject:vt,abortHandle:(0,Z.$F)(ut,()=>{ot._outJobs.delete(_t),ot._post({type:xe,jobId:_t})})};ot._outJobs.set(_t,Lt),ot._post({type:Ke,jobId:_t,modulePath:et})})})()}_onMessage(et){const qe=(0,X.QM)(et);if(qe)switch(qe.type){case We:this._onOpenedMessage(qe);break;case Ce:this._onResponseMessage(qe);break;case xe:this._onAbortMessage(qe);break;case ze:this._onInvokeMessage(qe)}}_onAbortMessage(et){const qe=this._inJobs,ot=et.jobId,ut=qe.get(ot);ut&&(ut.controller&&ut.controller.abort(),qe.delete(ot))}_onInvokeMessage(et){const{methodName:qe,jobId:ot,data:ut,abortable:_t}=et,Ct=_t?new AbortController:null,vt=this._inJobs,Lt=W.Nv[qe];let jt;try{if("function"!=typeof Lt)throw new TypeError(`${qe} is not a function`);jt=Lt.call(null,ut,{signal:Ct?Ct.signal:null})}catch($t){return void this._post({type:Ce,jobId:ot,error:(0,X.AB)($t)})}(0,Z.y8)(jt)?(vt.set(ot,{controller:Ct,promise:jt}),jt.then($t=>{vt.has(ot)&&(vt.delete(ot),this._post({type:Ce,jobId:ot},$t))},$t=>{vt.has(ot)&&(vt.delete(ot),$t||($t={message:"Error encountered at method"+qe}),(0,Z.D_)($t)||this._post({type:Ce,jobId:ot,error:(0,X.AB)($t||{message:`Error encountered at method ${qe}`})}))})):this._post({type:Ce,jobId:ot},jt)}_onOpenedMessage(et){const{jobId:qe,data:ot}=et,ut=this._outJobs.get(qe);ut&&(this._outJobs.delete(qe),(0,H.hw)(ut.abortHandle),ut.resolve(ot))}_onResponseMessage(et){const{jobId:qe,error:ot,data:ut}=et,_t=this._outJobs.get(qe);_t&&(this._outJobs.delete(qe),(0,H.hw)(_t.abortHandle),ot?_t.reject(R.Z.fromJSON(JSON.parse(ot))):_t.resolve(ut))}_post(et,qe,ot){return(0,X.oi)(this.worker,et,qe,ot)}}let Fe=(0,G.Z)("esri-workers-debug")?1:(0,G.Z)("esri-mobile")?Math.min(navigator.hardwareConcurrency-1,3):(0,G.Z)("host-browser")?navigator.hardwareConcurrency-1:0;Fe||(Fe=(0,G.Z)("safari")&&(0,G.Z)("mac")||(0,G.Z)("trident")?7:2);let je=0;const Re=[];function He(){Je()}function Ge(tt,et){return Pe.apply(this,arguments)}function Pe(){return(Pe=(0,D.Z)(function*(tt,et){const qe=new Q.Z;return yield qe.open(tt,et),qe})).apply(this,arguments)}function Le(tt){return Me.apply(this,arguments)}function Me(){return(Me=(0,D.Z)(function*(tt,et={}){if("string"!=typeof tt)throw new R.Z("workers:undefined-module","modulePath is missing");let qe=et.strategy||"distributed";if((0,G.Z)("host-webworker")&&!(0,G.Z)("esri-workers")&&(qe="local"),"local"===qe){let ot=yield $.Z.loadWorker(tt);ot||(ot=yield import(tt)),(0,Z.k_)(et.signal);const ut=et.client||ot;return Ge([$.Z.connect(ot)],{...et,client:ut})}if(yield Je(),(0,Z.k_)(et.signal),"dedicated"===qe){const ot=je++%Fe;return Ge([yield Re[ot].open(tt,et)],et)}if(et.maxNumWorkers&&et.maxNumWorkers>0){const ot=Math.min(et.maxNumWorkers,Fe);if(otot.open(tt,et)),et)})).apply(this,arguments)}let Xe,Ye=null;function Je(){return rt.apply(this,arguments)}function rt(){return(rt=(0,D.Z)(function*(){if(Ye)return Ye;Xe=new AbortController;const tt=[];for(let et=0;et(Re[et]=ot,ot));tt.push(qe)}return Ye=Promise.all(tt),Ye})).apply(this,arguments)}},27402:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>gr});var te,D=v(17626),R=v(86810),G=v(58817),Z=v(77712),Q=v(66656),$=v(68653),W=v(76898),B=v(99433),X=(v(85931),v(90912));let ae=te=class extends R.wq{constructor(ar){super(ar),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new te({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],ae.prototype,"expression",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],ae.prototype,"name",void 0),(0,D._)([(0,Z.Cb)({type:["boolean","date","number","string"],json:{write:!0}})],ae.prototype,"returnType",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],ae.prototype,"title",void 0),ae=te=(0,D._)([(0,W.j)("esri.form.ExpressionInfo")],ae);const oe=ae;let le=class extends R.wq{constructor(ar){super(ar),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],le.prototype,"description",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],le.prototype,"label",void 0),(0,D._)([(0,Z.Cb)()],le.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],le.prototype,"visibilityExpression",void 0),le=(0,D._)([(0,W.j)("esri.form.elements.Element")],le);const de=le;var se;let re=se=class extends R.wq{constructor(ar){super(ar),this.type=null}clone(){return new se({type:this.type})}};(0,D._)([(0,Z.Cb)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],re.prototype,"type",void 0),re=se=(0,D._)([(0,W.j)("esri.form.elements.inputs.AttachmentInput")],re);const j=re;var Y;let ee=Y=class extends de{constructor(ar){super(ar),this.attachmentKeyword=null,this.editable=!0,this.input=null,this.type="attachment"}clone(){return new Y({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],ee.prototype,"attachmentKeyword",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],ee.prototype,"editable",void 0),(0,D._)([(0,Z.Cb)({type:j,json:{read:{source:"inputType"},write:{target:"inputType"}}})],ee.prototype,"input",void 0),(0,D._)([(0,Z.Cb)({type:["attachment"],json:{read:!1,write:!0}})],ee.prototype,"type",void 0),ee=Y=(0,D._)([(0,W.j)("esri.form.elements.AttachmentElement")],ee);const ie=ee;let J=class extends R.wq{constructor(ar){super(ar),this.type=null}};(0,D._)([(0,Z.Cb)()],J.prototype,"type",void 0),J=(0,D._)([(0,W.j)("esri.form.elements.inputs.Input")],J);const ce=J;let ue=class extends ce{constructor(ar){super(ar),this.maxLength=null,this.minLength=0}};(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0}})],ue.prototype,"maxLength",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0}})],ue.prototype,"minLength",void 0),ue=(0,D._)([(0,W.j)("esri.form.elements.inputs.TextInput")],ue);const pe=ue;var he;let me=he=class extends pe{constructor(ar){super(ar),this.type="barcode-scanner"}clone(){return new he({maxLength:this.maxLength,minLength:this.minLength})}};(0,D._)([(0,Z.Cb)({type:["barcode-scanner"],json:{read:!1,write:!0}})],me.prototype,"type",void 0),me=he=(0,D._)([(0,W.j)("esri.form.elements.inputs.BarcodeScannerInput")],me);const ge=me;var _e;let Ee=_e=class extends ce{constructor(ar){super(ar),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new _e({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],Ee.prototype,"noValueOptionLabel",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],Ee.prototype,"showNoValueOption",void 0),(0,D._)([(0,Z.Cb)({type:["combo-box"],json:{read:!1,write:!0}})],Ee.prototype,"type",void 0),Ee=_e=(0,D._)([(0,W.j)("esri.form.elements.inputs.ComboBoxInput")],Ee);const De=Ee;var be;function Se(ar){return null!=ar?new Date(ar):null}function ye(ar){return ar?ar.getTime():null}let ve=be=class extends ce{constructor(ar){super(ar),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(ar,Fr){return Se(Fr.max)}writeMax(ar,Fr){Fr.max=ye(ar)}readMin(ar,Fr){return Se(Fr.min)}writeMin(ar,Fr){Fr.min=ye(ar)}clone(){return new be({includeTime:this.includeTime,max:this.max,min:this.min,type:this.type})}};(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],ve.prototype,"includeTime",void 0),(0,D._)([(0,Z.Cb)({type:Date,json:{type:Number,write:!0}})],ve.prototype,"max",void 0),(0,D._)([(0,$.r)("max")],ve.prototype,"readMax",null),(0,D._)([(0,B.c)("max")],ve.prototype,"writeMax",null),(0,D._)([(0,Z.Cb)({type:Date,json:{type:Number,write:!0}})],ve.prototype,"min",void 0),(0,D._)([(0,$.r)("min")],ve.prototype,"readMin",null),(0,D._)([(0,B.c)("min")],ve.prototype,"writeMin",null),(0,D._)([(0,Z.Cb)({type:["datetime-picker"],json:{read:!1,write:!0}})],ve.prototype,"type",void 0),ve=be=(0,D._)([(0,W.j)("esri.form.elements.inputs.DateTimePickerInput")],ve);const xe=ve;var ze;let Ke=ze=class extends ce{constructor(ar){super(ar),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new ze({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],Ke.prototype,"noValueOptionLabel",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],Ke.prototype,"showNoValueOption",void 0),(0,D._)([(0,Z.Cb)({type:["radio-buttons"],json:{read:!1,write:!0}})],Ke.prototype,"type",void 0),Ke=ze=(0,D._)([(0,W.j)("esri.form.elements.inputs.RadioButtonsInput")],Ke);const We=Ke;var Ce;let Be=Ce=class extends ce{constructor(ar){super(ar),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new Ce({offValue:this.offValue,onValue:this.onValue})}};(0,D._)([(0,Z.Cb)({type:[String,Number],json:{write:!0}})],Be.prototype,"offValue",void 0),(0,D._)([(0,Z.Cb)({type:[String,Number],json:{write:!0}})],Be.prototype,"onValue",void 0),(0,D._)([(0,Z.Cb)({type:["switch"],json:{read:!1,write:!0}})],Be.prototype,"type",void 0),Be=Ce=(0,D._)([(0,W.j)("esri.form.elements.inputs.SwitchInput")],Be);const Fe=Be;var je;let Re=je=class extends pe{constructor(ar){super(ar),this.type="text-area"}clone(){return new je({maxLength:this.maxLength,minLength:this.minLength})}};(0,D._)([(0,Z.Cb)({type:["text-area"],json:{read:!1,write:!0}})],Re.prototype,"type",void 0),Re=je=(0,D._)([(0,W.j)("esri.form.elements.inputs.TextAreaInput")],Re);const He=Re;var Ie;let Ge=Ie=class extends pe{constructor(ar){super(ar),this.type="text-box"}clone(){return new Ie({maxLength:this.maxLength,minLength:this.minLength})}};(0,D._)([(0,Z.Cb)({type:["text-box"],json:{read:!1,write:!0}})],Ge.prototype,"type",void 0),Ge=Ie=(0,D._)([(0,W.j)("esri.form.elements.inputs.TextBoxInput")],Ge);const Le={base:ce,key:"type",typeMap:{"barcode-scanner":ge,"combo-box":De,"datetime-picker":xe,"radio-buttons":We,switch:Fe,"text-area":He,"text-box":Ge}};var Ne,Me=v(67945);let Xe=Ne=class extends de{constructor(ar){super(ar),this.domain=null,this.editable=!0,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new Ne({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,D._)([(0,Z.Cb)({types:Me.V5,json:{read:{reader:Me.im},write:!0}})],Xe.prototype,"domain",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],Xe.prototype,"editable",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],Xe.prototype,"editableExpression",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],Xe.prototype,"fieldName",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],Xe.prototype,"hint",void 0),(0,D._)([(0,Z.Cb)({types:Le,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Xe.prototype,"input",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],Xe.prototype,"requiredExpression",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{read:!1,write:!0}})],Xe.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],Xe.prototype,"valueExpression",void 0),Xe=Ne=(0,D._)([(0,W.j)("esri.form.elements.FieldElement")],Xe);const Ye=Xe;var rt,Je=v(51686);let tt=rt=class extends de{constructor(ar){super(ar),this.displayCount=null,this.displayType="list",this.editable=!0,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new rt({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:(0,G.d9)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0}})],tt.prototype,"displayCount",void 0),(0,D._)([(0,Z.Cb)({type:["list"],json:{write:!0}})],tt.prototype,"displayType",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],tt.prototype,"editable",void 0),(0,D._)([(0,Z.Cb)({type:[Je.Z],json:{write:!0}})],tt.prototype,"orderByFields",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0}})],tt.prototype,"relationshipId",void 0),(0,D._)([(0,Z.Cb)({type:["relationship"],json:{read:!1,write:!0}})],tt.prototype,"type",void 0),tt=rt=(0,D._)([(0,W.j)("esri.form.elements.RelationshipElement")],tt);const et=tt;function qe(ar){return{typesWithGroup:{base:de,key:"type",typeMap:{attachment:ie,field:Ye,group:ar,relationship:et}},typesWithoutGroup:{base:de,key:"type",typeMap:{attachment:ie,field:Ye,relationship:et}}}}function ot(ar,Fr,mr=!0){if(!ar)return null;const wt=mr?Fr.typesWithGroup.typeMap:Fr.typesWithoutGroup.typeMap;return ar.filter(or=>wt[or.type]).map(or=>wt[or.type].fromJSON(or))}function ut(ar,Fr,mr=!0){if(!ar)return null;const wt=mr?Fr.typesWithGroup.typeMap:Fr.typesWithoutGroup.typeMap;return ar.filter(or=>wt[or.type]).map(or=>or.toJSON())}function _t(ar,Fr,mr=!0){return ar?ar.map(wt=>(0,X.N7)(mr?Fr.typesWithGroup:Fr.typesWithoutGroup,wt)):null}var Ct;let vt=Ct=class extends de{constructor(ar){super(ar),this.elements=null,this.initialState="expanded",this.type="group"}castElements(ar){return _t(ar,Lt,!1)}readElements(ar,Fr){return ot(Fr.formElements,Lt,!1)}writeElements(ar,Fr){Fr.formElements=ut(ar,Lt,!1)}clone(){return new Ct({description:this.description,elements:(0,G.d9)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,D._)([(0,Z.Cb)({json:{write:!0}})],vt.prototype,"elements",void 0),(0,D._)([(0,Q.p)("elements")],vt.prototype,"castElements",null),(0,D._)([(0,$.r)("elements",["formElements"])],vt.prototype,"readElements",null),(0,D._)([(0,B.c)("elements")],vt.prototype,"writeElements",null),(0,D._)([(0,Z.Cb)({type:["collapsed","expanded"],json:{write:!0}})],vt.prototype,"initialState",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{read:!1,write:!0}})],vt.prototype,"type",void 0),vt=Ct=(0,D._)([(0,W.j)("esri.form.elements.GroupElement")],vt);const Lt=qe(vt);var $t;const Wt=qe(vt);let pr=$t=class extends R.wq{constructor(ar){super(ar),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(ar){return _t(ar,Wt)}readElements(ar,Fr){return ot(Fr.formElements,Wt)}writeElements(ar,Fr){Fr.formElements=ut(ar,Wt)}clone(){return new $t({description:this.description,expressionInfos:(0,G.d9)(this.expressionInfos),elements:(0,G.d9)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],pr.prototype,"description",void 0),(0,D._)([(0,Z.Cb)({json:{write:!0}})],pr.prototype,"elements",void 0),(0,D._)([(0,Q.p)("elements")],pr.prototype,"castElements",null),(0,D._)([(0,$.r)("elements",["formElements"])],pr.prototype,"readElements",null),(0,D._)([(0,B.c)("elements")],pr.prototype,"writeElements",null),(0,D._)([(0,Z.Cb)({type:[oe],json:{write:!0}})],pr.prototype,"expressionInfos",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{default:!1,write:!0}})],pr.prototype,"preserveFieldValuesWhenHidden",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],pr.prototype,"title",void 0),pr=$t=(0,D._)([(0,W.j)("esri.form.FormTemplate")],pr);const gr=pr},29132:(nt,Ae,v)=>{"use strict";v.d(Ae,{qM:()=>ae});var D=v(90912),R=v(2004),G=v(21674),Z=v(72854),Q=v(72642),$=v(37118),W=v(55214);v(65234),v(71774),v(91179);const ae={base:G.Z,key:"type",typeMap:{extent:R.Z,multipoint:Z.Z,point:Q.Z,polyline:W.Z,polygon:$.Z}};(0,D.N7)(ae)},2004:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Y});var de,D=v(17626),R=v(62208),G=v(77275),Z=v(77712),W=(v(85931),v(90912),v(76898)),B=v(21674),H=v(72642),X=v(65234),te=v(33190),ae=v(11519),oe=v(37053),le=v(46367);function re(ee,ie,J){return null==ie?J:null==J?ie:ee(ie,J)}let j=de=class extends B.Z{constructor(...ee){super(...ee),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(ee,ie,J,ce,ue){return function se(ee){return ee&&("esri.geometry.SpatialReference"===ee.declaredClass||null!=ee.wkid)}(ee)?{spatialReference:ee,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof ee?(ee.spatialReference=ee.spatialReference??X.Z.WGS84,ee):{xmin:ee,ymin:ie,xmax:J,ymax:ce,spatialReference:ue??X.Z.WGS84}}static fromBounds(ee,ie){return new de({xmin:ee[0],ymin:ee[1],xmax:ee[2],ymax:ee[3],spatialReference:ie})}static fromPoint(ee){return new de({xmin:ee.x,ymin:ee.y,zmin:ee.z,xmax:ee.x,ymax:ee.y,zmax:ee.z,spatialReference:ee.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const ee=new H.Z({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(ee.z=.5*(this.zmin+this.zmax)),this.hasM&&(ee.m=.5*(this.mmin+this.mmax)),ee}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(ee){const ie=this.center;return null!=ee.z&&this.hasZ?this.offset(ee.x-ie.x,ee.y-ie.y,ee.z-ie.z):this.offset(ee.x-ie.x,ee.y-ie.y)}clone(){const ee=new de;return ee.xmin=this.xmin,ee.ymin=this.ymin,ee.xmax=this.xmax,ee.ymax=this.ymax,ee.spatialReference=this.spatialReference,null!=this.zmin&&(ee.zmin=this.zmin,ee.zmax=this.zmax),null!=this.mmin&&(ee.mmin=this.mmin,ee.mmax=this.mmax),ee}contains(ee){if(!ee)return!1;const ie=this.spatialReference,J=ee.spatialReference;return ie&&J&&!ie.equals(J)&&(0,le.Q8)(ie,J)&&(ee=ie.isWebMercator?(0,le.$)(ee):(0,le.Sx)(ee,!0)),"point"===ee.type?(0,te.aV)(this,ee):"extent"===ee.type&&(0,te.uP)(this,ee)}equals(ee){if(this===ee)return!0;if((0,R.Wi)(ee))return!1;const ie=this.spatialReference,J=ee.spatialReference;return ie&&J&&!ie.equals(J)&&(0,le.Q8)(ie,J)&&(ee=ie.isWebMercator?(0,le.$)(ee):(0,le.Sx)(ee,!0)),this.xmin===ee.xmin&&this.ymin===ee.ymin&&this.zmin===ee.zmin&&this.mmin===ee.mmin&&this.xmax===ee.xmax&&this.ymax===ee.ymax&&this.zmax===ee.zmax&&this.mmax===ee.mmax}expand(ee){const ie=.5*(1-ee),J=this.width*ie,ce=this.height*ie;if(this.xmin+=J,this.ymin+=ce,this.xmax-=J,this.ymax-=ce,this.hasZ){const ue=(this.zmax-this.zmin)*ie;this.zmin+=ue,this.zmax-=ue}if(this.hasM){const ue=(this.mmax-this.mmin)*ie;this.mmin+=ue,this.mmax-=ue}return this}intersects(ee){if((0,R.Wi)(ee))return!1;"mesh"===ee.type&&(ee=ee.extent);const ie=this.spatialReference,J=ee.spatialReference;return ie&&J&&!(0,oe.fS)(ie,J)&&(0,le.Q8)(ie,J)&&(ee=ie.isWebMercator?(0,le.$)(ee):(0,le.Sx)(ee,!0)),(0,ae.IY)(ee.type)(this,ee)}normalize(){const ee=this._normalize(!1,!0);return Array.isArray(ee)?ee:[ee]}offset(ee,ie,J){return this.xmin+=ee,this.ymin+=ie,this.xmax+=ee,this.ymax+=ie,null!=J&&(this.zmin+=J,this.zmax+=J),this}shiftCentralMeridian(){return this._normalize(!0)}union(ee){return this===ee||(this.xmin=Math.min(this.xmin,ee.xmin),this.ymin=Math.min(this.ymin,ee.ymin),this.xmax=Math.max(this.xmax,ee.xmax),this.ymax=Math.max(this.ymax,ee.ymax),(this.hasZ||ee.hasZ)&&(this.zmin=re(Math.min,this.zmin,ee.zmin),this.zmax=re(Math.max,this.zmax,ee.zmax)),(this.hasM||ee.hasM)&&(this.mmin=re(Math.min,this.mmin,ee.mmin),this.mmax=re(Math.max,this.mmax,ee.mmax))),this}intersection(ee){return this===ee?this:(0,R.Wi)(ee)||!this.intersects(ee)?null:(this.xmin=Math.max(this.xmin,ee.xmin),this.ymin=Math.max(this.ymin,ee.ymin),this.xmax=Math.min(this.xmax,ee.xmax),this.ymax=Math.min(this.ymax,ee.ymax),(this.hasZ||ee.hasZ)&&(this.zmin=re(Math.max,this.zmin,ee.zmin),this.zmax=re(Math.min,this.zmax,ee.zmax)),(this.hasM||ee.hasM)&&(this.mmin=re(Math.max,this.mmin,ee.mmin),this.mmax=re(Math.min,this.mmax,ee.mmax)),this)}toJSON(ee){return this.write({},ee)}_shiftCM(ee=(0,oe.C5)(this.spatialReference)){if(!ee||!this.spatialReference)return this;const ie=this.spatialReference,J=this._getCM(ee);if(J){const ce=ie.isWebMercator?(0,le.Sx)(J):J;this.xmin-=J.x,this.xmax-=J.x,ie.isWebMercator||(ce.x=this._normalizeX(ce.x,ee).x),this.spatialReference=new X.Z((0,G.gx)((ie.isWGS84?ee.altTemplate:null)??ee.wkTemplate,{Central_Meridian:ce.x}))}return this}_getCM(ee){let ie=null;const[J,ce]=ee.valid,ue=this.xmin,pe=this.xmax;return ue>=J&&ue<=ce&&pe>=J&&pe<=ce||(ie=this.center),ie}_normalize(ee,ie,J){const ce=this.spatialReference;if(!ce)return this;const ue=J??(0,oe.C5)(ce);if(null==ue)return this;const pe=this._getParts(ue).map(ge=>ge.extent);if(pe.length<2)return pe[0]||this;if(pe.length>2)return ee?this._shiftCM(ue):this.set({xmin:ue.valid[0],xmax:ue.valid[1]});if(ee)return this._shiftCM(ue);if(ie)return pe;let he=!0,me=!0;return pe.forEach(ge=>{ge.hasZ||(he=!1),ge.hasM||(me=!1)}),{rings:pe.map(ge=>{const _e=[[ge.xmin,ge.ymin],[ge.xmin,ge.ymax],[ge.xmax,ge.ymax],[ge.xmax,ge.ymin],[ge.xmin,ge.ymin]];if(he){const Ee=(ge.zmax-ge.zmin)/2;for(let De=0;De<_e.length;De++)_e[De].push(Ee)}if(me){const Ee=(ge.mmax-ge.mmin)/2;for(let De=0;De<_e.length;De++)_e[De].push(Ee)}return _e}),hasZ:he,hasM:me,spatialReference:ce}}_getParts(ee){let ie=this.cache._parts;if(!ie){ie=[];const{ymin:ue,ymax:pe,spatialReference:he}=this,me=this.width,ge=this.xmin,_e=this.xmax;let Ee;ee=ee||(0,oe.C5)(he);const[De,be]=ee.valid;Ee=this._normalizeX(this.xmin,ee);const Se=Ee.x,ye=Ee.frameId;Ee=this._normalizeX(this.xmax,ee);const ve=Ee.x,xe=Ee.frameId,ze=Se===ve&&me>0;if(me>2*be){const Ke=new de(ge<_e?Se:ve,ue,be,pe,he),We=new de(De,ue,ge<_e?ve:Se,pe,he),Ce=new de(0,ue,be,pe,he),Be=new de(De,ue,0,pe,he),Fe=[],je=[];Ke.contains(Ce)&&Fe.push(ye),Ke.contains(Be)&&je.push(ye),We.contains(Ce)&&Fe.push(xe),We.contains(Be)&&je.push(xe);for(let Re=ye+1;Reve||ze?ie.push({extent:new de(Se,ue,be,pe,he),frameIds:[ye]},{extent:new de(De,ue,ve,pe,he),frameIds:[xe]}):ie.push({extent:new de(Se,ue,ve,pe,he),frameIds:[ye]});this.cache._parts=ie}const J=this.hasZ,ce=this.hasM;if(J||ce){const ue={};J&&(ue.zmin=this.zmin,ue.zmax=this.zmax),ce&&(ue.mmin=this.mmin,ue.mmax=this.mmax);for(let pe=0;pece?(pe=Math.ceil(Math.abs(ee-ce)/ue),ee-=pe*ue,he=pe):ee{"use strict";v.d(Ae,{Z:()=>X});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(68653)),W=v(76898),B=v(65234);let H=class extends R.wq{constructor(...te){super(...te),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=B.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(te,ae){if(te instanceof B.Z)return te;if(null!=te){const oe=new B.Z;return oe.read(te,ae),oe}return te}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(te){return this.cache[te]}setCacheValue(te,ae){this.cache[te]=ae}};(0,D._)([(0,G.Cb)()],H.prototype,"type",void 0),(0,D._)([(0,G.Cb)({readOnly:!0})],H.prototype,"cache",null),(0,D._)([(0,G.Cb)({readOnly:!0})],H.prototype,"extent",null),(0,D._)([(0,G.Cb)({type:Boolean,json:{write:{overridePolicy:te=>({enabled:te})}}})],H.prototype,"hasM",void 0),(0,D._)([(0,G.Cb)({type:Boolean,json:{write:{overridePolicy:te=>({enabled:te})}}})],H.prototype,"hasZ",void 0),(0,D._)([(0,G.Cb)({type:B.Z,json:{write:!0}})],H.prototype,"spatialReference",void 0),(0,D._)([(0,$.r)("spatialReference")],H.prototype,"readSpatialReference",null),H=(0,D._)([(0,W.j)("esri.geometry.Geometry")],H);const X=H},79334:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Y});var ae,D=v(17626),R=v(85931),G=v(2076),Z=v(86810),Q=v(16730),$=v(14889),W=v(77712),H=(v(90912),v(68653)),X=v(76898),te=v(99433);const oe=(0,G.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),le=oe.jsonValues.slice();(0,R.e$)(le,"orthometric");const de=(0,G.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let se=ae=class extends Z.wq{constructor(ee){super(ee),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(ee,ie,J){return oe.write(ee,ie,J)}readHeightModel(ee,ie,J){return oe.read(ee)||(J&&J.messages&&J.messages.push(function j(ee,ie){return new $.Z("height-model:unsupported",`Height model of value '${ee}' is not supported`,ie)}(ee,{context:J})),null)}readHeightUnit(ee,ie,J){return de.read(ee)||(J&&J.messages&&J.messages.push(re(ee,{context:J})),null)}readHeightUnitService(ee,ie,J){return(0,Q.$C)(ee)||de.read(ee)||(J&&J.messages&&J.messages.push(re(ee,{context:J})),null)}readVertCRS(ee,ie){return ie.vertCRS||ie.ellipsoid||ie.geoid}clone(){return new ae({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(ee){return!!ee&&(this===ee||this.heightModel===ee.heightModel&&this.heightUnit===ee.heightUnit&&this.vertCRS===ee.vertCRS)}static deriveUnitFromSR(ee,ie){const J=(0,Q.cM)(ie);return new ae({heightModel:ee.heightModel,heightUnit:J,vertCRS:ee.vertCRS})}write(ee,ie){return ie={origin:"web-scene",...ie},super.write(ee,ie)}static fromJSON(ee){if(!ee)return null;const ie=new ae;return ie.read(ee,{origin:"web-scene"}),ie}};function re(ee,ie){return new $.Z("height-unit:unsupported",`Height unit of value '${ee}' is not supported`,ie)}(0,D._)([(0,W.Cb)({type:oe.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:le,default:"ellipsoidal"}}}})],se.prototype,"heightModel",void 0),(0,D._)([(0,te.c)("web-scene","heightModel")],se.prototype,"writeHeightModel",null),(0,D._)([(0,H.r)(["web-scene","service"],"heightModel")],se.prototype,"readHeightModel",null),(0,D._)([(0,W.Cb)({type:de.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:de.jsonValues,write:de.write}}}})],se.prototype,"heightUnit",void 0),(0,D._)([(0,H.r)("web-scene","heightUnit")],se.prototype,"readHeightUnit",null),(0,D._)([(0,H.r)("service","heightUnit")],se.prototype,"readHeightUnitService",null),(0,D._)([(0,W.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],se.prototype,"vertCRS",void 0),(0,D._)([(0,H.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],se.prototype,"readVertCRS",null),se=ae=(0,D._)([(0,X.j)("esri.geometry.HeightModelInfo")],se);const Y=se},72854:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var te,D=v(17626),R=v(58817),G=v(77712),Q=(v(90912),v(76898)),$=v(99433),W=v(2004),B=v(21674),H=v(72642),X=v(18945);function ae(se){return(re,j)=>null==re?j:null==j?re:se(re,j)}let le=te=class extends B.Z{constructor(...se){super(...se),this.points=[],this.type="multipoint"}normalizeCtorArgs(se,re){if(!se&&!re)return{};const j={};Array.isArray(se)?(j.points=se,j.spatialReference=re):function oe(se){return se&&("esri.geometry.SpatialReference"===se.declaredClass||null!=se.wkid)}(se)?j.spatialReference=se:(se.points&&(j.points=se.points),se.spatialReference&&(j.spatialReference=se.spatialReference),se.hasZ&&(j.hasZ=se.hasZ),se.hasM&&(j.hasM=se.hasM));const Y=j.points&&j.points[0];return Y&&(void 0===j.hasZ&&void 0===j.hasM?(j.hasZ=Y.length>2,j.hasM=!1):void 0===j.hasZ?j.hasZ=Y.length>3:void 0===j.hasM&&(j.hasM=Y.length>3)),j}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const se=this.points;if(!se.length)return null;const re=new W.Z,j=this.hasZ,Y=this.hasM,ee=j?3:2,ie=se[0],J=ae(Math.min),ce=ae(Math.max);let ue,pe,he,me,[ge,_e]=ie,[Ee,De]=ie;for(let be=0,Se=se.length;be2){const ze=ye[2];ue=J(ue,ze),he=ce(he,ze)}if(Y&&ye.length>ee){const ze=ye[ee];pe=J(pe,ze),me=ce(me,ze)}}return re.xmin=ge,re.ymin=_e,re.xmax=Ee,re.ymax=De,re.spatialReference=this.spatialReference,j?(re.zmin=ue,re.zmax=he):(re.zmin=void 0,re.zmax=void 0),Y?(re.mmin=pe,re.mmax=me):(re.mmin=void 0,re.mmax=void 0),re}writePoints(se,re){re.points=(0,R.d9)(this.points)}addPoint(se){return(0,X.l)(this,se),Array.isArray(se)?this.points.push(se):this.points.push(se.toArray()),this.notifyChange("points"),this}clone(){const se={points:(0,R.d9)(this.points),spatialReference:this.spatialReference};return this.hasZ&&(se.hasZ=!0),this.hasM&&(se.hasM=!0),new te(se)}getPoint(se){if(!this._validateInputs(se))return null;const re=this.points[se],j={x:re[0],y:re[1],spatialReference:this.spatialReference};let Y=2;return this.hasZ&&(j.z=re[2],Y=3),this.hasM&&(j.m=re[Y]),new H.Z(j)}removePoint(se){if(!this._validateInputs(se))return null;const re=new H.Z(this.points.splice(se,1)[0],this.spatialReference);return this.notifyChange("points"),re}setPoint(se,re){return this._validateInputs(se)?((0,X.l)(this,re),Array.isArray(re)||(re=re.toArray()),this.points[se]=re,this.notifyChange("points"),this):this}toJSON(se){return this.write({},se)}_validateInputs(se){return null!=se&&se>=0&&se{"use strict";v.d(Ae,{Z:()=>ie});var re,D=v(17626),R=v(63290),G=v(62208),Z=v(77712),$=(v(85931),v(66656)),W=v(68653),B=v(76898),H=v(99433),X=v(90912),te=v(21674),ae=v(65234),de=v(37053),se=v(46367);const j=[0,0];function Y(J){return J&&("esri.geometry.SpatialReference"===J.declaredClass||null!=J.wkid)}let ee=re=class extends te.Z{constructor(...J){super(...J),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}static copy(J,ce){ce._set("x",J._get("x")),ce._set("y",J._get("y")),ce._set("z",J._get("z")),ce._set("m",J._get("m"));const ue=J._get("spatialReference");ce._set("spatialReference",Object.isFrozen(ue)?ue:ue.clone())}normalizeCtorArgs(J,ce,ue,pe,he){let me;if(Array.isArray(J))me=J,he=ce,J=me[0],ce=me[1],ue=me[2],pe=me[3];else if(J&&"object"==typeof J){if(me=J,J=null!=me.x?me.x:me.longitude,ce=null!=me.y?me.y:me.latitude,ue=me.z,pe=me.m,(he=me.spatialReference)&&"esri.geometry.SpatialReference"!==he.declaredClass&&(he=new ae.Z(he)),null!=me.longitude||null!=me.latitude)if(null==me.longitude)R.Z.getLogger(this.declaredClass).warn(".longitude=","Latitude was defined without longitude");else if(null==me.latitude)R.Z.getLogger(this.declaredClass).warn(".latitude=","Longitude was defined without latitude");else if(!me.declaredClass&&he&&he.isWebMercator){const _e=(0,se.hG)(me.longitude,me.latitude,j);J=_e[0],ce=_e[1]}}else Y(ue)?(he=ue,ue=null):Y(pe)&&(he=pe,pe=null);const ge={x:J,y:ce};return null==ge.x&&null!=ge.y?R.Z.getLogger(this.declaredClass).warn(".y=","Y coordinate was defined without an X coordinate"):null==ge.y&&null!=ge.x&&R.Z.getLogger(this.declaredClass).warn(".x=","X coordinate was defined without a Y coordinate"),null!=he&&(ge.spatialReference=he),null!=ue&&(ge.z=ue),null!=pe&&(ge.m=pe),ge}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(J){J!==(void 0!==this._get("m"))&&(this._set("m",J?0:void 0),this._set("hasM",J))}get hasZ(){return void 0!==this.z}set hasZ(J){J!==(void 0!==this._get("z"))&&(this._set("z",J?0:void 0),this._set("hasZ",J))}get latitude(){const{spatialReference:J,x:ce,y:ue}=this;if(J){if(J.isWebMercator)return(0,se.R6)(ce,ue,j)[1];if(J.isGeographic)return ue}return null}set latitude(J){const{spatialReference:ce,x:ue}=this;null!=J&&ce&&(ce.isWebMercator?this._set("y",(0,se.hG)(ue,J,j)[1]):ce.isGeographic&&this._set("y",J),this._set("latitude",J))}get longitude(){const{x:J,y:ce,spatialReference:ue}=this;if(ue){if(ue.isWebMercator)return(0,se.R6)(J,ce,j)[0];if(ue.isGeographic)return J}return null}set longitude(J){const{y:ce,spatialReference:ue}=this;null!=J&&ue&&(ue.isWebMercator?this._set("x",(0,se.hG)(J,ce,j)[0]):ue.isGeographic&&this._set("x",J),this._set("longitude",J))}writeX(J,ce,ue){ce[ue]=isNaN(J)?"NaN":J}readX(J){return"string"==typeof J?NaN:J}clone(){const J=new re;return J.x=this.x,J.y=this.y,J.z=this.z,J.m=this.m,J.spatialReference=this.spatialReference,J}copy(J){return re.copy(J,this),this}equals(J){if((0,G.Wi)(J))return!1;const{x:ce,y:ue,z:pe,m:he,spatialReference:me}=this,{z:ge,m:_e}=J;let{x:Ee,y:De,spatialReference:be}=J;if(!me.equals(be))if(me.isWebMercator&&be.isWGS84)[Ee,De]=(0,se.hG)(Ee,De),be=me;else{if(!me.isWGS84||!be.isWebMercator)return!1;[Ee,De]=(0,se.R6)(Ee,De),be=me}return ce===Ee&&ue===De&&pe===ge&&he===_e&&me.wkid===be.wkid}offset(J,ce,ue){return this.x+=J,this.y+=ce,null!=ue&&(this.z=(this.z??0)+ue),this}normalize(){if(!this.spatialReference)return this;const J=(0,de.C5)(this.spatialReference);if(!J)return this;let ce=this.x;const[ue,pe]=J.valid,he=2*pe;let me;return ce>pe?(me=Math.ceil(Math.abs(ce-pe)/he),ce-=me*he):ceisNaN(J)?J:(0,X.q9)(J))],ee.prototype,"x",void 0),(0,D._)([(0,H.c)("x")],ee.prototype,"writeX",null),(0,D._)([(0,W.r)("x")],ee.prototype,"readX",null),(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0}})],ee.prototype,"y",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],ee.prototype,"z",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],ee.prototype,"m",void 0),ee=re=(0,D._)([(0,B.j)("esri.geometry.Point")],ee),ee.prototype.toJSON.isDefaultToJSON=!0;const ie=ee},37118:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ce});var ee,D=v(17626),R=v(85931),G=v(58817),Z=v(62208),Q=v(77712),W=(v(90912),v(76898)),B=v(99433),H=v(2004),X=v(21674),te=v(72642),ae=v(65234),oe=v(27105),le=v(33190),de=v(25748),se=v(15176),re=v(11519),j=v(46367),Y=v(18945);function ie(ue){return!Array.isArray(ue[0])}let J=ee=class extends X.Z{constructor(...ue){super(...ue),this.rings=[],this.type="polygon"}static fromExtent(ue){const pe=ue.clone().normalize(),he=ue.spatialReference;let me=!1,ge=!1;for(const Ee of pe)Ee.hasZ&&(me=!0),Ee.hasM&&(ge=!0);const _e={rings:pe.map(Ee=>{const De=[[Ee.xmin,Ee.ymin],[Ee.xmin,Ee.ymax],[Ee.xmax,Ee.ymax],[Ee.xmax,Ee.ymin],[Ee.xmin,Ee.ymin]];if(me&&Ee.hasZ){const be=Ee.zmin+.5*(Ee.zmax-Ee.zmin);for(let Se=0;Se2,me=_e.length>3):void 0===he?he=me?_e.length>3:_e.length>2:void 0===me&&(me=he?_e.length>3:_e.length>2)),{rings:ge,spatialReference:pe=pe||ae.Z.WGS84,hasZ:he,hasM:me}}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){const ue=(0,oe.tO)(this);if(!ue||isNaN(ue[0])||isNaN(ue[1])||this.hasZ&&isNaN(ue[2]))return null;const pe=new te.Z;return pe.x=ue[0],pe.y=ue[1],pe.spatialReference=this.spatialReference,this.hasZ&&(pe.z=ue[2]),pe}get extent(){const{spatialReference:ue}=this,pe=(0,se._w)(this);if(!pe)return null;const he=new H.Z(pe);return he.spatialReference=ue,he}get isSelfIntersecting(){return(0,re.Ff)(this.rings)}writeRings(ue,pe){pe.rings=(0,G.d9)(this.rings)}addRing(ue){if(!ue)return;const pe=this.rings,he=pe.length;if(ie(ue)){const me=[];for(let ge=0,_e=ue.length;ge<_e;ge++)me[ge]=ue[ge].toArray();pe[he]=me}else pe[he]=ue.concat();return this.notifyChange("rings"),this}clone(){const ue=new ee;return ue.spatialReference=this.spatialReference,ue.rings=(0,G.d9)(this.rings),ue.hasZ=this.hasZ,ue.hasM=this.hasM,ue}equals(ue){if(this===ue)return!0;if((0,Z.Wi)(ue))return!1;const pe=this.spatialReference,he=ue.spatialReference;if((0,Z.pC)(pe)!==(0,Z.pC)(he)||(0,Z.pC)(pe)&&(0,Z.pC)(he)&&!pe.equals(he)||this.rings.length!==ue.rings.length)return!1;const me=([ge,_e,Ee,De],[be,Se,ye,ve])=>ge===be&&_e===Se&&(null==Ee&&null==ye||Ee===ye)&&(null==De&&null==ve||De===ve);for(let ge=0;gethis.hasZ?this.hasM?[he.x,he.y,he.z,he.m]:[he.x,he.y,he.z]:[he.x,he.y]):ue,(0,de.bu)(pe,this.hasM,this.hasZ)}getPoint(ue,pe){if(!this._validateInputs(ue,pe))return null;const he=this.rings[ue][pe],me=this.hasZ,ge=this.hasM;return me&&!ge?new te.Z(he[0],he[1],he[2],void 0,this.spatialReference):ge&&!me?new te.Z(he[0],he[1],void 0,he[2],this.spatialReference):me&&ge?new te.Z(he[0],he[1],he[2],he[3],this.spatialReference):new te.Z(he[0],he[1],this.spatialReference)}insertPoint(ue,pe,he){return this._validateInputs(ue,pe,!0)?((0,Y.l)(this,he),Array.isArray(he)||(he=he.toArray()),this.rings[ue].splice(pe,0,he),this.notifyChange("rings"),this):this}removePoint(ue,pe){if(!this._validateInputs(ue,pe))return null;const he=new te.Z(this.rings[ue].splice(pe,1)[0],this.spatialReference);return this.notifyChange("rings"),he}removeRing(ue){if(!this._validateInputs(ue,null))return null;const pe=this.rings.splice(ue,1)[0],he=this.spatialReference,me=pe.map(ge=>new te.Z(ge,he));return this.notifyChange("rings"),me}setPoint(ue,pe,he){return this._validateInputs(ue,pe)?((0,Y.l)(this,he),Array.isArray(he)||(he=he.toArray()),this.rings[ue][pe]=he,this.notifyChange("rings"),this):this}_validateInputs(ue,pe,he=!1){if(null==ue||ue<0||ue>=this.rings.length)return!1;if(null!=pe){const me=this.rings[ue];if(he&&(pe<0||pe>me.length)||!he&&(pe<0||pe>=me.length))return!1}return!0}toJSON(ue){return this.write({},ue)}};(0,D._)([(0,Q.Cb)({readOnly:!0})],J.prototype,"cache",null),(0,D._)([(0,Q.Cb)({readOnly:!0})],J.prototype,"centroid",null),(0,D._)([(0,Q.Cb)({readOnly:!0})],J.prototype,"extent",null),(0,D._)([(0,Q.Cb)({readOnly:!0})],J.prototype,"isSelfIntersecting",null),(0,D._)([(0,Q.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],J.prototype,"rings",void 0),(0,D._)([(0,B.c)("rings")],J.prototype,"writeRings",null),J=ee=(0,D._)([(0,W.j)("esri.geometry.Polygon")],J),J.prototype.toJSON.isDefaultToJSON=!0;const ce=J},55214:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>se});var oe,D=v(17626),R=v(58817),G=v(77712),Q=(v(90912),v(76898)),$=v(99433),W=v(2004),B=v(21674),H=v(72642),X=v(65234),te=v(15176),ae=v(18945);let de=oe=class extends B.Z{constructor(...re){super(...re),this.paths=[],this.type="polyline"}normalizeCtorArgs(re,j){let Y,ee,ie=null,J=null;return re&&!Array.isArray(re)?(ie=re.paths?re.paths:null,j||(re.spatialReference?j=re.spatialReference:re.paths||(j=re)),Y=re.hasZ,ee=re.hasM):ie=re,ie=ie||[],ie.length&&ie[0]&&null!=ie[0][0]&&"number"==typeof ie[0][0]&&(ie=[ie]),J=ie[0]&&ie[0][0],J&&(void 0===Y&&void 0===ee?(Y=J.length>2,ee=!1):void 0===Y?Y=!ee&&J.length>3:void 0===ee&&(ee=!Y&&J.length>3)),{paths:ie,spatialReference:j=j||X.Z.WGS84,hasZ:Y,hasM:ee}}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const{spatialReference:re}=this,j=(0,te.Wn)(this);if(!j)return null;const Y=new W.Z(j);return Y.spatialReference=re,Y}writePaths(re,j){j.paths=(0,R.d9)(this.paths)}addPath(re){if(!re)return;const j=this.paths,Y=j.length;if(function le(re){return!Array.isArray(re[0])}(re)){const ee=[];for(let ie=0,J=re.length;ienew H.Z(ie,Y));return this.notifyChange("paths"),ee}removePoint(re,j){if(!this._validateInputs(re,j))return null;const Y=new H.Z(this.paths[re].splice(j,1)[0],this.spatialReference);return this.notifyChange("paths"),Y}setPoint(re,j,Y){return this._validateInputs(re,j)?((0,ae.l)(this,Y),Array.isArray(Y)||(Y=Y.toArray()),this.paths[re][j]=Y,this.notifyChange("paths"),this):this}_validateInputs(re,j,Y=!1){if(null==re||re<0||re>=this.paths.length)return!1;if(null!=j){const ee=this.paths[re];if(Y&&(j<0||j>ee.length)||!Y&&(j<0||j>=ee.length))return!1}return!0}toJSON(re){return this.write({},re)}};(0,D._)([(0,G.Cb)({readOnly:!0})],de.prototype,"cache",null),(0,D._)([(0,G.Cb)({readOnly:!0})],de.prototype,"extent",null),(0,D._)([(0,G.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],de.prototype,"paths",void 0),(0,D._)([(0,$.c)("paths")],de.prototype,"writePaths",null),de=oe=(0,D._)([(0,Q.j)("esri.geometry.Polyline")],de),de.prototype.toJSON.isDefaultToJSON=!0;const se=de},65234:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(86810),G=v(58817),Z=v(90912),Q=v(77712),$=v(76898),W=v(99433),B=v(37053);let X=H=class extends R.wq{constructor(ae){super(ae),this.latestWkid=null,this.wkid=null,this.wkt=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}static fromJSON(ae){if(!ae)return null;if(ae.wkid){if(102100===ae.wkid)return H.WebMercator;if(4326===ae.wkid)return H.WGS84}const oe=new H;return oe.read(ae),oe}normalizeCtorArgs(ae){return ae&&"object"==typeof ae?ae:{["string"==typeof ae?"wkt":"wkid"]:ae}}get isWGS84(){return(0,B.oR)(this)}get isWebMercator(){return(0,B.sS)(this)}get isGeographic(){return(0,B.sT)(this)}get isWrappable(){return(0,B.MP)(this)}writeWkt(ae,oe){this.wkid||(oe.wkt=ae)}clone(){if(this===H.WGS84)return H.WGS84;if(this===H.WebMercator)return H.WebMercator;const ae=new H;return null!=this.wkid?(ae.wkid=this.wkid,null!=this.latestWkid&&(ae.latestWkid=this.latestWkid),null!=this.vcsWkid&&(ae.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(ae.latestVcsWkid=this.latestVcsWkid)):null!=this.wkt&&(ae.wkt=this.wkt),this.imageCoordinateSystem&&(ae.imageCoordinateSystem=(0,G.d9)(this.imageCoordinateSystem)),ae}equals(ae){if(null==ae)return!1;if(this.imageCoordinateSystem||ae.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==ae.imageCoordinateSystem)return!1;const{id:oe,referenceServiceName:le}=ae.imageCoordinateSystem,{geodataXform:de}=ae.imageCoordinateSystem,se=this.imageCoordinateSystem;return null==oe||de?JSON.stringify(se)===JSON.stringify(ae.imageCoordinateSystem):le?se.id===oe&&se.referenceServiceName===le:se.id===oe}return(0,B.fS)(this,ae)}toJSON(ae){return this.write(void 0,ae)}};X.GCS_NAD_1927=null,X.WGS84=null,X.WebMercator=null,X.PlateCarree=null,(0,D._)([(0,Q.Cb)({readOnly:!0})],X.prototype,"isWGS84",null),(0,D._)([(0,Q.Cb)({readOnly:!0})],X.prototype,"isWebMercator",null),(0,D._)([(0,Q.Cb)({readOnly:!0})],X.prototype,"isGeographic",null),(0,D._)([(0,Q.Cb)({readOnly:!0})],X.prototype,"isWrappable",null),(0,D._)([(0,Q.Cb)({type:Z.z8,json:{write:!0}})],X.prototype,"latestWkid",void 0),(0,D._)([(0,Q.Cb)({type:Z.z8,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null===this.wkt}}}}}}})],X.prototype,"wkid",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null===this.wkid}}}}}}})],X.prototype,"wkt",void 0),(0,D._)([(0,W.c)("wkt"),(0,W.c)("web-scene","wkt")],X.prototype,"writeWkt",null),(0,D._)([(0,Q.Cb)({type:Z.z8,json:{write:!0}})],X.prototype,"vcsWkid",void 0),(0,D._)([(0,Q.Cb)({type:Z.z8,json:{write:!0}})],X.prototype,"latestVcsWkid",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"imageCoordinateSystem",void 0),X=H=(0,D._)([(0,$.j)("esri.geometry.SpatialReference")],X),X.prototype.toJSON.isDefaultToJSON=!0,X.GCS_NAD_1927=new X({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),X.WGS84=new X(B.Zn),X.WebMercator=new X(B.R_),X.PlateCarree=new X(B.WR),Object.freeze&&(Object.freeze(X.GCS_NAD_1927),Object.freeze(X.WGS84),Object.freeze(X.WebMercator));const te=X},55915:(nt,Ae,v)=>{"use strict";v.d(Ae,{Bm:()=>rr,CM:()=>gr,JY:()=>xe,KC:()=>vt,MT:()=>Ct,PR:()=>fs,Qr:()=>ar,Rg:()=>Lt,SH:()=>jt,UY:()=>$t,Up:()=>Re,Wt:()=>et,X4:()=>sr,YD:()=>Ge,dH:()=>or,dz:()=>ve,fA:()=>_t,fM:()=>je,fi:()=>Pe,gH:()=>Lr,iQ:()=>He,iV:()=>Se,jF:()=>Or,kR:()=>De,ke:()=>Wt,nF:()=>Le,oj:()=>ye,rS:()=>ze,st:()=>mr,yH:()=>St,zD:()=>be,zP:()=>gs});var D=v(15861),R=v(26584),G=v(21286),Z=v(62208),Q=v(10699),$=v(16730),W=v(36082),B=v(48902),H=v(28347),X=v(84161),te=v(28093),ae=v(2004),oe=v(72854),le=v(44956),de=v(72642),se=v(37118),re=v(55214),j=v(12080),Y=v(65401),ee=v(94425),ie=v(37299),J=v(98346),ce=v(37053),ue=v(6178),pe=v(33696);let he=null,me=null,ge=null,_e={};const Ee=new B.s;function De(){return!!he&&(0,le.i)()}function be(kt){return(0,Z.Wi)(ge)&&(ge=Promise.all([(0,le.l)(),v.e(4918).then(v.bind(v,4918)).then(Qt=>Qt.g),v.e(7777).then(v.bind(v,77777))])),ge.then(([,Qt,{hydratedAdapter:Vt}])=>{(0,Q.k_)(kt),me=Vt,he=Qt.default,he._enableProjection(le.p),Ee.notify()})}function Se(kt,Qt,Vt=null,yr=null){return Array.isArray(kt)?0===kt.length?[]:ye(me,kt,kt[0].spatialReference,Qt,Vt,yr):ye(me,[kt],kt.spatialReference,Qt,Vt,yr)[0]}function ye(kt,Qt,Vt,yr,ys=null,js=null){if((0,Z.Wi)(Vt)||(0,Z.Wi)(yr))return Qt;if(Re(Vt,yr,ys))return Qt.map(Ls=>(0,Z.Wg)(Pe(Ls,Vt,yr)));if((0,Z.Wi)(ys)){const Ls=J.Z.cacheKey(Vt,yr);void 0!==_e[Ls]?ys=_e[Ls]:(ys=ze(Vt,yr,void 0),(0,Z.Wi)(ys)&&(ys=new J.Z),_e[Ls]=ys)}if((0,Z.Wi)(he)||(0,Z.Wi)(kt))throw new We;return(0,Z.pC)(js)?he._project(kt,Qt,Vt,yr,ys,js):he._project(kt,Qt,Vt,yr,ys)}function ve(kt,Qt){const Vt=xe([kt],Qt);return(0,Z.pC)(Vt.pending)?{pending:Vt.pending,geometry:null}:(0,Z.pC)(Vt.geometries)?{pending:null,geometry:Vt.geometries[0]}:{pending:null,geometry:null}}function xe(kt,Qt){if(!De())for(const Vt of kt)if((0,Z.pC)(Vt)&&!(0,ce.fS)(Vt.spatialReference,Qt)&&(0,ce.JY)(Vt.spatialReference)&&(0,ce.JY)(Qt)&&!Re(Vt.spatialReference,Qt))return(0,W.it)(Ee),{pending:be(),geometries:null};return{pending:null,geometries:kt.map(Vt=>(0,Z.Wi)(Vt)?null:(0,ce.fS)(Vt.spatialReference,Qt)?Vt:(0,ce.JY)(Vt.spatialReference)&&(0,ce.JY)(Qt)?je(Vt,Qt):null)}}function ze(kt,Qt,Vt=null){if((0,Z.Wi)(kt)||(0,Z.Wi)(Qt))return null;if((0,Z.Wi)(he)||(0,Z.Wi)(me))throw new We;const yr=he._getTransformation(me,kt,Qt,Vt,Vt?.spatialReference);return null!==yr?J.Z.fromGE(yr):null}class We extends R.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var Ce,kt;function je(kt,Qt){try{const Vt=Se(kt,Qt);if(null==Vt)return null;"xmin"in kt&&"xmin"in Vt&&(Vt.zmin=kt.zmin,Vt.zmax=kt.zmax);const yr=(0,pe.k)(Vt.type,kt.spatialReference,Qt);return(0,Z.pC)(yr)&&yr(Vt),Vt}catch(Vt){if(!(Vt instanceof We))throw Vt;return null}}function Re(kt,Qt,Vt){return!Vt&&(!!(0,ce.fS)(kt,Qt)||(0,ce.JY)(kt)&&(0,ce.JY)(Qt)&&!!Ws(kt,Qt,pn))}function He(kt,Qt,Vt,yr){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,D.Z)(function*(kt,Qt,Vt,yr){if(De())return(0,Q.Yn)(yr);if(Array.isArray(kt)){for(const{source:ys,dest:js,geographicTransformation:Ls}of kt)if(!Re(ys,js,Ls))return be(yr)}else if(!Re(kt,Qt,Vt))return be(yr);return(0,Q.Yn)(yr)}),Ie.apply(this,arguments)}function Ge(kt,Qt){switch(Ws(kt,Qt,pn)){case dr:return"copy3";case Sr:return"wgs84ToSphericalECEF";case Hr:return"wgs84ToWebMercator";case Ss:return"wgs84ToPlateCarree";case us:return"wgs84ToWGS84ECEF";case hr:return"webMercatorToWGS84";case Tr:return"webMercatorToSphericalECEF";case Dr:return"webMercatorToWGS84ECEF";case Dt:return"webMercatorToPlateCarree";case as:return"wgs84ECEFToWGS84";case Ps:return"wgs84ECEFToSphericalECEF";case Fs:return"wgs84ECEFToWebMercator";case gt:return"sphericalECEFToWGS84";case Gt:return"sphericalECEFToWebMercator";case bt:return"sphericalMarsPCPFToMars2000";case at:return"sphericalMoonPCPFToMoon2000";case fr:return"sphericalECEFToWGS84ECEF";case Ir:return"mars2000ToSphericalPCPF";case qt:return"moon2000ToSphericalPCPF";default:return null}}function Pe(kt,Qt,Vt){return kt?"x"in kt?Me(kt,Qt,new de.Z,Vt,0):"xmin"in kt?function ut(kt,Qt,Vt,yr,ys){const{xmin:js,ymin:Ls,xmax:Os,ymax:$s,hasZ:As,hasM:xi}=kt;return Lt(js,Ls,As?kt.zmin:ys,Qt,ui,yr)?(Vt.xmin=ui[0],Vt.ymin=ui[1],As&&(Vt.zmin=ui[2]),Lt(Os,$s,As?kt.zmax:ys,Qt,ui,yr)?(Vt.xmax=ui[0],Vt.ymax=ui[1],As&&(Vt.zmax=ui[2]),xi&&(Vt.mmin=kt.mmin,Vt.mmax=kt.mmax),Vt.spatialReference=yr,Vt):null):null}(kt,Qt,new ae.Z,Vt,0):"rings"in kt?qe(kt,Qt,new se.Z,Vt,0):"paths"in kt?function Je(kt,Qt,Vt,yr,ys){const{paths:js,hasZ:Ls,hasM:Os}=kt,$s=[];return Fr(js,Ls??!1,Os??!1,Qt,$s,yr,ys)?(Vt.paths=$s,Vt.spatialReference=yr,Vt.hasZ=Ls,Vt.hasM=Os,Vt):null}(kt,Qt,new re.Z,Vt,0):"points"in kt?function Xe(kt,Qt,Vt,yr,ys){const{points:js,hasZ:Ls,hasM:Os}=kt,$s=[],As=js.length,xi=[];for(const en of js)xi.push(en[0],en[1],Ls?en[2]:ys);if(!gr(xi,Qt,0,xi,yr,0,As))return null;for(let en=0;en2&&(Vt[2]=qi[2])),!0)}(kt,Qt,Vt)}function gr(kt,Qt,Vt,yr,ys,js,Ls=1){const Os=Ws(Qt,ys,pn);if((0,Z.Wi)(Os))return!1;if(Os===dr){if(kt===yr&&Vt===js)return!0;const As=Vt+3*Ls;for(let xi=Vt,en=js;xiys)return Number.MAX_VALUE;const js=Math.abs(yo*kt)+Math.asin(Vt/ys);return js>=Math.PI/2?Number.MAX_VALUE:Vt/Math.cos(js)}function or(kt,Qt,Vt,yr){return!(null==kt||((0,ce.fS)(Qt,yr)?((0,Y.JG)(Vt,kt),0):(qi[0]=kt[0],qi[1]=kt[1],qi[2]=0,!gr(qi,Qt,0,qi,yr,0,1)||(Vt[0]=qi[0],Vt[1]=qi[1],qi[0]=kt[2],qi[1]=kt[3],qi[2]=0,!gr(qi,Qt,0,qi,yr,0,1)||(Vt[2]=qi[0],Vt[3]=qi[1],0)))))}function sr(kt,Qt,Vt,yr){if((0,Z.Wi)(Qt)||(0,Z.Wi)(yr))return!1;const ys=zt(Qt,oi),js=zt(yr,kn);if(ys===js&&ys!==Ce.UNKNOWN||(0,ce.fS)(Qt,yr))return Vt[0]=1,Vt[1]=1,Vt[2]=1,!0;if(ys===Ce.SPHERICAL_ECEF){const Ls=(0,X.l)(kt),Os=Ls/Math.sqrt(kt[0]*kt[0]+kt[1]*kt[1]),$s=Ls/ee.sv.radius;if(js===Ce.WEB_MERCATOR)return Vt[0]=Os*$s,Vt[1]=Os*$s,Vt[2]=1,!0;if(js===Ce.WGS84||js===Ce.CGCS2000){const As=Jr;return Vt[0]=As*Os*$s,Vt[1]=As*$s,Vt[2]=1,!0}}else if(ys===Ce.PLATE_CARREE){if(js===Ce.WGS84||js===Ce.CGCS2000)return Vt[0]=Jr,Vt[1]=Jr,Vt[2]=1,!0;if(js===Ce.WEB_MERCATOR){const Ls=kt[1]/ee.sv.radius;return Vt[0]=1,Vt[1]=1/Math.cos(Ls),Vt[2]=1,!0}}return!1}function rr(kt,Qt,Vt,yr){if((0,Z.Wi)(kt)||(0,Z.Wi)(yr))return!1;const ys=zt(kt,oi),js=zt(yr,kn);if(ys===js&&!Et(js)&&(ys!==Ce.UNKNOWN||(0,ce.fS)(kt,yr)))return(0,H.f)(Vt,Qt),!0;if(Et(js)){const Ls=xs[ys][Ce.LON_LAT],Os=xs[Ce.LON_LAT][js];return!(0,Z.Wi)(Ls)&&!(0,Z.Wi)(Os)&&(Ls(Qt,0,jr,0),Os(jr,0,Gi,0),St(yo*jr[0],yo*jr[1],Vt),Vt[12]=Gi[0],Vt[13]=Gi[1],Vt[14]=Gi[2],!0)}if((js===Ce.WEB_MERCATOR||js===Ce.PLATE_CARREE)&&(ys===Ce.WGS84||ys===Ce.CGCS2000&&js===Ce.PLATE_CARREE||ys===Ce.SPHERICAL_ECEF||ys===Ce.WEB_MERCATOR)){const Ls=xs[ys][Ce.LON_LAT],Os=xs[Ce.LON_LAT][js];return!(0,Z.Wi)(Ls)&&!(0,Z.Wi)(Os)&&(Ls(Qt,0,jr,0),Os(jr,0,Gi,0),ys===Ce.SPHERICAL_ECEF?function Ft(kt,Qt,Vt){St(kt,Qt,Vt),(0,H.t)(Vt,Vt)}(yo*jr[0],yo*jr[1],Vt):(0,H.i)(Vt),Vt[12]=Gi[0],Vt[13]=Gi[1],Vt[14]=Gi[2],!0)}return!1}function Et(kt){return kt===Ce.SPHERICAL_ECEF||kt===Ce.SPHERICAL_MARS_PCPF||kt===Ce.SPHERICAL_MOON_PCPF}function St(kt,Qt,Vt){const yr=Math.sin(kt),ys=Math.cos(kt),js=Math.sin(Qt),Ls=Math.cos(Qt),Os=Vt;return Os[0]=-yr,Os[4]=-js*ys,Os[8]=Ls*ys,Os[12]=0,Os[1]=ys,Os[5]=-js*yr,Os[9]=Ls*yr,Os[13]=0,Os[2]=0,Os[6]=Ls,Os[10]=js,Os[14]=0,Os[3]=0,Os[7]=0,Os[11]=0,Os[15]=1,Os}function zt(kt,Qt){return kt?Qt.spatialReference===kt?Qt.spatialReferenceId:(Qt.spatialReference=kt,"metersPerUnit"in Qt&&(Qt.metersPerUnit=(0,$.c9)(kt,1)),Qt.spatialReferenceId=kt.wkt===j.GG.wkt?Ce.SPHERICAL_ECEF:(0,ce.oR)(kt)?Ce.WGS84:(0,ce.sS)(kt)?Ce.WEB_MERCATOR:(0,ce.QM)(kt)?Ce.PLATE_CARREE:kt.wkt===j.wY.wkt?Ce.WGS84_ECEF:kt.wkid===ue.W.CGCS2000?Ce.CGCS2000:kt.wkt===j.HQ.wkt?Ce.SPHERICAL_MARS_PCPF:kt.wkt===j.VY.wkt?Ce.SPHERICAL_MOON_PCPF:(0,ce.BZ)(kt)?Ce.GCSMARS2000:(0,ce.V2)(kt)?Ce.GCSMOON2000:Ce.UNKNOWN):Ce.UNKNOWN}function dr(kt,Qt,Vt,yr){kt!==Vt&&(Vt[yr++]=kt[Qt++],Vt[yr++]=kt[Qt++],Vt[yr]=kt[Qt])}function hr(kt,Qt,Vt,yr){Vt[yr++]=Yo*(kt[Qt++]/ee.sv.radius),Vt[yr++]=Yo*(Math.PI/2-2*Math.atan(Math.exp(-kt[Qt++]/ee.sv.radius))),Vt[yr]=kt[Qt]}function Tr(kt,Qt,Vt,yr){hr(kt,Qt,Vt,yr),Sr(Vt,yr,Vt,yr)}function Dr(kt,Qt,Vt,yr){hr(kt,Qt,Vt,yr),us(Vt,yr,Vt,yr)}function Lr(kt,Qt,Vt,yr,ys){const js=.4999999*Math.PI,Ls=(0,G.uZ)(yo*kt[Qt+1],-js,js),Os=Math.sin(Ls);Vt[yr++]=yo*kt[Qt]*ys.radius,Vt[yr++]=ys.halfSemiMajorAxis*Math.log((1+Os)/(1-Os)),Vt[yr]=kt[Qt+2]}function Hr(kt,Qt,Vt,yr){Lr(kt,Qt,Vt,yr,ee.sv)}(kt=Ce||(Ce={}))[kt.UNKNOWN=0]="UNKNOWN",kt[kt.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",kt[kt.WGS84=2]="WGS84",kt[kt.WEB_MERCATOR=3]="WEB_MERCATOR",kt[kt.WGS84_ECEF=4]="WGS84_ECEF",kt[kt.CGCS2000=5]="CGCS2000",kt[kt.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",kt[kt.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",kt[kt.GCSMARS2000=8]="GCSMARS2000",kt[kt.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",kt[kt.GCSMOON2000=10]="GCSMOON2000",kt[kt.LON_LAT=11]="LON_LAT",kt[kt.PLATE_CARREE=12]="PLATE_CARREE";const Qr=ee.sv.radius*Math.PI/180,Jr=180/(ee.sv.radius*Math.PI);function Ss(kt,Qt,Vt,yr){Vt[yr]=kt[Qt]*Qr,Vt[yr+1]=kt[Qt+1]*Qr,Vt[yr+2]=kt[Qt+2]}function Cs(kt,Qt,Vt,yr){Vt[yr]=kt[Qt]*Jr,Vt[yr+1]=kt[Qt+1]*Jr,Vt[yr+2]=kt[Qt+2]}function Dt(kt,Qt,Vt,yr){hr(kt,Qt,Vt,yr),Ss(Vt,yr,Vt,yr)}function Or(kt){if((0,Z.Wi)(kt))return!1;const Qt=zt(kt,oi);return!!xs[Qt][Ce.WGS84_COMPARABLE_LON_LAT]}function gs(kt,Qt,Vt,yr){const ys=Math.cos(Vt);kt[0]=Math.cos(Qt)*ys*yr,kt[1]=Math.sin(Qt)*ys*yr,kt[2]=Math.sin(Vt)*yr}function Kr(kt,Qt,Vt,yr,ys){const js=ys+kt[Qt+2],Ls=yo*kt[Qt+1],Os=yo*kt[Qt],$s=Math.cos(Ls);Vt[yr++]=Math.cos(Os)*$s*js,Vt[yr++]=Math.sin(Os)*$s*js,Vt[yr]=Math.sin(Ls)*js}function qt(kt,Qt,Vt,yr){Kr(kt,Qt,Vt,yr,ee.Z1.radius)}function Ir(kt,Qt,Vt,yr){Kr(kt,Qt,Vt,yr,ee.yr.radius)}function Sr(kt,Qt,Vt,yr){Kr(kt,Qt,Vt,yr,ee.sv.radius)}function fs(kt,Qt,Vt,yr,ys){const js=kt[Qt],Ls=kt[Qt+1],Os=kt[Qt+2],$s=Math.sqrt(js*js+Ls*Ls+Os*Os),As=(0,G.Kt)(Os/(0===$s?1:$s)),xi=Math.atan2(Ls,js);Vt[yr++]=Yo*xi,Vt[yr++]=Yo*As,Vt[yr]=$s-ys}function at(kt,Qt,Vt,yr){fs(kt,Qt,Vt,yr,ee.Z1.radius)}function bt(kt,Qt,Vt,yr){fs(kt,Qt,Vt,yr,ee.yr.radius)}function gt(kt,Qt,Vt,yr){fs(kt,Qt,Vt,yr,ee.sv.radius)}function Gt(kt,Qt,Vt,yr){gt(kt,Qt,Vt,yr),Hr(Vt,yr,Vt,yr)}function fr(kt,Qt,Vt,yr){gt(kt,Qt,Vt,yr),us(Vt,yr,Vt,yr)}function us(kt,Qt,Vt,yr){!function Ar(kt,Qt,Vt,yr,ys){const js=yo*kt[Qt],Ls=yo*kt[Qt+1],Os=kt[Qt+2],$s=Math.sin(Ls),As=Math.cos(Ls),xi=ys.radius/Math.sqrt(1-ys.eccentricitySquared*$s*$s);Vt[yr++]=(xi+Os)*As*Math.cos(js),Vt[yr++]=(xi+Os)*As*Math.sin(js),Vt[yr++]=(xi*(1-ys.eccentricitySquared)+Os)*$s}(kt,Qt,Vt,yr,ee.sv)}function as(kt,Qt,Vt,yr){const ys=ie.cD,js=kt[Qt],Ls=kt[Qt+1],Os=kt[Qt+2];let $s,As,xi,en,Mo,na,Po,ja,An,Ki,_n,Ma,Ei,nc,Jn,jl,oc,Lo,Fa,Pa,cr;$s=Math.abs(Os),As=js*js+Ls*Ls,xi=Math.sqrt(As),en=As+Os*Os,Mo=Math.sqrt(en),Pa=Math.atan2(Ls,js),na=Os*Os/en,Po=As/en,nc=ys.a2/Mo,Jn=ys.a3-ys.a4/Mo,Po>.3?(ja=$s/Mo*(1+Po*(ys.a1+nc+na*Jn)/Mo),Fa=Math.asin(ja),Ki=ja*ja,An=Math.sqrt(1-Ki)):(An=xi/Mo*(1-na*(ys.a5-nc-Po*Jn)/Mo),Fa=Math.acos(An),Ki=1-An*An,ja=Math.sqrt(Ki)),_n=1-ee.sv.eccentricitySquared*Ki,Ma=ee.sv.radius/Math.sqrt(_n),Ei=ys.a6*Ma,nc=xi-Ma*An,Jn=$s-Ei*ja,oc=An*nc+ja*Jn,jl=An*Jn-ja*nc,Lo=jl/(Ei/_n+oc),Fa+=Lo,cr=oc+jl*Lo/2,Os<0&&(Fa=-Fa),Vt[yr++]=Yo*Pa,Vt[yr++]=Yo*Fa,Vt[yr]=cr}function Ps(kt,Qt,Vt,yr){as(kt,Qt,Vt,yr),Sr(Vt,yr,Vt,yr)}function Fs(kt,Qt,Vt,yr){as(kt,Qt,Vt,yr),Hr(Vt,yr,Vt,yr)}const xs={[Ce.WGS84]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:dr,[Ce.WGS84_COMPARABLE_LON_LAT]:dr,[Ce.SPHERICAL_ECEF]:Sr,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:Hr,[Ce.PLATE_CARREE]:Ss,[Ce.WGS84]:dr,[Ce.WGS84_ECEF]:us},[Ce.CGCS2000]:{[Ce.CGCS2000]:dr,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:dr,[Ce.WGS84_COMPARABLE_LON_LAT]:dr,[Ce.SPHERICAL_ECEF]:Sr,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:null,[Ce.PLATE_CARREE]:Ss,[Ce.WGS84]:null,[Ce.WGS84_ECEF]:us},[Ce.GCSMARS2000]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:dr,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:dr,[Ce.WGS84_COMPARABLE_LON_LAT]:null,[Ce.SPHERICAL_ECEF]:null,[Ce.SPHERICAL_MARS_PCPF]:Ir,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:null,[Ce.PLATE_CARREE]:null,[Ce.WGS84]:null,[Ce.WGS84_ECEF]:null},[Ce.GCSMOON2000]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:dr,[Ce.LON_LAT]:dr,[Ce.WGS84_COMPARABLE_LON_LAT]:null,[Ce.SPHERICAL_ECEF]:null,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:qt,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:null,[Ce.PLATE_CARREE]:null,[Ce.WGS84]:null,[Ce.WGS84_ECEF]:null},[Ce.WEB_MERCATOR]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:hr,[Ce.WGS84_COMPARABLE_LON_LAT]:hr,[Ce.SPHERICAL_ECEF]:Tr,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:dr,[Ce.PLATE_CARREE]:Dt,[Ce.WGS84]:hr,[Ce.WGS84_ECEF]:Dr},[Ce.WGS84_ECEF]:{[Ce.CGCS2000]:as,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:as,[Ce.WGS84_COMPARABLE_LON_LAT]:as,[Ce.SPHERICAL_ECEF]:Ps,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:Fs,[Ce.PLATE_CARREE]:function ct(kt,Qt,Vt,yr){as(kt,Qt,Vt,yr),Ss(Vt,yr,Vt,yr)},[Ce.WGS84]:as,[Ce.WGS84_ECEF]:dr},[Ce.SPHERICAL_ECEF]:{[Ce.CGCS2000]:gt,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:gt,[Ce.WGS84_COMPARABLE_LON_LAT]:gt,[Ce.SPHERICAL_ECEF]:dr,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:Gt,[Ce.PLATE_CARREE]:function At(kt,Qt,Vt,yr){gt(kt,Qt,Vt,yr),Ss(Vt,yr,Vt,yr)},[Ce.WGS84]:gt,[Ce.WGS84_ECEF]:fr},[Ce.SPHERICAL_MARS_PCPF]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:bt,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:bt,[Ce.WGS84_COMPARABLE_LON_LAT]:null,[Ce.SPHERICAL_ECEF]:null,[Ce.SPHERICAL_MARS_PCPF]:dr,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:null,[Ce.PLATE_CARREE]:null,[Ce.WGS84]:null,[Ce.WGS84_ECEF]:null},[Ce.SPHERICAL_MOON_PCPF]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:at,[Ce.LON_LAT]:at,[Ce.WGS84_COMPARABLE_LON_LAT]:null,[Ce.SPHERICAL_ECEF]:null,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:dr,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:null,[Ce.PLATE_CARREE]:null,[Ce.WGS84]:null,[Ce.WGS84_ECEF]:null},[Ce.UNKNOWN]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:null,[Ce.WGS84_COMPARABLE_LON_LAT]:null,[Ce.SPHERICAL_ECEF]:null,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:dr,[Ce.WEB_MERCATOR]:null,[Ce.PLATE_CARREE]:null,[Ce.WGS84]:null,[Ce.WGS84_ECEF]:null},[Ce.LON_LAT]:{[Ce.CGCS2000]:dr,[Ce.GCSMARS2000]:dr,[Ce.GCSMOON2000]:dr,[Ce.LON_LAT]:dr,[Ce.WGS84_COMPARABLE_LON_LAT]:dr,[Ce.SPHERICAL_ECEF]:Sr,[Ce.SPHERICAL_MARS_PCPF]:Ir,[Ce.SPHERICAL_MOON_PCPF]:qt,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:Hr,[Ce.PLATE_CARREE]:Ss,[Ce.WGS84]:dr,[Ce.WGS84_ECEF]:us},[Ce.WGS84_COMPARABLE_LON_LAT]:{[Ce.CGCS2000]:null,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:dr,[Ce.WGS84_COMPARABLE_LON_LAT]:dr,[Ce.SPHERICAL_ECEF]:Sr,[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:null,[Ce.PLATE_CARREE]:Ss,[Ce.WGS84]:dr,[Ce.WGS84_ECEF]:us},[Ce.PLATE_CARREE]:{[Ce.CGCS2000]:Cs,[Ce.GCSMARS2000]:null,[Ce.GCSMOON2000]:null,[Ce.LON_LAT]:Cs,[Ce.WGS84_COMPARABLE_LON_LAT]:Cs,[Ce.SPHERICAL_ECEF]:function Kt(kt,Qt,Vt,yr){Cs(kt,Qt,Vt,yr),Sr(Vt,yr,Vt,yr)},[Ce.SPHERICAL_MARS_PCPF]:null,[Ce.SPHERICAL_MOON_PCPF]:null,[Ce.UNKNOWN]:null,[Ce.WEB_MERCATOR]:function tr(kt,Qt,Vt,yr){Cs(kt,Qt,Vt,yr),Hr(Vt,yr,Vt,yr)},[Ce.PLATE_CARREE]:dr,[Ce.WGS84]:Cs,[Ce.WGS84_ECEF]:function _r(kt,Qt,Vt,yr){Cs(kt,Qt,Vt,yr),us(Vt,yr,Vt,yr)}}};function Ws(kt,Qt,Vt=hn()){return(0,Z.Wi)(kt)||(0,Z.Wi)(Qt)?null:yi(kt,Qt,Vt).projector}function yi(kt,Qt,Vt){if((0,Z.Wi)(kt)||(0,Z.Wi)(Qt)||Vt.source.spatialReference===kt&&Vt.dest.spatialReference===Qt)return Vt;const yr=zt(kt,Vt.source),ys=zt(Qt,Vt.dest);return Vt.projector=yr===Ce.UNKNOWN&&ys===Ce.UNKNOWN?(0,ce.fS)(kt,Qt)?dr:null:xs[yr][ys],Vt}function hn(){return{source:{spatialReference:null,spatialReferenceId:Ce.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:Ce.UNKNOWN,metersPerUnit:1},projector:dr}}const oi={spatialReference:null,spatialReferenceId:Ce.UNKNOWN},kn={spatialReference:null,spatialReferenceId:Ce.UNKNOWN},pn=hn(),Bl=hn(),yo=(0,G.Vl)(1),Yo=(0,G.BV)(1),qi=(0,te.c)(),jr=(0,te.c)(),Gi=(0,te.c)(),ui=(0,te.c)(),zn=(0,te.c)()},12080:(nt,Ae,v)=>{"use strict";v.d(Ae,{GG:()=>$,HQ:()=>W,Iu:()=>ae,VY:()=>B,e8:()=>oe,rS:()=>te,wY:()=>H});var D=v(62208),R=v(65234),G=v(94425),Z=v(37053);function Q(le){return new R.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${le.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const $=Q(G.sv),W=Q(G.yr),B=Q(G.Z1),H=new R.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${G.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function te(le){return le&&((0,Z.BZ)(le)||le===W)?W:le&&((0,Z.V2)(le)||le===B)?B:$}function ae(le){return(0,D.pC)(le)&&((0,Z.BZ)(le)||le===W)?G.yr:(0,D.pC)(le)&&((0,Z.V2)(le)||le===B)?G.Z1:G.sv}function oe(le){return(0,Z.o$)(le)?G.yr:(0,Z.ME)(le)?G.Z1:G.sv}},78172:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{R:()=>D}),(R=D||(D={}))[R.X=0]="X",R[R.Y=1]="Y",R[R.Z=2]="Z"},94425:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z1:()=>Z,sv:()=>R,yr:()=>G});class D{constructor($,W,B,H){this.semiMajorAxis=$,this.flattening=W,this.outerAtmosphereRimWidth=B,this.semiMinorAxis=this.semiMajorAxis*(1-this.flattening),this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=H||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const R=new D(6378137,1/298.257223563,3e5,.006694379990137799),G=new D(3396190,1/169.8944472236118,23e4),Z=new D(1737400,0,0)},98346:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>G});let D=0;class R{constructor(Q){this.uid=D++,Q?(this._wkt=null!=Q.wkt?Q.wkt:null,this._wkid=null!=Q.wkid?Q.wkid:-1,this._isInverse=null!=Q.isInverse&&!0===Q.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}static fromGE(Q){const $=new R;return $._wkt=Q.wkt,$._wkid=Q.wkid,$._isInverse=Q.isInverse,$}get wkt(){return this._wkt}set wkt(Q){this._wkt=Q,this.uid=D++}get wkid(){return this._wkid}set wkid(Q){this._wkid=Q,this.uid=D++}get isInverse(){return this._isInverse}set isInverse(Q){this._isInverse=Q,this.uid=D++}getInverse(){const Q=new R;return Q._wkt=this.wkt,Q._wkid=this._wkid,Q._isInverse=!this.isInverse,Q}}class G{constructor(Q){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,Q&&Q.steps)for(const $ of Q.steps)this.steps.push($ instanceof R?$:new R({wkid:$.wkid,wkt:$.wkt,isInverse:$.isInverse}))}static cacheKey(Q,$){return[null!=Q.wkid?Q.wkid.toString():"-1",null!=Q.wkt?Q.wkt.toString():"",null!=$.wkid?$.wkid.toString():"-1",null!=$.wkt?$.wkt.toString():""].join(",")}static fromGE(Q){const $=new G;let W="";for(const B of Q.steps){const H=R.fromGE(B);$.steps.push(H),W+=H.uid.toString()+","}return $._cachedProjection={},$._gtlistentry=null,$._chain=W,$}getInverse(){const Q=new G;Q.steps=[];for(let $=this.steps.length-1;$>=0;$--)Q.steps.push(this.steps[$].getInverse());return Q}getGTListEntry(){let Q="";for(const $ of this.steps)Q+=$.uid.toString()+",";return Q!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=Q),this._gtlistentry}assignCachedGe(Q,$,W){this._cachedProjection[G.cacheKey(Q,$)]=W}getCachedGeTransformation(Q,$){let W="";for(const H of this.steps)W+=H.uid.toString()+",";W!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=W);const B=this._cachedProjection[G.cacheKey(Q,$)];return void 0===B?null:B}}},61751:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>se});var ae,D=v(17626),R=v(86810),G=v(58817),Z=v(63290),Q=v(77712),$=v(66656),W=v(76898),B=v(90912),H=v(45348),X=v(27530),te=v(92529);const oe="esri.geometry.support.MeshComponent",le=Z.Z.getLogger(oe);let de=ae=class extends R.wq{constructor(re){super(re),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(re){return(0,B.TJ)(ae,re)}castFaces(re){return(0,te.X)(re,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},le)}castMaterial(re){return(0,B.TJ)(re&&"object"==typeof re&&("metallic"in re||"roughness"in re||"metallicRoughnessTexture"in re)?X.Z:H.Z,re)}clone(){return new ae({faces:(0,G.d9)(this.faces),shading:this.shading,material:(0,G.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(re,j){const Y={faces:(0,G.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(re,j):null,trustSourceNormals:this.trustSourceNormals};return new ae(Y)}};(0,D._)([(0,Q.Cb)({json:{write:!0}})],de.prototype,"faces",void 0),(0,D._)([(0,$.p)("faces")],de.prototype,"castFaces",null),(0,D._)([(0,Q.Cb)({type:H.Z,json:{write:!0}})],de.prototype,"material",void 0),(0,D._)([(0,$.p)("material")],de.prototype,"castMaterial",null),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],de.prototype,"shading",void 0),(0,D._)([(0,Q.Cb)({type:Boolean})],de.prototype,"trustSourceNormals",void 0),de=ae=(0,D._)([(0,W.j)(oe)],de);const se=de},45348:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var X,D=v(17626),R=v(91558),G=v(86810),Z=v(62208),Q=v(77712),B=(v(85931),v(90912),v(76898)),H=v(1607);let te=X=class extends G.wq{constructor(oe){super(oe),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(oe,le){const de=(0,Z.pC)(oe)?oe.get(this):null;if(de)return de;const se=new X(this.clonePropertiesWithDeduplication(le));return(0,Z.pC)(oe)&&oe.set(this,se),se}clonePropertiesWithDeduplication(oe){return{color:(0,Z.pC)(this.color)?this.color.clone():null,colorTexture:(0,Z.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(oe):null,normalTexture:(0,Z.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(oe):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:(0,Z.pC)(this.colorTextureTransform)?this.colorTextureTransform:null,normalTextureTransform:(0,Z.pC)(this.normalTextureTransform)?this.normalTextureTransform:null}}};(0,D._)([(0,Q.Cb)({type:R.Z,json:{write:!0}})],te.prototype,"color",void 0),(0,D._)([(0,Q.Cb)({type:H.Z,json:{write:!0}})],te.prototype,"colorTexture",void 0),(0,D._)([(0,Q.Cb)({type:H.Z,json:{write:!0}})],te.prototype,"normalTexture",void 0),(0,D._)([(0,Q.Cb)({nonNullable:!0,json:{write:!0}})],te.prototype,"alphaMode",void 0),(0,D._)([(0,Q.Cb)({nonNullable:!0,json:{write:!0}})],te.prototype,"alphaCutoff",void 0),(0,D._)([(0,Q.Cb)({nonNullable:!0,json:{write:!0}})],te.prototype,"doubleSided",void 0),(0,D._)([(0,Q.Cb)()],te.prototype,"colorTextureTransform",void 0),(0,D._)([(0,Q.Cb)()],te.prototype,"normalTextureTransform",void 0),te=X=(0,D._)([(0,B.j)("esri.geometry.support.MeshMaterial")],te);const ae=te},27530:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var X,D=v(17626),R=v(91558),G=v(62208),Z=v(77712),W=(v(85931),v(90912),v(76898)),B=v(45348),H=v(1607);let te=X=class extends B.Z{constructor(oe){super(oe),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(oe,le){const de=(0,G.pC)(oe)?oe.get(this):null;if(de)return de;const se=new X(this.clonePropertiesWithDeduplication(le));return(0,G.pC)(oe)&&oe.set(this,se),se}clonePropertiesWithDeduplication(oe){return{...super.clonePropertiesWithDeduplication(oe),emissiveColor:(0,G.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,G.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(oe):null,occlusionTexture:(0,G.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(oe):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,G.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(oe):null,occlusionTextureTransform:(0,G.pC)(this.occlusionTextureTransform)?this.occlusionTextureTransform:null,emissiveTextureTransform:(0,G.pC)(this.emissiveTextureTransform)?this.emissiveTextureTransform:null,metallicRoughnessTextureTransform:(0,G.pC)(this.metallicRoughnessTextureTransform)?this.metallicRoughnessTextureTransform:null}}};(0,D._)([(0,Z.Cb)({type:R.Z,json:{write:!0}})],te.prototype,"emissiveColor",void 0),(0,D._)([(0,Z.Cb)({type:H.Z,json:{write:!0}})],te.prototype,"emissiveTexture",void 0),(0,D._)([(0,Z.Cb)({type:H.Z,json:{write:!0}})],te.prototype,"occlusionTexture",void 0),(0,D._)([(0,Z.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],te.prototype,"metallic",void 0),(0,D._)([(0,Z.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],te.prototype,"roughness",void 0),(0,D._)([(0,Z.Cb)({type:H.Z,json:{write:!0}})],te.prototype,"metallicRoughnessTexture",void 0),(0,D._)([(0,Z.Cb)()],te.prototype,"occlusionTextureTransform",void 0),(0,D._)([(0,Z.Cb)()],te.prototype,"emissiveTextureTransform",void 0),(0,D._)([(0,Z.Cb)()],te.prototype,"metallicRoughnessTextureTransform",void 0),te=X=(0,D._)([(0,W.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],te);const ae=te},1607:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>se});var ae,D=v(17626),G=(v(8314),v(90740)),Z=v(86810),Q=v(77712),W=(v(85931),v(90912)),B=v(68653),H=v(76898),X=v(99433),te=v(29840);const oe=new WeakMap;let le=0,de=ae=class extends Z.wq{constructor(re){super(re),this.wrap="repeat"}get url(){return this._get("url")||null}set url(re){this._set("url",re),re&&this._set("data",null)}get data(){return this._get("data")||null}set data(re){this._set("data",re),re&&this._set("url",null)}writeData(re,j,Y,ee){if(re instanceof HTMLImageElement){const ie={type:"image-element",src:(0,te.t)(re.src,ee),crossOrigin:re.crossOrigin};j[Y]=ie}else if(re instanceof HTMLCanvasElement){const ie=re.getContext("2d").getImageData(0,0,re.width,re.height),J={type:"canvas-element",imageData:this._encodeImageData(ie)};j[Y]=J}else if(re instanceof HTMLVideoElement){const ie={type:"video-element",src:(0,te.t)(re.src,ee),autoplay:re.autoplay,loop:re.loop,muted:re.muted,crossOrigin:re.crossOrigin,preload:re.preload};j[Y]=ie}else{const ie={type:"image-data",imageData:this._encodeImageData(re)};j[Y]=ie}}readData(re){switch(re.type){case"image-element":{const j=new Image;return j.src=re.src,j.crossOrigin=re.crossOrigin,j}case"canvas-element":{const j=this._decodeImageData(re.imageData),Y=document.createElement("canvas");return Y.width=j.width,Y.height=j.height,Y.getContext("2d").putImageData(j,0,0),Y}case"image-data":return this._decodeImageData(re.imageData);case"video-element":{const j=document.createElement("video");return j.src=re.src,j.crossOrigin=re.crossOrigin,j.autoplay=re.autoplay,j.loop=re.loop,j.muted=re.muted,j.preload=re.preload,j}default:return}}get transparent(){const re=this.data,j=this.url;if(re instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(re.getContext("2d").getImageData(0,0,re.width,re.height));if(re instanceof ImageData)return this._imageDataContainsTransparent(re);if(j){const Y=j.substr(j.length-4,4).toLowerCase(),ee=j.substr(0,15).toLocaleLowerCase();if(".png"===Y||"data:image/png;"===ee)return!0}return!1}set transparent(re){this._overrideIfSome("transparent",re)}get contentHash(){const re="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",j=(Y="")=>`d:${Y},t:${this.transparent},w:${re}`;return null!=this.url?j(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?j(this.data.src):(oe.has(this.data)||oe.set(this.data,++le),j(oe.get(this.data))):j()}clone(){const re={url:this.url,data:this.data,wrap:this._cloneWrap()};return new ae(re)}cloneWithDeduplication(re){const j=re.get(this);if(j)return j;const Y=this.clone();return re.set(this,Y),Y}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(re){let j="";for(let Y=0;Y{"use strict";v.d(Ae,{Q:()=>te,X:()=>oe});var B,D=v(17626),R=v(86810),G=v(58817),Z=v(63290),Q=v(77712),$=v(66656),W=v(76898);const H="esri.geometry.support.MeshVertexAttributes",X=Z.Z.getLogger(H);let te=B=class extends R.wq{constructor(se){super(se),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(se){return oe(se,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},X)}castPosition(se){return se&&se instanceof Float32Array&&X.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),oe(se,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},X)}castUv(se){return oe(se,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},X)}castNormal(se){return oe(se,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},X)}castTangent(se){return oe(se,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},X)}clone(){const se={position:(0,G.d9)(this.position),uv:(0,G.d9)(this.uv),normal:(0,G.d9)(this.normal),tangent:(0,G.d9)(this.tangent),color:(0,G.d9)(this.color)};return new B(se)}clonePositional(){const se={position:(0,G.d9)(this.position),normal:(0,G.d9)(this.normal),tangent:(0,G.d9)(this.tangent),uv:this.uv,color:this.color};return new B(se)}};function ae(se,re,j,Y){const{loggerTag:ee,stride:ie}=re;return se.length%ie!=0?(Y.error(ee,`Invalid array length, expected a multiple of ${ie}`),new j([])):se}function oe(se,re,j,Y,ee){if(!se)return se;if(se instanceof re)return ae(se,Y,re,ee);for(const ie of j)if(se instanceof ie)return ae(new re(se),Y,re,ee);if(Array.isArray(se))return ae(new re(se),Y,re,ee);{const ie=j.map(J=>`'${J.name}'`);return ee.error(`Failed to set property, expected one of ${ie}, but got ${se.constructor.name}`),new re([])}}function le(se,re,j){re[j]=function de(se){const re=new Array(se.length);for(let j=0;j{"use strict";var D,R;v.d(Ae,{W:()=>D}),(R=D||(D={}))[R.CGCS2000=4490]="CGCS2000",R[R.GCSMARS2000=104971]="GCSMARS2000",R[R.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",R[R.GCSMOON2000=104903]="GCSMOON2000"},84029:(nt,Ae,v)=>{"use strict";let D;v.d(Ae,{Z:()=>R});const R={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5048:0,5167:0,5168:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22332:0,22391:0,22392:0,22700:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2};for(D=2e3;D<=2045;D++)R[D]=0;for(D=2056;D<=2065;D++)R[D]=0;for(D=2067;D<=2135;D++)R[D]=0;for(D=2137;D<=2154;D++)R[D]=0;for(D=2161;D<=2170;D++)R[D]=0;for(D=2172;D<=2193;D++)R[D]=0;for(D=2195;D<=2198;D++)R[D]=0;for(D=2200;D<=2203;D++)R[D]=0;for(D=2205;D<=2217;D++)R[D]=0;for(D=2222;D<=2224;D++)R[D]=1;for(D=2225;D<=2250;D++)R[D]=2;for(D=2251;D<=2253;D++)R[D]=1;for(D=2257;D<=2264;D++)R[D]=2;for(D=2274;D<=2279;D++)R[D]=2;for(D=2280;D<=2282;D++)R[D]=1;for(D=2283;D<=2289;D++)R[D]=2;for(D=2290;D<=2292;D++)R[D]=0;for(D=2308;D<=2313;D++)R[D]=0;for(D=2315;D<=2491;D++)R[D]=0;for(D=2494;D<=2866;D++)R[D]=0;for(D=2867;D<=2869;D++)R[D]=1;for(D=2870;D<=2888;D++)R[D]=2;for(D=2891;D<=2895;D++)R[D]=2;for(D=2896;D<=2898;D++)R[D]=1;for(D=2902;D<=2908;D++)R[D]=2;for(D=2915;D<=2920;D++)R[D]=2;for(D=2921;D<=2923;D++)R[D]=1;for(D=2924;D<=2930;D++)R[D]=2;for(D=2931;D<=2962;D++)R[D]=0;for(D=2964;D<=2968;D++)R[D]=2;for(D=2969;D<=2973;D++)R[D]=0;for(D=2975;D<=2991;D++)R[D]=0;for(D=2995;D<=3051;D++)R[D]=0;for(D=3054;D<=3079;D++)R[D]=0;for(D=3081;D<=3088;D++)R[D]=0;for(D=3092;D<=3101;D++)R[D]=0;for(D=3106;D<=3138;D++)R[D]=0;for(D=3146;D<=3151;D++)R[D]=0;for(D=3153;D<=3166;D++)R[D]=0;for(D=3168;D<=3172;D++)R[D]=0;for(D=3174;D<=3203;D++)R[D]=0;for(D=3294;D<=3358;D++)R[D]=0;for(D=3367;D<=3403;D++)R[D]=0;for(D=3408;D<=3416;D++)R[D]=0;for(D=3417;D<=3438;D++)R[D]=2;for(D=3441;D<=3446;D++)R[D]=2;for(D=3447;D<=3450;D++)R[D]=0;for(D=3451;D<=3459;D++)R[D]=2;for(D=3460;D<=3478;D++)R[D]=0;for(D=3554;D<=3559;D++)R[D]=0;for(D=3560;D<=3570;D++)R[D]=2;for(D=3571;D<=3581;D++)R[D]=0;for(D=3594;D<=3597;D++)R[D]=0;for(D=3601;D<=3604;D++)R[D]=0;for(D=3637;D<=3639;D++)R[D]=0;for(D=3665;D<=3667;D++)R[D]=0;for(D=3693;D<=3695;D++)R[D]=0;for(D=3701;D<=3727;D++)R[D]=0;for(D=3728;D<=3739;D++)R[D]=2;for(D=3740;D<=3751;D++)R[D]=0;for(D=3753;D<=3760;D++)R[D]=2;for(D=3761;D<=3773;D++)R[D]=0;for(D=3775;D<=3777;D++)R[D]=0;for(D=3779;D<=3781;D++)R[D]=0;for(D=3783;D<=3785;D++)R[D]=0;for(D=3788;D<=3791;D++)R[D]=0;for(D=3797;D<=3802;D++)R[D]=0;for(D=3814;D<=3816;D++)R[D]=0;for(D=3825;D<=3829;D++)R[D]=0;for(D=3832;D<=3841;D++)R[D]=0;for(D=3844;D<=3852;D++)R[D]=0;for(D=3873;D<=3885;D++)R[D]=0;for(D=3890;D<=3893;D++)R[D]=0;for(D=3907;D<=3912;D++)R[D]=0;for(D=3942;D<=3950;D++)R[D]=0;for(D=3968;D<=3970;D++)R[D]=0;for(D=3973;D<=3976;D++)R[D]=0;for(D=3986;D<=3989;D++)R[D]=0;for(D=3994;D<=3997;D++)R[D]=0;for(D=4048;D<=4051;D++)R[D]=0;for(D=4056;D<=4063;D++)R[D]=0;for(D=4093;D<=4096;D++)R[D]=0;for(D=4390;D<=4398;D++)R[D]=0;for(D=4399;D<=4413;D++)R[D]=2;for(D=4418;D<=4433;D++)R[D]=2;for(D=4455;D<=4457;D++)R[D]=2;for(D=4484;D<=4489;D++)R[D]=0;for(D=4491;D<=4554;D++)R[D]=0;for(D=4568;D<=4589;D++)R[D]=0;for(D=4652;D<=4656;D++)R[D]=0;for(D=4766;D<=4800;D++)R[D]=0;for(D=5014;D<=5016;D++)R[D]=0;for(D=5069;D<=5072;D++)R[D]=0;for(D=5105;D<=5130;D++)R[D]=0;for(D=5173;D<=5188;D++)R[D]=0;for(D=5253;D<=5259;D++)R[D]=0;for(D=5269;D<=5275;D++)R[D]=0;for(D=5292;D<=5311;D++)R[D]=0;for(D=5329;D<=5331;D++)R[D]=0;for(D=5343;D<=5349;D++)R[D]=0;for(D=5355;D<=5357;D++)R[D]=0;for(D=5387;D<=5389;D++)R[D]=0;for(D=5459;D<=5463;D++)R[D]=0;for(D=5479;D<=5482;D++)R[D]=0;for(D=5518;D<=5520;D++)R[D]=0;for(D=5530;D<=5539;D++)R[D]=0;for(D=5550;D<=5552;D++)R[D]=0;for(D=5562;D<=5583;D++)R[D]=0;for(D=5623;D<=5625;D++)R[D]=2;for(D=5631;D<=5639;D++)R[D]=0;for(D=5649;D<=5653;D++)R[D]=0;for(D=5663;D<=5680;D++)R[D]=0;for(D=5682;D<=5685;D++)R[D]=0;for(D=5875;D<=5877;D++)R[D]=0;for(D=5896;D<=5899;D++)R[D]=0;for(D=5921;D<=5940;D++)R[D]=0;for(D=6050;D<=6125;D++)R[D]=0;for(D=6244;D<=6275;D++)R[D]=0;for(D=6328;D<=6348;D++)R[D]=0;for(D=6350;D<=6356;D++)R[D]=0;for(D=6366;D<=6372;D++)R[D]=0;for(D=6381;D<=6387;D++)R[D]=0;for(D=6393;D<=6404;D++)R[D]=0;for(D=6480;D<=6483;D++)R[D]=0;for(D=6511;D<=6514;D++)R[D]=0;for(D=6579;D<=6581;D++)R[D]=0;for(D=6619;D<=6624;D++)R[D]=0;for(D=6625;D<=6627;D++)R[D]=2;for(D=6628;D<=6632;D++)R[D]=0;for(D=6634;D<=6637;D++)R[D]=0;for(D=6669;D<=6692;D++)R[D]=0;for(D=6707;D<=6709;D++)R[D]=0;for(D=6720;D<=6723;D++)R[D]=0;for(D=6732;D<=6738;D++)R[D]=0;for(D=6931;D<=6933;D++)R[D]=0;for(D=6956;D<=6959;D++)R[D]=0;for(D=7005;D<=7007;D++)R[D]=0;for(D=7057;D<=7070;D++)R[D]=2;for(D=7074;D<=7082;D++)R[D]=0;for(D=7109;D<=7118;D++)R[D]=0;for(D=7119;D<=7127;D++)R[D]=1;for(D=7374;D<=7376;D++)R[D]=0;for(D=7528;D<=7586;D++)R[D]=0;for(D=7587;D<=7645;D++)R[D]=2;for(D=7692;D<=7696;D++)R[D]=0;for(D=7755;D<=7787;D++)R[D]=0;for(D=7791;D<=7795;D++)R[D]=0;for(D=7799;D<=7801;D++)R[D]=0;for(D=7803;D<=7805;D++)R[D]=0;for(D=7825;D<=7831;D++)R[D]=0;for(D=7845;D<=7859;D++)R[D]=0;for(D=8013;D<=8032;D++)R[D]=0;for(D=8065;D<=8068;D++)R[D]=1;for(D=8518;D<=8529;D++)R[D]=2;for(D=8533;D<=8536;D++)R[D]=2;for(D=8538;D<=8540;D++)R[D]=2;for(D=8677;D<=8679;D++)R[D]=0;for(D=8836;D<=8840;D++)R[D]=0;for(D=8857;D<=8859;D++)R[D]=0;for(D=8908;D<=8910;D++)R[D]=0;for(D=9154;D<=9159;D++)R[D]=0;for(D=9205;D<=9218;D++)R[D]=0;for(D=9271;D<=9273;D++)R[D]=0;for(D=9295;D<=9297;D++)R[D]=0;for(D=9356;D<=9360;D++)R[D]=0;for(D=9404;D<=9407;D++)R[D]=0;for(D=9476;D<=9482;D++)R[D]=0;for(D=9487;D<=9494;D++)R[D]=0;for(D=9697;D<=9699;D++)R[D]=0;for(D=20002;D<=20032;D++)R[D]=0;for(D=20062;D<=20092;D++)R[D]=0;for(D=20135;D<=20138;D++)R[D]=0;for(D=20248;D<=20258;D++)R[D]=0;for(D=20348;D<=20358;D++)R[D]=0;for(D=20436;D<=20440;D++)R[D]=0;for(D=20822;D<=20824;D++)R[D]=0;for(D=20904;D<=20932;D++)R[D]=0;for(D=20934;D<=20936;D++)R[D]=0;for(D=21004;D<=21032;D++)R[D]=0;for(D=21035;D<=21037;D++)R[D]=0;for(D=21095;D<=21097;D++)R[D]=0;for(D=21148;D<=21150;D++)R[D]=0;for(D=21207;D<=21264;D++)R[D]=0;for(D=21307;D<=21364;D++)R[D]=0;for(D=21413;D<=21423;D++)R[D]=0;for(D=21453;D<=21463;D++)R[D]=0;for(D=21473;D<=21483;D++)R[D]=0;for(D=21780;D<=21782;D++)R[D]=0;for(D=21891;D<=21894;D++)R[D]=0;for(D=21896;D<=21899;D++)R[D]=0;for(D=22171;D<=22177;D++)R[D]=0;for(D=22181;D<=22187;D++)R[D]=0;for(D=22191;D<=22197;D++)R[D]=0;for(D=22234;D<=22236;D++)R[D]=0;for(D=22521;D<=22525;D++)R[D]=0;for(D=22991;D<=22994;D++)R[D]=0;for(D=23028;D<=23038;D++)R[D]=0;for(D=23830;D<=23853;D++)R[D]=0;for(D=23866;D<=23872;D++)R[D]=0;for(D=23877;D<=23884;D++)R[D]=0;for(D=23886;D<=23894;D++)R[D]=0;for(D=23946;D<=23948;D++)R[D]=0;for(D=24311;D<=24313;D++)R[D]=0;for(D=24342;D<=24347;D++)R[D]=0;for(D=24370;D<=24374;D++)R[D]=10;for(D=24375;D<=24381;D++)R[D]=0;for(D=24718;D<=24721;D++)R[D]=0;for(D=24817;D<=24821;D++)R[D]=0;for(D=24877;D<=24882;D++)R[D]=0;for(D=24891;D<=24893;D++)R[D]=0;for(D=25391;D<=25395;D++)R[D]=0;for(D=25828;D<=25838;D++)R[D]=0;for(D=26191;D<=26195;D++)R[D]=0;for(D=26391;D<=26393;D++)R[D]=0;for(D=26701;D<=26722;D++)R[D]=0;for(D=26729;D<=26799;D++)R[D]=2;for(D=26801;D<=26803;D++)R[D]=2;for(D=26811;D<=26813;D++)R[D]=2;for(D=26847;D<=26870;D++)R[D]=2;for(D=26891;D<=26899;D++)R[D]=0;for(D=26901;D<=26923;D++)R[D]=0;for(D=26929;D<=26946;D++)R[D]=0;for(D=26948;D<=26998;D++)R[D]=0;for(D=27037;D<=27040;D++)R[D]=0;for(D=27205;D<=27232;D++)R[D]=0;for(D=27258;D<=27260;D++)R[D]=0;for(D=27391;D<=27398;D++)R[D]=0;for(D=27561;D<=27564;D++)R[D]=0;for(D=27571;D<=27574;D++)R[D]=0;for(D=27581;D<=27584;D++)R[D]=0;for(D=27591;D<=27594;D++)R[D]=0;for(D=28191;D<=28193;D++)R[D]=0;for(D=28348;D<=28358;D++)R[D]=0;for(D=28402;D<=28432;D++)R[D]=0;for(D=28462;D<=28492;D++)R[D]=0;for(D=29118;D<=29122;D++)R[D]=0;for(D=29168;D<=29172;D++)R[D]=0;for(D=29177;D<=29185;D++)R[D]=0;for(D=29187;D<=29195;D++)R[D]=0;for(D=29900;D<=29903;D++)R[D]=0;for(D=30161;D<=30179;D++)R[D]=0;for(D=30491;D<=30494;D++)R[D]=0;for(D=30729;D<=30732;D++)R[D]=0;for(D=31251;D<=31259;D++)R[D]=0;for(D=31265;D<=31268;D++)R[D]=0;for(D=31275;D<=31279;D++)R[D]=0;for(D=31281;D<=31297;D++)R[D]=0;for(D=31461;D<=31469;D++)R[D]=0;for(D=31491;D<=31495;D++)R[D]=0;for(D=31917;D<=31922;D++)R[D]=0;for(D=31965;D<=32e3;D++)R[D]=0;for(D=32001;D<=32003;D++)R[D]=2;for(D=32005;D<=32031;D++)R[D]=2;for(D=32033;D<=32060;D++)R[D]=2;for(D=32064;D<=32067;D++)R[D]=2;for(D=32074;D<=32077;D++)R[D]=2;for(D=32081;D<=32086;D++)R[D]=0;for(D=32107;D<=32130;D++)R[D]=0;for(D=32133;D<=32158;D++)R[D]=0;for(D=32164;D<=32167;D++)R[D]=2;for(D=32180;D<=32199;D++)R[D]=0;for(D=32201;D<=32260;D++)R[D]=0;for(D=32301;D<=32360;D++)R[D]=0;for(D=32601;D<=32662;D++)R[D]=0;for(D=32664;D<=32667;D++)R[D]=2;for(D=32701;D<=32761;D++)R[D]=0;for(D=53001;D<=53004;D++)R[D]=0;for(D=53008;D<=53019;D++)R[D]=0;for(D=53021;D<=53032;D++)R[D]=0;for(D=53034;D<=53037;D++)R[D]=0;for(D=53042;D<=53046;D++)R[D]=0;for(D=53074;D<=53080;D++)R[D]=0;for(D=54001;D<=54004;D++)R[D]=0;for(D=54008;D<=54019;D++)R[D]=0;for(D=54021;D<=54032;D++)R[D]=0;for(D=54034;D<=54037;D++)R[D]=0;for(D=54042;D<=54046;D++)R[D]=0;for(D=54048;D<=54053;D++)R[D]=0;for(D=54074;D<=54080;D++)R[D]=0;for(D=54098;D<=54101;D++)R[D]=0;for(D=102001;D<=102040;D++)R[D]=0;for(D=102042;D<=102063;D++)R[D]=0;for(D=102065;D<=102067;D++)R[D]=0;for(D=102070;D<=102117;D++)R[D]=0;for(D=102122;D<=102216;D++)R[D]=0;for(D=102221;D<=102377;D++)R[D]=0;for(D=102382;D<=102388;D++)R[D]=0;for(D=102389;D<=102398;D++)R[D]=2;for(D=102399;D<=102444;D++)R[D]=0;for(D=102445;D<=102447;D++)R[D]=2;for(D=102448;D<=102458;D++)R[D]=0;for(D=102459;D<=102468;D++)R[D]=2;for(D=102469;D<=102499;D++)R[D]=0;for(D=102500;D<=102519;D++)R[D]=1;for(D=102520;D<=102524;D++)R[D]=0;for(D=102525;D<=102529;D++)R[D]=2;for(D=102530;D<=102588;D++)R[D]=0;for(D=102590;D<=102598;D++)R[D]=0;for(D=102601;D<=102603;D++)R[D]=0;for(D=102605;D<=102628;D++)R[D]=0;for(D=102629;D<=102646;D++)R[D]=2;for(D=102648;D<=102700;D++)R[D]=2;for(D=102701;D<=102703;D++)R[D]=0;for(D=102707;D<=102730;D++)R[D]=2;for(D=102733;D<=102758;D++)R[D]=2;for(D=102767;D<=102900;D++)R[D]=0;for(D=102901;D<=102933;D++)R[D]=2;for(D=102934;D<=102950;D++)R[D]=13;for(D=102951;D<=102955;D++)R[D]=0;for(D=102961;D<=102963;D++)R[D]=0;for(D=102965;D<=102969;D++)R[D]=0;for(D=102971;D<=102973;D++)R[D]=0;for(D=102975;D<=102989;D++)R[D]=0;for(D=102990;D<=102992;D++)R[D]=1;for(D=102997;D<=103002;D++)R[D]=0;for(D=103003;D<=103008;D++)R[D]=2;for(D=103009;D<=103011;D++)R[D]=0;for(D=103012;D<=103014;D++)R[D]=2;for(D=103019;D<=103021;D++)R[D]=0;for(D=103022;D<=103024;D++)R[D]=2;for(D=103029;D<=103031;D++)R[D]=0;for(D=103032;D<=103034;D++)R[D]=2;for(D=103065;D<=103068;D++)R[D]=0;for(D=103074;D<=103076;D++)R[D]=0;for(D=103077;D<=103079;D++)R[D]=1;for(D=103080;D<=103082;D++)R[D]=0;for(D=103083;D<=103085;D++)R[D]=2;for(D=103090;D<=103093;D++)R[D]=0;for(D=103097;D<=103099;D++)R[D]=0;for(D=103100;D<=103102;D++)R[D]=2;for(D=103107;D<=103109;D++)R[D]=0;for(D=103110;D<=103112;D++)R[D]=2;for(D=103113;D<=103116;D++)R[D]=0;for(D=103117;D<=103120;D++)R[D]=2;for(D=103153;D<=103157;D++)R[D]=0;for(D=103158;D<=103162;D++)R[D]=2;for(D=103163;D<=103165;D++)R[D]=0;for(D=103166;D<=103168;D++)R[D]=1;for(D=103169;D<=103171;D++)R[D]=2;for(D=103186;D<=103188;D++)R[D]=0;for(D=103189;D<=103191;D++)R[D]=2;for(D=103192;D<=103195;D++)R[D]=0;for(D=103196;D<=103199;D++)R[D]=2;for(D=103200;D<=103224;D++)R[D]=0;for(D=103225;D<=103227;D++)R[D]=1;for(D=103232;D<=103237;D++)R[D]=0;for(D=103238;D<=103243;D++)R[D]=2;for(D=103244;D<=103246;D++)R[D]=0;for(D=103247;D<=103249;D++)R[D]=2;for(D=103254;D<=103256;D++)R[D]=0;for(D=103257;D<=103259;D++)R[D]=2;for(D=103264;D<=103266;D++)R[D]=0;for(D=103267;D<=103269;D++)R[D]=2;for(D=103300;D<=103375;D++)R[D]=0;for(D=103381;D<=103383;D++)R[D]=0;for(D=103384;D<=103386;D++)R[D]=1;for(D=103387;D<=103389;D++)R[D]=0;for(D=103390;D<=103392;D++)R[D]=2;for(D=103397;D<=103399;D++)R[D]=0;for(D=103400;D<=103471;D++)R[D]=2;for(D=103476;D<=103478;D++)R[D]=0;for(D=103479;D<=103481;D++)R[D]=2;for(D=103486;D<=103488;D++)R[D]=0;for(D=103489;D<=103491;D++)R[D]=2;for(D=103492;D<=103495;D++)R[D]=0;for(D=103496;D<=103499;D++)R[D]=2;for(D=103528;D<=103543;D++)R[D]=0;for(D=103544;D<=103548;D++)R[D]=2;for(D=103549;D<=103551;D++)R[D]=0;for(D=103552;D<=103554;D++)R[D]=1;for(D=103555;D<=103557;D++)R[D]=2;for(D=103558;D<=103560;D++)R[D]=0;for(D=103571;D<=103573;D++)R[D]=0;for(D=103574;D<=103576;D++)R[D]=2;for(D=103577;D<=103580;D++)R[D]=0;for(D=103581;D<=103583;D++)R[D]=2;for(D=103595;D<=103694;D++)R[D]=0;for(D=103696;D<=103699;D++)R[D]=0;for(D=103700;D<=103793;D++)R[D]=2;for(D=103794;D<=103887;D++)R[D]=0;for(D=103900;D<=103971;D++)R[D]=2},5548:(nt,Ae,v)=>{"use strict";v.d(Ae,{BD:()=>ue,Cb:()=>Y,G1:()=>oe,Gv:()=>Re,HH:()=>B,JR:()=>Ke,TC:()=>X,Tn:()=>ye,Ue:()=>Q,VK:()=>te,Wi:()=>de,Ye:()=>j,Zp:()=>ge,al:()=>$,bA:()=>Ee,bd:()=>je,be:()=>ie,bf:()=>re,cS:()=>xe,cv:()=>_e,dp:()=>J,fS:()=>Be,kK:()=>me,op:()=>Se,pp:()=>ae,r3:()=>he,re:()=>Fe,sU:()=>se,t8:()=>ve,wp:()=>Ce,wz:()=>ee,xE:()=>He,y8:()=>ze});var D=v(62208),R=v(2004),G=v(65401);function Q(Ge=He){return[Ge[0],Ge[1],Ge[2],Ge[3],Ge[4],Ge[5]]}function $(Ge,Pe,Le,Me,Ne,Xe,Ye=Q()){return Ye[0]=Ge,Ye[1]=Pe,Ye[2]=Le,Ye[3]=Me,Ye[4]=Ne,Ye[5]=Xe,Ye}function B(Ge,Pe){const Le=isFinite(Ge[2])||isFinite(Ge[5]);return new R.Z(Le?{xmin:Ge[0],xmax:Ge[3],ymin:Ge[1],ymax:Ge[4],zmin:Ge[2],zmax:Ge[5],spatialReference:Pe}:{xmin:Ge[0],xmax:Ge[3],ymin:Ge[1],ymax:Ge[4],spatialReference:Pe})}function X(Ge,Pe){Ge[0]=Math.min(Ge[0],Pe[0]),Ge[1]=Math.min(Ge[1],Pe[1]),Ge[2]=Math.min(Ge[2],Pe[2]),Ge[3]=Math.max(Ge[3],Pe[3]),Ge[4]=Math.max(Ge[4],Pe[4]),Ge[5]=Math.max(Ge[5],Pe[5])}function te(Ge,Pe){Ge[0]=Math.min(Ge[0],Pe[0]),Ge[1]=Math.min(Ge[1],Pe[1]),Ge[3]=Math.max(Ge[3],Pe[2]),Ge[4]=Math.max(Ge[4],Pe[3])}function ae(Ge,Pe){Ge[0]=Math.min(Ge[0],Pe[0]),Ge[1]=Math.min(Ge[1],Pe[1]),Ge[2]=Math.min(Ge[2],Pe[2]),Ge[3]=Math.max(Ge[3],Pe[0]),Ge[4]=Math.max(Ge[4],Pe[1]),Ge[5]=Math.max(Ge[5],Pe[2])}function oe(Ge,Pe,Le=0,Me=Pe.length/3){let Ne=Ge[0],Xe=Ge[1],Ye=Ge[2],Je=Ge[3],rt=Ge[4],tt=Ge[5];for(let et=0;et=Ge[3]?0:Ge[3]-Ge[0]}function j(Ge){return Ge[1]>=Ge[4]?0:Ge[4]-Ge[1]}function Y(Ge){return Ge[2]>=Ge[5]?0:Ge[5]-Ge[2]}function ee(Ge){const Pe=re(Ge),Le=Y(Ge),Me=j(Ge);return Math.sqrt(Pe*Pe+Le*Le+Me*Me)}function ie(Ge,Pe=[0,0,0]){return Pe[0]=Ge[0]+re(Ge)/2,Pe[1]=Ge[1]+j(Ge)/2,Pe[2]=Ge[2]+Y(Ge)/2,Pe}function J(Ge,Pe=[0,0,0]){return Pe[0]=re(Ge),Pe[1]=j(Ge),Pe[2]=Y(Ge),Pe}function ue(Ge,Pe){return Pe[0]>=Ge[0]&&Pe[1]>=Ge[1]&&Pe[2]>=Ge[2]&&Pe[0]<=Ge[3]&&Pe[1]<=Ge[4]&&Pe[2]<=Ge[5]}function he(Ge,Pe){return Pe[0]>=Ge[0]&&Pe[1]>=Ge[1]&&Pe[2]>=Ge[2]&&Pe[3]<=Ge[3]&&Pe[4]<=Ge[4]&&Pe[5]<=Ge[5]}function me(Ge,Pe){return Math.max(Pe[0],Ge[0])<=Math.min(Pe[3],Ge[3])&&Math.max(Pe[1],Ge[1])<=Math.min(Pe[4],Ge[4])&&Math.max(Pe[2],Ge[2])<=Math.min(Pe[5],Ge[5])}function ge(Ge,Pe){return!!(0,D.Wi)(Pe)||me(Ge,Pe)}function _e(Ge,Pe,Le,Me,Ne=Ge){return Ne[0]=Ge[0]+Pe,Ne[1]=Ge[1]+Le,Ne[2]=Ge[2]+Me,Ne[3]=Ge[3]+Pe,Ne[4]=Ge[4]+Le,Ne[5]=Ge[5]+Me,Ne}function Ee(Ge,Pe,Le=Ge){const Me=Ge[0]+re(Ge)/2,Ne=Ge[1]+j(Ge)/2,Xe=Ge[2]+Y(Ge)/2;return Le[0]=Me+(Ge[0]-Me)*Pe,Le[1]=Ne+(Ge[1]-Ne)*Pe,Le[2]=Xe+(Ge[2]-Xe)*Pe,Le[3]=Me+(Ge[3]-Me)*Pe,Le[4]=Ne+(Ge[4]-Ne)*Pe,Le[5]=Xe+(Ge[5]-Xe)*Pe,Le}function Se(Ge,Pe,Le=Ge){return Le[0]=Pe[0],Le[1]=Pe[1],Le[2]=Pe[2],Le!==Ge&&(Le[3]=Ge[3],Le[4]=Ge[4],Le[5]=Ge[5]),Le}function ye(Ge,Pe,Le=Ge){return Le[3]=Pe[0],Le[4]=Pe[1],Le[5]=Pe[2],Le!==Ge&&(Le[0]=Ge[0],Le[1]=Ge[1],Le[2]=Ge[2]),Ge}function ve(Ge,Pe){return Ge[0]=Pe[0],Ge[1]=Pe[1],Ge[2]=Pe[2],Ge[3]=Pe[3],Ge[4]=Pe[4],Ge[5]=Pe[5],Ge}function xe(Ge){return Ge?ve(Ge,Re):Q(Re)}function ze(Ge,Pe){return Pe||(Pe=(0,G.Ue)()),Pe[0]=Ge[0],Pe[1]=Ge[1],Pe[2]=Ge[3],Pe[3]=Ge[4],Pe}function Ke(Ge,Pe){return Ge[0]=Pe[0],Ge[1]=Pe[1],Ge[2]=Number.NEGATIVE_INFINITY,Ge[3]=Pe[2],Ge[4]=Pe[3],Ge[5]=Number.POSITIVE_INFINITY,Ge}function We(Ge){return 6===Ge.length}function Ce(Ge){return 0===re(Ge)&&0===j(Ge)&&0===Y(Ge)}function Be(Ge,Pe,Le){if((0,D.Wi)(Ge)||(0,D.Wi)(Pe))return Ge===Pe;if(!We(Ge)||!We(Pe))return!1;if(Le){for(let Me=0;Me{"use strict";v.d(Ae,{BD:()=>ee,Cb:()=>re,Gv:()=>Be,HH:()=>te,Ho:()=>ae,I7:()=>J,JG:()=>B,Qn:()=>ce,SO:()=>j,TE:()=>Ee,Ue:()=>$,Wi:()=>le,Zm:()=>he,al:()=>H,bd:()=>Ce,be:()=>Y,bf:()=>se,cS:()=>xe,cv:()=>be,d9:()=>W,fS:()=>We,hr:()=>ie,jE:()=>ue,jV:()=>_e,jn:()=>oe,kK:()=>me,oJ:()=>X,r3:()=>ge,sU:()=>de,wp:()=>Ke}),v(8314);var R=v(21286),G=v(62208),Z=v(2004);function $(Re=Fe){return[Re[0],Re[1],Re[2],Re[3]]}function W(Re){return[Re[0],Re[1],Re[2],Re[3]]}function B(Re,He){return Re!==He&&(Re[0]=He[0],Re[1]=He[1],Re[2]=He[2],Re[3]=He[3]),Re}function H(Re,He,Ie,Ge,Pe=$()){return Pe[0]=Re,Pe[1]=He,Pe[2]=Ie,Pe[3]=Ge,Pe}function X(Re,He=$()){return He[0]=Re.xmin,He[1]=Re.ymin,He[2]=Re.xmax,He[3]=Re.ymax,He}function te(Re,He){return new Z.Z({xmin:Re[0],ymin:Re[1],xmax:Re[2],ymax:Re[3],spatialReference:He})}function ae(Re,He){He[0]Re[2]&&(Re[2]=He[0]),He[1]Re[3]&&(Re[3]=He[1])}function oe(Re,He,Ie){if((0,G.Wi)(He))B(Ie,Re);else if("length"in He)ze(He)?(Ie[0]=Math.min(Re[0],He[0]),Ie[1]=Math.min(Re[1],He[1]),Ie[2]=Math.max(Re[2],He[2]),Ie[3]=Math.max(Re[3],He[3])):2!==He.length&&3!==He.length||(Ie[0]=Math.min(Re[0],He[0]),Ie[1]=Math.min(Re[1],He[1]),Ie[2]=Math.max(Re[2],He[0]),Ie[3]=Math.max(Re[3],He[1]));else switch(He.type){case"extent":Ie[0]=Math.min(Re[0],He.xmin),Ie[1]=Math.min(Re[1],He.ymin),Ie[2]=Math.max(Re[2],He.xmax),Ie[3]=Math.max(Re[3],He.ymax);break;case"point":Ie[0]=Math.min(Re[0],He.x),Ie[1]=Math.min(Re[1],He.y),Ie[2]=Math.max(Re[2],He.x),Ie[3]=Math.max(Re[3],He.y)}}function le(Re,He,Ie=Re){const Ge=He.length;let Pe=Re[0],Le=Re[1],Me=Re[2],Ne=Re[3];for(let Xe=0;Xe=Re[2]?0:Re[2]-Re[0]}function re(Re){return Re[1]>=Re[3]?0:Re[3]-Re[1]}function j(Re){return se(Re)*re(Re)}function Y(Re,He=[0,0]){return He[0]=(Re[0]+Re[2])/2,He[1]=(Re[1]+Re[3])/2,He}function ee(Re,He){return ue(Re,He[0],He[1])}function ie(Re,He){const Ie=He[3],Pe=Math.abs(He[0]-.5*(Re[0]+Re[2])),Le=.5*(Re[2]-Re[0]);if(Pe>Ie+Le)return!1;const Ne=.5*(Re[3]-Re[1]),Xe=Math.abs(He[1]-.5*(Re[1]+Re[3]));if(Xe>Ie+Ne)return!1;if(Pe(Je-Xe)*ut+(Ne-Ye)*_t+(Ye*Xe-Ne*Je)<0,tt=rt(Ge,Me),et=rt(Le,Me),qe=rt(Le,Pe),ot=rt(Ge,Pe);return!(tt===et&&et===qe&&qe===ot&&ot===tt||NeLe&&Ye>Le||Xe>Me&&Je>Me||Xe=Re[0]&&Ie>=Re[1]&&He<=Re[2]&&Ie<=Re[3]}function he(Re,He,Ie){return He[0]>=Re[0]-Ie&&He[1]>=Re[1]-Ie&&He[0]<=Re[2]+Ie&&He[1]<=Re[3]+Ie}function me(Re,He){return Math.max(He[0],Re[0])<=Math.min(He[2],Re[2])&&Math.max(He[1],Re[1])<=Math.min(He[3],Re[3])}function ge(Re,He){return He[0]>=Re[0]&&He[2]<=Re[2]&&He[1]>=Re[1]&&He[3]<=Re[3]}function _e(Re,He,Ie){if((0,G.Wi)(He))return B(Ie,Re);const Ge=He[0],Pe=He[1],Le=He[2],Me=He[3];return Ie[0]=(0,R.uZ)(Re[0],Ge,Le),Ie[1]=(0,R.uZ)(Re[1],Pe,Me),Ie[2]=(0,R.uZ)(Re[2],Ge,Le),Ie[3]=(0,R.uZ)(Re[3],Pe,Me),Ie}function Ee(Re,He){const Ge=(Re[1]+Re[3])/2,Pe=Math.max(Math.abs(He[0]-(Re[0]+Re[2])/2)-se(Re)/2,0),Le=Math.max(Math.abs(He[1]-Ge)-re(Re)/2,0);return Math.sqrt(Pe*Pe+Le*Le)}function be(Re,He,Ie,Ge=Re){return Ge[0]=Re[0]+He,Ge[1]=Re[1]+Ie,Ge[2]=Re[2]+He,Ge[3]=Re[3]+Ie,Ge}function xe(Re){return Re?B(Re,Be):$(Be)}function ze(Re){return null!=Re&&4===Re.length}function Ke(Re){return!(0!==se(Re)&&isFinite(Re[0])||0!==re(Re)&&isFinite(Re[1]))}function We(Re,He){return ze(Re)&&ze(He)?Re[0]===He[0]&&Re[1]===He[1]&&Re[2]===He[2]&&Re[3]===He[3]:Re===He}const Ce=[-1/0,-1/0,1/0,1/0],Be=[1/0,1/0,-1/0,-1/0],Fe=[0,0,0,0]},89586:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ue:()=>Q,WH:()=>de,ZZ:()=>oe,qC:()=>ae,uT:()=>X,zk:()=>te});var D=v(21286),R=v(48977),G=v(78451),Z=v(84161);function Q(ie=re){return[ie[0],ie[1],ie[2],ie[3]]}function X(ie,J,ce=Q()){return(0,Z.c)(ce,ie),ce[3]=J,ce}function te(ie,J,ce=Q()){return(0,Z.f)(ce,ie,J),(0,Z.n)(ce,ce),ce[3]=-(0,Z.v)(ie,J),ce}function ae(ie,J,ce=Q()){return(0,R.s)(j,ie,de(ie)),(0,R.s)(Y,J,de(J)),(0,R.m)(j,Y,j),function se(ie,J){return ie[3]=J,ie}(ce,(0,D.BV)((0,R.g)(ce,j)))}function oe(ie){return ie}function de(ie){return(0,D.Vl)(ie[3])}const re=[0,0,1,0],j=(0,G.a)(),Y=(0,G.a)();Q()},32442:(nt,Ae,v)=>{"use strict";function D(se){return void 0!==se.xmin&&void 0!==se.ymin&&void 0!==se.xmax&&void 0!==se.ymax}function R(se){return void 0!==se.points}function G(se){return void 0!==se.x&&void 0!==se.y}function Z(se){return void 0!==se.paths}function Q(se){return void 0!==se.rings}function $(se){return function re(j,Y){return null==j?Y:null==Y?j:se(j,Y)}}v.d(Ae,{$P:()=>H,C6:()=>te,Yg:()=>X,lC:()=>oe});const W=$(Math.min),B=$(Math.max);function H(se,re){return Z(re)?te(se,re.paths,!1,!1):Q(re)?te(se,re.rings,!1,!1):R(re)?oe(se,re.points,!1,!1,!1,!1):D(re)?ae(se,re):(G(re)&&(se[0]=re.x,se[1]=re.y,se[2]=re.x,se[3]=re.y),se)}function X(se,re){return Z(re)?te(se,re.paths,!0,!1):Q(re)?te(se,re.rings,!0,!1):R(re)?oe(se,re.points,!0,!1,!0,!1):D(re)?ae(se,re,0,0,!0,!1):(G(re)&&(se[0]=re.x,se[1]=re.y,se[2]=re.z,se[3]=re.x,se[4]=re.y,se[5]=re.z),se)}function te(se,re,j,Y){const ee=j?3:2;if(!re.length||!re[0].length)return null;let ie,J,ce,ue,[pe,he]=re[0][0],[me,ge]=re[0][0];for(let _e=0;_e2){const ve=be[2];ie=W(ie,ve),J=B(J,ve)}if(Y&&be.length>ee){const ve=be[ee];ce=W(ie,ve),ue=B(J,ve)}}}return j?Y?(se[0]=pe,se[1]=he,se[2]=ie,se[3]=ce,se[4]=me,se[5]=ge,se[6]=J,se[7]=ue,se.length=8,se):(se[0]=pe,se[1]=he,se[2]=ie,se[3]=me,se[4]=ge,se[5]=J,se.length=6,se):Y?(se[0]=pe,se[1]=he,se[2]=ce,se[3]=me,se[4]=ge,se[5]=ue,se.length=6,se):(se[0]=pe,se[1]=he,se[2]=me,se[3]=ge,se.length=4,se)}function ae(se,re,j,Y,ee,ie){const J=re.xmin,ce=re.xmax,ue=re.ymin,pe=re.ymax;let he=re.zmin,me=re.zmax,ge=re.mmin,_e=re.mmax;return ee?(he=he||0,me=me||0,ie?(ge=ge||0,_e=_e||0,se[0]=J,se[1]=ue,se[2]=he,se[3]=ge,se[4]=ce,se[5]=pe,se[6]=me,se[7]=_e,se):(se[0]=J,se[1]=ue,se[2]=he,se[3]=ce,se[4]=pe,se[5]=me,se)):ie?(ge=ge||0,_e=_e||0,se[0]=J,se[1]=ue,se[2]=ge,se[3]=ce,se[4]=pe,se[5]=_e,se):(se[0]=J,se[1]=ue,se[2]=ce,se[3]=pe,se)}function oe(se,re,j,Y,ee,ie){const J=j?3:2,ce=Y&&ie,ue=j&ⅇif(!re.length||!re[0].length)return null;let pe,he,me,ge,[_e,Ee]=re[0],[De,be]=re[0];for(let Se=0;Se2){const ze=ye[2];pe=W(pe,ze),he=B(he,ze)}if(ce&&ye.length>J){const ze=ye[J];me=W(pe,ze),ge=B(he,ze)}}return ee?(pe=pe||0,he=he||0,ie?(me=me||0,ge=ge||0,se[0]=_e,se[1]=Ee,se[2]=pe,se[3]=me,se[4]=De,se[5]=be,se[6]=he,se[7]=ge,se):(se[0]=_e,se[1]=Ee,se[2]=pe,se[3]=De,se[4]=be,se[5]=he,se)):ie?(me=me||0,ge=ge||0,se[0]=_e,se[1]=Ee,se[2]=me,se[3]=De,se[4]=be,se[5]=ge,se):(se[0]=_e,se[1]=Ee,se[2]=De,se[3]=be,se)}},60479:(nt,Ae,v)=>{"use strict";v.d(Ae,{ly:()=>X,oS:()=>j,o7:()=>Ke,Jj:()=>Fe,Hz:()=>ye,gK:()=>le,ey:()=>de,bj:()=>se,O1:()=>re,av:()=>he,Nu:()=>Ee,D_:()=>J,Eu:()=>te,q6:()=>Y,or:()=>We,wA:()=>je,Vs:()=>ve,TS:()=>me,qt:()=>De,xA:()=>ce,ct:()=>ae,fP:()=>ee,n1:()=>Ce,PP:()=>Re,P_:()=>xe,mw:()=>ge,G5:()=>be,ne:()=>ue,ek:()=>oe,Cd:()=>ie,zO:()=>Be,TN:()=>He,ir:()=>ze,v6:()=>_e,hu:()=>Se,mc:()=>pe});let D=(()=>{class Ie{constructor(Pe,Le,Me=0,Ne,Xe){this.TypedArrayConstructor=Pe,this.elementCount=9;const Ye=this.TypedArrayConstructor;void 0===Ne&&(Ne=9*Ye.BYTES_PER_ELEMENT);const Je=0===Le.byteLength?0:Me;this.typedBuffer=null==Xe?new Ye(Le,Je):new Ye(Le,Je,(Xe-Me)/Ye.BYTES_PER_ELEMENT),this.typedBufferStride=Ne/Ye.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(Pe,Le,Me=this.count-Le){const Ne=this.typedBuffer.byteOffset+Le*this.stride;return new Pe(this.buffer,Ne,this.stride,Ne+Me*this.stride)}getMat(Pe,Le){let Me=Pe*this.typedBufferStride;for(let Ne=0;Ne<9;Ne++)Le[Ne]=this.typedBuffer[Me++];return Le}setMat(Pe,Le){let Me=Pe*this.typedBufferStride;for(let Ne=0;Ne<9;Ne++)this.typedBuffer[Me++]=Le[Ne]}get(Pe,Le){return this.typedBuffer[Pe*this.typedBufferStride+Le]}set(Pe,Le,Me){this.typedBuffer[Pe*this.typedBufferStride+Le]=Me}copyFrom(Pe,Le,Me){const Ne=this.typedBuffer,Xe=Le.typedBuffer;let Ye=Pe*this.typedBufferStride,Je=Me*Le.typedBufferStride;for(let rt=0;rt<9;++rt)Ne[Ye++]=Xe[Je++]}get buffer(){return this.typedBuffer.buffer}}return Ie.ElementCount=9,Ie})(),R=(()=>{class Ie{constructor(Pe,Le,Me=0,Ne,Xe){this.TypedArrayConstructor=Pe,this.elementCount=16;const Ye=this.TypedArrayConstructor;void 0===Ne&&(Ne=16*Ye.BYTES_PER_ELEMENT);const Je=0===Le.byteLength?0:Me;this.typedBuffer=null==Xe?new Ye(Le,Je):new Ye(Le,Je,(Xe-Me)/Ye.BYTES_PER_ELEMENT),this.typedBufferStride=Ne/Ye.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(Pe,Le,Me=this.count-Le){const Ne=this.typedBuffer.byteOffset+Le*this.stride;return new Pe(this.buffer,Ne,this.stride,Ne+Me*this.stride)}getMat(Pe,Le){let Me=Pe*this.typedBufferStride;for(let Ne=0;Ne<16;Ne++)Le[Ne]=this.typedBuffer[Me++];return Le}setMat(Pe,Le){let Me=Pe*this.typedBufferStride;for(let Ne=0;Ne<16;Ne++)this.typedBuffer[Me++]=Le[Ne]}get(Pe,Le){return this.typedBuffer[Pe*this.typedBufferStride+Le]}set(Pe,Le,Me){this.typedBuffer[Pe*this.typedBufferStride+Le]=Me}copyFrom(Pe,Le,Me){const Ne=this.typedBuffer,Xe=Le.typedBuffer;let Ye=Pe*this.typedBufferStride,Je=Me*Le.typedBufferStride;for(let rt=0;rt<16;++rt)Ne[Ye++]=Xe[Je++]}get buffer(){return this.typedBuffer.buffer}}return Ie.ElementCount=16,Ie})(),G=(()=>{class Ie{constructor(Pe,Le,Me=0,Ne,Xe){this.TypedArrayConstructor=Pe,this.elementCount=1;const Ye=this.TypedArrayConstructor;void 0===Ne&&(Ne=Ye.BYTES_PER_ELEMENT);const Je=0===Le.byteLength?0:Me;this.typedBuffer=null==Xe?new Ye(Le,Je):new Ye(Le,Je,(Xe-Me)/Ye.BYTES_PER_ELEMENT),this.stride=Ne,this.typedBufferStride=Ne/Ye.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(Pe,Le,Me=this.count-Le){const Ne=this.typedBuffer.byteOffset+Le*this.stride;return new Pe(this.buffer,Ne,this.stride,Ne+Me*this.stride)}get(Pe){return this.typedBuffer[Pe*this.typedBufferStride]}set(Pe,Le){this.typedBuffer[Pe*this.typedBufferStride]=Le}get buffer(){return this.typedBuffer.buffer}}return Ie.ElementCount=1,Ie})();var Z=v(67831);let Q=(()=>{class Ie{constructor(Pe,Le,Me=0,Ne,Xe){this.TypedArrayConstructor=Pe,this.elementCount=2;const Ye=this.TypedArrayConstructor;void 0===Ne&&(Ne=2*Ye.BYTES_PER_ELEMENT);const Je=0===Le.byteLength?0:Me;this.typedBuffer=null==Xe?new Ye(Le,Je):new Ye(Le,Je,(Xe-Me)/Ye.BYTES_PER_ELEMENT),this.typedBufferStride=Ne/Ye.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(Pe,Le,Me=this.count-Le){const Ne=this.typedBuffer.byteOffset+Le*this.stride;return new Pe(this.buffer,Ne,this.stride,Ne+Me*this.stride)}getVec(Pe,Le){return(0,Z.s)(Le,this.typedBuffer[Pe*=this.typedBufferStride],this.typedBuffer[Pe+1])}setVec(Pe,Le){Pe*=this.typedBufferStride,this.typedBuffer[Pe++]=Le[0],this.typedBuffer[Pe]=Le[1]}get(Pe,Le){return this.typedBuffer[Pe*this.typedBufferStride+Le]}set(Pe,Le,Me){this.typedBuffer[Pe*this.typedBufferStride+Le]=Me}setValues(Pe,Le,Me){Pe*=this.typedBufferStride,this.typedBuffer[Pe++]=Le,this.typedBuffer[Pe]=Me}copyFrom(Pe,Le,Me){const Ne=this.typedBuffer,Xe=Le.typedBuffer;let Ye=Pe*this.typedBufferStride,Je=Me*Le.typedBufferStride;Ne[Ye++]=Xe[Je++],Ne[Ye]=Xe[Je]}get buffer(){return this.typedBuffer.buffer}}return Ie.ElementCount=2,Ie})();var $=v(84161);let W=(()=>{class Ie{constructor(Pe,Le,Me=0,Ne,Xe){this.TypedArrayConstructor=Pe,this.elementCount=3;const Ye=this.TypedArrayConstructor;void 0===Ne&&(Ne=3*Ye.BYTES_PER_ELEMENT);const Je=0===Le.byteLength?0:Me;this.typedBuffer=null==Xe?new Ye(Le,Je):new Ye(Le,Je,(Xe-Me)/Ye.BYTES_PER_ELEMENT),this.typedBufferStride=Ne/Ye.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(Pe,Le,Me=this.count-Le){const Ne=this.typedBuffer.byteOffset+Le*this.stride;return new Pe(this.buffer,Ne,this.stride,Ne+Me*this.stride)}getVec(Pe,Le){return(0,$.s)(Le,this.typedBuffer[Pe*=this.typedBufferStride],this.typedBuffer[Pe+1],this.typedBuffer[Pe+2])}setVec(Pe,Le){Pe*=this.typedBufferStride,this.typedBuffer[Pe++]=Le[0],this.typedBuffer[Pe++]=Le[1],this.typedBuffer[Pe]=Le[2]}get(Pe,Le){return this.typedBuffer[Pe*this.typedBufferStride+Le]}set(Pe,Le,Me){this.typedBuffer[Pe*this.typedBufferStride+Le]=Me}setValues(Pe,Le,Me,Ne){Pe*=this.typedBufferStride,this.typedBuffer[Pe++]=Le,this.typedBuffer[Pe++]=Me,this.typedBuffer[Pe]=Ne}copyFrom(Pe,Le,Me){const Ne=this.typedBuffer,Xe=Le.typedBuffer;let Ye=Pe*this.typedBufferStride,Je=Me*Le.typedBufferStride;Ne[Ye++]=Xe[Je++],Ne[Ye++]=Xe[Je++],Ne[Ye]=Xe[Je]}get buffer(){return this.typedBuffer.buffer}}return Ie.ElementCount=3,Ie})();var B=v(993);let H=(()=>{class Ie{constructor(Pe,Le,Me=0,Ne,Xe){this.TypedArrayConstructor=Pe,this.start=Me,this.elementCount=4;const Ye=this.TypedArrayConstructor;void 0===Ne&&(Ne=4*Ye.BYTES_PER_ELEMENT);const Je=0===Le.byteLength?0:Me;this.typedBuffer=null==Xe?new Ye(Le,Je):new Ye(Le,Je,(Xe-Me)/Ye.BYTES_PER_ELEMENT),this.typedBufferStride=Ne/Ye.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(Pe,Le,Me=this.count-Le){const Ne=this.typedBuffer.byteOffset+Le*this.stride;return new Pe(this.buffer,Ne,this.stride,Ne+Me*this.stride)}getVec(Pe,Le){return Pe*=this.typedBufferStride,(0,B.s)(Le,this.typedBuffer[Pe++],this.typedBuffer[Pe++],this.typedBuffer[Pe++],this.typedBuffer[Pe])}setVec(Pe,Le){Pe*=this.typedBufferStride,this.typedBuffer[Pe++]=Le[0],this.typedBuffer[Pe++]=Le[1],this.typedBuffer[Pe++]=Le[2],this.typedBuffer[Pe]=Le[3]}get(Pe,Le){return this.typedBuffer[Pe*this.typedBufferStride+Le]}set(Pe,Le,Me){this.typedBuffer[Pe*this.typedBufferStride+Le]=Me}setValues(Pe,Le,Me,Ne,Xe){Pe*=this.typedBufferStride,this.typedBuffer[Pe++]=Le,this.typedBuffer[Pe++]=Me,this.typedBuffer[Pe++]=Ne,this.typedBuffer[Pe]=Xe}copyFrom(Pe,Le,Me){const Ne=this.typedBuffer,Xe=Le.typedBuffer;let Ye=Pe*this.typedBufferStride,Je=Me*Le.typedBufferStride;Ne[Ye++]=Xe[Je++],Ne[Ye++]=Xe[Je++],Ne[Ye++]=Xe[Je++],Ne[Ye]=Xe[Je]}get buffer(){return this.typedBuffer.buffer}}return Ie.ElementCount=4,Ie})(),X=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Float32Array,Pe,Le,Me,Ne),this.elementType="f32"}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f32",Ie})(),te=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Float32Array,Pe,Le,Me,Ne),this.elementType="f32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f32",Ie})(),ae=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Float32Array,Pe,Le,Me,Ne),this.elementType="f32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f32",Ie})(),oe=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Float32Array,Pe,Le,Me,Ne),this.elementType="f32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f32",Ie})(),le=(()=>{class Ie extends D{constructor(Pe,Le=0,Me,Ne){super(Float32Array,Pe,Le,Me,Ne),this.elementType="f32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f32",Ie})(),de=(()=>{class Ie extends D{constructor(Pe,Le=0,Me,Ne){super(Float64Array,Pe,Le,Me,Ne),this.elementType="f64"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f64",Ie})(),se=(()=>{class Ie extends R{constructor(Pe,Le=0,Me,Ne){super(Float32Array,Pe,Le,Me,Ne),this.elementType="f32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f32",Ie})(),re=(()=>{class Ie extends R{constructor(Pe,Le=0,Me,Ne){super(Float64Array,Pe,Le,Me,Ne),this.elementType="f64"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f64",Ie})(),j=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Float64Array,Pe,Le,Me,Ne),this.elementType="f64"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f64",Ie})(),Y=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Float64Array,Pe,Le,Me,Ne),this.elementType="f64"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f64",Ie})(),ee=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Float64Array,Pe,Le,Me,Ne),this.elementType="f64"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f64",Ie})(),ie=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Float64Array,Pe,Le,Me,Ne),this.elementType="f64"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="f64",Ie})(),J=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Uint8Array,Pe,Le,Me,Ne),this.elementType="u8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u8",Ie})(),ce=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Uint8Array,Pe,Le,Me,Ne),this.elementType="u8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u8",Ie})(),ue=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Uint8Array,Pe,Le,Me,Ne),this.elementType="u8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u8",Ie})(),pe=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Uint8Array,Pe,Le,Me,Ne),this.elementType="u8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u8",Ie})(),he=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Uint16Array,Pe,Le,Me,Ne),this.elementType="u16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u16",Ie})(),me=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Uint16Array,Pe,Le,Me,Ne),this.elementType="u16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u16",Ie})(),ge=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Uint16Array,Pe,Le,Me,Ne),this.elementType="u16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u16",Ie})(),_e=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Uint16Array,Pe,Le,Me,Ne),this.elementType="u16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u16",Ie})(),Ee=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Uint32Array,Pe,Le,Me,Ne),this.elementType="u32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u32",Ie})(),De=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Uint32Array,Pe,Le,Me,Ne),this.elementType="u32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u32",Ie})(),be=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Uint32Array,Pe,Le,Me,Ne),this.elementType="u32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u32",Ie})(),Se=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Uint32Array,Pe,Le,Me,Ne),this.elementType="u32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="u32",Ie})(),ye=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Int8Array,Pe,Le,Me,Ne),this.elementType="i8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i8",Ie})(),ve=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Int8Array,Pe,Le,Me,Ne),this.elementType="i8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i8",Ie})(),xe=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Int8Array,Pe,Le,Me,Ne),this.elementType="i8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i8",Ie})(),ze=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Int8Array,Pe,Le,Me,Ne),this.elementType="i8"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i8",Ie})(),Ke=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Int16Array,Pe,Le,Me,Ne),this.elementType="i16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i16",Ie})(),We=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Int16Array,Pe,Le,Me,Ne),this.elementType="i16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i16",Ie})(),Ce=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Int16Array,Pe,Le,Me,Ne),this.elementType="i16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i16",Ie})(),Be=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Int16Array,Pe,Le,Me,Ne),this.elementType="i16"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i16",Ie})(),Fe=(()=>{class Ie extends G{constructor(Pe,Le=0,Me,Ne){super(Int32Array,Pe,Le,Me,Ne),this.elementType="i32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i32",Ie})(),je=(()=>{class Ie extends Q{constructor(Pe,Le=0,Me,Ne){super(Int32Array,Pe,Le,Me,Ne),this.elementType="i32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i32",Ie})(),Re=(()=>{class Ie extends W{constructor(Pe,Le=0,Me,Ne){super(Int32Array,Pe,Le,Me,Ne),this.elementType="i32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i32",Ie})(),He=(()=>{class Ie extends H{constructor(Pe,Le=0,Me,Ne){super(Int32Array,Pe,Le,Me,Ne),this.elementType="i32"}slice(Pe,Le){return this.sliceBuffer(Ie,Pe,Le)}static fromTypedArray(Pe,Le){return new Ie(Pe.buffer,Pe.byteOffset,Le,Pe.byteOffset+Pe.byteLength)}}return Ie.ElementType="i32",Ie})()},96286:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>R});const R=v(63290).Z.getLogger("esri.views.3d.support.buffer.math")},81096:(nt,Ae,v)=>{"use strict";function D(Q){switch(Q){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}function R(Q){switch(Q){case"u8":case"u16":case"u32":return!1;case"i8":case"i16":case"i32":case"f32":case"f64":return!0}}function G(Q){switch(Q){case"u8":case"u16":case"u32":case"i8":case"i16":case"i32":return!0;case"f32":case"f64":return!1}}function Z(Q){switch(Q){case"u8":return 255;case"u16":return 65535;case"u32":return 4294967295;case"i8":return 127;case"i16":return 32767;case"i32":return 2147483647;case"f32":return 3402823e32;case"f64":return 179769e303}}v.d(Ae,{B3:()=>R,Op:()=>Z,U:()=>G,n1:()=>D})},60490:(nt,Ae,v)=>{"use strict";v.d(Ae,{gS:()=>X});var D=v(81096);function X(te,ae){return new te(new ArrayBuffer(ae*te.ElementCount*(0,D.n1)(te.ElementType)))}Object.freeze(Object.defineProperty({__proto__:null,copy:function R(te,ae,oe){const le=te.typedBuffer,de=te.typedBufferStride,se=ae.typedBuffer,re=ae.typedBufferStride,j=oe?oe.count:ae.count;let Y=(oe&&oe.dstIndex?oe.dstIndex:0)*de,ee=(oe&&oe.srcIndex?oe.srcIndex:0)*re;for(let ie=0;ie{"use strict";v.d(Ae,{$G:()=>R,DS:()=>Q,NA:()=>B,a:()=>Z,tO:()=>G});var D=v(25748);function R(te){return te?te.hasZ?[te.xmax-te.xmin/2,te.ymax-te.ymin/2,te.zmax-te.zmin/2]:[te.xmax-te.xmin/2,te.ymax-te.ymin/2]:null}function G(te){return te?Z(te.rings,te.hasZ??!1):null}function Z(te,ae){if(!te||!te.length)return null;const oe=[],le=[],de=ae?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let se=0,re=te.length;se{let j=se[2]-re[2];return 0===j&&ae&&(j=se[4]-re[4]),j}),le.length&&(oe[0]=le[0][0],oe[1]=le[0][1],ae&&(oe[2]=le[0][3]),(oe[0]de[1]||oe[1]de[3]||ae&&(oe[2]de[5]))&&(oe.length=0)),!oe.length){const se=te[0]&&te[0].length?function $(te,ae){const oe=ae?[0,0,0]:[0,0],le=ae?[0,0,0]:[0,0];let de=0,se=0,re=0,j=0;for(let Y=0,ee=te.length;Y2&&J.length>2&&(oe[2]=ie[2],le[2]=J[2]);const ce=(0,D.xA)(oe,le);if(ce){de+=ce;const ue=(0,D.Gi)(ie,J);se+=ce*ue[0],re+=ce*ue[1],ae&&ue.length>2&&(j+=ce*ue[2])}}}return de>0?ae?[se/de,re/de,j/de]:[se/de,re/de]:te.length?te[0]:null}(te[0],ae):null;if(!se)return null;oe[0]=se[0],oe[1]=se[1],ae&&se.length>2&&(oe[2]=se[2])}return oe}function Q(te,ae,oe){let le=0,de=0,se=0,re=0,j=0;const Y=te.length?te[0][0]:0,ee=te.length?te[0][1]:0,ie=te.length&&ae?te[0][2]:0;for(let ce=0;ce2&&pe.length>2){const ze=ge-ie,Ke=Se-ie,We=_e*Ke-ye*ze;se+=(ze+Ke)*We,j+=We}heoe[1]&&(oe[1]=he),meoe[3]&&(oe[3]=me),ae&&(geoe[5]&&(oe[5]=ge))}if(re>0&&(re*=-1),j>0&&(j*=-1),!re)return null;re*=.5,j*=.5;const J=[le/(6*re)+Y,de/(6*re)+ee,re];return ae&&(oe[4]===oe[5]||0===j?(J[3]=(oe[4]+oe[5])/2,J[4]=0):(J[3]=se/(6*j)+ie,J[4]=j)),J}function B(te){if(!te||!te.rings)return null;const{rings:ae}=te;let oe=0;for(let se=0;se{"use strict";v.d(Ae,{S$:()=>oe,Ue:()=>Q,Ws:()=>ae,_k:()=>te,iL:()=>H});var D=v(97535),R=v(84161),G=v(70562);function Q(se){return se?{ray:(0,G.Ue)(se.ray),c0:se.c0,c1:se.c1}:{ray:(0,G.Ue)(),c0:0,c1:Number.MAX_VALUE}}function H(se,re=Q()){return(0,G.JG)(se,re.ray),re.c0=0,re.c1=Number.MAX_VALUE,re}function te(se,re,j=Q()){const Y=(0,R.l)(se.vector);return(0,G.al)(se.origin,re,j.ray),j.c0=0,j.c1=Y,j}function ae(se,re){return le(se,se.c0,re)}function oe(se,re){return le(se,se.c1,re)}function le(se,re,j){return(0,R.a)(j,se.ray.origin,(0,R.g)(j,se.ray.direction,re))}v(26242),new D.x(()=>Q())},33190:(nt,Ae,v)=>{"use strict";v.d(Ae,{CI:()=>H,Kv:()=>B,OQ:()=>$,Qg:()=>W,aV:()=>G,lQ:()=>Z,uP:()=>Q,wP:()=>te});var D=v(62208);const R=[0,0];function G(le,de){return!!(0,D.pC)(de)&&B(le,de.x,de.y,de.z)}function Z(le,de){if(!de.points||de.points.length)return!1;for(const se of de.points)if(!$(le,se))return!1;return!0}function Q(le,de){const{xmin:se,ymin:re,zmin:j,xmax:Y,ymax:ee,zmax:ie}=de;return le.hasZ&&de.hasZ?B(le,se,re,j)&&B(le,se,ee,j)&&B(le,Y,ee,j)&&B(le,Y,re,j)&&B(le,se,re,ie)&&B(le,se,ee,ie)&&B(le,Y,ee,ie)&&B(le,Y,re,ie):B(le,se,re)&&B(le,se,ee)&&B(le,Y,ee)&&B(le,Y,re)}function $(le,de){return B(le,de[0],de[1])}function W(le,de){return B(le,de[0],de[1],de[2])}function B(le,de,se,re){return de>=le.xmin&&de<=le.xmax&&se>=le.ymin&&se<=le.ymax&&(null==re||!le.hasZ||re>=le.zmin&&re<=le.zmax)}function H(le,de){return R[1]=de.y,R[0]=de.x,function X(le,de){return te(le.rings,de)}(le,R)}function te(le,de){if(!le)return!1;if(function ae(le){return!Array.isArray(le[0][0])}(le))return oe(!1,le,de);let se=!1;for(let re=0,j=le.length;re=j||he=j)&&ce+(j-ue)/(he-ue)*(pe-ce){"use strict";v.d(Ae,{BR:()=>Y,E2:()=>Se,Is:()=>he,Kf:()=>j,NE:()=>ge,P0:()=>re,Tz:()=>be,Ue:()=>H,ej:()=>J,id:()=>pe,pb:()=>de,pt:()=>oe,qf:()=>X,rF:()=>me,yS:()=>De});var D=v(28347),R=v(84161),G=v(28093),Z=v(12080),Q=v(65234),$=v(78172),W=v(41743),B=v(97126);function H(ve){const{value:xe,operations:ze}=ve;return{operations:ze,value:ze.create(xe)}}function X(ve,xe,ze){return ve.operations.setExtent(ve.value,xe,ze.value),ze}function ae(ve,xe,ze=function te(ve){return{operations:ve,value:ve.create()}}(ve)){return ze.operations=ve,ve.copy(xe,ze.value),ze}function oe(ve){return ae(B.s,(0,B.f)(0,0,0,(0,Z.Iu)(ve).radius))}const le=2**50;function de(){return ae(W.b,(0,W.f)([0,0,0],[le,0,0],[0,le,0]))}function re(ve,xe,ze){return ve.operations.axisAt(ve.value,xe,$.R.Z,ze)}function j(ve,xe,ze,Ke){return ve.operations.axisAt(ve.value,xe,ze,Ke)}function Y(ve,xe,ze){return ve.operations.intersectRay(ve.value,xe,ze)}function J(ve,xe,ze){return ve.operations.intersectRayClosestSilhouette(ve.value,xe,ze)}function pe(ve,xe){return ve.operations.altitudeAt(ve.value,xe)}function he(ve,xe,ze,Ke){return ve.operations.setAltitudeAt(ve.value,xe,ze,Ke)}function me(ve,xe,ze,Ke){return xe!==Ke&&(0,D.c)(Ke,xe),(0,R.s)(_e,Ke[12],Ke[13],Ke[14]),he(ve,_e,ze,_e),Ke[12]=_e[0],Ke[13]=_e[1],Ke[14]=_e[2],Ke}function ge(ve,xe,ze){return ve.operations.elevate(ve.value,xe,ze.value)}const _e=(0,G.c)();function De(ve,xe,ze,Ke,We){return We[0]=(0,R.e)(ve,xe),We[1]=(0,R.e)(ve,ze),We[2]=(0,R.e)(ve,Ke),We}function be(ve,xe,ze,Ke,We){(0,R.c)(ze,ve),(0,R.c)(ye,xe),(0,R.n)(ye,ye),(0,R.f)(Ke,ye,ze),(0,R.f)(We,Ke,ze)}function Se(ve,xe){return ve?(0,Z.rS)(xe):xe.isGeographic?Q.Z.PlateCarree:xe}const ye=(0,G.c)()},25748:(nt,Ae,v)=>{"use strict";v.d(Ae,{Gi:()=>H,Sm:()=>Y,Tx:()=>$,Zy:()=>de,bu:()=>ae,ko:()=>W,n8:()=>te,ok:()=>X,xA:()=>Z});var D=v(85931);function Z(ee,ie){const J=ie[0]-ee[0],ce=ie[1]-ee[1];if(ee.length>2&&ie.length>2){const ue=ee[2]-ie[2];return Math.sqrt(J*J+ce*ce+ue*ue)}return Math.sqrt(J*J+ce*ce)}function Q(ee,ie,J){const ce=ee[0]+J*(ie[0]-ee[0]),ue=ee[1]+J*(ie[1]-ee[1]);return ee.length>2&&ie.length>2?[ce,ue,ee[2]+J*(ie[2]-ee[2])]:[ce,ue]}function $(ee,ie,J,ce){const[ue,pe]=ie,[he,me]=J[ce],[ge,_e]=J[ce+1],Ee=ge-he,De=_e-me,ye=Math.min(1,Math.max(0,((ue-he)*Ee+(pe-me)*De)/(Ee*Ee+De*De)));return ee[0]=he+Ee*ye,ee[1]=me+De*ye,ee}function W(ee,ie,J){const ce=J.rings;let ue,pe,he=!1,me=1/0;for(let ge=0;geie!=pe[1]>ie&&ee<(pe[0]-ue[0])*(ie-ue[1])/(pe[1]-ue[1])+ue[0]&&(he=!he),me=Math.min(me,B(ee,ie,ue,pe))}return 0===me?0:(he?1:-1)*Math.sqrt(me)}function B(ee,ie,J,ce){let ue=J[0],pe=J[1],he=ce[0]-ue,me=ce[1]-pe;if(0!==he||0!==me){const ge=((ee-ue)*he+(ie-pe)*me)/(he*he+me*me);ge>1?(ue=ce[0],pe=ce[1]):ge>0&&(ue+=he*ge,pe+=me*ge)}return he=ee-ue,me=ie-pe,he*he+me*me}function H(ee,ie){return Q(ee,ie,.5)}function X(ee){const ie=ee.length;let J=0;for(let ce=0;ce2&&_e.length>2&&J&&(pe+=ge[0]*_e[2]-_e[0]*ge[2],Ee=3),ge.length>Ee&&_e.length>Ee&&ie&&(he+=ge[0]*_e[Ee]-_e[0]*ge[Ee])}return ue<=0&&pe<=0&&he<=0}function oe(ee){const ie=ee.length;return ie>2&&(0,D.fS)(ee[0],ee[ie-1])}function de(ee){if("rings"in ee)for(const ie of ee.rings)oe(ie)||ie.push(ie[0].slice())}function Y(ee){if(!ee||ee.length<3)return 0;let ie=0;const J=ee.length-1;for(let ce=0;ce{"use strict";v.d(Ae,{Wn:()=>re,_w:()=>se,aO:()=>oe});var D=v(32442);const W=[];function B(j,Y,ee,ie){return{xmin:j,ymin:Y,xmax:ee,ymax:ie}}function H(j,Y,ee,ie,J,ce){return{xmin:j,ymin:Y,zmin:ee,xmax:ie,ymax:J,zmax:ce}}function X(j,Y,ee,ie,J,ce){return{xmin:j,ymin:Y,mmin:ee,xmax:ie,ymax:J,mmax:ce}}function te(j,Y,ee,ie,J,ce,ue,pe){return{xmin:j,ymin:Y,zmin:ee,mmin:ie,xmax:J,ymax:ce,zmax:ue,mmax:pe}}function ae(j,Y=!1,ee=!1){return Y?ee?te(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7]):H(j[0],j[1],j[2],j[3],j[4],j[5]):ee?X(j[0],j[1],j[2],j[3],j[4],j[5]):B(j[0],j[1],j[2],j[3])}function oe(j){return j?function R(j){return void 0!==j.xmin&&void 0!==j.ymin&&void 0!==j.xmax&&void 0!==j.ymax}(j)?j:function Z(j){return void 0!==j.x&&void 0!==j.y}(j)?function de(j){const{x:Y,y:ee,z:ie,m:J}=j,ce=null!=J;return null!=ie?ce?te(Y,ee,ie,J,Y,ee,ie,J):H(Y,ee,ie,Y,ee,ie):ce?X(Y,ee,J,Y,ee,J):B(Y,ee,Y,ee)}(j):function $(j){return void 0!==j.rings}(j)?se(j):function Q(j){return void 0!==j.paths}(j)?re(j):function G(j){return void 0!==j.points}(j)?function le(j){const{hasZ:Y,hasM:ee,points:ie}=j;return ae((0,D.lC)(W,ie,Y??!1,ee??!1),Y,ee)}(j):null:null}function se(j){const{hasZ:Y,hasM:ee,rings:ie}=j,J=(0,D.C6)(W,ie,Y??!1,ee??!1);return J?ae(J,Y,ee):null}function re(j){const{hasZ:Y,hasM:ee,paths:ie}=j,J=(0,D.C6)(W,ie,Y??!1,ee??!1);return J?ae(J,Y,ee):null}},8834:(nt,Ae,v)=>{"use strict";v.d(Ae,{Hf:()=>te,JG:()=>ae,Jp:()=>le,NQ:()=>J,Nu:()=>ie,Ue:()=>X,Zr:()=>se,g8:()=>Y,hr:()=>de,q_:()=>oe,rN:()=>j,tc:()=>ue,xu:()=>ce,zq:()=>re});var ie,J,_e,D=v(97535),R=v(28347),G=v(84161),Z=v(28093),Q=v(993),$=v(4794),W=v(85072),B=v(90014),H=v(26242);function X(_e){return _e?[(0,B.Ue)(_e[0]),(0,B.Ue)(_e[1]),(0,B.Ue)(_e[2]),(0,B.Ue)(_e[3]),(0,B.Ue)(_e[4]),(0,B.Ue)(_e[5])]:[(0,B.Ue)(),(0,B.Ue)(),(0,B.Ue)(),(0,B.Ue)(),(0,B.Ue)(),(0,B.Ue)()]}function te(){return[(0,Z.c)(),(0,Z.c)(),(0,Z.c)(),(0,Z.c)(),(0,Z.c)(),(0,Z.c)(),(0,Z.c)(),(0,Z.c)()]}function ae(_e,Ee){for(let De=0;De=Ee[3])return!1}return!0}function se(_e,Ee){return ee(_e,(0,W.iL)(Ee,me.get()))}function re(_e,Ee){for(let De=0;De0)return!1;return!0}function ee(_e,Ee){for(let De=0;De{"use strict";v.d(Ae,{Dg:()=>W,Yr:()=>R,cD:()=>$,yB:()=>G});var D=v(94425);const R=Math.PI/180,G=/SPHEROID\[([^\]]+)]/i,Z=D.sv.radius,Q=D.sv.eccentricitySquared,$={a1:Z*Q,a2:Z*Q*Z*Q,a3:Z*Q*Q/2,a4:Z*Q*Z*Q*2.5,a5:Z*Q+Z*Q*Q/2,a6:1-Q},W={4267:{a:6378206.4,f:1/294.9786982},4269:{a:6378137,f:1/298.257222101},4326:{a:D.sv.radius,f:D.sv.flattening},104900:{a:2439700,f:0},104901:{a:6051e3,f:0},104902:{a:6051800,f:0},104903:{a:D.Z1.radius,f:D.Z1.flattening},104904:{a:3393400,f:1/192.0430107526882},104905:{a:D.yr.radius,f:D.yr.flattening},104906:{a:6200,f:0},104907:{a:11100,f:0},104908:{a:71492e3,f:.06487439154031222},104909:{a:8200,f:0},104910:{a:83500,f:0},104911:{a:1e4,f:0},104912:{a:2409300,f:0},104913:{a:15e3,f:0},104914:{a:4e4,f:0},104915:{a:1562090,f:0},104916:{a:2632345,f:0},104917:{a:85e3,f:0},104918:{a:1821460,f:0},104919:{a:5e3,f:0},104920:{a:12e3,f:0},104921:{a:3e4,f:3},104922:{a:18e3,f:0},104923:{a:14e3,f:0},104924:{a:49300,f:0},104925:{a:60268e3,f:1/10.2079945799458},104926:{a:16e3,f:0},104927:{a:9500,f:0},104928:{a:56e4,f:0},104929:{a:249400,f:0},104930:{a:59500,f:0},104931:{a:16e3,f:0},104932:{a:133e3,f:0},104933:{a:718e3,f:0},104934:{a:888e3,f:0},104935:{a:1986300,f:0},104936:{a:1e4,f:0},104937:{a:41900,f:0},104938:{a:11e4,f:0},104939:{a:50100,f:0},104940:{a:764e3,f:0},104941:{a:11e3,f:0},104942:{a:529800,f:0},104943:{a:2575e3,f:0},104944:{a:25559e3,f:1/43.61604095563141},104945:{a:578900,f:0},104946:{a:33e3,f:0},104947:{a:21e3,f:0},104948:{a:13e3,f:0},104949:{a:31e3,f:0},104950:{a:27e3,f:0},104951:{a:42e3,f:0},104952:{a:235800,f:0},104953:{a:761400,f:0},104954:{a:15e3,f:0},104955:{a:54e3,f:0},104956:{a:77e3,f:0},104957:{a:27e3,f:0},104958:{a:788900,f:0},104959:{a:584700,f:0},104960:{a:24764e3,f:.01708124697141011},104961:{a:74e3,f:0},104962:{a:79e3,f:0},104963:{a:104e3,f:.14423076923076922},104964:{a:29e3,f:0},104965:{a:17e4,f:0},104966:{a:208e3,f:0},104967:{a:4e4,f:0},104968:{a:1352600,f:0},104969:{a:1195e3,f:0},104970:{a:593e3,f:0},104971:{a:D.yr.radius,f:0},104972:{a:47e4,f:0},104973:{a:255e3,f:0},104974:{a:2439400,f:0}}},36947:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ku:()=>ae,Wt:()=>W,qC:()=>se}),v(8314);var H,Y,R=v(26584),G=v(62208),Z=v(79334),Q=v(38305);function W(Y,ee,ie){const J=ae(Y),ce=ee,ue=function B(Y,ee,ie){if(!X(Y)||!X(ee))return H.Unsupported;if(null==Y||null==ee)return H.Ok;if(!ie&&Y.heightUnit!==ee.heightUnit)return H.Units;if(Y.heightModel!==ee.heightModel)return H.HeightModel;switch(Y.heightModel){case"gravity-related-height":return H.Ok;case"ellipsoidal":return Y.vertCRS===ee.vertCRS?H.Ok:H.CRS;default:return H.Unsupported}}(J,ce,ie);if(J){const pe=Z.Z.deriveUnitFromSR(J,Y.spatialReference).heightUnit;if(!ie&&pe!==J.heightUnit){const he=new R.Z("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${pe})`,{horizontalUnit:pe});return new R.Z("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:J,error:he})}}if(!function te(Y){return"heightModelInfo"in Y&&null!=Y.heightModelInfo||null!=Y.spatialReference||!de(Y)}(Y)||ue===H.Unsupported)return new R.Z("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:J});switch(ue){case H.Units:{const pe=J?.heightUnit||"unknown",he=ce?.heightUnit||"unknown",me=new R.Z("layerview:incompatible-height-unit",`The vertical units of the layer (${pe}) must match the vertical units of the scene (${he})`,{layerUnit:pe,sceneUnit:he});return new R.Z("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:J,sceneHeightModelInfo:ce,error:me})}case H.HeightModel:{const pe=J?.heightModel||"unknown",he=ce?.heightModel||"unknown",me=new R.Z("layerview:incompatible-height-model",`The height model of the layer (${pe}) must match the height model of the scene (${he})`,{layerHeightModel:pe,sceneHeightModel:he});return new R.Z("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:J,sceneHeightModelInfo:ce,error:me})}case H.CRS:{const pe=J?.vertCRS||"unknown",he=ce?.vertCRS||"unknown",me=new R.Z("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${pe}) must match the vertical datum of the scene (${he})`,{layerDatum:pe,sceneDatum:he});return new R.Z("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:J,sceneHeightModelInfo:ce,error:me})}}return null}function X(Y){return null==Y||null!=Y.heightModel&&null!=Y.heightUnit}function ae(Y){const ee=Y.url?(0,Q.Qc)(Y.url):void 0;return null==Y.spatialReference?.vcsWkid&&(0,G.pC)(ee)&&"ImageServer"===ee.serverType||!oe(Y)||!Y.heightModelInfo?de(Y)?Z.Z.deriveUnitFromSR(j,Y.spatialReference):null:Y.heightModelInfo}function oe(Y){return"heightModelInfo"in Y}function le(Y){if("unknown"===Y.type||!("capabilities"in Y))return!1;switch(Y.type){case"csv":case"feature":case"geojson":case"subtype-group":case"ogc-feature":case"oriented-imagery":case"wfs":return!0;default:return!1}}function de(Y){return le(Y)?!!(Y.capabilities&&Y.capabilities.data&&Y.capabilities.data.supportsZ):re(Y)}function se(Y){return null!=Y.layers||re(Y)||le(Y)||oe(Y)}function re(Y){switch(Y.type){case"building-scene":case"elevation":case"integrated-mesh":case"point-cloud":case"scene":case"voxel":return!0;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"csv":case"dimension":case"geojson":case"feature":case"subtype-group":case"geo-rss":case"graphics":case"group":case"imagery":case"imagery-tile":case"kml":case"line-of-sight":case"map-image":case"map-notes":case"media":case"ogc-feature":case"open-street-map":case"oriented-imagery":case"route":case"stream":case"tile":case"unknown":case"unsupported":case"vector-tile":case"wcs":case"web-tile":case"wfs":case"wms":case"wmts":case null:return!1}return!1}(Y=H||(H={}))[Y.Ok=0]="Ok",Y[Y.Units=1]="Units",Y[Y.HeightModel=2]="HeightModel",Y[Y.CRS=3]="CRS",Y[Y.Unsupported=4]="Unsupported";const j=new Z.Z({heightModel:"gravity-related-height"})},11519:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ff:()=>de,IY:()=>j,UT:()=>re,h_:()=>G});var D=v(33190);function R(Y,ee){return(0,D.aV)(Y,ee)}function G(Y,ee){let J,ce,ue;if(Y.xmin<=ee.xmin){if(J=ee.xmin,Y.xmax=0&&We<=1&&Ce>=0&&Ce<=1&&(ce&&(ce[0]=ue+We*(he-ue),ce[1]=pe+We*(me-pe)),!0)}function j(Y){switch(Y){case"esriGeometryEnvelope":case"extent":return G;case"esriGeometryMultipoint":case"multipoint":return Z;case"esriGeometryPoint":case"point":return R;case"esriGeometryPolygon":case"polygon":return te;case"esriGeometryPolyline":case"polyline":return oe}}},91179:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ji:()=>de,YX:()=>B,aW:()=>H,im:()=>le,l9:()=>te,oU:()=>ae,q9:()=>re,wp:()=>X});var D=v(62208),R=v(2004),G=v(21674),Z=v(72854),Q=v(72642),$=v(37118),W=v(55214);function B(j){return void 0!==j.xmin&&void 0!==j.ymin&&void 0!==j.xmax&&void 0!==j.ymax}function H(j){return void 0!==j.points}function X(j){return void 0!==j.x&&void 0!==j.y}function te(j){return void 0!==j.paths}function ae(j){return void 0!==j.rings}function le(j){return(0,D.Wi)(j)?null:j instanceof G.Z?j:X(j)?Q.Z.fromJSON(j):te(j)?W.Z.fromJSON(j):ae(j)?$.Z.fromJSON(j):H(j)?Z.Z.fromJSON(j):B(j)?R.Z.fromJSON(j):null}function de(j){return j?X(j)?"esriGeometryPoint":te(j)?"esriGeometryPolyline":ae(j)?"esriGeometryPolygon":B(j)?"esriGeometryEnvelope":H(j)?"esriGeometryMultipoint":null:null}const se={esriGeometryPoint:Q.Z,esriGeometryPolyline:W.Z,esriGeometryPolygon:$.Z,esriGeometryEnvelope:R.Z,esriGeometryMultipoint:Z.Z};function re(j){return j&&se[j]||null}},13777:(nt,Ae,v)=>{"use strict";v.d(Ae,{AR:()=>re,Gr:()=>se,JG:()=>B,Jk:()=>te,KU:()=>le,Ue:()=>$,al:()=>H,ct:()=>de,nF:()=>oe,zk:()=>X});var D=v(21286),R=v(97535),G=v(84161),Z=v(28093),Q=v(26242);function $(J){return J?{origin:(0,Z.a)(J.origin),vector:(0,Z.a)(J.vector)}:{origin:(0,Z.c)(),vector:(0,Z.c)()}}function B(J,ce=$()){return H(J.origin,J.vector,ce)}function H(J,ce,ue=$()){return(0,G.c)(ue.origin,J),(0,G.c)(ue.vector,ce),ue}function X(J,ce,ue=$()){return(0,G.c)(ue.origin,J),(0,G.b)(ue.vector,ce,J),ue}function te(J,ce){const ue=(0,G.b)(Q.WM.get(),ce,J.origin),pe=(0,G.e)(J.vector,ue),he=(0,G.e)(J.vector,J.vector),me=(0,D.uZ)(pe/he,0,1),ge=(0,G.b)(Q.WM.get(),(0,G.g)(Q.WM.get(),J.vector,me),ue);return(0,G.e)(ge,ge)}function oe(J,ce,ue){return de(J,ce,0,1,ue)}function le(J,ce,ue){return(0,G.a)(ue,J.origin,(0,G.g)(ue,J.vector,ce))}function de(J,ce,ue,pe,he){const{vector:me,origin:ge}=J,_e=(0,G.b)(Q.WM.get(),ce,ge),Ee=(0,G.e)(me,_e)/(0,G.p)(me);return(0,G.g)(he,me,(0,D.uZ)(Ee,ue,pe)),(0,G.a)(he,he,J.origin)}function se(J,ce){if(Y(J,function W(J,ce){const ue=ie.get();return ue.origin=J,ue.vector=ce,ue}(ce.origin,ce.direction),!1,ee)){const{tA:ue,pB:pe,distance2:he}=ee;if(ue>=0&&ue<=1)return he;if(ue<0)return(0,G.d)(J.origin,pe);if(ue>1)return(0,G.d)((0,G.a)(Q.WM.get(),J.origin,J.vector),pe)}return null}function re(J,ce,ue){return!!Y(J,ce,!0,ee)&&((0,G.c)(ue,ee.pA),!0)}function Y(J,ce,ue,pe){const me=J.origin,ge=(0,G.a)(Q.WM.get(),me,J.vector),_e=ce.origin,Ee=(0,G.a)(Q.WM.get(),_e,ce.vector),De=Q.WM.get(),be=Q.WM.get();if(De[0]=me[0]-_e[0],De[1]=me[1]-_e[1],De[2]=me[2]-_e[2],be[0]=Ee[0]-_e[0],be[1]=Ee[1]-_e[1],be[2]=Ee[2]-_e[2],Math.abs(be[0])<1e-6&&Math.abs(be[1])<1e-6&&Math.abs(be[2])<1e-6)return!1;const Se=Q.WM.get();if(Se[0]=ge[0]-me[0],Se[1]=ge[1]-me[1],Se[2]=ge[2]-me[2],Math.abs(Se[0])<1e-6&&Math.abs(Se[1])<1e-6&&Math.abs(Se[2])<1e-6)return!1;const ye=De[0]*be[0]+De[1]*be[1]+De[2]*be[2],ve=be[0]*Se[0]+be[1]*Se[1]+be[2]*Se[2],xe=De[0]*Se[0]+De[1]*Se[1]+De[2]*Se[2],ze=be[0]*be[0]+be[1]*be[1]+be[2]*be[2],Ke=(Se[0]*Se[0]+Se[1]*Se[1]+Se[2]*Se[2])*ze-ve*ve;if(Math.abs(Ke)<1e-6)return!1;let We=(ye*ve-xe*ze)/Ke,Ce=(ye+ve*We)/ze;ue&&(We=(0,D.uZ)(We,0,1),Ce=(0,D.uZ)(Ce,0,1));const Be=Q.WM.get(),Fe=Q.WM.get();return Be[0]=me[0]+We*Se[0],Be[1]=me[1]+We*Se[1],Be[2]=me[2]+We*Se[2],Fe[0]=_e[0]+Ce*be[0],Fe[1]=_e[1]+Ce*be[1],Fe[2]=_e[2]+Ce*be[2],pe.tA=We,pe.tB=Ce,pe.pA=Be,pe.pB=Fe,pe.distance2=(0,G.d)(Be,Fe),!0}const ee={tA:0,tB:0,pA:(0,Z.c)(),pB:(0,Z.c)(),distance2:0},ie=new R.x(()=>$())},13757:(nt,Ae,v)=>{"use strict";v.d(Ae,{d:()=>R});var D=v(21286);function R(W,B,H){const X=W.byteLength/(4*B),te=new Uint32Array(W,0,X*B);let ae=new Uint32Array(X);const oe=H?.minReduction??0,le=H?.originalIndices||null,de=le?le.length:0,se=H?.componentOffsets||null;let re=0;if(se)for(let ge=0;gere&&(re=_e)}else re=X;const j=Math.floor(1.1*re)+1;(null==$||$.length<2*j)&&($=new Uint32Array((0,D.Sf)(2*j)));for(let ge=0;ge<2*j;ge++)$[ge]=0;let Y=0;const ee=!!se&&!!le,ie=ee?de:X,J=ee?new Uint32Array(de):null;let ue=0!==oe?Math.ceil(7.84*1.96/(oe*oe)*oe*(1-oe)):ie,pe=1,he=se?se[1]:ie;for(let ge=0;ge=j&&(be-=j)}Se===Y&&($[2*be]=De,$[2*be+1]=_e+1,Y++),ae[_e]=Se}if(0!==oe&&1-Y/X>>2)|0;return X>>>0}let $=null},65231:(nt,Ae,v)=>{"use strict";v.d(Ae,{Iz:()=>de,M2:()=>ce,To:()=>j,VS:()=>ie,XO:()=>re,Yk:()=>se,w9:()=>ee,wi:()=>J,zZ:()=>Y});var D=v(63290),R=v(62208),G=v(30217),Z=v(550),Q=v(43703),$=v(84161),W=v(28093),B=v(55915),H=v(12080),X=v(37053),te=v(46367),ae=v(60479),oe=v(79800);const le=D.Z.getLogger("esri.geometry.support.meshUtils.normalProjection");function de(Se,ye,ve,xe,ze){return pe(xe)?(ue(ge.TO_PCPF,ae.ct.fromTypedArray(Se),ae.fP.fromTypedArray(ye),ae.fP.fromTypedArray(ve),xe,ae.ct.fromTypedArray(ze)),ze):(le.error("Cannot convert spatial reference to PCPF"),ze)}function se(Se,ye,ve,xe,ze){return pe(xe)?(ue(ge.FROM_PCPF,ae.ct.fromTypedArray(Se),ae.fP.fromTypedArray(ye),ae.fP.fromTypedArray(ve),xe,ae.ct.fromTypedArray(ze)),ze):(le.error("Cannot convert to spatial reference from PCPF"),ze)}function re(Se,ye,ve){return(0,B.CM)(Se,ye,0,ve,(0,H.rS)(ye),0,Se.length/3),ve}function j(Se,ye,ve){return(0,B.CM)(Se,(0,H.rS)(ve),0,ye,ve,0,Se.length/3),ye}function Y(Se,ye,ve){if((0,R.Wi)(Se))return ye;const xe=ae.fP.fromTypedArray(Se),ze=ae.fP.fromTypedArray(ye);return(0,oe.t)(ze,xe,ve),ye}function ee(Se,ye,ve){if((0,R.Wi)(Se))return ye;(0,G.b)(be,ve);const xe=ae.ct.fromTypedArray(Se),ze=ae.ct.fromTypedArray(ye);return(0,oe.a)(ze,xe,be),(0,G.i)(be)||(0,oe.n)(ze,ze),ye}function ie(Se,ye,ve){if((0,R.Wi)(Se))return ye;(0,G.b)(be,ve);const xe=ae.ct.fromTypedArray(Se,4*Float32Array.BYTES_PER_ELEMENT),ze=ae.ct.fromTypedArray(ye,4*Float32Array.BYTES_PER_ELEMENT);if((0,oe.a)(ze,xe,be),(0,G.i)(be)||(0,oe.n)(ze,ze),Se!==ye)for(let Ke=3;Ke{"use strict";v.d(Ae,{aX:()=>Ee});var D=v(15861),R=v(59318),G=v(26584),Z=v(63290),Q=v(62208),$=v(37118),W=v(55214),B=v(74618),H=v(37053),X=v(46367),ae=(v(29132),v(84792)),oe=v(91179),le=v(2618);function de(ye,ve,xe,ze){return se.apply(this,arguments)}function se(){return(se=(0,D.Z)(function*(ye,ve,xe,ze){const Ke=(0,le.en)(ye),We=ve[0].spatialReference,Ce={...ze,query:{...Ke.query,f:"json",sr:JSON.stringify(We),target:JSON.stringify({geometryType:(0,oe.Ji)(ve[0]),geometries:ve}),cutter:JSON.stringify(xe)}},Be=yield(0,ae.default)(Ke.path+"/cut",Ce),{cutIndexes:Fe,geometries:je=[]}=Be.data;return{cutIndexes:Fe,geometries:je.map(Re=>{const He=(0,oe.im)(Re);return He.spatialReference=We,He})}})).apply(this,arguments)}var re=v(21726),j=v(10920);function Y(ye,ve,xe){return ee.apply(this,arguments)}function ee(){return(ee=(0,D.Z)(function*(ye,ve,xe){const ze="string"==typeof ye?(0,re.mN)(ye):ye,Ke=ve[0].spatialReference,We=(0,oe.Ji)(ve[0]),Ce={...xe,query:{...ze.query,f:"json",sr:Ke.wkid?Ke.wkid:JSON.stringify(Ke),geometries:JSON.stringify((0,j.F)(ve))}},{data:Be}=yield(0,ae.default)(ze.path+"/simplify",Ce);return(0,j.o)(Be.geometries,We,Ke)})).apply(this,arguments)}const ie=Z.Z.getLogger("esri.geometry.support.normalizeUtils");function ce(ye){return"polygon"===ye[0].type}function ue(ye){return"polyline"===ye[0].type}function me(ye,ve,xe){if(ve){const ze=function he(ye,ve){if(!(ye instanceof W.Z||ye instanceof $.Z)){const Ke="straightLineDensify: the input geometry is neither polyline nor polygon";throw ie.error(Ke),new G.Z(Ke)}const xe=(0,B.x3)(ye),ze=[];for(const Ke of xe){const We=[];ze.push(We),We.push([Ke[0][0],Ke[0][1]]);for(let Ce=0;Ce1){for(let Xe=1;Xe<=Pe-1;Xe++){const Ye=Xe*ve;We.push([Ge*Ye+Be,Ie*Ye+Fe])}const Le=(He+Math.floor(Pe-1)*ve)/2;We.push([Ge*Le+Be,Ie*Le+Fe])}We.push([je,Re])}}return function J(ye){return"polygon"===ye.type}(ye)?new $.Z({rings:ze,spatialReference:ye.spatialReference}):new W.Z({paths:ze,spatialReference:ye.spatialReference})}(ye,1e6);ye=(0,X.Sx)(ze,!0)}return xe&&(ye=(0,B.Sy)(ye,xe)),ye}function ge(ye,ve,xe){if(Array.isArray(ye)){const ze=ye[0];if(ze>ve){const Ke=(0,B.XZ)(ze,ve);ye[0]=ze+Ke*(-2*ve)}else if(zeve){const Ke=(0,B.XZ)(ze,ve);ye=ye.clone().offset(Ke*(-2*ve),0)}else if(ze{if(je[0]<180)return!0;{let Re=0;for(let Ie=0;IeRe?Ge:Re}Re=Number(Re.toFixed(9));const He=-360*(0,B.XZ)(Re,180);for(let Ie=0;Iege(tt,Be,Fe)),Pe.push(rt)}else if("extent"===Je.type){const rt=Je.clone()._normalize(!1,!1,We);Pe.push(rt.rings?new $.Z(rt):rt)}else if(Je.extent){const rt=Je.extent,tt=(0,B.XZ)(rt.xmin,Fe)*(2*Be);let et=0===tt?Je.clone():(0,B.Sy)(Je.clone(),tt);rt.offset(tt,0),rt.intersects(Re)&&rt.xmax!==Be?(Ie=rt.xmax>Ie?rt.xmax:Ie,et=me(et,Ce),Ge.push(et),Pe.push("cut")):rt.intersects(He)&&rt.xmin!==Fe?(Ie=rt.xmax*(2*Be)>Ie?rt.xmax*(2*Be):Ie,et=me(et,Ce,360),Ge.push(et),Pe.push("cut")):Pe.push(et)}else Pe.push(Je.clone());else Pe.push(Je);let Le=(0,B.XZ)(Ie,Be),Me=-90;const Ne=Le,Xe=new W.Z;for(;Le>0;){const Je=360*Le-180;Xe.addPath([[Je,Me],[Je,-1*Me]]),Me*=-1,Le--}if(Ge.length>0&&Ne>0){const Je=_e(Ge,yield de(ze,Ge,Xe,xe)),rt=[],tt=[];for(let ot=0;ot1&&_t.rings.length>=Ct.rings.length?(rt.push(_t),tt.push("simplify")):tt.push(Ce?(0,X.$)(_t):_t)}}if(!rt.length)return tt;const et=yield Y(ze,rt,xe),qe=[];for(let ot=0;ot{"use strict";v.d(Ae,{Sy:()=>$,UZ:()=>Z,XZ:()=>Q,x3:()=>W});var D=v(55214),R=v(65234),G=v(91179);const Z={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new D.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:R.Z.WebMercator}),minus180Line:new D.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:R.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new D.Z({paths:[[[180,-180],[180,180]]],spatialReference:R.Z.WGS84}),minus180Line:new D.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:R.Z.WGS84})}};function Q(B,H){return Math.ceil((B-H)/(2*H))}function $(B,H){const X=W(B);for(const te of X)for(const ae of te)ae[0]+=H;return B}function W(B){return(0,G.oU)(B)?B.rings:B.paths}},90014:(nt,Ae,v)=>{"use strict";v.d(Ae,{$I:()=>re,Ac:()=>Se,BR:()=>ge,Er:()=>xe,JG:()=>te,Oy:()=>oe,T5:()=>ue,Ue:()=>H,Yq:()=>le,_l:()=>We,al:()=>ae,dZ:()=>Ee,fn:()=>me,jH:()=>Be,mJ:()=>je,my:()=>he,nF:()=>ze,oq:()=>ve,re:()=>X,rx:()=>_e,tk:()=>pe,zk:()=>de});var D=v(21286),R=v(62208),G=v(84161),Z=v(28093),W=(v(97126),v(34054),v(26242));function H(Pe=Re){return[Pe[0],Pe[1],Pe[2],Pe[3]]}function X(Pe=Re[0],Le=Re[1],Me=Re[2],Ne=Re[3]){return ae(Pe,Le,Me,Ne,W.o6.get())}function te(Pe,Le){return ae(Le[0],Le[1],Le[2],Le[3],Pe)}function ae(Pe,Le,Me,Ne,Xe=H()){return Xe[0]=Pe,Xe[1]=Le,Xe[2]=Me,Xe[3]=Ne,Xe}function oe(Pe,Le,Me){return(0,G.c)(Me,Pe),Me[3]=Le,Me}function le(Pe,Le,Me){const Ne=Le[0]*Le[0]+Le[1]*Le[1]+Le[2]*Le[2],Xe=Math.abs(Ne-1)>1e-5&&Ne>1e-12?1/Math.sqrt(Ne):1;return Me[0]=Le[0]*Xe,Me[1]=Le[1]*Xe,Me[2]=Le[2]*Xe,Me[3]=-(Me[0]*Pe[0]+Me[1]*Pe[1]+Me[2]*Pe[2]),Me}function de(Pe,Le,Me,Ne=H()){const Xe=Me[0]-Le[0],Ye=Me[1]-Le[1],Je=Me[2]-Le[2],rt=Pe[0]-Le[0],tt=Pe[1]-Le[1],et=Pe[2]-Le[2],qe=Ye*et-Je*tt,ot=Je*rt-Xe*et,ut=Xe*tt-Ye*rt,_t=qe*qe+ot*ot+ut*ut,Ct=Math.abs(_t-1)>1e-5&&_t>1e-12?1/Math.sqrt(_t):1;return Ne[0]=qe*Ct,Ne[1]=ot*Ct,Ne[2]=ut*Ct,Ne[3]=-(Ne[0]*Pe[0]+Ne[1]*Pe[1]+Ne[2]*Pe[2]),Ne}function re(Pe,Le,Me,Ne,Xe){if(Pe.count<3)return!1;Pe.getVec(Me,Y);let Ye=Ne,Je=!1;for(;Ye=0}function ve(Pe,Le){const Me=(0,G.e)(Pe,Le.ray.direction),Ne=-Be(Pe,Le.ray.origin);if(Ne<0&&Me>=0)return!1;if(Me>-1e-6&&Me<1e-6)return Ne>0;if((Ne<0||Me<0)&&!(Ne<0&&Me<0))return!0;const Xe=Ne/Me;return Me>0?XeLe.c0&&(Le.c0=Xe),Le.c0<=Le.c1}function xe(Pe,Le){const Me=(0,G.e)(Pe,Le.ray.direction),Ne=-Be(Pe,Le.ray.origin);if(Me>-1e-6&&Me<1e-6)return Ne>0;const Xe=Ne/Me;return Me>0?XeLe.c0&&(Le.c0=Xe),Le.c0<=Le.c1}function ze(Pe,Le,Me){const Ne=(0,G.g)(W.WM.get(),Pe,-Pe[3]),Xe=We(Pe,(0,G.b)(W.WM.get(),Le,Ne),W.WM.get());return(0,G.a)(Me,Xe,Ne),Me}function We(Pe,Le,Me){const Ne=(0,G.g)(W.WM.get(),Pe,(0,G.e)(Pe,Le));return(0,G.b)(Me,Le,Ne),Me}function Be(Pe,Le){return(0,G.e)(Pe,Le)+Pe[3]}function Fe(Pe,Le,Me,Ne,Xe){const Ye=(0,G.e)(Pe,Me);if(0===Ye)return!1;let Je=-((0,G.e)(Pe,Le)+Pe[3])/Ye;return Ne&He.CLAMP&&(Je=(0,D.uZ)(Je,0,1)),!(!(Ne&He.INFINITE_MIN)&&Je<0||!(Ne&He.INFINITE_MAX)&&Je>1||((0,G.a)(Xe,Le,(0,G.g)(Xe,Me,Je)),0))}function je(Pe){return Pe}const Re=[0,0,1,0];var He,Pe;(Pe=He||(He={}))[Pe.NONE=0]="NONE",Pe[Pe.CLAMP=1]="CLAMP",Pe[Pe.INFINITE_MIN=4]="INFINITE_MIN",Pe[Pe.INFINITE_MAX=8]="INFINITE_MAX";const Ie=He.INFINITE_MIN|He.INFINITE_MAX,Ge=He.INFINITE_MAX},7848:(nt,Ae,v)=>{"use strict";v.d(Ae,{G6:()=>We,Ie:()=>Ke,J9:()=>xe,RF:()=>De,U1:()=>ze,vY:()=>W});var D=v(62208);v(91179);const Z=(Ce,Be,Fe)=>[Be,Fe],Q=(Ce,Be,Fe)=>[Be,Fe,Ce[2]],$=(Ce,Be,Fe)=>[Be,Fe,Ce[2],Ce[3]];function W(Ce){return Ce?{originPosition:"upper-left"===Ce.originPosition?"upperLeft":"lower-left"===Ce.originPosition?"lowerLeft":Ce.originPosition,scale:Ce.tolerance?[Ce.tolerance,Ce.tolerance]:[1,1],translate:(0,D.pC)(Ce.extent)?[Ce.extent.xmin,Ce.extent.ymax]:[0,0]}:null}function se({scale:Ce,translate:Be},Fe){return Fe*Ce[0]+Be[0]}function re({scale:Ce,translate:Be},Fe){return Be[1]-Fe*Ce[1]}function j(Ce,Be,Fe){const je=new Array(Fe.length);if(!Fe.length)return je;const[Re,He]=Ce.scale;let Ie=se(Ce,Fe[0][0]),Ge=re(Ce,Fe[0][1]);je[0]=Be(Fe[0],Ie,Ge);for(let Pe=1;Pe{"use strict";v.d(Ae,{JG:()=>X,JI:()=>de,Jk:()=>oe,Ue:()=>$,al:()=>ae,fS:()=>B,re:()=>H,zk:()=>te});var D=v(85931),R=v(97535),G=v(84161),Z=v(28093),Q=v(26242);function $(re){return re?W((0,Z.a)(re.origin),(0,Z.a)(re.direction)):W((0,Z.c)(),(0,Z.c)())}function W(re,j){return{origin:re,direction:j}}function B(re,j){return(0,D.fS)(re.origin,j.origin)&&(0,D.fS)(re.direction,j.direction)}function H(re,j){const Y=se.get();return Y.origin=re,Y.direction=j,Y}function X(re,j=$()){return ae(re.origin,re.direction,j)}function te(re,j,Y=$()){return(0,G.c)(Y.origin,re),(0,G.b)(Y.direction,j,re),Y}function ae(re,j,Y=$()){return(0,G.c)(Y.origin,re),(0,G.c)(Y.direction,j),Y}function oe(re,j){const Y=(0,G.f)(Q.WM.get(),(0,G.n)(Q.WM.get(),re.direction),(0,G.b)(Q.WM.get(),j,re.origin));return(0,G.e)(Y,Y)}function de(re,j,Y){const ee=(0,G.e)(re.direction,(0,G.b)(Y,j,re.origin));return(0,G.a)(Y,re.origin,(0,G.g)(Y,re.direction,ee)),Y}const se=new R.x(()=>$())},83137:(nt,Ae,v)=>{"use strict";v.d(Ae,{DE:()=>Q,dp:()=>Z,yZ:()=>G});var D=v(16730);function G(B,H){const X=H||B.extent,te=B.width,ae=(0,D.c9)(X&&X.spatialReference);return X&&te?X.width/te*ae*D.hd*96:0}function Z(B,H){return B/((0,D.c9)(H)*D.hd*96)}function Q(B){return B/(96*D.hd)}},37053:(nt,Ae,v)=>{"use strict";v.d(Ae,{BZ:()=>ee,C5:()=>ae,JY:()=>ue,ME:()=>ie,MP:()=>ce,N$:()=>le,QM:()=>j,R_:()=>he,V2:()=>J,WR:()=>me,Zn:()=>pe,fS:()=>te,o$:()=>Y,oR:()=>de,sS:()=>re,sT:()=>oe,yW:()=>se});var D=v(62208),R=v(77275),G=v(6178),Z=v(84029);const Q={102113:!0,102100:!0,3857:!0,3785:!0},$={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},W='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',B=[-20037508.342788905,20037508.342788905],H=[-20037508.342787,20037508.342787],X={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:B,origin:H,dx:1e-5},102100:{wkTemplate:W,valid:B,origin:H,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:B,origin:H,dx:1e-5},3857:{wkTemplate:W,valid:B,origin:H,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function te(ge,_e){return ge===_e||!(0,D.Wi)(ge)&&!(0,D.Wi)(_e)&&(null!=ge.wkid||null!=_e.wkid?ge.wkid===_e.wkid||re(ge)&&re(_e)||null!=_e.latestWkid&&ge.wkid===_e.latestWkid||null!=ge.latestWkid&&_e.wkid===ge.latestWkid:!(!ge.wkt||!_e.wkt)&&ge.wkt.toUpperCase()===_e.wkt.toUpperCase())}function ae(ge){return ue(ge)&&ge.wkid&&X[ge.wkid]||null}function oe(ge){return!!ue(ge)&&(ge.wkid?null==Z.Z[ge.wkid]:!!ge.wkt&&!!/^\s*GEOGCS/i.test(ge.wkt))}function le(ge){return!(ee(ge)||J(ge))}function de(ge){return ue(ge)&&4326===ge.wkid}function se(ge){return ue(ge)&&ge.wkid===G.W.CGCS2000}function re(ge){return ue(ge)&&null!=ge.wkid&&!0===Q[ge.wkid]}function j(ge){return ue(ge)&&32662===ge.wkid}function Y(ge){return ge===G.W.GCSMARS2000||ge===G.W.GCSMARS2000_SPHERE}function ee(ge){return ue(ge)&&null!=ge.wkid&&Y(ge.wkid)}function ie(ge){return ge===G.W.GCSMOON2000}function J(ge){return ue(ge)&&null!=ge.wkid&&ie(ge.wkid)}function ce(ge){return ue(ge)&&null!=ge.wkid&&!0===$[ge.wkid]}function ue(ge){return(0,D.pC)(ge)&&(null!=ge.wkid&&ge.wkid>=2e3||null!=ge.wkt)}const pe={wkid:4326,wkt:(0,R.gx)(X[4326].wkTemplate,{Central_Meridian:"0.0"})},he={wkid:102100,latestWkid:3857},me={wkid:32662}},11544:(nt,Ae,v)=>{"use strict";v.d(Ae,{bE:()=>le,wu:()=>ae});var D=v(97535),R=v(84161),G=v(28093),Z=v(13777);function ae(Y,ee,ie){return.5*Math.abs((ee[0]-Y[0])*(ie[1]-Y[1])-(ee[1]-Y[1])*(ie[0]-Y[0]))}function le(Y,ee,ie){return(0,R.b)(re,ee,Y),(0,R.b)(j,ie,Y),(0,R.l)((0,R.f)(re,re,j))/2}v(26242),new D.x(Z.Ue),new D.x(()=>function $(Y){return Y?{p0:(0,G.a)(Y.p0),p1:(0,G.a)(Y.p1),p2:(0,G.a)(Y.p2)}:{p0:(0,G.c)(),p1:(0,G.c)(),p2:(0,G.c)()}}());const re=(0,G.c)(),j=(0,G.c)()},85334:(nt,Ae,v)=>{"use strict";v.d(Ae,{Mk:()=>$,ZI:()=>H,bT:()=>Z});var H,X,D=v(11915),R=v(25748),G=v(13757);function Z(X){const te=$(X.rings,X.hasZ,H.CCW_IS_HOLE),ae=new Array;let oe=0,le=0;for(const re of te.polygons){const Y=re.index,ee=new Float64Array(te.position.buffer,3*Y*te.position.BYTES_PER_ELEMENT,3*re.count),ie=re.holeIndices.map(ce=>ce-Y),J=new Uint32Array((0,D.e)(ee,ie,3));ae.push({position:ee,faces:J}),oe+=ee.length,le+=J.length}const de=function Q(X,te,ae){if(1===X.length)return X[0];const oe=new Float64Array(te),le=new Uint32Array(ae);let de=0,se=0,re=0;for(const j of X){for(let Y=0;Y=0;ce--){const ue=X[ce],pe=ae===H.CCW_IS_HOLE&&B(ue);if(pe&&1!==oe)le[re++]=ue;else{let he=ue.length;for(let ge=0;ge0&&(se[Y++]={index:J,count:ue.length}),J=pe?W(ue,ue.length-1,-1,ie,J,ue.length,te):W(ue,0,1,ie,J,ue.length,te);for(let ge=0;ge0&&(se[Y++]={index:J,count:_e.length}),J=W(_e,0,1,ie,J,_e.length,te)}re=0,me.count>0&&(de[j++]=me)}}for(let ce=0;ce0&&(se[Y++]={index:J,count:ue.length}),J=W(ue,0,1,ie,J,ue.length,te)}return de.length=j,se.length=Y,{position:ie,polygons:de,outlines:se}}function W(X,te,ae,oe,le,de,se){le*=3;for(let re=0;re{"use strict";v.d(Ae,{Mk:()=>G,P$:()=>Z});var D=v(2076);const G=(0,D.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),Z=(0,D.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},34054:(nt,Ae,v)=>{"use strict";v.d(Ae,{EU:()=>$,SR:()=>Q,cp:()=>W});var D=v(21286),R=v(84161),G=v(28093);function Q(X,te){return(0,R.e)(X,te)/(0,R.l)(X)}function $(X,te){const ae=(0,R.e)(X,te)/((0,R.l)(X)*(0,R.l)(te));return-(0,D.ZF)(ae)}function W(X,te,ae){(0,R.n)(B,X),(0,R.n)(H,te);const oe=(0,R.e)(B,H),le=(0,D.ZF)(oe),de=(0,R.f)(B,B,H);return(0,R.e)(de,ae)<0?2*Math.PI-le:le}const B=(0,G.c)(),H=(0,G.c)()},26242:(nt,Ae,v)=>{"use strict";v.d(Ae,{MP:()=>de,vD:()=>se,qW:()=>te,WM:()=>ae,o6:()=>oe});var D=v(27306),R=v(79682),G=v(550),Z=v(43703),Q=v(78451),$=v(99770),W=v(28093),B=v(4794);class H{constructor(j,Y,ee){this._itemByteSize=j,this._itemCreate=Y,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(ee/this._itemByteSize)}get(){0===this._itemsPtr&&(0,R.Y)(()=>this._reset());const j=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=j;){const Y=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let ee=0;eej;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(j=X){return new H(16,$.c,j)}static createVec3f64(j=X){return new H(24,W.b,j)}static createVec4f64(j=X){return new H(32,B.a,j)}static createMat3f64(j=X){return new H(72,G.a,j)}static createMat4f64(j=X){return new H(128,Z.a,j)}static createQuatf64(j=X){return new H(32,Q.c,j)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const X=4*D.Y8.KILOBYTES,te=H.createVec2f64(),ae=H.createVec3f64(),oe=H.createVec4f64(),de=(H.createMat3f64(),H.createMat4f64()),se=H.createQuatf64()},46367:(nt,Ae,v)=>{"use strict";v.d(Ae,{$:()=>Y,Q8:()=>de,R6:()=>j,Sx:()=>ee,hG:()=>re,iV:()=>se,mZ:()=>te,tp:()=>X});var D=v(58817),R=v(62208),G=v(65234),Z=v(94425),Q=v(37053);function B(ie){return 57.29577951308232*ie}function H(ie){return.017453292519943*ie}function X(ie){return ie/Z.sv.radius}function te(ie){return Math.PI/2-2*Math.atan(Math.exp(-ie/Z.sv.radius))}function ae(ie){return null!=ie.wkid||null!=ie.wkt}const oe=[0,0];function le(ie,J,ce,ue,pe){const he=ie,me=pe;if(me.spatialReference=ce,"x"in he&&"x"in me)[me.x,me.y]=J(he.x,he.y,oe,ue);else if("xmin"in he&&"xmin"in me)[me.xmin,me.ymin]=J(he.xmin,he.ymin,oe,ue),[me.xmax,me.ymax]=J(he.xmax,he.ymax,oe,ue);else if("paths"in he&&"paths"in me||"rings"in he&&"rings"in me){const ge="paths"in he?he.paths:he.rings,_e=[];let Ee;for(let De=0;De2&&Ee[Se].push(be[Se][2]),be[Se].length>3&&Ee[Se].push(be[Se][3])}"paths"in me?me.paths=_e:me.rings=_e}else if("points"in he&&"points"in me){const ge=he.points,_e=[];for(let Ee=0;Ee2&&_e[Ee].push(ge[Ee][2]),ge[Ee].length>3&&_e[Ee].push(ge[Ee][3]);me.points=_e}return pe}function de(ie,J){const ce=ie&&(ae(ie)?ie:ie.spatialReference),ue=J&&(ae(J)?J:J.spatialReference);return!(ie&&"type"in ie&&"mesh"===ie.type||J&&"type"in J&&"mesh"===J.type||!ce||!ue)&&(!!(0,Q.fS)(ue,ce)||(0,Q.sS)(ue)&&(0,Q.oR)(ce)||(0,Q.sS)(ce)&&(0,Q.oR)(ue))}function se(ie,J){if((0,R.Wi)(ie))return null;const ce=ie.spatialReference,ue=J&&(ae(J)?J:J.spatialReference);return de(ce,ue)?(0,Q.fS)(ce,ue)?(0,D.d9)(ie):(0,Q.sS)(ue)?le(ie,re,G.Z.WebMercator,!1,(0,D.d9)(ie)):(0,Q.oR)(ue)?le(ie,j,G.Z.WGS84,!1,(0,D.d9)(ie)):null:null}function re(ie,J,ce=[0,0]){J>89.99999?J=89.99999:J<-89.99999&&(J=-89.99999);const ue=H(J);return ce[0]=H(ie)*Z.sv.radius,ce[1]=Z.sv.halfSemiMajorAxis*Math.log((1+Math.sin(ue))/(1-Math.sin(ue))),ce}function j(ie,J,ce=[0,0],ue=!1){const pe=B(ie/Z.sv.radius);return ce[0]=ue?pe:pe-360*Math.floor((pe+180)/360),ce[1]=B(Math.PI/2-2*Math.atan(Math.exp(-J/Z.sv.radius))),ce}function Y(ie,J=!1,ce=(0,D.d9)(ie)){return le(ie,re,G.Z.WebMercator,J,ce)}function ee(ie,J=!1,ce=(0,D.d9)(ie)){return le(ie,j,G.Z.WGS84,J,ce)}},18945:(nt,Ae,v)=>{"use strict";function D(R,G,Z=!1){let{hasM:Q,hasZ:$}=R;Array.isArray(G)?4!==G.length||Q||$?3===G.length&&Z&&!Q?($=!0,Q=!1):3===G.length&&Q&&$&&(Q=!1,$=!1):(Q=!0,$=!0):($=!$&&G.hasZ&&(!Q||G.hasM),Q=!Q&&G.hasM&&(!$||G.hasZ)),R.hasZ=$,R.hasM=Q}v.d(Ae,{l:()=>D})},33696:(nt,Ae,v)=>{"use strict";v.d(Ae,{k:()=>Z});var D=v(62208),R=v(16730),G=v(37053);function Z(X,te,ae){if((0,D.Wi)(te)||(0,D.Wi)(ae)||ae.vcsWkid||(0,G.fS)(te,ae))return null;const oe=(0,R._R)(te)/(0,R._R)(ae);if(1===oe)return null;switch(X){case"point":case"esriGeometryPoint":return le=>function Q(X,te){X&&null!=X.z&&(X.z*=te)}(le,oe);case"polyline":case"esriGeometryPolyline":return le=>function W(X,te){if(X)for(const ae of X.paths)for(const oe of ae)oe.length>2&&(oe[2]*=te)}(le,oe);case"polygon":case"esriGeometryPolygon":return le=>function $(X,te){if(X)for(const ae of X.rings)for(const oe of ae)oe.length>2&&(oe[2]*=te)}(le,oe);case"multipoint":case"esriGeometryMultipoint":return le=>function B(X,te){if(X)for(const ae of X.points)ae.length>2&&(ae[2]*=te)}(le,oe);case"extent":case"esriGeometryExtent":return le=>function H(X,te){X&&null!=X.zmin&&null!=X.zmax&&(X.zmin*=te,X.zmax*=te)}(le,oe);default:return null}}},52515:(nt,Ae,v)=>{"use strict";v(88411),v(15348),v(97059),v(56683);var Q=v(41840),$=v(15861),W=v(84792),B=v(26584),H=v(62208);function te(){return(te=(0,$.Z)(function*(j,Y,ee,ie){const J=Y.exec(ee);if(!J)throw new B.Z("esri-intl:invalid-bundle",`Bundle id "${ee}" is not compatible with the pattern "${Y}"`);const ce=J[1]?`${J[1]}/`:"",ue=J[2],pe=(0,Q.Su)(ie),he=`${ce}${ue}.json`,me=pe?`${ce}${ue}_${pe}.json`:he;let ge;try{ge=yield ae(j(me))}catch(_e){if(me===he)throw new B.Z("intl:unknown-bundle",`Bundle "${ee}" cannot be loaded`,{error:_e});try{ge=yield ae(j(he))}catch(Ee){throw new B.Z("intl:unknown-bundle",`Bundle "${ee}" cannot be loaded`,{error:Ee})}}return ge})).apply(this,arguments)}function ae(j){return oe.apply(this,arguments)}function oe(){return(oe=(0,$.Z)(function*(j){if((0,H.pC)(se.fetchBundleAsset))return se.fetchBundleAsset(j);const Y=yield(0,W.default)(j,{responseType:"text"});return JSON.parse(Y.data)})).apply(this,arguments)}class le{constructor({base:Y="",pattern:ee,location:ie=new URL(window.location.href)}){let J;J="string"==typeof ie?ce=>new URL(ce,new URL(ie,window.location.href)).href:ie instanceof URL?ce=>new URL(ce,ie).href:ie,this.pattern="string"==typeof ee?new RegExp(`^${ee}`):ee,this.getAssetUrl=J,Y=Y?Y.endsWith("/")?Y:Y+"/":"",this.matcher=new RegExp(`^${Y}(?:(.*)/)?(.*)$`)}fetchMessageBundle(Y,ee){return function X(j,Y,ee,ie){return te.apply(this,arguments)}(this.getAssetUrl,this.matcher,Y,ee)}}const se={};var re=v(54346);(0,Q.tz)(function de(j){return new le(j)}({pattern:"esri/",location:re.V}))},88411:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ze:()=>j,p6:()=>Y});var D=v(2076),R=v(56683);const G={year:"numeric",month:"numeric",day:"numeric"},Z={year:"numeric",month:"long",day:"numeric"},Q={year:"numeric",month:"short",day:"numeric"},$={year:"numeric",month:"long",weekday:"long",day:"numeric"},W={hour:"numeric",minute:"numeric"},B={...W,second:"numeric"},H={"short-date":G,"short-date-short-time":{...G,...W},"short-date-short-time-24":{...G,...W,hour12:!1},"short-date-long-time":{...G,...B},"short-date-long-time-24":{...G,...B,hour12:!1},"short-date-le":G,"short-date-le-short-time":{...G,...W},"short-date-le-short-time-24":{...G,...W,hour12:!1},"short-date-le-long-time":{...G,...B},"short-date-le-long-time-24":{...G,...B,hour12:!1},"long-month-day-year":Z,"long-month-day-year-short-time":{...Z,...W},"long-month-day-year-short-time-24":{...Z,...W,hour12:!1},"long-month-day-year-long-time":{...Z,...B},"long-month-day-year-long-time-24":{...Z,...B,hour12:!1},"day-short-month-year":Q,"day-short-month-year-short-time":{...Q,...W},"day-short-month-year-short-time-24":{...Q,...W,hour12:!1},"day-short-month-year-long-time":{...Q,...B},"day-short-month-year-long-time-24":{...Q,...B,hour12:!1},"long-date":$,"long-date-short-time":{...$,...W},"long-date-short-time-24":{...$,...W,hour12:!1},"long-date-long-time":{...$,...B},"long-date-long-time-24":{...$,...B,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":W,"long-time":B},X=(0,D.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),le=(X.toJSON.bind(X),X.fromJSON.bind(X),{ar:"ar-u-nu-latn-ca-gregory"});let de=new WeakMap,se=H["short-date-short-time"];function j(ee){return ee?H[ee]:null}function Y(ee,ie){return function re(ee){const ie=ee||se;let J=de.get(ie);if(!J){const ce=(0,R.Kd)(),ue=le[(0,R.Kd)()]||ce;J=new Intl.DateTimeFormat(ue,ie),de.set(ie,J)}return J}(ie).format(ee)}(0,R.Ze)(()=>{de=new WeakMap,se=H["short-date-short-time"]})},56683:(nt,Ae,v)=>{"use strict";let R;v.d(Ae,{Kd:()=>Q,Ze:()=>oe,qe:()=>te});const G=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function Z(){return G??globalThis.navigator?.language??"en"}function Q(){return void 0===R&&(R=Z()),R}const X=[];function te(de){return X.push(de),{remove(){X.splice(X.indexOf(de),1)}}}const ae=[];function oe(de){return ae.push(de),{remove(){X.splice(ae.indexOf(de),1)}}}globalThis.addEventListener?.("languagechange",function le(){const de=Z();R!==de&&(R=de,[...ae].forEach(se=>{se.call(null,de)}),[...X].forEach(se=>{se.call(null,de)}))})},41840:(nt,Ae,v)=>{"use strict";v.d(Ae,{ME:()=>ae,Su:()=>le,tz:()=>te});var D=v(15861),R=v(26584),G=v(10699),Z=v(56683);const Q=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,$={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function W(ee){return $[ee]??!1}const B=[],H=new Map;function X(ee){for(const ie of H.keys())re(ee.pattern,ie)&&H.delete(ie)}function te(ee){return B.includes(ee)||(X(ee),B.unshift(ee)),{remove(){const ie=B.indexOf(ee);ie>-1&&(B.splice(ie,1),X(ee))}}}function ae(ee){return oe.apply(this,arguments)}function oe(){return(oe=(0,D.Z)(function*(ee){const ie=(0,Z.Kd)();H.has(ee)||H.set(ee,de(ee,ie));const J=H.get(ee);return J&&(yield j.add(J)),J})).apply(this,arguments)}function le(ee){if(!Q.test(ee))return null;const ie=Q.exec(ee);if(null===ie)return null;const[,J,ce]=ie,ue=J+(ce?"-"+ce.toUpperCase():"");return W(ue)?ue:W(J)?J:null}function de(ee,ie){return se.apply(this,arguments)}function se(){return(se=(0,D.Z)(function*(ee,ie){const J=[];for(const ce of B)if(re(ce.pattern,ee))try{return yield ce.fetchMessageBundle(ee,ie)}catch(ue){J.push(ue)}throw J.length?new R.Z("intl:message-bundle-error",`Errors occurred while loading "${ee}"`,{errors:J}):new R.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${ee}"`)})).apply(this,arguments)}function re(ee,ie){return"string"==typeof ee?ie.startsWith(ee):ee.test(ie)}(0,Z.Ze)(()=>{H.clear()});const j=new class{constructor(){this._numLoading=0,this._dfd=null}waitForAll(){var ee=this;return(0,D.Z)(function*(){ee._dfd&&(yield ee._dfd.promise)})()}add(ee){return this._increase(),ee.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,G.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},15348:(nt,Ae,v)=>{"use strict";v.d(Ae,{sh:()=>W,uf:()=>B});var D=v(62208),R=v(56683);const G={ar:"ar-u-nu-latn"};let Z=new WeakMap,Q={};function W(H={}){const X={};return null!=H.digitSeparator&&(X.useGrouping=H.digitSeparator),null!=H.places&&(X.minimumFractionDigits=X.maximumFractionDigits=H.places),X}function B(H,X){return-0===H&&(H=0),function $(H){const X=H||Q;if(!Z.has(X)){const te=(0,R.Kd)(),ae=G[(0,R.Kd)()]||te;Z.set(X,new Intl.NumberFormat(ae,H))}return(0,D.j0)(Z.get(X))}(X).format(H)}(0,R.Ze)(()=>{Z=new WeakMap,Q={}})},97059:(nt,Ae,v)=>{"use strict";v.d(Ae,{n:()=>W});var D=v(63290),R=v(94113),G=v(77275),Z=v(88411),Q=v(15348);const $=D.Z.getLogger("esri.intl.substitute");function W(ae,oe,le={}){const{format:de={}}=le;return(0,G.gx)(ae,se=>function B(ae,oe,le){let de,se;const re=ae.indexOf(":");if(-1===re?de=ae.trim():(de=ae.slice(0,re).trim(),se=ae.slice(re+1).trim()),!de)return"";const j=(0,R.hS)(de,oe);if(null==j)return"";const Y=(se?le?.[se]:null)??le?.[de];return Y?function H(ae,oe){switch(oe.type){case"date":return(0,Z.p6)(ae,oe.intlOptions);case"number":return(0,Q.uf)(ae,oe.intlOptions);default:return $.warn("missing format descriptor for key {key}"),te(ae)}}(j,Y):se?function X(ae,oe){switch(oe.toLowerCase()){case"dateformat":return(0,Z.p6)(ae);case"numberformat":return(0,Q.uf)(ae);default:return $.warn(`inline format is unsupported since 4.12: ${oe}`),/^(dateformat|datestring)/i.test(oe)?(0,Z.p6)(ae):/^numberformat/i.test(oe)?(0,Q.uf)(ae):te(ae)}}(j,se):te(j)}(se,oe,de))}function te(ae){switch(typeof ae){case"string":return ae;case"number":return(0,Q.uf)(ae);case"boolean":return""+ae;default:return ae instanceof Date?(0,Z.p6)(ae):""}}},24263:(nt,Ae,v)=>{"use strict";v.d(Ae,{Dp:()=>B,Nv:()=>Q,i8:()=>Z,id:()=>$,qh:()=>W});var D=v(15861),R=v(8314),G=v(21726);const Z="4.25",Q={request:(H,X)=>(0,D.Z)(function*(){const{default:te}=yield Promise.resolve().then(v.bind(v,84792)),ae=H.options,oe=ae.responseType;ae.signal=X?.signal,ae.responseType="native"===oe||"native-request-init"===oe?"native-request-init":oe&&["blob","json","text"].includes(oe)&&(0,G.oh)(H.url)?.after?oe:"array-buffer";const le=yield te(H.url,ae),de={data:le.data,ssl:le.ssl};switch(le.requestOptions?.responseType){case"native-request-init":return delete de.data.signal,de;case"blob":de.data=yield de.data.arrayBuffer();break;case"json":de.data=(new TextEncoder).encode(JSON.stringify(de.data)).buffer;break;case"text":de.data=(new TextEncoder).encode(de.data).buffer}return{result:de,transferList:[de.data]}})()};let $;function W(H){$=H}function B(H){const X=$&&$.findCredential(H);return X&&X.token?(0,G.ZN)(H,"token",X.token):H}(0,R.Z)("host-webworker")},80415:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{default:()=>at});var D=v(15861),R=v(17626),G=v(73281),X=(v(4832),v(49067),v(96794),v(69747),v(40425),v(69357),v(40342)),te=v(73640),ae=v(33474),oe=v(32088),le=v(84792),de=v(20383),se=v(79608),re=v(46160),j=v(26584),Y=v(72392),ee=v(58817),ie=v(63290),J=v(62208),ce=v(99959),ue=v(94113),pe=v(10699),he=v(95737),me=v(21726),ge=v(77712),_e=v(66656),Ee=v(68653),De=v(76898),be=v(99433),Se=v(383),ye=v(27402),ve=v(65234),xe=v(44917),Ke=(v(29132),v(88879)),We=v(80542),Ce=v(8314),Be=v(47996),Fe=v(60330),je=v(59289),He=(v(85931),v(90912)),Ie=v(61039),Ge=v(20514),Pe=v(61515),Le=v(17253),Me=v(2004),Ne=v(37118),Xe=v(71774);let Ye=0;const Je="esri.layers.graphics.sources.MemorySource",rt=ie.Z.getLogger(Je);let tt=class extends(Be.Z.LoadableMixin((0,Fe.v)((0,We.p)(re.Z)))){constructor(bt){super(bt),this._idToClientGraphic=null,this.type="memory"}load(bt){const gt=(0,J.pC)(bt)?bt.signal:null;return this.addResolvingPromise(this._startWorker(gt)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const bt=this.layer?.geometryType;return bt?this._geometryTypeRequiresClientGraphicMapping(bt)?"polygon":bt:null}applyEdits(bt){return this.load().then(()=>this._applyEdits(bt))}openPorts(){return this.load().then(()=>this._connection.openPorts())}queryFeatures(bt,gt={}){var Gt=this;return(0,D.Z)(function*(){yield Gt.load(gt);const fr=yield Gt._connection.invoke("queryFeatures",bt?bt.toJSON():null,gt);(0,Pe.p)(bt,Gt.layer.spatialReference,fr);const Ar=Le.default.fromJSON(fr);if(!Gt._requiresClientGraphicMapping())return Ar;const us=Gt.layer.objectIdField;for(const as of Ar.features){const Fs=Gt._idToClientGraphic.get(as.attributes[us]);Fs&&(as.geometry=Fs.geometry)}return Ar.geometryType=Gt.layer.geometryType,Ar})()}queryFeaturesJSON(bt,gt={}){var Gt=this;return(0,D.Z)(function*(){if(Gt._requiresClientGraphicMapping())throw new j.Z("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");yield Gt.load(gt);const fr=yield Gt._connection.invoke("queryFeatures",bt?bt.toJSON():null,gt);return(0,Pe.p)(bt,Gt.layer.spatialReference,fr),fr})()}queryFeatureCount(bt,gt={}){return this.load(gt).then(()=>this._connection.invoke("queryFeatureCount",bt?bt.toJSON():null,gt))}queryObjectIds(bt,gt={}){return this.load(gt).then(()=>this._connection.invoke("queryObjectIds",bt?bt.toJSON():null,gt))}queryExtent(bt,gt={}){return this.load(gt).then(()=>this._connection.invoke("queryExtent",bt?bt.toJSON():null,gt)).then(Gt=>({count:Gt.count,extent:Me.Z.fromJSON(Gt.extent)}))}querySnapping(bt,gt={}){return this.load(gt).then(()=>this._connection.invoke("querySnapping",bt,gt))}_applyEdits(bt){var gt=this;return(0,D.Z)(function*(){if(!gt._connection)throw new j.Z("feature-layer-source:edit-failure","Memory source not loaded");const Gt=gt.layer.objectIdField;let fr=null;const Ar=[],us=[];yield Promise.all([gt._prepareClientMapping(bt.addFeatures,null),gt._prepareClientMapping(bt.updateFeatures,null)]);const as=Ws=>"objectId"in Ws&&null!=Ws.objectId?Ws.objectId:"attributes"in Ws&&null!=Ws.attributes[Gt]?Ws.attributes[Gt]:null;if(bt.addFeatures&&(fr=gt._prepareAddFeatures(bt.addFeatures)),bt.deleteFeatures)for(const Ws of bt.deleteFeatures){const yi=as(Ws);null!=yi&&Ar.push(yi)}const Ps=bt.updateFeatures&>._idToClientGraphic?new Map:null;if(bt.updateFeatures)for(const Ws of bt.updateFeatures)if(us.push(gt._serializeFeature(Ws)),Ps){const yi=as(Ws);null!=yi&&Ps.set(yi,Ws)}(0,Ge.P)(fr?fr.features:null,us,gt.layer.spatialReference);const{fullExtent:Fs,featureEditResults:xs}=yield gt._connection.invoke("applyEdits",{adds:fr?fr.features:[],updates:us,deletes:Ar});return gt.fullExtent=Fs,fr&&fr.finish(xs.uidToObjectId),gt._updateClientGraphicIds(Ps,xs),gt._createEditsResult(xs)})()}_prepareClientMapping(bt,gt){var Gt=this;return(0,D.Z)(function*(){if("mesh"!==Gt._layerOrSourceGeometryType||(0,J.Wi)(bt))return;const fr=[];for(const{geometry:Ar}of bt)!(0,J.pC)(Ar)||"mesh"!==Ar.type||Ar.hasExtent||Ar.loaded||fr.push(Ar.load({signal:gt}));fr.length&&(yield Promise.all(fr))})()}_updateClientGraphicIds(bt,gt){if(this._idToClientGraphic){if(bt)for(const Gt of gt.updateResults){if(!Gt.success)continue;const fr=bt.get(Gt.objectId);null!=fr&&this._addIdToClientGraphic(fr)}for(const Gt of gt.deleteResults)Gt.success&&this._idToClientGraphic.delete(Gt.objectId)}}_createEditsResult(bt){return{addFeatureResults:bt.addResults?bt.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:bt.updateResults?bt.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:bt.deleteResults?bt.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(bt){const gt=!0===bt.success?null:bt.error||{code:void 0,description:void 0};return{objectId:bt.objectId,globalId:bt.globalId,error:gt?new j.Z("feature-layer-source:edit-failure",gt.description,{code:gt.code}):null}}_prepareAddFeatures(bt){const gt=new Map,Gt=new Array(bt.length);let fr=null;for(let us=0;us{rt.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),oi.preventDefault()}));const Ws={features:xs.features,fields:Gt&&Gt.map(oi=>oi.toJSON()),geometryType:Xe.P$.toJSON(gt._workerGeometryType),hasM:"mesh"!==gt._layerOrSourceGeometryType&&us,hasZ:"mesh"===gt._layerOrSourceGeometryType||as,objectIdField:Ar,spatialReference:Fs?null:fr&&fr.toJSON(),timeInfo:Ps?Ps.toJSON():null},yi=yield gt._connection.invoke("load",Ws,{signal:bt});for(const oi of yi.warnings)rt.warn(oi.message,{layer:gt.layer,warning:oi});yi.featureErrors.length&&rt.warn(`Encountered ${yi.featureErrors.length} validation errors while loading features`,yi.featureErrors);const hn=yi.layerDefinition;gt._geometryTypeRequiresClientGraphicMapping(xs.inferredGeometryType)&&(hn.geometryType=Xe.P$.toJSON(xs.inferredGeometryType)),gt.sourceJSON=hn,gt._requiresClientGraphicMapping()&&(gt._idToClientGraphic=new Map),xs.finish(yi.assignedObjectIds)})()}};(0,R._)([(0,Ie.c)({Type:Ke.Z,ensureType:(0,He.se)(Ke.Z)})],tt.prototype,"itemType",void 0),(0,R._)([(0,ge.Cb)()],tt.prototype,"type",void 0),(0,R._)([(0,ge.Cb)({constructOnly:!0})],tt.prototype,"layer",void 0),(0,R._)([(0,ge.Cb)({readOnly:!0})],tt.prototype,"_workerGeometryType",null),(0,R._)([(0,ge.Cb)()],tt.prototype,"sourceJSON",void 0),tt=(0,R._)([(0,De.j)(Je)],tt);var et=v(50085),qe=v(65088),ot=v(552),ut=v(50107),_t=v(6733),Ct=v(35126),vt=v(87987),Lt=v(81380),jt=v(49286),$t=v(32629),Wt=v(6647),pr=v(14517);let gr=class extends pr.Z{constructor(){super(...arguments),this.updating=!1,this.status="unknown"}};(0,R._)([(0,ge.Cb)()],gr.prototype,"updating",void 0),(0,R._)([(0,ge.Cb)()],gr.prototype,"status",void 0),gr=(0,R._)([(0,De.j)("esri.layers.support.PublishingInfo")],gr);const ar=gr,Fr="esri.layers.mixins.PublishableLayer";Symbol(Fr);const or=bt=>{let gt=class extends bt{get publishingInfo(){if(this.destroyed)return null;const Gt=this._get("publishingInfo");if(Gt)return Gt;const fr=new ar;return this._checkPublishingStatus(fr),fr}_checkPublishingStatus(Gt){var fr=this;let as=0;const Ps=function(){var xs=(0,D.Z)(function*(Ws){let yi;Gt.updating=!0;try{yi=yield fr.fetchPublishingStatus()}catch{yi="unavailable"}"published"!==yi&&"unavailable"!==yi||("publishing"===Gt.status&&fr.refresh(),Fs.remove()),Gt.status=yi,Gt.updating=!1,Fs.removed||(as=setTimeout(Ps,Ws,Ws+125))});return function(yi){return xs.apply(this,arguments)}}(),Fs={removed:!1,remove(){this.removed=!0,clearTimeout(as)}};this.when().catch(()=>Fs.remove()),Ps(250),this.own(Fs)}};return(0,R._)([(0,ge.Cb)({readOnly:!0,clonable:!1})],gt.prototype,"publishingInfo",null),gt=(0,R._)([(0,De.j)(Fr)],gt),gt};var sr=v(30346),rr=v(99555),Et=v(97941),St=v(38305),Ft=v(13812),zt=v(26331),dr=v(32777),hr=v(41638),Tr=v(55911),Dr=v(36630),Lr=v(170),Hr=v(62667),Qr=v(62708),Jr=v(5676),Ss=v(15283),Cs=v(39683),Dt=v(96854),ct=v(6871),At=v(49430),Kt=v(92236);const tr="FeatureLayer",_r="esri.layers.FeatureLayer",Or=ie.Z.getLogger(_r);function gs(bt,gt){return new j.Z("layer:unsupported",`Layer (${bt.title}, ${bt.id}) of type '${bt.declaredClass}' ${gt}`,{layer:bt})}function Kr(bt){return bt&&bt instanceof re.Z}const qt=(0,Tr.v)();function Ir(bt,gt,Gt){const fr=!!Gt?.writeLayerSchema;return{enabled:fr,ignoreOrigin:fr}}let Sr=class extends((0,vt.B)((0,Lt.M)((0,Ct.b)(or((0,_t.o1)((0,ot.h)((0,$t.c)((0,Et.n)((0,rr.M)((0,sr.Q)((0,qe.Y)((0,jt.q)((0,Wt.I)((0,ce.R)((0,ut.N)((0,et.V)((0,se.J)(xe.Z)))))))))))))))))){constructor(...bt){super(...bt),this._handles=new Y.Z,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=ve.Z.WGS84,this.subtypeCode=null,this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0}destroy(){this.source?.destroy(),this._handles=(0,J.SC)(this._handles)}normalizeCtorArgs(bt,gt){return"string"==typeof bt?{url:bt,...gt}:bt}load(bt){var gt=this;const Gt=(0,J.pC)(bt)?bt.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(Gt).then(Ar=>this.initLayerProperties(Ar))),Promise.resolve(this);const fr=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection"]},bt).catch(pe.r9).then((0,D.Z)(function*(){if(gt.url&&null==gt.layerId&&/FeatureServer|MapServer\/*$/i.test(gt.url)){const Ar=yield gt._fetchFirstLayerId(Gt);null!=Ar&&(gt.layerId=Ar)}if(!gt.url&&!gt._hasMemorySource())throw new j.Z("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return gt.initLayerProperties(yield gt.createGraphicsSource(Gt))})).then(()=>this.finishLoadEditablePortalLayer(bt));return this.addResolvingPromise(fr),Promise.resolve(this)}readCapabilities(bt,gt){return(0,zt.hu)(bt,gt=gt.layerDefinition||gt,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(bt){this._overrideIfSome("editingEnabled",bt)}readEditingEnabled(bt,gt){return this._readEditingEnabled(gt,!1)}readEditingEnabledFromWebMap(bt,gt,Gt){return this._readEditingEnabled(gt,!0,Gt)}writeEditingEnabled(bt,gt){this._writeEditingEnabled(bt,gt,!1)}writeEditingEnabledToWebMap(bt,gt,Gt,fr){this._writeEditingEnabled(bt,gt,!0,fr)}readIsTable(bt,gt){return"Table"===(gt=gt?.layerDefinition??gt).type||!gt.geometryType}writeIsTable(bt,gt,Gt,fr){fr?.writeLayerSchema&&(0,ue.RB)(Gt,bt?"Table":"Feature Layer",gt)}readGlobalIdField(bt,gt){return(0,zt.rk)(gt.layerDefinition||gt)}readObjectIdField(bt,gt){return(0,zt.kZ)(gt.layerDefinition||gt)}get parsedUrl(){const bt=(0,me.mN)(this.url);return null!=bt&&(null!=this.dynamicDataSource?bt.path=(0,me.v_)(bt.path,"dynamicLayer"):null!=this.layerId&&(bt.path=(0,me.v_)(bt.path,this.layerId.toString()))),bt}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(bt){(0,Dr.YN)(bt,this.fieldsIndex),this._set("renderer",bt)}readRenderer(bt,gt,Gt){const fr=(gt=gt.layerDefinition||gt).drawingInfo?.renderer;if(fr){const Ar=(0,ae.a)(fr,gt,Gt)??void 0;return Ar||Or.error("Failed to create renderer",{rendererDefinition:gt.drawingInfo.renderer,layer:this,context:Gt}),Ar}if(gt.defaultSymbol)return gt.types&>.types.length?new te.Z({defaultSymbol:fs(gt.defaultSymbol,gt,Gt),field:gt.typeIdField,uniqueValueInfos:gt.types.map(Ar=>({id:Ar.id,symbol:fs(Ar.symbol,Ar,Gt)}))}):new X.Z({symbol:fs(gt.defaultSymbol,gt,Gt)})}set source(bt){const gt=this._get("source");gt!==bt&&(Kr(gt)&&this._resetMemorySource(gt),Kr(bt)&&this._initMemorySource(bt),this._set("source",bt))}castSource(bt){return bt?Array.isArray(bt)||bt instanceof re.Z?new tt({layer:this,items:bt}):bt:null}readSource(bt,gt){const Gt=Le.default.fromJSON(gt.featureSet);return new tt({layer:this,items:Gt?.features??[]})}readTemplates(bt,gt){const Gt=gt.editFieldsInfo,fr=Gt&&Gt.creatorField,Ar=Gt&&Gt.editorField;return bt=bt&&bt.map(us=>dr.Z.fromJSON(us)),this._fixTemplates(bt,fr),this._fixTemplates(bt,Ar),bt}readTitle(bt,gt){const Gt=gt.layerDefinition?.name??gt.name,fr=gt.title||gt.layerDefinition&>.layerDefinition.title;if(Gt){const Ar=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,St.a7)(this.url,Gt):Gt;let us=Gt;if(!us&&this.url){const as=(0,St.Qc)(this.url);(0,J.pC)(as)&&(us=as.title)}return us?("item-title-and-service-name"===this.sublayerTitleMode&&Ar&&Ar!==us&&(us=Ar+" - "+us),(0,St.ld)(us)):void 0}if("item-title"===this.sublayerTitleMode&&fr)return fr}readTitleFromWebMap(bt,gt){return gt.title||gt.layerDefinition&>.layerDefinition.name}readTypeIdField(bt,gt){let Gt=(gt=gt.layerDefinition||gt).typeIdField;if(Gt&>.fields){Gt=Gt.toLowerCase();const fr=gt.fields.find(Ar=>Ar.name.toLowerCase()===Gt);fr&&(Gt=fr.name)}return Gt}readTypes(bt,gt){bt=(gt=gt.layerDefinition||gt).types;const Gt=gt.editFieldsInfo,fr=Gt&&Gt.creatorField,Ar=Gt&&Gt.editorField;return bt&&bt.map(us=>(us=hr.Z.fromJSON(us),this._fixTemplates(us.templates,fr),this._fixTemplates(us.templates,Ar),us))}readVisible(bt,gt){return gt.layerDefinition&&null!=gt.layerDefinition.defaultVisibility?!!gt.layerDefinition.defaultVisibility:null!=gt.visibility?!!gt.visibility:void 0}addAttachment(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.JD)(Gt,bt,gt,tr)})()}updateAttachment(bt,gt,Gt){var fr=this;return(0,D.Z)(function*(){return(0,zt.Y5)(fr,bt,gt,Gt,tr)})()}applyEdits(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.Jj)(Gt,bt,gt)})()}on(bt,gt){return super.on(bt,gt)}createPopupTemplate(bt){return(0,At.eZ)(this,bt)}createGraphicsSource(bt){var gt=this;return(0,D.Z)(function*(){if(gt._hasMemorySource()&>.source)return gt.source.load({signal:bt});const{default:Gt}=yield(0,pe.Hl)(v.e(4516).then(v.bind(v,14516)),bt);return new Gt({layer:gt}).load({signal:bt})})()}createQuery(){const bt=(0,zt.rP)(this);bt.dynamicDataSource=this.dynamicDataSource;const gt=(0,J.pC)(this.subtypeCode)?`${this.subtypeField} = ${this.subtypeCode}`:null,Gt=(0,he._)(this.definitionExpression,gt);return bt.where=Gt||"1=1",bt}deleteAttachments(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.FV)(Gt,bt,gt,tr)})()}fetchRecomputedExtents(bt){var gt=this;return(0,D.Z)(function*(){return(0,zt.Ci)(gt,bt,tr)})()}getFeatureType(bt){const{typeIdField:gt,types:Gt}=this;if(!gt||!bt)return null;const fr=bt.attributes?bt.attributes[gt]:void 0;if(null==fr)return null;let Ar=null;return Gt?.some(us=>{const{id:as}=us;return null!=as&&(as.toString()===fr.toString()&&(Ar=us),!!Ar)}),Ar}getFieldDomain(bt,gt){const fr=this.getFeatureType(gt&>.feature);if(fr){const Ar=fr.domains&&fr.domains[bt];if(Ar&&"inherited"!==Ar.type)return Ar}return this._getLayerDomain(bt)}getField(bt){return this.fieldsIndex.get(bt)}queryAttachments(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.SU)(Gt,bt,gt,tr)})()}queryFeatures(bt,gt){var Gt=this;return(0,D.Z)(function*(){const fr=yield Gt.load(),Ar=yield fr.source.queryFeatures(Dt.Z.from(bt)??fr.createQuery(),gt);if(Ar?.features)for(const us of Ar.features)us.layer=us.sourceLayer=fr;return Ar})()}queryObjectIds(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.tD)(Gt,bt,gt,tr)})()}queryFeatureCount(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.VG)(Gt,bt,gt,tr)})()}queryExtent(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.KE)(Gt,bt,gt,tr)})()}queryRelatedFeatures(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.kp)(Gt,bt,gt,tr)})()}queryRelatedFeaturesCount(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(0,zt.C9)(Gt,bt,gt,tr)})()}queryTopFeatures(bt,gt){var Gt=this;return(0,D.Z)(function*(){const{source:fr,capabilities:Ar}=yield Gt.load();if(!fr.queryTopFeatures||!Ar?.query?.supportsTopFeaturesQuery)throw new j.Z(tr,"Layer source does not support queryTopFeatures capability");const us=yield fr.queryTopFeatures(ct.Z.from(bt),gt);if(us?.features)for(const as of us.features)as.layer=as.sourceLayer=Gt;return us})()}queryTopObjectIds(bt,gt){var Gt=this;return(0,D.Z)(function*(){const{source:fr,capabilities:Ar}=yield Gt.load();if(!fr.queryTopObjectIds||!Ar?.query.supportsTopFeaturesQuery)throw new j.Z(tr,"Layer source does not support queryTopObjectIds capability");return fr.queryTopObjectIds(ct.Z.from(bt),gt)})()}queryTopFeaturesExtent(bt,gt){var Gt=this;return(0,D.Z)(function*(){const{source:fr,capabilities:Ar}=yield Gt.load();if(!fr.queryTopExtents||!Ar?.query?.supportsTopFeaturesQuery)throw new j.Z(tr,"Layer source does not support queryTopExtents capability");return fr.queryTopExtents(ct.Z.from(bt),gt)})()}queryTopFeatureCount(bt,gt){var Gt=this;return(0,D.Z)(function*(){const{source:fr,capabilities:Ar}=yield Gt.load();if(!fr.queryTopCount||!Ar?.query?.supportsTopFeaturesQuery)throw new j.Z(tr,"Layer source does not support queryFeatureCount capability");return fr.queryTopCount(ct.Z.from(bt),gt)})()}read(bt,gt){const Gt=bt.featureCollection;if(Gt){const fr=Gt.layers;fr&&1===fr.length&&(super.read(fr[0],gt),null!=Gt.showLegend&&super.read({showLegend:Gt.showLegend},gt))}super.read(bt,gt),gt&&"service"===gt.origin&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")}write(bt,gt){gt={...gt,origin:gt?.origin??void 0,writeLayerSchema:gt?.writeLayerSchema??this._hasMemorySource()};const{origin:Gt,layerContainerType:fr,messages:Ar}=gt;if(this.dynamicDataSource)return Ar?.push(gs(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if("web-scene"===Gt||"web-map"===Gt&&"tables"!==fr)return Ar?.push(gs(this,"using a table source cannot be written to web scenes and web maps")),null;if(this._hasMemorySource())return Ar?.push(gs(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===Gt&&"tables"===fr)return Ar?.push(gs(this,"using a non-table source cannot be written to tables in web maps")),null;return super.write(bt,gt)}clone(){if(this._hasMemorySource())throw new j.Z(tr,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(bt){return!!this.loaded&&("memory"===this.source?.type||(0,Jr.D)(this,bt))}save(bt){var gt=this;return(0,D.Z)(function*(){return(yield Promise.all([v.e(8592),v.e(6912)]).then(v.bind(v,36912))).save(gt,bt)})()}saveAs(bt,gt){var Gt=this;return(0,D.Z)(function*(){return(yield Promise.all([v.e(8592),v.e(6912)]).then(v.bind(v,36912))).saveAs(Gt,bt,gt)})()}_readEditingEnabled(bt,gt,Gt){let fr=bt.layerDefinition?.capabilities;return fr?this._hasEditingCapability(fr):(fr=bt.capabilities,gt&&"web-map"===Gt?.origin&&!this._hasMemorySource()&&fr?this._hasEditingCapability(fr):void 0)}_hasEditingCapability(bt){return bt.toLowerCase().split(",").map(gt=>gt.trim()).includes("editing")}_writeEditingEnabled(bt,gt,Gt,fr){if(!bt){const Ar=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,ue.RB)("layerDefinition.capabilities",Ar,gt),Gt&&!fr?.writeLayerSchema&&(gt.capabilities=Ar)}}_getLayerDomain(bt){const gt=this.fieldsIndex.get(bt);return gt?gt.domain:null}_fetchFirstLayerId(bt){return(0,le.default)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:bt}).then(gt=>{const Gt=gt.data;if(Gt)return Array.isArray(Gt.layers)&&Gt.layers.length>0?Gt.layers[0].id:Array.isArray(Gt.tables)&&Gt.tables.length>0?Gt.tables[0].id:void 0})}initLayerProperties(bt){var gt=this;return(0,D.Z)(function*(){return gt._set("source",bt),bt.sourceJSON&&(gt.sourceJSON=bt.sourceJSON,gt.read(bt.sourceJSON,{origin:"service",url:gt.parsedUrl})),gt._verifySource(),gt._verifyFields(),(0,Dr.YN)(gt.renderer,gt.fieldsIndex),(0,Dr.UF)(gt.timeInfo,gt.fieldsIndex),(0,Cs.y)(gt,{origin:"service"})})()}hasDataChanged(){var bt=this;return(0,D.Z)(function*(){return(0,zt.gG)(bt)})()}fetchPublishingStatus(){var bt=this;return(0,D.Z)(function*(){const gt=bt.source;return gt?.fetchPublishingStatus?gt.fetchPublishingStatus():"unavailable"})()}_verifyFields(){const bt=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+bt+")"),this.isTable||this._hasMemorySource()||-1!==bt.search(/\/FeatureServer\//i)||this.fields?.some(gt=>"geometry"===gt.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+bt+")")}_fixTemplates(bt,gt){bt&&bt.forEach(Gt=>{const fr=Gt.prototype&&Gt.prototype.attributes;fr&>&&delete fr[gt]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new j.Z("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new j.Z("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(bt){bt.forEach(gt=>{gt.layer=this,gt.sourceLayer=this}),this._handles.add([bt.on("after-add",gt=>{gt.item.layer=this,gt.item.sourceLayer=this}),bt.on("after-remove",gt=>{gt.item.layer=null,gt.item.sourceLayer=null})],"fl-source")}_resetMemorySource(bt){bt.forEach(gt=>{gt.layer=null,gt.sourceLayer=null}),this._handles.remove("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}};(0,R._)([(0,Ee.r)("service","capabilities")],Sr.prototype,"readCapabilities",null),(0,R._)([(0,ge.Cb)({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Sr.prototype,"charts",void 0),(0,R._)([(0,ge.Cb)({readOnly:!0})],Sr.prototype,"createQueryVersion",null),(0,R._)([(0,ge.Cb)({json:{read:{source:"layerDefinition.copyrightText"}}})],Sr.prototype,"copyright",void 0),(0,R._)([(0,ge.Cb)({json:{read:{source:"layerDefinition.displayField"}}})],Sr.prototype,"displayField",void 0),(0,R._)([(0,ge.Cb)({types:de.LB,readOnly:!0})],Sr.prototype,"defaultSymbol",void 0),(0,R._)([(0,ge.Cb)({type:Ss.n})],Sr.prototype,"dynamicDataSource",void 0),(0,R._)([(0,ge.Cb)({type:Boolean})],Sr.prototype,"editingEnabled",null),(0,R._)([(0,Ee.r)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Sr.prototype,"readEditingEnabled",null),(0,R._)([(0,Ee.r)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Sr.prototype,"readEditingEnabledFromWebMap",null),(0,R._)([(0,be.c)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Sr.prototype,"writeEditingEnabled",null),(0,R._)([(0,be.c)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Sr.prototype,"writeEditingEnabledToWebMap",null),(0,R._)([(0,ge.Cb)({...qt.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ir}}}}})],Sr.prototype,"fields",void 0),(0,R._)([(0,ge.Cb)(qt.fieldsIndex)],Sr.prototype,"fieldsIndex",void 0),(0,R._)([(0,ge.Cb)({type:ye.Z,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Sr.prototype,"formTemplate",void 0),(0,R._)([(0,ge.Cb)({json:{read:{source:"layerDefinition.extent"}}})],Sr.prototype,"fullExtent",void 0),(0,R._)([(0,ge.Cb)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ir,writer(bt,gt,Gt){const fr=bt?zt.Fr.toJSON(bt):null;fr&&(0,ue.RB)(Gt,fr,gt)}}}},read:{source:"layerDefinition.geometryType",reader:zt.Fr.read}}})],Sr.prototype,"geometryType",void 0),(0,R._)([(0,ge.Cb)({json:{read:{source:"layerDefinition.hasM"}}})],Sr.prototype,"hasM",void 0),(0,R._)([(0,ge.Cb)({json:{read:{source:"layerDefinition.hasZ"}}})],Sr.prototype,"hasZ",void 0),(0,R._)([(0,ge.Cb)(Ft.id)],Sr.prototype,"id",void 0),(0,R._)([(0,ge.Cb)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Sr.prototype,"infoFor3D",void 0),(0,R._)([(0,ge.Cb)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Sr.prototype,"isTable",void 0),(0,R._)([(0,Ee.r)("service","isTable",["type","geometryType"]),(0,Ee.r)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Sr.prototype,"readIsTable",null),(0,R._)([(0,be.c)("web-map","isTable")],Sr.prototype,"writeIsTable",null),(0,R._)([(0,ge.Cb)(Ft.iR)],Sr.prototype,"labelsVisible",void 0),(0,R._)([(0,ge.Cb)({type:[Lr.Z],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:Hr.r},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:Hr.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],Sr.prototype,"labelingInfo",void 0),(0,R._)([(0,ge.Cb)((()=>{const bt=(0,ee.d9)(Ft.bT);return bt.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(gt,Gt,fr){(0,ue.RB)(fr,(0,Kt.a)(gt),Gt)}}},bt})())],Sr.prototype,"opacity",void 0),(0,R._)([(0,ge.Cb)(Ft.rn)],Sr.prototype,"legendEnabled",void 0),(0,R._)([(0,ge.Cb)({type:["show","hide"],json:(()=>{const bt=(0,ee.d9)(Ft.rT.json);return bt.origins["portal-item"]={read:!1,write:!1},bt})()})],Sr.prototype,"listMode",void 0),(0,R._)([(0,Ee.r)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Sr.prototype,"readGlobalIdField",null),(0,R._)([(0,ge.Cb)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ir}}}}})],Sr.prototype,"objectIdField",void 0),(0,R._)([(0,Ee.r)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Sr.prototype,"readObjectIdField",null),(0,R._)([(0,ge.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],Sr.prototype,"operationalLayerType",void 0),(0,R._)([(0,ge.Cb)(qt.outFields)],Sr.prototype,"outFields",void 0),(0,R._)([(0,ge.Cb)({readOnly:!0})],Sr.prototype,"parsedUrl",null),(0,R._)([(0,ge.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Sr.prototype,"path",void 0),(0,R._)([(0,ge.Cb)(Ft.C_)],Sr.prototype,"popupEnabled",void 0),(0,R._)([(0,ge.Cb)({type:G.Z,json:{name:"popupInfo",write:!0}})],Sr.prototype,"popupTemplate",void 0),(0,R._)([(0,ge.Cb)({readOnly:!0})],Sr.prototype,"defaultPopupTemplate",null),(0,R._)([(0,ge.Cb)({types:oe.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:oe.o,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:(bt,gt,Gt)=>({ignoreOrigin:Gt?.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(bt,gt,Gt)=>({ignoreOrigin:Gt?.writeLayerSchema})}}})],Sr.prototype,"renderer",null),(0,R._)([(0,Ee.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,Ee.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Sr.prototype,"readRenderer",null),(0,R._)([(0,ge.Cb)((()=>{const bt=(0,ee.d9)(Ft.YI);return bt.json.origins["portal-item"]={read:!1,write:!1},bt})())],Sr.prototype,"screenSizePerspectiveEnabled",void 0),(0,R._)([(0,ge.Cb)({clonable:!1})],Sr.prototype,"source",null),(0,R._)([(0,_e.p)("source")],Sr.prototype,"castSource",null),(0,R._)([(0,Ee.r)("portal-item","source",["featureSet"]),(0,Ee.r)("web-map","source",["featureSet"])],Sr.prototype,"readSource",null),(0,R._)([(0,ge.Cb)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Sr.prototype,"spatialReference",void 0),(0,R._)([(0,ge.Cb)({type:Number})],Sr.prototype,"subtypeCode",void 0),(0,R._)([(0,ge.Cb)({type:[dr.Z]})],Sr.prototype,"templates",void 0),(0,R._)([(0,Ee.r)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Sr.prototype,"readTemplates",null),(0,R._)([(0,ge.Cb)({type:Qr.Z})],Sr.prototype,"timeInfo",void 0),(0,R._)([(0,ge.Cb)()],Sr.prototype,"title",void 0),(0,R._)([(0,Ee.r)("service","title",["name"]),(0,Ee.r)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Sr.prototype,"readTitle",null),(0,R._)([(0,Ee.r)("web-map","title",["layerDefinition.name","title"])],Sr.prototype,"readTitleFromWebMap",null),(0,R._)([(0,ge.Cb)({type:String})],Sr.prototype,"sublayerTitleMode",void 0),(0,R._)([(0,ge.Cb)({json:{read:!1}})],Sr.prototype,"type",void 0),(0,R._)([(0,ge.Cb)({type:String})],Sr.prototype,"typeIdField",void 0),(0,R._)([(0,Ee.r)("service","typeIdField"),(0,Ee.r)("typeIdField",["layerDefinition.typeIdField"])],Sr.prototype,"readTypeIdField",null),(0,R._)([(0,ge.Cb)({type:[hr.Z]})],Sr.prototype,"types",void 0),(0,R._)([(0,Ee.r)("service","types",["types"]),(0,Ee.r)("types",["layerDefinition.types"])],Sr.prototype,"readTypes",null),(0,R._)([(0,ge.Cb)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],Sr.prototype,"visible",void 0),(0,R._)([(0,Ee.r)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Sr.prototype,"readVisible",null),Sr=(0,R._)([(0,De.j)(_r)],Sr);const fs=(0,Se.d)({types:de.QT}),at=Sr},44917:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ce});var D=v(15861),R=v(17626),Z=(v(29132),v(84792)),Q=v(26584),$=v(61885),W=v(61996),B=v(47996),H=v(63290),X=v(10699),te=v(21726),ae=v(77712),de=(v(85931),v(90912),v(76898)),se=v(59318);function j(){return(j=(0,D.Z)(function*(ue){const pe="portalItem"in ue?ue:{portalItem:ue},he=yield v.e(7534).then(v.bind(v,7534));try{return yield he.fromItem(pe)}catch(me){const ge=pe&&pe.portalItem,_e=ge&&ge.id||"unset",Ee=ge&&ge.portal&&ge.portal.url||se.Z.portalUrl;throw H.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+Ee+"', id: '"+_e+"')",me),me}})).apply(this,arguments)}var Y=v(2004),ee=v(65234);let ie=0,J=class extends($.Z.EventedMixin((0,W.IG)(B.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new Y.Z(-180,-90,180,90,ee.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+ie++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=ee.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static fromArcGISServerUrl(ue){return(0,D.Z)(function*(){const pe="string"==typeof ue?{url:ue}:ue;return(yield Promise.all([v.e(8592),v.e(4578)]).then(v.bind(v,24578))).fromUrl(pe)})()}static fromPortalItem(ue){return function re(ue){return j.apply(this,arguments)}(ue)}initialize(){this.when().catch(ue=>{(0,X.D_)(ue)||H.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:ue})})}destroy(){if(this.parent){const ue=this,pe=this.parent;"layers"in pe&&pe.layers.includes(ue)?pe.layers.remove(ue):"tables"in pe&&pe.tables.includes(ue)?pe.tables.remove(ue):"baseLayers"in pe&&pe.baseLayers.includes(ue)?pe.baseLayers.remove(ue):"baseLayers"in pe&&pe.referenceLayers.includes(ue)&&pe.referenceLayers.remove(ue)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,te.mN)(this.url)}fetchAttributionData(){var ue=this;return(0,D.Z)(function*(){const pe=ue.attributionDataUrl;if(ue.hasAttributionData&&pe)return(yield(0,Z.default)(pe,{query:{f:"json"},responseType:"json"})).data;throw new Q.Z("layer:no-attribution-data","Layer does not have attribution data")})()}};(0,R._)([(0,ae.Cb)({type:String})],J.prototype,"attributionDataUrl",void 0),(0,R._)([(0,ae.Cb)({type:Y.Z})],J.prototype,"fullExtent",void 0),(0,R._)([(0,ae.Cb)({readOnly:!0})],J.prototype,"hasAttributionData",null),(0,R._)([(0,ae.Cb)({type:String,clonable:!1})],J.prototype,"id",void 0),(0,R._)([(0,ae.Cb)({type:Boolean,nonNullable:!0})],J.prototype,"legendEnabled",void 0),(0,R._)([(0,ae.Cb)({type:["show","hide","hide-children"]})],J.prototype,"listMode",void 0),(0,R._)([(0,ae.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],J.prototype,"opacity",void 0),(0,R._)([(0,ae.Cb)({clonable:!1})],J.prototype,"parent",void 0),(0,R._)([(0,ae.Cb)({readOnly:!0})],J.prototype,"parsedUrl",null),(0,R._)([(0,ae.Cb)({type:Boolean})],J.prototype,"popupEnabled",void 0),(0,R._)([(0,ae.Cb)({type:Boolean})],J.prototype,"attributionVisible",void 0),(0,R._)([(0,ae.Cb)({type:ee.Z})],J.prototype,"spatialReference",void 0),(0,R._)([(0,ae.Cb)({type:String})],J.prototype,"title",void 0),(0,R._)([(0,ae.Cb)({readOnly:!0,json:{read:!1}})],J.prototype,"type",void 0),(0,R._)([(0,ae.Cb)()],J.prototype,"url",void 0),(0,R._)([(0,ae.Cb)({type:Boolean,nonNullable:!0})],J.prototype,"visible",void 0),J=(0,R._)([(0,de.j)("esri.layers.Layer")],J);const ce=J},5437:(nt,Ae,v)=>{"use strict";v.d(Ae,{d:()=>D});const D="OBJECTID"},58141:(nt,Ae,v)=>{"use strict";v.d(Ae,{rk:()=>ae,Tj:()=>oe,GI:()=>le,CE:()=>de,Tq:()=>se,Zx:()=>re,Ee:()=>ee});var D=v(20414),R=v(23841),G=v(55494),Z=v(28347);class ae{constructor(J,ce,ue){this.strength=J,this.radius=ce,this.threshold=ue,this.type="bloom"}interpolate(J,ce,ue){this.strength=j(J.strength,ce.strength,ue),this.radius=j(J.radius,ce.radius,ue),this.threshold=j(J.threshold,ce.threshold,ue)}clone(){return new ae(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:Y(this.radius),strength:this.strength,threshold:this.threshold}}}class oe{constructor(J){this.radius=J,this.type="blur"}interpolate(J,ce,ue){this.radius=Math.round(j(J.radius,ce.radius,ue))}clone(){return new oe(this.radius)}toJSON(){return{type:"blur",radius:Y(this.radius)}}}class le{constructor(J,ce){this.type=J,this.amount=ce,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(J,ce,ue){this.amount=j(J.amount,ce.amount,ue),this._updateMatrix()}clone(){return new le(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const J=this._colorMatrix||(0,G.c)();switch(this.type){case"brightness":this._colorMatrix=((ie,J)=>{const ce=(0,Z.s)(ie,J,0,0,0,0,J,0,0,0,0,J,0,0,0,0,1);return(0,Z.t)(ce,ce)})(J,this.amount);break;case"contrast":this._colorMatrix=((ie,J)=>{const ce=(0,Z.s)(ie,J,0,0,.5-.5*J,0,J,0,.5-.5*J,0,0,J,.5-.5*J,0,0,0,1);return(0,Z.t)(ce,ce)})(J,this.amount);break;case"grayscale":this._colorMatrix=((ie,J)=>{const ce=1-this.amount,ue=(0,Z.s)(ie,.2126+.7874*ce,.7152-.7152*ce,.0722-.0722*ce,0,.2126-.2126*ce,.7152+.2848*ce,.0722-.0722*ce,0,.2126-.2126*ce,.7152-.7152*ce,.0722+.9278*ce,0,0,0,0,1);return(0,Z.t)(ue,ue)})(J);break;case"invert":this._colorMatrix=((ie,J)=>{const ce=1-2*J,ue=(0,Z.s)(ie,ce,0,0,J,0,ce,0,J,0,0,ce,J,0,0,0,1);return(0,Z.t)(ue,ue)})(J,this.amount);break;case"saturate":this._colorMatrix=((ie,J)=>{const ce=(0,Z.s)(ie,.213+.787*J,.715-.715*J,.072-.072*J,0,.213-.213*J,.715+.285*J,.072-.072*J,0,.213-.213*J,.715-.715*J,.072+.928*J,0,0,0,0,1);return(0,Z.t)(ce,ce)})(J,this.amount);break;case"sepia":this._colorMatrix=((ie,J)=>{const ce=1-this.amount,ue=(0,Z.s)(ie,.393+.607*ce,.769-.769*ce,.189-.189*ce,0,.349-.349*ce,.686+.314*ce,.168-.168*ce,0,.272-.272*ce,.534-.534*ce,.131+.869*ce,0,0,0,0,1);return(0,Z.t)(ue,ue)})(J)}}}class de{constructor(J,ce,ue,pe){this.offsetX=J,this.offsetY=ce,this.blurRadius=ue,this.color=pe,this.type="drop-shadow"}interpolate(J,ce,ue){this.offsetX=j(J.offsetX,ce.offsetX,ue),this.offsetY=j(J.offsetY,ce.offsetY,ue),this.blurRadius=j(J.blurRadius,ce.blurRadius,ue),this.color[0]=Math.round(j(J.color[0],ce.color[0],ue)),this.color[1]=Math.round(j(J.color[1],ce.color[1],ue)),this.color[2]=Math.round(j(J.color[2],ce.color[2],ue)),this.color[3]=j(J.color[3],ce.color[3],ue)}clone(){return new de(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const J=[...this.color];return J[3]*=255,{type:"drop-shadow",xoffset:Y(this.offsetX),yoffset:Y(this.offsetY),blurRadius:Y(this.blurRadius),color:J}}}class se{constructor(J){this.angle=J,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(J,ce,ue){this.angle=j(J.angle,ce.angle,ue),this._updateMatrix()}clone(){return new se(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const J=this._colorMatrix||(0,G.c)();this._colorMatrix=((ie,J)=>{const ce=Math.sin(J*Math.PI/180),ue=Math.cos(J*Math.PI/180),pe=(0,Z.s)(ie,.213+.787*ue-.213*ce,.715-.715*ue-.715*ce,.072-.072*ue+.928*ce,0,.213-.213*ue+.143*ce,.715+.285*ue+.14*ce,.072-.072*ue-.283*ce,0,.213-.213*ue-.787*ce,.715-.715*ue+.715*ce,.072+.928*ue+.072*ce,0,0,0,0,1);return(0,Z.t)(pe,pe)})(J,this.angle)}}class re{constructor(J){this.amount=J,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(J,ce,ue){this.amount=j(J.amount,ce.amount,ue)}clone(){return new re(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function j(ie,J,ce){return ie+(J-ie)*ce}function Y(ie){return Math.round(1e3*(0,R.Wz)(ie))/1e3}function ee(ie){switch(ie.type){case"grayscale":case"sepia":case"invert":return new le(ie.type,0);case"saturate":case"brightness":case"contrast":return new le(ie.type,1);case"opacity":return new re(1);case"hue-rotate":return new se(0);case"blur":return new oe(0);case"drop-shadow":return new de(0,0,0,[...(0,D.h$)("transparent")]);case"bloom":return new ae(0,0,1)}}},71149:(nt,Ae,v)=>{"use strict";v.d(Ae,{cW:()=>$,ij:()=>Q,rM:()=>X});var D=v(26584),R=v(94113),G=v(29538),Z=v(53390);function Q(oe,le,de){try{return function B(oe){if(!oe||0===oe.length)return null;if(function H(oe){const le=oe[0];return!!le&&"scale"in le}(oe)){const le=[];for(const de of oe)le.push({scale:de.scale,value:X(de.value)});return le}return X(oe)}(oe)}catch(se){de?.messages?.push(se)}return null}function $(oe,le,de,se){try{const re=function W(oe){const le=(0,G.Q)(oe);return le?(0,Z.Cb)(le)?le.map(de=>de.toJSON()):le.map(({scale:de,effects:se})=>({scale:de,value:se.map(re=>re.toJSON())})):null}(oe);(0,R.RB)(de,re,le)}catch(re){se.messages&&se.messages.push(re)}}function X(oe){if(!oe||!oe.length)return"";const le=[];for(const de of oe){let se=[];switch(de.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":se=[te(de,"amount")];break;case"blur":se=[te(de,"radius","pt")];break;case"hue-rotate":se=[te(de,"angle","deg")];break;case"drop-shadow":se=[te(de,"xoffset","pt"),te(de,"yoffset","pt"),te(de,"blurRadius","pt"),ae(de,"color")];break;case"bloom":se=[te(de,"strength"),te(de,"radius","pt"),te(de,"threshold")]}const re=`${de.type}(${se.filter(Boolean).join(" ")})`;(0,G.Q)(re),le.push(re)}return le.join(" ")}function te(oe,le,de){if(null==oe[le])throw new D.Z("effect:missing-parameter",`Missing parameter '${le}' in ${oe.type} effect`,{effect:oe});return de?oe[le]+de:""+oe[le]}function ae(oe,le){if(null==oe[le])throw new D.Z("effect:missing-parameter",`Missing parameter '${le}' in ${oe.type} effect`,{effect:oe});const de=oe[le];return`rgba(${de[0]||0}, ${de[1]||0}, ${de[2]||0}, ${de[3]/255||0})`}},29538:(nt,Ae,v)=>{"use strict";v.d(Ae,{Q:()=>H});var $,D=v(20414),R=v(26584),G=v(58141),Q=(v(1719),v(53390)),B={exports:{}};function H(xe){if(!xe||0===xe.length)return null;if("string"==typeof xe){const Ke=X(xe);return Ke&&0!==Ke.length?Ke:null}const ze=xe.map(Ke=>{if(!Number.isFinite(Ke.scale)||Ke.scale<=0)throw new R.Z("effect:invalid-scale","scale must be finite and greater than 0",{stop:Ke});return{scale:Ke.scale,effects:X(Ke.value)}});ze.sort((Ke,We)=>We.effects.length-Ke.effects.length);for(let Ke=0;KeWe.scale-Ke.scale),ze}function X(xe){let ze;if(!xe)return[];try{ze=B.exports.parse(xe)}catch(Ke){throw new R.Z("effect:invalid-syntax","Invalid effect syntax",{value:xe,error:Ke})}return ze.map(Ke=>function te(xe){try{switch(xe.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function ae(xe){let ze=1;return j(xe.parameters,1),1===xe.parameters.length&&(ze=me(xe.parameters[0])),new G.GI(xe.name,ze)}(xe);case"opacity":return function oe(xe){let ze=1;return j(xe.parameters,1),1===xe.parameters.length&&(ze=me(xe.parameters[0])),new G.Zx(ze)}(xe);case"hue-rotate":return function le(xe){let ze=0;return j(xe.parameters,1),1===xe.parameters.length&&(ze=function _e(xe){return function ue(xe){if("quantity"!==xe.type||!(0===xe.value&&null===xe.unit||xe.unit&&null!=ce[xe.unit]))throw new R.Z("effect:type-error",`Expected , Actual: ${Y(xe)}`,{term:xe})}(xe),xe.value*ce[xe.unit]||0}(xe.parameters[0])),new G.Tq(ze)}(xe);case"blur":return function de(xe){let ze=0;return j(xe.parameters,1),1===xe.parameters.length&&(ze=Ee(xe.parameters[0]),ee(ze,xe.parameters[0])),new G.Tj(ze)}(xe);case"drop-shadow":return function se(xe){const ze=[];let Ke=null;for(const We of xe.parameters)if("color"===We.type){if(ze.length&&Object.freeze(ze),Ke)throw new R.Z("effect:type-error","Accepts only one color",{});Ke=De(We)}else{const Ce=Ee(We);if(Object.isFrozen(ze))throw new R.Z("effect:type-error"," parameters not consecutive",{lengths:ze});ze.push(Ce),3===ze.length&&ee(Ce,We)}if(ze.length<2||ze.length>3)throw new R.Z("effect:type-error",`Expected {2,3}, Actual: {${ze.length}}`,{lengths:ze});return new G.CE(ze[0],ze[1],ze[2]||0,Ke||be("black"))}(xe);case"bloom":return function re(xe){let ze=1,Ke=0,We=0;return j(xe.parameters,3),xe.parameters[0]&&(ze=me(xe.parameters[0])),xe.parameters[1]&&(Ke=Ee(xe.parameters[1]),ee(Ke,xe.parameters[1])),xe.parameters[2]&&(We=me(xe.parameters[2])),new G.rk(ze,Ke,We)}(xe)}}catch(ze){throw ze.details.filter=xe,ze}throw new R.Z("effect:unknown-effect",`Effect '${xe.name}' is not supported`,{effect:xe})}(Ke))}function j(xe,ze){if(xe.length>ze)throw new R.Z("effect:type-error",`Function supports up to ${ze} parameters, Actual: ${xe.length}`,{parameters:xe})}function Y(xe){if("color"===xe.type)return"";if(xe.unit){if(pe[xe.unit])return"";if(ce[xe.unit])return"";if("%"===xe.unit)return""}return""}function ee(xe,ze){if(xe<0)throw new R.Z("effect:type-error",`Negative values are not allowed, Actual: ${xe}`,{term:ze})}($=B).exports&&($.exports=function(){function ze(Ce,Be,Fe,je){var Re=Error.call(this,Ce);return Object.setPrototypeOf&&Object.setPrototypeOf(Re,ze.prototype),Re.expected=Be,Re.found=Fe,Re.location=je,Re.name="SyntaxError",Re}function Ke(Ce,Be,Fe){return Fe=Fe||" ",Ce.length>Be?Ce:Ce+(Fe+=Fe.repeat(Be-=Ce.length)).slice(0,Be)}return function xe(Ce,Be){function Fe(){this.constructor=Ce}Fe.prototype=Be.prototype,Ce.prototype=new Fe}(ze,Error),ze.prototype.format=function(Ce){var Be="Error: "+this.message;if(this.location){var Fe,je=null;for(Fe=0;Fe0){for(Me=1,Ne=1;Mezn&&(zn=jr,kt=[]),kt.push(cr))}function en(){var cr;return(cr=function Mo(){var cr,ns;return Qt++,cr=jr,Ki(),"none"===Ce.substr(jr,4)?(ns="none",jr+=4):(ns=je,0===Qt&&As(Fr)),ns!==je?(Ki(),Gi=cr,cr=[]):(jr=cr,cr=je),Qt--,cr===je&&0===Qt&&As(ar),cr}())===je&&(cr=function na(){var cr,ns;if(cr=[],(ns=Po())!==je)for(;ns!==je;)cr.push(ns),ns=Po();else cr=je;return cr}()),cr}function Po(){var cr,ns,vs,Ri;return cr=jr,Ki(),(ns=function _n(){var cr,ns,vs;return Qt++,cr=jr,(ns=Ma())!==je?(40===Ce.charCodeAt(jr)?(vs="(",jr++):(vs=je,0===Qt&&As(Et)),vs!==je?(Gi=cr,cr=ns):(jr=cr,cr=je)):(jr=cr,cr=je),Qt--,cr===je&&(ns=je,0===Qt&&As(rr)),cr}())!==je?(Ki(),(vs=function ja(){var cr,ns,vs,Ri,Bn,cn,Uo,Na;if(cr=jr,(ns=An())!==je){for(vs=[],Ri=jr,Bn=Ki(),44===Ce.charCodeAt(jr)?(cn=",",jr++):(cn=je,0===Qt&&As(wt)),cn===je&&(cn=null),Uo=Ki(),(Na=An())!==je?Ri=Bn=[Bn,cn,Uo,Na]:(jr=Ri,Ri=je);Ri!==je;)vs.push(Ri),Ri=jr,Bn=Ki(),44===Ce.charCodeAt(jr)?(cn=",",jr++):(cn=je,0===Qt&&As(wt)),cn===je&&(cn=null),Uo=Ki(),(Na=An())!==je?Ri=Bn=[Bn,cn,Uo,Na]:(jr=Ri,Ri=je);Gi=cr,cr=function(cr,ns){return ns.length>0?function Pa(cr,ns,vs){return[cr].concat(function Fa(cr,ns){return cr.map(function(vs){return vs[ns]})}(ns,vs))}(cr,ns,3):[cr]}(ns,vs)}else jr=cr,cr=je;return cr}())===je&&(vs=null),Ki(),41===Ce.charCodeAt(jr)?(Ri=")",jr++):(Ri=je,0===Qt&&As(mr)),Ri!==je?(Ki(),Gi=cr,cr=function(cr,ns){return{type:"function",name:cr,parameters:ns||[]}}(ns,vs)):(jr=cr,cr=je)):(jr=cr,cr=je),cr}function An(){var cr,ns;return cr=jr,(ns=function Ei(){var cr,ns,vs;return Qt++,cr=jr,Ki(),(ns=Lo())!==je?(37===Ce.charCodeAt(jr)?(vs="%",jr++):(vs=je,0===Qt&&As(dr)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"%"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),Qt--,cr===je&&0===Qt&&As(zt),cr}())===je&&(ns=function nc(){var cr,ns,vs;return Qt++,cr=jr,Ki(),(ns=Lo())!==je?("px"===Ce.substr(jr,2)?(vs="px",jr+=2):(vs=je,0===Qt&&As(Tr)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"px"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,Ki(),(ns=Lo())!==je?("cm"===Ce.substr(jr,2)?(vs="cm",jr+=2):(vs=je,0===Qt&&As(Dr)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"cm"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,Ki(),(ns=Lo())!==je?("mm"===Ce.substr(jr,2)?(vs="mm",jr+=2):(vs=je,0===Qt&&As(Lr)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"mm"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,Ki(),(ns=Lo())!==je?("in"===Ce.substr(jr,2)?(vs="in",jr+=2):(vs=je,0===Qt&&As(Hr)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"in"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,Ki(),(ns=Lo())!==je?("pt"===Ce.substr(jr,2)?(vs="pt",jr+=2):(vs=je,0===Qt&&As(Qr)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"pt"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,Ki(),(ns=Lo())!==je?("pc"===Ce.substr(jr,2)?(vs="pc",jr+=2):(vs=je,0===Qt&&As(Jr)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"pc"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je)))))),Qt--,cr===je&&0===Qt&&As(hr),cr}())===je&&(ns=function Jn(){var cr,ns,vs;return Qt++,cr=jr,(ns=Lo())!==je?("deg"===Ce.substr(jr,3)?(vs="deg",jr+=3):(vs=je,0===Qt&&As(Cs)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"deg"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,(ns=Lo())!==je?("rad"===Ce.substr(jr,3)?(vs="rad",jr+=3):(vs=je,0===Qt&&As(Dt)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"rad"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,(ns=Lo())!==je?("grad"===Ce.substr(jr,4)?(vs="grad",jr+=4):(vs=je,0===Qt&&As(ct)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"grad"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je),cr===je&&(cr=jr,(ns=Lo())!==je?("turn"===Ce.substr(jr,4)?(vs="turn",jr+=4):(vs=je,0===Qt&&As(At)),vs!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:"turn"}}(ns)):(jr=cr,cr=je)):(jr=cr,cr=je)))),Qt--,cr===je&&(ns=je,0===Qt&&As(Ss)),cr}())===je&&(ns=function jl(){var cr,ns;return Qt++,cr=jr,Ki(),(ns=Lo())!==je?(Gi=cr,cr=function(cr){return{value:cr,unit:null}}(ns)):(jr=cr,cr=je),Qt--,cr===je&&0===Qt&&As(Kt),cr}()),ns!==je&&(Gi=cr,ns=function(cr){return{type:"quantity",value:cr.value,unit:cr.unit}}(ns)),(cr=ns)===je&&(cr=jr,(ns=function oc(){var cr,ns,vs,Ri;if(Qt++,cr=jr,35===Ce.charCodeAt(jr)?(ns="#",jr++):(ns=je,0===Qt&&As(_r)),ns!==je){if(vs=[],Wt.test(Ce.charAt(jr))?(Ri=Ce.charAt(jr),jr++):(Ri=je,0===Qt&&As(Or)),Ri!==je)for(;Ri!==je;)vs.push(Ri),Wt.test(Ce.charAt(jr))?(Ri=Ce.charAt(jr),jr++):(Ri=je,0===Qt&&As(Or));else vs=je;vs!==je?(Gi=cr,cr={type:"hex",value:Vt()}):(jr=cr,cr=je)}else jr=cr,cr=je;return cr===je&&(cr=jr,(ns=Po())!==je&&(Gi=cr,ns=function(cr){return{type:"function",value:cr}}(ns)),(cr=ns)===je&&(cr=jr,(ns=Ma())!==je&&(Gi=cr,ns={type:"named",value:Vt()}),cr=ns)),Qt--,cr===je&&(ns=je,0===Qt&&As(tr)),cr}())!==je&&(Gi=cr,ns=function(cr){return{type:"color",colorType:cr.type,value:cr.value}}(ns)),cr=ns),cr}function Ki(){var cr,ns;for(Qt++,cr=[],jt.test(Ce.charAt(jr))?(ns=Ce.charAt(jr),jr++):(ns=je,0===Qt&&As(sr));ns!==je;)cr.push(ns),jt.test(Ce.charAt(jr))?(ns=Ce.charAt(jr),jr++):(ns=je,0===Qt&&As(sr));return Qt--,ns=je,0===Qt&&As(or),cr}function Ma(){var cr,ns,vs;if(Qt++,cr=jr,ns=[],$t.test(Ce.charAt(jr))?(vs=Ce.charAt(jr),jr++):(vs=je,0===Qt&&As(Ft)),vs!==je)for(;vs!==je;)ns.push(vs),$t.test(Ce.charAt(jr))?(vs=Ce.charAt(jr),jr++):(vs=je,0===Qt&&As(Ft));else ns=je;return ns!==je&&(Gi=cr,ns=Vt()),Qt--,(cr=ns)===je&&(ns=je,0===Qt&&As(St)),cr}function Lo(){var cr,ns,vs,Ri,Bn,cn,Uo;for(cr=jr,pr.test(Ce.charAt(jr))?(Ce.charAt(jr),jr++):0===Qt&&As(gs),ns=jr,vs=[],gr.test(Ce.charAt(jr))?(Ri=Ce.charAt(jr),jr++):(Ri=je,0===Qt&&As(Kr));Ri!==je;)vs.push(Ri),gr.test(Ce.charAt(jr))?(Ri=Ce.charAt(jr),jr++):(Ri=je,0===Qt&&As(Kr));if(46===Ce.charCodeAt(jr)?(Ri=".",jr++):(Ri=je,0===Qt&&As(qt)),Ri!==je){if(Bn=[],gr.test(Ce.charAt(jr))?(cn=Ce.charAt(jr),jr++):(cn=je,0===Qt&&As(Kr)),cn!==je)for(;cn!==je;)Bn.push(cn),gr.test(Ce.charAt(jr))?(cn=Ce.charAt(jr),jr++):(cn=je,0===Qt&&As(Kr));else Bn=je;Bn!==je?ns=vs=[vs,Ri,Bn]:(jr=ns,ns=je)}else jr=ns,ns=je;if(ns===je)if(ns=[],gr.test(Ce.charAt(jr))?(vs=Ce.charAt(jr),jr++):(vs=je,0===Qt&&As(Kr)),vs!==je)for(;vs!==je;)ns.push(vs),gr.test(Ce.charAt(jr))?(vs=Ce.charAt(jr),jr++):(vs=je,0===Qt&&As(Kr));else ns=je;if(ns!==je){if(vs=jr,101===Ce.charCodeAt(jr)?(Ri="e",jr++):(Ri=je,0===Qt&&As(Ir)),Ri!==je){if(pr.test(Ce.charAt(jr))?(Bn=Ce.charAt(jr),jr++):(Bn=je,0===Qt&&As(gs)),Bn===je&&(Bn=null),cn=[],gr.test(Ce.charAt(jr))?(Uo=Ce.charAt(jr),jr++):(Uo=je,0===Qt&&As(Kr)),Uo!==je)for(;Uo!==je;)cn.push(Uo),gr.test(Ce.charAt(jr))?(Uo=Ce.charAt(jr),jr++):(Uo=je,0===Qt&&As(Kr));else cn=je;cn!==je?vs=Ri=[Ri,Bn,cn]:(jr=vs,vs=je)}else jr=vs,vs=je;vs===je&&(vs=null),Gi=cr,cr=parseFloat(Vt())}else jr=cr,cr=je;return cr}if((Fe=Ie())!==je&&jr===Ce.length)return Fe;throw Fe!==je&&jr or , Actual: ${Y(xe)}`,{term:xe})}(xe);const ze=xe.value;return ee(ze,xe),"%"===xe.unit?.01*ze:ze}function Ee(xe){return function he(xe){if("quantity"!==xe.type||!(0===xe.value&&null===xe.unit||xe.unit&&null!=pe[xe.unit]))throw new R.Z("effect:type-error",`Expected , Actual: ${Y(xe)}`,{term:xe})}(xe),xe.value*pe[xe.unit]||0}function De(xe){switch(xe.colorType){case"hex":return(0,D.rW)(xe.value);case"named":return be(xe.value);case"function":return function ve(xe){if(j(xe.parameters,4),Se.test(xe.name))return[me(xe.parameters[0]),me(xe.parameters[1]),me(xe.parameters[2]),xe.parameters[3]?me(xe.parameters[3]):1];if(ye.test(xe.name))return(0,D.B7)(function ge(xe){return function ie(xe){if("quantity"!==xe.type||null!==xe.unit)throw new R.Z("effect:type-error",`Expected , Actual: ${Y(xe)}`,{term:xe})}(xe),ee(xe.value,xe),xe.value}(xe.parameters[0]),me(xe.parameters[1]),me(xe.parameters[2]),xe.parameters[3]?me(xe.parameters[3]):1);throw new R.Z("effect:syntax-error",`Invalid color function '${xe.name}'`,{colorFunction:xe})}(xe.value)}}function be(xe){if(!(0,D.St)(xe))throw new R.Z("effect:unknown-color",`color '${xe}' isn't valid`,{namedColor:xe});return(0,D.VL)(xe)}const Se=/^rgba?/i,ye=/^hsla?/i},53390:(nt,Ae,v)=>{"use strict";v.d(Ae,{AS:()=>R,Cb:()=>Z,uF:()=>G});var D=v(58141);function R(Q,$){const W=Q.length>$.length?Q:$;return(Q.length>$.length?$:Q).every((B,H)=>B.type===W[H].type)}function G(Q,$){const W=Q.length>$.length?Q:$,B=Q.length>$.length?$:Q;for(let H=B.length;H{"use strict";v.d(Ae,{S6:()=>G,nd:()=>Z,u_:()=>R});var D=v(62208);class R{constructor($=null,W={},B,H){this.geometry=$,this.attributes=W,this.centroid=B,this.objectId=H,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const $=new R(this.geometry,this.attributes,this.centroid,this.objectId);return $.displayId=this.displayId,$.geohashX=this.geohashX,$.geohashY=this.geohashY,$}}function G(Q){return!((0,D.Wi)(Q.geometry)||!Q.geometry.coords||!Q.geometry.coords.length)}class Z extends R{}},95786:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>D});class D{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const G=new D;return G.objectIdFieldName=this.objectIdFieldName,G.globalIdFieldName=this.globalIdFieldName,G.geohashFieldName=this.geohashFieldName,G.geometryProperties=this.geometryProperties,G.geometryType=this.geometryType,G.spatialReference=this.spatialReference,G.hasZ=this.hasZ,G.hasM=this.hasM,G.features=this.features,G.fields=this.fields,G.transform=this.transform,G.exceededTransferLimit=this.exceededTransferLimit,G.uniqueIdField=this.uniqueIdField,G.queryGeometry=this.queryGeometry,G.queryGeometryType=this.queryGeometryType,G}}},88071:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>D});class D{constructor(G=[],Z=[],Q=!1){this.lengths=G??[],this.coords=Z??[],this.hasIndeterminateRingOrder=Q}static fromRect(G){const[Z,Q,$,W]=G,B=$-Z,H=W-Q;return new D([5],[Z,Q,B,0,0,H,-B,0,0,-H])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce((G,Z)=>G+Z)}forEachVertex(G){let Z=0;this.lengths.length||G(this.coords[0],this.coords[1]);for(let Q=0;Q{"use strict";function D(G,Z,Q){return{objectId:G,target:Z,distance:Q,type:"vertex"}}function R(G,Z,Q,$,W,B=!1){return{objectId:G,target:Z,distance:Q,type:"edge",start:$,end:W,draped:B}}v.d(Ae,{p:()=>R,u:()=>D})},53639:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>oe,k:()=>$}),v(8314);var R=v(62208),G=v(37053);function Z(le,de){if(le===de)return!0;if(null==le||null==de||le.length!==de.length)return!1;for(let se=0;se{"use strict";function D(R){return"point"===R.type}v.d(Ae,{f:()=>D})},38114:(nt,Ae,v)=>{"use strict";v.d(Ae,{FS:()=>pe,MS:()=>_e,PA:()=>re,Pj:()=>se,R3:()=>ce,S6:()=>le,TF:()=>me,Tx:()=>ee,Wh:()=>oe,Xw:()=>J,dF:()=>ue});var D=v(27306),G=(v(8314),v(62208)),Z=v(55713),Q=v(86236),$=v(65234),W=v(5548),B=v(65401),H=v(7848),X=v(71774),te=v(36255);v(53639);class oe{constructor(Se,ye,ve){this.uid=Se,this.geometry=ye,this.attributes=ve,this.visible=!0,this.objectId=null,this.centroid=null}}function le(be){return(0,G.pC)(be.geometry)}class se{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}function re(be){const Se=X.Mk.fromJSON(be.geometryType),ye=$.Z.fromJSON(be.spatialReference),ve=be.transform,xe=be.features.map(ze=>{const Ke=function j(be,Se,ye,ve){return{uid:(0,Q.D)(),objectId:ve&&be.attributes?be.attributes[ve]:null,attributes:be.attributes,geometry:Y(be.geometry,Se,ye),visible:!0}}(ze,Se,ye,be.objectIdFieldName),We=Ke.geometry;if((0,G.pC)(We)&&ve)switch(We.type){case"point":Ke.geometry=(0,H.U1)(ve,We,We,We.hasZ,We.hasM);break;case"multipoint":Ke.geometry=(0,H.J9)(ve,We,We,We.hasZ,We.hasM);break;case"polygon":Ke.geometry=(0,H.Ie)(ve,We,We,We.hasZ,We.hasM);break;case"polyline":Ke.geometry=(0,H.G6)(ve,We,We,We.hasZ,We.hasM);break;case"extent":case"mesh":Ke.geometry=We}return Ke});return{geometryType:Se,features:xe,spatialReference:ye,fields:be.fields?be.fields.map(ze=>te.Z.fromJSON(ze)):null,objectIdFieldName:be.objectIdFieldName,globalIdFieldName:be.globalIdFieldName,geohashFieldName:be.geohashFieldName,geometryProperties:be.geometryProperties,hasZ:be.hasZ,hasM:be.hasM,exceededTransferLimit:be.exceededTransferLimit,transform:null}}function Y(be,Se,ye){if((0,G.Wi)(be))return null;switch(Se){case"point":return{x:be.x,y:be.y,z:be.z,m:be.m,hasZ:null!=be.z,hasM:null!=be.m,type:"point",spatialReference:ye};case"polyline":return{paths:be.paths,hasZ:!!be.hasZ,hasM:!!be.hasM,type:"polyline",spatialReference:ye};case"polygon":return{rings:be.rings,hasZ:!!be.hasZ,hasM:!!be.hasM,type:"polygon",spatialReference:ye};case"multipoint":return{points:be.points,hasZ:!!be.hasZ,hasM:!!be.hasM,type:"multipoint",spatialReference:ye}}}function ee(be,Se,ye,ve){return{x:be,y:Se,z:ye,hasZ:null!=ye,hasM:!1,spatialReference:ve,type:"point"}}function J(be){let Se=32;return Se+=(0,D.f2)(be.attributes),Se+=3,Se+=8+function ie(be){if((0,G.Wi)(be))return 0;let Se=32;switch(be.type){case"point":Se+=42;break;case"polyline":case"polygon":{let ye=0;const ve=2+(be.hasZ?1:0)+(be.hasM?1:0),xe="polyline"===be.type?be.paths:be.rings;for(const ze of xe)ye+=ze.length;Se+=8*ye*ve+64,Se+=128*ye,Se+=34,Se+=32*(xe.length+1);break}case"multipoint":{const ve=be.points.length;Se+=8*ve*(2+(be.hasZ?1:0)+(be.hasM?1:0))+64,Se+=128*ve,Se+=34,Se+=32;break}case"extent":Se+=98,be.hasM&&(Se+=32),be.hasZ&&(Se+=32);break;case"mesh":Se+=(0,Z.Xw)(be.vertexAttributes.position),Se+=(0,Z.Xw)(be.vertexAttributes.normal),Se+=(0,Z.Xw)(be.vertexAttributes.uv),Se+=(0,Z.Xw)(be.vertexAttributes.tangent)}return Se}(be.geometry),Se}function ce(be){if((0,G.Wi)(be))return 0;switch(be.type){case"point":return 1;case"polyline":{let Se=0;for(const ye of be.paths)Se+=ye.length;return Se}case"polygon":{let Se=0;for(const ye of be.rings)Se+=ye.length;return Se}case"multipoint":return be.points.length;case"extent":return 2;case"mesh":{const Se=be.vertexAttributes&&be.vertexAttributes.position;return Se?Se.length/3:0}default:return}}function ue(be){if((0,G.Wi)(be))return!1;switch(be.type){case"extent":case"point":return!0;case"polyline":for(const Se of be.paths)if(Se.length>0)return!0;return!1;case"polygon":for(const Se of be.rings)if(Se.length>0)return!0;return!1;case"multipoint":return be.points.length>0;case"mesh":return!be.loaded||be.vertexAttributes.position.length>0}}function pe(be,Se){switch((0,W.cS)(Se),"mesh"===be.type&&(be=be.extent),be.type){case"point":Se[0]=Se[3]=be.x,Se[1]=Se[4]=be.y,be.hasZ&&(Se[2]=Se[5]=be.z);break;case"polyline":for(let ye=0;ye{"use strict";v.d(Ae,{$:()=>jt,$g:()=>Wt,EI:()=>Xe,GH:()=>Ye,IN:()=>re,Iv:()=>ve,J6:()=>We,Jd:()=>se,Nh:()=>_t,RZ:()=>ut,Uy:()=>He,XA:()=>Le,Yn:()=>Me,cn:()=>et,dd:()=>Se,di:()=>Je,eG:()=>je,fQ:()=>ie,hY:()=>pr,h_:()=>qe,lM:()=>ot,lz:()=>Fr,oB:()=>wt,zj:()=>Ct});var D=v(26584),R=v(63290),G=v(62208),Z=v(91179),Q=v(66385),$=v(95786),W=v(88071);function B(Et,St){return Et?St?4:3:St?3:2}const H=R.Z.getLogger("esri.layers.graphics.featureConversionUtils"),X={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},te=(Et,St,Ft,zt,dr,hr)=>{Et[Ft]=dr,Et[Ft+1]=hr},ae=(Et,St,Ft,zt,dr,hr)=>{Et[Ft]=dr,Et[Ft+1]=hr,Et[Ft+2]=St[zt+2]},oe=(Et,St,Ft,zt,dr,hr)=>{Et[Ft]=dr,Et[Ft+1]=hr,Et[Ft+2]=St[zt+3]},le=(Et,St,Ft,zt,dr,hr)=>{Et[Ft]=dr,Et[Ft+1]=hr,Et[Ft+2]=St[zt+2],Et[Ft+3]=St[zt+3]};function de(Et,St,Ft,zt){if(Et){if(Ft)return St&&zt?le:ae;if(St&&zt)return oe}else if(St&&zt)return ae;return te}function se({scale:Et,translate:St},Ft){return Math.round((Ft-St[0])/Et[0])}function re({scale:Et,translate:St},Ft){return Math.round((St[1]-Ft)/Et[1])}function ee({scale:Et,translate:St},Ft,zt){return Ft*Et[zt]+St[zt]}function ie(Et,St,Ft){return Et?St?Ft?ge(Et):ue(Et):Ft?he(Et):J(Et):null}function J(Et){const St=Et.coords;return{x:St[0],y:St[1]}}function ce(Et,St){return Et.coords[0]=St.x,Et.coords[1]=St.y,Et}function ue(Et){const St=Et.coords;return{x:St[0],y:St[1],z:St[2]}}function pe(Et,St){return Et.coords[0]=St.x,Et.coords[1]=St.y,Et.coords[2]=St.z,Et}function he(Et){const St=Et.coords;return{x:St[0],y:St[1],m:St[2]}}function me(Et,St){return Et.coords[0]=St.x,Et.coords[1]=St.y,Et.coords[2]=St.m,Et}function ge(Et){const St=Et.coords;return{x:St[0],y:St[1],z:St[2],m:St[3]}}function _e(Et,St){return Et.coords[0]=St.x,Et.coords[1]=St.y,Et.coords[2]=St.z,Et.coords[3]=St.m,Et}function De(Et,St){return Et&&St?_e:Et?pe:St?me:ce}function Se(Et,St,Ft=De(null!=St.z,null!=St.m)){return Ft(Et,St)}function ve(Et,St,Ft){if((0,G.Wi)(Et))return null;const zt=B(St,Ft),dr=[];for(let hr=0;hr=Lr&&(Et.lengths.push(Kr),Or=_r)}return sr(Et.coords,Or),Et.coords.length?Et:null}function Ct(Et,St,Ft,zt,dr,hr,Tr=Ft,Dr=zt){if(or(Et),!St||!St.coords.length)return null;const Lr=X[dr],{coords:Hr,lengths:Qr}=St,Jr=B(Ft,zt),Ss=B(Ft&&Tr,zt&&Dr),Cs=de(Ft,zt,Tr,Dr);if(!Qr.length)return Cs(Et.coords,Hr,0,0,Hr[0],Hr[1]),or(Et,Jr,0),Et;let Dt=0;const ct=hr*hr;for(const At of Qr){if(At=Lr?Et.lengths.push(Or):sr(Et.coords,Kt*Ss),Dt+=At*Jr}return Et.coords.length?Et:null}function vt(Et,St,Ft,zt){const dr=Et[St],hr=Et[St+1],Lr=Et[zt],Hr=Et[zt+1];let Qr=Et[Ft],Jr=Et[Ft+1],Ss=Lr-Qr,Cs=Hr-Jr;if(0!==Ss||0!==Cs){const Dt=((dr-Qr)*Ss+(hr-Jr)*Cs)/(Ss*Ss+Cs*Cs);Dt>1?(Qr=Lr,Jr=Hr):Dt>0&&(Qr+=Ss*Dt,Jr+=Cs*Dt)}return Ss=dr-Qr,Cs=hr-Jr,Ss*Ss+Cs*Cs}function Lt(Et,St,Ft,zt,dr,hr,Tr){let Dr,Lr=zt,Hr=0;for(let Qr=hr+Ft;QrLr&&(Hr=Qr,Lr=Dr);Lr>zt&&(Hr-hr>Ft&&Lt(Et,St,Ft,zt,dr,hr,Hr),dr(Et,St,Et.length,Hr,St[Hr],St[Hr+1]),Tr-Hr>Ft&&Lt(Et,St,Ft,zt,dr,Hr,Tr))}function jt(Et,St,Ft,zt){if((0,G.Wi)(St)||!St.coords||!St.coords.length)return null;const dr=B(Ft,zt);let hr=Number.POSITIVE_INFINITY,Tr=Number.POSITIVE_INFINITY,Dr=Number.NEGATIVE_INFINITY,Lr=Number.NEGATIVE_INFINITY;if(St&&St.coords){const Hr=St.coords;for(let Qr=0;Qr{"use strict";v.d(Ae,{D:()=>ie,Ou:()=>X,WG:()=>ee,kB:()=>le,mW:()=>oe}),v(29132);var R=v(88879),Z=(v(8314),v(58817)),Q=v(62208),$=v(55713),W=v(91179),B=v(38114),H=v(65234);function X(J){return"declaredClass"in J}function te(J){return"declaredClass"in J}function oe(J,ce){if(!J)return null;if(function ae(J){return"declaredClass"in J}(J))return J;const ue=new R.Z({layer:ce,sourceLayer:ce});return ue.visible=J.visible,ue.symbol=(0,Z.d9)(J.symbol),ue.attributes=(0,Z.d9)(J.attributes),ue.geometry=le(J.geometry),ue}function le(J){return(0,Q.Wi)(J)?null:X(J)?J:(0,W.im)(function de(J){const{wkid:ce,wkt:ue,latestWkid:pe}=J.spatialReference,he={wkid:ce,wkt:ue,latestWkid:pe};switch(J.type){case"point":{const{x:me,y:ge,z:_e,m:Ee}=J;return{x:me,y:ge,z:_e,m:Ee,spatialReference:he}}case"polygon":{const{rings:me,hasZ:ge,hasM:_e}=J;return{rings:se(me),hasZ:ge,hasM:_e,spatialReference:he}}case"polyline":{const{paths:me,hasZ:ge,hasM:_e}=J;return{paths:se(me),hasZ:ge,hasM:_e,spatialReference:he}}case"extent":{const{xmin:me,xmax:ge,ymin:_e,ymax:Ee,zmin:De,zmax:be,mmin:Se,mmax:ye,hasZ:ve,hasM:xe}=J;return{xmin:me,xmax:ge,ymin:_e,ymax:Ee,zmin:De,zmax:be,mmin:Se,mmax:ye,hasZ:ve,hasM:xe,spatialReference:he}}case"multipoint":{const{points:me,hasZ:ge,hasM:_e}=J;return{points:Y(me)?re(me):me,hasZ:ge,hasM:_e,spatialReference:he}}default:return}}(J))}function se(J){return function j(J){for(const ce of J)if(0!==ce.length)return Y(ce);return!1}(J)?J.map(ce=>re(ce)):J}function re(J){return J.map(ce=>(0,$.qo)(ce))}function Y(J){return J.length&&((0,$.xZ)(J[0])||(0,$.fS)(J[0]))}function ee(J,ce){if(!J)return null;let ue;if(te(J)){if(null==ce)return J.clone();if(te(ce))return ce.copy(J)}return null!=ce?(ue=ce,ue.x=J.x,ue.y=J.y,ue.spatialReference=J.spatialReference,J.hasZ?(ue.z=J.z,ue.hasZ=J.hasZ):(ue.z=null,ue.hasZ=!1),J.hasM?(ue.m=J.m,ue.hasM=!0):(ue.m=null,ue.hasM=!1)):(ue=(0,B.Tx)(J.x,J.y,J.z,J.spatialReference),J.hasM&&(ue.m=J.m,ue.hasM=!0)),ue}function ie(J){const{wkid:ce,wkt:ue,latestWkid:pe}=J;return H.Z.fromJSON({wkid:ce,wkt:ue,latestWkid:pe})}},50085:(nt,Ae,v)=>{"use strict";v.d(Ae,{V:()=>W});var D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898));const W=B=>{let H=class extends B{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):function $(B){return"portalItem"in B}(this)?this.portalItem?.apiKey:null}set apiKey(X){null!=X?this._override("apiKey",X):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,D._)([(0,R.Cb)({type:String})],H.prototype,"apiKey",null),H=(0,D._)([(0,Q.j)("esri.layers.mixins.APIKeyMixin")],H),H}},65088:(nt,Ae,v)=>{"use strict";v.d(Ae,{Y:()=>H});var D=v(17626),R=v(63290),G=v(62208),Z=v(77712),W=(v(85931),v(90912),v(76898)),B=v(38305);const H=X=>{let te=class extends X{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const ae=(0,B.Qc)(this.url);if((0,G.pC)(ae)&&ae.title)return ae.title}return this._get("title")||""}set title(ae){this._set("title",ae)}set url(ae){this._set("url",(0,B.Nm)(ae,R.Z.getLogger(this.declaredClass)))}};return(0,D._)([(0,Z.Cb)()],te.prototype,"title",null),(0,D._)([(0,Z.Cb)({type:String})],te.prototype,"url",null),te=(0,D._)([(0,W.j)("esri.layers.mixins.ArcGISService")],te),te}},552:(nt,Ae,v)=>{"use strict";v.d(Ae,{h:()=>B});var D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(71149);const W={read:{reader:$.ij},write:{allowNull:!0,writer:$.cW}},B=H=>{let X=class extends H{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,D._)([(0,R.Cb)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],X.prototype,"blendMode",void 0),(0,D._)([(0,R.Cb)({json:{read:!1,write:!1,origins:{"web-map":W,"portal-item":W}}})],X.prototype,"effect",void 0),X=(0,D._)([(0,Q.j)("esri.layers.mixins.BlendLayer")],X),X}},50107:(nt,Ae,v)=>{"use strict";v.d(Ae,{N:()=>$});var D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898));const $=W=>{let B=class extends W{constructor(){super(...arguments),this.customParameters=null}};return(0,D._)([(0,R.Cb)({type:Object,json:{write:{overridePolicy:H=>({enabled:!!(H&&Object.keys(H).length>0)})}}})],B.prototype,"customParameters",void 0),B=(0,D._)([(0,Q.j)("esri.layers.mixins.CustomParametersMixin")],B),B}},6733:(nt,Ae,v)=>{"use strict";v.d(Ae,{dU:()=>H,lQ:()=>ae,o1:()=>oe});var D=v(17626),R=v(61885),G=v(58817),B=(v(63290),v(90912),v(26584),v(8314),v(76898));const H=new R.Z.EventEmitter,X="esri.layers.mixins.EditBusLayer",te=Symbol(X);function ae(le){return null!=le&&"object"==typeof le&&te in le}const oe=le=>{var de;let se=class extends le{constructor(...re){super(...re),this[de]=!0,this.when().then(()=>{this.own([H.on("edits",j=>{const ie="layer"in j?j.layer?.layerId:j.layerId,J=j.event;if(("layer"in j?j.layer:null)===this||("layer"in j?j.layer?.url:j.serviceUrl)!==this.url)return;if(null!=ie&&null!=this.layerId&&ie===this.layerId)return void this.emit("edits",(0,G.d9)(J));const ce=J.editedFeatures?.find(({layerId:ue})=>ue===this.layerId);if(ce){const{adds:ue,updates:pe,deletes:he}=ce.editedFeatures,me={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:ue?ue.map(({attributes:ge})=>({objectId:this.objectIdField&&ge[this.objectIdField],globalId:this.globalIdField&&ge[this.globalIdField]})):[],deletedFeatures:he?he.map(({attributes:ge})=>({objectId:this.objectIdField&&ge[this.objectIdField],globalId:this.globalIdField&&ge[this.globalIdField]})):[],updatedFeatures:pe?pe.map(({current:{attributes:ge}})=>({objectId:this.objectIdField&&ge[this.objectIdField],globalId:this.globalIdField&&ge[this.globalIdField]})):[],editedFeatures:(0,G.d9)(J.editedFeatures)};this.emit("edits",me)}})])},()=>{})}};return de=te,se=(0,D._)([(0,B.j)(X)],se),se}},35126:(nt,Ae,v)=>{"use strict";v.d(Ae,{b:()=>B});var D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(2319);const W={write:{allowNull:!0}},B=H=>{let X=class extends H{constructor(){super(...arguments),this.featureEffect=null}};return(0,D._)([(0,R.Cb)({type:$.Z,json:{origins:{"web-map":W,"portal-item":W}}})],X.prototype,"featureEffect",void 0),X=(0,D._)([(0,Q.j)("esri.layers.mixins.FeatureEffectLayer")],X),X}},87987:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>_e});var D=v(17626),R=v(46160),G=v(58817),Z=v(63290),Q=v(77712),W=(v(90912),v(68653)),B=v(76898),H=v(99433),X=v(2004),te=v(79334),ae=v(65234),oe=v(38305),le=v(13812),de=v(79608),se=v(86810);v(85931);let j=class extends((0,de.J)(se.wq)){constructor(Ee){super(Ee)}};(0,D._)([(0,Q.Cb)({constructOnly:!0,json:{write:!0}})],j.prototype,"name",void 0),(0,D._)([(0,Q.Cb)({constructOnly:!0,json:{write:!0}})],j.prototype,"fields",void 0),(0,D._)([(0,Q.Cb)({constructOnly:!0,json:{write:!0}})],j.prototype,"isAscending",void 0),(0,D._)([(0,Q.Cb)({constructOnly:!0,json:{write:!0}})],j.prototype,"indexType",void 0),(0,D._)([(0,Q.Cb)({constructOnly:!0,json:{write:!0}})],j.prototype,"isUnique",void 0),(0,D._)([(0,Q.Cb)({constructOnly:!0,json:{write:!0}})],j.prototype,"description",void 0),j=(0,D._)([(0,B.j)("esri.layers.support.FeatureIndex")],j);var Y=v(26331),ee=v(16730);let ie=class extends((0,de.J)(se.wq)){constructor(Ee){super(Ee),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,D._)([(0,Q.Cb)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],ie.prototype,"shapeAreaField",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],ie.prototype,"shapeLengthField",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{read:Ee=>ee.gV.read(Ee)||ee.Jo.read(Ee)}})],ie.prototype,"units",void 0),ie=(0,D._)([(0,B.j)("esri.layers.support.GeometryFieldsInfo")],ie);const J=ie;var ce=v(2430),ue=v(2076);const pe=new ue.X({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),he=new ue.X({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let me=class extends((0,de.J)(se.wq)){constructor(Ee){super(Ee),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,D._)([(0,Q.Cb)({json:{read:pe.read,write:pe.write}})],me.prototype,"cardinality",void 0),(0,D._)([(0,Q.Cb)({json:{read:!0,write:!0}})],me.prototype,"composite",void 0),(0,D._)([(0,Q.Cb)({json:{read:!0,write:!0}})],me.prototype,"id",void 0),(0,D._)([(0,Q.Cb)({json:{read:!0,write:!0}})],me.prototype,"keyField",void 0),(0,D._)([(0,Q.Cb)({json:{read:!0,write:!0}})],me.prototype,"keyFieldInRelationshipTable",void 0),(0,D._)([(0,Q.Cb)({json:{read:!0,write:!0}})],me.prototype,"name",void 0),(0,D._)([(0,Q.Cb)({json:{read:!0,write:!0}})],me.prototype,"relatedTableId",void 0),(0,D._)([(0,Q.Cb)({json:{read:!0,write:!0}})],me.prototype,"relationshipTableId",void 0),(0,D._)([(0,Q.Cb)({json:{read:he.read,write:he.write}})],me.prototype,"role",void 0),me=(0,D._)([(0,B.j)("esri.layers.support.Relationship")],me);const ge=me,_e=Ee=>{let De=class extends Ee{constructor(){super(...arguments),this.capabilities=null,this.copyright=null,this.datesInUnknownTimezone=!1,this.displayField=null,this.definitionExpression=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.isTable=!1,this.layerId=void 0,this.minScale=0,this.maxScale=0,this.globalIdField=null,this.objectIdField=null,this.relationships=null,this.sourceJSON=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.spatialReference=ae.Z.WGS84,this.subtypeField=null,this.trackIdField=null,this.indexes=new(R.Z.ofType(j)),this.userIsAdmin=!1,this.version=void 0}readCapabilitiesFromService(be,Se){return(0,Y.hu)(be,Se,this.url)}readEditingInfo(be,Se){const{editingInfo:ye}=Se;return ye?{lastEditDate:null!=ye.lastEditDate?new Date(ye.lastEditDate):null}:null}readIsTableFromService(be,Se){return"Table"===Se.type}readMinScale(be,Se){return Se.effectiveMinScale||be||0}readMaxScale(be,Se){return Se.effectiveMaxScale||be||0}readGlobalIdFieldFromService(be,Se){return(0,Y.rk)(Se)}readObjectIdFieldFromService(be,Se){return(0,Y.kZ)(Se)}readServiceDefinitionExpression(be,Se){return Se.definitionQuery||Se.definitionExpression}set url(be){const Se=(0,oe.XG)({layer:this,url:be,nonStandardUrlAllowed:!0,logger:Z.Z.getLogger(this.declaredClass)});this._set("url",Se.url),null!=Se.layerId&&this._set("layerId",Se.layerId)}writeUrl(be,Se,ye,ve){(0,oe.wH)(this,be,null,Se,ve)}readVersion(be,Se){return(0,Y.JY)(Se)}};return(0,D._)([(0,Q.Cb)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],De.prototype,"capabilities",void 0),(0,D._)([(0,W.r)("service","capabilities")],De.prototype,"readCapabilitiesFromService",null),(0,D._)([(0,Q.Cb)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],De.prototype,"copyright",void 0),(0,D._)([(0,Q.Cb)({type:Boolean})],De.prototype,"datesInUnknownTimezone",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],De.prototype,"displayField",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],De.prototype,"definitionExpression",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0})],De.prototype,"editFieldsInfo",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0})],De.prototype,"editingInfo",void 0),(0,D._)([(0,W.r)("editingInfo")],De.prototype,"readEditingInfo",null),(0,D._)([(0,Q.Cb)((()=>{const be=(0,G.d9)(le.PV),Se=be.json.origins;return Se["web-map"]={read:!1,write:!1},Se["portal-item"]={read:!1,write:!1},be})())],De.prototype,"elevationInfo",void 0),(0,D._)([(0,Q.Cb)({type:ce.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],De.prototype,"floorInfo",void 0),(0,D._)([(0,Q.Cb)({type:X.Z,json:{origins:{service:{read:{source:"extent"}}}}})],De.prototype,"fullExtent",void 0),(0,D._)([(0,Q.Cb)()],De.prototype,"gdbVersion",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0,type:J,json:{read:{source:"geometryProperties"}}})],De.prototype,"geometryFieldsInfo",void 0),(0,D._)([(0,Q.Cb)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:Y.Fr.read}}}})],De.prototype,"geometryType",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{origins:{service:{read:!0}}}})],De.prototype,"hasM",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{origins:{service:{read:!0}}}})],De.prototype,"hasZ",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0,type:te.Z})],De.prototype,"heightModelInfo",void 0),(0,D._)([(0,Q.Cb)({type:Date})],De.prototype,"historicMoment",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0})],De.prototype,"isTable",void 0),(0,D._)([(0,W.r)("service","isTable",["type"])],De.prototype,"readIsTableFromService",null),(0,D._)([(0,Q.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],De.prototype,"layerId",void 0),(0,D._)([(0,Q.Cb)(le.rO)],De.prototype,"minScale",void 0),(0,D._)([(0,W.r)("service","minScale",["minScale","effectiveMinScale"])],De.prototype,"readMinScale",null),(0,D._)([(0,Q.Cb)(le.u1)],De.prototype,"maxScale",void 0),(0,D._)([(0,W.r)("service","maxScale",["maxScale","effectiveMaxScale"])],De.prototype,"readMaxScale",null),(0,D._)([(0,Q.Cb)({type:String})],De.prototype,"globalIdField",void 0),(0,D._)([(0,W.r)("service","globalIdField",["globalIdField","fields"])],De.prototype,"readGlobalIdFieldFromService",null),(0,D._)([(0,Q.Cb)({type:String})],De.prototype,"objectIdField",void 0),(0,D._)([(0,W.r)("service","objectIdField",["objectIdField","fields"])],De.prototype,"readObjectIdFieldFromService",null),(0,D._)([(0,Q.Cb)({type:[ge],readOnly:!0})],De.prototype,"relationships",void 0),(0,D._)([(0,Q.Cb)()],De.prototype,"sourceJSON",void 0),(0,D._)([(0,Q.Cb)({type:Boolean})],De.prototype,"returnM",void 0),(0,D._)([(0,Q.Cb)({type:Boolean})],De.prototype,"returnZ",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0})],De.prototype,"serviceDefinitionExpression",void 0),(0,D._)([(0,W.r)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],De.prototype,"readServiceDefinitionExpression",null),(0,D._)([(0,Q.Cb)({type:ae.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],De.prototype,"spatialReference",void 0),(0,D._)([(0,Q.Cb)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],De.prototype,"subtypeField",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],De.prototype,"trackIdField",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0,json:{write:!1}})],De.prototype,"serverGens",void 0),(0,D._)([(0,Q.Cb)({type:R.Z.ofType(j),readOnly:!0})],De.prototype,"indexes",void 0),(0,D._)([(0,Q.Cb)(le.HQ)],De.prototype,"url",null),(0,D._)([(0,H.c)("url")],De.prototype,"writeUrl",null),(0,D._)([(0,Q.Cb)({readOnly:!0})],De.prototype,"userIsAdmin",void 0),(0,D._)([(0,Q.Cb)({json:{origins:{service:{read:!0}},read:!1}})],De.prototype,"version",void 0),(0,D._)([(0,W.r)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],De.prototype,"readVersion",null),De=(0,D._)([(0,B.j)("esri.layers.mixins.FeatureLayerBase")],De),De}},81380:(nt,Ae,v)=>{"use strict";v.d(Ae,{M:()=>Fr});var D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(86810),W=v(58817),B=v(79608);let H=class extends((0,B.J)($.wq)){constructor(mr){super(mr),this.expression=null,this.title=null,this.returnType=null}};(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],H.prototype,"expression",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],H.prototype,"title",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],H.prototype,"returnType",void 0),H=(0,D._)([(0,Q.j)("esri.layers.support.ExpressionInfo")],H);const X=H;var te;let ae=te=class extends $.wq{constructor(mr){super(mr),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}clone(){return new te({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,W.d9)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,D._)([(0,R.Cb)({type:Boolean,json:{write:!0}})],ae.prototype,"isAutoGenerated",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],ae.prototype,"name",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],ae.prototype,"alias",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],ae.prototype,"onStatisticField",void 0),(0,D._)([(0,R.Cb)({type:X,json:{write:!0}})],ae.prototype,"onStatisticExpression",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],ae.prototype,"statisticType",void 0),ae=te=(0,D._)([(0,Q.j)("esri.layers.support.AggregateField")],ae);const oe=ae;var ye,le=v(83989),de=v(73281),J=(v(4832),v(49067),v(96794),v(69747),v(40425),v(69357),v(40342)),ce=v(73640),ue=v(33474),pe=v(32088),he=v(20383),me=v(94113),ge=v(55342),_e=v(68653),Ee=v(99433),De=v(383),be=v(13812),Se=v(170);const ve=(0,De.d)({types:he.QT});let ze=ye=class extends le.B{constructor(mr){super(mr),this.type="binning",this.binType="geohash",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[],this.renderer=null}writeFields(mr,wt,or){const sr=mr.filter(rr=>"avg_angle"!==rr.statisticType).map(rr=>rr.toJSON());(0,me.RB)(or,sr,wt)}readRenderer(mr,wt,or){const sr=wt.drawingInfo?.renderer;return sr?(0,ue.a)(sr,wt,or)??void 0:wt.defaultSymbol?wt.types&&wt.types.length?new ce.Z({defaultSymbol:ve(wt.defaultSymbol,wt,or),field:wt.typeIdField,uniqueValueInfos:wt.types.map(rr=>({id:rr.id,symbol:ve(rr.symbol,rr,or)}))}):new J.Z({symbol:ve(wt.defaultSymbol,wt,or)}):null}clone(){return new ye({fields:(0,W.d9)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,W.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,popupEnabled:this.popupEnabled,popupTemplate:(0,W.d9)(this.popupTemplate),renderer:(0,W.d9)(this.renderer)})}};(0,D._)([(0,ge.J)({binning:"binning"})],ze.prototype,"type",void 0),(0,D._)([(0,ge.J)({geohash:"geohash"})],ze.prototype,"binType",void 0),(0,D._)([(0,R.Cb)({type:Number,range:{min:1,max:9},json:{write:!0}})],ze.prototype,"fixedBinLevel",void 0),(0,D._)([(0,R.Cb)({type:[Se.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],ze.prototype,"labelingInfo",void 0),(0,D._)([(0,R.Cb)(be.iR)],ze.prototype,"labelsVisible",void 0),(0,D._)([(0,R.Cb)(be.C_)],ze.prototype,"popupEnabled",void 0),(0,D._)([(0,R.Cb)({type:de.Z,json:{name:"popupInfo",write:!0}})],ze.prototype,"popupTemplate",void 0),(0,D._)([(0,R.Cb)({type:[oe],json:{write:!0}})],ze.prototype,"fields",void 0),(0,D._)([(0,Ee.c)("fields")],ze.prototype,"writeFields",null),(0,D._)([(0,R.Cb)({types:pe.A,json:{write:{target:"drawingInfo.renderer"}}})],ze.prototype,"renderer",void 0),(0,D._)([(0,_e.r)("renderer",["drawingInfo.renderer"])],ze.prototype,"readRenderer",null),ze=ye=(0,D._)([(0,Q.j)("esri.layers.support.FeatureReductionBinning")],ze);const Ke=ze;var Ce,We=v(23841);const Be=(0,De.d)({types:he.QT});function je(mr){return"simple"===mr.type&&!mr.visualVariables?.length}let Re=Ce=class extends $.wq{constructor(mr){super(mr),this.type="cluster",this.clusterRadius=(0,We.t_)("80px"),this.clusterMinSize=(0,We.t_)("12px"),this.clusterMaxSize=(0,We.t_)("50px"),this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}readRenderer(mr,wt,or){const sr=wt.drawingInfo?.renderer;return sr?.authoringInfo?.isAutoGenerated?null:sr?je(sr)?null:(0,ue.a)(sr,wt,or)??void 0:wt.defaultSymbol?wt.types&&wt.types.length?new ce.Z({defaultSymbol:Be(wt.defaultSymbol,wt,or),field:wt.typeIdField,uniqueValueInfos:wt.types.map(rr=>({id:rr.id,symbol:Be(rr.symbol,rr,or)}))}):new J.Z({symbol:Be(wt.defaultSymbol,wt,or)}):null}readSymbol(mr,wt,or){const sr=wt.drawingInfo?.renderer;return sr?.authoringInfo?.isAutoGenerated?null:sr&&je(sr)?(0,ue.a)(sr,wt,or)?.symbol:null}writeSymbol(mr,wt,or,sr){const rr=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||rr){const Et=new J.Z({symbol:mr});wt.drawingInfo={renderer:Et.write({},sr)}}}writeFields(mr,wt,or){const sr=mr.filter(rr=>"avg_angle"!==rr.statisticType).map(rr=>rr.toJSON());(0,me.RB)(or,sr,wt)}readFields(mr,wt,or){return mr.filter(sr=>!sr.isAutoGenerated).map(sr=>oe.fromJSON(sr))}clone(){return new Ce({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,W.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,W.d9)(this.fields),renderer:(0,W.d9)(this.renderer),symbol:(0,W.d9)(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:(0,W.d9)(this.popupTemplate)})}};(0,D._)([(0,R.Cb)({type:["cluster"],readOnly:!0,json:{write:!0}})],Re.prototype,"type",void 0),(0,D._)([(0,R.Cb)({type:Number,cast:mr=>"auto"===mr?mr:(0,We.t_)(mr),json:{write:!0}})],Re.prototype,"clusterRadius",void 0),(0,D._)([(0,R.Cb)({type:Number,cast:We.t_,json:{write:!0}})],Re.prototype,"clusterMinSize",void 0),(0,D._)([(0,R.Cb)({type:Number,cast:We.t_,json:{write:!0}})],Re.prototype,"clusterMaxSize",void 0),(0,D._)([(0,R.Cb)(be.C_)],Re.prototype,"popupEnabled",void 0),(0,D._)([(0,R.Cb)({type:de.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Re.prototype,"popupTemplate",void 0),(0,D._)([(0,R.Cb)({types:pe.A,json:{write:{target:"drawingInfo.renderer"}}})],Re.prototype,"renderer",void 0),(0,D._)([(0,_e.r)("renderer",["drawingInfo.renderer"])],Re.prototype,"readRenderer",null),(0,D._)([(0,R.Cb)({types:he.AH})],Re.prototype,"symbol",void 0),(0,D._)([(0,_e.r)("symbol",["drawingInfo.renderer"])],Re.prototype,"readSymbol",null),(0,D._)([(0,Ee.c)("symbol")],Re.prototype,"writeSymbol",null),(0,D._)([(0,R.Cb)({type:[Se.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],Re.prototype,"labelingInfo",void 0),(0,D._)([(0,R.Cb)(be.iR)],Re.prototype,"labelsVisible",void 0),(0,D._)([(0,R.Cb)({type:[oe],json:{write:!0}})],Re.prototype,"fields",void 0),(0,D._)([(0,Ee.c)("fields")],Re.prototype,"writeFields",null),(0,D._)([(0,_e.r)("fields")],Re.prototype,"readFields",null),Re=Ce=(0,D._)([(0,Q.j)("esri.layers.support.FeatureReductionCluster")],Re);const He=Re;var Ie=v(47058);const Ge={key:"type",base:le.B,typeMap:{cluster:He,binning:Ke}},Pe={types:{key:"type",base:le.B,typeMap:{selection:Ie.Z,cluster:He,binning:Ke}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:Ge},"portal-item":{types:Ge},"web-scene":{types:{key:"type",base:le.B,typeMap:{selection:Ie.Z}}}}}};var qe,Le=v(26584),Me=v(8314),Ne=v(63290),Xe=v(62208),Ye=v(50011),Je=v(15312),rt=v(88115),et=(v(64902),v(86971));let ot=qe=class extends rt.Z{writeLevels(mr,wt,or){for(const sr in mr)return void(wt.stops=this.levels[sr])}clone(){return new qe({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,et.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,et.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(mr=>mr.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone(),levels:(0,W.d9)(this.levels)})}};(0,D._)([(0,R.Cb)()],ot.prototype,"levels",void 0),(0,D._)([(0,Ee.c)("levels")],ot.prototype,"writeLevels",null),ot=qe=(0,D._)([(0,Q.j)("esri.views.2d.engine.LevelDependentSizeVariable")],ot);const ut=Ne.Z.getLogger("esri.views.2d.layers.support.clusterUtils");Me.Z.add("esri-cluster-arcade-enabled",!0);const _t=(0,Me.Z)("esri-cluster-arcade-enabled");function gr(mr,wt,or,sr){const rr=(0,Ye.F)(wt),Et="mode"===or?`cluster_type_${rr}`:"sum"===or?`cluster_sum_${rr}`:`cluster_avg_${rr}`;return mr.some(St=>St.name===Et)||mr.push(new oe({name:Et,isAutoGenerated:!0,onStatisticExpression:new X({expression:wt,returnType:sr}),statisticType:or})),Et}function ar(mr,wt,or,sr,rr){if("cluster_count"===wt||mr.some(St=>St.name===wt))return wt;const Et=function pr(mr,wt,or){switch(mr){case"sum":return`cluster_sum_${wt}`;case"avg":case"avg_angle":return`cluster_avg_${wt}`;case"mode":return`cluster_type_${wt}`;case"avg_norm":{const sr=or,rr="field",Et=wt.toLowerCase()+",norm:"+rr+","+sr.toLowerCase();return"cluster_avg_"+(0,Ye.F)(Et)}}}(or,wt,rr);return mr.some(St=>St.name===Et)||mr.push(new oe("avg_norm"===or?{name:Et,isAutoGenerated:!0,onStatisticExpression:new X({expression:`$feature.${wt} / $feature.${rr}`,returnType:sr}),statisticType:"avg"}:{name:Et,isAutoGenerated:!0,onStatisticField:wt,statisticType:or})),Et}const Fr=mr=>{let wt=class extends mr{constructor(...or){super(...or),this.own(this.watch("renderer",()=>{if(this.featureReduction){const sr=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",sr)}},!0))}set featureReduction(or){const sr=this._normalizeFeatureReduction(or);this._set("featureReduction",sr)}set renderer(or){}_normalizeFeatureReduction(or){if("cluster"!==or?.type)return or;const sr=or.clone(),rr=[new oe({name:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],Et=(sr.fields??[]).filter(Ft=>!Ft.isAutoGenerated);if(or.renderer&&!or.renderer.authoringInfo?.isAutoGenerated)return sr.fields=[...rr,...Et],sr;if(or.symbol)return sr.fields=[...rr,...Et],sr.renderer=null,sr;if(!this.renderer)return or;const St=((mr,wt,or,sr,rr)=>{const Et=this.renderer.clone();if(!(mr=>{const wt=or=>ut.error(new Le.Z("Unsupported-renderer",or,{renderer:mr}));switch(mr.type){case"unique-value":if(mr.field2||mr.field3)return wt("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(mr.normalizationField){const or=mr.normalizationType;if("field"!==or)return wt(`FeatureReductionCluster does not support a normalizationType of ${or}`),!1;break}case"simple":case"pie-chart":break;default:return wt(`FeatureReductionCluster does not support renderers of type ${mr.type}`),!1}if(!_t){if("valueExpression"in mr&&mr.valueExpression)return wt("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in mr&&mr.visualVariables||[]).some(or=>!(!("valueExpression"in or)||!or.valueExpression)))return wt("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0})(Et))return Et;if(Et.authoringInfo||(Et.authoringInfo=new Je.Z),Et.authoringInfo.isAutoGenerated=!0,"visualVariables"in Et){const St=(Et.visualVariables||[]).filter(zt=>"$view.scale"!==zt.valueExpression),Ft=(mr=>{for(const wt of mr)if("size"===wt.type)return wt;return null})(St);St.forEach(zt=>{"rotation"===zt.type?zt.field?zt.field=ar(mr,zt.field,"avg_angle","number"):zt.valueExpression&&(zt.field=gr(mr,zt.valueExpression,"avg_angle","number"),zt.valueExpression=null):zt.normalizationField?(zt.field=ar(mr,zt.field,"avg_norm","number",zt.normalizationField),zt.normalizationField=null):zt.field?zt.field=ar(mr,zt.field,"avg","number"):zt.valueExpression&&(zt.field=gr(mr,zt.valueExpression,"avg","number"),zt.valueExpression=null)}),(0,Xe.Wi)(Ft)&&(mr=>{for(const wt of mr)if("cluster_count"===wt.field)return!0})(St),Et.visualVariables=St}switch(Et.type){case"simple":break;case"pie-chart":for(const St of Et.attributes)St.field?St.field=ar(mr,St.field,"sum","number"):St.valueExpression&&(St.field=gr(mr,St.valueExpression,"sum","number"),St.valueExpression=null);break;case"unique-value":Et.field?Et.field=ar(mr,Et.field,"mode","string"):Et.valueExpression&&(Et.field=gr(mr,Et.valueExpression,"mode","string"),Et.valueExpression=null);break;case"class-breaks":Et.normalizationField?(Et.field=ar(mr,Et.field,"avg_norm","number",Et.normalizationField),Et.normalizationField=null):Et.field?Et.field=ar(mr,Et.field,"avg","number"):Et.valueExpression&&(Et.field=gr(mr,Et.valueExpression,"avg","number"),Et.valueExpression=null)}return Et})(rr);return sr.fields=[...rr,...Et],sr.renderer=St,sr}};return(0,D._)([(0,R.Cb)(Pe)],wt.prototype,"featureReduction",null),wt=(0,D._)([(0,Q.j)("esri.layers.mixins.FeatureReductionLayer")],wt),wt}},49286:(nt,Ae,v)=>{"use strict";v.d(Ae,{q:()=>oe});var D=v(17626),R=v(26584),G=v(21726),Z=v(77712),W=(v(85931),v(90912),v(76898)),B=v(99433),H=v(29338),X=v(36054);const te={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0,OrientedImageryLayer:!0}};var ae=v(13812);const oe=de=>{let se=class extends de{constructor(){super(...arguments),this.title=null}writeListMode(re,j,Y,ee){(ee&&"ground"===ee.layerContainerType||re&&(0,X.d)(this,Y,{},ee))&&(j[Y]=re)}writeOperationalLayerType(re,j,Y,ee){!re||ee&&"tables"===ee.layerContainerType||(j.layerType=re)}writeTitle(re,j){j.title=re??"Layer"}read(re,j){j&&(j.layer=this),(0,H.$)(this,re,Y=>super.read(re,Y),j)}write(re,j){if(j?.origin){const ie=`${j.origin}/${j.layerContainerType||"operational-layers"}`,J=te[ie];let ce=J&&J[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===ie&&(ce=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===ie&&(ce=!1),!ce)return j.messages?.push(new R.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${ie}'`,{layer:this})),null}const Y=super.write(re,{...j,layer:this}),ee=!!j&&!!j.messages&&!!j.messages.filter(ie=>ie instanceof R.Z&&"web-document-write:property-required"===ie.name).length;return(0,G.jc)(Y?.url)?(j?.messages?.push(new R.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&ee?null:Y}beforeSave(){}};return(0,D._)([(0,Z.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],se.prototype,"id",void 0),(0,D._)([(0,Z.Cb)(ae.rT)],se.prototype,"listMode",void 0),(0,D._)([(0,B.c)("listMode")],se.prototype,"writeListMode",null),(0,D._)([(0,Z.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],se.prototype,"operationalLayerType",void 0),(0,D._)([(0,B.c)("operationalLayerType")],se.prototype,"writeOperationalLayerType",null),(0,D._)([(0,Z.Cb)(ae.Oh)],se.prototype,"opacity",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],se.prototype,"title",void 0),(0,D._)([(0,B.c)("title"),(0,B.c)(["web-scene"],"title")],se.prototype,"writeTitle",null),(0,D._)([(0,Z.Cb)({type:Boolean,json:{name:"visibility"}})],se.prototype,"visible",void 0),se=(0,D._)([(0,W.j)("esri.layers.mixins.OperationalLayer")],se),se}},32629:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>de});var H,D=v(17626),R=v(94113),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(2076),B=v(86810);const X=new W.X({asc:"ascending",desc:"descending"});let te=H=class extends B.wq{constructor(se){super(se),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new H({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],te.prototype,"field",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],te.prototype,"valueExpression",void 0),(0,D._)([(0,G.Cb)({type:X.apiValues,json:{read:X.read,write:X.write}})],te.prototype,"order",void 0),te=H=(0,D._)([(0,$.j)("esri.layers.support.OrderByInfo")],te);const ae=te;function oe(se,re,j){if(!se)return null;const Y=se.find(ie=>!!ie.field);if(!Y)return null;const ee=new ae;return ee.read(Y,j),[ee]}function le(se,re,j,Y){const ee=se.find(ie=>!!ie.field);ee&&(0,R.RB)(j,[ee.toJSON()],re)}const de=se=>{let re=class extends se{constructor(){super(...arguments),this.orderBy=null}};return(0,D._)([(0,G.Cb)({type:[ae],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:oe},write:{target:"layerDefinition.orderBy",writer:le}}})],re.prototype,"orderBy",void 0),re=(0,D._)([(0,$.j)("esri.layers.mixins.OrderedLayer")],re),re}},6647:(nt,Ae,v)=>{"use strict";v.d(Ae,{I:()=>ee});var D=v(15861),R=v(17626),G=v(24263),Z=v(84792),Q=v(59213),$=v(26584),W=v(63290),B=v(62208),H=v(10699),X=v(21726),te=v(77712),le=(v(85931),v(90912),v(68653)),de=v(76898),se=v(99433),re=v(84687),j=v(55463),Y=v(94508);const ee=J=>{let ce=class extends J{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem=(0,B.SC)(this.portalItem)}set portalItem(ue){ue!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",ue))}readPortalItem(ue,pe,he){if(pe.itemId)return new j.default({id:pe.itemId,portal:he&&he.portal})}writePortalItem(ue,pe){ue&&ue.id&&(pe.itemId=ue.id)}loadFromPortal(ue,pe){var he=this;return(0,D.Z)(function*(){if(he.portalItem&&he.portalItem.id)try{const me=yield v.e(3705).then(v.bind(v,83705));return(0,H.k_)(pe),yield me.load({instance:he,supportedTypes:ue.supportedTypes,validateItem:ue.validateItem,supportsData:ue.supportsData,layerModuleTypeMap:ue.layerModuleTypeMap},pe)}catch(me){throw(0,H.D_)(me)||W.Z.getLogger(he.declaredClass).warn(`Failed to load layer (${he.title}, ${he.id}) portal item (${he.portalItem.id})\n ${me}`),me}})()}finishLoadEditablePortalLayer(ue){var pe=this;return(0,D.Z)(function*(){pe._set("userHasEditingPrivileges",yield pe._fetchUserHasEditingPrivileges(ue).catch(he=>((0,H.r9)(he),!0)))})()}_fetchUserHasEditingPrivileges(ue){var pe=this;return(0,D.Z)(function*(){const he=pe.url?G.id?.findCredential(pe.url):null;if(!he)return!0;const me=ie.credential===he?ie.user:yield pe._fetchEditingUser(ue);return ie.credential=he,ie.user=me,(0,B.Wi)(me)||null==me.privileges||me.privileges.includes("features:user:edit")})()}_fetchEditingUser(ue){var pe=this;return(0,D.Z)(function*(){const he=pe.portalItem?.portal?.user;if(he)return he;const me=G.id.findServerInfo(pe.url??"");if(!me?.owningSystemUrl)return null;const ge=`${me.owningSystemUrl}/sharing/rest`,_e=re.Z.getDefault();if(_e&&_e.loaded&&(0,X.Fv)(_e.restUrl)===(0,X.Fv)(ge))return _e.user;const Ee=`${ge}/community/self`,De=(0,B.pC)(ue)?ue.signal:null,be=yield(0,Q.q6)((0,Z.default)(Ee,{authMode:"no-prompt",query:{f:"json"},signal:De}));return be.ok?Y.default.fromJSON(be.value.data):null})()}read(ue,pe){pe&&(pe.layer=this),super.read(ue,pe)}write(ue,pe){const he=pe&&pe.portal,me=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||re.Z.getDefault());return he&&me&&!(0,X.tm)(me.restUrl,he.restUrl)?(pe.messages&&pe.messages.push(new $.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(ue,{...pe,layer:this})}};return(0,R._)([(0,te.Cb)({type:j.default})],ce.prototype,"portalItem",null),(0,R._)([(0,le.r)("web-document","portalItem",["itemId"])],ce.prototype,"readPortalItem",null),(0,R._)([(0,se.c)("web-document","portalItem",{itemId:{type:String}})],ce.prototype,"writePortalItem",null),(0,R._)([(0,te.Cb)({clonable:!1})],ce.prototype,"resourceReferences",void 0),(0,R._)([(0,te.Cb)({readOnly:!0})],ce.prototype,"userHasEditingPrivileges",void 0),ce=(0,R._)([(0,de.j)("esri.layers.mixins.PortalLayer")],ce),ce},ie={credential:null,user:null}},30346:(nt,Ae,v)=>{"use strict";v.d(Ae,{Q:()=>pe,d:()=>ue});var D=v(15861),R=v(17626),G=v(63290),Z=v(10699),Q=v(77712),B=(v(85931),v(90912),v(76898)),H=v(46160),oe=(v(8314),v(26584),v(30755),v(21352));const le=new H.Z,de=new WeakMap;function j(he){return null!=he&&"object"==typeof he&&"refreshInterval"in he&&"refresh"in he}function Y(he,me){return Number.isFinite(he)&&Number.isFinite(me)?me<=0?he:Y(me,he%me):0}let ee=0,ie=0;function J(){const he=Date.now();for(const me of le)me.refreshInterval&&he-(de.get(me)??0)+5>=6e4*me.refreshInterval&&(de.set(me,he),me.refresh(he))}function ue(he){return null!=he&&"object"==typeof he&&"refreshTimestamp"in he&&"refresh"in he}(0,oe.EH)(()=>{const he=Date.now();let me=0;for(const ge of le)me=Y(Math.round(6e4*ge.refreshInterval),me),ge.refreshInterval?de.get(ge)||de.set(ge,he):de.delete(ge);if(me!==ie){if(ie=me,clearInterval(ee),0===ie)return void(ee=0);ee=setInterval(J,ie)}});const pe=he=>{let me=class extends he{constructor(...ge){super(...ge),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,Z.Ds)(()=>this.hasDataChanged()),this.when().then(()=>{!function se(he){j(he)&&le.push(he)}(this)},()=>{})}destroy(){!function re(he){j(he)&&le.includes(he)&&le.remove(he)}(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(ge=Date.now()){(0,Z.R8)(this._debounceHasDataChanged()).then(_e=>{_e&&this._set("refreshTimestamp",ge),this.emit("refresh",{dataChanged:_e})},_e=>{G.Z.getLogger(this.declaredClass).error(_e),this.emit("refresh",{dataChanged:!1,error:_e})})}hasDataChanged(){return(0,D.Z)(function*(){return!0})()}};return(0,R._)([(0,Q.Cb)({type:Number,cast:ge=>ge>=.1?ge:ge<=0?0:.1,json:{write:!0}})],me.prototype,"refreshInterval",void 0),(0,R._)([(0,Q.Cb)({readOnly:!0})],me.prototype,"refreshTimestamp",void 0),(0,R._)([(0,Q.Cb)()],me.prototype,"refreshParameters",null),me=(0,R._)([(0,B.j)("esri.layers.mixins.RefreshableLayer")],me),me}},99555:(nt,Ae,v)=>{"use strict";v.d(Ae,{M:()=>$});var D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898));const $=B=>{let H=class extends B{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const X={minScale:this.minScale,maxScale:this.maxScale},te=this.parent;te&&"effectiveScaleRange"in te&&function W(B,H){B.minScale=B.minScale>0?H.minScale>0?Math.min(B.minScale,H.minScale):B.minScale:H.minScale,B.maxScale=B.maxScale>0?H.maxScale>0?Math.max(B.maxScale,H.maxScale):B.maxScale:H.maxScale}(X,te.effectiveScaleRange);const ae=this._get("effectiveScaleRange");return ae&&ae.minScale===X.minScale&&ae.maxScale===X.maxScale?ae:X}};return(0,D._)([(0,R.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],H.prototype,"minScale",void 0),(0,D._)([(0,R.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],H.prototype,"maxScale",void 0),(0,D._)([(0,R.Cb)({readOnly:!0})],H.prototype,"effectiveScaleRange",null),H=(0,D._)([(0,Q.j)("esri.layers.mixins.ScaleRangeLayer")],H),H}},97941:(nt,Ae,v)=>{"use strict";v.d(Ae,{n:()=>ae});var D=v(17626),R=v(97478),G=v(20849),Z=v(77712),W=(v(85931),v(90912),v(68653)),B=v(76898),H=v(36630),X=v(62708),te=v(58926);const ae=oe=>{let le=class extends oe{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(de,se){const re=se.timeInfo.exportOptions;if(!re)return null;const j=re.timeOffset,Y=te.v.fromJSON(re.timeOffsetUnits);return j&&Y?new G.Z({value:j,unit:Y}):null}set timeInfo(de){(0,H.UF)(de,this.fieldsIndex),this._set("timeInfo",de)}};return(0,D._)([(0,Z.Cb)({type:R.Z,json:{write:!1}})],le.prototype,"timeExtent",void 0),(0,D._)([(0,Z.Cb)({type:G.Z})],le.prototype,"timeOffset",void 0),(0,D._)([(0,W.r)("service","timeOffset",["timeInfo.exportOptions"])],le.prototype,"readOffset",null),(0,D._)([(0,Z.Cb)({value:null,type:X.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],le.prototype,"timeInfo",null),(0,D._)([(0,Z.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],le.prototype,"useViewTime",void 0),le=(0,D._)([(0,B.j)("esri.layers.mixins.TemporalLayer")],le),le}},86219:(nt,Ae,v)=>{"use strict";v.d(Ae,{u:()=>B});var W,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.wq{constructor(H){super(H),this.name=null,this.code=null}clone(){return new W({name:this.name,code:this.code})}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"name",void 0),(0,D._)([(0,G.Cb)({type:[String,Number],json:{write:!0}})],B.prototype,"code",void 0),B=W=(0,D._)([(0,$.j)("esri.layers.support.CodedValue")],B)},26036:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(58817),G=v(77712),Q=(v(90912),v(55342)),$=v(76898),W=v(86219),B=v(50028);let X=H=class extends B.Z{constructor(ae){super(ae),this.codedValues=null,this.type="coded-value"}getName(ae){let oe=null;if(this.codedValues){const le=String(ae);this.codedValues.some(de=>(String(de.code)===le&&(oe=de.name),!!oe))}return oe}clone(){return new H({codedValues:(0,R.d9)(this.codedValues),name:this.name})}};(0,D._)([(0,G.Cb)({type:[W.u],json:{write:!0}})],X.prototype,"codedValues",void 0),(0,D._)([(0,Q.J)({codedValue:"coded-value"})],X.prototype,"type",void 0),X=H=(0,D._)([(0,$.j)("esri.layers.support.CodedValueDomain")],X);const te=X},50028:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var D=v(17626),R=v(2076),G=v(86810),Z=v(77712),W=(v(85931),v(90912),v(55342)),B=v(76898);const H=new R.X({inherited:"inherited",codedValue:"coded-value",range:"range"});let X=class extends G.wq{constructor(ae){super(ae),this.name=null,this.type=null}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],X.prototype,"name",void 0),(0,D._)([(0,W.J)(H)],X.prototype,"type",void 0),X=(0,D._)([(0,B.j)("esri.layers.support.Domain")],X);const te=X},13762:(nt,Ae,v)=>{"use strict";v.d(Ae,{G$:()=>oe,Tl:()=>ae}),v(29132),v(8314);var G=v(63290),Z=v(62208),Q=v(16730),$=v(65401),W=v(46367),B=v(72642);const H=G.Z.getLogger("esri.layers.support.ElevationSampler");class X{queryElevation(ie){return oe(ie.clone(),this)}on(){return Y}projectIfRequired(ie,J){return le(ie,J)}}class te extends X{constructor(ie,J,ce){super(),this.tile=ie,this.noDataValue=ce;const ue=ie.tile.extent;this.extent=(0,$.HH)(ue,J.spatialReference),this.extent.zmin=ie.zmin,this.extent.zmax=ie.zmax,this._aaExtent=ue;const pe=(0,Q.c9)(J.spatialReference),he=J.lodAt(ie.tile.level).resolution*pe;this.demResolution={min:he,max:he}}get spatialReference(){return this.extent.spatialReference}contains(ie){const J=this.projectIfRequired(ie,this.spatialReference);return!(0,Z.Wi)(J)&&this.containsAt(J.x,J.y)}containsAt(ie,J){return(0,$.jE)(this._aaExtent,ie,J)}elevationAt(ie,J){if(!this.containsAt(ie,J)){const ce=this.extent;return H.warn("#elevationAt()",`Point used to sample elevation (${ie}, ${J}) is outside of the sampler extent (${ce.xmin}, ${ce.ymin}, ${ce.xmax}, ${ce.ymax})`),this.noDataValue}return(0,Z.Pt)(this.tile.sample(ie,J),this.noDataValue)}}class ae extends X{constructor(ie,J,ce){let ue;super(),"number"==typeof J?(this.noDataValue=J,ue=null):(ue=J,this.noDataValue=ce),this.samplers=ue?ie.map(he=>new te(he,ue,this.noDataValue)):ie;const pe=this.samplers[0];if(pe){this.extent=pe.extent.clone();const{min:he,max:me}=pe.demResolution;this.demResolution={min:he,max:me};for(let ge=1;ge{"use strict";v.d(Ae,{K:()=>D});class D{constructor({values:G,width:Z,height:Q,noDataValue:$},W){this.pixelData=G,this.width=Z,this.height=Q,this.safeWidth=.99999999*(Z-1),this.noDataValue=$,this.dx=(Z-1)/(W[2]-W[0]),this.dy=(Z-1)/(W[3]-W[1]),this.x0=W[0],this.y1=W[3]}}},14772:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>le});var D=v(17626),R=v(14517),G=v(80542),Z=v(62208),Q=v(95737),$=v(77712),H=(v(85931),v(90912),v(76898)),X=v(13812),te=v(59990),ae=v(13410);const oe={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let le=class extends((0,G.p)(R.Z)){constructor(de){super(de),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const de=this.visibleSublayers.map(se=>{const re=(0,te.f)(this.floors,se);return se.toExportImageJSON(re)});return de.length?JSON.stringify(de):null}get hasDynamicLayers(){return this.layer&&(0,ae.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(de){this._get("layer")!==de&&(this._set("layer",de),this.handles.remove("layer"),de&&this.handles.add([de.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),de.on("sublayer-update",se=>this.notifyChange(oe[se.propertyName]))],"layer"))}get layers(){const de=this.visibleSublayers;return de?de.length?"show:"+de.map(se=>se.id).join(","):"show:-1":null}get layerDefs(){const de=!!this.floors?.length,se=this.visibleSublayers.filter(re=>null!=re.definitionExpression||de&&null!=re.floorInfo);return se.length?JSON.stringify(se.reduce((re,j)=>{const Y=(0,te.f)(this.floors,j),ee=(0,Q._)(Y,j.definitionExpression);return(0,Z.pC)(ee)&&(re[j.id]=ee),re},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const de=this.layer;return de&&(de.commitProperty("dpi"),de.commitProperty("imageFormat"),de.commitProperty("imageTransparency"),de.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const de=[];if(!this.layer)return de;const se=this.layer.sublayers,re=Y=>{const ee=this.scale;Y.visible&&(0===ee||(0===Y.minScale||ee<=Y.minScale)&&(0===Y.maxScale||ee>=Y.maxScale))&&(Y.sublayers?Y.sublayers.forEach(re):de.unshift(Y))};se&&se.forEach(re);const j=this._get("visibleSublayers");return!j||j.length!==de.length||j.some((Y,ee)=>de[ee]!==Y)?de:j}toJSON(){const de=this.layer;let se={dpi:de.dpi,format:de.imageFormat,transparent:de.imageTransparency,gdbVersion:de.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?se.dynamicLayers=this.dynamicLayers:se={...se,layers:this.layers,layerDefs:this.layerDefs},se}};(0,D._)([(0,$.Cb)({readOnly:!0})],le.prototype,"dynamicLayers",null),(0,D._)([(0,$.Cb)()],le.prototype,"floors",void 0),(0,D._)([(0,$.Cb)({readOnly:!0})],le.prototype,"hasDynamicLayers",null),(0,D._)([(0,$.Cb)()],le.prototype,"layer",null),(0,D._)([(0,$.Cb)({readOnly:!0})],le.prototype,"layers",null),(0,D._)([(0,$.Cb)({readOnly:!0})],le.prototype,"layerDefs",null),(0,D._)([(0,$.Cb)({type:Number})],le.prototype,"scale",void 0),(0,D._)([(0,$.Cb)(X.qG)],le.prototype,"timeExtent",void 0),(0,D._)([(0,$.Cb)({readOnly:!0})],le.prototype,"version",null),(0,D._)([(0,$.Cb)({readOnly:!0})],le.prototype,"visibleSublayers",null),le=(0,D._)([(0,H.j)("esri.layers.mixins.ExportImageParameters")],le)},2319:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>re});var ae,D=v(17626),R=v(26584),G=v(86810),Z=v(62208),Q=v(94113),$=v(77712),H=(v(85931),v(90912),v(76898)),X=v(71149),te=v(98624);const oe={read:{reader:X.ij},write:{writer:X.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},le={read:{reader:X.ij},write:{writer:X.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},de={name:"showExcludedLabels",default:!0};let se=ae=class extends G.wq{constructor(j){super(j),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(j,Y){const ee=super.write(j,Y);if(Y?.origin){if(ee.filter){const ie=Object.keys(ee.filter);if(ie.length>1||"where"!==ie[0])return Y.messages?.push(new R.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:Y.layer,effect:this})),null}if("showExcludedLabels"in ee)return Y.messages?.push(new R.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:Y.layer,effect:this})),null}return ee}clone(){return new ae({filter:(0,Z.pC)(this.filter)?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,D._)([(0,$.Cb)({type:te.Z,json:{write:{allowNull:!0,writer(j,Y,ee,ie){const J=j?.write({},ie);J&&0!==Object.keys(J).length?(0,Q.RB)(ee,J,Y):(0,Q.RB)(ee,null,Y)}}}})],se.prototype,"filter",void 0),(0,D._)([(0,$.Cb)({json:{write:!0,origins:{"web-map":oe,"portal-item":oe}}})],se.prototype,"includedEffect",void 0),(0,D._)([(0,$.Cb)({json:{write:!0,origins:{"web-map":le,"portal-item":le}}})],se.prototype,"excludedEffect",void 0),(0,D._)([(0,$.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":de,"portal-item":de}}})],se.prototype,"excludedLabelsVisible",void 0),se=ae=(0,D._)([(0,H.j)("esri.layers.support.FeatureEffect")],se);const re=se},98624:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>se});var ae,D=v(17626),R=v(29132),G=v(97478),Z=v(2076),Q=v(86810),$=v(58817),W=v(62208),B=v(77712),X=(v(90912),v(76898)),te=v(96854);const oe=new Z.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),le=new Z.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let de=ae=class extends Q.wq{constructor(re){super(re),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(re={}){const{where:j,geometry:Y,spatialRelationship:ee,timeExtent:ie,objectIds:J,units:ce,distance:ue}=this;return new te.Z({geometry:(0,$.d9)(Y),objectIds:(0,$.d9)(J),spatialRelationship:ee,timeExtent:(0,$.d9)(ie),where:j,units:ce,distance:ue,...re})}clone(){const{where:re,geometry:j,spatialRelationship:Y,timeExtent:ee,objectIds:ie,units:J,distance:ce}=this;return new ae({geometry:(0,$.d9)(j),objectIds:(0,$.d9)(ie),spatialRelationship:Y,timeExtent:(0,$.d9)(ee),where:re,units:J,distance:ce})}};(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],de.prototype,"where",void 0),(0,D._)([(0,B.Cb)({types:R.qM,json:{write:!0}})],de.prototype,"geometry",void 0),(0,D._)([(0,B.Cb)({type:oe.apiValues,json:{name:"spatialRel",read:{reader:oe.read},write:{allowNull:!1,writer:oe.write,overridePolicy(){return{enabled:(0,W.pC)(this.geometry)}}}}})],de.prototype,"spatialRelationship",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{write:{overridePolicy(re){return{enabled:null!=re&&null!=this.geometry}}}}})],de.prototype,"distance",void 0),(0,D._)([(0,B.Cb)({type:[Number],json:{write:!0}})],de.prototype,"objectIds",void 0),(0,D._)([(0,B.Cb)({type:le.apiValues,json:{read:le.read,write:{writer:le.write,overridePolicy(re){return{enabled:null!=re&&null!=this.geometry}}}}})],de.prototype,"units",void 0),(0,D._)([(0,B.Cb)({type:G.Z,json:{write:!0}})],de.prototype,"timeExtent",void 0),de=ae=(0,D._)([(0,X.j)("esri.layers.support.FeatureFilter")],de);const se=de},83989:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>W});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.wq{constructor(){super(...arguments),this.type=null}};(0,D._)([(0,G.Cb)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=(0,D._)([(0,$.j)("esri.layers.support.FeatureReduction")],W)},47058:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(83989);let B=W=class extends $.B{constructor(X){super(X),this.type="selection"}clone(){return new W}};(0,D._)([(0,R.Cb)({type:["selection"]})],B.prototype,"type",void 0),B=W=(0,D._)([(0,Q.j)("esri.layers.support.FeatureReductionSelection")],B);const H=B},32777:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var D=v(17626),R=v(79608),G=v(2076),Z=v(86810),Q=v(77712),B=(v(85931),v(90912),v(76898));const H=new G.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let X=class extends((0,R.J)(Z.wq)){constructor(ae){super(ae),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,D._)([(0,Q.Cb)({json:{write:!0}})],X.prototype,"name",void 0),(0,D._)([(0,Q.Cb)({json:{write:!0}})],X.prototype,"description",void 0),(0,D._)([(0,Q.Cb)({json:{read:H.read,write:H.write}})],X.prototype,"drawingTool",void 0),(0,D._)([(0,Q.Cb)({json:{write:!0}})],X.prototype,"prototype",void 0),(0,D._)([(0,Q.Cb)({json:{write:!0}})],X.prototype,"thumbnail",void 0),X=(0,D._)([(0,B.j)("esri.layers.support.FeatureTemplate")],X);const te=X},41638:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var D=v(17626),R=v(79608),G=v(86810),Z=v(77712),W=(v(85931),v(90912),v(68653)),B=v(76898),H=v(99433),X=v(67945),te=v(32777);let ae=class extends((0,R.J)(G.wq)){constructor(le){super(le),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(le){const de={};for(const se of Object.keys(le))de[se]=(0,X.im)(le[se]);return de}writeDomains(le,de){const se={};for(const re of Object.keys(le))le[re]&&(se[re]=le[re]?.toJSON());de.domains=se}};(0,D._)([(0,Z.Cb)({json:{write:!0}})],ae.prototype,"id",void 0),(0,D._)([(0,Z.Cb)({json:{write:!0}})],ae.prototype,"name",void 0),(0,D._)([(0,Z.Cb)({json:{write:!0}})],ae.prototype,"domains",void 0),(0,D._)([(0,W.r)("domains")],ae.prototype,"readDomains",null),(0,D._)([(0,H.c)("domains")],ae.prototype,"writeDomains",null),(0,D._)([(0,Z.Cb)({type:[te.Z],json:{write:!0}})],ae.prototype,"templates",void 0),ae=(0,D._)([(0,B.j)("esri.layers.support.FeatureType")],ae);const oe=ae},36255:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var ae,D=v(17626),R=v(2076),G=v(86810),Z=v(77712),$=(v(85931),v(90912)),W=v(55342),B=v(68653),H=v(76898),X=v(67945),te=v(85);const oe=new R.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let le=ae=class extends G.wq{constructor(se){super(se),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(se,{description:re}){let j=null;try{j=re?JSON.parse(re):null}catch{}return j?.value??null}readValueType(se,{description:re}){let j=null;try{j=re?JSON.parse(re):null}catch{}return j?oe.fromJSON(j.fieldValueType):null}clone(){return new ae({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],le.prototype,"alias",void 0),(0,D._)([(0,Z.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],le.prototype,"defaultValue",void 0),(0,D._)([(0,Z.Cb)()],le.prototype,"description",void 0),(0,D._)([(0,B.r)("description")],le.prototype,"readDescription",null),(0,D._)([(0,Z.Cb)({types:X.V5,json:{read:{reader:X.im},write:!0}})],le.prototype,"domain",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],le.prototype,"editable",void 0),(0,D._)([(0,Z.Cb)({type:$.z8,json:{write:!0}})],le.prototype,"length",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],le.prototype,"name",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],le.prototype,"nullable",void 0),(0,D._)([(0,W.J)(te.v)],le.prototype,"type",void 0),(0,D._)([(0,Z.Cb)()],le.prototype,"valueType",void 0),(0,D._)([(0,B.r)("valueType",["description"])],le.prototype,"readValueType",null),(0,D._)([(0,Z.Cb)({type:Boolean,json:{read:!1}})],le.prototype,"visible",void 0),le=ae=(0,D._)([(0,H.j)("esri.layers.support.Field")],le);const de=le},60466:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Q});var D=v(36630);function G(B){return"oid"===B.type||"esriFieldTypeOID"===B.type}function Z(B){return"global-id"===B.type||"esriFieldTypeGlobalID"===B.type}class Q{constructor(H=[]){if(this.fields=[],this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!H)return;this.fields=H;const X=[];for(const te of H){const ae=te&&te.name;if(ae){const oe=$(ae),le=W(ae);this._fieldsMap.set(ae,te),this._fieldsMap.set(oe,te),this._normalizedFieldsMap.set(le,te),X.push(oe),"date"===(B=te).type||"esriFieldTypeDate"===B.type?(this.dateFields.push(te),this._dateFieldsSet.add(te)):(0,D.H7)(te)&&(this._numericFieldsSet.add(te),this.numericFields.push(te)),G(te)||Z(te)||(te.editable=null==te.editable||!!te.editable,te.nullable=null==te.nullable||!!te.nullable)}}var B;X.sort(),this.uid=X.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const H of this.fields)G(H)||Z(H)||H.nullable||void 0!==(0,D.os)(H)||this._requiredFields.push(H)}return this._requiredFields}has(H){return null!=this.get(H)}get(H){if(!H)return;let X=this._fieldsMap.get(H);return X||(X=this._fieldsMap.get($(H))??this._normalizedFieldsMap.get(W(H)),X&&this._fieldsMap.set(H,X),X)}isDateField(H){return this._dateFieldsSet.has(this.get(H))}isNumericField(H){return this._numericFieldsSet.has(this.get(H))}normalizeFieldName(H){const X=this.get(H);if(X)return X.name??void 0}}function $(B){return B.trim().toLowerCase()}function W(B){return(0,D.q6)(B).toLowerCase()}},90336:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var X,D=v(17626),W=(v(63290),v(90912),v(85931),v(26584),v(8314),v(55342)),B=v(76898),H=v(50028);let te=X=class extends H.Z{constructor(oe){super(oe),this.type="inherited"}clone(){return new X}};(0,D._)([(0,W.J)({inherited:"inherited"})],te.prototype,"type",void 0),te=X=(0,D._)([(0,B.j)("esri.layers.support.InheritedDomain")],te);const ae=te},72258:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(86810),G=v(77712),Q=(v(85931),v(90912)),$=v(76898);let B=W=class extends R.wq{constructor(X){super(X),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new W({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,D._)([(0,G.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],B.prototype,"cols",void 0),(0,D._)([(0,G.Cb)({type:Q.z8,json:{write:!0}})],B.prototype,"level",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"levelValue",void 0),(0,D._)([(0,G.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],B.prototype,"origin",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],B.prototype,"resolution",void 0),(0,D._)([(0,G.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],B.prototype,"rows",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],B.prototype,"scale",void 0),B=W=(0,D._)([(0,$.j)("esri.layers.support.LOD")],B);const H=B},170:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>he});var le,D=v(17626),R=v(20383),G=v(2076),Z=v(86810),Q=v(58817),$=v(23841),W=v(77712),H=(v(90912),v(68653)),X=v(76898),te=v(99433),oe=(v(85931),v(86793));let de=le=class extends Z.wq{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(me,ge){return ge.value?(0,oe.dI)(ge.value):me}writeExpression(me,ge,_e){null!=this.value&&(me=(0,oe.dI)(this.value)),null!=me&&(ge[_e]=me)}clone(){return new le({expression:this.expression,title:this.title,value:this.value})}};(0,D._)([(0,W.Cb)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],de.prototype,"expression",void 0),(0,D._)([(0,H.r)("expression",["expression","value"])],de.prototype,"readExpression",null),(0,D._)([(0,te.c)("expression")],de.prototype,"writeExpression",null),(0,D._)([(0,W.Cb)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],de.prototype,"title",void 0),(0,D._)([(0,W.Cb)({json:{read:!1,write:!1}})],de.prototype,"value",void 0),de=le=(0,D._)([(0,X.j)("esri.layers.support.LabelExpressionInfo")],de);const se=de;var Y,re=v(8080),j=v(9461);const ee=new G.X({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function ie(me){return!me||"service"!==me.origin&&"map-image"!==me.layer?.type}function ce(me){return!!function J(me){return"map-image"===me?.type}(me)&&!!me.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let pe=Y=class extends Z.wq{constructor(me){super(me),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=re.Rz,this.useCodedValues=void 0,this.where=null}static evaluateWhere(me,ge){const _e=(Ee,De,be)=>{switch(De){case"=":return Ee==be;case"<>":return Ee!=be;case">":return Ee>be;case">=":return Ee>=be;case"<":return Eefunction ue(me){return ie(me)||ce(me.layer)}(_e)?{allowNull:!0}:{enabled:!1}}}})],pe.prototype,"labelExpressionInfo",void 0),(0,D._)([(0,te.c)("labelExpressionInfo")],pe.prototype,"writeLabelExpressionInfo",null),(0,D._)([(0,W.Cb)({type:ee.apiValues,json:{type:ee.jsonValues,read:ee.read,write:ee.write}})],pe.prototype,"labelPlacement",void 0),(0,D._)([(0,W.Cb)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],pe.prototype,"labelPosition",void 0),(0,D._)([(0,W.Cb)({type:Number})],pe.prototype,"maxScale",void 0),(0,D._)([(0,te.c)("maxScale")],pe.prototype,"writeMaxScale",null),(0,D._)([(0,W.Cb)({type:Number})],pe.prototype,"minScale",void 0),(0,D._)([(0,te.c)("minScale")],pe.prototype,"writeMinScale",null),(0,D._)([(0,W.Cb)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:!1}}}})],pe.prototype,"repeatLabel",void 0),(0,D._)([(0,W.Cb)({type:Number,cast:$.t_,json:{write:!0,origins:{"web-scene":{write:!1}}}})],pe.prototype,"repeatLabelDistance",void 0),(0,D._)([(0,W.Cb)({types:R.yK,json:{origins:{"web-scene":{types:R.S6,write:j.vX,default:null}},write:j.vX,default:null}})],pe.prototype,"symbol",void 0),(0,D._)([(0,W.Cb)({type:Boolean,json:{write:!0}})],pe.prototype,"useCodedValues",void 0),(0,D._)([(0,W.Cb)({type:String,json:{write:!0}})],pe.prototype,"where",void 0),pe=Y=(0,D._)([(0,X.j)("esri.layers.support.LabelClass")],pe);const he=pe},2430:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(46160),G=v(86810),Z=v(77712),W=(v(85931),v(90912),v(76898));let H=B=class extends G.wq{constructor(te){super(te),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new R.Z}clone(){return new B({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],H.prototype,"floorField",void 0),(0,D._)([(0,Z.Cb)({json:{read:!1,write:!1}})],H.prototype,"viewAllMode",void 0),(0,D._)([(0,Z.Cb)({json:{read:!1,write:!1}})],H.prototype,"viewAllLevelIds",void 0),H=B=(0,D._)([(0,W.j)("esri.layers.support.LayerFloorInfo")],H);const X=H},36596:(nt,Ae,v)=>{"use strict";v.d(Ae,{w:()=>Q});var D=v(62208),R=v(42930);class G extends R.q{constructor(W=null){super("LercWorker","_decode",{_decode:B=>[B.buffer]},W,{strategy:"dedicated"}),this.schedule=W,this.ref=0}decode(W,B,H){return W&&0!==W.byteLength?this.invoke({buffer:W,options:B},H):Promise.resolve(null)}release(){--this.ref<=0&&(Z.forEach((W,B)=>{W===this&&Z.delete(B)}),this.destroy())}}const Z=new Map;function Q($=null){let W=Z.get((0,D.Wg)($));return W||((0,D.pC)($)?(W=new G(B=>$.schedule(B)),Z.set($,W)):(W=new G,Z.set(null,W))),++W.ref,W}},41291:(nt,Ae,v)=>{"use strict";v.d(Ae,{b:()=>G});var D=v(10699),R=v(84395);class G{constructor(){this._tasks=new Array,this._running=new R.f(!1)}get length(){return this._tasks.length}get running(){return this._running.get()}destroy(){this.cancelAll()}runTask($){for(;!$.done&&this._process($);)$.madeProgress()}push($,W,B){return this._running.set(!0),new Promise((H,X)=>this._tasks.push(new Z(H,X,$,W,B)))}unshift($,W,B){return this._running.set(!0),new Promise((H,X)=>this._tasks.unshift(new Z(H,X,$,W,B)))}_process($){if(0===this._tasks.length)return!1;const W=this._tasks.shift();try{const B=(0,D.Hc)(W.signal);if(B&&!W.abortCallback)W.reject((0,D.zE)());else{const H=B?W.abortCallback?.((0,D.zE)()):W.callback($);(0,D.y8)(H)?H.then(W.resolve,W.reject):W.resolve(H)}}catch(B){W.reject(B)}return this._running.set(this._tasks.length>0),!0}cancelAll(){const $=(0,D.zE)();for(const W of this._tasks)if(W.abortCallback){const B=W.abortCallback($);W.resolve(B)}else W.reject($);this._tasks.length=0,this._running.set(!1)}}class Z{constructor($,W,B,H,X){this.resolve=$,this.reject=W,this.callback=B,this.signal=H,this.abortCallback=X}}},68155:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(55342)),$=v(76898),W=v(50028);let H=B=class extends W.Z{constructor(te){super(te),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new B({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,D._)([(0,R.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(te,ae)=>ae.range&&ae.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(te,ae,oe){ae[oe]=[this.minValue||0,te]}}}})],H.prototype,"maxValue",void 0),(0,D._)([(0,R.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(te,ae)=>ae.range&&ae.range[0]},write:{target:"range",writer(te,ae,oe){ae[oe]=[te,this.maxValue||0]}}}})],H.prototype,"minValue",void 0),(0,D._)([(0,Q.J)({range:"range"})],H.prototype,"type",void 0),H=B=(0,D._)([(0,$.j)("esri.layers.support.RangeDomain")],H);const X=H},2584:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>J});var Y,D=v(17626),R=v(2076),G=v(86810),Z=v(62208),Q=v(16730),$=v(77712),B=(v(85931),v(90912)),H=v(68653),X=v(76898),te=v(99433),ae=v(72642),oe=v(65234),le=v(65401),de=v(37053),se=v(46367),re=v(72258),j=v(68511);const ee=new R.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let ie=Y=class extends G.wq{constructor(ce){super(ce),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(ce={}){const{resolutionFactor:ue=1,scales:pe,size:he=256,spatialReference:me=oe.Z.WebMercator,numLODs:ge=24}=ce;if(!(0,de.JY)(me)){const ye=[];if(pe)for(let ve=0;ve=0;xe--)ye.unshift({level:xe,scale:ve,resolution:ve}),ve*=2}return new Y({dpi:96,lods:ye,origin:new ae.Z(0,0,me),size:[he,he],spatialReference:me})}const _e=(0,de.C5)(me),Ee=new ae.Z(ce.origin?{x:ce.origin.x,y:ce.origin.y,spatialReference:me}:_e?{x:_e.origin[0],y:_e.origin[1],spatialReference:me}:{x:0,y:0,spatialReference:me}),be=1/(39.37*(0,Q.c9)(me)*96),Se=[];if(pe)for(let ye=0;ye{he.push(ge.scale),ue=ge.scale>ue?ge.scale:ue,pe=ge.scale=ue.length-1)return ue[ue.length-1];const pe=Math.floor(ce);return ue[pe]/(ue[pe]/ue[pe+1])**(ce-pe)}scaleToZoom(ce){const ue=this.scales,pe=ue.length-1;let he=0;for(;hece&&ge=ue?this.zoomToScale(Math.ceil(pe)):this.zoomToScale(Math.floor(pe))}tileAt(ce,ue,pe,he){const me=this.lodAt(ce);if(!me)return null;let ge,_e;if("number"==typeof ue)ge=ue,_e=pe;else if((0,de.fS)(ue.spatialReference,this.spatialReference))ge=ue.x,_e=ue.y,he=pe;else{const be=(0,se.iV)(ue,this.spatialReference);if((0,Z.Wi)(be))return null;ge=be.x,_e=be.y,he=pe}const Ee=me.resolution*this.size[0],De=me.resolution*this.size[1];return he||(he=new j.f(null,0,0,0,(0,le.Ue)())),he.level=ce,he.row=Math.floor((this.origin.y-_e)/De+.001),he.col=Math.floor((ge-this.origin.x)/Ee+.001),this.updateTileInfo(he),he}updateTileInfo(ce,ue=Y.ExtrapolateOptions.NONE){let pe=this.lodAt(ce.level);if(!pe&&ue===Y.ExtrapolateOptions.POWER_OF_TWO){const _e=this.lods[this.lods.length-1];_e.levelArray.isArray(ce)?ce:"number"==typeof ce?[ce,ce]:[256,256]})],ie.prototype,"size",void 0),(0,D._)([(0,H.r)("size",["rows","cols"])],ie.prototype,"readSize",null),(0,D._)([(0,te.c)("size",{cols:{type:B.z8},rows:{type:B.z8}})],ie.prototype,"writeSize",null),(0,D._)([(0,$.Cb)({type:oe.Z,json:{write:!0}})],ie.prototype,"spatialReference",void 0),ie=Y=(0,D._)([(0,X.j)("esri.layers.support.TileInfo")],ie),(ue=(ce=ie||(ie={})).ExtrapolateOptions||(ce.ExtrapolateOptions={}))[ue.NONE=0]="NONE",ue[ue.POWER_OF_TWO=1]="POWER_OF_TWO";const J=ie},68511:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>D});class D{constructor(G,Z,Q,$,W){this.id=G,this.level=Z,this.row=Q,this.col=$,this.extent=W}}},62708:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Y});var oe,D=v(17626),R=v(97478),G=v(20849),Z=v(86810),Q=v(58817),$=v(62208),W=v(77712),H=(v(90912),v(68653)),X=v(76898),te=v(99433);v(85931);let le=oe=class extends Z.wq{constructor(ee){super(ee),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(ee,ie){return void 0!==ie.respectsDaylightSaving?ie.respectsDaylightSaving:void 0!==ie.respectDaylightSaving&&ie.respectDaylightSaving}clone(){const{respectsDaylightSaving:ee,timezone:ie}=this;return new oe({respectsDaylightSaving:ee,timezone:ie})}};(0,D._)([(0,W.Cb)({type:Boolean,json:{write:!0}})],le.prototype,"respectsDaylightSaving",void 0),(0,D._)([(0,H.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],le.prototype,"readRespectsDaylightSaving",null),(0,D._)([(0,W.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],le.prototype,"timezone",void 0),le=oe=(0,D._)([(0,X.j)("esri.layers.support.TimeReference")],le);const de=le;var re,se=v(58926);let j=re=class extends Z.wq{constructor(ee){super(ee),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(ee,ie){if(!ie.timeExtent||!Array.isArray(ie.timeExtent)||2!==ie.timeExtent.length)return null;const J=new Date(ie.timeExtent[0]),ce=new Date(ie.timeExtent[1]);return new R.Z({start:J,end:ce})}writeFullTimeExtent(ee,ie){ie.timeExtent=ee&&(0,$.pC)(ee.start)&&(0,$.pC)(ee.end)?[ee.start.getTime(),ee.end.getTime()]:null}readInterval(ee,ie){return ie.timeInterval&&ie.timeIntervalUnits?new G.Z({value:ie.timeInterval,unit:se.v.fromJSON(ie.timeIntervalUnits)}):ie.defaultTimeInterval&&ie.defaultTimeIntervalUnits?new G.Z({value:ie.defaultTimeInterval,unit:se.v.fromJSON(ie.defaultTimeIntervalUnits)}):null}writeInterval(ee,ie){if(ee){const J=ee.toJSON();ie.timeInterval=J.value,ie.timeIntervalUnits=J.unit}else ie.timeInterval=null,ie.timeIntervalUnits=null}clone(){const{cumulative:ee,endField:ie,hasLiveData:J,interval:ce,startField:ue,timeReference:pe,fullTimeExtent:he,trackIdField:me,useTime:ge}=this;return new re({cumulative:ee,endField:ie,hasLiveData:J,interval:ce,startField:ue,timeReference:(0,Q.d9)(pe),fullTimeExtent:(0,Q.d9)(he),trackIdField:me,useTime:ge})}};(0,D._)([(0,W.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],j.prototype,"cumulative",void 0),(0,D._)([(0,W.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],j.prototype,"endField",void 0),(0,D._)([(0,W.Cb)({type:R.Z,json:{write:{enabled:!0,allowNull:!0}}})],j.prototype,"fullTimeExtent",void 0),(0,D._)([(0,H.r)("fullTimeExtent",["timeExtent"])],j.prototype,"readFullTimeExtent",null),(0,D._)([(0,te.c)("fullTimeExtent")],j.prototype,"writeFullTimeExtent",null),(0,D._)([(0,W.Cb)({type:Boolean,json:{write:!0}})],j.prototype,"hasLiveData",void 0),(0,D._)([(0,W.Cb)({type:G.Z,json:{write:{enabled:!0,allowNull:!0}}})],j.prototype,"interval",void 0),(0,D._)([(0,H.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],j.prototype,"readInterval",null),(0,D._)([(0,te.c)("interval")],j.prototype,"writeInterval",null),(0,D._)([(0,W.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],j.prototype,"startField",void 0),(0,D._)([(0,W.Cb)({type:de,json:{write:{enabled:!0,allowNull:!0}}})],j.prototype,"timeReference",void 0),(0,D._)([(0,W.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],j.prototype,"trackIdField",void 0),(0,D._)([(0,W.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],j.prototype,"useTime",void 0),j=re=(0,D._)([(0,X.j)("esri.layers.support.TimeInfo")],j);const Y=j},38305:(nt,Ae,v)=>{"use strict";v.d(Ae,{B5:()=>H,DR:()=>te,G:()=>Y,M8:()=>le,Nm:()=>se,Qc:()=>X,XG:()=>re,a7:()=>oe,ld:()=>ae,wH:()=>j});var D=v(62208),R=v(21726),G=v(29840);const Z={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},Q=Object.values(Z),$=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${Q.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),W=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${Q.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),B=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function H(J){return!!$.test(J)}function X(J){if((0,D.Wi)(J))return null;const ce=(0,R.mN)(J),ue=ce.path.match($)||ce.path.match(W);if(!ue)return null;const[,pe,he,me,ge]=ue,_e=he.indexOf("/");return{title:ae(-1!==_e?he.slice(_e+1):he),serverType:Z[me.toLowerCase()],sublayer:null!=ge&&""!==ge?parseInt(ge,10):null,url:{path:pe}}}function te(J){const ce=(0,R.mN)(J).path.match(B);return ce?{serviceUrl:ce[1],sublayerId:Number(ce[2])}:null}function ae(J){return(J=J.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+J.slice(1)}function oe(J,ce){const ue=[];if(J){const pe=X(J);(0,D.pC)(pe)&&pe.title&&ue.push(pe.title)}if(ce){const pe=ae(ce);ue.push(pe)}if(2===ue.length){if(ue[0].toLowerCase().includes(ue[1].toLowerCase()))return ue[0];if(ue[1].toLowerCase().includes(ue[0].toLowerCase()))return ue[1]}return ue.join(" - ")}function le(J){if(!J)return!1;const me=(J=J.toLowerCase()).includes(".arcgis.com/"),ge=J.includes("//services")||J.includes("//tiles")||J.includes("//features");return me&&ge}function se(J,ce){return J&&(0,R.Qj)((0,R.Hu)(J,ce))}function re(J){let{url:ce}=J;if(!ce)return{url:ce};ce=(0,R.Hu)(ce,J.logger);const ue=(0,R.mN)(ce),pe=X(ue.path);let he;if((0,D.pC)(pe))null!=pe.sublayer&&null==J.layer.layerId&&(he=pe.sublayer),ce=pe.url.path;else if(J.nonStandardUrlAllowed){const me=te(ue.path);(0,D.pC)(me)&&(ce=me.serviceUrl,he=me.sublayerId)}return{url:(0,R.Qj)(ce),layerId:he}}function j(J,ce,ue,pe,he){(0,G.w)(ce,pe,"url",he),pe.url&&null!=J.layerId&&(pe.url=(0,R.v_)(pe.url,ue,J.layerId.toString()))}function Y(J){if(!J)return!1;const ce=J.toLowerCase(),ue=ce.includes("/services/"),pe=ce.includes("/mapserver/wmsserver"),he=ce.includes("/imageserver/wmsserver"),me=ce.includes("/wmsserver");return ue&&(pe||he||me)}},13812:(nt,Ae,v)=>{"use strict";v.d(Ae,{qG:()=>ue,PV:()=>ee,id:()=>he,iR:()=>re,rn:()=>Y,rT:()=>_e,u1:()=>ge,rO:()=>me,Oh:()=>J,bT:()=>ce,C_:()=>se,Lx:()=>ie,vg:()=>pe,YI:()=>de,HQ:()=>j});var D=v(97478),R=v(2004),G=v(65234),Z=v(29840),Q=v(62208),W=(v(10699),v(28170)),oe=v(82706),le=v(92236);const de={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},se={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(Ee,De)=>!De.disablePopup},write:{enabled:!0,writer(Ee,De,be){De[be]=!Ee}}}},re={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:!0}},j={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:Z.w}}},Y={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},ee={value:null,type:oe.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function ie(Ee){return{type:Ee,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const J={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},ce={...J,json:{...J.json,origins:{"web-document":{...J.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(Ee,De,be)=>be&&"service"!==be.origin||!De.drawingInfo||void 0===De.drawingInfo.transparency?De.layerDefinition&&De.layerDefinition.drawingInfo&&void 0!==De.layerDefinition.drawingInfo.transparency?(0,le.b)(De.layerDefinition.drawingInfo.transparency):void 0:(0,le.b)(De.drawingInfo.transparency)}}},ue={type:D.Z,readOnly:!0,get(){if(!this.layer?.timeInfo)return null;const{datesInUnknownTimezone:Ee,timeOffset:De,useViewTime:be}=this.layer,Se=this.view?.timeExtent;let ye=this.layer.timeExtent;Ee&&(ye=function ae(Ee){if(!Ee)return Ee;const{start:De,end:be}=Ee;return new D.Z({start:(0,Q.pC)(De)?(0,W.Nm)(De,De.getTimezoneOffset(),"minutes"):De,end:(0,Q.pC)(be)?(0,W.Nm)(be,be.getTimezoneOffset(),"minutes"):be})}(ye));let ve=be?Se&&ye?Se.intersection(ye):Se||ye:ye;if(!ve||ve.isEmpty||ve.isAllTime)return ve;De&&(ve=ve.offset(-De.value,De.unit)),Ee&&(ve=function te(Ee){if(!Ee)return Ee;const{start:De,end:be}=Ee;return new D.Z({start:(0,Q.pC)(De)?(0,W.Nm)(De,-De.getTimezoneOffset(),"minutes"):De,end:(0,Q.pC)(be)?(0,W.Nm)(be,-be.getTimezoneOffset(),"minutes"):be})}(ve));const xe=this._get("timeExtent");return ve.equals(xe)?xe:ve}},pe={type:R.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(Ee,De)=>{const be=R.Z.fromJSON(Ee);return null!=De.spatialReference&&"object"==typeof De.spatialReference&&(be.spatialReference=G.Z.fromJSON(De.spatialReference)),be}}}},read:!1}},he={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},me={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},ge={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}},_e={json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}}},67945:(nt,Ae,v)=>{"use strict";v.d(Ae,{V5:()=>$,im:()=>W}),v(8314);var R=v(26036),G=v(50028),Z=v(90336),Q=v(68155);const $={key:"type",base:G.Z,typeMap:{range:Q.Z,"coded-value":R.Z,inherited:Z.Z}};function W(B){if(!B||!B.type)return null;switch(B.type){case"range":return Q.Z.fromJSON(B);case"codedValue":return R.Z.fromJSON(B);case"inherited":return Z.Z.fromJSON(B)}return null}},26331:(nt,Ae,v)=>{"use strict";v.d(Ae,{C9:()=>Pe,Ci:()=>xe,FV:()=>ye,Fr:()=>te,JD:()=>me,JY:()=>rt,Jj:()=>be,KE:()=>Re,SU:()=>Ke,VG:()=>Fe,Y5:()=>Ee,gG:()=>Me,hu:()=>re,kZ:()=>Je,kp:()=>Ie,rP:()=>Xe,rk:()=>Ye,tD:()=>Ce});var D=v(15861),R=v(26584),G=v(8314),Z=v(2076),Q=v(62208),$=v(95737),W=v(38305),B=v(67736),H=v(96854),X=v(67010);const te=new Z.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),ae={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function oe(tt,et,qe){return!!(tt&&tt.hasOwnProperty(et)?tt[et]:qe)}function le(tt,et,qe){return tt&&tt.hasOwnProperty(et)?tt[et]:qe}function de(tt){const et=tt?.supportedSpatialAggregationStatistics?.map(qe=>qe.toLowerCase());return{envelope:!!et?.includes("envelopeaggregate"),centroid:!!et?.includes("centroidaggregate"),convexHull:!!et?.includes("convexhullaggregate")}}function se(tt,et){return!!tt?.supportedOperationsWithCacheHint?.map(ot=>ot.toLowerCase())?.includes(et.toLowerCase())}function re(tt,et,qe){return{analytics:j(et),attachment:Y(et),data:ee(et),metadata:ie(et),operations:J(et.capabilities||tt,et,qe),query:ce(et,qe),queryRelated:ue(et),queryTopFeatures:pe(et),editing:he(et)}}function j(tt){return{supportsCacheHint:se(tt.advancedQueryCapabilities,"queryAnalytics")}}function Y(tt){const et=tt.attachmentProperties,qe={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:se(tt.advancedQueryCapabilities,"queryAttachments"),supportsResize:oe(tt,"supportsAttachmentsResizing",!1)};return et&&Array.isArray(et)&&et.forEach(ot=>{const ut=ae[ot.name];ut&&(qe[ut]=!!ot.isEnabled)}),qe}function ee(tt){return{isVersioned:oe(tt,"isDataVersioned",!1),supportsAttachment:oe(tt,"hasAttachments",!1),supportsM:oe(tt,"hasM",!1),supportsZ:oe(tt,"hasZ",!1)}}function ie(tt){return{supportsAdvancedFieldProperties:oe(tt,"supportsFieldDescriptionProperty",!1)}}function J(tt,et,qe){const ot=tt?tt.toLowerCase().split(",").map(pr=>pr.trim()):[],ut=qe?(0,W.Qc)(qe):null,_t=ot.includes((0,Q.pC)(ut)&&"MapServer"===ut.serverType?"data":"query"),Ct=ot.includes("editing")&&!et.datesInUnknownTimezone;let vt=Ct&&ot.includes("create"),Lt=Ct&&ot.includes("delete"),jt=Ct&&ot.includes("update");const $t=ot.includes("changetracking"),Wt=et.advancedQueryCapabilities;return Ct&&!(vt||Lt||jt)&&(vt=Lt=jt=!0),{supportsCalculate:oe(et,"supportsCalculate",!1),supportsTruncate:oe(et,"supportsTruncate",!1),supportsValidateSql:oe(et,"supportsValidateSql",!1),supportsAdd:vt,supportsDelete:Lt,supportsEditing:Ct,supportsChangeTracking:$t,supportsQuery:_t,supportsQueryAnalytics:oe(Wt,"supportsQueryAnalytic",!1),supportsQueryAttachments:oe(Wt,"supportsQueryAttachments",!1),supportsQueryTopFeatures:oe(Wt,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:oe(et,"supportsAttachmentsResizing",!1),supportsSync:ot.includes("sync"),supportsUpdate:jt,supportsExceedsLimitStatistics:oe(et,"supportsExceedsLimitStatistics",!1)}}function ce(tt,et){const qe=tt.advancedQueryCapabilities,ot=tt.ownershipBasedAccessControlForFeatures,ut=tt.archivingInfo,_t=rt(tt),Ct=et?.includes("MapServer"),vt=!(0,G.Z)("mapserver-pbf-enabled")&&Ct&&(_t??0)<10.81,Lt=(0,W.M8)(et),jt=(tt.supportedQueryFormats||"").split(",").reduce(($t,Wt)=>{const pr=Wt.toLowerCase().trim();return pr&&$t.add(pr),$t},new Set);return{supportsStatistics:oe(qe,"supportsStatistics",tt.supportsStatistics),supportsPercentileStatistics:oe(qe,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:oe(qe,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:de(qe),supportsCentroid:oe(qe,"supportsReturningGeometryCentroid",!1),supportsDistance:oe(qe,"supportsQueryWithDistance",!1),supportsDistinct:oe(qe,"supportsDistinct",tt.supportsAdvancedQueries),supportsExtent:oe(qe,"supportsReturningQueryExtent",!1),supportsGeometryProperties:oe(qe,"supportsReturningGeometryProperties",!1),supportsHavingClause:oe(qe,"supportsHavingClause",!1),supportsOrderBy:oe(qe,"supportsOrderBy",tt.supportsAdvancedQueries),supportsPagination:oe(qe,"supportsPagination",!1),supportsQuantization:oe(tt,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:oe(tt,"supportsQuantizationEditMode",!1),supportsQueryGeometry:oe(tt,"supportsReturningQueryGeometry",!1),supportsResultType:oe(qe,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:oe(qe,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:oe(qe,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:oe(tt,"useStandardizedQueries",!1),supportsTopFeaturesQuery:oe(qe,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:oe(ot,"allowOthersToQuery",!0),supportsHistoricMoment:oe(ut,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:!vt&&jt.has("pbf"),supportsDisjointSpatialRelationship:oe(qe,"supportsDisjointSpatialRel",!1),supportsCacheHint:oe(qe,"supportsQueryWithCacheHint",!1)||se(qe,"query"),supportsDefaultSpatialReference:oe(qe,"supportsDefaultSR",!1),supportsCompactGeometry:Lt,supportsFullTextSearch:oe(qe,"supportsFullTextSearch",!1),maxRecordCountFactor:le(tt,"maxRecordCountFactor",void 0),maxRecordCount:le(tt,"maxRecordCount",void 0),standardMaxRecordCount:le(tt,"standardMaxRecordCount",void 0),tileMaxRecordCount:le(tt,"tileMaxRecordCount",void 0)}}function ue(tt){const et=tt.advancedQueryCapabilities,qe=oe(et,"supportsAdvancedQueryRelated",!1);return{supportsPagination:oe(et,"supportsQueryRelatedPagination",!1),supportsCount:qe,supportsOrderBy:qe,supportsCacheHint:se(et,"queryRelated")}}function pe(tt){return{supportsCacheHint:se(tt.advancedQueryCapabilities,"queryTopFilter")}}function he(tt){const et=tt.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:oe(tt,"allowGeometryUpdates",!0),supportsGlobalId:oe(tt,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:oe(tt,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:oe(tt,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:oe(tt,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:oe(tt,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:oe(et,"allowAnonymousToDelete",!0),supportsDeleteByOthers:oe(et,"allowOthersToDelete",!0),supportsUpdateByAnonymous:oe(et,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:oe(et,"allowOthersToUpdate",!0)}}function me(tt,et,qe,ot){return ge.apply(this,arguments)}function ge(){return(ge=(0,D.Z)(function*(tt,et,qe,ot){const{source:ut}=yield tt.load();if(yield _e(tt,et,ot),!ut.addAttachment)throw new R.Z(ot,"Layer source does not support addAttachment capability");return ut.addAttachment(et,qe)})).apply(this,arguments)}function _e(tt,et,qe){const{attributes:ot}=et,{objectIdField:ut}=tt;return tt.get("capabilities.data.supportsAttachment")?et?ot?ut&&ot[ut]?Promise.resolve():Promise.reject(new R.Z(qe,`feature is missing the identifying attribute ${ut}`)):Promise.reject(new R.Z(qe,"'attributes' are required on a feature to query attachments")):Promise.reject(new R.Z(qe,"A feature is required to add/delete/update attachments")):Promise.reject(new R.Z(qe,"this layer doesn't support attachments"))}function Ee(tt,et,qe,ot,ut){return De.apply(this,arguments)}function De(){return(De=(0,D.Z)(function*(tt,et,qe,ot,ut){const{source:_t}=yield tt.load();if(yield _e(tt,et,ut),!_t.updateAttachment)throw new R.Z(ut,"Layer source does not support updateAttachment capability");return _t.updateAttachment(et,qe,ot)})).apply(this,arguments)}function be(tt,et,qe){return Se.apply(this,arguments)}function Se(){return(Se=(0,D.Z)(function*(tt,et,qe){const ot=yield v.e(5362).then(v.bind(v,95362)),ut=yield tt.load();return ot.applyEdits(ut,ut.source,et,qe)})).apply(this,arguments)}function ye(tt,et,qe,ot){return ve.apply(this,arguments)}function ve(){return(ve=(0,D.Z)(function*(tt,et,qe,ot){const{source:ut}=yield tt.load();if(yield _e(tt,et,ot),!ut.deleteAttachments)throw new R.Z(ot,"Layer source does not support deleteAttachments capability");return ut.deleteAttachments(et,qe)})).apply(this,arguments)}function xe(tt,et,qe){return ze.apply(this,arguments)}function ze(){return(ze=(0,D.Z)(function*(tt,et,qe){const{source:ot}=yield tt.load({signal:et?.signal});if(!ot.fetchRecomputedExtents)throw new R.Z(qe,"Layer source does not support fetchUpdates capability");return ot.fetchRecomputedExtents(et)})).apply(this,arguments)}function Ke(tt,et,qe,ot){return We.apply(this,arguments)}function We(){return(We=(0,D.Z)(function*(tt,et,qe,ot){et=B.Z.from(et);const{source:ut,capabilities:_t}=yield tt.load();if(!_t?.data?.supportsAttachment)throw new R.Z(ot,"this layer doesn't support attachments");const{attachmentTypes:Ct,objectIds:vt,globalIds:Lt,num:jt,size:$t,start:Wt,where:pr}=et;if(!_t?.operations?.supportsQueryAttachments){const ar=Ct&&Ct.length,Fr=Lt&&Lt.length,mr=$t&&$t.length;if(vt&&vt.length>1||ar||Fr||mr||jt||Wt||pr)throw new R.Z(ot,"when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",et)}if(!vt?.length&&!pr)throw new R.Z(ot,"'objectIds' or 'where' are required to perform attachment query",et);if(!ut.queryAttachments)throw new R.Z(ot,"Layer source does not support queryAttachments capability",et);return ut.queryAttachments(et)})).apply(this,arguments)}function Ce(tt,et,qe,ot){return Be.apply(this,arguments)}function Be(){return(Be=(0,D.Z)(function*(tt,et,qe,ot){const{source:ut}=yield tt.load();if(!ut.queryObjectIds)throw new R.Z(ot,"Layer source does not support queryObjectIds capability");return ut.queryObjectIds(H.Z.from(et)??tt.createQuery(),qe)})).apply(this,arguments)}function Fe(tt,et,qe,ot){return je.apply(this,arguments)}function je(){return(je=(0,D.Z)(function*(tt,et,qe,ot){const{source:ut}=yield tt.load();if(!ut.queryFeatureCount)throw new R.Z(ot,"Layer source does not support queryFeatureCount capability");return ut.queryFeatureCount(H.Z.from(et)??tt.createQuery(),qe)})).apply(this,arguments)}function Re(tt,et,qe,ot){return He.apply(this,arguments)}function He(){return(He=(0,D.Z)(function*(tt,et,qe,ot){const{source:ut}=yield tt.load();if(!ut.queryExtent)throw new R.Z(ot,"Layer source does not support queryExtent capability");return ut.queryExtent(H.Z.from(et)??tt.createQuery(),qe)})).apply(this,arguments)}function Ie(tt,et,qe,ot){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,D.Z)(function*(tt,et,qe,ot){const{source:ut}=yield tt.load();if(!ut.queryRelatedFeatures)throw new R.Z(ot,"Layer source does not support queryRelatedFeatures capability");return ut.queryRelatedFeatures(X.Z.from(et),qe)})).apply(this,arguments)}function Pe(tt,et,qe,ot){return Le.apply(this,arguments)}function Le(){return(Le=(0,D.Z)(function*(tt,et,qe,ot){const{source:ut}=yield tt.load();if(!ut.queryRelatedFeaturesCount)throw new R.Z(ot,"Layer source does not support queryRelatedFeaturesCount capability");return ut.queryRelatedFeaturesCount(X.Z.from(et),qe)})).apply(this,arguments)}function Me(tt){return Ne.apply(this,arguments)}function Ne(){return(Ne=(0,D.Z)(function*(tt){const et=tt.source;if(et?.refresh)try{const{dataChanged:qe,updates:ot}=yield et.refresh();if((0,Q.pC)(ot)&&(tt.sourceJSON={...tt.sourceJSON,...ot},tt.read(ot,{origin:"service",url:tt.parsedUrl})),qe)return!0}catch{}if(tt.definitionExpression)try{return(yield(0,$.E)(tt.definitionExpression,tt.fieldsIndex)).hasDateFunctions}catch{}return!1})).apply(this,arguments)}function Xe(tt){const et=new H.Z,qe=tt.get("capabilities.data"),ot=tt.get("capabilities.query");et.historicMoment=tt.historicMoment,et.gdbVersion=tt.gdbVersion,et.returnGeometry=!0,ot&&(et.compactGeometryEnabled=ot.supportsCompactGeometry,et.defaultSpatialReferenceEnabled=ot.supportsDefaultSpatialReference),qe&&(qe.supportsZ&&null!=tt.returnZ&&(et.returnZ=tt.returnZ),qe.supportsM&&null!=tt.returnM&&(et.returnM=tt.returnM)),et.outFields=["*"];const{timeOffset:ut,timeExtent:_t}=tt;return et.timeExtent=null!=ut&&null!=_t?_t.offset(-ut.value,ut.unit):_t||null,et.multipatchOption="multipatch"===tt.geometryType?"xyFootprint":null,et}function Ye(tt){const{globalIdField:et,fields:qe}=tt;if(et)return et;if(qe)for(const ot of qe)if("esriFieldTypeGlobalID"===ot.type)return ot.name}function Je(tt){const{objectIdField:et,fields:qe}=tt;if(et)return et;if(qe)for(const ot of qe)if("esriFieldTypeOID"===ot.type)return ot.name}function rt(tt){return tt.currentVersion?tt.currentVersion:tt.hasOwnProperty("capabilities")||tt.hasOwnProperty("drawingInfo")||tt.hasOwnProperty("hasAttachments")||tt.hasOwnProperty("htmlPopupType")||tt.hasOwnProperty("relationships")||tt.hasOwnProperty("timeInfo")||tt.hasOwnProperty("typeIdField")||tt.hasOwnProperty("types")?10:9.3}},55911:(nt,Ae,v)=>{"use strict";v.d(Ae,{v:()=>Q});var D=v(63290),R=v(36255),G=v(60466),Z=v(36630);function Q(){return{fields:{type:[R.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new G.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function($){this._userOutFields=$,this.notifyChange("outFields")},get:function(){const $=this._userOutFields;if(!$||!$.length)return null;if($.includes("*"))return["*"];if(!this.fields)return $;for(const W of $)this.fieldsIndex?.has(W)||D.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${W} found in outFields`,{layer:this,outFields:$});return(0,Z.Q0)(this.fieldsIndex,$)}}}}},85:(nt,Ae,v)=>{"use strict";v.d(Ae,{v:()=>R});const R=new(v(2076).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},36630:(nt,Ae,v)=>{"use strict";v.d(Ae,{io:()=>he,vl:()=>ve,ZV:()=>Ke,AB:()=>ce,gd:()=>J,Ll:()=>Fe,Mu:()=>Je,Qj:()=>Re,R9:()=>Hr,Q0:()=>ie,YN:()=>re,UF:()=>Y,O5:()=>Ee,CH:()=>Me,os:()=>qe,y2:()=>Fr,H7:()=>gr,Ec:()=>Cs,qN:()=>ar,q6:()=>le,Gm:()=>Qr,Pz:()=>sr,Lk:()=>ue,Qc:()=>rr,vP:()=>Lr});var Q,Dt,D=v(15861),R=v(26584),G=v(62208),Z=v(94113);(Dt=Q||(Q={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",Dt.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var B=v(46679);const H=/^([0-9])/,X=/[^A-Za-z0-9_\u0080-\uffff]/g,te=/_{2,}/g,ae=/^_/,oe=/_$/;function le(Dt){return Dt?Dt.trim().replace(X,"_").replace(te,"_").replace(ae,"").replace(oe,"").replace(H,"F$1"):null}const de=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],se=["field","normalizationField"];function re(Dt,ct){if(null!=Dt&&null!=ct)for(const At of Array.isArray(Dt)?Dt:[Dt])if(j(de,At,ct),"visualVariables"in At&&At.visualVariables)for(const Kt of At.visualVariables)j(se,Kt,ct)}function j(Dt,ct,At){if(Dt)for(const Kt of Dt){const tr=(0,Z.hS)(Kt,ct),_r=tr&&"function"!=typeof tr&&At.get(tr);_r&&(0,Z.RB)(Kt,_r.name,ct)}}function Y(Dt,ct){if(null!=Dt&&ct?.fields?.length)if("startField"in Dt){const At=ct.get(Dt.startField),Kt=ct.get(Dt.endField);Dt.startField=At?.name??null,Dt.endField=Kt?.name??null}else{const At=ct.get(Dt.startTimeField),Kt=ct.get(Dt.endTimeField);Dt.startTimeField=At?.name??null,Dt.endTimeField=Kt?.name??null}}const ee=new Set;function ie(Dt,ct){return Dt&&ct?(ee.clear(),J(ee,Dt,ct),Array.from(ee).sort()):[]}function J(Dt,ct,At){if(At)if(ct?.fields?.length)if(At.includes("*"))for(const{name:Kt}of ct.fields)Dt.add(Kt);else for(const Kt of At)ce(Dt,ct,Kt);else{if(At.includes("*"))return Dt.clear(),void Dt.add("*");for(const Kt of At)null!=Kt&&Dt.add(Kt)}}function ce(Dt,ct,At){if("string"==typeof At)if(ct){const Kt=ct.get(At);Kt&&Dt.add(Kt.name)}else Dt.add(At)}function ue(Dt,ct){return(0,G.Wi)(ct)||(0,G.Wi)(Dt)?[]:ct.includes("*")?(Dt.fields??[]).map(At=>At.name):ct}function he(Dt,ct,At){return me.apply(this,arguments)}function me(){return me=(0,D.Z)(function*(Dt,ct,At){if(!At)return;const{arcadeUtils:Kt}=yield(0,B.LC)(),tr=Kt.extractFieldNames(At,ct?.fields?.map(_r=>_r.name));for(const _r of tr)ce(Dt,ct,_r)}),me.apply(this,arguments)}function ge(Dt,ct,At){return _e.apply(this,arguments)}function _e(){return _e=(0,D.Z)(function*(Dt,ct,At){if(At&&"1=1"!==At){const Kt=(yield v.e(410).then(v.bind(v,10410))).WhereClause.create(At,ct);if(!Kt.isStandardized)throw new R.Z("fieldUtils:collectFilterFields","Where clause is not standardized",{where:At});J(Dt,ct,Kt.fieldNames)}}),_e.apply(this,arguments)}function Ee({displayField:Dt,fields:ct}){return Dt||(ct&&ct.length?be(ct,"name-or-title")||be(ct,"unique-identifier")||be(ct,"type-or-category")||function De(Dt){for(const ct of Dt){if(!ct||!ct.name)continue;const At=ct.name.toLowerCase();if(At.includes("name")||At.includes("title"))return ct.name}return null}(ct):null)}function be(Dt,ct){for(const At of Dt)if(At&&At.valueType&&At.valueType===ct)return At.name;return null}function ve(Dt,ct){return xe.apply(this,arguments)}function xe(){return xe=(0,D.Z)(function*(Dt,ct){if(!ct)return;const At=(0,Z.hS)("elevationInfo.featureExpressionInfo",ct);return At?At.collectRequiredFields(Dt,ct.fieldsIndex):void 0}),xe.apply(this,arguments)}function ze(Dt,ct,At){At.onStatisticExpression?he(Dt,ct,At.onStatisticExpression.expression):Dt.add(At.onStatisticField)}function Ke(Dt,ct,At){return We.apply(this,arguments)}function We(){return We=(0,D.Z)(function*(Dt,ct,At){if(!ct||!At||!("fields"in At))return;const Kt=[];Kt.push(Ce(Dt,ct,At.popupTemplate)),At.fields&&Kt.push(...At.fields.map(function(){var _r=(0,D.Z)(function*(Or){return ze(Dt,ct.fieldsIndex,Or)});return function(Or){return _r.apply(this,arguments)}}())),yield Promise.all(Kt)}),We.apply(this,arguments)}function Ce(Dt,ct,At){return Be.apply(this,arguments)}function Be(){return Be=(0,D.Z)(function*(Dt,ct,At){const Kt=[];At?.expressionInfos&&Kt.push(...At.expressionInfos.map(_r=>he(Dt,ct.fieldsIndex,_r.expression)));const tr=At?.content;if(Array.isArray(tr))for(const _r of tr)"expression"===_r.type&&_r.expressionInfo&&Kt.push(he(Dt,ct.fieldsIndex,_r.expressionInfo.expression));yield Promise.all(Kt)}),Be.apply(this,arguments)}function Fe(Dt,ct,At){return je.apply(this,arguments)}function je(){return je=(0,D.Z)(function*(Dt,ct,At){ct&&(ct.timeInfo&&(0,G.pC)(At)&&At.timeExtent&&J(Dt,ct.fieldsIndex,[ct.timeInfo.startField,ct.timeInfo.endField]),ct.floorInfo&&J(Dt,ct.fieldsIndex,[ct.floorInfo.floorField]),(0,G.pC)(At)&&(0,G.pC)(At.where)&&(yield ge(Dt,ct.fieldsIndex,At.where)))}),je.apply(this,arguments)}function Re(Dt,ct,At){return He.apply(this,arguments)}function He(){return He=(0,D.Z)(function*(Dt,ct,At){ct&&At&&(yield Promise.all(At.map(Kt=>Ie(Dt,ct,Kt))))}),He.apply(this,arguments)}function Ie(Dt,ct,At){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,D.Z)(function*(Dt,ct,At){ct&&At&&(At.valueExpression?yield he(Dt,ct.fieldsIndex,At.valueExpression):At.field&&ce(Dt,ct.fieldsIndex,At.field))}),Ge.apply(this,arguments)}function Me(Dt){if(!Dt)return[];const ct="editFieldsInfo"in Dt&&Dt.editFieldsInfo;return ct?ie(Dt.fieldsIndex,[ct&&ct.creatorField,ct&&ct.creationDateField,ct&&ct.editorField,ct&&ct.editDateField]):[]}function Je(Dt,ct){return rt.apply(this,arguments)}function rt(){return rt=(0,D.Z)(function*(Dt,ct){const{labelingInfo:At,fieldsIndex:Kt}=ct;At&&At.length&&(yield Promise.all(At.map(tr=>tt(Dt,Kt,tr))))}),rt.apply(this,arguments)}function tt(Dt,ct,At){return et.apply(this,arguments)}function et(){return et=(0,D.Z)(function*(Dt,ct,At){if(!At)return;const Kt=At.getLabelExpression(),tr=At.where;if("arcade"===Kt.type)yield he(Dt,ct,Kt.expression);else{const _r=Kt.expression.match(/{[^}]*}/g);_r&&_r.forEach(Or=>{ce(Dt,ct,Or.slice(1,-1))})}yield ge(Dt,ct,tr)}),et.apply(this,arguments)}function qe(Dt){const ct=Dt.defaultValue;return void 0!==ct&&$t(Dt,ct)?ct:Dt.nullable?null:void 0}function ot(Dt){return"number"==typeof Dt&&!isNaN(Dt)&&isFinite(Dt)}function ut(Dt){return null===Dt||ot(Dt)}const _t="isInteger"in Number?Number.isInteger:Dt=>"number"==typeof Dt&&isFinite(Dt)&&Math.floor(Dt)===Dt;function Ct(Dt){return null===Dt||_t(Dt)}function vt(Dt){return null!=Dt&&"string"==typeof Dt}function Lt(Dt){return null===Dt||vt(Dt)}function jt(){return!0}function $t(Dt,ct){let At;switch(Dt.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":At=Dt.nullable?Ct:_t;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":At=Dt.nullable?ut:ot;break;case"string":case"esriFieldTypeString":At=Dt.nullable?Lt:vt;break;default:At=jt}return 1===arguments.length?At:At(ct)}const pr=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function gr(Dt){return null!=Dt&&pr.has(Dt.type)}function ar(Dt){return null!=Dt&&("string"===Dt.type||"esriFieldTypeString"===Dt.type)}function Fr(Dt){return null!=Dt&&("date"===Dt.type||"esriFieldTypeDate"===Dt.type)}var wt,or;function sr(Dt){return null==Dt||"number"==typeof Dt&&isNaN(Dt)?null:Dt}function rr(Dt,ct){return Dt.nullable&&null===ct?null:gr(Dt)&&!function Et(Dt,ct){const At="string"==typeof Dt?Ft(Dt):Dt;if(!At)return!1;const Kt=At.min,tr=At.max;return At.isInteger?_t(ct)&&ct>=Kt&&ct<=tr:ct>=Kt&&ct<=tr}(Dt.type,Number(ct))?wt.OUT_OF_RANGE:$t(Dt,ct)?Dt.domain?function $(Dt,ct){switch(Dt.type){case"range":{const At="range"in Dt?Dt.range[0]:Dt.minValue,Kt="range"in Dt?Dt.range[1]:Dt.maxValue;if(null!=At&&+ctKt)return Q.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==Dt.codedValues||Dt.codedValues.every(At=>null==At||At.code!==ct))return Q.INVALID_CODED_VALUE}return null}(Dt.domain,ct):null:or.INVALID_TYPE}function Ft(Dt){switch(Dt){case"esriFieldTypeSmallInteger":case"small-integer":return dr;case"esriFieldTypeInteger":case"integer":return hr;case"esriFieldTypeSingle":case"single":return Tr;case"esriFieldTypeDouble":case"double":return Dr}}(function(Dt){Dt.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})(wt||(wt={})),function(Dt){Dt.INVALID_TYPE="type-validation-error::invalid-type"}(or||(or={}));const dr={min:-32768,max:32767,isInteger:!0},hr={min:-2147483648,max:2147483647,isInteger:!0},Tr={min:-34e37,max:12e37,isInteger:!1},Dr={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function Lr(Dt,ct,At){switch(Dt){case Q.INVALID_CODED_VALUE:return`Value ${At} is not in the coded domain - field: ${ct.name}, domain: ${JSON.stringify(ct.domain)}`;case Q.VALUE_OUT_OF_RANGE:return`Value ${At} is out of the range of valid values - field: ${ct.name}, domain: ${JSON.stringify(ct.domain)}`;case or.INVALID_TYPE:return`Value ${At} is not a valid value for the field type - field: ${ct.name}, type: ${ct.type}, nullable: ${ct.nullable}`;case wt.OUT_OF_RANGE:{const{min:Kt,max:tr}=Ft(ct.type);return`Value ${At} is out of range for the number type - field: ${ct.name}, type: ${ct.type}, value range is ${Kt} to ${tr}`}}}function Hr(Dt,ct){return!Qr(Dt,ct,null)}function Qr(Dt,ct,At){if(!ct||!ct.attributes||!Dt){if((0,G.pC)(At))for(const _r of Dt??[])At.add(_r);return!0}const Kt=ct.attributes;let tr=!1;for(const _r of Dt)if(!(_r in Kt)){if(tr=!0,!(0,G.pC)(At))break;At.add(_r)}return tr}function Cs(Dt){return["raster.itempixelvalue","raster.servicepixelvalue"].some(ct=>Dt.toLowerCase().startsWith(ct))}},59990:(nt,Ae,v)=>{"use strict";function D(Z){const Q=Z.layer;return"floorInfo"in Q&&Q.floorInfo?.floorField&&"floors"in Z.view?G(Z.view.floors,Q.floorInfo.floorField):null}function R(Z,Q){return"floorInfo"in Q&&Q.floorInfo?.floorField?G(Z,Q.floorInfo.floorField):null}function G(Z,Q){if(!Z?.length)return null;const $=Z.filter(W=>""!==W).map(W=>`'${W}'`);return $.push("''"),`${Q} IN (${$.join(",")}) OR ${Q} IS NULL`}v.d(Ae,{c:()=>D,f:()=>R})},22445:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{createLabelFunction:()=>oe,formatField:()=>de});var D=v(15861),R=v(26584),G=v(63290),Z=v(62208),Q=v(88411),$=v(15348),W=v(36630),B=v(86793),H=v(46679);const X=G.Z.getLogger("esri.layers.support.labelFormatUtils"),te={type:"simple",evaluate:()=>null},ae={getAttribute:(se,re)=>se.field(re)};function oe(se,re,j){return le.apply(this,arguments)}function le(){return(le=(0,D.Z)(function*(se,re,j){if(!se||!se.symbol)return te;const Y=se.where,ee=(0,B.hV)(se),ie=Y?yield v.e(410).then(v.bind(v,10410)):null;let J;if("arcade"===ee.type){const ce=yield(0,H.WW)(ee.expression,j,re);if((0,Z.Wi)(ce))return te;J={type:"arcade",evaluate(ue){try{const pe=ce.evaluate({$feature:"attributes"in ue?ce.repurposeFeature(ue):ue});if(null!=pe)return pe.toString()}catch{X.error(new R.Z("arcade-expression-error","Encountered an error when evaluating label expression for feature",{feature:ue,expression:ee}))}return null},needsHydrationToEvaluate:()=>null==(0,B.el)(ee.expression)}}else J={type:"simple",evaluate:ce=>ee.expression.replace(/{[^}]*}/g,ue=>{const pe=ue.slice(1,-1),he=re.get(pe);if(!he)return ue;let me=null;return"attributes"in ce?ce&&ce.attributes&&(me=ce.attributes[he.name]):me=ce.field(he.name),null==me?"":de(me,he)})};if(Y){let ce;try{ce=ie.WhereClause.create(Y,re)}catch(pe){return X.error(new R.Z("bad-where-clause","Encountered an error when evaluating where clause, ignoring",{where:Y,error:pe})),te}const ue=J.evaluate;J.evaluate=pe=>{const he="attributes"in pe?void 0:ae;try{if(ce.testFeature(pe,he))return ue(pe)}catch(me){X.error(new R.Z("bad-where-clause","Encountered an error when evaluating where clause for feature",{where:Y,feature:pe,error:me}))}return null}}return J})).apply(this,arguments)}function de(se,re){if(null==se)return"";const j=re.domain;if(j)if("codedValue"===j.type||"coded-value"===j.type){const ee=se;for(const ie of j.codedValues)if(ie.code===ee)return ie.name}else if("range"===j.type){const ee=+se,J="range"in j?j.range[1]:j.maxValue;if(("range"in j?j.range[0]:j.minValue)<=ee&&ee<=J)return j.name}let Y=se;return"date"===re.type||"esriFieldTypeDate"===re.type?Y=(0,Q.p6)(Y,(0,Q.Ze)("short-date")):(0,W.H7)(re)&&(Y=(0,$.uf)(+Y)),Y||""}},86793:(nt,Ae,v)=>{"use strict";v.d(Ae,{UO:()=>de,YI:()=>le,dI:()=>se,el:()=>J,hV:()=>oe,z7:()=>ae});var D=v(77275);const R="__begin__",G="__end__",Z=new RegExp(R,"ig"),Q=new RegExp(G,"ig"),$=new RegExp("^"+R,"i"),W=new RegExp(G+"$","i");function ae(ce){return ce.replace(new RegExp("\\{","g"),"[").replace(new RegExp("\\}","g"),"]")}function oe(ce){const ue={expression:"",type:"none"};return ce.labelExpressionInfo?ce.labelExpressionInfo.value?(ue.expression=ce.labelExpressionInfo.value,ue.type="conventional"):ce.labelExpressionInfo.expression&&(ue.expression=ce.labelExpressionInfo.expression,ue.type="arcade"):null!=ce.labelExpression&&(ue.expression=function te(ce){return ce.replace(new RegExp("\\[","g"),"{").replace(new RegExp("\\]","g"),"}")}(ce.labelExpression),ue.type="conventional"),ue}function le(ce){const ue=oe(ce);if(!ue)return null;switch(ue.type){case"conventional":return se(ue.expression);case"arcade":return ue.expression}return null}function de(ce){const ue=oe(ce);if(!ue)return null;switch(ue.type){case"conventional":return function j(ce){const ue=ce.match(re);return ue&&ue[1].trim()||null}(ue.expression);case"arcade":return J(ue.expression)}return null}function se(ce){let ue;return ce?(ue=(0,D.gx)(ce,pe=>R+'$feature["'+pe+'"]'+G),ue=$.test(ue)?ue.replace($,""):'"'+ue,ue=W.test(ue)?ue.replace(W,""):ue+'"',ue=ue.replace(Z,'" + ').replace(Q,' + "')):ue='""',ue}const re=/^\s*\{([^}]+)\}\s*$/i,Y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,ee=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,ie=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function J(ce){if(!ce)return null;let ue=Y.exec(ce)||ee.exec(ce);return ue?ue[1]||ue[3]:(ue=ie.exec(ce),ue?ue[2]:null)}},62667:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>X,r:()=>W});var D=v(26584),R=v(58817),G=v(63290),Z=v(170);const Q=G.Z.getLogger("esri.layers.support.labelingInfo"),$=/\[([^\[\]]+)\]/gi;function W(ae,oe,le){return ae?ae.map(de=>{const se=new Z.Z;if(se.read(de,le),se.labelExpression){const re=oe.fields||oe.layerDefinition&&oe.layerDefinition.fields||this.fields;se.labelExpression=se.labelExpression.replace($,(j,Y)=>`[${function B(ae,oe){if(!oe)return ae;const le=ae.toLowerCase();for(let de=0;defunction te(ae,oe){const le=ae.labelPlacement,de=H[oe];if(!ae.symbol)return Q.warn("No ILabelClass symbol specified."),!0;if(!de)return Q.error(new D.Z("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${oe}' is not supported`)),!0;if(!de.includes(le)){const se=de[0];le&&Q.warn(`Found invalid label placement type ${le} for ${oe}. Defaulting to ${se}`),ae.labelPlacement=se}return!1}(de,oe))?[]:le}},72469:(nt,Ae,v)=>{"use strict";function R(ae){const oe=ae?.type;return"base-tile"===oe||"tile"===oe||"elevation"===oe||"imagery-tile"===oe||"base-elevation"===oe||"open-street-map"===oe||"wcs"===oe||"web-tile"===oe||"wmts"===oe||"vector-tile"===oe}function G(ae){return"voxel"===ae?.type}function Z(ae){return"imagery-tile"===ae?.type}function Q(ae){return"esri.Basemap"===ae.parent?.declaredClass&&ae.parent.baseLayers.includes(ae)}function $(ae){return"feature"===ae?.type&&!ae.url&&"memory"===ae.source?.type}function W(ae){return"feature"===ae?.type&&"feature-layer"===ae.source?.type}function X(ae){return!0===ae.labelsVisible&&null!=ae.labelingInfo&&ae.labelingInfo.length>0}function te(ae){if(ae.activeLayer){const oe=ae.activeLayer.tileMatrixSet;if(oe)return oe;const le=ae.activeLayer.tileMatrixSets;if(le)return le}return null}v.d(Ae,{Am:()=>Z,C6:()=>X,Tv:()=>G,iC:()=>R,mt:()=>te,rQ:()=>$,sy:()=>Q,y2:()=>W})},15283:(nt,Ae,v)=>{"use strict";v.d(Ae,{n:()=>be});var re,D=v(17626),R=v(2076),G=v(86810),Z=v(77712),$=(v(85931),v(66656)),W=v(55342),B=v(68653),H=v(76898),X=v(90912),te=v(383),ae=v(36255),oe=v(48370),de=(v(29132),v(65234)),se=v(71774);let j=re=class extends G.wq{constructor(Se){super(Se),this.type="query-table"}clone(){const{workspaceId:Se,query:ye,oidFields:ve,spatialReference:xe,geometryType:ze}=this,Ke={workspaceId:Se,query:ye,oidFields:ve,spatialReference:xe?.clone()??void 0,geometryType:ze};return new re(Ke)}};var Y;(0,D._)([(0,W.J)({queryTable:"query-table"})],j.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],j.prototype,"workspaceId",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],j.prototype,"query",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],j.prototype,"oidFields",void 0),(0,D._)([(0,Z.Cb)({type:de.Z,json:{write:!0}})],j.prototype,"spatialReference",void 0),(0,D._)([(0,W.J)(se.Mk)],j.prototype,"geometryType",void 0),j=re=(0,D._)([(0,H.j)("esri.layers.support.source.QueryTableDataSource")],j);let ee=Y=class extends G.wq{constructor(Se){super(Se),this.type="raster"}clone(){const{workspaceId:Se,dataSourceName:ye}=this;return new Y({workspaceId:Se,dataSourceName:ye})}};var ie;(0,D._)([(0,W.J)({raster:"raster"})],ee.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],ee.prototype,"dataSourceName",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],ee.prototype,"workspaceId",void 0),ee=Y=(0,D._)([(0,H.j)("esri.layers.support.source.RasterDataSource")],ee);let J=ie=class extends G.wq{constructor(Se){super(Se),this.type="table"}clone(){const{workspaceId:Se,gdbVersion:ye,dataSourceName:ve}=this;return new ie({workspaceId:Se,gdbVersion:ye,dataSourceName:ve})}};var ce,ue;(0,D._)([(0,W.J)({table:"table"})],J.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],J.prototype,"workspaceId",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],J.prototype,"gdbVersion",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],J.prototype,"dataSourceName",void 0),J=ie=(0,D._)([(0,H.j)("esri.layers.support.source.TableDataSource")],J);const pe=(0,R.w)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let he=ce=class extends G.wq{constructor(Se){super(Se),this.type="join-table"}readLeftTableSource(Se,ye,ve){return ge()(Se,ye,ve)}castLeftTableSource(Se){return(0,X.N7)(Ee(),Se)}readRightTableSource(Se,ye,ve){return ge()(Se,ye,ve)}castRightTableSource(Se){return(0,X.N7)(Ee(),Se)}clone(){const{leftTableKey:Se,rightTableKey:ye,leftTableSource:ve,rightTableSource:xe,joinType:ze}=this,Ke={leftTableKey:Se,rightTableKey:ye,leftTableSource:ve?.clone()??void 0,rightTableSource:xe?.clone()??void 0,joinType:ze};return new ce(Ke)}};(0,D._)([(0,W.J)({joinTable:"join-table"})],he.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],he.prototype,"leftTableKey",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],he.prototype,"rightTableKey",void 0),(0,D._)([(0,Z.Cb)({json:{write:!0}})],he.prototype,"leftTableSource",void 0),(0,D._)([(0,B.r)("leftTableSource")],he.prototype,"readLeftTableSource",null),(0,D._)([(0,$.p)("leftTableSource")],he.prototype,"castLeftTableSource",null),(0,D._)([(0,Z.Cb)({json:{write:!0}})],he.prototype,"rightTableSource",void 0),(0,D._)([(0,B.r)("rightTableSource")],he.prototype,"readRightTableSource",null),(0,D._)([(0,$.p)("rightTableSource")],he.prototype,"castRightTableSource",null),(0,D._)([(0,W.J)(pe)],he.prototype,"joinType",void 0),he=ce=(0,D._)([(0,H.j)("esri.layers.support.source.JoinTableDataSource")],he);let me=null;function ge(){return me||(me=(0,te.d)({types:Ee()})),me}let _e=null;function Ee(){return _e||(_e={key:"type",base:null,typeMap:{"data-layer":be,"map-layer":oe.R}}),_e}const De={key:"type",base:null,typeMap:{"join-table":he,"query-table":j,raster:ee,table:J}};let be=ue=class extends G.wq{constructor(Se){super(Se),this.type="data-layer"}clone(){const{fields:Se,dataSource:ye}=this;return new ue({fields:Se,dataSource:ye})}};(0,D._)([(0,W.J)({dataLayer:"data-layer"})],be.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:[ae.Z],json:{write:!0}})],be.prototype,"fields",void 0),(0,D._)([(0,Z.Cb)({types:De,json:{write:!0}})],be.prototype,"dataSource",void 0),be=ue=(0,D._)([(0,H.j)("esri.layers.support.source.DataLayerSource")],be),be.from=(0,X.se)(be)},48370:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>H});var B,D=v(17626),R=v(86810),G=v(77712),Q=(v(85931),v(90912)),$=v(55342),W=v(76898);let H=B=class extends R.wq{constructor(X){super(X),this.type="map-layer"}clone(){const{mapLayerId:X,gdbVersion:te}=this;return new B({mapLayerId:X,gdbVersion:te})}};(0,D._)([(0,$.J)({mapLayer:"map-layer"})],H.prototype,"type",void 0),(0,D._)([(0,G.Cb)({type:Q.z8,json:{write:!0}})],H.prototype,"mapLayerId",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],H.prototype,"gdbVersion",void 0),H=B=(0,D._)([(0,W.j)("esri.layers.support.source.MapLayerSource")],H)},13410:(nt,Ae,v)=>{"use strict";v.d(Ae,{FN:()=>Z,QV:()=>G,ac:()=>$});var D=v(62208),R=v(31283);function G(W,B,H){return B.flatten(({sublayers:te})=>te).length!==W.length||!!W.some(te=>te.originIdOf("minScale")>H||te.originIdOf("maxScale")>H||te.originIdOf("renderer")>H||te.originIdOf("labelingInfo")>H||te.originIdOf("opacity")>H||te.originIdOf("labelsVisible")>H||te.originIdOf("source")>H)||!Q(W,B)}function Z(W,B,H){return!!W.some(X=>{const te=X.source;return!(!te||"map-layer"===te.type&&te.mapLayerId===X.id&&((0,D.Wi)(te.gdbVersion)||te.gdbVersion===H))||X.originIdOf("renderer")>R.s3.SERVICE||X.originIdOf("labelingInfo")>R.s3.SERVICE||X.originIdOf("opacity")>R.s3.SERVICE||X.originIdOf("labelsVisible")>R.s3.SERVICE})||!Q(W,B)}function Q(W,B){if(!W||!W.length||(0,D.Wi)(B))return!0;const H=B.slice().reverse().flatten(({sublayers:ae})=>ae&&ae.toArray().reverse()).map(ae=>ae.id).toArray();if(W.length>H.length)return!1;let X=0;const te=H.length;for(const{id:ae}of W){for(;X=te)return!1}return!0}function $(W){return!!W&&W.some(B=>null!=B.minScale||B.layerDefinition&&null!=B.layerDefinition.minScale)}},5676:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>G});var D=v(38305);const R=[];function G(Z,Q){if((0,D.M8)(Z.url??""))return!0;const{wkid:$}=Q;for(const W of R){if((Z.version??0)>=W[0])return!0;if("function"==typeof W[1]&&(W[1]=W[1]()),W[1].has($))return!1}return!0}R.push([10.91,()=>{const Z=new Set([9709,9716,9741,9761,9766]);for(let Q=9712;Q<=9713;Q++)Z.add(Q);for(let Q=9748;Q<=9749;Q++)Z.add(Q);for(let Q=20904;Q<=20932;Q++)Z.add(Q);for(let Q=21004;Q<=21032;Q++)Z.add(Q);for(let Q=21207;Q<=21264;Q++)Z.add(Q);for(let Q=21307;Q<=21364;Q++)Z.add(Q);for(let Q=102759;Q<=102760;Q++)Z.add(Q);for(let Q=102901;Q<=102955;Q++)Z.add(Q);return Z}]),R.push([10.9,()=>{const Z=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let Q=9356;Q<=9360;Q++)Z.add(Q);for(let Q=9404;Q<=9407;Q++)Z.add(Q);for(let Q=9476;Q<=9482;Q++)Z.add(Q);for(let Q=9487;Q<=9494;Q++)Z.add(Q);for(let Q=9697;Q<=9699;Q++)Z.add(Q);return Z}]),R.push([10.81,()=>{const Z=new Set([9265,9333,103598,103699]);for(let Q=9248;Q<=9254;Q++)Z.add(Q);for(let Q=9271;Q<=9273;Q++)Z.add(Q);for(let Q=9284;Q<=9285;Q++)Z.add(Q);for(let Q=21453;Q<=21463;Q++)Z.add(Q);return Z}]),R.push([10.8,()=>{const Z=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let Q=8035;Q<=8036;Q++)Z.add(Q);for(let Q=8455;Q<=8456;Q++)Z.add(Q);for(let Q=8518;Q<=8529;Q++)Z.add(Q);for(let Q=8533;Q<=8536;Q++)Z.add(Q);for(let Q=8538;Q<=8540;Q++)Z.add(Q);for(let Q=8677;Q<=8679;Q++)Z.add(Q);for(let Q=8902;Q<=8903;Q++)Z.add(Q);for(let Q=8907;Q<=8910;Q++)Z.add(Q);for(let Q=8949;Q<=8951;Q++)Z.add(Q);for(let Q=8972;Q<=8987;Q++)Z.add(Q);for(let Q=9039;Q<=9040;Q++)Z.add(Q);for(let Q=9068;Q<=9069;Q++)Z.add(Q);for(let Q=9140;Q<=9141;Q++)Z.add(Q);for(let Q=9148;Q<=9150;Q++)Z.add(Q);for(let Q=9153;Q<=9159;Q++)Z.add(Q);for(let Q=9205;Q<=9218;Q++)Z.add(Q);for(let Q=9221;Q<=9222;Q++)Z.add(Q);for(let Q=54098;Q<=54101;Q++)Z.add(Q);return Z}]),R.push([10.71,()=>{const Z=new Set([6316]);for(let Q=8351;Q<=8353;Q++)Z.add(Q);for(let Q=9294;Q<=9297;Q++)Z.add(Q);for(let Q=103586;Q<=103594;Q++)Z.add(Q);for(let Q=103696;Q<=103698;Q++)Z.add(Q);return Z}]),R.push([10.7,()=>{const Z=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let Q=8065;Q<=8068;Q++)Z.add(Q);for(let Q=8082;Q<=8083;Q++)Z.add(Q);for(let Q=8379;Q<=8385;Q++)Z.add(Q);for(let Q=8836;Q<=8840;Q++)Z.add(Q);for(let Q=8857;Q<=8860;Q++)Z.add(Q);for(let Q=53035;Q<=53037;Q++)Z.add(Q);for(let Q=54090;Q<=54091;Q++)Z.add(Q);for(let Q=102498;Q<=102499;Q++)Z.add(Q);return Z}]),R.push([10.61,()=>new Set([102497])]),R.push([10.6,()=>{const Z=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let Q=7755;Q<=7787;Q++)Z.add(Q);for(let Q=7791;Q<=7795;Q++)Z.add(Q);for(let Q=7799;Q<=7801;Q++)Z.add(Q);for(let Q=7825;Q<=7831;Q++)Z.add(Q);for(let Q=7877;Q<=7878;Q++)Z.add(Q);for(let Q=7882;Q<=7883;Q++)Z.add(Q);for(let Q=7991;Q<=7992;Q++)Z.add(Q);for(let Q=8042;Q<=8043;Q++)Z.add(Q);for(let Q=8058;Q<=8059;Q++)Z.add(Q);for(let Q=8311;Q<=8348;Q++)Z.add(Q);for(let Q=9060;Q<=9067;Q++)Z.add(Q);for(let Q=102562;Q<=102568;Q++)Z.add(Q);for(let Q=102799;Q<=102900;Q++)Z.add(Q);return Z}]),R.push([10.51,()=>{const Z=new Set([7683,7881,7886,7899,8888,9e3]);for(let Q=8013;Q<=8032;Q++)Z.add(Q);for(let Q=9053;Q<=9057;Q++)Z.add(Q);for(let Q=104017;Q<=104018;Q++)Z.add(Q);for(let Q=104971;Q<=104974;Q++)Z.add(Q);return Z}]),R.push([10.5,()=>{const Z=new Set([6962,7035,7037,7039,7041,7084,7086,7133,7798,102399]);for(let Q=4087;Q<=4088;Q++)Z.add(Q);for(let Q=5896;Q<=5899;Q++)Z.add(Q);for(let Q=7005;Q<=7007;Q++)Z.add(Q);for(let Q=7057;Q<=7070;Q++)Z.add(Q);for(let Q=7073;Q<=7082;Q++)Z.add(Q);for(let Q=7109;Q<=7128;Q++)Z.add(Q);for(let Q=7844;Q<=7859;Q++)Z.add(Q);return Z}])},39605:(nt,Ae,v)=>{"use strict";v.d(Ae,{W:()=>G,v:()=>Z});var D=v(50645);const R={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(Q,$,W)=>{"-"===$.charAt(0)?Q.style.setProperty($,W):Q.style[$]=W}};let G=Q=>(0,D.l7)(R,Q),Z={create:(Q,$)=>($=G($),(0,D.WV)(Q,document.createElement("div"),void 0,$),(0,D.UQ)(Q,$)),append:(Q,$,W)=>(W=G(W),(0,D.WV)($,Q,void 0,W),(0,D.UQ)($,W)),insertBefore:(Q,$,W)=>(W=G(W),(0,D.WV)($,Q.parentNode,Q,W),(0,D.UQ)($,W)),merge:(Q,$,W)=>(W=G(W),$.domNode=Q,(0,D.Yj)(Q,$,W),(0,D.UQ)($,W)),replace:(Q,$,W)=>(W=G(W),(0,D.WV)($,Q.parentNode,Q,W),Q.parentNode.removeChild(Q),(0,D.UQ)($,W))}},50645:(nt,Ae,v)=>{"use strict";v.d(Ae,{UQ:()=>he,WV:()=>J,Yj:()=>ie,l7:()=>W});var D=v(38570);const R="http://www.w3.org/",G=`${R}2000/svg`,Z=`${R}1999/xlink`;let Q,$=[],W=(me,ge)=>{let _e={};return Object.keys(me).forEach(Ee=>{_e[Ee]=me[Ee]}),ge&&Object.keys(ge).forEach(Ee=>{_e[Ee]=ge[Ee]}),_e},B=(me,ge)=>me.vnodeSelector===ge.vnodeSelector&&(me.properties&&ge.properties?me.properties.key===ge.properties.key&&me.properties.bind===ge.properties.bind:!me.properties&&!ge.properties),H=me=>{if("string"!=typeof me)throw new Error("Style values must be strings")},X=(me,ge,_e)=>{if(""!==ge.vnodeSelector)for(let Ee=_e;Ee{let De=me[ge];if(""===De.vnodeSelector)return;let be=De.properties;if(!be||!(void 0===be.key?be.bind:be.key))for(let Se=0;Se{if(me.properties){let ge=me.properties.enterAnimation;ge&&ge(me.domNode,me.properties)}},oe=[],le=!1,de=me=>{(me.children||[]).forEach(de),me.properties&&me.properties.afterRemoved&&me.properties.afterRemoved.apply(me.properties.bind||me.properties,[me.domNode])},se=()=>{le=!1,oe.forEach(de),oe.length=0},re=me=>{oe.push(me),le||(le=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(se,{timeout:16}):setTimeout(se,16))},j=me=>{let ge=me.domNode;if(me.properties){let _e=me.properties.exitAnimation;if(_e)return ge.style.pointerEvents="none",void _e(ge,()=>{ge.parentNode&&(ge.parentNode.removeChild(ge),re(me))},me.properties)}ge.parentNode&&(ge.parentNode.removeChild(ge),re(me))},Y=(me,ge,_e)=>{if(!ge)return;let Ee=_e.eventHandlerInterceptor,De=Object.keys(ge),be=De.length;for(let Se=0;Se{((me,ge,_e)=>{if(ge)for(let Ee of ge)J(Ee,me,void 0,_e)})(me,ge.children,_e),ge.text&&(me.textContent=ge.text),Y(me,ge.properties,_e),ge.properties&&ge.properties.afterCreate&&ge.properties.afterCreate.apply(ge.properties.bind||ge.properties,[me,_e,ge.vnodeSelector,ge.properties,ge.children])},J=(me,ge,_e,Ee)=>{let De,be=0,Se=me.vnodeSelector,ye=ge.ownerDocument;if(""===Se)De=me.domNode=ye.createTextNode(me.text),void 0!==_e?ge.insertBefore(De,_e):ge.appendChild(De);else{for(let ve=0;ve<=Se.length;++ve){let xe=Se.charAt(ve);if(ve===Se.length||"."===xe||"#"===xe){let ze=Se.charAt(be-1),Ke=Se.slice(be,ve);"."===ze?De.classList.add(Ke):"#"===ze?De.id=Ke:("svg"===Ke&&(Ee=W(Ee,{namespace:G})),void 0!==Ee.namespace?De=me.domNode=ye.createElementNS(Ee.namespace,Ke):(De=me.domNode=me.domNode||ye.createElement(Ke),"input"===Ke&&me.properties&&void 0!==me.properties.type&&De.setAttribute("type",me.properties.type)),void 0!==_e?ge.insertBefore(De,_e):De.parentNode!==ge&&ge.appendChild(De)),be=ve+1}}ie(De,me,Ee)}},ce=(me,ge,_e)=>{ge&&ge.split(" ").forEach(Ee=>{Ee&&me.classList.toggle(Ee,_e)})};Q=(me,ge,_e)=>{let Ee=me.domNode,De=!1;if(me===ge)return!1;let be=!1;if(""===ge.vnodeSelector){if(ge.text!==me.text){let Se=Ee.ownerDocument.createTextNode(ge.text);return Ee.parentNode.replaceChild(Se,Ee),ge.domNode=Se,De=!0,De}ge.domNode=Ee}else 0===ge.vnodeSelector.lastIndexOf("svg",0)&&(_e=W(_e,{namespace:G})),me.text!==ge.text&&(be=!0,void 0===ge.text?Ee.removeChild(Ee.firstChild):Ee.textContent=ge.text),ge.domNode=Ee,be=((me,ge,_e,Ee,De)=>{if(_e===Ee)return!1;let be,Se=(_e=_e||$).length,ye=(Ee=Ee||$).length,ve=0,xe=0,ze=!1;for(;xe=0){for(be=ve;beve)for(be=ve;be{if(!_e)return;let De=!1,be=Object.keys(_e),Se=be.length;for(let ye=0;ye({getLastRender:()=>me,update:_e=>{if(me.vnodeSelector!==_e.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let Ee=me;me=_e,Q(Ee,_e,ge)},domNode:me.domNode})},62996:(nt,Ae,v)=>{"use strict";v.d(Ae,{E:()=>$});var D=v(39605);let R,G=(W,B)=>{let H=[];for(;W&&W!==B;)H.push(W),W=W.parentNode;return H};R=Array.prototype.find?(W,B)=>W.find(B):(W,B)=>W.filter(B)[0];let Z=(W,B)=>{let H=W;return B.forEach(X=>{H=H&&H.children?R(H.children,te=>te.domNode===X):void 0}),H},Q=(W,B,H)=>{let X=function(te){H("domEvent",te);let ae=B(),oe=G(te.currentTarget,ae.domNode);oe.reverse();let le,de=Z(ae.getLastRender(),oe);return W.scheduleRender(),de&&(le=de.properties[`on${te.type}`].apply(de.properties.bind||this,arguments)),H("domEventProcessed",te),le};return(te,ae,oe,le)=>X},$=W=>{let B,H,X=(0,D.W)(W),te=X.performanceLogger,ae=!0,oe=!1,le=[],de=[],se=(j,Y,ee)=>{let ie;X.eventHandlerInterceptor=Q(B,()=>ie,te),ie=j(Y,ee(),X),le.push(ie),de.push(ee)},re=()=>{if(H=void 0,ae){ae=!1,te("renderStart",void 0);for(let j=0;j{H||oe||(H=requestAnimationFrame(re))},stop:()=>{H&&(cancelAnimationFrame(H),H=void 0),oe=!0},resume:()=>{oe=!1,ae=!0,B.scheduleRender()},append:(j,Y)=>{se(D.v.append,j,Y)},insertBefore:(j,Y)=>{se(D.v.insertBefore,j,Y)},merge:(j,Y)=>{se(D.v.merge,j,Y)},replace:(j,Y)=>{se(D.v.replace,j,Y)},detach:j=>{for(let Y=0;Y{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.wq{constructor(X){super(X),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new W({title:this.title,expression:this.expression})}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"title",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"expression",void 0),(0,D._)([(0,G.Cb)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],B.prototype,"returnType",void 0),B=W=(0,D._)([(0,$.j)("esri.popup.ElementExpressionInfo")],B);const H=B},38439:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.wq{constructor(X){super(X),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new W({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"name",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"title",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"expression",void 0),(0,D._)([(0,G.Cb)({type:["string","number"],json:{write:!0}})],B.prototype,"returnType",void 0),B=W=(0,D._)([(0,$.j)("esri.popup.ExpressionInfo")],B);const H=B},25621:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var X,D=v(17626),R=v(2076),G=v(86810),Z=v(58817),Q=v(77712),W=(v(90912),v(55342)),B=v(76898),H=v(66845);let te=X=class extends G.wq{constructor(oe){super(oe),this.fieldName=null,this.format=null,this.isEditable=!1,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new X({fieldName:this.fieldName,format:this.format?(0,Z.d9)(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"fieldName",void 0),(0,D._)([(0,Q.Cb)({type:H.Z,json:{write:!0}})],te.prototype,"format",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:!0,default:!1}})],te.prototype,"isEditable",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"label",void 0),(0,D._)([(0,W.J)(new R.X({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],te.prototype,"stringFieldOption",void 0),(0,D._)([(0,Q.Cb)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],te.prototype,"statisticType",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"tooltip",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:!0}})],te.prototype,"visible",void 0),te=X=(0,D._)([(0,B.j)("esri.popup.FieldInfo")],te);const ae=te},55664:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(55013);let B=W=class extends $.Z{constructor(X){super(X),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new W({description:this.description,displayType:this.displayType,title:this.title})}};(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],B.prototype,"description",void 0),(0,D._)([(0,R.Cb)({type:["auto","preview","list"],json:{write:!0}})],B.prototype,"displayType",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],B.prototype,"title",void 0),(0,D._)([(0,R.Cb)({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],B.prototype,"type",void 0),B=W=(0,D._)([(0,Q.j)("esri.popup.content.AttachmentsContent")],B);const H=B},89594:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(85812),W=v(82657);let H=B=class extends $.Z{constructor(te){super(te),this.type="bar-chart"}clone(){return new B({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,D._)([(0,R.Cb)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:W.l.write}})],H.prototype,"type",void 0),H=B=(0,D._)([(0,Q.j)("esri.popup.content.BarChartMediaInfo")],H);const X=H},81590:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(85812),W=v(82657);let H=B=class extends $.Z{constructor(te){super(te),this.type="column-chart"}clone(){return new B({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,D._)([(0,R.Cb)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:W.l.write}})],H.prototype,"type",void 0),H=B=(0,D._)([(0,Q.j)("esri.popup.content.ColumnChartMediaInfo")],H);const X=H},55013:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.wq{constructor(H){super(H),this.type=null}};(0,D._)([(0,G.Cb)({type:["attachments","custom","fields","media","text","expression","relationship"],readOnly:!0,json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=(0,D._)([(0,$.j)("esri.popup.content.Content")],W);const B=W},16615:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(58817),G=v(77712),Q=(v(90912),v(76898)),$=v(55013);let B=W=class extends $.Z{constructor(X){super(X),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new W({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,R.d9)(this.outFields):null})}};(0,D._)([(0,G.Cb)()],B.prototype,"creator",void 0),(0,D._)([(0,G.Cb)()],B.prototype,"destroyer",void 0),(0,D._)([(0,G.Cb)()],B.prototype,"outFields",void 0),(0,D._)([(0,G.Cb)({type:["custom"],readOnly:!0})],B.prototype,"type",void 0),B=W=(0,D._)([(0,Q.j)("esri.popup.content.CustomContent")],B);const H=B},82561:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(38159),W=v(55013);let H=B=class extends W.Z{constructor(te){super(te),this.expressionInfo=null,this.type="expression"}clone(){return new B({expressionInfo:this.expressionInfo?.clone()})}};(0,D._)([(0,R.Cb)({type:$.Z,json:{write:!0}})],H.prototype,"expressionInfo",void 0),(0,D._)([(0,R.Cb)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],H.prototype,"type",void 0),H=B=(0,D._)([(0,Q.j)("esri.popup.content.ExpressionContent")],H);const X=H},75484:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(58817),G=v(77712),Q=(v(90912),v(76898)),$=v(99433),W=v(25621),B=v(55013);let X=H=class extends B.Z{constructor(ae){super(ae),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(ae,oe){oe.fieldInfos=ae&&ae.map(le=>le.toJSON())}clone(){return new H((0,R.d9)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,D._)([(0,G.Cb)({type:Object,json:{write:!0}})],X.prototype,"attributes",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,D._)([(0,G.Cb)({type:[W.Z]})],X.prototype,"fieldInfos",void 0),(0,D._)([(0,$.c)("fieldInfos")],X.prototype,"writeFieldInfos",null),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],X.prototype,"title",void 0),(0,D._)([(0,G.Cb)({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=H=(0,D._)([(0,Q.j)("esri.popup.content.FieldsContent")],X);const te=X},49455:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(78297),W=v(86810);let H=B=class extends W.wq{constructor(le){super(le),this.linkURL=null,this.sourceURL=null}clone(){return new B({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],H.prototype,"linkURL",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],H.prototype,"sourceURL",void 0),H=B=(0,D._)([(0,Q.j)("esri.popup.content.support.ImageMediaInfoValue")],H);const X=H;var te;let ae=te=class extends $.Z{constructor(le){super(le),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new te({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};(0,D._)([(0,R.Cb)({type:Number,json:{write:!0}})],ae.prototype,"refreshInterval",void 0),(0,D._)([(0,R.Cb)({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],ae.prototype,"type",void 0),(0,D._)([(0,R.Cb)({type:X,json:{write:!0}})],ae.prototype,"value",void 0),ae=te=(0,D._)([(0,Q.j)("esri.popup.content.ImageMediaInfo")],ae);const oe=ae},71981:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(85812),W=v(82657);let H=B=class extends $.Z{constructor(te){super(te),this.type="line-chart"}clone(){return new B({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,D._)([(0,R.Cb)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:W.l.write}})],H.prototype,"type",void 0),H=B=(0,D._)([(0,Q.j)("esri.popup.content.LineChartMediaInfo")],H);const X=H},64531:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>re});var de,D=v(17626),R=v(58817),G=v(77712),Q=(v(90912),v(68653)),$=v(76898),W=v(99433),B=v(89594),H=v(81590),X=v(55013),te=v(49455),ae=v(71981),oe=v(52023),le=v(65560);let se=de=class extends X.Z{constructor(j){super(j),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(j){return j&&j.map(Y=>"image"===Y.type?te.Z.fromJSON(Y):"barchart"===Y.type?B.Z.fromJSON(Y):"columnchart"===Y.type?H.Z.fromJSON(Y):"linechart"===Y.type?ae.Z.fromJSON(Y):"piechart"===Y.type?oe.Z.fromJSON(Y):void 0).filter(Boolean)}writeMediaInfos(j,Y){Y.mediaInfos=j&&j.map(ee=>ee.toJSON())}clone(){return new de((0,R.d9)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,D._)([(0,G.Cb)()],se.prototype,"activeMediaInfoIndex",void 0),(0,D._)([(0,G.Cb)({type:Object,json:{write:!0}})],se.prototype,"attributes",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],se.prototype,"description",void 0),(0,D._)([(0,G.Cb)({types:[le.V]})],se.prototype,"mediaInfos",void 0),(0,D._)([(0,Q.r)("mediaInfos")],se.prototype,"readMediaInfos",null),(0,D._)([(0,W.c)("mediaInfos")],se.prototype,"writeMediaInfos",null),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],se.prototype,"title",void 0),(0,D._)([(0,G.Cb)({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],se.prototype,"type",void 0),se=de=(0,D._)([(0,$.j)("esri.popup.content.MediaContent")],se);const re=se},52023:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(85812),W=v(82657);let H=B=class extends $.Z{constructor(te){super(te),this.type="pie-chart"}clone(){return new B({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,D._)([(0,R.Cb)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:W.l.write}})],H.prototype,"type",void 0),H=B=(0,D._)([(0,Q.j)("esri.popup.content.PieChartMediaInfo")],H);const X=H},6785:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var D=v(17626),R=v(79608),G=v(77712),Q=(v(85931),v(90912)),$=v(76898),W=v(55013),B=v(51686);let H=class extends((0,R.J)(W.Z)){constructor(te){super(te),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],H.prototype,"description",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{type:Q.z8,write:!0}})],H.prototype,"displayCount",void 0),(0,D._)([(0,G.Cb)({type:["list"],json:{write:!0}})],H.prototype,"displayType",void 0),(0,D._)([(0,G.Cb)({type:[B.Z],json:{write:!0}})],H.prototype,"orderByFields",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{type:Q.z8,write:!0}})],H.prototype,"relationshipId",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],H.prototype,"title",void 0),(0,D._)([(0,G.Cb)({type:["relationship"],readOnly:!0,json:{read:!1,write:!0}})],H.prototype,"type",void 0),H=(0,D._)([(0,$.j)("esri.popup.content.RelationshipContent")],H);const X=H},501:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(55013);let B=W=class extends $.Z{constructor(X){super(X),this.text=null,this.type="text"}clone(){return new W({text:this.text})}};(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],B.prototype,"text",void 0),(0,D._)([(0,R.Cb)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],B.prototype,"type",void 0),B=W=(0,D._)([(0,Q.j)("esri.popup.content.TextContent")],B);const H=B},85812:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var X,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(78297),W=v(86810),B=v(58817),H=v(77891);let te=X=class extends W.wq{constructor(de){super(de),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new X({fields:(0,B.d9)(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};(0,D._)([(0,R.Cb)({type:[String],json:{write:!0}})],te.prototype,"fields",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],te.prototype,"normalizeField",void 0),(0,D._)([(0,R.Cb)({type:[H.Z],json:{read:!1}})],te.prototype,"series",void 0),(0,D._)([(0,R.Cb)({type:String,json:{write:!0}})],te.prototype,"tooltipField",void 0),te=X=(0,D._)([(0,Q.j)("esri.popup.content.support.ChartMediaInfoValue")],te);const ae=te;let oe=class extends $.Z{constructor(de){super(de),this.type=null,this.value=null}};(0,D._)([(0,R.Cb)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],oe.prototype,"type",void 0),(0,D._)([(0,R.Cb)({type:ae,json:{write:!0}})],oe.prototype,"value",void 0),oe=(0,D._)([(0,Q.j)("esri.popup.content.mixins.ChartMediaInfo")],oe);const le=oe},78297:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.wq{constructor(H){super(H),this.altText=null,this.caption="",this.title="",this.type=null}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],W.prototype,"altText",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],W.prototype,"caption",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],W.prototype,"title",void 0),(0,D._)([(0,G.Cb)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=(0,D._)([(0,$.j)("esri.popup.content.mixins.MediaInfo")],W);const B=W},77891:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(14517),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.Z{constructor(X){super(X),this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new W({fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,D._)([(0,G.Cb)()],B.prototype,"fieldName",void 0),(0,D._)([(0,G.Cb)()],B.prototype,"tooltip",void 0),(0,D._)([(0,G.Cb)()],B.prototype,"value",void 0),B=W=(0,D._)([(0,$.j)("esri.popup.content.support.ChartMediaInfoValueSeries")],B);const H=B},82657:(nt,Ae,v)=>{"use strict";v.d(Ae,{l:()=>R});const R=(0,v(2076).w)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},65560:(nt,Ae,v)=>{"use strict";v.d(Ae,{V:()=>W});var D=v(89594),R=v(81590),G=v(49455),Z=v(71981),Q=v(52023);const W={base:v(78297).Z,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":D.Z,"column-chart":R.Z,"line-chart":Z.Z,"pie-chart":Q.Z,image:G.Z}}},66845:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>j});var D=v(17626);const Z=(0,v(2076).w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});Z.toJSON.bind(Z),Z.fromJSON.bind(Z);var se,B=v(86810),H=v(77712),te=(v(85931),v(90912)),ae=v(55342),oe=v(76898),le=v(88411),de=v(15348);let re=se=class extends B.wq{constructor(Y){super(Y),this.dateFormat=null,this.dateTimeFormatOptions=null,this.digitSeparator=!1,this.places=null}clone(){return new se({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})}format(Y){return this.dateFormat?(0,le.p6)(Y,{...(0,le.Ze)(this.dateFormat),...this.dateTimeFormatOptions}):(0,de.uf)(Y,(0,de.sh)(this))}formatRasterPixelValue(Y){if(Y.includes("-"))return Y;let ee,ie;return Y.trim().includes(",")?(ee=",",ie=ee+" ",this._formatDelimitedString(Y,ee,ie,this)):Y.trim().includes(";")?(ee=";",ie=ee+" ",this._formatDelimitedString(Y,ee,ie,this)):Y.trim().includes(" ")?(ee=ie=" ",this._formatDelimitedString(Y,ee,ie,this)):this.format(Number(Y))}_formatDelimitedString(Y,ee,ie,J){return Y&&ee&&ie&&J?Y.trim().split(ee).map(ce=>this.format(Number(ce))).join(ie):Y}};(0,D._)([(0,ae.J)(Z)],re.prototype,"dateFormat",void 0),(0,D._)([(0,H.Cb)({type:Object,json:{read:!1}})],re.prototype,"dateTimeFormatOptions",void 0),(0,D._)([(0,H.Cb)({type:Boolean,json:{write:!0}})],re.prototype,"digitSeparator",void 0),(0,D._)([(0,H.Cb)({type:te.z8,json:{write:!0}})],re.prototype,"places",void 0),re=se=(0,D._)([(0,oe.j)("esri.popup.support.FieldInfoFormat")],re);const j=re},51686:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.wq{constructor(X){super(X),this.field=null,this.order=null}clone(){return new W({field:this.field,order:this.order})}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"field",void 0),(0,D._)([(0,G.Cb)({type:["asc","desc"],json:{write:!0}})],B.prototype,"order",void 0),B=W=(0,D._)([(0,$.j)("esri.popup.support.RelatedRecordsInfoFieldOrder")],B);const H=B},84687:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ge});var D=v(15861),R=v(17626),G=v(59318),Z=v(24263),Q=v(84792),$=v(26584),W=v(86810),B=v(47996),H=v(62208),X=v(10699),te=v(77712),oe=(v(85931),v(90912)),le=v(68653),de=v(76898),se=v(2004),re=v(56683),j=v(6278),Y=v(14517);let ee=class extends Y.Z{constructor(_e){super(_e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,R._)([(0,te.Cb)()],ee.prototype,"nextQueryParams",void 0),(0,R._)([(0,te.Cb)()],ee.prototype,"queryParams",void 0),(0,R._)([(0,te.Cb)()],ee.prototype,"results",void 0),(0,R._)([(0,te.Cb)()],ee.prototype,"total",void 0),ee=(0,R._)([(0,de.j)("esri.portal.PortalQueryResult")],ee);const ie=ee;var ue,J=v(94508),ce=v(12680);let pe;const he={PortalGroup:()=>Promise.resolve().then(v.bind(v,96245)),PortalItem:()=>Promise.resolve().then(v.bind(v,55463)),PortalUser:()=>Promise.resolve().then(v.bind(v,94508))};let me=ue=class extends((0,W.eC)(B.Z)){constructor(_e){super(_e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=G.Z.portalUrl,this.urlKey=null,this.user=null,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(_e){return"string"==typeof _e?{url:_e}:_e}destroy(){this._esriIdCredentialCreateHandle=(0,H.hw)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(_e){if(_e)for(const Ee of _e)G.Z.request.trustedServers.includes(Ee)||G.Z.request.trustedServers.push(Ee);return _e}readDefaultBasemap(_e){return this._readBasemap(_e)}readDefaultDevBasemap(_e){return this._readBasemap(_e)}readDefaultVectorBasemap(_e){return this._readBasemap(_e)}get extraQuery(){return this.id&&this.user&&this.user.orgId&&!this.canSearchPublic?` AND orgid:${this.id}`:null}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let _e=this.url;if(_e){const Ee=_e.indexOf("/sharing");_e=Ee>0?_e.substring(0,Ee):this.url.replace(/\/+$/,""),_e+="/sharing/rest"}return _e}get thumbnailUrl(){const _e=this.restUrl,Ee=this.thumbnail;return _e&&Ee?this._normalizeSSL(_e+"/portals/self/resources/"+Ee):null}readUrlKey(_e){return _e&&_e.toLowerCase()}readUser(_e){let Ee=null;return _e&&(Ee=J.default.fromJSON(_e),Ee.portal=this),Ee}load(_e){const Ee=Promise.resolve().then(v.bind(v,73386)).then(({default:De})=>{(0,X.k_)(_e),pe=De}).then(()=>this.sourceJSON?this.sourceJSON:this._fetchSelf(this.authMode,!1,_e)).then(De=>{if(Z.id){const be=Z.id;this.credential=be.findCredential(this.restUrl),this.credential||this.authMode!==ue.AUTH_MODE_AUTO||(this._esriIdCredentialCreateHandle=be.on("credential-create",()=>{be.findCredential(this.restUrl)&&this._signIn().catch(()=>{})}))}this.sourceJSON=De,this.read(De)});return this.addResolvingPromise(Ee),Promise.resolve(this)}createElevationLayers(){var _e=this;return(0,D.Z)(function*(){yield _e.load();const Ee=_e._getHelperService("defaultElevationLayers"),De=(yield Promise.all([v.e(8592),v.e(5810)]).then(v.bind(v,75810))).default;return Ee?Ee.map(be=>new De({id:be.id,url:be.url})):[]})()}fetchBasemaps(_e,Ee){const De=new j.Z;return De.query=_e||(G.Z.apiKey&&(0,ce.r)(this.url)?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),De.disableExtraQuery=!0,this.queryGroups(De,Ee).then(be=>{if(De.num=100,De.query='type:"Web Map" -type:"Web Application"',be.total){const Se=be.results[0];return De.sortField=Se.sortField||"name",De.sortOrder=Se.sortOrder||"desc",Se.queryItems(De,Ee)}return null}).then(be=>{let Se;return Se=be&&be.total?be.results.filter(ye=>"Web Map"===ye.type).map(ye=>new pe({portalItem:ye})):[],Se})}fetchCategorySchema(_e){return this.hasCategorySchema?this._request(this.restUrl+"/portals/self/categorySchema",_e).then(Ee=>Ee.categorySchema):(0,X.Hc)(_e)?Promise.reject((0,X.zE)()):Promise.resolve([])}fetchFeaturedGroups(_e){const Ee=this.featuredGroups,De=new j.Z;if(De.num=100,De.sortField="title",Ee&&Ee.length){const be=[];for(const Se of Ee)be.push(`(title:"${Se.title}" AND owner:${Se.owner})`);return De.query=be.join(" OR "),this.queryGroups(De,_e).then(Se=>Se.results)}return(0,X.Hc)(_e)?Promise.reject((0,X.zE)()):Promise.resolve([])}fetchRegions(_e){const Ee=this.user?.culture||this.culture||(0,re.Kd)();return this._request(this.restUrl+"/portals/regions",{..._e,query:{culture:Ee}})}fetchSettings(_e){const Ee=this.user?.culture||this.culture||(0,re.Kd)();return this._request(this.restUrl+"/portals/self/settings",{..._e,query:{culture:Ee}})}static getDefault(){return ue._default&&!ue._default.destroyed||(ue._default=new ue),ue._default}queryGroups(_e,Ee){return this._queryPortal("/community/groups",_e,"PortalGroup",Ee)}queryItems(_e,Ee){return this._queryPortal("/search",_e,"PortalItem",Ee)}queryUsers(_e,Ee){return _e.sortField||(_e.sortField="username"),this._queryPortal("/community/users",_e,"PortalUser",Ee)}toJSON(){throw new $.Z("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(_e){if(!_e)return null;if(_e.declaredClass)throw new Error("JSON object is already hydrated");return new ue({sourceJSON:_e})}_getHelperService(_e){const Ee=this.helperServices&&this.helperServices[_e];if(!Ee)throw new $.Z("portal:service-not-found",`The \`helperServices\` do not include an entry named "${_e}"`);return Ee}_getHelperServiceUrl(_e){const Ee=this._getHelperService(_e);if(!Ee?.url)throw new $.Z("portal:service-url-not-found",`The \`helperServices\` entry "${_e}" does not include a \`url\` value`);return Ee.url}_fetchSelf(_e=this.authMode,Ee=!1,De){const be=this.restUrl+"/portals/self",Se={authMode:_e,query:{culture:(0,re.Kd)().toLowerCase()},...De};return"auto"===Se.authMode&&(Se.authMode="no-prompt"),Ee&&(Se.query.default=!0),this._request(be,Se)}_queryPortal(_e,Ee,De,be){const Se=(0,oe.se)(j.Z,Ee),ye=ve=>this._request(this.restUrl+_e,{...Se.toRequestOptions(this),...be}).then(xe=>{const ze=Se.clone();return ze.start=xe.nextStart,new ie({nextQueryParams:ze,queryParams:Se,total:xe.total,results:ue._resultsToTypedArray(ve,{portal:this},xe,be)})}).then(xe=>Promise.all(xe.results.map(ze=>"function"==typeof ze.when?ze.when():xe)).then(()=>xe,ze=>((0,X.r9)(ze),xe)));return De&&he[De]?he[De]().then(({default:ve})=>((0,X.k_)(be),ye(ve))):ye()}_signIn(){if(this.authMode===ue.AUTH_MODE_ANONYMOUS)return Promise.reject(new $.Z("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const _e=Ee=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(Ee||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=Ee,this._fetchSelf("immediate"))):this.user&&this.credential===Ee?null:(this.credential=Ee,this._fetchSelf("immediate"))).then(De=>{De&&(this.sourceJSON=De,this.read(De))});return Z.id?Z.id.getCredential(this.restUrl).then(Ee=>_e(Ee)):_e(this.credential)}_normalizeSSL(_e){return _e.replace(/^http:/i,"https:").replace(":7080",":7443")}_normalizeUrl(_e){const Ee=this.credential&&this.credential.token;return this._normalizeSSL(Ee?_e+(_e.includes("?")?"&":"?")+"token="+Ee:_e)}_requestToTypedArray(_e,Ee,De){return this._request(_e,Ee).then(be=>{const Se=ue._resultsToTypedArray(De,{portal:this},be);return Promise.all(Se.map(ye=>"function"==typeof ye.when?ye.when():be)).then(()=>Se,()=>Se)})}_readBasemap(_e){if(_e){const Ee=pe.fromJSON(_e);return Ee.portalItem={portal:this},Ee}return null}_request(_e,Ee={}){const De={f:"json",...Ee.query},{authMode:be=(this.authMode===ue.AUTH_MODE_ANONYMOUS?"anonymous":"auto"),body:Se=null,cacheBust:ye=!1,method:ve="auto",responseType:xe="json",signal:ze}=Ee,Ke={authMode:be,body:Se,cacheBust:ye,method:ve,query:De,responseType:xe,timeout:0,signal:ze};return(0,Q.default)(this._normalizeSSL(_e),Ke).then(We=>We.data)}static _resultsToTypedArray(_e,Ee,De,be){let Se;if(De){const ye=(0,H.pC)(be)?be.signal:null;Se=De.listings||De.notifications||De.userInvitations||De.tags||De.items||De.groups||De.comments||De.provisions||De.results||De.relatedItems||De,(_e||Ee)&&(Se=Se.map(ve=>{const xe=Object.assign(_e?_e.fromJSON(ve):ve,Ee);return"function"==typeof xe.load&&xe.load(ye),xe}))}else Se=[];return Se}};me.AUTH_MODE_ANONYMOUS="anonymous",me.AUTH_MODE_AUTO="auto",me.AUTH_MODE_IMMEDIATE="immediate",(0,R._)([(0,te.Cb)()],me.prototype,"access",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"allSSL",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"authMode",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"authorizedCrossOriginDomains",void 0),(0,R._)([(0,le.r)("authorizedCrossOriginDomains")],me.prototype,"readAuthorizedCrossOriginDomains",null),(0,R._)([(0,te.Cb)()],me.prototype,"basemapGalleryGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"bingKey",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canListApps",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canListData",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canListPreProvisionedItems",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canProvisionDirectPurchase",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canSearchPublic",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canShareBingPublic",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canSharePublic",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canSignInArcGIS",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"canSignInIDP",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"colorSetsGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"commentsEnabled",void 0),(0,R._)([(0,te.Cb)({type:Date})],me.prototype,"created",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"credential",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"culture",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"currentVersion",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"customBaseUrl",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"defaultBasemap",void 0),(0,R._)([(0,le.r)("defaultBasemap")],me.prototype,"readDefaultBasemap",null),(0,R._)([(0,te.Cb)()],me.prototype,"defaultDevBasemap",void 0),(0,R._)([(0,le.r)("defaultDevBasemap")],me.prototype,"readDefaultDevBasemap",null),(0,R._)([(0,te.Cb)({type:se.Z})],me.prototype,"defaultExtent",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"defaultVectorBasemap",void 0),(0,R._)([(0,le.r)("defaultVectorBasemap")],me.prototype,"readDefaultVectorBasemap",null),(0,R._)([(0,te.Cb)()],me.prototype,"description",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"devBasemapGalleryGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"eueiEnabled",void 0),(0,R._)([(0,te.Cb)({readOnly:!0})],me.prototype,"extraQuery",null),(0,R._)([(0,te.Cb)()],me.prototype,"featuredGroups",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"featuredItemsGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"galleryTemplatesGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"livingAtlasGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"hasCategorySchema",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"helpBase",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"helperServices",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"helpMap",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"homePageFeaturedContent",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"homePageFeaturedContentCount",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"httpPort",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"httpsPort",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"id",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"ipCntryCode",void 0),(0,R._)([(0,te.Cb)({readOnly:!0})],me.prototype,"isOrganization",null),(0,R._)([(0,te.Cb)()],me.prototype,"isPortal",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"isReadOnly",void 0),(0,R._)([(0,te.Cb)({readOnly:!0})],me.prototype,"itemPageUrl",null),(0,R._)([(0,te.Cb)()],me.prototype,"layerTemplatesGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"maxTokenExpirationMinutes",void 0),(0,R._)([(0,te.Cb)({type:Date})],me.prototype,"modified",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"name",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"portalHostname",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"portalMode",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"portalProperties",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"region",void 0),(0,R._)([(0,te.Cb)({readOnly:!0})],me.prototype,"restUrl",null),(0,R._)([(0,te.Cb)()],me.prototype,"rotatorPanels",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"showHomePageDescription",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"sourceJSON",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"staticImagesUrl",void 0),(0,R._)([(0,te.Cb)({json:{name:"2DStylesGroupQuery"}})],me.prototype,"stylesGroupQuery2d",void 0),(0,R._)([(0,te.Cb)({json:{name:"stylesGroupQuery"}})],me.prototype,"stylesGroupQuery3d",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"supportsHostedServices",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"symbolSetsGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"templatesGroupQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"thumbnail",void 0),(0,R._)([(0,te.Cb)({readOnly:!0})],me.prototype,"thumbnailUrl",null),(0,R._)([(0,te.Cb)()],me.prototype,"units",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"url",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"urlKey",void 0),(0,R._)([(0,le.r)("urlKey")],me.prototype,"readUrlKey",null),(0,R._)([(0,te.Cb)()],me.prototype,"user",void 0),(0,R._)([(0,le.r)("user")],me.prototype,"readUser",null),(0,R._)([(0,te.Cb)()],me.prototype,"useStandardizedQuery",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"useVectorBasemaps",void 0),(0,R._)([(0,te.Cb)()],me.prototype,"vectorBasemapGalleryGroupQuery",void 0),me=ue=(0,R._)([(0,de.j)("esri.portal.Portal")],me);const ge=me},96245:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{default:()=>te});var D=v(17626),R=v(26584),G=v(86810),Z=v(62208),Q=v(77712),W=(v(85931),v(90912)),B=v(76898),H=v(6278);let X=class extends G.wq{constructor(ae){super(ae),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.tags=null,this.title=null}get thumbnailUrl(){const ae=this.url,oe=this.thumbnail;return ae&&oe&&this.portal?this.portal?._normalizeUrl(`${ae}/info/${oe}?f=json`):null}get url(){const ae=this.get("portal.restUrl");return ae?ae+"/community/groups/"+this.id:null}fetchCategorySchema(ae){return(0,Z.s3)(this.portal)._request(this.url+"/categorySchema",ae).then(oe=>{const le=oe.categorySchema||[];return le.some(de=>"contentCategorySetsGroupQuery.LivingAtlas"===de.source)?this._fetchCategorySchemaSet("LivingAtlas",ae):le})}fetchMembers(ae){return(0,Z.s3)(this.portal)._request(this.url+"/users",ae)}getThumbnailUrl(ae){let oe=this.thumbnailUrl;return oe&&ae&&(oe+=`&w=${ae}`),oe}toJSON(){throw new R.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}queryItems(ae,oe){let le=(0,W.se)(H.Z,ae);const de=(0,Z.s3)(this.portal);return parseFloat(de.currentVersion)>5?(le=le||new H.Z,de._queryPortal(`/content/groups/${this.id}/search`,le,"PortalItem",oe)):(le=le?le.clone():new H.Z,le.query="group:"+this.id+(le.query?" "+le.query:""),de.queryItems(le,oe))}_fetchCategorySchemaSet(ae,oe){const le=(0,Z.s3)(this.portal);return le._fetchSelf(le.authMode,!0,oe).then(de=>{const se=de.contentCategorySetsGroupQuery;if(se){const re=new H.Z;return re.disableExtraQuery=!0,re.num=1,re.query=se,le.queryGroups(re,oe)}throw new R.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(de=>{if(de.total){const se=de.results[0],re=new H.Z;return re.num=1,re.query=`typekeywords:"${ae}"`,se.queryItems(re,oe)}throw new R.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(de=>de.total?de.results[0].fetchData("json",oe).then(se=>{const re=se&&se.categorySchema;return re&&re.length?re:[]}):[])}};(0,D._)([(0,Q.Cb)()],X.prototype,"access",void 0),(0,D._)([(0,Q.Cb)({type:Date})],X.prototype,"created",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"description",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"id",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"isInvitationOnly",void 0),(0,D._)([(0,Q.Cb)({type:Date})],X.prototype,"modified",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"owner",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"portal",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"snippet",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"sortField",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"sortOrder",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"tags",void 0),(0,D._)([(0,Q.Cb)()],X.prototype,"thumbnail",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0})],X.prototype,"thumbnailUrl",null),(0,D._)([(0,Q.Cb)()],X.prototype,"title",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0})],X.prototype,"url",null),X=(0,D._)([(0,B.j)("esri.portal.PortalGroup")],X);const te=X},55463:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{default:()=>ge});var D=v(15861),R=v(17626),G=v(54346),Z=v(26584),Q=v(86810),$=v(58817),W=v(47996),B=v(62208),H=v(21726),X=v(77712),te=v(90912),ae=v(68653),oe=v(76898),le=v(2004),de=v(84687),se=v(14517),re=v(63290),Y=(v(85931),v(66656));let ee=class extends se.Z{constructor(_e){super(_e),this.portalItem=null}normalizeCtorArgs(_e){return _e&&_e.portalItem&&_e.path?{..._e,path:this._normalizePath(_e.path,_e.portalItem)}:_e}set path(_e){(0,B.pC)(_e)&&(0,H.YP)(_e)?re.Z.getLogger(this.declaredClass).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",_e)}_castPath(_e){return this._normalizePath(_e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(_e="json",Ee){const De=this.url;if((0,B.Wi)(De))throw new Z.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal._request(De,{responseType:_e,query:{token:this.portalItem.apiKey},signal:(0,B.U2)(Ee,"signal")})}update(_e,Ee){var De=this;return(0,D.Z)(function*(){return(yield v.e(587).then(v.bind(v,10587))).addOrUpdateResource(De,"update",_e,Ee)})()}hasPath(){return(0,B.pC)(this.path)}_normalizePath(_e,Ee){return(0,B.Wi)(_e)?_e:(_e=_e.replace(/^\/+/,""),(0,B.pC)(Ee)&&(0,H.YP)(_e)&&(_e=(0,H.PF)(_e,Ee.itemUrl)),_e.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,R._)([(0,X.Cb)()],ee.prototype,"portalItem",void 0),(0,R._)([(0,X.Cb)({type:String,value:null})],ee.prototype,"path",null),(0,R._)([(0,Y.p)("path")],ee.prototype,"_castPath",null),(0,R._)([(0,X.Cb)({type:String,readOnly:!0})],ee.prototype,"url",null),(0,R._)([(0,X.Cb)({type:String,readOnly:!0})],ee.prototype,"itemRelativeUrl",null),ee=(0,R._)([(0,oe.j)("esri.portal.PortalItemResource")],ee);const ie=ee;let J=class extends se.Z{constructor(_e){super(_e),this.created=null,this.rating=null}};(0,R._)([(0,X.Cb)()],J.prototype,"created",void 0),(0,R._)([(0,X.Cb)()],J.prototype,"rating",void 0),J=(0,R._)([(0,oe.j)("esri.portal.PortalRating")],J);const ce=J;var ue;const pe=new Set(["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","GeoJson","CSV","KML","WFS","WMTS","WMS","Feed"]),he=new Set(["KML","GeoJson","CSV"]);let me=ue=class extends((0,Q.eC)(W.Z)){constructor(_e){super(_e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}static from(_e){return(0,te.TJ)(ue,_e)}destroy(){this.portal=null}get displayName(){const _e=this.type,Ee=this.typeKeywords||[];let De=_e;return"Feature Service"===_e||"Feature Collection"===_e?De=Ee.includes("Table")?"Table":Ee.includes("Route Layer")?"Route Layer":Ee.includes("Markup")?"Markup":"Feature Layer":"Image Service"===_e?De=Ee.includes("Elevation 3D Layer")?"Elevation Layer":Ee.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===_e?De="Scene Layer":"Video Service"===_e?De="Video Layer":"Scene Package"===_e?De="Scene Layer Package":"Stream Service"===_e?De="Feature Layer":"Geoprocessing Service"===_e&&this.portal&&this.portal.isPortal?De=Ee.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===_e?De="Locator":"Geoenrichment Service"===_e?De="GeoEnrichment Service":"Microsoft Powerpoint"===_e?De="Microsoft PowerPoint":"GeoJson"===_e?De="GeoJSON":"Globe Service"===_e?De="Globe Layer":"Vector Tile Service"===_e?De="Tile Layer":"netCDF"===_e?De="NetCDF":"Map Service"===_e?De=Ee.includes("Spatiotemporal")||!Ee.includes("Hosted Service")&&!Ee.includes("Tiled")||Ee.includes("Relational")?"Map Image Layer":"Tile Layer":_e&&_e.toLowerCase().includes("add in")?De=_e.replace(/(add in)/gi,"Add-In"):"datastore catalog service"===_e?De="Big Data File Share":"Compact Tile Package"===_e?De="Tile Package (tpkx)":"OGCFeatureServer"===_e?De="OGC Feature Layer":"web mapping application"===_e&&Ee.includes("configurableApp")&&(De="Instant App"),De}readExtent(_e){return _e&&_e.length?new le.Z(_e[0][0],_e[0][1],_e[1][0],_e[1][1]):null}get iconUrl(){const _e=this.type&&this.type.toLowerCase()||"",Ee=this.typeKeywords||[];let Se,ye=!1,ve=!1,xe=!1,ze=!1,Ke=!1,We=!1;return _e.indexOf("service")>0||"feature collection"===_e||"kml"===_e||"wms"===_e||"wmts"===_e||"wfs"===_e?(ye=Ee.includes("Hosted Service"),"feature service"===_e||"feature collection"===_e||"kml"===_e||"wfs"===_e?(ve=Ee.includes("Table"),xe=Ee.includes("Route Layer"),ze=Ee.includes("Markup"),Ke=Ee.includes("Spatiotemporal"),We=Ee.includes("UtilityNetwork"),Se=Ke&&ve?"spatiotemporaltable":ve?"table":xe?"routelayer":ze?"markup":Ke?"spatiotemporal":ye?"featureshosted":We?"utilitynetwork":"features"):Se="map service"===_e||"wms"===_e||"wmts"===_e?ye||Ee.includes("Tiled")||"wmts"===_e?"maptiles":"mapimages":"scene service"===_e?Ee.includes("Line")?"sceneweblayerline":Ee.includes("3DObject")?"sceneweblayermultipatch":Ee.includes("Point")?"sceneweblayerpoint":Ee.includes("IntegratedMesh")?"sceneweblayermesh":Ee.includes("PointCloud")?"sceneweblayerpointcloud":Ee.includes("Polygon")?"sceneweblayerpolygon":Ee.includes("Building")?"sceneweblayerbuilding":Ee.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===_e?Ee.includes("Elevation 3D Layer")?"elevationlayer":Ee.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===_e?"streamlayer":"video service"===_e?"mediaservice":"vector tile service"===_e?"vectortile":"datastore catalog service"===_e?"datastorecollection":"geocoding service"===_e?"geocodeservice":"geoprocessing service"===_e?Ee.includes("Web Tool")&&this.portal&&this.portal.isPortal?"tool":"layers":"geodata service"===_e?"geodataservice":"layers"):Se="web map"===_e||"cityengine web scene"===_e?"maps":"web scene"===_e?Ee.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===_e&&Ee.includes("configurableApp")?"instantapps":"web mapping application"===_e||"mobile application"===_e||"application"===_e||"operation view"===_e||"desktop application"===_e?"apps":"map document"===_e||"map package"===_e||"published map"===_e||"scene document"===_e||"globe document"===_e||"basemap package"===_e||"mobile basemap package"===_e||"mobile map package"===_e||"project package"===_e||"project template"===_e||"pro map"===_e||"layout"===_e||"layer"===_e&&Ee.includes("ArcGIS Pro")||"explorer map"===_e&&Ee.indexOf("Explorer Document")?"mapsgray":"service definition"===_e||"csv"===_e||"shapefile"===_e||"cad drawing"===_e||"geojson"===_e||"360 vr experience"===_e||"netcdf"===_e||"administrative report"===_e?"datafiles":"explorer add in"===_e||"desktop add in"===_e||"windows viewer add in"===_e||"windows viewer configuration"===_e?"appsgray":"arcgis pro add in"===_e||"arcgis pro configuration"===_e?"addindesktop":"rule package"===_e||"file geodatabase"===_e||"sqlite geodatabase"===_e||"csv collection"===_e||"kml collection"===_e||"windows mobile package"===_e||"map template"===_e||"desktop application template"===_e||"gml"===_e||"arcpad package"===_e||"code sample"===_e||"form"===_e||"document link"===_e||"earth configuration"===_e||"operations dashboard add in"===_e||"rules package"===_e||"image"===_e||"workflow manager package"===_e||"explorer map"===_e&&Ee.includes("Explorer Mapping Application")||Ee.includes("Document")?"datafilesgray":"network analysis service"===_e||"geoprocessing service"===_e||"geodata service"===_e||"geometry service"===_e||"geoprocessing package"===_e||"locator package"===_e||"geoprocessing sample"===_e||"workflow manager service"===_e?"toolsgray":"layer"===_e||"layer package"===_e||"explorer layer"===_e?"layersgray":"scene package"===_e?"scenepackage":"mobile scene package"===_e?"mobilescenepackage":"tile package"===_e||"compact tile package"===_e?"tilepackage":"task file"===_e?"taskfile":"report template"===_e?"report-template":"statistical data collection"===_e?"statisticaldatacollection":"insights workbook"===_e?"workbook":"insights model"===_e?"insightsmodel":"insights page"===_e?"insightspage":"insights theme"===_e?"insightstheme":"hub initiative"===_e?"hubinitiative":"hubpage"===_e?"hubpage":"hub event"===_e?"hubevent":"hub site application"===_e?"hubsite":"hub project"===_e?"hubproject":"relational database connection"===_e?"relationaldatabaseconnection":"big data file share"===_e?"datastorecollection":"image collection"===_e?"imagecollection":"style"===_e?"style":"desktop style"===_e?"desktopstyle":"dashboard"===_e?"dashboard":"raster function template"===_e?"rasterprocessingtemplate":"vector tile package"===_e?"vectortilepackage":"ortho mapping project"===_e?"orthomappingproject":"ortho mapping template"===_e?"orthomappingtemplate":"solution"===_e?"solutions":"geopackage"===_e?"geopackage":"deep learning package"===_e?"deeplearningpackage":"real time analytic"===_e?"realtimeanalytics":"big data analytic"===_e?"bigdataanalytics":"feed"===_e?"feed":"excalibur imagery project"===_e?"excaliburimageryproject":"notebook"===_e?"notebook":"storymap"===_e?"storymap":"survey123 add in"===_e?"survey123addin":"mission"===_e?"mission":"mission report"===_e?"missionreport":"quickcapture project"===_e?"quickcaptureproject":"pro report"===_e?"proreport":"pro report template"===_e?"proreporttemplate":"urban model"===_e?"urbanmodel":"web experience"===_e?"experiencebuilder":"web experience template"===_e?"webexperiencetemplate":"experience builder widget"===_e?"experiencebuilderwidget":"experience builder widget package"===_e?"experiencebuilderwidgetpackage":"workflow"===_e?"workflow":"insights script"===_e?"insightsscript":"kernel gateway connection"===_e?"kernelgatewayconnection":"hub initiative template"===_e?"hubinitiativetemplate":"storymap theme"===_e?"storymaptheme":"knowledge graph"===_e?"knowledgegraph":"native application"===_e?"nativeapp":"native application installer"===_e?"nativeappinstaller":"link chart"===_e?"linkchart":"investigation"===_e?"investigation":"ogcfeatureserver"===_e?"features":"pro project"===_e?"proproject":"insights workbook package"===_e?"insightsworkbookpackage":"apache parquet"===_e?"apacheparquet":"notebook code snippets"===_e||"notebook code snippet library"===_e?"notebookcodesnippets":"suitability model"===_e?"suitabilitymodel":"esri classifier definition"===_e?"classifierdefinition":"esri classification schema"===_e?"classificationschema":"insights data engineering workbook"===_e?"dataengineeringworkbook":"insights data engineering model"===_e?"dataengineeringmodel":"deep learning studio project"===_e?"deeplearningproject":"discussion"===_e?"discussion":"maps",Se?(0,G.V)("esri/images/portal/"+Se+"16.png"):null}get isLayer(){return null!=this.type&&pe.has(this.type)}get itemPageUrl(){const _e=this.portal?.itemPageUrl;return _e&&this.id?`${_e}?id=${this.id}`:null}get itemUrl(){const _e=this.portal?.restUrl;return _e&&this.id?`${_e}/content/items/${this.id}`:null}get thumbnailUrl(){const _e=this.itemUrl,Ee=this.thumbnail;return _e&&Ee?this.portal?._normalizeUrl(`${_e}/info/${Ee}?f=json`)??null:null}get userItemUrl(){const _e=this.get("portal.restUrl");if(!_e)return null;const Ee=this.owner||this.get("portal.user.username");return Ee?`${_e}/content/users/${this.ownerFolder?`${Ee}/${this.ownerFolder}`:Ee}/items/${this.id}`:null}load(_e){const Ee=this.portal??(this.portal=de.Z.getDefault()),De=Ee.load(_e).then(()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?Ee._request(this.itemUrl,{signal:(0,B.pC)(_e)?_e.signal:null,query:{token:this.apiKey}}):{}).then(be=>{this.sourceJSON=be,this.read(be)});return this.addResolvingPromise(De),Promise.resolve(this)}addRating(_e){var Ee=this;return(0,D.Z)(function*(){const De={method:"post",query:{}};return _e instanceof ce&&(_e=_e.rating),null==_e||isNaN(_e)||"number"!=typeof _e||(De.query.rating=_e),Ee.portal?(yield Ee.portal._request(Ee.itemUrl+"/addRating",De),new ce({rating:_e,created:new Date})):null})()}clone(){const _e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,$.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,$.d9)(this.categories),created:(0,$.d9)(this.created),culture:this.culture,description:this.description,extent:(0,$.d9)(this.extent),groupCategories:(0,$.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,$.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,$.d9)(this.screenshots),size:this.size,snippet:this.snippet,spatialReference:this.spatialReference,tags:(0,$.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,$.d9)(this.typeKeywords),url:this.url};return this.loaded&&(_e.loadStatus="loaded"),new ue({sourceJSON:this.sourceJSON}).set(_e)}createPostQuery(){const _e=this.toJSON();for(const De of["tags","typeKeywords","categories"])_e[De]&&(_e[De]=_e[De].join(", "));const{extent:Ee}=_e;return Ee&&(_e.extent=JSON.stringify(Ee)),_e}deleteRating(){var _e=this;return(0,D.Z)(function*(){yield(0,B.s3)(_e.portal)._request(_e.itemUrl+"/deleteRating",{method:"post"})})()}fetchData(_e="json",Ee){return(0,B.s3)(this.portal)._request(this.itemUrl+"/data",{responseType:_e,...Ee,query:{token:this.apiKey}})}fetchRating(_e){var Ee=this;return(0,D.Z)(function*(){const De=yield(0,B.s3)(Ee.portal)._request(Ee.itemUrl+"/rating",{query:{token:Ee.apiKey},..._e});return null!=De.rating?(De.created=new Date(De.created),new ce(De)):null})()}fetchRelatedItems(_e,Ee){return(0,B.s3)(this.portal)._requestToTypedArray(this.itemUrl+"/relatedItems",{query:{..._e,token:this.apiKey},...Ee},ue)}getThumbnailUrl(_e){let Ee=this.thumbnailUrl;return Ee&&_e&&(Ee+=`&w=${_e}`),Ee}reload(){return(0,B.s3)(this.portal)._request(this.itemUrl??"",{cacheBust:!0,query:{token:this.apiKey}}).then(_e=>(this.sourceJSON=_e,this.read(_e),this))}update(_e){return this.id?this.load().then(()=>(0,B.s3)(this.portal)._signIn()).then(()=>{const Ee=_e&&_e.data,De={method:"post"};De.query=this.createPostQuery();for(const be in De.query)null===De.query[be]&&(De.query[be]="");return De.query.clearEmptyFields=!0,null!=Ee&&("string"==typeof Ee?De.query.text=Ee:"object"==typeof Ee&&(De.query.text=JSON.stringify(Ee))),this.portal._request(`${this.userItemUrl}/update`,De).then(()=>this.reload())}):Promise.reject(new Z.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}updateThumbnail(_e){return this.id?this.load().then(()=>this.portal._signIn()).then(()=>{const Ee=_e.thumbnail,De=_e.filename,be={method:"post"};if("string"==typeof Ee)be.query=(0,H.HK)(Ee)?{data:Ee}:{url:(0,H.hF)(Ee)},(0,B.pC)(De)&&(be.query.filename=De);else{const Se=new FormData;(0,B.pC)(De)?Se.append("file",Ee,De):Se.append("file",Ee),be.body=Se}return this.portal._request(`${this.userItemUrl}/updateThumbnail`,be).then(()=>this.reload())}):Promise.reject(new Z.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}fetchResources(_e={},Ee){var De=this;return(0,D.Z)(function*(){return(yield v.e(587).then(v.bind(v,10587))).fetchResources(De,_e,Ee)})()}addResource(_e,Ee,De){var be=this;return(0,D.Z)(function*(){const Se=yield v.e(587).then(v.bind(v,10587));return _e.portalItem=be,Se.addOrUpdateResource(_e,"add",Ee,De)})()}removeResource(_e,Ee){var De=this;return(0,D.Z)(function*(){const be=yield v.e(587).then(v.bind(v,10587));if(_e.portalItem&&_e.portalItem.itemUrl!==De.itemUrl)throw new Z.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return be.removeResource(De,_e,Ee)})()}removeAllResources(_e){var Ee=this;return(0,D.Z)(function*(){return(yield v.e(587).then(v.bind(v,10587))).removeAllResources(Ee,_e)})()}resourceFromPath(_e){return new ie({portalItem:this,path:_e})}toJSON(){const _e=this.extent,Ee={accessInformation:this.accessInformation,categories:(0,$.d9)(this.categories),created:this.created&&this.created.getTime(),description:this.description,extent:_e&&[[_e.xmin,_e.ymin],[_e.xmax,_e.ymax]],id:this.id,licenseInfo:this.licenseInfo,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,spatialReference:this.spatialReference,tags:(0,$.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,$.d9)(this.typeKeywords),url:this.url};return(0,$.yd)(Ee)}static fromJSON(_e){if(!_e)return null;if(_e.declaredClass)throw new Error("JSON object is already hydrated");return new ue({sourceJSON:_e})}_getPostQuery(){const _e=this.toJSON();for(const Ee in _e)"tags"===Ee&&null!==_e[Ee]&&(_e[Ee]=_e[Ee].join(", ")),"typeKeywords"===Ee&&null!==_e[Ee]&&(_e[Ee]=_e[Ee].join(", ")),"extent"===Ee&&_e[Ee]&&(_e[Ee]=JSON.stringify(_e[Ee]));return _e}};(0,R._)([(0,X.Cb)({type:["private","shared","org","public"]})],me.prototype,"access",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"accessInformation",void 0),(0,R._)([(0,X.Cb)({type:String})],me.prototype,"apiKey",void 0),(0,R._)([(0,X.Cb)({json:{read:{source:"appProxies"}}})],me.prototype,"applicationProxies",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"avgRating",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"categories",void 0),(0,R._)([(0,X.Cb)({type:Date})],me.prototype,"created",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"culture",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"description",void 0),(0,R._)([(0,X.Cb)({readOnly:!0})],me.prototype,"displayName",null),(0,R._)([(0,X.Cb)({type:le.Z})],me.prototype,"extent",void 0),(0,R._)([(0,ae.r)("extent")],me.prototype,"readExtent",null),(0,R._)([(0,X.Cb)()],me.prototype,"groupCategories",void 0),(0,R._)([(0,X.Cb)({readOnly:!0})],me.prototype,"iconUrl",null),(0,R._)([(0,X.Cb)()],me.prototype,"id",void 0),(0,R._)([(0,X.Cb)({readOnly:!0})],me.prototype,"isLayer",null),(0,R._)([(0,X.Cb)()],me.prototype,"itemControl",void 0),(0,R._)([(0,X.Cb)({readOnly:!0})],me.prototype,"itemPageUrl",null),(0,R._)([(0,X.Cb)({readOnly:!0})],me.prototype,"itemUrl",null),(0,R._)([(0,X.Cb)()],me.prototype,"licenseInfo",void 0),(0,R._)([(0,X.Cb)({type:Date})],me.prototype,"modified",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"name",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"numComments",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"numRatings",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"numViews",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"owner",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"ownerFolder",void 0),(0,R._)([(0,X.Cb)({type:de.Z})],me.prototype,"portal",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"screenshots",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"size",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"snippet",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"sourceJSON",void 0),(0,R._)([(0,X.Cb)({type:String})],me.prototype,"spatialReference",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"tags",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"thumbnail",void 0),(0,R._)([(0,X.Cb)({readOnly:!0})],me.prototype,"thumbnailUrl",null),(0,R._)([(0,X.Cb)()],me.prototype,"title",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"type",void 0),(0,R._)([(0,X.Cb)()],me.prototype,"typeKeywords",void 0),(0,R._)([(0,X.Cb)({type:String,json:{read(_e,Ee){if(he.has(Ee.type)){const De=this.portal?.restUrl;_e||(_e=De&&this.id?`${De}/content/items/${this.id}/data`:null)}return _e}}})],me.prototype,"url",void 0),(0,R._)([(0,X.Cb)({readOnly:!0})],me.prototype,"userItemUrl",null),me=ue=(0,R._)([(0,oe.j)("esri.portal.PortalItem")],me);const ge=me},6278:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var ae,D=v(17626),R=v(14517),G=v(2076),Z=v(58817),Q=v(62208),$=v(77712),B=(v(90912),v(76898)),H=v(2004),X=v(65234),te=v(46367);const oe=new G.X({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let le=ae=class extends R.Z{constructor(se){super(se),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(se){"asc"!==se&&"desc"!==se||this._set("sortOrder",se)}clone(){return new ae({categories:this.categories?(0,Z.d9)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(se,re){let j,Y;if(this.categories&&(j=this.categories.map(J=>Array.isArray(J)?JSON.stringify(J):J)),this.extent){const J=(0,te.iV)(this.extent,X.Z.WGS84);(0,Q.pC)(J)&&(Y=`${J.xmin},${J.ymin},${J.xmax},${J.ymax}`)}let ee=this.query;!this.disableExtraQuery&&se.extraQuery&&(ee="("+ee+")"+se.extraQuery);const ie={categories:j,bbox:Y,q:ee,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(ie.sortField=this.sortField.split(",").map(J=>oe.toJSON(J.trim())).join(","),ie.sortOrder=this.sortOrder),{query:{...re,...ie}}}};(0,D._)([(0,$.Cb)()],le.prototype,"categories",void 0),(0,D._)([(0,$.Cb)()],le.prototype,"disableExtraQuery",void 0),(0,D._)([(0,$.Cb)({type:H.Z})],le.prototype,"extent",void 0),(0,D._)([(0,$.Cb)()],le.prototype,"filter",void 0),(0,D._)([(0,$.Cb)()],le.prototype,"num",void 0),(0,D._)([(0,$.Cb)()],le.prototype,"query",void 0),(0,D._)([(0,$.Cb)()],le.prototype,"sortField",void 0),(0,D._)([(0,$.Cb)()],le.prototype,"sortOrder",null),(0,D._)([(0,$.Cb)()],le.prototype,"start",void 0),le=ae=(0,D._)([(0,B.j)("esri.portal.PortalQueryParams")],le);const de=le},94508:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{default:()=>oe});var D=v(17626),R=v(26584),G=v(86810),Z=v(77712),W=(v(85931),v(90912),v(76898));let B=class extends G.wq{constructor(le){super(le),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const le=this.get("portal.restUrl");return le?`${le}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new R.Z("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,D._)([(0,Z.Cb)({type:Date})],B.prototype,"created",void 0),(0,D._)([(0,Z.Cb)()],B.prototype,"id",void 0),(0,D._)([(0,Z.Cb)()],B.prototype,"portal",void 0),(0,D._)([(0,Z.Cb)()],B.prototype,"title",void 0),(0,D._)([(0,Z.Cb)({readOnly:!0})],B.prototype,"url",null),(0,D._)([(0,Z.Cb)()],B.prototype,"username",void 0),B=(0,D._)([(0,W.j)("esri.portal.PortalFolder")],B);const H=B;var te,X=v(96245);let ae=te=class extends G.wq{constructor(...le){super(...le),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userType=null}get thumbnailUrl(){const le=this.url,de=this.thumbnail;return le&&de?this.portal._normalizeUrl(`${le}/info/${de}?f=json`):null}get userContentUrl(){const le=this.get("portal.restUrl");return le?`${le}/content/users/${this.username}`:null}get url(){const le=this.get("portal.restUrl");return le?`${le}/community/users/${this.username}`:null}addItem(le){const de=le&&le.item,se=le&&le.data,re=le&&le.folder,j={method:"post"};de&&(j.query=de.createPostQuery(),null!=se&&("string"==typeof se?j.query.text=se:"object"==typeof se&&(j.query.text=JSON.stringify(se))));let Y=this.userContentUrl;return re&&(Y+="/"+("string"==typeof re?re:re.id)),this.portal._request(Y+"/addItem",j).then(ee=>(de.id=ee.id,de.portal=this.portal,de.loaded?de.reload():de.load()))}deleteItem(le){let de=this.userContentUrl;return le.ownerFolder&&(de+="/"+le.ownerFolder),this.portal._request(de+`/items/${le.id}/delete`,{method:"post"}).then(()=>{le.id=null,le.portal=null})}deleteItems(le){const de=this.userContentUrl+"/deleteItems",se=le.map(re=>re.id);if(se.length){const re={method:"post",query:{items:se.join(",")}};return this.portal._request(de,re).then(()=>{le.forEach(j=>{j.id=null,j.portal=null})})}return Promise.resolve(void 0)}fetchFolders(){return this.portal._request(this.userContentUrl??"",{query:{num:1}}).then(de=>{let se;return se=de&&de.folders?de.folders.map(re=>{const j=H.fromJSON(re);return j.portal=this.portal,j}):[],se})}fetchGroups(){return this.portal._request(this.url??"").then(le=>{let de;return de=le&&le.groups?le.groups.map(se=>{const re=X.default.fromJSON(se);return re.portal=this.portal,re}):[],de})}fetchItems(le){const de=le??{};let se,re=this.userContentUrl??"";return de.folder&&(re+="/"+de.folder.id),Promise.resolve().then(v.bind(v,55463)).then(({default:j})=>(se=j,this.portal._request(re,{query:{folders:!1,num:de.num||10,start:de.start||1,sortField:de.sortField||"created",sortOrder:de.sortOrder||"asc"}}))).then(j=>{let Y;return j&&j.items?(Y=j.items.map(ee=>{const ie=se.fromJSON(ee);return ie.portal=this.portal,ie}),Promise.all(Y.map(ee=>ee.load())).catch(ee=>ee).then(()=>({items:Y,nextStart:j.nextStart,total:j.total}))):{items:[],nextStart:-1,total:0}})}fetchTags(){return this.portal._request(this.url+"/tags").then(le=>le.tags)}getThumbnailUrl(le){let de=this.thumbnailUrl;return de&&le&&(de+=`&w=${le}`),de}queryFavorites(le){return this.favGroupId?(this._favGroup||(this._favGroup=new X.default({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(le)):Promise.reject(new R.Z("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}toJSON(){throw new R.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(le){if(!le)return null;if(le.declaredClass)throw new Error("JSON object is already hydrated");const de=new te;return de.sourceJSON=le,de.read(le),de}};(0,D._)([(0,Z.Cb)()],ae.prototype,"access",void 0),(0,D._)([(0,Z.Cb)({type:Date})],ae.prototype,"created",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"culture",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"description",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"email",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"favGroupId",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"fullName",void 0),(0,D._)([(0,Z.Cb)({type:Date})],ae.prototype,"modified",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"orgId",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"portal",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"preferredView",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"privileges",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"region",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"role",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"roleId",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"sourceJSON",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"thumbnail",void 0),(0,D._)([(0,Z.Cb)({readOnly:!0})],ae.prototype,"thumbnailUrl",null),(0,D._)([(0,Z.Cb)()],ae.prototype,"units",void 0),(0,D._)([(0,Z.Cb)({readOnly:!0})],ae.prototype,"userContentUrl",null),(0,D._)([(0,Z.Cb)({readOnly:!0})],ae.prototype,"url",null),(0,D._)([(0,Z.Cb)()],ae.prototype,"username",void 0),(0,D._)([(0,Z.Cb)()],ae.prototype,"userType",void 0),ae=te=(0,D._)([(0,W.j)("esri.portal.PortalUser")],ae);const oe=ae},35082:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{getGeometryServiceURL:()=>W,projectGeometry:()=>H});var D=v(15861),R=v(59318),G=v(26584),Z=v(84687),Q=v(39636),$=v(77294);function W(){return B.apply(this,arguments)}function B(){return(B=(0,D.Z)(function*(te=null,ae){if(R.Z.geometryServiceUrl)return R.Z.geometryServiceUrl;if(!te)throw new G.Z("internal:geometry-service-url-not-configured");let oe;oe="portal"in te?te.portal||Z.Z.getDefault():te,yield oe.load({signal:ae});const le=oe.helperServices?.geometry?.url;if(!le)throw new G.Z("internal:geometry-service-url-not-configured");return le})).apply(this,arguments)}function H(te,ae){return X.apply(this,arguments)}function X(){return(X=(0,D.Z)(function*(te,ae,oe=null,le){const de=yield W(oe,le),se=new $.Z;se.geometries=[te],se.outSpatialReference=ae;const re=yield(0,Q.i)(de,se,{signal:le});if(re&&Array.isArray(re)&&1===re.length)return re[0];throw new G.Z("internal:geometry-service-projection-failed")})).apply(this,arguments)}},24433:(nt,Ae,v)=>{"use strict";v.d(Ae,{P:()=>Z,a:()=>G});const D=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,R={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function G(Q){const $=Q?.match(D);if(!$)return null;const[,W,B,H]=$;if(!W)return null;let X=null,te=null,ae=null;const{devext:oe,qaext:le,www:de}=R;if(B)if(X=W,H)switch(H.toLowerCase()){case"devext":({customBaseUrl:te,portalHostname:ae}=oe);break;case"qa":({customBaseUrl:te,portalHostname:ae}=le);break;default:return null}else({customBaseUrl:te,portalHostname:ae}=de);else switch(W.toLowerCase()){case"devext":({customBaseUrl:te,portalHostname:ae}=oe);break;case"qaext":({customBaseUrl:te,portalHostname:ae}=le);break;case"www":({customBaseUrl:te,portalHostname:ae}=de);break;default:return null}return{customBaseUrl:te,isPortal:!1,portalHostname:ae,urlKey:X}}function Z(Q){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(Q)}},58926:(nt,Ae,v)=>{"use strict";v.d(Ae,{v:()=>R});const R=(0,v(2076).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},4832:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>_e});var J,D=v(15861),R=v(17626),G=v(20383),Z=v(2076),Q=v(58817),$=v(63290),W=v(62208),B=v(77712),H=v(66656),X=v(55342),te=v(68653),ae=v(76898),oe=v(99433),le=v(90912),de=v(36630),se=v(69357),re=v(2432),j=v(74400),Y=v(76457),ee=v(10914),ie=v(46679);const ue="percent-of-total",pe="field",he=new Z.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:ue,esriNormalizeByField:pe}),me=(0,le.se)(j.Z);let ge=J=class extends((0,re.W)(se.Z)){constructor(Ee){super(Ee),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(Ee,De,be){if(!Array.isArray(Ee))return;let Se=De.minValue;return Ee.map(ye=>{const ve=new j.Z;return ve.read(ye,be),null==ve.minValue&&(ve.minValue=Se),null==ve.maxValue&&(ve.maxValue=ve.minValue),Se=ve.maxValue,ve})}writeClassBreakInfos(Ee,De,be,Se){const ye=Ee.map(ve=>ve.write({},Se));this._areClassBreaksConsecutive()&&ye.forEach(ve=>delete ve.classMinValue),De[be]=ye}castField(Ee){return null==Ee?Ee:"function"==typeof Ee?($.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,le.Zs)(Ee)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let Ee=this._get("normalizationType");const De=!!this.normalizationField,be=null!=this.normalizationTotal;return De||be?(Ee=(De?pe:be&&ue)||null,De&&be&&$.Z.getLogger(this.declaredClass).warn("warning: both normalizationField and normalizationTotal are set!")):Ee!==pe&&Ee!==ue||(Ee=null),Ee}set normalizationType(Ee){this._set("normalizationType",Ee)}addClassBreakInfo(Ee,De,be){let Se=null;Se="number"==typeof Ee?new j.Z({minValue:Ee,maxValue:De,symbol:(0,G.se)(be)}):me((0,Q.d9)(Ee)),this.classBreakInfos.push(Se),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(Ee,De){const be=this.classBreakInfos.length;for(let Se=0;Se-1?this.classBreakInfos[be].symbol:this.defaultSymbol}getSymbolAsync(Ee,De){var be=this;return(0,D.Z)(function*(){let Se=De;if(be.valueExpression&&((0,W.Wi)(De)||(0,W.Wi)(De.arcade))){const ve=yield(0,ie.LC)(),{arcadeUtils:xe}=ve;xe.hasGeometryOperations(be.valueExpression)&&(yield xe.enableGeometryOperations()),Se={...Se,arcade:ve}}const ye=be.getBreakIndex(Ee,Se);return ye>-1?be.classBreakInfos[ye].symbol:be.defaultSymbol})()}getSymbols(){const Ee=[];return this.classBreakInfos.forEach(De=>{De.symbol&&Ee.push(De.symbol)}),this.defaultSymbol&&Ee.push(this.defaultSymbol),Ee}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((Ee,De)=>Ee+De.getAttributeHash(),"")}getMeshHash(){const Ee=JSON.stringify(this.backgroundFillSymbol),De=JSON.stringify(this.defaultSymbol),be=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${Ee}.${De}.${this.classBreakInfos.reduce((Se,ye)=>Se+ye.getMeshHash(),"")}.${be}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new J({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,Q.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,Q.d9)(this.visualVariables),legendOptions:(0,Q.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}collectRequiredFields(Ee,De){var be=this;return(0,D.Z)(function*(){const Se=[be.collectVVRequiredFields(Ee,De),be.collectSymbolFields(Ee,De)];yield Promise.all(Se)})()}collectSymbolFields(Ee,De){var be=this;return(0,D.Z)(function*(){const Se=[...be.getSymbols().map(ye=>ye.collectRequiredFields(Ee,De)),(0,de.io)(Ee,De,be.valueExpression)];(0,de.AB)(Ee,De,be.field),(0,de.AB)(Ee,De,be.normalizationField),yield Promise.all(Se)})()}_getBreakIndexForExpression(Ee,De){const{viewingMode:be,scale:Se,spatialReference:ye,arcade:ve}=(0,W.Pt)(De,{}),{valueExpression:xe}=this;let ze=this._compiledValueExpression.valueExpression===xe?this._compiledValueExpression.compiledFunction:null;const Ke=(0,W.Wg)(ve).arcadeUtils;if(!ze){const Ce=Ke.createSyntaxTree(xe);ze=Ke.createFunction(Ce),this._compiledValueExpression.compiledFunction=ze}this._compiledValueExpression.valueExpression=xe;const We=Ke.executeFunction(ze,Ke.createExecContext(Ee,Ke.getViewInfo({viewingMode:be,scale:Se,spatialReference:ye})));return this._getBreakIndexfromInfos(We)}_getBreakIndexForField(Ee){const be=Ee.attributes,Se=this.normalizationType;let ye=parseFloat(be[this.field]);if(Se){const ve=this.normalizationTotal,xe=parseFloat(this.normalizationField?be[this.normalizationField]:void 0);if("log"===Se)ye=Math.log(ye)*Math.LOG10E;else if(Se!==ue||null==ve||isNaN(ve)){if(Se===pe&&!isNaN(xe)){if(isNaN(ye)||isNaN(xe))return-1;ye/=xe}}else ye=ye/ve*100}return this._getBreakIndexfromInfos(ye)}_getBreakIndexfromInfos(Ee){const De=this.isMaxInclusive;if(null!=Ee&&"number"==typeof Ee&&!isNaN(Ee))for(let be=0;be(0,le.q9)(Ee),json:{write:!0}})],ge.prototype,"normalizationTotal",void 0),(0,R._)([(0,B.Cb)({type:he.apiValues,value:null,json:{type:he.jsonValues,read:he.read,write:he.write}})],ge.prototype,"normalizationType",null),(0,R._)([(0,X.J)({classBreaks:"class-breaks"})],ge.prototype,"type",void 0),(0,R._)([(0,B.Cb)({type:String,json:{write:!0}})],ge.prototype,"valueExpression",void 0),(0,R._)([(0,B.Cb)({type:String,json:{write:!0}})],ge.prototype,"valueExpressionTitle",void 0),ge=J=(0,R._)([(0,ae.j)("esri.renderers.ClassBreaksRenderer")],ge);const _e=ge},49067:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var ae,D=v(15861),R=v(17626),G=v(58817),Z=v(77712),$=(v(90912),v(76898)),W=v(99433),B=v(36630),H=v(69357),X=v(2432),te=v(29996);let oe=ae=class extends((0,X.W)(H.Z)){constructor(de){super(de),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}get _loader(){return new te.DictionaryLoader(this.url,this.config,this.fieldMap)}writeData(de,se){de&&(se.scalingExpressionInfo={expression:de,returnType:"number"})}writeVisualVariables(de,se,re,j){j?.origin||super.writeVisualVariables(de,se,re,j)}clone(){return new ae({config:(0,G.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,G.d9)(this.fieldMap),url:(0,G.d9)(this.url),visualVariables:(0,G.d9)(this.visualVariables)})}getSymbolAsync(de,se){var re=this;return(0,D.Z)(function*(){return re._loader.getSymbolAsync(de,se)})()}collectRequiredFields(de,se){var re=this;return(0,D.Z)(function*(){yield re.collectVVRequiredFields(de,se),re.scaleExpression&&(yield(0,B.io)(de,se,re.scaleExpression));for(const j in re.fieldMap){const Y=re.fieldMap[j];se.has(Y)&&de.add(Y)}})()}get arcadeRequired(){return!0}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((de,se)=>de+se.getAttributeHash(),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._loader.getSymbolFields()}};(0,R._)([(0,Z.Cb)({type:te.DictionaryLoader})],oe.prototype,"_loader",null),(0,R._)([(0,Z.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],oe.prototype,"config",void 0),(0,R._)([(0,Z.Cb)({type:Object,json:{write:!0}})],oe.prototype,"fieldMap",void 0),(0,R._)([(0,Z.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],oe.prototype,"scaleExpression",void 0),(0,R._)([(0,W.c)("scaleExpression")],oe.prototype,"writeData",null),(0,R._)([(0,Z.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(de){return{enabled:!!de&&!!this.scaleExpression}}}}})],oe.prototype,"scaleExpressionTitle",void 0),(0,R._)([(0,Z.Cb)({type:String,json:{write:!0}})],oe.prototype,"url",void 0),(0,R._)([(0,W.c)("visualVariables")],oe.prototype,"writeVisualVariables",null),oe=ae=(0,R._)([(0,$.j)("esri.renderers.DictionaryRenderer")],oe);const le=oe},96794:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>J});var de,D=v(15861),R=v(17626),G=v(91558),Z=v(58817),Q=v(77712),W=(v(90912),v(55342)),B=v(76898),H=v(36630),X=v(69357),te=v(2432),ae=v(41832),oe=v(86810);v(85931);let se=de=class extends oe.wq{constructor(){super(...arguments),this.unit=null}clone(){return new de({unit:this.unit})}};(0,R._)([(0,Q.Cb)({type:String,json:{write:!0}})],se.prototype,"unit",void 0),se=de=(0,R._)([(0,B.j)("esri.renderers.support.DotDensityLegendOptions")],se);const re=se;var ee,j=v(88493),Y=v(52068);let ie=ee=class extends((0,te.W)(X.Z)){constructor(ce){super(ce),this.attributes=null,this.backgroundColor=new G.Z([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new Y.Z,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(ce){if(null==this.referenceScale)return this.dotValue;const ue=ce/this.referenceScale*this.dotValue;return ue<1?1:ue}getSymbol(){return new j.Z({outline:this.outline})}getSymbolAsync(){var ce=this;return(0,D.Z)(function*(){return ce.getSymbol()})()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes?.reduce((ce,ue)=>ce+ue.getAttributeHash(),"")??""}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new ee({attributes:(0,Z.d9)(this.attributes),backgroundColor:(0,Z.d9)(this.backgroundColor),dotBlendingEnabled:(0,Z.d9)(this.dotBlendingEnabled),dotShape:(0,Z.d9)(this.dotShape),dotSize:(0,Z.d9)(this.dotSize),dotValue:(0,Z.d9)(this.dotValue),legendOptions:(0,Z.d9)(this.legendOptions),outline:(0,Z.d9)(this.outline),referenceScale:(0,Z.d9)(this.referenceScale),visualVariables:(0,Z.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){return`${this.attributes?.map(ue=>ue.field||ue.valueExpression||"")}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}collectRequiredFields(ce,ue){var pe=this;return(0,D.Z)(function*(){yield pe.collectVVRequiredFields(ce,ue);for(const he of pe.attributes??[])he.valueExpression&&(yield(0,H.io)(ce,ue,he.valueExpression)),he.field&&ce.add(he.field)})()}};(0,R._)([(0,Q.Cb)({type:[ae.Z],json:{write:!0}})],ie.prototype,"attributes",void 0),(0,R._)([(0,Q.Cb)({type:G.Z,json:{write:!0}})],ie.prototype,"backgroundColor",void 0),(0,R._)([(0,Q.Cb)({type:Boolean,json:{write:!0}})],ie.prototype,"dotBlendingEnabled",void 0),(0,R._)([(0,Q.Cb)({type:String,json:{write:!1}})],ie.prototype,"dotShape",void 0),(0,R._)([(0,Q.Cb)({type:Number,json:{write:!0}})],ie.prototype,"dotSize",void 0),(0,R._)([(0,Q.Cb)({type:re,json:{write:!0}})],ie.prototype,"legendOptions",void 0),(0,R._)([(0,Q.Cb)({type:Y.Z,json:{default:null,write:!0}})],ie.prototype,"outline",void 0),(0,R._)([(0,Q.Cb)({type:Number,json:{write:!0}})],ie.prototype,"dotValue",void 0),(0,R._)([(0,Q.Cb)({type:Number,json:{write:!0}})],ie.prototype,"referenceScale",void 0),(0,R._)([(0,Q.Cb)({type:Number,json:{write:!0}})],ie.prototype,"seed",void 0),(0,R._)([(0,W.J)({dotDensity:"dot-density"})],ie.prototype,"type",void 0),ie=ee=(0,R._)([(0,B.j)("esri.renderers.DotDensityRenderer")],ie);const J=ie},69747:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Ee});var D=v(15861),R=v(17626),G=v(91558),Q=(v(20383),v(55538)),$=v(58817),W=v(63290),B=v(50618),H=v(23841),X=v(77712),te=v(52323),oe=(v(90912),v(55342)),le=v(76898),de=v(36630),se=v(69357),re=v(15312),j=v(52372),Y=v(79608),ee=v(86810);v(85931);let J=class extends((0,Y.J)(ee.wq)){constructor(){super(...arguments),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],J.prototype,"minLabel",void 0),(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],J.prototype,"maxLabel",void 0),(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],J.prototype,"title",void 0),J=(0,R._)([(0,le.j)("esri.renderers.support.HeatmapLegendOptions")],J);var pe,ce=v(36859),ue=v(57213);const he="esri.renderers.HeatmapRenderer",me=W.Z.getLogger(he);function ge(De){if(null!=De){const{maxDensity:be,minDensity:Se,radius:ye}=De;if(null!=be||null!=Se||null!=ye){const{blurRadius:ve,maxPixelIntensity:xe,minPixelIntensity:ze,...Ke}=De;return Ke}}return De}let _e=pe=class extends se.Z{constructor(De){super(De),this.authoringInfo=null,this.colorStops=[new j.Z({ratio:0,color:new G.Z("rgba(255, 140, 0, 0)")}),new j.Z({ratio:.75,color:new G.Z("rgba(255, 140, 0, 1)")}),new j.Z({ratio:.9,color:new G.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.radius=18,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null,this._warnedProps={blurRadius:!1,maxPixelIntensity:!1,minPixelIntensity:!1}}normalizeCtorArgs(De){return ge(De)}get blurRadius(){return(0,ce.AJ)(this.radius)}set blurRadius(De){const be=this.maxPixelIntensity,Se=this.minPixelIntensity;this._set("radius",(0,ce.k0)(De)),this._warnAboutDeprecatedGaussianBlurProp("blurRadius","radius"),this._set("maxDensity",be*this._pixelIntensityToDensity),this._set("minDensity",Se*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(De){this._set("maxDensity",De*this._pixelIntensityToDensity),this._warnAboutDeprecatedGaussianBlurProp("maxPixelIntensity","maxDensity")}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(De){this._set("minDensity",De*this._pixelIntensityToDensity),this._warnAboutDeprecatedGaussianBlurProp("minPixelIntensity","minDensity")}get _pixelIntensityToDensity(){return 24/(ce.nu**2*this.blurRadius**4)}_warnAboutDeprecatedGaussianBlurProp(De,be){this._warnedProps[De]||"user"===(0,te.vw)(this).getDefaultOrigin()&&(this._warnedProps[De]=!0,(0,B.Os)(()=>{(0,Q.Mr)(me,De,{replacement:`${String(be)} (suggested value: ${this._get(be)})`,version:"4.24"})}))}read(De,be){De=ge(De),super.read(De,be)}getSymbol(){return new ue.Z}getSymbolAsync(){var De=this;return(0,D.Z)(function*(){return De.getSymbol()})()}getSymbols(){return[this.getSymbol()]}collectRequiredFields(De,be){var Se=this;return(0,D.Z)(function*(){const ye=Se.field,ve=Se.valueExpression;ye&&"string"==typeof ye&&(yield(0,de.AB)(De,be,ye)),ve&&"string"==typeof ve&&(yield(0,de.io)(De,be,ve))})()}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new pe({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:(0,$.d9)(this.colorStops),field:this.field,legendOptions:(0,$.d9)(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,R._)([(0,X.Cb)({type:re.Z,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],_e.prototype,"authoringInfo",void 0),(0,R._)([(0,X.Cb)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],_e.prototype,"blurRadius",null),(0,R._)([(0,X.Cb)({type:[j.Z],json:{write:!0}})],_e.prototype,"colorStops",void 0),(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],_e.prototype,"field",void 0),(0,R._)([(0,X.Cb)({type:Number,json:{write:{overridePolicy:(De,be,Se)=>({enabled:null==Se})},origins:{"web-scene":{write:!1}}}})],_e.prototype,"fieldOffset",void 0),(0,R._)([(0,X.Cb)({type:J,json:{write:!0}})],_e.prototype,"legendOptions",void 0),(0,R._)([(0,X.Cb)({type:Number,json:{write:!0}})],_e.prototype,"maxDensity",void 0),(0,R._)([(0,X.Cb)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],_e.prototype,"maxPixelIntensity",null),(0,R._)([(0,X.Cb)({type:Number,json:{write:!0}})],_e.prototype,"minDensity",void 0),(0,R._)([(0,X.Cb)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],_e.prototype,"minPixelIntensity",null),(0,R._)([(0,X.Cb)({type:Number,cast:H.t_,json:{write:!0}})],_e.prototype,"radius",void 0),(0,R._)([(0,X.Cb)({type:Number,range:{min:0},json:{default:0,write:!0}})],_e.prototype,"referenceScale",void 0),(0,R._)([(0,oe.J)({heatmap:"heatmap"})],_e.prototype,"type",void 0),(0,R._)([(0,X.Cb)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],_e.prototype,"valueExpression",void 0),(0,R._)([(0,X.Cb)({type:String})],_e.prototype,"valueExpressionTitle",void 0),(0,R._)([(0,X.Cb)({readOnly:!0})],_e.prototype,"_pixelIntensityToDensity",null),_e=pe=(0,R._)([(0,le.j)(he)],_e);const Ee=_e},40425:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ue});var D=v(15861),R=v(17626),G=v(91558),Q=(v(20383),v(79608)),$=v(62208),W=v(23841),B=v(77712),te=(v(85931),v(90912),v(55342)),ae=v(76898),oe=v(36630),le=v(69357),de=v(2432),se=v(41832),re=v(86810);let j=class extends((0,Q.J)(re.wq)){constructor(){super(...arguments),this.color=new G.Z([0,0,0,0]),this.label=null,this.threshold=0}};(0,R._)([(0,B.Cb)({type:G.Z,json:{write:!0}})],j.prototype,"color",void 0),(0,R._)([(0,B.Cb)({type:String,json:{write:!0}})],j.prototype,"label",void 0),(0,R._)([(0,B.Cb)({type:Number,range:{min:0,max:1},json:{write:!0}})],j.prototype,"threshold",void 0),j=(0,R._)([(0,ae.j)("esri.renderers.support.OthersCategory")],j);let Y=class extends((0,Q.J)(re.wq)){constructor(){super(...arguments),this.title=null}};(0,R._)([(0,B.Cb)({type:String,json:{write:!0}})],Y.prototype,"title",void 0),Y=(0,R._)([(0,ae.j)("esri.renderers.support.PieChartLegendOptions")],Y);var ee=v(57213),ie=v(88493),J=v(52068);let ce=class extends((0,de.W)((0,Q.J)(le.Z))){constructor(pe){super(pe),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new G.Z([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new j,this.legendOptions=null,this.outline=null,this.size=12,this.type="pie-chart"}getSymbol(){return new ee.Z({size:this.size?this.size/2+(this.outline?.width||0):0})}getSymbolAsync(){var pe=this;return(0,D.Z)(function*(){return pe.getSymbol()})()}getSymbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter($.pC)}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((pe,he)=>pe+he.getAttributeHash(),"")}getMeshHash(){return this.getSymbols().reduce((pe,he)=>pe+JSON.stringify(he),"")}collectRequiredFields(pe,he){var me=this;return(0,D.Z)(function*(){yield me.collectVVRequiredFields(pe,he);for(const ge of me.attributes)ge.valueExpression&&(yield(0,oe.io)(pe,he,ge.valueExpression)),ge.field&&pe.add(ge.field)})()}};(0,R._)([(0,B.Cb)({type:[se.Z],json:{write:!0}})],ce.prototype,"attributes",void 0),(0,R._)([(0,B.Cb)({type:ie.Z,json:{default:null,write:!0}})],ce.prototype,"backgroundFillSymbol",void 0),(0,R._)([(0,B.Cb)({type:G.Z,json:{write:!0}})],ce.prototype,"defaultColor",void 0),(0,R._)([(0,B.Cb)({type:String,json:{write:!0}})],ce.prototype,"defaultLabel",void 0),(0,R._)([(0,B.Cb)({type:Number,range:{min:0,max:1},json:{write:!0}})],ce.prototype,"holePercentage",void 0),(0,R._)([(0,B.Cb)({type:j,json:{write:!0}})],ce.prototype,"othersCategory",void 0),(0,R._)([(0,B.Cb)({type:Y,json:{write:!0}})],ce.prototype,"legendOptions",void 0),(0,R._)([(0,B.Cb)({type:J.Z,json:{default:null,write:!0}})],ce.prototype,"outline",void 0),(0,R._)([(0,B.Cb)({type:Number,cast:W.t_,json:{write:!0}})],ce.prototype,"size",void 0),(0,R._)([(0,te.J)({pieChart:"pie-chart"})],ce.prototype,"type",void 0),ce=(0,R._)([(0,ae.j)("esri.renderers.PieChartRenderer")],ce);const ue=ce},69357:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var D=v(15861),R=v(17626),G=v(2076),Z=v(86810),Q=v(77712),B=(v(85931),v(90912),v(76898)),H=v(15312);const X=new G.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let te=class extends Z.wq{constructor(oe){super(oe),this.authoringInfo=null,this.type=null}getRequiredFields(oe){var le=this;return(0,D.Z)(function*(){if(!le.collectRequiredFields)return[];const de=new Set;return yield le.collectRequiredFields(de,oe),Array.from(de).sort()})()}getSymbol(oe,le){}getSymbolAsync(oe,le){return(0,D.Z)(function*(){})()}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,R._)([(0,Q.Cb)({type:H.Z,json:{write:!0}})],te.prototype,"authoringInfo",void 0),(0,R._)([(0,Q.Cb)({type:X.apiValues,readOnly:!0,json:{type:X.jsonValues,read:!1,write:{writer:X.write,ignoreOrigin:!0}}})],te.prototype,"type",void 0),te=(0,R._)([(0,B.j)("esri.renderers.Renderer")],te);const ae=te},40342:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var te,D=v(15861),R=v(17626),G=v(58817),Z=v(77712),$=(v(90912),v(55342)),W=v(76898),B=v(69357),H=v(2432),X=v(76457);let ae=te=class extends((0,H.W)(B.Z)){constructor(le){super(le),this.description=null,this.label=null,this.symbol=null,this.type="simple"}collectRequiredFields(le,de){var se=this;return(0,D.Z)(function*(){yield Promise.all([se.collectSymbolFields(le,de),se.collectVVRequiredFields(le,de)])})()}collectSymbolFields(le,de){var se=this;return(0,D.Z)(function*(){yield Promise.all(se.getSymbols().map(re=>re.collectRequiredFields(le,de)))})()}getSymbol(le,de){return this.symbol}getSymbolAsync(le,de){var se=this;return(0,D.Z)(function*(){return se.symbol})()}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((le,de)=>le+de.getAttributeHash(),"")}getMeshHash(){return this.getSymbols().reduce((le,de)=>le+JSON.stringify(de),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new te({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,G.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,R._)([(0,Z.Cb)({type:String,json:{write:!0}})],ae.prototype,"description",void 0),(0,R._)([(0,Z.Cb)({type:String,json:{write:!0}})],ae.prototype,"label",void 0),(0,R._)([(0,Z.Cb)(X.Gn)],ae.prototype,"symbol",void 0),(0,R._)([(0,$.J)({simple:"simple"})],ae.prototype,"type",void 0),ae=te=(0,R._)([(0,W.j)("esri.renderers.SimpleRenderer")],ae);const oe=ae},73640:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Ge});var D=v(15861),R=v(17626),G=v(20383),Z=v(26584),Q=v(58817),$=v(63290),W=v(62208),B=v(94113),H=v(32917),X=v(77712),te=v(66656),ae=v(55342),oe=v(68653),le=v(76898),de=v(99433),se=v(84682),re=v(90912),j=v(36630),Y=v(84687),ee=v(69357),ie=v(2432),J=v(76457),ce=v(10914),ue=v(79608),pe=v(86810);v(85931);let me=class extends((0,ue.J)(pe.wq)){constructor(Pe){super(Pe),this.value=null,this.value2=null,this.value3=null}};(0,R._)([(0,X.Cb)(J.GY)],me.prototype,"value",void 0),(0,R._)([(0,X.Cb)(J.GY)],me.prototype,"value2",void 0),(0,R._)([(0,X.Cb)(J.GY)],me.prototype,"value3",void 0),me=(0,R._)([(0,le.j)("esri.renderers.support.UniqueValue")],me);const ge=me;let _e=class extends((0,ue.J)(pe.wq)){constructor(Pe){super(Pe),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(Pe){if(null==Pe)return null;const Le=typeof(Pe=Array.isArray(Pe)?Pe:[Pe])[0];return"string"===Le||"number"===Le?Pe.map(Me=>new ge({value:Me})):"object"===Le?Pe[0]instanceof ge?Pe:Pe.map(Me=>new ge(Me)):null}};(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],_e.prototype,"description",void 0),(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],_e.prototype,"label",void 0),(0,R._)([(0,X.Cb)(J.Gn)],_e.prototype,"symbol",void 0),(0,R._)([(0,X.Cb)({type:[ge],json:{type:[[String]],read:{reader:Pe=>Pe?Pe.map(Le=>new ge({value:Le[0],value2:Le[1],value3:Le[2]})):null},write:{writer:(Pe,Le)=>{const Me=[];for(const Ne of Pe){const Xe=[Ne.value,Ne.value2,Ne.value3].filter(W.pC).map(Ye=>Ye.toString());Me.push(Xe)}Le.values=Me}}}})],_e.prototype,"values",void 0),(0,R._)([(0,te.p)("values")],_e.prototype,"castValues",null),_e=(0,R._)([(0,le.j)("esri.renderers.support.UniqueValueClass")],_e);const Ee=_e;let De=class extends((0,ue.J)(pe.wq)){constructor(Pe){super(Pe),this.heading=null,this.classes=null}};(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],De.prototype,"heading",void 0),(0,R._)([(0,X.Cb)({type:[Ee],json:{write:!0}})],De.prototype,"classes",void 0),De=(0,R._)([(0,le.j)("esri.renderers.support.UniqueValueGroup")],De);const be=De;var Ke,Se=v(87266),ye=v(46679),ve=v(29840),xe=v(71937),ze=v(12874);const We="esri.renderers.UniqueValueRenderer",Ce=$.Z.getLogger(We),Be="uvInfos-watcher",Fe="uvGroups-watcher",Re=(0,re.se)(Se.Z);let Ie=Ke=class extends((0,ie.W)(ee.Z)){constructor(Pe){super(Pe),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(Le,Me){if(!Le&&!Me)return;if(!Le||!Me)return{type:"complete",oldValue:Le,newValue:Me};let Ne=!1;const Xe={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let Ye=0;Yert.value===Me[Ye].value);Je?(0,se.Hg)(Je,Me[Ye])?(Xe.changed.push({type:"complete",oldValue:Je,newValue:Me[Ye]}),Ne=!0):Xe.unchanged.push({oldValue:Je,newValue:Me[Ye]}):(Xe.added.push(Me[Ye]),Ne=!0)}for(let Ye=0;YeJe.value===Le[Ye].value)||(Xe.removed.push(Le[Ye]),Ne=!0);return Ne?Xe:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(Pe){this._set("field",Pe),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(Pe){return null==Pe||"function"==typeof Pe?Pe:(0,re.Zs)(Pe)}writeField(Pe,Le,Me,Ne){"string"==typeof Pe?Le[Me]=Pe:Ne&&Ne.messages?Ne.messages.push(new Z.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):Ce.error(".field: cannot write field to JSON since it's not a string value")}set field2(Pe){this._set("field2",Pe),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(Pe){this._set("field3",Pe),this._updateUniqueValues()}set valueExpression(Pe){this._set("valueExpression",Pe),this._updateUniqueValues()}set defaultSymbol(Pe){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",Pe)}set fieldDelimiter(Pe){this._set("fieldDelimiter",Pe),this._updateUniqueValues()}readPortal(Pe,Le,Me){return Me.portal||Y.Z.getDefault()}readStyleOrigin(Pe,Le,Me){if(Le.styleName)return Object.freeze({styleName:Le.styleName});if(Le.styleUrl){const Ne=(0,ve.f)(Le.styleUrl,Me);return Object.freeze({styleUrl:Ne})}}writeStyleOrigin(Pe,Le,Me,Ne){Pe.styleName?Le.styleName=Pe.styleName:Pe.styleUrl&&(Le.styleUrl=(0,ve.t)(Pe.styleUrl,Ne))}set uniqueValueGroups(Pe){this.styleOrigin?Ce.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",Pe),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(Pe){this.styleOrigin?Ce.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",Pe),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(Pe,Le){if(this.styleOrigin)return void Ce.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let Me;Me="object"==typeof Pe?Re(Pe):new Se.Z({value:Pe,symbol:(0,G.se)(Le)}),this.uniqueValueInfos?.push(Me),this._valueInfoMap[Me.value]=Me,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(Pe){if(this.styleOrigin)return void Ce.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const Le=this.uniqueValueInfos;if(Le)for(let Me=0;MePe+Le.getAttributeHash(),"")}getMeshHash(){const Pe=JSON.stringify(this.backgroundFillSymbol),Le=JSON.stringify(this.defaultSymbol),Me=this.uniqueValueInfos?.reduce((Ne,Xe)=>Ne+Xe.getMeshHash(),"");return`${Pe}.${Le}.${Me}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const Pe=new Ke({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,Q.d9)(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,Q.d9)(this.visualVariables),legendOptions:(0,Q.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,Q.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(Pe._isDefaultSymbolDerived=!0),Pe._set("portal",this.portal);const Le=(0,Q.d9)(this.uniqueValueInfos),Me=(0,Q.d9)(this.uniqueValueGroups);return this.styleOrigin&&(Pe._set("styleOrigin",Object.freeze((0,Q.d9)(this.styleOrigin))),Object.freeze(Le),Object.freeze(Me)),Pe._set("uniqueValueInfos",Le),Pe._updateValueInfoMap(),Pe._set("uniqueValueGroups",Me),Pe._isInfosSource=this._isInfosSource,Pe._watchUniqueValueInfosAndGroups(),Pe}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}collectRequiredFields(Pe,Le){var Me=this;return(0,D.Z)(function*(){const Ne=[Me.collectVVRequiredFields(Pe,Le),Me.collectSymbolFields(Pe,Le)];yield Promise.all(Ne)})()}collectSymbolFields(Pe,Le){var Me=this;return(0,D.Z)(function*(){const Ne=[...Me.getSymbols().map(Xe=>Xe.collectRequiredFields(Pe,Le)),(0,j.io)(Pe,Le,Me.valueExpression)];(0,j.AB)(Pe,Le,Me.field),(0,j.AB)(Pe,Le,Me.field2),(0,j.AB)(Pe,Le,Me.field3),yield Promise.all(Ne)})()}populateFromStyle(){return(0,xe.n2)(this.styleOrigin,{portal:this.portal}).then(Pe=>{const Le=[];return this._valueInfoMap={},Pe&&Pe.data&&Array.isArray(Pe.data.items)&&Pe.data.items.forEach(Me=>{const Ne=new ze.Z({styleUrl:Pe.styleUrl,styleName:Pe.styleName,portal:this.portal,name:Me.name});this.defaultSymbol||Me.name!==Pe.data.defaultItem||(this.defaultSymbol=Ne,this._isDefaultSymbolDerived=!0);const Xe=new Se.Z({value:Me.name,symbol:Ne});Le.push(Xe),this._valueInfoMap[Me.name]=Xe}),this._set("uniqueValueInfos",Object.freeze(Le)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:Pe}=this;if(Pe)for(const Le of Pe)this._valueInfoMap[Le.value+""]=Le}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(Be);const{uniqueValueInfos:Pe}=this;if(Pe){const Le=[];for(const Me of Pe)Le.push((0,H.YP)(()=>({symbol:Me.symbol,value:Me.value,label:Me.label,description:Me.description}),(Ne,Xe)=>{Ne!==Xe&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(Le,Be)}}_watchUniqueValueGroups(){this.removeHandles(Fe);const{uniqueValueGroups:Pe}=this;if(Pe){const Le=[];for(const Me of Pe){Le.push((0,H.YP)(()=>({classes:Me.classes}),(Ne,Xe)=>{Ne!==Xe&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const Ne of Me.classes)Le.push((0,H.YP)(()=>({symbol:Ne.symbol,values:Ne.values,label:Ne.label,description:Ne.description}),(Xe,Ye)=>{Xe!==Ye&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(Le,Fe)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const Pe=[],{field:Le,field2:Me,field3:Ne,fieldDelimiter:Xe,uniqueValueGroups:Ye,valueExpression:Je}=this;if(!Le&&!Je)return this._set("uniqueValueInfos",Pe),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const rt=!(!Le||!Me);for(const tt of Ye)for(const et of tt.classes??[]){const{symbol:qe,label:ot,values:ut,description:_t}=et;for(const Ct of ut??[]){const{value:vt,value2:Lt,value3:jt}=Ct,$t=[vt];Me&&$t.push(Lt),Ne&&$t.push(jt);const Wt=rt?$t.join(Xe||""):$t[0];Pe.push(new Se.Z({symbol:qe,label:ot,value:Wt,description:_t}))}}this._set("uniqueValueInfos",Pe),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(Pe=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:Le,field2:Me,valueExpression:Ne,fieldDelimiter:Xe,uniqueValueInfos:Ye}=this;if(!Le&&!Ne||!Ye.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const Je=!(!Le||!Me),rt=Ye.map(et=>{const{symbol:qe,label:ot,value:ut,description:_t}=et,[Ct,vt,Lt]=Je?ut?.toString()?.split(Xe||"")||[]:[ut];return new Ee({symbol:qe,label:ot,description:_t,values:[new ge({value:Ct,value2:vt,value3:Lt})]})}),tt=[new be({classes:rt})];Pe&&Object.freeze(tt),this._set("uniqueValueGroups",tt),this._watchUniqueValueGroups()}_getUniqueValueInfo(Pe,Le){return this.valueExpression?this._getUnqiueValueInfoForExpression(Pe,Le):this._getUnqiueValueInfoForFields(Pe)}_getUnqiueValueInfoForExpression(Pe,Le){const{viewingMode:Me,scale:Ne,spatialReference:Xe,arcade:Ye}=(0,W.Pt)(Le,{});let Je=this._cache.compiledFunc;const rt=(0,W.Wg)(Ye).arcadeUtils;if(!Je){const et=rt.createSyntaxTree(this.valueExpression);Je=rt.createFunction(et),this._cache.compiledFunc=Je}const tt=rt.executeFunction(Je,rt.createExecContext(Pe,rt.getViewInfo({viewingMode:Me,scale:Ne,spatialReference:Xe})));return this._valueInfoMap[tt+""]}_getUnqiueValueInfoForFields(Pe){const Le=this.field,Me=Pe.attributes;let Ne;if("function"!=typeof Le&&this.field2){const Xe=this.field2,Ye=this.field3,Je=[];Le&&Je.push(Me[Le]),Xe&&Je.push(Me[Xe]),Ye&&Je.push(Me[Ye]),Ne=Je.join(this.fieldDelimiter||"")}else"function"==typeof Le?Ne=Le(Pe):Le&&(Ne=Me[Le]);return this._valueInfoMap[Ne+""]}static fromPortalStyle(Pe,Le){const Me=new Ke(Le&&Le.properties);Me._set("styleOrigin",Object.freeze({styleName:Pe})),Me._set("portal",Le&&Le.portal||Y.Z.getDefault());const Ne=Me.populateFromStyle();return Ne.catch(Xe=>{Ce.error(`#fromPortalStyle('${Pe}'[, ...])`,"Failed to create unique value renderer from style name",Xe)}),Ne}static fromStyleUrl(Pe,Le){const Me=new Ke(Le&&Le.properties);Me._set("styleOrigin",Object.freeze({styleUrl:Pe}));const Ne=Me.populateFromStyle();return Ne.catch(Xe=>{Ce.error(`#fromStyleUrl('${Pe}'[, ...])`,"Failed to create unique value renderer from style URL",Xe)}),Ne}};(0,R._)([(0,X.Cb)({readOnly:!0})],Ie.prototype,"_cache",null),(0,R._)([(0,ae.J)({uniqueValue:"unique-value"})],Ie.prototype,"type",void 0),(0,R._)([(0,X.Cb)(J.KK)],Ie.prototype,"backgroundFillSymbol",void 0),(0,R._)([(0,X.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],Ie.prototype,"field",null),(0,R._)([(0,te.p)("field")],Ie.prototype,"castField",null),(0,R._)([(0,de.c)("field")],Ie.prototype,"writeField",null),(0,R._)([(0,X.Cb)({type:String,value:null,json:{write:!0}})],Ie.prototype,"field2",null),(0,R._)([(0,X.Cb)({type:String,value:null,json:{write:!0}})],Ie.prototype,"field3",null),(0,R._)([(0,X.Cb)({type:String,value:null,json:{write:!0}})],Ie.prototype,"valueExpression",null),(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],Ie.prototype,"valueExpressionTitle",void 0),(0,R._)([(0,X.Cb)({type:ce.I,json:{write:!0}})],Ie.prototype,"legendOptions",void 0),(0,R._)([(0,X.Cb)({type:String,json:{write:!0}})],Ie.prototype,"defaultLabel",void 0),(0,R._)([(0,X.Cb)((0,B.RH)({...J.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],Ie.prototype,"defaultSymbol",null),(0,R._)([(0,X.Cb)({type:String,value:null,json:{write:!0}})],Ie.prototype,"fieldDelimiter",null),(0,R._)([(0,X.Cb)({type:Y.Z,readOnly:!0})],Ie.prototype,"portal",void 0),(0,R._)([(0,oe.r)("portal",["styleName"])],Ie.prototype,"readPortal",null),(0,R._)([(0,X.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],Ie.prototype,"styleOrigin",void 0),(0,R._)([(0,oe.r)("styleOrigin",["styleName","styleUrl"])],Ie.prototype,"readStyleOrigin",null),(0,R._)([(0,de.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],Ie.prototype,"writeStyleOrigin",null),(0,R._)([(0,X.Cb)({type:[be],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(Pe,Le,Me)=>(Le.uniqueValueGroups||function He(Pe){const{field1:Le,field2:Me,field3:Ne,fieldDelimiter:Xe,uniqueValueInfos:Ye,valueExpression:Je}=Pe,rt=!(!Le||!Me);return[{classes:(Ye??[]).map(tt=>{const{symbol:et,label:qe,value:ot,description:ut}=tt,[_t,Ct,vt]=rt?ot?.toString()?.split(Xe||"")||[]:[ot],Lt=[];return(Le||Je)&&Lt.push(_t),Me&&Lt.push(Ct),Ne&&Lt.push(vt),{symbol:et,label:qe,values:[Lt],description:ut}})}]}(Le)).map(Ne=>be.fromJSON(Ne,Me))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],Ie.prototype,"uniqueValueGroups",null),(0,R._)([(0,X.Cb)({type:[Se.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],Ie.prototype,"uniqueValueInfos",null),Ie=Ke=(0,R._)([(0,le.j)(We)],Ie);const Ge=Ie},2432:(nt,Ae,v)=>{"use strict";v.d(Ae,{W:()=>ze});var le,D=v(15861),R=v(17626),G=v(62208),Z=v(77712),$=(v(85931),v(90912)),W=v(68653),B=v(76898),H=v(99433),X=v(36630),te=v(32028),ae=v(17977),oe=v(8029);let de=le=class extends ae.Z{constructor(We){super(We),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(We){We&&Array.isArray(We)&&(We=We.filter(Ce=>!!Ce)).sort((Ce,Be)=>Ce.value-Be.value),this._set("stops",We)}clone(){return new le({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(We=>We.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(We=>We.value||0)}};(0,R._)([(0,Z.Cb)({readOnly:!0})],de.prototype,"cache",null),(0,R._)([(0,Z.Cb)({type:["color"],json:{type:["colorInfo"]}})],de.prototype,"type",void 0),(0,R._)([(0,Z.Cb)({type:String,json:{write:!0}})],de.prototype,"normalizationField",void 0),(0,R._)([(0,Z.Cb)({type:[oe.Z],json:{write:!0}})],de.prototype,"stops",null),de=le=(0,R._)([(0,B.j)("esri.renderers.visualVariables.ColorVariable")],de);const se=de;var Y,re=v(86810),j=v(92236);let ee=Y=class extends re.wq{constructor(We){super(We),this.label=null,this.opacity=null,this.value=null}readOpacity(We,Ce){return(0,j.b)(Ce.transparency)}writeOpacity(We,Ce,Be){Ce[Be]=(0,j.a)(We)}clone(){return new Y({label:this.label,opacity:this.opacity,value:this.value})}};(0,R._)([(0,Z.Cb)({type:String,json:{write:!0}})],ee.prototype,"label",void 0),(0,R._)([(0,Z.Cb)({type:Number,json:{type:$.z8,write:{target:"transparency"}}})],ee.prototype,"opacity",void 0),(0,R._)([(0,W.r)("opacity",["transparency"])],ee.prototype,"readOpacity",null),(0,R._)([(0,H.c)("opacity")],ee.prototype,"writeOpacity",null),(0,R._)([(0,Z.Cb)({type:Number,json:{write:!0}})],ee.prototype,"value",void 0),ee=Y=(0,R._)([(0,B.j)("esri.renderers.visualVariables.support.OpacityStop")],ee);const ie=ee;var J;let ce=J=class extends ae.Z{constructor(We){super(We),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(We){We&&Array.isArray(We)&&(We=We.filter(Ce=>!!Ce)).sort((Ce,Be)=>Ce.value-Be.value),this._set("stops",We)}clone(){return new J({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(We=>We.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(We=>We.value||0)}};(0,R._)([(0,Z.Cb)({readOnly:!0})],ce.prototype,"cache",null),(0,R._)([(0,Z.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],ce.prototype,"type",void 0),(0,R._)([(0,Z.Cb)({type:String,json:{write:!0}})],ce.prototype,"normalizationField",void 0),(0,R._)([(0,Z.Cb)({type:[ie],json:{write:!0}})],ce.prototype,"stops",null),ce=J=(0,R._)([(0,B.j)("esri.renderers.visualVariables.OpacityVariable")],ce);const ue=ce;var pe=v(13398),he=v(88115),me=v(14517),ge=v(2076),_e=v(63290),Ee=v(14889);const De={color:se,size:he.Z,opacity:ue,rotation:pe.Z},be=new ge.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),Se=/^\[([^\]]+)\]$/i;let ye=class extends me.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(We){if(this._resetVariables(),(We=We&&We.filter(Ce=>!!Ce))&&We.length){for(const Ce of We)switch(Ce.type){case"color":this.colorVariables.push(Ce);break;case"opacity":this.opacityVariables.push(Ce);break;case"rotation":this.rotationVariables.push(Ce);break;case"size":this.sizeVariables.push(Ce)}this.sizeVariables.length&&this.sizeVariables.some(Ce=>!!Ce.target)&&We.sort((Ce,Be)=>{let Fe=null;return Fe=Ce.target===Be.target?0:Ce.target?1:-1,Fe});for(let Ce=0;Ce{const Ge=be.read(Ie.type),Pe=De[Ge];Pe||(_e.Z.getLogger(this.declaredClass).warn(`Unknown variable type: ${Ge}`),Be&&Be.messages&&Be.messages.push(new Ee.Z("visual-variable:unsupported",`visualVariable of type '${Ge}' is not supported`,{definition:Ie,context:Be})));const Le=new Pe;return Le.read(Ie,Be),Le})}writeVariables(We,Ce){const Be=[];for(const Fe of We){const je=Fe.toJSON(Ce);je&&Be.push(je)}return Be}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,R._)([(0,Z.Cb)()],ye.prototype,"visualVariables",null),ye=(0,R._)([(0,B.j)("esri.renderers.visualVariables.VisualVariableFactory")],ye);const ve=ye,xe={base:ae.Z,key:"type",typeMap:{opacity:ue,color:se,rotation:pe.Z,size:he.Z}},ze=We=>{let Ce=class extends We{constructor(){super(...arguments),this._vvFactory=new ve}set visualVariables(Be){this._vvFactory.visualVariables=Be,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(Be,Fe,je){return this._vvFactory.readVariables(Be,Fe,je)}writeVisualVariables(Be,Fe,je,Re){Fe[je]=this._vvFactory.writeVariables(Be,Re)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const Be of this.visualVariables)if(Be.arcadeRequired)return!0;return!1}hasVisualVariables(Be,Fe){return Be?this.getVisualVariablesForType(Be,Fe).length>0:this.getVisualVariablesForType("size",Fe).length>0||this.getVisualVariablesForType("color",Fe).length>0||this.getVisualVariablesForType("opacity",Fe).length>0||this.getVisualVariablesForType("rotation",Fe).length>0}getVisualVariablesForType(Be,Fe){const je=this.visualVariables;return je?je.filter(Re=>Re.type===Be&&("string"==typeof Fe?Re.target===Fe:!1!==Fe||!Re.target)):[]}collectVVRequiredFields(Be,Fe){var je=this;return(0,D.Z)(function*(){let Re=[];je.visualVariables&&(Re=Re.concat(je.visualVariables));for(const He of Re)He&&(He.field&&(0,X.AB)(Be,Fe,He.field),He.normalizationField&&(0,X.AB)(Be,Fe,He.normalizationField),He.valueExpression&&(Ke(He.valueExpression,Be,Fe)||(yield(0,X.io)(Be,Fe,He.valueExpression))))})()}};return(0,R._)([(0,Z.Cb)({types:[xe],value:null,json:{write:!0}})],Ce.prototype,"visualVariables",null),(0,R._)([(0,W.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],Ce.prototype,"readVisualVariables",null),(0,R._)([(0,H.c)("visualVariables")],Ce.prototype,"writeVisualVariables",null),Ce=(0,R._)([(0,B.j)("esri.renderers.mixins.VisualVariablesMixin")],Ce),Ce};function Ke(We,Ce,Be){const Fe=(0,te.v)(We);return!!(0,G.pC)(Fe)&&((0,X.AB)(Ce,Be,Fe),!0)}},41832:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var X,D=v(17626),R=v(91558),G=v(86810),Z=v(63290),Q=v(77712),W=(v(85931),v(66656)),B=v(76898),H=v(90912);let te=X=class extends G.wq{constructor(oe){super(oe),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(oe){return null==oe?oe:"function"==typeof oe?(Z.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,H.Zs)(oe)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new X({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,D._)([(0,Q.Cb)({type:R.Z,json:{type:[Number],write:!0}})],te.prototype,"color",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"field",void 0),(0,D._)([(0,W.p)("field")],te.prototype,"castField",null),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"label",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"valueExpression",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"valueExpressionTitle",void 0),te=X=(0,D._)([(0,B.j)("esri.renderers.support.AttributeColorInfo")],te);const ae=te},15312:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ye});var X,D=v(17626),R=v(2076),G=v(86810),Z=v(58817),Q=v(77712),$=v(90912),W=v(68653),B=v(76898);v(85931);let te=X=class extends G.wq{constructor(ve){super(ve),this.minValue=0,this.maxValue=0}clone(){return new X({minValue:this.minValue,maxValue:this.maxValue})}};var ae;(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],te.prototype,"minValue",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],te.prototype,"maxValue",void 0),te=X=(0,D._)([(0,B.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],te);let oe=ae=class extends G.wq{constructor(ve){super(ve),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new ae({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,Z.d9)(this.classBreakInfos)})}};(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],oe.prototype,"field",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],oe.prototype,"normalizationField",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],oe.prototype,"label",void 0),(0,D._)([(0,Q.Cb)({type:[te],json:{write:!0}})],oe.prototype,"classBreakInfos",void 0),oe=ae=(0,D._)([(0,B.j)("esri.renderers.support.AuthoringInfoFieldInfo")],oe);var de,le=v(66656);const se=new R.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),re=new R.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),j={key:ve=>"number"==typeof ve?"number":"string",typeMap:{number:Number,string:String},base:null},Y=["high-to-low","above-and-below","centered-on","extremes"],ee=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],ie=["seconds","minutes","hours","days","months","years"];let J=de=class extends G.wq{constructor(ve){super(ve),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(ve){return"string"==typeof ve||"number"==typeof ve?ve:null}castStartTime(ve){return"string"==typeof ve||"number"==typeof ve?ve:null}get style(){return"color"===this.type?this._get("style"):null}set style(ve){this._set("style",ve)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(ve){this._set("theme",ve)}clone(){return new de({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,D._)([(0,Q.Cb)({types:j,json:{write:!0}})],J.prototype,"endTime",void 0),(0,D._)([(0,le.p)("endTime")],J.prototype,"castEndTime",null),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],J.prototype,"field",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],J.prototype,"maxSliderValue",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],J.prototype,"minSliderValue",void 0),(0,D._)([(0,Q.Cb)({types:j,json:{write:!0}})],J.prototype,"startTime",void 0),(0,D._)([(0,le.p)("startTime")],J.prototype,"castStartTime",null),(0,D._)([(0,Q.Cb)({type:se.apiValues,value:null,json:{type:se.jsonValues,read:se.read,write:se.write}})],J.prototype,"style",null),(0,D._)([(0,Q.Cb)({type:ee,value:null,json:{type:ee,origins:{"web-scene":{type:Y,write:{writer:(ve,xe)=>{Y.includes(ve)&&(xe.theme=ve)}}}},write:!0}})],J.prototype,"theme",null),(0,D._)([(0,Q.Cb)({type:re.apiValues,json:{type:re.jsonValues,read:re.read,write:re.write}})],J.prototype,"type",void 0),(0,D._)([(0,Q.Cb)({type:ie,json:{type:ie,write:!0}})],J.prototype,"units",void 0),J=de=(0,D._)([(0,B.j)("esri.renderers.support.AuthoringInfoVisualVariable")],J);const ce=J;var pe,ue=v(79023);const he=new R.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),me=new R.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),ge=new R.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),_e=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let Se=pe=class extends G.wq{constructor(ve){super(ve),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const ve=this._get("classificationMethod"),xe=this.type;return xe&&"relationship"!==xe?"class-breaks-size"===xe||"class-breaks-color"===xe?ve||"manual":null:ve}set classificationMethod(ve){this._set("classificationMethod",ve)}readColorRamp(ve){return ve?(0,ue.i)(ve):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(ve){this._set("fields",ve)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(ve){this._set("field1",ve)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(ve){this._set("field2",ve)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(ve){this._set("flowTheme",ve)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(ve){this._set("focus",ve)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(ve){this._set("numClasses",ve)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(ve){this._set("statistics",ve)}get standardDeviationInterval(){const ve=this.type;return ve&&"relationship"!==ve&&"class-breaks-size"!==ve&&"class-breaks-color"!==ve||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(ve){this._set("standardDeviationInterval",ve)}get type(){return this._get("type")}set type(ve){let xe=ve;"classed-size"===ve?xe="class-breaks-size":"classed-color"===ve&&(xe="class-breaks-color"),this._set("type",xe)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(ve){this._set("univariateSymbolStyle",ve)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(ve){this._set("univariateTheme",ve)}clone(){return new pe({classificationMethod:this.classificationMethod,colorRamp:(0,Z.d9)(this.colorRamp),fadeRatio:(0,Z.d9)(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:(0,Z.d9)(this.field1),field2:(0,Z.d9)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(ve=>ve.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,D._)([(0,Q.Cb)({type:he.apiValues,value:null,json:{type:he.jsonValues,read:he.read,write:he.write,origins:{"web-document":{default:"manual",type:he.jsonValues,read:he.read,write:he.write}}}})],Se.prototype,"classificationMethod",null),(0,D._)([(0,Q.Cb)({types:ue.V,json:{write:!0}})],Se.prototype,"colorRamp",void 0),(0,D._)([(0,W.r)("colorRamp")],Se.prototype,"readColorRamp",null),(0,D._)([(0,Q.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Se.prototype,"fadeRatio",void 0),(0,D._)([(0,Q.Cb)({type:[String],value:null,json:{write:!0}})],Se.prototype,"fields",null),(0,D._)([(0,Q.Cb)({type:oe,value:null,json:{write:!0}})],Se.prototype,"field1",null),(0,D._)([(0,Q.Cb)({type:oe,value:null,json:{write:!0}})],Se.prototype,"field2",null),(0,D._)([(0,Q.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"flowTheme",null),(0,D._)([(0,Q.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],Se.prototype,"focus",null),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],Se.prototype,"isAutoGenerated",void 0),(0,D._)([(0,Q.Cb)({type:Number,value:null,json:{type:$.z8,write:!0}})],Se.prototype,"numClasses",null),(0,D._)([(0,Q.Cb)({type:_e,json:{type:_e,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],Se.prototype,"lengthUnit",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Se.prototype,"maxSliderValue",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Se.prototype,"minSliderValue",void 0),(0,D._)([(0,Q.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Se.prototype,"statistics",null),(0,D._)([(0,Q.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],Se.prototype,"standardDeviationInterval",null),(0,D._)([(0,Q.Cb)({type:me.apiValues,value:null,json:{type:me.jsonValues,read:me.read,write:me.write,origins:{"web-scene":{type:ge.jsonValues,write:{writer:ge.write,overridePolicy:ve=>({enabled:"flow"!==ve})}}}}})],Se.prototype,"type",null),(0,D._)([(0,Q.Cb)({type:[ce],json:{write:!0}})],Se.prototype,"visualVariables",void 0),(0,D._)([(0,Q.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"univariateSymbolStyle",null),(0,D._)([(0,Q.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"univariateTheme",null),Se=pe=(0,D._)([(0,B.j)("esri.renderers.support.AuthoringInfo")],Se);const ye=Se},74400:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(76457);let H=B=class extends R.wq{constructor(te){super(te),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new B({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const te=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${te}`}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],H.prototype,"description",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],H.prototype,"label",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],H.prototype,"minValue",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],H.prototype,"maxValue",void 0),(0,D._)([(0,G.Cb)(W.Gn)],H.prototype,"symbol",void 0),H=B=(0,D._)([(0,$.j)("esri.renderers.support.ClassBreakInfo")],H);const X=H},29996:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{DictionaryLoader:()=>le});var D=v(15861),R=v(91558),G=v(84792),Z=v(26584),Q=v(63290),$=v(93961),W=v(62208),B=v(10699),H=v(77275),X=v(46679),te=v(94398);const ae="esri.renderers.support.DictionaryLoader",oe={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class le{constructor(j,Y,ee){this.config=null,this.fieldMap=null,this.url=null,this._ongoingRequests=new Map,this._symbolCache=new $.Z(100),this._dictionaryPromise=null,this.url=j,this.config=Y,this.fieldMap=ee}getSymbolFields(){return this._symbolFields}getSymbolAsync(j,Y){var ee=this;return(0,D.Z)(function*(){let ie;ee._dictionaryPromise||(ee._dictionaryPromise=ee.fetchResources(Y));try{ie=yield ee._dictionaryPromise}catch(De){if((0,B.D_)(De))return ee._dictionaryPromise=null,null}const J={};if(ee.fieldMap)for(const De of ee._symbolFields){const be=ee.fieldMap[De];J[De]=be&&null!=j.attributes[be]?""+j.attributes[be]:""}const ce=ie?.(J,Y);if(!ce||"string"!=typeof ce)return null;const ue=(0,H.hP)(ce).toString(),pe=ee._symbolCache.get(ue);if(pe)return pe.catch(()=>{ee._symbolCache.pop(ue)}),pe;const he=ce.split(";"),me=[],ge=[];for(const De of he)if(De)if(De.includes("po:")){const be=De.substr(3).split("|");if(3===be.length){const Se=be[0],ye=be[1];let ve=be[2];if("DashTemplate"===ye)ve=ve.split(" ").map(xe=>Number(xe));else if("Color"===ye){const xe=new R.Z(ve).toRgba();ve=[xe[0],xe[1],xe[2],255*xe[3]]}else ve=Number(ve);ge.push({primitiveName:Se,propertyName:ye,value:ve})}}else if(De.includes("|")){for(const be of De.split("|"))if(ee._itemNames.has(be)){me.push(be);break}}else ee._itemNames.has(De)&&me.push(De);const _e=!(0,W.pC)(j.geometry)||!j.geometry.hasZ&&"point"===j.geometry.type,Ee=ee._cimPartsToCIMSymbol(me,ge,_e,Y);return ee._symbolCache.put(ue,Ee,1),Ee})()}fetchResources(j){var Y=this;return(0,D.Z)(function*(){if(Y._dictionaryPromise)return Y._dictionaryPromise;if(!Y.url)return void Q.Z.getLogger(ae).error("no valid URL!");const ee=(0,G.default)(Y.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},signal:(0,W.pC)(j)?j.signal:null}),[{data:ie}]=yield Promise.all([ee,(0,X.LC)()]);if(!ie)throw Y._dictionaryPromise=null,new Z.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const J=ie.expression,ce=ie.authoringInfo;Y._refSymbolUrlTemplate=Y.url+"/"+ie.cimRefTemplateUrl,Y._itemNames=new Set(ie.itemsNames),Y._symbolFields=ce.symbol;const ue={};if(Y.config){const me=Y.config;for(const ge in me)ue[ge]=me[ge]}if(ce.configuration)for(const me of ce.configuration)ue.hasOwnProperty(me.name)||(ue[me.name]=me.value);const pe=[];if((0,W.pC)(j)&&j.fields&&Y.fieldMap)for(const me of Y._symbolFields){const ge=Y.fieldMap[me],_e=j.fields.filter(Ee=>Ee.name===ge);_e.length>0&&pe.push({..._e[0],name:me})}const he=(0,X.pp)(J,(0,W.pC)(j)?j.spatialReference:null,pe,ue).then(me=>{const ge={scale:0};return(_e,Ee)=>{if((0,W.Wi)(me))return null;const De=me.repurposeFeature({geometry:null,attributes:_e});return ge.scale=(0,W.pC)(Ee)?Ee.scale:void 0,me.evaluate({$feature:De,$view:ge})}}).catch(me=>(Q.Z.getLogger(ae).error("Creating dictinoary expression failed:",me),null));return Y._dictionaryPromise=he,he})()}_cimPartsToCIMSymbol(j,Y,ee,ie){var J=this;return(0,D.Z)(function*(){const ce=new Array(j.length);for(let he=0;hece.data);const ie=ee._refSymbolUrlTemplate.replace(/\{itemName\}/gi,j),J=(0,G.default)(ie,{responseType:"json",query:{f:"json"},...Y});ee._ongoingRequests.set(j,J);try{return(yield J).data}catch(ce){throw ee._ongoingRequests.delete(j),ce}})()}_combineSymbolParts(j,Y,ee){if(!j||0===j.length)return null;const ie={...j[0]};if(j.length>1){ie.symbolLayers=[];for(const J of j)ie.symbolLayers.unshift(...J.symbolLayers)}return ee&&(ie.callout=oe),{type:"CIMSymbolReference",symbol:ie,primitiveOverrides:Y}}}function de(re,j){if(!re)return;const Y=re.symbolLayers;if(!Y)return;let ee=Y.length;for(;ee--;){const ie=Y[ee];ie&&!1!==ie.enable&&"CIMVectorMarker"===ie.type&&se(ie,j)}}function se(re,j){const Y=re.markerGraphics;if(Y)for(const ee of Y){if(!ee)continue;const ie=ee.symbol;if(ie)switch(ie.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":de(ie,j);break;case"CIMTextSymbol":ie.fieldMap=j}}}},52372:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(91558),G=v(86810),Z=v(77712),$=(v(85931),v(90912)),W=v(76898);let H=B=class extends G.wq{constructor(te){super(te),this.color=null,this.ratio=null}clone(){return new B({color:this.color,ratio:this.ratio})}};(0,D._)([(0,Z.Cb)({type:R.Z,json:{type:[$.z8],default:null,write:!0}})],H.prototype,"color",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0}})],H.prototype,"ratio",void 0),H=B=(0,D._)([(0,W.j)("esri.renderers.support.HeatmapColorStop")],H);const X=H},10914:(nt,Ae,v)=>{"use strict";v.d(Ae,{I:()=>B});var W,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.wq{constructor(){super(...arguments),this.title=null}clone(){return new W({title:this.title})}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],B.prototype,"title",void 0),B=W=(0,D._)([(0,$.j)("esri.renderers.support.LegendOptions")],B)},87266:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(76457);let H=B=class extends R.wq{constructor(te){super(te),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new B({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const te=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${te}`}};(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],H.prototype,"description",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],H.prototype,"label",void 0),(0,D._)([(0,G.Cb)(W.Gn)],H.prototype,"symbol",void 0),(0,D._)([(0,G.Cb)(W.GY)],H.prototype,"value",void 0),H=B=(0,D._)([(0,$.j)("esri.renderers.support.UniqueValueInfo")],H);const X=H},76457:(nt,Ae,v)=>{"use strict";v.d(Ae,{GY:()=>B,Gn:()=>$,KK:()=>W});var D=v(20383),R=v(383),G=v(9461),Z=v(10012),Q=v(89673);const $={types:D.QT,json:{write:{writer:G.cW},origins:{"web-scene":{types:D.f_,write:{writer:G.cW},read:{reader:(0,R.d)({types:D.f_})}}}}},W={types:{base:Z.Z,key:"type",typeMap:{"simple-fill":D.LB.typeMap["simple-fill"],"picture-fill":D.LB.typeMap["picture-fill"],"polygon-3d":D.LB.typeMap["polygon-3d"]}},json:{write:{writer:G.cW},origins:{"web-scene":{type:Q.Z,write:{writer:G.cW}}}}},B={cast:H=>null==H||"string"==typeof H||"number"==typeof H?H:`${H}`,json:{type:String,write:{writer:(H,X)=>{X.value=H?.toString()}}}}},36859:(nt,Ae,v)=>{"use strict";v.d(Ae,{AJ:()=>W,If:()=>oe,QM:()=>X,k0:()=>$,nu:()=>Q,uI:()=>H,wx:()=>le});var D=v(21286),R=v(23841),G=v(993),Z=v(4794);const Q=2.4;function $(se){return(0,R.Wz)(se*Q)}function W(se){return(0,R.F2)(se)/Q}function B(se,re,j,Y){let{color:ee,ratio:ie}=re,{color:J,ratio:ce}=j;ce===ie&&(1===ce?ie-=1e-6:ce+=1e-6);const ue=(0,D.uZ)((Y-ie)/(ce-ie),0,1);(0,G.l)(se,ee.toArray(),J.toArray(),ue)}function H(se){const j=new Uint8ClampedArray(2048);if((se=se.filter(({ratio:ce})=>ce>=0&&ce<=1).sort((ce,ue)=>ce.ratio-ue.ratio).map(({color:ce,ratio:ue})=>({color:ce,ratio:Math.max(ue,.001)}))).length<1)return j;let Y=se[0],ee=se[0],ie=1;const J=(0,Z.c)();for(let ce=0;ce<512;ce++){const ue=(ce+.5)/512;for(;ue>ee.ratio&&ie-1*+j.readAttribute(se):j=>+j.readAttribute(se)+re:j=>1}(J,ie),ge=new Set;for(const _e of se){const Ee=_e.getCursor();for(;Ee.next();){const De=Ee.getObjectId();if(ge.has(De))continue;ge.add(De);const be=Ee.readLegacyPointGeometry(),Se=128;if(be.x<-Se||be.x>=j+Se||be.y<-Se||be.y>Y+Se)continue;const ye=+me(Ee),ve=Math.max(0,Math.round(be.x)-ce),xe=Math.max(0,Math.round(be.y)-ce),ze=Math.min(Y,Math.round(be.y)+ce),Ke=Math.min(j,Math.round(be.x)+ce);for(let We=xe;Wehe&&(he=pe)}}}return{matrix:ue.buffer,max:he}}function oe(se,re,j){const Y=Math.sqrt(se**2+re**2)/j;return Y>1?0:3/(Math.PI*j**2)*(1-Y**2)**2}function le(se,re){return"function"==typeof se?se:se?"string"==typeof re?j=>-1*+j[se]:j=>+j[se]+re:()=>1}},33474:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>$,i:()=>Z});var D=v(14889),R=v(383),G=v(32088);function Z(W,B){return $(W,null,B)}const Q=(0,R.d)({types:G.A});function $(W,B,H){return W?W&&(W.styleName||W.styleUrl)&&"uniqueValue"!==W.type?(H&&H.messages&&H.messages.push(new D.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+W.type+"'",{definition:W,context:H})),null):Q(W,B,H):null}},21254:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>G});var D=v(16730),R=v(94425);const G={inches:(0,D.En)(1,"meters","inches"),feet:(0,D.En)(1,"meters","feet"),"us-feet":(0,D.En)(1,"meters","us-feet"),yards:(0,D.En)(1,"meters","yards"),miles:(0,D.En)(1,"meters","miles"),"nautical-miles":(0,D.En)(1,"meters","nautical-miles"),millimeters:(0,D.En)(1,"meters","millimeters"),centimeters:(0,D.En)(1,"meters","centimeters"),decimeters:(0,D.En)(1,"meters","decimeters"),meters:(0,D.En)(1,"meters","meters"),kilometers:(0,D.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,D.ty)(1,"meters",R.sv.radius)}},32028:(nt,Ae,v)=>{"use strict";function D(G){return G.match(R)?.[1]?.replace(/\\'/g,"'")??null}v.d(Ae,{v:()=>D});const R=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},50134:(nt,Ae,v)=>{"use strict";v.d(Ae,{e:()=>Q,s:()=>$}),v(8314);var R=v(26584),G=v(62208),Z=v(70137);function Q(te){return(0,G.Wi)(te)||"simple"===te.type||"unique-value"===te.type||"class-breaks"===te.type||"dictionary"===te.type||"heatmap"===te.type}function $(te,ae){if((0,G.Wi)(te))return null;if(!Q(te))return new R.Z("renderer-conversion-3d:unsupported-renderer",`Unsupported renderer of type '${te.type||te.declaredClass}'`,{renderer:te});switch(te.type){case"simple":return function B(te){return W(te,(0,Z.q)(te.symbol).error)}(te);case"unique-value":return function H(te,ae){const oe={...Z.K,...ae},le=te.uniqueValueInfos?.map(se=>(0,Z.q)(se.symbol,oe).error).filter(G.pC),de=(0,Z.q)(te.defaultSymbol,oe);return de.error&&le?.unshift(de.error),W(te,le)}(te,ae);case"class-breaks":return function X(te){const ae=te.classBreakInfos.map(le=>(0,Z.q)(le.symbol).error).filter(G.pC),oe=(0,Z.q)(te.defaultSymbol);return oe.error&&ae.unshift(oe.error),W(te,ae)}(te);case"dictionary":case"heatmap":return null}return null}function W(te,ae){if(!ae)return null;let oe;if(oe=Array.isArray(ae)?ae:[ae],oe.length>0){const le=oe.map(se=>se.details.symbol.type||se.details.symbol.declaredClass).filter(se=>!!se);le.sort();const de=[];return le.forEach((se,re)=>{0!==re&&se===le[re-1]||de.push(se)}),new R.Z("renderer-conversion-3d:unsupported-symbols",`Renderer contains symbols (${de.join(", ")}) which are not supported in 3D`,{renderer:te,symbolErrors:oe})}return null}},39256:(nt,Ae,v)=>{"use strict";v.d(Ae,{Kb:()=>W,o2:()=>oe,sV:()=>ae,xn:()=>X});var D=v(15861),R=v(91558),G=v(62208),Z=v(81808);function Q(le,de){if(!le||le.symbol)return null;const se=de&&de.renderer;return le&&(0,G.pC)(se)&&se.getObservationRenderer?se.getObservationRenderer(le):se}function W(le,de){const se=Q(le,de),re=function $(le,de){if((0,G.pC)(le.symbol))return le.symbol;const se=Q(le,de);return(0,G.pC)(se)&&"dot-density"!==se.type?se.getSymbol(le,de):null}(le,de);if((0,G.Wi)(re))return null;const j={renderer:se,symbol:re};if((0,G.Wi)(se)||!("visualVariables"in se)||!se.visualVariables)return j;const Y=(0,Z.getVisualVariableValues)(se,le,de)??[],ee=["proportional","proportional","proportional"];for(const{variable:ie,value:J}of Y)switch(ie.type){case"color":j.color=J.toRgba();break;case"size":if("outline"===ie.target)j.outlineSize=J;else{const ue=ie.useSymbolValue?"symbol-value":J;switch(ie.axis){case"width":ee[0]=ue;break;case"depth":ee[1]=ue;break;case"height":ee[2]=ue;break;case"width-and-depth":ee[0]=ee[1]=ue;break;default:ee[0]=ee[1]=ee[2]=ue}}break;case"opacity":j.opacity=J;break;case"rotation":switch(ie.axis){case"tilt":j.tilt=J;break;case"roll":j.roll=J;break;default:j.heading=J}}return"proportional"===ee[0]&&"proportional"===ee[1]&&"proportional"===ee[2]||(j.size=ee),j}function B(le,de){return H.apply(this,arguments)}function H(){return(H=(0,D.Z)(function*(le,de){if((0,G.pC)(le.symbol))return le.symbol;const se=Q(le,de);return(0,G.pC)(se)?se.getSymbolAsync(le,de):null})).apply(this,arguments)}function X(le,de){return te.apply(this,arguments)}function te(){return(te=(0,D.Z)(function*(le,de){const se=Q(le,de),re=yield B(le,de);if(!re)return null;const j={renderer:se,symbol:re};if(!se||!("visualVariables"in se)||!se.visualVariables)return j;const Y=(0,Z.getVisualVariableValues)(se,le,de)??[],ee=["proportional","proportional","proportional"];for(const{variable:ie,value:J}of Y)if("color"===ie.type)j.color=R.Z.toUnitRGBA(J);else if("size"===ie.type)if("outline"===ie.target)j.outlineSize=J;else{const ce=ie.axis,ue=ie.useSymbolValue?"symbol-value":J;"width"===ce?ee[0]=ue:"depth"===ce?ee[1]=ue:"height"===ce?ee[2]=ue:ee[0]=ee[1]="width-and-depth"===ce?ue:ee[2]=ue}else"opacity"===ie.type?j.opacity=J:"rotation"===ie.type&&"tilt"===ie.axis?j.tilt=J:"rotation"===ie.type&&"roll"===ie.axis?j.roll=J:"rotation"===ie.type&&(j.heading=J);return(isFinite(ee[0])||isFinite(ee[1])||isFinite(ee[2]))&&(j.size=ee),j})).apply(this,arguments)}function ae(le,de=0){const se=le[de];return"number"==typeof se&&isFinite(se)?se:null}function oe(le){for(let de=0;de<3;de++){const se=le[de];if("number"==typeof se)return isFinite(se)?se:0}return 0}},39683:(nt,Ae,v)=>{"use strict";v.d(Ae,{y:()=>Q});var D=v(15861),R=v(59213),G=v(10699),Z=v(14889);function Q(W,B,H){return $.apply(this,arguments)}function $(){return($=(0,D.Z)(function*(W,B,H){const X=W&&W.getAtOrigin&&W.getAtOrigin("renderer",B.origin);if(X&&"unique-value"===X.type&&X.styleOrigin){const te=yield(0,R.q6)(X.populateFromStyle());if((0,G.k_)(H),!1===te.ok){const ae=te.error;B&&B.messages&&B.messages.push(new Z.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${ae.message}`,{error:ae,context:B})),W.clear("renderer",B?.origin)}}})).apply(this,arguments)}},32088:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>H,o:()=>X});var D=v(4832),R=v(49067),G=v(96794),Z=v(69747),Q=v(40425),$=v(69357),W=v(40342),B=v(73640);const H={key:"type",base:$.Z,typeMap:{heatmap:Z.Z,simple:W.Z,"unique-value":B.Z,"class-breaks":D.Z,"dot-density":G.Z,dictionary:R.Z,"pie-chart":Q.Z},errorContext:"renderer"},X={key:"type",base:$.Z,typeMap:{simple:W.Z,"unique-value":B.Z,"class-breaks":D.Z,heatmap:Z.Z},errorContext:"renderer"}},13398:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(26584),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(99433),B=v(17977);let X=H=class extends B.Z{constructor(ae){super(ae),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(ae,oe,le,de){de&&de.messages&&de.messages.push(new R.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:`visualVariables[${this.index}].valueExpressionTitle`,context:de}))}clone(){return new H({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,D._)([(0,G.Cb)({readOnly:!0})],X.prototype,"cache",null),(0,D._)([(0,G.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],X.prototype,"axis",void 0),(0,D._)([(0,G.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],X.prototype,"type",void 0),(0,D._)([(0,G.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],X.prototype,"rotationType",void 0),(0,D._)([(0,G.Cb)({type:String,json:{write:!0}})],X.prototype,"valueExpressionTitle",void 0),(0,D._)([(0,W.c)("web-scene","valueExpressionTitle")],X.prototype,"writeValueExpressionTitleWebScene",null),X=H=(0,D._)([(0,$.j)("esri.renderers.visualVariables.RotationVariable")],X);const te=X},88115:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ce});var re,D=v(17626),R=v(26584),G=v(2076),Z=v(63290),Q=v(23841),$=v(77712),B=(v(85931),v(66656)),H=v(68653),X=v(76898),te=v(99433),ae=v(17977),oe=v(64902),le=v(24729),de=v(86971),se=v(81808);const j=new G.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),Y=new G.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function ee(ue){if(null!=ue)return"string"==typeof ue||"number"==typeof ue?(0,Q.t_)(ue):"size"===ue.type?(0,de.iY)(ue)?ue:(delete(ue={...ue}).type,new J(ue)):void 0}function ie(ue,pe,he){if("object"!=typeof ue)return ue;const me=new J;return me.read(ue,he),me}let J=re=class extends ae.Z{constructor(ue){super(ue),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&se.viewScaleRE.test(this.valueExpression)}}set expression(ue){Z.Z.getLogger(this.declaredClass).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===ue?(this.valueExpression="$view.scale",this._set("expression",ue)):this._set("expression",null)}set index(ue){(0,de.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${ue}].maxSize`),(0,de.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${ue}].minSize`),this._set("index",ue)}get inputValueType(){return(0,de.PS)(this)}set maxDataValue(ue){ue&&this.stops&&(Z.Z.getLogger(this.declaredClass).warn("cannot set maxDataValue when stops is not null."),ue=null),this._set("maxDataValue",ue)}set maxSize(ue){ue&&this.stops&&(Z.Z.getLogger(this.declaredClass).warn("cannot set maxSize when stops is not null."),ue=null),this._set("maxSize",ue)}castMaxSize(ue){return ee(ue)}readMaxSize(ue,pe,he){return ie(ue,0,he)}set minDataValue(ue){ue&&this.stops&&(Z.Z.getLogger(this.declaredClass).warn("cannot set minDataValue when stops is not null."),ue=null),this._set("minDataValue",ue)}set minSize(ue){ue&&this.stops&&(Z.Z.getLogger(this.declaredClass).warn("cannot set minSize when stops is not null."),ue=null),this._set("minSize",ue)}castMinSize(ue){return ee(ue)}readMinSize(ue,pe,he){return ie(ue,0,he)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(ue){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?ue&&Array.isArray(ue)&&(ue=ue.filter(pe=>!!pe)).sort((pe,he)=>pe.value-he.value):ue&&(Z.Z.getLogger(this.declaredClass).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),ue=null),this._set("stops",ue)}get transformationType(){return(0,de.QW)(this,this.inputValueType)}readValueExpression(ue,pe){return ue||pe.expression&&"$view.scale"}writeValueExpressionWebScene(ue,pe,he,me){if("$view.scale"===ue){if(me&&me.messages){const ge=this.index;me.messages.push(new R.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:("string"==typeof ge?ge:`visualVariables[${ge}]`)+".valueExpression",context:me}))}}else pe[he]=ue}readValueUnit(ue){return ue?Y.read(ue):null}clone(){return new re({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,de.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,de.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(ue=>ue.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===de.hL.ClampedLinear){const{minSize:ue,maxSize:pe}=this;return this.minSize=pe,this.maxSize=ue,this}if(this.transformationType===de.hL.Stops){const ue=this.stops;if(!ue)return this;const pe=ue.map(me=>me.size).reverse(),he=ue.length;for(let me=0;meue.value||0)}};(0,D._)([(0,$.Cb)({readOnly:!0})],J.prototype,"cache",null),(0,D._)([(0,$.Cb)({type:j.apiValues,json:{type:j.jsonValues,origins:{"web-map":{read:!1}},read:j.read,write:j.write}})],J.prototype,"axis",void 0),(0,D._)([(0,$.Cb)({type:String,value:null,json:{read:!1}})],J.prototype,"expression",null),(0,D._)([(0,$.Cb)()],J.prototype,"index",null),(0,D._)([(0,$.Cb)({type:String,readOnly:!0})],J.prototype,"inputValueType",null),(0,D._)([(0,$.Cb)({type:le.Z,json:{write:!0}})],J.prototype,"legendOptions",void 0),(0,D._)([(0,$.Cb)({type:Number,value:null,json:{write:!0}})],J.prototype,"maxDataValue",null),(0,D._)([(0,$.Cb)({type:Number,value:null,json:{write:!0}})],J.prototype,"maxSize",null),(0,D._)([(0,B.p)("maxSize")],J.prototype,"castMaxSize",null),(0,D._)([(0,H.r)("maxSize")],J.prototype,"readMaxSize",null),(0,D._)([(0,$.Cb)({type:Number,value:null,json:{write:!0}})],J.prototype,"minDataValue",null),(0,D._)([(0,$.Cb)({type:Number,value:null,json:{write:!0}})],J.prototype,"minSize",null),(0,D._)([(0,B.p)("minSize")],J.prototype,"castMinSize",null),(0,D._)([(0,H.r)("minSize")],J.prototype,"readMinSize",null),(0,D._)([(0,$.Cb)({type:String,json:{write:!0}})],J.prototype,"normalizationField",void 0),(0,D._)([(0,$.Cb)({readOnly:!0})],J.prototype,"arcadeRequired",null),(0,D._)([(0,$.Cb)({type:String})],J.prototype,"scaleBy",void 0),(0,D._)([(0,$.Cb)({type:[oe.Z],value:null,json:{write:!0}})],J.prototype,"stops",null),(0,D._)([(0,$.Cb)({type:["outline"],json:{write:!0}})],J.prototype,"target",void 0),(0,D._)([(0,$.Cb)({type:String,readOnly:!0})],J.prototype,"transformationType",null),(0,D._)([(0,$.Cb)({type:["size"],json:{type:["sizeInfo"]}})],J.prototype,"type",void 0),(0,D._)([(0,$.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],J.prototype,"useSymbolValue",void 0),(0,D._)([(0,$.Cb)({type:String,json:{write:!0}})],J.prototype,"valueExpression",void 0),(0,D._)([(0,H.r)("valueExpression",["valueExpression","expression"])],J.prototype,"readValueExpression",null),(0,D._)([(0,te.c)("web-scene","valueExpression")],J.prototype,"writeValueExpressionWebScene",null),(0,D._)([(0,$.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],J.prototype,"valueRepresentation",void 0),(0,D._)([(0,$.Cb)({type:Y.apiValues,json:{write:Y.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],J.prototype,"valueUnit",void 0),(0,D._)([(0,H.r)("valueUnit")],J.prototype,"readValueUnit",null),J=re=(0,D._)([(0,X.j)("esri.renderers.visualVariables.SizeVariable")],J);const ce=J},17977:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var D=v(17626),R=v(2076),G=v(86810),Z=v(63290),Q=v(77712),W=(v(85931),v(66656)),B=v(76898),H=v(90912),X=v(11333);const te=new R.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let ae=class extends G.wq{constructor(le){super(le),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(le){return null==le?le:"function"==typeof le?(Z.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,H.Zs)(le)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,D._)([(0,Q.Cb)()],ae.prototype,"index",void 0),(0,D._)([(0,Q.Cb)({type:te.apiValues,readOnly:!0,json:{read:te.read,write:te.write}})],ae.prototype,"type",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],ae.prototype,"field",void 0),(0,D._)([(0,W.p)("field")],ae.prototype,"castField",null),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],ae.prototype,"valueExpression",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],ae.prototype,"valueExpressionTitle",void 0),(0,D._)([(0,Q.Cb)({readOnly:!0})],ae.prototype,"arcadeRequired",null),(0,D._)([(0,Q.Cb)({type:X.Z,json:{write:!0}})],ae.prototype,"legendOptions",void 0),ae=(0,D._)([(0,B.j)("esri.renderers.visualVariables.VisualVariable")],ae);const oe=ae},8029:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(91558),G=v(86810),Z=v(77712),$=(v(85931),v(90912)),W=v(76898),B=v(99433);let X=H=class extends G.wq{constructor(ae){super(ae),this.color=null,this.label=null,this.value=null}writeValue(ae,oe,le){oe[le]=ae??0}clone(){return new H({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,D._)([(0,Z.Cb)({type:R.Z,json:{type:[$.z8],write:!0}})],X.prototype,"color",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],X.prototype,"label",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],X.prototype,"value",void 0),(0,D._)([(0,B.c)("value")],X.prototype,"writeValue",null),X=H=(0,D._)([(0,W.j)("esri.renderers.visualVariables.support.ColorStop")],X);const te=X},64902:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(86810),G=v(23841),Z=v(77712),W=(v(85931),v(90912),v(76898));let H=B=class extends R.wq{constructor(te){super(te),this.label=null,this.size=null,this.value=null}clone(){return new B({label:this.label,size:this.size,value:this.value})}};(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],H.prototype,"label",void 0),(0,D._)([(0,Z.Cb)({type:Number,cast:G.t_,json:{write:!0}})],H.prototype,"size",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0}})],H.prototype,"value",void 0),H=B=(0,D._)([(0,W.j)("esri.renderers.visualVariables.support.SizeStop")],H);const X=H},24729:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(11333);let B=W=class extends $.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new W({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,D._)([(0,R.Cb)({type:[Number],json:{write:!0}})],B.prototype,"customValues",void 0),B=W=(0,D._)([(0,Q.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],B);const H=B},11333:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(10914);let B=W=class extends $.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new W({title:this.title,showLegend:this.showLegend})}};(0,D._)([(0,R.Cb)({type:Boolean,json:{write:!0}})],B.prototype,"showLegend",void 0),B=W=(0,D._)([(0,Q.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],B);const H=B},86971:(nt,Ae,v)=>{"use strict";var D,R,W;function G(W){return W&&"esri.renderers.visualVariables.SizeVariable"===W.declaredClass}function Z(W){return null!=W&&!isNaN(W)&&isFinite(W)}function Q(W){return W.valueExpression?D.Expression:W.field&&"string"==typeof W.field?D.Field:D.Unknown}function $(W,B){return(B||Q(W))===D.Unknown?R.Constant:W.stops?R.Stops:null!=W.minSize&&null!=W.maxSize&&null!=W.minDataValue&&null!=W.maxDataValue?R.ClampedLinear:"unknown"===(W.valueUnit||"unknown")?null!=W.minSize&&null!=W.minDataValue?W.minSize&&W.minDataValue?R.Proportional:R.Additive:R.Identity:R.RealWorldSize}v.d(Ae,{PS:()=>Q,QW:()=>$,RY:()=>D,hL:()=>R,iY:()=>G,qh:()=>Z}),(W=D||(D={})).Unknown="unknown",W.Expression="expression",W.Field="field",function(W){W.Unknown="unknown",W.Stops="stops",W.ClampedLinear="clamped-linear",W.Proportional="proportional",W.Additive="additive",W.Constant="constant",W.Identity="identity",W.RealWorldSize="real-world-size"}(R||(R={}))},81808:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{getAllSizes:()=>De,getColor:()=>ae,getOpacity:()=>oe,getRotationAngle:()=>le,getSize:()=>re,getSizeForValue:()=>me,getSizeFromNumberOrVariable:()=>j,getSizeRangeAtScale:()=>ge,getVisualVariableValues:()=>_e,viewScaleRE:()=>te});var D=v(91558),R=v(88879),G=v(94573),Z=v(63290),Q=v(62208),$=v(21254),W=v(86971);const B=Z.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),H=new R.Z,X=Math.PI,te=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function ae(be,Se,ye){const ve="visualVariables"in be&&be.visualVariables?be.visualVariables.find(Ie=>"color"===Ie.type):be;if(!ve)return;if("esri.renderers.visualVariables.ColorVariable"!==ve.declaredClass)return void B.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const xe="number"==typeof Se,ze=xe?null:Se,Ke=ze&&ze.attributes;let We=xe?Se:null;const Ce=ve.field,{ipData:Be,hasExpression:Fe}=ve.cache;let je=ve.cache.compiledFunc;if(!Ce&&!Fe){const Ie=ve.stops;return Ie&&Ie[0]&&Ie[0].color}if("number"!=typeof We)if(Fe){if((0,Q.Wi)(ye)||(0,Q.Wi)(ye.arcade))return void B.error("Use of arcade expressions requires an arcade context");const Ge=ye.arcade.arcadeUtils,Pe=Ge.getViewInfo({viewingMode:ye.viewingMode,scale:ye.scale,spatialReference:ye.spatialReference}),Le=Ge.createExecContext(ze,Pe);if(!je){const Me=Ge.createSyntaxTree(ve.valueExpression);je=Ge.createFunction(Me),ve.cache.compiledFunc=je}We=Ge.executeFunction(je,Le)}else Ke&&(We=Ke[Ce]);const Re=ve.normalizationField,He=null!=Ke&&null!=Re?parseFloat(Ke[Re]):void 0;if(null!=We&&(!Re||xe||!isNaN(He)&&0!==He)){isNaN(He)||xe||(We/=He);const Ie=Ee(We,Be);if(Ie){const Ge=Ie[0],Pe=Ie[1],Le=Ge===Pe?ve.stops[Ge].color:D.Z.blendColors(ve.stops[Ge].color,ve.stops[Pe].color,Ie[2],(0,Q.pC)(ye)?ye.color:void 0);return new D.Z(Le)}}}function oe(be,Se,ye){const ve="visualVariables"in be&&be.visualVariables?be.visualVariables.find(Ie=>"opacity"===Ie.type):be;if(!ve)return;if("esri.renderers.visualVariables.OpacityVariable"!==ve.declaredClass)return void B.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const xe="number"==typeof Se,ze=xe?null:Se,Ke=ze&&ze.attributes;let We=xe?Se:null;const Ce=ve.field,{ipData:Be,hasExpression:Fe}=ve.cache;let je=ve.cache.compiledFunc;if(!Ce&&!Fe){const Ie=ve.stops;return Ie&&Ie[0]&&Ie[0].opacity}if("number"!=typeof We)if(Fe){if((0,Q.Wi)(ye)||(0,Q.Wi)(ye.arcade))return void B.error("Use of arcade expressions requires an arcade context");const Ge=ye.arcade.arcadeUtils,Pe=Ge.getViewInfo({viewingMode:ye.viewingMode,scale:ye.scale,spatialReference:ye.spatialReference}),Le=Ge.createExecContext(ze,Pe);if(!je){const Me=Ge.createSyntaxTree(ve.valueExpression);je=Ge.createFunction(Me),ve.cache.compiledFunc=je}We=Ge.executeFunction(je,Le)}else Ke&&(We=Ke[Ce]);const Re=ve.normalizationField,He=null!=Ke&&null!=Re?parseFloat(Ke[Re]):void 0;if(null!=We&&(!Re||xe||!isNaN(He)&&0!==He)){isNaN(He)||xe||(We/=He);const Ie=Ee(We,Be);if(Ie){const Ge=Ie[0],Pe=Ie[1];if(Ge===Pe)return ve.stops[Ge].opacity;{const Le=ve.stops[Ge].opacity;return Le+(ve.stops[Pe].opacity-Le)*Ie[2]}}}}function le(be,Se,ye){const ve="visualVariables"in be&&be.visualVariables?be.visualVariables.find(He=>"rotation"===He.type):be;if(!ve)return;if("esri.renderers.visualVariables.RotationVariable"!==ve.declaredClass)return void B.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const xe=ve.axis||"heading",ze="heading"===xe&&"arithmetic"===ve.rotationType?90:0,Ke="heading"===xe&&"arithmetic"===ve.rotationType?-1:1,We="number"==typeof Se?null:Se,Ce=We&&We.attributes,Be=ve.field,{hasExpression:Fe}=ve.cache;let je=ve.cache.compiledFunc,Re=0;if(!Be&&!Fe)return Re;if(Fe){if((0,Q.Wi)(ye)||(0,Q.Wi)(ye.arcade))return void B.error("Use of arcade expressions requires an arcade context");const Ie=ye.arcade.arcadeUtils,Ge=Ie.getViewInfo({viewingMode:ye.viewingMode,scale:ye.scale,spatialReference:ye.spatialReference}),Pe=Ie.createExecContext(We,Ge);if(!je){const Le=Ie.createSyntaxTree(ve.valueExpression);je=Ie.createFunction(Le),ve.cache.compiledFunc=je}Re=Ie.executeFunction(je,Pe)}else Ce&&(Re=Ce[Be]||0);return Re="number"!=typeof Re||isNaN(Re)?null:ze+Ke*Re,Re}function re(be,Se,ye){const ve="visualVariables"in be&&be.visualVariables?be.visualVariables.find(ze=>"size"===ze.type):be;if(!ve)return;if("esri.renderers.visualVariables.SizeVariable"!==ve.declaredClass)return void B.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const xe=me(function de(be,Se,ye){const ve="number"==typeof Se,xe=ve?null:Se,ze=xe&&xe.attributes;let Ke=ve?Se:null;const{isScaleDriven:We}=be.cache;let Ce=be.cache.compiledFunc;if(We){const Fe=(0,Q.pC)(ye)?ye.scale:void 0,je=(0,Q.pC)(ye)?ye.view:void 0;Ke=null==Fe||"3d"===je?function se(be){let Se=null,ye=null;const ve=be.stops;return ve?(Se=ve[0].value,ye=ve[ve.length-1].value):(Se=be.minDataValue||0,ye=be.maxDataValue||0),(Se+ye)/2}(be):Fe}else if(!ve)switch(be.inputValueType){case W.RY.Expression:{if((0,Q.Wi)(ye)||(0,Q.Wi)(ye.arcade))return void B.error("Use of arcade expressions requires an arcade context");const je=ye.arcade.arcadeUtils,Re=je.getViewInfo({viewingMode:ye.viewingMode,scale:ye.scale,spatialReference:ye.spatialReference}),He=je.createExecContext(xe,Re);if(!Ce){const Ie=je.createSyntaxTree(be.valueExpression);Ce=je.createFunction(Ie),be.cache.compiledFunc=Ce}Ke=je.executeFunction(Ce,He);break}case W.RY.Field:ze&&(Ke=ze[be.field]);break;case W.RY.Unknown:Ke=null}if(!(0,W.qh)(Ke))return null;if(ve||!be.normalizationField)return Ke;const Be=ze?parseFloat(ze[be.normalizationField]):null;return(0,W.qh)(Be)&&0!==Be?Ke/Be:null}(ve,Se,ye),ve,Se,ye,ve.cache.ipData);return null==xe||isNaN(xe)?0:xe}function j(be,Se,ye){return null==be?null:(0,W.iY)(be)?re(be,Se,ye):(0,W.qh)(be)?be:null}function Y(be,Se,ye){return(0,W.qh)(ye)&&be>ye?ye:(0,W.qh)(Se)&&be=Se.maxDataValue)return Ke;if(null==ze||null==Ke)return null;if("area"===Se.scaleBy&&We){const Ce="circle"===We,Be=Ce?X*(ze/2)**2:ze*ze,Fe=Be+xe*((Ce?X*(Ke/2)**2:Ke*Ke)-Be);return Ce?2*Math.sqrt(Fe/X):Math.sqrt(Fe)}return ze+xe*(Ke-ze)}(be,Se,ye,ve);case W.hL.Proportional:return function ce(be,Se,ye,ve){const xe=(0,Q.pC)(ve)?ve.shape:void 0,ze=be/Se.minDataValue,Ke=j(Se.minSize,ye,ve),We=j(Se.maxSize,ye,ve);let Ce=null;return Ce="circle"===xe?2*Math.sqrt(ze*(Ke/2)**2):"square"===xe||"diamond"===xe||"image"===xe?Math.sqrt(ze*Ke**2):ze*Ke,Y(Ce,Ke,We)}(be,Se,ye,ve);case W.hL.Stops:return function ue(be,Se,ye,ve,xe){const[ze,Ke,We]=Ee(be,xe);if(ze===Ke)return j(Se.stops?.[ze].size,ye,ve);{const Ce=j(Se.stops?.[ze].size,ye,ve);return Ce+(j(Se.stops?.[Ke].size,ye,ve)-Ce)*We}}(be,Se,ye,ve,xe);case W.hL.RealWorldSize:return function pe(be,Se,ye,ve){const xe=((0,Q.pC)(ve)&&ve.resolution?ve.resolution:1)*$.a[Se.valueUnit],ze=j(Se.minSize,ye,ve),Ke=j(Se.maxSize,ye,ve),{valueRepresentation:We}=Se;let Ce=null;return Ce="area"===We?2*Math.sqrt(be/X)/xe:"radius"===We||"distance"===We?2*be/xe:be/xe,Y(Ce,ze,Ke)}(be,Se,ye,ve);case W.hL.Identity:return be;case W.hL.Unknown:return null}}function ge(be,Se,ye){const{isScaleDriven:ve}=be.cache;if(!(ve&&"3d"===ye||Se))return null;const xe={scale:Se,view:ye};let ze=j(be.minSize,H,xe),Ke=j(be.maxSize,H,xe);if(null!=ze||null!=Ke){if(ze>Ke){const We=Ke;Ke=ze,ze=We}return{minSize:ze,maxSize:Ke}}}function _e(be,Se,ye){if(!be.visualVariables)return;const ve=[],xe=[],ze=[],Ke=[],We=[];for(const Ce of be.visualVariables)switch(Ce.type){case"color":xe.push(Ce);break;case"opacity":ze.push(Ce);break;case"rotation":We.push(Ce);break;case"size":Ke.push(Ce)}return xe.forEach(Ce=>{const Be=ae(Ce,Se,ye);ve.push({variable:Ce,value:Be})}),ze.forEach(Ce=>{const Be=oe(Ce,Se,ye);ve.push({variable:Ce,value:Be})}),We.forEach(Ce=>{const Be=le(Ce,Se,ye);ve.push({variable:Ce,value:Be})}),Ke.forEach(Ce=>{const Be=re(Ce,Se,ye);ve.push({variable:Ce,value:Be})}),ve.filter(Ce=>null!=Ce.value)}function Ee(be,Se){if(!Se)return;let ye=0,ve=Se.length-1;return Se.some((xe,ze)=>be{"use strict";v.r(Ae),v.d(Ae,{default:()=>oe});var D=v(15861),R=v(59318),G=v(24263),Z=v(26584),Q=v(8314),$=v(58817),W=v(62208),B=v(10699),H=v(21726),X=v(24433),te=v(12680),ae=v(33899);function oe(Re,He){return le.apply(this,arguments)}function le(){return(le=(0,D.Z)(function*(Re,He){const Ie=(0,H.HK)(Re),Ge=(0,H.jc)(Re);Ge||Ie||(Re=(0,H.Fv)(Re));const Pe={url:Re,requestOptions:{...(0,W.Wg)(He)}};let Le=(0,H.oh)(Re);if(Le){const Ye=yield ve(Le,Pe);if(null!=Ye)return{data:Ye,getHeader:ie,requestOptions:Pe.requestOptions,url:Pe.url};Le.after||Le.error||(Le=null)}if(Re=Pe.url,"image"===(He=Pe.requestOptions).responseType){if((0,Q.Z)("host-webworker")||(0,Q.Z)("host-node"))throw pe("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),Pe)}else if(Ie)throw pe("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+He.responseType),Pe);if("head"===He.method){if(He.body)throw pe("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),Pe);if(Ie||Ge)throw pe("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),Pe)}if(yield he(),de)return de.execute(Re,He);const Me=new AbortController;(0,B.fu)(He,()=>Me.abort());const Ne={controller:Me,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:Le,params:Pe,redoRequest:!1,useIdentity:se.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},Xe=yield We(Ne);return Le?.after?.(Xe),Xe})).apply(this,arguments)}let de;const se=R.Z.request,re="FormData"in globalThis,j=[499,498,403,401],Y=["COM_0056","COM_0057","SB_0008"],ee=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],ie=()=>null,J=Symbol();function ce(Re){const He=(0,H.P$)(Re);He&&!oe._corsServers.includes(He)&&oe._corsServers.push(He)}function ue(Re){const He=(0,H.P$)(Re);return!He||He.endsWith(".arcgis.com")||oe._corsServers.includes(He)||(0,H.kl)(He)}function pe(Re,He,Ie,Ge){let Pe="Error";const Le={url:Ie.url,requestOptions:Ie.requestOptions,getHeader:ie,ssl:!1};if(He instanceof Z.Z)return He.details?(He.details=(0,$.d9)(He.details),He.details.url=Ie.url,He.details.requestOptions=Ie.requestOptions):He.details=Le,He;if(He){const Me=Ge&&(Ye=>Ge.headers.get(Ye)),Ne=Ge&&Ge.status,Xe=He.message;Xe&&(Pe=Xe),Me&&(Le.getHeader=Me),Le.httpStatus=(null!=He.httpCode?He.httpCode:He.code)||Ne||0,Le.subCode=He.subcode,Le.messageCode=He.messageCode,Le.messages="string"==typeof He.details?[He.details]:He.details,Le.raw=J in He?He[J]:He}return(0,B.D_)(He)?(0,B.zE)():new Z.Z(Re,Pe,Le)}function he(){return me.apply(this,arguments)}function me(){return(me=(0,D.Z)(function*(){(0,Q.Z)("host-webworker")?de||(de=yield v.e(3358).then(v.bind(v,23358))):oe._abortableFetch||(oe._abortableFetch=globalThis.fetch.bind(globalThis))})).apply(this,arguments)}function ge(){return _e.apply(this,arguments)}function _e(){return(_e=(0,D.Z)(function*(){G.id||(yield v.e(9058).then(v.bind(v,59058)))})).apply(this,arguments)}function Ee(Re){return De.apply(this,arguments)}function De(){return(De=(0,D.Z)(function*(Re){const He=Re.params.url,Ie=Re.params.requestOptions,Ge=Re.controller.signal,Pe=Ie.body;let Le=null,Me=null;if(re&&"HTMLFormElement"in globalThis&&(Pe instanceof FormData?Le=Pe:Pe instanceof HTMLFormElement&&(Le=new FormData(Pe))),"string"==typeof Pe&&(Me=Pe),Re.fetchOptions={cache:Ie.cacheBust&&!oe._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:Ie.headers||{},method:"head"===Ie.method?"HEAD":"GET",mode:"cors",priority:se.priority,redirect:"follow",signal:Ge},(Le||Me)&&(Re.fetchOptions.body=Le||Me),"anonymous"===Ie.authMode&&(Re.useIdentity=!1),Re.hasToken=!!(/token=/i.test(He)||Ie.query?.token||Le?.get("token")),!Re.hasToken&&R.Z.apiKey&&(0,te.r)(He)&&(Ie.query||(Ie.query={}),Ie.query.token=R.Z.apiKey,Re.hasToken=!0),Re.useIdentity&&!Re.hasToken&&!Re.credentialToken&&!be(He)&&!(0,B.Hc)(Ge)){let Ne;"immediate"===Ie.authMode?(yield ge(),Ne=yield G.id.getCredential(He,{signal:Ge}),Re.credential=Ne):"no-prompt"===Ie.authMode?(yield ge(),Ne=yield G.id.getCredential(He,{prompt:!1,signal:Ge}).catch(()=>{}),Re.credential=Ne):G.id&&(Ne=G.id.findCredential(He)),Ne&&(Re.credentialToken=Ne.token,Re.useSSL=!!Ne.ssl)}})).apply(this,arguments)}function be(Re){return ee.some(He=>He.test(Re))}function Se(Re){return ye.apply(this,arguments)}function ye(){return(ye=(0,D.Z)(function*(Re){let He=Re.params.url;const Ie=Re.params.requestOptions,Ge=Re.fetchOptions??{},Pe=(0,H.jc)(He)||(0,H.HK)(He),Le=Ie.responseType||"json",Me=Pe?0:null!=Ie.timeout?Ie.timeout:se.timeout;let Ne=!1;if(!Pe){Re.useSSL&&(He=(0,H.hO)(He)),Ie.cacheBust&&"default"===Ge.cache&&(He=(0,H.ZN)(He,"request.preventCache",Date.now()));let tt={...Ie.query};Re.credentialToken&&(tt.token=Re.credentialToken);let et=(0,H.B7)(tt);(0,Q.Z)("esri-url-encodes-apostrophe")&&(et=et.replace(/'/g,"%27"));const qe=He.length+1+et.length;let ot;Ne="delete"===Ie.method||"post"===Ie.method||"put"===Ie.method||!!Ie.body||qe>se.maxUrlLength;const ut=Ie.useProxy||!!(0,H.ed)(He);if(ut){const _t=(0,H.b7)(He);ot=_t.path,!Ne&&ot.length+1+qe>se.maxUrlLength&&(Ne=!0),_t.query&&(tt={..._t.query,...tt})}if("HEAD"===Ge.method&&(Ne||ut)){if(Ne)throw pe("request:invalid-parameters",qe>se.maxUrlLength?new Error("URL exceeds maximum length"):new Error("cannot use POST request when method is 'head'"),Re.params);if(ut)throw pe("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),Re.params)}if(Ne?(Ge.method="delete"===Ie.method?"DELETE":"put"===Ie.method?"PUT":"POST",Ie.body?He=(0,H.fl)(He,tt):(Ge.body=(0,H.B7)(tt),Ge.headers||(Ge.headers={}),Ge.headers["Content-Type"]="application/x-www-form-urlencoded")):He=(0,H.fl)(He,tt),ut&&(Re.useProxy=!0,He=`${ot}?${He}`),tt.token&&re&&Ge.body instanceof FormData&&!(0,X.P)(He)&&Ge.body.set("token",tt.token),Ie.hasOwnProperty("withCredentials"))Re.withCredentials=Ie.withCredentials;else if(!(0,H.D6)(He,(0,H.TI)()))if((0,H.kl)(He))Re.withCredentials=!0;else if(G.id){const _t=G.id.findServerInfo(He);_t&&_t.webTierAuth&&(Re.withCredentials=!0)}Re.withCredentials&&(Ge.credentials="include",(0,ae.jH)(He)&&(yield(0,ae.jz)(Ne?(0,H.fl)(He,tt):He)))}let Xe,Ye,Je=0,rt=!1;Me>0&&(Je=setTimeout(()=>{rt=!0,Re.controller.abort()},Me));try{if("native-request-init"===Ie.responseType)Ye=Ge,Ye.url=He;else if("image"!==Ie.responseType||"default"!==Ge.cache||"GET"!==Ge.method||Ne||ze(Ie.headers)||!Pe&&!Re.useProxy&&se.proxyUrl&&!ue(He)){if(Xe=yield oe._abortableFetch(He,Ge),Re.useProxy||ce(He),"native"===Ie.responseType)Ye=Xe;else if("HEAD"!==Ge.method)if(Xe.ok){switch(Le){case"array-buffer":Ye=yield Xe.arrayBuffer();break;case"blob":case"image":Ye=yield Xe.blob();break;default:Ye=yield Xe.text()}if(Je&&(clearTimeout(Je),Je=0),"json"===Le||"xml"===Le||"document"===Le)if(Ye)switch(Le){case"json":Ye=JSON.parse(Ye);break;case"xml":Ye=Ke(Ye,"application/xml");break;case"document":Ye=Ke(Ye,"text/html")}else Ye=null;if(Ye){if("array-buffer"===Le||"blob"===Le){const tt=Xe.headers.get("Content-Type");if(tt&&/application\/json|text\/plain/i.test(tt)&&Ye["blob"===Le?"size":"byteLength"]<=750)try{const et=yield new Response(Ye).json();et.error&&(Ye=et)}catch{}}"image"===Le&&Ye instanceof Blob&&(Ye=yield je(URL.createObjectURL(Ye),Re,!0))}}else Ye=yield Xe.text()}else Ye=yield je(He,Re)}catch(tt){if("AbortError"===tt.name)throw rt?new Error("Timeout exceeded"):(0,B.zE)("Request canceled");if(!(!Xe&&tt instanceof TypeError&&se.proxyUrl)||Ie.body||"delete"===Ie.method||"head"===Ie.method||"post"===Ie.method||"put"===Ie.method||Re.useProxy||ue(He))throw tt;Re.redoRequest=!0,(0,H.tD)({proxyUrl:se.proxyUrl,urlPrefix:(0,H.P$)(He)??""})}finally{Je&&clearTimeout(Je)}return[Xe,Ye]})).apply(this,arguments)}function ve(Re,He){return xe.apply(this,arguments)}function xe(){return(xe=(0,D.Z)(function*(Re,He){if(null!=Re.responseData)return Re.responseData;if(Re.headers&&(He.requestOptions.headers={...He.requestOptions.headers,...Re.headers}),Re.query&&(He.requestOptions.query={...He.requestOptions.query,...Re.query}),Re.before){let Ie,Ge;try{Ge=yield Re.before(He)}catch(Pe){Ie=pe("request:interceptor",Pe,He)}if((Ge instanceof Error||Ge instanceof Z.Z)&&(Ie=pe("request:interceptor",Ge,He)),Ie)throw Re.error&&Re.error(Ie),Ie;return Ge}})).apply(this,arguments)}function ze(Re){if(Re)for(const He of Object.getOwnPropertyNames(Re))if(Re[He])return!0;return!1}function Ke(Re,He){let Ie;try{Ie=(new DOMParser).parseFromString(Re,He)}catch{}if(!Ie||Ie.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return Ie}function We(Re){return Ce.apply(this,arguments)}function Ce(){return(Ce=(0,D.Z)(function*(Re){let He,Ie;yield Ee(Re);try{do{[He,Ie]=yield Se(Re)}while(!(yield Be(Re,He,Ie)))}catch(Le){const Me=pe("request:server",Le,Re.params,He);throw Me.details.ssl=Re.useSSL,Re.interceptor&&Re.interceptor.error&&Re.interceptor.error(Me),Me}const Ge=Re.params.url;if(Ie&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(Ge)){if(!Re.hasToken&&!Re.credentialToken&&Ie.user?.username&&!(0,H.kl)(Ge)){const Le=(0,H.P$)(Ge,!0);Le&&se.trustedServers.push(Le)}Array.isArray(Ie.authorizedCrossOriginNoCorsDomains)&&(0,ae.Hu)(Ie.authorizedCrossOriginNoCorsDomains)}const Pe=Re.credential;if(Pe&&G.id){const Le=G.id.findServerInfo(Pe.server);let Me=Le&&Le.owningSystemUrl;if(Me){Me=Me.replace(/\/?$/,"/sharing");const Ne=G.id.findCredential(Me,Pe.userId);Ne&&-1===G.id._getIdenticalSvcIdx(Me,Ne)&&Ne.resources.unshift(Me)}}return{data:Ie,getHeader:He?Le=>He?.headers.get(Le):ie,requestOptions:Re.params.requestOptions,ssl:Re.useSSL,url:Re.params.url}})).apply(this,arguments)}function Be(Re,He,Ie){return Fe.apply(this,arguments)}function Fe(){return(Fe=(0,D.Z)(function*(Re,He,Ie){if(Re.redoRequest)return Re.redoRequest=!1,!1;const Ge=Re.params.requestOptions;if(!He||"native"===Ge.responseType||"native-request-init"===Ge.responseType)return!0;let Pe,Le;if(!He.ok)throw Pe=new Error(`Unable to load ${He.url} status: ${He.status}`),Pe[J]=Ie,Pe;Ie&&(Ie.error?Pe=Ie.error:"error"===Ie.status&&Array.isArray(Ie.messages)&&(Pe={...Ie},Pe[J]=Ie,Pe.details=Ie.messages));let Me,Ne=null;Pe&&(Le=Number(Pe.code),Ne=Pe.hasOwnProperty("subcode")?Number(Pe.subcode):null,Me=Pe.messageCode,Me=Me&&Me.toUpperCase());const Xe=Ge.authMode;if(403===Le&&(4===Ne||Pe.message&&Pe.message.toLowerCase().includes("ssl")&&!Pe.message.toLowerCase().includes("permission"))){if(!Re.useSSL)return Re.useSSL=!0,!1}else if(!Re.hasToken&&Re.useIdentity&&("no-prompt"!==Xe||498===Le)&&void 0!==Le&&j.includes(Le)&&!be(Re.params.url)&&(403!==Le||Me&&!Y.includes(Me)&&(null==Ne||2===Ne&&Re.credentialToken))){yield ge();try{const Ye=yield G.id.getCredential(Re.params.url,{error:pe("request:server",Pe,Re.params),prompt:"no-prompt"!==Xe,signal:Re.controller.signal,token:Re.credentialToken});return Re.credential=Ye,Re.credentialToken=Ye.token,Re.useSSL=Re.useSSL||Ye.ssl,!1}catch(Ye){if("no-prompt"===Xe)return Re.credential=void 0,Re.credentialToken=void 0,!1;Pe=Ye}}if(Pe)throw Pe;return!0})).apply(this,arguments)}function je(Re,He,Ie=!1){const Ge=He.controller.signal,Pe=new Image;return Pe.crossOrigin=He.withCredentials?"use-credentials":"anonymous",Pe.alt="",Pe.fetchPriority=se.priority,Pe.src=Re,(0,ae.fY)(Pe,Re,Ie,Ge)}oe._abortableFetch=null,oe._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},39636:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>H});var D=v(15861),R=v(84792),G=v(90912),Z=v(91179),Q=v(2618),$=v(10920),W=v(77294);const B=(0,G.se)(W.Z);function H(te,ae,oe){return X.apply(this,arguments)}function X(){return(X=(0,D.Z)(function*(te,ae,oe){ae=B(ae);const le=(0,Q.en)(te),de={...le.query,f:"json",...ae.toJSON()},se=ae.outSpatialReference,re=(0,Z.Ji)(ae.geometries[0]),j=(0,Q.lA)(de,oe);return(0,R.default)(le.path+"/project",j).then(({data:{geometries:Y}})=>(0,$.o)(Y,re,se))})).apply(this,arguments)}},10920:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>R,o:()=>G});var D=v(91179);function R(Z){return{geometryType:(0,D.Ji)(Z[0]),geometries:Z.map(Q=>Q.toJSON())}}function G(Z,Q,$){const W=(0,D.q9)(Q);return Z.map(B=>{const H=W.fromJSON(B);return H.spatialReference=$,H})}},76391:(nt,Ae,v)=>{"use strict";function D(R){const G={};for(const Z in R){if("declaredClass"===Z)continue;const Q=R[Z];if(null!=Q&&"function"!=typeof Q)if(Array.isArray(Q)){G[Z]=[];for(let $=0;$D})},2865:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>B,e:()=>$});var D=v(15861),R=v(2618),G=v(20477),Z=v(17253),Q=v(96854);function $(X,te,ae){return W.apply(this,arguments)}function W(){return(W=(0,D.Z)(function*(X,te,ae){const oe=yield B(X,te,ae);return Z.default.fromJSON(oe)})).apply(this,arguments)}function B(X,te,ae){return H.apply(this,arguments)}function H(){return(H=(0,D.Z)(function*(X,te,ae){const oe=(0,R.en)(X),le={...ae},de=Q.Z.from(te),{data:se}=yield(0,G.executeQuery)(oe,de,de.sourceSpatialReference,le);return se})).apply(this,arguments)}},20514:(nt,Ae,v)=>{"use strict";v.d(Ae,{P:()=>Q});var D=v(62208),R=v(16730),G=v(37053);function Z(B,H,X){if(null==B.hasM||B.hasZ)for(const te of H)for(const ae of te)ae.length>2&&(ae[2]*=X)}function Q(B,H,X){if(!B&&!H||!X)return;const te=(0,R._R)(X);$(B,X,te),$(H,X,te)}function $(B,H,X){if(B)for(const te of B)W(te.geometry,H,X)}function W(B,H,X){if((0,D.Wi)(B)||!B.spatialReference||(0,G.fS)(B.spatialReference,H))return;const te=(0,R._R)(B.spatialReference)/X;if(1!==te)if("x"in B)null!=B.z&&(B.z*=te);else if("rings"in B)Z(B,B.rings,te);else if("paths"in B)Z(B,B.paths,te);else if("points"in B&&(null==B.hasM||B.hasZ))for(const ae of B.points)ae.length>2&&(ae[2]*=te)}},71260:(nt,Ae,v)=>{"use strict";v.d(Ae,{G$:()=>J,K9:()=>me,O7:()=>H});var D=v(26584),R=v(62208),G=v(24192),Z=v(88071),Q=v(98558);const $=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],W=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],B=["upperLeft","lowerLeft"];function H(ge){return ge>=$.length?null:$[ge]}function X(ge){return ge>=W.length?null:W[ge]}function te(ge){return ge>=B.length?null:B[ge]}function ae(ge,_e){return _e>=ge.geometryTypes.length?null:ge.geometryTypes[_e]}function oe(ge,_e,Ee){const be=ge.asUnsafe(),Se=_e.createPointGeometry(Ee);for(;be.next();)switch(be.tag()){case 3:{const ye=be.getUInt32(),ve=be.pos()+ye;let xe=0;for(;be.pos(){"use strict";v.d(Ae,{A:()=>$,J:()=>W});var D=v(16730),R=v(37053),G=v(66385),Z=v(95786),Q=v(88071);const $=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class W{constructor(H){this._options=H,this.geometryTypes=$,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new Z.Z}prepareFeatures(H){this._vertexDimension=2,H.hasZ&&this._vertexDimension++,H.hasM&&this._vertexDimension++}finishFeatureResult(H){if(!H||!H.features||!H.hasZ||!this._options.sourceSpatialReference||!H.spatialReference||(0,R.fS)(H.spatialReference,this._options.sourceSpatialReference)||H.spatialReference.vcsWkid)return;const X=(0,D._R)(this._options.sourceSpatialReference)/(0,D._R)(H.spatialReference);if(1!==X)for(const te of H.features){if(!(0,G.S6)(te))continue;const ae=te.geometry.coords;for(let oe=2;oeX+te,0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(H,X){H.coords[this._coordinatePtr++]=X}addCoordinatePoint(H,X){H.coords.push(X)}addLength(H,X){H.lengths.push(X)}addQueryGeometry(H,X){H.queryGeometry=X.queryGeometry,H.queryGeometryType=X.queryGeometryType}createPointGeometry(){return new Q.Z}}},85262:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>R});var D=v(71260);function R(G,Z){const Q=(0,D.K9)(G,Z),$=Q.queryResult.featureResult,W=Q.queryResult.queryGeometry,B=Q.queryResult.queryGeometryType;if($&&$.features&&$.features.length&&$.objectIdFieldName){const H=$.objectIdFieldName;for(const X of $.features)X.attributes&&(X.objectId=X.attributes[H])}return $&&($.queryGeometry=W,$.queryGeometryType=B),$}},20477:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{encodeGeometry:()=>te,executeQuery:()=>oe,executeQueryForCount:()=>Y,executeQueryForExtent:()=>ee,executeQueryForIds:()=>j,executeQueryPBF:()=>de,executeQueryPBFBuffer:()=>re,queryToQueryStringParameters:()=>ae,runQuery:()=>ie});var D=v(15861),R=v(84792),G=v(62208),Z=v(21726),Q=v(91179),$=v(93555),W=v(76391),B=v(85262),H=v(61515);const X="Layer does not support extent calculation.";function te(J,ce){if(ce&&"extent"===J.type)return`${J.xmin},${J.ymin},${J.xmax},${J.ymax}`;if(ce&&"point"===J.type)return`${J.x},${J.y}`;const ue=J.toJSON();return delete ue.spatialReference,JSON.stringify(ue)}function ae(J,ce){const ue=J.geometry,pe=J.toJSON();delete pe.compactGeometryEnabled,delete pe.defaultSpatialReferenceEnabled;const he=pe;let me,ge,_e;if((0,G.pC)(ue)&&(ge=ue.spatialReference,_e=ue.spatialReference.wkid||JSON.stringify(ue.spatialReference),he.geometryType=(0,Q.Ji)(ue),he.geometry=te(ue,J.compactGeometryEnabled),he.inSR=_e),pe.groupByFieldsForStatistics&&(he.groupByFieldsForStatistics=pe.groupByFieldsForStatistics.join(",")),pe.objectIds&&(he.objectIds=pe.objectIds.join(",")),pe.orderByFields&&(he.orderByFields=pe.orderByFields.join(",")),!pe.outFields||!pe.returnDistinctValues&&(ce?.returnCountOnly||ce?.returnExtentOnly||ce?.returnIdsOnly)?delete he.outFields:he.outFields=pe.outFields.includes("*")?"*":pe.outFields.join(","),pe.outSR?(he.outSR=pe.outSR.wkid||JSON.stringify(pe.outSR),me=J.outSpatialReference):ue&&(pe.returnGeometry||pe.returnCentroid)&&(he.outSR=he.inSR,me=ge),pe.returnGeometry&&delete pe.returnGeometry,pe.outStatistics&&(he.outStatistics=JSON.stringify(pe.outStatistics)),pe.fullText&&(he.fullText=JSON.stringify(pe.fullText)),pe.pixelSize&&(he.pixelSize=JSON.stringify(pe.pixelSize)),pe.quantizationParameters&&(J.defaultSpatialReferenceEnabled&&(0,G.pC)(ge)&&(0,G.pC)(J.quantizationParameters)&&(0,G.pC)(J.quantizationParameters.extent)&&ge.equals(J.quantizationParameters.extent.spatialReference)&&delete pe.quantizationParameters.extent.spatialReference,he.quantizationParameters=JSON.stringify(pe.quantizationParameters)),pe.parameterValues&&(he.parameterValues=JSON.stringify(pe.parameterValues)),pe.rangeValues&&(he.rangeValues=JSON.stringify(pe.rangeValues)),pe.dynamicDataSource&&(he.layer=JSON.stringify({source:pe.dynamicDataSource}),delete pe.dynamicDataSource),pe.timeExtent){const Ee=pe.timeExtent,{start:De,end:be}=Ee;null==De&&null==be||(he.time=De===be?De:`${De??"null"},${be??"null"}`),delete pe.timeExtent}return J.defaultSpatialReferenceEnabled&&(0,G.pC)(ge)&&(0,G.pC)(me)&&ge.equals(me)&&(he.defaultSR=he.inSR,delete he.inSR,delete he.outSR),he}function oe(J,ce,ue,pe){return le.apply(this,arguments)}function le(){return(le=(0,D.Z)(function*(J,ce,ue,pe){const he=(0,G.pC)(ce.timeExtent)&&ce.timeExtent.isEmpty?{data:{features:[]}}:yield ie(J,ce,"json",pe);return(0,H.p)(ce,ue,he.data),he})).apply(this,arguments)}function de(J,ce,ue,pe){return se.apply(this,arguments)}function se(){return(se=(0,D.Z)(function*(J,ce,ue,pe){if((0,G.pC)(ce.timeExtent)&&ce.timeExtent.isEmpty)return{data:ue.createFeatureResult()};const he=yield re(J,ce,pe),me=he;return me.data=(0,B.C)(he.data,ue),me})).apply(this,arguments)}function re(J,ce,ue){return ie(J,ce,"pbf",ue)}function j(J,ce,ue){return(0,G.pC)(ce.timeExtent)&&ce.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):ie(J,ce,"json",ue,{returnIdsOnly:!0})}function Y(J,ce,ue){return(0,G.pC)(ce.timeExtent)&&ce.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):ie(J,ce,"json",ue,{returnIdsOnly:!0,returnCountOnly:!0})}function ee(J,ce,ue){return(0,G.pC)(ce.timeExtent)&&ce.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):ie(J,ce,"json",ue,{returnExtentOnly:!0,returnCountOnly:!0}).then(pe=>{const he=pe.data;if(he.hasOwnProperty("extent"))return pe;if(he.features)throw new Error(X);if(he.hasOwnProperty("count"))throw new Error(X);return pe})}function ie(J,ce,ue,pe={},he={}){const me="string"==typeof J?(0,Z.mN)(J):J,ge=ce.geometry?[ce.geometry]:[];return pe.responseType="pbf"===ue?"array-buffer":"json",(0,$.aX)(ge,null,pe).then(_e=>{const Ee=_e&&_e[0];(0,G.pC)(Ee)&&((ce=ce.clone()).geometry=Ee);const De=(0,W.A)({...me.query,f:ue,...he,...ae(ce,he)});return(0,R.default)((0,Z.v_)(me.path,"query"),{...pe,query:{...De,...pe.query}})})}},61515:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>G});var D=v(62208),R=v(33696);function G(Z,Q,$){if(!$||!$.features||!$.hasZ)return;const W=(0,R.k)($.geometryType,Q,Z.outSpatialReference);if(!(0,D.Wi)(W))for(const B of $.features)W(B.geometry)}},87183:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var H,D=v(17626),R=v(86810),G=v(77712),Q=(v(85931),v(90912)),$=v(76898);const X={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let te=H=class extends R.wq{constructor(oe){super(oe),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:oe}=this,le=function W(oe){const{exifInfo:le,exifName:de,tagName:se}=oe;if(!le||!de||!se)return null;const re=le.find(j=>j.name===de);return re?function B(oe){const{tagName:le,tags:de}=oe;if(!de||!le)return null;const se=de.find(re=>re.name===le);return se&&se.value||null}({tagName:se,tags:re.tags}):null}({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:oe});return X[le]||null}clone(){return new H({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,D._)([(0,G.Cb)({type:String})],te.prototype,"contentType",void 0),(0,D._)([(0,G.Cb)()],te.prototype,"exifInfo",void 0),(0,D._)([(0,G.Cb)({readOnly:!0})],te.prototype,"orientationInfo",null),(0,D._)([(0,G.Cb)({type:Q.z8})],te.prototype,"id",void 0),(0,D._)([(0,G.Cb)({type:String})],te.prototype,"globalId",void 0),(0,D._)([(0,G.Cb)({type:String})],te.prototype,"keywords",void 0),(0,D._)([(0,G.Cb)({type:String})],te.prototype,"name",void 0),(0,D._)([(0,G.Cb)({json:{read:!1}})],te.prototype,"parentGlobalId",void 0),(0,D._)([(0,G.Cb)({json:{read:!1}})],te.prototype,"parentObjectId",void 0),(0,D._)([(0,G.Cb)({type:Q.z8})],te.prototype,"size",void 0),(0,D._)([(0,G.Cb)({json:{read:!1}})],te.prototype,"url",void 0),te=H=(0,D._)([(0,$.j)("esri.layers.support.AttachmentInfo")],te);const ae=te},40251:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(91558),G=v(58817),Z=v(77712),Q=v(90912),$=v(55342),W=v(76898),B=v(40669);let X=H=class extends B.Z{constructor(ae){super(ae),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new H({fromColor:(0,G.d9)(this.fromColor),toColor:(0,G.d9)(this.toColor),algorithm:this.algorithm})}};(0,D._)([(0,$.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],X.prototype,"algorithm",void 0),(0,D._)([(0,Z.Cb)({type:R.Z,json:{type:[Q.z8],write:!0}})],X.prototype,"fromColor",void 0),(0,D._)([(0,Z.Cb)({type:R.Z,json:{type:[Q.z8],write:!0}})],X.prototype,"toColor",void 0),(0,D._)([(0,Z.Cb)({type:["algorithmic"]})],X.prototype,"type",void 0),X=H=(0,D._)([(0,W.j)("esri.rest.support.AlgorithmicColorRamp")],X);const te=X},67736:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(86810),G=v(58817),Z=v(77712),Q=v(90912),$=v(76898),W=v(99433);let H=B=class extends R.wq{constructor(te){super(te),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(te,ae){ae.resultOffset=this.start,ae.resultRecordCount=this.num||10}clone(){return new B((0,G.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,D._)([(0,Z.Cb)({type:[String],json:{write:!0}})],H.prototype,"attachmentTypes",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],H.prototype,"attachmentsWhere",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{write:!0}})],H.prototype,"cacheHint",void 0),(0,D._)([(0,Z.Cb)({type:[String],json:{write:!0}})],H.prototype,"keywords",void 0),(0,D._)([(0,Z.Cb)({type:[Number],json:{write:!0}})],H.prototype,"globalIds",void 0),(0,D._)([(0,Z.Cb)({json:{write:!0}})],H.prototype,"name",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],H.prototype,"num",void 0),(0,D._)([(0,Z.Cb)({type:[Number],json:{write:!0}})],H.prototype,"objectIds",void 0),(0,D._)([(0,Z.Cb)({type:Boolean,json:{default:!1,write:!0}})],H.prototype,"returnMetadata",void 0),(0,D._)([(0,Z.Cb)({type:[Number],json:{write:!0}})],H.prototype,"size",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],H.prototype,"start",void 0),(0,D._)([(0,W.c)("start"),(0,W.c)("num")],H.prototype,"writeStart",null),(0,D._)([(0,Z.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],H.prototype,"where",void 0),H=B=(0,D._)([(0,$.j)("esri.rest.support.AttachmentQuery")],H),H.from=(0,Q.se)(H);const X=H},40669:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.wq{constructor(H){super(H),this.type=null}};(0,D._)([(0,G.Cb)({readOnly:!0,json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=(0,D._)([(0,$.j)("esri.rest.support.ColorRamp")],W);const B=W},17253:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{default:()=>Y});var se,D=v(17626),R=v(29132),G=v(88879),Z=v(2076),Q=v(86810),$=v(58817),W=v(62208),B=v(77712),X=(v(90912),v(68653)),te=v(76898),ae=v(99433),oe=v(65234),le=v(91179),de=v(36255);const re=new Z.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let j=se=class extends Q.wq{constructor(ee){super(ee),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(ee,ie){const J=oe.Z.fromJSON(ie.spatialReference),ce=[];for(let ue=0;ue0)for(let J=0;JMath.round((_e-ce)/ie),_e=>Math.round((ue-_e)/J));for(let _e=0,Ee=me.length;_eEe*pe+ce,Ee=>ue-Ee*he);for(const{geometry:Ee}of ie)(0,W.pC)(Ee)&&_e&&_e(Ee);return this.transform=null,this}_quantizePoints(ee,ie,J){let ce,ue;const pe=[];for(let he=0,me=ee.length;he0){const _e=ie(ge[0]),Ee=J(ge[1]);_e===ce&&Ee===ue||(pe.push([_e-ce,Ee-ue]),ce=_e,ue=Ee)}else ce=ie(ge[0]),ue=J(ge[1]),pe.push([ce,ue])}return pe.length>0?pe:null}_getQuantizationFunction(ee,ie,J){return"point"===ee?ce=>(ce.x=ie(ce.x),ce.y=J(ce.y),ce):"polyline"===ee||"polygon"===ee?ce=>{const ue=(0,le.oU)(ce)?ce.rings:ce.paths,pe=[];for(let he=0,me=ue.length;he0?((0,le.oU)(ce)?ce.rings=pe:ce.paths=pe,ce):null}:"multipoint"===ee?ce=>{const ue=this._quantizePoints(ce.points,ie,J);return ue&&ue.length>0?(ce.points=ue,ce):null}:"extent"===ee?ce=>ce:null}_getHydrationFunction(ee,ie,J){return"point"===ee?ce=>{ce.x=ie(ce.x),ce.y=J(ce.y)}:"polyline"===ee||"polygon"===ee?ce=>{const ue=(0,le.oU)(ce)?ce.rings:ce.paths;let pe,he;for(let me=0,ge=ue.length;me0?(pe+=be[0],he+=be[1]):(pe=be[0],he=be[1]),be[0]=ie(pe),be[1]=J(he)}}}:"extent"===ee?ce=>{ce.xmin=ie(ce.xmin),ce.ymin=J(ce.ymin),ce.xmax=ie(ce.xmax),ce.ymax=J(ce.ymax)}:"multipoint"===ee?ce=>{const ue=ce.points;let pe,he;for(let me=0,ge=ue.length;me0?(pe+=_e[0],he+=_e[1]):(pe=_e[0],he=_e[1]),_e[0]=ie(pe),_e[1]=J(he)}}:null}};(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],j.prototype,"displayFieldName",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:{overridePolicy:ee=>({enabled:ee})}}})],j.prototype,"exceededTransferLimit",void 0),(0,D._)([(0,B.Cb)({type:[G.Z],json:{write:!0}})],j.prototype,"features",void 0),(0,D._)([(0,X.r)("features")],j.prototype,"readFeatures",null),(0,D._)([(0,B.Cb)({type:[de.Z],json:{write:!0}})],j.prototype,"fields",void 0),(0,D._)([(0,B.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:re.read}}})],j.prototype,"geometryType",void 0),(0,D._)([(0,ae.c)("geometryType")],j.prototype,"writeGeometryType",null),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:{overridePolicy:ee=>({enabled:ee})}}})],j.prototype,"hasM",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:{overridePolicy:ee=>({enabled:ee})}}})],j.prototype,"hasZ",void 0),(0,D._)([(0,B.Cb)({types:R.qM,json:{write:!0}})],j.prototype,"queryGeometry",void 0),(0,D._)([(0,X.r)("queryGeometry")],j.prototype,"readQueryGeometry",null),(0,D._)([(0,B.Cb)({type:oe.Z,json:{write:!0}})],j.prototype,"spatialReference",void 0),(0,D._)([(0,ae.c)("spatialReference")],j.prototype,"writeSpatialReference",null),(0,D._)([(0,B.Cb)({json:{write:!0}})],j.prototype,"transform",void 0),j=se=(0,D._)([(0,te.j)("esri.rest.support.FeatureSet")],j),j.prototype.toJSON.isDefaultToJSON=!0;const Y=j},49739:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(58817),G=v(77712),Q=(v(90912),v(76898)),$=v(40251),W=v(40669);let H=B=class extends W.Z{constructor(te){super(te),this.colorRamps=null,this.type="multipart"}clone(){return new B({colorRamps:(0,R.d9)(this.colorRamps)})}};(0,D._)([(0,G.Cb)({type:[$.Z],json:{write:!0}})],H.prototype,"colorRamps",void 0),(0,D._)([(0,G.Cb)({type:["multipart"]})],H.prototype,"type",void 0),H=B=(0,D._)([(0,Q.j)("esri.rest.support.MultipartColorRamp")],H);const X=H},77294:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(91179);let B=class extends R.wq{constructor(X){super(X),this.geometries=null,this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const X=this.geometries.map(oe=>oe.toJSON()),te=this.geometries[0],ae={};return ae.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),ae.inSR=te.spatialReference.wkid||JSON.stringify(te.spatialReference.toJSON()),ae.geometries=JSON.stringify({geometryType:(0,W.Ji)(te),geometries:X}),this.transformation&&(ae.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(ae.transformForward=this.transformForward),ae}};(0,D._)([(0,G.Cb)()],B.prototype,"geometries",void 0),(0,D._)([(0,G.Cb)({json:{read:{source:"outSR"}}})],B.prototype,"outSpatialReference",void 0),(0,D._)([(0,G.Cb)()],B.prototype,"transformation",void 0),(0,D._)([(0,G.Cb)()],B.prototype,"transformForward",void 0),B=(0,D._)([(0,$.j)("esri.rest.support.ProjectParameters")],B);const H=B},89621:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var X,D=v(17626),G=(v(29132),v(2076)),Z=v(86810),Q=v(58817),$=v(77712),B=(v(90912),v(76898)),H=v(2004);const te=new G.X({upperLeft:"upper-left",lowerLeft:"lower-left"});let ae=X=class extends Z.wq{constructor(le){super(le),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new X((0,Q.d9)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,D._)([(0,$.Cb)({type:H.Z,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],ae.prototype,"extent",void 0),(0,D._)([(0,$.Cb)({type:["view","edit"],json:{write:!0}})],ae.prototype,"mode",void 0),(0,D._)([(0,$.Cb)({type:String,json:{read:te.read,write:te.write}})],ae.prototype,"originPosition",void 0),(0,D._)([(0,$.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],ae.prototype,"tolerance",void 0),ae=X=(0,D._)([(0,B.j)("esri.rest.support.QuantizationParameters")],ae);const oe=ae},96854:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ge});var D=v(17626),R=v(29132),G=v(97478),Z=v(2076),Q=v(86810),$=v(58817),W=v(62208),B=v(77712),H=v(66656),X=v(55342),te=v(76898),ae=v(99433),oe=v(90912),le=v(91179),de=v(15283),se=v(79608);v(85931);let j=class extends((0,se.J)(Q.wq)){constructor(_e){super(_e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,D._)([(0,B.Cb)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:(0,W.pC)(this.onFields)&&this.onFields.length>0}}}}})],j.prototype,"onFields",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],j.prototype,"operator",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],j.prototype,"searchTerm",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],j.prototype,"searchType",void 0),j=(0,D._)([(0,te.j)("esri.rest.support.FullTextSearch")],j);const Y=j;var ue,ee=v(89621),ie=v(60776),J=v(65234),ce=v(72642);const pe=new Z.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),he=new Z.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let me=ue=class extends Q.wq{constructor(_e){super(_e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}static from(_e){return(0,oe.TJ)(ue,_e)}castDatumTransformation(_e){return"number"==typeof _e||"object"==typeof _e?_e:null}writeHistoricMoment(_e,Ee){Ee.historicMoment=_e&&_e.getTime()}writeParameterValues(_e,Ee){if(_e){const De={};for(const be in _e){const Se=_e[be];De[be]=Array.isArray(Se)?Se.map(ye=>ye instanceof Date?ye.getTime():ye):Se instanceof Date?Se.getTime():Se}Ee.parameterValues=De}}writeStart(_e,Ee){Ee.resultOffset=this.start,Ee.resultRecordCount=this.num||10,Ee.where="1=1"}writeWhere(_e,Ee){Ee.where=_e||"1=1"}clone(){return new ue((0,$.d9)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:(0,W.pC)(this.historicMoment)?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}};me.MAX_MAX_RECORD_COUNT_FACTOR=5,(0,D._)([(0,B.Cb)({json:{write:!0}})],me.prototype,"aggregateIds",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:!0}})],me.prototype,"cacheHint",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!1,write:!0}})],me.prototype,"compactGeometryEnabled",void 0),(0,D._)([(0,B.Cb)({json:{write:!0}})],me.prototype,"datumTransformation",void 0),(0,D._)([(0,H.p)("datumTransformation")],me.prototype,"castDatumTransformation",null),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!1,write:!0}})],me.prototype,"defaultSpatialReferenceEnabled",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{write:{overridePolicy:_e=>({enabled:_e>0})}}})],me.prototype,"distance",void 0),(0,D._)([(0,B.Cb)({type:de.n,json:{write:!0}})],me.prototype,"dynamicDataSource",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],me.prototype,"formatOf3DObjects",void 0),(0,D._)([(0,B.Cb)({type:[Y],json:{write:{enabled:!0,overridePolicy(){return{enabled:(0,W.pC)(this.fullText)&&this.fullText.length>0}}}}})],me.prototype,"fullText",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],me.prototype,"gdbVersion",void 0),(0,D._)([(0,B.Cb)({types:R.qM,json:{read:le.im,write:!0}})],me.prototype,"geometry",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{write:!0}})],me.prototype,"geometryPrecision",void 0),(0,D._)([(0,B.Cb)({type:[String],json:{write:!0}})],me.prototype,"groupByFieldsForStatistics",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],me.prototype,"having",void 0),(0,D._)([(0,B.Cb)({type:Date})],me.prototype,"historicMoment",void 0),(0,D._)([(0,ae.c)("historicMoment")],me.prototype,"writeHistoricMoment",null),(0,D._)([(0,B.Cb)({type:Number,json:{write:!0}})],me.prototype,"maxAllowableOffset",void 0),(0,D._)([(0,B.Cb)({type:Number,cast:_e=>_e<1?1:_e>ue.MAX_MAX_RECORD_COUNT_FACTOR?ue.MAX_MAX_RECORD_COUNT_FACTOR:_e,json:{write:{overridePolicy:_e=>({enabled:_e>1})}}})],me.prototype,"maxRecordCountFactor",void 0),(0,D._)([(0,B.Cb)({type:["xyFootprint"],json:{write:!0}})],me.prototype,"multipatchOption",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],me.prototype,"num",void 0),(0,D._)([(0,B.Cb)({json:{write:!0}})],me.prototype,"objectIds",void 0),(0,D._)([(0,B.Cb)({type:[String],json:{write:!0}})],me.prototype,"orderByFields",void 0),(0,D._)([(0,B.Cb)({type:[String],json:{write:!0}})],me.prototype,"outFields",void 0),(0,D._)([(0,B.Cb)({type:J.Z,json:{name:"outSR",write:!0}})],me.prototype,"outSpatialReference",void 0),(0,D._)([(0,B.Cb)({type:[ie.Z],json:{write:{enabled:!0,overridePolicy(){return{enabled:(0,W.pC)(this.outStatistics)&&this.outStatistics.length>0}}}}})],me.prototype,"outStatistics",void 0),(0,D._)([(0,B.Cb)({json:{write:!0}})],me.prototype,"parameterValues",void 0),(0,D._)([(0,ae.c)("parameterValues")],me.prototype,"writeParameterValues",null),(0,D._)([(0,B.Cb)({type:ce.Z,json:{write:!0}})],me.prototype,"pixelSize",void 0),(0,D._)([(0,B.Cb)({type:ee.Z,json:{write:!0}})],me.prototype,"quantizationParameters",void 0),(0,D._)([(0,B.Cb)({type:[Object],json:{write:!0}})],me.prototype,"rangeValues",void 0),(0,D._)([(0,B.Cb)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],me.prototype,"relationParameter",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],me.prototype,"resultType",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!1,write:!0}})],me.prototype,"returnCentroid",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!1,write:!0}})],me.prototype,"returnDistinctValues",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!0,write:!0}})],me.prototype,"returnExceededLimitFeatures",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:!0}})],me.prototype,"returnGeometry",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!1,write:!0}})],me.prototype,"returnQueryGeometry",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!1,write:!0}})],me.prototype,"returnM",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:{overridePolicy:_e=>({enabled:_e})}}})],me.prototype,"returnZ",void 0),(0,D._)([(0,B.Cb)({type:J.Z,json:{write:!0}})],me.prototype,"sourceSpatialReference",void 0),(0,D._)([(0,X.J)(pe,{ignoreUnknown:!1,name:"spatialRel"})],me.prototype,"spatialRelationship",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],me.prototype,"start",void 0),(0,D._)([(0,ae.c)("start"),(0,ae.c)("num")],me.prototype,"writeStart",null),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],me.prototype,"sqlFormat",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],me.prototype,"text",void 0),(0,D._)([(0,B.Cb)({type:G.Z,json:{write:!0}})],me.prototype,"timeExtent",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{default:!1,write:!0}})],me.prototype,"timeReferenceUnknownClient",void 0),(0,D._)([(0,X.J)(he,{ignoreUnknown:!1}),(0,B.Cb)({json:{write:{overridePolicy(_e){return{enabled:!!_e&&null!=this.distance&&this.distance>0}}}}})],me.prototype,"units",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:{overridePolicy(_e){return{enabled:null!=_e||null!=this.start&&this.start>0}}}}})],me.prototype,"where",void 0),(0,D._)([(0,ae.c)("where")],me.prototype,"writeWhere",null),me=ue=(0,D._)([(0,te.j)("esri.rest.support.Query")],me);const ge=me},67010:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var te,D=v(17626),G=(v(29132),v(86810)),Z=v(58817),Q=v(77712),$=v(90912),W=v(76898),B=v(99433),H=v(15283),X=v(65234);let ae=te=class extends G.wq{constructor(le){super(le),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(le,de){de.historicMoment=le&&le.getTime()}writeStart(le,de){de.resultOffset=this.start,de.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(de.definitionExpression="1=1")}clone(){return new te((0,Z.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:!0}})],ae.prototype,"cacheHint",void 0),(0,D._)([(0,Q.Cb)({type:H.n,json:{write:!0}})],ae.prototype,"dynamicDataSource",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],ae.prototype,"gdbVersion",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],ae.prototype,"geometryPrecision",void 0),(0,D._)([(0,Q.Cb)({type:Date})],ae.prototype,"historicMoment",void 0),(0,D._)([(0,B.c)("historicMoment")],ae.prototype,"_writeHistoricMoment",null),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],ae.prototype,"maxAllowableOffset",void 0),(0,D._)([(0,Q.Cb)({type:[Number],json:{write:!0}})],ae.prototype,"objectIds",void 0),(0,D._)([(0,Q.Cb)({type:[String],json:{write:!0}})],ae.prototype,"orderByFields",void 0),(0,D._)([(0,Q.Cb)({type:[String],json:{write:!0}})],ae.prototype,"outFields",void 0),(0,D._)([(0,Q.Cb)({type:X.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],ae.prototype,"outSpatialReference",void 0),(0,D._)([(0,Q.Cb)({json:{write:!0}})],ae.prototype,"relationshipId",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],ae.prototype,"start",void 0),(0,D._)([(0,B.c)("start"),(0,B.c)("num")],ae.prototype,"writeStart",null),(0,D._)([(0,Q.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],ae.prototype,"num",void 0),(0,D._)([(0,Q.Cb)({json:{write:!0}})],ae.prototype,"returnGeometry",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:{overridePolicy:le=>({enabled:le})}}})],ae.prototype,"returnM",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:{overridePolicy:le=>({enabled:le})}}})],ae.prototype,"returnZ",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],ae.prototype,"where",void 0),ae=te=(0,D._)([(0,W.j)("esri.rest.support.RelationshipQuery")],ae),ae.from=(0,$.se)(ae);const oe=ae},60776:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var H,D=v(17626),R=v(2076),G=v(86810),Z=v(58817),Q=v(77712),W=(v(90912),v(76898)),B=v(99433);const X=new R.X({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let te=H=class extends G.wq{constructor(oe){super(oe),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(oe,le){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(le.statisticParameters=(0,Z.d9)(oe))}clone(){return new H({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,Z.d9)(this.statisticParameters)})}};(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],te.prototype,"maxPointCount",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],te.prototype,"maxRecordCount",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],te.prototype,"maxVertexCount",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"onStatisticField",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],te.prototype,"outStatisticFieldName",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{read:{source:"statisticType",reader:X.read},write:{target:"statisticType",writer:X.write}}})],te.prototype,"statisticType",void 0),(0,D._)([(0,Q.Cb)({type:Object})],te.prototype,"statisticParameters",void 0),(0,D._)([(0,B.c)("statisticParameters")],te.prototype,"writeStatisticParameters",null),te=H=(0,D._)([(0,W.j)("esri.rest.support.StatisticDefinition")],te);const ae=te},6871:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>J});var le,D=v(17626),R=v(29132),G=v(97478),Z=v(2076),Q=v(86810),$=v(58817),W=v(62208),B=v(77712),H=v(90912),X=v(76898),te=v(99433),ae=v(91179);v(85931);let de=le=class extends Q.wq{constructor(ce){super(ce),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new le({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,D._)([(0,B.Cb)({type:[String],json:{write:!0}})],de.prototype,"groupByFields",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{write:!0}})],de.prototype,"topCount",void 0),(0,D._)([(0,B.Cb)({type:[String],json:{write:!0}})],de.prototype,"orderByFields",void 0),de=le=(0,D._)([(0,X.j)("esri.rest.support.TopFilter")],de);const se=de;var j,re=v(65234);const Y=new Z.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),ee=new Z.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let ie=j=class extends Q.wq{constructor(ce){super(ce),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(ce,ue){ue.resultOffset=this.start,ue.resultRecordCount=this.num||10}clone(){return new j((0,$.d9)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,D._)([(0,B.Cb)({type:Boolean,json:{write:!0}})],ie.prototype,"cacheHint",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{write:{overridePolicy:ce=>({enabled:ce>0})}}})],ie.prototype,"distance",void 0),(0,D._)([(0,B.Cb)({types:R.qM,json:{read:ae.im,write:!0}})],ie.prototype,"geometry",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{write:!0}})],ie.prototype,"geometryPrecision",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{write:!0}})],ie.prototype,"maxAllowableOffset",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],ie.prototype,"num",void 0),(0,D._)([(0,B.Cb)({json:{write:!0}})],ie.prototype,"objectIds",void 0),(0,D._)([(0,B.Cb)({type:[String],json:{write:!0}})],ie.prototype,"orderByFields",void 0),(0,D._)([(0,B.Cb)({type:[String],json:{write:!0}})],ie.prototype,"outFields",void 0),(0,D._)([(0,B.Cb)({type:re.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],ie.prototype,"outSpatialReference",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],ie.prototype,"resultType",void 0),(0,D._)([(0,B.Cb)({json:{write:!0}})],ie.prototype,"returnGeometry",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:{overridePolicy:ce=>({enabled:ce})}}})],ie.prototype,"returnM",void 0),(0,D._)([(0,B.Cb)({type:Boolean,json:{write:{overridePolicy:ce=>({enabled:ce})}}})],ie.prototype,"returnZ",void 0),(0,D._)([(0,B.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],ie.prototype,"start",void 0),(0,D._)([(0,te.c)("start"),(0,te.c)("num")],ie.prototype,"writeStart",null),(0,D._)([(0,B.Cb)({type:String,json:{read:{source:"spatialRel",reader:Y.read},write:{target:"spatialRel",writer:Y.write}}})],ie.prototype,"spatialRelationship",void 0),(0,D._)([(0,B.Cb)({type:G.Z,json:{write:!0}})],ie.prototype,"timeExtent",void 0),(0,D._)([(0,B.Cb)({type:se,json:{write:!0}})],ie.prototype,"topFilter",void 0),(0,D._)([(0,B.Cb)({type:String,json:{read:ee.read,write:{writer:ee.write,overridePolicy(ce){return{enabled:(0,W.pC)(ce)&&(0,W.pC)(this.distance)&&this.distance>0}}}}})],ie.prototype,"units",void 0),(0,D._)([(0,B.Cb)({type:String,json:{write:!0}})],ie.prototype,"where",void 0),ie=j=(0,D._)([(0,X.j)("esri.rest.support.TopFeaturesQuery")],ie),ie.from=(0,H.se)(ie);const J=ie},79023:(nt,Ae,v)=>{"use strict";v.d(Ae,{V:()=>Z,i:()=>Q});var D=v(40251),R=v(40669),G=v(49739);const Z={key:"type",base:R.Z,typeMap:{algorithmic:D.Z,multipart:G.Z}};function Q($){return $&&$.type?"algorithmic"===$.type?D.Z.fromJSON($):"multipart"===$.type?G.Z.fromJSON($):null:null}},2618:(nt,Ae,v)=>{"use strict";v.d(Ae,{cv:()=>B,en:()=>W,lA:()=>$}),v(59318),v(24263);var G=v(58817),Z=v(21726);function $(X,te){return te?{...te,query:{...X,...te.query}}:{query:X}}function W(X){return"string"==typeof X?(0,Z.mN)(X):(0,G.d9)(X)}function B(X,te,ae){const oe={};for(const le in X){if("declaredClass"===le)continue;const de=X[le];if(null!=de&&"function"!=typeof de)if(Array.isArray(de)){oe[le]=[];for(let se=0;se{"use strict";v.d(Ae,{J:()=>te});var D=v(17626),R=v(88879),Z=(v(63290),v(90912)),B=(v(85931),v(26584),v(8314),v(61039)),H=v(76898),X=v(28705);let te=class extends X.a{_own(ae){ae.layer&&"remove"in ae.layer&&ae.layer!==this.owner&&ae.layer.remove(ae),ae.layer=this.owner}_release(ae){ae.layer===this.owner&&(ae.layer=null)}};(0,D._)([(0,B.c)({Type:R.Z,ensureType:(0,Z.se)(R.Z)})],te.prototype,"itemType",void 0),te=(0,D._)([(0,H.j)("esri.support.GraphicsCollection")],te)},6432:(nt,Ae,v)=>{"use strict";v.d(Ae,{K:()=>ae});var D=v(17626),R=v(46160),G=v(89726),Z=v(63290),Q=v(10699),$=v(77712),H=(v(85931),v(90912),v(76898)),X=v(44917);function te(oe,le,de){let se,re;if(oe)for(let j=0,Y=oe.length;j{let le=class extends oe{constructor(...de){super(...de),this.layers=new R.Z;const re=Y=>{Y.parent=this,this.layerAdded(Y),"elevation"!==Y.type&&"base-elevation"!==Y.type||Z.Z.getLogger(this.declaredClass).error(`Layer 'title:${Y.title}, id:${Y.id}' of type '${Y.type}' is not supported as an operational layer and will therefore be ignored.`)},j=Y=>{Y.parent=null,this.layerRemoved(Y)};this.layers.on("before-add",Y=>(Y=>{Y.parent&&"remove"in Y.parent&&Y.parent.remove(Y)})(Y.item)),this.layers.on("after-add",Y=>re(Y.item)),this.layers.on("after-remove",Y=>j(Y.item))}destroy(){const de=this.layers.removeAll();for(const se of de)this.layerRemoved(se),se.destroy();this.layers.destroy()}set layers(de){this._set("layers",(0,G.Z)(de,this._get("layers")))}add(de,se){const re=this.layers;if(se=re.getNextIndex(se),de instanceof X.Z){const j=de;j.parent===this?this.reorder(j,se):re.add(j,se)}else(0,Q.y8)(de)?de.then(j=>{this.destroyed||this.add(j,se)}):Z.Z.getLogger(this.declaredClass).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(de,se){const re=this.layers;se=re.getNextIndex(se),de.slice().forEach(j=>{j.parent!==this?(re.add(j,se),se+=1):this.reorder(j,se)})}findLayerById(de){return te(this.layers,"id",de)}findLayerByUid(de){return te(this.layers,"uid",de)}remove(de){return this.layers.remove(de)}removeMany(de){return this.layers.removeMany(de)}removeAll(){return this.layers.removeAll()}reorder(de,se){return this.layers.reorder(de,se)}layerAdded(de){}layerRemoved(de){}};return(0,D._)([(0,$.Cb)()],le.prototype,"layers",null),le=(0,D._)([(0,H.j)("esri.support.LayersMixin")],le),le}},6119:(nt,Ae,v)=>{"use strict";v.d(Ae,{Q:()=>X});var D=v(17626),R=v(46160),G=v(89726),Z=v(63290),Q=v(77712),B=(v(85931),v(90912),v(76898));function H(te,ae,oe){if(te)for(let le=0,de=te.length;le{let ae=class extends te{constructor(...oe){super(...oe),this.tables=new R.Z,this.tables.on("after-add",le=>{const de=le.item;de.parent&&de.parent!==this&&"tables"in de.parent&&de.parent.tables.remove(de),de.parent=this,"feature"!==de.type&&Z.Z.getLogger(this.declaredClass).error(`Layer 'title:${de.title}, id:${de.id}' of type '${de.type}' is not supported as a table and will therefore be ignored.`)}),this.tables.on("after-remove",le=>{le.item.parent=null})}destroy(){const oe=this.tables.removeAll();for(const le of oe)le.destroy();this.tables.destroy()}set tables(oe){this._set("tables",(0,G.Z)(oe,this._get("tables")))}findTableById(oe){return H(this.tables,"id",oe)}findTableByUid(oe){return H(this.tables,"uid",oe)}};return(0,D._)([(0,Q.Cb)()],ae.prototype,"tables",null),ae=(0,D._)([(0,B.j)("esri.support.TablesMixin")],ae),ae}},59397:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(14517),G=v(61996),Z=v(77712),W=(v(85931),v(90912),v(76898));let H=B=class extends((0,G.IG)(R.Z)){constructor(te){super(te),this.active=!1,this.className=null,this.disabled=!1,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new B({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,D._)([(0,Z.Cb)()],H.prototype,"active",void 0),(0,D._)([(0,Z.Cb)()],H.prototype,"className",void 0),(0,D._)([(0,Z.Cb)()],H.prototype,"disabled",void 0),(0,D._)([(0,Z.Cb)()],H.prototype,"id",void 0),(0,D._)([(0,Z.Cb)()],H.prototype,"indicator",void 0),(0,D._)([(0,Z.Cb)()],H.prototype,"title",void 0),(0,D._)([(0,Z.Cb)()],H.prototype,"type",void 0),(0,D._)([(0,Z.Cb)()],H.prototype,"visible",void 0),H=B=(0,D._)([(0,W.j)("esri.support.actions.ActionBase")],H);const X=H},48753:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(59397);let B=W=class extends $.Z{constructor(X){super(X),this.image=null,this.type="button"}clone(){return new W({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,D._)([(0,R.Cb)()],B.prototype,"image",void 0),B=W=(0,D._)([(0,Q.j)("esri.support.Action.ActionButton")],B);const H=B},10671:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var W,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(59397);let B=W=class extends $.Z{constructor(X){super(X),this.image=null,this.type="toggle",this.value=!1}clone(){return new W({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,D._)([(0,R.Cb)()],B.prototype,"image",void 0),(0,D._)([(0,R.Cb)()],B.prototype,"value",void 0),B=W=(0,D._)([(0,Q.j)("esri.support.Action.ActionToggle")],B);const H=B},12680:(nt,Ae,v)=>{"use strict";v.d(Ae,{r:()=>Z});var D=v(21726);const R=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function Z(Q){const $=(0,D.P$)(Q,!0);return!!$&&$.endsWith(".arcgis.com")&&!R.includes($)&&!Q.endsWith("/sharing/rest/generateToken")}},46679:(nt,Ae,v)=>{"use strict";v.d(Ae,{LC:()=>H,WW:()=>X,Yi:()=>te,mz:()=>le,pp:()=>oe});var D=v(15861),G=(v(29132),v(26584)),Z=v(63290),Q=v(62208),$=v(65234);const W=Z.Z.getLogger("esri.support.arcadeOnDemand");let B;function H(){return B||(B=(0,D.Z)(function*(){const de=yield Promise.all([v.e(8592),v.e(4988)]).then(v.bind(v,4988));return{arcade:de.arcade,arcadeUtils:de,Dictionary:de.Dictionary,Feature:de.arcadeFeature}})()),B}const X=(de,se,re)=>le.create(de,se,re,null,["$feature"]),te=(de,se,re)=>le.create(de,se,re,null,["$feature","$view"]),oe=(de,se,re,j)=>le.create(de,se,re,j,["$feature","$view"]);class le{constructor(se,re,j,Y,ee,ie,J,ce){this.script=se,this.evaluate=ee;const ue=Array.isArray(J)?J:J.fields;this.fields=ue,this._syntaxTree=Y,this._arcade=re,this._arcadeDictionary=j,this._arcadeFeature=ie,this._spatialReference=ce,this._referencesGeometry=re.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static create(se,re,j,Y,ee,ie){return(0,D.Z)(function*(){const{arcade:J,Feature:ce,Dictionary:ue}=yield H(),pe=$.Z.fromJSON(re);let he=null;try{he=J.parseScript(se,ie)}catch(We){return W.error(new G.Z("arcade-bad-expression","Failed to parse arcade script",{script:se,error:We})),null}const me=ee.reduce((We,Ce)=>({...We,[Ce]:null}),{});let ge=null;(0,Q.pC)(Y)&&(ge=new ue(Y),ge.immutable=!0,me.$config=null);const _e=J.scriptUsesGeometryEngine(he),Ee=_e&&J.enableGeometrySupport(),De=J.scriptUsesFeatureSet(he)&&J.enableFeatureSetSupport(),be=J.scriptIsAsync(he),Se=be&&J.enableAsyncSupport(),ye={vars:me,spatialReference:pe,useAsync:!!Se};yield Promise.all([Ee,De,Se]);const ve=new Set;yield J.loadDependentModules(ve,he,null,be,_e);const xe=new ue;xe.immutable=!1,xe.setField("scale",0);const ze=J.compileScript(he,ye);return new le(se,J,ue,he,We=>("$view"in We&&We.$view&&(xe.setField("scale",We.$view.scale),We.$view=xe),ge&&(We.$config=ge),ze({vars:We,spatialReference:pe})),new ce,j,pe)})()}repurposeFeature(se){return se.geometry&&!se.geometry.spatialReference&&(se.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(se.geometry,se.attributes,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(se){return this._arcade.referencesMember(this._syntaxTree,se)}referencesFunction(se){return this._arcade.referencesFunction(this._syntaxTree,se)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},33954:(nt,Ae,v)=>{"use strict";v.d(Ae,{g:()=>Z,s:()=>$});var D=v(15861),R=v(54346),G=v(41840);function Z(W){return Q.apply(this,arguments)}function Q(){return(Q=(0,D.Z)(function*(W){if(!W)return;const B=W.includes("-vector")?W.slice(0,W.indexOf("-vector")):W,H=yield(0,G.ME)("esri/t9n/basemaps");return H[W]||H[B]})).apply(this,arguments)}const $={streets:{id:"streets",classic:!0,deprecated:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets.jpg")},baseMapLayers:[{id:"streets-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Street Map",showLegend:!1,visibility:!0,opacity:1}]},satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},topo:{id:"topo",classic:!0,deprecated:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/topo.jpg")},baseMapLayers:[{id:"topo-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Topo Map",showLegend:!1,visibility:!0,opacity:1}]},gray:{id:"gray",classic:!0,deprecated:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/gray.jpg")},baseMapLayers:[{id:"gray-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"dark-gray":{id:"dark-gray",classic:!0,deprecated:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/dark-gray.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"dark-gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"national-geographic":{id:"national-geographic",classic:!0,deprecated:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/national-geographic.jpg")},baseMapLayers:[{id:"national-geographic-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer",title:"NatGeo World Map",showLegend:!1,layerType:"ArcGISTiledMapServiceLayer",visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"arcgis-imagery":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-night.jpg")},title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},"arcgis-topographic":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return(0,R.V)("esri/images/basemap/oceans.jpg")},title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]},"arcgis-human-geography":{title:"Human Geography",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Base",title:"Human Geography Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Detail",title:"Human Geography Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Label",title:"Human Geography Label",isReference:!0}]},"arcgis-human-geography-dark":{title:"Human Geography (Dark)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Base",title:"Human Geography Dark Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Detail",title:"Human Geography Dark Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Label",title:"Human Geography Dark Label",isReference:!0}]}}},38953:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>R});var D=v(46882);function R(G){return new D.Z({getCollections:()=>[G.tables,G.layers],getChildrenFunction:Z=>{const Q=[];return"tables"in Z&&Q.push(Z.tables),"layers"in Z&&Q.push(Z.layers),Q},itemFilterFunction:Z=>{const Q=Z.parent;return Q&&"tables"in Q&&Q.tables.includes(Z)}})}},35560:(nt,Ae,v)=>{"use strict";v.d(Ae,{K3:()=>R,Rx:()=>Q,hq:()=>G});var D=v(8314);const R=()=>!!(0,D.Z)("enable-feature:force-wosr"),G=()=>!!(0,D.Z)("enable-feature:direct-3d-object-feature-layer-display"),Q=()=>!!(0,D.Z)("enable-feature:SceneLayer-editing")},49430:(nt,Ae,v)=>{"use strict";v.d(Ae,{eZ:()=>de});var D=v(73281),R=v(36630),G=v(55664),W=(v(55013),v(16615),v(82561),v(75484)),te=(v(64531),v(6785),v(501),v(25621)),ae=v(66845);const oe=["oid","global-id"],le=["oid","global-id","guid"];function de({displayField:Se,editFieldsInfo:ye,fields:ve,objectIdField:xe,title:ze},Ke){if(!ve)return null;const We=function ue({editFieldsInfo:Se,fields:ye,objectIdField:ve},xe){return function Y(Se,ye){const ve=Se;return ye&&(Se=Se.filter(xe=>!ye.includes(xe.type))),Se===ve&&(Se=Se.slice()),Se.sort(ee),Se}(ye??[],xe?.ignoreFieldTypes||be).map(ze=>new te.Z({fieldName:ze.name,isEditable:J(ze,Se),label:ze.alias,format:me(ze),visible:j(ze,{editFieldsInfo:Se,objectIdField:ve,visibleFieldNames:xe?.visibleFieldNames})}))}({editFieldsInfo:ye,fields:ve,objectIdField:xe},Ke);if(!We.length)return null;const Ce=function Ee(Se){const ye=(0,R.O5)(Se),{titleBase:ve}=Se;return ye?`${ve}: {${ye.trim()}}`:ve??""}({titleBase:ze,fields:ve,displayField:Se}),Be=function ge(){return[new W.Z,new G.Z]}();return new D.Z({title:Ce,content:Be,fieldInfos:We})}const re=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],j=(Se,{editFieldsInfo:ye,objectIdField:ve,visibleFieldNames:xe})=>xe?xe.has(Se.name):!(ie(Se.name,ye)||ve&&Se.name===ve||oe.includes(Se.type)||re.some(ze=>ze.test(Se.name)));function ee(Se,ye){return"oid"===Se.type?-1:"oid"===ye.type?1:De(Se)?-1:De(ye)?1:(Se.alias||Se.name).toLocaleLowerCase().localeCompare((ye.alias||ye.name).toLocaleLowerCase())}function ie(Se,ye){if(!Se||!ye)return!1;const{creationDateField:ve,creatorField:xe,editDateField:ze,editorField:Ke}=ye;return[ve&&ve.toLowerCase(),xe&&xe.toLowerCase(),ze&&ze.toLowerCase(),Ke&&Ke.toLowerCase()].includes(Se.toLowerCase())}function J(Se,ye){return Se.editable&&!le.includes(Se.type)&&!ie(Se.name,ye)}function me(Se){switch(Se.type){case"small-integer":case"integer":case"single":return new ae.Z({digitSeparator:!0,places:0});case"double":return new ae.Z({digitSeparator:!0,places:2});case"date":return new ae.Z({dateFormat:"long-month-day-year"});default:return"string"===Se.type&&(0,R.Ec)(Se.name)?new ae.Z({digitSeparator:!0,places:0}):null}}function De(Se){return"name"===(Se.name&&Se.name.toLowerCase())||"name"===(Se.alias&&Se.alias.toLowerCase())}const be=["geometry","blob","raster","guid","xml"]},70026:(nt,Ae,v)=>{"use strict";v.d(Ae,{t:()=>G});var D=v(15861),R=v(84792);function G(Q,$){return Z.apply(this,arguments)}function Z(){return(Z=(0,D.Z)(function*(Q,$){const{data:W}=yield(0,R.default)(Q,{responseType:"image",...$});return W})).apply(this,arguments)}},33899:(nt,Ae,v)=>{"use strict";v.d(Ae,{Hu:()=>H,fY:()=>W,jH:()=>X,jz:()=>te});var D=v(15861),R=v(59318),G=v(8314),Z=v(62208),Q=v(10699),$=v(21726);function W(oe,le,de=!1,se){return new Promise((re,j)=>{if((0,Q.Hc)(se))return void j(B());let Y=()=>{J(),j(new Error(`Unable to load ${le}`))},ee=()=>{const ce=oe;J(),re(ce)},ie=()=>{if(!oe)return;const ce=oe;J(),ce.src="",j(B())};const J=()=>{(0,G.Z)("esri-image-decode")||(oe.removeEventListener("error",Y),oe.removeEventListener("load",ee)),Y=null,ee=null,oe=null,(0,Z.pC)(se)&&se.removeEventListener("abort",ie),ie=null,de&&URL.revokeObjectURL(le)};(0,Z.pC)(se)&&se.addEventListener("abort",ie),(0,G.Z)("esri-image-decode")?oe.decode().then(ee,Y):(oe.addEventListener("error",Y),oe.addEventListener("load",ee))})}function B(){try{return new DOMException("Aborted","AbortError")}catch{const oe=new Error;return oe.name="AbortError",oe}}function H(oe){R.Z.request.crossOriginNoCorsDomains||(R.Z.request.crossOriginNoCorsDomains={});const le=R.Z.request.crossOriginNoCorsDomains;for(let de of oe)de=de.toLowerCase(),/^https?:\/\//.test(de)?le[(0,$.P$)(de)??""]=0:(le[(0,$.P$)("http://"+de)??""]=0,le[(0,$.P$)("https://"+de)??""]=0)}function X(oe){const le=R.Z.request.crossOriginNoCorsDomains;if(le){let de=(0,$.P$)(oe);if(de)return de=de.toLowerCase(),!(0,$.D6)(de,(0,$.TI)())&&le[de]{"use strict";v.d(Ae,{$:()=>R,r:()=>D});const D="20221121",R="f520630575ed53cf8b49e5f1492799065ee366e5"},20383:(nt,Ae,v)=>{"use strict";v.d(Ae,{se:()=>Xe,cT:()=>Fe,dU:()=>je,S9:()=>Ie,LB:()=>Re,AH:()=>He,yK:()=>Pe,S6:()=>Ne,QT:()=>Ge,f_:()=>Me});var ce,D=v(90912),R=v(383),G=v(94398),Q=(v(65499),v(48575)),H=(v(9260),v(11472),v(26531),v(22490)),X=v(9436),oe=(v(21068),v(46735),v(36687)),se=(v(2066),v(69147),v(17626)),re=v(58817),j=v(23841),Y=v(77712),ee=v(55342),ie=v(76898),J=v(69738);let ue=ce=class extends Q.Z{constructor(...Ye){super(...Ye),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(Ye,Je,rt,tt){if(Ye&&"string"!=typeof Ye&&null==Ye.imageData)return Ye;const et={};return Ye&&(et.url=Ye),Je&&(et.outline=Je),null!=rt&&(et.width=(0,j.t_)(rt)),null!=tt&&(et.height=(0,j.t_)(tt)),et}clone(){const Ye=new ce({color:(0,re.d9)(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return Ye._set("source",(0,re.d9)(this.source)),Ye}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,se._)([(0,ee.J)({esriPFS:"picture-fill"},{readOnly:!0})],ue.prototype,"type",void 0),(0,se._)([(0,Y.Cb)(J.KA)],ue.prototype,"url",void 0),(0,se._)([(0,Y.Cb)({type:Number,json:{write:!0}})],ue.prototype,"xscale",void 0),(0,se._)([(0,Y.Cb)({type:Number,json:{write:!0}})],ue.prototype,"yscale",void 0),(0,se._)([(0,Y.Cb)({type:Number,cast:j.t_,json:{write:!0}})],ue.prototype,"width",void 0),(0,se._)([(0,Y.Cb)({type:Number,cast:j.t_,json:{write:!0}})],ue.prototype,"height",void 0),(0,se._)([(0,Y.Cb)({type:Number,cast:j.t_,json:{write:!0}})],ue.prototype,"xoffset",void 0),(0,se._)([(0,Y.Cb)({type:Number,cast:j.t_,json:{write:!0}})],ue.prototype,"yoffset",void 0),(0,se._)([(0,Y.Cb)(J.Ds)],ue.prototype,"source",void 0),ue=ce=(0,se._)([(0,ie.j)("esri.symbols.PictureFillSymbol")],ue);const pe=ue;var he=v(13546),me=v(69852),ge=v(89673),_e=v(88493),Ee=v(52068),De=v(57213),be=v(10012),ve=(v(39368),v(97665),v(35540)),Ke=(v(21716),v(72622),v(12874));function Fe(Ye){if(!Ye)return!1;switch(Ye.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function je(Ye){if(!Ye)return!1;switch(Ye.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}v(17497),v(71530);const Re={base:be.Z,key:"type",typeMap:{"simple-fill":_e.Z,"picture-fill":pe,"picture-marker":he.Z,"simple-line":Ee.Z,"simple-marker":De.Z,text:ve.Z,"label-3d":H.Z,"line-3d":X.Z,"mesh-3d":oe.Z,"point-3d":me.Z,"polygon-3d":ge.Z,"web-style":Ke.Z,cim:G.Z},errorContext:"symbol"},He={base:be.Z,key:"type",typeMap:{"picture-marker":he.Z,"simple-marker":De.Z,text:ve.Z,"web-style":Ke.Z,cim:G.Z},errorContext:"symbol"},Ie=(0,R.d)({types:Re}),Ge={base:be.Z,key:"type",typeMap:{"simple-fill":_e.Z,"picture-fill":pe,"picture-marker":he.Z,"simple-line":Ee.Z,"simple-marker":De.Z,text:ve.Z,"line-3d":X.Z,"mesh-3d":oe.Z,"point-3d":me.Z,"polygon-3d":ge.Z,"web-style":Ke.Z,cim:G.Z},errorContext:"symbol"},Pe={base:be.Z,key:"type",typeMap:{text:ve.Z,"label-3d":H.Z},errorContext:"symbol"},Me={base:be.Z,key:"type",typeMap:{"line-3d":X.Z,"mesh-3d":oe.Z,"point-3d":me.Z,"polygon-3d":ge.Z,"web-style":Ke.Z,cim:G.Z},errorContext:"symbol"},Ne={base:be.Z,key:"type",typeMap:{"label-3d":H.Z},errorContext:"symbol"},Xe=(0,D.N7)(Re)},94398:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var oe,D=v(15861),R=v(17626),G=v(58817),Z=v(77275),Q=v(77712),W=(v(90912),v(55342)),B=v(68653),H=v(76898),X=v(99433),te=v(36630),ae=v(10012);let le=oe=class extends ae.Z{constructor(se){super(se),this.data=null,this.type="cim"}readData(se,re){return re}writeData(se,re){if(se)for(const j in se)re[j]=se[j]}collectRequiredFields(se,re){var j=this;return(0,D.Z)(function*(){if("CIMSymbolReference"===j.data?.type){const Y=j.data.primitiveOverrides;if(Y){const ee=Y.map(ie=>(0,te.io)(se,re,ie.valueExpressionInfo.expression));yield Promise.all(ee)}}})()}clone(){return new oe({data:(0,G.d9)(this.data)})}hash(){return(0,Z.hP)(JSON.stringify(this.data)).toString()}};(0,R._)([(0,Q.Cb)({json:{write:!1}})],le.prototype,"color",void 0),(0,R._)([(0,Q.Cb)({json:{write:!0}})],le.prototype,"data",void 0),(0,R._)([(0,B.r)("data",["symbol"])],le.prototype,"readData",null),(0,R._)([(0,X.c)("data",{})],le.prototype,"writeData",null),(0,R._)([(0,W.J)({CIMSymbolReference:"cim"},{readOnly:!0})],le.prototype,"type",void 0),le=oe=(0,R._)([(0,H.j)("esri.symbols.CIMSymbol")],le);const de=le},65499:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var te,D=v(17626),R=v(62208),G=v(77712),$=(v(85931),v(90912),v(55342)),W=v(76898),B=v(97665),H=v(61261),X=v(64830);let ae=te=class extends B.Z{constructor(le){super(le),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new te({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:(0,R.pC)(this.material)?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};(0,D._)([(0,$.J)({Extrude:"extrude"},{readOnly:!0})],ae.prototype,"type",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],ae.prototype,"size",void 0),(0,D._)([(0,G.Cb)({type:X.b,json:{write:!0}})],ae.prototype,"material",void 0),(0,D._)([(0,G.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],ae.prototype,"castShadows",void 0),(0,D._)([(0,G.Cb)(H.Z)],ae.prototype,"edges",void 0),ae=te=(0,D._)([(0,W.j)("esri.symbols.ExtrudeSymbol3DLayer")],ae);const oe=ae},48575:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(52068),W=v(10012);let B=class extends W.Z{constructor(X){super(X),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,D._)([(0,R.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":$.Z}},json:{default:null,write:!0}})],B.prototype,"outline",void 0),(0,D._)([(0,R.Cb)({type:["simple-fill","picture-fill"],readOnly:!0})],B.prototype,"type",void 0),B=(0,D._)([(0,Q.j)("esri.symbols.FillSymbol")],B);const H=B},9260:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>_e});var j,D=v(17626),R=v(62208),G=v(77712),$=(v(85931),v(90912),v(55342)),W=v(76898),B=v(97665),H=v(61261),X=v(63743),te=v(153),ae=v(99255),oe=v(12948),re=(v(63290),v(26584),v(8314),v(64830));let Y=j=class extends re.b{constructor(Ee){super(Ee),this.colorMixMode=null}clone(){const Ee={color:(0,R.pC)(this.color)?this.color.clone():null,colorMixMode:this.colorMixMode};return new j(Ee)}};(0,D._)([(0,$.J)({multiply:"multiply",replace:"replace",tint:"tint"})],Y.prototype,"colorMixMode",void 0),Y=j=(0,D._)([(0,W.j)("esri.symbols.support.Symbol3DFillMaterial")],Y);var pe,ee=v(91558),ie=v(86810),J=v(23841),ce=v(60958),ue=v(43652);let he=pe=class extends ie.wq{constructor(Ee){super(Ee),this.color=new ee.Z([0,0,0,1]),this.size=(0,J.Wz)(1),this.pattern=null,this.patternCap="butt"}clone(){const Ee={color:(0,R.pC)(this.color)?this.color.clone():null,size:this.size,pattern:(0,R.pC)(this.pattern)?this.pattern.clone():null,patternCap:this.patternCap};return new pe(Ee)}};var me;(0,D._)([(0,G.Cb)(ce.a)],he.prototype,"color",void 0),(0,D._)([(0,G.Cb)(ce.y)],he.prototype,"size",void 0),(0,D._)([(0,G.Cb)(ae.D)],he.prototype,"pattern",void 0),(0,D._)([(0,G.Cb)({type:ue.Hc,json:{default:"butt",write:{overridePolicy(){return{enabled:(0,R.pC)(this.pattern)}}}}})],he.prototype,"patternCap",void 0),he=pe=(0,D._)([(0,W.j)("esri.symbols.support.Symbol3DOutline")],he);let ge=me=class extends B.Z{constructor(Ee){super(Ee),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const Ee={edges:(0,R.pC)(this.edges)?this.edges.clone():null,enabled:this.enabled,material:(0,R.pC)(this.material)?this.material.clone():null,pattern:(0,R.pC)(this.pattern)?this.pattern.clone():null,castShadows:this.castShadows,outline:(0,R.pC)(this.outline)?this.outline.clone():null};return new me(Ee)}static fromSimpleFillSymbol(Ee){const De=Ee.outline&&Ee.outline.style&&"inside-frame"!==Ee.outline.style&&"solid"!==Ee.outline.style?new X.Z({style:Ee.outline.style}):null,be={size:Ee.outline?.width??0,color:(Ee.outline?.color??oe.ix).clone(),pattern:De};return De&&Ee.outline?.cap&&(be.patternCap=Ee.outline.cap),new me({material:new Y({color:(Ee.color??oe.l9).clone()}),pattern:Ee.style&&"solid"!==Ee.style?new te.Z({style:Ee.style}):null,outline:be})}};(0,D._)([(0,$.J)({Fill:"fill"},{readOnly:!0})],ge.prototype,"type",void 0),(0,D._)([(0,G.Cb)({type:Y,json:{write:!0}})],ge.prototype,"material",void 0),(0,D._)([(0,G.Cb)(ae.q)],ge.prototype,"pattern",void 0),(0,D._)([(0,G.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],ge.prototype,"castShadows",void 0),(0,D._)([(0,G.Cb)({type:he,json:{write:!0}})],ge.prototype,"outline",void 0),(0,D._)([(0,G.Cb)(H.Z)],ge.prototype,"edges",void 0),ge=me=(0,D._)([(0,W.j)("esri.symbols.FillSymbol3DLayer")],ge);const _e=ge},11472:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var H,D=v(17626),R=v(86810),G=v(23841),Z=v(77712),$=(v(85931),v(66656)),W=v(76898),B=v(50369);let X=H=class extends R.wq{constructor(ae){super(ae),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(ae){return(0,G.t_)(ae)}clone(){return new H({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,D._)([(0,Z.Cb)({type:B.JT,json:{default:"none",write:!0}})],X.prototype,"decoration",void 0),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],X.prototype,"family",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:{overridePolicy:(ae,oe,le)=>({enabled:!le||!le.textSymbol3D})}}})],X.prototype,"size",void 0),(0,D._)([(0,$.p)("size")],X.prototype,"castSize",null),(0,D._)([(0,Z.Cb)({type:B.g6,json:{default:"normal",write:!0}})],X.prototype,"style",void 0),(0,D._)([(0,Z.Cb)({type:B.vC,json:{default:"normal",write:!0}})],X.prototype,"weight",void 0),X=H=(0,D._)([(0,W.j)("esri.symbols.Font")],X);const te=X},26531:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ge});var j,D=v(17626),R=v(63290),G=v(62208),Z=v(21726),Q=v(77712),B=(v(85931),v(90912),v(55342)),H=v(76898),X=v(97665),te=v(12948),ae=v(33215),oe=v(60958),le=v(37519),de=v(91558),se=v(86810),re=v(23841);let Y=j=class extends se.wq{constructor(_e){super(_e),this.color=new de.Z([0,0,0,1]),this.size=(0,re.Wz)(1)}clone(){const _e={color:(0,G.pC)(this.color)?this.color.clone():null,size:this.size};return new j(_e)}};(0,D._)([(0,Q.Cb)(oe.a)],Y.prototype,"color",void 0),(0,D._)([(0,Q.Cb)(oe.y)],Y.prototype,"size",void 0),Y=j=(0,D._)([(0,H.j)("esri.symbols.support.Symbol3DIconOutline")],Y);var ie,ee=v(64830);const J="esri.symbols.IconSymbol3DLayer";let ce=ie=class extends X.Z{constructor(_e){super(_e),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new ie({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:(0,G.pC)(this.material)?this.material.clone():null,outline:(0,G.pC)(this.outline)?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(_e){const Ee=_e.color||te.ix,De=ue(_e),be=_e.outline&&_e.outline.width>0?{size:_e.outline.width,color:(_e.outline.color||te.ix).clone()}:null;return new ie({size:_e.size,resource:{primitive:me(_e.style)},material:{color:Ee},outline:be,anchor:De?"relative":void 0,anchorPosition:De})}static fromPictureMarkerSymbol(_e){const Ee=!_e.color||(0,te.rx)(_e.color)?te.ix:_e.color,De=ue(_e);return new ie({size:_e.width<=_e.height?_e.height:_e.width,resource:{href:_e.url},material:{color:Ee.clone()},anchor:De?"relative":void 0,anchorPosition:De})}static fromCIMSymbol(_e){return new ie({resource:{href:(0,Z._l)({mediaType:"application/json",data:JSON.stringify(_e.data)})}})}};function ue(_e){const Ee="width"in _e?_e.width:_e.size,De="height"in _e?_e.height:_e.size,be=pe(_e.xoffset),Se=pe(_e.yoffset);return(be||Se)&&Ee&&De?{x:-be/Ee,y:Se/De}:null}function pe(_e){return isFinite(_e)?_e:0}(0,D._)([(0,Q.Cb)({type:ee.b,json:{write:!0}})],ce.prototype,"material",void 0),(0,D._)([(0,Q.Cb)({type:ae.b,json:{write:!0}})],ce.prototype,"resource",void 0),(0,D._)([(0,B.J)({Icon:"icon"},{readOnly:!0})],ce.prototype,"type",void 0),(0,D._)([(0,Q.Cb)(oe.y)],ce.prototype,"size",void 0),(0,D._)([(0,B.J)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),(0,Q.Cb)({json:{default:"center"}})],ce.prototype,"anchor",void 0),(0,D._)([(0,Q.Cb)({type:le.e,json:{type:[Number],read:{reader:_e=>new le.e({x:_e[0],y:_e[1]})},write:{writer:(_e,Ee)=>{Ee.anchorPosition=[_e.x,_e.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],ce.prototype,"anchorPosition",void 0),(0,D._)([(0,Q.Cb)({type:Y,json:{write:!0}})],ce.prototype,"outline",void 0),ce=ie=(0,D._)([(0,H.j)(J)],ce);const he={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function me(_e){return he[_e]||(R.Z.getLogger(J).warn(`${_e} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const ge=ce},22490:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var ae,D=v(17626),R=v(46160),G=v(58817),Z=v(77712),$=(v(90912),v(55342)),W=v(76898),B=v(39368),H=v(21716),X=v(9824),te=v(97595);const oe=R.Z.ofType({base:null,key:"type",typeMap:{text:H.Z}});let le=ae=class extends B.Z{constructor(se){super(se),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new oe,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,X.gv)(this)}hasVisibleVerticalOffset(){return(0,X.Uy)(this)}clone(){return new ae({styleOrigin:(0,G.d9)(this.styleOrigin),symbolLayers:(0,G.d9)(this.symbolLayers),thumbnail:(0,G.d9)(this.thumbnail),callout:(0,G.d9)(this.callout),verticalOffset:(0,G.d9)(this.verticalOffset)})}static fromTextSymbol(se){return new ae({symbolLayers:[H.Z.fromTextSymbol(se)]})}};(0,D._)([(0,Z.Cb)({type:te.Z,json:{write:!0}})],le.prototype,"verticalOffset",void 0),(0,D._)([(0,Z.Cb)(X.Y2)],le.prototype,"callout",void 0),(0,D._)([(0,Z.Cb)({json:{read:!1,write:!1}})],le.prototype,"styleOrigin",void 0),(0,D._)([(0,Z.Cb)({type:oe})],le.prototype,"symbolLayers",void 0),(0,D._)([(0,$.J)({LabelSymbol3D:"label-3d"},{readOnly:!0})],le.prototype,"type",void 0),le=ae=(0,D._)([(0,W.j)("esri.symbols.LabelSymbol3D")],le);const de=le},9436:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var te,D=v(17626),R=v(46160),G=v(58817),Z=v(77712),$=(v(90912),v(55342)),W=v(76898),B=v(21068),H=v(69147),X=v(39368);const ae=R.Z.ofType({base:null,key:"type",typeMap:{line:B.Z,path:H.Z}}),oe=R.Z.ofType({base:null,key:"type",typeMap:{line:B.Z,path:H.Z}});let le=te=class extends X.Z{constructor(se){super(se),this.symbolLayers=new ae,this.type="line-3d"}clone(){return new te({styleOrigin:(0,G.d9)(this.styleOrigin),symbolLayers:(0,G.d9)(this.symbolLayers),thumbnail:(0,G.d9)(this.thumbnail)})}static fromSimpleLineSymbol(se){return new te({symbolLayers:[B.Z.fromSimpleLineSymbol(se)]})}};(0,D._)([(0,Z.Cb)({type:ae,json:{type:oe}})],le.prototype,"symbolLayers",void 0),(0,D._)([(0,$.J)({LineSymbol3D:"line-3d"},{readOnly:!0})],le.prototype,"type",void 0),le=te=(0,D._)([(0,W.j)("esri.symbols.LineSymbol3D")],le);const de=le},21068:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ue});var D=v(17626),R=v(62208),G=v(23841),Z=v(77712),$=(v(85931),v(90912)),W=v(55342),B=v(76898),H=v(91558),X=v(79608),te=v(86810),ae=v(67866);let oe=class extends((0,X.J)(te.wq)){constructor(pe){super(pe),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(pe){return(0,R.pC)(pe)&&pe.placement===this.placement&&pe.style===this.style&&((0,R.Wi)(this.color)&&(0,R.Wi)(pe.color)||(0,R.pC)(this.color)&&(0,R.pC)(pe.color)&&this.color.toJSON()===pe.color.toJSON())}};(0,D._)([(0,Z.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],oe.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:ae.J,json:{default:"begin-end",write:!0}})],oe.prototype,"placement",void 0),(0,D._)([(0,Z.Cb)({type:ae.k,json:{default:"arrow",write:!0}})],oe.prototype,"style",void 0),(0,D._)([(0,Z.Cb)({type:H.Z,json:{type:[$.z8],default:null,write:!0}})],oe.prototype,"color",void 0),oe=(0,D._)([(0,B.j)("esri.symbols.LineStyleMarker3D")],oe);const le=oe;var J,de=v(97665),se=v(63743),re=v(99255),j=v(12948),Y=v(60958),ee=v(64830),ie=v(43652);let ce=J=class extends de.Z{constructor(pe){super(pe),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,G.Wz)(1),this.pattern=null,this.marker=null}clone(){const pe={enabled:this.enabled,material:(0,R.pC)(this.material)?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:(0,R.pC)(this.pattern)?this.pattern.clone():null,marker:(0,R.pC)(this.marker)?this.marker.clone():null};return new J(pe)}static fromSimpleLineSymbol(pe){const he={enabled:!0,size:pe.width??(0,G.Wz)(1),cap:pe.cap||"butt",join:pe.join||"miter",pattern:pe.style&&"inside-frame"!==pe.style?new se.Z({style:pe.style}):null,material:new ee.b({color:(pe.color||j.ix).clone()}),marker:pe.marker?new le({placement:pe.marker.placement,style:pe.marker.style,color:pe.marker.color?.clone()??null}):null};return new J(he)}};(0,D._)([(0,Z.Cb)({type:ee.b,json:{write:!0}})],ce.prototype,"material",void 0),(0,D._)([(0,W.J)({Line:"line"},{readOnly:!0})],ce.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:ie.w2,json:{write:!0,default:"miter"}})],ce.prototype,"join",void 0),(0,D._)([(0,Z.Cb)({type:ie.Hc,json:{write:!0,default:"butt"}})],ce.prototype,"cap",void 0),(0,D._)([(0,Z.Cb)(Y.y)],ce.prototype,"size",void 0),(0,D._)([(0,Z.Cb)(re.D)],ce.prototype,"pattern",void 0),(0,D._)([(0,Z.Cb)({types:{key:"type",base:le,typeMap:{style:le}},json:{write:!0}})],ce.prototype,"marker",void 0),ce=J=(0,D._)([(0,B.j)("esri.symbols.LineSymbol3DLayer")],ce);const ue=ce},46735:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var D=v(17626),R=v(23841),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(10012);let B=class extends W.Z{constructor(X){super(X),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,D._)([(0,G.Cb)({type:Number,json:{read:X=>X&&-1*X,write:(X,te)=>te.angle=X&&-1*X}})],B.prototype,"angle",void 0),(0,D._)([(0,G.Cb)({type:["simple-marker","picture-marker"],readOnly:!0})],B.prototype,"type",void 0),(0,D._)([(0,G.Cb)({type:Number,cast:R.t_,json:{write:!0}})],B.prototype,"xoffset",void 0),(0,D._)([(0,G.Cb)({type:Number,cast:R.t_,json:{write:!0}})],B.prototype,"yoffset",void 0),(0,D._)([(0,G.Cb)({type:Number,cast:X=>"auto"===X?X:(0,R.t_)(X),json:{write:!0}})],B.prototype,"size",void 0),B=(0,D._)([(0,$.j)("esri.symbols.MarkerSymbol")],B);const H=B},36687:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var X,D=v(17626),R=v(46160),G=v(58817),Z=v(77712),$=(v(90912),v(55342)),W=v(76898),B=v(9260),H=v(39368);const te=R.Z.ofType({base:null,key:"type",typeMap:{fill:B.Z}});let ae=X=class extends H.Z{constructor(le){super(le),this.symbolLayers=new te,this.type="mesh-3d"}clone(){return new X({styleOrigin:(0,G.d9)(this.styleOrigin),symbolLayers:(0,G.d9)(this.symbolLayers),thumbnail:(0,G.d9)(this.thumbnail)})}static fromSimpleFillSymbol(le){return new X({symbolLayers:[B.Z.fromSimpleFillSymbol(le)]})}};(0,D._)([(0,Z.Cb)({type:te})],ae.prototype,"symbolLayers",void 0),(0,D._)([(0,$.J)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],ae.prototype,"type",void 0),ae=X=(0,D._)([(0,W.j)("esri.symbols.MeshSymbol3D")],ae);const oe=ae},2066:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>se});var te,D=v(17626),R=v(62208),G=v(77712),$=(v(85931),v(90912),v(55342)),W=v(76898),B=v(97665),H=v(48521),X=v(14517);let ae=te=class extends X.Z{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new te({x:this.x,y:this.y,z:this.z})}};(0,D._)([(0,G.Cb)({type:Number})],ae.prototype,"x",void 0),(0,D._)([(0,G.Cb)({type:Number})],ae.prototype,"y",void 0),(0,D._)([(0,G.Cb)({type:Number})],ae.prototype,"z",void 0),ae=te=(0,D._)([(0,W.j)("esri.symbols.support.Symbol3DAnchorPosition3D")],ae);var le,oe=v(64830);let de=le=class extends B.Z{constructor(re){super(re),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new le({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:(0,R.pC)(this.material)?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,D._)([(0,G.Cb)({type:oe.b,json:{write:!0}})],de.prototype,"material",void 0),(0,D._)([(0,G.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],de.prototype,"castShadows",void 0),(0,D._)([(0,G.Cb)({type:H.k,json:{write:!0}})],de.prototype,"resource",void 0),(0,D._)([(0,$.J)({Object:"object"},{readOnly:!0})],de.prototype,"type",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],de.prototype,"width",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],de.prototype,"height",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],de.prototype,"depth",void 0),(0,D._)([(0,$.J)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,G.Cb)({json:{default:"origin"}})],de.prototype,"anchor",void 0),(0,D._)([(0,G.Cb)({type:ae,json:{type:[Number],read:{reader:re=>new ae({x:re[0],y:re[1],z:re[2]})},write:{writer:(re,j)=>{j.anchorPosition=[re.x,re.y,re.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],de.prototype,"anchorPosition",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],de.prototype,"heading",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],de.prototype,"tilt",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],de.prototype,"roll",void 0),(0,D._)([(0,G.Cb)({readOnly:!0})],de.prototype,"isPrimitive",null),de=le=(0,D._)([(0,W.j)("esri.symbols.ObjectSymbol3DLayer")],de);const se=de},69147:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var ae,D=v(17626),R=v(62208),G=v(77712),$=(v(85931),v(90912),v(55342)),W=v(68653),B=v(76898),H=v(97665),X=v(64830),te=v(43652);let oe=ae=class extends H.Z{constructor(de){super(de),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(de,se){return de??(null==se.height&&null!=se.size?se.size:void 0)}readHeight(de,se){return de??(null==se.width&&null!=se.size?se.size:void 0)}clone(){return new ae({enabled:this.enabled,material:(0,R.pC)(this.material)?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,D._)([(0,G.Cb)({type:X.b,json:{write:!0}})],oe.prototype,"material",void 0),(0,D._)([(0,G.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],oe.prototype,"castShadows",void 0),(0,D._)([(0,$.J)({Path:"path"},{readOnly:!0})],oe.prototype,"type",void 0),(0,D._)([(0,G.Cb)({type:["circle","quad"],json:{write:!0,default:"circle"}})],oe.prototype,"profile",void 0),(0,D._)([(0,G.Cb)({type:te.w2,json:{write:!0,default:"miter"}})],oe.prototype,"join",void 0),(0,D._)([(0,G.Cb)({type:te.KW,json:{write:!0,default:"butt"}})],oe.prototype,"cap",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],oe.prototype,"width",void 0),(0,D._)([(0,W.r)("width",["width","size","height"])],oe.prototype,"readWidth",null),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],oe.prototype,"height",void 0),(0,D._)([(0,W.r)("height",["height","size","width"])],oe.prototype,"readHeight",null),(0,D._)([(0,G.Cb)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],oe.prototype,"anchor",void 0),(0,D._)([(0,G.Cb)({type:["heading","all"],json:{write:!0,default:"all"}})],oe.prototype,"profileRotation",void 0),oe=ae=(0,D._)([(0,B.j)("esri.symbols.PathSymbol3DLayer")],oe);const le=oe},13546:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var te,D=v(17626),R=v(58817),G=v(23841),Z=v(77712),$=(v(90912),v(55342)),W=v(68653),B=v(76898),H=v(46735),X=v(69738);let ae=te=class extends H.Z{constructor(...le){super(...le),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(le,de,se){if(le&&"string"!=typeof le&&null==le.imageData)return le;const re={};return le&&(re.url=le),null!=de&&(re.width=(0,G.t_)(de)),null!=se&&(re.height=(0,G.t_)(se)),re}readHeight(le,de){return de.size||le}readWidth(le,de){return de.size||le}clone(){const le=new te({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return le._set("source",(0,R.d9)(this.source)),le}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,D._)([(0,Z.Cb)({json:{write:!1}})],ae.prototype,"color",void 0),(0,D._)([(0,$.J)({esriPMS:"picture-marker"},{readOnly:!0})],ae.prototype,"type",void 0),(0,D._)([(0,Z.Cb)(X.KA)],ae.prototype,"url",void 0),(0,D._)([(0,Z.Cb)(X.Ds)],ae.prototype,"source",void 0),(0,D._)([(0,Z.Cb)({type:Number,cast:G.t_,json:{write:!0}})],ae.prototype,"height",void 0),(0,D._)([(0,W.r)("height",["height","size"])],ae.prototype,"readHeight",null),(0,D._)([(0,Z.Cb)({type:Number,cast:G.t_,json:{write:!0}})],ae.prototype,"width",void 0),(0,D._)([(0,Z.Cb)({json:{write:!1}})],ae.prototype,"size",void 0),ae=te=(0,D._)([(0,B.j)("esri.symbols.PictureMarkerSymbol")],ae);const oe=ae},69852:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>re});var le,D=v(17626),R=v(46160),G=v(58817),Z=v(77712),$=(v(90912),v(55342)),W=v(76898),B=v(26531),H=v(2066),X=v(39368),te=v(21716),ae=v(9824),oe=v(97595);const de=R.Z.ofType({base:null,key:"type",typeMap:{icon:B.Z,object:H.Z,text:te.Z}});let se=le=class extends X.Z{constructor(j){super(j),this.verticalOffset=null,this.callout=null,this.symbolLayers=new de,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const j of this.symbolLayers.items)switch(j.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,ae.gv)(this)}hasVisibleVerticalOffset(){return(0,ae.Uy)(this)}clone(){return new le({verticalOffset:(0,G.d9)(this.verticalOffset),callout:(0,G.d9)(this.callout),styleOrigin:(0,G.d9)(this.styleOrigin),symbolLayers:(0,G.d9)(this.symbolLayers),thumbnail:(0,G.d9)(this.thumbnail)})}static fromSimpleMarkerSymbol(j){return new le({symbolLayers:[B.Z.fromSimpleMarkerSymbol(j)]})}static fromPictureMarkerSymbol(j){return new le({symbolLayers:[B.Z.fromPictureMarkerSymbol(j)]})}static fromCIMSymbol(j){return"CIMPointSymbol"!==j.data?.symbol?.type?null:new le(j.data.symbol?.callout?{symbolLayers:[B.Z.fromCIMSymbol(j)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}:{symbolLayers:[B.Z.fromCIMSymbol(j)]})}static fromTextSymbol(j){return new le({symbolLayers:[te.Z.fromTextSymbol(j)]})}};(0,D._)([(0,Z.Cb)({type:oe.Z,json:{write:!0}})],se.prototype,"verticalOffset",void 0),(0,D._)([(0,Z.Cb)(ae.Y2)],se.prototype,"callout",void 0),(0,D._)([(0,Z.Cb)({type:de,json:{origins:{"web-scene":{write:!0}}}})],se.prototype,"symbolLayers",void 0),(0,D._)([(0,$.J)({PointSymbol3D:"point-3d"},{readOnly:!0})],se.prototype,"type",void 0),se=le=(0,D._)([(0,W.j)("esri.symbols.PointSymbol3D")],se);const re=se},89673:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ee});var re,D=v(17626),R=v(46160),G=v(58817),Z=v(62208),Q=v(77712),W=(v(90912),v(55342)),B=v(76898),H=v(65499),X=v(9260),te=v(26531),ae=v(21068),oe=v(2066),le=v(39368),de=v(21716),se=v(72622);const j=R.Z.ofType({base:null,key:"type",typeMap:{extrude:H.Z,fill:X.Z,icon:te.Z,line:ae.Z,object:oe.Z,text:de.Z,water:se.Z}});let Y=re=class extends le.Z{constructor(ie){super(ie),this.symbolLayers=new j,this.type="polygon-3d"}clone(){return new re({styleOrigin:(0,G.d9)(this.styleOrigin),symbolLayers:(0,G.d9)(this.symbolLayers),thumbnail:(0,G.d9)(this.thumbnail)})}static fromJSON(ie){const J=new re;if(J.read(ie),2===J.symbolLayers.length&&"fill"===J.symbolLayers.getItemAt(0).type&&"line"===J.symbolLayers.getItemAt(1).type){const ce=J.symbolLayers.getItemAt(0),ue=J.symbolLayers.getItemAt(1);!ue.enabled||ie.symbolLayers&&ie.symbolLayers[1]&&!1===ie.symbolLayers[1].enable||(ce.outline={size:ue.size,color:(0,Z.pC)(ue.material)?ue.material.color:null}),J.symbolLayers.removeAt(1)}return J}static fromSimpleFillSymbol(ie){return new re({symbolLayers:[X.Z.fromSimpleFillSymbol(ie)]})}};(0,D._)([(0,Q.Cb)({type:j,json:{write:!0}})],Y.prototype,"symbolLayers",void 0),(0,D._)([(0,W.J)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],Y.prototype,"type",void 0),Y=re=(0,D._)([(0,B.j)("esri.symbols.PolygonSymbol3D")],Y);const ee=Y},88493:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var te,D=v(17626),R=v(91558),G=v(2076),Z=v(58817),Q=v(77712),W=(v(90912),v(55342)),B=v(76898),H=v(48575),X=v(52068);const ae=new G.X({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let oe=te=class extends H.Z{constructor(...de){super(...de),this.color=new R.Z([0,0,0,.25]),this.outline=new X.Z,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(de,se,re){if(de&&"string"!=typeof de)return de;const j={};return de&&(j.style=de),se&&(j.outline=se),re&&(j.color=re),j}clone(){return new te({color:(0,Z.d9)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,D._)([(0,Q.Cb)()],oe.prototype,"color",void 0),(0,D._)([(0,Q.Cb)()],oe.prototype,"outline",void 0),(0,D._)([(0,W.J)({esriSFS:"simple-fill"},{readOnly:!0})],oe.prototype,"type",void 0),(0,D._)([(0,Q.Cb)({type:ae.apiValues,json:{read:ae.read,write:ae.write}})],oe.prototype,"style",void 0),oe=te=(0,D._)([(0,B.j)("esri.symbols.SimpleFillSymbol")],oe);const le=oe},52068:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ue});var D=v(17626),R=v(2076),G=v(58817),Z=v(23841),Q=v(77712),W=(v(90912),v(55342)),B=v(76898),X=(v(85931),v(10012));let te=class extends X.Z{constructor(pe){super(pe),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,D._)([(0,W.J)({esriSLS:"simple-line"},{readOnly:!0})],te.prototype,"type",void 0),(0,D._)([(0,Q.Cb)({type:Number,cast:Z.t_,json:{write:!0}})],te.prototype,"width",void 0),te=(0,D._)([(0,B.j)("esri.symbols.LineSymbol")],te);const ae=te;var j,oe=v(91558),le=v(86810),de=v(68653),se=v(99433),re=v(67866);let Y=j=class extends le.wq{constructor(pe){super(pe),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(pe,he,me,ge){he[me]="web-map"===ge?.origin?"arrow":pe}set color(pe){this._set("color",pe)}readColor(pe){return pe&&null!=pe[0]?[pe[0],pe[1],pe[2],pe[3]/255]:pe}writeColor(pe,he,me,ge){"web-map"===ge?.origin||(he[me]=pe)}clone(){return new j({color:(0,G.d9)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,D._)([(0,Q.Cb)({type:["begin","end","begin-end"],json:{write:!0}})],Y.prototype,"placement",void 0),(0,D._)([(0,W.J)({"line-marker":"line-marker"},{readOnly:!0}),(0,Q.Cb)({json:{origins:{"web-map":{write:!1}}}})],Y.prototype,"type",void 0),(0,D._)([(0,Q.Cb)({type:re.k})],Y.prototype,"style",void 0),(0,D._)([(0,se.c)("style")],Y.prototype,"writeStyle",null),(0,D._)([(0,Q.Cb)({type:oe.Z,value:null,json:{write:{allowNull:!0}}})],Y.prototype,"color",null),(0,D._)([(0,de.r)("color")],Y.prototype,"readColor",null),(0,D._)([(0,se.c)("color")],Y.prototype,"writeColor",null),Y=j=(0,D._)([(0,B.j)("esri.symbols.LineSymbolMarker")],Y);const ee=Y;var ie;const J=new R.X({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let ce=ie=class extends ae{constructor(...pe){super(...pe),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(pe,he,me,ge,_e,Ee){if(pe&&"string"!=typeof pe)return pe;const De={};return null!=pe&&(De.style=pe),null!=he&&(De.color=he),null!=me&&(De.width=(0,Z.t_)(me)),null!=ge&&(De.cap=ge),null!=_e&&(De.join=_e),null!=Ee&&(De.miterLimit=(0,Z.t_)(Ee)),De}clone(){return new ie({color:(0,G.d9)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,D._)([(0,W.J)({esriSLS:"simple-line"},{readOnly:!0})],ce.prototype,"type",void 0),(0,D._)([(0,Q.Cb)({type:J.apiValues,json:{read:J.read,write:J.write}})],ce.prototype,"style",void 0),(0,D._)([(0,Q.Cb)({type:["butt","round","square"],json:{write:{overridePolicy:(pe,he,me)=>({enabled:"round"!==pe&&(null==me||null==me.origin)})}}})],ce.prototype,"cap",void 0),(0,D._)([(0,Q.Cb)({type:["miter","round","bevel"],json:{write:{overridePolicy:(pe,he,me)=>({enabled:"round"!==pe&&(null==me||null==me.origin)})}}})],ce.prototype,"join",void 0),(0,D._)([(0,Q.Cb)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":ee}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],ce.prototype,"marker",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{read:!1,write:!1}})],ce.prototype,"miterLimit",void 0),ce=ie=(0,D._)([(0,B.j)("esri.symbols.SimpleLineSymbol")],ce);const ue=ce},57213:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>se});var oe,D=v(17626),R=v(91558),G=v(2076),Z=v(58817),Q=v(23841),$=v(77712),B=(v(90912),v(55342)),H=v(76898),X=v(99433),te=v(46735),ae=v(52068);const le=new G.X({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let de=oe=class extends te.Z{constructor(...re){super(...re),this.color=new R.Z([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new ae.Z}normalizeCtorArgs(re,j,Y,ee){if(re&&"string"!=typeof re)return re;const ie={};return re&&(ie.style=re),null!=j&&(ie.size=(0,Q.t_)(j)),Y&&(ie.outline=Y),ee&&(ie.color=ee),ie}writeColor(re,j){re&&"x"!==this.style&&"cross"!==this.style&&(j.color=re.toJSON()),null===re&&(j.color=null)}set path(re){this.style="path",this._set("path",re)}clone(){return new oe({angle:this.angle,color:(0,Z.d9)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,D._)([(0,$.Cb)()],de.prototype,"color",void 0),(0,D._)([(0,X.c)("color")],de.prototype,"writeColor",null),(0,D._)([(0,B.J)({esriSMS:"simple-marker"},{readOnly:!0})],de.prototype,"type",void 0),(0,D._)([(0,$.Cb)()],de.prototype,"size",void 0),(0,D._)([(0,$.Cb)({type:le.apiValues,json:{read:le.read,write:le.write}})],de.prototype,"style",void 0),(0,D._)([(0,$.Cb)({type:String,json:{write:!0}})],de.prototype,"path",null),(0,D._)([(0,$.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":ae.Z}},json:{default:null,write:!0}})],de.prototype,"outline",void 0),de=oe=(0,D._)([(0,H.j)("esri.symbols.SimpleMarkerSymbol")],de);const se=de},10012:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var D=v(15861),R=v(17626),G=v(91558),Z=v(2076),Q=v(86810),$=v(77712),H=(v(85931),v(90912),v(68653)),X=v(76898);const te=new Z.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let ae=0,oe=class extends Q.wq{constructor(de){super(de),this.id="sym"+ae++,this.type=null,this.color=new G.Z([0,0,0,1])}readColor(de){return de&&null!=de[0]?[de[0],de[1],de[2],de[3]/255]:de}collectRequiredFields(de,se){return(0,D.Z)(function*(){})()}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,R._)([(0,$.Cb)({type:te.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:te.write}}})],oe.prototype,"type",void 0),(0,R._)([(0,$.Cb)({type:G.Z,json:{write:{allowNull:!0}}})],oe.prototype,"color",void 0),(0,R._)([(0,H.r)("color")],oe.prototype,"readColor",null),oe=(0,R._)([(0,X.j)("esri.symbols.Symbol")],oe);const le=oe},39368:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Ee});var D=v(17626),R=v(46160),G=v(89726),Z=v(63290),Q=v(21726),$=v(14889),W=v(77712),H=(v(85931),v(66656)),X=v(68653),te=v(76898),ae=v(99433),oe=v(84687),le=v(29840),de=v(65499),se=v(9260),re=v(26531),j=v(21068),Y=v(2066),ee=v(69147),ie=v(10012),J=v(97665),ce=v(21716),ue=v(72622),pe=v(77345),he=v(96296);const me={icon:re.Z,object:Y.Z,line:j.Z,path:ee.Z,fill:se.Z,extrude:de.Z,text:ce.Z,water:ue.Z},ge=R.Z.ofType({base:J.Z,key:"type",typeMap:me,errorContext:"symbol-layer"});let _e=class extends ie.Z{constructor(De){super(De),this.styleOrigin=null,this.thumbnail=null,this.type=null;const be=this.__accessor__&&this.__accessor__.metadatas&&this.__accessor__.metadatas.symbolLayers;this._set("symbolLayers",new(be&&be.type||R.Z))}get color(){return null}set color(De){this.constructed&&Z.Z.getLogger(this.declaredClass).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(De){(0,G.Z)(De,this._get("symbolLayers"))}readStyleOrigin(De,be,Se){if(De.styleUrl&&De.name){const ye=(0,le.f)(De.styleUrl,Se);return new pe.Z({styleUrl:ye,name:De.name})}if(De.styleName&&De.name)return new pe.Z({portal:Se&&Se.portal||oe.Z.getDefault(),styleName:De.styleName,name:De.name});Se&&Se.messages&&Se.messages.push(new $.Z("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:Se,definition:De}))}writeStyleOrigin(De,be,Se,ye){if(De.styleUrl&&De.name){let ve=(0,le.t)(De.styleUrl,ye);(0,Q.YP)(ve)&&(ve=(0,Q.Fv)(ve)),be.styleOrigin={styleUrl:ve,name:De.name}}else De.styleName&&De.name&&(De.portal&&ye&&ye.portal&&!(0,Q.tm)(De.portal.restUrl,ye.portal.restUrl)?ye&&ye.messages&&ye.messages.push(new $.Z("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):be.styleOrigin={styleName:De.styleName,name:De.name})}normalizeCtorArgs(De){return De instanceof J.Z||De&&me[De.type]?{symbolLayers:[De]}:Array.isArray(De)?{symbolLayers:De}:De}};(0,D._)([(0,W.Cb)({json:{read:!1,write:!1}})],_e.prototype,"color",null),(0,D._)([(0,W.Cb)({type:ge,nonNullable:!0,json:{write:!0}}),(0,H.p)(G.R)],_e.prototype,"symbolLayers",null),(0,D._)([(0,W.Cb)({type:pe.Z})],_e.prototype,"styleOrigin",void 0),(0,D._)([(0,X.r)("styleOrigin")],_e.prototype,"readStyleOrigin",null),(0,D._)([(0,ae.c)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],_e.prototype,"writeStyleOrigin",null),(0,D._)([(0,W.Cb)({type:he.p,json:{read:!1}})],_e.prototype,"thumbnail",void 0),(0,D._)([(0,W.Cb)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],_e.prototype,"type",void 0),_e=(0,D._)([(0,te.j)("esri.symbols.Symbol3D")],_e);const Ee=_e},97665:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>H});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(99433);let B=class extends R.wq{constructor(X){super(X),this.enabled=!0,this.type=null}writeEnabled(X,te,ae){X||(te[ae]=X)}};(0,D._)([(0,G.Cb)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],B.prototype,"enabled",void 0),(0,D._)([(0,W.c)("enabled")],B.prototype,"writeEnabled",null),(0,D._)([(0,G.Cb)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],B.prototype,"type",void 0),B=(0,D._)([(0,$.j)("esri.symbols.Symbol3DLayer")],B);const H=B},35540:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var oe,D=v(17626),R=v(91558),G=v(58817),Z=v(23841),Q=v(77712),$=v(66656),W=v(55342),B=v(76898),H=v(99433),X=v(11472),te=v(10012),ae=v(50369);let le=oe=class extends te.Z{constructor(...se){super(...se),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new X.Z,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(se,re,j){if(se&&"string"!=typeof se)return se;const Y={};return se&&(Y.text=se),re&&(Y.font=re),j&&(Y.color=j),Y}writeLineWidth(se,re,j,Y){Y&&"string"!=typeof Y||(re[j]=se)}castLineWidth(se){return(0,Z.t_)(se)}writeLineHeight(se,re,j,Y){Y&&"string"!=typeof Y||(re[j]=se)}clone(){return new oe({angle:this.angle,backgroundColor:(0,G.d9)(this.backgroundColor),borderLineColor:(0,G.d9)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,G.d9)(this.color),font:this.font&&this.font.clone(),haloColor:(0,G.d9)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor&&this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,D._)([(0,Q.Cb)({type:R.Z,json:{write:!0}})],le.prototype,"backgroundColor",void 0),(0,D._)([(0,Q.Cb)({type:R.Z,json:{write:!0}})],le.prototype,"borderLineColor",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],le.prototype,"borderLineSize",void 0),(0,D._)([(0,Q.Cb)({type:X.Z,json:{write:!0}})],le.prototype,"font",void 0),(0,D._)([(0,Q.Cb)({...ae.x0,json:{write:!0}})],le.prototype,"horizontalAlignment",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:!0}})],le.prototype,"kerning",void 0),(0,D._)([(0,Q.Cb)({type:R.Z,json:{write:!0}})],le.prototype,"haloColor",void 0),(0,D._)([(0,Q.Cb)({type:Number,cast:Z.t_,json:{write:!0}})],le.prototype,"haloSize",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:!0}})],le.prototype,"rightToLeft",void 0),(0,D._)([(0,Q.Cb)({type:Boolean,json:{write:!0}})],le.prototype,"rotated",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],le.prototype,"text",void 0),(0,D._)([(0,W.J)({esriTS:"text"},{readOnly:!0})],le.prototype,"type",void 0),(0,D._)([(0,Q.Cb)({...ae.Nj,json:{write:!0}})],le.prototype,"verticalAlignment",void 0),(0,D._)([(0,Q.Cb)({type:Number,cast:Z.t_,json:{write:!0}})],le.prototype,"xoffset",void 0),(0,D._)([(0,Q.Cb)({type:Number,cast:Z.t_,json:{write:!0}})],le.prototype,"yoffset",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{read:se=>se&&-1*se,write:(se,re)=>re.angle=se&&-1*se}})],le.prototype,"angle",void 0),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],le.prototype,"width",void 0),(0,D._)([(0,Q.Cb)({type:Number})],le.prototype,"lineWidth",void 0),(0,D._)([(0,H.c)("lineWidth")],le.prototype,"writeLineWidth",null),(0,D._)([(0,$.p)("lineWidth")],le.prototype,"castLineWidth",null),(0,D._)([(0,Q.Cb)(ae.Ck)],le.prototype,"lineHeight",void 0),(0,D._)([(0,H.c)("lineHeight")],le.prototype,"writeLineHeight",null),le=oe=(0,D._)([(0,B.j)("esri.symbols.TextSymbol")],le);const de=le},21716:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ue});var le,D=v(17626),R=v(58817),G=v(62208),Z=v(77712),$=(v(90912),v(55342)),W=v(76898),B=v(99433),H=v(11472),X=v(97665),te=v(60958),ae=v(91558),oe=v(86810);let de=le=class extends oe.wq{constructor(){super(...arguments),this.color=new ae.Z([0,0,0,1]),this.size=0}clone(){const pe={color:(0,R.d9)(this.color),size:this.size};return new le(pe)}};(0,D._)([(0,Z.Cb)(te.a)],de.prototype,"color",void 0),(0,D._)([(0,Z.Cb)(te.y)],de.prototype,"size",void 0),de=le=(0,D._)([(0,W.j)("esri.symbols.support.Symbol3DHalo")],de);var se=v(64830),re=v(79608);v(85931);let Y=class extends((0,re.J)(oe.wq)){constructor(pe){super(pe),this.color=null}};(0,D._)([(0,Z.Cb)(te.a)],Y.prototype,"color",void 0),Y=(0,D._)([(0,W.j)("esri.symbols.support.Symbol3DTextBackground")],Y);var ie,ee=v(50369);let J=ie=class extends X.Z{constructor(pe){super(pe),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(pe){(0,G.pC)(pe)&&(0,G.pC)(this._userSize)&&(pe.size=this._userSize),this._set("font",pe)}writeFont(pe,he,me,ge){const _e={...ge,textSymbol3D:!0};he.font=pe.write({},_e),delete he.font.size}get size(){return(0,G.pC)(this._userSize)?this._userSize:(0,G.pC)(this.font)&&null!=this.font.size?this.font.size:9}set size(pe){this._userSize=pe,(0,G.pC)(this.font)&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const pe=new ie({enabled:this.enabled,font:this.font&&(0,R.d9)(this.font),halo:this.halo&&(0,R.d9)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:(0,G.pC)(this.material)?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,R.d9)(this.background)});return pe._userSize=this._userSize,pe}static fromTextSymbol(pe){return new ie({font:(0,G.pC)(pe.font)?pe.font.clone():new H.Z,halo:ce(pe.haloColor,pe.haloSize),horizontalAlignment:pe.horizontalAlignment,lineHeight:pe.lineHeight,material:pe.color?new se.b({color:pe.color.clone()}):null,text:pe.text,verticalAlignment:pe.verticalAlignment,background:pe.backgroundColor?new Y({color:pe.backgroundColor.clone()}):null})}};function ce(pe,he){return pe&&null!=he&&he>0?new de({color:(0,R.d9)(pe),size:he}):null}(0,D._)([(0,Z.Cb)({type:H.Z,json:{write:!0}})],J.prototype,"font",null),(0,D._)([(0,B.c)("font")],J.prototype,"writeFont",null),(0,D._)([(0,Z.Cb)({type:de,json:{write:!0}})],J.prototype,"halo",void 0),(0,D._)([(0,Z.Cb)({...ee.x0,json:{default:"center",write:!0}})],J.prototype,"horizontalAlignment",void 0),(0,D._)([(0,Z.Cb)({...ee.Ck,json:{default:1,write:!0}})],J.prototype,"lineHeight",void 0),(0,D._)([(0,Z.Cb)({type:se.b,json:{write:!0}})],J.prototype,"material",void 0),(0,D._)([(0,Z.Cb)({type:Y,json:{write:!0}})],J.prototype,"background",void 0),(0,D._)([(0,Z.Cb)(te.y)],J.prototype,"size",null),(0,D._)([(0,Z.Cb)({type:String,json:{write:!0}})],J.prototype,"text",void 0),(0,D._)([(0,$.J)({Text:"text"},{readOnly:!0})],J.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({...ee.Nj,json:{default:"baseline",write:!0}})],J.prototype,"verticalAlignment",void 0),J=ie=(0,D._)([(0,W.j)("esri.symbols.TextSymbol3DLayer")],J);const ue=J},72622:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var H,D=v(17626),R=v(91558),G=v(58817),Z=v(77712),Q=v(90912),$=v(55342),W=v(76898),B=v(97665);let X=H=class extends B.Z{constructor(oe){super(oe),this.color=te.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new H({color:(0,G.d9)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,D._)([(0,Z.Cb)({type:R.Z,nonNullable:!0,json:{type:[Q.z8],write:(oe,le,de)=>le[de]=oe.toArray(R.Z.AlphaMode.UNLESS_OPAQUE),default:()=>te.clone(),defaultEquals:oe=>oe.toCss(!0)===te.toCss(!0)}})],X.prototype,"color",void 0),(0,D._)([(0,$.J)({Water:"water"},{readOnly:!0})],X.prototype,"type",void 0),(0,D._)([(0,Z.Cb)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],X.prototype,"waterbodySize",void 0),(0,D._)([(0,Z.Cb)({type:Number,json:{write:!0,default:null}})],X.prototype,"waveDirection",void 0),(0,D._)([(0,Z.Cb)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],X.prototype,"waveStrength",void 0),X=H=(0,D._)([(0,W.j)("esri.symbols.WaterSymbol3DLayer")],X);const te=new R.Z([0,119,190]),ae=X},12874:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>j});var de,D=v(15861),R=v(17626),G=v(63290),Z=v(62208),Q=v(10699),$=v(77712),H=(v(85931),v(90912),v(55342)),X=v(76898),te=v(84687),ae=v(29840),oe=v(10012),le=v(96296);let se=de=class extends oe.Z{constructor(Y){super(Y),this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const Y=(0,Z.pC)(this.portal)?this.portal:te.Z.getDefault();return`${this.styleName}:${this.styleUrl}:${this.name}:${Y.user?Y.user.username:null}:${Y.url}`}read(Y,ee){this.portal=ee?ee.portal:void 0,super.read(Y,ee)}clone(){return new de({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(Y){return this._fetchSymbol("webRef",Y)}fetchCIMSymbol(Y){return this._fetchSymbol("cimRef",Y)}_fetchSymbol(Y,ee){var ie=this;return(0,D.Z)(function*(){const J=(0,Z.pC)(ee)?ee.cache:null,ce=J?ie._fetchCacheKey:null;if((0,Z.pC)(J)){const me=ce&&J.get(ce);if(me)return me.clone()}const ue=yield function re(){return Promise.resolve().then(v.bind(v,50998))}();(0,Q.k_)(ee);const pe=ue.resolveWebStyleSymbol(ie,{portal:ie.portal},Y,ee);pe.catch(me=>{G.Z.getLogger(ie.declaredClass).error("#fetchSymbol()","Failed to create symbol from style",me)});const he=yield pe;return"webRef"===Y&&"point-3d"===he.type||"cimRef"===Y&&"cim"===he.type?((0,Z.pC)(J)&&J.set(ce,he.clone()),he):null})()}};(0,R._)([(0,$.Cb)({json:{write:!1}})],se.prototype,"color",void 0),(0,R._)([(0,$.Cb)({type:String,json:{write:!0}})],se.prototype,"styleName",void 0),(0,R._)([(0,$.Cb)({type:te.Z,json:{write:!1}})],se.prototype,"portal",void 0),(0,R._)([(0,$.Cb)({type:String,json:{read:ae.r,write:ae.w}})],se.prototype,"styleUrl",void 0),(0,R._)([(0,$.Cb)({type:le.p,json:{read:!1}})],se.prototype,"thumbnail",void 0),(0,R._)([(0,$.Cb)({type:String,json:{write:!0}})],se.prototype,"name",void 0),(0,R._)([(0,H.J)({styleSymbolReference:"web-style"},{readOnly:!0})],se.prototype,"type",void 0),(0,R._)([(0,$.Cb)()],se.prototype,"_fetchCacheKey",null),se=de=(0,R._)([(0,X.j)("esri.symbols.WebStyleSymbol")],se);const j=se},21779:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.wq{constructor(H){super(H),this.visible=!0}clone(){}};(0,D._)([(0,G.Cb)({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],W.prototype,"type",void 0),(0,D._)([(0,G.Cb)({readOnly:!0})],W.prototype,"visible",void 0),W=(0,D._)([(0,$.j)("esri.symbols.callouts.Callout3D")],W);const B=W},17497:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>de});var oe,D=v(17626),R=v(91558),G=v(58817),Z=v(62208),Q=v(23841),$=v(77712),B=(v(90912),v(55342)),H=v(76898),X=v(21779),te=v(71530),ae=v(60958);let le=oe=class extends X.Z{constructor(se){super(se),this.type="line",this.color=new R.Z([0,0,0,1]),this.size=(0,Q.Wz)(1),this.border=null}get visible(){return this.size>0&&(0,Z.pC)(this.color)&&this.color.a>0}clone(){return new oe({color:(0,G.d9)(this.color),size:this.size,border:(0,G.d9)(this.border)})}};(0,D._)([(0,B.J)({line:"line"},{readOnly:!0})],le.prototype,"type",void 0),(0,D._)([(0,$.Cb)(ae.a)],le.prototype,"color",void 0),(0,D._)([(0,$.Cb)(ae.y)],le.prototype,"size",void 0),(0,D._)([(0,$.Cb)({type:te.a,json:{write:!0}})],le.prototype,"border",void 0),(0,D._)([(0,$.Cb)({readOnly:!0})],le.prototype,"visible",null),le=oe=(0,D._)([(0,H.j)("esri.symbols.callouts.LineCallout3D")],le);const de=le},9824:(nt,Ae,v)=>{"use strict";v.d(Ae,{Pd:()=>$,Uy:()=>Z,Y2:()=>B,as:()=>W,gv:()=>Q});var D=v(62208),R=v(21779),G=v(17497);function Z(H){if(!H)return!1;const X=H.verticalOffset;return!!X&&!(X.screenLength<=0||(0,D.pC)(X.maxWorldLength)&&X.maxWorldLength<=0)}function Q(H){if(!H||!H.supportsCallout||!H.supportsCallout())return!1;const X=H.callout;return!!X&&!!X.visible&&!!Z(H)}function $(H){return"point-3d"===H.type||"label-3d"===H.type}function W(H){return"center"===H.horizontalAlignment}const B={types:{key:"type",base:R.Z,typeMap:{line:G.Z}},json:{write:!0}}},80991:(nt,Ae,v)=>{"use strict";function R(be,Se,ye,ve){return function D(be){return"function"==typeof be}(be)?be(Se,ye,ve):be}function G(be){return[be.r,be.g,be.b,be.a]}v.d(Ae,{$Z:()=>pe,BX:()=>ce,Cc:()=>j,E_:()=>W,F:()=>he,FG:()=>ge,H1:()=>$,JW:()=>De,NA:()=>re,NO:()=>te,On:()=>ie,QI:()=>H,Qf:()=>_e,Qs:()=>B,RI:()=>Y,TB:()=>Ee,TT:()=>X,W7:()=>ue,X_:()=>me,be:()=>ae,gJ:()=>se,hf:()=>R,k5:()=>de,nn:()=>G,pJ:()=>ee,wi:()=>J,yL:()=>le,zL:()=>oe});function Q(be){let Se=be.length;for(;Se--;)if(!" /-,\n".includes(be.charAt(Se)))return!1;return!0}function $(be,Se){const ye=[];let ve=0,xe=-1;do{if(xe=be.indexOf("[",ve),xe>=ve){if(xe>ve){const ze=be.substr(ve,xe-ve);ye.push([ze,null,Q(ze)])}if(ve=xe+1,xe=be.indexOf("]",ve),xe>=ve){if(xe>ve){const ze=Se[be.substr(ve,xe-ve)];ze&&ye.push([null,ze,!1])}ve=xe+1}}}while(-1!==xe);if(veW(xe,ve,ye)}function H(be,Se){switch("string"!=typeof be&&(be=String(be)),Se){case"LowerCase":return be.toLowerCase();case"Allcaps":return be.toUpperCase();default:return be}}function X(be,Se,ye,ve,xe,ze,Ke=!0){const We=Se/xe,Ce=ye/ze,Be=Math.ceil(We/2),Fe=Math.ceil(Ce/2);for(let je=0;je=-1&&ut<=1&&(Ie=2*ut*ut*ut-3*ut*ut+1,Ie>0&&(ot=4*(qe+Je*Se),Xe+=Ie*be[ot+3],Pe+=Ie,be[ot+3]<255&&(Ie=Ie*be[ot+3]/250),Le+=Ie*be[ot],Me+=Ie*be[ot+1],Ne+=Ie*be[ot+2],Ge+=Ie))}}ve[He]=Le/Ge,ve[He+1]=Me/Ge,ve[He+2]=Ne/Ge,ve[He+3]=Xe/Pe}}function te(be){return be?{r:be[0],g:be[1],b:be[2],a:be[3]/255}:{r:0,g:0,b:0,a:0}}function ae(be){return be.data?.symbol??null}function oe(be){return"CIMVectorMarker"===be.type||"CIMPictureMarker"===be.type||"CIMBarChartMarker"===be.type||"CIMCharacterMarker"===be.type||"CIMPieChartMarker"===be.type||"CIMStackedBarChartMarker"===be.type}function le(be){return"CIMGradientStroke"===be.type||"CIMPictureStroke"===be.type||"CIMSolidStroke"===be.type}function de(be){return"CIMGradientFill"===be.type||"CIMHatchFill"===be.type||"CIMPictureFill"===be.type||"CIMSolidFill"===be.type||"CIMWaterFill"===be.type}function se(be){return"CIMMarkerPlacementAlongLineRandomSize"===be.type||"CIMMarkerPlacementAlongLineSameSize"===be.type||"CIMMarkerPlacementAlongLineVariableSize"===be.type||"CIMMarkerPlacementAtExtremities"===be.type||"CIMMarkerPlacementAtMeasuredUnits"===be.type||"CIMMarkerPlacementAtRatioPositions"===be.type||"CIMMarkerPlacementOnLine"===be.type||"CIMMarkerPlacementOnVertices"===be.type}const re=(be,Se=0)=>isNaN(be)||null==be?Se:be,j=be=>{if(!be)return!1;for(const Se of be)switch(Se.type){case"CIMGeometricEffectBuffer":case"CIMGeometricEffectOffset":return!0}return!1};function Y(){return Promise.all([v.e(4918),v.e(8592),v.e(5994)]).then(v.bind(v,32825))}function ee(be){if(!be)return"normal";switch(be.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function ie(be){if(!be)return"normal";switch(be.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function J(be){let Se="",ye="";if(be){const ve=be.toLowerCase();ve.includes("italic")?Se="italic":ve.includes("oblique")&&(Se="oblique"),ve.includes("bold")?ye="bold":ve.includes("light")&&(ye="lighter")}return{style:Se,weight:ye}}function ce(be){return be.underline?"underline":be.strikethrough?"line-through":"none"}function ue(be){if(!be)return null;switch(be.type){case"CIMPolygonSymbol":if(be.symbolLayers)for(const Se of be.symbolLayers){const ye=ue(Se);if(null!=ye)return ye}break;case"CIMTextSymbol":return ue(be.symbol);case"CIMSolidFill":return be.color}}function pe(be){if(be)switch(be.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(be.symbolLayers)for(const Se of be.symbolLayers){const ye=pe(Se);if(void 0!==ye)return ye}break;case"CIMTextSymbol":return pe(be.symbol);case"CIMSolidStroke":case"CIMSolidFill":return be.color}}function he(be){if(be)switch(be.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(be.symbolLayers)for(const Se of be.symbolLayers){const ye=he(Se);if(void 0!==ye)return ye}break;case"CIMTextSymbol":return he(be.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return be.width}}function me(be){switch(be){case"Left":default:return"left";case"Right":return"right";case"Center":case"Justify":return"center"}}function ge(be){switch(be){case"Top":default:return"top";case"Center":return"middle";case"Baseline":return"baseline";case"Bottom":return"bottom"}}function _e(be){return(be?Object.keys(be):[]).map(Se=>({name:Se,alias:Se,type:"string"==typeof be[Se]?"esriFieldTypeString":"esriFieldTypeDouble"}))}const Ee=be=>be.includes("data:image/svg+xml");function De(be){if(!be)return null;switch(be.type){case"CIMPointSymbol":case"CIMTextSymbol":return"esriGeometryPoint";case"CIMLineSymbol":return"esriGeometryPolyline";case"CIMPolygonSymbol":return"esriGeometryPolygon";default:return null}}},31184:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>te});var D=v(17626),R=v(91558),G=v(86810),Z=v(58817),Q=v(23841),$=v(77712),B=(v(90912),v(76898)),H=v(60958);let X=class extends G.wq{constructor(ae){super(ae),this.color=new R.Z([0,0,0,1]),this.extensionLength=0,this.size=(0,Q.Wz)(1)}clone(){}cloneProperties(){return{color:(0,Z.d9)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,D._)([(0,$.Cb)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],X.prototype,"type",void 0),(0,D._)([(0,$.Cb)(H.a)],X.prototype,"color",void 0),(0,D._)([(0,$.Cb)({...H.y,json:{write:{overridePolicy:ae=>({enabled:!!ae})}}})],X.prototype,"extensionLength",void 0),(0,D._)([(0,$.Cb)(H.y)],X.prototype,"size",void 0),X=(0,D._)([(0,B.j)("esri.symbols.edges.Edges3D")],X);const te=X},2252:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ae});var X,D=v(17626),W=(v(63290),v(90912),v(85931),v(26584),v(8314),v(55342)),B=v(76898),H=v(31184);let te=X=class extends H.Z{constructor(oe){super(oe),this.type="solid"}clone(){return new X(this.cloneProperties())}};(0,D._)([(0,W.J)({solid:"solid"},{readOnly:!0})],te.prototype,"type",void 0),te=X=(0,D._)([(0,B.j)("esri.symbols.support.SolidEdges3D")],te);const ae=te},61261:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>le});var X,D=v(31184),R=v(17626),B=(v(63290),v(90912),v(85931),v(26584),v(8314),v(55342)),H=v(76898);let te=X=class extends D.Z{constructor(de){super(de),this.type="sketch"}clone(){return new X(this.cloneProperties())}};(0,R._)([(0,B.J)({sketch:"sketch"},{readOnly:!0})],te.prototype,"type",void 0),te=X=(0,R._)([(0,H.j)("esri.symbols.edges.SketchEdges3D")],te);const ae=te;var oe=v(2252);const le={types:{key:"type",base:D.Z,typeMap:{solid:oe.Z,sketch:ae}},json:{write:!0}}},38861:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.wq{constructor(H){super(H)}clone(){}};(0,D._)([(0,G.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],W.prototype,"type",void 0),W=(0,D._)([(0,$.j)("esri.symbols.patterns.LinePattern3D")],W);const B=W},63743:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>oe});var X,D=v(17626),R=v(2076),G=v(77712),$=(v(85931),v(90912),v(55342)),W=v(76898),B=v(38861);const te=(0,R.w)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let ae=X=class extends B.Z{constructor(le){super(le),this.type="style",this.style="solid"}clone(){return new X({style:this.style})}};(0,D._)([(0,G.Cb)({type:["style"]})],ae.prototype,"type",void 0),(0,D._)([(0,$.J)(te),(0,G.Cb)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]})],ae.prototype,"style",void 0),ae=X=(0,D._)([(0,W.j)("esri.symbols.patterns.LineStylePattern3D")],ae);const oe=ae},40249:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.wq{constructor(H){super(H)}clone(){}};(0,D._)([(0,G.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],W.prototype,"type",void 0),W=(0,D._)([(0,$.j)("esri.symbols.patterns.Pattern3D")],W);const B=W},153:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(77712),Q=(v(85931),v(90912),v(76898)),$=v(40249);let H=B=class extends $.Z{constructor(te){super(te),this.type="style",this.style="solid"}clone(){return new B({style:this.style})}};(0,D._)([(0,R.Cb)({type:["style"]})],H.prototype,"type",void 0),(0,D._)([(0,R.Cb)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:!0}})],H.prototype,"style",void 0),H=B=(0,D._)([(0,Q.j)("esri.symbols.patterns.StylePattern3D")],H);const X=H},99255:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>$,q:()=>Q});var D=v(38861),R=v(63743),G=v(40249),Z=v(153);const Q={types:{key:"type",base:G.Z,typeMap:{style:Z.Z}},json:{write:!0}},$={types:{key:"type",base:D.Z,typeMap:{style:R.Z}},json:{write:!0}}},82706:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ie});var oe,D=v(17626),R=v(2076),G=v(86810),Z=v(62208),Q=v(77712),B=(v(85931),v(90912),v(68653)),H=v(76898),X=v(99433),te=v(15861),ae=v(36630);let le=oe=class extends G.wq{constructor(J){super(J)}collectRequiredFields(J,ce){var ue=this;return(0,te.Z)(function*(){return(0,ae.io)(J,ce,ue.expression)})()}clone(){return new oe({expression:this.expression,title:this.title})}equals(J){return this.expression===J.expression&&this.title===J.title}};(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],le.prototype,"expression",void 0),(0,D._)([(0,Q.Cb)({type:String,json:{write:!0}})],le.prototype,"title",void 0),le=oe=(0,D._)([(0,H.j)("esri.layers.support.FeatureExpressionInfo")],le);const de=le;var re,se=v(29505);const j=(0,R.w)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),Y=new R.X({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let ee=re=class extends G.wq{constructor(J){super(J),this.offset=null}readFeatureExpressionInfo(J,ce){return J??(ce.featureExpression&&0===ce.featureExpression.value?{expression:"0"}:void 0)}writeFeatureExpressionInfo(J,ce,ue,pe){ce[ue]=J.write({},pe),"0"===J.expression&&(ce.featureExpression={value:0})}get mode(){const{offset:J,featureExpressionInfo:ce}=this;return this._isOverridden("mode")?this._get("mode"):(0,Z.pC)(J)||ce?"relative-to-ground":"on-the-ground"}set mode(J){this._override("mode",J)}set unit(J){this._set("unit",J)}write(J,ce){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(J,ce):null}clone(){return new re({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(J){return this.mode===J.mode&&this.offset===J.offset&&this.unit===J.unit&&(0,Z._W)(this.featureExpressionInfo,J.featureExpressionInfo)}};(0,D._)([(0,Q.Cb)({type:de,json:{write:!0}})],ee.prototype,"featureExpressionInfo",void 0),(0,D._)([(0,B.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],ee.prototype,"readFeatureExpressionInfo",null),(0,D._)([(0,X.c)("featureExpressionInfo",{featureExpressionInfo:{type:de},"featureExpression.value":{type:[0]}})],ee.prototype,"writeFeatureExpressionInfo",null),(0,D._)([(0,Q.Cb)({type:j.apiValues,nonNullable:!0,json:{type:j.jsonValues,read:j.read,write:{writer:j.write,isRequired:!0}}})],ee.prototype,"mode",null),(0,D._)([(0,Q.Cb)({type:Number,json:{write:!0}})],ee.prototype,"offset",void 0),(0,D._)([(0,Q.Cb)({type:se.f9,json:{type:String,read:Y.read,write:Y.write}})],ee.prototype,"unit",null),ee=re=(0,D._)([(0,H.j)("esri.layers.support.ElevationInfo")],ee);const ie=ee},33215:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>se,b:()=>de});var oe,D=v(17626),R=v(2076),G=v(86810),Z=v(21726),Q=v(77712),B=(v(85931),v(90912),v(55342)),H=v(68653),X=v(76898),te=v(99433),ae=v(29840);const le=(0,R.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let de=oe=class extends G.wq{constructor(re){super(re)}readHref(re,j,Y){return re?(0,ae.f)(re,Y):j.dataURI}writeHref(re,j,Y,ee){re&&((0,Z.HK)(re)?j.dataURI=re:(j.href=(0,ae.t)(re,ee),(0,Z.YP)(j.href)&&(j.href=(0,Z.Fv)(j.href))))}clone(){return new oe({href:this.href,primitive:this.primitive})}};(0,D._)([(0,Q.Cb)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],de.prototype,"href",void 0),(0,D._)([(0,H.r)("href")],de.prototype,"readHref",null),(0,D._)([(0,te.c)("href",{href:{type:String},dataURI:{type:String}})],de.prototype,"writeHref",null),(0,D._)([(0,B.J)(le)],de.prototype,"primitive",void 0),de=oe=(0,D._)([(0,X.j)("esri.symbols.support.IconSymbol3DLayerResource")],de);const se="circle"},48521:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>oe,k:()=>ae});var X,D=v(17626),R=v(2076),G=v(86810),Z=v(77712),W=(v(85931),v(90912),v(55342)),B=v(76898),H=v(29840);const te=(0,R.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let ae=X=class extends G.wq{clone(){return new X({href:this.href,primitive:this.primitive})}};(0,D._)([(0,Z.Cb)({type:String,json:{read:H.r,write:H.w}})],ae.prototype,"href",void 0),(0,D._)([(0,W.J)(te)],ae.prototype,"primitive",void 0),ae=X=(0,D._)([(0,B.j)("esri.symbols.support.ObjectSymbol3DLayerResource")],ae);const oe="sphere"},77345:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(14517),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(84687);let H=B=class extends R.Z{constructor(te){super(te),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new B({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,D._)([(0,G.Cb)({type:String})],H.prototype,"name",void 0),(0,D._)([(0,G.Cb)({type:String})],H.prototype,"styleUrl",void 0),(0,D._)([(0,G.Cb)({type:String})],H.prototype,"styleName",void 0),(0,D._)([(0,G.Cb)({type:W.Z})],H.prototype,"portal",void 0),H=B=(0,D._)([(0,$.j)("esri.symbols.support.StyleOrigin")],H);const X=H},37519:(nt,Ae,v)=>{"use strict";v.d(Ae,{e:()=>B});var W,D=v(17626),R=v(14517),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.Z{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new W({x:this.x,y:this.y})}};(0,D._)([(0,G.Cb)({type:Number})],B.prototype,"x",void 0),(0,D._)([(0,G.Cb)({type:Number})],B.prototype,"y",void 0),B=W=(0,D._)([(0,$.j)("esri.symbols.support.Symbol3DAnchorPosition2D")],B)},64830:(nt,Ae,v)=>{"use strict";v.d(Ae,{b:()=>X});var H,D=v(17626),R=v(86810),G=v(62208),Z=v(77712),W=(v(85931),v(90912),v(76898)),B=v(60958);let X=H=class extends R.wq{constructor(te){super(te),this.color=null}clone(){const te={color:(0,G.pC)(this.color)?this.color.clone():null};return new H(te)}};(0,D._)([(0,Z.Cb)(B.a)],X.prototype,"color",void 0),X=H=(0,D._)([(0,W.j)("esri.symbols.support.Symbol3DMaterial")],X)},97595:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var B,D=v(17626),R=v(86810),G=v(77712),$=(v(85931),v(90912),v(76898)),W=v(60958);let H=B=class extends R.wq{constructor(te){super(te),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new B({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,D._)([(0,G.Cb)(W.y)],H.prototype,"screenLength",void 0),(0,D._)([(0,G.Cb)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],H.prototype,"minWorldLength",void 0),(0,D._)([(0,G.Cb)({type:Number,json:{write:!0}})],H.prototype,"maxWorldLength",void 0),H=B=(0,D._)([(0,$.j)("esri.symbols.support.Symbol3DVerticalOffset")],H);const X=H},96296:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>B});var W,D=v(17626),R=v(14517),G=v(77712),$=(v(85931),v(90912),v(76898));let B=W=class extends R.Z{constructor(){super(...arguments),this.url=""}clone(){return new W({url:this.url})}};(0,D._)([(0,G.Cb)({type:String})],B.prototype,"url",void 0),B=W=(0,D._)([(0,$.j)("esri.symbols.support.Thumbnail")],B)},56445:(nt,Ae,v)=>{"use strict";v.d(Ae,{FW:()=>W,ZB:()=>oe,iW:()=>X});var D=v(91558),R=v(80991);function $(j,Y,ee,ie){if(j)if("CIMTextSymbol"!==j.type){if(ee&&j.effects)for(const J of j.effects)H(J,Y);if(j.symbolLayers)for(const J of j.symbolLayers)switch(J.type){case"CIMPictureMarker":case"CIMVectorMarker":W(J,Y,ie);break;case"CIMPictureStroke":case"CIMSolidStroke":!ie?.preserveOutlineWidth&&J.width&&(J.width*=Y);break;case"CIMPictureFill":J.height&&(J.height*=Y),J.offsetX&&(J.offsetX*=Y),J.offsetY&&(J.offsetY*=Y);break;case"CIMHatchFill":$(J.lineSymbol,Y,!0,{...ie,preserveOutlineWidth:!1}),J.offsetX&&(J.offsetX*=Y),J.offsetY&&(J.offsetY*=Y),J.separation&&(J.separation*=Y)}}else null!=j.height&&(j.height*=Y)}function W(j,Y,ee){if(j&&(j.markerPlacement&&function B(j,Y){switch((0,R.gJ)(j)&&j.offset&&(j.offset*=Y),j.type){case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineSameSize":if(j.customEndingOffset&&(j.customEndingOffset*=Y),j.offsetAlongLine&&(j.offsetAlongLine*=Y),j.placementTemplate&&j.placementTemplate.length){const ee=j.placementTemplate.map(ie=>ie*Y);j.placementTemplate=ee}break;case"CIMMarkerPlacementAlongLineVariableSize":if(j.maxRandomOffset&&(j.maxRandomOffset*=Y),j.placementTemplate&&j.placementTemplate.length){const ee=j.placementTemplate.map(ie=>ie*Y);j.placementTemplate=ee}break;case"CIMMarkerPlacementOnLine":j.startPointOffset&&(j.startPointOffset*=Y);break;case"CIMMarkerPlacementAtExtremities":j.offsetAlongLine&&(j.offsetAlongLine*=Y);break;case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementOnVertices":break;case"CIMMarkerPlacementAtRatioPositions":j.beginPosition&&(j.beginPosition*=Y),j.endPosition&&(j.endPosition*=Y);break;case"CIMMarkerPlacementPolygonCenter":j.offsetX&&(j.offsetX*=Y),j.offsetY&&(j.offsetY*=Y);break;case"CIMMarkerPlacementInsidePolygon":j.offsetX&&(j.offsetX*=Y),j.offsetY&&(j.offsetY*=Y),j.stepX&&(j.stepX*=Y),j.stepY&&(j.stepY*=Y)}}(j.markerPlacement,Y),j.offsetX&&(j.offsetX*=Y),j.offsetY&&(j.offsetY*=Y),j.anchorPoint&&"Absolute"===j.anchorPointUnits&&(j.anchorPoint={x:j.anchorPoint.x*Y,y:j.anchorPoint.y*Y}),j.size=null!=j.size?j.size*Y:0,"CIMVectorMarker"===j.type&&j.markerGraphics))for(const ie of j.markerGraphics)j.scaleSymbolsProportionally||$(ie.symbol,Y,!0,ee)}function H(j,Y){switch(j.type){case"CIMGeometricEffectArrow":case"CIMGeometricEffectDonut":j.width&&(j.width*=Y);break;case"CIMGeometricEffectBuffer":j.size&&(j.size*=Y);break;case"CIMGeometricEffectCut":j.beginCut&&(j.beginCut*=Y),j.endCut&&(j.endCut*=Y),j.middleCut&&(j.middleCut*=Y);break;case"CIMGeometricEffectDashes":if(j.customEndingOffset&&(j.customEndingOffset*=Y),j.offsetAlongLine&&(j.offsetAlongLine*=Y),j.dashTemplate&&j.dashTemplate.length){const ee=j.dashTemplate.map(ie=>ie*Y);j.dashTemplate=ee}break;case"CIMGeometricEffectExtension":case"CIMGeometricEffectJog":case"CIMGeometricEffectRadial":j.length&&(j.length*=Y);break;case"CIMGeometricEffectMove":j.offsetX&&(j.offsetX*=Y),j.offsetY&&(j.offsetY*=Y);break;case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":j.offset&&(j.offset*=Y);break;case"CIMGeometricEffectRegularPolygon":j.radius&&(j.radius*=Y);break;case"CIMGeometricEffectTaperedPolygon":j.fromWidth&&(j.fromWidth*=Y),j.length&&(j.length*=Y),j.toWidth&&(j.toWidth*=Y);break;case"CIMGeometricEffectWave":j.amplitude&&(j.amplitude*=Y),j.period&&(j.period*=Y)}}function X(j){const Y=[];return te((0,R.be)(j),Y),Y.length?new D.Z((0,R.NO)(Y[0])):null}function te(j,Y){if(!j)return;let ee;ee="CIMTextSymbol"===j.type?j.symbol:j;const ie="CIMPolygonSymbol"===j.type;if(ee?.symbolLayers)for(const J of ee.symbolLayers)if(!(J.colorLocked||ie&&((0,R.yL)(J)||(0,R.zL)(J)&&J.markerPlacement&&(0,R.gJ)(J.markerPlacement))))switch(J.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":J.tintColor&&ae(Y,J.tintColor);break;case"CIMVectorMarker":J.markerGraphics?.forEach(ce=>{te(ce.symbol,Y)});break;case"CIMSolidStroke":case"CIMSolidFill":ae(Y,J.color);break;case"CIMHatchFill":te(J.lineSymbol,Y)}}function ae(j,Y){for(const ee of j)if(ee.join(".")===Y.join("."))return;j.push(Y)}function oe(j,Y,ee){Y instanceof D.Z||(Y=new D.Z(Y));const ie=(0,R.be)(j);ie&&le(ie,Y,ee)}function le(j,Y,ee){if(!j)return;let ie;ie="CIMTextSymbol"===j.type?j.symbol:j;const J="CIMPolygonSymbol"===ie?.type;if(ie?.symbolLayers)for(const ce of ie.symbolLayers){if(ce.colorLocked)continue;if(J)if(ee){const{layersToColor:pe}=ee;if(((0,R.yL)(ce)||(0,R.zL)(ce)&&ce.markerPlacement&&(0,R.gJ)(ce.markerPlacement))&&"fill"===pe||(0,R.k5)(ce)&&"outline"===pe)continue}else if((0,R.yL)(ce)||(0,R.zL)(ce)&&ce.markerPlacement&&(0,R.gJ)(ce.markerPlacement))continue;const ue=Y.toArray();switch(ce.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":ce.tintColor=ue;break;case"CIMVectorMarker":ce.markerGraphics?.forEach(pe=>{le(pe.symbol,Y,ee)});break;case"CIMSolidStroke":case"CIMSolidFill":ce.color=ue;break;case"CIMHatchFill":le(ce.lineSymbol,Y,ee)}}}},12948:(nt,Ae,v)=>{"use strict";v.d(Ae,{ix:()=>R,l9:()=>Z,rx:()=>Q});var D=v(91558);const R=new D.Z("white"),Z=(new D.Z("black"),new D.Z([255,255,255,0]));function Q($){return 0===$.r&&0===$.g&&0===$.b}},8080:(nt,Ae,v)=>{"use strict";v.d(Ae,{CJ:()=>B,Rz:()=>X,xA:()=>W,z3:()=>H}),v(8314);var R=v(88493),G=v(52068),Z=v(57213),Q=v(35540),$=v(24837);const W=Z.Z.fromJSON($.I4),B=G.Z.fromJSON($.ET),H=R.Z.fromJSON($.lF),X=Q.Z.fromJSON($.qP);Z.Z.fromJSON($.eG),G.Z.fromJSON($.wW),R.Z.fromJSON($.lj)},24837:(nt,Ae,v)=>{"use strict";v.d(Ae,{ET:()=>Z,I4:()=>G,SQ:()=>D,X1:()=>R,eG:()=>W,lF:()=>Q,lj:()=>H,qP:()=>$,wW:()=>B});const D=[252,146,31,255],R=[153,153,153,255],G={type:"esriSMS",style:"esriSMSCircle",size:6,color:D,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},Z={type:"esriSLS",style:"esriSLSSolid",width:.75,color:D},Q={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},$={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},W={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},B={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},H={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},74741:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ne:()=>j,Od:()=>de,Sp:()=>re,_M:()=>le,mx:()=>se});var D=v(54346),R=v(91558),G=v(84792),Z=v(78498),Q=v(23841),$=v(56445);const W="picture-fill",B="simple-fill",X="simple-marker",oe=new Z.Z(1e3);function le(Y){const ee=Y.style;let ie=null;if(Y)switch(Y.type){case X:"cross"!==ee&&"x"!==ee&&(ie=Y.color);break;case B:"solid"===ee?ie=Y.color:"none"!==ee&&(ie={type:"pattern",x:0,y:0,src:(0,D.V)(`esri/symbols/patterns/${ee}.png`),width:5,height:5});break;case W:ie={type:"pattern",src:Y.url,width:(0,Q.F2)(Y.width)*Y.xscale,height:(0,Q.F2)(Y.height)*Y.yscale,x:(0,Q.F2)(Y.xoffset),y:(0,Q.F2)(Y.yoffset)};break;case"text":ie=Y.color;break;case"cim":ie=(0,$.iW)(Y)}return ie}function de(Y,ee){const ie=Y+"-"+ee;return void 0!==oe.get(ie)?Promise.resolve(oe.get(ie)):(0,G.default)(Y,{responseType:"image"}).then(J=>{const ce=J.data,ue=ce.naturalWidth,pe=ce.naturalHeight,he=document.createElement("canvas");he.width=ue,he.height=pe;const me=he.getContext("2d");me.fillStyle=ee,me.fillRect(0,0,ue,pe),me.globalCompositeOperation="destination-in",me.drawImage(ce,0,0);const ge=he.toDataURL();return oe.put(ie,ge),ge})}function se(Y){if(!Y)return null;let ee=null;switch(Y.type){case B:case W:case X:ee=se(Y.outline);break;case"simple-line":{const ie=(0,Q.F2)(Y.width);null!=Y.style&&"none"!==Y.style&&0!==ie&&(ee={color:Y.color,style:re(Y.style),width:ie,cap:Y.cap,join:"miter"===Y.join?(0,Q.F2)(Y.miterLimit):Y.join});break}default:ee=null}return ee}const re=(()=>{const Y={};return ee=>{if(Y[ee])return Y[ee];const ie=ee.replace(/-/g,"");return Y[ee]=ie,ie}})(),j=new R.Z([128,128,128])},9461:(nt,Ae,v)=>{"use strict";v.d(Ae,{cW:()=>B,im:()=>ae,vX:()=>H});var D=v(20383),R=v(26584),G=v(62208),Z=v(39368),Q=v(70137),$=v(12874);const W=["building-scene","integrated-mesh","point-cloud","scene"];function B(oe,le,de,se){const re=te(oe,{},{context:se,isLabelSymbol:!1});(0,G.pC)(re)&&(le[de]=re)}function H(oe,le,de,se){const re=te(oe,{},{context:se,isLabelSymbol:!0});(0,G.pC)(re)&&(le[de]=re)}function X(oe){return oe instanceof Z.Z||oe instanceof $.Z}function te(oe,le,de){if((0,G.Wi)(oe))return null;const{context:se,isLabelSymbol:re}=de,j=se?.origin,Y=se?.messages;if("web-scene"===j&&!X(oe)){const ie=(0,Q.q)(oe,{retainCIM:!0,hasLabelingContext:re});return(0,G.pC)(ie.symbol)?ie.symbol.write(le,se):(Y?.push(new R.Z("symbol:unsupported",`Symbols of type '${oe.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:oe,context:se,error:ie.error})),null)}const ee=se?.layer?.type;return"web-map"!==j&&("portal-item"!==j||ee&&W.includes(ee))||!X(oe)?oe.write(le,se):(Y?.push(new R.Z("symbol:unsupported",`Symbols of type '${oe.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:oe,context:se})),null)}function ae(oe,le){return(0,D.S9)(oe,null,le)}},67866:(nt,Ae,v)=>{"use strict";v.d(Ae,{J:()=>D,k:()=>R});const D=["begin","end","begin-end"],R=["arrow","circle","square","diamond","cross","x"]},60958:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>W,y:()=>B});var D=v(91558),R=v(23841),G=v(90912),Z=v(92236);const W={type:D.Z,json:{type:[G.z8],default:null,read:{source:["color","transparency"],reader:function Q(H,X){const te=null!=X.transparency?(0,Z.b)(X.transparency):1,ae=X.color;return ae&&Array.isArray(ae)?new D.Z([ae[0]||0,ae[1]||0,ae[2]||0,te]):null}},write:{target:{color:{type:[G.z8]},transparency:{type:G.z8}},writer:function $(H,X){X.color=H.toJSON().slice(0,3);const te=(0,Z.a)(H.a);0!==te&&(X.transparency=te)}}}},B={type:Number,cast:R.t_,json:{write:!0}}},66960:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{getPatternDescriptor:()=>me,getSizeFromOptions:()=>ve,getSymbolLayerFill:()=>he,previewSymbol3D:()=>Be});var D=v(15861),R=v(54346),G=v(78260),Q=(v(8314),v(26584)),$=v(63290),W=v(62208),B=v(10699),H=v(23841),X=v(74741),te=v(33215),ae=v(48521),oe=v(71131),le=v(34057),de=v(86606),se=v(50998);const re=oe.b_.size,j=oe.b_.maxSize,Y=oe.b_.maxOutlineSize,ee=oe.b_.lineWidth,ie=oe.b_.tallSymbolWidth;function J(Fe){const je=Fe.outline,Re=(0,W.pC)(Fe.material)?Fe.material.color:null,He=(0,W.pC)(Re)?Re.toHex():null;if((0,W.Wi)(je)||"pattern"in je&&(0,W.pC)(je.pattern)&&"style"===je.pattern.type&&"none"===je.pattern.style)return"fill"===Fe.type&&"#ffffff"===He?{color:"#bdc3c7",width:.75}:null;const Ie=(0,H.F2)(je.size)||0;return{color:"rgba("+((0,W.pC)(je.color)?je.color.toRgba():"255,255,255,1")+")",width:Math.min(Ie,Y),style:"pattern"in je&&(0,W.pC)(je.pattern)&&"style"===je.pattern.type?(0,X.Sp)(je.pattern.style):null,join:"butt",cap:"patternCap"in je?je.patternCap:"butt"}}function ue(Fe,je=1){const Re=Fe.a,He=(0,G._Y)(Fe),Ie=He.h,Ge=He.s/je,Pe=100-(100-He.v)/je,{r:Le,g:Me,b:Ne}=(0,G.xr)({h:Ie,s:Ge,v:Pe});return[Le,Me,Ne,Re]}function pe(Fe){return"water"===Fe.type?(0,W.Wi)(Fe.color)?null:Fe.color:(0,W.Wi)(Fe.material)||(0,W.Wi)(Fe.material.color)?null:Fe.material.color}function he(Fe,je=0){const Re=pe(Fe);if(!Re){if("fill"===Fe.type)return null;const Ge=(0,oe.uH)(X.Ne.r,je);return[Ge,Ge,Ge,100]}const He=Re.toRgba();for(let Ie=0;Ie<3;Ie++)He[Ie]=(0,oe.uH)(He[Ie],je);return He}function me(Fe,je){return ge.apply(this,arguments)}function ge(){return(ge=(0,D.Z)(function*(Fe,je){const Re=Fe.style;return"none"===Re?null:{type:"pattern",x:0,y:0,src:yield(0,X.Od)((0,R.V)(`esri/symbols/patterns/${Re}.png`),je.toCss(!0)),width:5,height:5}})).apply(this,arguments)}function _e(Fe){return Fe.outline?J(Fe):{color:"rgba(0, 0, 0, 1)",width:1.5}}function Ee(Fe,je){const Re=pe(Fe);if(!Re)return null;let He="rgba(";return He+=(0,oe.uH)(Re.r,je)+",",He+=(0,oe.uH)(Re.g,je)+",",He+=(0,oe.uH)(Re.b,je)+",",He+Re.a+");"}function De(Fe,je){const Re=Ee(Fe,je);return Re?"pattern"in Fe&&(0,W.pC)(Fe.pattern)&&"style"===Fe.pattern.type&&"none"===Fe.pattern.style?null:{color:Re,width:Math.min(Fe.size?(0,H.F2)(Fe.size):.75,Y),style:"pattern"in Fe&&(0,W.pC)(Fe.pattern)&&"style"===Fe.pattern.type?(0,X.Sp)(Fe.pattern.style):null,cap:"cap"in Fe?Fe.cap:null,join:"join"in Fe?"miter"===Fe.join?(0,H.F2)(2):Fe.join:null}:{}}function be(Fe,je,Re){const He=null!=Re?.75*Re:0;return{type:"linear",x1:He?.25*He:0,y1:He?.5*He:0,x2:He||4,y2:He?.5*He:4,colors:[{color:Fe,offset:0},{color:je,offset:1}]}}function ve(Fe){const je="number"==typeof Fe?.size?Fe?.size:null;return je?(0,H.F2)(je):null}function Ce(){return(Ce=(0,D.Z)(function*(Fe,je){const Re="mesh-3d"===Fe.type,He=Fe.symbolLayers,Ie=ve(je),Ge=je&&je.maxSize?(0,H.F2)(je.maxSize):null,Pe=Ie||re,Le=[];let Me=0,Ne=0,Xe=!1;for(let Ye=0;Ye{if("icon"!==Ye.type&&"object"!==Ye.type)return;const Je="icon"===Ye.type?Ye.size&&(0,H.F2)(Ye.size):0,rt=Re||Je?Math.ceil(Math.min(Re||Je,He||j)):re;if(Ye&&Ye.resource&&Ye.resource.href){const tt=function ce(Fe,je){const Re=je&&je.resource,He=Re&&Re.href;if(Fe.thumbnail&&Fe.thumbnail.url)return Promise.resolve(Fe.thumbnail.url);if(He&&"object"!==je.type)return Promise.resolve((0,de.nf)(Fe,je));const Ie=(0,R.V)("esri/images/Legend/legend3dsymboldefault.png");return Fe.styleOrigin&&(Fe.styleOrigin.styleName||Fe.styleOrigin.styleUrl)?(0,se.resolveWebStyleSymbol)(Fe.styleOrigin,{portal:Fe.styleOrigin.portal},"webRef").catch(Ge=>Ge).then(Ge=>Ge?.thumbnail?.url||Ie):Promise.resolve(Ie)}(Fe,Ye).then(et=>{const qe=Ye.get("material.color"),ot=function xe(Fe){return"icon"===Fe.type?"multiply":"tint"}(Ye);return(0,le.r)(et,rt,qe,ot,Ie)}).then(et=>{const qe=et.width,ot=et.height;return Le=Math.max(Le,qe),Me=Math.max(Me,ot),[{shape:{type:"image",x:0,y:0,width:qe,height:ot,src:et.url},fill:null,stroke:null}]});Pe.push(tt)}else{let tt=rt;"icon"===Ye.type&&Xe&&Re&&(tt=rt*(Je/Xe));const et="tall"===je?.symbolConfig||je?.symbolConfig?.isTall||"object"===Ye.type&&function Se(Fe){const je=Fe.depth,Re=Fe.height,He=Fe.width;return 0!==He&&0!==je&&0!==Re&&He===je&&null!=He&&null!=Re&&He{const Je=[];return Ye.forEach(rt=>{rt.value?Je.push(rt.value):rt.error&&$.Z.getLogger("esri.symbols.support.previewSymbol3D").warn("error while building swatchInfo!",rt.error)}),(0,le.w)(Je,[Le,Me],{node:je&&je.node,scale:!1,opacity:je&&je.opacity})})}(Fe,je);case"line-3d":return function Ke(Fe,je){const Re=Fe.symbolLayers,He=[],Ie=(0,de.YW)(Fe),Ge=ve(je),Pe=(je&&je.maxSize?(0,H.F2)(je.maxSize):null)||Y;let Le,Me=0,Ne=0;return Re.forEach((Xe,Ye)=>{if(!Xe||"line"!==Xe.type&&"path"!==Xe.type)return;const Je=[];switch(Xe.type){case"line":{const rt=De(Xe,0);if((0,W.Wi)(rt))break;const tt=rt&&rt.width||0;0===Ye&&(Le=tt);const et=Math.min(Ge||tt,Pe),qe=0===Ye?et:Ge?et*(tt/Le):et,ot=qe>ee/2?2*qe:ee;Ne=Math.max(Ne,qe),Me=Math.max(Me,ot),rt.width=qe,Je.push({shape:{type:"path",path:[{command:"M",values:[0,.5*Ne]},{command:"L",values:[Me,.5*Ne]}]},stroke:rt});break}case"path":{const rt=Math.min(Ge||re,Pe),tt=he(Xe,0),et=he(Xe,-.2),qe=Ee(Xe,-.4),ot=qe?{color:qe,width:1}:{};if("quad"===Xe.profile){const ut=Xe.width,_t=Xe.height,Ct=(0,oe.eb)(ut&&_t?ut/_t:1,0===_t,0===ut),vt={...ot,join:"bevel"};Je.push({shape:Ct[0],fill:et,stroke:vt}),Je.push({shape:Ct[1],fill:et,stroke:vt}),Je.push({shape:Ct[2],fill:tt,stroke:vt})}else Je.push({shape:oe.JZ.pathSymbol3DLayer[0],fill:et,stroke:ot}),Je.push({shape:oe.JZ.pathSymbol3DLayer[1],fill:tt,stroke:ot});Ne=Math.max(Ne,rt),Me=Ne}}He.push(Je)}),Promise.resolve((0,le.w)(He,[Me,Ne],{node:je&&je.node,scale:Ie,opacity:je&&je.opacity}))}(Fe,je);case"polygon-3d":case"mesh-3d":return function We(Fe,je){return Ce.apply(this,arguments)}(Fe,je)}return Promise.reject(new Q.Z("symbolPreview: swatchInfo3D","symbol not supported."))}},71131:(nt,Ae,v)=>{"use strict";v.d(Ae,{DY:()=>X,EB:()=>B,EV:()=>Q,JZ:()=>G,Pc:()=>W,TE:()=>H,XX:()=>te,b_:()=>R,dc:()=>le,eb:()=>Z,ht:()=>$,tp:()=>ae,uH:()=>oe});var R,de,D=v(91558);(de=R||(R={}))[de.size=22]="size",de[de.lineWidth=50]="lineWidth",de[de.maxSize=120]="maxSize",de[de.maxOutlineSize=80]="maxOutlineSize",de[de.tallSymbolWidth=20]="tallSymbolWidth";const G={fill:[{type:"path",path:"M -10,-10 L 10,0 L 10,10 L -10,10 L -10,-10 Z"}],squareFill:[{type:"path",path:"M -10,-10 L 10,-10 L 10,10 L -10,10 L -10,-10 Z"}],pathSymbol3DLayer:[{type:"path",path:"M 3,12 L 12,0 L 11,-2 L -4,5 L -1,5 L 1,7 L 3,10 L 3,12 Z"},{type:"circle",cx:-2,cy:10,r:5}],extrudeSymbol3DLayer:[{type:"path",path:"M -7,-5 L -2,0 L -2,7 L -7,3 L -7,-5 Z"},{type:"path",path:"M -2,0 L -2,7 L 10,-3 L 10,-10 L -2,0 Z"},{type:"path",path:"M -7,-5 L -2,0 L 10,-10 L -2,-10 L -7,-5 Z"}],cone:[{type:"path",path:"M 0,-10 L -8,5 L -4,6.5 L 0,7 L 4,6.5 L 8,5 Z"}],tallCone:[{type:"path",path:"M 0,-9 L -3.5,7 L -1.5,7.8 L 0,8 L 1.5,7.8 L 3.5,7 L 0,-9 Z"}],invertedCone:[{type:"path",path:"M 0,7 L -8,-8 L 8,-8 Z"},{type:"path",path:"M -8,-8 L -4,-9.5 L 0,-10 L 4,-9.5 L 8,-8 L 4,-6.5 L 0,-6 L -4,-6.5 Z"}],cube:[{type:"path",path:"M -10,-7 L 0,-12 L 10,-7 L 0,-2 L -10,-7 Z"},{type:"path",path:"M -10,-7 L 0,-2 L 0,12 L -10,7 L -10,-7 Z"},{type:"path",path:"M 0,-2 L 10,-7 L 10,7 L 0,12 L 0,-2 Z"}],tallCube:[{type:"path",path:"M -3.5,-8.5 L 0,-9.5 L 3.5,-8.5 L 0,-7.5 L -3.5,-8.5 Z"},{type:"path",path:"M -3.5,-8.5 L 0,-7.5 L 0,9 L -3.5,8 L -3.5,-8.5 Z"},{type:"path",path:"M 0,-7.5 L 3.5,-8.5 L 3.5,8 L 0,9 L 0,-7.5 Z"}],cylinder:[{type:"path",path:"M -8,-9 L -8,7 L -4,8.5 L 0,9 L 4,8.5 L 8,7 L 8,-9 Z"},{type:"ellipse",cx:0,cy:-9,rx:8,ry:2}],tallCylinder:[{type:"path",path:"M -3.5,-9 L -3.5,7 L -1.5,7.8 L 0,8 L 1.5,7.8 L 3.5,7 L 3.5,-9 Z"},{type:"ellipse",cx:0,cy:-9,rx:3.5,ry:1}],diamond:[{type:"path",path:"M 0,-10 L 10,-1 L -1,1 L 0,-10 Z"},{type:"path",path:"M 0,-10 L -1,1 L -8,-1 L 0,-10 Z"},{type:"path",path:"M -1,1 L 0,10 L -8,-1 L -1,1 Z"},{type:"path",path:"M -1,0 L 0,10 L 10,-1 L -1,1 Z"}],tetrahedron:[{type:"path",path:"M 0,-10 L 10,7 L 0,0 L 0,-10 Z"},{type:"path",path:"M 0,-10 L 0,0 L -8,7 L 0,-10 Z"},{type:"path",path:"M 10,7 L 0,0 L -8,7 L 10,7 Z"}]};function Z(de,se,re){const j=R.size;let Y=j,ee=j;de<1?Y*=.75:de>1&&(ee*=1.25);let ce=j,ue=j;return se&&re&&(Y=ee=ce=ue=0),[{type:"path",path:[{command:"M",values:[ce,0]},{command:"L",values:[re?ce:.875*ce,0]},{command:"L",values:[re?Y-.5*ce:0,ee-.5*ue]},{command:"L",values:[Y-.5*ce,ee-.5*ue]},{command:"Z",values:[]}]},{type:"path",path:[{command:"M",values:[ce,0]},{command:"L",values:[ce,se?0:.125*ue]},{command:"L",values:[Y-.5*ce,se?ee-.5*ue:ue]},{command:"L",values:[Y-.5*ce,ee-.5*ue]},{command:"Z",values:[]}]},{type:"path",path:[{command:"M",values:[Y-.5*ce,ee-.5*ue]},{command:"L",values:[re?Y-.5*ce:0,ee-.5*ue]},{command:"L",values:[re?Y-.5*ce:0,se?ee-.5*ue:ue]},{command:"L",values:[Y-.5*ce,se?ee-.5*ue:ue]},{command:"Z",values:[]}]}]}function Q(de){const se=R.size,re=.5*de;return[{type:"path",path:[{command:"M",values:[0,.7*se*.5]},{command:"L",values:[.3*se,.7*se]},{command:"L",values:[.3*se,.7*se+re]},{command:"L",values:[0,.7*se+re-.7*se*.5]},{command:"Z",values:[]}]},{type:"path",path:[{command:"M",values:[.3*se,.7*se]},{command:"L",values:[.3*se,.7*se+re]},{command:"L",values:[se,re]},{command:"L",values:[se,0]},{command:"Z",values:[]}]},{type:"path",path:[{command:"M",values:[.3*se,0]},{command:"L",values:[se,0]},{command:"L",values:[.3*se,.7*se]},{command:"L",values:[0,.7*se*.5]},{command:"Z",values:[]}]}]}function $(){return[{type:"path",path:"M80,80.2v-27c-1.5,0.7-2.8,1.6-3.9,2.8c-1.8,2.1-4.4,3.3-7.1,3.5c-2.7-0.1-5.3-1.4-7.1-3.4c-2.2-2.3-4.7-3.6-7.4-3.6s-5.1,1.3-7.3,3.6c-1.8,2.1-4.4,3.3-7.2,3.4c-2.7-0.1-5.3-1.4-7.1-3.4c-2.2-2.3-4.7-3.6-7.4-3.6s-5.1,1.3-7.4,3.6c-1.8,2.1-4.4,3.3-7.2,3.4C8.3,59.3,5.7,58,3.9,56c-1.1-1.2-2.4-2.1-3.9-2.8v27"},{type:"path",path:"M11,59.4c2.7-0.1,5.3-1.4,7.1-3.4c2.2-2.3,4.7-3.6,7.4-3.6s5.1,1.3,7.4,3.6c1.8,2,4.4,3.3,7.2,3.4c2.7-0.1,5.3-1.4,7.1-3.4c2.2-2.3,4.7-3.6,7.3-3.6s5.1,1.3,7.4,3.6c1.8,2.1,4.4,3.3,7.2,3.4c2.7-0.1,5.3-1.4,7.1-3.4c1.1-1.2,2.4-2.1,3.9-2.8v-24c-1.5,0.7-2.8,1.6-3.9,2.8c-1.8,2.1-4.4,3.3-7.1,3.5c-2.7-0.1-5.3-1.4-7.1-3.4c-2.2-2.3-4.7-3.6-7.4-3.6s-5.1,1.3-7.3,3.6c-1.8,2.1-4.4,3.3-7.2,3.4c-2.7-0.1-5.3-1.4-7.1-3.4c-2.2-2.3-4.7-3.6-7.4-3.6s-5.1,1.3-7.4,3.6c-1.8,2.1-4.4,3.3-7.2,3.4c-2.7-0.1-5.3-1.4-7.1-3.4c-1.1-1.2-2.4-2.1-3.9-2.8v24c1.5,0.7,2.8,1.6,3.9,2.8C5.7,58,8.3,59.3,11,59.4z"},{type:"path",path:"M11,35.4c2.7-0.1,5.3-1.4,7.1-3.4c2.2-2.3,4.7-3.6,7.4-3.6s5.1,1.3,7.4,3.6c1.8,2,4.4,3.3,7.2,3.4c2.7-0.1,5.3-1.4,7.1-3.4c2.2-2.3,4.7-3.6,7.3-3.6s5.1,1.3,7.4,3.6c1.8,2.1,4.4,3.3,7.2,3.4c2.7-0.1,5.3-1.4,7.1-3.4c1.1-1.2,2.4-2.1,3.9-2.8V3.6c-1.5,0.7-2.8,1.6-3.9,2.8c-2.2,2.1-4.6,3.4-7.1,3.4s-5-1.3-7.1-3.4s-4.7-3.6-7.4-3.6s-5.1,1.3-7.3,3.6S42.5,9.9,40,9.9s-5-1.3-7.1-3.4s-4.7-3.6-7.4-3.6s-5.1,1.3-7.3,3.6c-1.8,2.1-4.4,3.3-7.2,3.4c-2.5,0-5-1.3-7.1-3.4C2.8,5.3,1.4,4.3,0,3.6v25.6c1.5,0.7,2.8,1.6,3.9,2.8C5.7,34.1,8.3,35.3,11,35.4z"}]}function W(de,se){let re=se?R.tallSymbolWidth:de;const Y=se?4:6;re-=re<=R.size?.5*Y:Y;const J=se?.35*re:.5*re;return[{type:"path",path:[{command:"M",values:[.5*re,0]},{command:"L",values:[re,.5*J]},{command:"L",values:[.5*re,J]},{command:"L",values:[0,.5*J]},{command:"Z",values:[]}]},{type:"path",path:[{command:"M",values:[0,.5*J]},{command:"L",values:[.5*re,J]},{command:"L",values:[.5*re,de]},{command:"L",values:[0,de-.5*J]},{command:"Z",values:[]}]},{type:"path",path:[{command:"M",values:[.5*re,J]},{command:"L",values:[.5*re,de]},{command:"L",values:[re,de-.5*J]},{command:"L",values:[re,.5*J]},{command:"Z",values:[]}]}]}function B(de,se){let re=se?R.tallSymbolWidth:de;const Y=se?4:6;re-=re<=R.size?.5*Y:Y;const ee=.5*re,ie=.15*re,ce=de-ie;return[{type:"ellipse",cx:.5*re,cy:ce,rx:ee,ry:ie},{type:"path",path:[{command:"M",values:[0,ie]},{command:"L",values:[0,ce]},{command:"L",values:[re,ce]},{command:"L",values:[re,ie]},{command:"Z",values:[]}]},{type:"ellipse",cx:.5*re,cy:ie,rx:ee,ry:ie}]}function H(de,se){let re=se?R.tallSymbolWidth:de;const Y=se?4:6;re-=re<=R.size?.5*Y:Y;const ee=.15*re,ie=de-ee;return[{type:"ellipse",cx:.5*re,cy:ie,rx:.5*re,ry:ee},{type:"path",path:[{command:"M",values:[.5*re,0]},{command:"L",values:[re,ie]},{command:"L",values:[0,ie]},{command:"Z",values:[]}]}]}function X(de){let se=de;se-=se{"use strict";v.d(Ae,{r:()=>se,w:()=>te});var D=v(24263),R=v(84792),G=v(78260),Z=v(26584),Q=v(8314),W=(v(50645),v(62996)),B=v(30695),H=v(86606);const X=(0,W.E)();function te(re,j,Y){const ee=Math.ceil(j[0]),ie=Math.ceil(j[1]);if(!re.some(ce=>!!ce.length))return null;const J=Y&&Y.node||document.createElement("div");return null!=Y.opacity&&(J.style.opacity=Y.opacity.toString()),null!=Y.effectView&&(J.style.filter=(0,H.wJ)(Y.effectView)),X.append(J,B.KB.bind(null,re,ee,ie,Y)),J}function de(re,j,Y,ee,ie){switch(ie){case"multiply":re[j+0]*=Y[0],re[j+1]*=Y[1],re[j+2]*=Y[2],re[j+3]*=Y[3];break;default:{const J=(0,G._Y)({r:re[j+0],g:re[j+1],b:re[j+2]});J.h=ee.h,J.s=ee.s,J.v=J.v/100*ee.v;const ce=(0,G.xr)(J);re[j+0]=ce.r,re[j+1]=ce.g,re[j+2]=ce.b,re[j+3]*=Y[3];break}}}function se(re,j,Y,ee,ie){return function oe(re,j,Y){return re?(0,R.default)(re,{responseType:"image"}).then(ee=>{const ie=ee.data,J=ie.width,ce=ie.height,ue=J/ce;let pe=j;if(Y){const he=Math.max(J,ce);pe=Math.min(pe,he)}return{image:ie,width:ue<=1?Math.ceil(pe*ue):pe,height:ue<=1?pe:Math.ceil(pe/ue)}}):Promise.reject(new Z.Z("renderUtils: imageDataSize","href not provided."))}(re,j,ie).then(J=>{const ce=J.width?J.width:j,ue=J.height?J.height:j;if(J.image&&function le(re,j){return!(!re||"ignore"===j||"multiply"===j&&255===re.r&&255===re.g&&255===re.b&&1===re.a)}(Y,ee)){let pe=J.image.width,he=J.image.height;(0,Q.Z)("edge")&&/\.svg$/i.test(re)&&(pe-=1,he-=1);const me=function ae(re,j){re=Math.ceil(re),j=Math.ceil(j);const Y=document.createElement("canvas");Y.width=re,Y.height=j,Y.style.width=re+"px",Y.style.height=j+"px";const ee=Y.getContext("2d");return ee.clearRect(0,0,re,j),ee}(ce,ue);me.drawImage(J.image,0,0,pe,he,0,0,ce,ue);const ge=me.getImageData(0,0,ce,ue),_e=[Y.r/255,Y.g/255,Y.b/255,Y.a],Ee=(0,G._Y)(Y);for(let De=0;De({url:re,width:j,height:j}))}},71937:(nt,Ae,v)=>{"use strict";v.d(Ae,{EJ:()=>j,KV:()=>se,n2:()=>de,v9:()=>re,wm:()=>ie});var D=v(15861),R=v(84792),G=v(26584),Z=v(62208),Q=v(10699),$=v(21726),W=v(84687),B=v(6278),H=v(35560);const X={};function ae(){return(ae=(0,D.Z)(function*(J,ce){try{return{data:(yield j(J,ce)).data,baseUrl:(0,$.Yd)(J),styleUrl:J}}catch(ue){return(0,Q.r9)(ue),null}})).apply(this,arguments)}function de(J,ce,ue){return J&&(0,Z.pC)(J.styleUrl)?function te(J,ce){return ae.apply(this,arguments)}(J.styleUrl,ue):J&&(0,Z.pC)(J.styleName)?function oe(J,ce,ue){const pe=(0,Z.pC)(ce.portal)?ce.portal:W.Z.getDefault();let he;const me=`${pe.url} - ${pe.user&&pe.user.username} - ${J}`;return X[me]||(X[me]=function le(J,ce,ue){return ce.load(ue).then(()=>{const pe=new B.Z({disableExtraQuery:!0,query:`owner:${Y} AND type:${ee} AND typekeywords:"${J}"`});return ce.queryItems(pe,ue)}).then(({results:pe})=>{let he=null;const me=J.toLowerCase();if(pe&&Array.isArray(pe))for(const ge of pe)if(ge.typeKeywords?.some(Ee=>Ee.toLowerCase()===me)&&ge.type===ee&&ge.owner===Y){he=ge;break}if(!he)throw new G.Z("symbolstyleutils:style-not-found",`The style '${J}' could not be found`,{styleName:J});return he.load(ue)})}(J,pe,ue).then(ge=>(he=ge,ge.fetchData())).then(ge=>({data:ge,baseUrl:he.itemUrl??"",styleName:J}))),X[me]}(J.styleName,ce,ue):Promise.reject(new G.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function se(J){return null===J||"CIMSymbolReference"===J.type?J:{type:"CIMSymbolReference",symbol:J}}function re(J,ce){if("cimRef"===ce)return J.cimRef;if(J.formatInfos&&!(0,H.K3)())for(const ue of J.formatInfos)if("gltf"===ue.type)return ue.href;return J.webRef}function j(J,ce){const ue={responseType:"json",query:{f:"json"},...ce};return(0,R.default)((0,$.Fv)(J),ue)}const Y="esri_en",ee="Style",ie="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},30695:(nt,Ae,v)=>{"use strict";v.d(Ae,{A5:()=>ve,KB:()=>We,al:()=>xe,ch:()=>he,iL:()=>ze,jA:()=>ce,kQ:()=>ue,vq:()=>J});var D=v(91558),R=v(8314),G=v(62208),Z=v(12225),Q=v(31478),W=(v(38570),v(94450));let H=0,X=0;const te=(0,R.Z)("android"),ae=(0,R.Z)("chrome")||te&&te>=4?"auto":"optimizeLegibility",oe={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0},le=/([A-DF-Za-df-z])|([-+]?\d*[.]?\d+(?:[eE][-+]?\d+)?)/g;let de={},se={};const re={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]},j=Math.PI;let Y=1;function ee(Ce,Be){const Fe=Ce*(j/180);return Math.abs(Be*Math.sin(Fe))+Math.abs(Be*Math.cos(Fe))}function ie(Ce){return Ce.map(Be=>`${Be.command} ${Be.values.join(" ")}`).join(" ").trim()}function J(Ce,Be,Fe,je){if(Ce){if("circle"===Ce.type)return(0,W.u)("circle",{fill:Be,"fill-rule":"evenodd",stroke:Fe.color,"stroke-width":Fe.width,"stroke-linecap":Fe.cap,"stroke-linejoin":Fe.join,"stroke-dasharray":Fe.dashArray,"stroke-dashoffset":Fe.dashOffset,"stroke-miterlimit":"4",cx:Ce.cx,cy:Ce.cy,r:Ce.r});if("ellipse"===Ce.type)return(0,W.u)("ellipse",{fill:Be,"fill-rule":"evenodd",stroke:Fe.color,"stroke-width":Fe.width,"stroke-linecap":Fe.cap,"stroke-linejoin":Fe.join,"stroke-dasharray":Fe.dashArray,"stroke-miterlimit":"4",cx:Ce.cx,cy:Ce.cy,rx:Ce.rx,ry:Ce.ry});if("rect"===Ce.type)return(0,W.u)("rect",{fill:Be,"fill-rule":"evenodd",stroke:Fe.color,"stroke-width":Fe.width,"stroke-linecap":Fe.cap,"stroke-linejoin":Fe.join,"stroke-dasharray":Fe.dashArray,"stroke-miterlimit":"4",x:Ce.x,y:Ce.y,width:Ce.width,height:Ce.height});if("image"===Ce.type)return(0,W.u)("image",{href:Ce.src,x:Ce.x,y:Ce.y,width:Ce.width,height:Ce.height,preserveAspectRatio:"none"});if("path"===Ce.type){const Re="string"!=typeof Ce.path?ie(Ce.path):Ce.path;return(0,W.u)("path",{fill:Be,"fill-rule":"evenodd",stroke:Fe.color,"stroke-width":Fe.width,"stroke-linecap":Fe.cap,"stroke-linejoin":Fe.join,"stroke-dasharray":Fe.dashArray,"stroke-miterlimit":"4",d:Re})}if("text"===Ce.type)return(0,G.O3)(je),(0,W.u)("text",{"dominant-baseline":je.dominantBaseline,fill:Be,"fill-rule":"evenodd",stroke:Fe.color,"stroke-width":Fe.width,"stroke-linecap":Fe.cap,"stroke-linejoin":Fe.join,"stroke-dasharray":Fe.dashArray,"stroke-miterlimit":"4","text-anchor":je.align,"text-decoration":je.decoration,kerning:je.kerning,rotate:je.rotate,"text-rendering":ae,"font-style":je.font.style,"font-variant":je.font.variant,"font-weight":je.font.weight,"font-size":je.font.size,"font-family":je.font.family,x:Ce.x,y:Ce.y},Ce.text)}return null}function ce(Ce){const Be={fill:"none",pattern:null,linearGradient:null};if(Ce)if("type"in Ce&&"pattern"===Ce.type){const Fe="patternId-"+ ++H;Be.fill=`url(#${Fe})`,Be.pattern={id:Fe,x:Ce.x,y:Ce.y,width:Ce.width,height:Ce.height,image:{x:0,y:0,width:Ce.width,height:Ce.height,href:Ce.src}}}else if("type"in Ce&&"linear"===Ce.type){const Fe="linearGradientId-"+ ++X;Be.fill=`url(#${Fe})`,Be.linearGradient={id:Fe,x1:Ce.x1,y1:Ce.y1,x2:Ce.x2,y2:Ce.y2,stops:Ce.colors.map(je=>({offset:je.offset,color:je.color&&new D.Z(je.color).toString()}))}}else if(Ce){const Fe=new D.Z(Ce);Be.fill=Fe.toString()}return Be}function ue(Ce){const Be={color:"none",width:1,cap:"butt",join:"4",dashArray:"none",dashOffset:"0"};if(Ce&&(null!=Ce.width&&(Be.width=Ce.width),Ce.cap&&(Be.cap=Ce.cap),Ce.join&&(Be.join=Ce.join.toString()),Ce.color&&(Be.color=new D.Z(Ce.color).toString()),Ce.dashArray&&(Be.dashArray=Ce.dashArray),Ce.dashArray&&(Be.dashOffset=Ce.dashoffset),Ce.style)){let Fe=null;if(Ce.style in re&&(Fe=re[Ce.style]),Array.isArray(Fe)){Fe=Fe.slice(0);const je=Ce.width??0;for(let Re=0;Re(0,W.u)("stop",{key:`${He}-stop`,offset:Re.offset,"stop-color":Re.color}));return(0,W.u)("linearGradient",{id:Fe.id,gradientUnits:"userSpaceOnUse",x1:Fe.x1,y1:Fe.y1,x2:Fe.x2,y2:Fe.y2},je)}return null}function me(Ce,Be){if(!Ce)return null;const Fe=[];for(const je of Ce){const{shape:Re,fill:He,stroke:Ie,font:Ge}=je,Pe=ce(He),Le=ue(Ie),Me="text"===Re.type?pe(Re,Ge):null,Ne=J(Re,Pe.fill,Le,Me);Ne&&Fe.push(Ne)}return(0,W.u)("mask",{id:Be,maskUnits:"userSpaceOnUse"},(0,W.u)("g",null,Fe))}function ge(Ce,Be,Fe){return(0,Q.t)(Ce,(0,Q.i)(Ce),[Be,Fe])}function _e(Ce,Be,Fe,je,Re){return(0,Q.s)(Ce,(0,Q.i)(Ce),[Be,Fe]),Ce[4]=Ce[4]*Be-je*Be+je,Ce[5]=Ce[5]*Fe-Re*Fe+Re,Ce}function De(Ce,Be){de&&"left"in de?(null!=de.left&&de.left>Ce&&(de.left=Ce),(null==de.right||de.rightBe)&&(de.top=Be),(null==de.bottom||de.bottom=je&&(Re={action:Ce,args:Be.slice(0,Be.length-Be.length%je)},Fe.push(Re),be(Re)):(Re={action:Ce,args:[]},Fe.push(Re),be(Re)))}function ve(Ce){const Be={x:0,y:0,width:0,height:0};if("circle"===Ce.type)Be.x=Ce.cx-Ce.r,Be.y=Ce.cy-Ce.r,Be.width=2*Ce.r,Be.height=2*Ce.r;else if("ellipse"===Ce.type)Be.x=Ce.cx-Ce.rx,Be.y=Ce.cy-Ce.ry,Be.width=2*Ce.rx,Be.height=2*Ce.ry;else if("image"===Ce.type||"rect"===Ce.type)Be.x=Ce.x,Be.y=Ce.y,Be.width=Ce.width,Be.height=Ce.height;else if("path"===Ce.type){const Fe=(0,G.s3)(function ye(Ce){const Be=("string"!=typeof Ce.path?ie(Ce.path):Ce.path).match(le),Fe=[];if(de={},se={},!Be)return null;let je="",Re=[];const He=Be.length;for(let Ge=0;GeFe?Be:Fe;let ut=1,_t=1;isNaN(ot)||(qe>1?(ut=ot/Ne,_t=ot/qe/Xe):(_t=ot/Xe,ut=ot*qe/Ne)),(0,Q.m)(Je,Je,_e(Ye,ut,_t,Le,Me)),rt=!0}const tt=Ce.x+(Ne-je)/2,et=Ce.y+(Xe-je)/2;if((0,Q.m)(Je,Je,ge(Ye,Le-tt,Me-et)),!rt&&(Ne>Be||Xe>Fe)){const qe=Ne/Be>Xe/Fe,ot=(qe?Be:Fe)/(qe?Ne:Xe);(0,Q.m)(Je,Je,_e(Ye,ot,ot,tt,et))}return He&&(0,Q.m)(Je,Je,function Ee(Ce,Be,Fe,je){const Re=Be%360*Math.PI/180;(0,Q.r)(Ce,(0,Q.i)(Ce),Re);const He=Math.cos(Re),Ie=Math.sin(Re),Ge=Ce[4],Pe=Ce[5];return Ce[4]=Ge*He-Pe*Ie+je*Ie-Fe*He+Fe,Ce[5]=Pe*He+Ge*Ie-Fe*Ie-je*He+je,Ce}(Ye,He,tt,et)),Ge&&(0,Q.m)(Je,Je,ge(Ye,Ge[0],Ge[1])),`matrix(${Je[0]},${Je[1]},${Je[2]},${Je[3]},${Je[4]},${Je[5]})`}function We(Ce,Be,Fe,je={}){const Re=[],He=[],Ie=++Y,Ge=function Ke(Ce,Be,Fe){const je=Ce?.effects.find(Le=>"bloom"===Le.type);if(!je)return null;const{strength:Re,radius:He}=je,Ie=Re>0?He:0,Ge=(Re+Ie)*Be,Pe=4*Re+1;return(0,W.u)("filter",{id:`bloom${Fe}`,x:"-100%",y:"-100%",width:"300%",height:"300%",filterUnits:"userSpaceOnUse"},(0,W.u)("feMorphology",{operator:"dilate",radius:(Re+.5*Ie)*(5**(Be/100)*(.4+Be/100)),in:"SourceGraphic",result:"dilate"}),(0,W.u)("feGaussianBlur",{in:"dilate",stdDeviation:Ge/25,result:"blur"}),(0,W.u)("feGaussianBlur",{in:"blur",stdDeviation:Ge/50,result:"intensityBlur"}),(0,W.u)("feComponentTransfer",{in:"SourceGraphic",result:"intensityBrightness"},(0,W.u)("feFuncR",{type:"linear",slope:Pe}),(0,W.u)("feFuncG",{type:"linear",slope:Pe}),(0,W.u)("feFuncB",{type:"linear",slope:Pe})),(0,W.u)("feMerge",null,(0,W.u)("feMergeNode",{in:"intensityBlur"}),(0,W.u)("feMergeNode",{in:"intensityBrightness"}),(0,W.u)("feGaussianBlur",{stdDeviation:Re/10})))}(je.effectView,Be,Ie);let Pe=null;if(Ge){const Le=je.effectView?.effects.find(Ye=>"bloom"===Ye.type),Me=(Le.strength?Le.strength+Le.radius/2:0)/3,Xe=Fe+Fe*Me;Pe=[Math.max(Be+Be*Me,10),Math.max(Xe,10)]}for(let Le=0;Le{"use strict";v.d(Ae,{K:()=>le,q:()=>de});var D=v(20383),R=v(26584),G=v(12874),Z=v(69852),Q=v(52068),$=v(9436),W=v(57213),B=v(13546),H=v(88493),X=v(36687),te=v(89673),ae=v(35540),oe=v(22490);const le={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function de(se,re=le){if(!se)return{symbol:null};const{retainId:j=le.retainId,ignoreDrivers:Y=le.ignoreDrivers,hasLabelingContext:ee=le.hasLabelingContext,retainCIM:ie=le.retainCIM}=re;let J=null;if((0,D.dU)(se)||se instanceof G.Z)J=se.clone();else if("cim"===se.type){const ce=se.data?.symbol?.type;if("CIMPointSymbol"!==ce)return{error:new R.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${ce||"unknown"}' is unsupported in 3D`,{symbol:se})};J=ie?se.clone():Z.Z.fromCIMSymbol(se)}else if(se instanceof Q.Z)J=$.Z.fromSimpleLineSymbol(se);else if(se instanceof W.Z)J=Z.Z.fromSimpleMarkerSymbol(se);else if(se instanceof B.Z)J=Z.Z.fromPictureMarkerSymbol(se);else if(se instanceof H.Z)J=re.geometryType&&"mesh"===re.geometryType?X.Z.fromSimpleFillSymbol(se):te.Z.fromSimpleFillSymbol(se);else{if(!(se instanceof ae.Z))return{error:new R.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${se.type||se.declaredClass}' is unsupported in 3D`,{symbol:se})};J=ee?oe.Z.fromTextSymbol(se):Z.Z.fromTextSymbol(se)}if(j&&J&&"cim"!==J.type&&(J.id=se.id),Y&&(0,D.dU)(J))for(let ce=0;ce{"use strict";v.d(Ae,{$K:()=>Z,Hc:()=>H,KW:()=>X,Uz:()=>B,w2:()=>te}),v(8314);var R=v(28093),G=v(5548);function Z(ae,{isPrimitive:oe,width:le,depth:de,height:se}){const re=oe?10:1;if(null==le&&null==se&&null==de)return[re*ae[0],re*ae[1],re*ae[2]];const j=(0,R.f)(le,de,se);let Y;for(let ee=0;ee<3;ee++){const ie=j[ee];if(null!=ie){Y=ie/ae[ee];break}}for(let ee=0;ee<3;ee++)null==j[ee]&&(j[ee]=ae[ee]*Y);return j}const Q=(0,G.al)(-.5,-.5,-.5,.5,.5,.5),$=(0,G.al)(-.5,-.5,0,.5,.5,1),W=(0,G.al)(-.5,-.5,0,.5,.5,.5);function B(ae){switch(ae){case"sphere":case"cube":case"diamond":return Q;case"cylinder":case"cone":case"inverted-cone":return $;case"tetrahedron":return W;default:return}}const H=["butt","square","round"],X=[...H,"none"],te=["miter","bevel","round"]},50369:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ck:()=>$,JT:()=>G,Nj:()=>X,g6:()=>Z,vC:()=>Q,x0:()=>H});var D=v(21286),R=v(90912);const G=["none","underline","line-through"],Z=["normal","italic","oblique"],Q=["normal","lighter","bold","bolder"],$={type:Number,cast:te=>{const ae=(0,R.q9)(te);return 0===ae?1:(0,D.uZ)(ae,.1,4)},nonNullable:!0},H={type:["left","right","center"],nonNullable:!0},X={type:["baseline","top","middle","bottom"],nonNullable:!0}},29505:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z7:()=>G,f9:()=>Q,lt:()=>R});var D=v(21254);function R($){return null!=D.a[$]}function G($){return 1/(D.a[$]||1)}const Q=function Z(){const $=Object.keys(D.a);return $.sort(),$}()},69738:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ds:()=>W,KA:()=>$});var D=v(21726),R=v(29840);function Z(H,X){return function B(H){return!(null==H||"service"!==H.origin&&"portal-item"!==H.origin||"feature"!==H.layer?.type&&"stream"!==H.layer?.type)}(X)&&!(0,D.YP)(H)&&X?.layer?.parsedUrl?(0,D.v_)(X.layer.parsedUrl.path,"images",H):(0,R.f)(H,X)}const $={json:{read:{source:["imageData","url"],reader:function G(H,X,te){return X.imageData?(0,D._l)({mediaType:X.contentType||"image/png",isBase64:!0,data:X.imageData}):Z(X.url,te)}},write:{writer(H,X,te,ae){!function Q(H,X,te,ae){if((0,D.HK)(H)){const oe=(0,D.sJ)(H);if(!oe)return;X.contentType=oe.mediaType,X.imageData=oe.data,te&&te.imageData===X.imageData&&te.url&&(0,R.w)(te.url,X,"url",ae)}else(0,R.w)(H,X,"url",ae)}(H,X,this.source,ae)}}}},W={readOnly:!0,json:{read:{source:["imageData","url"],reader(H,X,te){const ae={};return X.imageData&&(ae.imageData=X.imageData),X.contentType&&(ae.contentType=X.contentType),X.url&&(ae.url=Z(X.url,te)),ae}}}}},86606:(nt,Ae,v)=>{"use strict";v.d(Ae,{BR:()=>Be,QL:()=>je,Y6:()=>de,YW:()=>se,_h:()=>j,e3:()=>We,nf:()=>re,tb:()=>ce,wJ:()=>Fe});var D=v(15861),R=v(91558),G=v(20383),Z=v(59213),Q=v(8314),$=v(62208),W=v(23841),B=v(28093),H=v(71149),X=v(74741),te=v(64830);const ae=/\/resource\/(.*?)\.svg$/,oe=new R.Z("white");function de(Re){if(!Re)return 0;if((0,G.dU)(Re)){const He=function le(Re){const He=Re.symbolLayers&&Re.symbolLayers.length;if(!He)return;const Ie=Re.symbolLayers.getItemAt(He-1);return"outline"in Ie?(0,$.U2)(Ie,"outline","size"):void 0}(Re);return(0,$.pC)(He)?He:0}return(0,W.Wz)((0,X.mx)(Re)?.width)}function se(Re){if((0,$.Wi)(Re)||!("symbolLayers"in Re)||(0,$.Wi)(Re.symbolLayers))return!1;switch(Re.type){case"point-3d":return Re.symbolLayers.some(He=>"object"===He.type);case"line-3d":return Re.symbolLayers.some(He=>"path"===He.type);case"polygon-3d":return Re.symbolLayers.some(He=>"object"===He.type||"extrude"===He.type);default:return!1}}function re(Re,He){const Ie=(0,$.s3)(He.resource).href;return!(0,Q.Z)("esri-canvas-svg-support")&&Re.styleOrigin&&ae.test(Ie)?Ie.replace(ae,"/resource/png/$1.png"):Ie}function j(Re,He){if(!Re)return null;let Ie=null;return(0,G.dU)(Re)?Ie=function Y(Re){const He=Re.symbolLayers;if(!He)return null;let Ie=null;return He.forEach(Ge=>{"object"===Ge.type&&null!=Ge.resource?.href||(Ie="water"===Ge.type?(0,$.Wg)(Ge.color):(0,$.pC)(Ge.material)?(0,$.Wg)(Ge.material.color):null)}),Ie?new R.Z(Ie):null}(Re):(0,G.cT)(Re)&&(Ie=Re.color?new R.Z(Re.color):null),Ie?ee(Ie,He):null}function ee(Re,He){if(null==He||null==Re)return Re;const Ie=Re.toRgba();return Ie[3]=Ie[3]*He,new R.Z(Ie)}function ce(Re,He,Ie){Re&&(He||null!=Ie)&&(He&&(He=new R.Z(He)),(0,G.dU)(Re)?function ie(Re,He,Ie){const Ge=Re.symbolLayers;if(!Ge)return;const Pe=Le=>{const Me=(0,$.pC)(Le)?Le:null;return ee(He=He??Me??(null!=Ie?oe:null),Ie)};Ge.forEach(Le=>{if("object"!==Le.type||null==Le.resource?.href||He)if("water"===Le.type)Le.color=Pe(Le.color);else{const Me=(0,$.pC)(Le.material)?Le.material.color:null,Ne=Pe(Me);(0,$.Wi)(Le.material)?Le.material=new te.b({color:Ne}):Le.material.color=Ne,null!=Ie&&"outline"in Le&&(0,$.pC)(Le.outline)&&(0,$.pC)(Le.outline.color)&&(Le.outline.color=ee(Le.outline.color,Ie))}})}(Re,He,Ie):(0,G.cT)(Re)&&function J(Re,He,Ie){(He=He??Re.color)&&(Re.color=ee(He,Ie)),null!=Ie&&"outline"in Re&&Re.outline&&Re.outline.color&&(Re.outline.color=ee(Re.outline.color,Ie))}(Re,He,Ie))}function ue(Re,He){return pe.apply(this,arguments)}function pe(){return pe=(0,D.Z)(function*(Re,He){const Ie=Re.symbolLayers;Ie&&(yield(0,Z.Ed)(Ie,function(){var Ge=(0,D.Z)(function*(Pe){return he(Pe,He)});return function(Pe){return Ge.apply(this,arguments)}}()))}),pe.apply(this,arguments)}function he(Re,He){return me.apply(this,arguments)}function me(){return(me=(0,D.Z)(function*(Re,He){switch(Re.type){case"extrude":Ee(Re,He);break;case"icon":case"line":case"text":ge(Re,He);break;case"path":Se(Re,He);break;case"object":yield De(Re,He)}})).apply(this,arguments)}function ge(Re,He){const Ie=_e(He);(0,$.pC)(Ie)&&(Re.size=Ie)}function _e(Re){for(const He of Re)if("number"==typeof He)return He;return null}function Ee(Re,He){Re.size="number"==typeof He[2]?He[2]:0}function De(Re,He){return be.apply(this,arguments)}function be(){return(be=(0,D.Z)(function*(Re,He){const{resourceSize:Ie,symbolSize:Ge}=yield ve(Re),Pe=ye(He,Ie,Ge);Re.width=ze(He[0],Ge[0],Ie[0],Pe),Re.depth=ze(He[1],Ge[1],Ie[1],Pe),Re.height=ze(He[2],Ge[2],Ie[2],Pe)})).apply(this,arguments)}function Se(Re,He){const Ie=ye(He,B.O,[Re.width,void 0,Re.height]);Re.width=ze(He[0],Re.width,1,Ie),Re.height=ze(He[2],Re.height,1,Ie)}function ye(Re,He,Ie){for(let Ge=0;Ge<3;Ge++){const Pe=Re[Ge];switch(Pe){case"symbol-value":{const Le=Ie[Ge];return null!=Le?Le/He[Ge]:1}case"proportional":break;default:if(Pe&&He[Ge])return Pe/He[Ge]}}return 1}function ve(Re){return xe.apply(this,arguments)}function xe(){return(xe=(0,D.Z)(function*(Re){const He=yield v.e(1831).then(v.bind(v,91831)),Ie=yield He.computeObjectLayerResourceSize(Re,10),{width:Ge,height:Pe,depth:Le}=Re,Me=[Ge,Le,Pe];let Ne=1;for(let Xe=0;Xe<3;Xe++){const Ye=Me[Xe];if(null!=Ye){Ne=Ye/Ie[Xe];break}}for(let Xe=0;Xe<3;Xe++)null==Me[Xe]&&(Me[Xe]=Ie[Xe]*Ne);return{resourceSize:Ie,symbolSize:Me}})).apply(this,arguments)}function ze(Re,He,Ie,Ge){switch(Re){case"proportional":return Ie*Ge;case"symbol-value":return He??Ie;default:return Re}}function Ke(Re,He){const Ie=_e(He);if(!(0,$.Wi)(Ie))switch(Re.type){case"simple-marker":Re.size=Ie;break;case"picture-marker":{const Ge=Re.width/Re.height;Ge>1?(Re.width=Ie,Re.height=Ie*Ge):(Re.width=Ie*Ge,Re.height=Ie);break}case"simple-line":Re.width=Ie;break;case"text":Re.font.size=Ie}}function We(Re,He){return Ce.apply(this,arguments)}function Ce(){return(Ce=(0,D.Z)(function*(Re,He){if(Re&&He)return(0,G.dU)(Re)?ue(Re,He):void((0,G.cT)(Re)&&Ke(Re,He))})).apply(this,arguments)}function Be(Re,He,Ie){if(Re&&null!=He)if((0,G.dU)(Re)){const Ge=Re.symbolLayers;Ge&&Ge.forEach(Pe=>{if(Pe&&"object"===Pe.type)switch(Ie){case"tilt":Pe.tilt=He;break;case"roll":Pe.roll=He;break;default:Pe.heading=He}})}else(0,G.cT)(Re)&&("simple-marker"!==Re.type&&"picture-marker"!==Re.type&&"text"!==Re.type||(Re.angle=He))}function Fe(Re){if(!Re)return null;const He=Re.effects.filter(Ie=>"bloom"!==Ie.type).map(Ie=>Ie.toJSON());return(0,H.rM)(He)}function je(Re){return(0,$.pC)(Re)&&"polygon-3d"===Re.type&&Re.symbolLayers.some(He=>"extrude"===He.type)}},50998:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{fetchSymbolFromStyle:()=>oe,resolveWebStyleSymbol:()=>ae});var D=v(20383),R=v(83100),G=v(26584),Z=v(62208),Q=v(21726),$=v(84687),W=v(29840),B=v(9461),H=v(77345),X=v(71937),te=v(96296);function ae(de,se,re,j){return de.name?de.styleName&&"Esri2DPointSymbolsStyle"===de.styleName?function le(de,se,re){const j=X.wm.replace(/\{SymbolName\}/gi,de.name),Y=(0,Z.pC)(se.portal)?se.portal:$.Z.getDefault();return(0,X.EJ)(j,re).then(ee=>{const ie=(0,X.KV)(ee.data);return(0,B.im)(ie,{portal:Y,url:(0,Q.mN)((0,Q.Yd)(j)),origin:"portal-item"})})}(de,se,j):(0,X.n2)(de,se,j).then(Y=>oe((0,Z.s3)(Y),de.name,se,re,j)):Promise.reject(new G.Z("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference"))}function oe(de,se,re,j,Y){const ee=de.data,ie=re&&(0,Z.pC)(re.portal)?re.portal:$.Z.getDefault(),J={portal:ie,url:(0,Q.mN)(de.baseUrl),origin:"portal-item"},ce=ee.items.find(ge=>ge.name===se);if(!ce)return Promise.reject(new G.Z("symbolstyleutils:symbol-name-not-found",`The symbol name '${se}' could not be found`,{symbolName:se}));let ue=(0,W.f)((0,X.v9)(ce,j),J),pe=ce.thumbnail?.href??null;const he=ce.thumbnail&&ce.thumbnail.imageData;(0,R.XO)()&&(ue=(0,R.pJ)(ue)??"",pe=(0,R.pJ)(pe));const me={portal:ie,url:(0,Q.mN)((0,Q.Yd)(ue)),origin:"portal-item"};return(0,X.EJ)(ue,Y).then(ge=>{const _e="cimRef"===j?(0,X.KV)(ge.data):ge.data,Ee=(0,B.im)(_e,me);if(Ee&&(0,D.dU)(Ee)){if(pe){const De=(0,W.f)(pe,J);Ee.thumbnail=new te.p({url:De})}else he&&(Ee.thumbnail=new te.p({url:`data:image/png;base64,${he}`}));de.styleUrl?Ee.styleOrigin=new H.Z({portal:re.portal,styleUrl:de.styleUrl,name:se}):de.styleName&&(Ee.styleOrigin=new H.Z({portal:re.portal,styleName:de.styleName,name:se}))}return Ee})}},39236:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Q});var D=v(26584),R=v(63290),G=v(62208),Z=v(7848);function Q(H,X,te,ae,oe){if((0,G.Wi)(H))return null;const le=H.referencesGeometry()&&oe?function W(H,X,te){const{transform:ae,hasZ:oe,hasM:le}=te;$.has(X)||$.set(X,function B(H){const X={};switch(H){case"esriGeometryPoint":return(te,ae,oe,le)=>(0,Z.U1)(ae,X,te,oe,le);case"esriGeometryPolygon":return(te,ae,oe,le)=>(0,Z.Ie)(ae,X,te,oe,le);case"esriGeometryPolyline":return(te,ae,oe,le)=>(0,Z.G6)(ae,X,te,oe,le);case"esriGeometryMultipoint":return(te,ae,oe,le)=>(0,Z.J9)(ae,X,te,oe,le);default:return R.Z.getLogger("esri.views.2d.support.arcadeOnDemand").error(new D.Z("mapview-arcade",`Unable to handle geometryType: ${H}`)),te=>te}}(X));const de=$.get(X)(H.geometry,ae,oe,le);return{...H,geometry:de}}(X,ae,oe):X,de=H.repurposeFeature(le);try{return H.evaluate({...te,$feature:de})}catch(se){return R.Z.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",se),null}}const $=new Map},62449:(nt,Ae,v)=>{"use strict";var D,R,G;v.d(Ae,{H:()=>R,U:()=>D}),(G=D||(D={}))[G.Stretch=0]="Stretch",G[G.Lut=1]="Lut",G[G.Hillshade=2]="Hillshade",G[G.COUNT=3]="COUNT",function(G){G[G.Noop=0]="Noop",G[G.PerBand=1]="PerBand",G[G.COUNT=2]="COUNT"}(R||(R={}))},54540:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>J,K:()=>ue});var D=v(62208),R=v(30217),G=v(49966),Z=v(919),Q=v(76763),$=v(83994),W=v(67969),B=v(49353);class H{constructor(he,me){this.layerUIDs=[],this.isDestroyed=!1,this._data=he,this.memoryUsed=he.byteLength;let ge=1;const _e=new Uint32Array(he);this.layerUIDs=[];const Ee=_e[ge++];for(let De=0;De0){const De=new Map;for(let be=0;be0}triangleCount(){return this.lineIndexCount/3}doDestroy(){(0,D.pC)(this.lineVertexArrayObject)&&this.lineVertexArrayObject.dispose(),(0,D.pC)(this.lineVertexBuffer)&&this.lineVertexBuffer.dispose(),(0,D.pC)(this.lineIndexBuffer)&&this.lineIndexBuffer.dispose(),this.lineVertexArrayObject=null,this.lineVertexBuffer=null,this.lineIndexBuffer=null,this.memoryUsed=0}doPrepareForRendering(he,me,ge){const _e=new Uint32Array(me),Ee=new Int32Array(_e.buffer),De=_e[ge++];this.lineVertexBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,new Int32Array(Ee.buffer,4*ge,De)),ge+=De;const be=_e[ge++];this.lineIndexBuffer=$.f.createIndex(he,W.l1.STATIC_DRAW,new Uint32Array(_e.buffer,4*ge,be)),ge+=be;const Se=this.layer.lineMaterial;this.lineVertexArrayObject=new B.U(he,Se.getAttributeLocations(),Se.getLayoutInfo(),{geometry:this.lineVertexBuffer},this.lineIndexBuffer)}}class te extends H{constructor(he,me){super(he,me),this.type=Z.al.FILL,this.fillIndexStart=0,this.fillIndexCount=0,this.outlineIndexStart=0,this.outlineIndexCount=0;const ge=new Uint32Array(he);let _e=this.bufferDataOffset;this.fillIndexStart=ge[_e++],this.fillIndexCount=ge[_e++],this.outlineIndexStart=ge[_e++],this.outlineIndexCount=ge[_e++];const Ee=ge[_e++];if(Ee>0){const De=new Map;for(let be=0;be0||this.outlineIndexCount>0}triangleCount(){return(this.fillIndexCount+this.outlineIndexCount)/3}doDestroy(){(0,D.pC)(this.fillVertexArrayObject)&&this.fillVertexArrayObject.dispose(),(0,D.pC)(this.fillVertexBuffer)&&this.fillVertexBuffer.dispose(),(0,D.pC)(this.fillIndexBuffer)&&this.fillIndexBuffer.dispose(),this.fillVertexArrayObject=null,this.fillVertexBuffer=null,this.fillIndexBuffer=null,(0,D.pC)(this.outlineVertexArrayObject)&&this.outlineVertexArrayObject.dispose(),(0,D.pC)(this.outlineVertexBuffer)&&this.outlineVertexBuffer.dispose(),(0,D.pC)(this.outlineIndexBuffer)&&this.outlineIndexBuffer.dispose(),this.outlineVertexArrayObject=null,this.outlineVertexBuffer=null,this.outlineIndexBuffer=null,this.memoryUsed=0}doPrepareForRendering(he,me,ge){const _e=new Uint32Array(me),Ee=new Int32Array(_e.buffer),De=_e[ge++];this.fillVertexBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,new Int32Array(Ee.buffer,4*ge,De)),ge+=De;const be=_e[ge++];this.fillIndexBuffer=$.f.createIndex(he,W.l1.STATIC_DRAW,new Uint32Array(_e.buffer,4*ge,be)),ge+=be;const Se=_e[ge++];this.outlineVertexBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,new Int32Array(Ee.buffer,4*ge,Se)),ge+=Se;const ye=_e[ge++];this.outlineIndexBuffer=$.f.createIndex(he,W.l1.STATIC_DRAW,new Uint32Array(_e.buffer,4*ge,ye)),ge+=ye;const ve=this.layer,xe=ve.fillMaterial,ze=ve.outlineMaterial;this.fillVertexArrayObject=new B.U(he,xe.getAttributeLocations(),xe.getLayoutInfo(),{geometry:this.fillVertexBuffer},this.fillIndexBuffer),this.outlineVertexArrayObject=new B.U(he,ze.getAttributeLocations(),ze.getLayoutInfo(),{geometry:this.outlineVertexBuffer},this.outlineIndexBuffer)}}class ae extends H{constructor(he,me,ge){super(he,me),this.type=Z.al.SYMBOL,this.iconPerPageElementsMap=new Map,this.glyphPerPageElementsMap=new Map,this.symbolInstances=[],this.isIconSDF=!1,this.opacityChanged=!1,this.lastOpacityUpdate=0,this.symbols=[];const _e=new Uint32Array(he),Ee=new Int32Array(he),De=new Float32Array(he);let be=this.bufferDataOffset;this.isIconSDF=!!_e[be++];const Se=_e[be++];for(let ze=0;ze0||this.glyphPerPageElementsMap.size>0}triangleCount(){let he=0;for(const[me,ge]of this.iconPerPageElementsMap)he+=ge[1];for(const[me,ge]of this.glyphPerPageElementsMap)he+=ge[1];return he/3}doDestroy(){(0,D.pC)(this.iconVertexArrayObject)&&this.iconVertexArrayObject.dispose(),(0,D.pC)(this.iconVertexBuffer)&&this.iconVertexBuffer.dispose(),(0,D.pC)(this.iconOpacityBuffer)&&this.iconOpacityBuffer.dispose(),(0,D.pC)(this.iconIndexBuffer)&&this.iconIndexBuffer.dispose(),this.iconVertexArrayObject=null,this.iconVertexBuffer=null,this.iconOpacityBuffer=null,this.iconIndexBuffer=null,(0,D.pC)(this.textVertexArrayObject)&&this.textVertexArrayObject.dispose(),(0,D.pC)(this.textVertexBuffer)&&this.textVertexBuffer.dispose(),(0,D.pC)(this.textOpacityBuffer)&&this.textOpacityBuffer.dispose(),(0,D.pC)(this.textIndexBuffer)&&this.textIndexBuffer.dispose(),this.textVertexArrayObject=null,this.textVertexBuffer=null,this.textOpacityBuffer=null,this.textIndexBuffer=null,this.memoryUsed=0}updateOpacityInfo(){if(!this.opacityChanged)return;this.opacityChanged=!1;const he=(0,D.Wg)(this.iconOpacity),me=(0,D.Wg)(this.iconOpacityBuffer);he.length>0&&he.byteLength===me.size&&me.setSubData(he,0,0,he.length);const ge=(0,D.Wg)(this.textOpacity),_e=(0,D.Wg)(this.textOpacityBuffer);ge.length>0&&ge.byteLength===_e.size&&_e.setSubData(ge,0,0,ge.length)}doPrepareForRendering(he,me,ge){const _e=new Uint32Array(me),Ee=new Int32Array(_e.buffer),De=_e[ge++];this.iconVertexBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,new Int32Array(Ee.buffer,4*ge,De)),ge+=De;const be=_e[ge++];this.iconIndexBuffer=$.f.createIndex(he,W.l1.STATIC_DRAW,new Uint32Array(_e.buffer,4*ge,be)),ge+=be;const Se=_e[ge++];this.textVertexBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,new Int32Array(Ee.buffer,4*ge,Se)),ge+=Se;const ye=_e[ge++];this.textIndexBuffer=$.f.createIndex(he,W.l1.STATIC_DRAW,new Uint32Array(_e.buffer,4*ge,ye)),ge+=ye,this.iconOpacityBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,(0,D.Wg)(this.iconOpacity).buffer),this.textOpacityBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,(0,D.Wg)(this.textOpacity).buffer);const ve=this.layer,xe=ve.iconMaterial,ze=ve.textMaterial;this.iconVertexArrayObject=new B.U(he,xe.getAttributeLocations(),xe.getLayoutInfo(),{geometry:this.iconVertexBuffer,opacity:this.iconOpacityBuffer},this.iconIndexBuffer),this.textVertexArrayObject=new B.U(he,ze.getAttributeLocations(),ze.getLayoutInfo(),{geometry:this.textVertexBuffer,opacity:this.textOpacityBuffer},this.textIndexBuffer)}}class oe extends H{constructor(he,me){super(he,me),this.type=Z.al.CIRCLE,this.circleIndexStart=0,this.circleIndexCount=0;const ge=new Uint32Array(he);let _e=this.bufferDataOffset;this.circleIndexStart=ge[_e++],this.circleIndexCount=ge[_e++],this.bufferDataOffset=_e}hasData(){return this.circleIndexCount>0}triangleCount(){return this.circleIndexCount/3}doDestroy(){(0,D.pC)(this.circleVertexArrayObject)&&this.circleVertexArrayObject.dispose(),(0,D.pC)(this.circleVertexBuffer)&&this.circleVertexBuffer.dispose(),(0,D.pC)(this.circleIndexBuffer)&&this.circleIndexBuffer.dispose(),this.circleVertexArrayObject=null,this.circleVertexBuffer=null,this.circleIndexBuffer=null,this.memoryUsed=0}doPrepareForRendering(he,me,ge){const _e=new Uint32Array(me),Ee=new Int32Array(_e.buffer),De=_e[ge++];this.circleVertexBuffer=$.f.createVertex(he,W.l1.STATIC_DRAW,new Int32Array(Ee.buffer,4*ge,De)),ge+=De;const be=_e[ge++];this.circleIndexBuffer=$.f.createIndex(he,W.l1.STATIC_DRAW,new Uint32Array(_e.buffer,4*ge,be)),ge+=be;const Se=this.layer.circleMaterial;this.circleVertexArrayObject=new B.U(he,Se.getAttributeLocations(),Se.getLayoutInfo(),{geometry:this.circleVertexBuffer},this.circleIndexBuffer)}}var le=v(47132),de=v(61885),se=v(8314),re=v(10699);const j=1/(0,se.Z)("mapview-transitions-duration");class Y extends de.Z{constructor(){super(...arguments),this._fadeOutResolver=null,this._fadeInResolver=null,this._clips=null,this.computedVisible=!0,this.computedOpacity=1,this.fadeTransitionEnabled=!1,this.inFadeTransition=!1,this._isReady=!1,this._opacity=1,this._stage=null,this._visible=!0}get clips(){return this._clips}set clips(he){this._clips=he,this.requestRender()}get isReady(){return this._isReady}get opacity(){return this._opacity}set opacity(he){this._opacity!==he&&(this._opacity=Math.min(1,Math.max(he,0)),this.requestRender())}get stage(){return this._stage}set stage(he){if(this._stage===he)return;const me=this._stage;this._stage=he,he?this._stage.untrashDisplayObject(this)||(this.onAttach(),this.emit("attach")):me.trashDisplayObject(this)}get transforms(){return this._getTransforms()}_getTransforms(){return(0,D.Wi)(this._transforms)&&(this._transforms=this._createTransforms()),this._transforms}get visible(){return this._visible}set visible(he){this._visible!==he&&(this._visible=he,this.requestRender())}fadeIn(){return this._fadeInResolver||(this._fadeOutResolver&&(this._fadeOutResolver(),this._fadeOutResolver=null),this.opacity=1,this.computedOpacity=0,this.fadeTransitionEnabled=!0,this._fadeInResolver=(0,re.hh)(),this.requestRender()),this._fadeInResolver.promise}fadeOut(){return this._fadeOutResolver||(this.opacity=0,this._fadeInResolver&&(this._fadeInResolver(),this._fadeInResolver=null),this.fadeTransitionEnabled=!0,this._fadeOutResolver=(0,re.hh)(),this.requestRender()),this._fadeOutResolver.promise}endTransitions(){this._fadeInResolver?.(),this._fadeInResolver=null,this._fadeOutResolver?.(),this._fadeOutResolver=null,this.computedOpacity=this.visible?this.opacity:0,this.requestRender()}beforeRender(he){this.updateTransitionProperties(he.deltaTime,he.state.scale)}afterRender(he){this._fadeInResolver&&this.computedOpacity===this.opacity?(this._fadeInResolver(),this._fadeInResolver=null):this._fadeOutResolver&&0===this.computedOpacity&&(this._fadeOutResolver(),this._fadeOutResolver=null)}remove(){this.parent?.removeChild(this)}setTransform(he){}processRender(he){this.stage&&this.computedVisible&&this.doRender(he)}requestRender(){this.stage&&this.stage.requestRender()}processDetach(){this._fadeInResolver&&(this._fadeInResolver(),this._fadeInResolver=null),this._fadeOutResolver&&(this._fadeOutResolver(),this._fadeOutResolver=null),this.onDetach(),this.emit("detach")}updateTransitionProperties(he,me){if(this.fadeTransitionEnabled){const ge=this._fadeOutResolver||!this.visible?0:this.opacity,_e=this.computedOpacity;if(_e===ge)this.computedVisible=this.visible;else{const Ee=he*j;this.computedOpacity=_e>ge?Math.max(ge,_e-Ee):Math.min(ge,_e+Ee),this.computedVisible=this.computedOpacity>0;const De=ge===this.computedOpacity;this.inFadeTransition=!De,De||this.requestRender()}}else this.computedOpacity=this.opacity,this.computedVisible=this.visible}onAttach(){}onDetach(){}doRender(he){}ready(){this._isReady||(this._isReady=!0,this.emit("isReady"),this.requestRender())}}var ee=v(58098);class ie extends Y{constructor(he,me,ge,_e,Ee,De,be=Ee,Se=De){super(),this.triangleCountReportedInDebug=0,this.triangleCount=0,this.texture=null,this.key=new ee.Z(he),this.resolution=me,this.x=ge,this.y=_e,this.width=Ee,this.height=De,this.rangeX=be,this.rangeY=Se}destroy(){this.texture&&(this.texture.dispose(),this.texture=null)}setTransform(he){const me=this.resolution/(he.resolution*he.pixelRatio),ge=this.transforms.tileMat3,[_e,Ee]=he.toScreenNoRotation([0,0],[this.x,this.y]);(0,R.s)(ge,this.width/this.rangeX*me,0,0,0,this.height/this.rangeY*me,0,_e,Ee,1),(0,R.m)(this.transforms.dvs,he.displayViewMat3,ge)}}class J extends ie{constructor(he,me,ge,_e,Ee,De,be,Se=null){super(he,me,ge,_e,Ee,De,4096,4096),this._memCache=Se,this.type="vector-tile",this._referenced=0,this._hasSymbolBuckets=!1,this._memoryUsedByLayerData=0,this.layerData=new Map,this.layerCount=0,this.status="loading",this.allSymbolsFadingOut=!1,this.lastOpacityUpdate=0,this.symbols=new Map,this.isCoverage=!1,this.neededForCoverage=!1,this.decluttered=!1,this.invalidating=!1,this.parentTile=null,this.childrenTiles=new Set,this._processed=!1,this._referenced=1,this.styleRepository=be,this.id=he.id}get hasSymbolBuckets(){return this._hasSymbolBuckets}get isFading(){return this._hasSymbolBuckets&&performance.now()-this.lastOpacityUpdate0}dispose(){"unloaded"!==this.status&&(ce.delete(this),J._destroyRenderBuckets(this.layerData),this.layerData=null,this.layerCount=0,this._memoryUsedByLayerData=0,this.destroy(),this.status="unloaded")}release(){return 0==--this._referenced&&(this.dispose(),this.stage=null,!0)}retain(){++this._referenced}get referenced(){return this._referenced}get memoryUsage(){return(this._memoryUsedByLayerData+256)/(this._referenced||1)}changeDataImpl(he){let me=!1;if(he){const{bucketsWithData:ge,emptyBuckets:_e}=he,Ee=this._createRenderBuckets(ge);if(_e&&_e.byteLength>0){const De=new Uint32Array(_e);for(const be of De)this._deleteLayerData(be)}for(const[De,be]of Ee)this._deleteLayerData(De),be.type===Z.al.SYMBOL&&(this.symbols.set(De,be.symbols),me=!0),this._memoryUsedByLayerData+=be.memoryUsed,this.layerData.set(De,be),this.layerCount++;(0,D.pC)(this._memCache)&&this._memCache.updateSize(this.key.id,this,this._memoryUsedByLayerData)}this._hasSymbolBuckets=!1;for(const[ge,_e]of this.layerData)_e.type===Z.al.SYMBOL&&(this._hasSymbolBuckets=!0);me&&this.emit("symbols-changed")}attachWithContext(he){this.stage={context:he,trashDisplayObject(me){me.processDetach()},untrashDisplayObject:()=>!1}}setTransform(he){super.setTransform(he);const me=this.resolution/(he.resolution*he.pixelRatio),ge=this.width/this.rangeX*me,_e=this.height/this.rangeY*me,Ee=[0,0];he.toScreen(Ee,[this.x,this.y]);const De=this.transforms.tileUnitsToPixels;(0,R.g)(De),(0,R.h)(De,De,Ee),(0,R.r)(De,De,Math.PI*he.rotation/180),(0,R.d)(De,De,[ge,_e,1])}_createTransforms(){return{dvs:(0,G.c)(),tileMat3:(0,G.c)(),tileUnitsToPixels:(0,G.c)()}}static _destroyRenderBuckets(he){if(!he)return;const me=new Set;he.forEach(ge=>{me.has(ge)||(ge.destroy(),me.add(ge))}),he.clear()}_createRenderBuckets(he){const me=new Map,ge=new Map;for(const _e of he){const Ee=this._deserializeBucket(_e,ge);for(const De of Ee.layerUIDs)me.set(De,Ee)}return me}_deserializeBucket(he,me){let ge=me.get(he);if(ge)return ge;switch(new Uint32Array(he)[0]){case Z.al.FILL:ge=new te(he,this.styleRepository);break;case Z.al.LINE:ge=new X(he,this.styleRepository);break;case Z.al.SYMBOL:ge=new ae(he,this.styleRepository,this);break;case Z.al.CIRCLE:ge=new oe(he,this.styleRepository)}return me.set(he,ge),ge}_deleteLayerData(he){if(!this.layerData.has(he))return;const me=this.layerData.get(he);this._memoryUsedByLayerData-=me.memoryUsed,me.destroy(),this.layerData.delete(he),this.layerCount--}}const ce=new Map;function ue(){ce.forEach((pe,he)=>{console.log(`\n${he.key}:`),pe[0].forEach(me=>console.log(me)),console.log("========"),pe[1].forEach(me=>console.log(me))})}},47132:(nt,Ae,v)=>{"use strict";v.d(Ae,{Bf:()=>D,PF:()=>R,nN:()=>Z});const D=!0,R=32,Z=200},51200:(nt,Ae,v)=>{"use strict";v.d(Ae,{J:()=>R,a:()=>D});class D{constructor(Z){this.xTile=0,this.yTile=0,this.hash=0,this.priority=1,this.colliders=[],this.textVertexRanges=[],this.iconVertexRanges=[],this.tile=Z}}class R{constructor(){this.tileSymbols=[],this.parts=[{startTime:0,startOpacity:0,targetOpacity:0,show:!1},{startTime:0,startOpacity:0,targetOpacity:0,show:!1}],this.show=!1}}},76763:(nt,Ae,v)=>{"use strict";v.d(Ae,{C$:()=>B,HX:()=>$,co:()=>Q,wB:()=>W});var D=v(919),R=v(51200);function Q(X,te,ae,oe,le,de){const se=ae-le;if(se>=0)return(te>>se)+(oe-(de<>se);const re=-se;return te-(de-(oe<>re)<{"use strict";var D,R,G,Z,Q,$;v.d(Ae,{Fr:()=>Q,_K:()=>Z,al:()=>R}),($=D||(D={}))[$.UNKNOWN=0]="UNKNOWN",$[$.FILL_VERTEX=1]="FILL_VERTEX",$[$.FILL_DD_VERTEX=2]="FILL_DD_VERTEX",$[$.FILL_INDEX=3]="FILL_INDEX",$[$.OUTLINE_VERTEX=4]="OUTLINE_VERTEX",$[$.OUTLINE_DD_VERTEX=5]="OUTLINE_DD_VERTEX",$[$.OUTLINE_INDEX=6]="OUTLINE_INDEX",$[$.LINE_VERTEX=7]="LINE_VERTEX",$[$.LINE_DD_VERTEX=8]="LINE_DD_VERTEX",$[$.LINE_INDEX=9]="LINE_INDEX",$[$.ICON_VERTEX=10]="ICON_VERTEX",$[$.ICON_DD_VERTEX=11]="ICON_DD_VERTEX",$[$.ICON_INDEX=12]="ICON_INDEX",$[$.TEXT_VERTEX=13]="TEXT_VERTEX",$[$.TEXT_DD_VERTEX=14]="TEXT_DD_VERTEX",$[$.TEXT_INDEX=15]="TEXT_INDEX",$[$.CIRCLE_VERTEX=16]="CIRCLE_VERTEX",$[$.CIRCLE_INDEX=17]="CIRCLE_INDEX",function($){$[$.FILL=1]="FILL",$[$.LINE=2]="LINE",$[$.SYMBOL=3]="SYMBOL",$[$.CIRCLE=4]="CIRCLE"}(R||(R={})),function($){$[$.BACKGROUND=0]="BACKGROUND",$[$.OPAQUE=1]="OPAQUE",$[$.TRANSLUCENT=2]="TRANSLUCENT",$[$.SYMBOLS=3]="SYMBOLS",$[$.HITTEST=4]="HITTEST"}(G||(G={})),function($){$[$.BACKGROUND=0]="BACKGROUND",$[$.FILL=1]="FILL",$[$.OUTLINE=2]="OUTLINE",$[$.LINE=3]="LINE",$[$.ICON=4]="ICON",$[$.CIRCLE=5]="CIRCLE",$[$.TEXT=6]="TEXT",$[$.TILEINFO=7]="TILEINFO"}(Z||(Z={})),function($){$[$.PAINTER_CHANGED=0]="PAINTER_CHANGED",$[$.LAYOUT_CHANGED=1]="LAYOUT_CHANGED",$[$.LAYER_CHANGED=2]="LAYER_CHANGED",$[$.LAYER_REMOVED=3]="LAYER_REMOVED",$[$.SPRITES_CHANGED=4]="SPRITES_CHANGED"}(Q||(Q={}))},58098:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>R});var D=v(27899);class R{constructor(Z,Q,$,W){this.set(Z,Q,$,W)}static getId(Z,Q,$,W){return"object"==typeof Z?`${Z.level}/${Z.row}/${Z.col}/${Z.world}`:`${Z}/${Q}/${$}/${W}`}get key(){return this}get id(){return this.toString()}set id(Z){this.set(Z)}get hash(){return(3&this.world)<<30|(4095&this.col)<<22|(4095&this.row)<<8|63&this.level}acquire(Z,Q,$,W){this.set(Z,Q,$,W)}contains(Z){const Q=Z.level-this.level;return Q>=0&&this.row===Z.row>>Q&&this.col===Z.col>>Q&&this.world===Z.world}equals(Z){return this.level===Z.level&&this.row===Z.row&&this.col===Z.col&&this.world===Z.world}clone(){return new R(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(Z,Q,$,W){if(null==Z)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof Z)this.level=Z.level||0,this.row=Z.row||0,this.col=Z.col||0,this.world=Z.world||0;else if("string"==typeof Z){const[B,H,X,te]=Z.split("/");this.level=parseFloat(B),this.row=parseFloat(H),this.col=parseFloat(X),this.world=parseFloat(te)}else this.level=+Z,this.row=+Q,this.col=+$,this.world=+W||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new R(this.level-1,this.row>>1,this.col>>1,this.world)}getChildKeys(){const Z=this.level+1,Q=this.row<<1,$=this.col<<1,W=this.world;return[new R(Z,Q,$,W),new R(Z,Q,$+1,W),new R(Z,Q+1,$,W),new R(Z,Q+1,$+1,W)]}compareRowMajor(Z){return this.rowZ.row?1:this.colZ.col?1:0}}R.pool=new D.Z(R,null,null,25,50)},12015:(nt,Ae,v)=>{"use strict";v.d(Ae,{YF:()=>Q,co:()=>$,hZ:()=>W,ii:()=>Z});var Q,$,W,H,D=v(43703),R=v(28093),G=v(75583);class Z{constructor(){this.readChannels=G.uz.RG,this.renderingStage=G.jL.FINISHED,this.startTime=0,this.startTimeHeightFade=0,this.cameraPositionLastFrame=(0,R.c)(),this.isCameraPositionFinal=!0,this.parallax=new B,this.parallaxNew=new B,this.crossFade={enabled:!1,factor:1,distanceThresholdFactor:.3},this.fadeInOut={stage:$.FINISHED,factor:1,distanceThresholdFactor:.6},this.fadeIn={stage:Q.FINISHED,factor:1,distanceThresholdFactor:2},this.fadeInOutHeight={stage:W.FINISHED,factor:-1}}get isFading(){return this.fadeInOut.stage===$.FADE_OUT||this.fadeInOut.stage===$.FADE_IN||this.fadeIn.stage===Q.FADE_IN||this.fadeInOutHeight.stage!==W.FINISHED||this.renderingStage===G.jL.FADING_TEXTURE_CHANNELS}}(H=Q||(Q={}))[H.FINISHED=0]="FINISHED",H[H.CHANGE_ANCHOR=1]="CHANGE_ANCHOR",H[H.FADE_IN=2]="FADE_IN",function(H){H[H.FINISHED=0]="FINISHED",H[H.FADE_OUT=1]="FADE_OUT",H[H.SWITCH=2]="SWITCH",H[H.FADE_IN=3]="FADE_IN"}($||($={})),function(H){H[H.FINISHED=0]="FINISHED",H[H.HEIGHT_FADE=1]="HEIGHT_FADE"}(W||(W={}));class B{constructor(){this.anchorPointClouds=(0,R.c)(),this.cloudsHeight=1e5,this.radiusCurvatureCorrectionFactor=0,this.transform=(0,D.c)()}}},75583:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ck:()=>Z,WU:()=>Q,jL:()=>R,uz:()=>G});var R,G,$,D=v(62208);function Z($){return(0,D.pC)($)&&(0,D.pC)($.cubeMap)}function Q($){return(0,D.pC)($)&&!$.running}($=R||(R={}))[$.RENDERING=0]="RENDERING",$[$.FINISHED_RENDERING=1]="FINISHED_RENDERING",$[$.FADING_TEXTURE_CHANNELS=2]="FADING_TEXTURE_CHANNELS",$[$.SWITCH_CHANNELS=3]="SWITCH_CHANNELS",$[$.FINISHED=4]="FINISHED",function($){$[$.RG=0]="RG",$[$.BA=1]="BA"}(G||(G={}))},85073:(nt,Ae,v)=>{"use strict";v.d(Ae,{L:()=>Z});var D=v(32849);class R{constructor($,W,B,H,X,te,ae,oe,le=.5){this.coverage=$,this.density=W,this.absorption=B,this.cloudSize=H,this.detailSize=X,this.smoothness=te,this.cloudHeight=ae,this.raymarchingSteps=oe,this.median=le}}const G=new R([0,.6],[.03,.03],[0,0],[.9,.9],[.8,.8],[.7,.7],[.05,.05],D.p.SIXTEEN),Z={sunny:G,cloudy:new R([.3,.65],[.2,.4],[0,0],[.85,.85],[.75,.75],[.3,.4],[1,1],D.p.TWOHUNDRED,.6),rainy:new R([.6,.8],[.5,.8],[.1,.5],[.9,.9],[.75,.75],[.5,.5],[1,1],D.p.TWOHUNDRED,.4),snowy:new R([.25,.75],[.3,.3],[0,0],[.95,.95],[.7,.7],[.69,.75],[.3,1],D.p.HUNDRED,.65),foggy:new R([.8,.8],[.5,.5],[0,0],[.95,.95],[.9,.9],[.55,.55],[.3,.3],D.p.SIXTEEN),default:G}},32849:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>Q,t:()=>$});var Q,W,D=v(17626),R=v(8314),G=v(75583),Z=v(87601);(W=Q||(Q={}))[W.SIXTEEN=0]="SIXTEEN",W[W.HUNDRED=1]="HUNDRED",W[W.TWOHUNDRED=2]="TWOHUNDRED",W[W.COUNT=3]="COUNT";class $ extends Z.m{constructor(){super(...arguments),this.steps=Q.SIXTEEN,this.writeTextureChannels=G.uz.RG}}(0,D._)([(0,Z.o)({count:Q.COUNT})],$.prototype,"steps",void 0),(0,D._)([(0,Z.o)({constValue:(0,R.Z)("esri-mobile")?1024:2048})],$.prototype,"cubeMapSize",void 0),(0,D._)([(0,Z.o)()],$.prototype,"writeTextureChannels",void 0)},64312:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>Z,u:()=>G});var G,Q,D=v(17626),R=v(87601);(Q=G||(G={}))[Q.Full=0]="Full",Q[Q.WeatherMap=1]="WeatherMap",Q[Q.COUNT=2]="COUNT";class Z extends R.m{constructor(){super(...arguments),this.mode=G.Full}}(0,D._)([(0,R.o)({count:G.COUNT})],Z.prototype,"mode",void 0)},85755:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>W,IQ:()=>Q,I_:()=>R,QZ:()=>B,iZ:()=>$,jy:()=>Z,kR:()=>G});const R=(0,v(8314).Z)("esri-mobile")?64:128,G=R/128,Z=Math.ceil(Math.sqrt(R)),Q=(R+2)*Z,$=1e5,W=128,B=Q/1560},6067:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>G,Y:()=>Z});var G,Q,D=v(17626),R=v(87601);(Q=G||(G={}))[Q.Rain=0]="Rain",Q[Q.Snow=1]="Snow",Q[Q.COUNT=2]="COUNT";class Z extends R.m{constructor(){super(...arguments),this.type=G.Rain}}(0,D._)([(0,R.o)({count:G.COUNT})],Z.prototype,"type",void 0)},49115:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>Q,n:()=>Z});var Z,$,D=v(17626),R=v(87601),G=v(41528);($=Z||(Z={}))[$.Cone=0]="Cone",$[$.Cylinder=1]="Cylinder",$[$.Underground=2]="Underground",$[$.COUNT=3]="COUNT";class Q extends G.W{constructor(){super(...arguments),this.geometry=Z.Cone}}(0,D._)([(0,R.o)({count:Z.COUNT})],Q.prototype,"geometry",void 0)},61343:(nt,Ae,v)=>{"use strict";function D(Q){return Math.min(1,Math.max(0,(Q-1e5)/9e5))}v.d(Ae,{TR:()=>G,Tk:()=>R,k8:()=>Z,yx:()=>D});const R=1e4,G=.085,Z=1e5},9160:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>B});var D=v(15861),R=v(84792),G=v(59213),Z=v(26584),Q=v(62208),$=v(10699),W=v(21726);class B{constructor(te){this._streamDataRequester=te}loadJSON(te,ae){var oe=this;return(0,D.Z)(function*(){return oe._load("json",te,ae)})()}loadBinary(te,ae){var oe=this;return(0,D.Z)(function*(){return(0,W.HK)(te)?((0,$.k_)(ae),(0,W.AH)(te)):oe._load("binary",te,ae)})()}loadImage(te,ae){var oe=this;return(0,D.Z)(function*(){return oe._load("image",te,ae)})()}_load(te,ae,oe){var le=this;return(0,D.Z)(function*(){if((0,Q.Wi)(le._streamDataRequester))return(yield(0,R.default)(ae,{responseType:H[te]})).data;const de=yield(0,G.q6)(le._streamDataRequester.request(ae,te,oe));if(!0===de.ok)return de.value;throw(0,$.r9)(de.error),new Z.Z("",`Request for resource failed: ${de.error}`)})()}}const H={image:"image",binary:"array-buffer",json:"json"}},98496:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>Q});var D=v(62208),R=v(49966),G=v(9545),Z=v(30217);function Q($){if((0,D.Wi)($))return null;const W=(0,D.pC)($.offset)?$.offset:G.Z,B=(0,D.pC)($.rotation)?$.rotation:0,H=(0,D.pC)($.scale)?$.scale:G.O,X=(0,R.f)(1,0,0,0,1,0,W[0],W[1],1),te=(0,R.f)(Math.cos(B),-Math.sin(B),0,Math.sin(B),Math.cos(B),0,0,0,1),ae=(0,R.f)(H[0],0,0,0,H[1],0,0,0,1),oe=(0,R.c)();return(0,Z.m)(oe,te,ae),(0,Z.m)(oe,X,oe),oe}},96170:(nt,Ae,v)=>{"use strict";v.d(Ae,{DA:()=>Z,jX:()=>Q,nh:()=>G});var D=v(55713),R=v(37187);function G($,W=R.p){return"number"==typeof $?W($):(0,D.Uc)($)||(0,D.lq)($)?new Uint32Array($):$}function Z($){const W="number"==typeof $?$:$.length;if(W<3)return[];const B=W-2,H=(0,R.$z)(B);if("number"==typeof $){let X=0;for(let te=0;te{"use strict";v.d(Ae,{Q:()=>Re});var ee,ie,Ye,D=v(15861),R=v(62208),G=v(43703),Z=v(26584),Q=v(63290),W=v(67969),X=v(88159),te=v(10699),ae=v(21726),oe=v(10349),le=v(28347),de=v(48977),se=v(78451),re=v(60479),j=v(98148);class Y{constructor(Je){this._data=Je,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const Je=this._offset4;return this._offset4+=1,this._dataUint32[Je]}readUint8Array(Je){const rt=4*this._offset4;return this._offset4+=Je/4,new Uint8Array(this._data,rt,Je)}remainingBytes(){return this._data.byteLength-4*this._offset4}}(Ye=ee||(ee={})).SCALAR="SCALAR",Ye.VEC2="VEC2",Ye.VEC3="VEC3",Ye.VEC4="VEC4",Ye.MAT2="MAT2",Ye.MAT3="MAT3",Ye.MAT4="MAT4",function(Ye){Ye[Ye.ARRAY_BUFFER=34962]="ARRAY_BUFFER",Ye[Ye.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(ie||(ie={}));var J=v(94573);const ce={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},ue={pbrMetallicRoughness:ce,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},pe={ESRI_externalColorMixMode:"tint"},he=(Ye={})=>{const Je={...ce,...Ye.pbrMetallicRoughness},rt=function me(Ye){switch(Ye.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:(0,J.Bg)(Ye.ESRI_externalColorMixMode),Ye.ESRI_externalColorMixMode="tint"}return Ye}({...pe,...Ye.extras});return{...ue,...Ye,pbrMetallicRoughness:Je,extras:rt}},ge={magFilter:W.cw.LINEAR,minFilter:W.cw.LINEAR_MIPMAP_LINEAR,wrapS:W.e8.REPEAT,wrapT:W.e8.REPEAT};class be{constructor(Je,rt,tt,et,qe){this._context=Je,this._errorContext=rt,this.uri=tt,this.json=et,this._glbBuffer=qe,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._baseUri=function Ee(Ye){let Je,rt;return Ye.replace(/^(.*\/)?([^/]*)$/,(tt,et,qe)=>(Je=et||"",rt=qe||"","")),{dirPart:Je,filePart:rt}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),rt.errorUnsupportedIf(null==et.scenes,"Scenes must be defined."),rt.errorUnsupportedIf(null==et.meshes,"Meshes must be defined"),rt.errorUnsupportedIf(null==et.nodes,"Nodes must be defined."),this._computeNodeParents()}static load(Je,rt,tt,et){var qe=this;return(0,D.Z)(function*(){if((0,ae.HK)(tt)){const _t=(0,ae.sJ)(tt);if(_t&&"model/gltf-binary"!==_t.mediaType)try{const vt=JSON.parse(_t.isBase64?atob(_t.data):_t.data);return new be(Je,rt,tt,vt)}catch{}const Ct=(0,ae.AH)(tt);if(be._isGLBData(Ct))return qe._fromGLBData(Je,rt,tt,Ct)}if(tt.endsWith(".gltf")){const _t=yield Je.loadJSON(tt,et);return new be(Je,rt,tt,_t)}const ot=yield Je.loadBinary(tt,et);if(be._isGLBData(ot))return qe._fromGLBData(Je,rt,tt,ot);const ut=yield Je.loadJSON(tt,et);return new be(Je,rt,tt,ut)})()}static _isGLBData(Je){if(null==Je)return!1;const rt=new Y(Je);return rt.remainingBytes()>=4&&1179937895===rt.readUint32()}static _fromGLBData(Je,rt,tt,et){return(0,D.Z)(function*(){const qe=yield be._parseGLBData(rt,et);return new be(Je,rt,tt,qe.json,qe.binaryData)})()}static _parseGLBData(Je,rt){return(0,D.Z)(function*(){const tt=new Y(rt);Je.assert(tt.remainingBytes()>=12,"GLB binary data is insufficiently large.");const et=tt.readUint32(),qe=tt.readUint32(),ot=tt.readUint32();Je.assert(1179937895===et,"Magic first 4 bytes do not fit to expected GLB value."),Je.assert(rt.byteLength>=ot,"GLB binary data is smaller than header specifies."),Je.errorUnsupportedIf(2!==qe,"An unsupported GLB container version was detected. Only version 2 is supported.");let ut,_t,Ct=0;for(;tt.remainingBytes()>=8;){const vt=tt.readUint32(),Lt=tt.readUint32();0===Ct?(Je.assert(1313821514===Lt,"First GLB chunk must be JSON."),Je.assert(vt>=0,"No JSON data found."),ut=yield We(tt.readUint8Array(vt))):1===Ct?(Je.errorUnsupportedIf(5130562!==Lt,"Second GLB chunk expected to be BIN."),_t=tt.readUint8Array(vt)):Je.warnUnsupported("More than 2 GLB chunks detected. Skipping."),Ct+=1}return ut||Je.error("No GLB JSON chunk detected."),{json:ut,binaryData:_t}})()}getBuffer(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt.json.buffers[Je],qe=tt._errorContext;if(null==et.uri)return qe.assert(null!=tt._glbBuffer,"GLB buffer not present"),tt._glbBuffer;const ot=yield tt._getBufferLoader(Je,rt);return qe.assert(ot.byteLength===et.byteLength,"Buffer byte lengths should match."),ot})()}_getBufferLoader(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt._bufferLoaders.get(Je);if(et)return et;const ot=tt._context.loadBinary(tt._resolveUri(tt.json.buffers[Je].uri),rt).then(ut=>new Uint8Array(ut));return tt._bufferLoaders.set(Je,ot),ot})()}getAccessor(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt._errorContext;et.errorUnsupportedIf(!tt.json.accessors,"Accessors missing.");const qe=tt.json.accessors[Je];et.errorUnsupportedIf(null==qe?.bufferView,"Some accessor does not specify a bufferView."),et.errorUnsupportedIf(qe.type in[ee.MAT2,ee.MAT3,ee.MAT4],`AttributeType ${qe.type} is not supported`);const ot=tt.json.bufferViews[qe.bufferView],ut=yield tt.getBuffer(ot.buffer,rt),_t=xe[qe.type],Ct=ze[qe.componentType],vt=_t*Ct,Lt=ot.byteStride||vt;return{raw:ut.buffer,byteStride:Lt,byteOffset:ut.byteOffset+(ot.byteOffset||0)+(qe.byteOffset||0),entryCount:qe.count,isDenselyPacked:Lt===vt,componentCount:_t,componentByteSize:Ct,componentType:qe.componentType,min:qe.min,max:qe.max,normalized:!!qe.normalized}})()}getIndexData(Je,rt){var tt=this;return(0,D.Z)(function*(){if(null==Je.indices)return;const et=yield tt.getAccessor(Je.indices,rt);if(et.isDenselyPacked)switch(et.componentType){case W.g.UNSIGNED_BYTE:return new Uint8Array(et.raw,et.byteOffset,et.entryCount);case W.g.UNSIGNED_SHORT:return new Uint16Array(et.raw,et.byteOffset,et.entryCount);case W.g.UNSIGNED_INT:return new Uint32Array(et.raw,et.byteOffset,et.entryCount)}else switch(et.componentType){case W.g.UNSIGNED_BYTE:return(0,j.m)(tt._wrapAccessor(re.D_,et));case W.g.UNSIGNED_SHORT:return(0,j.m)(tt._wrapAccessor(re.av,et));case W.g.UNSIGNED_INT:return(0,j.m)(tt._wrapAccessor(re.Nu,et))}})()}getPositionData(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt._errorContext;et.errorUnsupportedIf(null==Je.attributes.POSITION,"No POSITION vertex data found.");const qe=yield tt.getAccessor(Je.attributes.POSITION,rt);return et.errorUnsupportedIf(qe.componentType!==W.g.FLOAT,"Expected type FLOAT for POSITION vertex attribute, but found "+W.g[qe.componentType]),et.errorUnsupportedIf(3!==qe.componentCount,"POSITION vertex attribute must have 3 components, but found "+qe.componentCount.toFixed()),tt._wrapAccessor(re.ct,qe)})()}getNormalData(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt._errorContext;et.assert(null!=Je.attributes.NORMAL,"No NORMAL vertex data found.");const qe=yield tt.getAccessor(Je.attributes.NORMAL,rt);return et.errorUnsupportedIf(qe.componentType!==W.g.FLOAT,"Expected type FLOAT for NORMAL vertex attribute, but found "+W.g[qe.componentType]),et.errorUnsupportedIf(3!==qe.componentCount,"NORMAL vertex attribute must have 3 components, but found "+qe.componentCount.toFixed()),tt._wrapAccessor(re.ct,qe)})()}getTangentData(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt._errorContext;et.assert(null!=Je.attributes.TANGENT,"No TANGENT vertex data found.");const qe=yield tt.getAccessor(Je.attributes.TANGENT,rt);return et.errorUnsupportedIf(qe.componentType!==W.g.FLOAT,"Expected type FLOAT for TANGENT vertex attribute, but found "+W.g[qe.componentType]),et.errorUnsupportedIf(4!==qe.componentCount,"TANGENT vertex attribute must have 4 components, but found "+qe.componentCount.toFixed()),new re.ek(qe.raw,qe.byteOffset,qe.byteStride,qe.byteOffset+qe.byteStride*qe.entryCount)})()}getTextureCoordinates(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt._errorContext;et.assert(null!=Je.attributes.TEXCOORD_0,"No TEXCOORD_0 vertex data found.");const qe=yield tt.getAccessor(Je.attributes.TEXCOORD_0,rt);return et.errorUnsupportedIf(2!==qe.componentCount,"TEXCOORD_0 vertex attribute must have 2 components, but found "+qe.componentCount.toFixed()),qe.componentType===W.g.FLOAT?tt._wrapAccessor(re.Eu,qe):(et.errorUnsupportedIf(!qe.normalized,"Integer component types are only supported for a normalized accessor for TEXCOORD_0."),function Ke(Ye){switch(Ye.componentType){case W.g.BYTE:return new re.Vs(Ye.raw,Ye.byteOffset,Ye.byteStride,Ye.byteOffset+Ye.byteStride*Ye.entryCount);case W.g.UNSIGNED_BYTE:return new re.xA(Ye.raw,Ye.byteOffset,Ye.byteStride,Ye.byteOffset+Ye.byteStride*Ye.entryCount);case W.g.SHORT:return new re.or(Ye.raw,Ye.byteOffset,Ye.byteStride,Ye.byteOffset+Ye.byteStride*Ye.entryCount);case W.g.UNSIGNED_SHORT:return new re.TS(Ye.raw,Ye.byteOffset,Ye.byteStride,Ye.byteOffset+Ye.byteStride*Ye.entryCount);case W.g.UNSIGNED_INT:return new re.qt(Ye.raw,Ye.byteOffset,Ye.byteStride,Ye.byteOffset+Ye.byteStride*Ye.entryCount);case W.g.FLOAT:return new re.Eu(Ye.raw,Ye.byteOffset,Ye.byteStride,Ye.byteOffset+Ye.byteStride*Ye.entryCount)}}(qe))})()}getVertexColors(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt._errorContext;et.assert(null!=Je.attributes.COLOR_0,"No COLOR_0 vertex data found.");const qe=yield tt.getAccessor(Je.attributes.COLOR_0,rt);if(et.errorUnsupportedIf(4!==qe.componentCount&&3!==qe.componentCount,"COLOR_0 attribute must have 3 or 4 components, but found "+qe.componentCount.toFixed()),4===qe.componentCount){if(qe.componentType===W.g.FLOAT)return tt._wrapAccessor(re.ek,qe);if(qe.componentType===W.g.UNSIGNED_BYTE)return tt._wrapAccessor(re.mc,qe);if(qe.componentType===W.g.UNSIGNED_SHORT)return tt._wrapAccessor(re.v6,qe)}else if(3===qe.componentCount){if(qe.componentType===W.g.FLOAT)return tt._wrapAccessor(re.ct,qe);if(qe.componentType===W.g.UNSIGNED_BYTE)return tt._wrapAccessor(re.ne,qe);if(qe.componentType===W.g.UNSIGNED_SHORT)return tt._wrapAccessor(re.mw,qe)}et.errorUnsupported("Unsupported component type for COLOR_0 attribute: "+W.g[qe.componentType])})()}hasPositions(Je){return void 0!==Je.attributes.POSITION}hasNormals(Je){return void 0!==Je.attributes.NORMAL}hasVertexColors(Je){return void 0!==Je.attributes.COLOR_0}hasTextureCoordinates(Je){return void 0!==Je.attributes.TEXCOORD_0}hasTangents(Je){return void 0!==Je.attributes.TANGENT}getMaterial(Je,rt,tt){var et=this;return(0,D.Z)(function*(){let qe=Je.material?et._materialCache.get(Je.material):void 0;if(!qe){const ot=null!=Je.material?he(et.json.materials[Je.material]):he(),ut=ot.pbrMetallicRoughness,_t=et.hasVertexColors(Je),Ct=et.getTexture(ut.baseColorTexture,rt),vt=et.getTexture(ot.normalTexture,rt),Lt=tt?et.getTexture(ot.occlusionTexture,rt):void 0,jt=tt?et.getTexture(ot.emissiveTexture,rt):void 0,$t=tt?et.getTexture(ut.metallicRoughnessTexture,rt):void 0,Wt=null!=Je.material?Je.material:-1;qe={alphaMode:ot.alphaMode,alphaCutoff:ot.alphaCutoff,color:ut.baseColorFactor,doubleSided:!!ot.doubleSided,colorTexture:yield Ct,normalTexture:yield vt,name:ot.name,id:Wt,occlusionTexture:yield Lt,emissiveTexture:yield jt,emissiveFactor:ot.emissiveFactor,metallicFactor:ut.metallicFactor,roughnessFactor:ut.roughnessFactor,metallicRoughnessTexture:yield $t,hasVertexColors:_t,ESRI_externalColorMixMode:ot.extras.ESRI_externalColorMixMode,colorTextureTransform:ut?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:ot.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:ot.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:ot.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:ut?.metallicRoughnessTexture?.extensions?.KHR_texture_transform}}return qe})()}getTexture(Je,rt){var tt=this;return(0,D.Z)(function*(){if(!Je)return;tt._errorContext.errorUnsupportedIf(0!==(Je.texCoord||0),"Only TEXCOORD with index 0 is supported.");const et=Je.index,qe=tt._errorContext,ot=tt.json.textures[et],ut=(Ye=>({...ge,...Ye}))(null!=ot.sampler?tt.json.samplers[ot.sampler]:{});qe.errorUnsupportedIf(null==ot.source,"Source is expected to be defined for a texture.");const _t=tt.json.images[ot.source],Ct=yield tt._loadTextureImageData(et,ot,rt);return(0,X.s1)(tt._textureCache,et,()=>{const vt=jt=>33071===jt||33648===jt||10497===jt,Lt=jt=>(qe.error(`Unexpected TextureSampler WrapMode: ${jt}. Using default REPEAT(10497).`),10497);return{data:Ct,wrapS:vt(ut.wrapS)?ut.wrapS:Lt(ut.wrapS),wrapT:vt(ut.wrapT)?ut.wrapT:Lt(ut.wrapT),minFilter:ut.minFilter,name:_t.name,id:et}})})()}getNodeTransform(Je){if(void 0===Je)return ye;let rt=this._nodeTransformCache.get(Je);if(!rt){const tt=this.getNodeTransform(this._getNodeParent(Je)),et=this.json.nodes[Je];et.matrix?rt=(0,le.m)((0,G.c)(),tt,et.matrix):et.translation||et.rotation||et.scale?(rt=(0,G.b)(tt),et.translation&&(0,le.v)(rt,rt,et.translation),et.rotation&&(ve[3]=(0,de.g)(ve,et.rotation),(0,le.e)(rt,rt,ve[3],ve)),et.scale&&(0,le.k)(rt,rt,et.scale)):rt=tt,this._nodeTransformCache.set(Je,rt)}return rt}_wrapAccessor(Je,rt){return new Je(rt.raw,rt.byteOffset,rt.byteStride,rt.byteOffset+rt.byteStride*(rt.entryCount-1)+rt.componentByteSize*rt.componentCount)}_resolveUri(Je){return(0,ae.hF)(Je,this._baseUri)}_getNodeParent(Je){return this._nodeParentMap.get(Je)}_checkVersionSupported(){const Je=oe.G.parse(this.json.asset.version,"glTF");Se.validate(Je)}_checkRequiredExtensionsSupported(){const Je=this.json;Je.extensionsRequired&&0!==Je.extensionsRequired.length&&this._errorContext.errorUnsupported("gltf loader was not able to load unsupported feature. Required extensions: "+Je.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach((Je,rt)=>{Je.children&&Je.children.forEach(tt=>{this._nodeParentMap.set(tt,rt)})})}_loadTextureImageData(Je,rt,tt){var et=this;return(0,D.Z)(function*(){const qe=et._textureLoaders.get(Je);if(qe)return qe;const ot=et._createTextureLoader(rt,tt);return et._textureLoaders.set(Je,ot),ot})()}_createTextureLoader(Je,rt){var tt=this;return(0,D.Z)(function*(){const et=tt.json.images[Je.source];if(et.uri)return tt._context.loadImage(tt._resolveUri(et.uri),rt);const qe=tt._errorContext;qe.errorUnsupportedIf(null==et.bufferView,"Image bufferView must be defined."),qe.errorUnsupportedIf(null==et.mimeType,"Image mimeType must be defined.");const ot=tt.json.bufferViews[et.bufferView],ut=yield tt.getBuffer(ot.buffer,rt);return qe.errorUnsupportedIf(null!=ot.byteStride,"byteStride not supported for image buffer"),function Be(Ye,Je){return Fe.apply(this,arguments)}(new Uint8Array(ut.buffer,ut.byteOffset+(ot.byteOffset||0),ot.byteLength),et.mimeType)})()}getLoadedBuffersSize(){var Je=this;return(0,D.Z)(function*(){if(Je._glbBuffer)return Je._glbBuffer.byteLength;const rt=yield(0,te.WW)(Array.from(Je._bufferLoaders.values())),tt=yield(0,te.WW)(Array.from(Je._textureLoaders.values()));return rt.reduce((et,qe)=>et+(qe?.byteLength??0),0)+tt.reduce((et,qe)=>et+(qe?qe.width*qe.height*4:0),0)})()}}const Se=new oe.G(2,0,"glTF"),ye=(0,le.y)((0,G.c)(),Math.PI/2),ve=(0,se.a)(),xe={SCALAR:1,VEC2:2,VEC3:3,VEC4:4},ze={[W.g.BYTE]:1,[W.g.UNSIGNED_BYTE]:1,[W.g.SHORT]:2,[W.g.UNSIGNED_SHORT]:2,[W.g.FLOAT]:4,[W.g.UNSIGNED_INT]:4};function We(Ye){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,D.Z)(function*(Ye){return new Promise((Je,rt)=>{const tt=new Blob([Ye]),et=new FileReader;et.onload=()=>{Je(JSON.parse(et.result))},et.onerror=qe=>{rt(qe)},et.readAsText(tt)})}),Ce.apply(this,arguments)}function Fe(){return Fe=(0,D.Z)(function*(Ye,Je){return new Promise((rt,tt)=>{const et=new Blob([Ye],{type:Je}),qe=URL.createObjectURL(et),ot=new Image,ut=()=>{URL.revokeObjectURL(qe),"decode"in ot?ot.decode().then(()=>rt(ot),()=>rt(ot)).then(Ct):(rt(ot),Ct())},_t=vt=>{URL.revokeObjectURL(qe),tt(vt),Ct()},Ct=()=>{ot.removeEventListener("load",ut),ot.removeEventListener("error",_t)};ot.addEventListener("load",ut),ot.addEventListener("error",_t),ot.src=qe})}),Fe.apply(this,arguments)}let je=0;function Re(Ye,Je){return He.apply(this,arguments)}function He(){return He=(0,D.Z)(function*(Ye,Je,rt={},tt=!0){const et=yield be.load(Ye,Ne,Je,rt),qe="gltf_"+je++,ot={lods:[],materials:new Map,textures:new Map,meta:Ie(et)},ut=!(!et.json.asset.extras||"symbolResource"!==et.json.asset.extras.ESRI_type),_t=new Map;yield Ge(et,function(){var vt=(0,D.Z)(function*(Lt,jt,$t,Wt){const pr=_t.get($t)??0;_t.set($t,pr+1);const gr=void 0!==Lt.mode?Lt.mode:W.MX.TRIANGLES,ar=gr===W.MX.TRIANGLES||gr===W.MX.TRIANGLE_STRIP||gr===W.MX.TRIANGLE_FAN?gr:null;if((0,R.Wi)(ar))return void Ne.warnUnsupported("Unsupported primitive mode ("+W.MX[gr]+"). Skipping primitive.");if(!et.hasPositions(Lt))return void Ne.warn("Skipping primitive without POSITION vertex attribute.");const Fr=et.getPositionData(Lt,rt),mr=et.getMaterial(Lt,rt,tt),wt=et.hasNormals(Lt)?et.getNormalData(Lt,rt):null,or=et.hasTangents(Lt)?et.getTangentData(Lt,rt):null,sr=et.hasTextureCoordinates(Lt)?et.getTextureCoordinates(Lt,rt):null,rr=et.hasVertexColors(Lt)?et.getVertexColors(Lt,rt):null,Et=et.getIndexData(Lt,rt),St={transform:(0,G.b)(jt),attributes:{position:yield Fr,normal:wt?yield wt:null,texCoord0:sr?yield sr:null,color:rr?yield rr:null,tangent:or?yield or:null},indices:yield Et,primitiveType:ar,material:Me(ot,yield mr,qe)};let Ft=null;(0,R.pC)(ot.meta)&&(0,R.pC)(ot.meta.ESRI_lod)&&"screenSpaceRadius"===ot.meta.ESRI_lod.metric&&(Ft=ot.meta.ESRI_lod.thresholds[$t]),ot.lods[$t]=ot.lods[$t]||{parts:[],name:Wt,lodThreshold:Ft},ot.lods[$t].parts[pr]=St});return function(Lt,jt,$t,Wt){return vt.apply(this,arguments)}}());for(const vt of ot.lods)vt.parts=vt.parts.filter(Lt=>!!Lt);const Ct=yield et.getLoadedBuffersSize();return{model:ot,meta:{isEsriSymbolResource:ut,uri:et.uri},customMeta:{},size:Ct}}),He.apply(this,arguments)}function Ie(Ye){let rt=null;return Ye.json.nodes.forEach(tt=>{const et=tt.extras;(0,R.pC)(et)&&(et.ESRI_proxyEllipsoid||et.ESRI_lod)&&(rt=et)}),rt}function Ge(Ye,Je){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,D.Z)(function*(Ye,Je){const rt=Ye.json,tt=rt.scenes[rt.scene||0].nodes,et=tt.length>1,qe=[];for(const _t of tt){const Ct=rt.nodes[_t];qe.push(ot(_t,0)),Le(Ct)&&!et&&Ct.extensions.MSFT_lod.ids.forEach((vt,Lt)=>ot(vt,Lt+1))}function ot(_t,Ct){return ut.apply(this,arguments)}function ut(){return(ut=(0,D.Z)(function*(_t,Ct){const vt=rt.nodes[_t],Lt=Ye.getNodeTransform(_t);if(Ne.warnUnsupportedIf(null!=vt.weights,"Morph targets are not supported."),null!=vt.mesh){const jt=rt.meshes[vt.mesh];for(const $t of jt.primitives)qe.push(Je($t,Lt,Ct,jt.name))}for(const jt of vt.children||[])qe.push(ot(jt,Ct))})).apply(this,arguments)}yield Promise.all(qe)}),Pe.apply(this,arguments)}function Le(Ye){return Ye.extensions&&Ye.extensions.MSFT_lod&&Array.isArray(Ye.extensions.MSFT_lod.ids)}function Me(Ye,Je,rt){const tt=qe=>{const ot=`${rt}_tex_${qe&&qe.id}${qe&&qe.name?"_"+qe.name:""}`;if(qe&&!Ye.textures.has(ot)){const ut=function H(Ye,Je={}){return{data:Ye,parameters:{wrap:{s:W.e8.REPEAT,t:W.e8.REPEAT,...Je.wrap},noUnpackFlip:!0,mipmap:!1,...Je}}}(qe.data,{wrap:{s:qe.wrapS,t:qe.wrapT},mipmap:Xe.includes(qe.minFilter),noUnpackFlip:!0});Ye.textures.set(ot,ut)}return ot},et=`${rt}_mat_${Je.id}_${Je.name}`;if(!Ye.materials.has(et)){const qe=function B(Ye={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclustion:!0,textureColor:null,textureNormal:null,textureOcclusion:null,textureEmissive:null,textureMetallicRoughness:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...Ye}}({color:[Je.color[0],Je.color[1],Je.color[2]],opacity:Je.color[3],alphaMode:Je.alphaMode,alphaCutoff:Je.alphaCutoff,doubleSided:Je.doubleSided,colorMixMode:Je.ESRI_externalColorMixMode,textureColor:Je.colorTexture?tt(Je.colorTexture):void 0,textureNormal:Je.normalTexture?tt(Je.normalTexture):void 0,textureOcclusion:Je.occlusionTexture?tt(Je.occlusionTexture):void 0,textureEmissive:Je.emissiveTexture?tt(Je.emissiveTexture):void 0,textureMetallicRoughness:Je.metallicRoughnessTexture?tt(Je.metallicRoughnessTexture):void 0,emissiveFactor:[Je.emissiveFactor[0],Je.emissiveFactor[1],Je.emissiveFactor[2]],colorTextureTransform:Je.colorTextureTransform,normalTextureTransform:Je.normalTextureTransform,occlusionTextureTransform:Je.occlusionTextureTransform,emissiveTextureTransform:Je.emissiveTextureTransform,metallicRoughnessTextureTransform:Je.metallicRoughnessTextureTransform,metallicFactor:Je.metallicFactor,roughnessFactor:Je.roughnessFactor});Ye.materials.set(et,qe)}return et}const Ne=new class ${error(Je){throw new Z.Z("gltf-loader-error",Je)}errorUnsupported(Je){throw new Z.Z("gltf-loader-unsupported-feature",Je)}errorUnsupportedIf(Je,rt){Je&&this.errorUnsupported(rt)}assert(Je,rt){Je||this.error(rt)}warn(Je){Q.Z.getLogger("esri.views.3d.glTF").warn(Je)}warnUnsupported(Je){this.warn("[Unsupported Feature] "+Je)}warnUnsupportedIf(Je,rt){Je&&this.warnUnsupported(rt)}},Xe=[W.cw.LINEAR_MIPMAP_LINEAR,W.cw.LINEAR_MIPMAP_NEAREST]},46807:(nt,Ae,v)=>{"use strict";v.d(Ae,{Lz:()=>se,RX:()=>de,Wf:()=>ae,j3:()=>oe});var D=v(62208),R=v(28347),G=v(43703),Z=v(84161),Q=v(28093),$=v(55915),W=v(81468),B=v(67225),H=v(93605),X=v(53929),te=v(16396);function ae(pe,he,me,ge){const _e=pe.stageObject,Ee=_e.geometryRecords;let De=0;for(const be of Ee){const{update:Se,averageGeometrySampledElevation:ye}=ue(be,he,me,ge);De+=ye,Se&&_e.geometryVertexAttrsUpdated(be)}return De/Ee.length}function oe(pe,he,me,ge){const _e=pe.stageObject,Ee=he.centerPointInElevationSR;let De=0;_e.metadata.usesVerticalDistanceToGround?((0,W.qZ)(Ee,me,he,ge,ce),(0,B.CV)(_e,ce.verticalDistanceToGround),De=ce.sampledElevation):((0,W.qZ)(Ee,me,he,ge,ce),"absolute-height"!==he.mode&&(De=ce.sampledElevation));const be=(0,R.c)(le,_e.transformation),Se=(0,Z.s)(J,be[12],be[13],be[14]);H.Z.TESTS_DISABLE_OPTIMIZATIONS?(j[0]=Ee.x,j[1]=Ee.y,j[2]=ce.z,(0,$.Bm)(Ee.spatialReference,j,be,ge.spatialReference)&&(_e.transformation=be)):ge.setAltitudeOfTransformation(ce.z,be);const ye=re/ge.unitInMeters;return(Math.abs(be[12]-Se[0])>=ye||Math.abs(be[13]-Se[1])>=ye||Math.abs(be[14]-Se[2])>=ye)&&(_e.transformation=be),De}const le=(0,G.c)();function de(pe,he,me,ge){const _e=pe.graphics3DSymbolLayer.lodRenderer;if((0,D.Wi)(_e))return 0;const Ee=he.centerPointInElevationSR;(0,W.qZ)(Ee,me,he,ge,ce);const De="absolute-height"!==he.mode?ce.sampledElevation:0,be=_e.instanceData,Se=pe.instanceIndex,ye=ie;be.getGlobalTransform(Se,ye);const ve=(0,Z.s)(J,ye[12],ye[13],ye[14]);H.Z.TESTS_DISABLE_OPTIMIZATIONS?(j[0]=Ee.x,j[1]=Ee.y,j[2]=ce.z,(0,$.Bm)(Ee.spatialReference,j,ye,ge.spatialReference)&&be.setGlobalTransform(Se,ye)):ge.setAltitudeOfTransformation(ce.z,ye);const xe=re/ge.unitInMeters;return(H.Z.TESTS_DISABLE_OPTIMIZATIONS||Math.abs(ye[12]-ve[0])>=xe||Math.abs(ye[13]-ve[1])>=xe||Math.abs(ye[14]-ve[2])>=xe)&&be.setGlobalTransform(Se,ye),De}function se(pe,he,me,ge){const _e=pe.stageObject,Ee=_e.geometryRecords;if(0===Ee.length)return 0;let De=0,be=null,Se=0,ye=!1;for(const ve of Ee){const xe=ve.geometry.vertexAttributes.get(te.T.POSITION);if(xe!==be){const{update:ze,averageGeometrySampledElevation:Ke}=ue(ve,he,me,ge);Se=Ke,be=xe,ye=ze}ye&&_e.geometryVertexAttrsUpdated(ve),De+=Se}return De/Ee.length}const re=.01,j=(0,Q.c)(),Y=(0,Q.c)(),ee=(0,Q.c)(),ie=(0,G.c)(),J=(0,Q.c)(),ce=new W.Lm;function ue(pe,he,me,ge){let _e=!1;const Ee=me.spatialReference,De=pe.geometry,be=pe.getShaderTransformation(),Se=he.requiresSampledElevationInfo;Y[0]=be[12],Y[1]=be[13],Y[2]=be[14],De.invalidateBoundingInfo();const ye=De.getMutableAttribute(te.T.POSITION),ve=ye.data,xe=De.vertexAttributes.get(te.T.MAPPOS).data,ze=ye.size,Ke=ve.length/ze,We=new X.sb(xe,Ee);let Ce=0,Be=0;for(let Fe=0;Fe=je||Math.abs(ee[1]-ve[Ce+1])>=je||Math.abs(ee[2]-ve[Ce+2])>=je)&&(_e=!0)}Ce+=ze,We.offset+=3}return Be/=Ke,{update:_e,averageGeometrySampledElevation:Be}}},79112:(nt,Ae,v)=>{"use strict";v.d(Ae,{o:()=>Z});var D=v(62208),R=v(29505),G=v(74746);class Z{constructor(){this._meterUnitOffset=0,this._renderUnitOffset=0,this._unit="meters",this._metersPerElevationInfoUnit=1,this._featureExpressionInfoContext=null,this.centerPointInElevationSR=null,this.mode=null}get featureExpressionInfoContext(){return this._featureExpressionInfoContext}get meterUnitOffset(){return this._meterUnitOffset}get unit(){return this._unit}set unit($){this._unit=$,this._metersPerElevationInfoUnit=(0,R.Z7)($)}get requiresSampledElevationInfo(){return"absolute-height"!==this.mode}reset(){this.mode=null,this._meterUnitOffset=0,this._renderUnitOffset=0,this._featureExpressionInfoContext=null,this.unit="meters"}set offsetMeters($){this._meterUnitOffset=$,this._renderUnitOffset=0}set offsetElevationInfoUnits($){this._meterUnitOffset=$*this._metersPerElevationInfoUnit,this._renderUnitOffset=0}addOffsetRenderUnits($){this._renderUnitOffset+=$}geometryZWithOffset($,W){const B=this.calculateOffsetRenderUnits(W);return null!=this.featureExpressionInfoContext?B:$+B}calculateOffsetRenderUnits($){let W=this._meterUnitOffset;const B=this.featureExpressionInfoContext;return null!=B&&(W+=(0,G.ht)(B)*this._metersPerElevationInfoUnit),W/$.unitInMeters+this._renderUnitOffset}setFromElevationInfo($){this.mode=$.mode,this.unit=(0,R.lt)($.unit)?$.unit:"meters",this.offsetElevationInfoUnits=(0,D.Pt)($.offset,0)}updateFeatureExpressionInfoContext($,W,B){if((0,D.Wi)($))return void(this._featureExpressionInfoContext=null);const H=$&&$.arcade;H&&(0,D.pC)(W)&&(0,D.pC)(B)?(this._featureExpressionInfoContext=(0,G.d9)($),(0,G.aO)(this._featureExpressionInfoContext,(0,G.Tz)(H.modules,W,B))):this._featureExpressionInfoContext=$}static fromElevationInfo($){const W=new Z;return(0,D.pC)($)&&W.setFromElevationInfo($),W}}},39912:(nt,Ae,v)=>{"use strict";v.d(Ae,{K:()=>H,Y:()=>B});var D=v(15861),G=(v(29132),v(85931)),Z=v(62208),Q=v(10699),$=v(87091),W=v(72854);class B{constructor(te,ae){this.spatialReference=te,this._view=ae}getElevation(te,ae,oe){return this._view.elevationProvider.getElevation(te,ae,0,this.spatialReference,oe)}queryElevation(te,ae,oe,le,de){var se=this;return(0,D.Z)(function*(){return se._view.elevationProvider.queryElevation(te,ae,0,se.spatialReference,de,oe,le)})()}}class H{constructor(te,ae,oe,le){this.spatialReference=ae,this._getElevationQueryProvider=oe,this._queries=new Array,this._queryOptions={...le,ignoreInvisibleLayers:!0},this._frameTask=te.registerTask($.T8.ELEVATION_QUERY,this)}destroy(){this._frameTask.remove()}queryElevation(te,ae,oe,le=0){return new Promise((de,se)=>{const re={x:te,y:ae,minDemResolution:le,result:{resolve:de,reject:se},signal:oe};this._queries.push(re),(0,Q.fu)(oe,()=>{(0,G.Od)(this._queries,re),se((0,Q.zE)())})})}get running(){return this._queries.length>0}runTask(){const te=this._queries;this._queries=[];const ae=this._getElevationQueryProvider();if(!ae)return void te.forEach(Y=>Y.result.reject());const oe=te.map(Y=>[Y.x,Y.y]),le=te.reduce((Y,ee)=>Math.min(Y,ee.minDemResolution),1/0),de=new W.Z({points:oe,spatialReference:this.spatialReference}),se=te.length>1&&te.some(Y=>!!Y.signal)?new AbortController:null,re=(0,Z.pC)(se)?se.signal:te[0].signal;if((0,Z.pC)(se)){let Y=0;te.forEach(ee=>(0,Q.fu)(ee.signal,()=>{Y++,ee.result.reject((0,Q.zE)()),Y===te.length&&se.abort()}))}const j={...this._queryOptions,minDemResolution:le,signal:re};ae.queryElevation(de,j).then(Y=>{te.forEach((ee,ie)=>{(0,Z.pC)(ee.signal)&&ee.signal.aborted?ee.result.reject((0,Q.zE)()):ee.result.resolve(Y.geometry.points[ie][2])})}).catch(Y=>{te.forEach(ee=>ee.result.reject(Y))})}get test(){const te=this;return{update:()=>te._queries.length>0&&te.runTask()}}}},18170:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>Xe});var D=v(63290),R=v(9824),G=v(15861),Z=v(91558),Q=v(62208),$=v(23841),W=v(99770),B=v(46807),H=v(81468),X=v(79112),te=v(93927),ae=v(18422),oe=v(67225),le=v(92690),de=v(97161),se=v(42743),re=v(52107),j=v(40723),Y=v(16396),ee=v(9545),ie=v(19625),J=v(13934),ce=v(97347),ue=v(60881),pe=v(5894),he=v(42037),me=v(59617),ge=v(651),_e=v(91056),Ee=v(39114),De=v(12407),be=v(76269),Se=v(67969),ye=v(2078);class ve extends _e.A{initializeConfiguration(rt,tt){tt.spherical=rt.viewingMode===me.JY.Global}initializeProgram(rt){return new De.$(rt.rctx,ve.shader.get().build(this.configuration),Ee.i)}setPipelineState(rt){const tt=rt?Se.wb.ALWAYS:Se.wb.LESS;return(0,ye.sm)(this.configuration.depthHudEnabled?{depthTest:{func:tt},depthWrite:ye.LZ}:{blending:(0,ye.wK)(Se.zi.ONE,Se.zi.SRC_ALPHA,Se.zi.ONE_MINUS_SRC_ALPHA,Se.zi.ONE_MINUS_SRC_ALPHA),depthTest:{func:tt},colorWrite:ye.BK})}initializePipeline(){return this.setPipelineState(this.configuration.hasMultipassGeometry)}}ve.shader=new ge.J(be.L,()=>v.e(3807).then(v.bind(v,43807)));var xe=v(17626),ze=v(87601),Ke=v(41528);class We extends Ke.W{constructor(){super(...arguments),this.screenCenterOffsetUnitsEnabled=ce.d.World,this.spherical=!1,this.occlusionTestEnabled=!0,this.hasVerticalOffset=!1,this.hasScreenSizePerspective=!1,this.depthHudEnabled=!1,this.depthHudAlignStartEnabled=!1,this.hasSlicePlane=!1,this.hasMultipassGeometry=!1}}(0,xe._)([(0,ze.o)({count:ce.d.COUNT})],We.prototype,"screenCenterOffsetUnitsEnabled",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"spherical",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"occlusionTestEnabled",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"hasVerticalOffset",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"hasScreenSizePerspective",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"depthHudEnabled",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"depthHudAlignStartEnabled",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"hasSlicePlane",void 0),(0,xe._)([(0,ze.o)()],We.prototype,"hasMultipassGeometry",void 0),(0,xe._)([(0,ze.o)({constValue:!0})],We.prototype,"hasSliceInVertexProgram",void 0),(0,xe._)([(0,ze.o)({constValue:!1})],We.prototype,"isDraped",void 0);class Ce extends j.F5{constructor(rt){super(rt,new Fe),this._configuration=new We,this._uniqueMaterialIdentifier=Ce.uniqueMaterialIdentifier(this.parameters)}get uniqueMaterialIdentifier(){return this._uniqueMaterialIdentifier}getPassParameters(){return this.parameters}getConfiguration(rt,tt){const et=tt?.slot!==pe.r.LINE_CALLOUTS;return this._configuration.occlusionTestEnabled=this.parameters.occlusionTest,this._configuration.hasVerticalOffset=(0,Q.pC)(this.parameters.verticalOffset),this._configuration.hasScreenSizePerspective=(0,Q.pC)(this.parameters.screenSizePerspective),this._configuration.depthHudEnabled=et,this._configuration.depthHudAlignStartEnabled=!!this.parameters.depthHUDAlignStart,this._configuration.screenCenterOffsetUnitsEnabled="screen"===this.parameters.centerOffsetUnits?ce.d.Screen:ce.d.World,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasMultipassGeometry=tt.multipassGeometry.enabled,this._configuration}intersect(){}requiresSlot(rt,tt){if(tt===J.H.Color)switch(rt){case pe.r.LINE_CALLOUTS:case pe.r.LINE_CALLOUTS_HUD_DEPTH:return!0}return!1}createGLMaterial(rt){return new Be(rt)}createBufferWriter(){return new He}validateParameters(rt){const tt=Ce.uniqueMaterialIdentifier(rt);tt!==this._uniqueMaterialIdentifier&&(this._uniqueMaterialIdentifier=tt)}static uniqueMaterialIdentifier(rt){return JSON.stringify({screenOffset:rt.screenOffset||[0,0],centerOffsetUnits:rt.centerOffsetUnits||"world"})}}class Be extends ue.Z{beginSlot(rt){return this.ensureTechnique(ve,rt)}}class Fe extends j.Mt{constructor(){super(...arguments),this.screenOffset=W.Z,this.color=[0,0,0,1],this.size=1,this.occlusionTest=!1,this.shaderPolygonOffset=1e-5,this.depthHUDAlignStart=!1,this.centerOffsetUnits="world",this.hasSlicePlane=!1}}const je=(0,ie.U$)().vec3f(Y.T.POSITION).vec3f(Y.T.NORMAL).vec2f(Y.T.UV0).vec4f(Y.T.AUXPOS1),Re=[(0,ee.f)(0,0),(0,ee.f)(1,0),(0,ee.f)(0,1),(0,ee.f)(1,0),(0,ee.f)(1,1),(0,ee.f)(0,1)];class He{constructor(){this.vertexBufferLayout=je}allocate(rt){return this.vertexBufferLayout.createBuffer(rt)}elementCount(rt){return 6*rt.indices.get(Y.T.POSITION).length}write(rt,tt,et,qe,ot){(0,he.ho)(et.indices.get(Y.T.POSITION),et.vertexAttributes.get(Y.T.POSITION).data,rt,qe.position,ot,6),(0,he.s5)(et.indices.get(Y.T.NORMAL),et.vertexAttributes.get(Y.T.NORMAL).data,tt,qe.normal,ot,6),(0,he.SW)(et.indices.get(Y.T.AUXPOS1),et.vertexAttributes.get(Y.T.AUXPOS1).data,qe.auxpos1,ot,6);for(let ut=0;ut"object"===Ct.type||"text"===Ct.type));if("label-3d"!==ot.type&&ut||"point-3d"===ot.type&&ot.symbolLayers.every(Ct=>"text"===Ct.type&&!(0,R.as)(Ct)))return null;const _t=(0,oe.zE)(et.geometry);return(0,Q.Wi)(_t)?null:this._createAs3DShape(_t,qe,tt,et.uid)}layerOpacityChanged(){(0,Q.pC)(this._material)&&this._material.setParameters(this._materialParameters)}layerElevationInfoChanged(rt,tt,et){const ot=(0,H.GC)(Ie.elevationModeChangeTypes,et,this._elevationContext.mode);return ot!==H.lO.UPDATE||rt.forEach(ut=>{const _t=tt(ut);(0,Q.pC)(_t)&&this.updateGraphicElevationContext(ut.graphic,_t)}),ot}slicePlaneEnabledChanged(){return(0,Q.Wi)(this._material)||this._material.setParameters({hasSlicePlane:this._context.slicePlaneEnabled}),!0}physicalBasedRenderingChanged(){return!0}pixelRatioChanged(){return!0}setGraphicElevationContext(rt,tt,et=0){const qe=super.setGraphicElevationContext(rt,tt);return qe.addOffsetRenderUnits(et),qe}updateGraphicElevationContext(rt,tt){this.setGraphicElevationContext(rt,tt.elevationContext,tt.metadata.elevationOffset),tt.needsElevationUpdates=(0,H.Xf)(tt.elevationContext.mode)}computeComplexity(){return{primitivesPerFeature:2,primitivesPerCoordinate:0,drawCallsPerFeature:0,estimated:!1,memory:de.WU.memory}}_createVertexData(rt){const{translation:tt,centerOffset:et}=rt;return[[Y.T.POSITION,tt?{size:3,data:[tt[0],tt[1],tt[2]],exclusive:!0}:{size:3,data:[0,0,0],exclusive:!0}],[Y.T.NORMAL,{size:3,data:[0,0,1],exclusive:!0}],[Y.T.AUXPOS1,et?{size:4,data:[et[0],et[1],et[2],et[3]],exclusive:!0}:{size:4,data:[0,0,0,1],exclusive:!0}]]}_getOrCreateMaterial(rt){const tt=this._perInstanceMaterialParameters(rt),et=Ce.uniqueMaterialIdentifier(tt);if((0,Q.pC)(this._material)&&et===this._material.uniqueMaterialIdentifier)return{material:this._material,isUnique:!1};if(rt.materialCollection){let qe=rt.materialCollection.get(et);return(0,Q.Wi)(qe)&&(qe=new Ce(tt),rt.materialCollection.add(et,qe)),{material:qe,isUnique:!1}}return{material:new Ce(tt),isUnique:!0}}_createAs3DShape(rt,tt,et,qe){const ot=this._context.stage.renderView._getObjectAndLayerIdColor({graphicUid:qe,layerUid:this._context.layer.uid}),ut=[new re.Z(this._createVertexData(et),Pe,se.MX.Point,ot)],_t=this._getOrCreateMaterial(et),Ct=(0,le.km)(this._context,rt,ut,[_t.material],tt,this._context.layer.uid,qe);if(null===Ct)return null;const vt=new te.z(this,Ct.object,ut,_t.isUnique?[_t.material]:null,null,B.j3,tt);return vt.metadata={elevationOffset:et.elevationOffset||0},vt.alignedSampledElevation=Ct.sampledElevation,vt.needsElevationUpdates=(0,H.Xf)(tt.mode),(0,le.dO)(vt,rt,this._context.elevationProvider),vt}}Ie.elevationModeChangeTypes={definedChanged:H.lO.UPDATE,staysOnTheGround:H.lO.UPDATE,onTheGroundChanged:H.lO.RECREATE};const Ge=[0],Pe=[[Y.T.POSITION,Ge],[Y.T.NORMAL,Ge],[Y.T.AUXPOS1,Ge]],Le={mode:"relative-to-ground",offset:0},Me={ignoreDrivers:!0,renderPriority:0,renderPriorityStep:1},Ne=D.Z.getLogger("esri.views.3d.layers.graphics.Graphics3DCalloutSymbolLayerFactory");function Xe(Je,rt){if(!(0,R.Pd)(Je))return Ne.error("Graphics3DCalloutSymbolLayerFactory#make",`symbol of type '${Je.type}' does not support callouts`),null;if(!Je.callout)return null;const tt=Ye[Je.callout.type];return tt?new tt(Je,rt):(Ne.error("Graphics3DCalloutSymbolLayerFactory#make",`unknown or unsupported callout type ${Je.callout.type}`),null)}const Ye={line:Ie}},23641:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>D});class D{constructor(G,Z,Q){this.graphic=G,this.renderingInfo=Z,this.layer=Q}}},93927:(nt,Ae,v)=>{"use strict";v.d(Ae,{z:()=>te});var D=v(15861),R=v(62208),G=v(84161),Z=v(28093),Q=v(5548),$=v(97126),W=v(74746),B=v(67225),H=v(42743),X=v(17803);class te{constructor(j,Y,ee,ie,J,ce,ue,pe=null){this.graphics3DSymbolLayer=j,this.stageObject=Y,this._uniqueGeometries=ee,this._uniqueMaterials=ie,this._sharedResource=J,this.elevationAligner=ce,this.elevationContext=ue,this._edgeState=pe,this.type="object3d",this._stageLayer=null,this._stage=null,this._visible=!1,this._addedToStage=!1,this.alignedSampledElevation=0,this.needsElevationUpdates=!1,this.useObjectOriginAsAttachmentOrigin=!1,this.graphics3DSymbolLayer=j,this.stageObject=Y}get isElevationSource(){return!(!this.stageObject.metadata||!this.stageObject.metadata.isElevationSource)}initialize(j,Y){this._stageLayer=Y,this._stage=j,j.addMany(this._uniqueMaterials),j.addMany(this._uniqueGeometries),j.add(this.stageObject)}destroy(){const j=this._stage;this._stageLayer&&(j.removeMany(this._uniqueMaterials),j.removeMany(this._uniqueGeometries)),j.remove(this.stageObject),this._addedToStage&&(this._stageLayer.remove(this.stageObject),this._addedToStage=!1);const Y=this._stage.renderView.ensureEdgeView();Y.hasObject(this.stageObject)&&Y.removeObject(this.stageObject),this.stageObject.dispose(),(0,R.pC)(this._sharedResource)&&this._sharedResource.release(),this._visible=!1,this._stageLayer=null,this._stage=null}layerOpacityChanged(j,Y){if((0,R.Wi)(this._edgeState))return;const ee=ae(this._edgeState.baseMaterial);let ie=!1;for(const J of this._edgeState.edgeMaterials)J.objectTransparency!==ee&&(J.objectTransparency=ee,ie=!0);ie&&this._resetEdgeObject(Y),this._stage.renderView.ensureEdgeView().updateAllComponentOpacities(this.stageObject,[j])}slicePlaneEnabledChanged(j,Y){(0,R.Wi)(this._edgeState)||(this._stage.renderView.ensureEdgeView().updateAllComponentMaterials(this.stageObject,this._edgeState.edgeMaterials,{hasSlicePlane:j},!Y),this._edgeState.properties.hasSlicePlane=j)}setVisibility(j){if(null!=this._stage&&this._visible!==j&&(this._visible=j,this._visible?this._addedToStage?this.stageObject.setVisible(!0):(this._stageLayer.add(this.stageObject),this._addedToStage=!0):this.stageObject.setVisible(!1),(0,R.pC)(this._edgeState))){const Y=this._stage.renderView.ensureEdgeView();Y.hasObject(this.stageObject)?Y.updateObjectVisibility(this.stageObject,j):j&&this._addOrUpdateEdgeObject(Y,!1)}}get visible(){return this._visible}alignWithElevation(j,Y,ee,ie){null!=this.elevationAligner&&((0,R.pC)(ee)&&(0,W.aO)(this.elevationContext.featureExpressionInfoContext,ee),this.alignedSampledElevation=this.elevationAligner(this,this.elevationContext,j,Y),this._resetEdgeObject(ie))}getCenterObjectSpace(j=(0,Z.c)()){return(0,G.c)(j,(0,$.g)(this.stageObject.boundingVolumeObjectSpace.bounds))}getBoundingBoxObjectSpace(j=(0,Q.Ue)()){const Y=this.stageObject.boundingVolumeObjectSpace;return(0,Q.op)(j,Y.min),(0,Q.Tn)(j,Y.max),j}computeAttachmentOrigin(j){if(this.useObjectOriginAsAttachmentOrigin){const Y=this.stageObject.transformation;j.render.origin[0]+=Y[12],j.render.origin[1]+=Y[13],j.render.origin[2]+=Y[14],j.render.num++}else for(const Y of this.stageObject.geometryRecords)Y.computeAttachmentOrigin(de)&&((0,G.m)(de,de,this.stageObject.transformation),(0,G.a)(j.render.origin,j.render.origin,de),j.render.num++)}getProjectedBoundingBox(j,Y,ee,ie,J){var ce=this;return(0,D.Z)(function*(){const ue=ce.getBoundingBoxObjectSpace(J),pe=se,he=(0,Q.wp)(ue)?1:pe.length;for(let ge=0;gethis._stageLayer?.sync())}}function ae(re){return re.isVisible?re.parameters.transparent?X.i.TRANSPARENT:X.i.OPAQUE:X.i.INVISIBLE}const oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],le=(0,Z.c)(),de=(0,Z.c)(),se=[[0,1,2],[3,1,2],[0,4,2],[3,4,2],[0,1,5],[3,1,5],[0,4,5],[3,4,5]]},21439:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>vT});var D=v(15861),R=v(59213),G=v(62208),Z=v(10699),Q=v(27306),$=v(27899),W=v(67831),B=v(99770),H=v(84161),X=v(28093),te=v(37118),ae=v(55915),oe=v(5548),le=v(65401),de=v(37053),se=v(38114),re=v(82054),j=v(79721),Y=v(74746);const ee=new $.Z(Array,ft=>(0,oe.t8)(ft,oe.xE),null,10,5),ie=(0,le.Ue)();class J{constructor(Te,Ue,$e,st,ht){this.graphic=Te,this.graphics3DSymbol=Ue,this.graphics=$e,this._labelGraphics=new Array,this._auxiliaryGraphics=new Array,this._visibilityFlags=function ce(ft,Te){const Ue=new Array(ft);for(let $e=0;$e{$e.initialize(Te,Ue),$e.setVisibility(this.isVisible())})}destroy(){this._forEachSymbolLayerGraphic(Te=>Te.destroy()),this.graphics=null,this._auxiliaryGraphics=null,--this.graphics3DSymbol.referenced,this.graphics3DSymbol=null}get destroyed(){return null==this.graphics}clearLabelGraphics(){this._forEachLabelGraphic(Te=>Te.destroy()),this._labelGraphics.length=0}addLabelGraphic(Te,Ue,$e){this._labelGraphics.push(Te),Te.initialize(Ue,$e),Te.setVisibility(this.isVisible(j.E.LABEL))}addAuxiliaryGraphic(Te){this._auxiliaryGraphics.push(Te),this._layer&&(Te.initialize(this._stage,this._layer),Te.setVisibility(this.isVisible()))}get isDraped(){let Te=!1;return this._forEachSymbolLayerGraphic(Ue=>{"draped"===Ue.type&&(Te=!0)}),Te}isVisible(Te=j.E.GRAPHIC,Ue){for(let $e=0;$e<=Te;$e++){const st=this._visibilityFlags[$e];for(let ht=0;htyt.setVisibility(ht));else{this._forEachSymbolLayerGraphic(Rt=>Rt.setVisibility(ht));const yt=this.isVisible(j.E.LABEL);this._forEachLabelGraphic(Rt=>Rt.setVisibility(yt))}return!0}clearVisibilityFlag(Te,Ue=j.E.GRAPHIC){return this.setVisibilityFlag(Te,void 0,Ue)}computeExtent(Te){if(!this._extent){const Ue=this.graphic.geometry;if((0,G.Wi)(Ue))return!1;this._extent=(0,le.Ue)(),(0,se.TF)(Ue,this._extent);const $e=Ue.spatialReference;if(!(0,de.fS)($e,Te)&&!(0,ae.dH)(this._extent,$e,this._extent,Te))return this._extent=null,!1}return!0}getAsOptimizedGeometry(Te,Ue){return(0,G.pC)(this._optimizedGeometry.geometry)&&this._optimizedGeometry.hasZ===Te&&this._optimizedGeometry.hasM===Ue||(this._optimizedGeometry.geometry=this._convertGraphicToOptimizedGeometry(this.graphic,Te,Ue),this._optimizedGeometry.hasZ=Te,this._optimizedGeometry.hasM=Ue),this._optimizedGeometry.geometry}_convertGraphicToOptimizedGeometry(Te,Ue,$e){let st=Te.geometry;return"mesh"!==st.type&&"extent"!==st.type||(st=te.Z.fromExtent("mesh"===st.type?st.extent:st)),(0,re.GH)(st,Ue,$e)}get usedMemory(){let Te=(0,Q.f2)(this.graphic.attributes);return this._forEachSymbolLayerGraphic(Ue=>{const $e=Ue.graphics3DSymbolLayer.complexity;if((0,G.Wi)($e))return;const st="draped"===Ue.type?$e.memory.draped:$e.memory;Te+=st.bytesPerFeature,st.bytesPerCoordinate&&(Te+=(0,se.R3)(this.graphic.geometry)*st.bytesPerCoordinate)}),Te}computeAttachmentOrigin(){const Te={render:{origin:(0,X.c)(),num:0},draped:{origin:(0,B.a)(),num:0}};for(const Ue of this.graphics)(0,G.Wi)(Ue)||Ue.computeAttachmentOrigin(Te);return Te.render.num&&(0,H.g)(Te.render.origin,Te.render.origin,1/Te.render.num),Te.draped.num&&(0,W.b)(Te.draped.origin,Te.draped.origin,1/Te.draped.num),Te}getProjectedBoundingBox(Te,Ue,$e,st,ht){var yt=this;return(0,D.Z)(function*(){return ht||(ht={boundingBox:null,requiresDrapedElevation:!1,screenSpaceObjects:[]}),ht.boundingBox?(0,oe.cS)(ht.boundingBox):ht.boundingBox=(0,oe.cS)(),ht.requiresDrapedElevation=!1,yield(0,R.Ed)(yt.graphics,function(){var Rt=(0,D.Z)(function*(Ut){if((0,G.Wi)(Ut))return;const er="draped"===Ut.type?Ue:Te,vr=ee.acquire(),Pr=yield Ut.getProjectedBoundingBox(er,$e,ht.screenSpaceObjects,st,vr);isFinite(Pr[2])&&isFinite(Pr[5])||(ht.requiresDrapedElevation=!0),Pr&&(0,oe.TC)(ht.boundingBox,vr),ee.release(vr)});return function(Ut){return Rt.apply(this,arguments)}}()),(0,oe.sU)(ht.boundingBox)||(0,le.sU)((0,oe.y8)(ht.boundingBox,ie))?ht:null})()}needsElevationUpdates(){for(const Te of this.graphics)if((0,G.pC)(Te)&&("object3d"===Te.type||"lod-instance"===Te.type)&&Te.needsElevationUpdates)return!0;for(const Te of this._labelGraphics)if(Te&&Te.needsElevationUpdates)return!0;return!1}alignWithElevation(Te,Ue,$e){this._forEachRenderedGraphic(st=>{"object3d"!==st.type&&"lod-instance"!==st.type||st.alignWithElevation(Te,Ue,this._featureExpressionFeature,$e)})}addObjectStateSet(Te,Ue){this._forEachSymbolLayerGraphic($e=>$e.addObjectState(Te,Ue))}removeObjectState(Te){this._forEachSymbolLayerGraphic(Ue=>Ue.removeObjectState(Te))}_forEachGraphicList(Te,Ue){Te.forEach($e=>$e&&Ue($e))}_forEachSymbolLayerGraphic(Te){this._forEachGraphicList(this.graphics,Te),this._forEachGraphicList(this._auxiliaryGraphics,Te)}_forEachLabelGraphic(Te){this._forEachGraphicList(this._labelGraphics,Te)}_forEachRenderedGraphic(Te){this._forEachSymbolLayerGraphic(Te),this._forEachLabelGraphic(Te)}}var ue=v(93927),pe=v(63290),he=v(8314),me=v(26584),ge=v(58817),_e=v(16730),Ee=v(11915),De=v(30217),be=v(550),Se=v(28347),ye=v(43703),ve=v(60479),xe=v(79800),ze=v(82141),Ke=v(39256),We=v(59617),Ce=v(81468),Be=v(79112),Fe=v(18422),je=v(67225),Re=v(64538),Ie=(v(29132),v(42743)),Ge=v(52107),Pe=v(16396),Le=v(2004);function Me(ft){const Te=[[Pe.T.POSITION,ft.indices]],Ue=[[Pe.T.POSITION,{size:3,data:ft.attributeData.position,exclusive:!0}]];return(0,G.pC)(ft.attributeData.color)&&(Ue.push([Pe.T.COLOR,{size:4,data:ft.attributeData.color,exclusive:!0}]),Te.push([Pe.T.COLOR,new Array(ft.indices.length).fill(0)])),(0,G.pC)(ft.attributeData.uvMapSpace)&&(Ue.push([Pe.T.UVMAPSPACE,{size:4,data:ft.attributeData.uvMapSpace,exclusive:!0}]),Te.push([Pe.T.UVMAPSPACE,ft.indices])),(0,G.pC)(ft.attributeData.boundingRect)&&(Ue.push([Pe.T.BOUNDINGRECT,{size:9,data:ft.attributeData.boundingRect,exclusive:!0}]),Te.push([Pe.T.BOUNDINGRECT,ft.indices])),(0,G.pC)(ft.attributeData.mapPosition)&&(Ue.push([Pe.T.MAPPOS,{size:3,data:ft.attributeData.mapPosition,exclusive:!0}]),Te.push([Pe.T.MAPPOS,ft.indices])),new Ge.Z(Ue,Te,Ie.MX.Triangle,ft.attributeData.objectAndLayerIdColor)}function Ne(ft){const Te=[[Pe.T.POSITION,ft.indices],[Pe.T.UV0,ft.indices]],Ue=[[Pe.T.POSITION,{size:3,data:ft.attributeData.position,exclusive:!0}],[Pe.T.UV0,{size:2,data:ft.attributeData.uv0,exclusive:!0}]];return(0,G.pC)(ft.attributeData.mapPosition)&&(Ue.push([Pe.T.MAPPOS,{size:3,data:ft.attributeData.mapPosition,exclusive:!0}]),Te.push([Pe.T.MAPPOS,ft.indices])),new Ge.Z(Ue,Te)}function Xe(ft){switch(ft.type){case"extent":if(ft instanceof Le.Z)return te.Z.fromExtent(ft);break;case"polygon":return ft}return null}class Ye{constructor(Te,Ue,$e){this.renderData=Te,this.layerUid=Ue,this.graphicsUid=$e,this.outGeometries=new Array,this.outMaterials=new Array,this.outTransforms=new Array}}var Je=v(2180),rt=v(93605),tt=v(53929),et=v(85334),qe=v(64835);function ot(ft,Te,Ue,$e){const st=(0,et.Mk)(ft.rings,ft.hasZ,et.ZI.CCW_IS_HOLE),ht=new Float64Array(st.position.length),yt=(0,Ce.rR)(st.position,ft.spatialReference,0,ht,0,st.position,0,st.position.length/3,Te,Ue,$e),Rt=null!=yt;return new jt(st.position,ht,Ct(st.polygons,st.position,ht),_t(st.outlines,st.position,ht),Rt,yt)}function ut(ft,Te){const Ue=(0,et.Mk)(ft.rings,!1,et.ZI.CCW_IS_HOLE),$e=(0,ae.CM)(Ue.position,ft.spatialReference,0,Ue.position,Te,0,Ue.position.length/3);for(let st=2;st$e>1).map(({index:$e,count:st})=>{const ht=3*$e,yt=ht+3*st;return Ue?new Lt($e,st,Te.subarray(ht,yt),Ue.subarray(ht,yt)):new vt($e,st,Te.subarray(ht,yt))})}function Ct(ft,Te,Ue){const $e=new Array;for(const{index:st,count:ht,holeIndices:yt,pathLengths:Rt}of ft){if(ht<=1)continue;const Ut=3*st,er=Ut+3*ht,vr=yt.map(Pr=>Pr-st);$e.push({index:st,count:ht,holeIndices:vr,pathLengths:Rt,position:Te.subarray(Ut,er),mapPosition:Ue?Ue.subarray(Ut,er):void 0})}return $e}class vt{constructor(Te,Ue,$e){this.index=Te,this.count=Ue,this.position=$e}}class Lt extends vt{constructor(Te,Ue,$e,st){super(Te,Ue,$e),this.mapPosition=st}}class jt{constructor(Te,Ue,$e,st,ht,yt){this.position=Te,this.mapPosition=Ue,this.polygons=$e,this.outlines=st,this.projectionSuccess=ht,this.sampledElevation=yt}}var $t=v(96867),Wt=v(28523);const pr=["polygon","extent"];function ar(ft,Te,Ue,$e,st){const ht=new Array(ft.length).fill(0),yt=[[Pe.T.POSITION,{size:3,data:Ue.positions,exclusive:!0}],[Pe.T.NORMAL,{size:3,data:Ue.normals,exclusive:!0}],[Pe.T.COLOR,{size:4,data:$e,exclusive:!0}],[Pe.T.SIZE,{size:1,data:Ue.heights,exclusive:!0}]],Rt=[[Pe.T.POSITION,ft],[Pe.T.NORMAL,ft],[Pe.T.COLOR,ht]];return Ue.elevation&&(yt.push([Pe.T.MAPPOS,{size:3,data:Ue.elevation}]),Rt.push([Pe.T.MAPPOS,ft])),new Ge.Z(yt,Rt,Ie.MX.Triangle,st,Te)}function Fr(ft,Te,Ue,$e,st,ht,yt,Rt,Ut,er,vr,Pr,Ur){let Zr=0,Es=2*$e.count;!function mr(ft,Te,Ue,$e,st,ht,yt,Rt,Ut,er,vr,Pr,Ur,qr,Zr,Es,si){(0,H.c)(Lr,Es);const ei=Zr>0?1:-1;let Rs=3*Ue,fi=0,Pi=3*fi,mn=$e,Di=3*mn;for(let Li=0;Li<$e;++Li)si&&(Lr[0]=ft[Rs+0],Lr[1]=ft[Rs+1],Lr[2]=ft[Rs+2],(0,H.n)(Lr,Lr)),Rt[Pi+0]=ft[Rs+0],Rt[Pi+1]=ft[Rs+1],Rt[Pi+2]=ft[Rs+2],Ut[Pi+0]=Te[Rs+0],Ut[Pi+1]=Te[Rs+1],Ut[Pi+2]=Te[Rs+2],er[Pi+0]=-ei*Lr[0],er[Pi+1]=-ei*Lr[1],er[Pi+2]=-ei*Lr[2],vr[fi]=0,Rt[Di+0]=ft[Rs+0]+Zr*Lr[0],Rt[Di+1]=ft[Rs+1]+Zr*Lr[1],Rt[Di+2]=ft[Rs+2]+Zr*Lr[2],Ut[Di+0]=Te[Rs+0],Ut[Di+1]=Te[Rs+1],Ut[Di+2]=Te[Rs+2],er[Di+0]=ei*Lr[0],er[Di+1]=ei*Lr[1],er[Di+2]=ei*Lr[2],vr[mn]=Zr,Pi+=3,Di+=3,Rs+=3,fi+=1,mn+=1;Rs=3*ht,Pi=0,Di=3*qr;const qn=Zr<0?Jr:Qr,xa=Zr<0?Qr:Jr;for(let Li=0;Li0?(Ur=st,Zr=st+yt):(Ur=st,Pr=st+yt)),dr(ft,Pr,Ur,qr,or),wt(ft,Te,$e,Ue,or,Es,Pr),wt(ft,Te,$e,Ue,or,si,Ur),wt(ft,Te,$e,Ue,or,ei,qr),wt(ft,Te,$e,Ue,or,Rs,Zr),Ut[er++]=Es,Ut[er++]=ei,Ut[er++]=Rs,Ut[er++]=Es,Ut[er++]=Rs,Ut[er++]=si,Pr++,Ur++,qr++,Zr++,Es+=2,si+=2,ei+=2,Rs+=2}const rr=(0,X.c)(),Et=(0,X.c)(),St=(0,X.c)(),Ft=(0,X.c)(),zt=(0,X.c)();function dr(ft,Te,Ue,$e,st){Te*=3,Ue*=3,$e*=3,(0,H.s)(rr,ft[Te++],ft[Te++],ft[Te++]),(0,H.s)(Et,ft[Ue++],ft[Ue++],ft[Ue++]),(0,H.s)(St,ft[$e++],ft[$e++],ft[$e++]),(0,H.b)(Ft,Et,rr),(0,H.b)(zt,St,rr),(0,H.f)(st,zt,Ft),(0,H.n)(st,st)}const hr=(0,X.c)();function Tr(ft,Te,Ue,$e){const st=ft.stageObject,ht=st.geometryRecords,yt=ht.length,Rt="absolute-height"!==Te.mode;let Ut=0;const er=st.transformation,vr=(0,Se.a)((0,ye.c)(),er);for(let Pr=0;Pr=qn||Math.abs(hr[1]-qr[Rs+1])>=qn||Math.abs(hr[2]-qr[Rs+2])>=qn)&&(fi=!0),si.offset+=3,Rs+=3}fi&&(Ur.invalidateBoundingInfo(),st.geometryVertexAttrsUpdated(ht[Pr]),ht[Pr+1].geometry.invalidateBoundingInfo(),st.geometryVertexAttrsUpdated(ht[Pr+1])),Ut+=Pi/ei}return Ut/yt}const Dr=(0,X.c)(),Lr=(0,X.c)(),Hr=new Ce.Lm,Qr=[0,2,1],Jr=[0,1,2],Ss=.01;var Cs=v(91558),ct=(v(20383),v(23841)),At=v(21726),Kt=v(993),tr=v(4794),_r=v(46679),Or=v(33215),gs=v(86606),Kr=v(39236),qt=v(80960),Ir=v(46807),Sr=v(54840);class fs{constructor(Te,Ue,$e,st){this.graphics3DSymbolLayer=Te,this.renderGeometries=Ue,this.boundingBox=$e,this._drapeSourceRenderer=st,this.type="draped",this.stage=null,this._visible=!1,this._addedToStage=!1,this.isElevationSource=!1}initialize(Te){this.stage=Te}setVisibility(Te){if(null!=this.stage&&this._visible!==Te){if(this._visible=Te,Te&&!this._addedToStage)return this._addedToStage=!0,void this._drapeSourceRenderer.addGeometries(this.renderGeometries,Sr.T.ADD);if(Te||this._addedToStage){for(const Ue of this.renderGeometries)Ue.instanceParameters.visible=this._visible;this._drapeSourceRenderer.modifyGeometries(this.renderGeometries,Sr.$.VISIBILITIES)}}}destroy(){this.stage&&this._addedToStage&&this._drapeSourceRenderer.removeGeometries(this.renderGeometries,Sr.T.REMOVE),this._addedToStage=!1,this._visible=!1,this.stage=null}getCenterObjectSpace(Te=(0,X.c)()){return(0,H.s)(Te,0,0,0)}getBoundingBoxObjectSpace(Te=(0,oe.Ue)()){return(0,oe.cS)(Te)}addObjectState(Te,Ue){Te===Ie.V_.Highlight&&(this.renderGeometries.forEach($e=>{const st=$e.addHighlight();Ue.addRenderGeometry($e,st,this)}),this._addedToStage&&this._drapeSourceRenderer.modifyGeometries(this.renderGeometries,Sr.$.HIGHLIGHTS))}removeObjectState(Te){this.renderGeometries.forEach(Ue=>{Te.removeRenderGeometry(Ue)})}removeRenderGeometryObjectState(Te,Ue){Te.removeHighlight(Ue),this._addedToStage&&this._drapeSourceRenderer.modifyGeometries(this.renderGeometries,Sr.$.HIGHLIGHTS)}computeAttachmentOrigin(Te){for(const Ue of this.renderGeometries)Ue.computeAttachmentOrigin(gt)&&(Te.draped.origin[0]+=gt[0],Te.draped.origin[1]+=gt[1],Te.draped.num++)}getProjectedBoundingBox(Te,Ue,$e,st,ht){var yt=this;return(0,D.Z)(function*(){(0,oe.cS)(ht);for(let Rt=0;Rt0?(Te-ft)/($e-Ue):0;st.minSize[ht]=yt>0?ft:Te,st.maxSize[ht]=yt>0?Te:ft,st.offset[ht]=ft-Ue*yt,st.factor[ht]=yt}function qi(ft,Te,Ue){ft[4*Te+0]=Ue.r/255,ft[4*Te+1]=Ue.g/255,ft[4*Te+2]=Ue.b/255,ft[4*Te+3]=Ue.a}function ui(ft,Te,Ue){const $e=2===Ue&&"arithmetic"===ft.rotationType;Te.offset[Ue]=$e?90:0,Te.factor[Ue]=$e?-1:1,Te.type[Ue]=1}function kt(ft,Te,Ue){if(!ft)return null;const $e=!Te.supportedTypes||!!Te.supportedTypes.size,st=!Te.supportedTypes||!!Te.supportedTypes.color,ht=!Te.supportedTypes||!!Te.supportedTypes.rotation,yt=!!Te.supportedTypes&&!!Te.supportedTypes.opacity,Rt=ft.reduce((Ut,er)=>{if(!Ut)return Ut;if(er.valueExpression)return oi(Ue,"Could not convert visual variables: arcade expressions not supported"),null;switch(er.type){case"size":return $e?function yo(ft,Te,Ue,$e){if(ft.normalizationField||ft.valueRepresentation)return oi($e,"Could not convert size info: unsupported property"),null;if(!function hn(ft){return null==ft||yi(ft)}(ft.field))return oi($e,"Could not convert size info: field is not a string"),null;if(Te.size){if(ft.field)if(Te.size.field){if(ft.field!==Te.size.field)return oi($e,"Could not convert size info: multiple fields in use"),null}else Te.size.field=ft.field}else Te.size={field:ft.field,minSize:[0,0,0],maxSize:[0,0,0],offset:[0,0,0],factor:[0,0,0],type:[as.Undefined,as.Undefined,as.Undefined]};let st;switch(ft.axis){case"width":return st=pn(ft,Te.size,0,Ue,$e),st?Te:null;case"height":return st=pn(ft,Te.size,2,Ue,$e),st?Te:null;case"depth":return st=pn(ft,Te.size,1,Ue,$e),st?Te:null;case"width-and-depth":return st=pn(ft,Te.size,0,Ue,$e),st&&pn(ft,Te.size,1,Ue,$e),st?Te:null;case null:case void 0:case"all":return st=pn(ft,Te.size,0,Ue,$e),st=st&&pn(ft,Te.size,1,Ue,$e),st=st&&pn(ft,Te.size,2,Ue,$e),st?Te:null;default:return oi($e,`Could not convert size info: unknown axis "${ft.axis}""`),null}}(er,Ut,Te,Ue):Ut;case"color":return st?function jr(ft,Te,Ue){if(ft.normalizationField)return oi(Ue,"Could not convert color info: unsupported property"),null;if(yi(ft.field)){if(!ft.stops)return oi(Ue,"Could not convert color info: missing stops or colors"),null;{if(ft.stops.length>8)return oi(Ue,"Could not convert color info: too many color stops"),null;Te.color={field:ft.field,values:[0,0,0,0,0,0,0,0],colors:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};const $e=ft.stops;for(let st=0;st<8;++st){const ht=$e[Math.min(st,$e.length-1)];Te.color.values[st]=ht.value,qi(Te.color.colors,st,ht.color)}}}else{if(!(ft.stops&&ft.stops.length>=0))return oi(Ue,"Could not convert color info: no field and no colors/stops"),null;{const $e=ft.stops&&ft.stops.length>=0&&ft.stops[0].color;Te.color={field:null,values:[0,0,0,0,0,0,0,0],colors:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};for(let st=0;st<8;st++)Te.color.values[st]=1/0,qi(Te.color.colors,st,$e)}}return Te}(er,Ut,Ue):Ut;case"opacity":return yt?function Gi(ft,Te,Ue){if(ft.normalizationField)return oi(Ue,"Could not convert opacity info: unsupported property"),null;if(yi(ft.field)){if(!ft.stops)return oi(Ue,"Could not convert opacity info: missing stops or opacities"),null;{if(ft.stops.length>8)return oi(Ue,"Could not convert opacity info: too many opacity stops"),null;Te.opacity={field:ft.field,values:[0,0,0,0,0,0,0,0],opacityValues:[0,0,0,0,0,0,0,0]};const $e=ft.stops;for(let st=0;st<8;++st){const ht=$e[Math.min(st,$e.length-1)];Te.opacity.values[st]=ht.value,Te.opacity.opacityValues[st]=ht.opacity}}}else{if(!(ft.stops&&ft.stops.length>=0))return oi(Ue,"Could not convert opacity info: no field and no opacities/stops"),null;{const $e=ft.stops&&ft.stops.length>=0&&ft.stops[0].opacity;Te.opacity={field:null,values:[0,0,0,0,0,0,0,0],opacityValues:[0,0,0,0,0,0,0,0]};for(let st=0;st<8;st++)Te.opacity.values[st]=1/0,Te.opacity.opacityValues[st]=$e}}return Te}(er,Ut,Ue):null;case"rotation":return ht?function zn(ft,Te,Ue){if(!yi(ft.field))return oi(Ue,"Could not convert rotation info: field is not a string"),null;if(Te.rotation){if(ft.field)if(Te.rotation.field){if(ft.field!==Te.rotation.field)return oi(Ue,"Could not convert rotation info: multiple fields in use"),null}else Te.rotation.field=ft.field}else Te.rotation={field:ft.field,offset:[0,0,0],factor:[1,1,1],type:[0,0,0]};switch(ft.axis){case"tilt":return ui(ft,Te.rotation,0),Te;case"roll":return ui(ft,Te.rotation,1),Te;case null:case void 0:case"heading":return ui(ft,Te.rotation,2),Te;default:return oi(Ue,`Could not convert rotation info: unknown axis "${ft.axis}""`),null}}(er,Ut,Ue):Ut;default:return null}},{size:null,color:null,opacity:null,rotation:null});return!(ft.length>0&&Rt)||Rt.size||Rt.color||Rt.opacity||Rt.rotation?Rt&&Rt.size&&!function Yo(ft,Te,Ue){for(let st=0;st<3;++st){let ht=Te.unitInMeters;ft.type[st]===as.DefinedSize&&(ht*=Te.modelSize[st],ft.type[st]=as.DefinedScale),ft.minSize[st]=ft.minSize[st]/ht,ft.maxSize[st]=ft.maxSize[st]/ht,ft.offset[st]=ft.offset[st]/ht,ft.factor[st]=ft.factor[st]/ht}let $e;if(ft.type[0]!==as.Undefined)$e=0;else if(ft.type[1]!==as.Undefined)$e=1;else{if(ft.type[2]===as.Undefined)return oi(Ue,"No size axis contains a valid size or scale"),!1;$e=2}for(let st=0;st<3;++st)ft.type[st]===as.Undefined&&(ft.minSize[st]=ft.minSize[$e],ft.maxSize[st]=ft.maxSize[$e],ft.offset[st]=ft.offset[$e],ft.factor[st]=ft.factor[$e],ft.type[st]=ft.type[$e]);return!0}(Rt.size,Te,Ue)?null:Rt:null}function Qt(ft){return ft&&null!=ft.size}function Vt(ft,Te){if(!ft)return{enabled:!1};if(rt.Z.TESTS_DISABLE_FAST_UPDATES)return{enabled:!1};const Ue=kt(ft.visualVariables,Te);return Ue?{enabled:!0,visualVariables:Ue,materialParameters:js(Ue,Te),requiresShaderTransformation:Qt(Ue)}:{enabled:!1}}function yr(ft,Te,Ue){if(!Te||!ft.enabled)return!1;const $e=ft.visualVariables,st=kt(Te.visualVariables,Ue);return!!st&&!!(ys($e.size,st.size,"size")&&ys($e.color,st.color,"color")&&ys($e.rotation,st.rotation,"rotation")&&ys($e.opacity,st.opacity,"opacity"))&&(ft.visualVariables=st,ft.materialParameters=js(st,Ue),ft.requiresShaderTransformation=Qt(st),!0)}function ys(ft,Te,Ue){if(!!ft!=!!Te||ft&&ft.field!==Te.field)return!1;if(ft&&"rotation"===Ue){const $e=ft,st=Te;for(let ht=0;ht<3;ht++)if($e.type[ht]!==st.type[ht]||$e.offset[ht]!==st.offset[ht]||$e.factor[ht]!==st.factor[ht])return!1}return!0}function js(ft,Te){const Ue={vvSizeEnabled:!1,vvSizeMinSize:null,vvSizeMaxSize:null,vvSizeOffset:null,vvSizeFactor:null,vvSizeValue:null,vvColorEnabled:!1,vvColorValues:null,vvColorColors:null,vvOpacityEnabled:!1,vvOpacityValues:null,vvOpacityOpacities:null,vvSymbolAnchor:null,vvSymbolRotationMatrix:null},$e=Qt(ft);return ft&&ft.size?(Ue.vvSizeEnabled=!0,Ue.vvSizeMinSize=ft.size.minSize,Ue.vvSizeMaxSize=ft.size.maxSize,Ue.vvSizeOffset=ft.size.offset,Ue.vvSizeFactor=ft.size.factor):ft&&$e&&(Ue.vvSizeValue=Te.transformation.scale),ft&&$e&&(Ue.vvSymbolAnchor=Te.transformation.anchor,Ue.vvSymbolRotationMatrix=(0,be.c)(),(0,Se.i)(Ls),function kn(ft,Te,Ue,$e=(0,ye.c)()){const st=ft||0,ht=Te||0,yt=Ue||0;0!==st&&(0,Se.o)($e,$e,-st/180*Math.PI),0!==ht&&(0,Se.r)($e,$e,ht/180*Math.PI),0!==yt&&(0,Se.n)($e,$e,yt/180*Math.PI)}(Te.transformation.rotation[2],Te.transformation.rotation[0],Te.transformation.rotation[1],Ls),(0,De.f)(Ue.vvSymbolRotationMatrix,Ls)),ft&&ft.color&&(Ue.vvColorEnabled=!0,Ue.vvColorValues=ft.color.values,Ue.vvColorColors=ft.color.colors),ft&&ft.opacity&&(Ue.vvOpacityEnabled=!0,Ue.vvOpacityValues=ft.opacity.values,Ue.vvOpacityOpacities=ft.opacity.opacityValues),Ue}(ft=as||(as={}))[ft.Undefined=0]="Undefined",ft[ft.DefinedSize=1]="DefinedSize",ft[ft.DefinedScale=2]="DefinedScale",function(ft){ft[ft.Undefined=0]="Undefined",ft[ft.DefinedAngle=1]="DefinedAngle"}(Ps||(Ps={})),function(ft){const Te=(0,ye.c)(),Ue=(0,X.c)();ft.evaluateModelTransform=function $e(ht,yt,Rt){if(!ht.vvSizeEnabled)return Rt;(0,Se.c)(Te,Rt);const Ut=ht.vvSymbolRotationMatrix;(0,Se.s)(Ls,Ut[0],Ut[1],Ut[2],0,Ut[3],Ut[4],Ut[5],0,Ut[6],Ut[7],Ut[8],0,0,0,0,1),(0,Se.m)(Te,Te,Ls);for(let er=0;er<3;++er)Ue[er]=(0,Ar.uZ)(ht.vvSizeOffset[er]+yt[0]*ht.vvSizeFactor[er],ht.vvSizeMinSize[er],ht.vvSizeMaxSize[er]);return(0,Se.k)(Te,Te,Ue),(0,Se.v)(Te,Te,ht.vvSymbolAnchor),Te},ft.evaluateModelTransformScale=function st(ht,yt,Rt){if(!yt.vvSizeEnabled)return(0,H.s)(ht,1,1,1);for(let Ut=0;Ut<3;++Ut)ht[Ut]=(0,Ar.uZ)(yt.vvSizeOffset[Ut]+Rt[0]*yt.vvSizeFactor[Ut],yt.vvSizeMinSize[Ut],yt.vvSizeMaxSize[Ut]);return ht}}(Fs||(Fs={}));const Ls=(0,ye.c)(),Os=Fs.evaluateModelTransform,$s=Fs.evaluateModelTransformScale;var As=v(8782),xi=v(57521),en=v(53855),Mo=v(81695),na=v(80805),Po=v(94398);const ja=(0,ye.c)(),An=(0,X.f)(0,0,1),Ma=As.Ns,Ei=[Ma/2,Ma/2,1-Ma/2,1-Ma/2],nc=[As.Ph*Ma,As.Ph*Ma];class Jn extends Fe.k{constructor(Te,Ue,$e,st){super(Te,Ue,$e,st),this._cimLayers=null,this._cimSymbolMaterials=new Map,this._cimSymbolTextures=new Map,this._cimMaterialParametersInfo=null,this._cimRequiredFields=null,this._cimScaleFactorOrFunction=null,this._size=null,this._symbolTextureRatio=1,this._outlineSize=0,this._elevationOptions={supportsOffsetAdjustment:!0,supportsOnTheGround:!0}}getCachedSize(){return{size:this._getIconSize()}}doLoad(Te){var Ue=this;return(0,D.Z)(function*(){Ue._validateOrThrow();const $e=Ue._prepareMaterialParameters(),st=Ue._getPrimitive();if((0,G.pC)(st))Ue._prepareResourcesPrimitive($e,st);else{const ht=(0,gs.nf)(Ue.symbol,Ue.symbolLayer),yt=(0,At.sJ)(ht);yt&&"application/json"===yt.mediaType?yield Ue._prepareResourcesCIM($e,JSON.parse(yt.data),Te):yield Ue._prepareResourcesHref($e,ht,Te)}})()}_validateOrThrow(){if(this._drivenProperties.size)return;const Te=(0,je.bh)(this._getIconSize());if(Te)throw new me.Z("graphics3diconsymbollayer:invalid-size",Te)}_getIconSize(){const Te=this.symbolLayer,Ue=Math.round(null!=Te.size?(0,ct.F2)(Te.size):16);return this._drivenProperties.size?Math.max(Ue,64):Ue}_generateTextureCIM(Te){const Ue=this._getGraphicHash(Te);let $e=""===Ue?null:this._cimSymbolTextures.get(Ue);if(!$e){const ht=this._context.sharedResources.cimSymbolRasterizer.rasterizeCIMSymbol3D(this._cimLayers,Te,"esriGeometryPoint",{scaleFactor:this._cimScaleFactorOrFunction},null,null);this._cimMaterialParametersInfo.anchorPosition=this._getAnchorPos("relative",ht.anchorPosition),$e=new Mo.x(ht.imageData,{width:ht.imageData.width,height:ht.imageData.height,powerOfTwoResizeMode:Ie.CE.PAD}),this._cimSymbolTextures.set(Ue,$e),this._context.stage.add($e)}return $e}_computeSize(Te,Ue){const $e=Te.width/Te.height;return $e>1?[Ue,Math.round(Ue/$e)]:[Math.round(Ue*$e),Ue]}_prepareMaterialParameters(){const Te={anchorPosition:this._getAnchorPos(this.symbolLayer.anchor,this.symbolLayer.anchorPosition)},Ue=this.symbol;if(function jl(ft){return ft&&"point-3d"===ft.type&&ft.hasVisibleVerticalOffset()}(Ue)){const{screenLength:$e,minWorldLength:st,maxWorldLength:ht}=Ue.verticalOffset;Te.verticalOffset={screenLength:(0,ct.F2)($e),minWorldLength:st||0,maxWorldLength:(0,G.pC)(ht)?ht:1/0}}return this._context.screenSizePerspectiveEnabled&&(Te.screenSizePerspective=this._context.sharedResources.screenSizePerspectiveSettings),Te.occlusionTest=!0,Te.hasSlicePlane=this._context.slicePlaneEnabled,Te}_prepareResourcesPrimitive(Te,Ue){const $e=this._getOutlineSize();if(oc(Ue)&&0===$e)throw new Error("Nothing to render");if(this._outlineSize=$e,Te.color=this._getFillColor(),Te.outlineColor=this._getOutlineColor(),Te.outlineSize=this._outlineSize,(0,G.pC)(this._context.sharedResources.textures)){const ht=this._context.sharedResources.textures.fromData(`${Ue}-icon`,()=>(0,As.cU)(Ue));this._texture=ht.texture,this._releaseTexture=ht,Te.textureId=this._texture.id}Te.textureIsSignedDistanceField=!0,Te.distanceFieldBoundingBox=Ei;const st=this._getIconSize();this._size=[st,st],this._symbolTextureRatio=1/Ma,this._createMaterialAndAddToStage(Te,this._context.stage)}_prepareResourcesHref(Te,Ue,$e){var st=this;return(0,D.Z)(function*(){if(!(0,he.Z)("esri-canvas-svg-support")&&(0,At.zd)(Ue))throw new me.Z("graphics3diconsymbollayer:unsupported-image-format","IconSymbol3DLayer failed to load (SVG symbols are not supported in IE11)");st._outlineSize=st._getOutlineSize(),Te.color=st._getFillColor(),Te.outlineColor=st._getOutlineColor(),Te.outlineSize=st._outlineSize,Te.textureIsSignedDistanceField=!1;const ht=st._getIconSize(),yt=ht*st._context.graphicsCoreOwner.view.state.pixelRatio;if((0,G.pC)(st._context.sharedResources.textures)){const Rt=yield(0,R.q6)(st._context.sharedResources.textures.fromUrl(Ue,yt,{signal:$e}));if(!1===Rt.ok)throw(0,Z.r9)(Rt.error),new me.Z("graphics3diconsymbollayer:request-failed",`Failed to load (Request for icon resource failed: ${Ue})`);st._releaseTexture=Rt.value;const Ut=Rt.value.texture;st._size=st._computeSize(Ut.params,ht),Te.textureId=Ut.id}st._createMaterialAndAddToStage(Te,st._context.stage)})()}_prepareResourcesCIM(Te,Ue,$e){var st=this;return(0,D.Z)(function*(){const ht=new Po.Z({data:Ue});if(!st._context.sharedResources.cimSymbolRasterizer){const Pr=(yield Promise.all([v.e(3751),v.e(3678),v.e(8899)]).then(v.bind(v,52351))).CIMSymbolRasterizer;(0,Z.k_)($e),st._context.sharedResources.cimSymbolRasterizer||(st._context.sharedResources.cimSymbolRasterizer=new Pr(st._context.renderCoordsHelper.spatialReference,!0))}const yt=st._context.layer.fields?st._context.layer.fields.map(Pr=>Pr.toJSON()):null;let Rt,Ut;if(st._cimLayers=yield st._context.sharedResources.cimSymbolRasterizer.analyzeCIMSymbol(ht,yt,st._context.renderer&&"dictionary"===st._context.renderer.type?st._context.renderer.fieldMap:null,"esriGeometryPoint",{signal:$e}),st._context.renderer&&"dictionary"===st._context.renderer.type&&st._context.renderer.scaleExpression){const Pr=st._context.renderer;if(isNaN(Pr.scaleExpression)){const Ur=Pr.scaleExpression,qr=yield(0,_r.Yi)(Ur,st._context.layer.spatialReference,yt);Ut=(Zr,Es,si)=>{const ei=(0,Kr.Z)(qr,Zr,{$view:si},"esriGeometryPoint",Es);return null!==ei?ei:1}}else Rt=Number(Pr.scaleExpression)}st._cimScaleFactorOrFunction=Rt||Ut||1;const er=st._context.renderer?yield st._context.renderer.getRequiredFields(st._context.layer.fieldsIndex):[];(0,Z.k_)($e);const vr=st._context.layer.fieldsIndex;st._cimRequiredFields=er.map(Pr=>vr.get(Pr).name),st._cimMaterialParametersInfo=Te,st._cimMaterialParametersInfo.color=st._getFillColor(),st._cimMaterialParametersInfo.outlineColor=[0,0,0,0],st._cimMaterialParametersInfo.outlineSize=0,st._cimMaterialParametersInfo.textureIsSignedDistanceField=!1})()}_getPrimitive(){return this.symbolLayer.resource&&this.symbolLayer.resource.href?null:this.symbolLayer.resource&&this.symbolLayer.resource.primitive||Or.S}_getOutlineSize(){let Te=0;const Ue=this.symbolLayer;return(0,G.pC)(Ue.outline)&&null!=Ue.outline.size?Math.max((0,ct.F2)(Ue.outline.size),0):(Te=oc(this._getPrimitive())?1.5:0,Math.max(Te,0))}_getOutlineColor(){const Te=this._getLayerOpacity(),$e=(0,G.U2)(this.symbolLayer,"outline","color");if((0,G.pC)($e)){const st=Cs.Z.toUnitRGB($e);return[st[0],st[1],st[2],$e.a*Te]}return[0,0,0,0]}_getFillColor(){if(oc(this._getPrimitive()))return qt.r;const Te=(0,G.Wi)(this._getPrimitive()),Ue=(0,G.U2)(this.symbolLayer,"material","color");return this._getCombinedOpacityAndColor(Ue,{hasIntrinsicColor:Te})}_getAnchorPos(Te,Ue){return"relative"===Te?(0,B.f)((Ue.x||0)+.5,.5-(Ue.y||0)):Te in Gt.yY?Gt.yY[Te]:Gt.yY.center}_createMaterialAndAddToStage(Te,Ue){if(this._fastUpdates=this._cimLayers?{enabled:!1}:Vt(this._context.renderer,this._fastVisualVariableConvertOptions()),this._fastUpdates.enabled&&Object.assign(Te,this._fastUpdates.materialParameters),this._cimLayers){let $e=(0,G.pC)(Te.textureId)?this._cimSymbolMaterials.get(Te.textureId):null;return $e||($e=new na.A(Te),this._cimSymbolMaterials.set((0,G.Pt)(Te.textureId,0),$e),Ue.add($e)),$e}return this._material=new na.A(Te),Ue.add(this._material),this._material}_setDrapingDependentMaterialParameters(){this.draped&&(this._forEachMaterial(Te=>{Te.setParameters({verticalOffset:null,screenSizePerspective:null,occlusionTest:!1,hasSlicePlane:!1,shaderPolygonOffset:0,isDraped:this.draped})}),this.layerOpacityChanged())}destroy(){super.destroy(),this._forEachMaterial(Te=>this._context.stage.remove(Te)),this._material=null,this._cimSymbolMaterials.clear(),this._cimSymbolTextures.forEach(Te=>this._context.stage.remove(Te)),this._cimSymbolTextures.clear(),this._releaseTexture=(0,G.RY)(this._releaseTexture)}_getScaleFactor(Te,Ue){if(this._drivenProperties.size&&Te.size){for(let $e=0;$e<3;$e++){const st=Te.size[$e];st&&"symbol-value"!==st&&"proportional"!==st&&(Te.size[$e]=(0,ct.F2)(st))}if("symbol-value"===Te.size[0])return 1;if(isFinite(+Te.size[0]))return+Te.size[0]/Ue;if(isFinite(+Te.size[2]))return+Te.size[2]/Ue}return 1}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry))return null;let $e,st;if(this._cimLayers){if(!this._cimLayers.length)return null;const Pr=this._generateTextureCIM(Ue),Ur={textureId:Pr.id,...this._cimMaterialParametersInfo};st=this._createMaterialAndAddToStage(Ur,this._context.stage),$e=[Pr.params.width,Pr.params.height]}else $e=this._size,st=(0,G.Wg)(this._material);const ht=(0,fr.S_)(Ue.geometry);if((0,G.Wi)(ht))return this.logger.warn(`unsupported geometry type for icon symbol: ${Ue.geometry.type}`),null;const yt=Te.renderingInfo,Rt=this._getVertexOpacityAndColor(yt);let Ut=1;this._fastUpdates.enabled&&this._fastUpdates.visualVariables.size||(Ut=this._getScaleFactor(yt,$e[0]>$e[1]?$e[0]:$e[1])),Ut*=this._symbolTextureRatio;const er=[$e[0]*Ut,$e[1]*Ut],vr=this.setGraphicElevationContext(Ue,new Be.o);return this.ensureDrapedStatus("on-the-ground"===vr.mode)&&this._setDrapingDependentMaterialParameters(),this.draped?this._createAsOverlay(Ue,ht,st,Rt,er,Te.layer.uid):this._createAs3DShape(Ue,ht,st,Rt,er,vr,Ue.uid)}layerOpacityChanged(){const Te=this._getFillColor(),Ue=this._getOutlineColor();this._forEachMaterial($e=>{$e.setParameters({color:Te}),$e.setParameters({outlineColor:Ue})})}layerElevationInfoChanged(Te,Ue,$e){const st=this._elevationContext.mode,ht=(0,Ce.GC)(Jn.elevationModeChangeTypes,$e,st);if(ht!==Ce.lO.UPDATE)return ht;const yt=(0,Ce.Xf)(st)||"absolute-height"===st;return this.updateGraphics3DGraphicElevationInfo(Te,Ue,()=>yt)}slicePlaneEnabledChanged(){return this.draped||this._forEachMaterial(Te=>{Te.setParameters({hasSlicePlane:this._context.slicePlaneEnabled})}),!0}physicalBasedRenderingChanged(){return!0}pixelRatioChanged(){return!!this._getPrimitive()}applyRendererDiff(Te,Ue){for(const $e in Te.diff){if("visualVariables"!==$e||!yr(this._fastUpdates,Ue,this._fastVisualVariableConvertOptions()))return Re.W.Recreate_Symbol;(0,G.pC)(this._material)&&this._material.setParameters(this._fastUpdates.materialParameters)}return Re.W.Fast_Update}_defaultElevationInfoNoZ(){return Lo}_createAs3DShape(Te,Ue,$e,st,ht,yt,Rt){const Ut=this.getFastUpdateAttrValues(Te),er=Ut?Zr=>Os(this._fastUpdates.materialParameters,Ut,Zr):null,vr=this._context.stage.renderView._getObjectAndLayerIdColor({graphicUid:Rt,layerUid:this._context.layer.uid}),Pr=[(0,xi.dV)(An,null,st,ht,Fa,null,Ut,vr)],Ur=(0,fr.km)(this._context,Ue,Pr,[$e],yt,this._context.layer.uid,Rt,er);if(null===Ur)return null;const qr=new ue.z(this,Ur.object,Pr,null,null,Ir.j3,yt);return qr.alignedSampledElevation=Ur.sampledElevation,qr.needsElevationUpdates=(0,Ce.Xf)(yt.mode)||"absolute-height"===yt.mode,qr.getScreenSize=this._createScreenSizeGetter(ht,er),qr.calculateRelativeScreenBounds=Zr=>$e.calculateRelativeScreenBounds(qr.getScreenSize(),1,Zr),(0,fr.dO)(qr,Ue,this._context.elevationProvider),qr}_createAsOverlay(Te,Ue,$e,st,ht,yt){$e.renderPriority=this._renderPriority;const Rt=(0,tr.c)();(0,ae.KC)(Ue,Rt,this._context.overlaySR),Rt[2]=qe.Rn;const Ut=this._context.clippingExtent;if((0,G.pC)(Ut)&&!(0,oe.BD)(Ut,Rt))return null;const er=this.getFastUpdateAttrValues(Te),vr=er?Es=>Os(this._fastUpdates.materialParameters,er,Es):null,Pr=this._context.stage.renderView._getObjectAndLayerIdColor({graphicUid:Te.uid,layerUid:this._context.layer.uid}),Ur=(0,xi.dV)(An,Rt,st,ht,null,null,er,Pr),qr=new en.z(Ur,$e,{layerUid:yt,graphicUid:Te.uid,calculateShaderTransformation:vr});Rt[3]=0,(0,Kt.c)(qr.boundingSphere,Rt);const Zr=new fs(this,[qr],null,this._context.drapeSourceRenderer);return Zr.getScreenSize=this._createScreenSizeGetter(ht,vr),Zr.calculateRelativeScreenBounds=Es=>$e.calculateRelativeScreenBounds(Zr.getScreenSize(),1,Es),Zr}_createScreenSizeGetter(Te,Ue){const $e=this._outlineSize+2;if(this._fastUpdates.enabled){const st=Te[0]/this._symbolTextureRatio,ht=Te[1]/this._symbolTextureRatio;return(yt=(0,B.a)())=>{const Rt=Ue(ja);return yt[0]=Rt[0]*st+$e,yt[1]=Rt[5]*ht+$e,yt}}{const st=Te[0]/this._symbolTextureRatio+$e,ht=Te[1]/this._symbolTextureRatio+$e;return(yt=(0,B.a)())=>(yt[0]=st,yt[1]=ht,yt)}}_fastVisualVariableConvertOptions(){const Te=this._size[0]>this._size[1]?this._size[0]:this._size[1],Ue=(0,X.f)(Te,Te,Te),$e=(0,ct.Wz)(1),st=Te*$e;return{modelSize:Ue,symbolSize:(0,X.f)(st,st,st),unitInMeters:$e,transformation:{anchor:X.Z,scale:X.O,rotation:X.Z}}}_getGraphicHash(Te){let Ue="";for(const $e of this._cimRequiredFields)Ue+=$e+Te.attributes[$e];return Ue}_forEachMaterial(Te){(0,G.pC)(this._material)&&Te(this._material),this._cimSymbolMaterials.forEach(Te)}test(){return{...super.test(),material:this._material}}}function oc(ft){return!(0,G.Wi)(ft)&&("cross"===ft||"x"===ft)}Jn.PRIMITIVE_SIZE=nc,Jn.elevationModeChangeTypes={definedChanged:Ce.lO.UPDATE,staysOnTheGround:Ce.lO.NONE,onTheGroundChanged:Ce.lO.RECREATE};const Lo={mode:"relative-to-ground",offset:0},Fa=(0,tr.f)(0,0,0,1);var Pa=v(39401);function cr(ft){switch(ft){case"butt":return Pa.R.BUTT;case"square":return Pa.R.SQUARE;case"round":return Pa.R.ROUND;default:return null}}var vs=v(79020),Ri=v(81805);function Uo(ft,Te,Ue){const $e=new Array;for(const{index:st,count:ht}of ft){if(ht<=1)continue;const yt=3*st,Rt=yt+3*ht;$e.push({position:Te.subarray(yt,Rt),mapPosition:Ue?Ue.subarray(yt,Rt):void 0})}return $e}var Na=v(70591),Ot=v(54889),It=v(92222);const Xt=["polyline","polygon","extent"];class ur extends Fe.k{constructor(Te,Ue,$e,st){super(Te,Ue,$e,st)}doLoad(){var Te=this;return(0,D.Z)(function*(){if(Te._vvConvertOptions={modelSize:[1,1,1],symbolSize:[1,1,1],unitInMeters:1,transformation:{anchor:[0,0,0],scale:[1,1,1],rotation:[0,0,0]},supportedTypes:{size:!0,color:!0,opacity:!0,rotation:!1}},Te._fastUpdates=Te._context.renderer&&Te._context.renderer.visualVariables&&Te._context.renderer.visualVariables.length>0?Vt(Te._context.renderer,Te._vvConvertOptions):{enabled:!1},!Te._drivenProperties.size&&(null!=Te.symbolLayer.size?Te.symbolLayer.size:(0,ct.Wz)(1))<0)throw new me.Z("graphics3dlinesymbollayer:invalid-size","Symbol sizes may not be negative values");Te._markerTexture=(0,G.pC)(Te.symbolLayer.marker)&&(0,G.pC)(Te._context.sharedResources.textures)?(0,Ri.uM)(Te._context.sharedResources.textures,function ns(ft){return"diamond"===ft?"kite":ft}(Te.symbolLayer.marker.style)):null})()}_getMaterialParameters(Te,Ue=!1){const $e=this._getCombinedOpacityAndColor(Ue&&this._markerColor||this._materialColor);this._patternHidesLine&&!Ue&&($e[3]=0);const st={width:this._computeMaterialWidth(this.symbolLayer?.size),color:$e,hasPolygonOffset:!0,join:this.symbolLayer.join||"miter",cap:cr(this.symbolLayer.cap||"butt"),hasSlicePlane:this._context.slicePlaneEnabled,isClosed:Te,stipplePattern:(0,Ot.Dp)(this.symbolLayer.pattern),stippleScaleWithLineWidth:!0};return this._fastUpdates&&this._fastUpdates.visualVariables?{...st,...this._fastUpdates.materialParameters}:st}get _materialColor(){return(0,G.yw)(this.symbolLayer.material,Te=>Te.color)}get _markerColor(){return(0,G.yw)(this.symbolLayer.marker,Te=>Te.color)}get _lineMaterial(){return(0,G.Wi)(this._lineMaterialCached)&&(this._lineMaterialCached=new It.U(this._getMaterialParameters(!1)),this._context.stage.add(this._lineMaterialCached)),this._lineMaterialCached}get _ringMaterial(){return(0,G.Wi)(this._ringMaterialCached)&&(this._ringMaterialCached=new It.U(this._getMaterialParameters(!0)),this._context.stage.add(this._ringMaterialCached)),this._ringMaterialCached}get _wireframeLineMaterial(){return(0,G.Wi)(this._wireframeLineMaterialCached)&&(this._wireframeLineMaterialCached=new It.U({...this._getMaterialParameters(!1),wireframe:!0}),this._context.stage.add(this._wireframeLineMaterialCached)),this._wireframeLineMaterialCached}get _wireframeRingMaterial(){return(0,G.Wi)(this._wireframeRingMaterialCached)&&(this._wireframeRingMaterialCached=new It.U({...this._getMaterialParameters(!0),wireframe:!0}),this._context.stage.add(this._wireframeRingMaterialCached)),this._wireframeRingMaterialCached}get _markerMaterial(){return(0,G.Wi)(this._markerMaterialCached)&&(0,G.pC)(this.symbolLayer.marker)&&(0,G.pC)(this._markerTexture)&&(this._markerMaterialCached=new Na.X({...this._getMaterialParameters(!1,!0),placement:this.symbolLayer.marker.placement,textureId:this._markerTexture.texture.id}),this._context.stage.add(this._markerMaterialCached)),this._markerMaterialCached}destroy(){super.destroy(),this._forEachMaterial(Te=>this._context.stage.remove(Te)),this._lineMaterialCached=null,this._ringMaterialCached=null,this._wireframeLineMaterialCached=null,this._wireframeRingMaterialCached=null,this._markerMaterialCached=null,this._markerTexture=(0,G.RY)(this._markerTexture)}_getDrivenSize(Te){return this._drivenProperties.size&&Te.size?(0,ct.F2)((0,Ke.o2)(Te.size)):1}_getSizeFeatureAttributeData(Te){return this._fastUpdates.enabled&&this._fastUpdates.visualVariables.size?(0,Fe.d)(this._fastUpdates.visualVariables.size.field,Te):null}_getDrivenColor(Te){const Ue=(0,tr.f)(1,1,1,1);return this._drivenProperties.color&&Te.color&&(Ue[0]=Te.color[0],Ue[1]=Te.color[1],Ue[2]=Te.color[2],Te.color.length>0&&(Ue[3]=Te.color[3])),this._drivenProperties.opacity&&Te.opacity&&(Ue[3]=Te.opacity),Ue}_getColorFeatureAttributeData(Te){return this._fastUpdates.enabled&&this._fastUpdates.visualVariables.color?(0,Fe.d)(this._fastUpdates.visualVariables.color.field,Te):null}_getOpacityFeatureAttributeData(Te){return this._fastUpdates.enabled&&this._fastUpdates.visualVariables.opacity?(0,Fe.d)(this._fastUpdates.visualVariables.opacity.field,Te):null}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry,Xt,this.symbolLayer.type))return null;const $e=this.setGraphicElevationContext(Ue,new Be.o);return this.ensureDrapedStatus("on-the-ground"===$e.mode),this.draped?this._createAsOverlay(Te,this._context.layer.uid):this._createAs3DShape(Te,$e,Ue.uid)}applyRendererDiff(Te,Ue){for(const $e in Te.diff){if("visualVariables"!==$e||!yr(this._fastUpdates,Ue,this._vvConvertOptions))return Re.W.Recreate_Symbol;this._forEachMaterial(st=>st.setParameters(this._fastUpdates.materialParameters))}return Re.W.Fast_Update}prepareSymbolLayerPatch(Te){if("partial"!==Te.diff.type)return;const Ue=Te.diff.diff,$e={};"complete"===Ue.size?.type&&($e.width=this._computeMaterialWidth(Ue.size.newValue),delete Ue.size),"complete"===Ue.cap?.type&&($e.cap=cr((0,G.Pt)(Ue.cap.newValue,"butt")),delete Ue.cap);const st=this._prepareMarkerPatch(Te,Ue);this._prepareMaterialPatch(Te,Ue,st),Te.symbolLayerStatePatches.push(()=>this._forEachMaterial(ht=>ht.setParameters($e)))}layerOpacityChanged(){this._forEachMaterial((Te,Ue)=>this._updateMaterialLayerOpacity(Te,Ue))}_forEachMaterial(Te){(0,G.pC)(this._lineMaterialCached)&&Te(this._lineMaterialCached),(0,G.pC)(this._ringMaterialCached)&&Te(this._ringMaterialCached),(0,G.pC)(this._wireframeLineMaterialCached)&&Te(this._wireframeLineMaterialCached),(0,G.pC)(this._wireframeRingMaterialCached)&&Te(this._wireframeRingMaterialCached),(0,G.pC)(this._markerMaterialCached)&&Te(this._markerMaterialCached,!0)}_updateMaterialLayerOpacity(Te,Ue=!1){const $e=Te.parameters.color,st=(0,G.U2)(this.symbolLayer,"material","color"),ht=this._patternHidesLine&&!Ue?0:this._getCombinedOpacity(st),yt=(0,tr.f)($e[0],$e[1],$e[2],ht);Te.setParameters({color:yt})}layerElevationInfoChanged(Te,Ue,$e){const st=this._elevationContext.mode,ht=(0,Ce.GC)(ur.elevationModeChangeTypes,$e,st);if(ht!==Ce.lO.UPDATE)return ht;const yt=(0,Ce.Xf)(st);return this.updateGraphics3DGraphicElevationInfo(Te,Ue,()=>yt)}slicePlaneEnabledChanged(){const Te={hasSlicePlane:this._context.slicePlaneEnabled};return this._forEachMaterial(Ue=>Ue.setParameters(Te)),!0}physicalBasedRenderingChanged(){return!0}pixelRatioChanged(){return!0}_getGeometryAsPolygonOrPolyline(Te){switch(Te.type){case"extent":if(Te instanceof Le.Z)return te.Z.fromExtent(Te);break;case"polygon":case"polyline":return Te}return null}_createAs3DShape(Te,Ue,$e){const ht=this._getGeometryAsPolygonOrPolyline(Te.graphic.geometry),yt="polygon"===ht.type?ht.rings:ht.paths,Rt=new Array,Ut=new Array,er=new Array,vr=(0,oe.Ue)(),Pr=function Bn(ft,Te,Ue,$e){const st="polygon"===ft.type?et.ZI.CCW_IS_HOLE:et.ZI.NONE,ht="polygon"===ft.type?ft.rings:ft.paths,{position:yt,outlines:Rt}=(0,et.Mk)(ht,ft.hasZ,st),Ut=new Float64Array(yt.length),er=(0,Ce.rR)(yt,ft.spatialReference,0,Ut,0,yt,0,yt.length/3,Te,Ue,$e),vr=null!=er;return{lines:vr?Uo(Rt,yt,Ut):[],projectionSuccess:vr,sampledElevation:er}}(ht,this._context.elevationProvider,this._context.renderCoordsHelper,Ue);this._logGeometryCreationWarnings(Pr,yt,"polygon"===ht.type?"rings":"paths","LineSymbol3DLayer");for(let Es=0;Es{const fi=new en.z(Es,Rs,{layerUid:Ue,graphicUid:$e.uid});return er.push(fi),fi};if((0,G.pC)(Ut)){const Rs=si(Ut),fi=(0,G.Wg)(this.symbolLayer.marker).placement;"begin"!==fi&&"begin-end"!==fi||(0,oe.G1)(vr,Zr.position,0,1),"end"!==fi&&"begin-end"!==fi||(0,oe.G1)(vr,Zr.position,Zr.position.length-3,1),this._updateBoundingSphere(Rs,vr)}const ei=si(yt);if(this._updateBoundingSphere(ei,vr),rt.Z.LINE_WIREFRAMES){const Rs=si(Rt);this._updateBoundingSphere(Rs,vr)}}return new fs(this,er,Pr,this._context.drapeSourceRenderer)}_updateBoundingSphere(Te,Ue){(0,Kt.s)(Te.boundingSphere,.5*(Ue[0]+Ue[3]),.5*(Ue[1]+Ue[4]),0,.5*Math.sqrt((Ue[3]-Ue[0])*(Ue[3]-Ue[0])+(Ue[4]-Ue[1])*(Ue[4]-Ue[1])))}get _patternHidesLine(){const Te=this.symbolLayer.pattern;return(0,G.pC)(Te)&&"style"===Te.type&&"none"===Te.style}_computeMaterialWidth(Te){return Te=(0,G.Pt)(Te,(0,ct.Wz)(1)),this._drivenProperties.size?this._fastUpdates.enabled&&this._fastUpdates.visualVariables.size?(0,ct.F2)(1):1:(0,ct.F2)(Te)}_prepareMaterialPatch(Te,Ue,$e){const st=Ue.material;if((0,G.Wi)(st))return void($e.changed&&$e.useMaterialColor&&this._patchMaterialColor(this._getCombinedOpacityAndColor(this._materialColor),this._markerMaterialCached,Te));if("collection"===st.type)return;const ht="complete"===st.type?(0,G.yw)(st.newValue,Rt=>Rt.color):"complete"===st.diff.color.type?st.diff.color.newValue:null,yt=this._getCombinedOpacityAndColor(ht);$e.useMaterialColor&&this._patchMaterialColor((0,tr.d)(yt),this._markerMaterialCached,Te),this._patternHidesLine&&(yt[3]=0),this._patchMaterialColor(yt,this._lineMaterialCached,Te),delete Ue.material}_prepareMarkerPatch(Te,Ue){const $e=Ue.marker;if((0,G.Wi)($e)||"partial"!==$e.type||(0,G.pC)($e.diff.style)||(0,G.pC)($e.diff.placement)||(0,G.pC)($e.diff.color)&&"complete"!==$e.diff.color.type)return{changed:!1,useMaterialColor:(0,G.Wi)(this._markerColor)};const st=$e.diff.color;if((0,G.Wi)(st))return delete Ue.marker,{changed:!1,useMaterialColor:(0,G.Wi)(this._markerColor)};const ht=(0,G.Wg)(st.newValue);return(0,G.Wi)(ht)?(delete Ue.marker,{changed:!0,useMaterialColor:!0}):(this._patchMaterialColor(this._getCombinedOpacityAndColor(ht),this._markerMaterialCached,Te),delete Ue.marker,{changed:!0,useMaterialColor:!1})}_patchMaterialColor(Te,Ue,$e){(0,G.Wi)(Ue)||$e.symbolLayerStatePatches.push(()=>Ue.setParameters({color:Te}))}}var Er;ur.elevationModeChangeTypes={definedChanged:Ce.lO.RECREATE,staysOnTheGround:Ce.lO.NONE,onTheGroundChanged:Ce.lO.RECREATE},function(ft){ft[ft.DRAPED=0]="DRAPED",ft[ft.ELEVATED=1]="ELEVATED"}(Er||(Er={}));var Mr=v(61751),Nr=v(27530),ts=v(65231),es=v(98496),hs=v(9044),Ks=v(37187),ri=v(49580),Ci=v(67969);const Qn=["mesh"],oa=(0,X.c)(),on=(0,X.c)(),pl=(0,X.c)(),Wa=(0,X.c)(),Vo=(0,X.c)(),w0=(0,ye.c)(),Cu=(0,be.c)(),eh=(0,oe.Ue)(),Jf=[new Mr.Z];var vo;!function(ft){ft[ft.NONE=0]="NONE",ft[ft.ECEF=1]="ECEF"}(vo||(vo={}));var ac=v(48521),I0=v(43652),Qb=v(7167);class qb{constructor(Te,Ue,$e,st){this.graphics3DSymbolLayer=Te,this.instanceIndex=Ue,this.elevationAligner=$e,this.elevationContext=st,this.type="lod-instance",this._highlights=new Set,this.alignedSampledElevation=0,this.isElevationSource=!1,this.needsElevationUpdates=!1}initialize(){}setVisibility(Te){const Ue=this._lodRenderer.instanceData;Te!==Ue.getVisible(this.instanceIndex)&&Ue.setVisible(this.instanceIndex,Te)}destroy(){null!=this.instanceIndex&&(this._lodRenderer.instanceData.removeInstance(this.instanceIndex),this.graphics3DSymbolLayer.notifyDestroyGraphicLayer(this))}alignWithElevation(Te,Ue,$e){if(this.elevationAligner){(0,Y.aO)(this.elevationContext.featureExpressionInfoContext,$e);const st=this.elevationAligner(this,this.elevationContext,Te,Ue);(0,G.pC)(st)&&(this.alignedSampledElevation=st)}}getCenterObjectSpace(Te=(0,X.c)()){return this._lodRenderer.instanceData.getCombinedLocalTransform(this.instanceIndex,fl),(0,H.m)(Te,this._lodRenderer.baseBoundingSphere.center,fl)}getBoundingBoxObjectSpace(Te=(0,oe.Ue)()){this._lodRenderer.instanceData.getCombinedLocalTransform(this.instanceIndex,fl);const Ue=this._lodRenderer.baseBoundingBox;(0,oe.cS)(Te);for(let $e=0;$e<8;++$e)(0,H.s)(_l,0==(1&$e)?Ue[0]:Ue[3],0==(2&$e)?Ue[1]:Ue[4],0==(4&$e)?Ue[2]:Ue[5]),(0,H.m)(_l,_l,fl),(0,oe.pp)(Te,_l);return Te}computeAttachmentOrigin(Te){this._lodRenderer.instanceData.getGlobalTransform(this.instanceIndex,fl),Te.render.origin[0]+=fl[12],Te.render.origin[1]+=fl[13],Te.render.origin[2]+=fl[14],Te.render.num++}getProjectedBoundingBox(Te,Ue,$e,st,ht){var yt=this;return(0,D.Z)(function*(){const Rt=yt.getBoundingBoxObjectSpace(ht),Ut=Ny,er=(0,oe.wp)(Rt)?1:Ut.length;yt._lodRenderer.instanceData.getGlobalTransform(yt.instanceIndex,fl);for(let Pr=0;Pr{this._removeHighlightId(st)},$e)}}removeObjectState(Te){this._highlights.forEach(Ue=>Te.remove(Ue))}_addHighlightId(Te){this._highlights.add(Te),this._lodRenderer.instanceData.setHighlight(this.instanceIndex,!0)}_removeHighlightId(Te){this._highlights.delete(Te),this._lodRenderer.instanceData.setHighlight(this.instanceIndex,this._highlights.size>0)}get _lodRenderer(){return this.graphics3DSymbolLayer.lodRenderer}}const aa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_l=(0,X.c)(),up=(0,X.c)(),Ny=[[0,1,2],[3,1,2],[0,4,2],[3,4,2],[0,1,5],[3,1,5],[0,4,5],[3,4,5]],fl=(0,ye.c)();var dp=v(87930),wc=v(47526);const sC=.05;var Cn,iC=v(34062),L0=v(56244),U0=v(97161),Qf=v(4511),Hi=v(13934),th=v(59856),rh=v(39114),lc=v(67857),rd=v(82274),zo=v(5894),Bo=v(2282),nC=v(61885),Vy=v(98943),qf=v(19625);!function(ft){ft[ft.ALLOCATED=1]="ALLOCATED",ft[ft.DEFAULT_ACTIVE=2]="DEFAULT_ACTIVE",ft[ft.VISIBLE=4]="VISIBLE",ft[ft.HIGHLIGHT=8]="HIGHLIGHT",ft[ft.HIGHLIGHT_ACTIVE=16]="HIGHLIGHT_ACTIVE",ft[ft.REMOVE=32]="REMOVE",ft[ft.TRANSFORM_CHANGED=64]="TRANSFORM_CHANGED",ft[ft.ACTIVE=18]="ACTIVE"}(Cn||(Cn={}));class aC{constructor(Te){this.localTransform=Te.getField(Pe.T.LOCALTRANSFORM,ve.O1),this.globalTransform=Te.getField(Pe.T.GLOBALTRANSFORM,ve.O1),this.modelOrigin=Te.getField(Pe.T.MODELORIGIN,ve.fP),this.model=Te.getField(Pe.T.MODEL,ve.gK),this.modelNormal=Te.getField(Pe.T.MODELNORMAL,ve.gK),this.modelScaleFactors=Te.getField(Pe.T.MODELSCALEFACTORS,ve.Eu),this.boundingSphere=Te.getField(Pe.T.BOUNDINGSPHERE,ve.Cd),this.color=Te.getField(Pe.T.COLOR,ve.ek),this.featureAttribute=Te.getField(Pe.T.FEATUREATTRIBUTE,ve.ek),this.state=Te.getField(Pe.T.STATE,ve.D_),this.lodLevel=Te.getField(Pe.T.LODLEVEL,ve.D_),this.objectAndLayerIdColor=Te.getField(Pe.T.OBJECTANDLAYERIDCOLOR,ve.mc)}}class zy extends nC.Z{constructor(Te,Ue){super(),this._capacity=0,this._size=0,this._next=0,this._buffer=null,this._view=null,this._layout=function oC(ft){let Te=(0,qf.U$)().mat4f64(Pe.T.LOCALTRANSFORM).mat4f64(Pe.T.GLOBALTRANSFORM).vec4f64(Pe.T.BOUNDINGSPHERE).vec3f64(Pe.T.MODELORIGIN).mat3f(Pe.T.MODEL).mat3f(Pe.T.MODELNORMAL).vec2f(Pe.T.MODELSCALEFACTORS);return ft.includes("color")&&(Te=Te.vec4f(Pe.T.COLOR)),ft.includes("featureAttribute")&&(Te=Te.vec4f(Pe.T.FEATUREATTRIBUTE)),Te=Te.u8(Pe.T.STATE).u8(Pe.T.LODLEVEL),ft.includes(Pe.T.OBJECTANDLAYERIDCOLOR)&&(Te=Te.vec4u8(Pe.T.OBJECTANDLAYERIDCOLOR)),Te.alignTo(8),Te}(Te),this._shaderTransformation=Ue}get capacity(){return this._capacity}get size(){return this._size}get buffer(){return this._buffer.buffer}get view(){return this._view}addInstance(){this._size+1>this._capacity&&this._grow();const Te=this._findSlot();return this._view.state.set(Te,Cn.ALLOCATED),this._size++,this.emit("instance-added",{index:Te}),Te}removeInstance(Te){(0,Bo.hu)(Te>=0&&Te=0&&Te(0,Gy.w)(this._instanceData.view.boundingSphere.getVec($e,this._tmpSphere)),{maximumDepth:25}),this._tmpSphere=(0,Gy.c)(),this._tmpMat4=(0,ye.c)(),this._instanceData=Te,this._boundingSphere=Ue}addInstance(Te){const Ue=this._instanceData.view.boundingSphere,$e=this._instanceData.getCombinedModelTransform(Te,this._tmpMat4);(0,H.m)(this._tmpSphere,this._boundingSphere.center,$e),this._tmpSphere[3]=this._boundingSphere.radius*(0,Vy.u1)($e),Ue.setVec(Te,this._tmpSphere),this.add([Te])}removeInstance(Te){this.remove([Te])}}class Qa{constructor(Te,Ue){this.thresholdScale=1,this._camera=new th.V,this._worldSpaceRadius=Te,this._thresholds=Ue.map($e=>$e)}updateCamera(Te){this._camera.copyFrom(Te)}selectLevel(Te,Ue){const $e=this._camera.computeScreenPixelSizeAt(Te),st=this._worldSpaceRadius*Ue/$e,ht=this._thresholds;let yt=-1;for(let Rt=0;Rt=ht[Rt]*this.thresholdScale&&(yt=Rt);return yt}}var Ky=v(32393),uC=v(62483),Zy=v(15197),hp=v(83994);class sd{constructor(Te,Ue){const $e=Te.renderContext.rctx,{geometry:st,material:ht}=Ue;this._materialRepository=Te.materialRep,ht.setParameters({instancedDoublePrecision:!0});const yt=ht.createBufferWriter(),Rt=yt.vertexBufferLayout,Ut=yt.elementCount(st),er=yt.allocate(Ut);yt.write(null,null,st,er,0),this.geometry=st,this.material=ht,this.glMaterials=new Ky.p(ht,this._materialRepository),this.vertexBufferLayout=Rt,this.vbo=hp.f.createVertex($e,Ci.l1.STATIC_DRAW,er.buffer),this.vao=new Zy.U($e,rh.i,{geometry:(0,Qf.K)(Rt)},{geometry:this.vbo}),this.vertexCount=Ut}destroy(){this.glMaterials.destroy(),this.vbo.dispose(),this.vao.dispose()}get boundingInfo(){return this.geometry.boundingInfo}get triangleCount(){return this.vertexCount/3}intersect(Te,Ue,$e,st,ht,yt,Rt,Ut){const er=this.geometry.id;this.material.intersect(this.geometry,null,Te.transform.transform,Te,$e,st,(vr,Pr,Ur,qr,Zr)=>{if(vr>=0){if(null!=Ue&&!Ue(Te.rayBegin,Te.rayEnd,vr))return;const Es={layerUid:yt.layerUid,graphicUid:yt.graphicUid(ht),geometryId:er,triangleNr:Ur,baseBoundingSphere:Rt,numLodLevels:Ut};if((null==Te.results.min.drapedLayerOrder||Zr>=Te.results.min.drapedLayerOrder)&&(null==Te.results.min.dist||vr=Te.results.max.drapedLayerOrder)&&(null==Te.results.max.dist||vr>Te.results.max.dist)&&Te.results.max.set(lc.q7.LOD,Es,vr,Pr,Te.transform.transform,Zr),Te.options.store===lc.eC.ALL){const si=(0,uC.LP)(Te.results.min.ray);si.set(lc.q7.LOD,Es,vr,Pr,Te.transform.transform,Zr),Te.results.all.push(si)}}})}}class Qc{constructor(Te,Ue){this.minScreenSpaceRadius=Te,this.components=Ue}static create(Te,Ue,$e){return(0,D.Z)(function*(){const st=yield Promise.allSettled(Ue.components.map(yt=>Te.schedule(()=>new sd(Te,yt),$e))),ht=st.map(yt=>"fulfilled"===yt.status?yt.value:null).filter(yt=>yt);if((0,Z.Hc)($e)||ht.length!==st.length){ht.forEach(yt=>yt.destroy()),(0,Z.k_)($e);for(const yt of st)if("rejected"===yt.status)throw yt.reason}return new Qc(Ue.minScreenSpaceRadius,ht)})()}destroy(){this.components.forEach(Te=>Te.destroy())}intersect(Te,Ue,$e,st,ht,yt,Rt){this.components.forEach(Ut=>Ut.intersect(Te,Ue,$e,st,ht,yt,this.boundingSphere,Rt))}get boundingBox(){if((0,G.Wi)(this._boundingBox)){const Te=(0,oe.cS)();this.components.forEach(Ue=>{(0,G.pC)(Ue.boundingInfo)&&((0,oe.pp)(Te,Ue.boundingInfo.bbMin),(0,oe.pp)(Te,Ue.boundingInfo.bbMax))}),this._boundingBox=Te}return this._boundingBox}get boundingSphere(){if((0,G.Wi)(this._boundingSphere)){const Te=this.boundingBox,Ue=(0,X.c)();(0,oe.be)(Te,Ue),this._boundingSphere={center:Ue,radius:.5*(0,oe.wz)(Te)}}return this._boundingSphere}get triangleCount(){return this.components.reduce((Te,Ue)=>Te+Ue.triangleCount,0)}}class $y{constructor(Te,Ue,$e){this._elementSize=Ue,this._buffer=hp.f.createVertex(Te,Ci.l1.STATIC_DRAW),this.resize($e)}destroy(){this._buffer.dispose()}get elementSize(){return this._elementSize}get capacity(){return this._capacity}get array(){return this._array}get buffer(){return this._buffer}get memoryUsage(){return{cpu:this._capacity*this._elementSize,gpu:this._capacity*this._elementSize}}copyRange(Te,Ue,$e,st=0){const ht=new Uint8Array(this.array,Te*this.elementSize,(Ue-Te)*this.elementSize);new Uint8Array($e.array,st*this.elementSize).set(ht)}transferAll(){this._buffer.setData(this._array)}transferRange(Te,Ue){const $e=Te*this._elementSize,st=Ue*this._elementSize;this._buffer.setSubData(new Uint8Array(this._array),$e,$e,st)}resize(Te){const Ue=Te*this._elementSize,$e=new ArrayBuffer(Ue);this._array&&(Te>=this._capacity?new Uint8Array($e).set(new Uint8Array(this._array)):new Uint8Array($e).set(new Uint8Array(this._array).subarray(0,Te*this._elementSize))),this._array=$e,this._buffer.setSize(Ue),this._capacity=Te}}class Yy{constructor(Te){this.modelOriginHi=Te.getField(Pe.T.MODELORIGINHI,ve.ct),this.modelOriginLo=Te.getField(Pe.T.MODELORIGINLO,ve.ct),this.model=Te.getField(Pe.T.MODEL,ve.gK),this.modelNormal=Te.getField(Pe.T.MODELNORMAL,ve.gK),this.color=Te.getField(Pe.T.INSTANCECOLOR,ve.ek),this.featureAttribute=Te.getField(Pe.T.INSTANCEFEATUREATTRIBUTE,ve.ek),this.objectAndLayerIdColor=Te.getField(Pe.T.OBJECTANDLAYERIDCOLOR_INSTANCED,ve.mc)}}class Xy{constructor(Te,Ue){this._headIndex=0,this._tailIndex=0,this._firstIndex=null,this._captureFirstIndex=!0,this._updating=!1,this._prevHeadIndex=0,this._resized=!1,this._rctx=Te,this._instanceBufferLayout=Ue,this._elementSize=Ue.stride,this._capacity=1}destroy(){this._buffer&&this._buffer.destroy()}get buffer(){return this._buffer.buffer}get view(){return this._view}get capacity(){return this._capacity}get size(){const Te=this._headIndex,Ue=this._tailIndex;return Te>=Ue?Te-Ue:Te+this._capacity-Ue}get isEmpty(){return this._headIndex===this._tailIndex}get isFull(){return this._tailIndex===(this._headIndex+1)%this._capacity}get headIndex(){return this._headIndex}get tailIndex(){return this._tailIndex}get firstIndex(){return this._firstIndex}get memoryUsage(){return this._buffer?this._buffer.memoryUsage:{cpu:0,gpu:0}}reset(){this._headIndex=0,this._tailIndex=0,this._firstIndex=null}startUpdateCylce(){this._captureFirstIndex=!0}beginUpdate(){(0,Bo.hu)(!this._updating,"already updating"),this._updating=!0,this._prevHeadIndex=this._headIndex}endUpdate(){(0,Bo.hu)(this._updating,"not updating"),this.size0,"invalid size");const Te=this._tailIndex===this._firstIndex;this._incrementTail(),Te&&(this._firstIndex=this._tailIndex)}_grow(){const Te=Math.max(Fl,Math.floor(this._capacity*ky));this._resize(Te)}_shrink(){const Te=Math.max(Fl,Math.floor(this._capacity*tm));this._resize(Te)}_resize(Te){if((0,Bo.hu)(this._updating,"not updating"),Te===this._capacity)return;const Ue=new $y(this._rctx,this._elementSize,Te);if(this._buffer){this._firstIndex&&(this._firstIndex=(this._firstIndex+this._capacity-this._tailIndex)%this._capacity);const $e=this.size,st=this._compactInstances(Ue);(0,Bo.hu)(st===$e,"invalid compaction"),this._buffer.destroy(),this._tailIndex=0,this._headIndex=st,this._prevHeadIndex=0}this._resized=!0,this._capacity=Te,this._buffer=Ue,this._view=new Yy(this._instanceBufferLayout.createView(this._buffer.array))}_compactInstances(Te){const Ue=this._headIndex,$e=this._tailIndex;return $eUe?(this._buffer.copyRange($e,this._capacity,Te),Ue>0&&this._buffer.copyRange(0,Ue,Te,this._capacity-$e),Ue+(this._capacity-$e)):0}_incrementHead(Te=1){this._headIndex=(this._headIndex+Te)%this._capacity}_incrementTail(Te=1){this._tailIndex=(this._tailIndex+Te)%this._capacity}_transferRange(Te,Ue){TeUe&&(Ue>0&&this._buffer.transferRange(0,Ue),this._buffer.transferRange(Te,this._capacity))}}const Fl=1024,ky=2,j0=.3,tm=.5;var pp=v(57623),dC=v(65073),hC=v(39711),F0=v(26906);class pC{constructor(Te,Ue,$e,st){this.type=lc.q7.LOD,this.isGround=!1,this._levels=[],this._defaultRenderInstanceData=[],this._highlightRenderInstanceData=[],this._instanceIndex=0,this._slicePlane=!1,this._lastCamera=new th.V,this._updateCyclesWithStaticCamera=-1,this._needFullCycle=!1,this.slots=[zo.r.OPAQUE_MATERIAL,zo.r.TRANSPARENT_MATERIAL],this.canRender=!0,this._symbol=Te,this._optionalFields=Ue,this._metadata=$e,this._instanceBufferLayout=(0,Wt.RL)({instancedDoublePrecision:!0,instanced:Ue}),this._glInstanceBufferLayout=(0,Qf.K)(this._instanceBufferLayout,1),this._instanceData=new zy(this._optionalFields,st),this._instanceData.on("instance-added",()=>this._requestUpdateCycle()),this._instanceData.on("instance-removed",()=>this._requestUpdateCycle()),this._instanceData.on("instance-transform-changed",ht=>{this._requestUpdateCycle(),this._metadata.notifyGraphicGeometryChanged(ht.index)}),this._instanceData.on("instance-visibility-changed",ht=>{this._requestUpdateCycle(!0),this._metadata.notifyGraphicVisibilityChanged(ht.index)}),this._instanceData.on("instance-highlight-changed",()=>this._requestUpdateCycle(!0)),this._enableLevelSelection=this._symbol.levels.length>1}get levels(){return this._levels}get baseBoundingBox(){return this._levels[this._levels.length-1].boundingBox}get baseBoundingSphere(){return this._levels[this._levels.length-1].boundingSphere}get baseMaterial(){return this._levels[this._levels.length-1].components[0].material}get slicePlaneEnabled(){return this._slicePlane}set slicePlaneEnabled(Te){this._slicePlane=Te}get layerUid(){return this._metadata.layerUid}get instanceData(){return this._instanceData}get memoryUsage(){const Te={cpu:0,gpu:0};return this._defaultRenderInstanceData.forEach(Ue=>{const $e=Ue.memoryUsage;Te.cpu+=$e.cpu,Te.gpu+=$e.gpu}),this._highlightRenderInstanceData.forEach(Ue=>{const $e=Ue.memoryUsage;Te.cpu+=$e.cpu,Te.gpu+=$e.gpu}),Te}get renderStats(){const Te=this._instanceData.size,Ue=[];return this._levels.forEach(($e,st)=>{const Rt=this._defaultRenderInstanceData[st].size+this._highlightRenderInstanceData[st].size,Ut=$e.triangleCount;Ue.push({renderedInstances:Rt,renderedTriangles:Rt*Ut,trianglesPerInstance:Ut})}),{totalInstances:Te,renderedInstances:Ue.reduce(($e,st)=>$e+st.renderedInstances,0),renderedTriangles:Ue.reduce(($e,st)=>$e+st.renderedTriangles,0),levels:Ue}}initializeRenderContext(Te,Ue){var $e=this;return(0,D.Z)(function*(){$e._context=Te;const st=Te.renderContext.rctx,ht=yield Promise.allSettled($e._symbol.levels.map(Rt=>($e._defaultRenderInstanceData.push(new Xy(st,$e._instanceBufferLayout)),$e._highlightRenderInstanceData.push(new Xy(st,$e._instanceBufferLayout)),Qc.create(Te,Rt,Ue)))),yt=ht.map(Rt=>"fulfilled"===Rt.status?Rt.value:null).filter(Rt=>Rt);if((0,Z.Hc)(Ue)||yt.length!==ht.length){yt.forEach(Rt=>Rt.destroy()),(0,Z.k_)(Ue);for(const Rt of ht)if("rejected"===Rt.status)throw Rt.reason}$e._levels=yt,$e._levelSelector=(ft=>{const Te=ft.baseBoundingSphere.radius,Ue=ft.levels.map($e=>$e.minScreenSpaceRadius);return new Qa(Te,Ue)})($e)})()}uninitializeRenderContext(){this._invalidateOctree(),this._levels.forEach(Te=>Te.destroy()),this._defaultRenderInstanceData.forEach(Te=>Te.destroy()),this._highlightRenderInstanceData.forEach(Te=>Te.destroy())}get needsTransparentPass(){return this._levels.some(Te=>Te.components.some(Ue=>Ue.material.requiresSlot(zo.r.TRANSPARENT_MATERIAL,Hi.H.Color)))}get needsHighlight(){return this._highlightRenderInstanceData.some(Te=>Te.size>0)}prepareRender(Te){if(rt.Z.LOD_INSTANCE_RENDERER_DISABLE_UPDATES)return;if(this._enableLevelSelection){const $e=Te.bindParameters.contentCamera.equals(this._lastCamera);this._lastCamera.copyFrom(Te.bindParameters.contentCamera),$e||this._requestUpdateCycle()}const Ue=this._needFullCycle?this._instanceData.size:2e3;this._needFullCycle=!1,this._updateInstances(Te.bindParameters.contentCamera,Ue),this._needsUpdates&&this._context.requestRender()}render(Te){!this.baseMaterial.isVisible()||!this.baseMaterial.isVisibleForOutput(Te.output)||(Te.rctx.bindVAO(),Te.output!==Hi.H.Highlight&&Te.output!==Hi.H.ShadowHighlight&&this._renderComponents(Te,this._defaultRenderInstanceData),Te.output!==Hi.H.ShadowExludeHighlight&&this._renderComponents(Te,this._highlightRenderInstanceData))}intersect(Te,Ue,$e,st){if(!this.baseMaterial.isVisible())return;const ht=(0,X.c)();(0,H.b)(ht,st,$e);const yt=Rt=>{this._instanceData.getCombinedModelTransform(Rt,sm),Te.transform.set(sm),(0,H.m)(mC,$e,Te.transform.inverse),(0,H.m)(gC,st,Te.transform.inverse);const Ut=this._instanceData.getState(Rt),er=this._instanceData.getLodLevel(Rt),vr=this._levels.length;(0,Bo.hu)(Ut&Cn.ACTIVE,"invalid instance state"),(0,Bo.hu)(er>=0&&er0&&this._updateCyclesWithStaticCamera<1}get _octree(){return(0,G.Wi)(this._octreeCached)&&(this._octreeCached=this._buildOctree()),this._octreeCached}_invalidateOctree(){this._octreeCached=(0,G.SC)(this._octreeCached)}_buildOctree(){const Te=new B0(this._instanceData,this.baseBoundingSphere),Ue=this._instanceData,$e=Ue.view?Ue.view.state:null;for(let st=0;st{Te.startUpdateCylce()}),this._highlightRenderInstanceData.forEach(Te=>{Te.startUpdateCylce()}),this._needsUpdates&&this._context.requestRender()}_updateInstances(Te,Ue){const $e=this._enableLevelSelection,st=this._levelSelector;st.updateCamera(Te),this._defaultRenderInstanceData.forEach(vr=>vr.beginUpdate()),this._highlightRenderInstanceData.forEach(vr=>vr.beginUpdate());const ht=this._instanceData,yt=this._instanceData.view,Ut=ht.capacity;let er=this._instanceIndex;Ue=Math.min(ht.size,Ue);for(let vr=0;vr=0&&(Pr&Cn.HIGHLIGHT?(_C(this._highlightRenderInstanceData[Zr],yt,er),Ur|=Cn.HIGHLIGHT_ACTIVE):(_C(this._defaultRenderInstanceData[Zr],yt,er),Ur|=Cn.DEFAULT_ACTIVE)),yt.state.set(er,Ur),yt.lodLevel.set(er,Zr)}else Ur=Pr&~(Cn.ACTIVE|Cn.TRANSFORM_CHANGED),yt.state.set(er,Ur);if((0,G.pC)(this._octreeCached)){const Zr=!!(Pr&Cn.ACTIVE),Es=!!(Ur&Cn.ACTIVE);!Zr&&Es?this._octreeCached.addInstance(er):Zr&&!Es?this._octreeCached.removeInstance(er):Zr&&Es&&Pr&Cn.TRANSFORM_CHANGED&&(this._octreeCached.removeInstance(er),this._octreeCached.addInstance(er))}er=er+1===Ut?0:er+1}this._instanceIndex=er,this._defaultRenderInstanceData.forEach(vr=>vr.endUpdate()),this._highlightRenderInstanceData.forEach(vr=>vr.endUpdate())}_renderComponents(Te,Ue){this.levels.forEach(($e,st)=>{$e.components.forEach(ht=>{this._renderComponent(Te,Ue[st],ht,st)})})}_renderComponent(Te,Ue,$e,st){const{bindParameters:ht,rctx:yt,output:Rt}=Te;if(0===Ue.size||!$e.material.requiresSlot(ht.slot,Te.output))return;const Ut=$e.glMaterials.load(yt,ht.slot,Rt);if((0,G.Wi)(Ut))return;const er=Ut.beginSlot(ht),vr=yt.bindTechnique(er,$e.material.parameters,ht);yt.bindVAO($e.vao),er.ensureAttributeLocations($e.vao),vr.bindDraw(im,ht,$e.material.parameters),rt.Z.LOD_INSTANCE_RENDERER_COLORIZE_BY_LEVEL&&Te.output===Hi.H.Color&&(vr.setUniform4fv("externalColor",N0[Math.min(st,N0.length-1)]),vr.setUniform1i("colorMixMode",pp.FZ.replace));const Pr=yt.capabilities.instancing,Ur=Ue.capacity,qr=Ue.headIndex,Zr=Ue.tailIndex,Es=Ue.firstIndex,si=this._glInstanceBufferLayout,ei=(Rs,fi)=>{(0,F0.XP)(yt,rh.i,Ue.buffer,si,Rs),Pr.drawArraysInstanced(er.primitiveType,0,$e.vertexCount,fi-Rs),(0,F0.UF)(yt,rh.i,Ue.buffer,si)};$e.material.parameters.transparent&&null!=Es?qr>Zr?((0,Bo.hu)(Es>=Zr&&Es<=qr,"invalid firstIndex"),ei(Es,qr),ei(Zr,Es)):qr=0&&Es<=qr,"invalid firstIndex"),ei(Es,qr),ei(Zr,Ur),ei(0,Es)):((0,Bo.hu)(Es>=Zr&&Es<=Ur,"invalid firstIndex"),ei(Es,Ur),ei(0,qr),ei(Zr,Es))):qr>Zr?ei(Zr,qr):qr0){const $e=(0,Ar.b_)(Math.cos(.5*this.rotationAngle));om(this.miterStretch,$e-1+1,0,0,1)}const Ue=Math.PI-this.rotationAngle;this.maxStretchDistance=Math.abs(Math.min(this.vLeftLength,this.vRightLength)/Math.cos(.5*Ue))}}class _p{constructor(){this.vertices=[],this.vertexIndices=[],this.vertexNormals=[],this.poles=[],this.poleIndices=[],this.uvs=null,this.uvIndices=null}addVertex(Te,Ue){return this.vertices.push((0,B.d)(Te)),this.vertexNormals.push((0,B.d)(Ue)),this.vertices.length-1}addUV(Te){return this.uvs||(this.uvs=[],this.uvIndices=[]),this.uvs.push(Te),this.uvs.length-1}addPole(Te,Ue=null){return this.poles.push({position:(0,B.d)(Te),normal:Ue?(0,B.d)(Ue):null}),this.poles.length-1}addSegment(Te,Ue=null,$e=null){this.vertexIndices.push(Te.v0),this.vertexIndices.push(Te.v1),Ue&&(this.uvIndices.push(Ue.v0),this.uvIndices.push(Ue.v1)),$e&&(this.poleIndices.push($e.v0),this.poleIndices.push($e.v1))}get numSegments(){return this.vertexIndices.length/2}hasUV(){return null!=this.uvs}translate(Te,Ue){for(const $e of this.vertices)$e[0]+=Te,$e[1]+=Ue;for(const $e of this.poles)$e.position[0]+=Te,$e.position[1]+=Ue}static circle(Te=20){const $e=new _p,st={v0:0,v1:0};$e.addPole((0,B.f)(0,0));for(let Rt=0;Rt=this.cutoffAngle)for(let ht=0;ht=0?$e(Te.index,st,Ue.vertices[yt],Ue.vertexNormals[yt],!1):((0,W.q)(id,Ue.vertices[yt],Te.miterStretch),$e(Te.index,Te.frame,id,Ue.vertexNormals[yt],!0))}else for(let ht=0;ht=0;(0,W.q)(id,Ue.vertices[yt],Te.miterStretch),$e(Te.index,Te.frame,id,Ue.vertexNormals[yt],!Rt)}}}const JC={generateUV:!1};class cm{rebuildConnectingProfileGeometry(Te,Ue,$e){for(let st=0;stthis.emitVertex($e,st,ht,yt,Rt),Ue=($e,st,ht,yt,Rt,Ut)=>this.emitCapVertex($e,st,ht,yt,Rt,Ut);this._extrusionVertexCount=0;for(const $e of this.path.vertices)this.originData[3*$e.index+0]=$e.pos[0],this.originData[3*$e.index+1]=$e.pos[1],this.originData[3*$e.index+2]=$e.pos[2];this.startCap.rebuildConnectingProfileGeometry(this.path.vertices[0],this.profile,Ue);for(let $e=1;$ethis.emitTriangle(yt,Rt,Ut);this.startCap.buildTopology(this.path.vertices[0],ht),this.endCap.buildTopology(this.path.vertices[this.path.vertices.length-1],ht)}onPathChanged(){this._rebuildGeometry()}}class Ic{constructor(Te){this.builder=Te}get xform(){return this.builder.path.xform}onPathChanged(){this.builder.onPathChanged()}}class QC extends Ic{constructor(Te){super(Te),this.vertexAttributePosition=null,this.vertexAttributeNormal=null,this.vertexAttributeColor=null,this.vertexAttributePosition=new Float32Array(3*this.builder.numVerticesTotal),this.vertexAttributeNormal=new Float32Array(3*this.builder.numNormalsTotal),this.vertexAttributeColor=new Uint8Array(4),this.vertexAttributeColor[0]=255,this.vertexAttributeColor[1]=255,this.vertexAttributeColor[2]=255,this.vertexAttributeColor[3]=255}bakeVertexColors(Te){this.vertexAttributeColor[0]=255*Te[0],this.vertexAttributeColor[1]=255*Te[1],this.vertexAttributeColor[2]=255*Te[2],this.vertexAttributeColor[3]=255*(Te.length>3?Te[3]:1)}bake(Te){this.size=Te;for(let Ue=0;Ueei){(0,W.s)(si,-Es[1],Es[0]);const fi=(0,W.h)(Ut,si);(0,W.b)(Es,Es,ei*Math.sign(Rs)),(0,W.b)(si,si,fi),(0,W.j)(Ut,Es,si)}(0,H.s)(er,0,0,0)}(0,H.s)(Rt,vr[0]*Ut[0]+Pr[0]*Ut[1],vr[1]*Ut[0]+Pr[1]*Ut[1],vr[2]*Ut[0]+Pr[2]*Ut[1]),this.vertexAttributePosition[3*Ue+0]=ht[0]+Rt[0]+er[0]*Ur,this.vertexAttributePosition[3*Ue+1]=ht[1]+Rt[1]+er[1]*Ur,this.vertexAttributePosition[3*Ue+2]=ht[2]+Rt[2]+er[2]*Ur;const Zr=id;(0,W.s)(Zr,this.builder.profileVertexAndNormalData[yt+2],this.builder.profileVertexAndNormalData[yt+3]),this.vertexAttributeNormal[3*Ue+0]=vr[0]*Zr[0]+Pr[0]*Zr[1]+er[0]*qr,this.vertexAttributeNormal[3*Ue+1]=vr[1]*Zr[0]+Pr[1]*Zr[1]+er[1]*qr,this.vertexAttributeNormal[3*Ue+2]=vr[2]*Zr[0]+Pr[2]*Zr[1]+er[2]*qr}}createGeometryData(){const Te=[[Pe.T.POSITION,this.builder.vertexIndices],[Pe.T.NORMAL,this.builder.normalIndices]],Ue=[[Pe.T.POSITION,{size:3,data:this.vertexAttributePosition,exclusive:!0}],[Pe.T.NORMAL,{size:3,data:this.vertexAttributeNormal,exclusive:!0}]];return this.vertexAttributeColor&&(Te.push([Pe.T.COLOR,new Array(this.builder.vertexIndices.length).fill(0)]),Ue.push([Pe.T.COLOR,{size:4,data:this.vertexAttributeColor}])),{vertexAttributes:Ue,indices:Te}}onPathChanged(){super.onPathChanged(),this.bake(this.size)}intersect(Te,Ue,$e){const st=this.builder.vertexIndices;(0,pp.CN)(Te,Ue,0,st.length/3,st,{size:3,data:this.vertexAttributePosition},void 0,void 0,$e)}}class Bx extends Ic{constructor(Te,Ue,$e,st){super(Te),this.sizeAttributeValue=Ue,this.colorAttributeValue=$e,this.opacityAttributeValue=st,this.vvData=null,this.baked=new QC(Te),this.vvData=new Float32Array(4*this.builder.path.vertices.length);for(let ht=0;htv.e(3478).then(v.bind(v,93478)));class jo extends hv.W{constructor(){super(...arguments),this.output=Hi.H.Color,this.doubleSidedMode=nd.q.None,this.transparencyPassType=Uc.A.NONE,this.spherical=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.vvSize=!1,this.vvColor=!1,this.vvOpacity=!1,this.hasSlicePlane=!1,this.transparent=!1,this.hasOccludees=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1,this.doublePrecisionRequiresObfuscation=!1}}(0,fn._)([(0,ki.o)({count:Hi.H.COUNT})],jo.prototype,"output",void 0),(0,fn._)([(0,ki.o)({count:nd.q.COUNT})],jo.prototype,"doubleSidedMode",void 0),(0,fn._)([(0,ki.o)({count:Uc.A.COUNT})],jo.prototype,"transparencyPassType",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"spherical",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"receiveShadows",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"receiveAmbientOcclusion",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"vvSize",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"vvColor",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"vvOpacity",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"hasSlicePlane",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"transparent",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"hasOccludees",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"hasMultipassTerrain",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"cullAboveGround",void 0),(0,fn._)([(0,ki.o)()],jo.prototype,"doublePrecisionRequiresObfuscation",void 0),(0,fn._)([(0,ki.o)({constValue:av.f7.Disabled})],jo.prototype,"pbrMode",void 0),(0,fn._)([(0,ki.o)({constValue:!0})],jo.prototype,"hasVvInstancing",void 0),(0,fn._)([(0,ki.o)({constValue:!1})],jo.prototype,"useCustomDTRExponentForWater",void 0),(0,fn._)([(0,ki.o)({constValue:!1})],jo.prototype,"useFillLights",void 0);var ld=v(42037);class pm extends ah.F5{constructor(Te){super(Te,new fm),this.supportsEdges=!0,this._vertexAttributeLocations=rT,this._configuration=new jo,this._vertexBufferLayout=pm.getVertexBufferLayout(this.parameters)}getConfiguration(Te,Ue){return this._configuration.output=Te,this._configuration.vvSize=this.parameters.vvSizeEnabled,this._configuration.vvColor=this.parameters.vvColorEnabled,this._configuration.vvOpacity=this.parameters.vvOpacityEnabled,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.transparent=this.parameters.transparent,this._configuration.hasOccludees=this.parameters.hasOccludees,Te!==Hi.H.Color&&Te!==Hi.H.Alpha||(this._configuration.doubleSidedMode=this.parameters.doubleSided&&"normal"===this.parameters.doubleSidedType?nd.q.View:this.parameters.doubleSided&&"winding-order"===this.parameters.doubleSidedType?nd.q.WindingOrder:nd.q.None,this._configuration.receiveShadows=this.parameters.receiveShadows,this._configuration.receiveAmbientOcclusion=!!Ue.ssaoHelper.ready&&this.parameters.receiveSSAO),this._configuration.transparencyPassType=Ue.transparencyPassType,this._configuration.hasMultipassTerrain=Ue.multipassTerrain.enabled,this._configuration.cullAboveGround=Ue.multipassTerrain.cullAboveGround,this._configuration}isVisibleForOutput(Te){return Te!==Hi.H.Shadow&&Te!==Hi.H.ShadowExludeHighlight&&Te!==Hi.H.ShadowHighlight||this.parameters.castShadows}isVisible(){return super.isVisible()&&this.parameters.opacity>0}intersect(Te,Ue,$e,st,ht,yt,Rt){const Ut=Te;if(!rv(Ut))return;const er=Ut.path,vr=[this.parameters.size[0],this.parameters.size[1]];if(this.parameters.vvSizeEnabled){const ei=this.parameters.vvSizeOffset,Rs=this.parameters.vvSizeFactor,fi=this.parameters.vvSizeMinSize,Pi=this.parameters.vvSizeMaxSize,mn=er.sizeAttributeValue;vr[0]*=(0,Ar.uZ)(ei[0]+mn*Rs[0],fi[0],Pi[0]),vr[1]*=(0,Ar.uZ)(ei[2]+mn*Rs[2],fi[2],Pi[2])}const Pr=Math.max(vr[0],vr[1]),Ur=Te.boundingInfo;if((0,G.Wi)(Ur))return void this._intersectTriangles(er,vr,ht,yt,Rt);const qr=(0,oe.al)(Ur.bbMin[0]-Pr,Ur.bbMin[1]-Pr,Ur.bbMin[2]-Pr,Ur.bbMax[0]+Pr,Ur.bbMax[1]+Pr,Ur.bbMax[2]+Pr),Zr=[yt[0]-ht[0],yt[1]-ht[1],yt[2]-ht[2]],Es=Math.sqrt(Zr[0]*Zr[0]+Zr[1]*Zr[1]+Zr[2]*Zr[2]);(0,pp.Tw)(qr,ht,[Es/Zr[0],Es/Zr[1],Es/Zr[2]],st.tolerance)&&this._intersectTriangles(er,vr,ht,yt,Rt)}_intersectTriangles(Te,Ue,$e,st,ht){Te.baked.size&&Te.baked.size[0]===Ue[0]&&Te.baked.size[1]===Ue[1]||Te.baked.bake(Ue),Te.baked.intersect($e,st,ht)}computeAttachmentOrigin(Te,Ue){const $e=Te.vertexAttributes;if(!$e)return null;const st=$e.get(Pe.T.POSITION);return(0,dm.qZ)(st,null,!1,Ue)}createBufferWriter(){return new mm(this._vertexBufferLayout)}requiresSlot(Te,Ue){switch(Ue){case Hi.H.Shadow:case Hi.H.ShadowHighlight:case Hi.H.ShadowExludeHighlight:if(!this.parameters.castShadows)return!1;case Hi.H.Color:case Hi.H.Alpha:case Hi.H.Depth:case Hi.H.Normal:case Hi.H.Highlight:case Hi.H.ObjectAndLayerIdColor:return Te===(this.parameters.transparent?zo.r.TRANSPARENT_MATERIAL:zo.r.OPAQUE_MATERIAL)||Te===zo.r.DRAPED_MATERIAL;default:return!1}}createGLMaterial(Te){return new _m(Te)}static getVertexBufferLayout(Te){const Ue=(0,qf.U$)().vec3f(Pe.T.POSITION).vec4f(Pe.T.PROFILERIGHT).vec4f(Pe.T.PROFILEUP).vec4f(Pe.T.PROFILEVERTEXANDNORMAL);return(Te.vvColorEnabled||Te.vvSizeEnabled||Te.vvOpacityEnabled)&&Ue.vec4f(Pe.T.FEATUREVALUE),Ue}}class _m extends mp.Z{_updateOccludeeState(Te){Te.hasOccludees!==this._material.parameters.hasOccludees&&this._material.setParameters({hasOccludees:Te.hasOccludees})}_updateShadowState(Te){((0,G.Wi)(this.technique)||Te.shadowMap.enabled!==this.technique.configuration.receiveShadows)&&this._material.setParameters({receiveShadows:Te.shadowMap.enabled})}beginSlot(Te){return this._output!==Hi.H.Color&&this._output!==Hi.H.Alpha||(this._updateShadowState(Te),this._updateOccludeeState(Te)),this.ensureTechnique(ad,Te)}}class fm extends hm{constructor(){super(...arguments),this.doubleSided=!1,this.doubleSidedType="normal",this.receiveSSAO=!0,this.receiveShadows=!1,this.castShadows=!0,this.hasSlicePlane=!1,this.transparent=!1,this.hasOccludees=!1}}class mm{constructor(Te){this.vertexBufferLayout=Te}allocate(Te){return this.vertexBufferLayout.createBuffer(Te)}elementCount(Te){return Te.indices.get(Pe.T.POSITION).length}write(Te,Ue,$e,st,ht){gm(Pe.T.PROFILERIGHT,$e,st,ht),gm(Pe.T.PROFILEUP,$e,st,ht),gm(Pe.T.PROFILEVERTEXANDNORMAL,$e,st,ht),this.vertexBufferLayout.hasField(Pe.T.FEATUREVALUE)&&gm(Pe.T.FEATUREVALUE,$e,st,ht),(0,ld.NK)($e,this.vertexBufferLayout,Te,Ue,st,ht)}}function gm(ft,Te,Ue,$e){if(Te.vertexAttributes.has(ft)){const st=Te.vertexAttributes.get(ft),ht=Te.indices.get(ft);(0,Bo.hu)(4===st.size);const yt=Ue.getField(ft,ve.ek);if(!yt)throw new Error("unable to acquire view for "+ft);(0,ld.SW)(ht,st.data,yt,$e)}}const sT=["polyline"];function Bc(ft,Te,Ue){switch(Te){case"world":for(const $e of ft.vertices)(0,H.a)(Vl,$e.pos,ft.offset),Ue.worldUpAtPosition(Vl,el),$e.setFrameFromUpVector(el),$e.computeRotationAxisAndAngleFromUpVector();break;case"path":(0,H.a)(Vl,ft.vertices[0].pos,ft.offset),Ue.worldUpAtPosition(Vl,el),function XC(ft,Te){let Ue=null;const $e=ft.vertices.length,st=.99619469809,ht=(0,X.c)(),yt=(0,X.c)(),Rt=(0,X.c)(),Ut=(0,X.c)(),er=(0,X.c)(),vr=(0,X.c)(),Pr=(0,nh.Ue)();let Ur=ft.vertices[0];(0,H.c)(yt,Te),(0,H.s)(ht,0,1,0),(0,xi.Ay)(Ur.vRight,yt,ht,ht,Rt,yt,st),(0,H.c)(Ur.frame.up,yt),(0,H.c)(Ur.frame.right,Rt),Ue=Ur;for(let qr=1;qr<$e;++qr){Ur=ft.vertices[qr],(0,H.a)(er,Ur.vLeft,Ur.vRight);let Zr=(0,H.l)(er);Zr>0?(Zr=1/Math.sqrt(Zr),er[0]=er[0]*Zr,er[1]=er[1]*Zr,er[2]=er[2]*Zr):(er[0]=Ur.vRight[0],er[1]=Ur.vRight[1],er[2]=Ur.vRight[2]),(0,H.a)(vr,Ue.pos,Ue.frame.up),(0,nh.Yq)(Ur.pos,er,Pr),(0,nh.BR)(Pr,(0,GC.re)(vr,Ur.vLeft),Ut)?((0,H.b)(Ut,Ut,Ur.pos),(0,H.n)(yt,Ut),(0,H.f)(Rt,er,yt),(0,H.n)(Rt,Rt)):(0,xi.Ay)(er,Ue.frame.up,Ue.frame.right,ht,Rt,yt,st),(0,H.c)(Ur.frame.up,yt),(0,H.c)(Ur.frame.right,Rt),Ue=Ur}}(ft,el);for(const $e of ft.vertices){const st=Math.sign((0,H.e)($e.frame.right,$e.vRight));(0,H.f)($e.rotationFrame.up,$e.vRight,$e.vLeft),(0,H.g)($e.rotationFrame.up,$e.rotationFrame.up,st),(0,H.n)($e.rotationFrame.up,$e.rotationFrame.up);const ht=(0,H.e)($e.rotationFrame.up,$e.frame.up),yt=(0,H.e)($e.rotationFrame.up,$e.frame.right);if((0,H.g)(Vl,$e.frame.up,-yt),(0,H.g)(H0,$e.frame.right,ht),(0,H.a)(Vl,Vl,H0),(0,H.n)($e.rotationFrame.right,Vl),ZC($e.rotationRight,$e.frame,$e.rotationFrame.right),(0,H.o)(Vl,$e.vLeft),$e.rotationAngle=-st*(Math.PI-(0,Ar.ZF)((0,H.e)(Vl,$e.vRight))),Math.abs($e.rotationAngle)>0){const Ut=(0,Ar.b_)(Math.cos(.5*$e.rotationAngle));om($e.miterStretch,1+(Ut-1)*$e.rotationRight[0]*$e.rotationRight[0],(Ut-1)*$e.rotationRight[0]*$e.rotationRight[1],(Ut-1)*$e.rotationRight[0]*$e.rotationRight[1],1+(Ut-1)*$e.rotationRight[1]*$e.rotationRight[1])}const Rt=Math.PI-$e.rotationAngle;$e.maxStretchDistance=Math.abs(Math.min($e.vLeftLength,$e.vRightLength)*(0,Ar.b_)(Math.cos(.5*Rt)))}}}function gl(ft,Te,Ue){switch(ft){case"symbol-value":return Ue;case"proportional":return Te;default:return ft}}function eu(ft,Te,Ue,$e){let st=0;for(const ht of ft.vertices)(0,Ce.qZ)(ht.posES,Ue,Te,$e,Oo),st+=Oo.sampledElevation,(0,H.a)(el,ht.pos,ft.offset),$e.setAltitude(el,Oo.z),(0,H.b)(ht.pos,el,ft.offset);return ft.updatePathVertexInformation(),st/ft.vertices.length}function tu(ft,Te,Ue,$e){const st=ft.stageObject,ht=st.geometryRecords;let yt=0;ym.spatialReference=$e.spatialReference;for(const Rt of ht){const Ut=Rt.geometry;if(!rv(Ut))continue;const er=Ut.path,vr=er.builder.path;vm.spatialReference=Ut.geometrySR,yt+=eu(vr,Te,Ue,$e),"world"!==Ut.upVectorAlignment&&Bc(vr,Ut.upVectorAlignment,$e),er.onPathChanged(),Ut.invalidateBoundingInfo(),st.geometryVertexAttrsUpdated(Rt)}return yt/ht.length}const ym=(0,se.Tx)(0,0,0,null),vm=(0,se.Tx)(0,0,0,null),el=(0,X.c)(),Vl=(0,tv.c)(),H0=(0,tv.c)(),Oo=new Ce.Lm;var Fx=v(12080);function nT(ft,Te,Ue,$e,st=1){(0,H.s)(ch,1,0,0),(0,H.s)(Mu,0,1,0),(0,H.s)(yp,0,0,1),function oT(ft,Te){(0,H.s)(k0,0,0,0);for(let Ue=0;Uev.e(5655).then(v.bind(v,35655)));const Vx={factor:1,units:1};class Eo extends hv.W{constructor(){super(...arguments),this.output=Hi.H.Color,this.cullFace=Ie.Vr.None,this.transparencyPassType=Uc.A.NONE,this.hasSlicePlane=!1,this.hasVertexColors=!1,this.polygonOffset=!1,this.writeDepth=!0,this.hasOccludees=!1,this.enableOffset=!0,this.hasMultipassTerrain=!1,this.cullAboveGround=!1}}(0,fn._)([(0,ki.o)({count:Hi.H.COUNT})],Eo.prototype,"output",void 0),(0,fn._)([(0,ki.o)({count:Ie.Vr.COUNT})],Eo.prototype,"cullFace",void 0),(0,fn._)([(0,ki.o)({count:dd.b.COUNT})],Eo.prototype,"style",void 0),(0,fn._)([(0,ki.o)({count:Uc.A.COUNT})],Eo.prototype,"transparencyPassType",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"hasSlicePlane",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"hasVertexColors",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"polygonOffset",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"writeDepth",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"hasOccludees",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"patternSpacing",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"lineWidth",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"enableOffset",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"draped",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"hasMultipassTerrain",void 0),(0,fn._)([(0,ki.o)()],Eo.prototype,"cullAboveGround",void 0);const J0=new Map([[Pe.T.POSITION,0],[Pe.T.COLOR,3],[Pe.T.UVMAPSPACE,4],[Pe.T.BOUNDINGRECT,5]]);class hh extends ah.F5{constructor(Te){super(Te,new ph),this.supportsEdges=!0,this._vertexAttributeLocations=J0,this._configuration=new Eo}getConfiguration(Te,Ue){return this._configuration.output=Te,this._configuration.cullFace=this.parameters.cullFace,this._configuration.hasVertexColors=this.parameters.hasVertexColors,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.polygonOffset=this.parameters.polygonOffset,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.style=this.parameters.style,this._configuration.patternSpacing=this.parameters.patternSpacing,this._configuration.lineWidth=this.parameters.lineWidth,this._configuration.draped=this.parameters.draped,this._configuration.transparencyPassType=Ue.transparencyPassType,this._configuration.enableOffset=Ue.camera.relativeElevation{const st=(0,Ot.Dp)(Te.pattern);return new It.U({width:$e,color:this._getOutlineColor(),hasPolygonOffset:!0,hasSlicePlane:this._context.slicePlaneEnabled,isClosed:!0,stipplePattern:st,stippleScaleWithLineWidth:!0,cap:cr(Te.patternCap||"butt")})})((0,ct.F2)(Te.size)),this._context.stage.add(this._outlineMaterial))}_isValidOutline(Te){return(0,G.pC)(Te)&&Te.size&&Te.size>0&&(0,G.pC)(Te.color)&&((0,G.Wi)(Te.pattern)||"style"!==Te.pattern.type||"none"!==Te.pattern.style)}destroy(){super.destroy(),this._context.stage.remove(this._material),this._material=null,this._context.stage.remove(this._outlineMaterial),this._outlineMaterial=null}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry,$x,this.symbolLayer.type))return null;const $e=this._getVertexOpacityAndColor(Te.renderingInfo,255),st=this.setGraphicElevationContext(Ue,new Be.o);return this.ensureDrapedStatus("on-the-ground"===st.mode),this._ensureMaterials(),this.draped?this._createAsOverlay(Ue,$e):this._createAs3DShape(Ue,$e,st)}layerOpacityChanged(){if((0,G.pC)(this._material)){const Te=this._material.parameters.color,Ue=(0,G.U2)(this.symbolLayer,"material","color"),$e=this._getCombinedOpacity(Ue);this._material.setParameters({color:[Te[0],Te[1],Te[2],$e],transparent:$e<1||this.needsDrivenTransparentPass})}if((0,G.pC)(this._outlineMaterial)){const Te=this._outlineMaterial.parameters.color;this._outlineMaterial.setParameters({color:[Te[0],Te[1],Te[2],this._getOutlineOpacity()]})}}layerElevationInfoChanged(Te,Ue,$e){const st=this._elevationContext.mode,ht=(0,Ce.GC)(Cm.elevationModeChangeTypes,$e,st);if(ht!==Ce.lO.UPDATE)return ht;const yt=(0,Ce.Xf)(st);return this.updateGraphics3DGraphicElevationInfo(Te,Ue,()=>yt)}slicePlaneEnabledChanged(){return(0,G.pC)(this._material)&&this._material.setParameters({hasSlicePlane:this._context.slicePlaneEnabled}),(0,G.pC)(this._outlineMaterial)&&this._outlineMaterial.setParameters({hasSlicePlane:this._context.slicePlaneEnabled}),!0}physicalBasedRenderingChanged(){return!0}pixelRatioChanged(){return!0}_createAs3DShape(Te,Ue,$e){const st=Xe(Te.geometry);if((0,G.Wi)(st))return null;const ht=ot(st,this._context.elevationProvider,this._context.renderCoordsHelper,$e),yt=new Yx(ht,Ue,this._context.layer.uid,Te.uid),Rt=yt.renderData.position.length/3;if(this._needsUV&&(yt.uvMapSpace=new Float32Array(4*Rt),yt.boundingRect=new Float64Array(9*Rt)),yt.objectAndLayerIdColor=this._context.stage.renderView?._getObjectAndLayerIdColor({graphicUid:yt.graphicsUid,layerUid:yt.layerUid}),this._createAs3DShapeFill(yt),this._hasOutline&&this._createAs3DShapeOutline(yt),this._logGeometryCreationWarnings(yt.renderData,st.rings,"rings","FillSymbol3DLayer"),0===yt.outGeometries.length)return null;this._needsUV&&nT(ve.ek.fromTypedArray(yt.uvMapSpace),ve.fP.fromTypedArray(yt.renderData.position),this._context.renderCoordsHelper,ve.ey.fromTypedArray(yt.boundingRect));const Ut=new $t.T({geometries:yt.outGeometries,materials:yt.outMaterials,transformations:yt.outTransforms,castShadow:!1,metadata:{layerUid:this._context.layer.uid,graphicUid:Te.uid}}),er=new ue.z(this,Ut,yt.outGeometries,null,null,Zx,$e);return er.alignedSampledElevation=yt.renderData.sampledElevation,er.needsElevationUpdates=(0,Ce.Xf)($e.mode),er}_createAs3DShapeFill(Te){const Ue=Te.renderData.polygons;for(const{position:$e,mapPosition:st,holeIndices:ht,index:yt,count:Rt}of Ue){if((0,G.pC)(this._context.clippingExtent)&&((0,oe.cS)(Xo),(0,oe.G1)(Xo,st),!(0,oe.Zp)(Xo,this._context.clippingExtent)))continue;const Ut=(0,Ee.e)(st,ht,3);if(0===Ut.length)continue;const er=Me({indices:Ut,attributeData:{position:$e,color:Te.color,mapPosition:st,uvMapSpace:this._needsUV?new Float32Array(Te.uvMapSpace.buffer,4*yt*Te.uvMapSpace.BYTES_PER_ELEMENT,4*Rt):null,boundingRect:this._needsUV?new Float64Array(Te.boundingRect.buffer,9*yt*Te.boundingRect.BYTES_PER_ELEMENT,9*Rt):null,objectAndLayerIdColor:Te.objectAndLayerIdColor}});Te.outGeometries.push(er),Te.outMaterials.push((0,G.Wg)(this._material)),Te.outTransforms.push(ye.I)}}_createAs3DShapeOutline(Te){if(!this._hasOutline)return;const Ue=Te.renderData.outlines;for(let $e=0;$ethis._createAsOverlay(Te,Ue),createAs3DShape:(Te,Ue,$e)=>this._createAs3DShape(Te,Ue,$e)}}}Cm.elevationModeChangeTypes={definedChanged:Ce.lO.RECREATE,staysOnTheGround:Ce.lO.NONE,onTheGroundChanged:Ce.lO.RECREATE};const Xo=(0,oe.Ue)();class Yx extends Ye{constructor(Te,Ue,$e,st){super(Te,$e,st),this.color=Ue}}class fv extends Ye{constructor(Te,Ue,$e,st){super(Te,$e,st),this.color=Ue}}var hT=v(9824),ru=v(65542),pT=v(6169);class xu{constructor(Te,Ue,$e){this._renderer=new pT.tV(Te,Ue,$e)}get key(){return this._renderer.key}get baselineAnchorY(){return 1-this._renderer.firstRenderedBaselinePosition/this._renderer.renderedHeight}get displayWidth(){return this._renderer.displayWidth}get displayHeight(){return this._renderer.displayHeight}create(){const Te=(0,pT.GZ)(Xx,this._renderer.renderedWidth,this._renderer.renderedHeight),Ue=Te.getContext("2d");return Ue.save(),this._renderer.render(Ue,0,0),Ue.restore(),new Mo.x(Te,{wrap:{s:Ci.e8.CLAMP_TO_EDGE,t:Ci.e8.CLAMP_TO_EDGE},noUnpackFlip:!1,mipmap:!0,preMultiplyAlpha:!0,powerOfTwoResizeMode:Ie.CE.PAD})}}const Xx={canvas:null},mv=[0,0,1];function _T(ft,Te,Ue){ft&&ft.forEach($e=>{const st=Te($e);(0,G.pC)(st)&&Ue(st,$e.graphic)})}const mT={mode:"relative-to-ground",offset:0},Tm={text:null,translation:[0,0,0],elevationOffset:0,centerOffset:[0,0,0,1],screenOffset:[0,0],horizontalPlacement:"center",verticalPlacement:"center",verticalOffset:null,centerOffsetUnits:null,debugDrawLabelBorder:!1,displayWidth:0,displayHeight:0};var Q0=v(44989);const vp={"calm-small":{waveStrength:.005,perturbationStrength:.02,textureRepeat:12,waveVelocity:.01},"rippled-small":{waveStrength:.02,perturbationStrength:.09,textureRepeat:32,waveVelocity:.07},"slight-small":{waveStrength:.05,perturbationStrength:.07,textureRepeat:28,waveVelocity:.1},"moderate-small":{waveStrength:.075,perturbationStrength:.07,textureRepeat:24,waveVelocity:.1},"calm-medium":{waveStrength:.003125,perturbationStrength:.01,textureRepeat:8,waveVelocity:.02},"rippled-medium":{waveStrength:.035,perturbationStrength:.015,textureRepeat:12,waveVelocity:.07},"slight-medium":{waveStrength:.06,perturbationStrength:.015,textureRepeat:8,waveVelocity:.12},"moderate-medium":{waveStrength:.09,perturbationStrength:.03,textureRepeat:4,waveVelocity:.12},"calm-large":{waveStrength:.01,perturbationStrength:0,textureRepeat:4,waveVelocity:.05},"rippled-large":{waveStrength:.025,perturbationStrength:.01,textureRepeat:8,waveVelocity:.11},"slight-large":{waveStrength:.06,perturbationStrength:.02,textureRepeat:3,waveVelocity:.13},"moderate-large":{waveStrength:.14,perturbationStrength:.03,textureRepeat:2,waveVelocity:.15}},gT=["polyline","polygon","extent"];class cc extends Fe.k{constructor(Te,Ue,$e,st){super(Te,Ue,$e,st)}doLoad(){return(0,D.Z)(function*(){})()}destroy(){super.destroy(),this._context.stage.remove(this._material),this._material=null}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry,gT,this.symbolLayer.type))return null;const $e=this.setGraphicElevationContext(Ue,new Be.o);return this.ensureDrapedStatus("on-the-ground"===$e.mode),this.ensureMaterial(),this.draped?this._createAsOverlay(Ue):this._createAs3DShape(Ue,$e,Ue.uid)}ensureMaterial(){if((0,G.pC)(this._material))return;const Te=new Q0.m,Ue=this.symbolLayer.color;(0,G.pC)(Ue)&&(Te.color=Cs.Z.toUnitRGBA(Ue));const $e=this._getCombinedOpacity(Ue,{hasIntrinsicColor:!0});Te.color=[Te.color[0],Te.color[1],Te.color[2],$e],Te.transparent=$e<1||this.needsDrivenTransparentPass,Te.waveDirection=(0,G.pC)(this.symbolLayer.waveDirection)?cc.headingVectorFromAngle(this.symbolLayer.waveDirection):(0,B.f)(0,0);const ht=vp[this.symbolLayer.waveStrength+"-"+this.symbolLayer.waterbodySize];Te.waveStrength=ht.waveStrength,Te.waveTextureRepeat=ht.textureRepeat,Te.waveVelocity=ht.waveVelocity,Te.flowStrength=ht.perturbationStrength,Te.hasSlicePlane=this._context.slicePlaneEnabled,Te.isDraped=this.draped,this._material=new Q0.H(Te),this._context.stage.add(this._material)}layerOpacityChanged(){if((0,G.Wi)(this._material))return;const Te=this._material.parameters.color,Ue=this._getCombinedOpacity(this.symbolLayer.color,{hasIntrinsicColor:!0});this._material.setParameters({color:[Te[0],Te[1],Te[2],Ue],transparent:Ue<1||this.needsDrivenTransparentPass})}layerElevationInfoChanged(Te,Ue,$e){const st=this._elevationContext.mode,ht=(0,Ce.GC)(cc.elevationModeChangeTypes,$e,st);if(ht!==Ce.lO.UPDATE)return ht;const yt=(0,Ce.Xf)(st);return this.updateGraphics3DGraphicElevationInfo(Te,Ue,()=>yt)}slicePlaneEnabledChanged(){return(0,G.pC)(this._material)&&this._material.setParameters({hasSlicePlane:this._context.slicePlaneEnabled}),!0}physicalBasedRenderingChanged(){return!0}pixelRatioChanged(){return!0}_createAs3DShape(Te,Ue,$e){const st=Xe(Te.geometry);if((0,G.Wi)(st))return null;const ht=ot(st,this._context.elevationProvider,this._context.renderCoordsHelper,Ue),yt=ht.position.length/3,Rt=new Float64Array(2*yt),Ut=new yT(ht,Rt);if(this._create3DShapeGeometries(Ut),this._logGeometryCreationWarnings(Ut.renderData,st.rings,"rings","WaterSymbol3DLayer"),0===Ut.outGeometries.length)return null;this._createUVCoordsFromVertices(Ut.uvCoords,Ut.renderData.mapPosition,yt,this._context.elevationProvider.spatialReference);const er=new $t.T({geometries:Ut.outGeometries,materials:Ut.outMaterials,transformations:Ut.outTransforms,castShadow:!1,metadata:{layerUid:this._context.layer.uid,graphicUid:$e}}),vr=new ue.z(this,er,Ut.outGeometries,null,null,Ir.Wf,Ue);return vr.alignedSampledElevation=Ut.renderData.sampledElevation,vr.needsElevationUpdates=(0,Ce.Xf)(Ue.mode),vr}_createUVCoordsFromVertices(Te,Ue,$e,st){const ht=(0,_e.c9)(st);(0,le.cS)(Du);for(let Ut=0;Ut<$e;Ut++)(0,W.s)(gv,Ue[3*Ut+0],Ue[3*Ut+1]),(0,le.Ho)(Du,gv);(0,Kt.b)(Du,Du,ht);const Rt=Du[1]%cc.unitSizeOfTexture;xo[0]=Du[0]-Du[0]%cc.unitSizeOfTexture,xo[1]=Du[1]-Rt;for(let Ut=0;Ut<$e;Ut++)Te[2*Ut+0]=(Ue[3*Ut+0]*ht-xo[0])/cc.unitSizeOfTexture,Te[2*Ut+1]=(Ue[3*Ut+1]*ht-xo[1])/cc.unitSizeOfTexture}_create3DShapeGeometries(Te){const Ue=Te.renderData.polygons,$e=Te.uvCoords;for(const{count:st,index:ht,position:yt,mapPosition:Rt,holeIndices:Ut}of Ue){if((0,G.pC)(this._context.clippingExtent)&&((0,oe.cS)(Zi),(0,oe.G1)(Zi,Rt),!(0,oe.Zp)(Zi,this._context.clippingExtent)))continue;const er=(0,Ee.e)(Rt,Ut,3);if(0===er.length)continue;const Pr=Ne({indices:er,attributeData:{position:yt,uv0:new Float64Array($e.buffer,2*ht*$e.BYTES_PER_ELEMENT,2*st),mapPosition:Rt}});Te.outGeometries.push(Pr),Te.outMaterials.push((0,G.Wg)(this._material)),Te.outTransforms.push(ye.I)}}_createAsOverlay(Te){const Ue=Xe(Te.geometry);if((0,G.Wi)(Ue))return null;(0,G.Wg)(this._material).renderPriority=this._renderPriority;const $e=ut(Ue,this._context.overlaySR),st=$e.position.length/3,ht=new Float64Array(2*st),yt=new Ep($e,ht,this._context.layer.uid,Te.uid);return yt.outBoundingBox=(0,oe.cS)(),this._createAsOverlayWater(yt),this._logGeometryCreationWarnings(yt.renderData,Ue.rings,"rings","WaterSymbol3DLayer"),0===yt.outGeometries.length?null:(this._createUVCoordsFromVertices(yt.uvCoords,yt.renderData.position,st,this._context.overlaySR),new fs(this,yt.outGeometries,yt.outBoundingBox,this._context.drapeSourceRenderer))}_createAsOverlayWater(Te){const Ue=Te.uvCoords,$e=Te.renderData.polygons;for(const{position:st,holeIndices:ht,index:yt,count:Rt}of $e){if((0,oe.cS)(Zi),(0,oe.G1)(Zi,st),!(0,oe.Zp)(Zi,this._context.clippingExtent))continue;(0,oe.TC)(Te.outBoundingBox,Zi);const Ut=(0,Ee.e)(st,ht,3);if(0===Ut.length)continue;const vr=Ne({indices:Ut,attributeData:{position:st,uv0:new Float64Array(Ue.buffer,2*yt*Ue.BYTES_PER_ELEMENT,2*Rt)}}),Pr=new en.z(vr,(0,G.Wg)(this._material),{layerUid:Te.layerUid,graphicUid:Te.graphicsUid});(0,Kt.s)(Pr.boundingSphere,.5*(Zi[0]+Zi[3]),.5*(Zi[1]+Zi[4]),0,.5*Math.sqrt((Zi[3]-Zi[0])*(Zi[3]-Zi[0])+(Zi[4]-Zi[1])*(Zi[4]-Zi[1]))),Te.outGeometries.push(Pr)}}static headingVectorFromAngle(Te){const Ue=(0,B.a)(),$e=(0,Qy.t)(Te);return Ue[0]=Math.sin($e),Ue[1]=Math.cos($e),Ue}test(){return{...super.test(),create3DShape:Te=>this._createAs3DShape(Te.graphic,Te.elevationContext,Te.graphicUid),ensureMaterial:()=>this.ensureMaterial()}}}cc.unitSizeOfTexture=100,cc.elevationModeChangeTypes={definedChanged:Ce.lO.RECREATE,staysOnTheGround:Ce.lO.NONE,onTheGroundChanged:Ce.lO.RECREATE};const xo=(0,B.a)(),Du=(0,le.Ue)(),gv=(0,B.a)(),Zi=(0,oe.Ue)();class yT extends Ye{constructor(Te,Ue){super(Te,null,null),this.uvCoords=Ue}}class Ep extends Ye{constructor(Te,Ue,$e,st){super(Te,$e,st),this.uvCoords=Ue}}function bp(ft,Te,Ue,$e){const st=vv[ft.type]&&vv[ft.type][Te.type]||yv[Te.type];return st?new st(ft,Te,Ue,$e):(pe.Z.getLogger("esri.views.3d.layers.graphics.Graphics3DSymbolLayerFactory").error("GraphicsLayerFactory#make",`unknown symbol type ${Te.type}`),null)}const yv={icon:Jn,object:class yC extends Fe.k{constructor(Te,Ue,$e,st){super(Te,Ue,$e,st),this._resources=null,this._optionalFields=new Array,this._instanceIndexToGraphicUid=new Map,this._hasLoadedPBRTextures=!1,this._disposeResourceHandles=new Array,this.ensureDrapedStatus(!1),this._hasLoadedPBRTextures=$e.physicalBasedRenderingEnabled}getCachedSize(){const[Te,Ue,$e]=(0,G.pC)(this._resources)?this._resources.symbolSize:[1,1,1];return{width:Te,depth:Ue,height:$e}}doLoad(Te){var Ue=this;return(0,D.Z)(function*(){if(!Ue._drivenProperties.size&&(0,je.bh)(Ue.symbolLayer))throw new Error;const $e=Ue.symbolLayer;if(Ue._isPrimitive){const st=$e.resource?$e.resource.primitive:ac.S;Ue._resources=yield Ue._createResourcesForPrimitive(st,Te)}else Ue._resources=yield Ue._createResourcesForUrl($e.resource.href,Te);Ue.layerOpacityChanged(),Ue.slicePlaneEnabledChanged(),Ue.physicalBasedRenderingChanged(),Ue.complexity=Ue.computeComplexity()})()}get extentPadding(){return(0,G.pC)(this._resources)?this._resources.extentPadding:0}get _isPrimitive(){return!(this.symbolLayer.resource&&this.symbolLayer.resource.href)}get lodRenderer(){return(0,G.U2)(this._resources,"lodRenderer")}_setMaterialTransparencyParams(Te,Ue=(0,G.U2)(this.symbolLayer,"material","color")){const $e=this._getCombinedOpacity(Ue),st=$e<1||this.needsDrivenTransparentPass;return Te.transparent=st,Te.opacity=$e,Te.cullFace=st?Ie.Vr.None:Ie.Vr.Back,Te}_createResourcesForPrimitive(Te,Ue){var $e=this;return(0,D.Z)(function*(){if(!(0,L0.F)(Te))throw new Error(`Unknown object symbol primitive: ${Te}`);const st=$e.symbolLayer,ht=(0,oe.Ue)((0,I0.Uz)(Te)),yt=(0,X.d)((0,oe.dp)(ht)),Rt=(0,X.d)((0,I0.$K)(yt,st)),Ut=(0,H.l)(Rt),Pr={usePBR:$e._context.physicalBasedRenderingEnabled,isSchematic:!0,ambient:X.O,diffuse:X.O,hasSlicePlane:$e._context.slicePlaneEnabled,hasSliceHighlight:!1,castShadows:$e.symbolLayer.castShadows,offsetTransparentBackfaces:!$e.symbolLayer.isPrimitive},Ur=Pr.usePBR;$e._setMaterialTransparencyParams(Pr);const qr=$e.symbol;if("point-3d"===qr.type&&qr.verticalOffset){const{screenLength:Rs,minWorldLength:fi,maxWorldLength:Pi}=qr.verticalOffset;Pr.verticalOffset={screenLength:(0,ct.F2)(Rs),minWorldLength:fi||0,maxWorldLength:(0,G.pC)(Pi)?Pi:1/0},Pr.castShadows=!1}if($e._context.screenSizePerspectiveEnabled&&(Pr.screenSizePerspective=$e._context.sharedResources.screenSizePerspectiveSettings),$e._drivenProperties.color)Pr.externalColor=tr.O;else{const Rs=(0,G.pC)(st.material)&&st.material.color,fi=(0,G.pC)(Rs)?Cs.Z.toUnitRGBA(Rs):tr.O;Pr.externalColor=fi}$e._fastUpdates=Vt($e._context.renderer,$e._fastVisualVariableConvertOptions(ht,Rt,yt,G.YP)),Pr.instanced=["transformation"],$e._fastUpdates.enabled?(Object.assign(Pr,$e._fastUpdates.materialParameters),Pr.instanced.push("featureAttribute"),$e._optionalFields.push("featureAttribute")):$e._hasPerInstanceColor()&&(Pr.instanced.push("color"),$e._optionalFields.push("color")),(0,he.Z)("enable-feature:objectAndLayerId-rendering")&&(Pr.instanced.push("objectAndLayerIdColor"),$e._optionalFields.push("objectAndLayerIdColor"));const Zr=new Wt.Gp(Pr),Es=(0,L0.t)(Te,Zr);if(!Es)throw new Error(`Unknown object symbol primitive: ${Te}`);const si=(0,wc.aH)(Es).map(Rs=>({opacity:1,transparent:Rs.parameters.transparent})),ei=yield $e._createStageResources(Es,Ur);return{lodResources:Es,lodRenderer:yield $e._createLodRenderer(Es,Ue),stageResources:ei,symbolSize:Rt,extentPadding:Ut,isEsriSymbolResource:!1,isWosr:!1,originalMaterialParameters:si,physicalBasedRenderingEnabled:Ur,resourceBoundingBox:ht,resourceSize:yt,pivotOffset:G.YP}})()}_createResourcesForUrl(Te,Ue){var $e=this;return(0,D.Z)(function*(){const st=["transformation"],ht={materialParamsMixin:{instanced:st,hasSlicePlane:$e._context.slicePlaneEnabled,castShadows:$e.symbolLayer.castShadows},streamDataRequester:$e._context.streamDataRequester,cache:$e._context.sharedResources.objectResourceCache};$e._fastUpdates=Vt($e._context.renderer,$e._fastVisualVariableConvertOptions(G.YP,G.YP,G.YP,G.YP)),$e._fastUpdates.enabled?(Object.assign(ht.materialParamsMixin,$e._fastUpdates.materialParameters),st.push("featureAttribute"),$e._optionalFields.push("featureAttribute")):$e._hasPerInstanceColor()&&(st.push("color"),$e._optionalFields.push("color")),(0,he.Z)("enable-feature:objectAndLayerId-rendering")&&(st.push("objectAndLayerIdColor"),$e._optionalFields.push("objectAndLayerIdColor"));const yt=$e.symbol;if("point-3d"===yt.type&&yt.verticalOffset){const{screenLength:Oi,minWorldLength:jn,maxWorldLength:Do}=yt.verticalOffset;ht.materialParamsMixin.verticalOffset={screenLength:(0,ct.F2)(Oi),minWorldLength:jn||0,maxWorldLength:(0,G.pC)(Do)?Do:1/0},ht.materialParamsMixin.castShadows=!1}ht.signal=Ue,ht.usePBR=$e._context.physicalBasedRenderingEnabled,ht.skipHighLods=$e._context.skipHighSymbolLods;const Rt=ht.usePBR,Ut=yield(0,iC.fetch)(Te,ht),er=Ut.isEsriSymbolResource,vr=Ut.isWosr,Pr=function eC(ft){return{levels:ft.map(Te=>function Wy(ft){const Te=[];return ft.stageResources.geometries.forEach((Ue,$e)=>{Te.push({material:ft.stageResources.materials[$e],geometry:Ue,textures:ft.stageResources.textures})}),{components:Te,minScreenSpaceRadius:(0,G.pC)(ft.lodThreshold)?ft.lodThreshold:0,pivotOffset:ft.pivotOffset}}(Te))}}(Ut.lods);(function rC(ft){ft.levels.forEach(Te=>{Te.minScreenSpaceRadius||(Te.minScreenSpaceRadius=function tC(ft,Te=sC){const Ue=(0,wc.HI)(ft);return Math.sqrt(Ue/(Te*Math.PI))}(Te))})})(Pr),Pr.levels.sort((Oi,jn)=>Oi.minScreenSpaceRadius-jn.minScreenSpaceRadius),Pr.levels[0].minScreenSpaceRadius=Math.min(2,Pr.levels[0].minScreenSpaceRadius);const Ur=$e._context,Zr=$e._getExternalColorParameters($e.symbolLayer.material),Es=(0,G.U2)($e.symbolLayer,"material","color"),si=$e._getCombinedOpacity(Es,{hasIntrinsicColor:!0}),ei=$e.needsDrivenTransparentPass,Rs=(0,wc.aH)(Pr),fi=(0,wc.aH)(Pr).map(Oi=>({opacity:Oi.parameters.opacity||1,transparent:Oi.parameters.transparent}));Rs.forEach(Oi=>{const jn=Oi.parameters;Oi.setParameters(Zr);const Do=jn.opacity*si;Oi.setParameters({opacity:Do,transparent:Do<1||ei||jn.transparent}),Ur.screenSizePerspectiveEnabled&&Oi.setParameters({screenSizePerspective:Ur.sharedResources.screenSizePerspectiveSettings})});const Pi=Ut.referenceBoundingBox,mn=(0,X.d)((0,oe.dp)(Pi)),Di=(0,X.d)(Pr.levels[0].pivotOffset),qn=(0,X.d)((0,I0.$K)(mn,$e.symbolLayer)),xa=(0,H.l)(qn);yr($e._fastUpdates,$e._context.renderer,$e._fastVisualVariableConvertOptions(Pi,qn,mn,Di))&&Rs.forEach(Oi=>Oi.setParameters($e._fastUpdates.materialParameters));const Li=yield $e._createStageResources(Pr,Rt);return{lodResources:Pr,lodRenderer:yield $e._createLodRenderer(Pr,Ue),stageResources:Li,symbolSize:qn,extentPadding:xa,isEsriSymbolResource:er,isWosr:vr,originalMaterialParameters:fi,physicalBasedRenderingEnabled:Rt,resourceBoundingBox:Pi,resourceSize:mn,pivotOffset:Di}})()}_addDisposeResource(Te){this._disposeResourceHandles.push(Te)}_createStageResources(Te,Ue){var $e=this;return(0,D.Z)(function*(){const st=$e._context.stage,ht=(0,wc.aH)(Te);Ue!==$e._context.physicalBasedRenderingEnabled&&$e.physicalBasedRenderingChanged(),st.addMany(ht),$e._addDisposeResource(()=>st.removeMany(ht));const yt=(0,wc.VQ)(Te);st.addMany(yt),$e._addDisposeResource(()=>st.removeMany(yt)),yield st.load(yt);const Rt=(0,wc.ci)(Te);return st.addMany(Rt),$e._addDisposeResource(()=>st.removeMany(Rt)),{materials:ht,textures:yt,geometries:Rt}})()}_createLodRenderer(Te,Ue){var $e=this;return(0,D.Z)(function*(){const st=$e._context.stage,ht={layerUid:$e._context.layer.uid,graphicUid:Ut=>$e._instanceIndexToGraphicUid.get(Ut),notifyGraphicGeometryChanged:Ut=>$e._context.notifyGraphicGeometryChanged($e._instanceIndexToGraphicUid.get(Ut)),notifyGraphicVisibilityChanged:Ut=>$e._context.notifyGraphicVisibilityChanged($e._instanceIndexToGraphicUid.get(Ut))},Rt=new pC(Te,$e._optionalFields,ht,$e._fastUpdates.enabled?{applyTransform:(Ut,er,vr)=>{Ut.getFeatureAttribute(er,V0),(0,Se.c)(vr,Os($e._fastUpdates.materialParameters,V0,vr))},scaleFactor:(Ut,er,vr)=>(er.getFeatureAttribute(vr,V0),$s(Ut,$e._fastUpdates.materialParameters,V0))}:null);return Rt.slicePlaneEnabled=$e._context.slicePlaneEnabled,$e._addDisposeResource(()=>{st.removeRenderPlugin(Rt)}),yield st.addRenderPlugin(Rt.slots,Rt,Ue),Rt})()}_getExternalColorParameters(Te){const Ue={};return this._drivenProperties.color?Ue.externalColor=tr.O:(0,G.pC)(Te)&&(0,G.pC)(Te.color)?Ue.externalColor=Cs.Z.toUnitRGBA(Te.color):(Ue.externalColor=tr.O,Ue.colorMixMode="ignore"),Ue}destroy(){super.destroy(),this._cleanupResources()}_cleanupResources(){this._disposeResourceHandles.forEach(Te=>Te()),this._disposeResourceHandles.length=0,this._resources=null}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry))return null;const $e=(0,fr.S_)(Ue.geometry);if((0,G.Wi)($e))return this.logger.warn(`unsupported geometry type for icon symbol: ${Ue.geometry.type}`),null;const st=this.setGraphicElevationContext(Ue,new Be.o);return this._createAs3DShape(Ue,$e,Te.renderingInfo,st,Ue.uid,Te.layer.uid)}notifyDestroyGraphicLayer(Te){this._instanceIndexToGraphicUid.delete(Te.instanceIndex)}graphicLayerToGraphicId(){return 0}layerOpacityChanged(){if((0,G.Wi)(this._resources))return;const Te=this._drivenProperties.opacity,Ue=!this._isPrimitive,$e=this._resources.stageResources.materials,st=this._resources.originalMaterialParameters;for(let ht=0;ht<$e.length;ht++){const yt=$e[ht],Rt=(0,G.U2)(this.symbolLayer,"material","color"),Ut=st[ht],er=this._getCombinedOpacity(Rt,{hasIntrinsicColor:Ue})*Ut.opacity,vr=er<1||Te||Ut.transparent;yt.setParameters({opacity:er,transparent:vr}),this._isPrimitive&&yt.setParameters({cullFace:vr?Ie.Vr.None:Ie.Vr.Back})}}layerElevationInfoChanged(Te,Ue){return this.updateGraphics3DGraphicElevationInfo(Te,Ue,Ce.B5)}slicePlaneEnabledChanged(){if((0,G.Wi)(this._resources))return!0;this._resources.lodRenderer.slicePlaneEnabled=this._context.slicePlaneEnabled;for(const Te of this._resources.stageResources.materials)Te.setParameters({hasSlicePlane:this._context.slicePlaneEnabled});return!0}physicalBasedRenderingChanged(){if((0,G.Wi)(this._resources))return!0;const{stageResources:Te,isWosr:Ue}=this._resources;for(const $e of Te.materials)this._isPrimitive?$e.setParameters({usePBR:this._context.physicalBasedRenderingEnabled,isSchematic:!0}):Ue||$e.setParameters({usePBR:this._context.physicalBasedRenderingEnabled,isSchematic:!1});return!1!==this._hasLoadedPBRTextures||!0!==this._context.physicalBasedRenderingEnabled||(this._hasLoadedPBRTextures=!0,!1)}pixelRatioChanged(){return!0}applyRendererDiff(Te,Ue){if((0,G.Wi)(this._resources))return Re.W.Recreate_Symbol;const{stageResources:{materials:$e},lodRenderer:st,resourceBoundingBox:ht,symbolSize:yt,resourceSize:Rt,pivotOffset:Ut}=this._resources;for(const er in Te.diff){if("visualVariables"!==er||!yr(this._fastUpdates,Ue,this._fastVisualVariableConvertOptions(ht,yt,Rt,Ut)))return Re.W.Recreate_Symbol;for(const vr of $e)vr.setParameters(this._fastUpdates.materialParameters);st.notifyShaderTransformationChanged()}return Re.W.Fast_Update}computeComplexity(){if((0,G.Wi)(this._resources))return super.computeComplexity();const Te=this._resources.lodResources,Ue=(0,wc.VV)(Te.levels[0]).reduce((ht,yt)=>ht+yt.indices.get(Pe.T.POSITION).length,0)/3,st=(0,wc.VQ)(Te).reduce((ht,yt)=>ht+yt.estimatedTexMemRequired,0)/4+(0,wc.ci)(Te).reduce((ht,yt)=>ht+(ht=>Array.from(ht.vertexAttributes.values()).reduce((yt,Rt)=>yt+(Rt.data.buffer?.byteLength??0),0)+Array.from(ht.indices.values()).reduce((yt,Rt)=>yt+(Array.isArray(Rt)?12*Rt.length:Rt.buffer.byteLength),0))(yt),0);return{primitivesPerFeature:Ue,primitivesPerCoordinate:0,drawCallsPerFeature:0,estimated:!1,memory:{...(0,U0.BN)(this.symbol,this.symbolLayer),resourceBytes:st}}}_hasLodRenderer(){return(0,G.pC)(this._resources)}_createAs3DShape(Te,Ue,$e,st,ht,yt){if(!this._hasLodRenderer()||(0,G.Wi)(this._resources))return null;const Rt=this.getFastUpdateAttrValues(Te),Ut=!this._fastUpdates.enabled&&this._hasPerInstanceColor()?(0,je.Uu)($e.color,$e.opacity):null,er=this._context.clippingExtent;if((0,ae.KC)(Ue,ih,this._context.elevationProvider.spatialReference),(0,G.pC)(er)&&!(0,oe.BD)(er,ih))return null;const vr=this._requiresTerrainElevation(st),Pr=this._computeGlobalTransform(Ue,st,W0,z0),Ur=this._computeLocalTransform(this._resources,this.symbolLayer,$e,nm),qr=this._resources.lodRenderer.instanceData,Zr=qr.addInstance();this._instanceIndexToGraphicUid.set(Zr,ht),qr.setLocalTransform(Zr,Ur,!1),qr.setGlobalTransform(Zr,Pr),Rt&&qr.setFeatureAttribute(Zr,Rt),Ut&&qr.setColor(Zr,Ut),(0,he.Z)("enable-feature:objectAndLayerId-rendering")&&qr.setObjectAndLayerIdColor(Zr,this._context.stage.renderView._objectAndLayerIdRenderHelper.getObjectAndLayerIdColor({graphicUid:ht,layerUid:yt}));const Es=new qb(this,Zr,Ir.RX,st);return vr&&(Es.alignedSampledElevation=z0.sampledElevation),Es.needsElevationUpdates=(0,Ce.B5)(st.mode),(0,fr.dO)(Es,Ue,this._context.elevationProvider),Es}_computeGlobalTransform(Te,Ue,$e,st){return(0,Ce.qZ)(Te,this._context.elevationProvider,Ue,this._context.renderCoordsHelper,st),ih[0]=Te.x,ih[1]=Te.y,ih[2]=st.z,(0,ae.Bm)(Te.spatialReference,ih,$e,this._context.renderCoordsHelper.spatialReference),$e}_computeLocalTransform(Te,Ue,$e,st){return(0,Se.i)(st),this._applyObjectRotation($e,!1,st),this._applyObjectRotation(Ue,!0,st),this._applyObjectScale(Te,$e,st),this._applyAnchor(Te,Ue,st),st}_applyObjectScale(Te,Ue,$e){if(this._fastUpdates.enabled&&this._fastUpdates.requiresShaderTransformation)return;const ht=(0,je.bD)(this._drivenProperties.size&&Ue.size?Ue.size:Te.symbolSize,Te.symbolSize,Te.resourceSize,this._context.renderCoordsHelper.unitInMeters);1===ht[0]&&1===ht[1]&&1===ht[2]||(0,Se.k)($e,$e,ht)}prepareSymbolLayerPatch(Te){if("partial"!==Te.diff.type)return;const Ue=Te.diff.diff;this._preparePatchTransform(Te,Ue),this._preparePatchColor(Te,Ue)}updateGeometry(Te,Ue){if((0,G.Wi)(this._resources))return!0;const $e=Ue&&(0,fr.S_)(Ue);if((0,G.Wi)($e))return!1;const st=this.getGeometryElevationMode(Ue);return Te.elevationContext.mode===st&&(this._computeGlobalTransform($e,Te.elevationContext,W0,z0),this._requiresTerrainElevation(Te.elevationContext)&&(Te.alignedSampledElevation=z0.sampledElevation),this._resources.lodRenderer.instanceData.setGlobalTransform(Te.instanceIndex,W0,!0),(0,fr.dO)(Te,$e,this._context.elevationProvider),!0)}_preparePatchTransform(Te,Ue){if(!(Ue.heading||Ue.tilt||Ue.roll||Ue.width||Ue.height||Ue.depth||Ue.anchor||Ue.anchorPosition)||(0,G.Wi)(this._resources))return;const $e=(Zr,Es,si)=>(0,G.Pt)(null!=Zr&&"complete"===Zr.type?Zr.newValue:Es,si),st=$e(Ue.heading,this.symbolLayer.heading,0),ht=$e(Ue.tilt,this.symbolLayer.tilt,0),yt=$e(Ue.roll,this.symbolLayer.roll,0),Rt=$e(Ue.width,this.symbolLayer.width,void 0),Ut=$e(Ue.height,this.symbolLayer.height,void 0),er=$e(Ue.depth,this.symbolLayer.depth,void 0),vr=$e(Ue.anchor,this.symbolLayer.anchor,void 0),Pr=$e(Ue.anchorPosition,this.symbolLayer.anchorPosition,void 0);delete Ue.heading,delete Ue.tilt,delete Ue.roll,delete Ue.width,delete Ue.height,delete Ue.depth,delete Ue.anchor,delete Ue.anchorPosition;const Ur={heading:st,tilt:ht,roll:yt,anchor:vr,anchorPosition:Pr},qr=this._resources;this.loadStatus===dp.P.LOADED&&Te.symbolLayerStatePatches.push(()=>{qr.symbolSize=(0,X.d)((0,I0.$K)(qr.resourceSize,{width:Rt,height:Ut,depth:er,isPrimitive:this.symbolLayer.isPrimitive}))}),Te.graphics3DGraphicPatches.push((Zr,Es)=>{const si=this._computeLocalTransform(qr,Ur,Es,nm);qr.lodRenderer.instanceData.setLocalTransform(Zr.instanceIndex,si,!0)})}_preparePatchColor(Te,Ue){if(!Ue.material||"partial"!==Ue.material.type)return;const $e=Ue.material.diff;if(!$e.color||"complete"!==$e.color.type||null==$e.color.newValue||null==$e.color.oldValue)return;const st=$e.color.newValue,ht=(0,G.pC)(st)?Cs.Z.toUnitRGBA(st):tr.O;delete $e.color;const yt=this._resources;(0,G.Wi)(yt)||Te.graphics3DGraphicPatches.push(Rt=>{let Ut;this._hasPerInstanceColor()?(yt.lodRenderer.instanceData.setColor(Rt.instanceIndex,ht),Ut=this._setMaterialTransparencyParams({},st)):Ut=this._setMaterialTransparencyParams({externalColor:ht},st);for(const er of yt.stageResources.materials)er.setParameters(Ut)})}_requiresTerrainElevation(Te){return"absolute-height"!==Te.mode}_applyObjectRotation(Te,Ue,$e){if(!(this._fastUpdates.enabled&&this._fastUpdates.requiresShaderTransformation&&Ue))return(0,je._Z)(Te.heading,Te.tilt,Te.roll,$e)}_computeAnchor(Te,Ue,$e){const st=(0,X.c)();switch($e.anchor){case"center":(0,H.c)(st,(0,oe.be)(Te)),(0,H.o)(st,st);break;case"top":{const ht=(0,oe.be)(Te);(0,H.s)(st,-ht[0],-ht[1],-Te[5]);break}case"bottom":{const ht=(0,oe.be)(Te);(0,H.s)(st,-ht[0],-ht[1],-Te[2]);break}case"relative":{const ht=(0,oe.be)(Te),yt=(0,oe.dp)(Te),Rt=$e.anchorPosition,Ut=Rt?(0,X.f)(Rt.x,Rt.y,Rt.z):X.Z;(0,H.B)(st,yt,Ut),(0,H.a)(st,st,ht),(0,H.o)(st,st);break}default:(0,G.pC)(Ue)?(0,H.o)(st,Ue):(0,H.c)(st,X.Z)}return st}_applyAnchor(Te,Ue,$e){if(this._fastUpdates.enabled&&this._fastUpdates.requiresShaderTransformation)return;const st=this._computeAnchor(Te.resourceBoundingBox,Te.pivotOffset,Ue);st&&(0,Se.v)($e,$e,st)}_hasPerInstanceColor(){return this._drivenProperties.color||this._drivenProperties.opacity}_fastVisualVariableConvertOptions(Te,Ue,$e,st){const ht=(0,G.pC)(Te)?(0,X.d)((0,oe.dp)(Te)):X.O,yt=(0,G.pC)(Te)?this._computeAnchor(Te,st,this.symbolLayer):X.Z,Rt=this._context.renderCoordsHelper.unitInMeters,Ut=(0,je.bD)((0,G.pC)(Ue)?Ue:void 0,Ue,$e,Rt),er=(0,X.f)(this.symbolLayer.tilt||0,this.symbolLayer.roll||0,this.symbolLayer.heading||0);return{modelSize:ht,symbolSize:(0,G.pC)(Ue)?Ue:X.O,unitInMeters:Rt,transformation:{anchor:yt,scale:Ut,rotation:er}}}},line:ur,path:class pv extends Fe.k{constructor(Te,Ue,$e,st){super(Te,Ue,$e,st),this._intrinsicSize=(0,B.f)(1,1),this._upVectorAlignment="path",this._stencilWidth=.1,this.ensureDrapedStatus(!1)}doLoad(){var Te=this;return(0,D.Z)(function*(){const Ue=(0,G.pC)(Te.symbolLayer.width)?Te.symbolLayer.width:Te.symbolLayer.height,$e=(0,G.pC)(Te.symbolLayer.height)?Te.symbolLayer.height:Ue;Te._vvConvertOptions={modelSize:[1,1,1],symbolSize:[Ue,1,$e],unitInMeters:Te._context.renderCoordsHelper.unitInMeters,transformation:{anchor:[0,0,0],scale:[1,1,1],rotation:[0,0,0]},supportedTypes:{size:!0,color:!0,opacity:!0,rotation:!1}},Te._fastUpdates=Te._context.renderer&&Te._context.renderer.visualVariables&&Te._context.renderer.visualVariables.length>0?Vt(Te._context.renderer,Te._vvConvertOptions):{enabled:!1};const st=Te.symbolLayer.anchor||"center";Te._upVectorAlignment="path","heading"===Te.symbolLayer.profileRotation&&(Te._upVectorAlignment="world");const ht=Te.symbolLayer.profile||"circle";switch(ht){case"circle":default:Te._profile=_p.circle(10);break;case"quad":Te._profile=_p.rect()}let yt=[0,0];switch("center"!==st&&(yt={left:[.5,0],right:[-.5,0],top:[0,-.5],bottom:[0,.5]}[st],Te._profile.translate(yt[0],yt[1])),Te.symbolLayer.join||"simple"){case"round":Te._extruder=new lm(0,3);break;case"bevel":Te._extruder=new lm(0,1);break;case"miter":Te._extruder=new lm(.8*Math.PI,1);break;default:Te._extruder=new kC}const Rt=Te.symbolLayer.cap||"butt";switch(Rt){case"none":Te._startCap=new iv,Te._endCap=new iv;break;case"butt":default:Te._startCap=new Nl(Te._profile,0),Te._endCap=new Nl(Te._profile,0,!0);break;case"square":Te._startCap=new Nl(Te._profile,-.5),Te._endCap=new Nl(Te._profile,.5,!0);break;case"round":{const Zr="quad"===ht;Te._startCap=new nv({profile:Te._profile,flip:!1,breakNormals:Zr,subdivisions:3}),Te._endCap=new nv({profile:Te._profile,flip:!0,breakNormals:Zr,subdivisions:3});break}}const Ut=(0,G.U2)(Te.symbolLayer,"material","color"),er=Te._getCombinedOpacityAndColor(Ut),vr=(0,X.d)(er),Pr=er[3],Ur=Pr<1||Te.needsDrivenTransparentPass,qr={diffuse:vr,ambient:vr,opacity:Pr,transparent:Ur,hasVertexColors:!1,hasSlicePlane:Te._context.slicePlaneEnabled,castShadows:Te.symbolLayer.castShadows,cullFace:Ur||"none"===Rt?Ie.Vr.None:Ie.Vr.Back,offsetTransparentBackfaces:!0};if(!Te._drivenProperties.size&&((0,W.s)(Te._intrinsicSize,Ue,$e),!(0,je.ZL)(Te._intrinsicSize[0])||!(0,je.ZL)(Te._intrinsicSize[1])))throw new me.Z("graphics3dpathsymbollayer:invalid-size","Symbol sizes may not be negative values");if(Te._fastUpdates.enabled&&Te._fastUpdates.visualVariables.size||(0,W.b)(Te._intrinsicSize,Te._intrinsicSize,1/Te._context.renderCoordsHelper.unitInMeters),Te._fastUpdates.enabled){const Zr={...qr,...Te._fastUpdates.materialParameters,size:(0,B.b)(Te._intrinsicSize)};Te._material=new pm(Zr)}else qr.hasVertexColors=Te._drivenProperties.color||Te._drivenProperties.opacity,Te._material=new Wt.Gp(qr);Te._material.setParameters({usePBR:Te._context.physicalBasedRenderingEnabled,isSchematic:!0}),Te._context.stage.add(Te._material)})()}destroy(){super.destroy(),this._context.stage.remove(this._material),this._material=null}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry,sT,this.symbolLayer.type))return null;const $e=this.setGraphicElevationContext(Ue,new Be.o);return this._createAs3DShape(Ue,Te.renderingInfo,$e,Ue.uid)}layerOpacityChanged(){const Te=(0,G.U2)(this.symbolLayer,"material","color"),Ue=this._getCombinedOpacity(Te);this._material.setParameters({opacity:Ue,transparent:Ue<1||this.needsDrivenTransparentPass})}layerElevationInfoChanged(Te,Ue){return this.updateGraphics3DGraphicElevationInfo(Te,Ue,Ce.B5)}slicePlaneEnabledChanged(){return this._material.setParameters({hasSlicePlane:this._context.slicePlaneEnabled}),!0}physicalBasedRenderingChanged(){return this._material.setParameters({usePBR:this._context.physicalBasedRenderingEnabled,isSchematic:!0}),!0}pixelRatioChanged(){return!0}applyRendererDiff(Te,Ue){for(const $e in Te.diff){if("visualVariables"!==$e||!yr(this._fastUpdates,Ue,this._vvConvertOptions))return Re.W.Recreate_Symbol;this._material.setParameters(this._fastUpdates.materialParameters)}return Re.W.Fast_Update}getVertexData(Te){let Ue=0;const $e=Te.paths,st=[],ht=Te.spatialReference,yt=this._context.elevationProvider.spatialReference,Rt=this._context.renderCoordsHelper.spatialReference;for(const qr of $e)Ue+=qr.length;const Ut=new Float64Array(3*Ue),er=new Float64Array(3*Ue),vr=new Float64Array(3*Ue);let Pr=0;for(const qr of $e){st.push({index:Pr,numVertices:qr.length});for(const Zr of qr)Ut[Pr++]=Zr[0],Ut[Pr++]=Zr[1],Ut[Pr++]=Te.hasZ?Zr[2]:0}let Ur=!0;return(0,G.pC)(yt)&&!ht.equals(yt)?Ur=(0,ae.CM)(Ut,ht,0,er,yt,0,Ue):this._copyVertices(Ut,0,er,0,Ue),(0,G.pC)(yt)&&!yt.equals(Rt)?(0,ae.CM)(er,yt,0,vr,Rt,0,Ue):this._copyVertices(er,0,vr,0,Ue),{pathVertexDataInfos:st,vertexDataGS:Ut,vertexDataES:er,vertexDataRS:vr,projectionSuccess:Ur,terrainElevation:0}}_copyVertices(Te,Ue,$e,st,ht){Ue*=3,st*=3;for(let yt=0;yt0){for(let qr=0;qr0){const Zr=new $t.T({geometries:yt,materials:Rt,transformations:Ut,metadata:{layerUid:this._context.layer.uid,graphicUid:st}}),Es=new ue.z(this,Zr,yt,null,null,tu,$e);return Es.alignedSampledElevation=Ur.terrainElevation,Es.needsElevationUpdates=(0,Ce.B5)($e.mode),Es}}else 0!==ht.paths.length&&ht.paths.some(qr=>qr.length>0)||this.logger.warn("PathSymbol3DLayer geometry failed to be created (no paths were defined)");return null}},fill:Cm,extrude:class gr extends Fe.k{constructor(Te,Ue,$e,st){super(Te,Ue,$e,st),this.ensureDrapedStatus(!1)}doLoad(){var Te=this;return(0,D.Z)(function*(){if(!Te._drivenProperties.size){const Ut=(0,je.bh)(Te._getSymbolSize());if(Ut)throw new me.Z("graphics3dextrudesymbollayer:invalid-size",Ut)}const Ue=(0,G.U2)(Te.symbolLayer,"material","color"),$e=Te._getCombinedOpacityAndColor(Ue),st=(0,X.d)($e),ht=$e[3],yt=ht<1||Te.needsDrivenTransparentPass,Rt={usePBR:Te._context.physicalBasedRenderingEnabled,isSchematic:!0,diffuse:st,ambient:st,opacity:ht,transparent:yt,cullFace:yt?Ie.Vr.None:Ie.Vr.Back,hasVertexColors:!0,hasSlicePlane:Te._context.slicePlaneEnabled,castShadows:Te.symbolLayer.castShadows,offsetTransparentBackfaces:!0};Te._material=new Wt.Gp(Rt),Te._bottomMaterial=new Wt.Gp({...Rt,cullFace:Ie.Vr.Back}),Te._context.stage.add(Te._material),Te._context.stage.add(Te._bottomMaterial)})()}destroy(){super.destroy(),this._material&&(this._context.stage.remove(this._material),this._context.stage.remove(this._bottomMaterial))}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry,pr,this.symbolLayer.type))return null;const $e=this._getVertexOpacityAndColor(Te.renderingInfo,255),st=this.setGraphicElevationContext(Ue,new Be.o);return this._createAs3DShape(Ue,Te.renderingInfo,$e,st,Ue.uid)}layerOpacityChanged(Te,Ue){const $e=(0,G.U2)(this.symbolLayer,"material","color"),st=this._getCombinedOpacity($e),ht=st<1||this.needsDrivenTransparentPass;this._material.setParameters({opacity:st,transparent:ht}),this._bottomMaterial.setParameters({opacity:st,transparent:ht});const yt=this._getLayerOpacity();Te.forEach(Rt=>{const Ut=Ue(Rt);(0,G.pC)(Ut)&&Ut.layerOpacityChanged(yt,this._context.isAsync)})}layerElevationInfoChanged(Te,Ue){return this.updateGraphics3DGraphicElevationInfo(Te,Ue,Ce.B5)}slicePlaneEnabledChanged(Te,Ue){return this._material.setParameters({hasSlicePlane:this._context.slicePlaneEnabled}),this._bottomMaterial.setParameters({hasSlicePlane:this._context.slicePlaneEnabled}),Te.forEach($e=>{const st=Ue($e);(0,G.pC)(st)&&st.slicePlaneEnabledChanged(this._context.slicePlaneEnabled,this._context.isAsync)}),!0}physicalBasedRenderingChanged(){return this._material.setParameters({usePBR:this._context.physicalBasedRenderingEnabled,isSchematic:!0}),this._bottomMaterial.setParameters({usePBR:this._context.physicalBasedRenderingEnabled,isSchematic:!0}),!0}pixelRatioChanged(){return!0}_getExtrusionSize(Te){let Ue;return Ue=Te.size&&this._drivenProperties.size?(0,Ke.sV)(Te.size,2)??0:this._getSymbolSize(),Ue/=this._context.renderCoordsHelper.unitInMeters,Ue}applyRendererDiff(Te,Ue){return this._drivenPropertiesChanged(Ue)?Re.W.Recreate_Symbol:Re.W.Recreate_Graphics}queryForSnapping(Te,Ue,$e,st){var ht=this;return(0,D.Z)(function*(){const yt=ht._getExtrusionSize($e)*ht._context.renderCoordsHelper.unitInMeters/(0,_e._R)(Ue),{objectId:Rt,target:Ut}=Te,er=(0,ge.d9)(Ut);switch(er.z=(er.z??0)+yt,Te.type){case"edge":{const{start:vr,end:Pr}=Te,Ur=(0,ge.d9)(vr),qr=(0,ge.d9)(Pr);return Ur.z=(Ur.z??0)+yt,qr.z=(qr.z??0)+yt,[(0,ze.p)(Rt,er,1/0,Ur,qr)]}case"vertex":return[(0,ze.u)(Rt,er,1/0),(0,ze.p)(Rt,Ut,1/0,Ut,er)];default:return[]}})()}_getSymbolSize(){return this.symbolLayer.size??1}_createAs3DShape(Te,Ue,$e,st,ht){const yt=Xe(Te.geometry);if((0,G.Wi)(yt))return null;if(0===yt.rings.length||!yt.rings.some(Tp=>Tp.length>0))return this._logGeometryValidationWarnings(yt.rings,"rings","ExtrudeSymbol3DLayer"),null;const Rt=ot(yt,this._context.elevationProvider,this._context.renderCoordsHelper,st);this._logGeometryCreationWarnings(Rt,yt.rings,"rings","ExtrudeSymbol3DLayer");const Ut=(0,je.zE)(yt);if((0,G.Wi)(Ut))return null;const er=new Array,vr=new Array,Pr=new Array,Ur=(0,oe.Ue)(),qr=(0,ye.c)(),Zr=(0,X.c)(),Es=this._context.renderCoordsHelper.viewingMode===We.JY.Global;Es||this._context.renderCoordsHelper.worldUpAtPosition(null,Zr),(0,ae.Bm)(yt.spatialReference,[Ut.x,Ut.y,0],qr,this._context.renderCoordsHelper.spatialReference);const si=(0,ye.c)();(0,Se.a)(si,qr);const ei=(0,be.c)();(0,De.b)(ei,si);const{polygons:Rs,mapPosition:fi,position:Pi}=Rt,mn=Pi.length/3,Di=new Float64Array(3*mn*6),qn=new Float64Array(3*mn*6),xa=new Float64Array(3*mn*6),Li=new Float64Array(1*mn*6);let Oi=0;for(let Tp=0;Tp{this.updateGraphicElevationContext(st,$e)}),Ce.lO.UPDATE}slicePlaneEnabledChanged(Te,Ue){return _T(Te,Ue,$e=>{for(const st of $e.stageObject.geometryRecords)st.material.setParameters({hasSlicePlane:this._context.slicePlaneEnabled})}),!0}physicalBasedRenderingChanged(){return!0}pixelRatioChanged(){return!1}updateGraphicElevationContext(Te,Ue){this.setGraphicElevationContext(Te,Ue.elevationContext,Ue.metadata.elevationOffset),Ue.needsElevationUpdates=(0,Ce.Xf)(Ue.elevationContext.mode)||"absolute-height"===Ue.elevationContext.mode}_defaultElevationInfoNoZ(){return mT}_createAs3DShape(Te,Ue,$e,st,ht,yt){const Rt=this.setGraphicElevationContext(Te,new Be.o,st.elevationOffset),Ut="polyline"===(0,G.U2)(Te.geometry,"type"),er=Te.uid;let vr=null,Pr=null;if((0,G.Wi)(yt)){const Oi=(0,Gt.mq)(st.horizontalPlacement);vr=new xu($e,Oi,this._textRenderParameters);let jn=null;if((0,G.pC)(this._context.sharedResources.textures)){Pr=this._context.sharedResources.textures.fromData(vr.key,()=>(0,G.Wg)(vr).create(),()=>{(0,G.pC)(jn)&&jn.release()});const Do=this._context.stage.renderView.textureRepository.acquire(Pr.texture.id);if((0,G.Wi)(Do)||(0,Z.y8)(Do))return Pr.release(),null;jn=Do}}const Ur=function fT(ft,Te){if("baseline"===Te.verticalPlacement){const $e=Gt.$A[Te.horizontalPlacement],st=(0,G.pC)(ft)?ft.baselineAnchorY:0;return(0,B.f)($e,st)}const Ue=(0,Gt.QW)(Te.horizontalPlacement,Te.verticalPlacement);return Gt.yY[Ue]}(vr,st),qr={occlusionTest:!0,screenOffset:st.screenOffset,anchorPosition:Ur,polygonOffset:!0,color:[1,1,1,1],centerOffsetUnits:st.centerOffsetUnits,debugDrawLabelBorder:st.debugDrawLabelBorder,drawInSecondSlot:!0};if((0,G.pC)(Pr)&&(qr.textureId=Pr.texture.id),(0,G.pC)(yt)&&(qr.textureId=yt.id),(0,G.pC)(st.verticalOffset)){const{screenLength:Oi,minWorldLength:jn,maxWorldLength:Do}=st.verticalOffset;qr.verticalOffset={screenLength:(0,ct.F2)(Oi),minWorldLength:jn||0,maxWorldLength:(0,G.pC)(Do)?Do:1/0}}if(this._context.screenSizePerspectiveEnabled){const{screenSizePerspectiveSettings:Oi,screenSizePerspectiveSettingsLabels:jn}=this._context.sharedResources;qr.screenSizePerspective=jn.overridePadding(this._textRenderParameters.haloSize+this._textRenderParameters.definition.background.padding[0]),qr.screenSizePerspectiveAlignment=Oi}let Zr;if(Ut&&(qr.shaderPolygonOffset=1e-4),qr.hasSlicePlane=this._context.slicePlaneEnabled,(0,G.pC)(ht)){const Oi=JSON.stringify(qr);Zr=ht.get(Oi),(0,G.Wi)(Zr)&&(Zr=new na.A(qr),ht.add(Oi,Zr))}else Zr=new na.A(qr);const Es=[Zr],si=st.translation,ei=(0,G.pC)(vr)?[vr.displayWidth,vr.displayHeight]:[0,0],fi=[(0,xi.dV)(mv,si,null,ei,st.centerOffset,[0,0],null)],mn=(0,fr.km)(this._context,Ue,fi,Es,Rt,this._context.layer.uid,er);if(null===mn)return null;const Di=new ue.z(this,mn.object,fi,(0,G.Wi)(ht)?Es:null,Pr,Ir.j3,Rt);Di.alignedSampledElevation=mn.sampledElevation,Di.needsElevationUpdates=(0,Ce.Xf)(Rt.mode)||"absolute-height"===Rt.mode;const{displayWidth:qn,displayHeight:xa}=(0,G.pC)(vr)?vr:st;return Di.getScreenSize=(Oi=(0,B.a)())=>(Oi[0]=qn,Oi[1]=xa,Oi),Di.metadata={labelText:$e,elevationOffset:st.elevationOffset},(0,fr.dO)(Di,Ue,this._context.elevationProvider),Di}},water:cc},vv={"mesh-3d":{fill:class hl extends Fe.k{constructor(Te,Ue,$e,st){super(Te,Ue,$e,st),this._materials=new Map,this._textures=new Map,this.ensureDrapedStatus(!1)}doLoad(){var Te=this;return(0,D.Z)(function*(){rt.Z.DRAW_MESH_GEOMETRY_NORMALS&&(Te._debugVertexNormalMaterial=new ri.Y({color:[1,0,1,1]}),Te._debugFaceNormalMaterial=new ri.Y({color:[0,1,1,1]}))})()}destroy(){super.destroy(),this._context.stage.removeMany(Array.from(this._materials.values(),Te=>Te.material)),this._context.stage.removeMany(Array.from(this._textures.values())),this._materials.clear(),this._textures.clear()}createGraphics3DGraphic(Te){const Ue=Te.graphic;if(!this._validateGeometry(Ue.geometry,Qn,"fill on mesh-3d"))return null;const $e=this.setGraphicElevationContext(Ue,new Be.o);return this._createAs3DShape(Ue,Te.renderingInfo,$e,Ue.uid)}layerOpacityChanged(Te,Ue){const $e=this._getLayerOpacity();this._materials.forEach(st=>{st.material.setParameters({layerOpacity:$e});const ht=st.material.parameters;this._setMaterialTransparentParameter(ht,st),st.material.setParameters({transparent:ht.transparent})}),Te.forEach(st=>{const ht=Ue(st);(0,G.pC)(ht)&&ht.layerOpacityChanged($e,this._context.isAsync)})}layerElevationInfoChanged(Te,Ue){return this.updateGraphics3DGraphicElevationInfo(Te,Ue,Ce.B5)}slicePlaneEnabledChanged(Te,Ue){return this._materials.forEach($e=>{$e.material.setParameters({hasSlicePlane:this._context.slicePlaneEnabled})}),Te.forEach($e=>{const st=Ue($e);(0,G.pC)(st)&&st.slicePlaneEnabledChanged(this._context.slicePlaneEnabled,this._context.isAsync)}),!0}physicalBasedRenderingChanged(){const Te=this._usePBR();return this._materials.forEach(Ue=>Ue.material.setParameters({usePBR:Te})),!0}pixelRatioChanged(){return!0}_requiresSymbolVertexColors(){return this._drivenProperties.color||this._drivenProperties.opacity}_colorOrTextureUid(Te){return(0,G.Wi)(Te)?"-":Te instanceof Cs.Z?Te.toHex():Te.contentHash}_materialPropertiesDefault(Te,Ue){const $e=this._requiresSymbolVertexColors(),st=!!Te.vertexAttributes.color,ht=!!Te.vertexAttributes.tangent;return{hasSymbolVertexColors:$e,hasVertexColors:st,hasVertexTangents:ht,uid:`vc:${st},vt:${ht},vct${Ue},svc:${$e}`}}_materialProperties(Te,Ue,$e){const st=this._materialPropertiesDefault(Te,$e);if(!Ue.material)return st;const{color:ht,colorTexture:yt,normalTexture:Rt,doubleSided:Ut,alphaCutoff:er,alphaMode:vr}=Ue.material,Pr=this._colorOrTextureUid(ht),Ur=this._colorOrTextureUid(yt),qr=this._colorOrTextureUid(Rt);if(st.color=ht,st.colorTexture=yt,st.normalTexture=Rt,st.uid=`${st.uid},cmuid:${Pr},ctmuid:${Ur},ntmuid:${qr},ds:${Ut},ac:${er},am:${vr}`,Ue.material instanceof Nr.Z){const{metallic:Zr,roughness:Es,metallicRoughnessTexture:si,emissiveColor:ei,emissiveTexture:Rs,occlusionTexture:fi}=Ue.material,Pi=this._colorOrTextureUid(si),mn=this._colorOrTextureUid(ei),Di=this._colorOrTextureUid(Rs),qn=this._colorOrTextureUid(fi);st.metallic=Zr,st.roughness=Es,st.metallicRoughnessTexture=si,st.emissiveColor=ei,st.emissiveTexture=Rs,st.occlusionTexture=fi,st.colorTextureTransform=Ue.material.colorTextureTransform,st.normalTextureTransform=Ue.material.normalTextureTransform,st.emissiveTextureTransform=Ue.material.emissiveTextureTransform,st.occlusionTextureTransform=Ue.material.occlusionTextureTransform,st.metallicRoughnessTextureTransform=Ue.material.metallicRoughnessTextureTransform,st.uid=`${st.uid},mrm:${Zr},mrr:${Es},mrt:${Pi},emuid:${mn},etmuid:${Di},otmuid:${qn}`}return st}_setInternalColorValueParameters(Te,Ue){Ue.diffuse=Cs.Z.toUnitRGB(Te),Ue.opacity=Te.a}_getLoadableTextureResource(Te){return Te.data?Te.data:Te.url}_getInternalTextureId(Te){const Ue=this._getInternalTexture(Te,Ie.JJ.Opaque);return(0,G.pC)(Ue)?Ue.id:null}_getInternalTexture(Te,Ue){const $e=this._getLoadableTextureResource(Te);if(!$e)return null;const st=`${Te.contentHash}/${Ue}`;let ht=this._textures.get(st);return ht||(ht=new Mo.x($e,{mipmap:!0,wrap:this._castTextureWrap(Te.wrap),noUnpackFlip:!0,preMultiplyAlpha:Ue!==Ie.JJ.Opaque}),this._textures.set(st,ht),this._context.stage.add(ht),this._context.stage.loadImmediate(ht)),ht}_castTextureWrap(Te="repeat"){if("string"==typeof Te){const Ue=this._castTextureWrapIndividual(Te);return{s:Ue,t:Ue}}return{s:this._castTextureWrapIndividual(Te.horizontal),t:this._castTextureWrapIndividual(Te.vertical)}}_castTextureWrapIndividual(Te){switch(Te){case"clamp":return Ci.e8.CLAMP_TO_EDGE;case"mirror":return Ci.e8.MIRRORED_REPEAT;default:return Ci.e8.REPEAT}}_setInternalMaterialParameters(Te,Ue){if((0,G.pC)(Te.color)&&this._setInternalColorValueParameters(Te.color,Ue),(0,G.pC)(Te.colorTexture)){const $e=this._getInternalTexture(Te.colorTexture,Ue.textureAlphaMode);(0,G.pC)($e)?(Ue.textureId=$e.id,Ue.textureAlphaPremultiplied=!!$e.params.preMultiplyAlpha):Ue.textureId=void 0}(0,G.pC)(Te.normalTexture)&&(Ue.normalTextureId=this._getInternalTextureId(Te.normalTexture)),(0,G.pC)(Te.emissiveColor)&&(Ue.emissiveFactor=Cs.Z.toUnitRGB(Te.emissiveColor)),(0,G.pC)(Te.emissiveTexture)&&(Ue.emissiveTextureId=this._getInternalTextureId(Te.emissiveTexture)),(0,G.pC)(Te.occlusionTexture)&&(Ue.occlusionTextureId=this._getInternalTextureId(Te.occlusionTexture)),(0,G.pC)(Te.metallicRoughnessTexture)&&(Ue.metallicRoughnessTextureId=this._getInternalTextureId(Te.metallicRoughnessTexture)),Ue.colorTextureTransformMatrix=(0,es.i)(Te.colorTextureTransform),Ue.normalTextureTransformMatrix=(0,es.i)(Te.normalTextureTransform),Ue.occlusionTextureTransformMatrix=(0,es.i)(Te.occlusionTextureTransform),Ue.emissiveTextureTransformMatrix=(0,es.i)(Te.emissiveTextureTransform),Ue.metallicRoughnessTextureTransformMatrix=(0,es.i)(Te.metallicRoughnessTextureTransform)}_setExternalMaterialParameters(Te){const Ue=this._drivenProperties.color;let $e=(0,G.pC)(this.symbolLayer.material)?this.symbolLayer.material.colorMixMode:null;if(Ue)Te.externalColor=tr.O;else{const st=(0,G.pC)(this.symbolLayer.material)?this.symbolLayer.material.color:null;(0,G.pC)(st)?Te.externalColor=Cs.Z.toUnitRGBA(st):($e=null,Te.externalColor=tr.O)}$e&&(Te.colorMixMode=$e),Te.castShadows=!!this.symbolLayer.castShadows}_hasTransparentVertexColors(Te){const Ue=Te.vertexAttributes.color;if((0,G.Wi)(Ue))return!1;for(let $e=3;$eht&&(ht=Rt)}if($e<=ht)return this.logger.warn(`Vertex index ${ht} is out of bounds of the mesh position buffer`),!1}else if($e%3!=0)return this.logger.warn("Mesh position buffer length must be a multiple of 9 if no component faces are defined (3 values per vertex * 3 vertices per triangle)"),!1;return!0}_getOrCreateFaces(Te,Ue){return Ue.faces?Ue.faces:(0,Ks.p)(Te.vertexAttributes.position.length/3)}_isOutsideClippingArea(Te){if(!this._context.clippingExtent)return!1;const Ue=Te.vertexAttributes&&Te.vertexAttributes.position;if(!Ue)return!1;const $e=this._context.elevationProvider.spatialReference;let st;const ht=Ue.length/3;return(0,G.pC)($e)&&!Te.spatialReference.equals($e)?(st=new Float64Array(Ue.length),(0,ae.CM)(Te.vertexAttributes.position,Te.spatialReference,0,st,$e,0,ht)):st=Ue,(0,oe.cS)(eh),(0,oe.G1)(eh,st,0,ht),!(0,oe.Zp)(eh,this._context.clippingExtent)}_createGeometryInfo(Te,Ue,$e){if(!(0,ae.Up)(Te.spatialReference,this._context.graphicsCoreOwner.view.spatialReference))return this.logger.warn("Geometry spatial reference is not compatible with the view"),null;if(this._isOutsideClippingArea(Te))return null;const st=this._createBuffers(Te,Ue);if((0,G.Wi)(st))return null;const{positionBuffer:ht,uvBuffer:yt,colorBuffer:Rt,symbolColorBuffer:Ut,normalBuffer:er,tangentBuffer:vr,objectTransformation:Pr,geometryTransformation:Ur}=st,qr=this._getOrCreateComponents(Te),Zr=[],Es=[],si=[];let ei=!1;for(const Rs of qr){if(!this._validateFaces(Te,Rs))return null;const fi=this._getOrCreateFaces(Te,Rs);if(0===fi.length)continue;const Pi=this._createComponentNormals(ht,er,Rs,fi);Pi.didFlipNormals&&(ei=!0);const mn=[[Pe.T.POSITION,{size:3,data:ht,exclusive:!0}],[Pe.T.NORMAL,{size:3,data:Pi.normals,exclusive:!0}]],Di=[[Pe.T.POSITION,fi],[Pe.T.NORMAL,Pi.indices]];(0,G.pC)(Rt)&&(mn.push([Pe.T.COLOR,{size:4,data:Rt,exclusive:!0}]),Di.push([Pe.T.COLOR,fi])),(0,G.pC)(Ut)&&(mn.push([Pe.T.SYMBOLCOLOR,{size:4,data:Ut,exclusive:!0}]),Di.push([Pe.T.SYMBOLCOLOR,new Array(fi.length).fill(0)])),(0,G.pC)(yt)&&(mn.push([Pe.T.UV0,{size:2,data:yt,exclusive:!0}]),Di.push([Pe.T.UV0,fi])),(0,G.pC)(vr)&&(mn.push([Pe.T.TANGENT,{size:4,data:vr,exclusive:!0}]),Di.push([Pe.T.TANGENT,fi]));const qn=this._context.stage.renderView._getObjectAndLayerIdColor({graphicUid:$e,layerUid:this._context.layer.uid}),xa=new Ge.Z(mn,Di,Ie.MX.Triangle,qn);Zr.push(xa),Es.push(Ur),si.push(this._getOrCreateMaterial(Te,Rs))}return ei&&this.logger.warn("Normals have been automatically flipped to be consistent with the counter clock wise face winding order. It is better to generate mesh geometries that have consistent normals."),{geometries:Zr,transformations:Es,materials:si,objectTransformation:Pr}}_createEdgeMaterial(){const Te={opacity:this._getLayerOpacity()};return(0,Je.hM)(this.symbolLayer,Te)}}}};class vT extends dp.w{constructor(Te,Ue,$e){super(Ue.schedule),this._symbol=Te,this._context=Ue,this._backgroundLayers=$e,this._destroyed=!1,this.symbolLayers=new Array,this.referenced=0,this._extentPadding=0}set symbol(Te){this._symbol=Te;for(let Ue=0;Ue{Ue.symbolLayers[yt]=null,Ut.destroy()})),Ue.symbolLayers[yt]=Ut}yield(0,R.Ed)(Ue.symbolLayers,function(){var yt=(0,D.Z)(function*(Rt,Ut){if((0,G.pC)(Rt))try{yield Rt.load(),Ue._extentPadding+=Math.max(Ue._extentPadding,Rt.extentPadding)}catch{Ue.symbolLayers[Ut]=null}});return function(Rt,Ut){return yt.apply(this,arguments)}}());for(const yt of ht)yt?.remove();if(ht.length=0,(0,Z.k_)(Te),Ue.symbolLayers.length&&!Ue.symbolLayers.some(yt=>!!yt))throw new Error})()}getSymbolLayerSize(Te){const Ue=this.symbolLayers[Te];return(0,G.pC)(Ue)?Ue.getCachedSize():null}get extentPadding(){return this._extentPadding}get symbologySnappingSupported(){return this.symbolLayers.some(Te=>(0,G.pC)(Te)&&Te.queryForSnapping)}createGraphics3DGraphic(Te,Ue){const $e=Te.graphic,st=new Array(this.symbolLayers.length);for(let yt=0;yt(0,G.U2)(Te,"complexity")))}globalPropertyChanged(Te,Ue){const $e=this.symbolLayers.length;for(let st=0;st<$e;st++){const ht=this.symbolLayers[st],yt=Rt=>{const Ut=Rt.graphics[st];return Ut instanceof ue.z?Ut:null};if((0,G.pC)(ht)&&!ht.globalPropertyChanged(Te,Ue,yt))return!1}return!0}applyRendererDiff(Te,Ue){return this.loadStatus!==dp.P.LOADED?Re.W.Recreate_Symbol:this.symbolLayers.reduce(($e,st)=>$e!==Re.W.Recreate_Symbol&&(0,G.pC)(st)?Math.min($e,st.applyRendererDiff(Te,Ue)):$e,Re.W.Fast_Update)}prepareSymbolPatch(Te){if(this.loadStatus===dp.P.FAILED||"partial"!==Te.diff.type)return;const Ue=Te.diff.diff;if(!Ue.symbolLayers||"partial"!==Ue.symbolLayers.type)return;const $e=Ue.symbolLayers.diff;this.symbolLayers.forEach((st,ht)=>{if((0,G.Wi)(st))return;const yt=$e[ht];if(yt){const Rt={diff:yt,graphics3DGraphicPatches:[],symbolLayerStatePatches:[]};st.prepareSymbolLayerPatch(Rt),Te.symbolStatePatches.push(...Rt.symbolLayerStatePatches),Rt.graphics3DGraphicPatches.length&&Te.graphics3DGraphicPatches.push((Ut,er)=>{const vr=Ut.graphics[ht];(0,G.pC)(vr)&&Rt.graphics3DGraphicPatches.forEach(Pr=>Pr(vr,er))})}})}updateGeometry(Te,Ue){for(let $e=0;$e{(0,G.Wi)(st)||(st.loadStatus===dp.P.LOADING?Te++:st.isFastUpdatesEnabled()?$e++:Ue++)}),{loading:Te,slow:Ue,fast:$e}}queryForSnapping(Te,Ue,$e,st){var ht=this;return(0,D.Z)(function*(){const yt=ht.symbolLayers.filter(G.pC).filter(Ut=>(0,G.pC)(Ut.queryForSnapping)).map(Ut=>Ut.queryForSnapping(Te,Ue,$e,st)),Rt=yield Promise.all(yt);return(0,Z.k_)(st),Rt.flat()})()}destroy(){if(this.destroyed)console.error("Graphics3DSymbol.destroy called when already destroyed!");else{super.destroy();for(const Te of this.symbolLayers)(0,G.pC)(Te)&&Te.destroy();this.symbolLayers.length=0,this._destroyed=!0}}get destroyed(){return this._destroyed}}const q0={renderPriority:0,renderPriorityStep:1,ignoreDrivers:!1}},18422:(nt,Ae,v)=>{"use strict";v.d(Ae,{d:()=>se,k:()=>de});var D=v(91558),G=(v(8314),v(63290)),Z=v(62208),Q=v(28093),$=v(4794),W=v(81468),B=v(79112),H=v(74746),X=v(67225),te=v(64538),ae=v(87930),oe=v(97161);const le=G.Z.getLogger("esri.views.3d.layers.graphics.Graphics3DSymbolLayer");class de extends ae.w{constructor(J,ce,ue,pe){super(ue.schedule),this._context=ue,this._elevationInfoOverride=null,this._ignoreDrivers=!1,this._drivenProperties={color:!1,opacity:!1,opacityAlwaysOpaque:!0,size:!1},this.complexity=null,this.logger=le,this._elevationOptions={supportsOffsetAdjustment:!1,supportsOnTheGround:!0},this.symbol=J,this.symbolLayer=ce,this._renderPriority=pe.renderPriority,this._renderPriorityStep=pe.renderPriorityStep,this._elevationContext=new B.o,this.complexity=this.computeComplexity(),this._ignoreDrivers=pe.ignoreDrivers,this._ignoreDrivers||(this._drivenProperties=re(this._context.renderer)),this._updateElevationContext()}getCachedSize(){return null}get extentPadding(){return 0}_drivenPropertiesChanged(J){if(this._ignoreDrivers)return!1;const ce=this._drivenProperties,ue=re(J);return ue.color!==ce.color||ue.opacity!==ce.opacity||ue.opacityAlwaysOpaque!==ce.opacityAlwaysOpaque||ue.size!==ce.size}get needsDrivenTransparentPass(){return this._drivenProperties.opacity&&!this._drivenProperties.opacityAlwaysOpaque}_logGeometryCreationWarnings(J,ce,ue,pe){const me="polygons"in J?J.polygons:null,ge=`${pe} geometry failed to be created`;let _e=null;J.projectionSuccess?!this._logGeometryValidationWarnings(ce,ue,pe)&&me&&0===me.length&&"rings"===ue&&ce.length>0&&ce[0].length>2&&(_e=`${ge} (filled rings should use clockwise winding - try reversing the order of vertices)`):_e=`${ge} (failed to project geometry to view spatial reference)`,_e&&le.warnOncePerTick(_e)}_logGeometryValidationWarnings(J,ce,ue){const pe=`${ue} geometry failed to be created`;return!J.length||1===J.length&&!J[0].length?(le.warnOncePerTick(`${pe} (no ${ce} were defined)`),!0):!(Array.isArray(J)&&Array.isArray(J[0])||(le.warnOncePerTick(`${pe} (${ce} should be defined as a 2D array)`),0))}_validateGeometry(J,ce=null,ue=null){if((0,Z.pC)(ce)&&!ce.includes(J.type))return this.logger.warn("unsupported geometry type for "+ue+` symbol: ${J.type}`),!1;if("point"===J.type){const pe=J;if(!isFinite(pe.x)||!isFinite(pe.y))return le.warn("point coordinate is not a valid number, graphic skipped"),!1}return!0}_defaultElevationInfoNoZ(){return j}_defaultElevationInfoZ(){return Y}_updateElevationContext(){(0,Z.pC)(this._elevationInfoOverride)?(this._elevationContext.setFromElevationInfo(this._elevationInfoOverride),this._elevationContext.updateFeatureExpressionInfoContext(null)):this._context.layer.elevationInfo?(this._elevationContext.setFromElevationInfo(this._context.layer.elevationInfo),this._elevationContext.updateFeatureExpressionInfoContext(this._context.featureExpressionInfoContext)):this._elevationContext.reset()}getDefaultElevationInfo(J){return J.hasZ?this._defaultElevationInfoZ():this._defaultElevationInfoNoZ()}getGeometryElevationMode(J,ce=this.getDefaultElevationInfo(J)){return this._elevationContext.mode||ce.mode}setElevationInfoOverride(J){this._elevationInfoOverride=J,this._updateElevationContext()}setGraphicElevationContext(J,ce){const ue=(0,Z.Wg)(J.geometry),pe=this.getDefaultElevationInfo(ue);ce.unit=null!=this._elevationContext.unit?this._elevationContext.unit:pe.unit,ce.mode=this.getGeometryElevationMode(ue,pe),ce.offsetMeters=(0,Z.Pt)(this._elevationContext.meterUnitOffset,(0,Z.Pt)(pe.offset,0));const he=!this._elevationOptions.supportsOnTheGround&&"on-the-ground"===ce.mode;return he&&(ce.mode="relative-to-ground",ce.offsetMeters=0),ce.updateFeatureExpressionInfoContext(he?H.O$:this._elevationContext.featureExpressionInfoContext,J,this._context.layer),ce}prepareSymbolLayerPatch(J){}updateGeometry(J,ce){return!1}onRemoveGraphic(J){}_getLayerOpacity(){return this._context.graphicsCoreOwner&&"fullOpacity"in this._context.graphicsCoreOwner?this._context.graphicsCoreOwner.fullOpacity:this._context.layer.opacity??1}_getCombinedOpacity(J,ce=ee){let ue=1;return this.draped||(ue*=this._getLayerOpacity()),this._drivenProperties.opacity||((0,Z.pC)(J)?ue*=J.a:ce.hasIntrinsicColor||(ue=0)),ue}_getCombinedOpacityAndColor(J,ce=ee){const ue=this._getCombinedOpacity(J,ce);if(this._drivenProperties.color)return(0,X.Uu)(null,ue);const pe=(0,Z.pC)(J)?D.Z.toUnitRGB(J):Q.O;return(0,X.Uu)(pe,ue)}_getVertexOpacityAndColor(J,ce=null){const he=(0,X.Uu)(this._drivenProperties.color?J.color:null,this._drivenProperties.opacity?J.opacity:null);return(0,Z.pC)(ce)&&(he[0]*=ce,he[1]*=ce,he[2]*=ce,he[3]*=ce),he}isFastUpdatesEnabled(){return this._fastUpdates&&this._fastUpdates.enabled}computeComplexity(){return(0,oe.u)(this.symbol,this.symbolLayer)}globalPropertyChanged(J,ce,ue){switch(J){case"opacity":return this.layerOpacityChanged(ce,ue),!0;case"elevationInfo":{const pe=this._elevationContext.mode;return this._updateElevationContext(),this.layerElevationInfoChanged(ce,ue,pe)!==W.lO.RECREATE}case"slicePlaneEnabled":return this.slicePlaneEnabledChanged(ce,ue);case"physicalBasedRenderingEnabled":return this.physicalBasedRenderingChanged();case"pixelRatio":return this.pixelRatioChanged();default:return!1}}updateGraphics3DGraphicElevationInfo(J,ce,ue){let pe=W.lO.UPDATE;return J.forEach(he=>{const me=ce(he);(0,Z.pC)(me)?(this.setGraphicElevationContext(he.graphic,me.elevationContext),me.needsElevationUpdates=ue(me.elevationContext.mode)):pe=W.lO.RECREATE}),pe}applyRendererDiff(J,ce){return te.W.Recreate_Symbol}getFastUpdateAttrValues(J){if(!this._fastUpdates.enabled)return null;const ce=this._fastUpdates.visualVariables,ue=ce.size?se(ce.size.field,J):0,pe=ce.color?se(ce.color.field,J):0,he=ce.opacity?se(ce.opacity.field,J):0;return(0,$.f)(ue,pe,he,0)}get draped(){return this._draped}ensureDrapedStatus(J){return null==this._draped?(this._draped=J,!0):(J!==this.draped&&le.warnOnce("A symbol can only produce either draped or non-draped visualizations. Use two separate symbol instances for draped and non-draped graphics if necessary."),!1)}test(){return{drivenProperties:this._drivenProperties,getVisVarFields:()=>({size:this._fastUpdates?.visualVariables?.size?.field??null,color:this._fastUpdates?.visualVariables?.color?.field??null,opacity:this._fastUpdates?.visualVariables?.opacity?.field??null,rotation:this._fastUpdates?.visualVariables?.rotation?.field??null})}}}function se(ie,J){const ce=null!=ie?J.attributes[ie]:0;return null!=ce&&isFinite(ce)?ce:0}function re(ie){const J={color:!1,opacity:!1,opacityAlwaysOpaque:!0,size:!1};return ie&&"visualVariables"in ie&&ie.visualVariables&&ie.visualVariables.forEach(ce=>{switch(ce.type){case"color":if(J.color=!0,ce.stops)for(let ue=0;ue{"use strict";v.d(Ae,{Z:()=>$});var D=v(15861),R=v(62208),G=v(64538),Z=v(87930),Q=v(97161);class $ extends Z.w{constructor(B,H,X){super(H),this.symbol=B,this._convert=X,this.symbologySnappingSupported=!1,this.graphics3DSymbol=null,this.referenced=0}getSymbolLayerSize(B){return(0,R.pC)(this.graphics3DSymbol)?this.graphics3DSymbol.getSymbolLayerSize(B):null}get symbolLayers(){return(0,R.pC)(this.graphics3DSymbol)?this.graphics3DSymbol.symbolLayers:[]}get extentPadding(){return(0,R.pC)(this.graphics3DSymbol)?this.graphics3DSymbol.extentPadding:0}doLoad(B){var H=this;return(0,D.Z)(function*(){const X=yield H.symbol.fetchSymbol({signal:B});X.id=H.symbol.id,H.graphics3DSymbol=H._convert(X),(0,R.pC)(H.graphics3DSymbol)&&(yield H.graphics3DSymbol.load())})()}createGraphics3DGraphic(B){return(0,R.pC)(this.graphics3DSymbol)?this.graphics3DSymbol.createGraphics3DGraphic(B,this):null}get complexity(){return(0,R.pC)(this.graphics3DSymbol)?this.graphics3DSymbol.complexity:Q.WU}globalPropertyChanged(B,H){return!!(0,R.pC)(this.graphics3DSymbol)&&this.graphics3DSymbol.globalPropertyChanged(B,H)}applyRendererDiff(B,H){return(0,R.pC)(this.graphics3DSymbol)?this.graphics3DSymbol.applyRendererDiff(B,H):G.W.Recreate_Symbol}prepareSymbolPatch(B){(0,R.pC)(this.graphics3DSymbol)&&this.graphics3DSymbol.prepareSymbolPatch(B)}updateGeometry(B,H){return!!(0,R.pC)(this.graphics3DSymbol)&&this.graphics3DSymbol.updateGeometry(B,H)}onRemoveGraphic(){}getFastUpdateStatus(){return(0,R.pC)(this.graphics3DSymbol)?this.graphics3DSymbol.getFastUpdateStatus():{loading:1,fast:0,slow:0}}destroy(){(0,R.pC)(this.graphics3DSymbol)&&this.graphics3DSymbol.destroy(),this.graphics3DSymbol=void 0,super.destroy()}get destroyed(){return void 0===this.graphics3DSymbol}}},87930:(nt,Ae,v)=>{"use strict";v.d(Ae,{P:()=>Z,w:()=>G});var Z,Q,D=v(62208),R=v(10699);class G{constructor($){this.schedule=$,this._abortController=null,this._loadStatus=Z.LOADING,this._loadError=null,this._loader=null,this.logger=null}destroy(){this.abortLoad()}get loadStatus(){return this._loadStatus}load($,W){return this._loadStatus===Z.LOADED?($&&$(),(0,D.Pt)(this._loader,Promise.resolve())):this._loadStatus===Z.FAILED?(W&&W(this._loadError),(0,D.Pt)(this._loader,Promise.resolve())):((0,D.Wi)(this._loader)&&(this._abortController=new AbortController,this._loader=this.doLoad(this._abortController.signal).then(()=>{this._abortController=null,this._loadStatus=Z.LOADED},B=>{throw this._loadError=B,this._abortController=null,this._loadStatus=Z.FAILED,!(0,R.D_)(B)&&this.logger&&B.message&&this.logger.warn(B.message),B})),this._loader.then($,W).catch(()=>{}),this._loader)}abortLoad(){(0,D.pC)(this._abortController)?this._abortController=(0,D.IM)(this._abortController):this._loadStatus===Z.LOADING&&(this._loadStatus=Z.FAILED),this._loader=null}}(Q=Z||(Z={}))[Q.LOADING=0]="LOADING",Q[Q.LOADED=1]="LOADED",Q[Q.FAILED=2]="FAILED"},80960:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>R,r:()=>G});var D=v(4794);const R=1.2,G=D.Z},81468:(nt,Ae,v)=>{"use strict";v.d(Ae,{B5:()=>de,GC:()=>oe,Lm:()=>J,Xf:()=>le,bD:()=>se,lO:()=>ce,qZ:()=>te,rR:()=>X,w7:()=>ae});var ce,ge,D=v(94573),R=v(62208),G=v(28347),Z=v(43703),Q=v(28093),$=v(55915),W=v(88530),B=v(67225),H=v(53929);function X(ge,_e,Ee,De,be,Se,ye,ve,xe,ze,Ke){const We=ue[Ke.mode];let Ce,Be,Fe=0;if((0,$.CM)(ge,_e,Ee,De,xe.spatialReference,be,ve))return We.requiresAlignment(Ke)?(Fe=We.applyElevationAlignmentBuffer(De,be,Se,ye,ve,xe,ze,Ke),Ce=Se,Be=ye):(Ce=De,Be=be),(0,$.CM)(Ce,xe.spatialReference,Be,Se,ze.spatialReference,ye,ve)?Fe:void 0}function te(ge,_e,Ee,De,be){const Se=((0,W.f)(ge)?ge.z:(0,H.Fb)(ge)?ge.array[ge.offset+2]:ge[2])||0;switch(Ee.mode){case"on-the-ground":{const ye=(0,R.Pt)((0,H.KO)(_e,ge,"ground"),0);return be.verticalDistanceToGround=0,be.sampledElevation=ye,void(be.z=ye)}case"relative-to-ground":{const ye=(0,R.Pt)((0,H.KO)(_e,ge,"ground"),0),ve=Ee.geometryZWithOffset(Se,De);return be.verticalDistanceToGround=ve,be.sampledElevation=ye,void(be.z=ve+ye)}case"relative-to-scene":{const ye=(0,R.Pt)((0,H.KO)(_e,ge,"scene"),0),ve=Ee.geometryZWithOffset(Se,De);return be.verticalDistanceToGround=ve,be.sampledElevation=ye,void(be.z=ve+ye)}case"absolute-height":{const ye=Ee.geometryZWithOffset(Se,De),ve=(0,R.Pt)((0,H.KO)(_e,ge,"ground"),0);return be.verticalDistanceToGround=ye-ve,be.sampledElevation=ve,void(be.z=ye)}default:return(0,D.Bg)(Ee.mode),void(be.z=0)}}function ae(ge,_e,Ee,De){return te(ge,_e,Ee,De,he),he.z}function oe(ge,_e,Ee){return null==_e||null==Ee?ge.definedChanged:"on-the-ground"===_e&&"on-the-ground"===Ee?ge.staysOnTheGround:_e===Ee||"on-the-ground"!==_e&&"on-the-ground"!==Ee?ce.UPDATE:ge.onTheGroundChanged}function le(ge){return"relative-to-ground"===ge||"relative-to-scene"===ge}function de(ge){return"absolute-height"!==ge}function se(ge,_e,Ee,De,be){te(_e,Ee,be,De,he),(0,B.CV)(ge,he.verticalDistanceToGround);const Se=he.sampledElevation,ye=(0,G.c)(pe,ge.transformation);return me[0]=_e.x,me[1]=_e.y,me[2]=he.z,(0,$.Bm)(_e.spatialReference,me,ye,De.spatialReference)?ge.transformation=ye:console.warn("Could not locate symbol object properly, it might be misplaced"),Se}class J{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}}(ge=ce||(ce={}))[ge.NONE=0]="NONE",ge[ge.UPDATE=1]="UPDATE",ge[ge.RECREATE=2]="RECREATE";const ue={"absolute-height":{applyElevationAlignmentBuffer:function ie(ge,_e,Ee,De,be,Se,ye,ve){const xe=ve.calculateOffsetRenderUnits(ye),ze=ve.featureExpressionInfoContext;_e*=3,De*=3;for(let Ke=0;Ke!0},"relative-to-ground":{applyElevationAlignmentBuffer:function j(ge,_e,Ee,De,be,Se,ye,ve){let xe=0;const ze=ve.calculateOffsetRenderUnits(ye),Ke=ve.featureExpressionInfoContext,We=Se.spatialReference;_e*=3,De*=3;for(let Ce=0;Ce!0},"relative-to-scene":{applyElevationAlignmentBuffer:function Y(ge,_e,Ee,De,be,Se,ye,ve){let xe=0;const ze=ve.calculateOffsetRenderUnits(ye),Ke=ve.featureExpressionInfoContext,We=Se.spatialReference;_e*=3,De*=3;for(let Ce=0;Ce!0}},pe=(0,Z.c)(),he=new J,me=(0,Q.c)()},79721:(nt,Ae,v)=>{"use strict";var D,R,G;v.d(Ae,{E:()=>D,P:()=>R}),(G=D||(D={}))[G.GRAPHIC=0]="GRAPHIC",G[G.LABEL=1]="LABEL",G[G._COUNT=2]="_COUNT",function(G){G[G.USER_SETTING=0]="USER_SETTING",G[G.SCALE_RANGE=1]="SCALE_RANGE",G[G.FILTER=2]="FILTER",G[G.DECONFLICTION=3]="DECONFLICTION",G[G._COUNT=4]="_COUNT"}(R||(R={}))},74746:(nt,Ae,v)=>{"use strict";v.d(Ae,{O$:()=>de,Tz:()=>te,WI:()=>le,aO:()=>ae,bw:()=>B,d9:()=>W,ht:()=>oe,kr:()=>H});var D=v(15861),R=v(63290),G=v(10699),Z=v(84786),Q=v(46679);const $=R.Z.getLogger("esri.views.3d.layers.graphics.featureExpressionInfoUtils");function W(j){return{cachedResult:j.cachedResult,arcade:j.arcade?{func:j.arcade.func,context:j.arcade.modules.arcadeUtils.createExecContext(null,{sr:j.arcade.context.spatialReference}),modules:j.arcade.modules}:null}}function B(j){const Y=j&&j.expression;if("string"==typeof Y){const ee=re(Y);if(null!=ee)return{cachedResult:ee}}return null}function H(j,Y,ee,ie){return X.apply(this,arguments)}function X(){return(X=(0,D.Z)(function*(j,Y,ee,ie){const J=j&&j.expression;if("string"!=typeof J)return null;const ce=re(J);if(null!=ce)return{cachedResult:ce};const ue=yield(0,Q.LC)();(0,G.k_)(ee);const pe=ue.arcadeUtils,he=pe.createSyntaxTree(J);return pe.dependsOnView(he)?(ie?.error("Expressions containing '$view' are not supported on ElevationInfo"),{cachedResult:0}):{arcade:{func:pe.createFunction(he),context:pe.createExecContext(null,{sr:Y}),modules:ue}}})).apply(this,arguments)}function te(j,Y,ee){return j.arcadeUtils.createFeature(Y.attributes,Y.geometry,ee)}function ae(j,Y){if(null!=j&&!se(j)){if(!Y||!j.arcade)return void $.errorOncePerTick("Arcade support required but not provided");const ee=Y;ee._geometry&&(ee._geometry=(0,Z.kB)(ee._geometry)),j.arcade.modules.arcadeUtils.updateExecContext(j.arcade.context,Y)}}function oe(j){if(null!=j){if(se(j))return j.cachedResult;const Y=j.arcade;let ee=j.arcade.modules.arcadeUtils.executeFunction(Y.func,Y.context);return"number"!=typeof ee&&(j.cachedResult=0,ee=0),ee}return 0}function le(j,Y=!1){let ee=j&&j.featureExpressionInfo;return Y||"0"===(ee&&ee.expression)||(ee=null),ee}const de={cachedResult:0};function se(j){return null!=j.cachedResult}function re(j){return"0"===j?0:null}},67225:(nt,Ae,v)=>{"use strict";v.d(Ae,{$o:()=>ue,CV:()=>J,Go:()=>ie,Si:()=>Ee,Uu:()=>ce,ZL:()=>ge,_Z:()=>_e,bD:()=>pe,bh:()=>me,zE:()=>se});var D=v(62208),R=v(16730),G=v(28347),Z=v(43703),Q=v(28093),$=v(993),W=v(4794),B=v(55915),H=v(5548),X=v(65401),te=v(27105),ae=v(25748),oe=v(38114),le=v(84786),de=v(16396);function se(De,be){if("point"===De.type)return ee(De,be,!1);if((0,le.Ou)(De))switch(De.type){case"extent":return ee(De.center,be,!1);case"polygon":return ee(De.centroid,be,!1);case"polyline":return ee(re(De),be,!0);case"mesh":return ee(De.origin,be,!1)}else switch(De.type){case"extent":return ee(function j(De){const be=isFinite(De.zmin);return(0,oe.Tx)(.5*(De.xmax+De.xmin),.5*(De.ymax+De.ymin),be?.5*(De.zmax+De.zmin):void 0,De.spatialReference)}(De),be,!0);case"polygon":return ee(function Y(De){const be=De.rings[0];if(!be||0===be.length)return null;const Se=(0,te.a)(De.rings,De.hasZ);return(0,oe.Tx)(Se[0],Se[1],Se[2],De.spatialReference)}(De),be,!0);case"polyline":return ee(re(De),be,!0)}}function re(De){const be=De.paths[0];if(!be||0===be.length)return null;const Se=(0,ae.n8)(be,(0,ae.ok)(be)/2);return(0,oe.Tx)(Se[0],Se[1],Se[2],De.spatialReference)}function ee(De,be,Se){const ye=Se?De:(0,le.WG)(De);return be&&De?(0,B.nF)(De,ye,be)?ye:null:ye}function ie(De,be,Se,ye=0){if(De){be||(be=(0,X.Ue)());const ve=De;let xe=.5*ve.width*(Se-1),ze=.5*ve.height*(Se-1);return ve.width<1e-7*ve.height?xe+=ze/20:ve.height<1e-7*ve.width&&(ze+=xe/20),(0,$.s)(be,ve.xmin-xe-ye,ve.ymin-ze-ye,ve.xmax+xe+ye,ve.ymax+ze+ye),be}return null}function J(De,be){for(let Se=0;Se3&&(Se[3]=De[3]),Se}function ue(De,be,Se,ye,ve,xe=[0,0,0,0]){for(let ze=0;ze<3;++ze)xe[ze]=(0,D.pC)(De)&&null!=De[ze]?De[ze]:(0,D.pC)(Se)&&null!=Se[ze]?Se[ze]:ve[ze];return xe[3]=(0,D.pC)(be)?be:(0,D.pC)(ye)?ye:ve[3],xe}function pe(De=Q.O,be,Se,ye=1){const ve=new Array(3);if((0,D.Wi)(be)||(0,D.Wi)(Se))ve[0]=1,ve[1]=1,ve[2]=1;else{let xe,ze=0;for(let Ke=2;Ke>=0;Ke--){const We=De[Ke];let Ce;const Be=null!=We,Fe=0===Ke&&!xe&&!Be,je=Se[Ke];"symbol-value"===We||Fe?Ce=0!==je?be[Ke]/je:1:Be&&"proportional"!==We&&isFinite(We)&&(Ce=0!==je?We/je:1),null!=Ce&&(ve[Ke]=Ce,xe=Ce,ze=Math.max(ze,Math.abs(Ce)))}for(let Ke=2;Ke>=0;Ke--)null==ve[Ke]?ve[Ke]=xe:0===ve[Ke]&&(ve[Ke]=.001*ze)}for(let xe=2;xe>=0;xe--)ve[xe]/=ye;return(0,Q.d)(ve)}function me(De){return function he(De){return null!=De.isPrimitive}(De)&&(De=[De.width,De.depth,De.height]),ge(De)?null:"Symbol sizes may not be negative values"}function ge(De){if(Array.isArray(De)){for(const be of De)if(!ge(be))return!1;return!0}return null==De||De>=0}function _e(De,be,Se,ye=(0,Z.c)()){const ve=De||0,xe=be||0,ze=Se||0;return 0!==ve&&(0,G.o)(ye,ye,-ve/180*Math.PI),0!==xe&&(0,G.r)(ye,ye,xe/180*Math.PI),0!==ze&&(0,G.n)(ye,ye,ze/180*Math.PI),ye}function Ee(De,be,Se){if(null!=Se.minDemResolution)return Se.minDemResolution;const ye=(0,R.c9)(be),ve=(0,H.bf)(De)*ye,xe=(0,H.Ye)(De)*ye,ze=(0,H.Cb)(De)*(be.isGeographic?1:ye);return 0===ve&&0===xe&&0===ze?Se.minDemResolutionForPoints:.01*Math.max(ve,xe,ze)}},64538:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{W:()=>D}),(R=D||(D={}))[R.Recreate_Symbol=0]="Recreate_Symbol",R[R.Recreate_Graphics=1]="Recreate_Graphics",R[R.Fast_Update=2]="Fast_Update"},34062:(nt,Ae,v)=>{"use strict";v.r(Ae),v.d(Ae,{fetch:()=>De,gltfToEngineResources:()=>ye,parseUrl:()=>Se});var D=v(15861),R=v(83100),G=v(62208),Z=v(30217),Q=v(550),$=v(28347),W=v(43703),B=v(84161),H=v(28093),X=v(5548),te=v(60479),ae=v(79800),oe=v(63657),le=v(60490),de=v(9160),se=v(93831),re=v(96170),j=v(98496);class Y{constructor(Be,Fe,je,Re,He){this.name=Be,this.stageResources=Fe,this.lodThreshold=je,this.pivotOffset=Re,this.numberOfVertices=He}}var ee=v(98973),ie=v(42743),J=v(52107),ce=v(81695),ue=v(16396),pe=v(28523),he=v(79331),me=v(67969),ge=v(35995),_e=v(63470),Ee=v(9554);function De(Ce,Be){return be.apply(this,arguments)}function be(){return(be=(0,D.Z)(function*(Ce,Be){const Fe=Se((0,R.pJ)(Ce));if("wosr"===Fe.fileType){const Me=yield Be.cache?Be.cache.loadWOSR(Fe.url,Be):(0,ee.zD)(Fe.url,Be),{engineResources:Ne,referenceBoundingBox:Xe}=(0,ee.p2)(Me,Be);return{lods:Ne,referenceBoundingBox:Xe,isEsriSymbolResource:!1,isWosr:!0}}const je=yield Be.cache?Be.cache.loadGLTF(Fe.url,Be,Be.usePBR):(0,se.Q)(new de.C(Be.streamDataRequester),Fe.url,Be,Be.usePBR),Re=(0,G.U2)(je.model.meta,"ESRI_proxyEllipsoid"),He=je.meta.isEsriSymbolResource&&(0,G.pC)(Re)&&je.meta.uri.includes("/RealisticTrees/");He&&!je.customMeta.esriTreeRendering&&(je.customMeta.esriTreeRendering=!0,We(je,Re));const Ie=je.meta.isEsriSymbolResource?{usePBR:Be.usePBR,isSchematic:!1,treeRendering:He,mrrFactors:[0,1,.2]}:{usePBR:Be.usePBR,isSchematic:!1,treeRendering:!1,mrrFactors:[0,1,.5]},Ge={...Be.materialParamsMixin,treeRendering:He},{engineResources:Pe,referenceBoundingBox:Le}=ye(je,Ie,Ge,Be.skipHighLods&&null==Fe.specifiedLodIndex?{skipHighLods:!0}:{skipHighLods:!1,singleLodIndex:Fe.specifiedLodIndex});return{lods:Pe,referenceBoundingBox:Le,isEsriSymbolResource:je.meta.isEsriSymbolResource,isWosr:!1}})).apply(this,arguments)}function Se(Ce){const Be=Ce.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return Be?{fileType:"gltf",url:Be[1],specifiedLodIndex:null!=Be[4]?Number(Be[4]):null}:Ce.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:Ce,specifiedLodIndex:null}:{fileType:"unknown",url:Ce,specifiedLodIndex:null}}function ye(Ce,Be,Fe,je){const Re=Ce.model,He=new Array,Ie=new Map,Ge=new Map,Pe=Re.lods.length,Le=(0,X.cS)();return Re.lods.forEach((Me,Ne)=>{const Xe=!0===je.skipHighLods&&(Pe>1&&0===Ne||Pe>3&&1===Ne)||!1===je.skipHighLods&&null!=je.singleLodIndex&&Ne!==je.singleLodIndex;if(Xe&&0!==Ne)return;const Ye=new Array;let Je=0;if(Me.parts.forEach(tt=>{const{geometry:et,vertexCount:qe}=function ve(Ce){const Be=function Ke(Ce,Be){switch(Be){case me.MX.TRIANGLES:return(0,re.nh)(Ce);case me.MX.TRIANGLE_STRIP:return(0,re.DA)(Ce);case me.MX.TRIANGLE_FAN:return(0,re.jX)(Ce)}}(Ce.indices||Ce.attributes.position.count,Ce.primitiveType),Fe=Ce.attributes.position.count,je=(0,le.gS)(te.ct,Fe);(0,ae.t)(je,Ce.attributes.position,Ce.transform);const Re=[[ue.T.POSITION,{data:je.typedBuffer,size:je.elementCount,exclusive:!0}]],He=[[ue.T.POSITION,Be]];if((0,G.pC)(Ce.attributes.normal)){const Ie=(0,le.gS)(te.ct,Fe);(0,Z.b)(xe,Ce.transform),(0,ae.a)(Ie,Ce.attributes.normal,xe),Re.push([ue.T.NORMAL,{data:Ie.typedBuffer,size:Ie.elementCount,exclusive:!0}]),He.push([ue.T.NORMAL,Be])}if((0,G.pC)(Ce.attributes.tangent)){const Ie=(0,le.gS)(te.ek,Fe);(0,Z.b)(xe,Ce.transform),(0,oe.t)(Ie,Ce.attributes.tangent,xe),Re.push([ue.T.TANGENT,{data:Ie.typedBuffer,size:Ie.elementCount,exclusive:!0}]),He.push([ue.T.TANGENT,Be])}if((0,G.pC)(Ce.attributes.texCoord0)){const Ie=(0,le.gS)(te.Eu,Fe);(0,ge.n)(Ie,Ce.attributes.texCoord0),Re.push([ue.T.UV0,{data:Ie.typedBuffer,size:Ie.elementCount,exclusive:!0}]),He.push([ue.T.UV0,Be])}if((0,G.pC)(Ce.attributes.color)){const Ie=(0,le.gS)(te.mc,Fe);if(4===Ce.attributes.color.elementCount)Ce.attributes.color instanceof te.ek?(0,oe.s)(Ie,Ce.attributes.color,255):Ce.attributes.color instanceof te.mc?(0,_e.c)(Ie,Ce.attributes.color):Ce.attributes.color instanceof te.v6&&(0,oe.s)(Ie,Ce.attributes.color,1/256);else{(0,_e.f)(Ie,255,255,255,255);const Ge=new te.ne(Ie.buffer,0,4);Ce.attributes.color instanceof te.ct?(0,ae.s)(Ge,Ce.attributes.color,255):Ce.attributes.color instanceof te.ne?(0,Ee.c)(Ge,Ce.attributes.color):Ce.attributes.color instanceof te.mw&&(0,ae.s)(Ge,Ce.attributes.color,1/256)}Re.push([ue.T.COLOR,{data:Ie.typedBuffer,size:Ie.elementCount,exclusive:!0}]),He.push([ue.T.COLOR,Be])}return{geometry:new J.Z(Re,He),vertexCount:Fe}}(tt);Ye.push(et),Je+=qe;const ot=et.boundingInfo;(0,G.pC)(ot)&&0===Ne&&((0,X.pp)(Le,ot.getBBMin()),(0,X.pp)(Le,ot.getBBMax()))}),Xe)return;const rt=new Y(Me.name,{textures:new Array,materials:new Array,geometries:Ye},Me.lodThreshold,[0,0,0],Je);He.push(rt),Me.parts.forEach(tt=>{const et=tt.material+(tt.attributes.normal?"_normal":"")+(tt.attributes.color?"_color":"")+(tt.attributes.texCoord0?"_texCoord0":"")+(tt.attributes.tangent?"_tangent":""),qe=Re.materials.get(tt.material),ot=(0,G.pC)(tt.attributes.texCoord0),ut=(0,G.pC)(tt.attributes.normal);if((0,G.Wi)(qe))return;const _t=function ze(Ce){switch(Ce){case"BLEND":return ie.JJ.Blend;case"MASK":return ie.JJ.Mask;case"OPAQUE":case null:case void 0:return ie.JJ.Opaque}}(qe.alphaMode);if(!Ie.has(et)){if(ot){const gr=(ar,Fr=!1)=>{if((0,G.pC)(ar)&&!Ge.has(ar)){const mr=Re.textures.get(ar);(0,G.pC)(mr)&&Ge.set(ar,new ce.x(mr.data,Fr?{...mr.parameters,preMultiplyAlpha:Fr}:mr.parameters))}};gr(qe.textureColor,_t!==ie.JJ.Opaque),gr(qe.textureNormal),gr(qe.textureOcclusion),gr(qe.textureEmissive),gr(qe.textureMetallicRoughness)}const Ct=qe.color[0]**(1/he.K),vt=qe.color[1]**(1/he.K),Lt=qe.color[2]**(1/he.K),jt=qe.emissiveFactor[0]**(1/he.K),$t=qe.emissiveFactor[1]**(1/he.K),Wt=qe.emissiveFactor[2]**(1/he.K),pr=(0,G.pC)(qe.textureColor)&&ot?Ge.get(qe.textureColor):null;Ie.set(et,new pe.Gp({...Be,transparent:_t===ie.JJ.Blend,customDepthTest:ie.Gv.Lequal,textureAlphaMode:_t,textureAlphaCutoff:qe.alphaCutoff,diffuse:[Ct,vt,Lt],ambient:[Ct,vt,Lt],opacity:qe.opacity,doubleSided:qe.doubleSided,doubleSidedType:"winding-order",cullFace:qe.doubleSided?ie.Vr.None:ie.Vr.Back,hasVertexColors:!!tt.attributes.color,hasVertexTangents:!!tt.attributes.tangent,normals:ut?"default":"screenDerivative",castShadows:!0,receiveSSAO:!0,textureId:(0,G.pC)(pr)?pr.id:void 0,colorMixMode:qe.colorMixMode,normalTextureId:(0,G.pC)(qe.textureNormal)&&ot?Ge.get(qe.textureNormal).id:void 0,textureAlphaPremultiplied:(0,G.pC)(pr)&&!!pr.params.preMultiplyAlpha,occlusionTextureId:(0,G.pC)(qe.textureOcclusion)&&ot?Ge.get(qe.textureOcclusion).id:void 0,emissiveTextureId:(0,G.pC)(qe.textureEmissive)&&ot?Ge.get(qe.textureEmissive).id:void 0,metallicRoughnessTextureId:(0,G.pC)(qe.textureMetallicRoughness)&&ot?Ge.get(qe.textureMetallicRoughness).id:void 0,emissiveFactor:[jt,$t,Wt],mrrFactors:[qe.metallicFactor,qe.roughnessFactor,Be.mrrFactors[2]],isSchematic:!1,colorTextureTransformMatrix:(0,j.i)(qe.colorTextureTransform),normalTextureTransformMatrix:(0,j.i)(qe.normalTextureTransform),occlusionTextureTransformMatrix:(0,j.i)(qe.occlusionTextureTransform),emissiveTextureTransformMatrix:(0,j.i)(qe.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:(0,j.i)(qe.metallicRoughnessTextureTransform),...Fe}))}if(rt.stageResources.materials.push(Ie.get(et)),ot){const Ct=vt=>{(0,G.pC)(vt)&&rt.stageResources.textures.push(Ge.get(vt))};Ct(qe.textureColor),Ct(qe.textureNormal),Ct(qe.textureOcclusion),Ct(qe.textureEmissive),Ct(qe.textureMetallicRoughness)}})}),{engineResources:He,referenceBoundingBox:Le}}const xe=(0,Q.c)();function We(Ce,Be){for(let Fe=0;Fe1&&(0,B.h)(Me,Me,Pe,rt>-1?.2:Math.min(-4*rt-3.8,1)),Xe.setVec(Je,Me),Ne.set(Je,0,255*et),Ne.set(Je,1,255*et),Ne.set(Je,2,255*et),Ne.set(Je,3,255)}Re.attributes.normal=Xe,Re.attributes.color=Ne}}}},75688:(nt,Ae,v)=>{"use strict";v.d(Ae,{$A:()=>G,EP:()=>W,QW:()=>B,j1:()=>H,mq:()=>Q,yY:()=>Z,zi:()=>$});var D=v(99770),R=v(6169);const G=Object.freeze({left:0,center:.5,right:1}),Z=Object.freeze({"bottom-left":(0,D.f)(0,0),bottom:(0,D.f)(.5,0),"bottom-right":(0,D.f)(1,0),left:(0,D.f)(0,.5),center:(0,D.f)(.5,.5),right:(0,D.f)(1,.5),"top-left":(0,D.f)(0,1),top:(0,D.f)(.5,1),"top-right":(0,D.f)(1,1)});function Q(X){switch(X){case"left":return R.vU.Left;case"right":return R.vU.Right;default:return R.vU.Center}}function $(X){switch(X){case"bottom-left":case"left":case"top-left":return"left";case"bottom":case"center":case"top":return"center";case"bottom-right":case"right":case"top-right":return"right"}}function W(X){switch(X){case"bottom-left":case"bottom":case"bottom-right":return"bottom";case"left":case"center":case"right":return"center";case"top-left":case"top":case"top-right":return"top"}}function B(X,te){switch(te){case"bottom":return"left"===X?"bottom-left":"right"===X?"bottom-right":"bottom";case"center":return X;case"top":return"left"===X?"top-left":"right"===X?"top-right":"top"}}function H(X){return"middle"===X?"center":X}},92690:(nt,Ae,v)=>{"use strict";v.d(Ae,{S_:()=>le,dO:()=>oe,km:()=>ae});var D=v(62208),R=v(43703),G=v(28093),Z=v(55915),Q=v(5548),$=v(25748),W=v(38114),B=v(81468),H=v(67225),X=v(96867);const te=(0,G.c)();function ae(de,se,re,j,Y,ee,ie,J){const ce=re?re.length:0,ue=de.clippingExtent;if((0,Z.KC)(se,te,de.elevationProvider.spatialReference),(0,D.pC)(ue)&&!(0,Q.BD)(ue,te))return null;(0,Z.KC)(se,te,de.renderCoordsHelper.spatialReference);const pe=de.localOriginFactory.getOrigin(te),he=new X.T({castShadow:!1,metadata:{layerUid:ee,graphicUid:ie,usesVerticalDistanceToGround:!0}});for(let me=0;me{"use strict";v.d(Ae,{F:()=>G,t:()=>Z}),v(8314);var R=v(57521);function G($){switch($){case"sphere":case"cube":case"diamond":case"cylinder":case"cone":case"inverted-cone":case"tetrahedron":return!0}return!1}function Z($,W){const B=(H,X,te=!1)=>({levels:H.map(ae=>{const oe=X(ae.tesselation);return te&&(0,R.Cr)(oe),{components:[{geometry:oe,material:W}],faceCount:oe.indexCount/3,minScreenSpaceRadius:ae.minScreenSpaceRadius}})});switch($){case"sphere":return B([{tesselation:0,minScreenSpaceRadius:0},{tesselation:1,minScreenSpaceRadius:8},{tesselation:2,minScreenSpaceRadius:16},{tesselation:3,minScreenSpaceRadius:50},{tesselation:4,minScreenSpaceRadius:250}],H=>(0,R.mj)(.5,H,!0));case"cube":return B([{tesselation:0,minScreenSpaceRadius:0}],()=>(0,R.IG)(1));case"cone":return B(Q,H=>(0,R.QL)(1,.5,H,!1),!0);case"inverted-cone":return B(Q,H=>(0,R.QL)(1,.5,H,!0),!0);case"cylinder":return B(Q,H=>(0,R.nb)(1,.5,H,[0,0,1],[0,0,.5]));case"tetrahedron":return B([{tesselation:0,minScreenSpaceRadius:0}],()=>(0,R.AW)(1),!0);case"diamond":return B([{tesselation:0,minScreenSpaceRadius:0}],()=>(0,R.B2)(1),!0);default:return}}const Q=[{tesselation:6,minScreenSpaceRadius:0},{tesselation:18,minScreenSpaceRadius:7},{tesselation:64,minScreenSpaceRadius:65}]},97161:(nt,Ae,v)=>{"use strict";v.d(Ae,{BN:()=>le,IQ:()=>X,V9:()=>H,WU:()=>B,bz:()=>te,u:()=>oe});var D=v(94573),R=v(62208),G=v(48521),Z=v(56244),Q=v(2180),$=v(16396),W=v(47526);const B={primitivesPerFeature:0,primitivesPerCoordinate:0,drawCallsPerFeature:0,estimated:!0,memory:{bytesPerFeature:0,bytesPerCoordinate:0,bytesPerFeatureLabel:0,resourceBytes:0,draped:{bytesPerFeature:0,bytesPerFeatureLabel:0,bytesPerCoordinate:0}}};function H(re){return"web-style"===re.type?B:X(re.symbolLayers.toArray().map(j=>oe(re,j)))}function X(re){let j=0,Y=0,ee=0,ie=!1,J=0;const ce={bytesPerFeature:0,bytesPerFeatureLabel:0,bytesPerCoordinate:0,resourceBytes:0,draped:{bytesPerFeature:0,bytesPerFeatureLabel:0,bytesPerCoordinate:0}};for(const ue of re)(0,R.Wi)(ue)||(j+=ue.primitivesPerFeature,Y+=ue.primitivesPerCoordinate,ee+=ue.drawCallsPerFeature,ce.bytesPerFeature+=ue.memory.bytesPerFeature,ce.bytesPerFeatureLabel+=ue.memory.bytesPerFeatureLabel,ce.bytesPerCoordinate+=ue.memory.bytesPerCoordinate,ce.resourceBytes+=ue.memory.resourceBytes,ce.draped.bytesPerFeature+=ue.memory.bytesPerFeature,ce.draped.bytesPerFeatureLabel+=ue.memory.bytesPerFeatureLabel,ce.draped.bytesPerCoordinate+=ue.memory.bytesPerCoordinate,ie=ie||ue.estimated,++J);return{primitivesPerFeature:j,primitivesPerCoordinate:Y,drawCallsPerFeature:ee,estimated:ie,memory:ce,numComplexities:J}}function te(re){const j=X(re);return j.numComplexities>0&&(j.primitivesPerFeature/=j.numComplexities,j.primitivesPerCoordinate/=j.numComplexities,j.drawCallsPerFeature/=j.numComplexities,j.memory.bytesPerFeature/=j.numComplexities,j.memory.bytesPerFeatureLabel/=j.numComplexities,j.memory.bytesPerCoordinate/=j.numComplexities,j.memory.resourceBytes/=j.numComplexities,j.memory.draped.bytesPerFeature/=j.numComplexities,j.memory.draped.bytesPerFeatureLabel/=j.numComplexities,j.memory.draped.bytesPerCoordinate/=j.numComplexities),j}const ae={};function oe(re,j){const Y=le(re,j),ee=(0,Q.eU)(j)?2:0;switch(j.type){case"extrude":return{primitivesPerFeature:-4,primitivesPerCoordinate:4,drawCallsPerFeature:ee,estimated:!1,memory:Y};case"fill":return"mesh-3d"===re.type?{primitivesPerFeature:0,primitivesPerCoordinate:0,drawCallsPerFeature:ee,estimated:!1,memory:Y}:(0,R.pC)(j.outline)&&j.outline.size>0?{primitivesPerFeature:-4,primitivesPerCoordinate:3,drawCallsPerFeature:0,estimated:!1,memory:Y}:{primitivesPerFeature:-2,primitivesPerCoordinate:1,drawCallsPerFeature:0,estimated:!1,memory:Y};case"water":return{primitivesPerFeature:-2,primitivesPerCoordinate:1,drawCallsPerFeature:0,estimated:!1,memory:Y};case"line":return{primitivesPerFeature:-2,primitivesPerCoordinate:2,drawCallsPerFeature:0,estimated:!1,memory:Y};case"object":return j.resource&&j.resource.href?{primitivesPerFeature:16,primitivesPerCoordinate:0,drawCallsPerFeature:0,estimated:!0,memory:Y}:{...de(j.resource&&j.resource.primitive||G.S),memory:Y};case"path":{let ue=0,pe=0;switch(j.profile){case"circle":ue=10;break;case"quad":ue=4;break;default:return void(0,D.Bg)(j.profile)}switch(j.join){case"round":pe=3;break;case"miter":case"bevel":pe=1;break;default:return void(0,D.Bg)(j.join)}const he=2*ue,me=ue*pe*2;let ge=-2*me-he;switch(j.cap){case"none":break;case"butt":case"square":ge+=2*(ue-1);break;case"round":ge+=2*(2*ue*2+ue);break;default:return}return{primitivesPerFeature:ge,primitivesPerCoordinate:me+he,drawCallsPerFeature:0,estimated:!1,memory:Y}}case"text":case"icon":return{primitivesPerFeature:2,primitivesPerCoordinate:0,drawCallsPerFeature:0,estimated:!1,memory:Y};default:return}}function le(re,j){const Y="point-3d"===re.type;switch(j.type){case"extrude":return j.edges&&j.edges.size>0?se.EXTRUDE_EDGES:se.EXTRUDE;case"fill":return(0,R.pC)(j.outline)&&j.outline.size>0?se.FILL_OUTLINE:se.FILL;case"water":return se.FILL;case"line":return"round"===j.join?se.LINE_ROUND:se.LINE_MITER;case"path":switch(j.join){case"round":switch(j.profile){case"circle":return se.PATH_ROUND_CIRCLE;case"quad":return se.PATH_ROUND_QUAD;default:return void(0,D.Bg)(j.profile)}case"miter":case"bevel":switch(j.profile){case"circle":return se.PATH_MITER_CIRCLE;case"quad":return se.PATH_MITER_QUAD;default:return void(0,D.Bg)(j.profile)}default:return void(0,D.Bg)(j.join)}case"object":return Y?se.OBJECT_POINT:se.OBJECT_POLYGON;case"icon":case"text":return Y?se.ICON_POINT:se.ICON_POLYGON;default:return}}function de(re){let j=ae[re];if(j)return j;const Y=(0,Z.t)(re,null);return j={primitivesPerFeature:(0,W.VV)(Y.levels[0]).reduce((ee,ie)=>ee+ie.indices.get($.T.POSITION).length/3,0),primitivesPerCoordinate:0,drawCallsPerFeature:0,estimated:!1},ae[re]=j,j}const se={ICON_POINT:{bytesPerFeature:7127.413186968842,bytesPerFeatureLabel:4826.302896296296,bytesPerCoordinate:0,resourceBytes:0,draped:{bytesPerFeature:3929.4396628895197,bytesPerFeatureLabel:3550.1332222222227,bytesPerCoordinate:0}},ICON_POLYGON:{bytesPerFeature:9329.452613976147,bytesPerFeatureLabel:3675.3372604938268,bytesPerCoordinate:60.177252982212096,resourceBytes:0,draped:{bytesPerFeature:6190.247450139383,bytesPerFeatureLabel:3744.074358024691,bytesPerCoordinate:59.488211068026104}},OBJECT_POINT:{bytesPerFeature:2350.5884192634558,bytesPerFeatureLabel:4446.651003703703,bytesPerCoordinate:0,resourceBytes:0,draped:{bytesPerFeature:2350.5884192634558,bytesPerFeatureLabel:4446.651003703703,bytesPerCoordinate:0}},OBJECT_POLYGON:{bytesPerFeature:4583.807620302299,bytesPerFeatureLabel:3665.342685185186,bytesPerCoordinate:60.11621818101506,resourceBytes:0,draped:{bytesPerFeature:4583.807620302299,bytesPerFeatureLabel:3665.342685185186,bytesPerCoordinate:60.11621818101506}},LINE_MITER:{bytesPerFeature:7321.028181375921,bytesPerFeatureLabel:4048.0226716049388,bytesPerCoordinate:186.55621386363578,resourceBytes:0,draped:{bytesPerFeature:4246.856619435009,bytesPerFeatureLabel:3852.3737679012347,bytesPerCoordinate:163.47884002621583}},LINE_ROUND:{bytesPerFeature:7482.205842738954,bytesPerFeatureLabel:4045.886987654321,bytesPerCoordinate:191.5452524171851,resourceBytes:0,draped:{bytesPerFeature:4473.481387957992,bytesPerFeatureLabel:3842.1112395061728,bytesPerCoordinate:167.27703460226945}},PATH_MITER_CIRCLE:{bytesPerFeature:9010.489006415351,bytesPerFeatureLabel:4230.9109,bytesPerCoordinate:4618.2594178027275,resourceBytes:0,draped:{bytesPerFeature:9010.489006415351,bytesPerFeatureLabel:4230.9109,bytesPerCoordinate:4618.2594178027275}},PATH_ROUND_CIRCLE:{bytesPerFeature:4104.727250200398,bytesPerFeatureLabel:4251.8525,bytesPerCoordinate:8019.043777064957,resourceBytes:0,draped:{bytesPerFeature:4104.727250200398,bytesPerFeatureLabel:4251.8525,bytesPerCoordinate:8019.043777064957}},PATH_MITER_QUAD:{bytesPerFeature:9416.372942261387,bytesPerFeatureLabel:4241.2757,bytesPerCoordinate:3176.7222742582203,resourceBytes:0,draped:{bytesPerFeature:9416.372942261387,bytesPerFeatureLabel:4241.2757,bytesPerCoordinate:3176.7222742582203}},PATH_ROUND_QUAD:{bytesPerFeature:6614.431545308682,bytesPerFeatureLabel:4206.7461,bytesPerCoordinate:5141.817789093826,resourceBytes:0,draped:{bytesPerFeature:6614.431545308682,bytesPerFeatureLabel:4206.7461,bytesPerCoordinate:5141.817789093826}},FILL:{bytesPerFeature:9478.244183633637,bytesPerFeatureLabel:3713.816824691358,bytesPerCoordinate:95.9343604185578,resourceBytes:0,draped:{bytesPerFeature:6287.911108168086,bytesPerFeatureLabel:3790.785032098766,bytesPerCoordinate:83.08783220478168}},FILL_OUTLINE:{bytesPerFeature:13085.871870349445,bytesPerFeatureLabel:3392.613241975309,bytesPerCoordinate:118.63968023169875,resourceBytes:0,draped:{bytesPerFeature:8437.199992480122,bytesPerFeatureLabel:3973.5431172839503,bytesPerCoordinate:106.33556817014312}},EXTRUDE:{bytesPerFeature:19459.53727140414,bytesPerFeatureLabel:3743.7045209876546,bytesPerCoordinate:372.6819978900477,resourceBytes:0,draped:{bytesPerFeature:19459.53727140414,bytesPerFeatureLabel:3743.7045209876546,bytesPerCoordinate:372.6819978900477}},EXTRUDE_EDGES:{bytesPerFeature:22266.888534913724,bytesPerFeatureLabel:3064.3193358024696,bytesPerCoordinate:374.3725221561312,resourceBytes:0,draped:{bytesPerFeature:22266.888534913724,bytesPerFeatureLabel:3064.3193358024696,bytesPerCoordinate:374.3725221561312}}}},98973:(nt,Ae,v)=>{"use strict";v.d(Ae,{p2:()=>me,zD:()=>Y});var D=v(15861),R=v(84792),G=v(59213),Z=v(27306),Q=v(26584),$=v(63290),W=v(62208),B=v(10699),H=v(10349),X=v(28093),te=v(5548),ae=v(70026),oe=v(42743),le=v(52107),de=v(81695),se=v(28523),re=v(67969);const j=$.Z.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");function Y(ye,ve){return ee.apply(this,arguments)}function ee(){return(ee=(0,D.Z)(function*(ye,ve){const xe=yield ie(ye,ve),ze=yield _e(xe.textureDefinitions,ve);let Ke=0;for(const We in ze)if(ze.hasOwnProperty(We)){const Ce=ze[We];Ke+=Ce?.image?Ce.image.width*Ce.image.height*4:0}return{resource:xe,textures:ze,size:Ke+(0,Z.Ul)(xe)}})).apply(this,arguments)}function ie(ye,ve){return J.apply(this,arguments)}function J(){return(J=(0,D.Z)(function*(ye,ve){const xe=(0,W.pC)(ve)&&ve.streamDataRequester;if(xe)return ce(ye,xe,ve);const ze=yield(0,G.q6)((0,R.default)(ye,(0,W.Wg)(ve)));if(!0===ze.ok)return ze.value.data;(0,B.r9)(ze.error),pe(ze.error)})).apply(this,arguments)}function ce(ye,ve,xe){return ue.apply(this,arguments)}function ue(){return(ue=(0,D.Z)(function*(ye,ve,xe){const ze=yield(0,G.q6)(ve.request(ye,"json",xe));if(!0===ze.ok)return ze.value;(0,B.r9)(ze.error),pe(ze.error.details.url)})).apply(this,arguments)}function pe(ye){throw new Q.Z("",`Request for object resource failed: ${ye}`)}function he(ye){const ve=ye.params,xe=ve.topology;let ze=!0;switch(ve.vertexAttributes||(j.warn("Geometry must specify vertex attributes"),ze=!1),ve.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const We=ve.faces;if(We){if(ve.vertexAttributes)for(const Ce in ve.vertexAttributes){const Be=We[Ce];Be&&Be.values?(null!=Be.valueType&&"UInt32"!==Be.valueType&&(j.warn(`Unsupported indexed geometry indices type '${Be.valueType}', only UInt32 is currently supported`),ze=!1),null!=Be.valuesPerElement&&1!==Be.valuesPerElement&&(j.warn(`Unsupported indexed geometry values per element '${Be.valuesPerElement}', only 1 is currently supported`),ze=!1)):(j.warn(`Indexed geometry does not specify face indices for '${Ce}' attribute`),ze=!1)}}else j.warn("Indexed geometries must specify faces"),ze=!1;break}default:j.warn(`Unsupported topology '${xe}'`),ze=!1}ye.params.material||(j.warn("Geometry requires material"),ze=!1);const Ke=ye.params.vertexAttributes;for(const We in Ke)Ke[We].values||(j.warn("Geometries with externally defined attributes are not yet supported"),ze=!1);return ze}function me(ye,ve){const xe=[],ze=[],Ke=[],We=[],Ce=ye.resource,Be=H.G.parse(Ce.version||"1.0","wosr");Se.validate(Be);const Fe=Ce.model.name,je=Ce.model.geometries,Re=Ce.materialDefinitions,He=ye.textures;let Ie=0;const Ge=new Map;for(let Pe=0;Pe0||"transparency"===ut||"maskAndTransparency"===ut,Ct=Je?De(Je.alphaChannelUsage):void 0,vt={ambient:(0,X.d)(ot.diffuse),diffuse:(0,X.d)(ot.diffuse),opacity:1-(ot.transparency||0),transparent:_t,textureAlphaMode:Ct,textureAlphaCutoff:.33,textureId:tt,initTextureTransparent:!0,doubleSided:!0,cullFace:oe.Vr.None,colorMixMode:ot.externalColorMixMode||"tint",textureAlphaPremultiplied:!!Je&&!!Je.params.preMultiplyAlpha};(0,W.pC)(ve)&&ve.materialParamsMixin&&Object.assign(vt,ve.materialParamsMixin),et=new se.Gp(vt),Ke[Me.material]||(Ke[Me.material]={}),Ke[Me.material][Me.texture]=et}ze.push(et);const qe=new le.Z(Xe,Ye);Ie+=Ye.position?Ye.position.length:0,xe.push(qe)}return{engineResources:[{name:Fe,stageResources:{textures:We,materials:ze,geometries:xe},pivotOffset:Ce.model.pivotOffset,numberOfVertices:Ie,lodThreshold:null}],referenceBoundingBox:ge(xe)}}function ge(ye){const ve=(0,te.cS)();return ye.forEach(xe=>{const ze=xe.boundingInfo;(0,W.pC)(ze)&&((0,te.pp)(ve,ze.getBBMin()),(0,te.pp)(ve,ze.getBBMax()))}),ve}function _e(ye,ve){return Ee.apply(this,arguments)}function Ee(){return(Ee=(0,D.Z)(function*(ye,ve){const xe=[];for(const We in ye){const Ce=ye[We],Be=Ce.images[0].data;if(!Be){j.warn("Externally referenced texture data is not yet supported");continue}const Fe=Ce.encoding+";base64,"+Be,je="/textureDefinitions/"+We,Re="rgba"===Ce.channels?Ce.alphaChannelUsage||"transparency":"none",He={noUnpackFlip:!0,wrap:{s:re.e8.REPEAT,t:re.e8.REPEAT},preMultiplyAlpha:De(Re)!==oe.JJ.Opaque},Ie=(0,W.pC)(ve)&&ve.disableTextures?Promise.resolve(null):(0,ae.t)(Fe,ve);xe.push(Ie.then(Ge=>({refId:je,image:Ge,params:He,alphaChannelUsage:Re})))}const ze=yield Promise.all(xe),Ke={};for(const We of ze)Ke[We.refId]=We;return Ke})).apply(this,arguments)}function De(ye){switch(ye){case"mask":return oe.JJ.Mask;case"maskAndTransparency":return oe.JJ.MaskBlend;case"none":return oe.JJ.Opaque;default:return oe.JJ.Blend}}function be(ye){const ve=ye.params;return{id:1,material:ve.material,texture:ve.texture,region:ve.texture}}const Se=new H.G(1,2,"wosr")},92852:(nt,Ae,v)=>{"use strict";v.d(Ae,{Es:()=>se,I_:()=>X,W7:()=>de,qM:()=>ee});var D=v(26584),R=v(58817),G=v(63290),Z=v(61566),Q=v(16396);const $=G.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function W(pe,he,me){let ge="",_e=0;for(;_e=192&&Ee<224){if(_e+1>=me)throw new D.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");ge+=String.fromCharCode((31&Ee)<<6|63&pe[he+_e+1]),_e+=2}else if(Ee>=224&&Ee<240){if(_e+2>=me)throw new D.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");ge+=String.fromCharCode((15&Ee)<<12|(63&pe[he+_e+1])<<6|63&pe[he+_e+2]),_e+=3}else{if(!(Ee>=240&&Ee<248))throw new D.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(_e+3>=me)throw new D.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const De=(7&Ee)<<18|(63&pe[he+_e+1])<<12|(63&pe[he+_e+2])<<6|63&pe[he+_e+3];ge+=De>=65536?String.fromCharCode(55296+(De-65536>>10),56320+(1023&De)):String.fromCharCode(De),_e+=4}}}return ge}function B(pe,he){const me={byteOffset:0,byteCount:0,fields:Object.create(null)};let ge=0;for(let _e=0;_e0){if(ge.push(W(me,De,_e-1)),0!==me[De+_e-1])throw new D.Z("string-array-error","Invalid string array: missing null termination.")}else ge.push(null);De+=_e}return ge}(Ee.count,De,be)}return X(he,_e)}throw new D.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const ie={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},J={Float32:(pe,he)=>new DataView(pe,0).getFloat32(he,!0),Float64:(pe,he)=>new DataView(pe,0).getFloat64(he,!0),UInt8:(pe,he)=>new DataView(pe,0).getUint8(he),Int8:(pe,he)=>new DataView(pe,0).getInt8(he),UInt16:(pe,he)=>new DataView(pe,0).getUint16(he,!0),Int16:(pe,he)=>new DataView(pe,0).getInt16(he,!0),UInt32:(pe,he)=>new DataView(pe,0).getUint32(he,!0),Int32:(pe,he)=>new DataView(pe,0).getInt32(he,!0)};function ce(pe){return ie.hasOwnProperty(pe)}function ue(pe){return ce(pe)?ie[pe].BYTES_PER_ELEMENT:0}},5590:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>Q,n:()=>B});var D=v(43703),R=v(28093),G=v(55915),Z=v(12080);function Q(H,X,te,ae){const oe=B(H,X,te),le=(0,D.c)();return(0,G.Bm)(te,oe,le,ae),le}function B(H,X,te){const ae=(0,R.c)(),le=2**(4*Math.ceil(Math.log(H[3])*Math.LOG2E/4)+1);if(te.isGeographic){const re=le/(0,Z.Iu)(te).radius*180/Math.PI,j=Math.round(H[1]/re),Y=Math.max(-90,Math.min(90,j*re)),ee=re/Math.cos((Math.abs(Y)-re/2)/180*Math.PI),ie=Math.round(H[0]/ee)*ee;ae[0]=ie,ae[1]=Y}else{const re=Math.round(H[0]/le),j=Math.round(H[1]/le);ae[0]=re*le,ae[1]=j*le}const se=Math.round((H[2]+X)/le);return ae[2]=se*le,ae}},42964:(nt,Ae,v)=>{"use strict";v.d(Ae,{Cx:()=>Hr,HV:()=>gr,Jf:()=>Je,Jx:()=>Me,OJ:()=>tt,T2:()=>Xe,VL:()=>Ss,WD:()=>Cs,X5:()=>De,Yb:()=>ye,a7:()=>jt,bf:()=>Ce,c$:()=>Jr,cr:()=>Ke,e8:()=>We,ei:()=>Ye,gI:()=>Fr,gn:()=>ot,hv:()=>Se,ix:()=>pr,jv:()=>ar,ns:()=>xe,p8:()=>qe,pD:()=>ze,tS:()=>be,tp:()=>Ne,uC:()=>$t,vH:()=>Qr,xe:()=>Ge,yS:()=>Ct,zW:()=>_t});var D=v(15861),R=v(84792),G=v(85931),Z=v(26584),Q=v(8314),$=v(62208),W=v(10699),B=v(55713),H=v(30217),X=v(550),te=v(28347),ae=v(43703),oe=v(48977),le=v(56729),de=v(78451),se=v(84161),re=v(28093),j=v(55915),Y=v(12080),ee=v(65234),ie=v(65401),J=v(37053),ce=v(96854),ue=v(59617),pe=v(92852),he=v(5590),me=v(2180),ge=v(9044),_e=v(93394);function Ee(qt){return qt&&parseInt(qt.substring(qt.lastIndexOf("/")+1,qt.length),10)}function De(qt){if((0,Q.Z)("disable-feature:i3s-draco")||!qt)return!1;for(const Ir of qt)for(const Sr of Ir.geometryBuffers)if("draco"===Sr.compressedAttributes?.encoding)return!0;return!1}function be(qt,Ir,Sr,fs){Sr.traverse(Ir,at=>Ke(qt,at.mbs)!==ze.OUTSIDE&&(fs(at),!0))}function Se(qt,Ir,Sr){let fs=0,at=0;for(let bt=0;bt=0===Ir&&(Sr[at]=Sr[fs],at++),fs++;Sr.length=at}const ve=(0,ie.Ue)();function xe(qt,Ir){if(0===Ir.rotationScale[1]&&0===Ir.rotationScale[2]&&0===Ir.rotationScale[3]&&0===Ir.rotationScale[5]&&0===Ir.rotationScale[6]&&0===Ir.rotationScale[7])return ve[0]=(qt[0]-Ir.position[0])/Ir.rotationScale[0],ve[1]=(qt[1]-Ir.position[1])/Ir.rotationScale[4],ve[2]=(qt[2]-Ir.position[0])/Ir.rotationScale[0],ve[3]=(qt[3]-Ir.position[1])/Ir.rotationScale[4],ve}var ze,qt;function Ke(qt,Ir){const Sr=Ir[0],fs=Ir[1],at=Ir[3],bt=qt[0]-Sr,gt=Sr-qt[2],Gt=qt[1]-fs,fr=fs-qt[3],Ar=Math.max(bt,gt,0),us=Math.max(Gt,fr,0),as=Ar*Ar+us*us;return as>at*at?ze.OUTSIDE:as>0?ze.INTERSECTS_CENTER_OUTSIDE:-Math.max(bt,gt,Gt,fr)>at?ze.INSIDE:ze.INTERSECTS_CENTER_INSIDE}function We(qt,Ir,Sr){const fs=[],at=Sr&&Sr.missingFields,bt=Sr&&Sr.originalFields;for(const gt of qt){const Gt=gt.toLowerCase();let fr=!1;for(const Ar of Ir)if(Gt===Ar.name.toLowerCase()){fs.push(Ar.name),fr=!0,bt&&bt.push(gt);break}!fr&&at&&at.push(gt)}return fs}function Ce(qt,Ir,Sr,fs,at){return Be.apply(this,arguments)}function Be(){return(Be=(0,D.Z)(function*(qt,Ir,Sr,fs,at){if(0===Ir.length)return[];const bt=qt.attributeStorageInfo;if((0,$.pC)(qt.associatedLayer))try{return yield je(qt.associatedLayer,Ir,Sr,fs)}catch(gt){if(qt.associatedLayer.loaded)throw gt}if(bt){const gt=Fe(Ir,Sr,at);if((0,$.Wi)(gt))throw new Z.Z("scenelayer:features-not-loaded","Tried to query attributes for unloaded features");const Gt=qt.parsedUrl.path;return(yield Promise.all(gt.map(fr=>Ie(Gt,bt,fr.node,fr.indices,fs).then(Ar=>{for(let us=0;us=0){let as=fs.get(Ar.node);as||(as={node:Ar.node,indices:[],graphics:[]},at.push(as),fs.set(Ar.node,as)),as.indices.push(us),as.graphics.push(gt);for(let Ps=fr;Ps>0;Ps--)bt[Ps]=bt[Ps-1];bt[0]=Ar;break}}}return at}function je(qt,Ir,Sr,fs){return Re.apply(this,arguments)}function Re(){return(Re=(0,D.Z)(function*(qt,Ir,Sr,fs){Ir.sort((fr,Ar)=>fr.attributes[Sr]-Ar.attributes[Sr]);const at=Ir.map(fr=>fr.attributes[Sr]),bt=[],gt=We(fs,qt.fields,{originalFields:bt}),Gt=yield He(qt,at,gt);for(let fr=0;frfs){const bt=(0,G.vr)(Ir,fs);return Promise.all(bt.map(gt=>He(qt,gt,Sr))).then(gt=>gt.flat())}const at=new ce.Z({objectIds:Ir,outFields:Sr,orderByFields:[qt.objectIdField]});return qt.queryFeatures(at).then(bt=>{if(bt&&bt.features&&bt.features.length===Ir.length)return bt.features.map(gt=>gt.attributes);throw new Z.Z("scenelayer:feature-not-in-associated-layer","Feature not found in associated feature layer")})}function Ie(qt,Ir,Sr,fs,at){return Ge(qt,Ir,Sr.resources.attributes,fs,at)}function Ge(qt,Ir,Sr,fs,at){const bt=[];for(const gt of Ir)gt&&at.includes(gt.name)&&bt.push({url:`${qt}/nodes/${Sr}/attributes/${gt.key}/0`,storageInfo:gt});return(0,W.as)(bt.map(gt=>(0,R.default)(gt.url,{responseType:"array-buffer"}).then(Gt=>(0,pe.qM)(gt.storageInfo,Gt.data)))).then(gt=>{const Gt=[];for(const fr of fs){const Ar={};for(let us=0;us0?1+Ir/gt:1,fr=bt>0?1+Sr/bt:1,Ar=(fr+Gt)/2,us=(fr-Gt)/2;(0,se.g)(at.halfSize,wt,us),(0,se.z)(at.halfSize,at.halfSize,qt.halfSize,Ar),(0,se.g)(at.center,wt,Ar),(0,se.z)(at.center,at.center,qt.halfSize,us),(0,se.A)(mr,mr),(0,se.B)(at.center,at.center,mr),(0,se.q)(at.center,at.center,at.quaternion)}}else{const bt=(0,se.s)(mr,0,0,1);(0,se.z)(at.center,qt.center,bt,(Sr+Ir)/2),(0,oe.c)(sr,qt.quaternion),(0,se.q)(bt,bt,sr),(0,se.w)(bt,bt),(0,se.z)(at.halfSize,qt.halfSize,bt,(Sr-Ir)/2)}return at}const mr=(0,re.c)(),wt=(0,re.c)(),or=(0,re.c)(),sr=(0,de.a)(),Et=new Float64Array(24),St={data:Et,size:3},Ft=(0,re.c)(),zt=(0,re.c)(),dr=(0,X.c)();function Tr(qt,Ir,Sr,fs,at){const bt=(0,H.c)(dr,Ir.quaternion);for(let gt=0;gt<8;++gt){for(let Gt=0;Gt<3;++Gt)Ft[Gt]=Ir.halfSize[Gt]*(0!=(gt&1<(Fs=>{if("replace"!==Fs.type)return;const xs=Fs.geometry;if(!xs.hasZ)return;(0,ie.cS)(Kt);const Ws=xs.spatialReference||fs,yi=xs.rings.reduce((hn,oi)=>oi.reduce((kn,pn)=>((0,j.SH)(pn,Ws,Or,Ir),(0,se.m)(Or,Or,Kr),(0,ie.Ho)(Kt,Or),Math.min(Or[2],kn)),hn),1/0);(()=>{if(!Gt)if(Gt=At,(0,ie.cS)(tr),(0,$.pC)(qt.serviceObb)){ar(qt.serviceObb,Sr,_r,Ir,at),(0,_e.$e)(_r,Gt);for(const Fs of Gt)(0,se.m)(Fs,Fs,Kr),(0,ie.Ho)(tr,Fs)}else{const Fs=qt.mbs,xs=Fs[3];(0,j.SH)(Fs,Sr,Or,Ir),(0,se.m)(Or,Or,Kr),Or[2]+=at;for(let Ws=0;Ws<8;++Ws){const kn=Gt[Ws];(0,se.c)(kn,[Or[0]+(1&Ws?xs:-xs),Or[1]+(2&Ws?xs:-xs),Or[2]+(4&Ws?xs:-xs)]),(0,ie.Ho)(tr,kn)}}})(),(0,ie.kK)(tr,Kt)&&(Ar=Math.min(Ar,yi),us=Math.max(us,yi))})(Fs)),Ar===1/0)return null;const Ps=(Fs,xs,Ws)=>{(0,se.m)(Or,Ws,gt),Fs[xs+0]=Or[0],Fs[xs+1]=Or[1],Fs[xs+2]=Or[2],xs+=24,Ws[2]=Ar,(0,se.m)(Or,Ws,gt),Fs[xs+0]=Or[0],Fs[xs+1]=Or[1],Fs[xs+2]=Or[2],xs+=24,Ws[2]=us,(0,se.m)(Or,Ws,gt),Fs[xs+0]=Or[0],Fs[xs+1]=Or[1],Fs[xs+2]=Or[2]};for(let Fs=0;Fs<8;++Fs)Ps(gs.data,3*Fs,Gt[Fs]);return(0,_e.Qb)(gs)}function Qr(qt){return(0,$.pC)(qt)&&qt.halfSize[0]>=0}function Jr(qt){return qt[3]>=0}function Ss(qt){(0,$.pC)(qt)&&(qt.halfSize[0]=-1)}function Cs(qt){(0,$.pC)(qt)&&(qt[3]=-1)}const Dt=(0,ae.c)(),ct=(0,le.c)(),At=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Kt=(0,ie.Ue)(),tr=(0,ie.Ue)(),_r=(0,_e.Ue)(),Or=[0,0,0],gs={data:new Array(72),size:3},Kr=(0,ae.c)()},77926:(nt,Ae,v)=>{"use strict";v.d(Ae,{G:()=>Z,a:()=>G});var D=v(67857),R=v(91480);function G(Q){return(0,R.nn)(Q)&&Q.intersector===D.q7.PCL&&!!Q.target}function Z(Q){return(0,R.nn)(Q)&&Q.intersector===D.q7.I3S&&!!Q.target}},61566:(nt,Ae,v)=>{"use strict";v.d(Ae,{Gi:()=>W,IT:()=>ae,ti:()=>de});var D=v(26584);const R=!0;function Z(se,re,j){return{identifier:String.fromCharCode.apply(null,new Uint8Array(se,j+0,10)),version:re.getUint16(j+10,R),checksum:re.getUint32(j+12,R)}}function W(se){const re=new DataView(se,0);let j=0;const{identifier:Y,version:ee}=Z(se,re,j);if(j+=16,"LEPCC "!==Y)throw new D.Z("lepcc-decode-error","Bad identifier");if(ee>1)throw new D.Z("lepcc-decode-error","Unknown version");const ie=function $(se,re){return{sizeLo:se.getUint32(re+0,R),sizeHi:se.getUint32(re+4,R),minX:se.getFloat64(re+8,R),minY:se.getFloat64(re+16,R),minZ:se.getFloat64(re+24,R),maxX:se.getFloat64(re+32,R),maxY:se.getFloat64(re+40,R),maxZ:se.getFloat64(re+48,R),errorX:se.getFloat64(re+56,R),errorY:se.getFloat64(re+64,R),errorZ:se.getFloat64(re+72,R),count:se.getUint32(re+80,R),reserved:se.getUint32(re+84,R)}}(re,j);if(j+=88,ie.sizeHi*2**32+ie.sizeLo!==se.byteLength)throw new D.Z("lepcc-decode-error","Bad size");const J=new Float64Array(3*ie.count),ce=[],ue=[],pe=[],he=[];if(j=B(se,j,ce),j=B(se,j,ue),j=B(se,j,pe),j=B(se,j,he),j!==se.byteLength)throw new D.Z("lepcc-decode-error","Bad length");let me=0,ge=0;for(let _e=0;_e>6;let ue=0;if(0===ce)ue=Y.getUint32(1,R),re+=5;else if(1===ce)ue=Y.getUint16(1,R),re+=3;else{if(2!==ce)throw new D.Z("lepcc-decode-error","Bad count type");ue=Y.getUint8(1),re+=2}if(J)throw new D.Z("lepcc-decode-error","LUT not implemented");const pe=Math.ceil(ue*ie/8),he=new Uint8Array(se,re,pe);let me=0,ge=0,_e=0;const Ee=-1>>>32-ie;for(let De=0;De>>=ie,ge-=ie,ge+ie>32&&(me|=he[_e-1]>>8-ge)}return re+_e}function ae(se){const re=new DataView(se,0);let j=0;const{identifier:Y,version:ee}=Z(se,re,j);if(j+=16,"ClusterRGB"!==Y)throw new D.Z("lepcc-decode-error","Bad identifier");if(ee>1)throw new D.Z("lepcc-decode-error","Unknown version");const ie=function te(se,re){return{sizeLo:se.getUint32(re+0,R),sizeHi:se.getUint32(re+4,R),count:se.getUint32(re+8,R),colorMapCount:se.getUint16(re+12,R),lookupMethod:se.getUint8(re+14),compressionMethod:se.getUint8(re+15)}}(re,j);if(j+=16,ie.sizeHi*2**32+ie.sizeLo!==se.byteLength)throw new D.Z("lepcc-decode-error","Bad size");if((2===ie.lookupMethod||1===ie.lookupMethod)&&0===ie.compressionMethod){if(3*ie.colorMapCount+ie.count+j!==se.byteLength||ie.colorMapCount>256)throw new D.Z("lepcc-decode-error","Bad count");const J=new Uint8Array(se,j,3*ie.colorMapCount),ce=new Uint8Array(se,j+3*ie.colorMapCount,ie.count),ue=new Uint8Array(3*ie.count);for(let pe=0;pe1)throw new D.Z("lepcc-decode-error","Unknown version");const ie=function le(se,re){return{sizeLo:se.getUint32(re+0,R),sizeHi:se.getUint32(re+4,R),count:se.getUint32(re+8,R),scaleFactor:se.getUint16(re+12,R),bitsPerPoint:se.getUint8(re+14),reserved:se.getUint8(re+15)}}(re,j);if(j+=16,ie.sizeHi*2**32+ie.sizeLo!==se.byteLength)throw new D.Z("lepcc-decode-error","Bad size");const J=new Uint16Array(ie.count);if(8===ie.bitsPerPoint){if(ie.count+j!==se.byteLength)throw new D.Z("lepcc-decode-error","Bad size");const ce=new Uint8Array(se,j,ie.count);for(let ue=0;ue{"use strict";var D,R,G;v.d(Ae,{L:()=>D,a:()=>R}),(G=D||(D={}))[G.RasterImage=0]="RasterImage",G[G.Features=1]="Features",function(G){G[G.WithRasterImage=0]="WithRasterImage",G[G.WithoutRasterImage=1]="WithoutRasterImage"}(R||(R={}))},27351:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>R,E:()=>G});var G,Z,D=v(65401);class R{constructor(Q,$,W,B=null){this.lij=[0,0,0],this.extent=(0,D.Ue)(),this.resolution=0,this.loadPriority=0,this.measures={visibility:G.VISIBLE_ON_SURFACE,screenRect:(0,D.Ue)(),distance:0,shouldSplit:!1},this.used=!1,B&&this.acquire(Q,$,W,B)}acquire(Q,$,W,B){this.tilingScheme=B,this.id=R.id(Q,$,W),this.lij[0]=Q,this.lij[1]=$,this.lij[2]=W,B.getExtent(Q,$,W,this.extent),this.resolution=B.resolutionAtLevel(Q)}release(){this.tilingScheme=null}getChildren(Q){const $=this.lij[0]+1,W=2*this.lij[1],B=2*this.lij[2];return Q?(Q[0].acquire($,W,B,this.tilingScheme),Q[1].acquire($,W+1,B,this.tilingScheme),Q[2].acquire($,W,B+1,this.tilingScheme),Q[3].acquire($,W+1,B+1,this.tilingScheme),Q):[new R($,W,B,this.tilingScheme),new R($,W+1,B,this.tilingScheme),new R($,W,B+1,this.tilingScheme),new R($,W+1,B+1,this.tilingScheme)]}copyMeasurementsFrom(Q){this.measures.visibility=Q.measures.visibility,this.measures.shouldSplit=Q.measures.shouldSplit,this.measures.distance=Q.measures.distance,(0,D.JG)(Q.measures.screenRect,this.measures.screenRect)}static id(Q,$,W){return`${Q}/${$}/${W}`}}(Z=G||(G={}))[Z.INVISIBLE=0]="INVISIBLE",Z[Z.VISIBLE_WHEN_EXTENDED=1]="VISIBLE_WHEN_EXTENDED",Z[Z.VISIBLE_ON_SURFACE=2]="VISIBLE_ON_SURFACE"},2180:(nt,Ae,v)=>{"use strict";v.d(Ae,{hM:()=>te,C8:()=>ae,$s:()=>oe,eU:()=>H});var D=v(91558),G=(v(8314),v(62208)),Z=v(23841),Q=v(4794),B=v(17803);function H(re){return re&&re.enabled&&(function W(re){return"extrude"===re.type}(re)||function $(re){return"fill"===re.type}(re))&&(0,G.pC)(re.edges)}function te(re,j){return ae(function X(re){return re&&re.enabled&&re.edges||null}(re),j)}function ae(re,j){if((0,G.Wi)(re))return null;const Y=(0,G.pC)(re.color)?(0,Q.b)(D.Z.toUnitRGBA(re.color)):(0,Q.f)(0,0,0,0),ee=(0,Z.F2)(re.size),ie=(0,Z.F2)(re.extensionLength);switch(re.type){case"solid":return oe({color:Y,size:ee,extensionLength:ie,...j});case"sketch":return function le(re){return{...se,...re,type:"sketch"}}({color:Y,size:ee,extensionLength:ie,...j});default:return}}function oe(re){return{...de,...re,type:"solid"}}const de={color:(0,Q.f)(0,0,0,.2),size:1,extensionLength:0,opacity:1,objectTransparency:B.i.OPAQUE,hasSlicePlane:!1},se={color:(0,Q.f)(0,0,0,.2),size:1,extensionLength:0,opacity:1,objectTransparency:B.i.OPAQUE,hasSlicePlane:!1}},9044:(nt,Ae,v)=>{"use strict";v.d(Ae,{F5:()=>Z,HB:()=>Q,a9:()=>G});var G,X,D=v(21286),R=v(62208);function Z(X){switch(X){case"multiply":default:return G.Multiply;case"ignore":return G.Ignore;case"replace":return G.Replace;case"tint":return G.Tint}}function Q(X,te,ae){if((0,R.Wi)(X)||te===G.Ignore)return ae[0]=255,ae[1]=255,ae[2]=255,void(ae[3]=255);const oe=(0,D.uZ)(Math.round(X[3]*W),0,W),le=0===oe||te===G.Tint?0:te===G.Replace?B:H;ae[0]=(0,D.uZ)(Math.round(X[0]*$),0,$),ae[1]=(0,D.uZ)(Math.round(X[1]*$),0,$),ae[2]=(0,D.uZ)(Math.round(X[2]*$),0,$),ae[3]=oe+le}(X=G||(G={}))[X.Multiply=1]="Multiply",X[X.Ignore=2]="Ignore",X[X.Replace=3]="Replace",X[X.Tint=4]="Tint";const $=255,W=85,B=W,H=2*W},24805:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>Z});var D=v(84161),R=v(28093),G=v(8834);class Z{constructor(W){this.renderCoordsHelper=W,this.frustum=(0,G.Ue)(),this._points=(0,G.Hf)(),this.lines=new Array(12),this._origin=(0,R.c)(),this._direction=(0,R.c)(),this._altitude=null;for(let B=0;B<12;B++)this.lines[B]={origin:null,direction:(0,R.c)(),endpoint:null}}get planes(){return this.frustum}get points(){return this._points}get mutablePoints(){return this._points}get direction(){return this._direction}update(W){(0,G.q_)(W.viewMatrix,W.projectionMatrix,this.frustum,this._points),(0,D.c)(this._origin,W.eye),(0,D.c)(this._direction,W.viewForward),this._altitude=this.renderCoordsHelper.getAltitude(this._origin),this._updateLines()}updatePoints(W){for(let B=0;B{"use strict";v.d(Ae,{Fb:()=>Z,KO:()=>Q,sb:()=>G});var D=v(62208),R=v(88530);class G{constructor(W,B=null,H=0){this.array=W,this.spatialReference=B,this.offset=H}}function Z($){return"array"in $}function Q($,W,B="ground"){if((0,R.f)(W))return $.getElevation(W.x,W.y,W.z||0,W.spatialReference,B);if(Z(W)){let H=W.offset;return $.getElevation(W.array[H++],W.array[H++],W.array[H]||0,(0,D.Pt)(W.spatialReference,$.spatialReference),B)}return $.getElevation(W[0],W[1],W[2]||0,$.spatialReference,B)}},37810:(nt,Ae,v)=>{"use strict";v.d(Ae,{q:()=>Y});var D=v(94573),R=v(21286),G=v(28347),Z=v(43703),Q=v(84161),$=v(28093),W=v(55915),B=v(12080),H=v(5548),X=v(65401),te=v(8834),ae=v(13777),oe=v(90014),le=v(70562),de=v(59617),se=v(24229);const re=.5*Math.PI,j=re/Math.PI*180;class Y{constructor(ge){this._renderCoordsHelper=ge.renderCoordsHelper,this._extent=new Array(4),this._planes=new Array(6),this._maxSpan=0,this._center={origin:(0,$.c)(),direction:(0,$.c)()};for(let _e=0;_e<4;_e++)this._extent[_e]={origin:(0,$.c)(),direction:(0,$.c)(),cap:{next:null,direction:(0,$.c)()}},this._planes[_e]=(0,oe.Ue)();this._planes[te.Nu.NEAR]=(0,oe.Ue)(),this._planes[te.Nu.FAR]=(0,oe.Ue)(),this._planesWithoutFar=this._planes.slice(0,5)}update(ge,_e,Ee,De=!0){const be=this._extent;this._toRenderBoundingExtent(ge,_e,Ee),(0,Q.a)(this._center.origin,be[0].origin,be[2].origin),(0,Q.g)(this._center.origin,this._center.origin,.5),this._renderCoordsHelper.worldUpAtPosition(this._center.origin,this._center.direction),De||(0,Q.g)(this._center.direction,this._center.direction,-1);for(let Se=0;Se<4;Se++){const ye=be[Se];this._renderCoordsHelper.worldUpAtPosition(ye.origin,ye.direction);const ve=be[3===Se?0:Se+1];ye.cap.next=ve.origin,(0,Q.r)(ye.cap.direction,ye.origin,ve.origin),(0,oe.my)(ye.direction,ye.cap.direction,ye.origin,this._planes[Se]),De||(0,Q.g)(ye.direction,ye.direction,-1)}(0,oe.my)(be[0].cap.direction,be[1].cap.direction,be[0].origin,this._planes[te.Nu.NEAR]),De?(0,oe.tk)(this._planes[te.Nu.NEAR],this._planes[te.Nu.FAR]):((0,oe.JG)(this._planes[te.Nu.FAR],this._planes[te.Nu.NEAR]),(0,oe.tk)(this._planes[te.Nu.NEAR],this._planes[te.Nu.NEAR])),this._maxSpan=Math.max(Math.abs(ge[0]-ge[2]),Math.abs(ge[1]-ge[3])),this._maxSpanSpatialReference=_e,this._minGlobalAltitude=.9*(0,B.Iu)(this._maxSpanSpatialReference).radius}isVisibleInFrustum(ge,_e,Ee=!1){if(null==ge)return!1;if(this._renderCoordsHelper.viewingMode===de.JY.Global){if(this._maxSpan>(this._maxSpanSpatialReference.isGeographic?j:re*_e))return!0;if(null!=ge.altitude&&ge.altitude>=this._minGlobalAltitude)return this._isVisibleInFrustumGlobal(ge)}if(0===this._maxSpan){const be=this._extent[0];return!(Ee||!ge.intersectsRay((0,le.re)(be.origin,be.direction)))}for(let be=0;be{"use strict";v.d(Ae,{L:()=>G});var D=v(94530),R=v(30755);class G{constructor(Q,$){this._owner=$,this._properties={},this._afterDispatchHandle=null;for(const W in Q){const H=new D.e(Q[W],void 0,void 0,2,2);this._properties[W]={pool:H,acquired:[]}}this._afterDispatchHandle=(0,R.Fs)(()=>this._release())}destroy(){this._afterDispatchHandle&&(this._afterDispatchHandle.remove(),this._afterDispatchHandle=null);for(const Q in this._properties){const $=this._properties[Q];for(const W of $.acquired)(0,R.NC)(W)||$.pool.release(W);$.pool.destroy(),$.pool=null,$.acquired=null}this._properties=null,this._owner=null}get(Q){const $=this._owner._get(Q),W=this._properties[Q];let B=W.pool.acquire();for(W.acquired.push(B);B===$;)W.acquired.push(B),B=W.pool.acquire();return B}_release(){for(const Q in this._properties){const $=this._properties[Q];let W=0;for(const B of $.acquired)(0,R.NC)(B)?$.acquired[W++]=B:$.pool.release(B);$.acquired.length=W}}}},13986:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Y});var D=v(21286),R=v(62208),G=v(16730),Z=v(28347),Q=v(84161),$=v(55713);var X=v(55915),te=v(78172),ae=v(93088),oe=v(90014),le=v(34054),de=v(26242),se=v(88530),re=v(59617),j=v(86080);class Y{constructor(J,ce,ue,pe){this.viewingMode=J,this.spatialReference=ce,this.unitInMeters=ue,this._coordinateSystem=pe,this._tmpCoordinateSystem=(0,ae.Ue)(pe)}set extent(J){J&&(0,ae.qf)(this._coordinateSystem,J,this._coordinateSystem)}getAltitude(J){return(0,ae.id)(this._coordinateSystem,J)}setAltitude(J,ce,ue=J){return(0,ae.Is)(this._coordinateSystem,ue,ce,J)}setAltitudeOfTransformation(J,ce){(0,ae.rF)(this._coordinateSystem,ce,J,ce)}worldUpAtPosition(J,ce){return(0,ae.P0)(this._coordinateSystem,J,ce)}worldBasisAtPosition(J,ce,ue){return(0,ae.Kf)(this._coordinateSystem,J,ce,ue)}basisMatrixAtPosition(J,ce){const ue=this.worldBasisAtPosition(J,te.R.X,de.WM.get()),pe=this.worldBasisAtPosition(J,te.R.Y,de.WM.get()),he=this.worldBasisAtPosition(J,te.R.Z,de.WM.get());return(0,Z.s)(ce,ue[0],ue[1],ue[2],0,pe[0],pe[1],pe[2],0,he[0],he[1],he[2],0,0,0,0,1),ce}headingAtPosition(J,ce){const ue=this.worldUpAtPosition(J,de.WM.get()),pe=this.worldBasisAtPosition(J,te.R.Y,de.WM.get()),he=(0,le.cp)(ce,pe,ue);return(0,D.BV)(he)}intersectManifoldClosestSilhouette(J,ce,ue){return(0,ae.NE)(this._coordinateSystem,ce,this._tmpCoordinateSystem),(0,ae.ej)(this._tmpCoordinateSystem,J,ue),ue}intersectManifold(J,ce,ue){(0,ae.NE)(this._coordinateSystem,ce,this._tmpCoordinateSystem);const pe=de.WM.get();return(0,ae.BR)(this._tmpCoordinateSystem,J,pe)?(0,Q.c)(ue,pe):null}intersectInfiniteManifold(J,ce,ue){if(this.viewingMode===re.JY.Global)return this.intersectManifold(J,ce,ue);(0,ae.NE)(this._coordinateSystem,ce,this._tmpCoordinateSystem);const pe=this._tmpCoordinateSystem.value,he=de.WM.get();return(0,oe.BR)(pe.plane,J,he)?(0,Q.c)(ue,he):null}toRenderCoords(J,ce,ue){return(0,se.f)(J)?(0,X.KC)(J,ce,this.spatialReference):(0,X.SH)(J,ce,ue,this.spatialReference)}fromRenderCoords(J,ce,ue=null){return(0,se.f)(ce)?((0,R.pC)(ue)&&(ce.spatialReference=ue),(0,X.MT)(J,this.spatialReference,ce)):function H(ie){return function W(ie){return(0,$.xZ)(ie)&&ie.length>=3}(ie)||function B(ie){return((0,$.fS)(ie)||Array.isArray(ie))&&ie.length>=3}(ie)}(ce)?(0,X.SH)(J,this.spatialReference,ce,ue)?ce:null:(0,X.fA)(J,this.spatialReference,ce)}static create(J,ce){switch(J){case re.JY.Local:return new Y(re.JY.Local,ce,(0,G.c9)(ce),(0,ae.pb)());case re.JY.Global:return new Y(re.JY.Global,ce,1,(0,ae.pt)(ce))}}static renderUnitScaleFactor(J,ce){return ee(J)/ee(ce)}}function ee(ie){if((0,j.D)(ie,re.JY.Global))return 1;const J=(0,ae.E2)(!1,ie);return(0,G.c9)(J)}},91540:(nt,Ae,v)=>{"use strict";v.d(Ae,{nN:()=>ie,wu:()=>j});var D=v(17626),R=v(84792),G=v(14517),Z=v(85931),Q=v(26584),$=v(58817),W=v(62208),B=v(10699),H=v(77712),te=(v(90912),v(76898)),ae=v(2282);class oe{constructor(he){this.client=he,this._cancelled=!1,this.size=0,this.duration=0}}class le{constructor(he){this.typeWorkerQuota=he,this.tasks=new Array,this.numWorkers=0,this.statistics=new de}}class de{constructor(){this.requests=0,this.size=0,this.duration=0,this.speed=0}}class se{constructor(he,me,ge,_e){this._workerFunc=he,this._callbackFunc=me,this._maxTotalNumWorkers=ge,this._totalNumWorkers=0,this._clients=_e.map(Ee=>new le(Ee))}destroy(){this._clients.length=0}hasQuota(he){const me=this._clients[he];return!!me&&(this._totalNumWorkersthis._taskCallback(ge,_e))):me.tasks.push(he))}cancel(he){this._taskFinished(he),he._cancelled=!0}_taskFinished(he){const me=this._clients[he.client];this._totalNumWorkers--,me.numWorkers--,me.statistics.requests++,me.statistics.size+=he.size||0,me.statistics.duration+=he.duration||0,me.statistics.speed=me.statistics.duration>0?me.statistics.size/me.statistics.duration:0,(0,ae.hu)(me.numWorkers>=0),this._next()}_next(){for(const he of this._clients)if(he&&he.numWorkers0;)if(this._workerFunc(he.tasks.shift(),(me,ge)=>this._taskCallback(me,ge)))return he.numWorkers++,this._totalNumWorkers++,!0;return!1}_taskCallback(he,me){he._cancelled||(this._callbackFunc(he,me),this._taskFinished(he))}getStatsForType(he){const me=this._clients[he];return me?{quota:me.typeWorkerQuota,workers:me.numWorkers,queueSize:me.tasks.length,requestStats:me.statistics}:null}get test(){const he=this;return{set workerFunc(me){he._workerFunc=me}}}}var re=v(87091);let j=class extends G.Z{constructor(){super(...arguments),this._tasks=new Map,this._onLoadQueue=new Array,this._doneQueue=new Array,this.updating=!1}setup(pe,he,me){this._loadQueue=new se((ge,_e)=>this._startLoading(ge,_e),(ge,_e)=>this._doneLoadingCB(ge,_e),pe,he),me&&(this._frameTask=me.registerTask(re.T8.STREAM_DATA_LOADER,this))}destroy(){this._frameTask=(0,W.hw)(this._frameTask),this._tasks.forEach(pe=>(0,W.IM)(pe.abortController)),this._loadQueue=(0,W.SC)(this._loadQueue),this._onLoadQueue=null,this._doneQueue=null,this._tasks=null}hasDownloadSlots(pe){return this._loadQueue.hasQuota(pe)}request(pe,he,me,ge={}){const _e=(0,B.hh)();_e.__signal=(0,W.pC)(ge)?ge.signal:null;const Ee=this._createOrUpdateTask(pe,he,me,ge,_e);return(0,B.fu)(ge,()=>this._cancelRequest(Ee,_e)),_e.promise}_createTask(pe,he,me,ge,_e,Ee){const De=new J(pe,he,me,ge,_e);return this._updateTask(De,Ee),this._tasks.set(_e,De),1===this._tasks.size&&this._set("updating",!0),this._loadQueue.push(De),De}_cancelRequest(pe,he){(0,Z.e$)(pe.resolvers,he),he.reject((0,B.zE)()),0===pe.resolvers.length&&(pe.status===ue.DOWNLOADING&&(pe.status=ue.CANCELLED,this._loadQueue.cancel(pe),pe.abortController?.abort(),pe.request=null,pe.abortController=null),pe.status=ue.CANCELLED,this._tasks.delete(pe.key),0===this._tasks.size&&this._set("updating",!1))}_updateTask(pe,he){pe.resolvers.push(he)}_createOrUpdateTask(pe,he,me,ge,_e){const Ee=function ce(pe,he,me){return`${pe}:${he}:${me}`}((0,W.pC)(ge)&&ge.uid||pe,he,me),De=this._tasks.get(Ee);return De?(this._updateTask(De,_e),De):this._createTask(pe,ge,he,me,Ee,_e)}_doneLoadingCB(pe,he){this._loadQueue&&((0,ae.hu)(pe.status===ue.DOWNLOADING),pe.status=ue.DOWNLOADED,this._frameTask?this._doneQueue.push({task:pe,err:he}):this._doneLoading(pe,he))}get running(){return this._doneQueue.length>0||this._onLoadQueue.length>0}runTask(pe){for(;!pe.done&&this._onLoadQueue.length>0;){const he=this._onLoadQueue.shift();(0,B.k_)(he.task.abortController),he.task.abortController=null,he.callback(he.task),pe.madeProgress()}for(;!pe.done&&this._doneQueue.length>0;){const he=this._doneQueue.shift();he.task.status!==ue.DOWNLOADED&&(he.err=he.err||(0,B.zE)()),this._doneLoading(he.task,he.err),pe.madeProgress()}}_doneLoading(pe,he){if(he&&!(0,B.D_)(he)&&pe.numRetries>0)return--pe.numRetries,void this._loadQueue.push(pe);let me=pe.result instanceof HTMLImageElement?0:pe.resolvers.length;for(const ge of pe.resolvers)if(he)(0,B.D_)(he)?ge.reject(he):ge.reject(new Q.Z("stream-data-loader:request-error",`Failed to request resource at '${pe.url}'. ${he}`,{url:pe.url,error:he}));else{--me;const _e=me<=0?pe.result:(0,$.d9)(pe.result);ge.resolve(_e)}this._tasks.delete(pe.key),0===this._tasks.size&&this._set("updating",!1)}_startLoading(pe,he){if(pe.status===ue.CANCELLED)return!1;let me,ge;switch(pe.startTime=performance.now(),pe.status=ue.DOWNLOADING,pe.docType){case"binary":ge="array-buffer",me=0;break;case"image":ge="image";break;case"image+type":ge="array-buffer";break;default:ge="json"}pe.abortController=new AbortController;const _e=pe.abortController.signal;pe.request=(0,R.default)(pe.url,{...pe.options,responseType:ge,timeout:me,signal:_e});let Ee=()=>{};const De=Se=>{pe.duration=performance.now()-pe.startTime,pe.size=Se instanceof ArrayBuffer?Se.byteLength:pe.size||0,pe.result=Se,this._frameTask?this._onLoadQueue.push({callback:he,task:pe}):(pe.abortController=null,he(pe))},be=Se=>{pe.status===ue.DOWNLOADING&&he(pe,Se),Ee()};return"image+type"!==pe.docType?(pe.request.then(Se=>De(Se.data),be),!0):(pe.request.then(Se=>{const ye=Se.data,ve=function ee(pe){if(pe.byteLength<2)return"unknown";const he=new Uint8Array(pe,0,pe.byteLength);return 137===he[0]&&80===he[1]?"image/png":71===he[0]&&73===he[1]?"image/gif":66===he[0]&&77===he[1]?"image/bmp":255===he[0]&&216===he[1]?"image/jpeg":"unknown"}(ye);if(ge="image",pe.size=ye.byteLength,"unknown"===ve)return pe.request=(0,R.default)(pe.url,{responseType:ge,timeout:me,signal:_e}),void pe.request.then(Ke=>De(Ke.data),be);const xe=new Blob([ye],{type:ve}),ze=window.URL.createObjectURL(xe);Ee=()=>window.URL.revokeObjectURL(ze),pe.request=(0,R.default)(ze,{responseType:ge,timeout:me,signal:_e}),pe.request.then(Ke=>De(new ie(Ke.data,ve,Ee)),be)},be),!0)}get test(){return{loadQueue:this._loadQueue}}};(0,D._)([(0,H.Cb)({readOnly:!0})],j.prototype,"updating",void 0),j=(0,D._)([(0,te.j)("esri.views.3d.support.StreamDataLoader")],j);class ie{constructor(he,me,ge){this.image=he,this.type=me,this.release=ge}get isOpaque(){return"image/jpeg"===this.type}}class J extends oe{constructor(he,me,ge,_e,Ee){super(_e),this.url=he,this.options=me,this.docType=ge,this.key=Ee,this.result=null,this.status=ue.QUEUED,this.request=null,this.abortController=null,this.resolvers=new Array,this.startTime=0,this.numRetries=0}}var ue,pe;(pe=ue||(ue={}))[pe.QUEUED=1]="QUEUED",pe[pe.DOWNLOADING=2]="DOWNLOADING",pe[pe.DOWNLOADED=3]="DOWNLOADED",pe[pe.CANCELLED=4]="CANCELLED"},19625:(nt,Ae,v)=>{"use strict";v.d(Ae,{U$:()=>Q});var D=v(60479),R=v(81096);class G{constructor(W,B){this.layout=W,this.buffer="number"==typeof B?new ArrayBuffer(B*W.stride):B;for(const H of W.fieldNames){const X=W.fields.get(H);this[H]=new X.constructor(this.buffer,X.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(W,B){const H=this[W];return H&&H.elementCount===B.ElementCount&&H.elementType===B.ElementType?H:null}slice(W,B){return new G(this.layout,this.buffer.slice(W*this.stride,B*this.stride))}copyFrom(W,B,H,X){const te=this.stride;if(te%4==0){const ae=new Uint32Array(W.buffer,B*te,X*te/4);new Uint32Array(this.buffer,H*te,X*te/4).set(ae)}else{const ae=new Uint8Array(W.buffer,B*te,X*te);new Uint8Array(this.buffer,H*te,X*te).set(ae)}}}class Z{constructor(){this.stride=0,this.fields=new Map,this.fieldNames=[]}vec2f(W,B){return this._appendField(W,D.Eu,B),this}vec2f64(W,B){return this._appendField(W,D.q6,B),this}vec3f(W,B){return this._appendField(W,D.ct,B),this}vec3f64(W,B){return this._appendField(W,D.fP,B),this}vec4f(W,B){return this._appendField(W,D.ek,B),this}vec4f64(W,B){return this._appendField(W,D.Cd,B),this}mat3f(W,B){return this._appendField(W,D.gK,B),this}mat3f64(W,B){return this._appendField(W,D.ey,B),this}mat4f(W,B){return this._appendField(W,D.bj,B),this}mat4f64(W,B){return this._appendField(W,D.O1,B),this}vec4u8(W,B){return this._appendField(W,D.mc,B),this}f32(W,B){return this._appendField(W,D.ly,B),this}f64(W,B){return this._appendField(W,D.oS,B),this}u8(W,B){return this._appendField(W,D.D_,B),this}u16(W,B){return this._appendField(W,D.av,B),this}i8(W,B){return this._appendField(W,D.Hz,B),this}vec2i8(W,B){return this._appendField(W,D.Vs,B),this}vec2i16(W,B){return this._appendField(W,D.or,B),this}vec2u8(W,B){return this._appendField(W,D.xA,B),this}vec4u16(W,B){return this._appendField(W,D.v6,B),this}u32(W,B){return this._appendField(W,D.Nu,B),this}_appendField(W,B,H){const X=B.ElementCount*(0,R.n1)(B.ElementType);this.fields.set(W,{size:X,constructor:B,offset:this.stride,optional:H}),this.stride+=X,this.fieldNames.push(W)}alignTo(W){return this.stride=Math.floor((this.stride+W-1)/W)*W,this}hasField(W){return this.fieldNames.includes(W)}createBuffer(W){return new G(this,W)}createView(W){return new G(this,W)}clone(){const W=new Z;return W.stride=this.stride,W.fields=new Map,this.fields.forEach((B,H)=>W.fields.set(H,B)),W.fieldNames=this.fieldNames.slice(),W.BufferType=this.BufferType,W}}function Q(){return new Z}},4511:(nt,Ae,v)=>{"use strict";v.d(Ae,{K:()=>G});var D=v(67969),R=v(40852);function G($,W=0){const B=$.stride;return $.fieldNames.filter(H=>{const X=$.fields.get(H).optional;return!(X&&X.glPadding)}).map(H=>{const X=$.fields.get(H),te=X.constructor.ElementCount,ae=function Z($){const W=Q[$];if(W)return W;throw new Error("BufferType not supported in WebGL")}(X.constructor.ElementType);return new R.G(H,te,ae,X.offset,B,!(!X.optional||!X.optional.glNormalized),W)})}const Q={u8:D.g.UNSIGNED_BYTE,u16:D.g.UNSIGNED_SHORT,u32:D.g.UNSIGNED_INT,i8:D.g.BYTE,i16:D.g.SHORT,i32:D.g.INT,f32:D.g.FLOAT}},2975:(nt,Ae,v)=>{"use strict";v.d(Ae,{HL:()=>G,aj:()=>Z});var D=v(60479),R=v(19625);function G(te,ae){return ae.push(te.buffer),{buffer:te.buffer,layout:Q(te.layout)}}function Z(te){return function $(te){const ae=(0,R.U$)();return ae.stride=te.stride,ae.fieldNames=te.fieldNames,te.fields.forEach(oe=>ae.fields.set(oe[0],{...oe[1],constructor:H(oe[1].constructor)})),ae}(te.layout).createView(te.buffer)}function Q(te){const ae=new Array;return te.fields.forEach((oe,le)=>{const de={...oe,constructor:B(oe.constructor)};ae.push([le,de])}),{stride:te.stride,fields:ae,fieldNames:te.fieldNames}}const W=[D.ly,D.Eu,D.ct,D.ek,D.gK,D.bj,D.oS,D.q6,D.fP,D.Cd,D.ey,D.O1,D.D_,D.xA,D.ne,D.mc,D.av,D.TS,D.mw,D.v6,D.Nu,D.qt,D.G5,D.hu,D.Hz,D.Vs,D.P_,D.ir,D.o7,D.or,D.n1,D.zO,D.Jj,D.wA,D.PP,D.TN];function B(te){return`${te.ElementType}_${te.ElementCount}`}function H(te){return X.get(te)}const X=new Map;W.forEach(te=>X.set(B(te),te))},93605:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(14517),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.Z{constructor(){super(...arguments),this.SCENEVIEW_HITTEST_RETURN_INTERSECTOR=!1,this.DECONFLICTOR_SHOW_VISIBLE=!1,this.DECONFLICTOR_SHOW_INVISIBLE=!1,this.DECONFLICTOR_SHOW_GRID=!1,this.LABELS_SHOW_BORDER=!1,this.TEXT_SHOW_BASELINE=!1,this.TEXT_SHOW_BORDER=!1,this.OVERLAY_DRAW_DEBUG_TEXTURE=!1,this.OVERLAY_SHOW_CENTER=!1,this.SHOW_POI=!1,this.TESTS_DISABLE_OPTIMIZATIONS=!1,this.TESTS_DISABLE_FAST_UPDATES=!1,this.DRAW_MESH_GEOMETRY_NORMALS=!1,this.FEATURE_TILE_FETCH_SHOW_TILES=!1,this.FEATURE_TILE_TREE_SHOW_TILES=!1,this.TERRAIN_TILE_TREE_SHOW_TILES=!1,this.I3S_TREE_SHOW_TILES=!1,this.I3S_SHOW_MODIFICATIONS=!1,this.LOD_INSTANCE_RENDERER_DISABLE_UPDATES=!1,this.LOD_INSTANCE_RENDERER_COLORIZE_BY_LEVEL=!1,this.EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES=!1,this.LINE_WIREFRAMES=!1,this.TERRAIN_USE_LEGACY_SHADING=!1}};(0,D._)([(0,G.Cb)()],W.prototype,"SCENEVIEW_HITTEST_RETURN_INTERSECTOR",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"DECONFLICTOR_SHOW_VISIBLE",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"DECONFLICTOR_SHOW_INVISIBLE",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"DECONFLICTOR_SHOW_GRID",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"LABELS_SHOW_BORDER",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"TEXT_SHOW_BASELINE",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"TEXT_SHOW_BORDER",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"OVERLAY_DRAW_DEBUG_TEXTURE",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"OVERLAY_SHOW_CENTER",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"SHOW_POI",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"TESTS_DISABLE_OPTIMIZATIONS",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"TESTS_DISABLE_FAST_UPDATES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"DRAW_MESH_GEOMETRY_NORMALS",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"FEATURE_TILE_FETCH_SHOW_TILES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"FEATURE_TILE_TREE_SHOW_TILES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"TERRAIN_TILE_TREE_SHOW_TILES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"I3S_TREE_SHOW_TILES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"I3S_SHOW_MODIFICATIONS",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"LOD_INSTANCE_RENDERER_DISABLE_UPDATES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"LOD_INSTANCE_RENDERER_COLORIZE_BY_LEVEL",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"LINE_WIREFRAMES",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"TERRAIN_USE_LEGACY_SHADING",void 0),W=(0,D._)([(0,$.j)("esri.views.3d.support.DebugFlags")],W);const B=new W},79020:(nt,Ae,v)=>{"use strict";v.d(Ae,{YU:()=>oe,c0:()=>me});var ue,ge,D=v(62208),R=v(55713),G=v(67831),Z=v(84161),Q=v(28093),$=v(4794),W=v(55915),B=v(12080),H=v(59617),X=v(42743),te=v(52107),ae=v(16396);function oe(ge,_e=null){const Ee=[],De=[];!function le(ge,_e,Ee){const{attributeData:{position:De},removeDuplicateStartEnd:be}=ge,Se=function ce(ge){const _e=ge.length;return ge[0]===ge[_e-3]&&ge[1]===ge[_e-2]&&ge[2]===ge[_e-1]}(De)&&be,ye=De.length/3-(Se?1:0),ve=new Array(2*(ye-1)),xe=Se?(0,R.tP)(De,0,De.length-3):De;let ze=0;for(let Ke=0;Ke{const Se=new Float64Array(3*De.length);De.forEach((ve,xe)=>{Se[3*xe+0]=ve[0],Se[3*xe+1]=ve[1],Se[3*xe+2]=ve[2]}),Ee.push({attributeData:{position:Se,normal:_e},removeDuplicateStartEnd:!1})}),Ee}},81805:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ch:()=>G,Hl:()=>$,_Z:()=>Q,uM:()=>W,vT:()=>R});var D=v(8782);const R=64,G=R/2,Z=G/5,Q=R/Z,$=.25;function W(B,H){return B.fromData(`${H}-marker`,()=>(0,D.cU)(H,R,G,Z))}},8782:(nt,Ae,v)=>{"use strict";v.d(Ae,{Ns:()=>$,Ph:()=>Q,cU:()=>W}),v(8314);var R=v(36161),G=v(81695),Z=v(67969);const Q=128,$=.5;function W(ie,J=Q,ce=J*$,ue=0){const pe=function B(ie,J=Q,ce=J*$,ue=0){switch(ie){case"circle":default:return function H(ie,J){const ce=ie/2-.5;return ee(ie,j(ce,ce,J/2))}(J,ce);case"square":return function X(ie,J){return se(ie,J,!1)}(J,ce);case"cross":return function ae(ie,J,ce=0){return re(ie,J,!1,ce)}(J,ce,ue);case"x":return function oe(ie,J,ce=0){return re(ie,J,!0,ce)}(J,ce,ue);case"kite":return function te(ie,J){return se(ie,J,!0)}(J,ce);case"triangle":return function le(ie,J){return ee(ie,Y(ie/2,J,J/2))}(J,ce);case"arrow":return function de(ie,J){const ce=J,ue=J/2,pe=ie/2,he=.8*ce,me=j(pe,(ie-J)/2-he,Math.sqrt(he*he+ue*ue)),ge=Y(pe,ce,ue);return ee(ie,(_e,Ee)=>Math.max(ge(_e,Ee),-me(_e,Ee)))}(J,ce)}}(ie,J,ce,ue);return new G.x(pe,{mipmap:!1,wrap:{s:Z.e8.CLAMP_TO_EDGE,t:Z.e8.CLAMP_TO_EDGE},width:J,height:J,components:4,noUnpackFlip:!0})}function se(ie,J,ce){return ce&&(J/=Math.SQRT2),ee(ie,(ue,pe)=>{let he=ue-.5*ie+.25,me=.5*ie-pe-.75;if(ce){const ge=(he+me)/Math.SQRT2;me=(me-he)/Math.SQRT2,he=ge}return Math.max(Math.abs(he),Math.abs(me))-.5*J})}function re(ie,J,ce,ue=0){J-=ue,ce&&(J*=Math.SQRT2);const pe=.5*J;return ee(ie,(he,me)=>{let ge,_e=he-.5*ie,Ee=.5*ie-me-1;if(ce){const De=(_e+Ee)/Math.SQRT2;Ee=(Ee-_e)/Math.SQRT2,_e=De}return _e=Math.abs(_e),Ee=Math.abs(Ee),ge=_e>Ee?_e>pe?Math.sqrt((_e-pe)*(_e-pe)+Ee*Ee):Ee:Ee>pe?Math.sqrt(_e*_e+(Ee-pe)*(Ee-pe)):_e,ge-=ue/2,ge})}function j(ie,J,ce){return(ue,pe)=>{const he=ue-ie,me=pe-J;return Math.sqrt(he*he+me*me)-ce}}function Y(ie,J,ce){const ue=Math.sqrt(J*J+ce*ce);return(pe,he)=>{const me=Math.abs(pe-ie)-ce,ge=he-ie+J/2+.75;return Math.max((J*me+ce*ge)/ue,-ge)}}function ee(ie,J){const ce=new Uint8Array(4*ie*ie);for(let ue=0;ue{"use strict";v.d(Ae,{G:()=>Q,O:()=>Z});var D=v(62208),R=v(28093),G=v(55915);function Z(W,B,H){if((0,D.Wi)(W)||(0,D.Wi)(H))return!1;let X=!0;return $[0]=null!=W.xmin?W.xmin:0,$[1]=null!=W.ymin?W.ymin:0,$[2]=null!=W.zmin?W.zmin:0,X=X&&(0,G.CM)($,W.spatialReference,0,B,H,0,1),$[0]=null!=W.xmax?W.xmax:0,$[1]=null!=W.ymax?W.ymax:0,$[2]=null!=W.zmax?W.zmax:0,X=X&&(0,G.CM)($,W.spatialReference,0,B,H,3,1),null==W.xmin&&(B[0]=-1/0),null==W.ymin&&(B[1]=-1/0),null==W.zmin&&(B[2]=-1/0),null==W.xmax&&(B[3]=1/0),null==W.ymax&&(B[4]=1/0),null==W.zmax&&(B[5]=1/0),X}function Q(W,B,H){if((0,D.Wi)(W)||(0,D.Wi)(H))return!1;let X=!0;return $[0]=null!=W.xmin?W.xmin:0,$[1]=null!=W.ymin?W.ymin:0,$[2]=null!=W.zmin?W.zmin:0,X=X&&(0,G.CM)($,W.spatialReference,0,$,H,0,1),B[0]=$[0],B[1]=$[1],$[0]=null!=W.xmax?W.xmax:0,$[1]=null!=W.ymax?W.ymax:0,$[2]=null!=W.zmax?W.zmax:0,X=X&&(0,G.CM)($,W.spatialReference,0,$,H,0,1),B[2]=$[0],B[3]=$[1],null==W.xmin&&(B[0]=-1/0),null==W.ymin&&(B[1]=-1/0),null==W.xmax&&(B[2]=1/0),null==W.ymax&&(B[3]=1/0),X}const $=(0,R.c)()},26046:(nt,Ae,v)=>{"use strict";v.d(Ae,{Bh:()=>W,eW:()=>H,iE:()=>B,u4:()=>$});var D=v(62208),R=v(23841),G=v(67831),Z=v(84161),Q=v(26242);function $(X,te,ae){return W(X,X.screenToRender(te,(0,R.Wv)(Q.WM.get())),ae)}function W(X,te,ae){const oe=(0,R.Wv)((0,G.c)(Q.WM.get(),te));if(oe[2]=0,!X.unprojectFromRenderScreen(oe,ae.origin))return null;const le=(0,R.Wv)((0,G.c)(Q.WM.get(),te));le[2]=1;const de=X.unprojectFromRenderScreen(le,Q.WM.get());return(0,D.Wi)(de)?null:((0,Z.b)(ae.direction,de,ae.origin),ae)}function B(X,te,ae){return H(X,X.screenToRender(te,(0,R.Wv)(Q.WM.get())),ae)}function H(X,te,ae){(0,Z.c)(ae.origin,X.eye);const oe=(0,Z.s)(Q.WM.get(),te[0],te[1],1),le=X.unprojectFromRenderScreen(oe,Q.WM.get());return(0,D.Wi)(le)?null:((0,Z.b)(ae.direction,le,ae.origin),ae)}},39135:(nt,Ae,v)=>{"use strict";var D,Z;v.d(Ae,{Bh:()=>D,NT:()=>G,Ty:()=>R}),(Z=D||(D={}))[Z.ELEVATION=0]="ELEVATION",Z[Z.BASEMAP=1]="BASEMAP",Z[Z.I3S_INDEX=2]="I3S_INDEX",Z[Z.I3S_DATA=3]="I3S_DATA",Z[Z.SYMBOLOGY=4]="SYMBOLOGY";const R=(()=>{const Z=new Array;return Z[D.ELEVATION]=10,Z[D.BASEMAP]=10,Z[D.I3S_INDEX]=10,Z[D.I3S_DATA]=10,Z[D.SYMBOLOGY]=5,Z})(),G=30},24229:(nt,Ae,v)=>{"use strict";v.d(Ae,{W8:()=>X,kD:()=>H});var D=v(99770),R=v(84161),G=v(28093),Z=v(90014);function H(de,se,re,j){return function le(de,se,re,j){j.clip[0]=0,j.clip[1]=re?j.len:Number.MAX_VALUE;for(let Y=0;Y=0)return!1;if(j>-1e-6&&j<1e-6)return Y>0;if((Y<0||j<0)&&!(Y<0&&j<0))return!0;const ee=Y/j;return j>0?eere.clip[0]&&(re.clip[0]=ee),re.clip[0]<=re.clip[1]}},98943:(nt,Ae,v)=>{"use strict";v.d(Ae,{EU:()=>de,T:()=>H,ZA:()=>oe,_F:()=>X,bX:()=>ae,ek:()=>le,mw:()=>B,pG:()=>re,u1:()=>W,uV:()=>se});var D=v(21286),R=v(84161),G=v(28093);function W(ce){return Math.sqrt(Math.max(ce[0]*ce[0]+ce[4]*ce[4]+ce[8]*ce[8],ce[1]*ce[1]+ce[5]*ce[5]+ce[9]*ce[9],ce[2]*ce[2]+ce[6]*ce[6]+ce[10]*ce[10]))}function B(ce,ue){const pe=Math.sqrt(ue[0]*ue[0]+ue[4]*ue[4]+ue[8]*ue[8]),he=Math.sqrt(ue[1]*ue[1]+ue[5]*ue[5]+ue[9]*ue[9]),me=Math.sqrt(ue[2]*ue[2]+ue[6]*ue[6]+ue[10]*ue[10]);return(0,R.s)(ce,pe,he,me),ce}function H(ce,ue,pe){pe=pe||ce;const he=(0,R.e)(ce,ue);(0,R.s)(pe,ce[0]-he*ue[0],ce[1]-he*ue[1],ce[2]-he*ue[2]),(0,R.n)(pe,pe)}function X(ce,ue,pe){Math.abs(ce[0])>Math.abs(ce[1])?(0,R.s)(ue,0,1,0):(0,R.s)(ue,1,0,0),(0,R.f)(pe,ce,ue),(0,R.n)(ue,ue),(0,R.f)(ue,pe,ce),(0,R.n)(pe,pe)}function ae(ce,ue,pe,he,me,ge){const _e=ce+(ue-ce)*me;return _e+(pe+(he-pe)*me-_e)*ge}function oe(ce,ue,pe,he=(0,G.c)()){const me=(0,R.l)(ce),ge=(0,R.l)(ue),_e=(0,R.e)(ce,ue)/(me*ge);if(_e<.9999999999999999){const Ee=Math.acos(_e),De=((1-pe)*me+pe*ge)/Math.sin(Ee),be=De/me*Math.sin((1-pe)*Ee),Se=De/ge*Math.sin(pe*Ee);return(0,R.g)(ie,ce,be),(0,R.g)(J,ue,Se),(0,R.a)(he,ie,J)}return(0,R.h)(he,ce,ue,pe)}function le(ce,ue,pe,he=(0,G.c)(),me=(0,G.c)()){const ge=(0,R.l)(ce),_e=(0,R.l)(ue),Ee=(0,R.e)(ce,ue)/(ge*_e);if(Ee<.9999999999999999){const De=Math.acos(Ee),be=Math.sin(De),Se=Math.sin(pe*De),ye=Math.sin((1-pe)*De),ve=(1-pe)*ge+pe*_e;{const xe=ve/be,ze=xe/_e*Se;(0,R.g)(ie,ce,xe/ge*ye),(0,R.g)(J,ue,ze),(0,R.a)(he,ie,J)}{const xe=1/ge*(-Math.cos((1-pe)*De)*De*ve+ye*(-ge+_e));(0,R.g)(ie,ce,xe);const ze=1/_e*(Math.cos(pe*De)*De*ve+Se*(-ge+_e));(0,R.g)(J,ue,ze),(0,R.a)(me,ie,J),(0,R.g)(me,me,1/be)}return me}return(0,R.h)(he,ce,ue,pe),(0,R.b)(me,ue,ce),(0,R.n)(me,me),me}function de(ce,ue,pe){ce=(0,R.n)(ie,ce),ue=(0,R.n)(J,ue);const he=(0,D.ZF)((0,R.e)(ce,ue));if(pe){const me=(0,R.f)(ee,ce,ue);if((0,R.e)(me,pe)<0)return-he}return he}function se(ce){const ue=ce.length;return pe=>{if(pe<=ce[0][0])return ce[0][1];if(pe>=ce[ue-1][0])return ce[ue-1][1];let he=1;for(;pe>ce[he][0];)he++;const ge=ce[he][0],_e=(ge-pe)/(ge-ce[he-1][0]);return _e*ce[he-1][1]+(1-_e)*ce[he][1]}}function re(ce,ue,pe,he){(0,R.b)(j,ue,ce),(0,R.b)(Y,pe,ce),(0,R.f)(he,j,Y),(0,R.n)(he,he),he[3]=-(0,R.e)(ce,he)}const j=(0,G.c)(),Y=(0,G.c)(),ee=(0,G.c)(),ie=(0,G.c)(),J=(0,G.c)()},93394:(nt,Ae,v)=>{"use strict";v.d(Ae,{JF:()=>or,d9:()=>rr,Qb:()=>St,$e:()=>Ss,Ue:()=>sr,fn:()=>Dr,hZ:()=>Ft,pn:()=>Tr,n3:()=>hr,JH:()=>dr,xz:()=>Jr,q0:()=>Cs,t8:()=>Et,mr:()=>zt});var D=v(30217),R=v(550),G=v(48977),Z=v(56729),Q=v(78451),$=v(84161),W=v(14658),B=v(28093),X=(v(993),v(4794)),te=v(5548),ae=v(90014);const oe=1e-6,le=[0,0,0],de=[0,0,0];const j=[0,0,0],Y=[0,0,0],ee=[0,0,0],ie=[0,0,0],J=[0,0,0],ce=[0,0,0],ue=[0,0,0],pe=[0,0,0],ge=[0,0,0],Ee=[0,0],be=[0,0,0],Se=[0,0,0],ye=[0,0,0],ve=[0,0,0],xe=[0,0,0],ze=[0,0,0];function Ke(Dt,ct,At,Kt,tr,_r){if(jt(ct)0){let Kt=Math.sqrt(At+1);Dt[3]=.5*Kt,Kt=.5/Kt,Dt[0]=(ct[5]-ct[7])*Kt,Dt[1]=(ct[6]-ct[2])*Kt,Dt[2]=(ct[1]-ct[3])*Kt}else{let Kt=0;ct[4]>ct[0]&&(Kt=1),ct[8]>ct[3*Kt+Kt]&&(Kt=2);const tr=(Kt+1)%3,_r=(Kt+2)%3;let Or=Math.sqrt(ct[3*Kt+Kt]-ct[3*tr+tr]-ct[3*_r+_r]+1);Dt[Kt]=.5*Or,Or=.5/Or,Dt[3]=(ct[3*tr+_r]-ct[3*_r+tr])*Or,Dt[tr]=(ct[3*tr+Kt]+ct[3*Kt+tr])*Or,Dt[_r]=(ct[3*_r+Kt]+ct[3*Kt+_r])*Or}}(Or.quaternion,Xe),ot(Ye,Kt,tr),_t(Ye,Ye,.5),_t(Or.center,Dt,Ye[0]),_t(Ne,ct,Ye[1]),ot(Or.center,Or.center,Ne),_t(Ne,At,Ye[2]),ot(Or.center,Or.center,Ne),_t(Or.halfSize,_r,.5)}class tt{constructor(ct){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let Kt=0;this.minProj=new Float64Array(this.buffer,Kt,7),Kt+=56,this.maxProj=new Float64Array(this.buffer,Kt,7),Kt+=56;for(let Kr=0;Kr<7;++Kr)this.minVert[Kr]=new Float64Array(this.buffer,Kt,3),Kt+=24;for(let Kr=0;Kr<7;++Kr)this.maxVert[Kr]=new Float64Array(this.buffer,Kt,3),Kt+=24;for(let Kr=0;Kr<7;++Kr)this.minProj[Kr]=Number.POSITIVE_INFINITY,this.maxProj[Kr]=Number.NEGATIVE_INFINITY;const tr=new Array(7),_r=new Array(7),{data:Or,size:gs}=ct;for(let Kr=0;Krthis.maxProj[0]&&(this.maxProj[0]=qt,_r[0]=Kr),qt=Or[Kr+1],qtthis.maxProj[1]&&(this.maxProj[1]=qt,_r[1]=Kr),qt=Or[Kr+2],qtthis.maxProj[2]&&(this.maxProj[2]=qt,_r[2]=Kr),qt=Or[Kr]+Or[Kr+1]+Or[Kr+2],qtthis.maxProj[3]&&(this.maxProj[3]=qt,_r[3]=Kr),qt=Or[Kr]+Or[Kr+1]-Or[Kr+2],qtthis.maxProj[4]&&(this.maxProj[4]=qt,_r[4]=Kr),qt=Or[Kr]-Or[Kr+1]+Or[Kr+2],qtthis.maxProj[5]&&(this.maxProj[5]=qt,_r[5]=Kr),qt=Or[Kr]-Or[Kr+1]-Or[Kr+2],qtthis.maxProj[6]&&(this.maxProj[6]=qt,_r[6]=Kr)}for(let Kr=0;Kr<7;++Kr){let qt=tr[Kr];Ct(this.minVert[Kr],Or,qt),qt=_r[Kr],Ct(this.maxVert[Kr],Or,qt)}}}class et{constructor(){this.b0=[1,0,0],this.b1=[0,1,0],this.b2=[0,0,1],this.quality=0}}function qe(Dt){return Dt[0]*Dt[1]+Dt[0]*Dt[2]+Dt[1]*Dt[2]}function ot(Dt,ct,At){Dt[0]=ct[0]+At[0],Dt[1]=ct[1]+At[1],Dt[2]=ct[2]+At[2]}function ut(Dt,ct,At){Dt[0]=ct[0]-At[0],Dt[1]=ct[1]-At[1],Dt[2]=ct[2]-At[2]}function _t(Dt,ct,At){Dt[0]=ct[0]*At,Dt[1]=ct[1]*At,Dt[2]=ct[2]*At}function Ct(Dt,ct,At=0){Dt[0]=ct[At+0],Dt[1]=ct[At+1],Dt[2]=ct[At+2]}function vt(Dt,ct,At){const Kt=ct[0],tr=ct[1],_r=ct[2],Or=At[0],gs=At[1],Kr=At[2];Dt[0]=tr*Kr-_r*gs,Dt[1]=_r*Or-Kt*Kr,Dt[2]=Kt*gs-tr*Or}function Lt(Dt,ct){const At=ct[0]*ct[0]+ct[1]*ct[1]+ct[2]*ct[2];if(At>0){const Kt=1/Math.sqrt(At);Dt[0]=ct[0]*Kt,Dt[1]=ct[1]*Kt,Dt[2]=ct[2]*Kt}}function jt(Dt){return Dt[0]*Dt[0]+Dt[1]*Dt[1]+Dt[2]*Dt[2]}function $t(Dt,ct){const At=ct[0]-Dt[0],Kt=ct[1]-Dt[1],tr=ct[2]-Dt[2];return At*At+Kt*Kt+tr*tr}function Wt(Dt,ct){return Dt[0]*ct[0]+Dt[1]*ct[1]+Dt[2]*ct[2]}const gr=(0,Q.a)(),ar=(0,B.c)(),Fr=(0,B.c)(),wt=((0,X.c)(),(0,R.c)());class or{constructor(ct){this.buffer=new ArrayBuffer(56*ct),this.obbs=new Array(ct);for(let gs=0;gsKt&&(Kt=Or,tr=_r)}Ct(ct,Dt.minVert[tr]),Ct(At,Dt.maxVert[tr])}(Dt,Kt,tr),$t(Kt,tr)Or&&(Or=Sr,gs=Kr)}return Ct(Kt,tr,gs),Or}(ct,Kt,Or,_r)Math.abs(ct[1])&&Math.abs(ct[0])>Math.abs(ct[2])?je[0]=0:Math.abs(ct[1])>Math.abs(ct[2])?je[1]=0:je[2]=0,jt(je)At[1]&&(At[1]=Kr,Ct(tr,_r,gs))}}(Dt,ct,Ee,tr,Kt);const _r=Wt(At,ct);Ee[1]-oe<=_r&&(Kt[0]=void 0),Ee[0]+oe>=_r&&(tr[0]=void 0)})(Dt,ct,At,j,Y),void 0!==j[0]&&(ut(ee,j,At),Lt(ee,ee),ut(ie,j,Kt),Lt(ie,ie),ut(J,j,tr),Lt(J,J),vt(ce,ie,_r),Lt(ce,ce),vt(ue,J,Or),Lt(ue,ue),vt(pe,ee,gs),Lt(pe,pe),Ke(Dt,ce,_r,ie,ee,Kr),Ke(Dt,ue,Or,J,ie,Kr),Ke(Dt,pe,gs,ee,J,Kr)),void 0!==Y[0]&&(ut(ee,Y,At),Lt(ee,ee),ut(ie,Y,Kt),Lt(ie,ie),ut(J,Y,tr),Lt(J,J),vt(ce,ie,_r),Lt(ce,ce),vt(ue,J,Or),Lt(ue,ue),vt(pe,ee,gs),Lt(pe,pe),Ke(Dt,ce,_r,ie,ee,Kr),Ke(Dt,ue,Or,J,ie,Kr),Ke(Dt,pe,gs,ee,J,Kr))})(Dt,bt,Kr,qt,Ir,Sr,fs,at,gs),Me(Dt,gs.b0,gs.b1,gs.b2,Ie,Ge);const gt=[0,0,0];ut(gt,Ge,Ie),gs.quality=qe(gt),gs.qualityKt?1:At<-Kt?-1:0}function zt(Dt,ct){ct||(ct=(0,te.Ue)());const At=(0,D.c)(wt,Dt.quaternion),Kt=Dt.halfSize[0]*Math.abs(At[0])+Dt.halfSize[1]*Math.abs(At[3])+Dt.halfSize[2]*Math.abs(At[6]),tr=Dt.halfSize[0]*Math.abs(At[1])+Dt.halfSize[1]*Math.abs(At[4])+Dt.halfSize[2]*Math.abs(At[7]),_r=Dt.halfSize[0]*Math.abs(At[2])+Dt.halfSize[1]*Math.abs(At[5])+Dt.halfSize[2]*Math.abs(At[8]);return ct[0]=Dt.center[0]-Kt,ct[1]=Dt.center[1]-tr,ct[2]=Dt.center[2]-_r,ct[3]=Dt.center[0]+Kt,ct[4]=Dt.center[1]+tr,ct[5]=Dt.center[2]+_r,ct}function dr(Dt,ct){return(0,ae.jH)(ct,Dt.center)-Jr(Dt,(0,ae.mJ)(ct))}function hr(Dt,ct){return(0,ae.jH)(ct,Dt.center)+Jr(Dt,(0,ae.mJ)(ct))}function Tr(Dt,ct){return Ft(Dt,ct[0])<=0&&Ft(Dt,ct[1])<=0&&Ft(Dt,ct[2])<=0&&Ft(Dt,ct[3])<=0&&Ft(Dt,ct[4])<=0&&Ft(Dt,ct[5])<=0}function Dr(Dt,ct,At,Kt=0){(0,G.c)(gr,Dt.quaternion),(0,$.b)(ar,ct,Dt.center);const tr=(0,$.q)(ar,ar,gr),_r=(0,$.q)(Fr,At,gr);let Or=-1/0,gs=1/0;for(let Kr=0;Kr<3;Kr++)if(Math.abs(_r[Kr])>1e-6){const qt=(Kt+Dt.halfSize[Kr]-tr[Kr])/_r[Kr],Ir=(-Kt-Dt.halfSize[Kr]-tr[Kr])/_r[Kr];Or=Math.max(Or,Math.min(qt,Ir)),gs=Math.min(gs,Math.max(qt,Ir))}else if(tr[Kr]>Dt.halfSize[Kr]+Kt||tr[Kr]<-Dt.halfSize[Kr]-Kt)return!1;return Or<=gs}function Jr(Dt,ct){(0,G.c)(gr,Dt.quaternion),(0,$.q)(ar,ct,gr);const At=Dt.halfSize;return Math.abs(ar[0]*At[0])+Math.abs(ar[1]*At[1])+Math.abs(ar[2]*At[2])}function Ss(Dt,ct){for(let At=0;At<8;++At){const Kt=ct[At];Kt[0]=1&At?-Dt.halfSize[0]:Dt.halfSize[0],Kt[1]=2&At?-Dt.halfSize[1]:Dt.halfSize[1],Kt[2]=4&At?-Dt.halfSize[2]:Dt.halfSize[2],(0,$.q)(Kt,Kt,Dt.quaternion),(0,$.a)(Kt,Kt,Dt.center)}}function Cs(Dt){return(0,$.u)(Dt.halfSize)}(()=>{const Dt=new Int8Array(162);let ct=0;const At=Kt=>{for(let tr=0;tr{"use strict";v.d(Ae,{V:()=>D,q:()=>R});const D={value:.5,readOnly:!0},R={readOnly:!0,value:.5,get(){return this.updating?this.updatingProgressValue:1}}},90793:(nt,Ae,v)=>{"use strict";v.d(Ae,{T:()=>G,j:()=>Z});var D=v(67857),R=v(91480);function G(Q){return(0,R.nn)(Q)&&Q.intersector===D.q7.TERRAIN&&!!Q.target}function Z(Q){return(0,R.nn)(Q)&&Q.intersector===D.q7.OVERLAY&&!!Q.target}},61034:(nt,Ae,v)=>{"use strict";v.d(Ae,{$e:()=>$,Jk:()=>B,aV:()=>W});var $,X,D=v(21286),R=v(65401),G=v(75224),Z=v(42743),Q=v(30993);(X=$||($={}))[X.None=0]="None",X[X.ColorAndWater=1]="ColorAndWater",X[X.Highlight=2]="Highlight",X[X.Occluded=3]="Occluded",X[X.ObjectAndLayerIdColor=4]="ObjectAndLayerIdColor";class W{constructor(te,ae){this.index=te,this.renderTargets=ae,this._extent=(0,R.Ue)(),this.resolution=0,this.renderLocalOrigin=(0,Q.a)(0,0,0,"O"),this.pixelRatio=1,this.mapUnitsPerPixel=1,this.canvasGeometries=new H,this.validTargets=null,this.hasDrapedFeatureSource=!1,this.hasDrapedRasterSource=!1,this.hasTargetWithoutRasterImage=!1,this.index=te,this.validTargets=new Array(ae.renderTargets.length).fill(!1)}get extent(){return this._extent}getValidTexture(te){return this.validTargets[te]?this.renderTargets.getTarget(te).getTexture():null}get _needsColorWithoutRasterImage(){return this.hasDrapedRasterSource&&this.hasDrapedFeatureSource&&this.hasTargetWithoutRasterImage}getColorTexture(te){const ae=this.renderTargets.getTarget(te===$.ColorAndWater?G.NH.Color:te===$.Highlight?G.NH.Highlight:te===$.ObjectAndLayerIdColor?G.NH.ObjectAndLayerIdColor:G.NH.Occluded);return ae?ae.getTexture():null}getColorTextureNoRasterImage(){return this._needsColorWithoutRasterImage?this.getValidTexture(G.NH.ColorNoRasterImage):this.hasDrapedFeatureSource?this.getValidTexture(G.NH.Color):null}getNormalTexture(te){const ae=te===$.ColorAndWater?this.renderTargets.getTarget(G.NH.Water):null;return ae?ae.getTexture():null}draw(te,ae){const oe=this.computeRenderTargetValidityBitfield();for(const le of this.renderTargets.renderTargets)this.validTargets[le.type]=!(le.type===G.NH.ColorNoRasterImage&&!this._needsColorWithoutRasterImage)&&te.drawTarget(this,le,ae);return oe^this.computeRenderTargetValidityBitfield()?Z.Yg.CHANGED:Z.Yg.UNCHANGED}computeRenderTargetValidityBitfield(){const te=this.validTargets;return+te[G.NH.Color]|+te[G.NH.ColorNoRasterImage]<<1|+te[G.NH.Highlight]<<2|+te[G.NH.Water]<<3|+te[G.NH.Occluded]<<4}setupGeometryViewsCyclical(te){this.setupGeometryViewsDirect();const ae=.001*te.range;if(this._extent[0]-ae<=te.min){const oe=this.canvasGeometries.extents[this.canvasGeometries.numViews++];(0,R.cv)(this._extent,te.range,0,oe)}if(this._extent[2]+ae>=te.max){const oe=this.canvasGeometries.extents[this.canvasGeometries.numViews++];(0,R.cv)(this._extent,-te.range,0,oe)}}setupGeometryViewsDirect(){this.canvasGeometries.numViews=1,(0,R.JG)(this.canvasGeometries.extents[0],this._extent)}hasSomeSizedView(){for(let te=0;te{"use strict";v.d(Ae,{Rn:()=>ot,CB:()=>Je,Qi:()=>ut});var D=v(15861),R=v(17626),G=v(14517),Z=v(61885),Q=v(72392),$=v(88159),W=v(62208),B=v(77029),H=v(32917),X=v(28862),te=v(77712),le=(v(85931),v(90912),v(76898)),de=v(28347),se=v(84161),re=v(28093),j=v(59617),Y=v(62600),ee=v(93605),ie=v(75224),J=v(61034),ce=v(9545),ue=v(67969),pe=v(85775);class he{constructor(Ct,vt){this._size=(0,ce.c)(),this._fbo=null,this._fbo=new pe.X(Ct,{colorTarget:ue.Lm.TEXTURE,depthStencilTarget:ue.OU.NONE},{target:ue.No.TEXTURE_2D,pixelFormat:ue.VI.RGBA,dataType:ue.Br.UNSIGNED_BYTE,wrapMode:ue.e8.CLAMP_TO_EDGE,samplingMode:ue.cw.LINEAR_MIPMAP_LINEAR,hasMipmap:vt,maxAnisotropy:8,width:0,height:0})}dispose(){this._fbo=(0,W.M2)(this._fbo)}getTexture(){return this._fbo?this._fbo.colorTexture:null}isValid(){return null!==this._fbo}resize(Ct,vt){this._size[0]=Ct,this._size[1]=vt,this._fbo.resize(this._size[0],this._size[1])}bind(Ct){Ct.bindFramebuffer(this._fbo)}generateMipMap(){const Ct=this._fbo.colorTexture;Ct.descriptor.hasMipmap&&Ct.generateMipmap()}disposeRenderTargetMemory(){this._fbo?.resize(0,0)}get gpuMemoryUsage(){return this._fbo?.gpuMemoryUsage??0}}var me=v(8314),ge=v(13934);class _e{constructor(Ct,vt,Lt,jt=!0){this.output=vt,this.type=Lt,this.valid=!1,this.lastUsed=1/0,this.fbo=new he(Ct,jt)}}class Ee{constructor(Ct){this.renderTargets=[new _e(Ct,ge.H.Color,ie.NH.Color),new _e(Ct,ge.H.Color,ie.NH.ColorNoRasterImage),new _e(Ct,ge.H.Highlight,ie.NH.Highlight,!1),new _e(Ct,ge.H.Normal,ie.NH.Water),new _e(Ct,ge.H.Color,ie.NH.Occluded)],(0,me.Z)("enable-feature:objectAndLayerId-rendering")&&this.renderTargets.push(new _e(Ct,ge.H.ObjectAndLayerIdColor,ie.NH.ObjectAndLayerIdColor))}getTarget(Ct){return this.renderTargets[Ct].fbo}dispose(){for(const Ct of this.renderTargets)Ct.fbo.dispose()}disposeRenderTargetMemory(){for(const Ct of this.renderTargets)Ct.fbo.disposeRenderTargetMemory()}validateUsageForTarget(Ct,vt,Lt){if(Ct)vt.lastUsed=Lt;else if(Lt-vt.lastUsed>De)vt.fbo.disposeRenderTargetMemory(),vt.lastUsed=1/0;else if(vt.lastUsed<1/0)return!0;return!1}get gpuMemoryUsage(){return this.renderTargets.reduce((Ct,vt)=>Ct+vt.fbo.gpuMemoryUsage,0)}}const De=1e3;var be=v(98361),Se=v(45323),ye=v(2286),ve=v(42743),xe=v(59856),ze=v(50907),Ke=v(19597),We=v(57851),Ce=v(40723),Be=v(64624),Fe=v(5894),je=v(53319),Re=v(14411),He=v(95808),Ie=v(80855),Ge=v(97825),Pe=v(44835),Le=v(82244),Me=v(51899),Ne=v(87091),Xe=v(55086),Ye=v(26906);let Je=class extends((0,ye.TF)(G.Z)){constructor(_t){super(_t),this._overlays=null,this._overlayRenderTarget=null,this._hasHighlights=!1,this._rendersOccluded=!1,this._hasWater=!1,this._handles=new Q.Z,this._renderers=new Map,this._sortedDrapeSourceRenderersDirty=!1,this._sortedRenderers=new B.Z,this._passParameters=new be.T,this._rctx=null,this._materialRepository=null,this._screenToWorldRatio=1,this._localOriginFactory=null,this.worldToPCSRatio=1,this.events=new Z.Z,this.longitudeCyclical=null}get _bindParameters(){return this._renderContext.bindParameters}get rctx(){return this._rctx}get materialRepository(){return this._materialRepository}get screenToWorldRatio(){return this._screenToWorldRatio}get localOriginFactory(){return this._localOriginFactory}initialize(){const _t=this.view._stage.renderView;this._rctx=_t.renderingContext;const Ct=_t.waterTextureRepository;this._stippleTextureRepository=new Me.h0(_t.renderingContext),this._shaderTechniqueRepository=new Se.M({rctx:this._rctx,viewingMode:j.JY.Local,stippleTextureRepository:this._stippleTextureRepository,waterTextureRepository:Ct}),this._renderContext=new Be.Y(this._rctx,new je.l(this._rctx,this.view.state.viewingMode),new He.L(this._shaderTechniqueRepository,this._rctx,()=>{})),this._handles.add([(0,H.YP)(()=>Ct.updating,()=>this.events.emit("content-changed"),H.tX),(0,H.YP)(()=>this.spatialReference,vt=>this._localOriginFactory=new We.C(vt),H.tX),(0,H.on)(()=>this.view.allLayerViews,"after-changes",()=>this._sortedDrapeSourceRenderersDirty=!0)]),this._materialRepository=new ze.h(_t.textureRepository,this._shaderTechniqueRepository,vt=>{(vt.renderOccluded&ut)>0!==this._rendersOccluded&&this._updateRendersOccluded(),this.events.emit("content-changed"),this.notifyChange("updating")},()=>this.events.emit("content-changed")),this._bindParameters.slot=Fe.r.DRAPED_MATERIAL,this._bindParameters.highlightDepthTexture=(0,Ke.hf)(this._rctx),this._bindParameters.camera=qe,this._bindParameters.transparencyPassType=Pe.A.NONE,this._bindParameters.newLighting.noonFactor=0,this._bindParameters.newLighting.globalFactor=0,this._bindParameters.newLighting.set([new Le.Mi((0,re.f)(1,1,1))]),this._handles.add(this.view.resourceController.scheduler.registerTask(Ne.T8.STAGE,this))}dispose(){this._handles.destroy(),this._renderers.forEach(_t=>_t.destroy()),this._renderers.clear(),this._debugTextureTechnique=(0,W.RY)(this._debugTextureTechnique),this._passParameters.texture=(0,W.M2)(this._passParameters.texture),this._bindParameters.highlightDepthTexture=(0,W.M2)(this._bindParameters.highlightDepthTexture),this._shaderTechniqueRepository=(0,W.M2)(this._shaderTechniqueRepository),this._temporaryFBO=(0,W.M2)(this._temporaryFBO),this._quadVAO=(0,W.M2)(this._quadVAO),this.disposeOverlays()}get updating(){return this._sortedDrapeSourceRenderersDirty||(0,$.oE)(this._renderers,_t=>_t.updating)}get hasOverlays(){return(0,W.pC)(this._overlays)&&(0,W.pC)(this._overlayRenderTarget)}get gpuMemoryUsage(){return(0,W.pC)(this._overlayRenderTarget)?this._overlayRenderTarget.gpuMemoryUsage:0}createGeometryDrapeSourceRenderer(_t){return this.createDrapeSourceRenderer(_t,Re.S)}createDrapeSourceRenderer(_t,Ct,vt){const Lt=this._renderers.get(_t);(0,W.pC)(Lt)&&Lt.destroy();const jt=new Ct({...vt,rendererContext:this,drapeSource:_t});return this._renderers.set(_t,jt),this._sortedDrapeSourceRenderersDirty=!0,"fullOpacity"in _t&&this._handles.add((0,H.YP)(()=>_t.fullOpacity,()=>this.events.emit("content-changed")),_t),jt}removeDrapeSourceRenderer(_t){if((0,W.Wi)(_t))return;const Ct=this._renderers.get(_t);(0,W.Wi)(Ct)||(this._sortedDrapeSourceRenderersDirty=!0,this._renderers.delete(_t),this._handles.remove(_t),Ct.destroy())}collectUnusedRenderTargetMemory(_t){let Ct=!1;if((0,W.pC)(this._overlayRenderTarget))for(const vt of this._overlayRenderTarget.renderTargets)Ct=this._overlayRenderTarget.validateUsageForTarget(this.overlays[0].validTargets[vt.type]||!this.overlays[1].validTargets[vt.type],vt,_t)||Ct;return Ct}get overlays(){return(0,W.Pt)(this._overlays,[])}ensureDrapeTargets(_t){(0,W.pC)(this._overlays)&&this._overlays.forEach(Ct=>Ct.hasTargetWithoutRasterImage=(0,X.f)(_t,vt=>vt.drapeTargetType===Y.a.WithoutRasterImage))}ensureDrapeSources(_t){(0,W.pC)(this._overlays)&&this._overlays.forEach(Ct=>{Ct.hasDrapedFeatureSource=(0,X.f)(_t,vt=>vt.drapeSourceType===Y.L.Features),Ct.hasDrapedRasterSource=(0,X.f)(_t,vt=>vt.drapeSourceType===Y.L.RasterImage)})}ensureOverlays(_t,Ct){(0,W.Wi)(this._overlays)&&(this._overlayRenderTarget=new Ee(this._rctx),this._overlays=[new J.aV(ie.fu.INNER,this._overlayRenderTarget),new J.aV(ie.fu.OUTER,this._overlayRenderTarget)]),this.ensureDrapeTargets(_t),this.ensureDrapeSources(Ct)}disposeOverlays(){this._overlays=null,this._overlayRenderTarget=(0,W.M2)(this._overlayRenderTarget),this.events.emit("textures-disposed")}get running(){return this.updating}runTask(_t){this._processDrapeSources(_t,()=>!0)}_processDrapeSources(_t,Ct){let vt=!1;for(const[Lt,jt]of this._renderers){if(_t.done)break;(Lt.destroyed||Ct(Lt))&&jt.commitChanges()&&(vt=!0,_t.madeProgress())}this._sortedDrapeSourceRenderersDirty&&(this._sortedDrapeSourceRenderersDirty=!1,vt=!0,this._updateSortedDrapeSourceRenderers()),vt&&((0,W.pC)(this._overlays)&&0===this._renderers.size&&this.disposeOverlays(),this.notifyChange("updating"),this.events.emit("content-changed"),this._updateHasHighlights(),this._updateRendersOccluded(),this._updateHasWater())}processSyncDrapeSources(){this._processDrapeSources(Ne.G5,_t=>_t.updatePolicy===ve.jq.SYNC)}isEmpty(){if(ee.Z.OVERLAY_DRAW_DEBUG_TEXTURE)return!1;for(const _t of this._renderers.values())if(!_t.isEmpty)return!1;return!0}get hasHighlights(){return this._hasHighlights}get hasWater(){return this._hasWater}get rendersOccluded(){return this._rendersOccluded}updateAnimation(_t){let Ct=!1;return this._renderers.forEach(vt=>Ct=vt.updateAnimation(_t)||Ct),Ct}updateDrapeSourceOrder(){this._sortedDrapeSourceRenderersDirty=!0}drawTarget(_t,Ct,vt){const Lt=_t.canvasGeometries;if(0===Lt.numViews)return!1;this._screenToWorldRatio=vt*_t.mapUnitsPerPixel;const jt=Ct.output;if(this.isEmpty()||jt===ge.H.Highlight&&!this.hasHighlights||jt===ge.H.Normal&&!this.hasWater||!_t.hasSomeSizedView())return!1;const $t=Ct.fbo;if(!$t.isValid())return!1;const Wt=2*_t.resolution,pr=_t.resolution;$t.resize(Wt,pr);const gr=this._rctx;qe.pixelRatio=_t.pixelRatio*vt,this._renderContext.output=jt,this._bindParameters.screenToWorldRatio=this._screenToWorldRatio,this._bindParameters.screenToPCSRatio=this._screenToWorldRatio*this.worldToPCSRatio,this._bindParameters.slot=jt===ge.H.Normal?Fe.r.DRAPED_WATER:Fe.r.DRAPED_MATERIAL,_t.applyViewport(this._rctx),$t.bind(gr),_t.index===ie.fu.INNER&&(gr.setClearColor(0,0,0,0),gr.clearSafe(ue.lk.COLOR_BUFFER_BIT));const ar=Ct.type===ie.NH.ColorNoRasterImage?rt.ExcludeRasterImage:Ct.type===ie.NH.Occluded?rt.OccludedOnly:rt.Normal;if(ar===rt.OccludedOnly&&(this._renderContext.renderOccludedMask=ut),ee.Z.OVERLAY_DRAW_DEBUG_TEXTURE&&ar!==rt.OccludedOnly)for(let Fr=0;Fr0&&this._sortedRenderers.forAll(({drapeSource:Fr,renderer:mr})=>{if(ar===rt.ExcludeRasterImage&&Fr.drapeSourceType===Y.L.RasterImage)return;const{fullOpacity:wt}=Fr,or=(0,W.pC)(wt)&&wt<1&&jt===ge.H.Color;or&&(this.bindTemporaryFramebuffer(this._rctx,Wt,pr),gr.clearSafe(ue.lk.COLOR_BUFFER_BIT));for(let sr=0;sr{const Lt=_t.indexOf(vt.layer);this._sortedRenderers.push(new tt(vt,Ct,Lt<0?1/0:Lt))}),this._sortedRenderers.sort((Ct,vt)=>Ct.index-vt.index)}_setViewParameters(_t,Ct,vt){vt.viewport[0]=vt.viewport[1]=0,vt.viewport[2]=vt.viewport[3]=Ct.resolution,(0,de.w)(vt.projectionMatrix,0,_t[2]-_t[0],0,_t[3]-_t[1],vt.near,vt.far),(0,de.f)(vt.viewMatrix,[-_t[0],-_t[1],0]),this._bindParameters.camera=vt}_updateHasWater(){const _t=(0,$.oE)(this._renderers,Ct=>Ct.hasWater);_t!==this._hasWater&&(this._hasWater=_t,this.events.emit("has-water",_t))}_updateHasHighlights(){const _t=(0,$.oE)(this._renderers,Ct=>Ct.hasHighlights);_t!==this._hasHighlights&&(this._hasHighlights=_t,this.events.emit("has-highlights",_t))}_updateRendersOccluded(){const _t=(0,$.oE)(this._renderers,Ct=>Ct.rendersOccluded);_t!==this._rendersOccluded&&(this._rendersOccluded=_t,this.events.emit("renders-occluded",_t))}_drawDebugTexture(_t,Ct){this._ensureDebugPatternResources(_t,_t,Ct);const vt=this._rctx;vt.bindTechnique(this._debugTextureTechnique,this._passParameters,null),vt.bindVAO(this._quadVAO),vt.drawArrays(ue.MX.TRIANGLE_STRIP,0,(0,Ye._V)(this._quadVAO,"geometry"))}_ensureDebugPatternResources(_t,Ct,vt){if((0,se.s)(this._passParameters.color,vt[0],vt[1],vt[2]),this._passParameters.texture)return;const Lt=new Uint8Array(_t*Ct*4);let jt=0;for(let Wt=0;Wt_t-20||10*ar>Ct-20?(Lt[jt++]=255,Lt[jt++]=255,Lt[jt++]=255,Lt[jt++]=255):(Lt[jt++]=255,Lt[jt++]=255,Lt[jt++]=255,Lt[jt++]=1&gr&&1&ar?1&pr^1&Wt?0:255:1&gr^1&ar?0:128)}this._passParameters.texture=new Xe.x(this._rctx,{target:ue.No.TEXTURE_2D,pixelFormat:ue.VI.RGBA,dataType:ue.Br.UNSIGNED_BYTE,samplingMode:ue.cw.NEAREST,width:_t,height:Ct},Lt);const $t=new Ge.V;$t.hasAlpha=!0,this._debugTextureTechnique=this._shaderTechniqueRepository.acquire(Ie.K,$t),this._quadVAO=(0,Ke.ow)(this._rctx)}get test(){return{drapeSourceRenderers:this._renderers,getDrapeSourceRenderer:_t=>this._renderers.get(_t)}}};var rt,_t;(0,R._)([(0,te.Cb)()],Je.prototype,"_sortedDrapeSourceRenderersDirty",void 0),(0,R._)([(0,ye.gT)()],Je.prototype,"_shaderTechniqueRepository",void 0),(0,R._)([(0,ye.gT)()],Je.prototype,"_stippleTextureRepository",void 0),(0,R._)([(0,te.Cb)({constructOnly:!0})],Je.prototype,"view",void 0),(0,R._)([(0,te.Cb)()],Je.prototype,"worldToPCSRatio",void 0),(0,R._)([(0,te.Cb)()],Je.prototype,"spatialReference",void 0),(0,R._)([(0,te.Cb)({type:Boolean,readOnly:!0})],Je.prototype,"updating",null),Je=(0,R._)([(0,le.j)("esri.views.3d.terrain.OverlayRenderer")],Je),(_t=rt||(rt={}))[_t.Normal=0]="Normal",_t[_t.OccludedOnly=1]="OccludedOnly",_t[_t.ExcludeRasterImage=2]="ExcludeRasterImage";class tt{constructor(Ct,vt,Lt){this.drapeSource=Ct,this.renderer=vt,this.index=Lt}}const et=[[1,.5,.5],[.5,.5,1]],qe=new xe.V;qe.near=1,qe.far=1e4,qe.relativeElevation=null;const ot=-2,ut=Ce.yD.OccludeAndTransparent},80382:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>ee});var D=v(62208),R=v(44796),G=v(67969),Z=v(99770),Q=v(57596),$=v(55086);function H(ie,J){return new $.x(ie,{width:J.length/4,height:1,target:G.No.TEXTURE_2D,pixelFormat:G.VI.RGBA,internalFormat:G.VI.RGBA,dataType:G.Br.UNSIGNED_BYTE,samplingMode:G.cw.NEAREST,wrapMode:G.e8.CLAMP_TO_EDGE,flipped:!1},J)}const Y={bandCount:3,outMin:0,outMax:1,minCutOff:[0,0,0],maxCutOff:[255,255,255],factor:[1/255,1/255,1/255],useGamma:!1,gamma:[1,1,1],gammaCorrection:[1,1,1],colormap:null,colormapOffset:null,stretchType:"none",type:"stretch"};class ee{constructor(J,ce,ue=null,pe=null){this.type="raster-tile",this._memoryUsed=null,this._source=null,this._symbolizerParameters=null,this._bandIds=null,this._interpolation=null,this._dirty=!1,this._transformGrid=null,this.isRendereredSource=!1,this.symbolizerRenderer=null,this.rawPixelData=null,this.lij=null,this.opacity=1,this.lij=J,this.source=ce,this.width=ue||ce.width,this.height=pe||ce.height}get source(){return this._source}set source(J){this._source=J,this._rasterTexture=(0,D.M2)(this._rasterTexture),this._memoryUsed=null}get symbolizerParameters(){return this.isRendereredSource?{...Y,maxCutOff:[1,1,1],factor:[1,1,1]}:this._symbolizerParameters||Y}set symbolizerParameters(J){this._symbolizerParameters=J}get bandIds(){return this._bandIds}set bandIds(J){(0,D.pC)(J)&&J.length>0?this._bandIds&&J.every((ce,ue)=>!!this._bandIds[ue]&&ce===this._bandIds[ue])||(this._bandIds=J,this._dirty=!0):this._bandIds=null}get interpolation(){return this._interpolation||"nearest"}set interpolation(J){if(this._interpolation=J,(0,D.pC)(this._rasterTexture)){const ce=this._getRasterTextureInterpolation(J);this._rasterTexture.setSamplingMode("bilinear"===ce?G.cw.LINEAR:G.cw.NEAREST)}}get transformGrid(){return this._transformGrid}set transformGrid(J){this._transformGrid=J,this._transformGridTexture=(0,D.M2)(this._transformGridTexture),this._memoryUsed=null}bind(J){return!!(this.source&&this.source.pixels&&this.source.pixels.length>0)&&(((0,D.Wi)(this._rasterTexture)||this._dirty)&&this._updateRasterTexture(J,this.bandIds),(0,D.pC)(this._rasterTexture)&&(this._updateColormapTexture(J),this.transformGrid&&(0,D.Wi)(this._transformGridTexture)&&(this._transformGridTexture=function B(ie,J){const{spacing:ce,offsets:ue,coefficients:pe,size:[he,me]}=J,ge=ce[0]>1,_e={width:ge?4*he:he,height:me,target:G.No.TEXTURE_2D,pixelFormat:G.VI.RGBA,internalFormat:ie.type===Q.zO.WEBGL2?G.lP.RGBA32F:G.VI.RGBA,dataType:G.Br.FLOAT,samplingMode:G.cw.NEAREST,wrapMode:G.e8.CLAMP_TO_EDGE,flipped:!1},Ee=new Float32Array(ge?he*me*16:2*ue.length);if(ge)for(let De=0,be=0;De(0,D.pC)(ce)?ce.descriptor.width*ce.descriptor.height*4:0).reduce((ce,ue)=>ce+ue,0)),this._memoryUsed}release(){return this._rasterTexture=(0,D.M2)(this._rasterTexture),this._transformGridTexture=(0,D.M2)(this._transformGridTexture),this._colormapTexture=(0,D.M2)(this._colormapTexture),this.source=null,this.transformGrid=null,this.rawPixelData=null,!0}_updateRasterTexture(J,ce){const ue=this.source?this.source.extractBands(ce):null;if(!(ue&&ue.pixels&&ue.pixels.length>0))return void(this._rasterTexture=(0,D.M2)(this._rasterTexture));const pe=(0,D.Wi)(ce)&&(0,D.Wi)(this.bandIds)||(0,D.pC)(ce)&&(0,D.pC)(this.bandIds)&&ce.join("")===this.bandIds.join("");if((0,D.pC)(this._rasterTexture)&&pe)return;this._rasterTexture=(0,D.M2)(this._rasterTexture);const he=this._getRasterTextureInterpolation(this.interpolation);this._rasterTexture=function W(ie,J,ce="nearest",ue=!1){const pe=!(ue&&"u8"===J.pixelType),he=pe?G.Br.FLOAT:G.Br.UNSIGNED_BYTE,me=null==J.pixels||0===J.pixels.length?null:pe?J.getAsRGBAFloat():J.getAsRGBA(),ge=ie.capabilities.textureFloat?.textureFloatLinear;return new $.x(ie,{width:J.width,height:J.height,target:G.No.TEXTURE_2D,pixelFormat:G.VI.RGBA,internalFormat:ie.type===Q.zO.WEBGL2&&pe?G.lP.RGBA32F:G.VI.RGBA,samplingMode:!ge||"bilinear"!==ce&&"cubic"!==ce?G.cw.NEAREST:G.cw.LINEAR,dataType:he,wrapMode:G.e8.CLAMP_TO_EDGE,flipped:!1},me)}(J,ue,he,this.isRendereredSource||this.hasStretchTypeNone())}hasStretchTypeNone(){return"stretchType"in this.symbolizerParameters&&"none"===this.symbolizerParameters.stretchType&&!this.symbolizerParameters.useGamma&&"u8"===this.source.pixelType}_getRasterTextureInterpolation(J){return"lut"===this.symbolizerParameters.type||"nearest"===J||"majority"===J?"nearest":"bilinear"}_updateColormapTexture(J){const ce=this._colormap,ue=this.symbolizerParameters.colormap;return ue?ce?ue.length!==ce.length||ue.some((pe,he)=>pe!==ce[he])?(this._colormapTexture=(0,D.M2)(this._colormapTexture),this._colormapTexture=H(J,ue),void(this._colormap=ue)):void 0:(this._colormapTexture=H(J,ue),void(this._colormap=ue)):(this._colormapTexture=(0,D.M2)(this._colormapTexture),void(this._colormap=null))}}},10558:(nt,Ae,v)=>{"use strict";v.d(Ae,{$7:()=>B,$r:()=>Q,DR:()=>W,HB:()=>$,L:()=>de,Lz:()=>te,Sx:()=>H,Tg:()=>ae,cy:()=>X,iU:()=>oe});var D=v(21286),R=v(65401),G=v(23461);const Q=64,$=512,W=2.5,B=(0,D.oK)(D._3/10),H=4,X=(0,R.Ue)();G.t.WebMercatorAuxiliarySphere.getExtent(0,0,0,X);const te=(0,R.Ue)([-180,-90,180,90]),ae="Cannot extend surface to encompass all layers because it would result in too many root tiles.",oe="Surface extent is too large for tile resolution at level 0.";const de=re=>re<4?3:4},23461:(nt,Ae,v)=>{"use strict";v.d(Ae,{_:()=>le,t:()=>oe});var D=v(26584),R=v(21286),G=v(62208),Z=v(16730),Q=v(2004),$=v(55915),W=v(65234),B=v(65401),H=v(37053),X=v(46367),te=v(2584);class oe{constructor(re){const j=oe.checkUnsupported(re);if((0,G.pC)(j))throw j;const Y=(0,G.Wg)(re);this.spatialReference=Y.spatialReference,this._isWebMercator=this.spatialReference.isWebMercator,this._isGCS=(0,$.jF)(this.spatialReference)||(0,H.BZ)(this.spatialReference)||(0,H.V2)(this.spatialReference),this.origin=[Y.origin.x,Y.origin.y],this.pixelSize=Y.size[0],this.dpi=Y.dpi;const ee=Y.lods.reduce((pe,he,me)=>(he.level({level:j,scale:re.scale,resolution:re.resolution}))})}getExtent(re,j,Y,ee){const ie=this.levels[re],J=ie.tileSize[0],ce=ie.tileSize[1];ee[0]=this.origin[0]+Y*J,ee[2]=this.origin[0]+(Y+1)*J,ee[3]=this.origin[1]-j*ce,ee[1]=this.origin[1]-(j+1)*ce}convertExtentToRadians(re,j){this._isWebMercator?(j[0]=(0,X.tp)(re[0]),j[1]=(0,X.mZ)(re[1]),j[2]=(0,X.tp)(re[2]),j[3]=(0,X.mZ)(re[3])):this._isGCS&&(j[0]=(0,R.Vl)(re[0]),j[1]=(0,R.Vl)(re[1]),j[2]=(0,R.Vl)(re[2]),j[3]=(0,R.Vl)(re[3]))}getExtentGeometry(re,j,Y,ee=new Q.Z){return this.getExtent(re,j,Y,de),ee.spatialReference=this.spatialReference,ee.xmin=de[0],ee.ymin=de[1],ee.xmax=de[2],ee.ymax=de[3],ee.zmin=void 0,ee.zmax=void 0,ee}ensureMaxLod(re){if(null==re)return!1;let j=!1;for(;this.levels.length<=re;){const Y=this.levels[this.levels.length-1],ee=Y.resolution/2;this.levels.push({resolution:ee,scale:Y.scale/2,tileSize:[ee*this.pixelSize,ee*this.pixelSize]}),j=!0}return j}capMaxLod(re){this.levels.length>re+1&&(this.levels.length=re+1)}getMaxLod(){return this.levels.length-1}scaleAtLevel(re){return this.levels[0].scale/2**re}levelAtScale(re){const j=this.levels[0].scale;return re>=j?0:Math.log(j/re)*Math.LOG2E}resolutionAtLevel(re){return this.levels[0].resolution/2**re}compatibleWith(re){if(!(re instanceof oe)){if(oe.checkUnsupported(re))return!1;re=new oe(re)}if(!re.spatialReference.equals(this.spatialReference)||re.pixelSize!==this.pixelSize)return!1;const j=Math.min(this.levels.length,re.levels.length)-1,Y=this.levels[j].resolution;let ee=.5*Y;return!(!(0,R.W8)(re.origin[0],this.origin[0],ee)||!(0,R.W8)(re.origin[1],this.origin[1],ee))&&(ee=.5*Y/2**j/this.pixelSize*12,(0,R.W8)(Y,re.levels[j].resolution,ee))}rootTilesInExtent(re,j=null,Y=1/0){const ee=new Array,ie=this.levels[0].tileSize;if((0,G.Wi)(re)||0===ie[0]||0===ie[1])return ee;oe.computeRowColExtent(re,ie,this.origin,de);let J=de[1],ce=de[3],ue=de[0],pe=de[2];const he=pe-ue,me=ce-J;if(he*me>Y){const ge=Math.floor(Math.sqrt(Y));me>ge&&(J=J+Math.floor(.5*me)-Math.floor(.5*ge),ce=J+ge),he>ge&&(ue=ue+Math.floor(.5*he)-Math.floor(.5*ge),pe=ue+ge)}for(let ge=J;ge!(0,R.Y8)(ee.resolution,Y/2**ee.level))}static hasGapInLevels(re){const j=re.lods.map(Y=>Y.level);j.sort((Y,ee)=>Y-ee);for(let Y=1;Y=128&&j<=512}static hasOriginPerLODs(re){const j=re.origin;return re.lods.some(Y=>null!=Y.origin&&(Y.origin[0]!==j.x||Y.origin[1]!==j.y))}static getMissingTileInfoError(){return new D.Z("tilingscheme:tile-info-missing","Tiling scheme must have tiling information")}static checkUnsupported(re){return(0,G.Wi)(re)?le():re.lods.length<1?new D.Z("tilingscheme:generic","Tiling scheme must have at least one level"):oe.isPowerOfTwo(re)?oe.hasGapInLevels(re)?new D.Z("tilingscheme:gaps","Tiling scheme levels must not have gaps between min and max level"):oe.tileSizeSupported(re)?oe.hasOriginPerLODs(re)?new D.Z("tilingscheme:multiple-origin","Tiling scheme levels must not have their own origin"):null:new D.Z("tilingscheme:tile-size","Tiles must be square and size must be one of [128, 256, 512]"):new D.Z("tilingscheme:power-of-two","Tiling scheme must be power of two")}static fromExtent(re,j){const Y=re[2]-re[0],ee=re[3]-re[1],ie=(0,Z.c9)(j),J=1.2*Math.max(Y,ee),he=new oe(new te.Z({size:[256,256],origin:{x:re[0]-.5*(J-Y),y:re[3]+.5*(J-ee)},lods:[{level:0,resolution:J/256,scale:1/(256/96*.0254/(J*ie))}],spatialReference:j}));return he.ensureMaxLod(20),he}static makeWebMercatorAuxiliarySphere(re){const j=new oe(oe.WebMercatorAuxiliarySphereTileInfo);return j.ensureMaxLod(re),j}static makeGCSWithTileSize(re,j=256,Y=16){const ee=256/j,ie=new oe(new te.Z({size:[j,j],origin:{x:-180,y:90,spatialReference:re},spatialReference:re,lods:[{level:0,resolution:.703125*ee,scale:295497598.570834*ee}]}));return ie.ensureMaxLod(Y),ie}get test(){return{isWebMercator:this._isWebMercator,isGCS:this._isGCS}}}function le(){return new D.Z("tilingscheme:tile-info-missing","Tiling scheme must have tiling information")}oe.WebMercatorAuxiliarySphereTileInfo=new te.Z({size:[256,256],origin:{x:-20037508.342787,y:20037508.342787,spatialReference:W.Z.WebMercator},spatialReference:W.Z.WebMercator,lods:[{level:0,resolution:156543.03392800014,scale:591657527.591555}]}),oe.WebMercatorAuxiliarySphere=oe.makeWebMercatorAuxiliarySphere(19);const de=(0,B.Ue)()},75224:(nt,Ae,v)=>{"use strict";var D,R,G,Z,Q,$,W,B;v.d(Ae,{NH:()=>Q,Ns:()=>$,VB:()=>Z,Xo:()=>G,fu:()=>D,ir:()=>W,tk:()=>R}),(B=D||(D={}))[B.INNER=0]="INNER",B[B.OUTER=1]="OUTER",function(B){B[B.REGULAR=0]="REGULAR",B[B.HAS_NORTH_POLE=1]="HAS_NORTH_POLE",B[B.HAS_SOUTH_POLE=2]="HAS_SOUTH_POLE",B[B.HAS_BOTH_POLES=3]="HAS_BOTH_POLES"}(R||(R={})),function(B){B[B.NORTH=0]="NORTH",B[B.NORTH_EAST=1]="NORTH_EAST",B[B.EAST=2]="EAST",B[B.SOUTH_EAST=3]="SOUTH_EAST",B[B.SOUTH=4]="SOUTH",B[B.SOUTH_WEST=5]="SOUTH_WEST",B[B.WEST=6]="WEST",B[B.NORTH_WEST=7]="NORTH_WEST"}(G||(G={})),function(B){B[B.OFF=0]="OFF",B[B.ON=1]="ON"}(Z||(Z={})),function(B){B[B.Color=0]="Color",B[B.ColorNoRasterImage=1]="ColorNoRasterImage",B[B.Highlight=2]="Highlight",B[B.Water=3]="Water",B[B.Occluded=4]="Occluded",B[B.ObjectAndLayerIdColor=5]="ObjectAndLayerIdColor"}(Q||(Q={})),function(B){B[B.FADING=0]="FADING",B[B.IMMEDIATE=1]="IMMEDIATE",B[B.UNFADED=2]="UNFADED"}($||($={})),function(B){B[B.INSIDE=0]="INSIDE",B[B.INTERSECTS=1]="INTERSECTS",B[B.OUTSIDE=2]="OUTSIDE"}(W||(W={}))},61779:(nt,Ae,v)=>{"use strict";v.d(Ae,{jt:()=>De,XJ:()=>be,Wq:()=>_t,er:()=>Je,T9:()=>ye,b5:()=>Se,RB:()=>xe,E_:()=>rt,Fp:()=>ve,TK:()=>He,Eu:()=>Wt,_1:()=>Fe,CY:()=>Re,a_:()=>je,sR:()=>Ke,Ay:()=>Pe,GL:()=>Ie,Mw:()=>gr,wt:()=>jt,x4:()=>ze,L4:()=>Ne,uv:()=>pr,wP:()=>Ge,z7:()=>Me,FH:()=>We,Q:()=>Ce,Ke:()=>Le,OD:()=>$t,_0:()=>Lt,sP:()=>ot,cA:()=>Fr,OC:()=>ar,$v:()=>Ct,_F:()=>vt,z4:()=>Xe,Bu:()=>qe,FZ:()=>Ye,zT:()=>ut,jO:()=>et,wu:()=>Ee});var D=v(46160),R=v(62208),G=v(37053),Z=v(72469),Q=v(59617),$=v(91540),W=v(75224),B=v(26584),H=v(84161),X=v(28093),te=v(55915),ae=v(65401),oe=v(10558),le=v(23461);const de=(0,X.c)(),se=(0,X.c)(),re=(0,X.c)(),j=(0,X.c)();function ee(wt,or,sr,rr){(0,H.c)(de,sr),de[rr]=or[rr];const Et=(0,H.b)(de,de,or),St=(0,H.b)(se,wt,or),Ft=(0,H.e)(St,Et),zt=(0,H.e)(Et,Et);let dr;dr=Ft<=0?or:zt<=Ft?sr:(0,H.a)(de,or,(0,H.g)(Et,Et,Ft/zt));const hr=(0,H.b)(de,wt,dr);return Math.PI/2-Math.atan(hr[2]/Math.sqrt(hr[0]*hr[0]+hr[1]*hr[1]))}const ue=Object.freeze(Object.defineProperty({__proto__:null,isInsideExtent:function Y(wt,or,sr=0){const rr=wt.extent;if((0,R.Wi)(rr))return!1;if(0===sr)return(0,ae.BD)(rr,or);const Et=Math.min(rr[2]-rr[0],rr[3]-rr[1]);return(0,ae.Zm)(rr,or,sr*Et)},tiltToExtentEdge:function ie(wt,or,sr){const rr=wt.extent;if((0,R.Wi)(rr))return 0;re[0]=rr[0],re[1]=rr[1],re[2]=sr,j[0]=rr[2],j[1]=rr[3],j[2]=sr;let Et=1/0,St=1/0;return or[0]j[0]&&(Et=ee(or,j,re,0)),or[1]j[1]&&(St=ee(or,j,re,1)),Math.min(Et,St)},checkIfTileInfoSupportedForViewSR:function J(wt,or,sr){if((0,R.Wi)(wt))return(0,le._)();if(wt.spatialReference.isGeographic&&!(0,te.jF)(wt.spatialReference))return new B.Z("tilingscheme:local-unsupported-spatial-reference","The tiling scheme spatial reference is not supported in local scenes");const rr=le.t.checkUnsupported(wt);if((0,R.pC)(rr))return rr;if((0,R.Wi)(sr))return new B.Z("tilingscheme:extent-not-exist","The layer does not provide a layer extent.");const Et=function ce(wt,or){const sr=wt.lods,rr=sr[0].resolution*2**sr[0].level,Et=[rr*wt.size[0],rr*wt.size[1]],St=[wt.origin.x,wt.origin.y],Ft=(0,ae.oJ)(or),zt=(0,ae.Ue)();le.t.computeRowColExtent(Ft,Et,St,zt);const dr=(zt[2]-zt[0])*(zt[3]-zt[1]);if(dr>oe.$r){const hr=sr[0].scale*2**sr[0].level;let Tr=Math.max((Ft[3]-Ft[1])/wt.size[1],(Ft[2]-Ft[0])/wt.size[0])*hr/rr;const Dr=Math.floor(Math.log(Tr)/Math.log(10));return Tr=Math.ceil(Tr/10**Dr)*10**Dr,new B.Z("tilingscheme:too-many-root-tiles","Scale of level 0 of the tiling scheme (1:"+Math.floor(hr).toLocaleString()+") is too large for the layer's extent. Suggested scale: 1:"+Tr.toLocaleString()+".",{level0Scale:hr,suggestedLevel0Scale:Tr,requiredNumRootTiles:dr,allowedNumRootTiles:oe.$r})}return null}(wt,sr);if(Et)return Et;const St=wt.spatialReference;return(0,R.pC)(or)&&!(St.equals(or)||or.isWGS84&&St.isWebMercator)?new B.Z("tilingscheme:spatial-reference-mismatch","The tiling scheme does not match the spatial reference of the local scene"):null}},Symbol.toStringTag,{value:"Module"})),ge=Object.freeze(Object.defineProperty({__proto__:null,isInsideExtent:function pe(){return!0},tiltToExtentEdge:function he(){return 0},checkIfTileInfoSupportedForViewSR:function me(wt,or){if((0,R.Wi)(wt))return(0,le._)();const sr=wt.lods.length-1,rr=wt.spatialReference,Et=(0,te.jF)(rr)||(0,G.BZ)(rr)||(0,G.V2)(rr);if(rr.isWebMercator){if(!le.t.makeWebMercatorAuxiliarySphere(sr).compatibleWith(wt))return new B.Z("tilingscheme:incompatible-global-web-mercator","The tiling scheme is not compatible with the ArcGIS Online Web Mercator tiling scheme")}else{if(!Et)return new B.Z("tilingscheme:global-unsupported-spatial-reference","The tiling scheme spatial reference is not supported in global scenes");if(!le.t.makeGCSWithTileSize(wt.spatialReference,wt.size[0],sr).compatibleWith(wt))return wt.spatialReference.isWGS84?new B.Z("tilingscheme:incompatible-global-wgs84","The tiling scheme is not compatible with the ArcGIS Online WGS84 tiling scheme"):new B.Z("tilingscheme:incompatible-global","The tiling scheme is not compatible with the ArcGIS Online tiling scheme")}return(0,R.pC)(or)&&!wt.spatialReference.equals(or)?new B.Z("tilingscheme:spatial-reference-mismatch","The tiling scheme does not match the spatial reference of the global scene"):void 0}},Symbol.toStringTag,{value:"Module"})),_e={[Q.JY.Global]:ge,[Q.JY.Local]:ue};function Ee(wt,or){wt||console.warn("Terrain: "+or)}let De=!1,be=!1;function Se(wt){be=wt,De=De||wt}function ye(wt){De=wt}function ve(wt,or){if(De&&!wt){const sr=(new Error).stack.slice(5);throw console.warn("Terrain internal: "+(or||"")+" at "+sr),new Error("Assertion failed"+(or?": "+or:""))}}function xe(wt){return Ke(wt)?{fullExtent:wt.fullExtent,minScale:wt.layer.minScale,maxScale:wt.layer.maxScale,tilemapCache:null}:wt.layer}function ze(wt){return"imagery-tile"===wt?.type||"wcs"===wt?.type}function Ke(wt){return"imagery-tile-3d"===wt?.type}function We(wt){return"tile-3d"===wt?.type}function Ce(wt){return"vector-tile-3d"===wt?.type}function Be(wt){return"wmts-3d"===wt?.type}function Fe(wt){return"elevation-3d"===wt?.type}function je(wt){return"group"===wt?.type}function Re(wt){return"group"===wt?.type}function He(wt){return wt&&(We(wt)||Be(wt)||Ke(wt)||Ce(wt))}function Ie(wt){return wt&&(We(wt)||Ke(wt)||Ce(wt)||Be(wt))}function Ge(wt){return Ie(wt)||Fe(wt)}function Pe(wt){const or=wt?.sourceLayerInfo?.data;return(0,R.pC)(or)&&"type"in or&&"raster-tile"===or.type}function Le(wt){const or=wt?.sourceLayerInfo?.data;return(0,R.pC)(or)&&"type"in or&&"vector-tile"===or.type}function Me(wt){const or=wt?.sourceLayerInfo?.data;return(0,R.pC)(or)&&"type"in or&&"tile-texture"===or.type}function Ne(wt){const or=wt?.sourceLayerInfo?.data;return or instanceof HTMLImageElement||or instanceof $.nN||or instanceof HTMLCanvasElement||or instanceof ImageData}function Xe(wt){return(0,R.pC)(wt)&&"release"in wt&&wt.release(),null}function Ye(wt){return wt.fetchTile&&!1!==wt.hasOverriddenFetchTile}function Je(wt,or,sr,rr){return _e[rr].checkIfTileInfoSupportedForViewSR(wt,sr,or)}function rt(wt,or,sr){let rr=null,Et=null;if("wmts"===wt?.type){const St=function tt(wt,or,sr){const rr=(0,Z.mt)(wt);if((0,R.pC)(rr)){if(!D.Z.isCollection(rr))return{tileInfo:rr.tileInfo,fullExtent:rr.fullExtent};{const Et=rr.find(St=>null==Je(St.tileInfo,St.fullExtent,or,sr));if(Et)return{tileInfo:Et.tileInfo,fullExtent:Et.fullExtent}}}return{tileInfo:null,fullExtent:null}}(wt,or,sr);rr=St.tileInfo,Et=St.fullExtent}else{Et=ze(wt)?wt.getCompatibleFullExtent(or):wt.fullExtent;const St=sr===Q.JY.Local;if(ze(wt))rr=wt.getCompatibleTileInfo(or,Et,St);else if("vector-tile"===wt?.type){const Ft=St&&!et(or)||qe.force512VTL,zt=wt.tileInfo.spatialReference.isGeographic;rr=Ft?wt.tileInfo:wt.tileInfo.getOrCreateCompatible(256,zt?1:2)}else rr=wt.tileInfo}return(0,R.pC)(rr)&&(0,R.pC)(Et)&&null==Je(rr,Et,or,sr)?{tileInfo:rr,fullExtent:Et}:null}function et(wt){return wt.isWGS84||wt.isWebMercator||(0,G.yW)(wt)||!(0,G.N$)(wt)}const qe={force512VTL:!1};function ot(wt){return"["+wt[0]+","+wt[1]+","+wt[2]+"]"}function ut(wt){return"("+wt[0]+","+wt[1]+","+wt[2]+")"}function _t(wt,or,sr=mr){return Math.abs(wt-or){"use strict";v.d(Ae,{AA:()=>G,E9:()=>se,QT:()=>le,b:()=>oe,dF:()=>X,gl:()=>B,rv:()=>Z,t8:()=>de,yf:()=>W,zW:()=>H});var D=v(62208),R=v(77029);class G{constructor(){this._queue=new R.Z,this._last=null,this.remove=()=>{}}get done(){return 0===this._queue.length&&(!this._last||this._last.isLeaf)}resetOne(j){this._queue.clear(),this._queue.push(j),this._last=null}reset(j=null){this._queue.clear(),(0,D.pC)(j)&&this._queue.pushArray(j),this._last=null}skipSubtree(){this._last=null}next(){return this._last&&!this._last.isLeaf&&this._queue.pushArray(this._last.children),this._last=this._queue.pop(),this._last}}class Z{constructor(){this._q=new R.Z}get done(){return 0===this._q.length}reset(j){if(this._q.clear(),!(0,D.Wi)(j)){this._q.pushArray(j);for(let Y=0;Yee.xmax||ie[3]>ee.ymax)return!1}else if(ee.xmin>ie[2]||ee.ymin>ie[3]||ee.xmax0&&J>1.00000001*j.minScale||j.maxScale>0&&J<.99999999*j.maxScale)}function B(re,j){return re.lij[0]-j.lij[0]||re.lij[1]-j.lij[1]||re.lij[2]-j.lij[2]}function H(re,j,Y=null){(0,D.Wi)(Y)||0===Y.length?j.sort((ee,ie)=>X(ee,ie,re)):j.sort((ee,ie)=>function te(re,j,Y,ee){return ae(re,ee)===ae(j,ee)?X(re,j,Y):re?Y:-Y}(ee,ie,re,Y))}function X(re,j,Y){const ee=re.screenDepth,ie=j.screenDepth;return eeie?Y:B(re,j)}function ae(re,j){for(const Y of j)if(re.intersectsExtent(Y))return!0;return!1}function oe(re,j){const Y=new Map;re.forAll(ee=>Y.set(ee.lij,ee.distanceToSquared(j))),re.sort((ee,ie)=>Y.get(ee.lij)-Y.get(ie.lij)||B(ee,ie))}function le(re,j,Y){let ee=1,ie=0,J=0;for(;re!==j;)if(ee*=.5,ie*=.5,J*=.5,1&re.lij[2]&&(ie+=.5),0==(1&re.lij[1])&&(J+=.5),null==(re=re.parent))throw new Error("tile was not a descendant of upsampleTile");Y.init(j,ie,J,ee)}function de(re){for(let j=0;j{"use strict";v.d(Ae,{Z:()=>Z,c:()=>G});var Z,Q,D=v(17626),R=v(2286);class G extends R.Xn{constructor(){super(...arguments),this.visible=Z.Hidden}}(0,D._)([(0,R.gT)()],G.prototype,"renderable",void 0),(0,D._)([(0,R.gT)()],G.prototype,"components",void 0),(Q=Z||(Z={}))[Q.Hidden=0]="Hidden",Q[Q.Visible=1]="Visible"},75550:(nt,Ae,v)=>{"use strict";v.d(Ae,{O:()=>le,_:()=>de});var le,se,D=v(17626),R=v(35357),G=v(50574),Z=v(13934),Q=v(26859),$=v(36603),W=v(96395),B=v(92724),H=v(22799),X=v(37847),te=v(87601),ae=v(42743),oe=v(44835);(se=le||(le={}))[se.None=0]="None",se[se.NoOverlay=1]="NoOverlay",se[se.ColorOverlay=2]="ColorOverlay",se[se.ColorOverlayWithWater=3]="ColorOverlayWithWater",se[se.COUNT=4]="COUNT";class de extends te.m{constructor(){super(...arguments),this.output=Z.H.Color,this.textureCoordinateType=$.N.None,this.componentData=R._N.Uniform,this.cullFace=ae.Vr.Back,this.vertexDiscardMode=G.a.None,this.doubleSidedMode=W.q.WindingOrder,this.alphaDiscardMode=ae.JJ.Opaque,this.integratedMeshMode=le.None,this.transparencyPassType=oe.A.NONE,this.ellipsoidMode=H.U.Earth,this.pbrMode=B.f7.Disabled,this.normalType=Q.h.Attribute,this.spherical=!1,this.doublePrecisionRequiresObfuscation=!1,this.hasVertexColors=!1,this.hasNormals=!1,this.hasSlicePlane=!1,this.hasBaseColorTexture=!1,this.receiveAmbientOcclusion=!0,this.receiveShadows=!0,this.blendingEnabled=!0,this.hasScreenSpaceReflections=!1,this.hasPolygonOffset=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasOccludees=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1,this.useLegacyTerrainShading=!1,this.hasCloudsReflections=!0,this.snowCover=!1,this.objectAndLayerIdColor=!1,this.hasWebGL2Context=!1}}(0,D._)([(0,te.o)({count:Z.H.COUNT})],de.prototype,"output",void 0),(0,D._)([(0,te.o)({count:$.N.COUNT})],de.prototype,"textureCoordinateType",void 0),(0,D._)([(0,te.o)({count:R._N.COUNT})],de.prototype,"componentData",void 0),(0,D._)([(0,te.o)({count:ae.Vr.COUNT})],de.prototype,"cullFace",void 0),(0,D._)([(0,te.o)({count:G.a.COUNT})],de.prototype,"vertexDiscardMode",void 0),(0,D._)([(0,te.o)({count:W.q.COUNT})],de.prototype,"doubleSidedMode",void 0),(0,D._)([(0,te.o)({count:ae.JJ.COUNT})],de.prototype,"alphaDiscardMode",void 0),(0,D._)([(0,te.o)({count:le.COUNT})],de.prototype,"integratedMeshMode",void 0),(0,D._)([(0,te.o)({count:oe.A.COUNT})],de.prototype,"transparencyPassType",void 0),(0,D._)([(0,te.o)({count:H.U.COUNT})],de.prototype,"ellipsoidMode",void 0),(0,D._)([(0,te.o)({count:B.f7.COUNT})],de.prototype,"pbrMode",void 0),(0,D._)([(0,te.o)({count:Q.h.COUNT})],de.prototype,"normalType",void 0),(0,D._)([(0,te.o)()],de.prototype,"spherical",void 0),(0,D._)([(0,te.o)()],de.prototype,"doublePrecisionRequiresObfuscation",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasVertexColors",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasNormals",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasSlicePlane",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasBaseColorTexture",void 0),(0,D._)([(0,te.o)()],de.prototype,"receiveAmbientOcclusion",void 0),(0,D._)([(0,te.o)()],de.prototype,"receiveShadows",void 0),(0,D._)([(0,te.o)()],de.prototype,"blendingEnabled",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasScreenSpaceReflections",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasPolygonOffset",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasMetallicRoughnessTexture",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasEmissionTexture",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasOcclusionTexture",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasNormalTexture",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasOccludees",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasMultipassTerrain",void 0),(0,D._)([(0,te.o)()],de.prototype,"cullAboveGround",void 0),(0,D._)([(0,te.o)()],de.prototype,"useLegacyTerrainShading",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasCloudsReflections",void 0),(0,D._)([(0,te.o)()],de.prototype,"snowCover",void 0),(0,D._)([(0,te.o)()],de.prototype,"objectAndLayerIdColor",void 0),(0,D._)([(0,te.o)()],de.prototype,"hasWebGL2Context",void 0),(0,D._)([(0,te.o)({constValue:X.P.Draw})],de.prototype,"pbrTextureBindType",void 0),(0,D._)([(0,te.o)({constValue:!0})],de.prototype,"hasSliceHighlight",void 0),(0,D._)([(0,te.o)({constValue:!1})],de.prototype,"hasSliceInVertexProgram",void 0),(0,D._)([(0,te.o)({constValue:!1})],de.prototype,"useCustomDTRExponentForWater",void 0),(0,D._)([(0,te.o)({constValue:!1})],de.prototype,"hasVertexTangents",void 0),(0,D._)([(0,te.o)({constValue:!0})],de.prototype,"supportsTextureAtlas",void 0),(0,D._)([(0,te.o)({constValue:!1})],de.prototype,"highStepCount",void 0),(0,D._)([(0,te.o)({constValue:!1})],de.prototype,"instancedDoublePrecision",void 0),(0,D._)([(0,te.o)({constValue:!0})],de.prototype,"useFillLights",void 0),(0,D._)([(0,te.o)({constValue:!1})],de.prototype,"objectAndLayerIdColorInstanced",void 0)},35357:(nt,Ae,v)=>{"use strict";v.d(Ae,{AD:()=>Y,_N:()=>se,E_:()=>re,nO:()=>j});var D=v(94573),R=v(36161),G=v(8314),Z=v(60785),Q=v(13934),$=v(19278),W=v(43177),B=v(90637),H=v(85930),X=v(37847);class te extends H.x{constructor(ce,ue){super(ce,"int",X.P.Draw,(pe,he,me)=>pe.setUniform1i(ce,ue(he,me)))}}var se,J,ae=v(17625),oe=v(5864),le=v(19755),de=v(16396);(J=se||(se={}))[J.Uniform=0]="Uniform",J[J.Varying=1]="Varying",J[J.COUNT=2]="COUNT";const re=429496.7296;function j(J,ce){(0,R.I)(J/re*.5+.5,ce)}function Y(J,ce){switch(ce.componentData){case se.Varying:return function ee(J,ce){const{vertex:ue,fragment:pe}=J;ue.include($.n),ue.uniforms.add((0,oe.F)("componentColorTex",me=>me.componentParameters.texture.texture,ce.hasWebGL2Context?le.D.None:le.D.Size)),J.attributes.add(de.T.COMPONENTINDEX,"float"),J.varyings.add("vExternalColorMixMode","mediump float"),J.varyings.add("vExternalColor","vec4");const he=ce.output===Q.H.ObjectAndLayerIdColor;he&&J.varyings.add("vObjectAndLayerIdColor","vec4"),J.include(Z.A),ue.constants.add("elevationScale","float",2*re),ue.constants.add("stride","float",(0,G.Z)("enable-feature:objectAndLayerId-rendering")?3:2),ue.code.add(ae.H` - vec2 getComponentTextureCoordinates(float componentIndex, float typeOffset) { - vec2 textureSize = ${(0,W.w_)(ce,"componentColorTex")}; - - float index = componentIndex * stride + typeOffset; - float coordX = mod(index, textureSize.x); - float coordY = floor(index / textureSize.x); - - return vec2(coordX, coordY) + 0.5; - } - `),ue.code.add(ae.H` - vec4 _readComponentColor() { - vec2 textureCoordinates = getComponentTextureCoordinates(componentIndex, 0.0); - - return ${(0,W.b6)(ce,"componentColorTex","textureCoordinates","1.0 / componentColorTexSize")}; - } - - float readElevationOffset() { - vec2 textureCoordinates = getComponentTextureCoordinates(componentIndex, 1.0); - - vec4 encodedElevation = ${(0,W.b6)(ce,"componentColorTex","textureCoordinates","1.0 / componentColorTexSize")}; - return (rgba2float(encodedElevation) - 0.5) * elevationScale; - } - - ${he?ae.H` - void forwardObjectAndLayerIdColor() { - vec2 textureCoordinates = getComponentTextureCoordinates(componentIndex, 2.0); - - vObjectAndLayerIdColor = ${(0,W.b6)(ce,"componentColorTex","textureCoordinates","1.0 / componentColorTexSize")}; - }`:ae.H`void forwardObjectAndLayerIdColor() {}`} - - vec4 forwardExternalColor(out bool castShadows) { - vec4 componentColor = _readComponentColor() * 255.0; - - float shadowFlag = mod(componentColor.b * 255.0, 2.0); - componentColor.b -= shadowFlag; - castShadows = shadowFlag >= 1.0; - - int decodedColorMixMode; - vExternalColor = decodeSymbolColor(componentColor, decodedColorMixMode) * 0.003921568627451; // = 1/255; - vExternalColorMixMode = float(decodedColorMixMode) + 0.5; // add 0.5 to avoid interpolation artifacts - - return vExternalColor; - } -`),pe.code.add(ae.H` - void readExternalColor(out vec4 externalColor, out int externalColorMixMode) { - externalColor = vExternalColor; - externalColorMixMode = int(vExternalColorMixMode); - } - - void outputObjectAndLayerIdColor() { - ${he?ae.H`gl_FragColor = vObjectAndLayerIdColor;`:""} - } -`)}(J,ce);case se.Uniform:return function ie(J){const{vertex:ce,fragment:ue}=J;ce.uniforms.add(new B.$("externalColor",pe=>pe.componentParameters.externalColor)),ue.uniforms.add(new te("externalColorMixMode",pe=>pe.componentParameters.externalColorMixMode)),J.varyings.add("vExternalColor","vec4"),ce.code.add(ae.H`float readElevationOffset() { -return 0.0; -} -void forwardObjectAndLayerIdColor() { -} -vec4 forwardExternalColor(out bool castShadows) { -vExternalColor = externalColor; -castShadows = true; -return externalColor; -}`),ue.code.add(ae.H`void readExternalColor(out vec4 color, out int colorMixMode) { -color = vExternalColor; -colorMixMode = externalColorMixMode; -} -void outputObjectAndLayerIdColor() { -gl_FragColor = vec4(1.0,0.0,0.0,0.0); -}`)}(J);case se.COUNT:return;default:(0,D.Bg)(ce.componentData)}}},60785:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>G});var D=v(9044),R=v(17625);function G(Z){Z.vertex.code.add(R.H` - vec4 decodeSymbolColor(vec4 symbolColor, out int colorMixMode) { - float symbolAlpha = 0.0; - - const float maxTint = 85.0; - const float maxReplace = 170.0; - const float scaleAlpha = 3.0; - - if (symbolColor.a > maxReplace) { - colorMixMode = ${R.H.int(D.a9.Multiply)}; - symbolAlpha = scaleAlpha * (symbolColor.a - maxReplace); - } else if (symbolColor.a > maxTint) { - colorMixMode = ${R.H.int(D.a9.Replace)}; - symbolAlpha = scaleAlpha * (symbolColor.a - maxTint); - } else if (symbolColor.a > 0.0) { - colorMixMode = ${R.H.int(D.a9.Tint)}; - symbolAlpha = scaleAlpha * symbolColor.a; - } else { - colorMixMode = ${R.H.int(D.a9.Multiply)}; - symbolAlpha = 0.0; - } - - return vec4(symbolColor.r, symbolColor.g, symbolColor.b, symbolAlpha); - } - `)}},50574:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>R,z:()=>G});var R,Z,D=v(17625);function G(Z,Q){const $=Z.vertex;switch($.code.add(D.H`#define VERTEX_DISCARD_CUTOFF (1.0 - 1.0 / 255.0)`),Q.vertexDiscardMode){case R.None:$.code.add(D.H`#define vertexDiscardByOpacity(_opacity_) {}`);break;case R.Opaque:$.code.add(D.H`#define vertexDiscardByOpacity(_opacity_) { if (_opacity_ > VERTEX_DISCARD_CUTOFF) { gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`);break;case R.Transparent:$.code.add(D.H`#define vertexDiscardByOpacity(_opacity_) { if (_opacity_ <= VERTEX_DISCARD_CUTOFF) { gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`)}}(Z=R||(R={}))[Z.None=0]="None",Z[Z.Transparent=1]="Transparent",Z[Z.Opaque=2]="Opaque",Z[Z.COUNT=3]="COUNT"},27355:(nt,Ae,v)=>{"use strict";v.d(Ae,{N:()=>Z});var D=v(19625),R=v(36603),G=v(16396);function Z(Q){const $=(0,D.U$)().vec3f(G.T.POSITION);return Q.normals&&$.vec2i16(G.T.NORMALCOMPRESSED,{glNormalized:!0}),Q.textureCoordinates===R.N.Default?$.vec2f(G.T.UV0):Q.textureCoordinates===R.N.Atlas&&($.vec2f(G.T.UV0),$.vec4u16(G.T.UVREGION,{glNormalized:!0})),Q.colors&&$.vec4u8(G.T.COLOR,{glNormalized:!0}),$.alignTo(4)}},43553:(nt,Ae,v)=>{"use strict";v.d(Ae,{SP:()=>W,T5:()=>H,kF:()=>B,o9:()=>Q,zp:()=>$});var Q,$,X,D=v(28093),R=v(21799);class G extends R.d4{constructor(){super(...arguments),this.slicePlaneLocalOrigin=(0,D.c)(),this.origin=this.slicePlaneLocalOrigin}}(X=Q||(Q={}))[X.Material=0]="Material",X[X.ShadowMap=1]="ShadowMap",X[X.Highlight=2]="Highlight",function(X){X[X.Color=0]="Color",X[X.Alpha=1]="Alpha",X[X.Depth=2]="Depth",X[X.Normal=3]="Normal",X[X.ObjectAndLayerIdColor=4]="ObjectAndLayerIdColor"}($||($={}));class W extends G{constructor(){super(...arguments),this.identifier=Q.Material,this.transparent=!1,this.integratedMesh=!1}}class B extends G{constructor(){super(...arguments),this.identifier=Q.ShadowMap}}class H extends G{constructor(){super(...arguments),this.identifier=Q.Highlight}}},52382:(nt,Ae,v)=>{"use strict";v.d(Ae,{Lm:()=>Q,Zu:()=>$,bA:()=>W,qj:()=>B});var D=v(13934),R=v(51040),G=v(95285),Z=v(17625);function Q(H){H.varyings.add("linearDepth","float")}function $(H){H.vertex.uniforms.add(new G.A("nearFar",(X,te)=>te.camera.nearFar))}function W(H){H.vertex.code.add(Z.H`float calculateLinearDepth(vec2 nearFar,float z) { -return (-z - nearFar[0]) / (nearFar[1] - nearFar[0]); -}`)}function B(H,X){const{vertex:te}=H;switch(X.output){case D.H.Color:if(X.receiveShadows)return Q(H),void te.code.add(Z.H`void forwardLinearDepth() { linearDepth = gl_Position.w; }`);break;case D.H.Depth:case D.H.Shadow:case D.H.ShadowHighlight:case D.H.ShadowExludeHighlight:return H.include(R.up,X),Q(H),$(H),W(H),void te.code.add(Z.H`void forwardLinearDepth() { -linearDepth = calculateLinearDepth(nearFar, vPosition_view.z); -}`)}te.code.add(Z.H`void forwardLinearDepth() {}`)}},73132:(nt,Ae,v)=>{"use strict";v.d(Ae,{w:()=>R});var D=v(17625);function R(G){G.vertex.code.add(D.H`vec4 offsetBackfacingClipPosition(vec4 posClip, vec3 posWorld, vec3 normalWorld, vec3 camPosWorld) { -vec3 camToVert = posWorld - camPosWorld; -bool isBackface = dot(camToVert, normalWorld) > 0.0; -if (isBackface) { -posClip.z += 0.0000003 * posClip.w; -} -return posClip; -}`)}},98071:(nt,Ae,v)=>{"use strict";v.d(Ae,{k:()=>G});var D=v(17625),R=v(16396);function G(Z,Q=!0){Z.attributes.add(R.T.POSITION,"vec2"),Q&&Z.varyings.add("uv","vec2"),Z.vertex.code.add(D.H` - void main(void) { - gl_Position = vec4(position, 0.0, 1.0); - ${Q?D.H`uv = position * 0.5 + vec2(0.5);`:""} - } - `)}},13934:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{H:()=>D}),(R=D||(D={}))[R.Color=0]="Color",R[R.Depth=1]="Depth",R[R.Normal=2]="Normal",R[R.Shadow=3]="Shadow",R[R.ShadowHighlight=4]="ShadowHighlight",R[R.ShadowExludeHighlight=5]="ShadowExludeHighlight",R[R.Highlight=6]="Highlight",R[R.Alpha=7]="Alpha",R[R.ObjectAndLayerIdColor=8]="ObjectAndLayerIdColor",R[R.COUNT=9]="COUNT"},78925:(nt,Ae,v)=>{"use strict";v.d(Ae,{P_:()=>X,UT:()=>H,f5:()=>te});var D=v(62208),R=v(28347),G=v(43703),Z=v(84161),Q=v(28093),$=v(77739),W=v(97139),B=v(17625);class H extends B.K{constructor(ce){super(),this.slicePlaneLocalOrigin=ce}}function X(J,ce){ae(J,ce,[new W.J("slicePlaneOrigin",(ue,pe)=>se(ce,ue,pe)),new W.J("slicePlaneBasis1",(ue,pe)=>re(ce,ue,pe,(0,D.Wg)(pe.slicePlane)?.basis1)),new W.J("slicePlaneBasis2",(ue,pe)=>re(ce,ue,pe,(0,D.Wg)(pe.slicePlane)?.basis2))])}function te(J,ce){ae(J,ce,[new $.B("slicePlaneOrigin",(ue,pe)=>se(ce,ue,pe)),new $.B("slicePlaneBasis1",(ue,pe)=>re(ce,ue,pe,(0,D.Wg)(pe.slicePlane)?.basis1)),new $.B("slicePlaneBasis2",(ue,pe)=>re(ce,ue,pe,(0,D.Wg)(pe.slicePlane)?.basis2))])}function ae(J,ce,ue){if(!ce.hasSlicePlane){const ge=B.H`#define rejectBySlice(_pos_) false -#define discardBySlice(_pos_) {} -#define highlightSlice(_color_, _pos_) (_color_)`;return ce.hasSliceInVertexProgram&&J.vertex.code.add(ge),void J.fragment.code.add(ge)}J.extensions.add("GL_OES_standard_derivatives"),ce.hasSliceInVertexProgram&&J.vertex.uniforms.add(ue),J.fragment.uniforms.add(ue);const pe=B.H`struct SliceFactors { -float front; -float side0; -float side1; -float side2; -float side3; -}; -SliceFactors calculateSliceFactors(vec3 pos) { -vec3 rel = pos - slicePlaneOrigin; -vec3 slicePlaneNormal = -cross(slicePlaneBasis1, slicePlaneBasis2); -float slicePlaneW = -dot(slicePlaneNormal, slicePlaneOrigin); -float basis1Len2 = dot(slicePlaneBasis1, slicePlaneBasis1); -float basis2Len2 = dot(slicePlaneBasis2, slicePlaneBasis2); -float basis1Dot = dot(slicePlaneBasis1, rel); -float basis2Dot = dot(slicePlaneBasis2, rel); -return SliceFactors( -dot(slicePlaneNormal, pos) + slicePlaneW, --basis1Dot - basis1Len2, -basis1Dot - basis1Len2, --basis2Dot - basis2Len2, -basis2Dot - basis2Len2 -); -} -bool sliceByFactors(SliceFactors factors) { -return factors.front < 0.0 -&& factors.side0 < 0.0 -&& factors.side1 < 0.0 -&& factors.side2 < 0.0 -&& factors.side3 < 0.0; -} -bool sliceEnabled() { -return dot(slicePlaneBasis1, slicePlaneBasis1) != 0.0; -} -bool sliceByPlane(vec3 pos) { -return sliceEnabled() && sliceByFactors(calculateSliceFactors(pos)); -} -#define rejectBySlice(_pos_) sliceByPlane(_pos_) -#define discardBySlice(_pos_) { if (sliceByPlane(_pos_)) discard; }`,he=B.H`vec4 applySliceHighlight(vec4 color, vec3 pos) { -SliceFactors factors = calculateSliceFactors(pos); -const float HIGHLIGHT_WIDTH = 1.0; -const vec4 HIGHLIGHT_COLOR = vec4(0.0, 0.0, 0.0, 0.3); -factors.front /= (2.0 * HIGHLIGHT_WIDTH) * fwidth(factors.front); -factors.side0 /= (2.0 * HIGHLIGHT_WIDTH) * fwidth(factors.side0); -factors.side1 /= (2.0 * HIGHLIGHT_WIDTH) * fwidth(factors.side1); -factors.side2 /= (2.0 * HIGHLIGHT_WIDTH) * fwidth(factors.side2); -factors.side3 /= (2.0 * HIGHLIGHT_WIDTH) * fwidth(factors.side3); -if (sliceByFactors(factors)) { -return color; -} -float highlightFactor = (1.0 - step(0.5, factors.front)) -* (1.0 - step(0.5, factors.side0)) -* (1.0 - step(0.5, factors.side1)) -* (1.0 - step(0.5, factors.side2)) -* (1.0 - step(0.5, factors.side3)); -return mix(color, vec4(HIGHLIGHT_COLOR.rgb, color.a), highlightFactor * HIGHLIGHT_COLOR.a); -}`,me=ce.hasSliceHighlight?B.H` - ${he} - #define highlightSlice(_color_, _pos_) (sliceEnabled() ? applySliceHighlight(_color_, _pos_) : (_color_)) - `:B.H`#define highlightSlice(_color_, _pos_) (_color_)`;ce.hasSliceInVertexProgram&&J.vertex.code.add(pe),J.fragment.code.add(pe),J.fragment.code.add(me)}function oe(J,ce,ue){return J.instancedDoublePrecision?(0,Z.s)(j,ue.camera.viewInverseTransposeMatrix[3],ue.camera.viewInverseTransposeMatrix[7],ue.camera.viewInverseTransposeMatrix[11]):ce.slicePlaneLocalOrigin}function le(J,ce){return(0,D.pC)(J)?(0,Z.b)(Y,ce.origin,J):ce.origin}function de(J,ce,ue){return J.hasSliceTranslatedView?(0,D.pC)(ce)?(0,R.v)(ie,ue.camera.viewMatrix,ce):ue.camera.viewMatrix:null}function se(J,ce,ue){if((0,D.Wi)(ue.slicePlane))return Q.Z;const pe=oe(J,ce,ue),he=le(pe,ue.slicePlane),me=de(J,pe,ue);return(0,D.pC)(me)?(0,Z.m)(Y,he,me):he}function re(J,ce,ue,pe){if((0,D.Wi)(pe)||(0,D.Wi)(ue.slicePlane))return Q.Z;const he=oe(J,ce,ue),me=le(he,ue.slicePlane),ge=de(J,he,ue);return(0,D.pC)(ge)?((0,Z.a)(ee,pe,me),(0,Z.m)(Y,me,ge),(0,Z.m)(ee,ee,ge),(0,Z.b)(ee,ee,Y)):pe}const j=(0,Q.c)(),Y=(0,Q.c)(),ee=(0,Q.c)(),ie=(0,G.c)()},24255:(nt,Ae,v)=>{"use strict";v.d(Ae,{w:()=>G});var D=v(52382),R=v(17625);function G(Z,Q){if((0,D.bA)(Z),Q.hasModelTransformation)return Z.vertex.code.add(R.H`vec4 transformPositionWithDepth(mat4 proj, mat4 view, mat4 model, vec3 pos, vec2 nearFar, out float depth) { -vec4 eye = view * (model * vec4(pos, 1.0)); -depth = calculateLinearDepth(nearFar, eye.z); -return proj * eye; -}`),void Z.vertex.code.add(R.H`vec4 transformPosition(mat4 proj, mat4 view, mat4 model, vec3 pos) { -return proj * (view * (model * vec4(pos, 1.0))); -}`);Z.vertex.code.add(R.H`vec4 transformPositionWithDepth(mat4 proj, mat4 view, vec3 pos, vec2 nearFar, out float depth) { -vec4 eye = view * vec4(pos, 1.0); -depth = calculateLinearDepth(nearFar,eye.z); -return proj * eye; -}`),Z.vertex.code.add(R.H`vec4 transformPosition(mat4 proj, mat4 view, vec3 pos) { -return proj * (view * vec4(pos, 1.0)); -}`)}},60355:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>oe});var D=v(17626),R=v(84161),G=v(28093),Z=v(13934),Q=v(7228),$=v(2166),W=v(77739),B=v(17625),H=v(87601),X=v(16396),te=v(2757);function oe(de,se){se.instanced&&se.instancedDoublePrecision&&(de.attributes.add(X.T.MODELORIGINHI,"vec3"),de.attributes.add(X.T.MODELORIGINLO,"vec3"),de.attributes.add(X.T.MODEL,"mat3"),de.attributes.add(X.T.MODELNORMAL,"mat3"));const re=de.vertex;se.instancedDoublePrecision&&(re.include(Q.$,se),re.uniforms.add(new W.B("viewOriginHi",(j,Y)=>(0,te.U8)((0,R.s)(le,Y.camera.viewInverseTransposeMatrix[3],Y.camera.viewInverseTransposeMatrix[7],Y.camera.viewInverseTransposeMatrix[11]),le))),re.uniforms.add(new W.B("viewOriginLo",(j,Y)=>(0,te.GB)((0,R.s)(le,Y.camera.viewInverseTransposeMatrix[3],Y.camera.viewInverseTransposeMatrix[7],Y.camera.viewInverseTransposeMatrix[11]),le)))),re.code.add(B.H` - vec3 calculateVPos() { - ${se.instancedDoublePrecision?"return model * localPosition().xyz;":"return localPosition().xyz;"} - } - `),re.code.add(B.H` - vec3 subtractOrigin(vec3 _pos) { - ${se.instancedDoublePrecision?B.H` - vec3 originDelta = dpAdd(viewOriginHi, viewOriginLo, -modelOriginHi, -modelOriginLo); - return _pos - originDelta;`:"return vpos;"} - } - `),re.code.add(B.H` - vec3 dpNormal(vec4 _normal) { - ${se.instancedDoublePrecision?"return normalize(modelNormal * _normal.xyz);":"return normalize(_normal.xyz);"} - } - `),se.output===Z.H.Normal&&((0,$._8)(re),re.code.add(B.H` - vec3 dpNormalView(vec4 _normal) { - ${se.instancedDoublePrecision?"return normalize((viewNormal * vec4(modelNormal * _normal.xyz, 1.0)).xyz);":"return normalize((viewNormal * _normal).xyz);"} - } - `)),se.hasVertexTangents&&re.code.add(B.H` - vec4 dpTransformVertexTangent(vec4 _tangent) { - ${se.instancedDoublePrecision?"return vec4(modelNormal * _tangent.xyz, _tangent.w);":"return _tangent;"} - - } - `)}(0,D._)([(0,H.o)()],class ae extends H.m{constructor(){super(...arguments),this.instancedDoublePrecision=!1}}.prototype,"instancedDoublePrecision",void 0);const le=(0,G.c)()},26859:(nt,Ae,v)=>{"use strict";v.d(Ae,{O:()=>Z,h:()=>Q});var D=v(17625);function R($){const W=D.H`vec3 decodeNormal(vec2 f) { -float z = 1.0 - abs(f.x) - abs(f.y); -return vec3(f + sign(f) * min(z, 0.0), z); -}`;$.vertex.code.add(W)}var Q,$,G=v(16396);function Z($,W){W.normalType===Q.Attribute&&($.attributes.add(G.T.NORMAL,"vec3"),$.vertex.code.add(D.H`vec3 normalModel() { -return normal; -}`)),W.normalType===Q.CompressedAttribute&&($.include(R),$.attributes.add(G.T.NORMALCOMPRESSED,"vec2"),$.vertex.code.add(D.H`vec3 normalModel() { -return decodeNormal(normalCompressed); -}`)),W.normalType===Q.ScreenDerivative&&($.extensions.add("GL_OES_standard_derivatives"),$.fragment.code.add(D.H`vec3 screenDerivativeNormal(vec3 positionView) { -return normalize(cross(dFdx(positionView), dFdy(positionView))); -}`))}($=Q||(Q={}))[$.Attribute=0]="Attribute",$[$.CompressedAttribute=1]="CompressedAttribute",$[$.Ground=2]="Ground",$[$.ScreenDerivative=3]="ScreenDerivative",$[$.COUNT=4]="COUNT"},23164:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>Z});var D=v(13934),R=v(17625),G=v(16396);function Z(Q,$){const W=$.output===D.H.ObjectAndLayerIdColor,B=$.objectAndLayerIdColorInstanced;W&&(Q.varyings.add("objectAndLayerIdColorVarying","vec4"),Q.attributes.add(B?G.T.OBJECTANDLAYERIDCOLOR_INSTANCED:G.T.OBJECTANDLAYERIDCOLOR,"vec4")),Q.vertex.code.add(R.H` - void forwardObjectAndLayerIdColor() { - ${W?B?R.H`objectAndLayerIdColorVarying = objectAndLayerIdColor_instanced * 0.003921568627451;`:R.H`objectAndLayerIdColorVarying = objectAndLayerIdColor * 0.003921568627451;`:R.H``} }`),Q.fragment.code.add(R.H` - void outputObjectAndLayerIdColor() { - ${W?R.H`gl_FragColor = objectAndLayerIdColorVarying;`:R.H``} }`)}},68565:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>ae,W:()=>te});var D=v(99770),R=v(84833),G=v(95285),Z=v(97139),Q=v(48565),$=v(7090),W=v(17625),B=v(16396),H=v(41857);function te(oe,le){oe.attributes.add(B.T.FEATUREVALUE,"vec4");const de=oe.vertex;de.code.add(W.H`bool isCapVertex() { -return featureValue.w == 1.0; -}`),de.uniforms.add(new G.A("size",se=>se.size)),le.vvSize?(de.uniforms.add(new Z.J("vvSizeMinSize",se=>se.vvSizeMinSize)),de.uniforms.add(new Z.J("vvSizeMaxSize",se=>se.vvSizeMaxSize)),de.uniforms.add(new Z.J("vvSizeOffset",se=>se.vvSizeOffset)),de.uniforms.add(new Z.J("vvSizeFactor",se=>se.vvSizeFactor)),de.code.add(W.H`vec2 getSize() { -return size * clamp(vvSizeOffset + featureValue.x * vvSizeFactor, vvSizeMinSize, vvSizeMaxSize).xz; -}`)):de.code.add(W.H`vec2 getSize(){ -return size; -}`),le.vvOpacity?(de.constants.add("vvOpacityNumber","int",8),de.uniforms.add([new $.O("vvOpacityValues",se=>se.vvOpacityValues,8),new $.O("vvOpacityOpacities",se=>se.vvOpacityOpacities,8)]),de.code.add(W.H`vec4 applyOpacity(vec4 color) { -float value = featureValue.z; -if (value <= vvOpacityValues[0]) { -return vec4( color.xyz, vvOpacityOpacities[0]); -} -for (int i = 1; i < vvOpacityNumber; ++i) { -if (vvOpacityValues[i] >= value) { -float f = (value - vvOpacityValues[i-1]) / (vvOpacityValues[i] - vvOpacityValues[i-1]); -return vec4( color.xyz, mix(vvOpacityOpacities[i-1], vvOpacityOpacities[i], f)); -} -} -return vec4( color.xyz, vvOpacityOpacities[vvOpacityNumber - 1]); -}`)):de.code.add(W.H`vec4 applyOpacity(vec4 color){ -return color; -}`),le.vvColor?(de.constants.add("vvColorNumber","int",H.x),de.uniforms.add([new $.O("vvColorValues",se=>se.vvColorValues,H.x),new Q.b("vvColorColors",se=>se.vvColorColors,H.x)]),de.code.add(W.H`vec4 getColor() { -float value = featureValue.y; -if (value <= vvColorValues[0]) { -return applyOpacity(vvColorColors[0]); -} -for (int i = 1; i < vvColorNumber; ++i) { -if (vvColorValues[i] >= value) { -float f = (value - vvColorValues[i-1]) / (vvColorValues[i] - vvColorValues[i-1]); -return applyOpacity(mix(vvColorColors[i-1], vvColorColors[i], f)); -} -} -return applyOpacity(vvColorColors[vvColorNumber - 1]); -}`)):de.code.add(W.H`vec4 getColor(){ -return applyOpacity(vec4(1, 1, 1, 1)); -}`),oe.include(R.f),oe.attributes.add(B.T.PROFILERIGHT,"vec4"),oe.attributes.add(B.T.PROFILEUP,"vec4"),oe.attributes.add(B.T.PROFILEVERTEXANDNORMAL,"vec4"),de.code.add(W.H`vec3 calculateVPos() { -vec2 size = getSize(); -vec3 origin = position; -vec3 right = profileRight.xyz; -vec3 up = profileUp.xyz; -vec3 forward = cross(up, right); -vec2 profileVertex = profileVertexAndNormal.xy * size; -vec2 profileNormal = profileVertexAndNormal.zw; -float positionOffsetAlongProfilePlaneNormal = 0.0; -float normalOffsetAlongProfilePlaneNormal = 0.0;`),de.code.add(W.H`if(!isCapVertex()) { -vec2 rotationRight = vec2(profileRight.w, profileUp.w); -float maxDistance = length(rotationRight);`),de.code.add(W.H`rotationRight = maxDistance > 0.0 ? normalize(rotationRight) : vec2(0, 0); -float rx = dot(profileVertex, rotationRight); -if (abs(rx) > maxDistance) { -vec2 rotationUp = vec2(-rotationRight.y, rotationRight.x); -float ry = dot(profileVertex, rotationUp); -profileVertex = rotationRight * maxDistance * sign(rx) + rotationUp * ry; -} -}else{ -positionOffsetAlongProfilePlaneNormal = profileRight.w * size[0]; -normalOffsetAlongProfilePlaneNormal = profileUp.w; -} -vec3 offset = right * profileVertex.x + up * profileVertex.y + forward * positionOffsetAlongProfilePlaneNormal; -return origin + offset; -}`),de.code.add(W.H`vec3 localNormal() { -vec3 right = profileRight.xyz; -vec3 up = profileUp.xyz; -vec3 forward = cross(up, right); -vec2 profileNormal = profileVertexAndNormal.zw; -vec3 normal = right * profileNormal.x + up * profileNormal.y; -if(isCapVertex()) { -normal += forward * profileUp.w; -} -return normal; -}`)}class ae extends H.n{constructor(){super(...arguments),this.size=(0,D.f)(1,1)}}},84833:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>G});var D=v(17625),R=v(16396);function G(Z){Z.attributes.add(R.T.POSITION,"vec3"),Z.vertex.code.add(D.H`vec3 positionModel() { return position; }`)}},39645:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>H});var D=v(97139),R=v(48565),G=v(65787),Z=v(7090),Q=v(17625),$=v(16396),W=v(41857);function H(X,te){const ae=X.vertex;ae.uniforms.add(new G.p("intrinsicWidth",oe=>oe.width)),te.vvSize?(X.attributes.add($.T.SIZEFEATUREATTRIBUTE,"float"),ae.uniforms.add(new D.J("vvSizeMinSize",oe=>oe.vvSizeMinSize)),ae.uniforms.add(new D.J("vvSizeMaxSize",oe=>oe.vvSizeMaxSize)),ae.uniforms.add(new D.J("vvSizeOffset",oe=>oe.vvSizeOffset)),ae.uniforms.add(new D.J("vvSizeFactor",oe=>oe.vvSizeFactor)),ae.code.add(Q.H`float getSize() { -return intrinsicWidth * clamp(vvSizeOffset + sizeFeatureAttribute * vvSizeFactor, vvSizeMinSize, vvSizeMaxSize).x; -}`)):(X.attributes.add($.T.SIZE,"float"),ae.code.add(Q.H`float getSize(){ -return intrinsicWidth * size; -}`)),te.vvOpacity?(X.attributes.add($.T.OPACITYFEATUREATTRIBUTE,"float"),ae.constants.add("vvOpacityNumber","int",8),ae.uniforms.add([new Z.O("vvOpacityValues",oe=>oe.vvOpacityValues,8),new Z.O("vvOpacityOpacities",oe=>oe.vvOpacityOpacities,8)]),ae.code.add(Q.H`float interpolateOpacity( float value ){ -if (value <= vvOpacityValues[0]) { -return vvOpacityOpacities[0]; -} -for (int i = 1; i < vvOpacityNumber; ++i) { -if (vvOpacityValues[i] >= value) { -float f = (value - vvOpacityValues[i-1]) / (vvOpacityValues[i] - vvOpacityValues[i-1]); -return mix(vvOpacityOpacities[i-1], vvOpacityOpacities[i], f); -} -} -return vvOpacityOpacities[vvOpacityNumber - 1]; -} -vec4 applyOpacity( vec4 color ){ -return vec4(color.xyz, interpolateOpacity(opacityFeatureAttribute)); -}`)):ae.code.add(Q.H`vec4 applyOpacity( vec4 color ){ -return color; -}`),te.vvColor?(X.attributes.add($.T.COLORFEATUREATTRIBUTE,"float"),ae.constants.add("vvColorNumber","int",W.x),ae.uniforms.add(new Z.O("vvColorValues",oe=>oe.vvColorValues,W.x)),ae.uniforms.add(new R.b("vvColorColors",oe=>oe.vvColorColors,W.x)),ae.code.add(Q.H`vec4 interpolateColor( float value ) { -if (value <= vvColorValues[0]) { -return vvColorColors[0]; -} -for (int i = 1; i < vvColorNumber; ++i) { -if (vvColorValues[i] >= value) { -float f = (value - vvColorValues[i-1]) / (vvColorValues[i] - vvColorValues[i-1]); -return mix(vvColorColors[i-1], vvColorColors[i], f); -} -} -return vvColorColors[vvColorNumber - 1]; -} -vec4 getColor(){ -return applyOpacity(interpolateColor(colorFeatureAttribute)); -}`)):(X.attributes.add($.T.COLOR,"vec4"),ae.code.add(Q.H`vec4 getColor(){ -return applyOpacity(color); -}`))}},99579:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>$});var D=v(60785),R=v(18952),G=v(17625),Z=v(16396),Q=v(57623);function $(W,B){B.hasSymbolColors?(W.include(D.A),W.attributes.add(Z.T.SYMBOLCOLOR,"vec4"),W.varyings.add("colorMixMode","mediump float"),W.vertex.code.add(G.H`int symbolColorMixMode; -vec4 getSymbolColor() { -return decodeSymbolColor(symbolColor, symbolColorMixMode) * 0.003921568627451; -} -void forwardColorMixMode() { -colorMixMode = float(symbolColorMixMode) + 0.5; -}`)):(W.fragment.uniforms.add(new R._("colorMixMode",H=>Q.FZ[H.colorMixMode])),W.vertex.code.add(G.H`vec4 getSymbolColor() { return vec4(1.0); } -void forwardColorMixMode() {}`))}},36603:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>Q,N:()=>Z});var Z,$,D=v(94573),R=v(17625),G=v(16396);function Q($,W){switch(W.textureCoordinateType){case Z.Default:return $.attributes.add(G.T.UV0,"vec2"),$.varyings.add("vuv0","vec2"),void $.vertex.code.add(R.H`void forwardTextureCoordinates() { -vuv0 = uv0; -}`);case Z.Compressed:return $.attributes.add(G.T.UV0,"vec2"),$.varyings.add("vuv0","vec2"),void $.vertex.code.add(R.H`vec2 getUV0() { -return uv0 / 16384.0; -} -void forwardTextureCoordinates() { -vuv0 = getUV0(); -}`);case Z.Atlas:return $.attributes.add(G.T.UV0,"vec2"),$.varyings.add("vuv0","vec2"),$.attributes.add(G.T.UVREGION,"vec4"),$.varyings.add("vuvRegion","vec4"),void $.vertex.code.add(R.H`void forwardTextureCoordinates() { -vuv0 = uv0; -vuvRegion = uvRegion; -}`);default:(0,D.Bg)(W.textureCoordinateType);case Z.None:return void $.vertex.code.add(R.H`void forwardTextureCoordinates() {}`);case Z.COUNT:return}}($=Z||(Z={}))[$.None=0]="None",$[$.Default=1]="Default",$[$.Atlas=2]="Atlas",$[$.Compressed=3]="Compressed",$[$.COUNT=4]="COUNT"},58173:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>G});var D=v(17625),R=v(16396);function G(Z,Q){Q.hasVertexColors?(Z.attributes.add(R.T.COLOR,"vec4"),Z.varyings.add("vColor","vec4"),Z.vertex.code.add(D.H`void forwardVertexColor() { vColor = color; }`),Z.vertex.code.add(D.H`void forwardNormalizedVertexColor() { vColor = color * 0.003921568627451; }`)):Z.vertex.code.add(D.H`void forwardVertexColor() {} -void forwardNormalizedVertexColor() {}`)}},21799:(nt,Ae,v)=>{"use strict";v.d(Ae,{Bb:()=>B,Pf:()=>X,d4:()=>H});var D=v(550),R=v(4794),G=v(26859),Z=v(51040),Q=v(17625),$=v(9546),W=v(91574);function B(te,ae){ae.normalType===G.h.Attribute||ae.normalType===G.h.CompressedAttribute?(te.include(G.O,ae),te.varyings.add("vNormalWorld","vec3"),te.varyings.add("vNormalView","vec3"),te.vertex.uniforms.add([new $.j("transformNormalGlobalFromModel",oe=>oe.transformNormalGlobalFromModel),new W.c("transformNormalViewFromGlobal",oe=>oe.transformNormalViewFromGlobal)]),te.vertex.code.add(Q.H`void forwardNormal() { -vNormalWorld = transformNormalGlobalFromModel * normalModel(); -vNormalView = transformNormalViewFromGlobal * vNormalWorld; -}`)):ae.normalType===G.h.Ground?(te.include(Z.up,ae),te.varyings.add("vNormalWorld","vec3"),te.vertex.code.add(Q.H` - void forwardNormal() { - vNormalWorld = ${ae.spherical?Q.H`normalize(vPositionWorldCameraRelative);`:Q.H`vec3(0.0, 0.0, 1.0);`} - } - `)):te.vertex.code.add(Q.H`void forwardNormal() {}`)}class H extends Z.su{constructor(){super(...arguments),this.transformNormalViewFromGlobal=(0,D.c)()}}class X extends Z.OU{constructor(){super(...arguments),this.transformNormalGlobalFromModel=(0,D.c)(),this.toMapSpace=(0,R.c)()}}},51040:(nt,Ae,v)=>{"use strict";v.d(Ae,{OU:()=>de,su:()=>le,up:()=>oe});var D=v(550),R=v(43703),G=v(14658),Z=v(28093),Q=v(84833),$=v(7228),W=v(77739),B=v(97139),H=v(17625),X=v(9546),te=v(91574),ae=v(63123);function oe(se,re){se.include(Q.f);const j=se.vertex;j.include($.$,re),se.varyings.add("vPositionWorldCameraRelative","vec3"),se.varyings.add("vPosition_view","vec3"),j.uniforms.add([new B.J("transformWorldFromViewTH",Y=>Y.transformWorldFromViewTH),new B.J("transformWorldFromViewTL",Y=>Y.transformWorldFromViewTL),new te.c("transformViewFromCameraRelativeRS",Y=>Y.transformViewFromCameraRelativeRS),new ae.g("transformProjFromView",Y=>Y.transformProjFromView),new X.j("transformWorldFromModelRS",Y=>Y.transformWorldFromModelRS),new W.B("transformWorldFromModelTH",Y=>Y.transformWorldFromModelTH),new W.B("transformWorldFromModelTL",Y=>Y.transformWorldFromModelTL)]),j.code.add(H.H`vec3 positionWorldCameraRelative() { -vec3 rotatedModelPosition = transformWorldFromModelRS * positionModel(); -vec3 transform_CameraRelativeFromModel = dpAdd( -transformWorldFromModelTL, -transformWorldFromModelTH, --transformWorldFromViewTL, --transformWorldFromViewTH -); -return transform_CameraRelativeFromModel + rotatedModelPosition; -}`),j.code.add(H.H` - void forwardPosition(float fOffset) { - vPositionWorldCameraRelative = positionWorldCameraRelative(); - if (fOffset != 0.0) { - vPositionWorldCameraRelative += fOffset * ${re.spherical?H.H`normalize(transformWorldFromViewTL + vPositionWorldCameraRelative)`:H.H`vec3(0.0, 0.0, 1.0)`}; - } - - vPosition_view = transformViewFromCameraRelativeRS * vPositionWorldCameraRelative; - gl_Position = transformProjFromView * vec4(vPosition_view, 1.0); - } - `),se.fragment.uniforms.add(new B.J("transformWorldFromViewTL",Y=>Y.transformWorldFromViewTL)),j.code.add(H.H`vec3 positionWorld() { -return transformWorldFromViewTL + vPositionWorldCameraRelative; -}`),se.fragment.code.add(H.H`vec3 positionWorld() { -return transformWorldFromViewTL + vPositionWorldCameraRelative; -}`)}class le extends H.K{constructor(){super(...arguments),this.transformWorldFromViewTH=(0,Z.c)(),this.transformWorldFromViewTL=(0,Z.c)(),this.transformViewFromCameraRelativeRS=(0,D.c)(),this.transformProjFromView=(0,R.c)()}}class de extends H.K{constructor(){super(...arguments),this.transformWorldFromModelRS=(0,D.c)(),this.transformWorldFromModelTH=(0,G.c)(),this.transformWorldFromModelTL=(0,G.c)()}}},43880:(nt,Ae,v)=>{"use strict";v.d(Ae,{M:()=>R});var D=v(17625);function R(G,Z){G.varyings.add("tbnTangent","vec3"),G.varyings.add("tbnBiTangent","vec3"),G.vertex.code.add(Z.spherical?D.H`void forwardVertexTangent(vec3 n) { -tbnTangent = normalize(cross(vec3(0.0, 0.0, 1.0), n)); -tbnBiTangent = normalize(cross(n, tbnTangent)); -}`:D.H`void forwardVertexTangent(vec3 n) { -tbnTangent = vec3(1.0, 0.0, 0.0); -tbnBiTangent = normalize(cross(n, tbnTangent)); -}`),G.fragment.code.add(D.H`mat3 getTBNMatrix(vec3 n) { -return mat3(tbnTangent, tbnBiTangent, n); -}`)}},95284:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>Q});var D=v(94573),R=v(36603),G=v(95267),Z=v(17625);function Q($,W){switch($.include(R.D,W),$.fragment.code.add(Z.H` - struct TextureLookupParameter { - vec2 uv; - ${W.supportsTextureAtlas?"vec2 size;":""} - } vtc; - `),W.textureCoordinateType){case R.N.Default:case R.N.Compressed:return void $.fragment.code.add(Z.H`vec4 textureLookup(sampler2D texture, TextureLookupParameter params) { -return texture2D(texture, params.uv); -}`);case R.N.Atlas:return $.include(G.r),void $.fragment.code.add(Z.H`vec4 textureLookup(sampler2D texture, TextureLookupParameter params) { -return textureAtlasLookup(texture, params.size, params.uv, vuvRegion); -}`);default:(0,D.Bg)(W.textureCoordinateType);case R.N.None:case R.N.COUNT:return}}},66085:(nt,Ae,v)=>{"use strict";v.d(Ae,{L:()=>W,V:()=>H});var D=v(993),R=v(4794),G=v(71850),Z=v(2166),Q=v(69960),$=v(17625);function W(X,te){const ae=X.vertex;te.hasVerticalOffset?(H(ae),te.hasScreenSizePerspective&&(X.include(G.cK),(0,G.m8)(ae),(0,Z.hY)(X.vertex,te)),ae.code.add($.H` - vec3 calculateVerticalOffset(vec3 worldPos, vec3 localOrigin) { - float viewDistance = length((view * vec4(worldPos, 1.0)).xyz); - ${te.spherical?$.H`vec3 worldNormal = normalize(worldPos + localOrigin);`:$.H`vec3 worldNormal = vec3(0.0, 0.0, 1.0);`} - ${te.hasScreenSizePerspective?$.H` - float cosAngle = dot(worldNormal, normalize(worldPos - cameraPosition)); - float verticalOffsetScreenHeight = screenSizePerspectiveScaleFloat(verticalOffset.x, abs(cosAngle), viewDistance, screenSizePerspectiveAlignment);`:$.H` - float verticalOffsetScreenHeight = verticalOffset.x;`} - // Screen sized offset in world space, used for example for line callouts - float worldOffset = clamp(verticalOffsetScreenHeight * verticalOffset.y * viewDistance, verticalOffset.z, verticalOffset.w); - return worldNormal * worldOffset; - } - - vec3 addVerticalOffset(vec3 worldPos, vec3 localOrigin) { - return worldPos + calculateVerticalOffset(worldPos, localOrigin); - } - `)):ae.code.add($.H`vec3 addVerticalOffset(vec3 worldPos, vec3 localOrigin) { return worldPos; }`)}const B=(0,R.c)();function H(X){X.uniforms.add(new Q.N("verticalOffset",(te,ae)=>{const{minWorldLength:oe,maxWorldLength:le,screenLength:de}=te.verticalOffset,se=Math.tan(.5*ae.camera.fovY)/(.5*ae.camera.fullViewport[3]);return(0,D.s)(B,de*(ae.camera.pixelRatio||1),se,oe,le)}))}},58208:(nt,Ae,v)=>{"use strict";v.d(Ae,{s:()=>ee});var D=v(62208),R=v(43703),G=v(52382),Z=v(13934),Q=v(78925),$=v(24255),W=v(26859),B=v(23164),H=v(36603),X=v(21799),te=v(54120),ae=v(62952),oe=v(92836),le=v(93609),de=v(2166),se=v(17625),re=v(63123),j=v(35387),Y=v(42743);function ee(ie,J){const{vertex:ce,fragment:ue}=ie,pe=J.hasModelTransformation;pe&&ce.uniforms.add(new re.g("model",me=>(0,D.pC)(me.modelTransformation)?me.modelTransformation:R.I));const he=J.hasColorTexture&&J.alphaDiscardMode!==Y.JJ.Opaque;switch(J.output){case Z.H.Depth:case Z.H.Shadow:case Z.H.ShadowHighlight:case Z.H.ShadowExludeHighlight:case Z.H.ObjectAndLayerIdColor:(0,de.Sv)(ce,J),ie.include($.w,J),ie.include(H.D,J),ie.include(oe.k,J),ie.include(te.F,J),ie.include(Q.f5,J),ie.include(B.R,J),(0,G.Zu)(ie),ie.varyings.add("depth","float"),he&&ue.uniforms.add(new j.A("tex",me=>me.texture)),ce.code.add(se.H` - void main(void) { - vpos = calculateVPos(); - vpos = subtractOrigin(vpos); - vpos = addVerticalOffset(vpos, localOrigin); - gl_Position = transformPositionWithDepth(proj, view, ${pe?"model,":""} vpos, nearFar, depth); - forwardTextureCoordinates(); - forwardObjectAndLayerIdColor(); - } - `),ie.include(le.z,J),ue.code.add(se.H` - void main(void) { - discardBySlice(vpos); - ${he?se.H` - vec4 texColor = texture2D(tex, ${J.hasColorTextureTransform?se.H`colorUV`:se.H`vuv0`}); - discardOrAdjustAlpha(texColor);`:""} - ${J.output===Z.H.ObjectAndLayerIdColor?se.H`outputObjectAndLayerIdColor();`:se.H`outputDepth(depth);`} - } - `);break;case Z.H.Normal:(0,de.Sv)(ce,J),ie.include($.w,J),ie.include(W.O,J),ie.include(X.Bb,J),ie.include(H.D,J),ie.include(oe.k,J),he&&ue.uniforms.add(new j.A("tex",me=>me.texture)),ie.varyings.add("vPositionView","vec3"),ce.code.add(se.H` - void main(void) { - vpos = calculateVPos(); - vpos = subtractOrigin(vpos); - ${J.normalType===W.h.Attribute?se.H` - vNormalWorld = dpNormalView(vvLocalNormal(normalModel()));`:""} - vpos = addVerticalOffset(vpos, localOrigin); - gl_Position = transformPosition(proj, view, ${pe?"model,":""} vpos); - forwardTextureCoordinates(); - } - `),ie.include(Q.f5,J),ie.include(le.z,J),ue.code.add(se.H` - void main() { - discardBySlice(vpos); - ${he?se.H` - vec4 texColor = texture2D(tex, ${J.hasColorTextureTransform?se.H`colorUV`:se.H`vuv0`}); - discardOrAdjustAlpha(texColor);`:""} - - ${J.normalType===W.h.ScreenDerivative?se.H` - vec3 normal = screenDerivativeNormal(vPositionView);`:se.H` - vec3 normal = normalize(vNormalWorld); - if (gl_FrontFacing == false) normal = -normal;`} - gl_FragColor = vec4(vec3(0.5) + 0.5 * normal, 1.0); - } - `);break;case Z.H.Highlight:(0,de.Sv)(ce,J),ie.include($.w,J),ie.include(H.D,J),ie.include(oe.k,J),he&&ue.uniforms.add(new j.A("tex",me=>me.texture)),ce.code.add(se.H` - void main(void) { - vpos = calculateVPos(); - vpos = subtractOrigin(vpos); - vpos = addVerticalOffset(vpos, localOrigin); - gl_Position = transformPosition(proj, view, ${pe?"model,":""} vpos); - forwardTextureCoordinates(); - } - `),ie.include(Q.f5,J),ie.include(le.z,J),ie.include(ae.bA,J),ue.code.add(se.H` - void main() { - discardBySlice(vpos); - ${he?se.H` - vec4 texColor = texture2D(tex, ${J.hasColorTextureTransform?se.H`colorUV`:se.H`vuv0`}); - discardOrAdjustAlpha(texColor);`:""} - outputHighlight(); - } - `)}}},35283:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>R});var D=v(17625);function R(G){const Z=D.H`vec4 alignToPixelCenter(vec4 clipCoord, vec2 widthHeight) { -vec2 xy = vec2(0.500123) + 0.5 * clipCoord.xy / clipCoord.w; -vec2 pixelSz = vec2(1.0) / widthHeight; -vec2 ij = (floor(xy * widthHeight) + vec2(0.5)) * pixelSz; -vec2 result = (ij * 2.0 - vec2(1.0)) * clipCoord.w; -return vec4(result, clipCoord.zw); -}`,Q=D.H`vec4 alignToPixelOrigin(vec4 clipCoord, vec2 widthHeight) { -vec2 xy = vec2(0.5) + 0.5 * clipCoord.xy / clipCoord.w; -vec2 pixelSz = vec2(1.0) / widthHeight; -vec2 ij = floor((xy + 0.5 * pixelSz) * widthHeight) * pixelSz; -vec2 result = (ij * 2.0 - vec2(1.0)) * clipCoord.w; -return vec4(result, clipCoord.zw); -}`;G.vertex.code.add(Z),G.vertex.code.add(Q),G.fragment.code.add(Z),G.fragment.code.add(Q)}},97347:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>te,d:()=>X});var X,ae,D=v(66085),R=v(42309),G=v(71850),Z=v(2166),Q=v(69960),$=v(65787),W=v(17625),B=v(35387),H=v(16396);function te(ae,oe){ae.include(G.cK),ae.attributes.add(H.T.POSITION,"vec3"),ae.attributes.add(H.T.NORMAL,"vec3"),ae.attributes.add(H.T.AUXPOS1,"vec4");const le=ae.vertex;(0,Z.Sv)(le,oe),(0,Z.hY)(le,oe),le.uniforms.add([new Q.N("viewport",(de,se)=>se.camera.fullViewport),new $.p("polygonOffset",de=>de.shaderPolygonOffset),new $.p("cameraGroundRelative",(de,se)=>se.camera.aboveGround?1:-1),new $.p("renderTransparentlyOccludedHUD",(de,se)=>se.renderTransparentlyOccludedHUD===R.v.Occluded?1:se.renderTransparentlyOccludedHUD===R.v.NotOccluded?0:.75),new B.A("hudVisibilityTexture",(de,se)=>se.hudVisibilityTexture)]),oe.hasVerticalOffset&&(0,D.V)(le),le.constants.add("smallOffsetAngle","float",.984807753012208),le.code.add(W.H`struct ProjectHUDAux { -vec3 posModel; -vec3 posView; -vec3 vnormal; -float distanceToCamera; -float absCosAngle; -};`),le.code.add(W.H`float applyHUDViewDependentPolygonOffset(float pointGroundDistance, float absCosAngle, inout vec3 posView) { -float pointGroundSign = sign(pointGroundDistance); -if (pointGroundSign == 0.0) { -pointGroundSign = cameraGroundRelative; -} -float groundRelative = cameraGroundRelative * pointGroundSign; -if (polygonOffset > .0) { -float cosAlpha = clamp(absCosAngle, 0.01, 1.0); -float tanAlpha = sqrt(1.0 - cosAlpha * cosAlpha) / cosAlpha; -float factor = (1.0 - tanAlpha / viewport[2]); -if (groundRelative > 0.0) { -posView *= factor; -} -else { -posView /= factor; -} -} -return groundRelative; -}`),oe.isDraped&&!oe.hasVerticalOffset||(0,Z._8)(le),oe.isDraped||(le.uniforms.add(new $.p("perDistancePixelRatio",(de,se)=>Math.tan(se.camera.fovY/2)/(se.camera.fullViewport[2]/2))),le.code.add(W.H`void applyHUDVerticalGroundOffset(vec3 normalModel, inout vec3 posModel, inout vec3 posView) { -float distanceToCamera = length(posView); -float pixelOffset = distanceToCamera * perDistancePixelRatio * 0.5; -vec3 modelOffset = normalModel * cameraGroundRelative * pixelOffset; -vec3 viewOffset = (viewNormal * vec4(modelOffset, 1.0)).xyz; -posModel += modelOffset; -posView += viewOffset; -}`)),oe.screenCenterOffsetUnitsEnabled===X.Screen&&le.uniforms.add(new $.p("pixelRatio",(de,se)=>se.camera.pixelRatio)),oe.hasScreenSizePerspective&&(0,G.m8)(le),le.code.add(W.H` - vec4 projectPositionHUD(out ProjectHUDAux aux) { - // centerOffset is in view space and is used to implement world size offsetting - // of labels with respect to objects. It also pulls the label towards the viewer - // so that the label is visible in front of the object. - vec3 centerOffset = auxpos1.xyz; - - // The pointGroundDistance is the distance of the geometry to the ground and is - // negative if the point is below the ground, or positive if the point is above - // ground. - float pointGroundDistance = auxpos1.w; - - aux.posModel = position; - aux.posView = (view * vec4(aux.posModel, 1.0)).xyz; - aux.vnormal = normal; - ${oe.isDraped?"":"applyHUDVerticalGroundOffset(aux.vnormal, aux.posModel, aux.posView);"} - - // Screen sized offset in world space, used for example for line callouts - // Note: keep this implementation in sync with the CPU implementation, see - // - MaterialUtil.verticalOffsetAtDistance - // - HUDMaterial.applyVerticalOffsetTransformation - - aux.distanceToCamera = length(aux.posView); - - vec3 viewDirObjSpace = normalize(cameraPosition - aux.posModel); - float cosAngle = dot(aux.vnormal, viewDirObjSpace); - - aux.absCosAngle = abs(cosAngle); - - ${oe.hasScreenSizePerspective&&(oe.hasVerticalOffset||oe.screenCenterOffsetUnitsEnabled===X.Screen)?"vec4 perspectiveFactor = screenSizePerspectiveScaleFactor(aux.absCosAngle, aux.distanceToCamera, screenSizePerspectiveAlignment);":""} - - ${oe.hasVerticalOffset?oe.hasScreenSizePerspective?"float verticalOffsetScreenHeight = applyScreenSizePerspectiveScaleFactorFloat(verticalOffset.x, perspectiveFactor);":"float verticalOffsetScreenHeight = verticalOffset.x;":""} - - ${oe.hasVerticalOffset?W.H` - float worldOffset = clamp(verticalOffsetScreenHeight * verticalOffset.y * aux.distanceToCamera, verticalOffset.z, verticalOffset.w); - vec3 modelOffset = aux.vnormal * worldOffset; - aux.posModel += modelOffset; - vec3 viewOffset = (viewNormal * vec4(modelOffset, 1.0)).xyz; - aux.posView += viewOffset; - // Since we elevate the object, we need to take that into account - // in the distance to ground - pointGroundDistance += worldOffset;`:""} - - float groundRelative = applyHUDViewDependentPolygonOffset(pointGroundDistance, aux.absCosAngle, aux.posView); - - ${oe.screenCenterOffsetUnitsEnabled!==X.Screen?W.H` - // Apply x/y in view space, but z in screen space (i.e. along posView direction) - aux.posView += vec3(centerOffset.x, centerOffset.y, 0.0); - - // Same material all have same z != 0.0 condition so should not lead to - // branch fragmentation and will save a normalization if it's not needed - if (centerOffset.z != 0.0) { - aux.posView -= normalize(aux.posView) * centerOffset.z; - } - `:""} - - vec4 posProj = proj * vec4(aux.posView, 1.0); - - ${oe.screenCenterOffsetUnitsEnabled===X.Screen?oe.hasScreenSizePerspective?"float centerOffsetY = applyScreenSizePerspectiveScaleFactorFloat(centerOffset.y, perspectiveFactor);":"float centerOffsetY = centerOffset.y;":""} - - ${oe.screenCenterOffsetUnitsEnabled===X.Screen?"posProj.xy += vec2(centerOffset.x, centerOffsetY) * pixelRatio * 2.0 / viewport.zw * posProj.w;":""} - - // constant part of polygon offset emulation - posProj.z -= groundRelative * polygonOffset * posProj.w; - return posProj; - } - `),le.code.add(W.H`bool testVisibilityHUD(vec4 posProj) { -vec4 posProjCenter = alignToPixelCenter(posProj, viewport.zw); -vec4 occlusionPixel = texture2D(hudVisibilityTexture, .5 + .5 * posProjCenter.xy / posProjCenter.w); -if (renderTransparentlyOccludedHUD > 0.5) { -return occlusionPixel.r * occlusionPixel.g > 0.0 && occlusionPixel.g * renderTransparentlyOccludedHUD < 1.0; -} -return occlusionPixel.r * occlusionPixel.g > 0.0 && occlusionPixel.g == 1.0; -}`)}(ae=X||(X={}))[ae.World=0]="World",ae[ae.Screen=1]="Screen",ae[ae.COUNT=2]="COUNT"},27776:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>H});var D=v(47923),R=v(82793),G=v(19278),Z=v(43177),Q=v(95285),$=v(17625),W=v(35387),B=v(19755);function H(X,te){const{vertex:ae,fragment:oe}=X;te.hasMultipassGeometry&&ae.include(R.S),te.hasMultipassTerrain&&X.varyings.add("depth","float"),ae.code.add($.H` - void main(void) { - vec4 posProjCenter; - if (dot(position, position) > 0.0) { - // Render single point to center of the pixel to avoid subpixel - // filtering to affect the marker color - ProjectHUDAux projectAux; - vec4 posProj = projectPositionHUD(projectAux); - posProjCenter = alignToPixelCenter(posProj, viewport.zw); - - ${te.hasMultipassGeometry?$.H` - // Don't draw vertices behind geometry - if(geometryDepthTest(.5 + .5 * posProjCenter.xy / posProjCenter.w, projectAux.posView.z)){ - posProjCenter = vec4(1e038, 1e038, 1e038, 1.0); - }`:""} - - ${te.hasMultipassTerrain?"depth = projectAux.posView.z;":""} - vec3 vpos = projectAux.posModel; - if (rejectBySlice(vpos)) { - // Project out of clip space - posProjCenter = vec4(1e038, 1e038, 1e038, 1.0); - } - - } else { - // Project out of clip space - posProjCenter = vec4(1e038, 1e038, 1e038, 1.0); - } - - gl_Position = posProjCenter; - gl_PointSize = 1.0; - } - `),te.hasMultipassTerrain&&oe.include(D.S),te.hasMultipassTerrain&&oe.uniforms.add([...(0,W.J)("terrainDepthTexture",(le,de)=>de.multipassTerrain.linearDepthTexture,te.hasWebGL2Context?B.D.None:B.D.InvSize),new Q.A("nearFar",(le,de)=>de.camera.nearFar)]),oe.include(G.n),oe.code.add($.H` - void main() { - gl_FragColor = vec4(1, 1, 1, 1); - ${te.hasMultipassTerrain?$.H` - vec2 uv = gl_FragCoord.xy; - - // Read the rgba data from the texture linear depth - vec4 terrainDepthData = ${(0,Z.b6)(te,"terrainDepthTexture","uv")}; - - float terrainDepth = linearDepthFromFloat(rgba2float(terrainDepthData), nearFar); - - // If HUD vertex is behind terrain and the terrain depth is not the initialize value (e.g. we are not looking at the sky) - // Mark the HUD vertex as occluded by transparent terrain - if(depth < terrainDepth && terrainDepthData != vec4(0,0,0,1)){ - gl_FragColor.g = 0.5; - }`:""} - } - `)}},42309:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{v:()=>D}),(R=D||(D={}))[R.Occluded=0]="Occluded",R[R.NotOccluded=1]="NotOccluded",R[R.Both=2]="Both",R[R.COUNT=3]="COUNT"},7699:(nt,Ae,v)=>{"use strict";var D,Z;v.d(Ae,{MV:()=>G,iM:()=>D,pU:()=>R}),(Z=D||(D={}))[Z.Normal=0]="Normal",Z[Z.Average=1]="Average",Z[Z.Lighten=2]="Lighten",Z[Z.Lighter=3]="Lighter",Z[Z.Plus=4]="Plus",Z[Z.Screen=5]="Screen",Z[Z.ColorDodge=6]="ColorDodge",Z[Z.Darken=7]="Darken",Z[Z.Multiply=8]="Multiply",Z[Z.ColorBurn=9]="ColorBurn",Z[Z.Overlay=10]="Overlay",Z[Z.SoftLight=11]="SoftLight",Z[Z.HardLight=12]="HardLight",Z[Z.VividLight=13]="VividLight",Z[Z.Hue=14]="Hue",Z[Z.Saturation=15]="Saturation",Z[Z.Luminosity=16]="Luminosity",Z[Z.Color=17]="Color",Z[Z.DestinationOver=18]="DestinationOver",Z[Z.DestinationAtop=19]="DestinationAtop",Z[Z.DestinationIn=20]="DestinationIn",Z[Z.DestinationOut=21]="DestinationOut",Z[Z.SourceAtop=22]="SourceAtop",Z[Z.SourceIn=23]="SourceIn",Z[Z.SourceOut=24]="SourceOut",Z[Z.Xor=25]="Xor",Z[Z.Difference=26]="Difference",Z[Z.Exclusion=27]="Exclusion",Z[Z.Minus=28]="Minus",Z[Z.Invert=29]="Invert",Z[Z.Reflect=30]="Reflect",Z[Z.COUNT=31]="COUNT";const R={normal:D.Normal,average:D.Average,lighten:D.Lighten,lighter:D.Lighter,screen:D.Screen,plus:D.Plus,"color-dodge":D.ColorDodge,darken:D.Darken,multiply:D.Multiply,"color-burn":D.ColorBurn,overlay:D.Overlay,"soft-light":D.SoftLight,"hard-light":D.HardLight,"vivid-light":D.VividLight,hue:D.Hue,saturation:D.Saturation,luminosity:D.Luminosity,color:D.Color,difference:D.Difference,exclusion:D.Exclusion,minus:D.Minus,invert:D.Invert,reflect:D.Reflect,"destination-over":D.DestinationOver,"destination-atop":D.DestinationAtop,"destination-in":D.DestinationIn,"destination-out":D.DestinationOut,"source-atop":D.SourceAtop,"source-in":D.SourceIn,"source-out":D.SourceOut,xor:D.Xor};function G(Z){return Z===D.DestinationOver||Z===D.DestinationAtop||Z===D.DestinationIn||Z===D.DestinationOut||Z===D.SourceAtop||Z===D.SourceIn||Z===D.SourceOut||Z===D.Xor}},54120:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>Z});var D=v(13934),R=v(19278),G=v(17625);function Z(Q,$){switch(Q.fragment.include(R.n),$.output){case D.H.Shadow:case D.H.ShadowHighlight:case D.H.ShadowExludeHighlight:Q.extensions.add("GL_OES_standard_derivatives"),Q.fragment.code.add(G.H`float _calculateFragDepth(const in float depth) { -const float SLOPE_SCALE = 2.0; -const float BIAS = 20.0 * .000015259; -float m = max(abs(dFdx(depth)), abs(dFdy(depth))); -float result = depth + SLOPE_SCALE * m + BIAS; -return clamp(result, .0, .999999); -} -void outputDepth(float _linearDepth) { -gl_FragColor = float2rgba(_calculateFragDepth(_linearDepth)); -}`);break;case D.H.Depth:Q.fragment.code.add(G.H`void outputDepth(float _linearDepth) { -gl_FragColor = float2rgba(_linearDepth); -}`)}}},62952:(nt,Ae,v)=>{"use strict";v.d(Ae,{bA:()=>B,ck:()=>W});var D=v(4794),R=v(43177),G=v(17625),Z=v(35387),Q=v(19755);const $=(0,D.f)(1,1,0,1),W=(0,D.f)(1,0,1,1);function B(H,X){H.fragment.uniforms.add((0,Z.J)("depthTex",(te,ae)=>ae.highlightDepthTexture,X.hasWebGL2Context?Q.D.None:Q.D.InvSize)),H.fragment.constants.add("occludedHighlightFlag","vec4",$).add("unoccludedHighlightFlag","vec4",W),H.fragment.code.add(G.H` - void outputHighlight() { - vec3 fragCoord = gl_FragCoord.xyz; - - float sceneDepth = ${(0,R.b6)(X,"depthTex","fragCoord.xy")}.x; - if (fragCoord.z > sceneDepth + 5e-7) { - gl_FragColor = occludedHighlightFlag; - } - else { - gl_FragColor = unoccludedHighlightFlag; - } - } - `)}},47923:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>G});var D=v(19278),R=v(17625);function G(Z){Z.include(D.n),Z.code.add(R.H`float linearDepthFromFloat(float depth, vec2 nearFar) { -return -(depth * (nearFar[1] - nearFar[0]) + nearFar[0]); -} -float linearDepthFromTexture(sampler2D depthTex, vec2 uv, vec2 nearFar) { -return linearDepthFromFloat(rgba2float(texture2D(depthTex, uv)), nearFar); -}`)}},3802:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>Q});var D=v(43177),R=v(65787),G=v(17625),Z=v(35387);function Q($,W){$.fragment.uniforms.add([new Z.A("u_colormap",B=>B.u_colormap),new R.p("u_colormapOffset",B=>B.colormap.u_colormapOffset),new R.p("u_colormapMaxIndex",B=>B.colormap.u_colormapMaxIndex),new R.p("u_opacity",B=>B.common.u_opacity)]),$.fragment.code.add(G.H` - vec4 colormap(vec4 currentPixel, bool isFloat) { - float colorIndex = isFloat ? currentPixel.r - u_colormapOffset : currentPixel.r * 255.0 - u_colormapOffset; - vec4 result; - // handle no data and out of range pixels - if (currentPixel.a == 0.0 || colorIndex > u_colormapMaxIndex) { - result = vec4(0.0, 0.0, 0.0, 0.0); - } else { - // colormap lookup - vec2 texelCoordinates = vec2((colorIndex + 0.5), 0.5); - result = ${(0,D.b6)(W,"u_colormap","texelCoordinates","(1.0 / vec2(u_colormapMaxIndex + 1.0, 1.0))")}; - } - return result; - } - `)}},76301:(nt,Ae,v)=>{"use strict";v.d(Ae,{G:()=>X,J:()=>H});var D=v(43177),R=v(95285),G=v(17625),Z=v(35387),Q=v(19755);function $(te,ae){te.fragment.uniforms.add((0,Z.J)("u_transformGrid",oe=>oe.u_transformGrid,ae.hasWebGL2Context?Q.D.None:Q.D.InvSize)),te.fragment.uniforms.add(new R.A("u_transformSpacing",oe=>oe.common.u_transformSpacing)),te.fragment.uniforms.add(new R.A("u_targetImageSize",oe=>oe.common.u_targetImageSize)),te.fragment.code.add(G.H` - vec2 projectPixelLocation(vec2 coords) { - // Pixel index in row/column, corresponds to upperleft corner, e.g. [100, 20] - vec2 index_image = floor(coords * u_targetImageSize); - - // Pixel's corresponding cell index in transform grid - // Each transform cell corresponds to 4 pixels: 6 coefficients from lowerleft triangle followed by 6 coefficients from upperright triangle - vec2 oneTransformPixel = vec2(4.0, 1.0); - vec2 index_transform = floor(index_image / u_transformSpacing) * oneTransformPixel; - - // Correspoding position in transform grid cell, cell center coordinates - vec2 pos = fract((index_image + 0.5) / u_transformSpacing); - - // Pixel's corresponding transform cell location, cell center coordinates - vec2 transform_location = index_transform + 0.5; - - vec2 srcLocation; - - // Use lower triangle or upper triangle - if (pos.s <= pos.t) { - vec3 ll_abc = ${(0,D.b6)(ae,"u_transformGrid","transform_location")}.rgb; - vec3 ll_def = ${(0,D.b6)(ae,"u_transformGrid","vec2(transform_location.s + 1.0, transform_location.t)")}.rgb; - srcLocation.s = dot(ll_abc, vec3(pos, 1.0)); - srcLocation.t = dot(ll_def, vec3(pos, 1.0)); - } else { - vec3 ur_abc = ${(0,D.b6)(ae,"u_transformGrid","vec2(transform_location.s + 2.0, transform_location.t)")}.rgb; - vec3 ur_def = ${(0,D.b6)(ae,"u_transformGrid","vec2(transform_location.s + 3.0, transform_location.t)")}.rgb; - srcLocation.s = dot(ur_abc, vec3(pos, 1.0)); - srcLocation.t = dot(ur_def, vec3(pos, 1.0)); - } - - return srcLocation; - } - `)}var W=v(14273),B=v(78038);class H extends W.R{constructor(ae,oe,le){super(),this.common=ae,this.u_image=oe,this.u_transformGrid=le}}function X(te,ae){te.include($,ae),te.fragment.uniforms.add([new Z.A("u_image",oe=>oe.u_image),new B.U("u_flipY",oe=>oe.common.u_flipY),new B.U("u_applyTransform",oe=>oe.common.u_applyTransform)]),te.fragment.code.add(G.H`vec2 getPixelLocation(vec2 coords) { -vec2 targetLocation = u_flipY ? vec2(coords.s, 1.0 - coords.t) : coords; -if (!u_applyTransform) { -return targetLocation; -} -return projectPixelLocation(targetLocation); -} -bool isOutside(vec2 coords){ -if (coords.t>1.00001 ||coords.t<-0.00001 || coords.s>1.00001 ||coords.s<-0.00001) { -return true; -} else { -return false; -} -} -vec4 getPixel(vec2 pixelLocation) { -return texture2D(u_image, pixelLocation); -}`)}},2122:(nt,Ae,v)=>{"use strict";v.d(Ae,{P:()=>$});var D=v(58173),R=v(28137),G=v(90637),Z=v(2163),Q=v(17625);function $(W,B){W.include(D.c,B),W.fragment.include(R.y);const H=W.fragment;H.uniforms.add(new G.$("baseColor",X=>X.baseColor)),H.uniforms.add(new Z.p("objectOpacity",X=>X.objectOpacity)),H.code.add(B.hasVertexColors?Q.H`vec3 _baseColor() { -return baseColor.rgb * vColor.rgb; -} -float _baseOpacity() { -return baseColor.a * vColor.a; -}`:Q.H`vec3 _baseColor() { -return baseColor.rgb; -} -float _baseOpacity() { -return baseColor.a; -}`),H.code.add(Q.H`vec4 computeMaterialColor(vec4 textureColor, vec4 externalColor, int externalColorMixMode) { -vec3 baseColor = _baseColor(); -float baseOpacity = _baseOpacity(); -vec3 color = mixExternalColor( -baseColor, -textureColor.rgb, -externalColor.rgb, -externalColorMixMode -); -float opacity = objectOpacity * mixExternalOpacity( -baseOpacity, -textureColor.a, -externalColor.a, -externalColorMixMode -); -return vec4(color, opacity); -}`)}},29052:(nt,Ae,v)=>{"use strict";v.d(Ae,{Q:()=>te});var D=v(36603),R=v(95284),G=v(96395),Z=v(43177),Q=v(17625),$=v(5864),W=v(35387),B=v(19755),H=v(37847),X=v(16396);function te(ae,oe){const le=ae.fragment;if(oe.hasVertexTangents?(ae.attributes.add(X.T.TANGENT,"vec4"),ae.varyings.add("vTangent","vec4"),le.code.add(oe.doubleSidedMode===G.q.WindingOrder?Q.H`mat3 computeTangentSpace(vec3 normal) { -float tangentHeadedness = gl_FrontFacing ? vTangent.w : -vTangent.w; -vec3 tangent = normalize(gl_FrontFacing ? vTangent.xyz : -vTangent.xyz); -vec3 bitangent = cross(normal, tangent) * tangentHeadedness; -return mat3(tangent, bitangent, normal); -}`:Q.H`mat3 computeTangentSpace(vec3 normal) { -float tangentHeadedness = vTangent.w; -vec3 tangent = normalize(vTangent.xyz); -vec3 bitangent = cross(normal, tangent) * tangentHeadedness; -return mat3(tangent, bitangent, normal); -}`)):(ae.extensions.add("GL_OES_standard_derivatives"),le.code.add(Q.H`mat3 computeTangentSpace(vec3 normal, vec3 pos, vec2 st) { -vec3 Q1 = dFdx(pos); -vec3 Q2 = dFdy(pos); -vec2 stx = dFdx(st); -vec2 sty = dFdy(st); -float det = stx.t * sty.s - sty.t * stx.s; -vec3 T = stx.t * Q2 - sty.t * Q1; -T = T - normal * dot(normal, T); -T *= inversesqrt(max(dot(T,T), 1.e-10)); -vec3 B = sign(det) * cross(normal, T); -return mat3(T, B, normal); -}`)),oe.textureCoordinateType!==D.N.None){ae.include(R.i,oe);const de=oe.supportsTextureAtlas?oe.hasWebGL2Context?B.D.None:B.D.Size:B.D.None;le.uniforms.add(oe.pbrTextureBindType===H.P.Pass?(0,W.J)("normalTexture",se=>se.textureNormal,de):(0,$.F)("normalTexture",se=>se.textureNormal,de)),le.code.add(Q.H` - vec3 computeTextureNormal(mat3 tangentSpace, vec2 uv) { - vtc.uv = uv; - ${oe.supportsTextureAtlas?Q.H`vtc.size = ${(0,Z.w_)(oe,"normalTexture")};`:""} - vec3 rawNormal = textureLookup(normalTexture, vtc).rgb * 2.0 - 1.0; - return tangentSpace * rawNormal; - } - `)}}},75819:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>W});var D=v(94573),R=v(26859),G=v(21799),Z=v(51040),Q=v(96395),$=v(17625);function W(B,H){const X=B.fragment;switch(H.doubleSidedMode){case Q.q.None:X.code.add($.H`vec3 _adjustDoublesided(vec3 normal) { -return normal; -}`);break;case Q.q.View:B.include(Z.up,H),X.code.add($.H`vec3 _adjustDoublesided(vec3 normal) { -return dot(normal, vPositionWorldCameraRelative) > 0.0 ? -normal : normal; -}`);break;case Q.q.WindingOrder:X.code.add($.H`vec3 _adjustDoublesided(vec3 normal) { -return gl_FrontFacing ? normal : -normal; -}`);break;default:(0,D.Bg)(H.doubleSidedMode);case Q.q.COUNT:}switch(H.normalType){case R.h.Attribute:case R.h.CompressedAttribute:B.include(G.Bb,H),X.code.add($.H`vec3 shadingNormalWorld() { -return _adjustDoublesided(normalize(vNormalWorld)); -} -vec3 shadingNormal_view() { -vec3 normal = normalize(vNormalView); -return gl_FrontFacing ? normal : -normal; -}`);break;case R.h.ScreenDerivative:B.extensions.add("GL_OES_standard_derivatives"),B.include(Z.up,H),X.code.add($.H`vec3 shadingNormalWorld() { -return normalize(cross( -dFdx(vPositionWorldCameraRelative), -dFdy(vPositionWorldCameraRelative) -)); -} -vec3 shadingNormal_view() { -return normalize(cross(dFdx(vPosition_view),dFdy(vPosition_view))); -}`);break;case R.h.Ground:H.spherical?(B.include(Z.up,H),X.code.add($.H`vec3 shadingNormalWorld() { -return normalize(positionWorld()); -}`)):X.code.add($.H`vec3 shadingNormalWorld() { -return vec3(0.0, 0.0, 1.0); -}`),B.extensions.add("GL_OES_standard_derivatives"),X.code.add($.H`vec3 shadingNormal_view() { -return normalize(cross(dFdx(vPosition_view),dFdy(vPosition_view))).xyz; -}`);break;default:(0,D.Bg)(H.normalType);case R.h.COUNT:}}},44965:(nt,Ae,v)=>{"use strict";v.d(Ae,{_:()=>H});var D=v(84161),R=v(28093),G=v(993),Z=v(4794),Q=v(92724),$=v(97139),W=v(69960),B=v(17625);function H(ae,oe){const le=ae.fragment,de=void 0!==oe.lightingSphericalHarmonicsOrder?oe.lightingSphericalHarmonicsOrder:2;0===de?(le.uniforms.add(new $.J("lightingAmbientSH0",(se,re)=>(0,D.s)(X,re.lighting.sh.r[0],re.lighting.sh.g[0],re.lighting.sh.b[0]))),le.code.add(B.H`vec3 calculateAmbientIrradiance(vec3 normal, float ambientOcclusion) { -vec3 ambientLight = 0.282095 * lightingAmbientSH0; -return ambientLight * (1.0 - ambientOcclusion); -}`)):1===de?(le.uniforms.add([new W.N("lightingAmbientSH_R",(se,re)=>(0,G.s)(te,re.lighting.sh.r[0],re.lighting.sh.r[1],re.lighting.sh.r[2],re.lighting.sh.r[3])),new W.N("lightingAmbientSH_G",(se,re)=>(0,G.s)(te,re.lighting.sh.g[0],re.lighting.sh.g[1],re.lighting.sh.g[2],re.lighting.sh.g[3])),new W.N("lightingAmbientSH_B",(se,re)=>(0,G.s)(te,re.lighting.sh.b[0],re.lighting.sh.b[1],re.lighting.sh.b[2],re.lighting.sh.b[3]))]),le.code.add(B.H`vec3 calculateAmbientIrradiance(vec3 normal, float ambientOcclusion) { -vec4 sh0 = vec4( -0.282095, -0.488603 * normal.x, -0.488603 * normal.z, -0.488603 * normal.y -); -vec3 ambientLight = vec3( -dot(lightingAmbientSH_R, sh0), -dot(lightingAmbientSH_G, sh0), -dot(lightingAmbientSH_B, sh0) -); -return ambientLight * (1.0 - ambientOcclusion); -}`)):2===de&&(le.uniforms.add([new $.J("lightingAmbientSH0",(se,re)=>(0,D.s)(X,re.lighting.sh.r[0],re.lighting.sh.g[0],re.lighting.sh.b[0])),new W.N("lightingAmbientSH_R1",(se,re)=>(0,G.s)(te,re.lighting.sh.r[1],re.lighting.sh.r[2],re.lighting.sh.r[3],re.lighting.sh.r[4])),new W.N("lightingAmbientSH_G1",(se,re)=>(0,G.s)(te,re.lighting.sh.g[1],re.lighting.sh.g[2],re.lighting.sh.g[3],re.lighting.sh.g[4])),new W.N("lightingAmbientSH_B1",(se,re)=>(0,G.s)(te,re.lighting.sh.b[1],re.lighting.sh.b[2],re.lighting.sh.b[3],re.lighting.sh.b[4])),new W.N("lightingAmbientSH_R2",(se,re)=>(0,G.s)(te,re.lighting.sh.r[5],re.lighting.sh.r[6],re.lighting.sh.r[7],re.lighting.sh.r[8])),new W.N("lightingAmbientSH_G2",(se,re)=>(0,G.s)(te,re.lighting.sh.g[5],re.lighting.sh.g[6],re.lighting.sh.g[7],re.lighting.sh.g[8])),new W.N("lightingAmbientSH_B2",(se,re)=>(0,G.s)(te,re.lighting.sh.b[5],re.lighting.sh.b[6],re.lighting.sh.b[7],re.lighting.sh.b[8]))]),le.code.add(B.H`vec3 calculateAmbientIrradiance(vec3 normal, float ambientOcclusion) { -vec3 ambientLight = 0.282095 * lightingAmbientSH0; -vec4 sh1 = vec4( -0.488603 * normal.x, -0.488603 * normal.z, -0.488603 * normal.y, -1.092548 * normal.x * normal.y -); -vec4 sh2 = vec4( -1.092548 * normal.y * normal.z, -0.315392 * (3.0 * normal.z * normal.z - 1.0), -1.092548 * normal.x * normal.z, -0.546274 * (normal.x * normal.x - normal.y * normal.y) -); -ambientLight += vec3( -dot(lightingAmbientSH_R1, sh1), -dot(lightingAmbientSH_G1, sh1), -dot(lightingAmbientSH_B1, sh1) -); -ambientLight += vec3( -dot(lightingAmbientSH_R2, sh2), -dot(lightingAmbientSH_G2, sh2), -dot(lightingAmbientSH_B2, sh2) -); -return ambientLight * (1.0 - ambientOcclusion); -}`),oe.pbrMode!==Q.f7.Normal&&oe.pbrMode!==Q.f7.Schematic||le.code.add(B.H`const vec3 skyTransmittance = vec3(0.9, 0.9, 1.0); -vec3 calculateAmbientRadiance(float ambientOcclusion) -{ -vec3 ambientLight = 1.2 * (0.282095 * lightingAmbientSH0) - 0.2; -return ambientLight *= (1.0 - ambientOcclusion) * skyTransmittance; -}`))}const X=(0,R.c)(),te=(0,Z.c)()},54662:(nt,Ae,v)=>{"use strict";v.d(Ae,{K:()=>$});var D=v(43177),R=v(17625),G=v(35387),Z=v(19755),Q=v(95808);function $(W,B){const H=W.fragment;B.receiveAmbientOcclusion?(H.uniforms.add((0,G.J)("ssaoTex",(X,te)=>te.ssaoHelper.colorTexture,B.hasWebGL2Context?Z.D.None:Z.D.InvSize)),H.constants.add("blurSizePixelsInverse","float",1/Q.s),H.code.add(R.H` - float evaluateAmbientOcclusionInverse() { - vec2 ssaoTextureSizeInverse = ${(0,D.w_)(B,"ssaoTex",!0)}; - return texture2D(ssaoTex, gl_FragCoord.xy * blurSizePixelsInverse * ssaoTextureSizeInverse).a; - } - - float evaluateAmbientOcclusion() { - return 1.0 - evaluateAmbientOcclusionInverse(); - } - `)):H.code.add(R.H`float evaluateAmbientOcclusionInverse() { return 1.0; } -float evaluateAmbientOcclusion() { return 0.0; }`)}},13146:(nt,Ae,v)=>{"use strict";v.d(Ae,{PN:()=>ae,XP:()=>le,sC:()=>oe});var D=v(94573),R=v(44965),G=v(54662),Z=v(31166),Q=v(98898),$=v(92724),W=v(39337),B=v(78038),H=v(65787),X=v(17625),te=v(95279);function ae(de){de.constants.add("ambientBoostFactor","float",te.V)}function oe(de){de.uniforms.add(new H.p("lightingGlobalFactor",(se,re)=>re.lighting.globalFactor))}function le(de,se){const re=de.fragment;switch(de.include(G.K,se),se.pbrMode!==$.f7.Disabled&&de.include(Q.T,se),de.include(R._,se),de.include(W.e),re.code.add(X.H` - const float GAMMA_SRGB = 2.1; - const float INV_GAMMA_SRGB = 0.4761904; - ${se.pbrMode===$.f7.Disabled?"":"const vec3 GROUND_REFLECTANCE = vec3(0.2);"} - `),ae(re),oe(re),(0,Z.Pe)(re),re.code.add(X.H` - float additionalDirectedAmbientLight(vec3 vPosWorld) { - float vndl = dot(${se.spherical?X.H`normalize(vPosWorld)`:X.H`vec3(0.0, 0.0, 1.0)`}, mainLightDirection); - return smoothstep(0.0, 1.0, clamp(vndl * 2.5, 0.0, 1.0)); - } - `),(0,Z.F1)(re),re.code.add(X.H`vec3 evaluateAdditionalLighting(float ambientOcclusion, vec3 vPosWorld) { -float additionalAmbientScale = additionalDirectedAmbientLight(vPosWorld); -return (1.0 - ambientOcclusion) * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor * mainLightIntensity; -}`),se.pbrMode){case $.f7.Disabled:case $.f7.WaterOnIntegratedMesh:case $.f7.Water:de.include(Z.kR,se),re.code.add(X.H`vec3 evaluateSceneLighting(vec3 normalWorld, vec3 albedo, float shadow, float ssao, vec3 additionalLight) -{ -vec3 mainLighting = evaluateMainLighting(normalWorld, shadow); -vec3 ambientLighting = calculateAmbientIrradiance(normalWorld, ssao); -vec3 albedoLinear = pow(albedo, vec3(GAMMA_SRGB)); -vec3 totalLight = mainLighting + ambientLighting + additionalLight; -totalLight = min(totalLight, vec3(PI)); -vec3 outColor = vec3((albedoLinear / PI) * totalLight); -return pow(outColor, vec3(INV_GAMMA_SRGB)); -}`);break;case $.f7.Normal:case $.f7.Schematic:re.code.add(X.H`const float fillLightIntensity = 0.25; -const float horizonLightDiffusion = 0.4; -const float additionalAmbientIrradianceFactor = 0.02; -vec3 evaluateSceneLightingPBR(vec3 normal, vec3 albedo, float shadow, float ssao, vec3 additionalLight, vec3 viewDir, vec3 normalGround, vec3 mrr, vec3 _emission, float additionalAmbientIrradiance) -{ -vec3 viewDirection = -viewDir; -vec3 mainLightDirection = mainLightDirection; -vec3 h = normalize(viewDirection + mainLightDirection); -PBRShadingInfo inputs; -inputs.NdotL = clamp(dot(normal, mainLightDirection), 0.001, 1.0); -inputs.NdotV = clamp(abs(dot(normal, viewDirection)), 0.001, 1.0); -inputs.NdotH = clamp(dot(normal, h), 0.0, 1.0); -inputs.VdotH = clamp(dot(viewDirection, h), 0.0, 1.0); -inputs.NdotNG = clamp(dot(normal, normalGround), -1.0, 1.0); -vec3 reflectedView = normalize(reflect(viewDirection, normal)); -inputs.RdotNG = clamp(dot(reflectedView, normalGround), -1.0, 1.0); -inputs.albedoLinear = pow(albedo, vec3(GAMMA_SRGB)); -inputs.ssao = ssao; -inputs.metalness = mrr[0]; -inputs.roughness = clamp(mrr[1] * mrr[1], 0.001, 0.99);`),re.code.add(X.H`inputs.f0 = (0.16 * mrr[2] * mrr[2]) * (1.0 - inputs.metalness) + inputs.albedoLinear * inputs.metalness; -inputs.f90 = vec3(clamp(dot(inputs.f0, vec3(50.0 * 0.33)), 0.0, 1.0)); -inputs.diffuseColor = inputs.albedoLinear * (vec3(1.0) - inputs.f0) * (1.0 - inputs.metalness);`),se.useFillLights?re.uniforms.add(new B.U("hasFillLights",(j,Y)=>Y.enableFillLights)):re.constants.add("hasFillLights","bool",!1),re.code.add(X.H`vec3 ambientDir = vec3(5.0 * normalGround[1] - normalGround[0] * normalGround[2], - 5.0 * normalGround[0] - normalGround[2] * normalGround[1], normalGround[1] * normalGround[1] + normalGround[0] * normalGround[0]); -ambientDir = ambientDir != vec3(0.0)? normalize(ambientDir) : normalize(vec3(5.0, -1.0, 0.0)); -inputs.NdotAmbDir = hasFillLights ? abs(dot(normal, ambientDir)) : 1.0; -vec3 mainLightIrradianceComponent = inputs.NdotL * (1.0 - shadow) * mainLightIntensity; -vec3 fillLightsIrradianceComponent = inputs.NdotAmbDir * mainLightIntensity * fillLightIntensity; -vec3 ambientLightIrradianceComponent = calculateAmbientIrradiance(normal, ssao) + additionalLight; -inputs.skyIrradianceToSurface = ambientLightIrradianceComponent + mainLightIrradianceComponent + fillLightsIrradianceComponent ; -inputs.groundIrradianceToSurface = GROUND_REFLECTANCE * ambientLightIrradianceComponent + mainLightIrradianceComponent + fillLightsIrradianceComponent ;`),re.uniforms.add([new H.p("lightingSpecularStrength",(j,Y)=>Y.lighting.mainLight.specularStrength),new H.p("lightingEnvironmentStrength",(j,Y)=>Y.lighting.mainLight.environmentStrength)]),re.code.add(X.H`vec3 horizonRingDir = inputs.RdotNG * normalGround - reflectedView; -vec3 horizonRingH = normalize(viewDirection + horizonRingDir); -inputs.NdotH_Horizon = dot(normal, horizonRingH); -vec3 mainLightRadianceComponent = lightingSpecularStrength * normalDistribution(inputs.NdotH, inputs.roughness) * mainLightIntensity * (1.0 - shadow); -vec3 horizonLightRadianceComponent = lightingEnvironmentStrength * normalDistribution(inputs.NdotH_Horizon, min(inputs.roughness + horizonLightDiffusion, 1.0)) * mainLightIntensity * fillLightIntensity; -vec3 ambientLightRadianceComponent = lightingEnvironmentStrength * calculateAmbientRadiance(ssao) + additionalLight; -inputs.skyRadianceToSurface = ambientLightRadianceComponent + mainLightRadianceComponent + horizonLightRadianceComponent; -inputs.groundRadianceToSurface = GROUND_REFLECTANCE * (ambientLightRadianceComponent + horizonLightRadianceComponent) + mainLightRadianceComponent; -inputs.averageAmbientRadiance = ambientLightIrradianceComponent[1] * (1.0 + GROUND_REFLECTANCE[1]);`),re.code.add(X.H` - vec3 reflectedColorComponent = evaluateEnvironmentIllumination(inputs); - vec3 additionalMaterialReflectanceComponent = inputs.albedoLinear * additionalAmbientIrradiance; - vec3 emissionComponent = pow(_emission, vec3(GAMMA_SRGB)); - vec3 outColorLinear = reflectedColorComponent + additionalMaterialReflectanceComponent + emissionComponent; - ${se.pbrMode===$.f7.Schematic?X.H`vec3 outColor = pow(max(vec3(0.0), outColorLinear - 0.005 * inputs.averageAmbientRadiance), vec3(INV_GAMMA_SRGB));`:X.H`vec3 outColor = pow(blackLevelSoftCompression(outColorLinear, inputs), vec3(INV_GAMMA_SRGB));`} - return outColor; - } - `);break;default:(0,D.Bg)(se.pbrMode);case $.f7.COUNT:}}},45027:(nt,Ae,v)=>{"use strict";v.d(Ae,{E:()=>G,K:()=>R});var D=v(17625);function R(Z){Z.fragment.code.add(D.H`float normals2FoamIntensity(vec3 n, float waveStrength){ -float normalizationFactor = max(0.015, waveStrength); -return max((n.x + n.y)*0.3303545/normalizationFactor + 0.3303545, 0.0); -}`)}function G(Z){Z.fragment.code.add(D.H`vec3 foamIntensity2FoamColor(float foamIntensityExternal, float foamPixelIntensity, vec3 skyZenitColor, float dayMod){ -return foamIntensityExternal * (0.075 * skyZenitColor * pow(foamPixelIntensity, 4.) + 50.* pow(foamPixelIntensity, 23.0)) * dayMod; -}`)}},96896:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>R});var D=v(17625);function R(G){G.fragment.code.add(D.H`const float GAMMA = 2.2; -const float INV_GAMMA = 0.4545454545; -vec4 delinearizeGamma(vec4 color) { -return vec4(pow(color.rgb, vec3(INV_GAMMA)), color.w); -} -vec3 linearizeGamma(vec3 color) { -return pow(color, vec3(GAMMA)); -}`)}},92484:(nt,Ae,v)=>{"use strict";v.d(Ae,{q:()=>de,C:()=>Y});var D=v(62208),R=v(19278),G=v(2166),Z=v(43177),Q=v(69960),$=v(65787),W=v(17625),B=v(35387),H=v(19755),X=v(51899),te=v(993),ae=v(4794);const le=(0,ae.c)();function de(ie,J){ie.constants.add("stippleAlphaColorDiscard","float",.001),ie.constants.add("stippleAlphaHighlightDiscard","float",.5),J.stippleEnabled?function se(ie,J){const ce=!(J.draped&&J.stipplePreferContinuous),{vertex:ue,fragment:pe}=ie;pe.include(R.n),J.draped||((0,G.hY)(ue,J),ue.uniforms.add(new $.p("worldToScreenPerDistanceRatio",(me,ge)=>1/ge.camera.perScreenPixelRatio)),ue.code.add(W.H`float computeWorldToScreenRatio(vec3 segmentCenter) { -float segmentDistanceToCamera = length(segmentCenter - cameraPosition); -return worldToScreenPerDistanceRatio / segmentDistanceToCamera; -}`)),ie.varyings.add("vStippleDistance","float"),J.stippleRequiresClamp&&ie.varyings.add("vStippleDistanceLimits","vec2"),J.stippleRequiresStretchMeasure&&ie.varyings.add("vStipplePatternStretch","float"),ue.code.add(W.H` - float discretizeWorldToScreenRatio(float worldToScreenRatio) { - float step = ${ee}; - - float discreteWorldToScreenRatio = log(worldToScreenRatio); - discreteWorldToScreenRatio = ceil(discreteWorldToScreenRatio / step) * step; - discreteWorldToScreenRatio = exp(discreteWorldToScreenRatio); - return discreteWorldToScreenRatio; - } - `),ue.code.add(W.H`vec2 computeStippleDistanceLimits(float startPseudoScreen, float segmentLengthPseudoScreen, float segmentLengthScreen, float patternLength) {`),ue.code.add(W.H` - if (segmentLengthPseudoScreen >= ${ce?"patternLength":"1e4"}) { - `),ue.uniforms.add(new $.p("pixelRatio",(me,ge)=>ge.camera.pixelRatio)),ue.code.add(W.H` - // Round the screen length to get an integer number of pattern repetitions (minimum 1). - float repetitions = segmentLengthScreen / (patternLength * pixelRatio); - float flooredRepetitions = max(1.0, floor(repetitions + 0.5)); - float segmentLengthScreenRounded = flooredRepetitions * patternLength; - - ${J.stippleRequiresStretchMeasure?W.H` - float stretch = repetitions / flooredRepetitions; - - // We need to impose a lower bound on the stretch factor to prevent the dots from merging together when there is only 1 repetition. - // 0.75 is the lowest possible stretch value for flooredRepetitions > 1, so it makes sense as lower bound. - vStipplePatternStretch = max(0.75, stretch);`:""} - - return vec2(0.0, segmentLengthScreenRounded); - } - return vec2(startPseudoScreen, startPseudoScreen + segmentLengthPseudoScreen); - } - `),pe.constants.add("stippleTexturePadding","float",X.it),pe.uniforms.add((0,B.J)("stipplePatternTexture",me=>me.stippleTexture,J.hasWebGL2Context?H.D.None:H.D.Size)),pe.uniforms.add([new $.p("stipplePatternSDFNormalizer",me=>function j(ie){return(0,D.pC)(ie)?(Math.floor(.5*((0,X.kj)(ie)-1))+.5)/ie.pixelRatio:1}(me.stipplePattern)),new $.p("stipplePatternPixelSizeInv",me=>1/Y(me))]),pe.code.add(W.H` - float padStippleTexture(float u) { - float paddedTextureSize = ${(0,Z.w_)(J,"stipplePatternTexture")}.x; - float unpaddedTextureSize = paddedTextureSize - stippleTexturePadding; - - return (u * unpaddedTextureSize + stippleTexturePadding * 0.5) / paddedTextureSize; - } - `),pe.code.add(W.H` - float getStippleSDF(out bool isClamped) { - ${J.stippleRequiresClamp?W.H` - float stippleDistanceClamped = clamp(vStippleDistance, vStippleDistanceLimits.x, vStippleDistanceLimits.y); - vec2 aaCorrectedLimits = vStippleDistanceLimits + vec2(1.0, -1.0) / gl_FragCoord.w; - isClamped = vStippleDistance < aaCorrectedLimits.x || vStippleDistance > aaCorrectedLimits.y;`:W.H` - float stippleDistanceClamped = vStippleDistance; - isClamped = false;`} - - float u = stippleDistanceClamped * gl_FragCoord.w * stipplePatternPixelSizeInv; - ${J.stippleScaleWithLineWidth?W.H`u *= vLineSizeInv;`:""} - u = padStippleTexture(fract(u)); - - float encodedSDF = rgba2float(texture2D(stipplePatternTexture, vec2(u, 0.5))); - float sdf = (encodedSDF * 2.0 - 1.0) * stipplePatternSDFNormalizer; - - ${J.stippleRequiresStretchMeasure?W.H`return (sdf - 0.5) * vStipplePatternStretch + 0.5;`:W.H`return sdf;`} - } - - float getStippleSDF() { - bool ignored; - return getStippleSDF(ignored); - } - - float getStippleAlpha() { - bool isClamped; - float stippleSDF = getStippleSDF(isClamped); - - float antiAliasedResult = ${J.stippleScaleWithLineWidth?W.H`clamp(stippleSDF * vLineWidth + 0.5, 0.0, 1.0);`:W.H`clamp(stippleSDF + 0.5, 0.0, 1.0);`} - - return isClamped ? floor(antiAliasedResult + 0.5) : antiAliasedResult; - } - `),J.stippleOffColorEnabled?(pe.uniforms.add(new Q.N("stippleOffColor",me=>function oe(ie){return(0,D.Wi)(ie)?ae.Z:4===ie.length?ie:(0,te.s)(le,ie[0],ie[1],ie[2],1)}(me.stippleOffColor))),pe.code.add(W.H`#define discardByStippleAlpha(stippleAlpha, threshold) {} -#define blendStipple(color, stippleAlpha) mix(color, stippleOffColor, stippleAlpha)`)):pe.code.add(W.H`#define discardByStippleAlpha(stippleAlpha, threshold) if (stippleAlpha < threshold) { discard; } -#define blendStipple(color, stippleAlpha) vec4(color.rgb, color.a * stippleAlpha)`)}(ie,J):function re(ie){ie.fragment.code.add(W.H`float getStippleAlpha() { return 1.0; } -#define discardByStippleAlpha(_stippleAlpha_, _threshold_) {} -#define blendStipple(color, _stippleAlpha_) color`)}(ie)}function Y(ie){const J=ie.stipplePattern;return(0,D.pC)(J)?(0,X.$A)(ie.stipplePattern)/J.pixelRatio:1}const ee=W.H.float(.4)},31166:(nt,Ae,v)=>{"use strict";v.d(Ae,{F1:()=>Q,Pe:()=>Z,kR:()=>W});var D=v(97139),R=v(65787),G=v(17625);function Z(B){B.uniforms.add(new D.J("mainLightDirection",(H,X)=>X.lighting.mainLight.direction))}function Q(B){B.uniforms.add(new D.J("mainLightIntensity",(H,X)=>X.lighting.mainLight.intensity))}function W(B,H){const X=B.fragment;Z(X),Q(X),function $(B,H){H.useLegacyTerrainShading?B.uniforms.add(new R.p("lightingFixedFactor",(X,te)=>te.lighting.noonFactor*(1-te.lighting.globalFactor))):B.constants.add("lightingFixedFactor","float",0)}(X,H),X.code.add(G.H`vec3 evaluateMainLighting(vec3 normal_global, float shadowing) { -float dotVal = clamp(dot(normal_global, mainLightDirection), 0.0, 1.0); -dotVal = mix(dotVal, 1.0, lightingFixedFactor); -return mainLightIntensity * ((1.0 - shadowing) * dotVal); -}`)}},50823:(nt,Ae,v)=>{"use strict";v.d(Ae,{Q:()=>$});var D=v(62208),R=v(81805),G=v(65787),Z=v(17625),Q=v(46359);function $(W,B){const H=W.vertex;W.constants.add("markerSizePerLineWidth","float",R._Z),H.uniforms.add(new G.p("pixelRatio",(X,te)=>te.camera.pixelRatio)),(0,D.Wi)(H.uniforms.get("markerScale"))&&H.constants.add("markerScale","float",1),H.code.add(Z.H`float getLineWidth() { -return max(getSize(), 1.0) * pixelRatio; -} -float getScreenMarkerSize() { -return markerSizePerLineWidth * markerScale * getLineWidth(); -}`),B.space===Q.I9.World&&(H.constants.add("maxSegmentLengthFraction","float",.45),H.uniforms.add(new G.p("perRenderPixelRatio",(X,te)=>te.camera.perRenderPixelRatio)),H.code.add(Z.H`float getWorldMarkerSize(vec4 pos) { -float distanceToCamera = length(pos.xyz); -float screenToWorldRatio = perRenderPixelRatio * distanceToCamera * 0.5; -return getScreenMarkerSize() * screenToWorldRatio; -} -bool areWorldMarkersHidden(vec4 pos, vec4 other) { -vec3 midPoint = mix(pos.xyz, other.xyz, 0.5); -float distanceToCamera = length(midPoint); -float screenToWorldRatio = perRenderPixelRatio * distanceToCamera * 0.5; -float worldMarkerSize = getScreenMarkerSize() * screenToWorldRatio; -float segmentLen = length(pos.xyz - other.xyz); -return worldMarkerSize > maxSegmentLengthFraction * segmentLen; -}`))}},82793:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>Q,_:()=>$});var D=v(47923),R=v(95285),G=v(17625),Z=v(35387);function Q(W){W.include(D.S),W.uniforms.add([new Z.A("geometryDepthTexture",(B,H)=>H.multipassGeometry.linearDepthTexture),new R.A("nearFar",(B,H)=>H.camera.nearFar)]),W.code.add(G.H`bool geometryDepthTest(vec2 pos, float elementDepth) { -float geometryDepth = linearDepthFromTexture(geometryDepthTexture, pos, nearFar); -return (elementDepth < (geometryDepth - 1.0)); -}`)}class ${constructor(){this.enabled=!1}}},10109:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>$,l:()=>Q});var D=v(47923),R=v(95285),G=v(17625),Z=v(35387);function Q(W,B){B.hasMultipassTerrain&&(W.fragment.include(D.S),W.fragment.uniforms.add(new Z.A("terrainDepthTexture",(H,X)=>X.multipassTerrain.linearDepthTexture)),W.fragment.uniforms.add(new R.A("nearFar",(H,X)=>X.camera.nearFar)),W.fragment.uniforms.add(new R.A("inverseViewport",(H,X)=>X.inverseViewport)),W.fragment.code.add(G.H` - void terrainDepthTest(vec4 fragCoord, float fragmentDepth){ - float terrainDepth = linearDepthFromTexture(terrainDepthTexture, fragCoord.xy * inverseViewport, nearFar); - if(fragmentDepth ${B.cullAboveGround?">":"<="} terrainDepth){ - discard; - } - } - `))}class ${constructor(){this.enabled=!1,this.cullAboveGround=!1}}},7025:(nt,Ae,v)=>{"use strict";v.d(Ae,{n:()=>R});var D=v(17625);function R(G,Z){G.vertex.code.add(Z.spherical?D.H`vec3 getLocalUp(in vec3 pos, in vec3 origin) { -return normalize(pos + origin); -}`:D.H`vec3 getLocalUp(in vec3 pos, in vec3 origin) { -return vec3(0.0, 0.0, 1.0); -}`),G.vertex.code.add(Z.spherical?D.H`mat3 getTBNMatrix(in vec3 n) { -vec3 t = normalize(cross(vec3(0.0, 0.0, 1.0), n)); -vec3 b = normalize(cross(n, t)); -return mat3(t, b, n); -}`:D.H`mat3 getTBNMatrix(in vec3 n) { -vec3 t = vec3(1.0, 0.0, 0.0); -vec3 b = normalize(cross(n, t)); -return mat3(t, b, n); -}`)}},96395:(nt,Ae,v)=>{"use strict";v.d(Ae,{k:()=>G,q:()=>Z});var Z,Q,D=v(94573),R=v(17625);function G(Q,$){const W=Q.fragment;switch(W.code.add(R.H`struct ShadingNormalParameters { -vec3 normalView; -vec3 viewDirection; -} shadingParams;`),$.doubleSidedMode){case Z.None:W.code.add(R.H`vec3 shadingNormal(ShadingNormalParameters params) { -return normalize(params.normalView); -}`);break;case Z.View:W.code.add(R.H`vec3 shadingNormal(ShadingNormalParameters params) { -return dot(params.normalView, params.viewDirection) > 0.0 ? normalize(-params.normalView) : normalize(params.normalView); -}`);break;case Z.WindingOrder:W.code.add(R.H`vec3 shadingNormal(ShadingNormalParameters params) { -return gl_FrontFacing ? normalize(params.normalView) : normalize(-params.normalView); -}`);break;default:(0,D.Bg)($.doubleSidedMode);case Z.COUNT:}}(Q=Z||(Z={}))[Q.None=0]="None",Q[Q.View=1]="View",Q[Q.WindingOrder=2]="WindingOrder",Q[Q.COUNT=3]="COUNT"},98898:(nt,Ae,v)=>{"use strict";v.d(Ae,{T:()=>Q});var D=v(17625);function R($){const W=$.fragment.code;W.add(D.H`vec3 evaluateDiffuseIlluminationHemisphere(vec3 ambientGround, vec3 ambientSky, float NdotNG) -{ -return ((1.0 - NdotNG) * ambientGround + (1.0 + NdotNG) * ambientSky) * 0.5; -}`),W.add(D.H`float integratedRadiance(float cosTheta2, float roughness) -{ -return (cosTheta2 - 1.0) / (cosTheta2 * (1.0 - roughness * roughness) - 1.0); -}`),W.add(D.H`vec3 evaluateSpecularIlluminationHemisphere(vec3 ambientGround, vec3 ambientSky, float RdotNG, float roughness) -{ -float cosTheta2 = 1.0 - RdotNG * RdotNG; -float intRadTheta = integratedRadiance(cosTheta2, roughness); -float ground = RdotNG < 0.0 ? 1.0 - intRadTheta : 1.0 + intRadTheta; -float sky = 2.0 - ground; -return (ground * ambientGround + sky * ambientSky) * 0.5; -}`)}var G=v(92724),Z=v(39337);function Q($,W){const B=$.fragment.code;$.include(Z.e),W.pbrMode===G.f7.Water||W.pbrMode===G.f7.WaterOnIntegratedMesh?(B.add(D.H` - struct PBRShadingWater - { - float NdotL; // cos angle between normal and light direction - float NdotV; // cos angle between normal and view direction - float NdotH; // cos angle between normal and half vector - float VdotH; // cos angle between view direction and half vector - float LdotH; // cos angle between light direction and half vector - float VdotN; // cos angle between view direction and normal vector - }; - - float dtrExponent = ${W.useCustomDTRExponentForWater?"2.2":"2.0"}; - `),B.add(D.H`vec3 fresnelReflection(float angle, vec3 f0, float f90) { -return f0 + (f90 - f0) * pow(1.0 - angle, 5.0); -}`),B.add(D.H`float normalDistributionWater(float NdotH, float roughness) -{ -float r2 = roughness * roughness; -float NdotH2 = NdotH * NdotH; -float denom = pow((NdotH2 * (r2 - 1.0) + 1.0), dtrExponent) * PI; -return r2 / denom; -}`),B.add(D.H`float geometricOcclusionKelemen(float LoH) -{ -return 0.25 / (LoH * LoH); -}`),B.add(D.H`vec3 brdfSpecularWater(in PBRShadingWater props, float roughness, vec3 F0, float F0Max) -{ -vec3 F = fresnelReflection(props.VdotH, F0, F0Max); -float dSun = normalDistributionWater(props.NdotH, roughness); -float V = geometricOcclusionKelemen(props.LdotH); -float diffusionSunHaze = mix(roughness + 0.045, roughness + 0.385, 1.0 - props.VdotH); -float strengthSunHaze = 1.2; -float dSunHaze = normalDistributionWater(props.NdotH, diffusionSunHaze)*strengthSunHaze; -return ((dSun + dSunHaze) * V) * F; -} -vec3 tonemapACES(const vec3 x) { -return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14); -}`)):W.pbrMode!==G.f7.Normal&&W.pbrMode!==G.f7.Schematic||($.include(R),B.add(D.H`struct PBRShadingInfo -{ -float NdotL; -float NdotV; -float NdotH; -float VdotH; -float LdotH; -float NdotNG; -float RdotNG; -float NdotAmbDir; -float NdotH_Horizon; -vec3 skyRadianceToSurface; -vec3 groundRadianceToSurface; -vec3 skyIrradianceToSurface; -vec3 groundIrradianceToSurface; -float averageAmbientRadiance; -float ssao; -vec3 albedoLinear; -vec3 f0; -vec3 f90; -vec3 diffuseColor; -float metalness; -float roughness; -};`),B.add(D.H`float normalDistribution(float NdotH, float roughness) -{ -float a = NdotH * roughness; -float b = roughness / (1.0 - NdotH * NdotH + a * a); -return b * b * INV_PI; -}`),B.add(D.H`const vec4 c0 = vec4(-1.0, -0.0275, -0.572, 0.022); -const vec4 c1 = vec4( 1.0, 0.0425, 1.040, -0.040); -const vec2 c2 = vec2(-1.04, 1.04); -vec2 prefilteredDFGAnalytical(float roughness, float NdotV) { -vec4 r = roughness * c0 + c1; -float a004 = min(r.x * r.x, exp2(-9.28 * NdotV)) * r.x + r.y; -return c2 * a004 + r.zw; -}`),B.add(D.H`vec3 evaluateEnvironmentIllumination(PBRShadingInfo inputs) { -vec3 indirectDiffuse = evaluateDiffuseIlluminationHemisphere(inputs.groundIrradianceToSurface, inputs.skyIrradianceToSurface, inputs.NdotNG); -vec3 indirectSpecular = evaluateSpecularIlluminationHemisphere(inputs.groundRadianceToSurface, inputs.skyRadianceToSurface, inputs.RdotNG, inputs.roughness); -vec3 diffuseComponent = inputs.diffuseColor * indirectDiffuse * INV_PI; -vec2 dfg = prefilteredDFGAnalytical(inputs.roughness, inputs.NdotV); -vec3 specularColor = inputs.f0 * dfg.x + inputs.f90 * dfg.y; -vec3 specularComponent = specularColor * indirectSpecular; -return (diffuseComponent + specularComponent); -}`),B.add(D.H`float gamutMapChanel(float x, vec2 p){ -return (x < p.x) ? mix(0.0, p.y, x/p.x) : mix(p.y, 1.0, (x - p.x) / (1.0 - p.x) ); -}`),B.add(D.H`vec3 blackLevelSoftCompression(vec3 inColor, PBRShadingInfo inputs){ -vec3 outColor; -vec2 p = vec2(0.02 * (inputs.averageAmbientRadiance), 0.0075 * (inputs.averageAmbientRadiance)); -outColor.x = gamutMapChanel(inColor.x, p) ; -outColor.y = gamutMapChanel(inColor.y, p) ; -outColor.z = gamutMapChanel(inColor.z, p) ; -return outColor; -}`))}},92724:(nt,Ae,v)=>{"use strict";v.d(Ae,{Fw:()=>ae,f7:()=>oe,jV:()=>de});var D=v(14658),R=v(95284),G=v(43177),Z=v(77739),Q=v(97139),$=v(17625),W=v(5864),B=v(35387),H=v(19755),X=v(37847);v(33470);const ae=(0,D.f)(0,.6,.2);var oe,se;function de(se,re){const j=se.fragment,Y=re.hasMetallicRoughnessTexture||re.hasEmissionTexture||re.hasOcclusionTexture;if(re.pbrMode===oe.Normal&&Y&&se.include(R.i,re),re.pbrMode!==oe.Schematic)if(re.pbrMode!==oe.Disabled){if(re.pbrMode===oe.Normal){j.code.add($.H`vec3 mrr; -vec3 emission; -float occlusion;`);const ee=re.supportsTextureAtlas?re.hasWebGL2Context?H.D.None:H.D.Size:H.D.None,ie=re.pbrTextureBindType;re.hasMetallicRoughnessTexture&&(j.uniforms.add(ie===X.P.Pass?(0,B.J)("texMetallicRoughness",J=>J.textureMetallicRoughness,ee):(0,W.F)("texMetallicRoughness",J=>J.textureMetallicRoughness,ee)),j.code.add($.H`void applyMetallnessAndRoughness(TextureLookupParameter params) { -vec3 metallicRoughness = textureLookup(texMetallicRoughness, params).rgb; -mrr[0] *= metallicRoughness.b; -mrr[1] *= metallicRoughness.g; -}`)),re.hasEmissionTexture&&(j.uniforms.add(ie===X.P.Pass?(0,B.J)("texEmission",J=>J.textureEmissive,ee):(0,W.F)("texEmission",J=>J.textureEmissive,ee)),j.code.add($.H`void applyEmission(TextureLookupParameter params) { -emission *= textureLookup(texEmission, params).rgb; -}`)),re.hasOcclusionTexture?(j.uniforms.add(ie===X.P.Pass?(0,B.J)("texOcclusion",J=>J.textureOcclusion,ee):(0,W.F)("texOcclusion",J=>J.textureOcclusion,ee)),j.code.add($.H`void applyOcclusion(TextureLookupParameter params) { -occlusion *= textureLookup(texOcclusion, params).r; -} -float getBakedOcclusion() { -return occlusion; -}`)):j.code.add($.H`float getBakedOcclusion() { return 1.0; }`),j.uniforms.add(ie===X.P.Pass?[new Q.J("emissionFactor",J=>J.emissiveFactor),new Q.J("mrrFactors",J=>J.mrrFactors)]:[new Z.B("emissionFactor",J=>J.emissiveFactor),new Z.B("mrrFactors",J=>J.mrrFactors)]),j.code.add($.H` - void applyPBRFactors() { - mrr = mrrFactors; - emission = emissionFactor; - occlusion = 1.0; - ${Y?$.H`vtc.uv = vuv0;`:""} - ${re.hasMetallicRoughnessTextureTransform?$.H`vtc.uv = metallicRoughnessUV;`:""} - ${re.hasMetallicRoughnessTexture?re.supportsTextureAtlas?$.H` - vtc.size = ${(0,G.w_)(re,"texMetallicRoughness")}; - applyMetallnessAndRoughness(vtc);`:$.H`applyMetallnessAndRoughness(vtc);`:""} - ${re.hasEmissiveTextureTransform?$.H`vtc.uv = emissiveUV;`:""} - ${re.hasEmissionTexture?re.supportsTextureAtlas?$.H` - vtc.size = ${(0,G.w_)(re,"texEmission")}; - applyEmission(vtc);`:$.H`applyEmission(vtc);`:""} - ${re.hasOcclusionTextureTransform?$.H`vtc.uv = occlusionUV;`:""} - ${re.hasOcclusionTexture?re.supportsTextureAtlas?$.H` - vtc.size = ${(0,G.w_)(re,"texOcclusion")}; - applyOcclusion(vtc);`:$.H`applyOcclusion(vtc);`:""} - } - `)}}else j.code.add($.H`float getBakedOcclusion() { return 1.0; }`);else j.code.add($.H`vec3 mrr = vec3(0.0, 0.6, 0.2); -vec3 emission = vec3(0.0); -float occlusion = 1.0; -void applyPBRFactors() {} -float getBakedOcclusion() { return 1.0; }`)}(se=oe||(oe={}))[se.Disabled=0]="Disabled",se[se.Normal=1]="Normal",se[se.Schematic=2]="Schematic",se[se.Water=3]="Water",se[se.WaterOnIntegratedMesh=4]="WaterOnIntegratedMesh",se[se.COUNT=5]="COUNT"},39337:(nt,Ae,v)=>{"use strict";v.d(Ae,{e:()=>R});var D=v(17625);function R(G){G.vertex.code.add(D.H`const float PI = 3.141592653589793;`),G.fragment.code.add(D.H`const float PI = 3.141592653589793; -const float LIGHT_NORMALIZATION = 1.0 / PI; -const float INV_PI = 0.3183098861837907; -const float HALF_PI = 1.570796326794897;`)}},37926:(nt,Ae,v)=>{"use strict";v.d(Ae,{s:()=>X});var D=v(13934),R=v(36603),G=v(95284),Z=v(95267),Q=v(43177),$=v(17625),W=v(5864),B=v(19755),H=v(42743);function X(te,ae){const oe=te.fragment;if(!ae.hasBaseColorTexture||ae.output!==D.H.Color&&ae.alphaDiscardMode===H.JJ.Opaque)oe.code.add($.H`vec4 readBaseColorTexture() { return vec4(1.0); }`);else{te.include(G.i,ae);const le=ae.textureCoordinateType===R.N.Atlas;oe.uniforms.add((0,W.F)("baseColorTexture",de=>de.texture,le?ae.hasWebGL2Context?B.D.None:B.D.Size:B.D.None)),le?(te.include(Z.r),oe.code.add($.H` - vec4 readBaseColorTexture() { - vec2 textureSize = ${(0,Q.w_)(ae,"baseColorTexture")}; - return textureAtlasLookup(baseColorTexture, textureSize, vuv0, vuvRegion); - } - `)):oe.code.add($.H`vec4 readBaseColorTexture() { -return texture2D(baseColorTexture, vuv0); -}`)}}},72968:(nt,Ae,v)=>{"use strict";v.d(Ae,{ry:()=>oe,XE:()=>de,hb:()=>le});var D=v(28093),R=v(19278),G=v(43177),Z=v(69960),Q=v(18952),$=v(17625),W=v(85930),B=v(37847);class H extends W.x{constructor(j,Y,ee){super(j,"mat4",B.P.Draw,(ie,J,ce)=>ie.setUniformMatrix4fv(j,Y(J,ce)),ee)}}class X extends W.x{constructor(j,Y,ee){super(j,"mat4",B.P.Pass,(ie,J,ce)=>ie.setUniformMatrix4fv(j,Y(J,ce)),ee)}}var te=v(35387),ae=v(19755);class oe extends $.K{constructor(){super(...arguments),this.origin=(0,D.c)()}}function le(re,j){j.receiveShadows&&(re.fragment.uniforms.add(new X("shadowMapMatrix",(Y,ee)=>ee.shadowMap.getShadowMapMatrices(Y.origin),4)),se(re,j))}function de(re,j){j.receiveShadows&&(re.fragment.uniforms.add(new H("shadowMapMatrix",(Y,ee)=>ee.shadowMap.getShadowMapMatrices(Y.origin),4)),se(re,j))}function se(re,j){const Y=re.fragment;Y.include(R.n),Y.uniforms.add([...(0,te.J)("shadowMapTex",(ee,ie)=>ie.shadowMap.depthTexture,j.hasWebGL2Context?ae.D.None:ae.D.Size),new Q._("numCascades",(ee,ie)=>ie.shadowMap.numCascades),new Z.N("cascadeDistances",(ee,ie)=>ie.shadowMap.cascadeDistances)]),Y.code.add($.H` - int chooseCascade(float depth, out mat4 mat) { - vec4 distance = cascadeDistances; - - // choose correct cascade - int i = depth < distance[1] ? 0 : depth < distance[2] ? 1 : depth < distance[3] ? 2 : 3; - - mat = i == 0 ? shadowMapMatrix[0] : i == 1 ? shadowMapMatrix[1] : i == 2 ? shadowMapMatrix[2] : shadowMapMatrix[3]; - - return i; - } - - vec3 lightSpacePosition(vec3 _vpos, mat4 mat) { - vec4 lv = mat * vec4(_vpos, 1.0); - lv.xy /= lv.w; - return 0.5 * lv.xyz + vec3(0.5); - } - - vec2 cascadeCoordinates(int i, vec3 lvpos) { - return vec2(float(i - 2 * (i / 2)) * 0.5, float(i / 2) * 0.5) + 0.5 * lvpos.xy; - } - - float readShadowMapDepth(vec2 uv, sampler2D _depthTex) { - return rgba2float(texture2D(_depthTex, uv)); - } - - float posIsInShadow(vec2 uv, vec3 lvpos, sampler2D _depthTex) { - return readShadowMapDepth(uv, _depthTex) < lvpos.z ? 1.0 : 0.0; - } - - float filterShadow(vec2 uv, vec3 lvpos, float textureSize, sampler2D _depthTex) { - float halfPixelSize = 0.5 / textureSize; - - // filter, offset by half pixels - vec2 st = fract((vec2(halfPixelSize) + uv) * textureSize); - - float s00 = posIsInShadow(uv + vec2(-halfPixelSize, -halfPixelSize), lvpos, _depthTex); - float s10 = posIsInShadow(uv + vec2(halfPixelSize, -halfPixelSize), lvpos, _depthTex); - float s11 = posIsInShadow(uv + vec2(halfPixelSize, halfPixelSize), lvpos, _depthTex); - float s01 = posIsInShadow(uv + vec2(-halfPixelSize, halfPixelSize), lvpos, _depthTex); - - return mix(mix(s00, s10, st.x), mix(s01, s11, st.x), st.y); - } - - float readShadowMap(const in vec3 _vpos, float _linearDepth) { - mat4 mat; - int i = chooseCascade(_linearDepth, mat); - - if (i >= numCascades) { return 0.0; } - - vec3 lvpos = lightSpacePosition(_vpos, mat); - - // vertex completely outside? -> no shadow - if (lvpos.z >= 1.0) { return 0.0; } - if (lvpos.x < 0.0 || lvpos.x > 1.0 || lvpos.y < 0.0 || lvpos.y > 1.0) { return 0.0; } - - // calc coord in cascade texture - vec2 uv = cascadeCoordinates(i, lvpos); - - vec2 textureSize = ${(0,G.w_)(j,"shadowMapTex")}; - - return filterShadow(uv, lvpos, textureSize.x, shadowMapTex); - } - `)}},45867:(nt,Ae,v)=>{"use strict";v.d(Ae,{O:()=>H,P:()=>B});var D=v(43703),R=v(47923),G=v(95285),Z=v(65787),Q=v(17625),$=v(63123),W=v(35387);function B(X,te){const ae=X.fragment;ae.include(R.S),ae.uniforms.add(new G.A("nearFar",(oe,le)=>le.camera.nearFar)),ae.uniforms.add(new W.A("depthMap",(oe,le)=>le.linearDepthTexture)),ae.uniforms.add(new $.g("proj",(oe,le)=>le.ssr.camera.projectionMatrix)),ae.uniforms.add(new Z.p("invResolutionHeight",(oe,le)=>1/le.ssr.camera.height)),ae.uniforms.add(new $.g("reprojectionMatrix",(oe,le)=>le.ssr.reprojectionMatrix)),ae.code.add(Q.H` - vec2 reprojectionCoordinate(vec3 projectionCoordinate) - { - vec4 zw = proj * vec4(0.0, 0.0, -projectionCoordinate.z, 1.0); - vec4 reprojectedCoord = reprojectionMatrix * vec4(zw.w * (projectionCoordinate.xy * 2.0 - 1.0), zw.z, zw.w); - reprojectedCoord.xy /= reprojectedCoord.w; - return reprojectedCoord.xy * 0.5 + 0.5; - } - - const int maxSteps = ${te.highStepCount?"150":"75"}; - - vec4 applyProjectionMat(mat4 projectionMat, vec3 x) - { - vec4 projectedCoord = projectionMat * vec4(x, 1.0); - projectedCoord.xy /= projectedCoord.w; - projectedCoord.xy = projectedCoord.xy*0.5 + 0.5; - return projectedCoord; - } - - vec3 screenSpaceIntersection(vec3 dir, vec3 startPosition, vec3 viewDir, vec3 normal) - { - vec3 viewPos = startPosition; - vec3 viewPosEnd = startPosition; - - // Project the start position to the screen - vec4 projectedCoordStart = applyProjectionMat(proj, viewPos); - vec3 Q0 = viewPos / projectedCoordStart.w; // homogeneous camera space - float k0 = 1.0/ projectedCoordStart.w; - - // advance the position in the direction of the reflection - viewPos += dir; - - vec4 projectedCoordVanishingPoint = applyProjectionMat(proj, dir); - - // Project the advanced position to the screen - vec4 projectedCoordEnd = applyProjectionMat(proj, viewPos); - vec3 Q1 = viewPos / projectedCoordEnd.w; // homogeneous camera space - float k1 = 1.0/ projectedCoordEnd.w; - - // calculate the reflection direction in the screen space - vec2 projectedCoordDir = (projectedCoordEnd.xy - projectedCoordStart.xy); - vec2 projectedCoordDistVanishingPoint = (projectedCoordVanishingPoint.xy - projectedCoordStart.xy); - - float yMod = min(abs(projectedCoordDistVanishingPoint.y), 1.0); - - float projectedCoordDirLength = length(projectedCoordDir); - float maxSt = float(maxSteps); - - // normalize the projection direction depending on maximum steps - // this determines how blocky the reflection looks - vec2 dP = yMod * (projectedCoordDir)/(maxSt * projectedCoordDirLength); - - // Normalize the homogeneous camera space coordinates - vec3 dQ = yMod * (Q1 - Q0)/(maxSt * projectedCoordDirLength); - float dk = yMod * (k1 - k0)/(maxSt * projectedCoordDirLength); - - // initialize the variables for ray marching - vec2 P = projectedCoordStart.xy; - vec3 Q = Q0; - float k = k0; - float rayStartZ = -startPosition.z; // estimated ray start depth value - float rayEndZ = -startPosition.z; // estimated ray end depth value - float prevEstimateZ = -startPosition.z; - float rayDiffZ = 0.0; - float dDepth; - float depth; - float rayDiffZOld = 0.0; - - // early outs - if (dot(normal, dir) < 0.0 || dot(-viewDir, normal) < 0.0) - return vec3(P, 0.0); - - for(int i = 0; i < maxSteps-1; i++) - { - depth = -linearDepthFromTexture(depthMap, P, nearFar); // get linear depth from the depth buffer - - // estimate depth of the marching ray - rayStartZ = prevEstimateZ; - dDepth = -rayStartZ - depth; - rayEndZ = (dQ.z * 0.5 + Q.z)/ ((dk * 0.5 + k)); - rayDiffZ = rayEndZ- rayStartZ; - prevEstimateZ = rayEndZ; - - if(-rayEndZ > nearFar[1] || -rayEndZ < nearFar[0] || P.y < 0.0 || P.y > 1.0 ) - { - return vec3(P, 0.); - } - - // If we detect a hit - return the intersection point, two conditions: - // - dDepth > 0.0 - sampled point depth is in front of estimated depth - // - if difference between dDepth and rayDiffZOld is not too large - // - if difference between dDepth and 0.025/abs(k) is not too large - // - if the sampled depth is not behind far plane or in front of near plane - - if((dDepth) < 0.025/abs(k) + abs(rayDiffZ) && dDepth > 0.0 && depth > nearFar[0] && depth < nearFar[1] && abs(P.y - projectedCoordStart.y) > invResolutionHeight) - { - return vec3(P, depth); - } - - // continue with ray marching - P += dP; - Q.z += dQ.z; - k += dk; - rayDiffZOld = rayDiffZ; - } - return vec3(P, 0.0); - } - `)}class H{constructor(){this.reprojectionMatrix=(0,D.c)()}}},70489:(nt,Ae,v)=>{"use strict";v.d(Ae,{DT:()=>H,NI:()=>$,R5:()=>W,av:()=>Q,jF:()=>B});var D=v(62208),R=v(49966),G=v(17625),Z=v(91574);function Q(X){X.vertex.uniforms.add(new Z.c("colorTextureTransformMatrix",te=>(0,D.pC)(te.colorTextureTransformMatrix)?te.colorTextureTransformMatrix:(0,R.c)())),X.varyings.add("colorUV","vec2"),X.vertex.code.add(G.H`void forwardColorUV(){ -colorUV = (colorTextureTransformMatrix * vec3(vuv0, 1.0)).xy; -}`)}function $(X){X.vertex.uniforms.add(new Z.c("normalTextureTransformMatrix",te=>(0,D.pC)(te.normalTextureTransformMatrix)?te.normalTextureTransformMatrix:(0,R.c)())),X.varyings.add("normalUV","vec2"),X.vertex.code.add(G.H`void forwardNormalUV(){ -normalUV = (normalTextureTransformMatrix * vec3(vuv0, 1.0)).xy; -}`)}function W(X){X.vertex.uniforms.add(new Z.c("emissiveTextureTransformMatrix",te=>(0,D.pC)(te.emissiveTextureTransformMatrix)?te.emissiveTextureTransformMatrix:(0,R.c)())),X.varyings.add("emissiveUV","vec2"),X.vertex.code.add(G.H`void forwardEmissiveUV(){ -emissiveUV = (emissiveTextureTransformMatrix * vec3(vuv0, 1.0)).xy; -}`)}function B(X){X.vertex.uniforms.add(new Z.c("occlusionTextureTransformMatrix",te=>(0,D.pC)(te.occlusionTextureTransformMatrix)?te.occlusionTextureTransformMatrix:(0,R.c)())),X.varyings.add("occlusionUV","vec2"),X.vertex.code.add(G.H`void forwardOcclusionUV(){ -occlusionUV = (occlusionTextureTransformMatrix * vec3(vuv0, 1.0)).xy; -}`)}function H(X){X.vertex.uniforms.add(new Z.c("metallicRoughnessTextureTransformMatrix",te=>(0,D.pC)(te.metallicRoughnessTextureTransformMatrix)?te.metallicRoughnessTextureTransformMatrix:(0,R.c)())),X.varyings.add("metallicRoughnessUV","vec2"),X.vertex.code.add(G.H`void forwardMetallicRoughnessUV(){ -metallicRoughnessUV = (metallicRoughnessTextureTransformMatrix * vec3(vuv0, 1.0)).xy; -}`)}},92836:(nt,Ae,v)=>{"use strict";v.d(Ae,{k:()=>B});var D=v(97139),R=v(48565),G=v(7090),Z=v(17625),Q=v(91574),$=v(16396),W=v(41857);function B(H,X){X.hasVvInstancing&&(X.vvSize||X.vvColor)&&H.attributes.add($.T.INSTANCEFEATUREATTRIBUTE,"vec4");const te=H.vertex;X.vvSize?(te.uniforms.add(new D.J("vvSizeMinSize",ae=>ae.vvSizeMinSize)),te.uniforms.add(new D.J("vvSizeMaxSize",ae=>ae.vvSizeMaxSize)),te.uniforms.add(new D.J("vvSizeOffset",ae=>ae.vvSizeOffset)),te.uniforms.add(new D.J("vvSizeFactor",ae=>ae.vvSizeFactor)),te.uniforms.add(new Q.c("vvSymbolRotationMatrix",ae=>ae.vvSymbolRotationMatrix)),te.uniforms.add(new D.J("vvSymbolAnchor",ae=>ae.vvSymbolAnchor)),te.code.add(Z.H`vec3 vvScale(vec4 _featureAttribute) { -return clamp(vvSizeOffset + _featureAttribute.x * vvSizeFactor, vvSizeMinSize, vvSizeMaxSize); -} -vec4 vvTransformPosition(vec3 position, vec4 _featureAttribute) { -return vec4(vvSymbolRotationMatrix * ( vvScale(_featureAttribute) * (position + vvSymbolAnchor)), 1.0); -}`),te.code.add(Z.H` - const float eps = 1.192092896e-07; - vec4 vvTransformNormal(vec3 _normal, vec4 _featureAttribute) { - vec3 vvScale = clamp(vvSizeOffset + _featureAttribute.x * vvSizeFactor, vvSizeMinSize + eps, vvSizeMaxSize); - return vec4(vvSymbolRotationMatrix * _normal / vvScale, 1.0); - } - - ${X.hasVvInstancing?Z.H` - vec4 vvLocalNormal(vec3 _normal) { - return vvTransformNormal(_normal, instanceFeatureAttribute); - } - - vec4 localPosition() { - return vvTransformPosition(position, instanceFeatureAttribute); - }`:""} - `)):te.code.add(Z.H`vec4 localPosition() { return vec4(position, 1.0); } -vec4 vvLocalNormal(vec3 _normal) { return vec4(_normal, 1.0); }`),X.vvColor?(te.constants.add("vvColorNumber","int",W.x),X.hasVvInstancing&&te.uniforms.add([new G.O("vvColorValues",ae=>ae.vvColorValues,W.x),new R.b("vvColorColors",ae=>ae.vvColorColors,W.x)]),te.code.add(Z.H` - vec4 vvGetColor(vec4 featureAttribute, float values[vvColorNumber], vec4 colors[vvColorNumber]) { - float value = featureAttribute.y; - if (value <= values[0]) { - return colors[0]; - } - - for (int i = 1; i < vvColorNumber; ++i) { - if (values[i] >= value) { - float f = (value - values[i-1]) / (values[i] - values[i-1]); - return mix(colors[i-1], colors[i], f); - } - } - return colors[vvColorNumber - 1]; - } - - ${X.hasVvInstancing?Z.H` - vec4 vvColor() { - return vvGetColor(instanceFeatureAttribute, vvColorValues, vvColorColors); - }`:""} - `)):te.code.add(Z.H`vec4 vvColor() { return vec4(1.0); }`)}},69117:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>X});var D=v(45027),R=v(96896),G=v(98898),Z=v(45867),Q=v(69602),$=v(65787),W=v(17625),B=v(63123),H=v(35387);function X(te,ae){te.include(G.T,ae),te.include(R.D),te.include(D.E),ae.hasCloudsReflections&&te.include(Q.j,ae),ae.hasScreenSpaceReflections&&te.include(Z.P,ae);const oe=te.fragment;oe.constants.add("fresnelSky","vec3",[.02,1,15]).add("fresnelMaterial","vec2",[.02,.1]).add("roughness","float",.015).add("foamIntensityExternal","float",1.7).add("ssrIntensity","float",.65).add("ssrHeightFadeStart","float",3e5).add("ssrHeightFadeEnd","float",5e5).add("waterDiffusion","float",.92).add("waterSeaColorMod","float",.8).add("correctionViewingPowerFactor","float",.4).add("skyZenitColor","vec3",[.52,.68,.9]).add("skyColor","vec3",[.67,.79,.9]).add("cloudFresnelModifier","vec2",[1.2,.01]),oe.code.add(W.H`PBRShadingWater shadingInfo; -vec3 getSkyGradientColor(in float cosTheta, in vec3 horizon, in vec3 zenit) { -float exponent = pow((1.0 - cosTheta), fresnelSky[2]); -return mix(zenit, horizon, exponent); -}`),oe.uniforms.add([new $.p("lightingSpecularStrength",(le,de)=>de.lighting.mainLight.specularStrength),new $.p("lightingEnvironmentStrength",(le,de)=>de.lighting.mainLight.environmentStrength)]),oe.code.add(W.H`vec3 getSeaColor(in vec3 n, in vec3 v, in vec3 l, vec3 color, in vec3 lightIntensity, in vec3 localUp, in float shadow, float foamIntensity, vec3 viewPosition, vec3 position) { -float reflectionHit = 0.0; -float reflectionHitDiffused = 0.0; -vec3 seaWaterColor = linearizeGamma(color); -vec3 h = normalize(l + v); -shadingInfo.NdotL = clamp(dot(n, l), 0.0, 1.0); -shadingInfo.NdotV = clamp(dot(n, v), 0.001, 1.0); -shadingInfo.VdotN = clamp(dot(v, n), 0.001, 1.0); -shadingInfo.NdotH = clamp(dot(n, h), 0.0, 1.0); -shadingInfo.VdotH = clamp(dot(v, h), 0.0, 1.0); -shadingInfo.LdotH = clamp(dot(l, h), 0.0, 1.0); -float upDotV = max(dot(localUp,v), 0.0); -vec3 skyHorizon = linearizeGamma(skyColor); -vec3 skyZenit = linearizeGamma(skyZenitColor); -vec3 skyColor = getSkyGradientColor(upDotV, skyHorizon, skyZenit ); -float upDotL = max(dot(localUp,l),0.0); -float daytimeMod = 0.1 + upDotL * 0.9; -skyColor *= daytimeMod; -float shadowModifier = clamp(shadow, 0.8, 1.0); -vec3 fresnelModifier = fresnelReflection(shadingInfo.VdotN, vec3(fresnelSky[0]), fresnelSky[1]); -vec3 reflSky = lightingEnvironmentStrength * fresnelModifier * skyColor * shadowModifier; -vec3 reflSea = seaWaterColor * mix(skyColor, upDotL * lightIntensity * LIGHT_NORMALIZATION, 2.0 / 3.0) * shadowModifier; -vec3 specular = vec3(0.0); -if(upDotV > 0.0 && upDotL > 0.0) { -vec3 specularSun = brdfSpecularWater(shadingInfo, roughness, vec3(fresnelMaterial[0]), fresnelMaterial[1]); -vec3 incidentLight = lightIntensity * LIGHT_NORMALIZATION * shadow; -specular = lightingSpecularStrength * shadingInfo.NdotL * incidentLight * specularSun; -} -vec3 foam = vec3(0.0); -if(upDotV > 0.0) { -foam = foamIntensity2FoamColor(foamIntensityExternal, foamIntensity, skyZenitColor, daytimeMod); -} -float correctionViewingFactor = pow(max(dot(v, localUp), 0.0), correctionViewingPowerFactor); -vec3 normalCorrectedClouds = mix(localUp, n, correctionViewingFactor); -vec3 reflectedWorld = normalize(reflect(-v, normalCorrectedClouds));`),ae.hasCloudsReflections&&oe.code.add(W.H`vec4 cloudsColor = renderClouds(reflectedWorld, position); -cloudsColor.a = 1.0 - cloudsColor.a; -cloudsColor = pow(cloudsColor, vec4(GAMMA)); -cloudsColor *= clamp(fresnelModifier.y*cloudFresnelModifier[0] - cloudFresnelModifier[1], 0.0, 1.0) * clamp((1.0 - totalFadeInOut), 0.0, 1.0);`),ae.hasScreenSpaceReflections?(oe.uniforms.add(new B.g("view",(le,de)=>de.ssr.camera.viewMatrix)),oe.uniforms.add(new H.A("lastFrameColorMap",(le,de)=>de.ssr.lastFrameColorTexture)),oe.code.add(W.H`vec3 viewDir = normalize(viewPosition); -vec4 viewNormalVectorCoordinate = view *vec4(n, 0.0); -vec3 viewNormal = normalize(viewNormalVectorCoordinate.xyz); -vec4 viewUp = view * vec4(localUp, 0.0); -vec3 viewNormalCorrectedSSR = mix(viewUp.xyz, viewNormal, correctionViewingFactor); -vec3 reflected = normalize(reflect(viewDir, viewNormalCorrectedSSR)); -vec3 hitCoordinate = screenSpaceIntersection(reflected, viewPosition, viewDir, viewUp.xyz); -vec3 reflectedColor = vec3(0.0); -if (hitCoordinate.z > 0.0) -{ -vec2 reprojectedCoordinate = reprojectionCoordinate(hitCoordinate); -vec2 dCoords = smoothstep(0.3, 0.6, abs(vec2(0.5, 0.5) - hitCoordinate.xy)); -float heightMod = smoothstep(ssrHeightFadeEnd, ssrHeightFadeStart, -viewPosition.z); -reflectionHit = clamp(1.0 - (1.3*dCoords.y), 0.0, 1.0) * heightMod; -reflectionHitDiffused = waterDiffusion * reflectionHit; -reflectedColor = linearizeGamma(texture2D(lastFrameColorMap, reprojectedCoordinate).xyz)* reflectionHitDiffused * fresnelModifier.y * ssrIntensity; -} -float seaColorMod = mix(waterSeaColorMod, waterSeaColorMod*0.5, reflectionHitDiffused); -vec3 waterRenderedColor = tonemapACES((1.0 - reflectionHitDiffused) * reflSky + reflectedColor + reflSea * seaColorMod + specular + foam);`)):oe.code.add(W.H`vec3 waterRenderedColor = tonemapACES(reflSky + reflSea * waterSeaColorMod + specular + foam);`),oe.code.add(ae.hasCloudsReflections?ae.hasScreenSpaceReflections?W.H`return waterRenderedColor * (1.0 - (1.0 - reflectionHit) * cloudsColor.a) + (1.0 - reflectionHit) * cloudsColor.xyz; -}`:W.H`return waterRenderedColor * (1.0 - cloudsColor.a) + cloudsColor.xyz; -}`:W.H`return waterRenderedColor; -}`)}},45780:(nt,Ae,v)=>{"use strict";v.d(Ae,{M:()=>X});var D=v(67831),R=v(99770),G=v(993),Z=v(4794),Q=v(45027),$=v(95285),W=v(69960),B=v(17625),H=v(35387);function X(le){le.fragment.uniforms.add(new H.A("texWaveNormal",de=>de.waveNormal)),le.fragment.uniforms.add(new H.A("texWavePerturbation",de=>de.wavePertubation)),le.fragment.uniforms.add([new W.N("waveParams",de=>(0,G.s)(ae,de.waveStrength,de.waveTextureRepeat,de.flowStrength,de.flowOffset)),new $.A("waveDirection",de=>(0,D.s)(oe,de.waveDirection[0]*de.waveVelocity,de.waveDirection[1]*de.waveVelocity))]),le.include(Q.K),le.fragment.code.add(B.H`const vec2 FLOW_JUMP = vec2(6.0/25.0, 5.0/24.0); -vec2 textureDenormalized2D(sampler2D _tex, vec2 _uv) { -return 2.0 * texture2D(_tex, _uv).rg - 1.0; -} -float sampleNoiseTexture(vec2 _uv) { -return texture2D(texWavePerturbation, _uv).b; -} -vec3 textureDenormalized3D(sampler2D _tex, vec2 _uv) { -return 2.0 * texture2D(_tex, _uv).rgb - 1.0; -} -float computeProgress(vec2 uv, float time) { -return fract(time); -} -float computeWeight(vec2 uv, float time) { -float progress = computeProgress(uv, time); -return 1.0 - abs(1.0 - 2.0 * progress); -} -vec3 computeUVPerturbedWeigth(sampler2D texFlow, vec2 uv, float time, float phaseOffset) { -float flowStrength = waveParams[2]; -float flowOffset = waveParams[3]; -vec2 flowVector = textureDenormalized2D(texFlow, uv) * flowStrength; -float progress = computeProgress(uv, time + phaseOffset); -float weight = computeWeight(uv, time + phaseOffset); -vec2 result = uv; -result -= flowVector * (progress + flowOffset); -result += phaseOffset; -result += (time - progress) * FLOW_JUMP; -return vec3(result, weight); -} -const float TIME_NOISE_TEXTURE_REPEAT = 0.3737; -const float TIME_NOISE_STRENGTH = 7.77; -vec3 getWaveLayer(sampler2D _texNormal, sampler2D _dudv, vec2 _uv, vec2 _waveDir, float time) { -float waveStrength = waveParams[0]; -vec2 waveMovement = time * -_waveDir; -float timeNoise = sampleNoiseTexture(_uv * TIME_NOISE_TEXTURE_REPEAT) * TIME_NOISE_STRENGTH; -vec3 uv_A = computeUVPerturbedWeigth(_dudv, _uv + waveMovement, time + timeNoise, 0.0); -vec3 uv_B = computeUVPerturbedWeigth(_dudv, _uv + waveMovement, time + timeNoise, 0.5); -vec3 normal_A = textureDenormalized3D(_texNormal, uv_A.xy) * uv_A.z; -vec3 normal_B = textureDenormalized3D(_texNormal, uv_B.xy) * uv_B.z; -vec3 mixNormal = normalize(normal_A + normal_B); -mixNormal.xy *= waveStrength; -mixNormal.z = sqrt(1.0 - dot(mixNormal.xy, mixNormal.xy)); -return mixNormal; -} -vec4 getSurfaceNormalAndFoam(vec2 _uv, float _time) { -float waveTextureRepeat = waveParams[1]; -vec3 normal = getWaveLayer(texWaveNormal, texWavePerturbation, _uv * waveTextureRepeat, waveDirection, _time); -float foam = normals2FoamIntensity(normal, waveParams[0]); -return vec4(normal, foam); -}`)}const ae=(0,Z.c)(),oe=(0,R.a)()},89798:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>R});var D=v(17625);function R(G){G.code.add(D.H` - float lineFactorAtPosition(float value) { - float pos = value * ${D.H.float(257)}; - if(pos < 0.5 || pos > ${D.H.float(256.5)}) { - return 1.0; - } - - pos = pos + 0.5; - float modulo = mod(pos, 16.0); - return modulo <= 2.0 ? 1.0 - abs(modulo - 1.0) : 0.0; - } - - float lineFactorAtUV(vec2 uv) { - return max(lineFactorAtPosition(uv.x), lineFactorAtPosition(uv.y)); - } - - float lineFactor(vec2 uv) { - vec2 offset = fwidth(uv) * 0.25; - return (lineFactorAtUV(vec2(uv.x + offset.x, uv.y + offset.y)) + - lineFactorAtUV(vec2(uv.x - offset.x, uv.y + offset.y)) + - lineFactorAtUV(vec2(uv.x + offset.x, uv.y - offset.y)) + - lineFactorAtUV(vec2(uv.x - offset.x, uv.y - offset.y))) / 4.0; - } - - vec4 gridColor(vec2 uv) { - float line = lineFactor(uv) * 0.1 + 0.9; - return vec4(vec3(1.0, 0.972, 0.918) * line, 1.0); - }`)}},30249:(nt,Ae,v)=>{"use strict";v.d(Ae,{IJ:()=>oe,Tw:()=>le,WB:()=>ae,gT:()=>te});var te,j,D=v(4794),R=v(65401),G=v(75224),Z=v(43553),Q=v(31166),$=v(92724),W=v(69117),B=v(90637),H=v(17625),X=v(35387);function ae(j,Y){const{vertex:ee,fragment:ie}=j;ee.uniforms.add([new B.$("overlayTexOffset",(J,ce)=>function de(j,Y){for(const ee of Y.overlays){const{index:ie,extent:J}=ee;(0,R.SO)(J)>0&&(re[2*ie]=j.toMapSpace[0]/(0,R.bf)(J)-J[0]/(0,R.bf)(J),re[2*ie+1]=j.toMapSpace[1]/(0,R.Cb)(J)-J[1]/(0,R.Cb)(J))}return re}(J,ce)),new B.$("overlayTexScale",(J,ce)=>function se(j,Y){for(const ee of Y.overlays){const{index:ie,extent:J}=ee;(0,R.SO)(J)>0&&(re[2*ie]=j.toMapSpace[2]/(0,R.bf)(J),re[2*ie+1]=j.toMapSpace[3]/(0,R.Cb)(J))}return re}(J,ce))]),ie.constants.add("overlayOpacity","float",1),ie.uniforms.add(new X.A("ovColorTex",(J,ce)=>le(J,ce))),oe(j,Y)}function oe(j,Y){j.extensions.add("GL_OES_standard_derivatives"),Y.pbrMode!==$.f7.Water&&Y.pbrMode!==$.f7.WaterOnIntegratedMesh||j.include(W.B,Y);const{vertex:ee,fragment:ie}=j;j.varyings.add("vtcOverlay","vec4"),ee.code.add(H.H`void setOverlayVTC(in vec2 uv) { -vtcOverlay = vec4(uv, uv) * overlayTexScale + overlayTexOffset; -}`),ie.code.add(H.H`bool isValid(vec2 uv, vec2 dxdy) { -return (uv.x >= 0.0 + dxdy.x) && (uv.x <= 1.0 - dxdy.x) && (uv.y >= 0.0 + dxdy.y) && (uv.y <= 1.0 - dxdy.y); -} -vec4 getOverlayColor(sampler2D ov0Tex, vec4 texCoords) { -vec4 color0 = texture2D(ov0Tex, vec2(texCoords.x * 0.5, texCoords.y)); -vec4 color1 = texture2D(ov0Tex, vec2(texCoords.z * 0.5 + 0.5, texCoords.w)); -bool isValid0 = isValid(texCoords.xy, fwidth(texCoords.xy)); -bool isValid1 = isValid(texCoords.zw, vec2(0.0, 0.0)); -return mix(color1 * float(isValid1), color0, float(isValid0)); -}`),ie.code.add(H.H`vec4 getCombinedOverlayColor() { -return overlayOpacity * getOverlayColor(ovColorTex, vtcOverlay); -}`),Y.pbrMode!==$.f7.Water&&Y.pbrMode!==$.f7.WaterOnIntegratedMesh||((0,Q.Pe)(ie),(0,Q.F1)(ie),ie.code.add(H.H`vec4 getOverlayWaterColor(vec4 maskInput, vec4 colorInput, vec3 vposEyeDir, -float shadow, vec3 localUp, mat3 tbn, vec3 position, vec3 positionWorld) { -vec3 n = normalize(tbn * (2.0 * maskInput.rgb - vec3(1.0))); -vec3 v = vposEyeDir; -vec3 final = getSeaColor(n, v, mainLightDirection, colorInput.rgb, mainLightIntensity, localUp, 1.0 - shadow, maskInput.w, position, positionWorld); -return vec4(final, colorInput.w); -}`))}function le(j,Y){return 0===Y.overlays.length?null:j.identifier===Z.o9.Material&&j.subPass===Z.zp.Color?Y.overlays[G.fu.INNER].getColorTextureNoRasterImage():j.identifier===Z.o9.Highlight?Y.overlays[G.fu.INNER].getValidTexture(G.NH.Highlight):null}(j=te||(te={}))[j.Disabled=0]="Disabled",j[j.Enabled=1]="Enabled",j[j.EnabledWithWater=2]="EnabledWithWater",j[j.COUNT=3]="COUNT";const re=(0,D.c)()},91528:(nt,Ae,v)=>{"use strict";v.d(Ae,{EK:()=>te,uS:()=>H,yl:()=>X});var D=v(75224),R=v(89798),G=v(30249),Z=v(87633),Q=v(65787),$=v(17625),W=v(35387),B=v(85930);class H extends $.K{constructor(){super(...arguments),this.overlayOpacity=1}}function X(se,re){se.vertex.uniforms.add([new le("overlayTexOffset"),new le("overlayTexScale")]),se.fragment.uniforms.add([new Q.p("overlayOpacity",j=>j.overlayOpacity),new W.A("ovColorTex",(j,Y)=>0===Y.overlays.length?null:Y.overlays[D.fu.INNER].getColorTexture(j.overlaySource))]),(0,G.IJ)(se,re)}function te(se,re){const{vertex:j,fragment:Y,varyings:ee}=se;ee.add("vtc","vec2"),j.uniforms.add(new le("texOffsetAndScale")),Y.uniforms.add(new de("tex")),Y.uniforms.add(new oe("textureOpacities"));const ie=re.textureFadingEnabled&&!re.renderOccluded;ie&&(j.uniforms.add(new le("nextTexOffsetAndScale")),ee.add("nvtc","vec2"),Y.uniforms.add(new de("texNext")),Y.uniforms.add(new oe("nextTexOpacities")),Y.uniforms.add(new ae("fadeFactor")));const J=re.tileBlendInput===Z.R.ColorComposite,ce=re.tileBlendInput===Z.R.GridComposite;ce&&Y.include(R.H),J&&Y.uniforms.add(new oe("backgroundColor")),j.code.add($.H` - void forwardTextureCoordinatesWithTransform(in vec2 uv) { - vtc = uv * texOffsetAndScale.zw + texOffsetAndScale.xy; - ${ie?$.H`nvtc = uv * nextTexOffsetAndScale.zw + nextTexOffsetAndScale.xy;`:$.H``} - }`),Y.code.add($.H` - vec4 getColor(vec4 color, vec2 uv, vec3 opacities) { - ${ce||J?$.H` - if (opacities.y <= 0.0) { - return color * opacities.z * opacities.x; - } - vec4 bg = ${J?$.H`vec4(backgroundColor, 1.0)`:$.H`gridColor(uv)`} * opacities.y; - float alpha = opacities.z * color.a; - return mix(bg, color, alpha) * opacities.x;`:$.H`return color;`} - }`),Y.code.add(ie?$.H`vec4 getTileColor() { -vec4 color = getColor(texture2D(tex, vtc), vtc, textureOpacities); -if (fadeFactor >= 1.0) { -return color; -} -vec4 nextColor = getColor(texture2D(texNext, nvtc), nvtc, nextTexOpacities); -return mix(nextColor, color, fadeFactor); -}`:$.H`vec4 getTileColor() { -return getColor(texture2D(tex, vtc), vtc, textureOpacities); -}`)}class ae extends B.x{constructor(re){super(re,"float")}}class oe extends B.x{constructor(re){super(re,"vec3")}}class le extends B.x{constructor(re){super(re,"vec4")}}class de extends B.x{constructor(re){super(re,"sampler2D")}}},87191:(nt,Ae,v)=>{"use strict";v.d(Ae,{Iu:()=>ae,lG:()=>te,m9:()=>oe,JT:()=>de}),v(28093);var R=v(7699),G=v(89798),Z=v(17625);function Q(se,re){const j=re.blendMode;j!==R.iM.Normal&&(j===R.iM.Reflect&&se.code.add(Z.H`float reflectBlend(in float cb, in float cl) { -return (cl == 1.0) ? cl : min(cb * cb / (1.0 - cl), 1.0); -}`),j!==R.iM.ColorDodge&&j!==R.iM.VividLight||se.code.add(Z.H`float colorDodge(in float cb, in float cl) { -return (cb == 0.0) ? 0.0 : (cl == 1.0) ? 1.0 : min(1.0, cb / (1.0 - cl)); -}`),j!==R.iM.ColorBurn&&j!==R.iM.VividLight||se.code.add(Z.H`float colorBurn(in float cb, in float cl) { -return (cb == 1.0) ? 1.0 : (cl == 0.0) ? 0.0 : 1.0 - min(1.0, (1.0 - cb) / cl); -}`),j===R.iM.Overlay&&se.code.add(Z.H`float overlay(in float cb, in float cl) { -return (1.0 - step(0.5, cl)) * (1.0 - 2.0 * (1.0 - cl ) * (1.0 - cb)) + step(0.5, cl) * (2.0 * cl * cb); -}`),j===R.iM.HardLight&&se.code.add(Z.H`float hardLight(in float cb, in float cl) { -return (1.0 - step(0.5, cl)) * (2.0 * cl * cb) + step(0.5, cl) * (1.0 - 2.0 * (1.0 - cl) * (1.0 - cb)); -}`),j===R.iM.SoftLight&&se.code.add(Z.H`float softLight(in float cb, in float cl) { -if (cl <= 0.5) { -return cb - (1.0 - 2.0 * cl) * cb * (1.0 - cb); -} -if (cb <= 0.25) { -return cb + (2.0 * cl - 1.0) * cb * ((16.0 * cb - 12.0) * cb + 3.0); -} -return cb + (2.0 * cl - 1.0) * (sqrt(cb) - cb); -}`),j===R.iM.VividLight&&se.code.add(Z.H`float vividLight(in float cb, in float cl) { -return (1.0 - step(0.5, cl)) * colorBurn(cb, 2.0 * cl) + step(0.5, cl) * colorDodge(cb, (2.0 * (cl - 0.5))); -}`),j!==R.iM.Hue&&j!==R.iM.Saturation&&j!==R.iM.Color&&j!==R.iM.Luminosity||(se.code.add(Z.H`float minv3(in vec3 c) { -return min(min(c.r, c.g), c.b); -} -float maxv3(in vec3 c) { -return max(max(c.r, c.g), c.b); -} -float lumv3(in vec3 c) { -return dot(c, vec3(0.3, 0.59, 0.11)); -} -vec3 clipColor(vec3 color) { -float lum = lumv3(color); -float mincol = minv3(color); -float maxcol = maxv3(color); -if (mincol < 0.0) { -color = lum + ((color - lum) * lum) / (lum - mincol); -} -if (maxcol > 1.0) { -color = lum + ((color - lum) * (1.0 - lum)) / (maxcol - lum); -} -return color; -} -vec3 setLum(vec3 cbase, vec3 clum) { -return clipColor(cbase + vec3(lumv3(clum) - lumv3(cbase))); -}`),j!==R.iM.Hue&&j!==R.iM.Saturation||se.code.add(Z.H`float satv3(vec3 c) { -return maxv3(c) - minv3(c); -} -vec3 setLumSat(vec3 cbase, vec3 csat, vec3 clum) -{ -float minbase = minv3(cbase); -float sbase = satv3(cbase); -float ssat = satv3(csat); -return setLum(sbase > 0.0 ? (cbase - minbase) * ssat / sbase : vec3(0.0), clum); -}`)),se.code.add(Z.H` - vec4 applyBlendMode(vec3 cl, float ol, vec3 cb, float ob) { - ${j===R.iM.Multiply?Z.H`return vec4(cl * ol * cb * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Average?Z.H`return vec4((cb + cl) * 0.5 * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Lighten?Z.H`return vec4(max(cb, cl) * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Darken?Z.H`return vec4(min(cl, cb) * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Lighter?Z.H`return vec4(cl * ol + cb * ob, ol + ob);`:j===R.iM.Plus?Z.H`return clamp(vec4(cl.rgb + cb.rgb, ol + ob), 0.0, 1.0);`:j===R.iM.Minus?Z.H`return vec4(clamp(vec3(cb.rgb - cl.rgb), 0.0, 1.0), ob * ol);`:j===R.iM.Screen?Z.H`return vec4((cl + cb - cl * cb) * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Difference?Z.H`return vec4(abs(cb - cl) * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Invert?Z.H`return vec4((1.0 - cb) * ol * ob + cb * ob * (1.0 - ol), ob);`:j===R.iM.DestinationOver?Z.H`return vec4(cl * ol * (1.0 - ob) + cb * ob, ol + ob - ol * ob);`:j===R.iM.DestinationAtop?Z.H`return vec4(cl * ol * (1.0 - ob) + cb * ob * ol, ol);`:j===R.iM.DestinationOut?Z.H`return vec4(cb * ob * (1.0 - ol), ob * (1.0 - ol));`:j===R.iM.SourceAtop?Z.H`return vec4(cl * ol * ob + cb * ob * (1.0 - ol), ob);`:j===R.iM.SourceOut?Z.H`return vec4(cl * ol * (1.0 - ob), ol * (1.0 - ob));`:j===R.iM.Xor?Z.H`return vec4(cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), ol * (1.0 - ob) + ob * (1.0 - ol));`:j===R.iM.DestinationIn?Z.H`return vec4(cb * ob * ol, ol * ob);`:j===R.iM.SourceIn?Z.H`return vec4(cl * ol * ob, ol * ob);`:j===R.iM.Hue?Z.H` - vec3 f = setLumSat(cl, cb, cb); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Saturation?Z.H` - vec3 f = setLumSat(cb, cl, cb); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Color?Z.H` - vec3 f = setLum(cl, cb); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Luminosity?Z.H` - vec3 f = setLum(cb, cl); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Exclusion?Z.H` - vec3 f = cl + cb - 2.0 * cl * cb; - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Reflect?Z.H` - vec3 f = vec3(reflectBlend(cb.r, cl.r), reflectBlend(cb.g, cl.g), reflectBlend(cb.b, cl.b)); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.ColorDodge?Z.H` - vec3 f = vec3(colorDodge(cb.r, cl.r), colorDodge(cb.g, cl.g), colorDodge(cb.b, cl.b)); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.ColorBurn?Z.H` - vec3 f = vec3(colorBurn(cb.r, cl.r), colorBurn(cb.g, cl.g), colorBurn(cb.b, cl.b)); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.Overlay?Z.H` - vec3 f = vec3(overlay(cb.r, cl.r), overlay(cb.g, cl.g), overlay(cb.b, cl.b)); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.SoftLight?Z.H` - vec3 f = vec3(softLight(cb.r, cl.r), softLight(cb.g, cl.g), softLight(cb.b, cl.b)); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.HardLight?Z.H` - vec3 f = vec3(hardLight(cb.r, cl.r), hardLight(cb.g, cl.g), hardLight(cb.b, cl.b)); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:j===R.iM.VividLight?Z.H` - vec3 f = vec3(vividLight(cb.r, cl.r), vividLight(cb.g, cl.g), vividLight(cb.b, cl.b)); - return vec4(f * ol * ob + cl * ol * (1.0 - ob) + cb * ob * (1.0 - ol), mix(ob, 1.0, ol));`:Z.H``} - } - `))}var te,ae,oe,se,$=v(43177),W=v(97139),B=v(65787),H=v(35387),X=v(19755);function de(se,re){const j=re.output===te.GridComposite,Y=re.output===te.ColorComposite,ee=re.output===te.GroupBackgroundComposite,ie=re.output===te.Composite;j&&(se.extensions.add("GL_OES_standard_derivatives"),se.fragment.include(G.H)),Y&&se.fragment.uniforms.add(new W.J("backgroundColor",pe=>pe.backgroundColor));const J=re.baseOpacityMode===ae.Required;J&&se.fragment.uniforms.add(new B.p("baseOpacity",pe=>pe.baseOpacity)),ie&&se.fragment.uniforms.add((0,H.J)("fboColor",he=>he.fboTexture,re.hasWebGL2Context?X.D.None:X.D.InvSize));const ce=re.blendMode!==R.iM.Normal,ue=re.premultipliedSource===oe.On;se.fragment.include(Q,re),se.fragment.code.add(Z.H` - vec4 getBackground(vec2 uv) { - return ${J?Z.H`baseOpacity *`:""} ${ee?Z.H`vec4(0.0, 0.0, 0.0, 0.0)`:Y?Z.H`vec4(backgroundColor, 1.0)`:j?Z.H`gridColor(uv)`:Z.H`${(0,$.b6)(re,"fboColor","gl_FragCoord.xy")}`}; - } - - vec4 blendLayers(vec4 bgColor, vec4 colorLayer, float opacity) { - ${ce?Z.H` - vec3 Cb = bgColor.a == 0.0 ? bgColor.rgb : vec3(bgColor.rgb * bgColor.a); - return applyBlendMode(colorLayer.rgb, colorLayer.a * opacity, Cb, bgColor.a);`:Z.H` - vec4 pmColorLayer = vec4(colorLayer.xyz, 1.0); - float composeAlpha = colorLayer.a * opacity; - return ${ue?Z.H`bgColor * (1.0 - composeAlpha) + colorLayer * opacity;`:ie&&!J||ee?Z.H`pmColorLayer * composeAlpha;`:Z.H`mix(bgColor, pmColorLayer, composeAlpha);`}`} - }`)}(se=te||(te={}))[se.Composite=0]="Composite",se[se.ColorComposite=1]="ColorComposite",se[se.GridComposite=2]="GridComposite",se[se.GroupBackgroundComposite=3]="GroupBackgroundComposite",se[se.COUNT=4]="COUNT",function(se){se[se.NotRequired=0]="NotRequired",se[se.Required=1]="Required",se[se.COUNT=2]="COUNT"}(ae||(ae={})),function(se){se[se.Off=0]="Off",se[se.On=1]="On",se[se.COUNT=2]="COUNT"}(oe||(oe={}))},87633:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{R:()=>D}),(R=D||(D={}))[R.LayerOnly=0]="LayerOnly",R[R.ColorComposite=1]="ColorComposite",R[R.GridComposite=2]="GridComposite",R[R.COUNT=3]="COUNT"},14273:(nt,Ae,v)=>{"use strict";v.d(Ae,{R:()=>$,T:()=>W});var D=v(99770),R=v(95285),G=v(65787),Z=v(17625),Q=v(16396);class $ extends Z.K{constructor(){super(...arguments),this.scale=1,this.offset=D.Z}}function W(B){B.attributes.add(Q.T.POSITION,"vec2"),B.attributes.add(Q.T.UV0,"vec2"),B.vertex.uniforms.add(new G.p("scale",H=>H.scale)),B.vertex.uniforms.add(new R.A("offset",H=>H.offset)),B.varyings.add("uv","vec2"),B.varyings.add("vuv","vec2"),B.vertex.code.add(Z.H`void main(void) { -gl_Position = vec4(position, 0.0, 1.0); -uv = uv0 * scale + offset; -vuv = uv0; -}`)}},67022:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>D,b:()=>R});const D=.1,R=.001},93609:(nt,Ae,v)=>{"use strict";v.d(Ae,{o:()=>W,z:()=>$});var D=v(49480),R=v(2163),G=v(65787),Z=v(17625),Q=v(42743);function $(H,X){B(H,X,new G.p("textureAlphaCutoff",te=>te.textureAlphaCutoff))}function W(H,X){B(H,X,new R.p("textureAlphaCutoff",te=>te.textureAlphaCutoff))}function B(H,X,te){const ae=H.fragment;switch(X.alphaDiscardMode!==Q.JJ.Mask&&X.alphaDiscardMode!==Q.JJ.MaskBlend||ae.uniforms.add(te),X.alphaDiscardMode){case Q.JJ.Blend:return H.include(D.f);case Q.JJ.Opaque:ae.code.add(Z.H`void discardOrAdjustAlpha(inout vec4 color) { -color.a = 1.0; -}`);break;case Q.JJ.Mask:ae.code.add(Z.H`#define discardOrAdjustAlpha(color) { if (color.a < textureAlphaCutoff) { discard; } else { color.a = 1.0; } }`);break;case Q.JJ.MaskBlend:H.fragment.code.add(Z.H`#define discardOrAdjustAlpha(color) { if (color.a < textureAlphaCutoff) { discard; } }`)}}},39832:(nt,Ae,v)=>{"use strict";v.d(Ae,{G:()=>B,R:()=>te});var D=v(67831),R=v(99770),G=v(993),Z=v(4794),Q=v(95285),$=v(69960),W=v(17625);function B(oe){oe.fragment.uniforms.add(new $.N("projInfo",(le,de)=>function H(oe){const le=oe.camera.projectionMatrix;return 0===le[11]?(0,G.s)(X,2/(oe.camera.fullWidth*le[0]),2/(oe.camera.fullHeight*le[5]),(1+le[12])/le[0],(1+le[13])/le[5]):(0,G.s)(X,-2/(oe.camera.fullWidth*le[0]),-2/(oe.camera.fullHeight*le[5]),(1-le[8])/le[0],(1-le[9])/le[5])}(de))),oe.fragment.uniforms.add(new Q.A("zScale",(le,de)=>te(de))),oe.fragment.code.add(W.H`vec3 reconstructPosition(vec2 fragCoord, float depth) { -return vec3((fragCoord * projInfo.xy + projInfo.zw) * (zScale.x * depth + zScale.y), depth); -}`)}const X=(0,Z.c)();function te(oe){return 0===oe.camera.projectionMatrix[11]?(0,D.s)(ae,0,1):(0,D.s)(ae,1,0)}const ae=(0,R.a)()},69602:(nt,Ae,v)=>{"use strict";v.d(Ae,{j:()=>de});var D=v(21286),R=v(62208),G=v(94425),Z=v(12015),Q=v(75583),$=v(31166),W=v(78038),B=v(97139),H=v(65787),X=v(17625),te=v(63123),ae=v(85930),oe=v(37847);class le extends ae.x{constructor(re,j){super(re,"samplerCube",oe.P.Pass,(Y,ee,ie)=>Y.bindTexture(re,j(ee,ie)))}}function de(se){const re=se.fragment;re.uniforms.add([new te.g("rotationMatrixClouds",(j,Y)=>Y.cloudsFade.parallax.transform),new te.g("rotationMatrixCloudsCrossFade",(j,Y)=>Y.cloudsFade.parallaxNew.transform),new B.J("anchorPosition",(j,Y)=>Y.cloudsFade.parallax.anchorPointClouds),new B.J("anchorPositionCrossFade",(j,Y)=>Y.cloudsFade.parallaxNew.anchorPointClouds),new H.p("cloudsHeight",(j,Y)=>Y.cloudsFade.parallax.cloudsHeight),new H.p("radiusCurvatureCorrectionFactor",(j,Y)=>Y.cloudsFade.parallax.radiusCurvatureCorrectionFactor),new H.p("totalFadeInOut",(j,Y)=>Y.cloudsFade.fadeInOut.stage===Z.co.FINISHED?Y.cloudsFade.fadeInOutHeight.factor+1-Y.cloudsFade.fadeIn.factor:Y.cloudsFade.fadeInOutHeight.factor+1-Y.cloudsFade.fadeInOut.factor),new H.p("crossFadeAnchorFactor",(j,Y)=>(0,D.uZ)(Y.cloudsFade.crossFade.factor,0,1)),new le("cubeMap",(j,Y)=>(0,R.pC)(Y.cloudsFade.data)&&(0,R.pC)(Y.cloudsFade.data.cubeMap)?Y.cloudsFade.data.cubeMap.colorTexture:null),new W.U("crossFade",(j,Y)=>Y.cloudsFade.crossFade.enabled),new W.U("readChannelsRG",(j,Y)=>Y.cloudsFade.readChannels===Q.uz.RG),new W.U("fadeTextureChannels",(j,Y)=>Y.cloudsFade.renderingStage===Q.jL.FADING_TEXTURE_CHANNELS)]),re.constants.add("planetRadius","float",G.sv.radius),re.code.add(X.H`vec3 intersectWithCloudLayer(vec3 dir, vec3 cameraPosition, vec3 spherePos) -{ -float radiusClouds = planetRadius + cloudsHeight; -float B = 2.0 * dot(cameraPosition, dir); -float C = dot(cameraPosition, cameraPosition) - radiusClouds * radiusClouds; -float det = B * B - 4.0 * C; -float pointIntDist = max(0.0, 0.5 *(-B + sqrt(det))); -vec3 intersectionPont = cameraPosition + dir * pointIntDist; -intersectionPont = intersectionPont - spherePos; -return intersectionPont; -}`),re.code.add(X.H`vec3 correctForPlanetCurvature(vec3 dir) -{ -dir.z = dir.z*(1.-radiusCurvatureCorrectionFactor) + radiusCurvatureCorrectionFactor; -return dir; -}`),re.code.add(X.H`vec3 rotateDirectionToAnchorPoint(mat4 rotMat, vec3 inVec) -{ -return (rotMat * vec4(inVec, 0.0)).xyz; -}`),(0,$.Pe)(re),(0,$.F1)(re),re.code.add(X.H`const float SUNSET_TRANSITION_FACTOR = 0.3; -const vec3 RIM_COLOR = vec3(0.28, 0.175, 0.035); -const float RIM_SCATTERING_FACTOR = 140.0; -const float BACKLIGHT_FACTOR = 0.2; -const float BACKLIGHT_SCATTERING_FACTOR = 10.0; -const float BACKLIGHT_TRANSITION_FACTOR = 0.3; -vec3 calculateCloudColor(vec3 cameraPosition, vec3 worldSpaceRay, vec4 clouds) -{ -float upDotLight = dot(normalize(cameraPosition), normalize(mainLightDirection)); -float dirDotLight = max(dot(normalize(-worldSpaceRay), normalize(mainLightDirection)), 0.0); -float sunsetTransition = clamp(pow(max(upDotLight, 0.0), SUNSET_TRANSITION_FACTOR), 0.0, 1.0); -vec3 ambientLight = calculateAmbientIrradiance(normalize(cameraPosition), 0.0); -vec3 mainLight = evaluateMainLighting(normalize(cameraPosition), 0.0); -vec3 combinedLight = clamp((mainLightIntensity + ambientLight )/PI, vec3(0.0), vec3(1.0)); -vec3 baseCloudColor = pow(combinedLight * pow(clouds.xyz, vec3(GAMMA)), vec3(INV_GAMMA)); -float scatteringMod = max(clouds.a < 0.5 ? clouds.a / 0.5 : - clouds.a / 0.5 + 2.0, 0.0); -float rimLightIntensity = 0.5 + 0.5 *pow(max(upDotLight, 0.0), 0.35); -vec3 directSunScattering = RIM_COLOR * rimLightIntensity * (pow(dirDotLight, RIM_SCATTERING_FACTOR)) * scatteringMod; -float additionalLight = BACKLIGHT_FACTOR * pow(dirDotLight, BACKLIGHT_SCATTERING_FACTOR) * (1. - pow(sunsetTransition, BACKLIGHT_TRANSITION_FACTOR)) ; -return vec3(baseCloudColor * (1. + additionalLight) + directSunScattering); -}`),re.code.add(X.H`vec4 getCloudData(vec3 rayDir, bool readOtherChannel) -{ -vec4 cloudData = textureCube(cubeMap, rayDir); -float mu = dot(rayDir, vec3(0, 0, 1)); -bool readChannels = readChannelsRG ^^ readOtherChannel; -if (readChannels) { -cloudData = vec4(vec3(cloudData.r), cloudData.g); -} else { -cloudData = vec4(vec3(cloudData.b), cloudData.a); -} -if (length(cloudData) == 0.0) { -return vec4(cloudData.rgb, 1.0); -} -return cloudData; -}`),re.code.add(X.H`vec4 renderCloudsNoFade(vec3 worldRay, vec3 cameraPosition) -{ -vec3 intersectionPoint = intersectWithCloudLayer(normalize(worldRay), cameraPosition, anchorPosition); -vec3 worldRayRotated = rotateDirectionToAnchorPoint(rotationMatrixClouds, normalize(intersectionPoint)); -vec3 worldRayRotatedCorrected = correctForPlanetCurvature(worldRayRotated); -vec4 cloudData = getCloudData(worldRayRotatedCorrected, false); -float totalTransmittance = clamp(cloudData.a * (1.0 - totalFadeInOut) + totalFadeInOut, 0.0 , 1.0); -if (length(cloudData.rgb) == 0.0) { -totalTransmittance = 1.0; -} -return vec4(calculateCloudColor(cameraPosition, normalize(-worldRay), cloudData), totalTransmittance); -}`),re.code.add(X.H`vec4 renderCloudsCrossFade(vec3 worldRay, vec3 cameraPosition) -{ -vec3 intersectionPoint = intersectWithCloudLayer(normalize(worldRay), cameraPosition, anchorPosition); -vec3 worldRayRotated = rotateDirectionToAnchorPoint(rotationMatrixClouds, normalize(intersectionPoint)); -vec3 worldRayRotatedCorrected = correctForPlanetCurvature(worldRayRotated); -vec4 cloudData = getCloudData(worldRayRotatedCorrected, false); -vec4 cloudColor = vec4(calculateCloudColor(cameraPosition, normalize(-worldRay), cloudData), cloudData.a); -intersectionPoint = intersectWithCloudLayer(normalize(worldRay), cameraPosition, anchorPositionCrossFade); -worldRayRotated = rotateDirectionToAnchorPoint(rotationMatrixCloudsCrossFade, normalize(intersectionPoint)); -worldRayRotatedCorrected = correctForPlanetCurvature(worldRayRotated); -cloudData = getCloudData(worldRayRotatedCorrected, fadeTextureChannels); -vec4 cloudColorCrossFade = vec4(calculateCloudColor(cameraPosition, normalize(-worldRay), cloudData), cloudData.a); -cloudColor = mix(cloudColor, cloudColorCrossFade, crossFadeAnchorFactor); -float totalTransmittance = clamp(cloudColor.a * (1.0 - totalFadeInOut) + totalFadeInOut, 0.0 , 1.0); -if (length(cloudColor.rgb) == 0.0) { -totalTransmittance = 1.0; -} -return vec4(cloudColor.rgb, totalTransmittance); -}`),re.code.add(X.H`vec4 renderClouds(vec3 worldRay, vec3 cameraPosition) -{ -return crossFade ? renderCloudsCrossFade(worldRay, cameraPosition) : renderCloudsNoFade(worldRay, cameraPosition); -}`)}},33726:(nt,Ae,v)=>{"use strict";v.d(Ae,{Y:()=>R});var D=v(17625);function R(G){G.code.add(D.H`vec4 premultiplyAlpha(vec4 v) { -return vec4(v.rgb * v.a, v.a); -} -vec3 rgb2hsv(vec3 c) { -vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0); -vec4 p = c.g < c.b ? vec4(c.bg, K.wz) : vec4(c.gb, K.xy); -vec4 q = c.r < p.x ? vec4(p.xyw, c.r) : vec4(c.r, p.yzx); -float d = q.x - min(q.w, q.y); -float e = 1.0e-10; -return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), min(d / (q.x + e), 1.0), q.x); -} -vec3 hsv2rgb(vec3 c) { -vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); -vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www); -return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); -} -float rgb2v(vec3 c) { -return max(c.x, max(c.y, c.z)); -}`)}},49480:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>G});var D=v(67022),R=v(17625);function G(Z){Z.fragment.code.add(R.H` - #define discardOrAdjustAlpha(color) { if (color.a < ${R.H.float(D.b)}) { discard; } } - `)}},7228:(nt,Ae,v)=>{"use strict";v.d(Ae,{$:()=>G,I:()=>Z});var D=v(8314),R=v(17625);function G({code:Q},$){Q.add($.doublePrecisionRequiresObfuscation?R.H`vec3 dpPlusFrc(vec3 a, vec3 b) { -return mix(a, a + b, vec3(notEqual(b, vec3(0)))); -} -vec3 dpMinusFrc(vec3 a, vec3 b) { -return mix(vec3(0), a - b, vec3(notEqual(a, b))); -} -vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) { -vec3 t1 = dpPlusFrc(hiA, hiB); -vec3 e = dpMinusFrc(t1, hiA); -vec3 t2 = dpMinusFrc(hiB, e) + dpMinusFrc(hiA, dpMinusFrc(t1, e)) + loA + loB; -return t1 + t2; -}`:R.H`vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) { -vec3 t1 = hiA + hiB; -vec3 e = t1 - hiA; -vec3 t2 = ((hiB - e) + (hiA - (t1 - e))) + loA + loB; -return t1 + t2; -}`)}function Z(Q){return!!(0,D.Z)("force-double-precision-obfuscation")||Q.driverTest.doublePrecisionRequiresObfuscation}},22799:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>R,j:()=>G});var R,Z,D=v(37053);function G(Z){return Z&&(0,D.BZ)(Z)?R.Mars:Z&&(0,D.V2)(Z)?R.Moon:R.Earth}(Z=R||(R={}))[Z.Earth=1]="Earth",Z[Z.Mars=2]="Mars",Z[Z.Moon=3]="Moon",Z[Z.COUNT=4]="COUNT"},28137:(nt,Ae,v)=>{"use strict";v.d(Ae,{y:()=>Z});var D=v(9044),R=v(33726),G=v(17625);function Z(Q){Q.include(R.Y),Q.code.add(G.H` - vec3 mixExternalColor(vec3 internalColor, vec3 textureColor, vec3 externalColor, int mode) { - // workaround for artifacts in OSX using Intel Iris Pro - // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475 - vec3 internalMixed = internalColor * textureColor; - vec3 allMixed = internalMixed * externalColor; - - if (mode == ${G.H.int(D.a9.Multiply)}) { - return allMixed; - } - if (mode == ${G.H.int(D.a9.Ignore)}) { - return internalMixed; - } - if (mode == ${G.H.int(D.a9.Replace)}) { - return externalColor; - } - - // tint (or something invalid) - float vIn = rgb2v(internalMixed); - vec3 hsvTint = rgb2hsv(externalColor); - vec3 hsvOut = vec3(hsvTint.x, hsvTint.y, vIn * hsvTint.z); - return hsv2rgb(hsvOut); - } - - float mixExternalOpacity(float internalOpacity, float textureOpacity, float externalOpacity, int mode) { - // workaround for artifacts in OSX using Intel Iris Pro - // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475 - float internalMixed = internalOpacity * textureOpacity; - float allMixed = internalMixed * externalOpacity; - - if (mode == ${G.H.int(D.a9.Ignore)}) { - return internalMixed; - } - if (mode == ${G.H.int(D.a9.Replace)}) { - return externalOpacity; - } - - // multiply or tint (or something invalid) - return allMixed; - } - `)}},19278:(nt,Ae,v)=>{"use strict";v.d(Ae,{n:()=>R});var D=v(17625);function R(G){G.code.add(D.H`const float MAX_RGBA_FLOAT = -255.0 / 256.0 + -255.0 / 256.0 / 256.0 + -255.0 / 256.0 / 256.0 / 256.0 + -255.0 / 256.0 / 256.0 / 256.0 / 256.0; -const vec4 FIXED_POINT_FACTORS = vec4(1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0); -vec4 float2rgba(const float value) { -float valueInValidDomain = clamp(value, 0.0, MAX_RGBA_FLOAT); -vec4 fixedPointU8 = floor(fract(valueInValidDomain * FIXED_POINT_FACTORS) * 256.0); -const float toU8AsFloat = 1.0 / 255.0; -return fixedPointU8 * toU8AsFloat; -} -const vec4 RGBA_2_FLOAT_FACTORS = vec4( -255.0 / (256.0), -255.0 / (256.0 * 256.0), -255.0 / (256.0 * 256.0 * 256.0), -255.0 / (256.0 * 256.0 * 256.0 * 256.0) -); -float rgba2float(vec4 rgba) { -return dot(rgba, RGBA_2_FLOAT_FACTORS); -}`)}},71850:(nt,Ae,v)=>{"use strict";v.d(Ae,{cK:()=>Q,m8:()=>W,ww:()=>$});var D=v(993),R=v(4794),G=v(69960),Z=v(17625);function Q(X){X.vertex.code.add(Z.H`float screenSizePerspectiveMinSize(float size, vec4 factor) { -float nonZeroSize = 1.0 - step(size, 0.0); -return ( -factor.z * ( -1.0 + -nonZeroSize * -2.0 * factor.w / ( -size + (1.0 - nonZeroSize) -) -) -); -}`),X.vertex.code.add(Z.H`float screenSizePerspectiveViewAngleDependentFactor(float absCosAngle) { -return absCosAngle * absCosAngle * absCosAngle; -}`),X.vertex.code.add(Z.H`vec4 screenSizePerspectiveScaleFactor(float absCosAngle, float distanceToCamera, vec4 params) { -return vec4( -min(params.x / (distanceToCamera - params.y), 1.0), -screenSizePerspectiveViewAngleDependentFactor(absCosAngle), -params.z, -params.w -); -}`),X.vertex.code.add(Z.H`float applyScreenSizePerspectiveScaleFactorFloat(float size, vec4 factor) { -return max(mix(size * factor.x, size, factor.y), screenSizePerspectiveMinSize(size, factor)); -}`),X.vertex.code.add(Z.H`float screenSizePerspectiveScaleFloat(float size, float absCosAngle, float distanceToCamera, vec4 params) { -return applyScreenSizePerspectiveScaleFactorFloat( -size, -screenSizePerspectiveScaleFactor(absCosAngle, distanceToCamera, params) -); -}`),X.vertex.code.add(Z.H`vec2 applyScreenSizePerspectiveScaleFactorVec2(vec2 size, vec4 factor) { -return mix(size * clamp(factor.x, screenSizePerspectiveMinSize(size.y, factor) / max(1e-5, size.y), 1.0), size, factor.y); -}`),X.vertex.code.add(Z.H`vec2 screenSizePerspectiveScaleVec2(vec2 size, float absCosAngle, float distanceToCamera, vec4 params) { -return applyScreenSizePerspectiveScaleFactorVec2(size, screenSizePerspectiveScaleFactor(absCosAngle, distanceToCamera, params)); -}`)}function $(X){X.uniforms.add(new G.N("screenSizePerspective",te=>B(te.screenSizePerspective)))}function W(X){X.uniforms.add(new G.N("screenSizePerspectiveAlignment",te=>B(te.screenSizePerspectiveAlignment||te.screenSizePerspective)))}function B(X){return(0,D.s)(H,X.parameters.divisor,X.parameters.offset,X.parameters.minPixelSize,X.paddingPixelsOverride)}const H=(0,R.c)()},95267:(nt,Ae,v)=>{"use strict";v.d(Ae,{r:()=>R});var D=v(17625);function R(G){G.extensions.add("GL_EXT_shader_texture_lod"),G.extensions.add("GL_OES_standard_derivatives"),G.fragment.code.add(D.H`#ifndef GL_EXT_shader_texture_lod -float calcMipMapLevel(const vec2 ddx, const vec2 ddy) { -float deltaMaxSqr = max(dot(ddx, ddx), dot(ddy, ddy)); -return max(0.0, 0.5 * log2(deltaMaxSqr)); -} -#endif -vec4 textureAtlasLookup(sampler2D texture, vec2 textureSize, vec2 textureCoordinates, vec4 atlasRegion) { -vec2 atlasScale = atlasRegion.zw - atlasRegion.xy; -vec2 uvAtlas = fract(textureCoordinates) * atlasScale + atlasRegion.xy; -float maxdUV = 0.125; -vec2 dUVdx = clamp(dFdx(textureCoordinates), -maxdUV, maxdUV) * atlasScale; -vec2 dUVdy = clamp(dFdy(textureCoordinates), -maxdUV, maxdUV) * atlasScale; -#ifdef GL_EXT_shader_texture_lod -return texture2DGradEXT(texture, uvAtlas, dUVdx, dUVdy); -#else -vec2 dUVdxAuto = dFdx(uvAtlas); -vec2 dUVdyAuto = dFdy(uvAtlas); -float mipMapLevel = calcMipMapLevel(dUVdx * textureSize, dUVdy * textureSize); -float autoMipMapLevel = calcMipMapLevel(dUVdxAuto * textureSize, dUVdyAuto * textureSize); -return texture2D(texture, uvAtlas, mipMapLevel - autoMipMapLevel); -#endif -}`)}},2166:(nt,Ae,v)=>{"use strict";v.d(Ae,{Sv:()=>X,_8:()=>oe,hY:()=>H});var D=v(28347),R=v(55494),G=v(84161),Z=v(28093),Q=v(77739),$=v(97139),W=v(47205),B=v(63123);function H(le,de){de.instancedDoublePrecision?le.constants.add("cameraPosition","vec3",Z.Z):le.uniforms.add(new Q.B("cameraPosition",(se,re)=>(0,G.s)(ae,re.camera.viewInverseTransposeMatrix[3]-se.origin[0],re.camera.viewInverseTransposeMatrix[7]-se.origin[1],re.camera.viewInverseTransposeMatrix[11]-se.origin[2])))}function X(le,de){if(!de.instancedDoublePrecision)return void le.uniforms.add([new B.g("proj",(re,j)=>j.camera.projectionMatrix),new W.K("view",(re,j)=>(0,D.v)(te,j.camera.viewMatrix,re.origin)),new Q.B("localOrigin",re=>re.origin)]);const se=re=>(0,G.s)(ae,re.camera.viewInverseTransposeMatrix[3],re.camera.viewInverseTransposeMatrix[7],re.camera.viewInverseTransposeMatrix[11]);le.uniforms.add([new B.g("proj",(re,j)=>j.camera.projectionMatrix),new B.g("view",(re,j)=>(0,D.v)(te,j.camera.viewMatrix,se(j))),new $.J("localOrigin",(re,j)=>se(j))])}const te=(0,R.c)(),ae=(0,Z.c)();function oe(le){le.uniforms.add(new B.g("viewNormal",(de,se)=>se.camera.viewInverseTransposeMatrix))}},43177:(nt,Ae,v)=>{"use strict";v.d(Ae,{aU:()=>G,b6:()=>Q,o_:()=>R,w_:()=>Z});var D=v(17625);const R="Size",G="InvSize";function Z($,W,B=!1,H=0){if($.hasWebGL2Context){const X=D.H`vec2(textureSize(${W}, ${D.H.int(H)}))`;return B?"(1.0 / "+X+")":X}return B?W+G:W+R}function Q($,W,B,H=null,X=0){if($.hasWebGL2Context)return D.H`texelFetch(${W}, ivec2(${B}), ${D.H.int(X)})`;let te=D.H`texture2D(${W}, ${B} * `;return te+=H?D.H`(${H}))`:D.H`${W+G})`,te}},78038:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"bool",R.P.Pass,(W,B,H)=>W.setUniform1b(Q,$(B,H)))}}},32181:(nt,Ae,v)=>{"use strict";v.d(Ae,{q:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"vec2",R.P.Draw,(W,B,H,X)=>W.setUniform2fv(Q,$(B,H,X)))}}},95285:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"vec2",R.P.Pass,(W,B,H)=>W.setUniform2fv(Q,$(B,H)))}}},77739:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"vec3",R.P.Draw,(W,B,H,X)=>W.setUniform3fv(Q,$(B,H,X)))}}},97139:(nt,Ae,v)=>{"use strict";v.d(Ae,{J:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"vec3",R.P.Pass,(W,B,H)=>W.setUniform3fv(Q,$(B,H)))}}},90637:(nt,Ae,v)=>{"use strict";v.d(Ae,{$:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"vec4",R.P.Draw,(W,B,H)=>W.setUniform4fv(Q,$(B,H)))}}},69960:(nt,Ae,v)=>{"use strict";v.d(Ae,{N:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"vec4",R.P.Pass,(W,B,H)=>W.setUniform4fv(Q,$(B,H)))}}},48565:(nt,Ae,v)=>{"use strict";v.d(Ae,{b:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$,W){super(Q,"vec4",R.P.Pass,(B,H,X)=>B.setUniform4fv(Q,$(H,X)),W)}}},2163:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"float",R.P.Draw,(W,B,H)=>W.setUniform1f(Q,$(B,H)))}}},65787:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"float",R.P.Pass,(W,B,H)=>W.setUniform1f(Q,$(B,H)))}}},7090:(nt,Ae,v)=>{"use strict";v.d(Ae,{O:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$,W){super(Q,"float",R.P.Pass,(B,H,X)=>B.setUniform1fv(Q,$(H,X)),W)}}},18952:(nt,Ae,v)=>{"use strict";v.d(Ae,{_:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"int",R.P.Pass,(W,B,H)=>W.setUniform1i(Q,$(B,H)))}}},9546:(nt,Ae,v)=>{"use strict";v.d(Ae,{j:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"mat3",R.P.Draw,(W,B,H)=>W.setUniformMatrix3fv(Q,$(B,H)))}}},91574:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"mat3",R.P.Pass,(W,B,H)=>W.setUniformMatrix3fv(Q,$(B,H)))}}},47205:(nt,Ae,v)=>{"use strict";v.d(Ae,{K:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"mat4",R.P.Draw,(W,B,H)=>W.setUniformMatrix4fv(Q,$(B,H)))}}},63123:(nt,Ae,v)=>{"use strict";v.d(Ae,{g:()=>G});var D=v(85930),R=v(37847);class G extends D.x{constructor(Q,$){super(Q,"mat4",R.P.Pass,(W,B,H)=>W.setUniformMatrix4fv(Q,$(B,H)))}}},22355:(nt,Ae,v)=>{"use strict";v.d(Ae,{kG:()=>$});var D=v(26584),R=v(63290),G=v(62208);const Z=R.Z.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder");class Q{constructor(){this._includedModules=new Map}include(re,j){if(this._includedModules.has(re)){const Y=this._includedModules.get(re);if(Y!==j){Z.error("Trying to include shader module multiple times with different sets of options.");const ee=new Set;for(const ie of Object.keys(Y))Y[ie]!==re[ie]&&ee.add(ie);for(const ie of Object.keys(re))Y[ie]!==re[ie]&&ee.add(ie);ee.forEach(ie=>console.error(` ${ie}: current ${Y[ie]} new ${re[ie]}`))}}else this._includedModules.set(re,j),re(this.builder,j)}}class $ extends Q{constructor(){super(...arguments),this.vertex=new H,this.fragment=new H,this.attributes=new X,this.varyings=new te,this.extensions=new ae,this.constants=new oe}get fragmentUniforms(){return this.fragment.uniforms.entries}get builder(){return this}generate(re){const j=this.extensions.generateSource(re),Y=this.attributes.generateSource(re),ee=this.varyings.generateSource(),ie="vertex"===re?this.vertex:this.fragment,J=ie.uniforms.generateSource(),ce=ie.code.generateSource(),ue="vertex"===re?de:le,pe=this.constants.generateSource().concat(ie.constants.generateSource());return`\n${j.join("\n")}\n\n${ue}\n\n${pe.join("\n")}\n\n${J.join("\n")}\n\n${Y.join("\n")}\n\n${ee.join("\n")}\n\n${ce.join("\n")}`}generateBind(re,j){const Y=new Map;this.vertex.uniforms.entries.forEach(J=>{const ce=J.bind[re];(0,G.pC)(ce)&&Y.set(J.name,ce)}),this.fragment.uniforms.entries.forEach(J=>{const ce=J.bind[re];(0,G.pC)(ce)&&Y.set(J.name,ce)});const ee=Array.from(Y.values()),ie=ee.length;return(J,ce,ue)=>{for(let pe=0;pe(0,G.pC)(re.arraySize)?`uniform ${re.type} ${re.name}[${re.arraySize}];`:`uniform ${re.type} ${re.name};`)}get entries(){return Array.from(this._entries.values())}}class B{constructor(){this._entries=new Array}add(re){this._entries.push(re)}generateSource(){return this._entries}}class H extends Q{constructor(){super(...arguments),this.uniforms=new W,this.code=new B,this.constants=new oe}get builder(){return this}}class X{constructor(){this._entries=new Array}add(re,j){this._entries.push([re,j])}generateSource(re){return"fragment"===re?[]:this._entries.map(j=>`attribute ${j[1]} ${j[0]};`)}}class te{constructor(){this._entries=new Array}add(re,j){this._entries.push([re,j])}generateSource(){return this._entries.map(re=>`varying ${re[1]} ${re[0]};`)}}class ae{constructor(){this._entries=new Set}add(re){this._entries.add(re)}generateSource(re){const j="vertex"===re?ae.ALLOWLIST_VERTEX:ae.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter(Y=>j.includes(Y)).map(Y=>`#extension ${Y} : enable`)}}ae.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"],ae.ALLOWLIST_VERTEX=[];class oe{constructor(){this._entries=new Set}add(re,j,Y){let ee="ERROR_CONSTRUCTOR_STRING";switch(j){case"float":ee=oe._numberToFloatStr(Y);break;case"int":ee=oe._numberToIntStr(Y);break;case"bool":ee=Y.toString();break;case"vec2":ee=`vec2(${oe._numberToFloatStr(Y[0])}, ${oe._numberToFloatStr(Y[1])})`;break;case"vec3":ee=`vec3(${oe._numberToFloatStr(Y[0])}, ${oe._numberToFloatStr(Y[1])}, ${oe._numberToFloatStr(Y[2])})`;break;case"vec4":ee=`vec4(${oe._numberToFloatStr(Y[0])}, ${oe._numberToFloatStr(Y[1])}, ${oe._numberToFloatStr(Y[2])}, ${oe._numberToFloatStr(Y[3])})`;break;case"ivec2":ee=`ivec2(${oe._numberToIntStr(Y[0])}, ${oe._numberToIntStr(Y[1])})`;break;case"ivec3":ee=`ivec3(${oe._numberToIntStr(Y[0])}, ${oe._numberToIntStr(Y[1])}, ${oe._numberToIntStr(Y[2])})`;break;case"ivec4":ee=`ivec4(${oe._numberToIntStr(Y[0])}, ${oe._numberToIntStr(Y[1])}, ${oe._numberToIntStr(Y[2])}, ${oe._numberToIntStr(Y[3])})`;break;case"mat2":case"mat3":case"mat4":ee=`${j}(${Array.prototype.map.call(Y,ie=>oe._numberToFloatStr(ie)).join(", ")})`}return this._entries.add(`const ${j} ${re} = ${ee};`),this}static _numberToIntStr(re){return re.toFixed(0)}static _numberToFloatStr(re){return Number.isInteger(re)?re.toFixed(1):re.toString()}generateSource(){return Array.from(this._entries)}}const le="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp sampler2D;\n#else\n precision mediump float;\n precision mediump sampler2D;\n#endif",de="precision highp float;\nprecision highp sampler2D;"},5864:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>X,R:()=>H});var D=v(62208),R=v(67831),G=v(99770),Z=v(43177),Q=v(32181),$=v(19755),W=v(85930),B=v(37847);class H extends W.x{constructor(oe,le){super(oe,"sampler2D",B.P.Draw,(de,se,re)=>de.bindTexture(oe,le(se,re)))}}function X(ae,oe,le=$.D.None){const de=[new H(ae,oe)];return le&$.D.Size&&de.push(new Q.q(ae+Z.o_,(re,j)=>{const Y=oe(re,j);return(0,D.pC)(Y)?(0,R.s)(te,Y.descriptor.width,Y.descriptor.height):G.Z})),le&$.D.InvSize&&de.push(new Q.q(ae+Z.aU,(re,j)=>{const Y=oe(re,j);return(0,D.pC)(Y)?(0,R.s)(te,1/Y.descriptor.width,1/Y.descriptor.height):G.Z})),de}const te=(0,G.a)()},35387:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>H,J:()=>X});var D=v(62208),R=v(67831),G=v(99770),Z=v(43177),Q=v(95285),$=v(19755),W=v(85930),B=v(37847);class H extends W.x{constructor(oe,le){super(oe,"sampler2D",B.P.Pass,(de,se,re)=>de.bindTexture(oe,le(se,re)))}}function X(ae,oe,le=$.D.None){const de=[new H(ae,oe)];return le&$.D.Size&&de.push(new Q.A(ae+Z.o_,(re,j)=>{const Y=oe(re,j);return(0,D.pC)(Y)?(0,R.s)(te,Y.descriptor.width,Y.descriptor.height):G.Z})),le&$.D.InvSize&&de.push(new Q.A(ae+Z.aU,(re,j)=>{const Y=oe(re,j);return(0,D.pC)(Y)?(0,R.s)(te,1/Y.descriptor.width,1/Y.descriptor.height):G.Z})),de}const te=(0,G.a)()},19755:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{D:()=>D}),(R=D||(D={}))[R.None=0]="None",R[R.Size=1]="Size",R[R.InvSize=2]="InvSize"},85930:(nt,Ae,v)=>{"use strict";v.d(Ae,{x:()=>G});var D=v(62208),R=v(37847);class G{constructor(Q,$,W,B,H=null){this.name=Q,this.type=$,this.arraySize=H,this.bind={[R.P.Pass]:null,[R.P.Draw]:null},(0,D.pC)(W)&&(0,D.pC)(B)&&(this.bind[W]=B)}equals(Q){return this.type===Q.type&&this.name===Q.name&&this.arraySize===Q.arraySize}}},17625:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>R,K:()=>D});class D{}function R(G,...Z){let Q="";for(let $=0;${"use strict";var D,R;v.d(Ae,{P:()=>D}),(R=D||(D={}))[R.Pass=0]="Pass",R[R.Draw=1]="Draw"},651:(nt,Ae,v)=>{"use strict";v.d(Ae,{J:()=>R});var D=v(15861);class R{constructor(Z,Q){this._module=Z,this._loadModule=Q}get(){return this._module}reload(){var Z=this;return(0,D.Z)(function*(){return Z._module=yield Z._loadModule(),Z._module})()}}},91056:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>G});var D=v(62208),R=v(67969);class G{constructor(Q,$,W){this.release=W,this.initializeConfiguration(Q,$),this._configuration=$.snapshot(),this._program=this.initializeProgram(Q),this._pipeline=this.initializePipeline(Q.rctx.capabilities)}destroy(){this._program=(0,D.M2)(this._program),this._pipeline=this._configuration=null}reload(Q){(0,D.M2)(this._program),this._program=this.initializeProgram(Q),this._pipeline=this.initializePipeline(Q.rctx.capabilities)}get program(){return this._program}get compiled(){return this.program.isCompiled}get key(){return this._configuration.key}get configuration(){return this._configuration}bindPipelineState(Q,$=null,W){Q.setPipelineState(this.getPipelineState($,W))}ensureAttributeLocations(Q){this.program.assertCompatibleVertexAttributeLocations(Q)}get primitiveType(){return R.MX.TRIANGLES}getPipelineState(Q,$){return this._pipeline}initializeConfiguration(Q,$){}}},87601:(nt,Ae,v)=>{"use strict";v.d(Ae,{m:()=>D,o:()=>R});class D{constructor(){this._key="",this._keyDirty=!1,this._parameterBits=this._parameterBits?this._parameterBits.map(()=>0):[],this._parameterNames||(this._parameterNames=[])}get key(){return this._keyDirty&&(this._keyDirty=!1,this._key=String.fromCharCode.apply(String,this._parameterBits)),this._key}snapshot(){const Z=this._parameterNames,Q={key:this.key};for(const $ of Z)Q[$]=this[$];return Q}}function R(G={}){return(Z,Q)=>{if(Z._parameterNames=Z._parameterNames??[],Z._parameterNames.push(Q),null!=G.constValue)Object.defineProperty(Z,Q,{get:()=>G.constValue});else{const $=Z._parameterNames.length-1,B=Math.ceil(Math.log2(G.count||2)),H=Z._parameterBits??[0];let X=0;for(;H[X]+B>16;)X++,X>=H.length&&H.push(0);Z._parameterBits=H;const te=H[X],ae=(1<{"use strict";v.d(Ae,{M:()=>Q});var D=v(15861),R=v(62208),G=v(1101),Z=v(87601);class Q{constructor(X){this._context=X,this._perConstructorInstances=new G.r,this._frameCounter=0,this._keepAliveFrameCount=W}get viewingMode(){return this._context.viewingMode}get constructionContext(){return this._context}dispose(){this._perConstructorInstances.forEach(X=>X.forEach(te=>te.technique.destroy())),this._perConstructorInstances.clear()}acquire(X,te=B){const ae=te.key;let oe=this._perConstructorInstances.get(X,ae);if((0,R.Wi)(oe)){const le=new X(this._context,te,()=>this.release(le));oe=new $(le),this._perConstructorInstances.set(X,ae,oe)}return++oe.refCount,oe.technique}releaseAndAcquire(X,te,ae){if((0,R.pC)(ae)){if(te.key===ae.key)return ae;this.release(ae)}return this.acquire(X,te)}release(X){if((0,R.Wi)(X)||this._perConstructorInstances.empty)return;const te=this._perConstructorInstances.get(X.constructor,X.key);(0,R.Wi)(te)||(--te.refCount,0===te.refCount&&(te.refZeroFrame=this._frameCounter))}frameUpdate(){this._frameCounter++,this._keepAliveFrameCount!==W&&this._perConstructorInstances.forEach((X,te)=>{X.forEach((ae,oe)=>{0===ae.refCount&&ae.refZeroFrame+this._keepAliveFrameCount{const le=function(){var de=(0,D.Z)(function*(se,re){const j=re.shader;j&&(yield j.reload(),se.forEach(Y=>Y.technique.reload(X._context)))});return function(re,j){return de.apply(this,arguments)}}();te.push(le(ae,oe))}),yield Promise.all(te)})()}}class ${constructor(X){this.technique=X,this.refCount=0,this.refZeroFrame=0}}const W=-1,B=new Z.m},42836:(nt,Ae,v)=>{"use strict";v.d(Ae,{d:()=>R});var D=v(27422);class R{constructor(){this.enabled=!0,this._time=(0,D.HA)(0)}get time(){return this._time}advance(Z){return this._time!==Z.time&&(this._time=Z.time,!0)}}},2286:(nt,Ae,v)=>{"use strict";v.d(Ae,{TF:()=>D,Xn:()=>R,gT:()=>G});const D=Z=>class Q extends Z{constructor(){super(...arguments),this._isDisposed=!1}dispose(){for(const W of this._managedDisposables??[]){const B=this[W];this[W]=null,B&&"function"==typeof B.dispose&&B.dispose()}this._isDisposed=!0}get isDisposed(){return this._isDisposed}};class R extends(D(class{})){}function G(){return(Z,Q)=>{Z.hasOwnProperty("_managedDisposables")||(Z._managedDisposables=Z._managedDisposables?.slice()??[]),Z._managedDisposables?.unshift(Q)}}},13756:(nt,Ae,v)=>{"use strict";v.d(Ae,{fX:()=>Y,pk:()=>ie,$u:()=>le,_h:()=>de,$8:()=>ae});var D=v(15861),R=v(62208),G=v(54346);function Z(){if((0,R.Wi)(Q)){const ue=pe=>(0,G.V)(`esri/libs/basisu/${pe}`);Q=v.e(2405).then(v.bind(v,52405)).then(pe=>pe.b).then(({default:pe})=>pe({locateFile:ue}).then(he=>(he.initializeBasis(),delete he.then,he)))}return Q}let Q;var $,ue;(ue=$||($={}))[ue.ETC1_RGB=0]="ETC1_RGB",ue[ue.ETC2_RGBA=1]="ETC2_RGBA",ue[ue.BC1_RGB=2]="BC1_RGB",ue[ue.BC3_RGBA=3]="BC3_RGBA",ue[ue.BC4_R=4]="BC4_R",ue[ue.BC5_RG=5]="BC5_RG",ue[ue.BC7_M6_RGB=6]="BC7_M6_RGB",ue[ue.BC7_M5_RGBA=7]="BC7_M5_RGBA",ue[ue.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",ue[ue.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",ue[ue.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",ue[ue.ATC_RGB=11]="ATC_RGB",ue[ue.ATC_RGBA=12]="ATC_RGBA",ue[ue.FXT1_RGB=17]="FXT1_RGB",ue[ue.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",ue[ue.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",ue[ue.ETC2_EAC_R11=20]="ETC2_EAC_R11",ue[ue.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",ue[ue.RGBA32=13]="RGBA32",ue[ue.RGB565=14]="RGB565",ue[ue.BGR565=15]="BGR565",ue[ue.RGBA4444=16]="RGBA4444";var W=v(67969),B=v(55086),H=v(26906);let X=null,te=null;function ae(){return oe.apply(this,arguments)}function oe(){return(oe=(0,D.Z)(function*(){return(0,R.Wi)(te)&&(te=Z(),X=yield te),te})).apply(this,arguments)}function le(ue,pe){if((0,R.Wi)(X))return ue.byteLength;const he=new X.BasisFile(new Uint8Array(ue)),me=re(he)?se(he.getNumLevels(0),he.getHasAlpha(),he.getImageWidth(0,0),he.getImageHeight(0,0),pe):0;return he.close(),he.delete(),me}function de(ue,pe){if((0,R.Wi)(X))return ue.byteLength;const he=new X.KTX2File(new Uint8Array(ue)),me=j(he)?se(he.getLevels(),he.getHasAlpha(),he.getWidth(),he.getHeight(),pe):0;return he.close(),he.delete(),me}function se(ue,pe,he,me,ge){const _e=(0,H.RG)(pe?W.q_.COMPRESSED_RGBA8_ETC2_EAC:W.q_.COMPRESSED_RGB8_ETC2);return Math.ceil(he*me*_e*(ge&&ue>1?(4**ue-1)/(3*4**(ue-1)):1))}function re(ue){return ue.getNumImages()>=1&&!ue.isUASTC()}function j(ue){return ue.getFaces()>=1&&ue.isETC1S()}function Y(ue,pe,he){return ee.apply(this,arguments)}function ee(){return ee=(0,D.Z)(function*(ue,pe,he){(0,R.Wi)(X)&&(X=yield ae());const me=new X.BasisFile(new Uint8Array(he));if(!re(me))return null;me.startTranscoding();const ge=ce(ue,pe,me.getNumLevels(0),me.getHasAlpha(),me.getImageWidth(0,0),me.getImageHeight(0,0),(_e,Ee)=>me.getImageTranscodedSizeInBytes(0,_e,Ee),(_e,Ee,De)=>me.transcodeImage(De,0,_e,Ee,0,0));return me.close(),me.delete(),ge}),ee.apply(this,arguments)}function ie(ue,pe,he){return J.apply(this,arguments)}function J(){return J=(0,D.Z)(function*(ue,pe,he){(0,R.Wi)(X)&&(X=yield ae());const me=new X.KTX2File(new Uint8Array(he));if(!j(me))return null;me.startTranscoding();const ge=ce(ue,pe,me.getLevels(),me.getHasAlpha(),me.getWidth(),me.getHeight(),(_e,Ee)=>me.getImageTranscodedSizeInBytes(_e,0,0,Ee),(_e,Ee,De)=>me.transcodeImage(De,_e,0,0,Ee,0,-1,-1));return me.close(),me.delete(),ge}),J.apply(this,arguments)}function ce(ue,pe,he,me,ge,_e,Ee,De){const{compressedTextureETC:be,compressedTextureS3TC:Se}=ue.capabilities,[ye,ve]=be?me?[$.ETC2_RGBA,W.q_.COMPRESSED_RGBA8_ETC2_EAC]:[$.ETC1_RGB,W.q_.COMPRESSED_RGB8_ETC2]:Se?me?[$.BC3_RGBA,W.q_.COMPRESSED_RGBA_S3TC_DXT5_EXT]:[$.BC1_RGB,W.q_.COMPRESSED_RGB_S3TC_DXT1_EXT]:[$.RGBA32,W.VI.RGBA],xe=pe.hasMipmap?he:Math.min(1,he),ze=[];for(let Be=0;Be1,We=Ke?W.cw.LINEAR_MIPMAP_LINEAR:W.cw.LINEAR,Ce={...pe,samplingMode:We,hasMipmap:Ke,internalFormat:ve,width:ge,height:_e};return new B.x(ue,Ce,{type:"compressed",levels:ze})}},74202:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>B});var D=v(99770),R=v(12015),G=v(82793),Z=v(10109),Q=v(45867),$=v(5894),W=v(95279);class B{constructor(X,te,ae){this.shadowMap=X,this.ssaoHelper=te,this.slicePlane=ae,this.slot=$.r.OPAQUE_MATERIAL,this.hasOccludees=!1,this.enableFillLights=!0,this._inverseViewport=(0,D.a)(),this.oldLighting=new W.c,this.newLighting=new W.c,this._fadedLighting=new W.c,this._lighting=this.newLighting,this.ssr=new Q.O,this.multipassTerrain=new Z.a,this.multipassGeometry=new G._,this.overlays=[],this.cloudsFade=new R.ii}get camera(){return this._camera}set camera(X){this._camera=this.ssr.camera=X,this._inverseViewport[0]=1/X.fullViewport[2],this._inverseViewport[1]=1/X.fullViewport[3]}get inverseViewport(){return this._inverseViewport}get lighting(){return this._lighting}get weatherFading(){return this._lighting===this._fadedLighting}fadeLighting(X){const{oldLighting:te,newLighting:ae}=this;X>=1?this._lighting=ae:(this._fadedLighting.lerpLighting(te,ae,X),this._lighting=this._fadedLighting)}}},98565:(nt,Ae,v)=>{"use strict";v.d(Ae,{j:()=>Q});var D=v(77029),R=v(84161),G=v(28093),Z=v(2282);class Q{constructor(B,H,X,te){this.primitiveIndices=B,this._numIndexPerPrimitive=H,this.indices=X,this.position=te,this.center=(0,G.c)(),this._children=void 0,(0,Z.hu)(B.length>=1),(0,Z.hu)(X.length%this._numIndexPerPrimitive==0),(0,Z.hu)(X.length>=B.length*this._numIndexPerPrimitive),(0,Z.hu)(3===te.size||4===te.size);const{data:ae,size:oe}=te,le=B.length;let de=oe*X[this._numIndexPerPrimitive*B[0]];$.clear(),$.push(de),this.bbMin=(0,G.f)(ae[de],ae[de+1],ae[de+2]),this.bbMax=(0,G.a)(this.bbMin);for(let re=0;re1){const B=(0,R.h)((0,G.c)(),this.bbMin,this.bbMax,.5),H=this.primitiveIndices.length,X=new Uint8Array(H),te=new Array(8);for(let se=0;se<8;++se)te[se]=0;const{data:ae,size:oe}=this.position;for(let se=0;se0&&++le;if(le<2)return;const de=new Array(8);for(let se=0;se<8;++se)de[se]=te[se]>0?new Uint32Array(te[se]):void 0;for(let se=0;se<8;++se)te[se]=0;for(let se=0;se{"use strict";v.d(Ae,{N:()=>ue,V:()=>j});var D=v(63290),R=v(21286),G=v(62208),Z=v(23841),Q=v(28347),$=v(43703),W=v(67831),B=v(99770),H=v(84161),X=v(28093),te=v(993),ae=v(4794),oe=v(8834),le=v(70562),de=v(34054),se=v(59617),re=v(2282);class j{constructor(he=null,me=null,ge=null){this._viewUp=(0,X.c)(),this._viewForward=(0,X.c)(),this._viewRight=(0,X.c)(),this._ray=(0,le.Ue)(),this._viewport=(0,ae.f)(0,0,1,1),this._padding=(0,ae.f)(0,0,0,0),this._fov=55/180*Math.PI,this._nearFar=(0,B.f)(1,1e3),this._viewDirty=!0,this._viewMatrix=(0,$.c)(),this._projectionDirty=!0,this._projectionMatrix=(0,$.c)(),this._viewProjectionDirty=!0,this._viewProjectionMatrix=(0,$.c)(),this._viewInverseTransposeMatrixDirty=!0,this._viewInverseTransposeMatrix=(0,$.c)(),this._inverseProjectionDirty=!0,this._inverseProjectionMatrix=null,this._frustumDirty=!0,this._frustum=(0,oe.Ue)(),this._fullViewport=(0,ae.c)(),this._pixelRatio=1,this.relativeElevation=0,(0,G.pC)(he)&&(0,H.c)(this._ray.origin,he),this._center=(0,G.pC)(me)?(0,X.a)(me):(0,X.c)(),this._up=(0,G.pC)(ge)?(0,X.a)(ge):(0,X.f)(0,0,1)}get pixelRatio(){return this._pixelRatio}set pixelRatio(he){this._pixelRatio=he>0?he:1}get eye(){return this._ray.origin}set eye(he){this._compareAndSetView(he,this._ray.origin)}get center(){return this._center}set center(he){this._compareAndSetView(he,this._center)}get ray(){return(0,H.b)(this._ray.direction,this.center,this.eye),this._ray}get up(){return this._up}set up(he){this._compareAndSetView(he,this._up)}get viewMatrix(){return this._ensureViewClean(),this._viewMatrix}set viewMatrix(he){(0,Q.c)(this._viewMatrix,he),this._viewDirty=!1,this._viewInverseTransposeMatrixDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0}get viewForward(){return this._ensureViewClean(),this._viewForward}get viewUp(){return this._ensureViewClean(),this._viewUp}get viewRight(){return this._ensureViewClean(),this._viewRight}get nearFar(){return this._nearFar}get near(){return this._nearFar[0]}set near(he){this._nearFar[0]!==he&&(this._nearFar[0]=he,this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0)}get far(){return this._nearFar[1]}set far(he){this._nearFar[1]!==he&&(this._nearFar[1]=he,this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0)}get viewport(){return this._viewport}set viewport(he){this.x=he[0],this.y=he[1],this.width=he[2],this.height=he[3]}get x(){return this._viewport[0]}set x(he){this._viewport[0]!==(he+=this._padding[ue.LEFT])&&(this._viewport[0]=he,this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0)}get y(){return this._viewport[1]}set y(he){this._viewport[1]!==(he+=this._padding[ue.BOTTOM])&&(this._viewport[1]=he,this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0)}get width(){return this._viewport[2]}set width(he){this._viewport[2]!==he&&(this._viewport[2]=he,this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0)}get height(){return this._viewport[3]}set height(he){this._viewport[3]!==he&&(this._viewport[3]=he,this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0)}get fullWidth(){return this._viewport[2]+this._padding[ue.RIGHT]+this._padding[ue.LEFT]}set fullWidth(he){this.width=he-(this._padding[ue.RIGHT]+this._padding[ue.LEFT])}get fullHeight(){return this._viewport[3]+this._padding[ue.TOP]+this._padding[ue.BOTTOM]}set fullHeight(he){this.height=he-(this._padding[ue.TOP]+this._padding[ue.BOTTOM])}get fullViewport(){return this._fullViewport[0]=this._viewport[0]-this._padding[ue.LEFT],this._fullViewport[1]=this._viewport[1]-this._padding[ue.BOTTOM],this._fullViewport[2]=this.fullWidth,this._fullViewport[3]=this.fullHeight,this._fullViewport}get aspect(){return this.width/this.height}get padding(){return this._padding}set padding(he){this._padding[ue.TOP]===he[ue.TOP]&&this._padding[ue.RIGHT]===he[ue.RIGHT]&&this._padding[ue.BOTTOM]===he[ue.BOTTOM]&&this._padding[ue.LEFT]===he[ue.LEFT]||(this._viewport[0]+=he[ue.LEFT]-this._padding[ue.LEFT],this._viewport[1]+=he[ue.BOTTOM]-this._padding[ue.BOTTOM],this._viewport[2]-=he[ue.RIGHT]+he[ue.LEFT]-(this._padding[ue.RIGHT]+this._padding[ue.LEFT]),this._viewport[3]-=he[ue.TOP]+he[ue.BOTTOM]-(this._padding[ue.TOP]+this._padding[ue.BOTTOM]),(0,te.c)(this._padding,he),this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0)}get viewProjectionMatrix(){return this._viewProjectionDirty&&((0,Q.m)(this._viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),this._viewProjectionDirty=!1),this._viewProjectionMatrix}get projectionMatrix(){if(this._projectionDirty){const he=this.width,me=this.height,ge=this.near*Math.tan(this.fovY/2),_e=ge*this.aspect;(0,Q.p)(this._projectionMatrix,-_e*(1+2*this._padding[ue.LEFT]/he),_e*(1+2*this._padding[ue.RIGHT]/he),-ge*(1+2*this._padding[ue.BOTTOM]/me),ge*(1+2*this._padding[ue.TOP]/me),this.near,this.far),this._projectionDirty=!1}return this._projectionMatrix}get inverseProjectionMatrix(){return(0,G.Wi)(this._inverseProjectionMatrix)&&(this._inverseProjectionMatrix=(0,$.c)()),this._inverseProjectionDirty&&(0,Q.a)(this._inverseProjectionMatrix,this.projectionMatrix),this._inverseProjectionMatrix}set projectionMatrix(he){(0,Q.c)(this._projectionMatrix,he),this._projectionDirty=!1,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0}get fov(){return this._fov}set fov(he){this._fov=he,this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0}get fovX(){return(0,re.tM)(this._fov,this.width,this.height)}set fovX(he){this._fov=(0,re.Kj)(he,this.width,this.height),this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0}get fovY(){return(0,re.RQ)(this._fov,this.width,this.height)}set fovY(he){this._fov=(0,re.zF)(he,this.width,this.height),this._projectionDirty=!0,this._inverseProjectionDirty=!0,this._viewProjectionDirty=!0,this._frustumDirty=!0}get distance(){return(0,H.i)(this._center,this.eye)}get frustum(){return this._recomputeFrustum(),this._frustum}get viewInverseTransposeMatrix(){return(this._viewInverseTransposeMatrixDirty||this._viewDirty)&&((0,Q.a)(this._viewInverseTransposeMatrix,this.viewMatrix),(0,Q.t)(this._viewInverseTransposeMatrix,this._viewInverseTransposeMatrix),this._viewInverseTransposeMatrixDirty=!1),this._viewInverseTransposeMatrix}depthNDCToWorld(he){return 2*this.near*this.far/(this.far+this.near-(2*he-1)*(this.far-this.near))}get perRenderPixelRatio(){return Math.tan(this.fovX/2)/(this.width/2)}get perScreenPixelRatio(){return this.perRenderPixelRatio*this._pixelRatio}get aboveGround(){return null!=this.relativeElevation&&this.relativeElevation>=0}copyFrom(he){(0,H.c)(this._ray.origin,he.eye),(0,H.c)(this._center,he.center),(0,H.c)(this._up,he.up),(0,te.c)(this._viewport,he.viewport),(0,te.c)(this._padding,he.padding),(0,W.c)(this._nearFar,he.nearFar),this._fov=he.fov,this.relativeElevation=he.relativeElevation;const me=he;return this._viewDirty=me._viewDirty,this._viewDirty||((0,Q.c)(this._viewMatrix,he.viewMatrix),(0,H.c)(this._viewRight,he.viewRight),(0,H.c)(this._viewUp,he.viewUp),(0,H.c)(this._viewForward,he.viewForward)),me._projectionDirty?this._projectionDirty=!0:((0,Q.c)(this._projectionMatrix,he.projectionMatrix),this._projectionDirty=!1),this._viewProjectionDirty=!0,this._inverseProjectionDirty=!0,this._frustumDirty=me._frustumDirty,this._frustumDirty||((0,oe.JG)(this._frustum,he.frustum),this._frustumDirty=!1),me._viewInverseTransposeMatrixDirty?this._viewInverseTransposeMatrixDirty=!0:((0,Q.c)(this._viewInverseTransposeMatrix,he.viewInverseTransposeMatrix),this._viewInverseTransposeMatrixDirty=!1),(0,te.c)(this._fullViewport,he.fullViewport),this._pixelRatio=he.pixelRatio,this}copyViewFrom(he){this.eye=he.eye,this.center=he.center,this.up=he.up}clone(){return(new j).copyFrom(this)}equals(he){return(0,H.k)(this.eye,he.eye)&&(0,H.k)(this._center,he.center)&&(0,H.k)(this._up,he.up)&&(0,te.g)(this._viewport,he.viewport)&&(0,te.g)(this._padding,he.padding)&&(0,W.m)(this._nearFar,he.nearFar)&&this._fov===he.fov&&this._pixelRatio===he.pixelRatio&&this.relativeElevation===he.relativeElevation}almostEquals(he){if(this._pixelRatio!==he.pixelRatio||Math.abs(he.fov-this._fov)>=.001)return!1;(0,H.y)(ie,he.eye,he.center),(0,H.y)(J,this.eye,this._center);const _e=(0,H.e)(ie,J),Ee=(0,H.D)(ie),De=(0,H.D)(J);return _e*_e>=(1-1e-10)*Ee*De&&(0,H.E)(he.eye,this.eye)<5e-4*Math.max(Ee,De)*5e-4&&(0,te.i)(he.padding,this._padding)<.5&&(0,te.i)(he.viewport,this._viewport)<.5}computeRenderPixelSizeAt(he){return this.computeRenderPixelSizeAtDist(this._viewDirectionDistance(he))}computeRenderPixelSizeAtDist(he){return he*this.perRenderPixelRatio}computeScreenPixelSizeAt(he){return this.computeScreenPixelSizeAtDist(this._viewDirectionDistance(he))}_viewDirectionDistance(he){return Math.abs((0,de.SR)(this.viewForward,(0,H.b)(ie,he,this.eye)))}computeScreenPixelSizeAtDist(he){return he*this.perScreenPixelRatio}computeDistanceFromRadius(he,me){return he/Math.tan(Math.min(this.fovX,this.fovY)/(2*(me||1)))}getScreenCenter(he=(0,Z.s1)()){return he[0]=(this.padding[ue.LEFT]+this.width/2)/this._pixelRatio,he[1]=(this.padding[ue.TOP]+this.height/2)/this._pixelRatio,he}getRenderCenter(he,me=.5,ge=.5){return he[0]=this.padding[ue.LEFT]+this.width*me,he[1]=this.padding[ue.BOTTOM]+this.height*ge,he[2]=.5,he}setGLViewport(he){const me=this.viewport,ge=this.padding;he.setViewport(me[0]-ge[3],me[1]-ge[2],me[2]+ge[1]+ge[3],me[3]+ge[0]+ge[2])}applyProjection(he,me){he!==Y&&(0,H.c)(Y,he),Y[3]=1,(0,te.t)(Y,Y,this.projectionMatrix);const ge=Math.abs(Y[3]);(0,H.g)(Y,Y,1/ge);const _e=this.fullViewport;me[0]=(0,R.t7)(0,_e[0]+_e[2],.5+.5*Y[0]),me[1]=(0,R.t7)(0,_e[1]+_e[3],.5+.5*Y[1]),me[2]=.5*(Y[2]+1),me[3]=ge}unapplyProjection(he,me){const ge=this.fullViewport;Y[0]=(he[0]/(ge[0]+ge[2])*2-1)*he[3],Y[1]=(he[1]/(ge[1]+ge[3])*2-1)*he[3],Y[2]=(2*he[2]-1)*he[3],Y[3]=he[3],(0,te.t)(Y,Y,this.inverseProjectionMatrix),me[0]=Y[0],me[1]=Y[1],me[2]=Y[2]}projectToScreen(he,me){return this.projectToRenderScreen(he,ce),this.renderToScreen(ce,me),me}projectToRenderScreen(he,me){if(Y[0]=he[0],Y[1]=he[1],Y[2]=he[2],Y[3]=1,(0,te.t)(Y,Y,this.viewProjectionMatrix),0===Y[3])return null;(0,H.g)(Y,Y,1/Math.abs(Y[3]));const ge=this.fullViewport;return"x"in me?(me.x=(0,R.t7)(0,ge[0]+ge[2],.5+.5*Y[0]),me.y=(0,R.t7)(0,ge[1]+ge[3],.5+.5*Y[1])):(me[0]=(0,R.t7)(0,ge[0]+ge[2],.5+.5*Y[0]),me[1]=(0,R.t7)(0,ge[1]+ge[3],.5+.5*Y[1]),me.length>2&&(me[2]=.5*(Y[2]+1))),me}unprojectFromScreen(he,me){return this.unprojectFromRenderScreen(this.screenToRender(he,ce),me)}unprojectFromRenderScreen(he,me){if((0,Q.m)(ee,this.projectionMatrix,this.viewMatrix),!(0,Q.a)(ee,ee))return null;const ge=this.fullViewport;return Y[0]=2*(he[0]-ge[0])/ge[2]-1,Y[1]=2*(he[1]-ge[1])/ge[3]-1,Y[2]=2*he[2]-1,Y[3]=1,(0,te.t)(Y,Y,ee),0===Y[3]?null:(me[0]=Y[0]/Y[3],me[1]=Y[1]/Y[3],me[2]=Y[2]/Y[3],me)}constrainWindowSize(he,me,ge,_e=ge){const Ee=he*this._pixelRatio,De=me*this._pixelRatio,be=Math.max(Ee-ge/2,0),Se=Math.max(this.fullHeight-De-_e/2,0),ye=-Math.min(Ee-ge/2,0),ve=-Math.min(this.fullHeight-De-_e/2,0);return[be,Se,ge-ye- -Math.min(this.fullWidth-Ee-ge/2,0),_e-ve- -Math.min(De-_e/2,0)]}computeUp(he){he===se.JY.Global?this._computeUpGlobal():this._computeUpLocal()}screenToRender(he,me){const _e=this.fullHeight-he[1]*this._pixelRatio;return me[0]=he[0]*this._pixelRatio,me[1]=_e,me}renderToScreen(he,me){const _e=(this.fullHeight-he[1])/this._pixelRatio;me[0]=he[0]/this._pixelRatio,me[1]=_e}_computeUpGlobal(){(0,H.b)(ie,this.center,this.eye);const he=(0,H.l)(this.center);he<1?((0,H.s)(this._up,0,0,1),this._markViewDirty()):Math.abs((0,H.e)(ie,this.center))>.9999*(0,H.l)(ie)*he||((0,H.f)(this._up,ie,this.center),(0,H.f)(this._up,this._up,ie),(0,H.n)(this._up,this._up),this._markViewDirty())}_computeUpLocal(){(0,H.r)(ie,this.eye,this.center),Math.abs(ie[2])<=.9999&&((0,H.g)(ie,ie,ie[2]),(0,H.s)(this._up,-ie[0],-ie[1],1-ie[2]),(0,H.n)(this._up,this._up),this._markViewDirty())}_compareAndSetView(he,me){"number"==typeof he[0]&&isFinite(he[0])&&"number"==typeof he[1]&&isFinite(he[1])&&"number"==typeof he[2]&&isFinite(he[2])?(0,H.k)(he,me)||((0,H.c)(me,he),this._markViewDirty()):D.Z.getLogger("esri.views.3d.webgl-engine.lib.Camera").warn("Camera vector contains invalid number, ignoring value")}_markViewDirty(){this._viewDirty=!0,this._frustumDirty=!0,this._viewProjectionDirty=!0}_recomputeFrustum(){this._frustumDirty&&((0,oe.q_)(this.viewMatrix,this.projectionMatrix,this._frustum),this._frustumDirty=!1)}_ensureViewClean(){this._viewDirty&&((0,Q.q)(this._viewMatrix,this.eye,this._center,this._up),(0,H.s)(this._viewForward,-this._viewMatrix[2],-this._viewMatrix[6],-this._viewMatrix[10]),(0,H.s)(this._viewUp,this._viewMatrix[1],this._viewMatrix[5],this._viewMatrix[9]),(0,H.s)(this._viewRight,this._viewMatrix[0],this._viewMatrix[4],this._viewMatrix[8]),this._viewDirty=!1,this._viewInverseTransposeMatrixDirty=!0)}}const Y=(0,ae.c)(),ee=(0,$.c)(),ie=(0,X.c)(),J=(0,X.c)(),ce=(0,Z.J$)();var ue,pe;(pe=ue||(ue={}))[pe.TOP=0]="TOP",pe[pe.RIGHT=1]="RIGHT",pe[pe.BOTTOM=2]="BOTTOM",pe[pe.LEFT=3]="LEFT"},26594:(nt,Ae,v)=>{"use strict";v.d(Ae,{as:()=>R,t9:()=>Z});var D=v(77029);class R{constructor(){this.adds=new D.Z,this.removes=new D.Z,this.updates=new D.Z({allocator:$=>$||new G,deallocator:$=>($.renderGeometry=null,$)})}clear(){this.adds.clear(),this.removes.clear(),this.updates.clear()}prune(){this.adds.prune(),this.removes.prune(),this.updates.prune()}}class G{}class Z{constructor(){this.adds=new Array,this.removes=new Array,this.updates=new Array}}},12699:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>R});var D=v(86236);class R{constructor(){this.id=(0,D.D)()}unload(){}}},24425:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{U:()=>D}),(R=D||(D={}))[R.Layer=0]="Layer",R[R.Object=1]="Object",R[R.Geometry=2]="Geometry",R[R.Material=3]="Material",R[R.Texture=4]="Texture",R[R.COUNT=5]="COUNT"},39114:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>R});var D=v(16396);const R=new Map([[D.T.POSITION,0],[D.T.NORMAL,1],[D.T.UV0,2],[D.T.COLOR,3],[D.T.SIZE,4],[D.T.TANGENT,4],[D.T.AUXPOS1,5],[D.T.SYMBOLCOLOR,5],[D.T.AUXPOS2,6],[D.T.FEATUREATTRIBUTE,6],[D.T.INSTANCEFEATUREATTRIBUTE,6],[D.T.INSTANCECOLOR,7],[D.T.OBJECTANDLAYERIDCOLOR,7],[D.T.OBJECTANDLAYERIDCOLOR_INSTANCED,7],[D.T.MODEL,8],[D.T.MODELNORMAL,12],[D.T.MODELORIGINHI,11],[D.T.MODELORIGINLO,15]])},59631:(nt,Ae,v)=>{"use strict";v.d(Ae,{Bn:()=>H,QI:()=>B});var D=v(16396),R=v(67969),G=v(40852);new G.G(D.T.POSITION,3,R.g.FLOAT,0,12),new G.G(D.T.POSITION,3,R.g.FLOAT,0,20),new G.G(D.T.UV0,2,R.g.FLOAT,12,20),new G.G(D.T.POSITION,3,R.g.FLOAT,0,32),new G.G(D.T.NORMAL,3,R.g.FLOAT,12,32),new G.G(D.T.UV0,2,R.g.FLOAT,24,32),new G.G(D.T.POSITION,3,R.g.FLOAT,0,16),new G.G(D.T.COLOR,4,R.g.UNSIGNED_BYTE,12,16);const B=[new G.G(D.T.POSITION,2,R.g.FLOAT,0,8)],H=[new G.G(D.T.POSITION,2,R.g.FLOAT,0,16),new G.G(D.T.UV0,2,R.g.FLOAT,8,16)]},60881:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>R});var D=v(42743);class R{constructor(Z){this._material=Z.material,this._techniqueRepository=Z.techniqueRep,this._output=Z.output}dispose(){this._techniqueRepository.release(this._technique)}get technique(){return this._technique}get _stippleTextureRepository(){return this._techniqueRepository.constructionContext.stippleTextureRepository}ensureTechnique(Z,Q,$=this._output){return this._technique=this._techniqueRepository.releaseAndAcquire(Z,this._material.getConfiguration($,Q),this._technique),this._technique}ensureResources(Z){return D.Rw.LOADED}}},50907:(nt,Ae,v)=>{"use strict";v.d(Ae,{h:()=>Q});var D=v(63290),R=v(62208),G=v(1101),Z=v(2282);class Q{constructor(B,H,X,te){this._textureRepository=B,this._techniqueRepository=H,this.materialChanged=X,this.requestRender=te,this._id2glMaterialRef=new G.r}dispose(){this._textureRepository.dispose()}acquire(B,H,X){if(this._ownMaterial(B),!B.requiresSlot(H,X))return null;let te=this._id2glMaterialRef.get(X,B.id);if((0,R.Wi)(te)){const ae=B.createGLMaterial({material:B,techniqueRep:this._techniqueRepository,textureRep:this._textureRepository,output:X});te=new $(ae),this._id2glMaterialRef.set(X,B.id,te)}return te.ref(),te.glMaterial}release(B,H){const X=this._id2glMaterialRef.get(H,B.id);(0,R.pC)(X)&&(X.unref(),X.referenced||((0,R.M2)(X.glMaterial),this._id2glMaterialRef.delete(H,B.id)))}_ownMaterial(B){(0,R.pC)(B.repository)&&B.repository!==this&&D.Z.getLogger("esri.views.3d.webgl-engine.lib.GLMaterialRepository").error("Material is already owned by a different material repository"),B.repository=this}}class ${constructor(B){this.glMaterial=B,this._refCnt=0}ref(){++this._refCnt}unref(){--this._refCnt,(0,Z.hu)(this._refCnt>=0)}get referenced(){return this._refCnt>0}}},32393:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>G});var D=v(62208),R=v(42743);class G{constructor(Q,$){this._material=Q,this._repository=$,this._map=new Map}destroy(){this._map.forEach((Q,$)=>{(0,D.pC)(Q)&&this._repository.release(this._material,$)})}load(Q,$,W){if(!this._material.requiresSlot($,W))return null;this._map.has(W)||this._map.set(W,this._repository.acquire(this._material,$,W));const B=this._map.get(W);if((0,D.pC)(B)){if(B.ensureResources(Q)===R.Rw.LOADED)return B;this._repository.requestRender()}return null}}},33470:(nt,Ae,v)=>{"use strict";v.d(Ae,{E:()=>W,F:()=>$});var D=v(62208),R=v(10699),G=v(17625),Z=v(42743),Q=v(60881);class $ extends Q.Z{constructor(H){super(H),this._numLoading=0,this._disposed=!1,this._textureRepository=H.textureRep,this._textureId=H.textureId,this._acquire(H.textureId,X=>this._texture=X),this._acquire(H.normalTextureId,X=>this._textureNormal=X),this._acquire(H.emissiveTextureId,X=>this._textureEmissive=X),this._acquire(H.occlusionTextureId,X=>this._textureOcclusion=X),this._acquire(H.metallicRoughnessTextureId,X=>this._textureMetallicRoughness=X)}dispose(){this._texture=(0,D.RY)(this._texture),this._textureNormal=(0,D.RY)(this._textureNormal),this._textureEmissive=(0,D.RY)(this._textureEmissive),this._textureOcclusion=(0,D.RY)(this._textureOcclusion),this._textureMetallicRoughness=(0,D.RY)(this._textureMetallicRoughness),this._disposed=!0}ensureResources(H){return 0===this._numLoading?Z.Rw.LOADED:Z.Rw.LOADING}get textureBindParameters(){return new W((0,D.pC)(this._texture)?this._texture.glTexture:null,(0,D.pC)(this._textureNormal)?this._textureNormal.glTexture:null,(0,D.pC)(this._textureEmissive)?this._textureEmissive.glTexture:null,(0,D.pC)(this._textureOcclusion)?this._textureOcclusion.glTexture:null,(0,D.pC)(this._textureMetallicRoughness)?this._textureMetallicRoughness.glTexture:null)}updateTexture(H){((0,D.Wi)(this._texture)||H!==this._texture.id)&&(this._texture=(0,D.RY)(this._texture),this._textureId=H,this._acquire(this._textureId,X=>this._texture=X))}_acquire(H,X){if((0,D.Wi)(H))return void X(null);const te=this._textureRepository.acquire(H);if((0,R.y8)(te))return++this._numLoading,void te.then(ae=>{if(this._disposed)return(0,D.RY)(ae),void X(null);X(ae)}).finally(()=>--this._numLoading);X(te)}}class W extends G.K{constructor(H=null,X=null,te=null,ae=null,oe=null){super(),this.texture=H,this.textureNormal=X,this.textureEmissive=te,this.textureOcclusion=ae,this.textureMetallicRoughness=oe}}},52107:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>X});var D=v(62208),R=v(42743),G=v(98565),Z=v(12699),Q=v(24425),$=v(36848),W=v(37187),B=v(2282),H=v(16396);class X extends Z.c{constructor(oe,le=[],de=R.MX.Triangle,se=null,re=-1){super(),this._primitiveType=de,this.objectAndLayerIdColor=se,this.edgeIndicesLength=re,this.type=Q.U.Geometry,this._vertexAttributes=new Map,this._indices=new Map,this._boundingInfo=null;for(const[j,Y]of oe)Y&&this._vertexAttributes.set(j,{...Y});if(null==le||0===le.length){const j=function te(ae){const oe=ae.values().next().value;return null==oe?0:oe.data.length/oe.size}(this._vertexAttributes),Y=(0,W.p)(j);this.edgeIndicesLength=this.edgeIndicesLength<0?j:this.edgeIndicesLength;for(const ee of this._vertexAttributes.keys())this._indices.set(ee,Y)}else for(const[j,Y]of le)Y&&(this._indices.set(j,(0,W.mi)(Y)),j===H.T.POSITION&&(this.edgeIndicesLength=this.edgeIndicesLength<0?this._indices.get(j).length:this.edgeIndicesLength))}cloneShallow(){const oe=new X([],void 0,this._primitiveType,this.objectAndLayerIdColor,void 0),{_vertexAttributes:le,_indices:de}=oe;return this._vertexAttributes.forEach((se,re)=>le.set(re,se)),this._indices.forEach((se,re)=>de.set(re,se)),oe.screenToWorldRatio=this.screenToWorldRatio,oe._boundingInfo=this._boundingInfo,oe}get vertexAttributes(){return this._vertexAttributes}getMutableAttribute(oe){const le=this._vertexAttributes.get(oe);return le&&!le.exclusive&&(le.data=Array.from(le.data),le.exclusive=!0),le}get indices(){return this._indices}get indexCount(){const oe=this._indices.values().next().value;return oe?oe.length:0}get primitiveType(){return this._primitiveType}get faceCount(){return this.indexCount/3}get boundingInfo(){return(0,D.Wi)(this._boundingInfo)&&(this._boundingInfo=this._calculateBoundingInfo()),this._boundingInfo}computeAttachmentOrigin(oe){return this.primitiveType===R.MX.Triangle?this._computeAttachmentOriginTriangles(oe):this._computeAttachmentOriginPoints(oe)}_computeAttachmentOriginTriangles(oe){const le=this.indices.get(H.T.POSITION),de=this.vertexAttributes.get(H.T.POSITION);return(0,$.cM)(de,le,oe)}_computeAttachmentOriginPoints(oe){const le=this.indices.get(H.T.POSITION),de=this.vertexAttributes.get(H.T.POSITION);return(0,$.NO)(de,le,oe)}invalidateBoundingInfo(){this._boundingInfo=null}_calculateBoundingInfo(){const oe=this.indices.get(H.T.POSITION);if(!oe||0===oe.length)return null;const le=this.primitiveType===R.MX.Triangle?3:1;(0,B.hu)(oe.length%le==0,"Indexing error: "+oe.length+" not divisible by "+le);const de=(0,W.p)(oe.length/le),se=this.vertexAttributes.get(H.T.POSITION);return se?new G.j(de,le,oe,se):null}}},24260:(nt,Ae,v)=>{"use strict";v.d(Ae,{k:()=>Q});var D=v(62208),R=v(27899),G=v(86236),Z=v(84161);class Q{constructor(){this._disposed=!1}get disposed(){return this._disposed}get shaderTransformation(){return this._shaderTransformation}acquire(W,B,H,X,te,ae){this.id=(0,G.D)(),this.geometry=W,this.material=B,this.transformation=H,this.instanceParameters=X,this.origin=te,this._shaderTransformation=ae,this._disposed=!1}release(){this._disposed=!1}dispose(){this._disposed=!0}getStaticTransformation(){return this.transformation}getShaderTransformation(){return(0,D.pC)(this._shaderTransformation)?this._shaderTransformation(this.transformation):this.transformation}computeAttachmentOrigin(W){return!!(this.material.computeAttachmentOrigin?this.material.computeAttachmentOrigin(this.geometry,W):this.geometry.computeAttachmentOrigin(W))&&((0,Z.m)(W,W,this.getStaticTransformation()),!0)}}Q.pool=new R.Z(Q)},57521:(nt,Ae,v)=>{"use strict";v.d(Ae,{Cr:()=>ye,IG:()=>se,QL:()=>me,nb:()=>ge,B2:()=>re,DA:()=>be,x2:()=>Ee,dV:()=>ie,mj:()=>ee,rh:()=>De,PI:()=>Y,g7:()=>he,AW:()=>j,Ay:()=>xe});var W,We,D=v(84161),R=v(14658),G=v(28093),Z=v(90014),Q=v(70562),$=v(42743);(We=W||(W={})).length=function Ce(He,Ie){const Ge=He[Ie],Pe=He[Ie+1],Le=He[Ie+2];return Math.sqrt(Ge*Ge+Pe*Pe+Le*Le)},We.normalize=function Be(He,Ie){const Ge=He[Ie],Pe=He[Ie+1],Le=He[Ie+2],Me=1/Math.sqrt(Ge*Ge+Pe*Pe+Le*Le);He[Ie]*=Me,He[Ie+1]*=Me,He[Ie+2]*=Me},We.scale=function Fe(He,Ie,Ge){He[Ie]*=Ge,He[Ie+1]*=Ge,He[Ie+2]*=Ge},We.add=function je(He,Ie,Ge,Pe,Le,Me=Ie){(Le=Le||He)[Me]=He[Ie]+Ge[Pe],Le[Me+1]=He[Ie+1]+Ge[Pe+1],Le[Me+2]=He[Ie+2]+Ge[Pe+2]},We.subtract=function Re(He,Ie,Ge,Pe,Le,Me=Ie){(Le=Le||He)[Me]=He[Ie]-Ge[Pe],Le[Me+1]=He[Ie+1]-Ge[Pe+1],Le[Me+2]=He[Ie+2]-Ge[Pe+2]};var B=v(52107),H=v(37187),X=v(2282),te=v(16396);const ae=W;var oe,le,de;(function(We){const Be=[[-.5,-.5,.5],[.5,-.5,.5],[.5,.5,.5],[-.5,.5,.5],[-.5,-.5,-.5],[.5,-.5,-.5],[.5,.5,-.5],[-.5,.5,-.5]],Fe=[0,0,1,-1,0,0,1,0,0,0,-1,0,0,1,0,0,0,-1],je=[0,0,1,0,1,1,0,1],Re=[0,1,2,2,3,0,4,0,3,3,7,4,1,5,6,6,2,1,1,0,4,4,5,1,3,2,6,6,7,3,5,4,7,7,6,5],He=new Array(36);for(let Pe=0;Pe<6;Pe++)for(let Le=0;Le<6;Le++)He[6*Pe+Le]=Pe;const Ie=new Array(36);for(let Pe=0;Pe<6;Pe++)Ie[6*Pe+0]=0,Ie[6*Pe+1]=1,Ie[6*Pe+2]=2,Ie[6*Pe+3]=2,Ie[6*Pe+4]=3,Ie[6*Pe+5]=0;We.createGeometry=function Ge(Pe){Array.isArray(Pe)||(Pe=[Pe,Pe,Pe]);const Le=new Array(24);for(let Me=0;Me<8;Me++)Le[3*Me]=Be[Me][0]*Pe[0],Le[3*Me+1]=Be[Me][1]*Pe[1],Le[3*Me+2]=Be[Me][2]*Pe[2];return new B.Z([[te.T.POSITION,{size:3,data:Le,exclusive:!0}],[te.T.NORMAL,{size:3,data:Fe}],[te.T.UV0,{size:2,data:je}]],[[te.T.POSITION,Re],[te.T.NORMAL,He],[te.T.UV0,Ie]])}})(oe||(oe={})),function(We){const Be=[[-.5,0,-.5],[.5,0,-.5],[.5,0,.5],[-.5,0,.5],[0,-.5,0],[0,.5,0]],Fe=[0,1,-1,1,1,0,0,1,1,-1,1,0,0,-1,-1,1,-1,0,0,-1,1,-1,-1,0],je=[5,1,0,5,2,1,5,3,2,5,0,3,4,0,1,4,1,2,4,2,3,4,3,0],Re=[0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7];We.createGeometry=function He(Ie){Array.isArray(Ie)||(Ie=[Ie,Ie,Ie]);const Ge=new Array(18);for(let Pe=0;Pe<6;Pe++)Ge[3*Pe]=Be[Pe][0]*Ie[0],Ge[3*Pe+1]=Be[Pe][1]*Ie[1],Ge[3*Pe+2]=Be[Pe][2]*Ie[2];return new B.Z([[te.T.POSITION,{size:3,data:Ge,exclusive:!0}],[te.T.NORMAL,{size:3,data:Fe}]],[[te.T.POSITION,je],[te.T.NORMAL,Re]])}}(le||(le={})),function(We){const Fe=(0,R.f)(-.5,0,-.5),je=(0,R.f)(.5,0,-.5),Re=(0,R.f)(0,0,.5),He=(0,R.f)(0,.5,0),Ie=(0,R.c)(),Ge=(0,R.c)(),Pe=(0,R.c)(),Le=(0,R.c)(),Me=(0,R.c)();(0,D.b)(Ie,Fe,He),(0,D.b)(Ge,Fe,je),(0,D.f)(Pe,Ie,Ge),(0,D.n)(Pe,Pe),(0,D.b)(Ie,je,He),(0,D.b)(Ge,je,Re),(0,D.f)(Le,Ie,Ge),(0,D.n)(Le,Le),(0,D.b)(Ie,Re,He),(0,D.b)(Ge,Re,Fe),(0,D.f)(Me,Ie,Ge),(0,D.n)(Me,Me);const Ne=[Fe,je,Re,He],Xe=[0,-1,0,Pe[0],Pe[1],Pe[2],Le[0],Le[1],Le[2],Me[0],Me[1],Me[2]],Ye=[0,1,2,3,1,0,3,2,1,3,0,2],Je=[0,0,0,1,1,1,2,2,2,3,3,3];We.createGeometry=function rt(tt){Array.isArray(tt)||(tt=[tt,tt,tt]);const et=new Array(12);for(let qe=0;qe<4;qe++)et[3*qe]=Ne[qe][0]*tt[0],et[3*qe+1]=Ne[qe][1]*tt[1],et[3*qe+2]=Ne[qe][2]*tt[2];return new B.Z([[te.T.POSITION,{size:3,data:et,exclusive:!0}],[te.T.NORMAL,{size:3,data:Xe}]],[[te.T.POSITION,Ye],[te.T.NORMAL,Je]])}}(de||(de={}));const se=oe.createGeometry,re=le.createGeometry,j=de.createGeometry;function Y(We,Ce,Be,Fe={uv:!0}){const je=-Math.PI,Re=2*Math.PI,He=-Math.PI/2,Ie=Math.PI,Ge=Math.max(3,Math.floor(Ce)),Pe=Math.max(2,Math.floor(Be)),Le=(Ge+1)*(Pe+1),Me=new Float32Array(3*Le),Ne=new Float32Array(3*Le),Xe=new Float32Array(2*Le),Ye=[];let Je=0;for(let qe=0;qe<=Pe;qe++){const ot=[],ut=qe/Pe,_t=He+ut*Ie,Ct=Math.cos(_t);for(let vt=0;vt<=Ge;vt++){const Lt=vt/Ge,jt=je+Lt*Re,$t=Math.cos(jt)*Ct,Wt=Math.sin(_t),pr=-Math.sin(jt)*Ct;Me[3*Je]=$t*We,Me[3*Je+1]=Wt*We,Me[3*Je+2]=pr*We,Ne[3*Je]=$t,Ne[3*Je+1]=Wt,Ne[3*Je+2]=pr,Xe[2*Je]=Lt,Xe[2*Je+1]=ut,ot.push(Je),++Je}Ye.push(ot)}const rt=new Array;for(let qe=0;qeNe&&([Me,Ne]=[Ne,Me]);const Xe=Me.toString()+"."+Ne.toString();if(He[Xe])return He[Xe];let Ye=je.length;return je.length+=3,ae.add(je,3*Me,je,3*Ne,je,Ye),ae.scale(je,Ye,We/ae.length(je,Ye)),Ye/=3,He[Xe]=Ye,Ye}for(let Me=0;Me3?255*Be[3]:255]:[255,255,255,255],exclusive:!0}],[te.T.SIZE,{size:2,data:null!=Fe&&2===Fe.length?Fe:[1,1]}]];if(null!=je){const Xe=new Float32Array([je[0],je[1],je[2],je[3]]);Ne.push([te.T.AUXPOS1,{size:4,data:Xe}])}if(null!=He){const Xe=new Float32Array([He[0],He[1],He[2],He[3]]);Ne.push([te.T.AUXPOS2,{size:4,data:Xe}])}return new B.Z(Ne,null,$.MX.Point,Ie)}const pe=[[-1,-1,0],[1,-1,0],[1,1,0],[-1,1,0]];function he(We=pe){const Ce=new Array(12);for(let Pe=0;Pe<4;Pe++)for(let Le=0;Le<3;Le++)Ce[3*Pe+Le]=We[Pe][Le];const Be=[0,1,2,2,3,0],je=[0,0,0,0,0,0];return new B.Z([[te.T.POSITION,{size:3,data:Ce,exclusive:!0}],[te.T.NORMAL,{size:3,data:[0,0,1],exclusive:!0}],[te.T.UV0,{size:2,data:[0,0,1,0,1,1,0,1],exclusive:!0}],[te.T.COLOR,{size:4,data:[255,255,255,255],exclusive:!0}]],[[te.T.POSITION,Be],[te.T.NORMAL,je],[te.T.UV0,Be],[te.T.COLOR,je]])}function me(We,Ce,Be,Fe,je=!0,Re=!0){let He=0;const Ie=Ce,Ge=We;let Pe=(0,R.f)(0,He,0),Le=(0,R.f)(0,He+Ge,0),Me=(0,R.f)(0,-1,0),Ne=(0,R.f)(0,1,0);Fe&&(He=Ge,Le=(0,R.f)(0,0,0),Pe=(0,R.f)(0,He,0),Me=(0,R.f)(0,1,0),Ne=(0,R.f)(0,-1,0));const Xe=[Le,Pe],Ye=[Me,Ne],Je=Be+2,rt=Math.sqrt(Ge*Ge+Ie*Ie);if(Fe)for(let Ct=Be-1;Ct>=0;Ct--){const vt=Ct*(2*Math.PI/Be),Lt=(0,R.f)(Math.cos(vt)*Ie,He,Math.sin(vt)*Ie);Xe.push(Lt);const jt=(0,R.f)(Ge*Math.cos(vt)/rt,-Ie/rt,Ge*Math.sin(vt)/rt);Ye.push(jt)}else for(let Ct=0;Ct{et[jt]=$t,qe[jt]=Wt};let ut=0;const _t=(0,R.c)(),Ct=(0,R.c)();for(let jt=0;jt0?Fe[wt][0]:-Fe[wt][0]-1+Be.length),Pe.push(Fe[wt][1]>0?Fe[wt][1]:-Fe[wt][1]-1+Be.length),Pe.push(Fe[wt][2]>0?Fe[wt][2]:-Fe[wt][2]-1+Be.length),Le.push(0),Le.push(0),Le.push(0);let $t=Be.length;const Wt=Be.length-1;for(let wt=0;wt0&&((0,D.c)(Xe,Ye),wt=0?$t+Fe[wt][0]:-Fe[wt][0]-1+ar),Pe.push(Fe[wt][2]>=0?$t+Fe[wt][2]:-Fe[wt][2]-1+ar),Pe.push(Fe[wt][1]>=0?$t+Fe[wt][1]:-Fe[wt][1]-1+ar),Le.push(gr),Le.push(gr),Le.push(gr);return new B.Z([[te.T.POSITION,{size:3,data:Ie,exclusive:!0}],[te.T.NORMAL,{size:3,data:Ge,exclusive:!0}]],[[te.T.POSITION,Pe],[te.T.NORMAL,Le]])}function De(We,Ce,Be){(0,X.hu)(We.length>1,"createPolylineGeometry(): polyline needs at least 2 points"),(0,X.hu)(3===We[0].length,"createPolylineGeometry(): malformed vertex"),(0,X.hu)(null==Ce||Ce.length===We.length,"createPolylineGeometry: need same number of points and normals"),(0,X.hu)(null==Ce||3===Ce[0].length,"createPolylineGeometry(): malformed normal");const Fe=new Float64Array(3*We.length),je=new Array(2*(We.length-1));let Re=0,He=0;for(let Pe=0;Pe0&&(je[He++]=Pe-1,je[He++]=Pe)}const Ie=[],Ge=[];if(Ie.push([te.T.POSITION,je]),Ge.push([te.T.POSITION,{size:3,data:Fe,exclusive:!0}]),Ce){const Pe=new Float32Array(3*Ce.length);let Le=0;for(let Me=0;Meje||((0,D.f)(Be,We,Ce),(0,D.n)(Be,Be),(0,D.f)(Fe,Be,We),(0,D.n)(Fe,Fe),0))}function xe(We,Ce,Be,Fe,je,Re,He){return ve(We,Ce,je,Re,He)||ve(We,Be,je,Re,He)||ve(We,Fe,je,Re,He)}const ze=.99619469809;(0,R.c)()},57851:(nt,Ae,v)=>{"use strict";v.d(Ae,{C:()=>se});var D=v(62208),R=v(86236),G=v(43703),Z=v(84161),Q=v(28093),$=v(4794),W=v(55915),B=v(42743),H=v(52107),X=v(30993),te=v(96867),ae=v(39782),oe=v(16396),le=v(34103),de=v(92222);class se{constructor(Y){this._originSR=Y,this._origins=new Map,this._objects=new Map,this._gridSize=5e5,this._rootOriginId="root/"+(0,R.D)()}getOrigin(Y){const ee=this._origins.get(this._rootOriginId);if(null==ee){const ge=ae.p.rootOrigin;if((0,D.pC)(ge))return this._origins.set(this._rootOriginId,(0,X.a)(ge[0],ge[1],ge[2],this._rootOriginId)),this.getOrigin(Y);const _e=(0,X.a)(Y[0]+Math.random()-.5,Y[1]+Math.random()-.5,Y[2]+Math.random()-.5,this._rootOriginId);return this._origins.set(this._rootOriginId,_e),_e}const ie=this._gridSize,J=Math.round(Y[0]/ie),ce=Math.round(Y[1]/ie),ue=Math.round(Y[2]/ie),pe=`${J}/${ce}/${ue}`;let he=this._origins.get(pe);const me=.5*ie;if((0,Z.b)(re,Y,ee.vec3),re[0]=Math.abs(re[0]),re[1]=Math.abs(re[1]),re[2]=Math.abs(re[2]),re[0]0&&ge.push(De-1,De);(0,W.CM)(me,this._originSR,0,me,ie.renderSpatialReference,0,he);const Ee=new H.Z([[oe.T.POSITION,{size:3,data:me,exclusive:!0}]],[[oe.T.POSITION,ge]],B.MX.Line);J.add(Ee),ue.addGeometry(Ee,this._material,G.I)}get test(){const Y=this;return{set gridSize(ee){Y._gridSize=ee}}}}const re=(0,Q.c)()},37187:(nt,Ae,v)=>{"use strict";v.d(Ae,{$z:()=>G,DX:()=>B,mi:()=>R,p:()=>W});const D=1024;function R(H){if(Array.isArray(H)){if(H.length=65536)return new Uint32Array(H);return new Uint16Array(H)}if(H.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT)return H;for(const X of H)if(X>=65536)return H;return new Uint16Array(H)}function G(H){const X=3*H;return X<=D?new Array(X):X<=65536?new Uint16Array(X):new Uint32Array(X)}let Z=(()=>{const H=new Uint32Array(131072);for(let X=0;X{const H=new Uint16Array(65536);for(let X=0;XZ.length){const X=Math.max(2*Z.length,H);Z=new Uint32Array(X);for(let te=0;teZ.length){const X=new Uint32Array(H);for(let te=0;te{"use strict";v.d(Ae,{LP:()=>ee,Z8:()=>se,vh:()=>le});var D=v(62208),R=v(28347),G=v(43703),Z=v(84161),Q=v(28093),$=v(993),W=v(4794),B=v(70562),H=v(59617),X=v(67857),te=v(91480),ae=v(40841),oe=v(65073);const le=1e-5;class de{constructor(ue){this.options=new X.om,this._results=new re,this.transform=new ae.yn,this.tolerance=le,this.verticalOffset=null,this._ray=(0,B.Ue)(),this._rayEnd=(0,Q.c)(),this._rayBeginTransformed=(0,Q.c)(),this._rayEndTransformed=(0,Q.c)(),this.viewingMode=ue??H.JY.Global}get results(){return this._results}get ray(){return this._ray}get rayBegin(){return this._ray.origin}get rayEnd(){return this._rayEnd}reset(ue,pe,he){this.resetWithRay((0,B.zk)(ue,pe,this._ray),he)}resetWithRay(ue,pe){this.camera=pe,ue!==this._ray&&(0,B.JG)(ue,this._ray),0!==this.options.verticalOffset?this.viewingMode===H.JY.Local?this._ray.origin[2]-=this.options.verticalOffset:this.verticalOffset=this.options.verticalOffset:this.verticalOffset=null,(0,Z.a)(this._rayEnd,this._ray.origin,this._ray.direction),this._results.init(this._ray)}intersect(ue=null,pe,he,me,ge){this.point=pe,this.filterPredicate=me,this.tolerance=he??le;const _e=(0,ae.W9)(this.verticalOffset);if((0,D.pC)(ue)&&ue.length>0){const Ee=ge?De=>{ge(De)&&this.intersectObject(De)}:De=>{this.intersectObject(De)};for(const De of ue){const be=De.getSpatialQueryAccelerator&&De.getSpatialQueryAccelerator();(0,D.pC)(be)?((0,D.pC)(_e)?be.forEachAlongRayWithVerticalOffset(this._ray.origin,this._ray.direction,Ee,_e):be.forEachAlongRay(this._ray.origin,this._ray.direction,Ee),this.options.selectionMode&&this.options.hud&&be.forEachDegenerateObject(Ee)):De.objects.forAll(Se=>Ee(Se))}}this.sortResults()}intersectObject(ue){const pe=ue.geometryRecords;if(!pe)return;const he=ue.transformation,me=(0,ae.W9)(this.verticalOffset);for(const ge of pe){const{geometry:_e,material:Ee,instanceParameters:De}=ge;if((0,oe.PD)(De))continue;const be=_e.id;this.transform.setAndInvalidateLazyTransforms(he,ge.getShaderTransformation()),(0,Z.m)(this._rayBeginTransformed,this.rayBegin,this.transform.inverse),(0,Z.m)(this._rayEndTransformed,this.rayEnd,this.transform.inverse);const Se=this.transform.transform;(0,D.pC)(me)&&(me.objectTransform=this.transform),Ee.intersect(_e,De,this.transform.transform,this,this._rayBeginTransformed,this._rayEndTransformed,(ye,ve,xe,ze,Ke,We)=>{if(ye>=0){if((0,D.pC)(this.filterPredicate)&&!this.filterPredicate(this._ray.origin,this._rayEnd,ye))return;const Ce=ze?this._results.hud:this._results,Be=ze?Fe=>{const je={object:ue,geometryId:be,triangleNr:xe,center:(0,D.pC)(We)?[We[0],We[1],We[2]]:null};Fe.set(X.q7.HUD,je,ye,ve,G.I,Ke)}:Fe=>Fe.set(X.q7.OBJECT,{object:ue,geometryId:be,triangleNr:xe},ye,ve,Se,Ke);if((null==Ce.min.drapedLayerOrder||Ke>=Ce.min.drapedLayerOrder)&&(null==Ce.min.dist||yeCe.max.dist)&&Be(Ce.max),this.options.store===X.eC.ALL)if(ze){const Fe=new Y(this._ray);Be(Fe),this._results.hud.all.push(Fe)}else{const Fe=new j(this._ray);Be(Fe),this._results.all.push(Fe)}}},ge.shaderTransformation)}}sortResults(ue=this._results.all){ue.sort((pe,he)=>pe.dist!==he.dist?(0,D.Pt)(pe.dist,0)-(0,D.Pt)(he.dist,0):pe.drapedLayerOrder!==he.drapedLayerOrder?(0,D.Pt)(pe.drapedLayerOrder,Number.MAX_VALUE)-(0,D.Pt)(he.drapedLayerOrder,Number.MAX_VALUE):(0,D.Pt)(he.drapedLayerGraphicOrder,Number.MIN_VALUE)-(0,D.Pt)(pe.drapedLayerGraphicOrder,Number.MIN_VALUE))}}function se(ce){return new de(ce)}class re{constructor(){this.min=new j((0,B.Ue)()),this.max=new j((0,B.Ue)()),this.hud={min:new Y((0,B.Ue)()),max:new Y((0,B.Ue)()),all:new Array},this.ground=new j((0,B.Ue)()),this.all=[]}init(ue){this.min.init(ue),this.max.init(ue),this.ground.init(ue),this.all.length=0,this.hud.min.init(ue),this.hud.max.init(ue),this.hud.all.length=0}}class j{constructor(ue){this.intersector=X.q7.OBJECT,this.normal=(0,Q.c)(),this.transformation=(0,G.c)(),this._ray=(0,B.Ue)(),this.init(ue)}get ray(){return this._ray}get distanceInRenderSpace(){return(0,D.pC)(this.dist)?((0,Z.g)(ie,this.ray.direction,this.dist),(0,Z.l)(ie)):null}getIntersectionPoint(ue){return!!(0,te.nn)(this)&&((0,Z.g)(ie,this.ray.direction,this.dist),(0,Z.a)(ue,this.ray.origin,ie),!0)}getTransformedNormal(ue){return(0,Z.c)(J,this.normal),J[3]=0,(0,$.t)(J,J,this.transformation),(0,Z.c)(ue,J),(0,Z.n)(ue,ue)}init(ue){this.dist=null,this.target=null,this.drapedLayerOrder=null,this.drapedLayerGraphicOrder=null,this.intersector=X.q7.OBJECT,(0,B.JG)(ue,this._ray)}set(ue,pe,he,me,ge,_e,Ee){this.intersector=ue,this.dist=he,(0,Z.c)(this.normal,(0,D.Pt)(me,Q.U)),(0,R.c)(this.transformation,(0,D.Pt)(ge,G.I)),this.target=pe,this.drapedLayerOrder=_e,this.drapedLayerGraphicOrder=Ee}copy(ue){(0,B.JG)(ue.ray,this._ray),this.intersector=ue.intersector,this.dist=ue.dist,this.target=ue.target,this.drapedLayerOrder=ue.drapedLayerOrder,this.drapedLayerGraphicOrder=ue.drapedLayerGraphicOrder,(0,Z.c)(this.normal,ue.normal),(0,R.c)(this.transformation,ue.transformation)}}class Y extends j{constructor(){super(...arguments),this.intersector=X.q7.HUD}}function ee(ce){return new j(ce)}const ie=(0,Q.c)(),J=(0,W.c)()},67857:(nt,Ae,v)=>{"use strict";var D,R,Z;v.d(Ae,{eC:()=>R,om:()=>G,q7:()=>D}),(Z=D||(D={}))[Z.OBJECT=0]="OBJECT",Z[Z.HUD=1]="HUD",Z[Z.TERRAIN=2]="TERRAIN",Z[Z.OVERLAY=3]="OVERLAY",Z[Z.I3S=4]="I3S",Z[Z.PCL=5]="PCL",Z[Z.LOD=6]="LOD",Z[Z.VOXEL=7]="VOXEL";class G{constructor(){this.verticalOffset=0,this.selectionMode=!1,this.hud=!0,this.selectOpaqueTerrainOnly=!0,this.invisibleTerrain=!1,this.backfacesTerrain=!0,this.isFiltered=!1,this.store=R.ALL}}!function(Z){Z[Z.MIN=0]="MIN",Z[Z.MINMAX=1]="MINMAX",Z[Z.ALL=2]="ALL"}(R||(R={}))},30993:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>G});var D=v(28093);class R{constructor(Q,$){this.vec3=Q,this.id=$}}function G(Z,Q,$,W){return new R((0,D.f)(Z,Q,$),W)}},40723:(nt,Ae,v)=>{"use strict";v.d(Ae,{F5:()=>W,Mt:()=>H,yD:()=>B});var B,X,D=v(62208),R=v(17625),G=v(12699),Z=v(24425),Q=v(39114),$=v(57623);class W extends G.c{constructor(te,ae){super(),this.type=Z.U.Material,this.supportsEdges=!1,this._visible=!0,this._renderPriority=0,this._insertOrder=0,this._vertexAttributeLocations=Q.i,this._parameters=(0,$.Uf)(te,ae),this.validateParameters(this._parameters)}dispose(){}get parameters(){return this._parameters}update(te){return!1}setParameters(te,ae=!0){(0,$.LO)(this._parameters,te)&&(this.validateParameters(this._parameters),ae&&this.parametersChanged())}validateParameters(te){}get visible(){return this._visible}set visible(te){te!==this._visible&&(this._visible=te,this.parametersChanged())}shouldRender(te){return this.isVisible()&&this.isVisibleForOutput(te.output)&&0!=(this.renderOccluded&te.renderOccludedMask)}isVisibleForOutput(te){return!0}get renderOccluded(){return this.parameters.renderOccluded}get renderPriority(){return this._renderPriority}set renderPriority(te){te!==this._renderPriority&&(this._renderPriority=te,this.parametersChanged())}get insertOrder(){return this._insertOrder}set insertOrder(te){te!==this._insertOrder&&(this._insertOrder=te,this.parametersChanged())}get vertexAttributeLocations(){return this._vertexAttributeLocations}isVisible(){return this._visible}parametersChanged(){(0,D.pC)(this.repository)&&this.repository.materialChanged(this)}}(X=B||(B={}))[X.Occlude=1]="Occlude",X[X.Transparent=2]="Transparent",X[X.OccludeAndTransparent=4]="OccludeAndTransparent",X[X.OccludeAndTransparentStencil=8]="OccludeAndTransparentStencil",X[X.Opaque=16]="Opaque";class H extends R.K{constructor(){super(...arguments),this.renderOccluded=B.Occlude}}},54840:(nt,Ae,v)=>{"use strict";var D,R,G;v.d(Ae,{$:()=>R,T:()=>D}),(G=D||(D={}))[G.ADD=0]="ADD",G[G.UPDATE=1]="UPDATE",G[G.REMOVE=2]="REMOVE",function(G){G[G.NONE=0]="NONE",G[G.VISIBILITIES=1]="VISIBILITIES",G[G.VERTEXATTRS=2]="VERTEXATTRS",G[G.TRANSFORMATION=4]="TRANSFORMATION",G[G.HIGHLIGHTS=8]="HIGHLIGHTS",G[G.OCCLUDEES=16]="OCCLUDEES"}(R||(R={}))},96867:(nt,Ae,v)=>{"use strict";v.d(Ae,{T:()=>de});var D=v(62208),R=v(28347),G=v(43703),Z=v(84161),Q=v(28093),$=v(97126),W=v(98943),B=v(42743),H=v(12699),X=v(24425),te=v(24260),ae=v(7167),oe=v(2282),le=v(65073);class de extends H.c{constructor(Y={}){super(),this.type=X.U.Object,this._geometryRecords=new Array,this._geometries=new Array,this._objectTransformation=(0,G.c)(),this._bvObjectSpace=new re,this._bvWorldSpace=new re,this._bvDirty=!0,this._hasVolatileTransformation=!1,this._visible=!0,this.castShadow=null==Y.castShadow||Y.castShadow,this.metadata=Y.metadata,this.metadata&&this.metadata.isElevationSource&&(this.metadata.lastValidElevationBB=new se);const{geometries:ee,materials:ie,transformations:J,origins:ce}=Y;if(Array.isArray(ee)){(0,oe.hu)(ie.length===ee.length,"Object3D: materials don't match geometries"),(0,oe.hu)(J.length===ee.length,"Object3D: transformations don't match geometries"),this._geometryRecords.length=ee.length,this._geometries.length=ee.length;for(let ue=0;ue(0,D.pC)(ie.shaderTransformation)):this._hasVolatileTransformation,ee.dispose(),this._geometries.splice(Y,1),this._emit("objectGeometryRemoved",{object:this,record:ee}),this._invalidateBoundingVolume(),ee}removeAllGeometries(){for(;this.geometryRecords.length>0;)this.removeGeometry(0)}geometryVertexAttrsUpdated(Y){this._emit("vertexAttrsUpdated",{object:this,record:Y}),this._invalidateBoundingVolume()}get isVisible(){return this._visible}setVisible(Y){if(this._visible!==Y){this._visible=Y;for(const ee of this._geometryRecords)ee.instanceParameters.visible=this._visible;this._emit("visibilityChanged",this)}}maskOccludee(){const Y=new ae.O(B.V_.MaskOccludee);for(const ee of this._geometryRecords)ee.instanceParameters.occludees=(0,le.lr)(ee.instanceParameters.occludees,Y);return this._emit("occlusionChanged",this),Y}removeOcclude(Y){for(const ee of this._geometryRecords)ee.instanceParameters.occludees=(0,le.U_)(ee.instanceParameters.occludees,Y);this._emit("occlusionChanged",this)}highlight(){const Y=new ae.O(B.V_.Highlight);for(const ee of this._geometryRecords)ee.instanceParameters.highlights=(0,le.lr)(ee.instanceParameters.highlights,Y);return this._emit("highlightChanged",this),Y}removeHighlight(Y){for(const ee of this._geometryRecords)ee.instanceParameters.highlights=(0,le.U_)(ee.instanceParameters.highlights,Y);this._emit("highlightChanged",this)}getCombinedStaticTransformation(Y,ee){return(0,R.m)(ee,this.transformation,Y.getStaticTransformation())}_getCombinedShaderTransformation(Y){return(0,R.m)((0,G.c)(),this.transformation,Y.getShaderTransformation())}hasVolativeTransformation(){return this._hasVolatileTransformation}get boundingVolumeWorldSpace(){return this._validateBoundingVolume(),this._bvWorldSpace}get boundingVolumeObjectSpace(){return this._validateBoundingVolume(),this._bvObjectSpace}_validateBoundingVolume(){if(!this._bvDirty&&!this._hasVolatileTransformation)return;this._bvObjectSpace.init(),this._bvWorldSpace.init();for(let J=0;JY._geometries.includes(ee),getGeometryIndex:ee=>Y._geometries.indexOf(ee)}}}class se{constructor(){this.min=(0,Q.f)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this.max=(0,Q.f)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE)}isEmpty(){return this.max[0]{"use strict";v.d(Ae,{O:()=>R});var D=v(86236);class R{constructor(Z){this.channel=Z,this.id=(0,D.D)()}}},82274:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>ze});var Ke,We,D=v(62208),R=v(27899),G=v(77029),Z=v(84161),Q=v(28093),$=v(8834),W=v(70562),B=v(97126),H=v(2282);class X{constructor(We,Ce){this._objectToBoundingSphere=We,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new te,this._objectCount=0,Ce&&(void 0!==Ce.maximumObjectsPerNode&&(this._maximumObjectsPerNode=Ce.maximumObjectsPerNode),void 0!==Ce.maximumDepth&&(this._maximumDepth=Ce.maximumDepth))}get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}destroy(){this._degenerateObjects.clear(),te.clearPool(),ce[0]=null,_e.prune(),ve.prune()}add(We,Ce=We.length){this._objectCount+=Ce,this._grow(We,Ce);const Be=te.acquire();for(let Fe=0;Fe{if(!this._intersectsNode(Fe,je))return!1;const Re=je.node;return Re.terminals.forAll(He=>{this._intersectsObject(Fe,He)&&Be(He)}),null!==Re.residents&&Re.residents.forAll(He=>{this._intersectsObject(Fe,He)&&Be(He)}),!0})}forEachAlongRayWithVerticalOffset(We,Ce,Be,Fe){const je=(0,W.re)(We,Ce);this._forEachNode(this._root,Re=>{if(!this._intersectsNodeWithOffset(je,Re,Fe))return!1;const He=Re.node;return He.terminals.forAll(Ie=>{this._intersectsObjectWithOffset(je,Ie,Fe)&&Be(Ie)}),null!==He.residents&&He.residents.forAll(Ie=>{this._intersectsObjectWithOffset(je,Ie,Fe)&&Be(Ie)}),!0})}forEach(We){this._forEachNode(this._root,Ce=>{const Be=Ce.node;return Be.terminals.forAll(We),null!==Be.residents&&Be.residents.forAll(We),!0}),this._degenerateObjects.forEach(We)}forEachDegenerateObject(We){this._degenerateObjects.forEach(We)}findClosest(We,Ce,Be,Fe=(()=>!0),je=1/0){let Re=1/0,He=1/0,Ie=null;const Ge=re(We,Ce),Pe=Le=>{if(--je,!Fe(Le))return;const Me=this._objectToBoundingSphere(Le);if(!(0,$.hr)(Be,Me))return;const Ne=j(We,Ce,(0,B.g)(Me)),Xe=Ne-Me[3];Xe{if(je<=0||!(0,$.hr)(Be,Le.bounds)||((0,Z.g)(he,Ge,Le.halfSize),(0,Z.a)(he,he,Le.bounds),j(We,Ce,he)>He))return!1;const Me=Le.node;return Me.terminals.forAll(Ne=>Pe(Ne)),null!==Me.residents&&Me.residents.forAll(Ne=>Pe(Ne)),!0},We,Ce),Ie}forEachInDepthRange(We,Ce,Be,Fe,je,Re,He){let Ie=-1/0,Ge=1/0;const Pe={setRange:Ye=>{Be===X.DepthOrder.FRONT_TO_BACK?(Ie=Math.max(Ie,Ye.near),Ge=Math.min(Ge,Ye.far)):(Ie=Math.max(Ie,-Ye.far),Ge=Math.min(Ge,-Ye.near))}};Pe.setRange(Fe);const Le=j(Ce,Be,We),Me=re(Ce,Be),Ne=re(Ce,-Be),Xe=Ye=>{if(!He(Ye))return;const Je=this._objectToBoundingSphere(Ye),rt=(0,B.g)(Je),tt=j(Ce,Be,rt)-Le;tt-Je[3]>Ge||tt+Je[3]{if(!(0,$.hr)(Re,Ye.bounds)||((0,Z.g)(he,Me,Ye.halfSize),(0,Z.a)(he,he,Ye.bounds),j(Ce,Be,he)-Le>Ge)||((0,Z.g)(he,Ne,Ye.halfSize),(0,Z.a)(he,he,Ye.bounds),j(Ce,Be,he)-LeXe(rt)),null!==Je.residents&&Je.residents.forAll(rt=>Xe(rt)),!0},Ce,Be)}forEachNode(We){this._forEachNode(this._root,Ce=>We(Ce.node,Ce.bounds,Ce.halfSize))}forEachNeighbor(We,Ce){const Be=(0,B.a)(Ce),Fe=(0,B.g)(Ce),je=Ie=>{const Ge=this._objectToBoundingSphere(Ie),Pe=(0,B.a)(Ge),Le=Be+Pe;return!((0,Z.d)((0,B.g)(Ge),Fe)-Le*Le<=0)||We(Ie)};let Re=!0;const He=Ie=>{Re&&(Re=je(Ie))};this._forEachNode(this._root,Ie=>{const Ge=(0,B.a)(Ie.bounds),Pe=Be+Ge;if((0,Z.d)((0,B.g)(Ie.bounds),Fe)-Pe*Pe>0)return!1;const Le=Ie.node;return Le.terminals.forAll(He),Re&&null!==Le.residents&&Le.residents.forAll(He),Re}),Re&&this.forEachDegenerateObject(He)}_intersectsNode(We,Ce){return le(Ce.bounds,2*-Ce.halfSize,me),le(Ce.bounds,2*Ce.halfSize,ge),(0,H.yK)(We.origin,We.direction,me,ge)}_intersectsNodeWithOffset(We,Ce,Be){return le(Ce.bounds,2*-Ce.halfSize,me),le(Ce.bounds,2*Ce.halfSize,ge),Be.applyToMinMax(me,ge),(0,H.yK)(We.origin,We.direction,me,ge)}_intersectsObject(We,Ce){const Be=this._objectToBoundingSphere(Ce);return!(Be[3]>0)||(0,B.j)(Be,We)}_intersectsObjectWithOffset(We,Ce,Be){const Fe=this._objectToBoundingSphere(Ce);return!(Fe[3]>0)||(0,B.j)(Be.applyToBoundingSphere(Fe),We)}_forEachNode(We,Ce){let Be=te.acquire().init(We);const Fe=[Be];for(;0!==Fe.length;){if(Be=Fe.pop(),Ce(Be)&&!Be.isLeaf())for(let je=0;jeBe.distance-Fe.distance);for(let Be=0;Be<8;++Be)Ce[Be]=ve.data[Be].index}(Be,Fe,xe);0!==Re.length;){if(je=Re.pop(),Ce(je)&&!je.isLeaf())for(let He=7;He>=0;--He){const Ie=xe[He];je.node.children[Ie]&&Re.push(te.acquire().init(je).advance(Ie))}te.release(je)}}_remove(We,Ce,Be){_e.clear();const Fe=Be.advanceTo(Ce,(je,Re)=>{_e.push(je.node),_e.push(Re)})?Be.node.terminals:Be.node.residents;if(Fe.removeUnordered(We),0===Fe.length)for(let je=_e.length-2;je>=0&&this._purge(_e.data[je],_e.data[je+1]);je-=2);}_nodeIsEmpty(We){if(0!==We.terminals.length)return!1;if(null!==We.residents)return 0===We.residents.length;for(let Ce=0;Ce=0&&(We.children[Ce]=null),!!this._nodeIsEmpty(We)&&(null===We.residents&&(We.residents=new G.Z({shrink:!0})),!0)}_add(We,Ce){Ce.advanceTo(this._objectToBoundingSphere(We))?Ce.node.terminals.push(We):(Ce.node.residents.push(We),Ce.node.residents.length>this._maximumObjectsPerNode&&Ce.depththis._objectToBoundingSphere(Be),De),Y(De[3])&&!this._fitsInsideTree(De)))if(this._nodeIsEmpty(this._root.node))(0,B.h)(De,this._root.bounds),this._root.halfSize=1.25*De[3];else{const Be=this._rootBoundsForRootAsSubNode(De);this._placingRootViolatesMaxDepth(Be)?this._rebuildTree(De,Be):this._growRootAsSubNode(Be),te.release(Be)}}_rebuildTree(We,Ce){(0,Z.c)(be,Ce.bounds),be[3]=Ce.halfSize,de([We,be],2,Fe=>Fe,Se);const Be=te.acquire().init(this._root);this._root.initFrom(null,Se,1.25*Se[3]),this._forEachNode(Be,Fe=>(this.add(Fe.node.terminals.data,Fe.node.terminals.length),null!==Fe.node.residents&&this.add(Fe.node.residents.data,Fe.node.residents.length),!0)),te.release(Be)}_placingRootViolatesMaxDepth(We){const Ce=Math.log(We.halfSize/this._root.halfSize)*Math.LOG2E;let Be=0;return this._forEachNode(this._root,Fe=>(Be=Math.max(Be,Fe.depth),Be+Ce<=this._maximumDepth)),Be+Ce>this._maximumDepth}_rootBoundsForRootAsSubNode(We){const Ce=We[3],Be=We;let Fe=-1/0;const je=this._root.bounds,Re=this._root.halfSize;for(let He=0;He<3;He++){const Ge=Be[He]+Ce-(je[He]+Re),Pe=Math.max(0,Math.ceil((je[He]-Re-(Be[He]-Ce))/(2*Re))),Le=Math.max(0,Math.ceil(Ge/(2*Re)))+1,Me=2**Math.ceil(Math.log(Pe+Le)*Math.LOG2E);Fe=Math.max(Fe,Me),ye[He].min=Pe,ye[He].max=Le}for(let He=0;He<3;He++){let Ie=ye[He].min,Ge=ye[He].max;const Pe=(Fe-(Ie+Ge))/2;Ie+=Math.ceil(Pe),Ge+=Math.floor(Pe),pe[He]=je[He]-Re-Ie*Re*2+(Ge+Ie)*Re}return pe[3]=Fe*Re*J,te.acquire().initFrom(null,pe,Fe*Re,0)}_growRootAsSubNode(We){const Ce=this._root.node;(0,Z.c)(De,this._root.bounds),De[3]=this._root.halfSize,this._root.init(We),We.advanceTo(De,null,!0),We.node.children=Ce.children,We.node.residents=Ce.residents,We.node.terminals=Ce.terminals}_shrink(){for(;;){const We=this._findShrinkIndex();if(-1===We)break;this._root.advance(We),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let We=null;const Ce=this._root.node.children;let Be=0,Fe=0;for(;Fe=Ce[0]-Be&&We[0]<=Ce[0]+Be&&We[1]>=Ce[1]-Be&&We[1]<=Ce[1]+Be&&We[2]>=Ce[2]-Be&&We[2]<=Ce[2]+Be}}class te{constructor(){this.bounds=(0,B.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(We){return this.initFrom(We.node,We.bounds,We.halfSize,We.depth)}initFrom(We,Ce,Be,Fe=this.depth){return this.node=(0,D.pC)(We)?We:te.createEmptyNode(),(0,D.pC)(Ce)&&(0,B.h)(Ce,this.bounds),this.halfSize=Be,this.depth=Fe,this}advance(We){let Ce=this.node.children[We];Ce||(Ce=te.createEmptyNode(),this.node.children[We]=Ce),this.node=Ce,this.halfSize/=2,this.depth++;const Be=ee[We];return this.bounds[0]+=Be[0]*this.halfSize,this.bounds[1]+=Be[1]*this.halfSize,this.bounds[2]+=Be[2]*this.halfSize,this.bounds[3]=this.halfSize*J,this}advanceTo(We,Ce,Be=!1){for(;;){if(this.isTerminalFor(We))return Ce&&Ce(this,-1),!0;if(this.isLeaf()){if(!Be)return Ce&&Ce(this,-1),!1;this.node.residents=null}const Fe=this._childIndex(We);Ce&&Ce(this,Fe),this.advance(Fe)}}isLeaf(){return null!=this.node.residents}isTerminalFor(We){return We[3]>this.halfSize/2}_childIndex(We){const Ce=this.bounds;return(Ce[0]0}te._pool=new R.Z(te),(We=(Ke=X||(X={})).DepthOrder||(Ke.DepthOrder={}))[We.FRONT_TO_BACK=1]="FRONT_TO_BACK",We[We.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const ee=[(0,Q.f)(-1,-1,-1),(0,Q.f)(1,-1,-1),(0,Q.f)(-1,1,-1),(0,Q.f)(1,1,-1),(0,Q.f)(-1,-1,1),(0,Q.f)(1,-1,1),(0,Q.f)(-1,1,1),(0,Q.f)(1,1,1)],ie=[(0,Q.f)(-1,-1,-1),(0,Q.f)(-1,-1,1),(0,Q.f)(-1,1,-1),(0,Q.f)(-1,1,1),(0,Q.f)(1,-1,-1),(0,Q.f)(1,-1,1),(0,Q.f)(1,1,-1),(0,Q.f)(1,1,1)],J=Math.sqrt(3),ce=[null],pe=(0,B.c)(),he=(0,Q.c)(),me=(0,Q.c)(),ge=(0,Q.c)(),_e=new G.Z,Ee=(0,B.c)(),De=(0,B.c)(),be=(0,B.c)(),Se=(0,B.c)(),ye=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],ve=new G.Z,xe=[0,0,0,0,0,0,0,0],ze=X},88569:(nt,Ae,v)=>{"use strict";v.d(Ae,{Bh:()=>ae,E0:()=>X,IB:()=>$,K5:()=>B,j7:()=>W,je:()=>te,ve:()=>H,wu:()=>Z});var D=v(44835),R=v(67969),G=v(2078);const Z=(0,G.wK)(R.zi.SRC_ALPHA,R.zi.ONE,R.zi.ONE_MINUS_SRC_ALPHA,R.zi.ONE_MINUS_SRC_ALPHA),Q=(0,G.if)(R.zi.ONE,R.zi.ONE),$=(0,G.if)(R.zi.ZERO,R.zi.ONE_MINUS_SRC_ALPHA);function W(oe){return oe===D.A.FrontFace?null:oe===D.A.Alpha?$:Q}function B(oe){return oe===D.A.FrontFace?G.LZ:null}const H=5e5,X={factor:-1,units:-2};function te(oe){return oe?X:null}function ae(oe,le=R.wb.LESS){return oe===D.A.NONE||oe===D.A.FrontFace?le:R.wb.LEQUAL}},12407:(nt,Ae,v)=>{"use strict";v.d(Ae,{$:()=>Q});var D=v(62208),R=v(77029),G=v(37847),Z=v(68598);class Q{constructor(W,B,H){this._context=W,this._locations=H,this._textures=new Map,this._freeTextureUnits=new R.Z({deallocator:null}),this._glProgram=W.programCache.acquire(B.generate("vertex"),B.generate("fragment"),H),this._glProgram.stop=()=>{throw new Error("Wrapped _glProgram used directly")},this.bindPass=B.generateBind(G.P.Pass,this),this.bindDraw=B.generateBind(G.P.Draw,this),this._fragmentUniforms=(0,Z.hZ)()?B.fragmentUniforms:null}dispose(){this._glProgram.dispose()}get glName(){return this._glProgram.glName}get isCompiled(){return this._glProgram.isCompiled}setUniform1b(W,B){this._glProgram.setUniform1i(W,B?1:0)}setUniform1i(W,B){this._glProgram.setUniform1i(W,B)}setUniform1f(W,B){this._glProgram.setUniform1f(W,B)}setUniform2fv(W,B){this._glProgram.setUniform2fv(W,B)}setUniform3fv(W,B){this._glProgram.setUniform3fv(W,B)}setUniform4fv(W,B){this._glProgram.setUniform4fv(W,B)}setUniformMatrix3fv(W,B){this._glProgram.setUniformMatrix3fv(W,B)}setUniformMatrix4fv(W,B){this._glProgram.setUniformMatrix4fv(W,B)}setUniform1fv(W,B){this._glProgram.setUniform1fv(W,B)}setUniform1iv(W,B){this._glProgram.setUniform1iv(W,B)}setUniform2iv(W,B){this._glProgram.setUniform3iv(W,B)}setUniform3iv(W,B){this._glProgram.setUniform3iv(W,B)}setUniform4iv(W,B){this._glProgram.setUniform4iv(W,B)}assertCompatibleVertexAttributeLocations(W){W.locations!==this._locations&&console.error("VertexAttributeLocations are incompatible")}stop(){this._textures.clear(),this._freeTextureUnits.clear()}bindTexture(W,B){if((0,D.Wi)(B)||null==B.glName){const X=this._textures.get(W);return X&&(this._context.bindTexture(null,X.unit),this._freeTextureUnit(X),this._textures.delete(W)),null}let H=this._textures.get(W);return null==H?(H=this._allocTextureUnit(B),this._textures.set(W,H)):H.texture=B,this._context.useProgram(this),this.setUniform1i(W,H.unit),this._context.bindTexture(B,H.unit),H.unit}rebindTextures(){this._context.useProgram(this),this._textures.forEach((W,B)=>{this._context.bindTexture(W.texture,W.unit),this.setUniform1i(B,W.unit)}),(0,D.pC)(this._fragmentUniforms)&&this._fragmentUniforms.forEach(W=>{"sampler2D"!==W.type&&"samplerCube"!==W.type||this._textures.has(W.name)||console.error(`Texture sampler ${W.name} has no bound texture`)})}_allocTextureUnit(W){return{texture:W,unit:0===this._freeTextureUnits.length?this._textures.size:this._freeTextureUnits.pop()}}_freeTextureUnit(W){this._freeTextureUnits.push(W.unit)}}},64624:(nt,Ae,v)=>{"use strict";v.d(Ae,{V:()=>W,Y:()=>$});var D=v(62208),R=v(13934),G=v(74202),Z=v(59856),Q=v(40723);class ${constructor(X,te,ae,oe=null){this.rctx=X,this.sliceHelper=oe,this.lastFrameCamera=new Z.V,this.output=R.H.Color,this.renderOccludedMask=B,this.bindParameters=new G.p(te,ae,(0,D.pC)(oe)?oe.plane:null)}resetRenderOccludedMask(){this.renderOccludedMask=B}}class W extends ${constructor(X,te,ae,oe,le){super(X,ae,oe,le),this.offscreenRenderingHelper=te,this.sliceHelper=le}}const B=Q.yD.Occlude|Q.yD.OccludeAndTransparent|Q.yD.OccludeAndTransparentStencil},53855:(nt,Ae,v)=>{"use strict";v.d(Ae,{z:()=>le});var D=v(62208),R=v(86236),G=v(28347),Z=v(43703),Q=v(84161),$=v(4794),W=v(98943),B=v(42743),H=v(36848);class X{constructor(){this.visible=!0}}var te=v(7167),ae=v(16396),oe=v(65073);class le{constructor(re,j,Y={}){this.data=re,this.material=j,this.boundingSphere=(0,$.c)(),this.instanceParameters=new X,this._transformation=(0,Z.c)(),this._shaderTransformationDirty=!0,this.layerUid=(0,D.Pt)(Y.layerUid,null),this.graphicUid=(0,D.Pt)(Y.graphicUid,null),this.id=Y.id?Y.id:(0,R.D)(),this.boundingInfo=(0,D.Pt)(Y.boundingInfo,null),this.calculateShaderTransformation=(0,D.Pt)(Y.calculateShaderTransformation,null),this.castShadow=!!Y.castShadow&&Y.castShadow}get transformation(){return this._transformation}updateTransformation(re){re(this._transformation),this._shaderTransformationDirty=!0,this.computeBoundingSphere(this._transformation,this.boundingSphere)}shaderTransformationChanged(){this._shaderTransformationDirty=!0}computeBoundingSphere(re,j,Y=(0,W.u1)(re)){(0,D.Wi)(this.boundingInfo)||((0,Q.m)(j,this.boundingInfo.getCenter(),re),j[3]=this.boundingInfo.getBSRadius()*Y)}get hasShaderTransformation(){return(0,D.pC)(this.calculateShaderTransformation)}get primitiveType(){return this.data.primitiveType}getShaderTransformation(){return(0,D.Wi)(this.calculateShaderTransformation)?(0,D.Pt)(this.transformation,Z.I):(this._shaderTransformationDirty&&(this._shaderTransformation||(this._shaderTransformation=(0,Z.c)()),(0,G.c)(this._shaderTransformation,this.calculateShaderTransformation((0,D.Pt)(this.transformation,Z.I))),this._shaderTransformationDirty=!1),this._shaderTransformation)}computeAttachmentOrigin(re){if(this.material.computeAttachmentOrigin)return!!this.material.computeAttachmentOrigin(this,re)&&((0,D.pC)(this._transformation)&&(0,Q.m)(re,re,this._transformation),!0);const j=this.indices.get(ae.T.POSITION),Y=this.vertexAttributes.get(ae.T.POSITION);return!!(0,H.cM)(Y,j,re)&&((0,D.pC)(this._transformation)&&(0,Q.m)(re,re,this._transformation),!0)}get indices(){return this.data.indices}get vertexAttributes(){return this.data.vertexAttributes}addHighlight(){const re=new te.O(B.V_.Highlight),j=this.instanceParameters;return j.highlights=(0,oe.lr)(j.highlights,re),re}removeHighlight(re){const j=this.instanceParameters;j.highlights=(0,oe.U_)(j.highlights,re)}}},5894:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{r:()=>D}),(R=D||(D={}))[R.INTEGRATED_MESH=0]="INTEGRATED_MESH",R[R.OPAQUE_TERRAIN=1]="OPAQUE_TERRAIN",R[R.OPAQUE_MATERIAL=2]="OPAQUE_MATERIAL",R[R.TRANSPARENT_MATERIAL=3]="TRANSPARENT_MATERIAL",R[R.TRANSPARENT_TERRAIN=4]="TRANSPARENT_TERRAIN",R[R.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL=5]="TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL",R[R.OCCLUDED_TERRAIN=6]="OCCLUDED_TERRAIN",R[R.OCCLUDER_MATERIAL=7]="OCCLUDER_MATERIAL",R[R.TRANSPARENT_OCCLUDER_MATERIAL=8]="TRANSPARENT_OCCLUDER_MATERIAL",R[R.OCCLUSION_PIXELS=9]="OCCLUSION_PIXELS",R[R.POSTPROCESSING_ENVIRONMENT_OPAQUE=10]="POSTPROCESSING_ENVIRONMENT_OPAQUE",R[R.POSTPROCESSING_ENVIRONMENT_TRANSPARENT=11]="POSTPROCESSING_ENVIRONMENT_TRANSPARENT",R[R.LASERLINES=12]="LASERLINES",R[R.LASERLINES_CONTRAST_CONTROL=13]="LASERLINES_CONTRAST_CONTROL",R[R.HUD_MATERIAL=14]="HUD_MATERIAL",R[R.LABEL_MATERIAL=15]="LABEL_MATERIAL",R[R.LINE_CALLOUTS=16]="LINE_CALLOUTS",R[R.LINE_CALLOUTS_HUD_DEPTH=17]="LINE_CALLOUTS_HUD_DEPTH",R[R.DRAPED_MATERIAL=18]="DRAPED_MATERIAL",R[R.DRAPED_WATER=19]="DRAPED_WATER",R[R.VOXEL=20]="VOXEL",R[R.MAX_SLOTS=21]="MAX_SLOTS"},95808:(nt,Ae,v)=>{"use strict";v.d(Ae,{L:()=>pe,s:()=>ue});var D=v(62208),R=v(67831),G=v(70026),Z=v(19597),Q=v(651),$=v(91056),W=v(39114),B=v(12407),H=v(86962),X=v(2078);class te extends $.A{initializeProgram(me){return new B.$(me.rctx,te.shader.get().build(),W.i)}initializePipeline(){return(0,X.sm)({colorWrite:X.BK})}}te.shader=new Q.J(H.S,()=>v.e(857).then(v.bind(v,90857)));var ae=v(52376);class oe extends $.A{initializeProgram(me){return new B.$(me.rctx,oe.shader.get().build(),W.i)}initializePipeline(){return(0,X.sm)({colorWrite:X.BK})}}oe.shader=new Q.J(ae.S,()=>v.e(3999).then(v.bind(v,73999)));var le=v(99770),de=v(17625);class se extends de.K{constructor(){super(...arguments),this.projScale=1}}class re extends se{}class j extends de.K{}class Y extends j{constructor(){super(...arguments),this.blurSize=(0,le.a)()}}var ee=v(67969),ie=v(85775),J=v(55086),ce=v(26906);const ue=2;class pe{constructor(me,ge,_e){this._techniqueRepository=me,this._rctx=ge,this._requestRender=_e,this._enabled=!1,this._quadVAO=null,this._passParameters=new re,this._drawParameters=new Y}dispose(){this._quadVAO=(0,D.M2)(this._quadVAO)}disposeOffscreenBuffers(){(0,D.yw)(this._ssaoFBO,me=>me.resize(0,0)),(0,D.yw)(this._blur0FBO,me=>me.resize(0,0)),(0,D.yw)(this._blur1FBO,me=>me.resize(0,0))}set enabled(me){me?this._enable():this._disable()}get enabled(){return this._enabled}get ready(){return this.enabled&&(0,D.pC)(this._passParameters.noiseTexture)&&(0,D.pC)(this._ssaoFBO)&&(0,D.pC)(this._blur0FBO)&&(0,D.pC)(this._blur1FBO)}get loading(){return this.enabled&&!this.ready}get colorTexture(){return(0,D.pC)(this._blur1FBO)?this._blur1FBO.colorTexture:null}get width(){return(0,D.pC)(this._ssaoFBO)?this._ssaoFBO.width:-1}get height(){return(0,D.pC)(this._ssaoFBO)?this._ssaoFBO.height:-1}computeSSAO(me,ge,_e){if(!this.enabled||(0,D.Wi)(ge)||(0,D.Wi)(_e)||(0,D.Wi)(this._passParameters.noiseTexture)||(0,D.Wi)(this._ssaoFBO)||(0,D.Wi)(this._blur0FBO)||(0,D.Wi)(this._blur1FBO))return;const Ee=this._rctx,De=me.camera;this._passParameters.normalTexture=_e,this._passParameters.depthTexture=ge,this._passParameters.projScale=1/De.computeRenderPixelSizeAtDist(1);const be=De.fullViewport,Se=be[2],ye=be[3],ve=Se/ue,xe=ye/ue;this._ssaoFBO.resize(Se,ye),this._blur0FBO.resize(ve,xe),this._blur1FBO.resize(ve,xe),(0,D.Wi)(this._quadVAO)&&(this._quadVAO=(0,Z.ow)(this._rctx)),Ee.bindFramebuffer(this._ssaoFBO),Ee.setViewport(0,0,Se,ye),Ee.bindTechnique(this._ssaoTechnique,this._passParameters,me).bindDraw(this._drawParameters,me,this._passParameters),Ee.bindVAO(this._quadVAO),Ee.drawArrays(ee.MX.TRIANGLE_STRIP,0,(0,ce._V)(this._quadVAO,"geometry"));const ze=Ee.bindTechnique(this._blurTechnique,this._passParameters,me);Ee.setViewport(0,0,ve,xe),Ee.bindFramebuffer(this._blur0FBO),this._drawParameters.colorTexture=this._ssaoFBO.colorTexture,(0,R.s)(this._drawParameters.blurSize,0,ue/ye),ze.bindDraw(this._drawParameters,me,this._passParameters),Ee.setViewport(0,0,ve,xe),Ee.drawArrays(ee.MX.TRIANGLE_STRIP,0,(0,ce._V)(this._quadVAO,"geometry")),Ee.bindFramebuffer(this._blur1FBO),this._drawParameters.colorTexture=this._blur0FBO.colorTexture,(0,R.s)(this._drawParameters.blurSize,ue/Se,0),ze.bindDraw(this._drawParameters,me,this._passParameters),Ee.drawArrays(ee.MX.TRIANGLE_STRIP,0,(0,ce._V)(this._quadVAO,"geometry")),Ee.setViewport(be[0],be[1],be[2],be[3])}_selectPrograms(){(0,D.Wi)(this._ssaoTechnique)&&(this._ssaoTechnique=this._techniqueRepository.acquire(oe)),(0,D.Wi)(this._blurTechnique)&&(this._blurTechnique=this._techniqueRepository.acquire(te))}_enable(){this.enabled||(this._enabled=!0,this._loadResources(()=>{this._enabled&&this._initialize()}))}_loadResources(me){this._data?me():v.e(181).then(v.bind(v,10181)).then(ge=>{this._data=ge,me()})}_initialize(){const me={target:ee.No.TEXTURE_2D,pixelFormat:ee.VI.RGBA,dataType:ee.Br.UNSIGNED_BYTE,samplingMode:ee.cw.LINEAR,wrapMode:ee.e8.CLAMP_TO_EDGE,width:0,height:0},ge={colorTarget:ee.Lm.TEXTURE,depthStencilTarget:ee.OU.NONE};(0,G.t)(this._data.noiseTexture).then(_e=>{this._enabled&&(this._ssaoFBO=new ie.X(this._rctx,ge,me),this._blur0FBO=new ie.X(this._rctx,ge,me),this._blur1FBO=new ie.X(this._rctx,ge,me),this._passParameters.noiseTexture=new J.x(this._rctx,{target:ee.No.TEXTURE_2D,pixelFormat:ee.VI.RGBA,dataType:ee.Br.UNSIGNED_BYTE,hasMipmap:!0,width:_e.width,height:_e.height},_e),this._requestRender())}),this._selectPrograms()}_disable(){this._enabled=!1,this._passParameters.noiseTexture=(0,D.M2)(this._passParameters.noiseTexture),this._blur1FBO=(0,D.M2)(this._blur1FBO),this._blur0FBO=(0,D.M2)(this._blur0FBO),this._ssaoFBO=(0,D.M2)(this._ssaoFBO)}get gpuMemoryUsage(){return((0,D.pC)(this._blur0FBO)?this._blur0FBO.gpuMemoryUsage:0)+((0,D.pC)(this._blur1FBO)?this._blur1FBO.gpuMemoryUsage:0)+((0,D.pC)(this._ssaoFBO)?this._ssaoFBO.gpuMemoryUsage:0)}get test(){return{ssao:this._ssaoFBO,blur:this._blur1FBO}}}},53319:(nt,Ae,v)=>{"use strict";v.d(Ae,{i:()=>ee,l:()=>J});var ee,et,D=v(8314),R=v(21286),G=v(62208),Z=v(550),Q=v(28347),$=v(43703),W=v(67831),B=v(99770),H=v(84161),X=v(28093),te=v(993),ae=v(4794),oe=v(59617),le=v(59856),de=v(2282),se=v(67969),re=v(85775),j=v(55086),Y=v(26906);(et=ee||(ee={}))[et.Highlight=0]="Highlight",et[et.Default=1]="Default";class ie{constructor(){this.camera=new le.V,this.lightMat=(0,$.c)()}}class J{constructor(qe,ot){this._rctx=qe,this._viewingMode=ot,this._enabled=!1,this._snapshots=new Array,this._textureSize=0,this._numCascades=1,this._maxNumCascades=4,this._splitSchemeLambda=0,this._warp=!0,this._cascadeDistances=[0,0,0,0,0],this._usedCascadeDistances=(0,ae.c)(),this._cascades=[new ie,new ie,new ie,new ie],this._maxTextureSize=Math.min((0,D.Z)("esri-mobile")?2048:8192,this._rctx.parameters.maxTextureSize)}get depthTexture(){return this._depthTexture}get textureSize(){return this._textureSize}get numCascades(){return this._numCascades}get cascadeDistances(){return(0,te.s)(this._usedCascadeDistances,this._cascadeDistances[0],this._numCascades>1?this._cascadeDistances[1]:1/0,this._numCascades>2?this._cascadeDistances[2]:1/0,this._numCascades>3?this._cascadeDistances[3]:1/0)}dispose(){this._discardDepthTexture(),this._discardAllSnapshots()}set maxCascades(qe){this._maxNumCascades=(0,R.uZ)(Math.floor(qe),1,4)}get maxCascades(){return this._maxNumCascades}set enabled(qe){this._enabled=qe,qe||(this._discardDepthTexture(),this._discardAllSnapshots())}get enabled(){return this._enabled}get ready(){return this._enabled&&(0,G.pC)(this._depthTexture)}getSnapshot(qe){return this.enabled?this._snapshots[qe]:null}getCascades(){for(let qe=0;qegr&&(gr=Ft)}(0,W.c)(ut,Ce),(0,W.b)(He,je,pr-qe),(0,W.j)(ut,ut,He);let ar=-1,Fr=1,mr=0,wt=0;for(let St=0;St<8;++St){(0,W.a)(Ie,et[St],ut),(0,W.f)(Ie,Ie);const Ft=je[0]*Ie[1]-je[1]*Ie[0];Ft>0?Ft>ar&&(ar=Ft,mr=St):Ft0,"leftArea"),(0,de.T)(Fr<0,"rightArea"),(0,W.b)(Ge,je,pr),(0,W.j)(Ge,Ge,Ce),(0,W.b)(Pe,je,gr),(0,W.j)(Pe,Pe,Ce),Le[0]=-je[1],Le[1]=je[0];const or=(0,de.ep)(ut,et[wt],Pe,(0,W.j)(He,Pe,Le),1,_t),sr=(0,de.ep)(ut,et[mr],Pe,He,1,Ct),rr=(0,de.ep)(ut,et[mr],Ge,(0,W.j)(He,Ge,Le),1,vt),Et=(0,de.ep)(ut,et[wt],Ge,He,1,Lt);(0,de.T)(or,"rayRay"),(0,de.T)(sr,"rayRay"),(0,de.T)(rr,"rayRay"),(0,de.T)(Et,"rayRay")}(me,vt,Lt,Ee,De,be,Se,ye),function tt(et,qe,ot,ut,_t){(0,W.a)(Je,ot,ut),(0,W.b)(Je,Je,.5),rt[0]=Je[0],rt[1]=Je[1],rt[2]=0,rt[3]=Je[1],rt[4]=-Je[0],rt[5]=0,rt[6]=Je[0]*Je[0]+Je[1]*Je[1],rt[7]=Je[0]*Je[1]-Je[1]*Je[0],rt[8]=1,rt[Ne(0,2)]=-(0,W.h)(Ye(rt,0),et),rt[Ne(1,2)]=-(0,W.h)(Ye(rt,1),et);let Ct=(0,W.h)(Ye(rt,0),ot)+rt[Ne(0,2)],vt=(0,W.h)(Ye(rt,1),ot)+rt[Ne(1,2)],Lt=(0,W.h)(Ye(rt,0),ut)+rt[Ne(0,2)],jt=(0,W.h)(Ye(rt,1),ut)+rt[Ne(1,2)];Ct=-(Ct+Lt)/(vt+jt),rt[Ne(0,0)]+=rt[Ne(1,0)]*Ct,rt[Ne(0,1)]+=rt[Ne(1,1)]*Ct,rt[Ne(0,2)]+=rt[Ne(1,2)]*Ct,Ct=1/((0,W.h)(Ye(rt,0),ot)+rt[Ne(0,2)]),vt=1/((0,W.h)(Ye(rt,1),ot)+rt[Ne(1,2)]),rt[Ne(0,0)]*=Ct,rt[Ne(0,1)]*=Ct,rt[Ne(0,2)]*=Ct,rt[Ne(1,0)]*=vt,rt[Ne(1,1)]*=vt,rt[Ne(1,2)]*=vt,rt[Ne(2,0)]=rt[Ne(1,0)],rt[Ne(2,1)]=rt[Ne(1,1)],rt[Ne(2,2)]=rt[Ne(1,2)],rt[Ne(1,2)]+=1,Ct=(0,W.h)(Ye(rt,1),qe)+rt[Ne(1,2)],vt=(0,W.h)(Ye(rt,2),qe)+rt[Ne(2,2)],Lt=(0,W.h)(Ye(rt,1),ot)+rt[Ne(1,2)],jt=(0,W.h)(Ye(rt,2),ot)+rt[Ne(2,2)],Ct=-.5*(Ct/vt+Lt/jt),rt[Ne(1,0)]+=rt[Ne(2,0)]*Ct,rt[Ne(1,1)]+=rt[Ne(2,1)]*Ct,rt[Ne(1,2)]+=rt[Ne(2,2)]*Ct,Ct=(0,W.h)(Ye(rt,1),qe)+rt[Ne(1,2)],vt=(0,W.h)(Ye(rt,2),qe)+rt[Ne(2,2)],Lt=-vt/Ct,rt[Ne(1,0)]*=Lt,rt[Ne(1,1)]*=Lt,rt[Ne(1,2)]*=Lt,_t[0]=rt[0],_t[1]=rt[1],_t[2]=0,_t[3]=rt[2],_t[4]=rt[3],_t[5]=rt[4],_t[6]=0,_t[7]=rt[5],_t[8]=0,_t[9]=0,_t[10]=1,_t[11]=0,_t[12]=rt[6],_t[13]=rt[7],_t[14]=0,_t[15]=rt[8]}(Ee,De,Se,ye,ut.camera.projectionMatrix),ut.camera.projectionMatrix[10]=2/(ge[2]-_e[2]),ut.camera.projectionMatrix[14]=-(ge[2]+_e[2])/(ge[2]-_e[2])}_setupMatrices(qe,ot){(0,Q.m)(ue,qe.projectionMatrix,qe.viewMatrix),(0,Q.a)(pe,ue);const ut=this._viewingMode===oe.JY.Global?qe.eye:(0,H.s)(xe,0,0,1);(0,Q.q)(ve,[0,0,0],[-ot[0],-ot[1],-ot[2]],ut)}_clampNearFar(qe){let{near:ot,far:ut}=qe;return ot<2&&(ot=2),ut<2&&(ut=2),ot>=ut&&(ot=2,ut=4),{near:ot,far:ut}}_computeCascadeDistances(qe,ot){this._numCascades=Math.min(1+Math.floor((0,de.E6)(qe/ot,4)),this._maxNumCascades);const ut=(qe-ot)/this._numCascades,_t=(qe/ot)**(1/this._numCascades);let Ct=ot,vt=ot;for(let Lt=0;Ltqe+(0,Y.un)(ot),this._fbo?.gpuMemoryUsage??0)}get test(){const qe=this;return{maxNumCascades:this._maxNumCascades,cascades:this._cascades,textureSize:this._textureSize,set splitSchemeLambda(ot){qe._splitSchemeLambda=ot},get splitSchemeLambda(){return qe._splitSchemeLambda},set warp(ot){qe._warp=ot},get warp(){return qe._warp}}}}const ce=(0,$.c)(),ue=(0,$.c)(),pe=(0,$.c)(),he=(0,ae.c)(),me=[];for(let et=0;et<8;++et)me.push((0,ae.c)());const ge=(0,X.c)(),_e=(0,X.c)(),Ee=(0,B.a)(),De=(0,B.a)(),be=(0,B.a)(),Se=(0,B.a)(),ye=(0,B.a)(),ve=(0,$.c)(),xe=(0,X.c)(),ze=[],Ke=(0,$.c)(),We=new Float32Array(64),Ce=(0,B.a)(),Be=(0,B.a)(),Fe=[(0,B.a)(),(0,B.a)(),(0,B.a)(),(0,B.a)()],je=(0,B.a)(),Re=(0,B.a)(),He=(0,B.a)(),Ie=(0,B.a)(),Ge=(0,B.a)(),Pe=(0,B.a)(),Le=(0,B.a)();function Ne(et,qe){return 3*qe+et}const Xe=(0,B.a)();function Ye(et,qe){return(0,W.s)(Xe,et[qe],et[qe+3]),Xe}const Je=(0,B.a)(),rt=(0,Z.c)()},14411:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>re});var D=v(17626),R=v(14517),G=v(88159),Z=v(62208),Q=v(77029),$=v(77712),H=(v(85931),v(90912),v(76898)),X=v(28093),te=v(26594),ae=v(62483),oe=v(67857),le=v(54840),de=v(83196),se=v(38516);let re=class extends R.Z{constructor(J){super(J),this._pending=new j,this._changes=new te.as,this._materialRenderers=new Map,this._sortedMaterialRenderers=new Q.Z,this._geometries=new Map,this._hasHighlights=!1,this._hasWater=!1}destroy(){this._changes.prune(),this._materialRenderers.forEach(J=>J.dispose()),this._materialRenderers.clear(),this._sortedMaterialRenderers.clear(),this._geometries.clear()}get updating(){return!this._pending.empty||this._changes.updates.length>0}get rctx(){return this.rendererContext.rctx}get _materialRepository(){return this.rendererContext.materialRepository}get _localOriginFactory(){return this.rendererContext.localOriginFactory}get hasHighlights(){return this._hasHighlights}get hasWater(){return this._hasWater}get rendersOccluded(){return(0,G.oE)(this._materialRenderers,J=>J.rendersOccluded)}get isEmpty(){return!this.updating&&0===this._materialRenderers.size&&0===this._geometries.size}commitChanges(){if(!this.updating)return!1;this._processAddsRemoves();const J=(0,de.q)(this._changes);let ce=!1,ue=!1,pe=!1;return J.forEach((he,me)=>{let ge=this._materialRenderers.get(me);if(!ge&&he.adds.length>0&&(ge=new se.A(this.rctx,this._materialRepository,me),this._materialRenderers.set(me,ge),ce=!0,ue=!0,pe=!0),!ge)return;const _e=ue||ge.hasHighlights,Ee=pe||ge.hasWater;ge.modify(he),ue=ue||_e!==ge.hasHighlights,pe=pe||Ee!==ge.hasWater,ge.isEmpty&&(this._materialRenderers.delete(me),ge.dispose(),ce=!0)}),this._changes.clear(),ce&&this._updateSortedMaterialRenderers(),ue&&(this._hasHighlights=(0,G.oE)(this._materialRenderers,he=>he.hasHighlights)),pe&&(this._hasWater=(0,G.oE)(this._materialRenderers,he=>he.hasWater)),this.notifyChange("updating"),!0}addGeometries(J,ce){if(0===J.length)return;const ue=this._validateRenderGeometries(J);for(const he of ue)this._geometries.set(he.id,he);const pe=this._pending.empty;for(const he of ue)this._pending.adds.add(he);pe&&this.notifyChange("updating"),ce===le.T.UPDATE&&this._notifyGraphicGeometryChanged(J)}removeGeometries(J,ce){const ue=this._pending.empty,pe=this._pending.adds;for(const he of J)pe.has(he)?(this._pending.removed.add(he),pe.delete(he)):this._pending.removed.has(he)||this._pending.removes.add(he),this._geometries.delete((0,Z.Wg)(he.id));ue&&!this._pending.empty&&this.notifyChange("updating"),ce===le.T.UPDATE&&this._notifyGraphicGeometryChanged(J)}modifyGeometries(J,ce){const ue=0===this._changes.updates.length;for(const pe of J){const he=this._changes.updates.pushNew();he.renderGeometry=this._validateRenderGeometry(pe),he.updateType=ce}switch(ue&&this._changes.updates.length>0&&this.notifyChange("updating"),ce){case le.$.TRANSFORMATION:case le.$.VERTEXATTRS:return this._notifyGraphicGeometryChanged(J);case le.$.VISIBILITIES:return this._notifyGraphicVisibilityChanged(J)}}updateAnimation(J){let ce=!1;return this._sortedMaterialRenderers.forAll(({materialRenderer:ue})=>ce=ue.updateAnimation(J)||ce),ce}render(J,ce){for(let ue=0;ue{if(pe&&!pe(me))return;this._intersectRenderGeometry(me,ue,ce,0,J,he);const ge=this.rendererContext.longitudeCyclical;ge&&(me.boundingSphere[0]-me.boundingSphere[3]ge.max&&this._intersectRenderGeometry(me,ue,ce,-ge.range,J,he)),he++}),he}_updateSortedMaterialRenderers(){this._sortedMaterialRenderers.clear();let J=0;this._materialRenderers.forEach((ce,ue)=>{ue.insertOrder=J++,this._sortedMaterialRenderers.push({material:ue,materialRenderer:ce})}),this._sortedMaterialRenderers.sort((ce,ue)=>{const pe=ue.material.renderPriority-ce.material.renderPriority;return 0!==pe?pe:ce.material.insertOrder-ue.material.insertOrder})}_processAddsRemoves(){this._changes.adds.clear(),this._changes.removes.clear(),this._changes.adds.pushArray(Array.from(this._pending.adds)),this._changes.removes.pushArray(Array.from(this._pending.removes));for(let J=0;J{!function Y(J,ce,ue,pe,he,me,ge){const _e={layerUid:me,graphicUid:ge,triangleNr:ce},Ee=De=>{De.set(oe.q7.OVERLAY,_e,J.dist,J.normal,J.transformation,ue,pe)};if((null==he.results.min.drapedLayerOrder||ue>=he.results.min.drapedLayerOrder)&&(null==he.results.min.dist||he.results.ground.dist<=he.results.min.dist)&&Ee(he.results.min),he.options.store!==oe.eC.MIN&&(null==he.results.max.drapedLayerOrder||uehe.results.max.dist)&&Ee(he.results.max),he.options.store===oe.eC.ALL){const De=(0,ae.LP)(he.ray);Ee(De),he.results.all.push(De)}}(ce,De,J.material.renderPriority,me,he,J.layerUid,J.graphicUid)},J.calculateShaderTransformation,ce)}_notifyGraphicGeometryChanged(J){if((0,Z.Wi)(this.drapeSource.notifyGraphicGeometryChanged))return;let ce;for(const ue of J){const pe=ue.graphicUid;(0,Z.pC)(pe)&&pe!==ce&&(this.drapeSource.notifyGraphicGeometryChanged(pe),ce=pe)}}_notifyGraphicVisibilityChanged(J){if((0,Z.Wi)(this.drapeSource.notifyGraphicVisibilityChanged))return;let ce;for(const ue of J){const pe=ue.graphicUid;(0,Z.pC)(pe)&&pe!==ce&&(this.drapeSource.notifyGraphicVisibilityChanged(pe),ce=pe)}}_validateRenderGeometries(J){for(const ce of J)this._validateRenderGeometry(ce);return J}_validateRenderGeometry(J){return(0,Z.Wi)(J.origin)&&(J.origin=this._localOriginFactory.getOrigin(J.boundingSphere)),J}get test(){return{sortedMaterialRenderers:this._sortedMaterialRenderers}}};(0,D._)([(0,$.Cb)()],re.prototype,"drapeSource",void 0),(0,D._)([(0,$.Cb)()],re.prototype,"updating",null),(0,D._)([(0,$.Cb)()],re.prototype,"rctx",null),(0,D._)([(0,$.Cb)()],re.prototype,"rendererContext",void 0),(0,D._)([(0,$.Cb)()],re.prototype,"_materialRepository",null),(0,D._)([(0,$.Cb)()],re.prototype,"_localOriginFactory",null),re=(0,D._)([(0,H.j)("esri.views.3d.webgl-engine.lib.SortedRenderGeometryRenderer")],re);class j{constructor(){this.adds=new Set,this.removes=new Set,this.removed=new Set}get empty(){return 0===this.adds.size&&0===this.removes.size&&0===this.removed.size}has(ce){return this.adds.has(ce)||this.removes.has(ce)||this.removed.has(ce)}clear(){this.adds.clear(),this.removes.clear(),this.removed.clear()}}const ee=(0,X.c)(),ie=(0,X.c)()},64127:(nt,Ae,v)=>{"use strict";v.d(Ae,{JN:()=>G,P7:()=>$,RY:()=>H,YD:()=>ae,eD:()=>X,ec:()=>B,iV:()=>W,ii:()=>te,s3:()=>Q,zV:()=>Z});var D=v(42743),R=v(67969);const G={func:R.wb.LESS},Z={func:R.wb.ALWAYS},Q={mask:255},$={mask:0},W=oe=>({function:{func:R.wb.NOTEQUAL,ref:oe,mask:oe},operation:{fail:R.xS.KEEP,zFail:R.xS.KEEP,zPass:R.xS.KEEP}}),B=oe=>({function:{func:R.wb.ALWAYS,ref:oe,mask:oe},operation:{fail:R.xS.KEEP,zFail:R.xS.KEEP,zPass:R.xS.REPLACE}}),H={function:{func:R.wb.ALWAYS,ref:D.hU.OutlineVisualElementMask,mask:D.hU.OutlineVisualElementMask},operation:{fail:R.xS.KEEP,zFail:R.xS.KEEP,zPass:R.xS.ZERO}},X={function:{func:R.wb.ALWAYS,ref:D.hU.OutlineVisualElementMask,mask:D.hU.OutlineVisualElementMask},operation:{fail:R.xS.KEEP,zFail:R.xS.KEEP,zPass:R.xS.REPLACE}},te={function:{func:R.wb.EQUAL,ref:D.hU.OutlineVisualElementMask,mask:D.hU.OutlineVisualElementMask},operation:{fail:R.xS.KEEP,zFail:R.xS.KEEP,zPass:R.xS.KEEP}},ae={function:{func:R.wb.NOTEQUAL,ref:D.hU.OutlineVisualElementMask,mask:D.hU.OutlineVisualElementMask},operation:{fail:R.xS.KEEP,zFail:R.xS.KEEP,zPass:R.xS.KEEP}}},65542:(nt,Ae,v)=>{"use strict";v.d(Ae,{V:()=>W});var D=v(15861),R=v(91558),G=v(63290),Z=v(62208),Q=v(23841),$=v(4794);class W{constructor(H){this.definition=H,this.key=JSON.stringify(H),this.haloSize=Math.round(H.halo.size),this.textStyle=this._colorToRGBA(H.color),this.haloStyle=this._colorToRGB(H.halo.color),this.backgroundStyle=0!==H.background.color[3]?this._colorToRGBA(H.background.color):null}fontString(H){const X=this.definition.font;return`${X.style} ${X.weight} ${H}px ${X.family}, sans-serif`}_colorToRGB(H){return`rgb(${H.slice(0,3).map(X=>Math.floor(255*X)).toString()})`}_colorToRGBA(H){return`rgba(${H.slice(0,3).map(X=>Math.floor(255*X)).toString()},${H[3]})`}static fromSymbol(H,X=1){return(0,D.Z)(function*(){const te=(0,Z.U2)(H,"material","color"),ae=(0,Z.R2)(te,$.Z,R.Z.toUnitRGBA),oe=(0,Z.R2)(H.size,12,Q.F2),le=H.lineHeight,de=(0,Z.pC)(H.background)?R.Z.toUnitRGBA(H.background.color):$.Z,se={family:(0,Z.R2)(H.font,"sans-serif",ie=>ie.family),decoration:(0,Z.R2)(H.font,"none",ie=>ie.decoration),weight:(0,Z.R2)(H.font,"normal",ie=>ie.weight),style:(0,Z.R2)(H.font,"normal",ie=>ie.style)},re=H.halo,j=(0,Z.pC)(re)&&(0,Z.pC)(re.color)&&re.size>0?{size:(0,Q.F2)(re.size),color:R.Z.toUnitRGBA(re.color)}:{size:0,color:$.Z},Y=new W({color:ae,size:oe,background:{color:de,padding:(0,Z.pC)(H.background)?[.65*oe,.5*oe]:[0,0],borderRadius:(0,Z.pC)(H.background)?oe*(6/16):0},lineSpacingFactor:le,font:se,halo:j,pixelRatio:X}),ee=Y.fontString(oe);try{yield document.fonts.load(ee)}catch{G.Z.getLogger("esri.views.3d.webgl-engine.lib.TextRenderParameters").warnOnce(`Failed to preload font '${ee}'. Some text symbology may be rendered using the default browser font.`)}return Y})()}}},6169:(nt,Ae,v)=>{"use strict";v.d(Ae,{GZ:()=>W,tV:()=>Z,vU:()=>$});var D=v(21286),R=v(62208),G=v(93605);class Z{constructor(le,de,se,re=2048){this.text=le,this._alignment=de,this._parameters=se,this._maxSize=re,this._textWidths=[],this._lineWidths=[],this._renderPixelRatio=null,this._displayWidth=null,this._heightMetricsCached=null,this.key=`TextRenderer-${this._parameters.key}-${this._alignment}--${le}`,this._lines=le.split(/\r?\n/)}get displayWidth(){return Math.ceil(this._ensureTextWidth()+2*this._backgroundHorizontalPadding)}get displayHeight(){return Math.ceil(this._lineSpacing*(this._lines.length-1)+this._lineHeight+2*this._haloSize+this._backgroundTopPadding+this._backgroundBottomPadding)}get renderedWidth(){return Math.ceil(this._toRenderUnit(this.displayWidth))}get renderedHeight(){return Math.ceil(this._toRenderUnit(this.displayHeight))}get firstRenderedBaselinePosition(){return this._toRenderUnit(this._firstLineYOffset+this._baselinePosition)}get _firstLineYOffset(){return this._backgroundTopPadding+this._haloSize}get _heightMetrics(){return this._ensureHeightMetrics()}get _lineSpacing(){return(this._lineHeight+this._linePadding)*this._parameters.definition.lineSpacingFactor}get _lineHeight(){return this._heightMetrics.lineHeight}get _linePadding(){return this._lineHeight*H}get _baselinePosition(){return this._heightMetrics.baselinePosition}get _renderedFontSize(){return this._toRenderUnit(this._fontSize)}get _fontSize(){return this._parameters.definition.size}get _renderedHaloSize(){return this._toRenderUnit(this._haloSize)}get _haloSize(){return this._parameters.haloSize}get _backgroundHorizontalPadding(){return this._hasBackground?this._parameters.definition.background.padding[0]:0}get _backgroundVerticalPadding(){return this._hasBackground?this._parameters.definition.background.padding[1]:0}get _backgroundTopPadding(){return Math.max(0,this._backgroundVerticalPadding-this._heightMetrics.paddingTop)}get _backgroundBottomPadding(){return Math.max(0,this._backgroundVerticalPadding-this._heightMetrics.paddingBottom)}get _hasBackground(){return!!this._parameters.backgroundStyle}get renderPixelRatio(){if((0,R.Wi)(this._renderPixelRatio)){const le=this._parameters.definition.pixelRatio;this._renderPixelRatio=this._maxSize>0?Math.min(le,Math.min(this._maxSize/this.displayWidth,this._maxSize/this.displayHeight)):le}return this._renderPixelRatio}_getLineXOffset(le){switch(this._alignment){case $.Left:return this._backgroundHorizontalPadding;case $.Center:return(this.displayWidth-this._lineWidths[le])/2;case $.Right:return this.displayWidth-this._backgroundHorizontalPadding-this._lineWidths[le]}}render(le,de=0,se=0){le.save();const re=de/=this.renderPixelRatio,j=se/=this.renderPixelRatio,Y=this._haloSize,ee=this._firstLineYOffset;de+=Y,se+=ee+this._baselinePosition;const ie=this._haloSize>0;ie&&this._renderHalo(le,re,j,Y,ee),this._setFontProperties(le,this._renderedFontSize);for(let J=0;J{let oe="";for(let le=32;le<127;le++)oe+=String.fromCharCode(le);return oe})()},81695:(nt,Ae,v)=>{"use strict";v.d(Ae,{x:()=>He});var D=v(15861),R=v(94573),G=v(26584),Z=v(61885),Q=v(21286),$=v(62208),W=v(10699),B=v(55713),H=v(21726),X=v(70026),te=v(33899),ae=v(98361),oe=v(42743),le=v(13756),de=v(12699),se=v(24425),re=v(63290),j=v(67969),Y=v(55086);const ee=re.Z.getLogger("esri.views.3d.webgl-engine.lib.DDSUtil");function ue(Ge){return Ge.charCodeAt(0)+(Ge.charCodeAt(1)<<8)+(Ge.charCodeAt(2)<<16)+(Ge.charCodeAt(3)<<24)}const he=ue("DXT1"),me=ue("DXT3"),ge=ue("DXT5");var Ie,Ge,Ce=v(19597),Be=v(2282),Fe=v(85775),je=v(26906),Re=v(38210);class He extends de.c{constructor(Pe,Le){super(),this._data=Pe,this.type=se.U.Texture,this._glTexture=null,this._powerOfTwoStretchInfo=null,this._loadingPromise=null,this._loadingController=null,this.events=new Z.Z,this._passParameters=new ae.T,this.params=Le||{},this.params.mipmap=!1!==this.params.mipmap,this.params.noUnpackFlip=this.params.noUnpackFlip||!1,this.params.preMultiplyAlpha=this.params.preMultiplyAlpha||!1,this.params.wrap=this.params.wrap||{s:j.e8.REPEAT,t:j.e8.REPEAT},this.params.powerOfTwoResizeMode=this.params.powerOfTwoResizeMode||oe.CE.STRETCH,this.estimatedTexMemRequired=He._estimateTexMemRequired(this._data,this.params),this._startPreload()}_startPreload(){const Pe=this._data;(0,$.Wi)(Pe)||(Pe instanceof HTMLVideoElement?this._startPreloadVideoElement(Pe):Pe instanceof HTMLImageElement&&this._startPreloadImageElement(Pe))}_startPreloadVideoElement(Pe){if(!((0,H.jc)(Pe.src)||"auto"===Pe.preload&&Pe.crossOrigin)){Pe.preload="auto",Pe.crossOrigin="anonymous";const Le=!Pe.paused;if(Pe.src=Pe.src,Le&&Pe.autoplay){const Me=()=>{Pe.removeEventListener("canplay",Me),Pe.play()};Pe.addEventListener("canplay",Me)}}}_startPreloadImageElement(Pe){(0,H.HK)(Pe.src)||(0,H.jc)(Pe.src)||Pe.crossOrigin||(Pe.crossOrigin="anonymous",Pe.src=Pe.src)}static _getDataDimensions(Pe){return Pe instanceof HTMLVideoElement?{width:Pe.videoWidth,height:Pe.videoHeight}:Pe}static _estimateTexMemRequired(Pe,Le){if((0,$.Wi)(Pe))return 0;if((0,B.eP)(Pe)||(0,B.lq)(Pe))return Le.encoding===He.KTX2_ENCODING?(0,le._h)(Pe,Le.mipmap):Le.encoding===He.BASIS_ENCODING?(0,le.$u)(Pe,Le.mipmap):Pe.byteLength;const{width:Me,height:Ne}=Pe instanceof Image||Pe instanceof ImageData||Pe instanceof HTMLCanvasElement||Pe instanceof HTMLVideoElement?He._getDataDimensions(Pe):Le;return(Le.mipmap?4/3:1)*Me*Ne*(Le.components||4)||0}dispose(){this._data=void 0}get width(){return this.params.width}get height(){return this.params.height}_createDescriptor(Pe){return{target:j.No.TEXTURE_2D,pixelFormat:j.VI.RGBA,dataType:j.Br.UNSIGNED_BYTE,wrapMode:this.params.wrap,flipped:!this.params.noUnpackFlip,samplingMode:this.params.mipmap?j.cw.LINEAR_MIPMAP_LINEAR:j.cw.LINEAR,hasMipmap:this.params.mipmap,preMultiplyAlpha:this.params.preMultiplyAlpha,maxAnisotropy:this.params.maxAnisotropy??(this.params.mipmap?Pe.parameters.maxMaxAnisotropy:1)}}get glTexture(){return this._glTexture}load(Pe,Le){if((0,$.pC)(this._glTexture))return this._glTexture;if((0,$.pC)(this._loadingPromise))return this._loadingPromise;const Me=this._data;return(0,$.Wi)(Me)?(this._glTexture=new Y.x(Pe,this._createDescriptor(Pe),null),this._glTexture):"string"==typeof Me?this._loadFromURL(Pe,Le,Me):Me instanceof Image?this._loadFromImageElement(Pe,Le,Me):Me instanceof HTMLVideoElement?this._loadFromVideoElement(Pe,Le,Me):Me instanceof ImageData||Me instanceof HTMLCanvasElement?this._loadFromImage(Pe,Me,Le):((0,B.eP)(Me)||(0,B.lq)(Me))&&this.params.encoding===He.DDS_ENCODING?(this._data=void 0,this._loadFromDDSData(Pe,Me)):((0,B.eP)(Me)||(0,B.lq)(Me))&&this.params.encoding===He.KTX2_ENCODING?(this._data=void 0,this._loadFromKTX2(Pe,Me)):((0,B.eP)(Me)||(0,B.lq)(Me))&&this.params.encoding===He.BASIS_ENCODING?(this._data=void 0,this._loadFromBasis(Pe,Me)):(0,B.lq)(Me)?this._loadFromPixelData(Pe,Me):(0,B.eP)(Me)?this._loadFromPixelData(Pe,new Uint8Array(Me)):null}get requiresFrameUpdates(){return this._data instanceof HTMLVideoElement}frameUpdate(Pe,Le,Me){if(!(this._data instanceof HTMLVideoElement)||(0,$.Wi)(this._glTexture)||this._data.readyState>8&255,Ge>>16&255,Ge>>24&255)}(Me)),null}let Ye=1,Je=Le[4],rt=Le[3];0==(3&Je)&&0==(3&rt)||(ee.warn("Rounding up compressed texture size to nearest multiple of 4."),Je=Je+3&-4,rt=rt+3&-4);const tt=Je,et=rt;let qe,ot;131072&Le[2]&&!1!==Pe&&(Ye=Math.max(1,Le[7])),1===Ye||(0,Q.wt)(Je)&&(0,Q.wt)(rt)||(ee.warn("Ignoring mipmaps of non power of two sized compressed texture."),Ye=1);let ut=Le[1]+4;const _t=[];for(let Ct=0;Ct>2)*(rt+3>>2)*Ne,qe=new Uint8Array(Ge,ut,ot),_t.push(qe),ut+=ot,Je=Math.max(1,Je>>1),rt=Math.max(1,rt>>1);return{textureData:{type:"compressed",levels:_t},internalFormat:Xe,width:tt,height:et}}(Le,Pe.hasMipmap??!1));return Pe.samplingMode=Me.levels.length>1?j.cw.LINEAR_MIPMAP_LINEAR:j.cw.LINEAR,Pe.hasMipmap=Me.levels.length>1,Pe.internalFormat=Ne,Pe.width=Xe,Pe.height=Ye,new Y.x(Ge,Pe,Me)}(Pe,this._createDescriptor(Pe),Le),this._glTexture}_loadFromKTX2(Pe,Le){return this._loadAsync(()=>(0,le.pk)(Pe,this._createDescriptor(Pe),Le).then(Me=>(this._glTexture=Me,Me)))}_loadFromBasis(Pe,Le){return this._loadAsync(()=>(0,le.fX)(Pe,this._createDescriptor(Pe),Le).then(Me=>(this._glTexture=Me,Me)))}_loadFromPixelData(Pe,Le){(0,Be.hu)(this.params.width>0&&this.params.height>0);const Me=this._createDescriptor(Pe);return Me.pixelFormat=1===this.params.components?j.VI.LUMINANCE:3===this.params.components?j.VI.RGB:j.VI.RGBA,Me.width=this.params.width,Me.height=this.params.height,this._glTexture=new Y.x(Pe,Me,Le),this._glTexture}_loadFromURL(Pe,Le,Me){var Ne=this;return this._loadAsync(function(){var Xe=(0,D.Z)(function*(Ye){const Je=yield(0,X.t)(Me,{signal:Ye});return(0,W.k_)(Ye),Ne._loadFromImage(Pe,Je,Le)});return function(Ye){return Xe.apply(this,arguments)}}())}_loadFromImageElement(Pe,Le,Me){var Ne=this;return Me.complete?this._loadFromImage(Pe,Me,Le):this._loadAsync(function(){var Xe=(0,D.Z)(function*(Ye){const Je=yield(0,te.fY)(Me,Me.src,!1,Ye);return(0,W.k_)(Ye),Ne._loadFromImage(Pe,Je,Le)});return function(Ye){return Xe.apply(this,arguments)}}())}_loadFromVideoElement(Pe,Le,Me){return Me.readyState>=Ie.HAVE_CURRENT_DATA?this._loadFromImage(Pe,Me,Le):this._loadFromVideoElementAsync(Pe,Le,Me)}_loadFromVideoElementAsync(Pe,Le,Me){return this._loadAsync(Ne=>new Promise((Xe,Ye)=>{const Je=()=>{Me.removeEventListener("loadeddata",rt),Me.removeEventListener("error",tt),(0,$.hw)(et)},rt=()=>{Me.readyState>=Ie.HAVE_CURRENT_DATA&&(Je(),Xe(this._loadFromImage(Pe,Me,Le)))},tt=qe=>{Je(),Ye(qe||new G.Z("Failed to load video"))};Me.addEventListener("loadeddata",rt),Me.addEventListener("error",tt);const et=(0,W.fu)(Ne,()=>tt((0,W.zE)()))}))}_loadFromImage(Pe,Le,Me){const Ne=He._getDataDimensions(Le);this.params.width=Ne.width,this.params.height=Ne.height;const Xe=this._createDescriptor(Pe);return Xe.pixelFormat=3===this.params.components?j.VI.RGB:j.VI.RGBA,!this._requiresPowerOfTwo(Pe,Xe)||(0,Q.wt)(Ne.width)&&(0,Q.wt)(Ne.height)?(Xe.width=Ne.width,Xe.height=Ne.height,this._glTexture=new Y.x(Pe,Xe,Le),this._glTexture):(this._glTexture=this._makePowerOfTwoTexture(Pe,Le,Ne,Xe,Me),this._glTexture)}_loadAsync(Pe){const Le=new AbortController;this._loadingController=Le;const Me=Pe(Le.signal);this._loadingPromise=Me;const Ne=()=>{this._loadingController===Le&&(this._loadingController=null),this._loadingPromise===Me&&(this._loadingPromise=null)};return Me.then(Ne,Ne),Me}_requiresPowerOfTwo(Pe,Le){const Me=j.e8.CLAMP_TO_EDGE,Ne="number"==typeof Le.wrapMode?Le.wrapMode===Me:Le.wrapMode.s===Me&&Le.wrapMode.t===Me;return!(0,Re.Z)(Pe.gl)&&(Le.hasMipmap||!Ne)}_makePowerOfTwoTexture(Pe,Le,Me,Ne,Xe){const{width:Ye,height:Je}=Me,rt=(0,Q.Sf)(Ye),tt=(0,Q.Sf)(Je);let et;switch(Ne.width=rt,Ne.height=tt,this.params.powerOfTwoResizeMode){case oe.CE.PAD:Ne.textureCoordinateScaleFactor=[Ye/rt,Je/tt],et=new Y.x(Pe,Ne),et.updateData(0,0,0,Ye,Je,Le);break;case oe.CE.STRETCH:case null:case void 0:et=this._stretchToPowerOfTwo(Pe,Le,Ne,Xe());break;default:(0,R.Bg)(this.params.powerOfTwoResizeMode)}return Ne.hasMipmap&&et.generateMipmap(),et}_stretchToPowerOfTwo(Pe,Le,Me,Ne){const Xe=new Y.x(Pe,Me),Ye=new Fe.X(Pe,{colorTarget:j.Lm.TEXTURE,depthStencilTarget:j.OU.NONE},Xe),Je=new Y.x(Pe,{target:j.No.TEXTURE_2D,pixelFormat:Me.pixelFormat,dataType:j.Br.UNSIGNED_BYTE,wrapMode:j.e8.CLAMP_TO_EDGE,samplingMode:j.cw.LINEAR,flipped:!!Me.flipped,maxAnisotropy:8,preMultiplyAlpha:Me.preMultiplyAlpha},Le),rt=(0,Ce.ow)(Pe),tt=Pe.getBoundFramebufferObject();return this._drawStretchedTexture(Pe,Ne,Ye,rt,Je,Xe),this.requiresFrameUpdates?this._powerOfTwoStretchInfo={vao:rt,sourceTexture:Je,framebuffer:Ye}:(rt.dispose(!0),Je.dispose(),Ye.detachColorTexture(),Ye.dispose()),Pe.bindFramebuffer(tt),Xe}_drawStretchedTexture(Pe,Le,Me,Ne,Xe,Ye){this._passParameters.texture=Xe,Pe.bindFramebuffer(Me);const Je=Pe.getViewport();Pe.setViewport(0,0,Ye.descriptor.width,Ye.descriptor.height),Pe.bindTechnique(Le,this._passParameters,null),Pe.bindVAO(Ne),Pe.drawArrays(j.MX.TRIANGLE_STRIP,0,(0,je._V)(Ne,"geometry")),Pe.bindFramebuffer(null),Pe.setViewport(Je.x,Je.y,Je.width,Je.height),this._passParameters.texture=null}unload(){if((0,$.pC)(this._powerOfTwoStretchInfo)){const{framebuffer:Pe,vao:Le,sourceTexture:Me}=this._powerOfTwoStretchInfo;Le.dispose(!0),Me.dispose(),Pe.dispose(),this._glTexture=null,this._powerOfTwoStretchInfo=null}if((0,$.pC)(this._glTexture)&&(this._glTexture.dispose(),this._glTexture=null),(0,$.pC)(this._loadingController)){const Pe=this._loadingController;this._loadingController=null,this._loadingPromise=null,Pe.abort()}this.events.emit("unloaded")}}He.DDS_ENCODING="image/vnd-ms.dds",He.KTX2_ENCODING="image/ktx2",He.BASIS_ENCODING="image/x.basis",(Ge=Ie||(Ie={}))[Ge.HAVE_NOTHING=0]="HAVE_NOTHING",Ge[Ge.HAVE_METADATA=1]="HAVE_METADATA",Ge[Ge.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",Ge[Ge.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",Ge[Ge.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"},80855:(nt,Ae,v)=>{"use strict";v.d(Ae,{K:()=>B});var D=v(98361),R=v(651),G=v(91056),Z=v(39114),Q=v(12407),$=v(67969),W=v(2078);class B extends G.A{initializeProgram(X){return new Q.$(X.rctx,B.shader.get().build(),Z.i)}initializePipeline(){return(0,W.sm)(this.configuration.hasAlpha?{blending:(0,W.wK)($.zi.SRC_ALPHA,$.zi.ONE,$.zi.ONE_MINUS_SRC_ALPHA,$.zi.ONE_MINUS_SRC_ALPHA),colorWrite:W.BK}:{colorWrite:W.BK})}}B.shader=new R.J(D.a,()=>v.e(6859).then(v.bind(v,98101)))},97825:(nt,Ae,v)=>{"use strict";v.d(Ae,{V:()=>G});var D=v(17626),R=v(87601);class G extends R.m{constructor(){super(...arguments),this.hasAlpha=!1}}(0,D._)([(0,R.o)()],G.prototype,"hasAlpha",void 0)},44835:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{A:()=>D}),(R=D||(D={}))[R.Color=0]="Color",R[R.Alpha=1]="Alpha",R[R.FrontFace=2]="FrontFace",R[R.NONE=3]="NONE",R[R.COUNT=4]="COUNT"},2282:(nt,Ae,v)=>{"use strict";v.d(Ae,{E6:()=>te,Kj:()=>le,RQ:()=>re,T:()=>W,ep:()=>H,hu:()=>$,iV:()=>X,kG:()=>oe,tM:()=>se,u_:()=>ae,yK:()=>B,zF:()=>de});var D=v(99770),R=v(993);const Z=(0,v(4794).c)();class Q{constructor(Y){this.message=Y}toString(){return`AssertException: ${this.message}`}}function $(j,Y){if(!j)throw Y=Y||"assert",console.log(new Error(Y).stack),new Q(Y)}function W(j,Y){j||(Y=Y||"",console.warn("Verify failed: "+Y+"\n"+new Error("verify").stack))}function B(j,Y,ee,ie){let J,ce=(ee[0]-j[0])/Y[0],ue=(ie[0]-j[0])/Y[0];ce>ue&&(J=ce,ce=ue,ue=J);let pe=(ee[1]-j[1])/Y[1],he=(ie[1]-j[1])/Y[1];if(pe>he&&(J=pe,pe=he,he=J),ce>he||pe>ue)return!1;pe>ce&&(ce=pe),hege&&(J=me,me=ge,ge=J),!(ce>ge||me>ue||(ge2&&(J[2]=-Z[2]),(0,R.t)(Z,Z,ee),$(0!==Z[3]),J[0]=Z[0]/Z[3],J[1]=Z[1]/Z[3],J[2]=Z[2]/Z[3],J[0]=(.5*J[0]+.5)*ie[2]+ie[0],J[1]=(.5*J[1]+.5)*ie[3]+ie[1]}function te(j,Y){return Math.log(j)/Math.log(Y)}function ae(j,Y,ee,ie){j[12]=Y,j[13]=ee,j[14]=ie}function oe(j){return 1===j[0]&&0===j[1]&&0===j[2]&&0===j[3]&&0===j[4]&&1===j[5]&&0===j[6]&&0===j[7]&&0===j[8]&&0===j[9]&&1===j[10]&&0===j[11]&&1===j[15]}function le(j,Y,ee){return 2*Math.atan(Math.sqrt(Y*Y+ee*ee)*Math.tan(.5*j)/Y)}function de(j,Y,ee){return 2*Math.atan(Math.sqrt(Y*Y+ee*ee)*Math.tan(.5*j)/ee)}function se(j,Y,ee){return 2*Math.atan(Y*Math.tan(.5*j)/Math.sqrt(Y*Y+ee*ee))}function re(j,Y,ee){return 2*Math.atan(ee*Math.tan(.5*j)/Math.sqrt(Y*Y+ee*ee))}},15197:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>R});var D=v(49353);class R extends D.U{}},16396:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{T:()=>D}),(R=D||(D={})).POSITION="position",R.NORMAL="normal",R.UV0="uv0",R.AUXPOS1="auxpos1",R.AUXPOS2="auxpos2",R.MAPPOS="mapPos",R.COLOR="color",R.SYMBOLCOLOR="symbolColor",R.SIZE="size",R.TANGENT="tangent",R.OFFSET="offset",R.SUBDIVISIONFACTOR="subdivisionFactor",R.COLORFEATUREATTRIBUTE="colorFeatureAttribute",R.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",R.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",R.DISTANCETOSTART="distanceToStart",R.UVMAPSPACE="uvMapSpace",R.BOUNDINGRECT="boundingRect",R.UVREGION="uvRegion",R.NORMALCOMPRESSED="normalCompressed",R.PROFILERIGHT="profileRight",R.PROFILEUP="profileUp",R.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",R.FEATUREVALUE="featureValue",R.MODELORIGINHI="modelOriginHi",R.MODELORIGINLO="modelOriginLo",R.MODEL="model",R.MODELNORMAL="modelNormal",R.INSTANCECOLOR="instanceColor",R.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",R.LOCALTRANSFORM="localTransform",R.GLOBALTRANSFORM="globalTransform",R.BOUNDINGSPHERE="boundingSphere",R.MODELORIGIN="modelOrigin",R.MODELSCALEFACTORS="modelScaleFactors",R.FEATUREATTRIBUTE="featureAttribute",R.STATE="state",R.LODLEVEL="lodLevel",R.POSITION0="position0",R.POSITION1="position1",R.NORMALA="normalA",R.NORMALB="normalB",R.COMPONENTINDEX="componentIndex",R.VARIANTOFFSET="variantOffset",R.VARIANTSTROKE="variantStroke",R.VARIANTEXTENSION="variantExtension",R.U8PADDING="u8padding",R.U16PADDING="u16padding",R.SIDENESS="sideness",R.START="start",R.END="end",R.UP="up",R.EXTRUDE="extrude",R.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",R.OBJECTANDLAYERIDCOLOR_INSTANCED="objectAndLayerIdColor_instanced"},34103:(nt,Ae,v)=>{"use strict";v.d(Ae,{F:()=>X,e:()=>te});var D=v(61885),R=v(72392),G=v(62208),Z=v(77029),Q=v(42743),$=v(12699),W=v(24425);const B=["layerObjectAdded","layerObjectRemoved","layerObjectsAdded","layerObjectsRemoved","shaderTransformationChanged","objectTransformation","visibilityChanged","occlusionChanged","highlightChanged","objectGeometryAdded","objectGeometryRemoved","vertexAttrsUpdated"];var H=v(82274);class X extends $.c{constructor(oe,le=""){super(),this.apiLayerUid=le,this.type=W.U.Layer,this.events=new D.Z,this.isSliceable=!1,this._objects=new Z.Z,this._stageHandles=new R.Z,this.apiLayerUid=le,this.isVisible=oe?.isVisible??!0,this.isPickable=oe?.isPickable??!0,this.updatePolicy=oe?.updatePolicy??Q.jq.ASYNC}get objects(){return this._objects}destroy(){this.detachStage(),this._stage=null}attachStage(oe){this.detachStage(),this._stage=oe;for(const le of B)this._stageHandles.add(this.events.on(le,de=>oe.handleEvent(le,de)))}detachStage(){this._stageHandles.removeAll(),this.invalidateSpatialQueryAccelerator()}add(oe){this._objects.push(oe),oe.parentLayer=this,this.events.emit("layerObjectAdded",{layer:this,object:oe}),(0,G.pC)(this._octree)&&this._octree.add([oe])}remove(oe){this._objects.removeUnordered(oe)&&(oe.parentLayer=null,this.events.emit("layerObjectRemoved",{layer:this,object:oe}),(0,G.pC)(this._octree)&&this._octree.remove([oe]))}addMany(oe){this._objects.pushArray(oe);for(const le of oe)le.parentLayer=this;this.events.emit("layerObjectsAdded",{layer:this,objects:oe}),(0,G.pC)(this._octree)&&this._octree.add(oe)}removeMany(oe){const le=new Array;if(this._objects.removeUnorderedMany(oe,oe.length,le),0!==le.length){for(const de of le)de.parentLayer=null;this.events.emit("layerObjectsRemoved",{layer:this,objects:le}),(0,G.pC)(this._octree)&&this._octree.remove(le)}}sync(){(0,G.pC)(this._stage)&&this.updatePolicy!==Q.jq.SYNC&&this._stage.syncLayer(this.id)}notifyObjectBBChanged(oe,le){(0,G.pC)(this._octree)&&this._octree.update(oe,le)}getSpatialQueryAccelerator(){return(0,G.Wi)(this._octree)&&this._objects.length>50&&this._createOctree(),this._octree}shaderTransformationChanged(){this.invalidateSpatialQueryAccelerator(),this.events.emit("shaderTransformationChanged",this)}invalidateSpatialQueryAccelerator(){this._octree=(0,G.SC)(this._octree)}_createOctree(){this._octree=new H.Z(oe=>oe.boundingVolumeWorldSpace.bounds),this._octree.add(this._objects.data,this._objects.length)}}function te(ae){return(0,G.pC)(ae)&&ae.type===W.U.Layer}},42743:(nt,Ae,v)=>{"use strict";var D,R,G,Z,Q,$,W,B,H,X,te,ae,oe;v.d(Ae,{CE:()=>H,Gv:()=>R,Iq:()=>ae,JJ:()=>te,MX:()=>B,Rw:()=>Z,V_:()=>W,Vr:()=>D,Xx:()=>G,Yg:()=>X,hU:()=>Q,jq:()=>$}),(oe=D||(D={}))[oe.None=0]="None",oe[oe.Front=1]="Front",oe[oe.Back=2]="Back",oe[oe.COUNT=3]="COUNT",function(oe){oe[oe.Less=0]="Less",oe[oe.Lequal=1]="Lequal",oe[oe.COUNT=2]="COUNT"}(R||(R={})),function(oe){oe[oe.BACKGROUND=0]="BACKGROUND",oe[oe.UPDATE=1]="UPDATE"}(G||(G={})),function(oe){oe[oe.NOT_LOADED=0]="NOT_LOADED",oe[oe.LOADING=1]="LOADING",oe[oe.LOADED=2]="LOADED"}(Z||(Z={})),function(oe){oe[oe.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",oe[oe.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(Q||(Q={})),function(oe){oe[oe.ASYNC=0]="ASYNC",oe[oe.SYNC=1]="SYNC"}($||($={})),function(oe){oe[oe.Highlight=0]="Highlight",oe[oe.MaskOccludee=1]="MaskOccludee",oe[oe.COUNT=2]="COUNT"}(W||(W={})),function(oe){oe[oe.Triangle=0]="Triangle",oe[oe.Point=1]="Point",oe[oe.Line=2]="Line"}(B||(B={})),function(oe){oe[oe.STRETCH=1]="STRETCH",oe[oe.PAD=2]="PAD"}(H||(H={})),function(oe){oe[oe.CHANGED=0]="CHANGED",oe[oe.UNCHANGED=1]="UNCHANGED"}(X||(X={})),function(oe){oe[oe.Blend=0]="Blend",oe[oe.Opaque=1]="Opaque",oe[oe.Mask=2]="Mask",oe[oe.MaskBlend=3]="MaskBlend",oe[oe.COUNT=4]="COUNT"}(te||(te={})),function(oe){oe[oe.OFF=0]="OFF",oe[oe.ON=1]="ON"}(ae||(ae={}))},14171:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>$});var D=v(15861),R=v(55713),G=v(42930),Z=v(2975),Q=v(17827);class $ extends G.q{constructor(H){super("EdgeProcessingWorker","extract",{extract:X=>[X.dataBuffer],extractComponentsEdgeLocations:X=>[X.dataBuffer],extractEdgeLocations:X=>[X.dataBuffer]},H)}process(H,X,te){var ae=this;return(0,D.Z)(function*(){if(te)return(0,Q.Kl)(H);const oe=yield ae.invoke(new W(H),X);return ae._unpackOutput(oe)})()}extractEdgeLocations(H,X){var te=this;return(0,D.Z)(function*(){const ae=yield te.invokeMethod("extractEdgeLocations",new W(H),X);return(0,Z.aj)(ae)})()}extractComponentsEdgeLocations(H,X){var te=this;return(0,D.Z)(function*(){const ae=yield te.invokeMethod("extractComponentsEdgeLocations",new W(H),X);return(0,Z.aj)(ae)})()}_unpackOutput(H){return{regular:{instancesData:(0,Z.aj)(H.regular.instancesData),lodInfo:{lengths:new Float32Array(H.regular.lodInfo.lengths)}},silhouette:{instancesData:(0,Z.aj)(H.silhouette.instancesData),lodInfo:{lengths:new Float32Array(H.silhouette.lodInfo.lengths)}},averageEdgeLength:H.averageEdgeLength}}}class W{constructor(H){this.dataBuffer=H.data.buffer,this.writerSettings=H.writerSettings,this.skipDeduplicate=H.skipDeduplicate,this.indices=Array.isArray(H.indices)?H.indices:H.indices.buffer,this.indicesType=Array.isArray(H.indices)?"Array":(0,R.ZY)(H.indices)?"Uint32Array":"Uint16Array",this.indicesLength=H.indicesLength}}},7184:(nt,Ae,v)=>{"use strict";v.d(Ae,{Hr:()=>H,dG:()=>B,dx:()=>$,rD:()=>Q,so:()=>X,tf:()=>Z});var D=v(4511),R=v(19625),G=v(16396);const Z=(0,R.U$)().vec3f(G.T.POSITION).u16(G.T.COMPONENTINDEX).u16(G.T.U16PADDING),Q=(0,R.U$)().vec2u8(G.T.SIDENESS),$=(0,D.K)(Q),W=(0,R.U$)().vec3f(G.T.POSITION0).vec3f(G.T.POSITION1).u16(G.T.COMPONENTINDEX).u8(G.T.VARIANTOFFSET,{glNormalized:!0}).u8(G.T.VARIANTSTROKE).u8(G.T.VARIANTEXTENSION,{glNormalized:!0}).u8(G.T.U8PADDING,{glPadding:!0}).u16(G.T.U16PADDING,{glPadding:!0}),B=W.clone().vec3f(G.T.NORMAL),H=W.clone().vec3f(G.T.NORMALA).vec3f(G.T.NORMALB),X=new Map([[G.T.POSITION0,0],[G.T.POSITION1,1],[G.T.COMPONENTINDEX,2],[G.T.VARIANTOFFSET,3],[G.T.VARIANTSTROKE,4],[G.T.VARIANTEXTENSION,5],[G.T.NORMAL,6],[G.T.NORMALA,6],[G.T.NORMALB,7],[G.T.SIDENESS,8]])},89917:(nt,Ae,v)=>{"use strict";v.d(Ae,{D9:()=>de,qE:()=>se});var D=v(4619),R=v(84161),G=v(28093),Z=v(4511),Q=v(7184);class ${updateSettings(ee){this.settings=ee,this._edgeHashFunction=ee.reducedPrecision?te:X}write(ee,ie,J){const ce=this._edgeHashFunction(J);j.seed=ce;const ue=j.getIntRange(0,255),pe=j.getIntRange(0,this.settings.variants-1),me=j.getFloat(),ge=255*(.5*function le(Y,ee){const ie=Y<0?-1:1;return Math.abs(Y)**ee*ie}(-(1-Math.min(me/.7,1))+Math.max(0,me-.7)/(1-.7),1.2)+.5);ee.position0.setVec(ie,J.position0),ee.position1.setVec(ie,J.position1),ee.componentIndex.set(ie,J.componentIndex),ee.variantOffset.set(ie,ue),ee.variantStroke.set(ie,pe),ee.variantExtension.set(ie,ge)}trim(ee,ie){return ee.slice(0,ie)}}const W=new Float32Array(6),B=new Uint32Array(W.buffer),H=new Uint32Array(1);function X(Y){const ee=W;ee[0]=Y.position0[0],ee[1]=Y.position0[1],ee[2]=Y.position0[2],ee[3]=Y.position1[0],ee[4]=Y.position1[1],ee[5]=Y.position1[2],H[0]=5381;for(let ie=0;ie{"use strict";v.d(Ae,{P:()=>W,n:()=>B});var D=v(85931),R=v(21286),G=v(55713),Z=v(84161),Q=v(28093);const $=-1;var W,re;function B(re,j,Y,ee=se){const ie=re.vertices.position,J=re.vertices.componentIndex,ce=(0,R.Vl)(ee.anglePlanar),ue=(0,R.Vl)(ee.angleSignificantEdge),pe=Math.cos(ue),he=Math.cos(ce),me=le.edge,ge=me.position0,_e=me.position1,Ee=me.faceNormal0,De=me.faceNormal1,be=function oe(re){const j=re.faces.length/3,Y=re.vertices.position,ee=re.faces,ie=de.v0,J=de.v1,ce=de.v2,ue=new Float32Array(3*j);for(let pe=0;pe{ie.getVec(Se[4*Le+0],ge),ie.getVec(Se[4*Le+1],_e),Me[Le]=(0,Z.i)(ge,_e)}),Fe.sort((Pe,Le)=>je[Le]-je[Pe]);const Re=new Array,He=new Array;for(let Pe=0;Pej}function te(re,j){const Y=(0,R.ZF)(re.cosAngle),ee=le.fwd,ie=le.ortho;return(0,Z.r)(ee,re.position1,re.position0),Y*((0,Z.e)((0,Z.f)(ie,re.faceNormal0,re.faceNormal1),ee)>0?-1:1)>j}(re=W||(W={}))[re.SOLID=0]="SOLID",re[re.SKETCH=1]="SKETCH";const le={edge:{position0:(0,Q.c)(),position1:(0,Q.c)(),faceNormal0:(0,Q.c)(),faceNormal1:(0,Q.c)(),componentIndex:0,cosAngle:0},ortho:(0,Q.c)(),fwd:(0,Q.c)()},de={v0:(0,Q.c)(),v1:(0,Q.c)(),v2:(0,Q.c)()},se={anglePlanar:4,angleSignificantEdge:35}},17827:(nt,Ae,v)=>{"use strict";v.d(Ae,{Kl:()=>B,n_:()=>le,kY:()=>H,Yr:()=>oe});var D=v(13757);function R(de,se,re){const j=se/3,Y=new Uint32Array(re+1),ee=new Uint32Array(re+1),ie=(be,Se)=>{be{if(be{const ye=2*be,ve=Se-be;for(let xe=1;xe=0&&ue[ye+2*We]>ze;We--)ue[ye+2*We+2]=ue[ye+2*We],ue[ye+2*We+3]=ue[ye+2*We+1];ue[ye+2*We+2]=ze,ue[ye+2*We+3]=Ke}};for(let be=0;bebe===de[3*Se]?0:be===de[3*Se+1]?1:be===de[3*Se+2]?2:-1,Ee=(be,Se)=>{const ye=_e(be,Se);ge[3*Se+ye]=-1},De=(be,Se,ye,ve)=>{const xe=_e(be,Se);ge[3*Se+xe]=ve;const ze=_e(ye,ve);ge[3*ve+ze]=Se};for(let be=0;be{"use strict";var D,R;v.d(Ae,{i:()=>D}),(R=D||(D={}))[R.INVISIBLE=0]="INVISIBLE",R[R.TRANSPARENT=1]="TRANSPARENT",R[R.OPAQUE=2]="OPAQUE"},36848:(nt,Ae,v)=>{"use strict";v.d(Ae,{NO:()=>Q,cM:()=>Z,qZ:()=>$});var D=v(84161),R=v(28093),G=v(11544);function Z(te,ae,oe){if(!te||!ae)return!1;const{size:le,data:de}=te;(0,D.s)(oe,0,0,0),(0,D.s)(X,0,0,0);let se=0,re=0;for(let j=0;j1&&(0,D.g)(oe,oe,1/re),re>0}function $(te,ae,oe,le){if(!te)return!1;const{size:de,data:se}=te;(0,D.s)(le,0,0,0),(0,D.s)(X,0,0,0);let re=0,j=0;const Y=ae?ae.length-1:se.length/de-1,ee=Y+(oe?2:0);for(let ie=0;ie0?((0,D.a)(le,le,(0,D.g)(W,W,he)),re+=he):((0,D.a)(X,X,W),j++)}return 0!==re?((0,D.g)(le,le,1/re),!0):0!==j&&((0,D.g)(le,X,1/j),!0)}const W=(0,R.c)(),B=(0,R.c)(),H=(0,R.c)(),X=(0,R.c)()},19597:(nt,Ae,v)=>{"use strict";v.d(Ae,{E9:()=>B,YO:()=>te,hf:()=>ae,l_:()=>X,ow:()=>W});var D=v(39114),R=v(59631),G=v(15197),Z=v(83994),Q=v(67969),$=v(55086);function W(oe,le=R.QI,de=D.i,se=-1,re=1){let j=null;return j=le===R.Bn?new Float32Array([se,se,0,0,re,se,1,0,se,re,0,1,re,re,1,1]):new Float32Array([se,se,re,se,se,re,re,re]),new G.U(oe,de,{geometry:le},{geometry:Z.f.createVertex(oe,Q.l1.STATIC_DRAW,j)})}function B(oe,le=R.QI,de=D.i){const se=new Float32Array([-1,-1,3,-1,-1,3]);return new G.U(oe,de,{geometry:le},{geometry:Z.f.createVertex(oe,Q.l1.STATIC_DRAW,se)})}function X(oe,le=4){return new $.x(oe,{target:Q.No.TEXTURE_2D,pixelFormat:Q.VI.RGBA,dataType:Q.Br.UNSIGNED_BYTE,samplingMode:Q.cw.NEAREST,width:le,height:le})}function te(oe,le,de=4){const se=new Uint8Array(de*de*4);for(let re=0;re{"use strict";v.d(Ae,{G1:()=>H,e4:()=>W,es:()=>B,nn:()=>$});var D=v(62208),R=v(84161),G=v(28093),Z=v(41743),Q=v(67857);function $(te){return(0,D.pC)(te)&&(0,D.pC)(te.dist)}function W(te){return(ae,oe,le)=>((0,R.h)(X,ae,oe,le),!(0,Z.e)(te,X))}function B(te){return $(te)&&te.intersector===Q.q7.OBJECT&&!!te.target}function H(te){return $(te)&&te.intersector===Q.q7.HUD&&!!te.target&&(0,D.pC)(te.target.center)}const X=(0,G.c)()},55314:(nt,Ae,v)=>{"use strict";v.d(Ae,{VB:()=>Y,_s:()=>ee,tB:()=>ae,bK:()=>oe,J4:()=>te});var D=v(62208),R=v(28347),G=v(28093),Z=v(5548),Q=v(97126),$=v(77926),W=v(90793),B=v(91480),H=v(67857);function X(J){return(0,B.nn)(J)&&J.intersector===H.q7.LOD&&!!J.target}function te(J,ce){return(0,B.es)(J)||(0,B.G1)(J)?j(J.target.object.metadata,ce):(0,W.T)(J)?ce.map?.ground:(0,$.a)(J)||(0,$.G)(J)||(0,W.j)(J)?j(J.target,ce):null}function ae(J,ce){const ue=oe(J,ce);return(0,D.pC)(ue)&&"graphic"===ue.type?ue.graphic:null}function oe(J,ce){if((0,D.Wi)(J))return null;if((0,B.es)(J)||(0,B.G1)(J))return le(J.target.object.metadata,ce);if((0,$.a)(J)){const ue=J.target.createGraphic();return{type:"graphic",graphic:ue,layer:ue.layer}}return(0,W.j)(J)||X(J)?le(J.target,ce):(0,$.G)(J)?function de(J,ce){const ue=j(J,ce);if((0,D.Wi)(ue))return null;const pe=ce.allLayerViews.find(he=>he.layer===ue);return pe&&!pe.suspended&&"getGraphicFromIntersectorTarget"in pe?function re(J){return(0,D.pC)(J)?{type:"graphic",graphic:J,layer:J.layer}:null}(pe.getGraphicFromIntersectorTarget(J)):null}(J.target,ce):null}function le(J,ce){if((0,D.Wi)(J)||(0,D.Wi)(J.graphicUid))return null;const ue=j(J,ce);if((0,D.Wi)(ue))return null;if(ue===ce.graphics)return(0,D.Wi)(ce.graphicsView)||"number"!=typeof J.graphicUid?null:ce.graphicsView.getHit(J.graphicUid);const pe=ce.allLayerViews.find(he=>he.layer===ue);return!pe||pe.suspended||(0,D.Wi)(J.graphicUid)?null:"getHit"in pe?pe.getHit(J.graphicUid):null}function j(J,ce){return(0,D.Wi)(J.layerUid)?null:(0,D.pC)(ce.graphicsView)&&J.layerUid===ce.graphicsView.processor.layer.id?ce.graphics:ce.map.findLayerByUid(J.layerUid)}function Y(J,ce){if((0,B.es)(J)||(0,B.G1)(J))return(0,Q.a)(J.target.object.boundingVolumeWorldSpace.bounds);if(X(J)){(0,R.l)(ie,J.transformation);const ue=Math.max(ie[0],ie[1],ie[2]);return J.target.baseBoundingSphere.radius*ue}return(0,$.G)(J)?(0,D.yw)(function se(J,ce){const ue=j(J,ce);if((0,D.Wi)(ue))return null;const pe=ce.allLayerViews.find(he=>he.layer===ue);return pe&&!pe.suspended&&"getAABBFromIntersectorTarget"in pe?pe.getAABBFromIntersectorTarget(J):null}(J.target,ce),ue=>.5*(0,Z.wz)(ue)):null}function ee(J){return!(0,B.es)(J)&&!(0,B.G1)(J)&&(X(J)?J.target.numLodLevels>1:!!(0,$.G)(J))}const ie=(0,G.c)()},47526:(nt,Ae,v)=>{"use strict";v.d(Ae,{HI:()=>$,VQ:()=>G,VV:()=>Z,aH:()=>R,ci:()=>Q});var D=v(85931);function R(W){const B=[];return W.levels.forEach(H=>{H.components.forEach(X=>{B.push(X.material)})}),(0,D.Tw)(B)}function G(W){const B=new Array;return W.levels.forEach(H=>{H.components.forEach(X=>{X.textures&&B.push(...X.textures)})}),(0,D.Tw)(B)}function Z(W){const B=[];return W.components.forEach(H=>{B.push(H.geometry)}),(0,D.Tw)(B)}function Q(W){const B=[];return W.levels.forEach(H=>{H.components.forEach(X=>{B.push(X.geometry)})}),(0,D.Tw)(B)}function $(W){return Z(W).reduce((B,H)=>B+H.indexCount/3,0)}},83196:(nt,Ae,v)=>{"use strict";v.d(Ae,{q:()=>R});var D=v(26594);function R(Z){const Q=new Map,$=W=>{let B=Q.get(W);return B||(B=new D.t9,Q.set(W,B)),B};return Z.removes.forAll(W=>{G(W)&&$(W.material).removes.push(W)}),Z.adds.forAll(W=>{G(W)&&$(W.material).adds.push(W)}),Z.updates.forAll(W=>{G(W.renderGeometry)&&$(W.renderGeometry.material).updates.push(W)}),Q}function G(Z){return Z.data.indexCount>=1}},17962:(nt,Ae,v)=>{"use strict";v.d(Ae,{Gw:()=>G,PV:()=>X,TU:()=>te,bA:()=>ae,n9:()=>Z,sX:()=>B});var D=v(21286),R=v(59617);function G(Y,ee){return new oe(Y,le,ee)}function Z(Y,ee){const{curvatureDependent:ie,scaleStart:J,scaleFallOffRange:ce}=le;return new oe(Y,{curvatureDependent:{min:{curvature:ie.min.curvature,tiltAngle:ie.min.tiltAngle,scaleFallOffFactor:de.curvatureDependent.min.scaleFallOffFactor},max:{curvature:ie.max.curvature,tiltAngle:ie.max.tiltAngle,scaleFallOffFactor:de.curvatureDependent.max.scaleFallOffFactor}},scaleStart:J,scaleFallOffRange:ce,minPixelSize:de.minPixelSize},ee)}function $(Y,ee,ie){const J=ie.parameters,ce=ie.paddingPixelsOverride;return re.scale=Math.min(J.divisor/(ee-J.offset),1),re.factor=function Q(Y){return Math.abs(Y*Y*Y)}(Y),re.minPixelSize=J.minPixelSize,re.paddingPixels=ce,re}function W(Y,ee){return 0===Y?ee.minPixelSize:ee.minPixelSize*(1+2*ee.paddingPixels/Y)}function B(Y,ee){return Math.max((0,D.t7)(Y*ee.scale,Y,ee.factor),W(Y,ee))}function X(Y,ee,ie,J){J.scale=function H(Y,ee,ie){const J=$(Y,ee,ie);return J.minPixelSize=0,J.paddingPixels=0,B(1,J)}(Y,ee,ie),J.factor=0,J.minPixelSize=ie.parameters.minPixelSize,J.paddingPixels=ie.paddingPixelsOverride}function te(Y,ee,ie=[0,0]){const J=Math.min(Math.max(ee.scale,W(Y[1],ee)/Math.max(1e-5,Y[1])),1);return ie[0]=Y[0]*J,ie[1]=Y[1]*J,ie}function ae(Y,ee,ie,J){return B(Y,$(ee,ie,J))}class oe{constructor(ee,ie,J,ce={camera:{distance:0,fovY:0},divisor:0,offset:0,minPixelSize:0,paddingPixels:0},ue){this._viewingMode=ee,this._description=ie,this._ellipsoidRadius=J,this.parameters=ce,this._paddingPixelsOverride=ue,this._viewingMode===R.JY.Local?(this._coverageCompensation=this._surfaceCoverageCompensationLocal,this._calculateCurvatureDependentParameters=this._calculateCurvatureDependentParametersLocal):(this._coverageCompensation=this._surfaceCoverageCompensationGlobal,this._calculateCurvatureDependentParameters=this._calculateCurvatureDependentParametersGlobal)}get paddingPixelsOverride(){return this._paddingPixelsOverride||this.parameters.paddingPixels}update(ee){return!(this.parameters&&this.parameters.camera.fovY===ee.fovY&&this.parameters.camera.distance===ee.distance||(this._calculateParameters(ee,this._ellipsoidRadius,this.parameters),0))}overridePadding(ee){return ee!==this.paddingPixelsOverride?new oe(this._viewingMode,this._description,this._ellipsoidRadius,this.parameters,ee):this}_calculateParameters(ee,ie,J){const{scaleStart:ce,scaleFallOffRange:ue,minPixelSize:pe}=this._description,{fovY:he,distance:me}=ee,ge=this._calculateCurvatureDependentParameters(ee,ie),_e=this._coverageCompensation(ee,ie,ge),{tiltAngle:Ee,scaleFallOffFactor:De}=ge,be=Math.sin(Ee)*me,Se=.5*Math.PI-Ee-he*(.5-ce*_e),ye=be/Math.cos(Se),xe=(ye-De*(be/Math.cos(Se+he*ue*_e)))/(1-De);return J.camera.fovY=ee.fovY,J.camera.distance=ee.distance,J.offset=xe,J.divisor=ye-xe,J.minPixelSize=pe,J}_calculateCurvatureDependentParametersLocal(ee,ie,J=j){return J.tiltAngle=this._description.curvatureDependent.min.tiltAngle,J.scaleFallOffFactor=this._description.curvatureDependent.min.scaleFallOffFactor,J}_calculateCurvatureDependentParametersGlobal(ee,ie,J=j){const ce=this._description.curvatureDependent,ue=1+ee.distance/ie,pe=Math.sqrt(ue*ue-1),[he,me]=[ce.min.curvature,ce.max.curvature],ge=(0,D.uZ)((pe-he)/(me-he),0,1),[_e,Ee]=[ce.min,ce.max];return J.tiltAngle=(0,D.t7)(_e.tiltAngle,Ee.tiltAngle,ge),J.scaleFallOffFactor=(0,D.t7)(_e.scaleFallOffFactor,Ee.scaleFallOffFactor,ge),J}_surfaceCoverageCompensationLocal(ee,ie,J){return(ee.fovY-J.tiltAngle)/ee.fovY}_surfaceCoverageCompensationGlobal(ee,ie,J){const ce=ie*ie,ue=J.tiltAngle+.5*Math.PI,{fovY:pe,distance:he}=ee,me=he*he+ce-2*Math.cos(ue)*he*ie,ge=Math.sqrt(me),_e=Math.sqrt(me-ce);return(Math.acos(_e/ge)-Math.asin(ie/(ge/Math.sin(ue)))+.5*pe)/pe}}const le={curvatureDependent:{min:{curvature:(0,D.Vl)(10),tiltAngle:(0,D.Vl)(12),scaleFallOffFactor:.5},max:{curvature:(0,D.Vl)(70),tiltAngle:(0,D.Vl)(40),scaleFallOffFactor:.8}},scaleStart:.3,scaleFallOffRange:.65,minPixelSize:0},de={curvatureDependent:{min:{scaleFallOffFactor:.7},max:{scaleFallOffFactor:.95}},minPixelSize:14},re={scale:0,factor:0,minPixelSize:0,paddingPixels:0},j={tiltAngle:0,scaleFallOffFactor:0}},39782:(nt,Ae,v)=>{"use strict";v.d(Ae,{p:()=>R,y:()=>D});const D={orderedRepackingEnabled:!1},R={rootOrigin:null}},40841:(nt,Ae,v)=>{"use strict";v.d(Ae,{W9:()=>ie,cy:()=>he,iO:()=>ce,lV:()=>pe,yn:()=>ae});var D=v(62208),R=v(30217),G=v(550),Z=v(28347),Q=v(43703),$=v(48977),W=v(78451),B=v(84161),H=v(14658),X=v(28093),te=v(97126);class ae{constructor(){this._transform=(0,Q.c)(),this._transformInverse=new oe({value:this._transform},Z.a,Q.c),this._transformInverseTranspose=new oe(this._transformInverse,Z.t,Q.c),this._transformTranspose=new oe({value:this._transform},Z.t,Q.c),this._transformInverseRotation=new oe({value:this._transform},R.n,G.c)}_invalidateLazyTransforms(){this._transformInverse.invalidate(),this._transformInverseTranspose.invalidate(),this._transformTranspose.invalidate(),this._transformInverseRotation.invalidate()}get transform(){return this._transform}get inverse(){return this._transformInverse.value}get inverseTranspose(){return this._transformInverseTranspose.value}get inverseRotation(){return this._transformInverseRotation.value}get transpose(){return this._transformTranspose.value}setTransformMatrix(_e){(0,Z.c)(this._transform,_e)}multiplyTransform(_e){(0,Z.m)(this._transform,this._transform,_e)}set(_e){(0,Z.c)(this._transform,_e),this._invalidateLazyTransforms()}setAndInvalidateLazyTransforms(_e,Ee){this.setTransformMatrix(_e),this.multiplyTransform(Ee),this._invalidateLazyTransforms()}}class oe{constructor(_e,Ee,De){this._original=_e,this._update=Ee,this._dirty=!0,this._transform=De()}invalidate(){this._dirty=!0}get value(){return this._dirty&&(this._update(this._transform,this._original.value),this._dirty=!1),this._transform}}const de=(0,X.c)(),se=(0,X.c)(),re=(0,X.c)(),ee=new class Y{constructor(_e=0){this.offset=_e,this.sphere=(0,te.c)(),this.tmpVertex=(0,X.c)()}applyToVertex(_e,Ee,De){const be=this.objectTransform.transform;let Se=be[0]*_e+be[4]*Ee+be[8]*De+be[12],ye=be[1]*_e+be[5]*Ee+be[9]*De+be[13],ve=be[2]*_e+be[6]*Ee+be[10]*De+be[14];const xe=this.offset/Math.sqrt(Se*Se+ye*ye+ve*ve);Se+=Se*xe,ye+=ye*xe,ve+=ve*xe;const ze=this.objectTransform.inverse;return this.tmpVertex[0]=ze[0]*Se+ze[4]*ye+ze[8]*ve+ze[12],this.tmpVertex[1]=ze[1]*Se+ze[5]*ye+ze[9]*ve+ze[13],this.tmpVertex[2]=ze[2]*Se+ze[6]*ye+ze[10]*ve+ze[14],this.tmpVertex}applyToMinMax(_e,Ee){const De=this.offset/Math.sqrt(_e[0]*_e[0]+_e[1]*_e[1]+_e[2]*_e[2]);_e[0]+=_e[0]*De,_e[1]+=_e[1]*De,_e[2]+=_e[2]*De;const be=this.offset/Math.sqrt(Ee[0]*Ee[0]+Ee[1]*Ee[1]+Ee[2]*Ee[2]);Ee[0]+=Ee[0]*be,Ee[1]+=Ee[1]*be,Ee[2]+=Ee[2]*be}applyToAabb(_e){const Ee=this.offset/Math.sqrt(_e[0]*_e[0]+_e[1]*_e[1]+_e[2]*_e[2]);_e[0]+=_e[0]*Ee,_e[1]+=_e[1]*Ee,_e[2]+=_e[2]*Ee;const De=this.offset/Math.sqrt(_e[3]*_e[3]+_e[4]*_e[4]+_e[5]*_e[5]);return _e[3]+=_e[3]*De,_e[4]+=_e[4]*De,_e[5]+=_e[5]*De,_e}applyToBoundingSphere(_e){const Ee=Math.sqrt(_e[0]*_e[0]+_e[1]*_e[1]+_e[2]*_e[2]),De=this.offset/Ee;return this.sphere[0]=_e[0]+_e[0]*De,this.sphere[1]=_e[1]+_e[1]*De,this.sphere[2]=_e[2]+_e[2]*De,this.sphere[3]=_e[3]+_e[3]*this.offset/Ee,this.sphere}};function ie(ge){return(0,D.pC)(ge)?(ee.offset=ge,ee):null}const J=new class j{constructor(_e=0){this.componentLocalOriginLength=0,this._tmpVertex=(0,X.c)(),this._mbs=(0,te.c)(),this._obb={center:(0,X.c)(),halfSize:(0,H.c)(),quaternion:null},this._totalOffset=0,this._offset=0,this._resetOffset(_e)}_resetOffset(_e){this._offset=_e,this._totalOffset=_e}set offset(_e){this._resetOffset(_e)}get offset(){return this._offset}set componentOffset(_e){this._totalOffset=this._offset+_e}set localOrigin(_e){this.componentLocalOriginLength=Math.sqrt(_e[0]*_e[0]+_e[1]*_e[1]+_e[2]*_e[2])}applyToVertex(_e,Ee,De){const be=_e,Se=Ee,ye=De+this.componentLocalOriginLength,ve=this._totalOffset/Math.sqrt(be*be+Se*Se+ye*ye);return this._tmpVertex[0]=_e+be*ve,this._tmpVertex[1]=Ee+Se*ve,this._tmpVertex[2]=De+ye*ve,this._tmpVertex}applyToAabb(_e){const Ee=_e[0],De=_e[1],be=_e[2]+this.componentLocalOriginLength,Se=_e[3],ye=_e[4],ve=_e[5]+this.componentLocalOriginLength,xe=Ee*Se<0?0:Math.min(Math.abs(Ee),Math.abs(Se)),ze=De*ye<0?0:Math.min(Math.abs(De),Math.abs(ye)),Ke=be*ve<0?0:Math.min(Math.abs(be),Math.abs(ve)),We=Math.sqrt(xe*xe+ze*ze+Ke*Ke);if(We0?this._totalOffset:0,_e[4]+=ye>0?this._totalOffset:0,_e[5]+=ve>0?this._totalOffset:0,_e;const Ce=Math.max(Math.abs(Ee),Math.abs(Se)),Be=Math.max(Math.abs(De),Math.abs(ye)),Fe=Math.max(Math.abs(be),Math.abs(ve)),je=Math.sqrt(Ce*Ce+Be*Be+Fe*Fe),Re=this._totalOffset/je,He=this._totalOffset/We;return _e[0]+=Ee*(Ee>0?Re:He),_e[1]+=De*(De>0?Re:He),_e[2]+=be*(be>0?Re:He),_e[3]+=Se*(Se<0?Re:He),_e[4]+=ye*(ye<0?Re:He),_e[5]+=ve*(ve<0?Re:He),_e}applyToMbs(_e){const Ee=Math.sqrt(_e[0]*_e[0]+_e[1]*_e[1]+_e[2]*_e[2]),De=this._totalOffset/Ee;return this._mbs[0]=_e[0]+_e[0]*De,this._mbs[1]=_e[1]+_e[1]*De,this._mbs[2]=_e[2]+_e[2]*De,this._mbs[3]=_e[3]+_e[3]*this._totalOffset/Ee,this._mbs}applyToObb(_e){const Ee=_e.center,De=this._totalOffset/Math.sqrt(Ee[0]*Ee[0]+Ee[1]*Ee[1]+Ee[2]*Ee[2]);this._obb.center[0]=Ee[0]+Ee[0]*De,this._obb.center[1]=Ee[1]+Ee[1]*De,this._obb.center[2]=Ee[2]+Ee[2]*De,(0,B.q)(this._obb.halfSize,_e.halfSize,_e.quaternion),(0,B.a)(this._obb.halfSize,this._obb.halfSize,_e.center);const be=this._totalOffset/Math.sqrt(this._obb.halfSize[0]*this._obb.halfSize[0]+this._obb.halfSize[1]*this._obb.halfSize[1]+this._obb.halfSize[2]*this._obb.halfSize[2]);return this._obb.halfSize[0]+=this._obb.halfSize[0]*be,this._obb.halfSize[1]+=this._obb.halfSize[1]*be,this._obb.halfSize[2]+=this._obb.halfSize[2]*be,(0,B.b)(this._obb.halfSize,this._obb.halfSize,_e.center),(0,$.c)(me,_e.quaternion),(0,B.q)(this._obb.halfSize,this._obb.halfSize,me),this._obb.halfSize[0]*=this._obb.halfSize[0]<0?-1:1,this._obb.halfSize[1]*=this._obb.halfSize[1]<0?-1:1,this._obb.halfSize[2]*=this._obb.halfSize[2]<0?-1:1,this._obb.quaternion=_e.quaternion,this._obb}};function ce(ge){return(0,D.pC)(ge)?(J.offset=ge,J):null}const ue=new class le{constructor(_e=0){this.offset=_e,this.tmpVertex=(0,X.c)()}applyToVertex(_e,Ee,De){const be=_e+this.localOrigin[0],Se=Ee+this.localOrigin[1],ye=De+this.localOrigin[2],ve=this.offset/Math.sqrt(be*be+Se*Se+ye*ye);return this.tmpVertex[0]=_e+be*ve,this.tmpVertex[1]=Ee+Se*ve,this.tmpVertex[2]=De+ye*ve,this.tmpVertex}applyToAabb(_e){for(let Se=0;Se<3;++Se)de[Se]=_e[0+Se]+this.localOrigin[Se],se[Se]=_e[3+Se]+this.localOrigin[Se],re[Se]=de[Se];const Ee=this.applyToVertex(de[0],de[1],de[2]);for(let Se=0;Se<3;++Se)_e[Se]=Ee[Se],_e[Se+3]=Ee[Se];const De=Se=>{const ye=this.applyToVertex(Se[0],Se[1],Se[2]);for(let ve=0;ve<3;++ve)_e[ve+0]=Math.min(_e[ve+0],ye[ve]),_e[ve+3]=Math.max(_e[ve+3],ye[ve])};for(let Se=1;Se<8;++Se){for(let ye=0;ye<3;++ye)re[ye]=0==(Se&1<{"use strict";v.d(Ae,{AM:()=>G,Eg:()=>Z,Mi:()=>R,Ur:()=>Q});var D=v(28093);class R{constructor(W=(0,D.c)()){this.intensity=W}}class G{constructor(W=(0,D.c)(),B=(0,D.f)(.57735,.57735,.57735)){this.intensity=W,this.direction=B}}class Z{constructor(W=(0,D.c)(),B=(0,D.f)(.57735,.57735,.57735),H=!0,X=1,te=1){this.intensity=W,this.direction=B,this.castShadows=H,this.specularStrength=X,this.environmentStrength=te}}class Q{constructor(){this.r=[0],this.g=[0],this.b=[0]}}},95279:(nt,Ae,v)=>{"use strict";v.d(Ae,{c:()=>he,V:()=>pe});var D=v(21286),R=v(84161),G=v(28093),Z=v(82244);function $(ge,_e,Ee){(Ee=Ee||ge).length=ge.length;for(let De=0;De=0&&(ye[0]=.28209479177),_e>=1&&(ye[1]=.4886025119*De,ye[2]=.4886025119*Se,ye[3]=.4886025119*be),_e>=2&&(ye[4]=1.09254843059*De*be,ye[5]=1.09254843059*be*Se,ye[6]=.31539156525*(3*Se*Se-1),ye[7]=1.09254843059*De*Se,ye[8]=.54627421529*(De*De-be*be)),ye}function de(ge,_e,Ee,De){(function ae(ge,_e){const Ee=H(ge),De=_e||{r:[],g:[],b:[]};De.r.length=De.g.length=De.b.length=Ee;for(let be=0;be{"use strict";v.d(Ae,{E:()=>he});var D=v(8314),R=v(4794),G=v(13934),Z=v(42743),Q=v(60881),$=v(40723),W=v(88569),B=v(5894),H=v(60909),X=v(57623),te=v(651),ae=v(91056),oe=v(39114),le=v(12407),de=v(64127),se=v(44835),re=v(89652),j=v(57596),Y=v(2078);class ee extends ae.A{initializeConfiguration(Ee,De){De.hasWebGL2Context=Ee.rctx.type===j.zO.WEBGL2}initializeProgram(Ee){return new le.$(Ee.rctx,ee.shader.get().build(this.configuration),oe.i)}_createPipeline(Ee,De){const be=this.configuration,Se=Ee===se.A.NONE,ye=Ee===se.A.FrontFace;return(0,Y.sm)({blending:be.output!==G.H.Color&&be.output!==G.H.Alpha||!be.transparent?null:Se?W.wu:(0,W.j7)(Ee),culling:(0,Y.zp)(be.cullFace),depthTest:{func:(0,W.Bh)(Ee)},depthWrite:Se||ye?be.writeDepth&&Y.LZ:null,colorWrite:Y.BK,stencilWrite:be.hasOccludees?de.s3:null,stencilTest:be.hasOccludees?De?de.eD:de.RY:null,polygonOffset:Se||ye?be.polygonOffset&&ie:(0,W.je)(be.enableOffset)})}initializePipeline(){return this._occludeePipelineState=this._createPipeline(this.configuration.transparencyPassType,!0),this._createPipeline(this.configuration.transparencyPassType,!1)}getPipelineState(Ee,De){return De?this._occludeePipelineState:super.getPipelineState(Ee,De)}}ee.shader=new te.J(re.C,()=>v.e(1362).then(v.bind(v,11362)));const ie={factor:1,units:1};var J=v(17626),ce=v(87601),ue=v(41528);class pe extends ue.W{constructor(){super(...arguments),this.output=G.H.Color,this.cullFace=Z.Vr.None,this.hasSlicePlane=!1,this.hasVertexColors=!1,this.transparent=!1,this.polygonOffset=!1,this.enableOffset=!0,this.writeDepth=!0,this.hasOccludees=!1,this.transparencyPassType=se.A.NONE,this.hasMultipassTerrain=!1,this.cullAboveGround=!1,this.objectAndLayerIdColorInstanced=!1}}(0,J._)([(0,ce.o)({count:G.H.COUNT})],pe.prototype,"output",void 0),(0,J._)([(0,ce.o)({count:Z.Vr.COUNT})],pe.prototype,"cullFace",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"hasSlicePlane",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"hasVertexColors",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"transparent",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"polygonOffset",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"enableOffset",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"writeDepth",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"hasOccludees",void 0),(0,J._)([(0,ce.o)({count:se.A.COUNT})],pe.prototype,"transparencyPassType",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"hasMultipassTerrain",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"cullAboveGround",void 0),(0,J._)([(0,ce.o)()],pe.prototype,"objectAndLayerIdColorInstanced",void 0);class he extends $.F5{constructor(Ee){super(Ee,new ge),this.supportsEdges=!0,this._configuration=new pe}getConfiguration(Ee,De){return this._configuration.output=Ee,this._configuration.cullFace=this.parameters.cullFace,this._configuration.hasVertexColors=this.parameters.hasVertexColors,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.transparent=this.parameters.transparent,this._configuration.polygonOffset=this.parameters.polygonOffset,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.transparencyPassType=De.transparencyPassType,this._configuration.enableOffset=De.camera.relativeElevation{"use strict";v.d(Ae,{Gp:()=>Ee,RL:()=>xe});var D=v(8314),R=v(62208),G=v(84161),Z=v(28093),Q=v(59617),$=v(19625),W=v(13934),B=v(26859),H=v(96395),X=v(92724),te=v(42743),ae=v(33470),oe=v(40723),le=v(88569),de=v(5894),se=v(16396),re=v(40841),j=v(42037),Y=v(57623),ee=v(39711),ie=v(17626),J=v(36603),ce=v(87601),ue=v(44835),pe=v(41528);class he extends pe.W{constructor(){super(...arguments),this.output=W.H.Color,this.alphaDiscardMode=te.JJ.Opaque,this.doubleSidedMode=H.q.None,this.pbrMode=X.f7.Disabled,this.cullFace=te.Vr.None,this.transparencyPassType=ue.A.NONE,this.normalType=B.h.Attribute,this.textureCoordinateType=J.N.None,this.customDepthTest=te.Gv.Less,this.spherical=!1,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.hasVerticalOffset=!1,this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.hasColorTexture=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasScreenSizePerspective=!1,this.hasVertexTangents=!1,this.hasOccludees=!1,this.hasMultipassTerrain=!1,this.hasModelTransformation=!1,this.offsetBackfaces=!1,this.vvSize=!1,this.vvColor=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.textureAlphaPremultiplied=!1,this.instanced=!1,this.instancedColor=!1,this.objectAndLayerIdColorInstanced=!1,this.instancedDoublePrecision=!1,this.doublePrecisionRequiresObfuscation=!1,this.writeDepth=!0,this.transparent=!1,this.enableOffset=!0,this.cullAboveGround=!1,this.snowCover=!1,this.hasColorTextureTransform=!1,this.hasEmissionTextureTransform=!1,this.hasNormalTextureTransform=!1,this.hasOcclusionTextureTransform=!1,this.hasMetallicRoughnessTextureTransform=!1}}(0,ie._)([(0,ce.o)({count:W.H.COUNT})],he.prototype,"output",void 0),(0,ie._)([(0,ce.o)({count:te.JJ.COUNT})],he.prototype,"alphaDiscardMode",void 0),(0,ie._)([(0,ce.o)({count:H.q.COUNT})],he.prototype,"doubleSidedMode",void 0),(0,ie._)([(0,ce.o)({count:X.f7.COUNT})],he.prototype,"pbrMode",void 0),(0,ie._)([(0,ce.o)({count:te.Vr.COUNT})],he.prototype,"cullFace",void 0),(0,ie._)([(0,ce.o)({count:ue.A.COUNT})],he.prototype,"transparencyPassType",void 0),(0,ie._)([(0,ce.o)({count:B.h.COUNT})],he.prototype,"normalType",void 0),(0,ie._)([(0,ce.o)({count:J.N.COUNT})],he.prototype,"textureCoordinateType",void 0),(0,ie._)([(0,ce.o)({count:te.Gv.COUNT})],he.prototype,"customDepthTest",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"spherical",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasVertexColors",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasSymbolColors",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasVerticalOffset",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasSlicePlane",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasSliceHighlight",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasColorTexture",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasMetallicRoughnessTexture",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasEmissionTexture",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasOcclusionTexture",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasNormalTexture",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasScreenSizePerspective",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasVertexTangents",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasOccludees",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasMultipassTerrain",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasModelTransformation",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"offsetBackfaces",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"vvSize",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"vvColor",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"receiveShadows",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"receiveAmbientOcclusion",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"textureAlphaPremultiplied",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"instanced",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"instancedColor",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"objectAndLayerIdColorInstanced",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"instancedDoublePrecision",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"doublePrecisionRequiresObfuscation",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"writeDepth",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"transparent",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"enableOffset",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"cullAboveGround",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"snowCover",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasColorTextureTransform",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasEmissionTextureTransform",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasNormalTextureTransform",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasOcclusionTextureTransform",void 0),(0,ie._)([(0,ce.o)()],he.prototype,"hasMetallicRoughnessTextureTransform",void 0),(0,ie._)([(0,ce.o)({constValue:!0})],he.prototype,"hasVvInstancing",void 0),(0,ie._)([(0,ce.o)({constValue:!1})],he.prototype,"useCustomDTRExponentForWater",void 0),(0,ie._)([(0,ce.o)({constValue:!1})],he.prototype,"supportsTextureAtlas",void 0),(0,ie._)([(0,ce.o)({constValue:!0})],he.prototype,"useFillLights",void 0);var me=v(651),ge=v(77133);class _e extends ee.tT{initializeConfiguration(He,Ie){super.initializeConfiguration(He,Ie),Ie.hasMetallicRoughnessTexture=!1,Ie.hasEmissionTexture=!1,Ie.hasOcclusionTexture=!1,Ie.hasNormalTexture=!1,Ie.hasModelTransformation=!1,Ie.normalType=B.h.Attribute,Ie.doubleSidedMode=H.q.WindingOrder,Ie.hasVertexTangents=!1}initializeProgram(He){return this._initializeProgram(He,_e.shader)}}_e.shader=new me.J(ge.R,()=>v.e(3959).then(v.bind(v,93959)));class Ee extends oe.F5{constructor(He){super(He,Se),this.supportsEdges=!0,this._configuration=new he,this._vertexBufferLayout=function ve(Re){const He=Re.textureId||Re.normalTextureId||Re.metallicRoughnessTextureId||Re.emissiveTextureId||Re.occlusionTextureId,Ie=(0,$.U$)().vec3f(se.T.POSITION).vec3f(se.T.NORMAL);return Re.hasVertexTangents&&Ie.vec4f(se.T.TANGENT),He&&Ie.vec2f(se.T.UV0),Re.hasVertexColors&&Ie.vec4u8(se.T.COLOR),Re.hasSymbolColors&&Ie.vec4u8(se.T.SYMBOLCOLOR),(0,D.Z)("enable-feature:objectAndLayerId-rendering")&&Ie.vec4u8(se.T.OBJECTANDLAYERIDCOLOR),Ie}(this.parameters),this._instanceBufferLayout=He.instanced?xe(this.parameters):null}isVisibleForOutput(He){return He!==W.H.Shadow&&He!==W.H.ShadowExludeHighlight&&He!==W.H.ShadowHighlight||this.parameters.castShadows}isVisible(){const He=this.parameters;if(!super.isVisible()||0===He.layerOpacity)return!1;const{instanced:Ie,hasVertexColors:Ge,hasSymbolColors:Pe,vvColorEnabled:Le}=He,Me=(0,R.pC)(Ie)&&Ie.includes("color"),Ne="replace"===He.colorMixMode,Xe=He.opacity>0,Ye=He.externalColor&&He.externalColor[3]>0;return Ge&&(Me||Le||Pe)?!!Ne||Xe:Ge?Ne?Ye:Xe:Me||Le||Pe?!!Ne||Xe:Ne?Ye:Xe}getConfiguration(He,Ie){return this._configuration.output=He,this._configuration.hasNormalTexture=!!this.parameters.normalTextureId,this._configuration.hasColorTexture=!!this.parameters.textureId,this._configuration.hasVertexTangents=this.parameters.hasVertexTangents,this._configuration.instanced=!!this.parameters.instanced,this._configuration.instancedDoublePrecision=this.parameters.instancedDoublePrecision,this._configuration.vvSize=this.parameters.vvSizeEnabled,this._configuration.hasVerticalOffset=(0,R.pC)(this.parameters.verticalOffset),this._configuration.hasScreenSizePerspective=(0,R.pC)(this.parameters.screenSizePerspective),this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasSliceHighlight=this.parameters.hasSliceHighlight,this._configuration.alphaDiscardMode=this.parameters.textureAlphaMode,this._configuration.normalType="screenDerivative"===this.parameters.normals?B.h.ScreenDerivative:B.h.Attribute,this._configuration.transparent=this.parameters.transparent,this._configuration.writeDepth=this.parameters.writeDepth,(0,R.pC)(this.parameters.customDepthTest)&&(this._configuration.customDepthTest=this.parameters.customDepthTest),this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.cullFace=this.parameters.hasSlicePlane?te.Vr.None:this.parameters.cullFace,this._configuration.hasMultipassTerrain=Ie.multipassTerrain.enabled,this._configuration.cullAboveGround=Ie.multipassTerrain.cullAboveGround,this._configuration.hasModelTransformation=(0,R.pC)(this.parameters.modelTransformation),He!==W.H.Color&&He!==W.H.Alpha||(this._configuration.hasVertexColors=this.parameters.hasVertexColors,this._configuration.hasSymbolColors=this.parameters.hasSymbolColors,this._configuration.doubleSidedMode=this.parameters.treeRendering?H.q.WindingOrder:this.parameters.doubleSided&&"normal"===this.parameters.doubleSidedType?H.q.View:this.parameters.doubleSided&&"winding-order"===this.parameters.doubleSidedType?H.q.WindingOrder:H.q.None,this._configuration.instancedColor=(0,R.pC)(this.parameters.instanced)&&this.parameters.instanced.includes("color"),this._configuration.receiveShadows=this.parameters.receiveShadows&&this.parameters.shadowMappingEnabled,this._configuration.receiveAmbientOcclusion=!!Ie.ssaoHelper.ready&&this.parameters.receiveSSAO,this._configuration.vvColor=this.parameters.vvColorEnabled,this._configuration.textureAlphaPremultiplied=!!this.parameters.textureAlphaPremultiplied,this._configuration.pbrMode=this.parameters.usePBR?this.parameters.isSchematic?X.f7.Schematic:X.f7.Normal:X.f7.Disabled,this._configuration.hasMetallicRoughnessTexture=!!this.parameters.metallicRoughnessTextureId,this._configuration.hasEmissionTexture=!!this.parameters.emissiveTextureId,this._configuration.hasOcclusionTexture=!!this.parameters.occlusionTextureId,this._configuration.offsetBackfaces=!(!this.parameters.transparent||!this.parameters.offsetTransparentBackfaces),this._configuration.transparencyPassType=Ie.transparencyPassType,this._configuration.enableOffset=Ie.camera.relativeElevation{"use strict";v.d(Ae,{K:()=>D});const D=2.1},41528:(nt,Ae,v)=>{"use strict";v.d(Ae,{W:()=>Z});var D=v(17626),R=v(37847),G=v(87601);class Z extends G.m{constructor(){super(...arguments),this.hasWebGL2Context=!1}}(0,D._)([(0,G.o)({constValue:!0})],Z.prototype,"hasSliceHighlight",void 0),(0,D._)([(0,G.o)({constValue:!1})],Z.prototype,"hasSliceInVertexProgram",void 0),(0,D._)([(0,G.o)({constValue:!1})],Z.prototype,"instancedDoublePrecision",void 0),(0,D._)([(0,G.o)({constValue:!1})],Z.prototype,"useLegacyTerrainShading",void 0),(0,D._)([(0,G.o)({constValue:!1})],Z.prototype,"hasModelTransformation",void 0),(0,D._)([(0,G.o)({constValue:R.P.Pass})],Z.prototype,"pbrTextureBindType",void 0),(0,D._)([(0,G.o)()],Z.prototype,"hasWebGL2Context",void 0)},7949:(nt,Ae,v)=>{"use strict";v.d(Ae,{w:()=>G});var D=v(28093),R=v(21799);class G extends R.Pf{constructor(Q=(0,D.c)()){super(),this.origin=Q,this.slicePlaneLocalOrigin=this.origin}}},80805:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>Le});var D=v(8314),R=v(21286),G=v(62208),Z=v(30217),Q=v(550),$=v(28347),W=v(43703),B=v(67831),H=v(99770),X=v(84161),te=v(28093),ae=v(4794);var se=v(65401),re=v(60479),j=v(19625),Y=v(13934),ee=v(97347),ie=v(36848),J=v(33470),ce=v(40723),ue=v(5894),pe=v(17962),he=v(2282),me=v(16396),ge=v(42037),_e=v(57623),Ee=v(65073),De=v(6467),be=v(59617),Se=v(651),ye=v(91056),ve=v(39114),xe=v(88569),ze=v(12407),Ke=v(44835),We=v(57596),Ce=v(67969),Be=v(2078);class Fe extends ye.A{initializeConfiguration(rr,Et){Et.hasWebGL2Context=rr.rctx.type===We.zO.WEBGL2,Et.spherical=rr.viewingMode===be.JY.Global}initializeProgram(rr){return new ze.$(rr.rctx,Fe.shader.get().build(this.configuration),ve.i)}_setPipelineState(rr){const Et=this.configuration,St=rr===Ke.A.NONE,zt=this.configuration.hasPolygonOffset&&je,dr=!St&&rr!==Ke.A.FrontFace||Et.output===Y.H.Highlight?null:(Et.depthEnabled||Et.occlusionPass)&&Be.LZ;return(0,Be.sm)({blending:Et.output===Y.H.Color||Et.output===Y.H.Alpha||Et.output===Y.H.Highlight?St?Re:(0,xe.j7)(rr):null,depthTest:{func:Ce.wb.LEQUAL},depthWrite:dr,colorWrite:Be.BK,polygonOffset:zt})}initializePipeline(){return this._setPipelineState(this.configuration.transparencyPassType)}get primitiveType(){return this.configuration.occlusionPass?Ce.MX.POINTS:Ce.MX.TRIANGLES}}Fe.shader=new Se.J(De.H,()=>v.e(6771).then(v.bind(v,46771)));const je={factor:0,units:-4},Re=(0,Be.if)(Ce.zi.ONE,Ce.zi.ONE_MINUS_SRC_ALPHA);var He=v(17626),Ie=v(87601),Ge=v(41528);class Pe extends Ge.W{constructor(){super(...arguments),this.output=Y.H.Color,this.screenCenterOffsetUnitsEnabled=ee.d.World,this.transparencyPassType=Ke.A.NONE,this.spherical=!1,this.occlusionTestEnabled=!0,this.signedDistanceFieldEnabled=!1,this.vvSize=!1,this.vvColor=!1,this.hasVerticalOffset=!1,this.hasScreenSizePerspective=!1,this.debugDrawLabelBorder=!1,this.binaryHighlightOcclusionEnabled=!0,this.hasSlicePlane=!1,this.hasPolygonOffset=!1,this.depthEnabled=!0,this.pixelSnappingEnabled=!0,this.isDraped=!1,this.hasMultipassGeometry=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1,this.occlusionPass=!1,this.objectAndLayerIdColorInstanced=!1}}(0,He._)([(0,Ie.o)({count:Y.H.COUNT})],Pe.prototype,"output",void 0),(0,He._)([(0,Ie.o)({count:ee.d.COUNT})],Pe.prototype,"screenCenterOffsetUnitsEnabled",void 0),(0,He._)([(0,Ie.o)({count:Ke.A.COUNT})],Pe.prototype,"transparencyPassType",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"spherical",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"occlusionTestEnabled",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"signedDistanceFieldEnabled",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"vvSize",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"vvColor",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"hasVerticalOffset",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"hasScreenSizePerspective",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"debugDrawLabelBorder",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"binaryHighlightOcclusionEnabled",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"hasSlicePlane",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"hasPolygonOffset",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"depthEnabled",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"pixelSnappingEnabled",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"isDraped",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"hasMultipassGeometry",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"hasMultipassTerrain",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"cullAboveGround",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"occlusionPass",void 0),(0,He._)([(0,Ie.o)()],Pe.prototype,"objectAndLayerIdColorInstanced",void 0),(0,He._)([(0,Ie.o)({constValue:!0})],Pe.prototype,"hasSliceInVertexProgram",void 0),(0,He._)([(0,Ie.o)({constValue:!1})],Pe.prototype,"hasVvInstancing",void 0);class Le extends ce.F5{constructor(rr){super(rr,new Fr),this._configuration=new Pe}getConfiguration(rr,Et){return this._configuration.output=rr,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasVerticalOffset=!!this.parameters.verticalOffset,this._configuration.hasScreenSizePerspective=!!this.parameters.screenSizePerspective,this._configuration.screenCenterOffsetUnitsEnabled="screen"===this.parameters.centerOffsetUnits?ee.d.Screen:ee.d.World,this._configuration.hasPolygonOffset=this.parameters.polygonOffset,this._configuration.isDraped=this.parameters.isDraped,this._configuration.occlusionTestEnabled=this.parameters.occlusionTest,this._configuration.pixelSnappingEnabled=this.parameters.pixelSnappingEnabled,this._configuration.signedDistanceFieldEnabled=this.parameters.textureIsSignedDistanceField,this._configuration.vvSize=!!this.parameters.vvSizeEnabled,this._configuration.vvColor=!!this.parameters.vvColorEnabled,this._configuration.occlusionPass=Et.slot===ue.r.OCCLUSION_PIXELS&&this.parameters.occlusionTest&&(rr===Y.H.Color||rr===Y.H.Alpha),rr===Y.H.Color&&(this._configuration.debugDrawLabelBorder=!!this.parameters.debugDrawLabelBorder),rr===Y.H.Highlight&&(this._configuration.binaryHighlightOcclusionEnabled=this.parameters.binaryHighlightOcclusion),this._configuration.depthEnabled=this.parameters.depthEnabled,this._configuration.transparencyPassType=Et.transparencyPassType,this._configuration.hasMultipassGeometry=Et.multipassGeometry.enabled,this._configuration.hasMultipassTerrain=Et.multipassTerrain.enabled,this._configuration.cullAboveGround=Et.multipassTerrain.cullAboveGround,this._configuration}intersect(rr,Et,St,Ft,zt,dr,hr,Tr,Dr){(0,G.pC)(Dr)?this._intersectDrapedHudGeometry(rr,dr,hr,Tr,Dr):this._intersectHudGeometry(rr,Et,St,Ft,hr,Tr)}_intersectDrapedHudGeometry(rr,Et,St,Ft,zt){const dr=rr.vertexAttributes.get(me.T.POSITION),hr=rr.vertexAttributes.get(me.T.SIZE),Tr=this.parameters,Dr=(0,De.c)(Tr);let Lr=1,Hr=1;if((0,G.pC)(Ft)){const Jr=Ft($t);Lr=Jr[0],Hr=Jr[5]}Lr*=rr.screenToWorldRatio,Hr*=rr.screenToWorldRatio;const Qr=pr*rr.screenToWorldRatio;for(let Jr=0;Jr=3);const Ss=Ft.point,Cs=Ft.camera,Dt=(0,De.c)(hr);Tr*=Cs.pixelRatio,Dr*=Cs.pixelRatio;const ct="screen"===this.parameters.centerOffsetUnits;for(let At=0;At-1){let Kr;if(qe[0]=Math.floor(qe[0]),qe[1]=Math.floor(qe[1]),ct&&(Lt[0]||Lt[1])&&(qe[0]+=Lt[0],0!==Lt[1]&&(qe[1]+=(0,pe.sX)(Lt[1],Je.factorAlignment)),Cs.unapplyProjection(qe,tt)),qe[0]+=this.parameters.screenOffset[0],qe[1]+=this.parameters.screenOffset[1],(0,pe.TU)(gr,Je.factor,gr),hr.textureIsSignedDistanceField&&(Kr=hr.outlineSize*Cs.pixelRatio/2),Ye(Ss,qe[0],qe[1],gr,Wt*Cs.pixelRatio,Kr,hr,Dt)){const qt=Ft.ray;if((0,X.m)(ut,tt,(0,$.a)(vt,Cs.viewMatrix)),qe[0]=Ss[0],qe[1]=Ss[1],Cs.unprojectFromRenderScreen(qe,tt)){const Ir=(0,te.c)();(0,X.c)(Ir,qt.direction);const Sr=1/(0,X.l)(Ir);(0,X.g)(Ir,Ir,Sr),zt((0,X.i)(qt.origin,tt)*Sr,Ir,-1,!0,1,ut)}}}}}computeAttachmentOrigin(rr,Et){const St=rr.vertexAttributes;if(!St)return!1;const Ft=St.get(me.T.POSITION),zt=rr.indices.get(me.T.POSITION);return(0,ie.NO)(Ft,zt,Et)}createBufferWriter(){return new or(this)}_normalAndViewAngle(rr,Et,St,Ft){return function de(sr){return function oe(sr){return sr instanceof Float32Array&&sr.length>=16}(sr)||function le(sr){return Array.isArray(sr)&&sr.length>=16}(sr)}(Et)&&(Et=(0,Z.f)(Ct,Et)),(0,X.t)(Ft.normal,rr,Et),(0,X.m)(Ft.normal,Ft.normal,St.viewInverseTransposeMatrix),Ft.cosAngle=(0,X.e)(ot,ar),Ft}_updateScaleInfo(rr,Et,St){const Ft=this.parameters;(0,G.pC)(Ft.screenSizePerspective)?(0,pe.PV)(St,Et,Ft.screenSizePerspective,rr.factor):(rr.factor.scale=1,rr.factor.factor=0,rr.factor.minPixelSize=0,rr.factor.paddingPixels=0),(0,G.pC)(Ft.screenSizePerspectiveAlignment)?(0,pe.PV)(St,Et,Ft.screenSizePerspectiveAlignment,rr.factorAlignment):(rr.factorAlignment.factor=rr.factor.factor,rr.factorAlignment.scale=rr.factor.scale,rr.factorAlignment.minPixelSize=rr.factor.minPixelSize,rr.factorAlignment.paddingPixels=rr.factor.paddingPixels)}applyShaderOffsetsView(rr,Et,St,Ft,zt,dr,hr){const Tr=this._normalAndViewAngle(Et,St,zt,jt);return this._applyVerticalGroundOffsetView(rr,Tr,zt,hr),this._applyVerticalOffsetTransformationView(hr,Tr,zt,dr),this._applyPolygonOffsetView(hr,Tr,Ft[3],zt,hr),this._applyCenterOffsetView(hr,Ft,hr),hr}applyShaderOffsetsNDC(rr,Et,St,Ft,zt){return this._applyCenterOffsetNDC(rr,Et,St,Ft),(0,G.pC)(zt)&&(0,X.c)(zt,Ft),this._applyPolygonOffsetNDC(Ft,Et,St,Ft),Ft}_applyPolygonOffsetView(rr,Et,St,Ft,zt){const dr=Ft.aboveGround?1:-1;let hr=Math.sign(St);0===hr&&(hr=dr);const Tr=dr*hr;if(this.parameters.shaderPolygonOffset<=0)return(0,X.c)(zt,rr);const Dr=(0,R.uZ)(Math.abs(Et.cosAngle),.01,1),Lr=1-Math.sqrt(1-Dr*Dr)/Dr/Ft.viewport[2];return(0,X.g)(zt,rr,Tr>0?Lr:1/Lr),zt}_applyVerticalGroundOffsetView(rr,Et,St,Ft){const zt=(0,X.l)(rr),dr=St.aboveGround?1:-1,hr=.5*St.computeRenderPixelSizeAtDist(zt),Tr=(0,X.g)(tt,Et.normal,dr*hr);return(0,X.a)(Ft,rr,Tr),Ft}_applyVerticalOffsetTransformationView(rr,Et,St,Ft){const zt=this.parameters;if(!zt.verticalOffset||!zt.verticalOffset.screenLength){if(zt.screenSizePerspective||zt.screenSizePerspectiveAlignment){const Dr=(0,X.l)(rr);this._updateScaleInfo(Ft,Dr,Et.cosAngle)}else Ft.factor.scale=1,Ft.factorAlignment.scale=1;return rr}const dr=(0,X.l)(rr),hr=(0,G.Pt)(zt.screenSizePerspectiveAlignment,zt.screenSizePerspective),Tr=(0,_e.Hx)(St,dr,zt.verticalOffset,Et.cosAngle,hr);return this._updateScaleInfo(Ft,dr,Et.cosAngle),(0,X.g)(Et.normal,Et.normal,Tr),(0,X.a)(rr,rr,Et.normal)}_applyCenterOffsetView(rr,Et,St){const Ft="screen"!==this.parameters.centerOffsetUnits;return St!==rr&&(0,X.c)(St,rr),Ft&&(St[0]+=Et[0],St[1]+=Et[1],Et[2]&&((0,X.n)(et,St),(0,X.a)(St,St,(0,X.g)(et,et,Et[2])))),St}_applyCenterOffsetNDC(rr,Et,St,Ft){const zt="screen"!==this.parameters.centerOffsetUnits;return Ft!==rr&&(0,X.c)(Ft,rr),zt||(Ft[0]+=Et[0]/St.fullWidth*2,Ft[1]+=Et[1]/St.fullHeight*2),Ft}_applyPolygonOffsetNDC(rr,Et,St,Ft){const zt=this.parameters.shaderPolygonOffset;if(rr!==Ft&&(0,X.c)(Ft,rr),zt){const dr=St.aboveGround?1:-1,hr=dr*Math.sign(Et[3]);Ft[2]-=(hr||dr)*zt}return Ft}requiresSlot(rr,Et){if(Et===Y.H.Color||Et===Y.H.Alpha||Et===Y.H.Highlight||Et===Y.H.ObjectAndLayerIdColor){if(rr===ue.r.DRAPED_MATERIAL)return!0;const{drawInSecondSlot:St,occlusionTest:Ft}=this.parameters;return rr===(St?ue.r.LABEL_MATERIAL:ue.r.HUD_MATERIAL)||Ft&&rr===ue.r.OCCLUSION_PIXELS}return!1}createGLMaterial(rr){return new Me(rr)}calculateRelativeScreenBounds(rr,Et,St=(0,se.Ue)()){return function Ne(sr,rr,Et,St=rt){(0,B.c)(St,sr.anchorPosition),St[0]*=-rr[0],St[1]*=-rr[1],St[0]+=sr.screenOffset[0]*Et,St[1]+=sr.screenOffset[1]*Et}(this.parameters,rr,Et,St),St[2]=St[0]+rr[0],St[3]=St[1]+rr[1],St}}class Me extends J.F{constructor(rr){super({...rr,...rr.material.parameters})}selectProgram(rr){return this.ensureTechnique(Fe,rr)}beginSlot(rr){return this.updateTexture(this._material.parameters.textureId),this._material.setParameters(this.textureBindParameters),this.selectProgram(rr)}}function Ye(sr,rr,Et,St,Ft,zt,dr,hr){let Tr=rr-Ft-(hr[0]>0?St[0]*hr[0]:0),Dr=Tr+St[0]+2*Ft,Lr=Et-Ft-(hr[1]>0?St[1]*hr[1]:0),Hr=Lr+St[1]+2*Ft;const Qr=dr.distanceFieldBoundingBox;return dr.textureIsSignedDistanceField&&(0,G.pC)(Qr)&&(Tr+=St[0]*Qr[0],Lr+=St[1]*Qr[1],Dr-=St[0]*(1-Qr[2]),Hr-=St[1]*(1-Qr[3]),Tr-=zt,Dr+=zt,Lr-=zt,Hr+=zt),sr[0]>Tr&&sr[0]Lr&&sr[1]{"use strict";v.d(Ae,{X:()=>ce});var D=v(62208),R=v(84161),G=v(28093),Z=v(19625),Q=v(13934),$=v(33470),W=v(40723),B=v(5894),H=v(16396),X=v(41857),te=v(651),ae=v(91056),oe=v(88569),le=v(12407),de=v(64127),se=v(44835),re=v(62718),j=v(2078);const Y=new Map([[H.T.POSITION,0],[H.T.UV0,2],[H.T.AUXPOS1,3],[H.T.NORMAL,4],[H.T.COLOR,5],[H.T.COLORFEATUREATTRIBUTE,5],[H.T.SIZE,6],[H.T.SIZEFEATUREATTRIBUTE,6],[H.T.OPACITYFEATUREATTRIBUTE,7]]);class ee extends ae.A{initializeProgram(Ee){return new le.$(Ee.rctx,ee.shader.get().build(this.configuration),Y)}_makePipelineState(Ee,De){const be=this.configuration,Se=Ee===se.A.NONE;return(0,j.sm)({blending:be.output===Q.H.Color||be.output===Q.H.Alpha?Se?oe.wu:(0,oe.j7)(Ee):null,depthTest:{func:(0,oe.Bh)(Ee)},depthWrite:Se?be.writeDepth&&j.LZ:(0,oe.K5)(Ee),colorWrite:j.BK,stencilWrite:be.hasOccludees?de.s3:null,stencilTest:be.hasOccludees?De?de.eD:de.RY:null,polygonOffset:{factor:0,units:-10}})}initializePipeline(){return this.configuration.occluder&&(this._occluderPipelineTransparent=(0,j.sm)({blending:oe.wu,depthTest:de.zV,depthWrite:null,colorWrite:j.BK,stencilWrite:null,stencilTest:de.YD}),this._occluderPipelineOpaque=(0,j.sm)({blending:oe.wu,depthTest:de.zV,depthWrite:null,colorWrite:j.BK,stencilWrite:de.P7,stencilTest:de.ii}),this._occluderPipelineMaskWrite=(0,j.sm)({blending:null,depthTest:de.JN,depthWrite:null,colorWrite:null,stencilWrite:de.s3,stencilTest:de.eD})),this._occludeePipelineState=this._makePipelineState(this.configuration.transparencyPassType,!0),this._makePipelineState(this.configuration.transparencyPassType,!1)}getPipelineState(Ee,De){return De?this._occludeePipelineState:this.configuration.occluder?Ee===B.r.TRANSPARENT_OCCLUDER_MATERIAL?this._occluderPipelineTransparent:Ee===B.r.OCCLUDER_MATERIAL?this._occluderPipelineOpaque:this._occluderPipelineMaskWrite:super.getPipelineState(Ee,De)}}ee.shader=new te.J(re.L,()=>v.e(2958).then(v.bind(v,62958)));var ie=v(46359),J=v(39401);class ce extends W.F5{constructor(Ee){super(Ee,new pe),this._vertexAttributeLocations=Y,this._configuration=new ie.PI,this._layout=this.createLayout()}dispose(){}getConfiguration(Ee,De){return this._configuration.output=Ee,this._configuration.space=De.slot===B.r.DRAPED_MATERIAL?ie.I9.Draped:this.parameters.worldSpace?ie.I9.World:ie.I9.Screen,this._configuration.hideOnShortSegments=this.parameters.hideOnShortSegments,this._configuration.hasCap=this.parameters.cap!==J.R.BUTT,this._configuration.anchor=this.parameters.anchor,this._configuration.hasTip=this.parameters.hasTip,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.vvColor=this.parameters.vvColorEnabled,this._configuration.vvOpacity=this.parameters.vvOpacityEnabled,this._configuration.vvSize=this.parameters.vvSizeEnabled,this._configuration.occluder=this.parameters.renderOccluded===W.yD.OccludeAndTransparentStencil,this._configuration.transparencyPassType=De.transparencyPassType,this._configuration.hasMultipassTerrain=De.multipassTerrain.enabled,this._configuration.cullAboveGround=De.multipassTerrain.cullAboveGround,this._configuration}intersect(){}createLayout(){const Ee=(0,Z.U$)().vec3f(H.T.POSITION).vec2f(H.T.UV0).vec3f(H.T.AUXPOS1);return this.parameters.worldSpace&&Ee.vec3f(H.T.NORMAL),Ee.f32(this.parameters.vvSizeEnabled?H.T.SIZEFEATUREATTRIBUTE:H.T.SIZE),this.parameters.vvColorEnabled?Ee.f32(H.T.COLORFEATUREATTRIBUTE):Ee.vec4f(H.T.COLOR),this.parameters.vvOpacityEnabled&&Ee.f32(H.T.OPACITYFEATUREATTRIBUTE),Ee}createBufferWriter(){return new he(this._layout,this.parameters)}requiresSlot(Ee,De){return!(De!==Q.H.Color&&De!==Q.H.Alpha&&De!==Q.H.Highlight&&De!==Q.H.Depth||Ee!==B.r.DRAPED_MATERIAL&&(this.parameters.renderOccluded===W.yD.OccludeAndTransparentStencil?Ee!==B.r.OPAQUE_MATERIAL&&Ee!==B.r.OCCLUDER_MATERIAL&&Ee!==B.r.TRANSPARENT_OCCLUDER_MATERIAL:De===Q.H.Color||De===Q.H.Alpha?Ee!==(this.parameters.writeDepth?B.r.TRANSPARENT_MATERIAL:B.r.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL):Ee!==B.r.OPAQUE_MATERIAL))}createGLMaterial(Ee){return new ue(Ee)}}class ue extends $.F{_updateParameters(Ee){return this.updateTexture(this._material.parameters.textureId),this._material.setParameters(this.textureBindParameters),this.ensureTechnique(ee,Ee)}_updateOccludeeState(Ee){Ee.hasOccludees!==this._material.parameters.hasOccludees&&this._material.setParameters({hasOccludees:Ee.hasOccludees})}beginSlot(Ee){return this._output!==Q.H.Color&&this._output!==Q.H.Alpha||this._updateOccludeeState(Ee),this._updateParameters(Ee)}}class pe extends X.n{constructor(){super(...arguments),this.width=0,this.color=[1,1,1,1],this.placement="end",this.cap=J.R.BUTT,this.anchor=ie.i5.Center,this.hasTip=!1,this.worldSpace=!1,this.hideOnShortSegments=!1,this.writeDepth=!0,this.hasSlicePlane=!1,this.vvFastUpdate=!1,this.hasOccludees=!1}}class he{constructor(Ee,De){this.vertexBufferLayout=Ee,this._parameters=De}allocate(Ee){return this.vertexBufferLayout.createBuffer(Ee)}elementCount(){return"begin-end"===this._parameters.placement?12:6}write(Ee,De,be,Se,ye){const ve=be.vertexAttributes.get(H.T.POSITION).data,xe=ve.length/3;let ze=[1,0,0];const Ke=be.vertexAttributes.get(H.T.NORMAL);this._parameters.worldSpace&&(0,D.pC)(Ke)&&(ze=Ke.data);let We=1,Ce=0;this._parameters.vvSizeEnabled?Ce=be.vertexAttributes.get(H.T.SIZEFEATUREATTRIBUTE).data[0]:be.vertexAttributes.has(H.T.SIZE)&&(We=be.vertexAttributes.get(H.T.SIZE).data[0]);let Be=[1,1,1,1],Fe=0;this._parameters.vvColorEnabled?Fe=be.vertexAttributes.get(H.T.COLORFEATUREATTRIBUTE).data[0]:be.vertexAttributes.has(H.T.COLOR)&&(Be=be.vertexAttributes.get(H.T.COLOR).data);let je=0;this._parameters.vvOpacityEnabled&&(je=be.vertexAttributes.get(H.T.OPACITYFEATUREATTRIBUTE).data[0]);const Re=new Float32Array(Se.buffer);let He=ye*(this.vertexBufferLayout.stride/4);const Ie=(Me,Ne,Xe,Ye)=>{if(Re[He++]=Me[0],Re[He++]=Me[1],Re[He++]=Me[2],Re[He++]=Xe[0],Re[He++]=Xe[1],Re[He++]=Ne[0],Re[He++]=Ne[1],Re[He++]=Ne[2],this._parameters.worldSpace&&(Re[He++]=ze[0],Re[He++]=ze[1],Re[He++]=ze[2]),Re[He++]=this._parameters.vvSizeEnabled?Ce:We,this._parameters.vvColorEnabled)Re[He++]=Fe;else{const Je=Math.min(4*Ye,Be.length-4);Re[He++]=Be[Je+0],Re[He++]=Be[Je+1],Re[He++]=Be[Je+2],Re[He++]=Be[Je+3]}this._parameters.vvOpacityEnabled&&(Re[He++]=je)};let Ge;var Me;(Me=Ge||(Ge={}))[Me.ASCENDING=1]="ASCENDING",Me[Me.DESCENDING=-1]="DESCENDING";const Pe=(Me,Ne)=>{const Xe=(0,R.s)(me,ve[3*Me],ve[3*Me+1],ve[3*Me+2]),Ye=ge;let Je=Me+Ne;do{(0,R.s)(Ye,ve[3*Je],ve[3*Je+1],ve[3*Je+2]),Je+=Ne}while((0,R.F)(Xe,Ye)&&Je>=0&&Je{"use strict";v.d(Ae,{Y:()=>Ke});var D=v(63290),R=v(62208),G=v(23841),Z=v(67831),Q=v(84161),$=v(28093),W=v(4794),B=v(8834),H=v(13777),X=v(90014),te=v(60479),ae=v(13934),oe=v(36848),le=v(60881),de=v(40723),se=v(5894),re=v(2282),j=v(16396),Y=v(42037),ee=v(60909),ie=v(57623),J=v(65073),ce=v(651),ue=v(91056),pe=v(39114),he=v(12407),me=v(64127),ge=v(32616),_e=v(57596),Ee=v(67969),De=v(2078);class be extends ue.A{get _stippleEnabled(){return this.configuration.stippleEnabled&&this.configuration.output!==ae.H.Highlight}initializeConfiguration(ut,_t){_t.hasWebGL2Context=ut.rctx.type===_e.zO.WEBGL2}initializeProgram(ut){return new he.$(ut.rctx,be.shader.get().build(this.configuration),pe.i)}initializePipeline(){const ut=this.configuration,_t=(0,De.wK)(Ee.zi.SRC_ALPHA,Ee.zi.ONE,Ee.zi.ONE_MINUS_SRC_ALPHA,Ee.zi.ONE_MINUS_SRC_ALPHA),Ct=(vt,Lt=null,jt=null)=>(0,De.sm)({blending:Lt,depthTest:me.JN,depthWrite:jt,colorWrite:De.BK,stencilWrite:ut.hasOccludees?me.s3:null,stencilTest:ut.hasOccludees?vt?me.eD:me.RY:null});return ut.output===ae.H.Color?(this._occludeePipelineState=Ct(!0,ut.transparent||this._stippleEnabled?_t:null,De.LZ),Ct(!1,ut.transparent||this._stippleEnabled?_t:null,De.LZ)):Ct(!1)}get primitiveType(){return Ee.MX.LINES}getPipelineState(ut,_t){return _t?this._occludeePipelineState:super.getPipelineState(ut,_t)}}be.shader=new ce.J(ge.N,()=>v.e(310).then(v.bind(v,20310)));var ze,ot,Se=v(17626),ye=v(87601),ve=v(41528);class xe extends ve.W{constructor(){super(...arguments),this.output=ae.H.Color,this.hasSlicePlane=!1,this.hasVertexColors=!1,this.transparent=!1,this.draped=!1,this.stippleEnabled=!1,this.stippleOffColorEnabled=!1,this.stipplePreferContinuous=!0,this.hasOccludees=!1}}(0,Se._)([(0,ye.o)({count:ae.H.COUNT})],xe.prototype,"output",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"hasSlicePlane",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"hasVertexColors",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"transparent",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"draped",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"stippleEnabled",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"stippleOffColorEnabled",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"stipplePreferContinuous",void 0),(0,Se._)([(0,ye.o)()],xe.prototype,"hasOccludees",void 0),(0,Se._)([(0,ye.o)({constValue:!1})],xe.prototype,"stippleRequiresClamp",void 0),(0,Se._)([(0,ye.o)({constValue:!1})],xe.prototype,"stippleScaleWithLineWidth",void 0),(0,Se._)([(0,ye.o)({constValue:!1})],xe.prototype,"stippleRequiresStretchMeasure",void 0),(ot=ze||(ze={}))[ot.START=0]="START",ot[ot.END=1]="END";class Ke extends de.F5{constructor(ut){super(ut,new Be),this._configuration=new xe}getConfiguration(ut,_t){this._configuration.output=ut,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasVertexColors=this.parameters.hasVertexColors,this._configuration.transparent=this.parameters.color[3]<1||this.parameters.width<1,this._configuration.draped=_t.slot===se.r.DRAPED_MATERIAL;const Ct=(0,R.pC)(this.parameters.stipplePattern);return this._configuration.stippleEnabled=Ct,this._configuration.stippleOffColorEnabled=Ct&&(0,R.pC)(this.parameters.stippleOffColor),this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.stipplePreferContinuous=this.parameters.stipplePreferContinuous,this._configuration}intersect(ut,_t,Ct,vt,Lt,jt,$t,Wt,pr){(0,R.pC)(pr)?(0,ie.TT)(ut,vt,pr,jt,1,$t):this._intersectLineGeometry(ut,_t,Ct,vt,$t)}_intersectLineGeometry(ut,_t,Ct,vt,Lt){if(!vt.options.selectionMode||(0,J.PD)(_t))return;if(!(0,re.kG)(Ct))return void D.Z.getLogger("esri.views.3d.webgl-engine.materials.NativeLineMaterial").error("intersection assumes a translation-only matrix");const jt=ut.vertexAttributes.get(j.T.POSITION).data,$t=vt.camera,Wt=Xe;(0,Z.c)(Wt,vt.point),(0,Q.s)(Ye[0],Wt[0]-2,Wt[1]+2,0),(0,Q.s)(Ye[1],Wt[0]+2,Wt[1]+2,0),(0,Q.s)(Ye[2],Wt[0]+2,Wt[1]-2,0),(0,Q.s)(Ye[3],Wt[0]-2,Wt[1]-2,0);for(let wt=0;wt<4;wt++)if(!$t.unprojectFromRenderScreen(Ye[wt],Je[wt]))return;(0,X.zk)($t.eye,Je[0],Je[1],rt),(0,X.zk)($t.eye,Je[1],Je[2],tt),(0,X.zk)($t.eye,Je[2],Je[3],et),(0,X.zk)($t.eye,Je[3],Je[0],qe);let gr=Number.MAX_VALUE,ar=0;for(let wt=0;wt0){(0,Q.b)(Re,Fe,je);const sr=$t.frustum,rr=-(0,X.jH)(sr[B.Nu.NEAR],Fe)/(0,Q.e)(Re,(0,X.mJ)(sr[B.Nu.NEAR]));(0,Q.g)(Re,Re,rr),(0,Q.a)(Fe,Fe,Re),$t.projectToRenderScreen(Fe,Ie)}else if(Ie[2]>0&&Ge[2]<0){(0,Q.b)(Re,je,Fe);const sr=$t.frustum,rr=-(0,X.jH)(sr[B.Nu.NEAR],je)/(0,Q.e)(Re,(0,X.mJ)(sr[B.Nu.NEAR]));(0,Q.g)(Re,Re,rr),(0,Q.a)(je,je,Re),$t.projectToRenderScreen(je,Ge)}else if(Ie[2]<0&&Ge[2]<0)continue;Ie[2]=0,Ge[2]=0;const or=(0,H.Jk)((0,H.zk)(Ie,Ge,Me),Wt);orar=Wt[zt]:(St,Ft,zt)=>ar+=(0,Q.i)(St,Ft);for(let St=1;St{"use strict";var D,R;v.d(Ae,{b:()=>D}),(R=D||(D={}))[R.Horizontal=0]="Horizontal",R[R.Vertical=1]="Vertical",R[R.Cross=2]="Cross",R[R.ForwardDiagonal=3]="ForwardDiagonal",R[R.BackwardDiagonal=4]="BackwardDiagonal",R[R.DiagonalCross=5]="DiagonalCross",R[R.COUNT=6]="COUNT"},92222:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>Ke});var D=v(8314),R=v(63290),G=v(21286),Z=v(62208),Q=v(23841),$=v(67831),W=v(84161),B=v(28093),H=v(4794),X=v(8834),te=v(13777),ae=v(90014),oe=v(19625),le=v(13934),de=v(36848),se=v(60881),re=v(40723),j=v(5894),Y=v(2282),ee=v(16396),ie=v(41857),J=v(65073),ce=v(46359),ue=v(3393),pe=v(651),he=v(91056),me=v(88569),ge=v(12407),_e=v(64127),Ee=v(44835),De=v(67969),be=v(2078);const Se=new Map([[ee.T.POSITION,0],[ee.T.SUBDIVISIONFACTOR,1],[ee.T.UV0,2],[ee.T.AUXPOS1,3],[ee.T.AUXPOS2,4],[ee.T.COLOR,5],[ee.T.COLORFEATUREATTRIBUTE,5],[ee.T.SIZE,6],[ee.T.SIZEFEATUREATTRIBUTE,6],[ee.T.OPACITYFEATUREATTRIBUTE,7],[ee.T.OBJECTANDLAYERIDCOLOR,8]]);class ye extends he.A{initializeProgram(Wt){return new ge.$(Wt.rctx,ye.shader.get().build(this.configuration),Se)}_makePipelineState(Wt,pr){const gr=this.configuration,ar=Wt===Ee.A.NONE,Fr=Wt===Ee.A.FrontFace;return(0,be.sm)({blending:gr.output===le.H.Color||gr.output===le.H.Alpha?ar?me.wu:(0,me.j7)(Wt):null,depthTest:{func:(0,me.Bh)(Wt)},depthWrite:ar?gr.writeDepth&&be.LZ:(0,me.K5)(Wt),colorWrite:be.BK,stencilWrite:gr.hasOccludees?_e.s3:null,stencilTest:gr.hasOccludees?pr?_e.eD:_e.RY:null,polygonOffset:ar||Fr?gr.hasPolygonOffset&&ve:me.E0})}initializePipeline(){const Wt=this.configuration;if(Wt.occluder){const pr=Wt.hasPolygonOffset&&ve;this._occluderPipelineTransparent=(0,be.sm)({blending:me.wu,polygonOffset:pr,depthTest:_e.zV,depthWrite:null,colorWrite:be.BK,stencilWrite:null,stencilTest:_e.YD}),this._occluderPipelineOpaque=(0,be.sm)({blending:me.wu,polygonOffset:pr,depthTest:_e.zV,depthWrite:null,colorWrite:be.BK,stencilWrite:_e.P7,stencilTest:_e.ii}),this._occluderPipelineMaskWrite=(0,be.sm)({blending:null,polygonOffset:pr,depthTest:_e.JN,depthWrite:null,colorWrite:null,stencilWrite:_e.s3,stencilTest:_e.eD})}return this._occludeePipelineState=this._makePipelineState(this.configuration.transparencyPassType,!0),this._makePipelineState(this.configuration.transparencyPassType,!1)}get primitiveType(){return this.configuration.wireframe?De.MX.LINES:De.MX.TRIANGLE_STRIP}getPipelineState(Wt,pr){return pr?this._occludeePipelineState:this.configuration.occluder?Wt===j.r.TRANSPARENT_OCCLUDER_MATERIAL?this._occluderPipelineTransparent:Wt===j.r.OCCLUDER_MATERIAL?this._occluderPipelineOpaque:this._occluderPipelineMaskWrite:super.getPipelineState(Wt,pr)}}ye.shader=new pe.J(ue.R,()=>v.e(4346).then(v.bind(v,84346)));const ve={factor:0,units:-4};var ze,$t,xe=v(39401);($t=ze||(ze={}))[$t.LEFT_JOIN_START=-2]="LEFT_JOIN_START",$t[$t.LEFT_JOIN_END=-1]="LEFT_JOIN_END",$t[$t.LEFT_CAP_START=-4]="LEFT_CAP_START",$t[$t.LEFT_CAP_END=-5]="LEFT_CAP_END",$t[$t.RIGHT_JOIN_START=2]="RIGHT_JOIN_START",$t[$t.RIGHT_JOIN_END=1]="RIGHT_JOIN_END",$t[$t.RIGHT_CAP_START=4]="RIGHT_CAP_START",$t[$t.RIGHT_CAP_END=5]="RIGHT_CAP_END";class Ke extends re.F5{constructor(Wt){super(Wt,new Ce),this._configuration=new xe.G,this._vertexAttributeLocations=Se,this._layout=this.createLayout()}isClosed(Wt,pr){return Re(this.parameters,Wt,pr)}getConfiguration(Wt,pr){this._configuration.output=Wt,this._configuration.draped=pr.slot===j.r.DRAPED_MATERIAL;const gr=(0,Z.pC)(this.parameters.stipplePattern)&&Wt!==le.H.Highlight;return this._configuration.stippleEnabled=gr,this._configuration.stippleOffColorEnabled=gr&&(0,Z.pC)(this.parameters.stippleOffColor),this._configuration.stippleScaleWithLineWidth=gr&&this.parameters.stippleScaleWithLineWidth,this._configuration.stipplePreferContinuous=gr&&this.parameters.stipplePreferContinuous,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.roundJoins="round"===this.parameters.join,this._configuration.capType=this.parameters.cap,this._configuration.applyMarkerOffset=!!(0,Z.pC)(this.parameters.markerParameters)&&function He($t){return $t.anchor===ce.i5.Tip&&$t.hideOnShortSegments&&"begin-end"===$t.placement&&$t.worldSpace}(this.parameters.markerParameters),this._configuration.hasPolygonOffset=this.parameters.hasPolygonOffset,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.vvColor=this.parameters.vvColorEnabled,this._configuration.vvOpacity=this.parameters.vvOpacityEnabled,this._configuration.vvSize=this.parameters.vvSizeEnabled,this._configuration.innerColorEnabled=this.parameters.innerWidth>0&&(0,Z.pC)(this.parameters.innerColor),this._configuration.falloffEnabled=this.parameters.falloff>0,this._configuration.occluder=this.parameters.renderOccluded===re.yD.OccludeAndTransparentStencil,this._configuration.transparencyPassType=pr.transparencyPassType,this._configuration.hasMultipassTerrain=pr.multipassTerrain.enabled,this._configuration.cullAboveGround=pr.multipassTerrain.cullAboveGround,this._configuration.wireframe=this.parameters.wireframe,this._configuration}intersect(Wt,pr,gr,ar,Fr,mr,wt,or,sr){(0,Z.pC)(sr)?this._intersectDrapedLineGeometry(Wt,ar,sr,mr,wt):this._intersectLineGeometry(Wt,pr,gr,ar,wt)}_intersectDrapedLineGeometry(Wt,pr,gr,ar,Fr){if(!pr.options.selectionMode)return;const mr=Wt.vertexAttributes.get(ee.T.POSITION).data,wt=Wt.vertexAttributes.get(ee.T.SIZE);let or=this.parameters.width;if(this.parameters.vvSizeEnabled){const zt=Wt.vertexAttributes.get(ee.T.SIZEFEATUREATTRIBUTE).data[0];or*=(0,G.uZ)(this.parameters.vvSizeOffset[0]+zt*this.parameters.vvSizeFactor[0],this.parameters.vvSizeMinSize[0],this.parameters.vvSizeMaxSize[0])}else wt&&(or*=wt.data[0]);const sr=ar[0],rr=ar[1],Et=(or/2+4)*Wt.screenToWorldRatio;let St=Number.MAX_VALUE,Ft=0;for(let zt=0;zt0){(0,W.b)(Pe,Ie,Ge);const Hr=sr.frustum,Qr=-(0,ae.jH)(Hr[X.Nu.NEAR],Ie)/(0,W.e)(Pe,(0,ae.mJ)(Hr[X.Nu.NEAR]));(0,W.g)(Pe,Pe,Qr),(0,W.a)(Ie,Ie,Pe),sr.projectToRenderScreen(Ie,Ne)}else if(Ne[2]>0&&Xe[2]<0){(0,W.b)(Pe,Ge,Ie);const Hr=sr.frustum,Qr=-(0,ae.jH)(Hr[X.Nu.NEAR],Ge)/(0,W.e)(Pe,(0,ae.mJ)(Hr[X.Nu.NEAR]));(0,W.g)(Pe,Pe,Qr),(0,W.a)(Ge,Ge,Pe),sr.projectToRenderScreen(Ge,Xe)}else if(Ne[2]<0&&Xe[2]<0)continue;Ne[2]=0,Xe[2]=0;const Lr=(0,te.Jk)((0,te.zk)(Ne,Xe,rt),rr);LrCs=Et[gs]:(_r,Or,gs)=>Cs+=(0,W.i)(_r,Or),ct=(_r,Or,gs,Kr,qt,Ir,Sr)=>{if(Lr[Jr++]=Or[0],Lr[Jr++]=Or[1],Lr[Jr++]=Or[2],Lr[Jr++]=Kr,Lr[Jr++]=Sr,Lr[Jr++]=qt,Lr[Jr++]=_r[0],Lr[Jr++]=_r[1],Lr[Jr++]=_r[2],Lr[Jr++]=gs[0],Lr[Jr++]=gs[1],Lr[Jr++]=gs[2],Lr[Jr++]=this._parameters.vvSizeEnabled?Ft:St,this._parameters.vvColorEnabled)Lr[Jr++]=dr;else{const fs=Math.min(4*Ir,zt.length-4);Lr[Jr++]=zt[fs+0],Lr[Jr++]=zt[fs+1],Lr[Jr++]=zt[fs+2],Lr[Jr++]=zt[fs+3]}this._parameters.vvOpacityEnabled&&(Lr[Jr++]=Tr),(0,D.Z)("enable-feature:objectAndLayerId-rendering")&&((0,Z.pC)(hr)&&(Hr[4*Jr+0]=hr[0],Hr[4*Jr+1]=hr[1],Hr[4*Jr+2]=hr[2],Hr[4*Jr+3]=hr[3]),Jr++)};Jr+=Qr,(0,W.s)(wt,sr[0],sr[1],sr[2]),Wt&&(0,W.m)(wt,wt,Wt);const At=this._isClosed(gr);if(At){const _r=sr.length-3;(0,W.s)(mr,sr[_r],sr[_r+1],sr[_r+2]),Wt&&(0,W.m)(mr,mr,Wt)}else(0,W.s)(or,sr[3],sr[4],sr[5]),Wt&&(0,W.m)(or,or,Wt),ct(wt,wt,or,1,ze.LEFT_CAP_START,0,0),ct(wt,wt,or,1,ze.RIGHT_CAP_START,0,0),(0,W.c)(mr,wt),(0,W.c)(wt,or);const Kt=At?0:1,tr=At?Dr:Dr-1;for(let _r=Kt;_rwt=Fe(mr,sr,Fr,wt,ar);for(let sr=0;sr2:Wt.length>6)}const Ie=(0,B.c)(),Ge=(0,B.c)(),Pe=(0,B.c)(),Le=(0,B.c)(),Me=(0,B.c)(),Ne=(0,Q.J$)(),Xe=(0,Q.J$)(),Ye=(0,B.c)(),Je=(0,B.c)(),rt=(0,te.Ue)(),tt=(0,te.Ue)(),et=(0,B.c)(),qe=(0,B.c)(),ot=(0,B.c)(),ut=[(0,Q.J$)(),(0,Q.J$)(),(0,Q.J$)(),(0,Q.J$)()],_t=[(0,B.c)(),(0,B.c)(),(0,B.c)(),(0,B.c)()],Ct=(0,ae.Ue)(),vt=(0,ae.Ue)(),Lt=(0,ae.Ue)(),jt=(0,ae.Ue)()},51899:(nt,Ae,v)=>{"use strict";v.d(Ae,{$A:()=>X,h0:()=>$,it:()=>ae,kj:()=>te});var D=v(36161),R=v(62208),G=v(17625),Z=v(67969),Q=v(55086);class ${constructor(le){this._rctx=le,this._cache=new Map}dispose(){this._cache.forEach(le=>(0,R.M2)(le.stippleTexture)),this._cache.clear()}_acquire(le){if((0,R.Wi)(le))return null;const de=this._patternId(le),se=this._cache.get(de);if(se)return se.refCount++,se;const{encodedData:re,paddedPixels:j}=function B(oe){const le=H(oe),de=1/oe.pixelRatio,se=X(oe),re=te(oe),j=(Math.floor(.5*(re-1))+.5)*de,Y=[];let ee=1;for(const he of le){for(let me=0;meMath.round(le*oe.pixelRatio))}function X(oe){if((0,R.Wi)(oe))return 1;const le=H(oe);return Math.floor(le.reduce((de,se)=>de+se))}function te(oe){return H(oe).reduce((le,de)=>Math.max(le,de))}const ae=2},41857:(nt,Ae,v)=>{"use strict";v.d(Ae,{n:()=>Z,x:()=>Q});var D=v(550),R=v(28093),G=v(40723);class Z extends G.Mt{constructor(){super(...arguments),this.vvSizeEnabled=!1,this.vvSizeMinSize=(0,R.f)(1,1,1),this.vvSizeMaxSize=(0,R.f)(100,100,100),this.vvSizeOffset=(0,R.f)(0,0,0),this.vvSizeFactor=(0,R.f)(1,1,1),this.vvSizeValue=(0,R.f)(1,1,1),this.vvColorEnabled=!1,this.vvColorValues=[0,0,0,0,0,0,0,0],this.vvColorColors=[1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0],this.vvOpacityEnabled=!1,this.vvOpacityValues=[0,0,0,0,0,0,0,0],this.vvOpacityOpacities=[1,1,1,1,1,1,1,1],this.vvSymbolAnchor=[0,0,0],this.vvSymbolRotationMatrix=(0,D.c)()}}const Q=8},44989:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>be,m:()=>Se});var D=v(27422),R=v(99770),G=v(4794),Z=v(13934),Q=v(42836),$=v(40723),W=v(88569),B=v(5894),H=v(62208),X=v(60881),te=v(17626),ae=v(59617),oe=v(92724),de=(v(45780),v(7228)),se=v(651),re=v(91056),j=v(87601),Y=v(39114),ee=v(12407),ie=v(44835),J=v(41528),ce=v(61584),ue=v(57596),pe=v(2078);class me extends re.A{initializeConfiguration(xe,ze){ze.hasWebGL2Context=xe.rctx.type===ue.zO.WEBGL2,ze.spherical=xe.viewingMode===ae.JY.Global,ze.doublePrecisionRequiresObfuscation=(0,de.I)(xe.rctx)}initializeProgram(xe){return new ee.$(xe.rctx,me.shader.get().build(this.configuration),Y.i)}_setPipelineState(xe){const ze=this.configuration,Ke=xe===ie.A.NONE,We=xe===ie.A.FrontFace;return(0,pe.sm)({blending:ze.output!==Z.H.Normal&&ze.output!==Z.H.Highlight&&ze.transparent?Ke?W.wu:(0,W.j7)(xe):null,depthTest:{func:(0,W.Bh)(xe)},depthWrite:Ke?ze.writeDepth&&pe.LZ:(0,W.K5)(xe),colorWrite:pe.BK,polygonOffset:Ke||We?null:(0,W.je)(ze.enableOffset)})}initializePipeline(){return this._setPipelineState(this.configuration.transparencyPassType)}}me.shader=new se.J(ce.W,()=>v.e(4095).then(v.bind(v,74095)));class ge extends J.W{constructor(){super(...arguments),this.output=Z.H.Color,this.transparencyPassType=ie.A.NONE,this.spherical=!1,this.receiveShadows=!1,this.hasSlicePlane=!1,this.transparent=!1,this.enableOffset=!0,this.writeDepth=!1,this.hasScreenSpaceReflections=!1,this.doublePrecisionRequiresObfuscation=!1,this.hasCloudsReflections=!1,this.isDraped=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1}}(0,te._)([(0,j.o)({count:Z.H.COUNT})],ge.prototype,"output",void 0),(0,te._)([(0,j.o)({count:ie.A.COUNT})],ge.prototype,"transparencyPassType",void 0),(0,te._)([(0,j.o)()],ge.prototype,"spherical",void 0),(0,te._)([(0,j.o)()],ge.prototype,"receiveShadows",void 0),(0,te._)([(0,j.o)()],ge.prototype,"hasSlicePlane",void 0),(0,te._)([(0,j.o)()],ge.prototype,"transparent",void 0),(0,te._)([(0,j.o)()],ge.prototype,"enableOffset",void 0),(0,te._)([(0,j.o)()],ge.prototype,"writeDepth",void 0),(0,te._)([(0,j.o)()],ge.prototype,"hasScreenSpaceReflections",void 0),(0,te._)([(0,j.o)()],ge.prototype,"doublePrecisionRequiresObfuscation",void 0),(0,te._)([(0,j.o)()],ge.prototype,"hasCloudsReflections",void 0),(0,te._)([(0,j.o)()],ge.prototype,"isDraped",void 0),(0,te._)([(0,j.o)()],ge.prototype,"hasMultipassTerrain",void 0),(0,te._)([(0,j.o)()],ge.prototype,"cullAboveGround",void 0),(0,te._)([(0,j.o)({constValue:oe.f7.Water})],ge.prototype,"pbrMode",void 0),(0,te._)([(0,j.o)({constValue:!0})],ge.prototype,"useCustomDTRExponentForWater",void 0),(0,te._)([(0,j.o)({constValue:!0})],ge.prototype,"highStepCount",void 0),(0,te._)([(0,j.o)({constValue:!1})],ge.prototype,"useFillLights",void 0);class _e extends X.Z{_updateShadowState(xe){xe.shadowMap.enabled!==this._material.parameters.receiveShadows&&this._material.setParameters({receiveShadows:xe.shadowMap.enabled})}_updateSSRState(xe){xe.ssr.enabled!==this._material.parameters.hasScreenSpaceReflections&&this._material.setParameters({hasScreenSpaceReflections:xe.ssr.enabled})}_updateCloudsReflectionState(xe){const ze=(0,H.pC)(xe.cloudsFade.data);ze!==this._material.parameters.hasCloudsReflections&&this._material.setParameters({hasCloudsReflections:ze})}ensureResources(xe){return this._techniqueRepository.constructionContext.waterTextureRepository.ensureResources(xe)}beginSlot(xe){return this._output===Z.H.Color&&(this._updateShadowState(xe),this._updateSSRState(xe),this._updateCloudsReflectionState(xe)),this._material.setParameters(this._techniqueRepository.constructionContext.waterTextureRepository.passParameters),this.ensureTechnique(me,xe)}}var Ee=v(60909),De=v(57623);class be extends $.F5{constructor(xe){super(xe,new Se),this._configuration=new ge,this.animation=new Q.d}getConfiguration(xe,ze){return this._configuration.output=xe,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.receiveShadows=this.parameters.receiveShadows,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.transparent=this.parameters.transparent,this._configuration.hasScreenSpaceReflections=this.parameters.hasScreenSpaceReflections,this._configuration.hasCloudsReflections=this.parameters.hasCloudsReflections,this._configuration.isDraped=this.parameters.isDraped,this._configuration.transparencyPassType=ze.transparencyPassType,this._configuration.enableOffset=ze.camera.relativeElevation{"use strict";v.d(Ae,{G_:()=>X,IM:()=>$,W1:()=>Q,ck:()=>H,wp:()=>Z});var D=v(19625),R=v(16396),G=v(42037);const Z=(0,D.U$)().vec3f(R.T.POSITION),Q=(0,D.U$)().vec3f(R.T.POSITION).vec2f(R.T.UV0),$=(0,D.U$)().vec3f(R.T.POSITION).vec4u8(R.T.COLOR),H=((0,D.U$)().vec3f(R.T.POSITION).vec4u8(R.T.OBJECTANDLAYERIDCOLOR),(0,D.U$)().vec3f(R.T.POSITION).vec2f(R.T.UV0).vec4u8(R.T.OBJECTANDLAYERIDCOLOR),(0,D.U$)().vec3f(R.T.POSITION).vec4u8(R.T.COLOR).vec4u8(R.T.OBJECTANDLAYERIDCOLOR));class X{constructor(ae){this.vertexBufferLayout=ae}allocate(ae){return this.vertexBufferLayout.createBuffer(ae)}elementCount(ae){return ae.indices.get(R.T.POSITION).length}write(ae,oe,le,de,se){(0,G.NK)(le,this.vertexBufferLayout,ae,oe,de,se)}}},57623:(nt,Ae,v)=>{"use strict";v.d(Ae,{Bw:()=>oe,CN:()=>re,FZ:()=>Ee,Fw:()=>ue,Hx:()=>pe,LO:()=>me,Mw:()=>ie,TT:()=>ge,Tw:()=>ce,Ue:()=>J,Uf:()=>he});var D=v(85931),R=v(21286),G=v(62208),Z=v(84161),Q=v(28093),$=v(5548),W=v(42743),B=v(17962),H=v(2282),X=v(16396),te=v(65073);const ae=(0,$.Ue)();function oe(be,Se,ye,ve,xe,ze,Ke){if(!(0,te.PD)(Se))if(be.boundingInfo)(0,H.hu)(be.primitiveType===W.MX.Triangle),de(be.boundingInfo,ve,xe,ye.tolerance,ze,Ke);else{const We=be.indices.get(X.T.POSITION),Ce=be.vertexAttributes.get(X.T.POSITION);re(ve,xe,0,We.length/3,We,Ce,void 0,ze,Ke)}}const le=(0,Q.c)();function de(be,Se,ye,ve,xe,ze){if((0,G.Wi)(be))return;const Ke=J(Se,ye,le);if((0,$.op)(ae,be.getBBMin()),(0,$.Tn)(ae,be.getBBMax()),(0,G.pC)(xe)&&xe.applyToAabb(ae),ce(ae,Se,Ke,ve)){const{primitiveIndices:We,indices:Ce,position:Be}=be,Fe=We?We.length:Ce.length/3;if(Fe>De){const je=be.getChildren();if(void 0!==je){for(let Re=0;Re<8;++Re)void 0!==je[Re]&&de(je[Re],Se,ye,ve,xe,ze);return}}re(Se,ye,0,Fe,Ce,Be,We,xe,ze)}}const se=(0,Q.c)();function re(be,Se,ye,ve,xe,ze,Ke,We,Ce){if(Ke)return function j(be,Se,ye,ve,xe,ze,Ke,We,Ce){const Be=ze.data,Fe=ze.stride||ze.size,je=be[0],Re=be[1],He=be[2],Ie=Se[0]-je,Ge=Se[1]-Re,Pe=Se[2]-He;for(let Le=ye;Le0){if(sr<0||sr>Fr)continue}else if(sr>0||sr0){if(Ft<0||sr+Ft>Fr)continue}else if(Ft>0||sr+Ft=0&&Ce(zt,ie(Ct,vt,Lt,jt,$t,Wt,se),Me,!1)}}(be,Se,ye,ve,xe,ze,Ke,We,Ce);const Be=ze.data,Fe=ze.stride||ze.size,je=be[0],Re=be[1],He=be[2],Ie=Se[0]-je,Ge=Se[1]-Re,Pe=Se[2]-He;for(let Le=ye,Me=3*ye;Le0){if(or<0||or>ar)continue}else if(or>0||or0){if(St<0||or+St>ar)continue}else if(St>0||or+St=0&&Ce(Ft,ie(_t,Ct,vt,Lt,jt,$t,se),Le,!1)}}const Y=(0,Q.c)(),ee=(0,Q.c)();function ie(be,Se,ye,ve,xe,ze,Ke){return(0,Z.s)(Y,be,Se,ye),(0,Z.s)(ee,ve,xe,ze),(0,Z.f)(Ke,Y,ee),(0,Z.n)(Ke,Ke),Ke}function J(be,Se,ye){return(0,Z.s)(ye,1/(Se[0]-be[0]),1/(Se[1]-be[1]),1/(Se[2]-be[2]))}function ce(be,Se,ye,ve){return ue(be,Se,ye,ve,1/0)}function ue(be,Se,ye,ve,xe){const ze=(be[0]-ve-Se[0])*ye[0],Ke=(be[3]+ve-Se[0])*ye[0];let We=Math.min(ze,Ke),Ce=Math.max(ze,Ke);const Be=(be[1]-ve-Se[1])*ye[1],Fe=(be[4]+ve-Se[1])*ye[1];if(Ce=Math.min(Ce,Math.max(Be,Fe)),Ce<0||(We=Math.max(We,Math.min(Be,Fe)),We>Ce))return!1;const je=(be[2]-ve-Se[2])*ye[2],Re=(be[5]+ve-Se[2])*ye[2];return Ce=Math.min(Ce,Math.max(je,Re)),!(Ce<0)&&(We=Math.max(We,Math.min(je,Re)),!(We>Ce)&&WeSe.push(ye)),Se}const Ee={multiply:1,ignore:2,replace:3,tint:4},De=1e3},42037:(nt,Ae,v)=>{"use strict";v.d(Ae,{NK:()=>re,SW:()=>H,Vs:()=>de,XW:()=>$,ho:()=>ae,s5:()=>oe,xP:()=>se});var D=v(62208),R=v(28347),G=v(60479),Z=v(2282),Q=v(16396);function $(Y,ee,ie,J,ce=1){const ue=ie.typedBuffer,pe=ie.typedBufferStride,he=Y.length;if(J*=pe,1===ce)for(let me=0;me{Ce=ee[Re]+ze,Be=ee[Re+1]+Ke,Fe=ee[Re+2]+We}:Re=>{const He=ee[Re],Ie=ee[Re+1],Ge=ee[Re+2];Ce=ge*He+De*Ie+ye*Ge+ze,Be=_e*He+be*Ie+ve*Ge+Ke,Fe=Ee*He+Se*Ie+xe*Ge+We};if(1===ue)for(let Re=0;Re{Be=ee[He],Fe=ee[He+1],je=ee[He+2]}:He=>{const Ie=ee[He],Ge=ee[He+1],Pe=ee[He+2];Be=_e*Ie+be*Ge+ve*Pe,Fe=Ee*Ie+Se*Ge+xe*Pe,je=De*Ie+ye*Ge+ze*Pe};if(1===ue)if(Ke)for(let He=0;He1e-6){const Ge=1/Math.sqrt(Ie);he[ce]=Be*Ge,he[ce+1]=Fe*Ge,he[ce+2]=je*Ge}else he[ce]=Be,he[ce+1]=Fe,he[ce+2]=je;ce+=me}else for(let He=0;He1e-6){const Ge=1/Math.sqrt(Ie);Be*=Ge,Fe*=Ge,je*=Ge}}for(let Ie=0;Ie1e-6){const Ne=1/Math.sqrt(Me);Ge*=Ne,Pe*=Ne,Le*=Ne}}he[ce]=Ge,he[ce+1]=Pe,he[ce+2]=Le,he[ce+3]=Ie,ce+=me}else for(let Be=0;Be1e-6){const Ne=1/Math.sqrt(Me);Ge*=Ne,Pe*=Ne,Le*=Ne}}for(let Me=0;Me{"use strict";v.d(Ae,{Dp:()=>W,z5:()=>$});var D=v(62208);const R={dash:[4,3],dot:[1,3],"long-dash":[8,3],"short-dash":[4,1],"short-dot":[1,1]},G={dash:R.dash,"dash-dot":[...R.dash,...R.dot],dot:R.dot,"long-dash":R["long-dash"],"long-dash-dot":[...R["long-dash"],...R.dot],"long-dash-dot-dot":[...R["long-dash"],...R.dot,...R.dot],none:null,"short-dash":R["short-dash"],"short-dash-dot":[...R["short-dash"],...R["short-dot"]],"short-dash-dot-dot":[...R["short-dash"],...R["short-dot"],...R["short-dot"]],"short-dot":R["short-dot"],solid:null};function $(H,X=2){return{pattern:[H,H],pixelRatio:X}}function W(H){return(0,D.pC)(H)&&"style"===H.type?function B(H){return(0,D.pC)(H)?function Q(H,X=2){return(0,D.Wi)(H)?H:{pattern:H.slice(),pixelRatio:X}}(G[H],8):null}(H.style):null}},38516:(nt,Ae,v)=>{"use strict";v.d(Ae,{A:()=>ve});var D=v(88159),R=v(62208),G=v(77029),Z=v(28347),Q=v(43703),$=v(4511),W=v(13934),B=v(32393),H=v(40723),X=v(54840),te=v(2282),ae=v(7949),oe=v(44989);class le{constructor(){this.first=0,this.count=0}}class de{constructor(Le=0,Me=0){this.from=Le,this.to=Me}}class se extends de{constructor(Le,Me,Ne,Xe,Ye,Je){super(Me,Ne),this.id=Le,this.isVisible=Xe,this.hasHighlights=Ye,this.hasOccludees=Je}}function re(Pe){return Array.from(Pe.values()).sort(j)}function j(Pe,Le){return Pe.from===Le.from?Pe.to-Le.to:Pe.from-Le.from}function Y(Pe,Le){const Me=Pe.back();if(null==Me){const Ne=Pe.pushNew();return Ne.first=Le.from,void(Ne.count=Le.to-Le.from)}if(function ee(Pe,Le){return Pe.first+Pe.count>=Le.from}(Me,Le))Me.count=Le.from-Me.first+Le.to-Le.from;else{const Ne=Pe.pushNew();Ne.first=Le.from,Ne.count=Le.to-Le.from}}class ie{constructor(Le,Me){this._pool=Le,this._size=0,this._buffer=Le.newBuffer(ce(Me))}dispose(){this._buffer=this._pool.deleteBuffer(this._buffer),this._size=0}release(){this.erase(0,this._size),this.dispose()}get buffer(){return this._buffer}get size(){return this._size}grow(Le){this._resize(this._size+Le,!0).dispose()}allocate(Le){return this._resize(Le,!1)}_resize(Le,Me){let Ne;const Xe=function ue(Pe,Le,Me){return Le<=Me?Pe>=Me?Pe:ce(Math.max(2*Pe,Me)):Pe<=2*Me?Pe:ce(Me)}(this._buffer.length,this._size,Le);if(this._buffer.length!==Xe){const Je=this._pool.newBuffer(Xe);Me&&(Je.array.set(this._buffer.array.subarray(0,Math.min(this._size,Xe))),Je.vao.vertexBuffers.geometry.setSubData(Je.array,0,0,Je.array.length)),Ne=this._buffer,this._buffer=Je}const Ye=this._size;return this._size=Le,Ne?{dispose:()=>{Ne.array.fill(0,0,Ye),this._pool.deleteBuffer(Ne)},copy:(Je,rt,tt)=>this._buffer.array.set(Ne.array.subarray(rt,tt),Je),hasNewBuffer:!0}:{dispose:()=>{},copy:(Je,rt,tt)=>{Je!==rt&&this._buffer.array.copyWithin(Je,rt,tt)},hasNewBuffer:!1}}erase(Le,Me){this._buffer.array.fill(0,Le,Me)}}const J=65536;function ce(Pe){return Math.ceil(Pe/J)*J}var pe=v(1036),he=v(86236),me=v(15197),ge=v(83994),_e=v(67969);class Ee{constructor(Le,Me,Ne,Xe){this.vao=new me.U(Le,Me,{geometry:Ne},{geometry:ge.f.createVertex(Le,_e.l1.STATIC_DRAW)}),this.array=new Float32Array(Xe),this.vao.vertexBuffers.geometry.setSize(this.array.byteLength)}dispose(){this.vao.dispose(!0)}get length(){return this.array.length}}const De=pe.an+1;class be{constructor(Le,Me,Ne){this._rctx=Le,this._locations=Me,this._layout=Ne,this._cache=Le.newCache(`MergedRenderer pool ${(0,he.D)()}`,Se)}dispose(){this._cache.destroy()}newBuffer(Le){const Me=Le.toString(),Ne=this._cache.pop(Me);if((0,R.pC)(Ne)){const Xe=Ne.pop();return Ne.length>0&&this._cache.put(Me,Ne,Xe.array.byteLength*Ne.length,De),Xe}return new Ee(this._rctx,this._locations,this._layout,Le)}deleteBuffer(Le){const Me=Le.array.byteLength,Ne=Le.array.length.toString(),Xe=this._cache.pop(Ne);return(0,R.pC)(Xe)?(Xe.push(Le),this._cache.put(Ne,Xe,Me*Xe.length,-1)):this._cache.put(Ne,[Le],Me,-1),null}}function Se(Pe,Le){if(Le===pe.lN.ALL)return void Pe.forEach(Xe=>Xe.dispose());const Me=Pe.pop(),Ne=Pe.length*Me.array.byteLength;return Me.dispose(),Ne}var ye=v(65073);class ve{constructor(Le,Me,Ne){this._rctx=Le,this._materialRepository=Me,this._material=Ne,this.type="MergedRenderer",this._dataByOrigin=new Map,this._renderCommandData=new G.Z,this._hasHighlights=!1,this._hasOccludees=!1,this._glMaterials=new B.p(this._material,this._materialRepository),this._bufferWriter=Ne.createBufferWriter(),this._bufferPool=new be(Le,Ne.vertexAttributeLocations,(0,$.K)(this._bufferWriter.vertexBufferLayout))}dispose(){this._glMaterials.destroy(),this._dataByOrigin.forEach(Le=>Le.geometry.dispose()),this._dataByOrigin.clear(),this._bufferPool.dispose()}get isEmpty(){return 0===this._dataByOrigin.size}get hasHighlights(){return this._hasHighlights}get hasOccludees(){return this._hasOccludees}get hasWater(){return!this.isEmpty&&this._material instanceof oe.H}get rendersOccluded(){return!this.isEmpty&&this._material.renderOccluded!==H.yD.Occlude}modify(Le){this._updateGeometries(Le.updates),this._addAndRemoveGeometries(Le.adds,Le.removes),this._updateDrawCommands()}_addAndRemoveGeometries(Le,Me){const Ne=this._bufferWriter,Xe=Ne.vertexBufferLayout.stride/4,Ye=this._dataByOrigin,Je=function ze(Pe,Le){const Me=new Map;for(const Ne of Pe)Ke(Me,Ne,!0);for(const Ne of Le)Ke(Me,Ne,!1);return Me}(Le,Me);Je.forEach((rt,tt)=>{Je.delete(tt);const et=rt.add.reduce((jt,$t)=>jt+Ne.elementCount($t.data),0);let qe=Ye.get(tt);if(null==qe)(0,te.hu)(0===rt.remove.length),qe=new Fe(rt.origin,new ie(this._bufferPool,et*Xe)),Ye.set(tt,qe);else if(0===rt.add.length&&qe.instances.size===rt.remove.length)return qe.geometry.dispose(),void Ye.delete(tt);let ot=0;qe.instances.forEach(jt=>ot+=jt.to-jt.from);const ut=rt.remove.reduce((jt,$t)=>jt+Ne.elementCount($t.data),0),_t=qe.geometry.size,Ct=(ot+et-ut)*Xe,vt=Re;if(Ct>J&&(Ct<_t/2||_t-Ct>1048576)?this._removeAndRebuild(qe,rt.remove,Xe,Ct,vt):rt.remove.length>0&&this._remove(qe,rt.remove,Xe,vt),rt.add.length>0){const jt=He;(0,te.u_)(jt,-rt.origin[0],-rt.origin[1],-rt.origin[2]),this._add(qe,rt.add,Xe,jt,vt)}const Lt=qe.geometry.buffer.vao.vertexBuffers.geometry;Be(vt),vt.forAll(({from:jt,to:$t})=>{jt<$t&&Lt.setSubData(qe.geometry.buffer.array,jt,jt,$t)}),vt.clear(),qe.drawCommandsDirty=!0})}_updateGeometries(Le){const Me=this._bufferWriter,Ne=Me.vertexBufferLayout.stride/4;for(const Xe of Le){const Ye=Xe.renderGeometry,Je=this._dataByOrigin.get(Ye.origin.id),rt=Je&&Je.instances.get(Ye.id);if(!rt)return;const tt=Xe.updateType;if(tt&X.$.VISIBILITIES&&(rt.isVisible=Ye.instanceParameters.visible),tt&(X.$.HIGHLIGHTS|X.$.VISIBILITIES)){const et=Ye.instanceParameters.visible;rt.hasHighlights=!!Ye.instanceParameters.highlights&&et}if(tt&X.$.OCCLUDEES&&(rt.hasOccludees=!!Ye.instanceParameters.occludees),tt&(X.$.VERTEXATTRS|X.$.TRANSFORMATION)){const{array:et,vao:qe}=Je.geometry.buffer;(0,ye.bZ)(Ye,Ie,Ge),Me.write(Ie,Ge,Ye.data,Me.vertexBufferLayout.createView(et.buffer),rt.from),(0,te.hu)(rt.from+Me.elementCount(Ye.data)===rt.to,"material VBO layout has changed"),qe.vertexBuffers.geometry.setSubData(et,rt.from*Ne,rt.from*Ne,rt.to*Ne)}Je.drawCommandsDirty=!0}}_updateDrawCommands(){this._hasHighlights=!1,this._hasOccludees=!1,this._dataByOrigin.forEach(Me=>{Me.hasHiddenInstances=!1,Me.hasHighlights=!1,Me.hasOccludees=!1,(0,D.oE)(Me.instances,Ne=>(Ne.isVisible?(Ne.hasHighlights&&(this._hasHighlights=!0,Me.hasHighlights=!0),Ne.hasOccludees&&(this._hasOccludees=!0,Me.hasOccludees=!0)):Me.hasHiddenInstances=!0,Me.hasHiddenInstances&&Me.hasHighlights&&Me.hasOccludees))}),this._dataByOrigin.forEach(Me=>{Me.drawCommandsDirty&&((Me=>{if(Me.drawCommandsDefault.clear(),Me.drawCommandsHighlight.clear(),Me.drawCommandsOccludees.clear(),Me.drawCommandsShadowHighlightRest.clear(),0===Me.instances.size)return;if(!We(Me)){const Xe=Me.drawCommandsDefault.pushNew();return Xe.first=1/0,Xe.count=0,Me.instances.forEach(Ye=>{Xe.first=Math.min(Xe.first,Ye.from),Xe.count=Math.max(Xe.count,Ye.to)}),void(Xe.count-=Xe.first)}const Ne=re(Me.instances);for(const Xe of Ne)Xe.isVisible&&(Y(Xe.hasOccludees?Me.drawCommandsOccludees:Me.drawCommandsDefault,Xe),Y(Xe.hasHighlights?Me.drawCommandsHighlight:Me.drawCommandsShadowHighlightRest,Xe))})(Me),Me.drawCommandsDirty=!1)})}updateAnimation(Le){return this._material.update(Le)}requiresSlot(Le,Me){return this._material.requiresSlot(Le,Me)}render(Le,Me){if(!this.requiresSlot(Me.slot,Le))return!1;const Ne=Le===W.H.Highlight||Le===W.H.ShadowHighlight;if(Ne&&!this._hasHighlights)return!1;const Xe=Le===W.H.ShadowExludeHighlight,Ye=!(Ne||Xe);if(this._dataByOrigin.forEach(qe=>{if(Ne&&!qe.hasHighlights)return;const ot=(Ne?qe.drawCommandsHighlight:Xe&&We(qe)?qe.drawCommandsShadowHighlightRest:qe.drawCommandsDefault)||null,ut=Ye&&qe.drawCommandsOccludees||null;(ot?.length||ut?.length)&&this._renderCommandData.push(new je(qe.origin,qe.geometry,ot,ut))}),0===this._renderCommandData.length)return!1;const Je=this._rctx,rt=this._glMaterials.load(Je,Me.slot,Le);if((0,R.Wi)(rt))return this._renderCommandData.clear(),!1;const tt=rt.beginSlot(Me),et=Je.bindTechnique(tt,this._material.parameters,Me);return this._renderCommandData.forAll(qe=>{et.bindDraw(qe,Me,this._material.parameters);const{geometry:ot,renderCommands:ut,occludeeCommands:_t}=qe;tt.ensureAttributeLocations(ot.buffer.vao),Je.bindVAO(ot.buffer.vao);const Ct=tt.primitiveType;(0,R.pC)(ut)&&ut.length>0&&(tt.bindPipelineState(Je,Me.slot,!1),ut.forAll(vt=>Je.drawArrays(Ct,vt.first,vt.count))),(0,R.pC)(_t)&&_t.length>0&&(tt.bindPipelineState(Je,Me.slot,!0),_t.forAll(vt=>Je.drawArrays(Ct,vt.first,vt.count)))}),this._renderCommandData.clear(),!0}_removeAndRebuild(Le,Me,Ne,Xe,Ye){for(const qe of Me)Le.instances.delete(qe.id);const Je=re(Le.instances);Le.instances.clear();const rt=Le.geometry.size,tt=Le.geometry.allocate(Xe);let et=0;for(const qe of Je){const ot=qe.from*Ne,ut=qe.to*Ne;tt.copy(et,ot,ut),qe.from=et/Ne,et+=ut-ot,qe.to=et/Ne,Le.instances.set(qe.id,qe)}Ye.push(new de(0,tt.hasNewBuffer?Le.geometry.buffer.array.length:rt)),tt.dispose(),Le.geometry.erase(et,Ye.back().to),Le.holes.clear()}_remove(Le,Me,Ne,Xe){for(const Ye of Me){const Je=Ye.id,rt=Le.instances.get(Je),tt=rt.from*Ne,et=rt.to*Ne;Le.geometry.erase(tt,et),Le.holes.push(new de(rt.from,rt.to)),Le.instances.delete(Je),Xe.push(new de(tt,et))}Be(Le.holes)}_add(Le,Me,Ne,Xe,Ye){if(0===Me.length)return;const Je=this._bufferWriter;let rt=Je.vertexBufferLayout.createView(Le.geometry.buffer.array.buffer);const tt=Le.holes.length>0;let et=Number.MAX_SAFE_INTEGER,qe=Number.MIN_SAFE_INTEGER;for(const ot of Me){const ut=(0,R.pC)(ot.transformation)?(0,Z.m)(Ie,Xe,ot.transformation):Xe;(0,Z.a)(Ge,ut);const _t=(0,Z.t)(Ge,Ge),Ct=Je.elementCount(ot.data),vt=Ct*Ne;let Lt=Ce(Le.holes,Ct);(0,R.Wi)(Lt)&&(Lt=Le.geometry.size/Ne,Le.geometry.grow(vt),rt=Je.vertexBufferLayout.createView(Le.geometry.buffer.array.buffer)),Je.write(ut,_t,ot.data,rt,Lt);const jt=ot.instanceParameters.visible,pr=new se(ot.id,Lt,Lt+Ct,jt,!!ot.instanceParameters.highlights&&jt,!!ot.instanceParameters.occludees);(0,te.hu)(null==Le.instances.get(ot.id)),Le.instances.set(ot.id,pr),tt?Ye.push(new de(pr.from*Ne,pr.to*Ne)):(et=Math.min(pr.from,et),qe=Math.max(pr.to,qe))}tt||Ye.push(new de(et*Ne,qe*Ne))}get test(){return{material:this._material,glMaterials:this._glMaterials,dataByOrigin:this._dataByOrigin}}}class xe{constructor(Le){this.origin=Le,this.add=new Array,this.remove=new Array}}function Ke(Pe,Le,Me){const Ne=Le.origin;if((0,R.Wi)(Ne))return;let Xe=Pe.get(Ne.id);null==Xe&&(Xe=new xe(Ne.vec3),Pe.set(Ne.id,Xe)),Me?Xe.add.push(Le):Xe.remove.push(Le)}function We(Pe){return Pe.hasOccludees||Pe.hasHighlights||Pe.hasHiddenInstances}function Ce(Pe,Le){let Me;if(!Pe.some(Xe=>!(Xe.to-Xe.from=Me.to&&Pe.removeUnordered(Me),Ne}function Be(Pe){const Le=new Map;Pe.forAll(Ne=>Le.set(Ne.from,Ne));let Me=!0;for(;Me;)Me=!1,Pe.forEach(Ne=>{const Xe=Le.get(Ne.to);Xe&&(Ne.to=Xe.to,Le.delete(Xe.from),Pe.removeUnordered(Xe),Me=!0)})}class Fe{constructor(Le,Me){this.origin=Le,this.geometry=Me,this.instances=new Map,this.holes=new G.Z({deallocator:null}),this.hasHiddenInstances=!1,this.hasHighlights=!1,this.hasOccludees=!1,this.drawCommandsDirty=!1,this.drawCommandsDefault=new G.Z({allocator:Ne=>Ne||new le,deallocator:Ne=>Ne}),this.drawCommandsHighlight=new G.Z({allocator:Ne=>Ne||new le,deallocator:Ne=>Ne}),this.drawCommandsOccludees=new G.Z({allocator:Ne=>Ne||new le,deallocator:Ne=>Ne}),this.drawCommandsShadowHighlightRest=new G.Z({allocator:Ne=>Ne||new le,deallocator:Ne=>Ne})}}class je extends ae.w{constructor(Le,Me,Ne,Xe){super(Le),this.geometry=Me,this.renderCommands=Ne,this.occludeeCommands=Xe}}const Re=new G.Z({deallocator:null}),He=(0,Q.c)(),Ie=(0,Q.c)(),Ge=(0,Q.c)()},65073:(nt,Ae,v)=>{"use strict";v.d(Ae,{EE:()=>X,PD:()=>B,U_:()=>W,bZ:()=>H,lr:()=>$});var D=v(62208),R=v(28347),G=v(43703),Z=v(2282),Q=v(2757);function $(le,de){return(0,D.Wi)(le)&&(le=[]),le.push(de),le}function W(le,de){if((0,D.Wi)(le))return null;const se=le.filter(re=>re!==de);return 0===se.length?null:se}function B(le){return!!(0,D.pC)(le)&&!le.visible}function H(le,de,se){const re=le.origin.vec3;(0,Z.u_)(oe,-re[0],-re[1],-re[2]),(0,D.pC)(le.transformation)?(0,R.m)(de,oe,le.transformation):(0,R.c)(de,oe),(0,R.a)(se,de),(0,R.t)(se,se)}function X(le,de,se,re,j){te[0]=le.get(de,0),te[1]=le.get(de,1),te[2]=le.get(de,2),(0,Q.LF)(te,ae,3),se.set(j,0,ae[0]),re.set(j,0,ae[1]),se.set(j,1,ae[2]),re.set(j,1,ae[3]),se.set(j,2,ae[4]),re.set(j,2,ae[5])}const te=new Float64Array(3),ae=new Float32Array(6),oe=(0,G.c)()},39711:(nt,Ae,v)=>{"use strict";v.d(Ae,{Qm:()=>ue,em:()=>ce,tT:()=>pe});var D=v(550),R=v(28093),G=v(4794),Z=v(59617),Q=v(13934),$=v(36603),W=v(21799),B=v(67022),H=v(7228),X=v(651),te=v(91056),ae=v(42743),oe=v(39114),le=v(40723),de=v(88569),se=v(12407),re=v(64127),j=v(44835),Y=v(96160),ee=v(57596),ie=v(67969),J=v(2078);class ce extends W.d4{constructor(){super(...arguments),this.isSchematic=!1,this.usePBR=!1,this.mrrFactors=(0,R.f)(0,1,.5),this.hasVertexColors=!1,this.hasSymbolColors=!1,this.doubleSided=!1,this.doubleSidedType="normal",this.cullFace=ae.Vr.Back,this.emissiveFactor=(0,R.f)(0,0,0),this.instancedDoublePrecision=!1,this.normals="default",this.receiveSSAO=!0,this.receiveShadows=!0,this.castShadows=!0,this.shadowMappingEnabled=!1,this.ambient=(0,R.f)(.2,.2,.2),this.diffuse=(0,R.f)(.8,.8,.8),this.externalColor=(0,G.f)(1,1,1,1),this.colorMixMode="multiply",this.opacity=1,this.layerOpacity=1,this.origin=(0,R.c)(),this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.offsetTransparentBackfaces=!1,this.vvSizeEnabled=!1,this.vvSizeMinSize=[1,1,1],this.vvSizeMaxSize=[100,100,100],this.vvSizeOffset=[0,0,0],this.vvSizeFactor=[1,1,1],this.vvSizeValue=[1,1,1],this.vvColorEnabled=!1,this.vvColorValues=[0,0,0,0,0,0,0,0],this.vvColorColors=[1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0],this.vvSymbolAnchor=[0,0,0],this.vvSymbolRotationMatrix=(0,D.c)(),this.vvOpacityEnabled=!1,this.vvOpacityValues=[],this.vvOpacityOpacities=[],this.transparent=!1,this.writeDepth=!0,this.customDepthTest=ae.Gv.Less,this.textureAlphaMode=ae.JJ.Blend,this.textureAlphaCutoff=B.F,this.textureAlphaPremultiplied=!1,this.hasOccludees=!1,this.renderOccluded=le.yD.Occlude}}class ue extends W.Pf{constructor(){super(...arguments),this.origin=(0,R.c)(),this.slicePlaneLocalOrigin=this.origin}}class pe extends te.A{initializeConfiguration(ge,_e){_e.hasWebGL2Context=ge.rctx.type===ee.zO.WEBGL2,_e.spherical=ge.viewingMode===Z.JY.Global,_e.doublePrecisionRequiresObfuscation=(0,H.I)(ge.rctx),_e.textureCoordinateType=_e.hasColorTexture||_e.hasMetallicRoughnessTexture||_e.hasEmissionTexture||_e.hasOcclusionTexture||_e.hasNormalTexture?$.N.Default:$.N.None,_e.objectAndLayerIdColorInstanced=_e.instanced}initializeProgram(ge){return this._initializeProgram(ge,pe.shader)}_initializeProgram(ge,_e){return new se.$(ge.rctx,_e.get().build(this.configuration),oe.i)}_convertDepthTestFunction(ge){return ge===ae.Gv.Lequal?ie.wb.LEQUAL:ie.wb.LESS}_makePipeline(ge,_e){const Ee=this.configuration,De=ge===j.A.NONE,be=ge===j.A.FrontFace;return(0,J.sm)({blending:Ee.output!==Q.H.Color&&Ee.output!==Q.H.Alpha||!Ee.transparent?null:De?de.wu:(0,de.j7)(ge),culling:(me=Ee,(me.cullFace!==ae.Vr.None||!me.hasSlicePlane&&!me.transparent&&!me.doubleSidedMode)&&(0,J.zp)(Ee.cullFace)),depthTest:{func:(0,de.Bh)(ge,this._convertDepthTestFunction(Ee.customDepthTest))},depthWrite:De||be?Ee.writeDepth&&J.LZ:null,colorWrite:J.BK,stencilWrite:Ee.hasOccludees?re.s3:null,stencilTest:Ee.hasOccludees?_e?re.eD:re.RY:null,polygonOffset:De||be?null:(0,de.je)(Ee.enableOffset)});var me}initializePipeline(){return this._occludeePipelineState=this._makePipeline(this.configuration.transparencyPassType,!0),this._makePipeline(this.configuration.transparencyPassType,!1)}getPipelineState(ge,_e){return _e?this._occludeePipelineState:super.getPipelineState(ge,_e)}}pe.shader=new X.J(Y.D,()=>v.e(3907).then(v.bind(v,83907)))},46359:(nt,Ae,v)=>{"use strict";v.d(Ae,{I9:()=>$,PI:()=>B,i5:()=>W});var $,W,H,D=v(17626),R=v(13934),G=v(87601),Z=v(44835),Q=v(41528);(H=$||($={}))[H.Draped=0]="Draped",H[H.Screen=1]="Screen",H[H.World=2]="World",H[H.COUNT=3]="COUNT",function(H){H[H.Center=0]="Center",H[H.Tip=1]="Tip",H[H.COUNT=2]="COUNT"}(W||(W={}));class B extends Q.W{constructor(){super(...arguments),this.output=R.H.Color,this.transparencyPassType=Z.A.NONE,this.occluder=!1,this.hasSlicePlane=!1,this.writeDepth=!1,this.space=$.Screen,this.hideOnShortSegments=!1,this.hasCap=!1,this.anchor=W.Center,this.hasTip=!1,this.vvSize=!1,this.vvColor=!1,this.vvOpacity=!1,this.hasOccludees=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1}}(0,D._)([(0,G.o)({count:R.H.COUNT})],B.prototype,"output",void 0),(0,D._)([(0,G.o)({count:Z.A.COUNT})],B.prototype,"transparencyPassType",void 0),(0,D._)([(0,G.o)()],B.prototype,"occluder",void 0),(0,D._)([(0,G.o)()],B.prototype,"hasSlicePlane",void 0),(0,D._)([(0,G.o)()],B.prototype,"writeDepth",void 0),(0,D._)([(0,G.o)({count:$.COUNT})],B.prototype,"space",void 0),(0,D._)([(0,G.o)()],B.prototype,"hideOnShortSegments",void 0),(0,D._)([(0,G.o)()],B.prototype,"hasCap",void 0),(0,D._)([(0,G.o)({count:W.COUNT})],B.prototype,"anchor",void 0),(0,D._)([(0,G.o)()],B.prototype,"hasTip",void 0),(0,D._)([(0,G.o)()],B.prototype,"vvSize",void 0),(0,D._)([(0,G.o)()],B.prototype,"vvColor",void 0),(0,D._)([(0,G.o)()],B.prototype,"vvOpacity",void 0),(0,D._)([(0,G.o)()],B.prototype,"hasOccludees",void 0),(0,D._)([(0,G.o)()],B.prototype,"hasMultipassTerrain",void 0),(0,D._)([(0,G.o)()],B.prototype,"cullAboveGround",void 0),(0,D._)([(0,G.o)({constValue:!0})],B.prototype,"hasVvInstancing",void 0),(0,D._)([(0,G.o)({constValue:!0})],B.prototype,"hasSliceTranslatedView",void 0)},39401:(nt,Ae,v)=>{"use strict";v.d(Ae,{G:()=>W,R:()=>$});var $,B,D=v(17626),R=v(13934),G=v(87601),Z=v(44835),Q=v(41528);(B=$||($={}))[B.BUTT=0]="BUTT",B[B.SQUARE=1]="SQUARE",B[B.ROUND=2]="ROUND",B[B.COUNT=3]="COUNT";class W extends Q.W{constructor(){super(...arguments),this.output=R.H.Color,this.capType=$.BUTT,this.transparencyPassType=Z.A.NONE,this.occluder=!1,this.hasSlicePlane=!1,this.hasPolygonOffset=!1,this.writeDepth=!1,this.draped=!1,this.stippleEnabled=!1,this.stippleOffColorEnabled=!1,this.stippleScaleWithLineWidth=!1,this.stipplePreferContinuous=!0,this.roundJoins=!1,this.applyMarkerOffset=!1,this.vvSize=!1,this.vvColor=!1,this.vvOpacity=!1,this.falloffEnabled=!1,this.innerColorEnabled=!1,this.hasOccludees=!1,this.hasMultipassTerrain=!1,this.cullAboveGround=!1,this.wireframe=!1,this.objectAndLayerIdColorInstanced=!1}}(0,D._)([(0,G.o)({count:R.H.COUNT})],W.prototype,"output",void 0),(0,D._)([(0,G.o)({count:$.COUNT})],W.prototype,"capType",void 0),(0,D._)([(0,G.o)({count:Z.A.COUNT})],W.prototype,"transparencyPassType",void 0),(0,D._)([(0,G.o)()],W.prototype,"occluder",void 0),(0,D._)([(0,G.o)()],W.prototype,"hasSlicePlane",void 0),(0,D._)([(0,G.o)()],W.prototype,"hasPolygonOffset",void 0),(0,D._)([(0,G.o)()],W.prototype,"writeDepth",void 0),(0,D._)([(0,G.o)()],W.prototype,"draped",void 0),(0,D._)([(0,G.o)()],W.prototype,"stippleEnabled",void 0),(0,D._)([(0,G.o)()],W.prototype,"stippleOffColorEnabled",void 0),(0,D._)([(0,G.o)()],W.prototype,"stippleScaleWithLineWidth",void 0),(0,D._)([(0,G.o)()],W.prototype,"stipplePreferContinuous",void 0),(0,D._)([(0,G.o)()],W.prototype,"roundJoins",void 0),(0,D._)([(0,G.o)()],W.prototype,"applyMarkerOffset",void 0),(0,D._)([(0,G.o)()],W.prototype,"vvSize",void 0),(0,D._)([(0,G.o)()],W.prototype,"vvColor",void 0),(0,D._)([(0,G.o)()],W.prototype,"vvOpacity",void 0),(0,D._)([(0,G.o)()],W.prototype,"falloffEnabled",void 0),(0,D._)([(0,G.o)()],W.prototype,"innerColorEnabled",void 0),(0,D._)([(0,G.o)()],W.prototype,"hasOccludees",void 0),(0,D._)([(0,G.o)()],W.prototype,"hasMultipassTerrain",void 0),(0,D._)([(0,G.o)()],W.prototype,"cullAboveGround",void 0),(0,D._)([(0,G.o)()],W.prototype,"wireframe",void 0),(0,D._)([(0,G.o)({constValue:!0})],W.prototype,"stippleRequiresClamp",void 0),(0,D._)([(0,G.o)({constValue:!0})],W.prototype,"stippleRequiresStretchMeasure",void 0),(0,D._)([(0,G.o)({constValue:!0})],W.prototype,"hasVvInstancing",void 0),(0,D._)([(0,G.o)({constValue:!0})],W.prototype,"hasSliceTranslatedView",void 0),(0,D._)([(0,G.o)()],W.prototype,"objectAndLayerIdColorInstanced",void 0)},67093:(nt,Ae,v)=>{"use strict";v.d(Ae,{PR:()=>Q,dz:()=>W});var D=v(993),R=v(4794),G=v(69960),Z=v(17625);class Q extends Z.K{}function W(H){H.uniforms.add(new G.N("resolution",X=>(0,D.s)(B,1/X.colorTexture.descriptor.width,1/X.colorTexture.descriptor.height,X.colorTexture.descriptor.width,X.colorTexture.descriptor.height)))}const B=(0,R.c)()},69828:(nt,Ae,v)=>{"use strict";v.d(Ae,{l:()=>Z,w:()=>G});var G,Q,D=v(17626),R=v(87601);(Q=G||(G={}))[Q.Gradient=0]="Gradient",Q[Q.Threshold=1]="Threshold",Q[Q.COUNT=2]="COUNT";class Z extends R.m{constructor(){super(...arguments),this.visualization=G.Gradient,this.bandsEnabled=!1}}(0,D._)([(0,R.o)({count:G.COUNT})],Z.prototype,"visualization",void 0),(0,D._)([(0,R.o)()],Z.prototype,"bandsEnabled",void 0)},57008:(nt,Ae,v)=>{"use strict";v.d(Ae,{g:()=>B});var D=v(99770),R=v(17625);function G(H){const X=R.H`bool isNaN( float val ) -{ -return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true; -}`;H.code.add(X)}var Z=v(95285),Q=v(91574),$=v(63123);const W=(0,D.f)(.5,-4e-4);function B(H,X){const te=H.vertex;te.include(G),te.constants.add("depthBias","vec2",W),te.uniforms.add(new Z.A("inverseViewport",(ae,oe)=>oe.inverseViewport)),X.legacy?(te.uniforms.add(new $.g("proj",(ae,oe)=>oe.camera.projectionMatrix)),te.code.add(R.H`vec2 calculateProjectedBiasXY(vec4 projPos, vec3 globalNormal) { -float offsetXY = depthBias.x; -vec4 projNormal = proj * localView * vec4(globalNormal, 0.0); -return offsetXY * projPos.w * 2.0 * inverseViewport * normalize(projNormal.xyz).xy; -}`)):(te.uniforms.add(new Q.c("transformNormalViewFromGlobal",ae=>ae.transformNormalViewFromGlobal)),te.uniforms.add(new $.g("transformProjFromView",ae=>ae.transformProjFromView)),te.code.add(R.H`vec2 calculateProjectedBiasXY(vec4 projPos, vec3 globalNormal) { -float offsetXY = depthBias.x; -vec4 projNormal = transformProjFromView * vec4(transformNormalViewFromGlobal * globalNormal, 0.0); -return offsetXY * projPos.w * 2.0 * inverseViewport * normalize(projNormal.xyz).xy; -}`)),te.code.add(R.H`float _calculateProjectedBiasZ(vec4 projPos) { -float offsetZ = depthBias.y; -return sqrt(max(projPos.z,0.0)) * offsetZ; -} -vec4 adjustProjectedPosition(vec4 projPos, vec3 worldNormal, float lineWidth) { -vec2 offsetXY = calculateProjectedBiasXY(projPos, worldNormal); -if (!isNaN(offsetXY.x) && !isNaN(offsetXY.y)) { -projPos.xy += offsetXY; -} -projPos.z += _calculateProjectedBiasZ(projPos); -return projPos; -}`)}},98828:(nt,Ae,v)=>{"use strict";v.d(Ae,{S:()=>R});var D=v(17625);function R(G,Z){const Q=G.fragment;Q.constants.add("coverageTestThreshold","float",.01),Q.code.add(Z.antialiasing?D.H`#define discardByCoverage(radius, coverage) { if (coverage < coverageTestThreshold) discard; }`:D.H`#define discardByCoverage(radius, coverage) { float coverageLimit = radius <= 0.5 ? coverageTestThreshold : 0.75; if (coverage < coverageLimit) discard; }`)}},72175:(nt,Ae,v)=>{"use strict";v.d(Ae,{o:()=>R});var D=v(17625);function R(G,Z){const Q=G.vertex;Z.silhouette?(Q.code.add(D.H`bool isSilhouetteEdge(vec3 viewDir, vec3 normalA, vec3 normalB) { -float faceAVisible = dot(viewDir, normalA); -float faceBVisible = dot(viewDir, normalB); -return faceAVisible * faceBVisible < 0.0; -}`),Q.code.add(Z.legacy?D.H`bool discardNonSilhouetteEdges(vec3 viewPos, vec3 worldPos) { -vec3 viewNormalA = _modelToViewNormal(normalA); -vec3 viewNormalB = _modelToViewNormal(normalB); -vec3 viewDir = -viewPos; -if (isSilhouetteEdge(viewDir, viewNormalA, viewNormalB)) { -return false; -} -gl_Position = vec4(10.0, 10.0, 10.0, 1.0); -return true; -}`:D.H`bool discardNonSilhouetteEdges(vec3 viewPos, vec3 worldPos) { -vec3 worldNormalA = _modelToWorldNormal(normalA); -vec3 worldNormalB = _modelToWorldNormal(normalB); -vec3 viewDir = -worldPos; -if (isSilhouetteEdge(viewDir, worldNormalA, worldNormalB)) { -return false; -} -gl_Position = vec4(10.0, 10.0, 10.0, 1.0); -return true; -}`)):Q.code.add(D.H`bool discardNonSilhouetteEdges(vec3 viewPos, vec3 worldPos) { -return false; -}`)}},98412:(nt,Ae,v)=>{"use strict";v.d(Ae,{l:()=>G});var D=v(17625),R=v(73105);function G(Z,Q){const $=Z.vertex;switch(Q.mode){case R.Jb.SKETCH:$.code.add(D.H`#define discardShortEdges(unpackedAttributes, lineLengthPixels) { if (lineLengthPixels <= 3.0) { gl_Position = vec4(10.0, 10.0, 10.0, 1.0); return; }}`);break;case R.Jb.MIXED:$.code.add(D.H`#define discardShortEdges(unpackedAttributes, lineLengthPixels) { if (unpackedAttributes.type <= 0.0 && lineLengthPixels <= 3.0) { gl_Position = vec4(10.0, 10.0, 10.0, 1.0); return; }}`);break;case R.Jb.SOLID:$.code.add(D.H`#define discardShortEdges(unpackedAttributes, lineLengthPixels) {}`)}}},73105:(nt,Ae,v)=>{"use strict";v.d(Ae,{Jb:()=>j,UR:()=>de,lV:()=>se});var j,Y,D=v(35357),R=v(7228),G=v(19278),Z=v(43177),Q=v(77739),$=v(97139),W=v(65787),B=v(17625),H=v(9546),X=v(91574),te=v(63123),ae=v(5864),oe=v(19755),le=v(16396);function de(Y,ee){const ie=Y.vertex;ie.include(G.n),ie.uniforms.add(new W.p("distanceFalloffFactor",J=>J.distanceFalloffFactor)),ie.code.add(B.H`float distanceBasedPerspectiveFactor(float distance) { -return clamp(sqrt(distanceFalloffFactor / distance), 0.0, 1.0); -}`),ie.uniforms.add((0,ae.F)("componentDataTex",J=>J.componentDataTexture,ee.hasWebGL2Context?oe.D.None:oe.D.InvSize)),Y.attributes.add(le.T.COMPONENTINDEX,"float"),ie.constants.add("componentColorFieldOffset","float",0),ie.constants.add("componentOtherFieldOffset","float",1),ie.constants.add("componentVerticalOffsetFieldOffset","float",2),ie.constants.add("componentFieldCount","float",3),ie.constants.add("lineWidthFractionFactor","float",8),ie.constants.add("extensionLengthOffset","float",128),ie.constants.add("verticalOffsetScale","float",2*D.E_),ie.code.add(B.H` - vec2 _componentTextureCoords(float componentIndex, float fieldOffset) { - float fieldIndex = componentFieldCount * componentIndex + fieldOffset; - - vec2 textureSizeInverse = ${(0,Z.w_)(ee,"componentDataTex",!0)}; - - float colIndex = mod(fieldIndex, 1.0 / textureSizeInverse.x); - float rowIndex = floor(fieldIndex * textureSizeInverse.x); - - vec2 textureCoordinates = vec2(colIndex, rowIndex) + 0.5; - - return textureCoordinates; - } - - struct ComponentData { - vec4 color; - float lineWidth; - float extensionLength; - float type; - float verticalOffset; - }; - - ComponentData readComponentData() { - vec2 colorIndex = _componentTextureCoords(componentIndex, componentColorFieldOffset); - vec2 otherIndex = _componentTextureCoords(componentIndex, componentOtherFieldOffset); - vec2 verticalOffsetIndex = _componentTextureCoords(componentIndex, componentVerticalOffsetFieldOffset); - - vec4 colorValue = ${(0,Z.b6)(ee,"componentDataTex","colorIndex")}; - vec4 otherValue = ${(0,Z.b6)(ee,"componentDataTex","otherIndex")}; - float verticalOffset = (rgba2float(${(0,Z.b6)(ee,"componentDataTex","verticalOffsetIndex")}) - 0.5) * verticalOffsetScale; - - return ComponentData( - vec4(colorValue.rgb, colorValue.a * otherValue.w), // otherValue.w stores separate opacity - otherValue.x * (255.0 / lineWidthFractionFactor), - otherValue.y * 255.0 - extensionLengthOffset, - -(otherValue.z * 255.0) + 0.5, // SOLID (=0/255) needs to be > 0.0, SKETCHY (=1/255) needs to be <= 0; - verticalOffset - ); - } - `),ee.legacy?ie.code.add(B.H`vec3 _modelToWorldNormal(vec3 normal) { -return (model * vec4(normal, 0.0)).xyz; -} -vec3 _modelToViewNormal(vec3 normal) { -return (localView * model * vec4(normal, 0.0)).xyz; -}`):(ie.uniforms.add(new H.j("transformNormalGlobalFromModel",J=>J.transformNormalGlobalFromModel)),ie.code.add(B.H`vec3 _modelToWorldNormal(vec3 normal) { -return transformNormalGlobalFromModel * normal; -}`)),ee.silhouette?(Y.attributes.add(le.T.NORMALA,"vec3"),Y.attributes.add(le.T.NORMALB,"vec3"),ie.code.add(B.H`vec3 worldNormal() { -return _modelToWorldNormal(normalize(normalA + normalB)); -}`)):(Y.attributes.add(le.T.NORMAL,"vec3"),ie.code.add(B.H`vec3 worldNormal() { -return _modelToWorldNormal(normal); -}`)),ee.legacy?ie.code.add(B.H`void worldAndViewFromModelPosition(vec3 modelPos, float verticalOffset, out vec3 worldPos, out vec3 viewPos) { -worldPos = (model * vec4(modelPos, 1.0)).xyz; -viewPos = (localView * vec4(worldPos, 1.0)).xyz; -}`):(ie.include(R.$,ee),ie.include(R.$,ee),ie.uniforms.add([new X.c("transformViewFromCameraRelativeRS",J=>J.transformViewFromCameraRelativeRS),new H.j("transformWorldFromModelRS",J=>J.transformWorldFromModelRS),new Q.B("transformWorldFromModelTL",J=>J.transformWorldFromModelTL),new Q.B("transformWorldFromModelTH",J=>J.transformWorldFromModelTH),new $.J("transformWorldFromViewTL",J=>J.transformWorldFromViewTL),new $.J("transformWorldFromViewTH",J=>J.transformWorldFromViewTH)]),ie.code.add(B.H` - void worldAndViewFromModelPosition(vec3 modelPos, float verticalOffset, out vec3 worldPos, out vec3 viewPos) { - vec3 rotatedModelPosition = transformWorldFromModelRS * modelPos; - - vec3 transformCameraRelativeFromModel = dpAdd( - transformWorldFromModelTL, - transformWorldFromModelTH, - -transformWorldFromViewTL, - -transformWorldFromViewTH - ); - - worldPos = transformCameraRelativeFromModel + rotatedModelPosition; - - if (verticalOffset != 0.0) { - vec3 vUp = ${ee.spherical?B.H`normalize(transformWorldFromModelTL + rotatedModelPosition);`:B.H`vec3(0.0, 0.0, 1.0);`} - worldPos += verticalOffset * vUp; - } - - viewPos = transformViewFromCameraRelativeRS * worldPos; - } - `)),ie.uniforms.add(new te.g("transformProjFromView",(J,ce)=>ce.camera.projectionMatrix)),ie.code.add(B.H`vec4 projFromViewPosition(vec3 position) { -return transformProjFromView * vec4(position, 1.0); -}`),ie.code.add(B.H`float calculateExtensionLength(float extensionLength, float lineLength) { -return extensionLength / (log2(max(1.0, 256.0 / lineLength)) * 0.2 + 1.0); -}`)}function se(Y){return Y.mode===j.SKETCH||Y.mode===j.MIXED}(Y=j||(j={}))[Y.SOLID=0]="SOLID",Y[Y.SKETCH=1]="SKETCH",Y[Y.MIXED=2]="MIXED",Y[Y.COUNT=3]="COUNT"},10967:(nt,Ae,v)=>{"use strict";v.d(Ae,{B:()=>Q});var D=v(2163),R=v(17625),G=v(73105),Z=v(69276);function Q($,W){const B=$.vertex;switch($.include(Z.H,W),W.mode){case G.Jb.SOLID:B.code.add(R.H`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) { -return 0.0; -}`);break;case G.Jb.SKETCH:B.uniforms.add(new D.p("strokesAmplitude",H=>H.strokesTexture.amplitude)),B.code.add(R.H`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) { -return strokesAmplitude; -}`);break;case G.Jb.MIXED:B.uniforms.add(new D.p("strokesAmplitude",H=>H.strokesTexture.amplitude)),B.code.add(R.H`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) { -float type = unpackedAttributes.type; -if (type <= 0.0) { -return strokesAmplitude; -} -else { -return 0.0; -} -}`)}}},82716:(nt,Ae,v)=>{"use strict";v.d(Ae,{N:()=>X});var D=v(19278),R=v(43177),G=v(2163),Z=v(17625),Q=v(5864),$=v(19755),W=v(73105),B=v(69276);function X(te,ae){te.include(B.H,ae);const{vertex:oe,fragment:le}=te;switch((0,W.lV)(ae)&&(oe.uniforms.add((0,Q.F)("strokesTexture",de=>de.strokesTexture.texture,ae.hasWebGL2Context?$.D.None:$.D.InvSize)),oe.uniforms.add([new G.p("strokesLog2Resolution",de=>Math.log2(de.strokesTexture.resolution)),new G.p("strokeVariants",de=>de.strokesTexture.variants)]),te.varyings.add("vStrokeUV","vec2"),le.uniforms.add([new Q.R("strokesTexture",de=>de.strokesTexture.texture),new G.p("strokesNormalizationScale",de=>de.strokesTexture.normalizationScale)]),oe.code.add(Z.H` - void calculateStyleOutputsSketch(float lineLength, UnpackedAttributes unpackedAttributes) { - vec2 sidenessNorm = unpackedAttributes.sidenessNorm; - - float lineIndex = clamp(ceil(log2(lineLength)), 0.0, strokesLog2Resolution); - - vec2 textureSizeInverse = ${(0,R.w_)(ae,"strokesTexture",!0)}; - vStrokeUV = vec2(exp2(lineIndex) * sidenessNorm.y, lineIndex * strokeVariants + variantStroke + 0.5) * textureSizeInverse; - vStrokeUV.x += variantOffset; - } - `),te.fragment.include(D.n),le.code.add(Z.H`float calculateLineOffsetSketch() { -float offsetNorm = rgba2float(texture2D(strokesTexture, vStrokeUV)); -return (offsetNorm - 0.5) * strokesNormalizationScale; -} -float calculateLinePressureSketch() { -return rgba2float(texture2D(strokesTexture, vStrokeUV + vec2(0.0, 0.5))); -}`)),ae.mode){case W.Jb.SOLID:oe.code.add(Z.H`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes) {}`),le.code.add(Z.H`float calculateLineOffset() { -return 0.0; -} -float calculateLinePressure() { -return 1.0; -}`);break;case W.Jb.SKETCH:oe.code.add(Z.H`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes) -{ -calculateStyleOutputsSketch(vLineLengthPixels, unpackedAttributes); -}`),le.code.add(Z.H`float calculateLineOffset() { -return calculateLineOffsetSketch(); -} -float calculateLinePressure() { -return calculateLinePressureSketch(); -}`);break;case W.Jb.MIXED:te.varyings.add("vType","float"),oe.code.add(Z.H`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes) -{ -vType = unpackedAttributes.type; -if (unpackedAttributes.type <= 0.0) { -calculateStyleOutputsSketch(vLineLengthPixels, unpackedAttributes); -} -}`),le.code.add(Z.H`float calculateLineOffset() { -if (vType <= 0.0) { -return calculateLineOffsetSketch(); -} -else { -return 0.0; -} -} -float calculateLinePressure() { -if (vType <= 0.0) { -return calculateLinePressureSketch(); -} -else { -return 1.0; -} -}`)}}},69276:(nt,Ae,v)=>{"use strict";v.d(Ae,{H:()=>Q});var D=v(94573),R=v(17625),G=v(16396),Z=v(73105);function Q($,W){const B=$.vertex;switch($.attributes.add(G.T.SIDENESS,"vec2"),B.code.add(W.mode===Z.Jb.MIXED?R.H`struct UnpackedAttributes { -vec2 sideness; -vec2 sidenessNorm; -float lineWidthPixels; -float extensionLengthPixels; -float type; -};`:R.H`struct UnpackedAttributes { -vec2 sideness; -vec2 sidenessNorm; -float lineWidthPixels; -float extensionLengthPixels; -};`),W.mode){case Z.Jb.MIXED:B.code.add(R.H`UnpackedAttributes unpackAttributes(ComponentData component) { -vec2 sidenessNorm = sideness; -vec2 sideness = sidenessNorm * 2.0 - 1.0; -float fType = component.type; -float extensionLengthPixels = component.extensionLength; -float lineWidth = component.lineWidth; -if (fType <= 0.0) { -extensionLengthPixels *= variantExtension * 2.0 - 1.0; -} -return UnpackedAttributes(sideness, sidenessNorm, lineWidth, extensionLengthPixels, fType); -}`);break;case Z.Jb.SKETCH:B.code.add(R.H`UnpackedAttributes unpackAttributes(ComponentData component) { -vec2 sidenessNorm = sideness; -vec2 sideness = sidenessNorm * 2.0 - 1.0; -float extensionLengthPixels = component.extensionLength; -extensionLengthPixels *= variantExtension * 2.0 - 1.0; -float lineWidth = component.lineWidth; -return UnpackedAttributes(sideness, sidenessNorm, lineWidth, extensionLengthPixels); -}`);break;case Z.Jb.SOLID:B.code.add(R.H`UnpackedAttributes unpackAttributes(ComponentData component) { -vec2 sidenessNorm = sideness; -vec2 sideness = sidenessNorm * 2.0 - 1.0; -float extensionLengthPixels = component.extensionLength; -float lineWidth = component.lineWidth; -return UnpackedAttributes(sideness, sidenessNorm, lineWidth, extensionLengthPixels); -}`);break;case Z.Jb.COUNT:break;default:(0,D.Bg)(W.mode)}}},59617:(nt,Ae,v)=>{"use strict";var D,Z;function R(Z){return"global"===Z?D.Global:D.Local}function G(Z){return Z===D.Global?"global":"local"}v.d(Ae,{JY:()=>D,M7:()=>G,wg:()=>R}),(Z=D||(D={}))[Z.Global=1]="Global",Z[Z.Local=2]="Local"},85112:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{t:()=>D}),(R=D||(D={}))[R.Left=0]="Left",R[R.Middle=1]="Middle",R[R.Right=2]="Right"},35216:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>Z});var D=v(63290);class R{constructor(B,H=[]){this.eventType=B,this.keyModifiers=H}matches(B){if(B.type!==this.eventType)return!1;if(0===this.keyModifiers.length)return!0;const H=B.modifiers;for(const X of this.keyModifiers)if(!H.has(X))return!1;return!0}}const G=D.Z.getLogger("esri.views.input.InputHandler");class Z{constructor(B){this._manager=null,this._incoming={},this._outgoing={},this._incomingEventMatches=null,this._incomingEventTypes=null,this._outgoingEventTypes=null,this._hasSideEffects=B}get incomingEventMatches(){if(!this._incomingEventMatches){this._incomingEventMatches=[];for(const B in this._incoming){const H=this._incoming[B];for(const X of H)this._incomingEventMatches.push(X.match)}}return this._incomingEventMatches}get incomingEventTypes(){return this._incomingEventTypes||(this._incomingEventTypes=this.incomingEventMatches.map(B=>B.eventType)),this._incomingEventTypes}get outgoingEventTypes(){return this._outgoingEventTypes||(this._outgoingEventTypes=Object.keys(this._outgoing)),this._outgoingEventTypes}get hasSideEffects(){return this._hasSideEffects}get hasPendingInputs(){return!1}onInstall(B){this._manager?G.error("This InputHandler has already been registered with an InputManager"):(B.setEventCallback(H=>this._handleEvent(H)),B.setUninstallCallback(()=>this._onUninstall()),this._manager=B)}onUninstall(){}registerIncoming(B,H,X){let te;"function"==typeof H?(X=H,te=[]):te=H||[];const ae="string"==typeof B?new R(B,te):B,oe=()=>{this._incomingEventTypes=null,this._incomingEventMatches=null},le=re=>{const j=this._incoming[re.match.eventType];if(j){const Y=j.indexOf(re);j.splice(Y,1),oe(),this._manager&&this._manager.updateDependencies()}},de=new Q(ae,X,{onPause:le,onRemove:le,onResume:re=>{const j=this._incoming[re.match.eventType];j&&!j.includes(re)&&(j.push(re),oe(),this._manager&&this._manager.updateDependencies())}});let se=this._incoming[ae.eventType];return se||(se=[],this._incoming[ae.eventType]=se),se.push(de),oe(),this._manager&&this._manager.updateDependencies(),de}registerOutgoing(B){if(this._outgoing[B])throw new Error("There is already a callback registered for this outgoing InputEvent: "+B);const H=new $(B,{onEmit:(X,te,ae,oe)=>{this._manager?.emit(X.eventType,te,ae,oe)},onRemove:X=>{delete this._outgoing[X.eventType],this._manager?.updateDependencies()}});return this._outgoing[B]=H,this._outgoingEventTypes=null,this._manager&&this._manager.updateDependencies(),H}startCapturingPointer(B){this._manager?.setPointerCapture(B,!0)}stopCapturingPointer(B){this._manager?.setPointerCapture(B,!1)}refreshHasPendingInputs(){this._manager?.refreshHasPendingInputs()}_onUninstall(){this._manager?(this.onUninstall(),this._manager=null):G.error("This InputHandler is not registered with an InputManager")}_handleEvent(B){const H=this._incoming[B.type];if(H)for(const X of H)if(X.match.matches(B)&&(X.callback?.(B),B.shouldStopPropagation()))break}}class Q{constructor(B,H,X){this.match=B,this._callback=H,this._handler=X}pause(){this._handler.onPause(this)}resume(){this._handler.onResume(this)}remove(){this._handler.onRemove(this)}get callback(){return this._callback}}class ${constructor(B,H){this.eventType=B,this._removed=!1,this._handler=H}emit(B,H,X){this._removed||this._handler.onEmit(this,B,H,X)}remove(){this._removed=!0,this._handler.onRemove(this)}}},18547:(nt,Ae,v)=>{"use strict";v.d(Ae,{$:()=>se,f:()=>Y});var D=v(17626),R=v(14517),G=v(63290),Z=v(62208),Q=v(35133),$=v(77712),H=(v(85931),v(90912),v(76898)),X=v(63416),te=v(25441),ae=v(35216);class oe extends ae.a{constructor(J){super(!0),this._onChange=J,this._value="mouse",this._x=null,this._y=null,this.registerIncoming("pointer-move",ce=>{this._update(ce.data)})}_update(J){const ce="touch"===J.native.pointerType?"touch":"mouse",{x:ue,y:pe}=J;ce===this._value&&this._x===ue&&this._y===pe||(this._value=ce,this._x=ue,this._y=pe,this._onChange(ce,ue,pe))}}var le=v(84395);class de extends ae.a{constructor(){super(!0),this._activeTouchPointerIds=new Set,this._multiTouchActive=new le.f(!1),this._onPointerAdd=({data:J})=>{"touch"===J.pointerType&&(this._activeTouchPointerIds.add(J.native.pointerId),this._update())},this._onPointerRemove=({data:J})=>{"touch"===J.pointerType&&(this._activeTouchPointerIds.delete(J.native.pointerId),this._update())},this.registerIncoming("pointer-down",this._onPointerAdd),this.registerIncoming("pointer-up",this._onPointerRemove),this.registerIncoming("pointer-capture-lost",this._onPointerRemove),this.registerIncoming("pointer-cancel",this._onPointerRemove)}get multiTouchActive(){return this._multiTouchActive.get()}_update(){this._multiTouchActive.set(this._activeTouchPointerIds.size>1)}}let se=class extends R.Z{constructor(ie){super(ie),this._pointerCaptures=new Map,this._nameToGroup={},this._handlers=[],this._handlersPriority=[],this._currentPropagation=null,this._updateDependenciesAfterPropagation=!1,this._sourceEvents=new Set,this._keyModifiers=new Set,this._activeKeyModifiers=new Set,this._stoppedPropagationEventIds=new Set,this.primaryKey=te.CK,this._latestPointerType="mouse",this._propertiesPool=new X.L({latestPointerLocation:ee},this),this.latestPointerLocation=null,this.test={timestamp:void 0,hasCurrentPropagation:()=>!!this._currentPropagation}}initialize(){this.eventSource.onEventReceived=this._onEventReceived.bind(this),this._installRecognizers()}destroy(){const ie=Object.keys(this._nameToGroup);for(const J of ie)this.uninstallHandlers(J);this.eventSource.destroy(),this._currentPropagation=null,this._propertiesPool.destroy()}get hasPendingInputs(){return this._handlers.some(ie=>ie.handler.hasPendingInputs)}get latestPointerType(){return this._latestPointerType}get multiTouchActive(){return this._multiTouchHandler.multiTouchActive}installHandlers(ie,J,ce=Y.INTERNAL){if(this._nameToGroup[ie])return void G.Z.getLogger(this.declaredClass).error("There is already an InputHandler group registered under the name `"+ie+"`");if(0===J.length)return void G.Z.getLogger(this.declaredClass).error("Can't register a group of zero handlers");const ue={name:ie,handlers:J.map(pe=>({handler:pe,active:!0,removed:!1,priorityIndex:0,groupPriority:ce,eventCallback:null,uninstallCallback:null}))};this._nameToGroup[ie]=ue;for(let pe=ue.handlers.length-1;pe>=0;pe--){const he=ue.handlers[pe];this._handlers.push(he),he.handler.onInstall({updateDependencies:()=>{this.updateDependencies()},emit:(me,ge,_e,Ee,De)=>{this._emitInputEvent(he.priorityIndex+1,me,ge,_e,De,Ee)},setPointerCapture:(me,ge)=>{this._setPointerCapture(ue,he,me,ge)},setEventCallback:me=>{he.eventCallback=me},setUninstallCallback:me=>{he.uninstallCallback=me},refreshHasPendingInputs:()=>{this.notifyChange("hasPendingInputs")}})}this.updateDependencies()}uninstallHandlers(ie){const J=this._nameToGroup[ie];J?(J.handlers.forEach(ce=>{ce.removed=!0,ce.uninstallCallback?.()}),delete this._nameToGroup[ie],this._currentPropagation?this._currentPropagation.needsHandlerGarbageCollect=!0:this._garbageCollectRemovedHandlers()):G.Z.getLogger(this.declaredClass).error("There is no InputHandler group registered under the name `"+ie+"`")}hasHandlers(ie){return void 0!==this._nameToGroup[ie]}updateDependencies(){if(this._currentPropagation)return void(this._updateDependenciesAfterPropagation=!0);this._updateDependenciesAfterPropagation=!1;const ie=new Set,J=new Set;this._handlersPriority=[];for(let ce=this._handlers.length-1;ce>=0;ce--){const ue=this._handlers[ce];ue.priorityIndex=ce,this._handlersPriority.push(ue)}this._handlersPriority=this._sortHandlersPriority(this._handlersPriority);for(let ce=this._handlersPriority.length-1;ce>=0;ce--){const ue=this._handlersPriority[ce];ue.priorityIndex=ce;let pe=ue.handler.hasSideEffects;if(!pe)for(const he of ue.handler.outgoingEventTypes)if(ie.has(he)){pe=!0;break}if(pe)for(const he of ue.handler.incomingEventMatches){ie.add(he.eventType);for(const me of he.keyModifiers)(0,te.wj)(me)||J.add(me)}ue.active=pe}this._sourceEvents=ie,this._keyModifiers=J,this._pointerCaptures.size>0&&this._sourceEvents.add("pointer-capture-lost"),this._keyModifiers.size>0&&(this._sourceEvents.add("key-down"),this._sourceEvents.add("key-up")),this.eventSource&&(this.eventSource.activeEvents=this._sourceEvents)}_setLatestPointer(ie,J,ce){this._latestPointerType=ie;const ue=this._get("latestPointerLocation");if((0,Z.Wi)(ue)||ue.x!==J||ue.y!==ce){const pe=this._propertiesPool.get("latestPointerLocation");pe.x=J,pe.y=ce,this._set("latestPointerLocation",pe)}}_onEventReceived(ie,J){"pointer-capture-lost"===ie&&this._pointerCaptures.delete(J.native.pointerId),this._updateKeyModifiers(ie,J),this._emitInputEventFromSource(ie,J,null!=this.test.timestamp?this.test.timestamp:J.native?J.native.timestamp:void 0,J.native?J.native.cancelable:void 0)}_updateKeyModifiers(ie,J){if(!J)return;let ce=!1;const ue=()=>{if(!ce){const me=new Set;this._activeKeyModifiers.forEach(ge=>{me.add(ge)}),this._activeKeyModifiers=me,ce=!0}},pe=(me,ge)=>{ge&&!this._activeKeyModifiers.has(me)?(ue(),this._activeKeyModifiers.add(me)):!ge&&this._activeKeyModifiers.has(me)&&(ue(),this._activeKeyModifiers.delete(me))};if("key-down"===ie||"key-up"===ie){const me=J.key;this._keyModifiers.has(me)&&pe(me,"key-down"===ie)}const he=J.native;pe("Alt",!(!he||!he.altKey)),pe("Ctrl",!(!he||!he.ctrlKey)),pe("Shift",!(!he||!he.shiftKey)),pe("Meta",!(!he||!he.metaKey)),pe("Primary",this._activeKeyModifiers.has(this.primaryKey))}_installRecognizers(){this._latestPointerHandler=new oe((ie,J,ce)=>this._setLatestPointer(ie,J,ce)),this._multiTouchHandler=new de,this.installHandlers("input-manager-logic",[this._latestPointerHandler,this._multiTouchHandler],Y.ALWAYS),this.recognizers.length>0&&this.installHandlers("default",this.recognizers,Y.INTERNAL)}_setPointerCapture(ie,J,ce,ue){const pe=ie.name+"-"+J.priorityIndex,he=this._pointerCaptures.get(ce.pointerId)||new Set;this._pointerCaptures.set(ce.pointerId,he),ue?(he.add(pe),1===he.size&&this.eventSource&&this.eventSource.setPointerCapture(ce,!0)):he.has(pe)&&(he.delete(pe),0===he.size&&(this._pointerCaptures.delete(ce.pointerId),this.eventSource&&this.eventSource.setPointerCapture(ce,!1)))}_garbageCollectRemovedHandlers(){this._handlers=this._handlers.filter(ie=>!ie.removed),this.updateDependencies()}_emitInputEventFromSource(ie,J,ce,ue){this._emitInputEvent(0,ie,J,ce,ue)}_emitInputEvent(ie,J,ce,ue,pe,he){const me=void 0!==ue?ue:this._currentPropagation?this._currentPropagation.timestamp:performance.now(),_e={event:new re(J,ce,me,he||this._activeKeyModifiers,void 0!==pe&&pe),priorityIndex:ie};this._currentPropagation?this._currentPropagation.events.push(_e):this._doNewPropagation(_e)}_doNewPropagation(ie){this._currentPropagation={events:new Q.Z,currentHandler:null,needsHandlerGarbageCollect:!1,timestamp:ie.event.timestamp},this._currentPropagation.events.push(ie),this._continuePropagation()}_continuePropagation(){const ie=(0,Z.s3)(this._currentPropagation);for(;ie.events.length>0;){const{event:J,priorityIndex:ce}=ie.events.pop(),ue=J.data&&J.data.eventId;if(null==ue||!this._stoppedPropagationEventIds.has(ue))for(ie.currentHandler=this._handlersPriority[ce];ie.currentHandler;){if(ie.currentHandler.removed)ie.needsHandlerGarbageCollect=!0;else{if(ie.currentHandler.active&&!J.shouldStopPropagation()&&ie.currentHandler.eventCallback?.(J),J.shouldStopPropagation()){null!=ue&&this._stoppedPropagationEventIds.add(ue);break}if(J.shouldPausePropagation(()=>this._continuePropagation()))return void this._pausePropagation({event:J,priorityIndex:ie.currentHandler.priorityIndex+1})}ie.currentHandler=this._handlersPriority[ie.currentHandler.priorityIndex+1]}}ie.needsHandlerGarbageCollect&&this._garbageCollectRemovedHandlers(),this.hasPendingInputs||this._stoppedPropagationEventIds.clear(),this._currentPropagation=null,this._updateDependenciesAfterPropagation&&this.updateDependencies()}_pausePropagation(ie){const J=new Q.Z;J.push(ie);const ce=this._currentPropagation;if(ce){for(;ce.events.length;)J.push(ce.events.pop());ce.events=J,ce.currentHandler=null}}_compareHandlerPriority(ie,J){if(ie.handler.hasSideEffects!==J.handler.hasSideEffects)return ie.handler.hasSideEffects?1:-1;if(ie.groupPriority!==J.groupPriority)return ie.groupPriority>J.groupPriority?-1:1;for(const ce of ie.handler.incomingEventMatches)for(const ue of J.handler.incomingEventMatches){if(ce.eventType!==ue.eventType)continue;const pe=ce.keyModifiers.filter(he=>ue.keyModifiers.includes(he));if(pe.length===ce.keyModifiers.length!=(pe.length===ue.keyModifiers.length))return ce.keyModifiers.length>ue.keyModifiers.length?-1:1}return ie.priorityIndex>J.priorityIndex?-1:1}_sortHandlersPriority(ie){const J=[];for(const ce of ie){let ue=0;for(;ue=0;)ue++;J.splice(ue,0,ce)}return J}get debug(){const ie=J=>{const ce=this._setPointerCapture;this._setPointerCapture=()=>{},J(),this._setPointerCapture=ce};return{injectEvent:(J,ce)=>{ie(()=>{this._onEventReceived(J,ce)})},disablePointerCapture:ie}}};(0,D._)([(0,$.Cb)({readOnly:!0})],se.prototype,"hasPendingInputs",null),(0,D._)([(0,$.Cb)({constructOnly:!0})],se.prototype,"eventSource",void 0),(0,D._)([(0,$.Cb)({constructOnly:!0})],se.prototype,"recognizers",void 0),(0,D._)([(0,$.Cb)()],se.prototype,"_latestPointerType",void 0),(0,D._)([(0,$.Cb)()],se.prototype,"latestPointerType",null),(0,D._)([(0,$.Cb)()],se.prototype,"multiTouchActive",null),(0,D._)([(0,$.Cb)({readOnly:!0})],se.prototype,"latestPointerLocation",void 0),se=(0,D._)([(0,H.j)("esri.views.input.InputManager")],se);class re{constructor(J,ce,ue,pe,he){this.type=J,this.data=ce,this.timestamp=ue,this.modifiers=pe,this.cancelable=he,this._propagationState=j.NONE,this._resumeCallback=null}stopPropagation(){this._propagationState|=j.STOPPED}shouldStopPropagation(){return 0!=(this._propagationState&j.STOPPED)}async(J){this._propagationState|=j.PAUSED;const ce=(ue,pe)=>{this._propagationState&=~j.PAUSED;const he=this._resumeCallback;if(this._resumeCallback=null,he&&he(),pe)throw ue;return ue};return("function"==typeof J?J():J).then(ue=>ce(ue,!1),ue=>ce(ue,!0))}shouldPausePropagation(J){return!!(this._propagationState&j.PAUSED)&&(this._resumeCallback=J,!0)}preventDefault(){this.data.native.preventDefault()}}var j,ie;(ie=j||(j={}))[ie.NONE=0]="NONE",ie[ie.STOPPED=1]="STOPPED",ie[ie.PAUSED=2]="PAUSED";const Y={ALWAYS:1,DEFAULT:0,TOOL:-1,WIDGET:-2,INTERNAL:-3};class ee{}},45458:(nt,Ae,v)=>{"use strict";v.d(Ae,{CE:()=>te,uS:()=>W}),v(8314);var R=v(21286),G=v(23841),Z=v(35216),Q=v(18547);v(85112);const W=["click","double-click","immediate-click","immediate-double-click","hold","drag","key-down","key-up","pointer-down","pointer-move","pointer-up","pointer-drag","mouse-wheel","pointer-enter","pointer-leave","gamepad","focus","blur"],B={};function H(oe){return!!B[oe]}W.forEach(oe=>{B[oe]=!0});class te{constructor(le){this._handlers=new Map,this._counter=0,this._handlerCounts=new Map,this.view=le,this.inputManager=null}connect(le){le&&this.disconnect(),this.inputManager=le,this._handlers.forEach(({handler:de,priority:se},re)=>this.inputManager.installHandlers(re,[de],se))}disconnect(){this.inputManager&&this._handlers.forEach((le,de)=>this.inputManager.uninstallHandlers(de)),this.inputManager=null}destroy(){this.disconnect(),this._handlers.clear(),this.view=null}on(le,de,se,re){const j=Array.isArray(le)?le:le.split(",");if(!function X(oe){for(const le of oe)if(!H(le))return!1;return!0}(j))return j.some(H)&&console.error("Error: registering input events and other events on the view at the same time is not supported."),null;let Y,ee;Array.isArray(de)?ee=de:(Y=de,ee=[]),"function"==typeof se?Y=se:re=se,re=re??Q.f.DEFAULT;const ie=this._createUniqueGroupName(),J=new ae(this.view,j,ee,Y);this._handlers.set(ie,{handler:J,priority:re});for(const ce of j){const ue=this._handlerCounts.get(ce)||0;this._handlerCounts.set(ce,ue+1)}return this.inputManager&&this.inputManager.installHandlers(ie,[J],re),{remove:()=>this._removeHandler(ie,j)}}hasHandler(le){return!!this._handlerCounts.get(le)}_removeHandler(le,de){if(this._handlers.has(le)){this._handlers.delete(le);for(const se of de){const re=this._handlerCounts.get(se);void 0===re?console.error("Trying to remove handler for event that has no handlers registered: ",se):1===re?this._handlerCounts.delete(se):this._handlerCounts.set(se,re-1)}}this.inputManager&&this.inputManager.uninstallHandlers(le)}_createUniqueGroupName(){return this._counter+=1,`viewEvents_${this._counter}`}}class ae extends Z.a{constructor(le,de,se,re){super(!0),this.view=le;for(const j of de)switch(j){case"click":this.registerIncoming("click",se,Y=>re(this._wrapClick(Y)));break;case"double-click":this.registerIncoming("double-click",se,Y=>re(this._wrapDoubleClick(Y)));break;case"immediate-click":this.registerIncoming("immediate-click",se,Y=>re(this._wrapImmediateClick(Y)));break;case"immediate-double-click":this.registerIncoming("immediate-double-click",se,Y=>re(this._wrapImmediateDoubleClick(Y)));break;case"hold":this.registerIncoming("hold",se,Y=>re(this._wrapHold(Y)));break;case"drag":this.registerIncoming("drag",se,Y=>{const ee=this._wrapDrag(Y);ee&&re(ee)});break;case"key-down":this.registerIncoming("key-down",se,Y=>re(this._wrapKeyDown(Y)));break;case"key-up":this.registerIncoming("key-up",se,Y=>re(this._wrapKeyUp(Y)));break;case"pointer-down":this.registerIncoming("pointer-down",se,Y=>re(this._wrapPointer(Y,"pointer-down")));break;case"pointer-move":this.registerIncoming("pointer-move",se,Y=>re(this._wrapPointer(Y,"pointer-move")));break;case"pointer-up":this.registerIncoming("pointer-up",se,Y=>re(this._wrapPointer(Y,"pointer-up")));break;case"pointer-drag":this.registerIncoming("pointer-drag",se,Y=>re(this._wrapPointerDrag(Y)));break;case"mouse-wheel":this.registerIncoming("mouse-wheel",se,Y=>re(this._wrapMouseWheel(Y)));break;case"pointer-enter":this.registerIncoming("pointer-enter",se,Y=>re(this._wrapPointer(Y,"pointer-enter")));break;case"pointer-leave":this.registerIncoming("pointer-leave",se,Y=>re(this._wrapPointer(Y,"pointer-leave")));break;case"gamepad":this.registerIncoming("gamepad",se,Y=>{re(this._wrapGamepad(Y))});break;case"focus":this.registerIncoming("focus",se,Y=>{re(this._wrapFocus(Y))});break;case"blur":this.registerIncoming("blur",se,Y=>{re(this._wrapBlur(Y))})}}_wrapFocus(le){return{type:"focus",timestamp:le.timestamp,native:le.data.native,cancelable:le.cancelable,stopPropagation:()=>le.stopPropagation(),async:de=>le.async(de),preventDefault:()=>le.preventDefault()}}_wrapBlur(le){return{type:"blur",timestamp:le.timestamp,native:le.data.native,cancelable:le.cancelable,stopPropagation:()=>le.stopPropagation(),async:de=>le.async(de),preventDefault:()=>le.preventDefault()}}_wrapClick(le){const{pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,eventId:ie}=le.data,{cancelable:J,timestamp:ce}=le;return{type:"click",pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,timestamp:ce,screenPoint:(0,G.vW)(j,Y),mapPoint:this._getMapPoint(j,Y),eventId:ie,cancelable:J,stopPropagation:()=>le.stopPropagation(),async:ue=>le.async(ue),preventDefault:()=>le.preventDefault()}}_wrapDoubleClick(le){const{pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,eventId:ie}=le.data,{cancelable:J,timestamp:ce}=le;return{type:"double-click",pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,timestamp:ce,mapPoint:this._getMapPoint(j,Y),eventId:ie,cancelable:J,stopPropagation:()=>le.stopPropagation(),async:ue=>le.async(ue),preventDefault:()=>le.preventDefault()}}_wrapImmediateClick(le){const{pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,eventId:ie}=le.data,J=ee.pointerId,{cancelable:ce,timestamp:ue}=le;return{type:"immediate-click",pointerId:J,pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,timestamp:ue,mapPoint:this._getMapPoint(j,Y),eventId:ie,cancelable:ce,stopPropagation:()=>le.stopPropagation(),async:pe=>le.async(pe),preventDefault:()=>le.preventDefault()}}_wrapImmediateDoubleClick(le){const{pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,eventId:ie}=le.data,J=ee.pointerId,{cancelable:ce,timestamp:ue}=le;return{type:"immediate-double-click",pointerId:J,pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,timestamp:ue,mapPoint:this._getMapPoint(j,Y),eventId:ie,cancelable:ce,stopPropagation:()=>le.stopPropagation(),async:pe=>le.async(pe),preventDefault:()=>le.preventDefault()}}_wrapHold(le){const{pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee}=le.data,{cancelable:ie,timestamp:J}=le;return{type:"hold",pointerType:de,button:se,buttons:re,x:j,y:Y,native:ee,timestamp:J,mapPoint:this._getMapPoint(j,Y),cancelable:ie,stopPropagation:()=>le.stopPropagation(),async:ce=>le.async(ce),preventDefault:()=>le.preventDefault()}}_getMapPoint(le,de){return this.view.toMap((0,G.vW)(le,de),{exclude:[]})}_wrapDrag(le){const de=le.data,{x:se,y:re}=de.center,{action:j,pointerType:Y,button:ee}=de;if("start"===j&&(this._latestDragStart=de),!this._latestDragStart)return;const ie=de.pointer.native,J=de.buttons,{cancelable:ce,timestamp:ue}=le,pe={x:this._latestDragStart.center.x,y:this._latestDragStart.center.y};return"end"===j&&(this._latestDragStart=void 0),{type:"drag",action:j,x:se,y:re,origin:pe,pointerType:Y,button:ee,buttons:J,radius:de.radius,angle:(0,R.BV)(de.angle),native:ie,timestamp:ue,cancelable:ce,stopPropagation:()=>le.stopPropagation(),async:he=>le.async(he),preventDefault:()=>le.preventDefault()}}_wrapKeyDown(le){const{key:de,repeat:se,native:re}=le.data,{cancelable:j,timestamp:Y}=le;return{type:"key-down",key:de,repeat:se,native:re,timestamp:Y,cancelable:j,stopPropagation:()=>le.stopPropagation(),async:ee=>le.async(ee),preventDefault:()=>le.preventDefault()}}_wrapKeyUp(le){const{key:de,native:se}=le.data,{cancelable:re,timestamp:j}=le;return{type:"key-up",key:de,native:se,timestamp:j,cancelable:re,stopPropagation:()=>le.stopPropagation(),async:Y=>le.async(Y),preventDefault:()=>le.preventDefault()}}_wrapPointer(le,de){const{x:se,y:re,button:j,buttons:Y,native:ee,eventId:ie}=le.data,J=ee.pointerId,ce=ee.pointerType,{cancelable:ue,timestamp:pe}=le;return{type:de,x:se,y:re,pointerId:J,pointerType:ce,button:j,buttons:Y,native:ee,timestamp:pe,eventId:ie,cancelable:ue,stopPropagation:()=>le.stopPropagation(),async:he=>le.async(he),preventDefault:()=>le.preventDefault()}}_wrapPointerDrag(le){const{x:de,y:se,buttons:re,native:j,eventId:Y}=le.data.currentEvent,{button:ee}=le.data.startEvent,ie=le.data.startEvent.native.pointerId,J=le.data.startEvent.native.pointerType,ce=le.data.action,ue={x:le.data.startEvent.x,y:le.data.startEvent.y},{cancelable:pe,timestamp:he}=le;return{type:"pointer-drag",x:de,y:se,pointerId:ie,pointerType:J,button:ee,buttons:re,action:ce,origin:ue,native:j,timestamp:he,eventId:Y,cancelable:pe,stopPropagation:()=>le.stopPropagation(),async:me=>le.async(me),preventDefault:()=>le.preventDefault()}}_wrapMouseWheel(le){const{cancelable:de,data:se,timestamp:re}=le,{x:j,y:Y,deltaY:ee,native:ie}=se;return{type:"mouse-wheel",x:j,y:Y,deltaY:ee,native:ie,timestamp:re,cancelable:de,stopPropagation:()=>le.stopPropagation(),async:J=>le.async(J),preventDefault:()=>le.preventDefault()}}_wrapGamepad(le){const{action:de,state:se,device:re}=le.data,{cancelable:j,timestamp:Y}=le,{buttons:ee,axes:ie}=se;return{type:"gamepad",device:re,timestamp:Y,action:de,buttons:ee,axes:ie,cancelable:j,stopPropagation:()=>le.stopPropagation(),async:J=>le.async(J),preventDefault:()=>le.preventDefault()}}}},25441:(nt,Ae,v)=>{"use strict";v.d(Ae,{CK:()=>G,kK:()=>Q,wj:()=>$});var D=v(17770);const G=(0,v(8314).Z)("mac")?"Meta":"Ctrl",Z={8:"Backspace",9:"Tab",13:"Enter",27:"Escape",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete"};for(let W=48;W<58;W++)Z[W]=String.fromCharCode(W);for(let W=1;W<25;W++)Z[111+W]=`F${W}`;for(let W=65;W<91;W++)Z[W]=[String.fromCharCode(W+32),String.fromCharCode(W)];function Q(W){if(void 0!==W.key)return(0,D.kK)(W);const B=Z[W.keyCode];return Array.isArray(B)?W.shiftKey?B[1]:B[0]:B}function $(W){switch(W){case"Ctrl":case"Alt":case"Shift":case"Meta":case"Primary":return!0}return!1}},33786:(nt,Ae,v)=>{"use strict";var D,R,G,Z;v.d(Ae,{Q9:()=>R,bH:()=>D,jg:()=>G}),(Z=D||(D={}))[Z.USER=0]="USER",Z[Z.MANAGER=1]="MANAGER",function(Z){Z[Z.None=0]="None",Z[Z.Unfocused=1]="Unfocused",Z[Z.Focused=2]="Focused",Z[Z.Unselected=4]="Unselected",Z[Z.Selected=8]="Selected",Z[Z.All=15]="All"}(R||(R={})),function(Z){Z[Z.None=0]="None",Z[Z.Custom1=16]="Custom1",Z[Z.Custom2=32]="Custom2",Z[Z.Custom3=64]="Custom3",Z[Z.Custom4=128]="Custom4",Z[Z.Custom5=256]="Custom5",Z[Z.Custom6=512]="Custom6",Z[Z.Custom7=1024]="Custom7",Z[Z.Custom8=2048]="Custom8",Z[Z.Custom9=4096]="Custom9",Z[Z.Custom10=8192]="Custom10",Z[Z.Custom11=16384]="Custom11",Z[Z.Custom12=32768]="Custom12",Z[Z.All=65520]="All"}(G||(G={}))},90478:(nt,Ae,v)=>{"use strict";var D,R;v.d(Ae,{n:()=>D}),(R=D||(D={}))[R.ANIMATING=0]="ANIMATING",R[R.INTERACTING=1]="INTERACTING",R[R.IDLE=2]="IDLE"},87091:(nt,Ae,v)=>{"use strict";v.d(Ae,{G5:()=>me,T8:()=>le,sq:()=>_e,z4:()=>oe});var le,Ee,D=v(72392),R=v(63290),G=v(62208),Z=v(73362),Q=v(77029),$=v(10699),W=v(32917),B=v(27422),H=v(84395),X=v(41291),te=v(66463),ae=v(90478);function oe(){return new pe.Scheduler}(Ee=le||(le={})).RESOURCE_CONTROLLER="schedule",Ee.SLIDE="slide",Ee.STREAM_DATA_LOADER="stream loader",Ee.ELEVATION_QUERY="elevation query",Ee.TERRAIN_SURFACE="terrain",Ee.SURFACE_GEOMETRY_UPDATES="surface geometry updates",Ee.GRAPHICS_CORE="Graphics3D",Ee.I3S_CONTROLLER="I3S",Ee.POINT_CLOUD_LAYER="point cloud",Ee.FEATURE_TILE_FETCHER="feature fetcher",Ee.OVERLAY="overlay",Ee.STAGE="stage",Ee.GRAPHICS_DECONFLICTOR="graphics deconflictor",Ee.FILTER_VISIBILITY="Graphics3D filter visibility",Ee.SCALE_VISIBILITY="Graphics3D scale visibility",Ee.FRUSTUM_VISIBILITY="Graphics3D frustum visibility",Ee.POINT_OF_INTEREST_FREQUENT="POI frequent",Ee.POINT_OF_INTEREST_INFREQUENT="POI infrequent",Ee.LABELER="labeler",Ee.FEATURE_QUERY_ENGINE="feature query",Ee.FEATURE_TILE_TREE="feature tile tree",Ee.FEATURE_TILE_TREE_ACTIVE="fast feature tile tree",Ee.ELEVATION_ALIGNMENT="elevation alignment",Ee.TEXT_TEXTURE_ATLAS="text texture atlas",Ee.TEXTURE_UNLOAD="texture unload",Ee.LINE_OF_SIGHT_TOOL="line of sight tool",Ee.LINE_OF_SIGHT_TOOL_INTERACTIVE="interactive line of sight tool",Ee.ELEVATION_PROFILE="elevation profile",Ee.SNAPPING="snapping",Ee.SHADOW_ACCUMULATOR="shadow accumulator",Ee.CLOUDS_GENERATOR="cloud generator",Ee[Ee.TEST_PRIO=1]="TEST_PRIO";const se=new Map([[le.RESOURCE_CONTROLLER,0],[le.SLIDE,0],[le.STREAM_DATA_LOADER,0],[le.ELEVATION_QUERY,0],[le.TERRAIN_SURFACE,1],[le.SURFACE_GEOMETRY_UPDATES,1],[le.GRAPHICS_CORE,2],[le.I3S_CONTROLLER,2],[le.POINT_CLOUD_LAYER,2],[le.FEATURE_TILE_FETCHER,2],[le.OVERLAY,4],[le.STAGE,4],[le.GRAPHICS_DECONFLICTOR,4],[le.FILTER_VISIBILITY,4],[le.SCALE_VISIBILITY,4],[le.FRUSTUM_VISIBILITY,4],[le.CLOUDS_GENERATOR,4],[le.POINT_OF_INTEREST_FREQUENT,6],[le.POINT_OF_INTEREST_INFREQUENT,30],[le.LABELER,8],[le.FEATURE_QUERY_ENGINE,8],[le.FEATURE_TILE_TREE,16],[le.FEATURE_TILE_TREE_ACTIVE,0],[le.ELEVATION_ALIGNMENT,12],[le.TEXT_TEXTURE_ATLAS,12],[le.TEXTURE_UNLOAD,12],[le.LINE_OF_SIGHT_TOOL,16],[le.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[le.SNAPPING,0],[le.SHADOW_ACCUMULATOR,30]]);function j(Ee){return se.has(Ee)?se.get(Ee):"number"==typeof Ee?Ee:1}const Y=(0,B.HA)(6.5),ee=(0,B.HA)(1),ie=(0,B.HA)(30),J=(0,B.HA)(1e3/30),ce=(0,B.HA)(100);var pe,he;(function(Ee){Ee.Scheduler=class De{constructor(){this._updating=new H.f(!0),this._microTaskQueued=!1,this._frameNumber=0,this.performanceInfo={total:new Z.Z("total"),tasks:new Map},this._frameTaskTimes=new Map,this._budget=new Se,this._state=ae.n.INTERACTING,this._tasks=new Q.Z,this._runQueue=new Q.Z,this._load=0,this._idleStateCallbacks=new Q.Z,this._idleUpdatesStartFired=!1,this._maxReschedule=32,this._forceTask=!1,this._debug=!1,this._debugHandle=(0,W.YP)(()=>te.Z.SCHEDULER_LOG_SLOW_TASKS,xe=>this._debug=xe,W.nn);for(const xe of Object.keys(le))this.performanceInfo.tasks.set(le[xe],new Z.Z(le[xe]));const ve=this;this._test={FRAME_SAFETY_BUDGET:Y,INTERACTING_BUDGET:J,IDLE_BUDGET:ce,get availableBudget(){return ve._budget.budget},usedBudget:0,getBudget:()=>ve._budget,setBudget:xe=>ve._budget=xe,updateTask:xe=>this._updateTask(xe),getState:xe=>this._getState(xe),getRuntime:xe=>this._getRuntime(xe),frameTaskTimes:this._frameTaskTimes,resetRuntimes:()=>this._resetRuntimes(),getRunning:()=>this._getRunning()}}get updating(){return this._updating.get()}set updating(ve){this._updating.set(ve)}destroy(){this._tasks.toArray().forEach(ve=>ve.remove()),this._tasks.clear(),(0,G.hw)(this._debugHandle),this._microTaskQueued=!1,this._updating.set(!1)}activate(){this._budget.done||this._microTaskQueued||(this._microTaskQueued=!0,queueMicrotask(()=>{this._microTaskQueued&&(this._microTaskQueued=!1,this._budget.done||(this._maxReschedule=32,this._schedule(),this.frame()))}))}registerTask(ve,xe){const ze=j(ve),Ke=new be(this,ve,xe,ze);return this._tasks.push(Ke),this.performanceInfo.tasks.has(ve)||this.performanceInfo.tasks.set(ve,new Z.Z(ve)),Ke}registerIdleStateCallbacks(ve,xe){const ze={idleBegin:ve,idleEnd:xe};this._idleStateCallbacks.push(ze),this.state===ae.n.IDLE&&this._idleUpdatesStartFired&&ze.idleBegin();const Ke=this;return{remove:()=>this._removeIdleStateCallbacks(ze),set idleBegin(We){Ke._idleUpdatesStartFired&&(ze.idleEnd(),Ke._state===ae.n.IDLE&&We()),ze.idleBegin=We},set idleEnd(We){ze.idleEnd=We}}}get load(){return this._load}set state(ve){this._state!==ve&&(this._state=ve,this.state!==ae.n.IDLE&&this._idleUpdatesStartFired&&(this._idleUpdatesStartFired=!1,this._idleStateCallbacks.forAll(xe=>xe.idleEnd())))}get state(){return this._state}updateBudget(ve){this._test.usedBudget=0,++this._frameNumber;let xe=Y,ze=ve.frameDuration,Ke=ee;switch(this.state){case ae.n.IDLE:xe=(0,B.HA)(0),ze=(0,B.HA)(Math.max(ce,ve.frameDuration)),Ke=ie;break;case ae.n.INTERACTING:ze=(0,B.HA)(Math.max(J,ve.frameDuration))}return ze=(0,B.HA)(ze-ve.elapsedFrameTime-xe),this.state!==ae.n.IDLE&&zeve.idleBegin())),this._runIdle();break;case ae.n.INTERACTING:this._runInteracting();break;default:this._runAnimating()}this._test.usedBudget=this._budget.elapsed}stopFrame(){this._budget.reset((0,B.HA)(0),this._state),this._budget.madeProgress()}_removeIdleStateCallbacks(ve){this._idleUpdatesStartFired&&ve.idleEnd(),this._idleStateCallbacks.removeUnordered(ve)}removeTask(ve){this._tasks.removeUnordered(ve),this._runQueue.removeUnordered(ve)}_updateTask(ve){this._tasks.forAll(xe=>{xe.name===ve&&xe.setPriority(ve)})}_getState(ve){if(this._runQueue.some(ze=>ze.name===ve))return he.SCHEDULED;let xe=he.IDLE;return this._tasks.forAll(ze=>{ze.name===ve&&ze.needsUpdate&&(ze.schedulePriority<=1?xe=he.READY:xe!==he.READY&&(xe=he.WAITING))}),xe}_getRuntime(ve){let xe=0;return this._tasks.forAll(ze=>{ze.name===ve&&(xe+=ze.runtime)}),xe}_resetRuntimes(){this._tasks.forAll(ve=>ve.runtime=0)}_getRunning(){const ve=new Map;if(this._tasks.forAll(ze=>{ze.needsUpdate&&ve.set(ze.name,(ve.get(ze.name)||0)+1)}),0===ve.size)return null;let xe="";return ve.forEach((ze,Ke)=>{xe+=ze>1?` ${ze}x ${Ke}`:` ${Ke}`}),xe}_runIdle(){this._run()}_runInteracting(){this._run()}_runAnimating(){this._run()}_updateLoad(){const ve=this._tasks.reduce((xe,ze)=>ze.needsUpdate?++xe:xe,0);this._load=.9*this._load+ve*(1-.9)}_schedule(){if(this._maxReschedule<=0)return!1;for(this._runQueue.filterInPlace(ve=>!!ve.needsUpdate||(ve.schedulePriority=ve.basePriority,!1)),this._tasks.forAll(ve=>{0===ve.basePriority&&ve.needsUpdate&&!this._runQueue.includes(ve)&&this._runQueue.unshift(ve)});0===this._runQueue.length;){let ve=!1,xe=0;if(this._tasks.forAll(ze=>{ze.needsUpdate&&0!==ze.schedulePriority&&0!==ze.basePriority&&(!ze.task.runOncePerFrame||ze.lastFrameRun!==this._frameNumber)&&(ve=!0,xe=Math.max(xe,ze.basePriority),1===ze.schedulePriority?(ze.schedulePriority=0,this._runQueue.push(ze)):--ze.schedulePriority)}),!ve)return this._updating.set(!1),!1;--this._maxReschedule}return this._updating.set(!0),!0}_run(){const ve=this._budget.now();this._startFrameTaskTimes();do{for(;this._runQueue.length>0;){const xe=this._budget.now(),ze=this._runQueue.pop();this._budget.resetProgress();try{ze.task.runTask(this._budget)}catch(We){R.Z.getLogger("esri.views.support.Scheduler").error(`Exception in task "${ze.name}"`,We)}ze.schedulePriority=ze.basePriority,ze.lastFrameRun=this._frameNumber;const Ke=this._budget.now()-xe;if(ze.runtime+=Ke,this._frameTaskTimes.set(ze.priority,this._frameTaskTimes.get(ze.priority)+Ke),this._debug&&this._budget.elapsed>2*this._budget.budget&&console.log("Task",ze.name,"used",this._budget.elapsed,"of max",this._budget.budget,"ms"),this._budget.remaining<=0)return this._updating.set(this._tasks.some(We=>We.needsUpdate)),void this._recordFrameTaskTimes(this._budget.now()-ve)}}while(this._schedule());this._updating.set(this._tasks.some(xe=>xe.needsUpdate)),this._recordFrameTaskTimes(this._budget.now()-ve)}_startFrameTaskTimes(){for(const ve of Object.keys(le))this._frameTaskTimes.set(le[ve],0)}_recordFrameTaskTimes(ve){this._frameTaskTimes.forEach((xe,ze)=>this.performanceInfo.tasks.get(ze).record(xe)),this.performanceInfo.total.record(ve)}get test(){return this._test}};class be{constructor(ve,xe,ze,Ke){this._scheduler=ve,this.name=xe,this._basePriority=Ke,this.lastFrameRun=0,this.runtime=0,this._queue=new X.b,this._handles=new D.Z,this.schedulePriority=this._basePriority,this._task=new H.f((0,G.pC)(ze)?ze:this._queue),this._handles.add((0,W.gx)(()=>this.task.running,()=>ve.activate()))}get task(){return this._task.get()}get updating(){return this._queue.running}remove(){this.processQueue(me),this._scheduler.removeTask(this),this.schedule=_e.schedule,this.reschedule=_e.reschedule,this._handles.destroy()}get basePriority(){return this._basePriority}setPriority(ve){this.name=ve;const xe=j(ve);0!==this._basePriority&&0===this.schedulePriority||(this.schedulePriority=xe),this._basePriority=xe}get priority(){return this.name}set priority(ve){this.setPriority(ve)}get needsUpdate(){return this.updating||this.task.running}schedule(ve,xe,ze){return this._queue.push(ve,xe,ze)}reschedule(ve,xe,ze){return this._queue.unshift(ve,xe,ze)}processQueue(ve){this._queue.runTask(ve)}}class Se{constructor(){this._begin=typeof performance<"u"?performance.now():0,this._budget=0,this._state=ae.n.IDLE,this._done=!1,this._enabled=!0}run(ve){return!this.done&&(!0===ve()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){this._done=this.elapsed>=this._budget&&this._enabled}get state(){return this._state}get enabled(){return this._enabled}set enabled(ve){this._enabled=ve}reset(ve,xe){this._begin=this.now(),this._budget=ve,this._state=xe,this._done=!1}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return performance.now()-this._begin}resetProgress(){this._done=!1}get hasProgressed(){return this._done}}Ee.Budget=Se})(pe||(pe={})),function(Ee){Ee.SCHEDULED="s",Ee.READY="r",Ee.WAITING="w",Ee.IDLE="i"}(he||(he={}));const me=(()=>{const Ee=new pe.Budget;return Ee.enabled=!1,Ee})(),_e=new class ge{remove(){}processQueue(){}schedule(De,be,Se){try{if((0,$.Hc)(be)){const ye=(0,$.zE)();return Se?Promise.resolve(Se(ye)):Promise.reject(ye)}return(0,$.gx)(De(me))}catch(ye){return Promise.reject(ye)}}reschedule(De,be,Se){return this.schedule(De,be,Se)}}},66463:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>B});var D=v(17626),R=v(14517),G=v(77712),$=(v(85931),v(90912),v(76898));let W=class extends R.Z{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,D._)([(0,G.Cb)()],W.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,D._)([(0,G.Cb)()],W.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),W=(0,D._)([(0,$.j)("esri.views.support.DebugFlags")],W);const B=new W},93579:(nt,Ae,v)=>{"use strict";v.d(Ae,{Av:()=>Q,_1:()=>G,lu:()=>$,rs:()=>Z,tl:()=>R});var D=v(62208);function R(W){return W&&"function"==typeof W.highlight}function G(W){return W&&"function"==typeof W.maskOccludee}function Z(W,B,H){return(0,D.Wi)(W)||W>H&&(0===B||W0||B>0}function $(W){const B=W.effectiveScaleRange;return{minScale:B?.minScale??0,maxScale:B?.maxScale??0}}},41900:(nt,Ae,v)=>{"use strict";v.d(Ae,{Eu:()=>Q,Rw:()=>W,Sj:()=>Z,s6:()=>$,vT:()=>G}),v(8314);var R=v(23841);function G(B){return(0,R.vW)(B.x,B.y)}function Z(B){return(0,R.s1)(B.x,B.y)}function Q(B,H){const X=(B instanceof HTMLElement?B:B.surface).getBoundingClientRect();return(0,R.vW)(H.clientX-X.left,H.clientY-X.top)}function $(B,H){return H instanceof Event?Q(B,H):G(H)}function W(B){if(B instanceof Event)return!0;if("object"==typeof B&&"type"in B)switch(B.type){case"click":case"double-click":case"pointer-down":case"pointer-drag":case"pointer-enter":case"pointer-leave":case"pointer-up":case"pointer-move":case"immediate-click":case"immediate-double-click":case"hold":case"drag":case"mouse-wheel":return!0;default:return!1}return!1}},86080:(nt,Ae,v)=>{"use strict";v.d(Ae,{D:()=>G});var D=v(6178),R=v(59617);function G(Z,Q){return null!=Z&&(null==Q||(Q===R.JY.Local?!Z.isGeographic||Z.isWGS84||Z.wkid===D.W.CGCS2000:Z.isWebMercator||Z.isWGS84||Z.wkid===D.W.CGCS2000||Z.wkid===D.W.GCSMARS2000||Z.wkid===D.W.GCSMARS2000_SPHERE||Z.wkid===D.W.GCSMOON2000))}},83994:(nt,Ae,v)=>{"use strict";v.d(Ae,{f:()=>te});var D=v(15861),R=v(85931),G=v(63290),Z=v(62208),Q=v(55713),$=v(68598),W=v(57596),B=v(67969);const H=G.Z.getLogger("esri.views.webgl.BufferObject");class te{constructor(oe,le,de,se){this._context=oe,this.bufferType=le,this.usage=de,this._glName=null,this._size=-1,this._indexType=void 0,oe.instanceCounter.increment(B._g.BufferObject,this),this._glName=this._context.gl.createBuffer(),(0,$.zu)(this._context.gl),se&&this.setData(se)}static createIndex(oe,le,de){return new te(oe,B.w0.ELEMENT_ARRAY_BUFFER,le,de)}static createVertex(oe,le,de){return new te(oe,B.w0.ARRAY_BUFFER,le,de)}static createUniform(oe,le,de){if(oe.type!==W.zO.WEBGL2)throw new Error("Uniform buffers are supported in WebGL2 only!");return new te(oe,B.w0.UNIFORM_BUFFER,le,de)}static createPixelPack(oe,le=B.l1.STREAM_READ,de){if(oe.type!==W.zO.WEBGL2)throw new Error("Pixel pack buffers are supported in WebGL2 only!");const se=new te(oe,B.w0.PIXEL_PACK_BUFFER,le);return de&&se.setSize(de),se}static createPixelUnpack(oe,le=B.l1.STREAM_DRAW,de){if(oe.type!==W.zO.WEBGL2)throw new Error("Pixel unpack buffers are supported in WebGL2 only!");return new te(oe,B.w0.PIXEL_UNPACK_BUFFER,le,de)}get glName(){return this._glName}get size(){return this._size}get indexType(){return this._indexType}get byteSize(){return this.bufferType===B.w0.ELEMENT_ARRAY_BUFFER?this._indexType===B.g.UNSIGNED_INT?4*this._size:2*this._size:this._size}get _isVAOAware(){return this.bufferType===B.w0.ELEMENT_ARRAY_BUFFER||this.bufferType===B.w0.ARRAY_BUFFER}dispose(){this._context?.gl?(this._glName&&(this._context.gl.deleteBuffer(this._glName),this._glName=null),this._context.instanceCounter.decrement(B._g.BufferObject,this),this._context=(0,Z.wN)(this._context)):this._glName&&H.warn("Leaked WebGL buffer object")}setSize(oe,le=null){if(oe<=0&&H.error("Buffer size needs to be positive!"),this.bufferType===B.w0.ELEMENT_ARRAY_BUFFER&&(0,Z.pC)(le))switch(this._indexType=le,le){case B.g.UNSIGNED_SHORT:oe*=2;break;case B.g.UNSIGNED_INT:oe*=4}this._setBufferData(oe)}setData(oe){if(!oe)return;let le=oe.byteLength;this.bufferType===B.w0.ELEMENT_ARRAY_BUFFER&&((0,Q.Uc)(oe)&&(le/=2,this._indexType=B.g.UNSIGNED_SHORT),(0,Q.ZY)(oe)&&(le/=4,this._indexType=B.g.UNSIGNED_INT)),this._setBufferData(le,oe)}_setBufferData(oe,le=null){this._size=oe;const de=this._context.getBoundVAO();this._isVAOAware&&this._context.bindVAO(null),this._context.bindBuffer(this);const se=this._context.gl;(0,Z.pC)(le)?se.bufferData(this.bufferType,le,this.usage):se.bufferData(this.bufferType,oe,this.usage),(0,$.zu)(se),this._isVAOAware&&this._context.bindVAO(de)}setSubData(oe,le,de,se){if(!oe)return;(le<0||le>=this._size)&&H.error("offset is out of range!"),de>=se&&H.error("end must be bigger than start!"),le+(se-de)>this._size&&H.error("An attempt to write beyond the end of the buffer!");const re=this._context.getBoundVAO();this._isVAOAware&&this._context.bindVAO(null),this._context.bindBuffer(this);const j=this._context.gl;if(this._context.type===W.zO.WEBGL2)j.bufferSubData(this.bufferType,le*oe.BYTES_PER_ELEMENT,oe,de,se-de);else{const Y=0===de&&se===oe.length?oe:oe.subarray(de,se);j.bufferSubData(this.bufferType,le*oe.BYTES_PER_ELEMENT,Y)}(0,$.zu)(j),this._isVAOAware&&this._context.bindVAO(re)}getSubData(oe,le=0,de,se){if(this._context.type!==W.zO.WEBGL2)return void H.error("Get buffer subdata is supported in WebGL2 only!");if(de<0||se<0)return void H.error("Problem getting subdata: offset and length were less than zero!");const re=function X(ae){return(0,R.zG)(ae)}(oe)?oe.BYTES_PER_ELEMENT:1;if(re*((de??0)+(se??0))>oe.byteLength)return void H.error("Problem getting subdata: offset and length exceeded destination size!");le+re*(se??0)>this.byteSize&&H.warn("Potential problem getting subdata: requested data exceeds buffer size!");const j=this._context.gl;this._context.bindBuffer(this,B.w0.COPY_READ_BUFFER),j.getBufferSubData(B.w0.COPY_READ_BUFFER,le,oe,de,se),this._context.unbindBuffer(B.w0.COPY_READ_BUFFER)}getSubDataAsync(oe,le=0,de,se){var re=this;return(0,D.Z)(function*(){re._context.type===W.zO.WEBGL2?(yield re._context.clientWaitAsync(),re.getSubData(oe,le,de,se)):H.error("Get buffer subdata is supported in WebGL2 only!")})()}}},85775:(nt,Ae,v)=>{"use strict";v.d(Ae,{X:()=>te});var D=v(15861),R=v(63290),G=v(62208),Z=v(83994),Q=v(68598),$=v(57596),W=v(67969),B=v(49266),H=v(55086),X=v(26906);class te{constructor(ee,ie,J=null,ce=null){if(this._context=ee,this._glName=null,this._depthAttachment=null,this._stencilAttachment=null,this._colorAttachments=new Map,this._depthStencilTexture=null,this._initialized=!1,this._desc={...ie},ee.instanceCounter.increment(W._g.FramebufferObject,this),(0,G.pC)(J)){Array.isArray(J)||(J=[J]);for(let ue=0;ueee+(0,X.un)(J),0)+(0,X.un)(this.depthStencilAttachment)}getColorTexture(ee){const ie=this._colorAttachments.get(ee);return ie&&ae(ie)?ie:null}attachColorTexture(ee,ie=W.VY.COLOR_ATTACHMENT0){!ee||(this._validateColorAttachmentPoint(ie),se(ee.descriptor,this._desc),this._disposeColorAttachments(),this._initialized&&(this._context.bindFramebuffer(this),this._framebufferTexture2D(ee.glName,ie)),this._colorAttachments.set(ie,ee))}detachColorTexture(ee=W.VY.COLOR_ATTACHMENT0){const ie=this._colorAttachments.get(ee);if(ae(ie)){const J=ie;return this._initialized&&(this._context.bindFramebuffer(this),this._framebufferTexture2D(null,ee)),this._colorAttachments.delete(ee),J}}setColorTextureTarget(ee,ie=W.VY.COLOR_ATTACHMENT0){const J=this._colorAttachments.get(ie);ae(J)&&this._framebufferTexture2D(J.glName,ie,ee)}attachDepthStencilTexture(ee){if((0,G.Wi)(ee))return;const ie=ee.descriptor;ie.pixelFormat!==W.VI.DEPTH_STENCIL&&console.error("Depth/Stencil texture must have a pixel type of DEPTH_STENCIL!"),ie.dataType!==W.Br.UNSIGNED_INT_24_8&&console.error("Depth/Stencil texture must have data type of UNSIGNED_INT_24_8!"),this._context.capabilities.depthTexture||console.error("Extension WEBGL_depth_texture isn't supported therefore it is no possible to set the depth/stencil texture!"),se(ie,this._desc),this._desc.depthStencilTarget&&this._desc.depthStencilTarget!==W.OU.DEPTH_STENCIL_TEXTURE&&(this._desc.depthStencilTarget=W.OU.DEPTH_STENCIL_TEXTURE),this._disposeDepthStencilAttachments(),this._initialized&&(this._context.bindFramebuffer(this),this._framebufferTexture2D(ee.glName,W.Lu)),this._depthStencilTexture=ee}detachDepthStencilTexture(){const ee=this._depthStencilTexture;return ee&&this._initialized&&(this._context.bindFramebuffer(this),this._framebufferTexture2D(null,W.Lu)),this._depthStencilTexture=null,ee}attachDepthStencilBuffer(ee){if((0,G.Wi)(ee))return;const ie=ee.descriptor;if(ie.internalFormat!==W.Tg.DEPTH_STENCIL&&ie.internalFormat!==W.Tg.DEPTH_COMPONENT16&&console.error("Depth/Stencil buffer must have correct internalFormat"),re(ie,this._desc),this._disposeDepthStencilAttachments(),this._desc.depthStencilTarget=ie.internalFormat===W.Tg.DEPTH_STENCIL?W.OU.DEPTH_STENCIL_RENDER_BUFFER:W.OU.DEPTH_RENDER_BUFFER,this._initialized){this._context.bindFramebuffer(this);const J=this._context.gl;J.framebufferRenderbuffer(W.qi.FRAMEBUFFER,this._desc.depthStencilTarget===W.OU.DEPTH_RENDER_BUFFER?J.DEPTH_ATTACHMENT:J.DEPTH_STENCIL_ATTACHMENT,J.RENDERBUFFER,ee.glName)}this._depthAttachment=ee}detachDepthStencilBuffer(){const ee=this._context.gl,ie=this._depthAttachment;return ie&&this._initialized&&(this._context.bindFramebuffer(this),ee.framebufferRenderbuffer(W.qi.FRAMEBUFFER,this._desc.depthStencilTarget===W.OU.DEPTH_RENDER_BUFFER?ee.DEPTH_ATTACHMENT:ee.DEPTH_STENCIL_ATTACHMENT,ee.RENDERBUFFER,null)),this._depthAttachment=null,ie}detachAll(){this._colorAttachments.forEach((ee,ie)=>this._detachColorAttachment(ie)),this.detachDepthStencilBuffer(),this.detachDepthStencilTexture()}copyToTexture(ee,ie,J,ce,ue,pe,he){(ee<0||ie<0||ue<0||pe<0)&&console.error("Offsets cannot be negative!"),(J<=0||ce<=0)&&console.error("Copy width and height must be greater than zero!");const me=this._desc,ge=he.descriptor;he.descriptor.target!==W.No.TEXTURE_2D&&console.error("Texture target must be TEXTURE_2D!"),(null==me?.width||null==me?.height||null==ge?.width||null==ge?.height||ee+J>me.width||ie+ce>me.height||ue+J>ge.width||pe+ce>ge.height)&&console.error("Bad dimensions, the current input values will attempt to read or copy out of bounds!");const _e=this._context,Ee=_e.bindTexture(he,H.x.TEXTURE_UNIT_FOR_UPDATES);_e.setActiveTexture(H.x.TEXTURE_UNIT_FOR_UPDATES),_e.bindFramebuffer(this),_e.gl.copyTexSubImage2D(W.No.TEXTURE_2D,0,ue,pe,ee,ie,J,ce),_e.bindTexture(Ee,H.x.TEXTURE_UNIT_FOR_UPDATES)}readPixels(ee,ie,J,ce,ue,pe,he){(J<=0||ce<=0)&&console.error("Copy width and height must be greater than zero!"),he||console.error("Target memory is not initialized!"),this._context.bindFramebuffer(this),this._context.gl.readPixels(ee,ie,J,ce,ue,pe,he)}readPixelsAsync(ee,ie,J,ce,ue,pe,he){var me=this;return(0,D.Z)(function*(){if(me._context.type!==$.zO.WEBGL2)return(0,Q.hZ)()&&console.warn("Attempting to read pixels using pixel buffer object without WebGL2"),void me.readPixels(ee,ie,J,ce,ue,pe,he);const ge=me._context.gl,_e=Z.f.createPixelPack(me._context,W.l1.STREAM_READ,he.byteLength);me._context.bindBuffer(_e),me._context.bindFramebuffer(me),ge.readPixels(ee,ie,J,ce,ue,pe,0),me._context.unbindBuffer(W.w0.PIXEL_PACK_BUFFER),yield _e.getSubDataAsync(he),_e.dispose()})()}resize(ee,ie){const J=this._desc;if(J.width!==ee||J.height!==ie){if(!this._initialized)return J.width=ee,J.height=ie,this._colorAttachments.forEach(ce=>{ce&&ce.resize(ee,ie)}),void(this._depthStencilTexture&&this._depthStencilTexture.resize(ee,ie));J.width=ee,J.height=ie,this._colorAttachments.forEach(ce=>{ce&&ce.resize(ee,ie)}),null!=this._depthStencilTexture?this._depthStencilTexture.resize(ee,ie):(this._depthAttachment||this._stencilAttachment)&&(this._depthAttachment&&this._depthAttachment.resize(ee,ie),this._stencilAttachment&&this._stencilAttachment.resize(ee,ie)),this._context.getBoundFramebufferObject()===this&&this._context.bindFramebuffer(null),this._initialized=!1}}initializeAndBind(ee=W.qi.FRAMEBUFFER){const ie=this._context.gl;if(this._initialized)return void ie.bindFramebuffer(ee,this.glName);this._glName&&ie.deleteFramebuffer(this._glName);const J=this._context,ce=ie.createFramebuffer(),ue=this._desc,pe=ue.colorTarget??W.Lm.RENDER_BUFFER,he=ue.width??1,me=ue.height??1;if(ie.bindFramebuffer(ee,ce),0===this._colorAttachments.size)if(pe===W.Lm.TEXTURE||pe===W.Lm.CUBEMAP)this._colorAttachments.set(W.VY.COLOR_ATTACHMENT0,function de(Y,ee,ie){return new H.x(Y,{target:ie,pixelFormat:W.VI.RGBA,dataType:W.Br.UNSIGNED_BYTE,samplingMode:W.cw.NEAREST,wrapMode:W.e8.CLAMP_TO_EDGE,width:ee.width,height:ee.height})}(J,ue,this.descriptor.colorTarget===W.Lm.CUBEMAP?W.No.TEXTURE_CUBE_MAP:W.No.TEXTURE_2D));else{const _e=new B.r(J,{internalFormat:W.lP.RGBA4,width:he,height:me});this._colorAttachments.set(W.VY.COLOR_ATTACHMENT0,_e)}this._colorAttachments.forEach((_e,Ee)=>{_e&&(ae(_e)?this._framebufferTexture2D(_e.glName,Ee,j(_e),ee):ie.framebufferRenderbuffer(ee,Ee,ie.RENDERBUFFER,_e.glName))});const ge=ue.depthStencilTarget??W.OU.NONE;switch(ge){case W.OU.DEPTH_RENDER_BUFFER:case W.OU.DEPTH_STENCIL_RENDER_BUFFER:this._depthAttachment||(this._depthAttachment=new B.r(J,{internalFormat:ue.depthStencilTarget===W.OU.DEPTH_RENDER_BUFFER?W.Tg.DEPTH_COMPONENT16:W.Tg.DEPTH_STENCIL,width:he,height:me})),ie.framebufferRenderbuffer(ee,ge===W.OU.DEPTH_RENDER_BUFFER?ie.DEPTH_ATTACHMENT:ie.DEPTH_STENCIL_ATTACHMENT,ie.RENDERBUFFER,this._depthAttachment.glName);break;case W.OU.STENCIL_RENDER_BUFFER:this._stencilAttachment||(this._stencilAttachment=new B.r(J,{internalFormat:W.Tg.STENCIL_INDEX8,width:he,height:me})),ie.framebufferRenderbuffer(ee,ie.STENCIL_ATTACHMENT,ie.RENDERBUFFER,this._stencilAttachment.glName);break;case W.OU.DEPTH_STENCIL_TEXTURE:this._depthStencilTexture||(J.capabilities.depthTexture||console.error("Extension WEBGL_depth_texture isn't supported therefore it is no possible to set the depth/stencil texture as an attachment!"),this._depthStencilTexture=new H.x(J,{target:W.No.TEXTURE_2D,pixelFormat:W.VI.DEPTH_STENCIL,dataType:W.Br.UNSIGNED_INT_24_8,samplingMode:W.cw.NEAREST,wrapMode:W.e8.CLAMP_TO_EDGE,width:he,height:me})),this._framebufferTexture2D(this._depthStencilTexture.glName,ie.DEPTH_STENCIL_ATTACHMENT,j(this._depthStencilTexture),ee)}(0,Q.hZ)()&&ie.checkFramebufferStatus(ee)!==ie.FRAMEBUFFER_COMPLETE&&console.error("Framebuffer is incomplete!"),this._glName=ce,this._initialized=!0}_framebufferTexture2D(ee,ie=W.VY.COLOR_ATTACHMENT0,J=W.No.TEXTURE_2D,ce=W.qi.FRAMEBUFFER,ue=0){this._context.gl.framebufferTexture2D(ce,ie,J,ee,ue)}_detachColorAttachment(ee){(0,Q.hZ)()&&console.warn("Detaching an FBO attachment can be a slow due to invalidating framebuffer completeness!");const ie=this._context.gl,J=this._colorAttachments.get(ee);return ae(J)?this._initialized&&(this._context.bindFramebuffer(this),this._framebufferTexture2D(null,ee)):this._initialized&&(this._context.bindFramebuffer(this),ie.framebufferRenderbuffer(W.qi.FRAMEBUFFER,ee,ie.RENDERBUFFER,null)),this._colorAttachments.delete(ee),J}_disposeColorAttachments(){this._colorAttachments.forEach((ee,ie)=>{this._detachColorAttachment(ie),ee.dispose()}),this._colorAttachments.clear()}_disposeDepthStencilAttachments(){const ee=this._context.gl;this._depthAttachment&&(this._initialized&&(this._context.bindFramebuffer(this),ee.framebufferRenderbuffer(W.qi.FRAMEBUFFER,this._desc.depthStencilTarget===W.OU.DEPTH_RENDER_BUFFER?ee.DEPTH_ATTACHMENT:ee.DEPTH_STENCIL_ATTACHMENT,ee.RENDERBUFFER,null)),this._depthAttachment.dispose(),this._depthAttachment=null),this._stencilAttachment&&(this._initialized&&(this._context.bindFramebuffer(this),ee.framebufferRenderbuffer(W.qi.FRAMEBUFFER,ee.STENCIL_ATTACHMENT,ee.RENDERBUFFER,null)),this._stencilAttachment.dispose(),this._stencilAttachment=null),this._depthStencilTexture&&(this._initialized&&(this._context.bindFramebuffer(this),this._framebufferTexture2D(null,ee.DEPTH_STENCIL_ATTACHMENT)),this._depthStencilTexture.dispose(),this._depthStencilTexture=null)}_validateColorAttachmentPoint(ee){if(-1===te._MAX_COLOR_ATTACHMENTS){const J=this._context.capabilities.drawBuffers;te._MAX_COLOR_ATTACHMENTS=J?this._context.gl.getParameter(J.MAX_COLOR_ATTACHMENTS):1}const ie=ee-W.VY.COLOR_ATTACHMENT0;ie+1>te._MAX_COLOR_ATTACHMENTS&&R.Z.getLogger("esri.views.webgl.FrameBufferObject").error("esri.FrameBufferObject",`illegal attachment point for color attachment: ${ie+1}. Implementation supports up to ${te._MAX_COLOR_ATTACHMENTS} color attachments`)}}function ae(Y){return null!=Y&&"type"in Y&&"texture"===Y.type}function oe(Y){return null!=Y&&"type"in Y&&"renderbuffer"===Y.type}function le(Y){return ae(Y)||null!=Y&&"pixelFormat"in Y}function se(Y,ee){Y.target!==W.No.TEXTURE_2D&&Y.target!==W.No.TEXTURE_CUBE_MAP&&console.error("Texture type must be TEXTURE_2D or TEXTURE_CUBE_MAP!"),void 0!==ee.width&&ee.width>=0&&void 0!==ee.height&&ee.height>=0?ee.width===Y.width&&ee.height===Y.height||console.error("Color attachment texture must match the framebuffer's!"):(ee.width=Y.width,ee.height=Y.height)}function re(Y,ee){void 0!==ee.width&&ee.width>=0&&void 0!==ee.height&&ee.height>=0?ee.width===Y.width&&ee.height===Y.height||console.error("Renderbuffer dimensions must match the framebuffer's!"):(ee.width=Y.width,ee.height=Y.height)}function j(Y){return Y.descriptor.target===W.No.TEXTURE_CUBE_MAP?W.No.TEXTURE_CUBE_MAP_POSITIVE_X:W.No.TEXTURE_2D}te._MAX_COLOR_ATTACHMENTS=-1},49266:(nt,Ae,v)=>{"use strict";v.d(Ae,{r:()=>Z});var D=v(62208),R=v(57596),G=v(67969);class Z{constructor($,W){this._context=$,this._desc=W,this.type="renderbuffer",this._context.instanceCounter.increment(G._g.Renderbuffer,this);const B=this._context.gl;this.glName=B.createRenderbuffer(),this._context.bindRenderbuffer(this);const{width:H,height:X,internalFormat:te,multisampled:ae}=W;if(ae){if(this._context.type!==R.zO.WEBGL2)throw new Error("Multisampled renderbuffers are not supported in WebGL1!");B.renderbufferStorageMultisample(B.RENDERBUFFER,this.samples,te,H,X)}else B.renderbufferStorage(B.RENDERBUFFER,te,H,X)}get descriptor(){return this._desc}get samples(){const $=this._desc.samples,W=this._context.parameters.maxSamples;return $?Math.min($,W):W}resize($,W){const B=this._desc;if(B.width===$&&B.height===W)return;B.width=$,B.height=W;const H=this._context.gl;this._context.bindRenderbuffer(this),B.multisampled?H.renderbufferStorageMultisample(H.RENDERBUFFER,this.samples,B.internalFormat,B.width,B.height):H.renderbufferStorage(H.RENDERBUFFER,B.internalFormat,B.width,B.height)}dispose(){this._context&&(this._context.gl.deleteRenderbuffer(this.glName),this._context.instanceCounter.decrement(G._g.Renderbuffer,this),this._context=(0,D.wN)(this._context))}}},55086:(nt,Ae,v)=>{"use strict";v.d(Ae,{x:()=>X}),v(8314);var R=v(21286),G=v(62208),Z=v(68598),Q=v(57596),$=v(67969),W=v(38210);const B={target:$.No.TEXTURE_2D,samplingMode:$.cw.LINEAR,wrapMode:$.e8.REPEAT,flipped:!1,hasMipmap:!1,isOpaque:!1,unpackAlignment:4,preMultiplyAlpha:!1,isImmutable:!1};class X{constructor(Y,ee,ie=null){this._context=Y,this.type="texture",this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._wasImmutablyAllocated=!1,Y.instanceCounter.increment($._g.Texture,this),this._descriptor={...B,...ee};for(const J in B)void 0===this._descriptor[J]&&(this._descriptor[J]=B[J]);if(Y.type!==Q.zO.WEBGL2&&(this._descriptor.isImmutable&&(this._descriptor.isImmutable=!1),se(this._descriptor.target)))throw new Error("3D and array textures are not supported in WebGL1");this._descriptor.target===$.No.TEXTURE_CUBE_MAP?this._setDataCubeMap(ie):this.setData(ie)}get glName(){return this._glName}get descriptor(){return this._descriptor}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty}dispose(){this._context.gl&&this._glName&&(this._context.unbindTexture(this),this._context.gl.deleteTexture(this._glName),this._glName=null,this._context.instanceCounter.decrement($._g.Texture,this))}release(){this.dispose()}resize(Y,ee){const ie=this._descriptor;if(ie.width!==Y||ie.height!==ee){if(this._wasImmutablyAllocated)throw new Error("Immutable textures can't be resized!");ie.width=Y,ie.height=ee,this._descriptor.target===$.No.TEXTURE_CUBE_MAP?this._setDataCubeMap(null):this.setData(null)}}_setDataCubeMap(Y=null){for(let ee=$.No.TEXTURE_CUBE_MAP_POSITIVE_X;ee<=$.No.TEXTURE_CUBE_MAP_NEGATIVE_Z;ee++)this._setData(Y,ee)}setData(Y){this._setData(Y)}_setData(Y,ee){if(!this._context||!this._context.gl)return;const ie=this._context.gl;this._glName||(this._glName=ie.createTexture()),void 0===Y&&(Y=null);const J=this._descriptor,ce=ee??J.target,ue=se(ce);null===Y&&(J.width=J.width||4,J.height=J.height||4,ue&&(J.depth=J.depth??1));const pe=this._context.bindTexture(this,X.TEXTURE_UNIT_FOR_UPDATES);this._context.setActiveTexture(X.TEXTURE_UNIT_FOR_UPDATES),X._validateTexture(this._context,J),this._configurePixelStorage(),(0,Z.zu)(ie);let me=J.internalFormat??this._deriveInternalFormat(J.pixelFormat,J.dataType);if(de(Y)){let ge=Y.width,_e=Y.height;const Ee=1;Y instanceof HTMLVideoElement&&(ge=Y.videoWidth,_e=Y.videoHeight),J.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(ce,me,J.hasMipmap,ge,_e,Ee),this._texImage(ce,0,me,ge,_e,Ee,Y),(0,Z.zu)(ie),J.hasMipmap&&this.generateMipmap(),void 0===J.width&&(J.width=ge),void 0===J.height&&(J.height=_e),ue&&void 0===J.depth&&(J.depth=Ee)}else{const{width:ge,height:_e,depth:Ee}=J;if(null==ge||null==_e)throw new Error("Width and height must be specified!");if(ue&&null==Ee)throw new Error("Depth must be specified!");if(J.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(ce,me,J.hasMipmap,ge,_e,Ee),ie.DEPTH24_STENCIL8&&me===ie.DEPTH_STENCIL&&(me=ie.DEPTH24_STENCIL8),oe(Y)){const De=Y.levels,be=re(ce,ge,_e,Ee),Se=Math.min(be-1,De.length-1);(0,W.Z)(ie)?ie.texParameteri(J.target,ie.TEXTURE_MAX_LEVEL,Se):J.hasMipmap=J.hasMipmap&&be===De.length;const ye=me;if(!function ae(j){return j in $.q_}(ye))throw new Error("Attempting to use compressed data with an umcompressed format!");this._forEachMipmapLevel((ve,xe,ze,Ke)=>{const We=De[Math.min(ve,De.length-1)];this._compressedTexImage(ce,ve,ye,xe,ze,Ke,We)},Se)}else(0,G.pC)(Y)?(this._texImage(ce,0,me,ge,_e,Ee,Y),(0,Z.zu)(ie),J.hasMipmap&&this.generateMipmap()):this._forEachMipmapLevel((De,be,Se,ye)=>{this._texImage(ce,De,me,be,Se,ye,null),(0,Z.zu)(ie)})}X._applySamplingMode(ie,this._descriptor),X._applyWrapMode(ie,this._descriptor),X._applyAnisotropicFilteringParameters(this._context,this._descriptor),(0,Z.zu)(ie),this._context.bindTexture(pe,X.TEXTURE_UNIT_FOR_UPDATES)}updateData(Y,ee,ie,J,ce,ue,pe=0){ue||console.error("An attempt to use uninitialized data!"),this._glName||console.error("An attempt to update uninitialized texture!");const he=this._context.gl,me=this._descriptor,{pixelFormat:ge,dataType:_e,target:Ee,isImmutable:De}=me,be=me.internalFormat??this._deriveInternalFormat(ge,_e);if(De&&!this._wasImmutablyAllocated)throw new Error("Cannot update immutable texture before allocation!");const Se=this._context.bindTexture(this,X.TEXTURE_UNIT_FOR_UPDATES,!0);if((ee<0||ie<0||J>me.width||ce>me.height||ee+J>me.width||ie+ce>me.height)&&console.error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage(),pe){if(!(0,W.Z)(he))return void console.error("Webgl2 must be enabled to use dataRowOffset!");he.pixelStorei(he.UNPACK_SKIP_ROWS,pe)}if(de(ue)?(0,W.Z)(he)?he.texSubImage2D(Ee,Y,ee,ie,J,ce,ge,_e,ue):he.texSubImage2D(Ee,Y,ee,ie,ge,_e,ue):oe(ue)?he.compressedTexSubImage2D(Ee,Y,ee,ie,J,ce,be,ue.levels[Y]):he.texSubImage2D(Ee,Y,ee,ie,J,ce,ge,_e,ue),pe){if(!(0,W.Z)(he))return void console.error("Webgl2 must be enabled to use dataRowOffset!");he.pixelStorei(he.UNPACK_SKIP_ROWS,0)}this._context.bindTexture(Se,X.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(Y,ee,ie,J,ce,ue,pe,he){he||console.error("An attempt to use uninitialized data!"),this._glName||console.error("An attempt to update uninitialized texture!");const me=this._context.gl;if(!(0,W.Z)(me))throw new Error("3D textures are not supported in WebGL1");const ge=this._descriptor,{pixelFormat:_e,dataType:Ee,isImmutable:De,target:be}=ge,Se=ge.internalFormat??this._deriveInternalFormat(_e,Ee);if(De&&!this._wasImmutablyAllocated)throw new Error("Cannot update immutable texture before allocation!");se(be)||console.warn("Attempting to set 3D texture data on a non-3D texture");const ye=this._context.bindTexture(this,X.TEXTURE_UNIT_FOR_UPDATES);this._context.setActiveTexture(X.TEXTURE_UNIT_FOR_UPDATES),(ee<0||ie<0||J<0||ce>ge.width||ue>ge.height||pe>ge.depth||ee+ce>ge.width||ie+ue>ge.height||J+pe>ge.depth)&&console.error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage(),oe(he)?me.compressedTexSubImage3D(be,Y,ee,ie,J,ce,ue,pe,Se,he=he.levels[Y]):me.texSubImage3D(be,Y,ee,ie,J,ce,ue,pe,_e,Ee,he),this._context.bindTexture(ye,X.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const Y=this._descriptor;if(!Y.hasMipmap){if(this._wasImmutablyAllocated)throw new Error("Cannot add mipmaps to immutable texture after allocation");Y.hasMipmap=!0,this._samplingModeDirty=!0,X._validateTexture(this._context,Y)}Y.samplingMode===$.cw.LINEAR?(this._samplingModeDirty=!0,Y.samplingMode=$.cw.LINEAR_MIPMAP_NEAREST):Y.samplingMode===$.cw.NEAREST&&(this._samplingModeDirty=!0,Y.samplingMode=$.cw.NEAREST_MIPMAP_NEAREST);const ee=this._context.bindTexture(this,X.TEXTURE_UNIT_FOR_UPDATES);this._context.setActiveTexture(X.TEXTURE_UNIT_FOR_UPDATES),this._context.gl.generateMipmap(Y.target),this._context.bindTexture(ee,X.TEXTURE_UNIT_FOR_UPDATES)}setSamplingMode(Y){Y!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=Y,this._samplingModeDirty=!0)}setWrapMode(Y){Y!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=Y,X._validateTexture(this._context,this._descriptor),this._wrapModeDirty=!0)}applyChanges(){const Y=this._context.gl,ee=this._descriptor;this._samplingModeDirty&&(X._applySamplingMode(Y,ee),this._samplingModeDirty=!1),this._wrapModeDirty&&(X._applyWrapMode(Y,ee),this._wrapModeDirty=!1)}_deriveInternalFormat(Y,ee){if(this._context.type===Q.zO.WEBGL1)return Y;switch(ee){case $.Br.FLOAT:switch(Y){case $.VI.RGBA:return $.lP.RGBA32F;case $.VI.RGB:return $.lP.RGB32F;default:throw new Error("Unable to derive format")}case $.Br.UNSIGNED_BYTE:switch(Y){case $.VI.RGBA:return $.lP.RGBA8;case $.VI.RGB:return $.lP.RGB8}default:return Y}}_configurePixelStorage(){const Y=this._context.gl,{unpackAlignment:ee,flipped:ie,preMultiplyAlpha:J}=this._descriptor;Y.pixelStorei(Y.UNPACK_ALIGNMENT,ee),Y.pixelStorei(Y.UNPACK_FLIP_Y_WEBGL,ie?1:0),Y.pixelStorei(Y.UNPACK_PREMULTIPLY_ALPHA_WEBGL,J?1:0)}_texStorage(Y,ee,ie,J,ce,ue){const pe=this._context.gl;if(!(0,W.Z)(pe))throw new Error("Immutable textures are not supported in WebGL1");if(!function te(j){return j in $.lP}(ee))throw new Error("Immutable textures must have a sized internal format");if(!this._descriptor.isImmutable)return;const he=ie?re(Y,J,ce,ue):1;if(se(Y)){if(null==ue)throw new Error("Missing depth dimension for 3D texture upload");pe.texStorage3D(Y,he,ee,J,ce,ue)}else pe.texStorage2D(Y,he,ee,J,ce);this._wasImmutablyAllocated=!0}_texImage(Y,ee,ie,J,ce,ue,pe){const he=this._context.gl;let me=null;const ge=this._context.type===Q.zO.WEBGL2,_e=se(Y),{isImmutable:Ee,pixelFormat:De,dataType:be}=this._descriptor;if(ge&&(me=he),ge||!de(pe))if(Ee){if((0,G.pC)(pe)){const Se=pe;if(_e){if(null==ue)throw new Error("Missing depth dimension for 3D texture upload");me.texSubImage3D(Y,ee,0,0,0,J,ce,ue,De,be,Se)}else he.texSubImage2D(Y,ee,0,0,J,ce,De,be,Se)}}else{const Se=(0,G.Wg)(pe);if(_e){if(null==ue)throw new Error("Missing depth dimension for 3D texture upload");me.texImage3D(Y,ee,ie,J,ce,ue,0,De,be,Se)}else he.texImage2D(Y,ee,ie,J,ce,0,De,be,Se)}else he.texImage2D(Y,0,ie,De,be,pe)}_compressedTexImage(Y,ee,ie,J,ce,ue,pe){const he=this._context.gl;let me=null;const ge=se(Y),_e=this._descriptor.isImmutable;if(ge){if(this._context.type!==Q.zO.WEBGL2)throw new Error("3D textures are not supported in WebGL1");me=he}if(_e){if((0,G.pC)(pe))if(ge){if(null==ue)throw new Error("Missing depth dimension for 3D texture upload");me.compressedTexSubImage3D(Y,ee,0,0,0,J,ce,ue,ie,pe)}else he.compressedTexSubImage2D(Y,ee,0,0,J,ce,ie,pe)}else if(ge){if(null==ue)throw new Error("Missing depth dimension for 3D texture upload");me.compressedTexImage3D(Y,ee,ie,J,ce,ue,0,pe)}else he.compressedTexImage2D(Y,ee,ie,J,ce,0,pe)}_forEachMipmapLevel(Y,ee=1/0){let{width:ie,height:J,depth:ce,hasMipmap:ue,target:pe}=this._descriptor;const he=pe===$.No.TEXTURE_3D;if(null==ie||null==J||he&&null==ce)throw new Error("Missing texture dimensions for mipmap calculation");for(let me=0;Y(me,ie,J,ce),ue&&(1!==ie||1!==J||he&&1!==ce)&&!(me>=ee);++me)ie=Math.max(1,ie>>1),J=Math.max(1,J>>1),he&&(ce=Math.max(1,ce>>1))}static _validateTexture(Y,ee){(null!=ee.width&&ee.width<0||null!=ee.height&&ee.height<0||null!=ee.depth&&ee.depth<0)&&console.error("Negative dimension parameters are not allowed!");const ie=(0,W.Z)(Y.gl),J=null!=ee.width&&(0,R.wt)(ee.width)&&null!=ee.height&&(0,R.wt)(ee.height);ie||!ee.isImmutable&&!se(ee.target)||console.error("Immutable and 3D-like textures are not supported in WebGL1!"),ie||J||("number"==typeof ee.wrapMode?ee.wrapMode!==$.e8.CLAMP_TO_EDGE&&console.error("Non-power-of-two textures must have a wrap mode of CLAMP_TO_EDGE!"):ee.wrapMode.s===$.e8.CLAMP_TO_EDGE&&ee.wrapMode.t===$.e8.CLAMP_TO_EDGE||console.error("Non-power-of-two textures must have a wrap mode of CLAMP_TO_EDGE!"),ee.hasMipmap&&console.error("Mipmapping requires power-of-two textures!"))}static _applySamplingMode(Y,ee){let ie=ee.samplingMode,J=ee.samplingMode;ie===$.cw.LINEAR_MIPMAP_NEAREST||ie===$.cw.LINEAR_MIPMAP_LINEAR?(ie=$.cw.LINEAR,ee.hasMipmap||(J=$.cw.LINEAR)):ie!==$.cw.NEAREST_MIPMAP_NEAREST&&ie!==$.cw.NEAREST_MIPMAP_LINEAR||(ie=$.cw.NEAREST,ee.hasMipmap||(J=$.cw.NEAREST)),Y.texParameteri(ee.target,Y.TEXTURE_MAG_FILTER,ie),Y.texParameteri(ee.target,Y.TEXTURE_MIN_FILTER,J)}static _applyWrapMode(Y,ee){"number"==typeof ee.wrapMode?(Y.texParameteri(ee.target,Y.TEXTURE_WRAP_S,ee.wrapMode),Y.texParameteri(ee.target,Y.TEXTURE_WRAP_T,ee.wrapMode)):(Y.texParameteri(ee.target,Y.TEXTURE_WRAP_S,ee.wrapMode.s),Y.texParameteri(ee.target,Y.TEXTURE_WRAP_T,ee.wrapMode.t))}static _applyAnisotropicFilteringParameters(Y,ee){const ie=Y.capabilities.textureFilterAnisotropic;!ie||Y.gl.texParameterf(ee.target,ie.TEXTURE_MAX_ANISOTROPY,ee.maxAnisotropy??1)}}function oe(j){return(0,G.pC)(j)&&"type"in j&&"compressed"===j.type}function de(j){return(0,G.pC)(j)&&!oe(j)&&!function le(j){return(0,G.pC)(j)&&"byteLength"in j}(j)}function se(j){return j===$.No.TEXTURE_3D||j===$.No.TEXTURE_2D_ARRAY}function re(j,Y,ee,ie=1){let J=Math.max(Y,ee);return j===$.No.TEXTURE_3D&&(J=Math.max(J,ie)),Math.round(Math.log(J)/Math.LN2)+1}X.TEXTURE_UNIT_FOR_UPDATES=0},26906:(nt,Ae,v)=>{"use strict";v.d(Ae,{HH:()=>Z,RG:()=>H,UF:()=>B,XP:()=>W,_V:()=>Q,un:()=>X}),v(8314);var R=v(62208),G=v(67969);function Z(te){const ae=te.gl;switch(ae.getError()){case ae.NO_ERROR:return null;case ae.INVALID_ENUM:return"An unacceptable value has been specified for an enumerated argument";case ae.INVALID_VALUE:return"A numeric argument is out of range";case ae.INVALID_OPERATION:return"The specified command is not allowed for the current state";case ae.INVALID_FRAMEBUFFER_OPERATION:return"The currently bound framebuffer is not framebuffer complete";case ae.OUT_OF_MEMORY:return"Not enough memory is left to execute the command";case ae.CONTEXT_LOST_WEBGL:return"WebGL context is lost"}return"Unknown error"}function Q(te,ae){return te.vertexBuffers[ae].size/function $(te){return te[0].stride}(te.layout[ae])}function W(te,ae,oe,le,de=0){const se=te.gl,re=te.capabilities.instancing;te.bindBuffer(oe);for(const j of le){const Y=ae.get(j.name);void 0===Y&&console.error(`There is no location for vertex attribute '${j.name}' defined.`);const ee=de*j.stride;if(j.count<=4)se.vertexAttribPointer(Y,j.count,j.type,j.normalized,j.stride,j.offset+ee),se.enableVertexAttribArray(Y),j.divisor>0&&re&&re.vertexAttribDivisor(Y,j.divisor);else if(9===j.count)for(let ie=0;ie<3;ie++)se.vertexAttribPointer(Y+ie,3,j.type,j.normalized,j.stride,j.offset+12*ie+ee),se.enableVertexAttribArray(Y+ie),j.divisor>0&&re&&re.vertexAttribDivisor(Y+ie,j.divisor);else if(16===j.count)for(let ie=0;ie<4;ie++)se.vertexAttribPointer(Y+ie,4,j.type,j.normalized,j.stride,j.offset+16*ie+ee),se.enableVertexAttribArray(Y+ie),j.divisor>0&&re&&re.vertexAttribDivisor(Y+ie,j.divisor);else console.error("Unsupported vertex attribute element count: "+j.count)}}function B(te,ae,oe,le){const de=te.gl,se=te.capabilities.instancing;te.bindBuffer(oe);for(const re of le){const j=ae.get(re.name);if(re.count<=4)de.disableVertexAttribArray(j),re.divisor&&re.divisor>0&&se&&se.vertexAttribDivisor(j,0);else if(9===re.count)for(let Y=0;Y<3;Y++)de.disableVertexAttribArray(j+Y),re.divisor&&re.divisor>0&&se&&se.vertexAttribDivisor(j+Y,0);else if(16===re.count)for(let Y=0;Y<4;Y++)de.disableVertexAttribArray(j+Y),re.divisor&&re.divisor>0&&se&&se.vertexAttribDivisor(j+Y,0);else console.error("Unsupported vertex attribute element count: "+re.count)}te.unbindBuffer(G.w0.ARRAY_BUFFER)}function H(te){switch(te){case G.VI.ALPHA:case G.VI.LUMINANCE:case G.VI.RED:case G.VI.RED_INTEGER:case G.lP.R8:case G.lP.R8I:case G.lP.R8UI:case G.lP.R8_SNORM:case G.Tg.STENCIL_INDEX8:return 1;case G.VI.LUMINANCE_ALPHA:case G.VI.RG:case G.VI.RG_INTEGER:case G.lP.RGBA4:case G.lP.R16F:case G.lP.R16I:case G.lP.R16UI:case G.lP.RG8:case G.lP.RG8I:case G.lP.RG8UI:case G.lP.RG8_SNORM:case G.lP.RGB565:case G.lP.RGB5_A1:case G.Tg.DEPTH_COMPONENT16:return 2;case G.VI.DEPTH_COMPONENT:case G.VI.RGB:case G.VI.RGB_INTEGER:case G.lP.RGB8:case G.lP.RGB8I:case G.lP.RGB8UI:case G.lP.RGB8_SNORM:case G.lP.SRGB8:case G.Tg.DEPTH_COMPONENT24:return 3;case G.VI.DEPTH_STENCIL:case G.VI.RGBA:case G.VI.RGBA_INTEGER:case G.lP.RGBA8:case G.lP.R32F:case G.lP.R11F_G11F_B10F:case G.lP.RG16F:case G.lP.R32I:case G.lP.R32UI:case G.lP.RG16I:case G.lP.RG16UI:case G.lP.RGBA8I:case G.lP.RGBA8UI:case G.lP.RGBA8_SNORM:case G.lP.SRGB8_ALPHA8:case G.lP.RGB9_E5:case G.lP.RGB10_A2UI:case G.lP.RGB10_A2:case G.Tg.DEPTH_STENCIL:case G.Tg.DEPTH_COMPONENT32F:case G.Tg.DEPTH24_STENCIL8:return 4;case G.Tg.DEPTH32F_STENCIL8:return 5;case G.lP.RGB16F:case G.lP.RGB16I:case G.lP.RGB16UI:return 6;case G.lP.RG32F:case G.lP.RG32I:case G.lP.RG32UI:case G.lP.RGBA16F:case G.lP.RGBA16I:case G.lP.RGBA16UI:return 8;case G.lP.RGB32F:case G.lP.RGB32I:case G.lP.RGB32UI:return 12;case G.lP.RGBA32F:case G.lP.RGBA32I:case G.lP.RGBA32UI:return 16;case G.q_.COMPRESSED_RGB_S3TC_DXT1_EXT:case G.q_.COMPRESSED_RGBA_S3TC_DXT1_EXT:return.5;case G.q_.COMPRESSED_RGBA_S3TC_DXT3_EXT:case G.q_.COMPRESSED_RGBA_S3TC_DXT5_EXT:return 1;case G.q_.COMPRESSED_R11_EAC:case G.q_.COMPRESSED_SIGNED_R11_EAC:case G.q_.COMPRESSED_RGB8_ETC2:case G.q_.COMPRESSED_SRGB8_ETC2:case G.q_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:case G.q_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:return.5;case G.q_.COMPRESSED_RG11_EAC:case G.q_.COMPRESSED_SIGNED_RG11_EAC:case G.q_.COMPRESSED_RGBA8_ETC2_EAC:case G.q_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:return 1}return 0}function X(te){if((0,R.Wi)(te))return 0;if("descriptor"in te)return te.glName?X(te.descriptor):0;const ae=te.internalFormat||"pixelFormat"in te&&te.pixelFormat;if(!ae)return 0;const oe="hasMipmap"in te&&te.hasMipmap?1.3:1,le=te.width*te.height;return H(ae)*le*oe}},49353:(nt,Ae,v)=>{"use strict";v.d(Ae,{U:()=>$});var D=v(63290),R=v(62208),G=v(67969),Z=v(26906);const Q=D.Z.getLogger("esri.views.webgl.VertexArrayObject");class ${constructor(B,H,X,te,ae=null){this._context=B,this._locations=H,this._layout=X,this._buffers=te,this._indexBuffer=ae,this._glName=null,this._initialized=!1,B.instanceCounter.increment(G._g.VertexArrayObject,this)}get glName(){return this._glName}get context(){return this._context}get vertexBuffers(){return this._buffers}get indexBuffer(){return this._indexBuffer}get size(){return Object.keys(this._buffers).reduce((B,H)=>B+this._buffers[H].size,(0,R.pC)(this._indexBuffer)?this._indexBuffer.size:0)}get layout(){return this._layout}get locations(){return this._locations}dispose(B=!0){if(this._context){if(this._glName){const H=this._context?.capabilities?.vao;H?(H.deleteVertexArray(this._glName),this._glName=null):Q.warn("Leaked WebGL VAO")}if(this._context.getBoundVAO()===this&&this._context.bindVAO(null),B){for(const H in this._buffers)this._buffers[H]?.dispose(),delete this._buffers[H];this._indexBuffer=(0,R.M2)(this._indexBuffer)}this._context.instanceCounter.decrement(G._g.VertexArrayObject,this),this._context=(0,R.wN)(this._context)}else(this._glName||B&&Object.getOwnPropertyNames(this._buffers).length>0)&&Q.warn("Leaked WebGL VAO")}initialize(){if(this._initialized)return;const B=this._context.capabilities.vao;if(B){const H=B.createVertexArray();B.bindVertexArray(H),this._bindLayout(),B.bindVertexArray(null),this._glName=H}this._initialized=!0}bind(){this.initialize();const B=this._context.capabilities.vao;B?B.bindVertexArray(this.glName):(this._context.bindVAO(null),this._bindLayout())}_bindLayout(){const{_buffers:B,_layout:H,_indexBuffer:X}=this;B||Q.error("Vertex buffer dictionary is empty!");const te=this._context.gl;for(const ae in B){const oe=B[ae];oe||Q.error("Vertex buffer is uninitialized!");const le=H[ae];le||Q.error("Vertex element descriptor is empty!"),(0,Z.XP)(this._context,this._locations,oe,le)}(0,R.pC)(X)&&(this._context.capabilities.vao?te.bindBuffer(te.ELEMENT_ARRAY_BUFFER,X.glName):this._context.bindBuffer(X))}unbind(){this.initialize();const B=this._context.capabilities.vao;B?B.bindVertexArray(null):this._unbindLayout()}_unbindLayout(){const{_buffers:B,_layout:H}=this;B||Q.error("Vertex buffer dictionary is empty!");for(const X in B){const te=B[X];te||Q.error("Vertex buffer is uninitialized!"),(0,Z.UF)(this._context,this._locations,te,H[X])}(0,R.pC)(this._indexBuffer)&&this._context.unbindBuffer(this._indexBuffer.bufferType)}}},40852:(nt,Ae,v)=>{"use strict";v.d(Ae,{G:()=>D});class D{constructor(G,Z,Q,$,W,B=!1,H=0){this.name=G,this.count=Z,this.type=Q,this.offset=$,this.stride=W,this.normalized=B,this.divisor=H}}},31637:(nt,Ae,v)=>{"use strict";v.d(Ae,{hc:()=>Q});var D=v(62208),R=v(57596);let G,Z;function Q(de){const se=(0,R.Sh)(de);for(;se.length>1;){const re=$(se.shift());if(re.available)return re}return $(se.shift())}function $(de){switch(de){case R.zO.WEBGL1:return function W(){return G||(G=function oe(){const de=new X,se=ae(R.zO.WEBGL1,de);return(0,D.Wi)(se)||(de.supportsElementIndexUint=null!==se.getExtension("OES_element_index_uint"),de.supportsStandardDerivatives=null!==se.getExtension("OES_standard_derivatives"),de.supportsInstancedArrays=null!==se.getExtension("ANGLE_instanced_arrays"),de.supportsTextureFloat=null!==se.getExtension("OES_texture_float"),de.supportsTextureHalfFloat=null!==se.getExtension("OES_texture_half_float"),de.supportsColorBufferFloat=null!==se.getExtension("WEBGL_color_buffer_float"),de.supportsColorBufferFloatBlend=null!==se.getExtension("EXT_float_blend"),de.supportsColorBufferHalfFloat=null!==se.getExtension("EXT_color_buffer_half_float")),de}()),G}();case R.zO.WEBGL2:return function B(){return Z||(Z=function le(){const de=new te,se=ae(R.zO.WEBGL2,de);return(0,D.Wi)(se)||(de.supportsColorBufferFloat=null!==se.getExtension("EXT_color_buffer_float"),de.supportsColorBufferFloatBlend=null!==se.getExtension("EXT_float_blend"),de.supportsColorBufferHalfFloat=de.supportsColorBufferFloat||null!==se.getExtension("EXT_color_buffer_half_float")),de}()),Z}()}}class H{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsElementIndexUint=!1,this.supportsStandardDerivatives=!1,this.supportsInstancedArrays=!1,this.supportsTextureFloat=!1,this.supportsTextureHalfFloat=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1}}class X extends H{constructor(){super(...arguments),this.type=R.zO.WEBGL1}}class te extends H{constructor(){super(...arguments),this.type=R.zO.WEBGL2,this.supportsElementIndexUint=!0,this.supportsStandardDerivatives=!0,this.supportsInstancedArrays=!0,this.supportsTextureFloat=!0,this.supportsTextureHalfFloat=!0}}function ae(de,se){if(de===R.zO.WEBGL1&&typeof WebGLRenderingContext>"u"||de===R.zO.WEBGL2&&typeof WebGL2RenderingContext>"u")return null;const re=document.createElement("canvas");if(!re)return null;let j=(0,R.kr)(re,de,{failIfMajorPerformanceCaveat:!0});if((0,D.Wi)(j)&&(j=(0,R.kr)(re,de),(0,D.pC)(j)&&(se.majorPerformanceCaveat=!0)),(0,D.Wi)(j))return j;if(de===R.zO.WEBGL1){const ee=j.getParameter(j.VERSION)?.match(/^WebGL\s+([\d.]*)/);if(ee){const ie=parseFloat(ee[1]);se.available=ie>=.94}}else se.available=!0;se.maxTextureSize=j.getParameter(j.MAX_TEXTURE_SIZE),se.supportsVertexShaderSamplers=j.getParameter(j.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const Y=j.getShaderPrecisionFormat(j.FRAGMENT_SHADER,j.HIGH_FLOAT);return Y&&(se.supportsHighPrecisionFragment=Y.precision>0),j}},38210:(nt,Ae,v)=>{"use strict";function D(R){return window.WebGL2RenderingContext&&R instanceof window.WebGL2RenderingContext}v.d(Ae,{Z:()=>D})},68598:(nt,Ae,v)=>{"use strict";v.d(Ae,{CG:()=>B,hZ:()=>W,zu:()=>H});var D=v(26584),R=v(8314);const Z=v(63290).Z.getLogger("esri.views.webgl.checkWebGLError"),$=!!(0,R.Z)("enable-feature:webgl-debug");function W(){return $}function B(){return $}function H(X){if(W()){const te=X.getError();if(te){const ae=function Q(X,te){switch(te){case X.INVALID_ENUM:return"Invalid Enum. An unacceptable value has been specified for an enumerated argument.";case X.INVALID_VALUE:return"Invalid Value. A numeric argument is out of range.";case X.INVALID_OPERATION:return"Invalid Operation. The specified command is not allowed for the current state.";case X.INVALID_FRAMEBUFFER_OPERATION:return"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.";case X.OUT_OF_MEMORY:return"Out of memory. Not enough memory is left to execute the command.";case X.CONTEXT_LOST_WEBGL:return"WebGL context has been lost";default:return"Unknown error"}}(X,te),oe=(new Error).stack;Z.error(new D.Z("webgl-error","WebGL error occured",{message:ae,stack:oe}))}}}},57596:(nt,Ae,v)=>{"use strict";v.d(Ae,{Sh:()=>Q,kr:()=>W,sj:()=>Z,zO:()=>G});var G,te,D=v(8314),R=v(62208);function Z(te,ae,oe={}){const le=Q(te);for(;le.length>1;){const de=W(ae,le.shift(),oe);if((0,R.pC)(de))return de}return function $(te,ae,oe={}){if(!window.WebGLRenderingContext)return B(te,H),null;const le=W(te,ae,oe);return(0,R.Wi)(le)&&B(te,X),le}(ae,le.shift(),oe)}function Q(te){const ae=(0,D.Z)("esri-force-webgl");if(ae===G.WEBGL1||ae===G.WEBGL2)return[ae];switch(te){case"2d":return(0,D.Z)("mac")&&(0,D.Z)("chrome")?[G.WEBGL1,G.WEBGL2]:[G.WEBGL2,G.WEBGL1];case"3d":return[G.WEBGL2,G.WEBGL1]}}function W(te,ae,oe={}){const le=ae===G.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];let de=null;for(const se of le){try{de=te.getContext(se,oe)}catch{}if(de)break}return de}function B(te,ae){const oe=te.parentNode;oe&&(oe.innerHTML='
    '+ae+"
    ")}(te=G||(G={}))[te.WEBGL1=1]="WEBGL1",te[te.WEBGL2=2]="WEBGL2";const H='This page requires a browser that supports WebGL.
    Click here to upgrade your browser.',X='It doesn\'t appear your computer can support WebGL.
    Click here for more information.'},2757:(nt,Ae,v)=>{"use strict";function D($,W,B){for(let H=0;HZ,LF:()=>D,U8:()=>G});const Q=new Float32Array(2)},67969:(nt,Ae,v)=>{"use strict";var D,R,G,Z,Q,$,W,B,H,X,te,ae,oe,le,de,se,re,j,Y,ee,ie,J,ye;v.d(Ae,{Br:()=>se,Ho:()=>Y,LR:()=>$,Ld:()=>ce,Lm:()=>ie,Lu:()=>he,MX:()=>R,No:()=>oe,OU:()=>J,Tg:()=>re,V7:()=>be,VI:()=>le,VY:()=>pe,Wf:()=>W,Y5:()=>De,_g:()=>ue,cw:()=>te,db:()=>Z,e8:()=>ae,g:()=>B,l1:()=>j,lP:()=>de,lk:()=>D,q_:()=>me,qi:()=>ee,w0:()=>Q,wb:()=>H,xS:()=>X,zi:()=>G}),(ye=D||(D={}))[ye.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",ye[ye.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",ye[ye.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",function(ye){ye[ye.POINTS=0]="POINTS",ye[ye.LINES=1]="LINES",ye[ye.LINE_LOOP=2]="LINE_LOOP",ye[ye.LINE_STRIP=3]="LINE_STRIP",ye[ye.TRIANGLES=4]="TRIANGLES",ye[ye.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",ye[ye.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(R||(R={})),function(ye){ye[ye.ZERO=0]="ZERO",ye[ye.ONE=1]="ONE",ye[ye.SRC_COLOR=768]="SRC_COLOR",ye[ye.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",ye[ye.SRC_ALPHA=770]="SRC_ALPHA",ye[ye.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",ye[ye.DST_ALPHA=772]="DST_ALPHA",ye[ye.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",ye[ye.DST_COLOR=774]="DST_COLOR",ye[ye.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",ye[ye.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",ye[ye.CONSTANT_COLOR=32769]="CONSTANT_COLOR",ye[ye.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",ye[ye.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",ye[ye.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(G||(G={})),function(ye){ye[ye.ADD=32774]="ADD",ye[ye.SUBTRACT=32778]="SUBTRACT",ye[ye.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(Z||(Z={})),function(ye){ye[ye.ARRAY_BUFFER=34962]="ARRAY_BUFFER",ye[ye.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",ye[ye.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",ye[ye.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",ye[ye.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",ye[ye.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",ye[ye.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(Q||(Q={})),function(ye){ye[ye.FRONT=1028]="FRONT",ye[ye.BACK=1029]="BACK",ye[ye.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}($||($={})),function(ye){ye[ye.CW=2304]="CW",ye[ye.CCW=2305]="CCW"}(W||(W={})),function(ye){ye[ye.BYTE=5120]="BYTE",ye[ye.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",ye[ye.SHORT=5122]="SHORT",ye[ye.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",ye[ye.INT=5124]="INT",ye[ye.UNSIGNED_INT=5125]="UNSIGNED_INT",ye[ye.FLOAT=5126]="FLOAT"}(B||(B={})),function(ye){ye[ye.NEVER=512]="NEVER",ye[ye.LESS=513]="LESS",ye[ye.EQUAL=514]="EQUAL",ye[ye.LEQUAL=515]="LEQUAL",ye[ye.GREATER=516]="GREATER",ye[ye.NOTEQUAL=517]="NOTEQUAL",ye[ye.GEQUAL=518]="GEQUAL",ye[ye.ALWAYS=519]="ALWAYS"}(H||(H={})),function(ye){ye[ye.ZERO=0]="ZERO",ye[ye.KEEP=7680]="KEEP",ye[ye.REPLACE=7681]="REPLACE",ye[ye.INCR=7682]="INCR",ye[ye.DECR=7683]="DECR",ye[ye.INVERT=5386]="INVERT",ye[ye.INCR_WRAP=34055]="INCR_WRAP",ye[ye.DECR_WRAP=34056]="DECR_WRAP"}(X||(X={})),function(ye){ye[ye.NEAREST=9728]="NEAREST",ye[ye.LINEAR=9729]="LINEAR",ye[ye.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",ye[ye.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",ye[ye.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",ye[ye.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(te||(te={})),function(ye){ye[ye.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",ye[ye.REPEAT=10497]="REPEAT",ye[ye.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(ae||(ae={})),function(ye){ye[ye.TEXTURE_2D=3553]="TEXTURE_2D",ye[ye.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",ye[ye.TEXTURE_3D=32879]="TEXTURE_3D",ye[ye.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",ye[ye.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",ye[ye.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",ye[ye.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",ye[ye.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",ye[ye.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",ye[ye.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(oe||(oe={})),function(ye){ye[ye.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",ye[ye.DEPTH_STENCIL=34041]="DEPTH_STENCIL",ye[ye.ALPHA=6406]="ALPHA",ye[ye.RGB=6407]="RGB",ye[ye.RGBA=6408]="RGBA",ye[ye.LUMINANCE=6409]="LUMINANCE",ye[ye.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",ye[ye.RED=6403]="RED",ye[ye.RG=33319]="RG",ye[ye.RED_INTEGER=36244]="RED_INTEGER",ye[ye.RG_INTEGER=33320]="RG_INTEGER",ye[ye.RGB_INTEGER=36248]="RGB_INTEGER",ye[ye.RGBA_INTEGER=36249]="RGBA_INTEGER"}(le||(le={})),function(ye){ye[ye.RGBA4=32854]="RGBA4",ye[ye.R16F=33325]="R16F",ye[ye.RG16F=33327]="RG16F",ye[ye.RGB32F=34837]="RGB32F",ye[ye.RGBA16F=34842]="RGBA16F",ye[ye.R32F=33326]="R32F",ye[ye.RG32F=33328]="RG32F",ye[ye.RGBA32F=34836]="RGBA32F",ye[ye.R11F_G11F_B10F=35898]="R11F_G11F_B10F",ye[ye.RGB8=32849]="RGB8",ye[ye.RGBA8=32856]="RGBA8",ye[ye.RGB5_A1=32855]="RGB5_A1",ye[ye.R8=33321]="R8",ye[ye.RG8=33323]="RG8",ye[ye.R8I=33329]="R8I",ye[ye.R8UI=33330]="R8UI",ye[ye.R16I=33331]="R16I",ye[ye.R16UI=33332]="R16UI",ye[ye.R32I=33333]="R32I",ye[ye.R32UI=33334]="R32UI",ye[ye.RG8I=33335]="RG8I",ye[ye.RG8UI=33336]="RG8UI",ye[ye.RG16I=33337]="RG16I",ye[ye.RG16UI=33338]="RG16UI",ye[ye.RG32I=33339]="RG32I",ye[ye.RG32UI=33340]="RG32UI",ye[ye.RGB16F=34843]="RGB16F",ye[ye.RGB9_E5=35901]="RGB9_E5",ye[ye.SRGB8=35905]="SRGB8",ye[ye.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",ye[ye.RGB565=36194]="RGB565",ye[ye.RGBA32UI=36208]="RGBA32UI",ye[ye.RGB32UI=36209]="RGB32UI",ye[ye.RGBA16UI=36214]="RGBA16UI",ye[ye.RGB16UI=36215]="RGB16UI",ye[ye.RGBA8UI=36220]="RGBA8UI",ye[ye.RGB8UI=36221]="RGB8UI",ye[ye.RGBA32I=36226]="RGBA32I",ye[ye.RGB32I=36227]="RGB32I",ye[ye.RGBA16I=36232]="RGBA16I",ye[ye.RGB16I=36233]="RGB16I",ye[ye.RGBA8I=36238]="RGBA8I",ye[ye.RGB8I=36239]="RGB8I",ye[ye.R8_SNORM=36756]="R8_SNORM",ye[ye.RG8_SNORM=36757]="RG8_SNORM",ye[ye.RGB8_SNORM=36758]="RGB8_SNORM",ye[ye.RGBA8_SNORM=36759]="RGBA8_SNORM",ye[ye.RGB10_A2=32857]="RGB10_A2",ye[ye.RGB10_A2UI=36975]="RGB10_A2UI"}(de||(de={})),function(ye){ye[ye.FLOAT=5126]="FLOAT",ye[ye.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",ye[ye.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",ye[ye.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",ye[ye.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",ye[ye.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",ye[ye.BYTE=5120]="BYTE",ye[ye.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",ye[ye.SHORT=5122]="SHORT",ye[ye.UNSIGNED_INT=5125]="UNSIGNED_INT",ye[ye.INT=5124]="INT",ye[ye.HALF_FLOAT=5131]="HALF_FLOAT",ye[ye.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",ye[ye.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",ye[ye.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",ye[ye.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(se||(se={})),function(ye){ye[ye.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",ye[ye.STENCIL_INDEX8=36168]="STENCIL_INDEX8",ye[ye.DEPTH_STENCIL=34041]="DEPTH_STENCIL",ye[ye.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",ye[ye.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",ye[ye.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",ye[ye.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(re||(re={})),function(ye){ye[ye.STATIC_DRAW=35044]="STATIC_DRAW",ye[ye.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",ye[ye.STREAM_DRAW=35040]="STREAM_DRAW",ye[ye.STATIC_READ=35045]="STATIC_READ",ye[ye.DYNAMIC_READ=35049]="DYNAMIC_READ",ye[ye.STREAM_READ=35041]="STREAM_READ",ye[ye.STATIC_COPY=35046]="STATIC_COPY",ye[ye.DYNAMIC_COPY=35050]="DYNAMIC_COPY",ye[ye.STREAM_COPY=35042]="STREAM_COPY"}(j||(j={})),function(ye){ye[ye.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",ye[ye.VERTEX_SHADER=35633]="VERTEX_SHADER"}(Y||(Y={})),function(ye){ye[ye.FRAMEBUFFER=36160]="FRAMEBUFFER",ye[ye.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",ye[ye.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(ee||(ee={})),function(ye){ye[ye.TEXTURE=0]="TEXTURE",ye[ye.RENDER_BUFFER=1]="RENDER_BUFFER",ye[ye.CUBEMAP=2]="CUBEMAP"}(ie||(ie={})),function(ye){ye[ye.NONE=0]="NONE",ye[ye.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",ye[ye.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",ye[ye.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",ye[ye.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(J||(J={}));const ce=33984;var ue,pe;(function(ye){ye[ye.Texture=0]="Texture",ye[ye.BufferObject=1]="BufferObject",ye[ye.VertexArrayObject=2]="VertexArrayObject",ye[ye.Shader=3]="Shader",ye[ye.Program=4]="Program",ye[ye.FramebufferObject=5]="FramebufferObject",ye[ye.Renderbuffer=6]="Renderbuffer",ye[ye.Sync=7]="Sync",ye[ye.COUNT=8]="COUNT"})(ue||(ue={})),function(ye){ye[ye.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",ye[ye.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",ye[ye.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",ye[ye.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",ye[ye.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",ye[ye.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",ye[ye.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",ye[ye.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",ye[ye.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",ye[ye.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",ye[ye.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",ye[ye.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",ye[ye.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",ye[ye.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",ye[ye.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",ye[ye.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(pe||(pe={}));const he=33306;var me,ge,_e,Ee,De,be,Se;(function(ye){ye[ye.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",ye[ye.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",ye[ye.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",ye[ye.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",ye[ye.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",ye[ye.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",ye[ye.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",ye[ye.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",ye[ye.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",ye[ye.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",ye[ye.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",ye[ye.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",ye[ye.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",ye[ye.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"})(me||(me={})),function(ye){ye[ye.FLOAT=5126]="FLOAT",ye[ye.FLOAT_VEC2=35664]="FLOAT_VEC2",ye[ye.FLOAT_VEC3=35665]="FLOAT_VEC3",ye[ye.FLOAT_VEC4=35666]="FLOAT_VEC4",ye[ye.INT=5124]="INT",ye[ye.INT_VEC2=35667]="INT_VEC2",ye[ye.INT_VEC3=35668]="INT_VEC3",ye[ye.INT_VEC4=35669]="INT_VEC4",ye[ye.BOOL=35670]="BOOL",ye[ye.BOOL_VEC2=35671]="BOOL_VEC2",ye[ye.BOOL_VEC3=35672]="BOOL_VEC3",ye[ye.BOOL_VEC4=35673]="BOOL_VEC4",ye[ye.FLOAT_MAT2=35674]="FLOAT_MAT2",ye[ye.FLOAT_MAT3=35675]="FLOAT_MAT3",ye[ye.FLOAT_MAT4=35676]="FLOAT_MAT4",ye[ye.SAMPLER_2D=35678]="SAMPLER_2D",ye[ye.SAMPLER_CUBE=35680]="SAMPLER_CUBE",ye[ye.UNSIGNED_INT=5125]="UNSIGNED_INT",ye[ye.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",ye[ye.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",ye[ye.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",ye[ye.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",ye[ye.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",ye[ye.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",ye[ye.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",ye[ye.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",ye[ye.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",ye[ye.SAMPLER_3D=35679]="SAMPLER_3D",ye[ye.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",ye[ye.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",ye[ye.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",ye[ye.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",ye[ye.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",ye[ye.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",ye[ye.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",ye[ye.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",ye[ye.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",ye[ye.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",ye[ye.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",ye[ye.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(ge||(ge={})),function(ye){ye[ye.OBJECT_TYPE=37138]="OBJECT_TYPE",ye[ye.SYNC_CONDITION=37139]="SYNC_CONDITION",ye[ye.SYNC_STATUS=37140]="SYNC_STATUS",ye[ye.SYNC_FLAGS=37141]="SYNC_FLAGS"}(_e||(_e={})),function(ye){ye[ye.UNSIGNALED=37144]="UNSIGNALED",ye[ye.SIGNALED=37145]="SIGNALED"}(Ee||(Ee={})),function(ye){ye[ye.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",ye[ye.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",ye[ye.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",ye[ye.WAIT_FAILED=37149]="WAIT_FAILED"}(De||(De={})),function(ye){ye[ye.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(be||(be={})),function(ye){ye[ye.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(Se||(Se={}))},2078:(nt,Ae,v)=>{"use strict";v.d(Ae,{BK:()=>H,LZ:()=>B,Rd:()=>Q,if:()=>G,jp:()=>We,sg:()=>$,sm:()=>j,wK:()=>Z,zp:()=>W});var D=v(42743),R=v(67969);function G(Ce,Be,Fe=R.db.ADD,je=[0,0,0,0]){return{srcRgb:Ce,srcAlpha:Ce,dstRgb:Be,dstAlpha:Be,opRgb:Fe,opAlpha:Fe,color:{r:je[0],g:je[1],b:je[2],a:je[3]}}}function Z(Ce,Be,Fe,je,Re=R.db.ADD,He=R.db.ADD,Ie=[0,0,0,0]){return{srcRgb:Ce,srcAlpha:Be,dstRgb:Fe,dstAlpha:je,opRgb:Re,opAlpha:He,color:{r:Ie[0],g:Ie[1],b:Ie[2],a:Ie[3]}}}const Q={face:R.LR.BACK,mode:R.Wf.CCW},$={face:R.LR.FRONT,mode:R.Wf.CCW},W=Ce=>Ce===D.Vr.Back?Q:Ce===D.Vr.Front?$:null,B={zNear:0,zFar:1},H={r:!0,g:!0,b:!0,a:!0};function X(Ce){return ie.intern(Ce)}function te(Ce){return ce.intern(Ce)}function ae(Ce){return pe.intern(Ce)}function oe(Ce){return me.intern(Ce)}function le(Ce){return _e.intern(Ce)}function de(Ce){return De.intern(Ce)}function se(Ce){return Se.intern(Ce)}function re(Ce){return ve.intern(Ce)}function j(Ce){return ze.intern(Ce)}class Y{constructor(Be,Fe){this._makeKey=Be,this._makeRef=Fe,this._interns=new Map}intern(Be){if(!Be)return null;const Fe=this._makeKey(Be),je=this._interns;return je.has(Fe)||je.set(Fe,this._makeRef(Be)),je.get(Fe)??null}}function ee(Ce){return"["+Ce.join(",")+"]"}const ie=new Y(J,Ce=>({__tag:"Blending",...Ce}));function J(Ce){return Ce?ee([Ce.srcRgb,Ce.srcAlpha,Ce.dstRgb,Ce.dstAlpha,Ce.opRgb,Ce.opAlpha,Ce.color.r,Ce.color.g,Ce.color.b,Ce.color.a]):null}const ce=new Y(ue,Ce=>({__tag:"Culling",...Ce}));function ue(Ce){return Ce?ee([Ce.face,Ce.mode]):null}const pe=new Y(he,Ce=>({__tag:"PolygonOffset",...Ce}));function he(Ce){return Ce?ee([Ce.factor,Ce.units]):null}const me=new Y(ge,Ce=>({__tag:"DepthTest",...Ce}));function ge(Ce){return Ce?ee([Ce.func]):null}const _e=new Y(Ee,Ce=>({__tag:"StencilTest",...Ce}));function Ee(Ce){return Ce?ee([Ce.function.func,Ce.function.ref,Ce.function.mask,Ce.operation.fail,Ce.operation.zFail,Ce.operation.zPass]):null}const De=new Y(be,Ce=>({__tag:"DepthWrite",...Ce}));function be(Ce){return Ce?ee([Ce.zNear,Ce.zFar]):null}const Se=new Y(ye,Ce=>({__tag:"ColorWrite",...Ce}));function ye(Ce){return Ce?ee([Ce.r,Ce.g,Ce.b,Ce.a]):null}const ve=new Y(xe,Ce=>({__tag:"StencilWrite",...Ce}));function xe(Ce){return Ce?ee([Ce.mask]):null}const ze=new Y(function Ke(Ce){return Ce?ee([J(Ce.blending),ue(Ce.culling),he(Ce.polygonOffset),ge(Ce.depthTest),Ee(Ce.stencilTest),be(Ce.depthWrite),ye(Ce.colorWrite),xe(Ce.stencilWrite)]):null},Ce=>({blending:X(Ce.blending),culling:te(Ce.culling),polygonOffset:ae(Ce.polygonOffset),depthTest:oe(Ce.depthTest),stencilTest:le(Ce.stencilTest),depthWrite:de(Ce.depthWrite),colorWrite:se(Ce.colorWrite),stencilWrite:re(Ce.stencilWrite)}));class We{constructor(Be){this._pipelineInvalid=!0,this._blendingInvalid=!0,this._cullingInvalid=!0,this._polygonOffsetInvalid=!0,this._depthTestInvalid=!0,this._stencilTestInvalid=!0,this._depthWriteInvalid=!0,this._colorWriteInvalid=!0,this._stencilWriteInvalid=!0,this._stateSetters=Be}setPipeline(Be){(this._pipelineInvalid||Be!==this._pipeline)&&(this._setBlending(Be.blending),this._setCulling(Be.culling),this._setPolygonOffset(Be.polygonOffset),this._setDepthTest(Be.depthTest),this._setStencilTest(Be.stencilTest),this._setDepthWrite(Be.depthWrite),this._setColorWrite(Be.colorWrite),this._setStencilWrite(Be.stencilWrite),this._pipeline=Be),this._pipelineInvalid=!1}invalidateBlending(){this._blendingInvalid=!0,this._pipelineInvalid=!0}invalidateCulling(){this._cullingInvalid=!0,this._pipelineInvalid=!0}invalidatePolygonOffset(){this._polygonOffsetInvalid=!0,this._pipelineInvalid=!0}invalidateDepthTest(){this._depthTestInvalid=!0,this._pipelineInvalid=!0}invalidateStencilTest(){this._stencilTestInvalid=!0,this._pipelineInvalid=!0}invalidateDepthWrite(){this._depthWriteInvalid=!0,this._pipelineInvalid=!0}invalidateColorWrite(){this._colorWriteInvalid=!0,this._pipelineInvalid=!0}invalidateStencilWrite(){this._stencilTestInvalid=!0,this._pipelineInvalid=!0}_setBlending(Be){this._blending=this._setSubState(Be,this._blending,this._blendingInvalid,this._stateSetters.setBlending),this._blendingInvalid=!1}_setCulling(Be){this._culling=this._setSubState(Be,this._culling,this._cullingInvalid,this._stateSetters.setCulling),this._cullingInvalid=!1}_setPolygonOffset(Be){this._polygonOffset=this._setSubState(Be,this._polygonOffset,this._polygonOffsetInvalid,this._stateSetters.setPolygonOffset),this._polygonOffsetInvalid=!1}_setDepthTest(Be){this._depthTest=this._setSubState(Be,this._depthTest,this._depthTestInvalid,this._stateSetters.setDepthTest),this._depthTestInvalid=!1}_setStencilTest(Be){this._stencilTest=this._setSubState(Be,this._stencilTest,this._stencilTestInvalid,this._stateSetters.setStencilTest),this._stencilTestInvalid=!1}_setDepthWrite(Be){this._depthWrite=this._setSubState(Be,this._depthWrite,this._depthWriteInvalid,this._stateSetters.setDepthWrite),this._depthWriteInvalid=!1}_setColorWrite(Be){this._colorWrite=this._setSubState(Be,this._colorWrite,this._colorWriteInvalid,this._stateSetters.setColorWrite),this._colorWriteInvalid=!1}_setStencilWrite(Be){this._stencilWrite=this._setSubState(Be,this._stencilWrite,this._stencilWriteInvalid,this._stateSetters.setStencilWrite),this._stencilTestInvalid=!1}_setSubState(Be,Fe,je,Re){return(je||Be!==Fe)&&(Re(Be),this._pipelineInvalid=!0),Be}}},92236:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>R,b:()=>G});var D=v(90912);function R(Z){const Q=(0,D.vU)(100*(1-Z));return Math.max(0,Math.min(Q,100))}function G(Z){return Math.max(0,Math.min(1-Z/100,1))}},32584:(nt,Ae,v)=>{"use strict";v.d(Ae,{Nw:()=>se});var D=v(26584),R=v(58817),G=v(62208),Z=v(94113),Q=v(23025),$=v(72469);const W=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),B=new Set(["csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","map-image","map-notes","ogc-feature","route","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function le(re,j){"maxScale"in re&&(j.maxScale=(0,Q.k)(re.maxScale)),"minScale"in re&&(j.minScale=(0,Q.k)(re.minScale))}function se(re,j,Y){if(!("write"in re)||!re.write)return Y&&Y.messages&&Y.messages.push(new D.Z("layer:unsupported",`Layers (${re.title}, ${re.id}) of type '${re.declaredClass}' cannot be persisted`,{layer:re})),null;if(function ae(re,j){if(j.restrictedWebMapWriting){const Y=function te(re){return"basemap"===re.layerContainerType?W:"operational-layers"===re.layerContainerType?B:null}(j);return!(0,G.pC)(Y)||Y.has(re.type)&&!(0,$.rQ)(re)}return!0}(re,Y)){const ee={};return re.write(ee,Y)?ee:null}return(0,G.pC)(j)&&function de(re,j){if(function oe(re,j){if((0,$.rQ)(re)){const Y=(0,Z.hS)("featureCollection.layers",j),ee=Y&&Y[0]&&Y[0].layerDefinition;ee&&le(re,ee)}else"stream"===re.type?le(re,j.layerDefinition=j.layerDefinition||{}):"group"!==re.type&&le(re,j)}(re,j),"blendMode"in re&&(j.blendMode=re.blendMode,"normal"===j.blendMode&&delete j.blendMode),j.opacity=(0,Q.k)(re.opacity),j.title=re.title||"Layer",j.visibility=re.visible,"legendEnabled"in re&&"wmts"!==re.type)if((0,$.rQ)(re)){const Y=j.featureCollection;Y&&(Y.showLegend=re.legendEnabled)}else j.showLegend=re.legendEnabled}(re,j=(0,R.d9)(j)),j}},40915:(nt,Ae,v)=>{"use strict";v.d(Ae,{Z:()=>Je});var D=v(15861),R=v(17626),Z=(v(52515),v(40764)),Q=v(61885),$=v(17770),W=v(72392),H=(v(8314),v(58817)),X=v(63290),te=v(62208),ae=v(60330),oe=v(10699),le=v(32917),de=v(35948),se=v(77712),re=v(66656),j=v(76898),Y=v(36082),ee=v(819),ie=v(39605);v(62996);const ce={handleInterceptedEvent:(rt,tt,et,qe)=>(rt.scheduleRender(),tt.properties[`on${qe.type}`].apply(tt.properties.bind||et,[qe]))},ue={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(rt,tt,et)=>{rt.style[tt]=et}},ge=(rt,tt,et=!1)=>{let qe=rt;return tt.forEach((ot,ut)=>{const _t=qe?.children?((rt,tt)=>rt.find(Ct=>Ct.domNode===ot))(qe.children):void 0;et&&!_t&&ut!==tt.length-1||(qe=_t)}),qe};var Ee=v(76210),De=v(46203);function be(){const{classList:rt}=document.body,tt=window.matchMedia("(prefers-color-scheme: dark)").matches,et=()=>rt.contains(De.d)||rt.contains(De.a)&&tt?"dark":"light",qe=_t=>document.body.dispatchEvent(new CustomEvent("calciteThemeChange",{bubbles:!0,detail:{theme:_t}})),ot=_t=>{ut!==_t&&qe(_t),ut=_t};let ut=et();qe(ut),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",_t=>ot(_t.matches?"dark":"light")),new MutationObserver(()=>ot(et())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}!function Se(){typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document&&("interactive"===document.readyState?be():document.addEventListener("DOMContentLoaded",()=>be(),{once:!0}))}();var ve=v(54346),xe=v(21726);let ze;ze="components/assets";var We=v(81431);const Ce=new Set;var je=v(66950),Re=v(38570),He=v(56683),Ie=v(41840);let Pe=0;function Me(rt,tt){for(const et in tt)null!=rt[et]&&("object"==typeof rt[et]&&"object"==typeof tt[et]?Me(rt[et],tt?.[et]):rt[et]=tt[et]);return rt}const Ne=(rt=>{let tt;const et={...ce,...rt},qe=(rt=>({...ue,...rt}))(et),ot=qe.performanceLogger;let ut,_t=!0,Ct=!1;const vt=[],Lt=[],jt=(Wt,pr,gr)=>{let ar;qe.eventHandlerInterceptor=(mr,wt,or,sr)=>function(rr){let Et;ot("domEvent",rr);const St=((rt,tt)=>{const et=[];for(;rt&&rt!==tt;)et.push(rt),rt=rt.parentNode;return et})(rr.currentTarget,ar.domNode),Ft=St.some(dr=>customElements.get(dr?.tagName?.toLowerCase()));if(rr.eventPhase!==Event.CAPTURING_PHASE&&Ft){const dr=rr.composedPath(),hr=dr.slice(dr.indexOf(rr.currentTarget),dr.indexOf(ar.domNode)).filter(Tr=>Tr.getRootNode()===Tr.ownerDocument).reverse();Et=ge(ar.getLastRender(),hr,!0)}else St.reverse(),Et=ge(ar.getLastRender(),St);let zt;return Et&&(zt=et.handleInterceptedEvent(tt,Et,this,rr)),ot("domEventProcessed",rr),zt},et.postProcessProjectionOptions?.(qe);const Fr=gr();ar=Wt(pr,Fr,qe),vt.push(ar),Lt.push(gr),et.afterFirstVNodeRendered&&et.afterFirstVNodeRendered(ar,Fr)};let $t=()=>{if(ut=void 0,_t){_t=!1,ot("renderStart",void 0);for(let Wt=0;Wt{ut||Ct||(ut=requestAnimationFrame($t))},stop:()=>{ut&&(cancelAnimationFrame(ut),ut=void 0),Ct=!0},resume:()=>{Ct=!1,_t=!0,tt.scheduleRender()},append:(Wt,pr)=>{jt(ie.v.append,Wt,pr)},insertBefore:(Wt,pr)=>{jt(ie.v.insertBefore,Wt,pr)},merge:(Wt,pr)=>{jt(ie.v.merge,Wt,pr)},replace:(Wt,pr)=>{jt(ie.v.replace,Wt,pr)},detach:Wt=>{for(let pr=0;pr{const Ct=tt?.(qe,ot,ut,_t),vt=et.test(qe);if(!((qe=qe.replace(et,"")).toLowerCase()in ut)||vt){const Lt=qe[2].toLowerCase()+qe.slice(3),jt=pr=>Ct?.call(ut,pr);ut.addEventListener(Lt,jt,vt);const $t=()=>ut.removeEventListener(Lt,jt,vt),Wt=_t.afterRemoved;_t.afterRemoved=pr=>{Wt?.(pr),$t()}}return Ct}},handleInterceptedEvent(rt,tt,et,qe){const{eventPhase:ot,type:ut}=qe,_t=ot===Event.CAPTURING_PHASE;let Ct=`on${ut}${_t?"capture":""}`;const vt=tt.properties;(vt&&Ct in vt||(Ct=`on${ut[0].toUpperCase()}${ut.slice(1)}${_t?"Capture":""}`,vt&&Ct in vt))&&((0,je.Uy)(),rt.scheduleRender(),vt[Ct].call(vt.bind||et,qe))}});let Xe=!1,Ye=class extends((0,ae.v)(Q.Z.EventedAccessor)){constructor(rt,tt){var et;super(rt,tt),et=this,this._attached=!1,this._internalHandles=new W.Z,this._projector=Ne,this._readyForTrueRender=!1,this.iconClass="esri-icon-checkbox-unchecked",this.key=this,this._loadLocale=(0,oe.Ds)((0,D.Z)(function*(){if(et._messageBundleProps&&et._messageBundleProps.length){const _t=yield(0,oe.as)(et._messageBundleProps.map(function(){var Ct=(0,D.Z)(function*({bundlePath:vt,propertyName:Lt}){let jt=yield(0,Ie.ME)(vt);et.uiStrings&&Object.keys(et.uiStrings)&&(jt=Me((0,H.d9)(jt),et.uiStrings)),et[Lt]=jt});return function(vt){return Ct.apply(this,arguments)}}()));for(const Ct of _t)Ct.error&&X.Z.getLogger(et.declaredClass).error("widget-intl:locale-error",et.declaredClass,Ct.error)}yield et.loadLocale()})),function Ke(){(0,Ee.YY)((0,xe.hF)((0,ve.V)("components/assets")))}();const qe="esri-widget-uid-"+(0,de.D)(),ot=this.render.bind(this);this._trackingTarget=new ee.M(()=>this.scheduleRender());const ut=()=>{if(!this._readyForTrueRender||this.destroyed)return null;if(!this.visible)return{vnodeSelector:"div",properties:{key:qe,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0};const _t=ot();let{properties:Ct}=_t;Ct||(_t.properties=Ct={});let{key:vt,styles:Lt}=Ct;vt||(Ct.key=qe),Lt||(Ct.styles=Lt={}),Lt.display||(Lt.display="");let jt=0;return _t.children?.forEach($t=>{if((0,We.ZJ)($t.vnodeSelector))return;let{properties:Wt}=$t;Wt||($t.properties=Wt={}),Wt.key||(Wt.key=`${this.id}--${jt++}`)}),(0,We.dh)(this,_t)};this.render=()=>{if(Xe)return ut();let _t=(0,je.O9)(this)??null;if(_t)return _t;this._trackingTarget.clear(),Xe=!0;try{_t=(0,Y.LJ)(this._trackingTarget,ut)}catch(Ct){throw console.error(Ct),Ct}finally{Xe=!1}return _t&&(0,je.KF)(this,_t),_t},this.addResolvingPromise(this._resourcesFetch=this.beforeFirstRender().then(()=>{this._readyForTrueRender=!0,this._postInitialize()})),function Be(rt){Ce.add(rt),rt.finally(()=>Ce.delete(rt))}(this._resourcesFetch)}normalizeCtorArgs(rt,tt){const et={...rt};return tt&&(et.container=tt),et}postInitialize(){}beforeFirstRender(){return Promise.all([this.loadDependencies(),this._loadLocale()]).then(()=>{}).catch(oe.H9)}loadDependencies(){return(0,D.Z)(function*(){})()}loadLocale(){return(0,D.Z)(function*(){})()}destroy(){this.destroyed||((0,te.SC)(this._trackingTarget),(0,te.SC)(this.viewModel),this._detach(this.container),this._set("container",null),this._internalHandles.destroy(),this._emitter.clear(),this.render=()=>null,this._projector=null,(0,je.w7)(this))}set container(rt){this._get("container")||this._set("container",rt)}castContainer(rt){return(0,Z.L7)(rt)}get domNode(){return this.container}set domNode(rt){this.container=rt}get id(){return this._get("id")||this.get("container.id")||Date.now().toString(16)+"-widget-"+Pe++}set id(rt){rt&&this._set("id",rt)}get label(){return this.declaredClass.split(".").pop()}set label(rt){this._overrideIfSome("label",rt)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(rt){this._set("visible",rt)}get test(){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||((0,je.w7)(this),this._projector.scheduleRender())}classes(...rt){return Re.Sh.apply(this,rt)}renderNow(){(0,je.w7)(this),this._projector.renderNow()}_postInitialize(){var rt=this;if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this._internalHandles.add((0,le.YP)(()=>this.viewModel,(et,qe)=>{qe&&this._internalHandles.remove("delegated-events"),et&&(0,$.vT)(et)&&this._internalHandles.add(this._delegatedEventNames.map(ot=>(0,$.on)(et,ot,ut=>{this.emit(ot,ut)})),"delegated-events")},le.nn)),this.postInitialize();const tt=function(){var et=(0,D.Z)(function*(){yield rt._loadLocale().catch(oe.H9),rt.scheduleRender()});return function(){return et.apply(this,arguments)}}();this._internalHandles.add([(0,He.qe)(tt),(0,le.YP)(()=>this.uiStrings,tt),(0,le.gx)(()=>this.container,et=>{this.destroyed||this._attach(et)},{initial:!0,once:!0})])}_attach(rt){rt&&(this._projector.merge(rt,this.render),this._attached=!0)}_detach(rt){this._attached&&(this._projector.detach(this.render),this._attached=!1),rt?.parentNode?.removeChild(rt)}};Ye[We.$X]=!0,(0,R._)([(0,se.Cb)()],Ye.prototype,"_readyForTrueRender",void 0),(0,R._)([(0,se.Cb)({value:null})],Ye.prototype,"container",null),(0,R._)([(0,re.p)("container")],Ye.prototype,"castContainer",null),(0,R._)([(0,se.Cb)()],Ye.prototype,"domNode",null),(0,R._)([(0,se.Cb)()],Ye.prototype,"iconClass",void 0),(0,R._)([(0,se.Cb)()],Ye.prototype,"id",null),(0,R._)([(0,se.Cb)()],Ye.prototype,"label",null),(0,R._)([(0,se.Cb)()],Ye.prototype,"renderable",null),(0,R._)([(0,se.Cb)()],Ye.prototype,"uiStrings",void 0),(0,R._)([(0,se.Cb)()],Ye.prototype,"viewModel",void 0),(0,R._)([(0,se.Cb)({value:!0})],Ye.prototype,"visible",null),(0,R._)([(0,se.Cb)()],Ye.prototype,"key",void 0),(0,R._)([(0,se.Cb)()],Ye.prototype,"children",void 0),(0,R._)([(0,se.Cb)()],Ye.prototype,"afterCreate",void 0),(0,R._)([(0,se.Cb)()],Ye.prototype,"afterUpdate",void 0),(0,R._)([(0,se.Cb)()],Ye.prototype,"afterRemoved",void 0),Ye=(0,R._)([(0,j.j)("esri.widgets.Widget")],Ye);const Je=Ye},24940:(nt,Ae,v)=>{"use strict";v.d(Ae,{h:()=>R});var D=v(38570);function R(){return function(Q,$){if(!Q[$])throw new TypeError(`Cannot auto bind undefined function '${$}'`);return{value:Z(Q[$])}}}function Z(Q){return function($,...W){!function G(Q){const{type:$}=Q;return Q instanceof KeyboardEvent||"keyup"===$||"keydown"===$||"keypress"===$}($)?Q.call(this,$,...W):(0,D.pf)($.key)&&($.preventDefault(),$.stopPropagation(),$.target.click())}}},25552:(nt,Ae,v)=>{"use strict";function D(R){return(G,Z)=>{G.hasOwnProperty("_messageBundleProps")||(G._messageBundleProps=G._messageBundleProps?G._messageBundleProps.slice():[]),G._messageBundleProps.push({bundlePath:R,propertyName:Z})}}v.d(Ae,{H:()=>D})},94450:(nt,Ae,v)=>{"use strict";v.d(Ae,{u:()=>Q});var D=v(81431),R=function(W){return{vnodeSelector:"",properties:void 0,children:void 0,text:W.toString(),domNode:null}},G=function(W,B){for(var H=0,X=W.length;H{"use strict";v.d(Ae,{$X:()=>R,ZJ:()=>X,dh:()=>$});var D=v(54024);const R=Symbol("widget"),G=[],Z={},Q=new WeakMap;function $(te,ae){let oe=ae.children;if(oe&&oe.length)for(let de=0;deH(te)))}function B(te,ae,oe,{widgetProperties:le}){const de=Q.get(te);de&&(de.set(le),de.afterUpdate?.(de,te))}function H(te){const ae=Q.get(te);ae&&(ae.destroy(),Q.delete(te))}function X(te){return"function"==typeof te&&te[R]}},66950:(nt,Ae,v)=>{"use strict";v.d(Ae,{KF:()=>Z,O9:()=>G,Uy:()=>R,w7:()=>Q});const D=new Map;function R(){D.clear()}function G($){return D.get($)}function Z($,W){D.set($,W)}function Q($){D.delete($)}},25469:(nt,Ae,v)=>{"use strict";function Z($){return $&&"function"==typeof $.render}function Q($){return $&&"function"==typeof $.postMixInProperties&&"function"==typeof $.buildRendering&&"function"==typeof $.postCreate&&"function"==typeof $.startup}v.d(Ae,{Qd:()=>Z,o:()=>Q}),v(24940),v(94450),v(38570)},38570:(nt,Ae,v)=>{"use strict";v.d(Ae,{Sh:()=>Dt,vU:()=>Or,pV:()=>tr,pf:()=>fs,dZ:()=>At,w3:()=>Ir,Yo:()=>_r});var R={exports:{}},G={},Z={exports:{}},Q={};function $(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var H=/javascript\s*\:/gim;Q.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},Q.getDefaultWhiteList=$,Q.onAttr=function W(at,bt,gt){},Q.onIgnoreAttr=function B(at,bt,gt){},Q.safeAttrValue=function X(at,bt){return H.test(bt)?"":bt};var ae_trim=function(at){return String.prototype.trim?at.trim():at.replace(/(^\s*)|(\s*$)/g,"")},ae_trimRight=function(at){return String.prototype.trimRight?at.trimRight():at.replace(/(\s*$)/g,"")},de=Q;function re(at){return null==at}function Y(at){(at=function j(at){var bt={};for(var gt in at)bt[gt]=at[gt];return bt}(at||{})).whiteList=at.whiteList||de.whiteList,at.onAttr=at.onAttr||de.onAttr,at.onIgnoreAttr=at.onIgnoreAttr||de.onIgnoreAttr,at.safeAttrValue=at.safeAttrValue||de.safeAttrValue,this.options=at}Y.prototype.process=function(at){if(!(at=(at=at||"").toString()))return"";var gt=this.options,Gt=gt.whiteList,fr=gt.onAttr,Ar=gt.onIgnoreAttr,us=gt.safeAttrValue;return function oe(at,bt){";"!==(at=ae_trimRight(at))[at.length-1]&&(at+=";");var gt=at.length,Gt=!1,fr=0,Ar=0,us="";function as(){if(!Gt){var xs=ae_trim(at.slice(fr,Ar)),Ws=xs.indexOf(":");if(-1!==Ws){var yi=ae_trim(xs.slice(0,Ws)),hn=ae_trim(xs.slice(Ws+1));if(yi){var oi=bt(fr,us.length,yi,hn,xs);oi&&(us+=oi+"; ")}}}fr=Ar+1}for(;Ar/g,ve=/"/g,xe=/"/g,ze=/&#([a-zA-Z0-9]*);?/gim,Ke=/:?/gim,We=/&newline;?/gim,Ce=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Be=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Fe=/u\s*r\s*l\s*\(.*/gi;function je(at){return at.replace(ve,""")}function Re(at){return at.replace(xe,'"')}function He(at){return at.replace(ze,function(gt,Gt){return String.fromCharCode("x"===Gt[0]||"X"===Gt[0]?parseInt(Gt.substr(1),16):parseInt(Gt,10))})}function Ie(at){return at.replace(Ke,":").replace(We," ")}function Ge(at){for(var bt="",gt=0,Gt=at.length;gt0;bt--){var gt=at[bt];if(" "!==gt)return"="===gt?bt:-1}}function jt(at){return function Lt(at){return'"'===at[0]&&'"'===at[at.length-1]||"'"===at[0]&&"'"===at[at.length-1]}(at)?at.substr(1,at.length-2):at}Je.parseTag=function qe(at,bt,gt){var Gt="",fr=0,Ar=!1,us=!1,as=0,Ps=at.length,Fs="",xs="";e:for(as=0;as"===Ws){Gt+=gt(at.slice(fr,Ar)),Fs=tt(xs=at.slice(Ar,as+1)),Gt+=bt(Ar,Gt.length,Fs,xs,et(xs)),fr=as+1,Ar=!1;continue}if('"'===Ws||"'"===Ws)for(var yi=1,hn=at.charAt(as-yi);""===hn.trim()||"="===hn;){if("="===hn){us=Ws;continue e}hn=at.charAt(as-++yi)}}else if(Ws===us){us=!1;continue}}return fr";var qi=function wt(at){var bt=Fr.spaceIndex(at);if(-1===bt)return{html:"",closing:"/"===at[at.length-2]};var gt="/"===(at=Fr.trim(at.slice(bt+1,-1)))[at.length-1];return gt&&(at=Fr.trim(at.slice(0,-1))),{html:at,closing:gt}}(pn),jr=Gt[kn],Gi=ar(qi.html,function(ui,zn){var kt=-1!==Fr.indexOf(jr,ui),Qt=us(kn,ui,zn,kt);return mr(Qt)?kt?(zn=Ps(kn,ui,zn,xs))?ui+'="'+zn+'"':ui:mr(Qt=as(kn,ui,zn,kt))?void 0:Qt:Qt});return pn="<"+kn,Gi&&(pn+=" "+Gi),qi.closing&&(pn+=" /"),pn+">"}return mr(Yo=Ar(kn,pn,yo))?Fs(pn):Yo},Fs);return Ws&&(yi=Ws.remove(yi)),yi};var Et=rr;!function(at,bt){var gt=G,Gt=Je,fr=Et;function Ar(as,Ps){return new fr(Ps).process(as)}(bt=at.exports=Ar).filterXSS=Ar,bt.FilterXSS=fr,function(){for(var as in gt)bt[as]=gt[as];for(var Ps in Gt)bt[Ps]=Gt[Ps]}(),function us(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=at.exports)}(R,R.exports);var Dr,Lr,St=function(){function at(bt,gt){var fr,Gt=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],ol:[],p:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(Ar,us,as,Ps){return"a"===Ar&&"href"===us||("img"===Ar||"source"===Ar)&&"src"===us?Gt.sanitizeUrl(as):R.exports.safeAttrValue(Ar,us,as,Ps)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"},bt&&!gt?fr=bt:bt&>?(fr=Object.create(this.arcgisFilterOptions),Object.keys(bt).forEach(function(Ar){"whiteList"===Ar?fr.whiteList=Gt._extendObjectOfArrays([Gt.arcgisWhiteList,bt.whiteList||{}]):fr[Ar]=bt[Ar]})):(fr=Object.create(this.arcgisFilterOptions)).whiteList=this.arcgisWhiteList,this.xssFilterOptions=fr,this._xssFilter=new R.exports.FilterXSS(fr)}return at.prototype.sanitize=function(bt,gt){switch(void 0===gt&&(gt={}),typeof bt){case"number":return isNaN(bt)||!isFinite(bt)?null:bt;case"boolean":return bt;case"string":return this._xssFilter.process(bt);case"object":return this._iterateOverObject(bt,gt);default:return gt.allowUndefined&&typeof bt>"u"?void 0:null}},at.prototype.sanitizeUrl=function(bt,gt){var Gt=(gt??{}).isProtocolRequired,fr=void 0===Gt||Gt,Ar=this._trim(bt.substring(0,bt.indexOf(":"))),us="/"===bt,as=/^#/.test(bt),Ps=Ar&&this.allowedProtocols.indexOf(Ar.toLowerCase())>-1;return us||as||Ps?R.exports.escapeAttrValue(bt):Ar||fr?"":R.exports.escapeAttrValue("https://".concat(bt))},at.prototype.sanitizeHTMLAttribute=function(bt,gt,Gt,fr){return"function"==typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(bt,gt,Gt,fr):R.exports.safeAttrValue(bt,gt,Gt,fr)},at.prototype.validate=function(bt,gt){void 0===gt&&(gt={});var Gt=this.sanitize(bt,gt);return{isValid:bt===Gt,sanitized:Gt}},at.prototype.encodeHTML=function(bt){var gt=this;return String(bt).replace(/[&<>"'\/]/g,function(Gt){return gt._entityMap[Gt]})},at.prototype.encodeAttrValue=function(bt){var gt=/^[a-zA-Z0-9]$/;return String(bt).replace(/[\x00-\xFF]/g,function(Gt,fr){return gt.test(Gt)?Gt:"&#x".concat(Number(bt.charCodeAt(fr)).toString(16),";")})},at.prototype._extendObjectOfArrays=function(bt){var gt={};return bt.forEach(function(Gt){Object.keys(Gt).forEach(function(fr){gt[fr]=Array.isArray(Gt[fr])&&Array.isArray(gt[fr])?gt[fr].concat(Gt[fr]):Gt[fr]})}),gt},at.prototype._iterateOverObject=function(bt,gt){var Gt=this;void 0===gt&&(gt={});try{var fr=!1,Ar=void 0;if(Array.isArray(bt))Ar=bt.reduce(function(as,Ps){var Fs=Gt.validate(Ps,gt);return Fs.isValid?as.concat([Ps]):(fr=!0,as.concat([Fs.sanitized]))},[]);else{if(!function(at){if("object"!=typeof at||null===at||"[object Object]"!==Object.prototype.toString.call(at))return!1;var bt=Object.getPrototypeOf(at);if(null===bt)return!0;for(;null!==Object.getPrototypeOf(bt);)bt=Object.getPrototypeOf(bt);return Object.getPrototypeOf(at)===bt}(bt))return gt.allowUndefined&&typeof bt>"u"?void 0:null;Ar=Object.keys(bt).reduce(function(as,Ps){var Fs=bt[Ps],xs=Gt.validate(Fs,gt);return xs.isValid?as[Ps]=Fs:(fr=!0,as[Ps]=xs.sanitized),as},{})}return fr?Ar:bt}catch{return null}},at.prototype._trim=function(bt){return String.prototype.trim?bt.trim():bt.replace(/(^\s*)|(\s*$)/g,"")},at}(),Ft=v(35575),hr=(v(54024),v(8314),v(63290)),Tr=v(66950),Qr=function(at){Dr||function(at){if("WebkitTransition"in at.style)Dr="webkitTransitionEnd",Lr="webkitAnimationEnd";else{if(!("transition"in at.style))throw new Error("Your browser is not supported!");Dr="transitionend",Lr="animationend"}}(at)},Jr=function(at,bt){return void 0===bt&&(bt=at+"-active"),function(gt){Qr(gt);var Gt=!1,fr=function(Ar){Gt||(Gt=!0,gt.removeEventListener(Dr,fr),gt.removeEventListener(Lr,fr),gt.classList.remove(at),gt.classList.remove(bt))};gt.classList.add(at),gt.addEventListener(Dr,fr),gt.addEventListener(Lr,fr),requestAnimationFrame(function(){gt.classList.add(bt)})}},Ss=function(at,bt){return void 0===bt&&(bt=at+"-active"),function(gt,Gt){Qr(gt);var fr=!1,Ar=function(us){fr||(fr=!0,gt.removeEventListener(Dr,Ar),gt.removeEventListener(Lr,Ar),Gt())};gt.classList.add(at),gt.addEventListener(Dr,Ar),gt.addEventListener(Lr,Ar),requestAnimationFrame(function(){gt.classList.add(bt)})}};hr.Z.getLogger("esri.widgets.support.widgetUtils");function Dt(at){const bt=Ft.Z.acquire();for(let Gt=0;Gt{const at=new Map;new ResizeObserver(gt=>{(0,Tr.Uy)();for(const Gt of gt)at.get(Gt.target)?.(Gt)})})();const Kr=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((at,bt)=>(at[bt]=[],at),{}),qt=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],Ir=new St({whiteList:Kr,onTagAttr:(at,bt,gt)=>{const Gt=`${bt}="${gt}"`;if(qt.includes(bt))return Gt},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);function fs(at){return"Enter"===at||" "===at}},46203:(nt,Ae,v)=>{"use strict";v.d(Ae,{a:()=>R,b:()=>ce,c:()=>X,d:()=>G,f:()=>ee,i:()=>De,o:()=>de,q:()=>le,s:()=>ge,t:()=>Ee});var D=v(15861);const R="calcite-theme-auto",G="calcite-theme-dark";function X(be){const ve=de(be,"[dir]");return ve?ve.getAttribute("dir"):"ltr"}function ae(be){return be.getRootNode()}function oe(be){return be.host||null}function le(be,{selector:Se,id:ye}){return function ve(xe){if(!xe)return null;xe.assignedSlot&&(xe=xe.assignedSlot);const ze=ae(xe),Ke=ye?"getElementById"in ze?ze.getElementById(ye):null:Se?ze.querySelector(Se):null,We=oe(ze);return Ke||(We?ve(We):null)}(be)}function de(be,Se){return function ye(ve){return ve?ve.closest(Se)||ye(oe(ae(ve))):null}(be)}function Y(be){return"function"==typeof be?.setFocus}function ee(be){return ie.apply(this,arguments)}function ie(){return(ie=(0,D.Z)(function*(be){if(be)return Y(be)?be.setFocus():be.focus()})).apply(this,arguments)}const J=":not([slot])";function ce(be,Se,ye){Se&&!Array.isArray(Se)&&"string"!=typeof Se&&(ye=Se,Se=null);const ve=Se?Array.isArray(Se)?Se.map(xe=>`[slot="${xe}"]`).join(","):`[slot="${Se}"]`:J;return ye?.all?function pe(be,Se,ye){let ve=Se===J?ue(be,J):Array.from(be.querySelectorAll(Se));ve=ye&&!1===ye.direct?ve:ve.filter(ze=>ze.parentElement===be),ve=ye?.matches?ve.filter(ze=>ze?.matches(ye.matches)):ve;const xe=ye?.selector;return xe?ve.map(ze=>Array.from(ze.querySelectorAll(xe))).reduce((ze,Ke)=>[...ze,...Ke],[]).filter(ze=>!!ze):ve}(be,ve,ye):function he(be,Se,ye){let ve=Se===J?ue(be,J)[0]||null:be.querySelector(Se);ve=ye&&!1===ye.direct||ve?.parentElement===be?ve:null,ve=ye?.matches?ve?.matches(ye.matches)?ve:null:ve;const xe=ye?.selector;return xe?ve?.querySelector(xe):ve}(be,ve,ye)}function ue(be,Se){return be?Array.from(be.children||[]).filter(ye=>ye?.matches(Se)):[]}function ge(be,Se,ye){return"string"==typeof Se&&""!==Se?Se:""===Se?be[ye]:void 0}function Ee(be){return Boolean(be).toString()}function De(be){return!(!be.isPrimary||0!==be.button)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8887.90c0614815279982.js b/apps/n/porrtal-io-app/public/angular/8887.90c0614815279982.js deleted file mode 100644 index 604cbc5f..00000000 --- a/apps/n/porrtal-io-app/public/angular/8887.90c0614815279982.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8887],{48887:(k,h,r)=>{r.r(h),r.d(h,{default:()=>w});var d=r(15861),i=r(17626),M=r(84792),I=r(97478),v=r(26584),C=r(80542),L=r(47877),T=r(62208),f=r(99959),D=r(10699),n=r(77712),R=(r(85931),r(90912)),U=r(68653),A=r(76898),j=r(99433),u=r(31283),x=r(2004),S=r(83137),B=r(44917),K=r(50085),W=r(19027),b=r(65088),N=r(552),J=r(50107),Z=r(49286),F=r(6647),V=r(30346),G=r(99555),z=r(66120),H=r(97941),Q=r(13812),$=r(14772),Y=r(39058),g=r(13410),X=r(5676);let s=class extends((0,N.h)((0,H.n)((0,G.M)((0,z.x)((0,W.O)((0,b.Y)((0,Z.q)((0,F.I)((0,f.R)((0,V.Q)((0,K.V)((0,J.N)((0,C.p)(B.Z)))))))))))))){constructor(...e){super(...e),this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,T.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(D.r9).then(()=>this._fetchService(t))),Promise.resolve(this)}readImageFormat(e,t){const l=t.supportedImageFormatTypes;return l&&l.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,l,a){if(!this.loaded||!e)return;const p=e.slice().reverse().flatten(({sublayers:_})=>_&&_.toArray().reverse()).toArray();let o=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap.supportsDynamicLayers){const _=(0,u.M9)(a.origin);if(_===u.s3.PORTAL_ITEM){const m=this.createSublayersForOrigin("service").sublayers;o=(0,g.QV)(p,m,u.s3.SERVICE)}else if(_>u.s3.PORTAL_ITEM){const m=this.createSublayersForOrigin("portal-item");o=(0,g.QV)(p,m.sublayers,(0,u.M9)(m.origin))}}const E=[],c={writeSublayerStructure:o,...a};let y=o;p.forEach(_=>{const m=_.write({},c);E.push(m),y=y||"user"===_.originOf("visible")}),E.some(_=>Object.keys(_).length>1)&&(t.layers=E),y&&(t.visibleLayers=p.filter(_=>_.visible).map(_=>_.id))}createExportImageParameters(e,t,l,a){const p=a&&a.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const o=new $.R({layer:this,floors:a?.floors,scale:(0,S.yZ)({extent:e,width:t})*p}),E=o.toJSON();o.destroy();const c=!a||!a.rotation||this.version<10.3?{}:{rotation:-a.rotation},y=e&&e.spatialReference,_=y.wkid||JSON.stringify(y.toJSON());E.dpi*=p;const m={};if(a?.timeExtent){const{start:O,end:P}=a.timeExtent.toJSON();m.time=O&&P&&O===P?""+O:`${O??"null"},${P??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(m.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:_,imageSR:_,size:t+","+l,...E,...c,...m}}fetchImage(e,t,l,a){var p=this;return(0,d.Z)(function*(){return p._fetchImage("image",e,t,l,a)})()}fetchImageBitmap(e,t,l,a){var p=this;return(0,d.Z)(function*(){const o=yield p._fetchImage("blob",e,t,l,a);return createImageBitmap(o)})()}fetchRecomputedExtents(e={}){var t=this;return(0,d.Z)(function*(){const l={...e,query:{returnUpdates:!0,f:"json",...t.customParameters,token:t.apiKey}},{data:a}=yield(0,M.default)(t.url,l),{extent:p,fullExtent:o,timeExtent:E}=a,c=p||o;return{fullExtent:c&&x.Z.fromJSON(c),timeExtent:E&&I.Z.fromJSON({start:E[0],end:E[1]})}})()}loadAll(){return(0,L.G)(this,e=>{e(this.allSublayers)})}serviceSupportsSpatialReference(e){return(0,X.D)(this,e)}_fetchImage(e,t,l,a,p){var o=this;return(0,d.Z)(function*(){const E={responseType:e,signal:p?.signal??null,query:{...o.parsedUrl.query,...o.createExportImageParameters(t,l,a,p),f:"image",...o.refreshParameters,...o.customParameters,token:o.apiKey}},c=o.parsedUrl.path+"/export";if(null!=E.query.dynamicLayers&&!o.capabilities.exportMap.supportsDynamicLayers)throw new v.Z("mapimagelayer:dynamiclayer-not-supported",`service ${o.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:E.query});try{const{data:y}=yield(0,M.default)(c,E);return y}catch(y){throw(0,D.D_)(y)?y:new v.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${c}`,{error:y})}})()}_fetchService(e){var t=this;return(0,d.Z)(function*(){if(t.sourceJSON)return void t.read(t.sourceJSON,{origin:"service",url:t.parsedUrl});const{data:l,ssl:a}=yield(0,M.default)(t.parsedUrl.path,{query:{f:"json",...t.parsedUrl.query,...t.customParameters,token:t.apiKey},signal:e});a&&(t.url=t.url.replace(/^http:/i,"https:")),t.sourceJSON=l,t.read(l,{origin:"service",url:t.parsedUrl})})()}};(0,i._)([(0,n.Cb)({type:Boolean})],s.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,n.Cb)()],s.prototype,"dpi",void 0),(0,i._)([(0,n.Cb)()],s.prototype,"gdbVersion",void 0),(0,i._)([(0,n.Cb)()],s.prototype,"imageFormat",void 0),(0,i._)([(0,U.r)("imageFormat",["supportedImageFormatTypes"])],s.prototype,"readImageFormat",null),(0,i._)([(0,n.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],s.prototype,"imageMaxHeight",void 0),(0,i._)([(0,n.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],s.prototype,"imageMaxWidth",void 0),(0,i._)([(0,n.Cb)()],s.prototype,"imageTransparency",void 0),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],s.prototype,"isReference",void 0),(0,i._)([(0,n.Cb)({json:{read:!1,write:!1}})],s.prototype,"labelsVisible",void 0),(0,i._)([(0,n.Cb)({type:["ArcGISMapServiceLayer"]})],s.prototype,"operationalLayerType",void 0),(0,i._)([(0,n.Cb)({json:{read:!1,write:!1}})],s.prototype,"popupEnabled",void 0),(0,i._)([(0,n.Cb)()],s.prototype,"sourceJSON",void 0),(0,i._)([(0,n.Cb)({json:{write:{ignoreOrigin:!0}}})],s.prototype,"sublayers",void 0),(0,i._)([(0,j.c)("sublayers",{layers:{type:[Y.Z]},visibleLayers:{type:[R.z8]}})],s.prototype,"writeSublayers",null),(0,i._)([(0,n.Cb)({type:["show","hide","hide-children"]})],s.prototype,"listMode",void 0),(0,i._)([(0,n.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],s.prototype,"type",void 0),(0,i._)([(0,n.Cb)(Q.HQ)],s.prototype,"url",void 0),s=(0,i._)([(0,A.j)("esri.layers.MapImageLayer")],s);const w=s}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8897.9a4831f70bfd0dff.js b/apps/n/porrtal-io-app/public/angular/8897.9a4831f70bfd0dff.js deleted file mode 100644 index 3ebf4e57..00000000 --- a/apps/n/porrtal-io-app/public/angular/8897.9a4831f70bfd0dff.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8897],{58897:(E,a,_)=>{_.r(a),_.d(a,{ShadowCastAccumulatePassParameters:()=>s.S,build:()=>s.b,shadowCastMaxSamples:()=>s.s}),_(28347),_(43703),_(98071),_(47923),_(72968),_(39832),_(19278),_(95285),_(17625),_(63123),_(22355),_(35387);var s=_(94195)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8899.9ba42385af5b92cf.js b/apps/n/porrtal-io-app/public/angular/8899.9ba42385af5b92cf.js deleted file mode 100644 index 9ef574f5..00000000 --- a/apps/n/porrtal-io-app/public/angular/8899.9ba42385af5b92cf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8899],{57932:(Le,oe,P)=>{P.d(oe,{$7:()=>ne,$e:()=>T,E0:()=>v,N5:()=>F,lW:()=>E});var H=P(15861),G=(P(8314),P(26584)),te=P(62208),Q=P(21726);function T(w){const M=v(w);return(0,te.pC)(M)?M.toDataURL():""}function E(w){return K.apply(this,arguments)}function K(){return(K=(0,H.Z)(function*(w){const M=v(w);if((0,te.Wi)(M))throw new G.Z("imageToArrayBuffer","Unsupported image type");const O=yield $(w),Z=yield new Promise(_=>M.toBlob(_,O));if(!Z)throw new G.Z("imageToArrayBuffer","Failed to encode image");return{data:yield Z.arrayBuffer(),type:O}})).apply(this,arguments)}function $(w){return A.apply(this,arguments)}function A(){return(A=(0,H.Z)(function*(w){if(!(w instanceof HTMLImageElement))return"image/png";const M=w.src;if((0,Q.HK)(M)){const O=(0,Q.sJ)(M);return"image/jpeg"===O?.mediaType?O.mediaType:"image/png"}return/\.png$/i.test(M)?"image/png":/\.(jpg|jpeg)$/i.test(M)?"image/jpeg":"image/png"})).apply(this,arguments)}function v(w){if(w instanceof HTMLCanvasElement)return w;if(w instanceof HTMLVideoElement)return null;const M=document.createElement("canvas");M.width=w.width,M.height=w.height;const O=M.getContext("2d");return w instanceof HTMLImageElement?O.drawImage(w,0,0,w.width,w.height):w instanceof ImageData&&O.putImageData(w,0,0),M}function F(w){const M=[],O=new Uint8Array(w);for(let Z=0;Z{P.r(oe),P.d(oe,{CIMSymbolRasterizer:()=>ft,GeometryStyle:()=>nt});var v,H=P(15861),se=P(91558),G=P(84792),te=P(62208),Q=P(10699),T=P(23841),E=P(93678),K=P(26584),$=P(1719),A=P(27422),F={exports:{}};v=function(){return function(c){var n={};function t(a){if(n[a])return n[a].exports;var o=n[a]={exports:{},id:a,loaded:!1};return c[a].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}return t.m=c,t.c=n,t.p="",t(0)}([function(c,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.isNotPNG=function s(y){return y===f},n.isNotAPNG=function l(y){return y===i},n.default=function h(y){var g=new Uint8Array(y);if(Array.prototype.some.call(r,function(z,N){return z!==g[N]}))return f;var B=!1;if(m(g,function(z){return!(B="acTL"===z)}),!B)return i;var x=[],D=[],k=null,S=null,Y=0,V=new o.APNG;if(m(g,function(z,N,U,me){var ie=new DataView(N.buffer);switch(z){case"IHDR":k=N.subarray(U+8,U+8+me),V.width=ie.getUint32(U+8),V.height=ie.getUint32(U+12);break;case"acTL":V.numPlays=ie.getUint32(U+8+4);break;case"fcTL":S&&(V.frames.push(S),Y++),(S=new o.Frame).width=ie.getUint32(U+8+4),S.height=ie.getUint32(U+8+8),S.left=ie.getUint32(U+8+12),S.top=ie.getUint32(U+8+16);var qe=ie.getUint16(U+8+20),Ee=ie.getUint16(U+8+22);0===Ee&&(Ee=100),S.delay=1e3*qe/Ee,S.delay<=10&&(S.delay=100),V.playTime+=S.delay,S.disposeOp=ie.getUint8(U+8+24),S.blendOp=ie.getUint8(U+8+25),S.dataParts=[],0===Y&&2===S.disposeOp&&(S.disposeOp=1);break;case"fdAT":S&&S.dataParts.push(N.subarray(U+8+4,U+8+me));break;case"IDAT":S&&S.dataParts.push(N.subarray(U+8,U+8+me));break;case"IEND":D.push(b(N,U,12+me));break;default:x.push(b(N,U,12+me))}}),S&&V.frames.push(S),0==V.frames.length)return i;var ee=new Blob(x),X=new Blob(D);return V.frames.forEach(function(z){var N=[];N.push(r),k.set(R(z.width),0),k.set(R(z.height),4),N.push(C("IHDR",k)),N.push(ee),z.dataParts.forEach(function(U){return N.push(C("IDAT",U))}),N.push(X),z.imageData=new Blob(N,{type:"image/png"}),delete z.dataParts,N=null}),V};var a=function u(y){return y&&y.__esModule?y:{default:y}}(t(1)),o=t(2),f=new Error("Not a PNG"),i=new Error("Not an animated PNG"),r=new Uint8Array([137,80,78,71,13,10,26,10]);function m(y,g){var B=new DataView(y.buffer),x=8,D=void 0,k=void 0,S=void 0;do{k=B.getUint32(x),S=g(D=d(y,x+4,4),y,x,k),x+=12+k}while(!1!==S&&"IEND"!=D&&x>>24&255,y>>>16&255,y>>>8&255,255&y])}},function(c,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(f){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=-1,l=i,r=i+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.length-i);l>>8^t[255&(s^f[l])];return-1^s};for(var t=new Uint32Array(256),a=0;a<256;a++){for(var o=a,u=0;u<8;u++)o=0!=(1&o)?3988292384^o>>>1:o>>>1;t[a]=o}},function(c,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.Frame=n.APNG=void 0;var a=function(){function i(s,l){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1];return this.createImages().then(function(){return new o.default(l,s,r)})}}]),i}(),n.Frame=function(){function i(){f(this,i),this.left=0,this.top=0,this.width=0,this.height=0,this.delay=0,this.disposeOp=0,this.blendOp=0,this.imageData=null,this.imageElement=null}return a(i,[{key:"createImage",value:function(){var s=this;return this.imageElement?Promise.resolve():new Promise(function(l,r){var h=URL.createObjectURL(s.imageData);s.imageElement=document.createElement("img"),s.imageElement.onload=function(){URL.revokeObjectURL(h),l()},s.imageElement.onerror=function(){URL.revokeObjectURL(h),s.imageElement=null,r(new Error("Image creation error"))},s.imageElement.src=h})}}]),i}()},function(c,n,t){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function l(r,h){for(var m=0;m=this._apng.numPlays&&(this._ended=!0,this._paused=!0)),this._prevFrame&&1==this._prevFrame.disposeOp?this.context.clearRect(this._prevFrame.left,this._prevFrame.top,this._prevFrame.width,this._prevFrame.height):this._prevFrame&&2==this._prevFrame.disposeOp&&this.context.putImageData(this._prevFrameData,this._prevFrame.left,this._prevFrame.top);var h=this.currentFrame;this._prevFrame=h,this._prevFrameData=null,2==h.disposeOp&&(this._prevFrameData=this.context.getImageData(h.left,h.top,h.width,h.height)),0==h.blendOp&&this.context.clearRect(h.left,h.top,h.width,h.height),this.context.drawImage(h.imageElement,h.left,h.top),this.emit("frame",this._currentFrameNumber),this._ended&&this.emit("end")}},{key:"play",value:function(){var h=this;this.emit("play"),this._ended&&this.stop(),this._paused=!1;var m=performance.now()+this.currentFrame.delay/this.playbackRate;requestAnimationFrame(function p(b){if(!h._ended&&!h._paused){if(b>=m){for(;b-m>=h._apng.playTime/h.playbackRate;)m+=h._apng.playTime/h.playbackRate,h._numPlays++;do{h.renderNextFrame(),m+=h.currentFrame.delay/h.playbackRate}while(!h._ended&&b>m)}requestAnimationFrame(p)}})}},{key:"pause",value:function(){this._paused||(this.emit("pause"),this._paused=!0)}},{key:"stop",value:function(){this.emit("stop"),this._numPlays=0,this._ended=!1,this._paused=!0,this._currentFrameNumber=-1,this.context.clearRect(0,0,this._apng.width,this._apng.height),this.renderNextFrame()}},{key:"currentFrameNumber",get:function(){return this._currentFrameNumber}},{key:"currentFrame",get:function(){return this._apng.frames[this._currentFrameNumber]}},{key:"paused",get:function(){return this._paused}},{key:"ended",get:function(){return this._ended}}]),r}(function o(l){return l&&l.__esModule?l:{default:l}}(t(4)).default);n.default=s},function(c,n){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(i){return"function"==typeof i}function u(i){return"object"==typeof i&&null!==i}function f(i){return void 0===i}c.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(i){if(!function o(i){return"number"==typeof i}(i)||i<0||isNaN(i))throw TypeError("n must be a positive number");return this._maxListeners=i,this},t.prototype.emit=function(i){var s,l,r,h,m,d;if(this._events||(this._events={}),"error"===i&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var p=new Error('Uncaught, unspecified "error" event. ('+s+")");throw p.context=s,p}if(f(l=this._events[i]))return!1;if(a(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),l.apply(this,h)}else if(u(l))for(h=Array.prototype.slice.call(arguments,1),r=(d=l.slice()).length,m=0;m0&&this._events[i].length>l&&(this._events[i].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[i].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.once=function(i,s){if(!a(s))throw TypeError("listener must be a function");var l=!1;function r(){this.removeListener(i,r),l||(l=!0,s.apply(this,arguments))}return r.listener=s,this.on(i,r),this},t.prototype.removeListener=function(i,s){var l,r,h,m;if(!a(s))throw TypeError("listener must be a function");if(!this._events||!this._events[i])return this;if(h=(l=this._events[i]).length,r=-1,l===s||a(l.listener)&&l.listener===s)delete this._events[i],this._events.removeListener&&this.emit("removeListener",i,s);else if(u(l)){for(m=h;m-- >0;)if(l[m]===s||l[m].listener&&l[m].listener===s){r=m;break}if(r<0)return this;1===l.length?(l.length=0,delete this._events[i]):l.splice(r,1),this._events.removeListener&&this.emit("removeListener",i,s)}return this},t.prototype.removeAllListeners=function(i){var s,l;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[i]&&delete this._events[i],this;if(0===arguments.length){for(s in this._events)"removeListener"!==s&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(a(l=this._events[i]))this.removeListener(i,l);else if(l)for(;l.length;)this.removeListener(i,l[l.length-1]);return delete this._events[i],this},t.prototype.listeners=function(i){return this._events&&this._events[i]?a(this._events[i])?[this._events[i]]:this._events[i].slice():[]},t.prototype.listenerCount=function(i){if(this._events){var s=this._events[i];if(a(s))return 1;if(s)return s.length}return 0},t.listenerCount=function(i,s){return i.listenerCount(s)}}])},F.exports=v();const ne=(0,$.g)(F.exports);function w(c,n){return M.apply(this,arguments)}function M(){return(M=(0,H.Z)(function*(c,n){const t=ne(c);if(t instanceof Error)throw t;yield t.createImages(),(0,Q.k_)(n);const{frames:a,width:o,height:u}=t,f=document.createElement("canvas");f.width=o,f.height=u;const i=f.getContext("2d"),s=[],l=[];for(const r of a){l.push((0,A.HA)(r.delay||100));const h=r.imageElement;i.globalCompositeOperation=0===r.blendOp?"copy":"source-over";const m=2===r.disposeOp&&i.getImageData(r.left,r.top,r.width,r.height);i.drawImage(h,r.left,r.top);const d=i.getImageData(0,0,o,u);s.push(d),0===r.disposeOp||(1===r.disposeOp?i.clearRect(r.left,r.top,r.width,r.height):2===r.disposeOp&&i.putImageData(m,r.left,r.top))}return{frameDurations:l,getFrame:r=>s[r],width:o,height:u}})).apply(this,arguments)}const O=[137,80,78,71,13,10,26,10];function _(c){if(!function Z(c){const n=new Uint8Array(c);return!O.some((t,a)=>t!==n[a])}(c))return!1;const n=new DataView(c),t=new Uint8Array(c);let a,o=8;do{const u=n.getUint32(o);if(a=String.fromCharCode.apply(String,Array.prototype.slice.call(t.subarray(o+4,o+8))),"acTL"===a)return!0;o+=12+u}while("IEND"!==a&&o2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;if(Array.isArray(t))t.forEach(function(f){return c(n,f,a,o)});else if("function"==typeof t)t(n,a,o,c);else{var u=Object.keys(t)[0];Array.isArray(t[u])?(o[u]={},c(n,t[u],a,o[u])):o[u]=t[u](n,a,o,c)}return a},J.conditional=function(c,n){return function(t,a,o,u){n(t,a,o)&&u(t,c,a,o)}},J.loop=function(c,n){return function(t,a,o,u){for(var f=[],i=t.pos;n(t,a,o);){var s={};if(u(t,c,a,s),t.pos===i)break;i=t.pos,f.push(s)}return f}};var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.readBits=I.readArray=I.readUnsigned=I.readString=I.peekBytes=I.readBytes=I.peekByte=I.readByte=I.buildStream=void 0,I.buildStream=function(c){return{data:c,pos:0}};I.readByte=function(){return function(c){return c.data[c.pos++]}},I.peekByte=function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(n){return n.data[n.pos+c]}};var he=function(c){return function(n){return n.data.subarray(n.pos,n.pos+=c)}};I.readBytes=he,I.peekBytes=function(c){return function(n){return n.data.subarray(n.pos,n.pos+c)}},I.readString=function(c){return function(n){return Array.from(he(c)(n)).map(function(t){return String.fromCharCode(t)}).join("")}},I.readUnsigned=function(c){return function(n){var t=he(2)(n);return c?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}},I.readArray=function(c,n){return function(t,a,o){for(var u="function"==typeof n?n(t,a,o):n,f=he(c),i=new Array(u),s=0;s=d){var C=d-r.pos;m.push((0,t.readBytes)(C)(r)),p+=C;break}m.push((0,t.readBytes)(b)(r)),p+=b}for(var R=new Uint8Array(p),y=0,g=0;g>=f,p-=f,r>a||r==i)break;if(r==o){u=(1<<(f=m+1))-1,a=o+2,l=-1;continue}if(-1==l){Y[C++]=S[r],l=r,b=r;continue}for(s=r,r==a&&(Y[C++]=b,r=l);r>o;)Y[C++]=S[r],r=k[r];Y[C++]=b=255&S[r],as[r],width:o,height:u}})).apply(this,arguments)}W.decompressFrame=Fe,ye=W.decompressFrames=function(c,n){return c.frames.filter(function(t){return t.image}).map(function(t){return Fe(t,c.gct,n)})};const Ye=[71,73,70];function Ce(c){if(!function we(c){const n=new Uint8Array(c);return!Ye.some((t,a)=>t!==n[a])}(c))return!1;const n=new DataView(c),t=n.getUint8(10);let a=13+(128&t?3*2**(1+(7&t)):0),o=0,u=!1;for(;!u;){switch(n.getUint8(a++)){case 33:if(!f())return!1;break;case 44:i();break;case 59:u=!0;break;default:return!1}if(o>1)return!0}function f(){switch(n.getUint8(a++)){case 249:!function s(){a++,a+=4,m()}();break;case 1:!function l(){o++,a++,a+=12,m()}();break;case 254:!function r(){m()}();break;case 255:!function h(){a++,a+=8,a+=3,m()}();break;default:return!1}return!0}function i(){o++,a+=8;const d=n.getUint8(a++);a+=128&d?3*2**(1+(7&d)):0,a++,m()}function m(){let d;for(;d=n.getUint8(a++);)a+=d}return!1}class Be{constructor(){this._resourceMap=new Map,this._inFlightResourceMap=new Map,this.geometryEngine=null}destroy(){this._inFlightResourceMap.clear(),this._resourceMap.clear()}getResource(n){return this._resourceMap.get(n)??null}fetchResource(n,t){var a=this;return(0,H.Z)(function*(){const o=a._resourceMap.get(n);if(o)return{width:o.width,height:o.height};const u=a._inFlightResourceMap.get(n);if(u)return u.then(i=>({width:i.width,height:i.height}));const f=function Oe(c,n){return e.apply(this,arguments)}(n,t);return a._inFlightResourceMap.set(n,u),f.then(i=>(a._inFlightResourceMap.delete(n),a._resourceMap.set(n,i),{width:i.width,height:i.height}),()=>({width:0,height:0}))})()}deleteResource(n){this._inFlightResourceMap.delete(n),this._resourceMap.delete(n)}}function Ue(c,n){return Me.apply(this,arguments)}function Me(){return(Me=(0,H.Z)(function*(c,n){const t=window.URL.createObjectURL(c);try{const{data:a}=yield(0,G.default)(t,{...n,responseType:"image"});return a}catch(a){throw(0,Q.D_)(a)?a:new K.Z("mapview-invalid-resource",`Could not fetch requested resource at ${t}`)}finally{window.URL.revokeObjectURL(t)}})).apply(this,arguments)}function e(){return(e=(0,H.Z)(function*(c,n){const{arrayBuffer:t,mediaType:a}=yield et(c,n),o="image/png"===a;return"image/gif"===a&&Ce(t)?Ie(t):o&&_(t)?w(t,n):Ue(new Blob([t],{type:a}),n)})).apply(this,arguments)}function et(c,n){return Je.apply(this,arguments)}function Je(){return(Je=(0,H.Z)(function*(c,n){let t;const a=";base64,";if(c.includes(a)){const o=c.indexOf(a),u=c.indexOf(a)+a.length,f=c.substring(u),i=atob(f),s=new Uint8Array(i.length);for(let l=0;l=m||h>=m){const d=r/h;d>1?(r=m,h=Math.round(m/d)):(h=m,r=Math.round(m*d)),l=new Uint8Array(4*r*h);const p=new Uint8ClampedArray(l.buffer);(0,j.TT)(i,n,t,p,r,h,!1)}return{size:[r,h],image:new Uint32Array(l.buffer),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0}}}var nt,c,ot=P(68937),ut=P(56445),ct=P(37519);(c=nt||(nt={})).Legend="legend",c.Preview="preview";const rt=c=>c&&c.scaleFactor?c.scaleFactor:1;class ft{constructor(n,t){this._spatialReference=n,this._avoidSDF=t,this._resourceCache=new Map,this._imageDataCanvas=null,this._pictureMarkerCache=new Map,this._textRasterizer=new ot.Z,this._cimResourceManager=new Be,this._rasterizer=new at(this._cimResourceManager)}get resourceManager(){return this._cimResourceManager}rasterizeCIMSymbolAsync(n,t,a,o,u,f,i,s){var l=this;return(0,H.Z)(function*(){if(!n)return null;const{data:r}=n;if(!r||"CIMSymbolReference"!==r.type||!r.symbol)return null;const{symbol:h}=r;f||(f=(0,j.JW)(h));const m=yield le.E0.resolveSymbolOverrides(r,t,l._spatialReference,u,f,i,s);l._imageDataCanvas||(l._imageDataCanvas=document.createElement("canvas"));const d=l._imageDataCanvas,p=l._cimResourceManager,b=[];le.B$.fetchResources(m,p,b),b.length>0&&(yield Promise.all(b));const{width:C,height:R}=a,y=function dt(c,n,t,a){const u=-n/2+1,f=n/2-1,i=t/2-1,s=-t/2+1;switch(c){case"esriGeometryPoint":return{x:0,y:0};case"esriGeometryPolyline":return{paths:[[[u,0],[0,0],[f,0]]]};default:return"legend"===a?{rings:[[[u,i],[f,0],[f,s],[u,s],[u,i]]]}:{rings:[[[u,i],[f,i],[f,s],[u,s],[u,i]]]}}}(f,C,R,o),g=le.B$.getEnvelope(m,y,p);if(!g)return null;const B=1.3333333333333333*(window.devicePixelRatio||1);let x=1,D=0,k=0;switch(h.type){case"CIMPointSymbol":case"CIMTextSymbol":{let ee=1;g.width>C&&(ee=C/g.width);let X=1;g.height>R&&(X=R/g.height),"preview"===o&&(g.widthR&&(ee=R/g.height),x=ee,k=g.y+g.height/2;const X=g.x*x+C/2,z=(g.x+g.width)*x+C/2;if(X<0){const{paths:N}=y;N[0][0][0]-=X}if(z>C){const{paths:N}=y;N[0][2][0]-=z-C}}break;case"CIMPolygonSymbol":{D=g.x+g.width/2,k=g.y+g.height/2;const ee=g.x*x+C/2,X=(g.x+g.width)*x+C/2,z=g.y*x+R/2,N=(g.y+g.height)*x+R/2,{rings:U}=y;ee<0&&(U[0][0][0]-=ee,U[0][3][0]-=ee,U[0][4][0]-=ee),z<0&&(U[0][0][1]+=z,U[0][1][1]+=z,U[0][4][1]+=z),X>C&&(U[0][1][0]-=X-C,U[0][2][0]-=X-C),N>R&&(U[0][2][1]+=N-R,U[0][3][1]+=N-R)}}d.width=C*B,d.height=R*B,d.width+=2,d.height+=2;const Y=d.getContext("2d"),V=$e.zA.createIdentity();return V.translate(-D,-k),V.scale(x*B,-x*B),V.translate(C*B/2+1,R*B/2+1),Y.clearRect(0,0,d.width,d.height),new $e.cD(Y,p,V,!0).drawSymbol(m,y),Y.getImageData(0,0,d.width,d.height)})()}analyzeCIMSymbol(n,t,a,o,u){var f=this;return(0,H.Z)(function*(){const i=[],s=t?{geometryType:o,spatialReference:f._spatialReference,fields:t}:null;let l;yield(0,E.c)(n.data,s,f._cimResourceManager,i,f._avoidSDF),(0,Q.k_)(u);for(const r of i)"CIMPictureMarker"!==r.cim.type&&"CIMPictureFill"!==r.cim.type&&"CIMPictureStroke"!==r.cim.type||(l||(l=[]),l.push(f._fetchPictureMarkerResource(r,u))),a&&"text"===r.type&&"string"==typeof r.text&&r.text.includes("[")&&(r.text=(0,j.Qs)(a,r.text,r.cim.textCase));return l&&(yield Promise.all(l)),i})()}rasterizeCIMSymbol3D(n,t,a,o,u,f){const i=[];for(const s of n){o&&"function"==typeof o.scaleFactor&&(o.scaleFactor=o.scaleFactor(t,u,f));const l=this._getRasterizedResource(s,t,a,o,u,f);if(!l)continue;let r=0,h=l.anchorX||0,m=l.anchorY||0,d=!1,p=0,b=0;if("esriGeometryPoint"===a){const C=rt(o);if(p=(0,j.hf)(s.offsetX,t,u,f)*C||0,b=(0,j.hf)(s.offsetY,t,u,f)*C||0,"marker"===s.type)r=(0,j.hf)(s.rotation,t,u,f)||0,d=!!s.rotateClockwise&&s.rotateClockwise;else if("text"===s.type){if(r=(0,j.hf)(s.angle,t,u,f)||0,void 0!==s.horizontalAlignment)switch(s.horizontalAlignment){case"left":h=-.5;break;case"right":h=.5;break;default:h=0}if(void 0!==s.verticalAlignment)switch(s.verticalAlignment){case"top":m=.5;break;case"bottom":m=-.5;break;case"baseline":m=-.25;break;default:m=0}}}null!=l&&i.push({angle:r,rotateClockWise:d,anchorX:h,anchorY:m,offsetX:p,offsetY:b,rasterizedResource:l})}return this.getSymbolImage(i)}getSymbolImage(n){const t=document.createElement("canvas"),a=(0,te.s3)(t.getContext("2d"));let o=0,u=0,f=0,i=0;const s=[];for(let m=0;mf?S:f,i=Y>i?Y:i;const V=a.createImageData(p.size[0],p.size[1]);V.data.set(new Uint8ClampedArray(p.image.buffer)),s.push({offsetX:C,offsetY:R,rotateClockwise:B,angle:x,rasterizedImage:V,anchorX:y,anchorY:g})}t.width=f-o,t.height=i-u;const l=-o,r=i;for(let m=0;m1?(0,T.F2)(t):(0,T.F2)(t)/u:o.width,i=t?u>1?(0,T.F2)(t)*u:(0,T.F2)(t):o.height;return{image:this._imageTo32Array(o,f,i,a),width:f,height:i}}}},7547:(Le,oe,P)=>{var H,se,G,te,Q,T,E,K,$,A,v,F,ne,w,M,O,Z,_,L,W,ae,J,q,re,ce,I,ke,ge,be,he,ze,Ne,He,je,We,xe,ue,Ge,fe,pe,ye,Se,Ze,Xe,ve,_e,Te,Pe,Re,Ae,Fe,De,Ie,de,Ye,we,Ce,Be,Ue,Me,Oe,e;P.d(oe,{$y:()=>J,AH:()=>se,CS:()=>Te,DD:()=>K,Dd:()=>be,Em:()=>ae,JS:()=>ve,Ky:()=>$,Lh:()=>Pe,Qb:()=>Ce,RL:()=>H,RS:()=>Ue,TF:()=>W,Tx:()=>Q,UR:()=>Z,UX:()=>we,bj:()=>_e,eZ:()=>E,id:()=>ce,kP:()=>xe,r4:()=>pe,sj:()=>ue,v2:()=>G,zQ:()=>ge,zV:()=>O}),(e=H||(H={}))[e.BUTT=0]="BUTT",e[e.ROUND=1]="ROUND",e[e.SQUARE=2]="SQUARE",e[e.UNKNOWN=4]="UNKNOWN",function(e){e[e.BEVEL=0]="BEVEL",e[e.ROUND=1]="ROUND",e[e.MITER=2]="MITER",e[e.UNKNOWN=4]="UNKNOWN"}(se||(se={})),function(e){e[e.SCREEN=0]="SCREEN",e[e.MAP=1]="MAP"}(G||(G={})),function(e){e[e.Tint=0]="Tint",e[e.Ignore=1]="Ignore",e[e.Multiply=99]="Multiply"}(te||(te={})),function(e){e.Both="Both",e.JustBegin="JustBegin",e.JustEnd="JustEnd",e.None="None"}(Q||(Q={})),function(e){e[e.Mosaic=0]="Mosaic",e[e.Centered=1]="Centered"}(T||(T={})),function(e){e[e.Normal=0]="Normal",e[e.Superscript=1]="Superscript",e[e.Subscript=2]="Subscript"}(E||(E={})),function(e){e[e.MSSymbol=0]="MSSymbol",e[e.Unicode=1]="Unicode"}(K||(K={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.TrueType=1]="TrueType",e[e.PSOpenType=2]="PSOpenType",e[e.TTOpenType=3]="TTOpenType",e[e.Type1=4]="Type1"}($||($={})),function(e){e[e.Display=0]="Display",e[e.Map=1]="Map"}(A||(A={})),function(e){e.None="None",e.Loop="Loop",e.Oscillate="Oscillate"}(v||(v={})),function(e){e[e.Z=0]="Z",e[e.X=1]="X",e[e.Y=2]="Y"}(F||(F={})),function(e){e[e.XYZ=0]="XYZ",e[e.ZXY=1]="ZXY",e[e.YXZ=2]="YXZ"}(ne||(ne={})),function(e){e[e.Rectangle=0]="Rectangle",e[e.RoundedRectangle=1]="RoundedRectangle",e[e.Oval=2]="Oval"}(w||(w={})),function(e){e[e.None=0]="None",e[e.Alpha=1]="Alpha",e[e.Screen=2]="Screen",e[e.Multiply=3]="Multiply",e[e.Add=4]="Add"}(M||(M={})),function(e){e[e.TTB=0]="TTB",e[e.RTL=1]="RTL",e[e.BTT=2]="BTT"}(O||(O={})),function(e){e[e.None=0]="None",e[e.SignPost=1]="SignPost",e[e.FaceNearPlane=2]="FaceNearPlane"}(Z||(Z={})),function(e){e[e.Float=0]="Float",e[e.String=1]="String",e[e.Boolean=2]="Boolean"}(_||(_={})),function(e){e[e.Intersect=0]="Intersect",e[e.Subtract=1]="Subtract"}(L||(L={})),function(e){e.OpenEnded="OpenEnded",e.Block="Block",e.Crossed="Crossed"}(W||(W={})),function(e){e.FullGeometry="FullGeometry",e.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment",e.ReversedFirstSegment="ReversedFirstSegment",e.PerpendicularToSecondSegment="PerpendicularToSecondSegment",e.SecondSegmentWithTicks="SecondSegmentWithTicks",e.DoublePerpendicular="DoublePerpendicular",e.OppositeToFirstSegment="OppositeToFirstSegment",e.TriplePerpendicular="TriplePerpendicular",e.HalfCircleFirstSegment="HalfCircleFirstSegment",e.HalfCircleSecondSegment="HalfCircleSecondSegment",e.HalfCircleExtended="HalfCircleExtended",e.OpenCircle="OpenCircle",e.CoverageEdgesWithTicks="CoverageEdgesWithTicks",e.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks",e.GapExtentMidline="GapExtentMidline",e.Chevron="Chevron",e.PerpendicularWithArc="PerpendicularWithArc",e.ClosedHalfCircle="ClosedHalfCircle",e.TripleParallelExtended="TripleParallelExtended",e.ParallelWithTicks="ParallelWithTicks",e.Parallel="Parallel",e.PerpendicularToFirstSegment="PerpendicularToFirstSegment",e.ParallelOffset="ParallelOffset",e.OffsetOpposite="OffsetOpposite",e.OffsetSame="OffsetSame",e.CircleWithArc="CircleWithArc",e.DoubleJog="DoubleJog",e.PerpendicularOffset="PerpendicularOffset",e.LineExcludingLastSegment="LineExcludingLastSegment",e.MultivertexArrow="MultivertexArrow",e.CrossedArrow="CrossedArrow",e.ChevronArrow="ChevronArrow",e.ChevronArrowOffset="ChevronArrowOffset",e.PartialFirstSegment="PartialFirstSegment",e.Arch="Arch",e.CurvedParallelTicks="CurvedParallelTicks",e.Arc90Degrees="Arc90Degrees"}(ae||(ae={})),function(e){e.Mitered="Mitered",e.Bevelled="Bevelled",e.Rounded="Rounded",e.Square="Square",e.TrueBuffer="TrueBuffer"}(J||(J={})),function(e){e.ClosePath="ClosePath",e.ConvexHull="ConvexHull",e.RectangularBox="RectangularBox"}(q||(q={})),function(e){e.BeginningOfLine="BeginningOfLine",e.EndOfLine="EndOfLine"}(re||(re={})),function(e){e.Mitered="Mitered",e.Bevelled="Bevelled",e.Rounded="Rounded",e.Square="Square"}(ce||(ce={})),function(e){e.Fast="Fast",e.Accurate="Accurate"}(I||(I={})),function(e){e.BeginningOfLine="BeginningOfLine",e.EndOfLine="EndOfLine"}(ke||(ke={})),function(e){e.Sinus="Sinus",e.Square="Square",e.Triangle="Triangle",e.Random="Random"}(ge||(ge={})),function(e){e[e.None=0]="None",e[e.Default=1]="Default",e[e.Force=2]="Force"}(be||(be={})),function(e){e[e.Buffered=0]="Buffered",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.AlongLine=3]="AlongLine"}(he||(he={})),function(e){e[e.Linear=0]="Linear",e[e.Rectangular=1]="Rectangular",e[e.Circular=2]="Circular",e[e.Buffered=3]="Buffered"}(ze||(ze={})),function(e){e[e.Discrete=0]="Discrete",e[e.Continuous=1]="Continuous"}(Ne||(Ne={})),function(e){e[e.AcrossLine=0]="AcrossLine",e[e.AloneLine=1]="AloneLine"}(He||(He={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center",e[e.Justify=3]="Justify"}(je||(je={})),function(e){e[e.Base=0]="Base",e[e.MidPoint=1]="MidPoint",e[e.ThreePoint=2]="ThreePoint",e[e.FourPoint=3]="FourPoint",e[e.Underline=4]="Underline",e[e.CircularCW=5]="CircularCW",e[e.CircularCCW=6]="CircularCCW"}(We||(We={})),function(e){e.Butt="Butt",e.Round="Round",e.Square="Square"}(xe||(xe={})),function(e){e.NoConstraint="NoConstraint",e.HalfPattern="HalfPattern",e.HalfGap="HalfGap",e.FullPattern="FullPattern",e.FullGap="FullGap",e.Custom="Custom"}(ue||(ue={})),function(e){e[e.None=-1]="None",e[e.Custom=0]="Custom",e[e.Circle=1]="Circle",e[e.OpenArrow=2]="OpenArrow",e[e.ClosedArrow=3]="ClosedArrow",e[e.Diamond=4]="Diamond"}(Ge||(Ge={})),function(e){e[e.ExtraLeading=0]="ExtraLeading",e[e.Multiple=1]="Multiple",e[e.Exact=2]="Exact"}(fe||(fe={})),function(e){e.Bevel="Bevel",e.Round="Round",e.Miter="Miter"}(pe||(pe={})),function(e){e[e.Default=0]="Default",e[e.String=1]="String",e[e.Numeric=2]="Numeric"}(ye||(ye={})),function(e){e[e.InsidePolygon=0]="InsidePolygon",e[e.PolygonCenter=1]="PolygonCenter",e[e.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"}(Se||(Se={})),function(e){e[e.Tint=0]="Tint",e[e.Replace=1]="Replace",e[e.Multiply=2]="Multiply"}(Ze||(Ze={})),function(e){e[e.ClipAtBoundary=0]="ClipAtBoundary",e[e.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary",e[e.DoNotTouchBoundary=2]="DoNotTouchBoundary",e[e.DoNotClip=3]="DoNotClip"}(Xe||(Xe={})),function(e){e.NoConstraint="NoConstraint",e.WithMarkers="WithMarkers",e.WithFullGap="WithFullGap",e.WithHalfGap="WithHalfGap",e.Custom="Custom"}(ve||(ve={})),function(e){e.Fixed="Fixed",e.Random="Random",e.RandomFixedQuantity="RandomFixedQuantity"}(_e||(_e={})),function(e){e.LineMiddle="LineMiddle",e.LineBeginning="LineBeginning",e.LineEnd="LineEnd",e.SegmentMidpoint="SegmentMidpoint"}(Te||(Te={})),function(e){e.OnPolygon="OnPolygon",e.CenterOfMass="CenterOfMass",e.BoundingBoxCenter="BoundingBoxCenter"}(Pe||(Pe={})),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"}(Re||(Re={})),function(e){e[e.MarkerCenter=0]="MarkerCenter",e[e.MarkerBounds=1]="MarkerBounds"}(Ae||(Ae={})),function(e){e[e.None=0]="None",e[e.PropUniform=1]="PropUniform",e[e.PropNonuniform=2]="PropNonuniform",e[e.DifUniform=3]="DifUniform",e[e.DifNonuniform=4]="DifNonuniform"}(Fe||(Fe={})),function(e){e.Tube="Tube",e.Strip="Strip",e.Wall="Wall"}(De||(De={})),function(e){e[e.Random=0]="Random",e[e.Increasing=1]="Increasing",e[e.Decreasing=2]="Decreasing",e[e.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"}(Ie||(Ie={})),function(e){e[e.Relative=0]="Relative",e[e.Absolute=1]="Absolute"}(de||(de={})),function(e){e[e.Normal=0]="Normal",e[e.LowerCase=1]="LowerCase",e[e.Allcaps=2]="Allcaps"}(Ye||(Ye={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(we||(we={})),function(e){e.Draft="Draft",e.Picture="Picture",e.Text="Text"}(Ce||(Ce={})),function(e){e[e.Top=0]="Top",e[e.Center=1]="Center",e[e.Baseline=2]="Baseline",e[e.Bottom=3]="Bottom"}(Be||(Be={})),function(e){e[e.Right=0]="Right",e[e.Upright=1]="Upright"}(Ue||(Ue={})),function(e){e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Large=2]="Large"}(Me||(Me={})),function(e){e[e.Calm=0]="Calm",e[e.Rippled=1]="Rippled",e[e.Slight=2]="Slight",e[e.Moderate=3]="Moderate"}(Oe||(Oe={}))},26996:(Le,oe,P)=>{P.d(oe,{Y:()=>te,m:()=>Q});var H=P(36161),se=P(21286);function te(T,E,K){const $=(0,se.fp)(Math.ceil(K)),A=(T=>"vertical"===T||"horizontal"===T||"cross"===T||"esriSFSCross"===T||"esriSFSVertical"===T||"esriSFSHorizontal"===T)(E)?8*$:16*$,v=2*$;T.width=A,T.height=A;const F=T.getContext("2d");F.strokeStyle="#FFFFFF",F.lineWidth=$,F.beginPath(),"vertical"!==E&&"cross"!==E&&"esriSFSCross"!==E&&"esriSFSVertical"!==E||(F.moveTo(A/2,-v),F.lineTo(A/2,A+v)),"horizontal"!==E&&"cross"!==E&&"esriSFSCross"!==E&&"esriSFSHorizontal"!==E||(F.moveTo(-v,A/2),F.lineTo(A+v,A/2)),"forward-diagonal"!==E&&"diagonal-cross"!==E&&"esriSFSDiagonalCross"!==E&&"esriSFSForwardDiagonal"!==E||(F.moveTo(-v,-v),F.lineTo(A+v,A+v),F.moveTo(A-v,-v),F.lineTo(A+v,v),F.moveTo(-v,A-v),F.lineTo(v,A+v)),"backward-diagonal"!==E&&"diagonal-cross"!==E&&"esriSFSBackwardDiagonal"!==E&&"esriSFSDiagonalCross"!==E||(F.moveTo(A+v,-v),F.lineTo(-v,A+v),F.moveTo(v,-v),F.lineTo(-v,v),F.moveTo(A+v,A-v),F.lineTo(A-v,A+v)),F.stroke();const ne=F.getImageData(0,0,T.width,T.height),w=new Uint8Array(ne.data);let M;for(let O=0;O{P.d(oe,{AI:()=>G,C1:()=>e,CQ:()=>Je,CU:()=>Ie,Ex:()=>ae,I_:()=>T,Ip:()=>Be,Iv:()=>Ve,Iw:()=>J,MI:()=>Oe,SD:()=>Ke,Tz:()=>$e,Uh:()=>et,V4:()=>De,XJ:()=>Ce,_6:()=>Qe,a:()=>de,aK:()=>Se,e0:()=>tt,fL:()=>we,jk:()=>j,m4:()=>ve,oK:()=>le,pU:()=>ye,ru:()=>Q,tQ:()=>Ae,uG:()=>_e,xl:()=>pe,xm:()=>ne});const G=1e-30,Q=4294967295,T=512,ne=29,ae=24,J=8,pe=1,ye=2,Se=3,ve=2,_e=1,Ae=1.05,De=5,Ie=6,de=1.15,we=2,Ce=8,Be=500,Oe=10,e=1024,et=2,Je=0,$e=1,le=4,tt=8,Ve=16,Qe=4,Ke=1,j=4},5254:(Le,oe,P)=>{P.d(oe,{Au:()=>F,Jz:()=>M,UJ:()=>w});const H=new Float32Array(1);function F(_){return[255&_,(65280&_)>>>8,(16711680&_)>>>16,(4278190080&_)>>>24]}function w(_,L){return 65535&_|L<<16}function M(_,L,W,ae){return 255&_|(255&L)<<8|(255&W)<<16|ae<<24}new Uint32Array(H.buffer)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8954.b94cd18cb9cbc90b.js b/apps/n/porrtal-io-app/public/angular/8954.b94cd18cb9cbc90b.js deleted file mode 100644 index 2a02626b..00000000 --- a/apps/n/porrtal-io-app/public/angular/8954.b94cd18cb9cbc90b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8954],{78954:(n,s,_)=>{_.r(s),_.d(s,{build:()=>E.b}),_(84161),_(28093),_(6067),_(97139),_(65787),_(17625),_(63123),_(22355),_(16396);var E=_(5585)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/8967.293d477d4cebcdbb.js b/apps/n/porrtal-io-app/public/angular/8967.293d477d4cebcdbb.js deleted file mode 100644 index 4809c060..00000000 --- a/apps/n/porrtal-io-app/public/angular/8967.293d477d4cebcdbb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[8967],{8967:(Z,y,r)=>{r.r(y),r.d(y,{default:()=>O});var h=r(15861),c=r(26584),f=r(63290),v=r(62208),g=r(65401),I=r(32442),T=r(53023),w=r(76530),b=r(6185),E=r(96854),F=r(55746);const m=f.Z.getLogger("esri.views.2d.layers.features.support.whereUtils"),x={getAttribute:(o,e)=>o.field(e)};function d(){return(d=(0,h.Z)(function*(o,e){const t=yield Promise.resolve().then(r.bind(r,10410));try{const i=t.WhereClause.create(o,e);if(!i.isStandardized){const s=new c.Z("mapview - bad input","Unable to apply filter's definition expression, as expression is not standardized.",i);m.error(s)}return s=>{const n=s.readArcadeFeature();return i.testFeature(n,x)}}catch{return m.warn("mapview-bad-where-clause","Encountered an error when evaluating where clause",o),s=>!0}})).apply(this,arguments)}class O{constructor(e){this._geometryBounds=(0,g.Ue)(),this._idToVisibility=new Map,this._serviceInfo=e}get hash(){return this._hash}check(e){return this._applyFilter(e)}clear(){const e=this._resetAllHiddenIds();return this.update(),{show:e,hide:[]}}invalidate(){this._idToVisibility.forEach((e,t)=>{this._idToVisibility.set(t,0)})}setKnownIds(e){for(const t of e)this._idToVisibility.set(t,1)}setTrue(e){const t=[],i=[],s=new Set(e);return this._idToVisibility.forEach((n,l)=>{const p=!!(1&this._idToVisibility.get(l)),u=s.has(l);!p&&u?t.push(l):p&&!u&&i.push(l),this._idToVisibility.set(l,u?3:0)}),{show:t,hide:i}}createQuery(){const{geometry:e,spatialRel:t,where:i,timeExtent:s,objectIds:n}=this;return E.Z.fromJSON({geometry:e,spatialRel:t,where:i,timeExtent:s,objectIds:n})}update(e,t){var i=this;return(0,h.Z)(function*(){i._hash=JSON.stringify(e);const s=yield(0,b.j6)(e,null,t);yield Promise.all([i._setGeometryFilter(s),i._setIdFilter(s),i._setAttributeFilter(s),i._setTimeFilter(s)])})()}_setAttributeFilter(e){var t=this;return(0,h.Z)(function*(){if(!e||!e.where)return t._clause=null,void(t.where=null);t._clause=yield function S(o,e){return d.apply(this,arguments)}(e.where,t._serviceInfo.fieldsIndex),t.where=e.where})()}_setIdFilter(e){this._idsToShow=e&&e.objectIds&&new Set(e.objectIds),this._idsToHide=e&&e.hiddenIds&&new Set(e.hiddenIds),this.objectIds=e&&e.objectIds}_setGeometryFilter(e){var t=this;return(0,h.Z)(function*(){if(!e||!e.geometry)return t._spatialQueryOperator=null,t.geometry=null,void(t.spatialRel=null);const i=e.geometry,s=e.spatialRel||"esriSpatialRelIntersects",n=yield(0,T.cW)(s,i,t._serviceInfo.geometryType,t._serviceInfo.hasZ,t._serviceInfo.hasM);(0,I.$P)(t._geometryBounds,i),t._spatialQueryOperator=n,t.geometry=i,t.spatialRel=s})()}_setTimeFilter(e){if(this.timeExtent=this._timeOperator=null,e&&e.timeExtent)if(this._serviceInfo.timeInfo)this.timeExtent=e.timeExtent,this._timeOperator=(0,w.y)(this._serviceInfo.timeInfo,e.timeExtent,F.k);else{const t=new c.Z("feature-layer-view:time-filter-not-available","Unable to apply time filter, as layer doesn't have time metadata.",e.timeExtent);f.Z.getLogger("esri.views.2d.layers.features.controllers.FeatureFilter").error(t)}}_applyFilter(e){return this._filterByGeometry(e)&&this._filterById(e)&&this._filterByTime(e)&&this._filterByExpression(e)}_filterByExpression(e){return!this.where||this._clause(e)}_filterById(e){return(!this._idsToHide||!this._idsToHide.size||!this._idsToHide.has(e.getObjectId()))&&(!this._idsToShow||!this._idsToShow.size||this._idsToShow.has(e.getObjectId()))}_filterByGeometry(e){if(!this.geometry)return!0;const t=e.readHydratedGeometry();return!!t&&this._spatialQueryOperator(t)}_filterByTime(e){return!!(0,v.Wi)(this._timeOperator)||this._timeOperator(e)}_resetAllHiddenIds(){const e=[];return this._idToVisibility.forEach((t,i)=>{1&t||(this._idToVisibility.set(i,1),e.push(i))}),e}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9058.0a54f45ca9a1b20f.js b/apps/n/porrtal-io-app/public/angular/9058.0a54f45ca9a1b20f.js deleted file mode 100644 index 71c282b1..00000000 --- a/apps/n/porrtal-io-app/public/angular/9058.0a54f45ca9a1b20f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9058],{59058:(gt,me,A)=>{A.r(me),A.d(me,{default:()=>Ve});var O=A(24263),g=A(17626),ne=A(59318),V=A(84792),R=A(26584),_e=A(61885),oe=A(17770),be=A(58817),Y=A(94113),B=A(10699),ae=A(32917),w=A(21726),m=A(77712),G=(A(90912),A(76898)),Me=(A(85931),A(97059)),ye=A(40915),Se=A(38570),we=A(25552),P=A(94450);const j_group="esri-identity-form__group",j_label="esri-identity-form__label";let M=class extends ye.Z{constructor(n,e){super(n,e),this._usernameInputNode=null,this._passwordInputNode=null,this.signingIn=!1,this.server=null,this.resource=null,this.error=null,this.oAuthPrompt=!1}render(){const{error:n,server:e,resource:t,signingIn:r,oAuthPrompt:s,messages:i}=this,o=(0,P.u)("div",{class:j_group},(0,Me.n)(s?i.oAuthInfo:i.info,{server:e&&/\.arcgis\.com/i.test(e)?"ArcGIS Online":e,resource:`(${t||i.lblItem})`})),l=s?null:(0,P.u)("div",{class:j_group,key:"username"},(0,P.u)("label",{class:j_label},i.lblUser,(0,P.u)("input",{value:"",required:!0,autocomplete:"off",spellcheck:!1,type:"text",bind:this,afterCreate:Se.Yo,"data-node-ref":"_usernameInputNode",class:"esri-input"}))),u=s?null:(0,P.u)("div",{class:j_group,key:"password"},(0,P.u)("label",{class:j_label},i.lblPwd,(0,P.u)("input",{value:"",required:!0,type:"password",bind:this,afterCreate:Se.Yo,"data-node-ref":"_passwordInputNode",class:"esri-input"}))),a=(0,P.u)("div",{class:this.classes(j_group,"esri-identity-form__footer")},(0,P.u)("input",{type:"submit",disabled:!!r,value:r?i.lblSigning:i.lblOk,class:"esri-button"}),(0,P.u)("input",{type:"button",value:i.lblCancel,bind:this,onclick:this._cancel,class:this.classes("esri-button","esri-button--secondary")})),h=n?(0,P.u)("div",null,n.details&&n.details.httpStatus?i.invalidUser:i.noAuthService):null;return(0,P.u)("form",{class:"esri-identity-form",bind:this,onsubmit:this._submit},o,h,l,u,a)}_cancel(){this._set("signingIn",!1),this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(n){n.preventDefault(),this._set("signingIn",!0),this.emit("submit",this.oAuthPrompt?{}:{username:this._usernameInputNode&&this._usernameInputNode.value,password:this._passwordInputNode&&this._passwordInputNode.value})}};(0,g._)([(0,m.Cb)(),(0,we.H)("esri/identity/t9n/identity")],M.prototype,"messages",void 0),(0,g._)([(0,m.Cb)()],M.prototype,"signingIn",void 0),(0,g._)([(0,m.Cb)()],M.prototype,"server",void 0),(0,g._)([(0,m.Cb)()],M.prototype,"resource",void 0),(0,g._)([(0,m.Cb)()],M.prototype,"error",void 0),(0,g._)([(0,m.Cb)()],M.prototype,"oAuthPrompt",void 0),M=(0,g._)([(0,G.j)("esri.identity.IdentityForm")],M);const He=M;var Ze=A(54024),$e=A(25469),Ie=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],K=Ie.join(","),Ae=typeof Element>"u",$=Ae?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Q=!Ae&&Element.prototype.getRootNode?function(n){return n.getRootNode()}:function(n){return n.ownerDocument},ke=function(e,t,r){var s=Array.prototype.slice.apply(e.querySelectorAll(K));return t&&$.call(e,K)&&s.unshift(e),s.filter(r)},Te=function n(e,t,r){for(var s=[],i=Array.from(e);i.length;){var o=i.shift();if("SLOT"===o.tagName){var l=o.assignedElements(),a=n(l.length?l:o.children,!0,r);r.flatten?s.push.apply(s,a):s.push({scopeParent:o,candidates:a})}else{$.call(o,K)&&r.filter(o)&&(t||!e.includes(o))&&s.push(o);var p=o.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(o),c=!r.shadowRootFilter||r.shadowRootFilter(o);if(p&&c){var v=n(!0===p?o.children:p.children,!0,r);r.flatten?s.push.apply(s,v):s.push({scopeParent:o,candidates:v})}else i.unshift.apply(i,o.children)}}return s},Ue=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Ge=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ce=function(e){return"INPUT"===e.tagName},Oe=function(e){var t=e.getBoundingClientRect();return 0===t.width&&0===t.height},X=function(e,t){return!(t.disabled||function(e){return Ce(e)&&"hidden"===e.type}(t)||function(e,t){var r=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=$.call(e,"details>summary:first-of-type");if($.call(i?e.parentElement:e,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return Oe(e)}else{if("function"==typeof s){for(var l=e;e;){var u=e.parentElement,a=Q(e);if(u&&!u.shadowRoot&&!0===s(u))return Oe(e);e=e.assignedSlot?e.assignedSlot:u||a===e.ownerDocument?u:a.host}e=l}if(function(e){for(var t,r=Q(e).host,s=!!(null!==(t=r)&&void 0!==t&&t.ownerDocument.contains(r)||e.ownerDocument.contains(e));!s&&r;){var i;s=!(null===(i=r=Q(r).host)||void 0===i||!i.ownerDocument.contains(r))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(r){return"SUMMARY"===r.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r=0)},it=function n(e){var t=[],r=[];return e.forEach(function(s,i){var o=!!s.scopeParent,l=o?s.scopeParent:s,u=Ue(l,o),a=o?n(s.candidates):l;0===u?o?t.push.apply(t,a):t.push(l):r.push({documentOrder:i,tabIndex:u,item:s,isScope:o,content:a})}),r.sort(Ge).reduce(function(s,i){return i.isScope?s.push.apply(s,i.content):s.push(i.content),s},[]).concat(t)},nt=function(e,t){var r;return r=(t=t||{}).getShadowRoot?Te([e],t.includeContainer,{filter:le.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:st}):ke(e,t.includeContainer,le.bind(null,t)),it(r)},ee=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==$.call(e,K)&&le(t,e)},at=Ie.concat("iframe").join(","),ce=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==$.call(e,at)&&X(t,e)};function xe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,r)}return t}function Re(n){for(var e=1;e0){var r=n[n.length-1];r!==t&&r.pause()}var s=n.indexOf(t);-1===s||n.splice(s,1),n.push(t)},deactivateTrap:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),n.length>0&&n[n.length-1].unpause()}}),De=function(e){return setTimeout(e,0)},Ne=function(e,t){var r=-1;return e.every(function(s,i){return!t(s)||(r=i,!1)}),r},J=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s{this.open=!1},document.body.appendChild(this.container),this.addHandles((0,ae.YP)(()=>this.open,()=>this._toggleFocusTrap()))}destroy(){this._destroyFocusTrap()}get title(){return this.messages?.auth.signIn}render(){const n=this.id,{open:e,content:t,title:r,messages:s}=this,i=e&&!!t,o={"esri-identity-modal--open":i,"esri-identity-modal--closed":!i},l=(0,P.u)("button",{class:"esri-identity-modal__close-button","aria-label":s.close,title:s.close,bind:this,onclick:this._close,type:"button"},(0,P.u)("span",{"aria-hidden":"true",class:"esri-icon-close"})),u=`${n}_title`,a=`${n}_content`,h=r?(0,P.u)("h1",{id:u,class:"esri-identity-modal__title"},r):null,p=i?(0,P.u)("div",{bind:this,class:"esri-identity-modal__dialog",role:"dialog","aria-labelledby":u,"aria-describedby":a,afterCreate:this._createFocusTrap},l,h,this._renderContent(a)):null;return(0,P.u)("div",{tabIndex:-1,class:this.classes("esri-identity-modal",o)},p)}_destroyFocusTrap(){this._focusTrap?.deactivate({onDeactivate:()=>{}}),this._focusTrap=null}_toggleFocusTrap(){const{_focusTrap:n,open:e}=this;n&&(e?n.activate():n.deactivate())}_createFocusTrap(n){this._destroyFocusTrap();const e=requestAnimationFrame(()=>{this._focusTrap=function(e,t){var o,r=t?.document||document,s=Re({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},l=function(d,f,S){return d&&void 0!==d[f]?d[f]:s[S||f]},u=function(d){return i.containerGroups.findIndex(function(f){var N=f.tabbableNodes;return f.container.contains(d)||N.find(function(D){return D===d})})},a=function(d){var f=s[d];if("function"==typeof f){for(var S=arguments.length,N=new Array(S>1?S-1:0),D=1;D=0)d=r.activeElement;else{var f=i.tabbableGroups[0];d=f&&f.firstTabbableNode||a("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},p=function(){if(i.containerGroups=i.containers.map(function(d){var f=nt(d,s.tabbableOptions),S=function(e,t){return(t=t||{}).getShadowRoot?Te([e],t.includeContainer,{filter:X.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ke(e,t.includeContainer,X.bind(null,t))}(d,s.tabbableOptions);return{container:d,tabbableNodes:f,focusableNodes:S,firstTabbableNode:f.length>0?f[0]:null,lastTabbableNode:f.length>0?f[f.length-1]:null,nextTabbableNode:function(D){var F=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],z=S.findIndex(function(Z){return Z===D});if(!(z<0))return F?S.slice(z+1).find(function(Z){return ee(Z,s.tabbableOptions)}):S.slice(0,z).reverse().find(function(Z){return ee(Z,s.tabbableOptions)})}}}),i.tabbableGroups=i.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!a("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},c=function x(d){if(!1!==d&&d!==r.activeElement){if(!d||!d.focus)return void x(h());d.focus({preventScroll:!!s.preventScroll}),i.mostRecentlyFocusedNode=d,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(d)&&d.select()}},v=function(d){var f=a("setReturnFocus",d);return f||!1!==f&&d},b=function(d){var f=te(d);if(!(u(f)>=0)){if(J(s.clickOutsideDeactivates,d))return void o.deactivate({returnFocus:s.returnFocusOnDeactivate&&!ce(f,s.tabbableOptions)});J(s.allowOutsideClick,d)||d.preventDefault()}},_=function(d){var f=te(d),S=u(f)>=0;S||f instanceof Document?S&&(i.mostRecentlyFocusedNode=f):(d.stopImmediatePropagation(),c(i.mostRecentlyFocusedNode||h()))},C=function(d){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(d)&&!1!==J(s.escapeDeactivates,d))return d.preventDefault(),void o.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(d)&&function(d){var f=te(d);p();var S=null;if(i.tabbableGroups.length>0){var N=u(f),D=N>=0?i.containerGroups[N]:void 0;if(N<0)S=d.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(d.shiftKey){var F=Ne(i.tabbableGroups,function(ve){return f===ve.firstTabbableNode});F<0&&(D.container===f||ce(f,s.tabbableOptions)&&!ee(f,s.tabbableOptions)&&!D.nextTabbableNode(f,!1))&&(F=N),F>=0&&(S=i.tabbableGroups[0===F?i.tabbableGroups.length-1:F-1].lastTabbableNode)}else{var W=Ne(i.tabbableGroups,function(ve){return f===ve.lastTabbableNode});W<0&&(D.container===f||ce(f,s.tabbableOptions)&&!ee(f,s.tabbableOptions)&&!D.nextTabbableNode(f))&&(W=N),W>=0&&(S=i.tabbableGroups[W===i.tabbableGroups.length-1?0:W+1].firstTabbableNode)}}else S=a("fallbackFocus");S&&(d.preventDefault(),c(S))}(d)},y=function(d){var f=te(d);u(f)>=0||J(s.clickOutsideDeactivates,d)||J(s.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},k=function(){if(i.active)return Pe.activateTrap(o),i.delayInitialFocusTimer=s.delayInitialFocus?De(function(){c(h())}):c(h()),r.addEventListener("focusin",_,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",y,{capture:!0,passive:!1}),r.addEventListener("keydown",C,{capture:!0,passive:!1}),o},T=function(){if(i.active)return r.removeEventListener("focusin",_,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",y,!0),r.removeEventListener("keydown",C,!0),o};return(o={get active(){return i.active},get paused(){return i.paused},activate:function(d){if(i.active)return this;var f=l(d,"onActivate"),S=l(d,"onPostActivate"),N=l(d,"checkCanFocusTrap");N||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,f&&f();var D=function(){N&&p(),k(),S&&S()};return N?(N(i.containers.concat()).then(D,D),this):(D(),this)},deactivate:function(d){if(!i.active)return this;var f=Re({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},d);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,T(),i.active=!1,i.paused=!1,Pe.deactivateTrap(o);var S=l(f,"onDeactivate"),N=l(f,"onPostDeactivate"),D=l(f,"checkCanReturnFocus"),F=l(f,"returnFocus","returnFocusOnDeactivate");S&&S();var z=function(){De(function(){F&&c(v(i.nodeFocusedBeforeActivation)),N&&N()})};return F&&D?(D(v(i.nodeFocusedBeforeActivation)).then(z,z),this):(z(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,T()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,p(),k(),this):this},updateContainerElements:function(d){var f=[].concat(d).filter(Boolean);return i.containers=f.map(function(S){return"string"==typeof S?r.querySelector(S):S}),i.active&&p(),this}}).updateContainerElements(e),o}(n,{initialFocus:"input",onDeactivate:this._close}),this._toggleFocusTrap()});this.addHandles((0,Ze.kB)(()=>cancelAnimationFrame(e)))}_renderContent(n){const e=this.content;return"string"==typeof e?(0,P.u)("div",{class:q_content,id:n,innerHTML:e}):(0,$e.Qd)(e)?(0,P.u)("div",{class:q_content,id:n},e.render()):e instanceof HTMLElement?(0,P.u)("div",{class:q_content,id:n,bind:e,afterCreate:this._attachToNode}):null}_attachToNode(n){n.appendChild(this)}};(0,g._)([(0,m.Cb)({readOnly:!0})],H.prototype,"container",void 0),(0,g._)([(0,m.Cb)()],H.prototype,"content",void 0),(0,g._)([(0,m.Cb)()],H.prototype,"open",void 0),(0,g._)([(0,m.Cb)(),(0,we.H)("esri/t9n/common")],H.prototype,"messages",void 0),(0,g._)([(0,m.Cb)()],H.prototype,"title",null),H=(0,g._)([(0,G.j)("esri.identity.IdentityModal")],H);const Ee=H,ue="esriJSAPIOAuth";class he{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)e=!0;else if(this.expires){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return!1;const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r||(r=e[t.authNamespace]={}),this.appId||(this.appId=t.appId),r[t.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(ue,JSON.stringify(e))}catch(s){return console.warn(s),!1}return!0}return!1}destroy(){const e=this._load(),t=this.oAuthInfo;if(t&&t.appId&&t.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){const r=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",s=new FormData;if(s.append("f","json"),s.append("auth_token",this.refreshToken||this.token),s.append("client_id",t.appId),s.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(r,s);else{const i=new XMLHttpRequest;i.open("POST",r),i.send(s)}}if(t&&t.authNamespace&&t.portalUrl&&this.storage){const r=e[t.authNamespace];if(r){delete r[t.portalUrl];try{this.storage.setItem(ue,JSON.stringify(e))}catch(s){console.log(s)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r&&(r=r[t.portalUrl],r&&(this.appId=r.appId,this.codeVerifier=r.codeVerifier,this.expires=r.expires,this.refreshToken=r.refreshToken,this.ssl=r.ssl,this.stateUID=r.stateUID,this.token=r.token,this.userId=r.userId))}}_load(){let e={};if(this.storage){const t=this.storage.getItem(ue);if(t)try{e=JSON.parse(t)}catch(r){console.warn(r)}}return e}}he.prototype.declaredClass="esri.identity.OAuthCredential";var de,Fe=A(86810);let E=de=class extends Fe.wq{constructor(n){super(n),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return de.fromJSON(this.toJSON())}};(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"appId",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"authNamespace",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"expiration",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"flowType",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"forceLogin",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"forceUserId",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"locale",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"minTimeUntilExpiration",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"popup",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"popupCallbackUrl",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"popupWindowFeatures",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"portalUrl",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"preserveUrlHash",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],E.prototype,"userId",void 0),E=de=(0,g._)([(0,G.j)("esri.identity.OAuthInfo")],E);const je=E;let L=class extends Fe.wq{constructor(n){super(n),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"adminTokenServiceUrl",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"currentVersion",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"hasPortal",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"hasServer",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"owningSystemUrl",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"owningTenant",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"server",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"shortLivedTokenValidity",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"tokenServiceUrl",void 0),(0,g._)([(0,m.Cb)({json:{write:!0}})],L.prototype,"webTierAuth",void 0),L=(0,g._)([(0,G.j)("esri.identity.ServerInfo")],L);const pe=L;var pt=A(24433);const re={},Le=n=>{const e=new w.R9(n.owningSystemUrl).host,t=new w.R9(n.server).host,r=/.+\.arcgis\.com$/i;return r.test(e)&&r.test(t)},fe=(n,e)=>!!(Le(n)&&e&&e.some(t=>t.test(n.server)));let se=null,ie=null;try{se=window.localStorage,ie=window.sessionStorage}catch{}class Be extends _e.Z{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.formConstructor=He,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,w.mN)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer)).*/gi,this._gwUser=/http.+\/users\/([^\/]+)\/?.*/i,this._gwItem=/http.+\/items\/([^\/]+)\/?.*/i,this._gwGroup=/http.+\/groups\/([^\/]+)\/?.*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getOAuthLocationParams(),window.addEventListener("pageshow",e=>{this._pageShowHandler(e)})}registerServers(e){const t=this.serverInfos;t?(e=e.filter(r=>!this.findServerInfo(r.server)),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach(r=>{r.owningSystemUrl&&this._portals.push(r.owningSystemUrl),r.hasPortal&&this._portals.push(r.server)})}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const s=this.findOAuthInfo(r.portalUrl);s&&t.splice(t.indexOf(s),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let s,i=this.findServerInfo(t),o=!0;i||(i=new pe,i.server=this._getServerInstanceRoot(t),r?i.hasServer=!0:(i.tokenServiceUrl=this._getTokenSvcUrl(t),i.hasPortal=!0),this.registerServers([i])),s=this._findCredential(t),s?(delete e.server,Object.assign(s,e),o=!1):(s=new U({userId:e.userId,server:i.server,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),s.resources=[t],this.credentials.push(s)),s.emitTokenChange(!1),o||s.refreshServerTokens()}toJSON(){return(0,be.yd)({serverInfos:this.serverInfos.map(e=>e.toJSON()),oAuthInfos:this.oAuthInfos.map(e=>e.toJSON()),credentials:this.credentials.map(e=>e.toJSON())})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){const i=[];t.forEach(o=>{o.server&&o.tokenServiceUrl&&i.push(o.declaredClass?o:new pe(o))}),i.length&&this.registerServers(i)}if(r){const i=[];r.forEach(o=>{o.appId&&i.push(o.declaredClass?o:new je(o))}),i.length&&this.registerOAuthInfos(i)}s&&s.forEach(i=>{i.server&&i.token&&i.expires&&i.expires>Date.now()&&((i=i.declaredClass?i:new U(i)).emitTokenChange(),this.credentials.push(i))})}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){if(!e)return;let r;e=this._sanitizeUrl(e);const s=this._isServerRsrc(e)?"server":"portal";if(t){for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&t===i.userId&&i.scope===s){r=i;break}}else for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&-1!==this._getIdenticalSvcIdx(e,i)&&i.scope===s){r=i;break}return r}getCredential(e,t){let r,s,i=!0;t&&(r=!!t.token,s=t.error,i=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const o=new AbortController,l=(0,B.hh)();if(t.signal&&(0,B.fu)(t.signal,()=>{o.abort()}),(0,B.fu)(o,()=>{l.reject(new R.Z("identity-manager:user-aborted","ABORTED"))}),(0,B.Hc)(o))return l.promise;t.signal=o.signal;const u=this._isAdminResource(e),a=r?this.findCredential(e):null;let h;if(a&&s&&s.details&&498===s.details.httpStatus)a.destroy();else if(a)return h=new R.Z("identity-manager:not-authorized","You are currently signed in as: '"+a.userId+"'. You do not have access to this resource: "+e,{error:s}),l.reject(h),l.promise;const p=this._findCredential(e,t);if(p)return l.resolve(p),l.promise;let c=this.findServerInfo(e);if(c)!c.hasServer&&this._isServerRsrc(e)&&(c._restInfoPms=this._getTokenSvcUrl(e),c.hasServer=!0);else{const v=this._getTokenSvcUrl(e);if(!v)return h=new R.Z("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),l.reject(h),l.promise;c=new pe,c.server=this._getServerInstanceRoot(e),"string"==typeof v?(c.tokenServiceUrl=v,c.hasPortal=!0):(c._restInfoPms=v,c.hasServer=!0),this.registerServers([c])}return c.hasPortal&&void 0===c._selfReq&&(i||(0,w.D6)(c.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(v=>v.tokenServiceUrl===c.tokenServiceUrl))&&(c._selfReq={owningTenant:t&&t.owningTenant,selfDfd:this._getPortalSelf(c.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,c,t,l,u)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const s=this._rePortalTokenSvc.test(e.tokenServiceUrl),i=new w.R9(this._appOrigin),o=e.shortLivedTokenValidity;let l,u,a,h,p,c,v,b;t&&(b=this.tokenValidity||o||this._defaultTokenValidity,b>o&&o>0&&(b=o)),r&&(l=r.isAdmin,u=r.serverUrl,a=r.token,c=r.signal,v=r.ssl,e.customParameters=r.customParameters),l?h=e.adminTokenServiceUrl:(h=e.tokenServiceUrl,p=new w.R9(h.toLowerCase()),e.webTierAuth&&r?.serverUrl&&!v&&"http"===i.scheme&&((0,w.D6)(i.uri,h,!0)||"https"===p.scheme&&i.host===p.host&&"7080"===i.port&&"7443"===p.port)&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const _={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:u,token:a,expiration:b,referer:l||s?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:c,...r?.ioArgs};return s||(_.withCredentials=!1),(0,V.default)(h,_).then(I=>{const C=I.data;if(!C||!C.token)return new R.Z("identity-manager:authentication-failed","Unable to generate token");const y=e.server;return re[y]||(re[y]={}),t&&(re[y][t.username]=t.password),C.validity=b,C})}isBusy(){return!!this._busy}checkSignInStatus(e){return this.checkAppAccess(e,"").then(t=>t.credential)}checkAppAccess(e,t,r){let s=!1;return this.getCredential(e,{prompt:!1}).then(i=>{let o;const l={f:"json"};if("portal"===i.scope)if(t&&(this._doPortalSignIn(e)||r&&r.force))o=i.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!i.token)return{credential:i};o=i.server+"/sharing/rest"}else{if(!i.token)return{credential:i};o=i.server+"/rest/services"}return i.token&&(l.token=i.token),(0,V.default)(o,{query:l,authMode:"anonymous"}).then(u=>{if(!1===u.data.valid)throw new R.Z("identity-manager:not-authorized",`You are currently signed in as: '${i.userId}'.`,u.data);return s=!!u.data.viewOnlyUserTypeApp,{credential:i}}).catch(u=>{if("identity-manager:not-authorized"===u.name)throw u;const a=u.details&&u.details.httpStatus;if(498===a)throw i.destroy(),new R.Z("identity-manager:not-authenticated","User is not signed in.");if(400===a)throw new R.Z("identity-manager:invalid-request");return{credential:i}})}).then(i=>({credential:i.credential,viewOnly:s}))}setOAuthResponseHash(e){e&&("#"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,w.u0)(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,r={}){const s=(0,B.hh)(),i=()=>{u?.remove(),a?.remove(),h?.remove(),l?.destroy(),this.dialog?.destroy(),this.dialog=l=u=a=h=null},o=()=>{i(),this._oAuthDfd=null,s.reject(new R.Z("identity-manager:user-aborted","ABORTED"))};r.signal&&(0,B.fu)(r.signal,()=>{o()});let l=new this.formConstructor;l.resource=this.getResourceName(e),l.server=t.server,this.dialog=new Ee,this.dialog.content=l,this.dialog.open=!0,this.emit("dialog-create");let u=l.on("cancel",o),a=(0,ae.YP)(()=>this.dialog.open,o),h=l.on("submit",p=>{this.generateToken(t,p,{isAdmin:r.isAdmin,signal:r.signal}).then(c=>{i();const v=new U({userId:p.username,server:t.server,token:c.token,expires:null!=c.expires?Number(c.expires):null,ssl:!!c.ssl,isAdmin:r.isAdmin,validity:c.validity});s.resolve(v)}).catch(c=>{l.error=c,l.signingIn=!1})});return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=(0,B.hh)();const i=this._oAuthDfd;let o;s?.signal&&(0,B.fu)(s.signal,()=>{const b=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;b&&!b.closed?b.close():this.dialog&&c()}),i.resUrl_=e,i.sinfo_=t,i.oinfo_=r;const l=r._oAuthCred;if(l.storage&&("authorization-code"===r.flowType||"auto"===r.flowType&&!r.popup&&t.currentVersion>=8.4)){let b=crypto.getRandomValues(new Uint8Array(32));o=(0,w.rS)(b),l.codeVerifier=o,b=crypto.getRandomValues(new Uint8Array(32)),l.stateUID=(0,w.rS)(b),l.save()||(l.codeVerifier=o=null)}else l.codeVerifier=null;let u,a,h,p;this._getCodeChallenge(o).then(b=>{!r.popup||s&&!1===s.oAuthPopupConfirmation?this._doOAuthSignIn(e,t,r,b):(u=new this.formConstructor,u.oAuthPrompt=!0,u.server=t.server,this.dialog=new Ee,this.dialog.content=u,this.dialog.open=!0,this.emit("dialog-create"),a=u.on("cancel",c),h=(0,ae.YP)(()=>this.dialog.open,c),p=u.on("submit",()=>{v(),this._doOAuthSignIn(e,t,r,b)}))});const c=()=>{v(),this._oAuthDfd=null,i.reject(new R.Z("identity-manager:user-aborted","ABORTED"))},v=()=>{a?.remove(),h?.remove(),p?.remove(),u?.destroy(),this.dialog?.destroy(),this.dialog=null};return i.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(e=>{e.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,oe.on)(window,"message",t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){const r=t.source;this.getCredential(e).then(s=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:s.expires,server:s.server,ssl:s.ssl,token:s.token,userId:s.userId}},t.origin)}).catch(s=>{r.postMessage({type:"arcgis:auth:error",error:{name:s.name,message:s.message}},t.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.substring(1));const r=(0,w.u0)(e);let s=!1;if(r.access_token&&r.expires_in&&r.state&&r.hasOwnProperty("username"))try{r.state=JSON.parse(r.state),r.state.portalUrl&&(this._oAuthLocationParams=r,s=!0)}catch{}else if(r.error&&r.error_description&&(console.log("IdentityManager OAuth Error: ",r.error," - ",r.error_description),"access_denied"===r.error&&(s=!0,r.state)))try{r.state=JSON.parse(r.state)}catch{}s&&(window.location.hash=r.state?.hash||"")}let t=window.location.search;if(t){"?"===t.charAt(0)&&(t=t.substring(1));const r=(0,w.u0)(t);let s=!1;if(r.code&&r.state)try{r.state=JSON.parse(r.state),r.state.portalUrl&&r.state.uid&&(this._oAuthLocationParams=r,s=!0)}catch{}else if(r.error&&r.error_description&&(console.log("IdentityManager OAuth Error: ",r.error," - ",r.error_description),"access_denied"===r.error&&(s=!0,r.state)))try{r.state=JSON.parse(r.state)}catch{}if(s){const i={...r};["code","error","error_description","message_code","persist","state"].forEach(u=>{delete i[u]});const o=(0,w.B7)(i),l=window.location.pathname+(o?`?${o}`:"")+(r.state?.hash||"");window.history.replaceState(window.history.state,"",l)}}}_getOAuthToken(e,t,r,s,i){return e=e.replace(/^http:/i,"https:"),(0,V.default)(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:s&&i?{grant_type:"authorization_code",code:t,redirect_uri:s,client_id:r,code_verifier:i}:{grant_type:"refresh_token",refresh_token:t,client_id:r}}).then(o=>o.data)}_getCodeChallenge(e){if(e&&globalThis.isSecureContext){const t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then(r=>(0,w.rS)(new Uint8Array(r)))}return Promise.resolve(null)}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const t=new R.Z("identity-manager:user-aborted","ABORTED");this._errbackFunc(t)}}_findCredential(e,t){let r,s,i,o,l=-1;const u=t&&t.token,a=t&&t.resource,h=this._isServerRsrc(e)?"server":"portal",p=this.credentials.filter(c=>this._hasSameServerInstance(c.server,e)&&c.scope===h);if(e=a||e,p.length)if(1===p.length){if(r=p[0],i=this.findServerInfo(r.server),s=i&&i.owningSystemUrl,o=s?this.findCredential(s,r.userId):void 0,l=this._getIdenticalSvcIdx(e,r),!u)return-1===l&&r.resources.push(e),this._addResource(e,o),r;-1!==l&&(r.resources.splice(l,1),this._removeResource(e,o))}else{let c,v;if(p.some(b=>(v=this._getIdenticalSvcIdx(e,b),-1!==v&&(c=b,i=this.findServerInfo(c.server),s=i&&i.owningSystemUrl,o=s?this.findCredential(s,c.userId):void 0,l=v,!0))),u)c&&(c.resources.splice(l,1),this._removeResource(e,o));else if(c)return this._addResource(e,o),c}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1))}_useProxy(e,t){return t&&t.isAdmin&&!(0,w.D6)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,w.D6)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new w.R9(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return-1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1!==r||(0,pt.P)(t)||(r=t.indexOf("/sharing")),-1===r&&"/"===t.substr(-1)&&(r=t.length-1),r>-1?e.substring(0,r):e}_hasSameServerInstance(e,t){return"/"===e.substr(-1)&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=this._normalizeAGOLorgDomain(e),t=this._normalizeAGOLorgDomain(t),(e=e.substr(e.indexOf(":")))===t.substr(t.indexOf(":"))}_normalizeAGOLorgDomain(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,s=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):s.test(e)&&(e=e.replace(s,"https://qaext.arcgis.com")),e}_sanitizeUrl(e){const t=(ne.Z.request.proxyUrl||"").toLowerCase(),r=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==r&&(e=e.substring(r+t.length+1)),e=(0,w.Fv)(e),(0,w.mN)(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r=!1;if(this._isRESTService(e)&&this._isRESTService(t)){const s=this._getSuffix(e).toLowerCase(),i=this._getSuffix(t).toLowerCase();if(r=s===i,!r){const o=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replace(o,"$1")===i.replace(o,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const t=new w.R9(e.toLowerCase()),r=this._portalConfig;let s=this._gwDomains.some(i=>i.regex.test(t.uri));return!s&&r&&(s=this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t.uri)),s||ne.Z.portalUrl&&(s=(0,w.D6)(t,ne.Z.portalUrl,!0)),s||(s=this._portals.some(i=>this._hasSameServerInstance(i,t.uri))),s=s||this._agsPortal.test(t.path),s}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach((o,l)=>{-1===r&&o.regex.test(e)&&(r=l),-1===s&&o.regex.test(t)&&(s=l)});let i=!1;if(r>-1&&s>-1&&(0===r||4===r?0!==s&&4!==s||(i=!0):1===r?1!==s&&2!==s||(i=!0):2===r?2===s&&(i=!0):3===r&&3===s&&(i=!0)),!i){const o=this.findServerInfo(t),l=o&&o.owningSystemUrl;l&&Le(o)&&this._isPortalDomain(l)&&this._isIdProvider(e,l)&&(i=!0)}return i}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;so.data),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let i="";if(this._gwDomains.some(o=>(o.regex.test(e)&&(i=o.tokenServiceUrl),!!i)),i||this._portals.some(o=>(this._hasSameServerInstance(o,e)&&(i=o+this._gwTokenUrl),!!i)),i||(s=e.toLowerCase().indexOf("/sharing"),-1!==s&&(i=e.substring(0,s)+this._gwTokenUrl)),i||(i=this._getOrigin(e)+this._gwTokenUrl),i){const o=new w.R9(e).port;/^http:\/\//i.test(e)&&"7080"===o&&(i=i.replace(/:7080/i,":7443")),i=i.replace(/http:/i,"https:")}return i}if(e.toLowerCase().includes("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"}_processOAuthResponseParams(e,t,r){const s=t._oAuthCred;if(e.code){const o=s.codeVerifier;return s.codeVerifier=null,s.stateUID=null,s.save(),this._getOAuthToken(r.server,e.code,t.appId,this._getRedirectURI(t,!0),o).then(l=>{const u=new U({userId:l.username,server:r.server,token:l.access_token,expires:Date.now()+1e3*l.expires_in,ssl:l.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=u.userId,s.storage=l.persist?se:ie,s.refreshToken=l.refresh_token,s.token=null,s.expires=l.refresh_token_expires_in?Date.now()+1e3*l.refresh_token_expires_in:null,s.userId=u.userId,s.ssl=u.ssl,s.save(),u})}const i=new U({userId:e.username,server:r.server,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=i.userId,s.storage=e.persist?se:ie,s.refreshToken=null,s.token=i.token,s.expires=i.expires,s.userId=i.userId,s.ssl=i.ssl,s.save(),Promise.resolve(i)}_processOAuthPopupParams(e){const t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){const r="access_denied"===e.error,s=new R.Z(r?"identity-manager:user-aborted":"identity-manager:authentication-failed",r?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(s)}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then(r=>{t.resolve(r)}).catch(r=>{t.reject(r)})}_setOAuthResponseQueryString(e){e&&("?"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,w.u0)(e)))}_exchangeToken(e,t,r){return(0,V.default)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}}).then(s=>s.data.token)}_getPlatformSelf(e,t){return e=e.replace(/^http:/i,"https:"),(0,V.default)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0}).then(r=>r.data)}_getPortalSelf(e,t){let r;return this._gwDomains.some(s=>(s.regex.test(e)&&(r=s.customBaseUrl),!!r)),r?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,V.default)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(s=>s.data))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,w.D6)(r,e,!0)))}_checkProtocol(e,t,r,s){let i=!0;const o=s?t.adminTokenServiceUrl:t.tokenServiceUrl;return o.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,w.ed)(o)&&(i=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!i)&&r(new R.Z("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),i}_enqueue(e,t,r,s,i,o){return s||(s=(0,B.hh)()),s.resUrl_=e,s.sinfo_=t,s.options_=r,s.admin_=i,s.refresh_=o,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=a=>{const h=e.options_&&e.options_.resource,p=e.resUrl_,c=e.refresh_;let v=!1;this.credentials.includes(a)||(c&&this.credentials.includes(c)?(c.userId=a.userId,c.token=a.token,c.expires=a.expires,c.validity=a.validity,c.ssl=a.ssl,c.creationTime=a.creationTime,v=!0,a=c):this.credentials.push(a)),a.resources||(a.resources=[]),a.resources.includes(h||p)||a.resources.push(h||p),a.scope=this._isServerRsrc(p)?"server":"portal",a.emitTokenChange();const b=this._soReqs,_={};this._soReqs=[],b.forEach(I=>{if(!this._isIdenticalService(p,I.resUrl_)){const C=this._getSuffix(I.resUrl_);_[C]||(_[C]=!0,a.resources.push(I.resUrl_))}}),e.resolve(a),b.forEach(I=>{this._hasSameServerInstance(this._getServerInstanceRoot(p),I.resUrl_)?I.resolve(a):this._soReqs.push(I)}),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,v||this.emit("credential-create",{credential:a}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=a=>{e.reject(a),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=(a,h,p,c)=>{const v=e.sinfo_,b=!e.options_||!1!==e.options_.prompt,_=v.hasPortal&&this._findOAuthInfo(e.resUrl_);let I,C;if(a)t(new U({userId:a,server:v.server,token:p||null,expires:null!=c?Number(c):null,ssl:!!h}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const y=(0,oe.on)(window,"message",k=>{k.source===window.parent&&k.data&&("arcgis:auth:credential"===k.data.type?(y.remove(),k.data.credential.expires{y.remove()})}else if(_){let y=_._oAuthCred;if(!y){const k=new he(_,se),T=new he(_,ie);k.isValid()&&T.isValid()?k.expires>T.expires?(y=k,T.destroy()):(y=T,k.destroy()):y=k.isValid()?k:T,_._oAuthCred=y}if(y.isValid()){I=new U({userId:y.userId,server:v.server,token:y.token,expires:y.expires,ssl:y.ssl,_oAuthCred:y});const k=_.appId!==y.appId&&this._doPortalSignIn(e.resUrl_);k||y.refreshToken?(e._pendingDfd=y.refreshToken?this._getOAuthToken(v.server,y.refreshToken,y.appId).then(T=>(I.expires=Date.now()+1e3*T.expires_in,I.token=T.access_token,I)):Promise.resolve(I),e._pendingDfd.then(T=>k?this._exchangeToken(T.server,_.appId,T.token).then(x=>(T.token=x,T)).catch(()=>T):T).then(T=>{t(T)}).catch(()=>{y?.destroy(),s()})):t(I)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(_.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===y.stateUID&&y.codeVerifier)){const k=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(k,_,v).then(T=>{t(T)}).catch(r)}else{const k=()=>{b?e._pendingDfd=this.oAuthSignIn(e.resUrl_,v,_,e.options_).then(t,r):(C=new R.Z("identity-manager:not-authenticated","User is not signed in."),r(C))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(v.server,_.appId).then(T=>{(0,w.D6)(T.portalUrl,this._appOrigin,!0)?(I=new U({userId:T.username,server:v.server,expires:Date.now()+1e3*T.expires_in,token:T.token}),t(I)):k()}).catch(k):k()}}else if(b){if(this._checkProtocol(e.resUrl_,v,r,e.admin_)){let y=e.options_;e.admin_&&(y=y||{},y.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,v,y).then(t,r)}}else C=new R.Z("identity-manager:not-authenticated","User is not signed in."),r(C)},i=()=>{const a=e.sinfo_,h=a.owningSystemUrl,p=e.options_;let c,v,b,_;if(p&&(c=p.token,v=p.error,b=p.prompt),_=this._findCredential(h,{token:c,resource:e.resUrl_}),!_)for(const I of this.credentials)if(this._isIdProvider(h,I.server)){_=I;break}if(_){const I=this.findCredential(e.resUrl_,_.userId);if(I)t(I);else if(fe(a,this._legacyFed)){const C=_.toJSON();C.server=a.server,C.resources=null,t(new U(C))}else(e._pendingDfd=this.generateToken(this.findServerInfo(_.server),null,{serverUrl:e.resUrl_,token:_.token,signal:e.options_.signal,ssl:_.ssl})).then(C=>{t(new U({userId:_?.userId,server:a.server,token:C.token,expires:null!=C.expires?Number(C.expires):null,ssl:!!C.ssl,isAdmin:e.admin_,validity:C.validity}))},r)}else this._busy=null,c&&(e.options_.token=null),(e._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:a.owningTenant,signal:e.options_.signal,token:c,error:v,prompt:b})).then(()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)},I=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(I)})};this._errbackFunc=r;const o=e.sinfo_.owningSystemUrl,l=this._isServerRsrc(e.resUrl_),u=e.sinfo_._restInfoPms;u?u.promise.then(a=>{const h=e.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=((0,Y.hS)("authInfo.tokenServicesUrl",a)||(0,Y.hS)("authInfo.tokenServiceUrl",a)||(0,Y.hS)("tokenServiceUrl",a))??null,h.shortLivedTokenValidity=(0,Y.hS)("authInfo.shortLivedTokenValidity",a)??null,h.currentVersion=a.currentVersion,h.owningTenant=a.owningTenant;const p=h.owningSystemUrl=a.owningSystemUrl;p&&this._portals.push(p)}l&&h.owningSystemUrl?i():s()},()=>{e.sinfo_._restInfoPms=null;const a=new R.Z("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(a)}):l&&o?i():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then(a=>{const h={};let p,c,v,b;return a&&(p=a.user&&a.user.username,h.username=p,h.allSSL=a.allSSL,c=a.supportsOAuth,b=parseFloat(a.currentVersion),"multitenant"===a.portalMode&&(v=a.customBaseUrl),e.sinfo_.currentVersion=b),e.sinfo_.webTierAuth=!!p,p&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(_=>(h.portalToken=_&&_.token,h.tokenExpiration=_&&_.expires,h)):!p&&c&&b>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:v,owningTenant:e.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(a=>{e.sinfo_._selfReq=null,a?s(a.username,a.allSSL,a.portalToken,a.tokenExpiration):s()}):s()}_generateOAuthInfo(e){let t,r=null,s=e.portalUrl;const i=e.customBaseUrl,o=e.owningTenant,l=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(l){r=window.location.href;let u=r.indexOf("?");u>-1&&(r=r.slice(0,u)),u=r.search(/\/(apps|home)\//),r=u>-1?r.slice(0,u):null}return l&&r?(this._hasTestedIfAppIsOnPortal=!0,t=(0,V.default)(r+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new je({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"})})):t=Promise.resolve(),t.then(()=>{if(this._defaultOAuthInfo)return s=s.replace(/^http:/i,"https:"),(0,V.default)(s+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:o,client_id:this._defaultOAuthInfo.appId,redirect_uri:(0,w.hF)(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(u=>{if(u.data.valid){const a=this._defaultOAuthInfo.clone();a.portalUrl=u.data.urlKey&&i?"https://"+u.data.urlKey.toLowerCase()+"."+i:s,a.popup=window!==window.top||!((0,w.D6)(s,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(s)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(a)}})})}_doOAuthSignIn(e,t,r,s){const i=r._oAuthCred,o={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(o.hash=window.location.hash),i.stateUID&&(o.uid=i.stateUID);const l={client_id:r.appId,response_type:i.codeVerifier?"code":"token",state:JSON.stringify(o),expiration:r.expiration,locale:r.locale,redirect_uri:this._getRedirectURI(r,!!i.codeVerifier)};r.forceLogin&&(l.force_login=!0),r.forceUserId&&r.userId&&(l.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(l.redirectToUserOrgUrl=!0),i.codeVerifier&&(l.code_challenge=s||i.codeVerifier,l.code_challenge_method=s?"S256":"plain");const u=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",a=u+"?"+(0,w.B7)(l);if(r.popup){const h=window.open(a,"esriJSAPIOAuth",r.popupWindowFeatures);if(h)h.focus(),this._oAuthDfd.oAuthWin_=h,this._oAuthIntervalId=setInterval(()=>{if(h.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();const p=this._oAuthDfd;if(p){const c=new R.Z("identity-manager:user-aborted","ABORTED");p.reject(c)}}},500),this._oAuthOnPopupHandle=(0,oe.on)(window,["arcgis:auth:hash","arcgis:auth:location:search"],p=>{"arcgis:auth:hash"===p.type?this.setOAuthResponseHash(p.detail):this._setOAuthResponseQueryString(p.detail)});else{const p=new R.Z("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(p)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:l,authorizeUrl:u,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=a}_getRedirectURI(e,t){const r=window.location.href.replace(/#.*$/,"");if(e.popup)return(0,w.hF)(e.popupCallbackUrl);if(t){const s=(0,w.mN)(r);return s.query&&["code","error","error_description","message_code","persist","state"].forEach(i=>{delete s.query[i]}),(0,w.fl)(s.path,s.query)}return r}}Be.prototype.declaredClass="esri.identity.IdentityManagerBase";let U=class extends _e.Z.EventedAccessor{constructor(n){super(n),this._oAuthCred=null,this.tokenRefreshBuffer=2,n&&n._oAuthCred&&(this._oAuthCred=n._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){const n=O.id.findServerInfo(this.server),e=n&&n.owningSystemUrl,t=!!e&&"server"===this.scope,r=t&&fe(n,O.id._legacyFed),s=n.webTierAuth,i=s&&O.id.normalizeWebTierAuth,o=re[this.server],l=o&&o[this.userId];let u,a=this.resources&&this.resources[0],h=t?O.id.findServerInfo(e):null,p={username:this.userId,password:l};if(s&&!i)return;t&&!h&&O.id.serverInfos.some(v=>(O.id._isIdProvider(e,v.server)&&(h=v),!!h));const c=h?O.id.findCredential(h.server,this.userId):null;if(!t||c){if(!r){if(t)u={serverUrl:a,token:c&&c.token,ssl:c&&c.ssl};else if(i)p=null,u={ssl:this.ssl};else{if(!l){let v;return a&&(a=O.id._sanitizeUrl(a),this._enqueued=1,v=O.id._enqueue(a,n,null,null,this.isAdmin,this),v.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),v}this.isAdmin&&(u={isAdmin:!0})}return O.id.generateToken(t?h:n,t?null:p,u).then(v=>{this.token=v.token,this.expires=null!=v.expires?Number(v.expires):null,this.creationTime=Date.now(),this.validity=v.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}c?.refreshToken()}}refreshServerTokens(){"portal"===this.scope&&O.id.credentials.forEach(n=>{const e=O.id.findServerInfo(n.server),t=e&&e.owningSystemUrl;n!==this&&n.userId===this.userId&&t&&"server"===n.scope&&(O.id._hasSameServerInstance(this.server,t)||O.id._isIdProvider(t,this.server))&&(fe(e,O.id._legacyFed)?(n.token=this.token,n.expires=this.expires,n.creationTime=this.creationTime,n.validity=this.validity,n.emitTokenChange()):n.refreshToken())})}emitTokenChange(n){clearTimeout(this._refreshTimer);const e=this.server&&O.id.findServerInfo(this.server),t=e&&e.owningSystemUrl,r=t&&O.id.findServerInfo(t);!1===n||t&&"portal"!==this.scope&&(!r||!r.webTierAuth||O.id.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const n=O.id.credentials.indexOf(this);n>-1&&O.id.credentials.splice(n,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const n=(0,be.yd)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),e=this.resources;return e&&e.length>0&&(n.resources=e.slice()),n}_startRefreshTimer(){clearTimeout(this._refreshTimer);const n=6e4*this.tokenRefreshBuffer,e=2**31-1;let t=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();t<0?t=0:t>e&&(t=e),this._refreshTimer=setTimeout(this.refreshToken.bind(this),t>n?t-n:t)}};(0,g._)([(0,m.Cb)()],U.prototype,"creationTime",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"expires",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"isAdmin",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"oAuthState",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"resources",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"scope",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"server",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"ssl",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"token",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"tokenRefreshBuffer",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"userId",void 0),(0,g._)([(0,m.Cb)()],U.prototype,"validity",void 0),U=(0,g._)([(0,G.j)("esri.identity.Credential")],U);class qe extends Be{}qe.prototype.declaredClass="esri.identity.IdentityManager";const Ve=new qe;(0,O.qh)(Ve)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9080.cd04e6890e6f4009.js b/apps/n/porrtal-io-app/public/angular/9080.cd04e6890e6f4009.js deleted file mode 100644 index c2cf83da..00000000 --- a/apps/n/porrtal-io-app/public/angular/9080.cd04e6890e6f4009.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9080],{29080:(c,a,l)=>{l.r(a),l.d(a,{default:()=>I});const I="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjIiPjxjaXJjbGUgY3g9IjEyOCIgY3k9IjEyOCIgcj0iMTIxIi8+PC9zdmc+"}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9094.0fb9856e503d28a7.js b/apps/n/porrtal-io-app/public/angular/9094.0fb9856e503d28a7.js deleted file mode 100644 index edfb47af..00000000 --- a/apps/n/porrtal-io-app/public/angular/9094.0fb9856e503d28a7.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9094],{34013:(B,R,e)=>{e.d(R,{I:()=>W,b:()=>T});var l=e(62208),v=e(99770),f=e(13934),u=e(78925),D=e(24255),P=e(10109),g=e(67022),U=e(33726),d=e(2166),x=e(95285),A=e(65787),M=e(17625),n=e(22355),c=e(35387),h=e(44835),p=e(16396);function T(y){const m=new n.kG,{vertex:C,fragment:I}=m;return(0,d.Sv)(C,y),m.include(D.w,y),m.attributes.add(p.T.POSITION,"vec3"),m.attributes.add(p.T.UV0,"vec2"),m.varyings.add("vpos","vec3"),y.hasMultipassTerrain&&m.varyings.add("depth","float"),C.uniforms.add(new x.A("textureCoordinateScaleFactor",O=>(0,l.pC)(O.texture)&&(0,l.pC)(O.texture.descriptor.textureCoordinateScaleFactor)?O.texture.descriptor.textureCoordinateScaleFactor:v.O)),C.code.add(M.H` - void main(void) { - vpos = position; - ${y.hasMultipassTerrain?"depth = (view * vec4(vpos, 1.0)).z;":""} - vTexCoord = uv0 * textureCoordinateScaleFactor; - gl_Position = transformPosition(proj, view, vpos); - } - `),m.include(u.f5,y),m.include(P.l,y),I.uniforms.add([new c.A("tex",O=>O.texture),new A.p("opacity",O=>O.opacity)]),m.varyings.add("vTexCoord","vec2"),y.output===f.H.Alpha?I.code.add(M.H` - void main() { - discardBySlice(vpos); - ${y.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - - float alpha = texture2D(tex, vTexCoord).a * opacity; - if (alpha < ${M.H.float(g.F)}) { - discard; - } - - gl_FragColor = vec4(alpha); - } - `):(I.include(U.Y),I.code.add(M.H` - void main() { - discardBySlice(vpos); - ${y.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""} - gl_FragColor = texture2D(tex, vTexCoord) * opacity; - - if (gl_FragColor.a < ${M.H.float(g.F)}) { - discard; - } - - gl_FragColor = highlightSlice(gl_FragColor, vpos); - ${y.transparencyPassType===h.A.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""} - } - `)),m}const W=Object.freeze(Object.defineProperty({__proto__:null,build:T},Symbol.toStringTag,{value:"Module"}))},19702:(B,R,e)=>{e.d(R,{A:()=>A});var l=e(15861),v=e(17626),f=e(54024),u=e(10699),D=e(32917),P=e(77712),d=(e(85931),e(90912),e(76898)),x=e(36947);const A=M=>{let n=class extends M{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(c){super.postscript(c),(0,x.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var c=this;return(0,l.Z)(function*(){const h=new AbortController,p=h.signal;c.handles.add((0,f.kB)(()=>h.abort())),yield(0,D.N1)(()=>c.view.defaultsFromMap?.heightModelInfoReady,p),(0,u.k_)(p);const T=(0,x.Wt)(c.layer,c.view.heightModelInfo,c.supportsHeightUnitConversion);if(T)throw T})()}canResume(){const c=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!c||!c.minScale||!c.maxScale||c.minScale>=c.maxScale)}getSuspendInfo(){const c=super.getSuspendInfo(),h=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return h&&h.minScale&&h.maxScale&&h.minScale{e.r(R),e.d(R,{default:()=>a});var l=e(15861),v=e(17626),f=e(54024),u=e(62208),D=e(10699),P=e(32917),g=e(77712),x=(e(85931),e(90912),e(76898)),A=e(65401),M=e(14517),n=e(37118),c=e(55915),h=e(65629);let p=class extends M.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return(0,u.Wi)(t)||(0,u.Wi)(t.extent)?null:(0,A.oJ)(t.extent)}get coords(){const t=(0,u.Wg)(this.element.georeference)?.coords;return(0,c.dz)(t,this.spatialReference).geometry}get normalizedCoords(){return n.Z.fromJSON((0,h.Ui)(this.coords))}get normalizedBounds(){const t=(0,u.pC)(this.normalizedCoords)?this.normalizedCoords.extent:null;return(0,u.pC)(t)?(0,A.oJ)(t):null}};(0,v._)([(0,g.Cb)()],p.prototype,"spatialReference",void 0),(0,v._)([(0,g.Cb)()],p.prototype,"element",void 0),(0,v._)([(0,g.Cb)()],p.prototype,"bounds",null),(0,v._)([(0,g.Cb)()],p.prototype,"coords",null),(0,v._)([(0,g.Cb)()],p.prototype,"normalizedCoords",null),(0,v._)([(0,g.Cb)()],p.prototype,"normalizedBounds",null),p=(0,v._)([(0,x.j)("esri.layers.support.media.MediaElementView")],p);var T=e(62600),W=e(19702),y=e(64835),m=e(42743),C=e(52107),I=e(54840),O=e(53855),H=e(81695),E=e(16396),K=e(79967),z=e(45611),j=e(67969);let S=class extends((0,W.A)(z.Z)){constructor(){var t;super(...arguments),t=this,this.type="media-3d",this.drapeSourceType=T.L.RasterImage,this.updatePolicy=m.jq.ASYNC,this._uidToElement=new Map,this._renderedElements=new Map,this._lastDrapingExtent=null,this._update=(0,D.Ds)(function(){var s=(0,l.Z)(function*(i,o,_){const L=yield t._collectMediaElements(i,o,_);t._synchronizeRenderElements(L)});return function(i,o,_){return s.apply(this,arguments)}}(),0)}initialize(){this._renderer=this.view.basemapTerrain.overlayManager.registerGeometryDrapeSource(this),this.handles.add([(0,f.kB)(()=>this.view.basemapTerrain.overlayManager.unregisterDrapeSource(this)),(0,P.on)(()=>this.layer.source,"refresh",()=>this._updateWithLastDrapingExtent())]),this.updatingHandles.add(()=>this.suspended,()=>this._updateWithLastDrapingExtent())}setDrapingExtent(t,s){this._lastDrapingExtent={overlays:t,spatialReference:s},this._updateWithLastDrapingExtent()}getHit(t){const s=this._uidToElement.get(t);return s?{type:"media",element:s,layer:this.layer}:null}_updateWithLastDrapingExtent(){if((0,u.Wi)(this._lastDrapingExtent)||this.suspended)return void(this._renderer&&this._synchronizeRenderElements(new Set));const{overlays:t,spatialReference:s}=this._lastDrapingExtent;this.updatingHandles.addPromise(this._update(t,s).catch(()=>{}))}_collectMediaElements(t,s,i){var o=this;return(0,l.Z)(function*(){const _=o.layer.source;return(0,u.Wi)(_)?new Set:new Set((yield Promise.all(t.map(L=>_.queryElements((0,A.HH)(L.extent,s),{signal:i})))).flat())})()}_synchronizeRenderElements(t){this._synchronizeRenderElementsRemove(t),this._synchronizeRenderElementsAdd(t)}_synchronizeRenderElementsRemove(t){const s=new Set,i=[];this._renderedElements.forEach((o,_)=>{t.has(_)||(s.add(_),(0,u.pC)(o.renderData)&&i.push(o.renderData.renderGeometry),this._removeElement(_,o))}),this._renderer.removeGeometries(i,I.T.REMOVE)}_synchronizeRenderElementsAdd(t){for(const s of t)this._renderedElements.has(s)||this._createRenderElement(s)}_removeElement(t,{renderData:s,handle:i}){this._destroyRenderData(s),this._renderedElements.delete(t),this._uidToElement.delete(t.uid),i.remove()}_createRenderElement(t){var s=this;return(0,l.Z)(function*(){const i=new p({spatialReference:s.view.spatialReference,element:t}),o={renderData:null,handle:(0,f.AL)([s.updatingHandles.add(()=>t.opacity,_=>{(0,u.pC)(o.renderData)&&o.renderData.material.setParameters({opacity:_})}),s.updatingHandles.add(()=>i.coords,_=>{(0,u.pC)(o.renderData)?s._updateGeometry(o,o.renderData,_):s._initializeRenderData(i,o)}),s.updatingHandles.add(()=>t.content,()=>s._initializeRenderData(i,o)),(0,f.ed)(i)])};s._renderedElements.set(t,o),s._uidToElement.set(t.uid,t),s.updatingHandles.addPromise(t.load().catch(()=>{})),s._initializeRenderData(i,o)})()}_initializeRenderData(t,s){const{coords:i,element:o}=t;if((0,u.Wi)(i)||(0,u.Wi)(o.content))return void(s.renderData=this._destroyRenderData(s.renderData));if((0,u.pC)(s.renderData))return;const _=this._createTexture(o.content);this.view._stage.add(_);const L=this.view._stage.loadImmediate(_);(0,D.y8)(L)&&this.updatingHandles.addPromise(L);const F=new K.j({initTextureTransparent:!0,textureId:_.id,opacity:o.opacity,transparent:!0}),N=this._positionVertexBufferFromCoordinates(i),b=[0,1,2,0,2,3],V=new C.Z([[E.T.POSITION,{data:N,size:3,exclusive:!0}],[E.T.UV0,{data:[0,0,1,0,1,1,0,1],size:2,exclusive:!0}]],[[E.T.POSITION,b],[E.T.UV0,b]]),G=new O.z(V,F,{layerUid:this.layer.uid,graphicUid:o.uid});this._renderer.addGeometries([G],I.T.ADD),s.renderData={renderGeometry:G,texture:_,material:F}}_updateGeometry(t,s,i){if((0,u.Wi)(i))return void(t.renderData=this._destroyRenderData(t.renderData));const o=this._positionVertexBufferFromCoordinates(i);s.renderGeometry.vertexAttributes.get(E.T.POSITION).data=o,this._renderer.modifyGeometries([s.renderGeometry],I.$.VERTEXATTRS)}_positionVertexBufferFromCoordinates(t){const[s,i,o,_]=t.rings[0];return new Float64Array([s[0],s[1],y.Rn,_[0],_[1],y.Rn,o[0],o[1],y.Rn,i[0],i[1],y.Rn])}_destroyRenderData(t){return(0,u.Wi)(t)||(this.view._stage.remove(t.texture),this._renderer.removeGeometries([t.renderGeometry],I.T.REMOVE),t.material.dispose()),null}_createTexture(t){const s=t instanceof HTMLImageElement?t.naturalWidth:t.width,i=t instanceof HTMLImageElement?t.naturalHeight:t.height;return new H.x(t,{wrap:{s:j.e8.CLAMP_TO_EDGE,t:j.e8.CLAMP_TO_EDGE},preMultiplyAlpha:!0,width:s,height:i,mipmap:!0,powerOfTwoResizeMode:m.CE.STRETCH,updateCallback:()=>this.view.basemapTerrain.overlayManager.setDrawTexturesDirty()})}get test(){const t=this;return{get numberOfElements(){return t._renderedElements.size}}}};(0,v._)([(0,g.Cb)({readOnly:!0})],S.prototype,"type",void 0),(0,v._)([(0,g.Cb)()],S.prototype,"layer",void 0),S=(0,v._)([(0,x.j)("esri.views.3d.layers.MediaLayerView3D")],S);const a=S},79967:(B,R,e)=>{e.d(R,{j:()=>K});var l=e(13934),v=e(42743),f=e(33470),u=e(40723),D=e(88569),P=e(5894),g=e(60909),U=e(57623),d=e(17626),A=(e(17625),e(651)),M=e(91056),n=e(87601),c=e(39114),h=e(12407),p=e(64127),T=e(44835),W=e(41528),y=e(34013),m=e(67969),C=e(2078);class O extends M.A{initializeProgram(a){return new h.$(a.rctx,O.shader.get().build(this.configuration),c.i)}_setPipelineState(a,t){const s=this.configuration,i=a===T.A.NONE,o=a===T.A.FrontFace;return(0,C.sm)({blending:s.output!==l.H.Color&&s.output!==l.H.Alpha||!s.transparent?null:i?H:(0,D.j7)(a),culling:(0,C.zp)(s.cullFace),depthTest:{func:(0,D.Bh)(a)},depthWrite:i?s.writeDepth&&C.LZ:(0,D.K5)(a),colorWrite:C.BK,stencilWrite:s.hasOccludees?p.s3:null,stencilTest:s.hasOccludees?t?p.eD:p.RY:null,polygonOffset:i||o?null:(0,D.je)(s.enableOffset)})}initializePipeline(){return this._occludeePipelineState=this._setPipelineState(this.configuration.transparencyPassType,!0),this._setPipelineState(this.configuration.transparencyPassType,!1)}getPipelineState(a,t){return t?this._occludeePipelineState:super.getPipelineState(a,t)}}O.shader=new A.J(y.I,()=>e.e(8586).then(e.bind(e,18586)));const H=(0,C.if)(m.zi.ONE,m.zi.ONE_MINUS_SRC_ALPHA);class E extends W.W{constructor(){super(...arguments),this.output=l.H.Color,this.cullFace=v.Vr.None,this.hasSlicePlane=!1,this.transparent=!1,this.enableOffset=!0,this.writeDepth=!0,this.hasOccludees=!1,this.transparencyPassType=T.A.NONE,this.hasMultipassTerrain=!1,this.cullAboveGround=!1}}(0,d._)([(0,n.o)({count:l.H.COUNT})],E.prototype,"output",void 0),(0,d._)([(0,n.o)({count:v.Vr.COUNT})],E.prototype,"cullFace",void 0),(0,d._)([(0,n.o)()],E.prototype,"hasSlicePlane",void 0),(0,d._)([(0,n.o)()],E.prototype,"transparent",void 0),(0,d._)([(0,n.o)()],E.prototype,"enableOffset",void 0),(0,d._)([(0,n.o)()],E.prototype,"writeDepth",void 0),(0,d._)([(0,n.o)()],E.prototype,"hasOccludees",void 0),(0,d._)([(0,n.o)({count:T.A.COUNT})],E.prototype,"transparencyPassType",void 0),(0,d._)([(0,n.o)()],E.prototype,"hasMultipassTerrain",void 0),(0,d._)([(0,n.o)()],E.prototype,"cullAboveGround",void 0);class K extends u.F5{constructor(a){super(a,new j),this.supportsEdges=!0,this._configuration=new E}getConfiguration(a,t){return this._configuration.output=a,this._configuration.cullFace=this.parameters.cullFace,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.transparent=this.parameters.transparent,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.transparencyPassType=t.transparencyPassType,this._configuration.enableOffset=t.camera.relativeElevation{e.d(R,{Z:()=>c});var l=e(17626),v=e(14517),f=e(61885),u=e(80542),D=e(61996),P=e(63290),g=e(62208),U=e(60330),d=e(77712),M=(e(85931),e(90912),e(76898));let n=class extends((0,u.p)((0,D.IG)((0,U.v)(f.Z.EventedMixin(v.Z))))){constructor(h){super(h),this.layer=null,this.parent=null}initialize(){this.when().catch(h=>{if("layerview:create-error"!==h.name){const p=this.layer&&this.layer.id||"no id",T=this.layer&&this.layer.title||"no title";P.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${T}', id: '${p}')`,h)}})}get fullOpacity(){return(0,g.Pt)(this.get("layer.opacity"),1)*(0,g.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(h){this._overrideIfSome("visible",h)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const h=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(h.viewNotReady=!0),this.layer&&this.layer.loaded||(h.layerNotLoaded=!0),this.visible||(h.layerInvisible=!0),h}isUpdating(){return!1}};(0,l._)([(0,d.Cb)()],n.prototype,"fullOpacity",null),(0,l._)([(0,d.Cb)()],n.prototype,"layer",void 0),(0,l._)([(0,d.Cb)()],n.prototype,"parent",void 0),(0,l._)([(0,d.Cb)({readOnly:!0})],n.prototype,"suspended",null),(0,l._)([(0,d.Cb)({readOnly:!0})],n.prototype,"suspendInfo",null),(0,l._)([(0,d.Cb)({readOnly:!0})],n.prototype,"legendEnabled",null),(0,l._)([(0,d.Cb)({type:Boolean,readOnly:!0})],n.prototype,"updating",null),(0,l._)([(0,d.Cb)({readOnly:!0})],n.prototype,"updatingProgress",null),(0,l._)([(0,d.Cb)()],n.prototype,"visible",null),(0,l._)([(0,d.Cb)()],n.prototype,"view",void 0),n=(0,l._)([(0,M.j)("esri.views.layers.LayerView")],n);const c=n}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9114.25f9376936337091.js b/apps/n/porrtal-io-app/public/angular/9114.25f9376936337091.js deleted file mode 100644 index 281d748e..00000000 --- a/apps/n/porrtal-io-app/public/angular/9114.25f9376936337091.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9114],{49114:(ye,x,o)=>{o.r(x),o.d(x,{default:()=>le});var W=o(15861),r=o(17626),F=(o(29132),o(88879)),N=(o(20383),o(46160)),B=o(26584),L=o(58817),d=o(62208),A=o(99959),U=o(94113),I=o(14889),l=o(77712),S=(o(90912),o(68653)),J=o(76898),H=o(99433),g=o(55915),u=o(65401),$=o(93555),K=o(37053),Q=o(80415),V=(o(85931),o(28705)),R=o(44917),Z=o(552),E=o(99555),j=o(51815),X=o(82706);let f=class extends((0,Z.h)((0,E.M)(R.Z))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new j.J,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};(0,r._)([(0,l.Cb)({type:X.Z})],f.prototype,"elevationInfo",void 0),(0,r._)([(0,l.Cb)((0,V.z)(j.J,"graphics"))],f.prototype,"graphics",void 0),(0,r._)([(0,l.Cb)({type:["show","hide"]})],f.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)()],f.prototype,"screenSizePerspectiveEnabled",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],f.prototype,"type",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0})],f.prototype,"internal",void 0),f=(0,r._)([(0,J.j)("esri.layers.GraphicsLayer")],f);const Y=f;var k=o(1476),q=o(49286),_=o(6647),D=o(36255),ee=o(88493),te=o(52068),G=o(57213),re=o(35540),C=o(65234),oe=o(2004);function O(e){return"markup"===e.featureCollectionType||e.layers.some(t=>null!=t.layerDefinition.visibilityField||!w(t))}function w({layerDefinition:e,featureSet:t}){const i=e.geometryType??t.geometryType;return T.find(n=>i===n.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===n.identifyingSymbol.type)}function P(){return new oe.Z({xmin:-180,ymin:-90,xmax:180,ymax:90})}const z=new D.Z({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),ie=new D.Z({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0});let c=class extends Y{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",e=>{e.item.sourceLayer=this.layer}),this.graphics.on("after-remove",e=>{e.item.sourceLayer=null})}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?(0,d.Wi)(t)?(0,g.dz)(P(),e).geometry:(0,u.HH)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,u.cS)();return this.graphics.forEach(i=>{const n=(0,d.pC)(i.geometry)?(0,g.dz)(i.geometry,e).geometry:null;(0,d.pC)(n)&&(0,u.jn)(t,"point"===n.type?n:n.extent,t)}),(0,u.fS)(t,u.Gv)?null:t}get sublayers(){return this.graphics}};(0,r._)([(0,l.Cb)({readOnly:!0})],c.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)({readOnly:!0})],c.prototype,"fullBounds",null),(0,r._)([(0,l.Cb)({readOnly:!0})],c.prototype,"sublayers",null),(0,r._)([(0,l.Cb)()],c.prototype,"layer",void 0),(0,r._)([(0,l.Cb)()],c.prototype,"layerId",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],c.prototype,"visibilityMode",void 0),c=(0,r._)([(0,J.j)("esri.layers.MapNotesLayer.MapNotesSublayer")],c);const T=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new ee.Z).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new te.Z).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new G.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new G.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new re.Z).toJSON()}];let a=class extends((0,Z.h)((0,E.M)((0,q.q)((0,_.I)((0,A.R)(R.Z)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=C.Z.WGS84,this.sublayers=new N.Z(T.map(t=>new c({id:t.id,layerId:t.layerId,title:t.title,layer:this}))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,i){return{operations:{supportsMapNotesEditing:!O(t)&&"portal-item"!==i?.origin}}}readFeatureCollections(e,t,i){if(!O(t))return null;const n=t.layers.map(y=>{const s=new Q.default;return s.read(y,i),s});return new N.Z({items:n})}readLegacyfeatureCollectionJSON(e,t){return O(t)?(0,L.d9)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,u.cS)();return(0,d.pC)(this.sublayers)?this.sublayers.forEach(({fullBounds:i})=>(0,d.pC)(i)?(0,u.jn)(t,i,t):t,t):this.featureCollectionJSON?.layers.some(i=>i.layerDefinition.extent)&&this.featureCollectionJSON.layers.forEach(i=>{const n=(0,g.dz)(i.layerDefinition.extent,e).geometry;(0,d.pC)(n)&&(0,u.jn)(t,n,t)}),(0,u.fS)(t,u.Gv)?(0,g.dz)(P(),e).geometry:(0,u.HH)(t,e)}readMinScale(e,t){for(const i of t.layers)if(null!=i.layerDefinition.minScale)return i.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const i of t.layers)if(null!=i.layerDefinition.maxScale)return i.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?C.Z.fromJSON(t.layers[0].layerDefinition.spatialReference):C.Z.WGS84}readSublayers(e,t,i){if(O(t))return null;const n=[];let y=t.layers.reduce((s,p)=>Math.max(s,p.layerDefinition.id??-1),-1)+1;for(const s of t.layers){const{layerDefinition:p,featureSet:m}=s,b=p.id??y++,h=w(s);if((0,d.pC)(h)){const v=new c({id:h.id,title:p.name,layerId:b,layer:this,graphics:m.features.map(({geometry:M,symbol:ae,attributes:ne,popupInfo:se})=>F.Z.fromJSON({attributes:ne,geometry:M,symbol:ae,popupTemplate:se}))});n.push(v)}}return new N.Z(n)}writeSublayers(e,t,i,n){const{minScale:y,maxScale:s}=this;if((0,d.Wi)(e))return;const p=e.some(h=>h.graphics.length>0);if(!this.capabilities.operations.supportsMapNotesEditing)return void(p&&n?.messages?.push(new B.Z("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const m=[];let b=this.spatialReference.toJSON();e:for(const h of e)for(const v of h.graphics)if((0,d.pC)(v.geometry)){b=v.geometry.spatialReference.toJSON();break e}for(const h of T){const v=e.find(M=>h.id===M.id);this._writeMapNoteSublayer(m,v,h,y,s,b,n)}(0,U.RB)("featureCollection.layers",m,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,L.d9)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}beforeSave(){var e=this;return(0,W.Z)(function*(){if((0,d.Wi)(e.sublayers))return;let t=null;const i=[];for(const y of e.sublayers)for(const s of y.graphics)if((0,d.pC)(s.geometry)){const p=s.geometry;t?(0,K.fS)(p.spatialReference,t)||((0,g.Up)(p.spatialReference,t)||(0,g.kR)()||(yield(0,g.zD)()),s.geometry=(0,g.iV)(p,t)):t=p.spatialReference,i.push(s)}const n=yield(0,$.aX)(i.map(y=>y.geometry));i.forEach((y,s)=>y.geometry=n[s])})()}_findSublayer(e){return(0,d.Wi)(this.sublayers)?null:this.sublayers?.find(t=>t.id===e)??null}_writeMapNoteSublayer(e,t,i,n,y,s,p){const m=[];if(!(0,d.Wi)(t)){for(const b of t.graphics)this._writeMapNote(m,b,i.geometryType,p);this._normalizeObjectIds(m,z),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,L.d9)(i.identifyingSymbol)}},id:t.layerId,geometryType:i.geometryTypeJSON,minScale:n,maxScale:y,objectIdField:"OBJECTID",fields:[z.toJSON(),ie.toJSON()],spatialReference:s},featureSet:{features:m,geometryType:i.geometryTypeJSON}})}}_writeMapNote(e,t,i,n){if((0,d.Wi)(t))return;const{geometry:y,symbol:s,popupTemplate:p}=t;if((0,d.Wi)(y))return;if(y.type!==i)return void n?.messages?.push(new I.Z("map-notes-layer:invalid-geometry-type",`Geometry "${y.type}" cannot be saved in "${i}" layer`,{graphic:t}));if((0,d.Wi)(s))return void n?.messages?.push(new I.Z("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const m={attributes:{...t.attributes},geometry:y.toJSON(),symbol:s.toJSON()};(0,d.pC)(p)&&(m.popupInfo=p.toJSON()),e.push(m)}_normalizeObjectIds(e,t){const i=t.name;let n=(0,k.S)(i,e)+1;const y=new Set;for(const s of e){s.attributes||(s.attributes={});const{attributes:p}=s;(null==p[i]||y.has(p[i]))&&(p[i]=n++),y.add(p[i])}}};(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"capabilities",void 0),(0,r._)([(0,S.r)(["portal-item","web-map"],"capabilities",["layers"])],a.prototype,"readCapabilities",null),(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"featureCollections",void 0),(0,r._)([(0,S.r)(["web-map","portal-item"],"featureCollections",["layers"])],a.prototype,"readFeatureCollections",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],a.prototype,"featureCollectionJSON",void 0),(0,r._)([(0,S.r)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],a.prototype,"readLegacyfeatureCollectionJSON",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],a.prototype,"featureCollectionType",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],a.prototype,"legendEnabled",void 0),(0,r._)([(0,l.Cb)({type:["show","hide","hide-children"]})],a.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],a.prototype,"minScale",void 0),(0,r._)([(0,S.r)(["web-map","portal-item"],"minScale",["layers"])],a.prototype,"readMinScale",null),(0,r._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],a.prototype,"maxScale",void 0),(0,r._)([(0,S.r)(["web-map","portal-item"],"maxScale",["layers"])],a.prototype,"readMaxScale",null),(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"multipointLayer",null),(0,r._)([(0,l.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],a.prototype,"operationalLayerType",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"pointLayer",null),(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"polygonLayer",null),(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"polylineLayer",null),(0,r._)([(0,l.Cb)({type:C.Z})],a.prototype,"spatialReference",void 0),(0,r._)([(0,S.r)(["web-map","portal-item"],"spatialReference",["layers"])],a.prototype,"readSpatialReference",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],a.prototype,"sublayers",void 0),(0,r._)([(0,S.r)("web-map","sublayers",["layers"])],a.prototype,"readSublayers",null),(0,r._)([(0,H.c)("web-map","sublayers")],a.prototype,"writeSublayers",null),(0,r._)([(0,l.Cb)({readOnly:!0})],a.prototype,"textLayer",null),(0,r._)([(0,l.Cb)()],a.prototype,"title",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],a.prototype,"type",void 0),a=(0,r._)([(0,J.j)("esri.layers.MapNotesLayer")],a);const le=a}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9155.116620c42b94e556.js b/apps/n/porrtal-io-app/public/angular/9155.116620c42b94e556.js deleted file mode 100644 index e0210a69..00000000 --- a/apps/n/porrtal-io-app/public/angular/9155.116620c42b94e556.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9155],{36592:(ne,U,d)=>{d.d(U,{Q:()=>D});var F=d(85931),W=d(62208),R=d(77029),P=d(14259);class D{constructor(e=9,s){this._compareMinX=Y,this._compareMinY=g,this._toBBox=i=>i,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),s&&("function"==typeof s?this._toBBox=s:this._initFormat(s)),this.clear()}destroy(){this.clear(),z.prune(),J.prune(),A.prune(),k.prune()}all(e){this._all(this._data,e)}search(e,s){let i=this._data;const l=this._toBBox;if(V(e,i))for(z.clear();i;){for(let h=0,f=i.children.length;h0;){if(i||(i=(0,W.j0)(A.pop()),l=A.data[A.length-1],h=k.pop()??0,f=!0),i.leaf&&(s=(0,F.cq)(i.children,e,i.children.length,i.indexHint),-1!==s))return i.children.splice(s,1),A.push(i),this._condense(A),this;f||i.leaf||!S(i,I)?l?(h++,i=l.children[h],f=!1):i=null:(A.push(i),k.push(h),h=0,l=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,s){let i=e;for(J.clear();i;){if(!0===i.leaf)for(const l of i.children)s(l);else J.pushArray(i.children);i=J.pop()??null}}_build(e,s,i,l){const h=i-s+1;let f=this._maxEntries;if(h<=f){const O=new q(e.slice(s,i+1));return B(O,this._toBBox),O}l||(l=Math.ceil(Math.log(h)/Math.log(f)),f=Math.ceil(h/f**(l-1)));const I=new ee([]);I.height=l;const v=Math.ceil(h/f),C=v*Math.ceil(Math.sqrt(f));re(e,s,i,C,this._compareMinX);for(let O=s;O<=i;O+=C){const Z=Math.min(O+C-1,i);re(e,O,Z,v,this._compareMinY);for(let Q=O;Q<=Z;Q+=v){const ae=Math.min(Q+v-1,Z);I.children.push(this._build(e,Q,ae,l-1))}}return B(I,this._toBBox),I}_chooseSubtree(e,s,i,l){for(;l.push(s),!0!==s.leaf&&l.length-1!==i;){let h,f=1/0,I=1/0;for(let v=0,C=s.children.length;v=0&&A.data[s].children.length>this._maxEntries;)this._split(A,s),s--;this._adjustParentBBoxes(h,A,s)}_split(e,s){const i=e.data[s],l=i.children.length,h=this._minEntries;this._chooseSplitAxis(i,h,l);const f=this._chooseSplitIndex(i,h,l);if(!f)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const I=i.children.splice(f,i.children.length-f),v=i.leaf?new q(I):new ee(I);v.height=i.height,B(i,this._toBBox),B(v,this._toBBox),s?e.data[s-1].children.push(v):this._splitRoot(i,v)}_splitRoot(e,s){this._data=new ee([e,s]),this._data.height=e.height+1,B(this._data,this._toBBox)}_chooseSplitIndex(e,s,i){let l,h,f;l=h=1/0;for(let I=s;I<=i-s;I++){const v=b(e,0,I,this._toBBox),C=b(e,I,i,this._toBBox),O=N(v,C),Z=y(v)+y(C);O=s;C--){const O=e.children[C];L(I,e.leaf?h(O):O),v+=o(I)}return v}_adjustParentBBoxes(e,s,i){for(let l=i;l>=0;l--)L(s.data[l],e)}_condense(e){for(let s=e.length-1;s>=0;s--){const i=e.data[s];if(0===i.children.length)if(s>0){const l=e.data[s-1],h=l.children;h.splice((0,F.cq)(h,i,h.length,l.indexHint),1)}else this.clear();else B(i,this._toBBox)}}_initFormat(e){const s=["return a"," - b",";"];this._compareMinX=new Function("a","b",s.join(e[0])),this._compareMinY=new Function("a","b",s.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function B(u,e){b(u,0,u.children.length,e,u)}function b(u,e,s,i,l){l||(l=new q([])),l.minX=1/0,l.minY=1/0,l.maxX=-1/0,l.maxY=-1/0;for(let h,f=e;f=u.minX&&e.maxY>=u.minY}function re(u,e,s,i,l){const h=[e,s];for(;h.length;){const f=(0,W.j0)(h.pop()),I=(0,W.j0)(h.pop());if(f-I<=i)continue;const v=I+Math.ceil((f-I)/i/2)*i;(0,P.q)(u,v,I,f,l),h.push(I,v,v,f)}}const z=new R.Z,J=new R.Z,A=new R.Z,k=new R.Z({deallocator:void 0});class oe{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class ie extends oe{constructor(){super(...arguments),this.height=1,this.indexHint=new F.SO}}class q extends ie{constructor(e){super(),this.children=e,this.leaf=!0}}class ee extends ie{constructor(e){super(),this.children=e,this.leaf=!1}}},61256:(ne,U,d)=>{d.d(U,{H:()=>L});var F=d(8314),W=d(36592),R=d(65401);const D={minX:0,minY:0,maxX:0,maxY:0};class L{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new W.Q(9,(0,F.Z)("esri-csp-restrictions")?g=>({minX:g[0],minY:g[1],maxX:g[2],maxY:g[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const g=new Array(this._idByBounds.size);let y=0;this._idByBounds.forEach((o,x)=>{g[y++]=x}),this._indexInvalid=!1,this._index.clear(),this._index.load(g)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(g=>this._idByBounds.has(g))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const g=(0,R.cS)();for(const y of this._boundsById.values())y&&(g[0]=Math.min(y[0],g[0]),g[1]=Math.min(y[1],g[1]),g[2]=Math.max(y[2],g[2]),g[3]=Math.max(y[3],g[3]));return g}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(g){const y=this._boundsById.get(g);this._boundsById.delete(g),y&&(this._idByBounds.delete(y),this._indexInvalid||this._index.remove(y))}forEachInBounds(g,y){this._loadIndex(),function b(Y,g,y){(function B(Y){D.minX=Y[0],D.minY=Y[1],D.maxX=Y[2],D.maxY=Y[3]})(g),Y.search(D,y)}(this._index,g,o=>y(this._idByBounds.get(o)))}get(g){return this._boundsById.get(g)}has(g){return this._boundsById.has(g)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(g,y){if(!this._indexInvalid){const o=this._boundsById.get(g);o&&(this._index.remove(o),this._idByBounds.delete(o))}this._boundsById.set(g,y),y&&(this._idByBounds.set(y,g),this._indexInvalid||(this._boundsToLoad.push(y),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},3579:(ne,U,d)=>{d.d(U,{Z:()=>g});var F=d(26584),W=d(61885),R=d(63290),P=d(62208),D=d(5548),B=d(65401),b=d(82054),L=d(61256),Y=d(92794);class g{constructor(o){this.geometryInfo=o,this._boundsStore=new L.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new W.Z,this.featureAdapter=Y.n}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let o=0;return this._featuresById.forEach(x=>{(0,P.pC)(x.geometry)&&x.geometry.coords&&(o+=x.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:o/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(o){this._add(o),this._emitChanged()}addMany(o){for(const x of o)this._add(x);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(o){const x=this._featuresById.get(o);return x?(this._remove(x),this._emitChanged(),x):null}removeManyById(o){this._boundsStore.invalidateIndex();for(const x of o){const N=this._featuresById.get(x);N&&this._remove(N)}this._emitChanged()}forEachBounds(o,x,N){for(const S of o){const V=this._boundsStore.get(S.objectId);V&&x((0,D.JR)(N,V))}}getFeature(o){return this._featuresById.get(o)}has(o){return this._featuresById.has(o)}toArray(){return Array.from(this._featuresById.values())}forEach(o){this._featuresById.forEach(x=>o(x))}forEachInBounds(o,x){this._boundsStore.forEachInBounds(o,N=>{x(this._featuresById.get(N))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let o=!1;this._featuresById.forEach((x,N)=>{this._markedIds.has(N)||(o=!0,this._remove(x))}),this._markedIds.clear(),o&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(o){if(!o)return;const x=o.objectId;if(null==x)return void R.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new F.Z("featurestore:invalid-feature","feature id is missing",{feature:o}));const N=this._featuresById.get(x);let S;if(this._markedIds.add(x),N?(o.displayId=N.displayId,S=this._boundsStore.get(x),this._boundsStore.delete(x)):(0,P.pC)(this.onFeatureAdd)&&this.onFeatureAdd(o),(0,P.Wi)(o.geometry)||!o.geometry.coords||!o.geometry.coords.length)return this._boundsStore.set(x,null),void this._featuresById.set(x,o);S=(0,b.$)((0,P.pC)(S)?S:(0,B.Ue)(),o.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,P.pC)(S)&&this._boundsStore.set(x,S),this._featuresById.set(x,o)}_remove(o){return(0,P.pC)(this.onFeatureRemove)&&this.onFeatureRemove(o),this._markedIds.delete(o.objectId),this._boundsStore.delete(o.objectId),this._featuresById.delete(o.objectId),o}}},92794:(ne,U,d)=>{d.d(U,{n:()=>D});var F=d(62208),W=d(77044),R=d(66385),P=d(88071);const D={getObjectId:B=>B.objectId,getAttributes:B=>B.attributes,getAttribute:(B,b)=>B.attributes[b],cloneWithGeometry:(B,b)=>new R.u_(b,B.attributes,null,B.objectId),getGeometry:B=>B.geometry,getCentroid:(B,b)=>((0,F.Wi)(B.centroid)&&(B.centroid=(0,W.Y)(new P.Z,B.geometry,b.hasZ,b.hasM)),B.centroid)}},39155:(ne,U,d)=>{d.r(U),d.d(U,{default:()=>Be});var F=d(15861),R=(d(29132),d(84792)),P=d(59213),D=d(26584),B=d(63290),b=d(10699),L=d(21726),Y=d(55915),g=d(15994),y=d(37053),o=d(46367),x=d(66385),N=d(88071),S=d(3579),V=d(82959),re=d(58175),z=d(75327);const J=/^\s*"([\S\s]*)"\s*$/,A=/""/g,oe=[","," ",";","|","\t"];function*ie(c,r,t){let n=0;for(;n<=c.length;){const a=c.indexOf(r,n),m=c.substring(n,a>-1?a:void 0);n+=m.length+r.length,t&&!m.trim()||(yield m)}}function q(c){const r=c.includes("\r\n")?"\r\n":"\n";return ie(c,r,!0)}function ee(c,r){return ie(c,r,!1)}function*e(c,r,t,n=(()=>Object.create(null))){const a=q(c);a.next();let m="",_="",E=0,M=n(),j=0;e:for(const H of a){const K=ee(H,t);for(const w of K)if(m+=_+w,_="",E+=l(w),E%2==0){if(E>0){const $=J.exec(m);if(!$){M=n(),j=0,m="",E=0;continue e}M[r[j]]=$[1].replace(A,'"'),j++}else M[r[j]]=m,j++;m="",E=0}else _=t;0===E?(yield M,M=n(),j=0):_="\n"}}function s(c,r){const t=i(c,r).filter(a=>null!=a),n=t.map(a=>le(a));for(let a=n.length-1;a>=0;a--)n[a]||(n.splice(a,1),t.splice(a,1));return{names:n,aliases:t}}function i(c,r){if(!c?.length)return[];const t=[];let n="",a="",m=0;const _=ee(c,r);for(const E of _)if(n+=a+E,a="",m+=l(E),m%2==0){if(m>0){const M=J.exec(n);M&&t.push(M[1].replace(A,'"'))}else t.push(n);n="",m=0}else a=r;return t}function l(c){let r=0,t=0;for(t=c.indexOf('"',t);t>=0;)r++,t=c.indexOf('"',t+1);return r}function h(c,r,t){r=le(r)?.toLowerCase(),t=le(t)?.toLowerCase();const n=c.map(_=>_.toLowerCase()),a=r?c[n.indexOf(r)]:null,m=t?c[n.indexOf(t)]:null;return{longitudeFieldName:a||c[n.indexOf(ae.find(_=>n.includes(_)))],latitudeFieldName:m||c[n.indexOf(Q.find(_=>n.includes(_)))]}}function I(c){if(!c.length)return"string";const r=/[^+-.,0-9]/;return c.map(t=>{let n=!1;if(""!==t){if(r.test(t))n=!0;else{let a=C(t);if(!isNaN(a))return/[.,]/.test(t)||!Number.isInteger(a)||a>214783647||a<-214783648?"double":"integer";if(t.includes("E")){if(a=Number(t),!isNaN(a))return"double";if(t.includes(",")){if(t=t.replace(",","."),a=Number(t),!isNaN(a))return"double";n=!0}else n=!0}else n=!0}return n?/^[-]?\d*[.,]?\d*$/.test(t)?"string":v(new Date(t),t)?"date":"string":"string"}}).reduce((t,n)=>void 0===t?n:void 0===n?t:t===n?n:"string"===t||"string"===n?"string":"double"===t||"double"===n?"double":void 0)}function v(c,r){if(!c||"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime()))return!1;let t=!0;if(!Z&&/\d+\W*$/.test(r)){const n=r.match(/[a-zA-Z]{2,}/);if(n){let a=!1,m=0;for(;!a&&m<=n.length;)a=!O.test(n[m]),m++;t=!a}}return t}const C=function(){const c=(0,z.lt)(),r=new RegExp("^"+c.regexp+"$"),t=new RegExp("["+c.group+"\\s\\xa0]","g"),n=c.factor;return a=>{const m=r.exec(a);if(c.factor=n,!m)return NaN;let _=m[1];if(!m[1]){if(!m[2])return NaN;_=m[2],c.factor*=-1}return _=_.replace(t,"").replace(c.decimal,"."),+_*c.factor}}(),O=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,Z=Number.isNaN(new Date("technology 10").getTime()),Q=["lat","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],ae=["lon","lng","long","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"],he=/^([0-9])/,ce=/[^A-Za-z0-9_\u0080-\uffff]/g,me=/_{2,}/g,fe=/^_/,_e=/_$/;function le(c){return c?c.trim().replace(ce,"_").replace(me,"_").replace(fe,"").replace(_e,"").replace(he,"F$1"):null}var de=d(56554),ue=d(60466),pe=d(36630),ge=d(65234);const ye=(0,de.bU)("esriGeometryPoint"),Ie=["csv"],xe=[0,0];class Ee{constructor(r,t){this.x=r,this.y=t}}class Be{constructor(){var r=this;this._queryEngine=null,this._snapshotFeatures=function(){var t=(0,F.Z)(function*(n){const a=yield r._fetch(n);return r._createFeatures(a)});return function(n){return t.apply(this,arguments)}}()}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}load(r,t={}){var n=this;return(0,F.Z)(function*(){n._loadOptions=r;const[a]=yield Promise.all([n._fetch(t.signal),n._checkProjection(r?.parsingOptions?.spatialReference)]),m=function ve(c,r){const t=r.parsingOptions||{},n={delimiter:t.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:t.latitudeField,longitudeFieldName:t.longitudeField}},a=n.layerDefinition={name:(0,L.vt)(r.url,Ie)||"csv",drawingInfo:ye,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:t.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:t.spatialReference||{wkid:102100}}},m=q(c),_=m.next().value?.trim(),E=m.next().value?.trim();if(!_)throw new D.Z("csv-layer:empty-csv","CSV is empty",{csv:c});const{delimiter:M,locationInfo:j}=function u(c,r,t){c=c.trim(),r=r?.trim();const n=[],a=Array.from(new Set([t?.delimiter,...oe])).filter(_=>null!=_);for(const _ of a){const E=i(c,_).length,M=i(r,_).length??E;E>1&&n.push({weight:Math.min(E,M),delimiter:_})}const m=n.sort(({weight:_},{weight:E})=>E-_).map(({delimiter:_})=>_);for(const _ of m){const E=h(s(c,_).names,t?.longitudeField,t?.latitudeField);if(E.longitudeFieldName&&E.latitudeFieldName)return{delimiter:_,locationInfo:E}}return{delimiter:m[0],locationInfo:null}}(_,E,t);if(!M)throw new D.Z("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:_,secondLine:E,parsingOptions:t});if(!j)throw new D.Z("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:_,secondLine:E,parsingOptions:t});n.locationInfo=j,n.delimiter=M;const{names:H,aliases:K}=s(_,M),w=function f(c,r,t,n,a){const m=[],_=e(c,t,r),E=[];for(const M of _){if(10===E.length)break;E.push(M)}for(let M=0;M$[j]))){case"integer":K="esriFieldTypeInteger";break;case"double":K="esriFieldTypeDouble";break;case"date":K="esriFieldTypeDate",w=36;break;default:K="esriFieldTypeString",w=255}m.push({name:j,type:K,alias:H,length:w})}}return m}(c,n.delimiter,H,K,n.locationInfo);if(t.fields?.length){const T=new ue.Z(t.fields);for(const p of w){const G=T.get(p.name);G&&Object.assign(p,G)}}if(!w.some(T=>"esriFieldTypeOID"===T.type&&(a.objectIdField=T.name,!0))){const T={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};a.objectIdField=T.name,w.unshift(T)}a.fields=w;const $=new ue.Z(a.fields);if(n.locationInfo&&(n.locationInfo.latitudeFieldName=$.get(n.locationInfo.latitudeFieldName).name,n.locationInfo.longitudeFieldName=$.get(n.locationInfo.longitudeFieldName).name),a.timeInfo){const T=a.timeInfo;if(T.startTimeField){const p=$.get(T.startTimeField);p?(T.startTimeField=p.name,p.type="esriFieldTypeDate"):T.startTimeField=null}if(T.endTimeField){const p=$.get(T.endTimeField);p?(T.endTimeField=p.name,p.type="esriFieldTypeDate"):T.endTimeField=null}if(T.trackIdField){const p=$.get(T.trackIdField);T.trackIdField=p?p.name:null}T.startTimeField||T.endTimeField||(a.timeInfo=null)}return n}(a,r);n._locationInfo=m.locationInfo,n._delimiter=m.delimiter,n._queryEngine=n._createQueryEngine(m);const _=yield n._createFeatures(a);if(n._queryEngine.featureStore.addMany(_),m.layerDefinition.extent=n._queryEngine.fullExtent,m.layerDefinition.timeInfo){const{start:E,end:M}=n._queryEngine.timeExtent;m.layerDefinition.timeInfo.timeExtent=[E,M]}return m})()}applyEdits(){return(0,F.Z)(function*(){throw new D.Z("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")})()}queryFeatures(r={},t={}){var n=this;return(0,F.Z)(function*(){return yield n._waitSnapshotComplete(),n._queryEngine.executeQuery(r,t.signal)})()}queryFeatureCount(r={},t={}){var n=this;return(0,F.Z)(function*(){return yield n._waitSnapshotComplete(),n._queryEngine.executeQueryForCount(r,t.signal)})()}queryObjectIds(r={},t={}){var n=this;return(0,F.Z)(function*(){return yield n._waitSnapshotComplete(),n._queryEngine.executeQueryForIds(r,t.signal)})()}queryExtent(r={},t={}){var n=this;return(0,F.Z)(function*(){return yield n._waitSnapshotComplete(),n._queryEngine.executeQueryForExtent(r,t.signal)})()}querySnapping(r,t={}){var n=this;return(0,F.Z)(function*(){return yield n._waitSnapshotComplete(),n._queryEngine.executeQueryForSnapping(r,t.signal)})()}refresh(r){var t=this;return(0,F.Z)(function*(){return t._loadOptions.customParameters=r,t._snapshotTask?.abort(),t._snapshotTask=(0,P.vr)(t._snapshotFeatures),t._snapshotTask.promise.then(n=>{t._queryEngine.featureStore.clear(),n&&t._queryEngine.featureStore.addMany(n)},n=>{t._queryEngine.featureStore.clear(),(0,b.D_)(n)||B.Z.getLogger("esri.layers.CSVLayer").error(new D.Z("csv-layer:refresh","An error occurred during refresh",{error:n}))}),yield t._waitSnapshotComplete(),{extent:t._queryEngine.fullExtent,timeExtent:t._queryEngine.timeExtent}})()}_waitSnapshotComplete(){var r=this;return(0,F.Z)(function*(){if(r._snapshotTask&&!r._snapshotTask.finished){try{yield r._snapshotTask.promise}catch{}return r._waitSnapshotComplete()}})()}_fetch(r){var t=this;return(0,F.Z)(function*(){const{url:n,customParameters:a}=t._loadOptions;if(!n)throw new D.Z("csv-layer:invalid-source","url not defined");const m=(0,L.mN)(n);return(yield(0,R.default)(m.path,{query:{...m.query,...a},responseType:"text",signal:r})).data})()}_createQueryEngine(r){const{objectIdField:t,fields:n,extent:a,timeInfo:m}=r.layerDefinition,_=new S.Z({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});return new re.q({fields:n,geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:m,objectIdField:t,spatialReference:a.spatialReference||{wkid:4326},cacheSpatialQueries:!0,featureStore:_})}_createFeatures(r){var t=this;return(0,F.Z)(function*(){const{latitudeFieldName:n,longitudeFieldName:a}=t._locationInfo,{objectIdField:m,fieldsIndex:_,spatialReference:E}=t._queryEngine;let M=[];const j=[],H=_.fields.filter(p=>p.name!==m).map(p=>p.name);let K=0;const w={};for(const p of _.fields)if("esriFieldTypeOID"!==p.type&&"esriFieldTypeGlobalID"!==p.type){const G=(0,pe.os)(p);void 0!==G&&(w[p.name]=G)}const $=e(r,H,t._delimiter,(0,de.Dm)(w,m));for(const p of $){const G=t._parseCoordinateValue(p[n]),te=t._parseCoordinateValue(p[a]);if(null!=te&&null!=G&&!isNaN(G)&&!isNaN(te)){p[n]=G,p[a]=te;for(const X in p)if(X!==n&&X!==a)if(_.isDateField(X)){const se=new Date(p[X]);p[X]=v(se,p[X])?se.getTime():null}else if(_.isNumericField(X)){const se=C(p[X]);p[X]=isNaN(se)?null:se}p[m]=K,K++,M.push(new Ee(te,G)),j.push(p)}}if(!(0,y.fS)({wkid:4326},E))if((0,y.sS)(E))for(const p of M)[p.x,p.y]=(0,o.hG)(p.x,p.y,xe);else M=(0,Y.oj)(g.N,M,ge.Z.WGS84,E,null,null);const T=[];for(let p=0;p181)&&(t=parseFloat(r)),t}_checkProjection(r){return(0,F.Z)(function*(){try{yield(0,V._W)(y.Zn,r)}catch{throw new D.Z("csv-layer:projection-not-supported","Projection not supported")}})()}}},56554:(ne,U,d)=>{d.d(U,{Dm:()=>L,Hq:()=>Y,MS:()=>g,bU:()=>D});var F=d(8314),W=d(58817),R=d(87757),P=d(24837);function D(y){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===y||"esriGeometryMultipoint"===y?P.I4:"esriGeometryPolyline"===y?P.ET:P.lF}}}const B=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let b=1;function L(y,o){if((0,F.Z)("esri-csp-restrictions"))return()=>({[o]:null,...y});try{let x=`this.${o} = null;`;for(const S in y)x+=`this${B.test(S)?`.${S}`:`["${S}"]`} = ${JSON.stringify(y[S])};`;const N=new Function(`\n return class AttributesClass$${b++} {\n constructor() {\n ${x};\n }\n }\n `)();return()=>new N}catch{return()=>({[o]:null,...y})}}function Y(y={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,W.d9)(y)}}]}function g(y,o){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:y},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:o,supportsDelete:o,supportsEditing:o,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:o,supportsExceedsLimitStatistics:!0},query:R.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:o,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9185.407e5cfaabc9d5d9.js b/apps/n/porrtal-io-app/public/angular/9185.407e5cfaabc9d5d9.js deleted file mode 100644 index 29fbfa41..00000000 --- a/apps/n/porrtal-io-app/public/angular/9185.407e5cfaabc9d5d9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9185],{29185:(ct,I,n)=>{n.r(I),n.d(I,{loadGLTFMesh:()=>k});var L=n(15861),W=n(91558),$=n(84792),U=n(88159),j=n(21286),o=n(62208),y=n(30217),K=n(550),Z=n(28093),G=n(4794),N=n(61751),b=n(27530),X=n(1607),V=n(92529),m=n(60479),v=n(79800),p=n(63657),D=n(60490),Q=n(60853),z=n(9160),Y=n(93831),h=n(96170),H=n(37187),J=n(79331),C=n(67969),S=n(9554),x=n(63470),F=n(35995);function k(t,e,r){return R.apply(this,arguments)}function R(){return(R=(0,L.Z)(function*(t,e,r){const a=new z.C(q(r)),s=(yield(0,Y.Q)(a,e,r,!0)).model,f=s.lods.shift(),u=new Map,i=new Map;s.textures.forEach((d,B)=>u.set(B,nt(d))),s.materials.forEach((d,B)=>i.set(B,ot(d,u)));const c=et(f);for(const d of c.parts)st(c,d,i);const{position:T,normal:E,tangent:_,color:l,texCoord0:M}=c.vertexAttributes,P={position:T.typedBuffer,normal:(0,o.pC)(E)?E.typedBuffer:null,tangent:(0,o.pC)(_)?_.typedBuffer:null,uv:(0,o.pC)(M)?M.typedBuffer:null,color:(0,o.pC)(l)?l.typedBuffer:null},A=(0,Q.w1)(P,t,r);return{transform:A.transform,components:c.components,spatialReference:t.spatialReference,vertexAttributes:new V.Q({position:A.vertexAttributes.position,normal:A.vertexAttributes.normal,tangent:A.vertexAttributes.tangent,color:P.color,uv:P.uv})}})).apply(this,arguments)}function q(t){const e=t?.resolveFile;return e?{busy:!1,request:(r=(0,L.Z)(function*(a,s,f){const u=e(a),i="image"===s?"image":"binary"===s?"array-buffer":"json";return(yield(0,$.default)(u,{responseType:i,signal:(0,o.pC)(f)?f.signal:null})).data}),function(s,f,u){return r.apply(this,arguments)})}:null;var r}function O(t,e){if((0,o.Wi)(t))return"-";const r=t.typedBuffer;return`${(0,U.s1)(e,r.buffer,()=>e.size)}/${r.byteOffset}/${r.byteLength}`}function tt(t){return(0,o.pC)(t)?t.toString():"-"}function et(t){let e=0;const r={color:!1,tangent:!1,normal:!1,texCoord0:!1},a=new Map,s=new Map,f=[];for(const u of t.parts){const{attributes:{position:i,normal:c,color:T,tangent:E,texCoord0:_}}=u,l=`\n ${O(i,a)}/\n ${O(c,a)}/\n ${O(T,a)}/\n ${O(E,a)}/\n ${O(_,a)}/\n ${tt(u.transform)}\n `;let M=!1;const P=(0,U.s1)(s,l,()=>(M=!0,{start:e,length:i.count}));M&&(e+=i.count),c&&(r.normal=!0),T&&(r.color=!0),E&&(r.tangent=!0),_&&(r.texCoord0=!0),f.push({gltf:u,writeVertices:M,region:P})}return{vertexAttributes:{position:(0,D.gS)(m.fP,e),normal:r.normal?(0,D.gS)(m.ct,e):null,tangent:r.tangent?(0,D.gS)(m.ek,e):null,color:r.color?(0,D.gS)(m.mc,e):null,texCoord0:r.texCoord0?(0,D.gS)(m.Eu,e):null},parts:f,components:[]}}function nt(t){return new X.Z({data:t.data,wrap:lt(t.parameters.wrap)})}function ot(t,e){const r=new W.Z(function ut(t,e){return(0,G.f)(g(t[0]),g(t[1]),g(t[2]),e)}(t.color,t.opacity)),a=t.emissiveFactor?new W.Z(function it(t){return(0,Z.f)(g(t[0]),g(t[1]),g(t[2]))}(t.emissiveFactor)):null;return new b.Z({color:r,colorTexture:(0,o.Wg)((0,o.yw)(t.textureColor,s=>e.get(s))),normalTexture:(0,o.Wg)((0,o.yw)(t.textureNormal,s=>e.get(s))),emissiveColor:a,emissiveTexture:(0,o.Wg)((0,o.yw)(t.textureEmissive,s=>e.get(s))),occlusionTexture:(0,o.Wg)((0,o.yw)(t.textureOcclusion,s=>e.get(s))),alphaMode:at(t.alphaMode),alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,metallic:t.metallicFactor,roughness:t.roughnessFactor,metallicRoughnessTexture:(0,o.Wg)((0,o.yw)(t.textureMetallicRoughness,s=>e.get(s))),colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform})}function st(t,e,r){e.writeVertices&&function rt(t,e){const{position:r,normal:a,tangent:s,color:f,texCoord0:u}=t.vertexAttributes,i=e.region.start,{attributes:c,transform:T}=e.gltf,E=c.position.count;if((0,v.t)(r.slice(i,E),c.position,T),(0,o.pC)(c.normal)&&(0,o.pC)(a)){const _=(0,y.b)((0,K.c)(),T),l=a.slice(i,E);(0,v.a)(l,c.normal,_),(0,j.oc)(_)&&(0,v.n)(l,l)}else(0,o.pC)(a)&&(0,S.f)(a,0,0,1,{dstIndex:i,count:E});if((0,o.pC)(c.tangent)&&(0,o.pC)(s)){const _=(0,y.b)((0,K.c)(),T),l=s.slice(i,E);(0,p.t)(l,c.tangent,_),(0,j.oc)(_)&&(0,p.n)(l,l)}else(0,o.pC)(s)&&(0,x.f)(s,0,0,1,1,{dstIndex:i,count:E});if((0,o.pC)(c.texCoord0)&&(0,o.pC)(u)?(0,F.n)(u.slice(i,E),c.texCoord0):(0,o.pC)(u)&&(0,F.f)(u,0,0,{dstIndex:i,count:E}),(0,o.pC)(c.color)&&(0,o.pC)(f)){const _=c.color,l=f.slice(i,E);if(4===_.elementCount)_ instanceof m.ek?(0,p.s)(l,_,255):_ instanceof m.mc?(0,x.c)(l,_):_ instanceof m.v6&&(0,p.a)(l,_,8);else{(0,x.f)(l,255,255,255,255);const M=m.ne.fromTypedArray(l.typedBuffer,l.typedBufferStride);_ instanceof m.ct?(0,v.s)(M,_,255):_ instanceof m.ne?(0,S.c)(M,_):_ instanceof m.mw&&(0,v.b)(M,_,8)}}else(0,o.pC)(f)&&(0,x.f)(f.slice(i,E),255,255,255,255)}(t,e);const a=e.gltf,s=function _t(t,e){switch(e){case C.MX.TRIANGLES:return(0,h.nh)(t,H.DX);case C.MX.TRIANGLE_STRIP:return(0,h.DA)(t);case C.MX.TRIANGLE_FAN:return(0,h.jX)(t)}}(a.indices||a.attributes.position.count,a.primitiveType),f=e.region.start;if(f)for(let u=0;u{n.r(s),n.d(s,{v:()=>f});var u,l,r,d=n(1719),_={exports:{}};u=_,void 0!==(r=_.exports,Object.defineProperty(r,"__esModule",{value:!0}),l=void(r.default={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"sau CN",_era_bc:"Tr\u01b0\u1edbc CN",A:"s",P:"c",AM:"SA",PM:"CH","A.M.":"SA","P.M.":"CH",January:"th\xe1ng 1",February:"th\xe1ng 2",March:"th\xe1ng 3",April:"th\xe1ng 4",May:"th\xe1ng 5",June:"th\xe1ng 6",July:"th\xe1ng 7",August:"th\xe1ng 8",September:"th\xe1ng 9",October:"th\xe1ng 10",November:"th\xe1ng 11",December:"th\xe1ng 12",Jan:"thg 1",Feb:"thg 2",Mar:"thg 3",Apr:"thg 4","May(short)":"thg 5",Jun:"thg 6",Jul:"thg 7",Aug:"thg 8",Sep:"thg 9",Oct:"thg 10",Nov:"thg 11",Dec:"thg 12",Sunday:"Ch\u1ee7 Nh\u1eadt",Monday:"Th\u1ee9 Hai",Tuesday:"Th\u1ee9 Ba",Wednesday:"Th\u1ee9 T\u01b0",Thursday:"Th\u1ee9 N\u0103m",Friday:"Th\u1ee9 S\xe1u",Saturday:"Th\u1ee9 B\u1ea3y",Sun:"CN",Mon:"Th 2",Tue:"Th 3",Wed:"Th 4",Thu:"Th 5",Fri:"Th 6",Sat:"Th 7",_dateOrd:function(t){var e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"Thu ph\xf3ng",Play:"Ph\xe1t",Stop:"D\u1eebng",Legend:"Ch\xfa gi\u1ea3i","Click, tap or press ENTER to toggle":"",Loading:"\u0110ang t\u1ea3i",Home:"Trang ch\u1ee7",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"In",Image:"H\xecnh \u1ea3nh",Data:"D\u1eef li\u1ec7u",Print:"In","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"T\u1eeb %1 \u0111\u1ebfn %2","From %1":"T\u1eeb %1","To %1":"\u0110\u1ebfn %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""}))&&(u.exports=l);const f=function c(a,r){for(var t=0;te[o]})}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,d.g)(_.exports)},[_.exports])}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/921.17614f2ccc337a73.js b/apps/n/porrtal-io-app/public/angular/921.17614f2ccc337a73.js deleted file mode 100644 index bd593090..00000000 --- a/apps/n/porrtal-io-app/public/angular/921.17614f2ccc337a73.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[921],{26996:(de,ee,f)=>{f.d(ee,{Y:()=>b,m:()=>$});var W=f(36161),G=f(21286);function b(F,V,oe){const J=(0,G.fp)(Math.ceil(oe)),N=(F=>"vertical"===F||"horizontal"===F||"cross"===F||"esriSFSCross"===F||"esriSFSVertical"===F||"esriSFSHorizontal"===F)(V)?8*J:16*J,M=2*J;F.width=N,F.height=N;const E=F.getContext("2d");E.strokeStyle="#FFFFFF",E.lineWidth=J,E.beginPath(),"vertical"!==V&&"cross"!==V&&"esriSFSCross"!==V&&"esriSFSVertical"!==V||(E.moveTo(N/2,-M),E.lineTo(N/2,N+M)),"horizontal"!==V&&"cross"!==V&&"esriSFSCross"!==V&&"esriSFSHorizontal"!==V||(E.moveTo(-M,N/2),E.lineTo(N+M,N/2)),"forward-diagonal"!==V&&"diagonal-cross"!==V&&"esriSFSDiagonalCross"!==V&&"esriSFSForwardDiagonal"!==V||(E.moveTo(-M,-M),E.lineTo(N+M,N+M),E.moveTo(N-M,-M),E.lineTo(N+M,M),E.moveTo(-M,N-M),E.lineTo(M,N+M)),"backward-diagonal"!==V&&"diagonal-cross"!==V&&"esriSFSBackwardDiagonal"!==V&&"esriSFSDiagonalCross"!==V||(E.moveTo(N+M,-M),E.lineTo(-M,N+M),E.moveTo(M,-M),E.lineTo(-M,M),E.moveTo(N+M,N-M),E.lineTo(N-M,N+M)),E.stroke();const B=E.getImageData(0,0,F.width,F.height),U=new Uint8Array(B.data);let A;for(let j=0;j{f.d(ee,{B1:()=>W,DQ:()=>E,DT:()=>oe,JJ:()=>G,Or:()=>B,_U:()=>X,k3:()=>A,sX:()=>Z});const W=Number.POSITIVE_INFINITY,G=Math.PI,X=2*G,$=128/G,oe=G/180,M=1/Math.LN2;function E(u,K){return(u%=K)>=0?u:u+K}function B(u){return E(u*$,256)}function A(u){return Math.log(u)*M}function Z(u,K,Q){return u*(1-Q)+K*Q}},43289:(de,ee,f)=>{function U(u){return function E(u,K){return(u%=K)>=0?u:u+K}(.7111111111111111*u,256)}function w(u,K,Q){return u>=K&&u<=Q||u>=Q&&u<=K}f.d(ee,{s5:()=>U,vX:()=>w}),Math,Math},84439:(de,ee,f)=>{f.d(ee,{Z:()=>W});class W{constructor(X=0,b=0,$=0,F=0){this.x=X,this.y=b,this.width=$,this.height=F}get isEmpty(){return this.width<=0||this.height<=0}union(X){this.x=Math.min(this.x,X.x),this.y=Math.min(this.y,X.y),this.width=Math.max(this.width,X.width),this.height=Math.max(this.height,X.height)}}},5254:(de,ee,f)=>{f.d(ee,{Au:()=>E,Jz:()=>A,UJ:()=>U});const W=new Float32Array(1);function E(w){return[255&w,(65280&w)>>>8,(16711680&w)>>>16,(4278190080&w)>>>24]}function U(w,u){return 65535&w|u<<16}function A(w,u,K,Q){return 255&w|(255&u)<<8|(255&K)<<16|Q<<24}new Uint32Array(W.buffer)},19702:(de,ee,f)=>{f.d(ee,{A:()=>M});var W=f(15861),G=f(17626),X=f(54024),b=f(10699),$=f(32917),F=f(77712),J=(f(85931),f(90912),f(76898)),N=f(36947);const M=E=>{let B=class extends E{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(U){super.postscript(U),(0,N.qC)(this.layer)&&this.addResolvingPromise(this._validateHeightModelInfo())}_validateHeightModelInfo(){var U=this;return(0,W.Z)(function*(){const A=new AbortController,j=A.signal;U.handles.add((0,X.kB)(()=>A.abort())),yield(0,$.N1)(()=>U.view.defaultsFromMap?.heightModelInfoReady,j),(0,b.k_)(j);const Z=(0,N.Wt)(U.layer,U.view.heightModelInfo,U.supportsHeightUnitConversion);if(Z)throw Z})()}canResume(){const U=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return super.canResume()&&(!U||!U.minScale||!U.maxScale||U.minScale>=U.maxScale)}getSuspendInfo(){const U=super.getSuspendInfo(),A=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return A&&A.minScale&&A.maxScale&&A.minScale{f.r(ee),f.d(ee,{default:()=>Lt});var W=f(15861),G=f(17626),X=f(26584),b=f(62208),$=f(10699),F=f(32917),V=f(77712),N=(f(85931),f(90912),f(76898));class M{constructor(e,i){this._lockedSchemaPixelSize=e,this._isGCS=i}getLevelRowColumn(e){return this._isGCS?[e[0],e[1]>>1,e[2]>>1]:256===this._lockedSchemaPixelSize&&e[0]>0?[e[0]-1,e[1]>>1,e[2]>>1]:e}adjustLevel(e){return this._isGCS?e:256===this._lockedSchemaPixelSize?e>0?e-1:0:e}getShift(e,i){let t=0,n=0;return(256===this._lockedSchemaPixelSize||this._isGCS)&&(e[2]%2&&(t=i),e[1]%2&&(n=i)),[t,n]}getScale(e){if(this._isGCS){if(512===this._lockedSchemaPixelSize)return 4}else if(256===this._lockedSchemaPixelSize&&0===e)return 1;return 2}}var E=f(1036),B=f(49966),U=f(65401),A=f(21726),j=f(59289),Z=f(84439);class w{constructor(e,i){this._width=0,this._height=0,this._free=[],this._width=e,this._height=i,this._free.push(new Z.Z(0,0,e,i))}get width(){return this._width}get height(){return this._height}allocate(e,i){if(e>this._width||i>this._height)return new Z.Z;let t=null,n=-1;for(let r=0;re&&this._free.push(new Z.Z(t.x+e,t.y,t.width-e,i)),t.height>i&&this._free.push(new Z.Z(t.x,t.y+i,t.width,t.height-i))):(t.width>e&&this._free.push(new Z.Z(t.x+e,t.y,t.width-e,t.height)),t.height>i&&this._free.push(new Z.Z(t.x,t.y+i,e,t.height-i))),new Z.Z(t.x,t.y,e,i))}release(e){for(let i=0;i{if(s<=256){const l=e+s;if(this._rangePromises.has(l))a.push(this._rangePromises.get(l));else{const h=n.getRange(e,s).then(()=>{this._rangePromises.delete(l)},()=>{this._rangePromises.delete(l)});this._rangePromises.set(l,h),a.push(h)}}}),Promise.all(a).then(()=>{let s=this._glyphIndex[e];s||(s={},this._glyphIndex[e]=s);for(const l of i){const h=s[l];if(h){t[l]={sdf:!0,rect:h.rect,metrics:h.metrics,page:h.page,code:l};continue}const m=n.getGlyph(e,l);if(!m||!m.metrics)continue;const _=m.metrics;let c;if(0===_.width)c=new Z.Z(0,0,0,0);else{const p=_.width+6,y=_.height+6;let x=p%4?4-p%4:4,g=y%4?4-y%4:4;1===x&&(x=5),1===g&&(g=5),c=this._binPack.allocate(p+x,y+g),c.isEmpty&&(this._dirties[this._currentPage]||(this._glyphData[this._currentPage]=null),this._currentPage=this._glyphData.length,this._glyphData.push(new Uint8Array(this.width*this.height)),this._dirties.push(!0),this._textures.push(void 0),this._binPack=new w(this.width-4,this.height-4),c=this._binPack.allocate(p+x,y+g));const L=this._glyphData[this._currentPage],D=m.bitmap;let S,R;if(D)for(let T=0;T{t.addRange(i,new ae(new le.Z(new Uint8Array(a.data),new DataView(a.data))))}).catch(()=>{t.addRange(i,new ae)})}return t.addRange(i,new ae),Promise.resolve()}getGlyph(e,i){const t=this._getFontStack(e);if(!t)return;const n=Math.floor(i/256);if(n>256)return;const r=t.getRange(n);return r?{metrics:r.getMetrics(i),bitmap:r.getBitmap(i)}:void 0}_getFontStack(e){let i=this._glyphInfo[e];return i||(i=this._glyphInfo[e]=new Pe),i}}var He=f(26996);class ve{constructor(e,i,t=0){this._size=[],this._mosaicsData=[],this._textures=[],this._dirties=[],this._maxItemSize=0,this._currentPage=0,this._pageWidth=0,this._pageHeight=0,this._mosaicRects={},this.pixelRatio=1,(e<=0||i<=0)&&console.error("Sprites mosaic defaultWidth and defaultHeight must be greater than zero!"),this._pageWidth=e,this._pageHeight=i,t>0&&(this._maxItemSize=t),this._binPack=new w(e-4,i-4)}dispose(){this._binPack=null,this._mosaicRects={};for(const e of this._textures)e&&e.dispose();this._textures.length=0}getWidth(e){return e>=this._size.length?-1:this._size[e][0]}getHeight(e){return e>=this._size.length?-1:this._size[e][1]}getPageSize(e){return e>=this._size.length?null:this._size[e]}setSpriteSource(e){if(this.dispose(),this.pixelRatio=e.devicePixelRatio,0===this._mosaicsData.length){this._binPack=new w(this._pageWidth-4,this._pageHeight-4);const i=Math.floor(this._pageWidth),t=Math.floor(this._pageHeight),n=new Uint32Array(i*t);this._mosaicsData[0]=n,this._dirties.push(!0),this._size.push([this._pageWidth,this._pageHeight]),this._textures.push(void 0)}this._sprites=e}getSpriteItem(e,i=!1){let t,n,r=this._mosaicRects[e];if(r)return r;if(!this._sprites||"loaded"!==this._sprites.loadStatus||(e&&e.startsWith("dasharray-")?([t,n]=this._rasterizeDash(e),i=!0):t=this._sprites.getSpriteInfo(e),!t||!t.width||!t.height||t.width<0||t.height<0))return null;const o=t.width,a=t.height,[s,l,h]=this._allocateImage(o,a);return s.width<=0?null:(this._copy(s,t,l,h,i,n),r={rect:s,width:o,height:a,sdf:t.sdf,simplePattern:!1,pixelRatio:t.pixelRatio,page:l},this._mosaicRects[e]=r,r)}getSpriteItems(e){const i={};for(const t of e)i[t.name]=this.getSpriteItem(t.name,t.repeat);return i}getMosaicItemPosition(e,i){const t=this.getSpriteItem(e,i),n=t&&t.rect;return n?(n.width=t.width,n.height=t.height,{tl:[n.x+2,n.y+2],br:[n.x+2+t.width,n.y+2+t.height],page:t.page}):null}bind(e,i,t=0,n=0){if(t>=this._size.length||t>=this._mosaicsData.length)return;this._textures[t]||(this._textures[t]=new K.x(e,{pixelFormat:u.VI.RGBA,dataType:u.Br.UNSIGNED_BYTE,wrapMode:u.e8.CLAMP_TO_EDGE,width:this._size[t][0],height:this._size[t][1]},new Uint8Array(this._mosaicsData[t].buffer)));const r=this._textures[t];r.setSamplingMode(i),this._dirties[t]&&r.setData(new Uint8Array(this._mosaicsData[t].buffer)),e.bindTexture(r,n),this._dirties[t]=!1}static _copyBits(e,i,t,n,r,o,a,s,l,h,m){let _=n*i+t,c=s*o+a;if(m){c-=o;for(let v=-1;v<=h;v++,_=((v+h)%h+n)*i+t,c+=o)for(let p=-1;p<=l;p++)r[c+p]=e[_+(p+l)%l]}else for(let v=0;v=this._mosaicsData.length)return;const a=new Uint32Array(o?o.buffer:this._sprites.image.buffer),s=this._mosaicsData[t];s&&a||console.error("Source or target images are uninitialized!"),ve._copyBits(a,o?i.width:this._sprites.width,i.x,i.y,s,n[0],e.x+2,e.y+2,i.width,i.height,r),this._dirties[t]=!0}_allocateImage(e,i){e+=2,i+=2;const t=Math.max(e,i);if(this._maxItemSize&&this._maxItemSizethis._spriteMosaic)}get glyphMosaic(){return this._glyphMosaic}start(e){var i=this;return(0,W.Z)(function*(){i._spriteSourcePromise=i._layer.loadSpriteSource(i.devicePixelRatio,e),i._spriteSourcePromise.then(n=>{i._spriteMosaic=new ve(1024,1024,250),i._spriteMosaic.setSpriteSource(n)});const t=new se(i._layer.currentStyleInfo.glyphsUrl?(0,A.fl)(i._layer.currentStyleInfo.glyphsUrl,{...i._layer.customParameters,token:i._layer.apiKey}):null);i._glyphMosaic=new Q(1024,1024,t),i._broadcastPromise=(0,j.bA)("WorkerTileHandler",{client:i,schedule:e.schedule,signal:e.signal}).then(n=>{if(i._connection=n,i._layer&&!i._connection.closed){const r=n.broadcast("setStyle",i._layer.currentStyleInfo.style,e);Promise.all(r).catch(o=>(0,$.H9)(o))}})})()}updateStyle(e){var i=this;return(0,W.Z)(function*(){return yield i._broadcastPromise,i._broadcastPromise=Promise.all(i._connection.broadcast("updateStyle",e)),i._broadcastPromise})()}setSpriteSource(e){const i=new ve(1024,1024,250);return i.setSpriteSource(e),this._spriteMosaic=i,this._spriteSourcePromise=Promise.resolve(e),i}setStyle(e,i){var t=this;return(0,W.Z)(function*(){yield t._broadcastPromise,t._styleRepository=e,t._spriteSourcePromise=t._layer.loadSpriteSource(t.devicePixelRatio,null),t._spriteSourcePromise.then(r=>{t._spriteMosaic=new ve(1024,1024,250),t._spriteMosaic.setSpriteSource(r)});const n=new se(t._layer.currentStyleInfo.glyphsUrl?(0,A.fl)(t._layer.currentStyleInfo.glyphsUrl,{...t._layer.customParameters,token:t._layer.apiKey}):null);return t._glyphMosaic=new Q(1024,1024,n),t._broadcastPromise=Promise.all(t._connection.broadcast("setStyle",i)),t._broadcastPromise})()}fetchTileData(e,i){return this._getRefKeys(e,i).then(t=>{const n=this._layer.sourceNameToSource,r=[];for(const o in n)r.push(o);return this._getSourcesData(r,t,i)})}parseTileData(e,i){const t=e&&e.data;if(!t)return Promise.resolve(null);const{sourceName2DataAndRefKey:n,transferList:r}=t;return 0===Object.keys(n).length?Promise.resolve(null):this._broadcastPromise.then(()=>this._connection.invoke("createTileAndParse",{key:e.key.id,sourceName2DataAndRefKey:n,styleLayerUIDs:e.styleLayerUIDs},{...i,transferList:r}))}getSprites(e){var i=this;return(0,W.Z)(function*(){return yield i._spriteSourcePromise,i._spriteMosaic.getSpriteItems(e)})()}getGlyphs(e){return this._glyphMosaic.getGlyphItems(e.font,e.codePoints)}_getTilePayload(e,i,t){var n=this;return(0,W.Z)(function*(){const r=me.Z.pool.acquire(e.id),o=n._layer.sourceNameToSource[i],{level:a,row:s,col:l}=r;me.Z.pool.release(r);try{return{protobuff:yield o.requestTile(a,s,l,t),sourceName:i}}catch(h){if((0,$.D_)(h))throw h;return{protobuff:null,sourceName:i}}})()}_getRefKeys(e,i){const t=this._layer.sourceNameToSource,n=new Array;for(const r in t){const o=t[r].getRefKey(e,i);n.push(o)}return(0,$.as)(n)}_getSourcesData(e,i,t){const n=[];for(let r=0;r{const o={},a=[];for(let s=0;s0&&(o[r[s].value.sourceName]={refKey:i[s].value.id,protobuff:r[s].value.protobuff},a.push(r[s].value.protobuff));return{sourceName2DataAndRefKey:o,transferList:a}})}}var je=f(54540),Je=f(51200),Me=f(47132),ye=f(76763),z=f(1268);function Ze(d,e,i,t,n,r){const{iconRotationAlignment:o,textRotationAlignment:a,iconTranslate:s,iconTranslateAnchor:l,textTranslate:h,textTranslateAnchor:m}=t;let _=0;for(const c of d.colliders){const[v,p]=0===c.partIndex?s:h,y=0===c.partIndex?l:m,x=c.minLod<=r&&r<=c.maxLod;_+=x?0:1,c.enabled=x,c.xScreen=c.xTile*n[0]+c.yTile*n[3]+n[6],c.yScreen=c.xTile*n[1]+c.yTile*n[4]+n[7],y===z.fD.MAP?(c.xScreen+=i*v-e*p,c.yScreen+=e*v+i*p):(c.xScreen+=v,c.yScreen+=p),z.aF.VIEWPORT===(0===c.partIndex?o:a)?(c.dxScreen=c.dxPixels,c.dyScreen=c.dyPixels):(c.dxScreen=i*(c.dxPixels+c.width/2)-e*(c.dyPixels+c.height/2)-c.width/2,c.dyScreen=e*(c.dxPixels+c.width/2)+i*(c.dyPixels+c.height/2)-c.height/2)}d.colliders.length>0&&_===d.colliders.length&&(d.unique.show=!1)}class Xe{constructor(e,i,t,n,r,o){this._symbols=e,this._styleRepository=n,this._zoom=r,this._currentLayerCursor=0,this._currentSymbolCursor=0,this._styleProps=new Map,this._allNeededMatrices=new Map,this._gridIndex=new ye.HX(i,t,Me.PF),this._si=Math.sin(Math.PI*o/180),this._co=Math.cos(Math.PI*o/180);for(const a of e)for(const s of a.symbols)this._allNeededMatrices.has(s.tile)||this._allNeededMatrices.set(s.tile,(0,B.a)(s.tile.transforms.tileUnitsToPixels))}work(e){const i=this._gridIndex;function t(r){const o=r.xScreen+r.dxScreen,a=r.yScreen+r.dyScreen,s=o+r.width,l=a+r.height,[h,m,_,c]=i.getCellSpan(o,a,s,l);for(let v=m;v<=c;v++)for(let p=h;p<=_;p++){const y=i.cells[v][p];for(const x of y){const g=x.xScreen+x.dxScreen,L=x.yScreen+x.dyScreen,D=g+x.width,S=L+x.height;if(!(sD||lS))return!0}}return!1}const n=performance.now();for(;this._currentLayerCursore)return!1;const a=r.symbols[this._currentSymbolCursor];if(!a.unique.show)continue;Ze(a,this._si,this._co,o,this._allNeededMatrices.get(a.tile),this._zoom);const s=a.unique;if(!s.show)continue;const{iconAllowOverlap:l,iconIgnorePlacement:h,textAllowOverlap:m,textIgnorePlacement:_}=o;for(const c of a.colliders){if(!c.enabled)continue;const v=s.parts[c.partIndex];!v.show||!(c.partIndex?m:l)&&t(c)&&(c.hard?s.show=!1:v.show=!1)}if(s.show)for(const c of a.colliders){if(!c.enabled||(c.partIndex?_:h)||!s.parts[c.partIndex].show)continue;const v=c.xScreen+c.dxScreen,p=c.yScreen+c.dyScreen,y=v+c.width,x=p+c.height,[g,L,D,S]=this._gridIndex.getCellSpan(v,p,y,x);for(let R=L;R<=S;R++)for(let T=g;T<=D;T++)this._gridIndex.cells[R][T].push(c)}}}return!0}_getProperties(e){const i=this._styleProps.get(e);if(i)return i;const t=this._zoom,n=this._styleRepository.getStyleLayerByUID(e),r=n.getLayoutValue("symbol-placement",t)!==z.R.POINT;let o=n.getLayoutValue("icon-rotation-alignment",t);o===z.aF.AUTO&&(o=r?z.aF.MAP:z.aF.VIEWPORT);let a=n.getLayoutValue("text-rotation-alignment",t);a===z.aF.AUTO&&(a=r?z.aF.MAP:z.aF.VIEWPORT);const s=n.getPaintValue("icon-translate",t),l=n.getPaintValue("icon-translate-anchor",t),h=n.getPaintValue("text-translate",t),m=n.getPaintValue("text-translate-anchor",t),_={iconAllowOverlap:n.getLayoutValue("icon-allow-overlap",t),iconIgnorePlacement:n.getLayoutValue("icon-ignore-placement",t),textAllowOverlap:n.getLayoutValue("text-allow-overlap",t),textIgnorePlacement:n.getLayoutValue("text-ignore-placement",t),iconRotationAlignment:o,textRotationAlignment:a,iconTranslateAnchor:l,iconTranslate:s,textTranslateAnchor:m,textTranslate:h};return this._styleProps.set(e,_),_}}function Ye(d,e){if(d.priority-e.priority)return d.priority-e.priority;const i=d.tile.key,t=e.tile.key;return i.world-t.world?i.world-t.world:i.level-t.level?i.level-t.level:i.row-t.row?i.row-t.row:i.col-t.col?i.col-t.col:d.xTile-e.xTile?d.xTile-e.xTile:d.yTile-e.yTile}class $e{constructor(e,i,t,n,r,o){this._visibleTiles=e,this._symbolRepository=i,this._createCollisionJob=t,this._assignTileSymbolsOpacity=n,this._symbolLayerSorter=r,this._isLayerVisible=o,this._selectionJob=null,this._selectionJobCompleted=!1,this._collisionJob=null,this._collisionJobCompleted=!1,this._opacityJob=null,this._opacityJobCompleted=!1,this._running=!0}get running(){return this._running}setScreenSize(e,i){this._screenWidth===e&&this._screenHeight===i||this.restart(),this._screenWidth=e,this._screenHeight=i}restart(){this._selectionJob=null,this._selectionJobCompleted=!1,this._collisionJob=null,this._collisionJobCompleted=!1,this._opacityJob=null,this._opacityJobCompleted=!1,this._running=!0}continue(e){if(this._selectionJob||(this._selectionJob=this._createSelectionJob()),!this._selectionJobCompleted){const i=performance.now();if(!this._selectionJob.work(e)||(this._selectionJobCompleted=!0,0===(e=Math.max(0,e-(performance.now()-i)))))return!1}if(this._collisionJob||(this._collisionJob=this._createCollisionJob(this._selectionJob.sortedSymbols,this._screenWidth,this._screenHeight)),!this._collisionJobCompleted){const i=performance.now();if(!this._collisionJob.work(e)||(this._collisionJobCompleted=!0,0===(e=Math.max(0,e-(performance.now()-i)))))return!1}if(this._opacityJob||(this._opacityJob=this._createOpacityJob()),!this._opacityJobCompleted){const i=performance.now();if(!this._opacityJob.work(e)||(this._opacityJobCompleted=!0,0===(e=Math.max(0,e-(performance.now()-i)))))return!1}return this._running=!1,!0}_createSelectionJob(){const e=this._symbolRepository.uniqueSymbols;for(let s=0;ss)return!1;let v=null,p=!1,y=!1;for(const x of l.tileSymbols)if(!y||!p){const g=x.tile;(!v||g.isCoverage||g.neededForCoverage&&!p)&&(v=x,(g.neededForCoverage||g.isCoverage)&&(y=!0),g.isCoverage&&(p=!0))}if(v.selectedForRendering=!0,y){c.symbols.push(v),l.show=!0;for(const x of l.parts)x.show=!0}else l.show=!1}}for(const m of i)m.symbols.sort(Ye);return!0},get sortedSymbols(){return i.sort(a)}}}_createOpacityJob(){const e=this._assignTileSymbolsOpacity,i=this._visibleTiles;let t=0;function n(r,o){const a=r.symbols;for(const[s,l]of a)Qe(l,o);e(r,o);for(const s of r.childrenTiles)n(s,o)}return{work(r){const o=performance.now();for(;tr)return!1;const a=i[t];(0,b.pC)(a.parentTile)||n(a,performance.now())}return!0}}}}function Qe(d,e){for(const i of d){const t=i.unique;for(const n of t.parts)n.startOpacity+=(e-n.startTime)/Me.nN*(n.targetOpacity>.5?1:-1),n.startOpacity=Math.min(Math.max(n.startOpacity,0),1),n.startTime=e,n.targetOpacity=t.show&&n.show?1:0}}class it{constructor(e,i,t){this.tileCoordRange=e,this._visibleTiles=i,this._createUnique=t,this._tiles=new Map,this._uniqueSymbolsReferences=new Map}get uniqueSymbols(){return(0,b.Wi)(this._uniqueSymbolLayerArray)&&(this._uniqueSymbolLayerArray=this._createUniqueSymbolLayerArray()),this._uniqueSymbolLayerArray}add(e,i){this._uniqueSymbolLayerArray=null;let t=this._tiles.get(e.id);t||(t={symbols:new Map},this._tiles.set(e.id,t));const n=new Map;if(i)for(const a of i)t.symbols.has(a)&&(n.set(a,t.symbols.get(a)),t.symbols.delete(a));else for(const[a,s]of e.layerData)t.symbols.has(a)&&(n.set(a,t.symbols.get(a)),t.symbols.delete(a));this._removeSymbols(n);const r=e.symbols,o=new Map;for(const[a,s]of r){let l=s.length;if(l>=32){let h=this.tileCoordRange;do{h/=2,l/=4}while(l>8&&h>64);const m=new ye.HX(this.tileCoordRange,this.tileCoordRange,h);o.set(a,{flat:s,index:m}),t.symbols.set(a,{flat:s,index:m});for(const _ of s)m.getCell(_.xTile,_.yTile).push(_)}else o.set(a,{flat:s}),t.symbols.set(a,{flat:s})}this._addSymbols(e.key,r)}deleteStyleLayers(e){this._uniqueSymbolLayerArray=null;for(const[i,t]of this._tiles){const n=new Map;for(const r of e)t.symbols.has(r)&&(n.set(r,t.symbols.get(r)),t.symbols.delete(r));this._removeSymbols(n),0===t.symbols.size&&this._tiles.delete(i)}}removeTile(e){this._uniqueSymbolLayerArray=null;const i=this._tiles.get(e.id);if(!i)return;const t=new Map;for(const[n,r]of e.symbols)i.symbols.has(n)&&(t.set(n,i.symbols.get(n)),i.symbols.delete(n));this._removeSymbols(t),0===i.symbols.size&&this._tiles.delete(e.id)}_removeSymbols(e){for(const[i,{flat:t}]of e)for(const n of t){const r=n.unique,o=r.tileSymbols,a=o.length-1;for(let s=0;si.level){const r=e.key.level-i.level;if(e.key.row>>r!==i.row||e.key.col>>r!==i.col)return}if(i.level>e.key.level){const r=i.level-e.key.level;if(i.row>>r!==e.key.row||i.col>>r!==e.key.col)return}if(i.equals(e.key)){for(const r of e.childrenTiles)this._matchSymbols(r,i,t);return}const n=new Map;for(const[r,o]of t){const a=[];for(const m of o){const _=(0,ye.co)(this.tileCoordRange,m.xTile,i.level,i.col,e.key.level,e.key.col),c=(0,ye.co)(this.tileCoordRange,m.yTile,i.level,i.row,e.key.level,e.key.row);_>=0&&_=0&&c0&&n.set(r,s)}for(const r of e.childrenTiles)this._matchSymbols(r,i,n)}_createUniqueSymbolLayerArray(){const e=this._uniqueSymbolsReferences,i=new Array(e.size);let t,n=0;for(const[r,o]of e){const a=new Array(o.size);t=0;for(const s of o)a[t++]=s;i[n]={styleLayerUID:r,uniqueSymbols:a},n++}return i}}var rt=f(2584),ot=f(9598);class at extends ot.Z{constructor(){super(...arguments),this._fullCacheLodInfos=null,this._levelByScale={}}getTileParentId(e){const i=me.Z.pool.acquire(e),t=0===i.level?null:me.Z.getId(i.level-1,i.row>>1,i.col>>1,i.world);return me.Z.pool.release(i),t}getTileCoverage(e,i,t){const n=super.getTileCoverage(e,i,t);if(!n)return n;const r=1<o.row>=0&&o.rowi[0].scale)return i[0].level;let t,n;for(let r=0;rn.scale)return t=i[r],t.level+(t.scale-e)/(t.scale-n.scale);return i[i.length-1].level}}_initializeFullCacheLODs(e){let i;i=0===e[0].level?e.map(t=>({level:t.level,resolution:t.resolution,scale:t.scale})):rt.Z.create({size:this.tileInfo.size[0],spatialReference:this.tileInfo.spatialReference}).lods.map(r=>({level:r.level,resolution:r.resolution,scale:r.scale}));for(let t=0;te.abort()),this._ongoingRequestToController.clear(),this._ongoingTileRequests.clear()}getVectorTile(e,i,t,n){var r=this;return(0,W.Z)(function*(){const o=new me.Z(e,i,t,0);let a=r._memCache.get(o.id);if((0,b.pC)(a))return a.retain(),a;const s=yield r._getVectorTileData(o);if((0,$.k_)(n),!r._layer)return null;if(a=r._memCache.get(o.id),(0,b.pC)(a))return a.retain(),a;const l=r._layer.tileInfo.getTileBounds((0,U.Ue)(),o),h=r._tileInfoView.getTileResolution(e);return a=new je.i(o,h,l[0],l[3],512,512,r._styleRepository,r._memCache),(0,b.pC)(s)?(a.setData(s),a.retain(),r._memCache.put(o.id,a,a.memoryUsage*a.referenced,E.an)):a.setData(null),a.neededForCoverage=!0,a.transforms.tileUnitsToPixels=(0,B.f)(1/8,0,0,0,1/8,0,0,0,1),function nt(d,e){const i=[],t=new it(4096,i,()=>{const r=new Je.J;return r.show=!1,r.parts.push({startTime:0,startOpacity:0,targetOpacity:0,show:!1}),r.parts.push({startTime:0,startOpacity:0,targetOpacity:0,show:!1}),r}),n=new $e(i,t,(r,o,a)=>new Xe(r,o,a,d.styleRepository,d.key.level,0),(r,o)=>{(0,ye.C$)(r,o,!1)},()=>0,r=>{const o=e.getStyleLayerByUID(r).getLayoutProperty("visibility");return!o||o.getValue()!==z.EE.NONE});i.push(d),t.add(d),n.setScreenSize(512,512),n.continue(1/0)}(a,r._styleRepository),a})()}_getVectorTileData(e){const i=e.id;if(this._ongoingTileRequests.has(i))return this._ongoingTileRequests.get(i);const t=new AbortController,r=this._getParsedVectorTileData(e,{signal:t.signal}).then(o=>(this._ongoingTileRequests.delete(i),this._ongoingRequestToController.delete(i),o)).catch(()=>(this._ongoingTileRequests.delete(i),this._ongoingRequestToController.delete(i),null));return this._ongoingTileRequests.set(i,r),this._ongoingRequestToController.set(i,t),r}_getParsedVectorTileData(e,i){return this.fetchTileData(e,i).then(t=>this.parseTileData({key:e,data:t},i))}request(e,i){return this._loader.request(e,"binary",i)}}var Ie=f(21286),st=f(67709),te=f(39351),ce=f(39406),xe=f(5254);class we{constructor(){this.name=this.constructor.name||"UnnamedBrush",this.brushEffect=null}prepareState(e,i){}draw(e,i,t){}drawMany(e,i,t){for(const n of i)n.visible&&this.draw(e,n,t)}}var lt=f(83994),ct=f(49353);const Ce=1/65536;var De=f(9545),Re=f(43289);const pt={vtlBackground:class ut extends we{constructor(){super(...arguments),this._color=(0,st.f)(1,0,0,1),this._patternMatrix=(0,B.c)(),this._programOptions={id:!1,pattern:!1}}dispose(){this._vao&&(this._vao.dispose(),this._vao=null)}drawMany(e,i){const{context:t,painter:n,styleLayerUID:r,requestRender:o,allowDelayedRender:a}=e;this._loadWGLResources(e);const s=e.displayLevel,l=e.styleLayer,h=l.backgroundMaterial,m=n.vectorTilesMaterialManager,_=l.getPaintValue("background-color",s),c=l.getPaintValue("background-opacity",s),v=l.getPaintValue("background-pattern",s),p=void 0!==v,y=_[3]*c,x=1|window.devicePixelRatio,g=e.spriteMosaic;let L,D;const S=x>te.a?2:1,R=e.drawPhase===ce.jx.HITTEST,T=this._programOptions;T.id=R,T.pattern=p;const P=m.getMaterialProgram(t,h,T);if(a&&(0,b.pC)(o)&&!P.isCompiled)o();else{if(t.bindVAO(this._vao),t.useProgram(P),p){const I=g.getMosaicItemPosition(v,!0);if((0,b.pC)(I)){const{tl:O,br:C,page:H}=I;L=C[0]-O[0],D=C[1]-O[1];const k=g.getPageSize(H);(0,b.pC)(k)&&(g.bind(t,u.cw.LINEAR,H,te.V4),P.setUniform4f("u_tlbr",O[0],O[1],C[0],C[1]),P.setUniform2fv("u_mosaicSize",k),P.setUniform1i("u_texture",te.V4))}P.setUniform1f("u_opacity",c)}else this._color[0]=y*_[0],this._color[1]=y*_[1],this._color[2]=y*_[2],this._color[3]=y,P.setUniform4fv("u_color",this._color);if(P.setUniform1f("u_depth",l.z||0),R){const I=(0,xe.Au)(r+1);P.setUniform4fv("u_id",I)}for(const I of i){if(P.setUniform1f("u_coord_range",I.rangeX),P.setUniformMatrix3fv("u_dvsMat3",I.transforms.dvs),p){const O=Math.max(2**(Math.round(s)-I.key.level),1),C=S*I.width*O,H=C/(0,Ie.fp)(L),k=C/(0,Ie.fp)(D);this._patternMatrix[0]=H,this._patternMatrix[4]=k,P.setUniformMatrix3fv("u_pattern_matrix",this._patternMatrix)}t.setStencilFunction(u.wb.EQUAL,0,255),t.drawArrays(u.MX.TRIANGLE_STRIP,0,4)}}}_loadWGLResources(e){if(this._vao)return;const{context:i,styleLayer:t}=e,n=t.backgroundMaterial,r=new Int8Array([0,0,1,0,0,1,1,1]),o=lt.f.createVertex(i,u.l1.STATIC_DRAW,r),a=new ct.U(i,n.getAttributeLocations(),n.getLayoutInfo(),{geometry:o});this._vao=a}},vtlFill:class ht extends we{constructor(){super(...arguments),this._fillProgramOptions={id:!1,pattern:!1},this._outlineProgramOptions={id:!1}}dispose(){}drawMany(e,i){const{displayLevel:t,drawPhase:n,renderPass:r,spriteMosaic:o,styleLayerUID:a}=e;let s=!1;for(const S of i)if(S.layerData.has(a)){const R=S.layerData.get(a);if(R.fillIndexCount>0||R.outlineIndexCount>0){s=!0;break}}if(!s)return;const l=e.styleLayer,h=l.getPaintProperty("fill-pattern"),m=void 0!==h,_=m&&h.isDataDriven;let c;if(m&&!_){const S=h.getValue(t);c=o.getMosaicItemPosition(S,!0)}const v=!m&&l.getPaintValue("fill-antialias",t);let x,p=!0,y=1;if(!m){const S=l.getPaintProperty("fill-color"),R=l.getPaintProperty("fill-opacity");if(!S?.isDataDriven&&!R?.isDataDriven){const T=l.getPaintValue("fill-color",t);y=l.getPaintValue("fill-opacity",t)*T[3],y>=1&&(p=!1)}}if(p&&"opaque"===r)return;n===ce.jx.HITTEST&&(x=(0,xe.Au)(a+1));const g=l.getPaintValue("fill-translate",t),L=l.getPaintValue("fill-translate-anchor",t);(p||"translucent"!==r)&&this._drawFill(e,a,l,i,g,L,m,c,_,x),v&&"opaque"!==r&&!(!l.hasDataDrivenOutlineColor&&l.outlineUsesFillColor&&y<1)&&this._drawOutline(e,a,l,i,g,L,x)}_drawFill(e,i,t,n,r,o,a,s,l,h){if(a&&!l&&(0,b.Wi)(s))return;const{context:m,displayLevel:_,state:c,drawPhase:v,painter:p,pixelRatio:y,spriteMosaic:x,requestRender:g,allowDelayedRender:L}=e,D=t.fillMaterial,S=p.vectorTilesMaterialManager,R=y>te.a?2:1,T=v===ce.jx.HITTEST,P=this._fillProgramOptions;P.id=T,P.pattern=a;const I=S.getMaterialProgram(m,D,P);if(L&&(0,b.pC)(g)&&!I.isCompiled)return void g();if(m.useProgram(I),(0,b.pC)(s)){const{page:C}=s,H=x.getPageSize(C);(0,b.pC)(H)&&(x.bind(m,u.cw.LINEAR,C,te.V4),I.setUniform2fv("u_mosaicSize",H),I.setUniform1i("u_texture",te.V4))}I.setUniformMatrix3fv("u_displayMat3",o===z.fD.VIEWPORT?c.displayMat3:c.displayViewMat3),I.setUniform2fv("u_fillTranslation",r),I.setUniform1f("u_depth",t.z+Ce),T&&I.setUniform4fv("u_id",h);let O=-1;for(const C of n){if(!C.layerData.has(i))continue;C.key.level!==O&&(O=C.key.level,D.setDataUniforms(I,_,t,O,x));const H=C.layerData.get(i);if(!H.fillIndexCount)continue;H.prepareForRendering(m);const k=H.fillVertexArrayObject;if(!(0,b.Wi)(k)){if(m.bindVAO(k),I.setUniformMatrix3fv("u_dvsMat3",C.transforms.dvs),m.setStencilFunction(u.wb.EQUAL,C.stencilRef,255),a){const ie=Math.max(2**(Math.round(_)-C.key.level),1);I.setUniform1f("u_patternFactor",C.rangeX/(R*C.width*ie))}if(l){const ie=H.patternMap;if(!ie)continue;for(const[q,fe]of ie){const _e=x.getPageSize(q);(0,b.pC)(_e)&&(x.bind(m,u.cw.LINEAR,q,te.V4),I.setUniform2fv("u_mosaicSize",_e),I.setUniform1i("u_texture",te.V4),m.drawElements(u.MX.TRIANGLES,fe[1],u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*fe[0]))}}else m.drawElements(u.MX.TRIANGLES,H.fillIndexCount,u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*H.fillIndexStart);C.triangleCount+=H.fillIndexCount/3}}}_drawOutline(e,i,t,n,r,o,a){const{context:s,displayLevel:l,state:h,drawPhase:m,painter:_,pixelRatio:c,spriteMosaic:v,requestRender:p,allowDelayedRender:y}=e,x=t.outlineMaterial,g=_.vectorTilesMaterialManager,L=.75/c,D=m===ce.jx.HITTEST,S=this._outlineProgramOptions;S.id=D;const R=g.getMaterialProgram(s,x,S);if(y&&(0,b.pC)(p)&&!R.isCompiled)return void p();s.useProgram(R),R.setUniformMatrix3fv("u_displayMat3",o===z.fD.VIEWPORT?h.displayMat3:h.displayViewMat3),R.setUniform2fv("u_fillTranslation",r),R.setUniform1f("u_depth",t.z+Ce),R.setUniform1f("u_outline_width",L),D&&R.setUniform4fv("u_id",a);let T=-1;for(const P of n){if(!P.layerData.has(i))continue;P.key.level!==T&&(T=P.key.level,x.setDataUniforms(R,l,t,T,v));const I=P.layerData.get(i);if(I.prepareForRendering(s),!I.outlineIndexCount)continue;const O=I.outlineVertexArrayObject;(0,b.Wi)(O)||(s.bindVAO(O),R.setUniformMatrix3fv("u_dvsMat3",P.transforms.dvs),s.setStencilFunction(u.wb.EQUAL,P.stencilRef,255),s.drawElements(u.MX.TRIANGLES,I.outlineIndexCount,u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*I.outlineIndexStart),P.triangleCount+=I.outlineIndexCount/3)}}},vtlLine:class ft extends we{constructor(){super(...arguments),this._programOptions={id:!1,pattern:!1,sdf:!1}}dispose(){}drawMany(e,i){const{context:t,displayLevel:n,state:r,drawPhase:o,painter:a,pixelRatio:s,spriteMosaic:l,styleLayerUID:h,requestRender:m,allowDelayedRender:_}=e;if(!i.some(k=>k.layerData.get(h)?.lineIndexCount??!1))return;const c=e.styleLayer,v=c.lineMaterial,p=a.vectorTilesMaterialManager,y=c.getPaintValue("line-translate",n),x=c.getPaintValue("line-translate-anchor",n),g=c.getPaintProperty("line-pattern"),L=void 0!==g,D=L&&g.isDataDriven;let S,R;if(L&&!D){const k=g.getValue(n);S=l.getMosaicItemPosition(k)}let T=!1;if(!L){const k=c.getPaintProperty("line-dasharray");if(R=void 0!==k,T=R&&k.isDataDriven,R&&!T){const ie=k.getValue(n),q=c.getDashKey(ie,c.getLayoutValue("line-cap",n));S=l.getMosaicItemPosition(q)}}const P=1/s,I=o===ce.jx.HITTEST,O=this._programOptions;O.id=I,O.pattern=L,O.sdf=R;const C=p.getMaterialProgram(t,v,O);if(_&&(0,b.pC)(m)&&!C.isCompiled)return void m();if(t.useProgram(C),C.setUniformMatrix3fv("u_displayViewMat3",r.displayViewMat3),C.setUniformMatrix3fv("u_displayMat3",x===z.fD.VIEWPORT?r.displayMat3:r.displayViewMat3),C.setUniform2fv("u_lineTranslation",y),C.setUniform1f("u_depth",c.z),C.setUniform1f("u_antialiasing",P),I){const k=(0,xe.Au)(h+1);C.setUniform4fv("u_id",k)}if(S&&(0,b.pC)(S)){const{page:k}=S,ie=l.getPageSize(k);(0,b.pC)(ie)&&(l.bind(t,u.cw.LINEAR,k,te.V4),C.setUniform2fv("u_mosaicSize",ie),C.setUniform1i("u_texture",te.V4))}let H=-1;for(const k of i){if(!k.layerData.has(h))continue;k.key.level!==H&&(H=k.key.level,v.setDataUniforms(C,n,c,H,l)),C.setUniform1f("u_zoomFactor",2**(n-H)/s);const q=k.layerData.get(h);if(!q.lineIndexCount)continue;q.prepareForRendering(t);const fe=q.lineVertexArrayObject;if(!(0,b.Wi)(fe)){if(t.bindVAO(fe),C.setUniformMatrix3fv("u_dvsMat3",k.transforms.dvs),t.setStencilFunction(u.wb.EQUAL,k.stencilRef,255),D||T){const _e=q.patternMap;if(!_e)continue;for(const[Se,Y]of _e){const ge=l.getPageSize(Se);(0,b.pC)(ge)&&(l.bind(t,u.cw.LINEAR,Se,te.V4),C.setUniform2fv("u_mosaicSize",ge),C.setUniform1i("u_texture",te.V4),t.drawElements(u.MX.TRIANGLES,Y[1],u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*Y[0]))}}else t.drawElements(u.MX.TRIANGLES,q.lineIndexCount,u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*q.lineIndexStart);k.triangleCount+=q.lineIndexCount/3}}}},vtlCircle:class dt extends we{constructor(){super(...arguments),this._programOptions={id:!1}}dispose(){}drawMany(e,i){const{context:t,displayLevel:n,requiredLevel:r,state:o,drawPhase:a,painter:s,spriteMosaic:l,styleLayerUID:h,requestRender:m,allowDelayedRender:_}=e;if(!i.some(T=>T.layerData.get(h)?.circleIndexCount??!1))return;const c=e.styleLayer,v=c.circleMaterial,p=s.vectorTilesMaterialManager,x=c.getPaintValue("circle-translate",n),g=c.getPaintValue("circle-translate-anchor",n),L=a===ce.jx.HITTEST,D=this._programOptions;D.id=L;const S=p.getMaterialProgram(t,v,D);if(_&&(0,b.pC)(m)&&!S.isCompiled)return void m();t.useProgram(S),S.setUniformMatrix3fv("u_displayMat3",g===z.fD.VIEWPORT?o.displayMat3:o.displayViewMat3),S.setUniform2fv("u_circleTranslation",x),S.setUniform1f("u_depth",c.z),S.setUniform1f("u_antialiasingWidth",1.2);let R=-1;if(L){const T=(0,xe.Au)(h+1);S.setUniform4fv("u_id",T)}for(const T of i){if(!T.layerData.has(h))continue;T.key.level!==R&&(R=T.key.level,v.setDataUniforms(S,n,c,R,l));const P=T.layerData.get(h);if(!P.circleIndexCount)continue;P.prepareForRendering(t);const I=P.circleVertexArrayObject;(0,b.Wi)(I)||(t.bindVAO(I),S.setUniformMatrix3fv("u_dvsMat3",T.transforms.dvs),r!==T.key.level?t.setStencilFunction(u.wb.EQUAL,T.stencilRef,255):t.setStencilFunction(u.wb.GREATER,255,255),t.drawElements(u.MX.TRIANGLES,P.circleIndexCount,u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*P.circleIndexStart),T.triangleCount+=P.circleIndexCount/3)}}},vtlSymbol:class mt extends we{constructor(){super(...arguments),this._iconProgramOptions={id:!1,sdf:!1},this._sdfProgramOptions={id:!1},this._spritesTextureSize=(0,De.c)()}dispose(){}drawMany(e,i){const{drawPhase:t,styleLayerUID:n}=e,r=e.styleLayer;let o;t===ce.jx.HITTEST&&(o=(0,xe.Au)(n+1)),this._drawIcons(e,r,i,o),this._drawText(e,r,i,o)}_drawIcons(e,i,t,n){const{context:r,displayLevel:o,drawPhase:a,painter:s,spriteMosaic:l,state:h,styleLayerUID:m,requestRender:_,allowDelayedRender:c}=e,v=i.iconMaterial,p=s.vectorTilesMaterialManager;let y,x=!1;for(const H of t)if(H.layerData.has(m)&&(y=H.layerData.get(m),y.iconPerPageElementsMap.size>0)){x=!0;break}if(!x)return;const g=i.getPaintValue("icon-translate",o),L=i.getPaintValue("icon-translate-anchor",o);let D=i.getLayoutValue("icon-rotation-alignment",o);D===z.aF.AUTO&&(D=i.getLayoutValue("symbol-placement",o)===z.R.POINT?z.aF.VIEWPORT:z.aF.MAP);const S=D===z.aF.MAP,R=i.getLayoutValue("icon-keep-upright",o)&&S,T=y.isIconSDF,P=a===ce.jx.HITTEST,I=this._iconProgramOptions;I.id=P,I.sdf=T;const O=p.getMaterialProgram(r,v,I);if(c&&(0,b.pC)(_)&&!O.isCompiled)return void _();r.useProgram(O),O.setUniformMatrix3fv("u_displayViewMat3",D===z.aF.MAP?h.displayViewMat3:h.displayMat3),O.setUniformMatrix3fv("u_displayMat3",L===z.fD.VIEWPORT?h.displayMat3:h.displayViewMat3),O.setUniform2fv("u_iconTranslation",g),O.setUniform1f("u_depth",i.z),O.setUniform1f("u_mapRotation",(0,Re.s5)(h.rotation)),O.setUniform1f("u_keepUpright",R?1:0),O.setUniform1f("u_level",10*o),O.setUniform1i("u_texture",te.V4),O.setUniform1f("u_fadeDuration",Me.nN/1e3),P&&O.setUniform4fv("u_id",n);let C=-1;for(const H of t){if(!H.layerData.has(m)||(H.key.level!==C&&(C=H.key.level,v.setDataUniforms(O,o,i,C,l)),y=H.layerData.get(m),0===y.iconPerPageElementsMap.size))continue;y.prepareForRendering(r),y.updateOpacityInfo();const k=y.iconVertexArrayObject;if(!(0,b.Wi)(k)){r.bindVAO(k),O.setUniformMatrix3fv("u_dvsMat3",H.transforms.dvs),O.setUniform1f("u_time",(performance.now()-y.lastOpacityUpdate)/1e3);for(const[ie,q]of y.iconPerPageElementsMap)this._renderIconRange(e,O,q,ie,H)}}}_renderIconRange(e,i,t,n,r){const{context:o,spriteMosaic:a}=e;this._spritesTextureSize[0]=a.getWidth(n)/4,this._spritesTextureSize[1]=a.getHeight(n)/4,i.setUniform2fv("u_mosaicSize",this._spritesTextureSize),a.bind(o,u.cw.LINEAR,n,te.V4),o.setStencilTestEnabled(!0),o.setStencilFunction(u.wb.GREATER,255,255),o.setStencilWriteMask(0),o.drawElements(u.MX.TRIANGLES,t[1],u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*t[0]),r.triangleCount+=t[1]/3}_drawText(e,i,t,n){const{context:r,displayLevel:o,drawPhase:a,glyphMosaic:s,painter:l,pixelRatio:h,spriteMosaic:m,state:_,styleLayerUID:c,requestRender:v,allowDelayedRender:p}=e,y=i.textMaterial,x=l.vectorTilesMaterialManager;let g,L=!1;for(const ue of t)if(ue.layerData.has(c)&&(g=ue.layerData.get(c),g.glyphPerPageElementsMap.size>0)){L=!0;break}if(!L)return;const D=i.getPaintProperty("text-opacity");if(D&&!D.isDataDriven&&0===D.getValue(o))return;const S=i.getPaintProperty("text-color"),R=!S||S.isDataDriven||S.getValue(o)[3]>0,T=i.getPaintProperty("text-halo-width"),P=i.getPaintProperty("text-halo-color"),I=(!T||T.isDataDriven||T.getValue(o)>0)&&(!P||P.isDataDriven||P.getValue(o)[3]>0);if(!R&&!I)return;let C=i.getLayoutValue("text-rotation-alignment",o);C===z.aF.AUTO&&(C=i.getLayoutValue("symbol-placement",o)===z.R.POINT?z.aF.VIEWPORT:z.aF.MAP);const H=C===z.aF.MAP,k=i.getLayoutValue("text-keep-upright",o)&&H,ie=a===ce.jx.HITTEST,q=.8*3/h;this._glyphTextureSize||(this._glyphTextureSize=(0,De.f)(s.width/4,s.height/4));const fe=i.getPaintValue("text-translate",o),_e=i.getPaintValue("text-translate-anchor",o),Se=this._sdfProgramOptions;Se.id=ie;const Y=x.getMaterialProgram(r,y,Se);if(p&&(0,b.pC)(v)&&!Y.isCompiled)return void v();r.useProgram(Y),Y.setUniformMatrix3fv("u_displayViewMat3",C===z.aF.MAP?_.displayViewMat3:_.displayMat3),Y.setUniformMatrix3fv("u_displayMat3",_e===z.fD.VIEWPORT?_.displayMat3:_.displayViewMat3),Y.setUniform2fv("u_textTranslation",fe),Y.setUniform1f("u_depth",i.z+152587890625e-16),Y.setUniform2fv("u_mosaicSize",this._glyphTextureSize),Y.setUniform1f("u_mapRotation",(0,Re.s5)(_.rotation)),Y.setUniform1f("u_keepUpright",k?1:0),Y.setUniform1f("u_level",10*o),Y.setUniform1i("u_texture",te.CU),Y.setUniform1f("u_antialiasingWidth",q),Y.setUniform1f("u_fadeDuration",Me.nN/1e3),ie&&Y.setUniform4fv("u_id",n);let ge=-1;for(const ue of t){if(!ue.layerData.has(c)||(ue.key.level!==ge&&(ge=ue.key.level,y.setDataUniforms(Y,o,i,ge,m)),g=ue.layerData.get(c),0===g.glyphPerPageElementsMap.size))continue;g.prepareForRendering(r),g.updateOpacityInfo();const Be=g.textVertexArrayObject;if((0,b.Wi)(Be))continue;r.bindVAO(Be),Y.setUniformMatrix3fv("u_dvsMat3",ue.transforms.dvs),r.setStencilTestEnabled(!0),r.setStencilFunction(u.wb.GREATER,255,255),r.setStencilWriteMask(0);const At=(performance.now()-g.lastOpacityUpdate)/1e3;Y.setUniform1f("u_time",At),g.glyphPerPageElementsMap.forEach((Ot,zt)=>{this._renderGlyphRange(r,Ot,zt,s,Y,I,R,ue)})}}_renderGlyphRange(e,i,t,n,r,o,a,s){n.bind(e,u.cw.LINEAR,t,te.CU),o&&(r.setUniform1f("u_halo",1),e.drawElements(u.MX.TRIANGLES,i[1],u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*i[0]),s.triangleCount+=i[1]/3),a&&(r.setUniform1f("u_halo",0),e.drawElements(u.MX.TRIANGLES,i[1],u.g.UNSIGNED_INT,Uint32Array.BYTES_PER_ELEMENT*i[0]),s.triangleCount+=i[1]/3)}}};var ne=f(919);const gt={background:{"background.frag":"#ifdef PATTERN\nuniform lowp float u_opacity;\nuniform lowp sampler2D u_texture;\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_tileTextureCoord;\n#else\nuniform lowp vec4 u_color;\n#endif\n#ifdef ID\nvarying mediump vec4 v_id;\n#endif\nvoid main() {\n#ifdef PATTERN\nmediump vec2 normalizedTextureCoord = mod(v_tileTextureCoord, 1.0);\nmediump vec2 samplePos = mix(v_tlbr.xy, v_tlbr.zw, normalizedTextureCoord);\nlowp vec4 color = texture2D(u_texture, samplePos);\ngl_FragColor = u_opacity * color;\n#else\ngl_FragColor = u_color;\n#endif\n#ifdef ID\nif (gl_FragColor.a < 1.0 / 255.0) {\ndiscard;\n}\ngl_FragColor = v_id;\n#endif\n}","background.vert":"precision mediump float;\nattribute vec2 a_pos;\n#ifdef ID\nuniform mediump vec4 u_id;\nvarying mediump vec4 v_id;\n#endif\nuniform highp mat3 u_dvsMat3;\nuniform mediump float u_coord_range;\nuniform mediump float u_depth;\n#ifdef PATTERN\nuniform mediump mat3 u_pattern_matrix;\nvarying mediump vec2 v_tileTextureCoord;\nuniform mediump vec4 u_tlbr;\nuniform mediump vec2 u_mosaicSize;\nvarying mediump vec4 v_tlbr;\n#endif\nvoid main() {\ngl_Position = vec4((u_dvsMat3 * vec3(u_coord_range * a_pos, 1.0)).xy, u_depth, 1.0);\n#ifdef PATTERN\nv_tileTextureCoord = (u_pattern_matrix * vec3(a_pos, 1.0)).xy;\nv_tlbr = u_tlbr / u_mosaicSize.xyxy;\n#endif\n#ifdef ID\nv_id = u_id / 255.0;\n#endif\n}"},circle:{"circle.frag":"precision lowp float;\nvarying lowp vec4 v_color;\nvarying lowp vec4 v_stroke_color;\nvarying mediump float v_blur;\nvarying mediump float v_stroke_width;\nvarying mediump float v_radius;\nvarying mediump vec2 v_offset;\n#ifdef ID\nvarying mediump vec4 v_id;\n#endif\nvoid main()\n{\nmediump float dist = length(v_offset);\nmediump float alpha = smoothstep(0.0, -v_blur, dist - 1.0);\nlowp float color_mix_ratio = v_stroke_width < 0.01 ? 0.0 : smoothstep(-v_blur, 0.0, dist - v_radius / (v_radius + v_stroke_width));\ngl_FragColor = alpha * mix(v_color, v_stroke_color, color_mix_ratio);\n#ifdef ID\nif (gl_FragColor.a < 1.0 / 255.0) {\ndiscard;\n}\ngl_FragColor = v_id;\n#endif\n}","circle.vert":"precision mediump float;\nattribute vec2 a_pos;\n#pragma header\nvarying lowp vec4 v_color;\nvarying lowp vec4 v_stroke_color;\nvarying mediump float v_blur;\nvarying mediump float v_stroke_width;\nvarying mediump float v_radius;\nvarying mediump vec2 v_offset;\n#ifdef ID\nuniform mediump vec4 u_id;\nvarying mediump vec4 v_id;\n#endif\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump vec2 u_circleTranslation;\nuniform mediump float u_depth;\nuniform mediump float u_antialiasingWidth;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_stroke_color = stroke_color * stroke_opacity;\nv_stroke_width = stroke_width;\nv_radius = radius;\nv_blur = max(blur, u_antialiasingWidth / (radius + stroke_width));\nmediump vec2 offset = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\nv_offset = offset;\n#ifdef ID\nv_id = u_id / 255.0;\n#endif\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos * 0.5, 1.0) + u_displayMat3 * vec3((v_radius + v_stroke_width) * offset + u_circleTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}"},fill:{"fill.frag":"precision lowp float;\n#ifdef PATTERN\nuniform lowp sampler2D u_texture;\nvarying mediump vec2 v_tileTextureCoord;\nvarying mediump vec4 v_tlbr;\n#endif\n#ifdef ID\nvarying mediump vec4 v_id;\n#endif\nvarying lowp vec4 v_color;\nvec4 mixColors(vec4 color1, vec4 color2) {\nfloat compositeAlpha = color2.a + color1.a * (1.0 - color2.a);\nvec3 compositeColor = color2.rgb + color1.rgb * (1.0 - color2.a);\nreturn vec4(compositeColor, compositeAlpha);\n}\nvoid main()\n{\n#ifdef PATTERN\nmediump vec2 normalizedTextureCoord = fract(v_tileTextureCoord);\nmediump vec2 samplePos = mix(v_tlbr.xy, v_tlbr.zw, normalizedTextureCoord);\nlowp vec4 color = texture2D(u_texture, samplePos);\ngl_FragColor = v_color[3] * color;\n#else\ngl_FragColor = v_color;\n#endif\n#ifdef ID\nif (gl_FragColor.a < 1.0 / 255.0) {\ndiscard;\n}\ngl_FragColor = v_id;\n#endif\n}","fill.vert":"precision mediump float;\nattribute vec2 a_pos;\n#pragma header\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump float u_depth;\nuniform mediump vec2 u_fillTranslation;\n#ifdef PATTERN\n#include \nuniform mediump vec2 u_mosaicSize;\nuniform mediump float u_patternFactor;\nvarying mediump vec2 v_tileTextureCoord;\nvarying mediump vec4 v_tlbr;\n#endif\n#ifdef ID\nuniform mediump vec4 u_id;\nvarying mediump vec4 v_id;\n#endif\nvarying lowp vec4 v_color;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\n#ifdef ID\nv_id = u_id / 255.0;\n#endif\n#ifdef PATTERN\nfloat patternWidth = nextPOT(tlbr.z - tlbr.x);\nfloat patternHeight = nextPOT(tlbr.w - tlbr.y);\nfloat scaleX = 1.0 / (patternWidth * u_patternFactor);\nfloat scaleY = 1.0 / (patternHeight * u_patternFactor);\nmat3 patterMat = mat3(scaleX, 0.0, 0.0,\n0.0, -scaleY, 0.0,\n0.0, 0.0, 1.0);\nv_tileTextureCoord = (patterMat * vec3(a_pos, 1.0)).xy;\nv_tlbr = tlbr / u_mosaicSize.xyxy;\n#endif\nvec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayMat3 * vec3(u_fillTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}"},icon:{"icon.frag":"precision mediump float;\nuniform lowp sampler2D u_texture;\n#ifdef SDF\nuniform lowp vec4 u_color;\nuniform lowp vec4 u_outlineColor;\n#endif\nvarying mediump vec2 v_tex;\nvarying lowp float v_opacity;\nvarying mediump vec2 v_size;\nvarying lowp vec4 v_color;\n#ifdef SDF\nvarying mediump flaot v_halo_width;\n#endif\n#ifdef ID\nvarying mediump vec4 v_id;\n#endif\n#include \nvec4 mixColors(vec4 color1, vec4 color2) {\nfloat compositeAlpha = color2.a + color1.a * (1.0 - color2.a);\nvec3 compositeColor = color2.rgb + color1.rgb * (1.0 - color2.a);\nreturn vec4(compositeColor, compositeAlpha);\n}\nvoid main()\n{\n#ifdef SDF\nlowp vec4 fillPixelColor = v_color;\nfloat d = rgba2float(texture2D(u_texture, v_tex)) - 0.5;\nconst float softEdgeRatio = 0.248062016;\nfloat size = max(v_size.x, v_size.y);\nfloat dist = d * softEdgeRatio * size;\nfillPixelColor *= clamp(0.5 - dist, 0.0, 1.0);\nif (v_halo_width > 0.25) {\nlowp vec4 outlinePixelColor = u_outlineColor;\nconst float outlineLimitRatio = (16.0 / 86.0);\nfloat clampedOutlineSize = softEdgeRatio * min(v_halo_width, outlineLimitRatio * max(v_size.x, v_size.y));\noutlinePixelColor *= clamp(0.5 - (abs(dist) - clampedOutlineSize), 0.0, 1.0);\ngl_FragColor = v_opacity * mixColors(fillPixelColor, outlinePixelColor);\n}\nelse {\ngl_FragColor = v_opacity * fillPixelColor;\n}\n#else\nlowp vec4 texColor = texture2D(u_texture, v_tex);\ngl_FragColor = v_opacity * texColor;\n#endif\n#ifdef ID\nif (gl_FragColor.a < 1.0 / 255.0) {\ndiscard;\n}\ngl_FragColor = v_id;\n#endif\n}","icon.vert":"attribute vec2 a_pos;\nattribute vec2 a_vertexOffset;\nattribute vec4 a_texAngleRange;\nattribute vec4 a_levelInfo;\nattribute float a_opacityInfo;\n#pragma header\n#ifdef ID\nuniform mediump vec4 u_id;\nvarying mediump vec4 v_id;\n#endif\nvarying lowp vec4 v_color;\n#ifdef SDF\nvarying mediump float v_halo_width;\n#endif\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump vec2 u_iconTranslation;\nuniform vec2 u_mosaicSize;\nuniform mediump float u_depth;\nuniform mediump float u_mapRotation;\nuniform mediump float u_level;\nuniform lowp float u_keepUpright;\nuniform mediump float u_fadeDuration;\nvarying mediump vec2 v_tex;\nvarying lowp float v_opacity;\nvarying mediump vec2 v_size;\nconst float C_OFFSET_PRECISION = 1.0 / 8.0;\nconst float C_256_TO_RAD = 3.14159265359 / 128.0;\nconst float C_DEG_TO_RAD = 3.14159265359 / 180.0;\nconst float tileCoordRatio = 1.0 / 8.0;\nuniform highp float u_time;\nvoid main()\n{\n#pragma main\nv_color = color;\nv_opacity = opacity;\n#ifdef SDF\nv_halo_width = halo_width;\n#endif\nfloat modded = mod(a_opacityInfo, 128.0);\nfloat targetOpacity = (a_opacityInfo - modded) / 128.0;\nfloat startOpacity = modded / 127.0;\nfloat interpolatedOpacity = clamp(startOpacity + 2.0 * (targetOpacity - 0.5) * u_time / u_fadeDuration, 0.0, 1.0);\nv_opacity *= interpolatedOpacity;\nmediump float a_angle = a_levelInfo[1];\nmediump float a_minLevel = a_levelInfo[2];\nmediump float a_maxLevel = a_levelInfo[3];\nmediump vec2 a_tex = a_texAngleRange.xy;\nmediump float delta_z = 0.0;\nmediump float rotated = mod(a_angle + u_mapRotation, 256.0);\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * step(64.0, rotated) * (1.0 - step(192.0, rotated));\ndelta_z += 1.0 - step(a_minLevel, u_level);\ndelta_z += step(a_maxLevel, u_level);\ndelta_z += step(v_opacity, 0.0);\nvec2 offset = C_OFFSET_PRECISION * a_vertexOffset;\nv_size = abs(offset);\n#ifdef SDF\noffset = (120.0 / 86.0) * offset;\n#endif\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayViewMat3 * vec3(size * offset, 0.0) + u_displayMat3 * vec3(u_iconTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth + delta_z, 1.0);\n#ifdef ID\nv_id = u_id / 255.0;\n#endif\nv_tex = a_tex.xy / u_mosaicSize;\n}"},line:{"line.frag":"precision lowp float;\nvarying mediump vec2 v_normal;\nvarying highp float v_accumulatedDistance;\nvarying mediump float v_lineHalfWidth;\nvarying lowp vec4 v_color;\nvarying mediump float v_blur;\n#if defined (PATTERN) || defined(SDF)\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_patternSize;\nvarying mediump float v_widthRatio;\nuniform sampler2D u_texture;\nuniform mediump float u_antialiasing;\n#endif\n#ifdef SDF\n#include \n#endif\n#ifdef ID\nvarying mediump vec4 v_id;\n#endif\nvoid main()\n{\nmediump float fragDist = length(v_normal) * v_lineHalfWidth;\nlowp float alpha = clamp((v_lineHalfWidth - fragDist) / v_blur, 0.0, 1.0);\n#ifdef PATTERN\nmediump float relativeTexX = fract(v_accumulatedDistance / (v_patternSize.x * v_widthRatio));\nmediump float relativeTexY = 0.5 + v_normal.y * v_lineHalfWidth / (v_patternSize.y * v_widthRatio);\nmediump vec2 texCoord = mix(v_tlbr.xy, v_tlbr.zw, vec2(relativeTexX, relativeTexY));\nlowp vec4 color = texture2D(u_texture, texCoord);\ngl_FragColor = alpha * v_color[3] * color;\n#elif defined(SDF)\nmediump float relativeTexX = fract((v_accumulatedDistance * 0.5) / (v_patternSize.x * v_widthRatio));\nmediump float relativeTexY = 0.5 + 0.25 * v_normal.y;\nmediump vec2 texCoord = mix(v_tlbr.xy, v_tlbr.zw, vec2(relativeTexX, relativeTexY));\nmediump float d = rgba2float(texture2D(u_texture, texCoord)) - 0.5;\nfloat dist = d * (v_lineHalfWidth + u_antialiasing / 2.0);\ngl_FragColor = alpha * clamp(0.5 - dist, 0.0, 1.0) * v_color;\n#else\ngl_FragColor = alpha * v_color;\n#endif\n#ifdef ID\nif (gl_FragColor.a < 1.0 / 255.0) {\ndiscard;\n}\ngl_FragColor = v_id;\n#endif\n}","line.vert":"precision mediump float;\nattribute vec2 a_pos;\nattribute vec4 a_extrude_offset;\nattribute vec4 a_dir_normal;\nattribute vec2 a_accumulatedDistance;\n#pragma header\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump float u_zoomFactor;\nuniform mediump vec2 u_lineTranslation;\nuniform mediump float u_antialiasing;\nuniform mediump float u_depth;\nvarying mediump vec2 v_normal;\nvarying highp float v_accumulatedDistance;\nconst float scale = 1.0 / 31.0;\nconst mediump float tileCoordRatio = 8.0;\n#if defined (SDF)\nconst mediump float sdfPatternHalfWidth = 15.5;\n#endif\n#if defined (PATTERN) || defined(SDF)\nuniform mediump vec2 u_mosaicSize;\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_patternSize;\nvarying mediump float v_widthRatio;\n#endif\n#ifdef ID\nuniform mediump vec4 u_id;\nvarying mediump vec4 v_id;\n#endif\nvarying lowp vec4 v_color;\nvarying mediump float v_lineHalfWidth;\nvarying mediump float v_blur;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_blur = blur + u_antialiasing;\nv_normal = a_dir_normal.zw * scale;\n#if defined (PATTERN) || defined(SDF)\nv_tlbr = tlbr / u_mosaicSize.xyxy;\nv_patternSize = vec2(tlbr.z - tlbr.x, tlbr.y - tlbr.w);\n#if defined (PATTERN)\nv_widthRatio = width / v_patternSize.y;\n#else\nv_widthRatio = width / sdfPatternHalfWidth / 2.0;\n#endif\n#endif\nv_lineHalfWidth = (width + u_antialiasing) * 0.5;\nmediump vec2 dir = a_dir_normal.xy * scale;\nmediump vec2 offset_ = a_extrude_offset.zw * scale * offset;\nmediump vec2 dist = v_lineHalfWidth * scale * a_extrude_offset.xy;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos + offset_ * tileCoordRatio / u_zoomFactor, 1.0) + u_displayViewMat3 * vec3(dist, 0.0) + u_displayMat3 * vec3(u_lineTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n#if defined (PATTERN) || defined(SDF)\nv_accumulatedDistance = a_accumulatedDistance.x * u_zoomFactor / tileCoordRatio + dot(dir, dist + offset_);\n#endif\n#ifdef ID\nv_id = u_id / 255.0;\n#endif\n}"},outline:{"outline.frag":"varying lowp vec4 v_color;\nvarying mediump vec2 v_normal;\n#ifdef ID\nvarying mediump vec4 v_id;\n#endif\nvoid main()\n{\nlowp float dist = abs(v_normal.y);\nlowp float alpha = smoothstep(1.0, 0.0, dist);\ngl_FragColor = alpha * v_color;\n#ifdef ID\nif (gl_FragColor.a < 1.0 / 255.0) {\ndiscard;\n}\ngl_FragColor = v_id;\n#endif\n}","outline.vert":"attribute vec2 a_pos;\nattribute vec2 a_offset;\nattribute vec2 a_xnormal;\n#pragma header\nvarying lowp vec4 v_color;\n#ifdef ID\nuniform mediump vec4 u_id;\nvarying mediump vec4 v_id;\n#endif\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump vec2 u_fillTranslation;\nuniform mediump float u_depth;\nuniform mediump float u_outline_width;\nvarying lowp vec2 v_normal;\nconst float scale = 1.0 / 15.0;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\n#ifdef ID\nv_id = u_id / 255.0;\n#endif\nv_normal = a_xnormal;\nmediump vec2 dist = u_outline_width * scale * a_offset;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayMat3 * vec3(dist + u_fillTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}"},text:{"text.frag":"uniform lowp sampler2D u_texture;\nvarying lowp vec2 v_tex;\nvarying lowp vec4 v_color;\nvarying mediump float v_edgeWidth;\nvarying mediump float v_edgeDistance;\n#ifdef ID\nvarying mediump vec4 v_id;\n#endif\nvoid main()\n{\nlowp float dist = texture2D(u_texture, v_tex).a;\nmediump float alpha = smoothstep(v_edgeDistance - v_edgeWidth, v_edgeDistance + v_edgeWidth, dist);\ngl_FragColor = alpha * v_color;\n#ifdef ID\nif (gl_FragColor.a < 1.0 / 255.0) {\ndiscard;\n}\ngl_FragColor = v_id;\n#endif\n}","text.vert":"attribute vec2 a_pos;\nattribute vec2 a_vertexOffset;\nattribute vec4 a_texAngleRange;\nattribute vec4 a_levelInfo;\nattribute float a_opacityInfo;\n#pragma header\nvarying lowp vec4 v_color;\n#ifdef ID\nuniform mediump vec4 u_id;\nvarying mediump vec4 v_id;\n#endif\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump vec2 u_textTranslation;\nuniform vec2 u_mosaicSize;\nuniform mediump float u_depth;\nuniform mediump float u_mapRotation;\nuniform mediump float u_level;\nuniform lowp float u_keepUpright;\nuniform mediump float u_fadeDuration;\nvarying lowp vec2 v_tex;\nconst float offsetPrecision = 1.0 / 8.0;\nconst mediump float edgePos = 0.75;\nuniform mediump float u_antialiasingWidth;\nvarying mediump float v_edgeDistance;\nvarying mediump float v_edgeWidth;\nuniform lowp float u_halo;\nconst float sdfFontScale = 1.0 / 24.0;\nconst float sdfPixel = 3.0;\nuniform highp float u_time;\nvoid main()\n{\n#pragma main\nif (u_halo > 0.5)\n{\nv_color = halo_color * opacity;\nhalo_width *= sdfPixel;\nhalo_blur *= sdfPixel;\n}\nelse\n{\nv_color = color * opacity;\nhalo_width = 0.0;\nhalo_blur = 0.0;\n}\nfloat modded = mod(a_opacityInfo, 128.0);\nfloat targetOpacity = (a_opacityInfo - modded) / 128.0;\nfloat startOpacity = modded / 127.0;\nfloat interpolatedOpacity = clamp(startOpacity + 2.0 * (targetOpacity - 0.5) * u_time / u_fadeDuration, 0.0, 1.0);\nv_color *= interpolatedOpacity;\nmediump float a_angle = a_levelInfo[1];\nmediump float a_minLevel = a_levelInfo[2];\nmediump float a_maxLevel = a_levelInfo[3];\nmediump vec2 a_tex = a_texAngleRange.xy;\nmediump float a_visMinAngle = a_texAngleRange.z;\nmediump float a_visMaxAngle = a_texAngleRange.w;\nmediump float delta_z = 0.0;\nmediump float angle = mod(a_angle + u_mapRotation, 256.0);\nif (a_visMinAngle < a_visMaxAngle)\n{\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * (step(a_visMaxAngle, angle) + (1.0 - step(a_visMinAngle, angle)));\n}\nelse\n{\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * (step(a_visMaxAngle, angle) * (1.0 - step(a_visMinAngle, angle)));\n}\ndelta_z += 1.0 - step(a_minLevel, u_level);\ndelta_z += step(a_maxLevel, u_level);\ndelta_z += step(v_color[3], 0.0);\nv_tex = a_tex.xy / u_mosaicSize;\n#ifdef ID\nv_id = u_id / 255.0;\n#endif\nv_edgeDistance = edgePos - halo_width / size;\nv_edgeWidth = (u_antialiasingWidth + halo_blur) / size;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + sdfFontScale * u_displayViewMat3 * vec3(offsetPrecision * size * a_vertexOffset, 0.0) + u_displayMat3 * vec3(u_textTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth + delta_z, 1.0);\n}"},util:{"encoding.glsl":"const vec4 rgba2float_factors = vec4(\n255.0 / (256.0),\n255.0 / (256.0 * 256.0),\n255.0 / (256.0 * 256.0 * 256.0),\n255.0 / (256.0 * 256.0 * 256.0 * 256.0)\n);\nfloat rgba2float(vec4 rgba) {\nreturn dot(rgba, rgba2float_factors);\n}","util.glsl":"float nextPOT(in float x) {\nreturn pow(2.0, ceil(log2(abs(x))));\n}"}},xt=new class vt{constructor(e){this._readFile=e}resolveIncludes(e){return this._resolve(e)}_resolve(e,i=new Map){if(i.has(e))return i.get(e);const t=this._read(e);if(!t)throw new Error(`cannot find shader file ${e}`);const n=/^[^\S\n]*#include\s+<(\S+)>[^\S\n]?/gm;let r=n.exec(t);const o=[];for(;null!=r;)o.push({path:r[1],start:r.index,length:r[0].length}),r=n.exec(t);let a=0,s="";return o.forEach(l=>{s+=t.slice(a,l.start),s+=i.has(l.path)?"":this._resolve(l.path,i),a=l.start+l.length}),s+=t.slice(a),i.set(e,s),s}_read(e){return this._readFile(e)}}(function yt(d){let e=gt;return d.split("/").forEach(i=>{e&&(e=e[i])}),e});function re(d){return xt.resolveIncludes(d)}function wt(d){const{options:e,value:i}=d;return"number"==typeof e[i]}function he(d){let e="";for(const i in d){const t=d[i];if("boolean"==typeof t)t&&(e+=`#define ${i}\n`);else if("number"==typeof t)e+=`#define ${i} ${t.toFixed()}\n`;else if("object"==typeof t)if(wt(t)){const{value:n,options:r,namespace:o}=t,a=o?`${o}_`:"";for(const s in r)e+=`#define ${a}${s} ${r[s].toFixed()}\n`;e+=`#define ${i} ${a}${n}\n`}else{const n=t.options;let r=0;for(const o in n)e+=`#define ${n[o]} ${(r++).toFixed()}\n`;e+=`#define ${i} ${n[t.value]}\n`}}return e}const Ee=d=>he({ID:d.id,PATTERN:d.pattern}),St={shaders:d=>({vertexShader:Ee(d)+re("background/background.vert"),fragmentShader:Ee(d)+re("background/background.frag")})},Ue=d=>he({ID:d.id}),bt={shaders:d=>({vertexShader:Ue(d)+re("circle/circle.vert"),fragmentShader:Ue(d)+re("circle/circle.frag")})},Le=d=>he({ID:d.id,PATTERN:d.pattern}),Mt={shaders:d=>({vertexShader:Le(d)+re("fill/fill.vert"),fragmentShader:Le(d)+re("fill/fill.frag")})},Ae=d=>he({ID:d.id}),Pt={shaders:d=>({vertexShader:Ae(d)+re("outline/outline.vert"),fragmentShader:Ae(d)+re("outline/outline.frag")})},Oe=d=>he({ID:d.id,SDF:d.sdf}),Tt={shaders:d=>({vertexShader:Oe(d)+re("icon/icon.vert"),fragmentShader:Oe(d)+re("icon/icon.frag")})},ze=d=>he({ID:d.id,PATTERN:d.pattern,SDF:d.sdf}),It={shaders:d=>({vertexShader:ze(d)+re("line/line.vert"),fragmentShader:ze(d)+re("line/line.frag")})},Fe=d=>he({ID:d.id}),Ct={shaders:d=>({vertexShader:Fe(d)+re("text/text.vert"),fragmentShader:Fe(d)+re("text/text.frag")})};class Dt{constructor(){this._programByKey=new Map}dispose(){this._programByKey.forEach(e=>e.dispose()),this._programByKey.clear()}getMaterialProgram(e,i,t){const n=i.key<<3|this._getMaterialOptionsValue(i.type,t);if(this._programByKey.has(n))return this._programByKey.get(n);const r=this._getProgramTemplate(i.type),{shaders:o}=r,{vertexShader:a,fragmentShader:s}=o(t),l=i.getShaderHeader(),h=i.getShaderMain(),m=a.replace("#pragma header",l).replace("#pragma main",h),_=e.programCache.acquire(m,s,i.getAttributeLocations());return this._programByKey.set(n,_),_}_getMaterialOptionsValue(e,i){switch(e){case ne._K.BACKGROUND:case ne._K.FILL:return(i.pattern?1:0)<<1|(i.id?1:0);case ne._K.OUTLINE:return i.id?1:0;case ne._K.LINE:return(i.sdf?1:0)<<2|(i.pattern?1:0)<<1|(i.id?1:0);case ne._K.ICON:return(i.sdf?1:0)<<1|(i.id?1:0);case ne._K.CIRCLE:case ne._K.TEXT:return i.id?1:0;default:return 0}}_getProgramTemplate(e){switch(e){case ne._K.BACKGROUND:return St;case ne._K.CIRCLE:return bt;case ne._K.FILL:return Mt;case ne._K.ICON:return Tt;case ne._K.LINE:return It;case ne._K.OUTLINE:return Pt;case ne._K.TEXT:return Ct;default:return null}}}class Ne{constructor(e,i){this.spriteMosaic=e,this.glyphMosaic=i,this._brushCache=new Map,this._vtlMaterialManager=new Dt}dispose(){this._brushCache&&(this._brushCache.forEach(e=>e.dispose()),this._brushCache=null),this._vtlMaterialManager=(0,b.M2)(this._vtlMaterialManager),this.spriteMosaic.dispose(),this.glyphMosaic.dispose()}get vectorTilesMaterialManager(){return this._vtlMaterialManager}drawTile(e,i,t){const{context:n}=e,r=t.layers;t.backgroundBucketIds.length>0&&(e.renderPass="background",t.backgroundBucketIds.forEach(o=>this._renderStyleLayer(t.getLayerById(o),e,i,!0))),n.setBlendingEnabled(!1),n.setDepthTestEnabled(!0),n.setDepthWriteEnabled(!0),n.setDepthFunction(u.wb.LEQUAL),e.renderPass="opaque";for(let o=r.length-1;o>=0;o--)this._renderStyleLayer(r[o],e,i,!1);n.setDepthWriteEnabled(!1),n.setBlendingEnabled(!0),n.setBlendFunctionSeparate(u.zi.ONE,u.zi.ONE_MINUS_SRC_ALPHA,u.zi.ONE,u.zi.ONE_MINUS_SRC_ALPHA),e.renderPass="translucent";for(let o=0;os+1e-6||void 0!==e.maxzoom&&e.maxzoom<=s-1e-6||(i.styleLayerUID=e.uid,i.styleLayer=e,this._drawWithBrush(i,t,a))}_drawWithBrush(e,i,t){this._brushCache.has(t)||this._brushCache.set(t,new(0,pt[t])),this._brushCache.get(t).drawMany(e,[i])}}var ke=f(78364),Rt=f(19702),Et=f(50916),We=f(61779),Ut=f(45611);let pe=class extends((0,Et.r)((0,Rt.A)(Ut.Z))){constructor(){super(...arguments),this.type="vector-tile-3d"}initialize(){if((0,b.Wi)(this.layer.fullExtent))return void this.addResolvingPromise(Promise.reject(new X.Z("vectortilelayerview:full-extent-undefined","This layer view's layer does not define a fullExtent.")));const{basemapTerrain:d,spatialReference:e,state:i,viewingMode:t}=this.view,{pixelRatio:n}=i,a="local"===t&&!(0,We.jO)(e)||We.Bu.force512VTL?this.layer.tileInfo:this.layer.tileInfo.getOrCreateCompatible(256,this.layer.tileInfo.spatialReference.isGeographic?1:2),s=this._getTileInfoSupportError(a,this.layer.fullExtent);if((0,b.pC)(s))return this.addResolvingPromise(Promise.reject(s));const l=(0,F.N1)(()=>this.view?.basemapTerrain?.tilingSchemeLocked).then(()=>{const g=d.tilingScheme,L=g.pixelSize;let D;this.schemaHelper=new M(L,(0,b.pC)(d.spatialReference)&&d.spatialReference.isGeographic),D=256===L?this.layer.tileInfo.getOrCreateCompatible(256,this.layer.tileInfo.spatialReference.isGeographic?1:2):this.view.spatialReference.isGeographic?this.layer.tileInfo.getOrCreateCompatible(512,.5):this.layer.tileInfo;const S=this._getTileInfoCompatibilityError(D,g);if(S)throw S;this.tileInfo=D});this._tileHandlerController=new AbortController;const h=this.view.resourceController;this._memCache=h.memoryController.newCache(this.layer.uid,g=>{g.release()});const m=new ke.Z(this.layer.currentStyleInfo.style),_=d.mapTileRequester;this._tileHandler=new Te(this.layer,m,n,this._memCache,_);const c=this._tileHandlerController.signal,v=g=>h.schedule(g),p=this._tileHandler.start({signal:c,schedule:v}),y=this._tileHandler.spriteMosaic;y.then(g=>{!(0,$.Hc)(c)&&this._tileHandler&&(this.painter=new Ne(g,this._tileHandler.glyphMosaic))}),p.then(()=>this._tileHandlerController=null),this.updatingHandles.add(()=>({style:this.layer.currentStyleInfo.style,newPixelRatio:this.view.state?.pixelRatio}),({style:g})=>{this._tileHandlerController&&this._tileHandlerController.abort(),this._tileHandlerController=new AbortController,this._memCache.clear();const L=new ke.Z(g),D=new Te(this.layer,L,n,this._memCache,_),S=D.start({signal:this._tileHandlerController.signal,schedule:v}),R=D.spriteMosaic;S.then(()=>this._tileHandlerController=null),this.updatingHandles.addPromise(Promise.all([S,R]).then(([,T])=>{const P=this._tileHandler,I=this.painter;this.painter=new Ne(T,D.glyphMosaic),this._tileHandler=D,this.emit("data-changed"),P.destroy(),I&&I.dispose()}))});const x=Promise.all([l,p,y]);this.addResolvingPromise(x)}destroy(){this.painter=(0,b.M2)(this.painter),this._tileHandlerController&&(this._tileHandlerController.abort(),this._tileHandlerController=null),(0,b.SC)(this._tileHandler),this._memCache=(0,b.SC)(this._memCache),this._tileHandler=null}get dataLevelRange(){const d=this.tileInfo.lods,t=this.levelRangeFromScaleRange(d[0].scale,d[d.length-1].scale);return 1===t.minLevel&&256===this.tileInfo.size[0]&&(t.minLevel=0),t}fetchTile(d,e,i,t){var n=this;return(0,W.Z)(function*(){return n._tileHandler.getVectorTile(d,e,i,t)})()}};(0,G._)([(0,V.Cb)()],pe.prototype,"layer",void 0),(0,G._)([(0,V.Cb)()],pe.prototype,"dataLevelRange",null),(0,G._)([(0,V.Cb)()],pe.prototype,"updatingProgressValue",void 0),pe=(0,G._)([(0,N.j)("esri.views.3d.layers.VectorTileLayerView3D")],pe);const Lt=pe},45611:(de,ee,f)=>{f.d(ee,{Z:()=>U});var W=f(17626),G=f(14517),X=f(61885),b=f(80542),$=f(61996),F=f(63290),V=f(62208),oe=f(60330),J=f(77712),E=(f(85931),f(90912),f(76898));let B=class extends((0,b.p)((0,$.IG)((0,oe.v)(X.Z.EventedMixin(G.Z))))){constructor(A){super(A),this.layer=null,this.parent=null}initialize(){this.when().catch(A=>{if("layerview:create-error"!==A.name){const j=this.layer&&this.layer.id||"no id",Z=this.layer&&this.layer.title||"no title";F.Z.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${Z}', id: '${j}')`,A)}})}get fullOpacity(){return(0,V.Pt)(this.get("layer.opacity"),1)*(0,V.Pt)(this.get("parent.fullOpacity"),1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return!0===this.layer?.visible}set visible(A){this._overrideIfSome("visible",A)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const A=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(A.viewNotReady=!0),this.layer&&this.layer.loaded||(A.layerNotLoaded=!0),this.visible||(A.layerInvisible=!0),A}isUpdating(){return!1}};(0,W._)([(0,J.Cb)()],B.prototype,"fullOpacity",null),(0,W._)([(0,J.Cb)()],B.prototype,"layer",void 0),(0,W._)([(0,J.Cb)()],B.prototype,"parent",void 0),(0,W._)([(0,J.Cb)({readOnly:!0})],B.prototype,"suspended",null),(0,W._)([(0,J.Cb)({readOnly:!0})],B.prototype,"suspendInfo",null),(0,W._)([(0,J.Cb)({readOnly:!0})],B.prototype,"legendEnabled",null),(0,W._)([(0,J.Cb)({type:Boolean,readOnly:!0})],B.prototype,"updating",null),(0,W._)([(0,J.Cb)({readOnly:!0})],B.prototype,"updatingProgress",null),(0,W._)([(0,J.Cb)()],B.prototype,"visible",null),(0,W._)([(0,J.Cb)()],B.prototype,"view",void 0),B=(0,W._)([(0,E.j)("esri.views.layers.LayerView")],B);const U=B}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9217.791c18c7214b8f96.js b/apps/n/porrtal-io-app/public/angular/9217.791c18c7214b8f96.js deleted file mode 100644 index 9146a213..00000000 --- a/apps/n/porrtal-io-app/public/angular/9217.791c18c7214b8f96.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9217],{39217:(ke,ne,m)=>{m.r(ne),m.d(ne,{default:()=>xr});var s=m(17626),pe=m(73281),f=m(62208),ce=m(99959),me=m(10699),l=m(77712),A=(m(85931),m(90912)),_=m(76898),T=m(99433),de=m(44917),w=m(15861),et=m(29132),ft=m(88879),Pe=m(90885),j=m(84792),U=m(26584),Te=m(2076),z=m(58817),tt=m(63290),vt=m(32917),Rt=m(21726),E=m(68653),Re=m(13812),De=m(25982),Q=m(86810),I=m(40495);const bt={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var ae=m(70208),St=m(65468),Ct=m(88115);const xt={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767]},It={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},wt=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function rt(n){return wt.has(n.type)}function Ne(n,r){if(!n||!r)return(0,z.d9)(n||r);const a=(0,z.d9)(n);if(r.rasterFunctionDefinition){const e=r.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=null),it(a.rasterFunctionDefinition.arguments,r)}else"none"!==r.functionName.toLowerCase()&&(nt(a.functionArguments).Raster=r);return a}function it(n,r){for(const a in n)"raster"===a.toLowerCase()&&("RasterFunctionVariable"===n[a].type?(n[a]=r.rasterFunctionDefinition,n[a].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===n[a].type&&it(n[a].arguments,r))}function $(n){const r=(0,z.d9)(bt[n.functionName+"Function"]),a=n.functionArguments;for(const e in a)"raster"===e.toLowerCase()?(r.arguments[e]=$(a[e]),r.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(r.arguments[e].value=Vt(a[e]),r.arguments.ColorSchemeType.value=0):r.arguments[e].value=a[e];return r}function nt(n){const r=n?.Raster;return r&&"esri.layers.support.RasterFunction"===r.declaredClass?nt(r.functionArguments):n}const ye={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function be(n,r){const a=xt[String(r).toLowerCase()];return a&&n.push([Math.floor(a[0]-1),0,0,0],[Math.ceil(a[1]+1),0,0,0]),n}function st(n){if((0,f.Wi)(n))return;const{fields:r}=n,a=r&&r.find(e=>e&&e.name&&"value"===e.name.toLowerCase());return a&&a.name}function jt(n){const r=[];return n.forEach(a=>{const e=a;if(Array.isArray(e))r.push(e);else{if(null==e.min||null==e.max)return;r.push([e.min,e.max,e.avg||0,e.stddev||0])}}),r}function Vt(n){const r=[],a=[];return n.forEach(e=>{r.push(e[0]),a.push((0,ae.io)([...e.slice(1),255]))}),{type:"RasterColormap",values:r,colors:a}}var Oe,At=m(66656),q=m(72642);const he=(0,Te.w)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),Me=(0,Te.w)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let J=Oe=class extends Q.wq{constructor(n){super(n),this.ascending=!0,this.itemRenderingRule=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(n,r){return null!=r.ascending?r.ascending:null==r.sortAscending||r.sortAscending}readMethod(n,r){return function _t(n){let r;switch(n?n.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":r="esriMosaicAttribute";break;case"lockraster":r="esriMosaicLockRaster";break;case"center":r="esriMosaicCenter";break;case"northwest":r="esriMosaicNorthwest";break;case"nadir":r="esriMosaicNadir";break;case"viewpoint":r="esriMosaicViewpoint";break;case"seamline":r="esriMosaicSeamline";break;default:r="esriMosaicNone"}return Me.fromJSON(r)}(r.mosaicMethod||r.defaultMosaicMethod)}readOperation(n,r){const a=r.mosaicOperation,e=r.mosaicOperator&&r.mosaicOperator.toLowerCase(),t=a||(e?he.toJSON(e):null);return he.fromJSON(t)||"first"}castSortValue(n){return null==n||"string"==typeof n||"number"==typeof n?n:`${n}`}clone(){return new Oe({ascending:this.ascending,itemRenderingRule:(0,z.d9)(this.itemRenderingRule),lockRasterIds:(0,z.d9)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,z.d9)(this.multidimensionalDefinition),objectIds:(0,z.d9)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,z.d9)(this.viewpoint),where:this.where})}};(0,s._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],J.prototype,"ascending",void 0),(0,s._)([(0,E.r)("ascending",["ascending","sortAscending"])],J.prototype,"readAscending",null),(0,s._)([(0,l.Cb)({type:I.Z,json:{write:!0}})],J.prototype,"itemRenderingRule",void 0),(0,s._)([(0,l.Cb)({type:[A.z8],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],J.prototype,"lockRasterIds",void 0),(0,s._)([(0,l.Cb)({type:String,json:{type:Me.jsonValues,write:{target:"mosaicMethod",writer:Me.write}}})],J.prototype,"method",void 0),(0,s._)([(0,E.r)("method",["mosaicMethod","defaultMosaicMethod"])],J.prototype,"readMethod",null),(0,s._)([(0,l.Cb)({type:[De.Z],json:{write:!0}})],J.prototype,"multidimensionalDefinition",void 0),(0,s._)([(0,l.Cb)({type:[A.z8],json:{name:"fids",write:!0}})],J.prototype,"objectIds",void 0),(0,s._)([(0,l.Cb)({json:{type:he.jsonValues,read:{reader:he.read},write:{target:"mosaicOperation",writer:he.write}}})],J.prototype,"operation",void 0),(0,s._)([(0,E.r)("operation",["mosaicOperation","mosaicOperator"])],J.prototype,"readOperation",null),(0,s._)([(0,l.Cb)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],J.prototype,"sortField",void 0),(0,s._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],J.prototype,"sortValue",void 0),(0,s._)([(0,At.p)("sortValue")],J.prototype,"castSortValue",null),(0,s._)([(0,l.Cb)({type:q.Z,json:{write:!0}})],J.prototype,"viewpoint",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],J.prototype,"where",void 0),J=Oe=(0,s._)([(0,_.j)("esri.layers.support.MosaicRule")],J);const G=J;var H=m(2939);let D=class extends Q.wq{constructor(){super(...arguments),this.layer=null,this.adjustAspectRatio=void 0,this.compression=void 0,this.pixelType=void 0,this.lercVersion=2}writeAdjustAspectRatio(n,r,a){this.layer.version<10.3||(r[a]=n)}get bandIds(){return this.layer.bandIds}set bandIds(n){this.layer&&(this.layer.bandIds=n)}get compressionQuality(){return this.layer?.compressionQuality}set compressionQuality(n){this.layer&&(this.layer.compressionQuality=n)}writeCompressionQuality(n,r,a){this.format&&this.format.toLowerCase().includes("jpg")&&null!=n&&(r[a]=n)}get compressionTolerance(){return this.layer?.compressionTolerance}set compressionTolerance(n){this.layer&&(this.layer.compressionTolerance=n)}writeCompressionTolerance(n,r,a){"lerc"===this.format&&null!=n&&(r[a]=n)}get format(){return"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer?.interpolation}set interpolation(n){this.layer&&(this.layer.interpolation=n)}get noData(){return this.layer?.noData}set noData(n){this.layer&&(this.layer.noData=n)}get noDataInterpretation(){return this.layer?.noDataInterpretation}set noDataInterpretation(n){this.layer&&(this.layer.noDataInterpretation=n)}writeLercVersion(n,r,a){"lerc"===this.format&&this.layer.version>=10.5&&(r[a]=n)}get version(){const n=this.layer;return n.commitProperty("bandIds"),n.commitProperty("format"),n.commitProperty("compressionQuality"),n.commitProperty("compressionTolerance"),n.commitProperty("interpolation"),n.commitProperty("noData"),n.commitProperty("noDataInterpretation"),n.commitProperty("mosaicRule"),n.commitProperty("renderingRule"),n.commitProperty("adjustAspectRatio"),n.commitProperty("pixelFilter"),n.commitProperty("definitionExpression"),n.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(n){this._set("version",n)}get mosaicRule(){const n=this.layer;let r=n.mosaicRule;const a=n.definitionExpression;return r?a&&a!==r.where&&(r=r.clone(),r.where=a):a&&(r=new G({where:a})),r}get renderingRule(){const n=this.layer;let r=n.renderingRule;const a=n.pixelFilter,e=!n.format||n.format.includes("jpg")||n.format.includes("png");r=this._addResampleRasterFunction(r);const t=n.multidimensionalSubset?.areaOfInterest;return t&&(r=this._addClipFunction(r,t)),e&&!a&&"vector-field"!==n.renderer?.type&&(r=this.combineRendererWithRenderingRule(r)),r}combineRendererWithRenderingRule(n){const r=this.layer,{rasterInfo:a,renderer:e}=r;return n=n||r.renderingRule,e&&rt(e)?Ne(function Ft(n,r){switch(r=r||{},n.type){case"raster-stretch":return function Dt(n,r){const a=r.convertToRFT,e=new I.Z;e.functionName="Stretch";const t=ye[St.v.toJSON(n.stretchType)],i="u8",o={StretchType:t,Statistics:jt(n.statistics),DRA:n.dynamicRangeAdjustment,UseGamma:n.useGamma,Gamma:n.gamma,ComputeGamma:n.computeGamma};if(null!=n.outputMin&&(o.Min=n.outputMin),null!=n.outputMax&&(o.Max=n.outputMax),t===ye.standardDeviation?(o.NumberOfStandardDeviations=n.numberOfStandardDeviations,e.outputPixelType=i):t===ye.percentClip?(o.MinPercent=n.minPercent,o.MaxPercent=n.maxPercent,e.outputPixelType=i):t===ye.minMax?e.outputPixelType=i:t===ye.sigmoid&&(o.SigmoidStrengthLevel=n.sigmoidStrengthLevel),e.functionArguments=o,e.variableName="Raster",n.colorRamp){const u=n.colorRamp,p=new I.Z;if(a)p.functionArguments={ColorRamp:(0,ae.pM)(u)};else{const d=(0,ae.Uh)(u);if(d)p.functionArguments={colorRamp:d};else if(!r.convertColorRampToColormap||"algorithmic"!==u.type&&"multipart"!==u.type){const c=n.colorRamp.toJSON();"algorithmic"===c.type?c.algorithm=c.algorithm||"esriCIELabAlgorithm":"multipart"===c.type&&c.colorRamps?.length&&c.colorRamps.forEach(y=>y.algorithm=y.algorithm||"esriCIELabAlgorithm"),p.functionArguments={colorRamp:c}}else p.functionArguments={Colormap:(0,ae.Jw)(u,256)}}return p.variableName="Raster",p.functionName="Colormap",p.functionArguments.Raster=e,a?new I.Z({rasterFunctionDefinition:$(p)}):p}return a?new I.Z({rasterFunctionDefinition:$(e)}):e}(n,r);case"class-breaks":return function Nt(n,r){const a=[],e=[],t=[],i=[],{pixelType:u,rasterAttributeTable:p}=r,d=(0,f.Wi)(p)?null:p.features,c=st(p);if(d&&Array.isArray(d)&&n.classBreakInfos){n.classBreakInfos.forEach((C,x)=>{const F=C.symbol.color;let S;F.a&&d.forEach(b=>{S=b.attributes[n.field],(S>=C.minValue&&S=C.minValue)&&i.push([b.attributes[c],F.r,F.g,F.b])})});const g=u?be(i,u):i,R=new I.Z;return R.functionName="Colormap",R.functionArguments={},R.functionArguments.Colormap=g,R.variableName="Raster",r.convertToRFT?new I.Z({rasterFunctionDefinition:$(R)}):R}n.classBreakInfos.forEach((g,R)=>{const C=g.symbol&&g.symbol.color;C.a?(a.push(0===R?g.minValue:g.minValue+1e-6,g.maxValue+1e-6),e.push(R),i.push([R,C.r,C.g,C.b])):t.push(g.minValue,g.maxValue)});const y=u?be(i,u):i,h=new I.Z;h.functionName="Remap",h.functionArguments={InputRanges:a,OutputValues:e,NoDataRanges:t},h.variableName="Raster";const v=new I.Z;return v.functionName="Colormap",v.functionArguments={Colormap:y,Raster:h},r.convertToRFT?new I.Z({rasterFunctionDefinition:$(v)}):v}(n,r);case"unique-value":return function Ot(n,r){const a=[],{pixelType:e,rasterAttributeTable:t}=r,i=(0,f.Wi)(t)?null:t.features,o=st(t),u=n.defaultSymbol?.color?.toRgb(),p=n.uniqueValueInfos;if(p)if(i){const y=new Map;p.forEach(v=>{const g=v.value,R=v.symbol.color;null!=g&&R&&R.a&&y.set(String(g),R.toRgb())});const h=n.field;i.forEach(({attributes:v})=>{const g=String(v[h]),R=v[o];if(y.has(g)){const C=y.get(g);a.push([R,...C])}else u&&a.push([R,...u])})}else for(let y=0;y0?be(a,e):a,c=new I.Z;return c.functionName="Colormap",c.functionArguments={},c.functionArguments.Colormap=d,c.variableName="Raster",r.convertToRFT?new I.Z({rasterFunctionDefinition:$(c)}):c}(n,r);case"raster-colormap":return function Mt(n,r){const a=n.extractColormap();if(!a||0===a.length)return;const{pixelType:e}=r,t=e?be(a,e):a,i=new I.Z;return i.functionName="Colormap",i.functionArguments={},i.functionArguments.Colormap=t,r.convertToRFT?new I.Z({rasterFunctionDefinition:$(i)}):i}(n,r);case"vector-field":return function Pt(n,r){const a=new I.Z;a.functionName="VectorFieldRenderer";const{dataType:e,bandProperties:t}=r,i="vector-uv"===e;let o,u;t&&2===t.length&&(o=t.map(h=>h.BandName.toLowerCase()).indexOf("magnitude"),u=t.map(h=>h.BandName.toLowerCase()).indexOf("direction")),-1!==o&&null!==o||(o=0,u=1);const p="arithmetic"===n.rotationType?1:2,d="flow-from"===n.flowRepresentation?0:1,c=n.visualVariables?n.visualVariables.find(h=>"Magnitude"===h.field):new Ct.Z,y={magnitudeBandID:o,directionBandID:u,isUVComponents:i,referenceSystem:p,massFlowAngleRepresentation:d,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:It[n.style.toLowerCase().replace("-","_")],minimumMagnitude:c.minDataValue,maximumMagnitude:c.maxDataValue,minimumSymbolSize:c.minSize,maximumSymbolSize:c.maxSize};return a.functionArguments=y,r.convertToRFT?new I.Z({rasterFunctionDefinition:$(a)}):a}(n,r);case"raster-shaded-relief":return function Tt(n,r){const a=r.convertToRFT;if("elevation"!==r.dataType&&("generic"!==r.dataType||1!==r.bandCount||"s16"!==r.pixelType&&"s32"!==r.pixelType&&"f32"!==r.pixelType&&"f64"!==r.pixelType))return new I.Z;const e=new I.Z;e.functionName="Hillshade";const t="traditional"===n.hillshadeType?0:1,i="none"===n.scalingType?1:3,o={HillshadeType:t,SlopeType:i,ZFactor:n.zFactor};return 0===t&&(o.Azimuth=n.azimuth,o.Altitude=n.altitude),3===i&&(o.PSPower=n.pixelSizePower,o.PSZFactor=n.pixelSizeFactor),e.functionArguments=o,e.variableName="Raster",n.colorRamp&&(e.functionName="ShadedRelief",a?o.ColorRamp=(0,ae.pM)(n.colorRamp):o.Colormap=(0,ae.Jw)(n.colorRamp,256)),a?new I.Z({rasterFunctionDefinition:$(e)}):e}(n,r);case"flow":throw new Error("Unsupported rendering rule.")}}(e,{rasterAttributeTable:a.attributeTable,pixelType:a.pixelType,dataType:a.dataType,bandProperties:a.keyProperties?.BandProperties,convertColorRampToColormap:r.version<10.6,convertToRFT:!!n?.rasterFunctionDefinition,bandCount:a.bandCount}),n):n}_addResampleRasterFunction(n){if("vector-field"!==this.layer.renderer?.type||"Resample"===n?.functionName)return n;let e=new I.Z({functionName:"Resample",functionArguments:{ResamplingType:"esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,InputCellSize:this.layer.serviceRasterInfo.pixelSize}});return e=n?.rasterFunctionDefinition?new I.Z({rasterFunctionDefinition:$(e)}):e,Ne(e,n)}_addClipFunction(n,r){return Ne(new I.Z({functionName:"Clip",functionArguments:{ClippingGeometry:r.toJSON(),ClippingType:1}}),n)}};(0,s._)([(0,l.Cb)()],D.prototype,"layer",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"adjustAspectRatio",void 0),(0,s._)([(0,T.c)("adjustAspectRatio")],D.prototype,"writeAdjustAspectRatio",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"bandIds",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"compression",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"compressionQuality",null),(0,s._)([(0,T.c)("compressionQuality")],D.prototype,"writeCompressionQuality",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"compressionTolerance",null),(0,s._)([(0,T.c)("compressionTolerance")],D.prototype,"writeCompressionTolerance",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"format",null),(0,s._)([(0,l.Cb)({type:String,json:{read:{reader:H.c.read},write:{writer:H.c.write}}})],D.prototype,"interpolation",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"noData",null),(0,s._)([(0,l.Cb)({type:String,json:{read:{reader:H.k.read},write:{writer:H.k.write}}})],D.prototype,"noDataInterpretation",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"pixelType",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"lercVersion",void 0),(0,s._)([(0,T.c)("lercVersion")],D.prototype,"writeLercVersion",null),(0,s._)([(0,l.Cb)({type:Number})],D.prototype,"version",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"mosaicRule",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],D.prototype,"renderingRule",null),D=(0,s._)([(0,_.j)("esri.layers.mixins.ExportImageServiceParameters")],D);var k=m(36255),Zt=m(60466),Et=m(11354),je=m(25688),at=m(79645),Jt=m(9548),Se=m(79781),Ve=m(8614),Lt=m(30994),Ce=m(8341),zt=m(99033),Ae=m(93555),Z=m(2618),ee=m(65234);let oe=class extends Q.wq{constructor(){super(...arguments),this.north=null,this.up=null,this.spatialReference=null}};(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],oe.prototype,"north",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],oe.prototype,"up",void 0),(0,s._)([(0,l.Cb)({type:ee.Z,json:{write:!0}})],oe.prototype,"spatialReference",void 0),oe=(0,s._)([(0,_.j)("esri.rest.support.ImageAngleResult")],oe);const Ut=oe;var ot=m(17253);let K=class extends Q.wq{constructor(){super(...arguments),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};(0,s._)([(0,l.Cb)({json:{write:!0}})],K.prototype,"catalogItemVisibilities",void 0),(0,s._)([(0,l.Cb)({type:ot.default,json:{write:!0}})],K.prototype,"catalogItems",void 0),(0,s._)([(0,l.Cb)({type:q.Z,json:{write:!0}})],K.prototype,"location",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],K.prototype,"name",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],K.prototype,"objectId",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],K.prototype,"processedValues",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],K.prototype,"properties",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],K.prototype,"value",void 0),K=(0,s._)([(0,_.j)("esri.rest.support.ImageIdentifyResult")],K);const Ht=K;let xe=class extends Q.wq{constructor(){super(...arguments),this.geometries=null}};(0,s._)([(0,l.Cb)({json:{write:!0}})],xe.prototype,"geometries",void 0),xe=(0,s._)([(0,_.j)("esri.rest.support.ImagePixelLocationResult")],xe);const Qt=xe;let Y=class extends Q.wq{constructor(){super(...arguments),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,s._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"attributes",void 0),(0,s._)([(0,l.Cb)({type:q.Z,json:{write:!0}})],Y.prototype,"location",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"locationId",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"rasterId",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"resolution",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"pixelValue",void 0),Y=(0,s._)([(0,_.j)("esri.rest.support.ImageSample")],Y);const Gt=Y;let Ie=class extends Q.wq{constructor(){super(...arguments),this.samples=null}};(0,s._)([(0,l.Cb)({type:[Gt],json:{write:!0}})],Ie.prototype,"samples",void 0),Ie=(0,s._)([(0,_.j)("esri.rest.support.ImageSampleResult")],Ie);const Bt=Ie;function lt(n){const r=n?.time;if(r&&(null!=r.start||null!=r.end)){const a=[];null!=r.start&&a.push(r.start),null==r.end||a.includes(r.end)||a.push(r.end),n.time=a.join(",")}}function ut(n,r,a){return _e.apply(this,arguments)}function _e(){return(_e=(0,w.Z)(function*(n,r,a){const e=(0,Z.en)(n),t=r.geometry?[r.geometry]:[],i=yield(0,Ae.aX)(t),o=r.toJSON();lt(o);const u=i&&i[0];(0,f.pC)(u)&&(o.geometry=u.toJSON());const p=(0,Z.cv)({...e.query,f:"json",...o});return(0,Z.lA)(p,a)})).apply(this,arguments)}function Ze(){return(Ze=(0,w.Z)(function*(n,r,a){const e=r.toJSON();(0,f.pC)(e.angleName)&&(e.angleName=e.angleName.join(",")),(0,f.pC)(r.point)&&r.point.spatialReference?.imageCoordinateSystem&&(e.point.spatialReference=He(r.point.spatialReference)),(0,f.pC)(r.spatialReference)&&r.spatialReference.imageCoordinateSystem&&(e.spatialReference=ct(r.spatialReference));const t=(0,Z.en)(n),i=(0,Z.cv)({...t.query,f:"json",...e}),o=(0,Z.lA)(i,a),{data:u}=yield(0,j.default)(`${t.path}/computeAngles`,o);return u.spatialReference=u.spatialReference?null!=u.spatialReference.geodataXform?new ee.Z({wkid:0,imageCoordinateSystem:u.spatialReference}):ee.Z.fromJSON(u.spatialReference):null,"NaN"===u.north&&(u.north=null),"NaN"===u.up&&(u.up=null),new Ut(u)})).apply(this,arguments)}function Ee(){return(Ee=(0,w.Z)(function*(n,r,a){const e=r.toJSON(),{geometries:t}=r;if(t)for(let d=0;d{u.avg=u.mean,u.stddev=u.standardDeviation}),{statistics:o,histograms:i.histograms}})).apply(this,arguments)}function Le(){return(Le=(0,w.Z)(function*(n,r,a){const e=yield ut(n,r,a),t=(0,Z.en)(n),{data:i}=yield(0,j.default)(`${t.path}/computeHistograms`,e);return{histograms:i.histograms}})).apply(this,arguments)}function ze(){return(ze=(0,w.Z)(function*(n,r,a){const e=r.toJSON();lt(e),e.outFields?.length&&(e.outFields=e.outFields.join(","));const t=(yield(0,Ae.aX)(r.geometry))?.[0];(0,f.pC)(t)&&(e.geometry=t.toJSON());const i=(0,Z.en)(n),o=(0,Z.cv)({...i.query,f:"json",...e}),u=(0,Z.lA)(o,a),{data:p}=yield(0,j.default)(`${i.path}/getSamples`,u),d=p?.samples?.map(c=>{const y="NaN"===c.value||""===c.value?null:c.value.split(" ").map(h=>Number(h));return{...c,pixelValue:y}});return Bt.fromJSON({samples:d})})).apply(this,arguments)}function pt(n,r,a){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,w.Z)(function*(n,r,a){const e=(0,Z.en)(n);return(0,Ae.aX)(r.geometry?[r.geometry]:[]).then(i=>{const o=r.toJSON(),u=i&&i[0];(0,f.pC)(u)&&(o.geometry=JSON.stringify(u.toJSON()));const p=(0,Z.cv)({...e.query,f:"json",...o}),d=(0,Z.lA)(p,a);return(0,j.default)(e.path+"/identify",d)}).then(i=>Ht.fromJSON(i.data))})).apply(this,arguments)}function He(n){const{imageCoordinateSystem:r}=n;if(r){const{id:a,referenceServiceName:e}=r;return null!=a?e?{icsid:a,icsns:e}:{icsid:a}:{ics:r}}return n.toJSON()}function ct(n,r){const a=He(n),{icsid:e,icsns:t,wkid:i}=a;return null!=e?null==t||r?.toLowerCase().includes("/"+t.toLowerCase()+"/")?`0:${e}`:JSON.stringify(a):i?i.toString():JSON.stringify(a)}m(8314),m(15283);var Be,Yt=m(2865),we=(m(59318),m(24263),m(16730),m(37053),m(82054),m(2004)),kt=(m(21674),m(72854)),er=m(37118),Qe=(m(55214),m(24192),m(96854)),tr=(m(87183),m(67736),m(90463)),rr=m(24865),mt=(m(67010),m(6871),m(99208)),ir=m(27497);function Ge(){return(Ge=(0,w.Z)(function*(n,r,a){const e=(0,Z.en)(n),t=(0,Z.cv)({...e?.query,f:"json"}),i=(0,Z.lA)(t,a),o=`${e?.path}/${r}/info`,u=(0,j.default)(`${o}`,i),p=(0,j.default)(`${o}/keyProperties`,i),d=yield Promise.allSettled([u,p]),c="fulfilled"===d[0].status?d[0].value.data:null,y="fulfilled"===d[1].status?d[1].value.data:null;let h=null;c.statistics?.length&&(h=c.statistics.map(b=>({min:b[0],max:b[1],avg:b[2],stddev:b[3]})));const v=we.Z.fromJSON(c.extent),g=Math.ceil(v.width/c.pixelSizeX-.1),R=Math.ceil(v.height/c.pixelSizeY-.1),C=v.spatialReference,x=new q.Z({x:c.pixelSizeX,y:c.pixelSizeY,spatialReference:C}),F=c.histograms?.length?c.histograms:null,S=new ir.Z({origin:c.origin,blockWidth:c.blockWidth,blockHeight:c.blockHeight,firstPyramidLevel:c.firstPyramidLevel,maximumPyramidLevel:c.maxPyramidLevel});return new at.Z({width:g,height:R,bandCount:c.bandCount,extent:v,spatialReference:C,pixelSize:x,pixelType:c.pixelType.toLowerCase(),statistics:h,histograms:F,keyProperties:y,storageInfo:S})})).apply(this,arguments)}let te=Be=class extends Q.wq{constructor(){super(...arguments),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new Be((0,z.d9)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s._)([(0,l.Cb)({type:[String],json:{name:"angleName",write:!0}})],te.prototype,"angleNames",void 0),(0,s._)([(0,l.Cb)({type:q.Z,json:{write:!0}})],te.prototype,"point",void 0),(0,s._)([(0,l.Cb)({type:ee.Z,json:{write:!0}})],te.prototype,"spatialReference",void 0),(0,s._)([(0,l.Cb)({type:A.z8,json:{write:!0}})],te.prototype,"rasterId",void 0),te=Be=(0,s._)([(0,_.j)("esri.rest.support.ImageAngleParameters")],te);const sr=te;var Ke,We=m(97478),ge=m(91179);let X=Ke=class extends Q.wq{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.renderingRule=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(n,r,a){null!=n&&(r.geometryType=(0,ge.Ji)(n),r[a]=n.toJSON())}clone(){return new Ke((0,z.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,s._)([(0,l.Cb)({types:et.qM,json:{read:ge.im}})],X.prototype,"geometry",void 0),(0,s._)([(0,T.c)("geometry")],X.prototype,"writeGeometry",null),(0,s._)([(0,l.Cb)({type:G,json:{write:!0}})],X.prototype,"mosaicRule",void 0),(0,s._)([(0,l.Cb)({type:I.Z,json:{write:!0}})],X.prototype,"renderingRule",void 0),(0,s._)([(0,l.Cb)({type:q.Z,json:{write:!0}})],X.prototype,"pixelSize",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],X.prototype,"raster",void 0),(0,s._)([(0,l.Cb)({type:We.Z,json:{read:{source:"time"},write:{target:"time"}}})],X.prototype,"timeExtent",void 0),X=Ke=(0,s._)([(0,_.j)("esri.rest.support.ImageHistogramParameters")],X);const dt=X;var $e;let N=$e=class extends Q.wq{constructor(){super(...arguments),this.geometry=null,this.renderingRules=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(n,r,a){null!=n&&(r.geometryType=(0,ge.Ji)(n),r[a]=JSON.stringify(n.toJSON()))}set mosaicRule(n){let r=n;r&&r.mosaicMethod&&(r=G.fromJSON({...r.toJSON(),mosaicMethod:r.mosaicMethod,mosaicOperation:r.mosaicOperation})),this._set("mosaicRule",r)}writeMosaicRule(n,r,a){null!=n&&(r[a]=JSON.stringify(n.toJSON()))}set renderingRule(n){let r=n;r&&r.rasterFunction&&(r=I.Z.fromJSON({...r.toJSON(),rasterFunction:r.rasterFunction,rasterFunctionArguments:r.rasterFunctionArguments})),this._set("renderingRule",r)}writeRenderingRule(n,r,a){null!=n&&(r[a]=JSON.stringify(n.toJSON())),n.rasterFunctionDefinition&&(r[a]=JSON.stringify(n.rasterFunctionDefinition))}writeRenderingRules(n,r,a){null!=n&&(r[a]=JSON.stringify(n.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(n,r,a){null!=n&&(r[a]=JSON.stringify(n))}writeTimeExtent(n,r,a){if(null!=n){const e=(0,f.pC)(n.start)?n.start.getTime():null,t=(0,f.pC)(n.end)?n.end.getTime():null;r[a]=null!=e?null!=t?`${e},${t}`:`${e}`:null}}clone(){return new $e((0,z.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s._)([(0,l.Cb)({json:{write:!0}})],N.prototype,"geometry",void 0),(0,s._)([(0,T.c)("geometry")],N.prototype,"writeGeometry",null),(0,s._)([(0,l.Cb)({type:G,json:{write:!0}})],N.prototype,"mosaicRule",null),(0,s._)([(0,T.c)("mosaicRule")],N.prototype,"writeMosaicRule",null),(0,s._)([(0,l.Cb)({type:I.Z,json:{write:!0}})],N.prototype,"renderingRule",null),(0,s._)([(0,T.c)("renderingRule")],N.prototype,"writeRenderingRule",null),(0,s._)([(0,l.Cb)({type:[I.Z],json:{write:!0}})],N.prototype,"renderingRules",void 0),(0,s._)([(0,T.c)("renderingRules")],N.prototype,"writeRenderingRules",null),(0,s._)([(0,l.Cb)({type:q.Z,json:{write:!0}})],N.prototype,"pixelSize",void 0),(0,s._)([(0,T.c)("pixelSize")],N.prototype,"writePixelSize",null),(0,s._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],N.prototype,"returnGeometry",void 0),(0,s._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],N.prototype,"returnCatalogItems",void 0),(0,s._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],N.prototype,"returnPixelValues",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],N.prototype,"maxItemCount",void 0),(0,s._)([(0,l.Cb)({type:We.Z,json:{write:{target:"time"}}})],N.prototype,"timeExtent",void 0),(0,s._)([(0,T.c)("timeExtent")],N.prototype,"writeTimeExtent",null),(0,s._)([(0,l.Cb)({json:{write:!0}})],N.prototype,"raster",void 0),(0,s._)([(0,l.Cb)({json:{write:!0}})],N.prototype,"viewId",void 0),(0,s._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],N.prototype,"processAsMultidimensional",void 0),N=$e=(0,s._)([(0,_.j)("esri.rest.support.ImageIdentifyParameters")],N);const yt=N;var Xe;let le=Xe=class extends Q.wq{constructor(){super(...arguments),this.geometries=null,this.rasterId=null}writeGeometry(n,r,a){r.geometries={geometryType:"esriGeometryPoint",geometries:n.map(e=>e.toJSON())}}clone(){return new Xe({geometries:this.geometries?.map(n=>n.clone())??[],rasterId:this.rasterId})}};(0,s._)([(0,l.Cb)({type:[q.Z],json:{write:!0}})],le.prototype,"geometries",void 0),(0,s._)([(0,T.c)("geometries")],le.prototype,"writeGeometry",null),(0,s._)([(0,l.Cb)({type:A.z8,json:{write:!0}})],le.prototype,"rasterId",void 0),le=Xe=(0,s._)([(0,_.j)("esri.rest.support.ImagePixelLocationParameters")],le);const ar=le;var qe;let L=qe=class extends Q.wq{constructor(){super(...arguments),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(n,r,a){null!=n&&(r.geometryType=(0,ge.Ji)(n),r[a]=n.toJSON())}set locations(n){if(n?.length){const r=new kt.Z({spatialReference:n[0].spatialReference});r.points=n.map(a=>[a.x,a.y]),this._set("locations",n),this.geometry=r}}clone(){return new qe((0,z.d9)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,s._)([(0,l.Cb)({types:et.qM,json:{read:ge.im}})],L.prototype,"geometry",void 0),(0,s._)([(0,T.c)("geometry")],L.prototype,"writeGeometry",null),(0,s._)([(0,l.Cb)()],L.prototype,"locations",null),(0,s._)([(0,l.Cb)({type:String,json:{type:H.c.jsonValues,read:H.c.read,write:H.c.write}})],L.prototype,"interpolation",void 0),(0,s._)([(0,l.Cb)({type:G,json:{write:!0}})],L.prototype,"mosaicRule",void 0),(0,s._)([(0,l.Cb)({type:[String],json:{write:!0}})],L.prototype,"outFields",void 0),(0,s._)([(0,l.Cb)({type:q.Z,json:{write:!0}})],L.prototype,"pixelSize",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],L.prototype,"raster",void 0),(0,s._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],L.prototype,"returnFirstValueOnly",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],L.prototype,"sampleDistance",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],L.prototype,"sampleCount",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],L.prototype,"sliceId",void 0),(0,s._)([(0,l.Cb)({type:We.Z,json:{read:{source:"time"},write:{target:"time"}}})],L.prototype,"timeExtent",void 0),L=qe=(0,s._)([(0,_.j)("esri.rest.support.ImageSampleParameters")],L);const or=L;var lr=m(37084);const Ye=(0,Te.w)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"}),ur=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),pr=(0,l.Eg)(A.q9,{min:0,max:255}),mr=n=>{let r=class extends n{constructor(){super(...arguments),this._functionRasterInfos={},this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this._cachedRendererJson=null,this._serviceSupportsMosaicRule=null,this._rasterAttributeTableFieldPrefix="Raster.",this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new D({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||(0,f.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.length<1||(0,f.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replace(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(i=>"number"==typeof i))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?G.fromJSON(t):null}get fieldsIndex(){return this.fields?new Zt.Z(this.fields):null}set format(e){e&&ur.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=G.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const i=e||t.mosaicRule;return i?G.fromJSON(i):this._isMosaicRuleSupported(t)?G.fromJSON(t):null}writeMosaicRule(e,t,i){let o=this.mosaicRule;const u=this.definitionExpression;o?u&&u!==o.where&&(o=o.clone(),o.where=u):u&&(o=new G({where:u})),this._isValidCustomizedMosaicRule(o)&&(t[i]=o.toJSON())}get multidimensionalInfo(){return(0,f.pC)(this.serviceRasterInfo)?this.serviceRasterInfo.multidimensionalInfo:null}writeNoData(e,t,i){null!=e&&"number"==typeof e&&(t[i]=pr(e))}readObjectIdField(e,t){if(!e){const i=t.fields.filter(o=>"esriFieldTypeOID"===o.type||"oid"===o.type);e=i&&i[0]&&i[0].name}return e}get parsedUrl(){return(0,Rt.mN)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}set renderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("renderer",e)}readRenderer(e,t,i){const o=t?.layerDefinition?.drawingInfo?.renderer,u=(0,Pe.ij)(o,i);return null==u?null:("vector-field"===u.type&&t.symbolTileSize&&!o.symbolTileSize&&(u.symbolTileSize=t.symbolTileSize),rt(u)||tt.Z.getLogger(this.declaredClass).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),u)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this._rasterAttributeTableFieldPrefix||"Raster.",t=new k.Z({name:"Raster.ItemPixelValue",alias:"Item Pixel Value",domain:null,editable:!1,length:50,type:"string"}),i=new k.Z({name:"Raster.ServicePixelValue",alias:"Service Pixel Value",domain:null,editable:!1,length:50,type:"string"}),o=new k.Z({name:"Raster.ServicePixelValue.Raw",alias:"Raw Service Pixel Value",domain:null,editable:!1,length:50,type:"string"});let u=this.fields?(0,z.d9)(this.fields):[];u.push(i),this.capabilities?.operations.supportsQuery&&this.fields&&this.fields.length>0&&u.push(t),this.version>=10.4&&(0,f.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.some(d=>"none"===d.name.toLowerCase())&&u.push(o),(0,f.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.filter(d=>"none"!==d.name.toLowerCase()).forEach(d=>{u.push(new k.Z({name:"Raster.ServicePixelValue."+d.name,alias:d.name,domain:null,editable:!1,length:50,type:"string"}))}),this._isVectorDataSet()&&(u.push(new k.Z({name:"Raster.Magnitude",alias:"Magnitude",domain:null,editable:!1,type:"double"})),u.push(new k.Z({name:"Raster.Direction",alias:"Direction",domain:null,editable:!1,type:"double"})));const{attributeTable:p}=this.rasterInfo??{};if((0,f.pC)(p)){const d=p.fields.filter(c=>"esriFieldTypeOID"!==c.type&&"value"!==c.name.toLowerCase()).map(c=>{const y=(0,z.d9)(c);return y.name=e+c.name,y});u=u.concat(d)}return u}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=I.Z.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}readRenderingRule(e,t){const i=t.rasterFunctionInfos;return t.renderingRule||i&&i.length&&"None"!==i[0].name?this._isRFTJson(t.renderingRule)?I.Z.fromJSON({rasterFunctionDefinition:t.renderingRule}):I.Z.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}writeRenderingRule(e,t,i){const o=e.toJSON();t[i]=o.rasterFunctionDefinition?o.rasterFunctionDefinition:o}readSpatialReference(e,t){const i=e||t.extent.spatialReference;return i?ee.Z.fromJSON(i):null}readPixelType(e){return Ye.fromJSON(e)||e}writePixelType(e,t,i){((0,f.Wi)(this.serviceRasterInfo)||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[i]=Ye.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||(i=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}applyRenderer(e,t){var i=this;return(0,w.Z)(function*(){let o=e;const{renderer:u,symbolizer:p,pixelFilter:d,bandIds:c}=i;if(!i._isPicture()&&u&&p&&!d){const y=JSON.stringify(i._cachedRendererJson)!==JSON.stringify(u.toJSON()),h=i._rasterJobHandler.instance;if(h){y&&(p.bind(),yield h.updateSymbolizer(p,t),i._cachedRendererJson=u.toJSON());const v=yield h.symbolize({bandIds:c,...e},t);o={extent:e.extent,pixelBlock:v}}else o={extent:e.extent,pixelBlock:p.symbolize({bandIds:c,...e})}}return o})()}destroy(){this._shutdownJobHandler()}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}computeAngles(e,t){var i=this;return(0,w.Z)(function*(){if(!(yield i._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new U.Z("imagery-layer:compute-angles","this operation is not supported on the input image service");return e=(0,A.TJ)(sr,e).clone(),function Wt(n,r,a){return Ze.apply(this,arguments)}(i.url,e,i._getRequestOptions(t))})()}computePixelSpaceLocations(e,t){var i=this;return(0,w.Z)(function*(){if(!(yield i._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new U.Z("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,A.TJ)(ar,e).clone(),function Kt(n,r,a){return Ee.apply(this,arguments)}(i.url,e,i._getRequestOptions(t))})()}computeHistograms(e,t){var i=this;return(0,w.Z)(function*(){if(!(yield i._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new U.Z("imagery-layer:compute-histograms","this operation is not supported on the input image service");e=(0,A.TJ)(dt,e).clone();const{raster:o,mosaicRule:u,renderingRule:p}=i;return p&&null==e.renderingRule&&(e.renderingRule=p),u&&null==e.mosaicRule&&(e.mosaicRule=u),o&&null==e.raster&&(e.raster=o),function Xt(n,r,a){return Le.apply(this,arguments)}(i.url,e,i._getRequestOptions(t))})()}computeStatisticsHistograms(e,t){var i=this;return(0,w.Z)(function*(){if(!(yield i._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new U.Z("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");e=(0,A.TJ)(dt,e).clone();const{raster:o,mosaicRule:u,renderingRule:p}=i;return p&&null==e.renderingRule&&(e.renderingRule=p),u&&null==e.mosaicRule&&(e.mosaicRule=u),o&&null==e.raster&&(e.raster=o),function $t(n,r,a){return Je.apply(this,arguments)}(i.url,e,i._getRequestOptions(t))})()}getField(e){const{fieldsIndex:t}=this;return(0,f.pC)(t)?t.get(e):void 0}getFieldDomain(e,t){const i=this.getField(e);return i?i.domain:null}fetchImage(e,t,i,o={}){var u=this;return(0,w.Z)(function*(){if(null==e||null==t||null==i)throw new U.Z("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required.");if(u.renderer||u.symbolizer){const c=yield u.generateRasterInfo(u.renderingRule,{signal:o.signal});c&&(u.rasterInfo=c)}const p=u.getExportImageServiceParameters(e,t,i,o.timeExtent);if(null==p){if(o.requestAsImageElement&&u._canRequestImageElement(u.format)){const g=document.createElement("canvas");return g.width=t,g.height=i,{imageOrCanvasElement:g}}const c=(u.bandIds?.length||u.rasterInfo?.bandCount)??0,y=t*i,h=u.rasterInfo?.pixelType??"unknown",v=[];for(let g=0;g=10.3?e?.renderingRule:null})}).then(t=>t.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new U.Z("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,j.default)(a(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.renderingRule:null})}).then(t=>ot.default.fromJSON(t.data))}getCatalogItemRasterInfo(e,t){const i={...t,query:this._getQueryParams()};return function nr(n,r,a){return Ge.apply(this,arguments)}(a(this.parsedUrl),e,i)}getCatalogItemICSInfo(e,t){var i=this;return(0,w.Z)(function*(){const{data:o}=yield(0,j.default)(a(i.parsedUrl)+"/"+e+"/info/ics",{query:i._getQueryParams(),...t}),u=o&&o.ics;if(!u)return;let p=null;try{p=(yield(0,j.default)(a(i.parsedUrl)+"/"+e+"/info",{query:i._getQueryParams(),...t})).data.extent}catch{}if(!p||!p.spatialReference)return{ics:u,icsToPixelTransform:null,icsExtent:null,northDirection:null};const d=i.version>=10.7?(0,j.default)(a(i.parsedUrl)+"/"+e+"/info/icstopixel",{query:i._getQueryParams(),...t}).then(P=>P.data).catch(()=>({})):{},c=p.spatialReference,y={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[p]}),inSR:c.wkid||JSON.stringify(c),outSR:"0:"+e},h=(0,j.default)(a(i.parsedUrl)+"/project",{query:i._getQueryParams(y),...t}).then(P=>P.data).catch(()=>({})),g=(p.xmin+p.xmax)/2,R=(p.ymax-p.ymin)/6,C=p.ymin+R,x=[];for(let P=0;P<5;P++)x.push({x:g,y:C+R*P});const F={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:x}),inSR:c.wkid||JSON.stringify(c),outSR:"0:"+e},S=(0,j.default)(a(i.parsedUrl)+"/project",{query:i._getQueryParams(F),...t}).then(P=>P.data).catch(()=>({})),b=yield Promise.all([d,h,S]);let V=b[0].ipxf;if(null==V){const P=u.geodataXform?.xf_0;"topup"===P?.name?.toLowerCase()&&6===P?.coefficients?.length&&(V={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:P.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const O=we.Z.fromJSON(b[1]&&b[1].geometries&&b[1].geometries[0]);O&&(O.spatialReference=new ee.Z({wkid:0,imageCoordinateSystem:u}));const M=b[2].geometries?b[2].geometries.filter(P=>null!=P&&null!=P.x&&null!=P.y&&"NaN"!==P.x&&"NaN"!==P.y):[],re=M.length;if(re<3)return{ics:u,icsToPixelTransform:V,icsExtent:O,northDirection:null};let ue=0,Fe=0,fe=0,ie=0;for(let P=0;PM[0].x,gt=M[4].y>M[0].y;return W===1/0?ve=gt?90:270:0===W?ve=ht?0:180:W>0?ve=ht?180*Math.atan(W)/Math.PI:180*Math.atan(W)/Math.PI+180:W<0&&(ve=gt?180+180*Math.atan(W)/Math.PI:360+180*Math.atan(W)/Math.PI),{ics:u,icsToPixelTransform:V,icsExtent:O,northDirection:ve}})()}generateRasterInfo(e,t){var i=this;return(0,w.Z)(function*(){if(i.serviceRasterInfo&&(!e||"none"===e.functionName?.toLowerCase()||i._isVectorFieldResampleFunction(e)))return i.serviceRasterInfo;const o=function cr(n){if(!n)return null;const r=JSON.stringify(n).match(/"rasterFunction":"(.*?")/gi)?.map(a=>a.replace('"rasterFunction":"',"").replace('"',""));return r?r.join("/"):null}(e);if(!o)return null;if(i._functionRasterInfos[o])return i._functionRasterInfos[o];const u=i._generateRasterInfo(e,t);i._functionRasterInfos[o]=u;try{return yield u}catch{return i._functionRasterInfos[o]=null,null}})()}getExportImageServiceParameters(e,t,i,o){const u=ct((e=e.clone().shiftCentralMeridian()).spatialReference,a(this.parsedUrl));this.pixelType!==this.serviceRasterInfo?.pixelType&&(this.exportImageServiceParameters.pixelType=this.pixelType);const p=this.exportImageServiceParameters.toJSON(),{bandIds:d,noData:c}=p;let{renderingRule:y}=p;const h=this.renderingRule?.rasterFunctionDefinition,v=!this.renderer||"raster-stretch"===this.renderer.type;if(d?.length&&this._hasRenderingRule(this.renderingRule)&&!h&&v){const x={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:d}};if("Stretch"===y.rasterFunction)x.rasterFunctionArguments.Raster=y.rasterFunctionArguments.Raster,y.rasterFunctionArguments.Raster=x;else if("Colormap"===y.rasterFunction){const F=y.rasterFunctionArguments.Raster;"Stretch"===F?.rasterFunction?(x.rasterFunctionArguments.Raster=F.rasterFunctionArguments.Raster,F.rasterFunctionArguments.Raster=x):(x.rasterFunctionArguments.Raster=F,y.rasterFunctionArguments.Raster=x)}else x.rasterFunctionArguments.Raster=y,y=x;p.bandIds=void 0}else p.bandIds=d?.join(",");c instanceof Array&&c.length>0&&(p.noData=c.join(","));const g=this._serviceSupportsMosaicRule?this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,o):null;p.mosaicRule=(0,f.pC)(g)?JSON.stringify(g):null;const{multidimensionalSubset:R}=this;if(R&&(0,f.pC)(g)&&g.multidimensionalDefinition&&(0,Se.nb)(g.multidimensionalDefinition,R,!0))return null;p.renderingRule=this._getRenderingRuleString(I.Z.fromJSON(y));const C={};if(o){const{start:x,end:F}=o.toJSON();let S;if(x&&F&&x===F?(C.time=""+x,S=[x]):null==x&&null==F||(C.time=`${x??"null"},${F??"null"}`,S=null!=x&&null!=F?[x,F]:[x??F]),S&&R){const b=R.dimensions.find(({name:O})=>"StdTime"===O);if(2===S.length&&b.extent.length){if(S[0]=Math.max(S[0],b.extent[0]),S[1]=Math.min(S[1],b.extent[1]??b.extent[0]),S[1]!b.toLowerCase().includes(v)),i.version>=10.4)){const b=e.outFields.filter(O=>O.toLowerCase().includes(v)&&O.length>v.length).map(O=>{const M=O.slice(v.length+1);return[i._updateRenderingRulesFunctionName(M,g),M]});y=b.map(O=>new I.Z({functionName:O[0]})),h=b.map(O=>O[1]);const{renderingRule:V}=i;0===y.length?V?.functionName?(y.push(V),h.push(V.functionName)):y=null:V?.functionName&&!y.some(O=>O.functionName===V.functionName)&&(y.push(V),h.push(V.functionName))}const R=(0,f.Wi)(e.outSpatialReference)||e.outSpatialReference.equals(i.spatialReference),C=e.timeExtent||i.timeExtent,x=i._combineMosaicRuleWithTimeExtent(i.exportImageServiceParameters.mosaicRule,C),F=i._getQueryParams({geometry:e.geometry,timeExtent:C,mosaicRule:x,renderingRule:i.version<10.4?i.renderingRule:null,renderingRules:y,pixelSize:o,returnCatalogItems:c,returnGeometry:R,raster:i.raster,maxItemCount:p?1:null});delete F.f;const S=new yt(F);try{yield i.generateRasterInfo(i.renderingRule);const b=yield pt(i.url,S,{signal:t?.signal,query:{...i.customParameters}}),V=e.outFields,O=null!=b.value&&b.value.toLowerCase().includes("nodata");if(!c||R||!b?.catalogItems?.features.length||!d&&O)return i._processVisibleRastersResponse(b,{returnDomainValues:u,templateRRFunctionNames:h,showNoDataRecords:d,templateFields:V});const M=i.objectIdField||"ObjectId",re=b.catalogItems?.features??[],ue=re.map(ie=>ie.attributes?.[M]),Fe=new Qe.Z({objectIds:ue,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[M]}),fe=yield i.queryRasters(Fe);return fe?.features?.length&&fe.features.forEach(ie=>{re.forEach(W=>{W.attributes[M]===ie.attributes[M]&&(W.geometry=new er.Z(ie.geometry),(0,f.pC)(e.outSpatialReference)&&(W.geometry.spatialReference=e.outSpatialReference))})}),i._processVisibleRastersResponse(b,{returnDomainValues:u,templateRRFunctionNames:h,showNoDataRecords:d,templateFields:V})}catch{throw new U.Z("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}})()}fetchVariableStatisticsHistograms(e,t){var i=this;return(0,w.Z)(function*(){const o=(0,j.default)(a(i.parsedUrl)+"/statistics",{query:i._getQueryParams({variable:e}),signal:t}).then(d=>d.data?.statistics),u=(0,j.default)(a(i.parsedUrl)+"/histograms",{query:i._getQueryParams({variable:e}),signal:t}).then(d=>d.data?.histograms),p=yield Promise.all([o,u]);return p[0]&&p[0].forEach(d=>{d.avg=d.mean,d.stddev=d.standardDeviation}),{statistics:p[0]||null,histograms:p[1]||null}})()}createFlowMesh(e,t){var i=this;return(0,w.Z)(function*(){const o=i._rasterJobHandler.instance;return o?o.createFlowMesh(e,t):(0,lr.GE)(e.meshType,e.simulationSettings,e.flowData,(0,f.pC)(t.signal)?t.signal:(new AbortController).signal)})()}getMultidimensionalSubsetVariables(e){return(0,Se.jj)(this.multidimensionalSubset,e??this.multidimensionalInfo)}_fetchService(e){var t=this;return(0,w.Z)(function*(){yield t._fetchServiceInfo(e),t.rasterInfo||(t.rasterInfo=t.serviceRasterInfo);const i=t.sourceJSON,o=(0,f.pC)(t.serviceRasterInfo)?Promise.resolve(t.serviceRasterInfo):(0,mt.g)(a(t.parsedUrl),i,{signal:e,query:t._getQueryParams()}).then(d=>(t._set("serviceRasterInfo",d),d)),u=t._hasRenderingRule(t.renderingRule)?t.generateRasterInfo(t.renderingRule,{signal:e}):null,p=t._getRasterFunctionInfos();return Promise.all([o,u,p]).then(d=>{t._set("rasterInfo",d[1]?d[1]:d[0]),d[2]&&t._set("rasterFunctionInfos",d[2]),t.renderer&&!t._isSupportedRenderer(t.renderer)&&(t._set("renderer",null),tt.Z.getLogger(t.declaredClass).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),t._set("renderer",t._configRenderer(t.renderer)),t.addHandles([(0,vt.YP)(()=>t.renderingRule,y=>{(t.renderer||t.symbolizer||t.popupEnabled&&t.popupTemplate)&&t.generateRasterInfo(y).then(h=>{h&&(t.rasterInfo=h)})})]);const{serviceRasterInfo:c}=t;c&&(0,f.pC)(c.multidimensionalInfo)&&t._updateMultidimensionalDefinition(c)})})()}_combineMosaicRuleWithTimeExtent(e,t){const i=this.timeInfo;if((0,f.Wi)(e)||(0,f.Wi)(this.multidimensionalInfo)||(0,f.Wi)(t)||(0,f.Wi)(i?.startField))return e;const{startField:o}=i,u=this.multidimensionalInfo.variables.some(g=>g.dimensions.some(R=>R.name===o))?o:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(g=>g.dimensionName!==u),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const p=e.multidimensionalDefinition.filter(g=>g.dimensionName===u),d=(0,f.pC)(t.start)?t.start.getTime():null,c=(0,f.pC)(t.end)?t.end.getTime():null,y=null==d||null==c||d===c,h=y?[d||c]:[[d,c]],v=this.version>=10.8;if(p.length)p.forEach(g=>{g.dimensionName===u&&(v?(g.dimensionName=null,g.isSlice=!1,g.values=[]):(g.isSlice=y,g.values=h))});else if(!v){const g=e.multidimensionalDefinition.filter(R=>null!=R.variableName&&null==R.dimensionName);g.length?g.forEach(R=>{R.dimensionName=u,R.isSlice=y,R.values=h}):e.multidimensionalDefinition.push(new De.Z({variableName:"",dimensionName:u,isSlice:y,values:h}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return(0,f.Wi)(e)?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(t=>!(!t.variableName&&!t.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}_prepareForQuery(e,t){var i=this;return(0,w.Z)(function*(){if(!(yield i._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new U.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=(0,f.pC)(e)?(0,A.TJ)(Qe.Z,e):i.createQuery(),t=i._getRequestOptions(t),i.raster&&(t.query={...t.query,raster:i.raster}),{query:e,requestOptions:t}})()}_initJobHandler(){var e=this;return(0,w.Z)(function*(){if(null!=e._rasterJobHandler.connectionPromise)return e._rasterJobHandler.connectionPromise;const t=new Jt.Z;e._rasterJobHandler.connectionPromise=t.initialize().then(()=>{e._rasterJobHandler.instance=t},()=>{}),yield e._rasterJobHandler.connectionPromise})()}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null}_isSupportedRenderer(e){const{rasterInfo:t,renderingRule:i}=this;return"unique-value"===e.type&&this._hasRenderingRule(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,Ce.U0)(t).includes(e.type)}_fetchCapabilities(e){var t=this;return(0,w.Z)(function*(){return t.capabilities||(yield t._fetchServiceInfo(e)),t.capabilities})()}_fetchServiceInfo(e){var t=this;return(0,w.Z)(function*(){let i=t.sourceJSON;if(!i){const{data:o,ssl:u}=yield(0,j.default)(a(t.parsedUrl),{query:t._getQueryParams(),signal:e});i=o,t.sourceJSON=i,u&&(t.url=t.url.replace(/^http:/i,"https:"))}if(i.capabilities?.toLowerCase().split(",").map(o=>o.trim()).indexOf("tilesonly")>-1)throw new U.Z("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");t.read(i,{origin:"service",url:t.parsedUrl})})()}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){return!!e&&(this._isMosaicDataset(e)||e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1))}_isVectorFieldResampleFunction(e){if((0,f.Wi)(e))return!1;const{functionName:t,functionArguments:i}=e,o="resample"===t?.toLowerCase(),u=i?.ResampleType||i?.resampleType;return o&&(7===u||10===u)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){if(!this._isPicture()&&!this.pixelFilter||this._isVectorDataSet()){if(!this.bandIds&&this.rasterInfo&&this.rasterInfo.bandCount>=3){const i=(0,Ce.YD)(this.rasterInfo);!i||3===this.rasterInfo.bandCount&&0===i[0]&&1===i[1]&&2===i[2]||(this.bandIds=i)}e||(e=(0,Ce.Ob)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.renderingRule?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}));const t=(0,Ce.ol)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=t,this.symbolizer.rasterInfo=this.rasterInfo):this.symbolizer=new zt.Z({rendererJSON:t,rasterInfo:this.rasterInfo}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:(0,f.pC)(e.pixelBlock)?e.pixelBlock.clone():null}}_getQueryParams(e){e&&(0,f.pC)(e.renderingRule)&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler.instance?this._rasterJobHandler.instance.decode({data:e,options:t}):(0,Ve.J)(e,t,i)}_getRasterFunctionInfos(e){var t=this;return(0,w.Z)(function*(){const i=t.sourceJSON.rasterFunctionInfos;return t.loaded?i:i&&t.version>=10.3?1===i.length&&"none"===i[0].name.toLowerCase()?i:(yield(0,j.default)(a(t.parsedUrl)+"/rasterFunctionInfos",{query:t._getQueryParams(),signal:e})).data?.rasterFunctionInfos:null})()}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}_requestArrayBuffer(e){var t=this;return(0,w.Z)(function*(){const{imageProps:i,requestAsImageElement:o,signal:u}=e;if(o&&t._canRequestImageElement(i.format))return{imageOrCanvasElement:(yield(0,j.default)(a(t.parsedUrl)+"/exportImage",{responseType:"image",query:t._getQueryParams({f:"image",...t.refreshParameters,...e.imageServiceParameters}),signal:u})).data,params:i};const p=t._initJobHandler(),d=(0,j.default)(a(t.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:t._getQueryParams({f:"image",...e.imageServiceParameters}),signal:u}),c=(yield Promise.all([d,p]))[0].data,y=i.format||"jpgpng";let h=y;if("bsq"!==h&&"bip"!==h&&(h=(0,Ve.y)(c)),!h)throw new U.Z("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(c)));const v={signal:u};return{pixelData:{pixelBlock:yield"gif"===y||"bmp"===y||y.includes("png")&&("png"===h||"jpg"===h)?(0,Ve.J)(c,{useCanvas:!0,...i},v):t._decodePixelBlock(c,{width:i.width,height:i.height,planes:null,pixelType:null,noDataValue:null,format:y},v),extent:i.extent},params:i}})()}_generateRasterInfo(e,t){const i={...t,query:this._getQueryParams()};return(0,mt.N)(a(this.parsedUrl),e,i)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;const t=(0,Se.Tj)(e,{multidimensionalSubset:this.multidimensionalSubset});if((0,f.pC)(t)&&t.length>0){this.mosaicRule=this.mosaicRule||new G;const i=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.renderingRule&&"none"!==this.renderingRule.functionName?.toLowerCase()&&t.forEach(o=>o.variableName=""),(!i||i&&i.length<=0)&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const i=e.value,{templateRRFunctionNames:o,showNoDataRecords:u,returnDomainValues:p,templateFields:d}=t,c=e.processedValues;let y=e.catalogItems&&e.catalogItems.features,h=e.properties&&e.properties.Values&&e.properties.Values.map(S=>S.replace(/ /gi,", "))||[];const v=this.objectIdField||"ObjectId",g="string"==typeof i&&i.toLowerCase().includes("nodata"),R=[];if(i&&!y&&!g){const S={};S[v]=0,h=[i],y=[new ft.Z(this.fullExtent,null,S)]}if(!y)return[];let C,x,F;this._updateResponseFieldNames(y,d),g&&!u&&(y=[]);for(let S=0;S0&&o&&o.length>0&&o.includes(this.renderingRule.functionName)?c[o.indexOf(this.renderingRule.functionName)]:i,"nodata"===x.toLowerCase()&&!u)continue;const V="Raster.ServicePixelValue";C.attributes["Raster.ItemPixelValue"]=x,C.attributes[V]=F,this._updateFeatureWithMagDirValues(C,x);const O=this.fields&&this.fields.length>0;let M=this.renderingRule&&(0,f.pC)(this.serviceRasterInfo?.attributeTable)?O?x:i:F;this.renderingRule||(M=O?x:i),this._updateFeatureWithRasterAttributeTableValues(C,M)}if(C.sourceLayer=C.layer=this,p&&this._updateFeatureWithDomainValues(C),o&&c&&o.length===c.length)for(let b=0;by.name).filter(y=>"value"===y.toLowerCase()),d=p&&p[0];if(!d)return;const c=o.filter(y=>y.attributes[d]===(null!=t?parseInt(t,10):null));c&&c[0]&&u.forEach(y=>{e.attributes[this._rasterAttributeTableFieldPrefix+y.name]=c[0].attributes[y.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const i=t.split(/,\s*/).map(c=>parseFloat(c)),o=i.map(c=>[c]),u=i.map(c=>({minValue:c,maxValue:c,noDataValue:null})),p=new je.Z({height:1,width:1,pixelType:"f32",pixels:o,statistics:u});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:p,extent:new we.Z(0,0,0,0,this.spatialReference)});const d="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[p.pixels[0][0],p.pixels[1][0]]:(0,Lt.Tg)([p.pixels[0][0],p.pixels[1][0]]);e.attributes["Raster.Magnitude"]=d[0],e.attributes["Raster.Direction"]=d[1]}_updateFeatureWithDomainValues(e){(this.fields&&this.fields.filter(i=>i.domain&&"coded-value"===i.domain.type))?.forEach(i=>{const o=e.attributes[i.name];if(null!=o){const u=i.domain.codedValues.find(p=>p.code===o);u&&(e.attributes[i.name]=u.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const i=this.fieldsIndex;(0,f.Wi)(i)||e.forEach(o=>{if(o&&o.attributes)for(const u of t){const p=i.get(u)?.name;p&&p!==u&&(o.attributes[u]=o.attributes[p],delete o.attributes[p])}})}_getRenderingRuleString(e){if(this._hasRenderingRule(e)){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRenderingRule(e){return null!=e&&null!=e.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const i=e.toLowerCase().replace(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e&&e.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map(h=>h.trim()):["image","catalog"],{currentVersion:i,advancedQueryCapabilities:o,maxRecordCount:u}=e,p=t.includes("image"),d="esriImageServiceDataTypeElevation"===e.serviceDataType,c=!!(e.spatialReference||e.extent&&e.extent.spatialReference),y=t.includes("edit");return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:p,supportsExportImage:p,supportsIdentify:p,supportsMeasure:t.includes("mensuration")&&c,supportsDownload:t.includes("download"),supportsQuery:t.includes("catalog")&&e.fields&&e.fields.length>0,supportsGetSamples:i>=10.2&&p,supportsProject:i>=10.3&&p,supportsComputeStatisticsHistograms:i>=10.4&&p,supportsQueryBoundary:i>=10.6&&p,supportsCalculateVolume:i>=10.7&&d,supportsComputePixelLocation:i>=10.7&&t.includes("catalog"),supportsComputeAngles:i>=10.91,supportsAdd:y,supportsDelete:y,supportsEditing:y,supportsUpdate:y,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryTopFeatures:!1},query:{maxRecordCount:u,maxRecordCountFactor:void 0,supportsStatistics:!!o?.supportsStatistics,supportsOrderBy:!!o?.supportsOrderBy,supportsDistinct:!!o?.supportsDistinct,supportsPagination:!!o?.supportsPagination,supportsStandardizedQueriesOnly:!!o?.useStandardizedQueries,supportsPercentileStatistics:!!o?.supportsPercentileStatistics,supportsCentroid:!!o?.supportsReturningGeometryCentroid,supportsDistance:!!o?.supportsQueryWithDistance,supportsExtent:!!o?.supportsReturningQueryExtent,supportsGeometryProperties:!!o?.supportsReturningGeometryProperties,supportsHavingClause:!!o?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:!1,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!o?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}}}};function a(e){return e?.path??""}return(0,s._)([(0,l.Cb)()],r.prototype,"_functionRasterInfos",void 0),(0,s._)([(0,l.Cb)()],r.prototype,"_rasterJobHandler",void 0),(0,s._)([(0,l.Cb)()],r.prototype,"_cachedRendererJson",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"_serviceSupportsMosaicRule",void 0),(0,s._)([(0,E.r)("_serviceSupportsMosaicRule",["currentVersion","fields"])],r.prototype,"readServiceSupportsMosaicRule",null),(0,s._)([(0,l.Cb)()],r.prototype,"_rasterAttributeTableFieldPrefix",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"_rasterFunctionNamesIndex",null),(0,s._)([(0,l.Cb)()],r.prototype,"adjustAspectRatio",void 0),(0,s._)([(0,l.Cb)({type:[A.z8],json:{write:!0}})],r.prototype,"bandIds",void 0),(0,s._)([(0,E.r)("bandIds")],r.prototype,"readBandIds",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0),(0,s._)([(0,E.r)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],r.prototype,"readCapabilities",null),(0,s._)([(0,l.Cb)({type:Number})],r.prototype,"compressionQuality",void 0),(0,s._)([(0,T.c)("compressionQuality")],r.prototype,"writeCompressionQuality",null),(0,s._)([(0,l.Cb)({type:Number})],r.prototype,"compressionTolerance",void 0),(0,s._)([(0,T.c)("compressionTolerance")],r.prototype,"writeCompressionTolerance",null),(0,s._)([(0,l.Cb)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,s._)([(0,l.Cb)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],r.prototype,"defaultMosaicRule",void 0),(0,s._)([(0,E.r)("defaultMosaicRule",["defaultMosaicMethod"])],r.prototype,"readDefaultMosaicRule",null),(0,s._)([(0,l.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0),(0,s._)([(0,l.Cb)({readOnly:!0,constructOnly:!0})],r.prototype,"exportImageServiceParameters",void 0),(0,s._)([(0,l.Cb)()],r.prototype,"rasterInfo",void 0),(0,s._)([(0,l.Cb)({readOnly:!0,type:[k.Z]})],r.prototype,"fields",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"fieldsIndex",null),(0,s._)([(0,l.Cb)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"],json:{write:!0}})],r.prototype,"format",null),(0,s._)([(0,E.r)("service","format",["serviceDataType"])],r.prototype,"readFormat",null),(0,s._)([(0,l.Cb)({type:we.Z})],r.prototype,"fullExtent",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"hasMultidimensions",void 0),(0,s._)([(0,l.Cb)({json:{read:{source:"maxImageHeight"}}})],r.prototype,"imageMaxHeight",void 0),(0,s._)([(0,l.Cb)({json:{read:{source:"maxImageWidth"}}})],r.prototype,"imageMaxWidth",void 0),(0,s._)([(0,l.Cb)({type:String,json:{type:H.c.jsonValues,read:H.c.read,write:H.c.write}})],r.prototype,"interpolation",void 0),(0,s._)([(0,l.Cb)()],r.prototype,"minScale",void 0),(0,s._)([(0,E.r)("service","minScale")],r.prototype,"readMinScale",null),(0,s._)([(0,l.Cb)()],r.prototype,"maxScale",void 0),(0,s._)([(0,E.r)("service","maxScale")],r.prototype,"readMaxScale",null),(0,s._)([(0,l.Cb)({type:G})],r.prototype,"mosaicRule",null),(0,s._)([(0,E.r)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],r.prototype,"readMosaicRule",null),(0,s._)([(0,T.c)("mosaicRule")],r.prototype,"writeMosaicRule",null),(0,s._)([(0,l.Cb)()],r.prototype,"multidimensionalInfo",null),(0,s._)([(0,l.Cb)({type:Et.Z,json:{write:!0}})],r.prototype,"multidimensionalSubset",void 0),(0,s._)([(0,l.Cb)({json:{type:A.z8}})],r.prototype,"noData",void 0),(0,s._)([(0,T.c)("noData")],r.prototype,"writeNoData",null),(0,s._)([(0,l.Cb)({type:String,json:{type:H.k.jsonValues,read:H.k.read,write:H.k.write}})],r.prototype,"noDataInterpretation",void 0),(0,s._)([(0,l.Cb)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],r.prototype,"objectIdField",void 0),(0,s._)([(0,E.r)("objectIdField")],r.prototype,"readObjectIdField",null),(0,s._)([(0,l.Cb)({})],r.prototype,"geometryType",void 0),(0,s._)([(0,l.Cb)({})],r.prototype,"typeIdField",void 0),(0,s._)([(0,l.Cb)({})],r.prototype,"types",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,s._)([(0,l.Cb)({type:Function})],r.prototype,"pixelFilter",void 0),(0,s._)([(0,l.Cb)()],r.prototype,"raster",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"sourceType",void 0),(0,s._)([(0,E.r)("sourceType",["serviceSourceType","fields"])],r.prototype,"readSourceType",null),(0,s._)([(0,l.Cb)()],r.prototype,"viewId",void 0),(0,s._)([(0,l.Cb)({types:Pe.dr,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:Pe.FK,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],r.prototype,"renderer",null),(0,s._)([(0,E.r)("renderer")],r.prototype,"readRenderer",null),(0,s._)([(0,T.c)("renderer")],r.prototype,"writeRenderer",null),(0,s._)([(0,l.Cb)()],r.prototype,"symbolizer",void 0),(0,s._)([(0,l.Cb)(Re.Oh)],r.prototype,"opacity",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"rasterFields",null),(0,s._)([(0,l.Cb)({constructOnly:!0})],r.prototype,"rasterFunctionInfos",void 0),(0,s._)([(0,l.Cb)({type:I.Z})],r.prototype,"renderingRule",null),(0,s._)([(0,E.r)("renderingRule",["renderingRule","rasterFunctionInfos"])],r.prototype,"readRenderingRule",null),(0,s._)([(0,T.c)("renderingRule")],r.prototype,"writeRenderingRule",null),(0,s._)([(0,l.Cb)()],r.prototype,"serviceDataType",void 0),(0,s._)([(0,l.Cb)({readOnly:!0,type:ee.Z})],r.prototype,"spatialReference",void 0),(0,s._)([(0,E.r)("spatialReference",["spatialReference","extent"])],r.prototype,"readSpatialReference",null),(0,s._)([(0,l.Cb)({json:{type:Ye.jsonValues}})],r.prototype,"pixelType",void 0),(0,s._)([(0,E.r)("pixelType")],r.prototype,"readPixelType",null),(0,s._)([(0,T.c)("pixelType")],r.prototype,"writePixelType",null),(0,s._)([(0,l.Cb)({constructOnly:!0,type:at.Z})],r.prototype,"serviceRasterInfo",void 0),(0,s._)([(0,l.Cb)()],r.prototype,"sourceJSON",void 0),(0,s._)([(0,l.Cb)(Re.HQ)],r.prototype,"url",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],r.prototype,"version",void 0),(0,s._)([(0,E.r)("version",["currentVersion","fields","timeInfo"])],r.prototype,"readVersion",null),r=(0,s._)([(0,_.j)("esri.layers.mixins.ArcGISImageService")],r),r};var dr=m(65088),yr=m(552),hr=m(50107),gr=m(49286),fr=m(6647),vr=m(30346),Rr=m(99555),br=m(97941),Sr=m(5676),Cr=m(49430);let B=class extends((0,yr.h)((0,br.n)((0,Rr.M)((0,gr.q)((0,fr.I)(mr((0,vr.Q)((0,hr.N)((0,dr.Y)((0,ce.R)(de.Z))))))))))){constructor(...n){super(...n),this.legendEnabled=!0,this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery"}normalizeCtorArgs(n,r){return"string"==typeof n?{url:n,...r}:n}load(n){const r=(0,f.pC)(n)?n.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},n).catch(me.r9).then(()=>this._fetchService(r))),Promise.resolve(this)}writeOperationalLayerType(n,r,a){r[a]="vector-field"===this.renderer?.type?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(n){const r=this.rasterFields,a=this.title,e=new Set;let t=!1,i=!1;this.capabilities&&(t=this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0,i="esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType);const o=new Set;t&&o.add("raster.itempixelvalue");for(const u of r){const p=u.name.toLowerCase();o.has(p)||p.includes("raster.servicepixelvalue.")||e.add(u.name)}return i&&e.add("raster.magnitude").add("raster.direction"),(0,Cr.eZ)({fields:r,title:a},{...n,visibleFieldNames:e})}queryFeatures(n,r){return this.queryRasters(n,r).then(a=>{if(a?.features)for(const e of a.features)e.layer=e.sourceLayer=this;return a})}queryFeatureCount(n,r){return this.queryRasterCount(n,r)}redraw(){this.emit("redraw")}serviceSupportsSpatialReference(n){return(0,Sr.D)(this,n)}};(0,s._)([(0,l.Cb)(Re.rn)],B.prototype,"legendEnabled",void 0),(0,s._)([(0,l.Cb)({type:["show","hide"]})],B.prototype,"listMode",void 0),(0,s._)([(0,l.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],B.prototype,"isReference",void 0),(0,s._)([(0,l.Cb)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],B.prototype,"operationalLayerType",void 0),(0,s._)([(0,T.c)("web-map","operationalLayerType")],B.prototype,"writeOperationalLayerType",null),(0,s._)([(0,l.Cb)(Re.C_)],B.prototype,"popupEnabled",void 0),(0,s._)([(0,l.Cb)({type:pe.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],B.prototype,"popupTemplate",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],B.prototype,"type",void 0),B=(0,s._)([(0,_.j)("esri.layers.ImageryLayer")],B);const xr=B},90463:(ke,ne,m)=>{m.d(ne,{P:()=>me});var s=m(15861),pe=m(2618),f=m(20477),ce=m(96854);function me(se,A,_){return l.apply(this,arguments)}function l(){return(l=(0,s.Z)(function*(se,A,_){const T=(0,pe.en)(se);return(0,f.executeQueryForCount)(T,ce.Z.from(A),{..._}).then(de=>de.data.count)})).apply(this,arguments)}},24865:(ke,ne,m)=>{m.d(ne,{G:()=>me});var s=m(15861),pe=m(2618),f=m(20477),ce=m(96854);function me(se,A,_){return l.apply(this,arguments)}function l(){return(l=(0,s.Z)(function*(se,A,_){const T=(0,pe.en)(se);return(0,f.executeQueryForIds)(T,ce.Z.from(A),{..._}).then(de=>de.data.objectIds)})).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/926.500bb630b1d29ab8.js b/apps/n/porrtal-io-app/public/angular/926.500bb630b1d29ab8.js new file mode 100644 index 00000000..7e0e4e48 --- /dev/null +++ b/apps/n/porrtal-io-app/public/angular/926.500bb630b1d29ab8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[926],{3926:(c,d,n)=>{n.r(d),n.d(d,{SamplesComponent:()=>l});var e=n(6895),s=n(3286),p=n(6485),m=n(9266),t=n(4650);const i=[{displayText:"Create Account",displayIcon:"account_box",componentName:"AccountCreateComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"Account {accountId}",displayText:"Account {accountId}",displayIcon:"account_box",componentName:"AccountDetailComponent",entityType:"account",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"Billing {accountId}",displayText:"Billing {accountId}",displayIcon:"account_box",componentName:"AccountBillingHistoryComponent",entityType:"account",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"AccountNav",launchAtStartup:!0,displayText:"Account Navigation",paneType:"nav",displayIcon:"account_box",userInfo:[{viewId:"info-markdown",state:{displayText:"User Docs",displayIcon:"menu_book",contentUrl:"https://raw.githubusercontent.com/datumgeek/jersey-rest-test03/master/README.md"}},{viewId:"info-youtube",state:{displayText:"User Video",displayIcon:"videocam",videoId:"Z76QlSpYcck"}}],devInfo:[{viewId:"info-markdown",state:{displayText:"Dev Docs",displayIcon:"menu_book",contentUrl:"https://raw.githubusercontent.com/datumgeek/jersey-rest-test03/master/README.md"}},{viewId:"info-youtube",state:{displayText:"Dev Video",displayIcon:"videocam",videoId:"Z76QlSpYcck"}}],componentName:"AccountNavComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"AccountSearch",launchAtStartup:!0,displayText:"Account",paneType:"search",displayIcon:"account_box",componentName:"AccountSearchComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Create Appointment",displayIcon:"calendar_month",componentName:"AppointmentCreateComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"Appointment {appointmentId}",displayText:"Appointment {appointmentId}",displayIcon:"calendar_month",componentName:"AppointmentDetailComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"AppointmentLocationMap {appointmentId}",displayText:"Map {appointmentId}",displayIcon:"calendar_month",componentName:"AppointmentLocationMapComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"AppointmentNav",launchAtStartup:!0,displayText:"Appointment Navigation",paneType:"nav",displayIcon:"calendar_month",componentName:"AppointmentNavComponent",componentModule:()=>(console.log("appointment nav component module function called..."),Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774)))},{key:"AppointmentSearch",launchAtStartup:!0,displayText:"Appointment",paneType:"search",displayIcon:"calendar_month",componentName:"AppointmentSearchComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"AppointmentNav",launchAtStartup:!0,displayText:"Appointment Navigation",paneType:"nav",displayIcon:"calendar_month",componentName:"AppointmentNavComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{key:"VizNav",launchAtStartup:!0,displayText:"Viz Demos",paneType:"nav",displayIcon:"map",componentName:"VizNavComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Buildings",displayIcon:"office",componentName:"BuildingSceneWithQueryComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Earth",displayIcon:"globe",componentName:"DigitalElevationMapComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Hurricane",displayIcon:"git-commit",componentName:"HurricaneMapComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Earthquake",displayIcon:"inner-join",componentName:"EarthquakeMapComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Collapse Tree Chart",displayIcon:"diagram-tree",componentName:"CollapsibleTreeComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Bar Chart",displayIcon:"diagram-tree",componentName:"HierarchicalBarChartComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Icicle Chart",displayIcon:"diagram-tree",componentName:"ZoomableIcicleComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Sunburst Chart",displayIcon:"diagram-tree",componentName:"ZoomableSunburstComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Treemap Chart",displayIcon:"diagram-tree",componentName:"ZoomableTreemapComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"Circle Pack Chart",displayIcon:"diagram-tree",componentName:"ZoomableCirclePackComponent",componentModule:()=>Promise.all([n.e(439),n.e(774)]).then(n.bind(n,9774))},{displayText:"YouTube Video",displayIcon:"videocam",componentName:"YoutubePlayerComponent",componentModule:()=>n.e(487).then(n.bind(n,9487))},{key:"md{id}",displayText:"Markdown Viewer",displayIcon:"book",componentName:"MarkdownViewerComponent",componentModule:()=>n.e(487).then(n.bind(n,9487))},{viewId:"info-markdown",displayText:"{displayText}",displayIcon:"{displayIcon}",paneType:"right",componentName:"MarkdownViewerComponent",componentModule:()=>n.e(487).then(n.bind(n,9487))},{viewId:"info-youtube",displayText:"{displayText}",displayIcon:"{displayIcon}",paneType:"right",componentName:"YoutubePlayerComponent",componentModule:()=>n.e(487).then(n.bind(n,9487))}];class l{constructor(a){this.shellStateService=a,this.reactUiLibrary=(0,m.WG)(),this.angularUiLibrary=(0,m.Cn)(),this.bannerData={...m.s6,displayText:`samples ${this.angularUiLibrary?"(":""}${this.angularUiLibrary}${this.angularUiLibrary?")":""}`},i.forEach(o=>a.dispatch({type:"registerView",view:o})),a.dispatch({type:"launchStartupViews"})}static#n=this.\u0275fac=function(o){return new(o||l)(t.Y36(s.vv))};static#o=this.\u0275cmp=t.Xpm({type:l,selectors:[["porrtal-workspace-samples"]],standalone:!0,features:[t.jDz],decls:1,vars:1,consts:[[3,"bannerData"]],template:function(o,y){1&o&&t._UZ(0,"porrtal-shell-layout",0),2&o&&t.Q6J("bannerData",y.bannerData)},dependencies:[e.ez,p.Dg],changeDetection:0})}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9298.5327074c7454d23f.js b/apps/n/porrtal-io-app/public/angular/9298.5327074c7454d23f.js deleted file mode 100644 index 33c7d494..00000000 --- a/apps/n/porrtal-io-app/public/angular/9298.5327074c7454d23f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9298],{99298:(a,E,_)=>{_.r(E),_.d(E,{PointRendererDrawParameters:()=>s.a,PointRendererPassParameters:()=>s.P,build:()=>s.c,getMaxPointSizeScreenspace:()=>s.g}),_(21286),_(28347),_(43703),_(67831),_(99770),_(84161),_(28093),_(5548),_(52382),_(13934),_(78925),_(62952),_(19278),_(32181),_(95285),_(77739),_(17625),_(47205),_(63123),_(22355),_(16396);var s=_(1956)}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9303.87970b5d1247c31f.js b/apps/n/porrtal-io-app/public/angular/9303.87970b5d1247c31f.js deleted file mode 100644 index 2f6b3472..00000000 --- a/apps/n/porrtal-io-app/public/angular/9303.87970b5d1247c31f.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9303],{30750:(Te,ie,l)=>{l.d(ie,{S:()=>U,b:()=>D});var g=l(2166),A=l(69960),d=l(65787),v=l(17625),le=l(22355),ee=l(16396);function D(F){const te=new le.kG;te.extensions.add("GL_OES_standard_derivatives");const{vertex:j,fragment:J,attributes:Z,varyings:z}=te;return(0,g.Sv)(j,F),Z.add(ee.T.POSITION,"vec3"),Z.add(ee.T.UV0,"vec2"),z.add("vUV","vec2"),j.code.add(v.H`void main(void) { -vUV = uv0; -gl_Position = proj * view * vec4(position, 1.0); -}`),J.uniforms.add([new A.N("backgroundColor",L=>L.backgroundColor),new A.N("gridColor",L=>L.gridColor),new d.p("gridWidth",L=>L.gridWidth)]),J.code.add(v.H`void main() { -const float LINE_WIDTH = 1.0; -vec2 uvScaled = vUV * gridWidth; -vec2 gridUV = (fract(uvScaled + 0.5) - 0.5) / (LINE_WIDTH * fwidth(uvScaled)); -vec2 grid = (1.0 - step(0.5, gridUV)) * step(-0.5, gridUV); -grid.x *= step(0.5, uvScaled.x) * step(uvScaled.x, gridWidth - 0.5); -grid.y *= step(0.5, uvScaled.y) * step(uvScaled.y, gridWidth - 0.5); -float gridFade = max(grid.x, grid.y); -float gridAlpha = gridColor.a * gridFade; -gl_FragColor = -vec4(backgroundColor.rgb * backgroundColor.a, backgroundColor.a) * (1.0 - gridAlpha) + -vec4(gridColor.rgb, 1.0) * gridAlpha; -}`),te}const U=Object.freeze(Object.defineProperty({__proto__:null,build:D},Symbol.toStringTag,{value:"Module"}))},40405:(Te,ie,l)=>{l.d(ie,{B:()=>S});var g=l(15861),A=l(22558),d=l(21726),v=l(35948),le=l(34117),ee=l(31283),D=l(77712);function U(p){return j[function F(p){return p instanceof Blob?p.type:function te(p){const b=(0,d.Ml)(p);return z[b]||J}(p.url)}(p)]||Z}const j={},J="text/plain",Z=j[J],z={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const p in z)j[z[p]]=p;var L=l(29840);function S(p){const b=p?.origins??[void 0];return(s,m)=>{const I=function oe(p,b,s){if("resource"===p?.type)return function q(p,b,s){const m=(0,le.VZ)(b,s);return{type:String,read:(I,B,_)=>{const T=(0,L.r)(I,B,_);return m.type===String?T:"function"==typeof m.type?new m.type({url:T}):void 0},write:{writer(I,B,_,T){if(!T||!T.resources)return"string"==typeof I?void(B[_]=(0,L.t)(I,T)):void(B[_]=I.write({},T));const pe=function he(p){return null==p?null:"string"==typeof p?p:p.url}(I),h=(0,L.t)(pe,{...T,verifyItemRelativeUrls:T&&T.verifyItemRelativeUrls?{writtenUrls:T.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},L.M.NO),W=m.type!==String&&(!(0,A.l)(this)||T&&T.origin&&this.originIdOf(s)>(0,ee.M9)(T.origin)),ae={object:this,propertyName:s,value:I,targetUrl:h,dest:B,targetPropertyName:_,context:T,params:p};T&&T.portalItem&&h&&!(0,d.YP)(h)?W?function G(p){const{context:b,targetUrl:s,params:m,value:I,dest:B,targetPropertyName:_}=p;if(!b.portalItem)return;const T=b.portalItem.resourceFromPath(s),pe=We(I,s,b),h=U(pe),W=(0,d.Ml)(T.path),ae=m?.compress??!1;h===W?(b.resources&&_e({...p,resource:T,content:pe,compress:ae,updates:b.resources.toUpdate}),B[_]=s):Ve(p)}(ae):function y({context:p,targetUrl:b,dest:s,targetPropertyName:m}){p.portalItem&&p.resources&&(p.resources.toKeep.push({resource:p.portalItem.resourceFromPath(b),compress:!1}),s[m]=b)}(ae):T&&T.portalItem&&(null==h||null!=(0,L.i)(h)||(0,d.jc)(h)||W)?Ve(ae):B[_]=h}}}}(p,b,s);switch(p?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:m,write:I}=L.a;return{read:m,write:I}}}}(p,s,m);for(const B of b){const _=(0,D.CJ)(s,B,m);for(const T in I)_[T]=I[T]}}}function Ve(p){const{targetUrl:b,params:s,value:m,context:I,dest:B,targetPropertyName:_}=p;if(!I.portalItem)return;const T=(0,L.p)(b),pe=T?.filename??(0,v.D)(),h=s?.prefix??T?.prefix,W=We(m,b,I),ae=(0,d.v_)(h,pe),De=`${ae}.${U(W)}`,Me=I.portalItem.resourceFromPath(De);(0,d.jc)(b)&&I.resources&&I.resources.pendingOperations.push(function Ge(p){return ce.apply(this,arguments)}(b).then(Ze=>{Me.path=`${ae}.${U(Ze)}`,B[_]=Me.itemRelativeUrl}).catch(()=>{}));const Fe=s?.compress??!1;I.resources&&_e({...p,resource:Me,content:W,compress:Fe,updates:I.resources.toAdd}),B[_]=Me.itemRelativeUrl}function _e({object:p,propertyName:b,updates:s,resource:m,content:I,compress:B}){s.push({resource:m,content:I,compress:B,finish:_=>{!function O(p,b,s){"string"==typeof p[b]?p[b]=s.url:p[b].url=s.url}(p,b,_)}})}function We(p,b,s){return"string"==typeof p?{url:b}:new Blob([JSON.stringify(p.toJSON(s))],{type:"application/json"})}function ce(){return(ce=(0,g.Z)(function*(p){const b=(yield Promise.resolve().then(l.bind(l,84792))).default,{data:s}=yield b(p,{responseType:"blob"});return s})).apply(this,arguments)}},22558:(Te,ie,l)=>{function g(A){return A&&"getAtOrigin"in A&&"originOf"in A}l.d(ie,{l:()=>g})},60595:(Te,ie,l)=>{l.d(ie,{T:()=>le});var g=l(15861),A=l(84792),d=l(26584),v=l(62208);function le(D,U,F,te,j,J){return ee.apply(this,arguments)}function ee(){return(ee=(0,g.Z)(function*(D,U,F,te,j,J){let Z=null;if((0,v.pC)(F)){const S=`${D}/nodepages/`,oe=S+Math.floor(F.rootIndex/F.nodesPerPage);try{return{type:"page",rootPage:(yield(0,A.default)(oe,{query:{f:"json",token:te},responseType:"json",signal:J})).data,rootIndex:F.rootIndex,pageSize:F.nodesPerPage,lodMetric:F.lodSelectionMetricType,urlPrefix:S}}catch(q){(0,v.pC)(j)&&j.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",oe,q),Z=q}}if(!U)return null;const z=`${D}/nodes/`,L=z+(U&&U.split("/").pop());try{return{type:"node",rootNode:(yield(0,A.default)(L,{query:{f:"json",token:te},responseType:"json",signal:J})).data,urlPrefix:z}}catch(S){throw new d.Z("sceneservice:root-node-missing","Root node missing.",{pageError:Z,nodeError:S,url:L})}})).apply(this,arguments)}},47351:(Te,ie,l)=>{l.r(ie),l.d(ie,{default:()=>$i});var g=l(17626),A=l(14517),d=l(62208),v=l(77712),ee=(l(85931),l(90912)),D=l(76898),U=l(1437),te=(l(29132),l(79608)),j=l(23719),J=l(86810),Z=l(66656),z=l(40405),L=l(72642);let S=class extends((0,te.J)(J.wq)){constructor(e){super(e),this.type="plane",this.position=null,this.heading=0,this.tilt=0,this.width=10,this.height=10}equals(e){return this.heading===e.heading&&this.tilt===e.tilt&&(0,d._W)(this.position,e.position)&&this.width===e.width&&this.height===e.height}};(0,g._)([(0,v.Cb)({readOnly:!0,json:{read:!1,write:!0}})],S.prototype,"type",void 0),(0,g._)([(0,v.Cb)({type:L.Z}),(0,z.B)()],S.prototype,"position",void 0),(0,g._)([(0,v.Cb)({type:Number,nonNullable:!0,range:{min:0,max:360}}),(0,z.B)(),(0,Z.p)(e=>j.BV.normalize((0,ee.q9)(e),0,!0))],S.prototype,"heading",void 0),(0,g._)([(0,v.Cb)({type:Number,nonNullable:!0,range:{min:0,max:360}}),(0,z.B)(),(0,Z.p)(e=>j.BV.normalize((0,ee.q9)(e),0,!0))],S.prototype,"tilt",void 0),(0,g._)([(0,v.Cb)({type:Number,nonNullable:!0}),(0,z.B)()],S.prototype,"width",void 0),(0,g._)([(0,v.Cb)({type:Number,nonNullable:!0}),(0,z.B)()],S.prototype,"height",void 0),S=(0,g._)([(0,D.j)("esri.analysis.SlicePlane")],S);const oe=S;var q=l(72392),Ve=l(63290),G=l(32917),y=l(41743),_e=l(44917),We=l(49410),Ge=l(8314),ce=l(21286),he=l(23841),O=l(28347),p=l(43703),b=l(48977),s=l(84161),m=l(28093),I=l(55915),B=l(78172),_=l(90014),T=l(70562),pe=l(34054),h=l(26242),W=l(4794);const ae=(0,Ge.Z)("mac")?"Meta":"Control",De="Shift",At=Math.cos((0,ce.Vl)(45)),at=Math.cos((0,ce.Vl)(5)),Se=(0,m.f)(1,.5,0),we=(0,W.b)([...Se,.7]),Ce=[0,0,0,.04],rt=(0,W.b)([...Se,.5]),jt=(0,W.f)(1,1,1,1),Bt=(0,W.f)(1,.8,.6,1),zt=(0,W.f)(1,.93,.86,1),Gt=(0,W.b)([...Se,1]),Ft=(0,W.b)([...Se,1]),Yt=(0,W.b)([...Se,1]);var ht=l(54865),ut=l(45403),xe=l(19142),qt=l(87469),pt=l(993),ei=l(53928),ge=l(57521),se=l(40723),ti=l(13934),ii=l(87601),ai=l(60881),si=l(5894),gt=l(60909),ni=l(57623),ri=l(17625),li=l(651),oi=l(91056),di=l(39114),ci=l(12407),hi=l(30750),Oe=l(67969),Ye=l(2078);class ui extends ri.K{constructor(){super(...arguments),this.backgroundColor=(0,W.f)(1,0,0,.5),this.gridColor=(0,W.f)(0,1,0,.5),this.gridWidth=4}}class Le extends oi.A{initializeProgram(t){return new ci.$(t.rctx,Le.shader.get().build(this.configuration),di.i)}initializePipeline(){return(0,Ye.sm)({blending:(0,Ye.wK)(Oe.zi.ONE,Oe.zi.ONE,Oe.zi.ONE_MINUS_SRC_ALPHA,Oe.zi.ONE_MINUS_SRC_ALPHA),depthTest:{func:Oe.wb.LESS},colorWrite:Ye.BK})}}Le.shader=new li.J(hi.S,()=>l.e(5175).then(l.bind(l,15175)));class pi extends se.F5{constructor(t){super(t,new vi),this._configuration=new ii.m}intersect(t,i,a,n,o,c,u){return(0,ni.Bw)(t,i,n,o,c,void 0,u)}createBufferWriter(){return new gt.G_(gt.W1)}requiresSlot(t,i){return i===ti.H.Color&&t===si.r.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL}createGLMaterial(t){return new gi(t)}getConfiguration(){return this._configuration}}class gi extends ai.Z{constructor(t){super(t),this.ensureTechnique(Le,null)}beginSlot(){return(0,d.Wg)(this.technique)}}class vi extends ui{constructor(){super(...arguments),this.renderOccluded=se.yD.Occlude}}class yi extends ei._{constructor(t){super(t),this._material=null,this._renderOccluded=se.yD.OccludeAndTransparent,this._gridWidth=1,this._gridColor=(0,W.f)(1,0,0,1),this._backgroundColor=(0,W.f)(1,0,0,1),this.applyProps(t)}get renderOccluded(){return this._renderOccluded}set renderOccluded(t){t!==this._renderOccluded&&(this._renderOccluded=t,this._updateMaterial())}get gridWidth(){return this._gridWidth}set gridWidth(t){this._gridWidth!==t&&(this._gridWidth=t,this._updateMaterial())}get gridColor(){return this._gridColor}set gridColor(t){(0,pt.c)(this._gridColor,t),this._updateMaterial()}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){(0,pt.c)(this._backgroundColor,t),this._updateMaterial()}createExternalResources(){this._material=new pi(this._materialParameters)}destroyExternalResources(){this._material=null}forEachExternalMaterial(t){(0,d.pC)(this._material)&&t(this._material)}createGeometries(t){if((0,d.pC)(this._material)){const i=(0,ge.g7)();t.addGeometry(i,this._material)}}get _materialParameters(){return{backgroundColor:this._backgroundColor,gridWidth:this._gridWidth,gridColor:this._gridColor,renderOccluded:this._renderOccluded}}_updateMaterial(){(0,d.pC)(this._material)&&this._material.setParameters(this._materialParameters)}}var ue,e,vt=l(13986),yt=l(26046),Ae=l(42743),Ue=l(92972),ft=l(49580),fi=l(92222),ne=l(33786);function mt(e,t){return(0,xe.Aq)(e.basis1,e.basis2,e.origin,t)}function Pt(e,t,i,a){const n=t.worldUpAtPosition(e.origin,h.WM.get()),o=h.WM.get();switch(i){case be.HEADING:(0,s.c)(o,n);break;case be.TILT:(0,s.c)(o,e.basis1)}return(0,_.Yq)(e.origin,o,a)}function Xe(e,t){switch(t){case ue.POSITIVE_X:return{basis:e.basis1,direction:1,position:(0,s.a)(h.WM.get(),e.origin,e.basis1),edge:t};case ue.POSITIVE_Y:return{basis:e.basis2,direction:1,position:(0,s.a)(h.WM.get(),e.origin,e.basis2),edge:t};case ue.NEGATIVE_X:return{basis:e.basis1,direction:-1,position:(0,s.b)(h.WM.get(),e.origin,e.basis1),edge:t};case ue.NEGATIVE_Y:return{basis:e.basis2,direction:-1,position:(0,s.b)(h.WM.get(),e.origin,e.basis2),edge:t}}}function Mt(e,t,i){const a=i.projectToRenderScreen((0,s.a)(h.WM.get(),e,t),(0,he.Wv)(h.WM.get())),n=i.projectToRenderScreen((0,s.b)(h.WM.get(),e,t),(0,he.Wv)(h.WM.get()));return(0,s.p)((0,s.b)(a,a,n))}function wt(e){const t=(0,s.l)(e.basis1),i=(0,s.l)(e.basis2);return.3*Math.min(t,i)}function ke(e){return wt(e)}function Qe(e){return 0!==e.direction[0]&&0!==e.direction[1]}function Ct(e,t){const i=(0,xe.Ju)(e,{customStateMask:K,texture:t});return i.state=K,i}function bt(e){return new qt.r({view:e,attached:!1,color:we,width:1,writeDepthEnabled:!1,renderOccluded:se.yD.OccludeAndTransparent,geometry:[[[-1,-1,0],[1,-1,0],[1,1,0],[-1,1,0],[-1,-1,0]]]})}function Et(e){return new yi({view:e,attached:!1,backgroundColor:[...Ce],gridColor:rt,gridWidth:4,renderOccluded:se.yD.OccludeAndTransparent})}function Wi(e,t,i){const a=[];if((0,d.pC)(t))a.push([e,t.thickness/2],[-e,t.thickness/2],[-e,-t.thickness/2],[e,-t.thickness/2]);else for(let o=0;o<12;o++){const c=o/12*2*Math.PI;a.push([Math.cos(c)*e,Math.sin(c)*e])}return(0,ge.x2)(a,i,[],[],!1)}function Tt(e,t,i,a=new oe){if((0,d.Wi)(e))return null;const{renderCoordsHelper:n}=t,o=n.fromRenderCoords(e.origin,t.spatialReference);if((0,d.Wi)(o))return null;const c=(0,I.fM)(o,i);if((0,d.Wi)(c))return null;a.position=c;const u=2*(0,s.l)(e.basis1),f=2*(0,s.l)(e.basis2),E=vt.Z.renderUnitScaleFactor(t.spatialReference,i);a.width=u*E,a.height=f*E;const P=n.worldUpAtPosition(e.origin,h.WM.get());return a.tilt=(0,ce.BV)($e(e,P)),a.heading=n.headingAtPosition(e.origin,e.basis1)-90,a}function $e(e,t){return(0,pe.cp)(t,e.basis2,e.basis1)+Ee}l(2004),(e=ue||(ue={}))[e.POSITIVE_X=0]="POSITIVE_X",e[e.POSITIVE_Y=1]="POSITIVE_Y",e[e.NEGATIVE_X=2]="NEGATIVE_X",e[e.NEGATIVE_Y=3]="NEGATIVE_Y";const K=ne.jg.Custom1;var be,re;(function(e){e[e.HEADING=1]="HEADING",e[e.TILT=2]="TILT"})(be||(be={})),function(e){e[e.HORIZONTAL_OR_VERTICAL=0]="HORIZONTAL_OR_VERTICAL",e[e.HORIZONTAL=1]="HORIZONTAL",e[e.VERTICAL=2]="VERTICAL",e[e.TILTED=3]="TILTED"}(re||(re={}));const Ne=ne.jg.Custom2,He=(0,T.Ue)(),Ee=Math.PI/2,Je=ne.jg.Custom1,Li=ne.jg.Custom2;var je;function Ai(e){return(0,d.pC)("building-scene-3d"===e.type?e:null)}!function(e){e[e.CENTER_ON_CALLOUT=0]="CENTER_ON_CALLOUT",e[e.CENTER_ON_ARROW=1]="CENTER_ON_ARROW"}(je||(je={}));var Ui=l(94573);const Dt="esri.views.3d.analysis.Slice.SliceController",qe=Ve.Z.getLogger(Dt);let fe=class extends A.Z{constructor(e){super(e),this._handles=new q.Z,this._internalChange=!1,this._currentSlicePlane=null}initialize(){this._handles.add(this.analysis.excludedLayers.on("before-add",e=>{const t=e.item;null!=t&&(t instanceof _e.Z||t instanceof We.Z)?t instanceof _e.Z&&function Ni(e){switch(e.type){case"building-scene":case"csv":case"dimension":case"feature":case"geo-rss":case"geojson":case"graphics":case"group":case"integrated-mesh":case"kml":case"line-of-sight":case"map-notes":case"ogc-feature":case"oriented-imagery":case"point-cloud":case"route":case"scene":case"stream":case"voxel":case"subtype-group":case"unknown":case"unsupported":case"wfs":case null:return!1;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"elevation":case"imagery":case"imagery-tile":case"map-image":case"media":case"open-street-map":case"tile":case"vector-tile":case"wcs":case"web-tile":case"wms":case"wmts":return!0;default:return(0,Ui.Bg)(e.type),!1}}(t)?(qe.error("excludedLayers",`Layer '${t.title}, id:${t.id}' of type '${t.type}' can not be individually excluded from slicing. Use 'excludeGroundSurface' instead.`),e.preventDefault()):this.analysis.excludedLayers.includes(t)&&e.preventDefault():(qe.error("excludedLayers","Invalid layer type, layer must derive from Layer or BuildingComponentSublayer"),e.preventDefault())})),function ji(e,t){me.has(e)||me.set(e,{all:[],activeController:null}),me.get(e).all.push(t)}(this.view,this),this._handles.add([(0,G.YP)(()=>this.analysisViewData.plane,()=>{this._internalChange||this._updateSlicePlaneFromBoundedPlane(),this._updateLayerViews()},{sync:!0}),(0,G.YP)(()=>this.analysis.excludeGroundSurface,()=>this._updateLayerViews(),{sync:!0}),this.analysis.excludedLayers.on("change",()=>this._updateLayerViews()),(0,G.YP)(()=>[this.analysisViewData.active,this.analysisViewData.visible],()=>{this._updateActiveController(),this._updateViewSlicePlane()},{sync:!0}),(0,G.YP)(()=>this._allLayerAndSubLayerViews,()=>this._updateLayerViews())]),this._handles.add([(0,G.YP)(()=>this.analysis.shape,()=>{this._internalChange||(this._updateBoundedPlaneFromSlicePlane(),this._updateViewSlicePlane())},{sync:!0})],"analysis"),this._updateActiveController(),this._updateBoundedPlaneFromSlicePlane(),this._updateViewSlicePlane()}destroy(){this.analysisViewData.active&&(this.analysisViewData.active=!1,this.view.slicePlane=null),function Bi(e,t){if(!me.has(e))throw new Error("view expected in global slice register");const i=me.get(e),a=i.all.lastIndexOf(t);if(-1===a)throw new Error("controller expected in global slice register");i.all.splice(a,1),0===i.all.length&&me.delete(e)}(this.view,this),this._handles.destroy(),this.set("view",null)}get _allLayerAndSubLayerViews(){const e=this.view.allLayerViews.items;return e.concat(e.filter(Ai).flatMap(({sublayerViews:t})=>t.items))}_updateBoundedPlaneFromSlicePlane(){const e=this.analysis.shape,t=this._currentSlicePlane;if((0,d.Wi)(t)&&(0,d.Wi)(e)||(0,d.pC)(t)&&(0,d.pC)(e)&&e.equals(t))return;let i=null,a=null;if((0,d.pC)(e)&&(0,d.pC)(e.position)){const n=e.position.spatialReference,o=function Vt(e,t){if((0,d.Wi)(e)||(0,d.Wi)(e.position))return null;const i=(0,ht.G)(e.position,t.spatialReference,t.elevationProvider);if((0,d.Wi)(i))return null;const a=vt.Z.renderUnitScaleFactor(e.position.spatialReference,t.spatialReference);return{position:i,heading:e.heading,tilt:e.tilt,renderWidth:e.width*a,renderHeight:e.height*a}}(e,this.view);(0,d.Wi)(o)&&(0,ht.e)(this.analysis,n,qe),i=function _t(e,t,i,a=(0,y.a)()){if((0,d.Wi)(e))return null;const n=function xi(e,t,i,a,n,o,c=(0,y.a)()){return o.toRenderCoords(e,c.origin)?(o.worldBasisAtPosition(c.origin,B.R.X,c.basis1),o.worldBasisAtPosition(c.origin,B.R.Y,c.basis2),(0,_.my)(c.basis2,c.basis1,c.origin,c.plane),(0,y.r)(c,-(0,ce.Vl)(t),(0,y.n)(c),c),(0,y.r)(c,(0,ce.Vl)(i),c.basis1,c),(0,s.g)(c.basis1,c.basis1,a/2),(0,s.g)(c.basis2,c.basis2,n/2),(0,y.u)(c),c):(Ve.Z.getLogger("esri.views.3d.analysis.Slice.sliceToolUtils").error(`Failed to project slice plane position, projection from ${e.spatialReference.wkid} is not supported`),null)}(e.position,e.heading,e.tilt,e.renderWidth,e.renderHeight,t.renderCoordsHelper,a);return!i.tiltEnabled&&(0,d.pC)(n)&&function Mi(e,t,i){const a=t.worldUpAtPosition(e.origin,h.WM.get()),n=e.basis1,o=$e(e,a),c=Math.round(o/Ee)*Ee;(0,y.r)(e,c-o,n,i)}(n,t.renderCoordsHelper,n),n}(o,this.view,{tiltEnabled:this.analysis.tiltEnabled},(0,y.a)()),(0,d.pC)(i)&&(a={heading:e.heading,tilt:e.tilt,position:e.position,width:e.width,height:e.height})}this._currentSlicePlane=a,this._internalChange=!0,this.analysisViewData.plane=i,this._internalChange=!1}_updateSlicePlaneFromBoundedPlane(){const t=Tt(this.analysisViewData.plane,this.view,this.view.spatialReference,new oe);let i=null;(0,d.pC)(t)&&(i={heading:t.heading,tilt:t.tilt,position:t.position,width:t.width,height:t.height}),this._currentSlicePlane=i,this._internalChange=!0,this.analysis.shape=t,this._internalChange=!1,this._updateViewSlicePlane()}_updateActiveController(){if(et)return;const e=St(this.view);if(this.analysisViewData.active)(0,d.pC)(e.activeController)&&e.activeController!==this?(et=!0,e.activeController.analysisViewData.active=!1,et=!1):(0,d.pC)(e.activeController),this._updateLayerViews(),e.activeController=this;else{if((0,d.pC)(e.activeController)&&e.activeController!==this)return;(0,d.pC)(e.activeController)&&e.activeController===this&&(e.activeController=null,this._updateLayerViews())}}_updateViewSlicePlane(){!function Hi(e){const t=St(e).activeController;e.slicePlane=(0,d.pC)(t)&&(0,d.pC)(t.analysisViewData.plane)&&t.analysisViewData.visible?t.analysisViewData.plane:null}(this.view)}_updateLayerViews(){const e=(0,d.pC)(this.analysisViewData.plane)&&this.analysisViewData.visible&&this.analysisViewData.active,t=[],i=a=>{"layers"in a?a.layers.forEach(i):t.push(a)};this.analysis.excludedLayers.forEach(i),this.view.allLayerViews.forEach(a=>{a.destroyed||("slicePlaneEnabled"in a&&(a.slicePlaneEnabled=e&&!t.includes(a.layer)),"sublayerViews"in a&&a.sublayerViews.forEach(n=>{n.slicePlaneEnabled=e&&!t.includes(n.sublayer)}))}),null!=this.view.basemapTerrain&&(this.view.basemapTerrain.slicePlaneEnabled=e&&!this.analysis.excludeGroundSurface)}};(0,g._)([(0,v.Cb)()],fe.prototype,"view",void 0),(0,g._)([(0,v.Cb)()],fe.prototype,"analysis",void 0),(0,g._)([(0,v.Cb)()],fe.prototype,"analysisViewData",void 0),(0,g._)([(0,v.Cb)()],fe.prototype,"_allLayerAndSubLayerViews",null),fe=(0,g._)([(0,D.j)(Dt)],fe);const me=new Map;let et=!1;function St(e){return me.get(e)}var tt,zi=l(84244),Gi=l(50618),Ot=l(25601),Be=l(8859),Fi=l(62483),Zi=l(67857),Ki=l(58997),ze=l(30260),Ie=l(41900);let Y=tt=class extends Ki.f{constructor(e){super(e),this._clock=zi.m,this._previewPlaneOpacity=1,this.removeIncompleteOnCancel=!1,this.layersMode="none",this.shiftManipulator=null,this.rotateHeadingManipulator=null,this.rotateTiltManipulator=null,this.resizeManipulators=null,this._handles=new q.Z,this._viewHandles=new q.Z,this._frameTask=null,this._pointerMoveTimerMs=2500,this._prevPointerMoveTimeout=null,this._previewPlaneGridVisualElement=null,this._previewPlaneOutlineVisualElement=null,this._startPlane=(0,y.a)(),this._previewPlane=null,this._activeKeyModifiers={},this._lastCursorPosition=(0,he.vW)(),this._resizeHandles=[{direction:[1,0]},{direction:[1,1]},{direction:[0,1]},{direction:[-1,1]},{direction:[-1,0]},{direction:[-1,-1]},{direction:[0,-1]},{direction:[1,-1]}],this._intersector=(0,Fi.Z8)(e.view.state.viewingMode),this._intersector.options.store=Zi.eC.MIN}initialize(){if(null==this.analysis)throw new Error("SliceTool requires valid analysis, but null was provided.");this._rotateHeadingImage=(0,Ot.O)(this.view.toolViewManager.textures),this._rotateTiltImage=(0,Ot.s)(this.view.toolViewManager.textures);const e=i=>{this._updateManipulatorsInteractive(i),i.grabbing||((0,d.pC)(this.analysisViewData.plane)&&(0,y.c)(this.analysisViewData.plane,this._startPlane),this.inputState=null)};this.shiftManipulator=function Si(e,t=je.CENTER_ON_ARROW){const i=t===je.CENTER_ON_CALLOUT?40:0,a=[(0,m.f)(i,0,-24),(0,m.f)(i,0,24)],n=function Ri(e,t){const i=(0,s.b)((0,m.c)(),e[e.length-1],e[e.length-2]);if((0,s.n)(i,i),(0,s.g)(i,i,22.5),(0,s.a)(i,i,e[e.length-1]),t){const a=(0,s.b)((0,m.c)(),e[0],e[1]);return(0,s.n)(a,a),(0,s.g)(a,a,22.5),(0,s.a)(a,a,e[0]),[a,...e,i]}return[...e,i]}(a,!0),o=(w,H)=>function Ii(e,t,i){const a=n=>{const o=(n?t:e).slice(0),c=(0,s.b)(h.WM.get(),o[0],o[1]);(0,s.n)(c,c);const u=(0,s.b)(h.WM.get(),o[o.length-1],o[o.length-2]);if((0,s.n)(u,u),i.padding>0){const $=(0,s.g)((0,m.c)(),u,-i.padding);if(o[o.length-1]=(0,s.a)($,$,o[o.length-1]),i.bothEnds){const ye=(0,s.g)((0,m.c)(),c,-i.padding);o[0]=(0,s.a)(ye,ye,o[0])}}const f=n?i.tipFocusMultiplier:1,E=i.tipLength*(i.focusTipLength?f:1),P=i.tipRadius*f,C=(0,O.i)(h.MP.get());if(i.padding>0){const $=E/4,ye=(0,s.s)(h.WM.get(),0,$,0),Pe=1+i.padding/$;(0,O.v)(C,C,ye),(0,O.k)(C,C,(0,s.s)(h.WM.get(),Pe,Pe,Pe)),(0,O.v)(C,C,(0,s.g)(ye,ye,-1/Pe))}const N=(0,O.i)((0,p.c)()),k=(0,m.f)(0,1,0),x=(0,O.D)((0,p.c)(),(0,b.r)(h.vD.get(),k,u));x[12]=o[o.length-1][0],x[13]=o[o.length-1][1],x[14]=o[o.length-1][2],(0,O.m)(x,x,C);const w=[{part:"tube",geometry:Wi(i.tubeRadius*(n?i.tubeFocusMultiplier:1)+i.padding,i.flat,o),transform:N}];let H,Q;if((0,d.pC)(i.flat)?H=(0,ge.DA)(E,P,P,i.flat.thickness):(H=(0,ge.QL)(E,P,24,!1,!1,!0),Q=(0,ge.QL)(E,P,24,!1,!0,!1)),w.push({part:"tip",geometry:H,transform:x}),Q&&w.push({part:"cap",geometry:Q,transform:x}),i.bothEnds){const $=(0,O.D)((0,p.c)(),(0,b.r)(h.vD.get(),k,c));$[12]=o[0][0],$[13]=o[0][1],$[14]=o[0][2],(0,O.m)($,$,C),w.push({part:"tip",geometry:H,transform:$}),Q&&w.push({part:"cap",geometry:Q,transform:$})}return w};return{normal:a(!1),focused:a(!0)}}(a,a,{tubeRadius:3,tipRadius:11,tipLength:22.5,tubeFocusMultiplier:1.15,tipFocusMultiplier:1.15,padding:w,bothEnds:!0,flat:null,focusTipLength:!0,addCap:H}),c=o(0,!1),u=o(2.25,!0),f=new Ue.E({color:jt,cullFace:Ae.Vr.Back,renderOccluded:se.yD.Opaque}),E=new Ue.E({color:Bt,cullFace:Ae.Vr.Back,renderOccluded:se.yD.Opaque}),P=new Ue.E({color:zt,cullFace:Ae.Vr.Back,renderOccluded:se.yD.Opaque}),C=new Ue.E({color:Ft,transparent:!0,writeDepth:!1,cullFace:Ae.Vr.Front,renderOccluded:se.yD.Transparent}),N=(0,ge.rh)([[i,0,0],[i-40,0,0]]),k=(0,ge.rh)([[i,0,0],[i-40,0,0]]),x=new ft.Y({color:Gt,renderOccluded:se.yD.OccludeAndTransparent});return new ut.Z({view:e,renderObjects:[...c.normal.map(({part:w,geometry:H,transform:Q})=>({geometry:H,material:"tip"===w?f:"cap"===w?E:P,transform:Q,stateMask:ne.Q9.Unfocused|K})),...u.normal.map(({geometry:w,transform:H})=>({geometry:w,material:C,transform:H,stateMask:ne.Q9.Unfocused|K})),{geometry:N,material:x,stateMask:ne.Q9.Unfocused|K|Ne},...c.focused.map(({part:w,geometry:H,transform:Q})=>({geometry:H,material:"tip"===w?f:"cap"===w?E:P,transform:Q,stateMask:ne.Q9.Focused|K})),...u.focused.map(({geometry:w,transform:H})=>({geometry:w,material:C,transform:H,stateMask:ne.Q9.Focused|K})),{geometry:k,material:x,stateMask:ne.Q9.Focused|K|Ne}],autoScaleRenderObjects:!1,collisionType:{type:"line",paths:[n]},collisionPriority:1,radius:11,state:K})}(this.view),this.manipulators.add(this.shiftManipulator),this.shiftManipulator.events.on("grab-changed",i=>{this._onShiftGrab(i),e(this.shiftManipulator)}),this._handles.add(this._createShiftDragPipeline(this.shiftManipulator)),this.rotateHeadingManipulator=Ct(this.view,this._rotateHeadingImage.texture),this.manipulators.add(this.rotateHeadingManipulator),this.rotateHeadingManipulator.events.on("grab-changed",i=>{this._onRotateHeadingGrab(i),e(this.rotateHeadingManipulator)}),this._handles.add(this._createRotateHeadingDragPipeline(this.rotateHeadingManipulator)),this.rotateTiltManipulator=Ct(this.view,this._rotateTiltImage.texture),this.manipulators.add(this.rotateTiltManipulator),this.rotateTiltManipulator.events.on("grab-changed",i=>{this._onRotateTiltGrab(i),e(this.rotateTiltManipulator)}),this._handles.add(this._createRotateTiltDragPipeline(this.rotateTiltManipulator)),this.resizeManipulators=this._resizeHandles.map((i,a)=>{const n=function Oi(e,t){const i=Qe(t),a=i?[(0,m.f)(1,0,0),(0,m.f)(0,0,0),(0,m.f)(0,1,0)]:[(0,m.f)(1,0,0),(0,m.f)(-1,0,0)],n=(0,ge.rh)(a),o=Yt,f=i?4:1,E=2*f,C=x=>x>1?(x=>new fi.U({color:o,width:x,renderOccluded:se.yD.OccludeAndTransparent}))(x):new ft.Y({color:o,renderOccluded:se.yD.OccludeAndTransparent}),N=[{geometry:n,material:C(f),stateMask:ne.Q9.Unfocused|Je},{geometry:n,material:C(E),stateMask:ne.Q9.Focused|Je},{geometry:n,material:C(1),stateMask:Li}],k=new ut.Z({view:e,renderObjects:N,collisionType:{type:"line",paths:[a]},radius:i?6:4,...xe.X9});return k.state=Je,k}(this.view,i);return n.events.on("grab-changed",o=>{this._onResizeGrab(o,a),e(n)}),this._handles.add(this._createResizeDragPipeline(n)),n}),this.manipulators.addMany(this.resizeManipulators),this._previewPlaneGridVisualElement=Et(this.view),this._previewPlaneOutlineVisualElement=bt(this.view),this._previewPlaneOutlineVisualElement.width=2,this._handles.add((0,G.YP)(()=>this.analysisViewData.plane,()=>this._updateManipulators(),G.Z_));const t=(0,G.YP)(()=>this.state,i=>{"sliced"===i&&this.finishToolCreation()},G.tX);this._handles.add([t,(0,G.YP)(()=>this.view.state.camera,()=>this._onCameraChange())])}destroy(){this._rotateHeadingImage=(0,d.RY)(this._rotateHeadingImage),this._rotateTiltImage=(0,d.RY)(this._rotateTiltImage),this._handles=(0,d.SC)(this._handles),this._viewHandles=(0,d.SC)(this._viewHandles),this._removeFrameTask(),this._clearPointerMoveTimeout(),this._previewPlaneOutlineVisualElement=(0,d.SC)(this._previewPlaneOutlineVisualElement),this._previewPlaneGridVisualElement=(0,d.SC)(this._previewPlaneGridVisualElement)}get state(){const e=!!this.analysisViewData.plane,t=!!this.inputState;return e?e&&t?"slicing":e&&!t?"sliced":"ready":"ready"}get cursor(){return this._isPlacingSlicePlane||"exclude"===this.layersMode?"crosshair":(0,d.pC)(this._creatingPointerId)?"grabbing":null}set analysis(e){if(null==e)throw new Error("SliceTool requires valid analysis, but null was provided.");this._handles.remove("analysis"),this._set("analysis",e)}get inputState(){return this._get("inputState")}set inputState(e){this._set("inputState",e),this.analysisViewData.showGrid=(0,d.pC)(e)&&"resize"===e.type,this._updateMaterials()}get _isPlacingSlicePlane(){return!this.inputState&&!this.analysisViewData.plane&&this.active}get _creatingPointerId(){return(0,d.pC)(this.inputState)&&"shift"===this.inputState.type?this.inputState.creatingPointerId:null}enterExcludeLayerMode(){(0,d.Wi)(this.analysisViewData.plane)||(this._set("layersMode","exclude"),this.active||(this.view.activeTool=this))}exitExcludeLayerMode(){(0,d.Wi)(this.analysisViewData.plane)||(this._set("layersMode","none"),this.active&&(this.view.activeTool=null))}onDeactivate(){this._set("layersMode","none"),this._updatePreviewPlane(null)}onShow(){this._updateVisibility(!0)}onHide(){this._updateVisibility(!1)}_updateVisibility(e){this._updateManipulators(),e||this._clearPointerMoveTimeout()}onInputEvent(e){switch(e.type){case"pointer-drag":if(!it(e))return;this._isPlacingSlicePlane?this._onClickPlacePlane(e)&&e.stopPropagation():this._onPointerDrag(e)&&e.stopPropagation();break;case"pointer-move":this._onPointerMove(e);break;case"pointer-up":this._onPointerUp(e)&&e.stopPropagation();break;case"immediate-click":if(!it(e))return;this._onClickPlacePlane(e)&&e.stopPropagation();break;case"click":if(!it(e))return;this._onClickExcludeLayer(e)&&e.stopPropagation();break;case"drag":this.inputState&&e.stopPropagation();break;case"key-down":this._onKeyDown(e)&&e.stopPropagation();break;case"key-up":this._onKeyUp(e)&&e.stopPropagation()}}onEditableChange(){this.analysisViewData.editable=this.internallyEditable}_onPointerDrag(e){const t=this.inputState;if(e.pointerId===this._creatingPointerId&&(0,d.pC)(t)&&"shift"===t.type){const i=(0,Ie.vT)(e);return this.shiftManipulator.events.emit("drag",{action:t.hasBeenDragged?"update":"start",pointerType:e.pointerType,start:i,screenPoint:i}),t.hasBeenDragged=!0,!0}return!1}_onPointerMove(e){this._lastCursorPosition.x=e.x,this._lastCursorPosition.y=e.y,this._resetPointerMoveTimeout(),"touch"!==e.pointerType&&this._updatePreviewPlane((0,Ie.vT)(e),this._activeKeyModifiers)}_onCameraChange(){this._updatePreviewPlane(this._lastCursorPosition,this._activeKeyModifiers),this._updateManipulators()}_onPointerUp(e){if(e.pointerId===this._creatingPointerId&&(0,d.pC)(this.analysisViewData.plane)){const t=(0,Ie.vT)(e);return this.shiftManipulator.events.emit("drag",{action:"end",start:t,screenPoint:t}),(0,y.c)(this.analysisViewData.plane,this._startPlane),this.inputState=null,!0}return!1}_onClickPlacePlane(e){if("exclude"===this.layersMode)return!1;if(this._isPlacingSlicePlane){const t=(0,Ie.vT)(e),i=(0,y.a)();if(this._pickPlane(t,!1,this._activeKeyModifiers,i)){if((0,y.c)(i,this._startPlane),this.analysis.shape=Tt(i,this.view,this.view.spatialReference,new oe),"pointer-drag"===e.type){const a=this._calculatePickRay(t);this.inputState=It(a,e.pointerId,i.origin,i)}return!0}}return!1}_onClickExcludeLayer(e){return!("exclude"!==this.layersMode||!this.created||(this.view.hitTest((0,Ie.vT)(e)).then(t=>{if(t.results.length){const i=t.results[0],a="graphic"===i?.type&&i.graphic;if(a){const n=a.sourceLayer||a.layer;n&&this.analysis.excludedLayers.push(n)}}else t.ground.layer?this.analysis.excludedLayers.push(t.ground.layer):this.analysis.excludeGroundSurface=!0}),this._set("layersMode","none"),this.active&&(this.view.activeTool=null),0))}_onKeyDown(e){return(e.key===De||e.key===ae)&&(this._activeKeyModifiers[e.key]=!0,(0,d.pC)(this._previewPlane)&&this._updatePreviewPlane(this._lastCursorPosition,this._activeKeyModifiers),!0)}_onKeyUp(e){return!(e.key!==De&&e.key!==ae||!this._activeKeyModifiers[e.key]||(delete this._activeKeyModifiers[e.key],(0,d.pC)(this._previewPlane)&&this._updatePreviewPlane(this._lastCursorPosition,this._activeKeyModifiers),0))}_onShiftGrab(e){if("start"!==e.action||(0,d.Wi)(this.analysisViewData.plane))return;const t=this._calculatePickRay(e.screenPoint);(0,y.c)(this.analysisViewData.plane,this._startPlane),this.inputState=It(t,null,this.shiftManipulator.renderLocation,this.analysisViewData.plane)}_createShiftDragPipeline(e){return(0,ze.Xd)(e,(t,i,a)=>{const n=this.inputState;if((0,d.Wi)(n)||"shift"!==n.type)return;const o=(0,d.pC)(this.analysisViewData.plane)?(0,y.c)(this.analysisViewData.plane,(0,y.a)()):null;i.next((0,Be._N)(this.view,n.shiftPlane)).next(this._shiftDragAdjustSensitivity(n)).next(this._shiftDragUpdatePlane(n)),a.next(()=>{(0,d.pC)(o)&&this._updateBoundedPlane(o)})})}_shiftDragAdjustSensitivity(e){return t=>{if((0,d.Wi)(this.analysisViewData.plane))return null;const a=Math.min((1-Math.abs((0,s.e)((0,y.n)(this.analysisViewData.plane),t.ray.direction)/(0,s.l)(t.ray.direction)))/.001,1),n=-(0,_.jH)(this._startPlane.plane,t.renderEnd),o=-(0,_.jH)(this._startPlane.plane,e.startPoint);return e.depth=e.depth*(1-a)+n*a-o,t}}_shiftDragUpdatePlane(e){return()=>{if((0,d.Wi)(this.analysisViewData.plane))return;const t=(0,s.c)(h.WM.get(),this._startPlane.origin),i=(0,s.c)(h.WM.get(),(0,y.n)(this._startPlane));(0,s.g)(i,i,-e.depth),(0,s.a)(i,i,t);const a=(0,y.f)(i,this.analysisViewData.plane.basis1,this.analysisViewData.plane.basis2,(0,y.a)());this._updateBoundedPlane(a)}}_onRotateHeadingGrab(e){if("start"!==e.action||(0,d.Wi)(this.analysisViewData.plane))return;const t=Pt(this.analysisViewData.plane,this.view.renderCoordsHelper,be.HEADING,(0,_.Ue)()),i=this._calculatePickRay(e.screenPoint),a=(0,m.c)();(0,_.BR)(t,i,a)&&((0,y.c)(this.analysisViewData.plane,this._startPlane),this.inputState={type:"rotate",rotatePlane:t,startPoint:a})}_createRotateHeadingDragPipeline(e){return(0,ze.Xd)(e,(t,i,a)=>{const n=this.inputState;if((0,d.Wi)(n)||"rotate"!==n.type)return;const o=(0,d.pC)(this.analysisViewData.plane)?(0,y.c)(this.analysisViewData.plane,(0,y.a)()):null;i.next((0,Be._N)(this.view,n.rotatePlane)).next(this._rotateDragRenderPlaneToRotate(n)).next(this._rotateDragUpdatePlaneFromRotate()),a.next(()=>{(0,d.pC)(o)&&this._updateBoundedPlane(o)})})}_onRotateTiltGrab(e){if("start"!==e.action||(0,d.Wi)(this.analysisViewData.plane))return;const t=Pt(this.analysisViewData.plane,this.view.renderCoordsHelper,be.TILT,(0,_.Ue)()),i=this._calculatePickRay(e.screenPoint),a=(0,m.c)();(0,_.BR)(t,i,a)&&((0,y.c)(this.analysisViewData.plane,this._startPlane),this.inputState={type:"rotate",rotatePlane:t,startPoint:a})}_createRotateTiltDragPipeline(e){return(0,ze.Xd)(e,(t,i,a)=>{const n=this.inputState;if((0,d.Wi)(n)||"rotate"!==n.type)return;const o=(0,d.pC)(this.analysisViewData.plane)?(0,y.c)(this.analysisViewData.plane,(0,y.a)()):null;i.next((0,Be._N)(this.view,n.rotatePlane)).next(this._rotateDragRenderPlaneToRotate(n)).next(this._rotateDragUpdatePlaneFromRotate()),a.next(()=>{(0,d.pC)(o)&&this._updateBoundedPlane(o)})})}_rotateDragRenderPlaneToRotate(e){return t=>{if((0,d.Wi)(this.analysisViewData.plane))return null;const i=(0,_.mJ)(e.rotatePlane),a=(0,xe.Gd)(e.startPoint,t.renderEnd,this.analysisViewData.plane.origin,i);return{...t,rotateAxis:i,rotateAngle:a}}}_rotateDragUpdatePlaneFromRotate(){return e=>{if((0,d.Wi)(this.analysisViewData.plane))return;const t=(0,O.d)(h.MP.get(),e.rotateAngle,e.rotateAxis);if((0,d.Wi)(t))return;const i=(0,s.m)(h.WM.get(),this._startPlane.basis1,t),a=(0,s.m)(h.WM.get(),this._startPlane.basis2,t),n=(0,y.f)(this.analysisViewData.plane.origin,i,a,(0,y.a)());this._updateBoundedPlane(n)}}_onResizeGrab(e,t){if("start"!==e.action||(0,d.Wi)(this.analysisViewData.plane))return;const i=this._calculatePickRay(e.screenPoint),a=h.WM.get();(0,_.BR)(this.analysisViewData.plane.plane,i,a)&&((0,y.c)(this.analysisViewData.plane,this._startPlane),this.inputState={type:"resize",activeHandleIdx:t,startPoint:(0,m.a)(a)})}_createResizeDragPipeline(e){return(0,ze.Xd)(e,(t,i,a)=>{const n=this.inputState;if((0,d.Wi)(n)||"resize"!==n.type||(0,d.Wi)(this.analysisViewData.plane))return;const o=(0,y.c)(this.analysisViewData.plane,(0,y.a)());i.next((0,Be._N)(this.view,this.analysisViewData.plane.plane)).next(this._resizeDragUpdatePlane(n)),a.next(()=>{this._updateBoundedPlane(o)})})}_resizeDragUpdatePlane(e){return t=>{if((0,d.Wi)(this.analysisViewData.plane))return;const a=function wi(e,t,i,a,n,o){const c=(0,s.c)(h.WM.get(),n.origin);(0,s.a)(c,c,(0,s.g)(h.WM.get(),n.basis1,e.direction[0]<0?1:-1)),(0,s.a)(c,c,(0,s.g)(h.WM.get(),n.basis2,e.direction[1]<0?1:-1));const u=(0,s.l)(n.basis1),f=(0,s.l)(n.basis2),E=(0,s.b)(h.WM.get(),i,c),P=(0,s.b)(h.WM.get(),t,c);let C=0,N=0;if(Qe(e)){const $=ke(n),ye=ke(o);C=u-.5*e.direction[0]*(0,s.e)(n.basis1,P)/u,N=f-.5*e.direction[1]*(0,s.e)(n.basis2,P)/f;const Pe=ye/$;C*=Pe,N*=Pe}const k=C+.5*e.direction[0]*(0,s.e)(n.basis1,E)/u,x=N+.5*e.direction[1]*(0,s.e)(n.basis2,E)/f,w=(0,s.g)(h.WM.get(),n.basis1,k/u),H=(0,s.g)(h.WM.get(),n.basis2,x/f);(k<=0||Mt(o.origin,w,a)<=1600)&&(0,s.c)(w,o.basis1),(x<=0||Mt(o.origin,H,a)<=1600)&&(0,s.c)(H,o.basis2);const Q=(0,s.c)(h.WM.get(),c);return(0,s.a)(Q,Q,(0,s.g)(h.WM.get(),w,e.direction[0]<0?-1:1)),(0,s.a)(Q,Q,(0,s.g)(h.WM.get(),H,e.direction[1]<0?-1:1)),(0,y.f)(Q,w,H,o)}(this._resizeHandles[e.activeHandleIdx],e.startPoint,t.renderEnd,this.view.state.camera,this._startPlane,(0,y.c)(this.analysisViewData.plane));this._updateBoundedPlane(a)}}_updateBoundedPlane(e){const t=this.analysisViewData;if(!(0,d.pC)(t))throw new Error("valid internal object expected");t.plane=e}_updatePreviewPlane(e,t={}){let i=this._previewPlane;if(this._previewPlane=null,(0,d.Wi)(e))return this._removeFrameTask(),void this._updateManipulators();if(!this.analysisViewData.plane&&this.active){const a=(0,d.pC)(i)?i:(0,y.a)();if(i=(0,d.pC)(i)?(0,y.c)(i,Yi):null,this._pickPlane(e,!0,t,a)){const n=.95;let o=!1;(0,d.pC)(i)&&(o=(0,s.e)(i.plane,a.plane){this._previewPlaneOpacity=Math.min(this._previewPlaneOpacity+a/300,1),this._updateManipulators(),1===this._previewPlaneOpacity&&this._removeFrameTask()}}):(0,d.Wi)(this._previewPlane)&&(0,d.pC)(this._frameTask)?this._removeFrameTask():(0,d.pC)(this._previewPlane)&&this._updateManipulators()}_removeFrameTask(){this._frameTask=(0,d.hw)(this._frameTask)}_calculatePickRay(e){const t=(0,T.Ue)(),i=(0,he.md)(e,Xi);return(0,yt.u4)(this.view.state.camera,i,t),(0,s.n)(t.direction,t.direction),t}_pickMinResult(e){const t=(0,he.md)(e,h.qW.get());return this.view.sceneIntersectionHelper.intersectToolIntersectorScreen(t,this._intersector),this._intersector.results.min}_pickPlane(e,t,i,a){const n=this._pickMinResult(e),o=h.WM.get();if(!n.getIntersectionPoint(o))return!1;const c=n.getTransformedNormal(h.WM.get()),u=this.view.state.camera;(0,s.e)(c,u.viewForward)>0&&(0,s.g)(c,c,-1);const f=function Ci(e,t){return.4*Math.min(t.width,t.height)*t.computeRenderPixelSizeAt(e)}(o,u),E=(t?1:-1)*f*.02,P=(0,s.g)(h.WM.get(),c,E);return(0,s.a)(P,P,o),function mi(e,t,i,a,n,o,c,u){return function Pi(e,t,i,a,n,o){const c=(0,s.e)(e,t),u=h.WM.get(),f=h.WM.get();switch(a===re.HORIZONTAL_OR_VERTICAL?Math.abs(c)>At?re.HORIZONTAL:re.VERTICAL:a){case re.VERTICAL:{const P=Math.abs(c)<=at?e:i.viewUp;(0,s.f)(u,P,t),(0,s.c)(f,t);break}case re.HORIZONTAL:(0,s.f)(u,i.viewUp,t),(0,s.f)(f,t,u);break;case re.TILTED:{const P=Math.abs(c)<=at?t:i.viewUp;(0,s.f)(u,P,e),(0,s.f)(f,e,u);break}}const E=(0,s.f)(h.WM.get(),u,f);(0,s.e)(E,i.viewForward)>0&&(0,s.g)(f,f,-1),(0,s.n)(n,u),(0,s.n)(o,f)}(t,c.worldUpAtPosition(e,h.WM.get()),n,o,u.basis1,u.basis2),(0,s.g)(u.basis1,u.basis1,i),(0,s.g)(u.basis2,u.basis2,a),(0,s.c)(u.origin,e),(0,_.my)(u.basis2,u.basis1,u.origin,u.plane),u}(P,c,f,f,u,i[De]?re.VERTICAL:i[ae]?re.HORIZONTAL:this.analysis.tiltEnabled?re.TILTED:re.HORIZONTAL_OR_VERTICAL,this.view.renderCoordsHelper,a),!0}_clearPointerMoveTimeout(){this._prevPointerMoveTimeout=(0,d.hw)(this._prevPointerMoveTimeout)}_resetPointerMoveTimeout(){this._clearPointerMoveTimeout(),this.shiftManipulator.state|=K,this.rotateHeadingManipulator.state|=K,this.rotateTiltManipulator.state|=K,this._prevPointerMoveTimeout=this._clock.setTimeout(()=>{this.shiftManipulator.state&=~K,this.rotateHeadingManipulator.state&=~K,this.rotateTiltManipulator.state&=~K},this._pointerMoveTimerMs)}_updateManipulators(){if(tt.disableEngineLayers)return;let e=null,t=!1;if((0,d.pC)(this.analysisViewData.plane))e=this.analysisViewData.plane,t=!1;else{if(!(0,d.pC)(this._previewPlane))return this.shiftManipulator.available=!1,this.rotateHeadingManipulator.available=!1,this.rotateTiltManipulator.available=!1,this.resizeManipulators.forEach(c=>c.available=!1),this._previewPlaneOutlineVisualElement.visible=!1,void(this._previewPlaneGridVisualElement.visible=!1);e=this._previewPlane,t=!0}const i=mt(e,h.MP.get());t?(this.shiftManipulator.available=!1,this.rotateHeadingManipulator.available=!1,this.rotateTiltManipulator.available=!1,this.resizeManipulators.forEach(c=>c.available=!1),this._previewPlaneOutlineVisualElement.attached=!0,this._previewPlaneGridVisualElement.attached=!0,this._previewPlaneOutlineVisualElement.visible=!0,this._previewPlaneGridVisualElement.visible=!0):(this.shiftManipulator.available=!0,this.rotateHeadingManipulator.available=!0,this.rotateTiltManipulator.available=this.analysis.tiltEnabled,this.resizeManipulators.forEach(c=>c.available=!0),function Ei(e,t,i,a){const n=Xe(i,ue.NEGATIVE_X),o=h.MP.get();(0,O.o)(o,t,n.edge*Math.PI/2);const c=(0,s.n)(h.WM.get(),n.basis);let u=(0,s.g)(h.WM.get(),c,n.direction*a.computeScreenPixelSizeAt(n.position)*40);(0,s.a)(u,u,n.position);const f=a.projectToRenderScreen(u,(0,he.Wv)(h.WM.get())),E=function Ti(e,t){const[i,a,n,o]=e.viewport,c=Math.min(n,o)/16;let u=!0;return t[0]i+n-c&&(t[0]=i+n-c,u=!1),t[1]a+o-c&&(t[1]=a+o-c,u=!1),u}(a,f);(0,yt.Bh)(a,f,He),(0,s.n)(He.direction,He.direction);const P=h.WM.get();!E&&(0,y.i)(i,He,P)&&(u=P),o[12]=0,o[13]=0,o[14]=0,e.modelTransform=o,e.renderLocation=(0,m.a)(u),E?e.state|=Ne:e.state&=~Ne}(this.shiftManipulator,i,e,this.view.state.camera),function _i(e,t,i,a){const n=a.worldUpAtPosition(i.origin,h.WM.get()),o=Xe(i,ue.POSITIVE_X),c=(0,O.b)(h.MP.get(),o.edge*Math.PI/2);(0,O.r)(c,c,-$e(i,n)),(0,O.m)(c,t,c),c[12]=0,c[13]=0,c[14]=0,e.modelTransform=c,e.renderLocation=o.position}(this.rotateHeadingManipulator,i,e,this.view.renderCoordsHelper),function Di(e,t,i){const a=Xe(i,ue.POSITIVE_Y),n=(0,O.b)(h.MP.get(),a.edge*Math.PI/2);(0,O.r)(n,n,Ee),(0,O.m)(n,t,n),n[12]=0,n[13]=0,n[14]=0,e.modelTransform=n,e.renderLocation=a.position}(this.rotateTiltManipulator,i,e),this.resizeManipulators.forEach((c,u)=>function Vi(e,t,i,a){const n=(0,s.l)(a.basis1),o=(0,s.l)(a.basis2),c=wt(a),u=ke(a),f=(0,s.s)(h.WM.get(),0,0,0);(0,s.a)(f,(0,s.g)(h.WM.get(),a.basis1,t.direction[0]),(0,s.g)(h.WM.get(),a.basis2,t.direction[1])),(0,s.a)(f,a.origin,f);let E=0,P=1;if(Qe(t))1===t.direction[0]&&-1===t.direction[1]?E=Ee:1===t.direction[0]&&1===t.direction[1]?E=Math.PI:-1===t.direction[0]&&1===t.direction[1]&&(E=3*Math.PI/2),P=u;else{const N=0!==t.direction[0]?1:2;E=1===N?Ee:0,P=(1===N?o:n)-c}const C=(0,O.b)(h.MP.get(),E);(0,O.k)(C,C,(0,s.s)(h.WM.get(),P,P,P)),(0,O.m)(C,i,C),C[12]=0,C[13]=0,C[14]=0,e.modelTransform=C,e.renderLocation=f}(c,this._resizeHandles[u],i,e)),this._previewPlaneOutlineVisualElement.visible=!1,this._previewPlaneGridVisualElement.visible=!1);const a=(0,s.s)(h.WM.get(),(0,s.l)(e.basis1),(0,s.l)(e.basis2),1),n=(0,O.C)(h.MP.get(),a),o=(0,O.m)(n,i,n);this._previewPlaneOutlineVisualElement.transform=o,this._previewPlaneGridVisualElement.transform=o,this._updateMaterials()}_updateMaterials(){this._previewPlaneOutlineVisualElement.color=[we[0],we[1],we[2],we[3]*this._previewPlaneOpacity],this._previewPlaneGridVisualElement.backgroundColor=[Ce[0],Ce[1],Ce[2],Ce[3]*this._previewPlaneOpacity],this._previewPlaneGridVisualElement.gridColor=[0,0,0,0]}_updateManipulatorsInteractive(e){if(!e.grabbing)return this.shiftManipulator.interactive=!0,this.rotateHeadingManipulator.interactive=!0,this.rotateTiltManipulator.interactive=!0,void this.resizeManipulators.forEach(t=>{t.interactive=!0});this.shiftManipulator.interactive=this.shiftManipulator===e,this.rotateHeadingManipulator.interactive=this.rotateHeadingManipulator===e,this.rotateTiltManipulator.interactive=this.rotateTiltManipulator===e,this.resizeManipulators.forEach(t=>{t.interactive=t===e})}testData(){return{plane:this.analysisViewData.plane,setPointerMoveTimerMs:e=>{this._pointerMoveTimerMs=e}}}};function It(e,t,i,a){const n=function bi(e,t,i,a){const n=(0,s.f)(h.WM.get(),t,i);return(0,s.f)(n,n,t),(0,_.Yq)(e,n,a)}(i,(0,y.n)(a),e.direction,(0,_.Ue)()),o=(0,m.c)();return(0,_.BR)(n,e,o)?{type:"shift",creatingPointerId:t,hasBeenDragged:!1,shiftPlane:n,depth:0,startPoint:o}:null}function it(e){return"mouse"!==e.pointerType||0===e.button}Y.disableEngineLayers=!1,(0,g._)([(0,v.Cb)()],Y.prototype,"_clock",void 0),(0,g._)([(0,v.Cb)({constructOnly:!0})],Y.prototype,"view",void 0),(0,g._)([(0,v.Cb)()],Y.prototype,"analysisViewData",void 0),(0,g._)([(0,v.Cb)({readOnly:!0})],Y.prototype,"state",null),(0,g._)([(0,v.Cb)({readOnly:!0})],Y.prototype,"cursor",null),(0,g._)([(0,v.Cb)()],Y.prototype,"analysis",null),(0,g._)([(0,v.Cb)()],Y.prototype,"removeIncompleteOnCancel",void 0),(0,g._)([(0,v.Cb)({readOnly:!0})],Y.prototype,"layersMode",void 0),(0,g._)([(0,v.Cb)({value:null})],Y.prototype,"inputState",null),(0,g._)([(0,v.Cb)()],Y.prototype,"_isPlacingSlicePlane",null),(0,g._)([(0,v.Cb)()],Y.prototype,"_creatingPointerId",null),Y=tt=(0,g._)([(0,D.j)("esri.views.3d.analysis.Slice.SliceTool")],Y);const Yi=(0,y.a)(),Xi=(0,he.s1)(),ki=Y;var Qi=l(54889);let ve=class extends A.Z{constructor(e){super(e),this._handles=new q.Z,this._gridVisualElement=null,this._outlineVisualElement=null,this.showGrid=!1,this.preview=!0}initialize(){const e=this.analysisViewData;if((0,d.Wi)(e))throw new Error("expected internal object to be valid");this._gridVisualElement=Et(this.view),this._outlineVisualElement=bt(this.view),this._handles.add([(0,G.YP)(()=>({visible:(0,d.pC)(e.plane)&&this.analysisViewData.visible,active:this.analysisViewData.active,preview:this.preview,showGrid:this.showGrid}),t=>this._updateMaterials(t),G.tX),(0,G.YP)(()=>e.plane,t=>this._updatePlane(t),G.tX)],"internal")}destroy(){this._handles.destroy(),this._gridVisualElement=(0,d.SC)(this._gridVisualElement),this._outlineVisualElement=(0,d.SC)(this._outlineVisualElement),this.set("view",null)}_updatePlane(e){if((0,d.Wi)(e))return;this._gridVisualElement.attached=!0,this._outlineVisualElement.attached=!0;const t=(0,s.s)(h.WM.get(),(0,s.l)(e.basis1),(0,s.l)(e.basis2),1),i=(0,O.C)(h.MP.get(),t),a=mt(e,h.MP.get()),n=(0,O.m)(i,a,i);this._outlineVisualElement.transform=n,this._gridVisualElement.transform=n}_updateMaterials({visible:e,active:t,preview:i,showGrid:a}){this._outlineVisualElement.color=we,this._outlineVisualElement.width=i?2:1,this._outlineVisualElement.stipplePattern=t?null:(0,Qi.z5)(5),this._gridVisualElement.backgroundColor=Ce,this._gridVisualElement.gridColor=a?rt:W.Z,this._gridVisualElement.visible=e,this._outlineVisualElement.visible=e}};(0,g._)([(0,v.Cb)()],ve.prototype,"view",void 0),(0,g._)([(0,v.Cb)()],ve.prototype,"analysis",void 0),(0,g._)([(0,v.Cb)()],ve.prototype,"analysisViewData",void 0),(0,g._)([(0,v.Cb)()],ve.prototype,"showGrid",void 0),(0,g._)([(0,v.Cb)()],ve.prototype,"preview",void 0),ve=(0,g._)([(0,D.j)("esri.views.3d.analysis.Slice.SliceVisualization")],ve);var Wt=l(95925);let de=class extends((0,U.p)(A.Z)){constructor(e){super(e),this.type="slice-view-3d",this.analysis=null,this.tool=null,this.analysisVisualization=null,this.analysisController=null,this.plane=null,this.active=!0}initialize(){this.analysisVisualization=new ve({view:this.view,analysis:this.analysis,analysisViewData:this}),this.analysisController=new fe({view:this.view,analysis:this.analysis,analysisViewData:this}),this.addHandles((0,Wt.Lp)(this,ki))}destroy(){(0,Wt.Yq)(this),this.analysisVisualization=(0,d.SC)(this.analysisVisualization),this.analysisController=(0,d.SC)(this.analysisController)}get showGrid(){return this.analysisVisualization?.showGrid??!1}set showGrid(e){this.analysisVisualization&&(this.analysisVisualization.showGrid=e)}get editable(){return!this.analysisVisualization.preview}set editable(e){this.analysisVisualization.preview=!e}get testData(){return{visualization:this.analysisVisualization,controller:this.analysisController,tool:(0,d.Wg)(this.tool)}}};(0,g._)([(0,v.Cb)({readOnly:!0})],de.prototype,"type",void 0),(0,g._)([(0,v.Cb)({constructOnly:!0,nonNullable:!0})],de.prototype,"analysis",void 0),(0,g._)([(0,v.Cb)()],de.prototype,"tool",void 0),(0,g._)([(0,v.Cb)()],de.prototype,"plane",void 0),(0,g._)([(0,v.Cb)()],de.prototype,"active",void 0),(0,g._)([(0,v.Cb)()],de.prototype,"showGrid",null),(0,g._)([(0,v.Cb)()],de.prototype,"editable",null),de=(0,g._)([(0,D.j)("esri.views.3d.analysis.SliceAnalysisView3D")],de);const $i=de},10023:(Te,ie,l)=>{l.d(ie,{V:()=>ee,e:()=>v});var g=l(15861),A=l(62208),d=l(36630);function v(D){return le.apply(this,arguments)}function le(){return(le=(0,g.Z)(function*(D,U=D.popupTemplate){if((0,A.Wi)(U))return[];const F=yield U.getRequiredFields(D.fieldsIndex),{lastEditInfoEnabled:te}=U,{objectIdField:j,typeIdField:J,globalIdField:Z,relationships:z}=D;if(F.includes("*"))return["*"];const L=te?yield(0,d.CH)(D):[],S=(0,d.Q0)(D.fieldsIndex,[...F,...L]);return J&&S.push(J),S&&j&&D.fieldsIndex.has(j)&&!S.includes(j)&&S.push(j),S&&Z&&D.fieldsIndex.has(Z)&&!S.includes(Z)&&S.push(Z),z&&z.forEach(oe=>{const{keyField:q}=oe;S&&q&&D.fieldsIndex.has(q)&&!S.includes(q)&&S.push(q)}),S})).apply(this,arguments)}function ee(D,U){return D.popupTemplate?D.popupTemplate:(0,A.pC)(U)&&U.defaultPopupTemplateEnabled&&(0,A.pC)(D.defaultPopupTemplate)?D.defaultPopupTemplate:null}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9325.e3ba317ca6c21c43.js b/apps/n/porrtal-io-app/public/angular/9325.e3ba317ca6c21c43.js deleted file mode 100644 index 801ba225..00000000 --- a/apps/n/porrtal-io-app/public/angular/9325.e3ba317ca6c21c43.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9325],{9325:(E,g,n)=>{n.r(g),n.d(g,{CalciteNotice:()=>w,defineCustomElement:()=>_});var f=n(15861),e=n(76210),d=(()=>{return(t=d||(d={})).green="checkCircle",t.yellow="exclamationMarkTriangle",t.red="exclamationMarkTriangle",t.blue="lightbulb",d;var t})(),m=n(46203),h=n(8225),u=n(98635);const x=(0,e.GH)(class extends e.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteNoticeClose=(0,e.yM)(this,"calciteNoticeClose",6),this.calciteNoticeOpen=(0,e.yM)(this,"calciteNoticeOpen",6),this.active=!1,this.open=!1,this.color="blue",this.dismissible=!1,this.closable=!1,this.intlClose="Close",this.scale="m",this.width="auto",this.close=()=>{this.open=!1,this.calciteNoticeClose.emit()}}activeHandler(t){this.open=t}openHandler(t){this.active=t}handleDismissible(t){this.closable=t}handleClosable(t){this.dismissible=t}updateRequestedIcon(){this.requestedIcon=(0,m.s)(d,this.icon,this.color)}connectedCallback(){(0,h.c)(this);const t=this.active||this.open;t&&(this.activeHandler(t),this.openHandler(t)),this.dismissible&&this.handleDismissible(this.dismissible),this.closable&&this.handleClosable(this.closable)}disconnectedCallback(){(0,h.d)(this)}componentWillLoad(){this.requestedIcon=(0,m.s)(d,this.icon,this.color)}render(){const{el:t}=this,i=(0,e.h)("button",{"aria-label":this.intlClose,class:"notice-close",onClick:this.close,ref:o=>this.closeButton=o},(0,e.h)("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),l=(0,m.b)(t,"actions-end");return(0,e.h)("div",{class:"container"},this.requestedIcon?(0,e.h)("div",{class:"notice-icon"},(0,e.h)("calcite-icon",{icon:this.requestedIcon,scale:"l"===this.scale?"m":"s"})):null,(0,e.h)("div",{class:"notice-content"},(0,e.h)("slot",{name:"title"}),(0,e.h)("slot",{name:"message"}),(0,e.h)("slot",{name:"link"})),l?(0,e.h)("div",{class:"actions-end"},(0,e.h)("slot",{name:"actions-end"})):null,this.closable?i:null)}setFocus(){var t=this;return(0,f.Z)(function*(){const i=t.el.querySelector("calcite-link");!t.closeButton&&!i||(i?i.setFocus():t.closeButton&&t.closeButton.focus())})()}get el(){return this}static get watchers(){return{active:["activeHandler"],open:["openHandler"],dismissible:["handleDismissible"],closable:["handleClosable"],icon:["updateRequestedIcon"],color:["updateRequestedIcon"]}}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:none;inline-size:100%;background-color:var(--calcite-ui-foreground-1);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;max-block-size:0;text-align:start;border-inline-start:0px solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host{display:flex}:host([open]) .container{pointer-events:auto;display:flex;max-block-size:100%;align-items:center;border-width:2px;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.notice-close:active{background-color:var(--calcite-ui-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([color=blue]) .container{border-color:var(--calcite-ui-brand)}:host([color=blue]) .container .notice-icon{color:var(--calcite-ui-brand)}:host([color=red]) .container{border-color:var(--calcite-ui-danger)}:host([color=red]) .container .notice-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .notice-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-color:var(--calcite-ui-success)}:host([color=green]) .container .notice-icon{color:var(--calcite-ui-success)}"}},[1,"calcite-notice",{active:[1540],open:[1540],color:[513],dismissible:[516],closable:[516],icon:[520],intlClose:[1,"intl-close"],scale:[513],width:[513],setFocus:[64]}]);function y(){typeof customElements>"u"||["calcite-notice","calcite-icon"].forEach(i=>{switch(i){case"calcite-notice":customElements.get(i)||customElements.define(i,x);break;case"calcite-icon":customElements.get(i)||(0,u.d)()}})}y();const w=x,_=y},98635:(E,g,n)=>{n.d(g,{I:()=>w,d:()=>_});var f=n(15861),e=n(76210),d=n(46203),m=n(22757);const u={},a={},c={s:16,m:24,l:32};function b(){return(b=(0,f.Z)(function*({icon:t,scale:i}){const l=c[i],o=x(t),p="F"===o.charAt(o.length-1),r=`${p?o.substring(0,o.length-1):o}${l}${p?"F":""}`;if(u[r])return u[r];a[r]||(a[r]=fetch((0,e.K3)(`./assets/icon/${r}.json`)).then(z=>z.json()).catch(()=>(console.error(`"${r}" is not a valid calcite-ui-icon name`),"")));const v=yield a[r];return u[r]=v,v})).apply(this,arguments)}function x(t){const i=!isNaN(Number(t.charAt(0))),l=t.split("-");return 1===l.length?i?`i${t}`:t:l.map((o,p)=>0===p?i?`i${o.toUpperCase()}`:o:o.charAt(0).toUpperCase()+o.slice(1)).join("")}const w=(0,e.GH)(class extends e.mv{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=null,this.flipRtl=!1,this.scale="m",this.visible=!1}connectedCallback(){this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}disconnectedCallback(){var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.intersectionObserver=null}componentWillLoad(){var t=this;return(0,f.Z)(function*(){t.loadIconPathData()})()}render(){const{el:t,flipRtl:i,pathData:l,scale:o,textLabel:p}=this,C=(0,d.c)(t),r=c[o],v=!!p,z=[].concat(l||"");return(0,e.h)(e.AA,{"aria-hidden":(0,d.t)(!v),"aria-label":v?p:null,role:v?"img":null},(0,e.h)("svg",{class:{"flip-rtl":"rtl"===C&&i,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${r} ${r}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},z.map(k=>(0,e.h)("path","string"==typeof k?{d:k}:{d:k.d,opacity:"opacity"in k?k.opacity:1}))))}loadIconPathData(){var t=this;return(0,f.Z)(function*(){const{icon:i,scale:l,visible:o}=t;!e.Z5.isBrowser||!i||!o||(t.pathData=yield function s(t){return b.apply(this,arguments)}({icon:i,scale:l}))})()}waitUntilVisible(t){this.intersectionObserver=(0,m.c)("intersection",i=>{i.forEach(l=>{l.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}static get style(){return"@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){block-size:1rem;inline-size:1rem;min-inline-size:1rem;min-block-size:1rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem;min-inline-size:1.5rem;min-block-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem;min-inline-size:2rem;min-block-size:2rem}.flip-rtl{transform:scaleX(-1)}.svg{display:block}"}},[1,"calcite-icon",{icon:[513],flipRtl:[516,"flip-rtl"],scale:[513],textLabel:[1,"text-label"],pathData:[32],visible:[32]}]);function _(){typeof customElements>"u"||["calcite-icon"].forEach(i=>{"calcite-icon"===i&&(customElements.get(i)||customElements.define(i,w))})}_()},22757:(E,g,n)=>{n.d(g,{c:()=>e});var f=n(76210);function e(m,h,u){if(!f.Z5.isBrowser)return;const a=function d(m){class h extends window.MutationObserver{constructor(a){super(a),this.observedEntry=[],this.callback=a}observe(a,c){return this.observedEntry.push({target:a,options:c}),super.observe(a,c)}unobserve(a){const c=this.observedEntry.filter(s=>s.target!==a);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),c.forEach(s=>this.observe(s.target,s.options))}}return"intersection"===m?window.IntersectionObserver:"mutation"===m?h:window.ResizeObserver}(m);return new a(h,u)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/937.28b94d8e6ce5ee61.js b/apps/n/porrtal-io-app/public/angular/937.28b94d8e6ce5ee61.js deleted file mode 100644 index 2d425718..00000000 --- a/apps/n/porrtal-io-app/public/angular/937.28b94d8e6ce5ee61.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[937],{20937:(K,u,r)=>{r.r(u),r.d(u,{default:()=>Z});var n=r(17626),f=r(26584),v=r(32917),s=r(77712),c=(r(85931),r(90912),r(76898)),I=(r(29132),r(88879)),S=r(14517),C=r(80542),d=r(62208),O=r(60330),b=r(5075),w=r(3542),L=r(36967),V=r(71774);let h=class extends I.Z{getObjectId(){return this.objectId}};(0,n._)([(0,s.Cb)({type:Number,json:{read:!0}})],h.prototype,"objectId",void 0),h=(0,n._)([(0,c.j)("esri.layers.graphics.controllers.StreamGraphic")],h);class E{constructor(t){this.onUpdate=t,this._idToGraphic=new Map}destroy(){this._idToGraphic.clear()}add(t){this._idToGraphic.set(t.objectId,t)}get(t){return this._idToGraphic.get(t)}forEach(t){this._idToGraphic.forEach(t)}removeById(t){const o=this._idToGraphic.get(t);return o?(o.sourceLayer=o.layer=null,this._idToGraphic.delete(t),o):null}update(t,o){this.onUpdate(t,o)}get size(){return this._idToGraphic.size}}let i=class extends((0,C.p)((0,O.v)(S.Z))){constructor(){super(...arguments),this._updateInfo={websocket:0,client:0},this.graphics=new L.g}initialize(){this.addResolvingPromise(this.layer.when(()=>this._startup()))}destroy(){this.clear()}_clearInterval(){this._updateIntervalId&&(clearInterval(this._updateIntervalId),this._updateIntervalId=0)}clear(){this._clearInterval(),this.connection&&(this.connection.destroy(),this.connection=null),this.store&&(this.store.destroy(),this.store=null),this.graphics.clear(),this.handles.removeAll()}get updating(){return!this.connection||"connected"===this.connection.connectionStatus}_startup(){const{layer:e,layerView:t}=this,{parsedUrl:o,spatialReference:l,definitionExpression:p,geometryDefinition:y,objectIdField:D,timeInfo:P,purgeOptions:N,maxReconnectionAttempts:A,maxReconnectionInterval:Q,customParameters:z}=e,J=V.Mk.toJSON(e.geometryType),Y=l,m=t.view.spatialReference,B={geometry:y,where:p};this.clear(),this._set("connection",(0,w.createConnection)(o,Y,m,J,B,A,Q,z)),this._outSpatialReference=m.toJSON(),this.store=new E(this._onUpdate.bind(this)),this.featuresManager=new b.Qo(this.store,D,P.toJSON(),N);const g="startup-watches";this.handles.remove(g),this.handles.add([this.connection.on("data-received",H=>this._onFeature(H)),(0,v.YP)(()=>[e.definitionExpression,e.geometryDefinition,e.purgeOptions],()=>this._startup())],g),this._initUpdateInterval()}_onFeature(e){this._updateInfo.websocket++,this.layerView.hasEventListener("data-received")&&this.layerView.emit("data-received",{attributes:e.attributes,centroid:e.centroid,geometry:e.geometry});try{(0,d.pC)(e.geometry)&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._outSpatialReference);const t=h.fromJSON(e);t.sourceLayer=t.layer=this.layer,this.featuresManager.add(t)}catch{}}_onUpdate(e,t){(0,d.pC)(t)&&this.graphics.removeMany(t),(0,d.pC)(e)&&(this._updateInfo.client+=e.length,this.graphics.addMany(e))}_initUpdateInterval(){this._clearInterval();const{updateInterval:e}=this.layer;let t=performance.now();this._updateIntervalId=setInterval(()=>{const o=performance.now(),l=o-t;if(l>2500){t=o;const p=Math.round(this._updateInfo.client/(l/1e3)),y=Math.round(this._updateInfo.websocket/(l/1e3));this._updateInfo.client=0,this._updateInfo.websocket=0,this.layerView.emit("update-rate",{client:p,websocket:y})}this.featuresManager.checkForUpdates()},e)}pauseStream(){this._clearInterval()}resumeStream(){this._initUpdateInterval()}};(0,n._)([(0,s.Cb)()],i.prototype,"connection",void 0),(0,n._)([(0,s.Cb)()],i.prototype,"layer",void 0),(0,n._)([(0,s.Cb)()],i.prototype,"layerView",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],i.prototype,"updating",null),i=(0,n._)([(0,c.j)("esri.layers.graphics.controllers.StreamController")],i);var M=r(96854),R=r(78448),U=r(19702),G=r(42743),F=r(45611),T=r(98624);const x=e=>{let t=class extends e{constructor(...o){super(...o),this.connectionError=null,this.filter=null}get connectionStatus(){return this.controller?.connection?.connectionStatus??"disconnected"}};return(0,n._)([(0,s.Cb)({readOnly:!0})],t.prototype,"connectionError",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],t.prototype,"connectionStatus",null),(0,n._)([(0,s.Cb)({type:T.Z})],t.prototype,"filter",void 0),t=(0,n._)([(0,c.j)("esri.layers.mixins.StreamLayerView")],t),t};let a=class extends(x((0,R.R)((0,U.A)(F.Z)))){constructor(){super(...arguments),this.type="stream-3d",this.updatePolicy=G.jq.ASYNC,this.hasZ=!0,this.hasM=!1}initialize(){this.handles.add((0,v.YP)(()=>this.suspended,e=>{this.controller&&(e?this.controller.pauseStream():this.controller.resumeStream())}))}get connectionError(){const e=this.get("controller.connection.errorString");if(e)return new f.Z("stream-controller",e)}createQuery(){return new M.Z({outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference})}queryLatestObservations(e,t){return this.queryEngine.executeQueryForLatestObservations(this._ensureQuery(e),t?.signal)}createController(){return new i({layer:this.layer,layerView:this})}beforeSetController(){}};(0,n._)([(0,s.Cb)({readOnly:!0})],a.prototype,"updatePolicy",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],a.prototype,"connectionError",null),(0,n._)([(0,s.Cb)()],a.prototype,"controller",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],a.prototype,"hasZ",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],a.prototype,"hasM",void 0),a=(0,n._)([(0,c.j)("esri.views.3d.layers.StreamLayerView3D")],a);const Z=a}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9372.e0ef28d07ab46b99.js b/apps/n/porrtal-io-app/public/angular/9372.e0ef28d07ab46b99.js deleted file mode 100644 index 53cdcb7f..00000000 --- a/apps/n/porrtal-io-app/public/angular/9372.e0ef28d07ab46b99.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9372,3542],{65389:(R,O,i)=>{i.d(O,{Z:()=>w});var _=i(62208);class w{constructor(y){this.size=0,this._start=0,this.maxSize=y,this._buffer=new Array(y)}get entries(){return this._buffer}enqueue(y){if(this.size===this.maxSize){const a=this._buffer[this._start];return this._buffer[this._start]=y,this._start=(this._start+1)%this.maxSize,a}return this._buffer[(this._start+this.size++)%this.maxSize]=y,null}dequeue(){if(0===this.size)return null;const y=this._buffer[this._start];return this._buffer[this._start]=null,this.size--,this._start=(this._start+1)%this.maxSize,y}peek(){return 0===this.size?null:this._buffer[this._start]}find(y){if(0===this.size)return null;for(const a of this._buffer)if((0,_.pC)(a)&&y(a))return a;return null}clear(y){let a=this.dequeue();for(;(0,_.pC)(a);)y&&y(a),a=this.dequeue()}}},5075:(R,O,i)=>{i.d(O,{Qo:()=>f});var _=i(65389),w=i(21286),v=i(62208);const a="__esri_timestamp__";class f{constructor(o,c,u,h,b=128){this._trackIdToObservations=new Map,this._idCounter=0,this._lastPurge=performance.now(),this._addOrUpdated=new Map,this._removed=[],this._maxAge=0,this._timeInfo=u,this._purgeOptions=h,this.store=o,this.objectIdField=c,this.purgeInterval=b,this._useGeneratedIds="__esri_stream_id__"===this.objectIdField}add(o){if(this._useGeneratedIds){const h=this._nextId();o.attributes[this.objectIdField]=h,o.objectId=h}else o.objectId=o.attributes[this.objectIdField];if(this._addOrUpdated.set(o.objectId,o),this._maxAge=Math.max(this._maxAge,o.attributes[this._timeInfo.startTimeField]),!this._timeInfo.trackIdField)return(0,v.Wi)(this._trackIdLessObservations)&&(this._trackIdLessObservations=new _.Z(1e5)),void this._trackIdLessObservations.enqueue(o.objectId);const c=o.attributes[this._timeInfo.trackIdField];if(!this._trackIdToObservations.has(c)){const h=(0,v.pC)(this._purgeOptions)&&null!=this._purgeOptions.maxObservations?this._purgeOptions.maxObservations:1e3,b=(0,w.uZ)(h,0,1e3);this._trackIdToObservations.set(c,new _.Z(b))}const u=this._trackIdToObservations.get(c).enqueue(o.objectId);(0,v.pC)(u)&&(this._addOrUpdated.has(u)?this._addOrUpdated.delete(u):this._removed.push(u))}checkForUpdates(){const o=this._getToAdd(),c=this._getToRemove(),u=performance.now();u-this._lastPurge>=this.purgeInterval&&(this._purge(u),this._lastPurge=u);const h=[];if((0,v.pC)(c))for(const b of c){const Z=this.store.removeById(b);(0,v.pC)(Z)&&h.push(Z)}if((0,v.pC)(o))for(const b of o)b.attributes[a]=u,this.store.add(b);(o||h?.length)&&this.store.update(o,h)}_getToAdd(){if(!this._addOrUpdated.size)return null;const o=new Array(this._addOrUpdated.size);let c=0;return this._addOrUpdated.forEach(u=>o[c++]=u),this._addOrUpdated.clear(),o}_getToRemove(){const o=this._removed;return this._removed.length?(this._removed=[],o):null}_nextId(){const o=this._idCounter;return this._idCounter=(this._idCounter+1)%4294967294+1,o}_purge(o){const c=this._purgeOptions;(0,v.pC)(c)&&(this._purgeSomeByDisplayCount(c),this._purgeByAge(c),this._purgeByAgeReceived(o,c),this._purgeTracks())}_purgeSomeByDisplayCount(o){if(!o.displayCount)return;let c=this.store.size;if(c>o.displayCount){if(this._timeInfo.trackIdField)for(const u of this._trackIdToObservations.values())if(c>o.displayCount&&u.size){const h=(0,v.Wg)(u.dequeue());this._removed.push(h),c--}if((0,v.pC)(this._trackIdLessObservations)){let u=c-o.displayCount;for(;u-- >0;){const h=this._trackIdLessObservations.dequeue();(0,v.pC)(h)&&this._removed.push(h)}}}}_purgeByAge(o){if(!o.age||!this._timeInfo?.startTimeField)return;const u=this._maxAge-60*o.age*1e3;this.store.forEach(h=>{h.attributes[this._timeInfo.startTimeField]{h.attributes[a]{0===o.size&&this._trackIdToObservations.delete(c)})}}},3542:(R,O,i)=>{i.r(O),i.d(O,{createConnection:()=>M});var _=i(15861),w=i(17626),y=(i(29132),i(84792)),a=i(26584),l=i(63290),f=i(62208),F=i(10699),o=i(21726),b=(i(90912),i(85931),i(8314),i(76898)),Z=i(77712),T=i(33696),j=i(61885);let E=class extends j.Z.EventedAccessor{get connectionError(){return this.errorString?new a.Z("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}};(0,w._)([(0,Z.Cb)({readOnly:!0})],E.prototype,"connectionError",null),E=(0,w._)([(0,b.j)("esri.layers.support.StreamConnection")],E);const P=E;var k,e;(e=k||(k={}))[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED";let I=class extends P{constructor(e){super(),this.errorString=null;const{geometryType:t,spatialReference:s,sourceSpatialReference:r}=e;this._config=e,this._featureZScaler=(0,T.k)(t,r,s),this._open()}_open(){var e=this;return(0,_.Z)(function*(){yield e._tryCreateWebSocket(),e.destroyed||(yield e._handshake())})()}destroy(){(0,f.pC)(this._websocket)&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if((0,f.Wi)(this._websocket))return"disconnected";switch(this._websocket.readyState){case k.CONNECTING:case k.OPEN:return"connected";case k.CLOSING:case k.CLOSED:return"disconnected"}}_tryCreateWebSocket(e=this._config.source.path,t=1e3,s=0){var r=this;return(0,_.Z)(function*(){try{if(r.destroyed)return;const n=(0,o.fl)(e,r._config.customParameters);r._websocket=yield r._createWebSocket(n),r.notifyChange("connectionStatus")}catch(n){const d=t/1e3;return r._config.maxReconnectionAttempts&&s>=r._config.maxReconnectionAttempts?(l.Z.getLogger(r.declaredClass).error(new a.Z("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void r.destroy()):(l.Z.getLogger(r.declaredClass).error(new a.Z("websocket-connection",`Failed to connect. Attempting to reconnect in ${d}s`,n)),yield(0,F.e4)(t),r._tryCreateWebSocket(e,Math.min(1.5*t,1e3*r._config.maxReconnectionInterval),s+1))}})()}_createWebSocket(e){return new Promise((t,s)=>{const r=new WebSocket(e);r.onopen=()=>{if(r.onopen=null,this.destroyed)return r.onclose=null,void r.close();r.onclose=n=>this._onClose(n),r.onerror=n=>this._onError(n),r.onmessage=n=>this._onMessage(n),t(r)},r.onclose=n=>{r.onopen=r.onclose=null,s(n)}})}_handshake(e=1e4){var t=this;return(0,_.Z)(function*(){const s=t._websocket;if((0,f.Wi)(s))return;const r=(0,F.hh)(),n=s.onmessage,{filter:d,outFields:g,spatialReference:S}=t._config;return r.timeout(e),s.onmessage=C=>{let m=null;try{m=JSON.parse(C.data)}catch{}m&&"object"==typeof m||(l.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Protocol violation. Handshake failed - malformed message",C.data)),r.reject(),t.destroy()),m.spatialReference?.wkid!==S?.wkid&&(l.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${S.wkid}`,C.data)),r.reject(),t.destroy()),"json"!==m.format&&(l.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Protocol violation. Handshake failed - format is not set",C.data)),r.reject(),t.destroy()),d&&m.filter!==d&&l.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Tried to set filter, but server doesn't support it")),g&&m.outFields!==g&&l.Z.getLogger(t.declaredClass).error(new a.Z("websocket-connection","Tried to set outFields, but server doesn't support it")),s.onmessage=n,r.resolve()},s.send(JSON.stringify({filter:d,outFields:g,format:"json",spatialReference:{wkid:S.wkid}})),r.promise})()}_onMessage(e){try{const t=JSON.parse(e.data);if("featureResult"!==t.type)throw new a.Z("websocket-connection","Protocol violation - Expected to find message of type 'featureResult'",t);for(const s of t.features)(0,f.pC)(this._featureZScaler)&&this._featureZScaler(s.geometry),this.onFeature(s)}catch(t){return l.Z.getLogger(this.declaredClass).error(new a.Z("websocket-connection","Failed to parse message",t)),void this.destroy()}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),l.Z.getLogger(this.declaredClass).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&l.Z.getLogger(this.declaredClass).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,w._)([(0,Z.Cb)()],I.prototype,"connectionStatus",null),(0,w._)([(0,Z.Cb)()],I.prototype,"errorString",void 0),I=(0,w._)([(0,b.j)("esri.layers.graphics.sources.connections.WebSocketConnection")],I);var L=i(20477),W=i(96854),U=i(91179),A=i(65234);const D={maxQueryDepth:5,maxRecordCountFactor:3};let x=class extends I{constructor(e){super({...D,...e})}_open(){var e=this;return(0,_.Z)(function*(){const t=yield e._fetchServiceDefinition(e._config.source);t.timeInfo.trackIdField||l.Z.getLogger(e.declaredClass).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const s=e._fetchWebSocketUrl(t.streamUrls,e._config.spatialReference);e._buddyServicesQuery||(e._buddyServicesQuery=e._queryBuddyServices()),yield e._buddyServicesQuery,yield e._tryCreateWebSocket(s);const{filter:r,outFields:n}=e._config;e.destroyed||e._setFilter(r,n)})()}_onMessage(e){let t;try{t=this._enrich(JSON.parse(e.data)),(0,f.pC)(this._featureZScaler)&&this._featureZScaler(t.geometry)}catch(s){return void l.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Failed to parse message",s))}this.onFeature(t)}_fetchServiceDefinition(e){var t=this;return(0,_.Z)(function*(){const s={f:"json",...t._config.customParameters},r=(0,y.default)(e.path,{query:s,responseType:"json"}),n=(yield r).data;return t._serviceDefinition=n,n})()}_fetchWebSocketUrl(e,t){const s=e[0],{urls:r,token:n}=s,d=this._inferWebSocketBaseUrl(r);return(0,o.fl)(`${d}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return l.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Unable to infer WebSocket url",e)),null}_setFilter(e,t){var s=this;return(0,_.Z)(function*(){const r=s._websocket;if((0,f.Wi)(r)||(0,f.Wi)(e)&&(0,f.Wi)(t))return;const n=JSON.stringify({filter:s._serializeFilter(e,t)});let d=!1;const g=(0,F.hh)();return r.onmessage=m=>{const p=JSON.parse(m.data);p.filter&&(p.error&&(l.Z.getLogger(s.declaredClass).error(new a.Z("geoevent-connection","Failed to set service filter",p.error)),s._set("errorString",`Could not set service filter - ${p.error}`),g.reject(p.error)),r.onmessage=s._onMessage.bind(s),d=!0,g.resolve())},r.send(n),setTimeout(()=>{d||(s.destroyed||s._websocket!==r||l.Z.getLogger(s.declaredClass).error(new a.Z("geoevent-connection","Server timed out when setting filter")),g.reject())},1e4),g.promise})()}_serializeFilter(e,t){const s={};if((0,f.Wi)(e)&&(0,f.Wi)(t))return s;if((0,f.pC)(e)&&e.geometry)try{const r=(0,U.im)(e.geometry);if("extent"!==r.type)throw new a.Z(`Expected extent but found type ${r.type}`);s.geometry=JSON.stringify(r.shiftCentralMeridian())}catch(r){l.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Encountered an error when setting connection geometryDefinition",r))}return(0,f.pC)(e)&&e.where&&"1 = 1"!==e.where&&(s.where=e.where),(0,f.pC)(t)&&(s.outFields=t.join(",")),s}_enrich(e){if(!this._relatedFeatures)return e;const s=e.attributes[this._serviceDefinition.relatedFeatures.joinField];if(!this._relatedFeatures.has(s))return l.Z.getLogger(this.declaredClass).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:r,geometry:n}=this._relatedFeatures.get(s);for(const d in r)e.attributes[d]=r[d];return n&&(e.geometry=n),e.geometry||e.centroid||l.Z.getLogger(this.declaredClass).error(new a.Z("geoevent-connection","Found malformed feature - no geometry found",e)),e}_queryBuddyServices(){var e=this;return(0,_.Z)(function*(){try{const{relatedFeatures:t,keepLatestArchive:s}=e._serviceDefinition,r=e._queryRelatedFeatures(t),n=e._queryArchive(s);yield r;const d=yield n;if(!d)return;for(const g of d.features)e.onFeature(e._enrich(g))}catch(t){l.Z.getLogger(e.declaredClass).error(new a.Z("geoevent-connection","Encountered an error when querying buddy services",{error:t}))}})()}_queryRelatedFeatures(e){var t=this;return(0,_.Z)(function*(){if(!e)return;const s=yield t._queryBuddy(e.featuresUrl);t._addRelatedFeatures(s)})()}_queryArchive(e){var t=this;return(0,_.Z)(function*(){if(e)return t._queryBuddy(e.featuresUrl)})()}_queryBuddy(e){var t=this;return(0,_.Z)(function*(){const s=new((yield Promise.resolve().then(i.bind(i,80415))).default)({url:e}),{capabilities:r}=yield s.load(),n=r.query.supportsMaxRecordCountFactor,d=r.query.supportsPagination,g=r.query.supportsCentroid,S=t._config.maxRecordCountFactor,C=s.capabilities.query.maxRecordCount,m=n?C*S:C,p=new W.Z;if(p.outFields=(0,f.Pt)(t._config.outFields,["*"]),p.where=(0,f.Pt)((0,f.U2)(t._config.filter,"where"),"1=1"),p.returnGeometry=!0,p.returnExceededLimitFeatures=!0,p.outSpatialReference=A.Z.fromJSON(t._config.spatialReference),g&&(p.returnCentroid=!0),n&&(p.maxRecordCountFactor=S),d)return p.num=m,s.destroy(),t._queryPages(e,p);const B=yield(0,L.executeQuery)(e,p,t._config.sourceSpatialReference);return s.destroy(),B.data})()}_queryPages(e,t,s=[],r=0){var n=this;return(0,_.Z)(function*(){t.start=(0,f.pC)(t.num)?r*t.num:null;const{data:d}=yield(0,L.executeQuery)(e,t,n._config.sourceSpatialReference);return d.exceededTransferLimit&&rs.push(g)),n._queryPages(e,t,s,r+1)):(s.forEach(g=>d.features.push(g)),d)})()}_addRelatedFeatures(e){const t=new Map,s=e.features,r=this._serviceDefinition.relatedFeatures.joinField;for(const n of s)t.set(n.attributes[r],n);this._relatedFeatures=t}};x=(0,w._)([(0,b.j)("esri.layers.graphics.sources.connections.GeoEventConnection")],x);const z=x;function M(e,t,s,r,n,d,g,S){const C=0===e.path.indexOf("wss://")||0===e.path.indexOf("ws://"),m={source:e,sourceSpatialReference:t,spatialReference:s,geometryType:r,filter:n,maxReconnectionAttempts:d,maxReconnectionInterval:g,customParameters:S};return C?new I(m):new z(m)}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/9410.d24652d4b7b192b4.js b/apps/n/porrtal-io-app/public/angular/9410.d24652d4b7b192b4.js deleted file mode 100644 index d4314cf6..00000000 --- a/apps/n/porrtal-io-app/public/angular/9410.d24652d4b7b192b4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[9410],{49410:(T,D,e)=>{e.d(D,{Z:()=>k});var t=e(15861),s=e(17626),a=e(88879),v=e(73281),c=(e(4832),e(49067),e(96794),e(69747),e(40425),e(69357),e(40342),e(73640),e(33474),e(32088)),M=e(84792),u=e(26584),g=e(2076),f=e(47996),L=e(63290),O=e(62208),B=e(60330),p=e(77712),x=(e(85931),e(90912),e(55342)),K=e(68653),W=e(76898),F=e(2004),Q=e(65234),R=e(80415),N=e(11136),Z=e(59787),G=e(13812),H=e(55911),J=e(60466),z=e(36630),V=e(60595),b=e(35031),$=e(96854),Y=e(49430),X=e(82706),w=e(42964),U=e(10023);const S="esri.layers.buildingSublayers.BuildingComponentSublayer",q=L.Z.getLogger(S),A=(0,H.v)();let o=class extends(f.Z.LoadableMixin((0,B.v)(N.Z))){constructor(r){super(r),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new J.Z(this.fields)}readAssociatedLayer(r,n){const i=this.layer.associatedFeatureServiceItem,E=n.associatedLayerID;return(0,O.pC)(i)&&"number"==typeof E?new R.default({portalItem:i,layerId:E}):null}get objectIdField(){if(null!=this.fields)for(const r of this.fields)if("oid"===r.type)return r.name;return null}get displayField(){return(0,O.pC)(this.associatedLayer)?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(r){const n=(0,O.pC)(r)?r.signal:null,i=this._fetchService(n).then(()=>{this.indexInfo=(0,V.T)(this.parsedUrl.path,this.rootNode,this.nodePages,this.apiKey,q,n)});return this.addResolvingPromise(i),Promise.resolve(this)}createPopupTemplate(r){return(0,Y.eZ)(this,r)}_fetchService(r){var n=this;return(0,t.Z)(function*(){const i=(yield(0,M.default)(n.parsedUrl.path,{query:{f:"json",token:n.apiKey},responseType:"json",signal:r})).data;n.read(i,{origin:"service",url:n.parsedUrl})})()}getField(r){return this.fieldsIndex.get(r)}getFieldDomain(r,n){const i=this.getFeatureType(n?.feature)?.domains?.[r];return i&&"inherited"!==i.type?i:this.getField(r)?.domain??null}getFeatureType(r){return r&&(0,O.pC)(this.associatedLayer)?this.associatedLayer.getFeatureType(r):null}get types(){return(0,O.pC)(this.associatedLayer)?this.associatedLayer.types??[]:[]}get typeIdField(){return(0,O.pC)(this.associatedLayer)?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const r=(0,O.pC)(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:Z.C,{query:n,data:{supportsZ:i,supportsM:E,isVersioned:I}}=r;return{query:n,data:{supportsZ:i,supportsM:E,isVersioned:I}}}createQuery(){const r=new $.Z;return"mesh"!==this.geometryType&&(r.returnGeometry=!0,r.returnZ=!0),r.where=this.definitionExpression||"1=1",r.sqlFormat="standard",r}queryExtent(r,n){return this._getAssociatedLayerForQuery().then(i=>i.queryExtent(r||this.createQuery(),n))}queryFeatureCount(r,n){return this._getAssociatedLayerForQuery().then(i=>i.queryFeatureCount(r||this.createQuery(),n))}queryFeatures(r,n){return this._getAssociatedLayerForQuery().then(i=>i.queryFeatures(r||this.createQuery(),n)).then(i=>{if(i?.features)for(const E of i.features)E.layer=this.layer,E.sourceLayer=this;return i})}queryObjectIds(r,n){return this._getAssociatedLayerForQuery().then(i=>i.queryObjectIds(r||this.createQuery(),n))}queryCachedAttributes(r,n){var i=this;return(0,t.Z)(function*(){const E=(0,z.Lk)(i.fieldsIndex,yield(0,U.e)(i,(0,U.V)(i)));return(0,w.xe)(i.parsedUrl.path,i.attributeStorageInfo,r,n,E)})()}queryCachedFeature(r,n){var i=this;return(0,t.Z)(function*(){const E=yield i.queryCachedAttributes(r,[n]);if(!E||0===E.length)throw new u.Z("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const I=new a.Z;return I.attributes=E[0],I.layer=i,I.sourceLayer=i,I})()}getFieldUsageInfo(r){return this.fieldsIndex.has(r)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:(0,O.pC)(this.associatedLayer)}}_getAssociatedLayerForQuery(){const r=this.associatedLayer;return(0,O.pC)(r)&&r.loaded?Promise.resolve(r):this._loadAssociatedLayerForQuery()}_loadAssociatedLayerForQuery(){var r=this;return(0,t.Z)(function*(){if(yield r.load(),(0,O.Wi)(r.associatedLayer))throw new u.Z("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:r});try{yield r.associatedLayer.load()}catch(n){throw new u.Z("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:r,error:n})}return r.associatedLayer})()}};(0,s._)([(0,p.Cb)({readOnly:!0})],o.prototype,"parsedUrl",null),(0,s._)([(0,p.Cb)({type:b.U4,readOnly:!0})],o.prototype,"nodePages",void 0),(0,s._)([(0,p.Cb)({type:[b.QI],readOnly:!0})],o.prototype,"materialDefinitions",void 0),(0,s._)([(0,p.Cb)({type:[b.Yh],readOnly:!0})],o.prototype,"textureSetDefinitions",void 0),(0,s._)([(0,p.Cb)({type:[b.H3],readOnly:!0})],o.prototype,"geometryDefinitions",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],o.prototype,"serviceUpdateTimeStamp",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],o.prototype,"store",void 0),(0,s._)([(0,p.Cb)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],o.prototype,"rootNode",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],o.prototype,"attributeStorageInfo",void 0),(0,s._)([(0,p.Cb)(A.fields)],o.prototype,"fields",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],o.prototype,"fieldsIndex",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:R.default})],o.prototype,"associatedLayer",void 0),(0,s._)([(0,K.r)("service","associatedLayer",["associatedLayerID"])],o.prototype,"readAssociatedLayer",null),(0,s._)([(0,p.Cb)(A.outFields)],o.prototype,"outFields",void 0),(0,s._)([(0,p.Cb)({type:String,readOnly:!0})],o.prototype,"objectIdField",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:String,json:{read:!1}})],o.prototype,"displayField",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:String})],o.prototype,"apiKey",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:F.Z})],o.prototype,"fullExtent",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:Q.Z})],o.prototype,"spatialReference",null),(0,s._)([(0,p.Cb)({readOnly:!0})],o.prototype,"version",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:X.Z})],o.prototype,"elevationInfo",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:Number})],o.prototype,"minScale",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:Number})],o.prototype,"maxScale",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:Number})],o.prototype,"effectiveScaleRange",null),(0,s._)([(0,p.Cb)({type:["hide","show"],json:{write:!0}})],o.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)({types:c.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],o.prototype,"renderer",void 0),(0,s._)([(0,p.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],o.prototype,"definitionExpression",void 0),(0,s._)([(0,p.Cb)(G.C_)],o.prototype,"popupEnabled",void 0),(0,s._)([(0,p.Cb)({type:v.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],o.prototype,"popupTemplate",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],o.prototype,"normalReferenceFrame",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],o.prototype,"defaultPopupTemplate",null),(0,s._)([(0,p.Cb)()],o.prototype,"types",null),(0,s._)([(0,p.Cb)()],o.prototype,"typeIdField",null),(0,s._)([(0,p.Cb)({json:{write:!1}}),(0,x.J)(new g.X({"3DObject":"3d-object",Point:"point"}))],o.prototype,"layerType",void 0),(0,s._)([(0,p.Cb)()],o.prototype,"geometryType",null),(0,s._)([(0,p.Cb)()],o.prototype,"profile",null),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],o.prototype,"capabilities",null),o=(0,s._)([(0,W.j)(S)],o);const k=o},11136:(T,D,e)=>{e.d(D,{Z:()=>l});var t=e(17626),s=e(61996),a=e(99959),v=e(77712),m=(e(85931),e(90912)),d=e(68653),P=e(76898),y=e(13812);let _=class extends((0,s.IG)(a.w)){constructor(h){super(h),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.visible=!0,this.opacity=1}readTitle(h,C){return"string"==typeof C.alias?C.alias:"string"==typeof C.name?C.name:""}readIdOnlyOnce(h){return-1!==this.id?this.id:"number"==typeof h?h:-1}};(0,t._)([(0,v.Cb)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],_.prototype,"title",void 0),(0,t._)([(0,d.r)("service","title",["alias","name"])],_.prototype,"readTitle",null),(0,t._)([(0,v.Cb)()],_.prototype,"layer",void 0),(0,t._)([(0,v.Cb)({type:m.z8,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],_.prototype,"id",void 0),(0,t._)([(0,d.r)("service","id")],_.prototype,"readIdOnlyOnce",null),(0,t._)([(0,v.Cb)((0,y.Lx)(String))],_.prototype,"modelName",void 0),(0,t._)([(0,v.Cb)((0,y.Lx)(Boolean))],_.prototype,"isEmpty",void 0),(0,t._)([(0,v.Cb)({type:Boolean,json:{name:"visibility",write:!0}})],_.prototype,"visible",void 0),(0,t._)([(0,v.Cb)({type:Number,json:{write:!0}})],_.prototype,"opacity",void 0),_=(0,t._)([(0,P.j)("esri.layers.buildingSublayers.BuildingSublayer")],_);const l=_},35031:(T,D,e)=>{e.d(D,{H3:()=>g,QI:()=>l,U4:()=>P,Yh:()=>C});var t=e(17626),s=e(86810),a=e(77712),m=(e(85931),e(90912),e(55342)),d=e(76898);let P=class extends s.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,t._)([(0,a.Cb)({type:Number})],P.prototype,"nodesPerPage",void 0),(0,t._)([(0,a.Cb)({type:Number})],P.prototype,"rootIndex",void 0),(0,t._)([(0,a.Cb)({type:String})],P.prototype,"lodSelectionMetricType",void 0),P=(0,t._)([(0,d.j)("esri.layer.support.I3SNodePageDefinition")],P);let y=class extends s.wq{constructor(){super(...arguments),this.factor=1}};(0,t._)([(0,a.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],y.prototype,"id",void 0),(0,t._)([(0,a.Cb)({type:Number})],y.prototype,"factor",void 0),y=(0,t._)([(0,d.j)("esri.layer.support.I3SMaterialTexture")],y);let _=class extends s.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,t._)([(0,a.Cb)({type:[Number]})],_.prototype,"baseColorFactor",void 0),(0,t._)([(0,a.Cb)({type:y})],_.prototype,"baseColorTexture",void 0),(0,t._)([(0,a.Cb)({type:y})],_.prototype,"metallicRoughnessTexture",void 0),(0,t._)([(0,a.Cb)({type:Number})],_.prototype,"metallicFactor",void 0),(0,t._)([(0,a.Cb)({type:Number})],_.prototype,"roughnessFactor",void 0),_=(0,t._)([(0,d.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],_);let l=class extends s.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,t._)([(0,m.J)({opaque:"opaque",mask:"mask",blend:"blend"})],l.prototype,"alphaMode",void 0),(0,t._)([(0,a.Cb)({type:Number})],l.prototype,"alphaCutoff",void 0),(0,t._)([(0,a.Cb)({type:Boolean})],l.prototype,"doubleSided",void 0),(0,t._)([(0,m.J)({none:"none",back:"back",front:"front"})],l.prototype,"cullFace",void 0),(0,t._)([(0,a.Cb)({type:y})],l.prototype,"normalTexture",void 0),(0,t._)([(0,a.Cb)({type:y})],l.prototype,"occlusionTexture",void 0),(0,t._)([(0,a.Cb)({type:y})],l.prototype,"emissiveTexture",void 0),(0,t._)([(0,a.Cb)({type:[Number]})],l.prototype,"emissiveFactor",void 0),(0,t._)([(0,a.Cb)({type:_})],l.prototype,"pbrMetallicRoughness",void 0),l=(0,t._)([(0,d.j)("esri.layer.support.I3SMaterialDefinition")],l);let h=class extends s.wq{};(0,t._)([(0,a.Cb)({type:String,json:{read:{source:["name","index"],reader:(f,L)=>f??`${L.index}`}}})],h.prototype,"name",void 0),(0,t._)([(0,m.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],h.prototype,"format",void 0),h=(0,t._)([(0,d.j)("esri.layer.support.I3STextureFormat")],h);let C=class extends s.wq{constructor(){super(...arguments),this.atlas=!1}};(0,t._)([(0,a.Cb)({type:[h]})],C.prototype,"formats",void 0),(0,t._)([(0,a.Cb)({type:Boolean})],C.prototype,"atlas",void 0),C=(0,t._)([(0,d.j)("esri.layer.support.I3STextureSetDefinition")],C);let c=class extends s.wq{};(0,t._)([(0,m.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],c.prototype,"type",void 0),(0,t._)([(0,a.Cb)({type:Number})],c.prototype,"component",void 0),c=(0,t._)([(0,d.j)("esri.layer.support.I3SGeometryAttribute")],c);let M=class extends s.wq{};(0,t._)([(0,m.J)({draco:"draco"})],M.prototype,"encoding",void 0),(0,t._)([(0,a.Cb)({type:[String]})],M.prototype,"attributes",void 0),M=(0,t._)([(0,d.j)("esri.layer.support.I3SGeometryCompressedAttributes")],M);let u=class extends s.wq{constructor(){super(...arguments),this.offset=0}};(0,t._)([(0,a.Cb)({type:Number})],u.prototype,"offset",void 0),(0,t._)([(0,a.Cb)({type:c})],u.prototype,"position",void 0),(0,t._)([(0,a.Cb)({type:c})],u.prototype,"normal",void 0),(0,t._)([(0,a.Cb)({type:c})],u.prototype,"uv0",void 0),(0,t._)([(0,a.Cb)({type:c})],u.prototype,"color",void 0),(0,t._)([(0,a.Cb)({type:c})],u.prototype,"uvRegion",void 0),(0,t._)([(0,a.Cb)({type:c})],u.prototype,"featureId",void 0),(0,t._)([(0,a.Cb)({type:c})],u.prototype,"faceRange",void 0),(0,t._)([(0,a.Cb)({type:M})],u.prototype,"compressedAttributes",void 0),u=(0,t._)([(0,d.j)("esri.layer.support.I3SGeometryBuffer")],u);let g=class extends s.wq{};(0,t._)([(0,m.J)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,t._)([(0,a.Cb)()],g.prototype,"geometryBuffers",void 0),g=(0,t._)([(0,d.j)("esri.layer.support.I3SGeometryDefinition")],g)},59787:(T,D,e)=>{e.d(D,{C:()=>t});const t={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}}}]); \ No newline at end of file diff --git a/apps/n/porrtal-io-app/public/angular/945.1007f9e17ae9ad05.js b/apps/n/porrtal-io-app/public/angular/945.1007f9e17ae9ad05.js deleted file mode 100644 index 7a2be998..00000000 --- a/apps/n/porrtal-io-app/public/angular/945.1007f9e17ae9ad05.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunka_porrtal_io_app=self.webpackChunka_porrtal_io_app||[]).push([[945],{9266:(Dt,Ne,M)=>{M.d(Ne,{Cn:()=>d,WG:()=>L,s6:()=>pe});const L=()=>{const j=location.search,_e=new Set(["blueprint","mui"]);let z=new URLSearchParams(j).get("reactUiLibrary")??"";return _e.has(z)?(localStorage.setItem("reactUiLibrary",z),z):(z=localStorage.getItem("reactUiLibrary")??"",_e.has(z)?z:(localStorage.setItem("reactUiLibrary","blueprint"),"blueprint"))},d=()=>{const j=location.search,_e=new Set(["material"]);let z=new URLSearchParams(j).get("angularUiLibrary")??"";return _e.has(z)?(localStorage.setItem("angularUiLibrary",z),z):(z=localStorage.getItem("angularUiLibrary")??"",_e.has(z)?z:(localStorage.setItem("angularUiLibrary","material"),"material"))},pe={displayText:"@porrtal",displayIcon:"cyclone",displayImage:"/assets/angular.svg",childData:[{displayIcon:"cyclone",displayText:"@porrtal",targetUrl:"/"},{displayImage:"/assets/react.svg",displayText:"quick-start",targetUrl:"/react/quick-start"},{displayImage:"/assets/react.svg",displayText:"samples",targetUrl:"/react/samples"},{displayImage:"/assets/react.svg",displayText:"inside-porrtal",targetUrl:"/react/inside-porrtal"},{displayImage:"/assets/angular.svg",displayText:"quick-start",targetUrl:"quick-start"},{displayImage:"/assets/angular.svg",displayText:"samples",targetUrl:"samples"},{displayImage:"/assets/angular.svg",displayText:"inside-porrtal",targetUrl:"inside-porrtal"}]}},80251:(Dt,Ne,M)=>{M.d(Ne,{M:()=>d,v:()=>L});const L=["nav","main","right","bottom","search"],d=["tabs-top","tabs-left","cards"]},46485:(Dt,Ne,M)=>{M.d(Ne,{Ak:()=>Bn,Dg:()=>Da});var L=M(36895),d=M(94650),pe=M(77579),j=M(69751),_e=M(78372);const N=["gutterEls"];function z(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"div",2,3),d.NdJ("keydown",function(f){d.CHM(s);const g=d.oxw().index,C=d.oxw();return d.KtG(C.startKeyboardDrag(f,2*g+1,g+1))})("mousedown",function(f){d.CHM(s);const g=d.oxw().index,C=d.oxw();return d.KtG(C.startMouseDrag(f,2*g+1,g+1))})("touchstart",function(f){d.CHM(s);const g=d.oxw().index,C=d.oxw();return d.KtG(C.startMouseDrag(f,2*g+1,g+1))})("mouseup",function(f){d.CHM(s);const g=d.oxw().index,C=d.oxw();return d.KtG(C.clickGutter(f,g+1))})("touchend",function(f){d.CHM(s);const g=d.oxw().index,C=d.oxw();return d.KtG(C.clickGutter(f,g+1))}),d._UZ(2,"div",4),d.qZA()}if(2&u){const s=d.oxw(),p=s.index,f=s.$implicit,g=d.oxw();d.Udp("flex-basis",g.gutterSize,"px")("order",2*p+1),d.uIk("aria-label",g.gutterAriaLabel)("aria-orientation",g.direction)("aria-valuemin",f.minSize)("aria-valuemax",f.maxSize)("aria-valuenow",f.size)("aria-valuetext",g.getAriaAreaSizeText(f.size))}}function ae(u,c){1&u&&d.YNc(0,z,3,10,"div",1),2&u&&d.Q6J("ngIf",!1===c.last)}const de=["*"];function oe(u){if(void 0!==u.changedTouches&&u.changedTouches.length>0)return{x:u.changedTouches[0].clientX,y:u.changedTouches[0].clientY};if(void 0!==u.clientX&&void 0!==u.clientY)return{x:u.clientX,y:u.clientY};if(void 0!==u.currentTarget){const c=u.currentTarget;return{x:c.offsetLeft,y:c.offsetTop}}return null}function Ee(u,c,s){return Math.abs(u.x-c.x)<=s&&Math.abs(u.y-c.y)<=s}function We(u,c){const s=u.nativeElement.getBoundingClientRect();return"horizontal"===c?s.width:s.height}function He(u){return"boolean"==typeof u?u:"false"!==u}function ct(u,c){return null==u?c:(u=Number(u),!isNaN(u)&&u>=0?u:c)}function it(u,c){if("percent"===u){const s=c.reduce((p,f)=>null!==f?p+f:p,0);return c.every(p=>null!==p)&&s>99.9&&s<100.1}if("pixel"===u)return 1===c.filter(s=>null===s).length}function yt(u){return null===u.size?null:!0===u.component.lockSize?u.size:null===u.component.minSize?null:u.component.minSize>u.size?u.size:u.component.minSize}function gt(u){return null===u.size?null:!0===u.component.lockSize?u.size:null===u.component.maxSize?null:u.component.maxSize{const C=function Ft(u,c,s,p){return 0===s?{areaSnapshot:c,pixelAbsorb:0,percentAfterAbsorption:c.sizePercentAtStart,pixelRemain:0}:0===c.sizePixelAtStart&&s<0?{areaSnapshot:c,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:s}:"percent"===u?function Ci(u,c,s){const f=(u.sizePixelAtStart+c)/s*100;if(c>0){if(null!==u.area.maxSize&&f>u.area.maxSize){const g=u.area.maxSize/100*s;return{areaSnapshot:u,pixelAbsorb:g,percentAfterAbsorption:u.area.maxSize,pixelRemain:u.sizePixelAtStart+c-g}}return{areaSnapshot:u,pixelAbsorb:c,percentAfterAbsorption:f>100?100:f,pixelRemain:0}}if(c<0){if(null!==u.area.minSize&&f0?null!==u.area.maxSize&&p>u.area.maxSize?{areaSnapshot:u,pixelAbsorb:u.area.maxSize-u.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:p-u.area.maxSize}:{areaSnapshot:u,pixelAbsorb:c,percentAfterAbsorption:-1,pixelRemain:0}:c<0?null!==u.area.minSize&&p{class u{constructor(s,p,f,g,C){this.ngZone=s,this.elRef=p,this.cdRef=f,this.renderer=g,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new d.vpe(!1),this.dragEnd=new d.vpe(!1),this.gutterClick=new d.vpe(!1),this.gutterDblClick=new d.vpe(!1),this.dragProgressSubject=new pe.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=C?Object.assign(this._config,C):this._config,Object.keys(this._config).forEach(x=>{this[x]=this._config[x]})}set direction(s){this._direction="vertical"===s?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(s){this._unit="pixel"===s?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(s){this._gutterSize=ct(s,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(s){this._gutterStep=ct(s,1)}get gutterStep(){return this._gutterStep}set restrictMove(s){this._restrictMove=He(s)}get restrictMove(){return this._restrictMove}set useTransition(s){this._useTransition=He(s),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(s){this._disabled=He(s),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(s){this._dir="rtl"===s?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(s){this._gutterDblClickDuration=ct(s,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new j.y(s=>this.transitionEndSubscriber=s).pipe((0,_e.b)(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(s){const p={component:s,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===s.visible?(this.displayedAreas.push(p),this.build(!0,!0)):this.hiddenAreas.push(p)}removeArea(s){if(this.displayedAreas.some(p=>p.component===s)){const p=this.displayedAreas.find(f=>f.component===s);this.displayedAreas.splice(this.displayedAreas.indexOf(p),1),this.build(!0,!0)}else if(this.hiddenAreas.some(p=>p.component===s)){const p=this.hiddenAreas.find(f=>f.component===s);this.hiddenAreas.splice(this.hiddenAreas.indexOf(p),1)}}updateArea(s,p,f){!0===s.visible&&this.build(p,f)}showArea(s){const p=this.hiddenAreas.find(g=>g.component===s);if(void 0===p)return;const f=this.hiddenAreas.splice(this.hiddenAreas.indexOf(p),1);this.displayedAreas.push(...f),this.build(!0,!0)}hideArea(s){const p=this.displayedAreas.find(g=>g.component===s);if(void 0===p)return;const f=this.displayedAreas.splice(this.displayedAreas.indexOf(p),1);f.forEach(g=>{g.order=0,g.size=0}),this.hiddenAreas.push(...f),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(s=>null===s.size?"*":s.size)}setVisibleAreaSizes(s){if(s.length!==this.displayedAreas.length)return!1;const p=s.map(g=>ct(g,null));return!1!==it(this.unit,p)&&(this.displayedAreas.forEach((g,C)=>g.component._size=p[C]),this.build(!1,!0),!0)}build(s,p){if(this.stopDragging(),!0===s&&(this.displayedAreas.every(f=>null!==f.component.order)&&this.displayedAreas.sort((f,g)=>f.component.order-g.component.order),this.displayedAreas.forEach((f,g)=>{f.order=2*g,f.component.setStyleOrder(f.order)})),!0===p){const f=it(this.unit,this.displayedAreas.map(g=>g.component.size));switch(this.unit){case"percent":{const g=100/this.displayedAreas.length;this.displayedAreas.forEach(C=>{C.size=f?C.component.size:g,C.minSize=yt(C),C.maxSize=gt(C)});break}case"pixel":if(f)this.displayedAreas.forEach(g=>{g.size=g.component.size,g.minSize=yt(g),g.maxSize=gt(g)});else{const g=this.displayedAreas.filter(C=>null===C.component.size);if(0===g.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((C,x)=>{C.size=0===x?null:C.component.size,C.minSize=0===x?null:yt(C),C.maxSize=0===x?null:gt(C)});else if(g.length>1){let C=!1;this.displayedAreas.forEach(x=>{null===x.component.size?!1===C?(x.size=null,x.minSize=null,x.maxSize=null,C=!0):(x.size=100,x.minSize=null,x.maxSize=null):(x.size=x.component.size,x.minSize=yt(x),x.maxSize=gt(x))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const s=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(p=>{p.component.setStyleFlex(0,0,`calc( ${p.size}% - ${p.size/100*s}px )`,null!==p.minSize&&p.minSize===p.size,null!==p.maxSize&&p.maxSize===p.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(s=>{null===s.size?s.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?s.component.setStyleFlex(0,0,"100%",!1,!1):s.component.setStyleFlex(0,0,`${s.size}px`,null!==s.minSize&&s.minSize===s.size,null!==s.maxSize&&s.maxSize===s.size)})}clickGutter(s,p){const f=oe(s);this.startPoint&&Ee(this.startPoint,f,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",p),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",p),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(s,p,f){if(!0===this.disabled||!0===this.isWaitingClear)return;const g=function ye(u,c){if("horizontal"===c)switch(u.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===c)switch(u.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const s=u.currentTarget,p="PageUp"===u.key||"PageDown"===u.key?500:50;let f=s.offsetLeft,g=s.offsetTop;switch(u.key){case"ArrowLeft":f-=p;break;case"ArrowRight":f+=p;break;case"ArrowUp":g-=p;break;case"ArrowDown":g+=p;break;case"PageUp":"vertical"===c?g-=p:f+=p;break;case"PageDown":"vertical"===c?g+=p:f-=p;break;default:return null}return{x:f,y:g}}(s,this.direction);null!==g&&(this.endPoint=g,this.startPoint=oe(s),s.preventDefault(),s.stopPropagation(),this.setupForDragEvent(p,f),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(s,p,f){s.preventDefault(),s.stopPropagation(),this.startPoint=oe(s),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(p,f),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(s,p){this.snapshot={gutterNum:p,lastSteppedOffset:0,allAreasSizePixel:We(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(f=>{const g={area:f,sizePixelAtStart:We(f.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?f.size:-1};f.orders&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[g]):this.snapshot.areasAfterGutter.push(g))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((f,g)=>f+g.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(s=>s.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(s){s.preventDefault(),s.stopPropagation();const p=oe(s);null!==this._clickTimeout&&!Ee(this.startPoint,p,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=oe(s),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let s="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(s=-s);const p=Math.round(s/this.gutterStep)*this.gutterStep;if(p===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=p;let f=Ge(this.unit,this.snapshot.areasBeforeGutter,-p,this.snapshot.allAreasSizePixel),g=Ge(this.unit,this.snapshot.areasAfterGutter,p,this.snapshot.allAreasSizePixel);if(0!==f.remain&&0!==g.remain?Math.abs(f.remain)===Math.abs(g.remain)||(Math.abs(f.remain)>Math.abs(g.remain)?g=Ge(this.unit,this.snapshot.areasAfterGutter,p+f.remain,this.snapshot.allAreasSizePixel):f=Ge(this.unit,this.snapshot.areasBeforeGutter,-(p-g.remain),this.snapshot.allAreasSizePixel)):0!==f.remain?g=Ge(this.unit,this.snapshot.areasAfterGutter,p+f.remain,this.snapshot.allAreasSizePixel):0!==g.remain&&(f=Ge(this.unit,this.snapshot.areasBeforeGutter,-(p-g.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const C=[...f.list,...g.list],x=C.find(A=>0!==A.percentAfterAbsorption&&A.percentAfterAbsorption!==A.areaSnapshot.area.minSize&&A.percentAfterAbsorption!==A.areaSnapshot.area.maxSize);x&&(x.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-C.filter(A=>A!==x).reduce((A,J)=>A+J.percentAfterAbsorption,0))}f.list.forEach(C=>pt(this.unit,C)),g.list.forEach(C=>pt(this.unit,C)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(s){if(s&&(s.preventDefault(),s.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(p=>p.component.unlockEvents());this.dragListeners.length>0;){const p=this.dragListeners.pop();p&&p()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(s,p){const f=this.getVisibleAreaSizes();"start"===s?this.dragStart.emit({gutterNum:p,sizes:f}):"end"===s?this.dragEnd.emit({gutterNum:p,sizes:f}):"click"===s?this.gutterClick.emit({gutterNum:p,sizes:f}):"dblclick"===s?this.gutterDblClick.emit({gutterNum:p,sizes:f}):"transitionEnd"===s?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(f)):"progress"===s&&this.dragProgressSubject.next({gutterNum:p,sizes:f})}ngOnDestroy(){this.stopDragging()}collapseArea(s,p,f){const g=this.displayedAreas.find(A=>A.component===s);if(void 0===g)return;const C="right"===f?1:-1;g.sizeBeforeCollapse||(g.sizeBeforeCollapse=g.size,g.gutterBeforeCollapse=C),g.size=p;const x=this.gutterEls.find(A=>A.nativeElement.style.order===`${g.order+C}`);x&&this.renderer.addClass(x.nativeElement,"as-split-gutter-collapsed"),this.updateArea(s,!1,!1)}expandArea(s){const p=this.displayedAreas.find(g=>g.component===s);if(void 0===p||!p.sizeBeforeCollapse)return;p.size=p.sizeBeforeCollapse,p.sizeBeforeCollapse=null;const f=this.gutterEls.find(g=>g.nativeElement.style.order===`${p.order+p.gutterBeforeCollapse}`);f&&this.renderer.removeClass(f.nativeElement,"as-split-gutter-collapsed"),this.updateArea(s,!1,!1)}getAriaAreaSizeText(s){return null===s?null:s.toFixed(0)+" "+this.unit}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(d.Qsj),d.Y36(Gt,8))},u.\u0275cmp=d.Xpm({type:u,selectors:[["as-split"]],viewQuery:function(s,p){if(1&s&&d.Gf(N,5),2&s){let f;d.iGM(f=d.CRH())&&(p.gutterEls=f)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:de,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","slider","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","slider","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(s,p){1&s&&(d.F$t(),d.Hsn(0),d.YNc(1,ae,1,1,"ng-template",0)),2&s&&(d.xp6(1),d.Q6J("ngForOf",p.displayedAreas))},dependencies:[L.sg,L.O5],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),u})(),si=(()=>{class u{constructor(s,p,f,g){this.ngZone=s,this.elRef=p,this.renderer=f,this.split=g,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(s){this._order=ct(s,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(s){this._size=ct(s,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(s){this._minSize=ct(s,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(s){this._maxSize=ct(s,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(s){this._lockSize=He(s),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(s){this._visible=He(s),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",s=>{"flex-basis"===s.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(s){this.renderer.setStyle(this.elRef.nativeElement,"order",s)}setStyleFlex(s,p,f,g,C){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",s),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",p),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",f),!0===g?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===C?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const s=this.lockListeners.pop();s&&s()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(s=0,p="right"){this.split.collapseArea(this,s,p)}expand(){this.split.expandArea(this)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(Mt))},u.\u0275dir=d.lG2({type:u,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),u})(),wt=(()=>{class u{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:u,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:u,providers:[]}}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[[L.ez]]}),u})();var Nt=M(80251),Ze=M(12693),Ut=M(49643);class Li{attach(c){return this._attachedHost=c,c.attach(this)}detach(){let c=this._attachedHost;null!=c&&(this._attachedHost=null,c.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(c){this._attachedHost=c}}class hi extends Li{constructor(c,s,p,f,g){super(),this.component=c,this.viewContainerRef=s,this.injector=p,this.componentFactoryResolver=f,this.projectableNodes=g}}class Ve extends Li{constructor(c,s,p,f){super(),this.templateRef=c,this.viewContainerRef=s,this.context=p,this.injector=f}get origin(){return this.templateRef.elementRef}attach(c,s=this.context){return this.context=s,super.attach(c)}detach(){return this.context=void 0,super.detach()}}class li extends Li{constructor(c){super(),this.element=c instanceof d.SBq?c.nativeElement:c}}class Pe{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(c){return c instanceof hi?(this._attachedPortal=c,this.attachComponentPortal(c)):c instanceof Ve?(this._attachedPortal=c,this.attachTemplatePortal(c)):this.attachDomPortal&&c instanceof li?(this._attachedPortal=c,this.attachDomPortal(c)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(c){this._disposeFn=c}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Q extends Pe{constructor(c,s,p,f,g){super(),this.outletElement=c,this._componentFactoryResolver=s,this._appRef=p,this._defaultInjector=f,this.attachDomPortal=C=>{const x=C.element,A=this._document.createComment("dom-portal");x.parentNode.insertBefore(A,x),this.outletElement.appendChild(x),this._attachedPortal=C,super.setDisposeFn(()=>{A.parentNode&&A.parentNode.replaceChild(x,A)})},this._document=g}attachComponentPortal(c){const p=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component);let f;return c.viewContainerRef?(f=c.viewContainerRef.createComponent(p,c.viewContainerRef.length,c.injector||c.viewContainerRef.injector,c.projectableNodes||void 0),this.setDisposeFn(()=>f.destroy())):(f=p.create(c.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(f.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(f.hostView),f.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(f)),this._attachedPortal=c,f}attachTemplatePortal(c){let s=c.viewContainerRef,p=s.createEmbeddedView(c.templateRef,c.context,{injector:c.injector});return p.rootNodes.forEach(f=>this.outletElement.appendChild(f)),p.detectChanges(),this.setDisposeFn(()=>{let f=s.indexOf(p);-1!==f&&s.remove(f)}),this._attachedPortal=c,p}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(c){return c.hostView.rootNodes[0]}}let Ce=(()=>{class u extends Ve{constructor(s,p){super(s,p)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.Rgc),d.Y36(d.s_b))},u.\u0275dir=d.lG2({type:u,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),u})(),Oe=(()=>{class u extends Pe{constructor(s,p,f){super(),this._componentFactoryResolver=s,this._viewContainerRef=p,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=g=>{const C=g.element,x=this._document.createComment("dom-portal");g.setAttachedHost(this),C.parentNode.insertBefore(x,C),this._getRootNode().appendChild(C),this._attachedPortal=g,super.setDisposeFn(()=>{x.parentNode&&x.parentNode.replaceChild(C,x)})},this._document=f}get portal(){return this._attachedPortal}set portal(s){this.hasAttached()&&!s&&!this._isInitialized||(this.hasAttached()&&super.detach(),s&&super.attach(s),this._attachedPortal=s||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(s){s.setAttachedHost(this);const p=null!=s.viewContainerRef?s.viewContainerRef:this._viewContainerRef,g=(s.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(s.component),C=p.createComponent(g,p.length,s.injector||p.injector,s.projectableNodes||void 0);return p!==this._viewContainerRef&&this._getRootNode().appendChild(C.hostView.rootNodes[0]),super.setDisposeFn(()=>C.destroy()),this._attachedPortal=s,this._attachedRef=C,this.attached.emit(C),C}attachTemplatePortal(s){s.setAttachedHost(this);const p=this._viewContainerRef.createEmbeddedView(s.templateRef,s.context,{injector:s.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=s,this._attachedRef=p,this.attached.emit(p),p}_getRootNode(){const s=this._viewContainerRef.element.nativeElement;return s.nodeType===s.ELEMENT_NODE?s:s.parentNode}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(L.K0))},u.\u0275dir=d.lG2({type:u,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),u})(),Bt=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({}),u})();var Ae=M(3238),Qt=M(95698),kt=M(40445),$t=M(50727),fi=M(38421),wi=M(95577),ve=M(81144),Ct=M(30576),we=M(83268);const w=["addListener","removeListener"],rt=["addEventListener","removeEventListener"],Wn=["on","off"];function Et(u,c,s,p){if((0,Ct.m)(s)&&(p=s,s=void 0),p)return Et(u,c,s).pipe((0,we.Z)(p));const[f,g]=function In(u){return(0,Ct.m)(u.addEventListener)&&(0,Ct.m)(u.removeEventListener)}(u)?rt.map(C=>x=>u[C](c,x,s)):function bi(u){return(0,Ct.m)(u.addListener)&&(0,Ct.m)(u.removeListener)}(u)?w.map(ht(u,c)):function Un(u){return(0,Ct.m)(u.on)&&(0,Ct.m)(u.off)}(u)?Wn.map(ht(u,c)):[];if(!f&&(0,ve.z)(u))return(0,wi.z)(C=>Et(C,c,s))((0,fi.Xf)(u));if(!f)throw new TypeError("Invalid event target");return new j.y(C=>{const x=(...A)=>C.next(1g(x)})}function ht(u,c){return s=>p=>u[s](c,p)}var Xt=M(39646),G=M(56451),Ie=M(60515),$=M(5963),k=M(68675),W=M(71884),Y=M(82722),Ye=M(63900),Wt=M(35684),Be=M(39300),V=M(37340),D=M(21281),B=M(84408);const ue={schedule(u){let c=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:p}=ue;p&&(c=p.requestAnimationFrame,s=p.cancelAnimationFrame);const f=c(g=>{s=void 0,u(g)});return new $t.w0(()=>s?.(f))},requestAnimationFrame(...u){const{delegate:c}=ue;return(c?.requestAnimationFrame||requestAnimationFrame)(...u)},cancelAnimationFrame(...u){const{delegate:c}=ue;return(c?.cancelAnimationFrame||cancelAnimationFrame)(...u)},delegate:void 0};var De=M(97565);new class ot extends De.v{flush(c){this._active=!0;const s=this._scheduled;this._scheduled=void 0;const{actions:p}=this;let f;c=c||p.shift();do{if(f=c.execute(c.state,c.delay))break}while((c=p[0])&&c.id===s&&p.shift());if(this._active=!1,f){for(;(c=p[0])&&c.id===s&&p.shift();)c.unsubscribe();throw f}}}(class he extends B.o{constructor(c,s){super(c,s),this.scheduler=c,this.work=s}requestAsyncId(c,s,p=0){return null!==p&&p>0?super.requestAsyncId(c,s,p):(c.actions.push(this),c._scheduled||(c._scheduled=ue.requestAnimationFrame(()=>c.flush(void 0))))}recycleAsyncId(c,s,p=0){var f;if(null!=p?p>0:this.delay>0)return super.recycleAsyncId(c,s,p);const{actions:g}=c;null!=s&&(null===(f=g[g.length-1])||void 0===f?void 0:f.id)!==s&&(ue.cancelAnimationFrame(s),c._scheduled=void 0)}});let St,At=1;const K={};function F(u){return u in K&&(delete K[u],!0)}const T={setImmediate(u){const c=At++;return K[c]=!0,St||(St=Promise.resolve()),St.then(()=>F(c)&&u()),c},clearImmediate(u){F(u)}},{setImmediate:re,clearImmediate:E}=T,O={setImmediate(...u){const{delegate:c}=O;return(c?.setImmediate||re)(...u)},clearImmediate(u){const{delegate:c}=O;return(c?.clearImmediate||E)(u)},delegate:void 0},se=new class Z extends De.v{flush(c){this._active=!0;const s=this._scheduled;this._scheduled=void 0;const{actions:p}=this;let f;c=c||p.shift();do{if(f=c.execute(c.state,c.delay))break}while((c=p[0])&&c.id===s&&p.shift());if(this._active=!1,f){for(;(c=p[0])&&c.id===s&&p.shift();)c.unsubscribe();throw f}}}(class P extends B.o{constructor(c,s){super(c,s),this.scheduler=c,this.work=s}requestAsyncId(c,s,p=0){return null!==p&&p>0?super.requestAsyncId(c,s,p):(c.actions.push(this),c._scheduled||(c._scheduled=O.setImmediate(c.flush.bind(c,void 0))))}recycleAsyncId(c,s,p=0){var f;if(null!=p?p>0:this.delay>0)return super.recycleAsyncId(c,s,p);const{actions:g}=c;null!=s&&(null===(f=g[g.length-1])||void 0===f?void 0:f.id)!==s&&(O.clearImmediate(s),c._scheduled=void 0)}});var et=M(34986),Rt=M(54482),jt=M(25403);function dt(u,c=et.z){return function vt(u){return(0,Rt.e)((c,s)=>{let p=!1,f=null,g=null,C=!1;const x=()=>{if(g?.unsubscribe(),g=null,p){p=!1;const J=f;f=null,s.next(J)}C&&s.complete()},A=()=>{g=null,C&&s.complete()};c.subscribe((0,jt.x)(s,J=>{p=!0,f=J,g||(0,fi.Xf)(u(J)).subscribe(g=(0,jt.x)(s,x,A))},()=>{C=!0,(!p||!g||g.closed)&&s.complete()}))})}(()=>(0,$.H)(u,c))}var Ke=M(83353);let ge=(()=>{class u{constructor(s,p,f){this._ngZone=s,this._platform=p,this._scrolled=new pe.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=f}register(s){this.scrollContainers.has(s)||this.scrollContainers.set(s,s.elementScrolled().subscribe(()=>this._scrolled.next(s)))}deregister(s){const p=this.scrollContainers.get(s);p&&(p.unsubscribe(),this.scrollContainers.delete(s))}scrolled(s=20){return this._platform.isBrowser?new j.y(p=>{this._globalSubscription||this._addGlobalListener();const f=s>0?this._scrolled.pipe(dt(s)).subscribe(p):this._scrolled.subscribe(p);return this._scrolledCount++,()=>{f.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Xt.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((s,p)=>this.deregister(p)),this._scrolled.complete()}ancestorScrolled(s,p){const f=this.getAncestorScrollContainers(s);return this.scrolled(p).pipe((0,Be.h)(g=>!g||f.indexOf(g)>-1))}getAncestorScrollContainers(s){const p=[];return this.scrollContainers.forEach((f,g)=>{this._scrollableContainsElement(g,s)&&p.push(g)}),p}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(s,p){let f=(0,D.fI)(p),g=s.getElementRef().nativeElement;do{if(f==g)return!0}while(f=f.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Et(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(d.R0b),d.LFG(Ke.t4),d.LFG(L.K0,8))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),Fr=(()=>{class u{constructor(s,p,f){this._platform=s,this._change=new pe.x,this._changeListener=g=>{this._change.next(g)},this._document=f,p.runOutsideAngular(()=>{if(s.isBrowser){const g=this._getWindow();g.addEventListener("resize",this._changeListener),g.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const s=this._getWindow();s.removeEventListener("resize",this._changeListener),s.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const s={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),s}getViewportRect(){const s=this.getViewportScrollPosition(),{width:p,height:f}=this.getViewportSize();return{top:s.top,left:s.left,bottom:s.top+f,right:s.left+p,height:f,width:p}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const s=this._document,p=this._getWindow(),f=s.documentElement,g=f.getBoundingClientRect();return{top:-g.top||s.body.scrollTop||p.scrollY||f.scrollTop||0,left:-g.left||s.body.scrollLeft||p.scrollX||f.scrollLeft||0}}change(s=20){return s>0?this._change.pipe(dt(s)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const s=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:s.innerWidth,height:s.innerHeight}:{width:0,height:0}}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(Ke.t4),d.LFG(d.R0b),d.LFG(L.K0,8))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),en=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({}),u})(),ds=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[kt.vT,en,kt.vT,en]}),u})();var Pt=M(29521);function Fn(u,c){}const gp=function(u){return{animationDuration:u}},vp=function(u,c){return{value:u,params:c}},us={translateTab:(0,V.X$)("translateTab",[(0,V.SB)("center, void, left-origin-center, right-origin-center",(0,V.oB)({transform:"none"})),(0,V.SB)("left",(0,V.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,V.SB)("right",(0,V.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,V.eR)("* => left, * => right, left => center, right => center",(0,V.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,V.eR)("void => left-origin-center",[(0,V.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,V.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,V.eR)("void => right-origin-center",[(0,V.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,V.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ps=(()=>{class u extends Oe{constructor(s,p,f,g){super(s,p,g),this._host=f,this._centeringSub=$t.w0.EMPTY,this._leavingSub=$t.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,k.O)(this._host._isCenterPosition(this._host._position))).subscribe(s=>{s&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36((0,d.Gpc)(()=>Ha)),d.Y36(L.K0))},u.\u0275dir=d.lG2({type:u,selectors:[["","matTabBodyHost",""]],features:[d.qOj]}),u})(),hs=(()=>{class u{constructor(s,p,f){this._elementRef=s,this._dir=p,this._dirChangeSubscription=$t.w0.EMPTY,this._translateTabComplete=new pe.x,this._onCentering=new d.vpe,this._beforeCentering=new d.vpe,this._afterLeavingCenter=new d.vpe,this._onCentered=new d.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,p&&(this._dirChangeSubscription=p.change.subscribe(g=>{this._computePositionAnimationState(g),f.markForCheck()})),this._translateTabComplete.pipe((0,W.x)((g,C)=>g.fromState===C.fromState&&g.toState===C.toState)).subscribe(g=>{this._isCenterPosition(g.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(g.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(s){this._positionIndex=s,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(s){const p=this._isCenterPosition(s.toState);this._beforeCentering.emit(p),p&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(s){return"center"==s||"left-origin-center"==s||"right-origin-center"==s}_computePositionAnimationState(s=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==s?"left":"right":this._positionIndex>0?"ltr"==s?"right":"left":"center"}_computePositionFromOrigin(s){const p=this._getLayoutDirection();return"ltr"==p&&s<=0||"rtl"==p&&s>0?"left-origin-center":"right-origin-center"}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(kt.Is,8),d.Y36(d.sBO))},u.\u0275dir=d.lG2({type:u,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),u})(),Ha=(()=>{class u extends hs{constructor(s,p,f){super(s,p,f)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(kt.Is,8),d.Y36(d.sBO))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-tab-body"]],viewQuery:function(s,p){if(1&s&&d.Gf(Oe,5),2&s){let f;d.iGM(f=d.CRH())&&(p._portalHost=f.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[d.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(s,p){1&s&&(d.TgZ(0,"div",0,1),d.NdJ("@translateTab.start",function(g){return p._onTranslateTabStarted(g)})("@translateTab.done",function(g){return p._translateTabComplete.next(g)}),d.YNc(2,Fn,0,0,"ng-template",2),d.qZA()),2&s&&d.Q6J("@translateTab",d.WLB(3,vp,p._position,d.VKq(1,gp,p.animationDuration)))},dependencies:[ps],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[us.translateTab]}}),u})();const Va=new d.OlP("MatTabContent"),Nr=new d.OlP("MatTabLabel"),Ba=new d.OlP("MAT_TAB");let Cp=(()=>{class u extends Ce{constructor(s,p,f){super(s,p),this._closestTab=f}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.Rgc),d.Y36(d.s_b),d.Y36(Ba,8))},u.\u0275dir=d.lG2({type:u,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[d._Bn([{provide:Nr,useExisting:u}]),d.qOj]}),u})();const Yn=new d.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Wa(){return c=>({left:c?(c.offsetLeft||0)+"px":"0",width:c?(c.offsetWidth||0)+"px":"0"})}}),ms=(0,Ae.Id)(class{});let gs=(()=>{class u extends ms{constructor(s){super(),this.elementRef=s}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq))},u.\u0275dir=d.lG2({type:u,features:[d.qOj]}),u})();const Gc=(0,Ae.Id)(class{}),Ua=new d.OlP("MAT_TAB_GROUP");let xp=(()=>{class u extends Gc{constructor(s,p){super(),this._viewContainerRef=s,this._closestTabGroup=p,this.textLabel="",this._contentPortal=null,this._stateChanges=new pe.x,this.position=null,this.origin=null,this.isActive=!1}get content(){return this._contentPortal}ngOnChanges(s){(s.hasOwnProperty("textLabel")||s.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ve(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(s){s&&s._closestTab===this&&(this._templateLabel=s)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.s_b),d.Y36(Ua,8))},u.\u0275dir=d.lG2({type:u,viewQuery:function(s,p){if(1&s&&d.Gf(d.Rgc,7),2&s){let f;d.iGM(f=d.CRH())&&(p._implicitContent=f.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[d.qOj,d.TTD]}),u})();const ja=(0,Ke.i$)({passive:!0});let za=(()=>{class u{constructor(s,p,f,g,C,x,A){this._elementRef=s,this._changeDetectorRef=p,this._viewportRuler=f,this._dir=g,this._ngZone=C,this._platform=x,this._animationMode=A,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new pe.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new pe.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new d.vpe,this.indexFocused=new d.vpe,C.runOutsideAngular(()=>{Et(s.nativeElement,"mouseleave").pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(s){this._disablePagination=(0,D.Ig)(s)}get selectedIndex(){return this._selectedIndex}set selectedIndex(s){s=(0,D.su)(s),this._selectedIndex!=s&&(this._selectedIndexChanged=!0,this._selectedIndex=s,this._keyManager&&this._keyManager.updateActiveItem(s))}ngAfterViewInit(){Et(this._previousPaginator.nativeElement,"touchstart",ja).pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Et(this._nextPaginator.nativeElement,"touchstart",ja).pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const s=this._dir?this._dir.change:(0,Xt.of)("ltr"),p=this._viewportRuler.change(150),f=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ze.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(f),(0,G.T)(s,p,this._items.changes,this._itemsResized()).pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),f()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(g=>{this.indexFocused.emit(g),this._setTabFocus(g)})}_itemsResized(){return"function"!=typeof ResizeObserver?Ie.E:this._items.changes.pipe((0,k.O)(this._items),(0,Ye.w)(s=>new j.y(p=>this._ngZone.runOutsideAngular(()=>{const f=new ResizeObserver(g=>p.next(g));return s.forEach(g=>f.observe(g.elementRef.nativeElement)),()=>{f.disconnect()}}))),(0,Wt.T)(1),(0,Be.h)(s=>s.some(p=>p.contentRect.width>0&&p.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(s){if(!(0,Pt.Vb)(s))switch(s.keyCode){case Pt.K5:case Pt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(s));break;default:this._keyManager.onKeydown(s)}}_onContentChanges(){const s=this._elementRef.nativeElement.textContent;s!==this._currentTextContent&&(this._currentTextContent=s||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(s){!this._isValidIndex(s)||this.focusIndex===s||!this._keyManager||this._keyManager.setActiveItem(s)}_isValidIndex(s){if(!this._items)return!0;const p=this._items?this._items.toArray()[s]:null;return!!p&&!p.disabled}_setTabFocus(s){if(this._showPaginationControls&&this._scrollToLabel(s),this._items&&this._items.length){this._items.toArray()[s].focus();const p=this._tabListContainer.nativeElement;p.scrollLeft="ltr"==this._getLayoutDirection()?0:p.scrollWidth-p.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const s=this.scrollDistance,p="ltr"===this._getLayoutDirection()?-s:s;this._tabList.nativeElement.style.transform=`translateX(${Math.round(p)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(s){this._scrollTo(s)}_scrollHeader(s){return this._scrollTo(this._scrollDistance+("before"==s?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(s){this._stopInterval(),this._scrollHeader(s)}_scrollToLabel(s){if(this.disablePagination)return;const p=this._items?this._items.toArray()[s]:null;if(!p)return;const f=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:g,offsetWidth:C}=p.elementRef.nativeElement;let x,A;"ltr"==this._getLayoutDirection()?(x=g,A=x+C):(A=this._tabListInner.nativeElement.offsetWidth-g,x=A-C);const J=this.scrollDistance,q=this.scrollDistance+f;xq&&(this.scrollDistance+=A-q+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const s=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;s||(this.scrollDistance=0),s!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=s}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const s=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,p=s?s.elementRef.nativeElement:null;p?this._inkBar.alignToElement(p):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(s,p){p&&null!=p.button&&0!==p.button||(this._stopInterval(),(0,$.H)(650,100).pipe((0,Y.R)((0,G.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:f,distance:g}=this._scrollHeader(s);(0===g||g>=f)&&this._stopInterval()}))}_scrollTo(s){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const p=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(p,s)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:p,distance:this._scrollDistance}}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Fr),d.Y36(kt.Is,8),d.Y36(d.R0b),d.Y36(Ke.t4),d.Y36(d.QbO,8))},u.\u0275dir=d.lG2({type:u,inputs:{disablePagination:"disablePagination"}}),u})(),Bc=(()=>{class u extends za{constructor(s,p,f,g,C,x,A){super(s,p,f,g,C,x,A),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(s){this._disableRipple=(0,D.Ig)(s)}_itemSelected(s){s.preventDefault()}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Fr),d.Y36(kt.Is,8),d.Y36(d.R0b),d.Y36(Ke.t4),d.Y36(d.QbO,8))},u.\u0275dir=d.lG2({type:u,inputs:{disableRipple:"disableRipple"},features:[d.qOj]}),u})();const Wc=new d.OlP("MAT_TABS_CONFIG");let kr=0;const Uc=(0,Ae.pj)((0,Ae.Kr)(class{constructor(u){this._elementRef=u}}),"primary");let vs=(()=>{class u extends Uc{constructor(s,p,f,g){super(s),this._changeDetectorRef=p,this._animationMode=g,this._tabs=new d.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=$t.w0.EMPTY,this._tabLabelSubscription=$t.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new d.vpe,this.focusChange=new d.vpe,this.animationDone=new d.vpe,this.selectedTabChange=new d.vpe(!0),this._groupId=kr++,this.animationDuration=f&&f.animationDuration?f.animationDuration:"500ms",this.disablePagination=!(!f||null==f.disablePagination)&&f.disablePagination,this.dynamicHeight=!(!f||null==f.dynamicHeight)&&f.dynamicHeight,this.contentTabIndex=f?.contentTabIndex??null,this.preserveContent=!!f?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(s){this._dynamicHeight=(0,D.Ig)(s)}get selectedIndex(){return this._selectedIndex}set selectedIndex(s){this._indexToSelect=(0,D.su)(s,null)}get animationDuration(){return this._animationDuration}set animationDuration(s){this._animationDuration=/^\d+$/.test(s+"")?s+"ms":s}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(s){this._contentTabIndex=(0,D.su)(s,null)}get disablePagination(){return this._disablePagination}set disablePagination(s){this._disablePagination=(0,D.Ig)(s)}get preserveContent(){return this._preserveContent}set preserveContent(s){this._preserveContent=(0,D.Ig)(s)}get backgroundColor(){return this._backgroundColor}set backgroundColor(s){const p=this._elementRef.nativeElement;p.classList.remove(`mat-background-${this.backgroundColor}`),s&&p.classList.add(`mat-background-${s}`),this._backgroundColor=s}ngAfterContentChecked(){const s=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=s){const p=null==this._selectedIndex;if(!p){this.selectedTabChange.emit(this._createChangeEvent(s));const f=this._tabBodyWrapper.nativeElement;f.style.minHeight=f.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((f,g)=>f.isActive=g===s),p||(this.selectedIndexChange.emit(s),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((p,f)=>{p.position=f-s,null!=this._selectedIndex&&0==p.position&&!p.origin&&(p.origin=s-this._selectedIndex)}),this._selectedIndex!==s&&(this._selectedIndex=s,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const s=this._clampTabIndex(this._indexToSelect);if(s===this._selectedIndex){const p=this._tabs.toArray();let f;for(let g=0;g{p[s].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(s))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,k.O)(this._allTabs)).subscribe(s=>{this._tabs.reset(s.filter(p=>p._closestTabGroup===this||!p._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(s){const p=this._tabHeader;p&&(p.focusIndex=s)}_focusChanged(s){this._lastFocusedTabIndex=s,this.focusChange.emit(this._createChangeEvent(s))}_createChangeEvent(s){const p=new Rp;return p.index=s,this._tabs&&this._tabs.length&&(p.tab=this._tabs.toArray()[s]),p}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,G.T)(...this._tabs.map(s=>s._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(s){return Math.min(this._tabs.length-1,Math.max(s||0,0))}_getTabLabelId(s){return`mat-tab-label-${this._groupId}-${s}`}_getTabContentId(s){return`mat-tab-content-${this._groupId}-${s}`}_setTabBodyWrapperHeight(s){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const p=this._tabBodyWrapper.nativeElement;p.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(p.style.height=s+"px")}_removeTabBodyWrapperHeight(){const s=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=s.clientHeight,s.style.height="",this.animationDone.emit()}_handleClick(s,p,f){s.disabled||(this.selectedIndex=p.focusIndex=f)}_getTabIndex(s,p){return s.disabled?null:p===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(s,p){s&&"mouse"!==s&&"touch"!==s&&(this._tabHeader.focusIndex=p)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Wc,8),d.Y36(d.QbO,8))},u.\u0275dir=d.lG2({type:u,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[d.qOj]}),u})();class Rp{}function Tp(u,c){1&u&&d.Hsn(0)}const Yc=["*"];function Dp(u,c){}const Mp=function(u){return{animationDuration:u}},Ap=function(u,c){return{value:u,params:c}},ee=["tabListContainer"],Ka=["tabList"],Pp=["tabListInner"],Kc=["nextPaginator"],be=["previousPaginator"],Ip=["tabBodyWrapper"],gi=["tabHeader"];function Fp(u,c){}function Lp(u,c){if(1&u&&d.YNc(0,Fp,0,0,"ng-template",10),2&u){const s=d.oxw().$implicit;d.Q6J("cdkPortalOutlet",s.templateLabel)}}function $c(u,c){if(1&u&&d._uU(0),2&u){const s=d.oxw().$implicit;d.Oqu(s.textLabel)}}function Np(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"div",6),d.NdJ("click",function(){const f=d.CHM(s),g=f.$implicit,C=f.index,x=d.oxw(),A=d.MAs(1);return d.KtG(x._handleClick(g,A,C))})("cdkFocusChange",function(f){const C=d.CHM(s).index,x=d.oxw();return d.KtG(x._tabFocusChanged(f,C))}),d.TgZ(1,"div",7),d.YNc(2,Lp,1,1,"ng-template",8),d.YNc(3,$c,1,1,"ng-template",null,9,d.W1O),d.qZA()()}if(2&u){const s=c.$implicit,p=c.index,f=d.MAs(4),g=d.oxw();d.ekj("mat-tab-label-active",g.selectedIndex===p),d.Q6J("id",g._getTabLabelId(p))("ngClass",s.labelClass)("disabled",s.disabled)("matRippleDisabled",s.disabled||g.disableRipple),d.uIk("tabIndex",g._getTabIndex(s,p))("aria-posinset",p+1)("aria-setsize",g._tabs.length)("aria-controls",g._getTabContentId(p))("aria-selected",g.selectedIndex===p)("aria-label",s.ariaLabel||null)("aria-labelledby",!s.ariaLabel&&s.ariaLabelledby?s.ariaLabelledby:null),d.xp6(2),d.Q6J("ngIf",s.templateLabel)("ngIfElse",f)}}function cr(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"mat-tab-body",11),d.NdJ("_onCentered",function(){d.CHM(s);const f=d.oxw();return d.KtG(f._removeTabBodyWrapperHeight())})("_onCentering",function(f){d.CHM(s);const g=d.oxw();return d.KtG(g._setTabBodyWrapperHeight(f))}),d.qZA()}if(2&u){const s=c.$implicit,p=c.index,f=d.oxw();d.ekj("mat-tab-body-active",f.selectedIndex===p),d.Q6J("id",f._getTabContentId(p))("ngClass",s.bodyClass)("content",s.content)("position",s.position)("origin",s.origin)("animationDuration",f.animationDuration)("preserveContent",f.preserveContent),d.uIk("tabindex",null!=f.contentTabIndex&&f.selectedIndex===p?f.contentTabIndex:null)("aria-labelledby",f._getTabLabelId(p))}}let Zc=(()=>{class u{constructor(s,p,f,g){this._elementRef=s,this._ngZone=p,this._inkBarPositioner=f,this._animationMode=g}alignToElement(s){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(()=>{const p=this._inkBarPositioner(s),f=this._elementRef.nativeElement;f.style.left=p.left,f.style.width=p.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(Yn),d.Y36(d.QbO,8))},u.\u0275dir=d.lG2({type:u,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(s,p){2&s&&d.ekj("_mat-animation-noopable","NoopAnimations"===p._animationMode)}}),u})(),qc=(()=>{class u extends xp{get templateLabel(){return this._templateLabel}set templateLabel(s){this._setTemplateLabelInput(s)}}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-tab"]],contentQueries:function(s,p,f){if(1&s&&(d.Suo(f,Nr,5),d.Suo(f,Va,7,d.Rgc)),2&s){let g;d.iGM(g=d.CRH())&&(p.templateLabel=g.first),d.iGM(g=d.CRH())&&(p._explicitContent=g.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[d._Bn([{provide:Ba,useExisting:u}]),d.qOj],ngContentSelectors:Yc,decls:1,vars:0,template:function(s,p){1&s&&(d.F$t(),d.YNc(0,Tp,1,0,"ng-template"))},encapsulation:2}),u})(),Gp=(()=>{class u extends ps{constructor(s,p,f,g){super(s,p,f,g)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36((0,d.Gpc)(()=>Qc)),d.Y36(L.K0))},u.\u0275dir=d.lG2({type:u,selectors:[["","matTabBodyHost",""]],features:[d.qOj]}),u})(),Qc=(()=>{class u extends hs{constructor(s,p,f){super(s,p,f)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(kt.Is,8),d.Y36(d.sBO))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-tab-body"]],viewQuery:function(s,p){if(1&s&&d.Gf(Oe,5),2&s){let f;d.iGM(f=d.CRH())&&(p._portalHost=f.first)}},hostAttrs:[1,"mat-tab-body"],features:[d.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(s,p){1&s&&(d.TgZ(0,"div",0,1),d.NdJ("@translateTab.start",function(g){return p._onTranslateTabStarted(g)})("@translateTab.done",function(g){return p._translateTabComplete.next(g)}),d.YNc(2,Dp,0,0,"ng-template",2),d.qZA()),2&s&&d.Q6J("@translateTab",d.WLB(3,Ap,p._position,d.VKq(1,Mp,p.animationDuration)))},dependencies:[Gp],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[us.translateTab]}}),u})(),Xc=(()=>{class u extends gs{}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275dir=d.lG2({type:u,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(s,p){2&s&&(d.uIk("aria-disabled",!!p.disabled),d.ekj("mat-tab-disabled",p.disabled))},inputs:{disabled:"disabled"},features:[d.qOj]}),u})(),kp=(()=>{class u extends Bc{constructor(s,p,f,g,C,x,A){super(s,p,f,g,C,x,A)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Fr),d.Y36(kt.Is,8),d.Y36(d.R0b),d.Y36(Ke.t4),d.Y36(d.QbO,8))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-tab-header"]],contentQueries:function(s,p,f){if(1&s&&d.Suo(f,Xc,4),2&s){let g;d.iGM(g=d.CRH())&&(p._items=g)}},viewQuery:function(s,p){if(1&s&&(d.Gf(Zc,7),d.Gf(ee,7),d.Gf(Ka,7),d.Gf(Pp,7),d.Gf(Kc,5),d.Gf(be,5)),2&s){let f;d.iGM(f=d.CRH())&&(p._inkBar=f.first),d.iGM(f=d.CRH())&&(p._tabListContainer=f.first),d.iGM(f=d.CRH())&&(p._tabList=f.first),d.iGM(f=d.CRH())&&(p._tabListInner=f.first),d.iGM(f=d.CRH())&&(p._nextPaginator=f.first),d.iGM(f=d.CRH())&&(p._previousPaginator=f.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(s,p){2&s&&d.ekj("mat-tab-header-pagination-controls-enabled",p._showPaginationControls)("mat-tab-header-rtl","rtl"==p._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[d.qOj],ngContentSelectors:Yc,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(s,p){1&s&&(d.F$t(),d.TgZ(0,"button",0,1),d.NdJ("click",function(){return p._handlePaginatorClick("before")})("mousedown",function(g){return p._handlePaginatorPress("before",g)})("touchend",function(){return p._stopInterval()}),d._UZ(2,"div",2),d.qZA(),d.TgZ(3,"div",3,4),d.NdJ("keydown",function(g){return p._handleKeydown(g)}),d.TgZ(5,"div",5,6),d.NdJ("cdkObserveContent",function(){return p._onContentChanges()}),d.TgZ(7,"div",7,8),d.Hsn(9),d.qZA(),d._UZ(10,"mat-ink-bar"),d.qZA()(),d.TgZ(11,"button",9,10),d.NdJ("mousedown",function(g){return p._handlePaginatorPress("after",g)})("click",function(){return p._handlePaginatorClick("after")})("touchend",function(){return p._stopInterval()}),d._UZ(13,"div",2),d.qZA()),2&s&&(d.ekj("mat-tab-header-pagination-disabled",p._disableScrollBefore),d.Q6J("matRippleDisabled",p._disableScrollBefore||p.disableRipple)("disabled",p._disableScrollBefore||null),d.xp6(5),d.ekj("_mat-animation-noopable","NoopAnimations"===p._animationMode),d.xp6(6),d.ekj("mat-tab-header-pagination-disabled",p._disableScrollAfter),d.Q6J("matRippleDisabled",p._disableScrollAfter||p.disableRipple)("disabled",p._disableScrollAfter||null))},dependencies:[Ae.wG,Ut.wD,Zc],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),u})(),Hp=(()=>{class u extends vs{constructor(s,p,f,g){super(s,p,f,g)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Wc,8),d.Y36(d.QbO,8))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-tab-group"]],contentQueries:function(s,p,f){if(1&s&&d.Suo(f,qc,5),2&s){let g;d.iGM(g=d.CRH())&&(p._allTabs=g)}},viewQuery:function(s,p){if(1&s&&(d.Gf(Ip,5),d.Gf(gi,5)),2&s){let f;d.iGM(f=d.CRH())&&(p._tabBodyWrapper=f.first),d.iGM(f=d.CRH())&&(p._tabHeader=f.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(s,p){2&s&&d.ekj("mat-tab-group-dynamic-height",p.dynamicHeight)("mat-tab-group-inverted-header","below"===p.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[d._Bn([{provide:Ua,useExisting:u}]),d.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(s,p){1&s&&(d.TgZ(0,"mat-tab-header",0,1),d.NdJ("indexFocused",function(g){return p._focusChanged(g)})("selectFocusedIndex",function(g){return p.selectedIndex=g}),d.YNc(2,Np,5,15,"div",2),d.qZA(),d.TgZ(3,"div",3,4),d.YNc(5,cr,1,11,"mat-tab-body",5),d.qZA()),2&s&&(d.Q6J("selectedIndex",p.selectedIndex||0)("disableRipple",p.disableRipple)("disablePagination",p.disablePagination),d.xp6(2),d.Q6J("ngForOf",p._tabs),d.xp6(1),d.ekj("_mat-animation-noopable","NoopAnimations"===p._animationMode),d.xp6(2),d.Q6J("ngForOf",p._tabs))},dependencies:[L.mk,L.sg,L.O5,Oe,Ae.wG,Ze.kH,Xc,Qc,kp],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),u})(),Bp=(()=>{class u extends Cp{}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275dir=d.lG2({type:u,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[d._Bn([{provide:Nr,useExisting:u}]),d.qOj]}),u})(),ys=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[L.ez,Ae.BQ,Bt,Ae.si,Ut.Q8,Ze.rt,Ae.BQ]}),u})();var Ni=M(97392),$a=M(97272),Lt=M(25032),Hr=M(69718);function Kn(u,c){return c?s=>(0,$a.z)(c.pipe((0,Qt.q)(1),function Jc(){return(0,Rt.e)((u,c)=>{u.subscribe((0,jt.x)(c,Lt.Z))})}()),s.pipe(Kn(u))):(0,wi.z)((s,p)=>u(s,p).pipe((0,Qt.q)(1),(0,Hr.h)(s)))}function $n(u,c=et.z){const s=(0,$.H)(u,c);return Kn(()=>s)}const Vr=(0,Ke.Mq)();class Cs{constructor(c,s){this._viewportRuler=c,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){const c=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=c.style.left||"",this._previousHTMLStyles.top=c.style.top||"",c.style.left=(0,D.HM)(-this._previousScrollPosition.left),c.style.top=(0,D.HM)(-this._previousScrollPosition.top),c.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const c=this._document.documentElement,p=c.style,f=this._document.body.style,g=p.scrollBehavior||"",C=f.scrollBehavior||"";this._isEnabled=!1,p.left=this._previousHTMLStyles.left,p.top=this._previousHTMLStyles.top,c.classList.remove("cdk-global-scrollblock"),Vr&&(p.scrollBehavior=f.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Vr&&(p.scrollBehavior=g,f.scrollBehavior=C)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const s=this._document.body,p=this._viewportRuler.getViewportSize();return s.scrollHeight>p.height||s.scrollWidth>p.width}}class ws{constructor(c,s,p,f){this._scrollDispatcher=c,this._ngZone=s,this._viewportRuler=p,this._config=f,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(c){this._overlayRef=c}enable(){if(this._scrollSubscription)return;const c=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=c.subscribe(()=>{const s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=c.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Br{enable(){}disable(){}attach(){}}function dr(u,c){return c.some(s=>u.bottoms.bottom||u.rights.right)}function bo(u,c){return c.some(s=>u.tops.bottom||u.lefts.right)}class zi{constructor(c,s,p,f){this._scrollDispatcher=c,this._viewportRuler=s,this._ngZone=p,this._config=f,this._scrollSubscription=null}attach(c){this._overlayRef=c}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:p,height:f}=this._viewportRuler.getViewportSize();dr(s,[{width:p,height:f,bottom:f,right:p,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Wp=(()=>{class u{constructor(s,p,f,g){this._scrollDispatcher=s,this._viewportRuler=p,this._ngZone=f,this.noop=()=>new Br,this.close=C=>new ws(this._scrollDispatcher,this._ngZone,this._viewportRuler,C),this.block=()=>new Cs(this._viewportRuler,this._document),this.reposition=C=>new zi(this._scrollDispatcher,this._viewportRuler,this._ngZone,C),this._document=g}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(ge),d.LFG(Fr),d.LFG(d.R0b),d.LFG(L.K0))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();class Nn{constructor(c){if(this.scrollStrategy=new Br,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,c){const s=Object.keys(c);for(const p of s)void 0!==c[p]&&(this[p]=c[p])}}}class Up{constructor(c,s){this.connectionPair=c,this.scrollableViewProperties=s}}let bs=(()=>{class u{constructor(s){this._attachedOverlays=[],this._document=s}ngOnDestroy(){this.detach()}add(s){this.remove(s),this._attachedOverlays.push(s)}remove(s){const p=this._attachedOverlays.indexOf(s);p>-1&&this._attachedOverlays.splice(p,1),0===this._attachedOverlays.length&&this.detach()}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(L.K0))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),Za=(()=>{class u extends bs{constructor(s,p){super(s),this._ngZone=p,this._keydownListener=f=>{const g=this._attachedOverlays;for(let C=g.length-1;C>-1;C--)if(g[C]._keydownEvents.observers.length>0){const x=g[C]._keydownEvents;this._ngZone?this._ngZone.run(()=>x.next(f)):x.next(f);break}}}add(s){super.add(s),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(L.K0),d.LFG(d.R0b,8))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),qa=(()=>{class u extends bs{constructor(s,p,f){super(s),this._platform=p,this._ngZone=f,this._cursorStyleIsSet=!1,this._pointerDownListener=g=>{this._pointerDownEventTarget=(0,Ke.sA)(g)},this._clickListener=g=>{const C=(0,Ke.sA)(g),x="click"===g.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:C;this._pointerDownEventTarget=null;const A=this._attachedOverlays.slice();for(let J=A.length-1;J>-1;J--){const q=A[J];if(q._outsidePointerEvents.observers.length<1||!q.hasAttached())continue;if(q.overlayElement.contains(C)||q.overlayElement.contains(x))break;const xe=q._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>xe.next(g)):xe.next(g)}}}add(s){if(super.add(s),!this._isAttached){const p=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(p)):this._addEventListeners(p),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=p.style.cursor,p.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const s=this._document.body;s.removeEventListener("pointerdown",this._pointerDownListener,!0),s.removeEventListener("click",this._clickListener,!0),s.removeEventListener("auxclick",this._clickListener,!0),s.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(s.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(s){s.addEventListener("pointerdown",this._pointerDownListener,!0),s.addEventListener("click",this._clickListener,!0),s.addEventListener("auxclick",this._clickListener,!0),s.addEventListener("contextmenu",this._clickListener,!0)}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(L.K0),d.LFG(Ke.t4),d.LFG(d.R0b,8))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),Eo=(()=>{class u{constructor(s,p){this._platform=p,this._document=s}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const s="cdk-overlay-container";if(this._platform.isBrowser||(0,Ke.Oy)()){const f=this._document.querySelectorAll(`.${s}[platform="server"], .${s}[platform="test"]`);for(let g=0;gthis._backdropClick.next(xe),this._backdropTransitionendHandler=xe=>{this._disposeBackdrop(xe.target)},this._keydownEvents=new pe.x,this._outsidePointerEvents=new pe.x,f.scrollStrategy&&(this._scrollStrategy=f.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=f.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(c){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const s=this._portalOutlet.attach(c);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof s?.onDestroy&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const c=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),c}dispose(){const c=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,c&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(c){c!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=c,this.hasAttached()&&(c.attach(this),this.updatePosition()))}updateSize(c){this._config={...this._config,...c},this._updateElementSize()}setDirection(c){this._config={...this._config,direction:c},this._updateElementDirection()}addPanelClass(c){this._pane&&this._toggleClasses(this._pane,c,!0)}removePanelClass(c){this._pane&&this._toggleClasses(this._pane,c,!1)}getDirection(){const c=this._config.direction;return c?"string"==typeof c?c:c.value:"ltr"}updateScrollStrategy(c){c!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=c,this.hasAttached()&&(c.attach(this),c.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const c=this._pane.style;c.width=(0,D.HM)(this._config.width),c.height=(0,D.HM)(this._config.height),c.minWidth=(0,D.HM)(this._config.minWidth),c.minHeight=(0,D.HM)(this._config.minHeight),c.maxWidth=(0,D.HM)(this._config.maxWidth),c.maxHeight=(0,D.HM)(this._config.maxHeight)}_togglePointerEvents(c){this._pane.style.pointerEvents=c?"":"none"}_attachBackdrop(){const c="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(c)})}):this._backdropElement.classList.add(c)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const c=this._backdropElement;if(c){if(this._animationsDisabled)return void this._disposeBackdrop(c);c.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{c.addEventListener("transitionend",this._backdropTransitionendHandler)}),c.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(c)},500))}}_toggleClasses(c,s,p){const f=(0,D.Eq)(s||[]).filter(g=>!!g);f.length&&(p?c.classList.add(...f):c.classList.remove(...f))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const c=this._ngZone.onStable.pipe((0,Y.R)((0,G.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),c.unsubscribe())})})}_disposeScrollStrategy(){const c=this._scrollStrategy;c&&(c.disable(),c.detach&&c.detach())}_disposeBackdrop(c){c&&(c.removeEventListener("click",this._backdropClickHandler),c.removeEventListener("transitionend",this._backdropTransitionendHandler),c.remove(),this._backdropElement===c&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const xs="cdk-overlay-connected-position-bounding-box",Qa=/([A-Za-z%]+)$/;class id{constructor(c,s,p,f,g){this._viewportRuler=s,this._document=p,this._platform=f,this._overlayContainer=g,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new pe.x,this._resizeSubscription=$t.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(c)}get positions(){return this._preferredPositions}attach(c){this._validatePositions(),c.hostElement.classList.add(xs),this._overlayRef=c,this._boundingBox=c.hostElement,this._pane=c.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const c=this._originRect,s=this._overlayRect,p=this._viewportRect,f=this._containerRect,g=[];let C;for(let x of this._preferredPositions){let A=this._getOriginPoint(c,f,x),J=this._getOverlayPoint(A,s,x),q=this._getOverlayFit(J,s,p,x);if(q.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(x,A);this._canFitWithFlexibleDimensions(q,J,p)?g.push({position:x,origin:A,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(A,x)}):(!C||C.overlayFit.visibleAreaA&&(A=q,x=J)}return this._isPushed=!1,void this._applyPosition(x.position,x.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(C.position,C.originPoint);this._applyPosition(C.position,C.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xs),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const c=this._lastPosition;if(c){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._getOriginPoint(this._originRect,this._containerRect,c);this._applyPosition(c,s)}else this.apply()}withScrollableContainers(c){return this._scrollables=c,this}withPositions(c){return this._preferredPositions=c,-1===c.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(c){return this._viewportMargin=c,this}withFlexibleDimensions(c=!0){return this._hasFlexibleDimensions=c,this}withGrowAfterOpen(c=!0){return this._growAfterOpen=c,this}withPush(c=!0){return this._canPush=c,this}withLockedPosition(c=!0){return this._positionLocked=c,this}setOrigin(c){return this._origin=c,this}withDefaultOffsetX(c){return this._offsetX=c,this}withDefaultOffsetY(c){return this._offsetY=c,this}withTransformOriginOn(c){return this._transformOriginSelector=c,this}_getOriginPoint(c,s,p){let f,g;if("center"==p.originX)f=c.left+c.width/2;else{const C=this._isRtl()?c.right:c.left,x=this._isRtl()?c.left:c.right;f="start"==p.originX?C:x}return s.left<0&&(f-=s.left),g="center"==p.originY?c.top+c.height/2:"top"==p.originY?c.top:c.bottom,s.top<0&&(g-=s.top),{x:f,y:g}}_getOverlayPoint(c,s,p){let f,g;return f="center"==p.overlayX?-s.width/2:"start"===p.overlayX?this._isRtl()?-s.width:0:this._isRtl()?0:-s.width,g="center"==p.overlayY?-s.height/2:"top"==p.overlayY?0:-s.height,{x:c.x+f,y:c.y+g}}_getOverlayFit(c,s,p,f){const g=nd(s);let{x:C,y:x}=c,A=this._getOffset(f,"x"),J=this._getOffset(f,"y");A&&(C+=A),J&&(x+=J);let je=0-x,Te=x+g.height-p.height,Qe=this._subtractOverflows(g.width,0-C,C+g.width-p.width),ze=this._subtractOverflows(g.height,je,Te),mt=Qe*ze;return{visibleArea:mt,isCompletelyWithinViewport:g.width*g.height===mt,fitsInViewportVertically:ze===g.height,fitsInViewportHorizontally:Qe==g.width}}_canFitWithFlexibleDimensions(c,s,p){if(this._hasFlexibleDimensions){const f=p.bottom-s.y,g=p.right-s.x,C=gn(this._overlayRef.getConfig().minHeight),x=gn(this._overlayRef.getConfig().minWidth),J=c.fitsInViewportHorizontally||null!=x&&x<=g;return(c.fitsInViewportVertically||null!=C&&C<=f)&&J}return!1}_pushOverlayOnScreen(c,s,p){if(this._previousPushAmount&&this._positionLocked)return{x:c.x+this._previousPushAmount.x,y:c.y+this._previousPushAmount.y};const f=nd(s),g=this._viewportRect,C=Math.max(c.x+f.width-g.width,0),x=Math.max(c.y+f.height-g.height,0),A=Math.max(g.top-p.top-c.y,0),J=Math.max(g.left-p.left-c.x,0);let q=0,xe=0;return q=f.width<=g.width?J||-C:c.xQe&&!this._isInitialRender&&!this._growAfterOpen&&(C=c.y-Qe/2)}if("end"===s.overlayX&&!f||"start"===s.overlayX&&f)je=p.width-c.x+this._viewportMargin,q=c.x-this._viewportMargin;else if("start"===s.overlayX&&!f||"end"===s.overlayX&&f)xe=c.x,q=p.right-c.x;else{const Te=Math.min(p.right-c.x+p.left,c.x),Qe=this._lastBoundingBoxSize.width;q=2*Te,xe=c.x-Te,q>Qe&&!this._isInitialRender&&!this._growAfterOpen&&(xe=c.x-Qe/2)}return{top:C,left:xe,bottom:x,right:je,width:q,height:g}}_setBoundingBoxStyles(c,s){const p=this._calculateBoundingBoxRect(c,s);!this._isInitialRender&&!this._growAfterOpen&&(p.height=Math.min(p.height,this._lastBoundingBoxSize.height),p.width=Math.min(p.width,this._lastBoundingBoxSize.width));const f={};if(this._hasExactPosition())f.top=f.left="0",f.bottom=f.right=f.maxHeight=f.maxWidth="",f.width=f.height="100%";else{const g=this._overlayRef.getConfig().maxHeight,C=this._overlayRef.getConfig().maxWidth;f.height=(0,D.HM)(p.height),f.top=(0,D.HM)(p.top),f.bottom=(0,D.HM)(p.bottom),f.width=(0,D.HM)(p.width),f.left=(0,D.HM)(p.left),f.right=(0,D.HM)(p.right),f.alignItems="center"===s.overlayX?"center":"end"===s.overlayX?"flex-end":"flex-start",f.justifyContent="center"===s.overlayY?"center":"bottom"===s.overlayY?"flex-end":"flex-start",g&&(f.maxHeight=(0,D.HM)(g)),C&&(f.maxWidth=(0,D.HM)(C))}this._lastBoundingBoxSize=p,mn(this._boundingBox.style,f)}_resetBoundingBoxStyles(){mn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(c,s){const p={},f=this._hasExactPosition(),g=this._hasFlexibleDimensions,C=this._overlayRef.getConfig();if(f){const q=this._viewportRuler.getViewportScrollPosition();mn(p,this._getExactOverlayY(s,c,q)),mn(p,this._getExactOverlayX(s,c,q))}else p.position="static";let x="",A=this._getOffset(s,"x"),J=this._getOffset(s,"y");A&&(x+=`translateX(${A}px) `),J&&(x+=`translateY(${J}px)`),p.transform=x.trim(),C.maxHeight&&(f?p.maxHeight=(0,D.HM)(C.maxHeight):g&&(p.maxHeight="")),C.maxWidth&&(f?p.maxWidth=(0,D.HM)(C.maxWidth):g&&(p.maxWidth="")),mn(this._pane.style,p)}_getExactOverlayY(c,s,p){let f={top:"",bottom:""},g=this._getOverlayPoint(s,this._overlayRect,c);return this._isPushed&&(g=this._pushOverlayOnScreen(g,this._overlayRect,p)),"bottom"===c.overlayY?f.bottom=this._document.documentElement.clientHeight-(g.y+this._overlayRect.height)+"px":f.top=(0,D.HM)(g.y),f}_getExactOverlayX(c,s,p){let C,f={left:"",right:""},g=this._getOverlayPoint(s,this._overlayRect,c);return this._isPushed&&(g=this._pushOverlayOnScreen(g,this._overlayRect,p)),C=this._isRtl()?"end"===c.overlayX?"left":"right":"end"===c.overlayX?"right":"left","right"===C?f.right=this._document.documentElement.clientWidth-(g.x+this._overlayRect.width)+"px":f.left=(0,D.HM)(g.x),f}_getScrollVisibility(){const c=this._getOriginRect(),s=this._pane.getBoundingClientRect(),p=this._scrollables.map(f=>f.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:bo(c,p),isOriginOutsideView:dr(c,p),isOverlayClipped:bo(s,p),isOverlayOutsideView:dr(s,p)}}_subtractOverflows(c,...s){return s.reduce((p,f)=>p-Math.max(f,0),c)}_getNarrowedViewportRect(){const c=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,p=this._viewportRuler.getViewportScrollPosition();return{top:p.top+this._viewportMargin,left:p.left+this._viewportMargin,right:p.left+c-this._viewportMargin,bottom:p.top+s-this._viewportMargin,width:c-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(c,s){return"x"===s?c.offsetX??this._offsetX:c.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(c){this._pane&&(0,D.Eq)(c).forEach(s=>{""!==s&&-1===this._appliedPanelClasses.indexOf(s)&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(c=>{this._pane.classList.remove(c)}),this._appliedPanelClasses=[])}_getOriginRect(){const c=this._origin;if(c instanceof d.SBq)return c.nativeElement.getBoundingClientRect();if(c instanceof Element)return c.getBoundingClientRect();const s=c.width||0,p=c.height||0;return{top:c.y,bottom:c.y+p,left:c.x,right:c.x+s,height:p,width:s}}}function mn(u,c){for(let s in c)c.hasOwnProperty(s)&&(u[s]=c[s]);return u}function gn(u){if("number"!=typeof u&&null!=u){const[c,s]=u.split(Qa);return s&&"px"!==s?null:parseFloat(c)}return u||null}function nd(u){return{top:Math.floor(u.top),right:Math.floor(u.right),bottom:Math.floor(u.bottom),left:Math.floor(u.left),width:Math.floor(u.width),height:Math.floor(u.height)}}const Xa="cdk-global-overlay-wrapper";class od{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(c){const s=c.getConfig();this._overlayRef=c,this._width&&!s.width&&c.updateSize({width:this._width}),this._height&&!s.height&&c.updateSize({height:this._height}),c.hostElement.classList.add(Xa),this._isDisposed=!1}top(c=""){return this._bottomOffset="",this._topOffset=c,this._alignItems="flex-start",this}left(c=""){return this._xOffset=c,this._xPosition="left",this}bottom(c=""){return this._topOffset="",this._bottomOffset=c,this._alignItems="flex-end",this}right(c=""){return this._xOffset=c,this._xPosition="right",this}start(c=""){return this._xOffset=c,this._xPosition="start",this}end(c=""){return this._xOffset=c,this._xPosition="end",this}width(c=""){return this._overlayRef?this._overlayRef.updateSize({width:c}):this._width=c,this}height(c=""){return this._overlayRef?this._overlayRef.updateSize({height:c}):this._height=c,this}centerHorizontally(c=""){return this.left(c),this._xPosition="center",this}centerVertically(c=""){return this.top(c),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const c=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,p=this._overlayRef.getConfig(),{width:f,height:g,maxWidth:C,maxHeight:x}=p,A=!("100%"!==f&&"100vw"!==f||C&&"100%"!==C&&"100vw"!==C),J=!("100%"!==g&&"100vh"!==g||x&&"100%"!==x&&"100vh"!==x),q=this._xPosition,xe=this._xOffset,je="rtl"===this._overlayRef.getConfig().direction;let Te="",Qe="",ze="";A?ze="flex-start":"center"===q?(ze="center",je?Qe=xe:Te=xe):je?"left"===q||"end"===q?(ze="flex-end",Te=xe):("right"===q||"start"===q)&&(ze="flex-start",Qe=xe):"left"===q||"start"===q?(ze="flex-start",Te=xe):("right"===q||"end"===q)&&(ze="flex-end",Qe=xe),c.position=this._cssPosition,c.marginLeft=A?"0":Te,c.marginTop=J?"0":this._topOffset,c.marginBottom=this._bottomOffset,c.marginRight=A?"0":Qe,s.justifyContent=ze,s.alignItems=J?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const c=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,p=s.style;s.classList.remove(Xa),p.justifyContent=p.alignItems=c.marginTop=c.marginBottom=c.marginLeft=c.marginRight=c.position="",this._overlayRef=null,this._isDisposed=!0}}let Ro=(()=>{class u{constructor(s,p,f,g){this._viewportRuler=s,this._document=p,this._platform=f,this._overlayContainer=g}global(){return new od}flexibleConnectedTo(s){return new id(s,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(Fr),d.LFG(L.K0),d.LFG(Ke.t4),d.LFG(Eo))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),sd=0,xn=(()=>{class u{constructor(s,p,f,g,C,x,A,J,q,xe,je,Te){this.scrollStrategies=s,this._overlayContainer=p,this._componentFactoryResolver=f,this._positionBuilder=g,this._keyboardDispatcher=C,this._injector=x,this._ngZone=A,this._document=J,this._directionality=q,this._location=xe,this._outsideClickDispatcher=je,this._animationsModuleType=Te}create(s){const p=this._createHostElement(),f=this._createPaneElement(p),g=this._createPortalOutlet(f),C=new Nn(s);return C.direction=C.direction||this._directionality.value,new So(g,p,f,C,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(s){const p=this._document.createElement("div");return p.id="cdk-overlay-"+sd++,p.classList.add("cdk-overlay-pane"),s.appendChild(p),p}_createHostElement(){const s=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(s),s}_createPortalOutlet(s){return this._appRef||(this._appRef=this._injector.get(d.z2F)),new Q(s,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(Wp),d.LFG(Eo),d.LFG(d._Vd),d.LFG(Ro),d.LFG(Za),d.LFG(d.zs3),d.LFG(d.R0b),d.LFG(L.K0),d.LFG(kt.Is),d.LFG(L.Ye),d.LFG(qa),d.LFG(d.QbO,8))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const zp={provide:new d.OlP("cdk-connected-overlay-scroll-strategy"),deps:[xn],useFactory:function jp(u){return()=>u.scrollStrategies.reposition()}};let Ja=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({providers:[xn,zp],imports:[kt.vT,Bt,ds,ds]}),u})();const Yp=["mat-menu-item",""];function Kp(u,c){1&u&&(d.O4$(),d.TgZ(0,"svg",3),d._UZ(1,"polygon",4),d.qZA())}const ci=[[["mat-icon"]],"*"],Zn=["mat-icon","*"],Es=new d.OlP("MAT_MENU_PANEL"),ld=(0,Ae.Kr)((0,Ae.Id)(class{}));let Ur=(()=>{class u extends ld{constructor(s,p,f,g,C){super(),this._elementRef=s,this._document=p,this._focusMonitor=f,this._parentMenu=g,this._changeDetectorRef=C,this.role="menuitem",this._hovered=new pe.x,this._focused=new pe.x,this._highlighted=!1,this._triggersSubmenu=!1,g?.addItem?.(this)}focus(s,p){this._focusMonitor&&s?this._focusMonitor.focusVia(this._getHostElement(),s,p):this._getHostElement().focus(p),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(s){this.disabled&&(s.preventDefault(),s.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const s=this._elementRef.nativeElement.cloneNode(!0),p=s.querySelectorAll("mat-icon, .material-icons");for(let f=0;f{class u{constructor(s,p,f,g,C,x,A){this._template=s,this._componentFactoryResolver=p,this._appRef=f,this._injector=g,this._viewContainerRef=C,this._document=x,this._changeDetectorRef=A,this._attached=new pe.x}attach(s={}){this._portal||(this._portal=new Ve(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Q(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const p=this._template.elementRef.nativeElement;p.parentNode.insertBefore(this._outlet.outletElement,p),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,s),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.Rgc),d.Y36(d._Vd),d.Y36(d.z2F),d.Y36(d.zs3),d.Y36(d.s_b),d.Y36(L.K0),d.Y36(d.sBO))},u.\u0275dir=d.lG2({type:u}),u})();const zr={transformMenu:(0,V.X$)("transformMenu",[(0,V.SB)("void",(0,V.oB)({opacity:0,transform:"scale(0.8)"})),(0,V.eR)("void => enter",(0,V.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:1,transform:"scale(1)"}))),(0,V.eR)("* => void",(0,V.jt)("100ms 25ms linear",(0,V.oB)({opacity:0})))]),fadeInItems:(0,V.X$)("fadeInItems",[(0,V.SB)("showing",(0,V.oB)({opacity:1})),(0,V.eR)("void => *",[(0,V.oB)({opacity:0}),(0,V.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ud=0;const Ss=new d.OlP("mat-menu-default-options",{providedIn:"root",factory:function il(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Yr=(()=>{class u{constructor(s,p,f,g){this._elementRef=s,this._ngZone=p,this._defaultOptions=f,this._changeDetectorRef=g,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new d.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new pe.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new d.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ud++}get xPosition(){return this._xPosition}set xPosition(s){this._xPosition=s,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(s){this._yPosition=s,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(s){this._overlapTrigger=(0,D.Ig)(s)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(s){this._hasBackdrop=(0,D.Ig)(s)}set panelClass(s){const p=this._previousPanelClass;p&&p.length&&p.split(" ").forEach(f=>{this._classList[f]=!1}),this._previousPanelClass=s,s&&s.length&&(s.split(" ").forEach(f=>{this._classList[f]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(s){this.panelClass=s}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ze.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,k.O)(this._directDescendantItems),(0,Ye.w)(s=>(0,G.T)(...s.map(p=>p._focused)))).subscribe(s=>this._keyManager.updateActiveItem(s)),this._directDescendantItems.changes.subscribe(s=>{const p=this._keyManager;if("enter"===this._panelAnimationState&&p.activeItem?._hasFocus()){const f=s.toArray(),g=Math.max(0,Math.min(f.length-1,p.activeItemIndex||0));f[g]&&!f[g].disabled?p.setActiveItem(g):p.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,k.O)(this._directDescendantItems),(0,Ye.w)(p=>(0,G.T)(...p.map(f=>f._hovered))))}addItem(s){}removeItem(s){}_handleKeydown(s){const p=s.keyCode,f=this._keyManager;switch(p){case Pt.hY:(0,Pt.Vb)(s)||(s.preventDefault(),this.closed.emit("keydown"));break;case Pt.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Pt.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(p===Pt.LH||p===Pt.JH)&&f.setFocusOrigin("keyboard"),void f.onKeydown(s)}s.stopPropagation()}focusFirstItem(s="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(()=>{let p=null;if(this._directDescendantItems.length&&(p=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!p||!p.contains(document.activeElement)){const f=this._keyManager;f.setFocusOrigin(s).setFirstItemActive(),!f.activeItem&&p&&p.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(s){const p=Math.min(this._baseElevation+s,24),f=`${this._elevationPrefix}${p}`,g=Object.keys(this._classList).find(C=>C.startsWith(this._elevationPrefix));(!g||g===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[f]=!0,this._previousElevation=f)}setPositionClasses(s=this.xPosition,p=this.yPosition){const f=this._classList;f["mat-menu-before"]="before"===s,f["mat-menu-after"]="after"===s,f["mat-menu-above"]="above"===p,f["mat-menu-below"]="below"===p,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(s){this._animationDone.next(s),this._isAnimating=!1}_onAnimationStart(s){this._isAnimating=!0,"enter"===s.toState&&0===this._keyManager.activeItemIndex&&(s.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,k.O)(this._allItems)).subscribe(s=>{this._directDescendantItems.reset(s.filter(p=>p._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(Ss),d.Y36(d.sBO))},u.\u0275dir=d.lG2({type:u,contentQueries:function(s,p,f){if(1&s&&(d.Suo(f,el,5),d.Suo(f,Ur,5),d.Suo(f,Ur,4)),2&s){let g;d.iGM(g=d.CRH())&&(p.lazyContent=g.first),d.iGM(g=d.CRH())&&(p._allItems=g),d.iGM(g=d.CRH())&&(p.items=g)}},viewQuery:function(s,p){if(1&s&&d.Gf(d.Rgc,5),2&s){let f;d.iGM(f=d.CRH())&&(p.templateRef=f.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),u})();const Rs=new d.OlP("mat-menu-scroll-strategy"),nl={provide:Rs,deps:[xn],useFactory:function pd(u){return()=>u.scrollStrategies.reposition()}},rl=(0,Ke.i$)({passive:!0});let hd=(()=>{class u{constructor(s,p,f,g,C,x,A,J,q){this._overlay=s,this._element=p,this._viewContainerRef=f,this._menuItemInstance=x,this._dir=A,this._focusMonitor=J,this._ngZone=q,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=$t.w0.EMPTY,this._hoverSubscription=$t.w0.EMPTY,this._menuCloseSubscription=$t.w0.EMPTY,this._handleTouchStart=xe=>{(0,Ze.yG)(xe)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new d.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new d.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=g,this._parentMaterialMenu=C instanceof Yr?C:void 0,p.nativeElement.addEventListener("touchstart",this._handleTouchStart,rl)}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(s){this.menu=s}get menu(){return this._menu}set menu(s){s!==this._menu&&(this._menu=s,this._menuCloseSubscription.unsubscribe(),s&&(this._menuCloseSubscription=s.close.subscribe(p=>{this._destroyMenu(p),("click"===p||"tab"===p)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(p)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,rl),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const s=this.menu;if(this._menuOpen||!s)return;const p=this._createOverlay(s),f=p.getConfig(),g=f.positionStrategy;this._setPosition(s,g),f.hasBackdrop=s.hasBackdrop??!this.triggersSubmenu(),p.attach(this._getPortal(s)),s.lazyContent&&s.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(s),s instanceof Yr&&(s._startAnimation(),s._directDescendantItems.changes.pipe((0,Y.R)(s.close)).subscribe(()=>{g.withLockedPosition(!1).reapplyLastPosition(),g.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(s,p){this._focusMonitor&&s?this._focusMonitor.focusVia(this._element,s,p):this._element.nativeElement.focus(p)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(s){if(!this._overlayRef||!this.menuOpen)return;const p=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===s||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,p instanceof Yr?(p._resetAnimation(),p.lazyContent?p._animationDone.pipe((0,Be.h)(f=>"void"===f.toState),(0,Qt.q)(1),(0,Y.R)(p.lazyContent._attached)).subscribe({next:()=>p.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),p?.lazyContent?.detach())}_initMenu(s){s.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,s.direction=this.dir,this._setMenuElevation(s),s.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(s){if(s.setElevation){let p=0,f=s.parentMenu;for(;f;)p++,f=f.parentMenu;s.setElevation(p)}}_setIsMenuOpen(s){this._menuOpen=s,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(s)}_createOverlay(s){if(!this._overlayRef){const p=this._getOverlayConfig(s);this._subscribeToPositions(s,p.positionStrategy),this._overlayRef=this._overlay.create(p),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(s){return new Nn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:s.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:s.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(s,p){s.setPositionClasses&&p.positionChanges.subscribe(f=>{const g="start"===f.connectionPair.overlayX?"after":"before",C="top"===f.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>s.setPositionClasses(g,C)):s.setPositionClasses(g,C)})}_setPosition(s,p){let[f,g]="before"===s.xPosition?["end","start"]:["start","end"],[C,x]="above"===s.yPosition?["bottom","top"]:["top","bottom"],[A,J]=[C,x],[q,xe]=[f,g],je=0;if(this.triggersSubmenu()){if(xe=f="before"===s.xPosition?"start":"end",g=q="end"===f?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Te=this._parentMaterialMenu.items.first;this._parentInnerPadding=Te?Te._getHostElement().offsetTop:0}je="bottom"===C?this._parentInnerPadding:-this._parentInnerPadding}}else s.overlapTrigger||(A="top"===C?"bottom":"top",J="top"===x?"bottom":"top");p.withPositions([{originX:f,originY:A,overlayX:q,overlayY:C,offsetY:je},{originX:g,originY:A,overlayX:xe,overlayY:C,offsetY:je},{originX:f,originY:J,overlayX:q,overlayY:x,offsetY:-je},{originX:g,originY:J,overlayX:xe,overlayY:x,offsetY:-je}])}_menuClosingActions(){const s=this._overlayRef.backdropClick(),p=this._overlayRef.detachments(),f=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Xt.of)(),g=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Be.h)(C=>C!==this._menuItemInstance),(0,Be.h)(()=>this._menuOpen)):(0,Xt.of)();return(0,G.T)(s,f,g,p)}_handleMousedown(s){(0,Ze.X6)(s)||(this._openedBy=0===s.button?"mouse":void 0,this.triggersSubmenu()&&s.preventDefault())}_handleKeydown(s){const p=s.keyCode;(p===Pt.K5||p===Pt.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(p===Pt.SV&&"ltr"===this.dir||p===Pt.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(s){this.triggersSubmenu()?(s.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Be.h)(s=>s===this._menuItemInstance&&!s.disabled),$n(0,se)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Yr&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Qt.q)(1),$n(0,se),(0,Y.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(s){return(!this._portal||this._portal.templateRef!==s.templateRef)&&(this._portal=new Ve(s.templateRef,this._viewContainerRef)),this._portal}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(xn),d.Y36(d.SBq),d.Y36(d.s_b),d.Y36(Rs),d.Y36(Es,8),d.Y36(Ur,10),d.Y36(kt.Is,8),d.Y36(Ze.tE),d.Y36(d.R0b))},u.\u0275dir=d.lG2({type:u,hostVars:3,hostBindings:function(s,p){1&s&&d.NdJ("click",function(g){return p._handleClick(g)})("mousedown",function(g){return p._handleMousedown(g)})("keydown",function(g){return p._handleKeydown(g)}),2&s&&d.uIk("aria-haspopup",p.menu?"menu":null)("aria-expanded",p.menuOpen||null)("aria-controls",p.menuOpen?p.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),u})();function Jp(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"div",0),d.NdJ("keydown",function(f){d.CHM(s);const g=d.oxw();return d.KtG(g._handleKeydown(f))})("click",function(){d.CHM(s);const f=d.oxw();return d.KtG(f.closed.emit("click"))})("@transformMenu.start",function(f){d.CHM(s);const g=d.oxw();return d.KtG(g._onAnimationStart(f))})("@transformMenu.done",function(f){d.CHM(s);const g=d.oxw();return d.KtG(g._onAnimationDone(f))}),d.TgZ(1,"div",1),d.Hsn(2),d.qZA()()}if(2&u){const s=d.oxw();d.Q6J("id",s.panelId)("ngClass",s._classList)("@transformMenu",s._panelAnimationState),d.uIk("aria-label",s.ariaLabel||null)("aria-labelledby",s.ariaLabelledby||null)("aria-describedby",s.ariaDescribedby||null)}}const Os=["*"],Do=["mat-menu-item",""];function ol(u,c){1&u&&(d.O4$(),d.TgZ(0,"svg",2),d._UZ(1,"polygon",3),d.qZA())}let Kr=(()=>{class u extends Yr{constructor(s,p,f,g){super(s,p,f,g),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(Ss),d.Y36(d.sBO))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(s,p){2&s&&d.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[d._Bn([{provide:Es,useExisting:u}]),d.qOj],ngContentSelectors:Os,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(s,p){1&s&&(d.F$t(),d.YNc(0,Jp,3,6,"ng-template"))},dependencies:[L.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[zr.transformMenu,zr.fadeInItems]},changeDetection:0}),u})(),En=(()=>{class u extends Ur{}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275cmp=d.Xpm({type:u,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(s,p){2&s&&(d.uIk("role",p.role)("tabindex",p._getTabIndex())("aria-disabled",p.disabled.toString())("disabled",p.disabled||null),d.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",p._highlighted)("mat-menu-item-submenu-trigger",p._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[d._Bn([{provide:Ur,useExisting:u}]),d.qOj],attrs:Do,ngContentSelectors:Os,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(s,p){1&s&&(d.F$t(),d.Hsn(0),d._UZ(1,"div",0),d.YNc(2,ol,2,0,"svg",1)),2&s&&(d.xp6(1),d.Q6J("matRippleDisabled",p.disableRipple||p.disabled)("matRippleTrigger",p._getHostElement()),d.xp6(1),d.Q6J("ngIf",p._triggersSubmenu))},dependencies:[L.O5,Ae.wG],encapsulation:2,changeDetection:0}),u})(),$r=(()=>{class u extends hd{}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275dir=d.lG2({type:u,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[d.qOj]}),u})(),Ts=(()=>{class u extends tl{}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275dir=d.lG2({type:u,selectors:[["ng-template","matMenuContent",""]],features:[d._Bn([{provide:el,useExisting:u}]),d.qOj]}),u})(),Gi=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({providers:[nl],imports:[L.ez,Ae.BQ,Ae.si,Ja,en,Ae.BQ]}),u})(),Jt=(()=>{class u{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(s){this._vertical=(0,D.Ig)(s)}get inset(){return this._inset}set inset(s){this._inset=(0,D.Ig)(s)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(s,p){2&s&&(d.uIk("aria-orientation",p.vertical?"vertical":"horizontal"),d.ekj("mat-divider-vertical",p.vertical)("mat-divider-horizontal",!p.vertical)("mat-divider-inset",p.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(s,p){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),u})(),fd=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[Ae.BQ,Ae.BQ]}),u})();var md=M(50457),Ms=M(4128),sl=M(54004);function Qn(u){return null==u||("string"==typeof u||Array.isArray(u))&&0===u.length}function zt(u){return null!=u&&"number"==typeof u.length}const xi=new d.OlP("NgValidators"),Fe=new d.OlP("NgAsyncValidators"),Zr=/^(?=.{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 ur{static min(c){return function Ei(u){return c=>{if(Qn(c.value)||Qn(u))return null;const s=parseFloat(c.value);return!isNaN(s)&&s{if(Qn(c.value)||Qn(u))return null;const s=parseFloat(c.value);return!isNaN(s)&&s>u?{max:{max:u,actual:c.value}}:null}}(c)}static required(c){return function vd(u){return Qn(u.value)?{required:!0}:null}(c)}static requiredTrue(c){return function Ps(u){return!0===u.value?null:{required:!0}}(c)}static email(c){return function qr(u){return Qn(u.value)||Zr.test(u.value)?null:{email:!0}}(c)}static minLength(c){return function Ki(u){return c=>Qn(c.value)||!zt(c.value)?null:c.value.lengthzt(c.value)&&c.value.length>u?{maxlength:{requiredLength:u,actualLength:c.value.length}}:null}(c)}static pattern(c){return function _d(u){if(!u)return Fs;let c,s;return"string"==typeof u?(s="","^"!==u.charAt(0)&&(s+="^"),s+=u,"$"!==u.charAt(u.length-1)&&(s+="$"),c=new RegExp(s)):(s=u.toString(),c=u),p=>{if(Qn(p.value))return null;const f=p.value;return c.test(f)?null:{pattern:{requiredPattern:s,actualValue:f}}}}(c)}static nullValidator(c){return null}static compose(c){return Cd(c)}static composeAsync(c){return wd(c)}}function Fs(u){return null}function Ls(u){return null!=u}function yd(u){return(0,d.QGY)(u)?(0,md.D)(u):u}function Je(u){let c={};return u.forEach(s=>{c=null!=s?{...c,...s}:c}),0===Object.keys(c).length?null:c}function oh(u,c){return c.map(s=>s(u))}function cl(u){return u.map(c=>function ce(u){return!u.validate}(c)?c:s=>c.validate(s))}function Cd(u){if(!u)return null;const c=u.filter(Ls);return 0==c.length?null:function(s){return Je(oh(s,c))}}function dl(u){return null!=u?Cd(cl(u)):null}function wd(u){if(!u)return null;const c=u.filter(Ls);return 0==c.length?null:function(s){const p=oh(s,c).map(yd);return(0,Ms.D)(p).pipe((0,sl.U)(Je))}}function Ns(u){return null!=u?wd(cl(u)):null}function bd(u,c){return null===u?[c]:Array.isArray(u)?[...u,c]:[u,c]}function ul(u){return u._rawValidators}function Gs(u){return u._rawAsyncValidators}function ks(u){return u?Array.isArray(u)?u:[u]:[]}function Hs(u,c){return Array.isArray(u)?u.includes(c):u===c}function xd(u,c){const s=ks(c);return ks(u).forEach(f=>{Hs(s,f)||s.push(f)}),s}function Vs(u,c){return ks(c).filter(s=>!Hs(u,s))}class pl{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(c){this._rawValidators=c||[],this._composedValidatorFn=dl(this._rawValidators)}_setAsyncValidators(c){this._rawAsyncValidators=c||[],this._composedAsyncValidatorFn=Ns(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(c){this._onDestroyCallbacks.push(c)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(c=>c()),this._onDestroyCallbacks=[]}reset(c){this.control&&this.control.reset(c)}hasError(c,s){return!!this.control&&this.control.hasError(c,s)}getError(c,s){return this.control?this.control.getError(c,s):null}}class Zt extends pl{get formDirective(){return null}get path(){return null}}class Gn extends pl{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}const Mo="VALID",ei="INVALID",Xr="PENDING",hr="DISABLED";function fr(u){return(Ws(u)?u.validators:u)||null}function _l(u){return Array.isArray(u)?dl(u):u||null}function Bs(u,c){return(Ws(c)?c.asyncValidators:u)||null}function yl(u){return Array.isArray(u)?Ns(u):u||null}function Ws(u){return null!=u&&!Array.isArray(u)&&"object"==typeof u}class Us{constructor(c,s){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=c,this._rawAsyncValidators=s,this._composedValidatorFn=_l(this._rawValidators),this._composedAsyncValidatorFn=yl(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(c){this._rawValidators=this._composedValidatorFn=c}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(c){this._rawAsyncValidators=this._composedAsyncValidatorFn=c}get parent(){return this._parent}get valid(){return this.status===Mo}get invalid(){return this.status===ei}get pending(){return this.status==Xr}get disabled(){return this.status===hr}get enabled(){return this.status!==hr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(c){this._rawValidators=c,this._composedValidatorFn=_l(c)}setAsyncValidators(c){this._rawAsyncValidators=c,this._composedAsyncValidatorFn=yl(c)}addValidators(c){this.setValidators(xd(c,this._rawValidators))}addAsyncValidators(c){this.setAsyncValidators(xd(c,this._rawAsyncValidators))}removeValidators(c){this.setValidators(Vs(c,this._rawValidators))}removeAsyncValidators(c){this.setAsyncValidators(Vs(c,this._rawAsyncValidators))}hasValidator(c){return Hs(this._rawValidators,c)}hasAsyncValidator(c){return Hs(this._rawAsyncValidators,c)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(c={}){this.touched=!0,this._parent&&!c.onlySelf&&this._parent.markAsTouched(c)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(c=>c.markAllAsTouched())}markAsUntouched(c={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(s=>{s.markAsUntouched({onlySelf:!0})}),this._parent&&!c.onlySelf&&this._parent._updateTouched(c)}markAsDirty(c={}){this.pristine=!1,this._parent&&!c.onlySelf&&this._parent.markAsDirty(c)}markAsPristine(c={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(s=>{s.markAsPristine({onlySelf:!0})}),this._parent&&!c.onlySelf&&this._parent._updatePristine(c)}markAsPending(c={}){this.status=Xr,!1!==c.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!c.onlySelf&&this._parent.markAsPending(c)}disable(c={}){const s=this._parentMarkedDirty(c.onlySelf);this.status=hr,this.errors=null,this._forEachChild(p=>{p.disable({...c,onlySelf:!0})}),this._updateValue(),!1!==c.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...c,skipPristineCheck:s}),this._onDisabledChange.forEach(p=>p(!0))}enable(c={}){const s=this._parentMarkedDirty(c.onlySelf);this.status=Mo,this._forEachChild(p=>{p.enable({...c,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:c.emitEvent}),this._updateAncestors({...c,skipPristineCheck:s}),this._onDisabledChange.forEach(p=>p(!1))}_updateAncestors(c){this._parent&&!c.onlySelf&&(this._parent.updateValueAndValidity(c),c.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(c){this._parent=c}getRawValue(){return this.value}updateValueAndValidity(c={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mo||this.status===Xr)&&this._runAsyncValidator(c.emitEvent)),!1!==c.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!c.onlySelf&&this._parent.updateValueAndValidity(c)}_updateTreeValidity(c={emitEvent:!0}){this._forEachChild(s=>s._updateTreeValidity(c)),this.updateValueAndValidity({onlySelf:!0,emitEvent:c.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hr:Mo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(c){if(this.asyncValidator){this.status=Xr,this._hasOwnPendingAsyncValidator=!0;const s=yd(this.asyncValidator(this));this._asyncValidationSubscription=s.subscribe(p=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(p,{emitEvent:c})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(c,s={}){this.errors=c,this._updateControlsErrors(!1!==s.emitEvent)}get(c){let s=c;return null==s||(Array.isArray(s)||(s=s.split(".")),0===s.length)?null:s.reduce((p,f)=>p&&p._find(f),this)}getError(c,s){const p=s?this.get(s):this;return p&&p.errors?p.errors[c]:null}hasError(c,s){return!!this.getError(c,s)}get root(){let c=this;for(;c._parent;)c=c._parent;return c}_updateControlsErrors(c){this.status=this._calculateStatus(),c&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(c)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?hr:this.errors?ei:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xr)?Xr:this._anyControlsHaveStatus(ei)?ei:Mo}_anyControlsHaveStatus(c){return this._anyControls(s=>s.status===c)}_anyControlsDirty(){return this._anyControls(c=>c.dirty)}_anyControlsTouched(){return this._anyControls(c=>c.touched)}_updatePristine(c={}){this.pristine=!this._anyControlsDirty(),this._parent&&!c.onlySelf&&this._parent._updatePristine(c)}_updateTouched(c={}){this.touched=this._anyControlsTouched(),this._parent&&!c.onlySelf&&this._parent._updateTouched(c)}_registerOnCollectionChange(c){this._onCollectionChange=c}_setUpdateStrategy(c){Ws(c)&&null!=c.updateOn&&(this._updateOn=c.updateOn)}_parentMarkedDirty(c){return!c&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(c){return null}}class wl extends Us{constructor(c,s,p){super(fr(s),Bs(p,s)),this.controls=c,this._initObservables(),this._setUpdateStrategy(s),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(c,s){return this.controls[c]?this.controls[c]:(this.controls[c]=s,s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange),s)}addControl(c,s,p={}){this.registerControl(c,s),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}removeControl(c,s={}){this.controls[c]&&this.controls[c]._registerOnCollectionChange(()=>{}),delete this.controls[c],this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}setControl(c,s,p={}){this.controls[c]&&this.controls[c]._registerOnCollectionChange(()=>{}),delete this.controls[c],s&&this.registerControl(c,s),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}contains(c){return this.controls.hasOwnProperty(c)&&this.controls[c].enabled}setValue(c,s={}){(function Sd(u,c,s){u._forEachChild((p,f)=>{if(void 0===s[f])throw new d.vHH(1002,"")})})(this,0,c),Object.keys(c).forEach(p=>{(function Cl(u,c,s){const p=u.controls;if(!(c?Object.keys(p):p).length)throw new d.vHH(1e3,"");if(!p[s])throw new d.vHH(1001,"")})(this,!0,p),this.controls[p].setValue(c[p],{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s)}patchValue(c,s={}){null!=c&&(Object.keys(c).forEach(p=>{const f=this.controls[p];f&&f.patchValue(c[p],{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s))}reset(c={},s={}){this._forEachChild((p,f)=>{p.reset(c[f],{onlySelf:!0,emitEvent:s.emitEvent})}),this._updatePristine(s),this._updateTouched(s),this.updateValueAndValidity(s)}getRawValue(){return this._reduceChildren({},(c,s,p)=>(c[p]=s.getRawValue(),c))}_syncPendingControls(){let c=this._reduceChildren(!1,(s,p)=>!!p._syncPendingControls()||s);return c&&this.updateValueAndValidity({onlySelf:!0}),c}_forEachChild(c){Object.keys(this.controls).forEach(s=>{const p=this.controls[s];p&&c(p,s)})}_setUpControls(){this._forEachChild(c=>{c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(c){for(const[s,p]of Object.entries(this.controls))if(this.contains(s)&&c(p))return!0;return!1}_reduceValue(){return this._reduceChildren({},(s,p,f)=>((p.enabled||this.disabled)&&(s[f]=p.value),s))}_reduceChildren(c,s){let p=c;return this._forEachChild((f,g)=>{p=s(p,f,g)}),p}_allControlsDisabled(){for(const c of Object.keys(this.controls))if(this.controls[c].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(c){return this.controls.hasOwnProperty(c)?this.controls[c]:null}}const Xn=new d.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>js}),js="always";function Jn(u,c,s=js){Ao(u,c),c.valueAccessor.writeValue(u.value),(u.disabled||"always"===s)&&c.valueAccessor.setDisabledState?.(u.disabled),function fh(u,c){c.valueAccessor.registerOnChange(s=>{u._pendingValue=s,u._pendingChange=!0,u._pendingDirty=!0,"change"===u.updateOn&&Rd(u,c)})}(u,c),function gh(u,c){const s=(p,f)=>{c.valueAccessor.writeValue(p),f&&c.viewToModelUpdate(p)};u.registerOnChange(s),c._registerOnDestroy(()=>{u._unregisterOnChange(s)})}(u,c),function mh(u,c){c.valueAccessor.registerOnTouched(()=>{u._pendingTouched=!0,"blur"===u.updateOn&&u._pendingChange&&Rd(u,c),"submit"!==u.updateOn&&u.markAsTouched()})}(u,c),function hh(u,c){if(c.valueAccessor.setDisabledState){const s=p=>{c.valueAccessor.setDisabledState(p)};u.registerOnDisabledChange(s),c._registerOnDestroy(()=>{u._unregisterOnDisabledChange(s)})}}(u,c)}function mr(u,c,s=!0){const p=()=>{};c.valueAccessor&&(c.valueAccessor.registerOnChange(p),c.valueAccessor.registerOnTouched(p)),Po(u,c),u&&(c._invokeOnDestroyCallbacks(),u._registerOnCollectionChange(()=>{}))}function Jr(u,c){u.forEach(s=>{s.registerOnValidatorChange&&s.registerOnValidatorChange(c)})}function Ao(u,c){const s=ul(u);null!==c.validator?u.setValidators(bd(s,c.validator)):"function"==typeof s&&u.setValidators([s]);const p=Gs(u);null!==c.asyncValidator?u.setAsyncValidators(bd(p,c.asyncValidator)):"function"==typeof p&&u.setAsyncValidators([p]);const f=()=>u.updateValueAndValidity();Jr(c._rawValidators,f),Jr(c._rawAsyncValidators,f)}function Po(u,c){let s=!1;if(null!==u){if(null!==c.validator){const f=ul(u);if(Array.isArray(f)&&f.length>0){const g=f.filter(C=>C!==c.validator);g.length!==f.length&&(s=!0,u.setValidators(g))}}if(null!==c.asyncValidator){const f=Gs(u);if(Array.isArray(f)&&f.length>0){const g=f.filter(C=>C!==c.asyncValidator);g.length!==f.length&&(s=!0,u.setAsyncValidators(g))}}}const p=()=>{};return Jr(c._rawValidators,p),Jr(c._rawAsyncValidators,p),s}function Rd(u,c){u._pendingDirty&&u.markAsDirty(),u.setValue(u._pendingValue,{emitModelToViewChange:!1}),c.viewToModelUpdate(u._pendingValue),u._pendingChange=!1}function ki(u,c){Ao(u,c)}function Od(u,c){u._syncPendingControls(),c.forEach(s=>{const p=s.control;"submit"===p.updateOn&&p._pendingChange&&(s.viewToModelUpdate(p._pendingValue),p._pendingChange=!1)})}const _h={provide:Zt,useExisting:(0,d.Gpc)(()=>Ys)},Fo=(()=>Promise.resolve())();let Ys=(()=>{class u extends Zt{constructor(s,p,f){super(),this.callSetDisabledState=f,this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new wl({},dl(s),Ns(p))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(s){Fo.then(()=>{const p=this._findContainer(s.path);s.control=p.registerControl(s.name,s.control),Jn(s.control,s,this.callSetDisabledState),s.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(s)})}getControl(s){return this.form.get(s.path)}removeControl(s){Fo.then(()=>{const p=this._findContainer(s.path);p&&p.removeControl(s.name),this._directives.delete(s)})}addFormGroup(s){Fo.then(()=>{const p=this._findContainer(s.path),f=new wl({});ki(f,s),p.registerControl(s.name,f),f.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(s){Fo.then(()=>{const p=this._findContainer(s.path);p&&p.removeControl(s.name)})}getFormGroup(s){return this.form.get(s.path)}updateModel(s,p){Fo.then(()=>{this.form.get(s.path).setValue(p)})}setValue(s){this.control.setValue(s)}onSubmit(s){return this.submitted=!0,Od(this.form,this._directives),this.ngSubmit.emit(s),"dialog"===s?.target?.method}onReset(){this.resetForm()}resetForm(s){this.form.reset(s),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(s){return s.pop(),s.length?this.form.get(s):this.form}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(xi,10),d.Y36(Fe,10),d.Y36(Xn,8))},u.\u0275dir=d.lG2({type:u,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(s,p){1&s&&d.NdJ("submit",function(g){return p.onSubmit(g)})("reset",function(){return p.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([_h]),d.qOj]}),u})();function Ol(u,c){const s=u.indexOf(c);s>-1&&u.splice(s,1)}function Tl(u){return"object"==typeof u&&null!==u&&2===Object.keys(u).length&&"value"in u&&"disabled"in u}const Td=class extends Us{constructor(c=null,s,p){super(fr(s),Bs(p,s)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(c),this._setUpdateStrategy(s),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ws(s)&&(s.nonNullable||s.initialValueIsDefault)&&(this.defaultValue=Tl(c)?c.value:c)}setValue(c,s={}){this.value=this._pendingValue=c,this._onChange.length&&!1!==s.emitModelToViewChange&&this._onChange.forEach(p=>p(this.value,!1!==s.emitViewToModelChange)),this.updateValueAndValidity(s)}patchValue(c,s={}){this.setValue(c,s)}reset(c=this.defaultValue,s={}){this._applyFormState(c),this.markAsPristine(s),this.markAsUntouched(s),this.setValue(this.value,s),this._pendingChange=!1}_updateValue(){}_anyControls(c){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(c){this._onChange.push(c)}_unregisterOnChange(c){Ol(this._onChange,c)}registerOnDisabledChange(c){this._onDisabledChange.push(c)}_unregisterOnDisabledChange(c){Ol(this._onDisabledChange,c)}_forEachChild(c){}_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(c){Tl(c)?(this.value=this._pendingValue=c.value,c.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=c}};let Lo=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({}),u})();const _n={provide:Zt,useExisting:(0,d.Gpc)(()=>oi)};let oi=(()=>{class u extends Zt{constructor(s,p,f){super(),this.callSetDisabledState=f,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(s),this._setAsyncValidators(p)}ngOnChanges(s){this._checkFormPresent(),s.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Po(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(s){const p=this.form.get(s.path);return Jn(p,s,this.callSetDisabledState),p.updateValueAndValidity({emitEvent:!1}),this.directives.push(s),p}getControl(s){return this.form.get(s.path)}removeControl(s){mr(s.control||null,s,!1),function Io(u,c){const s=u.indexOf(c);s>-1&&u.splice(s,1)}(this.directives,s)}addFormGroup(s){this._setUpFormContainer(s)}removeFormGroup(s){this._cleanUpFormContainer(s)}getFormGroup(s){return this.form.get(s.path)}addFormArray(s){this._setUpFormContainer(s)}removeFormArray(s){this._cleanUpFormContainer(s)}getFormArray(s){return this.form.get(s.path)}updateModel(s,p){this.form.get(s.path).setValue(p)}onSubmit(s){return this.submitted=!0,Od(this.form,this.directives),this.ngSubmit.emit(s),"dialog"===s?.target?.method}onReset(){this.resetForm()}resetForm(s){this.form.reset(s),this.submitted=!1}_updateDomValue(){this.directives.forEach(s=>{const p=s.control,f=this.form.get(s.path);p!==f&&(mr(p||null,s),(u=>u instanceof Td)(f)&&(Jn(f,s,this.callSetDisabledState),s.control=f))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(s){const p=this.form.get(s.path);ki(p,s),p.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(s){if(this.form){const p=this.form.get(s.path);p&&function vh(u,c){return Po(u,c)}(p,s)&&p.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ao(this.form,this),this._oldForm&&Po(this._oldForm,this)}_checkFormPresent(){}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(xi,10),d.Y36(Fe,10),d.Y36(Xn,8))},u.\u0275dir=d.lG2({type:u,selectors:[["","formGroup",""]],hostBindings:function(s,p){1&s&&d.NdJ("submit",function(g){return p.onSubmit(g)})("reset",function(){return p.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([_n]),d.qOj,d.TTD]}),u})(),Lh=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[Lo]}),u})(),Nh=(()=>{class u{static withConfig(s){return{ngModule:u,providers:[{provide:Xn,useValue:s.callSetDisabledState??js}]}}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[Lh]}),u})();const Vo=new d.OlP("MatList"),qd=new d.OlP("MatNavList"),Qd=["*"],Jh=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ef=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],nf=(0,Ae.Id)((0,Ae.Kr)(class{})),rf=(0,Ae.Kr)(class{});let sf=(()=>{class u extends nf{constructor(){super(...arguments),this._stateChanges=new pe.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[d._Bn([{provide:qd,useExisting:u}]),d.qOj,d.TTD],ngContentSelectors:Qd,decls:1,vars:0,template:function(s,p){1&s&&(d.F$t(),d.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),u})(),Jd=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),u})(),eu=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),u})(),af=(()=>{class u extends rf{constructor(s,p,f,g){super(),this._element=s,this._isInteractiveList=!1,this._destroyed=new pe.x,this._disabled=!1,this._isInteractiveList=!!(f||g&&"action-list"===g._getListType()),this._list=f||g;const C=this._getHostElement();"button"===C.nodeName.toLowerCase()&&!C.hasAttribute("type")&&C.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,Y.R)(this._destroyed)).subscribe(()=>{p.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(s){this._disabled=(0,D.Ig)(s)}ngAfterContentInit(){(0,Ae.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(qd,8),d.Y36(Vo,8))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(s,p,f){if(1&s&&(d.Suo(f,Jd,5),d.Suo(f,eu,5),d.Suo(f,Ae.X2,5)),2&s){let g;d.iGM(g=d.CRH())&&(p._avatar=g.first),d.iGM(g=d.CRH())&&(p._icon=g.first),d.iGM(g=d.CRH())&&(p._lines=g)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(s,p){2&s&&d.ekj("mat-list-item-disabled",p.disabled)("mat-list-item-with-avatar",p._avatar||p._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[d.qOj],ngContentSelectors:ef,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(s,p){1&s&&(d.F$t(Jh),d.TgZ(0,"span",0),d._UZ(1,"span",1),d.Hsn(2),d.TgZ(3,"span",2),d.Hsn(4,1),d.qZA(),d.Hsn(5,2),d.qZA()),2&s&&(d.xp6(1),d.Q6J("matRippleTrigger",p._getHostElement())("matRippleDisabled",p._isRippleDisabled()))},dependencies:[Ae.wG],encapsulation:2,changeDetection:0}),u})(),pf=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[Ae.uc,Ae.si,Ae.BQ,Ae.us,L.ez,Ae.uc,Ae.BQ,Ae.us,fd]}),u})();const iu=["*",[["mat-card-footer"]]],hf=["*","mat-card-footer"];let Cr=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),u})(),ff=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),u})(),mf=(()=>{class u{constructor(s){this._animationMode=s}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.QbO,8))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(s,p){2&s&&d.ekj("_mat-animation-noopable","NoopAnimations"===p._animationMode)},exportAs:["matCard"],ngContentSelectors:hf,decls:2,vars:0,template:function(s,p){1&s&&(d.F$t(iu),d.Hsn(0),d.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),u})(),gf=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[Ae.BQ,Ae.BQ]}),u})();var Rn=M(30878);const nu=["card"];function vf(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"mat-icon",15),d.NdJ("contextmenu",function(f){d.CHM(s);const g=d.oxw().$implicit,C=d.oxw(2);return d.KtG(C.doContextMenu(f,g))}),d._uU(1),d.qZA(),d.TgZ(2,"span",16),d.NdJ("contextmenu",function(f){d.CHM(s);const g=d.oxw().$implicit,C=d.oxw(2);return d.KtG(C.doContextMenu(f,g))}),d._uU(3),d.qZA(),d.TgZ(4,"mat-icon",17),d.NdJ("click",function(f){d.CHM(s);const g=d.oxw().$implicit,C=d.oxw(2);return d.KtG(C.doCloseTab(f,g))}),d._uU(5,"close"),d.qZA()}if(2&u){const s=d.oxw().$implicit;d.xp6(1),d.Oqu(s.displayIcon),d.xp6(2),d.Oqu(s.displayText)}}function _f(u,c){if(1&u&&(d.TgZ(0,"mat-tab"),d.YNc(1,vf,6,2,"ng-template",13),d._UZ(2,"porrtal-view-host",14),d.qZA()),2&u){const s=c.$implicit;d.xp6(2),d.Q6J("viewState",s)}}function ru(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"mat-tab-group",11),d.NdJ("selectedIndexChange",function(f){d.CHM(s);const g=d.oxw();return d.KtG(g.doChangeTabIndex(f))}),d.YNc(1,_f,3,1,"mat-tab",12),d.qZA()}if(2&u){const s=d.oxw();d.Q6J("selectedIndex",s.selectedTabIndex),d.xp6(1),d.Q6J("ngForOf",null==s.pane?null:s.pane.viewStates)}}const yf=function(u){return{selected:u}};function Cf(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"mat-list-item",26),d.NdJ("click",function(){const g=d.CHM(s).index,C=d.oxw(2);return d.KtG(C.doChangeTabIndex(g))})("contextmenu",function(f){const C=d.CHM(s).$implicit,x=d.oxw(2);return d.KtG(x.doContextMenu(f,C))}),d.TgZ(1,"a",27)(2,"div")(3,"mat-icon"),d._uU(4),d.qZA()()()()}if(2&u){const s=c.$implicit,p=d.oxw(2);d.Q6J("ngClass",d.VKq(2,yf,s.key===(null==p.pane?null:p.pane.currentKey))),d.xp6(4),d.Oqu(s.displayIcon)}}function ou(u,c){if(1&u&&(d.TgZ(0,"div",28),d._UZ(1,"porrtal-view-host",14),d.qZA()),2&u){const s=c.$implicit,p=d.oxw(2);d.Udp("z-index",s.key===(null==p.pane?null:p.pane.currentKey)?10:0),d.xp6(1),d.Q6J("viewState",s)}}function wf(u,c){if(1&u&&(d.TgZ(0,"div",18)(1,"div",19)(2,"div",20)(3,"mat-nav-list"),d.YNc(4,Cf,5,4,"mat-list-item",21),d.qZA()()(),d.TgZ(5,"div",22)(6,"div",23),d.YNc(7,ou,2,3,"div",24),d._UZ(8,"div",25),d.qZA()()()),2&u){const s=d.oxw();d.xp6(4),d.Q6J("ngForOf",null==s.pane?null:s.pane.viewStates),d.xp6(3),d.Q6J("ngForOf",null==s.pane?null:s.pane.viewStates)}}const bf=function(u){return{"selected-card-title":u}};function Vl(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"mat-card",32,33)(2,"mat-card-title",34)(3,"div",35),d.NdJ("click",function(){const g=d.CHM(s).index,C=d.oxw(2);return d.KtG(C.doChangeTabIndex(g))})("contextmenu",function(f){const C=d.CHM(s).$implicit,x=d.oxw(2);return d.KtG(x.doContextMenu(f,C))}),d.TgZ(4,"mat-icon",36),d._uU(5),d.qZA(),d.TgZ(6,"span"),d._uU(7),d.qZA(),d.TgZ(8,"mat-icon",17),d.NdJ("click",function(f){const C=d.CHM(s).$implicit,x=d.oxw(2);return d.KtG(x.doCloseTab(f,C))}),d._uU(9,"close"),d.qZA()()(),d.TgZ(10,"mat-card-content")(11,"div",37),d._UZ(12,"porrtal-view-host",14),d.qZA()()()}if(2&u){const s=c.$implicit,p=d.oxw(2);d.xp6(3),d.Q6J("ngClass",d.VKq(4,bf,s.key===(null==p.pane?null:p.pane.currentKey))),d.xp6(2),d.Oqu(s.displayIcon),d.xp6(2),d.Oqu(s.displayText),d.xp6(5),d.Q6J("viewState",s)}}function xf(u,c){if(1&u&&(d.TgZ(0,"div",29)(1,"div",30),d.YNc(2,Vl,13,6,"mat-card",31),d.qZA()()),2&u){const s=d.oxw();d.xp6(2),d.Q6J("ngForOf",null==s.pane?null:s.pane.viewStates)}}const oa=function(u){return{viewState:u}};function su(u,c){if(1&u&&(d.TgZ(0,"button",41)(1,"span")(2,"mat-icon",42),d._uU(3,"info"),d.qZA(),d.TgZ(4,"span"),d._uU(5,"Info..."),d.qZA()()()),2&u){const s=d.oxw().viewState;d.oxw();const p=d.MAs(9);d.Q6J("matMenuTriggerFor",p)("matMenuTriggerData",d.VKq(2,oa,s))}}function Bl(u,c){if(1&u&&(d.TgZ(0,"button",41)(1,"span")(2,"mat-icon",42),d._uU(3,"build"),d.qZA(),d.TgZ(4,"span"),d._uU(5,"Dev Info..."),d.qZA()()()),2&u){const s=d.oxw().viewState;d.oxw();const p=d.MAs(12);d.Q6J("matMenuTriggerFor",p)("matMenuTriggerData",d.VKq(2,oa,s))}}function Ef(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"button",38),d.NdJ("click",function(f){const C=d.CHM(s).viewState,x=d.oxw();return d.KtG(x.doCloseTab(f,C))}),d.TgZ(1,"span")(2,"mat-icon",39),d._uU(3,"close"),d.qZA(),d.TgZ(4,"span"),d._uU(5,"Close Tab"),d.qZA()()(),d._UZ(6,"mat-divider"),d.YNc(7,su,6,4,"button",40),d.ALo(8,"async"),d.YNc(9,Bl,6,4,"button",40),d.ALo(10,"async"),d.TgZ(11,"button",41)(12,"span")(13,"mat-icon",39),d._uU(14,"pivot_table_chart"),d.qZA(),d.TgZ(15,"span"),d._uU(16,"Arrange..."),d.qZA()()(),d.TgZ(17,"button",41)(18,"span")(19,"mat-icon",39),d._uU(20,"open_with"),d.qZA(),d.TgZ(21,"span"),d._uU(22,"Move To..."),d.qZA()()()}if(2&u){const s=c.viewState,p=d.oxw(),f=d.MAs(15),g=d.MAs(18);d.xp6(7),d.Q6J("ngIf",d.lcZ(8,6,(null==s?null:s.userInfo)&&(null==s?null:s.userInfo.length)>0&&p.shellStateService.select("showUserInfo"))),d.xp6(2),d.Q6J("ngIf",d.lcZ(10,8,(null==s?null:s.devInfo)&&(null==s?null:s.devInfo.length)>0&&p.shellStateService.select("showDevInfo"))),d.xp6(2),d.Q6J("matMenuTriggerFor",f)("matMenuTriggerData",d.VKq(10,oa,s)),d.xp6(6),d.Q6J("matMenuTriggerFor",g)("matMenuTriggerData",d.VKq(12,oa,s))}}function wr(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"button",38),d.NdJ("click",function(){const g=d.CHM(s).$implicit,C=d.oxw(2);return d.KtG(C.doLaunch(g))}),d.TgZ(1,"span")(2,"mat-icon",42),d._uU(3),d.qZA(),d.TgZ(4,"span"),d._uU(5),d.qZA()()()}if(2&u){const s=c.$implicit;d.xp6(3),d.Oqu(s.state.displayIcon),d.xp6(2),d.Oqu(s.state.displayText)}}function Sf(u,c){1&u&&d.YNc(0,wr,6,2,"button",43),2&u&&d.Q6J("ngForOf",c.viewState.userInfo)}function Rf(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"button",38),d.NdJ("click",function(){const g=d.CHM(s).$implicit,C=d.oxw(2);return d.KtG(C.doLaunch(g))}),d.TgZ(1,"span")(2,"mat-icon",42),d._uU(3),d.qZA(),d.TgZ(4,"span"),d._uU(5),d.qZA()()()}if(2&u){const s=c.$implicit;d.xp6(3),d.Oqu(s.state.displayIcon),d.xp6(2),d.Oqu(s.state.displayText)}}function ie(u,c){1&u&&d.YNc(0,Rf,6,2,"button",43),2&u&&d.Q6J("ngForOf",c.viewState.devInfo)}function Vi(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"button",38),d.NdJ("click",function(f){const C=d.CHM(s).$implicit,x=d.oxw().viewState,A=d.oxw();return d.KtG(A.doSetArrangementType(f,x,C))}),d.TgZ(1,"span")(2,"mat-icon",39),d._uU(3),d.qZA(),d.TgZ(4,"span"),d._uU(5),d.qZA()()()}if(2&u){const s=c.$implicit,p=d.oxw(2);d.xp6(3),d.Oqu((null==p.pane?null:p.pane.arrange)===s?"done":""),d.xp6(2),d.Oqu(s)}}function Of(u,c){if(1&u&&d.YNc(0,Vi,6,2,"button",43),2&u){const s=d.oxw();d.Q6J("ngForOf",s.paneArrangements)}}function Tf(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"button",38),d.NdJ("click",function(f){const C=d.CHM(s).$implicit,x=d.oxw().viewState,A=d.oxw();return d.KtG(A.doMoveTab(f,x,C))}),d.TgZ(1,"span")(2,"mat-icon",44),d._uU(3),d.qZA(),d.TgZ(4,"span"),d._uU(5),d.qZA()()()}if(2&u){const s=c.$implicit,p=d.oxw(2);d.xp6(3),d.Oqu(p.moveIcons[s]),d.xp6(2),d.Oqu(s)}}function Df(u,c){if(1&u&&d.YNc(0,Tf,6,2,"button",43),2&u){const s=d.oxw();d.Q6J("ngForOf",s.paneTypes)}}class Bo{constructor(c){this.shellStateService=c,this.paneArrangements=Nt.M,this.menuTopLeftPosition={x:"0",y:"0"},this.moveIcons={nav:"arrow_circle_left_outlined",main:"arrow_circle_up_outlined",bottom:"arrow_circle_down_outlined",right:"arrow_circle_right_outlined",search:"clear"},this.pane?.viewStates.findIndex(p=>p.key===this.pane?.currentKey)}set pane(c){this._pane=c,this.paneTypes=Nt.v.filter(p=>"search"!==p&&p!==(this._pane?.paneType??""));const s=this.pane?.viewStates.findIndex(p=>p.key===this.pane?.currentKey);void 0!==s&&(this.selectedTabIndex=s)}get pane(){return this._pane}ngAfterContentChecked(){this.cards&&this.pane&&this.cards.some((c,s)=>{const p=this.pane?.currentKey===this.pane?.viewStates[s].key;return p&&c.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),p})}doChangeTabIndex(c){this.pane&&this.shellStateService.dispatch({type:"setCurrentViewStateByKey",key:this.pane.viewStates[c].key,pane:this.pane})}doContextMenu(c,s){c.preventDefault(),c.stopPropagation(),this.menuTopLeftPosition.x=c.clientX+"px",this.menuTopLeftPosition.y=c.clientY+"px",this.matMenuTrigger&&(this.matMenuTrigger.menuData={viewState:s},this.matMenuTrigger.openMenu())}doCloseTab(c,s){this.shellStateService.dispatch({type:"deleteViewState",key:s.key})}doMoveTab(c,s,p){this.shellStateService.dispatch({type:"moveView",key:s.key,toPane:p})}doSetArrangementType(c,s,p){this.pane&&this.shellStateService.dispatch({type:"arrangePane",pane:this.pane,paneArrangement:p})}doLaunch(c){console.log("launch info",c),this.shellStateService.dispatch({type:"launchView",viewId:c.viewId,state:c.state})}static#e=this.\u0275fac=function(s){return new(s||Bo)(d.Y36(Rn.vv))};static#t=this.\u0275cmp=d.Xpm({type:Bo,selectors:[["porrtal-view-stack"]],viewQuery:function(s,p){if(1&s&&(d.Gf($r,7),d.Gf(nu,5,d.SBq)),2&s){let f;d.iGM(f=d.CRH())&&(p.matMenuTrigger=f.first),d.iGM(f=d.CRH())&&(p.cards=f)}},inputs:{pane:"pane"},standalone:!0,features:[d.jDz],decls:20,vars:9,consts:[[3,"ngSwitch"],["preserveContent","",3,"selectedIndex","selectedIndexChange",4,"ngSwitchCase"],["class","vertical-tabs-container",4,"ngSwitchCase"],["class","card-container",4,"ngSwitchCase"],[2,"visibility","hidden","position","fixed",3,"matMenuTriggerFor"],["rightMenu","matMenu"],["matMenuContent",""],["info","matMenu"],["devInfo","matMenu"],["arrangeOptions","matMenu"],["moveOptions","matMenu"],["preserveContent","",3,"selectedIndex","selectedIndexChange"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[3,"viewState"],[1,"tab-icon",3,"contextmenu"],[3,"contextmenu"],["inline","true",1,"close-icon",3,"click"],[1,"vertical-tabs-container"],[1,"vertical-tabs-tabs-container"],[1,"vertical-tabs-nav-list"],[3,"ngClass","click","contextmenu",4,"ngFor","ngForOf"],[1,"vertical-tabs-content"],[2,"position","relative","height","100%"],["class","vertical-tabs-view-host-container",3,"zIndex",4,"ngFor","ngForOf"],[1,"vertical-tabs-content-background-div"],[3,"ngClass","click","contextmenu"],["tabindex","0",1,"vertical-tabs-anchor"],[1,"vertical-tabs-view-host-container"],[1,"card-container"],[1,"cards"],["class","card",4,"ngFor","ngForOf"],[1,"card"],["card",""],[2,"margin","0"],[1,"card-title",3,"ngClass","click","contextmenu"],[1,"tab-icon"],[1,"view-host-container"],["mat-menu-item","",3,"click"],["inline","true",1,"menu-close-icon"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["inline","true",1,"menu-close-icon","material-icons-outlined"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["inline","true",1,"menu-move-to-icon","material-icons-outlined"]],template:function(s,p){if(1&s&&(d.ynx(0,0),d.YNc(1,ru,2,2,"mat-tab-group",1),d.YNc(2,wf,9,2,"div",2),d.YNc(3,xf,3,1,"div",3),d.BQk(),d._UZ(4,"div",4),d.TgZ(5,"mat-menu",null,5),d.YNc(7,Ef,23,14,"ng-template",6),d.qZA(),d.TgZ(8,"mat-menu",null,7),d.YNc(10,Sf,1,1,"ng-template",6),d.qZA(),d.TgZ(11,"mat-menu",null,8),d.YNc(13,ie,1,1,"ng-template",6),d.qZA(),d.TgZ(14,"mat-menu",null,9),d.YNc(16,Of,1,1,"ng-template",6),d.qZA(),d.TgZ(17,"mat-menu",null,10),d.YNc(19,Df,1,1,"ng-template",6),d.qZA()),2&s){const f=d.MAs(6);let g;d.Q6J("ngSwitch",null!==(g=null==p.pane?null:p.pane.arrange)&&void 0!==g?g:"tabs-top"),d.xp6(1),d.Q6J("ngSwitchCase","tabs-top"),d.xp6(1),d.Q6J("ngSwitchCase","tabs-left"),d.xp6(1),d.Q6J("ngSwitchCase","cards"),d.xp6(1),d.Udp("left",p.menuTopLeftPosition.x)("top",p.menuTopLeftPosition.y),d.Q6J("matMenuTriggerFor",f)}},dependencies:[L.ez,L.mk,L.sg,L.O5,L.RF,L.n9,L.Ov,ys,Hp,Bp,qc,Ni.Ps,Ni.Hw,Gi,Kr,En,$r,Ts,fd,Jt,pf,sf,af,gf,mf,Cr,ff,Rn.lV],styles:["[_nghost-%COMP%]{position:absolute;inset:0}.tab-icon[_ngcontent-%COMP%]{margin-right:6px}.close-icon[_ngcontent-%COMP%]{font-size:16px;font-weight:900;margin-left:6px}.menu-close-icon[_ngcontent-%COMP%]{font-size:20px!important;font-weight:900}.menu-move-to-icon[_ngcontent-%COMP%]{font-size:20px!important;font-weight:900;max-width:20px}mat-tab-group[_ngcontent-%COMP%]{width:100%;height:100%}mat-nav-list[_ngcontent-%COMP%]{padding-top:0}mat-list-item[_ngcontent-%COMP%]{height:32px!important}mat-list-item[_ngcontent-%COMP%] span.mat-list-item-content{padding:6px 6px 0!important} .mat-tab-body-wrapper{flex:1 1 auto} .mat-tab-label, .mat-tab-label-active{min-width:0!important;padding:3px!important;margin:3px!important;height:24px!important}.selected[_ngcontent-%COMP%]{background-color:#d3d3d3}.vertical-tabs-anchor[_ngcontent-%COMP%]{width:100%}.vertical-tabs-anchor[_ngcontent-%COMP%]:focus{outline:1px solid lightgrey}.vertical-tabs-item-text[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.vertical-tabs-nav-list[_ngcontent-%COMP%]{overflow-y:auto}.vertical-tabs-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;height:100%}.vertical-tabs-tabs-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;max-height:100%}.vertical-tabs-content[_ngcontent-%COMP%]{flex:1 1 auto;height:100%}.vertical-tabs-view-host-container[_ngcontent-%COMP%]{position:absolute;inset:0}.vertical-tabs-content-background-div[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#dcdcdc;z-index:5}.card-container[_ngcontent-%COMP%]{position:absolute;inset:0;overflow:auto;background-color:silver}.view-host-container[_ngcontent-%COMP%]{position:relative;height:100%;margin-top:0}.cards[_ngcontent-%COMP%]{width:100%;min-height:100%;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(450px,1fr));align-items:stretch;gap:10px}.card[_ngcontent-%COMP%]{display:grid;min-height:250px;grid-template-rows:auto 1fr;margin:0;padding:0}.card-title[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto 1fr;align-items:center;justify-items:start}.selected-card-title[_ngcontent-%COMP%]{background-color:#dcdcdc}"],changeDetection:0})}const sa=(0,Ke.i$)({passive:!0});let Mf=(()=>{class u{constructor(s,p){this._platform=s,this._ngZone=p,this._monitoredElements=new Map}monitor(s){if(!this._platform.isBrowser)return Ie.E;const p=(0,D.fI)(s),f=this._monitoredElements.get(p);if(f)return f.subject;const g=new pe.x,C="cdk-text-field-autofilled",x=A=>{"cdk-text-field-autofill-start"!==A.animationName||p.classList.contains(C)?"cdk-text-field-autofill-end"===A.animationName&&p.classList.contains(C)&&(p.classList.remove(C),this._ngZone.run(()=>g.next({target:A.target,isAutofilled:!1}))):(p.classList.add(C),this._ngZone.run(()=>g.next({target:A.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{p.addEventListener("animationstart",x,sa),p.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(p,{subject:g,unlisten:()=>{p.removeEventListener("animationstart",x,sa)}}),g}stopMonitoring(s){const p=(0,D.fI)(s),f=this._monitoredElements.get(p);f&&(f.unlisten(),f.subject.complete(),p.classList.remove("cdk-text-field-autofill-monitored"),p.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(p))}ngOnDestroy(){this._monitoredElements.forEach((s,p)=>this.stopMonitoring(p))}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(Ke.t4),d.LFG(d.R0b))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),au=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({}),u})();const Hf=new d.OlP("MatError"),du=new d.OlP("MatPrefix"),uu=new d.OlP("MatSuffix"),hu={transitionMessages:(0,V.X$)("transitionMessages",[(0,V.SB)("enter",(0,V.oB)({opacity:1,transform:"translateY(0%)"})),(0,V.eR)("void => enter",[(0,V.oB)({opacity:0,transform:"translateY(-5px)"}),(0,V.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let di=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u}),u})();const jl=new d.OlP("MatFormField"),gu=new d.OlP("MAT_INPUT_VALUE_ACCESSOR"),Yl=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Vf=0;const Kl=(0,Ae.FD)(class{constructor(u,c,s,p){this._defaultErrorStateMatcher=u,this._parentForm=c,this._parentFormGroup=s,this.ngControl=p,this.stateChanges=new pe.x}});let Bf=(()=>{class u extends Kl{constructor(s,p,f,g,C,x,A,J,q,xe){super(x,g,C,f),this._elementRef=s,this._platform=p,this._autofillMonitor=J,this._formField=xe,this._uid="mat-input-"+Vf++,this.focused=!1,this.stateChanges=new pe.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Qe=>(0,Ke.qK)().has(Qe)),this._iOSKeyupListener=Qe=>{const ze=Qe.target;!ze.value&&0===ze.selectionStart&&0===ze.selectionEnd&&(ze.setSelectionRange(1,1),ze.setSelectionRange(0,0))};const je=this._elementRef.nativeElement,Te=je.nodeName.toLowerCase();this._inputValueAccessor=A||je,this._previousNativeValue=this.value,this.id=this.id,p.IOS&&q.runOutsideAngular(()=>{s.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Te,this._isTextarea="textarea"===Te,this._isInFormField=!!xe,this._isNativeSelect&&(this.controlType=je.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(s){this._disabled=(0,D.Ig)(s),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(s){this._id=s||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ur.required)??!1}set required(s){this._required=(0,D.Ig)(s)}get type(){return this._type}set type(s){this._type=s||"text",this._validateType(),!this._isTextarea&&(0,Ke.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(s){s!==this.value&&(this._inputValueAccessor.value=s,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(s){this._readonly=(0,D.Ig)(s)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(s=>{this.autofilled=s.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(s){this._elementRef.nativeElement.focus(s)}_focusChanged(s){s!==this.focused&&(this.focused=s,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const s=this._elementRef.nativeElement.value;this._previousNativeValue!==s&&(this._previousNativeValue=s,this.stateChanges.next())}_dirtyCheckPlaceholder(){const s=this._getPlaceholder();if(s!==this._previousPlaceholder){const p=this._elementRef.nativeElement;this._previousPlaceholder=s,s?p.setAttribute("placeholder",s):p.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Yl.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let s=this._elementRef.nativeElement.validity;return s&&s.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const s=this._elementRef.nativeElement,p=s.options[0];return this.focused||s.multiple||!this.empty||!!(s.selectedIndex>-1&&p&&p.label)}return this.focused||!this.empty}setDescribedByIds(s){s.length?this._elementRef.nativeElement.setAttribute("aria-describedby",s.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const s=this._elementRef.nativeElement;return this._isNativeSelect&&(s.multiple||s.size>1)}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(Ke.t4),d.Y36(Gn,10),d.Y36(Ys,8),d.Y36(oi,8),d.Y36(Ae.rD),d.Y36(gu,10),d.Y36(Mf),d.Y36(d.R0b),d.Y36(jl,8))},u.\u0275dir=d.lG2({type:u,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(s,p){1&s&&d.NdJ("focus",function(){return p._focusChanged(!0)})("blur",function(){return p._focusChanged(!1)})("input",function(){return p._onInput()}),2&s&&(d.Ikx("id",p.id)("disabled",p.disabled)("required",p.required),d.uIk("name",p.name||null)("readonly",p.readonly&&!p._isNativeSelect||null)("aria-invalid",p.empty&&p.required?null:p.errorState)("aria-required",p.required)("id",p.id),d.ekj("mat-input-server",p._isServer)("mat-mdc-form-field-textarea-control",p._isInFormField&&p._isTextarea)("mat-mdc-form-field-input-control",p._isInFormField)("mdc-text-field__input",p._isInFormField)("mat-mdc-native-select-inline",p._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[d._Bn([{provide:di,useExisting:u}]),d.qOj,d.TTD]}),u})();const $l=["connectionContainer"],Wf=["inputContainer"],Uf=["label"];function Uo(u,c){1&u&&(d.ynx(0),d.TgZ(1,"div",14),d._UZ(2,"div",15)(3,"div",16)(4,"div",17),d.qZA(),d.TgZ(5,"div",18),d._UZ(6,"div",15)(7,"div",16)(8,"div",17),d.qZA(),d.BQk())}function jf(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"div",19),d.NdJ("cdkObserveContent",function(){d.CHM(s);const f=d.oxw();return d.KtG(f.updateOutlineGap())}),d.Hsn(1,1),d.qZA()}if(2&u){const s=d.oxw();d.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)}}function ca(u,c){if(1&u&&(d.ynx(0),d.Hsn(1,2),d.TgZ(2,"span"),d._uU(3),d.qZA(),d.BQk()),2&u){const s=d.oxw(2);d.xp6(3),d.Oqu(s._control.placeholder)}}function zf(u,c){1&u&&d.Hsn(0,3,["*ngSwitchCase","true"])}function Yf(u,c){1&u&&(d.TgZ(0,"span",23),d._uU(1," *"),d.qZA())}function Hn(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"label",20,21),d.NdJ("cdkObserveContent",function(){d.CHM(s);const f=d.oxw();return d.KtG(f.updateOutlineGap())}),d.YNc(2,ca,4,1,"ng-container",12),d.YNc(3,zf,1,0,"ng-content",12),d.YNc(4,Yf,2,0,"span",22),d.qZA()}if(2&u){const s=d.oxw();d.ekj("mat-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-form-field-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-accent","accent"==s.color)("mat-warn","warn"==s.color),d.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)("id",s._labelId)("ngSwitch",s._hasLabel()),d.uIk("for",s._control.id)("aria-owns",s._control.id),d.xp6(2),d.Q6J("ngSwitchCase",!1),d.xp6(1),d.Q6J("ngSwitchCase",!0),d.xp6(1),d.Q6J("ngIf",!s.hideRequiredMarker&&s._control.required&&!s._control.disabled)}}function Kf(u,c){1&u&&(d.TgZ(0,"div",24),d.Hsn(1,4),d.qZA())}function $f(u,c){if(1&u&&(d.TgZ(0,"div",25),d._UZ(1,"span",26),d.qZA()),2&u){const s=d.oxw();d.xp6(1),d.ekj("mat-accent","accent"==s.color)("mat-warn","warn"==s.color)}}function da(u,c){if(1&u&&(d.TgZ(0,"div"),d.Hsn(1,5),d.qZA()),2&u){const s=d.oxw();d.Q6J("@transitionMessages",s._subscriptAnimationState)}}function Zf(u,c){if(1&u&&(d.TgZ(0,"div",30),d._uU(1),d.qZA()),2&u){const s=d.oxw(2);d.Q6J("id",s._hintLabelId),d.xp6(1),d.Oqu(s.hintLabel)}}function qf(u,c){if(1&u&&(d.TgZ(0,"div",27),d.YNc(1,Zf,2,2,"div",28),d.Hsn(2,6),d._UZ(3,"div",29),d.Hsn(4,7),d.qZA()),2&u){const s=d.oxw();d.Q6J("@transitionMessages",s._subscriptAnimationState),d.xp6(1),d.Q6J("ngIf",s.hintLabel)}}const Qf=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Xf=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Jf=new d.OlP("MatHint");let _u=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u,selectors:[["mat-label"]]}),u})(),ql=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u,selectors:[["mat-placeholder"]]}),u})(),yu=0;const em=(0,Ae.pj)(class{constructor(u){this._elementRef=u}},"primary"),tm=new d.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let im=(()=>{class u extends em{constructor(s,p,f,g,C,x,A){super(s),this._changeDetectorRef=p,this._dir=f,this._defaults=g,this._platform=C,this._ngZone=x,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new pe.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+yu++,this._labelId="mat-form-field-label-"+yu++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==A,this.appearance=g?.appearance||"legacy",g&&(this._hideRequiredMarker=Boolean(g.hideRequiredMarker),g.color&&(this.color=this.defaultColor=g.color))}get appearance(){return this._appearance}set appearance(s){const p=this._appearance;this._appearance=s||this._defaults?.appearance||"legacy","outline"===this._appearance&&p!==s&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(s){this._hideRequiredMarker=(0,D.Ig)(s)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(s){this._hintLabel=s,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(s){s!==this._floatLabel&&(this._floatLabel=s||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(s){this._explicitFormFieldControl=s}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const s=this._control;s.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${s.controlType}`),s.stateChanges.pipe((0,k.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),s.ngControl&&s.ngControl.valueChanges&&s.ngControl.valueChanges.pipe((0,Y.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,G.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,k.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,k.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,Y.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(s){const p=this._control?this._control.ngControl:null;return p&&p[s]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Et(this._label.nativeElement,"transitionend").pipe((0,Qt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let s=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&s.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const p=this._hintChildren?this._hintChildren.find(g=>"start"===g.align):null,f=this._hintChildren?this._hintChildren.find(g=>"end"===g.align):null;p?s.push(p.id):this._hintLabel&&s.push(this._hintLabelId),f&&s.push(f.id)}else this._errorChildren&&s.push(...this._errorChildren.map(p=>p.id));this._control.setDescribedByIds(s)}}_validateControlChild(){}updateOutlineGap(){const s=this._label?this._label.nativeElement:null,p=this._connectionContainerRef.nativeElement,f=".mat-form-field-outline-start",g=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!s||!s.children.length||!s.textContent.trim()){const q=p.querySelectorAll(`${f}, ${g}`);for(let xe=0;xe0?.75*Qe+10:0}for(let q=0;q{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275dir=d.lG2({type:u,selectors:[["","matPrefix",""]],features:[d._Bn([{provide:du,useExisting:u}])]}),u})(),Xl=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[L.ez,Ae.BQ,Ut.Q8,Ae.BQ]}),u})(),ro=(()=>{class u extends Bf{constructor(){super(...arguments),this._legacyFormField=(0,d.f3M)(jl,{optional:!0})}_getPlaceholder(){const s=this._legacyFormField;return s&&"legacy"===s.appearance&&!s._hasLabel?.()?null:this.placeholder}}return u.\u0275fac=function(){let c;return function(p){return(c||(c=d.n5z(u)))(p||u)}}(),u.\u0275dir=d.lG2({type:u,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(s,p){2&s&&(d.uIk("data-placeholder",p.placeholder),d.ekj("mat-input-server",p._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",p._isInlineSelect()))},exportAs:["matInput"],features:[d._Bn([{provide:di,useExisting:u}]),d.qOj]}),u})(),yn=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({providers:[Ae.rD],imports:[au,Xl,Ae.BQ,au,Xl]}),u})();var bu=M(49770);function nm(u,c){}class xr{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let xu=(()=>{class u extends Pe{constructor(s,p,f,g,C,x,A,J){super(),this._elementRef=s,this._focusTrapFactory=p,this._config=g,this._interactivityChecker=C,this._ngZone=x,this._overlayRef=A,this._focusMonitor=J,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=q=>{this._portalOutlet.hasAttached();const xe=this._portalOutlet.attachDomPortal(q);return this._contentAttached(),xe},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=f}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(s){this._portalOutlet.hasAttached();const p=this._portalOutlet.attachComponentPortal(s);return this._contentAttached(),p}attachTemplatePortal(s){this._portalOutlet.hasAttached();const p=this._portalOutlet.attachTemplatePortal(s);return this._contentAttached(),p}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(s,p){this._interactivityChecker.isFocusable(s)||(s.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const f=()=>{s.removeEventListener("blur",f),s.removeEventListener("mousedown",f),s.removeAttribute("tabindex")};s.addEventListener("blur",f),s.addEventListener("mousedown",f)})),s.focus(p)}_focusByCssSelector(s,p){let f=this._elementRef.nativeElement.querySelector(s);f&&this._forceFocus(f,p)}_trapFocus(){const s=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||s.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(p=>{p||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const s=this._config.restoreFocus;let p=null;if("string"==typeof s?p=this._document.querySelector(s):"boolean"==typeof s?p=s?this._elementFocusedBeforeDialogWasOpened:null:s&&(p=s),this._config.restoreFocus&&p&&"function"==typeof p.focus){const f=(0,Ke.ht)(),g=this._elementRef.nativeElement;(!f||f===this._document.body||f===g||g.contains(f))&&(this._focusMonitor?(this._focusMonitor.focusVia(p,this._closeInteractionType),this._closeInteractionType=null):p.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const s=this._elementRef.nativeElement,p=(0,Ke.ht)();return s===p||s.contains(p)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Ke.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(Ze.qV),d.Y36(L.K0,8),d.Y36(xr),d.Y36(Ze.ic),d.Y36(d.R0b),d.Y36(So),d.Y36(Ze.tE))},u.\u0275cmp=d.Xpm({type:u,selectors:[["cdk-dialog-container"]],viewQuery:function(s,p){if(1&s&&d.Gf(Oe,7),2&s){let f;d.iGM(f=d.CRH())&&(p._portalOutlet=f.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(s,p){2&s&&d.uIk("id",p._config.id||null)("role",p._config.role)("aria-modal",p._config.ariaModal)("aria-labelledby",p._config.ariaLabel?null:p._ariaLabelledBy)("aria-label",p._config.ariaLabel)("aria-describedby",p._config.ariaDescribedBy||null)},features:[d.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,p){1&s&&d.YNc(0,nm,0,0,"ng-template",0)},dependencies:[Oe],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),u})();class Jl{constructor(c,s){this.overlayRef=c,this.config=s,this.closed=new pe.x,this.disableClose=s.disableClose,this.backdropClick=c.backdropClick(),this.keydownEvents=c.keydownEvents(),this.outsidePointerEvents=c.outsidePointerEvents(),this.id=s.id,this.keydownEvents.subscribe(p=>{p.keyCode===Pt.hY&&!this.disableClose&&!(0,Pt.Vb)(p)&&(p.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(c,s){if(this.containerInstance){const p=this.closed;this.containerInstance._closeInteractionType=s?.focusOrigin||"program",this.overlayRef.dispose(),p.next(c),p.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(c="",s=""){return this.overlayRef.updateSize({width:c,height:s}),this}addPanelClass(c){return this.overlayRef.addPanelClass(c),this}removePanelClass(c){return this.overlayRef.removePanelClass(c),this}}const Eu=new d.OlP("DialogScrollStrategy"),rm=new d.OlP("DialogData"),ec=new d.OlP("DefaultDialogConfig"),sm={provide:Eu,deps:[xn],useFactory:function om(u){return()=>u.scrollStrategies.block()}};let zo=0,Su=(()=>{class u{constructor(s,p,f,g,C,x){this._overlay=s,this._injector=p,this._defaultOptions=f,this._parentDialog=g,this._overlayContainer=C,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new pe.x,this._afterOpenedAtThisLevel=new pe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,bu.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,k.O)(void 0))),this._scrollStrategy=x}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(s,p){(p={...this._defaultOptions||new xr,...p}).id=p.id||"cdk-dialog-"+zo++,p.id&&this.getDialogById(p.id);const g=this._getOverlayConfig(p),C=this._overlay.create(g),x=new Jl(C,p),A=this._attachContainer(C,x,p);return x.containerInstance=A,this._attachDialogContent(s,x,A,p),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(x),x.closed.subscribe(()=>this._removeOpenDialog(x,!0)),this.afterOpened.next(x),x}closeAll(){tc(this.openDialogs,s=>s.close())}getDialogById(s){return this.openDialogs.find(p=>p.id===s)}ngOnDestroy(){tc(this._openDialogsAtThisLevel,s=>{!1===s.config.closeOnDestroy&&this._removeOpenDialog(s,!1)}),tc(this._openDialogsAtThisLevel,s=>s.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(s){const p=new Nn({positionStrategy:s.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:s.scrollStrategy||this._scrollStrategy(),panelClass:s.panelClass,hasBackdrop:s.hasBackdrop,direction:s.direction,minWidth:s.minWidth,minHeight:s.minHeight,maxWidth:s.maxWidth,maxHeight:s.maxHeight,width:s.width,height:s.height,disposeOnNavigation:s.closeOnNavigation});return s.backdropClass&&(p.backdropClass=s.backdropClass),p}_attachContainer(s,p,f){const g=f.injector||f.viewContainerRef?.injector,C=[{provide:xr,useValue:f},{provide:Jl,useValue:p},{provide:So,useValue:s}];let x;f.container?"function"==typeof f.container?x=f.container:(x=f.container.type,C.push(...f.container.providers(f))):x=xu;const A=new hi(x,f.viewContainerRef,d.zs3.create({parent:g||this._injector,providers:C}),f.componentFactoryResolver);return s.attach(A).instance}_attachDialogContent(s,p,f,g){if(s instanceof d.Rgc){const C=this._createInjector(g,p,f,void 0);let x={$implicit:g.data,dialogRef:p};g.templateContext&&(x={...x,..."function"==typeof g.templateContext?g.templateContext():g.templateContext}),f.attachTemplatePortal(new Ve(s,null,x,C))}else{const C=this._createInjector(g,p,f,this._injector),x=f.attachComponentPortal(new hi(s,g.viewContainerRef,C,g.componentFactoryResolver));p.componentInstance=x.instance}}_createInjector(s,p,f,g){const C=s.injector||s.viewContainerRef?.injector,x=[{provide:rm,useValue:s.data},{provide:Jl,useValue:p}];return s.providers&&("function"==typeof s.providers?x.push(...s.providers(p,s,f)):x.push(...s.providers)),s.direction&&(!C||!C.get(kt.Is,null,{optional:!0}))&&x.push({provide:kt.Is,useValue:{value:s.direction,change:(0,Xt.of)()}}),d.zs3.create({parent:C||g,providers:x})}_removeOpenDialog(s,p){const f=this.openDialogs.indexOf(s);f>-1&&(this.openDialogs.splice(f,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((g,C)=>{g?C.setAttribute("aria-hidden",g):C.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),p&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const s=this._overlayContainer.getContainerElement();if(s.parentElement){const p=s.parentElement.children;for(let f=p.length-1;f>-1;f--){const g=p[f];g!==s&&"SCRIPT"!==g.nodeName&&"STYLE"!==g.nodeName&&!g.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(g,g.getAttribute("aria-hidden")),g.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(xn),d.LFG(d.zs3),d.LFG(ec,8),d.LFG(u,12),d.LFG(Eo),d.LFG(Eu))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac}),u})();function tc(u,c){let s=u.length;for(;s--;)c(u[s])}let ua=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({providers:[Su,sm],imports:[Ja,Bt,Ze.rt,Bt]}),u})();class ic{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let am=(()=>{class u extends xu{constructor(s,p,f,g,C,x,A,J){super(s,p,f,g,C,x,A,J),this._animationStateChanged=new d.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(s){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(Ze.qV),d.Y36(L.K0,8),d.Y36(ic),d.Y36(Ze.ic),d.Y36(d.R0b),d.Y36(So),d.Y36(Ze.tE))},u.\u0275cmp=d.Xpm({type:u,selectors:[["ng-component"]],features:[d.qOj],decls:0,vars:0,template:function(s,p){},encapsulation:2}),u})();class cm{constructor(c,s,p){this._ref=c,this._containerInstance=p,this._afterOpened=new pe.x,this._beforeClosed=new pe.x,this._state=0,this.disableClose=s.disableClose,this.id=c.id,p._animationStateChanged.pipe((0,Be.h)(f=>"opened"===f.state),(0,Qt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),p._animationStateChanged.pipe((0,Be.h)(f=>"closed"===f.state),(0,Qt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),c.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,G.T)(this.backdropClick(),this.keydownEvents().pipe((0,Be.h)(f=>f.keyCode===Pt.hY&&!this.disableClose&&!(0,Pt.Vb)(f)))).subscribe(f=>{this.disableClose||(f.preventDefault(),function nc(u,c,s){u._closeInteractionType=c,u.close(s)}(this,"keydown"===f.type?"keyboard":"mouse"))})}close(c){this._result=c,this._containerInstance._animationStateChanged.pipe((0,Be.h)(s=>"closing"===s.state),(0,Qt.q)(1)).subscribe(s=>{this._beforeClosed.next(c),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),s.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(c){let s=this._ref.config.positionStrategy;return c&&(c.left||c.right)?c.left?s.left(c.left):s.right(c.right):s.centerHorizontally(),c&&(c.top||c.bottom)?c.top?s.top(c.top):s.bottom(c.bottom):s.centerVertically(),this._ref.updatePosition(),this}updateSize(c="",s=""){return this._ref.updateSize(c,s),this}addPanelClass(c){return this._ref.addPanelClass(c),this}removePanelClass(c){return this._ref.removePanelClass(c),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}let dm=0,Yo=(()=>{class u{constructor(s,p,f,g,C,x,A,J,q,xe){this._overlay=s,this._defaultOptions=f,this._parentDialog=g,this._dialogRefConstructor=A,this._dialogContainerType=J,this._dialogDataToken=q,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new pe.x,this._afterOpenedAtThisLevel=new pe.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=ic,this.afterAllClosed=(0,bu.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,k.O)(void 0))),this._scrollStrategy=x,this._dialog=p.get(Su)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(s,p){let f;(p={...this._defaultOptions||new ic,...p}).id=p.id||`${this._idPrefix}${dm++}`,p.scrollStrategy=p.scrollStrategy||this._scrollStrategy();const g=this._dialog.open(s,{...p,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:p},{provide:xr,useValue:p}]},templateContext:()=>({dialogRef:f}),providers:(C,x,A)=>(f=new this._dialogRefConstructor(C,p,A),f.updatePosition(p?.position),[{provide:this._dialogContainerType,useValue:A},{provide:this._dialogDataToken,useValue:x.data},{provide:this._dialogRefConstructor,useValue:f}])});return f.componentInstance=g.componentInstance,this.openDialogs.push(f),this.afterOpened.next(f),f.afterClosed().subscribe(()=>{const C=this.openDialogs.indexOf(f);C>-1&&(this.openDialogs.splice(C,1),this.openDialogs.length||this._getAfterAllClosed().next())}),f}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(s){return this.openDialogs.find(p=>p.id===s)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(s){let p=s.length;for(;p--;)s[p].close()}}return u.\u0275fac=function(s){d.$Z()},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac}),u})();const Bi={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},um={dialogContainer:(0,V.X$)("dialogContainer",[(0,V.SB)("void, exit",(0,V.oB)({opacity:0,transform:"scale(0.7)"})),(0,V.SB)("enter",(0,V.oB)({transform:"none"})),(0,V.eR)("* => enter",(0,V.ru)([(0,V.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({transform:"none",opacity:1})),(0,V.IO)("@*",(0,V.pV)(),{optional:!0})]),Bi),(0,V.eR)("* => void, * => exit",(0,V.ru)([(0,V.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,V.oB)({opacity:0})),(0,V.IO)("@*",(0,V.pV)(),{optional:!0})]),Bi)])};function Tu(u,c){}const Du_params_enterAnimationDuration="150ms",Du_params_exitAnimationDuration="75ms";class Mu extends ic{constructor(){super(...arguments),this.enterAnimationDuration=Bi.params.enterAnimationDuration,this.exitAnimationDuration=Bi.params.exitAnimationDuration}}let pm=(()=>{class u extends am{constructor(s,p,f,g,C,x,A,J,q){super(s,p,f,g,C,x,A,q),this._changeDetectorRef=J,this._state="enter"}_onAnimationDone({toState:s,totalTime:p}){"enter"===s?this._openAnimationDone(p):"exit"===s&&this._animationStateChanged.next({state:"closed",totalTime:p})}_onAnimationStart({toState:s,totalTime:p}){"enter"===s?this._animationStateChanged.next({state:"opening",totalTime:p}):("exit"===s||"void"===s)&&this._animationStateChanged.next({state:"closing",totalTime:p})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Du_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Du_params_exitAnimationDuration}}}}return u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(Ze.qV),d.Y36(L.K0,8),d.Y36(Mu),d.Y36(Ze.ic),d.Y36(d.R0b),d.Y36(So),d.Y36(d.sBO),d.Y36(Ze.tE))},u.\u0275cmp=d.Xpm({type:u,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(s,p){1&s&&d.WFA("@dialogContainer.start",function(g){return p._onAnimationStart(g)})("@dialogContainer.done",function(g){return p._onAnimationDone(g)}),2&s&&(d.Ikx("id",p._config.id),d.uIk("aria-modal",p._config.ariaModal)("role",p._config.role)("aria-labelledby",p._config.ariaLabel?null:p._ariaLabelledBy)("aria-label",p._config.ariaLabel)("aria-describedby",p._config.ariaDescribedBy||null),d.d8E("@dialogContainer",p._getAnimationState()))},features:[d.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,p){1&s&&d.YNc(0,Tu,0,0,"ng-template",0)},dependencies:[Oe],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[um.dialogContainer]}}),u})();class Au extends cm{}const hm=new d.OlP("MatDialogData"),fm=new d.OlP("mat-dialog-default-options"),pa=new d.OlP("mat-dialog-scroll-strategy"),k_={provide:pa,deps:[xn],useFactory:function mm(u){return()=>u.scrollStrategies.block()}};let ha=(()=>{class u extends Yo{constructor(s,p,f,g,C,x,A,J){super(s,p,g,x,A,C,Au,pm,hm,J),this.dialogConfigClass=Mu}}return u.\u0275fac=function(s){return new(s||u)(d.LFG(xn),d.LFG(d.zs3),d.LFG(L.Ye,8),d.LFG(fm,8),d.LFG(pa),d.LFG(u,12),d.LFG(Eo),d.LFG(d.QbO,8))},u.\u0275prov=d.Yz7({token:u,factory:u.\u0275fac}),u})(),gm=(()=>{class u{}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({providers:[ha,k_],imports:[ua,Ja,Bt,Ae.BQ,Ae.BQ]}),u})();function oc(u,c){if(1&u){const s=d.EpF();d.ynx(0),d._UZ(1,"porrtal-view-stack",1),d.TgZ(2,"button",2),d.NdJ("click",function(){d.CHM(s);const f=d.oxw();return d.KtG(f.doClose())}),d.TgZ(3,"mat-icon",3),d._uU(4,"close"),d.qZA()(),d.BQk()}if(2&u){const s=c.ngIf;d.xp6(1),d.Q6J("pane",s.panes.search)}}class fa{constructor(c,s){this.shellStateService=c,this.searchStateService=s,this.state$=c.select()}doClose(){this.searchStateService.dispatch({type:"closeSearchDialog"})}static#e=this.\u0275fac=function(s){return new(s||fa)(d.Y36(Rn.vv),d.Y36(Rn.tx))};static#t=this.\u0275cmp=d.Xpm({type:fa,selectors:[["porrtal-search-dialog"]],standalone:!0,features:[d.jDz],decls:2,vars:3,consts:[[4,"ngIf"],[3,"pane"],["mat-icon-button","",2,"position","absolute","top","5px","right","8px","z-index","1999",3,"click"],["inline","true",1,"close-icon"]],template:function(s,p){1&s&&(d.YNc(0,oc,5,1,"ng-container",0),d.ALo(1,"async")),2&s&&d.Q6J("ngIf",d.lcZ(1,1,p.state$))},dependencies:[L.ez,L.O5,L.Ov,Bo,Ni.Ps,Ni.Hw],changeDetection:0})}function an(u){if(null==u)return window;if("[object Window]"!==u.toString()){var c=u.ownerDocument;return c&&c.defaultView||window}return u}function nr(u){return u instanceof an(u).Element||u instanceof Element}function ln(u){return u instanceof an(u).HTMLElement||u instanceof HTMLElement}function sc(u){return!(typeof ShadowRoot>"u")&&(u instanceof an(u).ShadowRoot||u instanceof ShadowRoot)}var Er=Math.max,ma=Math.min,oo=Math.round;function ac(){var u=navigator.userAgentData;return null!=u&&u.brands?u.brands.map(function(c){return c.brand+"/"+c.version}).join(" "):navigator.userAgent}function lc(){return!/^((?!chrome|android).)*safari/i.test(ac())}function so(u,c,s){void 0===c&&(c=!1),void 0===s&&(s=!1);var p=u.getBoundingClientRect(),f=1,g=1;c&&ln(u)&&(f=u.offsetWidth>0&&oo(p.width)/u.offsetWidth||1,g=u.offsetHeight>0&&oo(p.height)/u.offsetHeight||1);var x=(nr(u)?an(u):window).visualViewport,A=!lc()&&s,J=(p.left+(A&&x?x.offsetLeft:0))/f,q=(p.top+(A&&x?x.offsetTop:0))/g,xe=p.width/f,je=p.height/g;return{width:xe,height:je,top:q,right:J+xe,bottom:q+je,left:J,x:J,y:q}}function cc(u){var c=an(u);return{scrollLeft:c.pageXOffset,scrollTop:c.pageYOffset}}function On(u){return u?(u.nodeName||"").toLowerCase():null}function rr(u){return((nr(u)?u.ownerDocument:u.document)||window.document).documentElement}function dc(u){return so(rr(u)).left+cc(u).scrollLeft}function cn(u){return an(u).getComputedStyle(u)}function uc(u){var c=cn(u);return/auto|scroll|overlay|hidden/.test(c.overflow+c.overflowY+c.overflowX)}function Ko(u,c,s){void 0===s&&(s=!1);var p=ln(c),f=ln(c)&&function ym(u){var c=u.getBoundingClientRect(),s=oo(c.width)/u.offsetWidth||1,p=oo(c.height)/u.offsetHeight||1;return 1!==s||1!==p}(c),g=rr(c),C=so(u,f,s),x={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(p||!p&&!s)&&(("body"!==On(c)||uc(g))&&(x=function _m(u){return u!==an(u)&&ln(u)?function vm(u){return{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}}(u):cc(u)}(c)),ln(c)?((A=so(c,!0)).x+=c.clientLeft,A.y+=c.clientTop):g&&(A.x=dc(g))),{x:C.left+x.scrollLeft-A.x,y:C.top+x.scrollTop-A.y,width:C.width,height:C.height}}function pc(u){var c=so(u),s=u.offsetWidth,p=u.offsetHeight;return Math.abs(c.width-s)<=1&&(s=c.width),Math.abs(c.height-p)<=1&&(p=c.height),{x:u.offsetLeft,y:u.offsetTop,width:s,height:p}}function ga(u){return"html"===On(u)?u:u.assignedSlot||u.parentNode||(sc(u)?u.host:null)||rr(u)}function Tn(u){return["html","body","#document"].indexOf(On(u))>=0?u.ownerDocument.body:ln(u)&&uc(u)?u:Tn(ga(u))}function $o(u,c){var s;void 0===c&&(c=[]);var p=Tn(u),f=p===(null==(s=u.ownerDocument)?void 0:s.body),g=an(p),C=f?[g].concat(g.visualViewport||[],uc(p)?p:[]):p,x=c.concat(C);return f?x:x.concat($o(ga(C)))}function Cm(u){return["table","td","th"].indexOf(On(u))>=0}function Fu(u){return ln(u)&&"fixed"!==cn(u).position?u.offsetParent:null}function ao(u){for(var c=an(u),s=Fu(u);s&&Cm(s)&&"static"===cn(s).position;)s=Fu(s);return s&&("html"===On(s)||"body"===On(s)&&"static"===cn(s).position)?c:s||function Zo(u){var c=/firefox/i.test(ac());if(/Trident/i.test(ac())&&ln(u)&&"fixed"===cn(u).position)return null;var f=ga(u);for(sc(f)&&(f=f.host);ln(f)&&["html","body"].indexOf(On(f))<0;){var g=cn(f);if("none"!==g.transform||"none"!==g.perspective||"paint"===g.contain||-1!==["transform","perspective"].indexOf(g.willChange)||c&&"filter"===g.willChange||c&&g.filter&&"none"!==g.filter)return f;f=f.parentNode}return null}(u)||c}var Wi="top",Di="bottom",dn="right",Mi="left",hc="auto",qo=[Wi,Di,dn,Mi],lo="start",un="end",Lu="viewport",co="popper",Nu=qo.reduce(function(u,c){return u.concat([c+"-"+lo,c+"-"+un])},[]),Gu=[].concat(qo,[hc]).reduce(function(u,c){return u.concat([c,c+"-"+lo,c+"-"+un])},[]),Dm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Hu(u){var c=new Map,s=new Set,p=[];function f(g){s.add(g.name),[].concat(g.requires||[],g.requiresIfExists||[]).forEach(function(x){if(!s.has(x)){var A=c.get(x);A&&f(A)}}),p.push(g)}return u.forEach(function(g){c.set(g.name,g)}),u.forEach(function(g){s.has(g.name)||f(g)}),p}function Mm(u){var c;return function(){return c||(c=new Promise(function(s){Promise.resolve().then(function(){c=void 0,s(u())})})),c}}var uo={placement:"bottom",modifiers:[],strategy:"absolute"};function Vu(){for(var u=arguments.length,c=new Array(u),s=0;s=0?"x":"y"}function Pm(u){var A,c=u.reference,s=u.element,p=u.placement,f=p?Mn(p):null,g=p?po(p):null,C=c.x+c.width/2-s.width/2,x=c.y+c.height/2-s.height/2;switch(f){case Wi:A={x:C,y:c.y-s.height};break;case Di:A={x:C,y:c.y+c.height};break;case dn:A={x:c.x+c.width,y:x};break;case Mi:A={x:c.x-s.width,y:x};break;default:A={x:c.x,y:c.y}}var J=f?ho(f):null;if(null!=J){var q="y"===J?"height":"width";switch(g){case lo:A[J]=A[J]-(c[q]/2-s[q]/2);break;case un:A[J]=A[J]+(c[q]/2-s[q]/2)}}return A}var Bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Rr(u){var c,s=u.popper,p=u.popperRect,f=u.placement,g=u.variation,C=u.offsets,x=u.position,A=u.gpuAcceleration,J=u.adaptive,q=u.roundOffsets,xe=u.isFixed,je=C.x,Te=void 0===je?0:je,Qe=C.y,ze=void 0===Qe?0:Qe,mt="function"==typeof q?q({x:Te,y:ze}):{x:Te,y:ze};Te=mt.x,ze=mt.y;var Vt=C.hasOwnProperty("x"),Yt=C.hasOwnProperty("y"),ii=Mi,xt=Wi,Ot=window;if(J){var bt=ao(s),Kt="clientHeight",qt="clientWidth";bt===an(s)&&"static"!==cn(bt=rr(s)).position&&"absolute"===x&&(Kt="scrollHeight",qt="scrollWidth"),(f===Wi||(f===Mi||f===dn)&&g===un)&&(xt=Di,ze-=(xe&&bt===Ot&&Ot.visualViewport?Ot.visualViewport.height:bt[Kt])-p.height,ze*=A?1:-1),f!==Mi&&(f!==Wi&&f!==Di||g!==un)||(ii=dn,Te-=(xe&&bt===Ot&&Ot.visualViewport?Ot.visualViewport.width:bt[qt])-p.width,Te*=A?1:-1)}var Ai,ni=Object.assign({position:x},J&&Bu),Cn=!0===q?function Lm(u){var s=u.y,f=window.devicePixelRatio||1;return{x:oo(u.x*f)/f||0,y:oo(s*f)/f||0}}({x:Te,y:ze}):{x:Te,y:ze};return Te=Cn.x,ze=Cn.y,Object.assign({},ni,A?((Ai={})[xt]=Yt?"0":"",Ai[ii]=Vt?"0":"",Ai.transform=(Ot.devicePixelRatio||1)<=1?"translate("+Te+"px, "+ze+"px)":"translate3d("+Te+"px, "+ze+"px, 0)",Ai):((c={})[xt]=Yt?ze+"px":"",c[ii]=Vt?Te+"px":"",c.transform="",c))}var Ca={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(u){return u.replace(/left|right|bottom|top/g,function(c){return Ca[c]})}var Um={start:"end",end:"start"};function ba(u){return u.replace(/start|end/g,function(c){return Um[c]})}function fo(u,c){var s=c.getRootNode&&c.getRootNode();if(u.contains(c))return!0;if(s&&sc(s)){var p=c;do{if(p&&u.isSameNode(p))return!0;p=p.parentNode||p.host}while(p)}return!1}function fc(u){return Object.assign({},u,{left:u.x,top:u.y,right:u.x+u.width,bottom:u.y+u.height})}function mc(u,c,s){return c===Lu?fc(function jm(u,c){var s=an(u),p=rr(u),f=s.visualViewport,g=p.clientWidth,C=p.clientHeight,x=0,A=0;if(f){g=f.width,C=f.height;var J=lc();(J||!J&&"fixed"===c)&&(x=f.offsetLeft,A=f.offsetTop)}return{width:g,height:C,x:x+dc(u),y:A}}(u,s)):nr(c)?function Ym(u,c){var s=so(u,!1,"fixed"===c);return s.top=s.top+u.clientTop,s.left=s.left+u.clientLeft,s.bottom=s.top+u.clientHeight,s.right=s.left+u.clientWidth,s.width=u.clientWidth,s.height=u.clientHeight,s.x=s.left,s.y=s.top,s}(c,s):fc(function zm(u){var c,s=rr(u),p=cc(u),f=null==(c=u.ownerDocument)?void 0:c.body,g=Er(s.scrollWidth,s.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),C=Er(s.scrollHeight,s.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),x=-p.scrollLeft+dc(u),A=-p.scrollTop;return"rtl"===cn(f||s).direction&&(x+=Er(s.clientWidth,f?f.clientWidth:0)-g),{width:g,height:C,x,y:A}}(rr(u)))}function Uu(u){return Object.assign({},{top:0,right:0,bottom:0,left:0},u)}function ju(u,c){return c.reduce(function(s,p){return s[p]=u,s},{})}function Jo(u,c){void 0===c&&(c={});var p=c.placement,f=void 0===p?u.placement:p,g=c.strategy,C=void 0===g?u.strategy:g,x=c.boundary,A=void 0===x?"clippingParents":x,J=c.rootBoundary,q=void 0===J?Lu:J,xe=c.elementContext,je=void 0===xe?co:xe,Te=c.altBoundary,Qe=void 0!==Te&&Te,ze=c.padding,mt=void 0===ze?0:ze,Vt=Uu("number"!=typeof mt?mt:ju(mt,qo)),ii=u.rects.popper,xt=u.elements[Qe?je===co?"reference":co:je],Ot=function $m(u,c,s,p){var f="clippingParents"===c?function Km(u){var c=$o(ga(u)),p=["absolute","fixed"].indexOf(cn(u).position)>=0&&ln(u)?ao(u):u;return nr(p)?c.filter(function(f){return nr(f)&&fo(f,p)&&"body"!==On(f)}):[]}(u):[].concat(c),g=[].concat(f,[s]),x=g.reduce(function(A,J){var q=mc(u,J,p);return A.top=Er(q.top,A.top),A.right=ma(q.right,A.right),A.bottom=ma(q.bottom,A.bottom),A.left=Er(q.left,A.left),A},mc(u,g[0],p));return x.width=x.right-x.left,x.height=x.bottom-x.top,x.x=x.left,x.y=x.top,x}(nr(xt)?xt:xt.contextElement||rr(u.elements.popper),A,q,C),bt=so(u.elements.reference),Kt=Pm({reference:bt,element:ii,strategy:"absolute",placement:f}),qt=fc(Object.assign({},ii,Kt)),ui=je===co?qt:bt,pi={top:Ot.top-ui.top+Vt.top,bottom:ui.bottom-Ot.bottom+Vt.bottom,left:Ot.left-ui.left+Vt.left,right:ui.right-Ot.right+Vt.right},ni=u.modifiersData.offset;if(je===co&&ni){var Cn=ni[f];Object.keys(pi).forEach(function(Ai){var Or=[dn,Di].indexOf(Ai)>=0?1:-1,Tr=[Wi,Di].indexOf(Ai)>=0?"y":"x";pi[Ai]+=Cn[Tr]*Or})}return pi}function An(u,c,s){return Er(u,ma(c,s))}function xa(u,c,s){return void 0===s&&(s={x:0,y:0}),{top:u.top-c.height-s.y,right:u.right-c.width+s.x,bottom:u.bottom-c.height+s.y,left:u.left-c.width-s.x}}function Ku(u){return[Wi,dn,Di,Mi].some(function(c){return u[c]>=0})}var og=Sr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function Vn(u){var c=u.state,s=u.instance,p=u.options,f=p.scroll,g=void 0===f||f,C=p.resize,x=void 0===C||C,A=an(c.elements.popper),J=[].concat(c.scrollParents.reference,c.scrollParents.popper);return g&&J.forEach(function(q){q.addEventListener("scroll",s.update,ya)}),x&&A.addEventListener("resize",s.update,ya),function(){g&&J.forEach(function(q){q.removeEventListener("scroll",s.update,ya)}),x&&A.removeEventListener("resize",s.update,ya)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function Im(u){var c=u.state;c.modifiersData[u.name]=Pm({reference:c.rects.reference,element:c.rects.popper,strategy:"absolute",placement:c.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Nm(u){var c=u.state,s=u.options,p=s.gpuAcceleration,f=void 0===p||p,g=s.adaptive,C=void 0===g||g,x=s.roundOffsets,A=void 0===x||x,q={placement:Mn(c.placement),variation:po(c.placement),popper:c.elements.popper,popperRect:c.rects.popper,gpuAcceleration:f,isFixed:"fixed"===c.options.strategy};null!=c.modifiersData.popperOffsets&&(c.styles.popper=Object.assign({},c.styles.popper,Rr(Object.assign({},q,{offsets:c.modifiersData.popperOffsets,position:c.options.strategy,adaptive:C,roundOffsets:A})))),null!=c.modifiersData.arrow&&(c.styles.arrow=Object.assign({},c.styles.arrow,Rr(Object.assign({},q,{offsets:c.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),c.attributes.popper=Object.assign({},c.attributes.popper,{"data-popper-placement":c.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function km(u){var c=u.state;Object.keys(c.elements).forEach(function(s){var p=c.styles[s]||{},f=c.attributes[s]||{},g=c.elements[s];!ln(g)||!On(g)||(Object.assign(g.style,p),Object.keys(f).forEach(function(C){var x=f[C];!1===x?g.removeAttribute(C):g.setAttribute(C,!0===x?"":x)}))})},effect:function Hm(u){var c=u.state,s={popper:{position:c.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(c.elements.popper.style,s.popper),c.styles=s,c.elements.arrow&&Object.assign(c.elements.arrow.style,s.arrow),function(){Object.keys(c.elements).forEach(function(p){var f=c.elements[p],g=c.attributes[p]||{},x=Object.keys(c.styles.hasOwnProperty(p)?c.styles[p]:s[p]).reduce(function(A,J){return A[J]="",A},{});!ln(f)||!On(f)||(Object.assign(f.style,x),Object.keys(g).forEach(function(A){f.removeAttribute(A)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function Bm(u){var c=u.state,p=u.name,f=u.options.offset,g=void 0===f?[0,0]:f,C=Gu.reduce(function(q,xe){return q[xe]=function Vm(u,c,s){var p=Mn(u),f=[Mi,Wi].indexOf(p)>=0?-1:1,g="function"==typeof s?s(Object.assign({},c,{placement:u})):s,C=g[0],x=g[1];return C=C||0,x=(x||0)*f,[Mi,dn].indexOf(p)>=0?{x,y:C}:{x:C,y:x}}(xe,c.rects,g),q},{}),x=C[c.placement],J=x.y;null!=c.modifiersData.popperOffsets&&(c.modifiersData.popperOffsets.x+=x.x,c.modifiersData.popperOffsets.y+=J),c.modifiersData[p]=C}},{name:"flip",enabled:!0,phase:"main",fn:function qm(u){var c=u.state,s=u.options,p=u.name;if(!c.modifiersData[p]._skip){for(var f=s.mainAxis,g=void 0===f||f,C=s.altAxis,x=void 0===C||C,A=s.fallbackPlacements,J=s.padding,q=s.boundary,xe=s.rootBoundary,je=s.altBoundary,Te=s.flipVariations,Qe=void 0===Te||Te,ze=s.allowedAutoPlacements,mt=c.options.placement,Vt=Mn(mt),ii=A||(Vt!==mt&&Qe?function Zm(u){if(Mn(u)===hc)return[];var c=wa(u);return[ba(u),c,ba(c)]}(mt):[wa(mt)]),xt=[mt].concat(ii).reduce(function(yo,sr){return yo.concat(Mn(sr)===hc?function zu(u,c){void 0===c&&(c={});var f=c.boundary,g=c.rootBoundary,C=c.padding,x=c.flipVariations,A=c.allowedAutoPlacements,J=void 0===A?Gu:A,q=po(c.placement),xe=q?x?Nu:Nu.filter(function(Qe){return po(Qe)===q}):qo,je=xe.filter(function(Qe){return J.indexOf(Qe)>=0});0===je.length&&(je=xe);var Te=je.reduce(function(Qe,ze){return Qe[ze]=Jo(u,{placement:ze,boundary:f,rootBoundary:g,padding:C})[Mn(ze)],Qe},{});return Object.keys(Te).sort(function(Qe,ze){return Te[Qe]-Te[ze]})}(c,{placement:sr,boundary:q,rootBoundary:xe,padding:J,flipVariations:Qe,allowedAutoPlacements:ze}):sr)},[]),Ot=c.rects.reference,bt=c.rects.popper,Kt=new Map,qt=!0,ui=xt[0],pi=0;pi=0,Tr=Or?"width":"height",qi=Jo(c,{placement:ni,boundary:q,rootBoundary:xe,altBoundary:je,padding:J}),Ui=Or?Ai?dn:Mi:Ai?Di:Wi;Ot[Tr]>bt[Tr]&&(Ui=wa(Ui));var Ma=wa(Ui),Dr=[];if(g&&Dr.push(qi[Cn]<=0),x&&Dr.push(qi[Ui]<=0,qi[Ma]<=0),Dr.every(function(yo){return yo})){ui=ni,qt=!1;break}Kt.set(ni,Dr)}if(qt)for(var wc=function(sr){var ar=xt.find(function(Aa){var Mr=Kt.get(Aa);if(Mr)return Mr.slice(0,sr).every(function(Pa){return Pa})});if(ar)return ui=ar,"break"},rs=Qe?3:1;rs>0&&"break"!==wc(rs);rs--);c.placement!==ui&&(c.modifiersData[p]._skip=!0,c.placement=ui,c.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function Jm(u){var c=u.state,s=u.options,p=u.name,f=s.mainAxis,g=void 0===f||f,C=s.altAxis,x=void 0!==C&&C,je=s.tether,Te=void 0===je||je,Qe=s.tetherOffset,ze=void 0===Qe?0:Qe,mt=Jo(c,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),Vt=Mn(c.placement),Yt=po(c.placement),ii=!Yt,xt=ho(Vt),Ot=function Qm(u){return"x"===u?"y":"x"}(xt),bt=c.modifiersData.popperOffsets,Kt=c.rects.reference,qt=c.rects.popper,ui="function"==typeof ze?ze(Object.assign({},c.rects,{placement:c.placement})):ze,pi="number"==typeof ui?{mainAxis:ui,altAxis:ui}:Object.assign({mainAxis:0,altAxis:0},ui),ni=c.modifiersData.offset?c.modifiersData.offset[c.placement]:null,Cn={x:0,y:0};if(bt){if(g){var Ai,Or="y"===xt?Wi:Mi,Tr="y"===xt?Di:dn,qi="y"===xt?"height":"width",Ui=bt[xt],Ma=Ui+mt[Or],Dr=Ui-mt[Tr],or=Te?-qt[qi]/2:0,wc=Yt===lo?Kt[qi]:qt[qi],rs=Yt===lo?-qt[qi]:-Kt[qi],_o=c.elements.arrow,yo=Te&&_o?pc(_o):{width:0,height:0},sr=c.modifiersData["arrow#persistent"]?c.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ar=sr[Or],Aa=sr[Tr],Mr=An(0,Kt[qi],yo[qi]),Pa=ii?Kt[qi]/2-or-Mr-ar-pi.mainAxis:wc-Mr-ar-pi.mainAxis,Eg=ii?-Kt[qi]/2+or+Mr+Aa+pi.mainAxis:rs+Mr+Aa+pi.mainAxis,bc=c.elements.arrow&&ao(c.elements.arrow),Ju=null!=(Ai=ni?.[xt])?Ai:0,Z_=Ui+Eg-Ju,Sg=An(Te?ma(Ma,Ui+Pa-Ju-(bc?"y"===xt?bc.clientTop||0:bc.clientLeft||0:0)):Ma,Ui,Te?Er(Dr,Z_):Dr);bt[xt]=Sg,Cn[xt]=Sg-Ui}if(x){var Rg,Ar=bt[Ot],Ia="y"===Ot?"height":"width",ep=Ar+mt["x"===xt?Wi:Mi],tp=Ar-mt["x"===xt?Di:dn],Oi=-1!==[Wi,Mi].indexOf(Vt),hn=null!=(Rg=ni?.[Ot])?Rg:0,ip=Oi?ep:Ar-Kt[Ia]-qt[Ia]-hn+pi.altAxis,np=Oi?Ar+Kt[Ia]+qt[Ia]-hn-pi.altAxis:tp,xc=Te&&Oi?function Xm(u,c,s){var p=An(u,c,s);return p>s?s:p}(ip,Ar,np):An(Te?ip:ep,Ar,Te?np:tp);bt[Ot]=xc,Cn[Ot]=xc-Ar}c.modifiersData[p]=Cn}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function tg(u){var c,s=u.state,p=u.name,f=u.options,g=s.elements.arrow,C=s.modifiersData.popperOffsets,x=Mn(s.placement),A=ho(x),q=[Mi,dn].indexOf(x)>=0?"height":"width";if(g&&C){var xe=function(c,s){return Uu("number"!=typeof(c="function"==typeof c?c(Object.assign({},s.rects,{placement:s.placement})):c)?c:ju(c,qo))}(f.padding,s),je=pc(g),Te="y"===A?Wi:Mi,Qe="y"===A?Di:dn,ze=s.rects.reference[q]+s.rects.reference[A]-C[A]-s.rects.popper[q],mt=C[A]-s.rects.reference[A],Vt=ao(g),Yt=Vt?"y"===A?Vt.clientHeight||0:Vt.clientWidth||0:0,bt=Yt/2-je[q]/2+(ze/2-mt/2),Kt=An(xe[Te],bt,Yt-je[q]-xe[Qe]);s.modifiersData[p]=((c={})[A]=Kt,c.centerOffset=Kt-bt,c)}},effect:function Yu(u){var c=u.state,p=u.options.element,f=void 0===p?"[data-popper-arrow]":p;null!=f&&("string"==typeof f&&!(f=c.elements.popper.querySelector(f))||!fo(c.elements.popper,f)||(c.elements.arrow=f))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function ng(u){var c=u.state,s=u.name,p=c.rects.reference,f=c.rects.popper,g=c.modifiersData.preventOverflow,C=Jo(c,{elementContext:"reference"}),x=Jo(c,{altBoundary:!0}),A=xa(C,p),J=xa(x,f,g),q=Ku(A),xe=Ku(J);c.modifiersData[s]={referenceClippingOffsets:A,popperEscapeOffsets:J,isReferenceHidden:q,hasPopperEscaped:xe},c.attributes.popper=Object.assign({},c.attributes.popper,{"data-popper-reference-hidden":q,"data-popper-escaped":xe})}}]});const vc=["popperViewRef"];function sg(u,c){if(1&u&&(d.TgZ(0,"div",5),d.Hsn(1),d.qZA()),2&u){const s=d.oxw();d.Q6J("innerHTML",s.text,d.oJD)}}function ag(u,c){1&u&&(d.TgZ(0,"div",6),d.Hsn(1,1),d.qZA())}const Ea=["*","*"];var mo=(()=>{return(u=mo||(mo={})).TOP="top",u.BOTTOM="bottom",u.LEFT="left",u.RIGHT="right",u.TOPSTART="top-start",u.BOTTOMSTART="bottom-start",u.LEFTSTART="left-start",u.RIGHTSTART="right-start",u.TOPEND="top-end",u.BOTTOMEND="bottom-end",u.LEFTEND="left-end",u.RIGHTEND="right-end",u.AUTO="auto",u.AUTOSTART="auto-start",u.AUTOEND="auto-end",mo;var u})(),Pn=(()=>{return(u=Pn||(Pn={})).click="click",u.hover="hover",u.mousedown="mousedown",u.none="none",Pn;var u})();let ts=(()=>{class u{constructor(s,p,f,g){this.elRef=s,this._renderer=p,this._viewRef=f,this._changeDetectorRef=g,this.ariaHidden="true",this.arrowColor=null,this.displayType="none",this.id="ngx_poppperjs_"+ ++u.nextId,this.isMouseOver=!1,this.onHidden=new d.vpe,this.opacity=0,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:mo.AUTO,boundariesElement:"",trigger:Pn.hover,positionFixed:!1,appendToBody:!1,popperModifiers:[]},this.state=!0,this._styleId=`${this.id}_style`}clean(){this.toggleVisibility(!1),this.popperInstance&&this.popperInstance.destroy()}extractAppliedClassListExpr(s=[]){return(Array.isArray(s)?s:"string"==typeof s?s.replace(/ /,"").split(","):[]).reduce((f,g)=>(f[g]=!0,f),{})}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elRef&&this.elRef.nativeElement&&this.elRef.nativeElement.parentNode&&(this._viewRef.detach(),this.elRef.nativeElement.parentNode.removeChild(this.elRef.nativeElement))}onDocumentResize(){this.update()}onMouseOver(){this.isMouseOver=!0}show(){if(!this.referenceObject)return;const s=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);s&&this.elRef.nativeElement.parentNode!==s&&(this.elRef.nativeElement.parentNode&&this.elRef.nativeElement.parentNode.removeChild(this.elRef.nativeElement),s.appendChild(this.elRef.nativeElement));const p={strategy:this.popperOptions.positionFixed?"fixed":"absolute",placement:this.popperOptions.placement,modifiers:[{name:"offset",enabled:!0,options:{offset:[0,8]}},{name:"arrow",enabled:!0,options:{element:".ngxp__arrow",padding:3},requires:["arrow"]}]};this.onUpdate&&(p.onFirstUpdate=this.onUpdate);const f=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);if(p.modifiers&&f&&p.modifiers.push({name:"preventOverflow",enabled:this.popperOptions.preventOverflow,options:{boundary:f}}),p.modifiers){const g=p.modifiers.find(C=>"preventOverflow"===C.name);if(g&&!g.enabled){const C=p.modifiers.find(x=>"preventOverflow"===x.name);C&&(C.enabled=!1)}}this._determineArrowColor(),p.modifiers=p.modifiers.concat(this.popperOptions.popperModifiers),this.popperInstance=og(this.referenceObject,this.popperViewRef.nativeElement,p),this.toggleVisibility(!0),this._globalResize=this._renderer.listen("document","resize",this.onDocumentResize.bind(this))}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Pn.hover||this.popperOptions.hideOnMouseLeave)&&this.hide()}toggleVisibility(s){s?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this._changeDetectorRef.destroyed||this._changeDetectorRef.detectChanges()}update(){this.popperInstance&&this.popperInstance.update()}_createArrowSelector(){return`div#${this.id}.ngxp__container > .ngxp__arrow.ngxp__force-arrow`}_determineArrowColor(){if(!this.popperOptions.styles||this.arrowColor)return!1;const s=this.popperOptions.styles["background-color"]||this.popperOptions.styles.backgroundColor;if(this.arrowColor===s)return!1;this.arrowColor=s;let p=document.querySelector(`#${this._styleId}`);const f=this.arrowColor?`${this._createArrowSelector()}:before { background-color: ${this.arrowColor}; }`:"";p||(p=document.createElement("style"),p.id=this._styleId,p.setAttribute("type","text/css"),document.head.appendChild(p)),p.styleSheet?p.styleSheet.cssText=f:p.innerHTML=f}}return u.nextId=0,u.\u0275fac=function(s){return new(s||u)(d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.s_b),d.Y36(d.sBO))},u.\u0275cmp=d.Xpm({type:u,selectors:[["popper-content"]],viewQuery:function(s,p){if(1&s&&d.Gf(vc,7),2&s){let f;d.iGM(f=d.CRH())&&(p.popperViewRef=f.first)}},hostBindings:function(s,p){1&s&&d.NdJ("mouseover",function(){return p.onMouseOver()})("mouseleave",function(){return p.showOnLeave()})},exportAs:["ngxPopperjsContent"],ngContentSelectors:Ea,decls:5,vars:19,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],["data-popper-arrow","",1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(s,p){1&s&&(d.F$t(Ea),d.TgZ(0,"div",0,1),d.YNc(2,sg,2,1,"div",2),d.YNc(3,ag,2,0,"div",3),d._UZ(4,"div",4),d.qZA()),2&s&&(d.Udp("display",p.displayType)("opacity",p.opacity),d.ekj("ngxp__container",!p.popperOptions.disableDefaultStyling)("ngxp__animation",!p.popperOptions.disableAnimation),d.Q6J("ngStyle",p.popperOptions.styles)("ngClass",p.extractAppliedClassListExpr(p.popperOptions.applyClass)),d.uIk("id",p.id)("aria-hidden",p.ariaHidden)("aria-describedby",p.popperOptions.ariaDescribe||null)("role",p.popperOptions.ariaRole),d.xp6(2),d.Q6J("ngIf",p.text),d.xp6(1),d.Q6J("ngIf",!p.text),d.xp6(1),d.ekj("ngxp__force-arrow",p.arrowColor),d.Q6J("ngClass",p.extractAppliedClassListExpr(p.popperOptions.applyArrowClass)))},dependencies:[L.mk,L.O5,L.PC],styles:['popper-content{position:relative;display:block}.ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px #00000080;padding:10px}.ngxp__container.ngxp__animation{animation:ngxp-fadeIn .15s ease-out}.ngxp__container>.ngxp__arrow,.ngxp__container>.ngxp__arrow:before{position:absolute;width:10px;height:10px;z-index:-1}.ngxp__container>.ngxp__arrow:before{transform:rotate(45deg);content:"";background-color:#fff;top:0;left:0}.ngxp__container[data-popper-placement^=top]>.ngxp__arrow{bottom:-4px}.ngxp__container[data-popper-placement^=bottom]>.ngxp__arrow{top:-4px}.ngxp__container[data-popper-placement^=left]>.ngxp__arrow{right:-4px}.ngxp__container[data-popper-placement^=right]>.ngxp__arrow{left:-4px}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}to{display:block;opacity:1}}\n'],encapsulation:2,changeDetection:0}),u})();const $u=new d.OlP("NGX_POPPERJS_DEFAULTS");class lg{static coerceBooleanProperty(c){return null!=c&&"false"!=`${c}`}}class Ri{constructor(c,s,p,f={}){this._changeDetectorRef=c,this._elementRef=s,this._vcr=p,this._popperDefaults=f,this.hideTimeout=0,this.popperOnHidden=new d.vpe,this.popperOnShown=new d.vpe,this.popperOnUpdate=new d.vpe,this.timeoutAfterShow=0,this._destroy$=new pe.x,this._globalEventListenersCtrl$=new pe.x,this._popperContentClass=ts,this._scheduledHideTimeoutCtrl$=new pe.x,this._scheduledShowTimeoutCtrl$=new pe.x,this._shown=!1,Ri.baseOptions={...Ri.baseOptions,...this._popperDefaults}}set applyClass(c){c!==this._applyClass&&(this._applyClass=c,this._checkExisting("applyClass",c))}get applyClass(){return this._applyClass}set content(c){c!==this._content&&(this._content=c,this._popperContent&&("string"==typeof c?this._popperContent.text=c:this._popperContent=c))}get content(){return this._content}set disabled(c){c!==this._disabled&&(this._disabled=!!c,this._shown&&this.hide())}get disabled(){return this._disabled}set placement(c){this._popperPlacement=c,this._checkExisting("placement",c)}get placement(){return this._popperPlacement}set popperApplyArrowClass(c){if(c!==this._popperApplyArrowClass&&(this._popperApplyArrowClass=c,this._popperContent)){if(this._popperContent.popperOptions.applyArrowClass=c,!this._shown)return;this._popperContent.popperInstance.setOptions(this._popperContent.popperOptions)}}get popperApplyArrowClass(){return this._popperApplyArrowClass}set preventOverflow(c){this._popperPreventOverflow=lg.coerceBooleanProperty(c),this._checkExisting("preventOverflow",this._popperPreventOverflow)}get preventOverflow(){return this._popperPreventOverflow}static assignDefined(c,...s){for(const p of s)for(const f of Object.keys(p)){const g=p[f];void 0!==g&&(c[f]=g)}return c}applyTriggerListeners(){switch(this.showTrigger){case Pn.click:this._addListener("click",this.toggle.bind(this));break;case Pn.mousedown:this._addListener("mousedown",this.toggle.bind(this));break;case Pn.hover:this._addListener("mouseenter",this.scheduledShow.bind(this,this.showDelay)),["touchend","touchcancel","mouseleave"].forEach(c=>{this._addListener(c,this.scheduledHide.bind(this,null,this.hideTimeout))})}this.showTrigger!==Pn.hover&&this.hideOnMouseLeave&&["touchend","touchcancel","mouseleave"].forEach(c=>{this._addListener(c,this.scheduledHide.bind(this,null,this.hideTimeout))})}getRefElement(){return this.targetElement||this._elementRef.nativeElement}hide(){if(!this.disabled){if(!this._shown)return void this._scheduledShowTimeoutCtrl$.next();this._shown=!1,this._popperContentRef?this._popperContentRef.instance.hide():this._popperContent.hide(),this.popperOnHidden.emit(this),this._globalEventListenersCtrl$.next()}}hideOnClickOutsideHandler(c){this.disabled||!this.hideOnClickOutside||c.target===this._popperContent.elRef.nativeElement||this._popperContent.elRef.nativeElement.contains(c.target)||this.scheduledHide(c,this.hideTimeout)}hideOnScrollHandler(c){this.disabled||!this.hideOnScroll||this.scheduledHide(c,this.hideTimeout)}ngOnDestroy(){this._destroy$.next(),this._popperContent&&this._popperContent.clean()}ngOnInit(){this.hideOnClickOutside=typeof this.hideOnClickOutside>"u"?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content?(this._popperContent=this._constructContent(),this._popperContent.text=this.content):typeof this.content>"u"?(this._popperContent=this._constructContent(),this._popperContent.text=""):this._popperContent=this.content;const c=this._popperContent;c.referenceObject=this.getRefElement(),this._setContentProperties(c),this._setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}scheduledHide(c=null,s=this.hideTimeout){this.disabled||(this._scheduledShowTimeoutCtrl$.next(),(0,$.H)(s).pipe((0,Y.R)(this._scheduledHideTimeoutCtrl$),(0,Y.R)(this._destroy$)).subscribe({next:()=>{const p=c?c.toElement:null,f=!!this._popperContent.popperViewRef&&this._popperContent.popperViewRef.nativeElement;!f||f===p||f.contains(p)||this.content&&this.content.isMouseOver||(this.hide(),this._applyChanges())}}))}scheduledShow(c=this.showDelay){this.disabled||(this._scheduledHideTimeoutCtrl$.next(),(0,$.H)(c).pipe((0,Y.R)(this._scheduledShowTimeoutCtrl$),(0,Y.R)(this._destroy$)).subscribe({next:()=>{this.show(),this._applyChanges()}}))}show(){if(this._shown)return void this._scheduledHideTimeoutCtrl$.next();this._shown=!0;const c=this._popperContent,s=this.getRefElement();c.referenceObject!==s&&(c.referenceObject=s),this._setContentProperties(c),c.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),Et(document,"click").pipe((0,Y.R)(this._globalEventListenersCtrl$),(0,Y.R)(this._destroy$)).subscribe({next:p=>this.hideOnClickOutsideHandler(p)}),Et(this._getScrollParent(this.getRefElement()),"scroll").pipe((0,Y.R)(this._globalEventListenersCtrl$),(0,Y.R)(this._destroy$)).subscribe({next:p=>this.hideOnScrollHandler(p)})}toggle(){this.disabled||(this._shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}_addListener(c,s){Et(this._elementRef.nativeElement,c).pipe((0,Y.R)(this._destroy$)).subscribe({next:s})}_applyChanges(){this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges()}_checkExisting(c,s){if(this._popperContent){if(this._popperContent.popperOptions[c]=s,!this._shown)return;this._popperContent.popperInstance.setOptions(this._popperContent.popperOptions)}}_constructContent(){return this._popperContentRef=this._vcr.createComponent(this._popperContentClass),this._popperContentRef.instance}_getScrollParent(c){const p=c instanceof HTMLElement&&window.getComputedStyle(c).overflowY;return c?"visible"!==p&&"hidden"!==p&&c.scrollHeight>=c.clientHeight?c:this._getScrollParent(c.parentNode)||document:null}_onPopperUpdate(c){this.popperOnUpdate.emit(c)}_setContentProperties(c){c.popperOptions=Ri.assignDefined(c.popperOptions,Ri.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.popperApplyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.popperAppendTo,preventOverflow:this.preventOverflow}),c.onUpdate=this._onPopperUpdate.bind(this),c.onHidden.pipe((0,Y.R)(this._destroy$)).subscribe(this.hide.bind(this))}_setDefaults(){["showDelay","hideOnScroll","hideOnMouseLeave","hideOnClickOutside","ariaRole","ariaDescribe"].forEach(c=>{this[c]=void 0===this[c]?Ri.baseOptions[c]:this[c]}),this.showTrigger=this.showTrigger||Ri.baseOptions.trigger,this.styles=void 0===this.styles?{...Ri.baseOptions.styles}:this.styles}}function Zu(u={}){return[{provide:$u,useValue:u}]}Ri.baseOptions={showDelay:0,placement:mo.AUTO,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{},trigger:Pn.click},Ri.nextId=0,Ri.\u0275fac=function(c){return new(c||Ri)(d.Y36(d.sBO),d.Y36(d.SBq),d.Y36(d.s_b),d.Y36($u))},Ri.\u0275dir=d.lG2({type:Ri,selectors:[["","popper",""]],inputs:{applyClass:["popperApplyClass","applyClass"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],ariaRole:["popperAriaRole","ariaRole"],boundariesElement:["popperBoundaries","boundariesElement"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],content:["popper","content"],disableAnimation:["popperDisableAnimation","disableAnimation"],disabled:["popperDisabled","disabled"],disableStyle:["popperDisableStyle","disableStyle"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideTimeout:["popperTimeout","hideTimeout"],placement:["popperPlacement","placement"],popperAppendTo:"popperAppendTo",popperApplyArrowClass:"popperApplyArrowClass",popperModifiers:"popperModifiers",positionFixed:["popperPositionFixed","positionFixed"],preventOverflow:["popperPreventOverflow","preventOverflow"],showDelay:["popperDelay","showDelay"],showOnStart:["popperShowOnStart","showOnStart"],showTrigger:["popperTrigger","showTrigger"],styles:["popperStyles","styles"],targetElement:["popperTarget","targetElement"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"]},outputs:{popperOnHidden:"popperOnHidden",popperOnShown:"popperOnShown",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"]});let cg=(()=>{class u{static forRoot(s){return{ngModule:u,providers:[Zu(s)]}}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({providers:[Zu()],imports:[L.ez]}),u})();const Sa=["searchInput"],dg=["searchDialog"];class Ra{constructor(c,s,p,f){this.searchStateService=c,this.dialog=s,this.document=p,this.el=f,this.popperPlacement=mo.LEFTEND,this.width="500px",this.height="300px",this.destroySubject=new pe.x,this.searchStateService.select("isSearchDialogOpen").pipe((0,Y.R)(this.destroySubject)).subscribe(g=>{g?this.showSearch():this.hideSearch()})}hideSearch(){this.searchDialog&&this.searchDialog.hide()}showSearch(){this.width=this.el.nativeElement.offsetLeft-50+"px",this.height=this.document.body.offsetHeight-50+"px",this.searchDialog&&this.searchDialog.show()}doSearchTextChanged(c){this.searchStateService.dispatch({type:"setSearchText",searchText:c.target.value}),this.searchStateService.dispatch({type:"openSearchDialog"})}doHidePopper(){this.searchStateService.dispatch({type:"closeSearchDialog"})}doShowPopper(){this.searchStateService.dispatch({type:"openSearchDialog"})}ngOnDestroy(){this.destroySubject.next(!0),this.destroySubject.complete()}static#e=this.\u0275fac=function(s){return new(s||Ra)(d.Y36(Rn.tx),d.Y36(ha),d.Y36(L.K0),d.Y36(d.SBq))};static#t=this.\u0275cmp=d.Xpm({type:Ra,selectors:[["porrtal-search"]],viewQuery:function(s,p){if(1&s&&(d.Gf(Sa,5,d.SBq),d.Gf(dg,5,ts)),2&s){let f;d.iGM(f=d.CRH())&&(p.searchInput=f.first),d.iGM(f=d.CRH())&&(p.searchDialog=f.first)}},standalone:!0,features:[d.jDz],decls:10,vars:8,consts:[[1,"search-container"],["appearance","fill",1,"search-form-field"],["matPrefix","",3,"popper","popperApplyClass","popperPlacement","popperPositionFixed","popperOnHidden","popperOnShown"],["type","text","matInput","",3,"keyup"],["searchInput",""],["searchDialog",""]],template:function(s,p){if(1&s&&(d.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-icon",2),d.NdJ("popperOnHidden",function(){return p.doHidePopper()})("popperOnShown",function(){return p.doShowPopper()}),d._uU(3,"search"),d.qZA(),d.TgZ(4,"input",3,4),d.NdJ("keyup",function(g){return p.doSearchTextChanged(g)}),d.qZA()()(),d.TgZ(6,"popper-content",null,5)(8,"div"),d._UZ(9,"porrtal-search-dialog"),d.qZA()()),2&s){const f=d.MAs(7);d.xp6(2),d.Q6J("popper",f)("popperApplyClass","search-popper")("popperPlacement",p.popperPlacement)("popperPositionFixed",!0),d.xp6(6),d.Udp("width",p.width)("height",p.height)}},dependencies:[L.ez,Nh,Ni.Ps,Ni.Hw,Xl,im,Ql,yn,ro,gm,cg,ts,Ri,fa],styles:[".search-popper{z-index:20;background-color:#fff} .mat-form-field-wrapper{padding-bottom:0} .mat-form-field-underline{bottom:0} .mat-form-field-infix{padding:0!important;bottom:8px;border-top:0}"],changeDetection:0})}class is{constructor(c){this.shellStateService=c,this.shellStateService.dispatch({type:"registerView",view:{viewId:"logger-messages",paneType:"bottom",launchAtStartup:!1,componentName:"LoggerMessagesComponent",componentModule:()=>Promise.resolve().then(M.bind(M,14473)),key:"logger-messages",displayText:"log",displayIcon:"notifications"}})}doLaunchBannerMessages(){this.shellStateService.dispatch({type:"launchView",viewId:"logger-messages"})}static#e=this.\u0275fac=function(s){return new(s||is)(d.Y36(Rn.vv))};static#t=this.\u0275cmp=d.Xpm({type:is,selectors:[["porrtal-logger-banner"]],standalone:!0,features:[d.jDz],decls:3,vars:0,consts:[[1,"banner-container",3,"click"],["inline","true"]],template:function(s,p){1&s&&(d.TgZ(0,"div",0),d.NdJ("click",function(){return p.doLaunchBannerMessages()}),d.TgZ(1,"mat-icon",1),d._uU(2,"notifications"),d.qZA()())},dependencies:[L.ez,Ni.Ps,Ni.Hw],styles:[".banner-container[_ngcontent-%COMP%]{display:grid;align-items:center;font-size:150%;line-height:1.125}"],changeDetection:0})}function ug(u,c){if(1&u&&(d.TgZ(0,"mat-icon",12),d._uU(1),d.qZA()),2&u){const s=d.oxw().$implicit;d.xp6(1),d.Oqu(s.displayIcon)}}function pg(u,c){1&u&&d._UZ(0,"span")}function _c(u,c){if(1&u&&d._UZ(0,"img",13),2&u){const s=d.oxw().$implicit;d.Q6J("src",s.displayImage,d.LSH)}}function hg(u,c){1&u&&d._UZ(0,"span")}function fg(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"button",5),d.NdJ("click",function(f){const C=d.CHM(s).$implicit,x=d.oxw(2);return d.KtG(x.launchItem(C,f.shiftKey,f))}),d.TgZ(1,"div",6),d.YNc(2,ug,2,1,"mat-icon",7),d.YNc(3,pg,1,0,"span",8),d.YNc(4,_c,1,1,"img",9),d.YNc(5,hg,1,0,"span",8),d.TgZ(6,"span",10),d._uU(7),d.qZA(),d.TgZ(8,"mat-icon",11),d.NdJ("click",function(f){const C=d.CHM(s).$implicit,x=d.oxw(2);return d.KtG(x.launchItem(C,!0,f))}),d._uU(9," open_in_new "),d.qZA()()()}if(2&u){const s=c.$implicit;d.xp6(2),d.Q6J("ngIf",s.displayIcon),d.xp6(1),d.Q6J("ngIf",!s.displayIcon),d.xp6(1),d.Q6J("ngIf",s.displayImage),d.xp6(1),d.Q6J("ngIf",!s.displayImage),d.xp6(2),d.Oqu(s.displayText)}}function qu(u,c){if(1&u&&d.YNc(0,fg,10,5,"button",4),2&u){const s=d.oxw();d.Q6J("ngForOf",null==s.bannerData?null:s.bannerData.childData)}}const yc=function(u,c){return{position:"fixed",top:u,left:c}},mg=["*"];class go{constructor(c){this.document=c,this.menuPosition={x:"0px",y:"0px"},this.document&&this.document.defaultView&&(this.window=this.document.defaultView)}containerClick(c){this.menuPosition={x:c?.clientX?`${c?.clientX}px`:"0px",y:c?.clientY?`${c?.clientY}px`:"0px"},this.menuTrigger.openMenu()}launchItem(c,s,p){c.targetUrl&&(s?(this?.window?.open(c.targetUrl,"_blank"),p.stopPropagation()):this.window&&this.window.location&&this.window.location&&(this.window.location.href=c.targetUrl))}static#e=this.\u0275fac=function(s){return new(s||go)(d.Y36(L.K0))};static#t=this.\u0275cmp=d.Xpm({type:go,selectors:[["porrtal-banner-menu"]],viewQuery:function(s,p){if(1&s&&d.Gf($r,7),2&s){let f;d.iGM(f=d.CRH())&&(p.menuTrigger=f.first)}},hostBindings:function(s,p){1&s&&d.NdJ("click",function(g){return p.containerClick(g)})},inputs:{bannerData:"bannerData"},standalone:!0,features:[d.jDz],ngContentSelectors:mg,decls:6,vars:5,consts:[[3,"click"],[3,"ngStyle","matMenuTriggerFor"],["menu","matMenu"],["matMenuContent",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"menu-item"],["class","material-icon",4,"ngIf"],[4,"ngIf"],["class","image-icon","alt","angular icon",3,"src",4,"ngIf"],[1,"menu-text"],[1,"popout-icon",3,"click"],[1,"material-icon"],["alt","angular icon",1,"image-icon",3,"src"]],template:function(s,p){if(1&s&&(d.F$t(),d.ynx(0,0),d.NdJ("click",function(){return p.containerClick()}),d.Hsn(1),d.BQk(),d._UZ(2,"div",1),d.TgZ(3,"mat-menu",null,2),d.YNc(5,qu,1,1,"ng-template",3),d.qZA()),2&s){const f=d.MAs(4);d.xp6(2),d.Q6J("ngStyle",d.WLB(2,yc,p.menuPosition.y,p.menuPosition.x))("matMenuTriggerFor",f)}},dependencies:[L.ez,L.sg,L.O5,L.PC,Gi,Kr,En,$r,Ts,Ni.Ps,Ni.Hw],styles:[".menu-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;cursor:pointer}.menu-text[_ngcontent-%COMP%]{cursor:pointer}.material-icon[_ngcontent-%COMP%]{margin-right:3px!important}.image-icon[_ngcontent-%COMP%]{display:inline-block;width:26px;height:26px;margin-right:3px}.popout-icon[_ngcontent-%COMP%]{margin-left:3px}"],changeDetection:0})}function Cc(u,c){if(1&u&&(d.TgZ(0,"mat-icon",7),d._uU(1),d.qZA()),2&u){const s=d.oxw();d.xp6(1),d.Oqu(null==s.bannerData?null:s.bannerData.displayIcon)}}function gg(u,c){1&u&&d._UZ(0,"span")}function Qu(u,c){if(1&u&&d._UZ(0,"img",8),2&u){const s=d.oxw();d.Q6J("src",null==s.bannerData?null:s.bannerData.displayImage,d.LSH)}}function ns(u,c){1&u&&d._UZ(0,"span")}function vg(u,c){1&u&&(d.TgZ(0,"mat-icon",9),d._uU(1,"arrow_drop_down"),d.qZA())}class Oa{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(s){return new(s||Oa)};static#t=this.\u0275cmp=d.Xpm({type:Oa,selectors:[["porrtal-banner"]],inputs:{bannerData:"bannerData"},standalone:!0,features:[d.jDz],decls:10,vars:9,consts:[[1,"container"],["class","banner-icon-icon",4,"ngIf"],[4,"ngIf"],["class","banner-image-icon","alt","angular icon",3,"src",4,"ngIf"],[3,"bannerData"],[1,"banner-text"],["class","down-icon",4,"ngIf"],[1,"banner-icon-icon"],["alt","angular icon",1,"banner-image-icon",3,"src"],[1,"down-icon"]],template:function(s,p){1&s&&(d.TgZ(0,"div",0),d.YNc(1,Cc,2,1,"mat-icon",1),d.YNc(2,gg,1,0,"span",2),d.YNc(3,Qu,1,1,"img",3),d.YNc(4,ns,1,0,"span",2),d.TgZ(5,"porrtal-banner-menu",4)(6,"h2",5),d._uU(7),d.YNc(8,vg,2,0,"mat-icon",6),d.qZA()(),d._UZ(9,"span"),d.qZA()),2&s&&(d.xp6(1),d.Q6J("ngIf",null==p.bannerData?null:p.bannerData.displayIcon),d.xp6(1),d.Q6J("ngIf",!(null!=p.bannerData&&p.bannerData.displayIcon)),d.xp6(1),d.Q6J("ngIf",null==p.bannerData?null:p.bannerData.displayImage),d.xp6(1),d.Q6J("ngIf",!(null!=p.bannerData&&p.bannerData.displayImage)),d.xp6(1),d.Tol(p.bannerData&&p.bannerData.childData&&p.bannerData.childData.length&&p.bannerData.childData.length>0?"banner-with-children":""),d.Q6J("bannerData",p.bannerData),d.xp6(2),d.hij(" ",null==p.bannerData?null:p.bannerData.displayText," "),d.xp6(1),d.Q6J("ngIf",p.bannerData&&p.bannerData.childData&&p.bannerData.childData.length&&p.bannerData.childData.length>0))},dependencies:[L.ez,L.O5,Ni.Ps,Ni.Hw,go],styles:[".container[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:auto auto auto 1fr}.banner-with-children[_ngcontent-%COMP%]{cursor:pointer}.down-icon[_ngcontent-%COMP%]{position:relative;top:4px}.popout-icon[_ngcontent-%COMP%]{margin-left:7px}.image-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:text-bottom;width:26px;height:26px;margin-left:3px}.banner-text[_ngcontent-%COMP%]{margin-bottom:0;margin-left:7px}.banner-icon-icon[_ngcontent-%COMP%]{margin-left:7px}.banner-image-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:text-bottom;width:26px;height:26px;margin-left:7px}"],changeDetection:0})}function Ta(u,c){1&u&&d._UZ(0,"porrtal-search")}function _g(u,c){if(1&u&&(d.TgZ(0,"as-split-area",14)(1,"div"),d._UZ(2,"porrtal-view-stack",11),d.qZA()()),2&u){const s=d.oxw().ngIf;d.Q6J("order",0)("size",310),d.xp6(2),d.Q6J("pane",s.panes.nav)}}function yg(u,c){if(1&u&&(d.TgZ(0,"as-split-area",8)(1,"div",15),d._UZ(2,"porrtal-view-stack",11),d.qZA()()),2&u){const s=d.oxw().ngIf;d.Q6J("order",1),d.xp6(2),d.Q6J("pane",s.panes.right)}}function Cg(u,c){if(1&u&&(d.TgZ(0,"as-split-area",8)(1,"div",16),d._UZ(2,"porrtal-view-stack",11),d.qZA()()),2&u){const s=d.oxw().ngIf;d.Q6J("order",1),d.xp6(2),d.Q6J("pane",s.panes.bottom)}}function Xu(u,c){if(1&u&&(d.TgZ(0,"div",1)(1,"div",2),d._UZ(2,"porrtal-banner",3)(3,"porrtal-logger-banner"),d.YNc(4,Ta,1,0,"porrtal-search",4),d.qZA(),d.TgZ(5,"div",5)(6,"as-split",6),d.YNc(7,_g,3,3,"as-split-area",7),d.TgZ(8,"as-split-area",8)(9,"as-split",6)(10,"as-split-area",9)(11,"as-split",6)(12,"as-split-area",9)(13,"div",10),d._UZ(14,"porrtal-view-stack",11),d.qZA()(),d.YNc(15,yg,3,2,"as-split-area",12),d.qZA()(),d.YNc(16,Cg,3,2,"as-split-area",12),d.qZA()()()(),d.TgZ(17,"div",13),d._uU(18,"footer"),d.qZA()()),2&u){const s=c.ngIf,p=d.oxw();d.xp6(2),d.Q6J("bannerData",p.bannerData),d.xp6(2),d.Q6J("ngIf",s.panes.search.viewStates.length>0),d.xp6(2),d.Q6J("direction","horizontal")("unit","pixel"),d.xp6(1),d.Q6J("ngIf",s.panes.nav.viewStates.length>0),d.xp6(1),d.Q6J("order",1),d.xp6(1),d.Q6J("direction","vertical")("unit","percent"),d.xp6(1),d.Q6J("size",70)("order",0),d.xp6(1),d.Q6J("direction","horizontal")("unit","percent"),d.xp6(1),d.Q6J("size",70)("order",0),d.xp6(2),d.Q6J("pane",s.panes.main),d.xp6(1),d.Q6J("ngIf",s.panes.right.viewStates.length>0),d.xp6(1),d.Q6J("ngIf",s.panes.bottom.viewStates.length)}}class Da{constructor(c){this.shellStateService=c,this.state$=c.select()}static#e=this.\u0275fac=function(s){return new(s||Da)(d.Y36(Rn.vv))};static#t=this.\u0275cmp=d.Xpm({type:Da,selectors:[["porrtal-shell-layout"]],inputs:{bannerData:"bannerData"},standalone:!0,features:[d.jDz],decls:2,vars:3,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"banner"],[3,"bannerData"],[4,"ngIf"],[1,"content"],[3,"direction","unit"],["class","nav",3,"order","size",4,"ngIf"],[3,"order"],[3,"size","order"],[1,"main"],[3,"pane"],[3,"order",4,"ngIf"],[1,"footer"],[1,"nav",3,"order","size"],[1,"right"],[1,"bottom"]],template:function(s,p){1&s&&(d.YNc(0,Xu,19,17,"div",0),d.ALo(1,"async")),2&s&&d.Q6J("ngIf",d.lcZ(1,1,p.state$))},dependencies:[L.ez,L.O5,L.Ov,wt,Mt,si,Bo,Oa,Ra,is],styles:['.container[_ngcontent-%COMP%]{background-color:gray;display:grid;position:absolute;inset:0;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;grid-template-areas:"banner" "content" "footer";gap:4px}.banner[_ngcontent-%COMP%]{grid-area:banner;position:relative;background-color:#fff;display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:15px}.content[_ngcontent-%COMP%]{grid-area:content;position:relative;background-color:#fff}.nav[_ngcontent-%COMP%], .main[_ngcontent-%COMP%], .right[_ngcontent-%COMP%], .bottom[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;background-color:#fff}.footer[_ngcontent-%COMP%]{grid-area:footer;position:relative;background-color:#fff}'],changeDetection:0})}function wg(u,c){if(1&u){const s=d.EpF();d.TgZ(0,"button",5),d.NdJ("click",function(f){const C=d.CHM(s).$implicit,x=d.oxw(2);return d.KtG(x.launchView(C,f.shiftKey))}),d.TgZ(1,"span",6)(2,"mat-icon",7),d._uU(3),d.qZA(),d._uU(4),d.qZA()()}if(2&u){const s=c.$implicit;d.xp6(3),d.Oqu(s.displayIcon),d.xp6(1),d.Oqu(s.displayText)}}function pn(u,c){if(1&u&&(d.YNc(0,wg,5,2,"button",4),d.ALo(1,"async")),2&u){const s=d.oxw();d.Q6J("ngForOf",d.lcZ(1,1,s.entityViews$))}}const bg=function(u,c){return{position:"fixed",top:u,left:c}},xg=["*"];class Bn{constructor(c,s){this.shellStateService=c,this.searchStateService=s,this.menuPosition={x:"0px",y:"0px"},this.createEntityViewObs()}set entityType(c){this._entityType=c,this.createEntityViewObs()}get entityType(){return this._entityType}set state(c){this._state=c,this.createEntityViewObs()}get state(){return this._state}containerClick(c){this.menuPosition={x:c?.clientX?`${c?.clientX}px`:"0px",y:c?.clientY?`${c?.clientY}px`:"0px"},this.menuTrigger.openMenu()}createEntityViewObs(){const c=this.entityType;this.entityViews$=this.shellStateService.select("views").pipe((0,sl.U)(p=>!p||p.length<1?[]:[...p.filter(f=>f.entityType&&c&&f.entityType===c).map(f=>({...f,displayText:this.state?(0,Rn.yB)(f.displayText,this.state).replaced:f.displayText}))]))}launchView(c,s){c&&c.viewId&&(this.shellStateService.dispatch({type:"launchView",viewId:c.viewId,state:this.state}),s||this.searchStateService.dispatch({type:"closeSearchDialog"}))}static#e=this.\u0275fac=function(s){return new(s||Bn)(d.Y36(Rn.vv),d.Y36(Rn.tx))};static#t=this.\u0275cmp=d.Xpm({type:Bn,selectors:[["porrtal-entity-menu"]],viewQuery:function(s,p){if(1&s&&d.Gf($r,7),2&s){let f;d.iGM(f=d.CRH())&&(p.menuTrigger=f.first)}},hostBindings:function(s,p){1&s&&d.NdJ("click",function(g){return p.containerClick(g)})},inputs:{entityType:"entityType",state:"state"},standalone:!0,features:[d.jDz],ngContentSelectors:xg,decls:6,vars:5,consts:[[3,"click"],[3,"ngStyle","matMenuTriggerFor"],["menu","matMenu"],["matMenuContent",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"menu-item-arrangement"],[1,"menu-item-icon"]],template:function(s,p){if(1&s&&(d.F$t(),d.ynx(0,0),d.NdJ("click",function(){return p.containerClick()}),d.Hsn(1),d.BQk(),d._UZ(2,"div",1),d.TgZ(3,"mat-menu",null,2),d.YNc(5,pn,2,3,"ng-template",3),d.qZA()),2&s){const f=d.MAs(4);d.xp6(2),d.Q6J("ngStyle",d.WLB(2,bg,p.menuPosition.y,p.menuPosition.x))("matMenuTriggerFor",f)}},dependencies:[L.ez,L.sg,L.PC,L.Ov,Gi,Kr,En,$r,Ts,Ni.Ps,Ni.Hw],styles:[".menu-item-icon[_ngcontent-%COMP%]{transform:scale(1.2);vertical-align:text-bottom}.menu-item-arrangement[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr;align-items:center}"],changeDetection:0})}M(14473)},14473:(Dt,Ne,M)=>{M.r(Ne),M.d(Ne,{LoggerMessagesComponent:()=>lp});var L=M(36895),d=M(30878),pe=M(70655),j=M(94650);function _e(o){return null==o||""===o?null:o}function N(o,t){return void 0===t&&(t=!1),null!=o&&(""!==o||t)}function z(o){return!N(o)}function ae(o){return null==o||0===o.length}function de(o){return null!=o&&"function"==typeof o.toString?o.toString():null}function oe(o){if(void 0!==o){if(null===o||""===o)return null;if("number"==typeof o)return isNaN(o)?void 0:o;var t=parseInt(o,10);return isNaN(t)?void 0:t}}function Ee(o){if(void 0!==o)return null!==o&&""!==o&&("boolean"==typeof o?o:/true/i.test(o))}function it(o){if(o instanceof Set||o instanceof Map){var t=[];return o.forEach(function(e){return t.push(e)}),t}return Object.values(o)}var yt=Object.freeze({__proto__:null,makeNull:_e,exists:N,missing:z,missingOrEmpty:ae,toStringOrNull:de,attrToNumber:oe,attrToBoolean:Ee,attrToString:function ye(o){if(null!=o&&""!==o)return o},referenceCompare:function We(o,t){return null==o&&null==t||!(null==o&&null!=t||null!=o&&null==t)&&o===t},jsonEquals:function He(o,t){return(o?JSON.stringify(o):null)===(t?JSON.stringify(t):null)},defaultComparator:function ct(o,t,e){void 0===e&&(e=!1);var i=null==o,n=null==t;if(o&&o.toNumber&&(o=o.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&n)return 0;if(i)return-1;if(n)return 1;function r(a,l){return a>l?1:a=0)){var r=e[n],a=Fi(r)&&r.constructor===Object;i[n]=a?ke(r):r}}),i}}function pt(o,t){return o[t]}function Gt(o,t,e){o[t]=e}function si(o,t,e,i){var n=pt(o,e);void 0!==n&&Gt(t,e,i?i(n):n)}function wt(o){var t={};return o.filter(function(e){return null!=e}).forEach(function(e){Object.keys(e).forEach(function(i){return t[i]=null})}),Object.keys(t)}function Nt(o){if(!o)return[];var t=Object;if("function"==typeof t.values)return t.values(o);var e=[];for(var i in o)o.hasOwnProperty(i)&&o.propertyIsEnumerable(i)&&e.push(o[i]);return e}function Ze(o,t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1),N(t)&&Ge(t,function(n,r){var a=o[n];a!==r&&(i&&null==a&&null!=r&&"object"==typeof r&&r.constructor===Object&&(o[n]=a={}),Fi(r)&&Fi(a)&&!Array.isArray(a)?Ze(a,r,e,i):(e||void 0!==r)&&(o[n]=r))})}function Ii(o,t,e){if(t&&o){if(!e)return o[t];for(var i=t.split("."),n=o,r=0;r1;)if(null==(n=n[i.shift()]))return e;return n[i[0]]??e},set:function ai(o,t,e){if(null!=o){for(var i=t.split("."),n=o;i.length>1;)if(null==(n=n[i.shift()]))return;n[i[0]]=e}},deepFreeze:function fn(o){return Object.freeze(o),it(o).forEach(function(t){(Fi(t)||"function"==typeof t)&&fn(t)}),o},getValueUsingField:Ii,removeAllReferences:Xi,isNonNullObject:Fi}),hi={};function Ve(o,t){hi[t]||(o(),hi[t]=!0)}function li(o){if(o.name)return o.name;var t=/function\s+([^\(]+)/.exec(o.toString());return t&&2===t.length?t[1].trim():null}function Pe(o){return!!(o&&o.constructor&&o.call&&o.apply)}function Tt(o){Re(o,400)}var Q=[],ne=!1;function Ce(o){Q.push(o),!ne&&(ne=!0,window.setTimeout(function(){var t=Q.slice();Q.length=0,ne=!1,t.forEach(function(e){return e()})},0))}function Re(o,t){void 0===t&&(t=0),o.length>0&&window.setTimeout(function(){return o.forEach(function(e){return e()})},t)}function Oe(o,t,e){var i;return void 0===e&&(e=!1),function(){for(var n=[],r=0;re;(o()||h)&&(t(),a=!0,null!=r&&(window.clearInterval(r),r=null),h&&i&&console.warn(i))};l(),a||(r=window.setInterval(l,10))}function Ae(o){o&&o()}var kt=Object.freeze({__proto__:null,doOnce:Ve,getFunctionName:li,isFunction:Pe,executeInAWhile:Tt,executeNextVMTurn:Ce,executeAfter:Re,debounce:Oe,throttle:at,waitUntil:Bt,compose:function mi(){for(var o=[],t=0;t> creating ag-Application Context"),this.createBeans();var i=this.getBeanInstances();this.wireBeans(i),this.logger.log(">> ag-Application Context ready - component is alive")}}return o.prototype.getBeanInstances=function(){return it(this.beanWrappers).map(function(t){return t.beanInstance})},o.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},o.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),N(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},o.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Ge(this.beanWrappers,function(i,n){var r;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var a=t.getBeansForParameters(r,n.bean.name),l=function fi(o,t){var e=[null].concat(t);return new(o.bind.apply(o,e))}(n.bean,a);n.beanInstance=l});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},o.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var i;return i=t.prototype.constructor?li(t.prototype.constructor):""+t,void console.error("Context item "+i+" is not a bean")}this.beanWrappers[e.beanName]={bean:t,beanInstance:null,beanName:e.beanName}},o.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(i){e.forEachMetaDataInHierarchy(i,function(n,r){var a=n.agClassAttributes;!a||a.forEach(function(l){var h=e.lookupBeanInstance(r,l.beanName,l.optional);i[l.attributeName]=h})})})},o.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(i){e.forEachMetaDataInHierarchy(i,function(n,r){Ge(n.autowireMethods,function(a,l){if("agConstructor"!==a){var h=e.getBeansForParameters(l,r);i[a].apply(i,h)}})})})},o.prototype.forEachMetaDataInHierarchy=function(t,e){for(var i=Object.getPrototypeOf(t);null!=i;){var n=i.constructor;n.hasOwnProperty("__agBeanMetaData")&&e(n.__agBeanMetaData,this.getBeanName(n)),i=Object.getPrototypeOf(i)}},o.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString();return e.substring(9,e.indexOf("("))},o.prototype.getBeansForParameters=function(t,e){var i=this,n=[];return t&&Ge(t,function(r,a){var l=i.lookupBeanInstance(e,a);n[Number(r)]=l}),n},o.prototype.lookupBeanInstance=function(t,e,i){if(void 0===i&&(i=!1),"context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var n=this.beanWrappers[e];return n?n.beanInstance:(i||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},o.prototype.callLifeCycleMethods=function(t,e){var i=this;t.forEach(function(n){return i.callLifeCycleMethodsOnBean(n,e)})},o.prototype.callLifeCycleMethodsOnBean=function(t,e,i){var n={};this.forEachMetaDataInHierarchy(t,function(a){var l=a[e];l&&l.forEach(function(h){h!=i&&(n[h]=!0)})}),Object.keys(n).forEach(function(a){return t[a]()})},o.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},o.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},o.prototype.destroyBean=function(t){!t||this.destroyBeans([t])},o.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach(function(i){e.callLifeCycleMethodsOnBean(i,"preDestroyMethods","destroy"),"function"==typeof i.destroy&&i.destroy()}),[]):[]},o}();function wi(o,t,e){var i=ht(o.constructor);i.preConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)}function ve(o,t,e){var i=ht(o.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)}function Ct(o,t,e){var i=ht(o.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)}function we(o){return function(t){ht(t).beanName=o}}function w(o){return function(t,e,i){Wn(t,o,!1,0,e,null)}}function rt(o){return function(t,e,i){Wn(t,o,!0,0,e,null)}}function Wn(o,t,e,i,n,r){if(null!==t)if("number"!=typeof r){var a=ht(o.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:n,beanName:t,optional:e})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function Et(o){return function(t,e,i){var r,n="function"==typeof t?t:t.constructor;if("number"==typeof i){var a=void 0;e?(r=ht(n),a=e):(r=ht(n),a="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[a]||(r.autowireMethods[a]={}),r.autowireMethods[a][i]=o}}}function ht(o){return o.hasOwnProperty("__agBeanMetaData")||(o.__agBeanMetaData={}),o.__agBeanMetaData}var bi=function(){return bi=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},In=function(o,t){return function(e,i){t(e,i,o)}},Xt=function(){function o(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return o.prototype.setBeans=function(t,e,i,n){if(void 0===n&&(n=null),this.frameworkOverrides=i,this.gridOptionsWrapper=e,n){var r=e.useAsyncEvents();this.addGlobalListener(n,r)}},o.prototype.getListeners=function(t,e,i){var n=e?this.allAsyncListeners:this.allSyncListeners,r=n.get(t);return!r&&i&&n.set(t,r=new Set),r},o.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},o.prototype.addEventListener=function(t,e,i){void 0===i&&(i=!1),this.getListeners(t,i,!0).add(e)},o.prototype.removeEventListener=function(t,e,i){void 0===i&&(i=!1);var n=this.getListeners(t,i,!1);n&&(n.delete(e),0===n.size)&&(i?this.allAsyncListeners:this.allSyncListeners).delete(t)},o.prototype.addGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},o.prototype.removeGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},o.prototype.dispatchEvent=function(t){var e=t;this.gridOptionsWrapper&&(e=bi(bi({},t),{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},o.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},o.prototype.dispatchToListeners=function(t,e){var i=this,n=t.type,a=this.getListeners(n,e,!1);a&&a.forEach(function(m){e?i.dispatchAsync(function(){return m(t)}):m(t)}),(e?this.globalAsyncListeners:this.globalSyncListeners).forEach(function(h){e?i.dispatchAsync(function(){return i.frameworkOverrides.dispatchEvent(n,function(){return h(n,t)},!0)}):i.frameworkOverrides.dispatchEvent(n,function(){return h(n,t)},!0)})},o.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},o.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach(function(e){return e()})},Un([In(0,Et("loggerFactory")),In(1,Et("gridOptionsWrapper")),In(2,Et("frameworkOverrides")),In(3,Et("globalEventListener"))],o.prototype,"setBeans",null),Un([we("eventService")],o)}(),G=function(){function o(){}return o.ROW_BUFFER_SIZE=10,o.LAYOUT_INTERVAL=500,o.BATCH_WAIT_MILLIS=50,o.EXPORT_TYPE_DRAG_COPY="dragCopy",o.EXPORT_TYPE_CLIPBOARD="clipboard",o.EXPORT_TYPE_EXCEL="excel",o.EXPORT_TYPE_CSV="csv",o.ROW_MODEL_TYPE_INFINITE="infinite",o.ROW_MODEL_TYPE_VIEWPORT="viewport",o.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",o.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",o.ALWAYS="always",o.ONLY_WHEN_GROUPING="onlyWhenGrouping",o.PINNED_TOP="top",o.PINNED_BOTTOM="bottom",o.DOM_LAYOUT_NORMAL="normal",o.DOM_LAYOUT_PRINT="print",o.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",o.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",o.SOURCE_PASTE="paste",o.PINNED_RIGHT="right",o.PINNED_LEFT="left",o.SORT_ASC="asc",o.SORT_DESC="desc",o.INPUT_SELECTOR="input, select, button, textarea",o.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",o.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",o}(),Ie=(()=>{return(o=Ie||(Ie={})).CommunityCoreModule="@ag-grid-community/core",o.CommunityAllModules="@ag-grid-community/all",o.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",o.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",o.CsvExportModule="@ag-grid-community/csv-export",o.EnterpriseCoreModule="@ag-grid-enterprise/core",o.EnterpriseAllModules="@ag-grid-enterprise/all",o.RowGroupingModule="@ag-grid-enterprise/row-grouping",o.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",o.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",o.MenuModule="@ag-grid-enterprise/menu",o.SetFilterModule="@ag-grid-enterprise/set-filter",o.MultiFilterModule="@ag-grid-enterprise/multi-filter",o.StatusBarModule="@ag-grid-enterprise/status-bar",o.SideBarModule="@ag-grid-enterprise/side-bar",o.RangeSelectionModule="@ag-grid-enterprise/range-selection",o.MasterDetailModule="@ag-grid-enterprise/master-detail",o.RichSelectModule="@ag-grid-enterprise/rich-select",o.GridChartsModule="@ag-grid-enterprise/charts",o.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",o.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",o.ExcelExportModule="@ag-grid-enterprise/excel-export",o.ClipboardModule="@ag-grid-enterprise/clipboard",o.SparklinesModule="@ag-grid-enterprise/sparklines",o.AngularModule="@ag-grid-community/angular",o.ReactModule="@ag-grid-community/react",o.VueModule="@ag-grid-community/vue",o.PolymerModule="@ag-grid-community/polymer",Ie;var o})(),$=function(){function o(){}return o.register=function(t,e){void 0===e&&(e=!0),o.modulesMap[t.moduleName]=t,void 0===o.moduleBased?o.moduleBased=e:o.moduleBased!==e&&Ve(function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")},"ModulePackageCheck")},o.registerModules=function(t,e){void 0===e&&(e=!0),t&&t.forEach(function(i){return o.register(i,e)})},o.assertRegistered=function(t,e){return!!this.isRegistered(t)||(n=o.moduleBased?"AG Grid: unable to use "+e+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+e+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",Ve(function(){console.warn(n)},e+t),!1);var n},o.isRegistered=function(t){return!!o.modulesMap[t]},o.getRegisteredModules=function(){return it(o.modulesMap)},o.isPackageBased=function(){return!o.moduleBased},o.modulesMap={},o}(),k=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},W=0,Y=function(){function o(t,e,i,n){this.instanceId=W++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Xt,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=i,this.primary=n,this.setState(t)}return o.prototype.getInstanceId=function(){return this.instanceId},o.prototype.setState=function(t){void 0!==t.sort?(t.sort===G.SORT_ASC||t.sort===G.SORT_DESC)&&(this.sort=t.sort):(t.initialSort===G.SORT_ASC||t.initialSort===G.SORT_DESC)&&(this.sort=t.initialSort);var e=oe(t.sortIndex),i=oe(t.initialSortIndex);void 0!==e?null!==e&&(this.sortIndex=e):null!==i&&(this.sortIndex=i);var n=Ee(t.hide),r=Ee(t.initialHide);this.visible=void 0!==n?!n:!r,this.setPinned(void 0!==t.pinned?t.pinned:t.initialPinned);var a=oe(t.flex),l=oe(t.initialFlex);void 0!==a?this.flex=a:void 0!==l&&(this.flex=l)},o.prototype.setColDef=function(t,e){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_COL_DEF_CHANGED,"api"))},o.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},o.prototype.setParent=function(t){this.parent=t},o.prototype.getParent=function(){return this.parent},o.prototype.setOriginalParent=function(t){this.originalParent=t},o.prototype.getOriginalParent=function(){return this.originalParent},o.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},o.prototype.initDotNotation=function(){var t=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=N(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=N(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},o.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},o.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},o.prototype.isEmptyGroup=function(){return!1},o.prototype.isRowGroupDisplayed=function(t){return!(z(this.colDef)||z(this.colDef.showRowGroup)||!0!==this.colDef.showRowGroup&&this.colDef.showRowGroup!==t)},o.prototype.isPrimary=function(){return this.primary},o.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},o.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},o.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},o.prototype.validate=function(){var t=this.colDef;function e(a,l,h){Ve(function(){h?console.warn(a,h):Ve(function(){return console.warn(a)},l)},l)}this.gridOptionsWrapper.isRowModelDefault()&&!$.isRegistered(Ie.RowGroupingModule)&&["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach(function(a){N(t[a])&&($.isPackageBased()?e("AG Grid: "+a+" is only valid in ag-grid-enterprise, your column definition should not have "+a,"ColumnRowGroupingMissing"+a):e("AG Grid: "+a+" is only valid with AG Grid Enterprise Module "+Ie.RowGroupingModule+" - your column definition should not have "+a,"ColumnRowGroupingMissing"+a))}),$.isRegistered(Ie.RichSelectModule)||("agRichSelect"===this.colDef.cellEditor||"agRichSelectCellEditor"===this.colDef.cellEditor)&&($.isPackageBased()?e("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):e("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+Ie.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach(function(a){N(t[a])&&e("AG Grid: "+a+" is not possible when doing tree data, your column definition should not have "+a,"TreeDataCannotRowGroup")}),N(this.colDef.width)&&"number"!=typeof this.colDef.width&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),t.pinnedRowCellRenderer&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererParams&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererFramework&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowValueGetter&&e("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},o.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},o.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},o.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},o.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var e=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(e)}return!1},o.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(t,this.colDef.editable)},o.prototype.isSuppressFillHandle=function(){return!!Ee(this.colDef.suppressFillHandle)},o.prototype.isAutoHeight=function(){return!!Ee(this.colDef.autoHeight)},o.prototype.isAutoHeaderHeight=function(){return!!Ee(this.colDef.autoHeaderHeight)},o.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},o.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},o.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},o.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},o.prototype.isResizable=function(){return!!Ee(this.colDef.resizable)},o.prototype.isColumnFunc=function(t,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createColumnFunctionCallbackParams(t))},o.prototype.setMoving=function(t,e){void 0===e&&(e="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_MOVING_CHANGED,e))},o.prototype.createColumnEvent=function(t,e){return{type:t,column:this,columns:[this],source:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},o.prototype.isMoving=function(){return this.moving},o.prototype.getSort=function(){return this.sort},o.prototype.setSort=function(t,e){void 0===e&&(e="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_SORT_CHANGED,e)))},o.prototype.setMenuVisible=function(t,e){void 0===e&&(e="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_MENU_VISIBLE_CHANGED,e)))},o.prototype.isMenuVisible=function(){return this.menuVisible},o.prototype.isSortAscending=function(){return this.sort===G.SORT_ASC},o.prototype.isSortDescending=function(){return this.sort===G.SORT_DESC},o.prototype.isSortNone=function(){return z(this.sort)},o.prototype.isSorting=function(){return N(this.sort)},o.prototype.getSortIndex=function(){return this.sortIndex},o.prototype.setSortIndex=function(t){this.sortIndex=t},o.prototype.setAggFunc=function(t){this.aggFunc=t},o.prototype.getAggFunc=function(){return this.aggFunc},o.prototype.getLeft=function(){return this.left},o.prototype.getOldLeft=function(){return this.oldLeft},o.prototype.getRight=function(){return this.left+this.actualWidth},o.prototype.setLeft=function(t,e){void 0===e&&(e="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_LEFT_CHANGED,e)))},o.prototype.isFilterActive=function(){return this.filterActive},o.prototype.setFilterActive=function(t,e,i){void 0===e&&(e="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_FILTER_ACTIVE_CHANGED,e)));var n=this.createColumnEvent(o.EVENT_FILTER_CHANGED,e);i&&Ze(n,i),this.eventService.dispatchEvent(n)},o.prototype.setPinned=function(t){this.pinned=!0===t||t===G.PINNED_LEFT?G.PINNED_LEFT:t===G.PINNED_RIGHT?G.PINNED_RIGHT:null},o.prototype.setFirstRightPinned=function(t,e){void 0===e&&(e="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_FIRST_RIGHT_PINNED_CHANGED,e)))},o.prototype.setLastLeftPinned=function(t,e){void 0===e&&(e="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_LAST_LEFT_PINNED_CHANGED,e)))},o.prototype.isFirstRightPinned=function(){return this.firstRightPinned},o.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},o.prototype.isPinned=function(){return this.pinned===G.PINNED_LEFT||this.pinned===G.PINNED_RIGHT},o.prototype.isPinnedLeft=function(){return this.pinned===G.PINNED_LEFT},o.prototype.isPinnedRight=function(){return this.pinned===G.PINNED_RIGHT},o.prototype.getPinned=function(){return this.pinned},o.prototype.setVisible=function(t,e){void 0===e&&(e="api");var i=!0===t;this.visible!==i&&(this.visible=i,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_VISIBLE_CHANGED,e)))},o.prototype.isVisible=function(){return this.visible},o.prototype.getColDef=function(){return this.colDef},o.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},o.prototype.getColId=function(){return this.colId},o.prototype.getId=function(){return this.getColId()},o.prototype.getUniqueId=function(){return this.getId()},o.prototype.getDefinition=function(){return this.colDef},o.prototype.getActualWidth=function(){return this.actualWidth},o.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},o.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},o.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},o.prototype.getColSpan=function(t){if(z(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),i=this.colDef.colSpan(e);return Math.max(i,1)},o.prototype.getRowSpan=function(t){if(z(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),i=this.colDef.rowSpan(e);return Math.max(i,1)},o.prototype.setActualWidth=function(t,e,i){void 0===e&&(e="api"),void 0===i&&(i=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==e&&"gridInitializing"!==e&&(this.flex=null),i||this.fireColumnWidthChangedEvent(e))},o.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_WIDTH_CHANGED,t))},o.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},o.prototype.getMinWidth=function(){return this.minWidth},o.prototype.getMaxWidth=function(){return this.maxWidth},o.prototype.getFlex=function(){return this.flex||0},o.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t)},o.prototype.setMinimum=function(t){void 0===t&&(t="api"),N(this.minWidth)&&this.setActualWidth(this.minWidth,t)},o.prototype.setRowGroupActive=function(t,e){void 0===e&&(e="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_ROW_GROUP_CHANGED,e)))},o.prototype.isRowGroupActive=function(){return this.rowGroupActive},o.prototype.setPivotActive=function(t,e){void 0===e&&(e="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_PIVOT_CHANGED,e)))},o.prototype.isPivotActive=function(){return this.pivotActive},o.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},o.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},o.prototype.setValueActive=function(t,e){void 0===e&&(e="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(o.EVENT_VALUE_CHANGED,e)))},o.prototype.isValueActive=function(){return this.aggregationActive},o.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},o.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},o.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},o.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return null==e&&(e=t),e},o.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},o.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},o.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},o.EVENT_MOVING_CHANGED="movingChanged",o.EVENT_LEFT_CHANGED="leftChanged",o.EVENT_WIDTH_CHANGED="widthChanged",o.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",o.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",o.EVENT_VISIBLE_CHANGED="visibleChanged",o.EVENT_FILTER_CHANGED="filterChanged",o.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",o.EVENT_SORT_CHANGED="sortChanged",o.EVENT_COL_DEF_CHANGED="colDefChanged",o.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",o.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",o.EVENT_PIVOT_CHANGED="columnPivotChanged",o.EVENT_VALUE_CHANGED="columnValueChanged",k([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),k([w("columnUtils")],o.prototype,"columnUtils",void 0),k([ve],o.prototype,"initialise",null),o}();function Ye(){for(var o=[],t=0;t=0&&o.splice(e,1)}function ot(o,t){t.forEach(function(e){return De(o,e)})}function lt(o,t,e){o.splice(e,0,t)}function At(o,t,e){ot(o,t),t.slice().reverse().forEach(function(i){return lt(o,i,e)})}function St(o,t){return o.indexOf(t)>-1}function K(o){return[].concat.apply([],o)}function F(o,t){null==t||null==o||t.forEach(function(e){return o.push(e)})}var re=Object.freeze({__proto__:null,firstExistingValue:Ye,existsAndNotEmpty:function Wt(o){return null!=o&&o.length>0},last:Be,areEqual:V,compareArrays:function D(o,t){return V(o,t)},shallowCompare:function B(o,t){return V(o,t)},sortNumerically:ue,removeRepeatsFromArray:function he(o,t){if(o)for(var e=o.length-2;e>=0;e--)o[e]===t&&o[e+1]===t&&o.splice(e+1,1)},removeFromArray:De,removeAllFromArray:ot,insertIntoArray:lt,insertArrayIntoArray:function Ue(o,t,e){if(null!=o&&null!=t)for(var i=t.length-1;i>=0;i--)lt(o,t[i],e)},moveInArray:At,includes:St,flatten:K,pushAll:F,toStrings:function T(o){return o.map(de)},forEachReverse:function U(o,t){if(null!=o)for(var e=o.length-1;e>=0;e--)t(o[e],e)}}),O=function(){function o(t,e,i,n){this.displayedChildren=[],this.localEventService=new Xt,this.groupId=e,this.instanceId=i,this.providedColumnGroup=t,this.pinned=n}return o.createUniqueId=function(t,e){return t+"_"+e},o.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},o.prototype.getParent=function(){return this.parent},o.prototype.setParent=function(t){this.parent=t},o.prototype.getUniqueId=function(){return o.createUniqueId(this.groupId,this.instanceId)},o.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},o.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!(!t||0===t.length)&&t.every(function(e){return e.isMoving()})},o.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(n){n instanceof o&&n.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var e=Be(this.displayedChildren).getLeft();this.setLeft(e)}else{var i=this.displayedChildren[0].getLeft();this.setLeft(i)}else this.setLeft(null)},o.prototype.getLeft=function(){return this.left},o.prototype.getOldLeft=function(){return this.oldLeft},o.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_LEFT_CHANGED)))},o.prototype.getPinned=function(){return this.pinned},o.prototype.createAgEvent=function(t){return{type:t}},o.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},o.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},o.prototype.getGroupId=function(){return this.groupId},o.prototype.getInstanceId=function(){return this.instanceId},o.prototype.isChildInThisGroupDeepSearch=function(t){var e=!1;return this.children.forEach(function(i){t===i&&(e=!0),i instanceof o&&i.isChildInThisGroupDeepSearch(t)&&(e=!0)}),e},o.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){t+=e.getActualWidth()}),t},o.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(t=!0)}),t},o.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach(function(e){t+=e.getMinWidth()||0}),t},o.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},o.prototype.getDisplayedChildren=function(){return this.displayedChildren},o.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},o.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},o.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},o.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},o.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},o.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},o.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},o.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},o.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(e){e instanceof Y?t.push(e):e instanceof o&&e.addDisplayedLeafColumns(t)})},o.prototype.addLeafColumns=function(t){this.children.forEach(function(e){e instanceof Y?t.push(e):e instanceof o&&e.addLeafColumns(t)})},o.prototype.getChildren=function(){return this.children},o.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},o.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},o.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},o.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},o.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var e=this;null!=e&&e.isPadding();)e=e.getParent();if(!e||!e.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach(function(n){if(!(n instanceof o)||n.displayedChildren&&n.displayedChildren.length)switch(n.getColumnGroupShow()){case o.HEADER_GROUP_SHOW_OPEN:e.providedColumnGroup.isExpanded()&&t.displayedChildren.push(n);break;case o.HEADER_GROUP_SHOW_CLOSED:e.providedColumnGroup.isExpanded()||t.displayedChildren.push(n);break;default:t.displayedChildren.push(n)}}),this.localEventService.dispatchEvent(this.createAgEvent(o.EVENT_DISPLAYED_CHILDREN_CHANGED))},o.HEADER_GROUP_SHOW_OPEN="open",o.HEADER_GROUP_SHOW_CLOSED="closed",o.EVENT_LEFT_CHANGED="leftChanged",o.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),o}(),P=function(){function o(t,e,i,n){this.localEventService=new Xt,this.expandable=!1,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=i,this.level=n}return o.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.children=void 0,this.expandable=void 0},o.prototype.setOriginalParent=function(t){this.originalParent=t},o.prototype.getOriginalParent=function(){return this.originalParent},o.prototype.getLevel=function(){return this.level},o.prototype.isVisible=function(){return!!this.children&&this.children.some(function(t){return t.isVisible()})},o.prototype.isPadding=function(){return this.padding},o.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t,this.localEventService.dispatchEvent({type:o.EVENT_EXPANDED_CHANGED})},o.prototype.isExpandable=function(){return this.expandable},o.prototype.isExpanded=function(){return this.expanded},o.prototype.getGroupId=function(){return this.groupId},o.prototype.getId=function(){return this.getGroupId()},o.prototype.setChildren=function(t){this.children=t},o.prototype.getChildren=function(){return this.children},o.prototype.getColGroupDef=function(){return this.colGroupDef},o.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},o.prototype.addLeafColumns=function(t){!this.children||this.children.forEach(function(e){e instanceof Y?t.push(e):e instanceof o&&e.addLeafColumns(t)})},o.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},o.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.getLeafColumns().forEach(function(e){return e.addEventListener(Y.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))})},o.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,e=!1,i=!1,n=this.findChildrenRemovingPadding(),r=0,a=n.length;r=0}function Ji(o){for(var t=[],e=o.target;e;)t.push(e),e=e.parentElement;return t}function La(o){var t=o;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:Ji(o)}function Rc(o,t,e,i){var n=St(Me,e);o&&o.addEventListener&&o.addEventListener(t,e,i,n?{passive:!0}:void 0)}var pp=Object.freeze({__proto__:null,stopPropagationForAgGrid:Rt,isStopPropagationForAgGrid:jt,isEventSupported:vt,getCtrlForEvent:dt,addChangeListener:function Ke(o,t){o.addEventListener("changed",t),o.addEventListener("paste",t),o.addEventListener("input",t)},isElementInEventPath:ji,createEventPath:Ji,addAgGridEventPath:function up(o){o.__agGridEventPath=La(o)},getEventPath:La,addSafePassiveEventListener:Rc}),Ir=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},ge=function(){function o(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!t.destroyed}}return o.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},o.prototype.getContext=function(){return this.context},o.prototype.destroy=function(){this.destroyFunctions.forEach(function(t){return t()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:o.EVENT_DESTROYED})},o.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new Xt),this.localEventService.addEventListener(t,e)},o.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},o.prototype.dispatchEventAsync=function(t){var e=this;window.setTimeout(function(){return e.dispatchEvent(t)},0)},o.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},o.prototype.addManagedListener=function(t,e,i){var n=this;if(!this.destroyed){t instanceof HTMLElement?Rc(this.getFrameworkOverrides(),t,e,i):t.addEventListener(e,i);var r=function(){return t.removeEventListener(e,i),n.destroyFunctions=n.destroyFunctions.filter(function(a){return a!==r}),null};return this.destroyFunctions.push(r),r}},o.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},o.prototype.createManagedBean=function(t,e){var i=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),i},o.prototype.createBean=function(t,e,i){return(e||this.getContext()).createBean(t,i)},o.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},o.prototype.destroyBeans=function(t,e){var i=this;return t&&t.forEach(function(n){return i.destroyBean(n,e)}),[]},o.EVENT_DESTROYED="destroyed",Ir([w("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),Ir([w("context")],o.prototype,"context",void 0),Ir([w("eventService")],o.prototype,"eventService",void 0),Ir([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),Ir([Ct],o.prototype,"destroy",null),o}(),hp=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),cs=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Fr=function(o,t){return function(e,i){t(e,i,o)}},fp=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return hp(t,o),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,i,n){var r=new gt,a=this.extractExistingTreeData(n),l=a.existingCols,h=a.existingGroups;r.addExistingKeys(a.existingColKeys);var v=this.recursivelyCreateColumns(e,0,i,l,r,h),_=this.findMaxDept(v,0);this.logger.log("Number of levels for grouped columns is "+_);var y=this.balanceColumnTree(v,0,_,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,y,function(R,I){R instanceof P&&R.setupExpandable(),R.setOriginalParent(I)}),{columnTree:y,treeDept:_}},t.prototype.extractExistingTreeData=function(e){var i=[],n=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(a){if(a instanceof P)n.push(a);else{var h=a;r.push(h.getId()),i.push(h)}}),{existingCols:i,existingGroups:n,existingColKeys:r}},t.prototype.createForAutoGroups=function(e,i){var n=this;return e.map(function(r){return n.createAutoGroupTreeItem(i,r)})},t.prototype.createAutoGroupTreeItem=function(e,i){for(var r=i,a=this.findDepth(e)-1;a>=0;a--){var l=new P(null,"FAKE_PATH_"+i.getId()+"}_"+a,!0,a);this.context.createBean(l),l.setChildren([r]),r.setOriginalParent(l),r=l}return r},t.prototype.findDepth=function(e){for(var i=0,n=e;n&&n[0]&&n[0]instanceof P;)i++,n=n[0].getChildren();return i},t.prototype.balanceColumnTree=function(e,i,n,r){for(var a=[],l=0;l=i;b--){var R=r.getUniqueKey(null,null),I=this.createMergedColGroupDef(null),H=new P(I,R,!0,i);this.context.createBean(H),y&&y.setChildren([H]),y=H,_||(_=y)}if(_&&y){if(a.push(_),e.some(function(X){return X instanceof P})){y.setChildren([h]);continue}y.setChildren(e);break}a.push(h)}}return a},t.prototype.findMaxDept=function(e,i){for(var n=i,r=0;r"']/g,Lr={"&":"&","<":"<",">":">",'"':""","'":"'"};function ka(o){return null==o?null:o.replace(/([A-Z])/g,function(t){return"-"+t[0].toLowerCase()})}function mp(o){return null==o?null:o.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}function Tc(o){return o[0].toUpperCase()+o.substr(1).toLowerCase()}function en(o,t){if(null==o)return null;var e=o.toString().toString();return t?e:e.replace(Oc,function(i){return Lr[i]})}function ds(o){return o&&null!=o?o.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map(function(i){return i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")}).join(" "):null}var Pt=Object.freeze({__proto__:null,utf8_encode:function Ga(o){var t=String.fromCharCode;function n(_,y){return t(_>>y&63|128)}function r(_){if(_>=0&&_<=31&&10!==_)return"_x"+_.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&_))return t(_);var R="";return 0==(4294965248&_)?R=t(_>>6&31|192):0==(4294901760&_)?(function i(_){if(_>=55296&&_<=57343)throw Error("Lone surrogate U+"+_.toString(16).toUpperCase()+" is not a scalar value")}(_),R=t(_>>12&15|224),R+=n(_,6)):0==(4292870144&_)&&(R=t(_>>18&7|240),R+=n(_,12),R+=n(_,6)),R+t(63&_|128)}for(var a=function e(_){var y=[];if(!_)return[];for(var I,H,b=_.length,R=0;R=55296&&I<=56319&&R0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},_p=function(){function o(){}return o.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],o.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],o.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],o.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],o.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","showDisabledCheckboxes","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle","wrapHeaderText","autoHeaderHeight"],o.ALL_PROPERTIES=function(){for(var o=[],t=0;t0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},yp=function(){for(var o=[],t=0;t0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},Mc=function(){for(var o=[],t=0;t1)&&!window.MSStream),Ha}function ms(){return!zn()||Ba().version>=15}function gs(o){if(!o)return null;var t=o.tabIndex,e=o.getAttribute("tabIndex");return-1!==t||null!==e&&(""!==e||Nc())?t.toString():null}function wp(){if(!document.body)return-1;var o=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var i=2*o;if(e.style.height=i+"px",i>t||e.clientHeight!==i)break;o=i}return document.body.removeChild(e),o}function bp(){return null==Lc&&Gc(),Lc}function Gc(){var o=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",o.appendChild(t);var e=t.offsetWidth-t.clientWidth;0===e&&0===t.clientWidth&&(e=null),t.parentNode&&t.parentNode.removeChild(t),null!=e&&(Lc=e,Va=0===e)}function Ua(){return null==Va&&Gc(),Va}function Ep(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function ja(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var kc=Object.freeze({__proto__:null,getBrowserInfo:Ba,isBrowserEdge:Gr,isBrowserSafari:zn,isBrowserChrome:fs,isBrowserFirefox:Nc,isMacOsUserAgent:Wa,isIOSUserAgent:Yn,browserSupportsPreventScroll:ms,getTabIndex:gs,getMaxDivHeight:wp,getScrollbarWidth:bp,isInvisibleScrollbar:Ua,hasOverflowScrolling:function xp(){var o,t,e=["webkit","moz","o","ms"],i=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(i),i.setAttribute("style",e.map(function(v){return"-"+v+"-overflow-scrolling: touch"}).concat("overflow-scrolling: touch").join(";"));var l=window.getComputedStyle(i);if("touch"===l.overflowScrolling&&(r=!0),!r)try{for(var h=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),m=h.next();!m.done;m=h.next())if("touch"===l[m.value+"OverflowScrolling"]){r=!0;break}}catch(v){o={error:v}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(o)throw o.error}}return i.parentNode&&i.parentNode.removeChild(i),r},getBodyWidth:Ep,getBodyHeight:ja});function Hc(o,t,e){var i={},n=o.filter(function(r){return!t.some(function(a){return a===r})});return n.length>0&&n.forEach(function(r){return i[r]=Vc(r,e)}),i}function Vc(o,t,e,i){var n=i?Sp:Bc,r=t.map(function(a){return{value:a,relevance:n(o.toLowerCase(),a.toLocaleLowerCase())}});return r.sort(function(a,l){return l.relevance-a.relevance}),e&&(r=r.filter(function(a){return 0!==a.relevance})),r.map(function(a){return a.value})}function za(o){var i,n,r,t=o.toLowerCase(),e=new Array(t.length-1);for(i=n=0,r=e.length;n<=r;i=n+=1)e[i]=t.slice(i,i+2);return e}function Bc(o,t){if(0===o.length&&0===t.length)return 0;var a,l,e=za(o),i=za(t),n=e.length+i.length,r=0;for(a=0,l=e.length;a0?2*r/n:0}function Sp(o,t){for(var e=o.replace(/\s/g,""),i=t.replace(/\s/g,""),n=0,r=0,a=0;a>>=8;return e},formatNumberTwoDecimalPlacesAndCommas:function kg(o,t,e){return"number"!=typeof o?"":jc(Math.round(100*o)/100,t,e)},formatNumberCommas:jc,sum:function Hg(o){return null==o?null:o.reduce(function(t,e){return t+e},0)}}),Ya=function(){return Ya=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Op=function(o,t){return function(e,i){t(e,i,o)}},Bg=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},zc=function(){for(var o=[],t=0;t0?e:t}var ys,be=function(){function o(){this.propertyEventService=new Xt,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var t;return t=o,o.prototype.agWire=function(e,i){this.gridOptions.api=e,this.gridOptions.columnApi=i,this.checkForDeprecated(),this.checkForViolations()},o.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},o.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=Ac.parse(this.gridOptions.sideBar));var i=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),i),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!"),this.isRowModelServerSide()){var n=function(a){return"AG Grid: '"+a+"' is not supported on the Server-Side Row Model"};N(this.gridOptions.groupDefaultExpanded)&&console.warn(n("groupDefaultExpanded")),N(this.gridOptions.groupDefaultExpanded)&&console.warn(n("groupIncludeFooter")),N(this.gridOptions.groupDefaultExpanded)&&console.warn(n("groupIncludeTotalFooter"))}ee(this.gridOptions.enableRangeSelection)?$.assertRegistered(Ie.RangeSelectionModule,"enableRangeSelection"):(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.isGroupRowsSticky()&&(this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one."),this.isMasterDetail()&&console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one."),this.isPagination()&&console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one."));var r=function(a){e.gridOptions.icons&&e.gridOptions.icons[a]&&console.warn("gridOptions.icons."+a+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};r("radioButtonOff"),r("radioButtonOn"),r("checkboxChecked"),r("checkboxUnchecked"),r("checkboxIndeterminate"),this.getScrollbarWidth()},o.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach(function(i){var n=Object.getOwnPropertyNames(i),r=zc(_p.ALL_PROPERTIES,_p.FRAMEWORK_PROPERTIES);e.checkProperties(n,r,r,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")})},o.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),i=zc(jn.ALL_PROPERTIES,jn.FRAMEWORK_PROPERTIES,it(S).map(function(r){return Ln.getCallbackForEvent(r)})),n=zc(i,["api","columnApi"]);this.checkProperties(e,n,i,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},o.prototype.checkProperties=function(e,i,n,r,a){var l=Hc(e,i,n);Ge(l,function(h,m){console.warn("ag-grid: invalid "+r+" property '"+h+"' did you mean any of these: "+m.slice(0,8).join(", "))}),Object.keys(l).length>0&&console.warn("ag-grid: to see all the valid "+r+" properties please check: "+a)},o.prototype.mergeGridCommonParams=function(e){var i=this;return e?function(r){var a=Ya(Ya({},r),{api:i.getApi(),columnApi:i.getColumnApi(),context:i.getContext()});return e(a)}:e},o.prototype.getDomDataKey=function(){return this.domDataKey},o.prototype.getDomData=function(e,i){var n=e[this.getDomDataKey()];return n?n[i]:void 0},o.prototype.setDomData=function(e,i,n){var r=this.getDomDataKey(),a=e[r];z(a)&&(e[r]=a={}),a[i]=n},o.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},o.prototype.isSuppressRowDeselection=function(){return ee(this.gridOptions.suppressRowDeselection)},o.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},o.prototype.isRowMultiSelectWithClick=function(){return ee(this.gridOptions.rowMultiSelectWithClick)},o.prototype.getContext=function(){return this.gridOptions.context},o.prototype.isPivotMode=function(){return ee(this.gridOptions.pivotMode)},o.prototype.isSuppressExpandablePivotGroups=function(){return ee(this.gridOptions.suppressExpandablePivotGroups)},o.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},o.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},o.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===G.ROW_MODEL_TYPE_INFINITE},o.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===G.ROW_MODEL_TYPE_VIEWPORT},o.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===G.ROW_MODEL_TYPE_SERVER_SIDE},o.prototype.isRowModelDefault=function(){return z(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===G.ROW_MODEL_TYPE_CLIENT_SIDE},o.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},o.prototype.isSuppressFocusAfterRefresh=function(){return ee(this.gridOptions.suppressFocusAfterRefresh)},o.prototype.isSuppressBrowserResizeObserver=function(){return ee(this.gridOptions.suppressBrowserResizeObserver)},o.prototype.isSuppressMaintainUnsortedOrder=function(){return ee(this.gridOptions.suppressMaintainUnsortedOrder)},o.prototype.isSuppressClearOnFillReduction=function(){return ee(this.gridOptions.suppressClearOnFillReduction)},o.prototype.isShowToolPanel=function(){return ee(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},o.prototype.getSideBar=function(){return this.gridOptions.sideBar},o.prototype.isSuppressTouch=function(){return ee(this.gridOptions.suppressTouch)},o.prototype.isMaintainColumnOrder=function(){return ee(this.gridOptions.maintainColumnOrder)},o.prototype.isSuppressRowTransform=function(){return ee(this.gridOptions.suppressRowTransform)},o.prototype.isSuppressColumnStateEvents=function(){return ee(this.gridOptions.suppressColumnStateEvents)},o.prototype.isAllowDragFromColumnsToolPanel=function(){return ee(this.gridOptions.allowDragFromColumnsToolPanel)},o.prototype.useAsyncEvents=function(){return!ee(this.gridOptions.suppressAsyncEvents)},o.prototype.isEnableCellChangeFlash=function(){return ee(this.gridOptions.enableCellChangeFlash)},o.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},o.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},o.prototype.isGroupSelectsChildren=function(){return ee(this.gridOptions.groupSelectsChildren)},o.prototype.isSuppressRowHoverHighlight=function(){return ee(this.gridOptions.suppressRowHoverHighlight)},o.prototype.isColumnHoverHighlight=function(){return ee(this.gridOptions.columnHoverHighlight)},o.prototype.isGroupSelectsFiltered=function(){return ee(this.gridOptions.groupSelectsFiltered)},o.prototype.isGroupHideOpenParents=function(){return ee(this.gridOptions.groupHideOpenParents)},o.prototype.isGroupMaintainOrder=function(){return ee(this.gridOptions.groupMaintainOrder)},o.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},o.prototype.isColumnsSortingCoupledToGroup=function(){var e,i=this.getAutoGroupColumnDef();return this.isRowModelDefault()&&!(null!==(e=i)&&void 0!==e&&e.comparator)},o.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):ee(this.gridOptions.groupHideOpenParents)},o.prototype.isGroupUseEntireRow=function(e){return!e&&!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType)},o.prototype.isRowGroupPanelSuppressSort=function(){return ee(this.gridOptions.rowGroupPanelSuppressSort)},o.prototype.isGroupRowsSticky=function(){return ee(this.gridOptions.groupRowsSticky)},o.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},o.prototype.isGroupRemoveSingleChildren=function(){return ee(this.gridOptions.groupRemoveSingleChildren)},o.prototype.isGroupRemoveLowestSingleChildren=function(){return ee(this.gridOptions.groupRemoveLowestSingleChildren)},o.prototype.isGroupIncludeFooter=function(){return ee(this.gridOptions.groupIncludeFooter)},o.prototype.isGroupIncludeTotalFooter=function(){return ee(this.gridOptions.groupIncludeTotalFooter)},o.prototype.isGroupSuppressBlankHeader=function(){return ee(this.gridOptions.groupSuppressBlankHeader)},o.prototype.isSuppressRowClickSelection=function(){return ee(this.gridOptions.suppressRowClickSelection)},o.prototype.isSuppressCellFocus=function(){return ee(this.gridOptions.suppressCellFocus)},o.prototype.isSuppressMultiSort=function(){return ee(this.gridOptions.suppressMultiSort)},o.prototype.isAlwaysMultiSort=function(){return ee(this.gridOptions.alwaysMultiSort)},o.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},o.prototype.isPivotSuppressAutoColumn=function(){return ee(this.gridOptions.pivotSuppressAutoColumn)},o.prototype.isSuppressDragLeaveHidesColumns=function(){return ee(this.gridOptions.suppressDragLeaveHidesColumns)},o.prototype.isSuppressRowGroupHidesColumns=function(){return ee(this.gridOptions.suppressRowGroupHidesColumns)},o.prototype.isSuppressScrollOnNewData=function(){return ee(this.gridOptions.suppressScrollOnNewData)},o.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return ee(this.gridOptions.suppressScrollWhenPopupsAreOpen)},o.prototype.isRowDragEntireRow=function(){return ee(this.gridOptions.rowDragEntireRow)},o.prototype.getRowDragText=function(e){if(e){var i=e.getColDef();if(i.rowDragText)return i.rowDragText}return this.gridOptions.rowDragText},o.prototype.isSuppressRowDrag=function(){return ee(this.gridOptions.suppressRowDrag)},o.prototype.isRowDragManaged=function(){return ee(this.gridOptions.rowDragManaged)},o.prototype.isSuppressMoveWhenRowDragging=function(){return ee(this.gridOptions.suppressMoveWhenRowDragging)},o.prototype.isRowDragMultiRow=function(){return ee(this.gridOptions.rowDragMultiRow)},o.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||G.DOM_LAYOUT_NORMAL;return-1===[G.DOM_LAYOUT_PRINT,G.DOM_LAYOUT_AUTO_HEIGHT,G.DOM_LAYOUT_NORMAL].indexOf(e)?(Ve(function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+G.DOM_LAYOUT_NORMAL+", "+G.DOM_LAYOUT_AUTO_HEIGHT+" and "+G.DOM_LAYOUT_PRINT)},"warn about dom layout values"),G.DOM_LAYOUT_NORMAL):e},o.prototype.isSuppressHorizontalScroll=function(){return ee(this.gridOptions.suppressHorizontalScroll)},o.prototype.isSuppressMaxRenderedRowRestriction=function(){return ee(this.gridOptions.suppressMaxRenderedRowRestriction)},o.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return ee(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},o.prototype.isAlwaysShowHorizontalScroll=function(){return ee(this.gridOptions.alwaysShowHorizontalScroll)},o.prototype.isAlwaysShowVerticalScroll=function(){return ee(this.gridOptions.alwaysShowVerticalScroll)},o.prototype.isDebounceVerticalScrollbar=function(){return ee(this.gridOptions.debounceVerticalScrollbar)},o.prototype.isSuppressLoadingOverlay=function(){return ee(this.gridOptions.suppressLoadingOverlay)},o.prototype.isSuppressNoRowsOverlay=function(){return ee(this.gridOptions.suppressNoRowsOverlay)},o.prototype.isSuppressFieldDotNotation=function(){return ee(this.gridOptions.suppressFieldDotNotation)},o.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},o.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},o.prototype.isFunctionsPassive=function(){return ee(this.gridOptions.functionsPassive)},o.prototype.isSuppressChangeDetection=function(){return ee(this.gridOptions.suppressChangeDetection)},o.prototype.isSuppressAnimationFrame=function(){return ee(this.gridOptions.suppressAnimationFrame)},o.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},o.prototype.isCacheQuickFilter=function(){return ee(this.gridOptions.cacheQuickFilter)},o.prototype.isUnSortIcon=function(){return ee(this.gridOptions.unSortIcon)},o.prototype.isSuppressMenuHide=function(){return ee(this.gridOptions.suppressMenuHide)},o.prototype.isEnterMovesDownAfterEdit=function(){return ee(this.gridOptions.enterMovesDownAfterEdit)},o.prototype.isEnterMovesDown=function(){return ee(this.gridOptions.enterMovesDown)},o.prototype.isUndoRedoCellEditing=function(){return ee(this.gridOptions.undoRedoCellEditing)},o.prototype.getUndoRedoCellEditingLimit=function(){return Ka(this.gridOptions.undoRedoCellEditingLimit)},o.prototype.isEnableCellEditingOnBackspace=function(){return ee(this.gridOptions.enableCellEditingOnBackspace)},o.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},o.prototype.getRowClass=function(){return this.gridOptions.rowClass},o.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},o.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},o.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},o.prototype.isServerSideInfiniteScroll=function(){return ee(this.gridOptions.serverSideInfiniteScroll)},o.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},o.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},o.prototype.getPopupParent=function(){return this.gridOptions.popupParent},o.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},o.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},o.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},o.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},o.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},o.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,i=e.initialGroupOrderComparator,n=e.defaultGroupOrderComparator;return i?this.mergeGridCommonParams(i):n?function(r){return n(r.nodeA,r.nodeB)}:void 0},o.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,i=e.isFullWidthRow,n=e.isFullWidthCell;return i?this.mergeGridCommonParams(i):n?function(r){return n(r.rowNode)}:void 0},o.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},o.prototype.isEmbedFullWidthRows=function(){return ee(this.gridOptions.embedFullWidthRows)||ee(this.gridOptions.deprecatedEmbedFullWidthRows)},o.prototype.isDetailRowAutoHeight=function(){return ee(this.gridOptions.detailRowAutoHeight)},o.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},o.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},o.prototype.getApi=function(){return this.gridOptions.api},o.prototype.getColumnApi=function(){return this.gridOptions.columnApi},o.prototype.isReadOnlyEdit=function(){return ee(this.gridOptions.readOnlyEdit)},o.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,i=ee(this.gridOptions.immutableData);return!ee(this.gridOptions.resetRowDataOnUpdate)&&(e||i)},o.prototype.isEnsureDomOrder=function(){return ee(this.gridOptions.ensureDomOrder)},o.prototype.isEnableCharts=function(){return!!ee(this.gridOptions.enableCharts)&&$.assertRegistered(Ie.GridChartsModule,"enableCharts")},o.prototype.isEnableChartToolPanelsButton=function(){return ee(this.gridOptions.enableChartToolPanelsButton)},o.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},o.prototype.isSingleClickEdit=function(){return ee(this.gridOptions.singleClickEdit)},o.prototype.isSuppressClickEdit=function(){return ee(this.gridOptions.suppressClickEdit)},o.prototype.isStopEditingWhenCellsLoseFocus=function(){return ee(this.gridOptions.stopEditingWhenCellsLoseFocus)},o.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},o.prototype.getMaxConcurrentDatasourceRequests=function(){var e=Ka(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},o.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},o.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},o.prototype.getPaginationPageSize=function(){return Ka(this.gridOptions.paginationPageSize)},o.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||ee(this.gridOptions.paginateChildRows)},o.prototype.getCacheBlockSize=function(){return Kc(this.gridOptions.cacheBlockSize)},o.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},o.prototype.getServerSideInitialRowCount=function(){var e=this.gridOptions.serverSideInitialRowCount;return"number"==typeof e&&e>0?e:1},o.prototype.isPurgeClosedRowNodes=function(){return ee(this.gridOptions.purgeClosedRowNodes)},o.prototype.isSuppressPaginationPanel=function(){return ee(this.gridOptions.suppressPaginationPanel)},o.prototype.getRowData=function(){return this.gridOptions.rowData},o.prototype.isEnableRtl=function(){return ee(this.gridOptions.enableRtl)},o.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},o.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},o.prototype.isAngularCompileRows=function(){return ee(this.gridOptions.angularCompileRows)},o.prototype.isAngularCompileFilters=function(){return ee(this.gridOptions.angularCompileFilters)},o.prototype.isDebug=function(){return ee(this.gridOptions.debug)},o.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},o.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},o.prototype.getDatasource=function(){return this.gridOptions.datasource},o.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},o.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},o.prototype.isAccentedSort=function(){return ee(this.gridOptions.accentedSort)},o.prototype.isEnableBrowserTooltips=function(){return ee(this.gridOptions.enableBrowserTooltips)},o.prototype.isEnableCellExpressions=function(){return ee(this.gridOptions.enableCellExpressions)},o.prototype.isEnableGroupEdit=function(){return ee(this.gridOptions.enableGroupEdit)},o.prototype.isSuppressMiddleClickScrolls=function(){return ee(this.gridOptions.suppressMiddleClickScrolls)},o.prototype.isPreventDefaultOnContextMenu=function(){return ee(this.gridOptions.preventDefaultOnContextMenu)},o.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return ee(this.gridOptions.suppressPreventDefaultOnMouseWheel)},o.prototype.isSuppressColumnVirtualisation=function(){return ee(this.gridOptions.suppressColumnVirtualisation)},o.prototype.isSuppressRowVirtualisation=function(){return ee(this.gridOptions.suppressRowVirtualisation)},o.prototype.isSuppressContextMenu=function(){return ee(this.gridOptions.suppressContextMenu)},o.prototype.isAllowContextMenuWithControlKey=function(){return ee(this.gridOptions.allowContextMenuWithControlKey)},o.prototype.isSuppressCopyRowsToClipboard=function(){return ee(this.gridOptions.suppressCopyRowsToClipboard)},o.prototype.isSuppressCopySingleCellRanges=function(){return ee(this.gridOptions.suppressCopySingleCellRanges)},o.prototype.isCopyHeadersToClipboard=function(){return ee(this.gridOptions.copyHeadersToClipboard)},o.prototype.isCopyGroupHeadersToClipboard=function(){return ee(this.gridOptions.copyGroupHeadersToClipboard)},o.prototype.isSuppressClipboardPaste=function(){return ee(this.gridOptions.suppressClipboardPaste)},o.prototype.isSuppressLastEmptyLineOnPaste=function(){return ee(this.gridOptions.suppressLastEmptyLineOnPaste)},o.prototype.isPagination=function(){return ee(this.gridOptions.pagination)},o.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return ee(this.gridOptions.suppressEnterpriseResetOnNewColumns)},o.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},o.prototype.getAsyncTransactionWaitMillis=function(){return N(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:G.BATCH_WAIT_MILLIS},o.prototype.isSuppressMovableColumns=function(){return ee(this.gridOptions.suppressMovableColumns)},o.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&ee(this.gridOptions.animateRows)},o.prototype.isSuppressColumnMoveAnimation=function(){return ee(this.gridOptions.suppressColumnMoveAnimation)},o.prototype.isSuppressAggFuncInHeader=function(){return ee(this.gridOptions.suppressAggFuncInHeader)},o.prototype.isSuppressAggAtRootLevel=function(){return ee(this.gridOptions.suppressAggAtRootLevel)},o.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||ee(this.gridOptions.suppressAggFilteredOnly)},o.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return ee(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},o.prototype.isShowOpenedGroup=function(){return ee(this.gridOptions.showOpenedGroup)},o.prototype.isReactUi=function(){return ee(this.gridOptions.reactUi)},o.prototype.isSuppressReactUi=function(){return ee(this.gridOptions.suppressReactUi)},o.prototype.isEnableRangeSelection=function(){return $.isRegistered(Ie.RangeSelectionModule)&&ee(this.gridOptions.enableRangeSelection)},o.prototype.isEnableRangeHandle=function(){return ee(this.gridOptions.enableRangeHandle)},o.prototype.isEnableFillHandle=function(){return ee(this.gridOptions.enableFillHandle)},o.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(Ve(function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")},"warn invalid fill direction"),"xy"):e:"xy"},o.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},o.prototype.isSuppressMultiRangeSelection=function(){return ee(this.gridOptions.suppressMultiRangeSelection)},o.prototype.isPaginationAutoPageSize=function(){return ee(this.gridOptions.paginationAutoPageSize)},o.prototype.isRememberGroupStateWhenNewData=function(){return ee(this.gridOptions.rememberGroupStateWhenNewData)},o.prototype.getIcons=function(){return this.gridOptions.icons},o.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.mergeGridCommonParams(e):ee(e)?function(){return!0}:void 0},o.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},o.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},o.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},o.prototype.isMasterDetail=function(){return!!ee(this.gridOptions.masterDetail)&&$.assertRegistered(Ie.MasterDetailModule,"masterDetail")},o.prototype.isKeepDetailRows=function(){return ee(this.gridOptions.keepDetailRows)},o.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return N(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},o.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},o.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},o.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},o.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},o.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},o.prototype.isSuppressAutoSize=function(){return ee(this.gridOptions.suppressAutoSize)},o.prototype.isEnableCellTextSelection=function(){return ee(this.gridOptions.enableCellTextSelection)},o.prototype.isSuppressParentsInRowNodes=function(){return ee(this.gridOptions.suppressParentsInRowNodes)},o.prototype.isSuppressClipboardApi=function(){return ee(this.gridOptions.suppressClipboardApi)},o.prototype.isFunctionsReadOnly=function(){return ee(this.gridOptions.functionsReadOnly)},o.prototype.isEnableCellTextSelect=function(){return ee(this.gridOptions.enableCellTextSelection)},o.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},o.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},o.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+Tc(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},o.prototype.isSuppressCsvExport=function(){return ee(this.gridOptions.suppressCsvExport)},o.prototype.isAllowShowChangeAfterFilter=function(){return ee(this.gridOptions.allowShowChangeAfterFilter)},o.prototype.isSuppressExcelExport=function(){return ee(this.gridOptions.suppressExcelExport)},o.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return ee(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},o.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},o.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},o.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},o.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},o.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},o.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,i=e.getGroupRowAgg,n=e.groupRowAggNodes;return i?this.mergeGridCommonParams(i):n?function(r){return n(r.nodes)}:void 0},o.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},o.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},o.prototype.getRowIdFunc=function(){var e=this.gridOptions,i=e.getRowId,n=e.getRowNodeId;return i?this.mergeGridCommonParams(i):n?function(r){return n(r.data)}:void 0},o.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},o.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},o.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},o.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},o.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},o.prototype.isTreeData=function(){return!!ee(this.gridOptions.treeData)&&$.assertRegistered(Ie.RowGroupingModule,"Tree Data")},o.prototype.isValueCache=function(){return ee(this.gridOptions.valueCache)},o.prototype.isValueCacheNeverExpires=function(){return ee(this.gridOptions.valueCacheNeverExpires)},o.prototype.isDeltaSort=function(){return ee(this.gridOptions.deltaSort)},o.prototype.isAggregateOnlyChangedColumns=function(){return ee(this.gridOptions.aggregateOnlyChangedColumns)},o.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},o.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},o.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},o.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},o.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},o.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},o.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},o.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},o.prototype.getViewportRowModelPageSize=function(){return Kc(this.gridOptions.viewportRowModelPageSize,5)},o.prototype.getViewportRowModelBufferSize=function(){return function Pp(o,t){return o>=0?o:t}(this.gridOptions.viewportRowModelBufferSize,5)},o.prototype.isServerSideSortAllLevels=function(){var e=ee(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&e?(Ve(function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")},"serverSideSortAllLevels"),!1):e},o.prototype.isServerSideFilterAllLevels=function(){var e=ee(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&e?(Ve(function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")},"serverSideFilterAllLevels"),!1):e},o.prototype.isServerSideSortOnServer=function(){var e=ee(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&e?(Ve(function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")},"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&e?(Ve(function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")},"serverSideSortOnServerTreeData"),!1):e},o.prototype.isServerSideFilterOnServer=function(){var e=ee(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&e?(Ve(function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")},"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&e?(Ve(function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")},"serverSideFilterOnServerTreeData"),!1):e},o.prototype.getPostSortFunc=function(){var e=this.gridOptions,i=e.postSortRows,n=e.postSort;return i?this.mergeGridCommonParams(i):n?function(r){return n(r.nodes)}:void 0},o.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},o.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},o.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},o.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},o.prototype.getChartToolPanelsDef=function(){return this.gridOptions.chartToolPanelsDef},o.prototype.getClipboardDelimiter=function(){return N(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},o.prototype.setProperty=function(e,i,n){void 0===n&&(n=!1);var r=this.gridOptions[e];(n||r!==i)&&(this.gridOptions[e]=i,this.propertyEventService.dispatchEvent({type:e,currentValue:i,previousValue:r}))},o.prototype.addEventListener=function(e,i){this.propertyEventService.addEventListener(e,i)},o.prototype.removeEventListener=function(e,i){this.propertyEventService.removeEventListener(e,i)},o.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},o.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},o.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},o.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},o.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},o.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},o.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},o.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},o.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},o.prototype.getTooltipDelay=function(e){var i=this.gridOptions,a="show"===e?i.tooltipShowDelay:i.tooltipHideDelay,l=Tc(e);return N(a)?(a<0&&Ve(function(){return console.warn("ag-grid: tooltip"+l+"Delay should not be lower than 0")},"tooltip"+l+"DelayWarn"),Math.max(200,a)):null},o.prototype.isTooltipMouseTrack=function(){return ee(this.gridOptions.tooltipMouseTrack)},o.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return ee(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},o.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&N(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&N(e)?e:document},o.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(N(e)&&e>t.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var i=this.getFromTheme(null,"headerCellMinWidth");return N(i)?Math.max(i,t.MIN_COL_WIDTH):t.MIN_COL_WIDTH},o.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},o.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth=0?this.gridOptions.scrollbarWidth:bp();null!=i&&(this.scrollbarWidth=i,this.eventService.dispatchEvent({type:S.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},o.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var i=function(a,l,h){null!=e[a]&&(console.warn("AG Grid: since version "+h+", '"+a+"' is deprecated / renamed, please use the new property name '"+l+"' instead."),null==e[l]&&(e[l]=e[a]))};if(i("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),i("deltaRowDataMode","immutableData","23.1.x"),i("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),i("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),i("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.innerRendererFramework=e.groupRowInnerRendererFramework)}e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+(e.treeData?"treeDataDisplayType":"groupDisplayType")+" = 'custom'`"),e.groupDisplayType="custom"),e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator),i("processSecondaryColDef","processPivotResultColDef","28.0.x"),i("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),e.serverSideStoreType&&(console.warn("AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store."),e.serverSideInfiniteScroll="partial"===e.serverSideStoreType),i("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},o.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},o.prototype.treeDataViolations=function(){this.isRowModelDefault()&&z(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(z(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),z(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},o.prototype.getLocaleTextFunc=function(){var e=this,i=this.gridOptions,n=i.localeText,r=i.getLocaleText;return r?function(l,h,m){var v={key:l,defaultValue:h,variableValues:m,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return r(v)}:i.localeTextFunc||function(l,h,m){var v=n&&n[l];if(v&&m&&m.length)for(var _=0;!(_>=m.length)&&-1!==v.indexOf("${variable}");)v=v.replace("${variable}",m[_++]);return v??h}},o.prototype.globalEventHandler=function(e,i){if(!this.destroyed){var n=Ln.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](i)}},o.prototype.setRowHeightVariable=function(e){var n=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=n&&this.eGridDiv.style.setProperty("--ag-line-height",n)},o.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||z(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},o.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},o.prototype.getRowHeightForNode=function(e,i,n){if(void 0===i&&(i=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(i)return{height:n,estimated:!0};var r={node:e,data:e.data},a=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(r);if(this.isNumeric(a))return 0===a&&Ve(function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")},"invalidRowHeight"),{height:Math.max(1,a),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},o.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},o.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},o.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},o.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},o.prototype.getFromTheme=function(e,i){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,i):e},o.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},o.prototype.matchesGroupDisplayType=function(e,i){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):i===e},o.prototype.matchesTreeDataDisplayType=function(e,i){var n=["auto","custom"];return n.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):i===e},o.MIN_COL_WIDTH=10,o.PROP_HEADER_HEIGHT="headerHeight",o.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",o.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",o.PROP_GROUP_DISPLAY_TYPE="groupDisplayType",o.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",o.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",o.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",o.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",o.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",o.PROP_TAB_TO_NEXT_CELL="tabToNextCell",o.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",o.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",o.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",o.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",o.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",o.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",o.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",o.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",o.PROP_GET_ROW_CLASS="getRowClass",o.PROP_GET_ROW_STYLE="getRowStyle",o.PROP_GET_ROW_HEIGHT="getRowHeight",o.PROP_POPUP_PARENT="popupParent",o.PROP_DOM_LAYOUT="domLayout",o.PROP_ROW_CLASS="rowClass",o.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",o.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",o.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",o.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",o.PROP_GET_CHILD_COUNT="getChildCount",o.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",o.PROP_GET_ROW_NODE_ID="getRowNodeId",o.PROP_GET_ROW_ID="getRowId",o.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",o.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",o.PROP_IS_ROW_SELECTABLE="isRowSelectable",o.PROP_IS_ROW_MASTER="isRowMaster",o.PROP_POST_SORT="postSort",o.PROP_POST_SORT_ROWS="postSortRows",o.PROP_GET_DOCUMENT="getDocument",o.PROP_POST_PROCESS_POPUP="postProcessPopup",o.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",o.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",o.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",o.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",o.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",o.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",o.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",o.PROP_SEND_TO_CLIPBOARD="sendToClipboard",o.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",o.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",o.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",o.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",o.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",o.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",o.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",o.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",o.PROP_AUTO_GROUP_COLUMN_DEF="autoGroupColumnDef",o.PROP_DEFAULT_COL_DEF="defaultColDef",lr([w("gridOptions")],o.prototype,"gridOptions",void 0),lr([w("eventService")],o.prototype,"eventService",void 0),lr([w("environment")],o.prototype,"environment",void 0),lr([w("eGridDiv")],o.prototype,"eGridDiv",void 0),lr([Op(0,Et("gridApi")),Op(1,Et("columnApi"))],o.prototype,"agWire",null),lr([Ct],o.prototype,"destroy",null),lr([ve],o.prototype,"init",null),t=lr([we("gridOptionsWrapper")],o)}(),Ip=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gi=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Fp=function(o,t){return function(e,i){t(e,i,o)}},$c=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Np=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},cr=function(){for(var o=[],t=0;t=0,m=l>=0;return h&&m?a-l:h?1:m?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(r)}),this.gridColumns=this.placeLockedColumns(this.gridColumns))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var i=e,n=[];null!=i;)n.push(i),i=this.getDisplayedColAfter(i);return n},t.prototype.checkViewportColumns=function(){null!=this.displayedColumnsCenter&&this.extractViewport()&&this.eventService.dispatchEvent({type:S.EVENT_VIRTUAL_COLUMNS_CHANGED})},t.prototype.setViewportPosition=function(e,i){(e!==this.scrollWidth||i!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=i,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,i){void 0===i&&(i="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(i),this.eventService.dispatchEvent({type:S.EVENT_COLUMN_PIVOT_MODE_CHANGED}))},t.prototype.getSecondaryPivotColumn=function(e,i){if(z(this.secondaryColumns))return null;var n=this.getPrimaryColumn(i),r=null;return this.secondaryColumns.forEach(function(a){var l=a.getColDef().pivotKeys,h=a.getColDef().pivotValueColumn;V(l,e)&&h===n&&(r=a)}),r},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var i,n;this.gridOptionsWrapper.isEnableRtl()?(i=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?Be(this.displayedColumnsRight):null):(i=this.displayedColumnsLeft?Be(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(r){r.setLastLeftPinned(r===i,e),r.setFirstRightPinned(r===n,e)})},t.prototype.autoSizeColumns=function(e){var i=this,n=e.columns,r=e.skipHeader,a=e.skipHeaderGroups,l=e.stopAtGroup,h=e.source,m=void 0===h?"api":h;this.animationFrameService.flushAllFrames();for(var v=[],_=-1,y=r??this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),b=a??y;0!==_;)_=0,this.actionOnGridColumns(n,function(R){if(v.indexOf(R)>=0)return!1;var I=i.autoWidthCalculator.getPreferredWidthForColumn(R,y);if(I>0){var H=i.normaliseColumnWidth(R,I);R.setActualWidth(H,m),v.push(R),_++}return!0},m);b||this.autoSizeColumnGroupsByColumns(n,l),this.fireColumnResizedEvent(v,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,i,n,r){void 0===r&&(r=null),e&&e.length&&this.eventService.dispatchEvent({type:S.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:i,source:n})},t.prototype.autoSizeColumn=function(e,i,n){void 0===n&&(n="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:i,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,i){var n,r,a,l,v,h=new Set;this.getGridColumns(e).forEach(function(X){for(var fe=X.getParent();fe&&fe!=i;)fe.isPadding()||h.add(fe),fe=fe.getParent()});try{for(var y=$c(h),b=y.next();!b.done;b=y.next()){var R=b.value;try{for(var I=(a=void 0,$c(this.ctrlsService.getHeaderRowContainerCtrls())),H=I.next();!H.done&&!(v=H.value.getHeaderCtrlForColumn(R));H=I.next());}catch(X){a={error:X}}finally{try{H&&!H.done&&(l=I.return)&&l.call(I)}finally{if(a)throw a.error}}v&&v.resizeLeafColumnsToFit()}}catch(X){n={error:X}}finally{try{b&&!b.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return[]},t.prototype.autoSizeAllColumns=function(e,i){void 0===i&&(i="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:i})},t.prototype.getColumnsFromTree=function(e){var i=[],n=function(r){for(var a=0;a=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,i,n,r){for(var m,a=[],l=null,h=function(_){var X,y=i[_],b=i.length-_,R=Math.min(y.getColSpan(e),b),I=[y];if(R>1){for(var H=R-1,te=1;te<=H;te++)I.push(i[_+te]);_+=H}n?(X=!1,I.forEach(function(me){n(me)&&(X=!0)})):X=!0,X&&(0===a.length&&l&&r&&r(y)&&a.push(l),a.push(y)),l=y,m=_},v=0;vi.viewportLeft})},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var i=e.getLeft()||0,n=i+e.getActualWidth(),r=this.viewportLeft-200,a=this.viewportRight+200;return!(ia&&n>a)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,i,n,r,a,l){var h=this;if(void 0===l&&(l="api"),e&&!ae(e)){var m=!1;e.forEach(function(_){var y=h.getPrimaryColumn(_);if(y){if(n){if(i.indexOf(y)>=0)return;i.push(y)}else{if(i.indexOf(y)<0)return;De(i,y)}r(y),m=!0}}),m&&(this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(l),this.eventService.dispatchEvent({type:a,columns:i,column:1===i.length?i[0]:null,source:l}))}},t.prototype.setRowGroupColumns=function(e,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),i)},t.prototype.setRowGroupActive=function(e,i,n){e!==i.isRowGroupActive()&&(i.setRowGroupActive(e,n),e&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&this.setColumnVisible(i,!1,n),!e&&!this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()&&this.setColumnVisible(i,!0,n))},t.prototype.addRowGroupColumn=function(e,i){void 0===i&&(i="api"),e&&this.addRowGroupColumns([e],i)},t.prototype.addRowGroupColumns=function(e,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),S.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},t.prototype.removeRowGroupColumns=function(e,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),S.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},t.prototype.removeRowGroupColumn=function(e,i){void 0===i&&(i="api"),e&&this.removeRowGroupColumns([e],i)},t.prototype.addPivotColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(n){return n.setPivotActive(!0,i)},S.EVENT_COLUMN_PIVOT_CHANGED,i)},t.prototype.setPivotColumns=function(e,i){void 0===i&&(i="api"),this.setPrimaryColumnList(e,this.pivotColumns,S.EVENT_COLUMN_PIVOT_CHANGED,function(n,r){r.setPivotActive(n,i)},i)},t.prototype.addPivotColumn=function(e,i){void 0===i&&(i="api"),this.addPivotColumns([e],i)},t.prototype.removePivotColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(n){return n.setPivotActive(!1,i)},S.EVENT_COLUMN_PIVOT_CHANGED,i)},t.prototype.removePivotColumn=function(e,i){void 0===i&&(i="api"),this.removePivotColumns([e],i)},t.prototype.setPrimaryColumnList=function(e,i,n,r,a){var l=this;i.length=0,N(e)&&e.forEach(function(h){var m=l.getPrimaryColumn(h);m&&i.push(m)}),(this.primaryColumns||[]).forEach(function(h){var m=i.indexOf(h)>=0;r(m,h)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.fireColumnEvent(n,i,a)},t.prototype.setValueColumns=function(e,i){void 0===i&&(i="api"),this.setPrimaryColumnList(e,this.valueColumns,S.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),i)},t.prototype.setValueActive=function(e,i,n){if(e!==i.isValueActive()&&(i.setValueActive(e,n),e&&!i.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(i);i.setAggFunc(r)}},t.prototype.addValueColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),S.EVENT_COLUMN_VALUE_CHANGED,i)},t.prototype.addValueColumn=function(e,i){void 0===i&&(i="api"),e&&this.addValueColumns([e],i)},t.prototype.removeValueColumn=function(e,i){void 0===i&&(i="api"),this.removeValueColumns([e],i)},t.prototype.removeValueColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),S.EVENT_COLUMN_VALUE_CHANGED,i)},t.prototype.normaliseColumnWidth=function(e,i){var n=e.getMinWidth();N(n)&&i0?a+=y:l=!1}),n>=r&&(!l||n<=a)},t.prototype.resizeColumnSets=function(e){var i=this,n=e.resizeSets,r=e.finished,a=e.source;if(!n||n.every(function(R){return i.checkMinAndMaxWidthsForSet(R)})){var m=[],v=[];n.forEach(function(R){var I=R.width,H=R.columns,te=R.ratios,X={},fe={};H.forEach(function(Le){return v.push(Le)});for(var me=!0,Se=0,$e=function(){if(++Se>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";me=!1;var Le=[],qe=0,st=I;H.forEach(function(ut,ri){fe[ut.getId()]?st-=X[ut.getId()]:(Le.push(ut),qe+=te[ri])});var It=1/qe;Le.forEach(function(ut,ri){var yi;ri===Le.length-1?yi=st:(yi=Math.round(te[ri]*I*It),st-=yi);var Qi=ut.getMinWidth(),Pr=ut.getMaxWidth();N(Qi)&&yi0&&yi>Pr&&(yi=Pr,fe[ut.getId()]=!0,me=!0),X[ut.getId()]=yi})};me&&"break"!==$e(););H.forEach(function(Le){var qe=X[Le.getId()];Le.getActualWidth()!==qe&&(Le.setActualWidth(qe,a),m.push(Le))})});var _=m.length>0,y=[];_&&(y=this.refreshFlexedColumns({resizingCols:v,skipSetLeft:!0}),this.setLeftValues(a),this.updateBodyWidths(),this.checkViewportColumns());var b=v.concat(y);(_||r)&&this.fireColumnResizedEvent(b,r,a,y)}else r&&this.fireColumnResizedEvent(n&&n.length>0?n[0].columns:null,r,a)},t.prototype.setColumnAggFunc=function(e,i,n){if(void 0===n&&(n="api"),e){var r=this.getPrimaryColumn(e);!r||(r.setAggFunc(i),this.fireColumnEvent(S.EVENT_COLUMN_VALUE_CHANGED,[r],n))}},t.prototype.fireColumnEvent=function(e,i,n){this.eventService.dispatchEvent({type:e,columns:i,column:i&&1==i.length?i[0]:null,source:n})},t.prototype.moveRowGroupColumn=function(e,i,n){void 0===n&&(n="api");var r=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(i,0,r),this.eventService.dispatchEvent({type:S.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:n})},t.prototype.moveColumns=function(e,i,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),i>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+i),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var r=this.getGridColumns(e);!this.doesMovePassRules(r,i)||(At(this.gridColumns,r,i),this.updateDisplayedColumns(n),this.eventService.dispatchEvent({type:S.EVENT_COLUMN_MOVED,columns:r,column:1===r.length?r[0]:null,toIndex:i,source:n}),this.columnAnimationService.finish())},t.prototype.doesMovePassRules=function(e,i){var n=this.getProposedColumnOrder(e,i);return this.doesOrderPassRules(n)},t.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},t.prototype.getProposedColumnOrder=function(e,i){var n=this.gridColumns.slice();return At(n,e,i),n},t.prototype.sortColumnsLikeGridColumns=function(e){var i=this;!e||e.length<=1||e.filter(function(r){return i.gridColumns.indexOf(r)<0}).length>0||e.sort(function(r,a){return i.gridColumns.indexOf(r)-i.gridColumns.indexOf(a)})},t.prototype.doesMovePassLockedPositions=function(e){var i=0,n=!0;return e.forEach(function(a){var l=function(a){return a?!0===a||"left"===a?0:2:1}(a.getColDef().lockPosition);lr.getLeafColumns().length-1&&(i=!1)}}}),i},t.prototype.moveColumn=function(e,i,n){void 0===n&&(n="api"),this.moveColumns([e],i,n)},t.prototype.moveColumnByIndex=function(e,i,n){void 0===n&&(n="api"),this.moveColumn(this.gridColumns[e],i,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var i=this.primaryColumns.slice();return this.gridColsArePrimary?i.sort(function(n,r){return e.gridColumns.indexOf(n)-e.gridColumns.indexOf(r)}):this.lastPrimaryOrder&&i.sort(function(n,r){return e.lastPrimaryOrder.indexOf(n)-e.lastPrimaryOrder.indexOf(r)}),this.columnDefFactory.buildColumnDefs(i,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case G.PINNED_LEFT:return this.leftWidth;case G.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),i=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==i||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=i,this.rightWidth=n,this.eventService.dispatchEvent({type:S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED}))},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case G.PINNED_LEFT:return this.getDisplayedLeftColumns();case G.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return ae(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return ae(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,i,n){void 0===n&&(n="api"),this.setColumnsVisible([e],i,n)},t.prototype.setColumnsVisible=function(e,i,n){void 0===i&&(i=!1),void 0===n&&(n="api"),this.applyColumnState({state:e.map(function(r){return{colId:"string"==typeof r?r:r.getColId(),hide:!i}})},n)},t.prototype.setColumnPinned=function(e,i,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],i,n)},t.prototype.setColumnsPinned=function(e,i,n){var r;void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),r=!0===i||i===G.PINNED_LEFT?G.PINNED_LEFT:i===G.PINNED_RIGHT?G.PINNED_RIGHT:null,this.actionOnGridColumns(e,function(a){return a.getPinned()!==r&&(a.setPinned(r),!0)},n,function(){return{type:S.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:n}}),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,i,n,r){var a=this;if(!ae(e)){var l=[];if(e.forEach(function(m){var v=a.getGridColumn(m);v&&!1!==i(v)&&l.push(v)}),l.length&&(this.updateDisplayedColumns(n),N(r)&&r)){var h=r();h.columns=l,h.column=1===l.length?l[0]:null,this.eventService.dispatchEvent(h)}}},t.prototype.getDisplayedColBefore=function(e){var i=this.getAllDisplayedColumns(),n=i.indexOf(e);return n>0?i[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var i=this.getAllDisplayedColumns(),n=i.indexOf(e);return n0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,cr([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,cr([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,cr([this.primaryColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var i=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,a=null!=e.getSort()?e.getSort():null,l=null!=e.getSortIndex()?e.getSortIndex():null,h=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:a,sortIndex:l,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:i,pivot:e.isPivotActive(),pivotIndex:n,flex:h}},t.prototype.getColumnState=function(){if(z(this.primaryColumns)||!this.isAlive())return[];var i=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(i),i},t.prototype.orderColumnStateList=function(e){var i=Fn(this.gridColumns.map(function(n,r){return[n.getColId(),r]}));e.sort(function(n,r){return(i.has(n.colId)?i.get(n.colId):-1)-(i.has(r.colId)?i.get(r.colId):-1)})},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var i=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,a=1e3,l=[];this.groupAutoColumns&&(l=l.concat(this.groupAutoColumns)),i&&(l=l.concat(i)),l.forEach(function(h){var m=function(Xe,Le){return Xe??Le??null},v=h.getColDef(),_=m(v.sort,v.initialSort),y=m(v.sortIndex,v.initialSortIndex),b=m(v.hide,v.initialHide),R=m(v.pinned,v.initialPinned),I=m(v.width,v.initialWidth),H=m(v.flex,v.initialFlex),te=m(v.rowGroupIndex,v.initialRowGroupIndex),X=m(v.rowGroup,v.initialRowGroup);null==te&&(null==X||0==X)&&(te=null,X=null);var fe=m(v.pivotIndex,v.initialPivotIndex),me=m(v.pivot,v.initialPivot);null==fe&&(null==me||0==me)&&(fe=null,me=null);var Se=m(v.aggFunc,v.initialAggFunc),$e={colId:h.getColId(),sort:_,sortIndex:y,hide:b,pinned:R,width:I,flex:H,rowGroup:X,rowGroupIndex:te,pivot:me,pivotIndex:fe,aggFunc:Se};z(te)&&X&&($e.rowGroupIndex=r++),z(fe)&&me&&($e.pivotIndex=a++),n.push($e)}),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,i){var n=this;if(ae(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var r=function(m,v,_){var y=n.compareColumnStatesAndRaiseEvents(i);n.autoGroupsNeedBuilding=!0;var b=v.slice(),R={},I={},H=[],te=[],X=0,fe=n.rowGroupColumns.slice(),me=n.pivotColumns.slice();m.forEach(function(Le){var qe=Le.colId||"";if(qe.startsWith(G.GROUP_AUTO_COLUMN_ID))return H.push(Le),void te.push(Le);var It=_(qe);It?(n.syncColumnWithStateItem(It,Le,e.defaultState,R,I,!1,i),De(b,It)):(te.push(Le),X+=1)});var Se=function(Le){return n.syncColumnWithStateItem(Le,null,e.defaultState,R,I,!1,i)};b.forEach(Se);var $e=function(Le,qe,st,It){var ut=Le[st.getId()],ri=Le[It.getId()],wn=null!=ut,yi=null!=ri;if(wn&&yi)return ut-ri;if(wn)return-1;if(yi)return 1;var Qi=qe.indexOf(st),Pr=qe.indexOf(It),cp=Qi>=0;return cp&&Pr>=0?Qi-Pr:cp?-1:1};n.rowGroupColumns.sort($e.bind(n,R,fe)),n.pivotColumns.sort($e.bind(n,I,me)),n.updateGridColumns();var Xe=n.groupAutoColumns?n.groupAutoColumns.slice():[];return H.forEach(function(Le){var qe=n.getAutoColumn(Le.colId);De(Xe,qe),n.syncColumnWithStateItem(qe,Le,e.defaultState,null,null,!0,i)}),Xe.forEach(Se),n.applyOrderAfterApplyState(e),n.updateDisplayedColumns(i),n.dispatchEverythingChanged(i),y(),{unmatchedAndAutoStates:te,unmatchedCount:X}};this.columnAnimationService.start();var a=r(e.state||[],this.primaryColumns||[],function(m){return n.getPrimaryColumn(m)}),l=a.unmatchedAndAutoStates,h=a.unmatchedCount;return(l.length>0||N(e.defaultState))&&(h=r(l,this.secondaryColumns||[],function(m){return n.getSecondaryColumn(m)}).unmatchedCount),this.columnAnimationService.finish(),0===h},t.prototype.applyOrderAfterApplyState=function(e){var i=this;if(e.applyOrder&&e.state){var n=[],r={};e.state.forEach(function(l){if(l.colId&&!r[l.colId]){var h=i.gridColumnsMap[l.colId];h&&(n.push(h),r[l.colId]=!0)}});var a=0;if(this.gridColumns.forEach(function(l){var h=l.getColId();null!=r[h]||(h.startsWith(G.GROUP_AUTO_COLUMN_ID)?lt(n,l,a++):n.push(l))}),n=this.placeLockedColumns(n),!this.doesMovePassMarryChildren(n))return void console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");this.gridColumns=n}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var i=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),a={};return r.forEach(function(l){a[l.colId]=l}),function(){if(!i.gridOptionsWrapper.isSuppressColumnStateEvents()){var l=i.getPrimaryAndSecondaryAndAutoColumns(),h=function(te,X,fe,me){V(X.map(me),fe.map(me))||i.eventService.dispatchEvent({type:te,columns:fe,column:1===fe.length?fe[0]:null,source:e})},m=function(te){var X=[];return l.forEach(function(fe){var me=a[fe.getColId()];me&&te(me,fe)&&X.push(fe)}),X},v=function(te){return te.getColId()};h(S.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,i.rowGroupColumns,v),h(S.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,i.pivotColumns,v),m(function(te,X){var fe=null!=te.aggFunc,me=fe!=X.isValueActive(),Se=fe&&te.aggFunc!=X.getAggFunc();return me||Se}).length>0&&i.fireColumnEvent(S.EVENT_COLUMN_VALUE_CHANGED,i.valueColumns,e),i.fireColumnResizedEvent(m(function(te,X){return te.width!=X.getActualWidth()}),!0,e),i.raiseColumnPinnedEvent(m(function(te,X){return te.pinned!=X.getPinned()}),e),i.raiseColumnVisibleEvent(m(function(te,X){return te.hide==X.isVisible()}),e),m(function(te,X){return te.sort!=X.getSort()||te.sortIndex!=X.getSortIndex()}).length>0&&i.sortController.dispatchSortChangedEvents(e),i.raiseColumnMovedEvent(r,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,i){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,function(l){return l.getPinned()});this.eventService.dispatchEvent({type:S.EVENT_COLUMN_PINNED,pinned:r??null,columns:e,column:n,source:i})}},t.prototype.getCommonValue=function(e,i){if(e&&0!=e.length){for(var n=i(e[0]),r=1;r=y&&e.setActualWidth(I,h)}var H=m("sort").value1;void 0!==H&&e.setSort(H===G.SORT_DESC||H===G.SORT_ASC?H:void 0,h);var te=m("sortIndex").value1;if(void 0!==te&&e.setSortIndex(te),!l&&e.isPrimary()){var X=m("aggFunc").value1;void 0!==X&&("string"==typeof X?(e.setAggFunc(X),e.isValueActive()||(e.setValueActive(!0,h),this.valueColumns.push(e))):(N(X)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,h),De(this.valueColumns,e))));var fe=m("rowGroup","rowGroupIndex"),me=fe.value1,Se=fe.value2;(void 0!==me||void 0!==Se)&&("number"==typeof Se||me?(e.isRowGroupActive()||(e.setRowGroupActive(!0,h),this.rowGroupColumns.push(e)),r&&"number"==typeof Se&&(r[e.getId()]=Se)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,h),De(this.rowGroupColumns,e)));var $e=m("pivot","pivotIndex"),Xe=$e.value1,Le=$e.value2;(void 0!==Xe||void 0!==Le)&&("number"==typeof Le||Xe?(e.isPivotActive()||(e.setPivotActive(!0,h),this.pivotColumns.push(e)),a&&"number"==typeof Le&&(a[e.getId()]=Le)):e.isPivotActive()&&(e.setPivotActive(!1,h),De(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,i){var n=[];return e&&e.forEach(function(r){var a=i(r);a&&n.push(a)}),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var i=this.getGridColumn(e);return i||console.warn("AG Grid: could not find column "+e),i},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,i,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var r=0;r=0:R?void 0!==te?te:void 0!==fe&&null!=fe&&fe>=0:i.indexOf(b)>=0)&&((R?null!=X||null!=fe:null!=X)?m.push(b):v.push(b))});var _=function(b){var R=r(b.getColDef()),I=a(b.getColDef());return R??I};m.sort(function(b,R){var I=_(b),H=_(R);return I===H?0:I=0&&y.push(b)}),v.forEach(function(b){y.indexOf(b)<0&&y.push(b)}),i.forEach(function(b){y.indexOf(b)<0&&n(b,!1)}),y.forEach(function(b){i.indexOf(b)<0&&n(b,!0)}),y},t.prototype.extractPivotColumns=function(e,i){this.pivotColumns=this.extractColumns(i,this.pivotColumns,function(n,r){return n.setPivotActive(r,e)},function(n){return n.pivotIndex},function(n){return n.initialPivotIndex},function(n){return n.pivot},function(n){return n.initialPivot})},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var i=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(n){if(n instanceof P){var r=n.getColGroupDef(),a={groupId:n.getGroupId(),open:r?r.openByDefault:void 0};i.push(a)}}),this.setColumnGroupState(i,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(i){i instanceof P&&e.push({groupId:i.getGroupId(),open:i.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,i){var n=this;void 0===i&&(i="api"),this.columnAnimationService.start();var r=[];e.forEach(function(a){var h=a.open,m=n.getProvidedColumnGroup(a.groupId);!m||m.isExpanded()!==h&&(n.logger.log("columnGroupOpened("+m.getGroupId()+","+h+")"),m.setExpanded(h),r.push(m))}),this.updateGroupsAndDisplayedColumns(i),this.setFirstRightAndLastLeftPinned(i),r.forEach(function(a){n.eventService.dispatchEvent({type:S.EVENT_COLUMN_GROUP_OPENED,columnGroup:a})}),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,i,n){var r;void 0===n&&(n="api"),r=e instanceof P?e.getId():e||"",this.setColumnGroupState([{groupId:r,open:i}],n)},t.prototype.getProvidedColumnGroup=function(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");var i=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(n){n instanceof P&&n.getId()===e&&(i=n)}),i},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&z(this.secondaryColumns)?this.gridColumns.filter(function(n){var r=e.groupAutoColumns&&St(e.groupAutoColumns,n),a=e.valueColumns&&St(e.valueColumns,n);return r||a}):this.gridColumns.filter(function(n){return e.groupAutoColumns&&St(e.groupAutoColumns,n)||n.isVisible()})},t.prototype.checkColSpanActiveInCols=function(e){var i=!1;return e.forEach(function(n){N(n.getColDef().colSpan)&&(i=!0)}),i},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var i=function(n){var r=n.getColDef(),a=r.showRowGroup;r&&N(a)&&(e.groupDisplayColumns.push(n),"string"==typeof a?e.groupDisplayColumnsMap[a]=n:!0===a&&e.getRowGroupColumns().forEach(function(l){e.groupDisplayColumnsMap[l.getId()]=n}))};this.gridColumns.forEach(i),this.groupAutoColumns&&this.groupAutoColumns.forEach(i)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var i=this.calculateColumnsForDisplay();this.buildDisplayedTrees(i),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return N(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,i){var n=this;void 0===i&&(i="api");var r=e&&e.length>0;if(r||!z(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(e);var a=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=a.columnTree,this.secondaryHeaderRowCount=a.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(l){return n.secondaryColumnsMap[l.getId()]=l}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(i)}},t.prototype.processSecondaryColumnDefinitions=function(e){var i=this.gridOptionsWrapper.getProcessPivotResultColDefFunc(),n=this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();if(i||n){var r=function(a){a.forEach(function(l){if(N(l.children)){var m=l;n&&n(m),r(m.children)}else i&&i(l)})};e&&r(e)}},t.prototype.updateGridColumns=function(){var e=this,i=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var n=void 0;if(this.secondaryColumns&&this.secondaryBalancedTree){var r=this.secondaryColumns.every(function(m){return void 0!==e.gridColumnsMap[m.getColId()]});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,r&&(n=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,n=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&n){var l=Fn(this.groupAutoColumns.map(function(m){return[m,!0]}));n=n.filter(function(m){return!l.has(m)}),n=cr(this.groupAutoColumns,n)}this.addAutoGroupToGridColumns(),this.orderGridColsLike(n),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(m){return e.gridColumnsMap[m.getId()]=m}),this.setAutoHeightActive(),V(i,this.gridBalancedTree)||this.eventService.dispatchEvent({type:S.EVENT_GRID_COLUMNS_CHANGED})},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(r){return r.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();e!==G.ROW_MODEL_TYPE_CLIENT_SIDE&&e!==G.ROW_MODEL_TYPE_SERVER_SIDE&&Ve(function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")},"autoHeightActive.wrongRowModel")}},t.prototype.orderGridColsLike=function(e){if(!z(e)){var i=Fn(e.map(function(v,_){return[v,_]})),n=!0;if(this.gridColumns.forEach(function(v){i.has(v)&&(n=!1)}),!n){var r=Fn(this.gridColumns.map(function(v){return[v,!0]})),a=e.filter(function(v){return r.has(v)}),l=Fn(a.map(function(v){return[v,!0]})),h=this.gridColumns.filter(function(v){return!l.has(v)}),m=a.slice();h.forEach(function(v){var _=v.getOriginalParent();if(_){for(var y=[];!y.length&&_;)_.getLeafColumns().forEach(function(H){var te=m.indexOf(H)>=0,X=y.indexOf(H)<0;te&&X&&y.push(H)}),_=_.getOriginalParent();if(y.length){var R=y.map(function(H){return m.indexOf(H)}),I=Math.max.apply(Math,cr(R));lt(m,v,I+1)}else m.push(v)}else m.push(v)}),this.gridColumns=m}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.placeLockedColumns=function(e){var i=[],n=[],r=[];return e.forEach(function(a){var l=a.getColDef().lockPosition;"right"===l?r.push(a):"left"===l||!0===l?i.push(a):n.push(a)}),cr(i,n,r)},t.prototype.addAutoGroupToGridColumns=function(){if(!z(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths(),this.eventService.dispatchEvent({type:S.EVENT_DISPLAYED_COLUMNS_CHANGED})},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(i){return i.isAutoHeight()})},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.displayedColumns=this.gridOptionsWrapper.isEnableRtl()?this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var i=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),r=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(a){if(r){var l=i.getWidthOfColsInList(a);a.forEach(function(m){l-=m.getActualWidth(),m.setLeft(l,e)})}else{var h=0;a.forEach(function(m){m.setLeft(h,e),h+=m.getActualWidth()})}ot(n,a)}),n.forEach(function(a){a.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(i){i instanceof O&&i.checkLeft()})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,i){i.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(n){n instanceof Y&&i.push(n)})},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,i){var n;switch(e){case G.PINNED_LEFT:n=this.viewportRowLeft[i];break;case G.PINNED_RIGHT:n=this.viewportRowRight[i];break;default:n=this.viewportRowCenter[i]}return z(n)&&(n=[]),n},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(n){return e[n.getId()]=!0});var i=function(n,r,a){for(var l=!1,h=0;hr;return me.getFlex()&&Se},l=this.displayedColumnsCenter.filter(function(me){return!a(me)}),h=this.displayedColumnsCenter.filter(function(me){return a(me)}),m=[];if(!h.length)return[];var _,v=[];e:for(;;){var y=h.reduce(function(me,Se){return me+Se.getFlex()},0);_=this.flexViewportWidth-this.getWidthOfColsInList(l);for(var b=0;bX&&(H=X),H){R.setActualWidth(H,n),De(h,R),m.push(R),l.push(R);continue e}v[b]=Math.round(I)}break}var fe=_;return h.forEach(function(me,Se){me.setActualWidth(Math.min(v[Se],fe),n),m.push(me),fe-=v[Se]}),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(m,!0,n,h),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),h},t.prototype.sizeColumnsToFit=function(e,i,n,r){void 0===i&&(i="sizeColumnsToFit");var a,l,h,m,_,y,R,te={};r&&(null===(l=null===(a=r)||void 0===a?void 0:a.columnLimits)||void 0===l||l.forEach(function(Pi){var ls=Pi.key,Sc=function(o,t){var e={};for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&t.indexOf(i)<0&&(e[i]=o[i]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(o);n=0;ut--){var ri=me[ut],wn=null===(h=te)||void 0===h?void 0:h[ri.getId()],yi=(null===(m=wn)||void 0===m?void 0:m.minWidth)??(null===(_=r)||void 0===_?void 0:_.defaultMinWidth),Qi=(null===(y=wn)||void 0===y?void 0:y.maxWidth)??(null===(R=r)||void 0===R?void 0:R.defaultMaxWidth),Pr=ri.getMinWidth()??0,cp=ri.getMaxWidth()??Number.MAX_VALUE,Ec="number"==typeof yi&&yi>Pr?yi:ri.getMinWidth(),Dg="number"==typeof Qi&&QiDg?(as=Dg,Le(ri),Xe=!1):0===ut&&(as=It),ri.setActualWidth(as,i,!0),It-=as}}$e.forEach(function(Pi){Pi.fireColumnWidthChangedEvent(i)}),this.setLeftValues(i),this.updateBodyWidths(),!n&&this.fireColumnResizedEvent($e,!0,i)}},t.prototype.buildDisplayedTrees=function(e){var i=[],n=[],r=[];e.forEach(function(l){switch(l.getPinned()){case"left":i.push(l);break;case"right":n.push(l);break;default:r.push(l)}});var a=new Na;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,a,G.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,a,G.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,a,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var i=function(n){e.displayedColumnsAndGroupsMap[n.getUniqueId()]=n};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,i)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(i){i instanceof O&&i.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),i=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||i||e)this.groupAutoColumns=null;else{var l=this.autoGroupColService.createAutoGroupColumns(this.groupAutoColumns||[],this.rowGroupColumns);if(!this.autoColsEqual(l,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=l,!0}return!1},t.prototype.autoColsEqual=function(e,i){return V(e,i,function(n,r){return n.getColId()===r.getColId()})},t.prototype.getWidthOfColsInList=function(e){return e.reduce(function(i,n){return i+n.getActualWidth()},0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some(function(i){return i.getColDef().floatingFilter})},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),i=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&i.reverse();for(var n=0;n=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r}([we("columnUtils")],t),t}(ge),Qc=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),kp=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Qc(t,o),t.prototype.createDisplayedGroups=function(e,i,n,r,a){var m,v,l=this,h=[],_=this.mapOldGroupsById(a);return e.forEach(function(y){for(var b=l.getOriginalPathForColumn(i,y),R=[],I=!v,H=0;H=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r}([we("displayedGroupCreator")],t),t}(ge),Hp=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),jg=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.componentsMappedByName={},e}return Hp(t,o),t.prototype.setupComponents=function(e){var i=this;e&&e.forEach(function(n){return i.addComponent(n)})},t.prototype.addComponent=function(e){var n=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[n]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r}([we("agStackComponentsRegistry")],t),t}(ge),Vp=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},_s=function(){function o(t,e,i,n){void 0===n&&(n=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,e||0)),this.b=Math.min(1,Math.max(0,i||0)),this.a=Math.min(1,Math.max(0,n||0))}return o.fromString=function(t){if(t.indexOf("#")>=0)return o.fromHexString(t);var e=o.nameToHex[t];if(e)return o.fromHexString(e);if(t.indexOf("rgb")>=0)return o.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},o.parseHex=function(t){var e;switch((t=t.replace(/ /g,"").slice(1)).length){case 6:case 8:e=[];for(var i=0;i=3&&e.every(function(n){return n>=0}))return 3===e.length&&e.push(255),e},o.fromHexString=function(t){var e=o.parseHex(t);if(e){var i=Vp(e,4);return new o(i[0]/255,i[1]/255,i[2]/255,i[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},o.stringToRgba=function(t){for(var e=Vp([NaN,NaN],2),i=e[0],n=e[1],r=0;r=0?(_=Math.max(0,Math.min(100,_)),_/=100):3===r?_=Math.max(0,Math.min(1,_)):(_=Math.max(0,Math.min(255,_)),_/=255),m.push(_)}return m}},o.fromRgbaString=function(t){var e=o.stringToRgba(t);if(e){if(3===e.length)return new o(e[0],e[1],e[2]);if(4===e.length)return new o(e[0],e[1],e[2],e[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},o.fromArray=function(t){if(4===t.length)return new o(t[0],t[1],t[2],t[3]);if(3===t.length)return new o(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},o.fromHSB=function(t,e,i,n){void 0===n&&(n=1);var r=o.HSBtoRGB(t,e,i);return new o(r[0],r[1],r[2],n)},o.padHex=function(t){return 1===t.length?"0"+t:t},o.prototype.toHexString=function(){var t="#"+o.padHex(Math.round(255*this.r).toString(16))+o.padHex(Math.round(255*this.g).toString(16))+o.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=o.padHex(Math.round(255*this.a).toString(16))),t},o.prototype.toRgbaString=function(t){void 0===t&&(t=3);var e=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],i=Math.pow(10,t);return 1!==this.a?(e.push(Math.round(this.a*i)/i),"rgba("+e.join(", ")+")"):"rgb("+e.join(", ")+")"},o.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},o.prototype.toHSB=function(){return o.RGBtoHSB(this.r,this.g,this.b)},o.RGBtoHSB=function(t,e,i){var n=Math.min(t,e,i),r=Math.max(t,e,i),l=NaN;if(n!==r){var h=r-n,m=(r-t)/h,v=(r-e)/h,_=(r-i)/h;l=t===r?_-v:e===r?2+m-_:4+v-m,(l/=6)<0&&(l+=1)}return[360*l,0!==r?(r-n)/r:0,r]},o.HSBtoRGB=function(t,e,i){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var n=0,r=0,a=0;if(0===e)n=r=a=i;else{var l=6*(t-Math.floor(t)),h=l-Math.floor(l),m=i*(1-e),v=i*(1-e*h),_=i*(1-e*(1-h));switch(l>>0){case 0:n=i,r=_,a=m;break;case 1:n=v,r=i,a=m;break;case 2:n=m,r=i,a=_;break;case 3:n=m,r=v,a=i;break;case 4:n=_,r=m,a=i;break;case 5:n=i,r=m,a=v}}return[n,r,a]},o.prototype.derive=function(t,e,i,n){var r=o.RGBtoHSB(this.r,this.g,this.b),a=r[2];0==a&&i>1&&(a=.05);var l=((r[0]+t)%360+360)%360,h=Math.max(Math.min(r[1]*e,1),0);a=Math.max(Math.min(a*i,1),0);var m=Math.max(Math.min(this.a*n,1),0),v=o.HSBtoRGB(l,h,a);return v.push(m),o.fromArray(v)},o.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},o.prototype.darker=function(){return this.derive(0,1,.7,1)},o.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),o}(),zg=Object.freeze({__proto__:null,stringToArray:function Bp(o,t){void 0===t&&(t=",");var e=[],i=function(y){return"\r"===y||"\n"===y},n=!1;if(""===o)return[[""]];for(var a,l,h,r=function(y,b,R){var I=o[R-1],H=o[R],te=o[R+1],X=function(){e[y]||(e[y]=[]),e[y][b]||(e[y][b]="")};if(X(),'"'===H){if(n)return'"'===te?(e[y][b]+='"',R++):n=!1,a=y,l=b,h=R,"continue";if(void 0===I||I===t||i(I))return n=!0,a=y,l=b,h=R,"continue"}if(!n){if(H===t)return b++,X(),a=y,l=b,h=R,"continue";if(i(H))return b=0,y++,X(),"\r"===H&&"\n"===te&&R++,a=y,l=b,h=R,"continue"}e[y][b]+=H,a=y,l=b,h=R},m=0,v=0,_=0;_e)break}else if(o===e)break}return!1}function $n(o){var t=window.getComputedStyle(o),i=t.width,n=t.paddingTop,r=t.paddingRight,a=t.paddingBottom,l=t.paddingLeft,h=t.marginTop,m=t.marginRight,v=t.marginBottom,_=t.marginLeft,y=t.boxSizing;return{height:parseFloat(t.height),width:parseFloat(i),paddingTop:parseFloat(n),paddingRight:parseFloat(r),paddingBottom:parseFloat(a),paddingLeft:parseFloat(l),marginTop:parseFloat(h),marginRight:parseFloat(m),marginBottom:parseFloat(v),marginLeft:parseFloat(_),boxSizing:y}}function Vr(o){var t=$n(o);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function Cs(o){var t=$n(o);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function ed(o){var t=$n(o);return Math.ceil(o.offsetHeight+(t.marginBottom+t.marginTop))}function ws(o){var t=$n(o);return Math.ceil(o.offsetWidth+(t.marginLeft+t.marginRight))}function Br(){if("boolean"==typeof ys)return ys;var o=document.createElement("div");return o.style.direction="rtl",o.style.width="1px",o.style.height="1px",o.style.position="fixed",o.style.top="0px",o.style.overflow="hidden",o.dir="rtl",o.innerHTML='
    \n \n \n
    ',document.body.appendChild(o),o.scrollLeft=1,ys=0===Math.floor(o.scrollLeft),document.body.removeChild(o),ys}function dr(o,t){var e=o.scrollLeft;return t&&(e=Math.abs(e),fs()&&!Br()&&(e=o.scrollWidth-o.clientWidth-e)),e}function bo(o,t,e){e&&(Br()?t*=-1:(zn()||fs())&&(t=o.scrollWidth-o.clientWidth-t)),o.scrollLeft=t}function zi(o){for(;o&&o.firstChild;)o.removeChild(o.firstChild)}function Nn(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function xo(o){return null!==o.offsetParent}function vi(o){var t=document.createElement("div");return t.innerHTML=(o||"").trim(),t.firstChild}function td(o){return o&&o.clientHeight?o.clientHeight:0}function bs(o){return o&&o.clientWidth?o.clientWidth:0}function Za(o,t,e){if(!e||e.nextSibling!==t){var i=document.activeElement,n=t.contains(i);e?e.nextSibling?o.insertBefore(t,e.nextSibling):o.appendChild(t):o.firstChild&&o.firstChild!==t&&o.insertAdjacentElement("afterbegin",t),n&&i&&ms()&&i.focus({preventScroll:!0})}}function qa(o,t){for(var e=0;e1?i[1]:""},findLineByLeastSquares:function zp(o){var t=o.length,e=0;if(t<=1)return o;for(var i=0;i1?e=Math.max(e,parseInt(r[1],10)):Math.floor(n)!==n&&(e=Math.max(e,n.toString().split(".")[1].length))}for(var a=0,l=0,h=0,m=0,v=0,_=0;_'),document.body&&document.body.appendChild(e)),e.insertBefore(t,e.children[0])},bindCellRendererToHtmlElement:function Yp(o,t){o.then(function(e){var i=e.getGui();null!=i&&("object"==typeof i?t.appendChild(i):t.innerHTML=i)})}});function ci(o,t,e){o.setAttribute($p(t),e.toString())}function Zn(o,t){o.removeAttribute($p(t))}function $p(o){return"aria-"+o}function Ti(o,t){t?o.setAttribute("role",t):o.removeAttribute("role")}function Es(o){return o.isSortAscending()?"ascending":o.isSortDescending()?"descending":"none"}function ld(o){return parseInt(o.getAttribute("aria-level"),10)}function Ur(o){return parseInt(o.getAttribute("aria-posinset"),10)}function jr(o,t){var e="label";null!=t&&""!==t?ci(o,e,t):Zn(o,e)}function cd(o,t){var e="labelledby";t?ci(o,e,t):Zn(o,e)}function el(o,t){var e="description";t?ci(o,e,t):Zn(o,e)}function tl(o,t){var e="describedby";t?ci(o,e,t):Zn(o,e)}function Zp(o,t){ci(o,"level",t)}function zr(o,t){ci(o,"disabled",t)}function dd(o,t){t?ci(o,"hidden",!0):Zn(o,"hidden")}function tn(o,t){ci(o,"expanded",t)}function ud(o){Zn(o,"expanded")}function Ss(o,t){ci(o,"setsize",t)}function il(o,t){ci(o,"posinset",t)}function Yr(o,t){ci(o,"multiselectable",t)}function qp(o,t){ci(o,"rowcount",t)}function Rs(o,t){ci(o,"rowindex",t)}function pd(o,t){ci(o,"colcount",t)}function nl(o,t){ci(o,"colindex",t)}function rl(o,t){ci(o,"colspan",t)}function Qp(o,t){ci(o,"sort",t)}function hd(o){Zn(o,"sort")}function To(o,t){var e="selected";t?ci(o,e,t):Zn(o,e)}function Xp(o,t){ci(o,"checked",void 0===t?"mixed":t)}var Jp=Object.freeze({__proto__:null,setAriaRole:Ti,getAriaSortState:Es,getAriaLevel:ld,getAriaPosInSet:Ur,getAriaDescribedBy:function qg(o){return o.getAttribute("aria-describedby")||""},setAriaLabel:jr,setAriaLabelledBy:cd,setAriaDescription:el,setAriaDescribedBy:tl,setAriaLevel:Zp,setAriaDisabled:zr,setAriaHidden:dd,setAriaExpanded:tn,removeAriaExpanded:ud,setAriaSetSize:Ss,setAriaPosInSet:il,setAriaMultiSelectable:Yr,setAriaRowCount:qp,setAriaRowIndex:Rs,setAriaColCount:pd,setAriaColIndex:nl,setAriaColSpan:rl,setAriaSort:Qp,removeAriaSort:hd,setAriaSelected:To,setAriaChecked:Xp}),Os=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r};function Do(o,t,e){if(void 0===t&&(t=!0),void 0===e&&(e="-"),!o)return null;var i=[o.getFullYear(),o.getMonth()+1,o.getDate()].map(function(n){return kr(n,2)}).join(e);return t&&(i+=" "+[o.getHours(),o.getMinutes(),o.getSeconds()].map(function(n){return kr(n,2)}).join(":")),i}var ol=function(o){if(o>3&&o<21)return"th";switch(o%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Kr(o,t){void 0===t&&(t="YYYY-MM-DD");var e=kr(o.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:function(){return e.slice(e.length-4,e.length)},YY:function(){return e.slice(e.length-2,e.length)},Y:function(){return""+o.getFullYear()},MMMM:function(){return i[o.getMonth()]},MMM:function(){return i[o.getMonth()].slice(0,3)},MM:function(){return kr(o.getMonth()+1,2)},Mo:function(){return""+(o.getMonth()+1)+ol(o.getMonth()+1)},M:function(){return""+(o.getMonth()+1)},Do:function(){return""+o.getDate()+ol(o.getDate())},DD:function(){return kr(o.getDate(),2)},D:function(){return""+o.getDate()},dddd:function(){return n[o.getDay()]},ddd:function(){return n[o.getDay()].slice(0,3)},dd:function(){return n[o.getDay()].slice(0,2)},do:function(){return""+o.getDay()+ol(o.getDay())},d:function(){return""+o.getDay()}},a=new RegExp(Object.keys(r).join("|"),"g");return t.replace(a,function(l){return l in r?r[l]():l})}function En(o){if(!o)return null;var t=Os(o.split(" "),2),e=t[0],i=t[1];if(!e)return null;var n=e.split("-").map(function(R){return parseInt(R,10)});if(3!==n.filter(function(R){return!isNaN(R)}).length)return null;var r=Os(n,3),a=r[0],l=r[1],h=r[2],m=new Date(a,l-1,h);if(m.getFullYear()!==a||m.getMonth()!==l-1||m.getDate()!==h)return null;if(!i||"00:00:00"===i)return m;var v=Os(i.split(":").map(function(R){return parseInt(R,10)}),3),_=v[0],y=v[1],b=v[2];return _>=0&&_<24&&m.setHours(_),y>=0&&y<60&&m.setMinutes(y),b>=0&&b<60&&m.setSeconds(b),m}var $r=Object.freeze({__proto__:null,serialiseDate:Do,dateToFormattedString:Kr,parseDateTimeFromString:En}),Ts={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function Gi(o,t,e){var i=Jt(o,t,e);if(i&&i.className.indexOf("ag-icon")>-1)return i;var n=document.createElement("span");return n.appendChild(i),n}function Jt(o,t,e,i){var n=null,r=e&&e.getColDef().icons;if(r&&(n=r[o]),t&&!n){var a=t.getIcons();a&&(n=a[o])}if(!n){var h=document.createElement("span"),m=Ts[o];return m||(i?m=o:(console.warn("AG Grid: Did not find icon "+o),m="")),h.setAttribute("class","ag-icon ag-icon-"+m),h.setAttribute("unselectable","on"),Ti(h,"presentation"),h}var l=void 0;if("function"==typeof n)l=n();else{if("string"!=typeof n)throw new Error("icon from grid options needs to be a string or a function");l=n}return"string"==typeof l?vi(l):Ro(l)?l:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var fd=Object.freeze({__proto__:null,iconNameClassMap:Ts,createIcon:Gi,createIconNoSpan:Jt}),le=function(){function o(){}return o.BACKSPACE="Backspace",o.TAB="Tab",o.ENTER="Enter",o.ESCAPE="Escape",o.SPACE=" ",o.LEFT="ArrowLeft",o.UP="ArrowUp",o.RIGHT="ArrowRight",o.DOWN="ArrowDown",o.DELETE="Delete",o.F2="F2",o.PAGE_UP="PageUp",o.PAGE_DOWN="PageDown",o.PAGE_HOME="Home",o.PAGE_END="End",o.A="KeyA",o.C="KeyC",o.V="KeyV",o.D="KeyD",o.Z="KeyZ",o.Y="KeyY",o}();function md(o){if(o.altKey||o.ctrlKey||o.metaKey)return!1;var t=1===o.key.length,e=function gd(o){return Gr()&&"Del"===o.key&&46===o.charCode}(o);return t||e}function Ms(o,t,e,i,n){var r=o.getSuppressKeyboardEventFunc(),a=i?i.getColDef().suppressKeyboardEvent:void 0;if(!r&&!a)return!1;var l={event:t,editing:n,column:i,api:o.getApi(),node:e,data:e.data,colDef:i.getColDef(),context:o.getContext(),columnApi:o.getColumnApi()};return!(!a||!a(l))||!!r&&r(l)}function sl(o,t,e,i){var n=i.getDefinition(),r=n&&n.suppressHeaderKeyboardEvent;return!!N(r)&&!!r({api:o.getApi(),columnApi:o.getColumnApi(),context:o.getContext(),colDef:n,column:i,headerRowIndex:e,event:t})}function qn(o){var e;switch(o.keyCode){case 65:e=le.A;break;case 67:e=le.C;break;case 86:e=le.V;break;case 68:e=le.D;break;case 90:e=le.Z;break;case 89:e=le.Y;break;default:e=o.code}return e}function Yi(o,t){return void 0===t&&(t=!1),o===le.DELETE||!t&&o===le.BACKSPACE&&Wa()}var eh=Object.freeze({__proto__:null,isEventFromPrintableCharacter:md,isUserSuppressingKeyboardEvent:Ms,isUserSuppressingHeaderKeyboardEvent:sl,normaliseQwertyAzerty:qn,isDeleteKey:Yi});function As(o,t,e){if(0===e)return!1;var i=Math.abs(o.clientX-t.clientX),n=Math.abs(o.clientY-t.clientY);return Math.max(i,n)<=e}var th=Object.freeze({__proto__:null,areEventsNear:As}),al=Object.freeze({__proto__:null,sortRowNodesByOrder:function ih(o,t){if(!o)return!1;for(var e=function(l,h){var m=t[l.id],v=t[h.id],_=void 0!==m,y=void 0!==v;return _&&y?m-v:_||y?_?1:-1:l.__objectId-h.__objectId},r=!1,a=0;a0){r=!0;break}return!!r&&(o.sort(e),!0)},traverseNodesWithKey:function nh(o,t){var e=[];!function i(n){!n||n.forEach(function(r){if(r.group||r.hasChildren()){e.push(r.key);var a=e.join("|");t(r,a),i(r.childrenAfterGroup),e.pop()}})}(o)}});function ll(o){var t=new Set;return o.forEach(function(e){return t.add(e)}),t}var Qn=Object.freeze({__proto__:null,convertToSet:ll}),zt=function(){return zt=Object.assign||function(o){for(var t,e=1,i=arguments.length;e(function(o){o[o.IN_PROGRESS=0]="IN_PROGRESS",o[o.RESOLVED=1]="RESOLVED"}(ur||(ur={})),ur))(),Ei=function(){function o(t){var e=this;this.status=ur.IN_PROGRESS,this.resolution=null,this.waiters=[],t(function(i){return e.onDone(i)},function(i){return e.onReject(i)})}return o.all=function(t){return new o(function(e){var i=t.length,n=new Array(i);t.forEach(function(r,a){r.then(function(l){n[a]=l,0==--i&&e(n)})})})},o.resolve=function(t){return void 0===t&&(t=null),new o(function(e){return e(t)})},o.prototype.then=function(t){var e=this;return new o(function(i){e.status===ur.RESOLVED?i(t(e.resolution)):e.waiters.push(function(n){return i(t(n))})})},o.prototype.resolveNow=function(t,e){return this.status===ur.RESOLVED?e(this.resolution):t},o.prototype.onDone=function(t){this.status=ur.RESOLVED,this.resolution=t,this.waiters.forEach(function(e){return e(t)})},o.prototype.onReject=function(t){console.warn("TBI")},o}(),vd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ps=function(){return Ps=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ki=(()=>(function(o){o[o.NOTHING=0]="NOTHING",o[o.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",o[o.SHOWING=2]="SHOWING"}(Ki||(Ki={})),Ki))(),Is=function(o){function t(e){var i=o.call(this)||this;return i.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,i.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.state=Ki.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i.parentComp=e,i}return vd(t,o),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),o.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!Yn()&&this.state==Ki.NOTHING){var i=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),i),this.lastMouseEvent=e,this.state=Ki.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Ki.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Ki.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Ki.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=Ki.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var i=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout(function(){i(),e.getContext().destroyBean(n)},this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime1)i.forEach(function(a){return e.addCssClass(a)});else if(!0!==this.cssClassStates[t]&&t.length){var r=this.getGui();r&&r.classList.add(t),this.cssClassStates[t]=!0}},o.prototype.removeCssClass=function(t){var e=this,i=(t||"").split(" ");if(i.length>1)i.forEach(function(a){return e.removeCssClass(a)});else if(!1!==this.cssClassStates[t]&&t.length){var r=this.getGui();r&&r.classList.remove(t),this.cssClassStates[t]=!1}},o.prototype.containsCssClass=function(t){var e=this.getGui();return!!e&&e.classList.contains(t)},o.prototype.addOrRemoveCssClass=function(t,e){var i=this;if(t){if(t.indexOf(" ")>=0){var n=(t||"").split(" ");if(n.length>1)return void n.forEach(function(l){return i.addOrRemoveCssClass(l,e)})}if(this.cssClassStates[t]!==e&&t.length){var a=this.getGui();a&&a.classList.toggle(t,e),this.cssClassStates[t]=e}}},o}(),Fs=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ls=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yd=new Zr,Je=function(o){function t(e){var i=o.call(this)||this;return i.displayed=!0,i.visible=!0,i.compId=yd.next(),i.cssClassManager=new _d(function(){return i.eGui}),e&&i.setTemplate(e),i}return Fs(t,o),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var i=this;this.tooltipText!=e&&(this.tooltipText&&(i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new Is(i)))))},t.prototype.createChildComponentsFromTags=function(e,i){var n=this;sd(e.childNodes).forEach(function(a){if(a instanceof HTMLElement){var l=n.createComponentFromElement(a,function(m){m.getGui()&&n.copyAttributesFromNode(a,m.getGui())},i);if(l){if(l.addItems&&a.children.length){n.createChildComponentsFromTags(a,i);var h=Array.prototype.slice.call(a.children);l.addItems(h)}n.swapComponentForNode(l,e,a)}else a.childNodes&&n.createChildComponentsFromTags(a,i)}})},t.prototype.createComponentFromElement=function(e,i,n){var r=e.nodeName,a=n?n[e.getAttribute("ref")]:void 0,l=this.agStackComponentsRegistry.getComponentClass(r);if(l){t.elementGettingCreated=e;var h=new l(a);return h.setParentComponent(this),this.createBean(h,null,i),h}return null},t.prototype.copyAttributesFromNode=function(e,i){xn(e.attributes,function(n,r){return i.setAttribute(n,r)})},t.prototype.swapComponentForNode=function(e,i,n){var r=e.getGui();i.replaceChild(r,n),i.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,i){var n=this;this.iterateOverQuerySelectors(function(r){n[r.attributeName]===i&&(n[r.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var i=Object.getPrototypeOf(this);null!=i;){var n=i.__agComponentMetaData,r=li(i.constructor);n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach(function(a){return e(a)}),i=Object.getPrototypeOf(i)}},t.prototype.setTemplate=function(e,i){var n=vi(e);this.setTemplateFromElement(n,i)},t.prototype.setTemplateFromElement=function(e,i){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),i)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var i=this;this.iterateOverQuerySelectors(function(n){var r=function(h){return i[n.attributeName]=h};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)r(e.eGui);else{var l=e.eGui.querySelector(n.querySelector);l&&r(l.__agComponent||l)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,i){null!=e&&(i||(i=this.eGui),Ro(e)?i.appendChild(e):i.appendChild(e.getGui()))},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,Jc(this.eGui,e))},t.prototype.setDisplayed=function(e){e!==this.displayed&&(this.displayed=e,Lt(this.eGui,e),this.dispatchEvent({type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed}))},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),o.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,i){var n=this;this.eGui.addEventListener(e,i),this.addDestroyFunc(function(){return n.eGui.removeEventListener(e,i)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,i){this.cssClassManager.addOrRemoveCssClass(e,i)},t.prototype.getAttribute=function(e){var i=this.eGui;return i?i.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Ls([w("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Ls([wi],t.prototype,"preConstructOnComponent",null),Ls([wi],t.prototype,"createChildComponentsPreConstruct",null),t}(ge);function ce(o){return cl.bind(this,"[ref="+o+"]",o)}function cl(o,t,e,i,n){null!==o?"number"!=typeof n?function Cd(o,t,e){var i=function dl(o,t){return o.__agComponentMetaData||(o.__agComponentMetaData={}),o.__agComponentMetaData[t]||(o.__agComponentMetaData[t]={}),o.__agComponentMetaData[t]}(o,li(o.constructor));i[t]||(i[t]=[]),i[t].push(e)}(e,"querySelectors",{attributeName:i,querySelector:o,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var wd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ns=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},bd=function(o){function t(){return o.call(this,'\n ')||this}return wd(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var i=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(i+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var i=this;e?this.params.parentFilterInstance(function(n){if(n.getModelAsString){var r=n.getModelAsString(e);i.eFloatingFilterText.setValue(r)}}):this.eFloatingFilterText.setValue("")},Ns([ce("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Ns([w("columnModel")],t.prototype,"columnModel",void 0),t}(Je),ul=function(){function o(t,e,i,n){var r=this;this.alive=!0,this.context=t,this.eParent=n,e.getDateCompDetails(i).newAgStackInstance().then(function(h){r.alive?(r.dateComp=h,h&&(n.appendChild(h.getGui()),h.afterGuiAttached&&h.afterGuiAttached(),r.tempValue&&h.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):t.destroyBean(h)})}return o.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},o.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},o.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},o.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},o.prototype.setDisplayed=function(t){Lt(this.eParent,t)},o.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},o.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},o.prototype.afterGuiAttached=function(t){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},o.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},o}(),Gs=function(){return Gs=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},o.prototype.getDefaultOption=function(){return this.defaultOption},o.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},o}(),Hs={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},xd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vs=function(){return Vs=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Zt=function(o){function t(e,i){void 0===i&&(i={});var n=o.call(this)||this;return n.eFocusableElement=e,n.callbacks=i,n.callbacks=Vs({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(r){if(!r.defaultPrevented){var a=n.focusService.findNextFocusableElement(n.eFocusableElement,!1,r.shiftKey);!a||(a.focus(),r.preventDefault())}}},i),n}return xd(t,o),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var i=this;this.addManagedListener(e,"keydown",function(n){if(!n.defaultPrevented&&!jt(n)){if(i.callbacks.shouldStopEventPropagation(n))return void Rt(n);n.key===le.TAB?i.callbacks.onTabKeyDown(n):i.callbacks.handleKeyDown&&i.callbacks.handleKeyDown(n)}})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",pl([w("focusService")],t.prototype,"focusService",void 0),pl([ve],t.prototype,"postConstruct",null),t}(ge),Gn=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),hl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},fl=function(o){function t(e){var i=o.call(this)||this;return i.filterNameKey=e,i.applyActive=!1,i.hidePopup=null,i.appliedModel=null,i}return Gn(t,o),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Zt(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit);var n='\n
    \n
    \n '+this.createBodyTemplate()+"\n
    \n
    ";this.setTemplate(n,e),(i=this.getGui())&&i.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var i=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){i.updateUiVisibility(),i.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,i=this.providedFilterParams.buttons;if(!(!i||i.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel"),ll(i).forEach(function(a){return function(a){var l,h;switch(a){case"apply":l=e.translate("applyFilter"),h=function(_){return e.onBtApply(!1,!1,_)};break;case"clear":l=e.translate("clearFilter"),h=function(){return e.onBtClear()};break;case"reset":l=e.translate("resetFilter"),h=function(){return e.onBtReset()};break;case"cancel":l=e.translate("cancelFilter"),h=function(_){e.onBtCancel(_)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var v=vi(''+l+"\n ");n.appendChild(v),e.addManagedListener(v,"click",h)}(a)}),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=Oe(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var i=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then(function(){i.updateUiVisibility(),i.applyModel()})},t.prototype.onBtCancel=function(e){var i=this,n=this.getModel(),r=function(){i.onUiChanged(!1,"prevent"),i.providedFilterParams.closeOnApply&&i.close(e)};null!=n?this.setModelIntoUi(n).then(r):this.resetUiToDefaults().then(r)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var i=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(i,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),n&&n.preventDefault(),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:i}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!i&&this.close(n)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var r,n=e&&e.key;("Enter"===n||"Space"===n)&&(r={keyboardEvent:e}),this.hidePopup(r),this.hidePopup=null}},t.prototype.onUiChanged=function(e,i){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());Hr(this.getRefElement("applyFilterButton"),!n)}e&&!i||"immediately"===i?this.onBtApply(e):(!this.applyActive&&!i||"debounce"===i)&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,i){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:i},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,o.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,Hs[e])},t.prototype.getCellValue=function(e){var i=this.providedFilterParams;return this.providedFilterParams.valueGetter({api:i.api,colDef:i.colDef,column:i.column,columnApi:i.columnApi,context:i.context,data:e.data,getValue:function(m){return e.data[m]},node:e})},hl([w("rowModel")],t.prototype,"rowModel",void 0),hl([ve],t.prototype,"postConstruct",null),t}(Je),rv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ml=function(o){function t(e,i){var n=o.call(this,i)||this;return n.labelSeparator="",n.labelAlignment="left",n.disabled=!1,n.label="",n.config=e||{},n}return rv(t,o),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,i=e.labelSeparator,n=e.label,r=e.labelWidth,a=e.labelAlignment;null!=i&&this.setLabelSeparator(i),null!=n&&this.setLabel(n),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(a||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){zi(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Ti(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Ti(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var n=this.getGui().classList;return n.toggle("ag-label-align-left","left"===e),n.toggle("ag-label-align-right","right"===e),n.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||mn(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var i=this.getGui();return Hr(i,e),i.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(Je),gl=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nn=function(o){function t(e,i,n){var r=o.call(this,e,i)||this;return r.className=n,r}return gl(t,o),t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var i=this;return this.addManagedListener(this,t.EVENT_CHANGED,function(){return e(i.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return gn(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,i){return this.value===e||(this.previousValue=this.value,this.value=e,i||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED="valueChange",t}(ml),ah=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ed=function(o){function t(e,i,n,r){var a=o.call(this,e,'',i)||this;return a.pickerIcon=n,a.isPickerDisplayed=!1,a.isDestroyingPicker=!1,a.skipClick=!1,a}return ah(t,o),t.prototype.postConstruct=function(){var e=this;o.prototype.postConstruct.call(this);var i=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",i),tl(this.eWrapper,i);var n=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",function(l){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&xo(e.pickerComponent.getGui())&&r.contains(l.target)&&(e.skipClick=!0)}),this.addManagedListener(r,"keydown",function(l){switch(l.key){case le.UP:case le.DOWN:case le.ENTER:case le.SPACE:n();case le.ESCAPE:e.isPickerDisplayed&&l.preventDefault()}}),this.addManagedListener(this.eWrapper,"click",n),this.addManagedListener(this.eLabel,"click",n),this.pickerIcon){var a=Jt(this.pickerIcon,this.gridOptionsWrapper);a&&this.eIcon.appendChild(a)}},t.prototype.refreshLabel=function(){N(this.getLabel())?cd(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),o.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return jr(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return mn(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Qr([ce("eLabel")],t.prototype,"eLabel",void 0),Qr([ce("eWrapper")],t.prototype,"eWrapper",void 0),Qr([ce("eDisplayField")],t.prototype,"eDisplayField",void 0),Qr([ce("eIcon")],t.prototype,"eIcon",void 0),t}(nn),ov=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),lh=function(o){function t(e){void 0===e&&(e="default");var i=o.call(this,'
    ')||this;return i.cssIdentifier=e,i.options=[],i.itemEls=[],i}return ov(t,o),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var i=e.key;switch(i){case le.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case le.DOWN:case le.UP:var r=i===le.DOWN,a=void 0;if(e.preventDefault(),this.highlightedEl){var h=this.itemEls.indexOf(this.highlightedEl)+(r?1:-1);h=Math.min(Math.max(h,0),this.itemEls.length-1),a=this.itemEls[h]}else a=this.itemEls[r?0:this.itemEls.length-1];this.highlightItem(a)}},t.prototype.addOptions=function(e){var i=this;return e.forEach(function(n){return i.addOption(n)}),this},t.prototype.addOption=function(e){var i=e.value,r=en(e.text||i);return this.options.push({value:i,text:r}),this.renderOption(i,r),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(i,n){il(i,n+1),Ss(i,e.length)})},t.prototype.renderOption=function(e,i){var n=this,r=document.createElement("div");Ti(r,"option"),r.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),r.innerHTML=""+i+"",r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,"mouseover",function(){return n.highlightItem(r)}),this.addManagedListener(r,"mouseleave",function(){return n.clearHighlighted()}),this.addManagedListener(r,"click",function(){return n.setValue(e)}),this.getGui().appendChild(r)},t.prototype.setValue=function(e,i){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=this.options.findIndex(function(a){return a.value===e});if(-1!==n){var r=this.options[n];this.value=r.value,this.displayValue=null!=r.text?r.text:r.value,this.highlightItem(this.itemEls[n]),i||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var i=this.options.findIndex(function(n){return n.value===e.value});-1!==i&&this.highlightItem(this.itemEls[i])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){!e.offsetParent||(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),To(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){!this.highlightedEl||!this.highlightedEl.offsetParent||(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),To(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:nn.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"init",null),t}(Je),av=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ch=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},dh=function(o){function t(e){return o.call(this,e,"ag-select","smallDown","listbox")||this}return av(t,o),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new lh("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,lh.EVENT_ITEM_SELECTED,function(){e.hideList&&e.hideList()}),this.listComponent.addManagedListener(this.listComponent,nn.EVENT_CHANGED,function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()})},t.prototype.showPicker=function(){var e=this,i=this.listComponent.getGui(),n=this.gridOptionsWrapper.getDocument(),r=this.addManagedListener(n.body,"wheel",function(m){!i.contains(m.target)&&e.hideList&&e.hideList()}),a=this.addManagedListener(i,"focusout",function(m){!i.contains(m.relatedTarget)&&e.hideList&&e.hideList()}),l=this.gridOptionsWrapper.getLocaleTextFunc(),h=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,a(),r(),e.isAlive()&&(tn(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:l("ariaLabelSelectField","Select Field")});return h&&(this.hideList=h.hideFunc),this.isPickerDisplayed=!0,mn(i,ws(this.eWrapper)),tn(this.eWrapper,!0),i.style.maxHeight=Vr(this.popupService.getPopupParent())+"px",i.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:i,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var i=this;return e.forEach(function(n){return i.addOption(n)}),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(e,i,n){return this.value===e?this:(n||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),o.prototype.setValue.call(this,e,i)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),o.prototype.destroy.call(this)},ch([w("popupService")],t.prototype,"popupService",void 0),ch([ve],t.prototype,"init",null),t}(Ed),lv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),vl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Sn=function(o){function t(e,i,n,r){void 0===n&&(n="text"),void 0===r&&(r="input");var a=o.call(this,e,'\n
    \n
    \n \n
    ",i)||this;return a.inputType=n,a.displayFieldTag=r,a}return lv(t,o),t.prototype.postConstruct=function(){o.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,i=e.width,n=e.value;null!=i&&this.setWidth(i),null!=n&&this.setValue(n),this.addInputListeners()},t.prototype.refreshLabel=function(){N(this.getLabel())?cd(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),o.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(i){return e.setValue(i.target.value)})},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return mn(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Oo(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return jr(this.eInput,e),this},t.prototype.setDisabled=function(e){return Hr(this.eInput,e),o.prototype.setDisabled.call(this,e)},vl([ce("eLabel")],t.prototype,"eLabel",void 0),vl([ce("eWrapper")],t.prototype,"eWrapper",void 0),vl([ce("eInput")],t.prototype,"eInput",void 0),t}(nn),uh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),pr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},_i=(()=>(function(o){o[o.One=0]="One",o[o.Two=1]="Two"}(_i||(_i={})),_i))(),Ht=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return uh(t,o),t.prototype.getNumberOfInputs=function(e){var i=this.optionsFactory.getCustomOption(e);return i?i.numberOfInputs??1:e&&[t.EMPTY,t.NOT_BLANK,t.BLANK].indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,i){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(i),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(_i.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(_i.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(_i.One),condition2:this.createCondition(_i.Two)}:this.createCondition(_i.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,i){if(!e&&!i)return!0;if(!e&&i||e&&!i)return!1;var l,n=!e.operator,r=!i.operator;if(!n&&r||n&&!r)return!1;if(n)l=this.areSimpleModelsEqual(e,i);else{var v=e,_=i;l=v.operator===_.operator&&this.areSimpleModelsEqual(v.condition1,_.condition1)&&this.areSimpleModelsEqual(v.condition2,_.condition2)}return l},t.prototype.setModelIntoUi=function(e){if(e.operator){var n=e,r="OR"===n.operator;this.eJoinOperatorAnd.setValue(!r),this.eJoinOperatorOr.setValue(r),this.eType1.setValue(n.condition1.type),this.eType2.setValue(n.condition2.type),this.setConditionIntoUi(n.condition1,_i.One),this.setConditionIntoUi(n.condition2,_i.Two)}else{var a=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(a.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(a,_i.One),this.setConditionIntoUi(null,_i.Two)}return Ei.resolve()},t.prototype.doesFilterPass=function(e){var i=this,n=this.getModel();if(null==n)return!0;var r=n.operator,a=[];return r?a.push(n.condition1,n.condition2):a.push(n),a[r&&"OR"===r?"some":"every"](function(m){return i.individualConditionPasses(e,m)})},t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.optionsFactory=new ks,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.allowTwoConditions=!e.suppressAndOrCondition,this.alwaysShowBothConditions=!!e.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return St(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,i=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];i.forEach(function(r){var a="string"==typeof r?e.createBoilerplateListOption(r):e.createCustomListOption(r);n.forEach(function(l){return l.addOption(a)})}),n.forEach(function(r){return r.setDisabled(i.length<=1)})},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var i=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:i,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(i)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n \n '+this.createValueTemplate(_i.One)+'\n
    \n \n \n
    \n \n '+this.createValueTemplate(_i.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,n=[this.eCondition1Body,this.eCondition2Body];[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]].forEach(function(r,a){var l=e.isConditionVisible(a),h=e.isConditionDisabled(a);r.forEach(function(m){m instanceof Sn||m instanceof dh?(m.setDisabled(h),m.setDisplayed(l)):(Hr(m,h),Lt(m,l))})}),n.forEach(function(r,a){Lt(r,e.isConditionBodyVisible(a))}),this.forEachInput(function(r,a,l,h){e.setElementDisplayed(r,a1?"inRangeStart":0===r?"filterOoo":"inRangeEnd",m=0===r&&l>1?i("ariaFilterFromValue","Filter from value"):0===r?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.getPlaceholderText(h,a)),n.setInputAriaLabel(m)}})},t.prototype.setElementValue=function(e,i,n){e instanceof Sn&&e.setValue(null!=i?String(i):null,n)},t.prototype.setElementDisplayed=function(e,i){e instanceof Je&&Lt(e.getGui(),i)},t.prototype.setElementDisabled=function(e,i){e instanceof Je&&Hr(e.getGui(),i)},t.prototype.attachElementOnChange=function(e,i){e instanceof Sn&&e.onValueChange(i)},t.prototype.forEachInput=function(e){var i=this,n=this.getInputs();this.getConditionTypes().forEach(function(r,a){for(var l=i.getNumberOfInputs(r),h=0;h0},t.prototype.isConditionUiComplete=function(e){return!(this.getConditionTypes()[e]===t.EMPTY||this.getValues(e).some(function(n){return null==n}))},t.prototype.resetUiToDefaults=function(e){var i=this,r=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),a="ag-simple-filter-and-or-"+this.getCompId(),l=this.optionsFactory.getDefaultOption();return this.eType1.setValue(l,e).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(a).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(a).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput(function(h){i.setElementValue(h,null,e),i.setElementDisabled(h,i.isReadOnly())}),this.resetPlaceholder(),Ei.resolve()},t.prototype.setConditionIntoUi=function(e,i){var n=this,r=this.mapValuesFromModel(e);this.forEachInput(function(a,l,h,m){h===i&&n.setElementValue(a,null!=r[l]?r[l]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var i=this;this.forEachInput(function(n,r,a,l){i.setElementValue(n,0===r&&0===a?e:null)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var i=function(){return e.onUiChanged()};this.eType1.onValueChange(i),this.eType2.onValueChange(i),this.eJoinOperatorOr.onValueChange(i),this.eJoinOperatorAnd.onValueChange(i),this.forEachInput(function(n){e.attachElementOnChange(n,i)})}},t.prototype.individualConditionPasses=function(e,i){var n=this.getCellValue(e.node),r=this.mapValuesFromModel(i),a=this.optionsFactory.getCustomOption(i.type);return this.evaluateCustomFilter(a,r,n)??(null==n?this.evaluateNullValue(i.type):this.evaluateNonNullValue(r,n,i,e))},t.prototype.evaluateCustomFilter=function(e,i,n){if(null!=e){var r=e.predicate;if(null!=r&&!i.some(function(a){return null==a}))return r(i,n)}},t.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",pr([ce("eOptions1")],t.prototype,"eType1",void 0),pr([ce("eOptions2")],t.prototype,"eType2",void 0),pr([ce("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),pr([ce("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),pr([ce("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),pr([ce("eCondition1Body")],t.prototype,"eCondition1Body",void 0),pr([ce("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(fl),Mo=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ei=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Mo(t,o),t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.scalarFilterParams=e},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,i,n){var r=this.comparator(),a=null!=e[0]?r(e[0],i):0;switch(n.type){case t.EQUALS:return 0===a;case t.NOT_EQUAL:return 0!==a;case t.GREATER_THAN:return a>0;case t.GREATER_THAN_OR_EQUAL:return a>=0;case t.LESS_THAN:return a<0;case t.LESS_THAN_OR_EQUAL:return a<=0;case t.IN_RANGE:var l=r(e[1],i);return this.scalarFilterParams.inRangeInclusive?a>=0&&l<=0:a>0&&l<0;case t.BLANK:return this.isBlank(i);case t.NOT_BLANK:return!this.isBlank(i);default:return console.warn('AG Grid: Unexpected type of filter "'+n.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Ht),Xr=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),hr=function(){return hr=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yl=function(o){function t(){var e=o.call(this,"dateFilter")||this;return e.minValidYear=1e3,e.maxValidYear=1/0,e}return Xr(t,o),t.prototype.afterGuiAttached=function(e){o.prototype.afterGuiAttached.call(this,e),this.dateCondition1FromComp.afterGuiAttached(e)},t.prototype.mapValuesFromModel=function(e){var i=e||{},n=i.dateFrom,r=i.dateTo,a=i.type;return[n&&En(n)||null,r&&En(r)||null].slice(0,this.getNumberOfInputs(a))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,i){return null==i||ie?1:0},t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.dateFilterParams=e;var i=function(n,r){if(null!=e[n]){if(!isNaN(e[n]))return null==e[n]?r:Number(e[n]);console.warn("AG Grid: DateFilter "+n+" is not a number")}return r};this.minValidYear=i("minValidYear",1e3),this.maxValidYear=i("maxValidYear",1/0),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,i=function(n){return new ul(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},n)};this.dateCondition1FromComp=i(this.eCondition1PanelFrom),this.dateCondition1ToComp=i(this.eCondition1PanelTo),this.dateCondition2FromComp=i(this.eCondition2PanelFrom),this.dateCondition2ToComp=i(this.eCondition2PanelTo),this.addDestroyFunc(function(){e.forEachInput(function(n){return n.destroy()})})},t.prototype.setElementValue=function(e,i,n){e.setDate(i)},t.prototype.setElementDisplayed=function(e,i){e.setDisplayed(i)},t.prototype.setElementDisabled=function(e,i){e.setDisabled(i)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var i=e===_i.One?"1":"2";return'\n
    \n
    \n
    \n
    '},t.prototype.isConditionUiComplete=function(e){var i=this;if(!o.prototype.isConditionUiComplete.call(this,e))return!1;var r=!0;return this.forEachInput(function(a,l,h,m){h!==e||!r||l>=m||(r=r&&function(a){return null!=a&&a.getUTCFullYear()>=i.minValidYear&&a.getUTCFullYear()<=i.maxValidYear}(a.getDate()))}),r},t.prototype.areSimpleModelsEqual=function(e,i){return e.dateFrom===i.dateFrom&&e.dateTo===i.dateTo&&e.type===i.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var i=this.getConditionTypes()[e],n={},r=this.getValues(e);return r.length>0&&(n.dateFrom=Do(r[0])),r.length>1&&(n.dateTo=Do(r[1])),hr({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:i},n)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput(function(r){r.setInputPlaceholder(i),r.setInputAriaLabel(n)})},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var i=[];return this.forEachInput(function(n,r,a,l){e===a&&r=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},wl=function(o){function t(){return o.call(this,'\n ')||this}return Sd(t,o),t.prototype.getDefaultFilterOptions=function(){return yl.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,i){var n=e.type,a=n==Ht.IN_RANGE||2===(i||{}).numberOfInputs,l=En(e.dateFrom),h=En(e.dateTo),m=this.filterParams.inRangeFloatingFilterDateFormat;return a?(null!==l?Kr(l,m):"null")+"-"+(null!==h?Kr(h,m):"null"):null!=l?Kr(l,m):""+n},t.prototype.init=function(e){o.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent();var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(i("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){Lt(this.eDateWrapper,e),Lt(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,i){if(!this.isEventFromFloatingFilter(i)){o.prototype.setLastTypeFromModel.call(this,e);var n=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);this.setEditable(n),n?(this.dateComp.setDate(e?En(e.dateFrom):null),this.eReadOnlyText.setValue("")):(this.eReadOnlyText.setValue(this.getTextFromModel(e)),this.dateComp.setDate(null))}},t.prototype.onDateChanged=function(){var e=this,n=Do(this.dateComp.getDate());this.params.parentFilterInstance(function(r){if(r){var a=En(n);r.onFloatingFilterChanged(e.getLastType()||null,a)}})},t.prototype.createDateComponent=function(){var e=this,i=fl.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:Oe(this.onDateChanged.bind(this),i),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new ul(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},Us([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Us([ce("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Us([ce("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Cl),cv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ph=function(o){function t(){return o.call(this,'\n
    \n \n
    ')||this}return cv(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this,n=this.gridOptionsWrapper.getDocument(),r=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(r.type="date"),this.addManagedListener(r,"mousedown",function(){i.eDateInput.isDisabled()||r.focus()}),this.addManagedListener(r,"input",function(m){m.target===n.activeElement&&(i.eDateInput.isDisabled()||e.onDateChanged())});var a=e.filterParams||{},l=a.minValidYear,h=a.maxValidYear;l&&(r.min=l+"-01-01"),h&&(r.max=h+"-12-31")},t.prototype.getDate=function(){return En(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Do(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:fs()||Nc()},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ce("eDateInput")],t.prototype,"eDateInput",void 0),t}(Je),uv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},js=function(o){function t(){return o.call(this,"numberFilter")||this}return uv(t,o),t.prototype.mapValuesFromModel=function(e){var i=e||{};return[i.filter??null,i.filterTo??null].slice(0,this.getNumberOfInputs(i.type))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,i){return e===i?0:e\n <'+r+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'">\n <"+r+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'">\n "},t.prototype.getValues=function(e){var i=this,n=[];return this.forEachInput(function(r,a,l,h){e===l&&a0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(fs()||Gr()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[ei.EQUALS,ei.NOT_EQUAL,ei.LESS_THAN,ei.LESS_THAN_OR_EQUAL,ei.GREATER_THAN,ei.GREATER_THAN_OR_EQUAL,ei.IN_RANGE,ei.BLANK,ei.NOT_BLANK],Xn([ce("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),Xn([ce("eValue-index1-1")],t.prototype,"eValueTo1",void 0),Xn([ce("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),Xn([ce("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(ei),zs=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jn=function(){return Jn=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Jr=function(o){function t(){return o.call(this,"textFilter")||this}return zs(t,o),t.trimInput=function(e){var i=e&&e.trim();return""===i?e:i},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.textFilterParams=e,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Fe.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(i){return e(i.filterOption,i.value,i.filterText)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var i=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:i},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var i=this,n=[];return this.forEachInput(function(r,a,l,h){if(e===l&&a\n \n \n '},t.prototype.mapValuesFromModel=function(e){var i=e||{};return[i.filter||null,i.filterTo||null].slice(0,this.getNumberOfInputs(i.type))},t.prototype.evaluateNullValue=function(e){return!!e&&[Ht.NOT_EQUAL,Ht.NOT_CONTAINS,Ht.BLANK].indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,i,n,r){var a=this,l=e.map(function(te){return a.formatter(te)})||[],h=this.formatter(i),m=this.textFilterParams,v=m.api,_=m.colDef,y=m.column,b=m.columnApi,R=m.context,I=m.textFormatter;if(n.type===Ht.BLANK)return this.isBlank(i);if(n.type===Ht.NOT_BLANK)return!this.isBlank(i);var H={api:v,colDef:_,column:y,columnApi:b,context:R,node:r.node,data:r.data,filterOption:n.type,value:h,textFormatter:I};return l.some(function(te){return a.matcher(Jn(Jn({},H),{filterText:te}))})},t.DEFAULT_FILTER_OPTIONS=[Ht.CONTAINS,Ht.NOT_CONTAINS,Ht.EQUALS,Ht.NOT_EQUAL,Ht.STARTS_WITH,Ht.ENDS_WITH,Ht.BLANK,Ht.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.value,r=e.filterText;if(null==r)return!1;switch(e.filterOption){case t.CONTAINS:return n.indexOf(r)>=0;case t.NOT_CONTAINS:return n.indexOf(r)<0;case t.EQUALS:return n===r;case t.NOT_EQUAL:return n!=r;case t.STARTS_WITH:return 0===n.indexOf(r);case t.ENDS_WITH:var a=n.lastIndexOf(r);return a>=0&&a===n.length-r.length;default:return!1}},mr([ce("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),mr([ce("eValue-index1-1")],t.prototype,"eValueTo1",void 0),mr([ce("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),mr([ce("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Ht),hh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ao=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Po=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return hh(t,o),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n \n ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,i){this.isEventFromFloatingFilter(i)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(e){o.prototype.init.call(this,e),this.params=e,this.applyActive=fl.isUseApplyButton(this.params.filterParams);var i=this.params.filterParams.allowedCharPattern;if(null!=i&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:i}}),!this.isReadOnly()){var n=fl.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=Oe(this.syncUpWithParentFilter.bind(this),n),a=this.eFloatingFilterInput.getGui();this.addManagedListener(a,"input",r),this.addManagedListener(a,"keypress",r),this.addManagedListener(a,"keydown",r)}var l=e.column.getDefinition();(this.isReadOnly()||l.filterParams&&l.filterParams.filterOptions&&1===l.filterParams.filterOptions.length&&"inRange"===l.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var h=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),m=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(h+" "+m("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var i=this;if(!this.applyActive||e.key===le.ENTER){var r=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(r=Jr.trimInput(r),this.eFloatingFilterInput.setValue(r,!0)),this.params.parentFilterInstance(function(a){a&&a.onFloatingFilterChanged(i.getLastType()||null,r||null)})}},t.prototype.conditionToString=function(e,i){return e.type==Ht.IN_RANGE||2===(i||{}).numberOfInputs?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},Ao([w("columnModel")],t.prototype,"columnModel",void 0),Ao([ce("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),Ao([ve],t.prototype,"postConstruct",null),t}(Cl),fh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),mh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return fh(t,o),t.prototype.getDefaultFilterOptions=function(){return js.DEFAULT_FILTER_OPTIONS},t}(Po),Rd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Rd(t,o),t.prototype.getDefaultFilterOptions=function(){return Jr.DEFAULT_FILTER_OPTIONS},t}(Po),ki=function(){function o(t,e){var i=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Xt,this.eElement=t,this.preventMouseClick=e;var n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",a,{passive:!1}),this.destroyFuncs.push(function(){i.eElement.removeEventListener("touchstart",n,{passive:!0}),i.eElement.removeEventListener("touchmove",r,{passive:!0}),i.eElement.removeEventListener("touchend",a,{passive:!1})})}return o.prototype.getActiveTouch=function(t){for(var e=0;e0&&t-this.lastTapTime>o.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:o.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=t},o.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},o.EVENT_TAP="tap",o.EVENT_DOUBLE_TAP="doubleTap",o.EVENT_LONG_TAP="longTap",o.DOUBLE_TAP_MILLIS=500,o}(),vh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),eo=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},bl=function(o){function t(e){var i=o.call(this)||this;return e||i.setTemplate(t.TEMPLATE),i}return vh(t,o),t.prototype.attachCustomElements=function(e,i,n,r,a){this.eSortOrder=e,this.eSortAsc=i,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=a},t.prototype.setupSort=function(e,i){var n=this;void 0===i&&(i=!1),this.column=e,this.suppressOrder=i,this.setupMultiSortIndicator(),!this.column.getColDef().sortable||(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,function(){return n.onSortChanged()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return n.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,i,n){if(null!=i){var r=Jt(e,this.gridOptionsWrapper,n);r&&i.appendChild(r)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!("asc"===e)),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!("desc"===e)),this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",r||!(null==e))}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&i&&(this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!e)}},t.prototype.updateSortOrder=function(){var e=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),r=this.sortController.getDisplaySortIndexForColumn(this.column)??-1,a=n.some(function(h){return e.sortController.getDisplaySortIndexForColumn(h)??!1});Lt(this.eSortOrder,r>=0&&a),r>=0?this.eSortOrder.innerHTML=(r+1).toString():zi(this.eSortOrder)}},t.TEMPLATE='\n \n \n \n \n \n ',eo([ce("eSortOrder")],t.prototype,"eSortOrder",void 0),eo([ce("eSortAsc")],t.prototype,"eSortAsc",void 0),eo([ce("eSortDesc")],t.prototype,"eSortDesc",void 0),eo([ce("eSortMixed")],t.prototype,"eSortMixed",void 0),eo([ce("eSortNone")],t.prototype,"eSortNone",void 0),eo([w("columnModel")],t.prototype,"columnModel",void 0),eo([w("sortController")],t.prototype,"sortController",void 0),t}(Je),xl=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),rn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},pv=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return xl(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=Ye(this.params.template,t.TEMPLATE);return e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var i=en(this.currentDisplayName);this.eText&&(this.eText.innerHTML=i)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,i,n){if(null!=i){var r=Jt(e,this.gridOptionsWrapper,n);r&&i.appendChild(r)}},t.prototype.setupTap=function(){var e=this,i=this.gridOptionsWrapper;if(!i.isSuppressTouch()){var n=new ki(this.getGui(),!0),r=i.isSuppressMenuHide(),a=r&&N(this.eMenu),l=a?new ki(this.eMenu,!0):n;this.params.enableMenu&&this.addManagedListener(l,ki[a?"EVENT_TAP":"EVENT_LONG_TAP"],function(_){i.getApi().showColumnMenuAfterMouseClick(e.params.column,_.touchStart)}),this.params.enableSorting&&this.addManagedListener(n,ki.EVENT_TAP,function(_){r&&e.eMenu.contains(_.touchStart.target)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}),this.addDestroyFunc(function(){return n.destroy()}),a&&this.addDestroyFunc(function(){return l.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),i=Yn()&&e;return this.params.enableMenu&&!i},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return void Nn(this.eMenu);var i=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",i)}},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new bl(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var i=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,Y.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=(new Date).getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(r){var a=e.params.column.isMoving(),l=(new Date).getTime();a||l-e.lastMovingChanged<50||e.params.progressSort(i?r.ctrlKey||r.metaKey:r.shiftKey)});var n=function(){var r;if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var l=null===(r=e.columnModel.getSourceColumnsForGroupColumn(e.params.column))||void 0===r?void 0:r.every(function(m){return e.params.column.getSort()==m.getSort()});e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!l)}};this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},t.prototype.setupFilterIcon=function(){!this.eFilter||(this.addManagedListener(this.params.column,Y.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='',rn([w("sortController")],t.prototype,"sortController",void 0),rn([w("menuFactory")],t.prototype,"menuFactory",void 0),rn([w("columnModel")],t.prototype,"columnModel",void 0),rn([ce("eFilter")],t.prototype,"eFilter",void 0),rn([ce("eSortIndicator")],t.prototype,"eSortIndicator",void 0),rn([ce("eMenu")],t.prototype,"eMenu",void 0),rn([ce("eLabel")],t.prototype,"eLabel",void 0),rn([ce("eText")],t.prototype,"eText",void 0),rn([ce("eSortOrder")],t.prototype,"eSortOrder",void 0),rn([ce("eSortAsc")],t.prototype,"eSortAsc",void 0),rn([ce("eSortDesc")],t.prototype,"eSortDesc",void 0),rn([ce("eSortMixed")],t.prototype,"eSortMixed",void 0),rn([ce("eSortNone")],t.prototype,"eSortNone",void 0),t}(Je),El=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Od=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return El(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){this.params.template&&Ve(function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},"HeaderGroupComp.templateNotSupported")},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(a){if(!jt(a)){var l=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),l,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var n=function(a){Rt(a)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,P.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,P.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,i){var n=new ki(e,!0);this.addManagedListener(n,ki.EVENT_TAP,i),this.addDestroyFunc(function(){return n.destroy()}),this.addManagedListener(e,"click",i)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var i=this.params.columnGroup.isExpanded();Lt(this.eOpenIcon,i),Lt(this.eCloseIcon,!i)}else Lt(this.eOpenIcon,!1),Lt(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,i){var n=Jt(e,this.gridOptionsWrapper,null);n&&this.getRefElement(i).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Lt(this.eOpenIcon,!1),void Lt(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(N(e)){var i=en(e);this.getRefElement("agLabel").innerHTML=i}},t.TEMPLATE='',Sl([w("columnModel")],t.prototype,"columnModel",void 0),Sl([ce("agOpened")],t.prototype,"eOpenIcon",void 0),Sl([ce("agClosed")],t.prototype,"eCloseIcon",void 0),t}(Je),Rl=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Io=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Rl(t,o),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),o.prototype.setParentComponent.call(this,e)},t.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),o.prototype.destroy.call(this)},t}(Je),hv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Fo=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return hv(t,o),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),N(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var i=e.key;(i===le.LEFT||i===le.UP||i===le.RIGHT||i===le.DOWN||e.shiftKey&&i===le.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='
    \n \n
    ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ce("eTextArea")],t.prototype,"eTextArea",void 0),t}(Io),Ys=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ol=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Tl=function(o){function t(){var e=o.call(this,'
    ')||this;return e.startedByEnter=!1,e}return Ys(t,o),t.prototype.init=function(e){var i=this;if(this.focusAfterAttached=e.cellStartedEdit,z(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===le.ENTER;var n=!1;e.values.forEach(function(r){var a={value:r},l=i.valueFormatterService.formatValue(e.column,null,r);a.text=null!=l?l:r,i.eSelect.addOption(a),n=n||e.value===r}),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange(function(){return e.stopEditing()})}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ol([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ol([ce("eSelect")],t.prototype,"eSelect",void 0),t}(Io),Td=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fv=function(o){function t(){var e=o.call(this)||this;return Ve(function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')},"PopupSelectCellEditor.deprecated"),e}return Td(t,o),t.prototype.isPopup=function(){return!0},t}(Tl),yh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Md=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return yh(t,o),t.prototype.init=function(e){this.params=e;var n,i=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===le.BACKSPACE||e.eventKey===le.DELETE?n="":e.charPress?n=e.charPress:(n=this.getStartValue(e),e.eventKey!==le.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,n=this.getStartValue(e)),null!=n&&i.setValue(n,!0),null!=e.maxLength&&i.setMaxLength(e.maxLength),this.addManagedListener(i.getGui(),"keydown",function(r){var a=r.key;(a===le.PAGE_UP||a===le.PAGE_DOWN)&&r.preventDefault()})},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){zn()||i.getFocusableElement().focus();var n=i.getInputElement();if(this.highlightAllOnFocus)n.select();else{var r=i.getValue(),a=N(r)&&r.length||0;a&&n.setSelectionRange(a,a)}}},t.prototype.focusIn=function(){var e=this.eInput,i=e.getFocusableElement(),n=e.getInputElement();i.focus(),n.select()},t.prototype.getValue=function(){return this.params.parseValue(this.eInput.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='
    \n \n
    ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ce("eInput")],t.prototype,"eInput",void 0),t}(Io),mv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gv=function(o){function t(){var e=o.call(this)||this;return Ve(function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')},"PopupTextCellEditor.deprecated"),e}return mv(t,o),t.prototype.isPopup=function(){return!0},t}(Md),vv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Pd=function(o){function t(){var e=o.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e}return vv(t,o),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,i){var n=Math.abs(i),r=e.formatValue(n),a=N(r)?r:n,l=i>=0;this.eDelta.innerHTML=l?"\u2191"+a:"\u2193"+a,this.eDelta.classList.toggle("ag-value-change-delta-up",l),this.eDelta.classList.toggle("ag-value-change-delta-down",!l)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var i=this.refreshCount;window.setTimeout(function(){i===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),zi(this.eDelta)},t.prototype.refresh=function(e){var i=e.value;return i!==this.lastValue&&(N(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:N(e.value)?this.eValue.innerHTML=i:zi(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())&&("number"==typeof i&&"number"==typeof this.lastValue&&this.showDelta(e,i-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=i,!0)},t.TEMPLATE='',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([w("filterManager")],t.prototype,"filterManager",void 0),t}(Je),Id=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xh=function(o){function t(){var e=o.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return Id(t,o),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=vi(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout(function(){i===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){i===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},t.prototype.refresh=function(e){var i=e.value;return z(i)&&(i=""),i!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=i,N(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:N(e.value)?this.eCurrent.innerHTML=i:zi(this.eCurrent),!0)},t.TEMPLATE='\n \n ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([w("filterManager")],t.prototype,"filterManager",void 0),t}(Je),vn=(()=>(function(o){o[o.Above=0]="Above",o[o.Below=1]="Below"}(vn||(vn={})),vn))(),nt=function(){function o(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=o.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return o.prototype.setData=function(t){this.setDataCommon(t,!1)},o.prototype.updateData=function(t){this.setDataCommon(t,!0)},o.prototype.setDataCommon=function(t,e){var i=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var n=this.createDataChangedEvent(t,i,e);this.dispatchLocalEvent(n)},o.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},o.prototype.createDataChangedEvent=function(t,e,i){return{type:o.EVENT_DATA_CHANGED,node:this,oldData:e,newData:t,update:i}},o.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},o.prototype.getRowIndexString=function(){return this.rowPinned===G.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===G.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},o.prototype.createDaemonNode=function(){var t=new o(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},o.prototype.setDataAndId=function(t,e){var i=N(this.id)?this.createDaemonNode():null,n=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.beans.selectionService.syncInRowNode(this,i),this.checkRowSelectable();var r=this.createDataChangedEvent(t,n,!1);this.dispatchLocalEvent(r)},o.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!t||t(this))},o.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var i=this.calculateSelectedFromChildren();this.setSelected(i??!1)}},o.prototype.setId=function(t){var e=this.beans.gridOptionsWrapper.getRowIdFunc();if(e)if(this.data){var i=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(o.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+o.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},o.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],i=this;for(t&&(i=i.parent);i&&i.level>=0;)e.push(i.key),i=i.parent;return e.reverse(),e},o.prototype.isPixelInRange=function(t){return!(!N(this.rowTop)||!N(this.rowHeight))&&t>=this.rowTop&&ti&&(i=h)):t=!0}),!t&&((e||i<10)&&(i=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),i!=this.rowHeight))){this.setRowHeight(i);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}},o.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_ROW_INDEX_CHANGED)))},o.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_UI_LEVEL_CHANGED)))},o.prototype.setExpanded=function(t,e){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_EXPANDED_CHANGED));var i=Object.assign({},this.createGlobalRowEvent(S.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},o.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},o.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},o.prototype.setDataValue=function(t,e,i){var n=this.beans.columnModel.getPrimaryColumn(t),r=this.beans.valueService.getValue(n,this),a=this.beans.valueService.setValue(this,n,e,i);return this.dispatchCellChangedEvent(n,e,r),this.checkRowSelectable(),a},o.prototype.setGroupValue=function(t,e){var i=this.beans.columnModel.getGridColumn(t);z(this.groupData)&&(this.groupData={});var n=i.getColId(),r=this.groupData[n];r!==e&&(this.groupData[n]=e,this.dispatchCellChangedEvent(i,e,r))},o.prototype.setAggData=function(t){var e=this,i=wt([this.aggData,t]),n=this.aggData;this.aggData=t,this.eventService&&i.forEach(function(r){var a=e.beans.columnModel.getGridColumn(r);e.dispatchCellChangedEvent(a,e.aggData?e.aggData[r]:void 0,n?n[r]:void 0)})},o.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HAS_CHILDREN_CHANGED)))},o.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},o.prototype.isEmptyRowGroupNode=function(){return this.group&&ae(this.childrenAfterGroup)},o.prototype.dispatchCellChangedEvent=function(t,e,i){this.dispatchLocalEvent({type:o.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:i})},o.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},o.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},o.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},o.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},o.prototype.calculateSelectedFromChildren=function(){var t,e=!1,i=!1,n=!1;if(null===(t=this.childrenAfterGroup)||void 0===t||!t.length)return this.selectable?this.selected:null;for(var r=0;r0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:S.EVENT_SELECTION_CHANGED})),n&&this.beans.selectionService.setLastSelectedNode(this)),y},o.prototype.doRowRangeSelection=function(t){var e=this;void 0===t&&(t=!0);var i=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),n=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,n),a=0;return r.forEach(function(h){h.group&&i||!1===t&&e===h||h.selectThisNode(t)&&a++}),this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:S.EVENT_SELECTION_CHANGED}),a},o.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},o.prototype.selectThisNode=function(t,e){if(!this.selectable&&t||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_ROW_SELECTED));var r=Object.assign({},this.createGlobalRowEvent(S.EVENT_ROW_SELECTED),{event:e||null});return this.beans.eventService.dispatchEvent(r),!0},o.prototype.selectChildNodes=function(t,e){var i=e?this.childrenAfterAggFilter:this.childrenAfterGroup;if(z(i))return 0;for(var n=0,r=0;r=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Dl=function(o){function t(){return o.call(this,'\n ')||this}return _v(t,o),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.rowNode.isSelected(),n=void 0===i?e("ariaIndeterminate","indeterminate"):!0===i?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(r+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},t.prototype.onUncheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},t.prototype.init=function(e){var i=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(l){Rt(l)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(l){Rt(l);var h=i.eCheckbox.getValue();void 0===i.eCheckbox.getPreviousValue()||void 0===h?0===i.onUncheckedClicked(l||{})&&i.onCheckedClicked(l):h?i.onCheckedClicked(l):i.onUncheckedClicked(l||{})}),this.addManagedListener(this.rowNode,nt.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||"function"==typeof this.getIsVisible()){var a=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,a),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,a),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,i,n,r,a=this.rowNode.selectable,l=this.getIsVisible();if(a)if("function"==typeof l){var h=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,m=null===(i=this.column)||void 0===i?void 0:i.createColumnFunctionCallbackParams(this.rowNode);a=!!m&&l(Lo(Lo({},h),m))}else a=l??!1;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!a),this.setVisible(!0),void this.setDisplayed(!0);null!==(r=this.overrides)&&void 0!==r&&r.removeHidden?this.setDisplayed(a):this.setVisible(a)},t.prototype.getIsVisible=function(){var e,i;return this.overrides?this.overrides.isVisible:null===(i=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===i?void 0:i.checkboxSelection},Fd([ce("eCheckbox")],t.prototype,"eCheckbox",void 0),Fd([ve],t.prototype,"postConstruct",null),t}(Je),Eh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),kn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},No=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Si=(()=>(function(o){o[o.ToolPanel=0]="ToolPanel",o[o.HeaderCell=1]="HeaderCell",o[o.RowDrag=2]="RowDrag",o[o.ChartPanel=3]="ChartPanel"}(Si||(Si={})),Si))(),er=(()=>(function(o){o[o.Up=0]="Up",o[o.Down=1]="Down"}(er||(er={})),er))(),_n=(()=>(function(o){o[o.Left=0]="Left",o[o.Right=1]="Right"}(_n||(_n={})),_n))(),oi=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}var e;return Eh(t,o),e=t,t.prototype.init=function(){this.ePinnedIcon=Gi("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Gi("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Gi("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Gi("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Gi("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Gi("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Gi("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Gi("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Gi("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(i,n){void 0===n&&(n=!1);var r={eElement:i.eElement,dragStartPixels:i.dragStartPixels,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:r,dragSource:i}),this.dragService.addDragSource(r,n)},t.prototype.removeDragSource=function(i){var n=this.dragSourceAndParamsList.find(function(r){return r.dragSource===i});n&&(this.dragService.removeDragSource(n.params),De(this.dragSourceAndParamsList,n))},t.prototype.clearDragSourceParamsList=function(){var i=this;this.dragSourceAndParamsList.forEach(function(n){return i.dragService.removeDragSource(n.params)}),this.dragSourceAndParamsList.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(i,n){this.dragging=!0,this.dragSource=i,this.eventLastTime=n,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(i){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var n=this.createDropTargetEvent(this.lastDropTarget,i,null,null,!1);this.lastDropTarget.onDragStop(n)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(i,n){var a,l,h,m,r=this,v=this.getHorizontalDirection(i),_=this.getVerticalDirection(i);this.eventLastTime=i,this.positionGhost(i);var y=this.dropTargets.filter(function(I){return r.isMouseOnDropTarget(i,I)}),b=this.findCurrentDropTarget(i,y);if(b!==this.lastDropTarget)this.leaveLastTargetIfExists(i,v,_,n),null!==this.lastDropTarget&&null===b&&(null===(l=(a=this.dragSource).onGridExit)||void 0===l||l.call(a,this.dragItem)),null===this.lastDropTarget&&null!==b&&(null===(m=(h=this.dragSource).onGridEnter)||void 0===m||m.call(h,this.dragItem)),this.enterDragTargetIfExists(b,i,v,_,n),this.lastDropTarget=b;else if(b&&b.onDragging){var R=this.createDropTargetEvent(b,i,v,_,n);b.onDragging(R)}},t.prototype.getAllContainersFromDropTarget=function(i){var n=i.getSecondaryContainers?i.getSecondaryContainers():null,r=[[i.getContainer()]];return n?r.concat(n):r},t.prototype.allContainersIntersect=function(i,n){var r,a;try{for(var l=No(n),h=l.next();!h.done;h=l.next()){var v=h.value.getBoundingClientRect();if(0===v.width||0===v.height)return!1;if(!(i.clientX>=v.left&&i.clientX=v.top&&i.clientYr?_n.Left:_n.Right},t.prototype.getVerticalDirection=function(i){var n=this.eventLastTime&&this.eventLastTime.clientY,r=i.clientY;return n===r?null:n>r?er.Up:er.Down},t.prototype.createDropTargetEvent=function(i,n,r,a,l){var h=i.getContainer(),m=h.getBoundingClientRect(),v=this;return{event:n,x:n.clientX-m.left,y:n.clientY-m.top,vDirection:a,hDirection:r,dragSource:v.dragSource,fromNudge:l,dragItem:v.dragItem,api:v.gridApi,columnApi:v.columnApi,dropZoneTarget:h}},t.prototype.positionGhost=function(i){var n=this.eGhost;if(n){var a=n.getBoundingClientRect().height,l=Ep()-2,h=ja()-2,m=i.pageY-a/2,v=i.pageX-10,_=this.gridOptionsWrapper.getDocument(),y=_.defaultView||window,b=y.pageYOffset||_.documentElement.scrollTop,R=y.pageXOffset||_.documentElement.scrollLeft;l>0&&v+n.clientWidth>l+R&&(v=l+R-n.clientWidth),v<0&&(v=0),h>0&&m+n.clientHeight>h+b&&(m=h+b-n.clientHeight),m<0&&(m=0),n.style.left=v+"px",n.style.top=m+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=vi(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var i=this.environment.getTheme().theme;i&&this.eGhost.classList.add(i),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var n=this.eGhost.querySelector(".ag-dnd-ghost-label"),r=this.dragSource.dragItemName;Pe(r)&&(r=r()),n.innerHTML=en(r)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var a=this.gridOptionsWrapper.getDocument(),l=null;try{l=a.fullscreenElement}catch{}finally{l||(l=a.querySelector("body"))}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(i,n){void 0===n&&(n=!1),zi(this.eGhostIcon);var r=null;switch(i||(i=this.dragSource.defaultIconName||e.ICON_NOT_ALLOWED),i){case e.ICON_PINNED:r=this.ePinnedIcon;break;case e.ICON_MOVE:r=this.eMoveIcon;break;case e.ICON_LEFT:r=this.eLeftIcon;break;case e.ICON_RIGHT:r=this.eRightIcon;break;case e.ICON_GROUP:r=this.eGroupIcon;break;case e.ICON_AGGREGATE:r=this.eAggregateIcon;break;case e.ICON_PIVOT:r=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:r=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",n),(r!==this.eHideIcon||!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns())&&r&&this.eGhostIcon.appendChild(r)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE='
    \n \n
    \n
    ',kn([w("dragService")],t.prototype,"dragService",void 0),kn([w("mouseEventService")],t.prototype,"mouseEventService",void 0),kn([w("environment")],t.prototype,"environment",void 0),kn([w("columnApi")],t.prototype,"columnApi",void 0),kn([w("gridApi")],t.prototype,"gridApi",void 0),kn([ve],t.prototype,"init",null),kn([Ct],t.prototype,"clearDragSourceParamsList",null),e=kn([we("dragAndDropService")],t)}(ge),Ks=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},$s=function(o){function t(e,i,n,r,a,l){var h=o.call(this)||this;return h.cellValueFn=e,h.rowNode=i,h.column=n,h.customGui=r,h.dragStartPixels=a,h.suppressVisibilityChange=l,h.dragSource=null,h}return Ks(t,o),t.prototype.isCustomGui=function(){return null!=this.customGui},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(Jt("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new Sh(this,this.beans,this.rowNode,this.column):new Ld(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,i){this.setTemplateFromElement(e),this.addDragSource(i)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return[this.rowNode];var i=this.beans.selectionService.getSelectedNodes();return-1!==i.indexOf(this.rowNode)?i:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&Ve(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.addDragSource=function(e){var i=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var n=this.gridOptionsWrapper.getRowDragText(this.column),r=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:Si.RowDrag,eElement:this.getGui(),dragItemName:function(){var a,l=i.getDragItem(),h=(null===(a=l.rowNodes)||void 0===a?void 0:a.length)||1;return n?n(l,h):1===h?i.cellValueFn():h+" "+r("rowDragRows","rows")},getDragItem:function(){return i.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},gr([w("beans")],t.prototype,"beans",void 0),gr([ve],t.prototype,"postConstruct",null),gr([Ct],t.prototype,"removeDragSource",null),t}(Je),Zs=function(o){function t(e,i,n){var r=o.call(this)||this;return r.parent=e,r.rowNode=i,r.column=n,r}return Ks(t,o),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var i=!0,n=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=Pe(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(i)):(this.parent.setDisplayed(i),this.parent.setVisible(!0))}},t}(ge),Ld=function(o){function t(e,i,n,r){var a=o.call(this,e,n,r)||this;return a.beans=i,a}return Ks(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},gr([ve],t.prototype,"postConstruct",null),t}(Zs),Sh=function(o){function t(e,i,n,r){var a=o.call(this,e,n,r)||this;return a.beans=i,a}return Ks(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,S.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var i=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),n=i&&i.shouldPreventRowMove(),r=this.beans.gridOptionsWrapper.isSuppressRowDrag(),a=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(n&&!a||r)},gr([ve],t.prototype,"postConstruct",null),t}(Zs),Nd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),qs=function(){return qs=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Rh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Nd(t,o),t.prototype.init=function(e,i,n,r,a,l,h){this.params=h,this.eGui=i,this.eCheckbox=n,this.eExpanded=r,this.eContracted=a,this.comp=e,this.compClass=l;var m=this.isTopLevelFooter(),v=this.isEmbeddedRowMismatch(),_=null==h.value,y=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var b=h.node;b.footer&&(y=(h.colDef&&h.colDef.showRowGroup)!==(b.rowGroupColumn&&b.rowGroupColumn.getColId()))}this.cellIsBlank=!m&&(v||_||y),!this.cellIsBlank&&(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,i=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){tn(n,!!i.expanded)};this.expandListener=this.addManagedListener(i,nt.EVENT_EXPANDED_CHANGED,r)||null,r()}else ud(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter()||null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e||!0===e.showRowGroup)return!0;var n=this.columnModel.getRowGroupColumns();return!n||0===n.length||n[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===G.PINNED_LEFT,i=this.params.pinned===G.PINNED_RIGHT,n=!e&&!i;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!i:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var n=i.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}z(this.displayedGroupNode)&&(this.displayedGroupNode=i)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,i=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var r=e.rowGroupColumn.getId();if(i.isRowGroupDisplayed(r))return void(this.showingValueForOpenedParent=!1)}var l=null!=e.groupData[i.getId()];this.showingValueForOpenedParent=l}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(e);this.comp.setInnerRenderer(i,e.valueFormatted??e.value)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!e)return this.params;if(null!=i&&!i.isRowGroupDisplayed(e.getId()))return this.params;var a=this.params,l=this.params,v=this.valueFormatterService.formatValue(e,l.node,l.value);return qs(qs({},a),{valueFormatted:v})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,i="";if(e){var n=Ft(this.params);n.value=this.params.value,"function"==typeof e?i=e(n):"string"==typeof e?i=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else i="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,i)},t.prototype.getInnerCompDetails=function(e){var i=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(v){return v&&v.componentClass==i.compClass};if(n&&!r(n))return n;var a=this.displayedGroupNode.rowGroupColumn,l=a?a.getColDef():void 0;if(l){var h=this.userComponentFactory.getCellRendererDetails(l,e);if(h&&!r(h))return h;if(r(h)&&l.cellRendererParams&&l.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(l.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,nt.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow();this.comp.setChildCount(i&&null!=e&&e>=0?"("+e+")":"")},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var i=this.params.column;return null==i||i.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,i=Jt("groupExpanded",this.gridOptionsWrapper,null),n=Jt("groupContracted",this.gridOptionsWrapper,null);i&&this.eExpanded.appendChild(i),n&&this.eContracted.appendChild(n);var r=e.eGridCell;!this.gridOptionsWrapper.isEnableGroupEdit()&&this.isExpandable()&&!e.suppressDoubleClickExpand&&this.addManagedListener(r,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,nt.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var a=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,nt.EVENT_ALL_CHILDREN_COUNT_CHANGED,a),this.addManagedListener(this.displayedGroupNode,nt.EVENT_MASTER_CHANGED,a),this.addManagedListener(this.displayedGroupNode,nt.EVENT_GROUP_CHANGED,a),this.addManagedListener(this.displayedGroupNode,nt.EVENT_HAS_CHILDREN_CHANGED,a)},t.prototype.onExpandClicked=function(e){jt(e)||(Rt(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var i=this.displayedGroupNode,n=!i.expanded;!n&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(n,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||i)return!1;var r=this.params.column;return null==r||"string"!=typeof r.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,n=e.displayedGroupNode,r=e.columnModel,a=e.params.node,l=this.isExpandable();if(l){var h=!!this.showingValueForOpenedParent||a.expanded;this.comp.setExpandedDisplayed(h),this.comp.setContractedDisplayed(!h)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var m=r.isPivotMode(),v=m&&n.leafGroup,_=l&&!v,y=a.footer&&-1===a.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",_),this.comp.addOrRemoveCssClass("ag-row-group",_),m?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",v):y||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!_)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,nt.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,i=e.node,n=!!e.colDef,r=this.gridOptionsWrapper.isTreeData(),l=!n||r||!0===e.colDef.showRowGroup?i.uiLevel:0;e.padding>=0&&Ve(function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")},"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+l,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var i=new $s(function(){return e.params.value},this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,i=this.displayedGroupNode,n=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(n){var r=new Dl;this.getContext().createBean(r),r.init({rowNode:i,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(r)})}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==le.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)},t.prototype.onCellDblClicked=function(e){jt(e)||ji(this.eExpanded,e)||ji(this.eContracted,e)||this.onExpandOrContract(e)},vr([w("expressionService")],t.prototype,"expressionService",void 0),vr([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),vr([w("columnModel")],t.prototype,"columnModel",void 0),vr([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),vr([w("gridOptions")],t.prototype,"gridOptions",void 0),vr([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(ge),Ml=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Go=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Gd=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return Ml(t,o),t.prototype.init=function(e){var i=this,n={setInnerRenderer:function(h,m){return i.setRenderDetails(h,m)},setChildCount:function(h){return i.eChildCount.innerHTML=h},addOrRemoveCssClass:function(h,m){return i.addOrRemoveCssClass(h,m)},setContractedDisplayed:function(h){return Lt(i.eContracted,h)},setExpandedDisplayed:function(h){return Lt(i.eExpanded,h)},setCheckboxVisible:function(h){return i.eCheckbox.classList.toggle("ag-invisible",!h)}},r=this.createManagedBean(new Rh),a=!e.colDef,l=this.getGui();r.init(n,l,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),a&&Ti(l,"gridcell")},t.prototype.setRenderDetails=function(e,i){var n=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then(function(a){if(a){var l=function(){return n.context.destroyBean(a)};n.isAlive()?(n.eValue.appendChild(a.getGui()),n.addDestroyFunc(l)):l()}})}else this.eValue.innerText=i},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),o.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='\n \n \n \n \n \n ',Go([ce("eExpanded")],t.prototype,"eExpanded",void 0),Go([ce("eContracted")],t.prototype,"eContracted",void 0),Go([ce("eCheckbox")],t.prototype,"eCheckbox",void 0),Go([ce("eValue")],t.prototype,"eValue",void 0),Go([ce("eChildCount")],t.prototype,"eChildCount",void 0),t}(Je),kd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hd=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yv=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return kd(t,o),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=Jt("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.TEMPLATE='
    \n \n \n
    ',Hd([ce("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),Hd([ce("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(Je),Al=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Oh=function(o){function t(){return o.call(this)||this}return Al(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=i.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',t}(Je),Vd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Bd=function(o){function t(){return o.call(this)||this}return Vd(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=i.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',t}(Je),_r=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Th=function(o){function t(){return o.call(this,'
    ')||this}return _r(t,o),t.prototype.init=function(e){var i=e.value;this.getGui().innerHTML=en(i)},t}(Io),Wd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qs=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ud=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:ph,agColumnHeader:pv,agColumnGroupHeader:Od,agSortIndicator:bl,agTextColumnFloatingFilter:gh,agNumberColumnFloatingFilter:mh,agDateColumnFloatingFilter:wl,agReadOnlyFloatingFilter:bd,agAnimateShowChangeCellRenderer:Pd,agAnimateSlideCellRenderer:xh,agGroupCellRenderer:Gd,agGroupRowRenderer:Gd,agLoadingCellRenderer:yv,agCellEditor:Md,agTextCellEditor:Md,agSelectCellEditor:Tl,agPopupTextCellEditor:gv,agPopupSelectCellEditor:fv,agLargeTextCellEditor:Fo,agTextColumnFilter:Jr,agNumberColumnFilter:js,agDateColumnFilter:yl,agLoadingOverlay:Oh,agNoRowsOverlay:Bd,agTooltipComponent:Th},e.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},e.jsComps={},e.fwComps={},e}return Wd(t,o),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Ge(this.gridOptions.components,function(i,n){return e.registerJsComponent(i,n)}),null!=this.gridOptions.frameworkComponents&&Ge(this.gridOptions.frameworkComponents,function(i,n){return e.registerFwComponent(i,n)})},t.prototype.registerDefaultComponent=function(e,i){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=i},t.prototype.registerJsComponent=function(e,i){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=i},t.prototype.registerFwComponent=function(e,i){Ve(function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")},"UserComponentRegistry.frameworkComponentsDeprecated");var r=this.translateIfDeprecated(e);this.fwComps[r]=i},t.prototype.retrieve=function(e){var i=this.translateIfDeprecated(e),n=function(v,_){return{componentFromFramework:_,component:v}},r=this.getFrameworkOverrides().frameworkComponent(i,this.gridOptions.components);if(null!=r)return n(r,!0);var a=this.fwComps[i];if(a)return n(a,!0);var l=this.jsComps[i];if(l)return n(l,this.getFrameworkOverrides().isFrameworkComponent(l));var m=this.agGridDefaults[i];return m?n(m,!1):(Object.keys(this.agGridDefaults).indexOf(i)<0&&console.warn("AG Grid: Looking for component ["+i+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var i=this.agDeprecatedNames[e];return null!=i?(Ve(function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+i.propertyHolder+":"+e+" to "+i.propertyHolder+":"+i.newComponentName)},"DEPRECATE_COMPONENT_"+e),i.newComponentName):e},Qs([w("gridOptions")],t.prototype,"gridOptions",void 0),Qs([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Qs([ve],t.prototype,"init",null),Qs([we("userComponentRegistry")],t)}(ge),Dh={propertyName:"dateComponent",cellRenderer:!1},Mh={propertyName:"headerComponent",cellRenderer:!1},Pl={propertyName:"headerGroupComponent",cellRenderer:!1},Il={propertyName:"cellRenderer",cellRenderer:!0},Ah={propertyName:"cellEditor",cellRenderer:!1},Fl={propertyName:"innerRenderer",cellRenderer:!0},Ph={propertyName:"loadingOverlayComponent",cellRenderer:!1},jd={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ih={propertyName:"tooltipComponent",cellRenderer:!1},Xs={propertyName:"filter",cellRenderer:!1},Fh={propertyName:"floatingFilterComponent",cellRenderer:!1},zd={propertyName:"toolPanel",cellRenderer:!1},Cv={propertyName:"statusPanel",cellRenderer:!1},wv={propertyName:"fullWidthCellRenderer",cellRenderer:!0},bv={propertyName:"loadingCellRenderer",cellRenderer:!0},Lh={propertyName:"groupRowRenderer",cellRenderer:!0},Nh={propertyName:"detailCellRenderer",cellRenderer:!0},xv=function(){function o(){}return o.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},o.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},o}(),Gh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ko=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ev=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Gh(t,o),t.prototype.getHeaderCompDetails=function(e,i){return this.getCompDetails(e,Mh,"agColumnHeader",i)},t.prototype.getHeaderGroupCompDetails=function(e){var i=e.columnGroup.getColGroupDef();return this.getCompDetails(i,Pl,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,wv,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,bv,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Lh,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Nh,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,i){return this.getCompDetails(e,Fl,null,i)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,i){return this.getCompDetails(e,Fl,null,i)},t.prototype.getCellRendererDetails=function(e,i){return this.getCompDetails(e,Il,null,i)},t.prototype.getCellEditorDetails=function(e,i){return this.getCompDetails(e,Ah,"agCellEditor",i,!0)},t.prototype.getFilterDetails=function(e,i,n){return this.getCompDetails(e,Xs,n,i,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Dh,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ph,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,jd,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ih,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,i){return this.getCompDetails(e,Il,null,i)},t.prototype.getFloatingFilterCompDetails=function(e,i,n){return this.getCompDetails(e,Fh,n,i)},t.prototype.getToolPanelCompDetails=function(e,i){return this.getCompDetails(e,zd,null,i,!0)},t.prototype.getStatusPanelCompDetails=function(e,i){return this.getCompDetails(e,Cv,null,i,!0)},t.prototype.getCompDetails=function(e,i,n,r,a){var l=this;void 0===a&&(a=!1);var h=i.propertyName,m=i.cellRenderer,v=this.getCompKeys(e,i,r),_=v.compName,y=v.jsComp,b=v.fwComp,R=v.paramsFromSelector,I=v.popupFromSelector,H=v.popupPositionFromSelector,te=function(Se){var $e=l.userComponentRegistry.retrieve(Se);$e&&(y=$e.componentFromFramework?void 0:$e.component,b=$e.componentFromFramework?$e.component:void 0)};if(null!=_&&te(_),null==y&&null==b&&null!=n&&te(n),y&&m&&!this.agComponentUtils.doesImplementIComponent(y)&&(y=this.agComponentUtils.adaptFunction(h,y)),y||b){var X=this.mergeParamsWithApplicationProvidedParams(e,i,r,R),fe=null==y,me=y||b;return{componentFromFramework:fe,componentClass:me,params:X,type:i,popupFromSelector:I,popupPositionFromSelector:H,newAgStackInstance:function(){return l.newAgStackInstance(me,fe,X,i)}}}a&&console.error("Could not find component "+_+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,i,n){var l,h,m,v,_,y,r=this,a=i.propertyName;if(e){var b=e,R=b[a+"Selector"],I=R?R(n):null,H=function(X,fe){var me=function(){var $e="AG Grid: As of v27, the property "+a+"Framework is deprecated. The property "+a+" can now be used for JavaScript AND Framework Components.";Ve(function(){return console.warn($e)},"UserComponentFactory."+a+"FrameworkDeprecated")};"string"==typeof X?l=X:"string"==typeof fe?(me(),l=fe):null!=X&&!0!==X?r.getFrameworkOverrides().isFrameworkComponent(X)?m=X:h=X:null!=fe&&(me(),m=fe)};if(I){if(null!=I.frameworkComponent){var te="AG Grid: As of v27, the return for "+a+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";Ve(function(){return console.warn(te)},"UserComponentFactory."+a+"FrameworkSelectorDeprecated"),H(I.frameworkComponent,void 0)}else H(I.component,void 0);v=I.params,_=I.popup,y=I.popupPosition}else H(b[a],b[a+"Framework"])}return{compName:l,jsComp:h,fwComp:m,paramsFromSelector:v,popupFromSelector:_,popupPositionFromSelector:y}},t.prototype.newAgStackInstance=function(e,i,n,r){var h;if(i){var m=this.componentMetadataProvider.retrieve(r.propertyName);h=this.frameworkComponentWrapper.wrap(e,m.mandatoryMethodList,m.optionalMethodList,r)}else h=new e;var v=this.initComponent(h,n);return null==v?Ei.resolve(h):v.then(function(){return h})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,i,n,r){void 0===r&&(r=null);var a={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};Ze(a,n);var h=e&&e[i.propertyName+"Params"];return"function"==typeof h?Ze(a,h(n)):"object"==typeof h&&Ze(a,h),Ze(a,r),a},t.prototype.initComponent=function(e,i){if(this.context.createBean(e),null!=e.init)return e.init(i)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var i=null,n=this.getCompKeys(e,Xs),r=n.compName,a=n.jsComp,l=n.fwComp;return r?i=xv.getFloatingFilterType(r):null==a&&null==l&&!0===e.filter&&(i=$.isRegistered(Ie.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),i},ko([w("gridOptions")],t.prototype,"gridOptions",void 0),ko([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ko([w("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),ko([w("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),ko([rt("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),ko([we("userComponentFactory")],t)}(ge),Ho=(()=>(function(o){o[o.SINGLE_SHEET=0]="SINGLE_SHEET",o[o.MULTI_SHEET=1]="MULTI_SHEET"}(Ho||(Ho={})),Ho))(),Sv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Js=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Rv=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return Sv(t,o),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var i=e.dragSource.eElement;i.removeEventListener("mousedown",e.mouseDownListener),e.touchEnabled&&i.removeEventListener("touchstart",e.touchStartListener,{passive:!0})},t.prototype.removeDragSource=function(e){var i=this.dragSources.find(function(n){return n.dragSource===e});!i||(this.removeListener(i),De(this.dragSources,i))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,i){var n=this;void 0===i&&(i=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",r);var a=null,l=this.gridOptionsWrapper.isSuppressTouch();i&&!l&&e.eElement.addEventListener("touchstart",a=function(h){$a(h.target)||(h.cancelable&&h.preventDefault(),n.onTouchStart(e,h))},{passive:!1}),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:a,touchEnabled:i})},t.prototype.onTouchStart=function(e,i){var n=this;this.currentDragParams=e,this.dragging=!1;var r=i.touches[0];this.touchLastTime=r,this.touchStart=r;var l=function(_){return n.onTouchUp(_,e.eElement)},m=i.target,v=[{target:document,type:"touchmove",listener:function(_){_.cancelable&&_.preventDefault()},options:{passive:!1}},{target:m,type:"touchmove",listener:function(_){return n.onTouchMove(_,e.eElement)},options:{passive:!0}},{target:m,type:"touchend",listener:l,options:{passive:!0}},{target:m,type:"touchcancel",listener:l,options:{passive:!0}}];this.addTemporaryEvents(v),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,i){var n=this,r=i;if(!(e.skipMouseEvent&&e.skipMouseEvent(i)||r._alreadyProcessedByDragService||(r._alreadyProcessedByDragService=!0,0!==i.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=i;var a=this.gridOptionsWrapper.getDocument();this.addTemporaryEvents([{target:a,type:"mousemove",listener:function(y){return n.onMouseMove(y,e.eElement)}},{target:a,type:"mouseup",listener:function(y){return n.onMouseUp(y,e.eElement)}},{target:a,type:"contextmenu",listener:function(y){return y.preventDefault()}}]),0===e.dragStartPixels&&this.onMouseMove(i,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(i){i.target.addEventListener(i.type,i.listener,i.options)}),this.dragEndFunctions.push(function(){e.forEach(function(i){i.target.removeEventListener(i.type,i.listener,i.options)})})},t.prototype.isEventNearStartEvent=function(e,i){var n=this.currentDragParams.dragStartPixels;return As(e,i,N(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var i=0;i=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},kh=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.allColumnFilters=new Map,i.activeAggregateFilters=[],i.activeColumnFilters=[],i.quickFilter=null,i.quickFilterParts=null,i.processingFilterChange=!1,i}var e;return Ov(t,o),e=t,t.prototype.init=function(){var i=this;this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,function(){return i.onColumnsChanged()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_VALUE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(i){var n=this,r=[],a=this.getFilterModel();if(i){var l=ll(Object.keys(i));this.allColumnFilters.forEach(function(h,m){r.push(n.setModelOnFilterWrapper(h.filterPromise,i[m])),l.delete(m)}),l.forEach(function(h){var m=n.columnModel.getPrimaryColumn(h)||n.columnModel.getGridColumn(h);if(m)if(m.isFilterAllowed()){var v=n.getOrCreateFilterWrapper(m,"NO_UI");v?r.push(n.setModelOnFilterWrapper(v.filterPromise,i[h])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+h)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+h);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+h)})}else this.allColumnFilters.forEach(function(h){r.push(n.setModelOnFilterWrapper(h.filterPromise,null))});Ei.all(r).then(function(){var h=n.getFilterModel(),m=[];n.allColumnFilters.forEach(function(v,_){Fe.jsonEquals(a?a[_]:null,h?h[_]:null)||m.push(v.column)}),m.length>0&&n.onFilterChanged({columns:m})})},t.prototype.setModelOnFilterWrapper=function(i,n){return new Ei(function(r){i.then(function(a){"function"!=typeof a.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),r()),(a.setModel(n)||Ei.resolve()).then(function(){return r()})})})},t.prototype.getFilterModel=function(){var i={};return this.allColumnFilters.forEach(function(n,r){var l=n.filterPromise.resolveNow(null,function(m){return m});if(null==l)return null;if("function"==typeof l.getModel){var h=l.getModel();N(h)&&(i[r]=h)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")}),i},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.doAggregateFiltersPass=function(i,n){return this.doColumnFiltersPass(i,n,!0)},t.prototype.updateActiveFilters=function(){var i=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var n=function(l){return!!l&&(l.isFilterActive?l.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},r=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach(function(l){if(l.filterPromise.resolveNow(!1,n)){var h=l.filterPromise.resolveNow(null,function(m){return m});!function(l){if(!l.isPrimary())return!0;var m=!i.columnModel.isPivotActive();return!(!l.isValueActive()||!m)&&(!!i.columnModel.isPivotMode()||r)}(l.column)?i.activeColumnFilters.push(h):i.activeAggregateFilters.push(h)}})},t.prototype.updateFilterFlagInColumns=function(i,n){this.allColumnFilters.forEach(function(r){var a=r.filterPromise.resolveNow(!1,function(l){return l.isFilterActive()});r.column.setFilterActive(a,i,n)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(i,n,r){for(var h=r?this.activeAggregateFilters:this.activeColumnFilters,m=r?i.aggData:i.data,v=0;v=0})},t.prototype.doesRowPassQuickFilterCache=function(i,n){return i.quickFilterAggregateText||this.aggregateRowForQuickFilter(i),i.quickFilterAggregateText.indexOf(n)>=0},t.prototype.doesRowPassQuickFilter=function(i){var n=this,r=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every(function(a){return r?n.doesRowPassQuickFilterCache(i,a):n.doesRowPassQuickFilterNoCache(i,a)})},t.prototype.doesRowPassAggregateFilters=function(i){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(i.rowNode,i.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(i){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(i.rowNode)||this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(i.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(i.rowNode,i.filterInstanceToSkip))},t.prototype.getQuickFilterTextForColumn=function(i,n){var r=this.valueService.getValue(i,n,!0),a=i.getColDef();if(a.getQuickFilterText){var l={value:r,node:n,data:n.data,column:i,colDef:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};r=a.getQuickFilterText(l)}return N(r)?r.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(i){var n=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach(function(l){var h=n.getQuickFilterTextForColumn(l,i);N(h)&&r.push(h)}),i.quickFilterAggregateText=r.join(e.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(i){this.allColumnFilters.forEach(function(n){n.filterPromise.then(function(r){r.onNewRowsLoaded&&r.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(i),this.updateActiveFilters()},t.prototype.createValueGetter=function(i){var n=this;return function(r){return n.valueService.getValue(i,r.node,!0)}},t.prototype.getFilterComponent=function(i,n,r){var a;if(void 0===r&&(r=!0),r)return(null===(a=this.getOrCreateFilterWrapper(i,n))||void 0===a?void 0:a.filterPromise)||null;var l=this.cachedFilter(i);return l?l.filterPromise:null},t.prototype.isFilterActive=function(i){var n=this.cachedFilter(i);return!!n&&n.filterPromise.resolveNow(!1,function(r){return r.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(i,n){if(!i.isFilterAllowed())return null;var r=this.cachedFilter(i);return r?"NO_UI"!==n&&this.putIntoGui(r,n):(r=this.createFilterWrapper(i,n),this.allColumnFilters.set(i.getColId(),r)),r},t.prototype.cachedFilter=function(i){return this.allColumnFilters.get(i.getColId())},t.prototype.createFilterInstance=function(i){var l,n=this,r=$.isRegistered(Ie.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",a=i.getColDef(),h=ea(ea({},this.createFilterParams(i,a)),{filterModifiedCallback:function(){n.eventService.dispatchEvent({type:S.EVENT_FILTER_MODIFIED,column:i,filterInstance:l})},filterChangedCallback:function(_){n.callOnFilterChangedOutsideRenderCycle({filterInstance:l,additionalEventAttributes:_,columns:[i]})},doesRowPassOtherFilter:function(_){return n.doesRowPassOtherFilters(l,_)}}),m=this.userComponentFactory.getFilterDetails(a,h,r);if(!m)return null;var v=m.newAgStackInstance();return v&&v.then(function(_){return l=_}),v},t.prototype.createFilterParams=function(i,n){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:i,colDef:Ft(n),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(i),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},t.prototype.createFilterWrapper=function(i,n){var r={column:i,filterPromise:null,compiledElement:null,guiPromise:Ei.resolve(null)};return r.filterPromise=this.createFilterInstance(i),r.filterPromise&&this.putIntoGui(r,n),r},t.prototype.putIntoGui=function(i,n){var r=this,a=document.createElement("div");a.className="ag-filter",i.guiPromise=new Ei(function(l){i.filterPromise.then(function(h){var m=h.getGui();N(m)||console.warn("AG Grid: getGui method from filter returned "+m+", it should be a DOM element or an HTML template string."),"string"==typeof m&&(m=vi(m)),a.appendChild(m),l(a),r.eventService.dispatchEvent({type:S.EVENT_FILTER_OPENED,column:i.column,source:n,eGui:a})})})},t.prototype.onColumnsChanged=function(){var i=this,n=[];this.allColumnFilters.forEach(function(r,a){!(r.column.isPrimary()?i.columnModel.getPrimaryColumn(a):i.columnModel.getGridColumn(a))&&(n.push(r.column),i.disposeFilterWrapper(r,"filterDestroyed"))}),n.length>0&&this.onFilterChanged({columns:n})},t.prototype.destroyFilter=function(i,n){void 0===n&&(n="api");var r=this.allColumnFilters.get(i.getColId());r&&(this.disposeFilterWrapper(r,n),this.onFilterChanged({columns:[i]}))},t.prototype.disposeFilterWrapper=function(i,n){var r=this;i.filterPromise.then(function(a){(a.setModel(null)||Ei.resolve()).then(function(){r.getContext().destroyBean(a),i.column.setFilterActive(!1,n),r.allColumnFilters.delete(i.column.getColId())})})},t.prototype.destroy=function(){var i=this;o.prototype.destroy.call(this),this.allColumnFilters.forEach(function(n){return i.disposeFilterWrapper(n,"filterDestroyed")})},t.QUICK_FILTER_SEPARATOR="\n",tr([w("valueService")],t.prototype,"valueService",void 0),tr([w("columnModel")],t.prototype,"columnModel",void 0),tr([w("rowModel")],t.prototype,"rowModel",void 0),tr([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),tr([w("rowRenderer")],t.prototype,"rowRenderer",void 0),tr([ve],t.prototype,"init",null),tr([Ct],t.prototype,"destroy",null),e=tr([we("filterManager")],t)}(ge),Tv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yd=function(o){function t(e,i){var n=o.call(this,e)||this;return n.ctrl=i,n}return Tv(t,o),t.prototype.getCtrl=function(){return this.ctrl},t}(Je),Dv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ta=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Hh=function(o){function t(e){return o.call(this,t.TEMPLATE,e)||this}return Dv(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(r,a){return e.addOrRemoveCssClass(r,a)},addOrRemoveBodyCssClass:function(r,a){return e.eFloatingFilterBody.classList.toggle(r,a)},addOrRemoveButtonWrapperCssClass:function(r,a){return e.eButtonWrapper.classList.toggle(r,a)},setCompDetails:function(r){return e.setCompDetails(r)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(r){return i.style.width=r},setMenuIcon:function(r){return e.eButtonShowMainFilter.appendChild(r)}},i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var i=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(n){return i.afterCompCreated(n)})},t.prototype.afterCompCreated=function(e){var i=this;!e||(this.addDestroyFunc(function(){return i.context.destroyBean(e)}),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='
    \n
    \n \n
    ',ta([ce("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ta([ce("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ta([ce("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ta([ve],t.prototype,"postConstruct",null),t}(Yd),Vh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kd=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},ti=(()=>(function(o){o.AUTO_HEIGHT="ag-layout-auto-height",o.NORMAL="ag-layout-normal",o.PRINT="ag-layout-print"}(ti||(ti={})),ti))(),Ll=function(o){function t(e){var i=o.call(this)||this;return i.view=e,i}return Vh(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),i={autoHeight:e===G.DOM_LAYOUT_AUTO_HEIGHT,normal:e===G.DOM_LAYOUT_NORMAL,print:e===G.DOM_LAYOUT_PRINT};this.view.updateLayoutClasses(i.autoHeight?ti.AUTO_HEIGHT:i.print?ti.PRINT:ti.NORMAL,i)},Kd([w("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Kd([ve],t.prototype,"postConstruct",null),t}(ge),Bh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ir=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Wh=function(o){function t(e){var i=o.call(this)||this;return i.scrollLeft=-1,i.nextScrollTop=-1,i.scrollTop=-1,i.eBodyViewport=e,i.resetLastHorizontalScrollElementDebounced=Oe(i.resetLastHorizontalScrollElement.bind(i),500),i}return Bh(t,o),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(i){e.centerRowContainerCtrl=i.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var i=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Oe(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(null!=this.centerRowContainerCtrl){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var n=this.enableRtl?e:-e,r=this.ctrlsService.getTopCenterRowContainerCtrl(),a=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),l=this.ctrlsService.getBottomCenterRowContainerCtrl(),h=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(n),l.setContainerTranslateX(n),r.setContainerTranslateX(n),a.setContainerTranslateX(n);var v=this.centerRowContainerCtrl.getViewportElement();bo(this.lastHorizontalScrollElement===v?h.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();!this.isControllingScroll(e)||this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();!this.isControllingScroll(e)||this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var i=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",i.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(dr(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var n=dr(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===n||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var i=this,n={type:S.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var r=Object.assign({},n,{type:S.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(r)},100)},t.prototype.shouldBlockScrollUpdate=function(e,i,n){if(void 0===n&&(n=!1),n&&!Yn())return!1;if("vertical"===e){var r=Vr(this.eBodyViewport);if(i<0||i+r>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===e){var l=this.centerRowContainerCtrl.getCenterWidth(),h=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Br()){if(i>0)return!0}else if(i<0)return!0;if(Math.abs(i)+l>h)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var n=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Br()?e>0?0:n:Math.min(Math.max(e,0),n)),bo(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,i){void 0===i&&(i=null);for(var n=this.rowModel.getRowCount(),r=-1,a=0;a=0&&this.ensureIndexVisible(r,i)},t.prototype.ensureIndexVisible=function(e,i){if(this.gridOptionsWrapper.getDomLayout()!==G.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)return void console.warn("invalid row index for ensureIndexVisible: "+e);this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var v,h=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),m=this.paginationProxy.getRow(e);do{var _=m.rowTop,y=m.rowHeight,b=this.paginationProxy.getPixelOffset(),R=m.rowTop-b,I=R+m.rowHeight,H=this.getVScrollPosition(),te=this.heightScaler.getDivStretchOffset(),X=H.top+te,fe=H.bottom+te,me=fe-X,Se=this.heightScaler.getScrollPositionForPixel(R),$e=this.heightScaler.getScrollPositionForPixel(I-me),Xe=Math.min((Se+$e)/2,R),st=null;"top"===i?st=Se:"bottom"===i?st=$e:"middle"===i?st=Xe:X+h>R?st=Se-h:feh:rl}},t.prototype.getColumnBounds=function(e){var i=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),a=e.getLeft(),l=i?-1:1,h=i?n-a:a;return{colLeft:h,colMiddle:h+r/2*l,colRight:h+r*l}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:i,end:e+i,width:e}},ir([w("ctrlsService")],t.prototype,"ctrlsService",void 0),ir([w("animationFrameService")],t.prototype,"animationFrameService",void 0),ir([w("paginationProxy")],t.prototype,"paginationProxy",void 0),ir([w("rowModel")],t.prototype,"rowModel",void 0),ir([w("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ir([w("rowRenderer")],t.prototype,"rowRenderer",void 0),ir([w("columnModel")],t.prototype,"columnModel",void 0),ir([ve],t.prototype,"postConstruct",null),t}(ge),Uh=function(){function o(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return o.prototype.check=function(t,e){void 0===e&&(e=!1);var i=e||this.shouldSkipVerticalScroll();if(!i||!this.shouldSkipHorizontalScroll()){var n=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=t.clientXn.right-r,this.tickUp=t.clientYn.bottom-r&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},o.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},o.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var i=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(i-t),this.tickRight&&this.setHorizontalPosition(i+t)}this.onScrollCallback&&this.onScrollCallback()},o.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},o}(),jh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nl=function(){return Nl=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},zh=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},Mv=function(o){function t(e){var i=o.call(this)||this;return i.isMultiRowDrag=!1,i.isGridSorted=!1,i.isGridFiltered=!1,i.isRowGroupActive=!1,i.eContainer=e,i}return jh(t,o),t.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var i=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_MODEL_UPDATED,function(){i()}),i(),this.ctrlsService.whenReady(function(){var n=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Uh({scrollContainer:n.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return n.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(r){return n.getScrollFeature().setVerticalScrollPosition(r)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!ae(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===Si.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?oi.ICON_NOT_ALLOWED:oi.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var i=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),r=function(){for(var o=[],t=0;tthis.paginationProxy.getCurrentPageHeight()||(a=this.rowModel.getRowIndexAtPixel(n),l=this.rowModel.getRow(a)),i.vDirection){case er.Down:h="down";break;case er.Up:h="up";break;default:h=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:a,overNode:l,y:n,vDirection:h}},t.prototype.dispatchGridEvent=function(e,i){var n=this.draggingToRowDragEvent(e,i);this.eventService.dispatchEvent(n)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(S.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(S.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(i){i.setDragging(!1)})},$i([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$i([w("rowModel")],t.prototype,"rowModel",void 0),$i([w("paginationProxy")],t.prototype,"paginationProxy",void 0),$i([w("columnModel")],t.prototype,"columnModel",void 0),$i([w("focusService")],t.prototype,"focusService",void 0),$i([w("sortController")],t.prototype,"sortController",void 0),$i([w("filterManager")],t.prototype,"filterManager",void 0),$i([w("selectionService")],t.prototype,"selectionService",void 0),$i([w("mouseEventService")],t.prototype,"mouseEventService",void 0),$i([w("ctrlsService")],t.prototype,"ctrlsService",void 0),$i([rt("rangeService")],t.prototype,"rangeService",void 0),$i([ve],t.prototype,"postConstruct",null),t}(ge),$d=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),on=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yr=(()=>(function(o){o.ANIMATION_ON="ag-row-animation",o.ANIMATION_OFF="ag-row-no-animation"}(yr||(yr={})),yr))(),ia="ag-selectable",Gl="ag-force-vertical-scroll",Kh="ag-column-moving",Av=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return $d(t,o),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,i,n,r,a,l){this.comp=e,this.eGridBody=i,this.eBodyViewport=n,this.eTop=r,this.eBottom=a,this.eStickyTop=l,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new Ll(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Wh(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,a,l]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var i=this;e.forEach(function(n){i.addManagedListener(n,"focusin",function(r){var l=Kn(r.target,"ag-root",n);n.classList.toggle("ag-has-focus",!l)}),i.addManagedListener(n,"focusout",function(r){var a=r.target,l=r.relatedTarget,h=n.contains(l),m=Kn(l,"ag-root",n);Kn(a,"ag-root",n)||(!h||m)&&n.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?Kh:null,e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.comp.setCellSelectableCss(e?ia:null,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var i=function(r){var a=r.relatedTarget;if(null!==gs(a)){var l=n.some(function(m){return m.contains(a)})&&e.mouseEventService.isElementInThisGrid(a);if(!l){var h=e.popupService;l=h.getActivePopups().some(function(m){return m.contains(a)})||h.isElementWithinCustomPopup(a)}l||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach(function(r){return e.addManagedListener(r,"focusout",i)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===i?-1:e+i)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){this.comp.setPinnedTopBottomOverflowY(e?"scroll":"hidden")},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),i=e?Gl:null,n=this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(i,e),e||n&&id(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,i=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching();e.comp.setRowAnimationCssOnBodyViewport(n?yr.ANIMATION_ON:yr.ANIMATION_OFF,n)};i(),this.addManagedListener(this.eventService,S.EVENT_HEIGHT_SCALE_CHANGED,i)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,i=function(n,r,a){if(n||a){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&(n||a).preventDefault();var h=(n||r).target;(h===e.eBodyViewport||h===e.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&e.contextMenuFactory&&(n?e.contextMenuFactory.onContextMenu(n,null,null,null,null,e.eGridBody):a&&e.contextMenuFactory.onContextMenu(null,a,null,null,null,e.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",i),this.mockContextMenuForIPad(i),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},t.prototype.mockContextMenuForIPad=function(e){if(Yn()){var i=new ki(this.eBodyViewport);this.addManagedListener(i,ki.EVENT_LONG_TAP,function(r){e(void 0,r.touchStart,r.touchEvent)}),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.onBodyViewportWheel=function(e){!this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()||this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+e),this.eBodyViewport.scrollTop-i},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Mv(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,i=e.getPinnedTopTotalHeight();i&&(i+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(i),this.comp.setBottomHeight(n),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var i=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+i+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var i=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),n=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;i>0&&(r+=i+1),n>0&&(r+=n+1),this.comp.setStickyTopTop(r+"px")},t.prototype.sizeColumnsToFit=function(e,i){var n=this,a=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,h=Cs(this.eBodyViewport)-a;h>0?this.columnModel.sizeColumnsToFit(h,"sizeColumnsToFit",!1,e):void 0===i?window.setTimeout(function(){n.sizeColumnsToFit(e,100)},0):100===i?window.setTimeout(function(){n.sizeColumnsToFit(e,500)},100):500===i?window.setTimeout(function(){n.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},on([w("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),on([w("ctrlsService")],t.prototype,"ctrlsService",void 0),on([w("columnModel")],t.prototype,"columnModel",void 0),on([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),on([rt("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),on([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),on([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),on([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),on([w("rowRenderer")],t.prototype,"rowRenderer",void 0),on([w("popupService")],t.prototype,"popupService",void 0),on([w("mouseEventService")],t.prototype,"mouseEventService",void 0),on([w("rowModel")],t.prototype,"rowModel",void 0),t}(ge),Vo=(()=>(function(o){o[o.FILL=0]="FILL",o[o.RANGE=1]="RANGE"}(Vo||(Vo={})),Vo))(),to=(()=>(function(o){o[o.VALUE=0]="VALUE",o[o.DIMENSION=1]="DIMENSION"}(to||(to={})),to))(),na="ag-cell-range-selected",Fv=function(){function o(t,e){this.beans=t,this.cellCtrl=e}return o.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},o.prototype.onRangeSelectionChanged=function(){!this.cellComp||(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(na,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),To(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},o.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),n=!e&&t.right,r=!e&&t.bottom,a=!e&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!e&&t.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",a)},o.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},o.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(i){return St([to.DIMENSION,to.VALUE],i.type)})},o.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},o.prototype.getRangeBorders=function(){var _,y,t=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),i=!1,n=!1,r=!1,a=!1,l=this.cellCtrl.getCellPosition().column,h=this.beans,m=h.rangeService,v=h.columnModel;e?(_=v.getDisplayedColAfter(l),y=v.getDisplayedColBefore(l)):(_=v.getDisplayedColBefore(l),y=v.getDisplayedColAfter(l));var b=m.getCellRanges().filter(function(X){return m.isCellInSpecificRange(t.cellCtrl.getCellPosition(),X)});_||(a=!0),y||(n=!0);for(var R=0;R=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Xd=function(){function o(){}return o.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},tt([w("resizeObserverService")],o.prototype,"resizeObserverService",void 0),tt([w("paginationProxy")],o.prototype,"paginationProxy",void 0),tt([w("context")],o.prototype,"context",void 0),tt([w("columnApi")],o.prototype,"columnApi",void 0),tt([w("gridApi")],o.prototype,"gridApi",void 0),tt([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),tt([w("expressionService")],o.prototype,"expressionService",void 0),tt([w("rowRenderer")],o.prototype,"rowRenderer",void 0),tt([w("templateService")],o.prototype,"templateService",void 0),tt([w("valueService")],o.prototype,"valueService",void 0),tt([w("eventService")],o.prototype,"eventService",void 0),tt([w("columnModel")],o.prototype,"columnModel",void 0),tt([w("headerNavigationService")],o.prototype,"headerNavigationService",void 0),tt([w("navigationService")],o.prototype,"navigationService",void 0),tt([w("columnAnimationService")],o.prototype,"columnAnimationService",void 0),tt([rt("rangeService")],o.prototype,"rangeService",void 0),tt([w("focusService")],o.prototype,"focusService",void 0),tt([rt("contextMenuFactory")],o.prototype,"contextMenuFactory",void 0),tt([w("popupService")],o.prototype,"popupService",void 0),tt([w("valueFormatterService")],o.prototype,"valueFormatterService",void 0),tt([w("stylingService")],o.prototype,"stylingService",void 0),tt([w("columnHoverService")],o.prototype,"columnHoverService",void 0),tt([w("userComponentFactory")],o.prototype,"userComponentFactory",void 0),tt([w("userComponentRegistry")],o.prototype,"userComponentRegistry",void 0),tt([w("animationFrameService")],o.prototype,"animationFrameService",void 0),tt([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),tt([w("sortController")],o.prototype,"sortController",void 0),tt([w("filterManager")],o.prototype,"filterManager",void 0),tt([w("rowContainerHeightService")],o.prototype,"rowContainerHeightService",void 0),tt([w("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),tt([w("cellPositionUtils")],o.prototype,"cellPositionUtils",void 0),tt([w("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),tt([w("selectionService")],o.prototype,"selectionService",void 0),tt([rt("selectionHandleFactory")],o.prototype,"selectionHandleFactory",void 0),tt([w("rowCssClassCalculator")],o.prototype,"rowCssClassCalculator",void 0),tt([w("rowModel")],o.prototype,"rowModel",void 0),tt([w("ctrlsService")],o.prototype,"ctrlsService",void 0),tt([w("ctrlsFactory")],o.prototype,"ctrlsFactory",void 0),tt([w("agStackComponentsRegistry")],o.prototype,"agStackComponentsRegistry",void 0),tt([w("valueCache")],o.prototype,"valueCache",void 0),tt([w("rowNodeEventThrottle")],o.prototype,"rowNodeEventThrottle",void 0),tt([ve],o.prototype,"postConstruct",null),tt([we("beans")],o)}(),nf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),rf=function(o){function t(e,i,n){var r=o.call(this)||this;return r.cellCtrl=e,r.beans=i,r.column=n,r}return nf(t,o),t.prototype.onMouseEvent=function(e,i){if(!jt(i))switch(e){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var i=this.beans,n=i.eventService,r=i.rangeService,a=i.gridOptionsWrapper;r&&(e.ctrlKey||e.metaKey)&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var h=this.cellCtrl.createEvent(e,S.EVENT_CELL_CLICKED);n.dispatchEvent(h);var m=this.column.getColDef();m.onCellClicked&&window.setTimeout(function(){return m.onCellClicked(h)},0),(a.isSingleClickEdit()||m.singleClickEdit)&&!a.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Yn()||vt("dblclick"))return!1;var e=(new Date).getTime(),i=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,i},t.prototype.onCellDoubleClicked=function(e){var i=this.column.getColDef(),n=this.cellCtrl.createEvent(e,S.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof i.onCellDoubleClicked&&window.setTimeout(function(){return i.onCellDoubleClicked(n)},0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var i=e.ctrlKey,n=e.metaKey,r=e.shiftKey,a=e.target,l=this.beans,h=l.eventService,m=l.rangeService;if(!this.isRightClickInExistingRange(e)){var v=m&&0!=m.getCellRanges().length;if(!r||!v){var _=(Gr()||zn())&&!this.cellCtrl.isEditing()&&!$a(a);this.cellCtrl.focusCell(_)}if(r&&v&&e.preventDefault(),!this.containsWidget(a)){if(m){var y=this.cellCtrl.getCellPosition();r?m.extendLatestRangeToCell(y):m.setRangeToCell(y,i||n)}h.dispatchEvent(this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var i=this.beans.rangeService;return!(!i||!i.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==e.button)},t.prototype.containsWidget=function(e){return Kn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var i=this.cellCtrl.getGui(),n=i.contains(e.target),r=i.contains(e.relatedTarget);return n&&r},t.prototype.destroy=function(){},t}(Xd),sf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Lv=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.cellCtrl=e,l.beans=i,l.rowNode=r,l.rowCtrl=a,l}return sf(t,o),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var i=e.key;switch(i){case le.ENTER:this.onEnterKeyDown(e);break;case le.F2:this.onF2KeyDown(e);break;case le.ESCAPE:this.onEscapeKeyDown(e);break;case le.TAB:this.onTabKeyDown(e);break;case le.BACKSPACE:case le.DELETE:this.onBackspaceOrDeleteKeyPressed(i,e);break;case le.DOWN:case le.UP:case le.RIGHT:case le.LEFT:this.onNavigationKeyPressed(e,i)}},t.prototype.onNavigationKeyPressed=function(e,i){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,i,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(e);i&&this.beans.navigationService.ensureCellVisible(i)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,i){var n=this,r=n.cellCtrl,a=n.beans,l=n.rowNode,h=a.gridOptionsWrapper,m=a.rangeService,v=a.eventService;r.isEditing()||(v.dispatchEvent({type:S.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Yi(e,h.isEnableCellEditingOnBackspace())?m&&h.isEnableRangeSelection()?m.clearCellRangeCellValues():r.isCellEditable()&&l.setDataValue(r.getColumn(),null,"cellKeyboardListenerFeature"):r.startRowOrCellEdit(e,void 0,i),v.dispatchEvent({type:S.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,le.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(le.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(le.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(e.target===this.eGui&&!this.cellCtrl.isEditing()){var r=String.fromCharCode(e.charCode);" "===r?this.onSpaceKeyPressed(e):md(e)&&(this.cellCtrl.startRowOrCellEdit(null,r,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var i=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var n=this.rowNode.isSelected(),r=!n;if(r||!i.isSuppressRowDeselection()){var a=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),l=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:a});void 0===n&&0===l&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:a})}}e.preventDefault()},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}(ge),Jd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nv=function(o){function t(e,i,n,r){var a=o.call(this,'
    ')||this;return a.rowNode=e,a.column=i,a.beans=n,a.eCell=r,a}return Jd(t,o),t.prototype.postConstruct=function(){this.getGui().appendChild(Jt("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",function(i){i.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var i=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var l=JSON.stringify(i.rowNode.data);e.dataTransfer.setData("application/json",l),e.dataTransfer.setData("text/plain",l)}catch{}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(Je),af=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ra=function(){return ra=Object.assign||function(o){for(var t,e=1,i=arguments.length;e0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},Hi=(()=>(function(o){o.Normal="Normal",o.FullWidth="FullWidth",o.FullWidthLoading="FullWidthLoading",o.FullWidthGroup="FullWidthGroup",o.FullWidthDetail="FullWidthDetail"}(Hi||(Hi={})),Hi))(),jv=0,io=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.allRowGuis=[],l.active=!0,l.centerCellCtrls={list:[],map:{}},l.leftCellCtrls={list:[],map:{}},l.rightCellCtrls={list:[],map:{}},l.lastMouseDownOnDragger=!1,l.updateColumnListsPending=!1,l.beans=i,l.rowNode=e,l.paginationPage=l.beans.paginationProxy.getCurrentPage(),l.useAnimationFrameForCreate=r,l.printLayout=a,l.instanceId=e.id+"-"+jv++,l.setAnimateFlags(n),l.rowFocused=l.beans.focusService.isRowFocused(l.rowNode.rowIndex,l.rowNode.rowPinned),l.rowLevel=l.beans.rowCssClassCalculator.calculateRowLevel(l.rowNode),l.setRowType(),l.addListeners(),l}return ff(t,o),t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,i,n){var r={rowComp:e,element:i,containerType:n};this.allRowGuis.push(r),n===Vi.LEFT?this.leftGui=r:n===Vi.RIGHT?this.rightGui=r:n===Vi.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r,(null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui||null!=this.fullWidthGui)&&this.initialiseRowComps(),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.isCacheable=function(){return this.rowType===Hi.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},t.prototype.setCached=function(e){var i=e?"none":"";this.allRowGuis.forEach(function(n){return n.element.style.display=i})},t.prototype.initialiseRowComps=function(){var e=this,i=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),i.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&Ce(this.onTopChanged.bind(this)),this.fadeRowIn&&Ce(function(){e.allRowGuis.forEach(function(l){return l.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})});var n=this.getRowBusinessKey(),r=en(this.rowNode.id),a=en(n);this.allRowGuis.forEach(function(l){var h=l.rowComp;h.setRole("row"),e.getInitialRowClasses(l.containerType).forEach(function(v){return h.addOrRemoveCssClass(v,!0)}),e.rowNode.group&&tn(l.element,1==e.rowNode.expanded),null!=r&&h.setRowId(r),null!=a&&h.setRowBusinessKey(a),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&h.setTabIndex(-1),i.setDomData(l.element,t.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc(function(){return i.setDomData(l.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,l.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(l.element),e.isFullWidth()&&e.setupFullWidth(l),i.isRowDragEntireRow()&&e.addRowDraggerToRow(l),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask(function(){!e.isAlive()||l.rowComp.addOrRemoveCssClass("ag-after-created",!0)})}),this.executeProcessRowPostCreateFunc()},t.prototype.addRowDraggerToRow=function(e){var i=this.beans.gridOptionsWrapper;if(i.isEnableRangeSelection())Ve(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");else{var n=i.getLocaleTextFunc(),r=new $s(function(){return"1 "+n("rowDragRow","row")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(r,this.beans.context)}},t.prototype.setupFullWidth=function(e){var i=this.getPinnedForContainer(e.containerType),n=this.createFullWidthParams(e.element,i),r=$.isRegistered(Ie.MasterDetailModule);if(this.rowType!=Hi.FullWidthDetail||r){var a;switch(this.rowType){case Hi.FullWidthDetail:a=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case Hi.FullWidthGroup:a=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case Hi.FullWidthLoading:a=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:a=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}e.rowComp.showFullWidth(a)}else $.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+Ie.MasterDetailModule)},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getCellElement=function(e){var i=this.getCellCtrl(e);return i?i.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},t.prototype.setRowType=function(){var e=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),l=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);this.rowType=e?Hi.FullWidthLoading:n?Hi.FullWidthDetail:i?Hi.FullWidth:l?Hi.FullWidthGroup:Hi.Normal},t.prototype.updateColumnLists=function(e){var i=this;if(void 0===e&&(e=!1),!this.isFullWidth()){if(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)return void this.updateColumnListsImpl();this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){!i.active||i.updateColumnListsImpl()},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,i,n){var r=this;void 0===n&&(n=null);var a={list:[],map:{}},l=function(h,m){a.list.push(m),a.map[h]=m};return i.forEach(function(h){var m=h.getInstanceId(),v=e.map[m];v||(v=new Cr(h,r.rowNode,r.beans,r)),l(m,v)}),e.list.forEach(function(h){if(null==a.map[h.getColumn().getInstanceId()]){if(!r.isCellEligibleToBeRemoved(h,n))return void l(h.getColumn().getInstanceId(),h);h.destroy()}}),a},t.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var i=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var n=i.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);var r=i.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,G.PINNED_LEFT);var a=i.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,a,G.PINNED_RIGHT)}this.allRowGuis.forEach(function(l){l.rowComp.setCellCtrls((l.containerType===Vi.LEFT?e.leftCellCtrls:l.containerType===Vi.RIGHT?e.rightCellCtrls:e.centerCellCtrls).list)})},t.prototype.isCellEligibleToBeRemoved=function(e,i){var n=!0;if(e.getColumn().getPinned()!=i)return n;var l=e.isEditing(),h=this.beans.focusService.isCellFocused(e.getCellPosition());if(l||h){var v=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(v)>=0)&&n}return n},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var i=N(this.rowNode.oldRowTop);this.slideRowIn=i,this.fadeRowIn=!i}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Hi.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,i=function(m,v){if(!m)return!0;var _=m.rowComp.getFullWidthCellRenderer();if(!_||!_.refresh)return!1;var y=e.createFullWidthParams(m.element,v);return _.refresh(y)},n=i(this.fullWidthGui,null),r=i(this.centerGui,null),a=i(this.leftGui,G.PINNED_LEFT),l=i(this.rightGui,G.PINNED_RIGHT);return n&&r&&a&&l},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,nt.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,S.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,S.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,S.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,S.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,S.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,S.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,S.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,nt.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(i){return i.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,function(i){e.getAllCellCtrls().forEach(function(n){return n.onCellChanged(i)})})},t.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach(function(i){return i.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(i){var r=e===vn.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",e===vn.Above),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)})},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),i=1==this.rowNode.expanded;this.allRowGuis.forEach(function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&i),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!i),tn(n.element,e&&i)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:_e(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var i=this.allRowGuis.find(function(m){return m.element.contains(e.target)});if((i?i.element:null)===e.target){var a=this.rowNode,l=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(e,e.key,{rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:l&&l.column},!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!jt(e)){var i=this.allRowGuis.find(function(l){return l.element.contains(e.target)}),n=i?i.element:null,r=n===e.target,a=null;r||(a=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!a)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var i,n=this.rowNode,r=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,a=this.fullWidthGui?this.fullWidthGui.element:null===(i=this.centerGui)||void 0===i?void 0:i.element;!a||(a.classList.toggle("ag-full-width-focus",r),r&&a.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,i){var n={list:[],map:{}};return e.list.forEach(function(r){r!==i&&(n.list.push(r),n.map[r.getInstanceId()]=r)}),n},t.prototype.onMouseEvent=function(e,i){switch(e){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i)}},t.prototype.createRowEvent=function(e,i){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:i}},t.prototype.createRowEventWithSource=function(e,i){var n=this.createRowEvent(e,i);return n.source=this,n},t.prototype.onRowDblClick=function(e){if(!jt(e)){var i=this.createRowEventWithSource(S.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(i)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=Kn(e.target,"ag-row-drag",3),this.isFullWidth()){var i=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!jt(e)&&!this.lastMouseDownOnDragger){var n=this.createRowEventWithSource(S.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(n);var r=e.ctrlKey||e.metaKey,a=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var h=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),m=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();this.rowNode.isSelected()?h?this.rowNode.setSelectedParams({newValue:!1,event:e}):r?m&&this.rowNode.setSelectedParams({newValue:!1,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!a,rangeSelect:a,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!h&&!r,rangeSelect:a,event:e})}}},t.prototype.setupDetailRowAutoHeight=function(e){var i=this;if(this.rowType===Hi.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var a=e.clientHeight;null!=a&&a>0&&i.beans.frameworkOverrides.setTimeout(function(){i.rowNode.setRowHeight(a),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()},0)},r=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(r),n()}},t.prototype.createFullWidthParams=function(e,i){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(a,l,h,m){return n.addFullWidthRowDragging(a,l,h,m)}}},t.prototype.addFullWidthRowDragging=function(e,i,n,r){if(void 0===n&&(n=""),this.isFullWidth()){var a=new $s(function(){return n},this.rowNode,void 0,e,i,r);this.createManagedBean(a,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var i="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass(i,!0),r.rowComp.addOrRemoveCssClass(n,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-last",i)}))},t.prototype.stopEditing=function(e){var i,n;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),a=this.editingRow;this.stoppingRowEdit=!0;var l=!1;try{for(var h=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),m=h.next();!m.done;m=h.next()){var _=m.value.stopEditing(e);a&&!e&&!l&&_&&(l=!0)}}catch(b){i={error:b}}finally{try{m&&!m.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}if(l){var y=this.createRowEvent(S.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(y)}a&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var i=this.createRowEvent(e?S.EVENT_ROW_EDITING_STARTED:S.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},t.prototype.startRowEditing=function(e,i,n,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n=null),void 0===r&&(r=null),this.editingRow||this.getAllCellCtrls().reduce(function(l,h){var m=h===n;return m?h.startEditing(e,i,m,r):h.startEditing(null,null,m,r),!!l||h.isEditing()},!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){var e=function(){for(var o=[],t=0;t=0&&(i=n)}),i},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),i=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,r=i+this.rowNode.rowIndex+1;this.allRowGuis.forEach(function(a){a.rowComp.setRowIndex(e),a.rowComp.addOrRemoveCssClass("ag-row-even",n),a.rowComp.addOrRemoveCssClass("ag-row-odd",!n),Rs(a.element,r)})},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(ge),zv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),sn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},mf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return zv(t,o),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(n){var r=e.processKeyboardEvent.bind(e,n);e.addManagedListener(e.element,n,r)})},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",vt("touchstart")?"touchstart":"mousedown"].forEach(function(r){var a=e.processMouseEvent.bind(e,r);e.addManagedListener(e.element,r,a)})},t.prototype.processMouseEvent=function(e,i){if(this.mouseEventService.isEventFromThisGrid(i)&&!jt(i)){var n=this.getRowForEvent(i),r=this.mouseEventService.getRenderedCellForEvent(i);"contextmenu"===e?this.handleContextMenuMouseEvent(i,null,n,r):(r&&r.onMouseEvent(e,i),n&&n.onMouseEvent(e,i))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Yn()){var i=new ki(this.element);this.addManagedListener(i,ki.EVENT_LONG_TAP,function(r){var a=e.getRowForEvent(r.touchEvent),l=e.mouseEventService.getRenderedCellForEvent(r.touchEvent);e.handleContextMenuMouseEvent(null,r.touchEvent,a,l)}),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.getRowForEvent=function(e){for(var i=e.target;i;){var n=this.gridOptionsWrapper.getDomData(i,io.DOM_DATA_KEY_ROW_CTRL);if(n)return n;i=i.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,i,n,r){var a=n?n.getRowNode():null,l=r?r.getColumn():null,h=null;l&&(r.dispatchCellContextMenuEvent(e||i),h=this.valueService.getValue(l,a));var v=this.ctrlsService.getGridBodyCtrl(),_=r?r.getGui():v.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,i,a,l,h,_)},t.prototype.processKeyboardEvent=function(e,i){var n=dt(this.gridOptionsWrapper,i,Cr.DOM_DATA_KEY_CELL_CTRL),r=dt(this.gridOptionsWrapper,i,io.DOM_DATA_KEY_ROW_CTRL);i.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,i):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,i))},t.prototype.processCellKeyboardEvent=function(e,i,n){var r=e.getRowNode(),a=e.getColumn(),l=e.isEditing();if(!Ms(this.gridOptionsWrapper,n,r,a,l))switch(i){case"keydown":!l&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===i){var v=e.createEvent(n,S.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(v)}if("keypress"===i){var _=e.createEvent(n,S.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(_)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,i,n){var r=e.getRowNode(),a=this.focusService.getFocusedCell();if(!Ms(this.gridOptionsWrapper,n,r,a&&a.column,!1)&&"keydown"===i)switch(n.key){case le.UP:case le.DOWN:e.onKeyboardNavigate(n);break;case le.TAB:e.onTabKeyDown(n)}if("keydown"===i){var v=e.createRowEvent(S.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(v)}if("keypress"===i){var _=e.createRowEvent(S.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(_)}},t.prototype.doGridOperations=function(e,i){if((e.ctrlKey||e.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(e)){var n=qn(e);if(n===le.A)return this.onCtrlAndA(e);if(n===le.C)return this.onCtrlAndC(e);if(n===le.V)return this.onCtrlAndV();if(n===le.D)return this.onCtrlAndD(e);if(n===le.Z)return this.onCtrlAndZ(e);if(n===le.Y)return this.onCtrlAndY()}},t.prototype.onCtrlAndA=function(e){var i=this,n=i.pinnedRowModel,a=i.rangeService,l=G.PINNED_BOTTOM,h=G.PINNED_TOP;if(a&&i.paginationProxy.isRowsToRender()){var m=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}([n.isEmpty(h),n.isEmpty(l)],2),y=m[0]?null:h,b=void 0,R=void 0;m[1]?(b=null,R=this.paginationProxy.getRowCount()-1):(b=l,R=n.getPinnedBottomRowData().length-1);var I=this.columnModel.getAllDisplayedColumns();if(ae(I))return;a.setCellRange({rowStartIndex:0,rowStartPinned:y,rowEndIndex:R,rowEndPinned:b,columnStart:I[0],columnEnd:Be(I)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){!this.clipboardService||this.gridOptionsWrapper.isEnableCellTextSelection()||(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){$.isRegistered(Ie.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){$.isRegistered(Ie.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){!this.gridOptionsWrapper.isUndoRedoCellEditing()||(e.preventDefault(),e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},sn([w("mouseEventService")],t.prototype,"mouseEventService",void 0),sn([w("valueService")],t.prototype,"valueService",void 0),sn([rt("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),sn([w("ctrlsService")],t.prototype,"ctrlsService",void 0),sn([w("navigationService")],t.prototype,"navigationService",void 0),sn([w("focusService")],t.prototype,"focusService",void 0),sn([w("undoRedoService")],t.prototype,"undoRedoService",void 0),sn([w("columnModel")],t.prototype,"columnModel",void 0),sn([w("paginationProxy")],t.prototype,"paginationProxy",void 0),sn([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),sn([rt("rangeService")],t.prototype,"rangeService",void 0),sn([rt("clipboardService")],t.prototype,"clipboardService",void 0),sn([ve],t.prototype,"postConstruct",null),t}(ge),Kv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},gf=function(o){function t(e){var i=o.call(this)||this;return i.centerContainerCtrl=e,i}return Kv(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,S.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,i=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var i=Vr(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==i&&(this.bodyHeight=i,this.eventService.dispatchEvent({type:S.EVENT_BODY_HEIGHT_CHANGED}))},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},Hl([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Hl([w("columnModel")],t.prototype,"columnModel",void 0),Hl([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Hl([ve],t.prototype,"postConstruct",null),t}(ge),Rn=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},vf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return Rn(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),i=e>0;Lt(this.element,i),i&&gn(this.element,e)},nu([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),nu([ve],t.prototype,"postConstruct",null),t}(ge),_f=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ru=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return _f(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),i=e>0;Lt(this.element,i),i&&gn(this.element,e)},ru([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),ru([ve],t.prototype,"postConstruct",null),t}(ge),Cf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ou=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},wf=function(o){function t(e,i){var n=o.call(this)||this;return n.eContainer=e,n.eWrapper=i,n}return Cf(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),i=null!=e?e+"px":"";this.eContainer.style.height=i,this.eWrapper&&(this.eWrapper.style.height=i)},ou([w("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),ou([ve],t.prototype,"postConstruct",null),t}(ge),bf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},xf=function(o){function t(e){var i=o.call(this)||this;return i.eContainer=e,i}return bf(t,o),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!z(this.rangeService)){var i={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(i),this.addDestroyFunc(function(){return e.dragService.removeDragSource(i)})}},Vl([rt("rangeService")],t.prototype,"rangeService",void 0),Vl([w("dragService")],t.prototype,"dragService",void 0),Vl([ve],t.prototype,"postConstruct",null),t}(ge),oa=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),su=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Bl=function(o){function t(e){var i=o.call(this)||this;return i.callback=e,i}return oa(t,o),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,i=this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),a=e.getDisplayedColumnsRightWidth();this.callback(i?n+r+a:n)},su([w("columnModel")],t.prototype,"columnModel",void 0),su([ve],t.prototype,"postConstruct",null),t}(ge),Ef=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),wr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Sf=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},ie=(()=>(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth",o.TOP_LEFT="topLeft",o.TOP_RIGHT="topRight",o.TOP_CENTER="topCenter",o.TOP_FULL_WIDTH="topFullWidth",o.STICKY_TOP_LEFT="stickyTopLeft",o.STICKY_TOP_RIGHT="stickyTopRight",o.STICKY_TOP_CENTER="stickyTopCenter",o.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",o.BOTTOM_LEFT="bottomLeft",o.BOTTOM_RIGHT="bottomRight",o.BOTTOM_CENTER="bottomCenter",o.BOTTOM_FULL_WIDTH="bottomFullWidth"}(ie||(ie={})),ie))(),Vi=(()=>(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth"}(Vi||(Vi={})),Vi))(),Tf=Fn([[ie.CENTER,"ag-center-cols-container"],[ie.LEFT,"ag-pinned-left-cols-container"],[ie.RIGHT,"ag-pinned-right-cols-container"],[ie.FULL_WIDTH,"ag-full-width-container"],[ie.TOP_CENTER,"ag-floating-top-container"],[ie.TOP_LEFT,"ag-pinned-left-floating-top"],[ie.TOP_RIGHT,"ag-pinned-right-floating-top"],[ie.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[ie.STICKY_TOP_CENTER,"ag-sticky-top-container"],[ie.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[ie.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[ie.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[ie.BOTTOM_CENTER,"ag-floating-bottom-container"],[ie.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[ie.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[ie.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Df=Fn([[ie.CENTER,"ag-center-cols-viewport"],[ie.TOP_CENTER,"ag-floating-top-viewport"],[ie.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[ie.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Bo=Fn([[ie.CENTER,"ag-center-cols-clipper"]]),sa=function(o){function t(e){var i=o.call(this)||this;return i.name=e,i}return Ef(t,o),t.getRowContainerCssClasses=function(e){return{container:Tf.get(e),viewport:Df.get(e),wrapper:Bo.get(e)}},t.getPinned=function(e){switch(e){case ie.BOTTOM_LEFT:case ie.TOP_LEFT:case ie.STICKY_TOP_LEFT:case ie.LEFT:return G.PINNED_LEFT;case ie.BOTTOM_RIGHT:case ie.TOP_RIGHT:case ie.STICKY_TOP_RIGHT:case ie.RIGHT:return G.PINNED_RIGHT;default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([ie.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new gf(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case ie.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case ie.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case ie.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case ie.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case ie.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case ie.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case ie.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case ie.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case ie.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case ie.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case ie.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case ie.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,i){e.indexOf(this.name)>=0&&i()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,i,n,r){var a=this;this.comp=e,this.eContainer=i,this.eViewport=n,this.eWrapper=r,this.createManagedBean(new mf(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var _=function(){for(var o=[],t=0;t=0)this.comp.setDomOrder(!0);else{var r=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,r),r()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([ie.TOP_CENTER,ie.STICKY_TOP_CENTER,ie.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,"scroll",function(){return e.eViewport.scrollLeft=0})})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([ie.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([ie.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){if(this.name===ie.CENTER){var i=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0;this.comp.setViewportHeight(0==i?"100%":"calc(100% + "+i+"px)")}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,i=function(n){e.dragService.isDragging()&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",i)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},t.prototype.getCenterWidth=function(){return Cs(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return dr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var i=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return i()})},t.prototype.isViewportVisible=function(){return xo(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Qa(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return dr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||Qa(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){bo(this.eViewport,e,this.enableRtl)},t.prototype.onDisplayedRowsChanged=function(){var e=this,i=this.name===ie.TOP_FULL_WIDTH||this.name===ie.STICKY_TOP_FULL_WIDTH||this.name===ie.BOTTOM_FULL_WIDTH||this.name===ie.FULL_WIDTH,a=this.getRowCtrls().filter(function(l){var h=l.isFullWidth(),m=e.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_PRINT,v=e.embedFullWidthRows||m;return i?!v&&h:v||!h});this.comp.setRowCtrls(a)},t.prototype.getRowCtrls=function(){switch(this.name){case ie.TOP_CENTER:case ie.TOP_LEFT:case ie.TOP_RIGHT:case ie.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case ie.STICKY_TOP_CENTER:case ie.STICKY_TOP_LEFT:case ie.STICKY_TOP_RIGHT:case ie.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case ie.BOTTOM_CENTER:case ie.BOTTOM_LEFT:case ie.BOTTOM_RIGHT:case ie.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},wr([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),wr([w("dragService")],t.prototype,"dragService",void 0),wr([w("ctrlsService")],t.prototype,"ctrlsService",void 0),wr([w("columnModel")],t.prototype,"columnModel",void 0),wr([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),wr([w("rowRenderer")],t.prototype,"rowRenderer",void 0),wr([ve],t.prototype,"postConstruct",null),t}(ge),Mf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),br=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},$v='
    \n \n \n \n \n \n \n \n
    ',au=function(o){function t(){return o.call(this,$v)||this}return Mf(t,o),t.prototype.init=function(){var e=this,i=function(r,a){var l=r+"px";a.style.minHeight=l,a.style.height=l},n={setRowAnimationCssOnBodyViewport:function(r,a){return e.setRowAnimationCssOnBodyViewport(r,a)},setColumnCount:function(r){return pd(e.getGui(),r)},setRowCount:function(r){return qp(e.getGui(),r)},setTopHeight:function(r){return i(r,e.eTop)},setBottomHeight:function(r){return i(r,e.eBottom)},setTopDisplay:function(r){return e.eTop.style.display=r},setBottomDisplay:function(r){return e.eBottom.style.display=r},setStickyTopHeight:function(r){return e.eStickyTop.style.height=r},setStickyTopTop:function(r){return e.eStickyTop.style.top=r},setStickyTopWidth:function(r){return e.eStickyTop.style.width=r},setColumnMovingCss:function(r,a){return e.addOrRemoveCssClass(Kh,a)},updateLayoutClasses:function(r,a){var l=e.eBodyViewport.classList;l.toggle(ti.AUTO_HEIGHT,a.autoHeight),l.toggle(ti.NORMAL,a.normal),l.toggle(ti.PRINT,a.print),e.addOrRemoveCssClass(ti.AUTO_HEIGHT,a.autoHeight),e.addOrRemoveCssClass(ti.NORMAL,a.normal),e.addOrRemoveCssClass(ti.PRINT,a.print)},setAlwaysVerticalScrollClass:function(r,a){return e.eBodyViewport.classList.toggle(Gl,a)},registerBodyViewportResizeListener:function(r){var a=e.resizeObserverService.observeResize(e.eBodyViewport,r);e.addDestroyFunc(function(){return a()})},setPinnedTopBottomOverflowY:function(r){return e.eTop.style.overflowY=e.eBottom.style.overflowY=r},setCellSelectableCss:function(r,a){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(l){return l.classList.toggle(ia,a)})}};this.ctrl=this.createManagedBean(new Av),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Yr(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,i){var n=this.eBodyViewport.classList;n.toggle(yr.ANIMATION_ON,i),n.toggle(yr.ANIMATION_OFF,!i)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},br([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),br([rt("rangeService")],t.prototype,"rangeService",void 0),br([ce("eBodyViewport")],t.prototype,"eBodyViewport",void 0),br([ce("eStickyTop")],t.prototype,"eStickyTop",void 0),br([ce("eTop")],t.prototype,"eTop",void 0),br([ce("eBottom")],t.prototype,"eBottom",void 0),br([ce("gridHeader")],t.prototype,"headerRootComp",void 0),br([ve],t.prototype,"init",null),t}(Je),Zv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),lu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},qv=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Zv(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var i={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},t.prototype.setScrollsVisible=function(e){this.horizontalScrollShowing===e.horizontalScrollShowing&&this.verticalScrollShowing===e.verticalScrollShowing||(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dispatchEvent({type:S.EVENT_SCROLL_VISIBILITY_CHANGED}))},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},lu([w("ctrlsService")],t.prototype,"ctrlsService",void 0),lu([ve],t.prototype,"postConstruct",null),lu([we("scrollVisibleService")],t)}(ge),Qv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Af=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Pf=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.gridInstanceId=e.gridInstanceSequence.next(),i}var e;return Qv(t,o),e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(i){i[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(i){return dt(this.gridOptionsWrapper,i,Cr.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(i){return this.isElementInThisGrid(i.target)},t.prototype.isElementInThisGrid=function(i){for(var n=i;n;){var r=n[e.GRID_DOM_KEY];if(N(r))return r===this.gridInstanceId;n=n.parentElement}return!1},t.prototype.getCellPositionForEvent=function(i){var n=this.getRenderedCellForEvent(i);return n?n.getCellPosition():null},t.prototype.getNormalisedPosition=function(i){var a,l,n=this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_NORMAL;if(null!=i.clientX||null!=i.clientY?(a=i.clientX,l=i.clientY):(a=i.x,l=i.y),n){var h=this.ctrlsService.getGridBodyCtrl(),m=h.getScrollFeature().getVScrollPosition();a+=h.getScrollFeature().getHScrollPosition().left,l+=m.top}return{x:a,y:l}},t.gridInstanceSequence=new Zr,t.GRID_DOM_KEY="__ag_grid_instance",Af([w("ctrlsService")],t.prototype,"ctrlsService",void 0),e=Af([we("mouseEventService")],t)}(ge),If=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Wl=function(){return Wl=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ff=function(o){function t(){var e=o.call(this)||this;return e.onPageDown=at(e.onPageDown,100),e.onPageUp=at(e.onPageUp,100),e}return If(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCon=i.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e){var i=e.key,n=e.altKey,r=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e);if(!l)return!1;var h=!1;switch(i){case le.PAGE_HOME:case le.PAGE_END:!r&&!n&&(this.onHomeOrEndKey(i),h=!0);break;case le.LEFT:case le.RIGHT:case le.UP:case le.DOWN:r&&!n&&!a&&(this.onCtrlUpDownLeftRight(i,l),h=!0);break;case le.PAGE_DOWN:!r&&!n&&(this.onPageDown(l),h=!0);break;case le.PAGE_UP:!r&&!n&&(this.onPageUp(l),h=!0)}return h&&e.preventDefault(),h},t.prototype.navigateTo=function(e){var i=e.scrollIndex,n=e.scrollType,r=e.scrollColumn,a=e.focusIndex,l=e.focusColumn;N(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),N(i)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(i,n),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(a),this.focusService.setFocusedCell({rowIndex:a,column:l,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:a,rowPinned:null,column:l})},t.prototype.onPageDown=function(e){var n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),a=this.paginationProxy.getPixelOffset(),h=this.paginationProxy.getRowIndexAtPixel(n.top+r+a);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,h):this.navigateToNextPage(e,h)},t.prototype.onPageUp=function(e){var n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRowIndexAtPixel(n.top+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)},t.prototype.navigateToNextPage=function(e,i,n){void 0===n&&(n=!1);var r,a,H,l=this.getViewportHeight(),h=this.paginationProxy.getPageFirstRow(),m=this.paginationProxy.getPageLastRow(),v=this.paginationProxy.getPixelOffset(),_=this.paginationProxy.getRow(e.rowIndex),y=n?(null===(r=_)||void 0===r?void 0:r.rowHeight)-l-v:l-v,b=(null===(a=_)||void 0===a?void 0:a.rowTop)+y,R=this.paginationProxy.getRowIndexAtPixel(b+v);R===e.rowIndex&&(i=R=e.rowIndex+(n?-1:1)),n?(H="bottom",Rm&&(R=m),i>m&&(i=m)),this.isRowTallerThanView(R)&&(i=R,H="top"),this.navigateTo({scrollIndex:i,scrollType:H,scrollColumn:null,focusIndex:R,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,i,n){var r=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column}),setTimeout(function(){var a=r.getNextFocusIndexForAutoHeight(e,n);r.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:a,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,i){void 0===i&&(i=!1);for(var r=i?-1:1,a=this.getViewportHeight(),l=this.paginationProxy.getPageLastRow(),h=0,m=e.rowIndex;m>=0&&m<=l;){var v=this.paginationProxy.getRow(m);if(v){var _=v.rowHeight??0;if(h+_>a)break;h+=_}m+=r}return Math.max(0,Math.min(m,l))},t.prototype.getViewportHeight=function(){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),r=i.bottom-i.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=n),r},t.prototype.isRowTallerThanView=function(e){var i=this.paginationProxy.getRow(e);if(!i)return!1;var n=i.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,i){var n=this.cellNavigationService.getNextCellToFocus(e,i,!0),r=n.rowIndex,a=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:a,focusIndex:r,focusColumn:a})},t.prototype.onHomeOrEndKey=function(e){var i=e===le.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),r=i?n[0]:Be(n),a=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:r,focusIndex:a,focusColumn:r})},t.prototype.onTabKeyDown=function(e,i){var n=i.shiftKey;if(this.tabToNextCellCommon(e,n,i))i.preventDefault();else if(n){var a=e.getRowPosition(),l=a.rowIndex;(a.rowPinned?0===l:l===this.paginationProxy.getPageFirstRow())&&(i.preventDefault(),this.focusService.focusLastHeader(i))}else e instanceof Cr&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&i.preventDefault()},t.prototype.tabToNextCell=function(e,i){var n=this.focusService.getFocusedCell();if(!n)return!1;var r=this.getCellByPosition(n);return!!(r||(r=this.rowRenderer.getRowByPosition(n),r&&r.isFullWidth()))&&this.tabToNextCellCommon(r,e,i)},t.prototype.tabToNextCellCommon=function(e,i,n){var r=e.isEditing();if(!r&&e instanceof Cr){var l=e.getRowCtrl();l&&(r=l.isEditing())}return(r?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,i,n):this.moveToNextEditingCell(e,i,n):this.moveToNextCellNotEditing(e,i))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,i,n){void 0===n&&(n=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var a=this.findNextCellToFocusOn(r,i,!0);return null!=a&&(a.startEditing(null,null,!0,n),a.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,i,n){void 0===n&&(n=null);var r=e.getCellPosition(),a=this.findNextCellToFocusOn(r,i,!0);if(null==a)return!1;var l=a.getCellPosition(),h=this.isCellEditable(r),m=this.isCellEditable(l),v=l&&r.rowIndex===l.rowIndex&&r.rowPinned===l.rowPinned;return h&&e.setFocusOutOnEditor(),v||(e.getRowCtrl().stopEditing(),a.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),m?(a.setFocusInOnEditor(),a.focusCell()):a.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,i){var r,n=this.columnModel.getAllDisplayedColumns();r=e instanceof io?Wl(Wl({},e.getRowPosition()),{column:i?n[0]:Be(n)}):e.getCellPosition();var a=this.findNextCellToFocusOn(r,i,!1);if(a instanceof Cr)a.focusCell(!0);else if(a)return this.tryToFocusFullWidthRow(a.getRowPosition(),i);return N(a)},t.prototype.findNextCellToFocusOn=function(e,i,n){for(var r=e;;){e!==r&&(e=r),i||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,i);var a=this.gridOptionsWrapper.getTabToNextCellFunc();if(N(a)){var h=a({backwards:i,editing:n,previousCellPosition:e,nextCellPosition:r||null});N(h)?(h.floating&&(Ve(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),h.rowPinned=h.floating),r={rowIndex:h.rowIndex,column:h.column,rowPinned:h.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var m=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:m+r.rowIndex,column:r.column}}),null}var v=this.gridOptionsWrapper.isFullRowEdit();if(!n||v||this.isCellEditable(r)){this.ensureCellVisible(r);var y=this.getCellByPosition(r);if(!y){var b=this.rowRenderer.getRowByPosition(r);if(!b||!b.isFullWidth())continue;return b}if(!y.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),y}}},t.prototype.isCellEditable=function(e){var i=this.lookupRowNodeForCell(e);return!!i&&e.column.isCellEditable(i)},t.prototype.getCellByPosition=function(e){var i=this.rowRenderer.getRowByPosition(e);return i?i.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===G.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===G.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,i,n,r){for(var a=n,l=!1;a&&(a===n||!this.isValidNavigateCell(a));)this.gridOptionsWrapper.isEnableRtl()?i===le.LEFT&&(a=this.getLastCellOfColSpan(a)):i===le.RIGHT&&(a=this.getLastCellOfColSpan(a)),l=z(a=this.cellNavigationService.getNextCellToFocus(i,a));if(l&&e&&e.key===le.UP&&(a={rowIndex:-1,rowPinned:null,column:n.column}),r){var h=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(N(h)){var v=h({key:i,previousCellPosition:n,nextCellPosition:a||null,event:e});N(v)?(v.floating&&(Ve(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),v.rowPinned=v.floating),a={rowPinned:v.rowPinned,rowIndex:v.rowIndex,column:v.column}):a=null}}if(a){if(a.rowIndex<0){var _=this.headerNavigationService.getHeaderRowCount();return void this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:_+a.rowIndex,column:n.column},event:e||void 0})}var y=this.getNormalisedPosition(a);y?this.focusPosition(y):this.tryToFocusFullWidthRow(a)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var i=this.getCellByPosition(e);return i?(e=i.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,i){void 0===i&&(i=!1);var n=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var a=this.focusService.getFocusedCell(),l={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(i?Be(n):n[0])};this.focusPosition(l);var h=null!=a&&this.rowPositionUtils.before(l,a);return this.eventService.dispatchEvent({type:S.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:l.rowIndex,rowPinned:l.rowPinned,column:l.column,isFullWidthCell:!0,floating:l.rowPinned,fromBelow:h}),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var i=this.getCellByPosition(e);if(!i)return e;var n=i.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:Be(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var i,n=this.gridOptionsWrapper.isGroupRowsSticky(),r=this.rowModel.getRow(e.rowIndex);!(n&&(null===(i=r)||void 0===i?void 0:i.sticky))&&z(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Zi([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Zi([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Zi([w("focusService")],t.prototype,"focusService",void 0),Zi([rt("rangeService")],t.prototype,"rangeService",void 0),Zi([w("columnModel")],t.prototype,"columnModel",void 0),Zi([w("rowModel")],t.prototype,"rowModel",void 0),Zi([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Zi([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Zi([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Zi([w("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Zi([w("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Zi([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Zi([ve],t.prototype,"postConstruct",null),Zi([we("navigationService")],t)}(ge),Lf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jv=function(o){function t(e){var i=o.call(this,'
    ')||this;return i.params=e,i}return Lf(t,o),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,i=this.getGui(),n=this.params;this.addManagedListener(i,"keydown",function(a){Ms(e.gridOptionsWrapper,a,n.node,n.column,!0)||n.onKeyDown(a)})},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(Io),e_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nf=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;l.rendererVersion=0,l.editorVersion=0,l.beans=e,l.column=i.getColumn(),l.rowNode=i.getRowNode(),l.rowCtrl=i.getRowCtrl(),l.eRow=r,l.setTemplate('
    ');var h=l.getGui();l.forceWrapper=i.isForceWrapper(),l.refreshWrapper(!1);var m=function(_,y,b){var R=b||h;null!=y&&""!=y?R.setAttribute(_,y):R.removeAttribute(_)},v={addOrRemoveCssClass:function(_,y){return l.addOrRemoveCssClass(_,y)},setUserStyles:function(_){return xs(h,_)},getFocusableElement:function(){return l.getFocusableElement()},setTabIndex:function(_){return m("tabindex",_.toString())},setRole:function(_){return Ti(h,_)},setColId:function(_){return m("col-id",_)},setTitle:function(_){return m("title",_)},setIncludeSelection:function(_){return l.includeSelection=_},setIncludeRowDrag:function(_){return l.includeRowDrag=_},setIncludeDndSource:function(_){return l.includeDndSource=_},setRenderDetails:function(_,y,b){return l.setRenderDetails(_,y,b)},setEditDetails:function(_,y,b){return l.setEditDetails(_,y,b)},getCellEditor:function(){return l.cellEditor||null},getCellRenderer:function(){return l.cellRenderer||null},getParentOfValue:function(){return l.getParentOfValue()}};return l.cellCtrl=i,i.setComp(v,l.getGui(),l.eCellWrapper,n,a),l}return e_(t,o),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,i,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var a=this.refreshWrapper(!1);e?!n&&!a&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(i))}},t.prototype.setEditDetails=function(e,i,n){e?this.createCellEditorInstance(e,i,n):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=i||this.forceWrapper,r=n&&null==this.eCellWrapper;r&&(this.eCellWrapper=vi(''),this.getGui().appendChild(this.eCellWrapper));var a=!n&&null!=this.eCellWrapper;a&&(Nn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var l=!e&&n,h=l&&null==this.eCellValue;h&&(this.eCellValue=vi(''),this.eCellWrapper.appendChild(this.eCellValue));var m=!l&&null!=this.eCellValue;m&&(Nn(this.eCellValue),this.eCellValue=void 0);var v=r||a||h||m;return v&&this.removeControls(),!e&&i&&this.addControls(),v},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),i=[];dd(this.eCellWrapper,!0),this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),i.push(this.checkboxSelectionComp.getCheckboxId())),i.push(e),tl(this.getGui(),i.join(" "))},t.prototype.createCellEditorInstance=function(e,i,n){var r=this,a=this.editorVersion,l=e.newAgStackInstance();if(l){var h=e.params;l.then(function(v){return r.afterCellEditorCreated(a,v,h,i,n)}),z(this.cellEditor)&&h.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var i=this.getParentOfValue();zi(i);var n=null!=e?en(e):null;null!=n&&(i.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),Nn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Nn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh||this.cellRendererClass!==e.componentClass)return!1;var i=this.cellRenderer.refresh(e.params);return!0===i||void 0===i},t.prototype.createCellRendererInstance=function(e){var i=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),l=this.rendererVersion,h=e.componentClass,m=function(){if(i.rendererVersion===l&&i.isAlive()){var _=e.newAgStackInstance(),y=i.afterCellRendererCreated.bind(i,l,h);_&&_.then(y)}};n||r||!this.firstRender?m():this.beans.animationFrameService.createTask(m,this.rowNode.rowIndex,"createTasksP2")},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,i,n){if(this.isAlive()&&e===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var a=this.getParentOfValue();zi(a),a.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},t.prototype.afterCellEditorCreated=function(e,i,n,r,a){if(e!==this.editorVersion)this.beans.context.destroyBean(i);else{if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return this.beans.context.destroyBean(i),void this.cellCtrl.stopEditing();if(!i.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(i);this.cellEditor=i,this.cellEditorGui=i.getGui(),r||void 0!==i.isPopup&&i.isPopup()?(r||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,a)):this.addInCellEditor(),i.afterGuiAttached&&i.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,i){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Jv(e));var a=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&a.appendChild(this.cellEditorGui);var l=this.beans.popupService,h=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),m=i??(r.getPopupPosition?r.getPopupPosition():"over"),v={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:a,keepWithinBounds:!0},_="under"===m?l.positionPopupUnderComponent.bind(l,v):l.positionPopupOverComponent.bind(l,v),y=this.beans.gridOptionsWrapper.getLocaleTextFunc(),b=l.addPopup({modal:h,eChild:a,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:_,ariaLabel:y("ariaLabelCellEditor","Cell Editor")});b&&(this.hideEditorPopup=b.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),o.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&ms()&&e.focus({preventScroll:!0}),zi(this.getParentOfValue())},t}(Je),t_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),i_=function(o){function t(e,i,n){var r=o.call(this)||this;r.cellComps={},r.beans=i,r.rowCtrl=e,r.setTemplate('
    ');var a=r.getGui(),l=a.style;return e.setComp({setDomOrder:function(m){return r.domOrder=m},setCellCtrls:function(m){return r.setCellCtrls(m)},showFullWidth:function(m){return r.showFullWidth(m)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(m,v){return r.addOrRemoveCssClass(m,v)},setUserStyles:function(m){return xs(a,m)},setTop:function(m){return l.top=m},setTransform:function(m){return l.transform=m},setRowIndex:function(m){return a.setAttribute("row-index",m)},setRole:function(m){return Ti(a,m)},setRowId:function(m){return a.setAttribute("row-id",m)},setRowBusinessKey:function(m){return a.setAttribute("row-business-key",m)},setTabIndex:function(m){return a.setAttribute("tabindex",m.toString())}},r.getGui(),n),r}return t_(t,o),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),i=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+i},t.prototype.showFullWidth=function(e){var i=this,r=e.newAgStackInstance();!r||r.then(function(a){if(i.isAlive()){var l=a.getGui();i.getGui().appendChild(l),i.rowCtrl.setupDetailRowAutoHeight(l),i.setFullWidthRowComp(a)}else i.beans.context.destroyBean(a)})},t.prototype.setCellCtrls=function(e){var i=this,n=Object.assign({},this.cellComps);e.forEach(function(a){var l=a.getInstanceId();null==i.cellComps[l]?i.newCellComp(a):n[l]=null});var r=Nt(n).filter(function(a){return null!=a});this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var i=this;if(this.domOrder){var n=[];e.forEach(function(r){var a=i.cellComps[r.getInstanceId()];a&&n.push(a.getGui())}),qa(this.getGui(),n)}},t.prototype.newCellComp=function(e){var i=new Nf(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=Nt(this.cellComps).filter(function(i){return null!=i});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var i=this;e.forEach(function(n){if(n){var r=n.getCtrl().getInstanceId();i.cellComps[r]===n&&(n.detach(),n.destroy(),i.cellComps[r]=null)}})},t}(Je),n_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),cu=function(){return cu=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},r_=function(o){function t(){var e=o.call(this,function Gf(){var o=Je.elementGettingCreated.getAttribute("name"),t=sa.getRowContainerCssClasses(o);return o===ie.CENTER?'':o===ie.TOP_CENTER||o===ie.STICKY_TOP_CENTER||o===ie.BOTTOM_CENTER?'':'
    '}())||this;return e.rowComps={},e.name=Je.elementGettingCreated.getAttribute("name"),e.type=function Of(o){switch(o){case ie.CENTER:case ie.TOP_CENTER:case ie.STICKY_TOP_CENTER:case ie.BOTTOM_CENTER:return Vi.CENTER;case ie.LEFT:case ie.TOP_LEFT:case ie.STICKY_TOP_LEFT:case ie.BOTTOM_LEFT:return Vi.LEFT;case ie.RIGHT:case ie.TOP_RIGHT:case ie.STICKY_TOP_RIGHT:case ie.BOTTOM_RIGHT:return Vi.RIGHT;case ie.FULL_WIDTH:case ie.TOP_FULL_WIDTH:case ie.STICKY_TOP_FULL_WIDTH:case ie.BOTTOM_FULL_WIDTH:return Vi.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return n_(t,o),t.prototype.postConstruct=function(){var e=this,i={setViewportHeight:function(r){return e.eViewport.style.height=r},setRowCtrls:function(r){return e.setRowCtrls(r)},setDomOrder:function(r){e.domOrder=r},setContainerWidth:function(r){return e.eContainer.style.width=r}};this.createManagedBean(new sa(this.name)).setComp(i,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var i=this,n=cu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach(function(a){var l=a.getInstanceId(),h=n[l];if(h)i.rowComps[l]=h,delete n[l],i.ensureDomOrder(h.getGui());else{var m=i.newRowComp(a);i.rowComps[l]=m,i.appendRow(m.getGui())}}),Nt(n).forEach(function(a){i.eContainer.removeChild(a.getGui()),a.destroy()}),Ti(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?Eo(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(Za(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},t.prototype.newRowComp=function(e){return sa.getPinned(this.name),new i_(e,this.beans,this.type)},Wo([w("beans")],t.prototype,"beans",void 0),Wo([ce("eViewport")],t.prototype,"eViewport",void 0),Wo([ce("eContainer")],t.prototype,"eContainer",void 0),Wo([ce("eWrapper")],t.prototype,"eWrapper",void 0),Wo([ve],t.prototype,"postConstruct",null),Wo([Ct],t.prototype,"preDestroy",null),t}(Je),kf=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},o_=function(){function o(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return o.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var i=t.dragItem.columns;!i||i.forEach(function(n){!n.isPrimary()||n.isAnyFunctionActive()||(n.isAllowValue()?e.columnsToAggregate.push(n):n.isAllowRowGroup()?e.columnsToGroup.push(n):n.isAllowPivot()&&e.columnsToPivot.push(n))})}},o.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?oi.ICON_PINNED:oi.ICON_MOVE:null},o.prototype.onDragLeave=function(t){this.clearColumnsList()},o.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},o.prototype.onDragging=function(t){},o.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},kf([w("columnModel")],o.prototype,"columnModel",void 0),kf([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),o}(),aa=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Hf=function(){function o(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=e,this.centerContainer=!N(t)}return o.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},o.prototype.getIconName=function(){return this.pinned?oi.ICON_PINNED:oi.ICON_MOVE},o.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===Si.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var n=t.dragItem.visibleState,r=(e||[]).filter(function(a){return n[a.getId()]});this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},o.prototype.onDragLeave=function(t){this.ensureIntervalCleared()},o.prototype.setColumnsVisible=function(t,e,i){if(void 0===i&&(i="api"),t){var n=t.filter(function(r){return!r.getColDef().lockVisible});this.columnModel.setColumnsVisible(n,e,i)}},o.prototype.setColumnsPinned=function(t,e,i){if(void 0===i&&(i="api"),t){var n=t.filter(function(r){return!r.getColDef().lockPinned});this.columnModel.setColumnsPinned(n,e,i)}},o.prototype.onDragStop=function(){this.ensureIntervalCleared()},o.prototype.normaliseX=function(t){return this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},o.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),i=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=ti-50):(this.needToMoveLeft=ti-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},o.prototype.onDragging=function(t,e,i){var n=this;if(void 0===e&&(e=!1),void 0===i&&(i=!1),this.lastDraggingEvent=t,!z(t.hDirection)){var r=this.normaliseX(t.x);e||this.checkCenterForScrolling(r);var a=this.normaliseDirection(t.hDirection),l=t.dragSource.type,h=t.dragSource.getDragItem().columns;h=h.filter(function(m){return!m.getColDef().lockPinned||m.getPinned()==n.pinned}),this.attemptMoveColumns(l,h,a,r,e,i)}},o.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case _n.Left:return _n.Right;case _n.Right:return _n.Left;default:console.error("AG Grid: Unknown direction "+t)}},o.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),i=ue(t.map(function(h){return e.indexOf(h)})),n=i[0];return Be(i)-n!=i.length-1?null:n},o.prototype.attemptMoveColumns=function(t,e,i,n,r,a){var l=i===_n.Left,h=i===_n.Right;if(t===Si.HeaderCell){var m=[];e.forEach(function(Le){for(var qe=null,st=Le.getParent();null!=st&&1===st.getDisplayedLeafColumns().length;)qe=st,st=st.getParent();null!=qe?qe.getLeafColumns().forEach(function(It){m.includes(It)||m.push(It)}):m.includes(Le)||m.push(Le)}),e=m}var v=e.slice();this.columnModel.sortColumnsLikeGridColumns(v);var _=this.calculateValidMoves(v,h,n),y=this.calculateOldIndex(v);if(0!==_.length){var b=_[0],R=null!==y&&!r;if(t==Si.HeaderCell&&(R=null!==y),!R||a||!(l&&b>=y||h&&b<=y)){for(var I=this.columnModel.getAllDisplayedColumns(),H=[],te=null,X=0;X<_.length;X++){var fe=_[X],me=this.columnModel.getProposedColumnOrder(v,fe);if(this.columnModel.doesOrderPassRules(me)){var Se=me.filter(function(Le){return I.includes(Le)});if(null===te)te=Se;else if(!Fe.areEqual(Se,te))break;var $e=this.groupFragCount(me);H.push({move:fe,fragCount:$e})}}0!==H.length&&(H.sort(function(Le,qe){return Le.fragCount-qe.fragCount}),this.columnModel.moveColumns(v,H[0].move,"uiColumnDragged"))}}},o.prototype.groupFragCount=function(t){function e(a){for(var l=[],h=a.getOriginalParent();null!=h;)l.push(h),h=h.getOriginalParent();return l}for(var i=0,n=function(a){var l,h=e(t[a]),m=e(t[a+1]);l=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}(h.length>m.length?[h,m]:[m,h],2),m=l[1],(h=l[0]).forEach(function(v){-1===m.indexOf(v)&&i++})},r=0;r0){for(var b=0;b0?I=m.indexOf(h[v-1])+1:-1===(I=m.indexOf(h[0]))&&(I=0);var te=[I],X=function(Xe,Le){return Xe-Le};if(e){for(var fe=I+1,me=a.length-1;fe<=me;)te.push(fe),fe++;te.sort(X)}else{me=a.length-1;for(var Se=a[fe=I];fe<=me&&this.isColumnHidden(r,Se);)fe++,te.push(fe),Se=a[fe];for(fe=I-1;fe>=0;)te.push(fe),fe--;te.sort(X).reverse()}return te},o.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},o.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?oi.ICON_LEFT:oi.ICON_RIGHT,!0))},o.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(oi.ICON_MOVE))},o.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,i=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=i.scrollHorizontally(-t):this.needToMoveRight&&(e=i.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter(function(l){return!l.getColDef().lockPinned});r.length>0&&(this.dragAndDropService.setGhostIcon(oi.ICON_PINNED),this.failedMoveAttempts>7)&&(this.setColumnsPinned(r,this.needToMoveLeft?G.PINNED_LEFT:G.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge())}},aa([w("columnModel")],o.prototype,"columnModel",void 0),aa([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),aa([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),aa([w("ctrlsService")],o.prototype,"ctrlsService",void 0),aa([ve],o.prototype,"init",null),o}(),a_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),la=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},l_=function(o){function t(e,i){var n=o.call(this)||this;return n.pinned=e,n.eContainer=i,n}return a_(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){switch(e.pinned){case G.PINNED_LEFT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case G.PINNED_RIGHT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]]}})},t.prototype.isInterestedIn=function(e){return e===Si.HeaderCell||e===Si.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Hf(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new o_(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Si.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},la([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),la([w("columnModel")],t.prototype,"columnModel",void 0),la([w("ctrlsService")],t.prototype,"ctrlsService",void 0),la([ve],t.prototype,"postConstruct",null),la([ve],t.prototype,"init",null),t}(ge),du=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},uu=function(){function o(){}return o.getHeaderClassesFromColDef=function(t,e,i,n){return z(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,i,n)},o.getToolPanelClassesFromColDef=function(t,e,i,n){return z(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,i,n)},o.getClassParams=function(t,e,i,n){return{colDef:t,column:i,columnGroup:n,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()}},o.getColumnClassesFromCollDef=function(t,e,i,n,r){return z(t)?[]:"string"==typeof(a="function"==typeof t?t(this.getClassParams(e,i,n,r)):t)?[a]:Array.isArray(a)?function(){for(var o=[],t=0;t=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},u_=function(o){function t(e){var i=o.call(this,t.TEMPLATE,e)||this;return i.headerCompVersion=0,i.column=e.getColumnGroupChild(),i.pinned=e.getPinned(),i}return d_(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui(),n=function(l,h,m){var v=m||i;null!=h&&""!=h?v.setAttribute(l,h):v.removeAttribute(l)};this.ctrl.setComp({setWidth:function(l){return i.style.width=l},addOrRemoveCssClass:function(l,h){return e.addOrRemoveCssClass(l,h)},setColId:function(l){return n("col-id",l)},setTitle:function(l){return n("title",l)},setAriaDescription:function(l){return el(i,l)},setAriaSort:function(l){return l?Qp(i,l):hd(i)},setUserCompDetails:function(l){return e.setUserCompDetails(l)},getUserCompInstance:function(){return e.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var a=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",a)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var i=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then(function(r){return i.afterCompCreated(n,r)})},t.prototype.afterCompCreated=function(e,i){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(i)},t.TEMPLATE='
    \n \n \n
    ',Ul([ce("eResize")],t.prototype,"eResize",void 0),Ul([ce("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),Ul([ve],t.prototype,"postConstruct",null),Ul([Ct],t.prototype,"destroyHeaderComp",null),t}(Yd),p_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),pu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},h_=function(o){function t(e){return o.call(this,t.TEMPLATE,e)||this}return p_(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui(),n=function(a,l){return null!=l?i.setAttribute(a,l):i.removeAttribute(a)};this.ctrl.setComp({addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},addOrRemoveResizableCssClass:function(a,l){return e.eResize.classList.toggle(a,l)},setWidth:function(a){return i.style.width=a},setColId:function(a){return i.setAttribute("col-id",a)},setAriaExpanded:function(a){return n("aria-expanded",a)},setTitle:function(a){return n("title",a)},setUserCompDetails:function(a){return e.setUserCompDetails(a)}},i,this.eResize)},t.prototype.setUserCompDetails=function(e){var i=this;e.newAgStackInstance().then(function(n){return i.afterHeaderCompCreated(n)})},t.prototype.afterHeaderCompCreated=function(e){var i=this,n=function(){return i.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='
    \n \n
    ',pu([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),pu([ce("eResize")],t.prototype,"eResize",void 0),pu([ve],t.prototype,"postConstruct",null),t}(Yd),f_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),hu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},di=(()=>(function(o){o.COLUMN_GROUP="group",o.COLUMN="column",o.FLOATING_FILTER="filter"}(di||(di={})),di))(),m_=function(o){function t(e){var i=o.call(this)||this;i.headerComps={};var n=e.getType()==di.COLUMN_GROUP?"ag-header-row-column-group":e.getType()==di.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.setTemplate('
    '),i.ctrl=e,i}return f_(t,o),t.prototype.init=function(){var e=this;this.ctrl.setComp({setTransform:function(n){return e.getGui().style.transform=n},setHeight:function(n){return e.getGui().style.height=n},setTop:function(n){return e.getGui().style.top=n},setHeaderCtrls:function(n){return e.setHeaderCtrls(n)},setWidth:function(n){return e.getGui().style.width=n},setAriaRowIndex:function(n){return Rs(e.getGui(),n)}})},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var i=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach(function(h){var m=h.getInstanceId(),v=n[m];delete n[m],null==v&&(v=i.createHeaderComp(h),i.getGui().appendChild(v.getGui())),i.headerComps[m]=v}),Ge(n,function(h,m){i.getGui().removeChild(m.getGui()),i.destroyBean(m)}),this.gridOptionsWrapper.isEnsureDomOrder()){var a=Nt(this.headerComps);a.sort(function(h,m){return h.getCtrl().getColumnGroupChild().getLeft()-m.getCtrl().getColumnGroupChild().getLeft()});var l=a.map(function(h){return h.getGui()});qa(this.getGui(),l)}}},t.prototype.createHeaderComp=function(e){var i;switch(this.ctrl.getType()){case di.COLUMN_GROUP:i=new h_(e);break;case di.FLOATING_FILTER:i=new Hh(e);break;default:i=new u_(e)}return this.createBean(i),i.setParentComponent(this),i},hu([ve],t.prototype,"init",null),hu([Ct],t.prototype,"destroyHeaderCtrls",null),t}(Je),g_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},jl=0,zl=function(o){function t(e,i){var n=o.call(this)||this;return n.lastFocusEvent=null,n.columnGroupChild=e,n.parentRowCtrl=i,n.instanceId=e.getUniqueId()+"-"+jl++,n}return g_(t,o),t.prototype.shouldStopEventPropagation=function(e){var i=this.focusService.getFocusedHeader();return sl(this.gridOptionsWrapper,e,i.headerRowIndex,i.column)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var i=this.getWrapperHasFocus();switch(e.key){case le.PAGE_DOWN:case le.PAGE_UP:case le.PAGE_HOME:case le.PAGE_END:i&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,i=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,i,this),this.addDestroyFunc(function(){return e.gridOptionsWrapper.setDomData(e.eGui,i,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",fu([w("focusService")],t.prototype,"focusService",void 0),fu([w("beans")],t.prototype,"beans",void 0),fu([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(ge),_t=(()=>(function(o){o.EVERYTHING="group",o.FILTER="filter",o.SORT="sort",o.MAP="map",o.AGGREGATE="aggregate",o.FILTER_AGGREGATES="filter_aggregates",o.PIVOT="pivot",o.NOTHING="nothing"}(_t||(_t={})),_t))(),ft=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r};function no(o){return null!=o&&null!=o.getFrameworkComponentInstance?o.getFrameworkComponentInstance():o}var v_=function(){function o(){this.detailGridInfoMap={},this.destroyCalled=!1}return o.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},o.prototype.registerSideBarComp=function(t){this.sideBarComp=t},o.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case G.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case G.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case G.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},o.prototype.__getAlignedGridService=function(){return this.alignedGridsService},o.prototype.__getContext=function(){return this.context},o.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},o.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},o.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},o.prototype.forEachDetailGridInfo=function(t){var e=0;Ge(this.detailGridInfoMap,function(i,n){N(n)&&(t(n,e),e++)})},o.prototype.getDataAsCsv=function(t){if($.assertRegistered(Ie.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},o.prototype.exportDataAsCsv=function(t){$.assertRegistered(Ie.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},o.prototype.getExcelExportMode=function(t){var e=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},e,t).exportMode},o.prototype.getDataAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.getDataAsExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(e)===Ho.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(t)}},o.prototype.exportDataAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.exportDataAsExcel")){var e=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(e)===Ho.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(t)}},o.prototype.getSheetDataForExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.getSheetDataForExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Ho.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},o.prototype.getMultipleSheetsAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},o.prototype.exportMultipleSheetsAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},o.prototype.setEnterpriseDatasource=function(t){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},o.prototype.setGridAriaProperty=function(t,e){if(t){var i=this.ctrlsService.getGridBodyCtrl().getGui(),n="aria-"+t;null===e?i.removeAttribute(n):i.setAttribute(n,e)}},o.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+G.ROW_MODEL_TYPE_SERVER_SIDE+"'")},o.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+G.ROW_MODEL_TYPE_SERVER_SIDE+"'")},o.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+G.ROW_MODEL_TYPE_INFINITE+"'")},o.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+G.ROW_MODEL_TYPE_VIEWPORT+"'")},o.prototype.setRowData=function(t){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},o.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},o.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},o.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},o.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},o.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},o.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},o.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},o.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},o.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},o.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},o.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},o.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},o.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e)},o.prototype.setAutoGroupColumnDef=function(t,e){this.gridOptionsWrapper.setProperty(be.PROP_AUTO_GROUP_COLUMN_DEF,t,!0)},o.prototype.setDefaultColDef=function(t,e){this.gridOptionsWrapper.setProperty(be.PROP_DEFAULT_COL_DEF,t,!0)},o.prototype.expireValueCache=function(){this.valueCache.expire()},o.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},o.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},o.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},o.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},o.prototype.refreshToolPanel=function(){!this.sideBarComp||this.sideBarComp.refresh()},o.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(t)},o.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},o.prototype.redrawRows=function(t){void 0===t&&(t={}),this.rowRenderer.redrawRows(t?t.rowNodes:void 0)},o.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},o.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(t){return t.refresh()})},o.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},o.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},o.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},o.prototype.getModel=function(){return this.rowModel},o.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},o.prototype.onGroupExpandedOrCollapsed=function(t){z(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),N(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:_t.MAP})},o.prototype.refreshInMemoryRowModel=function(t){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},o.prototype.refreshClientSideRowModel=function(t){z(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=_t.EVERYTHING,i={everything:_t.EVERYTHING,group:_t.EVERYTHING,filter:_t.FILTER,map:_t.MAP,aggregate:_t.AGGREGATE,sort:_t.SORT,pivot:_t.PIVOT};if(N(t)&&(e=i[t]),z(e))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(i).join(", "));else{var n=!this.gridOptionsWrapper.isSuppressAnimationFrame();this.clientSideRowModel.refreshModel({step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:n})}},o.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},o.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},o.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},o.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},o.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},o.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},o.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return no(this.sideBarComp.getToolPanelInstance(t));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.addVirtualRowListener=function(t,e,i){"string"!=typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,i)},o.prototype.addRenderedRowListener=function(t,e,i){"virtualRowSelected"===t&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,e,i)},o.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},o.prototype.selectIndex=function(t,e,i){console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,e)},o.prototype.deselectIndex=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},o.prototype.selectNode=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!e})},o.prototype.deselectNode=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},o.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},o.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},o.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},o.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},o.prototype.recomputeAggregates=function(){z(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:_t.AGGREGATE})},o.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},o.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},o.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},o.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},o.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},o.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},o.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},o.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},o.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},o.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},o.prototype.ensureColIndexVisible=function(t){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},o.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},o.prototype.ensureIndexVisible=function(t,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},o.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},o.prototype.forEachLeafNode=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},o.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},o.prototype.forEachNodeAfterFilter=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},o.prototype.forEachNodeAfterFilterAndSort=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},o.prototype.getFilterInstance=function(t,e){var i=this.getFilterInstanceImpl(t,function(r){if(e){var a=no(r);e(a)}});return no(i)},o.prototype.getFilterInstanceImpl=function(t,e){var i=this.columnModel.getPrimaryColumn(t);if(i){var n=this.filterManager.getFilterComponent(i,"NO_UI"),r=n&&n.resolveNow(null,function(a){return a});return r?setTimeout(e,0,r):n&&n.then(function(a){e(a)}),r}},o.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},o.prototype.getStatusPanel=function(t){if(this.statusBarService)return no(this.statusBarService.getStatusPanel(t))},o.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},o.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},o.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},o.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},o.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},o.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},o.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},o.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},o.prototype.setFocusedCell=function(t,e,i){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:i,forceBrowserFocus:!0})},o.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_ROW_DRAG,t)},o.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},o.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},o.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},o.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},o.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},o.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_HEADER_HEIGHT,t)},o.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(be.PROP_DOM_LAYOUT,t)},o.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},o.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(be.PROP_FILL_HANDLE_DIRECTION,t)},o.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_HEADER_HEIGHT,t)},o.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_FLOATING_FILTERS_HEIGHT,t)},o.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PIVOT_HEADER_HEIGHT,t)},o.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},o.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},o.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(be.PROP_DOES_EXTERNAL_FILTER_PASS,t)},o.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(be.PROP_NAVIGATE_TO_NEXT_CELL,t)},o.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(be.PROP_TAB_TO_NEXT_CELL,t)},o.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(be.PROP_TAB_TO_NEXT_HEADER,t)},o.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(be.PROP_NAVIGATE_TO_NEXT_HEADER,t)},o.prototype.setRowGroupPanelShow=function(t){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",t)},o.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_ROW_AGG_NODES,t)},o.prototype.setGetGroupRowAgg=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_GROUP_ROW_AGG,t)},o.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},o.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_CHILD_COUNT,t)},o.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_ROW_POST_CREATE,t)},o.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_NODE_ID,t)},o.prototype.setGetRowId=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_ID,t)},o.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_CLASS,t)},o.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_FULL_WIDTH_CELL,t)},o.prototype.setIsFullWidthRow=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_FULL_WIDTH_ROW,t)},o.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_ROW_SELECTABLE,t)},o.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_ROW_MASTER,t)},o.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POST_SORT,t)},o.prototype.setPostSortRows=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POST_SORT_ROWS,t)},o.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_DOCUMENT,t)},o.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_CONTEXT_MENU_ITEMS,t)},o.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_MAIN_MENU_ITEMS,t)},o.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},o.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SEND_TO_CLIPBOARD,t)},o.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},o.prototype.setProcessSecondaryColDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(t)},o.prototype.setProcessSecondaryColGroupDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(t)},o.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_PIVOT_RESULT_COL_DEF,t)},o.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,t)},o.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POST_PROCESS_POPUP,t)},o.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(be.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},o.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(be.PROP_INITIAL_GROUP_ORDER_COMPARATOR,t)},o.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_CHART_TOOLBAR_ITEMS,t)},o.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PAGINATION_NUMBER_FORMATTER,t)},o.prototype.setGetServerSideStoreParams=function(t){this.setGetServerSideGroupLevelParams(t)},o.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_SERVER_SIDE_GROUP_PARAMS,t)},o.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},o.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},o.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_SERVER_SIDE_GROUP,t)},o.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},o.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_STYLE,t)},o.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_HEIGHT,t)},o.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},o.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},o.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},o.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},o.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},o.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",Ac.parse(t))},o.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},o.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},o.prototype.doLayout=function(){Ve(function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")},"doLayoutDeprecated")},o.prototype.resetRowHeights=function(){if(N(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},o.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},o.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},o.prototype.setGroupDisplayType=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_DISPLAY_TYPE,t)},o.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},o.prototype.getValue=function(t,e){var i=this.columnModel.getPrimaryColumn(t);return z(i)&&(i=this.columnModel.getGridColumn(t)),z(i)?null:this.valueService.getValue(i,e)},o.prototype.addEventListener=function(t,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,i)},o.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},o.prototype.removeEventListener=function(t,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,i)},o.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},o.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},o.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},o.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Xi.bind(window,this,"Grid API"),100)},o.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},o.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode(function(t){return t.quickFilterAggregateText=null})},o.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},o.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},o.prototype.camelCaseToHumanReadable=function(t){return ds(t)},o.prototype.addRangeSelection=function(t){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},o.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},o.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},o.prototype.undoCellEditing=function(){this.undoRedoService.undo()},o.prototype.redoCellEditing=function(){this.undoRedoService.redo()},o.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},o.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},o.prototype.getChartModels=function(){if($.assertRegistered(Ie.RangeSelectionModule,"api.getChartModels")&&$.assertRegistered(Ie.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},o.prototype.getChartRef=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.getChartRef")&&$.assertRegistered(Ie.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},o.prototype.getChartImageDataURL=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},o.prototype.downloadChart=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},o.prototype.openChartToolPanel=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},o.prototype.closeChartToolPanel=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},o.prototype.createRangeChart=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.createRangeChart")&&$.assertRegistered(Ie.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},o.prototype.createCrossFilterChart=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.createCrossFilterChart")&&$.assertRegistered(Ie.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},o.prototype.restoreChart=function(t,e){if($.assertRegistered(Ie.RangeSelectionModule,"api.restoreChart")&&$.assertRegistered(Ie.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},o.prototype.createPivotChart=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.createPivotChart")&&$.assertRegistered(Ie.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},o.prototype.copyToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(t)},o.prototype.copySelectedRowsToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t)},o.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},o.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},o.prototype.showColumnMenuAfterButtonClick=function(t,e){var i=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(i,e,"columnMenu")},o.prototype.showColumnMenuAfterMouseClick=function(t,e){var i=this.columnModel.getGridColumn(t);i||(i=this.columnModel.getPrimaryColumn(t)),i?this.menuFactory.showMenuAfterMouseEvent(i,e):console.error("AG Grid: column '"+t+"' not found")},o.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},o.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POPUP_PARENT,t)},o.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},o.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},o.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(no)},o.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(no)},o.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},o.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},o.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var i={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var r=this.navigationService.getCellByPosition(i);!r||r.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},o.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},o.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},o.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},o.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},o.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},o.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},o.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},o.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},o.prototype.setDeltaSort=function(t){this.gridOptionsWrapper.setProperty("deltaSort",t)},o.prototype.updateRowData=function(t){return Ve(function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")},"updateRowData deprecated"),this.applyTransaction(t)},o.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},o.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},o.prototype.batchUpdateRowData=function(t,e){Ve(function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")},"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,e)},o.prototype.insertItemsAtIndex=function(t,e,i){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},o.prototype.removeItems=function(t,e){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var i=t.map(function(n){return n.data});this.updateRowData({add:null,addIndex:null,update:null,remove:i})},o.prototype.addItems=function(t,e){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},o.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},o.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},o.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},o.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},o.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},o.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},o.prototype.purgeEnterpriseCache=function(t){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(t)},o.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},o.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},o.prototype.refreshServerSideStore=function(t){return Ve(function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")},"refreshServerSideStore-renamed"),this.refreshServerSide(t)},o.prototype.getServerSideStoreState=function(){return Ve(function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")},"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},o.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},o.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},o.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},o.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},o.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},o.prototype.setVirtualRowCount=function(t,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,e)},o.prototype.setInfiniteRowCount=function(t,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,e)},o.prototype.setRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},o.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},o.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},o.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},o.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},o.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},o.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},o.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},o.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},o.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},o.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},o.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},o.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},o.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},o.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},o.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},o.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},o.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},o.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},o.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},o.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},o.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},o.prototype.setRowClass=function(t){this.gridOptionsWrapper.setProperty(be.PROP_ROW_CLASS,t)},ft([rt("immutableService")],o.prototype,"immutableService",void 0),ft([rt("csvCreator")],o.prototype,"csvCreator",void 0),ft([rt("excelCreator")],o.prototype,"excelCreator",void 0),ft([w("rowRenderer")],o.prototype,"rowRenderer",void 0),ft([w("navigationService")],o.prototype,"navigationService",void 0),ft([w("filterManager")],o.prototype,"filterManager",void 0),ft([w("columnModel")],o.prototype,"columnModel",void 0),ft([w("selectionService")],o.prototype,"selectionService",void 0),ft([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),ft([w("valueService")],o.prototype,"valueService",void 0),ft([w("alignedGridsService")],o.prototype,"alignedGridsService",void 0),ft([w("eventService")],o.prototype,"eventService",void 0),ft([w("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),ft([w("context")],o.prototype,"context",void 0),ft([w("rowModel")],o.prototype,"rowModel",void 0),ft([w("sortController")],o.prototype,"sortController",void 0),ft([w("paginationProxy")],o.prototype,"paginationProxy",void 0),ft([w("focusService")],o.prototype,"focusService",void 0),ft([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),ft([rt("rangeService")],o.prototype,"rangeService",void 0),ft([rt("clipboardService")],o.prototype,"clipboardService",void 0),ft([rt("aggFuncService")],o.prototype,"aggFuncService",void 0),ft([w("menuFactory")],o.prototype,"menuFactory",void 0),ft([rt("contextMenuFactory")],o.prototype,"contextMenuFactory",void 0),ft([w("valueCache")],o.prototype,"valueCache",void 0),ft([w("animationFrameService")],o.prototype,"animationFrameService",void 0),ft([rt("statusBarService")],o.prototype,"statusBarService",void 0),ft([rt("chartService")],o.prototype,"chartService",void 0),ft([rt("undoRedoService")],o.prototype,"undoRedoService",void 0),ft([rt("rowNodeBlockLoader")],o.prototype,"rowNodeBlockLoader",void 0),ft([rt("ssrmTransactionManager")],o.prototype,"serverSideTransactionManager",void 0),ft([w("ctrlsService")],o.prototype,"ctrlsService",void 0),ft([rt("frameworkComponentWrapper")],o.prototype,"frameworkComponentWrapper",void 0),ft([ve],o.prototype,"init",null),ft([Ct],o.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),ft([we("gridApi")],o)}(),__=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),mu=function(o){function t(e,i,n,r){var a=o.call(this)||this;return a.columnOrGroup=e,a.eCell=i,a.ariaEl=a.eCell.querySelector("[role=columnheader]")||a.eCell,a.colsSpanning=r,a.beans=n,a}return __(t,o),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Be(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Y.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,be.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),i=N(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&i&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,i=this.getColumnOrGroup(),n=i.getLeft(),r=i.getOldLeft(),a=this.modifyLeftForPrintLayout(i,r),l=this.modifyLeftForPrintLayout(i,n);this.setLeft(a),this.actualLeft=l,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===l&&e.setLeft(l)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),i=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,i),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,i){if(this.beans.gridOptionsWrapper.getDomLayout()!==G.DOM_LAYOUT_PRINT||e.getPinned()===G.PINNED_LEFT)return i;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===G.PINNED_RIGHT?r+this.beans.columnModel.getBodyContainerWidth()+i:r+i},t.prototype.setLeft=function(e){var i;if(N(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof Y)i=this.columnOrGroup;else{var r=this.columnOrGroup.getLeafColumns();if(!r.length)return;r.length>1&&rl(this.ariaEl,r.length),i=r[0]}var a=this.beans.columnModel.getAriaColumnIndex(i);nl(this.ariaEl,a)},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(ge),C_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Yl=function(o){function t(e,i){var n=o.call(this)||this;return n.columns=e,n.element=i,n}return C_(t,o),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},gu([w("columnHoverService")],t.prototype,"columnHoverService",void 0),gu([ve],t.prototype,"postConstruct",null),t}(ge),Vf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Bf=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.column=e,n}return Vf(t,o),t.prototype.setComp=function(e,i,n,r){o.prototype.setGui.call(this,i),this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r;var a=this.column.getColDef();this.active=!(!a.filter&&!a.filterFramework||!a.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Jt("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new Zt(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(this.gridOptionsWrapper.getDocument().activeElement!==this.eGui){var a=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(a)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void a.focus();var l=this.findNextColumnWithFloatingFilter(e.shiftKey);!l||this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:l},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var i=this.beans.columnModel,n=this.column;do{if(!(n=e?i.getDisplayedColBefore(n):i.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();switch(e.key){case le.UP:case le.DOWN:i||e.preventDefault();case le.LEFT:case le.RIGHT:if(i)return;e.stopPropagation();case le.ENTER:i&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case le.ESCAPE:i||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&Kn(e.relatedTarget,"ag-floating-filter");if(n&&r&&e.target===this.eGui){var a=this.lastFocusEvent;a&&a&&a.key===le.TAB&&this.focusService.focusInto(this.eGui,a.shiftKey)}var m=this.getRowIndex();this.beans.focusService.setFocusedHeader(m,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Yl([this.column],this.eGui));var i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var n=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",n)}};this.addManagedListener(this.eventService,S.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.setupLeft=function(){var e=new mu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var i=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,i),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Xs,n),a=this.userComponentFactory.getDefaultFloatingFilterType(i);null==a&&(a="agReadOnlyFloatingFilter");var l={column:this.column,filterParams:r,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(m){return e.parentFilterInstance(m)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var h=this.userComponentFactory.getFloatingFilterCompDetails(i,l,a);h&&this.comp.setCompDetails(h)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,function(i){return i&&i.getModel()}):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){this.getFilterComponent()?.then(function(n){e(no(n))})},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var i=function(n){var r=e.comp.getFloatingFilterComp();if(r){var a=e.currentParentModel();r.then(function(l){l&&l.onParentModelChanged(a,n)})}};this.addManagedListener(this.column,Y.EVENT_FILTER_CHANGED,i),this.filterManager.isFilterActive(this.column)&&i(null)}},t.prototype.setupWidth=function(){var e=this,i=function(){var n=e.column.getActualWidth()+"px";e.comp.setWidth(n)};this.addManagedListener(this.column,Y.EVENT_WIDTH_CHANGED,i),i()},Kl([w("filterManager")],t.prototype,"filterManager",void 0),Kl([w("columnHoverService")],t.prototype,"columnHoverService",void 0),Kl([w("menuFactory")],t.prototype,"menuFactory",void 0),t}(zl),w_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$l=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Wf=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.pinned=e,l.column=i,l.eResize=n,l.comp=r,l.ctrl=a,l}return w_(t,o),t.prototype.postConstruct=function(){var r,a,e=this,i=this.column.getColDef(),n=[],h=function(){n.forEach(function(v){return v()}),n.length=0},m=function(){var v=e.column.isResizable(),_=!e.gridOptionsWrapper.isSuppressAutoSize()&&!i.suppressAutoSize;(v!==r||_!==a)&&(r=v,a=_,h(),function(){if(Lt(e.eResize,r),r){var v=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(n.push(v),a){var _=e.gridOptionsWrapper.isSkipHeaderOnAutoSize(),y=function(){e.columnModel.autoSizeColumn(e.column,_,"uiColumnResized")};e.eResize.addEventListener("dblclick",y);var b=new ki(e.eResize);b.addEventListener(ki.EVENT_DOUBLE_TAP,y),e.addDestroyFunc(function(){e.eResize.removeEventListener("dblclick",y),b.removeEventListener(ki.EVENT_DOUBLE_TAP,y),b.destroy()})}}}())};m(),this.addDestroyFunc(h),this.ctrl.addRefreshFunction(m)},t.prototype.onResizing=function(e,i){var n=this.normaliseResizeAmount(i);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+n}],this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var i=e,n=this.pinned!==G.PINNED_LEFT,r=this.pinned===G.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(i*=-1):r&&(i*=-1),i},$l([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),$l([w("columnModel")],t.prototype,"columnModel",void 0),$l([ve],t.prototype,"postConstruct",null),t}(ge),Uf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Uo=function(o){function t(e,i,n){void 0===i&&(i="ag-checkbox"),void 0===n&&(n="checkbox");var r=o.call(this,e,i,n)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Uf(t,o),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),o.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,e):this.setValue(i)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,i){return this.refreshSelectedClass(e),this.setSelected(e,i),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,i){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,i||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,i,n){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:i,event:n});var r=this.getInputElement();this.eventService.dispatchEvent({type:S.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:i})},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var i=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,i,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Sn),jf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ca=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},zf=function(o){function t(e){var i=o.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.column=e;var n=e.getColDef();return i.filteredOnly=!!n&&!!n.headerCheckboxSelectionFilteredOnly,i}return jf(t,o),t.prototype.onSpaceKeyPressed=function(e){var i=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();i.isDisplayed()&&!i.getGui().contains(n.activeElement)&&(e.preventDefault(),i.setValue(!i.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Uo),this.cbSelectAll.addCssClass("ag-header-select-all"),Ti(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,S.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Uo.EVENT_CHANGED,this.onCbSelectAll.bind(this)),dd(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){!this.cbSelectAllVisible||this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){!this.cbSelectAllVisible||this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),i=this.getNextCheckboxState(e);this.cbSelectAll.setValue(i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),n=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",r+" ("+n+")"),this.cbSelectAll.setInputAriaLabel(r+" ("+n+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,i=0,n=0,r=function(a){e.gridOptionsWrapper.isGroupSelectsChildren()&&a.group||(a.isSelected()?i++:a.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:n,selected:i}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===G.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){!this.processingEventFromCheckbox&&this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),1)))},ca([w("gridApi")],t.prototype,"gridApi",void 0),ca([w("columnApi")],t.prototype,"columnApi",void 0),ca([w("rowModel")],t.prototype,"rowModel",void 0),ca([w("selectionService")],t.prototype,"selectionService",void 0),t}(ge),Yf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Kf=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.refreshFunctions=[],n.userHeaderClasses=new Set,n.ariaDescriptionProperties=new Map,n.column=e,n}return Yf(t,o),t.prototype.setComp=function(e,i,n,r){var a=this;o.prototype.setGui.call(this,i),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Wf(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new Yl([this.column],i)),this.createManagedBean(new mu(this.column,i,this.beans)),this.createManagedBean(new Zt(i,{shouldStopEventPropagation:function(l){return a.shouldStopEventPropagation(l)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,Y.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,e)},t.prototype.createParams=function(){var e=this,i=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:i.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(r){e.gridApi.showColumnMenuAfterButtonClick(e.column,r)},progressSort:function(r){e.sortController.progressSort(e.column,!!r,"uiColumnSorted")},setSort:function(r,a){e.sortController.setSortForColumn(e.column,r,!!a,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new zf(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e),e.key===le.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===le.ENTER&&this.onEnterKeyPressed(e)},t.prototype.onEnterKeyPressed=function(e){var i=this.comp.getUserCompInstance();i&&(e.ctrlKey||e.metaKey?this.menuEnabled&&i.showMenu&&(e.preventDefault(),i.showMenu()):this.sortable&&this.sortController.progressSort(this.column,e.shiftKey,"uiColumnSorted"))},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,n=this.createManagedBean(new kl({getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},this.beans));n.setComp(this.comp),this.refreshFunctions.push(function(){return n.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,i=function(){var n=e.column.getColDef(),a=uu.getHeaderClassesFromColDef(n,e.gridOptionsWrapper,e.column,null),l=e.userHeaderClasses;e.userHeaderClasses=new Set(a),a.forEach(function(h){l.has(h)?l.delete(h):e.comp.addOrRemoveCssClass(h,!0)}),l.forEach(function(h){return e.comp.addOrRemoveCssClass(h,!1)})};this.refreshFunctions.push(i),i()},t.prototype.setDragSource=function(e){var i=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var n=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:Si.HeaderCell,eElement:e,defaultIconName:n?oi.ICON_HIDE:oi.ICON_NOT_ALLOWED,getDragItem:function(){return i.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(r){var a,l;if(n){var h=(null===(l=null===(a=r)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(m){return!m.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(h,!0,"uiColumnMoved")}},onGridExit:function(r){var a,l;if(n){var h=(null===(l=null===(a=r)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(m){return!m.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(h,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var i=this.comp.getUserCompInstance();return!(!i||!i.refresh)&&i.refresh(e)},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!(this.gridOptionsWrapper.isSuppressMovableColumns()||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,i=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,Y.EVENT_WIDTH_CHANGED,i),i()},t.prototype.setupMovingCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,Y.EVENT_MOVING_CHANGED,i),i()},t.prototype.setupMenuClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,Y.EVENT_MENU_VISIBLE_CHANGED,i),i()},t.prototype.setupSortableClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.column,Y.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,i=function(){var n=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",n)};i(),this.addRefreshFunction(i)},t.prototype.setupAutoHeight=function(e){var a,i=this,n=function(v){if(i.isAlive()){var _=$n(i.getGui()),I=e.offsetHeight+_.paddingTop+_.paddingBottom;if(v<5){var H=i.beans.gridOptionsWrapper.getDocument();if(!H||!H.contains(e)||0==I)return void i.beans.frameworkOverrides.setTimeout(function(){return n(v+1)},0)}i.columnModel.setColumnHeaderHeight(i.column,I)}},r=!1,l=function(){var v=i.column.isAutoHeaderHeight();v&&!r&&h(),!v&&r&&m()},h=function(){r=!0,n(0),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),a=i.resizeObserverService.observeResize(e,function(){return n(0)})},m=function(){r=!1,a&&a(),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),a=void 0};l(),this.addDestroyFunc(function(){return m()}),this.addManagedListener(this.column,Y.EVENT_WIDTH_CHANGED,function(){return r&&n(0)}),this.addManagedListener(this.column,Y.EVENT_SORT_CHANGED,function(){r&&i.beans.frameworkOverrides.setTimeout(function(){return n(0)})}),this.addRefreshFunction(l)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Es(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,i){null!=i?this.ariaDescriptionProperties.set(e,i):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var n=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",n)}};this.addManagedListener(this.eventService,S.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.setupFilterCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,Y.EVENT_FILTER_ACTIVE_CHANGED,i),i()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,i=function(n){return e.setActiveHeader("mouseenter"===n.type)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},Hn([w("columnModel")],t.prototype,"columnModel",void 0),Hn([w("columnHoverService")],t.prototype,"columnHoverService",void 0),Hn([w("sortController")],t.prototype,"sortController",void 0),Hn([w("menuFactory")],t.prototype,"menuFactory",void 0),Hn([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Hn([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Hn([w("gridApi")],t.prototype,"gridApi",void 0),Hn([w("columnApi")],t.prototype,"columnApi",void 0),Hn([Ct],t.prototype,"removeDragSource",null),t}(zl),$f=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),da=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Zf=function(o){function t(e,i,n,r){var a=o.call(this)||this;return a.eResize=i,a.comp=e,a.pinned=n,a.columnGroup=r,a}return $f(t,o),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var i=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(i),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",function(){var r=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(l){l.getColDef().suppressAutoSize||r.push(l.getColId())}),r.length>0&&e.columnModel.autoSizeColumns({columns:r,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()})}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var i=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter(function(a){return a.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromStartWidth+=a.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromRatios.push(a.getActualWidth()/i.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,i){var n=this.normaliseDragChange(i);this.resizeColumns(this.resizeStartWidth+n,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,i){void 0===i&&(i=!0);var n=[];n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(e-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:n,finished:i,source:"uiColumnDragged"}),i&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,i=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=i.filter(function(n){return n.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(n){return e.resizeStartWidth+=n.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(n){return e.resizeRatios.push(n.getActualWidth()/e.resizeStartWidth)})},t.prototype.normaliseDragChange=function(e){var i=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==G.PINNED_LEFT&&(i*=-1):this.pinned===G.PINNED_RIGHT&&(i*=-1),i},da([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),da([w("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),da([w("columnModel")],t.prototype,"columnModel",void 0),da([ve],t.prototype,"postConstruct",null),t}(ge),qf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xf=function(o){function t(e,i){var n=o.call(this)||this;return n.removeChildListenersFuncs=[],n.columnGroup=i,n.comp=e,n}return qf(t,o),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,O.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(n){n.addEventListener(Y.EVENT_WIDTH_CHANGED,i),n.addEventListener(Y.EVENT_VISIBLE_CHANGED,i),e.removeChildListenersFuncs.push(function(){n.removeEventListener(Y.EVENT_WIDTH_CHANGED,i),n.removeEventListener(Y.EVENT_VISIBLE_CHANGED,i)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(ge),b_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},x_=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.columnGroup=e,n}return b_(t,o),t.prototype.setComp=function(e,i,n){o.prototype.setGui.call(this,i),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),a=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Yl(a,i)),this.createManagedBean(new mu(this.columnGroup,i,this.beans)),this.createManagedBean(new Xf(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Zf(e,n,r,this.columnGroup)),this.createManagedBean(new Zt(i,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},t.prototype.setupUserComp=function(){var e=this,i=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(m){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),m,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!i){for(var r=this.columnGroup,a=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===a.length;)r=r.getParent();var l=r.getColGroupDef();l&&(i=l.headerName),i||(i=a?this.columnModel.getDisplayNameForColumn(a[0],"header",!0):"")}var h=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(h)},t.prototype.setupTooltip=function(){var e=this,i=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(n.getColDef=function(){return i}),this.createManagedBean(new kl(n,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,P.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,P.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var i=e.isExpanded();this.comp.setAriaExpanded(this.expandable?i?"true":"false":void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,i=this.columnGroup.getColGroupDef(),n=uu.getHeaderClassesFromColDef(i,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach(function(r){return e.comp.addOrRemoveCssClass(r,!0)})},t.prototype.setupMovingCss=function(){var e=this,n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};n.forEach(function(a){e.addManagedListener(a,Y.EVENT_MOVING_CHANGED,r)}),r()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.columnGroup)}},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();if(this.expandable&&i&&e.key===le.ENTER){var n=this.columnGroup,r=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),r,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var i=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),a={type:Si.HeaderCell,eElement:e,defaultIconName:r?oi.ICON_HIDE:oi.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach(function(l){return l.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return n.forEach(function(l){return l.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(l){var h,m;if(r){var v=(null===(m=null===(h=l)||void 0===h?void 0:h.columns)||void 0===m?void 0:m.filter(function(_){return!_.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(v,!0,"uiColumnMoved")}},onGridExit:function(l){var h,m;if(r){var v=(null===(m=null===(h=l)||void 0===h?void 0:h.columns)||void 0===m?void 0:m.filter(function(_){return!_.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(v,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(a,!0),this.addDestroyFunc(function(){return i.dragAndDropService.removeDragSource(a)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i={};e.forEach(function(r){return i[r.getId()]=r.isVisible()});var n=[];return this.columnModel.getAllDisplayedColumns().forEach(function(r){e.indexOf(r)>=0&&(n.push(r),De(e,r))}),e.forEach(function(r){return n.push(r)}),{columns:n,visibleState:i}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(n){(n.getColDef().suppressMovable||n.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsWrapper.isSuppressMovableColumns()},Zl([w("columnModel")],t.prototype,"columnModel",void 0),Zl([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Zl([w("gridApi")],t.prototype,"gridApi",void 0),Zl([w("columnApi")],t.prototype,"columnApi",void 0),t}(zl),Jf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),vu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},_u=0,ql=function(o){function t(e,i,n){var r=o.call(this)||this;return r.instanceId=_u++,r.headerCellCtrls={},r.rowIndex=e,r.pinned=i,r.type=n,r}return Jf(t,o),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),zn()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,S.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return it(this.headerCellCtrls).find(function(i){return i.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(G.PINNED_RIGHT)+this.columnModel.getContainerWidth(G.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),i=[],n=0;this.columnModel.hasFloatingFilters()&&(e++,n=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),a=this.columnModel.getColumnHeaderRowHeight(),h=e-(1+n),m=0;m=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Cu=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},tm=function(o){function t(e){var i=o.call(this)||this;return i.groupsRowCtrls=[],i.pinned=e,i}return yu(t,o),t.prototype.setComp=function(e,i){this.comp=e,this.eViewport=i,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var i=new l_(this.pinned,e);this.createManagedBean(i)},t.prototype.refresh=function(e){var i=this;void 0===e&&(e=!1);var v,n=new Zr,r=this.focusService.getFocusHeaderToUseAfterRefresh();(function(){var v=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var _=0;_=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},wu=function(o){function t(e){var i=o.call(this)||this;return i.headerRowComps={},i.rowCompsList=[],i.pinned=e,i}return im(t,o),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var i={addOrRemoveCssClass:function(r,a){return e.addOrRemoveCssClass(r,a)},setCtrls:function(r){return e.setCtrls(r)},setCenterWidth:function(r){return e.eCenterContainer.style.width=r},setContainerTransform:function(r){return e.eCenterContainer.style.transform=r},setPinnedContainerWidth:function(r){var a=e.getGui();a.style.width=r,a.style.maxWidth=r,a.style.minWidth=r}};this.createManagedBean(new tm(this.pinned)).setComp(i,this.getGui())},t.prototype.selectAndSetTemplate=function(){this.setTemplate(this.pinned==G.PINNED_LEFT?t.PINNED_LEFT_TEMPLATE:this.pinned==G.PINNED_RIGHT?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var r,i=this,n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],e.forEach(function(l){var h=l.getInstanceId(),m=n[h];delete n[h];var v=m||i.createBean(new m_(l));i.headerRowComps[h]=v,i.rowCompsList.push(v),function(l){var h=l.getGui();h.parentElement!=i.eRowContainer&&i.eRowContainer.appendChild(h),r&&Za(i.eRowContainer,h,r),r=h}(v)}),Nt(n).forEach(function(l){return i.destroyRowComp(l)})},t.PINNED_LEFT_TEMPLATE='"},t.prototype.getValues=function(e){var i=this,n=[];return this.forEachInput(function(r,a,l,h){e===l&&a0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(ms()||kr()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[ti.EQUALS,ti.NOT_EQUAL,ti.LESS_THAN,ti.LESS_THAN_OR_EQUAL,ti.GREATER_THAN,ti.GREATER_THAN_OR_EQUAL,ti.IN_RANGE,ti.BLANK,ti.NOT_BLANK],Jn([le("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),Jn([le("eValue-index1-1")],t.prototype,"eValueTo1",void 0),Jn([le("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),Jn([le("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(ti),Ys=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),er=function(){return er=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},eo=function(o){function t(){return o.call(this,"textFilter")||this}return Ys(t,o),t.trimInput=function(e){var i=e&&e.trim();return""===i?e:i},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.textFilterParams=e,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Ne.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(i){return e(i.filterOption,i.value,i.filterText)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var i=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:i},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var i=this,n=[];return this.forEachInput(function(r,a,l,h){if(e===l&&a\n \n \n
    '},t.prototype.mapValuesFromModel=function(e){var i=e||{};return[i.filter||null,i.filterTo||null].slice(0,this.getNumberOfInputs(i.type))},t.prototype.evaluateNullValue=function(e){return!!e&&[Ht.NOT_EQUAL,Ht.NOT_CONTAINS,Ht.BLANK].indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,i,n,r){var a=this,l=e.map(function(te){return a.formatter(te)})||[],h=this.formatter(i),m=this.textFilterParams,v=m.api,_=m.colDef,y=m.column,b=m.columnApi,R=m.context,P=m.textFormatter;if(n.type===Ht.BLANK)return this.isBlank(i);if(n.type===Ht.NOT_BLANK)return!this.isBlank(i);var H={api:v,colDef:_,column:y,columnApi:b,context:R,node:r.node,data:r.data,filterOption:n.type,value:h,textFormatter:P};return l.some(function(te){return a.matcher(er(er({},H),{filterText:te}))})},t.DEFAULT_FILTER_OPTIONS=[Ht.CONTAINS,Ht.NOT_CONTAINS,Ht.EQUALS,Ht.NOT_EQUAL,Ht.STARTS_WITH,Ht.ENDS_WITH,Ht.BLANK,Ht.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.value,r=e.filterText;if(null==r)return!1;switch(e.filterOption){case t.CONTAINS:return n.indexOf(r)>=0;case t.NOT_CONTAINS:return n.indexOf(r)<0;case t.EQUALS:return n===r;case t.NOT_EQUAL:return n!=r;case t.STARTS_WITH:return 0===n.indexOf(r);case t.ENDS_WITH:var a=n.lastIndexOf(r);return a>=0&&a===n.length-r.length;default:return!1}},gr([le("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),gr([le("eValue-index1-1")],t.prototype,"eValueTo1",void 0),gr([le("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),gr([le("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Ht),hh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Po=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Io=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return hh(t,o),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n \n ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,i){this.isEventFromFloatingFilter(i)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(e){o.prototype.init.call(this,e),this.params=e,this.applyActive=ml.isUseApplyButton(this.params.filterParams);var i=this.params.filterParams.allowedCharPattern;if(null!=i&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:i}}),!this.isReadOnly()){var n=ml.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=Te(this.syncUpWithParentFilter.bind(this),n),a=this.eFloatingFilterInput.getGui();this.addManagedListener(a,"input",r),this.addManagedListener(a,"keypress",r),this.addManagedListener(a,"keydown",r)}var l=e.column.getDefinition();(this.isReadOnly()||l.filterParams&&l.filterParams.filterOptions&&1===l.filterParams.filterOptions.length&&"inRange"===l.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var h=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),m=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(h+" "+m("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var i=this;if(!this.applyActive||e.key===ae.ENTER){var r=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(r=eo.trimInput(r),this.eFloatingFilterInput.setValue(r,!0)),this.params.parentFilterInstance(function(a){a&&a.onFloatingFilterChanged(i.getLastType()||null,r||null)})}},t.prototype.conditionToString=function(e,i){return e.type==Ht.IN_RANGE||2===(i||{}).numberOfInputs?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},Po([w("columnModel")],t.prototype,"columnModel",void 0),Po([le("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),Po([me],t.prototype,"postConstruct",null),t}(wl),fh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),mh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return fh(t,o),t.prototype.getDefaultFilterOptions=function(){return zs.DEFAULT_FILTER_OPTIONS},t}(Io),Od=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Od(t,o),t.prototype.getDefaultFilterOptions=function(){return eo.DEFAULT_FILTER_OPTIONS},t}(Io),ki=function(){function o(t,e){var i=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Xt,this.eElement=t,this.preventMouseClick=e;var n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",a,{passive:!1}),this.destroyFuncs.push(function(){i.eElement.removeEventListener("touchstart",n,{passive:!0}),i.eElement.removeEventListener("touchmove",r,{passive:!0}),i.eElement.removeEventListener("touchend",a,{passive:!1})})}return o.prototype.getActiveTouch=function(t){for(var e=0;e0&&t-this.lastTapTime>o.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:o.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=t},o.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},o.EVENT_TAP="tap",o.EVENT_DOUBLE_TAP="doubleTap",o.EVENT_LONG_TAP="longTap",o.DOUBLE_TAP_MILLIS=500,o}(),vh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),to=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},xl=function(o){function t(e){var i=o.call(this)||this;return e||i.setTemplate(t.TEMPLATE),i}return vh(t,o),t.prototype.attachCustomElements=function(e,i,n,r,a){this.eSortOrder=e,this.eSortAsc=i,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=a},t.prototype.setupSort=function(e,i){var n=this;void 0===i&&(i=!1),this.column=e,this.suppressOrder=i,this.setupMultiSortIndicator(),!this.column.getColDef().sortable||(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,function(){return n.onSortChanged()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return n.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,i,n){if(null!=i){var r=ei(e,this.gridOptionsWrapper,n);r&&i.appendChild(r)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!("asc"===e)),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!("desc"===e)),this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",r||!(null==e))}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&i&&(this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!e)}},t.prototype.updateSortOrder=function(){var e=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),r=this.sortController.getDisplaySortIndexForColumn(this.column)??-1,a=n.some(function(h){return e.sortController.getDisplaySortIndexForColumn(h)??!1});Ft(this.eSortOrder,r>=0&&a),r>=0?this.eSortOrder.innerHTML=(r+1).toString():zi(this.eSortOrder)}},t.TEMPLATE='\n \n \n \n \n \n ',to([le("eSortOrder")],t.prototype,"eSortOrder",void 0),to([le("eSortAsc")],t.prototype,"eSortAsc",void 0),to([le("eSortDesc")],t.prototype,"eSortDesc",void 0),to([le("eSortMixed")],t.prototype,"eSortMixed",void 0),to([le("eSortNone")],t.prototype,"eSortNone",void 0),to([w("columnModel")],t.prototype,"columnModel",void 0),to([w("sortController")],t.prototype,"sortController",void 0),t}(tt),El=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),on=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},pv=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return El(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=qe(this.params.template,t.TEMPLATE);return e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var i=tn(this.currentDisplayName);this.eText&&(this.eText.innerHTML=i)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,i,n){if(null!=i){var r=ei(e,this.gridOptionsWrapper,n);r&&i.appendChild(r)}},t.prototype.setupTap=function(){var e=this,i=this.gridOptionsWrapper;if(!i.isSuppressTouch()){var n=new ki(this.getGui(),!0),r=i.isSuppressMenuHide(),a=r&&L(this.eMenu),l=a?new ki(this.eMenu,!0):n;this.params.enableMenu&&this.addManagedListener(l,ki[a?"EVENT_TAP":"EVENT_LONG_TAP"],function(_){i.getApi().showColumnMenuAfterMouseClick(e.params.column,_.touchStart)}),this.params.enableSorting&&this.addManagedListener(n,ki.EVENT_TAP,function(_){r&&e.eMenu.contains(_.touchStart.target)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}),this.addDestroyFunc(function(){return n.destroy()}),a&&this.addDestroyFunc(function(){return l.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),i=Kn()&&e;return this.params.enableMenu&&!i},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return void Gn(this.eMenu);var i=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",i)}},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new xl(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var i=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,K.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=(new Date).getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(r){var a=e.params.column.isMoving(),l=(new Date).getTime();a||l-e.lastMovingChanged<50||e.params.progressSort(i?r.ctrlKey||r.metaKey:r.shiftKey)});var n=function(){var r;if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var l=null===(r=e.columnModel.getSourceColumnsForGroupColumn(e.params.column))||void 0===r?void 0:r.every(function(m){return e.params.column.getSort()==m.getSort()});e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!l)}};this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},t.prototype.setupFilterIcon=function(){!this.eFilter||(this.addManagedListener(this.params.column,K.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='',on([w("sortController")],t.prototype,"sortController",void 0),on([w("menuFactory")],t.prototype,"menuFactory",void 0),on([w("columnModel")],t.prototype,"columnModel",void 0),on([le("eFilter")],t.prototype,"eFilter",void 0),on([le("eSortIndicator")],t.prototype,"eSortIndicator",void 0),on([le("eMenu")],t.prototype,"eMenu",void 0),on([le("eLabel")],t.prototype,"eLabel",void 0),on([le("eText")],t.prototype,"eText",void 0),on([le("eSortOrder")],t.prototype,"eSortOrder",void 0),on([le("eSortAsc")],t.prototype,"eSortAsc",void 0),on([le("eSortDesc")],t.prototype,"eSortDesc",void 0),on([le("eSortMixed")],t.prototype,"eSortMixed",void 0),on([le("eSortNone")],t.prototype,"eSortNone",void 0),t}(tt),Sl=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Td=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return Sl(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){this.params.template&&Ve(function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},"HeaderGroupComp.templateNotSupported")},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(a){if(!at(a)){var l=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),l,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var n=function(a){Ke(a)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,D.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,D.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,i){var n=new ki(e,!0);this.addManagedListener(n,ki.EVENT_TAP,i),this.addDestroyFunc(function(){return n.destroy()}),this.addManagedListener(e,"click",i)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var i=this.params.columnGroup.isExpanded();Ft(this.eOpenIcon,i),Ft(this.eCloseIcon,!i)}else Ft(this.eOpenIcon,!1),Ft(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,i){var n=ei(e,this.gridOptionsWrapper,null);n&&this.getRefElement(i).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Ft(this.eOpenIcon,!1),void Ft(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(L(e)){var i=tn(e);this.getRefElement("agLabel").innerHTML=i}},t.TEMPLATE='',Rl([w("columnModel")],t.prototype,"columnModel",void 0),Rl([le("agOpened")],t.prototype,"eOpenIcon",void 0),Rl([le("agClosed")],t.prototype,"eCloseIcon",void 0),t}(tt),Ol=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Fo=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Ol(t,o),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),o.prototype.setParentComponent.call(this,e)},t.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),o.prototype.destroy.call(this)},t}(tt),hv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Lo=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return hv(t,o),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),L(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var i=e.key;(i===ae.LEFT||i===ae.UP||i===ae.RIGHT||i===ae.DOWN||e.shiftKey&&i===ae.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='
    \n \n
    ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([le("eTextArea")],t.prototype,"eTextArea",void 0),t}(Fo),Ks=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Tl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Dl=function(o){function t(){var e=o.call(this,'
    ')||this;return e.startedByEnter=!1,e}return Ks(t,o),t.prototype.init=function(e){var i=this;if(this.focusAfterAttached=e.cellStartedEdit,z(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===ae.ENTER;var n=!1;e.values.forEach(function(r){var a={value:r},l=i.valueFormatterService.formatValue(e.column,null,r);a.text=null!=l?l:r,i.eSelect.addOption(a),n=n||e.value===r}),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange(function(){return e.stopEditing()})}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Tl([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Tl([le("eSelect")],t.prototype,"eSelect",void 0),t}(Fo),Dd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fv=function(o){function t(){var e=o.call(this)||this;return Ve(function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')},"PopupSelectCellEditor.deprecated"),e}return Dd(t,o),t.prototype.isPopup=function(){return!0},t}(Dl),yh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ad=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return yh(t,o),t.prototype.init=function(e){this.params=e;var n,i=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===ae.BACKSPACE||e.eventKey===ae.DELETE?n="":e.charPress?n=e.charPress:(n=this.getStartValue(e),e.eventKey!==ae.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,n=this.getStartValue(e)),null!=n&&i.setValue(n,!0),null!=e.maxLength&&i.setMaxLength(e.maxLength),this.addManagedListener(i.getGui(),"keydown",function(r){var a=r.key;(a===ae.PAGE_UP||a===ae.PAGE_DOWN)&&r.preventDefault()})},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Yn()||i.getFocusableElement().focus();var n=i.getInputElement();if(this.highlightAllOnFocus)n.select();else{var r=i.getValue(),a=L(r)&&r.length||0;a&&n.setSelectionRange(a,a)}}},t.prototype.focusIn=function(){var e=this.eInput,i=e.getFocusableElement(),n=e.getInputElement();i.focus(),n.select()},t.prototype.getValue=function(){return this.params.parseValue(this.eInput.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='
    \n \n
    ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([le("eInput")],t.prototype,"eInput",void 0),t}(Fo),mv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gv=function(o){function t(){var e=o.call(this)||this;return Ve(function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')},"PopupTextCellEditor.deprecated"),e}return mv(t,o),t.prototype.isPopup=function(){return!0},t}(Ad),vv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Id=function(o){function t(){var e=o.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e}return vv(t,o),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,i){var n=Math.abs(i),r=e.formatValue(n),a=L(r)?r:n,l=i>=0;this.eDelta.innerHTML=l?"\u2191"+a:"\u2193"+a,this.eDelta.classList.toggle("ag-value-change-delta-up",l),this.eDelta.classList.toggle("ag-value-change-delta-down",!l)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var i=this.refreshCount;window.setTimeout(function(){i===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),zi(this.eDelta)},t.prototype.refresh=function(e){var i=e.value;return i!==this.lastValue&&(L(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:L(e.value)?this.eValue.innerHTML=i:zi(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())&&("number"==typeof i&&"number"==typeof this.lastValue&&this.showDelta(e,i-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=i,!0)},t.TEMPLATE='',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([w("filterManager")],t.prototype,"filterManager",void 0),t}(tt),Fd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xh=function(o){function t(){var e=o.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return Fd(t,o),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=_i(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout(function(){i===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){i===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},t.prototype.refresh=function(e){var i=e.value;return z(i)&&(i=""),i!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=i,L(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:L(e.value)?this.eCurrent.innerHTML=i:zi(this.eCurrent),!0)},t.TEMPLATE='\n \n ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([w("filterManager")],t.prototype,"filterManager",void 0),t}(tt),yn=(()=>(function(o){o[o.Above=0]="Above",o[o.Below=1]="Below"}(yn||(yn={})),yn))(),ot=function(){function o(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=o.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return o.prototype.setData=function(t){this.setDataCommon(t,!1)},o.prototype.updateData=function(t){this.setDataCommon(t,!0)},o.prototype.setDataCommon=function(t,e){var i=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var n=this.createDataChangedEvent(t,i,e);this.dispatchLocalEvent(n)},o.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},o.prototype.createDataChangedEvent=function(t,e,i){return{type:o.EVENT_DATA_CHANGED,node:this,oldData:e,newData:t,update:i}},o.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},o.prototype.getRowIndexString=function(){return this.rowPinned===N.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===N.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},o.prototype.createDaemonNode=function(){var t=new o(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},o.prototype.setDataAndId=function(t,e){var i=L(this.id)?this.createDaemonNode():null,n=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.beans.selectionService.syncInRowNode(this,i),this.checkRowSelectable();var r=this.createDataChangedEvent(t,n,!1);this.dispatchLocalEvent(r)},o.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!t||t(this))},o.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var i=this.calculateSelectedFromChildren();this.setSelected(i??!1)}},o.prototype.setId=function(t){var e=this.beans.gridOptionsWrapper.getRowIdFunc();if(e)if(this.data){var i=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(o.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+o.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},o.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],i=this;for(t&&(i=i.parent);i&&i.level>=0;)e.push(i.key),i=i.parent;return e.reverse(),e},o.prototype.isPixelInRange=function(t){return!(!L(this.rowTop)||!L(this.rowHeight))&&t>=this.rowTop&&ti&&(i=h)):t=!0}),!t&&((e||i<10)&&(i=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),i!=this.rowHeight))){this.setRowHeight(i);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}},o.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_ROW_INDEX_CHANGED)))},o.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_UI_LEVEL_CHANGED)))},o.prototype.setExpanded=function(t,e){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_EXPANDED_CHANGED));var i=Object.assign({},this.createGlobalRowEvent(S.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},o.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},o.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},o.prototype.setDataValue=function(t,e,i){var n=this.beans.columnModel.getPrimaryColumn(t),r=this.beans.valueService.getValue(n,this),a=this.beans.valueService.setValue(this,n,e,i);return this.dispatchCellChangedEvent(n,e,r),this.checkRowSelectable(),a},o.prototype.setGroupValue=function(t,e){var i=this.beans.columnModel.getGridColumn(t);z(this.groupData)&&(this.groupData={});var n=i.getColId(),r=this.groupData[n];r!==e&&(this.groupData[n]=e,this.dispatchCellChangedEvent(i,e,r))},o.prototype.setAggData=function(t){var e=this,i=Ct([this.aggData,t]),n=this.aggData;this.aggData=t,this.eventService&&i.forEach(function(r){var a=e.beans.columnModel.getGridColumn(r);e.dispatchCellChangedEvent(a,e.aggData?e.aggData[r]:void 0,n?n[r]:void 0)})},o.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HAS_CHILDREN_CHANGED)))},o.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},o.prototype.isEmptyRowGroupNode=function(){return this.group&&de(this.childrenAfterGroup)},o.prototype.dispatchCellChangedEvent=function(t,e,i){this.dispatchLocalEvent({type:o.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:i})},o.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},o.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},o.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},o.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},o.prototype.calculateSelectedFromChildren=function(){var t,e=!1,i=!1,n=!1;if(null===(t=this.childrenAfterGroup)||void 0===t||!t.length)return this.selectable?this.selected:null;for(var r=0;r0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:S.EVENT_SELECTION_CHANGED})),n&&this.beans.selectionService.setLastSelectedNode(this)),y},o.prototype.doRowRangeSelection=function(t){var e=this;void 0===t&&(t=!0);var i=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),n=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,n),a=0;return r.forEach(function(h){h.group&&i||!1===t&&e===h||h.selectThisNode(t)&&a++}),this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:S.EVENT_SELECTION_CHANGED}),a},o.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},o.prototype.selectThisNode=function(t,e){if(!this.selectable&&t||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_ROW_SELECTED));var r=Object.assign({},this.createGlobalRowEvent(S.EVENT_ROW_SELECTED),{event:e||null});return this.beans.eventService.dispatchEvent(r),!0},o.prototype.selectChildNodes=function(t,e){var i=e?this.childrenAfterAggFilter:this.childrenAfterGroup;if(z(i))return 0;for(var n=0,r=0;r=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ml=function(o){function t(){return o.call(this,'\n ')||this}return _v(t,o),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.rowNode.isSelected(),n=void 0===i?e("ariaIndeterminate","indeterminate"):!0===i?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(r+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},t.prototype.onUncheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},t.prototype.init=function(e){var i=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(l){Ke(l)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(l){Ke(l);var h=i.eCheckbox.getValue();void 0===i.eCheckbox.getPreviousValue()||void 0===h?0===i.onUncheckedClicked(l||{})&&i.onCheckedClicked(l):h?i.onCheckedClicked(l):i.onUncheckedClicked(l||{})}),this.addManagedListener(this.rowNode,ot.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||"function"==typeof this.getIsVisible()){var a=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.rowNode,ot.EVENT_DATA_CHANGED,a),this.addManagedListener(this.rowNode,ot.EVENT_CELL_CHANGED,a),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,i,n,r,a=this.rowNode.selectable,l=this.getIsVisible();if(a)if("function"==typeof l){var h=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,m=null===(i=this.column)||void 0===i?void 0:i.createColumnFunctionCallbackParams(this.rowNode);a=!!m&&l(No(No({},h),m))}else a=l??!1;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!a),this.setVisible(!0),void this.setDisplayed(!0);null!==(r=this.overrides)&&void 0!==r&&r.removeHidden?this.setDisplayed(a):this.setVisible(a)},t.prototype.getIsVisible=function(){var e,i;return this.overrides?this.overrides.isVisible:null===(i=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===i?void 0:i.checkboxSelection},Ld([le("eCheckbox")],t.prototype,"eCheckbox",void 0),Ld([me],t.prototype,"postConstruct",null),t}(tt),Eh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Go=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ei=(()=>(function(o){o[o.ToolPanel=0]="ToolPanel",o[o.HeaderCell=1]="HeaderCell",o[o.RowDrag=2]="RowDrag",o[o.ChartPanel=3]="ChartPanel"}(Ei||(Ei={})),Ei))(),tr=(()=>(function(o){o[o.Up=0]="Up",o[o.Down=1]="Down"}(tr||(tr={})),tr))(),Cn=(()=>(function(o){o[o.Left=0]="Left",o[o.Right=1]="Right"}(Cn||(Cn={})),Cn))(),si=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}var e;return Eh(t,o),e=t,t.prototype.init=function(){this.ePinnedIcon=Gi("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Gi("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Gi("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Gi("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Gi("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Gi("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Gi("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Gi("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Gi("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(i,n){void 0===n&&(n=!1);var r={eElement:i.eElement,dragStartPixels:i.dragStartPixels,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:r,dragSource:i}),this.dragService.addDragSource(r,n)},t.prototype.removeDragSource=function(i){var n=this.dragSourceAndParamsList.find(function(r){return r.dragSource===i});n&&(this.dragService.removeDragSource(n.params),Ae(this.dragSourceAndParamsList,n))},t.prototype.clearDragSourceParamsList=function(){var i=this;this.dragSourceAndParamsList.forEach(function(n){return i.dragService.removeDragSource(n.params)}),this.dragSourceAndParamsList.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(i,n){this.dragging=!0,this.dragSource=i,this.eventLastTime=n,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(i){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var n=this.createDropTargetEvent(this.lastDropTarget,i,null,null,!1);this.lastDropTarget.onDragStop(n)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(i,n){var a,l,h,m,r=this,v=this.getHorizontalDirection(i),_=this.getVerticalDirection(i);this.eventLastTime=i,this.positionGhost(i);var y=this.dropTargets.filter(function(P){return r.isMouseOnDropTarget(i,P)}),b=this.findCurrentDropTarget(i,y);if(b!==this.lastDropTarget)this.leaveLastTargetIfExists(i,v,_,n),null!==this.lastDropTarget&&null===b&&(null===(l=(a=this.dragSource).onGridExit)||void 0===l||l.call(a,this.dragItem)),null===this.lastDropTarget&&null!==b&&(null===(m=(h=this.dragSource).onGridEnter)||void 0===m||m.call(h,this.dragItem)),this.enterDragTargetIfExists(b,i,v,_,n),this.lastDropTarget=b;else if(b&&b.onDragging){var R=this.createDropTargetEvent(b,i,v,_,n);b.onDragging(R)}},t.prototype.getAllContainersFromDropTarget=function(i){var n=i.getSecondaryContainers?i.getSecondaryContainers():null,r=[[i.getContainer()]];return n?r.concat(n):r},t.prototype.allContainersIntersect=function(i,n){var r,a;try{for(var l=Go(n),h=l.next();!h.done;h=l.next()){var v=h.value.getBoundingClientRect();if(0===v.width||0===v.height)return!1;if(!(i.clientX>=v.left&&i.clientX=v.top&&i.clientYr?Cn.Left:Cn.Right},t.prototype.getVerticalDirection=function(i){var n=this.eventLastTime&&this.eventLastTime.clientY,r=i.clientY;return n===r?null:n>r?tr.Up:tr.Down},t.prototype.createDropTargetEvent=function(i,n,r,a,l){var h=i.getContainer(),m=h.getBoundingClientRect(),v=this;return{event:n,x:n.clientX-m.left,y:n.clientY-m.top,vDirection:a,hDirection:r,dragSource:v.dragSource,fromNudge:l,dragItem:v.dragItem,api:v.gridApi,columnApi:v.columnApi,dropZoneTarget:h}},t.prototype.positionGhost=function(i){var n=this.eGhost;if(n){var a=n.getBoundingClientRect().height,l=Ep()-2,h=za()-2,m=i.pageY-a/2,v=i.pageX-10,_=this.gridOptionsWrapper.getDocument(),y=_.defaultView||window,b=y.pageYOffset||_.documentElement.scrollTop,R=y.pageXOffset||_.documentElement.scrollLeft;l>0&&v+n.clientWidth>l+R&&(v=l+R-n.clientWidth),v<0&&(v=0),h>0&&m+n.clientHeight>h+b&&(m=h+b-n.clientHeight),m<0&&(m=0),n.style.left=v+"px",n.style.top=m+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=_i(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var i=this.environment.getTheme().theme;i&&this.eGhost.classList.add(i),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var n=this.eGhost.querySelector(".ag-dnd-ghost-label"),r=this.dragSource.dragItemName;Pe(r)&&(r=r()),n.innerHTML=tn(r)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var a=this.gridOptionsWrapper.getDocument(),l=null;try{l=a.fullscreenElement}catch{}finally{l||(l=a.querySelector("body"))}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(i,n){void 0===n&&(n=!1),zi(this.eGhostIcon);var r=null;switch(i||(i=this.dragSource.defaultIconName||e.ICON_NOT_ALLOWED),i){case e.ICON_PINNED:r=this.ePinnedIcon;break;case e.ICON_MOVE:r=this.eMoveIcon;break;case e.ICON_LEFT:r=this.eLeftIcon;break;case e.ICON_RIGHT:r=this.eRightIcon;break;case e.ICON_GROUP:r=this.eGroupIcon;break;case e.ICON_AGGREGATE:r=this.eAggregateIcon;break;case e.ICON_PIVOT:r=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:r=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",n),(r!==this.eHideIcon||!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns())&&r&&this.eGhostIcon.appendChild(r)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE='
    \n \n
    \n
    ',Hn([w("dragService")],t.prototype,"dragService",void 0),Hn([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Hn([w("environment")],t.prototype,"environment",void 0),Hn([w("columnApi")],t.prototype,"columnApi",void 0),Hn([w("gridApi")],t.prototype,"gridApi",void 0),Hn([me],t.prototype,"init",null),Hn([Et],t.prototype,"clearDragSourceParamsList",null),e=Hn([be("dragAndDropService")],t)}(ve),$s=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),vr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Zs=function(o){function t(e,i,n,r,a,l){var h=o.call(this)||this;return h.cellValueFn=e,h.rowNode=i,h.column=n,h.customGui=r,h.dragStartPixels=a,h.suppressVisibilityChange=l,h.dragSource=null,h}return $s(t,o),t.prototype.isCustomGui=function(){return null!=this.customGui},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(ei("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new Sh(this,this.beans,this.rowNode,this.column):new Nd(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,i){this.setTemplateFromElement(e),this.addDragSource(i)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return[this.rowNode];var i=this.beans.selectionService.getSelectedNodes();return-1!==i.indexOf(this.rowNode)?i:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&Ve(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.addDragSource=function(e){var i=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var n=this.gridOptionsWrapper.getRowDragText(this.column),r=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:Ei.RowDrag,eElement:this.getGui(),dragItemName:function(){var a,l=i.getDragItem(),h=(null===(a=l.rowNodes)||void 0===a?void 0:a.length)||1;return n?n(l,h):1===h?i.cellValueFn():h+" "+r("rowDragRows","rows")},getDragItem:function(){return i.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},vr([w("beans")],t.prototype,"beans",void 0),vr([me],t.prototype,"postConstruct",null),vr([Et],t.prototype,"removeDragSource",null),t}(tt),qs=function(o){function t(e,i,n){var r=o.call(this)||this;return r.parent=e,r.rowNode=i,r.column=n,r}return $s(t,o),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var i=!0,n=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=Pe(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(i)):(this.parent.setDisplayed(i),this.parent.setVisible(!0))}},t}(ve),Nd=function(o){function t(e,i,n,r){var a=o.call(this,e,n,r)||this;return a.beans=i,a}return $s(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},vr([me],t.prototype,"postConstruct",null),t}(qs),Sh=function(o){function t(e,i,n,r){var a=o.call(this,e,n,r)||this;return a.beans=i,a}return $s(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,S.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var i=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),n=i&&i.shouldPreventRowMove(),r=this.beans.gridOptionsWrapper.isSuppressRowDrag(),a=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(n&&!a||r)},vr([me],t.prototype,"postConstruct",null),t}(qs),Gd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qs=function(){return Qs=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Rh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Gd(t,o),t.prototype.init=function(e,i,n,r,a,l,h){this.params=h,this.eGui=i,this.eCheckbox=n,this.eExpanded=r,this.eContracted=a,this.comp=e,this.compClass=l;var m=this.isTopLevelFooter(),v=this.isEmbeddedRowMismatch(),_=null==h.value,y=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var b=h.node;b.footer&&(y=(h.colDef&&h.colDef.showRowGroup)!==(b.rowGroupColumn&&b.rowGroupColumn.getColId()))}this.cellIsBlank=!m&&(v||_||y),!this.cellIsBlank&&(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,i=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){nn(n,!!i.expanded)};this.expandListener=this.addManagedListener(i,ot.EVENT_EXPANDED_CHANGED,r)||null,r()}else pd(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter()||null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e||!0===e.showRowGroup)return!0;var n=this.columnModel.getRowGroupColumns();return!n||0===n.length||n[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===N.PINNED_LEFT,i=this.params.pinned===N.PINNED_RIGHT,n=!e&&!i;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!i:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var n=i.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}z(this.displayedGroupNode)&&(this.displayedGroupNode=i)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,i=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var r=e.rowGroupColumn.getId();if(i.isRowGroupDisplayed(r))return void(this.showingValueForOpenedParent=!1)}var l=null!=e.groupData[i.getId()];this.showingValueForOpenedParent=l}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(e);this.comp.setInnerRenderer(i,e.valueFormatted??e.value)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!e)return this.params;if(null!=i&&!i.isRowGroupDisplayed(e.getId()))return this.params;var a=this.params,l=this.params,v=this.valueFormatterService.formatValue(e,l.node,l.value);return Qs(Qs({},a),{valueFormatted:v})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,i="";if(e){var n=Lt(this.params);n.value=this.params.value,"function"==typeof e?i=e(n):"string"==typeof e?i=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else i="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,i)},t.prototype.getInnerCompDetails=function(e){var i=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(v){return v&&v.componentClass==i.compClass};if(n&&!r(n))return n;var a=this.displayedGroupNode.rowGroupColumn,l=a?a.getColDef():void 0;if(l){var h=this.userComponentFactory.getCellRendererDetails(l,e);if(h&&!r(h))return h;if(r(h)&&l.cellRendererParams&&l.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(l.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,ot.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow();this.comp.setChildCount(i&&null!=e&&e>=0?"("+e+")":"")},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var i=this.params.column;return null==i||i.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,i=ei("groupExpanded",this.gridOptionsWrapper,null),n=ei("groupContracted",this.gridOptionsWrapper,null);i&&this.eExpanded.appendChild(i),n&&this.eContracted.appendChild(n);var r=e.eGridCell;!this.gridOptionsWrapper.isEnableGroupEdit()&&this.isExpandable()&&!e.suppressDoubleClickExpand&&this.addManagedListener(r,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,ot.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var a=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,ot.EVENT_ALL_CHILDREN_COUNT_CHANGED,a),this.addManagedListener(this.displayedGroupNode,ot.EVENT_MASTER_CHANGED,a),this.addManagedListener(this.displayedGroupNode,ot.EVENT_GROUP_CHANGED,a),this.addManagedListener(this.displayedGroupNode,ot.EVENT_HAS_CHILDREN_CHANGED,a)},t.prototype.onExpandClicked=function(e){at(e)||(Ke(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var i=this.displayedGroupNode,n=!i.expanded;!n&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(n,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||i)return!1;var r=this.params.column;return null==r||"string"!=typeof r.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,n=e.displayedGroupNode,r=e.columnModel,a=e.params.node,l=this.isExpandable();if(l){var h=!!this.showingValueForOpenedParent||a.expanded;this.comp.setExpandedDisplayed(h),this.comp.setContractedDisplayed(!h)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var m=r.isPivotMode(),v=m&&n.leafGroup,_=l&&!v,y=a.footer&&-1===a.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",_),this.comp.addOrRemoveCssClass("ag-row-group",_),m?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",v):y||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!_)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,ot.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,i=e.node,n=!!e.colDef,r=this.gridOptionsWrapper.isTreeData(),l=!n||r||!0===e.colDef.showRowGroup?i.uiLevel:0;e.padding>=0&&Ve(function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")},"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+l,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var i=new Zs(function(){return e.params.value},this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,i=this.displayedGroupNode,n=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(n){var r=new Ml;this.getContext().createBean(r),r.init({rowNode:i,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(r)})}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==ae.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)},t.prototype.onCellDblClicked=function(e){at(e)||kt(this.eExpanded,e)||kt(this.eContracted,e)||this.onExpandOrContract(e)},_r([w("expressionService")],t.prototype,"expressionService",void 0),_r([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),_r([w("columnModel")],t.prototype,"columnModel",void 0),_r([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),_r([w("gridOptions")],t.prototype,"gridOptions",void 0),_r([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(ve),Al=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ko=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},kd=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return Al(t,o),t.prototype.init=function(e){var i=this,n={setInnerRenderer:function(h,m){return i.setRenderDetails(h,m)},setChildCount:function(h){return i.eChildCount.innerHTML=h},addOrRemoveCssClass:function(h,m){return i.addOrRemoveCssClass(h,m)},setContractedDisplayed:function(h){return Ft(i.eContracted,h)},setExpandedDisplayed:function(h){return Ft(i.eExpanded,h)},setCheckboxVisible:function(h){return i.eCheckbox.classList.toggle("ag-invisible",!h)}},r=this.createManagedBean(new Rh),a=!e.colDef,l=this.getGui();r.init(n,l,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),a&&Ti(l,"gridcell")},t.prototype.setRenderDetails=function(e,i){var n=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then(function(a){if(a){var l=function(){return n.context.destroyBean(a)};n.isAlive()?(n.eValue.appendChild(a.getGui()),n.addDestroyFunc(l)):l()}})}else this.eValue.innerText=i},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),o.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='\n \n \n \n \n \n ',ko([le("eExpanded")],t.prototype,"eExpanded",void 0),ko([le("eContracted")],t.prototype,"eContracted",void 0),ko([le("eCheckbox")],t.prototype,"eCheckbox",void 0),ko([le("eValue")],t.prototype,"eValue",void 0),ko([le("eChildCount")],t.prototype,"eChildCount",void 0),t}(tt),Hd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vd=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yv=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return Hd(t,o),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=ei("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.TEMPLATE='
    \n \n \n
    ',Vd([le("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),Vd([le("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(tt),Pl=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Oh=function(o){function t(){return o.call(this)||this}return Pl(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=i.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',t}(tt),Bd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Wd=function(o){function t(){return o.call(this)||this}return Bd(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=i.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',t}(tt),yr=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Th=function(o){function t(){return o.call(this,'
    ')||this}return yr(t,o),t.prototype.init=function(e){var i=e.value;this.getGui().innerHTML=tn(i)},t}(Fo),Ud=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xs=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},jd=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:ph,agColumnHeader:pv,agColumnGroupHeader:Td,agSortIndicator:xl,agTextColumnFloatingFilter:gh,agNumberColumnFloatingFilter:mh,agDateColumnFloatingFilter:bl,agReadOnlyFloatingFilter:xd,agAnimateShowChangeCellRenderer:Id,agAnimateSlideCellRenderer:xh,agGroupCellRenderer:kd,agGroupRowRenderer:kd,agLoadingCellRenderer:yv,agCellEditor:Ad,agTextCellEditor:Ad,agSelectCellEditor:Dl,agPopupTextCellEditor:gv,agPopupSelectCellEditor:fv,agLargeTextCellEditor:Lo,agTextColumnFilter:eo,agNumberColumnFilter:zs,agDateColumnFilter:Cl,agLoadingOverlay:Oh,agNoRowsOverlay:Wd,agTooltipComponent:Th},e.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},e.jsComps={},e.fwComps={},e}return Ud(t,o),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Fe(this.gridOptions.components,function(i,n){return e.registerJsComponent(i,n)}),null!=this.gridOptions.frameworkComponents&&Fe(this.gridOptions.frameworkComponents,function(i,n){return e.registerFwComponent(i,n)})},t.prototype.registerDefaultComponent=function(e,i){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=i},t.prototype.registerJsComponent=function(e,i){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=i},t.prototype.registerFwComponent=function(e,i){Ve(function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")},"UserComponentRegistry.frameworkComponentsDeprecated");var r=this.translateIfDeprecated(e);this.fwComps[r]=i},t.prototype.retrieve=function(e){var i=this.translateIfDeprecated(e),n=function(v,_){return{componentFromFramework:_,component:v}},r=this.getFrameworkOverrides().frameworkComponent(i,this.gridOptions.components);if(null!=r)return n(r,!0);var a=this.fwComps[i];if(a)return n(a,!0);var l=this.jsComps[i];if(l)return n(l,this.getFrameworkOverrides().isFrameworkComponent(l));var m=this.agGridDefaults[i];return m?n(m,!1):(Object.keys(this.agGridDefaults).indexOf(i)<0&&console.warn("AG Grid: Looking for component ["+i+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var i=this.agDeprecatedNames[e];return null!=i?(Ve(function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+i.propertyHolder+":"+e+" to "+i.propertyHolder+":"+i.newComponentName)},"DEPRECATE_COMPONENT_"+e),i.newComponentName):e},Xs([w("gridOptions")],t.prototype,"gridOptions",void 0),Xs([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Xs([me],t.prototype,"init",null),Xs([be("userComponentRegistry")],t)}(ve),Dh={propertyName:"dateComponent",cellRenderer:!1},Mh={propertyName:"headerComponent",cellRenderer:!1},Il={propertyName:"headerGroupComponent",cellRenderer:!1},Fl={propertyName:"cellRenderer",cellRenderer:!0},Ah={propertyName:"cellEditor",cellRenderer:!1},Ll={propertyName:"innerRenderer",cellRenderer:!0},Ph={propertyName:"loadingOverlayComponent",cellRenderer:!1},zd={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ih={propertyName:"tooltipComponent",cellRenderer:!1},Js={propertyName:"filter",cellRenderer:!1},Fh={propertyName:"floatingFilterComponent",cellRenderer:!1},Yd={propertyName:"toolPanel",cellRenderer:!1},Cv={propertyName:"statusPanel",cellRenderer:!1},wv={propertyName:"fullWidthCellRenderer",cellRenderer:!0},bv={propertyName:"loadingCellRenderer",cellRenderer:!0},Lh={propertyName:"groupRowRenderer",cellRenderer:!0},Nh={propertyName:"detailCellRenderer",cellRenderer:!0},xv=function(){function o(){}return o.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},o.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},o}(),Gh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ho=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ev=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Gh(t,o),t.prototype.getHeaderCompDetails=function(e,i){return this.getCompDetails(e,Mh,"agColumnHeader",i)},t.prototype.getHeaderGroupCompDetails=function(e){var i=e.columnGroup.getColGroupDef();return this.getCompDetails(i,Il,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,wv,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,bv,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Lh,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Nh,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,i){return this.getCompDetails(e,Ll,null,i)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,i){return this.getCompDetails(e,Ll,null,i)},t.prototype.getCellRendererDetails=function(e,i){return this.getCompDetails(e,Fl,null,i)},t.prototype.getCellEditorDetails=function(e,i){return this.getCompDetails(e,Ah,"agCellEditor",i,!0)},t.prototype.getFilterDetails=function(e,i,n){return this.getCompDetails(e,Js,n,i,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Dh,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ph,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,zd,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ih,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,i){return this.getCompDetails(e,Fl,null,i)},t.prototype.getFloatingFilterCompDetails=function(e,i,n){return this.getCompDetails(e,Fh,n,i)},t.prototype.getToolPanelCompDetails=function(e,i){return this.getCompDetails(e,Yd,null,i,!0)},t.prototype.getStatusPanelCompDetails=function(e,i){return this.getCompDetails(e,Cv,null,i,!0)},t.prototype.getCompDetails=function(e,i,n,r,a){var l=this;void 0===a&&(a=!1);var h=i.propertyName,m=i.cellRenderer,v=this.getCompKeys(e,i,r),_=v.compName,y=v.jsComp,b=v.fwComp,R=v.paramsFromSelector,P=v.popupFromSelector,H=v.popupPositionFromSelector,te=function(Oe){var Qe=l.userComponentRegistry.retrieve(Oe);Qe&&(y=Qe.componentFromFramework?void 0:Qe.component,b=Qe.componentFromFramework?Qe.component:void 0)};if(null!=_&&te(_),null==y&&null==b&&null!=n&&te(n),y&&m&&!this.agComponentUtils.doesImplementIComponent(y)&&(y=this.agComponentUtils.adaptFunction(h,y)),y||b){var X=this.mergeParamsWithApplicationProvidedParams(e,i,r,R),fe=null==y,ge=y||b;return{componentFromFramework:fe,componentClass:ge,params:X,type:i,popupFromSelector:P,popupPositionFromSelector:H,newAgStackInstance:function(){return l.newAgStackInstance(ge,fe,X,i)}}}a&&console.error("Could not find component "+_+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,i,n){var l,h,m,v,_,y,r=this,a=i.propertyName;if(e){var b=e,R=b[a+"Selector"],P=R?R(n):null,H=function(X,fe){var ge=function(){var Qe="AG Grid: As of v27, the property "+a+"Framework is deprecated. The property "+a+" can now be used for JavaScript AND Framework Components.";Ve(function(){return console.warn(Qe)},"UserComponentFactory."+a+"FrameworkDeprecated")};"string"==typeof X?l=X:"string"==typeof fe?(ge(),l=fe):null!=X&&!0!==X?r.getFrameworkOverrides().isFrameworkComponent(X)?m=X:h=X:null!=fe&&(ge(),m=fe)};if(P){if(null!=P.frameworkComponent){var te="AG Grid: As of v27, the return for "+a+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";Ve(function(){return console.warn(te)},"UserComponentFactory."+a+"FrameworkSelectorDeprecated"),H(P.frameworkComponent,void 0)}else H(P.component,void 0);v=P.params,_=P.popup,y=P.popupPosition}else H(b[a],b[a+"Framework"])}return{compName:l,jsComp:h,fwComp:m,paramsFromSelector:v,popupFromSelector:_,popupPositionFromSelector:y}},t.prototype.newAgStackInstance=function(e,i,n,r){var h;if(i){var m=this.componentMetadataProvider.retrieve(r.propertyName);h=this.frameworkComponentWrapper.wrap(e,m.mandatoryMethodList,m.optionalMethodList,r)}else h=new e;var v=this.initComponent(h,n);return null==v?xi.resolve(h):v.then(function(){return h})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,i,n,r){void 0===r&&(r=null);var a={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};Ze(a,n);var h=e&&e[i.propertyName+"Params"];return"function"==typeof h?Ze(a,h(n)):"object"==typeof h&&Ze(a,h),Ze(a,r),a},t.prototype.initComponent=function(e,i){if(this.context.createBean(e),null!=e.init)return e.init(i)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var i=null,n=this.getCompKeys(e,Js),r=n.compName,a=n.jsComp,l=n.fwComp;return r?i=xv.getFloatingFilterType(r):null==a&&null==l&&!0===e.filter&&(i=Z.isRegistered(Le.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),i},Ho([w("gridOptions")],t.prototype,"gridOptions",void 0),Ho([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Ho([w("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Ho([w("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Ho([st("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),Ho([be("userComponentFactory")],t)}(ve),Vo=(()=>(function(o){o[o.SINGLE_SHEET=0]="SINGLE_SHEET",o[o.MULTI_SHEET=1]="MULTI_SHEET"}(Vo||(Vo={})),Vo))(),Sv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ea=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Rv=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return Sv(t,o),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var i=e.dragSource.eElement;i.removeEventListener("mousedown",e.mouseDownListener),e.touchEnabled&&i.removeEventListener("touchstart",e.touchStartListener,{passive:!0})},t.prototype.removeDragSource=function(e){var i=this.dragSources.find(function(n){return n.dragSource===e});!i||(this.removeListener(i),Ae(this.dragSources,i))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,i){var n=this;void 0===i&&(i=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",r);var a=null,l=this.gridOptionsWrapper.isSuppressTouch();i&&!l&&e.eElement.addEventListener("touchstart",a=function(h){Za(h.target)||(h.cancelable&&h.preventDefault(),n.onTouchStart(e,h))},{passive:!1}),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:a,touchEnabled:i})},t.prototype.onTouchStart=function(e,i){var n=this;this.currentDragParams=e,this.dragging=!1;var r=i.touches[0];this.touchLastTime=r,this.touchStart=r;var l=function(_){return n.onTouchUp(_,e.eElement)},m=i.target,v=[{target:document,type:"touchmove",listener:function(_){_.cancelable&&_.preventDefault()},options:{passive:!1}},{target:m,type:"touchmove",listener:function(_){return n.onTouchMove(_,e.eElement)},options:{passive:!0}},{target:m,type:"touchend",listener:l,options:{passive:!0}},{target:m,type:"touchcancel",listener:l,options:{passive:!0}}];this.addTemporaryEvents(v),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,i){var n=this,r=i;if(!(e.skipMouseEvent&&e.skipMouseEvent(i)||r._alreadyProcessedByDragService||(r._alreadyProcessedByDragService=!0,0!==i.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=i;var a=this.gridOptionsWrapper.getDocument();this.addTemporaryEvents([{target:a,type:"mousemove",listener:function(y){return n.onMouseMove(y,e.eElement)}},{target:a,type:"mouseup",listener:function(y){return n.onMouseUp(y,e.eElement)}},{target:a,type:"contextmenu",listener:function(y){return y.preventDefault()}}]),0===e.dragStartPixels&&this.onMouseMove(i,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(i){i.target.addEventListener(i.type,i.listener,i.options)}),this.dragEndFunctions.push(function(){e.forEach(function(i){i.target.removeEventListener(i.type,i.listener,i.options)})})},t.prototype.isEventNearStartEvent=function(e,i){var n=this.currentDragParams.dragStartPixels;return Ps(e,i,L(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var i=0;i=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},kh=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.allColumnFilters=new Map,i.activeAggregateFilters=[],i.activeColumnFilters=[],i.quickFilter=null,i.quickFilterParts=null,i.processingFilterChange=!1,i}var e;return Ov(t,o),e=t,t.prototype.init=function(){var i=this;this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,function(){return i.onColumnsChanged()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_VALUE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(i){var n=this,r=[],a=this.getFilterModel();if(i){var l=cl(Object.keys(i));this.allColumnFilters.forEach(function(h,m){r.push(n.setModelOnFilterWrapper(h.filterPromise,i[m])),l.delete(m)}),l.forEach(function(h){var m=n.columnModel.getPrimaryColumn(h)||n.columnModel.getGridColumn(h);if(m)if(m.isFilterAllowed()){var v=n.getOrCreateFilterWrapper(m,"NO_UI");v?r.push(n.setModelOnFilterWrapper(v.filterPromise,i[h])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+h)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+h);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+h)})}else this.allColumnFilters.forEach(function(h){r.push(n.setModelOnFilterWrapper(h.filterPromise,null))});xi.all(r).then(function(){var h=n.getFilterModel(),m=[];n.allColumnFilters.forEach(function(v,_){Ne.jsonEquals(a?a[_]:null,h?h[_]:null)||m.push(v.column)}),m.length>0&&n.onFilterChanged({columns:m})})},t.prototype.setModelOnFilterWrapper=function(i,n){return new xi(function(r){i.then(function(a){"function"!=typeof a.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),r()),(a.setModel(n)||xi.resolve()).then(function(){return r()})})})},t.prototype.getFilterModel=function(){var i={};return this.allColumnFilters.forEach(function(n,r){var l=n.filterPromise.resolveNow(null,function(m){return m});if(null==l)return null;if("function"==typeof l.getModel){var h=l.getModel();L(h)&&(i[r]=h)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")}),i},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.doAggregateFiltersPass=function(i,n){return this.doColumnFiltersPass(i,n,!0)},t.prototype.updateActiveFilters=function(){var i=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var n=function(l){return!!l&&(l.isFilterActive?l.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},r=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach(function(l){if(l.filterPromise.resolveNow(!1,n)){var h=l.filterPromise.resolveNow(null,function(m){return m});!function(l){if(!l.isPrimary())return!0;var m=!i.columnModel.isPivotActive();return!(!l.isValueActive()||!m)&&(!!i.columnModel.isPivotMode()||r)}(l.column)?i.activeColumnFilters.push(h):i.activeAggregateFilters.push(h)}})},t.prototype.updateFilterFlagInColumns=function(i,n){this.allColumnFilters.forEach(function(r){var a=r.filterPromise.resolveNow(!1,function(l){return l.isFilterActive()});r.column.setFilterActive(a,i,n)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(i,n,r){for(var h=r?this.activeAggregateFilters:this.activeColumnFilters,m=r?i.aggData:i.data,v=0;v=0})},t.prototype.doesRowPassQuickFilterCache=function(i,n){return i.quickFilterAggregateText||this.aggregateRowForQuickFilter(i),i.quickFilterAggregateText.indexOf(n)>=0},t.prototype.doesRowPassQuickFilter=function(i){var n=this,r=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every(function(a){return r?n.doesRowPassQuickFilterCache(i,a):n.doesRowPassQuickFilterNoCache(i,a)})},t.prototype.doesRowPassAggregateFilters=function(i){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(i.rowNode,i.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(i){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(i.rowNode)||this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(i.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(i.rowNode,i.filterInstanceToSkip))},t.prototype.getQuickFilterTextForColumn=function(i,n){var r=this.valueService.getValue(i,n,!0),a=i.getColDef();if(a.getQuickFilterText){var l={value:r,node:n,data:n.data,column:i,colDef:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};r=a.getQuickFilterText(l)}return L(r)?r.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(i){var n=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach(function(l){var h=n.getQuickFilterTextForColumn(l,i);L(h)&&r.push(h)}),i.quickFilterAggregateText=r.join(e.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(i){this.allColumnFilters.forEach(function(n){n.filterPromise.then(function(r){r.onNewRowsLoaded&&r.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(i),this.updateActiveFilters()},t.prototype.createValueGetter=function(i){var n=this;return function(r){return n.valueService.getValue(i,r.node,!0)}},t.prototype.getFilterComponent=function(i,n,r){var a;if(void 0===r&&(r=!0),r)return(null===(a=this.getOrCreateFilterWrapper(i,n))||void 0===a?void 0:a.filterPromise)||null;var l=this.cachedFilter(i);return l?l.filterPromise:null},t.prototype.isFilterActive=function(i){var n=this.cachedFilter(i);return!!n&&n.filterPromise.resolveNow(!1,function(r){return r.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(i,n){if(!i.isFilterAllowed())return null;var r=this.cachedFilter(i);return r?"NO_UI"!==n&&this.putIntoGui(r,n):(r=this.createFilterWrapper(i,n),this.allColumnFilters.set(i.getColId(),r)),r},t.prototype.cachedFilter=function(i){return this.allColumnFilters.get(i.getColId())},t.prototype.createFilterInstance=function(i){var l,n=this,r=Z.isRegistered(Le.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",a=i.getColDef(),h=ta(ta({},this.createFilterParams(i,a)),{filterModifiedCallback:function(){n.eventService.dispatchEvent({type:S.EVENT_FILTER_MODIFIED,column:i,filterInstance:l})},filterChangedCallback:function(_){n.callOnFilterChangedOutsideRenderCycle({filterInstance:l,additionalEventAttributes:_,columns:[i]})},doesRowPassOtherFilter:function(_){return n.doesRowPassOtherFilters(l,_)}}),m=this.userComponentFactory.getFilterDetails(a,h,r);if(!m)return null;var v=m.newAgStackInstance();return v&&v.then(function(_){return l=_}),v},t.prototype.createFilterParams=function(i,n){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:i,colDef:Lt(n),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(i),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},t.prototype.createFilterWrapper=function(i,n){var r={column:i,filterPromise:null,compiledElement:null,guiPromise:xi.resolve(null)};return r.filterPromise=this.createFilterInstance(i),r.filterPromise&&this.putIntoGui(r,n),r},t.prototype.putIntoGui=function(i,n){var r=this,a=document.createElement("div");a.className="ag-filter",i.guiPromise=new xi(function(l){i.filterPromise.then(function(h){var m=h.getGui();L(m)||console.warn("AG Grid: getGui method from filter returned "+m+", it should be a DOM element or an HTML template string."),"string"==typeof m&&(m=_i(m)),a.appendChild(m),l(a),r.eventService.dispatchEvent({type:S.EVENT_FILTER_OPENED,column:i.column,source:n,eGui:a})})})},t.prototype.onColumnsChanged=function(){var i=this,n=[];this.allColumnFilters.forEach(function(r,a){!(r.column.isPrimary()?i.columnModel.getPrimaryColumn(a):i.columnModel.getGridColumn(a))&&(n.push(r.column),i.disposeFilterWrapper(r,"filterDestroyed"))}),n.length>0&&this.onFilterChanged({columns:n})},t.prototype.destroyFilter=function(i,n){void 0===n&&(n="api");var r=this.allColumnFilters.get(i.getColId());r&&(this.disposeFilterWrapper(r,n),this.onFilterChanged({columns:[i]}))},t.prototype.disposeFilterWrapper=function(i,n){var r=this;i.filterPromise.then(function(a){(a.setModel(null)||xi.resolve()).then(function(){r.getContext().destroyBean(a),i.column.setFilterActive(!1,n),r.allColumnFilters.delete(i.column.getColId())})})},t.prototype.destroy=function(){var i=this;o.prototype.destroy.call(this),this.allColumnFilters.forEach(function(n){return i.disposeFilterWrapper(n,"filterDestroyed")})},t.QUICK_FILTER_SEPARATOR="\n",ir([w("valueService")],t.prototype,"valueService",void 0),ir([w("columnModel")],t.prototype,"columnModel",void 0),ir([w("rowModel")],t.prototype,"rowModel",void 0),ir([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ir([w("rowRenderer")],t.prototype,"rowRenderer",void 0),ir([me],t.prototype,"init",null),ir([Et],t.prototype,"destroy",null),e=ir([be("filterManager")],t)}(ve),Tv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kd=function(o){function t(e,i){var n=o.call(this,e)||this;return n.ctrl=i,n}return Tv(t,o),t.prototype.getCtrl=function(){return this.ctrl},t}(tt),Dv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ia=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Hh=function(o){function t(e){return o.call(this,t.TEMPLATE,e)||this}return Dv(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(r,a){return e.addOrRemoveCssClass(r,a)},addOrRemoveBodyCssClass:function(r,a){return e.eFloatingFilterBody.classList.toggle(r,a)},addOrRemoveButtonWrapperCssClass:function(r,a){return e.eButtonWrapper.classList.toggle(r,a)},setCompDetails:function(r){return e.setCompDetails(r)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(r){return i.style.width=r},setMenuIcon:function(r){return e.eButtonShowMainFilter.appendChild(r)}},i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var i=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(n){return i.afterCompCreated(n)})},t.prototype.afterCompCreated=function(e){var i=this;!e||(this.addDestroyFunc(function(){return i.context.destroyBean(e)}),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='
    \n
    \n \n
    ',ia([le("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ia([le("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ia([le("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ia([me],t.prototype,"postConstruct",null),t}(Kd),Vh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$d=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},ii=(()=>(function(o){o.AUTO_HEIGHT="ag-layout-auto-height",o.NORMAL="ag-layout-normal",o.PRINT="ag-layout-print"}(ii||(ii={})),ii))(),Nl=function(o){function t(e){var i=o.call(this)||this;return i.view=e,i}return Vh(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,we.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),i={autoHeight:e===N.DOM_LAYOUT_AUTO_HEIGHT,normal:e===N.DOM_LAYOUT_NORMAL,print:e===N.DOM_LAYOUT_PRINT};this.view.updateLayoutClasses(i.autoHeight?ii.AUTO_HEIGHT:i.print?ii.PRINT:ii.NORMAL,i)},$d([w("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),$d([me],t.prototype,"postConstruct",null),t}(ve),Bh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Wh=function(o){function t(e){var i=o.call(this)||this;return i.scrollLeft=-1,i.nextScrollTop=-1,i.scrollTop=-1,i.eBodyViewport=e,i.resetLastHorizontalScrollElementDebounced=Te(i.resetLastHorizontalScrollElement.bind(i),500),i}return Bh(t,o),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(i){e.centerRowContainerCtrl=i.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var i=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Te(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(null!=this.centerRowContainerCtrl){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var n=this.enableRtl?e:-e,r=this.ctrlsService.getTopCenterRowContainerCtrl(),a=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),l=this.ctrlsService.getBottomCenterRowContainerCtrl(),h=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(n),l.setContainerTranslateX(n),r.setContainerTranslateX(n),a.setContainerTranslateX(n);var v=this.centerRowContainerCtrl.getViewportElement();xo(this.lastHorizontalScrollElement===v?h.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();!this.isControllingScroll(e)||this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();!this.isControllingScroll(e)||this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var i=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",i.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(ur(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var n=ur(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===n||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var i=this,n={type:S.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var r=Object.assign({},n,{type:S.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(r)},100)},t.prototype.shouldBlockScrollUpdate=function(e,i,n){if(void 0===n&&(n=!1),n&&!Kn())return!1;if("vertical"===e){var r=Br(this.eBodyViewport);if(i<0||i+r>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===e){var l=this.centerRowContainerCtrl.getCenterWidth(),h=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Wr()){if(i>0)return!0}else if(i<0)return!0;if(Math.abs(i)+l>h)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var n=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Wr()?e>0?0:n:Math.min(Math.max(e,0),n)),xo(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,i){void 0===i&&(i=null);for(var n=this.rowModel.getRowCount(),r=-1,a=0;a=0&&this.ensureIndexVisible(r,i)},t.prototype.ensureIndexVisible=function(e,i){if(this.gridOptionsWrapper.getDomLayout()!==N.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)return void console.warn("invalid row index for ensureIndexVisible: "+e);this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var v,h=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),m=this.paginationProxy.getRow(e);do{var _=m.rowTop,y=m.rowHeight,b=this.paginationProxy.getPixelOffset(),R=m.rowTop-b,P=R+m.rowHeight,H=this.getVScrollPosition(),te=this.heightScaler.getDivStretchOffset(),X=H.top+te,fe=H.bottom+te,ge=fe-X,Oe=this.heightScaler.getScrollPositionForPixel(R),Qe=this.heightScaler.getScrollPositionForPixel(P-ge),et=Math.min((Oe+Qe)/2,R),ct=null;"top"===i?ct=Oe:"bottom"===i?ct=Qe:"middle"===i?ct=et:X+h>R?ct=Oe-h:feh:rl}},t.prototype.getColumnBounds=function(e){var i=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),a=e.getLeft(),l=i?-1:1,h=i?n-a:a;return{colLeft:h,colMiddle:h+r/2*l,colRight:h+r*l}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:i,end:e+i,width:e}},nr([w("ctrlsService")],t.prototype,"ctrlsService",void 0),nr([w("animationFrameService")],t.prototype,"animationFrameService",void 0),nr([w("paginationProxy")],t.prototype,"paginationProxy",void 0),nr([w("rowModel")],t.prototype,"rowModel",void 0),nr([w("rowContainerHeightService")],t.prototype,"heightScaler",void 0),nr([w("rowRenderer")],t.prototype,"rowRenderer",void 0),nr([w("columnModel")],t.prototype,"columnModel",void 0),nr([me],t.prototype,"postConstruct",null),t}(ve),Uh=function(){function o(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return o.prototype.check=function(t,e){void 0===e&&(e=!1);var i=e||this.shouldSkipVerticalScroll();if(!i||!this.shouldSkipHorizontalScroll()){var n=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=t.clientXn.right-r,this.tickUp=t.clientYn.bottom-r&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},o.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},o.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var i=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(i-t),this.tickRight&&this.setHorizontalPosition(i+t)}this.onScrollCallback&&this.onScrollCallback()},o.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},o}(),jh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Gl=function(){return Gl=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},zh=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},Mv=function(o){function t(e){var i=o.call(this)||this;return i.isMultiRowDrag=!1,i.isGridSorted=!1,i.isGridFiltered=!1,i.isRowGroupActive=!1,i.eContainer=e,i}return jh(t,o),t.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var i=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_MODEL_UPDATED,function(){i()}),i(),this.ctrlsService.whenReady(function(){var n=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Uh({scrollContainer:n.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return n.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(r){return n.getScrollFeature().setVerticalScrollPosition(r)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!de(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===Ei.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?si.ICON_NOT_ALLOWED:si.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var i=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),r=function(){for(var o=[],t=0;tthis.paginationProxy.getCurrentPageHeight()||(a=this.rowModel.getRowIndexAtPixel(n),l=this.rowModel.getRow(a)),i.vDirection){case tr.Down:h="down";break;case tr.Up:h="up";break;default:h=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:a,overNode:l,y:n,vDirection:h}},t.prototype.dispatchGridEvent=function(e,i){var n=this.draggingToRowDragEvent(e,i);this.eventService.dispatchEvent(n)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(S.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(S.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(i){i.setDragging(!1)})},$i([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$i([w("rowModel")],t.prototype,"rowModel",void 0),$i([w("paginationProxy")],t.prototype,"paginationProxy",void 0),$i([w("columnModel")],t.prototype,"columnModel",void 0),$i([w("focusService")],t.prototype,"focusService",void 0),$i([w("sortController")],t.prototype,"sortController",void 0),$i([w("filterManager")],t.prototype,"filterManager",void 0),$i([w("selectionService")],t.prototype,"selectionService",void 0),$i([w("mouseEventService")],t.prototype,"mouseEventService",void 0),$i([w("ctrlsService")],t.prototype,"ctrlsService",void 0),$i([st("rangeService")],t.prototype,"rangeService",void 0),$i([me],t.prototype,"postConstruct",null),t}(ve),Zd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),sn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Cr=(()=>(function(o){o.ANIMATION_ON="ag-row-animation",o.ANIMATION_OFF="ag-row-no-animation"}(Cr||(Cr={})),Cr))(),na="ag-selectable",kl="ag-force-vertical-scroll",Kh="ag-column-moving",Av=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return Zd(t,o),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,i,n,r,a,l){this.comp=e,this.eGridBody=i,this.eBodyViewport=n,this.eTop=r,this.eBottom=a,this.eStickyTop=l,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new Nl(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Wh(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,a,l]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var i=this;e.forEach(function(n){i.addManagedListener(n,"focusin",function(r){var l=$n(r.target,"ag-root",n);n.classList.toggle("ag-has-focus",!l)}),i.addManagedListener(n,"focusout",function(r){var a=r.target,l=r.relatedTarget,h=n.contains(l),m=$n(l,"ag-root",n);$n(a,"ag-root",n)||(!h||m)&&n.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?Kh:null,e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.comp.setCellSelectableCss(e?na:null,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var i=function(r){var a=r.relatedTarget;if(null!==vs(a)){var l=n.some(function(m){return m.contains(a)})&&e.mouseEventService.isElementInThisGrid(a);if(!l){var h=e.popupService;l=h.getActivePopups().some(function(m){return m.contains(a)})||h.isElementWithinCustomPopup(a)}l||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach(function(r){return e.addManagedListener(r,"focusout",i)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===i?-1:e+i)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){this.comp.setPinnedTopBottomOverflowY(e?"scroll":"hidden")},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),i=e?kl:null,n=this.gridOptionsWrapper.getDomLayout()===N.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(i,e),e||n&&nd(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,i=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching();e.comp.setRowAnimationCssOnBodyViewport(n?Cr.ANIMATION_ON:Cr.ANIMATION_OFF,n)};i(),this.addManagedListener(this.eventService,S.EVENT_HEIGHT_SCALE_CHANGED,i)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,i=function(n,r,a){if(n||a){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&(n||a).preventDefault();var h=(n||r).target;(h===e.eBodyViewport||h===e.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&e.contextMenuFactory&&(n?e.contextMenuFactory.onContextMenu(n,null,null,null,null,e.eGridBody):a&&e.contextMenuFactory.onContextMenu(null,a,null,null,null,e.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",i),this.mockContextMenuForIPad(i),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},t.prototype.mockContextMenuForIPad=function(e){if(Kn()){var i=new ki(this.eBodyViewport);this.addManagedListener(i,ki.EVENT_LONG_TAP,function(r){e(void 0,r.touchStart,r.touchEvent)}),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.onBodyViewportWheel=function(e){!this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()||this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+e),this.eBodyViewport.scrollTop-i},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Mv(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,i=e.getPinnedTopTotalHeight();i&&(i+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(i),this.comp.setBottomHeight(n),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var i=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+i+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var i=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),n=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;i>0&&(r+=i+1),n>0&&(r+=n+1),this.comp.setStickyTopTop(r+"px")},t.prototype.sizeColumnsToFit=function(e,i){var n=this,a=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,h=ws(this.eBodyViewport)-a;h>0?this.columnModel.sizeColumnsToFit(h,"sizeColumnsToFit",!1,e):void 0===i?window.setTimeout(function(){n.sizeColumnsToFit(e,100)},0):100===i?window.setTimeout(function(){n.sizeColumnsToFit(e,500)},100):500===i?window.setTimeout(function(){n.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},sn([w("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),sn([w("ctrlsService")],t.prototype,"ctrlsService",void 0),sn([w("columnModel")],t.prototype,"columnModel",void 0),sn([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),sn([st("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),sn([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),sn([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),sn([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),sn([w("rowRenderer")],t.prototype,"rowRenderer",void 0),sn([w("popupService")],t.prototype,"popupService",void 0),sn([w("mouseEventService")],t.prototype,"mouseEventService",void 0),sn([w("rowModel")],t.prototype,"rowModel",void 0),t}(ve),Bo=(()=>(function(o){o[o.FILL=0]="FILL",o[o.RANGE=1]="RANGE"}(Bo||(Bo={})),Bo))(),io=(()=>(function(o){o[o.VALUE=0]="VALUE",o[o.DIMENSION=1]="DIMENSION"}(io||(io={})),io))(),ra="ag-cell-range-selected",Fv=function(){function o(t,e){this.beans=t,this.cellCtrl=e}return o.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},o.prototype.onRangeSelectionChanged=function(){!this.cellComp||(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(ra,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(ra+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(ra+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(ra+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(ra+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),Do(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},o.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),n=!e&&t.right,r=!e&&t.bottom,a=!e&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!e&&t.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",a)},o.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},o.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(i){return Mt([io.DIMENSION,io.VALUE],i.type)})},o.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},o.prototype.getRangeBorders=function(){var _,y,t=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),i=!1,n=!1,r=!1,a=!1,l=this.cellCtrl.getCellPosition().column,h=this.beans,m=h.rangeService,v=h.columnModel;e?(_=v.getDisplayedColAfter(l),y=v.getDisplayedColBefore(l)):(_=v.getDisplayedColBefore(l),y=v.getDisplayedColAfter(l));var b=m.getCellRanges().filter(function(X){return m.isCellInSpecificRange(t.cellCtrl.getCellPosition(),X)});_||(a=!0),y||(n=!0);for(var R=0;R=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Jd=function(){function o(){}return o.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},it([w("resizeObserverService")],o.prototype,"resizeObserverService",void 0),it([w("paginationProxy")],o.prototype,"paginationProxy",void 0),it([w("context")],o.prototype,"context",void 0),it([w("columnApi")],o.prototype,"columnApi",void 0),it([w("gridApi")],o.prototype,"gridApi",void 0),it([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),it([w("expressionService")],o.prototype,"expressionService",void 0),it([w("rowRenderer")],o.prototype,"rowRenderer",void 0),it([w("templateService")],o.prototype,"templateService",void 0),it([w("valueService")],o.prototype,"valueService",void 0),it([w("eventService")],o.prototype,"eventService",void 0),it([w("columnModel")],o.prototype,"columnModel",void 0),it([w("headerNavigationService")],o.prototype,"headerNavigationService",void 0),it([w("navigationService")],o.prototype,"navigationService",void 0),it([w("columnAnimationService")],o.prototype,"columnAnimationService",void 0),it([st("rangeService")],o.prototype,"rangeService",void 0),it([w("focusService")],o.prototype,"focusService",void 0),it([st("contextMenuFactory")],o.prototype,"contextMenuFactory",void 0),it([w("popupService")],o.prototype,"popupService",void 0),it([w("valueFormatterService")],o.prototype,"valueFormatterService",void 0),it([w("stylingService")],o.prototype,"stylingService",void 0),it([w("columnHoverService")],o.prototype,"columnHoverService",void 0),it([w("userComponentFactory")],o.prototype,"userComponentFactory",void 0),it([w("userComponentRegistry")],o.prototype,"userComponentRegistry",void 0),it([w("animationFrameService")],o.prototype,"animationFrameService",void 0),it([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),it([w("sortController")],o.prototype,"sortController",void 0),it([w("filterManager")],o.prototype,"filterManager",void 0),it([w("rowContainerHeightService")],o.prototype,"rowContainerHeightService",void 0),it([w("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),it([w("cellPositionUtils")],o.prototype,"cellPositionUtils",void 0),it([w("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),it([w("selectionService")],o.prototype,"selectionService",void 0),it([st("selectionHandleFactory")],o.prototype,"selectionHandleFactory",void 0),it([w("rowCssClassCalculator")],o.prototype,"rowCssClassCalculator",void 0),it([w("rowModel")],o.prototype,"rowModel",void 0),it([w("ctrlsService")],o.prototype,"ctrlsService",void 0),it([w("ctrlsFactory")],o.prototype,"ctrlsFactory",void 0),it([w("agStackComponentsRegistry")],o.prototype,"agStackComponentsRegistry",void 0),it([w("valueCache")],o.prototype,"valueCache",void 0),it([w("rowNodeEventThrottle")],o.prototype,"rowNodeEventThrottle",void 0),it([me],o.prototype,"postConstruct",null),it([be("beans")],o)}(),nf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),rf=function(o){function t(e,i,n){var r=o.call(this)||this;return r.cellCtrl=e,r.beans=i,r.column=n,r}return nf(t,o),t.prototype.onMouseEvent=function(e,i){if(!at(i))switch(e){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var i=this.beans,n=i.eventService,r=i.rangeService,a=i.gridOptionsWrapper;r&&(e.ctrlKey||e.metaKey)&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var h=this.cellCtrl.createEvent(e,S.EVENT_CELL_CLICKED);n.dispatchEvent(h);var m=this.column.getColDef();m.onCellClicked&&window.setTimeout(function(){return m.onCellClicked(h)},0),(a.isSingleClickEdit()||m.singleClickEdit)&&!a.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Kn()||Jt("dblclick"))return!1;var e=(new Date).getTime(),i=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,i},t.prototype.onCellDoubleClicked=function(e){var i=this.column.getColDef(),n=this.cellCtrl.createEvent(e,S.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof i.onCellDoubleClicked&&window.setTimeout(function(){return i.onCellDoubleClicked(n)},0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var i=e.ctrlKey,n=e.metaKey,r=e.shiftKey,a=e.target,l=this.beans,h=l.eventService,m=l.rangeService;if(!this.isRightClickInExistingRange(e)){var v=m&&0!=m.getCellRanges().length;if(!r||!v){var _=(kr()||Yn())&&!this.cellCtrl.isEditing()&&!Za(a);this.cellCtrl.focusCell(_)}if(r&&v&&e.preventDefault(),!this.containsWidget(a)){if(m){var y=this.cellCtrl.getCellPosition();r?m.extendLatestRangeToCell(y):m.setRangeToCell(y,i||n)}h.dispatchEvent(this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var i=this.beans.rangeService;return!(!i||!i.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==e.button)},t.prototype.containsWidget=function(e){return $n(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var i=this.cellCtrl.getGui(),n=i.contains(e.target),r=i.contains(e.relatedTarget);return n&&r},t.prototype.destroy=function(){},t}(Jd),sf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Lv=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.cellCtrl=e,l.beans=i,l.rowNode=r,l.rowCtrl=a,l}return sf(t,o),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var i=e.key;switch(i){case ae.ENTER:this.onEnterKeyDown(e);break;case ae.F2:this.onF2KeyDown(e);break;case ae.ESCAPE:this.onEscapeKeyDown(e);break;case ae.TAB:this.onTabKeyDown(e);break;case ae.BACKSPACE:case ae.DELETE:this.onBackspaceOrDeleteKeyPressed(i,e);break;case ae.DOWN:case ae.UP:case ae.RIGHT:case ae.LEFT:this.onNavigationKeyPressed(e,i)}},t.prototype.onNavigationKeyPressed=function(e,i){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,i,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(e);i&&this.beans.navigationService.ensureCellVisible(i)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,i){var n=this,r=n.cellCtrl,a=n.beans,l=n.rowNode,h=a.gridOptionsWrapper,m=a.rangeService,v=a.eventService;r.isEditing()||(v.dispatchEvent({type:S.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Yi(e,h.isEnableCellEditingOnBackspace())?m&&h.isEnableRangeSelection()?m.clearCellRangeCellValues():r.isCellEditable()&&l.setDataValue(r.getColumn(),null,"cellKeyboardListenerFeature"):r.startRowOrCellEdit(e,void 0,i),v.dispatchEvent({type:S.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,ae.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(ae.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(ae.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(e.target===this.eGui&&!this.cellCtrl.isEditing()){var r=String.fromCharCode(e.charCode);" "===r?this.onSpaceKeyPressed(e):gd(e)&&(this.cellCtrl.startRowOrCellEdit(null,r,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var i=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var n=this.rowNode.isSelected(),r=!n;if(r||!i.isSuppressRowDeselection()){var a=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),l=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:a});void 0===n&&0===l&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:a})}}e.preventDefault()},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}(ve),eu=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nv=function(o){function t(e,i,n,r){var a=o.call(this,'
    ')||this;return a.rowNode=e,a.column=i,a.beans=n,a.eCell=r,a}return eu(t,o),t.prototype.postConstruct=function(){this.getGui().appendChild(ei("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",function(i){i.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var i=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var l=JSON.stringify(i.rowNode.data);e.dataTransfer.setData("application/json",l),e.dataTransfer.setData("text/plain",l)}catch{}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([me],t.prototype,"postConstruct",null),t}(tt),af=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),oa=function(){return oa=Object.assign||function(o){for(var t,e=1,i=arguments.length;e0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},Hi=(()=>(function(o){o.Normal="Normal",o.FullWidth="FullWidth",o.FullWidthLoading="FullWidthLoading",o.FullWidthGroup="FullWidthGroup",o.FullWidthDetail="FullWidthDetail"}(Hi||(Hi={})),Hi))(),jv=0,no=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.allRowGuis=[],l.active=!0,l.centerCellCtrls={list:[],map:{}},l.leftCellCtrls={list:[],map:{}},l.rightCellCtrls={list:[],map:{}},l.lastMouseDownOnDragger=!1,l.updateColumnListsPending=!1,l.beans=i,l.rowNode=e,l.paginationPage=l.beans.paginationProxy.getCurrentPage(),l.useAnimationFrameForCreate=r,l.printLayout=a,l.instanceId=e.id+"-"+jv++,l.setAnimateFlags(n),l.rowFocused=l.beans.focusService.isRowFocused(l.rowNode.rowIndex,l.rowNode.rowPinned),l.rowLevel=l.beans.rowCssClassCalculator.calculateRowLevel(l.rowNode),l.setRowType(),l.addListeners(),l}return ff(t,o),t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,i,n){var r={rowComp:e,element:i,containerType:n};this.allRowGuis.push(r),n===Vi.LEFT?this.leftGui=r:n===Vi.RIGHT?this.rightGui=r:n===Vi.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r,(null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui||null!=this.fullWidthGui)&&this.initialiseRowComps(),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.isCacheable=function(){return this.rowType===Hi.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},t.prototype.setCached=function(e){var i=e?"none":"";this.allRowGuis.forEach(function(n){return n.element.style.display=i})},t.prototype.initialiseRowComps=function(){var e=this,i=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),i.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&Ce(this.onTopChanged.bind(this)),this.fadeRowIn&&Ce(function(){e.allRowGuis.forEach(function(l){return l.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})});var n=this.getRowBusinessKey(),r=tn(this.rowNode.id),a=tn(n);this.allRowGuis.forEach(function(l){var h=l.rowComp;h.setRole("row"),e.getInitialRowClasses(l.containerType).forEach(function(v){return h.addOrRemoveCssClass(v,!0)}),e.rowNode.group&&nn(l.element,1==e.rowNode.expanded),null!=r&&h.setRowId(r),null!=a&&h.setRowBusinessKey(a),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&h.setTabIndex(-1),i.setDomData(l.element,t.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc(function(){return i.setDomData(l.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,l.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(l.element),e.isFullWidth()&&e.setupFullWidth(l),i.isRowDragEntireRow()&&e.addRowDraggerToRow(l),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask(function(){!e.isAlive()||l.rowComp.addOrRemoveCssClass("ag-after-created",!0)})}),this.executeProcessRowPostCreateFunc()},t.prototype.addRowDraggerToRow=function(e){var i=this.beans.gridOptionsWrapper;if(i.isEnableRangeSelection())Ve(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");else{var n=i.getLocaleTextFunc(),r=new Zs(function(){return"1 "+n("rowDragRow","row")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(r,this.beans.context)}},t.prototype.setupFullWidth=function(e){var i=this.getPinnedForContainer(e.containerType),n=this.createFullWidthParams(e.element,i),r=Z.isRegistered(Le.MasterDetailModule);if(this.rowType!=Hi.FullWidthDetail||r){var a;switch(this.rowType){case Hi.FullWidthDetail:a=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case Hi.FullWidthGroup:a=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case Hi.FullWidthLoading:a=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:a=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}e.rowComp.showFullWidth(a)}else Z.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+Le.MasterDetailModule)},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getCellElement=function(e){var i=this.getCellCtrl(e);return i?i.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},t.prototype.setRowType=function(){var e=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),l=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);this.rowType=e?Hi.FullWidthLoading:n?Hi.FullWidthDetail:i?Hi.FullWidth:l?Hi.FullWidthGroup:Hi.Normal},t.prototype.updateColumnLists=function(e){var i=this;if(void 0===e&&(e=!1),!this.isFullWidth()){if(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)return void this.updateColumnListsImpl();this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){!i.active||i.updateColumnListsImpl()},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,i,n){var r=this;void 0===n&&(n=null);var a={list:[],map:{}},l=function(h,m){a.list.push(m),a.map[h]=m};return i.forEach(function(h){var m=h.getInstanceId(),v=e.map[m];v||(v=new wr(h,r.rowNode,r.beans,r)),l(m,v)}),e.list.forEach(function(h){if(null==a.map[h.getColumn().getInstanceId()]){if(!r.isCellEligibleToBeRemoved(h,n))return void l(h.getColumn().getInstanceId(),h);h.destroy()}}),a},t.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var i=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var n=i.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);var r=i.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,N.PINNED_LEFT);var a=i.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,a,N.PINNED_RIGHT)}this.allRowGuis.forEach(function(l){l.rowComp.setCellCtrls((l.containerType===Vi.LEFT?e.leftCellCtrls:l.containerType===Vi.RIGHT?e.rightCellCtrls:e.centerCellCtrls).list)})},t.prototype.isCellEligibleToBeRemoved=function(e,i){var n=!0;if(e.getColumn().getPinned()!=i)return n;var l=e.isEditing(),h=this.beans.focusService.isCellFocused(e.getCellPosition());if(l||h){var v=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(v)>=0)&&n}return n},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var i=L(this.rowNode.oldRowTop);this.slideRowIn=i,this.fadeRowIn=!i}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Hi.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,i=function(m,v){if(!m)return!0;var _=m.rowComp.getFullWidthCellRenderer();if(!_||!_.refresh)return!1;var y=e.createFullWidthParams(m.element,v);return _.refresh(y)},n=i(this.fullWidthGui,null),r=i(this.centerGui,null),a=i(this.leftGui,N.PINNED_LEFT),l=i(this.rightGui,N.PINNED_RIGHT);return n&&r&&a&&l},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,ot.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,ot.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,S.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,S.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,S.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,S.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,S.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,S.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,S.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,ot.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(i){return i.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,ot.EVENT_CELL_CHANGED,function(i){e.getAllCellCtrls().forEach(function(n){return n.onCellChanged(i)})})},t.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach(function(i){return i.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(i){var r=e===yn.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",e===yn.Above),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)})},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),i=1==this.rowNode.expanded;this.allRowGuis.forEach(function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&i),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!i),nn(n.element,e&&i)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:ye(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var i=this.allRowGuis.find(function(m){return m.element.contains(e.target)});if((i?i.element:null)===e.target){var a=this.rowNode,l=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(e,e.key,{rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:l&&l.column},!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!at(e)){var i=this.allRowGuis.find(function(l){return l.element.contains(e.target)}),n=i?i.element:null,r=n===e.target,a=null;r||(a=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!a)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var i,n=this.rowNode,r=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,a=this.fullWidthGui?this.fullWidthGui.element:null===(i=this.centerGui)||void 0===i?void 0:i.element;!a||(a.classList.toggle("ag-full-width-focus",r),r&&a.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,i){var n={list:[],map:{}};return e.list.forEach(function(r){r!==i&&(n.list.push(r),n.map[r.getInstanceId()]=r)}),n},t.prototype.onMouseEvent=function(e,i){switch(e){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i)}},t.prototype.createRowEvent=function(e,i){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:i}},t.prototype.createRowEventWithSource=function(e,i){var n=this.createRowEvent(e,i);return n.source=this,n},t.prototype.onRowDblClick=function(e){if(!at(e)){var i=this.createRowEventWithSource(S.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(i)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=$n(e.target,"ag-row-drag",3),this.isFullWidth()){var i=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!at(e)&&!this.lastMouseDownOnDragger){var n=this.createRowEventWithSource(S.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(n);var r=e.ctrlKey||e.metaKey,a=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var h=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),m=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();this.rowNode.isSelected()?h?this.rowNode.setSelectedParams({newValue:!1,event:e}):r?m&&this.rowNode.setSelectedParams({newValue:!1,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!a,rangeSelect:a,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!h&&!r,rangeSelect:a,event:e})}}},t.prototype.setupDetailRowAutoHeight=function(e){var i=this;if(this.rowType===Hi.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var a=e.clientHeight;null!=a&&a>0&&i.beans.frameworkOverrides.setTimeout(function(){i.rowNode.setRowHeight(a),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()},0)},r=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(r),n()}},t.prototype.createFullWidthParams=function(e,i){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(a,l,h,m){return n.addFullWidthRowDragging(a,l,h,m)}}},t.prototype.addFullWidthRowDragging=function(e,i,n,r){if(void 0===n&&(n=""),this.isFullWidth()){var a=new Zs(function(){return n},this.rowNode,void 0,e,i,r);this.createManagedBean(a,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var i="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass(i,!0),r.rowComp.addOrRemoveCssClass(n,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-last",i)}))},t.prototype.stopEditing=function(e){var i,n;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),a=this.editingRow;this.stoppingRowEdit=!0;var l=!1;try{for(var h=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),m=h.next();!m.done;m=h.next()){var _=m.value.stopEditing(e);a&&!e&&!l&&_&&(l=!0)}}catch(b){i={error:b}}finally{try{m&&!m.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}if(l){var y=this.createRowEvent(S.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(y)}a&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var i=this.createRowEvent(e?S.EVENT_ROW_EDITING_STARTED:S.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},t.prototype.startRowEditing=function(e,i,n,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n=null),void 0===r&&(r=null),this.editingRow||this.getAllCellCtrls().reduce(function(l,h){var m=h===n;return m?h.startEditing(e,i,m,r):h.startEditing(null,null,m,r),!!l||h.isEditing()},!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){var e=function(){for(var o=[],t=0;t=0&&(i=n)}),i},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),i=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,r=i+this.rowNode.rowIndex+1;this.allRowGuis.forEach(function(a){a.rowComp.setRowIndex(e),a.rowComp.addOrRemoveCssClass("ag-row-even",n),a.rowComp.addOrRemoveCssClass("ag-row-odd",!n),Os(a.element,r)})},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(ve),zv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),an=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},mf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return zv(t,o),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(n){var r=e.processKeyboardEvent.bind(e,n);e.addManagedListener(e.element,n,r)})},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Jt("touchstart")?"touchstart":"mousedown"].forEach(function(r){var a=e.processMouseEvent.bind(e,r);e.addManagedListener(e.element,r,a)})},t.prototype.processMouseEvent=function(e,i){if(this.mouseEventService.isEventFromThisGrid(i)&&!at(i)){var n=this.getRowForEvent(i),r=this.mouseEventService.getRenderedCellForEvent(i);"contextmenu"===e?this.handleContextMenuMouseEvent(i,null,n,r):(r&&r.onMouseEvent(e,i),n&&n.onMouseEvent(e,i))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Kn()){var i=new ki(this.element);this.addManagedListener(i,ki.EVENT_LONG_TAP,function(r){var a=e.getRowForEvent(r.touchEvent),l=e.mouseEventService.getRenderedCellForEvent(r.touchEvent);e.handleContextMenuMouseEvent(null,r.touchEvent,a,l)}),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.getRowForEvent=function(e){for(var i=e.target;i;){var n=this.gridOptionsWrapper.getDomData(i,no.DOM_DATA_KEY_ROW_CTRL);if(n)return n;i=i.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,i,n,r){var a=n?n.getRowNode():null,l=r?r.getColumn():null,h=null;l&&(r.dispatchCellContextMenuEvent(e||i),h=this.valueService.getValue(l,a));var v=this.ctrlsService.getGridBodyCtrl(),_=r?r.getGui():v.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,i,a,l,h,_)},t.prototype.processKeyboardEvent=function(e,i){var n=pt(this.gridOptionsWrapper,i,wr.DOM_DATA_KEY_CELL_CTRL),r=pt(this.gridOptionsWrapper,i,no.DOM_DATA_KEY_ROW_CTRL);i.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,i):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,i))},t.prototype.processCellKeyboardEvent=function(e,i,n){var r=e.getRowNode(),a=e.getColumn(),l=e.isEditing();if(!As(this.gridOptionsWrapper,n,r,a,l))switch(i){case"keydown":!l&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===i){var v=e.createEvent(n,S.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(v)}if("keypress"===i){var _=e.createEvent(n,S.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(_)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,i,n){var r=e.getRowNode(),a=this.focusService.getFocusedCell();if(!As(this.gridOptionsWrapper,n,r,a&&a.column,!1)&&"keydown"===i)switch(n.key){case ae.UP:case ae.DOWN:e.onKeyboardNavigate(n);break;case ae.TAB:e.onTabKeyDown(n)}if("keydown"===i){var v=e.createRowEvent(S.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(v)}if("keypress"===i){var _=e.createRowEvent(S.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(_)}},t.prototype.doGridOperations=function(e,i){if((e.ctrlKey||e.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(e)){var n=Qn(e);if(n===ae.A)return this.onCtrlAndA(e);if(n===ae.C)return this.onCtrlAndC(e);if(n===ae.V)return this.onCtrlAndV();if(n===ae.D)return this.onCtrlAndD(e);if(n===ae.Z)return this.onCtrlAndZ(e);if(n===ae.Y)return this.onCtrlAndY()}},t.prototype.onCtrlAndA=function(e){var i=this,n=i.pinnedRowModel,a=i.rangeService,l=N.PINNED_BOTTOM,h=N.PINNED_TOP;if(a&&i.paginationProxy.isRowsToRender()){var m=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}([n.isEmpty(h),n.isEmpty(l)],2),y=m[0]?null:h,b=void 0,R=void 0;m[1]?(b=null,R=this.paginationProxy.getRowCount()-1):(b=l,R=n.getPinnedBottomRowData().length-1);var P=this.columnModel.getAllDisplayedColumns();if(de(P))return;a.setCellRange({rowStartIndex:0,rowStartPinned:y,rowEndIndex:R,rowEndPinned:b,columnStart:P[0],columnEnd:We(P)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){!this.clipboardService||this.gridOptionsWrapper.isEnableCellTextSelection()||(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){Z.isRegistered(Le.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){Z.isRegistered(Le.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){!this.gridOptionsWrapper.isUndoRedoCellEditing()||(e.preventDefault(),e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},an([w("mouseEventService")],t.prototype,"mouseEventService",void 0),an([w("valueService")],t.prototype,"valueService",void 0),an([st("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),an([w("ctrlsService")],t.prototype,"ctrlsService",void 0),an([w("navigationService")],t.prototype,"navigationService",void 0),an([w("focusService")],t.prototype,"focusService",void 0),an([w("undoRedoService")],t.prototype,"undoRedoService",void 0),an([w("columnModel")],t.prototype,"columnModel",void 0),an([w("paginationProxy")],t.prototype,"paginationProxy",void 0),an([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),an([st("rangeService")],t.prototype,"rangeService",void 0),an([st("clipboardService")],t.prototype,"clipboardService",void 0),an([me],t.prototype,"postConstruct",null),t}(ve),Kv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},gf=function(o){function t(e){var i=o.call(this)||this;return i.centerContainerCtrl=e,i}return Kv(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,S.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,i=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var i=Br(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==i&&(this.bodyHeight=i,this.eventService.dispatchEvent({type:S.EVENT_BODY_HEIGHT_CHANGED}))},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},Vl([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Vl([w("columnModel")],t.prototype,"columnModel",void 0),Vl([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Vl([me],t.prototype,"postConstruct",null),t}(ve),On=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ru=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},vf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return On(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),i=e>0;Ft(this.element,i),i&&_n(this.element,e)},ru([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),ru([me],t.prototype,"postConstruct",null),t}(ve),_f=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ou=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return _f(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),i=e>0;Ft(this.element,i),i&&_n(this.element,e)},ou([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),ou([me],t.prototype,"postConstruct",null),t}(ve),Cf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),su=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},wf=function(o){function t(e,i){var n=o.call(this)||this;return n.eContainer=e,n.eWrapper=i,n}return Cf(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),i=null!=e?e+"px":"";this.eContainer.style.height=i,this.eWrapper&&(this.eWrapper.style.height=i)},su([w("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),su([me],t.prototype,"postConstruct",null),t}(ve),bf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Bl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},xf=function(o){function t(e){var i=o.call(this)||this;return i.eContainer=e,i}return bf(t,o),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!z(this.rangeService)){var i={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(i),this.addDestroyFunc(function(){return e.dragService.removeDragSource(i)})}},Bl([st("rangeService")],t.prototype,"rangeService",void 0),Bl([w("dragService")],t.prototype,"dragService",void 0),Bl([me],t.prototype,"postConstruct",null),t}(ve),sa=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),au=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Wl=function(o){function t(e){var i=o.call(this)||this;return i.callback=e,i}return sa(t,o),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,we.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,i=this.gridOptionsWrapper.getDomLayout()===N.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),a=e.getDisplayedColumnsRightWidth();this.callback(i?n+r+a:n)},au([w("columnModel")],t.prototype,"columnModel",void 0),au([me],t.prototype,"postConstruct",null),t}(ve),Ef=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),br=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Sf=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},ie=(()=>(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth",o.TOP_LEFT="topLeft",o.TOP_RIGHT="topRight",o.TOP_CENTER="topCenter",o.TOP_FULL_WIDTH="topFullWidth",o.STICKY_TOP_LEFT="stickyTopLeft",o.STICKY_TOP_RIGHT="stickyTopRight",o.STICKY_TOP_CENTER="stickyTopCenter",o.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",o.BOTTOM_LEFT="bottomLeft",o.BOTTOM_RIGHT="bottomRight",o.BOTTOM_CENTER="bottomCenter",o.BOTTOM_FULL_WIDTH="bottomFullWidth"}(ie||(ie={})),ie))(),Vi=(()=>(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth"}(Vi||(Vi={})),Vi))(),Tf=Ln([[ie.CENTER,"ag-center-cols-container"],[ie.LEFT,"ag-pinned-left-cols-container"],[ie.RIGHT,"ag-pinned-right-cols-container"],[ie.FULL_WIDTH,"ag-full-width-container"],[ie.TOP_CENTER,"ag-floating-top-container"],[ie.TOP_LEFT,"ag-pinned-left-floating-top"],[ie.TOP_RIGHT,"ag-pinned-right-floating-top"],[ie.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[ie.STICKY_TOP_CENTER,"ag-sticky-top-container"],[ie.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[ie.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[ie.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[ie.BOTTOM_CENTER,"ag-floating-bottom-container"],[ie.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[ie.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[ie.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Df=Ln([[ie.CENTER,"ag-center-cols-viewport"],[ie.TOP_CENTER,"ag-floating-top-viewport"],[ie.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[ie.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Wo=Ln([[ie.CENTER,"ag-center-cols-clipper"]]),aa=function(o){function t(e){var i=o.call(this)||this;return i.name=e,i}return Ef(t,o),t.getRowContainerCssClasses=function(e){return{container:Tf.get(e),viewport:Df.get(e),wrapper:Wo.get(e)}},t.getPinned=function(e){switch(e){case ie.BOTTOM_LEFT:case ie.TOP_LEFT:case ie.STICKY_TOP_LEFT:case ie.LEFT:return N.PINNED_LEFT;case ie.BOTTOM_RIGHT:case ie.TOP_RIGHT:case ie.STICKY_TOP_RIGHT:case ie.RIGHT:return N.PINNED_RIGHT;default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([ie.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new gf(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case ie.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case ie.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case ie.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case ie.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case ie.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case ie.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case ie.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case ie.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case ie.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case ie.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case ie.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case ie.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,i){e.indexOf(this.name)>=0&&i()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,i,n,r){var a=this;this.comp=e,this.eContainer=i,this.eViewport=n,this.eWrapper=r,this.createManagedBean(new mf(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var _=function(){for(var o=[],t=0;t=0)this.comp.setDomOrder(!0);else{var r=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,we.PROP_DOM_LAYOUT,r),r()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([ie.TOP_CENTER,ie.STICKY_TOP_CENTER,ie.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,"scroll",function(){return e.eViewport.scrollLeft=0})})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([ie.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([ie.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){if(this.name===ie.CENTER){var i=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0;this.comp.setViewportHeight(0==i?"100%":"calc(100% + "+i+"px)")}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,i=function(n){e.dragService.isDragging()&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",i)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},t.prototype.getCenterWidth=function(){return ws(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return ur(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var i=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return i()})},t.prototype.isViewportVisible=function(){return Eo(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Xa(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return ur(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||Xa(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){xo(this.eViewport,e,this.enableRtl)},t.prototype.onDisplayedRowsChanged=function(){var e=this,i=this.name===ie.TOP_FULL_WIDTH||this.name===ie.STICKY_TOP_FULL_WIDTH||this.name===ie.BOTTOM_FULL_WIDTH||this.name===ie.FULL_WIDTH,a=this.getRowCtrls().filter(function(l){var h=l.isFullWidth(),m=e.gridOptionsWrapper.getDomLayout()===N.DOM_LAYOUT_PRINT,v=e.embedFullWidthRows||m;return i?!v&&h:v||!h});this.comp.setRowCtrls(a)},t.prototype.getRowCtrls=function(){switch(this.name){case ie.TOP_CENTER:case ie.TOP_LEFT:case ie.TOP_RIGHT:case ie.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case ie.STICKY_TOP_CENTER:case ie.STICKY_TOP_LEFT:case ie.STICKY_TOP_RIGHT:case ie.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case ie.BOTTOM_CENTER:case ie.BOTTOM_LEFT:case ie.BOTTOM_RIGHT:case ie.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},br([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),br([w("dragService")],t.prototype,"dragService",void 0),br([w("ctrlsService")],t.prototype,"ctrlsService",void 0),br([w("columnModel")],t.prototype,"columnModel",void 0),br([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),br([w("rowRenderer")],t.prototype,"rowRenderer",void 0),br([me],t.prototype,"postConstruct",null),t}(ve),Mf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},$v='
    \n \n \n \n \n \n \n \n
    ',lu=function(o){function t(){return o.call(this,$v)||this}return Mf(t,o),t.prototype.init=function(){var e=this,i=function(r,a){var l=r+"px";a.style.minHeight=l,a.style.height=l},n={setRowAnimationCssOnBodyViewport:function(r,a){return e.setRowAnimationCssOnBodyViewport(r,a)},setColumnCount:function(r){return hd(e.getGui(),r)},setRowCount:function(r){return qp(e.getGui(),r)},setTopHeight:function(r){return i(r,e.eTop)},setBottomHeight:function(r){return i(r,e.eBottom)},setTopDisplay:function(r){return e.eTop.style.display=r},setBottomDisplay:function(r){return e.eBottom.style.display=r},setStickyTopHeight:function(r){return e.eStickyTop.style.height=r},setStickyTopTop:function(r){return e.eStickyTop.style.top=r},setStickyTopWidth:function(r){return e.eStickyTop.style.width=r},setColumnMovingCss:function(r,a){return e.addOrRemoveCssClass(Kh,a)},updateLayoutClasses:function(r,a){var l=e.eBodyViewport.classList;l.toggle(ii.AUTO_HEIGHT,a.autoHeight),l.toggle(ii.NORMAL,a.normal),l.toggle(ii.PRINT,a.print),e.addOrRemoveCssClass(ii.AUTO_HEIGHT,a.autoHeight),e.addOrRemoveCssClass(ii.NORMAL,a.normal),e.addOrRemoveCssClass(ii.PRINT,a.print)},setAlwaysVerticalScrollClass:function(r,a){return e.eBodyViewport.classList.toggle(kl,a)},registerBodyViewportResizeListener:function(r){var a=e.resizeObserverService.observeResize(e.eBodyViewport,r);e.addDestroyFunc(function(){return a()})},setPinnedTopBottomOverflowY:function(r){return e.eTop.style.overflowY=e.eBottom.style.overflowY=r},setCellSelectableCss:function(r,a){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(l){return l.classList.toggle(na,a)})}};this.ctrl=this.createManagedBean(new Av),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Kr(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,i){var n=this.eBodyViewport.classList;n.toggle(Cr.ANIMATION_ON,i),n.toggle(Cr.ANIMATION_OFF,!i)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},xr([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),xr([st("rangeService")],t.prototype,"rangeService",void 0),xr([le("eBodyViewport")],t.prototype,"eBodyViewport",void 0),xr([le("eStickyTop")],t.prototype,"eStickyTop",void 0),xr([le("eTop")],t.prototype,"eTop",void 0),xr([le("eBottom")],t.prototype,"eBottom",void 0),xr([le("gridHeader")],t.prototype,"headerRootComp",void 0),xr([me],t.prototype,"init",null),t}(tt),Zv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),cu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},qv=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Zv(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var i={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},t.prototype.setScrollsVisible=function(e){this.horizontalScrollShowing===e.horizontalScrollShowing&&this.verticalScrollShowing===e.verticalScrollShowing||(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dispatchEvent({type:S.EVENT_SCROLL_VISIBILITY_CHANGED}))},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},cu([w("ctrlsService")],t.prototype,"ctrlsService",void 0),cu([me],t.prototype,"postConstruct",null),cu([be("scrollVisibleService")],t)}(ve),Qv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Af=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Pf=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.gridInstanceId=e.gridInstanceSequence.next(),i}var e;return Qv(t,o),e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(i){i[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(i){return pt(this.gridOptionsWrapper,i,wr.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(i){return this.isElementInThisGrid(i.target)},t.prototype.isElementInThisGrid=function(i){for(var n=i;n;){var r=n[e.GRID_DOM_KEY];if(L(r))return r===this.gridInstanceId;n=n.parentElement}return!1},t.prototype.getCellPositionForEvent=function(i){var n=this.getRenderedCellForEvent(i);return n?n.getCellPosition():null},t.prototype.getNormalisedPosition=function(i){var a,l,n=this.gridOptionsWrapper.getDomLayout()===N.DOM_LAYOUT_NORMAL;if(null!=i.clientX||null!=i.clientY?(a=i.clientX,l=i.clientY):(a=i.x,l=i.y),n){var h=this.ctrlsService.getGridBodyCtrl(),m=h.getScrollFeature().getVScrollPosition();a+=h.getScrollFeature().getHScrollPosition().left,l+=m.top}return{x:a,y:l}},t.gridInstanceSequence=new qr,t.GRID_DOM_KEY="__ag_grid_instance",Af([w("ctrlsService")],t.prototype,"ctrlsService",void 0),e=Af([be("mouseEventService")],t)}(ve),If=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ul=function(){return Ul=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ff=function(o){function t(){var e=o.call(this)||this;return e.onPageDown=rt(e.onPageDown,100),e.onPageUp=rt(e.onPageUp,100),e}return If(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCon=i.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e){var i=e.key,n=e.altKey,r=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e);if(!l)return!1;var h=!1;switch(i){case ae.PAGE_HOME:case ae.PAGE_END:!r&&!n&&(this.onHomeOrEndKey(i),h=!0);break;case ae.LEFT:case ae.RIGHT:case ae.UP:case ae.DOWN:r&&!n&&!a&&(this.onCtrlUpDownLeftRight(i,l),h=!0);break;case ae.PAGE_DOWN:!r&&!n&&(this.onPageDown(l),h=!0);break;case ae.PAGE_UP:!r&&!n&&(this.onPageUp(l),h=!0)}return h&&e.preventDefault(),h},t.prototype.navigateTo=function(e){var i=e.scrollIndex,n=e.scrollType,r=e.scrollColumn,a=e.focusIndex,l=e.focusColumn;L(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),L(i)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(i,n),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(a),this.focusService.setFocusedCell({rowIndex:a,column:l,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:a,rowPinned:null,column:l})},t.prototype.onPageDown=function(e){var n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),a=this.paginationProxy.getPixelOffset(),h=this.paginationProxy.getRowIndexAtPixel(n.top+r+a);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,h):this.navigateToNextPage(e,h)},t.prototype.onPageUp=function(e){var n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRowIndexAtPixel(n.top+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)},t.prototype.navigateToNextPage=function(e,i,n){void 0===n&&(n=!1);var r,a,H,l=this.getViewportHeight(),h=this.paginationProxy.getPageFirstRow(),m=this.paginationProxy.getPageLastRow(),v=this.paginationProxy.getPixelOffset(),_=this.paginationProxy.getRow(e.rowIndex),y=n?(null===(r=_)||void 0===r?void 0:r.rowHeight)-l-v:l-v,b=(null===(a=_)||void 0===a?void 0:a.rowTop)+y,R=this.paginationProxy.getRowIndexAtPixel(b+v);R===e.rowIndex&&(i=R=e.rowIndex+(n?-1:1)),n?(H="bottom",Rm&&(R=m),i>m&&(i=m)),this.isRowTallerThanView(R)&&(i=R,H="top"),this.navigateTo({scrollIndex:i,scrollType:H,scrollColumn:null,focusIndex:R,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,i,n){var r=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column}),setTimeout(function(){var a=r.getNextFocusIndexForAutoHeight(e,n);r.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:a,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,i){void 0===i&&(i=!1);for(var r=i?-1:1,a=this.getViewportHeight(),l=this.paginationProxy.getPageLastRow(),h=0,m=e.rowIndex;m>=0&&m<=l;){var v=this.paginationProxy.getRow(m);if(v){var _=v.rowHeight??0;if(h+_>a)break;h+=_}m+=r}return Math.max(0,Math.min(m,l))},t.prototype.getViewportHeight=function(){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),r=i.bottom-i.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=n),r},t.prototype.isRowTallerThanView=function(e){var i=this.paginationProxy.getRow(e);if(!i)return!1;var n=i.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,i){var n=this.cellNavigationService.getNextCellToFocus(e,i,!0),r=n.rowIndex,a=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:a,focusIndex:r,focusColumn:a})},t.prototype.onHomeOrEndKey=function(e){var i=e===ae.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),r=i?n[0]:We(n),a=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:r,focusIndex:a,focusColumn:r})},t.prototype.onTabKeyDown=function(e,i){var n=i.shiftKey;if(this.tabToNextCellCommon(e,n,i))i.preventDefault();else if(n){var a=e.getRowPosition(),l=a.rowIndex;(a.rowPinned?0===l:l===this.paginationProxy.getPageFirstRow())&&(i.preventDefault(),this.focusService.focusLastHeader(i))}else e instanceof wr&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&i.preventDefault()},t.prototype.tabToNextCell=function(e,i){var n=this.focusService.getFocusedCell();if(!n)return!1;var r=this.getCellByPosition(n);return!!(r||(r=this.rowRenderer.getRowByPosition(n),r&&r.isFullWidth()))&&this.tabToNextCellCommon(r,e,i)},t.prototype.tabToNextCellCommon=function(e,i,n){var r=e.isEditing();if(!r&&e instanceof wr){var l=e.getRowCtrl();l&&(r=l.isEditing())}return(r?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,i,n):this.moveToNextEditingCell(e,i,n):this.moveToNextCellNotEditing(e,i))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,i,n){void 0===n&&(n=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var a=this.findNextCellToFocusOn(r,i,!0);return null!=a&&(a.startEditing(null,null,!0,n),a.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,i,n){void 0===n&&(n=null);var r=e.getCellPosition(),a=this.findNextCellToFocusOn(r,i,!0);if(null==a)return!1;var l=a.getCellPosition(),h=this.isCellEditable(r),m=this.isCellEditable(l),v=l&&r.rowIndex===l.rowIndex&&r.rowPinned===l.rowPinned;return h&&e.setFocusOutOnEditor(),v||(e.getRowCtrl().stopEditing(),a.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),m?(a.setFocusInOnEditor(),a.focusCell()):a.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,i){var r,n=this.columnModel.getAllDisplayedColumns();r=e instanceof no?Ul(Ul({},e.getRowPosition()),{column:i?n[0]:We(n)}):e.getCellPosition();var a=this.findNextCellToFocusOn(r,i,!1);if(a instanceof wr)a.focusCell(!0);else if(a)return this.tryToFocusFullWidthRow(a.getRowPosition(),i);return L(a)},t.prototype.findNextCellToFocusOn=function(e,i,n){for(var r=e;;){e!==r&&(e=r),i||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,i);var a=this.gridOptionsWrapper.getTabToNextCellFunc();if(L(a)){var h=a({backwards:i,editing:n,previousCellPosition:e,nextCellPosition:r||null});L(h)?(h.floating&&(Ve(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),h.rowPinned=h.floating),r={rowIndex:h.rowIndex,column:h.column,rowPinned:h.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var m=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:m+r.rowIndex,column:r.column}}),null}var v=this.gridOptionsWrapper.isFullRowEdit();if(!n||v||this.isCellEditable(r)){this.ensureCellVisible(r);var y=this.getCellByPosition(r);if(!y){var b=this.rowRenderer.getRowByPosition(r);if(!b||!b.isFullWidth())continue;return b}if(!y.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),y}}},t.prototype.isCellEditable=function(e){var i=this.lookupRowNodeForCell(e);return!!i&&e.column.isCellEditable(i)},t.prototype.getCellByPosition=function(e){var i=this.rowRenderer.getRowByPosition(e);return i?i.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===N.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===N.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,i,n,r){for(var a=n,l=!1;a&&(a===n||!this.isValidNavigateCell(a));)this.gridOptionsWrapper.isEnableRtl()?i===ae.LEFT&&(a=this.getLastCellOfColSpan(a)):i===ae.RIGHT&&(a=this.getLastCellOfColSpan(a)),l=z(a=this.cellNavigationService.getNextCellToFocus(i,a));if(l&&e&&e.key===ae.UP&&(a={rowIndex:-1,rowPinned:null,column:n.column}),r){var h=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(L(h)){var v=h({key:i,previousCellPosition:n,nextCellPosition:a||null,event:e});L(v)?(v.floating&&(Ve(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),v.rowPinned=v.floating),a={rowPinned:v.rowPinned,rowIndex:v.rowIndex,column:v.column}):a=null}}if(a){if(a.rowIndex<0){var _=this.headerNavigationService.getHeaderRowCount();return void this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:_+a.rowIndex,column:n.column},event:e||void 0})}var y=this.getNormalisedPosition(a);y?this.focusPosition(y):this.tryToFocusFullWidthRow(a)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var i=this.getCellByPosition(e);return i?(e=i.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,i){void 0===i&&(i=!1);var n=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var a=this.focusService.getFocusedCell(),l={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(i?We(n):n[0])};this.focusPosition(l);var h=null!=a&&this.rowPositionUtils.before(l,a);return this.eventService.dispatchEvent({type:S.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:l.rowIndex,rowPinned:l.rowPinned,column:l.column,isFullWidthCell:!0,floating:l.rowPinned,fromBelow:h}),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var i=this.getCellByPosition(e);if(!i)return e;var n=i.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:We(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var i,n=this.gridOptionsWrapper.isGroupRowsSticky(),r=this.rowModel.getRow(e.rowIndex);!(n&&(null===(i=r)||void 0===i?void 0:i.sticky))&&z(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Zi([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Zi([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Zi([w("focusService")],t.prototype,"focusService",void 0),Zi([st("rangeService")],t.prototype,"rangeService",void 0),Zi([w("columnModel")],t.prototype,"columnModel",void 0),Zi([w("rowModel")],t.prototype,"rowModel",void 0),Zi([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Zi([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Zi([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Zi([w("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Zi([w("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Zi([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Zi([me],t.prototype,"postConstruct",null),Zi([be("navigationService")],t)}(ve),Lf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jv=function(o){function t(e){var i=o.call(this,'
    ')||this;return i.params=e,i}return Lf(t,o),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,i=this.getGui(),n=this.params;this.addManagedListener(i,"keydown",function(a){As(e.gridOptionsWrapper,a,n.node,n.column,!0)||n.onKeyDown(a)})},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([me],t.prototype,"postConstruct",null),t}(Fo),e_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nf=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;l.rendererVersion=0,l.editorVersion=0,l.beans=e,l.column=i.getColumn(),l.rowNode=i.getRowNode(),l.rowCtrl=i.getRowCtrl(),l.eRow=r,l.setTemplate('
    ');var h=l.getGui();l.forceWrapper=i.isForceWrapper(),l.refreshWrapper(!1);var m=function(_,y,b){var R=b||h;null!=y&&""!=y?R.setAttribute(_,y):R.removeAttribute(_)},v={addOrRemoveCssClass:function(_,y){return l.addOrRemoveCssClass(_,y)},setUserStyles:function(_){return Es(h,_)},getFocusableElement:function(){return l.getFocusableElement()},setTabIndex:function(_){return m("tabindex",_.toString())},setRole:function(_){return Ti(h,_)},setColId:function(_){return m("col-id",_)},setTitle:function(_){return m("title",_)},setIncludeSelection:function(_){return l.includeSelection=_},setIncludeRowDrag:function(_){return l.includeRowDrag=_},setIncludeDndSource:function(_){return l.includeDndSource=_},setRenderDetails:function(_,y,b){return l.setRenderDetails(_,y,b)},setEditDetails:function(_,y,b){return l.setEditDetails(_,y,b)},getCellEditor:function(){return l.cellEditor||null},getCellRenderer:function(){return l.cellRenderer||null},getParentOfValue:function(){return l.getParentOfValue()}};return l.cellCtrl=i,i.setComp(v,l.getGui(),l.eCellWrapper,n,a),l}return e_(t,o),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,i,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var a=this.refreshWrapper(!1);e?!n&&!a&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(i))}},t.prototype.setEditDetails=function(e,i,n){e?this.createCellEditorInstance(e,i,n):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=i||this.forceWrapper,r=n&&null==this.eCellWrapper;r&&(this.eCellWrapper=_i(''),this.getGui().appendChild(this.eCellWrapper));var a=!n&&null!=this.eCellWrapper;a&&(Gn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var l=!e&&n,h=l&&null==this.eCellValue;h&&(this.eCellValue=_i(''),this.eCellWrapper.appendChild(this.eCellValue));var m=!l&&null!=this.eCellValue;m&&(Gn(this.eCellValue),this.eCellValue=void 0);var v=r||a||h||m;return v&&this.removeControls(),!e&&i&&this.addControls(),v},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),i=[];ud(this.eCellWrapper,!0),this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),i.push(this.checkboxSelectionComp.getCheckboxId())),i.push(e),il(this.getGui(),i.join(" "))},t.prototype.createCellEditorInstance=function(e,i,n){var r=this,a=this.editorVersion,l=e.newAgStackInstance();if(l){var h=e.params;l.then(function(v){return r.afterCellEditorCreated(a,v,h,i,n)}),z(this.cellEditor)&&h.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var i=this.getParentOfValue();zi(i);var n=null!=e?tn(e):null;null!=n&&(i.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),Gn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Gn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh||this.cellRendererClass!==e.componentClass)return!1;var i=this.cellRenderer.refresh(e.params);return!0===i||void 0===i},t.prototype.createCellRendererInstance=function(e){var i=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),l=this.rendererVersion,h=e.componentClass,m=function(){if(i.rendererVersion===l&&i.isAlive()){var _=e.newAgStackInstance(),y=i.afterCellRendererCreated.bind(i,l,h);_&&_.then(y)}};n||r||!this.firstRender?m():this.beans.animationFrameService.createTask(m,this.rowNode.rowIndex,"createTasksP2")},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,i,n){if(this.isAlive()&&e===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var a=this.getParentOfValue();zi(a),a.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},t.prototype.afterCellEditorCreated=function(e,i,n,r,a){if(e!==this.editorVersion)this.beans.context.destroyBean(i);else{if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return this.beans.context.destroyBean(i),void this.cellCtrl.stopEditing();if(!i.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(i);this.cellEditor=i,this.cellEditorGui=i.getGui(),r||void 0!==i.isPopup&&i.isPopup()?(r||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,a)):this.addInCellEditor(),i.afterGuiAttached&&i.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,i){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Jv(e));var a=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&a.appendChild(this.cellEditorGui);var l=this.beans.popupService,h=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),m=i??(r.getPopupPosition?r.getPopupPosition():"over"),v={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:a,keepWithinBounds:!0},_="under"===m?l.positionPopupUnderComponent.bind(l,v):l.positionPopupOverComponent.bind(l,v),y=this.beans.gridOptionsWrapper.getLocaleTextFunc(),b=l.addPopup({modal:h,eChild:a,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:_,ariaLabel:y("ariaLabelCellEditor","Cell Editor")});b&&(this.hideEditorPopup=b.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),o.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&gs()&&e.focus({preventScroll:!0}),zi(this.getParentOfValue())},t}(tt),t_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),i_=function(o){function t(e,i,n){var r=o.call(this)||this;r.cellComps={},r.beans=i,r.rowCtrl=e,r.setTemplate('
    ');var a=r.getGui(),l=a.style;return e.setComp({setDomOrder:function(m){return r.domOrder=m},setCellCtrls:function(m){return r.setCellCtrls(m)},showFullWidth:function(m){return r.showFullWidth(m)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(m,v){return r.addOrRemoveCssClass(m,v)},setUserStyles:function(m){return Es(a,m)},setTop:function(m){return l.top=m},setTransform:function(m){return l.transform=m},setRowIndex:function(m){return a.setAttribute("row-index",m)},setRole:function(m){return Ti(a,m)},setRowId:function(m){return a.setAttribute("row-id",m)},setRowBusinessKey:function(m){return a.setAttribute("row-business-key",m)},setTabIndex:function(m){return a.setAttribute("tabindex",m.toString())}},r.getGui(),n),r}return t_(t,o),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),i=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+i},t.prototype.showFullWidth=function(e){var i=this,r=e.newAgStackInstance();!r||r.then(function(a){if(i.isAlive()){var l=a.getGui();i.getGui().appendChild(l),i.rowCtrl.setupDetailRowAutoHeight(l),i.setFullWidthRowComp(a)}else i.beans.context.destroyBean(a)})},t.prototype.setCellCtrls=function(e){var i=this,n=Object.assign({},this.cellComps);e.forEach(function(a){var l=a.getInstanceId();null==i.cellComps[l]?i.newCellComp(a):n[l]=null});var r=Ut(n).filter(function(a){return null!=a});this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var i=this;if(this.domOrder){var n=[];e.forEach(function(r){var a=i.cellComps[r.getInstanceId()];a&&n.push(a.getGui())}),Qa(this.getGui(),n)}},t.prototype.newCellComp=function(e){var i=new Nf(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=Ut(this.cellComps).filter(function(i){return null!=i});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var i=this;e.forEach(function(n){if(n){var r=n.getCtrl().getInstanceId();i.cellComps[r]===n&&(n.detach(),n.destroy(),i.cellComps[r]=null)}})},t}(tt),n_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),du=function(){return du=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},r_=function(o){function t(){var e=o.call(this,function Gf(){var o=tt.elementGettingCreated.getAttribute("name"),t=aa.getRowContainerCssClasses(o);return o===ie.CENTER?'':o===ie.TOP_CENTER||o===ie.STICKY_TOP_CENTER||o===ie.BOTTOM_CENTER?'':'
    '}())||this;return e.rowComps={},e.name=tt.elementGettingCreated.getAttribute("name"),e.type=function Of(o){switch(o){case ie.CENTER:case ie.TOP_CENTER:case ie.STICKY_TOP_CENTER:case ie.BOTTOM_CENTER:return Vi.CENTER;case ie.LEFT:case ie.TOP_LEFT:case ie.STICKY_TOP_LEFT:case ie.BOTTOM_LEFT:return Vi.LEFT;case ie.RIGHT:case ie.TOP_RIGHT:case ie.STICKY_TOP_RIGHT:case ie.BOTTOM_RIGHT:return Vi.RIGHT;case ie.FULL_WIDTH:case ie.TOP_FULL_WIDTH:case ie.STICKY_TOP_FULL_WIDTH:case ie.BOTTOM_FULL_WIDTH:return Vi.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return n_(t,o),t.prototype.postConstruct=function(){var e=this,i={setViewportHeight:function(r){return e.eViewport.style.height=r},setRowCtrls:function(r){return e.setRowCtrls(r)},setDomOrder:function(r){e.domOrder=r},setContainerWidth:function(r){return e.eContainer.style.width=r}};this.createManagedBean(new aa(this.name)).setComp(i,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var i=this,n=du({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach(function(a){var l=a.getInstanceId(),h=n[l];if(h)i.rowComps[l]=h,delete n[l],i.ensureDomOrder(h.getGui());else{var m=i.newRowComp(a);i.rowComps[l]=m,i.appendRow(m.getGui())}}),Ut(n).forEach(function(a){i.eContainer.removeChild(a.getGui()),a.destroy()}),Ti(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?So(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(qa(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},t.prototype.newRowComp=function(e){return aa.getPinned(this.name),new i_(e,this.beans,this.type)},Uo([w("beans")],t.prototype,"beans",void 0),Uo([le("eViewport")],t.prototype,"eViewport",void 0),Uo([le("eContainer")],t.prototype,"eContainer",void 0),Uo([le("eWrapper")],t.prototype,"eWrapper",void 0),Uo([me],t.prototype,"postConstruct",null),Uo([Et],t.prototype,"preDestroy",null),t}(tt),kf=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},o_=function(){function o(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return o.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var i=t.dragItem.columns;!i||i.forEach(function(n){!n.isPrimary()||n.isAnyFunctionActive()||(n.isAllowValue()?e.columnsToAggregate.push(n):n.isAllowRowGroup()?e.columnsToGroup.push(n):n.isAllowPivot()&&e.columnsToPivot.push(n))})}},o.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?si.ICON_PINNED:si.ICON_MOVE:null},o.prototype.onDragLeave=function(t){this.clearColumnsList()},o.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},o.prototype.onDragging=function(t){},o.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},kf([w("columnModel")],o.prototype,"columnModel",void 0),kf([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),o}(),la=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Hf=function(){function o(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=e,this.centerContainer=!L(t)}return o.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},o.prototype.getIconName=function(){return this.pinned?si.ICON_PINNED:si.ICON_MOVE},o.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===Ei.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var n=t.dragItem.visibleState,r=(e||[]).filter(function(a){return n[a.getId()]});this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},o.prototype.onDragLeave=function(t){this.ensureIntervalCleared()},o.prototype.setColumnsVisible=function(t,e,i){if(void 0===i&&(i="api"),t){var n=t.filter(function(r){return!r.getColDef().lockVisible});this.columnModel.setColumnsVisible(n,e,i)}},o.prototype.setColumnsPinned=function(t,e,i){if(void 0===i&&(i="api"),t){var n=t.filter(function(r){return!r.getColDef().lockPinned});this.columnModel.setColumnsPinned(n,e,i)}},o.prototype.onDragStop=function(){this.ensureIntervalCleared()},o.prototype.normaliseX=function(t){return this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},o.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),i=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=ti-50):(this.needToMoveLeft=ti-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},o.prototype.onDragging=function(t,e,i){var n=this;if(void 0===e&&(e=!1),void 0===i&&(i=!1),this.lastDraggingEvent=t,!z(t.hDirection)){var r=this.normaliseX(t.x);e||this.checkCenterForScrolling(r);var a=this.normaliseDirection(t.hDirection),l=t.dragSource.type,h=t.dragSource.getDragItem().columns;h=h.filter(function(m){return!m.getColDef().lockPinned||m.getPinned()==n.pinned}),this.attemptMoveColumns(l,h,a,r,e,i)}},o.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case Cn.Left:return Cn.Right;case Cn.Right:return Cn.Left;default:console.error("AG Grid: Unknown direction "+t)}},o.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),i=ue(t.map(function(h){return e.indexOf(h)})),n=i[0];return We(i)-n!=i.length-1?null:n},o.prototype.attemptMoveColumns=function(t,e,i,n,r,a){var l=i===Cn.Left,h=i===Cn.Right;if(t===Ei.HeaderCell){var m=[];e.forEach(function(Ge){for(var Xe=null,ct=Ge.getParent();null!=ct&&1===ct.getDisplayedLeafColumns().length;)Xe=ct,ct=ct.getParent();null!=Xe?Xe.getLeafColumns().forEach(function(Pt){m.includes(Pt)||m.push(Pt)}):m.includes(Ge)||m.push(Ge)}),e=m}var v=e.slice();this.columnModel.sortColumnsLikeGridColumns(v);var _=this.calculateValidMoves(v,h,n),y=this.calculateOldIndex(v);if(0!==_.length){var b=_[0],R=null!==y&&!r;if(t==Ei.HeaderCell&&(R=null!==y),!R||a||!(l&&b>=y||h&&b<=y)){for(var P=this.columnModel.getAllDisplayedColumns(),H=[],te=null,X=0;X<_.length;X++){var fe=_[X],ge=this.columnModel.getProposedColumnOrder(v,fe);if(this.columnModel.doesOrderPassRules(ge)){var Oe=ge.filter(function(Ge){return P.includes(Ge)});if(null===te)te=Oe;else if(!Ne.areEqual(Oe,te))break;var Qe=this.groupFragCount(ge);H.push({move:fe,fragCount:Qe})}}0!==H.length&&(H.sort(function(Ge,Xe){return Ge.fragCount-Xe.fragCount}),this.columnModel.moveColumns(v,H[0].move,"uiColumnDragged"))}}},o.prototype.groupFragCount=function(t){function e(a){for(var l=[],h=a.getOriginalParent();null!=h;)l.push(h),h=h.getOriginalParent();return l}for(var i=0,n=function(a){var l,h=e(t[a]),m=e(t[a+1]);l=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}(h.length>m.length?[h,m]:[m,h],2),m=l[1],(h=l[0]).forEach(function(v){-1===m.indexOf(v)&&i++})},r=0;r0){for(var b=0;b0?P=m.indexOf(h[v-1])+1:-1===(P=m.indexOf(h[0]))&&(P=0);var te=[P],X=function(et,Ge){return et-Ge};if(e){for(var fe=P+1,ge=a.length-1;fe<=ge;)te.push(fe),fe++;te.sort(X)}else{ge=a.length-1;for(var Oe=a[fe=P];fe<=ge&&this.isColumnHidden(r,Oe);)fe++,te.push(fe),Oe=a[fe];for(fe=P-1;fe>=0;)te.push(fe),fe--;te.sort(X).reverse()}return te},o.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},o.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?si.ICON_LEFT:si.ICON_RIGHT,!0))},o.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(si.ICON_MOVE))},o.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,i=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=i.scrollHorizontally(-t):this.needToMoveRight&&(e=i.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter(function(l){return!l.getColDef().lockPinned});r.length>0&&(this.dragAndDropService.setGhostIcon(si.ICON_PINNED),this.failedMoveAttempts>7)&&(this.setColumnsPinned(r,this.needToMoveLeft?N.PINNED_LEFT:N.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge())}},la([w("columnModel")],o.prototype,"columnModel",void 0),la([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),la([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),la([w("ctrlsService")],o.prototype,"ctrlsService",void 0),la([me],o.prototype,"init",null),o}(),a_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ca=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},l_=function(o){function t(e,i){var n=o.call(this)||this;return n.pinned=e,n.eContainer=i,n}return a_(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){switch(e.pinned){case N.PINNED_LEFT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case N.PINNED_RIGHT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]]}})},t.prototype.isInterestedIn=function(e){return e===Ei.HeaderCell||e===Ei.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Hf(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new o_(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Ei.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},ca([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ca([w("columnModel")],t.prototype,"columnModel",void 0),ca([w("ctrlsService")],t.prototype,"ctrlsService",void 0),ca([me],t.prototype,"postConstruct",null),ca([me],t.prototype,"init",null),t}(ve),uu=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},pu=function(){function o(){}return o.getHeaderClassesFromColDef=function(t,e,i,n){return z(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,i,n)},o.getToolPanelClassesFromColDef=function(t,e,i,n){return z(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,i,n)},o.getClassParams=function(t,e,i,n){return{colDef:t,column:i,columnGroup:n,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()}},o.getColumnClassesFromCollDef=function(t,e,i,n,r){return z(t)?[]:"string"==typeof(a="function"==typeof t?t(this.getClassParams(e,i,n,r)):t)?[a]:Array.isArray(a)?function(){for(var o=[],t=0;t=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},u_=function(o){function t(e){var i=o.call(this,t.TEMPLATE,e)||this;return i.headerCompVersion=0,i.column=e.getColumnGroupChild(),i.pinned=e.getPinned(),i}return d_(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui(),n=function(l,h,m){var v=m||i;null!=h&&""!=h?v.setAttribute(l,h):v.removeAttribute(l)};this.ctrl.setComp({setWidth:function(l){return i.style.width=l},addOrRemoveCssClass:function(l,h){return e.addOrRemoveCssClass(l,h)},setColId:function(l){return n("col-id",l)},setTitle:function(l){return n("title",l)},setAriaDescription:function(l){return tl(i,l)},setAriaSort:function(l){return l?Qp(i,l):fd(i)},setUserCompDetails:function(l){return e.setUserCompDetails(l)},getUserCompInstance:function(){return e.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var a=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",a)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var i=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then(function(r){return i.afterCompCreated(n,r)})},t.prototype.afterCompCreated=function(e,i){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(i)},t.TEMPLATE='
    \n \n \n
    ',jl([le("eResize")],t.prototype,"eResize",void 0),jl([le("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),jl([me],t.prototype,"postConstruct",null),jl([Et],t.prototype,"destroyHeaderComp",null),t}(Kd),p_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),hu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},h_=function(o){function t(e){return o.call(this,t.TEMPLATE,e)||this}return p_(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui(),n=function(a,l){return null!=l?i.setAttribute(a,l):i.removeAttribute(a)};this.ctrl.setComp({addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},addOrRemoveResizableCssClass:function(a,l){return e.eResize.classList.toggle(a,l)},setWidth:function(a){return i.style.width=a},setColId:function(a){return i.setAttribute("col-id",a)},setAriaExpanded:function(a){return n("aria-expanded",a)},setTitle:function(a){return n("title",a)},setUserCompDetails:function(a){return e.setUserCompDetails(a)}},i,this.eResize)},t.prototype.setUserCompDetails=function(e){var i=this;e.newAgStackInstance().then(function(n){return i.afterHeaderCompCreated(n)})},t.prototype.afterHeaderCompCreated=function(e){var i=this,n=function(){return i.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='
    \n \n
    ',hu([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),hu([le("eResize")],t.prototype,"eResize",void 0),hu([me],t.prototype,"postConstruct",null),t}(Kd),f_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},di=(()=>(function(o){o.COLUMN_GROUP="group",o.COLUMN="column",o.FLOATING_FILTER="filter"}(di||(di={})),di))(),m_=function(o){function t(e){var i=o.call(this)||this;i.headerComps={};var n=e.getType()==di.COLUMN_GROUP?"ag-header-row-column-group":e.getType()==di.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.setTemplate('
    '),i.ctrl=e,i}return f_(t,o),t.prototype.init=function(){var e=this;this.ctrl.setComp({setTransform:function(n){return e.getGui().style.transform=n},setHeight:function(n){return e.getGui().style.height=n},setTop:function(n){return e.getGui().style.top=n},setHeaderCtrls:function(n){return e.setHeaderCtrls(n)},setWidth:function(n){return e.getGui().style.width=n},setAriaRowIndex:function(n){return Os(e.getGui(),n)}})},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var i=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach(function(h){var m=h.getInstanceId(),v=n[m];delete n[m],null==v&&(v=i.createHeaderComp(h),i.getGui().appendChild(v.getGui())),i.headerComps[m]=v}),Fe(n,function(h,m){i.getGui().removeChild(m.getGui()),i.destroyBean(m)}),this.gridOptionsWrapper.isEnsureDomOrder()){var a=Ut(this.headerComps);a.sort(function(h,m){return h.getCtrl().getColumnGroupChild().getLeft()-m.getCtrl().getColumnGroupChild().getLeft()});var l=a.map(function(h){return h.getGui()});Qa(this.getGui(),l)}}},t.prototype.createHeaderComp=function(e){var i;switch(this.ctrl.getType()){case di.COLUMN_GROUP:i=new h_(e);break;case di.FLOATING_FILTER:i=new Hh(e);break;default:i=new u_(e)}return this.createBean(i),i.setParentComponent(this),i},fu([me],t.prototype,"init",null),fu([Et],t.prototype,"destroyHeaderCtrls",null),t}(tt),g_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),mu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},zl=0,Yl=function(o){function t(e,i){var n=o.call(this)||this;return n.lastFocusEvent=null,n.columnGroupChild=e,n.parentRowCtrl=i,n.instanceId=e.getUniqueId()+"-"+zl++,n}return g_(t,o),t.prototype.shouldStopEventPropagation=function(e){var i=this.focusService.getFocusedHeader();return al(this.gridOptionsWrapper,e,i.headerRowIndex,i.column)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var i=this.getWrapperHasFocus();switch(e.key){case ae.PAGE_DOWN:case ae.PAGE_UP:case ae.PAGE_HOME:case ae.PAGE_END:i&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,i=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,i,this),this.addDestroyFunc(function(){return e.gridOptionsWrapper.setDomData(e.eGui,i,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",mu([w("focusService")],t.prototype,"focusService",void 0),mu([w("beans")],t.prototype,"beans",void 0),mu([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(ve),yt=(()=>(function(o){o.EVERYTHING="group",o.FILTER="filter",o.SORT="sort",o.MAP="map",o.AGGREGATE="aggregate",o.FILTER_AGGREGATES="filter_aggregates",o.PIVOT="pivot",o.NOTHING="nothing"}(yt||(yt={})),yt))(),mt=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r};function ro(o){return null!=o&&null!=o.getFrameworkComponentInstance?o.getFrameworkComponentInstance():o}var v_=function(){function o(){this.detailGridInfoMap={},this.destroyCalled=!1}return o.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},o.prototype.registerSideBarComp=function(t){this.sideBarComp=t},o.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case N.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case N.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case N.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},o.prototype.__getAlignedGridService=function(){return this.alignedGridsService},o.prototype.__getContext=function(){return this.context},o.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},o.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},o.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},o.prototype.forEachDetailGridInfo=function(t){var e=0;Fe(this.detailGridInfoMap,function(i,n){L(n)&&(t(n,e),e++)})},o.prototype.getDataAsCsv=function(t){if(Z.assertRegistered(Le.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},o.prototype.exportDataAsCsv=function(t){Z.assertRegistered(Le.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},o.prototype.getExcelExportMode=function(t){var e=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},e,t).exportMode},o.prototype.getDataAsExcel=function(t){if(Z.assertRegistered(Le.ExcelExportModule,"api.getDataAsExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(e)===Vo.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(t)}},o.prototype.exportDataAsExcel=function(t){if(Z.assertRegistered(Le.ExcelExportModule,"api.exportDataAsExcel")){var e=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(e)===Vo.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(t)}},o.prototype.getSheetDataForExcel=function(t){if(Z.assertRegistered(Le.ExcelExportModule,"api.getSheetDataForExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Vo.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},o.prototype.getMultipleSheetsAsExcel=function(t){if(Z.assertRegistered(Le.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},o.prototype.exportMultipleSheetsAsExcel=function(t){if(Z.assertRegistered(Le.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},o.prototype.setEnterpriseDatasource=function(t){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},o.prototype.setGridAriaProperty=function(t,e){if(t){var i=this.ctrlsService.getGridBodyCtrl().getGui(),n="aria-"+t;null===e?i.removeAttribute(n):i.setAttribute(n,e)}},o.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+N.ROW_MODEL_TYPE_SERVER_SIDE+"'")},o.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+N.ROW_MODEL_TYPE_SERVER_SIDE+"'")},o.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+N.ROW_MODEL_TYPE_INFINITE+"'")},o.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+N.ROW_MODEL_TYPE_VIEWPORT+"'")},o.prototype.setRowData=function(t){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},o.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},o.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},o.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},o.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},o.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},o.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},o.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},o.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},o.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},o.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},o.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},o.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},o.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e)},o.prototype.setAutoGroupColumnDef=function(t,e){this.gridOptionsWrapper.setProperty(we.PROP_AUTO_GROUP_COLUMN_DEF,t,!0)},o.prototype.setDefaultColDef=function(t,e){this.gridOptionsWrapper.setProperty(we.PROP_DEFAULT_COL_DEF,t,!0)},o.prototype.expireValueCache=function(){this.valueCache.expire()},o.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},o.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},o.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},o.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},o.prototype.refreshToolPanel=function(){!this.sideBarComp||this.sideBarComp.refresh()},o.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(t)},o.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},o.prototype.redrawRows=function(t){void 0===t&&(t={}),this.rowRenderer.redrawRows(t?t.rowNodes:void 0)},o.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},o.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(t){return t.refresh()})},o.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},o.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},o.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},o.prototype.getModel=function(){return this.rowModel},o.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},o.prototype.onGroupExpandedOrCollapsed=function(t){z(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),L(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:yt.MAP})},o.prototype.refreshInMemoryRowModel=function(t){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},o.prototype.refreshClientSideRowModel=function(t){z(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=yt.EVERYTHING,i={everything:yt.EVERYTHING,group:yt.EVERYTHING,filter:yt.FILTER,map:yt.MAP,aggregate:yt.AGGREGATE,sort:yt.SORT,pivot:yt.PIVOT};if(L(t)&&(e=i[t]),z(e))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(i).join(", "));else{var n=!this.gridOptionsWrapper.isSuppressAnimationFrame();this.clientSideRowModel.refreshModel({step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:n})}},o.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},o.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},o.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},o.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},o.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},o.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},o.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return ro(this.sideBarComp.getToolPanelInstance(t));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.addVirtualRowListener=function(t,e,i){"string"!=typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,i)},o.prototype.addRenderedRowListener=function(t,e,i){"virtualRowSelected"===t&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,e,i)},o.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},o.prototype.selectIndex=function(t,e,i){console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,e)},o.prototype.deselectIndex=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},o.prototype.selectNode=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!e})},o.prototype.deselectNode=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},o.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},o.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},o.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},o.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},o.prototype.recomputeAggregates=function(){z(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:yt.AGGREGATE})},o.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},o.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},o.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},o.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},o.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},o.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},o.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},o.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},o.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},o.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},o.prototype.ensureColIndexVisible=function(t){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},o.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},o.prototype.ensureIndexVisible=function(t,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},o.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},o.prototype.forEachLeafNode=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},o.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},o.prototype.forEachNodeAfterFilter=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},o.prototype.forEachNodeAfterFilterAndSort=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},o.prototype.getFilterInstance=function(t,e){var i=this.getFilterInstanceImpl(t,function(r){if(e){var a=ro(r);e(a)}});return ro(i)},o.prototype.getFilterInstanceImpl=function(t,e){var i=this.columnModel.getPrimaryColumn(t);if(i){var n=this.filterManager.getFilterComponent(i,"NO_UI"),r=n&&n.resolveNow(null,function(a){return a});return r?setTimeout(e,0,r):n&&n.then(function(a){e(a)}),r}},o.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},o.prototype.getStatusPanel=function(t){if(this.statusBarService)return ro(this.statusBarService.getStatusPanel(t))},o.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},o.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},o.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},o.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},o.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},o.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},o.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},o.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},o.prototype.setFocusedCell=function(t,e,i){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:i,forceBrowserFocus:!0})},o.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(we.PROP_SUPPRESS_ROW_DRAG,t)},o.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(we.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},o.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(we.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},o.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},o.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},o.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},o.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(we.PROP_HEADER_HEIGHT,t)},o.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(we.PROP_DOM_LAYOUT,t)},o.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},o.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(we.PROP_FILL_HANDLE_DIRECTION,t)},o.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GROUP_HEADER_HEIGHT,t)},o.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(we.PROP_FLOATING_FILTERS_HEIGHT,t)},o.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PIVOT_HEADER_HEIGHT,t)},o.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},o.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},o.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(we.PROP_DOES_EXTERNAL_FILTER_PASS,t)},o.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(we.PROP_NAVIGATE_TO_NEXT_CELL,t)},o.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(we.PROP_TAB_TO_NEXT_CELL,t)},o.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(we.PROP_TAB_TO_NEXT_HEADER,t)},o.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(we.PROP_NAVIGATE_TO_NEXT_HEADER,t)},o.prototype.setRowGroupPanelShow=function(t){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",t)},o.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GROUP_ROW_AGG_NODES,t)},o.prototype.setGetGroupRowAgg=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_GROUP_ROW_AGG,t)},o.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},o.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_CHILD_COUNT,t)},o.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PROCESS_ROW_POST_CREATE,t)},o.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_ROW_NODE_ID,t)},o.prototype.setGetRowId=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_ROW_ID,t)},o.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_ROW_CLASS,t)},o.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_FULL_WIDTH_CELL,t)},o.prototype.setIsFullWidthRow=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_FULL_WIDTH_ROW,t)},o.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_ROW_SELECTABLE,t)},o.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_ROW_MASTER,t)},o.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(we.PROP_POST_SORT,t)},o.prototype.setPostSortRows=function(t){this.gridOptionsWrapper.setProperty(we.PROP_POST_SORT_ROWS,t)},o.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_DOCUMENT,t)},o.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_CONTEXT_MENU_ITEMS,t)},o.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_MAIN_MENU_ITEMS,t)},o.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},o.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(we.PROP_SEND_TO_CLIPBOARD,t)},o.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},o.prototype.setProcessSecondaryColDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(t)},o.prototype.setProcessSecondaryColGroupDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(t)},o.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PROCESS_PIVOT_RESULT_COL_DEF,t)},o.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,t)},o.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(we.PROP_POST_PROCESS_POPUP,t)},o.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(we.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},o.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(we.PROP_INITIAL_GROUP_ORDER_COMPARATOR,t)},o.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_CHART_TOOLBAR_ITEMS,t)},o.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(we.PROP_PAGINATION_NUMBER_FORMATTER,t)},o.prototype.setGetServerSideStoreParams=function(t){this.setGetServerSideGroupLevelParams(t)},o.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_SERVER_SIDE_GROUP_PARAMS,t)},o.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},o.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},o.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(we.PROP_IS_SERVER_SIDE_GROUP,t)},o.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},o.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_ROW_STYLE,t)},o.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GET_ROW_HEIGHT,t)},o.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},o.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},o.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},o.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},o.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},o.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",Pc.parse(t))},o.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(we.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},o.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},o.prototype.doLayout=function(){Ve(function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")},"doLayoutDeprecated")},o.prototype.resetRowHeights=function(){if(L(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},o.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},o.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},o.prototype.setGroupDisplayType=function(t){this.gridOptionsWrapper.setProperty(we.PROP_GROUP_DISPLAY_TYPE,t)},o.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},o.prototype.getValue=function(t,e){var i=this.columnModel.getPrimaryColumn(t);return z(i)&&(i=this.columnModel.getGridColumn(t)),z(i)?null:this.valueService.getValue(i,e)},o.prototype.addEventListener=function(t,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,i)},o.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},o.prototype.removeEventListener=function(t,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,i)},o.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},o.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},o.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},o.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Ji.bind(window,this,"Grid API"),100)},o.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},o.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode(function(t){return t.quickFilterAggregateText=null})},o.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},o.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},o.prototype.camelCaseToHumanReadable=function(t){return us(t)},o.prototype.addRangeSelection=function(t){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},o.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},o.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},o.prototype.undoCellEditing=function(){this.undoRedoService.undo()},o.prototype.redoCellEditing=function(){this.undoRedoService.redo()},o.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},o.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},o.prototype.getChartModels=function(){if(Z.assertRegistered(Le.RangeSelectionModule,"api.getChartModels")&&Z.assertRegistered(Le.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},o.prototype.getChartRef=function(t){if(Z.assertRegistered(Le.RangeSelectionModule,"api.getChartRef")&&Z.assertRegistered(Le.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},o.prototype.getChartImageDataURL=function(t){if(Z.assertRegistered(Le.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},o.prototype.downloadChart=function(t){if(Z.assertRegistered(Le.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},o.prototype.openChartToolPanel=function(t){if(Z.assertRegistered(Le.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},o.prototype.closeChartToolPanel=function(t){if(Z.assertRegistered(Le.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},o.prototype.createRangeChart=function(t){if(Z.assertRegistered(Le.RangeSelectionModule,"api.createRangeChart")&&Z.assertRegistered(Le.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},o.prototype.createCrossFilterChart=function(t){if(Z.assertRegistered(Le.RangeSelectionModule,"api.createCrossFilterChart")&&Z.assertRegistered(Le.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},o.prototype.restoreChart=function(t,e){if(Z.assertRegistered(Le.RangeSelectionModule,"api.restoreChart")&&Z.assertRegistered(Le.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},o.prototype.createPivotChart=function(t){if(Z.assertRegistered(Le.RangeSelectionModule,"api.createPivotChart")&&Z.assertRegistered(Le.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},o.prototype.copyToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(t)},o.prototype.copySelectedRowsToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t)},o.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},o.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},o.prototype.showColumnMenuAfterButtonClick=function(t,e){var i=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(i,e,"columnMenu")},o.prototype.showColumnMenuAfterMouseClick=function(t,e){var i=this.columnModel.getGridColumn(t);i||(i=this.columnModel.getPrimaryColumn(t)),i?this.menuFactory.showMenuAfterMouseEvent(i,e):console.error("AG Grid: column '"+t+"' not found")},o.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},o.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(we.PROP_POPUP_PARENT,t)},o.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},o.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},o.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(ro)},o.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(ro)},o.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},o.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},o.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var i={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var r=this.navigationService.getCellByPosition(i);!r||r.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},o.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},o.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},o.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},o.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},o.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},o.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},o.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},o.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},o.prototype.setDeltaSort=function(t){this.gridOptionsWrapper.setProperty("deltaSort",t)},o.prototype.updateRowData=function(t){return Ve(function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")},"updateRowData deprecated"),this.applyTransaction(t)},o.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},o.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},o.prototype.batchUpdateRowData=function(t,e){Ve(function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")},"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,e)},o.prototype.insertItemsAtIndex=function(t,e,i){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},o.prototype.removeItems=function(t,e){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var i=t.map(function(n){return n.data});this.updateRowData({add:null,addIndex:null,update:null,remove:i})},o.prototype.addItems=function(t,e){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},o.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},o.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},o.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},o.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},o.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},o.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},o.prototype.purgeEnterpriseCache=function(t){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(t)},o.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},o.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},o.prototype.refreshServerSideStore=function(t){return Ve(function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")},"refreshServerSideStore-renamed"),this.refreshServerSide(t)},o.prototype.getServerSideStoreState=function(){return Ve(function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")},"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},o.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},o.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},o.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},o.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},o.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},o.prototype.setVirtualRowCount=function(t,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,e)},o.prototype.setInfiniteRowCount=function(t,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,e)},o.prototype.setRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},o.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},o.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},o.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},o.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},o.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},o.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},o.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},o.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},o.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},o.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},o.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},o.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},o.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},o.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},o.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},o.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},o.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},o.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},o.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},o.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},o.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},o.prototype.setRowClass=function(t){this.gridOptionsWrapper.setProperty(we.PROP_ROW_CLASS,t)},mt([st("immutableService")],o.prototype,"immutableService",void 0),mt([st("csvCreator")],o.prototype,"csvCreator",void 0),mt([st("excelCreator")],o.prototype,"excelCreator",void 0),mt([w("rowRenderer")],o.prototype,"rowRenderer",void 0),mt([w("navigationService")],o.prototype,"navigationService",void 0),mt([w("filterManager")],o.prototype,"filterManager",void 0),mt([w("columnModel")],o.prototype,"columnModel",void 0),mt([w("selectionService")],o.prototype,"selectionService",void 0),mt([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),mt([w("valueService")],o.prototype,"valueService",void 0),mt([w("alignedGridsService")],o.prototype,"alignedGridsService",void 0),mt([w("eventService")],o.prototype,"eventService",void 0),mt([w("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),mt([w("context")],o.prototype,"context",void 0),mt([w("rowModel")],o.prototype,"rowModel",void 0),mt([w("sortController")],o.prototype,"sortController",void 0),mt([w("paginationProxy")],o.prototype,"paginationProxy",void 0),mt([w("focusService")],o.prototype,"focusService",void 0),mt([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),mt([st("rangeService")],o.prototype,"rangeService",void 0),mt([st("clipboardService")],o.prototype,"clipboardService",void 0),mt([st("aggFuncService")],o.prototype,"aggFuncService",void 0),mt([w("menuFactory")],o.prototype,"menuFactory",void 0),mt([st("contextMenuFactory")],o.prototype,"contextMenuFactory",void 0),mt([w("valueCache")],o.prototype,"valueCache",void 0),mt([w("animationFrameService")],o.prototype,"animationFrameService",void 0),mt([st("statusBarService")],o.prototype,"statusBarService",void 0),mt([st("chartService")],o.prototype,"chartService",void 0),mt([st("undoRedoService")],o.prototype,"undoRedoService",void 0),mt([st("rowNodeBlockLoader")],o.prototype,"rowNodeBlockLoader",void 0),mt([st("ssrmTransactionManager")],o.prototype,"serverSideTransactionManager",void 0),mt([w("ctrlsService")],o.prototype,"ctrlsService",void 0),mt([st("frameworkComponentWrapper")],o.prototype,"frameworkComponentWrapper",void 0),mt([me],o.prototype,"init",null),mt([Et],o.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),mt([be("gridApi")],o)}(),__=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gu=function(o){function t(e,i,n,r){var a=o.call(this)||this;return a.columnOrGroup=e,a.eCell=i,a.ariaEl=a.eCell.querySelector("[role=columnheader]")||a.eCell,a.colsSpanning=r,a.beans=n,a}return __(t,o),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?We(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,K.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,we.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),i=L(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&i&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,i=this.getColumnOrGroup(),n=i.getLeft(),r=i.getOldLeft(),a=this.modifyLeftForPrintLayout(i,r),l=this.modifyLeftForPrintLayout(i,n);this.setLeft(a),this.actualLeft=l,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===l&&e.setLeft(l)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),i=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,i),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,i){if(this.beans.gridOptionsWrapper.getDomLayout()!==N.DOM_LAYOUT_PRINT||e.getPinned()===N.PINNED_LEFT)return i;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===N.PINNED_RIGHT?r+this.beans.columnModel.getBodyContainerWidth()+i:r+i},t.prototype.setLeft=function(e){var i;if(L(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof K)i=this.columnOrGroup;else{var r=this.columnOrGroup.getLeafColumns();if(!r.length)return;r.length>1&&ol(this.ariaEl,r.length),i=r[0]}var a=this.beans.columnModel.getAriaColumnIndex(i);rl(this.ariaEl,a)},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([me],t.prototype,"postConstruct",null),t}(ve),C_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),vu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Kl=function(o){function t(e,i){var n=o.call(this)||this;return n.columns=e,n.element=i,n}return C_(t,o),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},vu([w("columnHoverService")],t.prototype,"columnHoverService",void 0),vu([me],t.prototype,"postConstruct",null),t}(ve),Vf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$l=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Bf=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.column=e,n}return Vf(t,o),t.prototype.setComp=function(e,i,n,r){o.prototype.setGui.call(this,i),this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r;var a=this.column.getColDef();this.active=!(!a.filter&&!a.filterFramework||!a.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=ei("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new $t(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(this.gridOptionsWrapper.getDocument().activeElement!==this.eGui){var a=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(a)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void a.focus();var l=this.findNextColumnWithFloatingFilter(e.shiftKey);!l||this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:l},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var i=this.beans.columnModel,n=this.column;do{if(!(n=e?i.getDisplayedColBefore(n):i.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();switch(e.key){case ae.UP:case ae.DOWN:i||e.preventDefault();case ae.LEFT:case ae.RIGHT:if(i)return;e.stopPropagation();case ae.ENTER:i&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case ae.ESCAPE:i||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&$n(e.relatedTarget,"ag-floating-filter");if(n&&r&&e.target===this.eGui){var a=this.lastFocusEvent;a&&a&&a.key===ae.TAB&&this.focusService.focusInto(this.eGui,a.shiftKey)}var m=this.getRowIndex();this.beans.focusService.setFocusedHeader(m,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Kl([this.column],this.eGui));var i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var n=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",n)}};this.addManagedListener(this.eventService,S.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.setupLeft=function(){var e=new gu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var i=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,i),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Js,n),a=this.userComponentFactory.getDefaultFloatingFilterType(i);null==a&&(a="agReadOnlyFloatingFilter");var l={column:this.column,filterParams:r,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(m){return e.parentFilterInstance(m)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var h=this.userComponentFactory.getFloatingFilterCompDetails(i,l,a);h&&this.comp.setCompDetails(h)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,function(i){return i&&i.getModel()}):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){this.getFilterComponent()?.then(function(n){e(ro(n))})},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var i=function(n){var r=e.comp.getFloatingFilterComp();if(r){var a=e.currentParentModel();r.then(function(l){l&&l.onParentModelChanged(a,n)})}};this.addManagedListener(this.column,K.EVENT_FILTER_CHANGED,i),this.filterManager.isFilterActive(this.column)&&i(null)}},t.prototype.setupWidth=function(){var e=this,i=function(){var n=e.column.getActualWidth()+"px";e.comp.setWidth(n)};this.addManagedListener(this.column,K.EVENT_WIDTH_CHANGED,i),i()},$l([w("filterManager")],t.prototype,"filterManager",void 0),$l([w("columnHoverService")],t.prototype,"columnHoverService",void 0),$l([w("menuFactory")],t.prototype,"menuFactory",void 0),t}(Yl),w_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Wf=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.pinned=e,l.column=i,l.eResize=n,l.comp=r,l.ctrl=a,l}return w_(t,o),t.prototype.postConstruct=function(){var r,a,e=this,i=this.column.getColDef(),n=[],h=function(){n.forEach(function(v){return v()}),n.length=0},m=function(){var v=e.column.isResizable(),_=!e.gridOptionsWrapper.isSuppressAutoSize()&&!i.suppressAutoSize;(v!==r||_!==a)&&(r=v,a=_,h(),function(){if(Ft(e.eResize,r),r){var v=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(n.push(v),a){var _=e.gridOptionsWrapper.isSkipHeaderOnAutoSize(),y=function(){e.columnModel.autoSizeColumn(e.column,_,"uiColumnResized")};e.eResize.addEventListener("dblclick",y);var b=new ki(e.eResize);b.addEventListener(ki.EVENT_DOUBLE_TAP,y),e.addDestroyFunc(function(){e.eResize.removeEventListener("dblclick",y),b.removeEventListener(ki.EVENT_DOUBLE_TAP,y),b.destroy()})}}}())};m(),this.addDestroyFunc(h),this.ctrl.addRefreshFunction(m)},t.prototype.onResizing=function(e,i){var n=this.normaliseResizeAmount(i);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+n}],this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var i=e,n=this.pinned!==N.PINNED_LEFT,r=this.pinned===N.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(i*=-1):r&&(i*=-1),i},Zl([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Zl([w("columnModel")],t.prototype,"columnModel",void 0),Zl([me],t.prototype,"postConstruct",null),t}(ve),Uf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),jo=function(o){function t(e,i,n){void 0===i&&(i="ag-checkbox"),void 0===n&&(n="checkbox");var r=o.call(this,e,i,n)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Uf(t,o),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),o.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,e):this.setValue(i)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,i){return this.refreshSelectedClass(e),this.setSelected(e,i),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,i){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,i||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,i,n){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:i,event:n});var r=this.getInputElement();this.eventService.dispatchEvent({type:S.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:i})},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var i=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,i,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Rn),jf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),da=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},zf=function(o){function t(e){var i=o.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.column=e;var n=e.getColDef();return i.filteredOnly=!!n&&!!n.headerCheckboxSelectionFilteredOnly,i}return jf(t,o),t.prototype.onSpaceKeyPressed=function(e){var i=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();i.isDisplayed()&&!i.getGui().contains(n.activeElement)&&(e.preventDefault(),i.setValue(!i.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new jo),this.cbSelectAll.addCssClass("ag-header-select-all"),Ti(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,S.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,jo.EVENT_CHANGED,this.onCbSelectAll.bind(this)),ud(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){!this.cbSelectAllVisible||this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){!this.cbSelectAllVisible||this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),i=this.getNextCheckboxState(e);this.cbSelectAll.setValue(i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),n=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",r+" ("+n+")"),this.cbSelectAll.setInputAriaLabel(r+" ("+n+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,i=0,n=0,r=function(a){e.gridOptionsWrapper.isGroupSelectsChildren()&&a.group||(a.isSelected()?i++:a.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:n,selected:i}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===N.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){!this.processingEventFromCheckbox&&this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),1)))},da([w("gridApi")],t.prototype,"gridApi",void 0),da([w("columnApi")],t.prototype,"columnApi",void 0),da([w("rowModel")],t.prototype,"rowModel",void 0),da([w("selectionService")],t.prototype,"selectionService",void 0),t}(ve),Yf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Kf=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.refreshFunctions=[],n.userHeaderClasses=new Set,n.ariaDescriptionProperties=new Map,n.column=e,n}return Yf(t,o),t.prototype.setComp=function(e,i,n,r){var a=this;o.prototype.setGui.call(this,i),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Wf(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new Kl([this.column],i)),this.createManagedBean(new gu(this.column,i,this.beans)),this.createManagedBean(new $t(i,{shouldStopEventPropagation:function(l){return a.shouldStopEventPropagation(l)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,K.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,e)},t.prototype.createParams=function(){var e=this,i=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:i.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(r){e.gridApi.showColumnMenuAfterButtonClick(e.column,r)},progressSort:function(r){e.sortController.progressSort(e.column,!!r,"uiColumnSorted")},setSort:function(r,a){e.sortController.setSortForColumn(e.column,r,!!a,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new zf(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e),e.key===ae.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===ae.ENTER&&this.onEnterKeyPressed(e)},t.prototype.onEnterKeyPressed=function(e){var i=this.comp.getUserCompInstance();i&&(e.ctrlKey||e.metaKey?this.menuEnabled&&i.showMenu&&(e.preventDefault(),i.showMenu()):this.sortable&&this.sortController.progressSort(this.column,e.shiftKey,"uiColumnSorted"))},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,n=this.createManagedBean(new Hl({getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},this.beans));n.setComp(this.comp),this.refreshFunctions.push(function(){return n.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,i=function(){var n=e.column.getColDef(),a=pu.getHeaderClassesFromColDef(n,e.gridOptionsWrapper,e.column,null),l=e.userHeaderClasses;e.userHeaderClasses=new Set(a),a.forEach(function(h){l.has(h)?l.delete(h):e.comp.addOrRemoveCssClass(h,!0)}),l.forEach(function(h){return e.comp.addOrRemoveCssClass(h,!1)})};this.refreshFunctions.push(i),i()},t.prototype.setDragSource=function(e){var i=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var n=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:Ei.HeaderCell,eElement:e,defaultIconName:n?si.ICON_HIDE:si.ICON_NOT_ALLOWED,getDragItem:function(){return i.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(r){var a,l;if(n){var h=(null===(l=null===(a=r)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(m){return!m.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(h,!0,"uiColumnMoved")}},onGridExit:function(r){var a,l;if(n){var h=(null===(l=null===(a=r)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(m){return!m.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(h,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var i=this.comp.getUserCompInstance();return!(!i||!i.refresh)&&i.refresh(e)},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!(this.gridOptionsWrapper.isSuppressMovableColumns()||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,i=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,K.EVENT_WIDTH_CHANGED,i),i()},t.prototype.setupMovingCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,K.EVENT_MOVING_CHANGED,i),i()},t.prototype.setupMenuClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,K.EVENT_MENU_VISIBLE_CHANGED,i),i()},t.prototype.setupSortableClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.column,K.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,i=function(){var n=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",n)};i(),this.addRefreshFunction(i)},t.prototype.setupAutoHeight=function(e){var a,i=this,n=function(v){if(i.isAlive()){var _=Zn(i.getGui()),P=e.offsetHeight+_.paddingTop+_.paddingBottom;if(v<5){var H=i.beans.gridOptionsWrapper.getDocument();if(!H||!H.contains(e)||0==P)return void i.beans.frameworkOverrides.setTimeout(function(){return n(v+1)},0)}i.columnModel.setColumnHeaderHeight(i.column,P)}},r=!1,l=function(){var v=i.column.isAutoHeaderHeight();v&&!r&&h(),!v&&r&&m()},h=function(){r=!0,n(0),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),a=i.resizeObserverService.observeResize(e,function(){return n(0)})},m=function(){r=!1,a&&a(),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),a=void 0};l(),this.addDestroyFunc(function(){return m()}),this.addManagedListener(this.column,K.EVENT_WIDTH_CHANGED,function(){return r&&n(0)}),this.addManagedListener(this.column,K.EVENT_SORT_CHANGED,function(){r&&i.beans.frameworkOverrides.setTimeout(function(){return n(0)})}),this.addRefreshFunction(l)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Ss(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,i){null!=i?this.ariaDescriptionProperties.set(e,i):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var n=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",n)}};this.addManagedListener(this.eventService,S.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.setupFilterCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,K.EVENT_FILTER_ACTIVE_CHANGED,i),i()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,i=function(n){return e.setActiveHeader("mouseenter"===n.type)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},Vn([w("columnModel")],t.prototype,"columnModel",void 0),Vn([w("columnHoverService")],t.prototype,"columnHoverService",void 0),Vn([w("sortController")],t.prototype,"sortController",void 0),Vn([w("menuFactory")],t.prototype,"menuFactory",void 0),Vn([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Vn([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Vn([w("gridApi")],t.prototype,"gridApi",void 0),Vn([w("columnApi")],t.prototype,"columnApi",void 0),Vn([Et],t.prototype,"removeDragSource",null),t}(Yl),$f=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ua=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Zf=function(o){function t(e,i,n,r){var a=o.call(this)||this;return a.eResize=i,a.comp=e,a.pinned=n,a.columnGroup=r,a}return $f(t,o),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var i=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(i),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",function(){var r=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(l){l.getColDef().suppressAutoSize||r.push(l.getColId())}),r.length>0&&e.columnModel.autoSizeColumns({columns:r,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()})}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var i=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter(function(a){return a.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromStartWidth+=a.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromRatios.push(a.getActualWidth()/i.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,i){var n=this.normaliseDragChange(i);this.resizeColumns(this.resizeStartWidth+n,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,i){void 0===i&&(i=!0);var n=[];n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(e-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:n,finished:i,source:"uiColumnDragged"}),i&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,i=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=i.filter(function(n){return n.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(n){return e.resizeStartWidth+=n.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(n){return e.resizeRatios.push(n.getActualWidth()/e.resizeStartWidth)})},t.prototype.normaliseDragChange=function(e){var i=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==N.PINNED_LEFT&&(i*=-1):this.pinned===N.PINNED_RIGHT&&(i*=-1),i},ua([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),ua([w("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),ua([w("columnModel")],t.prototype,"columnModel",void 0),ua([me],t.prototype,"postConstruct",null),t}(ve),qf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xf=function(o){function t(e,i){var n=o.call(this)||this;return n.removeChildListenersFuncs=[],n.columnGroup=i,n.comp=e,n}return qf(t,o),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,x.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(n){n.addEventListener(K.EVENT_WIDTH_CHANGED,i),n.addEventListener(K.EVENT_VISIBLE_CHANGED,i),e.removeChildListenersFuncs.push(function(){n.removeEventListener(K.EVENT_WIDTH_CHANGED,i),n.removeEventListener(K.EVENT_VISIBLE_CHANGED,i)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([me],t.prototype,"postConstruct",null),t}(ve),b_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ql=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},x_=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.columnGroup=e,n}return b_(t,o),t.prototype.setComp=function(e,i,n){o.prototype.setGui.call(this,i),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),a=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Kl(a,i)),this.createManagedBean(new gu(this.columnGroup,i,this.beans)),this.createManagedBean(new Xf(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Zf(e,n,r,this.columnGroup)),this.createManagedBean(new $t(i,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},t.prototype.setupUserComp=function(){var e=this,i=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(m){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),m,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!i){for(var r=this.columnGroup,a=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===a.length;)r=r.getParent();var l=r.getColGroupDef();l&&(i=l.headerName),i||(i=a?this.columnModel.getDisplayNameForColumn(a[0],"header",!0):"")}var h=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(h)},t.prototype.setupTooltip=function(){var e=this,i=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(n.getColDef=function(){return i}),this.createManagedBean(new Hl(n,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,D.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,D.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var i=e.isExpanded();this.comp.setAriaExpanded(this.expandable?i?"true":"false":void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,i=this.columnGroup.getColGroupDef(),n=pu.getHeaderClassesFromColDef(i,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach(function(r){return e.comp.addOrRemoveCssClass(r,!0)})},t.prototype.setupMovingCss=function(){var e=this,n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};n.forEach(function(a){e.addManagedListener(a,K.EVENT_MOVING_CHANGED,r)}),r()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.columnGroup)}},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();if(this.expandable&&i&&e.key===ae.ENTER){var n=this.columnGroup,r=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),r,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var i=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),a={type:Ei.HeaderCell,eElement:e,defaultIconName:r?si.ICON_HIDE:si.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach(function(l){return l.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return n.forEach(function(l){return l.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(l){var h,m;if(r){var v=(null===(m=null===(h=l)||void 0===h?void 0:h.columns)||void 0===m?void 0:m.filter(function(_){return!_.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(v,!0,"uiColumnMoved")}},onGridExit:function(l){var h,m;if(r){var v=(null===(m=null===(h=l)||void 0===h?void 0:h.columns)||void 0===m?void 0:m.filter(function(_){return!_.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(v,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(a,!0),this.addDestroyFunc(function(){return i.dragAndDropService.removeDragSource(a)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i={};e.forEach(function(r){return i[r.getId()]=r.isVisible()});var n=[];return this.columnModel.getAllDisplayedColumns().forEach(function(r){e.indexOf(r)>=0&&(n.push(r),Ae(e,r))}),e.forEach(function(r){return n.push(r)}),{columns:n,visibleState:i}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(n){(n.getColDef().suppressMovable||n.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsWrapper.isSuppressMovableColumns()},ql([w("columnModel")],t.prototype,"columnModel",void 0),ql([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ql([w("gridApi")],t.prototype,"gridApi",void 0),ql([w("columnApi")],t.prototype,"columnApi",void 0),t}(Yl),Jf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),_u=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yu=0,Ql=function(o){function t(e,i,n){var r=o.call(this)||this;return r.instanceId=yu++,r.headerCellCtrls={},r.rowIndex=e,r.pinned=i,r.type=n,r}return Jf(t,o),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Yn()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,S.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,we.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,we.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,we.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,we.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,we.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,we.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return lt(this.headerCellCtrls).find(function(i){return i.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===N.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(N.PINNED_RIGHT)+this.columnModel.getContainerWidth(N.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),i=[],n=0;this.columnModel.hasFloatingFilters()&&(e++,n=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),a=this.columnModel.getColumnHeaderRowHeight(),h=e-(1+n),m=0;m=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},wu=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},tm=function(o){function t(e){var i=o.call(this)||this;return i.groupsRowCtrls=[],i.pinned=e,i}return Cu(t,o),t.prototype.setComp=function(e,i){this.comp=e,this.eViewport=i,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var i=new l_(this.pinned,e);this.createManagedBean(i)},t.prototype.refresh=function(e){var i=this;void 0===e&&(e=!1);var v,n=new qr,r=this.focusService.getFocusHeaderToUseAfterRefresh();(function(){var v=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var _=0;_=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},bu=function(o){function t(e){var i=o.call(this)||this;return i.headerRowComps={},i.rowCompsList=[],i.pinned=e,i}return im(t,o),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var i={addOrRemoveCssClass:function(r,a){return e.addOrRemoveCssClass(r,a)},setCtrls:function(r){return e.setCtrls(r)},setCenterWidth:function(r){return e.eCenterContainer.style.width=r},setContainerTransform:function(r){return e.eCenterContainer.style.transform=r},setPinnedContainerWidth:function(r){var a=e.getGui();a.style.width=r,a.style.maxWidth=r,a.style.minWidth=r}};this.createManagedBean(new tm(this.pinned)).setComp(i,this.getGui())},t.prototype.selectAndSetTemplate=function(){this.setTemplate(this.pinned==N.PINNED_LEFT?t.PINNED_LEFT_TEMPLATE:this.pinned==N.PINNED_RIGHT?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var r,i=this,n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],e.forEach(function(l){var h=l.getInstanceId(),m=n[h];delete n[h];var v=m||i.createBean(new m_(l));i.headerRowComps[h]=v,i.rowCompsList.push(v),function(l){var h=l.getGui();h.parentElement!=i.eRowContainer&&i.eRowContainer.appendChild(h),r&&qa(i.eRowContainer,h,r),r=h}(v)}),Ut(n).forEach(function(l){return i.destroyRowComp(l)})},t.PINNED_LEFT_TEMPLATE='"},t.prototype.getValues=function(e){var i=this,n=[];return this.forEachInput(function(r,a,l,h){e===l&&a0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(fs()||Gr()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[ei.EQUALS,ei.NOT_EQUAL,ei.LESS_THAN,ei.LESS_THAN_OR_EQUAL,ei.GREATER_THAN,ei.GREATER_THAN_OR_EQUAL,ei.IN_RANGE,ei.BLANK,ei.NOT_BLANK],Xn([ce("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),Xn([ce("eValue-index1-1")],t.prototype,"eValueTo1",void 0),Xn([ce("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),Xn([ce("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(ei),zs=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jn=function(){return Jn=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Jr=function(o){function t(){return o.call(this,"textFilter")||this}return zs(t,o),t.trimInput=function(e){var i=e&&e.trim();return""===i?e:i},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(e){o.prototype.setParams.call(this,e),this.textFilterParams=e,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Fe.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(i){return e(i.filterOption,i.value,i.filterText)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var i=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:i},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var i=this,n=[];return this.forEachInput(function(r,a,l,h){if(e===l&&a\n \n \n
    '},t.prototype.mapValuesFromModel=function(e){var i=e||{};return[i.filter||null,i.filterTo||null].slice(0,this.getNumberOfInputs(i.type))},t.prototype.evaluateNullValue=function(e){return!!e&&[Ht.NOT_EQUAL,Ht.NOT_CONTAINS,Ht.BLANK].indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,i,n,r){var a=this,l=e.map(function(te){return a.formatter(te)})||[],h=this.formatter(i),m=this.textFilterParams,v=m.api,_=m.colDef,y=m.column,b=m.columnApi,R=m.context,I=m.textFormatter;if(n.type===Ht.BLANK)return this.isBlank(i);if(n.type===Ht.NOT_BLANK)return!this.isBlank(i);var H={api:v,colDef:_,column:y,columnApi:b,context:R,node:r.node,data:r.data,filterOption:n.type,value:h,textFormatter:I};return l.some(function(te){return a.matcher(Jn(Jn({},H),{filterText:te}))})},t.DEFAULT_FILTER_OPTIONS=[Ht.CONTAINS,Ht.NOT_CONTAINS,Ht.EQUALS,Ht.NOT_EQUAL,Ht.STARTS_WITH,Ht.ENDS_WITH,Ht.BLANK,Ht.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.value,r=e.filterText;if(null==r)return!1;switch(e.filterOption){case t.CONTAINS:return n.indexOf(r)>=0;case t.NOT_CONTAINS:return n.indexOf(r)<0;case t.EQUALS:return n===r;case t.NOT_EQUAL:return n!=r;case t.STARTS_WITH:return 0===n.indexOf(r);case t.ENDS_WITH:var a=n.lastIndexOf(r);return a>=0&&a===n.length-r.length;default:return!1}},mr([ce("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),mr([ce("eValue-index1-1")],t.prototype,"eValueTo1",void 0),mr([ce("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),mr([ce("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Ht),hh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ao=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Po=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return hh(t,o),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n \n ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,i){this.isEventFromFloatingFilter(i)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(e){o.prototype.init.call(this,e),this.params=e,this.applyActive=fl.isUseApplyButton(this.params.filterParams);var i=this.params.filterParams.allowedCharPattern;if(null!=i&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:i}}),!this.isReadOnly()){var n=fl.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=Oe(this.syncUpWithParentFilter.bind(this),n),a=this.eFloatingFilterInput.getGui();this.addManagedListener(a,"input",r),this.addManagedListener(a,"keypress",r),this.addManagedListener(a,"keydown",r)}var l=e.column.getDefinition();(this.isReadOnly()||l.filterParams&&l.filterParams.filterOptions&&1===l.filterParams.filterOptions.length&&"inRange"===l.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var h=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),m=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(h+" "+m("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var i=this;if(!this.applyActive||e.key===le.ENTER){var r=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(r=Jr.trimInput(r),this.eFloatingFilterInput.setValue(r,!0)),this.params.parentFilterInstance(function(a){a&&a.onFloatingFilterChanged(i.getLastType()||null,r||null)})}},t.prototype.conditionToString=function(e,i){return e.type==Ht.IN_RANGE||2===(i||{}).numberOfInputs?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},Ao([w("columnModel")],t.prototype,"columnModel",void 0),Ao([ce("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),Ao([ve],t.prototype,"postConstruct",null),t}(Cl),fh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),mh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return fh(t,o),t.prototype.getDefaultFilterOptions=function(){return js.DEFAULT_FILTER_OPTIONS},t}(Po),Rd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Rd(t,o),t.prototype.getDefaultFilterOptions=function(){return Jr.DEFAULT_FILTER_OPTIONS},t}(Po),ki=function(){function o(t,e){var i=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Xt,this.eElement=t,this.preventMouseClick=e;var n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",a,{passive:!1}),this.destroyFuncs.push(function(){i.eElement.removeEventListener("touchstart",n,{passive:!0}),i.eElement.removeEventListener("touchmove",r,{passive:!0}),i.eElement.removeEventListener("touchend",a,{passive:!1})})}return o.prototype.getActiveTouch=function(t){for(var e=0;e0&&t-this.lastTapTime>o.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:o.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=t},o.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},o.EVENT_TAP="tap",o.EVENT_DOUBLE_TAP="doubleTap",o.EVENT_LONG_TAP="longTap",o.DOUBLE_TAP_MILLIS=500,o}(),vh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),eo=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},bl=function(o){function t(e){var i=o.call(this)||this;return e||i.setTemplate(t.TEMPLATE),i}return vh(t,o),t.prototype.attachCustomElements=function(e,i,n,r,a){this.eSortOrder=e,this.eSortAsc=i,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=a},t.prototype.setupSort=function(e,i){var n=this;void 0===i&&(i=!1),this.column=e,this.suppressOrder=i,this.setupMultiSortIndicator(),!this.column.getColDef().sortable||(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,function(){return n.onSortChanged()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return n.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,i,n){if(null!=i){var r=Jt(e,this.gridOptionsWrapper,n);r&&i.appendChild(r)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!("asc"===e)),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!("desc"===e)),this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",r||!(null==e))}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&i&&(this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!e)}},t.prototype.updateSortOrder=function(){var e=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),r=this.sortController.getDisplaySortIndexForColumn(this.column)??-1,a=n.some(function(h){return e.sortController.getDisplaySortIndexForColumn(h)??!1});Lt(this.eSortOrder,r>=0&&a),r>=0?this.eSortOrder.innerHTML=(r+1).toString():zi(this.eSortOrder)}},t.TEMPLATE='\n \n \n \n \n \n ',eo([ce("eSortOrder")],t.prototype,"eSortOrder",void 0),eo([ce("eSortAsc")],t.prototype,"eSortAsc",void 0),eo([ce("eSortDesc")],t.prototype,"eSortDesc",void 0),eo([ce("eSortMixed")],t.prototype,"eSortMixed",void 0),eo([ce("eSortNone")],t.prototype,"eSortNone",void 0),eo([w("columnModel")],t.prototype,"columnModel",void 0),eo([w("sortController")],t.prototype,"sortController",void 0),t}(Je),xl=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),rn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},pv=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return xl(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=Ye(this.params.template,t.TEMPLATE);return e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var i=en(this.currentDisplayName);this.eText&&(this.eText.innerHTML=i)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,i,n){if(null!=i){var r=Jt(e,this.gridOptionsWrapper,n);r&&i.appendChild(r)}},t.prototype.setupTap=function(){var e=this,i=this.gridOptionsWrapper;if(!i.isSuppressTouch()){var n=new ki(this.getGui(),!0),r=i.isSuppressMenuHide(),a=r&&N(this.eMenu),l=a?new ki(this.eMenu,!0):n;this.params.enableMenu&&this.addManagedListener(l,ki[a?"EVENT_TAP":"EVENT_LONG_TAP"],function(_){i.getApi().showColumnMenuAfterMouseClick(e.params.column,_.touchStart)}),this.params.enableSorting&&this.addManagedListener(n,ki.EVENT_TAP,function(_){r&&e.eMenu.contains(_.touchStart.target)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}),this.addDestroyFunc(function(){return n.destroy()}),a&&this.addDestroyFunc(function(){return l.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),i=Yn()&&e;return this.params.enableMenu&&!i},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return void Nn(this.eMenu);var i=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",i)}},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new bl(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var i=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,Y.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=(new Date).getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(r){var a=e.params.column.isMoving(),l=(new Date).getTime();a||l-e.lastMovingChanged<50||e.params.progressSort(i?r.ctrlKey||r.metaKey:r.shiftKey)});var n=function(){var r;if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var l=null===(r=e.columnModel.getSourceColumnsForGroupColumn(e.params.column))||void 0===r?void 0:r.every(function(m){return e.params.column.getSort()==m.getSort()});e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!l)}};this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},t.prototype.setupFilterIcon=function(){!this.eFilter||(this.addManagedListener(this.params.column,Y.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='',rn([w("sortController")],t.prototype,"sortController",void 0),rn([w("menuFactory")],t.prototype,"menuFactory",void 0),rn([w("columnModel")],t.prototype,"columnModel",void 0),rn([ce("eFilter")],t.prototype,"eFilter",void 0),rn([ce("eSortIndicator")],t.prototype,"eSortIndicator",void 0),rn([ce("eMenu")],t.prototype,"eMenu",void 0),rn([ce("eLabel")],t.prototype,"eLabel",void 0),rn([ce("eText")],t.prototype,"eText",void 0),rn([ce("eSortOrder")],t.prototype,"eSortOrder",void 0),rn([ce("eSortAsc")],t.prototype,"eSortAsc",void 0),rn([ce("eSortDesc")],t.prototype,"eSortDesc",void 0),rn([ce("eSortMixed")],t.prototype,"eSortMixed",void 0),rn([ce("eSortNone")],t.prototype,"eSortNone",void 0),t}(Je),El=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Od=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return El(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){this.params.template&&Ve(function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},"HeaderGroupComp.templateNotSupported")},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(a){if(!jt(a)){var l=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),l,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var n=function(a){Rt(a)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,P.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,P.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,i){var n=new ki(e,!0);this.addManagedListener(n,ki.EVENT_TAP,i),this.addDestroyFunc(function(){return n.destroy()}),this.addManagedListener(e,"click",i)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var i=this.params.columnGroup.isExpanded();Lt(this.eOpenIcon,i),Lt(this.eCloseIcon,!i)}else Lt(this.eOpenIcon,!1),Lt(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,i){var n=Jt(e,this.gridOptionsWrapper,null);n&&this.getRefElement(i).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Lt(this.eOpenIcon,!1),void Lt(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(N(e)){var i=en(e);this.getRefElement("agLabel").innerHTML=i}},t.TEMPLATE='',Sl([w("columnModel")],t.prototype,"columnModel",void 0),Sl([ce("agOpened")],t.prototype,"eOpenIcon",void 0),Sl([ce("agClosed")],t.prototype,"eCloseIcon",void 0),t}(Je),Rl=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Io=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Rl(t,o),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),o.prototype.setParentComponent.call(this,e)},t.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),o.prototype.destroy.call(this)},t}(Je),hv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Fo=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return hv(t,o),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),N(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var i=e.key;(i===le.LEFT||i===le.UP||i===le.RIGHT||i===le.DOWN||e.shiftKey&&i===le.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='
    \n \n
    ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ce("eTextArea")],t.prototype,"eTextArea",void 0),t}(Io),Ys=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ol=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Tl=function(o){function t(){var e=o.call(this,'
    ')||this;return e.startedByEnter=!1,e}return Ys(t,o),t.prototype.init=function(e){var i=this;if(this.focusAfterAttached=e.cellStartedEdit,z(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===le.ENTER;var n=!1;e.values.forEach(function(r){var a={value:r},l=i.valueFormatterService.formatValue(e.column,null,r);a.text=null!=l?l:r,i.eSelect.addOption(a),n=n||e.value===r}),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange(function(){return e.stopEditing()})}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ol([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ol([ce("eSelect")],t.prototype,"eSelect",void 0),t}(Io),Td=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fv=function(o){function t(){var e=o.call(this)||this;return Ve(function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')},"PopupSelectCellEditor.deprecated"),e}return Td(t,o),t.prototype.isPopup=function(){return!0},t}(Tl),yh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Md=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return yh(t,o),t.prototype.init=function(e){this.params=e;var n,i=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===le.BACKSPACE||e.eventKey===le.DELETE?n="":e.charPress?n=e.charPress:(n=this.getStartValue(e),e.eventKey!==le.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,n=this.getStartValue(e)),null!=n&&i.setValue(n,!0),null!=e.maxLength&&i.setMaxLength(e.maxLength),this.addManagedListener(i.getGui(),"keydown",function(r){var a=r.key;(a===le.PAGE_UP||a===le.PAGE_DOWN)&&r.preventDefault()})},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){zn()||i.getFocusableElement().focus();var n=i.getInputElement();if(this.highlightAllOnFocus)n.select();else{var r=i.getValue(),a=N(r)&&r.length||0;a&&n.setSelectionRange(a,a)}}},t.prototype.focusIn=function(){var e=this.eInput,i=e.getFocusableElement(),n=e.getInputElement();i.focus(),n.select()},t.prototype.getValue=function(){return this.params.parseValue(this.eInput.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='
    \n \n
    ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ce("eInput")],t.prototype,"eInput",void 0),t}(Io),mv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gv=function(o){function t(){var e=o.call(this)||this;return Ve(function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')},"PopupTextCellEditor.deprecated"),e}return mv(t,o),t.prototype.isPopup=function(){return!0},t}(Md),vv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Pd=function(o){function t(){var e=o.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e}return vv(t,o),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,i){var n=Math.abs(i),r=e.formatValue(n),a=N(r)?r:n,l=i>=0;this.eDelta.innerHTML=l?"\u2191"+a:"\u2193"+a,this.eDelta.classList.toggle("ag-value-change-delta-up",l),this.eDelta.classList.toggle("ag-value-change-delta-down",!l)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var i=this.refreshCount;window.setTimeout(function(){i===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),zi(this.eDelta)},t.prototype.refresh=function(e){var i=e.value;return i!==this.lastValue&&(N(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:N(e.value)?this.eValue.innerHTML=i:zi(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())&&("number"==typeof i&&"number"==typeof this.lastValue&&this.showDelta(e,i-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=i,!0)},t.TEMPLATE='',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([w("filterManager")],t.prototype,"filterManager",void 0),t}(Je),Id=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xh=function(o){function t(){var e=o.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return Id(t,o),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=vi(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout(function(){i===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){i===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},t.prototype.refresh=function(e){var i=e.value;return z(i)&&(i=""),i!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=i,N(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:N(e.value)?this.eCurrent.innerHTML=i:zi(this.eCurrent),!0)},t.TEMPLATE='\n \n ',function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([w("filterManager")],t.prototype,"filterManager",void 0),t}(Je),vn=(()=>(function(o){o[o.Above=0]="Above",o[o.Below=1]="Below"}(vn||(vn={})),vn))(),nt=function(){function o(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=o.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return o.prototype.setData=function(t){this.setDataCommon(t,!1)},o.prototype.updateData=function(t){this.setDataCommon(t,!0)},o.prototype.setDataCommon=function(t,e){var i=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var n=this.createDataChangedEvent(t,i,e);this.dispatchLocalEvent(n)},o.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},o.prototype.createDataChangedEvent=function(t,e,i){return{type:o.EVENT_DATA_CHANGED,node:this,oldData:e,newData:t,update:i}},o.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},o.prototype.getRowIndexString=function(){return this.rowPinned===G.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===G.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},o.prototype.createDaemonNode=function(){var t=new o(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},o.prototype.setDataAndId=function(t,e){var i=N(this.id)?this.createDaemonNode():null,n=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.beans.selectionService.syncInRowNode(this,i),this.checkRowSelectable();var r=this.createDataChangedEvent(t,n,!1);this.dispatchLocalEvent(r)},o.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!t||t(this))},o.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var i=this.calculateSelectedFromChildren();this.setSelected(i??!1)}},o.prototype.setId=function(t){var e=this.beans.gridOptionsWrapper.getRowIdFunc();if(e)if(this.data){var i=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(o.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+o.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},o.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],i=this;for(t&&(i=i.parent);i&&i.level>=0;)e.push(i.key),i=i.parent;return e.reverse(),e},o.prototype.isPixelInRange=function(t){return!(!N(this.rowTop)||!N(this.rowHeight))&&t>=this.rowTop&&ti&&(i=h)):t=!0}),!t&&((e||i<10)&&(i=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),i!=this.rowHeight))){this.setRowHeight(i);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}},o.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_ROW_INDEX_CHANGED)))},o.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_UI_LEVEL_CHANGED)))},o.prototype.setExpanded=function(t,e){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_EXPANDED_CHANGED));var i=Object.assign({},this.createGlobalRowEvent(S.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},o.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},o.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},o.prototype.setDataValue=function(t,e,i){var n=this.beans.columnModel.getPrimaryColumn(t),r=this.beans.valueService.getValue(n,this),a=this.beans.valueService.setValue(this,n,e,i);return this.dispatchCellChangedEvent(n,e,r),this.checkRowSelectable(),a},o.prototype.setGroupValue=function(t,e){var i=this.beans.columnModel.getGridColumn(t);z(this.groupData)&&(this.groupData={});var n=i.getColId(),r=this.groupData[n];r!==e&&(this.groupData[n]=e,this.dispatchCellChangedEvent(i,e,r))},o.prototype.setAggData=function(t){var e=this,i=wt([this.aggData,t]),n=this.aggData;this.aggData=t,this.eventService&&i.forEach(function(r){var a=e.beans.columnModel.getGridColumn(r);e.dispatchCellChangedEvent(a,e.aggData?e.aggData[r]:void 0,n?n[r]:void 0)})},o.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(o.EVENT_HAS_CHILDREN_CHANGED)))},o.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},o.prototype.isEmptyRowGroupNode=function(){return this.group&&ae(this.childrenAfterGroup)},o.prototype.dispatchCellChangedEvent=function(t,e,i){this.dispatchLocalEvent({type:o.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:i})},o.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},o.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},o.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},o.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},o.prototype.calculateSelectedFromChildren=function(){var t,e=!1,i=!1,n=!1;if(null===(t=this.childrenAfterGroup)||void 0===t||!t.length)return this.selectable?this.selected:null;for(var r=0;r0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:S.EVENT_SELECTION_CHANGED})),n&&this.beans.selectionService.setLastSelectedNode(this)),y},o.prototype.doRowRangeSelection=function(t){var e=this;void 0===t&&(t=!0);var i=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),n=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,n),a=0;return r.forEach(function(h){h.group&&i||!1===t&&e===h||h.selectThisNode(t)&&a++}),this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:S.EVENT_SELECTION_CHANGED}),a},o.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},o.prototype.selectThisNode=function(t,e){if(!this.selectable&&t||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(o.EVENT_ROW_SELECTED));var r=Object.assign({},this.createGlobalRowEvent(S.EVENT_ROW_SELECTED),{event:e||null});return this.beans.eventService.dispatchEvent(r),!0},o.prototype.selectChildNodes=function(t,e){var i=e?this.childrenAfterAggFilter:this.childrenAfterGroup;if(z(i))return 0;for(var n=0,r=0;r=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Dl=function(o){function t(){return o.call(this,'\n ')||this}return _v(t,o),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.rowNode.isSelected(),n=void 0===i?e("ariaIndeterminate","indeterminate"):!0===i?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(r+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},t.prototype.onUncheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},t.prototype.init=function(e){var i=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(l){Rt(l)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(l){Rt(l);var h=i.eCheckbox.getValue();void 0===i.eCheckbox.getPreviousValue()||void 0===h?0===i.onUncheckedClicked(l||{})&&i.onCheckedClicked(l):h?i.onCheckedClicked(l):i.onUncheckedClicked(l||{})}),this.addManagedListener(this.rowNode,nt.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||"function"==typeof this.getIsVisible()){var a=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,a),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,a),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,i,n,r,a=this.rowNode.selectable,l=this.getIsVisible();if(a)if("function"==typeof l){var h=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,m=null===(i=this.column)||void 0===i?void 0:i.createColumnFunctionCallbackParams(this.rowNode);a=!!m&&l(Lo(Lo({},h),m))}else a=l??!1;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!a),this.setVisible(!0),void this.setDisplayed(!0);null!==(r=this.overrides)&&void 0!==r&&r.removeHidden?this.setDisplayed(a):this.setVisible(a)},t.prototype.getIsVisible=function(){var e,i;return this.overrides?this.overrides.isVisible:null===(i=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===i?void 0:i.checkboxSelection},Fd([ce("eCheckbox")],t.prototype,"eCheckbox",void 0),Fd([ve],t.prototype,"postConstruct",null),t}(Je),Eh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),kn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},No=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Si=(()=>(function(o){o[o.ToolPanel=0]="ToolPanel",o[o.HeaderCell=1]="HeaderCell",o[o.RowDrag=2]="RowDrag",o[o.ChartPanel=3]="ChartPanel"}(Si||(Si={})),Si))(),er=(()=>(function(o){o[o.Up=0]="Up",o[o.Down=1]="Down"}(er||(er={})),er))(),_n=(()=>(function(o){o[o.Left=0]="Left",o[o.Right=1]="Right"}(_n||(_n={})),_n))(),oi=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}var e;return Eh(t,o),e=t,t.prototype.init=function(){this.ePinnedIcon=Gi("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Gi("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Gi("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Gi("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Gi("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Gi("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Gi("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Gi("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Gi("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(i,n){void 0===n&&(n=!1);var r={eElement:i.eElement,dragStartPixels:i.dragStartPixels,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:r,dragSource:i}),this.dragService.addDragSource(r,n)},t.prototype.removeDragSource=function(i){var n=this.dragSourceAndParamsList.find(function(r){return r.dragSource===i});n&&(this.dragService.removeDragSource(n.params),De(this.dragSourceAndParamsList,n))},t.prototype.clearDragSourceParamsList=function(){var i=this;this.dragSourceAndParamsList.forEach(function(n){return i.dragService.removeDragSource(n.params)}),this.dragSourceAndParamsList.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(i,n){this.dragging=!0,this.dragSource=i,this.eventLastTime=n,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(i){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var n=this.createDropTargetEvent(this.lastDropTarget,i,null,null,!1);this.lastDropTarget.onDragStop(n)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(i,n){var a,l,h,m,r=this,v=this.getHorizontalDirection(i),_=this.getVerticalDirection(i);this.eventLastTime=i,this.positionGhost(i);var y=this.dropTargets.filter(function(I){return r.isMouseOnDropTarget(i,I)}),b=this.findCurrentDropTarget(i,y);if(b!==this.lastDropTarget)this.leaveLastTargetIfExists(i,v,_,n),null!==this.lastDropTarget&&null===b&&(null===(l=(a=this.dragSource).onGridExit)||void 0===l||l.call(a,this.dragItem)),null===this.lastDropTarget&&null!==b&&(null===(m=(h=this.dragSource).onGridEnter)||void 0===m||m.call(h,this.dragItem)),this.enterDragTargetIfExists(b,i,v,_,n),this.lastDropTarget=b;else if(b&&b.onDragging){var R=this.createDropTargetEvent(b,i,v,_,n);b.onDragging(R)}},t.prototype.getAllContainersFromDropTarget=function(i){var n=i.getSecondaryContainers?i.getSecondaryContainers():null,r=[[i.getContainer()]];return n?r.concat(n):r},t.prototype.allContainersIntersect=function(i,n){var r,a;try{for(var l=No(n),h=l.next();!h.done;h=l.next()){var v=h.value.getBoundingClientRect();if(0===v.width||0===v.height)return!1;if(!(i.clientX>=v.left&&i.clientX=v.top&&i.clientYr?_n.Left:_n.Right},t.prototype.getVerticalDirection=function(i){var n=this.eventLastTime&&this.eventLastTime.clientY,r=i.clientY;return n===r?null:n>r?er.Up:er.Down},t.prototype.createDropTargetEvent=function(i,n,r,a,l){var h=i.getContainer(),m=h.getBoundingClientRect(),v=this;return{event:n,x:n.clientX-m.left,y:n.clientY-m.top,vDirection:a,hDirection:r,dragSource:v.dragSource,fromNudge:l,dragItem:v.dragItem,api:v.gridApi,columnApi:v.columnApi,dropZoneTarget:h}},t.prototype.positionGhost=function(i){var n=this.eGhost;if(n){var a=n.getBoundingClientRect().height,l=Ep()-2,h=ja()-2,m=i.pageY-a/2,v=i.pageX-10,_=this.gridOptionsWrapper.getDocument(),y=_.defaultView||window,b=y.pageYOffset||_.documentElement.scrollTop,R=y.pageXOffset||_.documentElement.scrollLeft;l>0&&v+n.clientWidth>l+R&&(v=l+R-n.clientWidth),v<0&&(v=0),h>0&&m+n.clientHeight>h+b&&(m=h+b-n.clientHeight),m<0&&(m=0),n.style.left=v+"px",n.style.top=m+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=vi(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var i=this.environment.getTheme().theme;i&&this.eGhost.classList.add(i),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var n=this.eGhost.querySelector(".ag-dnd-ghost-label"),r=this.dragSource.dragItemName;Pe(r)&&(r=r()),n.innerHTML=en(r)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var a=this.gridOptionsWrapper.getDocument(),l=null;try{l=a.fullscreenElement}catch{}finally{l||(l=a.querySelector("body"))}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(i,n){void 0===n&&(n=!1),zi(this.eGhostIcon);var r=null;switch(i||(i=this.dragSource.defaultIconName||e.ICON_NOT_ALLOWED),i){case e.ICON_PINNED:r=this.ePinnedIcon;break;case e.ICON_MOVE:r=this.eMoveIcon;break;case e.ICON_LEFT:r=this.eLeftIcon;break;case e.ICON_RIGHT:r=this.eRightIcon;break;case e.ICON_GROUP:r=this.eGroupIcon;break;case e.ICON_AGGREGATE:r=this.eAggregateIcon;break;case e.ICON_PIVOT:r=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:r=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",n),(r!==this.eHideIcon||!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns())&&r&&this.eGhostIcon.appendChild(r)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE='
    \n \n
    \n
    ',kn([w("dragService")],t.prototype,"dragService",void 0),kn([w("mouseEventService")],t.prototype,"mouseEventService",void 0),kn([w("environment")],t.prototype,"environment",void 0),kn([w("columnApi")],t.prototype,"columnApi",void 0),kn([w("gridApi")],t.prototype,"gridApi",void 0),kn([ve],t.prototype,"init",null),kn([Ct],t.prototype,"clearDragSourceParamsList",null),e=kn([we("dragAndDropService")],t)}(ge),Ks=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},$s=function(o){function t(e,i,n,r,a,l){var h=o.call(this)||this;return h.cellValueFn=e,h.rowNode=i,h.column=n,h.customGui=r,h.dragStartPixels=a,h.suppressVisibilityChange=l,h.dragSource=null,h}return Ks(t,o),t.prototype.isCustomGui=function(){return null!=this.customGui},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(Jt("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new Sh(this,this.beans,this.rowNode,this.column):new Ld(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,i){this.setTemplateFromElement(e),this.addDragSource(i)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return[this.rowNode];var i=this.beans.selectionService.getSelectedNodes();return-1!==i.indexOf(this.rowNode)?i:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&Ve(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.addDragSource=function(e){var i=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var n=this.gridOptionsWrapper.getRowDragText(this.column),r=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:Si.RowDrag,eElement:this.getGui(),dragItemName:function(){var a,l=i.getDragItem(),h=(null===(a=l.rowNodes)||void 0===a?void 0:a.length)||1;return n?n(l,h):1===h?i.cellValueFn():h+" "+r("rowDragRows","rows")},getDragItem:function(){return i.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},gr([w("beans")],t.prototype,"beans",void 0),gr([ve],t.prototype,"postConstruct",null),gr([Ct],t.prototype,"removeDragSource",null),t}(Je),Zs=function(o){function t(e,i,n){var r=o.call(this)||this;return r.parent=e,r.rowNode=i,r.column=n,r}return Ks(t,o),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var i=!0,n=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=Pe(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(i)):(this.parent.setDisplayed(i),this.parent.setVisible(!0))}},t}(ge),Ld=function(o){function t(e,i,n,r){var a=o.call(this,e,n,r)||this;return a.beans=i,a}return Ks(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},gr([ve],t.prototype,"postConstruct",null),t}(Zs),Sh=function(o){function t(e,i,n,r){var a=o.call(this,e,n,r)||this;return a.beans=i,a}return Ks(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,S.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var i=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),n=i&&i.shouldPreventRowMove(),r=this.beans.gridOptionsWrapper.isSuppressRowDrag(),a=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(n&&!a||r)},gr([ve],t.prototype,"postConstruct",null),t}(Zs),Nd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),qs=function(){return qs=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Rh=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Nd(t,o),t.prototype.init=function(e,i,n,r,a,l,h){this.params=h,this.eGui=i,this.eCheckbox=n,this.eExpanded=r,this.eContracted=a,this.comp=e,this.compClass=l;var m=this.isTopLevelFooter(),v=this.isEmbeddedRowMismatch(),_=null==h.value,y=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var b=h.node;b.footer&&(y=(h.colDef&&h.colDef.showRowGroup)!==(b.rowGroupColumn&&b.rowGroupColumn.getColId()))}this.cellIsBlank=!m&&(v||_||y),!this.cellIsBlank&&(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,i=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){tn(n,!!i.expanded)};this.expandListener=this.addManagedListener(i,nt.EVENT_EXPANDED_CHANGED,r)||null,r()}else ud(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter()||null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e||!0===e.showRowGroup)return!0;var n=this.columnModel.getRowGroupColumns();return!n||0===n.length||n[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===G.PINNED_LEFT,i=this.params.pinned===G.PINNED_RIGHT,n=!e&&!i;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!i:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var n=i.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}z(this.displayedGroupNode)&&(this.displayedGroupNode=i)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,i=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var r=e.rowGroupColumn.getId();if(i.isRowGroupDisplayed(r))return void(this.showingValueForOpenedParent=!1)}var l=null!=e.groupData[i.getId()];this.showingValueForOpenedParent=l}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(e);this.comp.setInnerRenderer(i,e.valueFormatted??e.value)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!e)return this.params;if(null!=i&&!i.isRowGroupDisplayed(e.getId()))return this.params;var a=this.params,l=this.params,v=this.valueFormatterService.formatValue(e,l.node,l.value);return qs(qs({},a),{valueFormatted:v})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,i="";if(e){var n=Ft(this.params);n.value=this.params.value,"function"==typeof e?i=e(n):"string"==typeof e?i=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else i="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,i)},t.prototype.getInnerCompDetails=function(e){var i=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(v){return v&&v.componentClass==i.compClass};if(n&&!r(n))return n;var a=this.displayedGroupNode.rowGroupColumn,l=a?a.getColDef():void 0;if(l){var h=this.userComponentFactory.getCellRendererDetails(l,e);if(h&&!r(h))return h;if(r(h)&&l.cellRendererParams&&l.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(l.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,nt.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow();this.comp.setChildCount(i&&null!=e&&e>=0?"("+e+")":"")},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var i=this.params.column;return null==i||i.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,i=Jt("groupExpanded",this.gridOptionsWrapper,null),n=Jt("groupContracted",this.gridOptionsWrapper,null);i&&this.eExpanded.appendChild(i),n&&this.eContracted.appendChild(n);var r=e.eGridCell;!this.gridOptionsWrapper.isEnableGroupEdit()&&this.isExpandable()&&!e.suppressDoubleClickExpand&&this.addManagedListener(r,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,nt.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var a=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,nt.EVENT_ALL_CHILDREN_COUNT_CHANGED,a),this.addManagedListener(this.displayedGroupNode,nt.EVENT_MASTER_CHANGED,a),this.addManagedListener(this.displayedGroupNode,nt.EVENT_GROUP_CHANGED,a),this.addManagedListener(this.displayedGroupNode,nt.EVENT_HAS_CHILDREN_CHANGED,a)},t.prototype.onExpandClicked=function(e){jt(e)||(Rt(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var i=this.displayedGroupNode,n=!i.expanded;!n&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(n,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||i)return!1;var r=this.params.column;return null==r||"string"!=typeof r.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,n=e.displayedGroupNode,r=e.columnModel,a=e.params.node,l=this.isExpandable();if(l){var h=!!this.showingValueForOpenedParent||a.expanded;this.comp.setExpandedDisplayed(h),this.comp.setContractedDisplayed(!h)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var m=r.isPivotMode(),v=m&&n.leafGroup,_=l&&!v,y=a.footer&&-1===a.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",_),this.comp.addOrRemoveCssClass("ag-row-group",_),m?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",v):y||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!_)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,nt.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,i=e.node,n=!!e.colDef,r=this.gridOptionsWrapper.isTreeData(),l=!n||r||!0===e.colDef.showRowGroup?i.uiLevel:0;e.padding>=0&&Ve(function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")},"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+l,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var i=new $s(function(){return e.params.value},this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,i=this.displayedGroupNode,n=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(n){var r=new Dl;this.getContext().createBean(r),r.init({rowNode:i,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(r)})}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==le.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)},t.prototype.onCellDblClicked=function(e){jt(e)||ji(this.eExpanded,e)||ji(this.eContracted,e)||this.onExpandOrContract(e)},vr([w("expressionService")],t.prototype,"expressionService",void 0),vr([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),vr([w("columnModel")],t.prototype,"columnModel",void 0),vr([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),vr([w("gridOptions")],t.prototype,"gridOptions",void 0),vr([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(ge),Ml=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Go=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Gd=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return Ml(t,o),t.prototype.init=function(e){var i=this,n={setInnerRenderer:function(h,m){return i.setRenderDetails(h,m)},setChildCount:function(h){return i.eChildCount.innerHTML=h},addOrRemoveCssClass:function(h,m){return i.addOrRemoveCssClass(h,m)},setContractedDisplayed:function(h){return Lt(i.eContracted,h)},setExpandedDisplayed:function(h){return Lt(i.eExpanded,h)},setCheckboxVisible:function(h){return i.eCheckbox.classList.toggle("ag-invisible",!h)}},r=this.createManagedBean(new Rh),a=!e.colDef,l=this.getGui();r.init(n,l,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),a&&Ti(l,"gridcell")},t.prototype.setRenderDetails=function(e,i){var n=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then(function(a){if(a){var l=function(){return n.context.destroyBean(a)};n.isAlive()?(n.eValue.appendChild(a.getGui()),n.addDestroyFunc(l)):l()}})}else this.eValue.innerText=i},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),o.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='\n \n \n \n \n \n ',Go([ce("eExpanded")],t.prototype,"eExpanded",void 0),Go([ce("eContracted")],t.prototype,"eContracted",void 0),Go([ce("eCheckbox")],t.prototype,"eCheckbox",void 0),Go([ce("eValue")],t.prototype,"eValue",void 0),Go([ce("eChildCount")],t.prototype,"eChildCount",void 0),t}(Je),kd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hd=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yv=function(o){function t(){return o.call(this,t.TEMPLATE)||this}return kd(t,o),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=Jt("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.TEMPLATE='
    \n \n \n
    ',Hd([ce("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),Hd([ce("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(Je),Al=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Oh=function(o){function t(){return o.call(this)||this}return Al(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=i.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',t}(Je),Vd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Bd=function(o){function t(){return o.call(this)||this}return Vd(t,o),t.prototype.destroy=function(){o.prototype.destroy.call(this)},t.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=i.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',t}(Je),_r=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Th=function(o){function t(){return o.call(this,'
    ')||this}return _r(t,o),t.prototype.init=function(e){var i=e.value;this.getGui().innerHTML=en(i)},t}(Io),Wd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qs=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ud=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:ph,agColumnHeader:pv,agColumnGroupHeader:Od,agSortIndicator:bl,agTextColumnFloatingFilter:gh,agNumberColumnFloatingFilter:mh,agDateColumnFloatingFilter:wl,agReadOnlyFloatingFilter:bd,agAnimateShowChangeCellRenderer:Pd,agAnimateSlideCellRenderer:xh,agGroupCellRenderer:Gd,agGroupRowRenderer:Gd,agLoadingCellRenderer:yv,agCellEditor:Md,agTextCellEditor:Md,agSelectCellEditor:Tl,agPopupTextCellEditor:gv,agPopupSelectCellEditor:fv,agLargeTextCellEditor:Fo,agTextColumnFilter:Jr,agNumberColumnFilter:js,agDateColumnFilter:yl,agLoadingOverlay:Oh,agNoRowsOverlay:Bd,agTooltipComponent:Th},e.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},e.jsComps={},e.fwComps={},e}return Wd(t,o),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Ge(this.gridOptions.components,function(i,n){return e.registerJsComponent(i,n)}),null!=this.gridOptions.frameworkComponents&&Ge(this.gridOptions.frameworkComponents,function(i,n){return e.registerFwComponent(i,n)})},t.prototype.registerDefaultComponent=function(e,i){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=i},t.prototype.registerJsComponent=function(e,i){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=i},t.prototype.registerFwComponent=function(e,i){Ve(function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")},"UserComponentRegistry.frameworkComponentsDeprecated");var r=this.translateIfDeprecated(e);this.fwComps[r]=i},t.prototype.retrieve=function(e){var i=this.translateIfDeprecated(e),n=function(v,_){return{componentFromFramework:_,component:v}},r=this.getFrameworkOverrides().frameworkComponent(i,this.gridOptions.components);if(null!=r)return n(r,!0);var a=this.fwComps[i];if(a)return n(a,!0);var l=this.jsComps[i];if(l)return n(l,this.getFrameworkOverrides().isFrameworkComponent(l));var m=this.agGridDefaults[i];return m?n(m,!1):(Object.keys(this.agGridDefaults).indexOf(i)<0&&console.warn("AG Grid: Looking for component ["+i+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var i=this.agDeprecatedNames[e];return null!=i?(Ve(function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+i.propertyHolder+":"+e+" to "+i.propertyHolder+":"+i.newComponentName)},"DEPRECATE_COMPONENT_"+e),i.newComponentName):e},Qs([w("gridOptions")],t.prototype,"gridOptions",void 0),Qs([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Qs([ve],t.prototype,"init",null),Qs([we("userComponentRegistry")],t)}(ge),Dh={propertyName:"dateComponent",cellRenderer:!1},Mh={propertyName:"headerComponent",cellRenderer:!1},Pl={propertyName:"headerGroupComponent",cellRenderer:!1},Il={propertyName:"cellRenderer",cellRenderer:!0},Ah={propertyName:"cellEditor",cellRenderer:!1},Fl={propertyName:"innerRenderer",cellRenderer:!0},Ph={propertyName:"loadingOverlayComponent",cellRenderer:!1},jd={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ih={propertyName:"tooltipComponent",cellRenderer:!1},Xs={propertyName:"filter",cellRenderer:!1},Fh={propertyName:"floatingFilterComponent",cellRenderer:!1},zd={propertyName:"toolPanel",cellRenderer:!1},Cv={propertyName:"statusPanel",cellRenderer:!1},wv={propertyName:"fullWidthCellRenderer",cellRenderer:!0},bv={propertyName:"loadingCellRenderer",cellRenderer:!0},Lh={propertyName:"groupRowRenderer",cellRenderer:!0},Nh={propertyName:"detailCellRenderer",cellRenderer:!0},xv=function(){function o(){}return o.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},o.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},o}(),Gh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ko=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ev=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Gh(t,o),t.prototype.getHeaderCompDetails=function(e,i){return this.getCompDetails(e,Mh,"agColumnHeader",i)},t.prototype.getHeaderGroupCompDetails=function(e){var i=e.columnGroup.getColGroupDef();return this.getCompDetails(i,Pl,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,wv,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,bv,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Lh,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Nh,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,i){return this.getCompDetails(e,Fl,null,i)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,i){return this.getCompDetails(e,Fl,null,i)},t.prototype.getCellRendererDetails=function(e,i){return this.getCompDetails(e,Il,null,i)},t.prototype.getCellEditorDetails=function(e,i){return this.getCompDetails(e,Ah,"agCellEditor",i,!0)},t.prototype.getFilterDetails=function(e,i,n){return this.getCompDetails(e,Xs,n,i,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Dh,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ph,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,jd,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ih,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,i){return this.getCompDetails(e,Il,null,i)},t.prototype.getFloatingFilterCompDetails=function(e,i,n){return this.getCompDetails(e,Fh,n,i)},t.prototype.getToolPanelCompDetails=function(e,i){return this.getCompDetails(e,zd,null,i,!0)},t.prototype.getStatusPanelCompDetails=function(e,i){return this.getCompDetails(e,Cv,null,i,!0)},t.prototype.getCompDetails=function(e,i,n,r,a){var l=this;void 0===a&&(a=!1);var h=i.propertyName,m=i.cellRenderer,v=this.getCompKeys(e,i,r),_=v.compName,y=v.jsComp,b=v.fwComp,R=v.paramsFromSelector,I=v.popupFromSelector,H=v.popupPositionFromSelector,te=function(Se){var $e=l.userComponentRegistry.retrieve(Se);$e&&(y=$e.componentFromFramework?void 0:$e.component,b=$e.componentFromFramework?$e.component:void 0)};if(null!=_&&te(_),null==y&&null==b&&null!=n&&te(n),y&&m&&!this.agComponentUtils.doesImplementIComponent(y)&&(y=this.agComponentUtils.adaptFunction(h,y)),y||b){var X=this.mergeParamsWithApplicationProvidedParams(e,i,r,R),fe=null==y,me=y||b;return{componentFromFramework:fe,componentClass:me,params:X,type:i,popupFromSelector:I,popupPositionFromSelector:H,newAgStackInstance:function(){return l.newAgStackInstance(me,fe,X,i)}}}a&&console.error("Could not find component "+_+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,i,n){var l,h,m,v,_,y,r=this,a=i.propertyName;if(e){var b=e,R=b[a+"Selector"],I=R?R(n):null,H=function(X,fe){var me=function(){var $e="AG Grid: As of v27, the property "+a+"Framework is deprecated. The property "+a+" can now be used for JavaScript AND Framework Components.";Ve(function(){return console.warn($e)},"UserComponentFactory."+a+"FrameworkDeprecated")};"string"==typeof X?l=X:"string"==typeof fe?(me(),l=fe):null!=X&&!0!==X?r.getFrameworkOverrides().isFrameworkComponent(X)?m=X:h=X:null!=fe&&(me(),m=fe)};if(I){if(null!=I.frameworkComponent){var te="AG Grid: As of v27, the return for "+a+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";Ve(function(){return console.warn(te)},"UserComponentFactory."+a+"FrameworkSelectorDeprecated"),H(I.frameworkComponent,void 0)}else H(I.component,void 0);v=I.params,_=I.popup,y=I.popupPosition}else H(b[a],b[a+"Framework"])}return{compName:l,jsComp:h,fwComp:m,paramsFromSelector:v,popupFromSelector:_,popupPositionFromSelector:y}},t.prototype.newAgStackInstance=function(e,i,n,r){var h;if(i){var m=this.componentMetadataProvider.retrieve(r.propertyName);h=this.frameworkComponentWrapper.wrap(e,m.mandatoryMethodList,m.optionalMethodList,r)}else h=new e;var v=this.initComponent(h,n);return null==v?Ei.resolve(h):v.then(function(){return h})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,i,n,r){void 0===r&&(r=null);var a={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};Ze(a,n);var h=e&&e[i.propertyName+"Params"];return"function"==typeof h?Ze(a,h(n)):"object"==typeof h&&Ze(a,h),Ze(a,r),a},t.prototype.initComponent=function(e,i){if(this.context.createBean(e),null!=e.init)return e.init(i)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var i=null,n=this.getCompKeys(e,Xs),r=n.compName,a=n.jsComp,l=n.fwComp;return r?i=xv.getFloatingFilterType(r):null==a&&null==l&&!0===e.filter&&(i=$.isRegistered(Ie.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),i},ko([w("gridOptions")],t.prototype,"gridOptions",void 0),ko([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ko([w("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),ko([w("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),ko([rt("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),ko([we("userComponentFactory")],t)}(ge),Ho=(()=>(function(o){o[o.SINGLE_SHEET=0]="SINGLE_SHEET",o[o.MULTI_SHEET=1]="MULTI_SHEET"}(Ho||(Ho={})),Ho))(),Sv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Js=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Rv=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return Sv(t,o),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var i=e.dragSource.eElement;i.removeEventListener("mousedown",e.mouseDownListener),e.touchEnabled&&i.removeEventListener("touchstart",e.touchStartListener,{passive:!0})},t.prototype.removeDragSource=function(e){var i=this.dragSources.find(function(n){return n.dragSource===e});!i||(this.removeListener(i),De(this.dragSources,i))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,i){var n=this;void 0===i&&(i=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",r);var a=null,l=this.gridOptionsWrapper.isSuppressTouch();i&&!l&&e.eElement.addEventListener("touchstart",a=function(h){$a(h.target)||(h.cancelable&&h.preventDefault(),n.onTouchStart(e,h))},{passive:!1}),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:a,touchEnabled:i})},t.prototype.onTouchStart=function(e,i){var n=this;this.currentDragParams=e,this.dragging=!1;var r=i.touches[0];this.touchLastTime=r,this.touchStart=r;var l=function(_){return n.onTouchUp(_,e.eElement)},m=i.target,v=[{target:document,type:"touchmove",listener:function(_){_.cancelable&&_.preventDefault()},options:{passive:!1}},{target:m,type:"touchmove",listener:function(_){return n.onTouchMove(_,e.eElement)},options:{passive:!0}},{target:m,type:"touchend",listener:l,options:{passive:!0}},{target:m,type:"touchcancel",listener:l,options:{passive:!0}}];this.addTemporaryEvents(v),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,i){var n=this,r=i;if(!(e.skipMouseEvent&&e.skipMouseEvent(i)||r._alreadyProcessedByDragService||(r._alreadyProcessedByDragService=!0,0!==i.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=i;var a=this.gridOptionsWrapper.getDocument();this.addTemporaryEvents([{target:a,type:"mousemove",listener:function(y){return n.onMouseMove(y,e.eElement)}},{target:a,type:"mouseup",listener:function(y){return n.onMouseUp(y,e.eElement)}},{target:a,type:"contextmenu",listener:function(y){return y.preventDefault()}}]),0===e.dragStartPixels&&this.onMouseMove(i,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(i){i.target.addEventListener(i.type,i.listener,i.options)}),this.dragEndFunctions.push(function(){e.forEach(function(i){i.target.removeEventListener(i.type,i.listener,i.options)})})},t.prototype.isEventNearStartEvent=function(e,i){var n=this.currentDragParams.dragStartPixels;return As(e,i,N(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var i=0;i=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},kh=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.allColumnFilters=new Map,i.activeAggregateFilters=[],i.activeColumnFilters=[],i.quickFilter=null,i.quickFilterParts=null,i.processingFilterChange=!1,i}var e;return Ov(t,o),e=t,t.prototype.init=function(){var i=this;this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,function(){return i.onColumnsChanged()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_VALUE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(i){var n=this,r=[],a=this.getFilterModel();if(i){var l=ll(Object.keys(i));this.allColumnFilters.forEach(function(h,m){r.push(n.setModelOnFilterWrapper(h.filterPromise,i[m])),l.delete(m)}),l.forEach(function(h){var m=n.columnModel.getPrimaryColumn(h)||n.columnModel.getGridColumn(h);if(m)if(m.isFilterAllowed()){var v=n.getOrCreateFilterWrapper(m,"NO_UI");v?r.push(n.setModelOnFilterWrapper(v.filterPromise,i[h])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+h)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+h);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+h)})}else this.allColumnFilters.forEach(function(h){r.push(n.setModelOnFilterWrapper(h.filterPromise,null))});Ei.all(r).then(function(){var h=n.getFilterModel(),m=[];n.allColumnFilters.forEach(function(v,_){Fe.jsonEquals(a?a[_]:null,h?h[_]:null)||m.push(v.column)}),m.length>0&&n.onFilterChanged({columns:m})})},t.prototype.setModelOnFilterWrapper=function(i,n){return new Ei(function(r){i.then(function(a){"function"!=typeof a.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),r()),(a.setModel(n)||Ei.resolve()).then(function(){return r()})})})},t.prototype.getFilterModel=function(){var i={};return this.allColumnFilters.forEach(function(n,r){var l=n.filterPromise.resolveNow(null,function(m){return m});if(null==l)return null;if("function"==typeof l.getModel){var h=l.getModel();N(h)&&(i[r]=h)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")}),i},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.doAggregateFiltersPass=function(i,n){return this.doColumnFiltersPass(i,n,!0)},t.prototype.updateActiveFilters=function(){var i=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var n=function(l){return!!l&&(l.isFilterActive?l.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},r=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach(function(l){if(l.filterPromise.resolveNow(!1,n)){var h=l.filterPromise.resolveNow(null,function(m){return m});!function(l){if(!l.isPrimary())return!0;var m=!i.columnModel.isPivotActive();return!(!l.isValueActive()||!m)&&(!!i.columnModel.isPivotMode()||r)}(l.column)?i.activeColumnFilters.push(h):i.activeAggregateFilters.push(h)}})},t.prototype.updateFilterFlagInColumns=function(i,n){this.allColumnFilters.forEach(function(r){var a=r.filterPromise.resolveNow(!1,function(l){return l.isFilterActive()});r.column.setFilterActive(a,i,n)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(i,n,r){for(var h=r?this.activeAggregateFilters:this.activeColumnFilters,m=r?i.aggData:i.data,v=0;v=0})},t.prototype.doesRowPassQuickFilterCache=function(i,n){return i.quickFilterAggregateText||this.aggregateRowForQuickFilter(i),i.quickFilterAggregateText.indexOf(n)>=0},t.prototype.doesRowPassQuickFilter=function(i){var n=this,r=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every(function(a){return r?n.doesRowPassQuickFilterCache(i,a):n.doesRowPassQuickFilterNoCache(i,a)})},t.prototype.doesRowPassAggregateFilters=function(i){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(i.rowNode,i.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(i){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(i.rowNode)||this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(i.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(i.rowNode,i.filterInstanceToSkip))},t.prototype.getQuickFilterTextForColumn=function(i,n){var r=this.valueService.getValue(i,n,!0),a=i.getColDef();if(a.getQuickFilterText){var l={value:r,node:n,data:n.data,column:i,colDef:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};r=a.getQuickFilterText(l)}return N(r)?r.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(i){var n=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach(function(l){var h=n.getQuickFilterTextForColumn(l,i);N(h)&&r.push(h)}),i.quickFilterAggregateText=r.join(e.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(i){this.allColumnFilters.forEach(function(n){n.filterPromise.then(function(r){r.onNewRowsLoaded&&r.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(i),this.updateActiveFilters()},t.prototype.createValueGetter=function(i){var n=this;return function(r){return n.valueService.getValue(i,r.node,!0)}},t.prototype.getFilterComponent=function(i,n,r){var a;if(void 0===r&&(r=!0),r)return(null===(a=this.getOrCreateFilterWrapper(i,n))||void 0===a?void 0:a.filterPromise)||null;var l=this.cachedFilter(i);return l?l.filterPromise:null},t.prototype.isFilterActive=function(i){var n=this.cachedFilter(i);return!!n&&n.filterPromise.resolveNow(!1,function(r){return r.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(i,n){if(!i.isFilterAllowed())return null;var r=this.cachedFilter(i);return r?"NO_UI"!==n&&this.putIntoGui(r,n):(r=this.createFilterWrapper(i,n),this.allColumnFilters.set(i.getColId(),r)),r},t.prototype.cachedFilter=function(i){return this.allColumnFilters.get(i.getColId())},t.prototype.createFilterInstance=function(i){var l,n=this,r=$.isRegistered(Ie.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",a=i.getColDef(),h=ea(ea({},this.createFilterParams(i,a)),{filterModifiedCallback:function(){n.eventService.dispatchEvent({type:S.EVENT_FILTER_MODIFIED,column:i,filterInstance:l})},filterChangedCallback:function(_){n.callOnFilterChangedOutsideRenderCycle({filterInstance:l,additionalEventAttributes:_,columns:[i]})},doesRowPassOtherFilter:function(_){return n.doesRowPassOtherFilters(l,_)}}),m=this.userComponentFactory.getFilterDetails(a,h,r);if(!m)return null;var v=m.newAgStackInstance();return v&&v.then(function(_){return l=_}),v},t.prototype.createFilterParams=function(i,n){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:i,colDef:Ft(n),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(i),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},t.prototype.createFilterWrapper=function(i,n){var r={column:i,filterPromise:null,compiledElement:null,guiPromise:Ei.resolve(null)};return r.filterPromise=this.createFilterInstance(i),r.filterPromise&&this.putIntoGui(r,n),r},t.prototype.putIntoGui=function(i,n){var r=this,a=document.createElement("div");a.className="ag-filter",i.guiPromise=new Ei(function(l){i.filterPromise.then(function(h){var m=h.getGui();N(m)||console.warn("AG Grid: getGui method from filter returned "+m+", it should be a DOM element or an HTML template string."),"string"==typeof m&&(m=vi(m)),a.appendChild(m),l(a),r.eventService.dispatchEvent({type:S.EVENT_FILTER_OPENED,column:i.column,source:n,eGui:a})})})},t.prototype.onColumnsChanged=function(){var i=this,n=[];this.allColumnFilters.forEach(function(r,a){!(r.column.isPrimary()?i.columnModel.getPrimaryColumn(a):i.columnModel.getGridColumn(a))&&(n.push(r.column),i.disposeFilterWrapper(r,"filterDestroyed"))}),n.length>0&&this.onFilterChanged({columns:n})},t.prototype.destroyFilter=function(i,n){void 0===n&&(n="api");var r=this.allColumnFilters.get(i.getColId());r&&(this.disposeFilterWrapper(r,n),this.onFilterChanged({columns:[i]}))},t.prototype.disposeFilterWrapper=function(i,n){var r=this;i.filterPromise.then(function(a){(a.setModel(null)||Ei.resolve()).then(function(){r.getContext().destroyBean(a),i.column.setFilterActive(!1,n),r.allColumnFilters.delete(i.column.getColId())})})},t.prototype.destroy=function(){var i=this;o.prototype.destroy.call(this),this.allColumnFilters.forEach(function(n){return i.disposeFilterWrapper(n,"filterDestroyed")})},t.QUICK_FILTER_SEPARATOR="\n",tr([w("valueService")],t.prototype,"valueService",void 0),tr([w("columnModel")],t.prototype,"columnModel",void 0),tr([w("rowModel")],t.prototype,"rowModel",void 0),tr([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),tr([w("rowRenderer")],t.prototype,"rowRenderer",void 0),tr([ve],t.prototype,"init",null),tr([Ct],t.prototype,"destroy",null),e=tr([we("filterManager")],t)}(ge),Tv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yd=function(o){function t(e,i){var n=o.call(this,e)||this;return n.ctrl=i,n}return Tv(t,o),t.prototype.getCtrl=function(){return this.ctrl},t}(Je),Dv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ta=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Hh=function(o){function t(e){return o.call(this,t.TEMPLATE,e)||this}return Dv(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(r,a){return e.addOrRemoveCssClass(r,a)},addOrRemoveBodyCssClass:function(r,a){return e.eFloatingFilterBody.classList.toggle(r,a)},addOrRemoveButtonWrapperCssClass:function(r,a){return e.eButtonWrapper.classList.toggle(r,a)},setCompDetails:function(r){return e.setCompDetails(r)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(r){return i.style.width=r},setMenuIcon:function(r){return e.eButtonShowMainFilter.appendChild(r)}},i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var i=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(n){return i.afterCompCreated(n)})},t.prototype.afterCompCreated=function(e){var i=this;!e||(this.addDestroyFunc(function(){return i.context.destroyBean(e)}),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='
    \n
    \n \n
    ',ta([ce("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ta([ce("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ta([ce("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ta([ve],t.prototype,"postConstruct",null),t}(Yd),Vh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kd=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},ti=(()=>(function(o){o.AUTO_HEIGHT="ag-layout-auto-height",o.NORMAL="ag-layout-normal",o.PRINT="ag-layout-print"}(ti||(ti={})),ti))(),Ll=function(o){function t(e){var i=o.call(this)||this;return i.view=e,i}return Vh(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),i={autoHeight:e===G.DOM_LAYOUT_AUTO_HEIGHT,normal:e===G.DOM_LAYOUT_NORMAL,print:e===G.DOM_LAYOUT_PRINT};this.view.updateLayoutClasses(i.autoHeight?ti.AUTO_HEIGHT:i.print?ti.PRINT:ti.NORMAL,i)},Kd([w("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Kd([ve],t.prototype,"postConstruct",null),t}(ge),Bh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ir=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Wh=function(o){function t(e){var i=o.call(this)||this;return i.scrollLeft=-1,i.nextScrollTop=-1,i.scrollTop=-1,i.eBodyViewport=e,i.resetLastHorizontalScrollElementDebounced=Oe(i.resetLastHorizontalScrollElement.bind(i),500),i}return Bh(t,o),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(i){e.centerRowContainerCtrl=i.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var i=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Oe(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(null!=this.centerRowContainerCtrl){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var n=this.enableRtl?e:-e,r=this.ctrlsService.getTopCenterRowContainerCtrl(),a=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),l=this.ctrlsService.getBottomCenterRowContainerCtrl(),h=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(n),l.setContainerTranslateX(n),r.setContainerTranslateX(n),a.setContainerTranslateX(n);var v=this.centerRowContainerCtrl.getViewportElement();bo(this.lastHorizontalScrollElement===v?h.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();!this.isControllingScroll(e)||this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();!this.isControllingScroll(e)||this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var i=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",i.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(dr(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var n=dr(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===n||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var i=this,n={type:S.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var r=Object.assign({},n,{type:S.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(r)},100)},t.prototype.shouldBlockScrollUpdate=function(e,i,n){if(void 0===n&&(n=!1),n&&!Yn())return!1;if("vertical"===e){var r=Vr(this.eBodyViewport);if(i<0||i+r>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===e){var l=this.centerRowContainerCtrl.getCenterWidth(),h=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Br()){if(i>0)return!0}else if(i<0)return!0;if(Math.abs(i)+l>h)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var n=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Br()?e>0?0:n:Math.min(Math.max(e,0),n)),bo(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,i){void 0===i&&(i=null);for(var n=this.rowModel.getRowCount(),r=-1,a=0;a=0&&this.ensureIndexVisible(r,i)},t.prototype.ensureIndexVisible=function(e,i){if(this.gridOptionsWrapper.getDomLayout()!==G.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)return void console.warn("invalid row index for ensureIndexVisible: "+e);this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var v,h=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),m=this.paginationProxy.getRow(e);do{var _=m.rowTop,y=m.rowHeight,b=this.paginationProxy.getPixelOffset(),R=m.rowTop-b,I=R+m.rowHeight,H=this.getVScrollPosition(),te=this.heightScaler.getDivStretchOffset(),X=H.top+te,fe=H.bottom+te,me=fe-X,Se=this.heightScaler.getScrollPositionForPixel(R),$e=this.heightScaler.getScrollPositionForPixel(I-me),Xe=Math.min((Se+$e)/2,R),st=null;"top"===i?st=Se:"bottom"===i?st=$e:"middle"===i?st=Xe:X+h>R?st=Se-h:feh:rl}},t.prototype.getColumnBounds=function(e){var i=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),a=e.getLeft(),l=i?-1:1,h=i?n-a:a;return{colLeft:h,colMiddle:h+r/2*l,colRight:h+r*l}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:i,end:e+i,width:e}},ir([w("ctrlsService")],t.prototype,"ctrlsService",void 0),ir([w("animationFrameService")],t.prototype,"animationFrameService",void 0),ir([w("paginationProxy")],t.prototype,"paginationProxy",void 0),ir([w("rowModel")],t.prototype,"rowModel",void 0),ir([w("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ir([w("rowRenderer")],t.prototype,"rowRenderer",void 0),ir([w("columnModel")],t.prototype,"columnModel",void 0),ir([ve],t.prototype,"postConstruct",null),t}(ge),Uh=function(){function o(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return o.prototype.check=function(t,e){void 0===e&&(e=!1);var i=e||this.shouldSkipVerticalScroll();if(!i||!this.shouldSkipHorizontalScroll()){var n=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=t.clientXn.right-r,this.tickUp=t.clientYn.bottom-r&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},o.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},o.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var i=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(i-t),this.tickRight&&this.setHorizontalPosition(i+t)}this.onScrollCallback&&this.onScrollCallback()},o.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},o}(),jh=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nl=function(){return Nl=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},zh=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},Mv=function(o){function t(e){var i=o.call(this)||this;return i.isMultiRowDrag=!1,i.isGridSorted=!1,i.isGridFiltered=!1,i.isRowGroupActive=!1,i.eContainer=e,i}return jh(t,o),t.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var i=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,S.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_MODEL_UPDATED,function(){i()}),i(),this.ctrlsService.whenReady(function(){var n=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Uh({scrollContainer:n.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return n.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(r){return n.getScrollFeature().setVerticalScrollPosition(r)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!ae(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===Si.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?oi.ICON_NOT_ALLOWED:oi.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var i=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),r=function(){for(var o=[],t=0;tthis.paginationProxy.getCurrentPageHeight()||(a=this.rowModel.getRowIndexAtPixel(n),l=this.rowModel.getRow(a)),i.vDirection){case er.Down:h="down";break;case er.Up:h="up";break;default:h=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:a,overNode:l,y:n,vDirection:h}},t.prototype.dispatchGridEvent=function(e,i){var n=this.draggingToRowDragEvent(e,i);this.eventService.dispatchEvent(n)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(S.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(S.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(i){i.setDragging(!1)})},$i([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$i([w("rowModel")],t.prototype,"rowModel",void 0),$i([w("paginationProxy")],t.prototype,"paginationProxy",void 0),$i([w("columnModel")],t.prototype,"columnModel",void 0),$i([w("focusService")],t.prototype,"focusService",void 0),$i([w("sortController")],t.prototype,"sortController",void 0),$i([w("filterManager")],t.prototype,"filterManager",void 0),$i([w("selectionService")],t.prototype,"selectionService",void 0),$i([w("mouseEventService")],t.prototype,"mouseEventService",void 0),$i([w("ctrlsService")],t.prototype,"ctrlsService",void 0),$i([rt("rangeService")],t.prototype,"rangeService",void 0),$i([ve],t.prototype,"postConstruct",null),t}(ge),$d=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),on=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yr=(()=>(function(o){o.ANIMATION_ON="ag-row-animation",o.ANIMATION_OFF="ag-row-no-animation"}(yr||(yr={})),yr))(),ia="ag-selectable",Gl="ag-force-vertical-scroll",Kh="ag-column-moving",Av=function(o){function t(){var e=null!==o&&o.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return $d(t,o),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,i,n,r,a,l){this.comp=e,this.eGridBody=i,this.eBodyViewport=n,this.eTop=r,this.eBottom=a,this.eStickyTop=l,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new Ll(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Wh(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,a,l]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var i=this;e.forEach(function(n){i.addManagedListener(n,"focusin",function(r){var l=Kn(r.target,"ag-root",n);n.classList.toggle("ag-has-focus",!l)}),i.addManagedListener(n,"focusout",function(r){var a=r.target,l=r.relatedTarget,h=n.contains(l),m=Kn(l,"ag-root",n);Kn(a,"ag-root",n)||(!h||m)&&n.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?Kh:null,e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.comp.setCellSelectableCss(e?ia:null,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var i=function(r){var a=r.relatedTarget;if(null!==gs(a)){var l=n.some(function(m){return m.contains(a)})&&e.mouseEventService.isElementInThisGrid(a);if(!l){var h=e.popupService;l=h.getActivePopups().some(function(m){return m.contains(a)})||h.isElementWithinCustomPopup(a)}l||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach(function(r){return e.addManagedListener(r,"focusout",i)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===i?-1:e+i)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){this.comp.setPinnedTopBottomOverflowY(e?"scroll":"hidden")},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),i=e?Gl:null,n=this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(i,e),e||n&&id(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,i=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching();e.comp.setRowAnimationCssOnBodyViewport(n?yr.ANIMATION_ON:yr.ANIMATION_OFF,n)};i(),this.addManagedListener(this.eventService,S.EVENT_HEIGHT_SCALE_CHANGED,i)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,i=function(n,r,a){if(n||a){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&(n||a).preventDefault();var h=(n||r).target;(h===e.eBodyViewport||h===e.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&e.contextMenuFactory&&(n?e.contextMenuFactory.onContextMenu(n,null,null,null,null,e.eGridBody):a&&e.contextMenuFactory.onContextMenu(null,a,null,null,null,e.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",i),this.mockContextMenuForIPad(i),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},t.prototype.mockContextMenuForIPad=function(e){if(Yn()){var i=new ki(this.eBodyViewport);this.addManagedListener(i,ki.EVENT_LONG_TAP,function(r){e(void 0,r.touchStart,r.touchEvent)}),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.onBodyViewportWheel=function(e){!this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()||this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+e),this.eBodyViewport.scrollTop-i},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Mv(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,i=e.getPinnedTopTotalHeight();i&&(i+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(i),this.comp.setBottomHeight(n),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var i=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+i+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var i=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),n=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;i>0&&(r+=i+1),n>0&&(r+=n+1),this.comp.setStickyTopTop(r+"px")},t.prototype.sizeColumnsToFit=function(e,i){var n=this,a=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,h=Cs(this.eBodyViewport)-a;h>0?this.columnModel.sizeColumnsToFit(h,"sizeColumnsToFit",!1,e):void 0===i?window.setTimeout(function(){n.sizeColumnsToFit(e,100)},0):100===i?window.setTimeout(function(){n.sizeColumnsToFit(e,500)},100):500===i?window.setTimeout(function(){n.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},on([w("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),on([w("ctrlsService")],t.prototype,"ctrlsService",void 0),on([w("columnModel")],t.prototype,"columnModel",void 0),on([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),on([rt("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),on([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),on([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),on([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),on([w("rowRenderer")],t.prototype,"rowRenderer",void 0),on([w("popupService")],t.prototype,"popupService",void 0),on([w("mouseEventService")],t.prototype,"mouseEventService",void 0),on([w("rowModel")],t.prototype,"rowModel",void 0),t}(ge),Vo=(()=>(function(o){o[o.FILL=0]="FILL",o[o.RANGE=1]="RANGE"}(Vo||(Vo={})),Vo))(),to=(()=>(function(o){o[o.VALUE=0]="VALUE",o[o.DIMENSION=1]="DIMENSION"}(to||(to={})),to))(),na="ag-cell-range-selected",Fv=function(){function o(t,e){this.beans=t,this.cellCtrl=e}return o.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},o.prototype.onRangeSelectionChanged=function(){!this.cellComp||(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(na,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(na+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),To(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},o.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),n=!e&&t.right,r=!e&&t.bottom,a=!e&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!e&&t.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",a)},o.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},o.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(i){return St([to.DIMENSION,to.VALUE],i.type)})},o.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},o.prototype.getRangeBorders=function(){var _,y,t=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),i=!1,n=!1,r=!1,a=!1,l=this.cellCtrl.getCellPosition().column,h=this.beans,m=h.rangeService,v=h.columnModel;e?(_=v.getDisplayedColAfter(l),y=v.getDisplayedColBefore(l)):(_=v.getDisplayedColBefore(l),y=v.getDisplayedColAfter(l));var b=m.getCellRanges().filter(function(X){return m.isCellInSpecificRange(t.cellCtrl.getCellPosition(),X)});_||(a=!0),y||(n=!0);for(var R=0;R=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Xd=function(){function o(){}return o.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},tt([w("resizeObserverService")],o.prototype,"resizeObserverService",void 0),tt([w("paginationProxy")],o.prototype,"paginationProxy",void 0),tt([w("context")],o.prototype,"context",void 0),tt([w("columnApi")],o.prototype,"columnApi",void 0),tt([w("gridApi")],o.prototype,"gridApi",void 0),tt([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),tt([w("expressionService")],o.prototype,"expressionService",void 0),tt([w("rowRenderer")],o.prototype,"rowRenderer",void 0),tt([w("templateService")],o.prototype,"templateService",void 0),tt([w("valueService")],o.prototype,"valueService",void 0),tt([w("eventService")],o.prototype,"eventService",void 0),tt([w("columnModel")],o.prototype,"columnModel",void 0),tt([w("headerNavigationService")],o.prototype,"headerNavigationService",void 0),tt([w("navigationService")],o.prototype,"navigationService",void 0),tt([w("columnAnimationService")],o.prototype,"columnAnimationService",void 0),tt([rt("rangeService")],o.prototype,"rangeService",void 0),tt([w("focusService")],o.prototype,"focusService",void 0),tt([rt("contextMenuFactory")],o.prototype,"contextMenuFactory",void 0),tt([w("popupService")],o.prototype,"popupService",void 0),tt([w("valueFormatterService")],o.prototype,"valueFormatterService",void 0),tt([w("stylingService")],o.prototype,"stylingService",void 0),tt([w("columnHoverService")],o.prototype,"columnHoverService",void 0),tt([w("userComponentFactory")],o.prototype,"userComponentFactory",void 0),tt([w("userComponentRegistry")],o.prototype,"userComponentRegistry",void 0),tt([w("animationFrameService")],o.prototype,"animationFrameService",void 0),tt([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),tt([w("sortController")],o.prototype,"sortController",void 0),tt([w("filterManager")],o.prototype,"filterManager",void 0),tt([w("rowContainerHeightService")],o.prototype,"rowContainerHeightService",void 0),tt([w("frameworkOverrides")],o.prototype,"frameworkOverrides",void 0),tt([w("cellPositionUtils")],o.prototype,"cellPositionUtils",void 0),tt([w("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),tt([w("selectionService")],o.prototype,"selectionService",void 0),tt([rt("selectionHandleFactory")],o.prototype,"selectionHandleFactory",void 0),tt([w("rowCssClassCalculator")],o.prototype,"rowCssClassCalculator",void 0),tt([w("rowModel")],o.prototype,"rowModel",void 0),tt([w("ctrlsService")],o.prototype,"ctrlsService",void 0),tt([w("ctrlsFactory")],o.prototype,"ctrlsFactory",void 0),tt([w("agStackComponentsRegistry")],o.prototype,"agStackComponentsRegistry",void 0),tt([w("valueCache")],o.prototype,"valueCache",void 0),tt([w("rowNodeEventThrottle")],o.prototype,"rowNodeEventThrottle",void 0),tt([ve],o.prototype,"postConstruct",null),tt([we("beans")],o)}(),nf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),rf=function(o){function t(e,i,n){var r=o.call(this)||this;return r.cellCtrl=e,r.beans=i,r.column=n,r}return nf(t,o),t.prototype.onMouseEvent=function(e,i){if(!jt(i))switch(e){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var i=this.beans,n=i.eventService,r=i.rangeService,a=i.gridOptionsWrapper;r&&(e.ctrlKey||e.metaKey)&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var h=this.cellCtrl.createEvent(e,S.EVENT_CELL_CLICKED);n.dispatchEvent(h);var m=this.column.getColDef();m.onCellClicked&&window.setTimeout(function(){return m.onCellClicked(h)},0),(a.isSingleClickEdit()||m.singleClickEdit)&&!a.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Yn()||vt("dblclick"))return!1;var e=(new Date).getTime(),i=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,i},t.prototype.onCellDoubleClicked=function(e){var i=this.column.getColDef(),n=this.cellCtrl.createEvent(e,S.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof i.onCellDoubleClicked&&window.setTimeout(function(){return i.onCellDoubleClicked(n)},0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var i=e.ctrlKey,n=e.metaKey,r=e.shiftKey,a=e.target,l=this.beans,h=l.eventService,m=l.rangeService;if(!this.isRightClickInExistingRange(e)){var v=m&&0!=m.getCellRanges().length;if(!r||!v){var _=(Gr()||zn())&&!this.cellCtrl.isEditing()&&!$a(a);this.cellCtrl.focusCell(_)}if(r&&v&&e.preventDefault(),!this.containsWidget(a)){if(m){var y=this.cellCtrl.getCellPosition();r?m.extendLatestRangeToCell(y):m.setRangeToCell(y,i||n)}h.dispatchEvent(this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var i=this.beans.rangeService;return!(!i||!i.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==e.button)},t.prototype.containsWidget=function(e){return Kn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,S.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var i=this.cellCtrl.getGui(),n=i.contains(e.target),r=i.contains(e.relatedTarget);return n&&r},t.prototype.destroy=function(){},t}(Xd),sf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Lv=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.cellCtrl=e,l.beans=i,l.rowNode=r,l.rowCtrl=a,l}return sf(t,o),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var i=e.key;switch(i){case le.ENTER:this.onEnterKeyDown(e);break;case le.F2:this.onF2KeyDown(e);break;case le.ESCAPE:this.onEscapeKeyDown(e);break;case le.TAB:this.onTabKeyDown(e);break;case le.BACKSPACE:case le.DELETE:this.onBackspaceOrDeleteKeyPressed(i,e);break;case le.DOWN:case le.UP:case le.RIGHT:case le.LEFT:this.onNavigationKeyPressed(e,i)}},t.prototype.onNavigationKeyPressed=function(e,i){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,i,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(e);i&&this.beans.navigationService.ensureCellVisible(i)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,i){var n=this,r=n.cellCtrl,a=n.beans,l=n.rowNode,h=a.gridOptionsWrapper,m=a.rangeService,v=a.eventService;r.isEditing()||(v.dispatchEvent({type:S.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Yi(e,h.isEnableCellEditingOnBackspace())?m&&h.isEnableRangeSelection()?m.clearCellRangeCellValues():r.isCellEditable()&&l.setDataValue(r.getColumn(),null,"cellKeyboardListenerFeature"):r.startRowOrCellEdit(e,void 0,i),v.dispatchEvent({type:S.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,le.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(le.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(le.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(e.target===this.eGui&&!this.cellCtrl.isEditing()){var r=String.fromCharCode(e.charCode);" "===r?this.onSpaceKeyPressed(e):md(e)&&(this.cellCtrl.startRowOrCellEdit(null,r,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var i=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var n=this.rowNode.isSelected(),r=!n;if(r||!i.isSuppressRowDeselection()){var a=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),l=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:a});void 0===n&&0===l&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:a})}}e.preventDefault()},t.prototype.destroy=function(){o.prototype.destroy.call(this)},t}(ge),Jd=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nv=function(o){function t(e,i,n,r){var a=o.call(this,'
    ')||this;return a.rowNode=e,a.column=i,a.beans=n,a.eCell=r,a}return Jd(t,o),t.prototype.postConstruct=function(){this.getGui().appendChild(Jt("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",function(i){i.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var i=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var l=JSON.stringify(i.rowNode.data);e.dataTransfer.setData("application/json",l),e.dataTransfer.setData("text/plain",l)}catch{}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(Je),af=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ra=function(){return ra=Object.assign||function(o){for(var t,e=1,i=arguments.length;e0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},Hi=(()=>(function(o){o.Normal="Normal",o.FullWidth="FullWidth",o.FullWidthLoading="FullWidthLoading",o.FullWidthGroup="FullWidthGroup",o.FullWidthDetail="FullWidthDetail"}(Hi||(Hi={})),Hi))(),jv=0,io=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.allRowGuis=[],l.active=!0,l.centerCellCtrls={list:[],map:{}},l.leftCellCtrls={list:[],map:{}},l.rightCellCtrls={list:[],map:{}},l.lastMouseDownOnDragger=!1,l.updateColumnListsPending=!1,l.beans=i,l.rowNode=e,l.paginationPage=l.beans.paginationProxy.getCurrentPage(),l.useAnimationFrameForCreate=r,l.printLayout=a,l.instanceId=e.id+"-"+jv++,l.setAnimateFlags(n),l.rowFocused=l.beans.focusService.isRowFocused(l.rowNode.rowIndex,l.rowNode.rowPinned),l.rowLevel=l.beans.rowCssClassCalculator.calculateRowLevel(l.rowNode),l.setRowType(),l.addListeners(),l}return ff(t,o),t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,i,n){var r={rowComp:e,element:i,containerType:n};this.allRowGuis.push(r),n===Vi.LEFT?this.leftGui=r:n===Vi.RIGHT?this.rightGui=r:n===Vi.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r,(null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui||null!=this.fullWidthGui)&&this.initialiseRowComps(),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.isCacheable=function(){return this.rowType===Hi.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},t.prototype.setCached=function(e){var i=e?"none":"";this.allRowGuis.forEach(function(n){return n.element.style.display=i})},t.prototype.initialiseRowComps=function(){var e=this,i=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),i.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&Ce(this.onTopChanged.bind(this)),this.fadeRowIn&&Ce(function(){e.allRowGuis.forEach(function(l){return l.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})});var n=this.getRowBusinessKey(),r=en(this.rowNode.id),a=en(n);this.allRowGuis.forEach(function(l){var h=l.rowComp;h.setRole("row"),e.getInitialRowClasses(l.containerType).forEach(function(v){return h.addOrRemoveCssClass(v,!0)}),e.rowNode.group&&tn(l.element,1==e.rowNode.expanded),null!=r&&h.setRowId(r),null!=a&&h.setRowBusinessKey(a),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&h.setTabIndex(-1),i.setDomData(l.element,t.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc(function(){return i.setDomData(l.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,l.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(l.element),e.isFullWidth()&&e.setupFullWidth(l),i.isRowDragEntireRow()&&e.addRowDraggerToRow(l),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask(function(){!e.isAlive()||l.rowComp.addOrRemoveCssClass("ag-after-created",!0)})}),this.executeProcessRowPostCreateFunc()},t.prototype.addRowDraggerToRow=function(e){var i=this.beans.gridOptionsWrapper;if(i.isEnableRangeSelection())Ve(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");else{var n=i.getLocaleTextFunc(),r=new $s(function(){return"1 "+n("rowDragRow","row")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(r,this.beans.context)}},t.prototype.setupFullWidth=function(e){var i=this.getPinnedForContainer(e.containerType),n=this.createFullWidthParams(e.element,i),r=$.isRegistered(Ie.MasterDetailModule);if(this.rowType!=Hi.FullWidthDetail||r){var a;switch(this.rowType){case Hi.FullWidthDetail:a=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case Hi.FullWidthGroup:a=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case Hi.FullWidthLoading:a=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:a=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}e.rowComp.showFullWidth(a)}else $.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+Ie.MasterDetailModule)},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getCellElement=function(e){var i=this.getCellCtrl(e);return i?i.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},t.prototype.setRowType=function(){var e=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),l=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);this.rowType=e?Hi.FullWidthLoading:n?Hi.FullWidthDetail:i?Hi.FullWidth:l?Hi.FullWidthGroup:Hi.Normal},t.prototype.updateColumnLists=function(e){var i=this;if(void 0===e&&(e=!1),!this.isFullWidth()){if(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)return void this.updateColumnListsImpl();this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){!i.active||i.updateColumnListsImpl()},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,i,n){var r=this;void 0===n&&(n=null);var a={list:[],map:{}},l=function(h,m){a.list.push(m),a.map[h]=m};return i.forEach(function(h){var m=h.getInstanceId(),v=e.map[m];v||(v=new Cr(h,r.rowNode,r.beans,r)),l(m,v)}),e.list.forEach(function(h){if(null==a.map[h.getColumn().getInstanceId()]){if(!r.isCellEligibleToBeRemoved(h,n))return void l(h.getColumn().getInstanceId(),h);h.destroy()}}),a},t.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var i=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var n=i.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);var r=i.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,G.PINNED_LEFT);var a=i.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,a,G.PINNED_RIGHT)}this.allRowGuis.forEach(function(l){l.rowComp.setCellCtrls((l.containerType===Vi.LEFT?e.leftCellCtrls:l.containerType===Vi.RIGHT?e.rightCellCtrls:e.centerCellCtrls).list)})},t.prototype.isCellEligibleToBeRemoved=function(e,i){var n=!0;if(e.getColumn().getPinned()!=i)return n;var l=e.isEditing(),h=this.beans.focusService.isCellFocused(e.getCellPosition());if(l||h){var v=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(v)>=0)&&n}return n},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var i=N(this.rowNode.oldRowTop);this.slideRowIn=i,this.fadeRowIn=!i}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Hi.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,i=function(m,v){if(!m)return!0;var _=m.rowComp.getFullWidthCellRenderer();if(!_||!_.refresh)return!1;var y=e.createFullWidthParams(m.element,v);return _.refresh(y)},n=i(this.fullWidthGui,null),r=i(this.centerGui,null),a=i(this.leftGui,G.PINNED_LEFT),l=i(this.rightGui,G.PINNED_RIGHT);return n&&r&&a&&l},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,nt.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,nt.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,S.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,S.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,S.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,S.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,S.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,S.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,S.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,nt.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(i){return i.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,nt.EVENT_CELL_CHANGED,function(i){e.getAllCellCtrls().forEach(function(n){return n.onCellChanged(i)})})},t.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach(function(i){return i.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(i){var r=e===vn.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",e===vn.Above),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)})},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),i=1==this.rowNode.expanded;this.allRowGuis.forEach(function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&i),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!i),tn(n.element,e&&i)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:_e(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var i=this.allRowGuis.find(function(m){return m.element.contains(e.target)});if((i?i.element:null)===e.target){var a=this.rowNode,l=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(e,e.key,{rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:l&&l.column},!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!jt(e)){var i=this.allRowGuis.find(function(l){return l.element.contains(e.target)}),n=i?i.element:null,r=n===e.target,a=null;r||(a=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!a)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var i,n=this.rowNode,r=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,a=this.fullWidthGui?this.fullWidthGui.element:null===(i=this.centerGui)||void 0===i?void 0:i.element;!a||(a.classList.toggle("ag-full-width-focus",r),r&&a.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,i){var n={list:[],map:{}};return e.list.forEach(function(r){r!==i&&(n.list.push(r),n.map[r.getInstanceId()]=r)}),n},t.prototype.onMouseEvent=function(e,i){switch(e){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i)}},t.prototype.createRowEvent=function(e,i){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:i}},t.prototype.createRowEventWithSource=function(e,i){var n=this.createRowEvent(e,i);return n.source=this,n},t.prototype.onRowDblClick=function(e){if(!jt(e)){var i=this.createRowEventWithSource(S.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(i)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=Kn(e.target,"ag-row-drag",3),this.isFullWidth()){var i=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!jt(e)&&!this.lastMouseDownOnDragger){var n=this.createRowEventWithSource(S.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(n);var r=e.ctrlKey||e.metaKey,a=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var h=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),m=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();this.rowNode.isSelected()?h?this.rowNode.setSelectedParams({newValue:!1,event:e}):r?m&&this.rowNode.setSelectedParams({newValue:!1,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!a,rangeSelect:a,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!h&&!r,rangeSelect:a,event:e})}}},t.prototype.setupDetailRowAutoHeight=function(e){var i=this;if(this.rowType===Hi.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var a=e.clientHeight;null!=a&&a>0&&i.beans.frameworkOverrides.setTimeout(function(){i.rowNode.setRowHeight(a),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()},0)},r=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(r),n()}},t.prototype.createFullWidthParams=function(e,i){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(a,l,h,m){return n.addFullWidthRowDragging(a,l,h,m)}}},t.prototype.addFullWidthRowDragging=function(e,i,n,r){if(void 0===n&&(n=""),this.isFullWidth()){var a=new $s(function(){return n},this.rowNode,void 0,e,i,r);this.createManagedBean(a,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var i="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass(i,!0),r.rowComp.addOrRemoveCssClass(n,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-last",i)}))},t.prototype.stopEditing=function(e){var i,n;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),a=this.editingRow;this.stoppingRowEdit=!0;var l=!1;try{for(var h=function(o){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&o[t],i=0;if(e)return e.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),m=h.next();!m.done;m=h.next()){var _=m.value.stopEditing(e);a&&!e&&!l&&_&&(l=!0)}}catch(b){i={error:b}}finally{try{m&&!m.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}if(l){var y=this.createRowEvent(S.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(y)}a&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(n){return n.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var i=this.createRowEvent(e?S.EVENT_ROW_EDITING_STARTED:S.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},t.prototype.startRowEditing=function(e,i,n,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n=null),void 0===r&&(r=null),this.editingRow||this.getAllCellCtrls().reduce(function(l,h){var m=h===n;return m?h.startEditing(e,i,m,r):h.startEditing(null,null,m,r),!!l||h.isEditing()},!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){var e=function(){for(var o=[],t=0;t=0&&(i=n)}),i},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),i=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,r=i+this.rowNode.rowIndex+1;this.allRowGuis.forEach(function(a){a.rowComp.setRowIndex(e),a.rowComp.addOrRemoveCssClass("ag-row-even",n),a.rowComp.addOrRemoveCssClass("ag-row-odd",!n),Rs(a.element,r)})},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(ge),zv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),sn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},mf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return zv(t,o),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(n){var r=e.processKeyboardEvent.bind(e,n);e.addManagedListener(e.element,n,r)})},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",vt("touchstart")?"touchstart":"mousedown"].forEach(function(r){var a=e.processMouseEvent.bind(e,r);e.addManagedListener(e.element,r,a)})},t.prototype.processMouseEvent=function(e,i){if(this.mouseEventService.isEventFromThisGrid(i)&&!jt(i)){var n=this.getRowForEvent(i),r=this.mouseEventService.getRenderedCellForEvent(i);"contextmenu"===e?this.handleContextMenuMouseEvent(i,null,n,r):(r&&r.onMouseEvent(e,i),n&&n.onMouseEvent(e,i))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Yn()){var i=new ki(this.element);this.addManagedListener(i,ki.EVENT_LONG_TAP,function(r){var a=e.getRowForEvent(r.touchEvent),l=e.mouseEventService.getRenderedCellForEvent(r.touchEvent);e.handleContextMenuMouseEvent(null,r.touchEvent,a,l)}),this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.getRowForEvent=function(e){for(var i=e.target;i;){var n=this.gridOptionsWrapper.getDomData(i,io.DOM_DATA_KEY_ROW_CTRL);if(n)return n;i=i.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,i,n,r){var a=n?n.getRowNode():null,l=r?r.getColumn():null,h=null;l&&(r.dispatchCellContextMenuEvent(e||i),h=this.valueService.getValue(l,a));var v=this.ctrlsService.getGridBodyCtrl(),_=r?r.getGui():v.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,i,a,l,h,_)},t.prototype.processKeyboardEvent=function(e,i){var n=dt(this.gridOptionsWrapper,i,Cr.DOM_DATA_KEY_CELL_CTRL),r=dt(this.gridOptionsWrapper,i,io.DOM_DATA_KEY_ROW_CTRL);i.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,i):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,i))},t.prototype.processCellKeyboardEvent=function(e,i,n){var r=e.getRowNode(),a=e.getColumn(),l=e.isEditing();if(!Ms(this.gridOptionsWrapper,n,r,a,l))switch(i){case"keydown":!l&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===i){var v=e.createEvent(n,S.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(v)}if("keypress"===i){var _=e.createEvent(n,S.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(_)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,i,n){var r=e.getRowNode(),a=this.focusService.getFocusedCell();if(!Ms(this.gridOptionsWrapper,n,r,a&&a.column,!1)&&"keydown"===i)switch(n.key){case le.UP:case le.DOWN:e.onKeyboardNavigate(n);break;case le.TAB:e.onTabKeyDown(n)}if("keydown"===i){var v=e.createRowEvent(S.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(v)}if("keypress"===i){var _=e.createRowEvent(S.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(_)}},t.prototype.doGridOperations=function(e,i){if((e.ctrlKey||e.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(e)){var n=qn(e);if(n===le.A)return this.onCtrlAndA(e);if(n===le.C)return this.onCtrlAndC(e);if(n===le.V)return this.onCtrlAndV();if(n===le.D)return this.onCtrlAndD(e);if(n===le.Z)return this.onCtrlAndZ(e);if(n===le.Y)return this.onCtrlAndY()}},t.prototype.onCtrlAndA=function(e){var i=this,n=i.pinnedRowModel,a=i.rangeService,l=G.PINNED_BOTTOM,h=G.PINNED_TOP;if(a&&i.paginationProxy.isRowsToRender()){var m=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}([n.isEmpty(h),n.isEmpty(l)],2),y=m[0]?null:h,b=void 0,R=void 0;m[1]?(b=null,R=this.paginationProxy.getRowCount()-1):(b=l,R=n.getPinnedBottomRowData().length-1);var I=this.columnModel.getAllDisplayedColumns();if(ae(I))return;a.setCellRange({rowStartIndex:0,rowStartPinned:y,rowEndIndex:R,rowEndPinned:b,columnStart:I[0],columnEnd:Be(I)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){!this.clipboardService||this.gridOptionsWrapper.isEnableCellTextSelection()||(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){$.isRegistered(Ie.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){$.isRegistered(Ie.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){!this.gridOptionsWrapper.isUndoRedoCellEditing()||(e.preventDefault(),e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},sn([w("mouseEventService")],t.prototype,"mouseEventService",void 0),sn([w("valueService")],t.prototype,"valueService",void 0),sn([rt("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),sn([w("ctrlsService")],t.prototype,"ctrlsService",void 0),sn([w("navigationService")],t.prototype,"navigationService",void 0),sn([w("focusService")],t.prototype,"focusService",void 0),sn([w("undoRedoService")],t.prototype,"undoRedoService",void 0),sn([w("columnModel")],t.prototype,"columnModel",void 0),sn([w("paginationProxy")],t.prototype,"paginationProxy",void 0),sn([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),sn([rt("rangeService")],t.prototype,"rangeService",void 0),sn([rt("clipboardService")],t.prototype,"clipboardService",void 0),sn([ve],t.prototype,"postConstruct",null),t}(ge),Kv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},gf=function(o){function t(e){var i=o.call(this)||this;return i.centerContainerCtrl=e,i}return Kv(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,S.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,i=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var i=Vr(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==i&&(this.bodyHeight=i,this.eventService.dispatchEvent({type:S.EVENT_BODY_HEIGHT_CHANGED}))},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},Hl([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Hl([w("columnModel")],t.prototype,"columnModel",void 0),Hl([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Hl([ve],t.prototype,"postConstruct",null),t}(ge),Rn=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},vf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return Rn(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),i=e>0;Lt(this.element,i),i&&gn(this.element,e)},nu([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),nu([ve],t.prototype,"postConstruct",null),t}(ge),_f=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ru=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},yf=function(o){function t(e){var i=o.call(this)||this;return i.element=e,i}return _f(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),i=e>0;Lt(this.element,i),i&&gn(this.element,e)},ru([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),ru([ve],t.prototype,"postConstruct",null),t}(ge),Cf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ou=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},wf=function(o){function t(e,i){var n=o.call(this)||this;return n.eContainer=e,n.eWrapper=i,n}return Cf(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),i=null!=e?e+"px":"";this.eContainer.style.height=i,this.eWrapper&&(this.eWrapper.style.height=i)},ou([w("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),ou([ve],t.prototype,"postConstruct",null),t}(ge),bf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},xf=function(o){function t(e){var i=o.call(this)||this;return i.eContainer=e,i}return bf(t,o),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!z(this.rangeService)){var i={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(i),this.addDestroyFunc(function(){return e.dragService.removeDragSource(i)})}},Vl([rt("rangeService")],t.prototype,"rangeService",void 0),Vl([w("dragService")],t.prototype,"dragService",void 0),Vl([ve],t.prototype,"postConstruct",null),t}(ge),oa=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),su=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Bl=function(o){function t(e){var i=o.call(this)||this;return i.callback=e,i}return oa(t,o),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,i=this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),a=e.getDisplayedColumnsRightWidth();this.callback(i?n+r+a:n)},su([w("columnModel")],t.prototype,"columnModel",void 0),su([ve],t.prototype,"postConstruct",null),t}(ge),Ef=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),wr=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Sf=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},ie=(()=>(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth",o.TOP_LEFT="topLeft",o.TOP_RIGHT="topRight",o.TOP_CENTER="topCenter",o.TOP_FULL_WIDTH="topFullWidth",o.STICKY_TOP_LEFT="stickyTopLeft",o.STICKY_TOP_RIGHT="stickyTopRight",o.STICKY_TOP_CENTER="stickyTopCenter",o.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",o.BOTTOM_LEFT="bottomLeft",o.BOTTOM_RIGHT="bottomRight",o.BOTTOM_CENTER="bottomCenter",o.BOTTOM_FULL_WIDTH="bottomFullWidth"}(ie||(ie={})),ie))(),Vi=(()=>(function(o){o.LEFT="left",o.RIGHT="right",o.CENTER="center",o.FULL_WIDTH="fullWidth"}(Vi||(Vi={})),Vi))(),Tf=Fn([[ie.CENTER,"ag-center-cols-container"],[ie.LEFT,"ag-pinned-left-cols-container"],[ie.RIGHT,"ag-pinned-right-cols-container"],[ie.FULL_WIDTH,"ag-full-width-container"],[ie.TOP_CENTER,"ag-floating-top-container"],[ie.TOP_LEFT,"ag-pinned-left-floating-top"],[ie.TOP_RIGHT,"ag-pinned-right-floating-top"],[ie.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[ie.STICKY_TOP_CENTER,"ag-sticky-top-container"],[ie.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[ie.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[ie.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[ie.BOTTOM_CENTER,"ag-floating-bottom-container"],[ie.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[ie.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[ie.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Df=Fn([[ie.CENTER,"ag-center-cols-viewport"],[ie.TOP_CENTER,"ag-floating-top-viewport"],[ie.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[ie.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Bo=Fn([[ie.CENTER,"ag-center-cols-clipper"]]),sa=function(o){function t(e){var i=o.call(this)||this;return i.name=e,i}return Ef(t,o),t.getRowContainerCssClasses=function(e){return{container:Tf.get(e),viewport:Df.get(e),wrapper:Bo.get(e)}},t.getPinned=function(e){switch(e){case ie.BOTTOM_LEFT:case ie.TOP_LEFT:case ie.STICKY_TOP_LEFT:case ie.LEFT:return G.PINNED_LEFT;case ie.BOTTOM_RIGHT:case ie.TOP_RIGHT:case ie.STICKY_TOP_RIGHT:case ie.RIGHT:return G.PINNED_RIGHT;default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([ie.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new gf(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case ie.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case ie.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case ie.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case ie.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case ie.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case ie.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case ie.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case ie.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case ie.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case ie.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case ie.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case ie.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,i){e.indexOf(this.name)>=0&&i()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,i,n,r){var a=this;this.comp=e,this.eContainer=i,this.eViewport=n,this.eWrapper=r,this.createManagedBean(new mf(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var _=function(){for(var o=[],t=0;t=0)this.comp.setDomOrder(!0);else{var r=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,r),r()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([ie.TOP_CENTER,ie.STICKY_TOP_CENTER,ie.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,"scroll",function(){return e.eViewport.scrollLeft=0})})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([ie.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([ie.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){if(this.name===ie.CENTER){var i=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0;this.comp.setViewportHeight(0==i?"100%":"calc(100% + "+i+"px)")}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,i=function(n){e.dragService.isDragging()&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",i)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},t.prototype.getCenterWidth=function(){return Cs(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return dr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var i=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return i()})},t.prototype.isViewportVisible=function(){return xo(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Qa(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return dr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||Qa(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){bo(this.eViewport,e,this.enableRtl)},t.prototype.onDisplayedRowsChanged=function(){var e=this,i=this.name===ie.TOP_FULL_WIDTH||this.name===ie.STICKY_TOP_FULL_WIDTH||this.name===ie.BOTTOM_FULL_WIDTH||this.name===ie.FULL_WIDTH,a=this.getRowCtrls().filter(function(l){var h=l.isFullWidth(),m=e.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_PRINT,v=e.embedFullWidthRows||m;return i?!v&&h:v||!h});this.comp.setRowCtrls(a)},t.prototype.getRowCtrls=function(){switch(this.name){case ie.TOP_CENTER:case ie.TOP_LEFT:case ie.TOP_RIGHT:case ie.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case ie.STICKY_TOP_CENTER:case ie.STICKY_TOP_LEFT:case ie.STICKY_TOP_RIGHT:case ie.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case ie.BOTTOM_CENTER:case ie.BOTTOM_LEFT:case ie.BOTTOM_RIGHT:case ie.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},wr([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),wr([w("dragService")],t.prototype,"dragService",void 0),wr([w("ctrlsService")],t.prototype,"ctrlsService",void 0),wr([w("columnModel")],t.prototype,"columnModel",void 0),wr([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),wr([w("rowRenderer")],t.prototype,"rowRenderer",void 0),wr([ve],t.prototype,"postConstruct",null),t}(ge),Mf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),br=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},$v='
    \n \n \n \n \n \n \n \n
    ',au=function(o){function t(){return o.call(this,$v)||this}return Mf(t,o),t.prototype.init=function(){var e=this,i=function(r,a){var l=r+"px";a.style.minHeight=l,a.style.height=l},n={setRowAnimationCssOnBodyViewport:function(r,a){return e.setRowAnimationCssOnBodyViewport(r,a)},setColumnCount:function(r){return pd(e.getGui(),r)},setRowCount:function(r){return qp(e.getGui(),r)},setTopHeight:function(r){return i(r,e.eTop)},setBottomHeight:function(r){return i(r,e.eBottom)},setTopDisplay:function(r){return e.eTop.style.display=r},setBottomDisplay:function(r){return e.eBottom.style.display=r},setStickyTopHeight:function(r){return e.eStickyTop.style.height=r},setStickyTopTop:function(r){return e.eStickyTop.style.top=r},setStickyTopWidth:function(r){return e.eStickyTop.style.width=r},setColumnMovingCss:function(r,a){return e.addOrRemoveCssClass(Kh,a)},updateLayoutClasses:function(r,a){var l=e.eBodyViewport.classList;l.toggle(ti.AUTO_HEIGHT,a.autoHeight),l.toggle(ti.NORMAL,a.normal),l.toggle(ti.PRINT,a.print),e.addOrRemoveCssClass(ti.AUTO_HEIGHT,a.autoHeight),e.addOrRemoveCssClass(ti.NORMAL,a.normal),e.addOrRemoveCssClass(ti.PRINT,a.print)},setAlwaysVerticalScrollClass:function(r,a){return e.eBodyViewport.classList.toggle(Gl,a)},registerBodyViewportResizeListener:function(r){var a=e.resizeObserverService.observeResize(e.eBodyViewport,r);e.addDestroyFunc(function(){return a()})},setPinnedTopBottomOverflowY:function(r){return e.eTop.style.overflowY=e.eBottom.style.overflowY=r},setCellSelectableCss:function(r,a){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(l){return l.classList.toggle(ia,a)})}};this.ctrl=this.createManagedBean(new Av),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Yr(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,i){var n=this.eBodyViewport.classList;n.toggle(yr.ANIMATION_ON,i),n.toggle(yr.ANIMATION_OFF,!i)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},br([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),br([rt("rangeService")],t.prototype,"rangeService",void 0),br([ce("eBodyViewport")],t.prototype,"eBodyViewport",void 0),br([ce("eStickyTop")],t.prototype,"eStickyTop",void 0),br([ce("eTop")],t.prototype,"eTop",void 0),br([ce("eBottom")],t.prototype,"eBottom",void 0),br([ce("gridHeader")],t.prototype,"headerRootComp",void 0),br([ve],t.prototype,"init",null),t}(Je),Zv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),lu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},qv=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Zv(t,o),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var i={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},t.prototype.setScrollsVisible=function(e){this.horizontalScrollShowing===e.horizontalScrollShowing&&this.verticalScrollShowing===e.verticalScrollShowing||(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dispatchEvent({type:S.EVENT_SCROLL_VISIBILITY_CHANGED}))},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},lu([w("ctrlsService")],t.prototype,"ctrlsService",void 0),lu([ve],t.prototype,"postConstruct",null),lu([we("scrollVisibleService")],t)}(ge),Qv=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Af=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Pf=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.gridInstanceId=e.gridInstanceSequence.next(),i}var e;return Qv(t,o),e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(i){i[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(i){return dt(this.gridOptionsWrapper,i,Cr.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(i){return this.isElementInThisGrid(i.target)},t.prototype.isElementInThisGrid=function(i){for(var n=i;n;){var r=n[e.GRID_DOM_KEY];if(N(r))return r===this.gridInstanceId;n=n.parentElement}return!1},t.prototype.getCellPositionForEvent=function(i){var n=this.getRenderedCellForEvent(i);return n?n.getCellPosition():null},t.prototype.getNormalisedPosition=function(i){var a,l,n=this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_NORMAL;if(null!=i.clientX||null!=i.clientY?(a=i.clientX,l=i.clientY):(a=i.x,l=i.y),n){var h=this.ctrlsService.getGridBodyCtrl(),m=h.getScrollFeature().getVScrollPosition();a+=h.getScrollFeature().getHScrollPosition().left,l+=m.top}return{x:a,y:l}},t.gridInstanceSequence=new Zr,t.GRID_DOM_KEY="__ag_grid_instance",Af([w("ctrlsService")],t.prototype,"ctrlsService",void 0),e=Af([we("mouseEventService")],t)}(ge),If=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Wl=function(){return Wl=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Ff=function(o){function t(){var e=o.call(this)||this;return e.onPageDown=at(e.onPageDown,100),e.onPageUp=at(e.onPageUp,100),e}return If(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCon=i.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e){var i=e.key,n=e.altKey,r=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e);if(!l)return!1;var h=!1;switch(i){case le.PAGE_HOME:case le.PAGE_END:!r&&!n&&(this.onHomeOrEndKey(i),h=!0);break;case le.LEFT:case le.RIGHT:case le.UP:case le.DOWN:r&&!n&&!a&&(this.onCtrlUpDownLeftRight(i,l),h=!0);break;case le.PAGE_DOWN:!r&&!n&&(this.onPageDown(l),h=!0);break;case le.PAGE_UP:!r&&!n&&(this.onPageUp(l),h=!0)}return h&&e.preventDefault(),h},t.prototype.navigateTo=function(e){var i=e.scrollIndex,n=e.scrollType,r=e.scrollColumn,a=e.focusIndex,l=e.focusColumn;N(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),N(i)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(i,n),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(a),this.focusService.setFocusedCell({rowIndex:a,column:l,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:a,rowPinned:null,column:l})},t.prototype.onPageDown=function(e){var n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),a=this.paginationProxy.getPixelOffset(),h=this.paginationProxy.getRowIndexAtPixel(n.top+r+a);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,h):this.navigateToNextPage(e,h)},t.prototype.onPageUp=function(e){var n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRowIndexAtPixel(n.top+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)},t.prototype.navigateToNextPage=function(e,i,n){void 0===n&&(n=!1);var r,a,H,l=this.getViewportHeight(),h=this.paginationProxy.getPageFirstRow(),m=this.paginationProxy.getPageLastRow(),v=this.paginationProxy.getPixelOffset(),_=this.paginationProxy.getRow(e.rowIndex),y=n?(null===(r=_)||void 0===r?void 0:r.rowHeight)-l-v:l-v,b=(null===(a=_)||void 0===a?void 0:a.rowTop)+y,R=this.paginationProxy.getRowIndexAtPixel(b+v);R===e.rowIndex&&(i=R=e.rowIndex+(n?-1:1)),n?(H="bottom",Rm&&(R=m),i>m&&(i=m)),this.isRowTallerThanView(R)&&(i=R,H="top"),this.navigateTo({scrollIndex:i,scrollType:H,scrollColumn:null,focusIndex:R,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,i,n){var r=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column}),setTimeout(function(){var a=r.getNextFocusIndexForAutoHeight(e,n);r.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:a,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,i){void 0===i&&(i=!1);for(var r=i?-1:1,a=this.getViewportHeight(),l=this.paginationProxy.getPageLastRow(),h=0,m=e.rowIndex;m>=0&&m<=l;){var v=this.paginationProxy.getRow(m);if(v){var _=v.rowHeight??0;if(h+_>a)break;h+=_}m+=r}return Math.max(0,Math.min(m,l))},t.prototype.getViewportHeight=function(){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),r=i.bottom-i.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=n),r},t.prototype.isRowTallerThanView=function(e){var i=this.paginationProxy.getRow(e);if(!i)return!1;var n=i.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,i){var n=this.cellNavigationService.getNextCellToFocus(e,i,!0),r=n.rowIndex,a=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:a,focusIndex:r,focusColumn:a})},t.prototype.onHomeOrEndKey=function(e){var i=e===le.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),r=i?n[0]:Be(n),a=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:r,focusIndex:a,focusColumn:r})},t.prototype.onTabKeyDown=function(e,i){var n=i.shiftKey;if(this.tabToNextCellCommon(e,n,i))i.preventDefault();else if(n){var a=e.getRowPosition(),l=a.rowIndex;(a.rowPinned?0===l:l===this.paginationProxy.getPageFirstRow())&&(i.preventDefault(),this.focusService.focusLastHeader(i))}else e instanceof Cr&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&i.preventDefault()},t.prototype.tabToNextCell=function(e,i){var n=this.focusService.getFocusedCell();if(!n)return!1;var r=this.getCellByPosition(n);return!!(r||(r=this.rowRenderer.getRowByPosition(n),r&&r.isFullWidth()))&&this.tabToNextCellCommon(r,e,i)},t.prototype.tabToNextCellCommon=function(e,i,n){var r=e.isEditing();if(!r&&e instanceof Cr){var l=e.getRowCtrl();l&&(r=l.isEditing())}return(r?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,i,n):this.moveToNextEditingCell(e,i,n):this.moveToNextCellNotEditing(e,i))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,i,n){void 0===n&&(n=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var a=this.findNextCellToFocusOn(r,i,!0);return null!=a&&(a.startEditing(null,null,!0,n),a.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,i,n){void 0===n&&(n=null);var r=e.getCellPosition(),a=this.findNextCellToFocusOn(r,i,!0);if(null==a)return!1;var l=a.getCellPosition(),h=this.isCellEditable(r),m=this.isCellEditable(l),v=l&&r.rowIndex===l.rowIndex&&r.rowPinned===l.rowPinned;return h&&e.setFocusOutOnEditor(),v||(e.getRowCtrl().stopEditing(),a.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),m?(a.setFocusInOnEditor(),a.focusCell()):a.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,i){var r,n=this.columnModel.getAllDisplayedColumns();r=e instanceof io?Wl(Wl({},e.getRowPosition()),{column:i?n[0]:Be(n)}):e.getCellPosition();var a=this.findNextCellToFocusOn(r,i,!1);if(a instanceof Cr)a.focusCell(!0);else if(a)return this.tryToFocusFullWidthRow(a.getRowPosition(),i);return N(a)},t.prototype.findNextCellToFocusOn=function(e,i,n){for(var r=e;;){e!==r&&(e=r),i||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,i);var a=this.gridOptionsWrapper.getTabToNextCellFunc();if(N(a)){var h=a({backwards:i,editing:n,previousCellPosition:e,nextCellPosition:r||null});N(h)?(h.floating&&(Ve(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),h.rowPinned=h.floating),r={rowIndex:h.rowIndex,column:h.column,rowPinned:h.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var m=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:m+r.rowIndex,column:r.column}}),null}var v=this.gridOptionsWrapper.isFullRowEdit();if(!n||v||this.isCellEditable(r)){this.ensureCellVisible(r);var y=this.getCellByPosition(r);if(!y){var b=this.rowRenderer.getRowByPosition(r);if(!b||!b.isFullWidth())continue;return b}if(!y.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),y}}},t.prototype.isCellEditable=function(e){var i=this.lookupRowNodeForCell(e);return!!i&&e.column.isCellEditable(i)},t.prototype.getCellByPosition=function(e){var i=this.rowRenderer.getRowByPosition(e);return i?i.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===G.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===G.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,i,n,r){for(var a=n,l=!1;a&&(a===n||!this.isValidNavigateCell(a));)this.gridOptionsWrapper.isEnableRtl()?i===le.LEFT&&(a=this.getLastCellOfColSpan(a)):i===le.RIGHT&&(a=this.getLastCellOfColSpan(a)),l=z(a=this.cellNavigationService.getNextCellToFocus(i,a));if(l&&e&&e.key===le.UP&&(a={rowIndex:-1,rowPinned:null,column:n.column}),r){var h=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(N(h)){var v=h({key:i,previousCellPosition:n,nextCellPosition:a||null,event:e});N(v)?(v.floating&&(Ve(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),v.rowPinned=v.floating),a={rowPinned:v.rowPinned,rowIndex:v.rowIndex,column:v.column}):a=null}}if(a){if(a.rowIndex<0){var _=this.headerNavigationService.getHeaderRowCount();return void this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:_+a.rowIndex,column:n.column},event:e||void 0})}var y=this.getNormalisedPosition(a);y?this.focusPosition(y):this.tryToFocusFullWidthRow(a)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var i=this.getCellByPosition(e);return i?(e=i.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,i){void 0===i&&(i=!1);var n=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var a=this.focusService.getFocusedCell(),l={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(i?Be(n):n[0])};this.focusPosition(l);var h=null!=a&&this.rowPositionUtils.before(l,a);return this.eventService.dispatchEvent({type:S.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:l.rowIndex,rowPinned:l.rowPinned,column:l.column,isFullWidthCell:!0,floating:l.rowPinned,fromBelow:h}),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var i=this.getCellByPosition(e);if(!i)return e;var n=i.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:Be(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var i,n=this.gridOptionsWrapper.isGroupRowsSticky(),r=this.rowModel.getRow(e.rowIndex);!(n&&(null===(i=r)||void 0===i?void 0:i.sticky))&&z(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Zi([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Zi([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Zi([w("focusService")],t.prototype,"focusService",void 0),Zi([rt("rangeService")],t.prototype,"rangeService",void 0),Zi([w("columnModel")],t.prototype,"columnModel",void 0),Zi([w("rowModel")],t.prototype,"rowModel",void 0),Zi([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Zi([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Zi([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Zi([w("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Zi([w("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Zi([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Zi([ve],t.prototype,"postConstruct",null),Zi([we("navigationService")],t)}(ge),Lf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jv=function(o){function t(e){var i=o.call(this,'
    ')||this;return i.params=e,i}return Lf(t,o),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,i=this.getGui(),n=this.params;this.addManagedListener(i,"keydown",function(a){Ms(e.gridOptionsWrapper,a,n.node,n.column,!0)||n.onKeyDown(a)})},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(Io),e_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Nf=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;l.rendererVersion=0,l.editorVersion=0,l.beans=e,l.column=i.getColumn(),l.rowNode=i.getRowNode(),l.rowCtrl=i.getRowCtrl(),l.eRow=r,l.setTemplate('
    ');var h=l.getGui();l.forceWrapper=i.isForceWrapper(),l.refreshWrapper(!1);var m=function(_,y,b){var R=b||h;null!=y&&""!=y?R.setAttribute(_,y):R.removeAttribute(_)},v={addOrRemoveCssClass:function(_,y){return l.addOrRemoveCssClass(_,y)},setUserStyles:function(_){return xs(h,_)},getFocusableElement:function(){return l.getFocusableElement()},setTabIndex:function(_){return m("tabindex",_.toString())},setRole:function(_){return Ti(h,_)},setColId:function(_){return m("col-id",_)},setTitle:function(_){return m("title",_)},setIncludeSelection:function(_){return l.includeSelection=_},setIncludeRowDrag:function(_){return l.includeRowDrag=_},setIncludeDndSource:function(_){return l.includeDndSource=_},setRenderDetails:function(_,y,b){return l.setRenderDetails(_,y,b)},setEditDetails:function(_,y,b){return l.setEditDetails(_,y,b)},getCellEditor:function(){return l.cellEditor||null},getCellRenderer:function(){return l.cellRenderer||null},getParentOfValue:function(){return l.getParentOfValue()}};return l.cellCtrl=i,i.setComp(v,l.getGui(),l.eCellWrapper,n,a),l}return e_(t,o),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,i,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var a=this.refreshWrapper(!1);e?!n&&!a&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(i))}},t.prototype.setEditDetails=function(e,i,n){e?this.createCellEditorInstance(e,i,n):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=i||this.forceWrapper,r=n&&null==this.eCellWrapper;r&&(this.eCellWrapper=vi(''),this.getGui().appendChild(this.eCellWrapper));var a=!n&&null!=this.eCellWrapper;a&&(Nn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var l=!e&&n,h=l&&null==this.eCellValue;h&&(this.eCellValue=vi(''),this.eCellWrapper.appendChild(this.eCellValue));var m=!l&&null!=this.eCellValue;m&&(Nn(this.eCellValue),this.eCellValue=void 0);var v=r||a||h||m;return v&&this.removeControls(),!e&&i&&this.addControls(),v},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),i=[];dd(this.eCellWrapper,!0),this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),i.push(this.checkboxSelectionComp.getCheckboxId())),i.push(e),tl(this.getGui(),i.join(" "))},t.prototype.createCellEditorInstance=function(e,i,n){var r=this,a=this.editorVersion,l=e.newAgStackInstance();if(l){var h=e.params;l.then(function(v){return r.afterCellEditorCreated(a,v,h,i,n)}),z(this.cellEditor)&&h.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var i=this.getParentOfValue();zi(i);var n=null!=e?en(e):null;null!=n&&(i.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),Nn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Nn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh||this.cellRendererClass!==e.componentClass)return!1;var i=this.cellRenderer.refresh(e.params);return!0===i||void 0===i},t.prototype.createCellRendererInstance=function(e){var i=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),l=this.rendererVersion,h=e.componentClass,m=function(){if(i.rendererVersion===l&&i.isAlive()){var _=e.newAgStackInstance(),y=i.afterCellRendererCreated.bind(i,l,h);_&&_.then(y)}};n||r||!this.firstRender?m():this.beans.animationFrameService.createTask(m,this.rowNode.rowIndex,"createTasksP2")},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,i,n){if(this.isAlive()&&e===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var a=this.getParentOfValue();zi(a),a.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},t.prototype.afterCellEditorCreated=function(e,i,n,r,a){if(e!==this.editorVersion)this.beans.context.destroyBean(i);else{if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return this.beans.context.destroyBean(i),void this.cellCtrl.stopEditing();if(!i.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(i);this.cellEditor=i,this.cellEditorGui=i.getGui(),r||void 0!==i.isPopup&&i.isPopup()?(r||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,a)):this.addInCellEditor(),i.afterGuiAttached&&i.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,i){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Jv(e));var a=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&a.appendChild(this.cellEditorGui);var l=this.beans.popupService,h=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),m=i??(r.getPopupPosition?r.getPopupPosition():"over"),v={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:a,keepWithinBounds:!0},_="under"===m?l.positionPopupUnderComponent.bind(l,v):l.positionPopupOverComponent.bind(l,v),y=this.beans.gridOptionsWrapper.getLocaleTextFunc(),b=l.addPopup({modal:h,eChild:a,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:_,ariaLabel:y("ariaLabelCellEditor","Cell Editor")});b&&(this.hideEditorPopup=b.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),o.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&ms()&&e.focus({preventScroll:!0}),zi(this.getParentOfValue())},t}(Je),t_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),i_=function(o){function t(e,i,n){var r=o.call(this)||this;r.cellComps={},r.beans=i,r.rowCtrl=e,r.setTemplate('
    ');var a=r.getGui(),l=a.style;return e.setComp({setDomOrder:function(m){return r.domOrder=m},setCellCtrls:function(m){return r.setCellCtrls(m)},showFullWidth:function(m){return r.showFullWidth(m)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(m,v){return r.addOrRemoveCssClass(m,v)},setUserStyles:function(m){return xs(a,m)},setTop:function(m){return l.top=m},setTransform:function(m){return l.transform=m},setRowIndex:function(m){return a.setAttribute("row-index",m)},setRole:function(m){return Ti(a,m)},setRowId:function(m){return a.setAttribute("row-id",m)},setRowBusinessKey:function(m){return a.setAttribute("row-business-key",m)},setTabIndex:function(m){return a.setAttribute("tabindex",m.toString())}},r.getGui(),n),r}return t_(t,o),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),i=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+i},t.prototype.showFullWidth=function(e){var i=this,r=e.newAgStackInstance();!r||r.then(function(a){if(i.isAlive()){var l=a.getGui();i.getGui().appendChild(l),i.rowCtrl.setupDetailRowAutoHeight(l),i.setFullWidthRowComp(a)}else i.beans.context.destroyBean(a)})},t.prototype.setCellCtrls=function(e){var i=this,n=Object.assign({},this.cellComps);e.forEach(function(a){var l=a.getInstanceId();null==i.cellComps[l]?i.newCellComp(a):n[l]=null});var r=Nt(n).filter(function(a){return null!=a});this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var i=this;if(this.domOrder){var n=[];e.forEach(function(r){var a=i.cellComps[r.getInstanceId()];a&&n.push(a.getGui())}),qa(this.getGui(),n)}},t.prototype.newCellComp=function(e){var i=new Nf(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},t.prototype.destroy=function(){o.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=Nt(this.cellComps).filter(function(i){return null!=i});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var i=this;e.forEach(function(n){if(n){var r=n.getCtrl().getInstanceId();i.cellComps[r]===n&&(n.detach(),n.destroy(),i.cellComps[r]=null)}})},t}(Je),n_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),cu=function(){return cu=Object.assign||function(o){for(var t,e=1,i=arguments.length;e=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},r_=function(o){function t(){var e=o.call(this,function Gf(){var o=Je.elementGettingCreated.getAttribute("name"),t=sa.getRowContainerCssClasses(o);return o===ie.CENTER?'':o===ie.TOP_CENTER||o===ie.STICKY_TOP_CENTER||o===ie.BOTTOM_CENTER?'':'
    '}())||this;return e.rowComps={},e.name=Je.elementGettingCreated.getAttribute("name"),e.type=function Of(o){switch(o){case ie.CENTER:case ie.TOP_CENTER:case ie.STICKY_TOP_CENTER:case ie.BOTTOM_CENTER:return Vi.CENTER;case ie.LEFT:case ie.TOP_LEFT:case ie.STICKY_TOP_LEFT:case ie.BOTTOM_LEFT:return Vi.LEFT;case ie.RIGHT:case ie.TOP_RIGHT:case ie.STICKY_TOP_RIGHT:case ie.BOTTOM_RIGHT:return Vi.RIGHT;case ie.FULL_WIDTH:case ie.TOP_FULL_WIDTH:case ie.STICKY_TOP_FULL_WIDTH:case ie.BOTTOM_FULL_WIDTH:return Vi.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return n_(t,o),t.prototype.postConstruct=function(){var e=this,i={setViewportHeight:function(r){return e.eViewport.style.height=r},setRowCtrls:function(r){return e.setRowCtrls(r)},setDomOrder:function(r){e.domOrder=r},setContainerWidth:function(r){return e.eContainer.style.width=r}};this.createManagedBean(new sa(this.name)).setComp(i,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var i=this,n=cu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach(function(a){var l=a.getInstanceId(),h=n[l];if(h)i.rowComps[l]=h,delete n[l],i.ensureDomOrder(h.getGui());else{var m=i.newRowComp(a);i.rowComps[l]=m,i.appendRow(m.getGui())}}),Nt(n).forEach(function(a){i.eContainer.removeChild(a.getGui()),a.destroy()}),Ti(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?Eo(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(Za(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},t.prototype.newRowComp=function(e){return sa.getPinned(this.name),new i_(e,this.beans,this.type)},Wo([w("beans")],t.prototype,"beans",void 0),Wo([ce("eViewport")],t.prototype,"eViewport",void 0),Wo([ce("eContainer")],t.prototype,"eContainer",void 0),Wo([ce("eWrapper")],t.prototype,"eWrapper",void 0),Wo([ve],t.prototype,"postConstruct",null),Wo([Ct],t.prototype,"preDestroy",null),t}(Je),kf=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},o_=function(){function o(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return o.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var i=t.dragItem.columns;!i||i.forEach(function(n){!n.isPrimary()||n.isAnyFunctionActive()||(n.isAllowValue()?e.columnsToAggregate.push(n):n.isAllowRowGroup()?e.columnsToGroup.push(n):n.isAllowPivot()&&e.columnsToPivot.push(n))})}},o.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?oi.ICON_PINNED:oi.ICON_MOVE:null},o.prototype.onDragLeave=function(t){this.clearColumnsList()},o.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},o.prototype.onDragging=function(t){},o.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},kf([w("columnModel")],o.prototype,"columnModel",void 0),kf([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),o}(),aa=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Hf=function(){function o(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=e,this.centerContainer=!N(t)}return o.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},o.prototype.getIconName=function(){return this.pinned?oi.ICON_PINNED:oi.ICON_MOVE},o.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===Si.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var n=t.dragItem.visibleState,r=(e||[]).filter(function(a){return n[a.getId()]});this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},o.prototype.onDragLeave=function(t){this.ensureIntervalCleared()},o.prototype.setColumnsVisible=function(t,e,i){if(void 0===i&&(i="api"),t){var n=t.filter(function(r){return!r.getColDef().lockVisible});this.columnModel.setColumnsVisible(n,e,i)}},o.prototype.setColumnsPinned=function(t,e,i){if(void 0===i&&(i="api"),t){var n=t.filter(function(r){return!r.getColDef().lockPinned});this.columnModel.setColumnsPinned(n,e,i)}},o.prototype.onDragStop=function(){this.ensureIntervalCleared()},o.prototype.normaliseX=function(t){return this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},o.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),i=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=ti-50):(this.needToMoveLeft=ti-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},o.prototype.onDragging=function(t,e,i){var n=this;if(void 0===e&&(e=!1),void 0===i&&(i=!1),this.lastDraggingEvent=t,!z(t.hDirection)){var r=this.normaliseX(t.x);e||this.checkCenterForScrolling(r);var a=this.normaliseDirection(t.hDirection),l=t.dragSource.type,h=t.dragSource.getDragItem().columns;h=h.filter(function(m){return!m.getColDef().lockPinned||m.getPinned()==n.pinned}),this.attemptMoveColumns(l,h,a,r,e,i)}},o.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case _n.Left:return _n.Right;case _n.Right:return _n.Left;default:console.error("AG Grid: Unknown direction "+t)}},o.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),i=ue(t.map(function(h){return e.indexOf(h)})),n=i[0];return Be(i)-n!=i.length-1?null:n},o.prototype.attemptMoveColumns=function(t,e,i,n,r,a){var l=i===_n.Left,h=i===_n.Right;if(t===Si.HeaderCell){var m=[];e.forEach(function(Le){for(var qe=null,st=Le.getParent();null!=st&&1===st.getDisplayedLeafColumns().length;)qe=st,st=st.getParent();null!=qe?qe.getLeafColumns().forEach(function(It){m.includes(It)||m.push(It)}):m.includes(Le)||m.push(Le)}),e=m}var v=e.slice();this.columnModel.sortColumnsLikeGridColumns(v);var _=this.calculateValidMoves(v,h,n),y=this.calculateOldIndex(v);if(0!==_.length){var b=_[0],R=null!==y&&!r;if(t==Si.HeaderCell&&(R=null!==y),!R||a||!(l&&b>=y||h&&b<=y)){for(var I=this.columnModel.getAllDisplayedColumns(),H=[],te=null,X=0;X<_.length;X++){var fe=_[X],me=this.columnModel.getProposedColumnOrder(v,fe);if(this.columnModel.doesOrderPassRules(me)){var Se=me.filter(function(Le){return I.includes(Le)});if(null===te)te=Se;else if(!Fe.areEqual(Se,te))break;var $e=this.groupFragCount(me);H.push({move:fe,fragCount:$e})}}0!==H.length&&(H.sort(function(Le,qe){return Le.fragCount-qe.fragCount}),this.columnModel.moveColumns(v,H[0].move,"uiColumnDragged"))}}},o.prototype.groupFragCount=function(t){function e(a){for(var l=[],h=a.getOriginalParent();null!=h;)l.push(h),h=h.getOriginalParent();return l}for(var i=0,n=function(a){var l,h=e(t[a]),m=e(t[a+1]);l=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r}(h.length>m.length?[h,m]:[m,h],2),m=l[1],(h=l[0]).forEach(function(v){-1===m.indexOf(v)&&i++})},r=0;r0){for(var b=0;b0?I=m.indexOf(h[v-1])+1:-1===(I=m.indexOf(h[0]))&&(I=0);var te=[I],X=function(Xe,Le){return Xe-Le};if(e){for(var fe=I+1,me=a.length-1;fe<=me;)te.push(fe),fe++;te.sort(X)}else{me=a.length-1;for(var Se=a[fe=I];fe<=me&&this.isColumnHidden(r,Se);)fe++,te.push(fe),Se=a[fe];for(fe=I-1;fe>=0;)te.push(fe),fe--;te.sort(X).reverse()}return te},o.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},o.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?oi.ICON_LEFT:oi.ICON_RIGHT,!0))},o.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(oi.ICON_MOVE))},o.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,i=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=i.scrollHorizontally(-t):this.needToMoveRight&&(e=i.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter(function(l){return!l.getColDef().lockPinned});r.length>0&&(this.dragAndDropService.setGhostIcon(oi.ICON_PINNED),this.failedMoveAttempts>7)&&(this.setColumnsPinned(r,this.needToMoveLeft?G.PINNED_LEFT:G.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge())}},aa([w("columnModel")],o.prototype,"columnModel",void 0),aa([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),aa([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),aa([w("ctrlsService")],o.prototype,"ctrlsService",void 0),aa([ve],o.prototype,"init",null),o}(),a_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),la=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},l_=function(o){function t(e,i){var n=o.call(this)||this;return n.pinned=e,n.eContainer=i,n}return a_(t,o),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){switch(e.pinned){case G.PINNED_LEFT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case G.PINNED_RIGHT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]]}})},t.prototype.isInterestedIn=function(e){return e===Si.HeaderCell||e===Si.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Hf(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new o_(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Si.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},la([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),la([w("columnModel")],t.prototype,"columnModel",void 0),la([w("ctrlsService")],t.prototype,"ctrlsService",void 0),la([ve],t.prototype,"postConstruct",null),la([ve],t.prototype,"init",null),t}(ge),du=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},uu=function(){function o(){}return o.getHeaderClassesFromColDef=function(t,e,i,n){return z(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,i,n)},o.getToolPanelClassesFromColDef=function(t,e,i,n){return z(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,i,n)},o.getClassParams=function(t,e,i,n){return{colDef:t,column:i,columnGroup:n,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()}},o.getColumnClassesFromCollDef=function(t,e,i,n,r){return z(t)?[]:"string"==typeof(a="function"==typeof t?t(this.getClassParams(e,i,n,r)):t)?[a]:Array.isArray(a)?function(){for(var o=[],t=0;t=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},u_=function(o){function t(e){var i=o.call(this,t.TEMPLATE,e)||this;return i.headerCompVersion=0,i.column=e.getColumnGroupChild(),i.pinned=e.getPinned(),i}return d_(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui(),n=function(l,h,m){var v=m||i;null!=h&&""!=h?v.setAttribute(l,h):v.removeAttribute(l)};this.ctrl.setComp({setWidth:function(l){return i.style.width=l},addOrRemoveCssClass:function(l,h){return e.addOrRemoveCssClass(l,h)},setColId:function(l){return n("col-id",l)},setTitle:function(l){return n("title",l)},setAriaDescription:function(l){return el(i,l)},setAriaSort:function(l){return l?Qp(i,l):hd(i)},setUserCompDetails:function(l){return e.setUserCompDetails(l)},getUserCompInstance:function(){return e.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var a=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",a)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var i=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then(function(r){return i.afterCompCreated(n,r)})},t.prototype.afterCompCreated=function(e,i){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(i)},t.TEMPLATE='
    \n \n \n
    ',Ul([ce("eResize")],t.prototype,"eResize",void 0),Ul([ce("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),Ul([ve],t.prototype,"postConstruct",null),Ul([Ct],t.prototype,"destroyHeaderComp",null),t}(Yd),p_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),pu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},h_=function(o){function t(e){return o.call(this,t.TEMPLATE,e)||this}return p_(t,o),t.prototype.postConstruct=function(){var e=this,i=this.getGui(),n=function(a,l){return null!=l?i.setAttribute(a,l):i.removeAttribute(a)};this.ctrl.setComp({addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},addOrRemoveResizableCssClass:function(a,l){return e.eResize.classList.toggle(a,l)},setWidth:function(a){return i.style.width=a},setColId:function(a){return i.setAttribute("col-id",a)},setAriaExpanded:function(a){return n("aria-expanded",a)},setTitle:function(a){return n("title",a)},setUserCompDetails:function(a){return e.setUserCompDetails(a)}},i,this.eResize)},t.prototype.setUserCompDetails=function(e){var i=this;e.newAgStackInstance().then(function(n){return i.afterHeaderCompCreated(n)})},t.prototype.afterHeaderCompCreated=function(e){var i=this,n=function(){return i.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='
    \n \n
    ',pu([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),pu([ce("eResize")],t.prototype,"eResize",void 0),pu([ve],t.prototype,"postConstruct",null),t}(Yd),f_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),hu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},di=(()=>(function(o){o.COLUMN_GROUP="group",o.COLUMN="column",o.FLOATING_FILTER="filter"}(di||(di={})),di))(),m_=function(o){function t(e){var i=o.call(this)||this;i.headerComps={};var n=e.getType()==di.COLUMN_GROUP?"ag-header-row-column-group":e.getType()==di.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.setTemplate('
    '),i.ctrl=e,i}return f_(t,o),t.prototype.init=function(){var e=this;this.ctrl.setComp({setTransform:function(n){return e.getGui().style.transform=n},setHeight:function(n){return e.getGui().style.height=n},setTop:function(n){return e.getGui().style.top=n},setHeaderCtrls:function(n){return e.setHeaderCtrls(n)},setWidth:function(n){return e.getGui().style.width=n},setAriaRowIndex:function(n){return Rs(e.getGui(),n)}})},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var i=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach(function(h){var m=h.getInstanceId(),v=n[m];delete n[m],null==v&&(v=i.createHeaderComp(h),i.getGui().appendChild(v.getGui())),i.headerComps[m]=v}),Ge(n,function(h,m){i.getGui().removeChild(m.getGui()),i.destroyBean(m)}),this.gridOptionsWrapper.isEnsureDomOrder()){var a=Nt(this.headerComps);a.sort(function(h,m){return h.getCtrl().getColumnGroupChild().getLeft()-m.getCtrl().getColumnGroupChild().getLeft()});var l=a.map(function(h){return h.getGui()});qa(this.getGui(),l)}}},t.prototype.createHeaderComp=function(e){var i;switch(this.ctrl.getType()){case di.COLUMN_GROUP:i=new h_(e);break;case di.FLOATING_FILTER:i=new Hh(e);break;default:i=new u_(e)}return this.createBean(i),i.setParentComponent(this),i},hu([ve],t.prototype,"init",null),hu([Ct],t.prototype,"destroyHeaderCtrls",null),t}(Je),g_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},jl=0,zl=function(o){function t(e,i){var n=o.call(this)||this;return n.lastFocusEvent=null,n.columnGroupChild=e,n.parentRowCtrl=i,n.instanceId=e.getUniqueId()+"-"+jl++,n}return g_(t,o),t.prototype.shouldStopEventPropagation=function(e){var i=this.focusService.getFocusedHeader();return sl(this.gridOptionsWrapper,e,i.headerRowIndex,i.column)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var i=this.getWrapperHasFocus();switch(e.key){case le.PAGE_DOWN:case le.PAGE_UP:case le.PAGE_HOME:case le.PAGE_END:i&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,i=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,i,this),this.addDestroyFunc(function(){return e.gridOptionsWrapper.setDomData(e.eGui,i,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",fu([w("focusService")],t.prototype,"focusService",void 0),fu([w("beans")],t.prototype,"beans",void 0),fu([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(ge),_t=(()=>(function(o){o.EVERYTHING="group",o.FILTER="filter",o.SORT="sort",o.MAP="map",o.AGGREGATE="aggregate",o.FILTER_AGGREGATES="filter_aggregates",o.PIVOT="pivot",o.NOTHING="nothing"}(_t||(_t={})),_t))(),ft=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r};function no(o){return null!=o&&null!=o.getFrameworkComponentInstance?o.getFrameworkComponentInstance():o}var v_=function(){function o(){this.detailGridInfoMap={},this.destroyCalled=!1}return o.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},o.prototype.registerSideBarComp=function(t){this.sideBarComp=t},o.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case G.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case G.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case G.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},o.prototype.__getAlignedGridService=function(){return this.alignedGridsService},o.prototype.__getContext=function(){return this.context},o.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},o.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},o.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},o.prototype.forEachDetailGridInfo=function(t){var e=0;Ge(this.detailGridInfoMap,function(i,n){N(n)&&(t(n,e),e++)})},o.prototype.getDataAsCsv=function(t){if($.assertRegistered(Ie.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},o.prototype.exportDataAsCsv=function(t){$.assertRegistered(Ie.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},o.prototype.getExcelExportMode=function(t){var e=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},e,t).exportMode},o.prototype.getDataAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.getDataAsExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(e)===Ho.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(t)}},o.prototype.exportDataAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.exportDataAsExcel")){var e=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(e)===Ho.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(t)}},o.prototype.getSheetDataForExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.getSheetDataForExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Ho.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},o.prototype.getMultipleSheetsAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},o.prototype.exportMultipleSheetsAsExcel=function(t){if($.assertRegistered(Ie.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},o.prototype.setEnterpriseDatasource=function(t){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},o.prototype.setGridAriaProperty=function(t,e){if(t){var i=this.ctrlsService.getGridBodyCtrl().getGui(),n="aria-"+t;null===e?i.removeAttribute(n):i.setAttribute(n,e)}},o.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+G.ROW_MODEL_TYPE_SERVER_SIDE+"'")},o.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+G.ROW_MODEL_TYPE_SERVER_SIDE+"'")},o.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+G.ROW_MODEL_TYPE_INFINITE+"'")},o.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+G.ROW_MODEL_TYPE_VIEWPORT+"'")},o.prototype.setRowData=function(t){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},o.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},o.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},o.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},o.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},o.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},o.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},o.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},o.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},o.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},o.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},o.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},o.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},o.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e)},o.prototype.setAutoGroupColumnDef=function(t,e){this.gridOptionsWrapper.setProperty(be.PROP_AUTO_GROUP_COLUMN_DEF,t,!0)},o.prototype.setDefaultColDef=function(t,e){this.gridOptionsWrapper.setProperty(be.PROP_DEFAULT_COL_DEF,t,!0)},o.prototype.expireValueCache=function(){this.valueCache.expire()},o.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},o.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},o.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},o.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},o.prototype.refreshToolPanel=function(){!this.sideBarComp||this.sideBarComp.refresh()},o.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(t)},o.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},o.prototype.redrawRows=function(t){void 0===t&&(t={}),this.rowRenderer.redrawRows(t?t.rowNodes:void 0)},o.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},o.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(t){return t.refresh()})},o.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},o.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},o.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},o.prototype.getModel=function(){return this.rowModel},o.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},o.prototype.onGroupExpandedOrCollapsed=function(t){z(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),N(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:_t.MAP})},o.prototype.refreshInMemoryRowModel=function(t){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},o.prototype.refreshClientSideRowModel=function(t){z(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=_t.EVERYTHING,i={everything:_t.EVERYTHING,group:_t.EVERYTHING,filter:_t.FILTER,map:_t.MAP,aggregate:_t.AGGREGATE,sort:_t.SORT,pivot:_t.PIVOT};if(N(t)&&(e=i[t]),z(e))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(i).join(", "));else{var n=!this.gridOptionsWrapper.isSuppressAnimationFrame();this.clientSideRowModel.refreshModel({step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:n})}},o.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},o.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},o.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},o.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},o.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},o.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},o.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return no(this.sideBarComp.getToolPanelInstance(t));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.addVirtualRowListener=function(t,e,i){"string"!=typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,i)},o.prototype.addRenderedRowListener=function(t,e,i){"virtualRowSelected"===t&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,e,i)},o.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},o.prototype.selectIndex=function(t,e,i){console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,e)},o.prototype.deselectIndex=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},o.prototype.selectNode=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!e})},o.prototype.deselectNode=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},o.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},o.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},o.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},o.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},o.prototype.recomputeAggregates=function(){z(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:_t.AGGREGATE})},o.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},o.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},o.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},o.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},o.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},o.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},o.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},o.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},o.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},o.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},o.prototype.ensureColIndexVisible=function(t){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},o.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},o.prototype.ensureIndexVisible=function(t,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},o.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},o.prototype.forEachLeafNode=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},o.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},o.prototype.forEachNodeAfterFilter=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},o.prototype.forEachNodeAfterFilterAndSort=function(t){z(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},o.prototype.getFilterInstance=function(t,e){var i=this.getFilterInstanceImpl(t,function(r){if(e){var a=no(r);e(a)}});return no(i)},o.prototype.getFilterInstanceImpl=function(t,e){var i=this.columnModel.getPrimaryColumn(t);if(i){var n=this.filterManager.getFilterComponent(i,"NO_UI"),r=n&&n.resolveNow(null,function(a){return a});return r?setTimeout(e,0,r):n&&n.then(function(a){e(a)}),r}},o.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},o.prototype.getStatusPanel=function(t){if(this.statusBarService)return no(this.statusBarService.getStatusPanel(t))},o.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},o.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},o.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},o.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},o.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},o.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},o.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},o.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},o.prototype.setFocusedCell=function(t,e,i){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:i,forceBrowserFocus:!0})},o.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_ROW_DRAG,t)},o.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},o.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},o.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},o.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},o.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},o.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_HEADER_HEIGHT,t)},o.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(be.PROP_DOM_LAYOUT,t)},o.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},o.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(be.PROP_FILL_HANDLE_DIRECTION,t)},o.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_HEADER_HEIGHT,t)},o.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_FLOATING_FILTERS_HEIGHT,t)},o.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PIVOT_HEADER_HEIGHT,t)},o.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},o.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},o.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(be.PROP_DOES_EXTERNAL_FILTER_PASS,t)},o.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(be.PROP_NAVIGATE_TO_NEXT_CELL,t)},o.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(be.PROP_TAB_TO_NEXT_CELL,t)},o.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(be.PROP_TAB_TO_NEXT_HEADER,t)},o.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(be.PROP_NAVIGATE_TO_NEXT_HEADER,t)},o.prototype.setRowGroupPanelShow=function(t){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",t)},o.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_ROW_AGG_NODES,t)},o.prototype.setGetGroupRowAgg=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_GROUP_ROW_AGG,t)},o.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},o.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_CHILD_COUNT,t)},o.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_ROW_POST_CREATE,t)},o.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_NODE_ID,t)},o.prototype.setGetRowId=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_ID,t)},o.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_CLASS,t)},o.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_FULL_WIDTH_CELL,t)},o.prototype.setIsFullWidthRow=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_FULL_WIDTH_ROW,t)},o.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_ROW_SELECTABLE,t)},o.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_ROW_MASTER,t)},o.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POST_SORT,t)},o.prototype.setPostSortRows=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POST_SORT_ROWS,t)},o.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_DOCUMENT,t)},o.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_CONTEXT_MENU_ITEMS,t)},o.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_MAIN_MENU_ITEMS,t)},o.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},o.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SEND_TO_CLIPBOARD,t)},o.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},o.prototype.setProcessSecondaryColDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(t)},o.prototype.setProcessSecondaryColGroupDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(t)},o.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_PIVOT_RESULT_COL_DEF,t)},o.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,t)},o.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POST_PROCESS_POPUP,t)},o.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(be.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},o.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(be.PROP_INITIAL_GROUP_ORDER_COMPARATOR,t)},o.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_CHART_TOOLBAR_ITEMS,t)},o.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(be.PROP_PAGINATION_NUMBER_FORMATTER,t)},o.prototype.setGetServerSideStoreParams=function(t){this.setGetServerSideGroupLevelParams(t)},o.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_SERVER_SIDE_GROUP_PARAMS,t)},o.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},o.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},o.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(be.PROP_IS_SERVER_SIDE_GROUP,t)},o.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},o.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_STYLE,t)},o.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GET_ROW_HEIGHT,t)},o.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},o.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},o.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},o.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},o.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},o.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},o.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",Ac.parse(t))},o.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(be.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},o.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},o.prototype.doLayout=function(){Ve(function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")},"doLayoutDeprecated")},o.prototype.resetRowHeights=function(){if(N(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},o.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},o.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},o.prototype.setGroupDisplayType=function(t){this.gridOptionsWrapper.setProperty(be.PROP_GROUP_DISPLAY_TYPE,t)},o.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},o.prototype.getValue=function(t,e){var i=this.columnModel.getPrimaryColumn(t);return z(i)&&(i=this.columnModel.getGridColumn(t)),z(i)?null:this.valueService.getValue(i,e)},o.prototype.addEventListener=function(t,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,i)},o.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},o.prototype.removeEventListener=function(t,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,i)},o.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},o.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},o.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},o.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Xi.bind(window,this,"Grid API"),100)},o.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},o.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode(function(t){return t.quickFilterAggregateText=null})},o.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},o.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},o.prototype.camelCaseToHumanReadable=function(t){return ds(t)},o.prototype.addRangeSelection=function(t){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},o.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},o.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},o.prototype.undoCellEditing=function(){this.undoRedoService.undo()},o.prototype.redoCellEditing=function(){this.undoRedoService.redo()},o.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},o.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},o.prototype.getChartModels=function(){if($.assertRegistered(Ie.RangeSelectionModule,"api.getChartModels")&&$.assertRegistered(Ie.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},o.prototype.getChartRef=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.getChartRef")&&$.assertRegistered(Ie.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},o.prototype.getChartImageDataURL=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},o.prototype.downloadChart=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},o.prototype.openChartToolPanel=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},o.prototype.closeChartToolPanel=function(t){if($.assertRegistered(Ie.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},o.prototype.createRangeChart=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.createRangeChart")&&$.assertRegistered(Ie.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},o.prototype.createCrossFilterChart=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.createCrossFilterChart")&&$.assertRegistered(Ie.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},o.prototype.restoreChart=function(t,e){if($.assertRegistered(Ie.RangeSelectionModule,"api.restoreChart")&&$.assertRegistered(Ie.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},o.prototype.createPivotChart=function(t){if($.assertRegistered(Ie.RangeSelectionModule,"api.createPivotChart")&&$.assertRegistered(Ie.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},o.prototype.copyToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(t)},o.prototype.copySelectedRowsToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t)},o.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},o.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},o.prototype.showColumnMenuAfterButtonClick=function(t,e){var i=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(i,e,"columnMenu")},o.prototype.showColumnMenuAfterMouseClick=function(t,e){var i=this.columnModel.getGridColumn(t);i||(i=this.columnModel.getPrimaryColumn(t)),i?this.menuFactory.showMenuAfterMouseEvent(i,e):console.error("AG Grid: column '"+t+"' not found")},o.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},o.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(be.PROP_POPUP_PARENT,t)},o.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},o.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},o.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(no)},o.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(no)},o.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},o.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},o.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var i={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var r=this.navigationService.getCellByPosition(i);!r||r.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},o.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},o.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},o.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},o.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},o.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},o.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},o.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},o.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},o.prototype.setDeltaSort=function(t){this.gridOptionsWrapper.setProperty("deltaSort",t)},o.prototype.updateRowData=function(t){return Ve(function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")},"updateRowData deprecated"),this.applyTransaction(t)},o.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},o.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},o.prototype.batchUpdateRowData=function(t,e){Ve(function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")},"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,e)},o.prototype.insertItemsAtIndex=function(t,e,i){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},o.prototype.removeItems=function(t,e){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var i=t.map(function(n){return n.data});this.updateRowData({add:null,addIndex:null,update:null,remove:i})},o.prototype.addItems=function(t,e){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},o.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},o.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},o.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},o.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},o.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},o.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},o.prototype.purgeEnterpriseCache=function(t){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(t)},o.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},o.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},o.prototype.refreshServerSideStore=function(t){return Ve(function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")},"refreshServerSideStore-renamed"),this.refreshServerSide(t)},o.prototype.getServerSideStoreState=function(){return Ve(function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")},"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},o.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},o.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},o.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},o.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},o.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},o.prototype.setVirtualRowCount=function(t,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,e)},o.prototype.setInfiniteRowCount=function(t,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,e)},o.prototype.setRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},o.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},o.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},o.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},o.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},o.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},o.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},o.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},o.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},o.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},o.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},o.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},o.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},o.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},o.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},o.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},o.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},o.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},o.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},o.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},o.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},o.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},o.prototype.setRowClass=function(t){this.gridOptionsWrapper.setProperty(be.PROP_ROW_CLASS,t)},ft([rt("immutableService")],o.prototype,"immutableService",void 0),ft([rt("csvCreator")],o.prototype,"csvCreator",void 0),ft([rt("excelCreator")],o.prototype,"excelCreator",void 0),ft([w("rowRenderer")],o.prototype,"rowRenderer",void 0),ft([w("navigationService")],o.prototype,"navigationService",void 0),ft([w("filterManager")],o.prototype,"filterManager",void 0),ft([w("columnModel")],o.prototype,"columnModel",void 0),ft([w("selectionService")],o.prototype,"selectionService",void 0),ft([w("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),ft([w("valueService")],o.prototype,"valueService",void 0),ft([w("alignedGridsService")],o.prototype,"alignedGridsService",void 0),ft([w("eventService")],o.prototype,"eventService",void 0),ft([w("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),ft([w("context")],o.prototype,"context",void 0),ft([w("rowModel")],o.prototype,"rowModel",void 0),ft([w("sortController")],o.prototype,"sortController",void 0),ft([w("paginationProxy")],o.prototype,"paginationProxy",void 0),ft([w("focusService")],o.prototype,"focusService",void 0),ft([w("dragAndDropService")],o.prototype,"dragAndDropService",void 0),ft([rt("rangeService")],o.prototype,"rangeService",void 0),ft([rt("clipboardService")],o.prototype,"clipboardService",void 0),ft([rt("aggFuncService")],o.prototype,"aggFuncService",void 0),ft([w("menuFactory")],o.prototype,"menuFactory",void 0),ft([rt("contextMenuFactory")],o.prototype,"contextMenuFactory",void 0),ft([w("valueCache")],o.prototype,"valueCache",void 0),ft([w("animationFrameService")],o.prototype,"animationFrameService",void 0),ft([rt("statusBarService")],o.prototype,"statusBarService",void 0),ft([rt("chartService")],o.prototype,"chartService",void 0),ft([rt("undoRedoService")],o.prototype,"undoRedoService",void 0),ft([rt("rowNodeBlockLoader")],o.prototype,"rowNodeBlockLoader",void 0),ft([rt("ssrmTransactionManager")],o.prototype,"serverSideTransactionManager",void 0),ft([w("ctrlsService")],o.prototype,"ctrlsService",void 0),ft([rt("frameworkComponentWrapper")],o.prototype,"frameworkComponentWrapper",void 0),ft([ve],o.prototype,"init",null),ft([Ct],o.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),ft([we("gridApi")],o)}(),__=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),mu=function(o){function t(e,i,n,r){var a=o.call(this)||this;return a.columnOrGroup=e,a.eCell=i,a.ariaEl=a.eCell.querySelector("[role=columnheader]")||a.eCell,a.colsSpanning=r,a.beans=n,a}return __(t,o),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Be(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Y.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,be.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),i=N(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&i&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,i=this.getColumnOrGroup(),n=i.getLeft(),r=i.getOldLeft(),a=this.modifyLeftForPrintLayout(i,r),l=this.modifyLeftForPrintLayout(i,n);this.setLeft(a),this.actualLeft=l,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===l&&e.setLeft(l)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),i=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,i),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,i){if(this.beans.gridOptionsWrapper.getDomLayout()!==G.DOM_LAYOUT_PRINT||e.getPinned()===G.PINNED_LEFT)return i;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===G.PINNED_RIGHT?r+this.beans.columnModel.getBodyContainerWidth()+i:r+i},t.prototype.setLeft=function(e){var i;if(N(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof Y)i=this.columnOrGroup;else{var r=this.columnOrGroup.getLeafColumns();if(!r.length)return;r.length>1&&rl(this.ariaEl,r.length),i=r[0]}var a=this.beans.columnModel.getAriaColumnIndex(i);nl(this.ariaEl,a)},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(ge),C_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Yl=function(o){function t(e,i){var n=o.call(this)||this;return n.columns=e,n.element=i,n}return C_(t,o),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},gu([w("columnHoverService")],t.prototype,"columnHoverService",void 0),gu([ve],t.prototype,"postConstruct",null),t}(ge),Vf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Bf=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.column=e,n}return Vf(t,o),t.prototype.setComp=function(e,i,n,r){o.prototype.setGui.call(this,i),this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r;var a=this.column.getColDef();this.active=!(!a.filter&&!a.filterFramework||!a.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Jt("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new Zt(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(this.gridOptionsWrapper.getDocument().activeElement!==this.eGui){var a=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(a)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void a.focus();var l=this.findNextColumnWithFloatingFilter(e.shiftKey);!l||this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:l},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var i=this.beans.columnModel,n=this.column;do{if(!(n=e?i.getDisplayedColBefore(n):i.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();switch(e.key){case le.UP:case le.DOWN:i||e.preventDefault();case le.LEFT:case le.RIGHT:if(i)return;e.stopPropagation();case le.ENTER:i&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case le.ESCAPE:i||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&Kn(e.relatedTarget,"ag-floating-filter");if(n&&r&&e.target===this.eGui){var a=this.lastFocusEvent;a&&a&&a.key===le.TAB&&this.focusService.focusInto(this.eGui,a.shiftKey)}var m=this.getRowIndex();this.beans.focusService.setFocusedHeader(m,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Yl([this.column],this.eGui));var i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var n=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",n)}};this.addManagedListener(this.eventService,S.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.setupLeft=function(){var e=new mu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var i=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,i),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Xs,n),a=this.userComponentFactory.getDefaultFloatingFilterType(i);null==a&&(a="agReadOnlyFloatingFilter");var l={column:this.column,filterParams:r,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(m){return e.parentFilterInstance(m)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var h=this.userComponentFactory.getFloatingFilterCompDetails(i,l,a);h&&this.comp.setCompDetails(h)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,function(i){return i&&i.getModel()}):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){this.getFilterComponent()?.then(function(n){e(no(n))})},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var i=function(n){var r=e.comp.getFloatingFilterComp();if(r){var a=e.currentParentModel();r.then(function(l){l&&l.onParentModelChanged(a,n)})}};this.addManagedListener(this.column,Y.EVENT_FILTER_CHANGED,i),this.filterManager.isFilterActive(this.column)&&i(null)}},t.prototype.setupWidth=function(){var e=this,i=function(){var n=e.column.getActualWidth()+"px";e.comp.setWidth(n)};this.addManagedListener(this.column,Y.EVENT_WIDTH_CHANGED,i),i()},Kl([w("filterManager")],t.prototype,"filterManager",void 0),Kl([w("columnHoverService")],t.prototype,"columnHoverService",void 0),Kl([w("menuFactory")],t.prototype,"menuFactory",void 0),t}(zl),w_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$l=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Wf=function(o){function t(e,i,n,r,a){var l=o.call(this)||this;return l.pinned=e,l.column=i,l.eResize=n,l.comp=r,l.ctrl=a,l}return w_(t,o),t.prototype.postConstruct=function(){var r,a,e=this,i=this.column.getColDef(),n=[],h=function(){n.forEach(function(v){return v()}),n.length=0},m=function(){var v=e.column.isResizable(),_=!e.gridOptionsWrapper.isSuppressAutoSize()&&!i.suppressAutoSize;(v!==r||_!==a)&&(r=v,a=_,h(),function(){if(Lt(e.eResize,r),r){var v=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(n.push(v),a){var _=e.gridOptionsWrapper.isSkipHeaderOnAutoSize(),y=function(){e.columnModel.autoSizeColumn(e.column,_,"uiColumnResized")};e.eResize.addEventListener("dblclick",y);var b=new ki(e.eResize);b.addEventListener(ki.EVENT_DOUBLE_TAP,y),e.addDestroyFunc(function(){e.eResize.removeEventListener("dblclick",y),b.removeEventListener(ki.EVENT_DOUBLE_TAP,y),b.destroy()})}}}())};m(),this.addDestroyFunc(h),this.ctrl.addRefreshFunction(m)},t.prototype.onResizing=function(e,i){var n=this.normaliseResizeAmount(i);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+n}],this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var i=e,n=this.pinned!==G.PINNED_LEFT,r=this.pinned===G.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(i*=-1):r&&(i*=-1),i},$l([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),$l([w("columnModel")],t.prototype,"columnModel",void 0),$l([ve],t.prototype,"postConstruct",null),t}(ge),Uf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Uo=function(o){function t(e,i,n){void 0===i&&(i="ag-checkbox"),void 0===n&&(n="checkbox");var r=o.call(this,e,i,n)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Uf(t,o),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),o.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,e):this.setValue(i)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,i){return this.refreshSelectedClass(e),this.setSelected(e,i),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,i){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,i||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,i,n){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:i,event:n});var r=this.getInputElement();this.eventService.dispatchEvent({type:S.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:i})},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var i=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,i,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Sn),jf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ca=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},zf=function(o){function t(e){var i=o.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.column=e;var n=e.getColDef();return i.filteredOnly=!!n&&!!n.headerCheckboxSelectionFilteredOnly,i}return jf(t,o),t.prototype.onSpaceKeyPressed=function(e){var i=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();i.isDisplayed()&&!i.getGui().contains(n.activeElement)&&(e.preventDefault(),i.setValue(!i.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Uo),this.cbSelectAll.addCssClass("ag-header-select-all"),Ti(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,S.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,S.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Uo.EVENT_CHANGED,this.onCbSelectAll.bind(this)),dd(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){!this.cbSelectAllVisible||this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){!this.cbSelectAllVisible||this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),i=this.getNextCheckboxState(e);this.cbSelectAll.setValue(i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),n=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",r+" ("+n+")"),this.cbSelectAll.setInputAriaLabel(r+" ("+n+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,i=0,n=0,r=function(a){e.gridOptionsWrapper.isGroupSelectsChildren()&&a.group||(a.isSelected()?i++:a.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:n,selected:i}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===G.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){!this.processingEventFromCheckbox&&this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),1)))},ca([w("gridApi")],t.prototype,"gridApi",void 0),ca([w("columnApi")],t.prototype,"columnApi",void 0),ca([w("rowModel")],t.prototype,"rowModel",void 0),ca([w("selectionService")],t.prototype,"selectionService",void 0),t}(ge),Yf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hn=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Kf=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.refreshFunctions=[],n.userHeaderClasses=new Set,n.ariaDescriptionProperties=new Map,n.column=e,n}return Yf(t,o),t.prototype.setComp=function(e,i,n,r){var a=this;o.prototype.setGui.call(this,i),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Wf(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new Yl([this.column],i)),this.createManagedBean(new mu(this.column,i,this.beans)),this.createManagedBean(new Zt(i,{shouldStopEventPropagation:function(l){return a.shouldStopEventPropagation(l)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,Y.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,e)},t.prototype.createParams=function(){var e=this,i=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:i.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(r){e.gridApi.showColumnMenuAfterButtonClick(e.column,r)},progressSort:function(r){e.sortController.progressSort(e.column,!!r,"uiColumnSorted")},setSort:function(r,a){e.sortController.setSortForColumn(e.column,r,!!a,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new zf(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e),e.key===le.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===le.ENTER&&this.onEnterKeyPressed(e)},t.prototype.onEnterKeyPressed=function(e){var i=this.comp.getUserCompInstance();i&&(e.ctrlKey||e.metaKey?this.menuEnabled&&i.showMenu&&(e.preventDefault(),i.showMenu()):this.sortable&&this.sortController.progressSort(this.column,e.shiftKey,"uiColumnSorted"))},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,n=this.createManagedBean(new kl({getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},this.beans));n.setComp(this.comp),this.refreshFunctions.push(function(){return n.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,i=function(){var n=e.column.getColDef(),a=uu.getHeaderClassesFromColDef(n,e.gridOptionsWrapper,e.column,null),l=e.userHeaderClasses;e.userHeaderClasses=new Set(a),a.forEach(function(h){l.has(h)?l.delete(h):e.comp.addOrRemoveCssClass(h,!0)}),l.forEach(function(h){return e.comp.addOrRemoveCssClass(h,!1)})};this.refreshFunctions.push(i),i()},t.prototype.setDragSource=function(e){var i=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var n=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:Si.HeaderCell,eElement:e,defaultIconName:n?oi.ICON_HIDE:oi.ICON_NOT_ALLOWED,getDragItem:function(){return i.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(r){var a,l;if(n){var h=(null===(l=null===(a=r)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(m){return!m.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(h,!0,"uiColumnMoved")}},onGridExit:function(r){var a,l;if(n){var h=(null===(l=null===(a=r)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(m){return!m.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(h,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var i=this.comp.getUserCompInstance();return!(!i||!i.refresh)&&i.refresh(e)},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!(this.gridOptionsWrapper.isSuppressMovableColumns()||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,i=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,Y.EVENT_WIDTH_CHANGED,i),i()},t.prototype.setupMovingCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,Y.EVENT_MOVING_CHANGED,i),i()},t.prototype.setupMenuClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,Y.EVENT_MENU_VISIBLE_CHANGED,i),i()},t.prototype.setupSortableClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.column,Y.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,i=function(){var n=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",n)};i(),this.addRefreshFunction(i)},t.prototype.setupAutoHeight=function(e){var a,i=this,n=function(v){if(i.isAlive()){var _=$n(i.getGui()),I=e.offsetHeight+_.paddingTop+_.paddingBottom;if(v<5){var H=i.beans.gridOptionsWrapper.getDocument();if(!H||!H.contains(e)||0==I)return void i.beans.frameworkOverrides.setTimeout(function(){return n(v+1)},0)}i.columnModel.setColumnHeaderHeight(i.column,I)}},r=!1,l=function(){var v=i.column.isAutoHeaderHeight();v&&!r&&h(),!v&&r&&m()},h=function(){r=!0,n(0),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),a=i.resizeObserverService.observeResize(e,function(){return n(0)})},m=function(){r=!1,a&&a(),i.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),a=void 0};l(),this.addDestroyFunc(function(){return m()}),this.addManagedListener(this.column,Y.EVENT_WIDTH_CHANGED,function(){return r&&n(0)}),this.addManagedListener(this.column,Y.EVENT_SORT_CHANGED,function(){r&&i.beans.frameworkOverrides.setTimeout(function(){return n(0)})}),this.addRefreshFunction(l)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Es(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,i){null!=i?this.ariaDescriptionProperties.set(e,i):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var n=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",n)}};this.addManagedListener(this.eventService,S.EVENT_COLUMN_HOVER_CHANGED,i),i()},t.prototype.setupFilterCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,Y.EVENT_FILTER_ACTIVE_CHANGED,i),i()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,i=function(n){return e.setActiveHeader("mouseenter"===n.type)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},Hn([w("columnModel")],t.prototype,"columnModel",void 0),Hn([w("columnHoverService")],t.prototype,"columnHoverService",void 0),Hn([w("sortController")],t.prototype,"sortController",void 0),Hn([w("menuFactory")],t.prototype,"menuFactory",void 0),Hn([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Hn([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Hn([w("gridApi")],t.prototype,"gridApi",void 0),Hn([w("columnApi")],t.prototype,"columnApi",void 0),Hn([Ct],t.prototype,"removeDragSource",null),t}(zl),$f=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),da=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Zf=function(o){function t(e,i,n,r){var a=o.call(this)||this;return a.eResize=i,a.comp=e,a.pinned=n,a.columnGroup=r,a}return $f(t,o),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var i=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(i),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",function(){var r=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(l){l.getColDef().suppressAutoSize||r.push(l.getColId())}),r.length>0&&e.columnModel.autoSizeColumns({columns:r,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()})}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var i=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter(function(a){return a.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromStartWidth+=a.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromRatios.push(a.getActualWidth()/i.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,i){var n=this.normaliseDragChange(i);this.resizeColumns(this.resizeStartWidth+n,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,i){void 0===i&&(i=!0);var n=[];n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(e-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:n,finished:i,source:"uiColumnDragged"}),i&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,i=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=i.filter(function(n){return n.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(n){return e.resizeStartWidth+=n.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(n){return e.resizeRatios.push(n.getActualWidth()/e.resizeStartWidth)})},t.prototype.normaliseDragChange=function(e){var i=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==G.PINNED_LEFT&&(i*=-1):this.pinned===G.PINNED_RIGHT&&(i*=-1),i},da([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),da([w("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),da([w("columnModel")],t.prototype,"columnModel",void 0),da([ve],t.prototype,"postConstruct",null),t}(ge),qf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xf=function(o){function t(e,i){var n=o.call(this)||this;return n.removeChildListenersFuncs=[],n.columnGroup=i,n.comp=e,n}return qf(t,o),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,O.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(n){n.addEventListener(Y.EVENT_WIDTH_CHANGED,i),n.addEventListener(Y.EVENT_VISIBLE_CHANGED,i),e.removeChildListenersFuncs.push(function(){n.removeEventListener(Y.EVENT_WIDTH_CHANGED,i),n.removeEventListener(Y.EVENT_VISIBLE_CHANGED,i)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);n>3&&r&&Object.defineProperty(t,e,r)}([ve],t.prototype,"postConstruct",null),t}(ge),b_=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zl=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},x_=function(o){function t(e,i){var n=o.call(this,e,i)||this;return n.columnGroup=e,n}return b_(t,o),t.prototype.setComp=function(e,i,n){o.prototype.setGui.call(this,i),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),a=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Yl(a,i)),this.createManagedBean(new mu(this.columnGroup,i,this.beans)),this.createManagedBean(new Xf(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Zf(e,n,r,this.columnGroup)),this.createManagedBean(new Zt(i,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},t.prototype.setupUserComp=function(){var e=this,i=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(m){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),m,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!i){for(var r=this.columnGroup,a=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===a.length;)r=r.getParent();var l=r.getColGroupDef();l&&(i=l.headerName),i||(i=a?this.columnModel.getDisplayNameForColumn(a[0],"header",!0):"")}var h=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(h)},t.prototype.setupTooltip=function(){var e=this,i=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(n.getColDef=function(){return i}),this.createManagedBean(new kl(n,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,P.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,P.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var i=e.isExpanded();this.comp.setAriaExpanded(this.expandable?i?"true":"false":void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,i=this.columnGroup.getColGroupDef(),n=uu.getHeaderClassesFromColDef(i,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach(function(r){return e.comp.addOrRemoveCssClass(r,!0)})},t.prototype.setupMovingCss=function(){var e=this,n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};n.forEach(function(a){e.addManagedListener(a,Y.EVENT_MOVING_CHANGED,r)}),r()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.columnGroup)}},t.prototype.handleKeyDown=function(e){o.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();if(this.expandable&&i&&e.key===le.ENTER){var n=this.columnGroup,r=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),r,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var i=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),a={type:Si.HeaderCell,eElement:e,defaultIconName:r?oi.ICON_HIDE:oi.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach(function(l){return l.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return n.forEach(function(l){return l.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(l){var h,m;if(r){var v=(null===(m=null===(h=l)||void 0===h?void 0:h.columns)||void 0===m?void 0:m.filter(function(_){return!_.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(v,!0,"uiColumnMoved")}},onGridExit:function(l){var h,m;if(r){var v=(null===(m=null===(h=l)||void 0===h?void 0:h.columns)||void 0===m?void 0:m.filter(function(_){return!_.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(v,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(a,!0),this.addDestroyFunc(function(){return i.dragAndDropService.removeDragSource(a)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i={};e.forEach(function(r){return i[r.getId()]=r.isVisible()});var n=[];return this.columnModel.getAllDisplayedColumns().forEach(function(r){e.indexOf(r)>=0&&(n.push(r),De(e,r))}),e.forEach(function(r){return n.push(r)}),{columns:n,visibleState:i}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(n){(n.getColDef().suppressMovable||n.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsWrapper.isSuppressMovableColumns()},Zl([w("columnModel")],t.prototype,"columnModel",void 0),Zl([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Zl([w("gridApi")],t.prototype,"gridApi",void 0),Zl([w("columnApi")],t.prototype,"columnApi",void 0),t}(zl),Jf=function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r])})(t,e)};return function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),vu=function(o,t,e,i){var a,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},_u=0,ql=function(o){function t(e,i,n){var r=o.call(this)||this;return r.instanceId=_u++,r.headerCellCtrls={},r.rowIndex=e,r.pinned=i,r.type=n,r}return Jf(t,o),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),zn()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,S.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,S.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,be.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return it(this.headerCellCtrls).find(function(i){return i.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===G.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(G.PINNED_RIGHT)+this.columnModel.getContainerWidth(G.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),i=[],n=0;this.columnModel.hasFloatingFilters()&&(e++,n=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),a=this.columnModel.getColumnHeaderRowHeight(),h=e-(1+n),m=0;m=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},Cu=function(o,t){var e="function"==typeof Symbol&&o[Symbol.iterator];if(!e)return o;var n,a,i=e.call(o),r=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return r},tm=function(o){function t(e){var i=o.call(this)||this;return i.groupsRowCtrls=[],i.pinned=e,i}return yu(t,o),t.prototype.setComp=function(e,i){this.comp=e,this.eViewport=i,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,S.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var i=new l_(this.pinned,e);this.createManagedBean(i)},t.prototype.refresh=function(e){var i=this;void 0===e&&(e=!1);var v,n=new Zr,r=this.focusService.getFocusHeaderToUseAfterRefresh();(function(){var v=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var _=0;_=0;l--)(a=o[l])&&(r=(n<3?a(r):n>3?a(t,e,r):a(t,e))||r);return n>3&&r&&Object.defineProperty(t,e,r),r},wu=function(o){function t(e){var i=o.call(this)||this;return i.headerRowComps={},i.rowCompsList=[],i.pinned=e,i}return im(t,o),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var i={addOrRemoveCssClass:function(r,a){return e.addOrRemoveCssClass(r,a)},setCtrls:function(r){return e.setCtrls(r)},setCenterWidth:function(r){return e.eCenterContainer.style.width=r},setContainerTransform:function(r){return e.eCenterContainer.style.transform=r},setPinnedContainerWidth:function(r){var a=e.getGui();a.style.width=r,a.style.maxWidth=r,a.style.minWidth=r}};this.createManagedBean(new tm(this.pinned)).setComp(i,this.getGui())},t.prototype.selectAndSetTemplate=function(){this.setTemplate(this.pinned==G.PINNED_LEFT?t.PINNED_LEFT_TEMPLATE:this.pinned==G.PINNED_RIGHT?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var r,i=this,n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],e.forEach(function(l){var h=l.getInstanceId(),m=n[h];delete n[h];var v=m||i.createBean(new m_(l));i.headerRowComps[h]=v,i.rowCompsList.push(v),function(l){var h=l.getGui();h.parentElement!=i.eRowContainer&&i.eRowContainer.appendChild(h),r&&Za(i.eRowContainer,h,r),r=h}(v)}),Nt(n).forEach(function(l){return i.destroyRowComp(l)})},t.PINNED_LEFT_TEMPLATE='